@univerjs-pro/live-share 0.10.9 → 0.10.10-experimental.20251010-3f807c5
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 +11 -11
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x38e991=_0x5564;(function(_0x461ea9,_0x1dbd41){var _0x45fe66=_0x5564,_0x14cad0=_0x461ea9();while(!![]){try{var _0x36f03e=-parseInt(_0x45fe66(0x231))/0x1+-parseInt(_0x45fe66(0x1df))/0x2*(parseInt(_0x45fe66(0x1b4))/0x3)+-parseInt(_0x45fe66(0x22c))/0x4*(parseInt(_0x45fe66(0x20d))/0x5)+parseInt(_0x45fe66(0x24e))/0x6*(-parseInt(_0x45fe66(0x21a))/0x7)+-parseInt(_0x45fe66(0x1f1))/0x8+parseInt(_0x45fe66(0x200))/0x9+parseInt(_0x45fe66(0x226))/0xa;if(_0x36f03e===_0x1dbd41)break;else _0x14cad0['push'](_0x14cad0['shift']());}catch(_0x29830c){_0x14cad0['push'](_0x14cad0['shift']());}}}(_0x5af0,0x8a08b));var U=Object[_0x38e991(0x272)],F=(_0x5c63b1,_0x27735d,_0x58ce0c)=>_0x27735d in _0x5c63b1?U(_0x5c63b1,_0x27735d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58ce0c}):_0x5c63b1[_0x27735d]=_0x58ce0c,v=(_0x4ec7b4,_0x4e00c9,_0x59dd41)=>F(_0x4ec7b4,typeof _0x4e00c9!=_0x38e991(0x21f)?_0x4e00c9+'':_0x4e00c9,_0x59dd41);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x38e991(0x1d3)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function _0x5564(_0x30c75b,_0x57b115){var _0x5af0b4=_0x5af0();return _0x5564=function(_0x5564da,_0x1e8384){_0x5564da=_0x5564da-0x193;var _0x2bc82f=_0x5af0b4[_0x5564da];return _0x2bc82f;},_0x5564(_0x30c75b,_0x57b115);}function _0x5af0(){var _0x1611e0=['getConfig','includes','FOLLOWING','current','HEADER_MENU','idSuffix','presenting','div','button','dispose$','getTypeOfUnitAdded$','6eDdsJc','getCurrentTypeOfUnit$','className','_commandService','getUnitId','Start','entries','_status$','default','replace','toDisposable','univer-mb-3\x20univer-w-full\x20univer-text-sm','OFFLINE','stopFollowing','path','icon','UniverIcon','SetWorksheetActiveOperation','colorChannel1','then','Start\x20following','_mountLiveShare','_liveShareService','Button','_unitID','_startFollowing','takeUntil','pluginName','indexOf','LiveShareIcon','NOT_FOLLOWING','jsx','_status','PRESENTING','_injector','univer-size-4','defineProperty','mergeOverrideWithDependencies','parseProtocolChangeset','_handleNewHost','memberID','concat','Injector','data','fill','LIVESHARE_TERMINATE','IUniverInstanceService','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','init','function','subscribe','unsubscribe','_uiPartsService','params','_init','extend','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','_config','_configService','_beIdle','set','hasOwnProperty','onRendered','LIVESHARE_OPERATION','event$','find','_handleOffline','mask','unitId','1em','3108uWUjsS','tryStartPresenting','tag','next','Disposable','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','end','LiveShareService','requireSession','trim','getOwnPropertyDescriptor','LIVESHARE_FETCH_OPERATIONS','CommandType','InsertSheetMutation','toString','assign','getInitialStates','from','random','LiveShareStatus','SessionStatus','_handleOperation','url(#$1','get','not-following','_startLiveShareCoordinator','throttleTime','svg','live-share-icon','IDLE','RxDisposable','Module','string','length','Stop\x20presenting','BehaviorSubject','0\x200\x2017\x2017','shouldShareOperation','_startPresenting','values','prototype','_fetchOperations','connectInjector','834yeFptN','_collabSessionService','xlink:href','delete','SetZoomRatioOperation','OPERATION','type','LiveShare','CollaborationEvent','call','_stopFollowing','substring','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','useState','LIVESHARE_NEW_HOST','ONLINE','_stopPresenting','status$','7960648pMCBVp','touchDependencies','_handleNewChangeSets','_commandDisposable','stringify','Stop\x20following','map','defs','forwardRef','clear','idle','dispose','pipe','LiveShareController','defIds','7136721gSdYOq','getOwnPropertySymbols','add','apply','sessionStatus$','children','presenter','_collabSession','_presenter','text','attrs','IUIPartsService','UniverInstanceType','20jCQcwG','Fragment','getLiveShareCoordinator','SetScrollOperation','UNIVER_SHEET','_sharedOperations','registerInitialStateReporter','UNIVER_UNKNOWN','stopPresenting','http://www.w3.org/2000/svg','useObservable','Inject','forEach','3962161AtuRHw','getMemberID','IConfigService','_reporters','offline','symbol','startFollowing','_univerInstanceService','useRef','You\x27re\x20presenting\x20the\x20document','setConfig','DesktopLiveShareController','35510400zcIRFo','onStarting','UniverLiveSharePlugin','displayName','univerjs-icon\x20univerjs-icon-','Plugin','694132ABaNUp','operations','send','BuiltInUIPart','disposeWithMe','1091374NGEpad','DependentOn','SAME_OPERATION_SHARE_INTERVAL','useDependency','_handleTerminate','none','override','_entities','complete','has','merge','createInstance','You\x27re\x20not\x20following\x20the\x20presenter','jsxs','LiveShareCoordinator','_handleOnline','ICommandService','following'];_0x5af0=function(){return _0x1611e0;};return _0x5af0();}var u=function(){var _0x5c2b01=_0x38e991;return u=Object[_0x5c2b01(0x1c3)]||function(_0x1a50ce){var _0x129ff4=_0x5c2b01;for(var _0x193aa4,_0x3fa60c=0x1,_0x3112e1=arguments[_0x129ff4(0x1d5)];_0x3fa60c<_0x3112e1;_0x3fa60c++){_0x193aa4=arguments[_0x3fa60c];for(var _0x476cf4 in _0x193aa4)Object[_0x129ff4(0x1dc)][_0x129ff4(0x1ab)]['call'](_0x193aa4,_0x476cf4)&&(_0x1a50ce[_0x476cf4]=_0x193aa4[_0x476cf4]);}return _0x1a50ce;},u[_0x5c2b01(0x203)](this,arguments);},$=function(_0x8b2636,_0x5c3ee3){var _0x51a3ea=_0x38e991,_0x41bca2={};for(var _0x14ed4e in _0x8b2636)Object['prototype'][_0x51a3ea(0x1ab)][_0x51a3ea(0x1e8)](_0x8b2636,_0x14ed4e)&&_0x5c3ee3[_0x51a3ea(0x26a)](_0x14ed4e)<0x0&&(_0x41bca2[_0x14ed4e]=_0x8b2636[_0x14ed4e]);if(_0x8b2636!=null&&typeof Object[_0x51a3ea(0x201)]==_0x51a3ea(0x19f)){for(var _0x994329=0x0,_0x14ed4e=Object[_0x51a3ea(0x201)](_0x8b2636);_0x994329<_0x14ed4e[_0x51a3ea(0x1d5)];_0x994329++)_0x5c3ee3[_0x51a3ea(0x26a)](_0x14ed4e[_0x994329])<0x0&&Object[_0x51a3ea(0x1dc)]['propertyIsEnumerable'][_0x51a3ea(0x1e8)](_0x8b2636,_0x14ed4e[_0x994329])&&(_0x41bca2[_0x14ed4e[_0x994329]]=_0x8b2636[_0x14ed4e[_0x994329]]);}return _0x41bca2;},j=f[_0x38e991(0x1f9)](function(_0x538229,_0x20b6c3){var _0x10cbc7=_0x38e991,_0x5ffd19=_0x538229['icon'],_0x1eb040=_0x538229['id'],_0x272835=_0x538229[_0x10cbc7(0x250)],_0x4ac414=_0x538229[_0x10cbc7(0x1a5)],_0x35c8a2=$(_0x538229,[_0x10cbc7(0x25d),'id',_0x10cbc7(0x250),_0x10cbc7(0x1a5)]),_0x5ecf9c=_0x10cbc7(0x22a)['concat'](_0x1eb040,'\x20')['concat'](_0x272835||'')[_0x10cbc7(0x1bd)](),_0x147e0a=f['useRef']('_'['concat'](k()));return y(_0x5ffd19,''[_0x10cbc7(0x197)](_0x1eb040),{'defIds':_0x5ffd19[_0x10cbc7(0x1ff)],'idSuffix':_0x147e0a[_0x10cbc7(0x246)]},u({'ref':_0x20b6c3,'className':_0x5ecf9c},_0x35c8a2),_0x4ac414);});function y(_0x2df939,_0x2140b3,_0x5b454d,_0x104b3c,_0x530a27){var _0x20ba4b=_0x38e991;return f['createElement'](_0x2df939[_0x20ba4b(0x1b6)],u(u({'key':_0x2140b3},H(_0x2df939,_0x5b454d,_0x530a27)),_0x104b3c),(V(_0x2df939,_0x5b454d)[_0x20ba4b(0x205)]||[])[_0x20ba4b(0x1f7)](function(_0x18613f,_0x2c897c){var _0x51cca5=_0x20ba4b;return y(_0x18613f,''[_0x51cca5(0x197)](_0x2140b3,'-')[_0x51cca5(0x197)](_0x2df939[_0x51cca5(0x1b6)],'-')[_0x51cca5(0x197)](_0x2c897c),_0x5b454d,void 0x0,_0x530a27);}));}function H(_0x43cb34,_0x51ad81,_0x3c81fd){var _0x19bf92=_0x38e991,_0x30da0c=u({},_0x43cb34['attrs']);_0x3c81fd!=null&&_0x3c81fd[_0x19bf92(0x260)]&&_0x30da0c[_0x19bf92(0x19a)]===_0x19bf92(0x260)&&(_0x30da0c[_0x19bf92(0x19a)]=_0x3c81fd[_0x19bf92(0x260)]),_0x43cb34[_0x19bf92(0x1b6)]===_0x19bf92(0x1b1)&&_0x30da0c['id']&&(_0x30da0c['id']=_0x30da0c['id']+_0x51ad81[_0x19bf92(0x248)]),Object[_0x19bf92(0x254)](_0x30da0c)[_0x19bf92(0x219)](function(_0x579039){var _0x30baaf=_0x19bf92,_0x19cfc5=_0x579039[0x0],_0x24018d=_0x579039[0x1];_0x19cfc5===_0x30baaf(0x1b1)&&typeof _0x24018d==_0x30baaf(0x1d4)&&(_0x30da0c[_0x19cfc5]=_0x24018d[_0x30baaf(0x257)](/url\(#(.*)\)/,_0x30baaf(0x1ca)[_0x30baaf(0x197)](_0x51ad81[_0x30baaf(0x248)],')')));});var _0x4a17d7=_0x51ad81[_0x19bf92(0x1ff)];return!_0x4a17d7||_0x4a17d7[_0x19bf92(0x1d5)]===0x0||(_0x43cb34['tag']==='use'&&_0x30da0c[_0x19bf92(0x1e1)]&&(_0x30da0c['xlink:href']=_0x30da0c[_0x19bf92(0x1e1)]+_0x51ad81[_0x19bf92(0x248)]),Object['entries'](_0x30da0c)['forEach'](function(_0x4e194b){var _0x3070f3=_0x19bf92,_0x6d7a9d=_0x4e194b[0x0],_0x4ed9f9=_0x4e194b[0x1];typeof _0x4ed9f9==_0x3070f3(0x1d4)&&(_0x30da0c[_0x6d7a9d]=_0x4ed9f9[_0x3070f3(0x257)](/url\(#(.*)\)/,_0x3070f3(0x1ca)[_0x3070f3(0x197)](_0x51ad81['idSuffix'],')')));})),_0x30da0c;}function V(_0x99e8dc,_0xa1812a){var _0x43f6a6=_0x38e991,_0x12e1f8,_0x4015da=_0xa1812a[_0x43f6a6(0x1ff)];return!_0x4015da||_0x4015da['length']===0x0?_0x99e8dc:_0x99e8dc[_0x43f6a6(0x1b6)]===_0x43f6a6(0x1f8)&&(!((_0x12e1f8=_0x99e8dc['children'])===null||_0x12e1f8===void 0x0)&&_0x12e1f8[_0x43f6a6(0x1d5)])?u(u({},_0x99e8dc),{'children':_0x99e8dc[_0x43f6a6(0x205)][_0x43f6a6(0x1f7)](function(_0x10bf8b){var _0x53d7e2=_0x43f6a6;return typeof _0x10bf8b[_0x53d7e2(0x20a)]['id']=='string'&&_0x4015da&&_0x4015da[_0x53d7e2(0x244)](_0x10bf8b[_0x53d7e2(0x20a)]['id'])?u(u({},_0x10bf8b),{'attrs':u(u({},_0x10bf8b[_0x53d7e2(0x20a)]),{'id':_0x10bf8b[_0x53d7e2(0x20a)]['id']+_0xa1812a[_0x53d7e2(0x248)]})}):_0x10bf8b;})}):_0x99e8dc;}function k(){var _0x51a297=_0x38e991;return Math[_0x51a297(0x1c6)]()[_0x51a297(0x1c2)](0x24)[_0x51a297(0x1ea)](0x2,0x8);}j[_0x38e991(0x229)]=_0x38e991(0x25e);var M={'tag':_0x38e991(0x1cf),'attrs':{'xmlns':_0x38e991(0x216),'fill':_0x38e991(0x236),'viewBox':_0x38e991(0x1d8),'width':_0x38e991(0x1b3),'height':_0x38e991(0x1b3)},'children':[{'tag':_0x38e991(0x25c),'attrs':{'fill':'currentColor','d':_0x38e991(0x1a6)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x38e991(0x1b9),'fillRule':'evenodd','clipRule':'evenodd'}}]},P=f[_0x38e991(0x1f9)](function(_0x423bd1,_0x44a4a3){var _0x4b907d=_0x38e991;return f['createElement'](j,Object[_0x4b907d(0x1c3)]({},_0x423bd1,{'id':_0x4b907d(0x1d0),'ref':_0x44a4a3,'icon':M}));});P[_0x38e991(0x229)]=_0x38e991(0x26b);class O extends o['Disposable']{constructor(){super(...arguments),v(this,'_sharedOperations',new Set()),v(this,'_reporters',new Set());}['registerSharedOperation'](_0x934a24){var _0x17e657=_0x38e991;return this[_0x17e657(0x212)][_0x17e657(0x202)](_0x934a24),o[_0x17e657(0x258)](()=>this[_0x17e657(0x212)][_0x17e657(0x1e2)](_0x934a24));}[_0x38e991(0x213)](_0x568489){var _0x606a18=_0x38e991;return this[_0x606a18(0x21d)][_0x606a18(0x202)](_0x568489),o[_0x606a18(0x258)](()=>this[_0x606a18(0x21d)][_0x606a18(0x1e2)](_0x568489));}[_0x38e991(0x1d9)](_0x49006b){var _0x219845=_0x38e991;return this[_0x219845(0x212)][_0x219845(0x23a)](_0x49006b);}[_0x38e991(0x1c4)](_0x33948a){var _0x109b3a=_0x38e991;return Array[_0x109b3a(0x1c5)](this[_0x109b3a(0x21d)])['map'](_0x16529c=>_0x16529c(_0x33948a));}}var q=Object[_0x38e991(0x1be)],R=(_0x1813de,_0x4eb6ef,_0x50ba7a,_0x585b28)=>{for(var _0x30e556=_0x585b28>0x1?void 0x0:_0x585b28?q(_0x4eb6ef,_0x50ba7a):_0x4eb6ef,_0x55e7b3=_0x1813de['length']-0x1,_0x42fc26;_0x55e7b3>=0x0;_0x55e7b3--)(_0x42fc26=_0x1813de[_0x55e7b3])&&(_0x30e556=_0x42fc26(_0x30e556)||_0x30e556);return _0x30e556;},S=(_0x45e040,_0x5d81b3)=>(_0x212b4f,_0x3299a1)=>_0x5d81b3(_0x212b4f,_0x3299a1,_0x45e040);exports[_0x38e991(0x1fe)]=class extends o[_0x38e991(0x1d2)]{constructor(_0x448fa6,_0x2fd816,_0x43d796){var _0x35686c=_0x38e991;super(),v(this,'_entities',new Map()),(this[_0x35686c(0x221)]=_0x448fa6,this[_0x35686c(0x270)]=_0x2fd816,this[_0x35686c(0x1e0)]=_0x43d796,this[_0x35686c(0x1a4)]());}async[_0x38e991(0x20f)](_0xb56644){var _0x89431f=_0x38e991;return this[_0x89431f(0x238)][_0x89431f(0x23a)](_0xb56644)||await this[_0x89431f(0x1cd)](_0xb56644),this[_0x89431f(0x238)][_0x89431f(0x1cb)](_0xb56644);}['_init'](){var _0x56e5ae=_0x38e991;this[_0x56e5ae(0x221)][_0x56e5ae(0x24d)](o[_0x56e5ae(0x20c)][_0x56e5ae(0x211)])[_0x56e5ae(0x1fd)](b[_0x56e5ae(0x268)](this['dispose$']))[_0x56e5ae(0x1a0)](async _0x26c25c=>{var _0x1596d4=_0x56e5ae;const _0x3a6cc6=_0x26c25c[_0x1596d4(0x252)]();this[_0x1596d4(0x238)][_0x1596d4(0x23a)](_0x3a6cc6)||this[_0x1596d4(0x1cd)](_0x3a6cc6);}),this[_0x56e5ae(0x221)]['getTypeOfUnitDisposed$'](o[_0x56e5ae(0x20c)][_0x56e5ae(0x211)])['pipe'](b['takeUntil'](this['dispose$']))[_0x56e5ae(0x1a0)](_0x245482=>{var _0x584f5d=_0x56e5ae;const _0xe80a18=_0x245482['getUnitId'](),_0x2b0275=this[_0x584f5d(0x238)][_0x584f5d(0x1cb)](_0xe80a18);_0x2b0275==null||_0x2b0275[_0x584f5d(0x1fc)]();});}async['_startLiveShareCoordinator'](_0x4c0779){var _0x2c895a=_0x38e991;const _0xbdd460=await this['_collabSessionService'][_0x2c895a(0x1bc)](_0x4c0779),_0x99f661=this[_0x2c895a(0x270)][_0x2c895a(0x23c)](exports[_0x2c895a(0x23f)],_0x4c0779,_0xbdd460);return _0x99f661[_0x2c895a(0x19e)](),this[_0x2c895a(0x238)][_0x2c895a(0x1aa)](_0x4c0779,_0x99f661),_0x99f661;}},exports[_0x38e991(0x1fe)]=R([S(0x0,o[_0x38e991(0x19c)]),S(0x1,o[_0x38e991(0x218)](o[_0x38e991(0x198)])),S(0x2,o[_0x38e991(0x218)](m['CollaborationSessionService']))],exports[_0x38e991(0x1fe)]);var h=(_0x55f725=>(_0x55f725[_0x38e991(0x25a)]=_0x38e991(0x21e),_0x55f725[_0x38e991(0x1d1)]=_0x38e991(0x1fb),_0x55f725[_0x38e991(0x245)]=_0x38e991(0x242),_0x55f725[_0x38e991(0x26c)]='not-following',_0x55f725[_0x38e991(0x26f)]=_0x38e991(0x249),_0x55f725))(h||{});const W=_0x38e991(0x233),G=0xc8;exports['LiveShareCoordinator']=class extends o[_0x38e991(0x1d2)]{constructor(_0xdb1d93,_0x4e5e72,_0x44cd59,_0x25d2fc,_0x2d4f33){var _0x161e5e=_0x38e991;super(),v(this,_0x161e5e(0x255),new w[(_0x161e5e(0x1d7))](_0x161e5e(0x1fb))),v(this,_0x161e5e(0x1f0),this['_status$']['asObservable']()),v(this,_0x161e5e(0x1a4),!0x1),v(this,_0x161e5e(0x1f4),null),v(this,_0x161e5e(0x208),null),(this[_0x161e5e(0x266)]=_0xdb1d93,this[_0x161e5e(0x207)]=_0x4e5e72,this['_configService']=_0x44cd59,this[_0x161e5e(0x264)]=_0x25d2fc,this[_0x161e5e(0x251)]=_0x2d4f33);}get[_0x38e991(0x26e)](){var _0x5bb1a0=_0x38e991;return this[_0x5bb1a0(0x255)]['getValue']();}[_0x38e991(0x1fc)](){var _0x2cebaa=_0x38e991,_0xbbb6ff;(_0xbbb6ff=this[_0x2cebaa(0x1f4)])==null||_0xbbb6ff[_0x2cebaa(0x1fc)](),this['_status$'][_0x2cebaa(0x1b7)](_0x2cebaa(0x1fb)),this[_0x2cebaa(0x255)]['complete']();}[_0x38e991(0x19e)](){var _0x4b1a70=_0x38e991;this[_0x4b1a70(0x1a4)]||(this[_0x4b1a70(0x1a4)]=!0x0,this['_collabSession'][_0x4b1a70(0x204)][_0x4b1a70(0x1fd)](b['takeUntil'](this[_0x4b1a70(0x24c)]))[_0x4b1a70(0x1a0)](_0xc4593b=>{var _0x21bbbc=_0x4b1a70;switch(_0xc4593b){case m[_0x21bbbc(0x1c8)][_0x21bbbc(0x25a)]:this['_handleOffline']();break;case m['SessionStatus'][_0x21bbbc(0x1ee)]:this['_handleOnline']();break;}}),this[_0x4b1a70(0x207)][_0x4b1a70(0x1ae)][_0x4b1a70(0x1fd)](b['takeUntil'](this[_0x4b1a70(0x24c)]))[_0x4b1a70(0x1a0)](_0x59c8e7=>{var _0x57fef2=_0x4b1a70;const {eventID:_0x3e62d1}=_0x59c8e7;switch(_0x3e62d1){case _[_0x57fef2(0x1e7)][_0x57fef2(0x1ed)]:this[_0x57fef2(0x195)](_0x59c8e7);break;case _[_0x57fef2(0x1e7)][_0x57fef2(0x1ad)]:this[_0x57fef2(0x1c9)](_0x59c8e7);break;case _['CollaborationEvent'][_0x57fef2(0x19b)]:this[_0x57fef2(0x235)]();break;case _[_0x57fef2(0x1e7)]['NEW_CHANGESETS']:this[_0x57fef2(0x1f3)](_0x59c8e7);break;}}));}['tryStartPresenting'](){var _0x1203bc=_0x38e991;this[_0x1203bc(0x207)][_0x1203bc(0x22e)]({'eventID':_['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x1203bc(0x266)],'userID':this[_0x1203bc(0x207)]['getMemberID']()}},this[_0x1203bc(0x266)]);}[_0x38e991(0x215)](){var _0x5ea0d0=_0x38e991;this[_0x5ea0d0(0x26e)]===_0x5ea0d0(0x249)&&(this[_0x5ea0d0(0x255)][_0x5ea0d0(0x1b7)](_0x5ea0d0(0x1fb)),this[_0x5ea0d0(0x207)][_0x5ea0d0(0x22e)]({'eventID':_[_0x5ea0d0(0x1e7)][_0x5ea0d0(0x19b)],'data':{'unitID':this['_unitID']}},this[_0x5ea0d0(0x266)]));}[_0x38e991(0x220)](){var _0xb049f2=_0x38e991;this[_0xb049f2(0x26e)]===_0xb049f2(0x1cc)&&(this[_0xb049f2(0x255)][_0xb049f2(0x1b7)](_0xb049f2(0x242)),this[_0xb049f2(0x267)]());}['stopFollowing'](){var _0x40abcb=_0x38e991;this[_0x40abcb(0x26e)]===_0x40abcb(0x242)&&this[_0x40abcb(0x1e9)]();}[_0x38e991(0x195)](_0x379c95){var _0x1c1692=_0x38e991;const {presenter:_0xf01961}=_0x379c95['data'],_0x479f1a=this[_0x1c1692(0x207)][_0x1c1692(0x21b)]();this[_0x1c1692(0x208)]=_0xf01961,_0xf01961===_0x479f1a?(this[_0x1c1692(0x1e9)](),this['_startPresenting']()):this[_0x1c1692(0x26e)]!==_0x1c1692(0x1cc)&&(this[_0x1c1692(0x1ef)](),this[_0x1c1692(0x267)]());}[_0x38e991(0x1dd)](){var _0x3ac5a7=_0x38e991;const _0x3132fd={'eventID':_['CollaborationEvent'][_0x3ac5a7(0x1bf)]};this['_collabSession']['send'](_0x3132fd,this['_unitID']);}['_handleTerminate'](){var _0x4925d=_0x38e991;this[_0x4925d(0x208)]=null,this['_status']!=='presenting'&&this[_0x4925d(0x1a9)]();}[_0x38e991(0x1f3)](_0x27a2e9){var _0x27980a=_0x38e991;if(this[_0x27980a(0x26e)]===_0x27980a(0x242)&&this['_presenter']===_0x27a2e9[_0x27980a(0x199)][_0x27980a(0x196)]){const _0x181311=_[_0x27980a(0x194)](_0x27a2e9[_0x27980a(0x199)])['mutations']['reverse']()[_0x27980a(0x1af)](_0x55ee59=>_0x55ee59['id']===C[_0x27980a(0x1c1)]['id']);if(_0x181311){const _0x5e80fc=_0x181311[_0x27980a(0x1a3)][_0x27980a(0x1b2)],_0x3bba43=_0x181311[_0x27980a(0x1a3)]['sheet']['id'];setTimeout(()=>{var _0x28f4ce=_0x27980a;this[_0x28f4ce(0x251)]['executeCommand'](C[_0x28f4ce(0x25f)]['id'],{'unitId':_0x5e80fc,'subUnitId':_0x3bba43},{'fromCollab':!0x0});});}}}[_0x38e991(0x1da)](){var _0x31e674=_0x38e991;this['_status$'][_0x31e674(0x1b7)](_0x31e674(0x249));const _0x24e08b=new Map(),_0x57ed5c=this['_commandDisposable']=new o['DisposableCollection']();_0x57ed5c['add'](o[_0x31e674(0x258)](()=>{var _0x475020=_0x31e674;_0x24e08b[_0x475020(0x219)](_0x4a921f=>_0x4a921f[_0x475020(0x239)]()),_0x24e08b[_0x475020(0x1fa)]();})),_0x57ed5c[_0x31e674(0x202)](this[_0x31e674(0x251)]['onCommandExecuted'](_0xdd6862=>{var _0x120d99=_0x31e674,_0x5aa729;if(_0xdd6862[_0x120d99(0x1e5)]!==o[_0x120d99(0x1c0)][_0x120d99(0x1e4)]||!this['_liveShareService'][_0x120d99(0x1d9)](_0xdd6862['id']))return;const {id:_0x4b4c56}=_0xdd6862;let _0x4b4590;_0x24e08b[_0x120d99(0x23a)](_0x4b4c56)?_0x4b4590=_0x24e08b[_0x120d99(0x1cb)](_0x4b4c56):(_0x4b4590=new w['Subject'](),_0x24e08b[_0x120d99(0x1aa)](_0x4b4c56,_0x4b4590),_0x4b4590[_0x120d99(0x1fd)](b[_0x120d99(0x1ce)]((_0x5aa729=this[_0x120d99(0x1a8)][_0x120d99(0x243)](W))!=null?_0x5aa729:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x120d99(0x1a0)](_0x17821f=>{var _0x12f7a6=_0x120d99;this[_0x12f7a6(0x207)][_0x12f7a6(0x22e)]({'eventID':_[_0x12f7a6(0x1e7)][_0x12f7a6(0x1ad)],'data':{'unitID':this['_unitID'],'operations':{[_0x17821f['id']]:{'id':_0x17821f['id'],'params':JSON['stringify'](_0x17821f[_0x12f7a6(0x1a3)])}}}},this['_unitID']);})),_0x4b4590[_0x120d99(0x1b7)](_0xdd6862);})),this[_0x31e674(0x264)][_0x31e674(0x1c4)](this[_0x31e674(0x266)])[_0x31e674(0x219)](_0x22e3da=>this[_0x31e674(0x207)]['send']({'eventID':_[_0x31e674(0x1e7)][_0x31e674(0x1ad)],'data':{'unitID':this['_unitID'],'operations':{[_0x22e3da['id']]:{'id':_0x22e3da['id'],'params':JSON[_0x31e674(0x1f5)](_0x22e3da[_0x31e674(0x1a3)])}}}},this[_0x31e674(0x266)]));}[_0x38e991(0x1ef)](){var _0x1ddb05=_0x38e991,_0x1b2841;this[_0x1ddb05(0x255)]['next'](_0x1ddb05(0x1fb)),(_0x1b2841=this['_commandDisposable'])==null||_0x1b2841[_0x1ddb05(0x1fc)](),this['_commandDisposable']=null;}[_0x38e991(0x267)](){var _0xbcc0dc=_0x38e991,_0x132549;(_0x132549=this[_0xbcc0dc(0x1f4)])==null||_0x132549[_0xbcc0dc(0x1fc)](),this[_0xbcc0dc(0x255)][_0xbcc0dc(0x1b7)](_0xbcc0dc(0x242));}[_0x38e991(0x1a9)](){var _0x2096d7=_0x38e991,_0x5daa30;this[_0x2096d7(0x255)]['next']('idle'),(_0x5daa30=this[_0x2096d7(0x1f4)])==null||_0x5daa30[_0x2096d7(0x1fc)](),this[_0x2096d7(0x1f4)]=null;}[_0x38e991(0x1e9)](){var _0x5b0e1f=_0x38e991,_0x5f107c;this[_0x5b0e1f(0x255)][_0x5b0e1f(0x1b7)](_0x5b0e1f(0x1cc)),(_0x5f107c=this['_commandDisposable'])==null||_0x5f107c['dispose']();}[_0x38e991(0x1c9)](_0x38d406){var _0x4d5dae=_0x38e991;if(['presenting',_0x4d5dae(0x1cc),_0x4d5dae(0x21e)]['includes'](this['_status'])||!_0x38d406[_0x4d5dae(0x199)][_0x4d5dae(0x206)]||_0x38d406['data']['presenter']===this[_0x4d5dae(0x207)][_0x4d5dae(0x21b)]())return;this[_0x4d5dae(0x26e)]===_0x4d5dae(0x1fb)&&this[_0x4d5dae(0x267)]();const _0x27edd8=_0x38d406['data'][_0x4d5dae(0x22d)];Object[_0x4d5dae(0x1db)](_0x27edd8)[_0x4d5dae(0x219)](_0x1607af=>{var _0x35ae54=_0x4d5dae;this[_0x35ae54(0x251)]['executeCommand'](_0x1607af['id'],_0x1607af[_0x35ae54(0x1a3)]?JSON['parse'](_0x1607af[_0x35ae54(0x1a3)]):null,{'fromCollab':!0x0});});}[_0x38e991(0x1b0)](){var _0x513cc7=_0x38e991,_0x1bc516;this[_0x513cc7(0x255)][_0x513cc7(0x1b7)](_0x513cc7(0x21e)),(_0x1bc516=this['_commandDisposable'])==null||_0x1bc516[_0x513cc7(0x1fc)]();}[_0x38e991(0x240)](){var _0x22006e=_0x38e991;this[_0x22006e(0x255)]['next'](_0x22006e(0x1fb)),this[_0x22006e(0x1dd)]();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x38e991(0x21c)]),S(0x3,o[_0x38e991(0x218)](O)),S(0x4,o[_0x38e991(0x241)])],exports[_0x38e991(0x23f)]);function A(){var _0x25c079=_0x38e991;const _0x44863a=p['useDependency'](exports[_0x25c079(0x1fe)]),_0x116726=p[_0x25c079(0x234)](o['IUniverInstanceService']),_0x73d01f=p[_0x25c079(0x217)](()=>_0x116726[_0x25c079(0x24f)](o[_0x25c079(0x20c)][_0x25c079(0x211)]),void 0x0,!0x1,[]),[_0x5222ad,_0x23c09c]=f['useState'](null),[_0x635eb,_0x5b26a3]=f[_0x25c079(0x1ec)](h[_0x25c079(0x1d1)]),_0xaee3aa=f[_0x25c079(0x222)](null);return f['useEffect'](()=>(_0x73d01f&&_0x44863a[_0x25c079(0x20f)](_0x73d01f['getUnitId']())[_0x25c079(0x261)](_0x313299=>{var _0x51562f=_0x25c079;_0x23c09c(_0x313299),_0xaee3aa['current']=_0x313299[_0x51562f(0x1f0)]['subscribe'](_0x37b4cb=>{_0x5b26a3(_0x37b4cb);});}),()=>{var _0x3ffec6=_0x25c079,_0x2a4e9f;(_0x2a4e9f=_0xaee3aa[_0x3ffec6(0x246)])==null||_0x2a4e9f[_0x3ffec6(0x1a1)](),_0xaee3aa[_0x3ffec6(0x246)]=null;}),[_0x73d01f,_0x44863a]),_0x5222ad?l[_0x25c079(0x26d)](g['Dropdown'],{'align':_0x25c079(0x1ba),'disabled':_0x635eb===h[_0x25c079(0x25a)],'className':_0x25c079(0x19d),'overlay':l[_0x25c079(0x26d)](B,{'status':_0x635eb,'coordinator':_0x5222ad}),'children':l['jsx'](_0x25c079(0x24b),{'className':g['clsx'](_0x25c079(0x1eb),{'univer-cursor-not-allowed':_0x635eb===h[_0x25c079(0x25a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x635eb!==h[_0x25c079(0x25a)]}),'type':_0x25c079(0x24b),'children':l[_0x25c079(0x26d)](P,{'className':_0x25c079(0x271)})})}):null;}function B(_0x56dc91){var _0x4dc8a4=_0x38e991;const {status:_0x50a69d,coordinator:_0xf754d4}=_0x56dc91;switch(_0x50a69d){case h[_0x4dc8a4(0x1d1)]:return l['jsx'](Y,{'coordinator':_0xf754d4});case h[_0x4dc8a4(0x245)]:return l[_0x4dc8a4(0x26d)](Z,{'coordinator':_0xf754d4});case h[_0x4dc8a4(0x26c)]:return l[_0x4dc8a4(0x26d)](J,{'coordinator':_0xf754d4});case h[_0x4dc8a4(0x25a)]:return l['jsx'](z,{});case h[_0x4dc8a4(0x26f)]:return l['jsx'](K,{'coordinator':_0xf754d4});default:return null;}}function Y(_0x46a70a){var _0x494bf0=_0x38e991;const {coordinator:_0x432676}=_0x46a70a;return l[_0x494bf0(0x23e)](l[_0x494bf0(0x20e)],{'children':[l[_0x494bf0(0x26d)](_0x494bf0(0x24a),{'className':_0x494bf0(0x259),'children':'Present\x20this\x20document'}),l['jsx'](g[_0x494bf0(0x265)],{'onClick':()=>_0x432676[_0x494bf0(0x1b5)](),'children':_0x494bf0(0x253)})]});}function Z(_0x1d2b0f){var _0x4073c1=_0x38e991;const {coordinator:_0x51d33a}=_0x1d2b0f;return l[_0x4073c1(0x23e)](l[_0x4073c1(0x20e)],{'children':[l[_0x4073c1(0x26d)](_0x4073c1(0x24a),{'className':_0x4073c1(0x259),'children':'You\x27re\x20following\x20the\x20presenter'}),l['jsx'](g[_0x4073c1(0x265)],{'onClick':()=>_0x51d33a[_0x4073c1(0x25b)](),'children':_0x4073c1(0x1f6)})]});}function J(_0x46d947){var _0x361af4=_0x38e991;const {coordinator:_0x59fc6d}=_0x46d947;return l[_0x361af4(0x23e)](l[_0x361af4(0x20e)],{'children':[l[_0x361af4(0x26d)]('div',{'className':_0x361af4(0x259),'children':_0x361af4(0x23d)}),l[_0x361af4(0x26d)](g[_0x361af4(0x265)],{'variant':_0x361af4(0x209),'onClick':()=>_0x59fc6d[_0x361af4(0x220)](),'children':_0x361af4(0x262)})]});}function K(_0x304959){var _0x77dcea=_0x38e991;const {coordinator:_0x4acc5b}=_0x304959;return l[_0x77dcea(0x23e)](l[_0x77dcea(0x20e)],{'children':[l[_0x77dcea(0x26d)]('div',{'className':_0x77dcea(0x259),'children':_0x77dcea(0x223)}),l[_0x77dcea(0x26d)](g[_0x77dcea(0x265)],{'variant':_0x77dcea(0x256),'onClick':()=>_0x4acc5b[_0x77dcea(0x215)](),'children':_0x77dcea(0x1d6)})]});}function z(){var _0x6d0a0a=_0x38e991;return l[_0x6d0a0a(0x26d)](l['Fragment'],{'children':'You\x27are\x20offline.'});}var Q=Object[_0x38e991(0x1be)],X=(_0x2ae37f,_0x5c0c94,_0x496f95,_0x300d3e)=>{var _0x5f13b8=_0x38e991;for(var _0x33bebf=_0x300d3e>0x1?void 0x0:_0x300d3e?Q(_0x5c0c94,_0x496f95):_0x5c0c94,_0x4d1214=_0x2ae37f[_0x5f13b8(0x1d5)]-0x1,_0x8972c;_0x4d1214>=0x0;_0x4d1214--)(_0x8972c=_0x2ae37f[_0x4d1214])&&(_0x33bebf=_0x8972c(_0x33bebf)||_0x33bebf);return _0x33bebf;},x=(_0x4862e0,_0x4de1ee)=>(_0x16bd5e,_0x585c2c)=>_0x4de1ee(_0x16bd5e,_0x585c2c,_0x4862e0);exports[_0x38e991(0x225)]=class extends o[_0x38e991(0x1b8)]{constructor(_0x2fa39c,_0x2d94f4){var _0x24c18a=_0x38e991;super(),this[_0x24c18a(0x270)]=_0x2fa39c,this['_uiPartsService']=_0x2d94f4,this[_0x24c18a(0x263)]();}['_mountLiveShare'](){var _0x2d73f7=_0x38e991;this[_0x2d73f7(0x230)](this[_0x2d73f7(0x1a2)]['registerComponent'](p[_0x2d73f7(0x22f)][_0x2d73f7(0x247)],()=>p[_0x2d73f7(0x1de)](A,this[_0x2d73f7(0x270)])));}},exports[_0x38e991(0x225)]=X([x(0x0,o['Inject'](o[_0x38e991(0x198)])),x(0x1,p[_0x38e991(0x20b)])],exports[_0x38e991(0x225)]);const ee='live-share.config',L={};var te=Object[_0x38e991(0x1be)],ie=(_0x2d3ff0,_0x5ef856,_0x3e7654,_0x3fb01e)=>{var _0x40f4b1=_0x38e991;for(var _0x275fae=_0x3fb01e>0x1?void 0x0:_0x3fb01e?te(_0x5ef856,_0x3e7654):_0x5ef856,_0x2a9fce=_0x2d3ff0[_0x40f4b1(0x1d5)]-0x1,_0x278b2b;_0x2a9fce>=0x0;_0x2a9fce--)(_0x278b2b=_0x2d3ff0[_0x2a9fce])&&(_0x275fae=_0x278b2b(_0x275fae)||_0x275fae);return _0x275fae;},ne=(_0x18998f,_0x22afbb)=>(_0x57e9f9,_0x4e0bd9)=>_0x22afbb(_0x57e9f9,_0x4e0bd9,_0x18998f);let E=class extends o[_0x38e991(0x1b8)]{constructor(_0x573c25){var _0x38cab9=_0x38e991;super(),this[_0x38cab9(0x264)]=_0x573c25,this[_0x38cab9(0x1a4)]();}['_init'](){var _0x29776b=_0x38e991;[D[_0x29776b(0x1e3)]['id'],D[_0x29776b(0x210)]['id'],C[_0x29776b(0x25f)]['id']][_0x29776b(0x219)](_0x55496b=>{var _0x143148=_0x29776b;this[_0x143148(0x230)](this[_0x143148(0x264)]['registerSharedOperation'](_0x55496b));});}};E=ie([ne(0x0,o[_0x38e991(0x218)](O))],E);var re=Object[_0x38e991(0x272)],se=Object[_0x38e991(0x1be)],oe=(_0x289298,_0x392013,_0xeaed8d)=>_0x392013 in _0x289298?re(_0x289298,_0x392013,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xeaed8d}):_0x289298[_0x392013]=_0xeaed8d,ae=(_0x53c303,_0x5e8b89,_0x5efa1a,_0x1e10a5)=>{var _0x513a5f=_0x38e991;for(var _0x1888d8=_0x1e10a5>0x1?void 0x0:_0x1e10a5?se(_0x5e8b89,_0x5efa1a):_0x5e8b89,_0x4b2081=_0x53c303[_0x513a5f(0x1d5)]-0x1,_0x4bda74;_0x4b2081>=0x0;_0x4b2081--)(_0x4bda74=_0x53c303[_0x4b2081])&&(_0x1888d8=_0x4bda74(_0x1888d8)||_0x1888d8);return _0x1888d8;},N=(_0x5ca200,_0x1e9bfb)=>(_0x4a9cf3,_0x7cb7f7)=>_0x1e9bfb(_0x4a9cf3,_0x7cb7f7,_0x5ca200),T=(_0x5b1cd7,_0x4722ee,_0x5a826e)=>oe(_0x5b1cd7,typeof _0x4722ee!=_0x38e991(0x21f)?_0x4722ee+'':_0x4722ee,_0x5a826e);const le='UNIVER_LIVE_SHARE_PLUGIN';exports['UniverLiveSharePlugin']=class extends o[_0x38e991(0x22b)]{constructor(_0x1dbfe9=L,_0x42dcf2,_0x4aab31){var _0x4de9fe=_0x38e991;super(),this[_0x4de9fe(0x1a7)]=_0x1dbfe9,this['_injector']=_0x42dcf2,this[_0x4de9fe(0x1a8)]=_0x4aab31;const {..._0x2cd967}=o[_0x4de9fe(0x23b)]({},L,this['_config']);this[_0x4de9fe(0x1a8)][_0x4de9fe(0x224)](ee,_0x2cd967);}[_0x38e991(0x227)](){var _0x36bbb0=_0x38e991;o['registerDependencies'](this['_injector'],o[_0x36bbb0(0x193)]([[O],[exports[_0x36bbb0(0x1fe)]],[E],[exports[_0x36bbb0(0x225)]]],this[_0x36bbb0(0x1a7)][_0x36bbb0(0x237)])),o[_0x36bbb0(0x1f2)](this[_0x36bbb0(0x270)],[[E]]);}[_0x38e991(0x1ac)](){var _0x508f05=_0x38e991;o[_0x508f05(0x1f2)](this[_0x508f05(0x270)],[[exports[_0x508f05(0x225)]]]);}},T(exports[_0x38e991(0x228)],_0x38e991(0x1e5),o[_0x38e991(0x20c)][_0x38e991(0x214)]),T(exports[_0x38e991(0x228)],_0x38e991(0x269),le),exports[_0x38e991(0x228)]=ae([o[_0x38e991(0x232)](m['UniverCollaborationClientPlugin']),N(0x1,o['Inject'](o[_0x38e991(0x198)])),N(0x2,o[_0x38e991(0x21c)])],exports[_0x38e991(0x228)]),exports[_0x38e991(0x1e6)]=A,exports[_0x38e991(0x1bb)]=O,exports[_0x38e991(0x1c7)]=h;
|
|
1
|
+
'use strict';var _0x58510e=_0x31de;(function(_0x5a9fd0,_0x4bef4c){var _0x116eee=_0x31de,_0x5bf384=_0x5a9fd0();while(!![]){try{var _0x58821d=-parseInt(_0x116eee(0x155))/0x1+-parseInt(_0x116eee(0x19f))/0x2+-parseInt(_0x116eee(0x152))/0x3*(parseInt(_0x116eee(0x171))/0x4)+-parseInt(_0x116eee(0x120))/0x5+parseInt(_0x116eee(0x16a))/0x6+-parseInt(_0x116eee(0x12c))/0x7+-parseInt(_0x116eee(0x1b1))/0x8*(-parseInt(_0x116eee(0x187))/0x9);if(_0x58821d===_0x4bef4c)break;else _0x5bf384['push'](_0x5bf384['shift']());}catch(_0x20b0be){_0x5bf384['push'](_0x5bf384['shift']());}}}(_0x2097,0xbe11c));var U=Object[_0x58510e(0x12d)],F=(_0x5826a0,_0x170bfe,_0xc5c999)=>_0x170bfe in _0x5826a0?U(_0x5826a0,_0x170bfe,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc5c999}):_0x5826a0[_0x170bfe]=_0xc5c999,v=(_0x972eda,_0x5e289b,_0x21abc7)=>F(_0x972eda,typeof _0x5e289b!='symbol'?_0x5e289b+'':_0x5e289b,_0x21abc7);Object[_0x58510e(0x12d)](exports,Symbol['toStringTag'],{'value':'Module'});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function _0x2097(){var _0x4f9f25=['Stop\x20presenting','_stopPresenting','_status','_handleOnline','PRESENTING','OPERATION','send','jsxs','delete','Disposable','LiveShare','UNIVER_SHEET','UniverLiveSharePlugin','replace','forwardRef','useObservable','getInitialStates','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','SAME_OPERATION_SHARE_INTERVAL','OFFLINE','UniverInstanceType','dispose','Start\x20following','Plugin','_handleNewChangeSets','_fetchOperations','pluginName','useRef','3yltJIJ','LIVESHARE_NEW_HOST','function','1362382mFCtsn','entries','end','div','HEADER_MENU','0\x200\x2017\x2017','following','_injector','sheet','disposeWithMe','attrs','init','_commandService','getOwnPropertyDescriptor','_reporters','type','jsx','getCurrentTypeOfUnit$','touchDependencies','reverse','You\x27are\x20offline.','6840420hWwmHX','not-following','CollaborationEvent','useDependency','1em','_handleTerminate','UNIVER_LIVE_SHARE_PLUGIN','5745876OLGNRR','http://www.w3.org/2000/svg','_beIdle','mask','InsertSheetMutation','_configService','_unitID','executeCommand','sessionStatus$','ICommandService','currentColor','DependentOn','idle','LiveShareController','map','DesktopLiveShareController','univer-mb-3\x20univer-w-full\x20univer-text-sm','_init','_handleNewHost','stopPresenting','_handleOffline','tag','63wcDjFU','unitId','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','defs','xlink:href','_config','subscribe','params','displayName','concat','useEffect','defIds','_entities','_liveShareService','Fragment','assign','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_commandDisposable','connectInjector','_startLiveShareCoordinator','hasOwnProperty','IUniverInstanceService','You\x27re\x20not\x20following\x20the\x20presenter','SessionStatus','1897630tDowGU','toDisposable','Injector','IUIPartsService','LiveShareCoordinator','presenter','SetZoomRatioOperation','Button','univerjs-icon\x20univerjs-icon-','_startFollowing','className','colorChannel1','Subject','svg','_sharedOperations','getConfig','data','string','4659696eKlbji','_status$','ONLINE','startFollowing','_univerInstanceService','_collabSession','useState','length','_presenter','getMemberID','univer-size-4','takeUntil','IDLE','BehaviorSubject','RxDisposable','_startPresenting','indexOf','prototype','FOLLOWING','getLiveShareCoordinator','values','call','use','add','pipe','live-share.config','next','from','stringify','IConfigService','registerDependencies','icon','NEW_CHANGESETS','_handleOperation','registerSharedOperation','evenodd','children','LiveShareIcon','url(#$1','getValue','dispose$','event$','offline','LIVESHARE_REQUEST_HOST','status$','_stopFollowing','registerComponent','DisposableCollection','throttleTime','stopFollowing','includes','asObservable','UNIVER_UNKNOWN','LiveShareStatus','has','requireSession','find','presenting','text','LIVESHARE_FETCH_OPERATIONS','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','getUnitId','_uiPartsService','toString','2810150QPnTNK','idSuffix','LIVESHARE_TERMINATE','registerInitialStateReporter','forEach','SetWorksheetActiveOperation','Inject','trim','NOT_FOLLOWING','setConfig','current','override','903588aJvMoz','defineProperty','tryStartPresenting','Present\x20this\x20document','extend','none','onRendered','merge','mergeOverrideWithDependencies','button'];_0x2097=function(){return _0x4f9f25;};return _0x2097();}var u=function(){var _0x586190=_0x58510e;return u=Object[_0x586190(0x196)]||function(_0x5ab37a){var _0x3811bd=_0x586190;for(var _0x4d9345,_0x4244c8=0x1,_0xdd53b6=arguments[_0x3811bd(0x1b8)];_0x4244c8<_0xdd53b6;_0x4244c8++){_0x4d9345=arguments[_0x4244c8];for(var _0x3ba631 in _0x4d9345)Object[_0x3811bd(0x1c2)][_0x3811bd(0x19b)]['call'](_0x4d9345,_0x3ba631)&&(_0x5ab37a[_0x3ba631]=_0x4d9345[_0x3ba631]);}return _0x5ab37a;},u['apply'](this,arguments);},$=function(_0x5289ae,_0x234d48){var _0xd026a1=_0x58510e,_0x5839ef={};for(var _0x3d4395 in _0x5289ae)Object['prototype'][_0xd026a1(0x19b)][_0xd026a1(0x1c6)](_0x5289ae,_0x3d4395)&&_0x234d48[_0xd026a1(0x1c1)](_0x3d4395)<0x0&&(_0x5839ef[_0x3d4395]=_0x5289ae[_0x3d4395]);if(_0x5289ae!=null&&typeof Object['getOwnPropertySymbols']==_0xd026a1(0x154)){for(var _0x5678a6=0x0,_0x3d4395=Object['getOwnPropertySymbols'](_0x5289ae);_0x5678a6<_0x3d4395[_0xd026a1(0x1b8)];_0x5678a6++)_0x234d48[_0xd026a1(0x1c1)](_0x3d4395[_0x5678a6])<0x0&&Object[_0xd026a1(0x1c2)]['propertyIsEnumerable'][_0xd026a1(0x1c6)](_0x5289ae,_0x3d4395[_0x5678a6])&&(_0x5839ef[_0x3d4395[_0x5678a6]]=_0x5289ae[_0x3d4395[_0x5678a6]]);}return _0x5839ef;},j=f[_0x58510e(0x144)](function(_0x1de2e1,_0x4bc73b){var _0x3cece5=_0x58510e,_0x2bd21e=_0x1de2e1[_0x3cece5(0x1d0)],_0x27016e=_0x1de2e1['id'],_0x2dcfbd=_0x1de2e1[_0x3cece5(0x1a9)],_0x5ef1d3=_0x1de2e1['extend'],_0x15e5f7=$(_0x1de2e1,[_0x3cece5(0x1d0),'id',_0x3cece5(0x1a9),_0x3cece5(0x130)]),_0x40f8dd=_0x3cece5(0x1a7)['concat'](_0x27016e,'\x20')[_0x3cece5(0x190)](_0x2dcfbd||'')[_0x3cece5(0x127)](),_0x5a22dd=f[_0x3cece5(0x151)]('_'[_0x3cece5(0x190)](k()));return y(_0x2bd21e,''[_0x3cece5(0x190)](_0x27016e),{'defIds':_0x2bd21e[_0x3cece5(0x192)],'idSuffix':_0x5a22dd[_0x3cece5(0x12a)]},u({'ref':_0x4bc73b,'className':_0x40f8dd},_0x15e5f7),_0x5ef1d3);});function y(_0x58dbcb,_0xc73a7e,_0x53f75d,_0x3eb29a,_0x1a35df){var _0x5d3c4d=_0x58510e;return f['createElement'](_0x58dbcb[_0x5d3c4d(0x186)],u(u({'key':_0xc73a7e},H(_0x58dbcb,_0x53f75d,_0x1a35df)),_0x3eb29a),(V(_0x58dbcb,_0x53f75d)[_0x5d3c4d(0x1d5)]||[])['map'](function(_0x19f4aa,_0x3d69f7){var _0x37ecaf=_0x5d3c4d;return y(_0x19f4aa,''['concat'](_0xc73a7e,'-')['concat'](_0x58dbcb[_0x37ecaf(0x186)],'-')[_0x37ecaf(0x190)](_0x3d69f7),_0x53f75d,void 0x0,_0x1a35df);}));}function H(_0x35174d,_0x4fee31,_0x246f8a){var _0x444d49=_0x58510e,_0x12f677=u({},_0x35174d[_0x444d49(0x15f)]);_0x246f8a!=null&&_0x246f8a[_0x444d49(0x1aa)]&&_0x12f677['fill']===_0x444d49(0x1aa)&&(_0x12f677['fill']=_0x246f8a['colorChannel1']),_0x35174d[_0x444d49(0x186)]===_0x444d49(0x174)&&_0x12f677['id']&&(_0x12f677['id']=_0x12f677['id']+_0x4fee31[_0x444d49(0x121)]),Object[_0x444d49(0x156)](_0x12f677)[_0x444d49(0x124)](function(_0x9a4aea){var _0x1aa33a=_0x444d49,_0x250ba6=_0x9a4aea[0x0],_0x479d2d=_0x9a4aea[0x1];_0x250ba6===_0x1aa33a(0x174)&&typeof _0x479d2d==_0x1aa33a(0x1b0)&&(_0x12f677[_0x250ba6]=_0x479d2d['replace'](/url\(#(.*)\)/,_0x1aa33a(0x1d7)[_0x1aa33a(0x190)](_0x4fee31[_0x1aa33a(0x121)],')')));});var _0x27e460=_0x4fee31[_0x444d49(0x192)];return!_0x27e460||_0x27e460[_0x444d49(0x1b8)]===0x0||(_0x35174d[_0x444d49(0x186)]===_0x444d49(0x1c7)&&_0x12f677[_0x444d49(0x18b)]&&(_0x12f677['xlink:href']=_0x12f677[_0x444d49(0x18b)]+_0x4fee31[_0x444d49(0x121)]),Object[_0x444d49(0x156)](_0x12f677)['forEach'](function(_0x2bcc7c){var _0x36401f=_0x444d49,_0x352461=_0x2bcc7c[0x0],_0x1ca7c7=_0x2bcc7c[0x1];typeof _0x1ca7c7==_0x36401f(0x1b0)&&(_0x12f677[_0x352461]=_0x1ca7c7[_0x36401f(0x143)](/url\(#(.*)\)/,_0x36401f(0x1d7)[_0x36401f(0x190)](_0x4fee31[_0x36401f(0x121)],')')));})),_0x12f677;}function V(_0x1cec05,_0x495402){var _0x15d402=_0x58510e,_0xa5e706,_0xc0cbba=_0x495402['defIds'];return!_0xc0cbba||_0xc0cbba[_0x15d402(0x1b8)]===0x0?_0x1cec05:_0x1cec05[_0x15d402(0x186)]===_0x15d402(0x18a)&&(!((_0xa5e706=_0x1cec05[_0x15d402(0x1d5)])===null||_0xa5e706===void 0x0)&&_0xa5e706[_0x15d402(0x1b8)])?u(u({},_0x1cec05),{'children':_0x1cec05['children'][_0x15d402(0x17f)](function(_0x34f427){var _0x2328e0=_0x15d402;return typeof _0x34f427[_0x2328e0(0x15f)]['id']==_0x2328e0(0x1b0)&&_0xc0cbba&&_0xc0cbba['includes'](_0x34f427[_0x2328e0(0x15f)]['id'])?u(u({},_0x34f427),{'attrs':u(u({},_0x34f427[_0x2328e0(0x15f)]),{'id':_0x34f427[_0x2328e0(0x15f)]['id']+_0x495402[_0x2328e0(0x121)]})}):_0x34f427;})}):_0x1cec05;}function k(){var _0x26d0ba=_0x58510e;return Math['random']()[_0x26d0ba(0x11f)](0x24)['substring'](0x2,0x8);}j['displayName']='UniverIcon';var M={'tag':_0x58510e(0x1ac),'attrs':{'xmlns':_0x58510e(0x172),'fill':_0x58510e(0x131),'viewBox':_0x58510e(0x15a),'width':_0x58510e(0x16e),'height':_0x58510e(0x16e)},'children':[{'tag':'path','attrs':{'fill':_0x58510e(0x17b),'d':_0x58510e(0x11c)}},{'tag':'path','attrs':{'fill':_0x58510e(0x17b),'d':_0x58510e(0x189),'fillRule':_0x58510e(0x1d4),'clipRule':_0x58510e(0x1d4)}}]},P=f['forwardRef'](function(_0x2b0310,_0x4ccab3){var _0x2a8104=_0x58510e;return f['createElement'](j,Object[_0x2a8104(0x196)]({},_0x2b0310,{'id':'live-share-icon','ref':_0x4ccab3,'icon':M}));});P[_0x58510e(0x18f)]=_0x58510e(0x1d6);class O extends o['Disposable']{constructor(){var _0x4b282d=_0x58510e;super(...arguments),v(this,_0x4b282d(0x1ad),new Set()),v(this,'_reporters',new Set());}[_0x58510e(0x1d3)](_0x2f7a38){var _0x175cf9=_0x58510e;return this[_0x175cf9(0x1ad)][_0x175cf9(0x1c8)](_0x2f7a38),o['toDisposable'](()=>this['_sharedOperations'][_0x175cf9(0x13e)](_0x2f7a38));}[_0x58510e(0x123)](_0x534854){var _0x478b61=_0x58510e;return this[_0x478b61(0x163)][_0x478b61(0x1c8)](_0x534854),o['toDisposable'](()=>this[_0x478b61(0x163)][_0x478b61(0x13e)](_0x534854));}['shouldShareOperation'](_0x392a3d){var _0x25d3f2=_0x58510e;return this[_0x25d3f2(0x1ad)]['has'](_0x392a3d);}[_0x58510e(0x146)](_0x592b50){var _0x556e62=_0x58510e;return Array[_0x556e62(0x1cc)](this[_0x556e62(0x163)])['map'](_0x2dc3e7=>_0x2dc3e7(_0x592b50));}}var q=Object['getOwnPropertyDescriptor'],R=(_0x38f0c9,_0x54289d,_0x19b9b7,_0x5e0221)=>{var _0x4b9e25=_0x58510e;for(var _0x13d733=_0x5e0221>0x1?void 0x0:_0x5e0221?q(_0x54289d,_0x19b9b7):_0x54289d,_0x197aaa=_0x38f0c9[_0x4b9e25(0x1b8)]-0x1,_0x2d1380;_0x197aaa>=0x0;_0x197aaa--)(_0x2d1380=_0x38f0c9[_0x197aaa])&&(_0x13d733=_0x2d1380(_0x13d733)||_0x13d733);return _0x13d733;},S=(_0x40ac08,_0x5ad646)=>(_0xf8a84c,_0x3e436a)=>_0x5ad646(_0xf8a84c,_0x3e436a,_0x40ac08);function _0x31de(_0x40de0b,_0xbd15b7){var _0x209784=_0x2097();return _0x31de=function(_0x31de76,_0x9d2ce4){_0x31de76=_0x31de76-0x115;var _0x1b89d7=_0x209784[_0x31de76];return _0x1b89d7;},_0x31de(_0x40de0b,_0xbd15b7);}exports['LiveShareController']=class extends o['RxDisposable']{constructor(_0x38c9e9,_0x11e419,_0x309327){var _0x2eaa14=_0x58510e;super(),v(this,'_entities',new Map()),(this[_0x2eaa14(0x1b5)]=_0x38c9e9,this[_0x2eaa14(0x15c)]=_0x11e419,this['_collabSessionService']=_0x309327,this[_0x2eaa14(0x182)]());}async['getLiveShareCoordinator'](_0x235cf5){var _0x2fcccf=_0x58510e;return this[_0x2fcccf(0x193)][_0x2fcccf(0x116)](_0x235cf5)||await this[_0x2fcccf(0x19a)](_0x235cf5),this[_0x2fcccf(0x193)]['get'](_0x235cf5);}['_init'](){var _0x4062d9=_0x58510e;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x4062d9(0x14a)][_0x4062d9(0x141)])['pipe'](b[_0x4062d9(0x1bc)](this['dispose$']))['subscribe'](async _0x91b11c=>{var _0x10b9b8=_0x4062d9;const _0x59d999=_0x91b11c['getUnitId']();this['_entities'][_0x10b9b8(0x116)](_0x59d999)||this[_0x10b9b8(0x19a)](_0x59d999);}),this[_0x4062d9(0x1b5)]['getTypeOfUnitDisposed$'](o['UniverInstanceType'][_0x4062d9(0x141)])['pipe'](b['takeUntil'](this[_0x4062d9(0x1d9)]))['subscribe'](_0x4d761a=>{var _0x2a28ec=_0x4062d9;const _0x2a8512=_0x4d761a['getUnitId'](),_0x41a0dc=this[_0x2a28ec(0x193)]['get'](_0x2a8512);_0x41a0dc==null||_0x41a0dc[_0x2a28ec(0x14b)]();});}async[_0x58510e(0x19a)](_0xab81ac){var _0x5a41b2=_0x58510e;const _0x27da5f=await this['_collabSessionService'][_0x5a41b2(0x117)](_0xab81ac),_0x214fa9=this[_0x5a41b2(0x15c)]['createInstance'](exports[_0x5a41b2(0x1a3)],_0xab81ac,_0x27da5f);return _0x214fa9['init'](),this[_0x5a41b2(0x193)]['set'](_0xab81ac,_0x214fa9),_0x214fa9;}},exports['LiveShareController']=R([S(0x0,o['IUniverInstanceService']),S(0x1,o['Inject'](o[_0x58510e(0x1a1)])),S(0x2,o[_0x58510e(0x126)](m['CollaborationSessionService']))],exports['LiveShareController']);var h=(_0xa1180a=>(_0xa1180a[_0x58510e(0x149)]='offline',_0xa1180a[_0x58510e(0x1bd)]=_0x58510e(0x17d),_0xa1180a[_0x58510e(0x1c3)]=_0x58510e(0x15b),_0xa1180a[_0x58510e(0x128)]=_0x58510e(0x16b),_0xa1180a['PRESENTING']=_0x58510e(0x119),_0xa1180a))(h||{});const W=_0x58510e(0x148),G=0xc8;exports[_0x58510e(0x1a3)]=class extends o[_0x58510e(0x1bf)]{constructor(_0x4d72cf,_0x4bc174,_0x37a8ef,_0x3f9f58,_0xe89f2a){var _0x1381fb=_0x58510e;super(),v(this,_0x1381fb(0x1b2),new w[(_0x1381fb(0x1be))](_0x1381fb(0x17d))),v(this,_0x1381fb(0x1dd),this[_0x1381fb(0x1b2)][_0x1381fb(0x1e4)]()),v(this,_0x1381fb(0x182),!0x1),v(this,_0x1381fb(0x198),null),v(this,_0x1381fb(0x1b9),null),(this[_0x1381fb(0x177)]=_0x4d72cf,this[_0x1381fb(0x1b6)]=_0x4bc174,this[_0x1381fb(0x176)]=_0x37a8ef,this[_0x1381fb(0x194)]=_0x3f9f58,this['_commandService']=_0xe89f2a);}get[_0x58510e(0x138)](){var _0x3351dc=_0x58510e;return this[_0x3351dc(0x1b2)][_0x3351dc(0x1d8)]();}[_0x58510e(0x14b)](){var _0x212a76=_0x58510e,_0xce2cdb;(_0xce2cdb=this[_0x212a76(0x198)])==null||_0xce2cdb[_0x212a76(0x14b)](),this[_0x212a76(0x1b2)]['next'](_0x212a76(0x17d)),this[_0x212a76(0x1b2)]['complete']();}[_0x58510e(0x160)](){var _0x105836=_0x58510e;this[_0x105836(0x182)]||(this['_init']=!0x0,this[_0x105836(0x1b6)][_0x105836(0x179)][_0x105836(0x1c9)](b[_0x105836(0x1bc)](this['dispose$']))[_0x105836(0x18d)](_0x1f8f25=>{var _0x568e26=_0x105836;switch(_0x1f8f25){case m[_0x568e26(0x19e)][_0x568e26(0x149)]:this['_handleOffline']();break;case m[_0x568e26(0x19e)][_0x568e26(0x1b3)]:this['_handleOnline']();break;}}),this[_0x105836(0x1b6)][_0x105836(0x1da)][_0x105836(0x1c9)](b[_0x105836(0x1bc)](this['dispose$']))[_0x105836(0x18d)](_0x2e2b79=>{var _0x48ed85=_0x105836;const {eventID:_0x30c83}=_0x2e2b79;switch(_0x30c83){case _[_0x48ed85(0x16c)][_0x48ed85(0x153)]:this[_0x48ed85(0x183)](_0x2e2b79);break;case _['CollaborationEvent']['LIVESHARE_OPERATION']:this[_0x48ed85(0x1d2)](_0x2e2b79);break;case _[_0x48ed85(0x16c)][_0x48ed85(0x122)]:this[_0x48ed85(0x16f)]();break;case _[_0x48ed85(0x16c)][_0x48ed85(0x1d1)]:this[_0x48ed85(0x14e)](_0x2e2b79);break;}}));}['tryStartPresenting'](){var _0x1a8dbd=_0x58510e;this[_0x1a8dbd(0x1b6)]['send']({'eventID':_[_0x1a8dbd(0x16c)][_0x1a8dbd(0x1dc)],'data':{'unitID':this[_0x1a8dbd(0x177)],'userID':this[_0x1a8dbd(0x1b6)][_0x1a8dbd(0x1ba)]()}},this[_0x1a8dbd(0x177)]);}[_0x58510e(0x184)](){var _0x33e8f6=_0x58510e;this[_0x33e8f6(0x138)]===_0x33e8f6(0x119)&&(this[_0x33e8f6(0x1b2)]['next'](_0x33e8f6(0x17d)),this[_0x33e8f6(0x1b6)]['send']({'eventID':_[_0x33e8f6(0x16c)][_0x33e8f6(0x122)],'data':{'unitID':this[_0x33e8f6(0x177)]}},this['_unitID']));}['startFollowing'](){var _0x207703=_0x58510e;this[_0x207703(0x138)]===_0x207703(0x16b)&&(this[_0x207703(0x1b2)][_0x207703(0x1cb)]('following'),this['_startFollowing']());}[_0x58510e(0x1e2)](){var _0x4417d6=_0x58510e;this[_0x4417d6(0x138)]===_0x4417d6(0x15b)&&this['_stopFollowing']();}[_0x58510e(0x183)](_0x31f93a){var _0x38e970=_0x58510e;const {presenter:_0x5490a0}=_0x31f93a[_0x38e970(0x1af)],_0x53ab4c=this[_0x38e970(0x1b6)]['getMemberID']();this['_presenter']=_0x5490a0,_0x5490a0===_0x53ab4c?(this[_0x38e970(0x1de)](),this[_0x38e970(0x1c0)]()):this[_0x38e970(0x138)]!==_0x38e970(0x16b)&&(this[_0x38e970(0x137)](),this[_0x38e970(0x1a8)]());}['_fetchOperations'](){var _0x292175=_0x58510e;const _0x29a301={'eventID':_[_0x292175(0x16c)][_0x292175(0x11b)]};this[_0x292175(0x1b6)][_0x292175(0x13c)](_0x29a301,this[_0x292175(0x177)]);}['_handleTerminate'](){var _0x5c62a2=_0x58510e;this[_0x5c62a2(0x1b9)]=null,this['_status']!==_0x5c62a2(0x119)&&this[_0x5c62a2(0x173)]();}['_handleNewChangeSets'](_0x3d13b5){var _0x3d9d0d=_0x58510e;if(this[_0x3d9d0d(0x138)]===_0x3d9d0d(0x15b)&&this['_presenter']===_0x3d13b5[_0x3d9d0d(0x1af)]['memberID']){const _0x5709b6=_['parseProtocolChangeset'](_0x3d13b5[_0x3d9d0d(0x1af)])['mutations'][_0x3d9d0d(0x168)]()[_0x3d9d0d(0x118)](_0x1a40d4=>_0x1a40d4['id']===C[_0x3d9d0d(0x175)]['id']);if(_0x5709b6){const _0xa3c8ca=_0x5709b6[_0x3d9d0d(0x18e)][_0x3d9d0d(0x188)],_0x56d43e=_0x5709b6[_0x3d9d0d(0x18e)][_0x3d9d0d(0x15d)]['id'];setTimeout(()=>{var _0x6a9ee0=_0x3d9d0d;this[_0x6a9ee0(0x161)]['executeCommand'](C['SetWorksheetActiveOperation']['id'],{'unitId':_0xa3c8ca,'subUnitId':_0x56d43e},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x1bd8fe=_0x58510e;this[_0x1bd8fe(0x1b2)][_0x1bd8fe(0x1cb)](_0x1bd8fe(0x119));const _0x199d54=new Map(),_0x5c48e3=this[_0x1bd8fe(0x198)]=new o[(_0x1bd8fe(0x1e0))]();_0x5c48e3[_0x1bd8fe(0x1c8)](o[_0x1bd8fe(0x1a0)](()=>{var _0x138d16=_0x1bd8fe;_0x199d54[_0x138d16(0x124)](_0x47bd7a=>_0x47bd7a['complete']()),_0x199d54['clear']();})),_0x5c48e3[_0x1bd8fe(0x1c8)](this[_0x1bd8fe(0x161)]['onCommandExecuted'](_0x57563e=>{var _0x411dda=_0x1bd8fe,_0x6ae07f;if(_0x57563e[_0x411dda(0x164)]!==o['CommandType'][_0x411dda(0x13b)]||!this[_0x411dda(0x194)]['shouldShareOperation'](_0x57563e['id']))return;const {id:_0x35bfeb}=_0x57563e;let _0x9606a7;_0x199d54[_0x411dda(0x116)](_0x35bfeb)?_0x9606a7=_0x199d54['get'](_0x35bfeb):(_0x9606a7=new w[(_0x411dda(0x1ab))](),_0x199d54['set'](_0x35bfeb,_0x9606a7),_0x9606a7[_0x411dda(0x1c9)](b[_0x411dda(0x1e1)]((_0x6ae07f=this['_configService'][_0x411dda(0x1ae)](W))!=null?_0x6ae07f:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x411dda(0x18d)](_0x5bfa72=>{var _0x1e4e91=_0x411dda;this[_0x1e4e91(0x1b6)][_0x1e4e91(0x13c)]({'eventID':_[_0x1e4e91(0x16c)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1e4e91(0x177)],'operations':{[_0x5bfa72['id']]:{'id':_0x5bfa72['id'],'params':JSON[_0x1e4e91(0x1cd)](_0x5bfa72[_0x1e4e91(0x18e)])}}}},this['_unitID']);})),_0x9606a7[_0x411dda(0x1cb)](_0x57563e);})),this[_0x1bd8fe(0x194)][_0x1bd8fe(0x146)](this[_0x1bd8fe(0x177)])[_0x1bd8fe(0x124)](_0x3f7428=>this[_0x1bd8fe(0x1b6)][_0x1bd8fe(0x13c)]({'eventID':_[_0x1bd8fe(0x16c)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1bd8fe(0x177)],'operations':{[_0x3f7428['id']]:{'id':_0x3f7428['id'],'params':JSON['stringify'](_0x3f7428[_0x1bd8fe(0x18e)])}}}},this[_0x1bd8fe(0x177)]));}[_0x58510e(0x137)](){var _0xa7f623=_0x58510e,_0x19b1ef;this[_0xa7f623(0x1b2)][_0xa7f623(0x1cb)](_0xa7f623(0x17d)),(_0x19b1ef=this[_0xa7f623(0x198)])==null||_0x19b1ef[_0xa7f623(0x14b)](),this[_0xa7f623(0x198)]=null;}['_startFollowing'](){var _0x56d53f=_0x58510e,_0x2967c9;(_0x2967c9=this[_0x56d53f(0x198)])==null||_0x2967c9[_0x56d53f(0x14b)](),this['_status$'][_0x56d53f(0x1cb)](_0x56d53f(0x15b));}[_0x58510e(0x173)](){var _0x2afb7c=_0x58510e,_0x4fe353;this[_0x2afb7c(0x1b2)][_0x2afb7c(0x1cb)]('idle'),(_0x4fe353=this['_commandDisposable'])==null||_0x4fe353[_0x2afb7c(0x14b)](),this[_0x2afb7c(0x198)]=null;}[_0x58510e(0x1de)](){var _0x2e9040=_0x58510e,_0x39de81;this[_0x2e9040(0x1b2)][_0x2e9040(0x1cb)](_0x2e9040(0x16b)),(_0x39de81=this['_commandDisposable'])==null||_0x39de81['dispose']();}[_0x58510e(0x1d2)](_0x14bfca){var _0x226a05=_0x58510e;if([_0x226a05(0x119),'not-following',_0x226a05(0x1db)][_0x226a05(0x1e3)](this[_0x226a05(0x138)])||!_0x14bfca[_0x226a05(0x1af)][_0x226a05(0x1a4)]||_0x14bfca['data'][_0x226a05(0x1a4)]===this[_0x226a05(0x1b6)]['getMemberID']())return;this[_0x226a05(0x138)]===_0x226a05(0x17d)&&this[_0x226a05(0x1a8)]();const _0x56a838=_0x14bfca[_0x226a05(0x1af)]['operations'];Object[_0x226a05(0x1c5)](_0x56a838)['forEach'](_0xb891d2=>{var _0x2bffc6=_0x226a05;this[_0x2bffc6(0x161)][_0x2bffc6(0x178)](_0xb891d2['id'],_0xb891d2['params']?JSON['parse'](_0xb891d2[_0x2bffc6(0x18e)]):null,{'fromCollab':!0x0});});}[_0x58510e(0x185)](){var _0xdfa476=_0x58510e,_0x6a7c7d;this[_0xdfa476(0x1b2)][_0xdfa476(0x1cb)](_0xdfa476(0x1db)),(_0x6a7c7d=this[_0xdfa476(0x198)])==null||_0x6a7c7d[_0xdfa476(0x14b)]();}[_0x58510e(0x139)](){var _0x142264=_0x58510e;this['_status$'][_0x142264(0x1cb)](_0x142264(0x17d)),this[_0x142264(0x14f)]();}},exports[_0x58510e(0x1a3)]=R([S(0x2,o[_0x58510e(0x1ce)]),S(0x3,o[_0x58510e(0x126)](O)),S(0x4,o[_0x58510e(0x17a)])],exports['LiveShareCoordinator']);function A(){var _0x5722ab=_0x58510e;const _0x4789ab=p[_0x5722ab(0x16d)](exports[_0x5722ab(0x17e)]),_0x1d2d97=p[_0x5722ab(0x16d)](o[_0x5722ab(0x19c)]),_0x538b14=p[_0x5722ab(0x145)](()=>_0x1d2d97[_0x5722ab(0x166)](o[_0x5722ab(0x14a)][_0x5722ab(0x141)]),void 0x0,!0x1,[]),[_0x4820ff,_0xa6880d]=f[_0x5722ab(0x1b7)](null),[_0x57c909,_0xe26a1e]=f['useState'](h['IDLE']),_0x39081d=f[_0x5722ab(0x151)](null);return f[_0x5722ab(0x191)](()=>(_0x538b14&&_0x4789ab[_0x5722ab(0x1c4)](_0x538b14[_0x5722ab(0x11d)]())['then'](_0x5513b4=>{var _0x1cfc75=_0x5722ab;_0xa6880d(_0x5513b4),_0x39081d[_0x1cfc75(0x12a)]=_0x5513b4[_0x1cfc75(0x1dd)]['subscribe'](_0x451e64=>{_0xe26a1e(_0x451e64);});}),()=>{var _0x536036=_0x5722ab,_0x570f3f;(_0x570f3f=_0x39081d[_0x536036(0x12a)])==null||_0x570f3f['unsubscribe'](),_0x39081d[_0x536036(0x12a)]=null;}),[_0x538b14,_0x4789ab]),_0x4820ff?l[_0x5722ab(0x165)](g['Dropdown'],{'align':_0x5722ab(0x157),'disabled':_0x57c909===h[_0x5722ab(0x149)],'className':_0x5722ab(0x147),'overlay':l[_0x5722ab(0x165)](B,{'status':_0x57c909,'coordinator':_0x4820ff}),'children':l[_0x5722ab(0x165)]('button',{'className':g['clsx'](_0x5722ab(0x197),{'univer-cursor-not-allowed':_0x57c909===h[_0x5722ab(0x149)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x57c909!==h[_0x5722ab(0x149)]}),'type':_0x5722ab(0x135),'children':l[_0x5722ab(0x165)](P,{'className':_0x5722ab(0x1bb)})})}):null;}function B(_0x5a7bcb){var _0x169f6e=_0x58510e;const {status:_0x5858bc,coordinator:_0x3e3bbb}=_0x5a7bcb;switch(_0x5858bc){case h[_0x169f6e(0x1bd)]:return l[_0x169f6e(0x165)](Y,{'coordinator':_0x3e3bbb});case h[_0x169f6e(0x1c3)]:return l[_0x169f6e(0x165)](Z,{'coordinator':_0x3e3bbb});case h[_0x169f6e(0x128)]:return l[_0x169f6e(0x165)](J,{'coordinator':_0x3e3bbb});case h['OFFLINE']:return l[_0x169f6e(0x165)](z,{});case h[_0x169f6e(0x13a)]:return l['jsx'](K,{'coordinator':_0x3e3bbb});default:return null;}}function Y(_0x1e3c3d){var _0x4e76a5=_0x58510e;const {coordinator:_0xf2daa1}=_0x1e3c3d;return l[_0x4e76a5(0x13d)](l[_0x4e76a5(0x195)],{'children':[l[_0x4e76a5(0x165)](_0x4e76a5(0x158),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4e76a5(0x12f)}),l[_0x4e76a5(0x165)](g[_0x4e76a5(0x1a6)],{'onClick':()=>_0xf2daa1[_0x4e76a5(0x12e)](),'children':'Start'})]});}function Z(_0x1e0d15){var _0x34649d=_0x58510e;const {coordinator:_0x41c45e}=_0x1e0d15;return l[_0x34649d(0x13d)](l['Fragment'],{'children':[l['jsx'](_0x34649d(0x158),{'className':_0x34649d(0x181),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x34649d(0x165)](g[_0x34649d(0x1a6)],{'onClick':()=>_0x41c45e[_0x34649d(0x1e2)](),'children':'Stop\x20following'})]});}function J(_0x3a55ee){var _0x574acf=_0x58510e;const {coordinator:_0x5d4ef6}=_0x3a55ee;return l[_0x574acf(0x13d)](l['Fragment'],{'children':[l[_0x574acf(0x165)]('div',{'className':_0x574acf(0x181),'children':_0x574acf(0x19d)}),l['jsx'](g[_0x574acf(0x1a6)],{'variant':_0x574acf(0x11a),'onClick':()=>_0x5d4ef6[_0x574acf(0x1b4)](),'children':_0x574acf(0x14c)})]});}function K(_0x1b2825){var _0x5a1bf6=_0x58510e;const {coordinator:_0x3d6730}=_0x1b2825;return l[_0x5a1bf6(0x13d)](l[_0x5a1bf6(0x195)],{'children':[l[_0x5a1bf6(0x165)](_0x5a1bf6(0x158),{'className':_0x5a1bf6(0x181),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x5a1bf6(0x165)](g['Button'],{'variant':'default','onClick':()=>_0x3d6730['stopPresenting'](),'children':_0x5a1bf6(0x136)})]});}function z(){var _0x86a5e5=_0x58510e;return l[_0x86a5e5(0x165)](l[_0x86a5e5(0x195)],{'children':_0x86a5e5(0x169)});}var Q=Object[_0x58510e(0x162)],X=(_0x202028,_0x51e1d3,_0x18d54f,_0x45f55e)=>{var _0x262e7d=_0x58510e;for(var _0x24cb72=_0x45f55e>0x1?void 0x0:_0x45f55e?Q(_0x51e1d3,_0x18d54f):_0x51e1d3,_0x580360=_0x202028[_0x262e7d(0x1b8)]-0x1,_0x4d3abc;_0x580360>=0x0;_0x580360--)(_0x4d3abc=_0x202028[_0x580360])&&(_0x24cb72=_0x4d3abc(_0x24cb72)||_0x24cb72);return _0x24cb72;},x=(_0x1915ad,_0x570e78)=>(_0x360841,_0x41a887)=>_0x570e78(_0x360841,_0x41a887,_0x1915ad);exports[_0x58510e(0x180)]=class extends o[_0x58510e(0x13f)]{constructor(_0x4c5411,_0x1d6555){var _0x5bee7c=_0x58510e;super(),this['_injector']=_0x4c5411,this[_0x5bee7c(0x11e)]=_0x1d6555,this['_mountLiveShare']();}['_mountLiveShare'](){var _0x59e65a=_0x58510e;this[_0x59e65a(0x15e)](this['_uiPartsService'][_0x59e65a(0x1df)](p['BuiltInUIPart'][_0x59e65a(0x159)],()=>p[_0x59e65a(0x199)](A,this[_0x59e65a(0x15c)])));}},exports[_0x58510e(0x180)]=X([x(0x0,o[_0x58510e(0x126)](o[_0x58510e(0x1a1)])),x(0x1,p[_0x58510e(0x1a2)])],exports[_0x58510e(0x180)]);const ee=_0x58510e(0x1ca),L={};var te=Object[_0x58510e(0x162)],ie=(_0x14a59a,_0x1c5e88,_0x5cc70e,_0x211e12)=>{for(var _0x214c82=_0x211e12>0x1?void 0x0:_0x211e12?te(_0x1c5e88,_0x5cc70e):_0x1c5e88,_0x55ff43=_0x14a59a['length']-0x1,_0x3c6409;_0x55ff43>=0x0;_0x55ff43--)(_0x3c6409=_0x14a59a[_0x55ff43])&&(_0x214c82=_0x3c6409(_0x214c82)||_0x214c82);return _0x214c82;},ne=(_0x533af7,_0x3ce48c)=>(_0x30b145,_0x281603)=>_0x3ce48c(_0x30b145,_0x281603,_0x533af7);let E=class extends o['Disposable']{constructor(_0x54a7ca){var _0x2cebad=_0x58510e;super(),this[_0x2cebad(0x194)]=_0x54a7ca,this[_0x2cebad(0x182)]();}[_0x58510e(0x182)](){var _0x474319=_0x58510e;[D[_0x474319(0x1a5)]['id'],D['SetScrollOperation']['id'],C[_0x474319(0x125)]['id']]['forEach'](_0x200b57=>{var _0x415eaf=_0x474319;this['disposeWithMe'](this[_0x415eaf(0x194)][_0x415eaf(0x1d3)](_0x200b57));});}};E=ie([ne(0x0,o[_0x58510e(0x126)](O))],E);var re=Object[_0x58510e(0x12d)],se=Object[_0x58510e(0x162)],oe=(_0x5601da,_0x58c8a5,_0x511737)=>_0x58c8a5 in _0x5601da?re(_0x5601da,_0x58c8a5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x511737}):_0x5601da[_0x58c8a5]=_0x511737,ae=(_0x1f5a69,_0x3ac679,_0x4d57d0,_0x292a8a)=>{for(var _0x19b5ec=_0x292a8a>0x1?void 0x0:_0x292a8a?se(_0x3ac679,_0x4d57d0):_0x3ac679,_0xade5f4=_0x1f5a69['length']-0x1,_0x1fd21f;_0xade5f4>=0x0;_0xade5f4--)(_0x1fd21f=_0x1f5a69[_0xade5f4])&&(_0x19b5ec=_0x1fd21f(_0x19b5ec)||_0x19b5ec);return _0x19b5ec;},N=(_0x276748,_0x4e1570)=>(_0x1b2c58,_0x4d1dfe)=>_0x4e1570(_0x1b2c58,_0x4d1dfe,_0x276748),T=(_0x3ead64,_0x1507cb,_0x279d32)=>oe(_0x3ead64,typeof _0x1507cb!='symbol'?_0x1507cb+'':_0x1507cb,_0x279d32);const le=_0x58510e(0x170);exports[_0x58510e(0x142)]=class extends o[_0x58510e(0x14d)]{constructor(_0x19b724=L,_0x3bd66b,_0x5893fd){var _0x4f13ff=_0x58510e;super(),this[_0x4f13ff(0x18c)]=_0x19b724,this[_0x4f13ff(0x15c)]=_0x3bd66b,this[_0x4f13ff(0x176)]=_0x5893fd;const {..._0x217109}=o[_0x4f13ff(0x133)]({},L,this[_0x4f13ff(0x18c)]);this['_configService'][_0x4f13ff(0x129)](ee,_0x217109);}['onStarting'](){var _0x27df14=_0x58510e;o[_0x27df14(0x1cf)](this[_0x27df14(0x15c)],o[_0x27df14(0x134)]([[O],[exports[_0x27df14(0x17e)]],[E],[exports[_0x27df14(0x180)]]],this[_0x27df14(0x18c)][_0x27df14(0x12b)])),o[_0x27df14(0x167)](this[_0x27df14(0x15c)],[[E]]);}[_0x58510e(0x132)](){var _0x2b5872=_0x58510e;o[_0x2b5872(0x167)](this[_0x2b5872(0x15c)],[[exports[_0x2b5872(0x180)]]]);}},T(exports[_0x58510e(0x142)],_0x58510e(0x164),o['UniverInstanceType'][_0x58510e(0x1e5)]),T(exports[_0x58510e(0x142)],_0x58510e(0x150),le),exports[_0x58510e(0x142)]=ae([o[_0x58510e(0x17c)](m['UniverCollaborationClientPlugin']),N(0x1,o[_0x58510e(0x126)](o['Injector'])),N(0x2,o[_0x58510e(0x1ce)])],exports[_0x58510e(0x142)]),exports[_0x58510e(0x140)]=A,exports['LiveShareService']=O,exports[_0x58510e(0x115)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x43ad12=_0x5bf1;(function(_0x43f385,_0x19f216){var _0x47725f=_0x5bf1,_0x3bd6a2=_0x43f385();while(!![]){try{var _0x2c16d4=-parseInt(_0x47725f(0x14d))/0x1+-parseInt(_0x47725f(0x16e))/0x2+parseInt(_0x47725f(0x15b))/0x3+parseInt(_0x47725f(0x17a))/0x4*(parseInt(_0x47725f(0x187))/0x5)+parseInt(_0x47725f(0x194))/0x6*(parseInt(_0x47725f(0x143))/0x7)+parseInt(_0x47725f(0x170))/0x8*(-parseInt(_0x47725f(0x17c))/0x9)+parseInt(_0x47725f(0x171))/0xa*(parseInt(_0x47725f(0x17d))/0xb);if(_0x2c16d4===_0x19f216)break;else _0x3bd6a2['push'](_0x3bd6a2['shift']());}catch(_0x4281f1){_0x3bd6a2['push'](_0x3bd6a2['shift']());}}}(_0x59c7,0xadca4));var q=Object[_0x43ad12(0x128)],z=(_0x519c17,_0x50d9a5,_0x2b7167)=>_0x50d9a5 in _0x519c17?q(_0x519c17,_0x50d9a5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b7167}):_0x519c17[_0x50d9a5]=_0x2b7167,d=(_0x165409,_0x26b618,_0x47c4c8)=>z(_0x165409,typeof _0x26b618!=_0x43ad12(0x112)?_0x26b618+'':_0x26b618,_0x47c4c8);import{Disposable as _0x1b4c3b,toDisposable as _0x588afd,IUniverInstanceService as _0x149d48,Inject as _0x415909,Injector as _0x3fc7f2,IConfigService as _0x13311c,ICommandService as _0x4937f3,RxDisposable as _0x3b727a,UniverInstanceType as _0x33c666,DisposableCollection as _0x4ec9f6,CommandType as _0x2173c3,DependentOn as _0x1b3cbd,Plugin as _0x36a567,merge as _0x567ad9,registerDependencies as _0x540bc8,mergeOverrideWithDependencies as _0x14ee17,touchDependencies as _0x41f7e0}from'@univerjs/core';import{useDependency as _0x3aad55,useObservable as _0x52b777,IUIPartsService as _0x3d81bf,BuiltInUIPart as _0x3c9c42,connectInjector as _0x1896e1}from'@univerjs/ui';import{jsx as _0x10c595,jsxs as _0x2b145f,Fragment as _0x5aa383}from'react/jsx-runtime';import{Dropdown as _0x75180f,clsx as _0x5e4436,Button as _0x3a9d39}from'@univerjs/design';import{forwardRef as _0x43924e,useRef as _0x5dd95c,createElement as _0x1ff31c,useState as _0x13739e,useEffect as _0x57601b}from'react';import{CollaborationEvent as _0x39828a,parseProtocolChangeset as _0x238891}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1db8e9,SessionStatus as _0x13ce6b,UniverCollaborationClientPlugin as _0x485a8f}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x61d40f,SetWorksheetActiveOperation as _0x82b7b3}from'@univerjs/sheets';import{BehaviorSubject as _0x56bdba,Subject as _0x546630}from'rxjs';import{takeUntil as _0x444045,throttleTime as _0x2bca3c}from'rxjs/operators';import{SetZoomRatioOperation as _0xb0b9cb,SetScrollOperation as _0x2b4266}from'@univerjs/sheets-ui';var c=function(){var _0x5af697=_0x43ad12;return c=Object['assign']||function(_0x46a481){var _0xcfc4a1=_0x5bf1;for(var _0x5d485c,_0x4450ae=0x1,_0x2926c7=arguments[_0xcfc4a1(0x185)];_0x4450ae<_0x2926c7;_0x4450ae++){_0x5d485c=arguments[_0x4450ae];for(var _0x22a378 in _0x5d485c)Object['prototype'][_0xcfc4a1(0x19d)][_0xcfc4a1(0x12f)](_0x5d485c,_0x22a378)&&(_0x46a481[_0x22a378]=_0x5d485c[_0x22a378]);}return _0x46a481;},c[_0x5af697(0x1ad)](this,arguments);},Oe=function(_0x44bf89,_0x2aa466){var _0x3fb611=_0x43ad12,_0x144d13={};for(var _0x202364 in _0x44bf89)Object[_0x3fb611(0x125)][_0x3fb611(0x19d)][_0x3fb611(0x12f)](_0x44bf89,_0x202364)&&_0x2aa466[_0x3fb611(0x1bc)](_0x202364)<0x0&&(_0x144d13[_0x202364]=_0x44bf89[_0x202364]);if(_0x44bf89!=null&&typeof Object[_0x3fb611(0x133)]==_0x3fb611(0x1a6)){for(var _0xe40934=0x0,_0x202364=Object['getOwnPropertySymbols'](_0x44bf89);_0xe40934<_0x202364[_0x3fb611(0x185)];_0xe40934++)_0x2aa466[_0x3fb611(0x1bc)](_0x202364[_0xe40934])<0x0&&Object['prototype'][_0x3fb611(0x18c)][_0x3fb611(0x12f)](_0x44bf89,_0x202364[_0xe40934])&&(_0x144d13[_0x202364[_0xe40934]]=_0x44bf89[_0x202364[_0xe40934]]);}return _0x144d13;},W=_0x43924e(function(_0x419862,_0x5b1d30){var _0x1b238e=_0x43ad12,_0x2a5366=_0x419862['icon'],_0x1ce739=_0x419862['id'],_0x44f1bb=_0x419862['className'],_0x44c12c=_0x419862[_0x1b238e(0x19a)],_0x5b1c55=Oe(_0x419862,[_0x1b238e(0x1b0),'id',_0x1b238e(0x1a1),_0x1b238e(0x19a)]),_0x514530=_0x1b238e(0x136)[_0x1b238e(0x1a8)](_0x1ce739,'\x20')[_0x1b238e(0x1a8)](_0x44f1bb||'')[_0x1b238e(0x15a)](),_0xd92020=_0x5dd95c('_'[_0x1b238e(0x1a8)](Ne()));return Y(_0x2a5366,''[_0x1b238e(0x1a8)](_0x1ce739),{'defIds':_0x2a5366['defIds'],'idSuffix':_0xd92020[_0x1b238e(0x179)]},c({'ref':_0x5b1d30,'className':_0x514530},_0x5b1c55),_0x44c12c);});function Y(_0x4f07cb,_0x29a918,_0x16804c,_0x4801e7,_0x405205){var _0x4105cd=_0x43ad12;return _0x1ff31c(_0x4f07cb[_0x4105cd(0x11d)],c(c({'key':_0x29a918},Ee(_0x4f07cb,_0x16804c,_0x405205)),_0x4801e7),(we(_0x4f07cb,_0x16804c)[_0x4105cd(0x168)]||[])[_0x4105cd(0x11c)](function(_0x1a053e,_0x30aa0){var _0x4300c4=_0x4105cd;return Y(_0x1a053e,''[_0x4300c4(0x1a8)](_0x29a918,'-')[_0x4300c4(0x1a8)](_0x4f07cb['tag'],'-')['concat'](_0x30aa0),_0x16804c,void 0x0,_0x405205);}));}function Ee(_0x3d9a2d,_0xaf7f46,_0x187dbe){var _0x3d838d=_0x43ad12,_0x2b2753=c({},_0x3d9a2d[_0x3d838d(0x1c0)]);_0x187dbe!=null&&_0x187dbe['colorChannel1']&&_0x2b2753[_0x3d838d(0x122)]===_0x3d838d(0x18a)&&(_0x2b2753[_0x3d838d(0x122)]=_0x187dbe[_0x3d838d(0x18a)]),_0x3d9a2d[_0x3d838d(0x11d)]===_0x3d838d(0x150)&&_0x2b2753['id']&&(_0x2b2753['id']=_0x2b2753['id']+_0xaf7f46['idSuffix']),Object[_0x3d838d(0x119)](_0x2b2753)[_0x3d838d(0x163)](function(_0x5d464d){var _0x48f29f=_0x3d838d,_0x2a8dec=_0x5d464d[0x0],_0x3bb73f=_0x5d464d[0x1];_0x2a8dec===_0x48f29f(0x150)&&typeof _0x3bb73f==_0x48f29f(0x19f)&&(_0x2b2753[_0x2a8dec]=_0x3bb73f[_0x48f29f(0x1b9)](/url\(#(.*)\)/,'url(#$1'[_0x48f29f(0x1a8)](_0xaf7f46['idSuffix'],')')));});var _0x1f3502=_0xaf7f46['defIds'];return!_0x1f3502||_0x1f3502[_0x3d838d(0x185)]===0x0||(_0x3d9a2d['tag']===_0x3d838d(0x1b1)&&_0x2b2753[_0x3d838d(0x166)]&&(_0x2b2753[_0x3d838d(0x166)]=_0x2b2753['xlink:href']+_0xaf7f46[_0x3d838d(0x113)]),Object['entries'](_0x2b2753)[_0x3d838d(0x163)](function(_0x2a9e88){var _0x3fb766=_0x3d838d,_0x2badde=_0x2a9e88[0x0],_0x194549=_0x2a9e88[0x1];typeof _0x194549==_0x3fb766(0x19f)&&(_0x2b2753[_0x2badde]=_0x194549[_0x3fb766(0x1b9)](/url\(#(.*)\)/,_0x3fb766(0x177)['concat'](_0xaf7f46[_0x3fb766(0x113)],')')));})),_0x2b2753;}function we(_0x51c3ca,_0x50f96d){var _0x484f65=_0x43ad12,_0x36c831,_0x1f447a=_0x50f96d['defIds'];return!_0x1f447a||_0x1f447a[_0x484f65(0x185)]===0x0?_0x51c3ca:_0x51c3ca[_0x484f65(0x11d)]===_0x484f65(0x127)&&(!((_0x36c831=_0x51c3ca[_0x484f65(0x168)])===null||_0x36c831===void 0x0)&&_0x36c831[_0x484f65(0x185)])?c(c({},_0x51c3ca),{'children':_0x51c3ca[_0x484f65(0x168)]['map'](function(_0x2ce7c1){var _0x17e411=_0x484f65;return typeof _0x2ce7c1['attrs']['id']==_0x17e411(0x19f)&&_0x1f447a&&_0x1f447a[_0x17e411(0x1ae)](_0x2ce7c1[_0x17e411(0x1c0)]['id'])?c(c({},_0x2ce7c1),{'attrs':c(c({},_0x2ce7c1[_0x17e411(0x1c0)]),{'id':_0x2ce7c1[_0x17e411(0x1c0)]['id']+_0x50f96d[_0x17e411(0x113)]})}):_0x2ce7c1;})}):_0x51c3ca;}function Ne(){var _0x5eb072=_0x43ad12;return Math[_0x5eb072(0x13c)]()[_0x5eb072(0x110)](0x24)[_0x5eb072(0x175)](0x2,0x8);}W[_0x43ad12(0x1bf)]=_0x43ad12(0x1a4);function _0x5bf1(_0x4eb4c5,_0x46bdbd){var _0x59c775=_0x59c7();return _0x5bf1=function(_0x5bf108,_0x46b66a){_0x5bf108=_0x5bf108-0x10c;var _0x3883aa=_0x59c775[_0x5bf108];return _0x3883aa;},_0x5bf1(_0x4eb4c5,_0x46bdbd);}var Ce={'tag':_0x43ad12(0x14f),'attrs':{'xmlns':_0x43ad12(0x140),'fill':_0x43ad12(0x1ac),'viewBox':'0\x200\x2017\x2017','width':_0x43ad12(0x11e),'height':_0x43ad12(0x11e)},'children':[{'tag':_0x43ad12(0x1b3),'attrs':{'fill':_0x43ad12(0x142),'d':_0x43ad12(0x197)}},{'tag':'path','attrs':{'fill':_0x43ad12(0x142),'d':_0x43ad12(0x1c1),'fillRule':_0x43ad12(0x13e),'clipRule':_0x43ad12(0x13e)}}]},B=_0x43924e(function(_0x389c3f,_0x63a00f){var _0x526703=_0x43ad12;return _0x1ff31c(W,Object[_0x526703(0x1ab)]({},_0x389c3f,{'id':_0x526703(0x144),'ref':_0x63a00f,'icon':Ce}));});B['displayName']='LiveShareIcon';class L extends _0x1b4c3b{constructor(){super(...arguments),d(this,'_sharedOperations',new Set()),d(this,'_reporters',new Set());}[_0x43ad12(0x116)](_0x36352d){var _0xc5e79f=_0x43ad12;return this['_sharedOperations'][_0xc5e79f(0x13a)](_0x36352d),_0x588afd(()=>this[_0xc5e79f(0x132)][_0xc5e79f(0x176)](_0x36352d));}[_0x43ad12(0x158)](_0xea3677){var _0x2486bb=_0x43ad12;return this['_reporters'][_0x2486bb(0x13a)](_0xea3677),_0x588afd(()=>this[_0x2486bb(0x115)]['delete'](_0xea3677));}['shouldShareOperation'](_0x26e2b5){var _0x3e556f=_0x43ad12;return this[_0x3e556f(0x132)]['has'](_0x26e2b5);}[_0x43ad12(0x151)](_0xe8ea75){var _0x4ca2f7=_0x43ad12;return Array[_0x4ca2f7(0x181)](this[_0x4ca2f7(0x115)])[_0x4ca2f7(0x11c)](_0x1f8788=>_0x1f8788(_0xe8ea75));}}var De=Object[_0x43ad12(0x1b6)],Z=(_0x108d72,_0x597d40,_0x4866df,_0x330c3c)=>{var _0x7c8c0=_0x43ad12;for(var _0x4cfad7=_0x330c3c>0x1?void 0x0:_0x330c3c?De(_0x597d40,_0x4866df):_0x597d40,_0x4c07b4=_0x108d72[_0x7c8c0(0x185)]-0x1,_0x21e715;_0x4c07b4>=0x0;_0x4c07b4--)(_0x21e715=_0x108d72[_0x4c07b4])&&(_0x4cfad7=_0x21e715(_0x4cfad7)||_0x4cfad7);return _0x4cfad7;},f=(_0xac1e79,_0x5f4938)=>(_0x12f20e,_0x501932)=>_0x5f4938(_0x12f20e,_0x501932,_0xac1e79);let m=class extends _0x3b727a{constructor(_0x1aaf0a,_0x17adca,_0x5b3c11){var _0x5edf8a=_0x43ad12;super(),d(this,_0x5edf8a(0x12e),new Map()),(this[_0x5edf8a(0x188)]=_0x1aaf0a,this['_injector']=_0x17adca,this[_0x5edf8a(0x199)]=_0x5b3c11,this[_0x5edf8a(0x16f)]());}async[_0x43ad12(0x156)](_0x482b03){var _0xe0027c=_0x43ad12;return this[_0xe0027c(0x12e)][_0xe0027c(0x11a)](_0x482b03)||await this[_0xe0027c(0x195)](_0x482b03),this['_entities'][_0xe0027c(0x16d)](_0x482b03);}['_init'](){var _0x852fb9=_0x43ad12;this[_0x852fb9(0x188)][_0x852fb9(0x15d)](_0x33c666['UNIVER_SHEET'])['pipe'](_0x444045(this['dispose$']))['subscribe'](async _0x4d1e87=>{var _0x4b6010=_0x852fb9;const _0x4953bc=_0x4d1e87[_0x4b6010(0x1be)]();this['_entities'][_0x4b6010(0x11a)](_0x4953bc)||this['_startLiveShareCoordinator'](_0x4953bc);}),this[_0x852fb9(0x188)][_0x852fb9(0x15e)](_0x33c666[_0x852fb9(0x18e)])[_0x852fb9(0x189)](_0x444045(this[_0x852fb9(0x114)]))[_0x852fb9(0x15f)](_0x1fc75d=>{var _0x224f99=_0x852fb9;const _0x103875=_0x1fc75d[_0x224f99(0x1be)](),_0x44cfff=this[_0x224f99(0x12e)]['get'](_0x103875);_0x44cfff==null||_0x44cfff['dispose']();});}async[_0x43ad12(0x195)](_0x59aa1c){var _0x5d12d7=_0x43ad12;const _0x451266=await this[_0x5d12d7(0x199)][_0x5d12d7(0x164)](_0x59aa1c),_0x418dd2=this[_0x5d12d7(0x1bd)]['createInstance'](C,_0x59aa1c,_0x451266);return _0x418dd2[_0x5d12d7(0x1af)](),this[_0x5d12d7(0x12e)][_0x5d12d7(0x10e)](_0x59aa1c,_0x418dd2),_0x418dd2;}};m=Z([f(0x0,_0x149d48),f(0x1,_0x415909(_0x3fc7f2)),f(0x2,_0x415909(_0x1db8e9))],m);var h=(_0x244fa3=>(_0x244fa3[_0x43ad12(0x12d)]=_0x43ad12(0x135),_0x244fa3[_0x43ad12(0x1a5)]='idle',_0x244fa3[_0x43ad12(0x134)]=_0x43ad12(0x17b),_0x244fa3[_0x43ad12(0x13b)]='not-following',_0x244fa3[_0x43ad12(0x184)]='presenting',_0x244fa3))(h||{});const xe=_0x43ad12(0x160),Le=0xc8;let C=class extends _0x3b727a{constructor(_0x1fab99,_0x686740,_0xa2aa81,_0x26a5a1,_0x519752){var _0x2db2fe=_0x43ad12;super(),d(this,'_status$',new _0x56bdba('idle')),d(this,'status$',this[_0x2db2fe(0x13f)]['asObservable']()),d(this,_0x2db2fe(0x16f),!0x1),d(this,_0x2db2fe(0x19e),null),d(this,_0x2db2fe(0x18d),null),(this[_0x2db2fe(0x186)]=_0x1fab99,this[_0x2db2fe(0x145)]=_0x686740,this[_0x2db2fe(0x1ba)]=_0xa2aa81,this[_0x2db2fe(0x1b8)]=_0x26a5a1,this[_0x2db2fe(0x16b)]=_0x519752);}get[_0x43ad12(0x1a9)](){var _0x4f58fa=_0x43ad12;return this[_0x4f58fa(0x13f)][_0x4f58fa(0x1b2)]();}[_0x43ad12(0x148)](){var _0x3515e5=_0x43ad12,_0x4afdb4;(_0x4afdb4=this[_0x3515e5(0x19e)])==null||_0x4afdb4[_0x3515e5(0x148)](),this[_0x3515e5(0x13f)][_0x3515e5(0x19c)](_0x3515e5(0x1a3)),this[_0x3515e5(0x13f)][_0x3515e5(0x172)]();}[_0x43ad12(0x1af)](){var _0x1ded7f=_0x43ad12;this[_0x1ded7f(0x16f)]||(this[_0x1ded7f(0x16f)]=!0x0,this[_0x1ded7f(0x145)][_0x1ded7f(0x12c)][_0x1ded7f(0x189)](_0x444045(this[_0x1ded7f(0x114)]))[_0x1ded7f(0x15f)](_0x54ca26=>{var _0x21bec2=_0x1ded7f;switch(_0x54ca26){case _0x13ce6b['OFFLINE']:this['_handleOffline']();break;case _0x13ce6b[_0x21bec2(0x1c2)]:this['_handleOnline']();break;}}),this[_0x1ded7f(0x145)][_0x1ded7f(0x167)][_0x1ded7f(0x189)](_0x444045(this[_0x1ded7f(0x114)]))[_0x1ded7f(0x15f)](_0x3795c8=>{var _0x11edb5=_0x1ded7f;const {eventID:_0x5acc11}=_0x3795c8;switch(_0x5acc11){case _0x39828a[_0x11edb5(0x191)]:this[_0x11edb5(0x159)](_0x3795c8);break;case _0x39828a[_0x11edb5(0x15c)]:this[_0x11edb5(0x118)](_0x3795c8);break;case _0x39828a['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x39828a[_0x11edb5(0x10c)]:this['_handleNewChangeSets'](_0x3795c8);break;}}));}['tryStartPresenting'](){var _0x38ec87=_0x43ad12;this[_0x38ec87(0x145)][_0x38ec87(0x19b)]({'eventID':_0x39828a[_0x38ec87(0x13d)],'data':{'unitID':this[_0x38ec87(0x186)],'userID':this[_0x38ec87(0x145)][_0x38ec87(0x183)]()}},this['_unitID']);}[_0x43ad12(0x17e)](){var _0x44555f=_0x43ad12;this[_0x44555f(0x1a9)]===_0x44555f(0x192)&&(this['_status$'][_0x44555f(0x19c)](_0x44555f(0x1a3)),this['_collabSession'][_0x44555f(0x19b)]({'eventID':_0x39828a[_0x44555f(0x169)],'data':{'unitID':this[_0x44555f(0x186)]}},this[_0x44555f(0x186)]));}['startFollowing'](){var _0xc62691=_0x43ad12;this['_status']===_0xc62691(0x124)&&(this[_0xc62691(0x13f)][_0xc62691(0x19c)](_0xc62691(0x17b)),this[_0xc62691(0x14e)]());}[_0x43ad12(0x14c)](){var _0x32d772=_0x43ad12;this[_0x32d772(0x1a9)]===_0x32d772(0x17b)&&this[_0x32d772(0x182)]();}[_0x43ad12(0x159)](_0x13b2ba){var _0x31d93f=_0x43ad12;const {presenter:_0x46783f}=_0x13b2ba['data'],_0x198b4c=this['_collabSession']['getMemberID']();this[_0x31d93f(0x18d)]=_0x46783f,_0x46783f===_0x198b4c?(this[_0x31d93f(0x182)](),this[_0x31d93f(0x18f)]()):this[_0x31d93f(0x1a9)]!==_0x31d93f(0x124)&&(this[_0x31d93f(0x17f)](),this[_0x31d93f(0x14e)]());}[_0x43ad12(0x1bb)](){var _0x66a0ef=_0x43ad12;const _0x30e2b5={'eventID':_0x39828a[_0x66a0ef(0x1a7)]};this[_0x66a0ef(0x145)]['send'](_0x30e2b5,this[_0x66a0ef(0x186)]);}[_0x43ad12(0x129)](){var _0x161257=_0x43ad12;this[_0x161257(0x18d)]=null,this['_status']!==_0x161257(0x192)&&this[_0x161257(0x11f)]();}[_0x43ad12(0x162)](_0x346333){var _0x35d9a1=_0x43ad12;if(this[_0x35d9a1(0x1a9)]==='following'&&this[_0x35d9a1(0x18d)]===_0x346333[_0x35d9a1(0x14b)][_0x35d9a1(0x153)]){const _0x1b6381=_0x238891(_0x346333['data'])[_0x35d9a1(0x117)][_0x35d9a1(0x130)]()[_0x35d9a1(0x18b)](_0x49d9ff=>_0x49d9ff['id']===_0x61d40f['id']);if(_0x1b6381){const _0x47fee0=_0x1b6381[_0x35d9a1(0x178)]['unitId'],_0x1d52b6=_0x1b6381[_0x35d9a1(0x178)]['sheet']['id'];setTimeout(()=>{var _0x5c44c6=_0x35d9a1;this[_0x5c44c6(0x16b)][_0x5c44c6(0x1aa)](_0x82b7b3['id'],{'unitId':_0x47fee0,'subUnitId':_0x1d52b6},{'fromCollab':!0x0});});}}}[_0x43ad12(0x18f)](){var _0x593c9b=_0x43ad12;this['_status$'][_0x593c9b(0x19c)](_0x593c9b(0x192));const _0x5d117b=new Map(),_0x3b7c13=this['_commandDisposable']=new _0x4ec9f6();_0x3b7c13[_0x593c9b(0x13a)](_0x588afd(()=>{var _0x3680e6=_0x593c9b;_0x5d117b[_0x3680e6(0x163)](_0x2726d8=>_0x2726d8[_0x3680e6(0x172)]()),_0x5d117b['clear']();})),_0x3b7c13['add'](this['_commandService'][_0x593c9b(0x120)](_0x243ef4=>{var _0x4ac734=_0x593c9b,_0xa8e20d;if(_0x243ef4[_0x4ac734(0x147)]!==_0x2173c3[_0x4ac734(0x141)]||!this[_0x4ac734(0x1b8)][_0x4ac734(0x1b7)](_0x243ef4['id']))return;const {id:_0x4d69f9}=_0x243ef4;let _0x28f1a3;_0x5d117b[_0x4ac734(0x11a)](_0x4d69f9)?_0x28f1a3=_0x5d117b['get'](_0x4d69f9):(_0x28f1a3=new _0x546630(),_0x5d117b[_0x4ac734(0x10e)](_0x4d69f9,_0x28f1a3),_0x28f1a3['pipe'](_0x2bca3c((_0xa8e20d=this[_0x4ac734(0x1ba)][_0x4ac734(0x16c)](xe))!=null?_0xa8e20d:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4ac734(0x15f)](_0x255a90=>{var _0x499fa8=_0x4ac734;this[_0x499fa8(0x145)][_0x499fa8(0x19b)]({'eventID':_0x39828a[_0x499fa8(0x15c)],'data':{'unitID':this['_unitID'],'operations':{[_0x255a90['id']]:{'id':_0x255a90['id'],'params':JSON[_0x499fa8(0x155)](_0x255a90['params'])}}}},this[_0x499fa8(0x186)]);})),_0x28f1a3[_0x4ac734(0x19c)](_0x243ef4);})),this[_0x593c9b(0x1b8)]['getInitialStates'](this[_0x593c9b(0x186)])[_0x593c9b(0x163)](_0x34ce6b=>this[_0x593c9b(0x145)][_0x593c9b(0x19b)]({'eventID':_0x39828a[_0x593c9b(0x15c)],'data':{'unitID':this[_0x593c9b(0x186)],'operations':{[_0x34ce6b['id']]:{'id':_0x34ce6b['id'],'params':JSON['stringify'](_0x34ce6b[_0x593c9b(0x178)])}}}},this[_0x593c9b(0x186)]));}[_0x43ad12(0x17f)](){var _0x37d488=_0x43ad12,_0x8ff1a4;this['_status$'][_0x37d488(0x19c)](_0x37d488(0x1a3)),(_0x8ff1a4=this[_0x37d488(0x19e)])==null||_0x8ff1a4[_0x37d488(0x148)](),this[_0x37d488(0x19e)]=null;}[_0x43ad12(0x14e)](){var _0x266cee=_0x43ad12,_0x5c3f17;(_0x5c3f17=this['_commandDisposable'])==null||_0x5c3f17['dispose'](),this[_0x266cee(0x13f)]['next'](_0x266cee(0x17b));}['_beIdle'](){var _0x1a8173=_0x43ad12,_0x37949e;this[_0x1a8173(0x13f)][_0x1a8173(0x19c)](_0x1a8173(0x1a3)),(_0x37949e=this[_0x1a8173(0x19e)])==null||_0x37949e['dispose'](),this['_commandDisposable']=null;}[_0x43ad12(0x182)](){var _0xcd28b6=_0x43ad12,_0x401bc0;this['_status$'][_0xcd28b6(0x19c)](_0xcd28b6(0x124)),(_0x401bc0=this[_0xcd28b6(0x19e)])==null||_0x401bc0['dispose']();}['_handleOperation'](_0x47440e){var _0x44809d=_0x43ad12;if([_0x44809d(0x192),_0x44809d(0x124),_0x44809d(0x135)]['includes'](this[_0x44809d(0x1a9)])||!_0x47440e[_0x44809d(0x14b)]['presenter']||_0x47440e['data'][_0x44809d(0x11b)]===this[_0x44809d(0x145)][_0x44809d(0x183)]())return;this[_0x44809d(0x1a9)]===_0x44809d(0x1a3)&&this[_0x44809d(0x14e)]();const _0x2741cb=_0x47440e[_0x44809d(0x14b)][_0x44809d(0x10d)];Object[_0x44809d(0x14a)](_0x2741cb)[_0x44809d(0x163)](_0x11cf94=>{var _0x27ca02=_0x44809d;this['_commandService'][_0x27ca02(0x1aa)](_0x11cf94['id'],_0x11cf94['params']?JSON['parse'](_0x11cf94['params']):null,{'fromCollab':!0x0});});}[_0x43ad12(0x111)](){var _0x11702b=_0x43ad12,_0x3c29cf;this['_status$'][_0x11702b(0x19c)](_0x11702b(0x135)),(_0x3c29cf=this['_commandDisposable'])==null||_0x3c29cf['dispose']();}[_0x43ad12(0x152)](){var _0x2c41ec=_0x43ad12;this[_0x2c41ec(0x13f)][_0x2c41ec(0x19c)](_0x2c41ec(0x1a3)),this[_0x2c41ec(0x1bb)]();}};C=Z([f(0x2,_0x13311c),f(0x3,_0x415909(L)),f(0x4,_0x4937f3)],C);function ye(){var _0x460f50=_0x43ad12;const _0x366375=_0x3aad55(m),_0xc85841=_0x3aad55(_0x149d48),_0x2dacd0=_0x52b777(()=>_0xc85841[_0x460f50(0x12a)](_0x33c666[_0x460f50(0x18e)]),void 0x0,!0x1,[]),[_0x2eeb27,_0x454562]=_0x13739e(null),[_0x2e0a01,_0x1fe1cd]=_0x13739e(h['IDLE']),_0x206f76=_0x5dd95c(null);return _0x57601b(()=>(_0x2dacd0&&_0x366375[_0x460f50(0x156)](_0x2dacd0[_0x460f50(0x1be)]())[_0x460f50(0x180)](_0x150fbe=>{var _0x3774f6=_0x460f50;_0x454562(_0x150fbe),_0x206f76['current']=_0x150fbe[_0x3774f6(0x131)][_0x3774f6(0x15f)](_0x47b192=>{_0x1fe1cd(_0x47b192);});}),()=>{var _0x5bdbc5=_0x460f50,_0x458b64;(_0x458b64=_0x206f76[_0x5bdbc5(0x179)])==null||_0x458b64[_0x5bdbc5(0x123)](),_0x206f76[_0x5bdbc5(0x179)]=null;}),[_0x2dacd0,_0x366375]),_0x2eeb27?_0x10c595(_0x75180f,{'align':_0x460f50(0x138),'disabled':_0x2e0a01===h[_0x460f50(0x12d)],'className':_0x460f50(0x139),'overlay':_0x10c595(Re,{'status':_0x2e0a01,'coordinator':_0x2eeb27}),'children':_0x10c595(_0x460f50(0x149),{'className':_0x5e4436('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2e0a01===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2e0a01!==h[_0x460f50(0x12d)]}),'type':'button','children':_0x10c595(B,{'className':_0x460f50(0x1b5)})})}):null;}function Re(_0x57817d){var _0x370bdf=_0x43ad12;const {status:_0x1950d9,coordinator:_0x5f5522}=_0x57817d;switch(_0x1950d9){case h['IDLE']:return _0x10c595(Pe,{'coordinator':_0x5f5522});case h[_0x370bdf(0x134)]:return _0x10c595(Ae,{'coordinator':_0x5f5522});case h[_0x370bdf(0x13b)]:return _0x10c595(Te,{'coordinator':_0x5f5522});case h['OFFLINE']:return _0x10c595(Fe,{});case h[_0x370bdf(0x184)]:return _0x10c595($e,{'coordinator':_0x5f5522});default:return null;}}function Pe(_0x2a2fe2){var _0x2172ce=_0x43ad12;const {coordinator:_0x2e5d4a}=_0x2a2fe2;return _0x2b145f(_0x5aa383,{'children':[_0x10c595('div',{'className':_0x2172ce(0x10f),'children':_0x2172ce(0x173)}),_0x10c595(_0x3a9d39,{'onClick':()=>_0x2e5d4a['tryStartPresenting'](),'children':_0x2172ce(0x196)})]});}function Ae(_0x427630){var _0xacca79=_0x43ad12;const {coordinator:_0x4c571e}=_0x427630;return _0x2b145f(_0x5aa383,{'children':[_0x10c595(_0xacca79(0x190),{'className':_0xacca79(0x10f),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x10c595(_0x3a9d39,{'onClick':()=>_0x4c571e[_0xacca79(0x14c)](),'children':'Stop\x20following'})]});}function Te(_0x23ef1a){var _0x4dc7fc=_0x43ad12;const {coordinator:_0x11d62e}=_0x23ef1a;return _0x2b145f(_0x5aa383,{'children':[_0x10c595(_0x4dc7fc(0x190),{'className':_0x4dc7fc(0x10f),'children':_0x4dc7fc(0x126)}),_0x10c595(_0x3a9d39,{'variant':'text','onClick':()=>_0x11d62e[_0x4dc7fc(0x1a2)](),'children':_0x4dc7fc(0x161)})]});}function $e(_0x33a1f0){var _0x293508=_0x43ad12;const {coordinator:_0x3f81c0}=_0x33a1f0;return _0x2b145f(_0x5aa383,{'children':[_0x10c595('div',{'className':_0x293508(0x10f),'children':_0x293508(0x174)}),_0x10c595(_0x3a9d39,{'variant':_0x293508(0x154),'onClick':()=>_0x3f81c0['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Fe(){var _0x42edf6=_0x43ad12;return _0x10c595(_0x5aa383,{'children':_0x42edf6(0x137)});}var He=Object[_0x43ad12(0x1b6)],je=(_0x508d6e,_0x76f076,_0xfb9d47,_0x597f21)=>{var _0xca4084=_0x43ad12;for(var _0x43f9fa=_0x597f21>0x1?void 0x0:_0x597f21?He(_0x76f076,_0xfb9d47):_0x76f076,_0x32de71=_0x508d6e[_0xca4084(0x185)]-0x1,_0xa3f41f;_0x32de71>=0x0;_0x32de71--)(_0xa3f41f=_0x508d6e[_0x32de71])&&(_0x43f9fa=_0xa3f41f(_0x43f9fa)||_0x43f9fa);return _0x43f9fa;},T=(_0x3de9d8,_0x432a49)=>(_0x287650,_0x5a9a49)=>_0x432a49(_0x287650,_0x5a9a49,_0x3de9d8);function _0x59c7(){var _0x5bbf20=['SAME_OPERATION_SHARE_INTERVAL','Start\x20following','_handleNewChangeSets','forEach','requireSession','setConfig','xlink:href','event$','children','LIVESHARE_TERMINATE','UNIVER_UNKNOWN','_commandService','getConfig','get','1719976EanUnq','_init','1923832COLdxK','1720xAiZjU','complete','Present\x20this\x20document','You\x27re\x20presenting\x20the\x20document','substring','delete','url(#$1','params','current','4pKGvIM','following','9BLVPZy','7304EemPpo','stopPresenting','_stopPresenting','then','from','_stopFollowing','getMemberID','PRESENTING','length','_unitID','6504880MpKkzb','_univerInstanceService','pipe','colorChannel1','find','propertyIsEnumerable','_presenter','UNIVER_SHEET','_startPresenting','div','LIVESHARE_NEW_HOST','presenting','override','2392482RtUvaV','_startLiveShareCoordinator','Start','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','onStarting','_collabSessionService','extend','send','next','hasOwnProperty','_commandDisposable','string','_mountLiveShare','className','startFollowing','idle','UniverIcon','IDLE','function','LIVESHARE_FETCH_OPERATIONS','concat','_status','executeCommand','assign','none','apply','includes','init','icon','use','getValue','path','_config','univer-size-4','getOwnPropertyDescriptor','shouldShareOperation','_liveShareService','replace','_configService','_fetchOperations','indexOf','_injector','getUnitId','displayName','attrs','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','ONLINE','NEW_CHANGESETS','operations','set','univer-mb-3\x20univer-w-full\x20univer-text-sm','toString','_handleOffline','symbol','idSuffix','dispose$','_reporters','registerSharedOperation','mutations','_handleOperation','entries','has','presenter','map','tag','1em','_beIdle','onCommandExecuted','pluginName','fill','unsubscribe','not-following','prototype','You\x27re\x20not\x20following\x20the\x20presenter','defs','defineProperty','_handleTerminate','getCurrentTypeOfUnit$','disposeWithMe','sessionStatus$','OFFLINE','_entities','call','reverse','status$','_sharedOperations','getOwnPropertySymbols','FOLLOWING','offline','univerjs-icon\x20univerjs-icon-','You\x27are\x20offline.','end','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','NOT_FOLLOWING','random','LIVESHARE_REQUEST_HOST','evenodd','_status$','http://www.w3.org/2000/svg','OPERATION','currentColor','7ycYBsd','live-share-icon','_collabSession','registerComponent','type','dispose','button','values','data','stopFollowing','6955afPYKR','_startFollowing','svg','mask','getInitialStates','_handleOnline','memberID','default','stringify','getLiveShareCoordinator','_uiPartsService','registerInitialStateReporter','_handleNewHost','trim','16005ruNFTS','LIVESHARE_OPERATION','getTypeOfUnitAdded$','getTypeOfUnitDisposed$','subscribe'];_0x59c7=function(){return _0x5bbf20;};return _0x59c7();}let I=class extends _0x1b4c3b{constructor(_0x3c5285,_0x589df5){var _0x5ab782=_0x43ad12;super(),this[_0x5ab782(0x1bd)]=_0x3c5285,this[_0x5ab782(0x157)]=_0x589df5,this[_0x5ab782(0x1a0)]();}['_mountLiveShare'](){var _0xc12a86=_0x43ad12;this[_0xc12a86(0x12b)](this[_0xc12a86(0x157)][_0xc12a86(0x146)](_0x3c9c42['HEADER_MENU'],()=>_0x1896e1(ye,this['_injector'])));}};I=je([T(0x0,_0x415909(_0x3fc7f2)),T(0x1,_0x3d81bf)],I);const Ue='live-share.config',$={};var Ve=Object['getOwnPropertyDescriptor'],Me=(_0x5c04f3,_0x1682c0,_0x31924b,_0x3f51db)=>{for(var _0xd7c9b0=_0x3f51db>0x1?void 0x0:_0x3f51db?Ve(_0x1682c0,_0x31924b):_0x1682c0,_0x44252e=_0x5c04f3['length']-0x1,_0x5e068a;_0x44252e>=0x0;_0x44252e--)(_0x5e068a=_0x5c04f3[_0x44252e])&&(_0xd7c9b0=_0x5e068a(_0xd7c9b0)||_0xd7c9b0);return _0xd7c9b0;},ke=(_0x344af6,_0x5c7f4f)=>(_0x148486,_0x4907f3)=>_0x5c7f4f(_0x148486,_0x4907f3,_0x344af6);let b=class extends _0x1b4c3b{constructor(_0x329840){var _0x582655=_0x43ad12;super(),this['_liveShareService']=_0x329840,this[_0x582655(0x16f)]();}[_0x43ad12(0x16f)](){var _0x5def39=_0x43ad12;[_0xb0b9cb['id'],_0x2b4266['id'],_0x82b7b3['id']][_0x5def39(0x163)](_0x5742fc=>{var _0x12275e=_0x5def39;this[_0x12275e(0x12b)](this[_0x12275e(0x1b8)][_0x12275e(0x116)](_0x5742fc));});}};b=Me([ke(0x0,_0x415909(L))],b);var Ge=Object[_0x43ad12(0x128)],We=Object[_0x43ad12(0x1b6)],Ye=(_0x215cb6,_0x2c906f,_0x2ce248)=>_0x2c906f in _0x215cb6?Ge(_0x215cb6,_0x2c906f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ce248}):_0x215cb6[_0x2c906f]=_0x2ce248,Be=(_0x12f9e1,_0x1f0d31,_0x512454,_0x5a7f64)=>{var _0x3110a4=_0x43ad12;for(var _0x19d988=_0x5a7f64>0x1?void 0x0:_0x5a7f64?We(_0x1f0d31,_0x512454):_0x1f0d31,_0x1bafe5=_0x12f9e1[_0x3110a4(0x185)]-0x1,_0x5925da;_0x1bafe5>=0x0;_0x1bafe5--)(_0x5925da=_0x12f9e1[_0x1bafe5])&&(_0x19d988=_0x5925da(_0x19d988)||_0x19d988);return _0x19d988;},F=(_0x32496f,_0x179d8b)=>(_0x1e2084,_0x1cda7f)=>_0x179d8b(_0x1e2084,_0x1cda7f,_0x32496f),J=(_0x12c914,_0x2aa623,_0x2daeba)=>Ye(_0x12c914,typeof _0x2aa623!=_0x43ad12(0x112)?_0x2aa623+'':_0x2aa623,_0x2daeba);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x36a567{constructor(_0x4dfdb5=$,_0x446f4f,_0x44cfba){var _0x4c2ac8=_0x43ad12;super(),this['_config']=_0x4dfdb5,this[_0x4c2ac8(0x1bd)]=_0x446f4f,this[_0x4c2ac8(0x1ba)]=_0x44cfba;const {..._0xa95df4}=_0x567ad9({},$,this[_0x4c2ac8(0x1b4)]);this['_configService'][_0x4c2ac8(0x165)](Ue,_0xa95df4);}[_0x43ad12(0x198)](){var _0x5ffbc6=_0x43ad12;_0x540bc8(this[_0x5ffbc6(0x1bd)],_0x14ee17([[L],[m],[b],[I]],this[_0x5ffbc6(0x1b4)][_0x5ffbc6(0x193)])),_0x41f7e0(this['_injector'],[[b]]);}['onRendered'](){_0x41f7e0(this['_injector'],[[I]]);}};J(O,_0x43ad12(0x147),_0x33c666[_0x43ad12(0x16a)]),J(O,_0x43ad12(0x121),Ze),O=Be([_0x1b3cbd(_0x485a8f),F(0x1,_0x415909(_0x3fc7f2)),F(0x2,_0x13311c)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x20ffcd=_0x2eb9;(function(_0x2b75fc,_0x27b805){var _0x3d8cbe=_0x2eb9,_0x51e224=_0x2b75fc();while(!![]){try{var _0x3de8ba=parseInt(_0x3d8cbe(0xc1))/0x1*(parseInt(_0x3d8cbe(0xb3))/0x2)+-parseInt(_0x3d8cbe(0x124))/0x3*(-parseInt(_0x3d8cbe(0x131))/0x4)+-parseInt(_0x3d8cbe(0x91))/0x5+parseInt(_0x3d8cbe(0xf0))/0x6+-parseInt(_0x3d8cbe(0xc3))/0x7*(-parseInt(_0x3d8cbe(0xef))/0x8)+parseInt(_0x3d8cbe(0xd8))/0x9*(parseInt(_0x3d8cbe(0x116))/0xa)+-parseInt(_0x3d8cbe(0xa6))/0xb*(parseInt(_0x3d8cbe(0x12e))/0xc);if(_0x3de8ba===_0x27b805)break;else _0x51e224['push'](_0x51e224['shift']());}catch(_0x251c97){_0x51e224['push'](_0x51e224['shift']());}}}(_0x9300,0x4beb2));var q=Object[_0x20ffcd(0x121)],z=(_0x36d883,_0x37b2e7,_0x1d3ce6)=>_0x37b2e7 in _0x36d883?q(_0x36d883,_0x37b2e7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d3ce6}):_0x36d883[_0x37b2e7]=_0x1d3ce6,d=(_0x2a1788,_0x4628c7,_0x1b4fc7)=>z(_0x2a1788,typeof _0x4628c7!=_0x20ffcd(0x12f)?_0x4628c7+'':_0x4628c7,_0x1b4fc7);import{Disposable as _0x539b1d,toDisposable as _0x6f4b16,IUniverInstanceService as _0x43cc96,Inject as _0x42b534,Injector as _0x59a932,IConfigService as _0x54be48,ICommandService as _0x53f3c0,RxDisposable as _0x483a0a,UniverInstanceType as _0x38c32e,DisposableCollection as _0x1c0ac7,CommandType as _0x406405,DependentOn as _0x50aa05,Plugin as _0x574128,merge as _0x78447b,registerDependencies as _0x3e2832,mergeOverrideWithDependencies as _0x360b36,touchDependencies as _0x5b4f9e}from'@univerjs/core';import{useDependency as _0x26c555,useObservable as _0x45febd,IUIPartsService as _0x4f299e,BuiltInUIPart as _0x1b50ea,connectInjector as _0x5bf79f}from'@univerjs/ui';function _0x9300(){var _0x23791d=['http://www.w3.org/2000/svg','type','current','_presenter','event$','next','createInstance','_injector','97176KcQeIh','3568134HIkJGi','_beIdle','idSuffix','PRESENTING','params','children','onCommandExecuted','length','send','LIVESHARE_OPERATION','init','className','getInitialStates','onRendered','entries','_status','fill','defIds','status$','values','_status$','_sharedOperations','unitId','subscribe','_collabSessionService','_startFollowing','_handleOnline','Stop\x20following','string','hasOwnProperty','has','icon','_handleOperation','operations','ONLINE','includes','live-share-icon','_univerInstanceService','131320zMqAaY','UNIVER_SHEET','onStarting','registerSharedOperation','_reporters','sheet','reverse','text','getMemberID','_uiPartsService','startFollowing','defineProperty','path','_startPresenting','474795KuCpja','propertyIsEnumerable','extend','UNIVER_UNKNOWN','indexOf','presenter','univer-mb-3\x20univer-w-full\x20univer-text-sm','map','setConfig','_handleOffline','24jqwAfF','symbol','Start','12wFKvpI','_entities','FOLLOWING','univerjs-icon\x20univerjs-icon-','stopFollowing','LIVESHARE_FETCH_OPERATIONS','from','data','_fetchOperations','override','getValue','_config','tryStartPresenting','toString','unsubscribe','_liveShareService','_handleNewChangeSets','You\x27re\x20presenting\x20the\x20document','concat','currentColor','dispose','1422970oPwGrh','_commandService','offline','none','You\x27are\x20offline.','idle','UniverIcon','_unitID','add','You\x27re\x20not\x20following\x20the\x20presenter','following','getCurrentTypeOfUnit$','_commandDisposable','getOwnPropertySymbols','apply','getTypeOfUnitAdded$','shouldShareOperation','requireSession','disposeWithMe','live-share.config','evenodd','6671423BhVXNS','presenting','registerInitialStateReporter','LIVESHARE_REQUEST_HOST','getUnitId','_configService','LIVESHARE_TERMINATE','You\x27re\x20following\x20the\x20presenter','defs','getTypeOfUnitDisposed$','forEach','NOT_FOLLOWING','assign','2ZxhInW','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','Present\x20this\x20document','call','dispose$','set','NEW_CHANGESETS','_mountLiveShare','executeCommand','div','memberID','delete','_stopPresenting','not-following','203605TvScnc','stopPresenting','301MPArvr','getConfig','prototype','getOwnPropertyDescriptor','colorChannel1','_startLiveShareCoordinator','mutations','_handleTerminate','find','IDLE','_init','displayName','_stopFollowing','mask','LiveShareIcon','svg','default','xlink:href','registerComponent','SAME_OPERATION_SHARE_INTERVAL','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','9XvnfAd','clear','attrs','use','pipe','OFFLINE','url(#$1','stringify','button','tag','getLiveShareCoordinator','_collabSession','_handleNewHost','replace','get'];_0x9300=function(){return _0x23791d;};return _0x9300();}import{jsx as _0x157b9a,jsxs as _0x473891,Fragment as _0x55b1a3}from'react/jsx-runtime';import{Dropdown as _0xb7599b,clsx as _0x400561,Button as _0x28c9ca}from'@univerjs/design';import{forwardRef as _0x7a472b,useRef as _0x4928e4,createElement as _0x23f67a,useState as _0x3d360d,useEffect as _0x752798}from'react';import{CollaborationEvent as _0x2abc7e,parseProtocolChangeset as _0x5d4330}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x4f9f70,SessionStatus as _0x1cf2a1,UniverCollaborationClientPlugin as _0x2f65a8}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3240f5,SetWorksheetActiveOperation as _0x208319}from'@univerjs/sheets';import{BehaviorSubject as _0x1e4a81,Subject as _0x396bc7}from'rxjs';import{takeUntil as _0x5b2945,throttleTime as _0x5c2331}from'rxjs/operators';import{SetZoomRatioOperation as _0x5deda2,SetScrollOperation as _0x5abaaa}from'@univerjs/sheets-ui';var c=function(){var _0xf16334=_0x20ffcd;return c=Object[_0xf16334(0xb2)]||function(_0x5eb54e){var _0x33d02a=_0xf16334;for(var _0x3a9f7b,_0x4af609=0x1,_0x9e4e20=arguments[_0x33d02a(0xf7)];_0x4af609<_0x9e4e20;_0x4af609++){_0x3a9f7b=arguments[_0x4af609];for(var _0x24a116 in _0x3a9f7b)Object[_0x33d02a(0xc5)]['hasOwnProperty'][_0x33d02a(0xb6)](_0x3a9f7b,_0x24a116)&&(_0x5eb54e[_0x24a116]=_0x3a9f7b[_0x24a116]);}return _0x5eb54e;},c[_0xf16334(0x9f)](this,arguments);},Oe=function(_0x3942af,_0x4422c1){var _0xe8340f=_0x20ffcd,_0x4d91ae={};for(var _0x481cf8 in _0x3942af)Object['prototype'][_0xe8340f(0x10d)]['call'](_0x3942af,_0x481cf8)&&_0x4422c1[_0xe8340f(0x128)](_0x481cf8)<0x0&&(_0x4d91ae[_0x481cf8]=_0x3942af[_0x481cf8]);if(_0x3942af!=null&&typeof Object[_0xe8340f(0x9e)]=='function'){for(var _0x36f605=0x0,_0x481cf8=Object['getOwnPropertySymbols'](_0x3942af);_0x36f605<_0x481cf8['length'];_0x36f605++)_0x4422c1['indexOf'](_0x481cf8[_0x36f605])<0x0&&Object[_0xe8340f(0xc5)][_0xe8340f(0x125)][_0xe8340f(0xb6)](_0x3942af,_0x481cf8[_0x36f605])&&(_0x4d91ae[_0x481cf8[_0x36f605]]=_0x3942af[_0x481cf8[_0x36f605]]);}return _0x4d91ae;},W=_0x7a472b(function(_0x20cb53,_0x8e1fe0){var _0x10ac0b=_0x20ffcd,_0x1b2cce=_0x20cb53['icon'],_0x9d6e3e=_0x20cb53['id'],_0x473ed6=_0x20cb53[_0x10ac0b(0xfb)],_0x290904=_0x20cb53[_0x10ac0b(0x126)],_0x4fa4f4=Oe(_0x20cb53,[_0x10ac0b(0x10f),'id',_0x10ac0b(0xfb),'extend']),_0x260855=_0x10ac0b(0x134)[_0x10ac0b(0x8e)](_0x9d6e3e,'\x20')[_0x10ac0b(0x8e)](_0x473ed6||'')['trim'](),_0x418b50=_0x4928e4('_'[_0x10ac0b(0x8e)](Ne()));return Y(_0x1b2cce,''[_0x10ac0b(0x8e)](_0x9d6e3e),{'defIds':_0x1b2cce[_0x10ac0b(0x101)],'idSuffix':_0x418b50['current']},c({'ref':_0x8e1fe0,'className':_0x260855},_0x4fa4f4),_0x290904);});function Y(_0x4332a8,_0x53ab35,_0xacdba,_0x1444da,_0x19d1da){var _0x54b9c9=_0x20ffcd;return _0x23f67a(_0x4332a8[_0x54b9c9(0xe1)],c(c({'key':_0x53ab35},Ee(_0x4332a8,_0xacdba,_0x19d1da)),_0x1444da),(we(_0x4332a8,_0xacdba)[_0x54b9c9(0xf5)]||[])[_0x54b9c9(0x12b)](function(_0x176e99,_0x210eb2){var _0x1c88de=_0x54b9c9;return Y(_0x176e99,''['concat'](_0x53ab35,'-')['concat'](_0x4332a8['tag'],'-')[_0x1c88de(0x8e)](_0x210eb2),_0xacdba,void 0x0,_0x19d1da);}));}function Ee(_0x8203fc,_0x232873,_0x146f8e){var _0x320c35=_0x20ffcd,_0x132089=c({},_0x8203fc['attrs']);_0x146f8e!=null&&_0x146f8e['colorChannel1']&&_0x132089[_0x320c35(0x100)]===_0x320c35(0xc7)&&(_0x132089[_0x320c35(0x100)]=_0x146f8e[_0x320c35(0xc7)]),_0x8203fc[_0x320c35(0xe1)]==='mask'&&_0x132089['id']&&(_0x132089['id']=_0x132089['id']+_0x232873[_0x320c35(0xf2)]),Object['entries'](_0x132089)[_0x320c35(0xb0)](function(_0x4bd1a8){var _0x4ca582=_0x320c35,_0x1ef676=_0x4bd1a8[0x0],_0x2068e0=_0x4bd1a8[0x1];_0x1ef676===_0x4ca582(0xd0)&&typeof _0x2068e0==_0x4ca582(0x10c)&&(_0x132089[_0x1ef676]=_0x2068e0[_0x4ca582(0xe5)](/url\(#(.*)\)/,_0x4ca582(0xde)['concat'](_0x232873[_0x4ca582(0xf2)],')')));});var _0x4f0b36=_0x232873[_0x320c35(0x101)];return!_0x4f0b36||_0x4f0b36[_0x320c35(0xf7)]===0x0||(_0x8203fc[_0x320c35(0xe1)]===_0x320c35(0xdb)&&_0x132089[_0x320c35(0xd4)]&&(_0x132089[_0x320c35(0xd4)]=_0x132089[_0x320c35(0xd4)]+_0x232873[_0x320c35(0xf2)]),Object[_0x320c35(0xfe)](_0x132089)['forEach'](function(_0x2a0c26){var _0x3f65b4=_0x320c35,_0x4983e2=_0x2a0c26[0x0],_0x39ddfc=_0x2a0c26[0x1];typeof _0x39ddfc=='string'&&(_0x132089[_0x4983e2]=_0x39ddfc[_0x3f65b4(0xe5)](/url\(#(.*)\)/,_0x3f65b4(0xde)[_0x3f65b4(0x8e)](_0x232873['idSuffix'],')')));})),_0x132089;}function we(_0x1b0d58,_0x1002f7){var _0x43d901=_0x20ffcd,_0x123073,_0x2e0fae=_0x1002f7[_0x43d901(0x101)];return!_0x2e0fae||_0x2e0fae[_0x43d901(0xf7)]===0x0?_0x1b0d58:_0x1b0d58[_0x43d901(0xe1)]===_0x43d901(0xae)&&(!((_0x123073=_0x1b0d58[_0x43d901(0xf5)])===null||_0x123073===void 0x0)&&_0x123073[_0x43d901(0xf7)])?c(c({},_0x1b0d58),{'children':_0x1b0d58[_0x43d901(0xf5)][_0x43d901(0x12b)](function(_0x32f4b3){var _0x1df102=_0x43d901;return typeof _0x32f4b3['attrs']['id']==_0x1df102(0x10c)&&_0x2e0fae&&_0x2e0fae[_0x1df102(0x113)](_0x32f4b3['attrs']['id'])?c(c({},_0x32f4b3),{'attrs':c(c({},_0x32f4b3[_0x1df102(0xda)]),{'id':_0x32f4b3[_0x1df102(0xda)]['id']+_0x1002f7['idSuffix']})}):_0x32f4b3;})}):_0x1b0d58;}function Ne(){var _0x474e05=_0x20ffcd;return Math['random']()[_0x474e05(0x89)](0x24)['substring'](0x2,0x8);}W[_0x20ffcd(0xce)]=_0x20ffcd(0x97);var Ce={'tag':_0x20ffcd(0xd2),'attrs':{'xmlns':_0x20ffcd(0xe7),'fill':_0x20ffcd(0x94),'viewBox':'0\x200\x2017\x2017','width':'1em','height':'1em'},'children':[{'tag':_0x20ffcd(0x122),'attrs':{'fill':_0x20ffcd(0x8f),'d':_0x20ffcd(0xb4)}},{'tag':'path','attrs':{'fill':_0x20ffcd(0x8f),'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':_0x20ffcd(0xa5),'clipRule':_0x20ffcd(0xa5)}}]},B=_0x7a472b(function(_0x434678,_0x1f52f2){var _0x302b39=_0x20ffcd;return _0x23f67a(W,Object['assign']({},_0x434678,{'id':_0x302b39(0x114),'ref':_0x1f52f2,'icon':Ce}));});function _0x2eb9(_0x5dfbc0,_0x4ef128){var _0x9300a0=_0x9300();return _0x2eb9=function(_0x2eb90b,_0x2124eb){_0x2eb90b=_0x2eb90b-0x85;var _0x1c9c27=_0x9300a0[_0x2eb90b];return _0x1c9c27;},_0x2eb9(_0x5dfbc0,_0x4ef128);}B[_0x20ffcd(0xce)]=_0x20ffcd(0xd1);class L extends _0x539b1d{constructor(){var _0x35854c=_0x20ffcd;super(...arguments),d(this,_0x35854c(0x105),new Set()),d(this,_0x35854c(0x11a),new Set());}[_0x20ffcd(0x119)](_0x398132){var _0x448957=_0x20ffcd;return this[_0x448957(0x105)][_0x448957(0x99)](_0x398132),_0x6f4b16(()=>this[_0x448957(0x105)][_0x448957(0xbe)](_0x398132));}[_0x20ffcd(0xa8)](_0x5c8e56){var _0x39a15a=_0x20ffcd;return this[_0x39a15a(0x11a)][_0x39a15a(0x99)](_0x5c8e56),_0x6f4b16(()=>this[_0x39a15a(0x11a)]['delete'](_0x5c8e56));}[_0x20ffcd(0xa1)](_0xcd336b){var _0x4c4bbb=_0x20ffcd;return this['_sharedOperations'][_0x4c4bbb(0x10e)](_0xcd336b);}[_0x20ffcd(0xfc)](_0x3f02a8){var _0x31e215=_0x20ffcd;return Array[_0x31e215(0x137)](this[_0x31e215(0x11a)])[_0x31e215(0x12b)](_0x38ff09=>_0x38ff09(_0x3f02a8));}}var De=Object[_0x20ffcd(0xc6)],Z=(_0x2867b1,_0x11cd36,_0x2a2236,_0x45b7b0)=>{var _0x192486=_0x20ffcd;for(var _0x140dc1=_0x45b7b0>0x1?void 0x0:_0x45b7b0?De(_0x11cd36,_0x2a2236):_0x11cd36,_0x39601a=_0x2867b1[_0x192486(0xf7)]-0x1,_0x5975a7;_0x39601a>=0x0;_0x39601a--)(_0x5975a7=_0x2867b1[_0x39601a])&&(_0x140dc1=_0x5975a7(_0x140dc1)||_0x140dc1);return _0x140dc1;},f=(_0x309e57,_0x795664)=>(_0xe5c25a,_0x49b8d3)=>_0x795664(_0xe5c25a,_0x49b8d3,_0x309e57);let m=class extends _0x483a0a{constructor(_0x49be32,_0x1f22e6,_0x5d3ae9){var _0x45eb05=_0x20ffcd;super(),d(this,_0x45eb05(0x132),new Map()),(this[_0x45eb05(0x115)]=_0x49be32,this['_injector']=_0x1f22e6,this['_collabSessionService']=_0x5d3ae9,this[_0x45eb05(0xcd)]());}async[_0x20ffcd(0xe2)](_0x4fc6eb){var _0x493172=_0x20ffcd;return this[_0x493172(0x132)]['has'](_0x4fc6eb)||await this['_startLiveShareCoordinator'](_0x4fc6eb),this[_0x493172(0x132)]['get'](_0x4fc6eb);}[_0x20ffcd(0xcd)](){var _0x21acef=_0x20ffcd;this[_0x21acef(0x115)][_0x21acef(0xa0)](_0x38c32e[_0x21acef(0x117)])['pipe'](_0x5b2945(this[_0x21acef(0xb7)]))[_0x21acef(0x107)](async _0x4f9ae6=>{var _0x589536=_0x21acef;const _0x40b3fe=_0x4f9ae6[_0x589536(0xaa)]();this[_0x589536(0x132)][_0x589536(0x10e)](_0x40b3fe)||this[_0x589536(0xc8)](_0x40b3fe);}),this[_0x21acef(0x115)][_0x21acef(0xaf)](_0x38c32e[_0x21acef(0x117)])['pipe'](_0x5b2945(this[_0x21acef(0xb7)]))[_0x21acef(0x107)](_0x527482=>{var _0x1618de=_0x21acef;const _0x5b5dd1=_0x527482[_0x1618de(0xaa)](),_0xc9b338=this[_0x1618de(0x132)][_0x1618de(0xe6)](_0x5b5dd1);_0xc9b338==null||_0xc9b338[_0x1618de(0x90)]();});}async[_0x20ffcd(0xc8)](_0x5e6fa6){var _0x27b1a0=_0x20ffcd;const _0x1d6e57=await this[_0x27b1a0(0x108)][_0x27b1a0(0xa2)](_0x5e6fa6),_0x3823e4=this[_0x27b1a0(0xee)][_0x27b1a0(0xed)](C,_0x5e6fa6,_0x1d6e57);return _0x3823e4[_0x27b1a0(0xfa)](),this[_0x27b1a0(0x132)][_0x27b1a0(0xb8)](_0x5e6fa6,_0x3823e4),_0x3823e4;}};m=Z([f(0x0,_0x43cc96),f(0x1,_0x42b534(_0x59a932)),f(0x2,_0x42b534(_0x4f9f70))],m);var h=(_0x3dcbf5=>(_0x3dcbf5['OFFLINE']=_0x20ffcd(0x93),_0x3dcbf5[_0x20ffcd(0xcc)]=_0x20ffcd(0x96),_0x3dcbf5['FOLLOWING']=_0x20ffcd(0x9b),_0x3dcbf5['NOT_FOLLOWING']='not-following',_0x3dcbf5[_0x20ffcd(0xf3)]=_0x20ffcd(0xa7),_0x3dcbf5))(h||{});const xe=_0x20ffcd(0xd6),Le=0xc8;let C=class extends _0x483a0a{constructor(_0x309cbc,_0x4cabe9,_0x8e41c7,_0x4c01f4,_0x160d03){var _0x33d594=_0x20ffcd;super(),d(this,'_status$',new _0x1e4a81(_0x33d594(0x96))),d(this,_0x33d594(0x102),this['_status$']['asObservable']()),d(this,'_init',!0x1),d(this,_0x33d594(0x9d),null),d(this,_0x33d594(0xea),null),(this[_0x33d594(0x98)]=_0x309cbc,this[_0x33d594(0xe3)]=_0x4cabe9,this['_configService']=_0x8e41c7,this[_0x33d594(0x8b)]=_0x4c01f4,this[_0x33d594(0x92)]=_0x160d03);}get['_status'](){var _0xed1284=_0x20ffcd;return this[_0xed1284(0x104)][_0xed1284(0x86)]();}[_0x20ffcd(0x90)](){var _0xfeab79=_0x20ffcd,_0xe95d63;(_0xe95d63=this[_0xfeab79(0x9d)])==null||_0xe95d63[_0xfeab79(0x90)](),this[_0xfeab79(0x104)][_0xfeab79(0xec)](_0xfeab79(0x96)),this['_status$']['complete']();}['init'](){var _0x164c56=_0x20ffcd;this['_init']||(this['_init']=!0x0,this[_0x164c56(0xe3)]['sessionStatus$'][_0x164c56(0xdc)](_0x5b2945(this[_0x164c56(0xb7)]))[_0x164c56(0x107)](_0x4f2f8e=>{var _0x5ebdc3=_0x164c56;switch(_0x4f2f8e){case _0x1cf2a1['OFFLINE']:this[_0x5ebdc3(0x12d)]();break;case _0x1cf2a1[_0x5ebdc3(0x112)]:this[_0x5ebdc3(0x10a)]();break;}}),this[_0x164c56(0xe3)][_0x164c56(0xeb)][_0x164c56(0xdc)](_0x5b2945(this[_0x164c56(0xb7)]))[_0x164c56(0x107)](_0x582462=>{var _0x3aa487=_0x164c56;const {eventID:_0x57758a}=_0x582462;switch(_0x57758a){case _0x2abc7e['LIVESHARE_NEW_HOST']:this[_0x3aa487(0xe4)](_0x582462);break;case _0x2abc7e[_0x3aa487(0xf9)]:this['_handleOperation'](_0x582462);break;case _0x2abc7e[_0x3aa487(0xac)]:this[_0x3aa487(0xca)]();break;case _0x2abc7e[_0x3aa487(0xb9)]:this[_0x3aa487(0x8c)](_0x582462);break;}}));}[_0x20ffcd(0x88)](){var _0x4260bf=_0x20ffcd;this[_0x4260bf(0xe3)][_0x4260bf(0xf8)]({'eventID':_0x2abc7e[_0x4260bf(0xa9)],'data':{'unitID':this[_0x4260bf(0x98)],'userID':this['_collabSession'][_0x4260bf(0x11e)]()}},this['_unitID']);}[_0x20ffcd(0xc2)](){var _0x29cc31=_0x20ffcd;this[_0x29cc31(0xff)]==='presenting'&&(this[_0x29cc31(0x104)][_0x29cc31(0xec)]('idle'),this[_0x29cc31(0xe3)][_0x29cc31(0xf8)]({'eventID':_0x2abc7e[_0x29cc31(0xac)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x20ffcd(0x120)](){var _0x36dbf3=_0x20ffcd;this[_0x36dbf3(0xff)]===_0x36dbf3(0xc0)&&(this[_0x36dbf3(0x104)][_0x36dbf3(0xec)](_0x36dbf3(0x9b)),this[_0x36dbf3(0x109)]());}[_0x20ffcd(0x135)](){var _0x22cd64=_0x20ffcd;this[_0x22cd64(0xff)]===_0x22cd64(0x9b)&&this[_0x22cd64(0xcf)]();}[_0x20ffcd(0xe4)](_0x197f32){var _0x39a9b5=_0x20ffcd;const {presenter:_0x1c969e}=_0x197f32[_0x39a9b5(0x138)],_0x8702b3=this[_0x39a9b5(0xe3)][_0x39a9b5(0x11e)]();this[_0x39a9b5(0xea)]=_0x1c969e,_0x1c969e===_0x8702b3?(this[_0x39a9b5(0xcf)](),this[_0x39a9b5(0x123)]()):this[_0x39a9b5(0xff)]!==_0x39a9b5(0xc0)&&(this[_0x39a9b5(0xbf)](),this['_startFollowing']());}[_0x20ffcd(0x139)](){var _0x2b7ab1=_0x20ffcd;const _0x4aad35={'eventID':_0x2abc7e[_0x2b7ab1(0x136)]};this[_0x2b7ab1(0xe3)][_0x2b7ab1(0xf8)](_0x4aad35,this['_unitID']);}['_handleTerminate'](){var _0x338ba1=_0x20ffcd;this[_0x338ba1(0xea)]=null,this[_0x338ba1(0xff)]!=='presenting'&&this[_0x338ba1(0xf1)]();}[_0x20ffcd(0x8c)](_0x1e407d){var _0x15de91=_0x20ffcd;if(this[_0x15de91(0xff)]===_0x15de91(0x9b)&&this['_presenter']===_0x1e407d[_0x15de91(0x138)][_0x15de91(0xbd)]){const _0xb04db0=_0x5d4330(_0x1e407d[_0x15de91(0x138)])[_0x15de91(0xc9)][_0x15de91(0x11c)]()[_0x15de91(0xcb)](_0x1fc8b9=>_0x1fc8b9['id']===_0x3240f5['id']);if(_0xb04db0){const _0x2d5386=_0xb04db0[_0x15de91(0xf4)][_0x15de91(0x106)],_0x2e3c61=_0xb04db0[_0x15de91(0xf4)][_0x15de91(0x11b)]['id'];setTimeout(()=>{var _0x1ecf1b=_0x15de91;this[_0x1ecf1b(0x92)][_0x1ecf1b(0xbb)](_0x208319['id'],{'unitId':_0x2d5386,'subUnitId':_0x2e3c61},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0xc76bac=_0x20ffcd;this[_0xc76bac(0x104)]['next'](_0xc76bac(0xa7));const _0xd3dee4=new Map(),_0x529bd5=this[_0xc76bac(0x9d)]=new _0x1c0ac7();_0x529bd5[_0xc76bac(0x99)](_0x6f4b16(()=>{var _0xc4795=_0xc76bac;_0xd3dee4[_0xc4795(0xb0)](_0x26eca9=>_0x26eca9['complete']()),_0xd3dee4[_0xc4795(0xd9)]();})),_0x529bd5[_0xc76bac(0x99)](this[_0xc76bac(0x92)][_0xc76bac(0xf6)](_0xb0c0a3=>{var _0x3f4e5c=_0xc76bac,_0x23b1a6;if(_0xb0c0a3[_0x3f4e5c(0xe8)]!==_0x406405['OPERATION']||!this[_0x3f4e5c(0x8b)][_0x3f4e5c(0xa1)](_0xb0c0a3['id']))return;const {id:_0x1b43d1}=_0xb0c0a3;let _0x4d2385;_0xd3dee4['has'](_0x1b43d1)?_0x4d2385=_0xd3dee4[_0x3f4e5c(0xe6)](_0x1b43d1):(_0x4d2385=new _0x396bc7(),_0xd3dee4[_0x3f4e5c(0xb8)](_0x1b43d1,_0x4d2385),_0x4d2385[_0x3f4e5c(0xdc)](_0x5c2331((_0x23b1a6=this[_0x3f4e5c(0xab)][_0x3f4e5c(0xc4)](xe))!=null?_0x23b1a6:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3f4e5c(0x107)](_0x4d89d3=>{var _0x1a35b2=_0x3f4e5c;this[_0x1a35b2(0xe3)]['send']({'eventID':_0x2abc7e[_0x1a35b2(0xf9)],'data':{'unitID':this['_unitID'],'operations':{[_0x4d89d3['id']]:{'id':_0x4d89d3['id'],'params':JSON[_0x1a35b2(0xdf)](_0x4d89d3[_0x1a35b2(0xf4)])}}}},this[_0x1a35b2(0x98)]);})),_0x4d2385[_0x3f4e5c(0xec)](_0xb0c0a3);})),this['_liveShareService'][_0xc76bac(0xfc)](this[_0xc76bac(0x98)])[_0xc76bac(0xb0)](_0x128ef1=>this[_0xc76bac(0xe3)]['send']({'eventID':_0x2abc7e[_0xc76bac(0xf9)],'data':{'unitID':this['_unitID'],'operations':{[_0x128ef1['id']]:{'id':_0x128ef1['id'],'params':JSON['stringify'](_0x128ef1[_0xc76bac(0xf4)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x5ae72b=_0x20ffcd,_0x6ce1c7;this['_status$'][_0x5ae72b(0xec)](_0x5ae72b(0x96)),(_0x6ce1c7=this['_commandDisposable'])==null||_0x6ce1c7[_0x5ae72b(0x90)](),this[_0x5ae72b(0x9d)]=null;}['_startFollowing'](){var _0x5dbe43=_0x20ffcd,_0x501234;(_0x501234=this[_0x5dbe43(0x9d)])==null||_0x501234[_0x5dbe43(0x90)](),this[_0x5dbe43(0x104)][_0x5dbe43(0xec)](_0x5dbe43(0x9b));}[_0x20ffcd(0xf1)](){var _0x50f650=_0x20ffcd,_0xd6ff21;this['_status$'][_0x50f650(0xec)](_0x50f650(0x96)),(_0xd6ff21=this[_0x50f650(0x9d)])==null||_0xd6ff21['dispose'](),this[_0x50f650(0x9d)]=null;}[_0x20ffcd(0xcf)](){var _0xa90780=_0x20ffcd,_0x16663b;this['_status$'][_0xa90780(0xec)](_0xa90780(0xc0)),(_0x16663b=this[_0xa90780(0x9d)])==null||_0x16663b[_0xa90780(0x90)]();}[_0x20ffcd(0x110)](_0x2e7910){var _0x2eb80d=_0x20ffcd;if(['presenting',_0x2eb80d(0xc0),'offline'][_0x2eb80d(0x113)](this[_0x2eb80d(0xff)])||!_0x2e7910['data'][_0x2eb80d(0x129)]||_0x2e7910[_0x2eb80d(0x138)]['presenter']===this[_0x2eb80d(0xe3)]['getMemberID']())return;this[_0x2eb80d(0xff)]===_0x2eb80d(0x96)&&this[_0x2eb80d(0x109)]();const _0x260277=_0x2e7910['data'][_0x2eb80d(0x111)];Object[_0x2eb80d(0x103)](_0x260277)[_0x2eb80d(0xb0)](_0x3ac204=>{var _0x25c849=_0x2eb80d;this['_commandService']['executeCommand'](_0x3ac204['id'],_0x3ac204[_0x25c849(0xf4)]?JSON['parse'](_0x3ac204['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1754a8=_0x20ffcd,_0x1a8c5a;this[_0x1754a8(0x104)][_0x1754a8(0xec)](_0x1754a8(0x93)),(_0x1a8c5a=this[_0x1754a8(0x9d)])==null||_0x1a8c5a['dispose']();}[_0x20ffcd(0x10a)](){var _0x1dd754=_0x20ffcd;this[_0x1dd754(0x104)]['next'](_0x1dd754(0x96)),this['_fetchOperations']();}};C=Z([f(0x2,_0x54be48),f(0x3,_0x42b534(L)),f(0x4,_0x53f3c0)],C);function ye(){var _0x2885bf=_0x20ffcd;const _0x52abed=_0x26c555(m),_0x1eee02=_0x26c555(_0x43cc96),_0x1e7bdd=_0x45febd(()=>_0x1eee02[_0x2885bf(0x9c)](_0x38c32e['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0xb49b80,_0x3998c2]=_0x3d360d(null),[_0x552f57,_0x85b75a]=_0x3d360d(h[_0x2885bf(0xcc)]),_0x4a8976=_0x4928e4(null);return _0x752798(()=>(_0x1e7bdd&&_0x52abed[_0x2885bf(0xe2)](_0x1e7bdd[_0x2885bf(0xaa)]())['then'](_0x188a24=>{_0x3998c2(_0x188a24),_0x4a8976['current']=_0x188a24['status$']['subscribe'](_0x3a23f4=>{_0x85b75a(_0x3a23f4);});}),()=>{var _0x178ad4=_0x2885bf,_0x50dfb9;(_0x50dfb9=_0x4a8976['current'])==null||_0x50dfb9[_0x178ad4(0x8a)](),_0x4a8976[_0x178ad4(0xe9)]=null;}),[_0x1e7bdd,_0x52abed]),_0xb49b80?_0x157b9a(_0xb7599b,{'align':'end','disabled':_0x552f57===h[_0x2885bf(0xdd)],'className':_0x2885bf(0xd7),'overlay':_0x157b9a(Re,{'status':_0x552f57,'coordinator':_0xb49b80}),'children':_0x157b9a(_0x2885bf(0xe0),{'className':_0x400561('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x552f57===h[_0x2885bf(0xdd)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x552f57!==h['OFFLINE']}),'type':'button','children':_0x157b9a(B,{'className':'univer-size-4'})})}):null;}function Re(_0x1068e6){var _0x18633d=_0x20ffcd;const {status:_0x3a9292,coordinator:_0xc82d20}=_0x1068e6;switch(_0x3a9292){case h[_0x18633d(0xcc)]:return _0x157b9a(Pe,{'coordinator':_0xc82d20});case h[_0x18633d(0x133)]:return _0x157b9a(Ae,{'coordinator':_0xc82d20});case h[_0x18633d(0xb1)]:return _0x157b9a(Te,{'coordinator':_0xc82d20});case h[_0x18633d(0xdd)]:return _0x157b9a(Fe,{});case h[_0x18633d(0xf3)]:return _0x157b9a($e,{'coordinator':_0xc82d20});default:return null;}}function Pe(_0x24d3d8){var _0x1e31b7=_0x20ffcd;const {coordinator:_0x557f16}=_0x24d3d8;return _0x473891(_0x55b1a3,{'children':[_0x157b9a(_0x1e31b7(0xbc),{'className':_0x1e31b7(0x12a),'children':_0x1e31b7(0xb5)}),_0x157b9a(_0x28c9ca,{'onClick':()=>_0x557f16[_0x1e31b7(0x88)](),'children':_0x1e31b7(0x130)})]});}function Ae(_0x3359cd){var _0x87f096=_0x20ffcd;const {coordinator:_0x514ce6}=_0x3359cd;return _0x473891(_0x55b1a3,{'children':[_0x157b9a(_0x87f096(0xbc),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x87f096(0xad)}),_0x157b9a(_0x28c9ca,{'onClick':()=>_0x514ce6[_0x87f096(0x135)](),'children':_0x87f096(0x10b)})]});}function Te(_0x282133){var _0x3563bf=_0x20ffcd;const {coordinator:_0x2f9c0f}=_0x282133;return _0x473891(_0x55b1a3,{'children':[_0x157b9a(_0x3563bf(0xbc),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3563bf(0x9a)}),_0x157b9a(_0x28c9ca,{'variant':_0x3563bf(0x11d),'onClick':()=>_0x2f9c0f['startFollowing'](),'children':'Start\x20following'})]});}function $e(_0x3d8f5b){var _0x237ffe=_0x20ffcd;const {coordinator:_0x5e3865}=_0x3d8f5b;return _0x473891(_0x55b1a3,{'children':[_0x157b9a(_0x237ffe(0xbc),{'className':_0x237ffe(0x12a),'children':_0x237ffe(0x8d)}),_0x157b9a(_0x28c9ca,{'variant':_0x237ffe(0xd3),'onClick':()=>_0x5e3865[_0x237ffe(0xc2)](),'children':'Stop\x20presenting'})]});}function Fe(){var _0x5172e2=_0x20ffcd;return _0x157b9a(_0x55b1a3,{'children':_0x5172e2(0x95)});}var He=Object[_0x20ffcd(0xc6)],je=(_0x2591b1,_0x395329,_0x5b527a,_0x4a2a75)=>{var _0x705bae=_0x20ffcd;for(var _0x29f307=_0x4a2a75>0x1?void 0x0:_0x4a2a75?He(_0x395329,_0x5b527a):_0x395329,_0x2ce23b=_0x2591b1[_0x705bae(0xf7)]-0x1,_0x3381a6;_0x2ce23b>=0x0;_0x2ce23b--)(_0x3381a6=_0x2591b1[_0x2ce23b])&&(_0x29f307=_0x3381a6(_0x29f307)||_0x29f307);return _0x29f307;},T=(_0x1bd158,_0x4869a7)=>(_0x4f7c8f,_0x4224c2)=>_0x4869a7(_0x4f7c8f,_0x4224c2,_0x1bd158);let I=class extends _0x539b1d{constructor(_0x1b71fa,_0x4b1cd2){var _0x114ab5=_0x20ffcd;super(),this[_0x114ab5(0xee)]=_0x1b71fa,this['_uiPartsService']=_0x4b1cd2,this[_0x114ab5(0xba)]();}[_0x20ffcd(0xba)](){var _0x4da0f4=_0x20ffcd;this[_0x4da0f4(0xa3)](this[_0x4da0f4(0x11f)][_0x4da0f4(0xd5)](_0x1b50ea['HEADER_MENU'],()=>_0x5bf79f(ye,this[_0x4da0f4(0xee)])));}};I=je([T(0x0,_0x42b534(_0x59a932)),T(0x1,_0x4f299e)],I);const Ue=_0x20ffcd(0xa4),$={};var Ve=Object[_0x20ffcd(0xc6)],Me=(_0x518de8,_0x176f5e,_0x9a33e8,_0x2e4233)=>{var _0x4c149b=_0x20ffcd;for(var _0x18043=_0x2e4233>0x1?void 0x0:_0x2e4233?Ve(_0x176f5e,_0x9a33e8):_0x176f5e,_0x686b38=_0x518de8[_0x4c149b(0xf7)]-0x1,_0x9ac174;_0x686b38>=0x0;_0x686b38--)(_0x9ac174=_0x518de8[_0x686b38])&&(_0x18043=_0x9ac174(_0x18043)||_0x18043);return _0x18043;},ke=(_0x65203f,_0x380946)=>(_0x5a2139,_0x4a9346)=>_0x380946(_0x5a2139,_0x4a9346,_0x65203f);let b=class extends _0x539b1d{constructor(_0x56f409){var _0x3514e9=_0x20ffcd;super(),this['_liveShareService']=_0x56f409,this[_0x3514e9(0xcd)]();}[_0x20ffcd(0xcd)](){var _0x117401=_0x20ffcd;[_0x5deda2['id'],_0x5abaaa['id'],_0x208319['id']][_0x117401(0xb0)](_0x2cfc1c=>{var _0x3f2511=_0x117401;this[_0x3f2511(0xa3)](this['_liveShareService'][_0x3f2511(0x119)](_0x2cfc1c));});}};b=Me([ke(0x0,_0x42b534(L))],b);var Ge=Object[_0x20ffcd(0x121)],We=Object[_0x20ffcd(0xc6)],Ye=(_0x145a97,_0x3782a8,_0x3dd16e)=>_0x3782a8 in _0x145a97?Ge(_0x145a97,_0x3782a8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3dd16e}):_0x145a97[_0x3782a8]=_0x3dd16e,Be=(_0x85c55e,_0x430f0f,_0x58ffe3,_0x4f5d8e)=>{var _0x36bee9=_0x20ffcd;for(var _0x1c6c40=_0x4f5d8e>0x1?void 0x0:_0x4f5d8e?We(_0x430f0f,_0x58ffe3):_0x430f0f,_0x1fd99e=_0x85c55e[_0x36bee9(0xf7)]-0x1,_0x524603;_0x1fd99e>=0x0;_0x1fd99e--)(_0x524603=_0x85c55e[_0x1fd99e])&&(_0x1c6c40=_0x524603(_0x1c6c40)||_0x1c6c40);return _0x1c6c40;},F=(_0x3e04e3,_0x2ab29d)=>(_0x503331,_0x34cd77)=>_0x2ab29d(_0x503331,_0x34cd77,_0x3e04e3),J=(_0x5c5914,_0x234b6c,_0x53e3bd)=>Ye(_0x5c5914,typeof _0x234b6c!=_0x20ffcd(0x12f)?_0x234b6c+'':_0x234b6c,_0x53e3bd);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x574128{constructor(_0x2b7eee=$,_0x56e332,_0x5da0a3){var _0x4bce4d=_0x20ffcd;super(),this[_0x4bce4d(0x87)]=_0x2b7eee,this[_0x4bce4d(0xee)]=_0x56e332,this[_0x4bce4d(0xab)]=_0x5da0a3;const {..._0x52a454}=_0x78447b({},$,this['_config']);this['_configService'][_0x4bce4d(0x12c)](Ue,_0x52a454);}[_0x20ffcd(0x118)](){var _0x541d34=_0x20ffcd;_0x3e2832(this[_0x541d34(0xee)],_0x360b36([[L],[m],[b],[I]],this[_0x541d34(0x87)][_0x541d34(0x85)])),_0x5b4f9e(this['_injector'],[[b]]);}[_0x20ffcd(0xfd)](){var _0x361f59=_0x20ffcd;_0x5b4f9e(this[_0x361f59(0xee)],[[I]]);}};J(O,'type',_0x38c32e[_0x20ffcd(0x127)]),J(O,'pluginName',Ze),O=Be([_0x50aa05(_0x2f65a8),F(0x1,_0x42b534(_0x59a932)),F(0x2,_0x54be48)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x43ad12=_0x5bf1;(function(_0x43f385,_0x19f216){var _0x47725f=_0x5bf1,_0x3bd6a2=_0x43f385();while(!![]){try{var _0x2c16d4=-parseInt(_0x47725f(0x14d))/0x1+-parseInt(_0x47725f(0x16e))/0x2+parseInt(_0x47725f(0x15b))/0x3+parseInt(_0x47725f(0x17a))/0x4*(parseInt(_0x47725f(0x187))/0x5)+parseInt(_0x47725f(0x194))/0x6*(parseInt(_0x47725f(0x143))/0x7)+parseInt(_0x47725f(0x170))/0x8*(-parseInt(_0x47725f(0x17c))/0x9)+parseInt(_0x47725f(0x171))/0xa*(parseInt(_0x47725f(0x17d))/0xb);if(_0x2c16d4===_0x19f216)break;else _0x3bd6a2['push'](_0x3bd6a2['shift']());}catch(_0x4281f1){_0x3bd6a2['push'](_0x3bd6a2['shift']());}}}(_0x59c7,0xadca4));var q=Object[_0x43ad12(0x128)],z=(_0x519c17,_0x50d9a5,_0x2b7167)=>_0x50d9a5 in _0x519c17?q(_0x519c17,_0x50d9a5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b7167}):_0x519c17[_0x50d9a5]=_0x2b7167,d=(_0x165409,_0x26b618,_0x47c4c8)=>z(_0x165409,typeof _0x26b618!=_0x43ad12(0x112)?_0x26b618+'':_0x26b618,_0x47c4c8);import{Disposable as _0x1b4c3b,toDisposable as _0x588afd,IUniverInstanceService as _0x149d48,Inject as _0x415909,Injector as _0x3fc7f2,IConfigService as _0x13311c,ICommandService as _0x4937f3,RxDisposable as _0x3b727a,UniverInstanceType as _0x33c666,DisposableCollection as _0x4ec9f6,CommandType as _0x2173c3,DependentOn as _0x1b3cbd,Plugin as _0x36a567,merge as _0x567ad9,registerDependencies as _0x540bc8,mergeOverrideWithDependencies as _0x14ee17,touchDependencies as _0x41f7e0}from'@univerjs/core';import{useDependency as _0x3aad55,useObservable as _0x52b777,IUIPartsService as _0x3d81bf,BuiltInUIPart as _0x3c9c42,connectInjector as _0x1896e1}from'@univerjs/ui';import{jsx as _0x10c595,jsxs as _0x2b145f,Fragment as _0x5aa383}from'react/jsx-runtime';import{Dropdown as _0x75180f,clsx as _0x5e4436,Button as _0x3a9d39}from'@univerjs/design';import{forwardRef as _0x43924e,useRef as _0x5dd95c,createElement as _0x1ff31c,useState as _0x13739e,useEffect as _0x57601b}from'react';import{CollaborationEvent as _0x39828a,parseProtocolChangeset as _0x238891}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1db8e9,SessionStatus as _0x13ce6b,UniverCollaborationClientPlugin as _0x485a8f}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x61d40f,SetWorksheetActiveOperation as _0x82b7b3}from'@univerjs/sheets';import{BehaviorSubject as _0x56bdba,Subject as _0x546630}from'rxjs';import{takeUntil as _0x444045,throttleTime as _0x2bca3c}from'rxjs/operators';import{SetZoomRatioOperation as _0xb0b9cb,SetScrollOperation as _0x2b4266}from'@univerjs/sheets-ui';var c=function(){var _0x5af697=_0x43ad12;return c=Object['assign']||function(_0x46a481){var _0xcfc4a1=_0x5bf1;for(var _0x5d485c,_0x4450ae=0x1,_0x2926c7=arguments[_0xcfc4a1(0x185)];_0x4450ae<_0x2926c7;_0x4450ae++){_0x5d485c=arguments[_0x4450ae];for(var _0x22a378 in _0x5d485c)Object['prototype'][_0xcfc4a1(0x19d)][_0xcfc4a1(0x12f)](_0x5d485c,_0x22a378)&&(_0x46a481[_0x22a378]=_0x5d485c[_0x22a378]);}return _0x46a481;},c[_0x5af697(0x1ad)](this,arguments);},Oe=function(_0x44bf89,_0x2aa466){var _0x3fb611=_0x43ad12,_0x144d13={};for(var _0x202364 in _0x44bf89)Object[_0x3fb611(0x125)][_0x3fb611(0x19d)][_0x3fb611(0x12f)](_0x44bf89,_0x202364)&&_0x2aa466[_0x3fb611(0x1bc)](_0x202364)<0x0&&(_0x144d13[_0x202364]=_0x44bf89[_0x202364]);if(_0x44bf89!=null&&typeof Object[_0x3fb611(0x133)]==_0x3fb611(0x1a6)){for(var _0xe40934=0x0,_0x202364=Object['getOwnPropertySymbols'](_0x44bf89);_0xe40934<_0x202364[_0x3fb611(0x185)];_0xe40934++)_0x2aa466[_0x3fb611(0x1bc)](_0x202364[_0xe40934])<0x0&&Object['prototype'][_0x3fb611(0x18c)][_0x3fb611(0x12f)](_0x44bf89,_0x202364[_0xe40934])&&(_0x144d13[_0x202364[_0xe40934]]=_0x44bf89[_0x202364[_0xe40934]]);}return _0x144d13;},W=_0x43924e(function(_0x419862,_0x5b1d30){var _0x1b238e=_0x43ad12,_0x2a5366=_0x419862['icon'],_0x1ce739=_0x419862['id'],_0x44f1bb=_0x419862['className'],_0x44c12c=_0x419862[_0x1b238e(0x19a)],_0x5b1c55=Oe(_0x419862,[_0x1b238e(0x1b0),'id',_0x1b238e(0x1a1),_0x1b238e(0x19a)]),_0x514530=_0x1b238e(0x136)[_0x1b238e(0x1a8)](_0x1ce739,'\x20')[_0x1b238e(0x1a8)](_0x44f1bb||'')[_0x1b238e(0x15a)](),_0xd92020=_0x5dd95c('_'[_0x1b238e(0x1a8)](Ne()));return Y(_0x2a5366,''[_0x1b238e(0x1a8)](_0x1ce739),{'defIds':_0x2a5366['defIds'],'idSuffix':_0xd92020[_0x1b238e(0x179)]},c({'ref':_0x5b1d30,'className':_0x514530},_0x5b1c55),_0x44c12c);});function Y(_0x4f07cb,_0x29a918,_0x16804c,_0x4801e7,_0x405205){var _0x4105cd=_0x43ad12;return _0x1ff31c(_0x4f07cb[_0x4105cd(0x11d)],c(c({'key':_0x29a918},Ee(_0x4f07cb,_0x16804c,_0x405205)),_0x4801e7),(we(_0x4f07cb,_0x16804c)[_0x4105cd(0x168)]||[])[_0x4105cd(0x11c)](function(_0x1a053e,_0x30aa0){var _0x4300c4=_0x4105cd;return Y(_0x1a053e,''[_0x4300c4(0x1a8)](_0x29a918,'-')[_0x4300c4(0x1a8)](_0x4f07cb['tag'],'-')['concat'](_0x30aa0),_0x16804c,void 0x0,_0x405205);}));}function Ee(_0x3d9a2d,_0xaf7f46,_0x187dbe){var _0x3d838d=_0x43ad12,_0x2b2753=c({},_0x3d9a2d[_0x3d838d(0x1c0)]);_0x187dbe!=null&&_0x187dbe['colorChannel1']&&_0x2b2753[_0x3d838d(0x122)]===_0x3d838d(0x18a)&&(_0x2b2753[_0x3d838d(0x122)]=_0x187dbe[_0x3d838d(0x18a)]),_0x3d9a2d[_0x3d838d(0x11d)]===_0x3d838d(0x150)&&_0x2b2753['id']&&(_0x2b2753['id']=_0x2b2753['id']+_0xaf7f46['idSuffix']),Object[_0x3d838d(0x119)](_0x2b2753)[_0x3d838d(0x163)](function(_0x5d464d){var _0x48f29f=_0x3d838d,_0x2a8dec=_0x5d464d[0x0],_0x3bb73f=_0x5d464d[0x1];_0x2a8dec===_0x48f29f(0x150)&&typeof _0x3bb73f==_0x48f29f(0x19f)&&(_0x2b2753[_0x2a8dec]=_0x3bb73f[_0x48f29f(0x1b9)](/url\(#(.*)\)/,'url(#$1'[_0x48f29f(0x1a8)](_0xaf7f46['idSuffix'],')')));});var _0x1f3502=_0xaf7f46['defIds'];return!_0x1f3502||_0x1f3502[_0x3d838d(0x185)]===0x0||(_0x3d9a2d['tag']===_0x3d838d(0x1b1)&&_0x2b2753[_0x3d838d(0x166)]&&(_0x2b2753[_0x3d838d(0x166)]=_0x2b2753['xlink:href']+_0xaf7f46[_0x3d838d(0x113)]),Object['entries'](_0x2b2753)[_0x3d838d(0x163)](function(_0x2a9e88){var _0x3fb766=_0x3d838d,_0x2badde=_0x2a9e88[0x0],_0x194549=_0x2a9e88[0x1];typeof _0x194549==_0x3fb766(0x19f)&&(_0x2b2753[_0x2badde]=_0x194549[_0x3fb766(0x1b9)](/url\(#(.*)\)/,_0x3fb766(0x177)['concat'](_0xaf7f46[_0x3fb766(0x113)],')')));})),_0x2b2753;}function we(_0x51c3ca,_0x50f96d){var _0x484f65=_0x43ad12,_0x36c831,_0x1f447a=_0x50f96d['defIds'];return!_0x1f447a||_0x1f447a[_0x484f65(0x185)]===0x0?_0x51c3ca:_0x51c3ca[_0x484f65(0x11d)]===_0x484f65(0x127)&&(!((_0x36c831=_0x51c3ca[_0x484f65(0x168)])===null||_0x36c831===void 0x0)&&_0x36c831[_0x484f65(0x185)])?c(c({},_0x51c3ca),{'children':_0x51c3ca[_0x484f65(0x168)]['map'](function(_0x2ce7c1){var _0x17e411=_0x484f65;return typeof _0x2ce7c1['attrs']['id']==_0x17e411(0x19f)&&_0x1f447a&&_0x1f447a[_0x17e411(0x1ae)](_0x2ce7c1[_0x17e411(0x1c0)]['id'])?c(c({},_0x2ce7c1),{'attrs':c(c({},_0x2ce7c1[_0x17e411(0x1c0)]),{'id':_0x2ce7c1[_0x17e411(0x1c0)]['id']+_0x50f96d[_0x17e411(0x113)]})}):_0x2ce7c1;})}):_0x51c3ca;}function Ne(){var _0x5eb072=_0x43ad12;return Math[_0x5eb072(0x13c)]()[_0x5eb072(0x110)](0x24)[_0x5eb072(0x175)](0x2,0x8);}W[_0x43ad12(0x1bf)]=_0x43ad12(0x1a4);function _0x5bf1(_0x4eb4c5,_0x46bdbd){var _0x59c775=_0x59c7();return _0x5bf1=function(_0x5bf108,_0x46b66a){_0x5bf108=_0x5bf108-0x10c;var _0x3883aa=_0x59c775[_0x5bf108];return _0x3883aa;},_0x5bf1(_0x4eb4c5,_0x46bdbd);}var Ce={'tag':_0x43ad12(0x14f),'attrs':{'xmlns':_0x43ad12(0x140),'fill':_0x43ad12(0x1ac),'viewBox':'0\x200\x2017\x2017','width':_0x43ad12(0x11e),'height':_0x43ad12(0x11e)},'children':[{'tag':_0x43ad12(0x1b3),'attrs':{'fill':_0x43ad12(0x142),'d':_0x43ad12(0x197)}},{'tag':'path','attrs':{'fill':_0x43ad12(0x142),'d':_0x43ad12(0x1c1),'fillRule':_0x43ad12(0x13e),'clipRule':_0x43ad12(0x13e)}}]},B=_0x43924e(function(_0x389c3f,_0x63a00f){var _0x526703=_0x43ad12;return _0x1ff31c(W,Object[_0x526703(0x1ab)]({},_0x389c3f,{'id':_0x526703(0x144),'ref':_0x63a00f,'icon':Ce}));});B['displayName']='LiveShareIcon';class L extends _0x1b4c3b{constructor(){super(...arguments),d(this,'_sharedOperations',new Set()),d(this,'_reporters',new Set());}[_0x43ad12(0x116)](_0x36352d){var _0xc5e79f=_0x43ad12;return this['_sharedOperations'][_0xc5e79f(0x13a)](_0x36352d),_0x588afd(()=>this[_0xc5e79f(0x132)][_0xc5e79f(0x176)](_0x36352d));}[_0x43ad12(0x158)](_0xea3677){var _0x2486bb=_0x43ad12;return this['_reporters'][_0x2486bb(0x13a)](_0xea3677),_0x588afd(()=>this[_0x2486bb(0x115)]['delete'](_0xea3677));}['shouldShareOperation'](_0x26e2b5){var _0x3e556f=_0x43ad12;return this[_0x3e556f(0x132)]['has'](_0x26e2b5);}[_0x43ad12(0x151)](_0xe8ea75){var _0x4ca2f7=_0x43ad12;return Array[_0x4ca2f7(0x181)](this[_0x4ca2f7(0x115)])[_0x4ca2f7(0x11c)](_0x1f8788=>_0x1f8788(_0xe8ea75));}}var De=Object[_0x43ad12(0x1b6)],Z=(_0x108d72,_0x597d40,_0x4866df,_0x330c3c)=>{var _0x7c8c0=_0x43ad12;for(var _0x4cfad7=_0x330c3c>0x1?void 0x0:_0x330c3c?De(_0x597d40,_0x4866df):_0x597d40,_0x4c07b4=_0x108d72[_0x7c8c0(0x185)]-0x1,_0x21e715;_0x4c07b4>=0x0;_0x4c07b4--)(_0x21e715=_0x108d72[_0x4c07b4])&&(_0x4cfad7=_0x21e715(_0x4cfad7)||_0x4cfad7);return _0x4cfad7;},f=(_0xac1e79,_0x5f4938)=>(_0x12f20e,_0x501932)=>_0x5f4938(_0x12f20e,_0x501932,_0xac1e79);let m=class extends _0x3b727a{constructor(_0x1aaf0a,_0x17adca,_0x5b3c11){var _0x5edf8a=_0x43ad12;super(),d(this,_0x5edf8a(0x12e),new Map()),(this[_0x5edf8a(0x188)]=_0x1aaf0a,this['_injector']=_0x17adca,this[_0x5edf8a(0x199)]=_0x5b3c11,this[_0x5edf8a(0x16f)]());}async[_0x43ad12(0x156)](_0x482b03){var _0xe0027c=_0x43ad12;return this[_0xe0027c(0x12e)][_0xe0027c(0x11a)](_0x482b03)||await this[_0xe0027c(0x195)](_0x482b03),this['_entities'][_0xe0027c(0x16d)](_0x482b03);}['_init'](){var _0x852fb9=_0x43ad12;this[_0x852fb9(0x188)][_0x852fb9(0x15d)](_0x33c666['UNIVER_SHEET'])['pipe'](_0x444045(this['dispose$']))['subscribe'](async _0x4d1e87=>{var _0x4b6010=_0x852fb9;const _0x4953bc=_0x4d1e87[_0x4b6010(0x1be)]();this['_entities'][_0x4b6010(0x11a)](_0x4953bc)||this['_startLiveShareCoordinator'](_0x4953bc);}),this[_0x852fb9(0x188)][_0x852fb9(0x15e)](_0x33c666[_0x852fb9(0x18e)])[_0x852fb9(0x189)](_0x444045(this[_0x852fb9(0x114)]))[_0x852fb9(0x15f)](_0x1fc75d=>{var _0x224f99=_0x852fb9;const _0x103875=_0x1fc75d[_0x224f99(0x1be)](),_0x44cfff=this[_0x224f99(0x12e)]['get'](_0x103875);_0x44cfff==null||_0x44cfff['dispose']();});}async[_0x43ad12(0x195)](_0x59aa1c){var _0x5d12d7=_0x43ad12;const _0x451266=await this[_0x5d12d7(0x199)][_0x5d12d7(0x164)](_0x59aa1c),_0x418dd2=this[_0x5d12d7(0x1bd)]['createInstance'](C,_0x59aa1c,_0x451266);return _0x418dd2[_0x5d12d7(0x1af)](),this[_0x5d12d7(0x12e)][_0x5d12d7(0x10e)](_0x59aa1c,_0x418dd2),_0x418dd2;}};m=Z([f(0x0,_0x149d48),f(0x1,_0x415909(_0x3fc7f2)),f(0x2,_0x415909(_0x1db8e9))],m);var h=(_0x244fa3=>(_0x244fa3[_0x43ad12(0x12d)]=_0x43ad12(0x135),_0x244fa3[_0x43ad12(0x1a5)]='idle',_0x244fa3[_0x43ad12(0x134)]=_0x43ad12(0x17b),_0x244fa3[_0x43ad12(0x13b)]='not-following',_0x244fa3[_0x43ad12(0x184)]='presenting',_0x244fa3))(h||{});const xe=_0x43ad12(0x160),Le=0xc8;let C=class extends _0x3b727a{constructor(_0x1fab99,_0x686740,_0xa2aa81,_0x26a5a1,_0x519752){var _0x2db2fe=_0x43ad12;super(),d(this,'_status$',new _0x56bdba('idle')),d(this,'status$',this[_0x2db2fe(0x13f)]['asObservable']()),d(this,_0x2db2fe(0x16f),!0x1),d(this,_0x2db2fe(0x19e),null),d(this,_0x2db2fe(0x18d),null),(this[_0x2db2fe(0x186)]=_0x1fab99,this[_0x2db2fe(0x145)]=_0x686740,this[_0x2db2fe(0x1ba)]=_0xa2aa81,this[_0x2db2fe(0x1b8)]=_0x26a5a1,this[_0x2db2fe(0x16b)]=_0x519752);}get[_0x43ad12(0x1a9)](){var _0x4f58fa=_0x43ad12;return this[_0x4f58fa(0x13f)][_0x4f58fa(0x1b2)]();}[_0x43ad12(0x148)](){var _0x3515e5=_0x43ad12,_0x4afdb4;(_0x4afdb4=this[_0x3515e5(0x19e)])==null||_0x4afdb4[_0x3515e5(0x148)](),this[_0x3515e5(0x13f)][_0x3515e5(0x19c)](_0x3515e5(0x1a3)),this[_0x3515e5(0x13f)][_0x3515e5(0x172)]();}[_0x43ad12(0x1af)](){var _0x1ded7f=_0x43ad12;this[_0x1ded7f(0x16f)]||(this[_0x1ded7f(0x16f)]=!0x0,this[_0x1ded7f(0x145)][_0x1ded7f(0x12c)][_0x1ded7f(0x189)](_0x444045(this[_0x1ded7f(0x114)]))[_0x1ded7f(0x15f)](_0x54ca26=>{var _0x21bec2=_0x1ded7f;switch(_0x54ca26){case _0x13ce6b['OFFLINE']:this['_handleOffline']();break;case _0x13ce6b[_0x21bec2(0x1c2)]:this['_handleOnline']();break;}}),this[_0x1ded7f(0x145)][_0x1ded7f(0x167)][_0x1ded7f(0x189)](_0x444045(this[_0x1ded7f(0x114)]))[_0x1ded7f(0x15f)](_0x3795c8=>{var _0x11edb5=_0x1ded7f;const {eventID:_0x5acc11}=_0x3795c8;switch(_0x5acc11){case _0x39828a[_0x11edb5(0x191)]:this[_0x11edb5(0x159)](_0x3795c8);break;case _0x39828a[_0x11edb5(0x15c)]:this[_0x11edb5(0x118)](_0x3795c8);break;case _0x39828a['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x39828a[_0x11edb5(0x10c)]:this['_handleNewChangeSets'](_0x3795c8);break;}}));}['tryStartPresenting'](){var _0x38ec87=_0x43ad12;this[_0x38ec87(0x145)][_0x38ec87(0x19b)]({'eventID':_0x39828a[_0x38ec87(0x13d)],'data':{'unitID':this[_0x38ec87(0x186)],'userID':this[_0x38ec87(0x145)][_0x38ec87(0x183)]()}},this['_unitID']);}[_0x43ad12(0x17e)](){var _0x44555f=_0x43ad12;this[_0x44555f(0x1a9)]===_0x44555f(0x192)&&(this['_status$'][_0x44555f(0x19c)](_0x44555f(0x1a3)),this['_collabSession'][_0x44555f(0x19b)]({'eventID':_0x39828a[_0x44555f(0x169)],'data':{'unitID':this[_0x44555f(0x186)]}},this[_0x44555f(0x186)]));}['startFollowing'](){var _0xc62691=_0x43ad12;this['_status']===_0xc62691(0x124)&&(this[_0xc62691(0x13f)][_0xc62691(0x19c)](_0xc62691(0x17b)),this[_0xc62691(0x14e)]());}[_0x43ad12(0x14c)](){var _0x32d772=_0x43ad12;this[_0x32d772(0x1a9)]===_0x32d772(0x17b)&&this[_0x32d772(0x182)]();}[_0x43ad12(0x159)](_0x13b2ba){var _0x31d93f=_0x43ad12;const {presenter:_0x46783f}=_0x13b2ba['data'],_0x198b4c=this['_collabSession']['getMemberID']();this[_0x31d93f(0x18d)]=_0x46783f,_0x46783f===_0x198b4c?(this[_0x31d93f(0x182)](),this[_0x31d93f(0x18f)]()):this[_0x31d93f(0x1a9)]!==_0x31d93f(0x124)&&(this[_0x31d93f(0x17f)](),this[_0x31d93f(0x14e)]());}[_0x43ad12(0x1bb)](){var _0x66a0ef=_0x43ad12;const _0x30e2b5={'eventID':_0x39828a[_0x66a0ef(0x1a7)]};this[_0x66a0ef(0x145)]['send'](_0x30e2b5,this[_0x66a0ef(0x186)]);}[_0x43ad12(0x129)](){var _0x161257=_0x43ad12;this[_0x161257(0x18d)]=null,this['_status']!==_0x161257(0x192)&&this[_0x161257(0x11f)]();}[_0x43ad12(0x162)](_0x346333){var _0x35d9a1=_0x43ad12;if(this[_0x35d9a1(0x1a9)]==='following'&&this[_0x35d9a1(0x18d)]===_0x346333[_0x35d9a1(0x14b)][_0x35d9a1(0x153)]){const _0x1b6381=_0x238891(_0x346333['data'])[_0x35d9a1(0x117)][_0x35d9a1(0x130)]()[_0x35d9a1(0x18b)](_0x49d9ff=>_0x49d9ff['id']===_0x61d40f['id']);if(_0x1b6381){const _0x47fee0=_0x1b6381[_0x35d9a1(0x178)]['unitId'],_0x1d52b6=_0x1b6381[_0x35d9a1(0x178)]['sheet']['id'];setTimeout(()=>{var _0x5c44c6=_0x35d9a1;this[_0x5c44c6(0x16b)][_0x5c44c6(0x1aa)](_0x82b7b3['id'],{'unitId':_0x47fee0,'subUnitId':_0x1d52b6},{'fromCollab':!0x0});});}}}[_0x43ad12(0x18f)](){var _0x593c9b=_0x43ad12;this['_status$'][_0x593c9b(0x19c)](_0x593c9b(0x192));const _0x5d117b=new Map(),_0x3b7c13=this['_commandDisposable']=new _0x4ec9f6();_0x3b7c13[_0x593c9b(0x13a)](_0x588afd(()=>{var _0x3680e6=_0x593c9b;_0x5d117b[_0x3680e6(0x163)](_0x2726d8=>_0x2726d8[_0x3680e6(0x172)]()),_0x5d117b['clear']();})),_0x3b7c13['add'](this['_commandService'][_0x593c9b(0x120)](_0x243ef4=>{var _0x4ac734=_0x593c9b,_0xa8e20d;if(_0x243ef4[_0x4ac734(0x147)]!==_0x2173c3[_0x4ac734(0x141)]||!this[_0x4ac734(0x1b8)][_0x4ac734(0x1b7)](_0x243ef4['id']))return;const {id:_0x4d69f9}=_0x243ef4;let _0x28f1a3;_0x5d117b[_0x4ac734(0x11a)](_0x4d69f9)?_0x28f1a3=_0x5d117b['get'](_0x4d69f9):(_0x28f1a3=new _0x546630(),_0x5d117b[_0x4ac734(0x10e)](_0x4d69f9,_0x28f1a3),_0x28f1a3['pipe'](_0x2bca3c((_0xa8e20d=this[_0x4ac734(0x1ba)][_0x4ac734(0x16c)](xe))!=null?_0xa8e20d:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4ac734(0x15f)](_0x255a90=>{var _0x499fa8=_0x4ac734;this[_0x499fa8(0x145)][_0x499fa8(0x19b)]({'eventID':_0x39828a[_0x499fa8(0x15c)],'data':{'unitID':this['_unitID'],'operations':{[_0x255a90['id']]:{'id':_0x255a90['id'],'params':JSON[_0x499fa8(0x155)](_0x255a90['params'])}}}},this[_0x499fa8(0x186)]);})),_0x28f1a3[_0x4ac734(0x19c)](_0x243ef4);})),this[_0x593c9b(0x1b8)]['getInitialStates'](this[_0x593c9b(0x186)])[_0x593c9b(0x163)](_0x34ce6b=>this[_0x593c9b(0x145)][_0x593c9b(0x19b)]({'eventID':_0x39828a[_0x593c9b(0x15c)],'data':{'unitID':this[_0x593c9b(0x186)],'operations':{[_0x34ce6b['id']]:{'id':_0x34ce6b['id'],'params':JSON['stringify'](_0x34ce6b[_0x593c9b(0x178)])}}}},this[_0x593c9b(0x186)]));}[_0x43ad12(0x17f)](){var _0x37d488=_0x43ad12,_0x8ff1a4;this['_status$'][_0x37d488(0x19c)](_0x37d488(0x1a3)),(_0x8ff1a4=this[_0x37d488(0x19e)])==null||_0x8ff1a4[_0x37d488(0x148)](),this[_0x37d488(0x19e)]=null;}[_0x43ad12(0x14e)](){var _0x266cee=_0x43ad12,_0x5c3f17;(_0x5c3f17=this['_commandDisposable'])==null||_0x5c3f17['dispose'](),this[_0x266cee(0x13f)]['next'](_0x266cee(0x17b));}['_beIdle'](){var _0x1a8173=_0x43ad12,_0x37949e;this[_0x1a8173(0x13f)][_0x1a8173(0x19c)](_0x1a8173(0x1a3)),(_0x37949e=this[_0x1a8173(0x19e)])==null||_0x37949e['dispose'](),this['_commandDisposable']=null;}[_0x43ad12(0x182)](){var _0xcd28b6=_0x43ad12,_0x401bc0;this['_status$'][_0xcd28b6(0x19c)](_0xcd28b6(0x124)),(_0x401bc0=this[_0xcd28b6(0x19e)])==null||_0x401bc0['dispose']();}['_handleOperation'](_0x47440e){var _0x44809d=_0x43ad12;if([_0x44809d(0x192),_0x44809d(0x124),_0x44809d(0x135)]['includes'](this[_0x44809d(0x1a9)])||!_0x47440e[_0x44809d(0x14b)]['presenter']||_0x47440e['data'][_0x44809d(0x11b)]===this[_0x44809d(0x145)][_0x44809d(0x183)]())return;this[_0x44809d(0x1a9)]===_0x44809d(0x1a3)&&this[_0x44809d(0x14e)]();const _0x2741cb=_0x47440e[_0x44809d(0x14b)][_0x44809d(0x10d)];Object[_0x44809d(0x14a)](_0x2741cb)[_0x44809d(0x163)](_0x11cf94=>{var _0x27ca02=_0x44809d;this['_commandService'][_0x27ca02(0x1aa)](_0x11cf94['id'],_0x11cf94['params']?JSON['parse'](_0x11cf94['params']):null,{'fromCollab':!0x0});});}[_0x43ad12(0x111)](){var _0x11702b=_0x43ad12,_0x3c29cf;this['_status$'][_0x11702b(0x19c)](_0x11702b(0x135)),(_0x3c29cf=this['_commandDisposable'])==null||_0x3c29cf['dispose']();}[_0x43ad12(0x152)](){var _0x2c41ec=_0x43ad12;this[_0x2c41ec(0x13f)][_0x2c41ec(0x19c)](_0x2c41ec(0x1a3)),this[_0x2c41ec(0x1bb)]();}};C=Z([f(0x2,_0x13311c),f(0x3,_0x415909(L)),f(0x4,_0x4937f3)],C);function ye(){var _0x460f50=_0x43ad12;const _0x366375=_0x3aad55(m),_0xc85841=_0x3aad55(_0x149d48),_0x2dacd0=_0x52b777(()=>_0xc85841[_0x460f50(0x12a)](_0x33c666[_0x460f50(0x18e)]),void 0x0,!0x1,[]),[_0x2eeb27,_0x454562]=_0x13739e(null),[_0x2e0a01,_0x1fe1cd]=_0x13739e(h['IDLE']),_0x206f76=_0x5dd95c(null);return _0x57601b(()=>(_0x2dacd0&&_0x366375[_0x460f50(0x156)](_0x2dacd0[_0x460f50(0x1be)]())[_0x460f50(0x180)](_0x150fbe=>{var _0x3774f6=_0x460f50;_0x454562(_0x150fbe),_0x206f76['current']=_0x150fbe[_0x3774f6(0x131)][_0x3774f6(0x15f)](_0x47b192=>{_0x1fe1cd(_0x47b192);});}),()=>{var _0x5bdbc5=_0x460f50,_0x458b64;(_0x458b64=_0x206f76[_0x5bdbc5(0x179)])==null||_0x458b64[_0x5bdbc5(0x123)](),_0x206f76[_0x5bdbc5(0x179)]=null;}),[_0x2dacd0,_0x366375]),_0x2eeb27?_0x10c595(_0x75180f,{'align':_0x460f50(0x138),'disabled':_0x2e0a01===h[_0x460f50(0x12d)],'className':_0x460f50(0x139),'overlay':_0x10c595(Re,{'status':_0x2e0a01,'coordinator':_0x2eeb27}),'children':_0x10c595(_0x460f50(0x149),{'className':_0x5e4436('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2e0a01===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2e0a01!==h[_0x460f50(0x12d)]}),'type':'button','children':_0x10c595(B,{'className':_0x460f50(0x1b5)})})}):null;}function Re(_0x57817d){var _0x370bdf=_0x43ad12;const {status:_0x1950d9,coordinator:_0x5f5522}=_0x57817d;switch(_0x1950d9){case h['IDLE']:return _0x10c595(Pe,{'coordinator':_0x5f5522});case h[_0x370bdf(0x134)]:return _0x10c595(Ae,{'coordinator':_0x5f5522});case h[_0x370bdf(0x13b)]:return _0x10c595(Te,{'coordinator':_0x5f5522});case h['OFFLINE']:return _0x10c595(Fe,{});case h[_0x370bdf(0x184)]:return _0x10c595($e,{'coordinator':_0x5f5522});default:return null;}}function Pe(_0x2a2fe2){var _0x2172ce=_0x43ad12;const {coordinator:_0x2e5d4a}=_0x2a2fe2;return _0x2b145f(_0x5aa383,{'children':[_0x10c595('div',{'className':_0x2172ce(0x10f),'children':_0x2172ce(0x173)}),_0x10c595(_0x3a9d39,{'onClick':()=>_0x2e5d4a['tryStartPresenting'](),'children':_0x2172ce(0x196)})]});}function Ae(_0x427630){var _0xacca79=_0x43ad12;const {coordinator:_0x4c571e}=_0x427630;return _0x2b145f(_0x5aa383,{'children':[_0x10c595(_0xacca79(0x190),{'className':_0xacca79(0x10f),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x10c595(_0x3a9d39,{'onClick':()=>_0x4c571e[_0xacca79(0x14c)](),'children':'Stop\x20following'})]});}function Te(_0x23ef1a){var _0x4dc7fc=_0x43ad12;const {coordinator:_0x11d62e}=_0x23ef1a;return _0x2b145f(_0x5aa383,{'children':[_0x10c595(_0x4dc7fc(0x190),{'className':_0x4dc7fc(0x10f),'children':_0x4dc7fc(0x126)}),_0x10c595(_0x3a9d39,{'variant':'text','onClick':()=>_0x11d62e[_0x4dc7fc(0x1a2)](),'children':_0x4dc7fc(0x161)})]});}function $e(_0x33a1f0){var _0x293508=_0x43ad12;const {coordinator:_0x3f81c0}=_0x33a1f0;return _0x2b145f(_0x5aa383,{'children':[_0x10c595('div',{'className':_0x293508(0x10f),'children':_0x293508(0x174)}),_0x10c595(_0x3a9d39,{'variant':_0x293508(0x154),'onClick':()=>_0x3f81c0['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Fe(){var _0x42edf6=_0x43ad12;return _0x10c595(_0x5aa383,{'children':_0x42edf6(0x137)});}var He=Object[_0x43ad12(0x1b6)],je=(_0x508d6e,_0x76f076,_0xfb9d47,_0x597f21)=>{var _0xca4084=_0x43ad12;for(var _0x43f9fa=_0x597f21>0x1?void 0x0:_0x597f21?He(_0x76f076,_0xfb9d47):_0x76f076,_0x32de71=_0x508d6e[_0xca4084(0x185)]-0x1,_0xa3f41f;_0x32de71>=0x0;_0x32de71--)(_0xa3f41f=_0x508d6e[_0x32de71])&&(_0x43f9fa=_0xa3f41f(_0x43f9fa)||_0x43f9fa);return _0x43f9fa;},T=(_0x3de9d8,_0x432a49)=>(_0x287650,_0x5a9a49)=>_0x432a49(_0x287650,_0x5a9a49,_0x3de9d8);function _0x59c7(){var _0x5bbf20=['SAME_OPERATION_SHARE_INTERVAL','Start\x20following','_handleNewChangeSets','forEach','requireSession','setConfig','xlink:href','event$','children','LIVESHARE_TERMINATE','UNIVER_UNKNOWN','_commandService','getConfig','get','1719976EanUnq','_init','1923832COLdxK','1720xAiZjU','complete','Present\x20this\x20document','You\x27re\x20presenting\x20the\x20document','substring','delete','url(#$1','params','current','4pKGvIM','following','9BLVPZy','7304EemPpo','stopPresenting','_stopPresenting','then','from','_stopFollowing','getMemberID','PRESENTING','length','_unitID','6504880MpKkzb','_univerInstanceService','pipe','colorChannel1','find','propertyIsEnumerable','_presenter','UNIVER_SHEET','_startPresenting','div','LIVESHARE_NEW_HOST','presenting','override','2392482RtUvaV','_startLiveShareCoordinator','Start','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','onStarting','_collabSessionService','extend','send','next','hasOwnProperty','_commandDisposable','string','_mountLiveShare','className','startFollowing','idle','UniverIcon','IDLE','function','LIVESHARE_FETCH_OPERATIONS','concat','_status','executeCommand','assign','none','apply','includes','init','icon','use','getValue','path','_config','univer-size-4','getOwnPropertyDescriptor','shouldShareOperation','_liveShareService','replace','_configService','_fetchOperations','indexOf','_injector','getUnitId','displayName','attrs','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','ONLINE','NEW_CHANGESETS','operations','set','univer-mb-3\x20univer-w-full\x20univer-text-sm','toString','_handleOffline','symbol','idSuffix','dispose$','_reporters','registerSharedOperation','mutations','_handleOperation','entries','has','presenter','map','tag','1em','_beIdle','onCommandExecuted','pluginName','fill','unsubscribe','not-following','prototype','You\x27re\x20not\x20following\x20the\x20presenter','defs','defineProperty','_handleTerminate','getCurrentTypeOfUnit$','disposeWithMe','sessionStatus$','OFFLINE','_entities','call','reverse','status$','_sharedOperations','getOwnPropertySymbols','FOLLOWING','offline','univerjs-icon\x20univerjs-icon-','You\x27are\x20offline.','end','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','NOT_FOLLOWING','random','LIVESHARE_REQUEST_HOST','evenodd','_status$','http://www.w3.org/2000/svg','OPERATION','currentColor','7ycYBsd','live-share-icon','_collabSession','registerComponent','type','dispose','button','values','data','stopFollowing','6955afPYKR','_startFollowing','svg','mask','getInitialStates','_handleOnline','memberID','default','stringify','getLiveShareCoordinator','_uiPartsService','registerInitialStateReporter','_handleNewHost','trim','16005ruNFTS','LIVESHARE_OPERATION','getTypeOfUnitAdded$','getTypeOfUnitDisposed$','subscribe'];_0x59c7=function(){return _0x5bbf20;};return _0x59c7();}let I=class extends _0x1b4c3b{constructor(_0x3c5285,_0x589df5){var _0x5ab782=_0x43ad12;super(),this[_0x5ab782(0x1bd)]=_0x3c5285,this[_0x5ab782(0x157)]=_0x589df5,this[_0x5ab782(0x1a0)]();}['_mountLiveShare'](){var _0xc12a86=_0x43ad12;this[_0xc12a86(0x12b)](this[_0xc12a86(0x157)][_0xc12a86(0x146)](_0x3c9c42['HEADER_MENU'],()=>_0x1896e1(ye,this['_injector'])));}};I=je([T(0x0,_0x415909(_0x3fc7f2)),T(0x1,_0x3d81bf)],I);const Ue='live-share.config',$={};var Ve=Object['getOwnPropertyDescriptor'],Me=(_0x5c04f3,_0x1682c0,_0x31924b,_0x3f51db)=>{for(var _0xd7c9b0=_0x3f51db>0x1?void 0x0:_0x3f51db?Ve(_0x1682c0,_0x31924b):_0x1682c0,_0x44252e=_0x5c04f3['length']-0x1,_0x5e068a;_0x44252e>=0x0;_0x44252e--)(_0x5e068a=_0x5c04f3[_0x44252e])&&(_0xd7c9b0=_0x5e068a(_0xd7c9b0)||_0xd7c9b0);return _0xd7c9b0;},ke=(_0x344af6,_0x5c7f4f)=>(_0x148486,_0x4907f3)=>_0x5c7f4f(_0x148486,_0x4907f3,_0x344af6);let b=class extends _0x1b4c3b{constructor(_0x329840){var _0x582655=_0x43ad12;super(),this['_liveShareService']=_0x329840,this[_0x582655(0x16f)]();}[_0x43ad12(0x16f)](){var _0x5def39=_0x43ad12;[_0xb0b9cb['id'],_0x2b4266['id'],_0x82b7b3['id']][_0x5def39(0x163)](_0x5742fc=>{var _0x12275e=_0x5def39;this[_0x12275e(0x12b)](this[_0x12275e(0x1b8)][_0x12275e(0x116)](_0x5742fc));});}};b=Me([ke(0x0,_0x415909(L))],b);var Ge=Object[_0x43ad12(0x128)],We=Object[_0x43ad12(0x1b6)],Ye=(_0x215cb6,_0x2c906f,_0x2ce248)=>_0x2c906f in _0x215cb6?Ge(_0x215cb6,_0x2c906f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ce248}):_0x215cb6[_0x2c906f]=_0x2ce248,Be=(_0x12f9e1,_0x1f0d31,_0x512454,_0x5a7f64)=>{var _0x3110a4=_0x43ad12;for(var _0x19d988=_0x5a7f64>0x1?void 0x0:_0x5a7f64?We(_0x1f0d31,_0x512454):_0x1f0d31,_0x1bafe5=_0x12f9e1[_0x3110a4(0x185)]-0x1,_0x5925da;_0x1bafe5>=0x0;_0x1bafe5--)(_0x5925da=_0x12f9e1[_0x1bafe5])&&(_0x19d988=_0x5925da(_0x19d988)||_0x19d988);return _0x19d988;},F=(_0x32496f,_0x179d8b)=>(_0x1e2084,_0x1cda7f)=>_0x179d8b(_0x1e2084,_0x1cda7f,_0x32496f),J=(_0x12c914,_0x2aa623,_0x2daeba)=>Ye(_0x12c914,typeof _0x2aa623!=_0x43ad12(0x112)?_0x2aa623+'':_0x2aa623,_0x2daeba);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x36a567{constructor(_0x4dfdb5=$,_0x446f4f,_0x44cfba){var _0x4c2ac8=_0x43ad12;super(),this['_config']=_0x4dfdb5,this[_0x4c2ac8(0x1bd)]=_0x446f4f,this[_0x4c2ac8(0x1ba)]=_0x44cfba;const {..._0xa95df4}=_0x567ad9({},$,this[_0x4c2ac8(0x1b4)]);this['_configService'][_0x4c2ac8(0x165)](Ue,_0xa95df4);}[_0x43ad12(0x198)](){var _0x5ffbc6=_0x43ad12;_0x540bc8(this[_0x5ffbc6(0x1bd)],_0x14ee17([[L],[m],[b],[I]],this[_0x5ffbc6(0x1b4)][_0x5ffbc6(0x193)])),_0x41f7e0(this['_injector'],[[b]]);}['onRendered'](){_0x41f7e0(this['_injector'],[[I]]);}};J(O,_0x43ad12(0x147),_0x33c666[_0x43ad12(0x16a)]),J(O,_0x43ad12(0x121),Ze),O=Be([_0x1b3cbd(_0x485a8f),F(0x1,_0x415909(_0x3fc7f2)),F(0x2,_0x13311c)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x20ffcd=_0x2eb9;(function(_0x2b75fc,_0x27b805){var _0x3d8cbe=_0x2eb9,_0x51e224=_0x2b75fc();while(!![]){try{var _0x3de8ba=parseInt(_0x3d8cbe(0xc1))/0x1*(parseInt(_0x3d8cbe(0xb3))/0x2)+-parseInt(_0x3d8cbe(0x124))/0x3*(-parseInt(_0x3d8cbe(0x131))/0x4)+-parseInt(_0x3d8cbe(0x91))/0x5+parseInt(_0x3d8cbe(0xf0))/0x6+-parseInt(_0x3d8cbe(0xc3))/0x7*(-parseInt(_0x3d8cbe(0xef))/0x8)+parseInt(_0x3d8cbe(0xd8))/0x9*(parseInt(_0x3d8cbe(0x116))/0xa)+-parseInt(_0x3d8cbe(0xa6))/0xb*(parseInt(_0x3d8cbe(0x12e))/0xc);if(_0x3de8ba===_0x27b805)break;else _0x51e224['push'](_0x51e224['shift']());}catch(_0x251c97){_0x51e224['push'](_0x51e224['shift']());}}}(_0x9300,0x4beb2));var q=Object[_0x20ffcd(0x121)],z=(_0x36d883,_0x37b2e7,_0x1d3ce6)=>_0x37b2e7 in _0x36d883?q(_0x36d883,_0x37b2e7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d3ce6}):_0x36d883[_0x37b2e7]=_0x1d3ce6,d=(_0x2a1788,_0x4628c7,_0x1b4fc7)=>z(_0x2a1788,typeof _0x4628c7!=_0x20ffcd(0x12f)?_0x4628c7+'':_0x4628c7,_0x1b4fc7);import{Disposable as _0x539b1d,toDisposable as _0x6f4b16,IUniverInstanceService as _0x43cc96,Inject as _0x42b534,Injector as _0x59a932,IConfigService as _0x54be48,ICommandService as _0x53f3c0,RxDisposable as _0x483a0a,UniverInstanceType as _0x38c32e,DisposableCollection as _0x1c0ac7,CommandType as _0x406405,DependentOn as _0x50aa05,Plugin as _0x574128,merge as _0x78447b,registerDependencies as _0x3e2832,mergeOverrideWithDependencies as _0x360b36,touchDependencies as _0x5b4f9e}from'@univerjs/core';import{useDependency as _0x26c555,useObservable as _0x45febd,IUIPartsService as _0x4f299e,BuiltInUIPart as _0x1b50ea,connectInjector as _0x5bf79f}from'@univerjs/ui';function _0x9300(){var _0x23791d=['http://www.w3.org/2000/svg','type','current','_presenter','event$','next','createInstance','_injector','97176KcQeIh','3568134HIkJGi','_beIdle','idSuffix','PRESENTING','params','children','onCommandExecuted','length','send','LIVESHARE_OPERATION','init','className','getInitialStates','onRendered','entries','_status','fill','defIds','status$','values','_status$','_sharedOperations','unitId','subscribe','_collabSessionService','_startFollowing','_handleOnline','Stop\x20following','string','hasOwnProperty','has','icon','_handleOperation','operations','ONLINE','includes','live-share-icon','_univerInstanceService','131320zMqAaY','UNIVER_SHEET','onStarting','registerSharedOperation','_reporters','sheet','reverse','text','getMemberID','_uiPartsService','startFollowing','defineProperty','path','_startPresenting','474795KuCpja','propertyIsEnumerable','extend','UNIVER_UNKNOWN','indexOf','presenter','univer-mb-3\x20univer-w-full\x20univer-text-sm','map','setConfig','_handleOffline','24jqwAfF','symbol','Start','12wFKvpI','_entities','FOLLOWING','univerjs-icon\x20univerjs-icon-','stopFollowing','LIVESHARE_FETCH_OPERATIONS','from','data','_fetchOperations','override','getValue','_config','tryStartPresenting','toString','unsubscribe','_liveShareService','_handleNewChangeSets','You\x27re\x20presenting\x20the\x20document','concat','currentColor','dispose','1422970oPwGrh','_commandService','offline','none','You\x27are\x20offline.','idle','UniverIcon','_unitID','add','You\x27re\x20not\x20following\x20the\x20presenter','following','getCurrentTypeOfUnit$','_commandDisposable','getOwnPropertySymbols','apply','getTypeOfUnitAdded$','shouldShareOperation','requireSession','disposeWithMe','live-share.config','evenodd','6671423BhVXNS','presenting','registerInitialStateReporter','LIVESHARE_REQUEST_HOST','getUnitId','_configService','LIVESHARE_TERMINATE','You\x27re\x20following\x20the\x20presenter','defs','getTypeOfUnitDisposed$','forEach','NOT_FOLLOWING','assign','2ZxhInW','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','Present\x20this\x20document','call','dispose$','set','NEW_CHANGESETS','_mountLiveShare','executeCommand','div','memberID','delete','_stopPresenting','not-following','203605TvScnc','stopPresenting','301MPArvr','getConfig','prototype','getOwnPropertyDescriptor','colorChannel1','_startLiveShareCoordinator','mutations','_handleTerminate','find','IDLE','_init','displayName','_stopFollowing','mask','LiveShareIcon','svg','default','xlink:href','registerComponent','SAME_OPERATION_SHARE_INTERVAL','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','9XvnfAd','clear','attrs','use','pipe','OFFLINE','url(#$1','stringify','button','tag','getLiveShareCoordinator','_collabSession','_handleNewHost','replace','get'];_0x9300=function(){return _0x23791d;};return _0x9300();}import{jsx as _0x157b9a,jsxs as _0x473891,Fragment as _0x55b1a3}from'react/jsx-runtime';import{Dropdown as _0xb7599b,clsx as _0x400561,Button as _0x28c9ca}from'@univerjs/design';import{forwardRef as _0x7a472b,useRef as _0x4928e4,createElement as _0x23f67a,useState as _0x3d360d,useEffect as _0x752798}from'react';import{CollaborationEvent as _0x2abc7e,parseProtocolChangeset as _0x5d4330}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x4f9f70,SessionStatus as _0x1cf2a1,UniverCollaborationClientPlugin as _0x2f65a8}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3240f5,SetWorksheetActiveOperation as _0x208319}from'@univerjs/sheets';import{BehaviorSubject as _0x1e4a81,Subject as _0x396bc7}from'rxjs';import{takeUntil as _0x5b2945,throttleTime as _0x5c2331}from'rxjs/operators';import{SetZoomRatioOperation as _0x5deda2,SetScrollOperation as _0x5abaaa}from'@univerjs/sheets-ui';var c=function(){var _0xf16334=_0x20ffcd;return c=Object[_0xf16334(0xb2)]||function(_0x5eb54e){var _0x33d02a=_0xf16334;for(var _0x3a9f7b,_0x4af609=0x1,_0x9e4e20=arguments[_0x33d02a(0xf7)];_0x4af609<_0x9e4e20;_0x4af609++){_0x3a9f7b=arguments[_0x4af609];for(var _0x24a116 in _0x3a9f7b)Object[_0x33d02a(0xc5)]['hasOwnProperty'][_0x33d02a(0xb6)](_0x3a9f7b,_0x24a116)&&(_0x5eb54e[_0x24a116]=_0x3a9f7b[_0x24a116]);}return _0x5eb54e;},c[_0xf16334(0x9f)](this,arguments);},Oe=function(_0x3942af,_0x4422c1){var _0xe8340f=_0x20ffcd,_0x4d91ae={};for(var _0x481cf8 in _0x3942af)Object['prototype'][_0xe8340f(0x10d)]['call'](_0x3942af,_0x481cf8)&&_0x4422c1[_0xe8340f(0x128)](_0x481cf8)<0x0&&(_0x4d91ae[_0x481cf8]=_0x3942af[_0x481cf8]);if(_0x3942af!=null&&typeof Object[_0xe8340f(0x9e)]=='function'){for(var _0x36f605=0x0,_0x481cf8=Object['getOwnPropertySymbols'](_0x3942af);_0x36f605<_0x481cf8['length'];_0x36f605++)_0x4422c1['indexOf'](_0x481cf8[_0x36f605])<0x0&&Object[_0xe8340f(0xc5)][_0xe8340f(0x125)][_0xe8340f(0xb6)](_0x3942af,_0x481cf8[_0x36f605])&&(_0x4d91ae[_0x481cf8[_0x36f605]]=_0x3942af[_0x481cf8[_0x36f605]]);}return _0x4d91ae;},W=_0x7a472b(function(_0x20cb53,_0x8e1fe0){var _0x10ac0b=_0x20ffcd,_0x1b2cce=_0x20cb53['icon'],_0x9d6e3e=_0x20cb53['id'],_0x473ed6=_0x20cb53[_0x10ac0b(0xfb)],_0x290904=_0x20cb53[_0x10ac0b(0x126)],_0x4fa4f4=Oe(_0x20cb53,[_0x10ac0b(0x10f),'id',_0x10ac0b(0xfb),'extend']),_0x260855=_0x10ac0b(0x134)[_0x10ac0b(0x8e)](_0x9d6e3e,'\x20')[_0x10ac0b(0x8e)](_0x473ed6||'')['trim'](),_0x418b50=_0x4928e4('_'[_0x10ac0b(0x8e)](Ne()));return Y(_0x1b2cce,''[_0x10ac0b(0x8e)](_0x9d6e3e),{'defIds':_0x1b2cce[_0x10ac0b(0x101)],'idSuffix':_0x418b50['current']},c({'ref':_0x8e1fe0,'className':_0x260855},_0x4fa4f4),_0x290904);});function Y(_0x4332a8,_0x53ab35,_0xacdba,_0x1444da,_0x19d1da){var _0x54b9c9=_0x20ffcd;return _0x23f67a(_0x4332a8[_0x54b9c9(0xe1)],c(c({'key':_0x53ab35},Ee(_0x4332a8,_0xacdba,_0x19d1da)),_0x1444da),(we(_0x4332a8,_0xacdba)[_0x54b9c9(0xf5)]||[])[_0x54b9c9(0x12b)](function(_0x176e99,_0x210eb2){var _0x1c88de=_0x54b9c9;return Y(_0x176e99,''['concat'](_0x53ab35,'-')['concat'](_0x4332a8['tag'],'-')[_0x1c88de(0x8e)](_0x210eb2),_0xacdba,void 0x0,_0x19d1da);}));}function Ee(_0x8203fc,_0x232873,_0x146f8e){var _0x320c35=_0x20ffcd,_0x132089=c({},_0x8203fc['attrs']);_0x146f8e!=null&&_0x146f8e['colorChannel1']&&_0x132089[_0x320c35(0x100)]===_0x320c35(0xc7)&&(_0x132089[_0x320c35(0x100)]=_0x146f8e[_0x320c35(0xc7)]),_0x8203fc[_0x320c35(0xe1)]==='mask'&&_0x132089['id']&&(_0x132089['id']=_0x132089['id']+_0x232873[_0x320c35(0xf2)]),Object['entries'](_0x132089)[_0x320c35(0xb0)](function(_0x4bd1a8){var _0x4ca582=_0x320c35,_0x1ef676=_0x4bd1a8[0x0],_0x2068e0=_0x4bd1a8[0x1];_0x1ef676===_0x4ca582(0xd0)&&typeof _0x2068e0==_0x4ca582(0x10c)&&(_0x132089[_0x1ef676]=_0x2068e0[_0x4ca582(0xe5)](/url\(#(.*)\)/,_0x4ca582(0xde)['concat'](_0x232873[_0x4ca582(0xf2)],')')));});var _0x4f0b36=_0x232873[_0x320c35(0x101)];return!_0x4f0b36||_0x4f0b36[_0x320c35(0xf7)]===0x0||(_0x8203fc[_0x320c35(0xe1)]===_0x320c35(0xdb)&&_0x132089[_0x320c35(0xd4)]&&(_0x132089[_0x320c35(0xd4)]=_0x132089[_0x320c35(0xd4)]+_0x232873[_0x320c35(0xf2)]),Object[_0x320c35(0xfe)](_0x132089)['forEach'](function(_0x2a0c26){var _0x3f65b4=_0x320c35,_0x4983e2=_0x2a0c26[0x0],_0x39ddfc=_0x2a0c26[0x1];typeof _0x39ddfc=='string'&&(_0x132089[_0x4983e2]=_0x39ddfc[_0x3f65b4(0xe5)](/url\(#(.*)\)/,_0x3f65b4(0xde)[_0x3f65b4(0x8e)](_0x232873['idSuffix'],')')));})),_0x132089;}function we(_0x1b0d58,_0x1002f7){var _0x43d901=_0x20ffcd,_0x123073,_0x2e0fae=_0x1002f7[_0x43d901(0x101)];return!_0x2e0fae||_0x2e0fae[_0x43d901(0xf7)]===0x0?_0x1b0d58:_0x1b0d58[_0x43d901(0xe1)]===_0x43d901(0xae)&&(!((_0x123073=_0x1b0d58[_0x43d901(0xf5)])===null||_0x123073===void 0x0)&&_0x123073[_0x43d901(0xf7)])?c(c({},_0x1b0d58),{'children':_0x1b0d58[_0x43d901(0xf5)][_0x43d901(0x12b)](function(_0x32f4b3){var _0x1df102=_0x43d901;return typeof _0x32f4b3['attrs']['id']==_0x1df102(0x10c)&&_0x2e0fae&&_0x2e0fae[_0x1df102(0x113)](_0x32f4b3['attrs']['id'])?c(c({},_0x32f4b3),{'attrs':c(c({},_0x32f4b3[_0x1df102(0xda)]),{'id':_0x32f4b3[_0x1df102(0xda)]['id']+_0x1002f7['idSuffix']})}):_0x32f4b3;})}):_0x1b0d58;}function Ne(){var _0x474e05=_0x20ffcd;return Math['random']()[_0x474e05(0x89)](0x24)['substring'](0x2,0x8);}W[_0x20ffcd(0xce)]=_0x20ffcd(0x97);var Ce={'tag':_0x20ffcd(0xd2),'attrs':{'xmlns':_0x20ffcd(0xe7),'fill':_0x20ffcd(0x94),'viewBox':'0\x200\x2017\x2017','width':'1em','height':'1em'},'children':[{'tag':_0x20ffcd(0x122),'attrs':{'fill':_0x20ffcd(0x8f),'d':_0x20ffcd(0xb4)}},{'tag':'path','attrs':{'fill':_0x20ffcd(0x8f),'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':_0x20ffcd(0xa5),'clipRule':_0x20ffcd(0xa5)}}]},B=_0x7a472b(function(_0x434678,_0x1f52f2){var _0x302b39=_0x20ffcd;return _0x23f67a(W,Object['assign']({},_0x434678,{'id':_0x302b39(0x114),'ref':_0x1f52f2,'icon':Ce}));});function _0x2eb9(_0x5dfbc0,_0x4ef128){var _0x9300a0=_0x9300();return _0x2eb9=function(_0x2eb90b,_0x2124eb){_0x2eb90b=_0x2eb90b-0x85;var _0x1c9c27=_0x9300a0[_0x2eb90b];return _0x1c9c27;},_0x2eb9(_0x5dfbc0,_0x4ef128);}B[_0x20ffcd(0xce)]=_0x20ffcd(0xd1);class L extends _0x539b1d{constructor(){var _0x35854c=_0x20ffcd;super(...arguments),d(this,_0x35854c(0x105),new Set()),d(this,_0x35854c(0x11a),new Set());}[_0x20ffcd(0x119)](_0x398132){var _0x448957=_0x20ffcd;return this[_0x448957(0x105)][_0x448957(0x99)](_0x398132),_0x6f4b16(()=>this[_0x448957(0x105)][_0x448957(0xbe)](_0x398132));}[_0x20ffcd(0xa8)](_0x5c8e56){var _0x39a15a=_0x20ffcd;return this[_0x39a15a(0x11a)][_0x39a15a(0x99)](_0x5c8e56),_0x6f4b16(()=>this[_0x39a15a(0x11a)]['delete'](_0x5c8e56));}[_0x20ffcd(0xa1)](_0xcd336b){var _0x4c4bbb=_0x20ffcd;return this['_sharedOperations'][_0x4c4bbb(0x10e)](_0xcd336b);}[_0x20ffcd(0xfc)](_0x3f02a8){var _0x31e215=_0x20ffcd;return Array[_0x31e215(0x137)](this[_0x31e215(0x11a)])[_0x31e215(0x12b)](_0x38ff09=>_0x38ff09(_0x3f02a8));}}var De=Object[_0x20ffcd(0xc6)],Z=(_0x2867b1,_0x11cd36,_0x2a2236,_0x45b7b0)=>{var _0x192486=_0x20ffcd;for(var _0x140dc1=_0x45b7b0>0x1?void 0x0:_0x45b7b0?De(_0x11cd36,_0x2a2236):_0x11cd36,_0x39601a=_0x2867b1[_0x192486(0xf7)]-0x1,_0x5975a7;_0x39601a>=0x0;_0x39601a--)(_0x5975a7=_0x2867b1[_0x39601a])&&(_0x140dc1=_0x5975a7(_0x140dc1)||_0x140dc1);return _0x140dc1;},f=(_0x309e57,_0x795664)=>(_0xe5c25a,_0x49b8d3)=>_0x795664(_0xe5c25a,_0x49b8d3,_0x309e57);let m=class extends _0x483a0a{constructor(_0x49be32,_0x1f22e6,_0x5d3ae9){var _0x45eb05=_0x20ffcd;super(),d(this,_0x45eb05(0x132),new Map()),(this[_0x45eb05(0x115)]=_0x49be32,this['_injector']=_0x1f22e6,this['_collabSessionService']=_0x5d3ae9,this[_0x45eb05(0xcd)]());}async[_0x20ffcd(0xe2)](_0x4fc6eb){var _0x493172=_0x20ffcd;return this[_0x493172(0x132)]['has'](_0x4fc6eb)||await this['_startLiveShareCoordinator'](_0x4fc6eb),this[_0x493172(0x132)]['get'](_0x4fc6eb);}[_0x20ffcd(0xcd)](){var _0x21acef=_0x20ffcd;this[_0x21acef(0x115)][_0x21acef(0xa0)](_0x38c32e[_0x21acef(0x117)])['pipe'](_0x5b2945(this[_0x21acef(0xb7)]))[_0x21acef(0x107)](async _0x4f9ae6=>{var _0x589536=_0x21acef;const _0x40b3fe=_0x4f9ae6[_0x589536(0xaa)]();this[_0x589536(0x132)][_0x589536(0x10e)](_0x40b3fe)||this[_0x589536(0xc8)](_0x40b3fe);}),this[_0x21acef(0x115)][_0x21acef(0xaf)](_0x38c32e[_0x21acef(0x117)])['pipe'](_0x5b2945(this[_0x21acef(0xb7)]))[_0x21acef(0x107)](_0x527482=>{var _0x1618de=_0x21acef;const _0x5b5dd1=_0x527482[_0x1618de(0xaa)](),_0xc9b338=this[_0x1618de(0x132)][_0x1618de(0xe6)](_0x5b5dd1);_0xc9b338==null||_0xc9b338[_0x1618de(0x90)]();});}async[_0x20ffcd(0xc8)](_0x5e6fa6){var _0x27b1a0=_0x20ffcd;const _0x1d6e57=await this[_0x27b1a0(0x108)][_0x27b1a0(0xa2)](_0x5e6fa6),_0x3823e4=this[_0x27b1a0(0xee)][_0x27b1a0(0xed)](C,_0x5e6fa6,_0x1d6e57);return _0x3823e4[_0x27b1a0(0xfa)](),this[_0x27b1a0(0x132)][_0x27b1a0(0xb8)](_0x5e6fa6,_0x3823e4),_0x3823e4;}};m=Z([f(0x0,_0x43cc96),f(0x1,_0x42b534(_0x59a932)),f(0x2,_0x42b534(_0x4f9f70))],m);var h=(_0x3dcbf5=>(_0x3dcbf5['OFFLINE']=_0x20ffcd(0x93),_0x3dcbf5[_0x20ffcd(0xcc)]=_0x20ffcd(0x96),_0x3dcbf5['FOLLOWING']=_0x20ffcd(0x9b),_0x3dcbf5['NOT_FOLLOWING']='not-following',_0x3dcbf5[_0x20ffcd(0xf3)]=_0x20ffcd(0xa7),_0x3dcbf5))(h||{});const xe=_0x20ffcd(0xd6),Le=0xc8;let C=class extends _0x483a0a{constructor(_0x309cbc,_0x4cabe9,_0x8e41c7,_0x4c01f4,_0x160d03){var _0x33d594=_0x20ffcd;super(),d(this,'_status$',new _0x1e4a81(_0x33d594(0x96))),d(this,_0x33d594(0x102),this['_status$']['asObservable']()),d(this,'_init',!0x1),d(this,_0x33d594(0x9d),null),d(this,_0x33d594(0xea),null),(this[_0x33d594(0x98)]=_0x309cbc,this[_0x33d594(0xe3)]=_0x4cabe9,this['_configService']=_0x8e41c7,this[_0x33d594(0x8b)]=_0x4c01f4,this[_0x33d594(0x92)]=_0x160d03);}get['_status'](){var _0xed1284=_0x20ffcd;return this[_0xed1284(0x104)][_0xed1284(0x86)]();}[_0x20ffcd(0x90)](){var _0xfeab79=_0x20ffcd,_0xe95d63;(_0xe95d63=this[_0xfeab79(0x9d)])==null||_0xe95d63[_0xfeab79(0x90)](),this[_0xfeab79(0x104)][_0xfeab79(0xec)](_0xfeab79(0x96)),this['_status$']['complete']();}['init'](){var _0x164c56=_0x20ffcd;this['_init']||(this['_init']=!0x0,this[_0x164c56(0xe3)]['sessionStatus$'][_0x164c56(0xdc)](_0x5b2945(this[_0x164c56(0xb7)]))[_0x164c56(0x107)](_0x4f2f8e=>{var _0x5ebdc3=_0x164c56;switch(_0x4f2f8e){case _0x1cf2a1['OFFLINE']:this[_0x5ebdc3(0x12d)]();break;case _0x1cf2a1[_0x5ebdc3(0x112)]:this[_0x5ebdc3(0x10a)]();break;}}),this[_0x164c56(0xe3)][_0x164c56(0xeb)][_0x164c56(0xdc)](_0x5b2945(this[_0x164c56(0xb7)]))[_0x164c56(0x107)](_0x582462=>{var _0x3aa487=_0x164c56;const {eventID:_0x57758a}=_0x582462;switch(_0x57758a){case _0x2abc7e['LIVESHARE_NEW_HOST']:this[_0x3aa487(0xe4)](_0x582462);break;case _0x2abc7e[_0x3aa487(0xf9)]:this['_handleOperation'](_0x582462);break;case _0x2abc7e[_0x3aa487(0xac)]:this[_0x3aa487(0xca)]();break;case _0x2abc7e[_0x3aa487(0xb9)]:this[_0x3aa487(0x8c)](_0x582462);break;}}));}[_0x20ffcd(0x88)](){var _0x4260bf=_0x20ffcd;this[_0x4260bf(0xe3)][_0x4260bf(0xf8)]({'eventID':_0x2abc7e[_0x4260bf(0xa9)],'data':{'unitID':this[_0x4260bf(0x98)],'userID':this['_collabSession'][_0x4260bf(0x11e)]()}},this['_unitID']);}[_0x20ffcd(0xc2)](){var _0x29cc31=_0x20ffcd;this[_0x29cc31(0xff)]==='presenting'&&(this[_0x29cc31(0x104)][_0x29cc31(0xec)]('idle'),this[_0x29cc31(0xe3)][_0x29cc31(0xf8)]({'eventID':_0x2abc7e[_0x29cc31(0xac)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x20ffcd(0x120)](){var _0x36dbf3=_0x20ffcd;this[_0x36dbf3(0xff)]===_0x36dbf3(0xc0)&&(this[_0x36dbf3(0x104)][_0x36dbf3(0xec)](_0x36dbf3(0x9b)),this[_0x36dbf3(0x109)]());}[_0x20ffcd(0x135)](){var _0x22cd64=_0x20ffcd;this[_0x22cd64(0xff)]===_0x22cd64(0x9b)&&this[_0x22cd64(0xcf)]();}[_0x20ffcd(0xe4)](_0x197f32){var _0x39a9b5=_0x20ffcd;const {presenter:_0x1c969e}=_0x197f32[_0x39a9b5(0x138)],_0x8702b3=this[_0x39a9b5(0xe3)][_0x39a9b5(0x11e)]();this[_0x39a9b5(0xea)]=_0x1c969e,_0x1c969e===_0x8702b3?(this[_0x39a9b5(0xcf)](),this[_0x39a9b5(0x123)]()):this[_0x39a9b5(0xff)]!==_0x39a9b5(0xc0)&&(this[_0x39a9b5(0xbf)](),this['_startFollowing']());}[_0x20ffcd(0x139)](){var _0x2b7ab1=_0x20ffcd;const _0x4aad35={'eventID':_0x2abc7e[_0x2b7ab1(0x136)]};this[_0x2b7ab1(0xe3)][_0x2b7ab1(0xf8)](_0x4aad35,this['_unitID']);}['_handleTerminate'](){var _0x338ba1=_0x20ffcd;this[_0x338ba1(0xea)]=null,this[_0x338ba1(0xff)]!=='presenting'&&this[_0x338ba1(0xf1)]();}[_0x20ffcd(0x8c)](_0x1e407d){var _0x15de91=_0x20ffcd;if(this[_0x15de91(0xff)]===_0x15de91(0x9b)&&this['_presenter']===_0x1e407d[_0x15de91(0x138)][_0x15de91(0xbd)]){const _0xb04db0=_0x5d4330(_0x1e407d[_0x15de91(0x138)])[_0x15de91(0xc9)][_0x15de91(0x11c)]()[_0x15de91(0xcb)](_0x1fc8b9=>_0x1fc8b9['id']===_0x3240f5['id']);if(_0xb04db0){const _0x2d5386=_0xb04db0[_0x15de91(0xf4)][_0x15de91(0x106)],_0x2e3c61=_0xb04db0[_0x15de91(0xf4)][_0x15de91(0x11b)]['id'];setTimeout(()=>{var _0x1ecf1b=_0x15de91;this[_0x1ecf1b(0x92)][_0x1ecf1b(0xbb)](_0x208319['id'],{'unitId':_0x2d5386,'subUnitId':_0x2e3c61},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0xc76bac=_0x20ffcd;this[_0xc76bac(0x104)]['next'](_0xc76bac(0xa7));const _0xd3dee4=new Map(),_0x529bd5=this[_0xc76bac(0x9d)]=new _0x1c0ac7();_0x529bd5[_0xc76bac(0x99)](_0x6f4b16(()=>{var _0xc4795=_0xc76bac;_0xd3dee4[_0xc4795(0xb0)](_0x26eca9=>_0x26eca9['complete']()),_0xd3dee4[_0xc4795(0xd9)]();})),_0x529bd5[_0xc76bac(0x99)](this[_0xc76bac(0x92)][_0xc76bac(0xf6)](_0xb0c0a3=>{var _0x3f4e5c=_0xc76bac,_0x23b1a6;if(_0xb0c0a3[_0x3f4e5c(0xe8)]!==_0x406405['OPERATION']||!this[_0x3f4e5c(0x8b)][_0x3f4e5c(0xa1)](_0xb0c0a3['id']))return;const {id:_0x1b43d1}=_0xb0c0a3;let _0x4d2385;_0xd3dee4['has'](_0x1b43d1)?_0x4d2385=_0xd3dee4[_0x3f4e5c(0xe6)](_0x1b43d1):(_0x4d2385=new _0x396bc7(),_0xd3dee4[_0x3f4e5c(0xb8)](_0x1b43d1,_0x4d2385),_0x4d2385[_0x3f4e5c(0xdc)](_0x5c2331((_0x23b1a6=this[_0x3f4e5c(0xab)][_0x3f4e5c(0xc4)](xe))!=null?_0x23b1a6:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3f4e5c(0x107)](_0x4d89d3=>{var _0x1a35b2=_0x3f4e5c;this[_0x1a35b2(0xe3)]['send']({'eventID':_0x2abc7e[_0x1a35b2(0xf9)],'data':{'unitID':this['_unitID'],'operations':{[_0x4d89d3['id']]:{'id':_0x4d89d3['id'],'params':JSON[_0x1a35b2(0xdf)](_0x4d89d3[_0x1a35b2(0xf4)])}}}},this[_0x1a35b2(0x98)]);})),_0x4d2385[_0x3f4e5c(0xec)](_0xb0c0a3);})),this['_liveShareService'][_0xc76bac(0xfc)](this[_0xc76bac(0x98)])[_0xc76bac(0xb0)](_0x128ef1=>this[_0xc76bac(0xe3)]['send']({'eventID':_0x2abc7e[_0xc76bac(0xf9)],'data':{'unitID':this['_unitID'],'operations':{[_0x128ef1['id']]:{'id':_0x128ef1['id'],'params':JSON['stringify'](_0x128ef1[_0xc76bac(0xf4)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x5ae72b=_0x20ffcd,_0x6ce1c7;this['_status$'][_0x5ae72b(0xec)](_0x5ae72b(0x96)),(_0x6ce1c7=this['_commandDisposable'])==null||_0x6ce1c7[_0x5ae72b(0x90)](),this[_0x5ae72b(0x9d)]=null;}['_startFollowing'](){var _0x5dbe43=_0x20ffcd,_0x501234;(_0x501234=this[_0x5dbe43(0x9d)])==null||_0x501234[_0x5dbe43(0x90)](),this[_0x5dbe43(0x104)][_0x5dbe43(0xec)](_0x5dbe43(0x9b));}[_0x20ffcd(0xf1)](){var _0x50f650=_0x20ffcd,_0xd6ff21;this['_status$'][_0x50f650(0xec)](_0x50f650(0x96)),(_0xd6ff21=this[_0x50f650(0x9d)])==null||_0xd6ff21['dispose'](),this[_0x50f650(0x9d)]=null;}[_0x20ffcd(0xcf)](){var _0xa90780=_0x20ffcd,_0x16663b;this['_status$'][_0xa90780(0xec)](_0xa90780(0xc0)),(_0x16663b=this[_0xa90780(0x9d)])==null||_0x16663b[_0xa90780(0x90)]();}[_0x20ffcd(0x110)](_0x2e7910){var _0x2eb80d=_0x20ffcd;if(['presenting',_0x2eb80d(0xc0),'offline'][_0x2eb80d(0x113)](this[_0x2eb80d(0xff)])||!_0x2e7910['data'][_0x2eb80d(0x129)]||_0x2e7910[_0x2eb80d(0x138)]['presenter']===this[_0x2eb80d(0xe3)]['getMemberID']())return;this[_0x2eb80d(0xff)]===_0x2eb80d(0x96)&&this[_0x2eb80d(0x109)]();const _0x260277=_0x2e7910['data'][_0x2eb80d(0x111)];Object[_0x2eb80d(0x103)](_0x260277)[_0x2eb80d(0xb0)](_0x3ac204=>{var _0x25c849=_0x2eb80d;this['_commandService']['executeCommand'](_0x3ac204['id'],_0x3ac204[_0x25c849(0xf4)]?JSON['parse'](_0x3ac204['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1754a8=_0x20ffcd,_0x1a8c5a;this[_0x1754a8(0x104)][_0x1754a8(0xec)](_0x1754a8(0x93)),(_0x1a8c5a=this[_0x1754a8(0x9d)])==null||_0x1a8c5a['dispose']();}[_0x20ffcd(0x10a)](){var _0x1dd754=_0x20ffcd;this[_0x1dd754(0x104)]['next'](_0x1dd754(0x96)),this['_fetchOperations']();}};C=Z([f(0x2,_0x54be48),f(0x3,_0x42b534(L)),f(0x4,_0x53f3c0)],C);function ye(){var _0x2885bf=_0x20ffcd;const _0x52abed=_0x26c555(m),_0x1eee02=_0x26c555(_0x43cc96),_0x1e7bdd=_0x45febd(()=>_0x1eee02[_0x2885bf(0x9c)](_0x38c32e['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0xb49b80,_0x3998c2]=_0x3d360d(null),[_0x552f57,_0x85b75a]=_0x3d360d(h[_0x2885bf(0xcc)]),_0x4a8976=_0x4928e4(null);return _0x752798(()=>(_0x1e7bdd&&_0x52abed[_0x2885bf(0xe2)](_0x1e7bdd[_0x2885bf(0xaa)]())['then'](_0x188a24=>{_0x3998c2(_0x188a24),_0x4a8976['current']=_0x188a24['status$']['subscribe'](_0x3a23f4=>{_0x85b75a(_0x3a23f4);});}),()=>{var _0x178ad4=_0x2885bf,_0x50dfb9;(_0x50dfb9=_0x4a8976['current'])==null||_0x50dfb9[_0x178ad4(0x8a)](),_0x4a8976[_0x178ad4(0xe9)]=null;}),[_0x1e7bdd,_0x52abed]),_0xb49b80?_0x157b9a(_0xb7599b,{'align':'end','disabled':_0x552f57===h[_0x2885bf(0xdd)],'className':_0x2885bf(0xd7),'overlay':_0x157b9a(Re,{'status':_0x552f57,'coordinator':_0xb49b80}),'children':_0x157b9a(_0x2885bf(0xe0),{'className':_0x400561('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x552f57===h[_0x2885bf(0xdd)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x552f57!==h['OFFLINE']}),'type':'button','children':_0x157b9a(B,{'className':'univer-size-4'})})}):null;}function Re(_0x1068e6){var _0x18633d=_0x20ffcd;const {status:_0x3a9292,coordinator:_0xc82d20}=_0x1068e6;switch(_0x3a9292){case h[_0x18633d(0xcc)]:return _0x157b9a(Pe,{'coordinator':_0xc82d20});case h[_0x18633d(0x133)]:return _0x157b9a(Ae,{'coordinator':_0xc82d20});case h[_0x18633d(0xb1)]:return _0x157b9a(Te,{'coordinator':_0xc82d20});case h[_0x18633d(0xdd)]:return _0x157b9a(Fe,{});case h[_0x18633d(0xf3)]:return _0x157b9a($e,{'coordinator':_0xc82d20});default:return null;}}function Pe(_0x24d3d8){var _0x1e31b7=_0x20ffcd;const {coordinator:_0x557f16}=_0x24d3d8;return _0x473891(_0x55b1a3,{'children':[_0x157b9a(_0x1e31b7(0xbc),{'className':_0x1e31b7(0x12a),'children':_0x1e31b7(0xb5)}),_0x157b9a(_0x28c9ca,{'onClick':()=>_0x557f16[_0x1e31b7(0x88)](),'children':_0x1e31b7(0x130)})]});}function Ae(_0x3359cd){var _0x87f096=_0x20ffcd;const {coordinator:_0x514ce6}=_0x3359cd;return _0x473891(_0x55b1a3,{'children':[_0x157b9a(_0x87f096(0xbc),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x87f096(0xad)}),_0x157b9a(_0x28c9ca,{'onClick':()=>_0x514ce6[_0x87f096(0x135)](),'children':_0x87f096(0x10b)})]});}function Te(_0x282133){var _0x3563bf=_0x20ffcd;const {coordinator:_0x2f9c0f}=_0x282133;return _0x473891(_0x55b1a3,{'children':[_0x157b9a(_0x3563bf(0xbc),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3563bf(0x9a)}),_0x157b9a(_0x28c9ca,{'variant':_0x3563bf(0x11d),'onClick':()=>_0x2f9c0f['startFollowing'](),'children':'Start\x20following'})]});}function $e(_0x3d8f5b){var _0x237ffe=_0x20ffcd;const {coordinator:_0x5e3865}=_0x3d8f5b;return _0x473891(_0x55b1a3,{'children':[_0x157b9a(_0x237ffe(0xbc),{'className':_0x237ffe(0x12a),'children':_0x237ffe(0x8d)}),_0x157b9a(_0x28c9ca,{'variant':_0x237ffe(0xd3),'onClick':()=>_0x5e3865[_0x237ffe(0xc2)](),'children':'Stop\x20presenting'})]});}function Fe(){var _0x5172e2=_0x20ffcd;return _0x157b9a(_0x55b1a3,{'children':_0x5172e2(0x95)});}var He=Object[_0x20ffcd(0xc6)],je=(_0x2591b1,_0x395329,_0x5b527a,_0x4a2a75)=>{var _0x705bae=_0x20ffcd;for(var _0x29f307=_0x4a2a75>0x1?void 0x0:_0x4a2a75?He(_0x395329,_0x5b527a):_0x395329,_0x2ce23b=_0x2591b1[_0x705bae(0xf7)]-0x1,_0x3381a6;_0x2ce23b>=0x0;_0x2ce23b--)(_0x3381a6=_0x2591b1[_0x2ce23b])&&(_0x29f307=_0x3381a6(_0x29f307)||_0x29f307);return _0x29f307;},T=(_0x1bd158,_0x4869a7)=>(_0x4f7c8f,_0x4224c2)=>_0x4869a7(_0x4f7c8f,_0x4224c2,_0x1bd158);let I=class extends _0x539b1d{constructor(_0x1b71fa,_0x4b1cd2){var _0x114ab5=_0x20ffcd;super(),this[_0x114ab5(0xee)]=_0x1b71fa,this['_uiPartsService']=_0x4b1cd2,this[_0x114ab5(0xba)]();}[_0x20ffcd(0xba)](){var _0x4da0f4=_0x20ffcd;this[_0x4da0f4(0xa3)](this[_0x4da0f4(0x11f)][_0x4da0f4(0xd5)](_0x1b50ea['HEADER_MENU'],()=>_0x5bf79f(ye,this[_0x4da0f4(0xee)])));}};I=je([T(0x0,_0x42b534(_0x59a932)),T(0x1,_0x4f299e)],I);const Ue=_0x20ffcd(0xa4),$={};var Ve=Object[_0x20ffcd(0xc6)],Me=(_0x518de8,_0x176f5e,_0x9a33e8,_0x2e4233)=>{var _0x4c149b=_0x20ffcd;for(var _0x18043=_0x2e4233>0x1?void 0x0:_0x2e4233?Ve(_0x176f5e,_0x9a33e8):_0x176f5e,_0x686b38=_0x518de8[_0x4c149b(0xf7)]-0x1,_0x9ac174;_0x686b38>=0x0;_0x686b38--)(_0x9ac174=_0x518de8[_0x686b38])&&(_0x18043=_0x9ac174(_0x18043)||_0x18043);return _0x18043;},ke=(_0x65203f,_0x380946)=>(_0x5a2139,_0x4a9346)=>_0x380946(_0x5a2139,_0x4a9346,_0x65203f);let b=class extends _0x539b1d{constructor(_0x56f409){var _0x3514e9=_0x20ffcd;super(),this['_liveShareService']=_0x56f409,this[_0x3514e9(0xcd)]();}[_0x20ffcd(0xcd)](){var _0x117401=_0x20ffcd;[_0x5deda2['id'],_0x5abaaa['id'],_0x208319['id']][_0x117401(0xb0)](_0x2cfc1c=>{var _0x3f2511=_0x117401;this[_0x3f2511(0xa3)](this['_liveShareService'][_0x3f2511(0x119)](_0x2cfc1c));});}};b=Me([ke(0x0,_0x42b534(L))],b);var Ge=Object[_0x20ffcd(0x121)],We=Object[_0x20ffcd(0xc6)],Ye=(_0x145a97,_0x3782a8,_0x3dd16e)=>_0x3782a8 in _0x145a97?Ge(_0x145a97,_0x3782a8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3dd16e}):_0x145a97[_0x3782a8]=_0x3dd16e,Be=(_0x85c55e,_0x430f0f,_0x58ffe3,_0x4f5d8e)=>{var _0x36bee9=_0x20ffcd;for(var _0x1c6c40=_0x4f5d8e>0x1?void 0x0:_0x4f5d8e?We(_0x430f0f,_0x58ffe3):_0x430f0f,_0x1fd99e=_0x85c55e[_0x36bee9(0xf7)]-0x1,_0x524603;_0x1fd99e>=0x0;_0x1fd99e--)(_0x524603=_0x85c55e[_0x1fd99e])&&(_0x1c6c40=_0x524603(_0x1c6c40)||_0x1c6c40);return _0x1c6c40;},F=(_0x3e04e3,_0x2ab29d)=>(_0x503331,_0x34cd77)=>_0x2ab29d(_0x503331,_0x34cd77,_0x3e04e3),J=(_0x5c5914,_0x234b6c,_0x53e3bd)=>Ye(_0x5c5914,typeof _0x234b6c!=_0x20ffcd(0x12f)?_0x234b6c+'':_0x234b6c,_0x53e3bd);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x574128{constructor(_0x2b7eee=$,_0x56e332,_0x5da0a3){var _0x4bce4d=_0x20ffcd;super(),this[_0x4bce4d(0x87)]=_0x2b7eee,this[_0x4bce4d(0xee)]=_0x56e332,this[_0x4bce4d(0xab)]=_0x5da0a3;const {..._0x52a454}=_0x78447b({},$,this['_config']);this['_configService'][_0x4bce4d(0x12c)](Ue,_0x52a454);}[_0x20ffcd(0x118)](){var _0x541d34=_0x20ffcd;_0x3e2832(this[_0x541d34(0xee)],_0x360b36([[L],[m],[b],[I]],this[_0x541d34(0x87)][_0x541d34(0x85)])),_0x5b4f9e(this['_injector'],[[b]]);}[_0x20ffcd(0xfd)](){var _0x361f59=_0x20ffcd;_0x5b4f9e(this[_0x361f59(0xee)],[[I]]);}};J(O,'type',_0x38c32e[_0x20ffcd(0x127)]),J(O,'pluginName',Ze),O=Be([_0x50aa05(_0x2f65a8),F(0x1,_0x42b534(_0x59a932)),F(0x2,_0x54be48)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x19ae(){var _0x35af3a=['Button','init','sessionStatus$','has','live-share.config','get','length','_status','toString','_handleTerminate','hasOwnProperty','InsertSheetMutation','_config','5398001RvdhhY','React','7276176rkAYbH','connectInjector','rxjs','takeUntil','OFFLINE','OPERATION','_startLiveShareCoordinator','string','react','from','FOLLOWING','parse','_unitID','registerInitialStateReporter','getValue','4188096BVWRNl','onRendered','_univerInstanceService','executeCommand','IUniverInstanceService','evenodd','forwardRef','@univerjs/design','none','createInstance','params','className','UniverCollaborationClientPlugin','useEffect','registerComponent','SetWorksheetActiveOperation','UniverDesign','event$','defs','getTypeOfUnitDisposed$','_status$','NEW_CHANGESETS','useObservable','type','indexOf','url(#$1','DisposableCollection','_liveShareService','Fragment','div','sheet','button','trim','propertyIsEnumerable','xlink:href','useDependency','includes','LiveShare','univer-size-4','SessionStatus','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverLiveSharePlugin','@univerjs-pro/collaboration','LIVESHARE_FETCH_OPERATIONS','data','Start','getMemberID','current','mutations','RxDisposable','dispose$','_reporters','CommandType','You\x27re\x20not\x20following\x20the\x20presenter','map','4txzzAJ','DependentOn','prototype','rxjs/operators','jsx','Module','set','1em','amd','text','IConfigService','icon','PRESENTING','_handleNewHost','fill','startFollowing','getTypeOfUnitAdded$','registerSharedOperation','values','asObservable','merge','LiveShareCoordinator','_injector','displayName','_commandDisposable','svg','_handleNewChangeSets','Start\x20following','ONLINE','0\x200\x2017\x2017','mask','default','createElement','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','presenter','UNIVER_UNKNOWN','complete','tryStartPresenting','attrs','_startPresenting','_uiPartsService','pluginName','clear','6YQvQjU','You\x27re\x20following\x20the\x20presenter','forEach','setConfig','getCurrentTypeOfUnit$','call','SAME_OPERATION_SHARE_INTERVAL','_fetchOperations','dispose','toStringTag','LiveShareStatus','mergeOverrideWithDependencies','345482YYSEhk','unitId','stopPresenting','disposeWithMe','onCommandExecuted','stopFollowing','send','UNIVER_SHEET','not-following','UniverProLiveShare','UNIVER_LIVE_SHARE_PLUGIN','_collabSessionService','_collabSession','2113460BkxSUT','requireSession','UniverIcon','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','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','toDisposable','colorChannel1','override','useRef','Present\x20this\x20document','live-share-icon','end','replace','getInitialStates','delete','pipe','CollaborationSessionService','univerjs-icon\x20univerjs-icon-','substring','Inject','idle','DesktopLiveShareController','_configService','3567648kYozsm','LiveShareIcon','LiveShareController','LIVESHARE_OPERATION','_startFollowing','UniverSheets','getOwnPropertyDescriptor','_commandService','_handleOffline','UniverCore','stringify','touchDependencies','shouldShareOperation','defineProperty','operations','UniverSheetsUi','CollaborationEvent','543831hUIUyd','tag','Stop\x20presenting','react/jsx-runtime','path','LIVESHARE_NEW_HOST','clsx','SetScrollOperation','Disposable','getOwnPropertySymbols','LIVESHARE_TERMINATE','random','@univerjs/core','_mountLiveShare','You\x27are\x20offline.','presenting','jsxs','NOT_FOLLOWING','getLiveShareCoordinator','_init','subscribe','following','_entities','currentColor','_presenter','extend','_handleOnline','use','getUnitId','defIds','assign','throttleTime','next','_handleOperation','unsubscribe','Stop\x20following','_stopPresenting','UniverInstanceType','_beIdle','IDLE','Injector','useState','idSuffix','status$','symbol','IUIPartsService','_stopFollowing','BehaviorSubject','add','concat','entries','children','_sharedOperations','ICommandService','object'];_0x19ae=function(){return _0x35af3a;};return _0x19ae();}function _0x3e8e(_0x2d1ca7,_0x1c7b38){var _0x19aeb0=_0x19ae();return _0x3e8e=function(_0x3e8e57,_0x3ed5aa){_0x3e8e57=_0x3e8e57-0x142;var _0x38fc36=_0x19aeb0[_0x3e8e57];return _0x38fc36;},_0x3e8e(_0x2d1ca7,_0x1c7b38);}(function(_0x44ca59,_0x579029){var _0x1ed7ad=_0x3e8e,_0x42726e=_0x44ca59();while(!![]){try{var _0x144cfd=parseInt(_0x1ed7ad(0x1fe))/0x1*(-parseInt(_0x1ed7ad(0x1f2))/0x2)+-parseInt(_0x1ed7ad(0x234))/0x3+parseInt(_0x1ed7ad(0x1c7))/0x4*(parseInt(_0x1ed7ad(0x20b))/0x5)+-parseInt(_0x1ed7ad(0x190))/0x6+parseInt(_0x1ed7ad(0x17f))/0x7+parseInt(_0x1ed7ad(0x223))/0x8+parseInt(_0x1ed7ad(0x181))/0x9;if(_0x144cfd===_0x579029)break;else _0x42726e['push'](_0x42726e['shift']());}catch(_0x1e2c4a){_0x42726e['push'](_0x42726e['shift']());}}}(_0x19ae,0x82024),function(_0x97980b,_0xf898bb){var _0x511162=_0x3e8e;typeof exports==_0x511162(0x171)&&typeof module<'u'?_0xf898bb(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x511162(0x1cf)]?define(['exports',_0x511162(0x147),'@univerjs/ui',_0x511162(0x237),_0x511162(0x197),_0x511162(0x189),_0x511162(0x1ba),'@univerjs-pro/collaboration-client','@univerjs/sheets',_0x511162(0x183),_0x511162(0x1ca),'@univerjs/sheets-ui'],_0xf898bb):(_0x97980b=typeof globalThis<'u'?globalThis:_0x97980b||self,_0xf898bb(_0x97980b[_0x511162(0x207)]={},_0x97980b[_0x511162(0x22c)],_0x97980b['UniverUi'],_0x97980b[_0x511162(0x180)],_0x97980b[_0x511162(0x1a0)],_0x97980b[_0x511162(0x180)],_0x97980b['UniverProCollaboration'],_0x97980b['UniverProCollaborationClient'],_0x97980b[_0x511162(0x228)],_0x97980b[_0x511162(0x183)],_0x97980b[_0x511162(0x183)]['operators'],_0x97980b[_0x511162(0x232)]));}(this,function(_0x2ae557,_0x453450,_0x46224a,_0x5f1e5a,_0x90d784,_0x42be82,_0x266178,_0x897d58,_0x18f9b0,_0x34306b,_0x52dd43,_0x3f2a4e){'use strict';var _0x59eba7=_0x3e8e;var _0x8e8d69=Object[_0x59eba7(0x230)],_0xcebe8e=(_0x42b2ce,_0x21e70f,_0x641247)=>_0x21e70f in _0x42b2ce?_0x8e8d69(_0x42b2ce,_0x21e70f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x641247}):_0x42b2ce[_0x21e70f]=_0x641247,_0x145e3a=(_0x52571c,_0x2d6dc6,_0x570850)=>_0xcebe8e(_0x52571c,typeof _0x2d6dc6!=_0x59eba7(0x167)?_0x2d6dc6+'':_0x2d6dc6,_0x570850),_0x3dd743=function(){var _0xea2a88=_0x59eba7;return _0x3dd743=Object[_0xea2a88(0x159)]||function(_0x264d01){var _0x2f1c97=_0xea2a88;for(var _0x3ce5a3,_0x5a42ed=0x1,_0x3bb781=arguments[_0x2f1c97(0x178)];_0x5a42ed<_0x3bb781;_0x5a42ed++){_0x3ce5a3=arguments[_0x5a42ed];for(var _0x911869 in _0x3ce5a3)Object[_0x2f1c97(0x1c9)]['hasOwnProperty'][_0x2f1c97(0x1f7)](_0x3ce5a3,_0x911869)&&(_0x264d01[_0x911869]=_0x3ce5a3[_0x911869]);}return _0x264d01;},_0x3dd743['apply'](this,arguments);},_0x3665f7=function(_0xab66d7,_0x46abff){var _0x3561bb=_0x59eba7,_0x65bfff={};for(var _0x722bb6 in _0xab66d7)Object[_0x3561bb(0x1c9)][_0x3561bb(0x17c)][_0x3561bb(0x1f7)](_0xab66d7,_0x722bb6)&&_0x46abff[_0x3561bb(0x1a8)](_0x722bb6)<0x0&&(_0x65bfff[_0x722bb6]=_0xab66d7[_0x722bb6]);if(_0xab66d7!=null&&typeof Object[_0x3561bb(0x144)]=='function'){for(var _0x5b3db9=0x0,_0x722bb6=Object[_0x3561bb(0x144)](_0xab66d7);_0x5b3db9<_0x722bb6[_0x3561bb(0x178)];_0x5b3db9++)_0x46abff[_0x3561bb(0x1a8)](_0x722bb6[_0x5b3db9])<0x0&&Object[_0x3561bb(0x1c9)][_0x3561bb(0x1b1)][_0x3561bb(0x1f7)](_0xab66d7,_0x722bb6[_0x5b3db9])&&(_0x65bfff[_0x722bb6[_0x5b3db9]]=_0xab66d7[_0x722bb6[_0x5b3db9]]);}return _0x65bfff;},_0xb3725a=_0x42be82[_0x59eba7(0x196)](function(_0x48c44b,_0x425cdb){var _0x2070aa=_0x59eba7,_0x3d7d6e=_0x48c44b[_0x2070aa(0x1d2)],_0x46af5b=_0x48c44b['id'],_0x132ac1=_0x48c44b['className'],_0x1fb2f7=_0x48c44b[_0x2070aa(0x154)],_0x519b0f=_0x3665f7(_0x48c44b,['icon','id',_0x2070aa(0x19b),_0x2070aa(0x154)]),_0x5c0502=_0x2070aa(0x21d)[_0x2070aa(0x16c)](_0x46af5b,'\x20')[_0x2070aa(0x16c)](_0x132ac1||'')[_0x2070aa(0x1b0)](),_0x544232=_0x42be82['useRef']('_'['concat'](_0x4d4f4c()));return _0x2e1d42(_0x3d7d6e,''['concat'](_0x46af5b),{'defIds':_0x3d7d6e['defIds'],'idSuffix':_0x544232[_0x2070aa(0x1bf)]},_0x3dd743({'ref':_0x425cdb,'className':_0x5c0502},_0x519b0f),_0x1fb2f7);});function _0x2e1d42(_0x4b9868,_0x194787,_0x57aa54,_0x33eb0f,_0x3929fc){var _0x33bc32=_0x59eba7;return _0x42be82[_0x33bc32(0x1e7)](_0x4b9868[_0x33bc32(0x235)],_0x3dd743(_0x3dd743({'key':_0x194787},_0x4cc54a(_0x4b9868,_0x57aa54,_0x3929fc)),_0x33eb0f),(_0x4d1184(_0x4b9868,_0x57aa54)[_0x33bc32(0x16e)]||[])[_0x33bc32(0x1c6)](function(_0x452092,_0x58120d){var _0x2c620f=_0x33bc32;return _0x2e1d42(_0x452092,''[_0x2c620f(0x16c)](_0x194787,'-')['concat'](_0x4b9868['tag'],'-')[_0x2c620f(0x16c)](_0x58120d),_0x57aa54,void 0x0,_0x3929fc);}));}function _0x4cc54a(_0x200294,_0x5c1e1d,_0x3671d5){var _0x42b0f4=_0x59eba7,_0x5b83ae=_0x3dd743({},_0x200294[_0x42b0f4(0x1ed)]);_0x3671d5!=null&&_0x3671d5[_0x42b0f4(0x212)]&&_0x5b83ae['fill']===_0x42b0f4(0x212)&&(_0x5b83ae[_0x42b0f4(0x1d5)]=_0x3671d5[_0x42b0f4(0x212)]),_0x200294['tag']===_0x42b0f4(0x1e5)&&_0x5b83ae['id']&&(_0x5b83ae['id']=_0x5b83ae['id']+_0x5c1e1d[_0x42b0f4(0x165)]),Object[_0x42b0f4(0x16d)](_0x5b83ae)[_0x42b0f4(0x1f4)](function(_0xa9f10f){var _0x170041=_0x42b0f4,_0x3548ba=_0xa9f10f[0x0],_0x4d5f7d=_0xa9f10f[0x1];_0x3548ba===_0x170041(0x1e5)&&typeof _0x4d5f7d==_0x170041(0x188)&&(_0x5b83ae[_0x3548ba]=_0x4d5f7d[_0x170041(0x218)](/url\(#(.*)\)/,_0x170041(0x1a9)[_0x170041(0x16c)](_0x5c1e1d[_0x170041(0x165)],')')));});var _0xf39884=_0x5c1e1d[_0x42b0f4(0x158)];return!_0xf39884||_0xf39884[_0x42b0f4(0x178)]===0x0||(_0x200294[_0x42b0f4(0x235)]===_0x42b0f4(0x156)&&_0x5b83ae[_0x42b0f4(0x1b2)]&&(_0x5b83ae[_0x42b0f4(0x1b2)]=_0x5b83ae[_0x42b0f4(0x1b2)]+_0x5c1e1d[_0x42b0f4(0x165)]),Object[_0x42b0f4(0x16d)](_0x5b83ae)[_0x42b0f4(0x1f4)](function(_0x2763c9){var _0x251430=_0x42b0f4,_0x28e854=_0x2763c9[0x0],_0x45cf1c=_0x2763c9[0x1];typeof _0x45cf1c==_0x251430(0x188)&&(_0x5b83ae[_0x28e854]=_0x45cf1c['replace'](/url\(#(.*)\)/,_0x251430(0x1a9)['concat'](_0x5c1e1d[_0x251430(0x165)],')')));})),_0x5b83ae;}function _0x4d1184(_0x4283b7,_0xa62bf6){var _0x21a4ca=_0x59eba7,_0xfe642c,_0x3b5aaa=_0xa62bf6[_0x21a4ca(0x158)];return!_0x3b5aaa||_0x3b5aaa[_0x21a4ca(0x178)]===0x0?_0x4283b7:_0x4283b7['tag']===_0x21a4ca(0x1a2)&&(!((_0xfe642c=_0x4283b7[_0x21a4ca(0x16e)])===null||_0xfe642c===void 0x0)&&_0xfe642c[_0x21a4ca(0x178)])?_0x3dd743(_0x3dd743({},_0x4283b7),{'children':_0x4283b7[_0x21a4ca(0x16e)]['map'](function(_0x26ffb8){var _0xafa503=_0x21a4ca;return typeof _0x26ffb8[_0xafa503(0x1ed)]['id']==_0xafa503(0x188)&&_0x3b5aaa&&_0x3b5aaa[_0xafa503(0x1b4)](_0x26ffb8['attrs']['id'])?_0x3dd743(_0x3dd743({},_0x26ffb8),{'attrs':_0x3dd743(_0x3dd743({},_0x26ffb8[_0xafa503(0x1ed)]),{'id':_0x26ffb8[_0xafa503(0x1ed)]['id']+_0xa62bf6['idSuffix']})}):_0x26ffb8;})}):_0x4283b7;}function _0x4d4f4c(){var _0xb8223d=_0x59eba7;return Math[_0xb8223d(0x146)]()[_0xb8223d(0x17a)](0x24)[_0xb8223d(0x21e)](0x2,0x8);}_0xb3725a[_0x59eba7(0x1de)]=_0x59eba7(0x20d);var _0xb85c0c={'tag':_0x59eba7(0x1e0),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x59eba7(0x198),'viewBox':_0x59eba7(0x1e4),'width':_0x59eba7(0x1ce),'height':'1em'},'children':[{'tag':_0x59eba7(0x238),'attrs':{'fill':_0x59eba7(0x152),'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':_0x59eba7(0x238),'attrs':{'fill':_0x59eba7(0x152),'d':_0x59eba7(0x210),'fillRule':_0x59eba7(0x195),'clipRule':_0x59eba7(0x195)}}]},_0x208bcc=_0x42be82[_0x59eba7(0x196)](function(_0x461a7d,_0x47a128){var _0x13afc2=_0x59eba7;return _0x42be82[_0x13afc2(0x1e7)](_0xb3725a,Object[_0x13afc2(0x159)]({},_0x461a7d,{'id':_0x13afc2(0x216),'ref':_0x47a128,'icon':_0xb85c0c}));});_0x208bcc[_0x59eba7(0x1de)]=_0x59eba7(0x224);class _0x2db617 extends _0x453450['Disposable']{constructor(){var _0x57c1e0=_0x59eba7;super(...arguments),_0x145e3a(this,_0x57c1e0(0x16f),new Set()),_0x145e3a(this,_0x57c1e0(0x1c3),new Set());}[_0x59eba7(0x1d8)](_0x599083){var _0x1f47c2=_0x59eba7;return this[_0x1f47c2(0x16f)][_0x1f47c2(0x16b)](_0x599083),_0x453450['toDisposable'](()=>this[_0x1f47c2(0x16f)][_0x1f47c2(0x21a)](_0x599083));}[_0x59eba7(0x18e)](_0x39aee2){var _0x5dd02b=_0x59eba7;return this[_0x5dd02b(0x1c3)]['add'](_0x39aee2),_0x453450[_0x5dd02b(0x211)](()=>this[_0x5dd02b(0x1c3)][_0x5dd02b(0x21a)](_0x39aee2));}[_0x59eba7(0x22f)](_0x58d4cd){var _0x5f13df=_0x59eba7;return this[_0x5f13df(0x16f)][_0x5f13df(0x175)](_0x58d4cd);}[_0x59eba7(0x219)](_0x49c4bf){var _0x4b4a1d=_0x59eba7;return Array[_0x4b4a1d(0x18a)](this[_0x4b4a1d(0x1c3)])['map'](_0x37b91f=>_0x37b91f(_0x49c4bf));}}var _0x2b3cb6=Object[_0x59eba7(0x229)],_0x20b616=(_0x264375,_0x3e31a7,_0x46e5f3,_0x307d3a)=>{var _0x2e39fc=_0x59eba7;for(var _0x58ebbb=_0x307d3a>0x1?void 0x0:_0x307d3a?_0x2b3cb6(_0x3e31a7,_0x46e5f3):_0x3e31a7,_0x5c6d81=_0x264375[_0x2e39fc(0x178)]-0x1,_0xbb79b1;_0x5c6d81>=0x0;_0x5c6d81--)(_0xbb79b1=_0x264375[_0x5c6d81])&&(_0x58ebbb=_0xbb79b1(_0x58ebbb)||_0x58ebbb);return _0x58ebbb;},_0x226670=(_0xce1c18,_0x9efd62)=>(_0x4fadd9,_0x366aba)=>_0x9efd62(_0x4fadd9,_0x366aba,_0xce1c18);_0x2ae557['LiveShareController']=class extends _0x453450[_0x59eba7(0x1c1)]{constructor(_0x5e0f7a,_0x4d057c,_0x497419){var _0x293b85=_0x59eba7;super(),_0x145e3a(this,_0x293b85(0x151),new Map()),(this[_0x293b85(0x192)]=_0x5e0f7a,this[_0x293b85(0x1dd)]=_0x4d057c,this[_0x293b85(0x209)]=_0x497419,this[_0x293b85(0x14e)]());}async[_0x59eba7(0x14d)](_0x4cdb15){var _0x44dcdd=_0x59eba7;return this['_entities']['has'](_0x4cdb15)||await this[_0x44dcdd(0x187)](_0x4cdb15),this[_0x44dcdd(0x151)]['get'](_0x4cdb15);}[_0x59eba7(0x14e)](){var _0x17cea1=_0x59eba7;this[_0x17cea1(0x192)][_0x17cea1(0x1d7)](_0x453450[_0x17cea1(0x160)]['UNIVER_SHEET'])['pipe'](_0x52dd43[_0x17cea1(0x184)](this[_0x17cea1(0x1c2)]))[_0x17cea1(0x14f)](async _0x1de0b3=>{var _0x4abecc=_0x17cea1;const _0x325fa3=_0x1de0b3['getUnitId']();this[_0x4abecc(0x151)][_0x4abecc(0x175)](_0x325fa3)||this[_0x4abecc(0x187)](_0x325fa3);}),this[_0x17cea1(0x192)][_0x17cea1(0x1a3)](_0x453450[_0x17cea1(0x160)][_0x17cea1(0x205)])[_0x17cea1(0x21b)](_0x52dd43['takeUntil'](this[_0x17cea1(0x1c2)]))['subscribe'](_0x4a6dde=>{var _0x2d53e2=_0x17cea1;const _0x3192ed=_0x4a6dde[_0x2d53e2(0x157)](),_0x25bdfa=this[_0x2d53e2(0x151)]['get'](_0x3192ed);_0x25bdfa==null||_0x25bdfa[_0x2d53e2(0x1fa)]();});}async['_startLiveShareCoordinator'](_0x5b869f){var _0x49e530=_0x59eba7;const _0xbe3818=await this['_collabSessionService'][_0x49e530(0x20c)](_0x5b869f),_0x2e2e15=this[_0x49e530(0x1dd)][_0x49e530(0x199)](_0x2ae557[_0x49e530(0x1dc)],_0x5b869f,_0xbe3818);return _0x2e2e15[_0x49e530(0x173)](),this[_0x49e530(0x151)][_0x49e530(0x1cd)](_0x5b869f,_0x2e2e15),_0x2e2e15;}},_0x2ae557[_0x59eba7(0x225)]=_0x20b616([_0x226670(0x0,_0x453450[_0x59eba7(0x194)]),_0x226670(0x1,_0x453450[_0x59eba7(0x21f)](_0x453450['Injector'])),_0x226670(0x2,_0x453450[_0x59eba7(0x21f)](_0x897d58[_0x59eba7(0x21c)]))],_0x2ae557[_0x59eba7(0x225)]);var _0x2b7454=(_0x1199b8=>(_0x1199b8[_0x59eba7(0x185)]=_0x59eba7(0x20e),_0x1199b8[_0x59eba7(0x162)]=_0x59eba7(0x220),_0x1199b8[_0x59eba7(0x18b)]=_0x59eba7(0x150),_0x1199b8['NOT_FOLLOWING']=_0x59eba7(0x206),_0x1199b8[_0x59eba7(0x1d3)]='presenting',_0x1199b8))(_0x2b7454||{});const _0x17b247=_0x59eba7(0x1f8),_0x59b40e=0xc8;_0x2ae557[_0x59eba7(0x1dc)]=class extends _0x453450[_0x59eba7(0x1c1)]{constructor(_0x203a07,_0x291b5a,_0x7ed705,_0x46e12d,_0x5275c9){var _0x1f1e53=_0x59eba7;super(),_0x145e3a(this,'_status$',new _0x34306b[(_0x1f1e53(0x16a))](_0x1f1e53(0x220))),_0x145e3a(this,_0x1f1e53(0x166),this[_0x1f1e53(0x1a4)][_0x1f1e53(0x1da)]()),_0x145e3a(this,_0x1f1e53(0x14e),!0x1),_0x145e3a(this,'_commandDisposable',null),_0x145e3a(this,_0x1f1e53(0x153),null),(this[_0x1f1e53(0x18d)]=_0x203a07,this['_collabSession']=_0x291b5a,this[_0x1f1e53(0x222)]=_0x7ed705,this[_0x1f1e53(0x1ab)]=_0x46e12d,this['_commandService']=_0x5275c9);}get[_0x59eba7(0x179)](){var _0x45a363=_0x59eba7;return this[_0x45a363(0x1a4)][_0x45a363(0x18f)]();}[_0x59eba7(0x1fa)](){var _0x415b3f=_0x59eba7,_0x573318;(_0x573318=this[_0x415b3f(0x1df)])==null||_0x573318[_0x415b3f(0x1fa)](),this['_status$']['next'](_0x415b3f(0x220)),this['_status$']['complete']();}[_0x59eba7(0x173)](){var _0x33b142=_0x59eba7;this[_0x33b142(0x14e)]||(this[_0x33b142(0x14e)]=!0x0,this[_0x33b142(0x20a)][_0x33b142(0x174)]['pipe'](_0x52dd43[_0x33b142(0x184)](this[_0x33b142(0x1c2)]))['subscribe'](_0x6178e1=>{var _0x247171=_0x33b142;switch(_0x6178e1){case _0x897d58[_0x247171(0x1b7)]['OFFLINE']:this[_0x247171(0x22b)]();break;case _0x897d58['SessionStatus'][_0x247171(0x1e3)]:this[_0x247171(0x155)]();break;}}),this['_collabSession'][_0x33b142(0x1a1)][_0x33b142(0x21b)](_0x52dd43[_0x33b142(0x184)](this[_0x33b142(0x1c2)]))[_0x33b142(0x14f)](_0x2116de=>{var _0x55bab8=_0x33b142;const {eventID:_0x110016}=_0x2116de;switch(_0x110016){case _0x266178['CollaborationEvent'][_0x55bab8(0x239)]:this[_0x55bab8(0x1d4)](_0x2116de);break;case _0x266178[_0x55bab8(0x233)][_0x55bab8(0x226)]:this[_0x55bab8(0x15c)](_0x2116de);break;case _0x266178[_0x55bab8(0x233)]['LIVESHARE_TERMINATE']:this[_0x55bab8(0x17b)]();break;case _0x266178[_0x55bab8(0x233)][_0x55bab8(0x1a5)]:this['_handleNewChangeSets'](_0x2116de);break;}}));}[_0x59eba7(0x1ec)](){var _0x15b065=_0x59eba7;this[_0x15b065(0x20a)]['send']({'eventID':_0x266178[_0x15b065(0x233)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x15b065(0x20a)][_0x15b065(0x1be)]()}},this['_unitID']);}[_0x59eba7(0x200)](){var _0x5bee0e=_0x59eba7;this[_0x5bee0e(0x179)]==='presenting'&&(this[_0x5bee0e(0x1a4)]['next'](_0x5bee0e(0x220)),this[_0x5bee0e(0x20a)][_0x5bee0e(0x204)]({'eventID':_0x266178['CollaborationEvent'][_0x5bee0e(0x145)],'data':{'unitID':this[_0x5bee0e(0x18d)]}},this[_0x5bee0e(0x18d)]));}[_0x59eba7(0x1d6)](){var _0x5d8c4b=_0x59eba7;this['_status']==='not-following'&&(this[_0x5d8c4b(0x1a4)][_0x5d8c4b(0x15b)](_0x5d8c4b(0x150)),this[_0x5d8c4b(0x227)]());}['stopFollowing'](){var _0x130d79=_0x59eba7;this[_0x130d79(0x179)]===_0x130d79(0x150)&&this[_0x130d79(0x169)]();}[_0x59eba7(0x1d4)](_0x4d4009){var _0x2907a7=_0x59eba7;const {presenter:_0x3d4931}=_0x4d4009[_0x2907a7(0x1bc)],_0x257d6f=this[_0x2907a7(0x20a)]['getMemberID']();this[_0x2907a7(0x153)]=_0x3d4931,_0x3d4931===_0x257d6f?(this[_0x2907a7(0x169)](),this[_0x2907a7(0x1ee)]()):this['_status']!==_0x2907a7(0x206)&&(this[_0x2907a7(0x15f)](),this['_startFollowing']());}[_0x59eba7(0x1f9)](){var _0x2b4411=_0x59eba7;const _0x4c11bd={'eventID':_0x266178[_0x2b4411(0x233)][_0x2b4411(0x1bb)]};this['_collabSession'][_0x2b4411(0x204)](_0x4c11bd,this[_0x2b4411(0x18d)]);}[_0x59eba7(0x17b)](){var _0x340b08=_0x59eba7;this['_presenter']=null,this[_0x340b08(0x179)]!==_0x340b08(0x14a)&&this[_0x340b08(0x161)]();}[_0x59eba7(0x1e1)](_0x4d54e5){var _0x252c18=_0x59eba7;if(this[_0x252c18(0x179)]===_0x252c18(0x150)&&this[_0x252c18(0x153)]===_0x4d54e5[_0x252c18(0x1bc)]['memberID']){const _0x221230=_0x266178['parseProtocolChangeset'](_0x4d54e5[_0x252c18(0x1bc)])[_0x252c18(0x1c0)]['reverse']()['find'](_0x14e53b=>_0x14e53b['id']===_0x18f9b0[_0x252c18(0x17d)]['id']);if(_0x221230){const _0x2a120b=_0x221230[_0x252c18(0x19a)][_0x252c18(0x1ff)],_0x5f0d90=_0x221230[_0x252c18(0x19a)][_0x252c18(0x1ae)]['id'];setTimeout(()=>{var _0x2d1483=_0x252c18;this[_0x2d1483(0x22a)][_0x2d1483(0x193)](_0x18f9b0[_0x2d1483(0x19f)]['id'],{'unitId':_0x2a120b,'subUnitId':_0x5f0d90},{'fromCollab':!0x0});});}}}[_0x59eba7(0x1ee)](){var _0x460f3c=_0x59eba7;this[_0x460f3c(0x1a4)][_0x460f3c(0x15b)](_0x460f3c(0x14a));const _0xd7fc47=new Map(),_0x28022d=this[_0x460f3c(0x1df)]=new _0x453450[(_0x460f3c(0x1aa))]();_0x28022d[_0x460f3c(0x16b)](_0x453450[_0x460f3c(0x211)](()=>{var _0x24eca8=_0x460f3c;_0xd7fc47[_0x24eca8(0x1f4)](_0x286bc3=>_0x286bc3[_0x24eca8(0x1eb)]()),_0xd7fc47[_0x24eca8(0x1f1)]();})),_0x28022d['add'](this[_0x460f3c(0x22a)][_0x460f3c(0x202)](_0x44b943=>{var _0x1f6c46=_0x460f3c,_0x2a85b5;if(_0x44b943[_0x1f6c46(0x1a7)]!==_0x453450[_0x1f6c46(0x1c4)][_0x1f6c46(0x186)]||!this[_0x1f6c46(0x1ab)]['shouldShareOperation'](_0x44b943['id']))return;const {id:_0x55a08e}=_0x44b943;let _0x1a551a;_0xd7fc47[_0x1f6c46(0x175)](_0x55a08e)?_0x1a551a=_0xd7fc47[_0x1f6c46(0x177)](_0x55a08e):(_0x1a551a=new _0x34306b['Subject'](),_0xd7fc47['set'](_0x55a08e,_0x1a551a),_0x1a551a[_0x1f6c46(0x21b)](_0x52dd43[_0x1f6c46(0x15a)]((_0x2a85b5=this[_0x1f6c46(0x222)]['getConfig'](_0x17b247))!=null?_0x2a85b5:_0x59b40e,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1f6c46(0x14f)](_0x22d03e=>{var _0x52138a=_0x1f6c46;this[_0x52138a(0x20a)][_0x52138a(0x204)]({'eventID':_0x266178[_0x52138a(0x233)][_0x52138a(0x226)],'data':{'unitID':this[_0x52138a(0x18d)],'operations':{[_0x22d03e['id']]:{'id':_0x22d03e['id'],'params':JSON[_0x52138a(0x22d)](_0x22d03e[_0x52138a(0x19a)])}}}},this[_0x52138a(0x18d)]);})),_0x1a551a['next'](_0x44b943);})),this['_liveShareService']['getInitialStates'](this[_0x460f3c(0x18d)])[_0x460f3c(0x1f4)](_0x5429a7=>this['_collabSession'][_0x460f3c(0x204)]({'eventID':_0x266178[_0x460f3c(0x233)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x5429a7['id']]:{'id':_0x5429a7['id'],'params':JSON[_0x460f3c(0x22d)](_0x5429a7[_0x460f3c(0x19a)])}}}},this[_0x460f3c(0x18d)]));}[_0x59eba7(0x15f)](){var _0x15fb2b=_0x59eba7,_0x529a6a;this[_0x15fb2b(0x1a4)]['next'](_0x15fb2b(0x220)),(_0x529a6a=this['_commandDisposable'])==null||_0x529a6a[_0x15fb2b(0x1fa)](),this[_0x15fb2b(0x1df)]=null;}[_0x59eba7(0x227)](){var _0x389306=_0x59eba7,_0x223ef2;(_0x223ef2=this['_commandDisposable'])==null||_0x223ef2[_0x389306(0x1fa)](),this['_status$'][_0x389306(0x15b)](_0x389306(0x150));}[_0x59eba7(0x161)](){var _0x4dc107=_0x59eba7,_0x273ce5;this[_0x4dc107(0x1a4)]['next']('idle'),(_0x273ce5=this[_0x4dc107(0x1df)])==null||_0x273ce5[_0x4dc107(0x1fa)](),this[_0x4dc107(0x1df)]=null;}[_0x59eba7(0x169)](){var _0x429d74=_0x59eba7,_0x471d2a;this[_0x429d74(0x1a4)]['next'](_0x429d74(0x206)),(_0x471d2a=this[_0x429d74(0x1df)])==null||_0x471d2a[_0x429d74(0x1fa)]();}[_0x59eba7(0x15c)](_0x419be1){var _0x305687=_0x59eba7;if([_0x305687(0x14a),_0x305687(0x206),'offline']['includes'](this[_0x305687(0x179)])||!_0x419be1['data'][_0x305687(0x1e9)]||_0x419be1['data'][_0x305687(0x1e9)]===this[_0x305687(0x20a)][_0x305687(0x1be)]())return;this[_0x305687(0x179)]===_0x305687(0x220)&&this[_0x305687(0x227)]();const _0x52d922=_0x419be1[_0x305687(0x1bc)][_0x305687(0x231)];Object[_0x305687(0x1d9)](_0x52d922)[_0x305687(0x1f4)](_0xf94cca=>{var _0x1ac69a=_0x305687;this[_0x1ac69a(0x22a)][_0x1ac69a(0x193)](_0xf94cca['id'],_0xf94cca[_0x1ac69a(0x19a)]?JSON[_0x1ac69a(0x18c)](_0xf94cca['params']):null,{'fromCollab':!0x0});});}[_0x59eba7(0x22b)](){var _0x5a977c=_0x59eba7,_0x34179a;this['_status$'][_0x5a977c(0x15b)]('offline'),(_0x34179a=this['_commandDisposable'])==null||_0x34179a['dispose']();}['_handleOnline'](){var _0x39474c=_0x59eba7;this[_0x39474c(0x1a4)][_0x39474c(0x15b)]('idle'),this[_0x39474c(0x1f9)]();}},_0x2ae557['LiveShareCoordinator']=_0x20b616([_0x226670(0x2,_0x453450[_0x59eba7(0x1d1)]),_0x226670(0x3,_0x453450[_0x59eba7(0x21f)](_0x2db617)),_0x226670(0x4,_0x453450[_0x59eba7(0x170)])],_0x2ae557[_0x59eba7(0x1dc)]);function _0x576f4c(){var _0x55c019=_0x59eba7;const _0x330ea3=_0x46224a[_0x55c019(0x1b3)](_0x2ae557[_0x55c019(0x225)]),_0x9e6351=_0x46224a['useDependency'](_0x453450[_0x55c019(0x194)]),_0x11d36c=_0x46224a[_0x55c019(0x1a6)](()=>_0x9e6351[_0x55c019(0x1f6)](_0x453450[_0x55c019(0x160)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0xc1c37b,_0x45f250]=_0x42be82[_0x55c019(0x164)](null),[_0x523e0,_0x484d87]=_0x42be82['useState'](_0x2b7454[_0x55c019(0x162)]),_0x4a2ff6=_0x42be82[_0x55c019(0x214)](null);return _0x42be82[_0x55c019(0x19d)](()=>(_0x11d36c&&_0x330ea3[_0x55c019(0x14d)](_0x11d36c[_0x55c019(0x157)]())['then'](_0x1e598d=>{var _0x22b2cc=_0x55c019;_0x45f250(_0x1e598d),_0x4a2ff6[_0x22b2cc(0x1bf)]=_0x1e598d['status$'][_0x22b2cc(0x14f)](_0xfd1c01=>{_0x484d87(_0xfd1c01);});}),()=>{var _0x364279=_0x55c019,_0x20e24d;(_0x20e24d=_0x4a2ff6['current'])==null||_0x20e24d[_0x364279(0x15d)](),_0x4a2ff6[_0x364279(0x1bf)]=null;}),[_0x11d36c,_0x330ea3]),_0xc1c37b?_0x5f1e5a[_0x55c019(0x1cb)](_0x90d784['Dropdown'],{'align':_0x55c019(0x217),'disabled':_0x523e0===_0x2b7454['OFFLINE'],'className':_0x55c019(0x20f),'overlay':_0x5f1e5a[_0x55c019(0x1cb)](_0x10f251,{'status':_0x523e0,'coordinator':_0xc1c37b}),'children':_0x5f1e5a[_0x55c019(0x1cb)](_0x55c019(0x1af),{'className':_0x90d784[_0x55c019(0x23a)](_0x55c019(0x1e8),{'univer-cursor-not-allowed':_0x523e0===_0x2b7454[_0x55c019(0x185)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x523e0!==_0x2b7454['OFFLINE']}),'type':_0x55c019(0x1af),'children':_0x5f1e5a[_0x55c019(0x1cb)](_0x208bcc,{'className':_0x55c019(0x1b6)})})}):null;}function _0x10f251(_0x5b5b25){var _0x326cdc=_0x59eba7;const {status:_0x418c8e,coordinator:_0x3dfe45}=_0x5b5b25;switch(_0x418c8e){case _0x2b7454[_0x326cdc(0x162)]:return _0x5f1e5a['jsx'](_0x11d805,{'coordinator':_0x3dfe45});case _0x2b7454[_0x326cdc(0x18b)]:return _0x5f1e5a[_0x326cdc(0x1cb)](_0x584035,{'coordinator':_0x3dfe45});case _0x2b7454[_0x326cdc(0x14c)]:return _0x5f1e5a[_0x326cdc(0x1cb)](_0x218bae,{'coordinator':_0x3dfe45});case _0x2b7454[_0x326cdc(0x185)]:return _0x5f1e5a[_0x326cdc(0x1cb)](_0x170ddf,{});case _0x2b7454[_0x326cdc(0x1d3)]:return _0x5f1e5a[_0x326cdc(0x1cb)](_0x49cc7c,{'coordinator':_0x3dfe45});default:return null;}}function _0x11d805(_0x34525d){var _0x834960=_0x59eba7;const {coordinator:_0x549644}=_0x34525d;return _0x5f1e5a[_0x834960(0x14b)](_0x5f1e5a[_0x834960(0x1ac)],{'children':[_0x5f1e5a['jsx'](_0x834960(0x1ad),{'className':_0x834960(0x1b8),'children':_0x834960(0x215)}),_0x5f1e5a[_0x834960(0x1cb)](_0x90d784[_0x834960(0x172)],{'onClick':()=>_0x549644[_0x834960(0x1ec)](),'children':_0x834960(0x1bd)})]});}function _0x584035(_0x15617d){var _0xf8b6b4=_0x59eba7;const {coordinator:_0x5a491d}=_0x15617d;return _0x5f1e5a[_0xf8b6b4(0x14b)](_0x5f1e5a[_0xf8b6b4(0x1ac)],{'children':[_0x5f1e5a[_0xf8b6b4(0x1cb)](_0xf8b6b4(0x1ad),{'className':_0xf8b6b4(0x1b8),'children':_0xf8b6b4(0x1f3)}),_0x5f1e5a[_0xf8b6b4(0x1cb)](_0x90d784[_0xf8b6b4(0x172)],{'onClick':()=>_0x5a491d[_0xf8b6b4(0x203)](),'children':_0xf8b6b4(0x15e)})]});}function _0x218bae(_0x136442){var _0x307420=_0x59eba7;const {coordinator:_0x41e6fc}=_0x136442;return _0x5f1e5a[_0x307420(0x14b)](_0x5f1e5a[_0x307420(0x1ac)],{'children':[_0x5f1e5a[_0x307420(0x1cb)](_0x307420(0x1ad),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x307420(0x1c5)}),_0x5f1e5a[_0x307420(0x1cb)](_0x90d784[_0x307420(0x172)],{'variant':_0x307420(0x1d0),'onClick':()=>_0x41e6fc[_0x307420(0x1d6)](),'children':_0x307420(0x1e2)})]});}function _0x49cc7c(_0x20a8ee){var _0x1c9736=_0x59eba7;const {coordinator:_0x3aadce}=_0x20a8ee;return _0x5f1e5a[_0x1c9736(0x14b)](_0x5f1e5a['Fragment'],{'children':[_0x5f1e5a['jsx']('div',{'className':_0x1c9736(0x1b8),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x5f1e5a['jsx'](_0x90d784[_0x1c9736(0x172)],{'variant':_0x1c9736(0x1e6),'onClick':()=>_0x3aadce[_0x1c9736(0x200)](),'children':_0x1c9736(0x236)})]});}function _0x170ddf(){var _0x432010=_0x59eba7;return _0x5f1e5a[_0x432010(0x1cb)](_0x5f1e5a[_0x432010(0x1ac)],{'children':_0x432010(0x149)});}var _0x2ed600=Object[_0x59eba7(0x229)],_0x356d3d=(_0x48af8d,_0x584a48,_0x76de00,_0x176536)=>{var _0x5b0a87=_0x59eba7;for(var _0x1e567d=_0x176536>0x1?void 0x0:_0x176536?_0x2ed600(_0x584a48,_0x76de00):_0x584a48,_0x4dcb65=_0x48af8d[_0x5b0a87(0x178)]-0x1,_0x2c5957;_0x4dcb65>=0x0;_0x4dcb65--)(_0x2c5957=_0x48af8d[_0x4dcb65])&&(_0x1e567d=_0x2c5957(_0x1e567d)||_0x1e567d);return _0x1e567d;},_0x3c8d52=(_0x4fa229,_0x57ecfe)=>(_0x6f93dd,_0x4185e9)=>_0x57ecfe(_0x6f93dd,_0x4185e9,_0x4fa229);_0x2ae557[_0x59eba7(0x221)]=class extends _0x453450[_0x59eba7(0x143)]{constructor(_0x4d9fee,_0x5ecda7){var _0x1c590e=_0x59eba7;super(),this[_0x1c590e(0x1dd)]=_0x4d9fee,this['_uiPartsService']=_0x5ecda7,this['_mountLiveShare']();}[_0x59eba7(0x148)](){var _0x576c1a=_0x59eba7;this[_0x576c1a(0x201)](this[_0x576c1a(0x1ef)][_0x576c1a(0x19e)](_0x46224a['BuiltInUIPart']['HEADER_MENU'],()=>_0x46224a[_0x576c1a(0x182)](_0x576f4c,this[_0x576c1a(0x1dd)])));}},_0x2ae557[_0x59eba7(0x221)]=_0x356d3d([_0x3c8d52(0x0,_0x453450['Inject'](_0x453450[_0x59eba7(0x163)])),_0x3c8d52(0x1,_0x46224a[_0x59eba7(0x168)])],_0x2ae557[_0x59eba7(0x221)]);const _0x13a3e2=_0x59eba7(0x176),_0x3ad231={};var _0x661db5=Object[_0x59eba7(0x229)],_0x2a419c=(_0x33c007,_0x4ff1ce,_0x31b6be,_0x3bae2a)=>{var _0x4ec69e=_0x59eba7;for(var _0x271533=_0x3bae2a>0x1?void 0x0:_0x3bae2a?_0x661db5(_0x4ff1ce,_0x31b6be):_0x4ff1ce,_0x2978aa=_0x33c007[_0x4ec69e(0x178)]-0x1,_0x287cc3;_0x2978aa>=0x0;_0x2978aa--)(_0x287cc3=_0x33c007[_0x2978aa])&&(_0x271533=_0x287cc3(_0x271533)||_0x271533);return _0x271533;},_0x4f0f25=(_0x2b7c62,_0x31c1d8)=>(_0x1548a6,_0x426035)=>_0x31c1d8(_0x1548a6,_0x426035,_0x2b7c62);let _0x3368c1=class extends _0x453450['Disposable']{constructor(_0x31836c){var _0x1181e7=_0x59eba7;super(),this[_0x1181e7(0x1ab)]=_0x31836c,this[_0x1181e7(0x14e)]();}[_0x59eba7(0x14e)](){var _0xaf79bf=_0x59eba7;[_0x3f2a4e['SetZoomRatioOperation']['id'],_0x3f2a4e[_0xaf79bf(0x142)]['id'],_0x18f9b0[_0xaf79bf(0x19f)]['id']][_0xaf79bf(0x1f4)](_0x22fb79=>{var _0x10cc9c=_0xaf79bf;this['disposeWithMe'](this[_0x10cc9c(0x1ab)][_0x10cc9c(0x1d8)](_0x22fb79));});}};_0x3368c1=_0x2a419c([_0x4f0f25(0x0,_0x453450[_0x59eba7(0x21f)](_0x2db617))],_0x3368c1);var _0x1d784d=Object[_0x59eba7(0x230)],_0x4f4f85=Object[_0x59eba7(0x229)],_0x101da5=(_0x1edf38,_0x29344d,_0x237105)=>_0x29344d in _0x1edf38?_0x1d784d(_0x1edf38,_0x29344d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x237105}):_0x1edf38[_0x29344d]=_0x237105,_0x5ee6d4=(_0x2708e9,_0x53c398,_0x1b70f7,_0x47a112)=>{var _0x4cdec4=_0x59eba7;for(var _0x20b0c6=_0x47a112>0x1?void 0x0:_0x47a112?_0x4f4f85(_0x53c398,_0x1b70f7):_0x53c398,_0x1bcf90=_0x2708e9[_0x4cdec4(0x178)]-0x1,_0x5d9042;_0x1bcf90>=0x0;_0x1bcf90--)(_0x5d9042=_0x2708e9[_0x1bcf90])&&(_0x20b0c6=_0x5d9042(_0x20b0c6)||_0x20b0c6);return _0x20b0c6;},_0x26912a=(_0x4851a4,_0x31208f)=>(_0x2b76d1,_0x137581)=>_0x31208f(_0x2b76d1,_0x137581,_0x4851a4),_0x3b8542=(_0x1590a2,_0x57453e,_0x10dce8)=>_0x101da5(_0x1590a2,typeof _0x57453e!=_0x59eba7(0x167)?_0x57453e+'':_0x57453e,_0x10dce8);const _0x3ccfc2=_0x59eba7(0x208);_0x2ae557[_0x59eba7(0x1b9)]=class extends _0x453450['Plugin']{constructor(_0x304a88=_0x3ad231,_0x461729,_0x17f835){var _0x90729a=_0x59eba7;super(),this[_0x90729a(0x17e)]=_0x304a88,this[_0x90729a(0x1dd)]=_0x461729,this[_0x90729a(0x222)]=_0x17f835;const {..._0x4d76c8}=_0x453450[_0x90729a(0x1db)]({},_0x3ad231,this[_0x90729a(0x17e)]);this[_0x90729a(0x222)][_0x90729a(0x1f5)](_0x13a3e2,_0x4d76c8);}['onStarting'](){var _0x56a32f=_0x59eba7;_0x453450['registerDependencies'](this[_0x56a32f(0x1dd)],_0x453450[_0x56a32f(0x1fd)]([[_0x2db617],[_0x2ae557[_0x56a32f(0x225)]],[_0x3368c1],[_0x2ae557[_0x56a32f(0x221)]]],this[_0x56a32f(0x17e)][_0x56a32f(0x213)])),_0x453450['touchDependencies'](this['_injector'],[[_0x3368c1]]);}[_0x59eba7(0x191)](){var _0x3815c5=_0x59eba7;_0x453450[_0x3815c5(0x22e)](this[_0x3815c5(0x1dd)],[[_0x2ae557[_0x3815c5(0x221)]]]);}},_0x3b8542(_0x2ae557[_0x59eba7(0x1b9)],'type',_0x453450['UniverInstanceType'][_0x59eba7(0x1ea)]),_0x3b8542(_0x2ae557[_0x59eba7(0x1b9)],_0x59eba7(0x1f0),_0x3ccfc2),_0x2ae557[_0x59eba7(0x1b9)]=_0x5ee6d4([_0x453450[_0x59eba7(0x1c8)](_0x897d58[_0x59eba7(0x19c)]),_0x26912a(0x1,_0x453450['Inject'](_0x453450['Injector'])),_0x26912a(0x2,_0x453450['IConfigService'])],_0x2ae557[_0x59eba7(0x1b9)]),_0x2ae557[_0x59eba7(0x1b5)]=_0x576f4c,_0x2ae557['LiveShareService']=_0x2db617,_0x2ae557[_0x59eba7(0x1fc)]=_0x2b7454,Object['defineProperty'](_0x2ae557,Symbol[_0x59eba7(0x1fb)],{'value':_0x59eba7(0x1cc)});}));
|
|
1
|
+
function _0x38bd(){var _0x5a0406=['propertyIsEnumerable','idSuffix','DesktopLiveShareController','InsertSheetMutation','UniverUi','Inject','ONLINE','toStringTag','params','HEADER_MENU','1em','2503627PJoEXv','univerjs-icon\x20univerjs-icon-','DisposableCollection','following','send','useObservable','_startFollowing','LIVESHARE_NEW_HOST','defineProperty','LiveShareIcon','You\x27re\x20following\x20the\x20presenter','useRef','presenter','IUniverInstanceService','evenodd','currentColor','default','toDisposable','offline','IDLE','data','LIVESHARE_TERMINATE','concat','colorChannel1','createElement','complete','dispose','50841624jesVaJ','PRESENTING','@univerjs/sheets','setConfig','http://www.w3.org/2000/svg','getOwnPropertyDescriptor','LiveShareStatus','LiveShare','indexOf','react/jsx-runtime','_unitID','current','substring','You\x27re\x20presenting\x20the\x20document','DependentOn','useEffect','UniverProCollaborationClient','Plugin','function','xlink:href','event$','IUIPartsService','BuiltInUIPart','tag','add','mask','registerSharedOperation','_configService','LiveShareService','_liveShareService','React','from','find','assign','OFFLINE','clsx','_collabSessionService','SetZoomRatioOperation','2rCuiqS','throttleTime','_collabSession','icon','_startPresenting','@univerjs/core','_sharedOperations','_status$','_fetchOperations','symbol','pluginName','subscribe','operators','type','9zODHkG','stopFollowing','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverProLiveShare','getTypeOfUnitDisposed$','div','attrs','extend','not-following','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getOwnPropertySymbols','UniverLiveSharePlugin','pipe','LiveShareController','LiveShareCoordinator','Fragment','Subject','reverse','dispose$','stopPresenting','11bmnsod','Module','RxDisposable','_handleOnline','4ZJkEaV','idle','jsxs','connectInjector','has','Disposable','delete','_stopFollowing','_handleTerminate','requireSession','Start\x20following','@univerjs/ui','0\x200\x2017\x2017','stringify','_commandDisposable','_univerInstanceService','BehaviorSubject','forEach','UniverSheetsUi','250156TQSvgT','3852265pOyzmc','react','none','displayName','includes','_injector','_reporters','_mountLiveShare','startFollowing','UniverProCollaboration','ICommandService','toString','onCommandExecuted','_presenter','text','forwardRef','_beIdle','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','NOT_FOLLOWING','UNIVER_SHEET','asObservable','LIVESHARE_OPERATION','prototype','IConfigService','svg','amd','takeUntil','_config','path','rxjs','getConfig','getMemberID','next','createInstance','CommandType','registerInitialStateReporter','UNIVER_LIVE_SHARE_PLUGIN','trim','Button','then','CollaborationEvent','map','call','clear','entries','SessionStatus','merge','getTypeOfUnitAdded$','UniverInstanceType','string','3336730JMyZBn','@univerjs-pro/collaboration-client','hasOwnProperty','sheet','UniverIcon','7605336CjHLNy','useState','get','replace','object','status$','init','values','className','unitId','UniverSheets','live-share.config','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','rxjs/operators','You\x27re\x20not\x20following\x20the\x20presenter','jsx','6VzYWVz','@univerjs-pro/collaboration','getUnitId','OPERATION','LIVESHARE_REQUEST_HOST','_uiPartsService','exports','presenting','CollaborationSessionService','onRendered','UNIVER_UNKNOWN','live-share-icon','univer-size-4','_commandService','length','1774959YzPevq','parseProtocolChangeset','_stopPresenting','use','Present\x20this\x20document','apply','registerDependencies','Dropdown','_entities','url(#$1','set','useDependency','unsubscribe','Injector','_handleOffline','_status','defIds','getLiveShareCoordinator','FOLLOWING','_startLiveShareCoordinator','_handleNewChangeSets','tryStartPresenting','UniverCollaborationClientPlugin','_init','executeCommand','touchDependencies','disposeWithMe','children','_handleNewHost','SAME_OPERATION_SHARE_INTERVAL','UniverCore','SetScrollOperation'];_0x38bd=function(){return _0x5a0406;};return _0x38bd();}function _0x22a5(_0x28931e,_0x2a0cbd){var _0x38bd75=_0x38bd();return _0x22a5=function(_0x22a5e3,_0xb311d1){_0x22a5e3=_0x22a5e3-0xae;var _0x4d3ca9=_0x38bd75[_0x22a5e3];return _0x4d3ca9;},_0x22a5(_0x28931e,_0x2a0cbd);}(function(_0x520ed2,_0x125279){var _0x53cce2=_0x22a5,_0x96b417=_0x520ed2();while(!![]){try{var _0x56d97c=-parseInt(_0x53cce2(0x128))/0x1*(parseInt(_0x53cce2(0xef))/0x2)+-parseInt(_0x53cce2(0x180))/0x3*(parseInt(_0x53cce2(0x115))/0x4)+-parseInt(_0x53cce2(0x129))/0x5+parseInt(_0x53cce2(0x171))/0x6*(-parseInt(_0x53cce2(0xae))/0x7)+parseInt(_0x53cce2(0x160))/0x8*(-parseInt(_0x53cce2(0xfd))/0x9)+-parseInt(_0x53cce2(0x15b))/0xa*(parseInt(_0x53cce2(0x111))/0xb)+parseInt(_0x53cce2(0xc9))/0xc;if(_0x56d97c===_0x125279)break;else _0x96b417['push'](_0x96b417['shift']());}catch(_0x38a9a6){_0x96b417['push'](_0x96b417['shift']());}}}(_0x38bd,0xefe0b),function(_0x1694ae,_0x32b1b7){var _0xf0016b=_0x22a5;typeof exports==_0xf0016b(0x164)&&typeof module<'u'?_0x32b1b7(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0xf0016b(0xdb)&&define[_0xf0016b(0x142)]?define([_0xf0016b(0x177),_0xf0016b(0xf4),_0xf0016b(0x120),_0xf0016b(0xd2),'@univerjs/design',_0xf0016b(0x12a),_0xf0016b(0x172),_0xf0016b(0x15c),_0xf0016b(0xcb),_0xf0016b(0x146),_0xf0016b(0x16e),'@univerjs/sheets-ui'],_0x32b1b7):(_0x1694ae=typeof globalThis<'u'?globalThis:_0x1694ae||self,_0x32b1b7(_0x1694ae[_0xf0016b(0x100)]={},_0x1694ae[_0xf0016b(0x19e)],_0x1694ae[_0xf0016b(0x1a4)],_0x1694ae[_0xf0016b(0xe7)],_0x1694ae['UniverDesign'],_0x1694ae[_0xf0016b(0xe7)],_0x1694ae[_0xf0016b(0x132)],_0x1694ae[_0xf0016b(0xd9)],_0x1694ae[_0xf0016b(0x16a)],_0x1694ae[_0xf0016b(0x146)],_0x1694ae['rxjs'][_0xf0016b(0xfb)],_0x1694ae[_0xf0016b(0x127)]));}(this,function(_0x54bd70,_0x1f64cb,_0x39844e,_0x3ee384,_0x4f877f,_0x37b786,_0x366e80,_0x1a1baf,_0x41a359,_0x2d8f26,_0x3c0e89,_0x2dd262){'use strict';var _0x17e565=_0x22a5;var _0x44f874=Object[_0x17e565(0xb6)],_0x402d7a=(_0x22aa2d,_0x4b4b58,_0x3ff81e)=>_0x4b4b58 in _0x22aa2d?_0x44f874(_0x22aa2d,_0x4b4b58,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ff81e}):_0x22aa2d[_0x4b4b58]=_0x3ff81e,_0x6f703=(_0x5ed2cf,_0x582c3e,_0x3dbd21)=>_0x402d7a(_0x5ed2cf,typeof _0x582c3e!=_0x17e565(0xf8)?_0x582c3e+'':_0x582c3e,_0x3dbd21),_0x3035d5=function(){var _0x51b58c=_0x17e565;return _0x3035d5=Object[_0x51b58c(0xea)]||function(_0x4eb47a){var _0x4e8bd7=_0x51b58c;for(var _0x58da32,_0x681248=0x1,_0x430179=arguments[_0x4e8bd7(0x17f)];_0x681248<_0x430179;_0x681248++){_0x58da32=arguments[_0x681248];for(var _0x45f61a in _0x58da32)Object[_0x4e8bd7(0x13f)][_0x4e8bd7(0x15d)]['call'](_0x58da32,_0x45f61a)&&(_0x4eb47a[_0x45f61a]=_0x58da32[_0x45f61a]);}return _0x4eb47a;},_0x3035d5[_0x51b58c(0x185)](this,arguments);},_0x1105fa=function(_0x34c31,_0x2a85bd){var _0x25db34=_0x17e565,_0x294fa4={};for(var _0x5734a1 in _0x34c31)Object[_0x25db34(0x13f)]['hasOwnProperty'][_0x25db34(0x153)](_0x34c31,_0x5734a1)&&_0x2a85bd[_0x25db34(0xd1)](_0x5734a1)<0x0&&(_0x294fa4[_0x5734a1]=_0x34c31[_0x5734a1]);if(_0x34c31!=null&&typeof Object[_0x25db34(0x107)]==_0x25db34(0xdb)){for(var _0x25190b=0x0,_0x5734a1=Object['getOwnPropertySymbols'](_0x34c31);_0x25190b<_0x5734a1[_0x25db34(0x17f)];_0x25190b++)_0x2a85bd[_0x25db34(0xd1)](_0x5734a1[_0x25190b])<0x0&&Object[_0x25db34(0x13f)][_0x25db34(0x1a0)]['call'](_0x34c31,_0x5734a1[_0x25190b])&&(_0x294fa4[_0x5734a1[_0x25190b]]=_0x34c31[_0x5734a1[_0x25190b]]);}return _0x294fa4;},_0x42d6ee=_0x37b786[_0x17e565(0x138)](function(_0x3ab380,_0x3930ad){var _0x4ca214=_0x17e565,_0x112440=_0x3ab380[_0x4ca214(0xf2)],_0x30e5b1=_0x3ab380['id'],_0x3ebbf9=_0x3ab380['className'],_0x40f37e=_0x3ab380['extend'],_0x595dcb=_0x1105fa(_0x3ab380,[_0x4ca214(0xf2),'id',_0x4ca214(0x168),_0x4ca214(0x104)]),_0x183f4f=_0x4ca214(0xaf)[_0x4ca214(0xc4)](_0x30e5b1,'\x20')[_0x4ca214(0xc4)](_0x3ebbf9||'')[_0x4ca214(0x14e)](),_0x50b853=_0x37b786[_0x4ca214(0xb9)]('_'['concat'](_0x4c0f1c()));return _0x4dfa99(_0x112440,''[_0x4ca214(0xc4)](_0x30e5b1),{'defIds':_0x112440[_0x4ca214(0x190)],'idSuffix':_0x50b853[_0x4ca214(0xd4)]},_0x3035d5({'ref':_0x3930ad,'className':_0x183f4f},_0x595dcb),_0x40f37e);});function _0x4dfa99(_0x594828,_0x167db7,_0xe6661c,_0xee63b1,_0x5305bf){var _0x17c14e=_0x17e565;return _0x37b786[_0x17c14e(0xc6)](_0x594828[_0x17c14e(0xe0)],_0x3035d5(_0x3035d5({'key':_0x167db7},_0x48fd2c(_0x594828,_0xe6661c,_0x5305bf)),_0xee63b1),(_0x23f81e(_0x594828,_0xe6661c)[_0x17c14e(0x19b)]||[])['map'](function(_0x40641e,_0x244b9a){var _0x41a27d=_0x17c14e;return _0x4dfa99(_0x40641e,''['concat'](_0x167db7,'-')[_0x41a27d(0xc4)](_0x594828[_0x41a27d(0xe0)],'-')[_0x41a27d(0xc4)](_0x244b9a),_0xe6661c,void 0x0,_0x5305bf);}));}function _0x48fd2c(_0x1bb208,_0xf2646c,_0xb2158b){var _0x3b9833=_0x17e565,_0x24ba87=_0x3035d5({},_0x1bb208[_0x3b9833(0x103)]);_0xb2158b!=null&&_0xb2158b['colorChannel1']&&_0x24ba87['fill']===_0x3b9833(0xc5)&&(_0x24ba87['fill']=_0xb2158b[_0x3b9833(0xc5)]),_0x1bb208[_0x3b9833(0xe0)]===_0x3b9833(0xe2)&&_0x24ba87['id']&&(_0x24ba87['id']=_0x24ba87['id']+_0xf2646c['idSuffix']),Object[_0x3b9833(0x155)](_0x24ba87)[_0x3b9833(0x126)](function(_0x36bc1d){var _0x3cf458=_0x3b9833,_0x17d095=_0x36bc1d[0x0],_0x1032a2=_0x36bc1d[0x1];_0x17d095===_0x3cf458(0xe2)&&typeof _0x1032a2==_0x3cf458(0x15a)&&(_0x24ba87[_0x17d095]=_0x1032a2[_0x3cf458(0x163)](/url\(#(.*)\)/,_0x3cf458(0x189)[_0x3cf458(0xc4)](_0xf2646c[_0x3cf458(0x1a1)],')')));});var _0x465379=_0xf2646c['defIds'];return!_0x465379||_0x465379[_0x3b9833(0x17f)]===0x0||(_0x1bb208[_0x3b9833(0xe0)]===_0x3b9833(0x183)&&_0x24ba87[_0x3b9833(0xdc)]&&(_0x24ba87[_0x3b9833(0xdc)]=_0x24ba87[_0x3b9833(0xdc)]+_0xf2646c[_0x3b9833(0x1a1)]),Object[_0x3b9833(0x155)](_0x24ba87)['forEach'](function(_0x2e8dd9){var _0x54cbe4=_0x3b9833,_0x38a85b=_0x2e8dd9[0x0],_0x22c24c=_0x2e8dd9[0x1];typeof _0x22c24c==_0x54cbe4(0x15a)&&(_0x24ba87[_0x38a85b]=_0x22c24c['replace'](/url\(#(.*)\)/,_0x54cbe4(0x189)[_0x54cbe4(0xc4)](_0xf2646c[_0x54cbe4(0x1a1)],')')));})),_0x24ba87;}function _0x23f81e(_0x4cfce4,_0x12e090){var _0x4f5827=_0x17e565,_0x2652c0,_0x3622f5=_0x12e090['defIds'];return!_0x3622f5||_0x3622f5[_0x4f5827(0x17f)]===0x0?_0x4cfce4:_0x4cfce4['tag']==='defs'&&(!((_0x2652c0=_0x4cfce4[_0x4f5827(0x19b)])===null||_0x2652c0===void 0x0)&&_0x2652c0[_0x4f5827(0x17f)])?_0x3035d5(_0x3035d5({},_0x4cfce4),{'children':_0x4cfce4['children']['map'](function(_0x316229){var _0x429b57=_0x4f5827;return typeof _0x316229['attrs']['id']=='string'&&_0x3622f5&&_0x3622f5[_0x429b57(0x12d)](_0x316229[_0x429b57(0x103)]['id'])?_0x3035d5(_0x3035d5({},_0x316229),{'attrs':_0x3035d5(_0x3035d5({},_0x316229[_0x429b57(0x103)]),{'id':_0x316229[_0x429b57(0x103)]['id']+_0x12e090['idSuffix']})}):_0x316229;})}):_0x4cfce4;}function _0x4c0f1c(){var _0x46a876=_0x17e565;return Math['random']()[_0x46a876(0x134)](0x24)[_0x46a876(0xd5)](0x2,0x8);}_0x42d6ee[_0x17e565(0x12c)]=_0x17e565(0x15f);var _0x3131b0={'tag':_0x17e565(0x141),'attrs':{'xmlns':_0x17e565(0xcd),'fill':_0x17e565(0x12b),'viewBox':_0x17e565(0x121),'width':_0x17e565(0x1aa),'height':'1em'},'children':[{'tag':_0x17e565(0x145),'attrs':{'fill':_0x17e565(0xbd),'d':_0x17e565(0x16c)}},{'tag':_0x17e565(0x145),'attrs':{'fill':_0x17e565(0xbd),'d':_0x17e565(0x13a),'fillRule':_0x17e565(0xbc),'clipRule':_0x17e565(0xbc)}}]},_0x23fda8=_0x37b786[_0x17e565(0x138)](function(_0x47ffa8,_0x4ce370){var _0x3291c6=_0x17e565;return _0x37b786['createElement'](_0x42d6ee,Object[_0x3291c6(0xea)]({},_0x47ffa8,{'id':_0x3291c6(0x17c),'ref':_0x4ce370,'icon':_0x3131b0}));});_0x23fda8[_0x17e565(0x12c)]=_0x17e565(0xb7);class _0x30f6fa extends _0x1f64cb[_0x17e565(0x11a)]{constructor(){var _0x21d281=_0x17e565;super(...arguments),_0x6f703(this,_0x21d281(0xf5),new Set()),_0x6f703(this,_0x21d281(0x12f),new Set());}[_0x17e565(0xe3)](_0x3a1feb){var _0x50fa86=_0x17e565;return this['_sharedOperations']['add'](_0x3a1feb),_0x1f64cb[_0x50fa86(0xbf)](()=>this[_0x50fa86(0xf5)][_0x50fa86(0x11b)](_0x3a1feb));}[_0x17e565(0x14c)](_0x492acb){var _0x31d523=_0x17e565;return this[_0x31d523(0x12f)][_0x31d523(0xe1)](_0x492acb),_0x1f64cb['toDisposable'](()=>this['_reporters']['delete'](_0x492acb));}['shouldShareOperation'](_0x3e046f){return this['_sharedOperations']['has'](_0x3e046f);}['getInitialStates'](_0x124606){var _0x794bbe=_0x17e565;return Array[_0x794bbe(0xe8)](this['_reporters'])[_0x794bbe(0x152)](_0x2780ee=>_0x2780ee(_0x124606));}}var _0x5831e2=Object['getOwnPropertyDescriptor'],_0x1bd40c=(_0x12884c,_0x2d6c4b,_0x37e949,_0xe48d65)=>{var _0x2b6f2f=_0x17e565;for(var _0x9590b1=_0xe48d65>0x1?void 0x0:_0xe48d65?_0x5831e2(_0x2d6c4b,_0x37e949):_0x2d6c4b,_0x2d2582=_0x12884c[_0x2b6f2f(0x17f)]-0x1,_0x2ee7c5;_0x2d2582>=0x0;_0x2d2582--)(_0x2ee7c5=_0x12884c[_0x2d2582])&&(_0x9590b1=_0x2ee7c5(_0x9590b1)||_0x9590b1);return _0x9590b1;},_0x4da1e7=(_0x374a37,_0x5ed58e)=>(_0x545aea,_0x4ecaa2)=>_0x5ed58e(_0x545aea,_0x4ecaa2,_0x374a37);_0x54bd70[_0x17e565(0x10a)]=class extends _0x1f64cb[_0x17e565(0x113)]{constructor(_0x4588ae,_0xb96ac1,_0xab080c){var _0x5b024a=_0x17e565;super(),_0x6f703(this,_0x5b024a(0x188),new Map()),(this[_0x5b024a(0x124)]=_0x4588ae,this['_injector']=_0xb96ac1,this['_collabSessionService']=_0xab080c,this[_0x5b024a(0x197)]());}async['getLiveShareCoordinator'](_0x47a63e){var _0xf0c979=_0x17e565;return this['_entities'][_0xf0c979(0x119)](_0x47a63e)||await this[_0xf0c979(0x193)](_0x47a63e),this[_0xf0c979(0x188)]['get'](_0x47a63e);}[_0x17e565(0x197)](){var _0x46c925=_0x17e565;this['_univerInstanceService'][_0x46c925(0x158)](_0x1f64cb['UniverInstanceType'][_0x46c925(0x13c)])[_0x46c925(0x109)](_0x3c0e89['takeUntil'](this[_0x46c925(0x10f)]))[_0x46c925(0xfa)](async _0x93cee0=>{var _0x5afd8e=_0x46c925;const _0x5c1b53=_0x93cee0['getUnitId']();this['_entities'][_0x5afd8e(0x119)](_0x5c1b53)||this[_0x5afd8e(0x193)](_0x5c1b53);}),this['_univerInstanceService'][_0x46c925(0x101)](_0x1f64cb[_0x46c925(0x159)][_0x46c925(0x13c)])[_0x46c925(0x109)](_0x3c0e89[_0x46c925(0x143)](this['dispose$']))[_0x46c925(0xfa)](_0x353993=>{var _0x134d99=_0x46c925;const _0x5a36e9=_0x353993['getUnitId'](),_0x3cda37=this[_0x134d99(0x188)]['get'](_0x5a36e9);_0x3cda37==null||_0x3cda37[_0x134d99(0xc8)]();});}async[_0x17e565(0x193)](_0x1a31fc){var _0x1e1efb=_0x17e565;const _0x7977c6=await this[_0x1e1efb(0xed)][_0x1e1efb(0x11e)](_0x1a31fc),_0x266f0e=this[_0x1e1efb(0x12e)][_0x1e1efb(0x14a)](_0x54bd70[_0x1e1efb(0x10b)],_0x1a31fc,_0x7977c6);return _0x266f0e[_0x1e1efb(0x166)](),this[_0x1e1efb(0x188)][_0x1e1efb(0x18a)](_0x1a31fc,_0x266f0e),_0x266f0e;}},_0x54bd70[_0x17e565(0x10a)]=_0x1bd40c([_0x4da1e7(0x0,_0x1f64cb[_0x17e565(0xbb)]),_0x4da1e7(0x1,_0x1f64cb[_0x17e565(0x1a5)](_0x1f64cb['Injector'])),_0x4da1e7(0x2,_0x1f64cb['Inject'](_0x1a1baf[_0x17e565(0x179)]))],_0x54bd70[_0x17e565(0x10a)]);var _0x35134b=(_0x4ecefa=>(_0x4ecefa[_0x17e565(0xeb)]='offline',_0x4ecefa[_0x17e565(0xc1)]=_0x17e565(0x116),_0x4ecefa[_0x17e565(0x192)]=_0x17e565(0xb1),_0x4ecefa[_0x17e565(0x13b)]='not-following',_0x4ecefa[_0x17e565(0xca)]=_0x17e565(0x178),_0x4ecefa))(_0x35134b||{});const _0x1d76ab=_0x17e565(0x19d),_0xe6a8e6=0xc8;_0x54bd70[_0x17e565(0x10b)]=class extends _0x1f64cb[_0x17e565(0x113)]{constructor(_0x179177,_0x46be3,_0x5b63f7,_0xc13b2,_0x28e935){var _0x6fc45e=_0x17e565;super(),_0x6f703(this,_0x6fc45e(0xf6),new _0x2d8f26[(_0x6fc45e(0x125))](_0x6fc45e(0x116))),_0x6f703(this,_0x6fc45e(0x165),this[_0x6fc45e(0xf6)][_0x6fc45e(0x13d)]()),_0x6f703(this,_0x6fc45e(0x197),!0x1),_0x6f703(this,_0x6fc45e(0x123),null),_0x6f703(this,_0x6fc45e(0x136),null),(this[_0x6fc45e(0xd3)]=_0x179177,this['_collabSession']=_0x46be3,this[_0x6fc45e(0xe4)]=_0x5b63f7,this[_0x6fc45e(0xe6)]=_0xc13b2,this[_0x6fc45e(0x17e)]=_0x28e935);}get[_0x17e565(0x18f)](){return this['_status$']['getValue']();}[_0x17e565(0xc8)](){var _0x2804da=_0x17e565,_0xc96a;(_0xc96a=this[_0x2804da(0x123)])==null||_0xc96a[_0x2804da(0xc8)](),this[_0x2804da(0xf6)][_0x2804da(0x149)](_0x2804da(0x116)),this['_status$'][_0x2804da(0xc7)]();}['init'](){var _0xb44cda=_0x17e565;this[_0xb44cda(0x197)]||(this['_init']=!0x0,this[_0xb44cda(0xf1)]['sessionStatus$'][_0xb44cda(0x109)](_0x3c0e89[_0xb44cda(0x143)](this['dispose$']))[_0xb44cda(0xfa)](_0xf77b01=>{var _0xb7e79c=_0xb44cda;switch(_0xf77b01){case _0x1a1baf[_0xb7e79c(0x156)]['OFFLINE']:this[_0xb7e79c(0x18e)]();break;case _0x1a1baf[_0xb7e79c(0x156)][_0xb7e79c(0x1a6)]:this[_0xb7e79c(0x114)]();break;}}),this[_0xb44cda(0xf1)][_0xb44cda(0xdd)][_0xb44cda(0x109)](_0x3c0e89['takeUntil'](this[_0xb44cda(0x10f)]))[_0xb44cda(0xfa)](_0x4cb3b0=>{var _0x1765e2=_0xb44cda;const {eventID:_0x29e4aa}=_0x4cb3b0;switch(_0x29e4aa){case _0x366e80[_0x1765e2(0x151)][_0x1765e2(0xb5)]:this[_0x1765e2(0x19c)](_0x4cb3b0);break;case _0x366e80[_0x1765e2(0x151)][_0x1765e2(0x13e)]:this['_handleOperation'](_0x4cb3b0);break;case _0x366e80['CollaborationEvent']['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x366e80[_0x1765e2(0x151)]['NEW_CHANGESETS']:this[_0x1765e2(0x194)](_0x4cb3b0);break;}}));}['tryStartPresenting'](){var _0x4566f8=_0x17e565;this[_0x4566f8(0xf1)][_0x4566f8(0xb2)]({'eventID':_0x366e80[_0x4566f8(0x151)][_0x4566f8(0x175)],'data':{'unitID':this[_0x4566f8(0xd3)],'userID':this[_0x4566f8(0xf1)]['getMemberID']()}},this[_0x4566f8(0xd3)]);}[_0x17e565(0x110)](){var _0x5de397=_0x17e565;this['_status']===_0x5de397(0x178)&&(this[_0x5de397(0xf6)][_0x5de397(0x149)](_0x5de397(0x116)),this[_0x5de397(0xf1)][_0x5de397(0xb2)]({'eventID':_0x366e80[_0x5de397(0x151)][_0x5de397(0xc3)],'data':{'unitID':this[_0x5de397(0xd3)]}},this[_0x5de397(0xd3)]));}[_0x17e565(0x131)](){var _0x5ae601=_0x17e565;this[_0x5ae601(0x18f)]==='not-following'&&(this[_0x5ae601(0xf6)][_0x5ae601(0x149)]('following'),this['_startFollowing']());}[_0x17e565(0xfe)](){var _0x6a17fd=_0x17e565;this[_0x6a17fd(0x18f)]==='following'&&this[_0x6a17fd(0x11c)]();}[_0x17e565(0x19c)](_0x3f74e4){var _0x43b5c7=_0x17e565;const {presenter:_0x5b2239}=_0x3f74e4[_0x43b5c7(0xc2)],_0x2ea41b=this[_0x43b5c7(0xf1)][_0x43b5c7(0x148)]();this[_0x43b5c7(0x136)]=_0x5b2239,_0x5b2239===_0x2ea41b?(this[_0x43b5c7(0x11c)](),this[_0x43b5c7(0xf3)]()):this[_0x43b5c7(0x18f)]!==_0x43b5c7(0x105)&&(this[_0x43b5c7(0x182)](),this[_0x43b5c7(0xb4)]());}[_0x17e565(0xf7)](){var _0x48e1d8=_0x17e565;const _0xe0a8c4={'eventID':_0x366e80[_0x48e1d8(0x151)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x48e1d8(0xb2)](_0xe0a8c4,this['_unitID']);}[_0x17e565(0x11d)](){var _0x19fd2f=_0x17e565;this[_0x19fd2f(0x136)]=null,this[_0x19fd2f(0x18f)]!==_0x19fd2f(0x178)&&this[_0x19fd2f(0x139)]();}[_0x17e565(0x194)](_0x2a894b){var _0x101f6b=_0x17e565;if(this['_status']==='following'&&this[_0x101f6b(0x136)]===_0x2a894b[_0x101f6b(0xc2)]['memberID']){const _0x25ae23=_0x366e80[_0x101f6b(0x181)](_0x2a894b['data'])['mutations'][_0x101f6b(0x10e)]()[_0x101f6b(0xe9)](_0x6dd0=>_0x6dd0['id']===_0x41a359[_0x101f6b(0x1a3)]['id']);if(_0x25ae23){const _0x121e7f=_0x25ae23[_0x101f6b(0x1a8)][_0x101f6b(0x169)],_0x4be7b0=_0x25ae23['params'][_0x101f6b(0x15e)]['id'];setTimeout(()=>{var _0x2a6bf2=_0x101f6b;this[_0x2a6bf2(0x17e)][_0x2a6bf2(0x198)](_0x41a359['SetWorksheetActiveOperation']['id'],{'unitId':_0x121e7f,'subUnitId':_0x4be7b0},{'fromCollab':!0x0});});}}}[_0x17e565(0xf3)](){var _0x32d163=_0x17e565;this[_0x32d163(0xf6)][_0x32d163(0x149)](_0x32d163(0x178));const _0x56dc55=new Map(),_0x4dc550=this[_0x32d163(0x123)]=new _0x1f64cb[(_0x32d163(0xb0))]();_0x4dc550[_0x32d163(0xe1)](_0x1f64cb[_0x32d163(0xbf)](()=>{var _0x5dfb43=_0x32d163;_0x56dc55[_0x5dfb43(0x126)](_0x57c172=>_0x57c172['complete']()),_0x56dc55[_0x5dfb43(0x154)]();})),_0x4dc550[_0x32d163(0xe1)](this['_commandService'][_0x32d163(0x135)](_0x3294ea=>{var _0x534ed6=_0x32d163,_0x5baf5d;if(_0x3294ea[_0x534ed6(0xfc)]!==_0x1f64cb[_0x534ed6(0x14b)][_0x534ed6(0x174)]||!this[_0x534ed6(0xe6)]['shouldShareOperation'](_0x3294ea['id']))return;const {id:_0x3e5f16}=_0x3294ea;let _0x489277;_0x56dc55[_0x534ed6(0x119)](_0x3e5f16)?_0x489277=_0x56dc55[_0x534ed6(0x162)](_0x3e5f16):(_0x489277=new _0x2d8f26[(_0x534ed6(0x10d))](),_0x56dc55[_0x534ed6(0x18a)](_0x3e5f16,_0x489277),_0x489277[_0x534ed6(0x109)](_0x3c0e89[_0x534ed6(0xf0)]((_0x5baf5d=this[_0x534ed6(0xe4)][_0x534ed6(0x147)](_0x1d76ab))!=null?_0x5baf5d:_0xe6a8e6,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2a9e65=>{var _0x20abe0=_0x534ed6;this[_0x20abe0(0xf1)]['send']({'eventID':_0x366e80[_0x20abe0(0x151)][_0x20abe0(0x13e)],'data':{'unitID':this[_0x20abe0(0xd3)],'operations':{[_0x2a9e65['id']]:{'id':_0x2a9e65['id'],'params':JSON['stringify'](_0x2a9e65['params'])}}}},this[_0x20abe0(0xd3)]);})),_0x489277[_0x534ed6(0x149)](_0x3294ea);})),this[_0x32d163(0xe6)]['getInitialStates'](this[_0x32d163(0xd3)])[_0x32d163(0x126)](_0x180431=>this[_0x32d163(0xf1)][_0x32d163(0xb2)]({'eventID':_0x366e80[_0x32d163(0x151)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x32d163(0xd3)],'operations':{[_0x180431['id']]:{'id':_0x180431['id'],'params':JSON[_0x32d163(0x122)](_0x180431['params'])}}}},this['_unitID']));}['_stopPresenting'](){var _0x1c4916=_0x17e565,_0x3c2131;this[_0x1c4916(0xf6)][_0x1c4916(0x149)](_0x1c4916(0x116)),(_0x3c2131=this[_0x1c4916(0x123)])==null||_0x3c2131[_0x1c4916(0xc8)](),this[_0x1c4916(0x123)]=null;}[_0x17e565(0xb4)](){var _0x1c286d=_0x17e565,_0x1bc468;(_0x1bc468=this[_0x1c286d(0x123)])==null||_0x1bc468[_0x1c286d(0xc8)](),this[_0x1c286d(0xf6)][_0x1c286d(0x149)](_0x1c286d(0xb1));}[_0x17e565(0x139)](){var _0x15f9b3=_0x17e565,_0x4fc1da;this[_0x15f9b3(0xf6)][_0x15f9b3(0x149)](_0x15f9b3(0x116)),(_0x4fc1da=this[_0x15f9b3(0x123)])==null||_0x4fc1da[_0x15f9b3(0xc8)](),this['_commandDisposable']=null;}[_0x17e565(0x11c)](){var _0x3ebc24=_0x17e565,_0x44e163;this[_0x3ebc24(0xf6)][_0x3ebc24(0x149)](_0x3ebc24(0x105)),(_0x44e163=this[_0x3ebc24(0x123)])==null||_0x44e163['dispose']();}['_handleOperation'](_0x30809b){var _0x19e22c=_0x17e565;if([_0x19e22c(0x178),_0x19e22c(0x105),_0x19e22c(0xc0)]['includes'](this[_0x19e22c(0x18f)])||!_0x30809b[_0x19e22c(0xc2)]['presenter']||_0x30809b[_0x19e22c(0xc2)][_0x19e22c(0xba)]===this[_0x19e22c(0xf1)][_0x19e22c(0x148)]())return;this[_0x19e22c(0x18f)]===_0x19e22c(0x116)&&this['_startFollowing']();const _0x3e949c=_0x30809b[_0x19e22c(0xc2)]['operations'];Object[_0x19e22c(0x167)](_0x3e949c)[_0x19e22c(0x126)](_0x3fc860=>{var _0x574914=_0x19e22c;this[_0x574914(0x17e)]['executeCommand'](_0x3fc860['id'],_0x3fc860['params']?JSON['parse'](_0x3fc860['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x3a34ab=_0x17e565,_0xcd8de8;this[_0x3a34ab(0xf6)][_0x3a34ab(0x149)](_0x3a34ab(0xc0)),(_0xcd8de8=this[_0x3a34ab(0x123)])==null||_0xcd8de8[_0x3a34ab(0xc8)]();}['_handleOnline'](){var _0x44d5cd=_0x17e565;this[_0x44d5cd(0xf6)][_0x44d5cd(0x149)]('idle'),this['_fetchOperations']();}},_0x54bd70[_0x17e565(0x10b)]=_0x1bd40c([_0x4da1e7(0x2,_0x1f64cb[_0x17e565(0x140)]),_0x4da1e7(0x3,_0x1f64cb[_0x17e565(0x1a5)](_0x30f6fa)),_0x4da1e7(0x4,_0x1f64cb[_0x17e565(0x133)])],_0x54bd70[_0x17e565(0x10b)]);function _0x4c67b5(){var _0x1ef129=_0x17e565;const _0x1d08f0=_0x39844e[_0x1ef129(0x18b)](_0x54bd70[_0x1ef129(0x10a)]),_0x6585ee=_0x39844e[_0x1ef129(0x18b)](_0x1f64cb[_0x1ef129(0xbb)]),_0xc2dea=_0x39844e[_0x1ef129(0xb3)](()=>_0x6585ee['getCurrentTypeOfUnit$'](_0x1f64cb['UniverInstanceType'][_0x1ef129(0x13c)]),void 0x0,!0x1,[]),[_0x18b798,_0x252880]=_0x37b786[_0x1ef129(0x161)](null),[_0x182f42,_0x3c3346]=_0x37b786[_0x1ef129(0x161)](_0x35134b[_0x1ef129(0xc1)]),_0x354e82=_0x37b786[_0x1ef129(0xb9)](null);return _0x37b786[_0x1ef129(0xd8)](()=>(_0xc2dea&&_0x1d08f0[_0x1ef129(0x191)](_0xc2dea[_0x1ef129(0x173)]())[_0x1ef129(0x150)](_0x5b99a2=>{var _0x3300ff=_0x1ef129;_0x252880(_0x5b99a2),_0x354e82[_0x3300ff(0xd4)]=_0x5b99a2[_0x3300ff(0x165)][_0x3300ff(0xfa)](_0x26f7dc=>{_0x3c3346(_0x26f7dc);});}),()=>{var _0x16ec0e=_0x1ef129,_0x20a17b;(_0x20a17b=_0x354e82[_0x16ec0e(0xd4)])==null||_0x20a17b[_0x16ec0e(0x18c)](),_0x354e82['current']=null;}),[_0xc2dea,_0x1d08f0]),_0x18b798?_0x3ee384[_0x1ef129(0x170)](_0x4f877f[_0x1ef129(0x187)],{'align':'end','disabled':_0x182f42===_0x35134b['OFFLINE'],'className':_0x1ef129(0x16d),'overlay':_0x3ee384[_0x1ef129(0x170)](_0x36cac4,{'status':_0x182f42,'coordinator':_0x18b798}),'children':_0x3ee384[_0x1ef129(0x170)]('button',{'className':_0x4f877f[_0x1ef129(0xec)](_0x1ef129(0x106),{'univer-cursor-not-allowed':_0x182f42===_0x35134b[_0x1ef129(0xeb)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x182f42!==_0x35134b['OFFLINE']}),'type':'button','children':_0x3ee384['jsx'](_0x23fda8,{'className':_0x1ef129(0x17d)})})}):null;}function _0x36cac4(_0x3e5463){var _0x21c919=_0x17e565;const {status:_0x2dff97,coordinator:_0x836b1b}=_0x3e5463;switch(_0x2dff97){case _0x35134b[_0x21c919(0xc1)]:return _0x3ee384[_0x21c919(0x170)](_0x5b31e3,{'coordinator':_0x836b1b});case _0x35134b[_0x21c919(0x192)]:return _0x3ee384['jsx'](_0xba6fd4,{'coordinator':_0x836b1b});case _0x35134b['NOT_FOLLOWING']:return _0x3ee384[_0x21c919(0x170)](_0x32db31,{'coordinator':_0x836b1b});case _0x35134b['OFFLINE']:return _0x3ee384[_0x21c919(0x170)](_0x8fec72,{});case _0x35134b[_0x21c919(0xca)]:return _0x3ee384[_0x21c919(0x170)](_0x383ce6,{'coordinator':_0x836b1b});default:return null;}}function _0x5b31e3(_0x643f97){var _0xcffbbd=_0x17e565;const {coordinator:_0x30a3a2}=_0x643f97;return _0x3ee384['jsxs'](_0x3ee384[_0xcffbbd(0x10c)],{'children':[_0x3ee384['jsx'](_0xcffbbd(0x102),{'className':_0xcffbbd(0xff),'children':_0xcffbbd(0x184)}),_0x3ee384['jsx'](_0x4f877f[_0xcffbbd(0x14f)],{'onClick':()=>_0x30a3a2[_0xcffbbd(0x195)](),'children':'Start'})]});}function _0xba6fd4(_0x4f4150){var _0x41d2a1=_0x17e565;const {coordinator:_0x4df229}=_0x4f4150;return _0x3ee384[_0x41d2a1(0x117)](_0x3ee384[_0x41d2a1(0x10c)],{'children':[_0x3ee384[_0x41d2a1(0x170)](_0x41d2a1(0x102),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x41d2a1(0xb8)}),_0x3ee384[_0x41d2a1(0x170)](_0x4f877f['Button'],{'onClick':()=>_0x4df229[_0x41d2a1(0xfe)](),'children':'Stop\x20following'})]});}function _0x32db31(_0x4ce293){var _0x5dbe89=_0x17e565;const {coordinator:_0x35bf91}=_0x4ce293;return _0x3ee384[_0x5dbe89(0x117)](_0x3ee384[_0x5dbe89(0x10c)],{'children':[_0x3ee384[_0x5dbe89(0x170)](_0x5dbe89(0x102),{'className':_0x5dbe89(0xff),'children':_0x5dbe89(0x16f)}),_0x3ee384[_0x5dbe89(0x170)](_0x4f877f[_0x5dbe89(0x14f)],{'variant':_0x5dbe89(0x137),'onClick':()=>_0x35bf91[_0x5dbe89(0x131)](),'children':_0x5dbe89(0x11f)})]});}function _0x383ce6(_0x294d04){var _0x2ef71a=_0x17e565;const {coordinator:_0x3dcd2a}=_0x294d04;return _0x3ee384['jsxs'](_0x3ee384[_0x2ef71a(0x10c)],{'children':[_0x3ee384['jsx'](_0x2ef71a(0x102),{'className':_0x2ef71a(0xff),'children':_0x2ef71a(0xd6)}),_0x3ee384['jsx'](_0x4f877f[_0x2ef71a(0x14f)],{'variant':_0x2ef71a(0xbe),'onClick':()=>_0x3dcd2a[_0x2ef71a(0x110)](),'children':'Stop\x20presenting'})]});}function _0x8fec72(){var _0x321ccd=_0x17e565;return _0x3ee384[_0x321ccd(0x170)](_0x3ee384[_0x321ccd(0x10c)],{'children':'You\x27are\x20offline.'});}var _0x529344=Object[_0x17e565(0xce)],_0x45fb7f=(_0x30f6ba,_0x562f8c,_0x4618ce,_0x4447d8)=>{var _0x4bf15a=_0x17e565;for(var _0x605cae=_0x4447d8>0x1?void 0x0:_0x4447d8?_0x529344(_0x562f8c,_0x4618ce):_0x562f8c,_0x503efa=_0x30f6ba[_0x4bf15a(0x17f)]-0x1,_0x475ac5;_0x503efa>=0x0;_0x503efa--)(_0x475ac5=_0x30f6ba[_0x503efa])&&(_0x605cae=_0x475ac5(_0x605cae)||_0x605cae);return _0x605cae;},_0x2967cc=(_0x5a0865,_0x4a5b85)=>(_0xd82d57,_0x35e6f2)=>_0x4a5b85(_0xd82d57,_0x35e6f2,_0x5a0865);_0x54bd70[_0x17e565(0x1a2)]=class extends _0x1f64cb['Disposable']{constructor(_0x403934,_0x7869d3){var _0x75d70a=_0x17e565;super(),this[_0x75d70a(0x12e)]=_0x403934,this[_0x75d70a(0x176)]=_0x7869d3,this[_0x75d70a(0x130)]();}[_0x17e565(0x130)](){var _0xe80276=_0x17e565;this[_0xe80276(0x19a)](this[_0xe80276(0x176)]['registerComponent'](_0x39844e[_0xe80276(0xdf)][_0xe80276(0x1a9)],()=>_0x39844e[_0xe80276(0x118)](_0x4c67b5,this[_0xe80276(0x12e)])));}},_0x54bd70[_0x17e565(0x1a2)]=_0x45fb7f([_0x2967cc(0x0,_0x1f64cb[_0x17e565(0x1a5)](_0x1f64cb['Injector'])),_0x2967cc(0x1,_0x39844e[_0x17e565(0xde)])],_0x54bd70[_0x17e565(0x1a2)]);const _0x27cc42=_0x17e565(0x16b),_0x944190={};var _0x431728=Object[_0x17e565(0xce)],_0x34e1ef=(_0x27eea6,_0x5dcf6c,_0x113c38,_0x4e2fed)=>{var _0x22d5ec=_0x17e565;for(var _0x2c13bb=_0x4e2fed>0x1?void 0x0:_0x4e2fed?_0x431728(_0x5dcf6c,_0x113c38):_0x5dcf6c,_0x456ab4=_0x27eea6[_0x22d5ec(0x17f)]-0x1,_0x3e4c55;_0x456ab4>=0x0;_0x456ab4--)(_0x3e4c55=_0x27eea6[_0x456ab4])&&(_0x2c13bb=_0x3e4c55(_0x2c13bb)||_0x2c13bb);return _0x2c13bb;},_0x11868b=(_0x3d1a93,_0x352d26)=>(_0x2130bb,_0x5bfab0)=>_0x352d26(_0x2130bb,_0x5bfab0,_0x3d1a93);let _0x45868b=class extends _0x1f64cb[_0x17e565(0x11a)]{constructor(_0x1d022d){var _0x55eede=_0x17e565;super(),this[_0x55eede(0xe6)]=_0x1d022d,this['_init']();}[_0x17e565(0x197)](){var _0x25b16e=_0x17e565;[_0x2dd262[_0x25b16e(0xee)]['id'],_0x2dd262[_0x25b16e(0x19f)]['id'],_0x41a359['SetWorksheetActiveOperation']['id']][_0x25b16e(0x126)](_0x1a643c=>{var _0x24b531=_0x25b16e;this['disposeWithMe'](this[_0x24b531(0xe6)][_0x24b531(0xe3)](_0x1a643c));});}};_0x45868b=_0x34e1ef([_0x11868b(0x0,_0x1f64cb[_0x17e565(0x1a5)](_0x30f6fa))],_0x45868b);var _0x2da088=Object[_0x17e565(0xb6)],_0x25bac6=Object[_0x17e565(0xce)],_0x4db123=(_0x3db96f,_0x396236,_0x162ad9)=>_0x396236 in _0x3db96f?_0x2da088(_0x3db96f,_0x396236,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x162ad9}):_0x3db96f[_0x396236]=_0x162ad9,_0x4e40c6=(_0x9a4894,_0x2cd40e,_0x385c2d,_0x55bf24)=>{var _0x55782b=_0x17e565;for(var _0xa5471e=_0x55bf24>0x1?void 0x0:_0x55bf24?_0x25bac6(_0x2cd40e,_0x385c2d):_0x2cd40e,_0x44ebea=_0x9a4894[_0x55782b(0x17f)]-0x1,_0x41ef77;_0x44ebea>=0x0;_0x44ebea--)(_0x41ef77=_0x9a4894[_0x44ebea])&&(_0xa5471e=_0x41ef77(_0xa5471e)||_0xa5471e);return _0xa5471e;},_0x18f0bc=(_0x9f5c5f,_0x382a59)=>(_0x10b7f1,_0x4069b6)=>_0x382a59(_0x10b7f1,_0x4069b6,_0x9f5c5f),_0x516a8d=(_0x53ea37,_0x1070b8,_0x42a369)=>_0x4db123(_0x53ea37,typeof _0x1070b8!='symbol'?_0x1070b8+'':_0x1070b8,_0x42a369);const _0x544896=_0x17e565(0x14d);_0x54bd70['UniverLiveSharePlugin']=class extends _0x1f64cb[_0x17e565(0xda)]{constructor(_0x21e20e=_0x944190,_0x437712,_0x41e206){var _0x152d7f=_0x17e565;super(),this[_0x152d7f(0x144)]=_0x21e20e,this['_injector']=_0x437712,this['_configService']=_0x41e206;const {..._0x3aadfa}=_0x1f64cb[_0x152d7f(0x157)]({},_0x944190,this[_0x152d7f(0x144)]);this[_0x152d7f(0xe4)][_0x152d7f(0xcc)](_0x27cc42,_0x3aadfa);}['onStarting'](){var _0x20d3e9=_0x17e565;_0x1f64cb[_0x20d3e9(0x186)](this[_0x20d3e9(0x12e)],_0x1f64cb['mergeOverrideWithDependencies']([[_0x30f6fa],[_0x54bd70['LiveShareController']],[_0x45868b],[_0x54bd70['DesktopLiveShareController']]],this[_0x20d3e9(0x144)]['override'])),_0x1f64cb[_0x20d3e9(0x199)](this[_0x20d3e9(0x12e)],[[_0x45868b]]);}[_0x17e565(0x17a)](){var _0x4a302a=_0x17e565;_0x1f64cb[_0x4a302a(0x199)](this[_0x4a302a(0x12e)],[[_0x54bd70[_0x4a302a(0x1a2)]]]);}},_0x516a8d(_0x54bd70[_0x17e565(0x108)],'type',_0x1f64cb['UniverInstanceType'][_0x17e565(0x17b)]),_0x516a8d(_0x54bd70[_0x17e565(0x108)],_0x17e565(0xf9),_0x544896),_0x54bd70['UniverLiveSharePlugin']=_0x4e40c6([_0x1f64cb[_0x17e565(0xd7)](_0x1a1baf[_0x17e565(0x196)]),_0x18f0bc(0x1,_0x1f64cb[_0x17e565(0x1a5)](_0x1f64cb[_0x17e565(0x18d)])),_0x18f0bc(0x2,_0x1f64cb[_0x17e565(0x140)])],_0x54bd70['UniverLiveSharePlugin']),_0x54bd70[_0x17e565(0xd0)]=_0x4c67b5,_0x54bd70[_0x17e565(0xe5)]=_0x30f6fa,_0x54bd70[_0x17e565(0xcf)]=_0x35134b,Object['defineProperty'](_0x54bd70,Symbol[_0x17e565(0x1a7)],{'value':_0x17e565(0x112)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.10-experimental.20251010-3f807c5",
|
|
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": "0.10.
|
|
51
|
-
"@univerjs
|
|
52
|
-
"@univerjs/
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/ui": "0.10.
|
|
49
|
+
"@univerjs/icons": "^0.4.9",
|
|
50
|
+
"@univerjs-pro/collaboration": "0.10.10-experimental.20251010-3f807c5",
|
|
51
|
+
"@univerjs/core": "0.10.10-experimental.20251010-3f807c5",
|
|
52
|
+
"@univerjs-pro/collaboration-client": "0.10.10-experimental.20251010-3f807c5",
|
|
53
|
+
"@univerjs/design": "0.10.10-experimental.20251010-3f807c5",
|
|
54
|
+
"@univerjs/sheets": "0.10.10-experimental.20251010-3f807c5",
|
|
55
|
+
"@univerjs/ui": "0.10.10-experimental.20251010-3f807c5",
|
|
56
|
+
"@univerjs/sheets-ui": "0.10.10-experimental.20251010-3f807c5"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.6",
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
"rxjs": "7.8.2",
|
|
62
62
|
"tailwindcss": "^3.4.17",
|
|
63
63
|
"typescript": "^5.9.2",
|
|
64
|
-
"vite": "^7.1.
|
|
64
|
+
"vite": "^7.1.7",
|
|
65
65
|
"vitest": "^3.2.4",
|
|
66
|
-
"@univerjs-infra/shared": "0.10.
|
|
66
|
+
"@univerjs-infra/shared": "0.10.10",
|
|
67
67
|
"@univerjs/protocol": "0.1.47-alpha.0"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|