@univerjs-pro/live-share 0.7.0-nightly.202505191607 → 0.7.0-nightly.202505211607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +8 -8
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x1547f4=_0x2486;(function(_0x50cd28,_0x3d01d7){var _0x5d137e=_0x2486,_0x500033=_0x50cd28();while(!![]){try{var _0x403c91=-parseInt(_0x5d137e(0xaf))/0x1+-parseInt(_0x5d137e(0x129))/0x2+parseInt(_0x5d137e(0x104))/0x3*(parseInt(_0x5d137e(0x93))/0x4)+-parseInt(_0x5d137e(0xa9))/0x5*(-parseInt(_0x5d137e(0x114))/0x6)+parseInt(_0x5d137e(0xe9))/0x7+parseInt(_0x5d137e(0xd1))/0x8+-parseInt(_0x5d137e(0x86))/0x9;if(_0x403c91===_0x3d01d7)break;else _0x500033['push'](_0x500033['shift']());}catch(_0x4b17a1){_0x500033['push'](_0x500033['shift']());}}}(_0xf182,0x39930));var U=Object[_0x1547f4(0x77)],F=(_0x5b1b8e,_0x3445f1,_0x240c2e)=>_0x3445f1 in _0x5b1b8e?U(_0x5b1b8e,_0x3445f1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x240c2e}):_0x5b1b8e[_0x3445f1]=_0x240c2e,v=(_0x7be775,_0x4f5948,_0x55b783)=>F(_0x7be775,typeof _0x4f5948!=_0x1547f4(0xd3)?_0x4f5948+'':_0x4f5948,_0x55b783);Object[_0x1547f4(0x77)](exports,Symbol[_0x1547f4(0xce)],{'value':'Module'});const m=require(_0x1547f4(0xe7)),o=require(_0x1547f4(0x161)),C=require(_0x1547f4(0x163)),D=require(_0x1547f4(0xe5)),p=require(_0x1547f4(0x144)),l=require(_0x1547f4(0x15b)),g=require(_0x1547f4(0xd6)),f=require(_0x1547f4(0x11b)),_=require('@univerjs-pro/collaboration'),x=require('rxjs'),b=require(_0x1547f4(0x9c)),$=_0x1547f4(0xb8),L={};class E extends o[_0x1547f4(0x15a)]{constructor(){var _0x17100a=_0x1547f4;super(...arguments),v(this,_0x17100a(0x145),new Set()),v(this,_0x17100a(0xa7),new Set());}[_0x1547f4(0xa6)](_0x251240){var _0xd35eee=_0x1547f4;return this['_sharedOperations'][_0xd35eee(0xf5)](_0x251240),o[_0xd35eee(0xb2)](()=>this[_0xd35eee(0x145)]['delete'](_0x251240));}[_0x1547f4(0xc4)](_0x72c97f){var _0x124eb2=_0x1547f4;return this[_0x124eb2(0xa7)][_0x124eb2(0xf5)](_0x72c97f),o[_0x124eb2(0xb2)](()=>this['_reporters'][_0x124eb2(0x13d)](_0x72c97f));}['shouldShareOperation'](_0x1d1bc8){var _0x239a14=_0x1547f4;return this['_sharedOperations'][_0x239a14(0x139)](_0x1d1bc8);}[_0x1547f4(0x138)](_0x33d17f){var _0x2b18c9=_0x1547f4;return Array[_0x2b18c9(0xd5)](this[_0x2b18c9(0xa7)])[_0x2b18c9(0xc6)](_0x2ff9a1=>_0x2ff9a1(_0x33d17f));}}function _0xf182(){var _0x3591fc=['Stop\x20following','BuiltInUIPart','useRef','Fragment','_handleTerminate','url(#$1','attrs','then','_startLiveShareCoordinator','startFollowing','event$','add','getValue','current','SAME_OPERATION_SHARE_INTERVAL','type','Plugin','mask','DesktopLiveShareController','sessionStatus$','_fetchOperations','useObservable','fill','length','unsubscribe','onCommandExecuted','116322dZdFES','values','NOT_FOLLOWING','className','IUniverInstanceService','unitId','disposeWithMe','trim','_config','_unitID','UNIVER_LIVE_SHARE_PLUGIN','stringify','following','dispose','_entities','SetWorksheetActiveOperation','6PgVcfa','getMemberID','You\x27are\x20offline.','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','univerjs-icon\x20univerjs-icon-','none','RxDisposable','react','IDLE','idle','text','offline','SessionStatus','complete','presenting','UniverIcon','UniverInstanceType','UniverLiveSharePlugin','path','set','throttleTime','195534LgSpAd','idSuffix','LiveShareSingle','UNIVER_SHEET','children','concat','LiveShareStatus','ICommandService','div','end','call','DisposableCollection','CollaborationSessionService','pipe','dispose$','getInitialStates','has','includes','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','Button','delete','_status$','CollaborationEvent','You\x27re\x20presenting\x20the\x20document','touchDependencies','_injector','_collabSession','@univerjs/ui','_sharedOperations','getOwnPropertyDescriptor','requireSession','_stopPresenting','getTypeOfUnitAdded$','You\x27re\x20following\x20the\x20presenter','_handleOnline','Injector','CommandType','presenter','forEach','toString','BehaviorSubject','LIVESHARE_TERMINATE','1em','defs','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','FOLLOWING','next','OFFLINE','useState','Disposable','react/jsx-runtime','extend','icon','tag','operations','random','@univerjs/core','_handleNewHost','@univerjs/sheets','_handleOffline','subscribe','svg','defineProperty','_status','_startFollowing','status$','Inject','NEW_CHANGESETS','asObservable','Present\x20this\x20document','registerDependencies','find','jsxs','defIds','_univerInstanceService','PRESENTING','_handleOperation','8917659mbRSAh','UniverCollaborationClientPlugin','_configService','indexOf','You\x27re\x20not\x20following\x20the\x20presenter','tryStartPresenting','currentColor','params','assign','_uiPartsService','UNIVER_UNKNOWN','_collabSessionService','data','48FWbwnr','mutations','_liveShareService','registerComponent','createElement','parse','mergeOverrideWithDependencies','getUnitId','0\x200\x2016\x2016','rxjs/operators','connectInjector','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','_commandDisposable','xlink:href','OPERATION','getCurrentTypeOfUnit$','use','onRendered','_presenter','registerSharedOperation','_reporters','Subject','1558195OVTMCc','clear','_mountLiveShare','colorChannel1','clsx','univer-w-full\x20univer-mb-3\x20univer-text-sm','54996ItpdEP','_init','getOwnPropertySymbols','toDisposable','univer-size-4','LiveShare','IConfigService','prototype','jsx','live-share.config','get','LiveShareService','hasOwnProperty','button','_startPresenting','shouldShareOperation','Dropdown','useEffect','DependentOn','ONLINE','string','registerInitialStateReporter','merge','map','forwardRef','_beIdle','replace','reverse','LiveShareCoordinator','stopFollowing','Start','toStringTag','LIVESHARE_FETCH_OPERATIONS','takeUntil','2684648eaYJic','LIVESHARE_OPERATION','symbol','getLiveShareCoordinator','from','@univerjs/design','send','not-following','evenodd','sheet','HEADER_MENU','LiveShareController','executeCommand','substring','_commandService','_stopFollowing','init','LIVESHARE_NEW_HOST','setConfig','stopPresenting','@univerjs/sheets-ui','_handleNewChangeSets','@univerjs-pro/collaboration-client','displayName','1868510nztwDY'];_0xf182=function(){return _0x3591fc;};return _0xf182();}var H=Object['getOwnPropertyDescriptor'],V=(_0x111b40,_0x5159f7,_0x5254b0,_0x5d4bf8)=>{for(var _0x10f70f=_0x5d4bf8>0x1?void 0x0:_0x5d4bf8?H(_0x5159f7,_0x5254b0):_0x5159f7,_0x5d63c0=_0x111b40['length']-0x1,_0x32f91b;_0x5d63c0>=0x0;_0x5d63c0--)(_0x32f91b=_0x111b40[_0x5d63c0])&&(_0x10f70f=_0x32f91b(_0x10f70f)||_0x10f70f);return _0x10f70f;},k=(_0x11e535,_0x24fb26)=>(_0x243590,_0x1e6671)=>_0x24fb26(_0x243590,_0x1e6671,_0x11e535);let O=class extends o[_0x1547f4(0x15a)]{constructor(_0x5da795){var _0x6e59d8=_0x1547f4;super(),this[_0x6e59d8(0x95)]=_0x5da795,this['_init']();}[_0x1547f4(0xb0)](){var _0x141dc1=_0x1547f4;[D['SetZoomRatioOperation']['id'],D['SetScrollOperation']['id'],C[_0x141dc1(0x113)]['id']][_0x141dc1(0x14f)](_0x50fdac=>{var _0x3faafa=_0x141dc1;this[_0x3faafa(0x10a)](this[_0x3faafa(0x95)][_0x3faafa(0xa6)](_0x50fdac));});}};O=V([k(0x0,o[_0x1547f4(0x7b)](E))],O);var u=function(){var _0x190e90=_0x1547f4;return u=Object[_0x190e90(0x8e)]||function(_0x230912){var _0x623807=_0x190e90;for(var _0x1ac5d8,_0x6992f6=0x1,_0x249a63=arguments[_0x623807(0x101)];_0x6992f6<_0x249a63;_0x6992f6++){_0x1ac5d8=arguments[_0x6992f6];for(var _0x4d4d5c in _0x1ac5d8)Object[_0x623807(0xb6)][_0x623807(0xbb)]['call'](_0x1ac5d8,_0x4d4d5c)&&(_0x230912[_0x4d4d5c]=_0x1ac5d8[_0x4d4d5c]);}return _0x230912;},u['apply'](this,arguments);},M=function(_0x45bdaf,_0x161e6c){var _0x55c5e3=_0x1547f4,_0x2b910b={};for(var _0xe1f8d7 in _0x45bdaf)Object[_0x55c5e3(0xb6)][_0x55c5e3(0xbb)][_0x55c5e3(0x133)](_0x45bdaf,_0xe1f8d7)&&_0x161e6c[_0x55c5e3(0x89)](_0xe1f8d7)<0x0&&(_0x2b910b[_0xe1f8d7]=_0x45bdaf[_0xe1f8d7]);if(_0x45bdaf!=null&&typeof Object[_0x55c5e3(0xb1)]=='function'){for(var _0x2bb0b3=0x0,_0xe1f8d7=Object[_0x55c5e3(0xb1)](_0x45bdaf);_0x2bb0b3<_0xe1f8d7[_0x55c5e3(0x101)];_0x2bb0b3++)_0x161e6c[_0x55c5e3(0x89)](_0xe1f8d7[_0x2bb0b3])<0x0&&Object[_0x55c5e3(0xb6)]['propertyIsEnumerable'][_0x55c5e3(0x133)](_0x45bdaf,_0xe1f8d7[_0x2bb0b3])&&(_0x2b910b[_0xe1f8d7[_0x2bb0b3]]=_0x45bdaf[_0xe1f8d7[_0x2bb0b3]]);}return _0x2b910b;},j=f[_0x1547f4(0xc7)](function(_0x1ecb56,_0x12d332){var _0x1a0bca=_0x1547f4,_0x842eea=_0x1ecb56[_0x1a0bca(0x15d)],_0xcec080=_0x1ecb56['id'],_0x258241=_0x1ecb56[_0x1a0bca(0x107)],_0x4d4784=_0x1ecb56[_0x1a0bca(0x15c)],_0x25058f=M(_0x1ecb56,[_0x1a0bca(0x15d),'id','className','extend']),_0x5a59f4=_0x1a0bca(0x118)[_0x1a0bca(0x12e)](_0xcec080,'\x20')[_0x1a0bca(0x12e)](_0x258241||'')[_0x1a0bca(0x10b)](),_0x20a0cb=f[_0x1a0bca(0xec)]('_'['concat'](G()));return y(_0x842eea,''[_0x1a0bca(0x12e)](_0xcec080),{'defIds':_0x842eea[_0x1a0bca(0x82)],'idSuffix':_0x20a0cb[_0x1a0bca(0xf7)]},u({'ref':_0x12d332,'className':_0x5a59f4},_0x25058f),_0x4d4784);});function y(_0x2027d6,_0x40fdb4,_0xbbe5a7,_0x27e3fb,_0x1e7d12){var _0x2ee55c=_0x1547f4;return f['createElement'](_0x2027d6[_0x2ee55c(0x15e)],u(u({'key':_0x40fdb4},q(_0x2027d6,_0xbbe5a7,_0x1e7d12)),_0x27e3fb),(W(_0x2027d6,_0xbbe5a7)[_0x2ee55c(0x12d)]||[])[_0x2ee55c(0xc6)](function(_0x53a997,_0x351553){var _0x312c17=_0x2ee55c;return y(_0x53a997,''[_0x312c17(0x12e)](_0x40fdb4,'-')[_0x312c17(0x12e)](_0x2027d6[_0x312c17(0x15e)],'-')[_0x312c17(0x12e)](_0x351553),_0xbbe5a7,void 0x0,_0x1e7d12);}));}function _0x2486(_0x33f825,_0x4ea699){var _0xf182ed=_0xf182();return _0x2486=function(_0x2486ac,_0x1dbf7d){_0x2486ac=_0x2486ac-0x75;var _0x197bd5=_0xf182ed[_0x2486ac];return _0x197bd5;},_0x2486(_0x33f825,_0x4ea699);}function q(_0x39ef52,_0xf8684d,_0x1258b5){var _0x1d78b3=_0x1547f4,_0x41570e=u({},_0x39ef52['attrs']);_0x1258b5!=null&&_0x1258b5[_0x1d78b3(0xac)]&&_0x41570e[_0x1d78b3(0x100)]==='colorChannel1'&&(_0x41570e[_0x1d78b3(0x100)]=_0x1258b5[_0x1d78b3(0xac)]),_0x39ef52['tag']===_0x1d78b3(0xfb)&&_0x41570e['id']&&(_0x41570e['id']=_0x41570e['id']+_0xf8684d['idSuffix']),Object['entries'](_0x41570e)['forEach'](function(_0x10eb6f){var _0x17447c=_0x1d78b3,_0x12831a=_0x10eb6f[0x0],_0x5ca966=_0x10eb6f[0x1];_0x12831a===_0x17447c(0xfb)&&typeof _0x5ca966==_0x17447c(0xc3)&&(_0x41570e[_0x12831a]=_0x5ca966[_0x17447c(0xc9)](/url\(#(.*)\)/,'url(#$1'[_0x17447c(0x12e)](_0xf8684d['idSuffix'],')')));});var _0x11fc54=_0xf8684d[_0x1d78b3(0x82)];return!_0x11fc54||_0x11fc54['length']===0x0||(_0x39ef52[_0x1d78b3(0x15e)]===_0x1d78b3(0xa3)&&_0x41570e['xlink:href']&&(_0x41570e[_0x1d78b3(0xa0)]=_0x41570e[_0x1d78b3(0xa0)]+_0xf8684d[_0x1d78b3(0x12a)]),Object['entries'](_0x41570e)[_0x1d78b3(0x14f)](function(_0x5291e3){var _0x5e2b8e=_0x1d78b3,_0x23a28b=_0x5291e3[0x0],_0x4df4b5=_0x5291e3[0x1];typeof _0x4df4b5==_0x5e2b8e(0xc3)&&(_0x41570e[_0x23a28b]=_0x4df4b5[_0x5e2b8e(0xc9)](/url\(#(.*)\)/,_0x5e2b8e(0xef)['concat'](_0xf8684d[_0x5e2b8e(0x12a)],')')));})),_0x41570e;}function W(_0x103ca2,_0x210796){var _0x25128b=_0x1547f4,_0x31ad55,_0xfb9514=_0x210796[_0x25128b(0x82)];return!_0xfb9514||_0xfb9514[_0x25128b(0x101)]===0x0?_0x103ca2:_0x103ca2[_0x25128b(0x15e)]===_0x25128b(0x154)&&(!((_0x31ad55=_0x103ca2[_0x25128b(0x12d)])===null||_0x31ad55===void 0x0)&&_0x31ad55[_0x25128b(0x101)])?u(u({},_0x103ca2),{'children':_0x103ca2[_0x25128b(0x12d)][_0x25128b(0xc6)](function(_0x560a29){var _0x4a257e=_0x25128b;return typeof _0x560a29[_0x4a257e(0xf0)]['id']==_0x4a257e(0xc3)&&_0xfb9514&&_0xfb9514[_0x4a257e(0x89)](_0x560a29[_0x4a257e(0xf0)]['id'])>-0x1?u(u({},_0x560a29),{'attrs':u(u({},_0x560a29['attrs']),{'id':_0x560a29[_0x4a257e(0xf0)]['id']+_0x210796[_0x4a257e(0x12a)]})}):_0x560a29;})}):_0x103ca2;}function G(){var _0x156011=_0x1547f4;return Math[_0x156011(0x160)]()[_0x156011(0x150)](0x24)[_0x156011(0xde)](0x2,0x8);}j['displayName']=_0x1547f4(0x123);var B={'tag':_0x1547f4(0x76),'attrs':{'fill':_0x1547f4(0x119),'viewBox':_0x1547f4(0x9b),'width':_0x1547f4(0x153),'height':_0x1547f4(0x153)},'children':[{'tag':_0x1547f4(0x126),'attrs':{'fill':_0x1547f4(0x8c),'d':_0x1547f4(0x117)}},{'tag':_0x1547f4(0x126),'attrs':{'fill':_0x1547f4(0x8c),'d':_0x1547f4(0x9e),'fillRule':_0x1547f4(0xd9),'clipRule':'evenodd'}}]},P=f['forwardRef'](function(_0x123d94,_0x1149bc){var _0x1033a5=_0x1547f4;return f[_0x1033a5(0x97)](j,Object[_0x1033a5(0x8e)]({},_0x123d94,{'id':'live-share-single','ref':_0x1149bc,'icon':B}));});P[_0x1547f4(0xe8)]=_0x1547f4(0x12b);var Y=Object[_0x1547f4(0x146)],R=(_0x4e1959,_0x34266c,_0x440532,_0x17563c)=>{var _0x4ca75e=_0x1547f4;for(var _0xa285ed=_0x17563c>0x1?void 0x0:_0x17563c?Y(_0x34266c,_0x440532):_0x34266c,_0x5c56c6=_0x4e1959[_0x4ca75e(0x101)]-0x1,_0x12369a;_0x5c56c6>=0x0;_0x5c56c6--)(_0x12369a=_0x4e1959[_0x5c56c6])&&(_0xa285ed=_0x12369a(_0xa285ed)||_0xa285ed);return _0xa285ed;},S=(_0x26dac4,_0x39fcab)=>(_0xab06d7,_0x508d28)=>_0x39fcab(_0xab06d7,_0x508d28,_0x26dac4);exports[_0x1547f4(0xdc)]=class extends o[_0x1547f4(0x11a)]{constructor(_0x5281cd,_0x4bcae5,_0x50982c){var _0x18c73f=_0x1547f4;super(),v(this,'_entities',new Map()),(this[_0x18c73f(0x83)]=_0x5281cd,this['_injector']=_0x4bcae5,this[_0x18c73f(0x91)]=_0x50982c,this[_0x18c73f(0xb0)]());}async[_0x1547f4(0xd4)](_0x618b38){var _0x342d65=_0x1547f4;return this['_entities']['has'](_0x618b38)||await this[_0x342d65(0xf2)](_0x618b38),this['_entities'][_0x342d65(0xb9)](_0x618b38);}[_0x1547f4(0xb0)](){var _0x1f8e50=_0x1547f4;this['_univerInstanceService'][_0x1f8e50(0x149)](o[_0x1f8e50(0x124)][_0x1f8e50(0x12c)])['pipe'](b['takeUntil'](this[_0x1f8e50(0x137)]))[_0x1f8e50(0x75)](async _0x290288=>{var _0x5a018e=_0x1f8e50;const _0x53c11a=_0x290288['getUnitId']();this['_entities'][_0x5a018e(0x139)](_0x53c11a)||this[_0x5a018e(0xf2)](_0x53c11a);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](o[_0x1f8e50(0x124)]['UNIVER_SHEET'])[_0x1f8e50(0x136)](b[_0x1f8e50(0xd0)](this[_0x1f8e50(0x137)]))[_0x1f8e50(0x75)](_0xaf0fdb=>{var _0x29a3cf=_0x1f8e50;const _0x25910e=_0xaf0fdb['getUnitId'](),_0xeb8f6a=this[_0x29a3cf(0x112)]['get'](_0x25910e);_0xeb8f6a==null||_0xeb8f6a['dispose']();});}async[_0x1547f4(0xf2)](_0x2c381f){var _0x268651=_0x1547f4;const _0x1a3b23=await this[_0x268651(0x91)][_0x268651(0x147)](_0x2c381f),_0x2b1630=this[_0x268651(0x142)]['createInstance'](exports[_0x268651(0xcb)],_0x2c381f,_0x1a3b23);return _0x2b1630['init'](),this[_0x268651(0x112)][_0x268651(0x127)](_0x2c381f,_0x2b1630),_0x2b1630;}},exports['LiveShareController']=R([S(0x0,o[_0x1547f4(0x108)]),S(0x1,o[_0x1547f4(0x7b)](o[_0x1547f4(0x14c)])),S(0x2,o[_0x1547f4(0x7b)](m[_0x1547f4(0x135)]))],exports[_0x1547f4(0xdc)]);var h=(_0x16efbf=>(_0x16efbf[_0x1547f4(0x158)]='offline',_0x16efbf[_0x1547f4(0x11c)]=_0x1547f4(0x11d),_0x16efbf[_0x1547f4(0x156)]=_0x1547f4(0x110),_0x16efbf[_0x1547f4(0x106)]='not-following',_0x16efbf[_0x1547f4(0x84)]=_0x1547f4(0x122),_0x16efbf))(h||{});const Z=_0x1547f4(0xf8),J=0xc8;exports['LiveShareCoordinator']=class extends o[_0x1547f4(0x11a)]{constructor(_0x10c192,_0xc5645d,_0xfba2e8,_0x46a4be,_0x1e2ae0){var _0x925d4f=_0x1547f4;super(),v(this,_0x925d4f(0x13e),new x[(_0x925d4f(0x151))](_0x925d4f(0x11d))),v(this,_0x925d4f(0x7a),this[_0x925d4f(0x13e)][_0x925d4f(0x7d)]()),v(this,_0x925d4f(0xb0),!0x1),v(this,_0x925d4f(0x9f),null),v(this,_0x925d4f(0xa5),null),(this[_0x925d4f(0x10d)]=_0x10c192,this['_collabSession']=_0xc5645d,this['_configService']=_0xfba2e8,this[_0x925d4f(0x95)]=_0x46a4be,this['_commandService']=_0x1e2ae0);}get['_status'](){var _0x33f871=_0x1547f4;return this[_0x33f871(0x13e)][_0x33f871(0xf6)]();}[_0x1547f4(0x111)](){var _0x5c81a3=_0x1547f4,_0x444dc2;(_0x444dc2=this[_0x5c81a3(0x9f)])==null||_0x444dc2[_0x5c81a3(0x111)](),this[_0x5c81a3(0x13e)][_0x5c81a3(0x157)](_0x5c81a3(0x11d)),this['_status$'][_0x5c81a3(0x121)]();}[_0x1547f4(0xe1)](){var _0x47c0a8=_0x1547f4;this[_0x47c0a8(0xb0)]||(this[_0x47c0a8(0xb0)]=!0x0,this[_0x47c0a8(0x143)][_0x47c0a8(0xfd)][_0x47c0a8(0x136)](b[_0x47c0a8(0xd0)](this[_0x47c0a8(0x137)]))['subscribe'](_0x1cc18c=>{var _0x3643fc=_0x47c0a8;switch(_0x1cc18c){case m[_0x3643fc(0x120)]['OFFLINE']:this[_0x3643fc(0x164)]();break;case m[_0x3643fc(0x120)][_0x3643fc(0xc2)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x47c0a8(0xf4)][_0x47c0a8(0x136)](b[_0x47c0a8(0xd0)](this['dispose$']))[_0x47c0a8(0x75)](_0x58b101=>{var _0x8839ed=_0x47c0a8;const {eventID:_0x322a93}=_0x58b101;switch(_0x322a93){case _[_0x8839ed(0x13f)][_0x8839ed(0xe2)]:this[_0x8839ed(0x162)](_0x58b101);break;case _[_0x8839ed(0x13f)]['LIVESHARE_OPERATION']:this[_0x8839ed(0x85)](_0x58b101);break;case _[_0x8839ed(0x13f)][_0x8839ed(0x152)]:this[_0x8839ed(0xee)]();break;case _[_0x8839ed(0x13f)][_0x8839ed(0x7c)]:this[_0x8839ed(0xe6)](_0x58b101);break;}}));}[_0x1547f4(0x8b)](){var _0xf54ede=_0x1547f4;this[_0xf54ede(0x143)][_0xf54ede(0xd7)]({'eventID':_[_0xf54ede(0x13f)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0xf54ede(0x10d)],'userID':this[_0xf54ede(0x143)][_0xf54ede(0x115)]()}},this['_unitID']);}['stopPresenting'](){var _0x3f258f=_0x1547f4;this['_status']==='presenting'&&(this['_status$'][_0x3f258f(0x157)](_0x3f258f(0x11d)),this[_0x3f258f(0x143)]['send']({'eventID':_['CollaborationEvent'][_0x3f258f(0x152)],'data':{'unitID':this[_0x3f258f(0x10d)]}},this[_0x3f258f(0x10d)]));}[_0x1547f4(0xf3)](){var _0x59a38c=_0x1547f4;this[_0x59a38c(0x78)]===_0x59a38c(0xd8)&&(this[_0x59a38c(0x13e)]['next'](_0x59a38c(0x110)),this[_0x59a38c(0x79)]());}[_0x1547f4(0xcc)](){var _0x514c36=_0x1547f4;this[_0x514c36(0x78)]===_0x514c36(0x110)&&this[_0x514c36(0xe0)]();}[_0x1547f4(0x162)](_0x21c1ed){var _0x132222=_0x1547f4;const {presenter:_0xf55c6b}=_0x21c1ed[_0x132222(0x92)],_0x4945c8=this['_collabSession'][_0x132222(0x115)]();this['_presenter']=_0xf55c6b,_0xf55c6b===_0x4945c8?(this[_0x132222(0xe0)](),this['_startPresenting']()):this[_0x132222(0x78)]!==_0x132222(0xd8)&&(this['_stopPresenting'](),this[_0x132222(0x79)]());}[_0x1547f4(0xfe)](){var _0x4950f0=_0x1547f4;const _0x519650={'eventID':_['CollaborationEvent'][_0x4950f0(0xcf)]};this['_collabSession'][_0x4950f0(0xd7)](_0x519650,this[_0x4950f0(0x10d)]);}['_handleTerminate'](){var _0x31ea07=_0x1547f4;this['_presenter']=null,this[_0x31ea07(0x78)]!==_0x31ea07(0x122)&&this[_0x31ea07(0xc8)]();}[_0x1547f4(0xe6)](_0x29dc77){var _0x257eef=_0x1547f4;if(this[_0x257eef(0x78)]==='following'&&this[_0x257eef(0xa5)]===_0x29dc77[_0x257eef(0x92)]['memberID']){const _0x17d849=_['parseProtocolChangeset'](_0x29dc77[_0x257eef(0x92)])[_0x257eef(0x94)][_0x257eef(0xca)]()[_0x257eef(0x80)](_0xd181fd=>_0xd181fd['id']===C['InsertSheetMutation']['id']);if(_0x17d849){const _0x5220da=_0x17d849[_0x257eef(0x8d)][_0x257eef(0x109)],_0x20a2c5=_0x17d849['params'][_0x257eef(0xda)]['id'];setTimeout(()=>{var _0x576f74=_0x257eef;this[_0x576f74(0xdf)][_0x576f74(0xdd)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x5220da,'subUnitId':_0x20a2c5},{'fromCollab':!0x0});});}}}[_0x1547f4(0xbd)](){var _0x2adcd5=_0x1547f4;this[_0x2adcd5(0x13e)][_0x2adcd5(0x157)](_0x2adcd5(0x122));const _0x440ad6=new Map(),_0x13a527=this['_commandDisposable']=new o[(_0x2adcd5(0x134))]();_0x13a527['add'](o[_0x2adcd5(0xb2)](()=>{var _0x17d99c=_0x2adcd5;_0x440ad6[_0x17d99c(0x14f)](_0x42a6b7=>_0x42a6b7[_0x17d99c(0x121)]()),_0x440ad6[_0x17d99c(0xaa)]();})),_0x13a527[_0x2adcd5(0xf5)](this[_0x2adcd5(0xdf)][_0x2adcd5(0x103)](_0x39e492=>{var _0x24e54f=_0x2adcd5,_0x4f5830;if(_0x39e492[_0x24e54f(0xf9)]!==o[_0x24e54f(0x14d)][_0x24e54f(0xa1)]||!this['_liveShareService'][_0x24e54f(0xbe)](_0x39e492['id']))return;const {id:_0x222fcf}=_0x39e492;let _0xa01d6e;_0x440ad6[_0x24e54f(0x139)](_0x222fcf)?_0xa01d6e=_0x440ad6[_0x24e54f(0xb9)](_0x222fcf):(_0xa01d6e=new x[(_0x24e54f(0xa8))](),_0x440ad6[_0x24e54f(0x127)](_0x222fcf,_0xa01d6e),_0xa01d6e[_0x24e54f(0x136)](b[_0x24e54f(0x128)]((_0x4f5830=this[_0x24e54f(0x88)]['getConfig'](Z))!=null?_0x4f5830:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x24e54f(0x75)](_0x269f28=>{var _0x37b525=_0x24e54f;this['_collabSession'][_0x37b525(0xd7)]({'eventID':_['CollaborationEvent'][_0x37b525(0xd2)],'data':{'unitID':this['_unitID'],'operations':{[_0x269f28['id']]:{'id':_0x269f28['id'],'params':JSON['stringify'](_0x269f28[_0x37b525(0x8d)])}}}},this[_0x37b525(0x10d)]);})),_0xa01d6e[_0x24e54f(0x157)](_0x39e492);})),this[_0x2adcd5(0x95)][_0x2adcd5(0x138)](this[_0x2adcd5(0x10d)])[_0x2adcd5(0x14f)](_0x3ca9d7=>this['_collabSession'][_0x2adcd5(0xd7)]({'eventID':_[_0x2adcd5(0x13f)][_0x2adcd5(0xd2)],'data':{'unitID':this['_unitID'],'operations':{[_0x3ca9d7['id']]:{'id':_0x3ca9d7['id'],'params':JSON[_0x2adcd5(0x10f)](_0x3ca9d7['params'])}}}},this[_0x2adcd5(0x10d)]));}[_0x1547f4(0x148)](){var _0x23b0a8=_0x1547f4,_0x45e92c;this['_status$'][_0x23b0a8(0x157)](_0x23b0a8(0x11d)),(_0x45e92c=this[_0x23b0a8(0x9f)])==null||_0x45e92c[_0x23b0a8(0x111)](),this[_0x23b0a8(0x9f)]=null;}['_startFollowing'](){var _0x5c9f69=_0x1547f4,_0x514889;(_0x514889=this[_0x5c9f69(0x9f)])==null||_0x514889[_0x5c9f69(0x111)](),this[_0x5c9f69(0x13e)][_0x5c9f69(0x157)](_0x5c9f69(0x110));}[_0x1547f4(0xc8)](){var _0x400660=_0x1547f4,_0x559aff;this[_0x400660(0x13e)][_0x400660(0x157)](_0x400660(0x11d)),(_0x559aff=this[_0x400660(0x9f)])==null||_0x559aff[_0x400660(0x111)](),this[_0x400660(0x9f)]=null;}[_0x1547f4(0xe0)](){var _0x44b435=_0x1547f4,_0x2d1c45;this[_0x44b435(0x13e)]['next'](_0x44b435(0xd8)),(_0x2d1c45=this[_0x44b435(0x9f)])==null||_0x2d1c45[_0x44b435(0x111)]();}[_0x1547f4(0x85)](_0x262659){var _0xf1c6a9=_0x1547f4;if([_0xf1c6a9(0x122),_0xf1c6a9(0xd8),_0xf1c6a9(0x11f)][_0xf1c6a9(0x13a)](this[_0xf1c6a9(0x78)])||!_0x262659[_0xf1c6a9(0x92)][_0xf1c6a9(0x14e)]||_0x262659[_0xf1c6a9(0x92)][_0xf1c6a9(0x14e)]===this['_collabSession'][_0xf1c6a9(0x115)]())return;this['_status']===_0xf1c6a9(0x11d)&&this[_0xf1c6a9(0x79)]();const _0x22ba4c=_0x262659[_0xf1c6a9(0x92)][_0xf1c6a9(0x15f)];Object[_0xf1c6a9(0x105)](_0x22ba4c)[_0xf1c6a9(0x14f)](_0x3b4e9c=>{var _0x3f0975=_0xf1c6a9;this[_0x3f0975(0xdf)][_0x3f0975(0xdd)](_0x3b4e9c['id'],_0x3b4e9c[_0x3f0975(0x8d)]?JSON[_0x3f0975(0x98)](_0x3b4e9c[_0x3f0975(0x8d)]):null,{'fromCollab':!0x0});});}[_0x1547f4(0x164)](){var _0x20272c=_0x1547f4,_0x2eece4;this[_0x20272c(0x13e)][_0x20272c(0x157)](_0x20272c(0x11f)),(_0x2eece4=this[_0x20272c(0x9f)])==null||_0x2eece4['dispose']();}[_0x1547f4(0x14b)](){var _0x57f0b0=_0x1547f4;this[_0x57f0b0(0x13e)][_0x57f0b0(0x157)]('idle'),this[_0x57f0b0(0xfe)]();}},exports[_0x1547f4(0xcb)]=R([S(0x2,o['IConfigService']),S(0x3,o['Inject'](E)),S(0x4,o[_0x1547f4(0x130)])],exports[_0x1547f4(0xcb)]);function A(){var _0x172766=_0x1547f4;const _0x3d4285=p['useDependency'](exports[_0x172766(0xdc)]),_0x429595=p['useDependency'](o['IUniverInstanceService']),_0x2cdc79=p[_0x172766(0xff)](()=>_0x429595[_0x172766(0xa2)](o[_0x172766(0x124)][_0x172766(0x12c)]),void 0x0,!0x1,[]),[_0x481c7e,_0x36c122]=f[_0x172766(0x159)](null),[_0x206a8c,_0x2233ca]=f[_0x172766(0x159)](h[_0x172766(0x11c)]),_0x2d96c4=f[_0x172766(0xec)](null);return f[_0x172766(0xc0)](()=>(_0x2cdc79&&_0x3d4285[_0x172766(0xd4)](_0x2cdc79[_0x172766(0x9a)]())[_0x172766(0xf1)](_0x23d922=>{var _0x351419=_0x172766;_0x36c122(_0x23d922),_0x2d96c4[_0x351419(0xf7)]=_0x23d922[_0x351419(0x7a)][_0x351419(0x75)](_0x5743fe=>{_0x2233ca(_0x5743fe);});}),()=>{var _0x2adf32=_0x172766,_0x5076f0;(_0x5076f0=_0x2d96c4['current'])==null||_0x5076f0[_0x2adf32(0x102)](),_0x2d96c4[_0x2adf32(0xf7)]=null;}),[_0x2cdc79,_0x3d4285]),_0x481c7e?l[_0x172766(0xb7)](g[_0x172766(0xbf)],{'align':_0x172766(0x132),'disabled':_0x206a8c===h[_0x172766(0x158)],'className':_0x172766(0x13b),'overlay':l[_0x172766(0xb7)](K,{'status':_0x206a8c,'coordinator':_0x481c7e}),'children':l[_0x172766(0xb7)](_0x172766(0xbc),{'className':g[_0x172766(0xad)](_0x172766(0x155),{'univer-cursor-not-allowed':_0x206a8c===h[_0x172766(0x158)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x206a8c!==h['OFFLINE']}),'type':_0x172766(0xbc),'children':l['jsx'](P,{'className':_0x172766(0xb3)})})}):null;}function K(_0x51dd2a){var _0x4d697e=_0x1547f4;const {status:_0x3238bd,coordinator:_0x40e760}=_0x51dd2a;switch(_0x3238bd){case h['IDLE']:return l['jsx'](z,{'coordinator':_0x40e760});case h[_0x4d697e(0x156)]:return l[_0x4d697e(0xb7)](Q,{'coordinator':_0x40e760});case h[_0x4d697e(0x106)]:return l['jsx'](X,{'coordinator':_0x40e760});case h['OFFLINE']:return l['jsx'](te,{});case h[_0x4d697e(0x84)]:return l[_0x4d697e(0xb7)](ee,{'coordinator':_0x40e760});default:return null;}}function z(_0xe57ab0){var _0x3ab516=_0x1547f4;const {coordinator:_0xf4ff35}=_0xe57ab0;return l[_0x3ab516(0x81)](l[_0x3ab516(0xed)],{'children':[l['jsx']('div',{'className':_0x3ab516(0xae),'children':_0x3ab516(0x7e)}),l['jsx'](g[_0x3ab516(0x13c)],{'onClick':()=>_0xf4ff35['tryStartPresenting'](),'children':_0x3ab516(0xcd)})]});}function Q(_0x47a0a2){var _0x2a4b5d=_0x1547f4;const {coordinator:_0x1f7701}=_0x47a0a2;return l[_0x2a4b5d(0x81)](l[_0x2a4b5d(0xed)],{'children':[l[_0x2a4b5d(0xb7)](_0x2a4b5d(0x131),{'className':_0x2a4b5d(0xae),'children':_0x2a4b5d(0x14a)}),l['jsx'](g[_0x2a4b5d(0x13c)],{'onClick':()=>_0x1f7701[_0x2a4b5d(0xcc)](),'children':_0x2a4b5d(0xea)})]});}function X(_0x400662){var _0x46b37d=_0x1547f4;const {coordinator:_0x114fb3}=_0x400662;return l['jsxs'](l['Fragment'],{'children':[l[_0x46b37d(0xb7)](_0x46b37d(0x131),{'className':_0x46b37d(0xae),'children':_0x46b37d(0x8a)}),l['jsx'](g[_0x46b37d(0x13c)],{'variant':_0x46b37d(0x11e),'onClick':()=>_0x114fb3['startFollowing'](),'children':'Start\x20following'})]});}function ee(_0x2cecde){var _0x260439=_0x1547f4;const {coordinator:_0x13f2e0}=_0x2cecde;return l['jsxs'](l[_0x260439(0xed)],{'children':[l[_0x260439(0xb7)](_0x260439(0x131),{'className':_0x260439(0xae),'children':_0x260439(0x140)}),l[_0x260439(0xb7)](g[_0x260439(0x13c)],{'variant':'default','onClick':()=>_0x13f2e0[_0x260439(0xe4)](),'children':'Stop\x20presenting'})]});}function te(){var _0x281b51=_0x1547f4;return l[_0x281b51(0xb7)](l[_0x281b51(0xed)],{'children':_0x281b51(0x116)});}var ie=Object[_0x1547f4(0x146)],ne=(_0x233f9c,_0x1dcccc,_0x22870a,_0x33c64b)=>{var _0xfeebf9=_0x1547f4;for(var _0x156512=_0x33c64b>0x1?void 0x0:_0x33c64b?ie(_0x1dcccc,_0x22870a):_0x1dcccc,_0xca84cc=_0x233f9c[_0xfeebf9(0x101)]-0x1,_0x44436a;_0xca84cc>=0x0;_0xca84cc--)(_0x44436a=_0x233f9c[_0xca84cc])&&(_0x156512=_0x44436a(_0x156512)||_0x156512);return _0x156512;},N=(_0x372a4d,_0x1fdde2)=>(_0x10a9d3,_0x337f34)=>_0x1fdde2(_0x10a9d3,_0x337f34,_0x372a4d);exports[_0x1547f4(0xfc)]=class extends o[_0x1547f4(0x15a)]{constructor(_0x232ea0,_0x5e5fd2){var _0xd48302=_0x1547f4;super(),this[_0xd48302(0x142)]=_0x232ea0,this[_0xd48302(0x8f)]=_0x5e5fd2,this['_mountLiveShare']();}[_0x1547f4(0xab)](){var _0x3e5521=_0x1547f4;this[_0x3e5521(0x10a)](this[_0x3e5521(0x8f)][_0x3e5521(0x96)](p[_0x3e5521(0xeb)][_0x3e5521(0xdb)],()=>p[_0x3e5521(0x9d)](A,this['_injector'])));}},exports[_0x1547f4(0xfc)]=ne([N(0x0,o[_0x1547f4(0x7b)](o[_0x1547f4(0x14c)])),N(0x1,p['IUIPartsService'])],exports[_0x1547f4(0xfc)]);var re=Object[_0x1547f4(0x77)],se=Object['getOwnPropertyDescriptor'],oe=(_0x31a135,_0x4e7b1c,_0x8a3d91)=>_0x4e7b1c in _0x31a135?re(_0x31a135,_0x4e7b1c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x8a3d91}):_0x31a135[_0x4e7b1c]=_0x8a3d91,ae=(_0x1e5e9e,_0x5244f5,_0x3d78da,_0x4bad33)=>{var _0x344f1e=_0x1547f4;for(var _0x16f62f=_0x4bad33>0x1?void 0x0:_0x4bad33?se(_0x5244f5,_0x3d78da):_0x5244f5,_0x3ae66e=_0x1e5e9e[_0x344f1e(0x101)]-0x1,_0x3e290f;_0x3ae66e>=0x0;_0x3ae66e--)(_0x3e290f=_0x1e5e9e[_0x3ae66e])&&(_0x16f62f=_0x3e290f(_0x16f62f)||_0x16f62f);return _0x16f62f;},w=(_0x583928,_0x4b1b46)=>(_0x100a20,_0x2d5ba9)=>_0x4b1b46(_0x100a20,_0x2d5ba9,_0x583928),T=(_0x2cfe82,_0x4b5100,_0x55bbf6)=>oe(_0x2cfe82,typeof _0x4b5100!=_0x1547f4(0xd3)?_0x4b5100+'':_0x4b5100,_0x55bbf6);const le=_0x1547f4(0x10e);exports[_0x1547f4(0x125)]=class extends o[_0x1547f4(0xfa)]{constructor(_0x287a36=L,_0x2f6ce7,_0x17bfe6){var _0x3e7cd4=_0x1547f4;super(),this[_0x3e7cd4(0x10c)]=_0x287a36,this['_injector']=_0x2f6ce7,this[_0x3e7cd4(0x88)]=_0x17bfe6;const {..._0x1d4fe2}=o[_0x3e7cd4(0xc5)]({},L,this[_0x3e7cd4(0x10c)]);this[_0x3e7cd4(0x88)][_0x3e7cd4(0xe3)]($,_0x1d4fe2);}['onStarting'](){var _0x4695aa=_0x1547f4;o[_0x4695aa(0x7f)](this['_injector'],o[_0x4695aa(0x99)]([[E],[exports[_0x4695aa(0xdc)]],[O],[exports[_0x4695aa(0xfc)]]],this['_config']['override'])),o[_0x4695aa(0x141)](this[_0x4695aa(0x142)],[[O]]);}[_0x1547f4(0xa4)](){var _0x1269a0=_0x1547f4;o[_0x1269a0(0x141)](this[_0x1269a0(0x142)],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x1547f4(0x125)],_0x1547f4(0xf9),o[_0x1547f4(0x124)][_0x1547f4(0x90)]),T(exports[_0x1547f4(0x125)],'pluginName',le),exports['UniverLiveSharePlugin']=ae([o[_0x1547f4(0xc1)](m[_0x1547f4(0x87)]),w(0x1,o['Inject'](o[_0x1547f4(0x14c)])),w(0x2,o[_0x1547f4(0xb5)])],exports['UniverLiveSharePlugin']),exports[_0x1547f4(0xb4)]=A,exports[_0x1547f4(0xba)]=E,exports[_0x1547f4(0x12f)]=h;
|
|
1
|
+
'use strict';function _0x1cf8(_0x70c5ae,_0x259a74){var _0x1d59f4=_0x1d59();return _0x1cf8=function(_0x1cf83b,_0xb24ab7){_0x1cf83b=_0x1cf83b-0x1f1;var _0x1ef064=_0x1d59f4[_0x1cf83b];return _0x1ef064;},_0x1cf8(_0x70c5ae,_0x259a74);}var _0x31d5c1=_0x1cf8;(function(_0x3527f8,_0x237ea9){var _0x1d316f=_0x1cf8,_0x613e84=_0x3527f8();while(!![]){try{var _0x449fcc=-parseInt(_0x1d316f(0x21f))/0x1+-parseInt(_0x1d316f(0x24f))/0x2+parseInt(_0x1d316f(0x227))/0x3*(-parseInt(_0x1d316f(0x1f4))/0x4)+parseInt(_0x1d316f(0x210))/0x5+-parseInt(_0x1d316f(0x24d))/0x6*(parseInt(_0x1d316f(0x268))/0x7)+parseInt(_0x1d316f(0x2d4))/0x8+parseInt(_0x1d316f(0x206))/0x9;if(_0x449fcc===_0x237ea9)break;else _0x613e84['push'](_0x613e84['shift']());}catch(_0x1ddc36){_0x613e84['push'](_0x613e84['shift']());}}}(_0x1d59,0xc8876));var U=Object[_0x31d5c1(0x2a6)],F=(_0x4583df,_0x3c5147,_0x57dcb5)=>_0x3c5147 in _0x4583df?U(_0x4583df,_0x3c5147,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57dcb5}):_0x4583df[_0x3c5147]=_0x57dcb5,v=(_0x3a0cea,_0x31307e,_0x525001)=>F(_0x3a0cea,typeof _0x31307e!='symbol'?_0x31307e+'':_0x31307e,_0x525001);Object[_0x31d5c1(0x2a6)](exports,Symbol[_0x31d5c1(0x219)],{'value':_0x31d5c1(0x286)});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require(_0x31d5c1(0x2a3)),D=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require(_0x31d5c1(0x244)),g=require('@univerjs/design'),f=require(_0x31d5c1(0x269)),_=require('@univerjs-pro/collaboration'),x=require(_0x31d5c1(0x1fc)),b=require(_0x31d5c1(0x217)),$=_0x31d5c1(0x284),L={};class E extends o['Disposable']{constructor(){var _0x2f14b7=_0x31d5c1;super(...arguments),v(this,_0x2f14b7(0x21c),new Set()),v(this,_0x2f14b7(0x28b),new Set());}['registerSharedOperation'](_0x2e40d5){var _0xd5b5bb=_0x31d5c1;return this[_0xd5b5bb(0x21c)]['add'](_0x2e40d5),o[_0xd5b5bb(0x262)](()=>this['_sharedOperations']['delete'](_0x2e40d5));}[_0x31d5c1(0x28d)](_0x4f61dd){var _0x51143b=_0x31d5c1;return this[_0x51143b(0x28b)][_0x51143b(0x223)](_0x4f61dd),o['toDisposable'](()=>this[_0x51143b(0x28b)]['delete'](_0x4f61dd));}[_0x31d5c1(0x20e)](_0x276d6c){var _0x58b705=_0x31d5c1;return this['_sharedOperations'][_0x58b705(0x238)](_0x276d6c);}[_0x31d5c1(0x2aa)](_0x28d9b4){var _0x58bd5f=_0x31d5c1;return Array[_0x58bd5f(0x2a2)](this[_0x58bd5f(0x28b)])['map'](_0x47036b=>_0x47036b(_0x28d9b4));}}var H=Object[_0x31d5c1(0x239)],V=(_0x5dbb64,_0x583fa4,_0x3fb549,_0xd47199)=>{var _0x5eb309=_0x31d5c1;for(var _0x4643c0=_0xd47199>0x1?void 0x0:_0xd47199?H(_0x583fa4,_0x3fb549):_0x583fa4,_0x49a1f9=_0x5dbb64[_0x5eb309(0x24b)]-0x1,_0x2e7204;_0x49a1f9>=0x0;_0x49a1f9--)(_0x2e7204=_0x5dbb64[_0x49a1f9])&&(_0x4643c0=_0x2e7204(_0x4643c0)||_0x4643c0);return _0x4643c0;},k=(_0x315d5f,_0x5da76b)=>(_0x192e5d,_0x2b5d5a)=>_0x5da76b(_0x192e5d,_0x2b5d5a,_0x315d5f);function _0x1d59(){var _0x5f41e3=['assign','_beIdle','trim','xlink:href','0\x200\x2016\x2016','rxjs/operators','CollaborationEvent','toStringTag','colorChannel1','registerComponent','_sharedOperations','prototype','Fragment','559327dkLUvs','LiveShareController','button','createElement','add','IDLE','sheet','_init','93AMoWUv','startFollowing','getValue','following','_config','dispose$','HEADER_MENU','pluginName','pipe','values','LIVESHARE_TERMINATE','_entities','SessionStatus','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','createInstance','You\x27re\x20not\x20following\x20the\x20presenter','UniverInstanceType','has','getOwnPropertyDescriptor','mask','presenter','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','jsx','Plugin','mergeOverrideWithDependencies','PRESENTING','data','_unitID','LIVESHARE_OPERATION','react/jsx-runtime','_handleTerminate','end','sessionStatus$','FOLLOWING','getOwnPropertySymbols','random','length','fill','28644spyrLG','UNIVER_SHEET','1111022IOLuQm','registerDependencies','event$','unsubscribe','forwardRef','function','Stop\x20presenting','Disposable','UniverIcon','_handleOperation','LiveShareStatus','useObservable','tryStartPresenting','use','concat','SAME_OPERATION_SHARE_INTERVAL','LiveShareSingle','url(#$1','executeCommand','toDisposable','onStarting','connectInjector','defs','stringify','DesktopLiveShareController','371TcmkUX','react','UniverCollaborationClientPlugin','1em','_collabSessionService','setConfig','_status$','Present\x20this\x20document','memberID','getTypeOfUnitAdded$','mutations','_handleOffline','Subject','SetWorksheetActiveOperation','stopPresenting','replace','_stopFollowing','_univerInstanceService','jsxs','current','_handleNewChangeSets','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','displayName','symbol','text','div','clear','getConfig','live-share.config','_handleOnline','Module','getLiveShareCoordinator','_handleNewHost','useState','_startLiveShareCoordinator','_reporters','get','registerInitialStateReporter','unitId','hasOwnProperty','not-following','RxDisposable','univer-size-4','_commandDisposable','apply','_stopPresenting','init','dispose','LiveShareService','stopFollowing','evenodd','IConfigService','default','getCurrentTypeOfUnit$','live-share-single','none','forEach','svg','from','@univerjs/sheets','_uiPartsService','indexOf','defineProperty','path','_commandService','IUniverInstanceService','getInitialStates','parseProtocolChangeset','LiveShareCoordinator','Injector','NOT_FOLLOWING','throttleTime','offline','find','merge','className','LIVESHARE_NEW_HOST','params','extend','CommandType','complete','OPERATION','call','touchDependencies','getUnitId','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','defIds','useEffect','icon','OFFLINE','BuiltInUIPart','_status','ICommandService','Button','entries','useRef','idSuffix','getMemberID','registerSharedOperation','idle','_fetchOperations','BehaviorSubject','useDependency','tag','disposeWithMe','Dropdown','map','InsertSheetMutation','7707224PtOHfp','DisposableCollection','NEW_CHANGESETS','You\x27re\x20following\x20the\x20presenter','set','requireSession','_injector','type','_collabSession','univer-w-full\x20univer-mb-3\x20univer-text-sm','5452RDdELe','_presenter','Stop\x20following','reverse','_liveShareService','onRendered','includes','You\x27re\x20presenting\x20the\x20document','rxjs','children','_startFollowing','string','attrs','subscribe','presenting','getTypeOfUnitDisposed$','DependentOn','next','8128773auAJcg','You\x27are\x20offline.','UniverLiveSharePlugin','send','_startPresenting','currentColor','then','Inject','shouldShareOperation','takeUntil','1824395YHOEGz','_configService'];_0x1d59=function(){return _0x5f41e3;};return _0x1d59();}let O=class extends o[_0x31d5c1(0x256)]{constructor(_0x590528){var _0x329447=_0x31d5c1;super(),this[_0x329447(0x1f8)]=_0x590528,this[_0x329447(0x226)]();}[_0x31d5c1(0x226)](){var _0x4bf2bd=_0x31d5c1;[D['SetZoomRatioOperation']['id'],D['SetScrollOperation']['id'],C[_0x4bf2bd(0x275)]['id']]['forEach'](_0x1a15e9=>{var _0x4135e9=_0x4bf2bd;this[_0x4135e9(0x2d0)](this[_0x4135e9(0x1f8)][_0x4135e9(0x2ca)](_0x1a15e9));});}};O=V([k(0x0,o[_0x31d5c1(0x20d)](E))],O);var u=function(){var _0x4d141=_0x31d5c1;return u=Object[_0x4d141(0x212)]||function(_0x2fe168){var _0x2d7384=_0x4d141;for(var _0x1576c0,_0x869ce8=0x1,_0x2db1fb=arguments['length'];_0x869ce8<_0x2db1fb;_0x869ce8++){_0x1576c0=arguments[_0x869ce8];for(var _0x338499 in _0x1576c0)Object[_0x2d7384(0x21d)][_0x2d7384(0x28f)][_0x2d7384(0x2ba)](_0x1576c0,_0x338499)&&(_0x2fe168[_0x338499]=_0x1576c0[_0x338499]);}return _0x2fe168;},u[_0x4d141(0x294)](this,arguments);},M=function(_0x34c9ef,_0xcb452f){var _0x38a0f0=_0x31d5c1,_0x3a9c06={};for(var _0x503c5a in _0x34c9ef)Object[_0x38a0f0(0x21d)][_0x38a0f0(0x28f)]['call'](_0x34c9ef,_0x503c5a)&&_0xcb452f[_0x38a0f0(0x2a5)](_0x503c5a)<0x0&&(_0x3a9c06[_0x503c5a]=_0x34c9ef[_0x503c5a]);if(_0x34c9ef!=null&&typeof Object[_0x38a0f0(0x249)]==_0x38a0f0(0x254)){for(var _0x7a8fff=0x0,_0x503c5a=Object[_0x38a0f0(0x249)](_0x34c9ef);_0x7a8fff<_0x503c5a[_0x38a0f0(0x24b)];_0x7a8fff++)_0xcb452f[_0x38a0f0(0x2a5)](_0x503c5a[_0x7a8fff])<0x0&&Object[_0x38a0f0(0x21d)]['propertyIsEnumerable'][_0x38a0f0(0x2ba)](_0x34c9ef,_0x503c5a[_0x7a8fff])&&(_0x3a9c06[_0x503c5a[_0x7a8fff]]=_0x34c9ef[_0x503c5a[_0x7a8fff]]);}return _0x3a9c06;},j=f[_0x31d5c1(0x253)](function(_0x1e440c,_0x4c6b8d){var _0x560803=_0x31d5c1,_0x212e8e=_0x1e440c[_0x560803(0x2c0)],_0x45c16a=_0x1e440c['id'],_0x265fda=_0x1e440c[_0x560803(0x2b3)],_0x109c40=_0x1e440c[_0x560803(0x2b6)],_0x113d71=M(_0x1e440c,[_0x560803(0x2c0),'id','className',_0x560803(0x2b6)]),_0x2af50a='univerjs-icon\x20univerjs-icon-'[_0x560803(0x25d)](_0x45c16a,'\x20')['concat'](_0x265fda||'')[_0x560803(0x214)](),_0xe89384=f[_0x560803(0x2c7)]('_'[_0x560803(0x25d)](G()));return y(_0x212e8e,''[_0x560803(0x25d)](_0x45c16a),{'defIds':_0x212e8e[_0x560803(0x2be)],'idSuffix':_0xe89384[_0x560803(0x27b)]},u({'ref':_0x4c6b8d,'className':_0x2af50a},_0x113d71),_0x109c40);});function y(_0x49cbfe,_0x41706c,_0x40370b,_0x478bf7,_0x361820){var _0x31e492=_0x31d5c1;return f['createElement'](_0x49cbfe[_0x31e492(0x2cf)],u(u({'key':_0x41706c},q(_0x49cbfe,_0x40370b,_0x361820)),_0x478bf7),(W(_0x49cbfe,_0x40370b)['children']||[])[_0x31e492(0x2d2)](function(_0x229c12,_0x2fb5ca){var _0x6b0fdd=_0x31e492;return y(_0x229c12,''[_0x6b0fdd(0x25d)](_0x41706c,'-')[_0x6b0fdd(0x25d)](_0x49cbfe[_0x6b0fdd(0x2cf)],'-')[_0x6b0fdd(0x25d)](_0x2fb5ca),_0x40370b,void 0x0,_0x361820);}));}function q(_0x1865c5,_0x321f47,_0x29c99f){var _0xd56708=_0x31d5c1,_0xf0bb98=u({},_0x1865c5[_0xd56708(0x200)]);_0x29c99f!=null&&_0x29c99f[_0xd56708(0x21a)]&&_0xf0bb98[_0xd56708(0x24c)]===_0xd56708(0x21a)&&(_0xf0bb98[_0xd56708(0x24c)]=_0x29c99f[_0xd56708(0x21a)]),_0x1865c5[_0xd56708(0x2cf)]===_0xd56708(0x23a)&&_0xf0bb98['id']&&(_0xf0bb98['id']=_0xf0bb98['id']+_0x321f47[_0xd56708(0x2c8)]),Object[_0xd56708(0x2c6)](_0xf0bb98)['forEach'](function(_0x4d8dc8){var _0x5b6e2e=_0xd56708,_0x581746=_0x4d8dc8[0x0],_0x38303d=_0x4d8dc8[0x1];_0x581746===_0x5b6e2e(0x23a)&&typeof _0x38303d==_0x5b6e2e(0x1ff)&&(_0xf0bb98[_0x581746]=_0x38303d[_0x5b6e2e(0x277)](/url\(#(.*)\)/,_0x5b6e2e(0x260)[_0x5b6e2e(0x25d)](_0x321f47['idSuffix'],')')));});var _0x3c32f0=_0x321f47[_0xd56708(0x2be)];return!_0x3c32f0||_0x3c32f0[_0xd56708(0x24b)]===0x0||(_0x1865c5[_0xd56708(0x2cf)]===_0xd56708(0x25c)&&_0xf0bb98[_0xd56708(0x215)]&&(_0xf0bb98[_0xd56708(0x215)]=_0xf0bb98[_0xd56708(0x215)]+_0x321f47[_0xd56708(0x2c8)]),Object[_0xd56708(0x2c6)](_0xf0bb98)[_0xd56708(0x2a0)](function(_0xfce57d){var _0x343a59=_0xd56708,_0x506de4=_0xfce57d[0x0],_0x1a8466=_0xfce57d[0x1];typeof _0x1a8466==_0x343a59(0x1ff)&&(_0xf0bb98[_0x506de4]=_0x1a8466[_0x343a59(0x277)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x321f47[_0x343a59(0x2c8)],')')));})),_0xf0bb98;}function W(_0xfdcaad,_0x8fb305){var _0x35dcb2=_0x31d5c1,_0x57e225,_0x290096=_0x8fb305['defIds'];return!_0x290096||_0x290096[_0x35dcb2(0x24b)]===0x0?_0xfdcaad:_0xfdcaad[_0x35dcb2(0x2cf)]===_0x35dcb2(0x265)&&(!((_0x57e225=_0xfdcaad[_0x35dcb2(0x1fd)])===null||_0x57e225===void 0x0)&&_0x57e225[_0x35dcb2(0x24b)])?u(u({},_0xfdcaad),{'children':_0xfdcaad[_0x35dcb2(0x1fd)][_0x35dcb2(0x2d2)](function(_0x38c557){var _0x23ad8f=_0x35dcb2;return typeof _0x38c557[_0x23ad8f(0x200)]['id']==_0x23ad8f(0x1ff)&&_0x290096&&_0x290096[_0x23ad8f(0x2a5)](_0x38c557[_0x23ad8f(0x200)]['id'])>-0x1?u(u({},_0x38c557),{'attrs':u(u({},_0x38c557[_0x23ad8f(0x200)]),{'id':_0x38c557[_0x23ad8f(0x200)]['id']+_0x8fb305[_0x23ad8f(0x2c8)]})}):_0x38c557;})}):_0xfdcaad;}function G(){var _0x1c77a3=_0x31d5c1;return Math[_0x1c77a3(0x24a)]()['toString'](0x24)['substring'](0x2,0x8);}j[_0x31d5c1(0x27e)]=_0x31d5c1(0x257);var B={'tag':_0x31d5c1(0x2a1),'attrs':{'fill':_0x31d5c1(0x29f),'viewBox':_0x31d5c1(0x216),'width':_0x31d5c1(0x26b),'height':'1em'},'children':[{'tag':_0x31d5c1(0x2a7),'attrs':{'fill':'currentColor','d':_0x31d5c1(0x23c)}},{'tag':_0x31d5c1(0x2a7),'attrs':{'fill':_0x31d5c1(0x20b),'d':_0x31d5c1(0x27d),'fillRule':_0x31d5c1(0x29a),'clipRule':_0x31d5c1(0x29a)}}]},P=f[_0x31d5c1(0x253)](function(_0x14eaa9,_0x4d6770){var _0x8ed8ee=_0x31d5c1;return f[_0x8ed8ee(0x222)](j,Object[_0x8ed8ee(0x212)]({},_0x14eaa9,{'id':_0x8ed8ee(0x29e),'ref':_0x4d6770,'icon':B}));});P[_0x31d5c1(0x27e)]=_0x31d5c1(0x25f);var Y=Object[_0x31d5c1(0x239)],R=(_0x55ca34,_0x3560fb,_0x5062df,_0x5e83bf)=>{var _0x57de5f=_0x31d5c1;for(var _0x245ae6=_0x5e83bf>0x1?void 0x0:_0x5e83bf?Y(_0x3560fb,_0x5062df):_0x3560fb,_0x5e143d=_0x55ca34[_0x57de5f(0x24b)]-0x1,_0x57e2f7;_0x5e143d>=0x0;_0x5e143d--)(_0x57e2f7=_0x55ca34[_0x5e143d])&&(_0x245ae6=_0x57e2f7(_0x245ae6)||_0x245ae6);return _0x245ae6;},S=(_0x4e1c83,_0x54c9f9)=>(_0x1ecfe5,_0x371d2e)=>_0x54c9f9(_0x1ecfe5,_0x371d2e,_0x4e1c83);exports[_0x31d5c1(0x220)]=class extends o['RxDisposable']{constructor(_0x563582,_0x437481,_0x235e2e){var _0x26fac6=_0x31d5c1;super(),v(this,_0x26fac6(0x232),new Map()),(this[_0x26fac6(0x279)]=_0x563582,this[_0x26fac6(0x2da)]=_0x437481,this[_0x26fac6(0x26c)]=_0x235e2e,this[_0x26fac6(0x226)]());}async[_0x31d5c1(0x287)](_0x1cf58a){var _0x59b363=_0x31d5c1;return this['_entities'][_0x59b363(0x238)](_0x1cf58a)||await this[_0x59b363(0x28a)](_0x1cf58a),this[_0x59b363(0x232)][_0x59b363(0x28c)](_0x1cf58a);}['_init'](){var _0x30194f=_0x31d5c1;this[_0x30194f(0x279)][_0x30194f(0x271)](o[_0x30194f(0x237)][_0x30194f(0x24e)])[_0x30194f(0x22f)](b[_0x30194f(0x20f)](this[_0x30194f(0x22c)]))[_0x30194f(0x201)](async _0x94b83=>{var _0x35dec4=_0x30194f;const _0x312c20=_0x94b83['getUnitId']();this[_0x35dec4(0x232)]['has'](_0x312c20)||this[_0x35dec4(0x28a)](_0x312c20);}),this[_0x30194f(0x279)][_0x30194f(0x203)](o[_0x30194f(0x237)][_0x30194f(0x24e)])[_0x30194f(0x22f)](b[_0x30194f(0x20f)](this[_0x30194f(0x22c)]))['subscribe'](_0x3d006a=>{var _0xe70b7=_0x30194f;const _0x35cd96=_0x3d006a[_0xe70b7(0x2bc)](),_0xfdcef6=this[_0xe70b7(0x232)][_0xe70b7(0x28c)](_0x35cd96);_0xfdcef6==null||_0xfdcef6['dispose']();});}async[_0x31d5c1(0x28a)](_0x147085){var _0x42b3aa=_0x31d5c1;const _0x199000=await this[_0x42b3aa(0x26c)][_0x42b3aa(0x2d9)](_0x147085),_0x25ec7d=this[_0x42b3aa(0x2da)][_0x42b3aa(0x235)](exports[_0x42b3aa(0x2ac)],_0x147085,_0x199000);return _0x25ec7d[_0x42b3aa(0x296)](),this[_0x42b3aa(0x232)][_0x42b3aa(0x2d8)](_0x147085,_0x25ec7d),_0x25ec7d;}},exports[_0x31d5c1(0x220)]=R([S(0x0,o[_0x31d5c1(0x2a9)]),S(0x1,o[_0x31d5c1(0x20d)](o[_0x31d5c1(0x2ad)])),S(0x2,o[_0x31d5c1(0x20d)](m['CollaborationSessionService']))],exports[_0x31d5c1(0x220)]);var h=(_0x4971be=>(_0x4971be[_0x31d5c1(0x2c1)]=_0x31d5c1(0x2b0),_0x4971be['IDLE']=_0x31d5c1(0x2cb),_0x4971be[_0x31d5c1(0x248)]='following',_0x4971be[_0x31d5c1(0x2ae)]=_0x31d5c1(0x290),_0x4971be['PRESENTING']=_0x31d5c1(0x202),_0x4971be))(h||{});const Z=_0x31d5c1(0x25e),J=0xc8;exports[_0x31d5c1(0x2ac)]=class extends o[_0x31d5c1(0x291)]{constructor(_0x3278ba,_0x105e0b,_0xd02b12,_0x40c1e4,_0x156483){var _0x3ecca8=_0x31d5c1;super(),v(this,_0x3ecca8(0x26e),new x[(_0x3ecca8(0x2cd))](_0x3ecca8(0x2cb))),v(this,'status$',this[_0x3ecca8(0x26e)]['asObservable']()),v(this,_0x3ecca8(0x226),!0x1),v(this,_0x3ecca8(0x293),null),v(this,_0x3ecca8(0x1f5),null),(this[_0x3ecca8(0x242)]=_0x3278ba,this['_collabSession']=_0x105e0b,this['_configService']=_0xd02b12,this[_0x3ecca8(0x1f8)]=_0x40c1e4,this[_0x3ecca8(0x2a8)]=_0x156483);}get[_0x31d5c1(0x2c3)](){var _0x29cb52=_0x31d5c1;return this[_0x29cb52(0x26e)][_0x29cb52(0x229)]();}[_0x31d5c1(0x297)](){var _0x571767=_0x31d5c1,_0x5cfd44;(_0x5cfd44=this[_0x571767(0x293)])==null||_0x5cfd44[_0x571767(0x297)](),this[_0x571767(0x26e)][_0x571767(0x205)](_0x571767(0x2cb)),this[_0x571767(0x26e)][_0x571767(0x2b8)]();}[_0x31d5c1(0x296)](){var _0x3a8755=_0x31d5c1;this[_0x3a8755(0x226)]||(this[_0x3a8755(0x226)]=!0x0,this['_collabSession'][_0x3a8755(0x247)]['pipe'](b[_0x3a8755(0x20f)](this['dispose$']))[_0x3a8755(0x201)](_0xa3b4ec=>{var _0x59b708=_0x3a8755;switch(_0xa3b4ec){case m[_0x59b708(0x233)][_0x59b708(0x2c1)]:this['_handleOffline']();break;case m[_0x59b708(0x233)]['ONLINE']:this[_0x59b708(0x285)]();break;}}),this[_0x3a8755(0x1f2)][_0x3a8755(0x251)][_0x3a8755(0x22f)](b[_0x3a8755(0x20f)](this[_0x3a8755(0x22c)]))[_0x3a8755(0x201)](_0x4cecbe=>{var _0x42583b=_0x3a8755;const {eventID:_0x4a298f}=_0x4cecbe;switch(_0x4a298f){case _[_0x42583b(0x218)][_0x42583b(0x2b4)]:this['_handleNewHost'](_0x4cecbe);break;case _[_0x42583b(0x218)][_0x42583b(0x243)]:this['_handleOperation'](_0x4cecbe);break;case _[_0x42583b(0x218)][_0x42583b(0x231)]:this[_0x42583b(0x245)]();break;case _[_0x42583b(0x218)][_0x42583b(0x2d6)]:this[_0x42583b(0x27c)](_0x4cecbe);break;}}));}[_0x31d5c1(0x25b)](){var _0x5c16b5=_0x31d5c1;this[_0x5c16b5(0x1f2)][_0x5c16b5(0x209)]({'eventID':_[_0x5c16b5(0x218)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x5c16b5(0x242)],'userID':this[_0x5c16b5(0x1f2)][_0x5c16b5(0x2c9)]()}},this[_0x5c16b5(0x242)]);}[_0x31d5c1(0x276)](){var _0x5225e6=_0x31d5c1;this['_status']==='presenting'&&(this[_0x5225e6(0x26e)][_0x5225e6(0x205)]('idle'),this[_0x5225e6(0x1f2)]['send']({'eventID':_[_0x5225e6(0x218)][_0x5225e6(0x231)],'data':{'unitID':this[_0x5225e6(0x242)]}},this[_0x5225e6(0x242)]));}[_0x31d5c1(0x228)](){var _0x172da5=_0x31d5c1;this[_0x172da5(0x2c3)]===_0x172da5(0x290)&&(this['_status$']['next'](_0x172da5(0x22a)),this[_0x172da5(0x1fe)]());}[_0x31d5c1(0x299)](){var _0x541f2d=_0x31d5c1;this[_0x541f2d(0x2c3)]===_0x541f2d(0x22a)&&this[_0x541f2d(0x278)]();}[_0x31d5c1(0x288)](_0x3f6bbd){var _0x34ef10=_0x31d5c1;const {presenter:_0x3c7ffb}=_0x3f6bbd['data'],_0x2a201e=this[_0x34ef10(0x1f2)][_0x34ef10(0x2c9)]();this[_0x34ef10(0x1f5)]=_0x3c7ffb,_0x3c7ffb===_0x2a201e?(this[_0x34ef10(0x278)](),this['_startPresenting']()):this[_0x34ef10(0x2c3)]!==_0x34ef10(0x290)&&(this[_0x34ef10(0x295)](),this[_0x34ef10(0x1fe)]());}[_0x31d5c1(0x2cc)](){var _0xea0d10=_0x31d5c1;const _0x6b204d={'eventID':_[_0xea0d10(0x218)]['LIVESHARE_FETCH_OPERATIONS']};this[_0xea0d10(0x1f2)][_0xea0d10(0x209)](_0x6b204d,this['_unitID']);}[_0x31d5c1(0x245)](){var _0x4d991e=_0x31d5c1;this['_presenter']=null,this[_0x4d991e(0x2c3)]!==_0x4d991e(0x202)&&this[_0x4d991e(0x213)]();}[_0x31d5c1(0x27c)](_0x13eea8){var _0x3923b3=_0x31d5c1;if(this[_0x3923b3(0x2c3)]===_0x3923b3(0x22a)&&this[_0x3923b3(0x1f5)]===_0x13eea8[_0x3923b3(0x241)][_0x3923b3(0x270)]){const _0xddb1ff=_[_0x3923b3(0x2ab)](_0x13eea8['data'])[_0x3923b3(0x272)][_0x3923b3(0x1f7)]()[_0x3923b3(0x2b1)](_0x3fe43a=>_0x3fe43a['id']===C[_0x3923b3(0x2d3)]['id']);if(_0xddb1ff){const _0x53b52e=_0xddb1ff[_0x3923b3(0x2b5)][_0x3923b3(0x28e)],_0x34cab5=_0xddb1ff[_0x3923b3(0x2b5)][_0x3923b3(0x225)]['id'];setTimeout(()=>{var _0x4d3e06=_0x3923b3;this[_0x4d3e06(0x2a8)][_0x4d3e06(0x261)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x53b52e,'subUnitId':_0x34cab5},{'fromCollab':!0x0});});}}}[_0x31d5c1(0x20a)](){var _0x178de1=_0x31d5c1;this[_0x178de1(0x26e)][_0x178de1(0x205)](_0x178de1(0x202));const _0x101c93=new Map(),_0x54eefe=this['_commandDisposable']=new o[(_0x178de1(0x2d5))]();_0x54eefe[_0x178de1(0x223)](o['toDisposable'](()=>{var _0x5308a6=_0x178de1;_0x101c93[_0x5308a6(0x2a0)](_0x29f196=>_0x29f196[_0x5308a6(0x2b8)]()),_0x101c93[_0x5308a6(0x282)]();})),_0x54eefe['add'](this[_0x178de1(0x2a8)]['onCommandExecuted'](_0x21afb2=>{var _0x3fadf6=_0x178de1,_0x53976b;if(_0x21afb2['type']!==o[_0x3fadf6(0x2b7)][_0x3fadf6(0x2b9)]||!this['_liveShareService'][_0x3fadf6(0x20e)](_0x21afb2['id']))return;const {id:_0x426510}=_0x21afb2;let _0xe685a9;_0x101c93[_0x3fadf6(0x238)](_0x426510)?_0xe685a9=_0x101c93[_0x3fadf6(0x28c)](_0x426510):(_0xe685a9=new x[(_0x3fadf6(0x274))](),_0x101c93[_0x3fadf6(0x2d8)](_0x426510,_0xe685a9),_0xe685a9['pipe'](b[_0x3fadf6(0x2af)]((_0x53976b=this[_0x3fadf6(0x211)][_0x3fadf6(0x283)](Z))!=null?_0x53976b:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3fadf6(0x201)](_0x3a33d6=>{var _0x41518d=_0x3fadf6;this[_0x41518d(0x1f2)]['send']({'eventID':_[_0x41518d(0x218)][_0x41518d(0x243)],'data':{'unitID':this['_unitID'],'operations':{[_0x3a33d6['id']]:{'id':_0x3a33d6['id'],'params':JSON[_0x41518d(0x266)](_0x3a33d6[_0x41518d(0x2b5)])}}}},this[_0x41518d(0x242)]);})),_0xe685a9[_0x3fadf6(0x205)](_0x21afb2);})),this[_0x178de1(0x1f8)]['getInitialStates'](this[_0x178de1(0x242)])['forEach'](_0x28c7d4=>this[_0x178de1(0x1f2)][_0x178de1(0x209)]({'eventID':_[_0x178de1(0x218)][_0x178de1(0x243)],'data':{'unitID':this['_unitID'],'operations':{[_0x28c7d4['id']]:{'id':_0x28c7d4['id'],'params':JSON[_0x178de1(0x266)](_0x28c7d4['params'])}}}},this[_0x178de1(0x242)]));}[_0x31d5c1(0x295)](){var _0x3ef66=_0x31d5c1,_0x26395a;this[_0x3ef66(0x26e)][_0x3ef66(0x205)](_0x3ef66(0x2cb)),(_0x26395a=this['_commandDisposable'])==null||_0x26395a[_0x3ef66(0x297)](),this[_0x3ef66(0x293)]=null;}[_0x31d5c1(0x1fe)](){var _0x5b1fea=_0x31d5c1,_0x429932;(_0x429932=this[_0x5b1fea(0x293)])==null||_0x429932[_0x5b1fea(0x297)](),this[_0x5b1fea(0x26e)][_0x5b1fea(0x205)](_0x5b1fea(0x22a));}[_0x31d5c1(0x213)](){var _0x374457=_0x31d5c1,_0x489497;this['_status$']['next'](_0x374457(0x2cb)),(_0x489497=this['_commandDisposable'])==null||_0x489497[_0x374457(0x297)](),this[_0x374457(0x293)]=null;}['_stopFollowing'](){var _0xdad4a2=_0x31d5c1,_0x1f405c;this[_0xdad4a2(0x26e)]['next']('not-following'),(_0x1f405c=this[_0xdad4a2(0x293)])==null||_0x1f405c[_0xdad4a2(0x297)]();}[_0x31d5c1(0x258)](_0x354e28){var _0x54115e=_0x31d5c1;if(['presenting',_0x54115e(0x290),_0x54115e(0x2b0)][_0x54115e(0x1fa)](this[_0x54115e(0x2c3)])||!_0x354e28[_0x54115e(0x241)]['presenter']||_0x354e28['data'][_0x54115e(0x23b)]===this[_0x54115e(0x1f2)][_0x54115e(0x2c9)]())return;this['_status']===_0x54115e(0x2cb)&&this[_0x54115e(0x1fe)]();const _0x51af2a=_0x354e28['data']['operations'];Object[_0x54115e(0x230)](_0x51af2a)[_0x54115e(0x2a0)](_0x183323=>{var _0x34f5ee=_0x54115e;this[_0x34f5ee(0x2a8)][_0x34f5ee(0x261)](_0x183323['id'],_0x183323[_0x34f5ee(0x2b5)]?JSON['parse'](_0x183323['params']):null,{'fromCollab':!0x0});});}[_0x31d5c1(0x273)](){var _0x4b738d=_0x31d5c1,_0x244111;this[_0x4b738d(0x26e)][_0x4b738d(0x205)]('offline'),(_0x244111=this[_0x4b738d(0x293)])==null||_0x244111[_0x4b738d(0x297)]();}[_0x31d5c1(0x285)](){var _0x97bcc=_0x31d5c1;this['_status$'][_0x97bcc(0x205)](_0x97bcc(0x2cb)),this['_fetchOperations']();}},exports[_0x31d5c1(0x2ac)]=R([S(0x2,o[_0x31d5c1(0x29b)]),S(0x3,o['Inject'](E)),S(0x4,o[_0x31d5c1(0x2c4)])],exports[_0x31d5c1(0x2ac)]);function A(){var _0x46caff=_0x31d5c1;const _0x482ae4=p[_0x46caff(0x2ce)](exports[_0x46caff(0x220)]),_0x18b618=p[_0x46caff(0x2ce)](o['IUniverInstanceService']),_0x3aeb91=p[_0x46caff(0x25a)](()=>_0x18b618[_0x46caff(0x29d)](o[_0x46caff(0x237)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x38a7d2,_0x19fb33]=f[_0x46caff(0x289)](null),[_0x11862e,_0x2f5adf]=f[_0x46caff(0x289)](h[_0x46caff(0x224)]),_0x197cac=f[_0x46caff(0x2c7)](null);return f[_0x46caff(0x2bf)](()=>(_0x3aeb91&&_0x482ae4[_0x46caff(0x287)](_0x3aeb91[_0x46caff(0x2bc)]())[_0x46caff(0x20c)](_0x4486c2=>{_0x19fb33(_0x4486c2),_0x197cac['current']=_0x4486c2['status$']['subscribe'](_0x419a08=>{_0x2f5adf(_0x419a08);});}),()=>{var _0x4b032d=_0x46caff,_0x170ae5;(_0x170ae5=_0x197cac['current'])==null||_0x170ae5[_0x4b032d(0x252)](),_0x197cac[_0x4b032d(0x27b)]=null;}),[_0x3aeb91,_0x482ae4]),_0x38a7d2?l[_0x46caff(0x23d)](g[_0x46caff(0x2d1)],{'align':_0x46caff(0x246),'disabled':_0x11862e===h[_0x46caff(0x2c1)],'className':_0x46caff(0x234),'overlay':l['jsx'](K,{'status':_0x11862e,'coordinator':_0x38a7d2}),'children':l[_0x46caff(0x23d)](_0x46caff(0x221),{'className':g['clsx'](_0x46caff(0x2bd),{'univer-cursor-not-allowed':_0x11862e===h[_0x46caff(0x2c1)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x11862e!==h[_0x46caff(0x2c1)]}),'type':_0x46caff(0x221),'children':l[_0x46caff(0x23d)](P,{'className':_0x46caff(0x292)})})}):null;}function K(_0x3ed1cf){var _0x402530=_0x31d5c1;const {status:_0x5ca234,coordinator:_0x282126}=_0x3ed1cf;switch(_0x5ca234){case h['IDLE']:return l[_0x402530(0x23d)](z,{'coordinator':_0x282126});case h[_0x402530(0x248)]:return l[_0x402530(0x23d)](Q,{'coordinator':_0x282126});case h['NOT_FOLLOWING']:return l[_0x402530(0x23d)](X,{'coordinator':_0x282126});case h[_0x402530(0x2c1)]:return l[_0x402530(0x23d)](te,{});case h[_0x402530(0x240)]:return l[_0x402530(0x23d)](ee,{'coordinator':_0x282126});default:return null;}}function z(_0xb26271){var _0x192801=_0x31d5c1;const {coordinator:_0x5c02d4}=_0xb26271;return l[_0x192801(0x27a)](l[_0x192801(0x21e)],{'children':[l[_0x192801(0x23d)](_0x192801(0x281),{'className':_0x192801(0x1f3),'children':_0x192801(0x26f)}),l[_0x192801(0x23d)](g[_0x192801(0x2c5)],{'onClick':()=>_0x5c02d4[_0x192801(0x25b)](),'children':'Start'})]});}function Q(_0xfbaab){var _0x45dcff=_0x31d5c1;const {coordinator:_0x5777c1}=_0xfbaab;return l[_0x45dcff(0x27a)](l[_0x45dcff(0x21e)],{'children':[l['jsx'](_0x45dcff(0x281),{'className':_0x45dcff(0x1f3),'children':_0x45dcff(0x2d7)}),l[_0x45dcff(0x23d)](g['Button'],{'onClick':()=>_0x5777c1[_0x45dcff(0x299)](),'children':_0x45dcff(0x1f6)})]});}function X(_0x25ea70){var _0x1f8df2=_0x31d5c1;const {coordinator:_0x4bdc91}=_0x25ea70;return l['jsxs'](l[_0x1f8df2(0x21e)],{'children':[l[_0x1f8df2(0x23d)](_0x1f8df2(0x281),{'className':_0x1f8df2(0x1f3),'children':_0x1f8df2(0x236)}),l[_0x1f8df2(0x23d)](g['Button'],{'variant':_0x1f8df2(0x280),'onClick':()=>_0x4bdc91[_0x1f8df2(0x228)](),'children':'Start\x20following'})]});}function ee(_0x1e1651){var _0x21e26c=_0x31d5c1;const {coordinator:_0x29d52a}=_0x1e1651;return l[_0x21e26c(0x27a)](l['Fragment'],{'children':[l['jsx']('div',{'className':_0x21e26c(0x1f3),'children':_0x21e26c(0x1fb)}),l[_0x21e26c(0x23d)](g['Button'],{'variant':_0x21e26c(0x29c),'onClick':()=>_0x29d52a[_0x21e26c(0x276)](),'children':_0x21e26c(0x255)})]});}function te(){var _0x1c11f3=_0x31d5c1;return l['jsx'](l[_0x1c11f3(0x21e)],{'children':_0x1c11f3(0x207)});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x2cfb9d,_0x5be9f8,_0x28e00d,_0x2a9fe2)=>{var _0x55795e=_0x31d5c1;for(var _0x437458=_0x2a9fe2>0x1?void 0x0:_0x2a9fe2?ie(_0x5be9f8,_0x28e00d):_0x5be9f8,_0x546a54=_0x2cfb9d[_0x55795e(0x24b)]-0x1,_0x5e0861;_0x546a54>=0x0;_0x546a54--)(_0x5e0861=_0x2cfb9d[_0x546a54])&&(_0x437458=_0x5e0861(_0x437458)||_0x437458);return _0x437458;},N=(_0x4543aa,_0x153c85)=>(_0x57baaf,_0x21d47c)=>_0x153c85(_0x57baaf,_0x21d47c,_0x4543aa);exports['DesktopLiveShareController']=class extends o[_0x31d5c1(0x256)]{constructor(_0x7995fe,_0x605bbc){var _0x1530fb=_0x31d5c1;super(),this[_0x1530fb(0x2da)]=_0x7995fe,this[_0x1530fb(0x2a4)]=_0x605bbc,this['_mountLiveShare']();}['_mountLiveShare'](){var _0x3b5201=_0x31d5c1;this[_0x3b5201(0x2d0)](this[_0x3b5201(0x2a4)][_0x3b5201(0x21b)](p[_0x3b5201(0x2c2)][_0x3b5201(0x22d)],()=>p[_0x3b5201(0x264)](A,this[_0x3b5201(0x2da)])));}},exports['DesktopLiveShareController']=ne([N(0x0,o['Inject'](o[_0x31d5c1(0x2ad)])),N(0x1,p['IUIPartsService'])],exports[_0x31d5c1(0x267)]);var re=Object[_0x31d5c1(0x2a6)],se=Object[_0x31d5c1(0x239)],oe=(_0x1494d3,_0x1dbcb5,_0x240ff8)=>_0x1dbcb5 in _0x1494d3?re(_0x1494d3,_0x1dbcb5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x240ff8}):_0x1494d3[_0x1dbcb5]=_0x240ff8,ae=(_0x1e1ebc,_0x2d4e39,_0x17b21f,_0x29693a)=>{var _0x29be24=_0x31d5c1;for(var _0x5ce891=_0x29693a>0x1?void 0x0:_0x29693a?se(_0x2d4e39,_0x17b21f):_0x2d4e39,_0x4fa4ab=_0x1e1ebc[_0x29be24(0x24b)]-0x1,_0x583746;_0x4fa4ab>=0x0;_0x4fa4ab--)(_0x583746=_0x1e1ebc[_0x4fa4ab])&&(_0x5ce891=_0x583746(_0x5ce891)||_0x5ce891);return _0x5ce891;},w=(_0x59f6d3,_0x4f47ab)=>(_0x718f2a,_0x1504f9)=>_0x4f47ab(_0x718f2a,_0x1504f9,_0x59f6d3),T=(_0x37b7d4,_0x5d6984,_0xd60e1d)=>oe(_0x37b7d4,typeof _0x5d6984!=_0x31d5c1(0x27f)?_0x5d6984+'':_0x5d6984,_0xd60e1d);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x31d5c1(0x208)]=class extends o[_0x31d5c1(0x23e)]{constructor(_0x3ae812=L,_0x540506,_0x40d744){var _0x489ab7=_0x31d5c1;super(),this['_config']=_0x3ae812,this[_0x489ab7(0x2da)]=_0x540506,this[_0x489ab7(0x211)]=_0x40d744;const {..._0x2c3222}=o[_0x489ab7(0x2b2)]({},L,this[_0x489ab7(0x22b)]);this[_0x489ab7(0x211)][_0x489ab7(0x26d)]($,_0x2c3222);}[_0x31d5c1(0x263)](){var _0x495b26=_0x31d5c1;o[_0x495b26(0x250)](this[_0x495b26(0x2da)],o[_0x495b26(0x23f)]([[E],[exports[_0x495b26(0x220)]],[O],[exports[_0x495b26(0x267)]]],this[_0x495b26(0x22b)]['override'])),o[_0x495b26(0x2bb)](this[_0x495b26(0x2da)],[[O]]);}[_0x31d5c1(0x1f9)](){var _0x4ae6e8=_0x31d5c1;o[_0x4ae6e8(0x2bb)](this['_injector'],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x31d5c1(0x208)],_0x31d5c1(0x1f1),o[_0x31d5c1(0x237)]['UNIVER_UNKNOWN']),T(exports[_0x31d5c1(0x208)],_0x31d5c1(0x22e),le),exports[_0x31d5c1(0x208)]=ae([o[_0x31d5c1(0x204)](m[_0x31d5c1(0x26a)]),w(0x1,o[_0x31d5c1(0x20d)](o['Injector'])),w(0x2,o[_0x31d5c1(0x29b)])],exports['UniverLiveSharePlugin']),exports['LiveShare']=A,exports[_0x31d5c1(0x298)]=E,exports[_0x31d5c1(0x259)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x3fcdaf=_0x25a1;(function(_0x4d672a,_0x24fba6){var _0x54399d=_0x25a1,_0x4e63b9=_0x4d672a();while(!![]){try{var _0x22af4f=parseInt(_0x54399d(0x1de))/0x1+-parseInt(_0x54399d(0x1fa))/0x2+-parseInt(_0x54399d(0x1c9))/0x3+-parseInt(_0x54399d(0x1c3))/0x4*(parseInt(_0x54399d(0x207))/0x5)+-parseInt(_0x54399d(0x1ed))/0x6*(parseInt(_0x54399d(0x1f0))/0x7)+-parseInt(_0x54399d(0x203))/0x8*(parseInt(_0x54399d(0x1bd))/0x9)+parseInt(_0x54399d(0x1b3))/0xa;if(_0x22af4f===_0x24fba6)break;else _0x4e63b9['push'](_0x4e63b9['shift']());}catch(_0x87228){_0x4e63b9['push'](_0x4e63b9['shift']());}}}(_0x11ac,0x5b937));var q=Object[_0x3fcdaf(0x1c6)],z=(_0x33f732,_0x12f0fb,_0x4db4b3)=>_0x12f0fb in _0x33f732?q(_0x33f732,_0x12f0fb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4db4b3}):_0x33f732[_0x12f0fb]=_0x4db4b3,d=(_0x14626c,_0x3e7667,_0x3d3703)=>z(_0x14626c,typeof _0x3e7667!=_0x3fcdaf(0x1a5)?_0x3e7667+'':_0x3e7667,_0x3d3703);import{CollaborationSessionService as _0x1c88e5,SessionStatus as _0x39743e,UniverCollaborationClientPlugin as _0x1df655}from'@univerjs-pro/collaboration-client';import{Disposable as _0x44f2cd,toDisposable as _0x318a6b,Inject as _0x9a82ee,IUniverInstanceService as _0x222400,Injector as _0xc9b6d3,IConfigService as _0x3de5df,ICommandService as _0x571f4b,RxDisposable as _0x167f70,UniverInstanceType as _0x507f24,DisposableCollection as _0x3b22fb,CommandType as _0x1728f8,DependentOn as _0x3730da,Plugin as _0x411b9e,merge as _0x596cea,registerDependencies as _0x5b4edf,mergeOverrideWithDependencies as _0x44214c,touchDependencies as _0x5e1ba2}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x3cfc48,InsertSheetMutation as _0x4c632e}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x48f814,SetScrollOperation as _0xd2cb88}from'@univerjs/sheets-ui';import{useDependency as _0x53df57,useObservable as _0xd11abe,IUIPartsService as _0x4bf856,BuiltInUIPart as _0x896a64,connectInjector as _0x50a59d}from'@univerjs/ui';function _0x11ac(){var _0x474cac=['_uiPartsService','getValue','_collabSession','includes','UNIVER_UNKNOWN','live-share.config','idSuffix','following','11742620mlcEsg','icon','default','parse','getTypeOfUnitAdded$','operations','UNIVER_SHEET','data','_collabSessionService','path','10971mUnxHq','getInitialStates','getUnitId','mutations','NOT_FOLLOWING','requireSession','660124wPrugS','find','from','defineProperty','assign','subscribe','2128998QFzEcv','trim','_handleOffline','unitId','You\x27re\x20not\x20following\x20the\x20presenter','_fetchOperations','_startFollowing','_handleOperation','UNIVER_LIVE_SHARE_PLUGIN','_handleNewHost','stopPresenting','clear','presenting','getMemberID','LIVESHARE_OPERATION','prototype','indexOf','presenter','call','IDLE','_config','540273Zfscqk','registerInitialStateReporter','extend','dispose$','end','HEADER_MENU','registerSharedOperation','random','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','getOwnPropertyDescriptor','ONLINE','propertyIsEnumerable','1em','sessionStatus$','function','1256982ZsAdbq','_startLiveShareCoordinator','_status','7ysKeoD','div','You\x27are\x20offline.','_stopFollowing','onRendered','univer-w-full\x20univer-mb-3\x20univer-text-sm','set','getLiveShareCoordinator','dispose','pluginName','7332NsFQrH','unsubscribe','FOLLOWING','has','delete','replace','status$','_startPresenting','attrs','568cblJYZ','entries','Start','evenodd','10ZhqOgs','createInstance','length','sheet','_init','_entities','shouldShareOperation','not-following','_handleTerminate','defIds','use','LIVESHARE_REQUEST_HOST','override','Present\x20this\x20document','setConfig','init','complete','event$','LIVESHARE_FETCH_OPERATIONS','xlink:href','_commandDisposable','colorChannel1','children','string','disposeWithMe','type','mask','_univerInstanceService','get','reverse','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','stopFollowing','OFFLINE','getOwnPropertySymbols','_beIdle','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','url(#$1','text','current','concat','tag','getCurrentTypeOfUnit$','_injector','button','forEach','displayName','asObservable','getTypeOfUnitDisposed$','UniverIcon','univerjs-icon\x20univerjs-icon-','add','0\x200\x2016\x2016','stringify','then','_handleNewChangeSets','hasOwnProperty','Start\x20following','_configService','_handleOnline','tryStartPresenting','svg','params','offline','idle','LIVESHARE_NEW_HOST','values','Stop\x20presenting','_commandService','className','executeCommand','_presenter','onCommandExecuted','_liveShareService','_reporters','map','_sharedOperations','none','pipe','memberID','live-share-single','_status$','currentColor','send','Stop\x20following','substring','symbol','_mountLiveShare','univer-size-4','next','_unitID','fill'];_0x11ac=function(){return _0x474cac;};return _0x11ac();}import{jsx as _0xa1dd95,jsxs as _0x22e12f,Fragment as _0x1222e5}from'react/jsx-runtime';import{Dropdown as _0x12643e,clsx as _0x3635fb,Button as _0x3522ab}from'@univerjs/design';import{forwardRef as _0xd2827d,useRef as _0xb9fd4a,createElement as _0x5f3ba9,useState as _0x53fc5a,useEffect as _0x57fba0}from'react';import{CollaborationEvent as _0x35f1b9,parseProtocolChangeset as _0x30cec3}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x37a185,Subject as _0x33a2b2}from'rxjs';import{takeUntil as _0x580f25,throttleTime as _0x260576}from'rxjs/operators';const Oe=_0x3fcdaf(0x1b0),T={};class L extends _0x44f2cd{constructor(){var _0x555f04=_0x3fcdaf;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x555f04(0x250),new Set());}[_0x3fcdaf(0x1e4)](_0x39a294){var _0x323e5d=_0x3fcdaf;return this[_0x323e5d(0x252)][_0x323e5d(0x239)](_0x39a294),_0x318a6b(()=>this[_0x323e5d(0x252)][_0x323e5d(0x1fe)](_0x39a294));}[_0x3fcdaf(0x1df)](_0x334679){var _0x3fe2c1=_0x3fcdaf;return this[_0x3fe2c1(0x250)][_0x3fe2c1(0x239)](_0x334679),_0x318a6b(()=>this[_0x3fe2c1(0x250)][_0x3fe2c1(0x1fe)](_0x334679));}[_0x3fcdaf(0x20d)](_0x1b9cbe){var _0x5d2e6f=_0x3fcdaf;return this[_0x5d2e6f(0x252)]['has'](_0x1b9cbe);}['getInitialStates'](_0x481169){var _0x4bec6f=_0x3fcdaf;return Array[_0x4bec6f(0x1c5)](this[_0x4bec6f(0x250)])[_0x4bec6f(0x251)](_0x15427a=>_0x15427a(_0x481169));}}var Ee=Object['getOwnPropertyDescriptor'],Ce=(_0x31f9a7,_0xa56a10,_0x2eb30a,_0x5d6360)=>{var _0x599783=_0x3fcdaf;for(var _0x3465c2=_0x5d6360>0x1?void 0x0:_0x5d6360?Ee(_0xa56a10,_0x2eb30a):_0xa56a10,_0x58dc3b=_0x31f9a7[_0x599783(0x209)]-0x1,_0x4bcae8;_0x58dc3b>=0x0;_0x58dc3b--)(_0x4bcae8=_0x31f9a7[_0x58dc3b])&&(_0x3465c2=_0x4bcae8(_0x3465c2)||_0x3465c2);return _0x3465c2;},Ne=(_0x42b3e9,_0x3fcda2)=>(_0x2f7470,_0x2898b3)=>_0x3fcda2(_0x2f7470,_0x2898b3,_0x42b3e9);let m=class extends _0x44f2cd{constructor(_0x564d7c){var _0x18906f=_0x3fcdaf;super(),this[_0x18906f(0x24f)]=_0x564d7c,this['_init']();}[_0x3fcdaf(0x20b)](){[_0x48f814['id'],_0xd2cb88['id'],_0x3cfc48['id']]['forEach'](_0x4da95a=>{var _0x1f9a54=_0x25a1;this[_0x1f9a54(0x21f)](this['_liveShareService']['registerSharedOperation'](_0x4da95a));});}};function _0x25a1(_0xd0958f,_0x235a84){var _0x11ac7c=_0x11ac();return _0x25a1=function(_0x25a1b7,_0x1aff91){_0x25a1b7=_0x25a1b7-0x19c;var _0x307b62=_0x11ac7c[_0x25a1b7];return _0x307b62;},_0x25a1(_0xd0958f,_0x235a84);}m=Ce([Ne(0x0,_0x9a82ee(L))],m);var c=function(){var _0x11068e=_0x3fcdaf;return c=Object[_0x11068e(0x1c7)]||function(_0x59b78b){var _0x27081e=_0x11068e;for(var _0x28375a,_0x52f566=0x1,_0x4159a8=arguments[_0x27081e(0x209)];_0x52f566<_0x4159a8;_0x52f566++){_0x28375a=arguments[_0x52f566];for(var _0x3a0c75 in _0x28375a)Object['prototype'][_0x27081e(0x23e)][_0x27081e(0x1db)](_0x28375a,_0x3a0c75)&&(_0x59b78b[_0x3a0c75]=_0x28375a[_0x3a0c75]);}return _0x59b78b;},c['apply'](this,arguments);},we=function(_0x53dd1c,_0x2edcec){var _0x1fcc17=_0x3fcdaf,_0x43028c={};for(var _0x46fd07 in _0x53dd1c)Object[_0x1fcc17(0x1d8)][_0x1fcc17(0x23e)][_0x1fcc17(0x1db)](_0x53dd1c,_0x46fd07)&&_0x2edcec[_0x1fcc17(0x1d9)](_0x46fd07)<0x0&&(_0x43028c[_0x46fd07]=_0x53dd1c[_0x46fd07]);if(_0x53dd1c!=null&&typeof Object[_0x1fcc17(0x228)]==_0x1fcc17(0x1ec)){for(var _0x9957cd=0x0,_0x46fd07=Object['getOwnPropertySymbols'](_0x53dd1c);_0x9957cd<_0x46fd07[_0x1fcc17(0x209)];_0x9957cd++)_0x2edcec[_0x1fcc17(0x1d9)](_0x46fd07[_0x9957cd])<0x0&&Object[_0x1fcc17(0x1d8)][_0x1fcc17(0x1e9)]['call'](_0x53dd1c,_0x46fd07[_0x9957cd])&&(_0x43028c[_0x46fd07[_0x9957cd]]=_0x53dd1c[_0x46fd07[_0x9957cd]]);}return _0x43028c;},W=_0xd2827d(function(_0x296c6f,_0x3cca77){var _0x70f763=_0x3fcdaf,_0x11238e=_0x296c6f['icon'],_0x4ecc26=_0x296c6f['id'],_0x5d01f6=_0x296c6f[_0x70f763(0x24b)],_0x27ef29=_0x296c6f[_0x70f763(0x1e0)],_0x987b2=we(_0x296c6f,[_0x70f763(0x1b4),'id',_0x70f763(0x24b),_0x70f763(0x1e0)]),_0x5f4786=_0x70f763(0x238)[_0x70f763(0x22e)](_0x4ecc26,'\x20')[_0x70f763(0x22e)](_0x5d01f6||'')[_0x70f763(0x1ca)](),_0x16033f=_0xb9fd4a('_'[_0x70f763(0x22e)](Le()));return Y(_0x11238e,''[_0x70f763(0x22e)](_0x4ecc26),{'defIds':_0x11238e[_0x70f763(0x210)],'idSuffix':_0x16033f[_0x70f763(0x22d)]},c({'ref':_0x3cca77,'className':_0x5f4786},_0x987b2),_0x27ef29);});function Y(_0x1d1f2c,_0x35921f,_0x68b126,_0x4fe24e,_0x60810){var _0x2ffa4a=_0x3fcdaf;return _0x5f3ba9(_0x1d1f2c[_0x2ffa4a(0x22f)],c(c({'key':_0x35921f},De(_0x1d1f2c,_0x68b126,_0x60810)),_0x4fe24e),(xe(_0x1d1f2c,_0x68b126)[_0x2ffa4a(0x21d)]||[])[_0x2ffa4a(0x251)](function(_0x2d5738,_0x22c398){var _0x40e06b=_0x2ffa4a;return Y(_0x2d5738,''[_0x40e06b(0x22e)](_0x35921f,'-')[_0x40e06b(0x22e)](_0x1d1f2c[_0x40e06b(0x22f)],'-')[_0x40e06b(0x22e)](_0x22c398),_0x68b126,void 0x0,_0x60810);}));}function De(_0x294896,_0x45d42e,_0x19166b){var _0x47c556=_0x3fcdaf,_0x28a6d7=c({},_0x294896[_0x47c556(0x202)]);_0x19166b!=null&&_0x19166b[_0x47c556(0x21c)]&&_0x28a6d7['fill']==='colorChannel1'&&(_0x28a6d7[_0x47c556(0x1aa)]=_0x19166b['colorChannel1']),_0x294896['tag']===_0x47c556(0x221)&&_0x28a6d7['id']&&(_0x28a6d7['id']=_0x28a6d7['id']+_0x45d42e[_0x47c556(0x1b1)]),Object[_0x47c556(0x204)](_0x28a6d7)[_0x47c556(0x233)](function(_0x131a15){var _0x545d48=_0x47c556,_0xe27b47=_0x131a15[0x0],_0x497ec8=_0x131a15[0x1];_0xe27b47===_0x545d48(0x221)&&typeof _0x497ec8==_0x545d48(0x21e)&&(_0x28a6d7[_0xe27b47]=_0x497ec8[_0x545d48(0x1ff)](/url\(#(.*)\)/,_0x545d48(0x22b)['concat'](_0x45d42e[_0x545d48(0x1b1)],')')));});var _0x514f6e=_0x45d42e['defIds'];return!_0x514f6e||_0x514f6e[_0x47c556(0x209)]===0x0||(_0x294896['tag']===_0x47c556(0x211)&&_0x28a6d7[_0x47c556(0x21a)]&&(_0x28a6d7[_0x47c556(0x21a)]=_0x28a6d7[_0x47c556(0x21a)]+_0x45d42e[_0x47c556(0x1b1)]),Object[_0x47c556(0x204)](_0x28a6d7)[_0x47c556(0x233)](function(_0x25c8eb){var _0x21c936=_0x47c556,_0x94db30=_0x25c8eb[0x0],_0x3d829c=_0x25c8eb[0x1];typeof _0x3d829c==_0x21c936(0x21e)&&(_0x28a6d7[_0x94db30]=_0x3d829c[_0x21c936(0x1ff)](/url\(#(.*)\)/,_0x21c936(0x22b)['concat'](_0x45d42e[_0x21c936(0x1b1)],')')));})),_0x28a6d7;}function xe(_0x1ea667,_0x4949dd){var _0x4a562e=_0x3fcdaf,_0x37cdaf,_0x3f1b2d=_0x4949dd[_0x4a562e(0x210)];return!_0x3f1b2d||_0x3f1b2d[_0x4a562e(0x209)]===0x0?_0x1ea667:_0x1ea667['tag']==='defs'&&(!((_0x37cdaf=_0x1ea667[_0x4a562e(0x21d)])===null||_0x37cdaf===void 0x0)&&_0x37cdaf[_0x4a562e(0x209)])?c(c({},_0x1ea667),{'children':_0x1ea667[_0x4a562e(0x21d)][_0x4a562e(0x251)](function(_0x559945){var _0x55ad47=_0x4a562e;return typeof _0x559945[_0x55ad47(0x202)]['id']=='string'&&_0x3f1b2d&&_0x3f1b2d[_0x55ad47(0x1d9)](_0x559945[_0x55ad47(0x202)]['id'])>-0x1?c(c({},_0x559945),{'attrs':c(c({},_0x559945[_0x55ad47(0x202)]),{'id':_0x559945['attrs']['id']+_0x4949dd[_0x55ad47(0x1b1)]})}):_0x559945;})}):_0x1ea667;}function Le(){var _0xee673=_0x3fcdaf;return Math[_0xee673(0x1e5)]()['toString'](0x24)[_0xee673(0x1a4)](0x2,0x8);}W[_0x3fcdaf(0x234)]=_0x3fcdaf(0x237);var ye={'tag':_0x3fcdaf(0x243),'attrs':{'fill':_0x3fcdaf(0x19c),'viewBox':_0x3fcdaf(0x23a),'width':_0x3fcdaf(0x1ea),'height':_0x3fcdaf(0x1ea)},'children':[{'tag':_0x3fcdaf(0x1bc),'attrs':{'fill':'currentColor','d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':'path','attrs':{'fill':_0x3fcdaf(0x1a1),'d':_0x3fcdaf(0x1e6),'fillRule':_0x3fcdaf(0x206),'clipRule':'evenodd'}}]},B=_0xd2827d(function(_0x23b342,_0x5560b2){var _0x25772b=_0x3fcdaf;return _0x5f3ba9(W,Object[_0x25772b(0x1c7)]({},_0x23b342,{'id':_0x25772b(0x19f),'ref':_0x5560b2,'icon':ye}));});B[_0x3fcdaf(0x234)]='LiveShareSingle';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x48fc33,_0x55b7c5,_0x3d88e6,_0x14d1dc)=>{var _0x1022df=_0x3fcdaf;for(var _0x1f9625=_0x14d1dc>0x1?void 0x0:_0x14d1dc?Re(_0x55b7c5,_0x3d88e6):_0x55b7c5,_0x5a3b77=_0x48fc33[_0x1022df(0x209)]-0x1,_0x3bf937;_0x5a3b77>=0x0;_0x5a3b77--)(_0x3bf937=_0x48fc33[_0x5a3b77])&&(_0x1f9625=_0x3bf937(_0x1f9625)||_0x1f9625);return _0x1f9625;},f=(_0x336dd7,_0x201335)=>(_0x3c4363,_0xbc233f)=>_0x201335(_0x3c4363,_0xbc233f,_0x336dd7);let I=class extends _0x167f70{constructor(_0x4160b6,_0x136d08,_0x12ea06){var _0x2d397c=_0x3fcdaf;super(),d(this,_0x2d397c(0x20c),new Map()),(this['_univerInstanceService']=_0x4160b6,this[_0x2d397c(0x231)]=_0x136d08,this['_collabSessionService']=_0x12ea06,this[_0x2d397c(0x20b)]());}async[_0x3fcdaf(0x1f7)](_0x376baa){var _0x46cded=_0x3fcdaf;return this['_entities'][_0x46cded(0x1fd)](_0x376baa)||await this['_startLiveShareCoordinator'](_0x376baa),this['_entities'][_0x46cded(0x223)](_0x376baa);}[_0x3fcdaf(0x20b)](){var _0x504844=_0x3fcdaf;this[_0x504844(0x222)][_0x504844(0x1b7)](_0x507f24['UNIVER_SHEET'])['pipe'](_0x580f25(this[_0x504844(0x1e1)]))['subscribe'](async _0x1f0bf2=>{var _0x437acf=_0x504844;const _0xb93c37=_0x1f0bf2[_0x437acf(0x1bf)]();this[_0x437acf(0x20c)][_0x437acf(0x1fd)](_0xb93c37)||this[_0x437acf(0x1ee)](_0xb93c37);}),this[_0x504844(0x222)][_0x504844(0x236)](_0x507f24[_0x504844(0x1b9)])[_0x504844(0x19d)](_0x580f25(this[_0x504844(0x1e1)]))[_0x504844(0x1c8)](_0x5effe9=>{var _0x39f8dc=_0x504844;const _0x4d6694=_0x5effe9[_0x39f8dc(0x1bf)](),_0x1d16b5=this[_0x39f8dc(0x20c)][_0x39f8dc(0x223)](_0x4d6694);_0x1d16b5==null||_0x1d16b5[_0x39f8dc(0x1f8)]();});}async[_0x3fcdaf(0x1ee)](_0x404b98){var _0x1782ba=_0x3fcdaf;const _0x28d9ce=await this[_0x1782ba(0x1bb)][_0x1782ba(0x1c2)](_0x404b98),_0x248af2=this[_0x1782ba(0x231)][_0x1782ba(0x208)](w,_0x404b98,_0x28d9ce);return _0x248af2[_0x1782ba(0x216)](),this[_0x1782ba(0x20c)][_0x1782ba(0x1f6)](_0x404b98,_0x248af2),_0x248af2;}};I=Z([f(0x0,_0x222400),f(0x1,_0x9a82ee(_0xc9b6d3)),f(0x2,_0x9a82ee(_0x1c88e5))],I);var h=(_0x214d2f=>(_0x214d2f[_0x3fcdaf(0x227)]=_0x3fcdaf(0x245),_0x214d2f[_0x3fcdaf(0x1dc)]='idle',_0x214d2f[_0x3fcdaf(0x1fc)]=_0x3fcdaf(0x1b2),_0x214d2f['NOT_FOLLOWING']=_0x3fcdaf(0x20e),_0x214d2f['PRESENTING']=_0x3fcdaf(0x1d5),_0x214d2f))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let w=class extends _0x167f70{constructor(_0x4581dd,_0x5bdbf6,_0x3dd595,_0x48883b,_0x175870){var _0xc16918=_0x3fcdaf;super(),d(this,_0xc16918(0x1a0),new _0x37a185(_0xc16918(0x246))),d(this,_0xc16918(0x200),this[_0xc16918(0x1a0)][_0xc16918(0x235)]()),d(this,_0xc16918(0x20b),!0x1),d(this,_0xc16918(0x21b),null),d(this,_0xc16918(0x24d),null),(this['_unitID']=_0x4581dd,this[_0xc16918(0x1ad)]=_0x5bdbf6,this[_0xc16918(0x240)]=_0x3dd595,this[_0xc16918(0x24f)]=_0x48883b,this[_0xc16918(0x24a)]=_0x175870);}get[_0x3fcdaf(0x1ef)](){var _0x1a34f9=_0x3fcdaf;return this[_0x1a34f9(0x1a0)][_0x1a34f9(0x1ac)]();}[_0x3fcdaf(0x1f8)](){var _0x2d5834=_0x3fcdaf,_0x219e6d;(_0x219e6d=this[_0x2d5834(0x21b)])==null||_0x219e6d['dispose'](),this[_0x2d5834(0x1a0)][_0x2d5834(0x1a8)](_0x2d5834(0x246)),this[_0x2d5834(0x1a0)][_0x2d5834(0x217)]();}['init'](){var _0x2f6781=_0x3fcdaf;this['_init']||(this[_0x2f6781(0x20b)]=!0x0,this['_collabSession'][_0x2f6781(0x1eb)][_0x2f6781(0x19d)](_0x580f25(this[_0x2f6781(0x1e1)]))[_0x2f6781(0x1c8)](_0x4452b4=>{var _0x389b7f=_0x2f6781;switch(_0x4452b4){case _0x39743e['OFFLINE']:this[_0x389b7f(0x1cb)]();break;case _0x39743e[_0x389b7f(0x1e8)]:this[_0x389b7f(0x241)]();break;}}),this[_0x2f6781(0x1ad)][_0x2f6781(0x218)]['pipe'](_0x580f25(this['dispose$']))['subscribe'](_0x10a473=>{var _0x1cbc4a=_0x2f6781;const {eventID:_0x2a13a2}=_0x10a473;switch(_0x2a13a2){case _0x35f1b9[_0x1cbc4a(0x247)]:this[_0x1cbc4a(0x1d2)](_0x10a473);break;case _0x35f1b9[_0x1cbc4a(0x1d7)]:this[_0x1cbc4a(0x1d0)](_0x10a473);break;case _0x35f1b9['LIVESHARE_TERMINATE']:this[_0x1cbc4a(0x20f)]();break;case _0x35f1b9['NEW_CHANGESETS']:this[_0x1cbc4a(0x23d)](_0x10a473);break;}}));}['tryStartPresenting'](){var _0x2de7d0=_0x3fcdaf;this['_collabSession'][_0x2de7d0(0x1a2)]({'eventID':_0x35f1b9[_0x2de7d0(0x212)],'data':{'unitID':this[_0x2de7d0(0x1a9)],'userID':this[_0x2de7d0(0x1ad)][_0x2de7d0(0x1d6)]()}},this[_0x2de7d0(0x1a9)]);}[_0x3fcdaf(0x1d3)](){var _0x17a85f=_0x3fcdaf;this[_0x17a85f(0x1ef)]==='presenting'&&(this[_0x17a85f(0x1a0)][_0x17a85f(0x1a8)]('idle'),this[_0x17a85f(0x1ad)]['send']({'eventID':_0x35f1b9['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x17a85f(0x1a9)]}},this['_unitID']));}['startFollowing'](){var _0x496f13=_0x3fcdaf;this['_status']==='not-following'&&(this[_0x496f13(0x1a0)][_0x496f13(0x1a8)](_0x496f13(0x1b2)),this[_0x496f13(0x1cf)]());}[_0x3fcdaf(0x226)](){var _0x34671e=_0x3fcdaf;this[_0x34671e(0x1ef)]===_0x34671e(0x1b2)&&this[_0x34671e(0x1f3)]();}[_0x3fcdaf(0x1d2)](_0x2d1647){var _0x526b85=_0x3fcdaf;const {presenter:_0x3bb3d9}=_0x2d1647[_0x526b85(0x1ba)],_0x1fd0f1=this['_collabSession'][_0x526b85(0x1d6)]();this['_presenter']=_0x3bb3d9,_0x3bb3d9===_0x1fd0f1?(this[_0x526b85(0x1f3)](),this[_0x526b85(0x201)]()):this['_status']!==_0x526b85(0x20e)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x3fcdaf(0x1ce)](){var _0x51cf6e=_0x3fcdaf;const _0x46eae3={'eventID':_0x35f1b9[_0x51cf6e(0x219)]};this[_0x51cf6e(0x1ad)][_0x51cf6e(0x1a2)](_0x46eae3,this[_0x51cf6e(0x1a9)]);}[_0x3fcdaf(0x20f)](){var _0x545a57=_0x3fcdaf;this[_0x545a57(0x24d)]=null,this[_0x545a57(0x1ef)]!==_0x545a57(0x1d5)&&this[_0x545a57(0x229)]();}[_0x3fcdaf(0x23d)](_0x2f810c){var _0x4b7a1b=_0x3fcdaf;if(this[_0x4b7a1b(0x1ef)]==='following'&&this[_0x4b7a1b(0x24d)]===_0x2f810c[_0x4b7a1b(0x1ba)][_0x4b7a1b(0x19e)]){const _0x36aded=_0x30cec3(_0x2f810c['data'])[_0x4b7a1b(0x1c0)][_0x4b7a1b(0x224)]()[_0x4b7a1b(0x1c4)](_0x23eb5c=>_0x23eb5c['id']===_0x4c632e['id']);if(_0x36aded){const _0x4d8aa4=_0x36aded[_0x4b7a1b(0x244)][_0x4b7a1b(0x1cc)],_0x52fd49=_0x36aded[_0x4b7a1b(0x244)][_0x4b7a1b(0x20a)]['id'];setTimeout(()=>{var _0x2a7224=_0x4b7a1b;this[_0x2a7224(0x24a)][_0x2a7224(0x24c)](_0x3cfc48['id'],{'unitId':_0x4d8aa4,'subUnitId':_0x52fd49},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x50be08=_0x3fcdaf;this[_0x50be08(0x1a0)][_0x50be08(0x1a8)](_0x50be08(0x1d5));const _0x3f3612=new Map(),_0x10e7c0=this[_0x50be08(0x21b)]=new _0x3b22fb();_0x10e7c0[_0x50be08(0x239)](_0x318a6b(()=>{var _0x276870=_0x50be08;_0x3f3612[_0x276870(0x233)](_0x942135=>_0x942135[_0x276870(0x217)]()),_0x3f3612[_0x276870(0x1d4)]();})),_0x10e7c0[_0x50be08(0x239)](this[_0x50be08(0x24a)][_0x50be08(0x24e)](_0x189d22=>{var _0x406964=_0x50be08,_0x5a848a;if(_0x189d22[_0x406964(0x220)]!==_0x1728f8['OPERATION']||!this['_liveShareService'][_0x406964(0x20d)](_0x189d22['id']))return;const {id:_0xa41699}=_0x189d22;let _0x369cb9;_0x3f3612[_0x406964(0x1fd)](_0xa41699)?_0x369cb9=_0x3f3612[_0x406964(0x223)](_0xa41699):(_0x369cb9=new _0x33a2b2(),_0x3f3612[_0x406964(0x1f6)](_0xa41699,_0x369cb9),_0x369cb9[_0x406964(0x19d)](_0x260576((_0x5a848a=this[_0x406964(0x240)]['getConfig'](Pe))!=null?_0x5a848a:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x406964(0x1c8)](_0x16ccce=>{var _0x2ae079=_0x406964;this[_0x2ae079(0x1ad)][_0x2ae079(0x1a2)]({'eventID':_0x35f1b9['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2ae079(0x1a9)],'operations':{[_0x16ccce['id']]:{'id':_0x16ccce['id'],'params':JSON['stringify'](_0x16ccce[_0x2ae079(0x244)])}}}},this[_0x2ae079(0x1a9)]);})),_0x369cb9[_0x406964(0x1a8)](_0x189d22);})),this[_0x50be08(0x24f)][_0x50be08(0x1be)](this[_0x50be08(0x1a9)])[_0x50be08(0x233)](_0x3964d1=>this['_collabSession'][_0x50be08(0x1a2)]({'eventID':_0x35f1b9['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x50be08(0x1a9)],'operations':{[_0x3964d1['id']]:{'id':_0x3964d1['id'],'params':JSON[_0x50be08(0x23b)](_0x3964d1[_0x50be08(0x244)])}}}},this[_0x50be08(0x1a9)]));}['_stopPresenting'](){var _0x599ed3=_0x3fcdaf,_0x39a4cb;this[_0x599ed3(0x1a0)][_0x599ed3(0x1a8)]('idle'),(_0x39a4cb=this['_commandDisposable'])==null||_0x39a4cb[_0x599ed3(0x1f8)](),this['_commandDisposable']=null;}[_0x3fcdaf(0x1cf)](){var _0x447255=_0x3fcdaf,_0x3c0687;(_0x3c0687=this[_0x447255(0x21b)])==null||_0x3c0687[_0x447255(0x1f8)](),this['_status$']['next'](_0x447255(0x1b2));}[_0x3fcdaf(0x229)](){var _0x48be09=_0x3fcdaf,_0x1a77e1;this['_status$'][_0x48be09(0x1a8)](_0x48be09(0x246)),(_0x1a77e1=this[_0x48be09(0x21b)])==null||_0x1a77e1['dispose'](),this[_0x48be09(0x21b)]=null;}[_0x3fcdaf(0x1f3)](){var _0x1e9324=_0x3fcdaf,_0x576ed2;this['_status$'][_0x1e9324(0x1a8)](_0x1e9324(0x20e)),(_0x576ed2=this['_commandDisposable'])==null||_0x576ed2[_0x1e9324(0x1f8)]();}['_handleOperation'](_0x10eeb3){var _0x1e9120=_0x3fcdaf;if([_0x1e9120(0x1d5),_0x1e9120(0x20e),'offline'][_0x1e9120(0x1ae)](this[_0x1e9120(0x1ef)])||!_0x10eeb3['data']['presenter']||_0x10eeb3[_0x1e9120(0x1ba)][_0x1e9120(0x1da)]===this[_0x1e9120(0x1ad)]['getMemberID']())return;this[_0x1e9120(0x1ef)]===_0x1e9120(0x246)&&this[_0x1e9120(0x1cf)]();const _0x331e42=_0x10eeb3[_0x1e9120(0x1ba)][_0x1e9120(0x1b8)];Object[_0x1e9120(0x248)](_0x331e42)[_0x1e9120(0x233)](_0x2cd5a9=>{var _0x2491c3=_0x1e9120;this['_commandService'][_0x2491c3(0x24c)](_0x2cd5a9['id'],_0x2cd5a9[_0x2491c3(0x244)]?JSON[_0x2491c3(0x1b6)](_0x2cd5a9[_0x2491c3(0x244)]):null,{'fromCollab':!0x0});});}[_0x3fcdaf(0x1cb)](){var _0x17d1d7=_0x3fcdaf,_0x2d8cbb;this['_status$'][_0x17d1d7(0x1a8)]('offline'),(_0x2d8cbb=this['_commandDisposable'])==null||_0x2d8cbb[_0x17d1d7(0x1f8)]();}[_0x3fcdaf(0x241)](){var _0x4aac38=_0x3fcdaf;this['_status$'][_0x4aac38(0x1a8)](_0x4aac38(0x246)),this['_fetchOperations']();}};w=Z([f(0x2,_0x3de5df),f(0x3,_0x9a82ee(L)),f(0x4,_0x571f4b)],w);function Te(){var _0x499cb8=_0x3fcdaf;const _0x3c0926=_0x53df57(I),_0x1d4b0c=_0x53df57(_0x222400),_0x10a34d=_0xd11abe(()=>_0x1d4b0c[_0x499cb8(0x230)](_0x507f24['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x40d8af,_0x28a66]=_0x53fc5a(null),[_0x2b48e9,_0x42a832]=_0x53fc5a(h[_0x499cb8(0x1dc)]),_0x63460b=_0xb9fd4a(null);return _0x57fba0(()=>(_0x10a34d&&_0x3c0926['getLiveShareCoordinator'](_0x10a34d['getUnitId']())[_0x499cb8(0x23c)](_0x35c78a=>{var _0x3cd00e=_0x499cb8;_0x28a66(_0x35c78a),_0x63460b[_0x3cd00e(0x22d)]=_0x35c78a[_0x3cd00e(0x200)][_0x3cd00e(0x1c8)](_0x104b6b=>{_0x42a832(_0x104b6b);});}),()=>{var _0x317dd4=_0x499cb8,_0xf34370;(_0xf34370=_0x63460b[_0x317dd4(0x22d)])==null||_0xf34370[_0x317dd4(0x1fb)](),_0x63460b['current']=null;}),[_0x10a34d,_0x3c0926]),_0x40d8af?_0xa1dd95(_0x12643e,{'align':_0x499cb8(0x1e2),'disabled':_0x2b48e9===h[_0x499cb8(0x227)],'className':_0x499cb8(0x22a),'overlay':_0xa1dd95($e,{'status':_0x2b48e9,'coordinator':_0x40d8af}),'children':_0xa1dd95(_0x499cb8(0x232),{'className':_0x3635fb(_0x499cb8(0x225),{'univer-cursor-not-allowed':_0x2b48e9===h[_0x499cb8(0x227)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2b48e9!==h[_0x499cb8(0x227)]}),'type':'button','children':_0xa1dd95(B,{'className':_0x499cb8(0x1a7)})})}):null;}function $e(_0x37362c){var _0x595c9f=_0x3fcdaf;const {status:_0x3c4dc8,coordinator:_0x61d20b}=_0x37362c;switch(_0x3c4dc8){case h[_0x595c9f(0x1dc)]:return _0xa1dd95(Fe,{'coordinator':_0x61d20b});case h[_0x595c9f(0x1fc)]:return _0xa1dd95(He,{'coordinator':_0x61d20b});case h[_0x595c9f(0x1c1)]:return _0xa1dd95(je,{'coordinator':_0x61d20b});case h['OFFLINE']:return _0xa1dd95(Ve,{});case h['PRESENTING']:return _0xa1dd95(Ue,{'coordinator':_0x61d20b});default:return null;}}function Fe(_0x5e28fb){var _0x3d3a9d=_0x3fcdaf;const {coordinator:_0x458ff7}=_0x5e28fb;return _0x22e12f(_0x1222e5,{'children':[_0xa1dd95(_0x3d3a9d(0x1f1),{'className':_0x3d3a9d(0x1f5),'children':_0x3d3a9d(0x214)}),_0xa1dd95(_0x3522ab,{'onClick':()=>_0x458ff7[_0x3d3a9d(0x242)](),'children':_0x3d3a9d(0x205)})]});}function He(_0x48fba7){var _0x544036=_0x3fcdaf;const {coordinator:_0x40ac6f}=_0x48fba7;return _0x22e12f(_0x1222e5,{'children':[_0xa1dd95(_0x544036(0x1f1),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0xa1dd95(_0x3522ab,{'onClick':()=>_0x40ac6f[_0x544036(0x226)](),'children':_0x544036(0x1a3)})]});}function je(_0x4e471d){var _0x3494eb=_0x3fcdaf;const {coordinator:_0x21f659}=_0x4e471d;return _0x22e12f(_0x1222e5,{'children':[_0xa1dd95('div',{'className':_0x3494eb(0x1f5),'children':_0x3494eb(0x1cd)}),_0xa1dd95(_0x3522ab,{'variant':_0x3494eb(0x22c),'onClick':()=>_0x21f659['startFollowing'](),'children':_0x3494eb(0x23f)})]});}function Ue(_0xa94eaa){var _0x2835e2=_0x3fcdaf;const {coordinator:_0xb7a7c5}=_0xa94eaa;return _0x22e12f(_0x1222e5,{'children':[_0xa1dd95(_0x2835e2(0x1f1),{'className':_0x2835e2(0x1f5),'children':'You\x27re\x20presenting\x20the\x20document'}),_0xa1dd95(_0x3522ab,{'variant':_0x2835e2(0x1b5),'onClick':()=>_0xb7a7c5[_0x2835e2(0x1d3)](),'children':_0x2835e2(0x249)})]});}function Ve(){var _0x1389b4=_0x3fcdaf;return _0xa1dd95(_0x1222e5,{'children':_0x1389b4(0x1f2)});}var Me=Object[_0x3fcdaf(0x1e7)],ke=(_0x4309a6,_0x29e199,_0x4bf8bf,_0x2cba3c)=>{var _0x388cad=_0x3fcdaf;for(var _0x1adc6d=_0x2cba3c>0x1?void 0x0:_0x2cba3c?Me(_0x29e199,_0x4bf8bf):_0x29e199,_0x617904=_0x4309a6[_0x388cad(0x209)]-0x1,_0x26d74a;_0x617904>=0x0;_0x617904--)(_0x26d74a=_0x4309a6[_0x617904])&&(_0x1adc6d=_0x26d74a(_0x1adc6d)||_0x1adc6d);return _0x1adc6d;},$=(_0x26d02e,_0x1c2de6)=>(_0x345e23,_0x53562f)=>_0x1c2de6(_0x345e23,_0x53562f,_0x26d02e);let b=class extends _0x44f2cd{constructor(_0x5c34fd,_0x363429){var _0x3fed96=_0x3fcdaf;super(),this[_0x3fed96(0x231)]=_0x5c34fd,this['_uiPartsService']=_0x363429,this[_0x3fed96(0x1a6)]();}['_mountLiveShare'](){var _0x45e6e7=_0x3fcdaf;this[_0x45e6e7(0x21f)](this[_0x45e6e7(0x1ab)]['registerComponent'](_0x896a64[_0x45e6e7(0x1e3)],()=>_0x50a59d(Te,this[_0x45e6e7(0x231)])));}};b=ke([$(0x0,_0x9a82ee(_0xc9b6d3)),$(0x1,_0x4bf856)],b);var Ge=Object[_0x3fcdaf(0x1c6)],We=Object[_0x3fcdaf(0x1e7)],Ye=(_0x381340,_0x4a5134,_0x156510)=>_0x4a5134 in _0x381340?Ge(_0x381340,_0x4a5134,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x156510}):_0x381340[_0x4a5134]=_0x156510,Be=(_0xeed9e1,_0x5a38e7,_0x43061b,_0x230b68)=>{var _0x174969=_0x3fcdaf;for(var _0x3f8fdd=_0x230b68>0x1?void 0x0:_0x230b68?We(_0x5a38e7,_0x43061b):_0x5a38e7,_0x53e739=_0xeed9e1[_0x174969(0x209)]-0x1,_0x45bdd3;_0x53e739>=0x0;_0x53e739--)(_0x45bdd3=_0xeed9e1[_0x53e739])&&(_0x3f8fdd=_0x45bdd3(_0x3f8fdd)||_0x3f8fdd);return _0x3f8fdd;},F=(_0x8f27ac,_0x1eb7ca)=>(_0x5cb735,_0x542c8b)=>_0x1eb7ca(_0x5cb735,_0x542c8b,_0x8f27ac),J=(_0x5080c3,_0x189a8d,_0x3f3ab0)=>Ye(_0x5080c3,typeof _0x189a8d!=_0x3fcdaf(0x1a5)?_0x189a8d+'':_0x189a8d,_0x3f3ab0);const Ze=_0x3fcdaf(0x1d1);let O=class extends _0x411b9e{constructor(_0x114a4a=T,_0x151afe,_0x3c9d7e){var _0x335c3c=_0x3fcdaf;super(),this[_0x335c3c(0x1dd)]=_0x114a4a,this[_0x335c3c(0x231)]=_0x151afe,this[_0x335c3c(0x240)]=_0x3c9d7e;const {..._0x8a2894}=_0x596cea({},T,this[_0x335c3c(0x1dd)]);this['_configService'][_0x335c3c(0x215)](Oe,_0x8a2894);}['onStarting'](){var _0x3250fd=_0x3fcdaf;_0x5b4edf(this[_0x3250fd(0x231)],_0x44214c([[L],[I],[m],[b]],this[_0x3250fd(0x1dd)][_0x3250fd(0x213)])),_0x5e1ba2(this[_0x3250fd(0x231)],[[m]]);}[_0x3fcdaf(0x1f4)](){_0x5e1ba2(this['_injector'],[[b]]);}};J(O,_0x3fcdaf(0x220),_0x507f24[_0x3fcdaf(0x1af)]),J(O,_0x3fcdaf(0x1f9),Ze),O=Be([_0x3730da(_0x1df655),F(0x1,_0x9a82ee(_0xc9b6d3)),F(0x2,_0x3de5df)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x317cc4=_0x121d;(function(_0x743470,_0x2002b9){var _0x3a5e86=_0x121d,_0xeb287b=_0x743470();while(!![]){try{var _0x145502=parseInt(_0x3a5e86(0x23f))/0x1+-parseInt(_0x3a5e86(0x250))/0x2*(parseInt(_0x3a5e86(0x236))/0x3)+-parseInt(_0x3a5e86(0x22d))/0x4+parseInt(_0x3a5e86(0x258))/0x5*(-parseInt(_0x3a5e86(0x213))/0x6)+parseInt(_0x3a5e86(0x204))/0x7+-parseInt(_0x3a5e86(0x271))/0x8*(parseInt(_0x3a5e86(0x257))/0x9)+-parseInt(_0x3a5e86(0x293))/0xa*(-parseInt(_0x3a5e86(0x21b))/0xb);if(_0x145502===_0x2002b9)break;else _0xeb287b['push'](_0xeb287b['shift']());}catch(_0x32d39f){_0xeb287b['push'](_0xeb287b['shift']());}}}(_0x4352,0x68b39));var q=Object[_0x317cc4(0x28d)],z=(_0x200f56,_0x34ae8d,_0xab6661)=>_0x34ae8d in _0x200f56?q(_0x200f56,_0x34ae8d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xab6661}):_0x200f56[_0x34ae8d]=_0xab6661,d=(_0x760b2e,_0x2bc7ed,_0x5461bd)=>z(_0x760b2e,typeof _0x2bc7ed!=_0x317cc4(0x230)?_0x2bc7ed+'':_0x2bc7ed,_0x5461bd);import{CollaborationSessionService as _0xf227ba,SessionStatus as _0x488b82,UniverCollaborationClientPlugin as _0x7a3857}from'@univerjs-pro/collaboration-client';import{Disposable as _0x28b745,toDisposable as _0x1750b3,Inject as _0x3973f8,IUniverInstanceService as _0x4d6e57,Injector as _0x44f59d,IConfigService as _0x58ab73,ICommandService as _0x358665,RxDisposable as _0x371e9b,UniverInstanceType as _0x5ada5c,DisposableCollection as _0x5d76a4,CommandType as _0x1cd9a0,DependentOn as _0x17a14e,Plugin as _0x5cb41f,merge as _0x43e9f6,registerDependencies as _0x10add6,mergeOverrideWithDependencies as _0x2908f4,touchDependencies as _0x21ed85}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x34abf8,InsertSheetMutation as _0x15acd4}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x127e50,SetScrollOperation as _0x5f295}from'@univerjs/sheets-ui';import{useDependency as _0x13cf3c,useObservable as _0x3d804b,IUIPartsService as _0x4a839a,BuiltInUIPart as _0x189589,connectInjector as _0x222fb3}from'@univerjs/ui';import{jsx as _0x5e0980,jsxs as _0x86c48d,Fragment as _0x4fb342}from'react/jsx-runtime';import{Dropdown as _0xd3e1d7,clsx as _0x204084,Button as _0x1e8eb3}from'@univerjs/design';import{forwardRef as _0x10f6cc,useRef as _0xa2b4b4,createElement as _0x1cfd2c,useState as _0x1fab71,useEffect as _0x28befb}from'react';import{CollaborationEvent as _0x2f29ed,parseProtocolChangeset as _0x13f9cc}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x290e70,Subject as _0x2d0f0f}from'rxjs';import{takeUntil as _0x2284f5,throttleTime as _0x16037d}from'rxjs/operators';function _0x4352(){var _0xc6a2ca=['univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','attrs','You\x27re\x20following\x20the\x20presenter','tag','type','UNIVER_UNKNOWN','_startPresenting','unsubscribe','children','getMemberID','prototype','_collabSessionService','426qvjTkw','toString','LIVESHARE_REQUEST_HOST','find','_mountLiveShare','_injector','_handleOperation','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','517YBfGvf','_handleOnline','length','_stopPresenting','status$','requireSession','LIVESHARE_OPERATION','univer-w-full\x20univer-mb-3\x20univer-text-sm','stopFollowing','stopPresenting','IDLE','UNIVER_SHEET','_startLiveShareCoordinator','univer-size-4','colorChannel1','defIds','assign','mutations','259304SfKzGH','NEW_CHANGESETS','dispose$','symbol','idle','_liveShareService','_reporters','icon','xlink:href','1689OzIJYf','propertyIsEnumerable','presenter','_status$','_univerInstanceService','call','subscribe','use','string','494887EFhmMW','default','_entities','getConfig','map','_commandService','_collabSession','SAME_OPERATION_SHARE_INTERVAL','_config','data','get','add','delete','HEADER_MENU','complete','executeCommand','_uiPartsService','398BKSrHe','You\x27re\x20presenting\x20the\x20document','live-share-single','registerSharedOperation','set','div','_handleOffline','207DIsSUK','6005zwUpDz','getValue','You\x27are\x20offline.','next','_presenter','_beIdle','_sharedOperations','_commandDisposable','init','shouldShareOperation','dispose','then','presenting','evenodd','trim','_handleTerminate','Stop\x20presenting','onRendered','pluginName','getOwnPropertySymbols','includes','_handleNewChangeSets','getUnitId','FOLLOWING','has','239576zOJEOM','registerInitialStateReporter','UNIVER_LIVE_SHARE_PLUGIN','_unitID','idSuffix','text','sessionStatus$','PRESENTING','getTypeOfUnitAdded$','startFollowing','indexOf','disposeWithMe','_handleNewHost','extend','send','unitId','path','from','apply','registerComponent','parse','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','currentColor','replace','hasOwnProperty','displayName','_init','_configService','defineProperty','stringify','event$','concat','LiveShareSingle','defs','21130SGrRzU','override','1em','params','following','_stopFollowing','UniverIcon','className','values','getOwnPropertyDescriptor','offline','OFFLINE','getCurrentTypeOfUnit$','forEach','_fetchOperations','clear','createInstance','svg','entries','NOT_FOLLOWING','current','_startFollowing','end','mask','LIVESHARE_TERMINATE','OPERATION','LIVESHARE_NEW_HOST','button','not-following','tryStartPresenting','memberID','live-share.config','getInitialStates','pipe','random','url(#$1','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','getTypeOfUnitDisposed$','5499018uflIGE','Present\x20this\x20document','_status'];_0x4352=function(){return _0xc6a2ca;};return _0x4352();}const Oe=_0x317cc4(0x1fd),T={};class L extends _0x28b745{constructor(){var _0x1ee847=_0x317cc4;super(...arguments),d(this,_0x1ee847(0x25e),new Set()),d(this,_0x1ee847(0x233),new Set());}[_0x317cc4(0x253)](_0x34554e){var _0x453eb3=_0x317cc4;return this[_0x453eb3(0x25e)][_0x453eb3(0x24a)](_0x34554e),_0x1750b3(()=>this['_sharedOperations'][_0x453eb3(0x24b)](_0x34554e));}[_0x317cc4(0x272)](_0x205694){var _0x12118b=_0x317cc4;return this['_reporters']['add'](_0x205694),_0x1750b3(()=>this[_0x12118b(0x233)][_0x12118b(0x24b)](_0x205694));}[_0x317cc4(0x261)](_0x4348be){var _0x170dc5=_0x317cc4;return this[_0x170dc5(0x25e)][_0x170dc5(0x270)](_0x4348be);}[_0x317cc4(0x1fe)](_0x54491a){var _0x8efbc8=_0x317cc4;return Array[_0x8efbc8(0x282)](this['_reporters'])[_0x8efbc8(0x243)](_0x3e15f8=>_0x3e15f8(_0x54491a));}}var Ee=Object[_0x317cc4(0x29c)],Ce=(_0x68cb5c,_0x2e1b8e,_0x1909c4,_0x440302)=>{var _0x54f249=_0x317cc4;for(var _0x3dfd77=_0x440302>0x1?void 0x0:_0x440302?Ee(_0x2e1b8e,_0x1909c4):_0x2e1b8e,_0x411a7a=_0x68cb5c[_0x54f249(0x21d)]-0x1,_0x493dff;_0x411a7a>=0x0;_0x411a7a--)(_0x493dff=_0x68cb5c[_0x411a7a])&&(_0x3dfd77=_0x493dff(_0x3dfd77)||_0x3dfd77);return _0x3dfd77;},Ne=(_0x439b52,_0x5dd71f)=>(_0x45d733,_0x51427e)=>_0x5dd71f(_0x45d733,_0x51427e,_0x439b52);let m=class extends _0x28b745{constructor(_0x17ab6f){var _0x3e693a=_0x317cc4;super(),this[_0x3e693a(0x232)]=_0x17ab6f,this[_0x3e693a(0x28b)]();}['_init'](){var _0x4fe881=_0x317cc4;[_0x127e50['id'],_0x5f295['id'],_0x34abf8['id']][_0x4fe881(0x2a0)](_0x30dfff=>{var _0x4a8588=_0x4fe881;this[_0x4a8588(0x27c)](this[_0x4a8588(0x232)][_0x4a8588(0x253)](_0x30dfff));});}};m=Ce([Ne(0x0,_0x3973f8(L))],m);var c=function(){var _0x1890e3=_0x317cc4;return c=Object[_0x1890e3(0x22b)]||function(_0x1795d7){var _0x515cdb=_0x1890e3;for(var _0x461435,_0x927aaf=0x1,_0x1fc6d0=arguments[_0x515cdb(0x21d)];_0x927aaf<_0x1fc6d0;_0x927aaf++){_0x461435=arguments[_0x927aaf];for(var _0x2df735 in _0x461435)Object['prototype'][_0x515cdb(0x289)]['call'](_0x461435,_0x2df735)&&(_0x1795d7[_0x2df735]=_0x461435[_0x2df735]);}return _0x1795d7;},c[_0x1890e3(0x283)](this,arguments);},we=function(_0x59ab0d,_0x28711b){var _0x2597f7=_0x317cc4,_0x5b9470={};for(var _0xfe8e5f in _0x59ab0d)Object['prototype'][_0x2597f7(0x289)][_0x2597f7(0x23b)](_0x59ab0d,_0xfe8e5f)&&_0x28711b['indexOf'](_0xfe8e5f)<0x0&&(_0x5b9470[_0xfe8e5f]=_0x59ab0d[_0xfe8e5f]);if(_0x59ab0d!=null&&typeof Object[_0x2597f7(0x26b)]=='function'){for(var _0x47165a=0x0,_0xfe8e5f=Object['getOwnPropertySymbols'](_0x59ab0d);_0x47165a<_0xfe8e5f[_0x2597f7(0x21d)];_0x47165a++)_0x28711b[_0x2597f7(0x27b)](_0xfe8e5f[_0x47165a])<0x0&&Object[_0x2597f7(0x211)][_0x2597f7(0x237)][_0x2597f7(0x23b)](_0x59ab0d,_0xfe8e5f[_0x47165a])&&(_0x5b9470[_0xfe8e5f[_0x47165a]]=_0x59ab0d[_0xfe8e5f[_0x47165a]]);}return _0x5b9470;},W=_0x10f6cc(function(_0x41fb54,_0x291d63){var _0x22b872=_0x317cc4,_0xab3917=_0x41fb54[_0x22b872(0x234)],_0x342f82=_0x41fb54['id'],_0x2c3dca=_0x41fb54[_0x22b872(0x29a)],_0x220c64=_0x41fb54[_0x22b872(0x27e)],_0x3df331=we(_0x41fb54,[_0x22b872(0x234),'id','className',_0x22b872(0x27e)]),_0x5bf2b4='univerjs-icon\x20univerjs-icon-'[_0x22b872(0x290)](_0x342f82,'\x20')[_0x22b872(0x290)](_0x2c3dca||'')[_0x22b872(0x266)](),_0x2d4b15=_0xa2b4b4('_'[_0x22b872(0x290)](Le()));return Y(_0xab3917,''[_0x22b872(0x290)](_0x342f82),{'defIds':_0xab3917['defIds'],'idSuffix':_0x2d4b15[_0x22b872(0x2a7)]},c({'ref':_0x291d63,'className':_0x5bf2b4},_0x3df331),_0x220c64);});function Y(_0x457f6e,_0x57644a,_0x74a3cf,_0xa14b6,_0x595f46){var _0x55d5f5=_0x317cc4;return _0x1cfd2c(_0x457f6e[_0x55d5f5(0x20a)],c(c({'key':_0x57644a},De(_0x457f6e,_0x74a3cf,_0x595f46)),_0xa14b6),(xe(_0x457f6e,_0x74a3cf)[_0x55d5f5(0x20f)]||[])[_0x55d5f5(0x243)](function(_0x4f64fc,_0x4c4b56){var _0xf288d7=_0x55d5f5;return Y(_0x4f64fc,''[_0xf288d7(0x290)](_0x57644a,'-')['concat'](_0x457f6e[_0xf288d7(0x20a)],'-')[_0xf288d7(0x290)](_0x4c4b56),_0x74a3cf,void 0x0,_0x595f46);}));}function De(_0x13c203,_0x345e01,_0x3e0965){var _0xcf1fd9=_0x317cc4,_0x244685=c({},_0x13c203[_0xcf1fd9(0x208)]);_0x3e0965!=null&&_0x3e0965[_0xcf1fd9(0x229)]&&_0x244685['fill']===_0xcf1fd9(0x229)&&(_0x244685['fill']=_0x3e0965['colorChannel1']),_0x13c203[_0xcf1fd9(0x20a)]===_0xcf1fd9(0x1f5)&&_0x244685['id']&&(_0x244685['id']=_0x244685['id']+_0x345e01[_0xcf1fd9(0x275)]),Object[_0xcf1fd9(0x2a5)](_0x244685)[_0xcf1fd9(0x2a0)](function(_0x37f37b){var _0x5905d4=_0xcf1fd9,_0x92d969=_0x37f37b[0x0],_0x14c884=_0x37f37b[0x1];_0x92d969===_0x5905d4(0x1f5)&&typeof _0x14c884==_0x5905d4(0x23e)&&(_0x244685[_0x92d969]=_0x14c884[_0x5905d4(0x288)](/url\(#(.*)\)/,_0x5905d4(0x201)['concat'](_0x345e01['idSuffix'],')')));});var _0x599969=_0x345e01[_0xcf1fd9(0x22a)];return!_0x599969||_0x599969[_0xcf1fd9(0x21d)]===0x0||(_0x13c203[_0xcf1fd9(0x20a)]===_0xcf1fd9(0x23d)&&_0x244685[_0xcf1fd9(0x235)]&&(_0x244685['xlink:href']=_0x244685['xlink:href']+_0x345e01[_0xcf1fd9(0x275)]),Object[_0xcf1fd9(0x2a5)](_0x244685)[_0xcf1fd9(0x2a0)](function(_0x97fc36){var _0x4ece42=_0xcf1fd9,_0x324bd6=_0x97fc36[0x0],_0x25992a=_0x97fc36[0x1];typeof _0x25992a==_0x4ece42(0x23e)&&(_0x244685[_0x324bd6]=_0x25992a[_0x4ece42(0x288)](/url\(#(.*)\)/,_0x4ece42(0x201)['concat'](_0x345e01['idSuffix'],')')));})),_0x244685;}function xe(_0x254ca1,_0x2916d5){var _0xe1863a=_0x317cc4,_0x30178c,_0x31ce65=_0x2916d5['defIds'];return!_0x31ce65||_0x31ce65[_0xe1863a(0x21d)]===0x0?_0x254ca1:_0x254ca1[_0xe1863a(0x20a)]===_0xe1863a(0x292)&&(!((_0x30178c=_0x254ca1['children'])===null||_0x30178c===void 0x0)&&_0x30178c[_0xe1863a(0x21d)])?c(c({},_0x254ca1),{'children':_0x254ca1[_0xe1863a(0x20f)][_0xe1863a(0x243)](function(_0x5ecb20){var _0x2fe6db=_0xe1863a;return typeof _0x5ecb20['attrs']['id']=='string'&&_0x31ce65&&_0x31ce65[_0x2fe6db(0x27b)](_0x5ecb20['attrs']['id'])>-0x1?c(c({},_0x5ecb20),{'attrs':c(c({},_0x5ecb20[_0x2fe6db(0x208)]),{'id':_0x5ecb20[_0x2fe6db(0x208)]['id']+_0x2916d5[_0x2fe6db(0x275)]})}):_0x5ecb20;})}):_0x254ca1;}function Le(){var _0x12aa15=_0x317cc4;return Math[_0x12aa15(0x200)]()[_0x12aa15(0x214)](0x24)['substring'](0x2,0x8);}W[_0x317cc4(0x28a)]=_0x317cc4(0x299);var ye={'tag':_0x317cc4(0x2a4),'attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x317cc4(0x295),'height':_0x317cc4(0x295)},'children':[{'tag':'path','attrs':{'fill':_0x317cc4(0x287),'d':_0x317cc4(0x21a)}},{'tag':_0x317cc4(0x281),'attrs':{'fill':_0x317cc4(0x287),'d':_0x317cc4(0x202),'fillRule':_0x317cc4(0x265),'clipRule':_0x317cc4(0x265)}}]},B=_0x10f6cc(function(_0x38c520,_0x5d0e65){var _0x50000b=_0x317cc4;return _0x1cfd2c(W,Object[_0x50000b(0x22b)]({},_0x38c520,{'id':_0x50000b(0x252),'ref':_0x5d0e65,'icon':ye}));});B['displayName']=_0x317cc4(0x291);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x486090,_0x1b1176,_0x407818,_0x36d660)=>{for(var _0x3bf0b0=_0x36d660>0x1?void 0x0:_0x36d660?Re(_0x1b1176,_0x407818):_0x1b1176,_0x14b27b=_0x486090['length']-0x1,_0x50fe74;_0x14b27b>=0x0;_0x14b27b--)(_0x50fe74=_0x486090[_0x14b27b])&&(_0x3bf0b0=_0x50fe74(_0x3bf0b0)||_0x3bf0b0);return _0x3bf0b0;},f=(_0x4ea832,_0x1ee1e6)=>(_0x3125a1,_0x4a7d3a)=>_0x1ee1e6(_0x3125a1,_0x4a7d3a,_0x4ea832);let I=class extends _0x371e9b{constructor(_0x4bc49d,_0x310e0e,_0x24ceb6){var _0x2386b5=_0x317cc4;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x4bc49d,this[_0x2386b5(0x218)]=_0x310e0e,this[_0x2386b5(0x212)]=_0x24ceb6,this['_init']());}async['getLiveShareCoordinator'](_0x511194){var _0x13fa47=_0x317cc4;return this[_0x13fa47(0x241)]['has'](_0x511194)||await this[_0x13fa47(0x227)](_0x511194),this[_0x13fa47(0x241)]['get'](_0x511194);}[_0x317cc4(0x28b)](){var _0x4ca48c=_0x317cc4;this[_0x4ca48c(0x23a)][_0x4ca48c(0x279)](_0x5ada5c[_0x4ca48c(0x226)])['pipe'](_0x2284f5(this[_0x4ca48c(0x22f)]))[_0x4ca48c(0x23c)](async _0x15f34a=>{var _0xb35db2=_0x4ca48c;const _0x3d74ca=_0x15f34a['getUnitId']();this['_entities'][_0xb35db2(0x270)](_0x3d74ca)||this[_0xb35db2(0x227)](_0x3d74ca);}),this['_univerInstanceService'][_0x4ca48c(0x203)](_0x5ada5c[_0x4ca48c(0x226)])['pipe'](_0x2284f5(this[_0x4ca48c(0x22f)]))['subscribe'](_0x290668=>{var _0x2134bb=_0x4ca48c;const _0x16f4e4=_0x290668[_0x2134bb(0x26e)](),_0x5982a6=this['_entities'][_0x2134bb(0x249)](_0x16f4e4);_0x5982a6==null||_0x5982a6['dispose']();});}async[_0x317cc4(0x227)](_0x3baa74){var _0x3a9deb=_0x317cc4;const _0x2fe467=await this[_0x3a9deb(0x212)][_0x3a9deb(0x220)](_0x3baa74),_0x202e0c=this['_injector'][_0x3a9deb(0x2a3)](w,_0x3baa74,_0x2fe467);return _0x202e0c[_0x3a9deb(0x260)](),this[_0x3a9deb(0x241)][_0x3a9deb(0x254)](_0x3baa74,_0x202e0c),_0x202e0c;}};I=Z([f(0x0,_0x4d6e57),f(0x1,_0x3973f8(_0x44f59d)),f(0x2,_0x3973f8(_0xf227ba))],I);var h=(_0x4b2fe4=>(_0x4b2fe4['OFFLINE']='offline',_0x4b2fe4['IDLE']=_0x317cc4(0x231),_0x4b2fe4[_0x317cc4(0x26f)]=_0x317cc4(0x297),_0x4b2fe4[_0x317cc4(0x2a6)]=_0x317cc4(0x1fa),_0x4b2fe4[_0x317cc4(0x278)]=_0x317cc4(0x264),_0x4b2fe4))(h||{});const Pe=_0x317cc4(0x246),Ae=0xc8;let w=class extends _0x371e9b{constructor(_0x1e49c2,_0x1a22f2,_0x2c6a87,_0x4a48d1,_0x55bd8f){var _0x1674c0=_0x317cc4;super(),d(this,'_status$',new _0x290e70(_0x1674c0(0x231))),d(this,'status$',this[_0x1674c0(0x239)]['asObservable']()),d(this,_0x1674c0(0x28b),!0x1),d(this,_0x1674c0(0x25f),null),d(this,_0x1674c0(0x25c),null),(this['_unitID']=_0x1e49c2,this['_collabSession']=_0x1a22f2,this['_configService']=_0x2c6a87,this[_0x1674c0(0x232)]=_0x4a48d1,this[_0x1674c0(0x244)]=_0x55bd8f);}get[_0x317cc4(0x206)](){var _0x1b5e0c=_0x317cc4;return this[_0x1b5e0c(0x239)][_0x1b5e0c(0x259)]();}['dispose'](){var _0x1105c9=_0x317cc4,_0x32d36f;(_0x32d36f=this[_0x1105c9(0x25f)])==null||_0x32d36f['dispose'](),this[_0x1105c9(0x239)][_0x1105c9(0x25b)](_0x1105c9(0x231)),this['_status$'][_0x1105c9(0x24d)]();}['init'](){var _0x38f51a=_0x317cc4;this[_0x38f51a(0x28b)]||(this['_init']=!0x0,this[_0x38f51a(0x245)][_0x38f51a(0x277)][_0x38f51a(0x1ff)](_0x2284f5(this['dispose$']))[_0x38f51a(0x23c)](_0x199132=>{var _0x529f0d=_0x38f51a;switch(_0x199132){case _0x488b82[_0x529f0d(0x29e)]:this[_0x529f0d(0x256)]();break;case _0x488b82['ONLINE']:this[_0x529f0d(0x21c)]();break;}}),this['_collabSession'][_0x38f51a(0x28f)][_0x38f51a(0x1ff)](_0x2284f5(this['dispose$']))[_0x38f51a(0x23c)](_0x2bd11c=>{var _0x1d6a66=_0x38f51a;const {eventID:_0x5aac88}=_0x2bd11c;switch(_0x5aac88){case _0x2f29ed[_0x1d6a66(0x1f8)]:this['_handleNewHost'](_0x2bd11c);break;case _0x2f29ed[_0x1d6a66(0x221)]:this['_handleOperation'](_0x2bd11c);break;case _0x2f29ed[_0x1d6a66(0x1f6)]:this[_0x1d6a66(0x267)]();break;case _0x2f29ed[_0x1d6a66(0x22e)]:this[_0x1d6a66(0x26d)](_0x2bd11c);break;}}));}[_0x317cc4(0x1fb)](){var _0x79452b=_0x317cc4;this[_0x79452b(0x245)][_0x79452b(0x27f)]({'eventID':_0x2f29ed[_0x79452b(0x215)],'data':{'unitID':this[_0x79452b(0x274)],'userID':this[_0x79452b(0x245)][_0x79452b(0x210)]()}},this[_0x79452b(0x274)]);}['stopPresenting'](){var _0xb697d8=_0x317cc4;this[_0xb697d8(0x206)]===_0xb697d8(0x264)&&(this[_0xb697d8(0x239)][_0xb697d8(0x25b)](_0xb697d8(0x231)),this[_0xb697d8(0x245)][_0xb697d8(0x27f)]({'eventID':_0x2f29ed[_0xb697d8(0x1f6)],'data':{'unitID':this[_0xb697d8(0x274)]}},this['_unitID']));}[_0x317cc4(0x27a)](){var _0x2bd8af=_0x317cc4;this[_0x2bd8af(0x206)]===_0x2bd8af(0x1fa)&&(this[_0x2bd8af(0x239)][_0x2bd8af(0x25b)]('following'),this[_0x2bd8af(0x1f3)]());}[_0x317cc4(0x223)](){var _0x194c5c=_0x317cc4;this[_0x194c5c(0x206)]==='following'&&this[_0x194c5c(0x298)]();}[_0x317cc4(0x27d)](_0x4dbc46){var _0x3271a6=_0x317cc4;const {presenter:_0x1f614c}=_0x4dbc46[_0x3271a6(0x248)],_0x45375d=this['_collabSession']['getMemberID']();this[_0x3271a6(0x25c)]=_0x1f614c,_0x1f614c===_0x45375d?(this[_0x3271a6(0x298)](),this[_0x3271a6(0x20d)]()):this[_0x3271a6(0x206)]!=='not-following'&&(this[_0x3271a6(0x21e)](),this[_0x3271a6(0x1f3)]());}[_0x317cc4(0x2a1)](){var _0x453e3f=_0x317cc4;const _0x3e5e75={'eventID':_0x2f29ed['LIVESHARE_FETCH_OPERATIONS']};this[_0x453e3f(0x245)][_0x453e3f(0x27f)](_0x3e5e75,this[_0x453e3f(0x274)]);}['_handleTerminate'](){var _0x1c9174=_0x317cc4;this[_0x1c9174(0x25c)]=null,this[_0x1c9174(0x206)]!=='presenting'&&this[_0x1c9174(0x25d)]();}[_0x317cc4(0x26d)](_0x1d3829){var _0x3e838d=_0x317cc4;if(this[_0x3e838d(0x206)]===_0x3e838d(0x297)&&this['_presenter']===_0x1d3829[_0x3e838d(0x248)][_0x3e838d(0x1fc)]){const _0x54a95f=_0x13f9cc(_0x1d3829[_0x3e838d(0x248)])[_0x3e838d(0x22c)]['reverse']()[_0x3e838d(0x216)](_0x3fb685=>_0x3fb685['id']===_0x15acd4['id']);if(_0x54a95f){const _0x3ffaf3=_0x54a95f['params'][_0x3e838d(0x280)],_0x3861a1=_0x54a95f[_0x3e838d(0x296)]['sheet']['id'];setTimeout(()=>{var _0x2f50c0=_0x3e838d;this[_0x2f50c0(0x244)][_0x2f50c0(0x24e)](_0x34abf8['id'],{'unitId':_0x3ffaf3,'subUnitId':_0x3861a1},{'fromCollab':!0x0});});}}}[_0x317cc4(0x20d)](){var _0x440869=_0x317cc4;this[_0x440869(0x239)][_0x440869(0x25b)]('presenting');const _0x1e16ab=new Map(),_0x1d7efe=this['_commandDisposable']=new _0x5d76a4();_0x1d7efe[_0x440869(0x24a)](_0x1750b3(()=>{var _0x44cc42=_0x440869;_0x1e16ab[_0x44cc42(0x2a0)](_0x476daf=>_0x476daf[_0x44cc42(0x24d)]()),_0x1e16ab[_0x44cc42(0x2a2)]();})),_0x1d7efe['add'](this[_0x440869(0x244)]['onCommandExecuted'](_0x3a6da4=>{var _0x1d24ef=_0x440869,_0x209416;if(_0x3a6da4[_0x1d24ef(0x20b)]!==_0x1cd9a0[_0x1d24ef(0x1f7)]||!this[_0x1d24ef(0x232)]['shouldShareOperation'](_0x3a6da4['id']))return;const {id:_0x24424c}=_0x3a6da4;let _0x7dac48;_0x1e16ab[_0x1d24ef(0x270)](_0x24424c)?_0x7dac48=_0x1e16ab[_0x1d24ef(0x249)](_0x24424c):(_0x7dac48=new _0x2d0f0f(),_0x1e16ab['set'](_0x24424c,_0x7dac48),_0x7dac48[_0x1d24ef(0x1ff)](_0x16037d((_0x209416=this[_0x1d24ef(0x28c)][_0x1d24ef(0x242)](Pe))!=null?_0x209416:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x366b6b=>{var _0x51b633=_0x1d24ef;this[_0x51b633(0x245)][_0x51b633(0x27f)]({'eventID':_0x2f29ed[_0x51b633(0x221)],'data':{'unitID':this[_0x51b633(0x274)],'operations':{[_0x366b6b['id']]:{'id':_0x366b6b['id'],'params':JSON[_0x51b633(0x28e)](_0x366b6b[_0x51b633(0x296)])}}}},this['_unitID']);})),_0x7dac48[_0x1d24ef(0x25b)](_0x3a6da4);})),this[_0x440869(0x232)][_0x440869(0x1fe)](this[_0x440869(0x274)])[_0x440869(0x2a0)](_0x5d180a=>this[_0x440869(0x245)][_0x440869(0x27f)]({'eventID':_0x2f29ed[_0x440869(0x221)],'data':{'unitID':this['_unitID'],'operations':{[_0x5d180a['id']]:{'id':_0x5d180a['id'],'params':JSON[_0x440869(0x28e)](_0x5d180a[_0x440869(0x296)])}}}},this[_0x440869(0x274)]));}['_stopPresenting'](){var _0x5e133c=_0x317cc4,_0x578793;this[_0x5e133c(0x239)][_0x5e133c(0x25b)](_0x5e133c(0x231)),(_0x578793=this[_0x5e133c(0x25f)])==null||_0x578793[_0x5e133c(0x262)](),this[_0x5e133c(0x25f)]=null;}[_0x317cc4(0x1f3)](){var _0x3f40fa=_0x317cc4,_0x2c9f63;(_0x2c9f63=this[_0x3f40fa(0x25f)])==null||_0x2c9f63['dispose'](),this['_status$'][_0x3f40fa(0x25b)](_0x3f40fa(0x297));}[_0x317cc4(0x25d)](){var _0x243554=_0x317cc4,_0x4f25a7;this[_0x243554(0x239)]['next'](_0x243554(0x231)),(_0x4f25a7=this[_0x243554(0x25f)])==null||_0x4f25a7[_0x243554(0x262)](),this[_0x243554(0x25f)]=null;}[_0x317cc4(0x298)](){var _0x200844=_0x317cc4,_0x1794db;this[_0x200844(0x239)]['next'](_0x200844(0x1fa)),(_0x1794db=this['_commandDisposable'])==null||_0x1794db['dispose']();}[_0x317cc4(0x219)](_0x462795){var _0x356dea=_0x317cc4;if([_0x356dea(0x264),_0x356dea(0x1fa),_0x356dea(0x29d)][_0x356dea(0x26c)](this['_status'])||!_0x462795[_0x356dea(0x248)][_0x356dea(0x238)]||_0x462795[_0x356dea(0x248)]['presenter']===this['_collabSession'][_0x356dea(0x210)]())return;this[_0x356dea(0x206)]==='idle'&&this[_0x356dea(0x1f3)]();const _0x3712c9=_0x462795['data']['operations'];Object[_0x356dea(0x29b)](_0x3712c9)[_0x356dea(0x2a0)](_0x2fab1f=>{var _0x355a5f=_0x356dea;this[_0x355a5f(0x244)]['executeCommand'](_0x2fab1f['id'],_0x2fab1f[_0x355a5f(0x296)]?JSON[_0x355a5f(0x285)](_0x2fab1f[_0x355a5f(0x296)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x556308=_0x317cc4,_0x174270;this['_status$']['next'](_0x556308(0x29d)),(_0x174270=this['_commandDisposable'])==null||_0x174270[_0x556308(0x262)]();}[_0x317cc4(0x21c)](){var _0x34cd18=_0x317cc4;this[_0x34cd18(0x239)]['next'](_0x34cd18(0x231)),this[_0x34cd18(0x2a1)]();}};w=Z([f(0x2,_0x58ab73),f(0x3,_0x3973f8(L)),f(0x4,_0x358665)],w);function Te(){var _0x229741=_0x317cc4;const _0x2da1cc=_0x13cf3c(I),_0x120597=_0x13cf3c(_0x4d6e57),_0x116e02=_0x3d804b(()=>_0x120597[_0x229741(0x29f)](_0x5ada5c[_0x229741(0x226)]),void 0x0,!0x1,[]),[_0x5a6a6f,_0x5fa7a8]=_0x1fab71(null),[_0x283ebc,_0x29aa7a]=_0x1fab71(h[_0x229741(0x225)]),_0xd54d2e=_0xa2b4b4(null);return _0x28befb(()=>(_0x116e02&&_0x2da1cc['getLiveShareCoordinator'](_0x116e02[_0x229741(0x26e)]())[_0x229741(0x263)](_0x1bfb58=>{var _0x16a118=_0x229741;_0x5fa7a8(_0x1bfb58),_0xd54d2e[_0x16a118(0x2a7)]=_0x1bfb58[_0x16a118(0x21f)][_0x16a118(0x23c)](_0x133c13=>{_0x29aa7a(_0x133c13);});}),()=>{var _0x522014=_0x229741,_0x3a4593;(_0x3a4593=_0xd54d2e[_0x522014(0x2a7)])==null||_0x3a4593[_0x522014(0x20e)](),_0xd54d2e['current']=null;}),[_0x116e02,_0x2da1cc]),_0x5a6a6f?_0x5e0980(_0xd3e1d7,{'align':_0x229741(0x1f4),'disabled':_0x283ebc===h[_0x229741(0x29e)],'className':_0x229741(0x207),'overlay':_0x5e0980($e,{'status':_0x283ebc,'coordinator':_0x5a6a6f}),'children':_0x5e0980(_0x229741(0x1f9),{'className':_0x204084(_0x229741(0x286),{'univer-cursor-not-allowed':_0x283ebc===h[_0x229741(0x29e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x283ebc!==h[_0x229741(0x29e)]}),'type':_0x229741(0x1f9),'children':_0x5e0980(B,{'className':_0x229741(0x228)})})}):null;}function $e(_0x92ce41){var _0x5bde97=_0x317cc4;const {status:_0x2c27f9,coordinator:_0x32fac7}=_0x92ce41;switch(_0x2c27f9){case h[_0x5bde97(0x225)]:return _0x5e0980(Fe,{'coordinator':_0x32fac7});case h['FOLLOWING']:return _0x5e0980(He,{'coordinator':_0x32fac7});case h['NOT_FOLLOWING']:return _0x5e0980(je,{'coordinator':_0x32fac7});case h[_0x5bde97(0x29e)]:return _0x5e0980(Ve,{});case h[_0x5bde97(0x278)]:return _0x5e0980(Ue,{'coordinator':_0x32fac7});default:return null;}}function Fe(_0x5c6cf6){var _0x42fb34=_0x317cc4;const {coordinator:_0x287c55}=_0x5c6cf6;return _0x86c48d(_0x4fb342,{'children':[_0x5e0980(_0x42fb34(0x255),{'className':_0x42fb34(0x222),'children':_0x42fb34(0x205)}),_0x5e0980(_0x1e8eb3,{'onClick':()=>_0x287c55['tryStartPresenting'](),'children':'Start'})]});}function He(_0xf55d98){var _0xacef20=_0x317cc4;const {coordinator:_0x29d1c3}=_0xf55d98;return _0x86c48d(_0x4fb342,{'children':[_0x5e0980('div',{'className':_0xacef20(0x222),'children':_0xacef20(0x209)}),_0x5e0980(_0x1e8eb3,{'onClick':()=>_0x29d1c3['stopFollowing'](),'children':'Stop\x20following'})]});}function je(_0x305996){var _0x334509=_0x317cc4;const {coordinator:_0x1ab22e}=_0x305996;return _0x86c48d(_0x4fb342,{'children':[_0x5e0980(_0x334509(0x255),{'className':_0x334509(0x222),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x5e0980(_0x1e8eb3,{'variant':_0x334509(0x276),'onClick':()=>_0x1ab22e['startFollowing'](),'children':'Start\x20following'})]});}function Ue(_0x40fa85){var _0x595a72=_0x317cc4;const {coordinator:_0x3bdb62}=_0x40fa85;return _0x86c48d(_0x4fb342,{'children':[_0x5e0980(_0x595a72(0x255),{'className':_0x595a72(0x222),'children':_0x595a72(0x251)}),_0x5e0980(_0x1e8eb3,{'variant':_0x595a72(0x240),'onClick':()=>_0x3bdb62[_0x595a72(0x224)](),'children':_0x595a72(0x268)})]});}function _0x121d(_0x3ea700,_0x21dfc0){var _0x435208=_0x4352();return _0x121d=function(_0x121d69,_0x121d46){_0x121d69=_0x121d69-0x1f3;var _0x23ec5c=_0x435208[_0x121d69];return _0x23ec5c;},_0x121d(_0x3ea700,_0x21dfc0);}function Ve(){var _0x702579=_0x317cc4;return _0x5e0980(_0x4fb342,{'children':_0x702579(0x25a)});}var Me=Object[_0x317cc4(0x29c)],ke=(_0x4cc53e,_0x178e97,_0x4569f7,_0x149eb6)=>{var _0x449a93=_0x317cc4;for(var _0x5357e1=_0x149eb6>0x1?void 0x0:_0x149eb6?Me(_0x178e97,_0x4569f7):_0x178e97,_0x203dbf=_0x4cc53e[_0x449a93(0x21d)]-0x1,_0x18a9e1;_0x203dbf>=0x0;_0x203dbf--)(_0x18a9e1=_0x4cc53e[_0x203dbf])&&(_0x5357e1=_0x18a9e1(_0x5357e1)||_0x5357e1);return _0x5357e1;},$=(_0x203eee,_0x225775)=>(_0x466659,_0x549bea)=>_0x225775(_0x466659,_0x549bea,_0x203eee);let b=class extends _0x28b745{constructor(_0x218bbd,_0x3ca833){var _0x490b13=_0x317cc4;super(),this['_injector']=_0x218bbd,this[_0x490b13(0x24f)]=_0x3ca833,this[_0x490b13(0x217)]();}['_mountLiveShare'](){var _0x1c0c48=_0x317cc4;this[_0x1c0c48(0x27c)](this['_uiPartsService'][_0x1c0c48(0x284)](_0x189589[_0x1c0c48(0x24c)],()=>_0x222fb3(Te,this[_0x1c0c48(0x218)])));}};b=ke([$(0x0,_0x3973f8(_0x44f59d)),$(0x1,_0x4a839a)],b);var Ge=Object[_0x317cc4(0x28d)],We=Object[_0x317cc4(0x29c)],Ye=(_0x6d7a45,_0x5dddb7,_0x297d92)=>_0x5dddb7 in _0x6d7a45?Ge(_0x6d7a45,_0x5dddb7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x297d92}):_0x6d7a45[_0x5dddb7]=_0x297d92,Be=(_0x2a076e,_0x39caf3,_0x3b92db,_0x52a548)=>{for(var _0x58079e=_0x52a548>0x1?void 0x0:_0x52a548?We(_0x39caf3,_0x3b92db):_0x39caf3,_0x3c84be=_0x2a076e['length']-0x1,_0x262ee8;_0x3c84be>=0x0;_0x3c84be--)(_0x262ee8=_0x2a076e[_0x3c84be])&&(_0x58079e=_0x262ee8(_0x58079e)||_0x58079e);return _0x58079e;},F=(_0x9a5a21,_0x45c024)=>(_0x4f93c8,_0x407735)=>_0x45c024(_0x4f93c8,_0x407735,_0x9a5a21),J=(_0x4d41f4,_0x899a54,_0x460cb3)=>Ye(_0x4d41f4,typeof _0x899a54!=_0x317cc4(0x230)?_0x899a54+'':_0x899a54,_0x460cb3);const Ze=_0x317cc4(0x273);let O=class extends _0x5cb41f{constructor(_0x234ab1=T,_0x443547,_0x330d69){var _0x255c06=_0x317cc4;super(),this[_0x255c06(0x247)]=_0x234ab1,this[_0x255c06(0x218)]=_0x443547,this['_configService']=_0x330d69;const {..._0x26b14a}=_0x43e9f6({},T,this[_0x255c06(0x247)]);this[_0x255c06(0x28c)]['setConfig'](Oe,_0x26b14a);}['onStarting'](){var _0x592c44=_0x317cc4;_0x10add6(this['_injector'],_0x2908f4([[L],[I],[m],[b]],this[_0x592c44(0x247)][_0x592c44(0x294)])),_0x21ed85(this[_0x592c44(0x218)],[[m]]);}[_0x317cc4(0x269)](){_0x21ed85(this['_injector'],[[b]]);}};J(O,_0x317cc4(0x20b),_0x5ada5c[_0x317cc4(0x20c)]),J(O,_0x317cc4(0x26a),Ze),O=Be([_0x17a14e(_0x7a3857),F(0x1,_0x3973f8(_0x44f59d)),F(0x2,_0x58ab73)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x3fcdaf=_0x25a1;(function(_0x4d672a,_0x24fba6){var _0x54399d=_0x25a1,_0x4e63b9=_0x4d672a();while(!![]){try{var _0x22af4f=parseInt(_0x54399d(0x1de))/0x1+-parseInt(_0x54399d(0x1fa))/0x2+-parseInt(_0x54399d(0x1c9))/0x3+-parseInt(_0x54399d(0x1c3))/0x4*(parseInt(_0x54399d(0x207))/0x5)+-parseInt(_0x54399d(0x1ed))/0x6*(parseInt(_0x54399d(0x1f0))/0x7)+-parseInt(_0x54399d(0x203))/0x8*(parseInt(_0x54399d(0x1bd))/0x9)+parseInt(_0x54399d(0x1b3))/0xa;if(_0x22af4f===_0x24fba6)break;else _0x4e63b9['push'](_0x4e63b9['shift']());}catch(_0x87228){_0x4e63b9['push'](_0x4e63b9['shift']());}}}(_0x11ac,0x5b937));var q=Object[_0x3fcdaf(0x1c6)],z=(_0x33f732,_0x12f0fb,_0x4db4b3)=>_0x12f0fb in _0x33f732?q(_0x33f732,_0x12f0fb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4db4b3}):_0x33f732[_0x12f0fb]=_0x4db4b3,d=(_0x14626c,_0x3e7667,_0x3d3703)=>z(_0x14626c,typeof _0x3e7667!=_0x3fcdaf(0x1a5)?_0x3e7667+'':_0x3e7667,_0x3d3703);import{CollaborationSessionService as _0x1c88e5,SessionStatus as _0x39743e,UniverCollaborationClientPlugin as _0x1df655}from'@univerjs-pro/collaboration-client';import{Disposable as _0x44f2cd,toDisposable as _0x318a6b,Inject as _0x9a82ee,IUniverInstanceService as _0x222400,Injector as _0xc9b6d3,IConfigService as _0x3de5df,ICommandService as _0x571f4b,RxDisposable as _0x167f70,UniverInstanceType as _0x507f24,DisposableCollection as _0x3b22fb,CommandType as _0x1728f8,DependentOn as _0x3730da,Plugin as _0x411b9e,merge as _0x596cea,registerDependencies as _0x5b4edf,mergeOverrideWithDependencies as _0x44214c,touchDependencies as _0x5e1ba2}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x3cfc48,InsertSheetMutation as _0x4c632e}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x48f814,SetScrollOperation as _0xd2cb88}from'@univerjs/sheets-ui';import{useDependency as _0x53df57,useObservable as _0xd11abe,IUIPartsService as _0x4bf856,BuiltInUIPart as _0x896a64,connectInjector as _0x50a59d}from'@univerjs/ui';function _0x11ac(){var _0x474cac=['_uiPartsService','getValue','_collabSession','includes','UNIVER_UNKNOWN','live-share.config','idSuffix','following','11742620mlcEsg','icon','default','parse','getTypeOfUnitAdded$','operations','UNIVER_SHEET','data','_collabSessionService','path','10971mUnxHq','getInitialStates','getUnitId','mutations','NOT_FOLLOWING','requireSession','660124wPrugS','find','from','defineProperty','assign','subscribe','2128998QFzEcv','trim','_handleOffline','unitId','You\x27re\x20not\x20following\x20the\x20presenter','_fetchOperations','_startFollowing','_handleOperation','UNIVER_LIVE_SHARE_PLUGIN','_handleNewHost','stopPresenting','clear','presenting','getMemberID','LIVESHARE_OPERATION','prototype','indexOf','presenter','call','IDLE','_config','540273Zfscqk','registerInitialStateReporter','extend','dispose$','end','HEADER_MENU','registerSharedOperation','random','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','getOwnPropertyDescriptor','ONLINE','propertyIsEnumerable','1em','sessionStatus$','function','1256982ZsAdbq','_startLiveShareCoordinator','_status','7ysKeoD','div','You\x27are\x20offline.','_stopFollowing','onRendered','univer-w-full\x20univer-mb-3\x20univer-text-sm','set','getLiveShareCoordinator','dispose','pluginName','7332NsFQrH','unsubscribe','FOLLOWING','has','delete','replace','status$','_startPresenting','attrs','568cblJYZ','entries','Start','evenodd','10ZhqOgs','createInstance','length','sheet','_init','_entities','shouldShareOperation','not-following','_handleTerminate','defIds','use','LIVESHARE_REQUEST_HOST','override','Present\x20this\x20document','setConfig','init','complete','event$','LIVESHARE_FETCH_OPERATIONS','xlink:href','_commandDisposable','colorChannel1','children','string','disposeWithMe','type','mask','_univerInstanceService','get','reverse','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','stopFollowing','OFFLINE','getOwnPropertySymbols','_beIdle','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','url(#$1','text','current','concat','tag','getCurrentTypeOfUnit$','_injector','button','forEach','displayName','asObservable','getTypeOfUnitDisposed$','UniverIcon','univerjs-icon\x20univerjs-icon-','add','0\x200\x2016\x2016','stringify','then','_handleNewChangeSets','hasOwnProperty','Start\x20following','_configService','_handleOnline','tryStartPresenting','svg','params','offline','idle','LIVESHARE_NEW_HOST','values','Stop\x20presenting','_commandService','className','executeCommand','_presenter','onCommandExecuted','_liveShareService','_reporters','map','_sharedOperations','none','pipe','memberID','live-share-single','_status$','currentColor','send','Stop\x20following','substring','symbol','_mountLiveShare','univer-size-4','next','_unitID','fill'];_0x11ac=function(){return _0x474cac;};return _0x11ac();}import{jsx as _0xa1dd95,jsxs as _0x22e12f,Fragment as _0x1222e5}from'react/jsx-runtime';import{Dropdown as _0x12643e,clsx as _0x3635fb,Button as _0x3522ab}from'@univerjs/design';import{forwardRef as _0xd2827d,useRef as _0xb9fd4a,createElement as _0x5f3ba9,useState as _0x53fc5a,useEffect as _0x57fba0}from'react';import{CollaborationEvent as _0x35f1b9,parseProtocolChangeset as _0x30cec3}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x37a185,Subject as _0x33a2b2}from'rxjs';import{takeUntil as _0x580f25,throttleTime as _0x260576}from'rxjs/operators';const Oe=_0x3fcdaf(0x1b0),T={};class L extends _0x44f2cd{constructor(){var _0x555f04=_0x3fcdaf;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x555f04(0x250),new Set());}[_0x3fcdaf(0x1e4)](_0x39a294){var _0x323e5d=_0x3fcdaf;return this[_0x323e5d(0x252)][_0x323e5d(0x239)](_0x39a294),_0x318a6b(()=>this[_0x323e5d(0x252)][_0x323e5d(0x1fe)](_0x39a294));}[_0x3fcdaf(0x1df)](_0x334679){var _0x3fe2c1=_0x3fcdaf;return this[_0x3fe2c1(0x250)][_0x3fe2c1(0x239)](_0x334679),_0x318a6b(()=>this[_0x3fe2c1(0x250)][_0x3fe2c1(0x1fe)](_0x334679));}[_0x3fcdaf(0x20d)](_0x1b9cbe){var _0x5d2e6f=_0x3fcdaf;return this[_0x5d2e6f(0x252)]['has'](_0x1b9cbe);}['getInitialStates'](_0x481169){var _0x4bec6f=_0x3fcdaf;return Array[_0x4bec6f(0x1c5)](this[_0x4bec6f(0x250)])[_0x4bec6f(0x251)](_0x15427a=>_0x15427a(_0x481169));}}var Ee=Object['getOwnPropertyDescriptor'],Ce=(_0x31f9a7,_0xa56a10,_0x2eb30a,_0x5d6360)=>{var _0x599783=_0x3fcdaf;for(var _0x3465c2=_0x5d6360>0x1?void 0x0:_0x5d6360?Ee(_0xa56a10,_0x2eb30a):_0xa56a10,_0x58dc3b=_0x31f9a7[_0x599783(0x209)]-0x1,_0x4bcae8;_0x58dc3b>=0x0;_0x58dc3b--)(_0x4bcae8=_0x31f9a7[_0x58dc3b])&&(_0x3465c2=_0x4bcae8(_0x3465c2)||_0x3465c2);return _0x3465c2;},Ne=(_0x42b3e9,_0x3fcda2)=>(_0x2f7470,_0x2898b3)=>_0x3fcda2(_0x2f7470,_0x2898b3,_0x42b3e9);let m=class extends _0x44f2cd{constructor(_0x564d7c){var _0x18906f=_0x3fcdaf;super(),this[_0x18906f(0x24f)]=_0x564d7c,this['_init']();}[_0x3fcdaf(0x20b)](){[_0x48f814['id'],_0xd2cb88['id'],_0x3cfc48['id']]['forEach'](_0x4da95a=>{var _0x1f9a54=_0x25a1;this[_0x1f9a54(0x21f)](this['_liveShareService']['registerSharedOperation'](_0x4da95a));});}};function _0x25a1(_0xd0958f,_0x235a84){var _0x11ac7c=_0x11ac();return _0x25a1=function(_0x25a1b7,_0x1aff91){_0x25a1b7=_0x25a1b7-0x19c;var _0x307b62=_0x11ac7c[_0x25a1b7];return _0x307b62;},_0x25a1(_0xd0958f,_0x235a84);}m=Ce([Ne(0x0,_0x9a82ee(L))],m);var c=function(){var _0x11068e=_0x3fcdaf;return c=Object[_0x11068e(0x1c7)]||function(_0x59b78b){var _0x27081e=_0x11068e;for(var _0x28375a,_0x52f566=0x1,_0x4159a8=arguments[_0x27081e(0x209)];_0x52f566<_0x4159a8;_0x52f566++){_0x28375a=arguments[_0x52f566];for(var _0x3a0c75 in _0x28375a)Object['prototype'][_0x27081e(0x23e)][_0x27081e(0x1db)](_0x28375a,_0x3a0c75)&&(_0x59b78b[_0x3a0c75]=_0x28375a[_0x3a0c75]);}return _0x59b78b;},c['apply'](this,arguments);},we=function(_0x53dd1c,_0x2edcec){var _0x1fcc17=_0x3fcdaf,_0x43028c={};for(var _0x46fd07 in _0x53dd1c)Object[_0x1fcc17(0x1d8)][_0x1fcc17(0x23e)][_0x1fcc17(0x1db)](_0x53dd1c,_0x46fd07)&&_0x2edcec[_0x1fcc17(0x1d9)](_0x46fd07)<0x0&&(_0x43028c[_0x46fd07]=_0x53dd1c[_0x46fd07]);if(_0x53dd1c!=null&&typeof Object[_0x1fcc17(0x228)]==_0x1fcc17(0x1ec)){for(var _0x9957cd=0x0,_0x46fd07=Object['getOwnPropertySymbols'](_0x53dd1c);_0x9957cd<_0x46fd07[_0x1fcc17(0x209)];_0x9957cd++)_0x2edcec[_0x1fcc17(0x1d9)](_0x46fd07[_0x9957cd])<0x0&&Object[_0x1fcc17(0x1d8)][_0x1fcc17(0x1e9)]['call'](_0x53dd1c,_0x46fd07[_0x9957cd])&&(_0x43028c[_0x46fd07[_0x9957cd]]=_0x53dd1c[_0x46fd07[_0x9957cd]]);}return _0x43028c;},W=_0xd2827d(function(_0x296c6f,_0x3cca77){var _0x70f763=_0x3fcdaf,_0x11238e=_0x296c6f['icon'],_0x4ecc26=_0x296c6f['id'],_0x5d01f6=_0x296c6f[_0x70f763(0x24b)],_0x27ef29=_0x296c6f[_0x70f763(0x1e0)],_0x987b2=we(_0x296c6f,[_0x70f763(0x1b4),'id',_0x70f763(0x24b),_0x70f763(0x1e0)]),_0x5f4786=_0x70f763(0x238)[_0x70f763(0x22e)](_0x4ecc26,'\x20')[_0x70f763(0x22e)](_0x5d01f6||'')[_0x70f763(0x1ca)](),_0x16033f=_0xb9fd4a('_'[_0x70f763(0x22e)](Le()));return Y(_0x11238e,''[_0x70f763(0x22e)](_0x4ecc26),{'defIds':_0x11238e[_0x70f763(0x210)],'idSuffix':_0x16033f[_0x70f763(0x22d)]},c({'ref':_0x3cca77,'className':_0x5f4786},_0x987b2),_0x27ef29);});function Y(_0x1d1f2c,_0x35921f,_0x68b126,_0x4fe24e,_0x60810){var _0x2ffa4a=_0x3fcdaf;return _0x5f3ba9(_0x1d1f2c[_0x2ffa4a(0x22f)],c(c({'key':_0x35921f},De(_0x1d1f2c,_0x68b126,_0x60810)),_0x4fe24e),(xe(_0x1d1f2c,_0x68b126)[_0x2ffa4a(0x21d)]||[])[_0x2ffa4a(0x251)](function(_0x2d5738,_0x22c398){var _0x40e06b=_0x2ffa4a;return Y(_0x2d5738,''[_0x40e06b(0x22e)](_0x35921f,'-')[_0x40e06b(0x22e)](_0x1d1f2c[_0x40e06b(0x22f)],'-')[_0x40e06b(0x22e)](_0x22c398),_0x68b126,void 0x0,_0x60810);}));}function De(_0x294896,_0x45d42e,_0x19166b){var _0x47c556=_0x3fcdaf,_0x28a6d7=c({},_0x294896[_0x47c556(0x202)]);_0x19166b!=null&&_0x19166b[_0x47c556(0x21c)]&&_0x28a6d7['fill']==='colorChannel1'&&(_0x28a6d7[_0x47c556(0x1aa)]=_0x19166b['colorChannel1']),_0x294896['tag']===_0x47c556(0x221)&&_0x28a6d7['id']&&(_0x28a6d7['id']=_0x28a6d7['id']+_0x45d42e[_0x47c556(0x1b1)]),Object[_0x47c556(0x204)](_0x28a6d7)[_0x47c556(0x233)](function(_0x131a15){var _0x545d48=_0x47c556,_0xe27b47=_0x131a15[0x0],_0x497ec8=_0x131a15[0x1];_0xe27b47===_0x545d48(0x221)&&typeof _0x497ec8==_0x545d48(0x21e)&&(_0x28a6d7[_0xe27b47]=_0x497ec8[_0x545d48(0x1ff)](/url\(#(.*)\)/,_0x545d48(0x22b)['concat'](_0x45d42e[_0x545d48(0x1b1)],')')));});var _0x514f6e=_0x45d42e['defIds'];return!_0x514f6e||_0x514f6e[_0x47c556(0x209)]===0x0||(_0x294896['tag']===_0x47c556(0x211)&&_0x28a6d7[_0x47c556(0x21a)]&&(_0x28a6d7[_0x47c556(0x21a)]=_0x28a6d7[_0x47c556(0x21a)]+_0x45d42e[_0x47c556(0x1b1)]),Object[_0x47c556(0x204)](_0x28a6d7)[_0x47c556(0x233)](function(_0x25c8eb){var _0x21c936=_0x47c556,_0x94db30=_0x25c8eb[0x0],_0x3d829c=_0x25c8eb[0x1];typeof _0x3d829c==_0x21c936(0x21e)&&(_0x28a6d7[_0x94db30]=_0x3d829c[_0x21c936(0x1ff)](/url\(#(.*)\)/,_0x21c936(0x22b)['concat'](_0x45d42e[_0x21c936(0x1b1)],')')));})),_0x28a6d7;}function xe(_0x1ea667,_0x4949dd){var _0x4a562e=_0x3fcdaf,_0x37cdaf,_0x3f1b2d=_0x4949dd[_0x4a562e(0x210)];return!_0x3f1b2d||_0x3f1b2d[_0x4a562e(0x209)]===0x0?_0x1ea667:_0x1ea667['tag']==='defs'&&(!((_0x37cdaf=_0x1ea667[_0x4a562e(0x21d)])===null||_0x37cdaf===void 0x0)&&_0x37cdaf[_0x4a562e(0x209)])?c(c({},_0x1ea667),{'children':_0x1ea667[_0x4a562e(0x21d)][_0x4a562e(0x251)](function(_0x559945){var _0x55ad47=_0x4a562e;return typeof _0x559945[_0x55ad47(0x202)]['id']=='string'&&_0x3f1b2d&&_0x3f1b2d[_0x55ad47(0x1d9)](_0x559945[_0x55ad47(0x202)]['id'])>-0x1?c(c({},_0x559945),{'attrs':c(c({},_0x559945[_0x55ad47(0x202)]),{'id':_0x559945['attrs']['id']+_0x4949dd[_0x55ad47(0x1b1)]})}):_0x559945;})}):_0x1ea667;}function Le(){var _0xee673=_0x3fcdaf;return Math[_0xee673(0x1e5)]()['toString'](0x24)[_0xee673(0x1a4)](0x2,0x8);}W[_0x3fcdaf(0x234)]=_0x3fcdaf(0x237);var ye={'tag':_0x3fcdaf(0x243),'attrs':{'fill':_0x3fcdaf(0x19c),'viewBox':_0x3fcdaf(0x23a),'width':_0x3fcdaf(0x1ea),'height':_0x3fcdaf(0x1ea)},'children':[{'tag':_0x3fcdaf(0x1bc),'attrs':{'fill':'currentColor','d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':'path','attrs':{'fill':_0x3fcdaf(0x1a1),'d':_0x3fcdaf(0x1e6),'fillRule':_0x3fcdaf(0x206),'clipRule':'evenodd'}}]},B=_0xd2827d(function(_0x23b342,_0x5560b2){var _0x25772b=_0x3fcdaf;return _0x5f3ba9(W,Object[_0x25772b(0x1c7)]({},_0x23b342,{'id':_0x25772b(0x19f),'ref':_0x5560b2,'icon':ye}));});B[_0x3fcdaf(0x234)]='LiveShareSingle';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x48fc33,_0x55b7c5,_0x3d88e6,_0x14d1dc)=>{var _0x1022df=_0x3fcdaf;for(var _0x1f9625=_0x14d1dc>0x1?void 0x0:_0x14d1dc?Re(_0x55b7c5,_0x3d88e6):_0x55b7c5,_0x5a3b77=_0x48fc33[_0x1022df(0x209)]-0x1,_0x3bf937;_0x5a3b77>=0x0;_0x5a3b77--)(_0x3bf937=_0x48fc33[_0x5a3b77])&&(_0x1f9625=_0x3bf937(_0x1f9625)||_0x1f9625);return _0x1f9625;},f=(_0x336dd7,_0x201335)=>(_0x3c4363,_0xbc233f)=>_0x201335(_0x3c4363,_0xbc233f,_0x336dd7);let I=class extends _0x167f70{constructor(_0x4160b6,_0x136d08,_0x12ea06){var _0x2d397c=_0x3fcdaf;super(),d(this,_0x2d397c(0x20c),new Map()),(this['_univerInstanceService']=_0x4160b6,this[_0x2d397c(0x231)]=_0x136d08,this['_collabSessionService']=_0x12ea06,this[_0x2d397c(0x20b)]());}async[_0x3fcdaf(0x1f7)](_0x376baa){var _0x46cded=_0x3fcdaf;return this['_entities'][_0x46cded(0x1fd)](_0x376baa)||await this['_startLiveShareCoordinator'](_0x376baa),this['_entities'][_0x46cded(0x223)](_0x376baa);}[_0x3fcdaf(0x20b)](){var _0x504844=_0x3fcdaf;this[_0x504844(0x222)][_0x504844(0x1b7)](_0x507f24['UNIVER_SHEET'])['pipe'](_0x580f25(this[_0x504844(0x1e1)]))['subscribe'](async _0x1f0bf2=>{var _0x437acf=_0x504844;const _0xb93c37=_0x1f0bf2[_0x437acf(0x1bf)]();this[_0x437acf(0x20c)][_0x437acf(0x1fd)](_0xb93c37)||this[_0x437acf(0x1ee)](_0xb93c37);}),this[_0x504844(0x222)][_0x504844(0x236)](_0x507f24[_0x504844(0x1b9)])[_0x504844(0x19d)](_0x580f25(this[_0x504844(0x1e1)]))[_0x504844(0x1c8)](_0x5effe9=>{var _0x39f8dc=_0x504844;const _0x4d6694=_0x5effe9[_0x39f8dc(0x1bf)](),_0x1d16b5=this[_0x39f8dc(0x20c)][_0x39f8dc(0x223)](_0x4d6694);_0x1d16b5==null||_0x1d16b5[_0x39f8dc(0x1f8)]();});}async[_0x3fcdaf(0x1ee)](_0x404b98){var _0x1782ba=_0x3fcdaf;const _0x28d9ce=await this[_0x1782ba(0x1bb)][_0x1782ba(0x1c2)](_0x404b98),_0x248af2=this[_0x1782ba(0x231)][_0x1782ba(0x208)](w,_0x404b98,_0x28d9ce);return _0x248af2[_0x1782ba(0x216)](),this[_0x1782ba(0x20c)][_0x1782ba(0x1f6)](_0x404b98,_0x248af2),_0x248af2;}};I=Z([f(0x0,_0x222400),f(0x1,_0x9a82ee(_0xc9b6d3)),f(0x2,_0x9a82ee(_0x1c88e5))],I);var h=(_0x214d2f=>(_0x214d2f[_0x3fcdaf(0x227)]=_0x3fcdaf(0x245),_0x214d2f[_0x3fcdaf(0x1dc)]='idle',_0x214d2f[_0x3fcdaf(0x1fc)]=_0x3fcdaf(0x1b2),_0x214d2f['NOT_FOLLOWING']=_0x3fcdaf(0x20e),_0x214d2f['PRESENTING']=_0x3fcdaf(0x1d5),_0x214d2f))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let w=class extends _0x167f70{constructor(_0x4581dd,_0x5bdbf6,_0x3dd595,_0x48883b,_0x175870){var _0xc16918=_0x3fcdaf;super(),d(this,_0xc16918(0x1a0),new _0x37a185(_0xc16918(0x246))),d(this,_0xc16918(0x200),this[_0xc16918(0x1a0)][_0xc16918(0x235)]()),d(this,_0xc16918(0x20b),!0x1),d(this,_0xc16918(0x21b),null),d(this,_0xc16918(0x24d),null),(this['_unitID']=_0x4581dd,this[_0xc16918(0x1ad)]=_0x5bdbf6,this[_0xc16918(0x240)]=_0x3dd595,this[_0xc16918(0x24f)]=_0x48883b,this[_0xc16918(0x24a)]=_0x175870);}get[_0x3fcdaf(0x1ef)](){var _0x1a34f9=_0x3fcdaf;return this[_0x1a34f9(0x1a0)][_0x1a34f9(0x1ac)]();}[_0x3fcdaf(0x1f8)](){var _0x2d5834=_0x3fcdaf,_0x219e6d;(_0x219e6d=this[_0x2d5834(0x21b)])==null||_0x219e6d['dispose'](),this[_0x2d5834(0x1a0)][_0x2d5834(0x1a8)](_0x2d5834(0x246)),this[_0x2d5834(0x1a0)][_0x2d5834(0x217)]();}['init'](){var _0x2f6781=_0x3fcdaf;this['_init']||(this[_0x2f6781(0x20b)]=!0x0,this['_collabSession'][_0x2f6781(0x1eb)][_0x2f6781(0x19d)](_0x580f25(this[_0x2f6781(0x1e1)]))[_0x2f6781(0x1c8)](_0x4452b4=>{var _0x389b7f=_0x2f6781;switch(_0x4452b4){case _0x39743e['OFFLINE']:this[_0x389b7f(0x1cb)]();break;case _0x39743e[_0x389b7f(0x1e8)]:this[_0x389b7f(0x241)]();break;}}),this[_0x2f6781(0x1ad)][_0x2f6781(0x218)]['pipe'](_0x580f25(this['dispose$']))['subscribe'](_0x10a473=>{var _0x1cbc4a=_0x2f6781;const {eventID:_0x2a13a2}=_0x10a473;switch(_0x2a13a2){case _0x35f1b9[_0x1cbc4a(0x247)]:this[_0x1cbc4a(0x1d2)](_0x10a473);break;case _0x35f1b9[_0x1cbc4a(0x1d7)]:this[_0x1cbc4a(0x1d0)](_0x10a473);break;case _0x35f1b9['LIVESHARE_TERMINATE']:this[_0x1cbc4a(0x20f)]();break;case _0x35f1b9['NEW_CHANGESETS']:this[_0x1cbc4a(0x23d)](_0x10a473);break;}}));}['tryStartPresenting'](){var _0x2de7d0=_0x3fcdaf;this['_collabSession'][_0x2de7d0(0x1a2)]({'eventID':_0x35f1b9[_0x2de7d0(0x212)],'data':{'unitID':this[_0x2de7d0(0x1a9)],'userID':this[_0x2de7d0(0x1ad)][_0x2de7d0(0x1d6)]()}},this[_0x2de7d0(0x1a9)]);}[_0x3fcdaf(0x1d3)](){var _0x17a85f=_0x3fcdaf;this[_0x17a85f(0x1ef)]==='presenting'&&(this[_0x17a85f(0x1a0)][_0x17a85f(0x1a8)]('idle'),this[_0x17a85f(0x1ad)]['send']({'eventID':_0x35f1b9['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x17a85f(0x1a9)]}},this['_unitID']));}['startFollowing'](){var _0x496f13=_0x3fcdaf;this['_status']==='not-following'&&(this[_0x496f13(0x1a0)][_0x496f13(0x1a8)](_0x496f13(0x1b2)),this[_0x496f13(0x1cf)]());}[_0x3fcdaf(0x226)](){var _0x34671e=_0x3fcdaf;this[_0x34671e(0x1ef)]===_0x34671e(0x1b2)&&this[_0x34671e(0x1f3)]();}[_0x3fcdaf(0x1d2)](_0x2d1647){var _0x526b85=_0x3fcdaf;const {presenter:_0x3bb3d9}=_0x2d1647[_0x526b85(0x1ba)],_0x1fd0f1=this['_collabSession'][_0x526b85(0x1d6)]();this['_presenter']=_0x3bb3d9,_0x3bb3d9===_0x1fd0f1?(this[_0x526b85(0x1f3)](),this[_0x526b85(0x201)]()):this['_status']!==_0x526b85(0x20e)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x3fcdaf(0x1ce)](){var _0x51cf6e=_0x3fcdaf;const _0x46eae3={'eventID':_0x35f1b9[_0x51cf6e(0x219)]};this[_0x51cf6e(0x1ad)][_0x51cf6e(0x1a2)](_0x46eae3,this[_0x51cf6e(0x1a9)]);}[_0x3fcdaf(0x20f)](){var _0x545a57=_0x3fcdaf;this[_0x545a57(0x24d)]=null,this[_0x545a57(0x1ef)]!==_0x545a57(0x1d5)&&this[_0x545a57(0x229)]();}[_0x3fcdaf(0x23d)](_0x2f810c){var _0x4b7a1b=_0x3fcdaf;if(this[_0x4b7a1b(0x1ef)]==='following'&&this[_0x4b7a1b(0x24d)]===_0x2f810c[_0x4b7a1b(0x1ba)][_0x4b7a1b(0x19e)]){const _0x36aded=_0x30cec3(_0x2f810c['data'])[_0x4b7a1b(0x1c0)][_0x4b7a1b(0x224)]()[_0x4b7a1b(0x1c4)](_0x23eb5c=>_0x23eb5c['id']===_0x4c632e['id']);if(_0x36aded){const _0x4d8aa4=_0x36aded[_0x4b7a1b(0x244)][_0x4b7a1b(0x1cc)],_0x52fd49=_0x36aded[_0x4b7a1b(0x244)][_0x4b7a1b(0x20a)]['id'];setTimeout(()=>{var _0x2a7224=_0x4b7a1b;this[_0x2a7224(0x24a)][_0x2a7224(0x24c)](_0x3cfc48['id'],{'unitId':_0x4d8aa4,'subUnitId':_0x52fd49},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x50be08=_0x3fcdaf;this[_0x50be08(0x1a0)][_0x50be08(0x1a8)](_0x50be08(0x1d5));const _0x3f3612=new Map(),_0x10e7c0=this[_0x50be08(0x21b)]=new _0x3b22fb();_0x10e7c0[_0x50be08(0x239)](_0x318a6b(()=>{var _0x276870=_0x50be08;_0x3f3612[_0x276870(0x233)](_0x942135=>_0x942135[_0x276870(0x217)]()),_0x3f3612[_0x276870(0x1d4)]();})),_0x10e7c0[_0x50be08(0x239)](this[_0x50be08(0x24a)][_0x50be08(0x24e)](_0x189d22=>{var _0x406964=_0x50be08,_0x5a848a;if(_0x189d22[_0x406964(0x220)]!==_0x1728f8['OPERATION']||!this['_liveShareService'][_0x406964(0x20d)](_0x189d22['id']))return;const {id:_0xa41699}=_0x189d22;let _0x369cb9;_0x3f3612[_0x406964(0x1fd)](_0xa41699)?_0x369cb9=_0x3f3612[_0x406964(0x223)](_0xa41699):(_0x369cb9=new _0x33a2b2(),_0x3f3612[_0x406964(0x1f6)](_0xa41699,_0x369cb9),_0x369cb9[_0x406964(0x19d)](_0x260576((_0x5a848a=this[_0x406964(0x240)]['getConfig'](Pe))!=null?_0x5a848a:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x406964(0x1c8)](_0x16ccce=>{var _0x2ae079=_0x406964;this[_0x2ae079(0x1ad)][_0x2ae079(0x1a2)]({'eventID':_0x35f1b9['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2ae079(0x1a9)],'operations':{[_0x16ccce['id']]:{'id':_0x16ccce['id'],'params':JSON['stringify'](_0x16ccce[_0x2ae079(0x244)])}}}},this[_0x2ae079(0x1a9)]);})),_0x369cb9[_0x406964(0x1a8)](_0x189d22);})),this[_0x50be08(0x24f)][_0x50be08(0x1be)](this[_0x50be08(0x1a9)])[_0x50be08(0x233)](_0x3964d1=>this['_collabSession'][_0x50be08(0x1a2)]({'eventID':_0x35f1b9['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x50be08(0x1a9)],'operations':{[_0x3964d1['id']]:{'id':_0x3964d1['id'],'params':JSON[_0x50be08(0x23b)](_0x3964d1[_0x50be08(0x244)])}}}},this[_0x50be08(0x1a9)]));}['_stopPresenting'](){var _0x599ed3=_0x3fcdaf,_0x39a4cb;this[_0x599ed3(0x1a0)][_0x599ed3(0x1a8)]('idle'),(_0x39a4cb=this['_commandDisposable'])==null||_0x39a4cb[_0x599ed3(0x1f8)](),this['_commandDisposable']=null;}[_0x3fcdaf(0x1cf)](){var _0x447255=_0x3fcdaf,_0x3c0687;(_0x3c0687=this[_0x447255(0x21b)])==null||_0x3c0687[_0x447255(0x1f8)](),this['_status$']['next'](_0x447255(0x1b2));}[_0x3fcdaf(0x229)](){var _0x48be09=_0x3fcdaf,_0x1a77e1;this['_status$'][_0x48be09(0x1a8)](_0x48be09(0x246)),(_0x1a77e1=this[_0x48be09(0x21b)])==null||_0x1a77e1['dispose'](),this[_0x48be09(0x21b)]=null;}[_0x3fcdaf(0x1f3)](){var _0x1e9324=_0x3fcdaf,_0x576ed2;this['_status$'][_0x1e9324(0x1a8)](_0x1e9324(0x20e)),(_0x576ed2=this['_commandDisposable'])==null||_0x576ed2[_0x1e9324(0x1f8)]();}['_handleOperation'](_0x10eeb3){var _0x1e9120=_0x3fcdaf;if([_0x1e9120(0x1d5),_0x1e9120(0x20e),'offline'][_0x1e9120(0x1ae)](this[_0x1e9120(0x1ef)])||!_0x10eeb3['data']['presenter']||_0x10eeb3[_0x1e9120(0x1ba)][_0x1e9120(0x1da)]===this[_0x1e9120(0x1ad)]['getMemberID']())return;this[_0x1e9120(0x1ef)]===_0x1e9120(0x246)&&this[_0x1e9120(0x1cf)]();const _0x331e42=_0x10eeb3[_0x1e9120(0x1ba)][_0x1e9120(0x1b8)];Object[_0x1e9120(0x248)](_0x331e42)[_0x1e9120(0x233)](_0x2cd5a9=>{var _0x2491c3=_0x1e9120;this['_commandService'][_0x2491c3(0x24c)](_0x2cd5a9['id'],_0x2cd5a9[_0x2491c3(0x244)]?JSON[_0x2491c3(0x1b6)](_0x2cd5a9[_0x2491c3(0x244)]):null,{'fromCollab':!0x0});});}[_0x3fcdaf(0x1cb)](){var _0x17d1d7=_0x3fcdaf,_0x2d8cbb;this['_status$'][_0x17d1d7(0x1a8)]('offline'),(_0x2d8cbb=this['_commandDisposable'])==null||_0x2d8cbb[_0x17d1d7(0x1f8)]();}[_0x3fcdaf(0x241)](){var _0x4aac38=_0x3fcdaf;this['_status$'][_0x4aac38(0x1a8)](_0x4aac38(0x246)),this['_fetchOperations']();}};w=Z([f(0x2,_0x3de5df),f(0x3,_0x9a82ee(L)),f(0x4,_0x571f4b)],w);function Te(){var _0x499cb8=_0x3fcdaf;const _0x3c0926=_0x53df57(I),_0x1d4b0c=_0x53df57(_0x222400),_0x10a34d=_0xd11abe(()=>_0x1d4b0c[_0x499cb8(0x230)](_0x507f24['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x40d8af,_0x28a66]=_0x53fc5a(null),[_0x2b48e9,_0x42a832]=_0x53fc5a(h[_0x499cb8(0x1dc)]),_0x63460b=_0xb9fd4a(null);return _0x57fba0(()=>(_0x10a34d&&_0x3c0926['getLiveShareCoordinator'](_0x10a34d['getUnitId']())[_0x499cb8(0x23c)](_0x35c78a=>{var _0x3cd00e=_0x499cb8;_0x28a66(_0x35c78a),_0x63460b[_0x3cd00e(0x22d)]=_0x35c78a[_0x3cd00e(0x200)][_0x3cd00e(0x1c8)](_0x104b6b=>{_0x42a832(_0x104b6b);});}),()=>{var _0x317dd4=_0x499cb8,_0xf34370;(_0xf34370=_0x63460b[_0x317dd4(0x22d)])==null||_0xf34370[_0x317dd4(0x1fb)](),_0x63460b['current']=null;}),[_0x10a34d,_0x3c0926]),_0x40d8af?_0xa1dd95(_0x12643e,{'align':_0x499cb8(0x1e2),'disabled':_0x2b48e9===h[_0x499cb8(0x227)],'className':_0x499cb8(0x22a),'overlay':_0xa1dd95($e,{'status':_0x2b48e9,'coordinator':_0x40d8af}),'children':_0xa1dd95(_0x499cb8(0x232),{'className':_0x3635fb(_0x499cb8(0x225),{'univer-cursor-not-allowed':_0x2b48e9===h[_0x499cb8(0x227)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2b48e9!==h[_0x499cb8(0x227)]}),'type':'button','children':_0xa1dd95(B,{'className':_0x499cb8(0x1a7)})})}):null;}function $e(_0x37362c){var _0x595c9f=_0x3fcdaf;const {status:_0x3c4dc8,coordinator:_0x61d20b}=_0x37362c;switch(_0x3c4dc8){case h[_0x595c9f(0x1dc)]:return _0xa1dd95(Fe,{'coordinator':_0x61d20b});case h[_0x595c9f(0x1fc)]:return _0xa1dd95(He,{'coordinator':_0x61d20b});case h[_0x595c9f(0x1c1)]:return _0xa1dd95(je,{'coordinator':_0x61d20b});case h['OFFLINE']:return _0xa1dd95(Ve,{});case h['PRESENTING']:return _0xa1dd95(Ue,{'coordinator':_0x61d20b});default:return null;}}function Fe(_0x5e28fb){var _0x3d3a9d=_0x3fcdaf;const {coordinator:_0x458ff7}=_0x5e28fb;return _0x22e12f(_0x1222e5,{'children':[_0xa1dd95(_0x3d3a9d(0x1f1),{'className':_0x3d3a9d(0x1f5),'children':_0x3d3a9d(0x214)}),_0xa1dd95(_0x3522ab,{'onClick':()=>_0x458ff7[_0x3d3a9d(0x242)](),'children':_0x3d3a9d(0x205)})]});}function He(_0x48fba7){var _0x544036=_0x3fcdaf;const {coordinator:_0x40ac6f}=_0x48fba7;return _0x22e12f(_0x1222e5,{'children':[_0xa1dd95(_0x544036(0x1f1),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0xa1dd95(_0x3522ab,{'onClick':()=>_0x40ac6f[_0x544036(0x226)](),'children':_0x544036(0x1a3)})]});}function je(_0x4e471d){var _0x3494eb=_0x3fcdaf;const {coordinator:_0x21f659}=_0x4e471d;return _0x22e12f(_0x1222e5,{'children':[_0xa1dd95('div',{'className':_0x3494eb(0x1f5),'children':_0x3494eb(0x1cd)}),_0xa1dd95(_0x3522ab,{'variant':_0x3494eb(0x22c),'onClick':()=>_0x21f659['startFollowing'](),'children':_0x3494eb(0x23f)})]});}function Ue(_0xa94eaa){var _0x2835e2=_0x3fcdaf;const {coordinator:_0xb7a7c5}=_0xa94eaa;return _0x22e12f(_0x1222e5,{'children':[_0xa1dd95(_0x2835e2(0x1f1),{'className':_0x2835e2(0x1f5),'children':'You\x27re\x20presenting\x20the\x20document'}),_0xa1dd95(_0x3522ab,{'variant':_0x2835e2(0x1b5),'onClick':()=>_0xb7a7c5[_0x2835e2(0x1d3)](),'children':_0x2835e2(0x249)})]});}function Ve(){var _0x1389b4=_0x3fcdaf;return _0xa1dd95(_0x1222e5,{'children':_0x1389b4(0x1f2)});}var Me=Object[_0x3fcdaf(0x1e7)],ke=(_0x4309a6,_0x29e199,_0x4bf8bf,_0x2cba3c)=>{var _0x388cad=_0x3fcdaf;for(var _0x1adc6d=_0x2cba3c>0x1?void 0x0:_0x2cba3c?Me(_0x29e199,_0x4bf8bf):_0x29e199,_0x617904=_0x4309a6[_0x388cad(0x209)]-0x1,_0x26d74a;_0x617904>=0x0;_0x617904--)(_0x26d74a=_0x4309a6[_0x617904])&&(_0x1adc6d=_0x26d74a(_0x1adc6d)||_0x1adc6d);return _0x1adc6d;},$=(_0x26d02e,_0x1c2de6)=>(_0x345e23,_0x53562f)=>_0x1c2de6(_0x345e23,_0x53562f,_0x26d02e);let b=class extends _0x44f2cd{constructor(_0x5c34fd,_0x363429){var _0x3fed96=_0x3fcdaf;super(),this[_0x3fed96(0x231)]=_0x5c34fd,this['_uiPartsService']=_0x363429,this[_0x3fed96(0x1a6)]();}['_mountLiveShare'](){var _0x45e6e7=_0x3fcdaf;this[_0x45e6e7(0x21f)](this[_0x45e6e7(0x1ab)]['registerComponent'](_0x896a64[_0x45e6e7(0x1e3)],()=>_0x50a59d(Te,this[_0x45e6e7(0x231)])));}};b=ke([$(0x0,_0x9a82ee(_0xc9b6d3)),$(0x1,_0x4bf856)],b);var Ge=Object[_0x3fcdaf(0x1c6)],We=Object[_0x3fcdaf(0x1e7)],Ye=(_0x381340,_0x4a5134,_0x156510)=>_0x4a5134 in _0x381340?Ge(_0x381340,_0x4a5134,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x156510}):_0x381340[_0x4a5134]=_0x156510,Be=(_0xeed9e1,_0x5a38e7,_0x43061b,_0x230b68)=>{var _0x174969=_0x3fcdaf;for(var _0x3f8fdd=_0x230b68>0x1?void 0x0:_0x230b68?We(_0x5a38e7,_0x43061b):_0x5a38e7,_0x53e739=_0xeed9e1[_0x174969(0x209)]-0x1,_0x45bdd3;_0x53e739>=0x0;_0x53e739--)(_0x45bdd3=_0xeed9e1[_0x53e739])&&(_0x3f8fdd=_0x45bdd3(_0x3f8fdd)||_0x3f8fdd);return _0x3f8fdd;},F=(_0x8f27ac,_0x1eb7ca)=>(_0x5cb735,_0x542c8b)=>_0x1eb7ca(_0x5cb735,_0x542c8b,_0x8f27ac),J=(_0x5080c3,_0x189a8d,_0x3f3ab0)=>Ye(_0x5080c3,typeof _0x189a8d!=_0x3fcdaf(0x1a5)?_0x189a8d+'':_0x189a8d,_0x3f3ab0);const Ze=_0x3fcdaf(0x1d1);let O=class extends _0x411b9e{constructor(_0x114a4a=T,_0x151afe,_0x3c9d7e){var _0x335c3c=_0x3fcdaf;super(),this[_0x335c3c(0x1dd)]=_0x114a4a,this[_0x335c3c(0x231)]=_0x151afe,this[_0x335c3c(0x240)]=_0x3c9d7e;const {..._0x8a2894}=_0x596cea({},T,this[_0x335c3c(0x1dd)]);this['_configService'][_0x335c3c(0x215)](Oe,_0x8a2894);}['onStarting'](){var _0x3250fd=_0x3fcdaf;_0x5b4edf(this[_0x3250fd(0x231)],_0x44214c([[L],[I],[m],[b]],this[_0x3250fd(0x1dd)][_0x3250fd(0x213)])),_0x5e1ba2(this[_0x3250fd(0x231)],[[m]]);}[_0x3fcdaf(0x1f4)](){_0x5e1ba2(this['_injector'],[[b]]);}};J(O,_0x3fcdaf(0x220),_0x507f24[_0x3fcdaf(0x1af)]),J(O,_0x3fcdaf(0x1f9),Ze),O=Be([_0x3730da(_0x1df655),F(0x1,_0x9a82ee(_0xc9b6d3)),F(0x2,_0x3de5df)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x317cc4=_0x121d;(function(_0x743470,_0x2002b9){var _0x3a5e86=_0x121d,_0xeb287b=_0x743470();while(!![]){try{var _0x145502=parseInt(_0x3a5e86(0x23f))/0x1+-parseInt(_0x3a5e86(0x250))/0x2*(parseInt(_0x3a5e86(0x236))/0x3)+-parseInt(_0x3a5e86(0x22d))/0x4+parseInt(_0x3a5e86(0x258))/0x5*(-parseInt(_0x3a5e86(0x213))/0x6)+parseInt(_0x3a5e86(0x204))/0x7+-parseInt(_0x3a5e86(0x271))/0x8*(parseInt(_0x3a5e86(0x257))/0x9)+-parseInt(_0x3a5e86(0x293))/0xa*(-parseInt(_0x3a5e86(0x21b))/0xb);if(_0x145502===_0x2002b9)break;else _0xeb287b['push'](_0xeb287b['shift']());}catch(_0x32d39f){_0xeb287b['push'](_0xeb287b['shift']());}}}(_0x4352,0x68b39));var q=Object[_0x317cc4(0x28d)],z=(_0x200f56,_0x34ae8d,_0xab6661)=>_0x34ae8d in _0x200f56?q(_0x200f56,_0x34ae8d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xab6661}):_0x200f56[_0x34ae8d]=_0xab6661,d=(_0x760b2e,_0x2bc7ed,_0x5461bd)=>z(_0x760b2e,typeof _0x2bc7ed!=_0x317cc4(0x230)?_0x2bc7ed+'':_0x2bc7ed,_0x5461bd);import{CollaborationSessionService as _0xf227ba,SessionStatus as _0x488b82,UniverCollaborationClientPlugin as _0x7a3857}from'@univerjs-pro/collaboration-client';import{Disposable as _0x28b745,toDisposable as _0x1750b3,Inject as _0x3973f8,IUniverInstanceService as _0x4d6e57,Injector as _0x44f59d,IConfigService as _0x58ab73,ICommandService as _0x358665,RxDisposable as _0x371e9b,UniverInstanceType as _0x5ada5c,DisposableCollection as _0x5d76a4,CommandType as _0x1cd9a0,DependentOn as _0x17a14e,Plugin as _0x5cb41f,merge as _0x43e9f6,registerDependencies as _0x10add6,mergeOverrideWithDependencies as _0x2908f4,touchDependencies as _0x21ed85}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x34abf8,InsertSheetMutation as _0x15acd4}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x127e50,SetScrollOperation as _0x5f295}from'@univerjs/sheets-ui';import{useDependency as _0x13cf3c,useObservable as _0x3d804b,IUIPartsService as _0x4a839a,BuiltInUIPart as _0x189589,connectInjector as _0x222fb3}from'@univerjs/ui';import{jsx as _0x5e0980,jsxs as _0x86c48d,Fragment as _0x4fb342}from'react/jsx-runtime';import{Dropdown as _0xd3e1d7,clsx as _0x204084,Button as _0x1e8eb3}from'@univerjs/design';import{forwardRef as _0x10f6cc,useRef as _0xa2b4b4,createElement as _0x1cfd2c,useState as _0x1fab71,useEffect as _0x28befb}from'react';import{CollaborationEvent as _0x2f29ed,parseProtocolChangeset as _0x13f9cc}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x290e70,Subject as _0x2d0f0f}from'rxjs';import{takeUntil as _0x2284f5,throttleTime as _0x16037d}from'rxjs/operators';function _0x4352(){var _0xc6a2ca=['univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','attrs','You\x27re\x20following\x20the\x20presenter','tag','type','UNIVER_UNKNOWN','_startPresenting','unsubscribe','children','getMemberID','prototype','_collabSessionService','426qvjTkw','toString','LIVESHARE_REQUEST_HOST','find','_mountLiveShare','_injector','_handleOperation','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','517YBfGvf','_handleOnline','length','_stopPresenting','status$','requireSession','LIVESHARE_OPERATION','univer-w-full\x20univer-mb-3\x20univer-text-sm','stopFollowing','stopPresenting','IDLE','UNIVER_SHEET','_startLiveShareCoordinator','univer-size-4','colorChannel1','defIds','assign','mutations','259304SfKzGH','NEW_CHANGESETS','dispose$','symbol','idle','_liveShareService','_reporters','icon','xlink:href','1689OzIJYf','propertyIsEnumerable','presenter','_status$','_univerInstanceService','call','subscribe','use','string','494887EFhmMW','default','_entities','getConfig','map','_commandService','_collabSession','SAME_OPERATION_SHARE_INTERVAL','_config','data','get','add','delete','HEADER_MENU','complete','executeCommand','_uiPartsService','398BKSrHe','You\x27re\x20presenting\x20the\x20document','live-share-single','registerSharedOperation','set','div','_handleOffline','207DIsSUK','6005zwUpDz','getValue','You\x27are\x20offline.','next','_presenter','_beIdle','_sharedOperations','_commandDisposable','init','shouldShareOperation','dispose','then','presenting','evenodd','trim','_handleTerminate','Stop\x20presenting','onRendered','pluginName','getOwnPropertySymbols','includes','_handleNewChangeSets','getUnitId','FOLLOWING','has','239576zOJEOM','registerInitialStateReporter','UNIVER_LIVE_SHARE_PLUGIN','_unitID','idSuffix','text','sessionStatus$','PRESENTING','getTypeOfUnitAdded$','startFollowing','indexOf','disposeWithMe','_handleNewHost','extend','send','unitId','path','from','apply','registerComponent','parse','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','currentColor','replace','hasOwnProperty','displayName','_init','_configService','defineProperty','stringify','event$','concat','LiveShareSingle','defs','21130SGrRzU','override','1em','params','following','_stopFollowing','UniverIcon','className','values','getOwnPropertyDescriptor','offline','OFFLINE','getCurrentTypeOfUnit$','forEach','_fetchOperations','clear','createInstance','svg','entries','NOT_FOLLOWING','current','_startFollowing','end','mask','LIVESHARE_TERMINATE','OPERATION','LIVESHARE_NEW_HOST','button','not-following','tryStartPresenting','memberID','live-share.config','getInitialStates','pipe','random','url(#$1','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','getTypeOfUnitDisposed$','5499018uflIGE','Present\x20this\x20document','_status'];_0x4352=function(){return _0xc6a2ca;};return _0x4352();}const Oe=_0x317cc4(0x1fd),T={};class L extends _0x28b745{constructor(){var _0x1ee847=_0x317cc4;super(...arguments),d(this,_0x1ee847(0x25e),new Set()),d(this,_0x1ee847(0x233),new Set());}[_0x317cc4(0x253)](_0x34554e){var _0x453eb3=_0x317cc4;return this[_0x453eb3(0x25e)][_0x453eb3(0x24a)](_0x34554e),_0x1750b3(()=>this['_sharedOperations'][_0x453eb3(0x24b)](_0x34554e));}[_0x317cc4(0x272)](_0x205694){var _0x12118b=_0x317cc4;return this['_reporters']['add'](_0x205694),_0x1750b3(()=>this[_0x12118b(0x233)][_0x12118b(0x24b)](_0x205694));}[_0x317cc4(0x261)](_0x4348be){var _0x170dc5=_0x317cc4;return this[_0x170dc5(0x25e)][_0x170dc5(0x270)](_0x4348be);}[_0x317cc4(0x1fe)](_0x54491a){var _0x8efbc8=_0x317cc4;return Array[_0x8efbc8(0x282)](this['_reporters'])[_0x8efbc8(0x243)](_0x3e15f8=>_0x3e15f8(_0x54491a));}}var Ee=Object[_0x317cc4(0x29c)],Ce=(_0x68cb5c,_0x2e1b8e,_0x1909c4,_0x440302)=>{var _0x54f249=_0x317cc4;for(var _0x3dfd77=_0x440302>0x1?void 0x0:_0x440302?Ee(_0x2e1b8e,_0x1909c4):_0x2e1b8e,_0x411a7a=_0x68cb5c[_0x54f249(0x21d)]-0x1,_0x493dff;_0x411a7a>=0x0;_0x411a7a--)(_0x493dff=_0x68cb5c[_0x411a7a])&&(_0x3dfd77=_0x493dff(_0x3dfd77)||_0x3dfd77);return _0x3dfd77;},Ne=(_0x439b52,_0x5dd71f)=>(_0x45d733,_0x51427e)=>_0x5dd71f(_0x45d733,_0x51427e,_0x439b52);let m=class extends _0x28b745{constructor(_0x17ab6f){var _0x3e693a=_0x317cc4;super(),this[_0x3e693a(0x232)]=_0x17ab6f,this[_0x3e693a(0x28b)]();}['_init'](){var _0x4fe881=_0x317cc4;[_0x127e50['id'],_0x5f295['id'],_0x34abf8['id']][_0x4fe881(0x2a0)](_0x30dfff=>{var _0x4a8588=_0x4fe881;this[_0x4a8588(0x27c)](this[_0x4a8588(0x232)][_0x4a8588(0x253)](_0x30dfff));});}};m=Ce([Ne(0x0,_0x3973f8(L))],m);var c=function(){var _0x1890e3=_0x317cc4;return c=Object[_0x1890e3(0x22b)]||function(_0x1795d7){var _0x515cdb=_0x1890e3;for(var _0x461435,_0x927aaf=0x1,_0x1fc6d0=arguments[_0x515cdb(0x21d)];_0x927aaf<_0x1fc6d0;_0x927aaf++){_0x461435=arguments[_0x927aaf];for(var _0x2df735 in _0x461435)Object['prototype'][_0x515cdb(0x289)]['call'](_0x461435,_0x2df735)&&(_0x1795d7[_0x2df735]=_0x461435[_0x2df735]);}return _0x1795d7;},c[_0x1890e3(0x283)](this,arguments);},we=function(_0x59ab0d,_0x28711b){var _0x2597f7=_0x317cc4,_0x5b9470={};for(var _0xfe8e5f in _0x59ab0d)Object['prototype'][_0x2597f7(0x289)][_0x2597f7(0x23b)](_0x59ab0d,_0xfe8e5f)&&_0x28711b['indexOf'](_0xfe8e5f)<0x0&&(_0x5b9470[_0xfe8e5f]=_0x59ab0d[_0xfe8e5f]);if(_0x59ab0d!=null&&typeof Object[_0x2597f7(0x26b)]=='function'){for(var _0x47165a=0x0,_0xfe8e5f=Object['getOwnPropertySymbols'](_0x59ab0d);_0x47165a<_0xfe8e5f[_0x2597f7(0x21d)];_0x47165a++)_0x28711b[_0x2597f7(0x27b)](_0xfe8e5f[_0x47165a])<0x0&&Object[_0x2597f7(0x211)][_0x2597f7(0x237)][_0x2597f7(0x23b)](_0x59ab0d,_0xfe8e5f[_0x47165a])&&(_0x5b9470[_0xfe8e5f[_0x47165a]]=_0x59ab0d[_0xfe8e5f[_0x47165a]]);}return _0x5b9470;},W=_0x10f6cc(function(_0x41fb54,_0x291d63){var _0x22b872=_0x317cc4,_0xab3917=_0x41fb54[_0x22b872(0x234)],_0x342f82=_0x41fb54['id'],_0x2c3dca=_0x41fb54[_0x22b872(0x29a)],_0x220c64=_0x41fb54[_0x22b872(0x27e)],_0x3df331=we(_0x41fb54,[_0x22b872(0x234),'id','className',_0x22b872(0x27e)]),_0x5bf2b4='univerjs-icon\x20univerjs-icon-'[_0x22b872(0x290)](_0x342f82,'\x20')[_0x22b872(0x290)](_0x2c3dca||'')[_0x22b872(0x266)](),_0x2d4b15=_0xa2b4b4('_'[_0x22b872(0x290)](Le()));return Y(_0xab3917,''[_0x22b872(0x290)](_0x342f82),{'defIds':_0xab3917['defIds'],'idSuffix':_0x2d4b15[_0x22b872(0x2a7)]},c({'ref':_0x291d63,'className':_0x5bf2b4},_0x3df331),_0x220c64);});function Y(_0x457f6e,_0x57644a,_0x74a3cf,_0xa14b6,_0x595f46){var _0x55d5f5=_0x317cc4;return _0x1cfd2c(_0x457f6e[_0x55d5f5(0x20a)],c(c({'key':_0x57644a},De(_0x457f6e,_0x74a3cf,_0x595f46)),_0xa14b6),(xe(_0x457f6e,_0x74a3cf)[_0x55d5f5(0x20f)]||[])[_0x55d5f5(0x243)](function(_0x4f64fc,_0x4c4b56){var _0xf288d7=_0x55d5f5;return Y(_0x4f64fc,''[_0xf288d7(0x290)](_0x57644a,'-')['concat'](_0x457f6e[_0xf288d7(0x20a)],'-')[_0xf288d7(0x290)](_0x4c4b56),_0x74a3cf,void 0x0,_0x595f46);}));}function De(_0x13c203,_0x345e01,_0x3e0965){var _0xcf1fd9=_0x317cc4,_0x244685=c({},_0x13c203[_0xcf1fd9(0x208)]);_0x3e0965!=null&&_0x3e0965[_0xcf1fd9(0x229)]&&_0x244685['fill']===_0xcf1fd9(0x229)&&(_0x244685['fill']=_0x3e0965['colorChannel1']),_0x13c203[_0xcf1fd9(0x20a)]===_0xcf1fd9(0x1f5)&&_0x244685['id']&&(_0x244685['id']=_0x244685['id']+_0x345e01[_0xcf1fd9(0x275)]),Object[_0xcf1fd9(0x2a5)](_0x244685)[_0xcf1fd9(0x2a0)](function(_0x37f37b){var _0x5905d4=_0xcf1fd9,_0x92d969=_0x37f37b[0x0],_0x14c884=_0x37f37b[0x1];_0x92d969===_0x5905d4(0x1f5)&&typeof _0x14c884==_0x5905d4(0x23e)&&(_0x244685[_0x92d969]=_0x14c884[_0x5905d4(0x288)](/url\(#(.*)\)/,_0x5905d4(0x201)['concat'](_0x345e01['idSuffix'],')')));});var _0x599969=_0x345e01[_0xcf1fd9(0x22a)];return!_0x599969||_0x599969[_0xcf1fd9(0x21d)]===0x0||(_0x13c203[_0xcf1fd9(0x20a)]===_0xcf1fd9(0x23d)&&_0x244685[_0xcf1fd9(0x235)]&&(_0x244685['xlink:href']=_0x244685['xlink:href']+_0x345e01[_0xcf1fd9(0x275)]),Object[_0xcf1fd9(0x2a5)](_0x244685)[_0xcf1fd9(0x2a0)](function(_0x97fc36){var _0x4ece42=_0xcf1fd9,_0x324bd6=_0x97fc36[0x0],_0x25992a=_0x97fc36[0x1];typeof _0x25992a==_0x4ece42(0x23e)&&(_0x244685[_0x324bd6]=_0x25992a[_0x4ece42(0x288)](/url\(#(.*)\)/,_0x4ece42(0x201)['concat'](_0x345e01['idSuffix'],')')));})),_0x244685;}function xe(_0x254ca1,_0x2916d5){var _0xe1863a=_0x317cc4,_0x30178c,_0x31ce65=_0x2916d5['defIds'];return!_0x31ce65||_0x31ce65[_0xe1863a(0x21d)]===0x0?_0x254ca1:_0x254ca1[_0xe1863a(0x20a)]===_0xe1863a(0x292)&&(!((_0x30178c=_0x254ca1['children'])===null||_0x30178c===void 0x0)&&_0x30178c[_0xe1863a(0x21d)])?c(c({},_0x254ca1),{'children':_0x254ca1[_0xe1863a(0x20f)][_0xe1863a(0x243)](function(_0x5ecb20){var _0x2fe6db=_0xe1863a;return typeof _0x5ecb20['attrs']['id']=='string'&&_0x31ce65&&_0x31ce65[_0x2fe6db(0x27b)](_0x5ecb20['attrs']['id'])>-0x1?c(c({},_0x5ecb20),{'attrs':c(c({},_0x5ecb20[_0x2fe6db(0x208)]),{'id':_0x5ecb20[_0x2fe6db(0x208)]['id']+_0x2916d5[_0x2fe6db(0x275)]})}):_0x5ecb20;})}):_0x254ca1;}function Le(){var _0x12aa15=_0x317cc4;return Math[_0x12aa15(0x200)]()[_0x12aa15(0x214)](0x24)['substring'](0x2,0x8);}W[_0x317cc4(0x28a)]=_0x317cc4(0x299);var ye={'tag':_0x317cc4(0x2a4),'attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x317cc4(0x295),'height':_0x317cc4(0x295)},'children':[{'tag':'path','attrs':{'fill':_0x317cc4(0x287),'d':_0x317cc4(0x21a)}},{'tag':_0x317cc4(0x281),'attrs':{'fill':_0x317cc4(0x287),'d':_0x317cc4(0x202),'fillRule':_0x317cc4(0x265),'clipRule':_0x317cc4(0x265)}}]},B=_0x10f6cc(function(_0x38c520,_0x5d0e65){var _0x50000b=_0x317cc4;return _0x1cfd2c(W,Object[_0x50000b(0x22b)]({},_0x38c520,{'id':_0x50000b(0x252),'ref':_0x5d0e65,'icon':ye}));});B['displayName']=_0x317cc4(0x291);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x486090,_0x1b1176,_0x407818,_0x36d660)=>{for(var _0x3bf0b0=_0x36d660>0x1?void 0x0:_0x36d660?Re(_0x1b1176,_0x407818):_0x1b1176,_0x14b27b=_0x486090['length']-0x1,_0x50fe74;_0x14b27b>=0x0;_0x14b27b--)(_0x50fe74=_0x486090[_0x14b27b])&&(_0x3bf0b0=_0x50fe74(_0x3bf0b0)||_0x3bf0b0);return _0x3bf0b0;},f=(_0x4ea832,_0x1ee1e6)=>(_0x3125a1,_0x4a7d3a)=>_0x1ee1e6(_0x3125a1,_0x4a7d3a,_0x4ea832);let I=class extends _0x371e9b{constructor(_0x4bc49d,_0x310e0e,_0x24ceb6){var _0x2386b5=_0x317cc4;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x4bc49d,this[_0x2386b5(0x218)]=_0x310e0e,this[_0x2386b5(0x212)]=_0x24ceb6,this['_init']());}async['getLiveShareCoordinator'](_0x511194){var _0x13fa47=_0x317cc4;return this[_0x13fa47(0x241)]['has'](_0x511194)||await this[_0x13fa47(0x227)](_0x511194),this[_0x13fa47(0x241)]['get'](_0x511194);}[_0x317cc4(0x28b)](){var _0x4ca48c=_0x317cc4;this[_0x4ca48c(0x23a)][_0x4ca48c(0x279)](_0x5ada5c[_0x4ca48c(0x226)])['pipe'](_0x2284f5(this[_0x4ca48c(0x22f)]))[_0x4ca48c(0x23c)](async _0x15f34a=>{var _0xb35db2=_0x4ca48c;const _0x3d74ca=_0x15f34a['getUnitId']();this['_entities'][_0xb35db2(0x270)](_0x3d74ca)||this[_0xb35db2(0x227)](_0x3d74ca);}),this['_univerInstanceService'][_0x4ca48c(0x203)](_0x5ada5c[_0x4ca48c(0x226)])['pipe'](_0x2284f5(this[_0x4ca48c(0x22f)]))['subscribe'](_0x290668=>{var _0x2134bb=_0x4ca48c;const _0x16f4e4=_0x290668[_0x2134bb(0x26e)](),_0x5982a6=this['_entities'][_0x2134bb(0x249)](_0x16f4e4);_0x5982a6==null||_0x5982a6['dispose']();});}async[_0x317cc4(0x227)](_0x3baa74){var _0x3a9deb=_0x317cc4;const _0x2fe467=await this[_0x3a9deb(0x212)][_0x3a9deb(0x220)](_0x3baa74),_0x202e0c=this['_injector'][_0x3a9deb(0x2a3)](w,_0x3baa74,_0x2fe467);return _0x202e0c[_0x3a9deb(0x260)](),this[_0x3a9deb(0x241)][_0x3a9deb(0x254)](_0x3baa74,_0x202e0c),_0x202e0c;}};I=Z([f(0x0,_0x4d6e57),f(0x1,_0x3973f8(_0x44f59d)),f(0x2,_0x3973f8(_0xf227ba))],I);var h=(_0x4b2fe4=>(_0x4b2fe4['OFFLINE']='offline',_0x4b2fe4['IDLE']=_0x317cc4(0x231),_0x4b2fe4[_0x317cc4(0x26f)]=_0x317cc4(0x297),_0x4b2fe4[_0x317cc4(0x2a6)]=_0x317cc4(0x1fa),_0x4b2fe4[_0x317cc4(0x278)]=_0x317cc4(0x264),_0x4b2fe4))(h||{});const Pe=_0x317cc4(0x246),Ae=0xc8;let w=class extends _0x371e9b{constructor(_0x1e49c2,_0x1a22f2,_0x2c6a87,_0x4a48d1,_0x55bd8f){var _0x1674c0=_0x317cc4;super(),d(this,'_status$',new _0x290e70(_0x1674c0(0x231))),d(this,'status$',this[_0x1674c0(0x239)]['asObservable']()),d(this,_0x1674c0(0x28b),!0x1),d(this,_0x1674c0(0x25f),null),d(this,_0x1674c0(0x25c),null),(this['_unitID']=_0x1e49c2,this['_collabSession']=_0x1a22f2,this['_configService']=_0x2c6a87,this[_0x1674c0(0x232)]=_0x4a48d1,this[_0x1674c0(0x244)]=_0x55bd8f);}get[_0x317cc4(0x206)](){var _0x1b5e0c=_0x317cc4;return this[_0x1b5e0c(0x239)][_0x1b5e0c(0x259)]();}['dispose'](){var _0x1105c9=_0x317cc4,_0x32d36f;(_0x32d36f=this[_0x1105c9(0x25f)])==null||_0x32d36f['dispose'](),this[_0x1105c9(0x239)][_0x1105c9(0x25b)](_0x1105c9(0x231)),this['_status$'][_0x1105c9(0x24d)]();}['init'](){var _0x38f51a=_0x317cc4;this[_0x38f51a(0x28b)]||(this['_init']=!0x0,this[_0x38f51a(0x245)][_0x38f51a(0x277)][_0x38f51a(0x1ff)](_0x2284f5(this['dispose$']))[_0x38f51a(0x23c)](_0x199132=>{var _0x529f0d=_0x38f51a;switch(_0x199132){case _0x488b82[_0x529f0d(0x29e)]:this[_0x529f0d(0x256)]();break;case _0x488b82['ONLINE']:this[_0x529f0d(0x21c)]();break;}}),this['_collabSession'][_0x38f51a(0x28f)][_0x38f51a(0x1ff)](_0x2284f5(this['dispose$']))[_0x38f51a(0x23c)](_0x2bd11c=>{var _0x1d6a66=_0x38f51a;const {eventID:_0x5aac88}=_0x2bd11c;switch(_0x5aac88){case _0x2f29ed[_0x1d6a66(0x1f8)]:this['_handleNewHost'](_0x2bd11c);break;case _0x2f29ed[_0x1d6a66(0x221)]:this['_handleOperation'](_0x2bd11c);break;case _0x2f29ed[_0x1d6a66(0x1f6)]:this[_0x1d6a66(0x267)]();break;case _0x2f29ed[_0x1d6a66(0x22e)]:this[_0x1d6a66(0x26d)](_0x2bd11c);break;}}));}[_0x317cc4(0x1fb)](){var _0x79452b=_0x317cc4;this[_0x79452b(0x245)][_0x79452b(0x27f)]({'eventID':_0x2f29ed[_0x79452b(0x215)],'data':{'unitID':this[_0x79452b(0x274)],'userID':this[_0x79452b(0x245)][_0x79452b(0x210)]()}},this[_0x79452b(0x274)]);}['stopPresenting'](){var _0xb697d8=_0x317cc4;this[_0xb697d8(0x206)]===_0xb697d8(0x264)&&(this[_0xb697d8(0x239)][_0xb697d8(0x25b)](_0xb697d8(0x231)),this[_0xb697d8(0x245)][_0xb697d8(0x27f)]({'eventID':_0x2f29ed[_0xb697d8(0x1f6)],'data':{'unitID':this[_0xb697d8(0x274)]}},this['_unitID']));}[_0x317cc4(0x27a)](){var _0x2bd8af=_0x317cc4;this[_0x2bd8af(0x206)]===_0x2bd8af(0x1fa)&&(this[_0x2bd8af(0x239)][_0x2bd8af(0x25b)]('following'),this[_0x2bd8af(0x1f3)]());}[_0x317cc4(0x223)](){var _0x194c5c=_0x317cc4;this[_0x194c5c(0x206)]==='following'&&this[_0x194c5c(0x298)]();}[_0x317cc4(0x27d)](_0x4dbc46){var _0x3271a6=_0x317cc4;const {presenter:_0x1f614c}=_0x4dbc46[_0x3271a6(0x248)],_0x45375d=this['_collabSession']['getMemberID']();this[_0x3271a6(0x25c)]=_0x1f614c,_0x1f614c===_0x45375d?(this[_0x3271a6(0x298)](),this[_0x3271a6(0x20d)]()):this[_0x3271a6(0x206)]!=='not-following'&&(this[_0x3271a6(0x21e)](),this[_0x3271a6(0x1f3)]());}[_0x317cc4(0x2a1)](){var _0x453e3f=_0x317cc4;const _0x3e5e75={'eventID':_0x2f29ed['LIVESHARE_FETCH_OPERATIONS']};this[_0x453e3f(0x245)][_0x453e3f(0x27f)](_0x3e5e75,this[_0x453e3f(0x274)]);}['_handleTerminate'](){var _0x1c9174=_0x317cc4;this[_0x1c9174(0x25c)]=null,this[_0x1c9174(0x206)]!=='presenting'&&this[_0x1c9174(0x25d)]();}[_0x317cc4(0x26d)](_0x1d3829){var _0x3e838d=_0x317cc4;if(this[_0x3e838d(0x206)]===_0x3e838d(0x297)&&this['_presenter']===_0x1d3829[_0x3e838d(0x248)][_0x3e838d(0x1fc)]){const _0x54a95f=_0x13f9cc(_0x1d3829[_0x3e838d(0x248)])[_0x3e838d(0x22c)]['reverse']()[_0x3e838d(0x216)](_0x3fb685=>_0x3fb685['id']===_0x15acd4['id']);if(_0x54a95f){const _0x3ffaf3=_0x54a95f['params'][_0x3e838d(0x280)],_0x3861a1=_0x54a95f[_0x3e838d(0x296)]['sheet']['id'];setTimeout(()=>{var _0x2f50c0=_0x3e838d;this[_0x2f50c0(0x244)][_0x2f50c0(0x24e)](_0x34abf8['id'],{'unitId':_0x3ffaf3,'subUnitId':_0x3861a1},{'fromCollab':!0x0});});}}}[_0x317cc4(0x20d)](){var _0x440869=_0x317cc4;this[_0x440869(0x239)][_0x440869(0x25b)]('presenting');const _0x1e16ab=new Map(),_0x1d7efe=this['_commandDisposable']=new _0x5d76a4();_0x1d7efe[_0x440869(0x24a)](_0x1750b3(()=>{var _0x44cc42=_0x440869;_0x1e16ab[_0x44cc42(0x2a0)](_0x476daf=>_0x476daf[_0x44cc42(0x24d)]()),_0x1e16ab[_0x44cc42(0x2a2)]();})),_0x1d7efe['add'](this[_0x440869(0x244)]['onCommandExecuted'](_0x3a6da4=>{var _0x1d24ef=_0x440869,_0x209416;if(_0x3a6da4[_0x1d24ef(0x20b)]!==_0x1cd9a0[_0x1d24ef(0x1f7)]||!this[_0x1d24ef(0x232)]['shouldShareOperation'](_0x3a6da4['id']))return;const {id:_0x24424c}=_0x3a6da4;let _0x7dac48;_0x1e16ab[_0x1d24ef(0x270)](_0x24424c)?_0x7dac48=_0x1e16ab[_0x1d24ef(0x249)](_0x24424c):(_0x7dac48=new _0x2d0f0f(),_0x1e16ab['set'](_0x24424c,_0x7dac48),_0x7dac48[_0x1d24ef(0x1ff)](_0x16037d((_0x209416=this[_0x1d24ef(0x28c)][_0x1d24ef(0x242)](Pe))!=null?_0x209416:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x366b6b=>{var _0x51b633=_0x1d24ef;this[_0x51b633(0x245)][_0x51b633(0x27f)]({'eventID':_0x2f29ed[_0x51b633(0x221)],'data':{'unitID':this[_0x51b633(0x274)],'operations':{[_0x366b6b['id']]:{'id':_0x366b6b['id'],'params':JSON[_0x51b633(0x28e)](_0x366b6b[_0x51b633(0x296)])}}}},this['_unitID']);})),_0x7dac48[_0x1d24ef(0x25b)](_0x3a6da4);})),this[_0x440869(0x232)][_0x440869(0x1fe)](this[_0x440869(0x274)])[_0x440869(0x2a0)](_0x5d180a=>this[_0x440869(0x245)][_0x440869(0x27f)]({'eventID':_0x2f29ed[_0x440869(0x221)],'data':{'unitID':this['_unitID'],'operations':{[_0x5d180a['id']]:{'id':_0x5d180a['id'],'params':JSON[_0x440869(0x28e)](_0x5d180a[_0x440869(0x296)])}}}},this[_0x440869(0x274)]));}['_stopPresenting'](){var _0x5e133c=_0x317cc4,_0x578793;this[_0x5e133c(0x239)][_0x5e133c(0x25b)](_0x5e133c(0x231)),(_0x578793=this[_0x5e133c(0x25f)])==null||_0x578793[_0x5e133c(0x262)](),this[_0x5e133c(0x25f)]=null;}[_0x317cc4(0x1f3)](){var _0x3f40fa=_0x317cc4,_0x2c9f63;(_0x2c9f63=this[_0x3f40fa(0x25f)])==null||_0x2c9f63['dispose'](),this['_status$'][_0x3f40fa(0x25b)](_0x3f40fa(0x297));}[_0x317cc4(0x25d)](){var _0x243554=_0x317cc4,_0x4f25a7;this[_0x243554(0x239)]['next'](_0x243554(0x231)),(_0x4f25a7=this[_0x243554(0x25f)])==null||_0x4f25a7[_0x243554(0x262)](),this[_0x243554(0x25f)]=null;}[_0x317cc4(0x298)](){var _0x200844=_0x317cc4,_0x1794db;this[_0x200844(0x239)]['next'](_0x200844(0x1fa)),(_0x1794db=this['_commandDisposable'])==null||_0x1794db['dispose']();}[_0x317cc4(0x219)](_0x462795){var _0x356dea=_0x317cc4;if([_0x356dea(0x264),_0x356dea(0x1fa),_0x356dea(0x29d)][_0x356dea(0x26c)](this['_status'])||!_0x462795[_0x356dea(0x248)][_0x356dea(0x238)]||_0x462795[_0x356dea(0x248)]['presenter']===this['_collabSession'][_0x356dea(0x210)]())return;this[_0x356dea(0x206)]==='idle'&&this[_0x356dea(0x1f3)]();const _0x3712c9=_0x462795['data']['operations'];Object[_0x356dea(0x29b)](_0x3712c9)[_0x356dea(0x2a0)](_0x2fab1f=>{var _0x355a5f=_0x356dea;this[_0x355a5f(0x244)]['executeCommand'](_0x2fab1f['id'],_0x2fab1f[_0x355a5f(0x296)]?JSON[_0x355a5f(0x285)](_0x2fab1f[_0x355a5f(0x296)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x556308=_0x317cc4,_0x174270;this['_status$']['next'](_0x556308(0x29d)),(_0x174270=this['_commandDisposable'])==null||_0x174270[_0x556308(0x262)]();}[_0x317cc4(0x21c)](){var _0x34cd18=_0x317cc4;this[_0x34cd18(0x239)]['next'](_0x34cd18(0x231)),this[_0x34cd18(0x2a1)]();}};w=Z([f(0x2,_0x58ab73),f(0x3,_0x3973f8(L)),f(0x4,_0x358665)],w);function Te(){var _0x229741=_0x317cc4;const _0x2da1cc=_0x13cf3c(I),_0x120597=_0x13cf3c(_0x4d6e57),_0x116e02=_0x3d804b(()=>_0x120597[_0x229741(0x29f)](_0x5ada5c[_0x229741(0x226)]),void 0x0,!0x1,[]),[_0x5a6a6f,_0x5fa7a8]=_0x1fab71(null),[_0x283ebc,_0x29aa7a]=_0x1fab71(h[_0x229741(0x225)]),_0xd54d2e=_0xa2b4b4(null);return _0x28befb(()=>(_0x116e02&&_0x2da1cc['getLiveShareCoordinator'](_0x116e02[_0x229741(0x26e)]())[_0x229741(0x263)](_0x1bfb58=>{var _0x16a118=_0x229741;_0x5fa7a8(_0x1bfb58),_0xd54d2e[_0x16a118(0x2a7)]=_0x1bfb58[_0x16a118(0x21f)][_0x16a118(0x23c)](_0x133c13=>{_0x29aa7a(_0x133c13);});}),()=>{var _0x522014=_0x229741,_0x3a4593;(_0x3a4593=_0xd54d2e[_0x522014(0x2a7)])==null||_0x3a4593[_0x522014(0x20e)](),_0xd54d2e['current']=null;}),[_0x116e02,_0x2da1cc]),_0x5a6a6f?_0x5e0980(_0xd3e1d7,{'align':_0x229741(0x1f4),'disabled':_0x283ebc===h[_0x229741(0x29e)],'className':_0x229741(0x207),'overlay':_0x5e0980($e,{'status':_0x283ebc,'coordinator':_0x5a6a6f}),'children':_0x5e0980(_0x229741(0x1f9),{'className':_0x204084(_0x229741(0x286),{'univer-cursor-not-allowed':_0x283ebc===h[_0x229741(0x29e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x283ebc!==h[_0x229741(0x29e)]}),'type':_0x229741(0x1f9),'children':_0x5e0980(B,{'className':_0x229741(0x228)})})}):null;}function $e(_0x92ce41){var _0x5bde97=_0x317cc4;const {status:_0x2c27f9,coordinator:_0x32fac7}=_0x92ce41;switch(_0x2c27f9){case h[_0x5bde97(0x225)]:return _0x5e0980(Fe,{'coordinator':_0x32fac7});case h['FOLLOWING']:return _0x5e0980(He,{'coordinator':_0x32fac7});case h['NOT_FOLLOWING']:return _0x5e0980(je,{'coordinator':_0x32fac7});case h[_0x5bde97(0x29e)]:return _0x5e0980(Ve,{});case h[_0x5bde97(0x278)]:return _0x5e0980(Ue,{'coordinator':_0x32fac7});default:return null;}}function Fe(_0x5c6cf6){var _0x42fb34=_0x317cc4;const {coordinator:_0x287c55}=_0x5c6cf6;return _0x86c48d(_0x4fb342,{'children':[_0x5e0980(_0x42fb34(0x255),{'className':_0x42fb34(0x222),'children':_0x42fb34(0x205)}),_0x5e0980(_0x1e8eb3,{'onClick':()=>_0x287c55['tryStartPresenting'](),'children':'Start'})]});}function He(_0xf55d98){var _0xacef20=_0x317cc4;const {coordinator:_0x29d1c3}=_0xf55d98;return _0x86c48d(_0x4fb342,{'children':[_0x5e0980('div',{'className':_0xacef20(0x222),'children':_0xacef20(0x209)}),_0x5e0980(_0x1e8eb3,{'onClick':()=>_0x29d1c3['stopFollowing'](),'children':'Stop\x20following'})]});}function je(_0x305996){var _0x334509=_0x317cc4;const {coordinator:_0x1ab22e}=_0x305996;return _0x86c48d(_0x4fb342,{'children':[_0x5e0980(_0x334509(0x255),{'className':_0x334509(0x222),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x5e0980(_0x1e8eb3,{'variant':_0x334509(0x276),'onClick':()=>_0x1ab22e['startFollowing'](),'children':'Start\x20following'})]});}function Ue(_0x40fa85){var _0x595a72=_0x317cc4;const {coordinator:_0x3bdb62}=_0x40fa85;return _0x86c48d(_0x4fb342,{'children':[_0x5e0980(_0x595a72(0x255),{'className':_0x595a72(0x222),'children':_0x595a72(0x251)}),_0x5e0980(_0x1e8eb3,{'variant':_0x595a72(0x240),'onClick':()=>_0x3bdb62[_0x595a72(0x224)](),'children':_0x595a72(0x268)})]});}function _0x121d(_0x3ea700,_0x21dfc0){var _0x435208=_0x4352();return _0x121d=function(_0x121d69,_0x121d46){_0x121d69=_0x121d69-0x1f3;var _0x23ec5c=_0x435208[_0x121d69];return _0x23ec5c;},_0x121d(_0x3ea700,_0x21dfc0);}function Ve(){var _0x702579=_0x317cc4;return _0x5e0980(_0x4fb342,{'children':_0x702579(0x25a)});}var Me=Object[_0x317cc4(0x29c)],ke=(_0x4cc53e,_0x178e97,_0x4569f7,_0x149eb6)=>{var _0x449a93=_0x317cc4;for(var _0x5357e1=_0x149eb6>0x1?void 0x0:_0x149eb6?Me(_0x178e97,_0x4569f7):_0x178e97,_0x203dbf=_0x4cc53e[_0x449a93(0x21d)]-0x1,_0x18a9e1;_0x203dbf>=0x0;_0x203dbf--)(_0x18a9e1=_0x4cc53e[_0x203dbf])&&(_0x5357e1=_0x18a9e1(_0x5357e1)||_0x5357e1);return _0x5357e1;},$=(_0x203eee,_0x225775)=>(_0x466659,_0x549bea)=>_0x225775(_0x466659,_0x549bea,_0x203eee);let b=class extends _0x28b745{constructor(_0x218bbd,_0x3ca833){var _0x490b13=_0x317cc4;super(),this['_injector']=_0x218bbd,this[_0x490b13(0x24f)]=_0x3ca833,this[_0x490b13(0x217)]();}['_mountLiveShare'](){var _0x1c0c48=_0x317cc4;this[_0x1c0c48(0x27c)](this['_uiPartsService'][_0x1c0c48(0x284)](_0x189589[_0x1c0c48(0x24c)],()=>_0x222fb3(Te,this[_0x1c0c48(0x218)])));}};b=ke([$(0x0,_0x3973f8(_0x44f59d)),$(0x1,_0x4a839a)],b);var Ge=Object[_0x317cc4(0x28d)],We=Object[_0x317cc4(0x29c)],Ye=(_0x6d7a45,_0x5dddb7,_0x297d92)=>_0x5dddb7 in _0x6d7a45?Ge(_0x6d7a45,_0x5dddb7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x297d92}):_0x6d7a45[_0x5dddb7]=_0x297d92,Be=(_0x2a076e,_0x39caf3,_0x3b92db,_0x52a548)=>{for(var _0x58079e=_0x52a548>0x1?void 0x0:_0x52a548?We(_0x39caf3,_0x3b92db):_0x39caf3,_0x3c84be=_0x2a076e['length']-0x1,_0x262ee8;_0x3c84be>=0x0;_0x3c84be--)(_0x262ee8=_0x2a076e[_0x3c84be])&&(_0x58079e=_0x262ee8(_0x58079e)||_0x58079e);return _0x58079e;},F=(_0x9a5a21,_0x45c024)=>(_0x4f93c8,_0x407735)=>_0x45c024(_0x4f93c8,_0x407735,_0x9a5a21),J=(_0x4d41f4,_0x899a54,_0x460cb3)=>Ye(_0x4d41f4,typeof _0x899a54!=_0x317cc4(0x230)?_0x899a54+'':_0x899a54,_0x460cb3);const Ze=_0x317cc4(0x273);let O=class extends _0x5cb41f{constructor(_0x234ab1=T,_0x443547,_0x330d69){var _0x255c06=_0x317cc4;super(),this[_0x255c06(0x247)]=_0x234ab1,this[_0x255c06(0x218)]=_0x443547,this['_configService']=_0x330d69;const {..._0x26b14a}=_0x43e9f6({},T,this[_0x255c06(0x247)]);this[_0x255c06(0x28c)]['setConfig'](Oe,_0x26b14a);}['onStarting'](){var _0x592c44=_0x317cc4;_0x10add6(this['_injector'],_0x2908f4([[L],[I],[m],[b]],this[_0x592c44(0x247)][_0x592c44(0x294)])),_0x21ed85(this[_0x592c44(0x218)],[[m]]);}[_0x317cc4(0x269)](){_0x21ed85(this['_injector'],[[b]]);}};J(O,_0x317cc4(0x20b),_0x5ada5c[_0x317cc4(0x20c)]),J(O,_0x317cc4(0x26a),Ze),O=Be([_0x17a14e(_0x7a3857),F(0x1,_0x3973f8(_0x44f59d)),F(0x2,_0x58ab73)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x24a7(){var _0x49970e=['_stopPresenting','registerComponent','99IkKCLZ','_commandDisposable','reverse','defineProperty','attrs','forEach','registerSharedOperation','children','send','UniverIcon','data','IUIPartsService','NOT_FOLLOWING','UniverProCollaboration','offline','exports','parse','useObservable','_startPresenting','_unitID','current','concat','symbol','registerDependencies','UniverInstanceType','asObservable','_mountLiveShare','string','createElement','stringify','evenodd','You\x27are\x20offline.','_sharedOperations','toDisposable','Start\x20following','UniverCollaborationClientPlugin','UniverUi','find','LiveShareController','presenting','presenter','getInitialStates','throttleTime','status$','assign','params','type','11560nqlDCt','rxjs/operators','React','jsxs','operators','NEW_CHANGESETS','useState','has','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','LiveShareSingle','defIds','div','getMemberID','DependentOn','_collabSessionService','forwardRef','_stopFollowing','text','BuiltInUIPart','default','_injector','_startFollowing','extend','indexOf','_startLiveShareCoordinator','IDLE','_entities','_status','override','subscribe','getTypeOfUnitDisposed$','shouldShareOperation','rxjs','Stop\x20following','HEADER_MENU','colorChannel1','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fill','RxDisposable','UniverLiveSharePlugin','_config','2564933wcvTBE','996006sKCxCb','get','BehaviorSubject','LIVESHARE_FETCH_OPERATIONS','executeCommand','getUnitId','_init','@univerjs/design','univer-w-full\x20univer-mb-3\x20univer-text-sm','_handleNewHost','icon','apply','dispose$','trim','Fragment','idSuffix','OFFLINE','mutations','amd','_handleOnline','Disposable','Module','_fetchOperations','_beIdle','Inject','LIVESHARE_NEW_HOST','hasOwnProperty','LIVESHARE_REQUEST_HOST','xlink:href','20hEicqh','mask','init','LiveShareService','LIVESHARE_TERMINATE','getConfig','_handleOffline','UniverSheetsUi','pipe','currentColor','_handleTerminate','@univerjs/sheets-ui','UNIVER_UNKNOWN','getLiveShareCoordinator','Dropdown','LIVESHARE_OPERATION','DesktopLiveShareController','_uiPartsService','onRendered','@univerjs/sheets','startFollowing','operations','toString','SessionStatus','map','CollaborationEvent','Stop\x20presenting','@univerjs-pro/collaboration-client','not-following','replace','clsx','630120wuNEjd','8811obRncs','stopPresenting','pluginName','_configService','getOwnPropertySymbols','22707AQbVsp','_univerInstanceService','_presenter','8utPewU','unitId','UniverProLiveShare','472552immFEz','SetWorksheetActiveOperation','url(#$1','_handleNewChangeSets','SAME_OPERATION_SHARE_INTERVAL','sheet','@univerjs/ui','SetZoomRatioOperation','complete','defs','InsertSheetMutation','Button','_handleOperation','substring','end','entries','add','IUniverInstanceService','tag','_commandService','dispose','_collabSession','next','_reporters','LiveShareCoordinator','Start','PRESENTING','jsx','@univerjs/core','svg','Injector','object','requireSession','path','className','mergeOverrideWithDependencies','0\x200\x2016\x2016','You\x27re\x20presenting\x20the\x20document','UniverProCollaborationClient','_liveShareService','onStarting','UniverSheets','event$','ICommandService','takeUntil','useRef','DisposableCollection','LiveShareStatus','button','getValue','call','CollaborationSessionService','random','following','connectInjector','1em','Subject','useDependency','registerInitialStateReporter','SetScrollOperation','getTypeOfUnitAdded$','live-share.config','_status$','clear','UNIVER_SHEET','length','58414NCqhHx','getOwnPropertyDescriptor','react/jsx-runtime','prototype','getCurrentTypeOfUnit$','@univerjs-pro/collaboration','displayName','LiveShare','idle','univer-size-4'];_0x24a7=function(){return _0x49970e;};return _0x24a7();}function _0x4f41(_0x296c8f,_0x5380fe){var _0x24a7c9=_0x24a7();return _0x4f41=function(_0x4f41f4,_0x85e947){_0x4f41f4=_0x4f41f4-0x1f2;var _0x30b9ec=_0x24a7c9[_0x4f41f4];return _0x30b9ec;},_0x4f41(_0x296c8f,_0x5380fe);}(function(_0x5da506,_0x27ff28){var _0x59224d=_0x4f41,_0x515daa=_0x5da506();while(!![]){try{var _0xc31a1f=parseInt(_0x59224d(0x2d0))/0x1+-parseInt(_0x59224d(0x282))/0x2+parseInt(_0x59224d(0x288))/0x3*(parseInt(_0x59224d(0x28b))/0x4)+parseInt(_0x59224d(0x263))/0x5*(parseInt(_0x59224d(0x246))/0x6)+parseInt(_0x59224d(0x245))/0x7+parseInt(_0x59224d(0x28e))/0x8*(parseInt(_0x59224d(0x2dc))/0x9)+parseInt(_0x59224d(0x21c))/0xa*(-parseInt(_0x59224d(0x283))/0xb);if(_0xc31a1f===_0x27ff28)break;else _0x515daa['push'](_0x515daa['shift']());}catch(_0x1728eb){_0x515daa['push'](_0x515daa['shift']());}}}(_0x24a7,0x7d2ce),function(_0x2884de,_0x47bf95){var _0x54d2d3=_0x4f41;typeof exports==_0x54d2d3(0x2ad)&&typeof module<'u'?_0x47bf95(exports,require(_0x54d2d3(0x27e)),require(_0x54d2d3(0x2aa)),require(_0x54d2d3(0x276)),require(_0x54d2d3(0x26e)),require(_0x54d2d3(0x294)),require(_0x54d2d3(0x2d2)),require(_0x54d2d3(0x24d)),require('react'),require('@univerjs-pro/collaboration'),require(_0x54d2d3(0x23c)),require('rxjs/operators')):typeof define=='function'&&define[_0x54d2d3(0x258)]?define([_0x54d2d3(0x1fc),_0x54d2d3(0x27e),_0x54d2d3(0x2aa),_0x54d2d3(0x276),_0x54d2d3(0x26e),_0x54d2d3(0x294),_0x54d2d3(0x2d2),_0x54d2d3(0x24d),'react',_0x54d2d3(0x2d5),_0x54d2d3(0x23c),_0x54d2d3(0x21d)],_0x47bf95):(_0x2884de=typeof globalThis<'u'?globalThis:_0x2884de||self,_0x47bf95(_0x2884de[_0x54d2d3(0x28d)]={},_0x2884de[_0x54d2d3(0x2b4)],_0x2884de['UniverCore'],_0x2884de[_0x54d2d3(0x2b7)],_0x2884de[_0x54d2d3(0x26a)],_0x2884de[_0x54d2d3(0x211)],_0x2884de[_0x54d2d3(0x21e)],_0x2884de['UniverDesign'],_0x2884de[_0x54d2d3(0x21e)],_0x2884de[_0x54d2d3(0x1fa)],_0x2884de[_0x54d2d3(0x23c)],_0x2884de[_0x54d2d3(0x23c)][_0x54d2d3(0x220)]));}(this,function(_0xaf9644,_0x10d7f6,_0x26f4c5,_0x5a62f0,_0x4bcce3,_0x26cb04,_0x4feff4,_0x345dec,_0x3496e8,_0x1446b3,_0x718415,_0x4353d7){'use strict';var _0x5126f4=_0x4f41;var _0x5214d9=Object['defineProperty'],_0x147cc1=(_0x47b860,_0x854c8f,_0x3473e1)=>_0x854c8f in _0x47b860?_0x5214d9(_0x47b860,_0x854c8f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3473e1}):_0x47b860[_0x854c8f]=_0x3473e1,_0x5fb210=(_0x4fdc23,_0x45f7a1,_0xb26016)=>_0x147cc1(_0x4fdc23,typeof _0x45f7a1!='symbol'?_0x45f7a1+'':_0x45f7a1,_0xb26016);const _0x475dfe=_0x5126f4(0x2cb),_0x15dc4e={};class _0x2130be extends _0x26f4c5[_0x5126f4(0x25a)]{constructor(){var _0x568901=_0x5126f4;super(...arguments),_0x5fb210(this,_0x568901(0x20d),new Set()),_0x5fb210(this,_0x568901(0x2a5),new Set());}[_0x5126f4(0x1f3)](_0x25c0b7){var _0x11d809=_0x5126f4;return this['_sharedOperations'][_0x11d809(0x29e)](_0x25c0b7),_0x26f4c5[_0x11d809(0x20e)](()=>this[_0x11d809(0x20d)]['delete'](_0x25c0b7));}[_0x5126f4(0x2c8)](_0x131c94){var _0x1babf3=_0x5126f4;return this[_0x1babf3(0x2a5)]['add'](_0x131c94),_0x26f4c5[_0x1babf3(0x20e)](()=>this[_0x1babf3(0x2a5)]['delete'](_0x131c94));}[_0x5126f4(0x23b)](_0x9b9b3b){var _0x379eb5=_0x5126f4;return this[_0x379eb5(0x20d)][_0x379eb5(0x223)](_0x9b9b3b);}[_0x5126f4(0x216)](_0x55c8b7){var _0x1e2ae6=_0x5126f4;return Array['from'](this['_reporters'])[_0x1e2ae6(0x27b)](_0x41830b=>_0x41830b(_0x55c8b7));}}var _0xe5d8e9=Object[_0x5126f4(0x2d1)],_0x1e8b79=(_0x44bc4d,_0x56fc8a,_0x5826d6,_0x2c02b8)=>{var _0x2214d1=_0x5126f4;for(var _0x531249=_0x2c02b8>0x1?void 0x0:_0x2c02b8?_0xe5d8e9(_0x56fc8a,_0x5826d6):_0x56fc8a,_0x1d4e47=_0x44bc4d[_0x2214d1(0x2cf)]-0x1,_0x400d34;_0x1d4e47>=0x0;_0x1d4e47--)(_0x400d34=_0x44bc4d[_0x1d4e47])&&(_0x531249=_0x400d34(_0x531249)||_0x531249);return _0x531249;},_0x223ff5=(_0x12c362,_0xcfe5e5)=>(_0x3bf46e,_0x5a9387)=>_0xcfe5e5(_0x3bf46e,_0x5a9387,_0x12c362);let _0x1c41a8=class extends _0x26f4c5['Disposable']{constructor(_0x26acfa){var _0x29d24c=_0x5126f4;super(),this[_0x29d24c(0x2b5)]=_0x26acfa,this['_init']();}['_init'](){var _0x16c351=_0x5126f4;[_0x4bcce3[_0x16c351(0x295)]['id'],_0x4bcce3[_0x16c351(0x2c9)]['id'],_0x5a62f0['SetWorksheetActiveOperation']['id']][_0x16c351(0x1f2)](_0x36a734=>{var _0x1fc8ca=_0x16c351;this['disposeWithMe'](this[_0x1fc8ca(0x2b5)][_0x1fc8ca(0x1f3)](_0x36a734));});}};_0x1c41a8=_0x1e8b79([_0x223ff5(0x0,_0x26f4c5['Inject'](_0x2130be))],_0x1c41a8);var _0xd9be62=function(){var _0x3fa45=_0x5126f4;return _0xd9be62=Object[_0x3fa45(0x219)]||function(_0xb710c0){var _0x126e94=_0x3fa45;for(var _0x1e4057,_0x533104=0x1,_0x5660bf=arguments['length'];_0x533104<_0x5660bf;_0x533104++){_0x1e4057=arguments[_0x533104];for(var _0x2c49c2 in _0x1e4057)Object['prototype']['hasOwnProperty'][_0x126e94(0x2c0)](_0x1e4057,_0x2c49c2)&&(_0xb710c0[_0x2c49c2]=_0x1e4057[_0x2c49c2]);}return _0xb710c0;},_0xd9be62[_0x3fa45(0x251)](this,arguments);},_0x328d71=function(_0x4553d0,_0x79bf4){var _0x12c8eb=_0x5126f4,_0x1b7ddc={};for(var _0x2572a6 in _0x4553d0)Object[_0x12c8eb(0x2d3)][_0x12c8eb(0x260)][_0x12c8eb(0x2c0)](_0x4553d0,_0x2572a6)&&_0x79bf4[_0x12c8eb(0x233)](_0x2572a6)<0x0&&(_0x1b7ddc[_0x2572a6]=_0x4553d0[_0x2572a6]);if(_0x4553d0!=null&&typeof Object[_0x12c8eb(0x287)]=='function'){for(var _0x4374db=0x0,_0x2572a6=Object[_0x12c8eb(0x287)](_0x4553d0);_0x4374db<_0x2572a6[_0x12c8eb(0x2cf)];_0x4374db++)_0x79bf4[_0x12c8eb(0x233)](_0x2572a6[_0x4374db])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x4553d0,_0x2572a6[_0x4374db])&&(_0x1b7ddc[_0x2572a6[_0x4374db]]=_0x4553d0[_0x2572a6[_0x4374db]]);}return _0x1b7ddc;},_0x117f26=_0x3496e8[_0x5126f4(0x22b)](function(_0x40e1fb,_0x4ed2e6){var _0xbb0bef=_0x5126f4,_0x39d007=_0x40e1fb[_0xbb0bef(0x250)],_0x474004=_0x40e1fb['id'],_0x50a75b=_0x40e1fb[_0xbb0bef(0x2b0)],_0x203cc0=_0x40e1fb[_0xbb0bef(0x232)],_0x4e63da=_0x328d71(_0x40e1fb,[_0xbb0bef(0x250),'id',_0xbb0bef(0x2b0),_0xbb0bef(0x232)]),_0x29c009='univerjs-icon\x20univerjs-icon-'[_0xbb0bef(0x202)](_0x474004,'\x20')['concat'](_0x50a75b||'')[_0xbb0bef(0x253)](),_0x490c6d=_0x3496e8[_0xbb0bef(0x2bb)]('_'[_0xbb0bef(0x202)](_0x42a3ae()));return _0x161d98(_0x39d007,''[_0xbb0bef(0x202)](_0x474004),{'defIds':_0x39d007[_0xbb0bef(0x226)],'idSuffix':_0x490c6d[_0xbb0bef(0x201)]},_0xd9be62({'ref':_0x4ed2e6,'className':_0x29c009},_0x4e63da),_0x203cc0);});function _0x161d98(_0x1f5889,_0x5b96f9,_0x412dc6,_0x387364,_0x3f9e2f){var _0x2e9419=_0x5126f4;return _0x3496e8[_0x2e9419(0x209)](_0x1f5889[_0x2e9419(0x2a0)],_0xd9be62(_0xd9be62({'key':_0x5b96f9},_0x28bbde(_0x1f5889,_0x412dc6,_0x3f9e2f)),_0x387364),(_0x28f56a(_0x1f5889,_0x412dc6)['children']||[])[_0x2e9419(0x27b)](function(_0x28e525,_0x554c0c){var _0x191008=_0x2e9419;return _0x161d98(_0x28e525,''['concat'](_0x5b96f9,'-')['concat'](_0x1f5889[_0x191008(0x2a0)],'-')[_0x191008(0x202)](_0x554c0c),_0x412dc6,void 0x0,_0x3f9e2f);}));}function _0x28bbde(_0x3a2db0,_0x566d14,_0x2d0773){var _0x24a0da=_0x5126f4,_0x3fac62=_0xd9be62({},_0x3a2db0[_0x24a0da(0x2e0)]);_0x2d0773!=null&&_0x2d0773[_0x24a0da(0x23f)]&&_0x3fac62[_0x24a0da(0x241)]===_0x24a0da(0x23f)&&(_0x3fac62['fill']=_0x2d0773[_0x24a0da(0x23f)]),_0x3a2db0[_0x24a0da(0x2a0)]===_0x24a0da(0x264)&&_0x3fac62['id']&&(_0x3fac62['id']=_0x3fac62['id']+_0x566d14[_0x24a0da(0x255)]),Object[_0x24a0da(0x29d)](_0x3fac62)[_0x24a0da(0x1f2)](function(_0xd629c3){var _0x47e81a=_0x24a0da,_0x310374=_0xd629c3[0x0],_0x36a018=_0xd629c3[0x1];_0x310374===_0x47e81a(0x264)&&typeof _0x36a018==_0x47e81a(0x208)&&(_0x3fac62[_0x310374]=_0x36a018[_0x47e81a(0x280)](/url\(#(.*)\)/,'url(#$1'[_0x47e81a(0x202)](_0x566d14[_0x47e81a(0x255)],')')));});var _0x1f9469=_0x566d14[_0x24a0da(0x226)];return!_0x1f9469||_0x1f9469[_0x24a0da(0x2cf)]===0x0||(_0x3a2db0[_0x24a0da(0x2a0)]==='use'&&_0x3fac62[_0x24a0da(0x262)]&&(_0x3fac62['xlink:href']=_0x3fac62[_0x24a0da(0x262)]+_0x566d14[_0x24a0da(0x255)]),Object['entries'](_0x3fac62)['forEach'](function(_0x33f747){var _0x3ee3a8=_0x24a0da,_0xa5d173=_0x33f747[0x0],_0x16b50b=_0x33f747[0x1];typeof _0x16b50b=='string'&&(_0x3fac62[_0xa5d173]=_0x16b50b['replace'](/url\(#(.*)\)/,_0x3ee3a8(0x290)[_0x3ee3a8(0x202)](_0x566d14['idSuffix'],')')));})),_0x3fac62;}function _0x28f56a(_0x58782d,_0x40531b){var _0x179b9a=_0x5126f4,_0x4c3f61,_0x597ef8=_0x40531b[_0x179b9a(0x226)];return!_0x597ef8||_0x597ef8[_0x179b9a(0x2cf)]===0x0?_0x58782d:_0x58782d[_0x179b9a(0x2a0)]===_0x179b9a(0x297)&&(!((_0x4c3f61=_0x58782d[_0x179b9a(0x1f4)])===null||_0x4c3f61===void 0x0)&&_0x4c3f61[_0x179b9a(0x2cf)])?_0xd9be62(_0xd9be62({},_0x58782d),{'children':_0x58782d[_0x179b9a(0x1f4)]['map'](function(_0x4a3587){var _0x57bb10=_0x179b9a;return typeof _0x4a3587[_0x57bb10(0x2e0)]['id']==_0x57bb10(0x208)&&_0x597ef8&&_0x597ef8[_0x57bb10(0x233)](_0x4a3587[_0x57bb10(0x2e0)]['id'])>-0x1?_0xd9be62(_0xd9be62({},_0x4a3587),{'attrs':_0xd9be62(_0xd9be62({},_0x4a3587[_0x57bb10(0x2e0)]),{'id':_0x4a3587[_0x57bb10(0x2e0)]['id']+_0x40531b['idSuffix']})}):_0x4a3587;})}):_0x58782d;}function _0x42a3ae(){var _0x178ae5=_0x5126f4;return Math[_0x178ae5(0x2c2)]()[_0x178ae5(0x279)](0x24)[_0x178ae5(0x29b)](0x2,0x8);}_0x117f26[_0x5126f4(0x2d6)]=_0x5126f4(0x1f6);var _0x573a8e={'tag':_0x5126f4(0x2ab),'attrs':{'fill':'none','viewBox':_0x5126f4(0x2b2),'width':_0x5126f4(0x2c5),'height':_0x5126f4(0x2c5)},'children':[{'tag':_0x5126f4(0x2af),'attrs':{'fill':'currentColor','d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':_0x5126f4(0x2af),'attrs':{'fill':_0x5126f4(0x26c),'d':_0x5126f4(0x240),'fillRule':_0x5126f4(0x20b),'clipRule':'evenodd'}}]},_0x2d038f=_0x3496e8[_0x5126f4(0x22b)](function(_0x19dffc,_0x3dcffb){var _0x2cea5f=_0x5126f4;return _0x3496e8[_0x2cea5f(0x209)](_0x117f26,Object['assign']({},_0x19dffc,{'id':'live-share-single','ref':_0x3dcffb,'icon':_0x573a8e}));});_0x2d038f[_0x5126f4(0x2d6)]=_0x5126f4(0x225);var _0x5b277f=Object[_0x5126f4(0x2d1)],_0x55f792=(_0x3e5880,_0x501614,_0xbe6c2b,_0x493eed)=>{for(var _0x247df3=_0x493eed>0x1?void 0x0:_0x493eed?_0x5b277f(_0x501614,_0xbe6c2b):_0x501614,_0x261131=_0x3e5880['length']-0x1,_0xe275f9;_0x261131>=0x0;_0x261131--)(_0xe275f9=_0x3e5880[_0x261131])&&(_0x247df3=_0xe275f9(_0x247df3)||_0x247df3);return _0x247df3;},_0x54ef66=(_0x2f5aed,_0x697193)=>(_0x1e134d,_0x582f72)=>_0x697193(_0x1e134d,_0x582f72,_0x2f5aed);_0xaf9644[_0x5126f4(0x213)]=class extends _0x26f4c5[_0x5126f4(0x242)]{constructor(_0x6e86b1,_0x24398c,_0x5cee79){var _0x55467f=_0x5126f4;super(),_0x5fb210(this,_0x55467f(0x236),new Map()),(this[_0x55467f(0x289)]=_0x6e86b1,this[_0x55467f(0x230)]=_0x24398c,this['_collabSessionService']=_0x5cee79,this['_init']());}async[_0x5126f4(0x270)](_0x263bce){var _0x2a96d9=_0x5126f4;return this[_0x2a96d9(0x236)]['has'](_0x263bce)||await this[_0x2a96d9(0x234)](_0x263bce),this[_0x2a96d9(0x236)][_0x2a96d9(0x247)](_0x263bce);}[_0x5126f4(0x24c)](){var _0x3db04c=_0x5126f4;this[_0x3db04c(0x289)][_0x3db04c(0x2ca)](_0x26f4c5[_0x3db04c(0x205)][_0x3db04c(0x2ce)])[_0x3db04c(0x26b)](_0x4353d7[_0x3db04c(0x2ba)](this[_0x3db04c(0x252)]))[_0x3db04c(0x239)](async _0x19277f=>{var _0x9bce07=_0x3db04c;const _0x13722e=_0x19277f[_0x9bce07(0x24b)]();this[_0x9bce07(0x236)]['has'](_0x13722e)||this[_0x9bce07(0x234)](_0x13722e);}),this['_univerInstanceService'][_0x3db04c(0x23a)](_0x26f4c5[_0x3db04c(0x205)][_0x3db04c(0x2ce)])[_0x3db04c(0x26b)](_0x4353d7[_0x3db04c(0x2ba)](this[_0x3db04c(0x252)]))[_0x3db04c(0x239)](_0x23ff66=>{var _0x2368bd=_0x3db04c;const _0x5183b0=_0x23ff66[_0x2368bd(0x24b)](),_0x13da1c=this[_0x2368bd(0x236)][_0x2368bd(0x247)](_0x5183b0);_0x13da1c==null||_0x13da1c['dispose']();});}async['_startLiveShareCoordinator'](_0x1c72e9){var _0xdf634a=_0x5126f4;const _0x4621e7=await this[_0xdf634a(0x22a)][_0xdf634a(0x2ae)](_0x1c72e9),_0x276f1e=this['_injector']['createInstance'](_0xaf9644[_0xdf634a(0x2a6)],_0x1c72e9,_0x4621e7);return _0x276f1e[_0xdf634a(0x265)](),this[_0xdf634a(0x236)]['set'](_0x1c72e9,_0x276f1e),_0x276f1e;}},_0xaf9644[_0x5126f4(0x213)]=_0x55f792([_0x54ef66(0x0,_0x26f4c5[_0x5126f4(0x29f)]),_0x54ef66(0x1,_0x26f4c5[_0x5126f4(0x25e)](_0x26f4c5[_0x5126f4(0x2ac)])),_0x54ef66(0x2,_0x26f4c5[_0x5126f4(0x25e)](_0x10d7f6[_0x5126f4(0x2c1)]))],_0xaf9644[_0x5126f4(0x213)]);var _0x2fa56f=(_0x3eacc0=>(_0x3eacc0[_0x5126f4(0x256)]='offline',_0x3eacc0[_0x5126f4(0x235)]=_0x5126f4(0x2d8),_0x3eacc0['FOLLOWING']=_0x5126f4(0x2c3),_0x3eacc0[_0x5126f4(0x1f9)]=_0x5126f4(0x27f),_0x3eacc0[_0x5126f4(0x2a8)]=_0x5126f4(0x214),_0x3eacc0))(_0x2fa56f||{});const _0x22144d=_0x5126f4(0x292),_0x5de814=0xc8;_0xaf9644[_0x5126f4(0x2a6)]=class extends _0x26f4c5[_0x5126f4(0x242)]{constructor(_0x300054,_0x3ac2a1,_0x11acca,_0x8ae16a,_0x35143d){var _0x401ee8=_0x5126f4;super(),_0x5fb210(this,'_status$',new _0x718415[(_0x401ee8(0x248))](_0x401ee8(0x2d8))),_0x5fb210(this,_0x401ee8(0x218),this[_0x401ee8(0x2cc)][_0x401ee8(0x206)]()),_0x5fb210(this,_0x401ee8(0x24c),!0x1),_0x5fb210(this,'_commandDisposable',null),_0x5fb210(this,_0x401ee8(0x28a),null),(this[_0x401ee8(0x200)]=_0x300054,this[_0x401ee8(0x2a3)]=_0x3ac2a1,this[_0x401ee8(0x286)]=_0x11acca,this['_liveShareService']=_0x8ae16a,this[_0x401ee8(0x2a1)]=_0x35143d);}get[_0x5126f4(0x237)](){var _0x36d953=_0x5126f4;return this[_0x36d953(0x2cc)][_0x36d953(0x2bf)]();}[_0x5126f4(0x2a2)](){var _0x388d05=_0x5126f4,_0x4c3b7c;(_0x4c3b7c=this[_0x388d05(0x2dd)])==null||_0x4c3b7c[_0x388d05(0x2a2)](),this[_0x388d05(0x2cc)][_0x388d05(0x2a4)](_0x388d05(0x2d8)),this['_status$'][_0x388d05(0x296)]();}['init'](){var _0x20df91=_0x5126f4;this['_init']||(this[_0x20df91(0x24c)]=!0x0,this[_0x20df91(0x2a3)]['sessionStatus$'][_0x20df91(0x26b)](_0x4353d7['takeUntil'](this['dispose$']))['subscribe'](_0x27f186=>{var _0x7d1f03=_0x20df91;switch(_0x27f186){case _0x10d7f6[_0x7d1f03(0x27a)]['OFFLINE']:this[_0x7d1f03(0x269)]();break;case _0x10d7f6['SessionStatus']['ONLINE']:this[_0x7d1f03(0x259)]();break;}}),this[_0x20df91(0x2a3)][_0x20df91(0x2b8)][_0x20df91(0x26b)](_0x4353d7['takeUntil'](this['dispose$']))['subscribe'](_0xfb7719=>{var _0x179d72=_0x20df91;const {eventID:_0x1d667e}=_0xfb7719;switch(_0x1d667e){case _0x1446b3['CollaborationEvent'][_0x179d72(0x25f)]:this[_0x179d72(0x24f)](_0xfb7719);break;case _0x1446b3[_0x179d72(0x27c)][_0x179d72(0x272)]:this[_0x179d72(0x29a)](_0xfb7719);break;case _0x1446b3['CollaborationEvent'][_0x179d72(0x267)]:this[_0x179d72(0x26d)]();break;case _0x1446b3[_0x179d72(0x27c)][_0x179d72(0x221)]:this[_0x179d72(0x291)](_0xfb7719);break;}}));}['tryStartPresenting'](){var _0xa549b5=_0x5126f4;this[_0xa549b5(0x2a3)][_0xa549b5(0x1f5)]({'eventID':_0x1446b3[_0xa549b5(0x27c)][_0xa549b5(0x261)],'data':{'unitID':this[_0xa549b5(0x200)],'userID':this[_0xa549b5(0x2a3)]['getMemberID']()}},this[_0xa549b5(0x200)]);}[_0x5126f4(0x284)](){var _0x1bc747=_0x5126f4;this[_0x1bc747(0x237)]===_0x1bc747(0x214)&&(this[_0x1bc747(0x2cc)][_0x1bc747(0x2a4)]('idle'),this['_collabSession']['send']({'eventID':_0x1446b3[_0x1bc747(0x27c)][_0x1bc747(0x267)],'data':{'unitID':this['_unitID']}},this['_unitID']));}['startFollowing'](){var _0x3b3128=_0x5126f4;this[_0x3b3128(0x237)]==='not-following'&&(this[_0x3b3128(0x2cc)][_0x3b3128(0x2a4)](_0x3b3128(0x2c3)),this[_0x3b3128(0x231)]());}['stopFollowing'](){var _0x4c2270=_0x5126f4;this['_status']===_0x4c2270(0x2c3)&&this[_0x4c2270(0x22c)]();}[_0x5126f4(0x24f)](_0x5bae7f){var _0x26f2c6=_0x5126f4;const {presenter:_0x250498}=_0x5bae7f[_0x26f2c6(0x1f7)],_0x63af27=this['_collabSession']['getMemberID']();this['_presenter']=_0x250498,_0x250498===_0x63af27?(this[_0x26f2c6(0x22c)](),this[_0x26f2c6(0x1ff)]()):this['_status']!==_0x26f2c6(0x27f)&&(this[_0x26f2c6(0x2da)](),this['_startFollowing']());}[_0x5126f4(0x25c)](){var _0x10ace6=_0x5126f4;const _0x321374={'eventID':_0x1446b3['CollaborationEvent'][_0x10ace6(0x249)]};this[_0x10ace6(0x2a3)][_0x10ace6(0x1f5)](_0x321374,this[_0x10ace6(0x200)]);}[_0x5126f4(0x26d)](){var _0x4e0e9a=_0x5126f4;this[_0x4e0e9a(0x28a)]=null,this[_0x4e0e9a(0x237)]!==_0x4e0e9a(0x214)&&this[_0x4e0e9a(0x25d)]();}[_0x5126f4(0x291)](_0x2fa44d){var _0x1cac65=_0x5126f4;if(this[_0x1cac65(0x237)]===_0x1cac65(0x2c3)&&this[_0x1cac65(0x28a)]===_0x2fa44d[_0x1cac65(0x1f7)]['memberID']){const _0x83a48d=_0x1446b3['parseProtocolChangeset'](_0x2fa44d[_0x1cac65(0x1f7)])[_0x1cac65(0x257)][_0x1cac65(0x2de)]()[_0x1cac65(0x212)](_0xa8415b=>_0xa8415b['id']===_0x5a62f0[_0x1cac65(0x298)]['id']);if(_0x83a48d){const _0x33404c=_0x83a48d[_0x1cac65(0x21a)][_0x1cac65(0x28c)],_0xf42309=_0x83a48d[_0x1cac65(0x21a)][_0x1cac65(0x293)]['id'];setTimeout(()=>{var _0x22d371=_0x1cac65;this[_0x22d371(0x2a1)][_0x22d371(0x24a)](_0x5a62f0[_0x22d371(0x28f)]['id'],{'unitId':_0x33404c,'subUnitId':_0xf42309},{'fromCollab':!0x0});});}}}[_0x5126f4(0x1ff)](){var _0xc95e6b=_0x5126f4;this[_0xc95e6b(0x2cc)][_0xc95e6b(0x2a4)](_0xc95e6b(0x214));const _0x5ac82d=new Map(),_0x37393c=this['_commandDisposable']=new _0x26f4c5[(_0xc95e6b(0x2bc))]();_0x37393c[_0xc95e6b(0x29e)](_0x26f4c5[_0xc95e6b(0x20e)](()=>{var _0x303e00=_0xc95e6b;_0x5ac82d['forEach'](_0x12c2a2=>_0x12c2a2[_0x303e00(0x296)]()),_0x5ac82d[_0x303e00(0x2cd)]();})),_0x37393c[_0xc95e6b(0x29e)](this['_commandService']['onCommandExecuted'](_0x23219f=>{var _0x4281d2=_0xc95e6b,_0x3dcc18;if(_0x23219f[_0x4281d2(0x21b)]!==_0x26f4c5['CommandType']['OPERATION']||!this[_0x4281d2(0x2b5)][_0x4281d2(0x23b)](_0x23219f['id']))return;const {id:_0x5953be}=_0x23219f;let _0x36eaff;_0x5ac82d[_0x4281d2(0x223)](_0x5953be)?_0x36eaff=_0x5ac82d[_0x4281d2(0x247)](_0x5953be):(_0x36eaff=new _0x718415[(_0x4281d2(0x2c6))](),_0x5ac82d['set'](_0x5953be,_0x36eaff),_0x36eaff['pipe'](_0x4353d7[_0x4281d2(0x217)]((_0x3dcc18=this['_configService'][_0x4281d2(0x268)](_0x22144d))!=null?_0x3dcc18:_0x5de814,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4281d2(0x239)](_0x3fdf0a=>{var _0x3bd1f1=_0x4281d2;this['_collabSession'][_0x3bd1f1(0x1f5)]({'eventID':_0x1446b3[_0x3bd1f1(0x27c)][_0x3bd1f1(0x272)],'data':{'unitID':this[_0x3bd1f1(0x200)],'operations':{[_0x3fdf0a['id']]:{'id':_0x3fdf0a['id'],'params':JSON[_0x3bd1f1(0x20a)](_0x3fdf0a[_0x3bd1f1(0x21a)])}}}},this['_unitID']);})),_0x36eaff['next'](_0x23219f);})),this[_0xc95e6b(0x2b5)][_0xc95e6b(0x216)](this[_0xc95e6b(0x200)])[_0xc95e6b(0x1f2)](_0x2d5b77=>this['_collabSession'][_0xc95e6b(0x1f5)]({'eventID':_0x1446b3[_0xc95e6b(0x27c)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x2d5b77['id']]:{'id':_0x2d5b77['id'],'params':JSON['stringify'](_0x2d5b77[_0xc95e6b(0x21a)])}}}},this[_0xc95e6b(0x200)]));}['_stopPresenting'](){var _0x155017=_0x5126f4,_0x4bc1c2;this[_0x155017(0x2cc)][_0x155017(0x2a4)](_0x155017(0x2d8)),(_0x4bc1c2=this[_0x155017(0x2dd)])==null||_0x4bc1c2[_0x155017(0x2a2)](),this['_commandDisposable']=null;}[_0x5126f4(0x231)](){var _0x4827ba=_0x5126f4,_0x2be5b2;(_0x2be5b2=this[_0x4827ba(0x2dd)])==null||_0x2be5b2[_0x4827ba(0x2a2)](),this[_0x4827ba(0x2cc)][_0x4827ba(0x2a4)](_0x4827ba(0x2c3));}[_0x5126f4(0x25d)](){var _0x14dbd8=_0x5126f4,_0x15c888;this[_0x14dbd8(0x2cc)]['next'](_0x14dbd8(0x2d8)),(_0x15c888=this[_0x14dbd8(0x2dd)])==null||_0x15c888[_0x14dbd8(0x2a2)](),this[_0x14dbd8(0x2dd)]=null;}[_0x5126f4(0x22c)](){var _0x417f71=_0x5126f4,_0x48b58f;this[_0x417f71(0x2cc)][_0x417f71(0x2a4)](_0x417f71(0x27f)),(_0x48b58f=this[_0x417f71(0x2dd)])==null||_0x48b58f[_0x417f71(0x2a2)]();}['_handleOperation'](_0x14304c){var _0x456aa9=_0x5126f4;if(['presenting',_0x456aa9(0x27f),_0x456aa9(0x1fb)]['includes'](this[_0x456aa9(0x237)])||!_0x14304c[_0x456aa9(0x1f7)][_0x456aa9(0x215)]||_0x14304c[_0x456aa9(0x1f7)][_0x456aa9(0x215)]===this[_0x456aa9(0x2a3)][_0x456aa9(0x228)]())return;this[_0x456aa9(0x237)]===_0x456aa9(0x2d8)&&this[_0x456aa9(0x231)]();const _0x48e1f4=_0x14304c['data'][_0x456aa9(0x278)];Object['values'](_0x48e1f4)[_0x456aa9(0x1f2)](_0x201f94=>{var _0x3a1e73=_0x456aa9;this['_commandService']['executeCommand'](_0x201f94['id'],_0x201f94[_0x3a1e73(0x21a)]?JSON[_0x3a1e73(0x1fd)](_0x201f94[_0x3a1e73(0x21a)]):null,{'fromCollab':!0x0});});}[_0x5126f4(0x269)](){var _0x4d9eba=_0x5126f4,_0x2d1835;this['_status$'][_0x4d9eba(0x2a4)](_0x4d9eba(0x1fb)),(_0x2d1835=this[_0x4d9eba(0x2dd)])==null||_0x2d1835[_0x4d9eba(0x2a2)]();}[_0x5126f4(0x259)](){var _0x312530=_0x5126f4;this[_0x312530(0x2cc)][_0x312530(0x2a4)]('idle'),this[_0x312530(0x25c)]();}},_0xaf9644[_0x5126f4(0x2a6)]=_0x55f792([_0x54ef66(0x2,_0x26f4c5['IConfigService']),_0x54ef66(0x3,_0x26f4c5['Inject'](_0x2130be)),_0x54ef66(0x4,_0x26f4c5[_0x5126f4(0x2b9)])],_0xaf9644[_0x5126f4(0x2a6)]);function _0x164295(){var _0x477093=_0x5126f4;const _0x114586=_0x26cb04[_0x477093(0x2c7)](_0xaf9644[_0x477093(0x213)]),_0x22cecd=_0x26cb04[_0x477093(0x2c7)](_0x26f4c5['IUniverInstanceService']),_0xc53f58=_0x26cb04[_0x477093(0x1fe)](()=>_0x22cecd[_0x477093(0x2d4)](_0x26f4c5[_0x477093(0x205)][_0x477093(0x2ce)]),void 0x0,!0x1,[]),[_0x4d6ef0,_0x1526af]=_0x3496e8['useState'](null),[_0x2d3cd2,_0x3c38a3]=_0x3496e8[_0x477093(0x222)](_0x2fa56f['IDLE']),_0x13e22f=_0x3496e8[_0x477093(0x2bb)](null);return _0x3496e8['useEffect'](()=>(_0xc53f58&&_0x114586[_0x477093(0x270)](_0xc53f58[_0x477093(0x24b)]())['then'](_0x3ec67a=>{var _0xf57860=_0x477093;_0x1526af(_0x3ec67a),_0x13e22f[_0xf57860(0x201)]=_0x3ec67a['status$']['subscribe'](_0x10f24c=>{_0x3c38a3(_0x10f24c);});}),()=>{var _0x2b414d=_0x477093,_0x403ba6;(_0x403ba6=_0x13e22f[_0x2b414d(0x201)])==null||_0x403ba6['unsubscribe'](),_0x13e22f['current']=null;}),[_0xc53f58,_0x114586]),_0x4d6ef0?_0x4feff4[_0x477093(0x2a9)](_0x345dec[_0x477093(0x271)],{'align':_0x477093(0x29c),'disabled':_0x2d3cd2===_0x2fa56f[_0x477093(0x256)],'className':_0x477093(0x224),'overlay':_0x4feff4['jsx'](_0x4da1f7,{'status':_0x2d3cd2,'coordinator':_0x4d6ef0}),'children':_0x4feff4[_0x477093(0x2a9)](_0x477093(0x2be),{'className':_0x345dec[_0x477093(0x281)]('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x2d3cd2===_0x2fa56f[_0x477093(0x256)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2d3cd2!==_0x2fa56f[_0x477093(0x256)]}),'type':_0x477093(0x2be),'children':_0x4feff4[_0x477093(0x2a9)](_0x2d038f,{'className':_0x477093(0x2d9)})})}):null;}function _0x4da1f7(_0x335fda){var _0xc6a8cb=_0x5126f4;const {status:_0x4b80ca,coordinator:_0x1f053a}=_0x335fda;switch(_0x4b80ca){case _0x2fa56f[_0xc6a8cb(0x235)]:return _0x4feff4['jsx'](_0x2ba7fa,{'coordinator':_0x1f053a});case _0x2fa56f['FOLLOWING']:return _0x4feff4[_0xc6a8cb(0x2a9)](_0x5e1bf1,{'coordinator':_0x1f053a});case _0x2fa56f['NOT_FOLLOWING']:return _0x4feff4[_0xc6a8cb(0x2a9)](_0x547f65,{'coordinator':_0x1f053a});case _0x2fa56f['OFFLINE']:return _0x4feff4['jsx'](_0x53c601,{});case _0x2fa56f['PRESENTING']:return _0x4feff4[_0xc6a8cb(0x2a9)](_0x59fc9f,{'coordinator':_0x1f053a});default:return null;}}function _0x2ba7fa(_0x1007c7){var _0x301571=_0x5126f4;const {coordinator:_0x4c3430}=_0x1007c7;return _0x4feff4[_0x301571(0x21f)](_0x4feff4[_0x301571(0x254)],{'children':[_0x4feff4['jsx'](_0x301571(0x227),{'className':_0x301571(0x24e),'children':'Present\x20this\x20document'}),_0x4feff4[_0x301571(0x2a9)](_0x345dec[_0x301571(0x299)],{'onClick':()=>_0x4c3430['tryStartPresenting'](),'children':_0x301571(0x2a7)})]});}function _0x5e1bf1(_0xe83374){var _0x14149c=_0x5126f4;const {coordinator:_0x22f704}=_0xe83374;return _0x4feff4[_0x14149c(0x21f)](_0x4feff4[_0x14149c(0x254)],{'children':[_0x4feff4[_0x14149c(0x2a9)](_0x14149c(0x227),{'className':_0x14149c(0x24e),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x4feff4[_0x14149c(0x2a9)](_0x345dec[_0x14149c(0x299)],{'onClick':()=>_0x22f704['stopFollowing'](),'children':_0x14149c(0x23d)})]});}function _0x547f65(_0x15ca2e){var _0x430032=_0x5126f4;const {coordinator:_0x2b7216}=_0x15ca2e;return _0x4feff4[_0x430032(0x21f)](_0x4feff4[_0x430032(0x254)],{'children':[_0x4feff4['jsx'](_0x430032(0x227),{'className':_0x430032(0x24e),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4feff4[_0x430032(0x2a9)](_0x345dec[_0x430032(0x299)],{'variant':_0x430032(0x22d),'onClick':()=>_0x2b7216[_0x430032(0x277)](),'children':_0x430032(0x20f)})]});}function _0x59fc9f(_0x570c3f){var _0x3cdb3c=_0x5126f4;const {coordinator:_0x342087}=_0x570c3f;return _0x4feff4[_0x3cdb3c(0x21f)](_0x4feff4[_0x3cdb3c(0x254)],{'children':[_0x4feff4[_0x3cdb3c(0x2a9)]('div',{'className':_0x3cdb3c(0x24e),'children':_0x3cdb3c(0x2b3)}),_0x4feff4[_0x3cdb3c(0x2a9)](_0x345dec['Button'],{'variant':_0x3cdb3c(0x22f),'onClick':()=>_0x342087[_0x3cdb3c(0x284)](),'children':_0x3cdb3c(0x27d)})]});}function _0x53c601(){var _0x559122=_0x5126f4;return _0x4feff4['jsx'](_0x4feff4[_0x559122(0x254)],{'children':_0x559122(0x20c)});}var _0x2a0c0f=Object[_0x5126f4(0x2d1)],_0x56d9f6=(_0x43cbb4,_0xa77e31,_0x90130a,_0x1c98de)=>{for(var _0x2bde2a=_0x1c98de>0x1?void 0x0:_0x1c98de?_0x2a0c0f(_0xa77e31,_0x90130a):_0xa77e31,_0x385842=_0x43cbb4['length']-0x1,_0x2ea1fd;_0x385842>=0x0;_0x385842--)(_0x2ea1fd=_0x43cbb4[_0x385842])&&(_0x2bde2a=_0x2ea1fd(_0x2bde2a)||_0x2bde2a);return _0x2bde2a;},_0x382e9d=(_0x44b88a,_0x55cf69)=>(_0x3d78a2,_0x4a14a9)=>_0x55cf69(_0x3d78a2,_0x4a14a9,_0x44b88a);_0xaf9644[_0x5126f4(0x273)]=class extends _0x26f4c5[_0x5126f4(0x25a)]{constructor(_0x3a8935,_0x30e31b){var _0x5e736e=_0x5126f4;super(),this['_injector']=_0x3a8935,this[_0x5e736e(0x274)]=_0x30e31b,this[_0x5e736e(0x207)]();}['_mountLiveShare'](){var _0x38016f=_0x5126f4;this['disposeWithMe'](this[_0x38016f(0x274)][_0x38016f(0x2db)](_0x26cb04[_0x38016f(0x22e)][_0x38016f(0x23e)],()=>_0x26cb04[_0x38016f(0x2c4)](_0x164295,this[_0x38016f(0x230)])));}},_0xaf9644[_0x5126f4(0x273)]=_0x56d9f6([_0x382e9d(0x0,_0x26f4c5[_0x5126f4(0x25e)](_0x26f4c5[_0x5126f4(0x2ac)])),_0x382e9d(0x1,_0x26cb04[_0x5126f4(0x1f8)])],_0xaf9644[_0x5126f4(0x273)]);var _0x25bb9a=Object['defineProperty'],_0x2a5dca=Object[_0x5126f4(0x2d1)],_0x530277=(_0x245294,_0x139a3,_0x5591e5)=>_0x139a3 in _0x245294?_0x25bb9a(_0x245294,_0x139a3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5591e5}):_0x245294[_0x139a3]=_0x5591e5,_0xf1a1d0=(_0x264bbb,_0x4919dc,_0x168abb,_0x3ec787)=>{for(var _0x5792a1=_0x3ec787>0x1?void 0x0:_0x3ec787?_0x2a5dca(_0x4919dc,_0x168abb):_0x4919dc,_0x244246=_0x264bbb['length']-0x1,_0x361a0d;_0x244246>=0x0;_0x244246--)(_0x361a0d=_0x264bbb[_0x244246])&&(_0x5792a1=_0x361a0d(_0x5792a1)||_0x5792a1);return _0x5792a1;},_0x2c4b9f=(_0x21a66b,_0x1c5fa6)=>(_0x97d82d,_0x34b1d7)=>_0x1c5fa6(_0x97d82d,_0x34b1d7,_0x21a66b),_0x50d000=(_0x1c1ba1,_0x3091d3,_0x119063)=>_0x530277(_0x1c1ba1,typeof _0x3091d3!=_0x5126f4(0x203)?_0x3091d3+'':_0x3091d3,_0x119063);const _0x215955='UNIVER_LIVE_SHARE_PLUGIN';_0xaf9644['UniverLiveSharePlugin']=class extends _0x26f4c5['Plugin']{constructor(_0x45491c=_0x15dc4e,_0x119c8d,_0x16d6fe){var _0x4bfc01=_0x5126f4;super(),this[_0x4bfc01(0x244)]=_0x45491c,this[_0x4bfc01(0x230)]=_0x119c8d,this[_0x4bfc01(0x286)]=_0x16d6fe;const {..._0x2ce33e}=_0x26f4c5['merge']({},_0x15dc4e,this[_0x4bfc01(0x244)]);this[_0x4bfc01(0x286)]['setConfig'](_0x475dfe,_0x2ce33e);}[_0x5126f4(0x2b6)](){var _0x2c215e=_0x5126f4;_0x26f4c5[_0x2c215e(0x204)](this[_0x2c215e(0x230)],_0x26f4c5[_0x2c215e(0x2b1)]([[_0x2130be],[_0xaf9644['LiveShareController']],[_0x1c41a8],[_0xaf9644[_0x2c215e(0x273)]]],this[_0x2c215e(0x244)][_0x2c215e(0x238)])),_0x26f4c5['touchDependencies'](this[_0x2c215e(0x230)],[[_0x1c41a8]]);}[_0x5126f4(0x275)](){_0x26f4c5['touchDependencies'](this['_injector'],[[_0xaf9644['DesktopLiveShareController']]]);}},_0x50d000(_0xaf9644[_0x5126f4(0x243)],_0x5126f4(0x21b),_0x26f4c5[_0x5126f4(0x205)][_0x5126f4(0x26f)]),_0x50d000(_0xaf9644[_0x5126f4(0x243)],_0x5126f4(0x285),_0x215955),_0xaf9644[_0x5126f4(0x243)]=_0xf1a1d0([_0x26f4c5[_0x5126f4(0x229)](_0x10d7f6[_0x5126f4(0x210)]),_0x2c4b9f(0x1,_0x26f4c5[_0x5126f4(0x25e)](_0x26f4c5[_0x5126f4(0x2ac)])),_0x2c4b9f(0x2,_0x26f4c5['IConfigService'])],_0xaf9644[_0x5126f4(0x243)]),_0xaf9644[_0x5126f4(0x2d7)]=_0x164295,_0xaf9644[_0x5126f4(0x266)]=_0x2130be,_0xaf9644[_0x5126f4(0x2bd)]=_0x2fa56f,Object[_0x5126f4(0x2df)](_0xaf9644,Symbol['toStringTag'],{'value':_0x5126f4(0x25b)});}));
|
|
1
|
+
function _0x545f(_0x42516d,_0x5415f3){var _0x575241=_0x5752();return _0x545f=function(_0x545ff5,_0x131813){_0x545ff5=_0x545ff5-0x115;var _0x20ccdf=_0x575241[_0x545ff5];return _0x20ccdf;},_0x545f(_0x42516d,_0x5415f3);}(function(_0x308c09,_0x1ff32f){var _0x477003=_0x545f,_0x1b695b=_0x308c09();while(!![]){try{var _0x81c546=-parseInt(_0x477003(0x1ac))/0x1*(-parseInt(_0x477003(0x1c7))/0x2)+parseInt(_0x477003(0x176))/0x3*(parseInt(_0x477003(0x204))/0x4)+-parseInt(_0x477003(0x157))/0x5*(-parseInt(_0x477003(0x1c4))/0x6)+parseInt(_0x477003(0x1fe))/0x7*(parseInt(_0x477003(0x139))/0x8)+parseInt(_0x477003(0x1a8))/0x9*(parseInt(_0x477003(0x175))/0xa)+-parseInt(_0x477003(0x156))/0xb+-parseInt(_0x477003(0x17d))/0xc*(parseInt(_0x477003(0x192))/0xd);if(_0x81c546===_0x1ff32f)break;else _0x1b695b['push'](_0x1b695b['shift']());}catch(_0x48db75){_0x1b695b['push'](_0x1b695b['shift']());}}}(_0x5752,0x7a492),function(_0xc6fcc9,_0x17172c){var _0x34bf3f=_0x545f;typeof exports==_0x34bf3f(0x14d)&&typeof module<'u'?_0x17172c(exports,require(_0x34bf3f(0x13e)),require('@univerjs/core'),require(_0x34bf3f(0x1a7)),require('@univerjs/sheets-ui'),require(_0x34bf3f(0x152)),require(_0x34bf3f(0x17b)),require('@univerjs/design'),require(_0x34bf3f(0x1cd)),require(_0x34bf3f(0x11f)),require(_0x34bf3f(0x13b)),require(_0x34bf3f(0x191))):typeof define==_0x34bf3f(0x1b7)&&define[_0x34bf3f(0x1de)]?define([_0x34bf3f(0x162),_0x34bf3f(0x13e),_0x34bf3f(0x1b4),_0x34bf3f(0x1a7),_0x34bf3f(0x1c9),_0x34bf3f(0x152),_0x34bf3f(0x17b),_0x34bf3f(0x117),'react',_0x34bf3f(0x11f),'rxjs',_0x34bf3f(0x191)],_0x17172c):(_0xc6fcc9=typeof globalThis<'u'?globalThis:_0xc6fcc9||self,_0x17172c(_0xc6fcc9[_0x34bf3f(0x14e)]={},_0xc6fcc9[_0x34bf3f(0x1b5)],_0xc6fcc9[_0x34bf3f(0x127)],_0xc6fcc9[_0x34bf3f(0x207)],_0xc6fcc9[_0x34bf3f(0x18a)],_0xc6fcc9['UniverUi'],_0xc6fcc9[_0x34bf3f(0x154)],_0xc6fcc9['UniverDesign'],_0xc6fcc9[_0x34bf3f(0x154)],_0xc6fcc9[_0x34bf3f(0x174)],_0xc6fcc9[_0x34bf3f(0x13b)],_0xc6fcc9['rxjs'][_0x34bf3f(0x1f0)]));}(this,function(_0x2e0303,_0x21fb35,_0x42d3cb,_0x3ba85f,_0x1670e9,_0x5a3d51,_0x3d0e35,_0x494086,_0x1a6b8c,_0x50232c,_0x18e5fa,_0x59f70e){'use strict';var _0x38ea04=_0x545f;var _0x4530b6=Object[_0x38ea04(0x11b)],_0x1faee4=(_0x5315c4,_0xd5b28a,_0x568a5b)=>_0xd5b28a in _0x5315c4?_0x4530b6(_0x5315c4,_0xd5b28a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x568a5b}):_0x5315c4[_0xd5b28a]=_0x568a5b,_0x183ce4=(_0x51711b,_0x1655a8,_0xcb3855)=>_0x1faee4(_0x51711b,typeof _0x1655a8!=_0x38ea04(0x128)?_0x1655a8+'':_0x1655a8,_0xcb3855);const _0x4cb5d5=_0x38ea04(0x1d8),_0x1e85bb={};class _0x4f7ebf extends _0x42d3cb['Disposable']{constructor(){var _0x5ccf90=_0x38ea04;super(...arguments),_0x183ce4(this,_0x5ccf90(0x1e0),new Set()),_0x183ce4(this,_0x5ccf90(0x182),new Set());}[_0x38ea04(0x1d2)](_0x1ea625){var _0x490c47=_0x38ea04;return this[_0x490c47(0x1e0)][_0x490c47(0x1af)](_0x1ea625),_0x42d3cb['toDisposable'](()=>this[_0x490c47(0x1e0)][_0x490c47(0x124)](_0x1ea625));}[_0x38ea04(0x198)](_0x4ea962){var _0x26b3a3=_0x38ea04;return this['_reporters'][_0x26b3a3(0x1af)](_0x4ea962),_0x42d3cb[_0x26b3a3(0x171)](()=>this[_0x26b3a3(0x182)][_0x26b3a3(0x124)](_0x4ea962));}[_0x38ea04(0x1fd)](_0x55b707){var _0x491e55=_0x38ea04;return this[_0x491e55(0x1e0)]['has'](_0x55b707);}[_0x38ea04(0x129)](_0x421607){var _0x412778=_0x38ea04;return Array[_0x412778(0x19a)](this[_0x412778(0x182)])['map'](_0x42dbb5=>_0x42dbb5(_0x421607));}}var _0x2f64d8=Object[_0x38ea04(0x1d6)],_0x246e44=(_0x467a8a,_0x2d30e7,_0x6f17a5,_0x207374)=>{for(var _0x8c681f=_0x207374>0x1?void 0x0:_0x207374?_0x2f64d8(_0x2d30e7,_0x6f17a5):_0x2d30e7,_0x55a3af=_0x467a8a['length']-0x1,_0x1ca937;_0x55a3af>=0x0;_0x55a3af--)(_0x1ca937=_0x467a8a[_0x55a3af])&&(_0x8c681f=_0x1ca937(_0x8c681f)||_0x8c681f);return _0x8c681f;},_0x24b89b=(_0x359a6a,_0x42f6ac)=>(_0x493051,_0x87883c)=>_0x42f6ac(_0x493051,_0x87883c,_0x359a6a);let _0xb8f5d0=class extends _0x42d3cb['Disposable']{constructor(_0x3dad08){var _0x490d72=_0x38ea04;super(),this[_0x490d72(0x1ad)]=_0x3dad08,this['_init']();}[_0x38ea04(0x1cf)](){var _0x34343d=_0x38ea04;[_0x1670e9[_0x34343d(0x1d4)]['id'],_0x1670e9[_0x34343d(0x120)]['id'],_0x3ba85f[_0x34343d(0x1a0)]['id']][_0x34343d(0x1d7)](_0x29de30=>{var _0x385311=_0x34343d;this['disposeWithMe'](this[_0x385311(0x1ad)][_0x385311(0x1d2)](_0x29de30));});}};_0xb8f5d0=_0x246e44([_0x24b89b(0x0,_0x42d3cb['Inject'](_0x4f7ebf))],_0xb8f5d0);var _0x53812d=function(){var _0x530087=_0x38ea04;return _0x53812d=Object[_0x530087(0x143)]||function(_0xf38ddf){var _0x278f6f=_0x530087;for(var _0x1229f9,_0x59e5e6=0x1,_0x1f9cb5=arguments[_0x278f6f(0x161)];_0x59e5e6<_0x1f9cb5;_0x59e5e6++){_0x1229f9=arguments[_0x59e5e6];for(var _0x5dda1a in _0x1229f9)Object['prototype'][_0x278f6f(0x16b)][_0x278f6f(0x11e)](_0x1229f9,_0x5dda1a)&&(_0xf38ddf[_0x5dda1a]=_0x1229f9[_0x5dda1a]);}return _0xf38ddf;},_0x53812d[_0x530087(0x173)](this,arguments);},_0x362b8a=function(_0x112530,_0x3eee16){var _0x4ffd12=_0x38ea04,_0x137ea9={};for(var _0xa424a6 in _0x112530)Object['prototype']['hasOwnProperty'][_0x4ffd12(0x11e)](_0x112530,_0xa424a6)&&_0x3eee16[_0x4ffd12(0x17a)](_0xa424a6)<0x0&&(_0x137ea9[_0xa424a6]=_0x112530[_0xa424a6]);if(_0x112530!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x2d8bc8=0x0,_0xa424a6=Object[_0x4ffd12(0x1bc)](_0x112530);_0x2d8bc8<_0xa424a6[_0x4ffd12(0x161)];_0x2d8bc8++)_0x3eee16[_0x4ffd12(0x17a)](_0xa424a6[_0x2d8bc8])<0x0&&Object[_0x4ffd12(0x119)][_0x4ffd12(0x1b1)][_0x4ffd12(0x11e)](_0x112530,_0xa424a6[_0x2d8bc8])&&(_0x137ea9[_0xa424a6[_0x2d8bc8]]=_0x112530[_0xa424a6[_0x2d8bc8]]);}return _0x137ea9;},_0x25a05c=_0x1a6b8c[_0x38ea04(0x20c)](function(_0x3a1edd,_0x190b1a){var _0x44a00d=_0x38ea04,_0x1c2535=_0x3a1edd[_0x44a00d(0x1a2)],_0x1d0485=_0x3a1edd['id'],_0x573f43=_0x3a1edd[_0x44a00d(0x195)],_0x5eac33=_0x3a1edd[_0x44a00d(0x1a3)],_0x4a7eca=_0x362b8a(_0x3a1edd,[_0x44a00d(0x1a2),'id',_0x44a00d(0x195),'extend']),_0x119830=_0x44a00d(0x17c)[_0x44a00d(0x208)](_0x1d0485,'\x20')[_0x44a00d(0x208)](_0x573f43||'')[_0x44a00d(0x1a1)](),_0x251a93=_0x1a6b8c[_0x44a00d(0x1eb)]('_'[_0x44a00d(0x208)](_0x2f7e4e()));return _0x4968ab(_0x1c2535,''['concat'](_0x1d0485),{'defIds':_0x1c2535[_0x44a00d(0x190)],'idSuffix':_0x251a93['current']},_0x53812d({'ref':_0x190b1a,'className':_0x119830},_0x4a7eca),_0x5eac33);});function _0x4968ab(_0x48d757,_0x2b6955,_0x519873,_0x13f8dc,_0x456b6a){var _0x5f1f46=_0x38ea04;return _0x1a6b8c['createElement'](_0x48d757[_0x5f1f46(0x12b)],_0x53812d(_0x53812d({'key':_0x2b6955},_0x431793(_0x48d757,_0x519873,_0x456b6a)),_0x13f8dc),(_0x72541f(_0x48d757,_0x519873)[_0x5f1f46(0x1c2)]||[])[_0x5f1f46(0x193)](function(_0x54c87b,_0x24a4da){var _0x46e90a=_0x5f1f46;return _0x4968ab(_0x54c87b,''[_0x46e90a(0x208)](_0x2b6955,'-')['concat'](_0x48d757['tag'],'-')[_0x46e90a(0x208)](_0x24a4da),_0x519873,void 0x0,_0x456b6a);}));}function _0x431793(_0x9cdbf5,_0x2ec418,_0x16ef1b){var _0x55d856=_0x38ea04,_0xf7687a=_0x53812d({},_0x9cdbf5[_0x55d856(0x203)]);_0x16ef1b!=null&&_0x16ef1b['colorChannel1']&&_0xf7687a[_0x55d856(0x1c0)]===_0x55d856(0x1ab)&&(_0xf7687a[_0x55d856(0x1c0)]=_0x16ef1b[_0x55d856(0x1ab)]),_0x9cdbf5['tag']===_0x55d856(0x145)&&_0xf7687a['id']&&(_0xf7687a['id']=_0xf7687a['id']+_0x2ec418[_0x55d856(0x13a)]),Object['entries'](_0xf7687a)[_0x55d856(0x1d7)](function(_0x3f67e6){var _0x23dac7=_0x55d856,_0x5c6fef=_0x3f67e6[0x0],_0x407142=_0x3f67e6[0x1];_0x5c6fef==='mask'&&typeof _0x407142=='string'&&(_0xf7687a[_0x5c6fef]=_0x407142[_0x23dac7(0x20b)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x2ec418['idSuffix'],')')));});var _0x52cdc5=_0x2ec418[_0x55d856(0x190)];return!_0x52cdc5||_0x52cdc5[_0x55d856(0x161)]===0x0||(_0x9cdbf5[_0x55d856(0x12b)]===_0x55d856(0x1e8)&&_0xf7687a[_0x55d856(0x169)]&&(_0xf7687a[_0x55d856(0x169)]=_0xf7687a[_0x55d856(0x169)]+_0x2ec418[_0x55d856(0x13a)]),Object['entries'](_0xf7687a)[_0x55d856(0x1d7)](function(_0x1ba988){var _0x3ac8ae=_0x55d856,_0x1e45c1=_0x1ba988[0x0],_0x3cf345=_0x1ba988[0x1];typeof _0x3cf345==_0x3ac8ae(0x126)&&(_0xf7687a[_0x1e45c1]=_0x3cf345[_0x3ac8ae(0x20b)](/url\(#(.*)\)/,'url(#$1'[_0x3ac8ae(0x208)](_0x2ec418['idSuffix'],')')));})),_0xf7687a;}function _0x72541f(_0x44e3bf,_0x57487c){var _0x106569=_0x38ea04,_0x3ff985,_0x14fbc1=_0x57487c['defIds'];return!_0x14fbc1||_0x14fbc1[_0x106569(0x161)]===0x0?_0x44e3bf:_0x44e3bf[_0x106569(0x12b)]==='defs'&&(!((_0x3ff985=_0x44e3bf[_0x106569(0x1c2)])===null||_0x3ff985===void 0x0)&&_0x3ff985[_0x106569(0x161)])?_0x53812d(_0x53812d({},_0x44e3bf),{'children':_0x44e3bf[_0x106569(0x1c2)][_0x106569(0x193)](function(_0x556260){var _0x1a87b8=_0x106569;return typeof _0x556260[_0x1a87b8(0x203)]['id']==_0x1a87b8(0x126)&&_0x14fbc1&&_0x14fbc1[_0x1a87b8(0x17a)](_0x556260[_0x1a87b8(0x203)]['id'])>-0x1?_0x53812d(_0x53812d({},_0x556260),{'attrs':_0x53812d(_0x53812d({},_0x556260[_0x1a87b8(0x203)]),{'id':_0x556260['attrs']['id']+_0x57487c[_0x1a87b8(0x13a)]})}):_0x556260;})}):_0x44e3bf;}function _0x2f7e4e(){var _0x39e3f1=_0x38ea04;return Math['random']()['toString'](0x24)[_0x39e3f1(0x1f8)](0x2,0x8);}_0x25a05c[_0x38ea04(0x194)]=_0x38ea04(0x18f);var _0x4367e0={'tag':_0x38ea04(0x1f3),'attrs':{'fill':_0x38ea04(0x1ba),'viewBox':_0x38ea04(0x15b),'width':_0x38ea04(0x166),'height':_0x38ea04(0x166)},'children':[{'tag':'path','attrs':{'fill':_0x38ea04(0x1ec),'d':_0x38ea04(0x19d)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x38ea04(0x151),'fillRule':'evenodd','clipRule':'evenodd'}}]},_0x2ce6b9=_0x1a6b8c[_0x38ea04(0x20c)](function(_0x52ed37,_0x103b9a){var _0xc62722=_0x38ea04;return _0x1a6b8c['createElement'](_0x25a05c,Object[_0xc62722(0x143)]({},_0x52ed37,{'id':_0xc62722(0x1ee),'ref':_0x103b9a,'icon':_0x4367e0}));});_0x2ce6b9[_0x38ea04(0x194)]='LiveShareSingle';var _0x1099ca=Object['getOwnPropertyDescriptor'],_0x22ef8a=(_0x383b06,_0x3d3228,_0x2e16cb,_0xad2882)=>{var _0x4841b6=_0x38ea04;for(var _0x269533=_0xad2882>0x1?void 0x0:_0xad2882?_0x1099ca(_0x3d3228,_0x2e16cb):_0x3d3228,_0x5784ba=_0x383b06[_0x4841b6(0x161)]-0x1,_0xfc7ab7;_0x5784ba>=0x0;_0x5784ba--)(_0xfc7ab7=_0x383b06[_0x5784ba])&&(_0x269533=_0xfc7ab7(_0x269533)||_0x269533);return _0x269533;},_0x424375=(_0x598d97,_0x4d85ea)=>(_0x58f11b,_0x2c15bf)=>_0x4d85ea(_0x58f11b,_0x2c15bf,_0x598d97);_0x2e0303[_0x38ea04(0x1a6)]=class extends _0x42d3cb[_0x38ea04(0x1ef)]{constructor(_0x58c211,_0x2cf26c,_0x181242){var _0x351a99=_0x38ea04;super(),_0x183ce4(this,'_entities',new Map()),(this[_0x351a99(0x1b2)]=_0x58c211,this[_0x351a99(0x1c8)]=_0x2cf26c,this[_0x351a99(0x148)]=_0x181242,this[_0x351a99(0x1cf)]());}async[_0x38ea04(0x205)](_0x23572a){var _0x122f03=_0x38ea04;return this['_entities'][_0x122f03(0x140)](_0x23572a)||await this['_startLiveShareCoordinator'](_0x23572a),this[_0x122f03(0x14f)]['get'](_0x23572a);}[_0x38ea04(0x1cf)](){var _0x1686c9=_0x38ea04;this[_0x1686c9(0x1b2)][_0x1686c9(0x155)](_0x42d3cb['UniverInstanceType'][_0x1686c9(0x12c)])[_0x1686c9(0x186)](_0x59f70e[_0x1686c9(0x16f)](this['dispose$']))['subscribe'](async _0x17042c=>{var _0x142825=_0x1686c9;const _0x7559cf=_0x17042c[_0x142825(0x1b6)]();this[_0x142825(0x14f)][_0x142825(0x140)](_0x7559cf)||this['_startLiveShareCoordinator'](_0x7559cf);}),this['_univerInstanceService'][_0x1686c9(0x13f)](_0x42d3cb['UniverInstanceType'][_0x1686c9(0x12c)])[_0x1686c9(0x186)](_0x59f70e[_0x1686c9(0x16f)](this[_0x1686c9(0x11d)]))[_0x1686c9(0x206)](_0x236b60=>{var _0x284e49=_0x1686c9;const _0x5c208f=_0x236b60[_0x284e49(0x1b6)](),_0x29cc9b=this['_entities'][_0x284e49(0x1d5)](_0x5c208f);_0x29cc9b==null||_0x29cc9b['dispose']();});}async['_startLiveShareCoordinator'](_0x2088a6){var _0x48002f=_0x38ea04;const _0x4b5ac4=await this[_0x48002f(0x148)]['requireSession'](_0x2088a6),_0xd42e96=this[_0x48002f(0x1c8)][_0x48002f(0x1f4)](_0x2e0303[_0x48002f(0x16e)],_0x2088a6,_0x4b5ac4);return _0xd42e96[_0x48002f(0x1f7)](),this[_0x48002f(0x14f)][_0x48002f(0x153)](_0x2088a6,_0xd42e96),_0xd42e96;}},_0x2e0303[_0x38ea04(0x1a6)]=_0x22ef8a([_0x424375(0x0,_0x42d3cb[_0x38ea04(0x1bb)]),_0x424375(0x1,_0x42d3cb['Inject'](_0x42d3cb['Injector'])),_0x424375(0x2,_0x42d3cb[_0x38ea04(0x170)](_0x21fb35[_0x38ea04(0x1fb)]))],_0x2e0303[_0x38ea04(0x1a6)]);var _0x4d4d44=(_0x542a38=>(_0x542a38[_0x38ea04(0x1e5)]='offline',_0x542a38[_0x38ea04(0x1d1)]='idle',_0x542a38[_0x38ea04(0x116)]='following',_0x542a38[_0x38ea04(0x202)]=_0x38ea04(0x1da),_0x542a38['PRESENTING']=_0x38ea04(0x165),_0x542a38))(_0x4d4d44||{});const _0x34d5de='SAME_OPERATION_SHARE_INTERVAL',_0x55f21c=0xc8;_0x2e0303[_0x38ea04(0x16e)]=class extends _0x42d3cb[_0x38ea04(0x1ef)]{constructor(_0x44c888,_0x32f55a,_0x4cffac,_0x3e8c88,_0x295b30){var _0x27bc3d=_0x38ea04;super(),_0x183ce4(this,_0x27bc3d(0x1fc),new _0x18e5fa[(_0x27bc3d(0x14c))](_0x27bc3d(0x1bf))),_0x183ce4(this,'status$',this[_0x27bc3d(0x1fc)][_0x27bc3d(0x1f1)]()),_0x183ce4(this,_0x27bc3d(0x1cf),!0x1),_0x183ce4(this,'_commandDisposable',null),_0x183ce4(this,_0x27bc3d(0x189),null),(this[_0x27bc3d(0x12f)]=_0x44c888,this[_0x27bc3d(0x12e)]=_0x32f55a,this['_configService']=_0x4cffac,this['_liveShareService']=_0x3e8c88,this[_0x27bc3d(0x1b3)]=_0x295b30);}get[_0x38ea04(0x141)](){var _0x2dea38=_0x38ea04;return this['_status$'][_0x2dea38(0x1ed)]();}[_0x38ea04(0x197)](){var _0x1a3a04=_0x38ea04,_0x56b79a;(_0x56b79a=this[_0x1a3a04(0x1b8)])==null||_0x56b79a[_0x1a3a04(0x197)](),this[_0x1a3a04(0x1fc)][_0x1a3a04(0x11c)](_0x1a3a04(0x1bf)),this[_0x1a3a04(0x1fc)]['complete']();}[_0x38ea04(0x1f7)](){var _0x5ccb2c=_0x38ea04;this[_0x5ccb2c(0x1cf)]||(this[_0x5ccb2c(0x1cf)]=!0x0,this[_0x5ccb2c(0x12e)][_0x5ccb2c(0x1f9)][_0x5ccb2c(0x186)](_0x59f70e['takeUntil'](this[_0x5ccb2c(0x11d)]))[_0x5ccb2c(0x206)](_0x1ca1a1=>{var _0x3ad85a=_0x5ccb2c;switch(_0x1ca1a1){case _0x21fb35[_0x3ad85a(0x159)][_0x3ad85a(0x1e5)]:this['_handleOffline']();break;case _0x21fb35['SessionStatus'][_0x3ad85a(0x1cc)]:this[_0x3ad85a(0x160)]();break;}}),this[_0x5ccb2c(0x12e)][_0x5ccb2c(0x16d)][_0x5ccb2c(0x186)](_0x59f70e['takeUntil'](this[_0x5ccb2c(0x11d)]))['subscribe'](_0x2103c8=>{var _0x445a1c=_0x5ccb2c;const {eventID:_0x147a53}=_0x2103c8;switch(_0x147a53){case _0x50232c[_0x445a1c(0x123)][_0x445a1c(0x1c3)]:this[_0x445a1c(0x20d)](_0x2103c8);break;case _0x50232c[_0x445a1c(0x123)][_0x445a1c(0x132)]:this[_0x445a1c(0x18b)](_0x2103c8);break;case _0x50232c[_0x445a1c(0x123)][_0x445a1c(0x135)]:this[_0x445a1c(0x196)]();break;case _0x50232c[_0x445a1c(0x123)][_0x445a1c(0x17f)]:this[_0x445a1c(0x200)](_0x2103c8);break;}}));}[_0x38ea04(0x19e)](){var _0x4d804d=_0x38ea04;this[_0x4d804d(0x12e)]['send']({'eventID':_0x50232c[_0x4d804d(0x123)][_0x4d804d(0x1b0)],'data':{'unitID':this[_0x4d804d(0x12f)],'userID':this[_0x4d804d(0x12e)]['getMemberID']()}},this[_0x4d804d(0x12f)]);}[_0x38ea04(0x1aa)](){var _0x5b8ea7=_0x38ea04;this['_status']==='presenting'&&(this[_0x5b8ea7(0x1fc)]['next'](_0x5b8ea7(0x1bf)),this[_0x5b8ea7(0x12e)][_0x5b8ea7(0x1e3)]({'eventID':_0x50232c[_0x5b8ea7(0x123)][_0x5b8ea7(0x135)],'data':{'unitID':this[_0x5b8ea7(0x12f)]}},this['_unitID']));}[_0x38ea04(0x11a)](){var _0x5e4ce9=_0x38ea04;this[_0x5e4ce9(0x141)]==='not-following'&&(this[_0x5e4ce9(0x1fc)][_0x5e4ce9(0x11c)](_0x5e4ce9(0x1ce)),this[_0x5e4ce9(0x199)]());}[_0x38ea04(0x188)](){var _0x547e86=_0x38ea04;this['_status']===_0x547e86(0x1ce)&&this[_0x547e86(0x187)]();}[_0x38ea04(0x20d)](_0x496b8d){var _0x3d20ef=_0x38ea04;const {presenter:_0x38b017}=_0x496b8d['data'],_0xbd78f5=this[_0x3d20ef(0x12e)][_0x3d20ef(0x1bd)]();this[_0x3d20ef(0x189)]=_0x38b017,_0x38b017===_0xbd78f5?(this[_0x3d20ef(0x187)](),this[_0x3d20ef(0x201)]()):this[_0x3d20ef(0x141)]!==_0x3d20ef(0x1da)&&(this[_0x3d20ef(0x136)](),this['_startFollowing']());}[_0x38ea04(0x20e)](){var _0x4c499e=_0x38ea04;const _0x5b562b={'eventID':_0x50232c[_0x4c499e(0x123)][_0x4c499e(0x1e9)]};this[_0x4c499e(0x12e)][_0x4c499e(0x1e3)](_0x5b562b,this[_0x4c499e(0x12f)]);}['_handleTerminate'](){var _0x35f472=_0x38ea04;this[_0x35f472(0x189)]=null,this[_0x35f472(0x141)]!==_0x35f472(0x165)&&this[_0x35f472(0x18e)]();}[_0x38ea04(0x200)](_0x5289f2){var _0x95ede9=_0x38ea04;if(this['_status']==='following'&&this['_presenter']===_0x5289f2[_0x95ede9(0x19c)]['memberID']){const _0x158622=_0x50232c['parseProtocolChangeset'](_0x5289f2['data'])[_0x95ede9(0x1e1)][_0x95ede9(0x209)]()[_0x95ede9(0x172)](_0x4b79fe=>_0x4b79fe['id']===_0x3ba85f[_0x95ede9(0x150)]['id']);if(_0x158622){const _0xb02d9=_0x158622[_0x95ede9(0x16c)][_0x95ede9(0x14a)],_0x3718ca=_0x158622[_0x95ede9(0x16c)][_0x95ede9(0x1a5)]['id'];setTimeout(()=>{var _0x587a78=_0x95ede9;this[_0x587a78(0x1b3)][_0x587a78(0x1be)](_0x3ba85f[_0x587a78(0x1a0)]['id'],{'unitId':_0xb02d9,'subUnitId':_0x3718ca},{'fromCollab':!0x0});});}}}[_0x38ea04(0x201)](){var _0x2788c7=_0x38ea04;this[_0x2788c7(0x1fc)][_0x2788c7(0x11c)](_0x2788c7(0x165));const _0x141357=new Map(),_0x2d27e4=this[_0x2788c7(0x1b8)]=new _0x42d3cb[(_0x2788c7(0x1ae))]();_0x2d27e4[_0x2788c7(0x1af)](_0x42d3cb[_0x2788c7(0x171)](()=>{var _0x27fe70=_0x2788c7;_0x141357[_0x27fe70(0x1d7)](_0x74600=>_0x74600[_0x27fe70(0x17e)]()),_0x141357['clear']();})),_0x2d27e4[_0x2788c7(0x1af)](this[_0x2788c7(0x1b3)][_0x2788c7(0x138)](_0x4a3577=>{var _0x3e039c=_0x2788c7,_0x12452a;if(_0x4a3577['type']!==_0x42d3cb[_0x3e039c(0x146)][_0x3e039c(0x121)]||!this[_0x3e039c(0x1ad)][_0x3e039c(0x1fd)](_0x4a3577['id']))return;const {id:_0x26005f}=_0x4a3577;let _0x3e7d75;_0x141357[_0x3e039c(0x140)](_0x26005f)?_0x3e7d75=_0x141357['get'](_0x26005f):(_0x3e7d75=new _0x18e5fa[(_0x3e039c(0x178))](),_0x141357['set'](_0x26005f,_0x3e7d75),_0x3e7d75[_0x3e039c(0x186)](_0x59f70e['throttleTime']((_0x12452a=this['_configService']['getConfig'](_0x34d5de))!=null?_0x12452a:_0x55f21c,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3e039c(0x206)](_0x54c367=>{var _0x304e4d=_0x3e039c;this[_0x304e4d(0x12e)][_0x304e4d(0x1e3)]({'eventID':_0x50232c[_0x304e4d(0x123)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x304e4d(0x12f)],'operations':{[_0x54c367['id']]:{'id':_0x54c367['id'],'params':JSON[_0x304e4d(0x180)](_0x54c367[_0x304e4d(0x16c)])}}}},this[_0x304e4d(0x12f)]);})),_0x3e7d75[_0x3e039c(0x11c)](_0x4a3577);})),this[_0x2788c7(0x1ad)]['getInitialStates'](this[_0x2788c7(0x12f)])[_0x2788c7(0x1d7)](_0x5f43cb=>this[_0x2788c7(0x12e)][_0x2788c7(0x1e3)]({'eventID':_0x50232c['CollaborationEvent'][_0x2788c7(0x132)],'data':{'unitID':this[_0x2788c7(0x12f)],'operations':{[_0x5f43cb['id']]:{'id':_0x5f43cb['id'],'params':JSON['stringify'](_0x5f43cb[_0x2788c7(0x16c)])}}}},this[_0x2788c7(0x12f)]));}['_stopPresenting'](){var _0x5c83fe=_0x38ea04,_0x32394d;this[_0x5c83fe(0x1fc)][_0x5c83fe(0x11c)](_0x5c83fe(0x1bf)),(_0x32394d=this[_0x5c83fe(0x1b8)])==null||_0x32394d[_0x5c83fe(0x197)](),this['_commandDisposable']=null;}['_startFollowing'](){var _0x14163b=_0x38ea04,_0x54ea9d;(_0x54ea9d=this[_0x14163b(0x1b8)])==null||_0x54ea9d[_0x14163b(0x197)](),this[_0x14163b(0x1fc)][_0x14163b(0x11c)](_0x14163b(0x1ce));}[_0x38ea04(0x18e)](){var _0x3ae579=_0x38ea04,_0x5a274e;this['_status$']['next']('idle'),(_0x5a274e=this['_commandDisposable'])==null||_0x5a274e[_0x3ae579(0x197)](),this[_0x3ae579(0x1b8)]=null;}['_stopFollowing'](){var _0x2fbddf=_0x38ea04,_0x1facca;this[_0x2fbddf(0x1fc)]['next'](_0x2fbddf(0x1da)),(_0x1facca=this['_commandDisposable'])==null||_0x1facca[_0x2fbddf(0x197)]();}['_handleOperation'](_0x49fc7c){var _0x3029ec=_0x38ea04;if(['presenting',_0x3029ec(0x1da),_0x3029ec(0x1d0)][_0x3029ec(0x12d)](this[_0x3029ec(0x141)])||!_0x49fc7c['data'][_0x3029ec(0x18c)]||_0x49fc7c[_0x3029ec(0x19c)][_0x3029ec(0x18c)]===this[_0x3029ec(0x12e)][_0x3029ec(0x1bd)]())return;this[_0x3029ec(0x141)]===_0x3029ec(0x1bf)&&this['_startFollowing']();const _0x12c896=_0x49fc7c[_0x3029ec(0x19c)][_0x3029ec(0x130)];Object[_0x3029ec(0x1d9)](_0x12c896)[_0x3029ec(0x1d7)](_0x51ebe4=>{var _0x3fb6ad=_0x3029ec;this[_0x3fb6ad(0x1b3)]['executeCommand'](_0x51ebe4['id'],_0x51ebe4[_0x3fb6ad(0x16c)]?JSON[_0x3fb6ad(0x18d)](_0x51ebe4[_0x3fb6ad(0x16c)]):null,{'fromCollab':!0x0});});}[_0x38ea04(0x1fa)](){var _0x3f1172=_0x38ea04,_0x2f323f;this[_0x3f1172(0x1fc)][_0x3f1172(0x11c)](_0x3f1172(0x1d0)),(_0x2f323f=this[_0x3f1172(0x1b8)])==null||_0x2f323f['dispose']();}[_0x38ea04(0x160)](){var _0x4e5b00=_0x38ea04;this['_status$'][_0x4e5b00(0x11c)](_0x4e5b00(0x1bf)),this[_0x4e5b00(0x20e)]();}},_0x2e0303[_0x38ea04(0x16e)]=_0x22ef8a([_0x424375(0x2,_0x42d3cb[_0x38ea04(0x15a)]),_0x424375(0x3,_0x42d3cb['Inject'](_0x4f7ebf)),_0x424375(0x4,_0x42d3cb[_0x38ea04(0x118)])],_0x2e0303[_0x38ea04(0x16e)]);function _0xba3f59(){var _0x22d833=_0x38ea04;const _0x32ed40=_0x5a3d51['useDependency'](_0x2e0303[_0x22d833(0x1a6)]),_0x4c9589=_0x5a3d51['useDependency'](_0x42d3cb[_0x22d833(0x1bb)]),_0x519d84=_0x5a3d51[_0x22d833(0x1dd)](()=>_0x4c9589[_0x22d833(0x15e)](_0x42d3cb[_0x22d833(0x167)][_0x22d833(0x12c)]),void 0x0,!0x1,[]),[_0x4f1319,_0x43da37]=_0x1a6b8c[_0x22d833(0x125)](null),[_0xc3b6a1,_0x2ac05b]=_0x1a6b8c[_0x22d833(0x125)](_0x4d4d44[_0x22d833(0x1d1)]),_0xccaa9f=_0x1a6b8c[_0x22d833(0x1eb)](null);return _0x1a6b8c['useEffect'](()=>(_0x519d84&&_0x32ed40[_0x22d833(0x205)](_0x519d84['getUnitId']())[_0x22d833(0x15d)](_0x20cafb=>{var _0x4f5520=_0x22d833;_0x43da37(_0x20cafb),_0xccaa9f[_0x4f5520(0x13d)]=_0x20cafb[_0x4f5520(0x134)][_0x4f5520(0x206)](_0x310f5b=>{_0x2ac05b(_0x310f5b);});}),()=>{var _0x48e689=_0x22d833,_0x228ecc;(_0x228ecc=_0xccaa9f[_0x48e689(0x13d)])==null||_0x228ecc[_0x48e689(0x1c6)](),_0xccaa9f[_0x48e689(0x13d)]=null;}),[_0x519d84,_0x32ed40]),_0x4f1319?_0x3d0e35[_0x22d833(0x1e6)](_0x494086['Dropdown'],{'align':_0x22d833(0x177),'disabled':_0xc3b6a1===_0x4d4d44[_0x22d833(0x1e5)],'className':_0x22d833(0x133),'overlay':_0x3d0e35['jsx'](_0x51afed,{'status':_0xc3b6a1,'coordinator':_0x4f1319}),'children':_0x3d0e35[_0x22d833(0x1e6)](_0x22d833(0x1a9),{'className':_0x494086[_0x22d833(0x20a)](_0x22d833(0x185),{'univer-cursor-not-allowed':_0xc3b6a1===_0x4d4d44[_0x22d833(0x1e5)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xc3b6a1!==_0x4d4d44['OFFLINE']}),'type':_0x22d833(0x1a9),'children':_0x3d0e35[_0x22d833(0x1e6)](_0x2ce6b9,{'className':_0x22d833(0x168)})})}):null;}function _0x51afed(_0x7f3c51){var _0x3e12bd=_0x38ea04;const {status:_0x3a3651,coordinator:_0x57546d}=_0x7f3c51;switch(_0x3a3651){case _0x4d4d44['IDLE']:return _0x3d0e35[_0x3e12bd(0x1e6)](_0x50cba2,{'coordinator':_0x57546d});case _0x4d4d44[_0x3e12bd(0x116)]:return _0x3d0e35[_0x3e12bd(0x1e6)](_0x29bf63,{'coordinator':_0x57546d});case _0x4d4d44[_0x3e12bd(0x202)]:return _0x3d0e35[_0x3e12bd(0x1e6)](_0x1fa55d,{'coordinator':_0x57546d});case _0x4d4d44[_0x3e12bd(0x1e5)]:return _0x3d0e35[_0x3e12bd(0x1e6)](_0x3c4a9d,{});case _0x4d4d44[_0x3e12bd(0x1ea)]:return _0x3d0e35['jsx'](_0x20486f,{'coordinator':_0x57546d});default:return null;}}function _0x50cba2(_0x5c751b){var _0x5b8515=_0x38ea04;const {coordinator:_0x34450d}=_0x5c751b;return _0x3d0e35['jsxs'](_0x3d0e35[_0x5b8515(0x16a)],{'children':[_0x3d0e35[_0x5b8515(0x1e6)](_0x5b8515(0x1f6),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5b8515(0x1db)}),_0x3d0e35[_0x5b8515(0x1e6)](_0x494086[_0x5b8515(0x1f5)],{'onClick':()=>_0x34450d[_0x5b8515(0x19e)](),'children':_0x5b8515(0x147)})]});}function _0x29bf63(_0x334fd){var _0x324c17=_0x38ea04;const {coordinator:_0x17edfa}=_0x334fd;return _0x3d0e35[_0x324c17(0x1f2)](_0x3d0e35[_0x324c17(0x16a)],{'children':[_0x3d0e35[_0x324c17(0x1e6)]('div',{'className':_0x324c17(0x131),'children':_0x324c17(0x1ff)}),_0x3d0e35['jsx'](_0x494086[_0x324c17(0x1f5)],{'onClick':()=>_0x17edfa['stopFollowing'](),'children':_0x324c17(0x149)})]});}function _0x1fa55d(_0x547b6f){var _0x141673=_0x38ea04;const {coordinator:_0x16c0dc}=_0x547b6f;return _0x3d0e35[_0x141673(0x1f2)](_0x3d0e35['Fragment'],{'children':[_0x3d0e35[_0x141673(0x1e6)](_0x141673(0x1f6),{'className':_0x141673(0x131),'children':_0x141673(0x122)}),_0x3d0e35[_0x141673(0x1e6)](_0x494086[_0x141673(0x1f5)],{'variant':_0x141673(0x1e7),'onClick':()=>_0x16c0dc[_0x141673(0x11a)](),'children':'Start\x20following'})]});}function _0x20486f(_0x129347){var _0x15141d=_0x38ea04;const {coordinator:_0x2bdf65}=_0x129347;return _0x3d0e35[_0x15141d(0x1f2)](_0x3d0e35[_0x15141d(0x16a)],{'children':[_0x3d0e35['jsx'](_0x15141d(0x1f6),{'className':_0x15141d(0x131),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x3d0e35[_0x15141d(0x1e6)](_0x494086['Button'],{'variant':_0x15141d(0x183),'onClick':()=>_0x2bdf65['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x3c4a9d(){var _0x4c1315=_0x38ea04;return _0x3d0e35['jsx'](_0x3d0e35[_0x4c1315(0x16a)],{'children':'You\x27are\x20offline.'});}var _0x17fa93=Object[_0x38ea04(0x1d6)],_0x4b6636=(_0x49fc7a,_0x357695,_0x301d4a,_0x51187c)=>{var _0x1c8e3a=_0x38ea04;for(var _0x4c9360=_0x51187c>0x1?void 0x0:_0x51187c?_0x17fa93(_0x357695,_0x301d4a):_0x357695,_0x35217e=_0x49fc7a[_0x1c8e3a(0x161)]-0x1,_0x25d696;_0x35217e>=0x0;_0x35217e--)(_0x25d696=_0x49fc7a[_0x35217e])&&(_0x4c9360=_0x25d696(_0x4c9360)||_0x4c9360);return _0x4c9360;},_0x46ab77=(_0x157c23,_0x43399e)=>(_0x14f459,_0x15fd55)=>_0x43399e(_0x14f459,_0x15fd55,_0x157c23);_0x2e0303[_0x38ea04(0x179)]=class extends _0x42d3cb[_0x38ea04(0x1dc)]{constructor(_0x5782eb,_0x25e7fc){var _0x13a9e8=_0x38ea04;super(),this[_0x13a9e8(0x1c8)]=_0x5782eb,this[_0x13a9e8(0x163)]=_0x25e7fc,this[_0x13a9e8(0x142)]();}['_mountLiveShare'](){var _0x58b03b=_0x38ea04;this['disposeWithMe'](this[_0x58b03b(0x163)][_0x58b03b(0x184)](_0x5a3d51[_0x58b03b(0x1c5)][_0x58b03b(0x15c)],()=>_0x5a3d51[_0x58b03b(0x14b)](_0xba3f59,this[_0x58b03b(0x1c8)])));}},_0x2e0303[_0x38ea04(0x179)]=_0x4b6636([_0x46ab77(0x0,_0x42d3cb[_0x38ea04(0x170)](_0x42d3cb['Injector'])),_0x46ab77(0x1,_0x5a3d51['IUIPartsService'])],_0x2e0303[_0x38ea04(0x179)]);var _0x1debd9=Object[_0x38ea04(0x11b)],_0x5ce3df=Object[_0x38ea04(0x1d6)],_0x2afa49=(_0x32901c,_0x574d51,_0x25bbbb)=>_0x574d51 in _0x32901c?_0x1debd9(_0x32901c,_0x574d51,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x25bbbb}):_0x32901c[_0x574d51]=_0x25bbbb,_0x1cf70c=(_0x2af4f4,_0x4f2dda,_0x199d7e,_0x4909f3)=>{var _0x31dc4c=_0x38ea04;for(var _0x32750a=_0x4909f3>0x1?void 0x0:_0x4909f3?_0x5ce3df(_0x4f2dda,_0x199d7e):_0x4f2dda,_0x27f2f8=_0x2af4f4[_0x31dc4c(0x161)]-0x1,_0xbd7132;_0x27f2f8>=0x0;_0x27f2f8--)(_0xbd7132=_0x2af4f4[_0x27f2f8])&&(_0x32750a=_0xbd7132(_0x32750a)||_0x32750a);return _0x32750a;},_0x18914c=(_0x5a1397,_0x12f2fc)=>(_0x3039a,_0x7deb43)=>_0x12f2fc(_0x3039a,_0x7deb43,_0x5a1397),_0x354ff2=(_0x4bdb4f,_0x579175,_0x39d90c)=>_0x2afa49(_0x4bdb4f,typeof _0x579175!=_0x38ea04(0x128)?_0x579175+'':_0x579175,_0x39d90c);const _0x2ef22a=_0x38ea04(0x1d3);_0x2e0303[_0x38ea04(0x1df)]=class extends _0x42d3cb[_0x38ea04(0x164)]{constructor(_0x5e6c76=_0x1e85bb,_0x287d60,_0x363a1a){var _0x2c93ce=_0x38ea04;super(),this[_0x2c93ce(0x158)]=_0x5e6c76,this[_0x2c93ce(0x1c8)]=_0x287d60,this[_0x2c93ce(0x1ca)]=_0x363a1a;const {..._0x22fe98}=_0x42d3cb[_0x2c93ce(0x144)]({},_0x1e85bb,this['_config']);this[_0x2c93ce(0x1ca)]['setConfig'](_0x4cb5d5,_0x22fe98);}['onStarting'](){var _0x2d6b27=_0x38ea04;_0x42d3cb[_0x2d6b27(0x115)](this['_injector'],_0x42d3cb[_0x2d6b27(0x1a4)]([[_0x4f7ebf],[_0x2e0303[_0x2d6b27(0x1a6)]],[_0xb8f5d0],[_0x2e0303[_0x2d6b27(0x179)]]],this['_config'][_0x2d6b27(0x15f)])),_0x42d3cb[_0x2d6b27(0x1e4)](this[_0x2d6b27(0x1c8)],[[_0xb8f5d0]]);}[_0x38ea04(0x19b)](){var _0x5696da=_0x38ea04;_0x42d3cb[_0x5696da(0x1e4)](this[_0x5696da(0x1c8)],[[_0x2e0303['DesktopLiveShareController']]]);}},_0x354ff2(_0x2e0303[_0x38ea04(0x1df)],_0x38ea04(0x12a),_0x42d3cb[_0x38ea04(0x167)][_0x38ea04(0x181)]),_0x354ff2(_0x2e0303['UniverLiveSharePlugin'],_0x38ea04(0x1e2),_0x2ef22a),_0x2e0303[_0x38ea04(0x1df)]=_0x1cf70c([_0x42d3cb[_0x38ea04(0x1cb)](_0x21fb35['UniverCollaborationClientPlugin']),_0x18914c(0x1,_0x42d3cb[_0x38ea04(0x170)](_0x42d3cb[_0x38ea04(0x13c)])),_0x18914c(0x2,_0x42d3cb[_0x38ea04(0x15a)])],_0x2e0303[_0x38ea04(0x1df)]),_0x2e0303['LiveShare']=_0xba3f59,_0x2e0303[_0x38ea04(0x1c1)]=_0x4f7ebf,_0x2e0303[_0x38ea04(0x1b9)]=_0x4d4d44,Object['defineProperty'](_0x2e0303,Symbol[_0x38ea04(0x19f)],{'value':_0x38ea04(0x137)});}));function _0x5752(){var _0x2e9f23=['10944fTfqSS','button','stopPresenting','colorChannel1','19477PBaBxZ','_liveShareService','DisposableCollection','add','LIVESHARE_REQUEST_HOST','propertyIsEnumerable','_univerInstanceService','_commandService','@univerjs/core','UniverProCollaborationClient','getUnitId','function','_commandDisposable','LiveShareStatus','none','IUniverInstanceService','getOwnPropertySymbols','getMemberID','executeCommand','idle','fill','LiveShareService','children','LIVESHARE_NEW_HOST','2463954YrbDhw','BuiltInUIPart','unsubscribe','58tsbGPo','_injector','@univerjs/sheets-ui','_configService','DependentOn','ONLINE','react','following','_init','offline','IDLE','registerSharedOperation','UNIVER_LIVE_SHARE_PLUGIN','SetZoomRatioOperation','get','getOwnPropertyDescriptor','forEach','live-share.config','values','not-following','Present\x20this\x20document','Disposable','useObservable','amd','UniverLiveSharePlugin','_sharedOperations','mutations','pluginName','send','touchDependencies','OFFLINE','jsx','text','use','LIVESHARE_FETCH_OPERATIONS','PRESENTING','useRef','currentColor','getValue','live-share-single','RxDisposable','operators','asObservable','jsxs','svg','createInstance','Button','div','init','substring','sessionStatus$','_handleOffline','CollaborationSessionService','_status$','shouldShareOperation','7TXXXEC','You\x27re\x20following\x20the\x20presenter','_handleNewChangeSets','_startPresenting','NOT_FOLLOWING','attrs','55128cNChpb','getLiveShareCoordinator','subscribe','UniverSheets','concat','reverse','clsx','replace','forwardRef','_handleNewHost','_fetchOperations','registerDependencies','FOLLOWING','@univerjs/design','ICommandService','prototype','startFollowing','defineProperty','next','dispose$','call','@univerjs-pro/collaboration','SetScrollOperation','OPERATION','You\x27re\x20not\x20following\x20the\x20presenter','CollaborationEvent','delete','useState','string','UniverCore','symbol','getInitialStates','type','tag','UNIVER_SHEET','includes','_collabSession','_unitID','operations','univer-w-full\x20univer-mb-3\x20univer-text-sm','LIVESHARE_OPERATION','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','status$','LIVESHARE_TERMINATE','_stopPresenting','Module','onCommandExecuted','2392248WtQjxg','idSuffix','rxjs','Injector','current','@univerjs-pro/collaboration-client','getTypeOfUnitDisposed$','has','_status','_mountLiveShare','assign','merge','mask','CommandType','Start','_collabSessionService','Stop\x20following','unitId','connectInjector','BehaviorSubject','object','UniverProLiveShare','_entities','InsertSheetMutation','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','@univerjs/ui','set','React','getTypeOfUnitAdded$','9108341TVEGRi','10hSxLgD','_config','SessionStatus','IConfigService','0\x200\x2016\x2016','HEADER_MENU','then','getCurrentTypeOfUnit$','override','_handleOnline','length','exports','_uiPartsService','Plugin','presenting','1em','UniverInstanceType','univer-size-4','xlink:href','Fragment','hasOwnProperty','params','event$','LiveShareCoordinator','takeUntil','Inject','toDisposable','find','apply','UniverProCollaboration','1450dZMpaN','159DIQhCM','end','Subject','DesktopLiveShareController','indexOf','react/jsx-runtime','univerjs-icon\x20univerjs-icon-','12sgTsnk','complete','NEW_CHANGESETS','stringify','UNIVER_UNKNOWN','_reporters','default','registerComponent','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','pipe','_stopFollowing','stopFollowing','_presenter','UniverSheetsUi','_handleOperation','presenter','parse','_beIdle','UniverIcon','defIds','rxjs/operators','16419455VVbEdu','map','displayName','className','_handleTerminate','dispose','registerInitialStateReporter','_startFollowing','from','onRendered','data','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','tryStartPresenting','toStringTag','SetWorksheetActiveOperation','trim','icon','extend','mergeOverrideWithDependencies','sheet','LiveShareController','@univerjs/sheets'];_0x5752=function(){return _0x2e9f23;};return _0x5752();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.7.0-nightly.
|
|
3
|
+
"version": "0.7.0-nightly.202505211607",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^0.3.24",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.7.0-nightly.
|
|
51
|
-
"@univerjs/
|
|
52
|
-
"@univerjs-pro/collaboration-client": "0.7.0-nightly.
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs/sheets-ui": "0.7.0-nightly.
|
|
56
|
-
"@univerjs/ui": "0.7.0-nightly.
|
|
50
|
+
"@univerjs-pro/collaboration": "0.7.0-nightly.202505211607",
|
|
51
|
+
"@univerjs/core": "0.7.0-nightly.202505211607",
|
|
52
|
+
"@univerjs-pro/collaboration-client": "0.7.0-nightly.202505211607",
|
|
53
|
+
"@univerjs/design": "0.7.0-nightly.202505211607",
|
|
54
|
+
"@univerjs/sheets": "0.7.0-nightly.202505211607",
|
|
55
|
+
"@univerjs/sheets-ui": "0.7.0-nightly.202505211607",
|
|
56
|
+
"@univerjs/ui": "0.7.0-nightly.202505211607"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.3",
|