@univerjs-pro/live-share 0.8.0-nightly.202506051607 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x6ca0ca=_0x4f32;function _0x4a15(){var _0x48a38f=['LiveShareService','live-share-icon','UNIVER_SHEET','_unitID','_presenter','operations','_uiPartsService','@univerjs/sheets','live-share.config','IDLE','Start\x20following','toDisposable','random','LIVESHARE_NEW_HOST','current','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','stopFollowing','presenter','pipe','div','_univerInstanceService','getMemberID','presenting','currentColor','UNIVER_UNKNOWN','use','assign','Inject','LiveShareStatus','3837069HudekF','LiveShare','_entities','getValue','mergeOverrideWithDependencies','univerjs-icon\x20univerjs-icon-','throttleTime','jsxs','attrs','4122783LxgYPh','DependentOn','colorChannel1','@univerjs-pro/collaboration','executeCommand','_stopPresenting','offline','createInstance','defIds','getLiveShareCoordinator','rxjs','ICommandService','DisposableCollection','defs','_configService','setConfig','getOwnPropertySymbols','memberID','unsubscribe','_handleOffline','includes','takeUntil','NEW_CHANGESETS','event$','InsertSheetMutation','_sharedOperations','_status$','getCurrentTypeOfUnit$','PRESENTING','entries','@univerjs/design','rxjs/operators','idle','merge','displayName','You\x27re\x20following\x20the\x20presenter','className','Fragment','then','_collabSession','send','LiveShareController','function','CollaborationEvent','extend','36059337mEbtwm','LIVESHARE_REQUEST_HOST','dispose$','defineProperty','call','values','_mountLiveShare','registerSharedOperation','not-following','1em','apply','IConfigService','concat','RxDisposable','none','useRef','_collabSessionService','_handleOnline','prototype','onCommandExecuted','getConfig','_commandDisposable','SetWorksheetActiveOperation','useState','SessionStatus','_handleNewChangeSets','pluginName','forwardRef','getInitialStates','Subject','add','jsx','useObservable','stringify','IUIPartsService','registerInitialStateReporter','status$','140hGFDMv','stopPresenting','FOLLOWING','_commandService','override','react/jsx-runtime','sheet','evenodd','_startFollowing','forEach','disposeWithMe','LIVESHARE_OPERATION','button','url(#$1','NOT_FOLLOWING','UniverInstanceType','path','idSuffix','propertyIsEnumerable','svg','from','parseProtocolChangeset','has','registerComponent','trim','univer-size-4','Button','2734414figbVn','getOwnPropertyDescriptor','Plugin','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','Dropdown','replace','LIVESHARE_TERMINATE','univer-w-full\x20univer-mb-3\x20univer-text-sm','string','SetScrollOperation','You\x27are\x20offline.','2258550TluUaC','@univerjs/sheets-ui','http://www.w3.org/2000/svg','_reporters','You\x27re\x20presenting\x20the\x20document','next','tryStartPresenting','tag','mutations','_config','_startPresenting','params','mask','_liveShareService','length','init','complete','sessionStatus$','UniverLiveSharePlugin','_stopFollowing','map','hasOwnProperty','toStringTag','data','LiveShareCoordinator','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','_injector','OFFLINE','BuiltInUIPart','xlink:href','requireSession','following','useEffect','23545dOsPKq','CollaborationSessionService','_handleOperation','_startLiveShareCoordinator','getUnitId','end','createElement','fill','1oIUruv','Start','OPERATION','1136360QiiBmo','icon','_beIdle','useDependency','@univerjs-pro/collaboration-client','symbol','indexOf','shouldShareOperation','startFollowing','find','@univerjs/core','_handleTerminate','Injector','subscribe','text','IUniverInstanceService','asObservable','dispose','clear','_status','getTypeOfUnitAdded$','_init','touchDependencies','children','Disposable','type','delete','substring','registerDependencies','onRendered','get','DesktopLiveShareController','@univerjs/ui'];_0x4a15=function(){return _0x48a38f;};return _0x4a15();}(function(_0x1b6fce,_0x9c1356){var _0x17e709=_0x4f32,_0x27d85a=_0x1b6fce();while(!![]){try{var _0xa7dd64=parseInt(_0x17e709(0x252))/0x1*(-parseInt(_0x17e709(0x21e))/0x2)+-parseInt(_0x17e709(0x293))/0x3+-parseInt(_0x17e709(0x203))/0x4*(-parseInt(_0x17e709(0x24a))/0x5)+-parseInt(_0x17e709(0x229))/0x6+-parseInt(_0x17e709(0x29c))/0x7+parseInt(_0x17e709(0x255))/0x8+parseInt(_0x17e709(0x2c9))/0x9;if(_0xa7dd64===_0x9c1356)break;else _0x27d85a['push'](_0x27d85a['shift']());}catch(_0x5d87ee){_0x27d85a['push'](_0x27d85a['shift']());}}}(_0x4a15,0xab585));var U=Object[_0x6ca0ca(0x2cc)],F=(_0x26c785,_0x27e04b,_0x3ed163)=>_0x27e04b in _0x26c785?U(_0x26c785,_0x27e04b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ed163}):_0x26c785[_0x27e04b]=_0x3ed163,v=(_0x184b6f,_0x37a8d8,_0x39bdae)=>F(_0x184b6f,typeof _0x37a8d8!=_0x6ca0ca(0x25a)?_0x37a8d8+'':_0x37a8d8,_0x39bdae);Object[_0x6ca0ca(0x2cc)](exports,Symbol[_0x6ca0ca(0x23f)],{'value':'Module'});const m=require(_0x6ca0ca(0x259)),o=require(_0x6ca0ca(0x25f)),C=require(_0x6ca0ca(0x27d)),w=require(_0x6ca0ca(0x22a)),p=require(_0x6ca0ca(0x275)),l=require(_0x6ca0ca(0x208)),g=require(_0x6ca0ca(0x2ba)),f=require('react'),_=require(_0x6ca0ca(0x29f)),D=require(_0x6ca0ca(0x2a6)),b=require(_0x6ca0ca(0x2bb)),$=_0x6ca0ca(0x27e),x={};class O extends o[_0x6ca0ca(0x26d)]{constructor(){var _0xecbd7a=_0x6ca0ca;super(...arguments),v(this,'_sharedOperations',new Set()),v(this,_0xecbd7a(0x22c),new Set());}[_0x6ca0ca(0x2d0)](_0x2f7494){var _0x2e18be=_0x6ca0ca;return this[_0x2e18be(0x2b5)][_0x2e18be(0x1fc)](_0x2f7494),o[_0x2e18be(0x281)](()=>this[_0x2e18be(0x2b5)][_0x2e18be(0x26f)](_0x2f7494));}[_0x6ca0ca(0x201)](_0x5d13ed){var _0x4cafb0=_0x6ca0ca;return this[_0x4cafb0(0x22c)][_0x4cafb0(0x1fc)](_0x5d13ed),o[_0x4cafb0(0x281)](()=>this[_0x4cafb0(0x22c)]['delete'](_0x5d13ed));}['shouldShareOperation'](_0x13ced1){var _0x57d469=_0x6ca0ca;return this[_0x57d469(0x2b5)][_0x57d469(0x219)](_0x13ced1);}[_0x6ca0ca(0x1fa)](_0x50e9c4){var _0x4c5004=_0x6ca0ca;return Array[_0x4c5004(0x217)](this[_0x4c5004(0x22c)])[_0x4c5004(0x23d)](_0x1e97a5=>_0x1e97a5(_0x50e9c4));}}var H=Object[_0x6ca0ca(0x21f)],V=(_0x2cbe1a,_0x1295d2,_0x5b1a85,_0x1c7a5e)=>{var _0xa4a6b7=_0x6ca0ca;for(var _0x438c5a=_0x1c7a5e>0x1?void 0x0:_0x1c7a5e?H(_0x1295d2,_0x5b1a85):_0x1295d2,_0x3c6080=_0x2cbe1a[_0xa4a6b7(0x237)]-0x1,_0x158a28;_0x3c6080>=0x0;_0x3c6080--)(_0x158a28=_0x2cbe1a[_0x3c6080])&&(_0x438c5a=_0x158a28(_0x438c5a)||_0x438c5a);return _0x438c5a;},k=(_0x5ad781,_0x26a55e)=>(_0x6da76e,_0x4fa191)=>_0x26a55e(_0x6da76e,_0x4fa191,_0x5ad781);let E=class extends o['Disposable']{constructor(_0x360865){var _0xce3572=_0x6ca0ca;super(),this[_0xce3572(0x236)]=_0x360865,this[_0xce3572(0x26a)]();}[_0x6ca0ca(0x26a)](){var _0x215756=_0x6ca0ca;[w['SetZoomRatioOperation']['id'],w[_0x215756(0x227)]['id'],C[_0x215756(0x1f4)]['id']][_0x215756(0x20c)](_0x59c5bf=>{var _0x59035=_0x215756;this[_0x59035(0x20d)](this[_0x59035(0x236)][_0x59035(0x2d0)](_0x59c5bf));});}};E=V([k(0x0,o[_0x6ca0ca(0x291)](O))],E);var u=function(){var _0x13c189=_0x6ca0ca;return u=Object[_0x13c189(0x290)]||function(_0x49fe5b){var _0x224ba3=_0x13c189;for(var _0x5ecb91,_0x19a746=0x1,_0x1ea504=arguments[_0x224ba3(0x237)];_0x19a746<_0x1ea504;_0x19a746++){_0x5ecb91=arguments[_0x19a746];for(var _0x5e6179 in _0x5ecb91)Object['prototype']['hasOwnProperty'][_0x224ba3(0x2cd)](_0x5ecb91,_0x5e6179)&&(_0x49fe5b[_0x5e6179]=_0x5ecb91[_0x5e6179]);}return _0x49fe5b;},u[_0x13c189(0x1e8)](this,arguments);},M=function(_0x314695,_0x41ed1b){var _0x57eefb=_0x6ca0ca,_0x538a22={};for(var _0x325835 in _0x314695)Object['prototype'][_0x57eefb(0x23e)]['call'](_0x314695,_0x325835)&&_0x41ed1b[_0x57eefb(0x25b)](_0x325835)<0x0&&(_0x538a22[_0x325835]=_0x314695[_0x325835]);if(_0x314695!=null&&typeof Object[_0x57eefb(0x2ac)]==_0x57eefb(0x2c6)){for(var _0x54bf8e=0x0,_0x325835=Object[_0x57eefb(0x2ac)](_0x314695);_0x54bf8e<_0x325835[_0x57eefb(0x237)];_0x54bf8e++)_0x41ed1b[_0x57eefb(0x25b)](_0x325835[_0x54bf8e])<0x0&&Object[_0x57eefb(0x1f0)][_0x57eefb(0x215)][_0x57eefb(0x2cd)](_0x314695,_0x325835[_0x54bf8e])&&(_0x538a22[_0x325835[_0x54bf8e]]=_0x314695[_0x325835[_0x54bf8e]]);}return _0x538a22;},j=f[_0x6ca0ca(0x1f9)](function(_0x45804d,_0x2e1ab2){var _0x29aca3=_0x6ca0ca,_0x271146=_0x45804d[_0x29aca3(0x256)],_0xfbf464=_0x45804d['id'],_0x9d7dc=_0x45804d[_0x29aca3(0x2c0)],_0x34fd6b=_0x45804d[_0x29aca3(0x2c8)],_0x5b5afe=M(_0x45804d,[_0x29aca3(0x256),'id',_0x29aca3(0x2c0),_0x29aca3(0x2c8)]),_0x41c11b=_0x29aca3(0x298)[_0x29aca3(0x1ea)](_0xfbf464,'\x20')[_0x29aca3(0x1ea)](_0x9d7dc||'')[_0x29aca3(0x21b)](),_0x58e06c=f[_0x29aca3(0x1ed)]('_'['concat'](G()));return y(_0x271146,''[_0x29aca3(0x1ea)](_0xfbf464),{'defIds':_0x271146[_0x29aca3(0x2a4)],'idSuffix':_0x58e06c[_0x29aca3(0x284)]},u({'ref':_0x2e1ab2,'className':_0x41c11b},_0x5b5afe),_0x34fd6b);});function y(_0x463348,_0x230e86,_0x230c08,_0x4269cb,_0x31292c){var _0x558688=_0x6ca0ca;return f[_0x558688(0x250)](_0x463348[_0x558688(0x230)],u(u({'key':_0x230e86},q(_0x463348,_0x230c08,_0x31292c)),_0x4269cb),(W(_0x463348,_0x230c08)['children']||[])['map'](function(_0x536c38,_0xf1ac23){var _0x13349a=_0x558688;return y(_0x536c38,''[_0x13349a(0x1ea)](_0x230e86,'-')[_0x13349a(0x1ea)](_0x463348['tag'],'-')['concat'](_0xf1ac23),_0x230c08,void 0x0,_0x31292c);}));}function _0x4f32(_0x1ed967,_0x176a57){var _0x4a15d8=_0x4a15();return _0x4f32=function(_0x4f3267,_0x1ee19d){_0x4f3267=_0x4f3267-0x1e8;var _0x535246=_0x4a15d8[_0x4f3267];return _0x535246;},_0x4f32(_0x1ed967,_0x176a57);}function q(_0x5ab4f2,_0x5b94ef,_0x53eaee){var _0x3733c4=_0x6ca0ca,_0x1eec30=u({},_0x5ab4f2[_0x3733c4(0x29b)]);_0x53eaee!=null&&_0x53eaee[_0x3733c4(0x29e)]&&_0x1eec30['fill']==='colorChannel1'&&(_0x1eec30[_0x3733c4(0x251)]=_0x53eaee[_0x3733c4(0x29e)]),_0x5ab4f2[_0x3733c4(0x230)]==='mask'&&_0x1eec30['id']&&(_0x1eec30['id']=_0x1eec30['id']+_0x5b94ef[_0x3733c4(0x214)]),Object['entries'](_0x1eec30)[_0x3733c4(0x20c)](function(_0x2275e6){var _0x56f232=_0x3733c4,_0x4b2594=_0x2275e6[0x0],_0x15c97d=_0x2275e6[0x1];_0x4b2594===_0x56f232(0x235)&&typeof _0x15c97d==_0x56f232(0x226)&&(_0x1eec30[_0x4b2594]=_0x15c97d[_0x56f232(0x223)](/url\(#(.*)\)/,_0x56f232(0x210)[_0x56f232(0x1ea)](_0x5b94ef['idSuffix'],')')));});var _0x31b838=_0x5b94ef[_0x3733c4(0x2a4)];return!_0x31b838||_0x31b838[_0x3733c4(0x237)]===0x0||(_0x5ab4f2[_0x3733c4(0x230)]===_0x3733c4(0x28f)&&_0x1eec30[_0x3733c4(0x246)]&&(_0x1eec30[_0x3733c4(0x246)]=_0x1eec30[_0x3733c4(0x246)]+_0x5b94ef[_0x3733c4(0x214)]),Object[_0x3733c4(0x2b9)](_0x1eec30)['forEach'](function(_0xfb06fc){var _0x33edd5=_0x3733c4,_0x2f8091=_0xfb06fc[0x0],_0x9f1d7c=_0xfb06fc[0x1];typeof _0x9f1d7c==_0x33edd5(0x226)&&(_0x1eec30[_0x2f8091]=_0x9f1d7c[_0x33edd5(0x223)](/url\(#(.*)\)/,_0x33edd5(0x210)[_0x33edd5(0x1ea)](_0x5b94ef[_0x33edd5(0x214)],')')));})),_0x1eec30;}function W(_0xc07d9d,_0x116d3c){var _0xd76f27=_0x6ca0ca,_0x3c670e,_0x26d1d5=_0x116d3c['defIds'];return!_0x26d1d5||_0x26d1d5[_0xd76f27(0x237)]===0x0?_0xc07d9d:_0xc07d9d[_0xd76f27(0x230)]===_0xd76f27(0x2a9)&&(!((_0x3c670e=_0xc07d9d['children'])===null||_0x3c670e===void 0x0)&&_0x3c670e[_0xd76f27(0x237)])?u(u({},_0xc07d9d),{'children':_0xc07d9d[_0xd76f27(0x26c)]['map'](function(_0x5edd44){var _0x35d7ca=_0xd76f27;return typeof _0x5edd44[_0x35d7ca(0x29b)]['id']==_0x35d7ca(0x226)&&_0x26d1d5&&_0x26d1d5[_0x35d7ca(0x2b0)](_0x5edd44['attrs']['id'])?u(u({},_0x5edd44),{'attrs':u(u({},_0x5edd44[_0x35d7ca(0x29b)]),{'id':_0x5edd44['attrs']['id']+_0x116d3c[_0x35d7ca(0x214)]})}):_0x5edd44;})}):_0xc07d9d;}function G(){var _0x53e339=_0x6ca0ca;return Math[_0x53e339(0x282)]()['toString'](0x24)[_0x53e339(0x270)](0x2,0x8);}j[_0x6ca0ca(0x2be)]='UniverIcon';var B={'tag':_0x6ca0ca(0x216),'attrs':{'xmlns':_0x6ca0ca(0x22b),'fill':_0x6ca0ca(0x1ec),'viewBox':'0\x200\x2017\x2017','width':_0x6ca0ca(0x2d2),'height':_0x6ca0ca(0x2d2)},'children':[{'tag':_0x6ca0ca(0x213),'attrs':{'fill':_0x6ca0ca(0x28d),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x6ca0ca(0x213),'attrs':{'fill':_0x6ca0ca(0x28d),'d':_0x6ca0ca(0x285),'fillRule':_0x6ca0ca(0x20a),'clipRule':_0x6ca0ca(0x20a)}}]},P=f['forwardRef'](function(_0x50fd38,_0x48aea8){var _0x4ada89=_0x6ca0ca;return f[_0x4ada89(0x250)](j,Object['assign']({},_0x50fd38,{'id':_0x4ada89(0x277),'ref':_0x48aea8,'icon':B}));});P[_0x6ca0ca(0x2be)]='LiveShareIcon';var Y=Object[_0x6ca0ca(0x21f)],R=(_0x46788e,_0x57dc68,_0x5573d5,_0x384a0d)=>{var _0x4abc35=_0x6ca0ca;for(var _0x5d58c5=_0x384a0d>0x1?void 0x0:_0x384a0d?Y(_0x57dc68,_0x5573d5):_0x57dc68,_0x5dc68b=_0x46788e[_0x4abc35(0x237)]-0x1,_0x46d917;_0x5dc68b>=0x0;_0x5dc68b--)(_0x46d917=_0x46788e[_0x5dc68b])&&(_0x5d58c5=_0x46d917(_0x5d58c5)||_0x5d58c5);return _0x5d58c5;},S=(_0x84a10a,_0x1fe15a)=>(_0x43bf12,_0x54780e)=>_0x1fe15a(_0x43bf12,_0x54780e,_0x84a10a);exports['LiveShareController']=class extends o[_0x6ca0ca(0x1eb)]{constructor(_0x2cce5b,_0x1e879b,_0x19ed3f){var _0x411e57=_0x6ca0ca;super(),v(this,_0x411e57(0x295),new Map()),(this[_0x411e57(0x28a)]=_0x2cce5b,this[_0x411e57(0x243)]=_0x1e879b,this[_0x411e57(0x1ee)]=_0x19ed3f,this['_init']());}async['getLiveShareCoordinator'](_0x46a5de){var _0x34d0ae=_0x6ca0ca;return this[_0x34d0ae(0x295)][_0x34d0ae(0x219)](_0x46a5de)||await this['_startLiveShareCoordinator'](_0x46a5de),this[_0x34d0ae(0x295)][_0x34d0ae(0x273)](_0x46a5de);}['_init'](){var _0xcae107=_0x6ca0ca;this[_0xcae107(0x28a)][_0xcae107(0x269)](o[_0xcae107(0x212)][_0xcae107(0x278)])[_0xcae107(0x288)](b['takeUntil'](this['dispose$']))[_0xcae107(0x262)](async _0xabe91e=>{var _0x7e5496=_0xcae107;const _0x54243d=_0xabe91e['getUnitId']();this[_0x7e5496(0x295)][_0x7e5496(0x219)](_0x54243d)||this[_0x7e5496(0x24d)](_0x54243d);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](o['UniverInstanceType']['UNIVER_SHEET'])[_0xcae107(0x288)](b['takeUntil'](this[_0xcae107(0x2cb)]))[_0xcae107(0x262)](_0x2f7d28=>{var _0x56b528=_0xcae107;const _0x5b9d2e=_0x2f7d28[_0x56b528(0x24e)](),_0x46cc18=this[_0x56b528(0x295)][_0x56b528(0x273)](_0x5b9d2e);_0x46cc18==null||_0x46cc18['dispose']();});}async['_startLiveShareCoordinator'](_0x33ed8c){var _0x20524b=_0x6ca0ca;const _0x444772=await this[_0x20524b(0x1ee)][_0x20524b(0x247)](_0x33ed8c),_0x223ff1=this[_0x20524b(0x243)][_0x20524b(0x2a3)](exports['LiveShareCoordinator'],_0x33ed8c,_0x444772);return _0x223ff1['init'](),this[_0x20524b(0x295)]['set'](_0x33ed8c,_0x223ff1),_0x223ff1;}},exports[_0x6ca0ca(0x2c5)]=R([S(0x0,o[_0x6ca0ca(0x264)]),S(0x1,o['Inject'](o[_0x6ca0ca(0x261)])),S(0x2,o[_0x6ca0ca(0x291)](m[_0x6ca0ca(0x24b)]))],exports[_0x6ca0ca(0x2c5)]);var h=(_0x41684a=>(_0x41684a[_0x6ca0ca(0x244)]='offline',_0x41684a['IDLE']='idle',_0x41684a[_0x6ca0ca(0x205)]=_0x6ca0ca(0x248),_0x41684a[_0x6ca0ca(0x211)]=_0x6ca0ca(0x2d1),_0x41684a[_0x6ca0ca(0x2b8)]=_0x6ca0ca(0x28c),_0x41684a))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports[_0x6ca0ca(0x241)]=class extends o[_0x6ca0ca(0x1eb)]{constructor(_0x1622be,_0x557697,_0x16f282,_0x1130bb,_0x43e9f0){var _0x5f1b79=_0x6ca0ca;super(),v(this,'_status$',new D['BehaviorSubject'](_0x5f1b79(0x2bc))),v(this,'status$',this[_0x5f1b79(0x2b6)][_0x5f1b79(0x265)]()),v(this,_0x5f1b79(0x26a),!0x1),v(this,'_commandDisposable',null),v(this,_0x5f1b79(0x27a),null),(this['_unitID']=_0x1622be,this[_0x5f1b79(0x2c3)]=_0x557697,this[_0x5f1b79(0x2aa)]=_0x16f282,this[_0x5f1b79(0x236)]=_0x1130bb,this['_commandService']=_0x43e9f0);}get[_0x6ca0ca(0x268)](){var _0x3cde8f=_0x6ca0ca;return this['_status$'][_0x3cde8f(0x296)]();}[_0x6ca0ca(0x266)](){var _0xb973bf=_0x6ca0ca,_0x48e80c;(_0x48e80c=this[_0xb973bf(0x1f3)])==null||_0x48e80c['dispose'](),this[_0xb973bf(0x2b6)][_0xb973bf(0x22e)](_0xb973bf(0x2bc)),this[_0xb973bf(0x2b6)][_0xb973bf(0x239)]();}[_0x6ca0ca(0x238)](){var _0x1e9b6d=_0x6ca0ca;this[_0x1e9b6d(0x26a)]||(this[_0x1e9b6d(0x26a)]=!0x0,this[_0x1e9b6d(0x2c3)][_0x1e9b6d(0x23a)]['pipe'](b[_0x1e9b6d(0x2b1)](this[_0x1e9b6d(0x2cb)]))['subscribe'](_0x349d3a=>{var _0x348dd6=_0x1e9b6d;switch(_0x349d3a){case m[_0x348dd6(0x1f6)][_0x348dd6(0x244)]:this[_0x348dd6(0x2af)]();break;case m[_0x348dd6(0x1f6)]['ONLINE']:this[_0x348dd6(0x1ef)]();break;}}),this[_0x1e9b6d(0x2c3)][_0x1e9b6d(0x2b3)][_0x1e9b6d(0x288)](b[_0x1e9b6d(0x2b1)](this[_0x1e9b6d(0x2cb)]))['subscribe'](_0x24a616=>{var _0x58cfec=_0x1e9b6d;const {eventID:_0x4c98fd}=_0x24a616;switch(_0x4c98fd){case _[_0x58cfec(0x2c7)][_0x58cfec(0x283)]:this['_handleNewHost'](_0x24a616);break;case _['CollaborationEvent'][_0x58cfec(0x20e)]:this['_handleOperation'](_0x24a616);break;case _[_0x58cfec(0x2c7)][_0x58cfec(0x224)]:this[_0x58cfec(0x260)]();break;case _[_0x58cfec(0x2c7)][_0x58cfec(0x2b2)]:this[_0x58cfec(0x1f7)](_0x24a616);break;}}));}[_0x6ca0ca(0x22f)](){var _0x59bb12=_0x6ca0ca;this[_0x59bb12(0x2c3)][_0x59bb12(0x2c4)]({'eventID':_[_0x59bb12(0x2c7)][_0x59bb12(0x2ca)],'data':{'unitID':this[_0x59bb12(0x279)],'userID':this['_collabSession'][_0x59bb12(0x28b)]()}},this[_0x59bb12(0x279)]);}[_0x6ca0ca(0x204)](){var _0x309e32=_0x6ca0ca;this[_0x309e32(0x268)]==='presenting'&&(this[_0x309e32(0x2b6)][_0x309e32(0x22e)](_0x309e32(0x2bc)),this[_0x309e32(0x2c3)][_0x309e32(0x2c4)]({'eventID':_['CollaborationEvent'][_0x309e32(0x224)],'data':{'unitID':this[_0x309e32(0x279)]}},this[_0x309e32(0x279)]));}[_0x6ca0ca(0x25d)](){var _0x46e626=_0x6ca0ca;this[_0x46e626(0x268)]===_0x46e626(0x2d1)&&(this['_status$']['next'](_0x46e626(0x248)),this[_0x46e626(0x20b)]());}[_0x6ca0ca(0x286)](){var _0x4941dc=_0x6ca0ca;this[_0x4941dc(0x268)]===_0x4941dc(0x248)&&this[_0x4941dc(0x23c)]();}['_handleNewHost'](_0x22c82c){var _0x51c9f4=_0x6ca0ca;const {presenter:_0x264054}=_0x22c82c[_0x51c9f4(0x240)],_0x59c7cb=this[_0x51c9f4(0x2c3)][_0x51c9f4(0x28b)]();this[_0x51c9f4(0x27a)]=_0x264054,_0x264054===_0x59c7cb?(this[_0x51c9f4(0x23c)](),this[_0x51c9f4(0x233)]()):this[_0x51c9f4(0x268)]!=='not-following'&&(this[_0x51c9f4(0x2a1)](),this[_0x51c9f4(0x20b)]());}['_fetchOperations'](){var _0x73bc3d=_0x6ca0ca;const _0x56d72e={'eventID':_[_0x73bc3d(0x2c7)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x73bc3d(0x2c3)][_0x73bc3d(0x2c4)](_0x56d72e,this[_0x73bc3d(0x279)]);}[_0x6ca0ca(0x260)](){var _0x49ef62=_0x6ca0ca;this[_0x49ef62(0x27a)]=null,this[_0x49ef62(0x268)]!==_0x49ef62(0x28c)&&this[_0x49ef62(0x257)]();}[_0x6ca0ca(0x1f7)](_0x14a5a5){var _0x4e6d29=_0x6ca0ca;if(this[_0x4e6d29(0x268)]===_0x4e6d29(0x248)&&this[_0x4e6d29(0x27a)]===_0x14a5a5[_0x4e6d29(0x240)][_0x4e6d29(0x2ad)]){const _0x1d4205=_[_0x4e6d29(0x218)](_0x14a5a5[_0x4e6d29(0x240)])[_0x4e6d29(0x231)]['reverse']()[_0x4e6d29(0x25e)](_0x2fc0a6=>_0x2fc0a6['id']===C[_0x4e6d29(0x2b4)]['id']);if(_0x1d4205){const _0x3652ad=_0x1d4205[_0x4e6d29(0x234)]['unitId'],_0x41ed90=_0x1d4205[_0x4e6d29(0x234)][_0x4e6d29(0x209)]['id'];setTimeout(()=>{var _0x5e949f=_0x4e6d29;this[_0x5e949f(0x206)][_0x5e949f(0x2a0)](C[_0x5e949f(0x1f4)]['id'],{'unitId':_0x3652ad,'subUnitId':_0x41ed90},{'fromCollab':!0x0});});}}}[_0x6ca0ca(0x233)](){var _0x57aed3=_0x6ca0ca;this[_0x57aed3(0x2b6)][_0x57aed3(0x22e)](_0x57aed3(0x28c));const _0x2a4780=new Map(),_0x6cec0f=this['_commandDisposable']=new o[(_0x57aed3(0x2a8))]();_0x6cec0f['add'](o[_0x57aed3(0x281)](()=>{var _0x20b7bc=_0x57aed3;_0x2a4780[_0x20b7bc(0x20c)](_0x152393=>_0x152393['complete']()),_0x2a4780[_0x20b7bc(0x267)]();})),_0x6cec0f[_0x57aed3(0x1fc)](this[_0x57aed3(0x206)][_0x57aed3(0x1f1)](_0x2a9d77=>{var _0x34bbd2=_0x57aed3,_0x16a059;if(_0x2a9d77[_0x34bbd2(0x26e)]!==o['CommandType'][_0x34bbd2(0x254)]||!this[_0x34bbd2(0x236)][_0x34bbd2(0x25c)](_0x2a9d77['id']))return;const {id:_0xaf6f2b}=_0x2a9d77;let _0x9da4ff;_0x2a4780[_0x34bbd2(0x219)](_0xaf6f2b)?_0x9da4ff=_0x2a4780[_0x34bbd2(0x273)](_0xaf6f2b):(_0x9da4ff=new D[(_0x34bbd2(0x1fb))](),_0x2a4780['set'](_0xaf6f2b,_0x9da4ff),_0x9da4ff[_0x34bbd2(0x288)](b[_0x34bbd2(0x299)]((_0x16a059=this[_0x34bbd2(0x2aa)][_0x34bbd2(0x1f2)](Z))!=null?_0x16a059:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x34bbd2(0x262)](_0x5e45de=>{var _0x46efaa=_0x34bbd2;this[_0x46efaa(0x2c3)]['send']({'eventID':_[_0x46efaa(0x2c7)][_0x46efaa(0x20e)],'data':{'unitID':this[_0x46efaa(0x279)],'operations':{[_0x5e45de['id']]:{'id':_0x5e45de['id'],'params':JSON[_0x46efaa(0x1ff)](_0x5e45de[_0x46efaa(0x234)])}}}},this[_0x46efaa(0x279)]);})),_0x9da4ff[_0x34bbd2(0x22e)](_0x2a9d77);})),this['_liveShareService'][_0x57aed3(0x1fa)](this[_0x57aed3(0x279)])[_0x57aed3(0x20c)](_0x30a876=>this[_0x57aed3(0x2c3)][_0x57aed3(0x2c4)]({'eventID':_[_0x57aed3(0x2c7)][_0x57aed3(0x20e)],'data':{'unitID':this[_0x57aed3(0x279)],'operations':{[_0x30a876['id']]:{'id':_0x30a876['id'],'params':JSON[_0x57aed3(0x1ff)](_0x30a876['params'])}}}},this[_0x57aed3(0x279)]));}[_0x6ca0ca(0x2a1)](){var _0x3e5294=_0x6ca0ca,_0x421313;this[_0x3e5294(0x2b6)][_0x3e5294(0x22e)](_0x3e5294(0x2bc)),(_0x421313=this[_0x3e5294(0x1f3)])==null||_0x421313[_0x3e5294(0x266)](),this[_0x3e5294(0x1f3)]=null;}[_0x6ca0ca(0x20b)](){var _0x2b7174=_0x6ca0ca,_0x422146;(_0x422146=this[_0x2b7174(0x1f3)])==null||_0x422146[_0x2b7174(0x266)](),this['_status$'][_0x2b7174(0x22e)](_0x2b7174(0x248));}['_beIdle'](){var _0x23d05e=_0x6ca0ca,_0x21e744;this[_0x23d05e(0x2b6)][_0x23d05e(0x22e)]('idle'),(_0x21e744=this['_commandDisposable'])==null||_0x21e744[_0x23d05e(0x266)](),this[_0x23d05e(0x1f3)]=null;}[_0x6ca0ca(0x23c)](){var _0x537aa8=_0x6ca0ca,_0x4520f1;this[_0x537aa8(0x2b6)][_0x537aa8(0x22e)](_0x537aa8(0x2d1)),(_0x4520f1=this[_0x537aa8(0x1f3)])==null||_0x4520f1['dispose']();}[_0x6ca0ca(0x24c)](_0x49f34d){var _0x4d85a2=_0x6ca0ca;if([_0x4d85a2(0x28c),_0x4d85a2(0x2d1),_0x4d85a2(0x2a2)][_0x4d85a2(0x2b0)](this[_0x4d85a2(0x268)])||!_0x49f34d[_0x4d85a2(0x240)]['presenter']||_0x49f34d[_0x4d85a2(0x240)][_0x4d85a2(0x287)]===this[_0x4d85a2(0x2c3)][_0x4d85a2(0x28b)]())return;this[_0x4d85a2(0x268)]===_0x4d85a2(0x2bc)&&this[_0x4d85a2(0x20b)]();const _0x5a9dd2=_0x49f34d[_0x4d85a2(0x240)][_0x4d85a2(0x27b)];Object[_0x4d85a2(0x2ce)](_0x5a9dd2)[_0x4d85a2(0x20c)](_0x585138=>{var _0x3fd5e=_0x4d85a2;this['_commandService'][_0x3fd5e(0x2a0)](_0x585138['id'],_0x585138['params']?JSON['parse'](_0x585138[_0x3fd5e(0x234)]):null,{'fromCollab':!0x0});});}[_0x6ca0ca(0x2af)](){var _0x31ec18=_0x6ca0ca,_0x4164fb;this[_0x31ec18(0x2b6)][_0x31ec18(0x22e)](_0x31ec18(0x2a2)),(_0x4164fb=this['_commandDisposable'])==null||_0x4164fb[_0x31ec18(0x266)]();}[_0x6ca0ca(0x1ef)](){var _0x7fe6c0=_0x6ca0ca;this['_status$']['next'](_0x7fe6c0(0x2bc)),this['_fetchOperations']();}},exports[_0x6ca0ca(0x241)]=R([S(0x2,o['IConfigService']),S(0x3,o[_0x6ca0ca(0x291)](O)),S(0x4,o[_0x6ca0ca(0x2a7)])],exports['LiveShareCoordinator']);function A(){var _0xe4cbf8=_0x6ca0ca;const _0x270447=p[_0xe4cbf8(0x258)](exports['LiveShareController']),_0x3b1ed9=p[_0xe4cbf8(0x258)](o[_0xe4cbf8(0x264)]),_0x16cdc6=p[_0xe4cbf8(0x1fe)](()=>_0x3b1ed9[_0xe4cbf8(0x2b7)](o[_0xe4cbf8(0x212)][_0xe4cbf8(0x278)]),void 0x0,!0x1,[]),[_0x20ccd9,_0xc49d53]=f[_0xe4cbf8(0x1f5)](null),[_0x381d0c,_0x25fc39]=f['useState'](h[_0xe4cbf8(0x27f)]),_0x475895=f[_0xe4cbf8(0x1ed)](null);return f[_0xe4cbf8(0x249)](()=>(_0x16cdc6&&_0x270447[_0xe4cbf8(0x2a5)](_0x16cdc6[_0xe4cbf8(0x24e)]())[_0xe4cbf8(0x2c2)](_0x44ee51=>{var _0x271cb7=_0xe4cbf8;_0xc49d53(_0x44ee51),_0x475895['current']=_0x44ee51[_0x271cb7(0x202)][_0x271cb7(0x262)](_0xc0849e=>{_0x25fc39(_0xc0849e);});}),()=>{var _0x55fe7f=_0xe4cbf8,_0x272509;(_0x272509=_0x475895['current'])==null||_0x272509[_0x55fe7f(0x2ae)](),_0x475895[_0x55fe7f(0x284)]=null;}),[_0x16cdc6,_0x270447]),_0x20ccd9?l[_0xe4cbf8(0x1fd)](g[_0xe4cbf8(0x222)],{'align':_0xe4cbf8(0x24f),'disabled':_0x381d0c===h[_0xe4cbf8(0x244)],'className':_0xe4cbf8(0x221),'overlay':l[_0xe4cbf8(0x1fd)](K,{'status':_0x381d0c,'coordinator':_0x20ccd9}),'children':l[_0xe4cbf8(0x1fd)](_0xe4cbf8(0x20f),{'className':g['clsx'](_0xe4cbf8(0x242),{'univer-cursor-not-allowed':_0x381d0c===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x381d0c!==h[_0xe4cbf8(0x244)]}),'type':_0xe4cbf8(0x20f),'children':l['jsx'](P,{'className':_0xe4cbf8(0x21c)})})}):null;}function K(_0x54551b){var _0x3058fc=_0x6ca0ca;const {status:_0x3039a5,coordinator:_0x4fa164}=_0x54551b;switch(_0x3039a5){case h['IDLE']:return l['jsx'](z,{'coordinator':_0x4fa164});case h[_0x3058fc(0x205)]:return l[_0x3058fc(0x1fd)](Q,{'coordinator':_0x4fa164});case h['NOT_FOLLOWING']:return l[_0x3058fc(0x1fd)](X,{'coordinator':_0x4fa164});case h['OFFLINE']:return l[_0x3058fc(0x1fd)](te,{});case h['PRESENTING']:return l[_0x3058fc(0x1fd)](ee,{'coordinator':_0x4fa164});default:return null;}}function z(_0x426c43){var _0x315a9e=_0x6ca0ca;const {coordinator:_0x15c592}=_0x426c43;return l[_0x315a9e(0x29a)](l[_0x315a9e(0x2c1)],{'children':[l[_0x315a9e(0x1fd)](_0x315a9e(0x289),{'className':_0x315a9e(0x225),'children':'Present\x20this\x20document'}),l[_0x315a9e(0x1fd)](g[_0x315a9e(0x21d)],{'onClick':()=>_0x15c592['tryStartPresenting'](),'children':_0x315a9e(0x253)})]});}function Q(_0x10cf0c){var _0x37f6fa=_0x6ca0ca;const {coordinator:_0x23b7c8}=_0x10cf0c;return l[_0x37f6fa(0x29a)](l[_0x37f6fa(0x2c1)],{'children':[l[_0x37f6fa(0x1fd)](_0x37f6fa(0x289),{'className':_0x37f6fa(0x225),'children':_0x37f6fa(0x2bf)}),l['jsx'](g['Button'],{'onClick':()=>_0x23b7c8[_0x37f6fa(0x286)](),'children':'Stop\x20following'})]});}function X(_0x4c73e7){var _0x1f8187=_0x6ca0ca;const {coordinator:_0x215c76}=_0x4c73e7;return l[_0x1f8187(0x29a)](l[_0x1f8187(0x2c1)],{'children':[l['jsx']('div',{'className':_0x1f8187(0x225),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x1f8187(0x1fd)](g[_0x1f8187(0x21d)],{'variant':_0x1f8187(0x263),'onClick':()=>_0x215c76[_0x1f8187(0x25d)](),'children':_0x1f8187(0x280)})]});}function ee(_0x38289c){var _0x57ca31=_0x6ca0ca;const {coordinator:_0x2e60b8}=_0x38289c;return l[_0x57ca31(0x29a)](l[_0x57ca31(0x2c1)],{'children':[l[_0x57ca31(0x1fd)]('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x57ca31(0x22d)}),l[_0x57ca31(0x1fd)](g[_0x57ca31(0x21d)],{'variant':'default','onClick':()=>_0x2e60b8[_0x57ca31(0x204)](),'children':'Stop\x20presenting'})]});}function te(){var _0xeeb5f1=_0x6ca0ca;return l[_0xeeb5f1(0x1fd)](l[_0xeeb5f1(0x2c1)],{'children':_0xeeb5f1(0x228)});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x300ab6,_0x29752e,_0xf660f1,_0x2d1304)=>{var _0x156721=_0x6ca0ca;for(var _0x387668=_0x2d1304>0x1?void 0x0:_0x2d1304?ie(_0x29752e,_0xf660f1):_0x29752e,_0x568764=_0x300ab6[_0x156721(0x237)]-0x1,_0x3bd79;_0x568764>=0x0;_0x568764--)(_0x3bd79=_0x300ab6[_0x568764])&&(_0x387668=_0x3bd79(_0x387668)||_0x387668);return _0x387668;},L=(_0xadd3d7,_0x4039a2)=>(_0x2d60c5,_0x48698d)=>_0x4039a2(_0x2d60c5,_0x48698d,_0xadd3d7);exports['DesktopLiveShareController']=class extends o[_0x6ca0ca(0x26d)]{constructor(_0x177fde,_0x178998){var _0x338bf0=_0x6ca0ca;super(),this[_0x338bf0(0x243)]=_0x177fde,this[_0x338bf0(0x27c)]=_0x178998,this[_0x338bf0(0x2cf)]();}[_0x6ca0ca(0x2cf)](){var _0x276e4c=_0x6ca0ca;this[_0x276e4c(0x20d)](this[_0x276e4c(0x27c)][_0x276e4c(0x21a)](p[_0x276e4c(0x245)]['HEADER_MENU'],()=>p['connectInjector'](A,this[_0x276e4c(0x243)])));}},exports[_0x6ca0ca(0x274)]=ne([L(0x0,o[_0x6ca0ca(0x291)](o[_0x6ca0ca(0x261)])),L(0x1,p[_0x6ca0ca(0x200)])],exports['DesktopLiveShareController']);var re=Object[_0x6ca0ca(0x2cc)],se=Object[_0x6ca0ca(0x21f)],oe=(_0x1fb18e,_0x508368,_0xcf5348)=>_0x508368 in _0x1fb18e?re(_0x1fb18e,_0x508368,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xcf5348}):_0x1fb18e[_0x508368]=_0xcf5348,ae=(_0x5736f4,_0x4a70fa,_0x4da2d1,_0x41a54f)=>{var _0x248f19=_0x6ca0ca;for(var _0x357a03=_0x41a54f>0x1?void 0x0:_0x41a54f?se(_0x4a70fa,_0x4da2d1):_0x4a70fa,_0x562196=_0x5736f4[_0x248f19(0x237)]-0x1,_0x5f1a1c;_0x562196>=0x0;_0x562196--)(_0x5f1a1c=_0x5736f4[_0x562196])&&(_0x357a03=_0x5f1a1c(_0x357a03)||_0x357a03);return _0x357a03;},N=(_0x161ae1,_0x4f2128)=>(_0x1b2aa5,_0x10dc6f)=>_0x4f2128(_0x1b2aa5,_0x10dc6f,_0x161ae1),T=(_0x25d0bb,_0x816f5e,_0x3248b1)=>oe(_0x25d0bb,typeof _0x816f5e!='symbol'?_0x816f5e+'':_0x816f5e,_0x3248b1);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x6ca0ca(0x23b)]=class extends o[_0x6ca0ca(0x220)]{constructor(_0x39d263=x,_0x3ea010,_0x5ced0b){var _0x582187=_0x6ca0ca;super(),this['_config']=_0x39d263,this[_0x582187(0x243)]=_0x3ea010,this[_0x582187(0x2aa)]=_0x5ced0b;const {..._0xa83949}=o[_0x582187(0x2bd)]({},x,this['_config']);this[_0x582187(0x2aa)][_0x582187(0x2ab)]($,_0xa83949);}['onStarting'](){var _0x491469=_0x6ca0ca;o[_0x491469(0x271)](this['_injector'],o[_0x491469(0x297)]([[O],[exports[_0x491469(0x2c5)]],[E],[exports[_0x491469(0x274)]]],this[_0x491469(0x232)][_0x491469(0x207)])),o[_0x491469(0x26b)](this[_0x491469(0x243)],[[E]]);}[_0x6ca0ca(0x272)](){var _0xcef2f4=_0x6ca0ca;o[_0xcef2f4(0x26b)](this[_0xcef2f4(0x243)],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x6ca0ca(0x23b)],_0x6ca0ca(0x26e),o['UniverInstanceType'][_0x6ca0ca(0x28e)]),T(exports[_0x6ca0ca(0x23b)],_0x6ca0ca(0x1f8),le),exports[_0x6ca0ca(0x23b)]=ae([o[_0x6ca0ca(0x29d)](m['UniverCollaborationClientPlugin']),N(0x1,o['Inject'](o[_0x6ca0ca(0x261)])),N(0x2,o[_0x6ca0ca(0x1e9)])],exports['UniverLiveSharePlugin']),exports[_0x6ca0ca(0x294)]=A,exports[_0x6ca0ca(0x276)]=O,exports[_0x6ca0ca(0x292)]=h;
|
|
1
|
+
'use strict';var _0xb39da1=_0x52a9;(function(_0x3f99cd,_0x2b93ac){var _0x4bcd7f=_0x52a9,_0x22677e=_0x3f99cd();while(!![]){try{var _0x4854c0=-parseInt(_0x4bcd7f(0x1e3))/0x1*(-parseInt(_0x4bcd7f(0x22b))/0x2)+parseInt(_0x4bcd7f(0x203))/0x3*(-parseInt(_0x4bcd7f(0x1f6))/0x4)+parseInt(_0x4bcd7f(0x222))/0x5+parseInt(_0x4bcd7f(0x1dc))/0x6*(parseInt(_0x4bcd7f(0x19a))/0x7)+parseInt(_0x4bcd7f(0x234))/0x8*(parseInt(_0x4bcd7f(0x194))/0x9)+parseInt(_0x4bcd7f(0x25b))/0xa*(parseInt(_0x4bcd7f(0x25a))/0xb)+-parseInt(_0x4bcd7f(0x1cc))/0xc;if(_0x4854c0===_0x2b93ac)break;else _0x22677e['push'](_0x22677e['shift']());}catch(_0x36b310){_0x22677e['push'](_0x22677e['shift']());}}}(_0xf609,0x1dcd3));var U=Object[_0xb39da1(0x23e)],F=(_0x4fe75e,_0x4b1a39,_0x48ef63)=>_0x4b1a39 in _0x4fe75e?U(_0x4fe75e,_0x4b1a39,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48ef63}):_0x4fe75e[_0x4b1a39]=_0x48ef63,v=(_0x238fd0,_0x17a53b,_0xaac03f)=>F(_0x238fd0,typeof _0x17a53b!=_0xb39da1(0x24b)?_0x17a53b+'':_0x17a53b,_0xaac03f);Object[_0xb39da1(0x23e)](exports,Symbol['toStringTag'],{'value':_0xb39da1(0x1bd)});const m=require(_0xb39da1(0x1d4)),o=require('@univerjs/core'),C=require(_0xb39da1(0x204)),w=require(_0xb39da1(0x1a2)),p=require(_0xb39da1(0x243)),l=require(_0xb39da1(0x191)),g=require(_0xb39da1(0x1ce)),f=require('react'),_=require(_0xb39da1(0x202)),D=require(_0xb39da1(0x18d)),b=require(_0xb39da1(0x18c)),$=_0xb39da1(0x237),x={};class O extends o[_0xb39da1(0x196)]{constructor(){var _0x299a65=_0xb39da1;super(...arguments),v(this,'_sharedOperations',new Set()),v(this,_0x299a65(0x23d),new Set());}['registerSharedOperation'](_0x247f98){var _0x19ac22=_0xb39da1;return this[_0x19ac22(0x26f)][_0x19ac22(0x1ac)](_0x247f98),o['toDisposable'](()=>this[_0x19ac22(0x26f)]['delete'](_0x247f98));}[_0xb39da1(0x1ca)](_0x1ae4f7){var _0x3ceb0e=_0xb39da1;return this[_0x3ceb0e(0x23d)][_0x3ceb0e(0x1ac)](_0x1ae4f7),o['toDisposable'](()=>this['_reporters'][_0x3ceb0e(0x1af)](_0x1ae4f7));}[_0xb39da1(0x1d6)](_0x413c72){var _0x55c24c=_0xb39da1;return this[_0x55c24c(0x26f)][_0x55c24c(0x258)](_0x413c72);}[_0xb39da1(0x1d5)](_0x1a1c3e){var _0xa5a6a0=_0xb39da1;return Array[_0xa5a6a0(0x248)](this[_0xa5a6a0(0x23d)])[_0xa5a6a0(0x229)](_0x4757a2=>_0x4757a2(_0x1a1c3e));}}var H=Object[_0xb39da1(0x235)],V=(_0x6f48d2,_0x4b1b94,_0x2550bf,_0x2f933a)=>{var _0x226fb3=_0xb39da1;for(var _0x3d58b1=_0x2f933a>0x1?void 0x0:_0x2f933a?H(_0x4b1b94,_0x2550bf):_0x4b1b94,_0x1ec2f5=_0x6f48d2[_0x226fb3(0x1f4)]-0x1,_0x2add78;_0x1ec2f5>=0x0;_0x1ec2f5--)(_0x2add78=_0x6f48d2[_0x1ec2f5])&&(_0x3d58b1=_0x2add78(_0x3d58b1)||_0x3d58b1);return _0x3d58b1;},k=(_0x1d759a,_0x1c91fd)=>(_0x3b9aeb,_0x17a2df)=>_0x1c91fd(_0x3b9aeb,_0x17a2df,_0x1d759a);let E=class extends o[_0xb39da1(0x196)]{constructor(_0x1c9142){var _0x11bc46=_0xb39da1;super(),this[_0x11bc46(0x253)]=_0x1c9142,this[_0x11bc46(0x1be)]();}[_0xb39da1(0x1be)](){var _0xcf620e=_0xb39da1;[w[_0xcf620e(0x263)]['id'],w['SetScrollOperation']['id'],C[_0xcf620e(0x1fb)]['id']][_0xcf620e(0x1cd)](_0x728bd2=>{var _0x427e42=_0xcf620e;this[_0x427e42(0x195)](this[_0x427e42(0x253)]['registerSharedOperation'](_0x728bd2));});}};E=V([k(0x0,o[_0xb39da1(0x209)](O))],E);var u=function(){var _0x41907d=_0xb39da1;return u=Object[_0x41907d(0x1c8)]||function(_0x56084f){var _0x2e798a=_0x41907d;for(var _0x37f8b8,_0x3cfb18=0x1,_0x1f14d4=arguments[_0x2e798a(0x1f4)];_0x3cfb18<_0x1f14d4;_0x3cfb18++){_0x37f8b8=arguments[_0x3cfb18];for(var _0x3096f1 in _0x37f8b8)Object[_0x2e798a(0x19d)][_0x2e798a(0x21d)][_0x2e798a(0x1e7)](_0x37f8b8,_0x3096f1)&&(_0x56084f[_0x3096f1]=_0x37f8b8[_0x3096f1]);}return _0x56084f;},u[_0x41907d(0x26d)](this,arguments);},M=function(_0x2dbb43,_0x3b4591){var _0x2cdacf=_0xb39da1,_0x2eacce={};for(var _0xc731dd in _0x2dbb43)Object[_0x2cdacf(0x19d)][_0x2cdacf(0x21d)]['call'](_0x2dbb43,_0xc731dd)&&_0x3b4591[_0x2cdacf(0x1c1)](_0xc731dd)<0x0&&(_0x2eacce[_0xc731dd]=_0x2dbb43[_0xc731dd]);if(_0x2dbb43!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x1d6405=0x0,_0xc731dd=Object['getOwnPropertySymbols'](_0x2dbb43);_0x1d6405<_0xc731dd['length'];_0x1d6405++)_0x3b4591[_0x2cdacf(0x1c1)](_0xc731dd[_0x1d6405])<0x0&&Object[_0x2cdacf(0x19d)]['propertyIsEnumerable'][_0x2cdacf(0x1e7)](_0x2dbb43,_0xc731dd[_0x1d6405])&&(_0x2eacce[_0xc731dd[_0x1d6405]]=_0x2dbb43[_0xc731dd[_0x1d6405]]);}return _0x2eacce;},j=f[_0xb39da1(0x22d)](function(_0x132bbd,_0x3bd96f){var _0x2bc72e=_0xb39da1,_0x3d7d94=_0x132bbd[_0x2bc72e(0x1ba)],_0x5c8734=_0x132bbd['id'],_0x1672c4=_0x132bbd['className'],_0xfe52c=_0x132bbd[_0x2bc72e(0x22e)],_0x6935ab=M(_0x132bbd,[_0x2bc72e(0x1ba),'id',_0x2bc72e(0x1b7),'extend']),_0x1c4141=_0x2bc72e(0x1c2)[_0x2bc72e(0x1b0)](_0x5c8734,'\x20')['concat'](_0x1672c4||'')[_0x2bc72e(0x1a6)](),_0x4e88e2=f['useRef']('_'[_0x2bc72e(0x1b0)](G()));return y(_0x3d7d94,''['concat'](_0x5c8734),{'defIds':_0x3d7d94[_0x2bc72e(0x1d8)],'idSuffix':_0x4e88e2[_0x2bc72e(0x1bb)]},u({'ref':_0x3bd96f,'className':_0x1c4141},_0x6935ab),_0xfe52c);});function _0x52a9(_0x49813f,_0x698636){var _0xf6096d=_0xf609();return _0x52a9=function(_0x52a967,_0x4862f3){_0x52a967=_0x52a967-0x18b;var _0x1ac890=_0xf6096d[_0x52a967];return _0x1ac890;},_0x52a9(_0x49813f,_0x698636);}function _0xf609(){var _0x435e57=['You\x27re\x20following\x20the\x20presenter','IUniverInstanceService','use','@univerjs-pro/collaboration','3hsvpBN','@univerjs/sheets','_fetchOperations','find','OFFLINE','init','Inject','_configService','useObservable','Stop\x20presenting','_commandDisposable','dispose$','set','idle','LIVESHARE_TERMINATE','mutations','UniverLiveSharePlugin','LiveShareIcon','subscribe','get','data','button','reverse','_stopFollowing','LiveShareService','OPERATION','hasOwnProperty','_startLiveShareCoordinator','live-share-icon','registerDependencies','LIVESHARE_OPERATION','589270XhSBRG','stopPresenting','_commandService','UNIVER_LIVE_SHARE_PLUGIN','presenter','_unitID','getConfig','map','unitId','474686fBiIra','_collabSessionService','forwardRef','extend','sheet','merge','throttleTime','string','params','33944SnKNEl','getOwnPropertyDescriptor','IConfigService','live-share.config','registerComponent','useEffect','xlink:href','path','getCurrentTypeOfUnit$','_reporters','defineProperty','toDisposable','_beIdle','LIVESHARE_REQUEST_HOST','CollaborationEvent','@univerjs/ui','presenting','FOLLOWING','asObservable','_handleOffline','from','_handleNewChangeSets','replace','symbol','UniverInstanceType','_handleOnline','_stopPresenting','_entities','send','displayName','connectInjector','_liveShareService','Fragment','DesktopLiveShareController','defs','not-following','has','_univerInstanceService','286CabFXk','49370dAGiGI','_injector','useState','ICommandService','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','values','CollaborationSessionService','SAME_OPERATION_SHARE_INTERVAL','SetZoomRatioOperation','entries','executeCommand','event$','clsx','colorChannel1','toString','dispose','LIVESHARE_FETCH_OPERATIONS','_status$','apply','memberID','_sharedOperations','0\x200\x2017\x2017','getTypeOfUnitDisposed$','next','status$','rxjs/operators','rxjs','LIVESHARE_NEW_HOST','pipe','mask','react/jsx-runtime','following','random','396XlkaYF','disposeWithMe','Disposable','createInstance','touchDependencies','startFollowing','153363dHugLX','includes','Injector','prototype','_config','UniverCollaborationClientPlugin','jsx','evenodd','@univerjs/sheets-ui','1em','SessionStatus','ONLINE','trim','setConfig','IDLE','svg','_handleTerminate','LiveShareCoordinator','add','stopFollowing','getLiveShareCoordinator','delete','concat','override','_startFollowing','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','onStarting','fill','sessionStatus$','className','UNIVER_SHEET','attrs','icon','current','DependentOn','Module','_init','takeUntil','idSuffix','indexOf','univerjs-icon\x20univerjs-icon-','requireSession','Stop\x20following','univer-w-full\x20univer-mb-3\x20univer-text-sm','LiveShareController','parse','assign','NOT_FOLLOWING','registerInitialStateReporter','jsxs','6293304pkHaOi','forEach','@univerjs/design','Button','offline','div','DisposableCollection','BehaviorSubject','@univerjs-pro/collaboration-client','getInitialStates','shouldShareOperation','_mountLiveShare','defIds','getUnitId','tryStartPresenting','getMemberID','48otjEsL','currentColor','url(#$1','Start\x20following','unsubscribe','_handleNewHost','tag','1JruJiI','parseProtocolChangeset','_status','_handleOperation','call','end','Plugin','IUIPartsService','_uiPartsService','Subject','UNIVER_UNKNOWN','You\x27re\x20presenting\x20the\x20document','onCommandExecuted','Present\x20this\x20document','none','RxDisposable','children','length','_startPresenting','796056mZOhiI','UniverIcon','default','then','getValue','SetWorksheetActiveOperation','complete','_presenter','_collabSession'];_0xf609=function(){return _0x435e57;};return _0xf609();}function y(_0xe2192f,_0x27e8db,_0x112ad7,_0x19f867,_0x5a1d40){var _0x423766=_0xb39da1;return f['createElement'](_0xe2192f[_0x423766(0x1e2)],u(u({'key':_0x27e8db},q(_0xe2192f,_0x112ad7,_0x5a1d40)),_0x19f867),(W(_0xe2192f,_0x112ad7)[_0x423766(0x1f3)]||[])['map'](function(_0x31e4f5,_0x11f045){var _0x256323=_0x423766;return y(_0x31e4f5,''[_0x256323(0x1b0)](_0x27e8db,'-')[_0x256323(0x1b0)](_0xe2192f[_0x256323(0x1e2)],'-')[_0x256323(0x1b0)](_0x11f045),_0x112ad7,void 0x0,_0x5a1d40);}));}function q(_0x2a1f3e,_0x4d610c,_0x4a3be5){var _0x5b127d=_0xb39da1,_0x32c066=u({},_0x2a1f3e[_0x5b127d(0x1b9)]);_0x4a3be5!=null&&_0x4a3be5['colorChannel1']&&_0x32c066[_0x5b127d(0x1b5)]==='colorChannel1'&&(_0x32c066[_0x5b127d(0x1b5)]=_0x4a3be5[_0x5b127d(0x268)]),_0x2a1f3e[_0x5b127d(0x1e2)]===_0x5b127d(0x190)&&_0x32c066['id']&&(_0x32c066['id']=_0x32c066['id']+_0x4d610c[_0x5b127d(0x1c0)]),Object[_0x5b127d(0x264)](_0x32c066)[_0x5b127d(0x1cd)](function(_0x374579){var _0x33ac95=_0x5b127d,_0x3f2200=_0x374579[0x0],_0x2e2dce=_0x374579[0x1];_0x3f2200===_0x33ac95(0x190)&&typeof _0x2e2dce=='string'&&(_0x32c066[_0x3f2200]=_0x2e2dce[_0x33ac95(0x24a)](/url\(#(.*)\)/,_0x33ac95(0x1de)[_0x33ac95(0x1b0)](_0x4d610c[_0x33ac95(0x1c0)],')')));});var _0x1fe1c6=_0x4d610c[_0x5b127d(0x1d8)];return!_0x1fe1c6||_0x1fe1c6[_0x5b127d(0x1f4)]===0x0||(_0x2a1f3e[_0x5b127d(0x1e2)]===_0x5b127d(0x201)&&_0x32c066[_0x5b127d(0x23a)]&&(_0x32c066[_0x5b127d(0x23a)]=_0x32c066[_0x5b127d(0x23a)]+_0x4d610c[_0x5b127d(0x1c0)]),Object[_0x5b127d(0x264)](_0x32c066)[_0x5b127d(0x1cd)](function(_0x24651f){var _0x4d84a3=_0x5b127d,_0x3c4a66=_0x24651f[0x0],_0x4c49a3=_0x24651f[0x1];typeof _0x4c49a3==_0x4d84a3(0x232)&&(_0x32c066[_0x3c4a66]=_0x4c49a3[_0x4d84a3(0x24a)](/url\(#(.*)\)/,'url(#$1'[_0x4d84a3(0x1b0)](_0x4d610c[_0x4d84a3(0x1c0)],')')));})),_0x32c066;}function W(_0x16c26b,_0x3118d0){var _0x5367dc=_0xb39da1,_0x16a130,_0x104f41=_0x3118d0[_0x5367dc(0x1d8)];return!_0x104f41||_0x104f41[_0x5367dc(0x1f4)]===0x0?_0x16c26b:_0x16c26b[_0x5367dc(0x1e2)]===_0x5367dc(0x256)&&(!((_0x16a130=_0x16c26b[_0x5367dc(0x1f3)])===null||_0x16a130===void 0x0)&&_0x16a130[_0x5367dc(0x1f4)])?u(u({},_0x16c26b),{'children':_0x16c26b['children'][_0x5367dc(0x229)](function(_0x505280){var _0x50c275=_0x5367dc;return typeof _0x505280['attrs']['id']==_0x50c275(0x232)&&_0x104f41&&_0x104f41[_0x50c275(0x19b)](_0x505280[_0x50c275(0x1b9)]['id'])?u(u({},_0x505280),{'attrs':u(u({},_0x505280[_0x50c275(0x1b9)]),{'id':_0x505280[_0x50c275(0x1b9)]['id']+_0x3118d0[_0x50c275(0x1c0)]})}):_0x505280;})}):_0x16c26b;}function G(){var _0x7ea756=_0xb39da1;return Math[_0x7ea756(0x193)]()[_0x7ea756(0x269)](0x24)['substring'](0x2,0x8);}j[_0xb39da1(0x251)]=_0xb39da1(0x1f7);var B={'tag':_0xb39da1(0x1a9),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xb39da1(0x1f1),'viewBox':_0xb39da1(0x270),'width':'1em','height':_0xb39da1(0x1a3)},'children':[{'tag':_0xb39da1(0x23b),'attrs':{'fill':_0xb39da1(0x1dd),'d':_0xb39da1(0x25f)}},{'tag':_0xb39da1(0x23b),'attrs':{'fill':_0xb39da1(0x1dd),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0xb39da1(0x1a1),'clipRule':_0xb39da1(0x1a1)}}]},P=f[_0xb39da1(0x22d)](function(_0x39cf12,_0x111093){var _0x2f5a0c=_0xb39da1;return f['createElement'](j,Object[_0x2f5a0c(0x1c8)]({},_0x39cf12,{'id':_0x2f5a0c(0x21f),'ref':_0x111093,'icon':B}));});P[_0xb39da1(0x251)]=_0xb39da1(0x214);var Y=Object[_0xb39da1(0x235)],R=(_0x5acabf,_0x19e6fd,_0x12f97d,_0xcfc1cf)=>{for(var _0x39ee0e=_0xcfc1cf>0x1?void 0x0:_0xcfc1cf?Y(_0x19e6fd,_0x12f97d):_0x19e6fd,_0x361557=_0x5acabf['length']-0x1,_0x3296ae;_0x361557>=0x0;_0x361557--)(_0x3296ae=_0x5acabf[_0x361557])&&(_0x39ee0e=_0x3296ae(_0x39ee0e)||_0x39ee0e);return _0x39ee0e;},S=(_0x16cdcb,_0x3e0406)=>(_0x5be149,_0x4de946)=>_0x3e0406(_0x5be149,_0x4de946,_0x16cdcb);exports[_0xb39da1(0x1c6)]=class extends o['RxDisposable']{constructor(_0x1fd163,_0x54634f,_0x5a6cbf){var _0x1a5d41=_0xb39da1;super(),v(this,'_entities',new Map()),(this[_0x1a5d41(0x259)]=_0x1fd163,this[_0x1a5d41(0x25c)]=_0x54634f,this['_collabSessionService']=_0x5a6cbf,this['_init']());}async['getLiveShareCoordinator'](_0x2f4618){var _0x47fe37=_0xb39da1;return this[_0x47fe37(0x24f)][_0x47fe37(0x258)](_0x2f4618)||await this[_0x47fe37(0x21e)](_0x2f4618),this[_0x47fe37(0x24f)][_0x47fe37(0x216)](_0x2f4618);}['_init'](){var _0x9ae764=_0xb39da1;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x9ae764(0x24c)][_0x9ae764(0x1b8)])[_0x9ae764(0x18f)](b[_0x9ae764(0x1bf)](this[_0x9ae764(0x20e)]))[_0x9ae764(0x215)](async _0x1e0f9c=>{var _0x179627=_0x9ae764;const _0x2aaf7d=_0x1e0f9c[_0x179627(0x1d9)]();this[_0x179627(0x24f)][_0x179627(0x258)](_0x2aaf7d)||this[_0x179627(0x21e)](_0x2aaf7d);}),this[_0x9ae764(0x259)][_0x9ae764(0x271)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x9ae764(0x18f)](b[_0x9ae764(0x1bf)](this[_0x9ae764(0x20e)]))['subscribe'](_0x480240=>{var _0x47a17c=_0x9ae764;const _0x120876=_0x480240[_0x47a17c(0x1d9)](),_0x2c1c1d=this['_entities'][_0x47a17c(0x216)](_0x120876);_0x2c1c1d==null||_0x2c1c1d[_0x47a17c(0x26a)]();});}async['_startLiveShareCoordinator'](_0x47ef39){var _0x4270a4=_0xb39da1;const _0x4bf744=await this[_0x4270a4(0x22c)][_0x4270a4(0x1c3)](_0x47ef39),_0x2b9732=this[_0x4270a4(0x25c)][_0x4270a4(0x197)](exports[_0x4270a4(0x1ab)],_0x47ef39,_0x4bf744);return _0x2b9732[_0x4270a4(0x208)](),this[_0x4270a4(0x24f)][_0x4270a4(0x20f)](_0x47ef39,_0x2b9732),_0x2b9732;}},exports['LiveShareController']=R([S(0x0,o[_0xb39da1(0x200)]),S(0x1,o[_0xb39da1(0x209)](o['Injector'])),S(0x2,o['Inject'](m[_0xb39da1(0x261)]))],exports[_0xb39da1(0x1c6)]);var h=(_0x402b64=>(_0x402b64['OFFLINE']=_0xb39da1(0x1d0),_0x402b64[_0xb39da1(0x1a8)]=_0xb39da1(0x210),_0x402b64['FOLLOWING']=_0xb39da1(0x192),_0x402b64[_0xb39da1(0x1c9)]=_0xb39da1(0x257),_0x402b64['PRESENTING']=_0xb39da1(0x244),_0x402b64))(h||{});const Z=_0xb39da1(0x262),J=0xc8;exports[_0xb39da1(0x1ab)]=class extends o[_0xb39da1(0x1f2)]{constructor(_0x59c4d5,_0x2dd9f7,_0x3a0d59,_0x1f1b61,_0x588fd4){var _0x46080e=_0xb39da1;super(),v(this,_0x46080e(0x26c),new D[(_0x46080e(0x1d3))](_0x46080e(0x210))),v(this,_0x46080e(0x18b),this[_0x46080e(0x26c)][_0x46080e(0x246)]()),v(this,'_init',!0x1),v(this,_0x46080e(0x20d),null),v(this,_0x46080e(0x1fd),null),(this[_0x46080e(0x227)]=_0x59c4d5,this['_collabSession']=_0x2dd9f7,this[_0x46080e(0x20a)]=_0x3a0d59,this[_0x46080e(0x253)]=_0x1f1b61,this['_commandService']=_0x588fd4);}get[_0xb39da1(0x1e5)](){var _0x3a12a3=_0xb39da1;return this[_0x3a12a3(0x26c)][_0x3a12a3(0x1fa)]();}[_0xb39da1(0x26a)](){var _0x37cc62=_0xb39da1,_0x3bc66c;(_0x3bc66c=this[_0x37cc62(0x20d)])==null||_0x3bc66c[_0x37cc62(0x26a)](),this[_0x37cc62(0x26c)]['next']('idle'),this['_status$'][_0x37cc62(0x1fc)]();}[_0xb39da1(0x208)](){var _0x421d45=_0xb39da1;this[_0x421d45(0x1be)]||(this['_init']=!0x0,this['_collabSession'][_0x421d45(0x1b6)]['pipe'](b[_0x421d45(0x1bf)](this['dispose$']))[_0x421d45(0x215)](_0x48b0ea=>{var _0x9c3953=_0x421d45;switch(_0x48b0ea){case m[_0x9c3953(0x1a4)][_0x9c3953(0x207)]:this[_0x9c3953(0x247)]();break;case m[_0x9c3953(0x1a4)][_0x9c3953(0x1a5)]:this[_0x9c3953(0x24d)]();break;}}),this[_0x421d45(0x1fe)][_0x421d45(0x266)][_0x421d45(0x18f)](b['takeUntil'](this[_0x421d45(0x20e)]))[_0x421d45(0x215)](_0x14c89b=>{var _0x3787cc=_0x421d45;const {eventID:_0x307a9b}=_0x14c89b;switch(_0x307a9b){case _[_0x3787cc(0x242)][_0x3787cc(0x18e)]:this[_0x3787cc(0x1e1)](_0x14c89b);break;case _['CollaborationEvent'][_0x3787cc(0x221)]:this[_0x3787cc(0x1e6)](_0x14c89b);break;case _[_0x3787cc(0x242)][_0x3787cc(0x211)]:this['_handleTerminate']();break;case _[_0x3787cc(0x242)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x14c89b);break;}}));}[_0xb39da1(0x1da)](){var _0x4840fb=_0xb39da1;this['_collabSession'][_0x4840fb(0x250)]({'eventID':_[_0x4840fb(0x242)][_0x4840fb(0x241)],'data':{'unitID':this['_unitID'],'userID':this[_0x4840fb(0x1fe)][_0x4840fb(0x1db)]()}},this[_0x4840fb(0x227)]);}[_0xb39da1(0x223)](){var _0x3d102c=_0xb39da1;this[_0x3d102c(0x1e5)]===_0x3d102c(0x244)&&(this[_0x3d102c(0x26c)][_0x3d102c(0x272)]('idle'),this['_collabSession']['send']({'eventID':_['CollaborationEvent'][_0x3d102c(0x211)],'data':{'unitID':this[_0x3d102c(0x227)]}},this[_0x3d102c(0x227)]));}[_0xb39da1(0x199)](){var _0x29657a=_0xb39da1;this[_0x29657a(0x1e5)]===_0x29657a(0x257)&&(this[_0x29657a(0x26c)][_0x29657a(0x272)](_0x29657a(0x192)),this[_0x29657a(0x1b2)]());}['stopFollowing'](){var _0xe783bc=_0xb39da1;this['_status']==='following'&&this[_0xe783bc(0x21a)]();}[_0xb39da1(0x1e1)](_0x1a5094){var _0x1dc58f=_0xb39da1;const {presenter:_0x584155}=_0x1a5094[_0x1dc58f(0x217)],_0x394890=this[_0x1dc58f(0x1fe)][_0x1dc58f(0x1db)]();this['_presenter']=_0x584155,_0x584155===_0x394890?(this[_0x1dc58f(0x21a)](),this[_0x1dc58f(0x1f5)]()):this[_0x1dc58f(0x1e5)]!==_0x1dc58f(0x257)&&(this[_0x1dc58f(0x24e)](),this[_0x1dc58f(0x1b2)]());}[_0xb39da1(0x205)](){var _0x51e623=_0xb39da1;const _0x3e30d3={'eventID':_[_0x51e623(0x242)][_0x51e623(0x26b)]};this[_0x51e623(0x1fe)]['send'](_0x3e30d3,this[_0x51e623(0x227)]);}[_0xb39da1(0x1aa)](){var _0x38e487=_0xb39da1;this[_0x38e487(0x1fd)]=null,this[_0x38e487(0x1e5)]!=='presenting'&&this[_0x38e487(0x240)]();}[_0xb39da1(0x249)](_0x378930){var _0x237bd2=_0xb39da1;if(this[_0x237bd2(0x1e5)]==='following'&&this[_0x237bd2(0x1fd)]===_0x378930[_0x237bd2(0x217)][_0x237bd2(0x26e)]){const _0xe68432=_[_0x237bd2(0x1e4)](_0x378930[_0x237bd2(0x217)])[_0x237bd2(0x212)][_0x237bd2(0x219)]()[_0x237bd2(0x206)](_0x213a3a=>_0x213a3a['id']===C['InsertSheetMutation']['id']);if(_0xe68432){const _0x405938=_0xe68432['params'][_0x237bd2(0x22a)],_0x34fcd1=_0xe68432[_0x237bd2(0x233)][_0x237bd2(0x22f)]['id'];setTimeout(()=>{var _0x24401a=_0x237bd2;this[_0x24401a(0x224)][_0x24401a(0x265)](C[_0x24401a(0x1fb)]['id'],{'unitId':_0x405938,'subUnitId':_0x34fcd1},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x57ea1a=_0xb39da1;this[_0x57ea1a(0x26c)][_0x57ea1a(0x272)](_0x57ea1a(0x244));const _0x4c86ce=new Map(),_0x1ae277=this[_0x57ea1a(0x20d)]=new o[(_0x57ea1a(0x1d2))]();_0x1ae277[_0x57ea1a(0x1ac)](o[_0x57ea1a(0x23f)](()=>{var _0x4829dc=_0x57ea1a;_0x4c86ce[_0x4829dc(0x1cd)](_0x5702d7=>_0x5702d7[_0x4829dc(0x1fc)]()),_0x4c86ce['clear']();})),_0x1ae277[_0x57ea1a(0x1ac)](this[_0x57ea1a(0x224)][_0x57ea1a(0x1ef)](_0x4fb79c=>{var _0x5a7719=_0x57ea1a,_0x54cfc3;if(_0x4fb79c['type']!==o['CommandType'][_0x5a7719(0x21c)]||!this['_liveShareService'][_0x5a7719(0x1d6)](_0x4fb79c['id']))return;const {id:_0x5143ce}=_0x4fb79c;let _0xe5d37a;_0x4c86ce[_0x5a7719(0x258)](_0x5143ce)?_0xe5d37a=_0x4c86ce[_0x5a7719(0x216)](_0x5143ce):(_0xe5d37a=new D[(_0x5a7719(0x1ec))](),_0x4c86ce[_0x5a7719(0x20f)](_0x5143ce,_0xe5d37a),_0xe5d37a['pipe'](b[_0x5a7719(0x231)]((_0x54cfc3=this[_0x5a7719(0x20a)][_0x5a7719(0x228)](Z))!=null?_0x54cfc3:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5a7719(0x215)](_0x3715c7=>{var _0x59e4d1=_0x5a7719;this[_0x59e4d1(0x1fe)][_0x59e4d1(0x250)]({'eventID':_[_0x59e4d1(0x242)][_0x59e4d1(0x221)],'data':{'unitID':this[_0x59e4d1(0x227)],'operations':{[_0x3715c7['id']]:{'id':_0x3715c7['id'],'params':JSON['stringify'](_0x3715c7[_0x59e4d1(0x233)])}}}},this[_0x59e4d1(0x227)]);})),_0xe5d37a[_0x5a7719(0x272)](_0x4fb79c);})),this[_0x57ea1a(0x253)][_0x57ea1a(0x1d5)](this['_unitID'])[_0x57ea1a(0x1cd)](_0x1efb54=>this[_0x57ea1a(0x1fe)][_0x57ea1a(0x250)]({'eventID':_[_0x57ea1a(0x242)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x57ea1a(0x227)],'operations':{[_0x1efb54['id']]:{'id':_0x1efb54['id'],'params':JSON['stringify'](_0x1efb54[_0x57ea1a(0x233)])}}}},this[_0x57ea1a(0x227)]));}['_stopPresenting'](){var _0x2bc273=_0xb39da1,_0x1b427a;this['_status$'][_0x2bc273(0x272)](_0x2bc273(0x210)),(_0x1b427a=this[_0x2bc273(0x20d)])==null||_0x1b427a[_0x2bc273(0x26a)](),this[_0x2bc273(0x20d)]=null;}[_0xb39da1(0x1b2)](){var _0x1cfeaa=_0xb39da1,_0x5f4435;(_0x5f4435=this['_commandDisposable'])==null||_0x5f4435[_0x1cfeaa(0x26a)](),this[_0x1cfeaa(0x26c)][_0x1cfeaa(0x272)](_0x1cfeaa(0x192));}[_0xb39da1(0x240)](){var _0x33ce9a=_0xb39da1,_0x5b39ba;this['_status$'][_0x33ce9a(0x272)](_0x33ce9a(0x210)),(_0x5b39ba=this['_commandDisposable'])==null||_0x5b39ba['dispose'](),this[_0x33ce9a(0x20d)]=null;}[_0xb39da1(0x21a)](){var _0x423f52=_0xb39da1,_0x4a55dd;this[_0x423f52(0x26c)][_0x423f52(0x272)](_0x423f52(0x257)),(_0x4a55dd=this[_0x423f52(0x20d)])==null||_0x4a55dd[_0x423f52(0x26a)]();}[_0xb39da1(0x1e6)](_0x30dee8){var _0x16eb8b=_0xb39da1;if([_0x16eb8b(0x244),'not-following','offline'][_0x16eb8b(0x19b)](this[_0x16eb8b(0x1e5)])||!_0x30dee8[_0x16eb8b(0x217)][_0x16eb8b(0x226)]||_0x30dee8['data'][_0x16eb8b(0x226)]===this[_0x16eb8b(0x1fe)][_0x16eb8b(0x1db)]())return;this[_0x16eb8b(0x1e5)]===_0x16eb8b(0x210)&&this['_startFollowing']();const _0x570ef3=_0x30dee8['data']['operations'];Object[_0x16eb8b(0x260)](_0x570ef3)['forEach'](_0x326486=>{var _0x5acc1f=_0x16eb8b;this['_commandService'][_0x5acc1f(0x265)](_0x326486['id'],_0x326486[_0x5acc1f(0x233)]?JSON[_0x5acc1f(0x1c7)](_0x326486[_0x5acc1f(0x233)]):null,{'fromCollab':!0x0});});}[_0xb39da1(0x247)](){var _0x473841=_0xb39da1,_0x69d24;this[_0x473841(0x26c)][_0x473841(0x272)](_0x473841(0x1d0)),(_0x69d24=this[_0x473841(0x20d)])==null||_0x69d24[_0x473841(0x26a)]();}[_0xb39da1(0x24d)](){var _0x163bf0=_0xb39da1;this['_status$']['next'](_0x163bf0(0x210)),this[_0x163bf0(0x205)]();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0xb39da1(0x236)]),S(0x3,o[_0xb39da1(0x209)](O)),S(0x4,o[_0xb39da1(0x25e)])],exports[_0xb39da1(0x1ab)]);function A(){var _0x2b6440=_0xb39da1;const _0x3ee3f8=p['useDependency'](exports[_0x2b6440(0x1c6)]),_0x5399f0=p['useDependency'](o[_0x2b6440(0x200)]),_0xec0f9a=p[_0x2b6440(0x20b)](()=>_0x5399f0[_0x2b6440(0x23c)](o[_0x2b6440(0x24c)][_0x2b6440(0x1b8)]),void 0x0,!0x1,[]),[_0x4ec4c1,_0x5c5c1e]=f[_0x2b6440(0x25d)](null),[_0x50e085,_0x4a8595]=f['useState'](h[_0x2b6440(0x1a8)]),_0x3ca9b7=f['useRef'](null);return f[_0x2b6440(0x239)](()=>(_0xec0f9a&&_0x3ee3f8[_0x2b6440(0x1ae)](_0xec0f9a['getUnitId']())[_0x2b6440(0x1f9)](_0x3ec1f9=>{var _0x5c962a=_0x2b6440;_0x5c5c1e(_0x3ec1f9),_0x3ca9b7[_0x5c962a(0x1bb)]=_0x3ec1f9['status$'][_0x5c962a(0x215)](_0x175538=>{_0x4a8595(_0x175538);});}),()=>{var _0x2de03c=_0x2b6440,_0x49f1ed;(_0x49f1ed=_0x3ca9b7[_0x2de03c(0x1bb)])==null||_0x49f1ed[_0x2de03c(0x1e0)](),_0x3ca9b7[_0x2de03c(0x1bb)]=null;}),[_0xec0f9a,_0x3ee3f8]),_0x4ec4c1?l['jsx'](g['Dropdown'],{'align':_0x2b6440(0x1e8),'disabled':_0x50e085===h['OFFLINE'],'className':_0x2b6440(0x1b3),'overlay':l[_0x2b6440(0x1a0)](K,{'status':_0x50e085,'coordinator':_0x4ec4c1}),'children':l['jsx'](_0x2b6440(0x218),{'className':g[_0x2b6440(0x267)]('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x50e085===h[_0x2b6440(0x207)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x50e085!==h[_0x2b6440(0x207)]}),'type':_0x2b6440(0x218),'children':l[_0x2b6440(0x1a0)](P,{'className':'univer-size-4'})})}):null;}function K(_0x2aadff){var _0x119466=_0xb39da1;const {status:_0x18685,coordinator:_0x43e12d}=_0x2aadff;switch(_0x18685){case h[_0x119466(0x1a8)]:return l['jsx'](z,{'coordinator':_0x43e12d});case h[_0x119466(0x245)]:return l[_0x119466(0x1a0)](Q,{'coordinator':_0x43e12d});case h[_0x119466(0x1c9)]:return l[_0x119466(0x1a0)](X,{'coordinator':_0x43e12d});case h[_0x119466(0x207)]:return l[_0x119466(0x1a0)](te,{});case h['PRESENTING']:return l[_0x119466(0x1a0)](ee,{'coordinator':_0x43e12d});default:return null;}}function z(_0x184a53){var _0x34b5c9=_0xb39da1;const {coordinator:_0x47fad4}=_0x184a53;return l['jsxs'](l[_0x34b5c9(0x254)],{'children':[l[_0x34b5c9(0x1a0)]('div',{'className':_0x34b5c9(0x1c5),'children':_0x34b5c9(0x1f0)}),l['jsx'](g['Button'],{'onClick':()=>_0x47fad4[_0x34b5c9(0x1da)](),'children':'Start'})]});}function Q(_0x3303cf){var _0x407658=_0xb39da1;const {coordinator:_0x3cca6c}=_0x3303cf;return l[_0x407658(0x1cb)](l[_0x407658(0x254)],{'children':[l[_0x407658(0x1a0)](_0x407658(0x1d1),{'className':_0x407658(0x1c5),'children':_0x407658(0x1ff)}),l[_0x407658(0x1a0)](g[_0x407658(0x1cf)],{'onClick':()=>_0x3cca6c[_0x407658(0x1ad)](),'children':_0x407658(0x1c4)})]});}function X(_0x1e9f12){var _0x3be18c=_0xb39da1;const {coordinator:_0x34193b}=_0x1e9f12;return l['jsxs'](l[_0x3be18c(0x254)],{'children':[l['jsx'](_0x3be18c(0x1d1),{'className':_0x3be18c(0x1c5),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x3be18c(0x1a0)](g['Button'],{'variant':'text','onClick':()=>_0x34193b[_0x3be18c(0x199)](),'children':_0x3be18c(0x1df)})]});}function ee(_0x2f57f7){var _0x1f45ae=_0xb39da1;const {coordinator:_0x56c615}=_0x2f57f7;return l[_0x1f45ae(0x1cb)](l[_0x1f45ae(0x254)],{'children':[l['jsx']('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x1f45ae(0x1ee)}),l['jsx'](g[_0x1f45ae(0x1cf)],{'variant':_0x1f45ae(0x1f8),'onClick':()=>_0x56c615[_0x1f45ae(0x223)](),'children':_0x1f45ae(0x20c)})]});}function te(){var _0x47af10=_0xb39da1;return l[_0x47af10(0x1a0)](l[_0x47af10(0x254)],{'children':'You\x27are\x20offline.'});}var ie=Object[_0xb39da1(0x235)],ne=(_0x49834e,_0x576617,_0x234c9a,_0x4f3137)=>{var _0x29c4c9=_0xb39da1;for(var _0x18fdde=_0x4f3137>0x1?void 0x0:_0x4f3137?ie(_0x576617,_0x234c9a):_0x576617,_0x25a18a=_0x49834e[_0x29c4c9(0x1f4)]-0x1,_0x5550ae;_0x25a18a>=0x0;_0x25a18a--)(_0x5550ae=_0x49834e[_0x25a18a])&&(_0x18fdde=_0x5550ae(_0x18fdde)||_0x18fdde);return _0x18fdde;},L=(_0x550651,_0x421829)=>(_0x2a504a,_0x1e24fc)=>_0x421829(_0x2a504a,_0x1e24fc,_0x550651);exports[_0xb39da1(0x255)]=class extends o[_0xb39da1(0x196)]{constructor(_0x44790f,_0x1078d6){var _0x4d0795=_0xb39da1;super(),this['_injector']=_0x44790f,this[_0x4d0795(0x1eb)]=_0x1078d6,this[_0x4d0795(0x1d7)]();}[_0xb39da1(0x1d7)](){var _0x1e9073=_0xb39da1;this[_0x1e9073(0x195)](this['_uiPartsService'][_0x1e9073(0x238)](p['BuiltInUIPart']['HEADER_MENU'],()=>p[_0x1e9073(0x252)](A,this['_injector'])));}},exports[_0xb39da1(0x255)]=ne([L(0x0,o[_0xb39da1(0x209)](o['Injector'])),L(0x1,p[_0xb39da1(0x1ea)])],exports[_0xb39da1(0x255)]);var re=Object[_0xb39da1(0x23e)],se=Object[_0xb39da1(0x235)],oe=(_0x524bdc,_0x4f24d5,_0x8fefc9)=>_0x4f24d5 in _0x524bdc?re(_0x524bdc,_0x4f24d5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x8fefc9}):_0x524bdc[_0x4f24d5]=_0x8fefc9,ae=(_0x560ecc,_0x45129b,_0x3483d1,_0x4ecbc3)=>{var _0xc5385c=_0xb39da1;for(var _0x3841b6=_0x4ecbc3>0x1?void 0x0:_0x4ecbc3?se(_0x45129b,_0x3483d1):_0x45129b,_0x2c0fe1=_0x560ecc[_0xc5385c(0x1f4)]-0x1,_0x32cc67;_0x2c0fe1>=0x0;_0x2c0fe1--)(_0x32cc67=_0x560ecc[_0x2c0fe1])&&(_0x3841b6=_0x32cc67(_0x3841b6)||_0x3841b6);return _0x3841b6;},N=(_0x15c216,_0x25f1e0)=>(_0x434fcf,_0x160e9a)=>_0x25f1e0(_0x434fcf,_0x160e9a,_0x15c216),T=(_0x2d5b76,_0x31b630,_0x1811d7)=>oe(_0x2d5b76,typeof _0x31b630!=_0xb39da1(0x24b)?_0x31b630+'':_0x31b630,_0x1811d7);const le=_0xb39da1(0x225);exports['UniverLiveSharePlugin']=class extends o[_0xb39da1(0x1e9)]{constructor(_0x54d86c=x,_0x5497be,_0x5bc1f3){var _0x289801=_0xb39da1;super(),this['_config']=_0x54d86c,this[_0x289801(0x25c)]=_0x5497be,this['_configService']=_0x5bc1f3;const {..._0x557f9f}=o[_0x289801(0x230)]({},x,this[_0x289801(0x19e)]);this[_0x289801(0x20a)][_0x289801(0x1a7)]($,_0x557f9f);}[_0xb39da1(0x1b4)](){var _0x1e76e9=_0xb39da1;o[_0x1e76e9(0x220)](this[_0x1e76e9(0x25c)],o['mergeOverrideWithDependencies']([[O],[exports['LiveShareController']],[E],[exports[_0x1e76e9(0x255)]]],this[_0x1e76e9(0x19e)][_0x1e76e9(0x1b1)])),o['touchDependencies'](this[_0x1e76e9(0x25c)],[[E]]);}['onRendered'](){var _0x1658e4=_0xb39da1;o[_0x1658e4(0x198)](this[_0x1658e4(0x25c)],[[exports[_0x1658e4(0x255)]]]);}},T(exports['UniverLiveSharePlugin'],'type',o[_0xb39da1(0x24c)][_0xb39da1(0x1ed)]),T(exports[_0xb39da1(0x213)],'pluginName',le),exports[_0xb39da1(0x213)]=ae([o[_0xb39da1(0x1bc)](m[_0xb39da1(0x19f)]),N(0x1,o[_0xb39da1(0x209)](o[_0xb39da1(0x19c)])),N(0x2,o[_0xb39da1(0x236)])],exports['UniverLiveSharePlugin']),exports['LiveShare']=A,exports[_0xb39da1(0x21b)]=O,exports['LiveShareStatus']=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x1417ed=_0x38a8;(function(_0x51f4bd,_0x21d67f){var _0x571fce=_0x38a8,_0x412b21=_0x51f4bd();while(!![]){try{var _0x17c406=parseInt(_0x571fce(0x187))/0x1+parseInt(_0x571fce(0x18b))/0x2+parseInt(_0x571fce(0x121))/0x3*(parseInt(_0x571fce(0x1b7))/0x4)+-parseInt(_0x571fce(0x18e))/0x5*(parseInt(_0x571fce(0x1ad))/0x6)+parseInt(_0x571fce(0x1a2))/0x7+-parseInt(_0x571fce(0x15a))/0x8*(parseInt(_0x571fce(0x1b1))/0x9)+-parseInt(_0x571fce(0x17a))/0xa;if(_0x17c406===_0x21d67f)break;else _0x412b21['push'](_0x412b21['shift']());}catch(_0x367e2f){_0x412b21['push'](_0x412b21['shift']());}}}(_0x2d2d,0xa88b8));var q=Object[_0x1417ed(0x1ac)],z=(_0x3ed7ab,_0x3ea350,_0x2ba429)=>_0x3ea350 in _0x3ed7ab?q(_0x3ed7ab,_0x3ea350,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ba429}):_0x3ed7ab[_0x3ea350]=_0x2ba429,d=(_0x480cc7,_0x119471,_0x1a0d9f)=>z(_0x480cc7,typeof _0x119471!='symbol'?_0x119471+'':_0x119471,_0x1a0d9f);import{CollaborationSessionService as _0x992e83,SessionStatus as _0x5f16b5,UniverCollaborationClientPlugin as _0x1c676a}from'@univerjs-pro/collaboration-client';import{Disposable as _0x5a3c0b,toDisposable as _0x43f7c0,Inject as _0x3142fa,IUniverInstanceService as _0x31ab04,Injector as _0x4c551c,IConfigService as _0x55a2c1,ICommandService as _0x1104ab,RxDisposable as _0x43b34b,UniverInstanceType as _0x2f6889,DisposableCollection as _0x40642a,CommandType as _0x4ad824,DependentOn as _0x2af3cb,Plugin as _0x2eea43,merge as _0x2c031d,registerDependencies as _0x1d739e,mergeOverrideWithDependencies as _0x2f04b4,touchDependencies as _0x560cdb}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x54985f,InsertSheetMutation as _0x1a5c5c}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x5be70f,SetScrollOperation as _0x311d77}from'@univerjs/sheets-ui';import{useDependency as _0x44e970,useObservable as _0x524718,IUIPartsService as _0xdcb7a5,BuiltInUIPart as _0x4fb6b9,connectInjector as _0x4c37d2}from'@univerjs/ui';import{jsx as _0x23cc82,jsxs as _0x235d80,Fragment as _0x20ba1f}from'react/jsx-runtime';import{Dropdown as _0x5a9d3c,clsx as _0x316b45,Button as _0x1ff626}from'@univerjs/design';import{forwardRef as _0x5e8b1c,useRef as _0x2d4b3b,createElement as _0x162003,useState as _0x11b155,useEffect as _0x5ef138}from'react';import{CollaborationEvent as _0x7a9ef0,parseProtocolChangeset as _0x4991b8}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x475cf9,Subject as _0x510d81}from'rxjs';import{takeUntil as _0x2a9ec6,throttleTime as _0x1efbf4}from'rxjs/operators';const Oe=_0x1417ed(0x139),T={};class L extends _0x5a3c0b{constructor(){super(...arguments),d(this,'_sharedOperations',new Set()),d(this,'_reporters',new Set());}['registerSharedOperation'](_0x103552){var _0x4a305a=_0x1417ed;return this[_0x4a305a(0x19e)][_0x4a305a(0x137)](_0x103552),_0x43f7c0(()=>this[_0x4a305a(0x19e)][_0x4a305a(0x1b0)](_0x103552));}['registerInitialStateReporter'](_0x1be68f){var _0x2e39bb=_0x1417ed;return this[_0x2e39bb(0x130)][_0x2e39bb(0x137)](_0x1be68f),_0x43f7c0(()=>this[_0x2e39bb(0x130)]['delete'](_0x1be68f));}['shouldShareOperation'](_0x36c524){var _0x364373=_0x1417ed;return this[_0x364373(0x19e)][_0x364373(0x197)](_0x36c524);}[_0x1417ed(0x155)](_0x17c413){var _0x372163=_0x1417ed;return Array['from'](this[_0x372163(0x130)])[_0x372163(0x153)](_0x1586db=>_0x1586db(_0x17c413));}}var Ee=Object[_0x1417ed(0x14a)],we=(_0x33a9ca,_0x3458b9,_0xaf98c1,_0x4ae744)=>{var _0x7f7fea=_0x1417ed;for(var _0x483166=_0x4ae744>0x1?void 0x0:_0x4ae744?Ee(_0x3458b9,_0xaf98c1):_0x3458b9,_0x41381d=_0x33a9ca[_0x7f7fea(0x193)]-0x1,_0x329c99;_0x41381d>=0x0;_0x41381d--)(_0x329c99=_0x33a9ca[_0x41381d])&&(_0x483166=_0x329c99(_0x483166)||_0x483166);return _0x483166;},Ne=(_0x1a8c75,_0x31d132)=>(_0x13a208,_0x25c2c2)=>_0x31d132(_0x13a208,_0x25c2c2,_0x1a8c75);let m=class extends _0x5a3c0b{constructor(_0x2fd2c4){var _0x35ab14=_0x1417ed;super(),this['_liveShareService']=_0x2fd2c4,this[_0x35ab14(0x122)]();}['_init'](){var _0xe80d53=_0x1417ed;[_0x5be70f['id'],_0x311d77['id'],_0x54985f['id']][_0xe80d53(0x13e)](_0x3313a1=>{var _0x2ab749=_0xe80d53;this[_0x2ab749(0x11c)](this[_0x2ab749(0x115)][_0x2ab749(0x19b)](_0x3313a1));});}};m=we([Ne(0x0,_0x3142fa(L))],m);var c=function(){var _0x23bb98=_0x1417ed;return c=Object[_0x23bb98(0x136)]||function(_0x2c7cc4){var _0x4a7abf=_0x23bb98;for(var _0xcae639,_0x176a73=0x1,_0x4fc87d=arguments[_0x4a7abf(0x193)];_0x176a73<_0x4fc87d;_0x176a73++){_0xcae639=arguments[_0x176a73];for(var _0x3cf261 in _0xcae639)Object[_0x4a7abf(0x18d)][_0x4a7abf(0x151)][_0x4a7abf(0x171)](_0xcae639,_0x3cf261)&&(_0x2c7cc4[_0x3cf261]=_0xcae639[_0x3cf261]);}return _0x2c7cc4;},c[_0x23bb98(0x1a3)](this,arguments);},Ce=function(_0x2da5e5,_0x228cfd){var _0x2dd034=_0x1417ed,_0x2ee1e3={};for(var _0x10e485 in _0x2da5e5)Object[_0x2dd034(0x18d)][_0x2dd034(0x151)][_0x2dd034(0x171)](_0x2da5e5,_0x10e485)&&_0x228cfd[_0x2dd034(0x1b3)](_0x10e485)<0x0&&(_0x2ee1e3[_0x10e485]=_0x2da5e5[_0x10e485]);if(_0x2da5e5!=null&&typeof Object[_0x2dd034(0x157)]==_0x2dd034(0x133)){for(var _0x26c3da=0x0,_0x10e485=Object[_0x2dd034(0x157)](_0x2da5e5);_0x26c3da<_0x10e485['length'];_0x26c3da++)_0x228cfd[_0x2dd034(0x1b3)](_0x10e485[_0x26c3da])<0x0&&Object[_0x2dd034(0x18d)]['propertyIsEnumerable'][_0x2dd034(0x171)](_0x2da5e5,_0x10e485[_0x26c3da])&&(_0x2ee1e3[_0x10e485[_0x26c3da]]=_0x2da5e5[_0x10e485[_0x26c3da]]);}return _0x2ee1e3;},W=_0x5e8b1c(function(_0xc5934c,_0x3c1df8){var _0xa61875=_0x1417ed,_0x316632=_0xc5934c['icon'],_0x27b20d=_0xc5934c['id'],_0xfbf706=_0xc5934c[_0xa61875(0x16b)],_0x4512f9=_0xc5934c[_0xa61875(0x117)],_0x302a2a=Ce(_0xc5934c,[_0xa61875(0x169),'id','className','extend']),_0x532f22='univerjs-icon\x20univerjs-icon-'[_0xa61875(0x17c)](_0x27b20d,'\x20')[_0xa61875(0x17c)](_0xfbf706||'')[_0xa61875(0x13b)](),_0x40e443=_0x2d4b3b('_'[_0xa61875(0x17c)](Le()));return Y(_0x316632,''[_0xa61875(0x17c)](_0x27b20d),{'defIds':_0x316632[_0xa61875(0x183)],'idSuffix':_0x40e443['current']},c({'ref':_0x3c1df8,'className':_0x532f22},_0x302a2a),_0x4512f9);});function Y(_0x3075d2,_0x58b116,_0x321f34,_0x24eb03,_0x2c13d6){var _0x458537=_0x1417ed;return _0x162003(_0x3075d2[_0x458537(0x12a)],c(c({'key':_0x58b116},De(_0x3075d2,_0x321f34,_0x2c13d6)),_0x24eb03),(xe(_0x3075d2,_0x321f34)[_0x458537(0x11f)]||[])['map'](function(_0x5d3042,_0xe1a8f4){var _0x2dfab3=_0x458537;return Y(_0x5d3042,''['concat'](_0x58b116,'-')[_0x2dfab3(0x17c)](_0x3075d2[_0x2dfab3(0x12a)],'-')[_0x2dfab3(0x17c)](_0xe1a8f4),_0x321f34,void 0x0,_0x2c13d6);}));}function De(_0x5e7d4b,_0x36c65c,_0x16cada){var _0x21dc7d=_0x1417ed,_0x5e149d=c({},_0x5e7d4b['attrs']);_0x16cada!=null&&_0x16cada[_0x21dc7d(0x14b)]&&_0x5e149d['fill']===_0x21dc7d(0x14b)&&(_0x5e149d[_0x21dc7d(0x1bb)]=_0x16cada[_0x21dc7d(0x14b)]),_0x5e7d4b[_0x21dc7d(0x12a)]===_0x21dc7d(0x135)&&_0x5e149d['id']&&(_0x5e149d['id']=_0x5e149d['id']+_0x36c65c[_0x21dc7d(0x11e)]),Object[_0x21dc7d(0x167)](_0x5e149d)[_0x21dc7d(0x13e)](function(_0xe63e9c){var _0x46fd15=_0x21dc7d,_0x2188d3=_0xe63e9c[0x0],_0xe0386=_0xe63e9c[0x1];_0x2188d3===_0x46fd15(0x135)&&typeof _0xe0386==_0x46fd15(0x1b2)&&(_0x5e149d[_0x2188d3]=_0xe0386[_0x46fd15(0x1b6)](/url\(#(.*)\)/,_0x46fd15(0x112)['concat'](_0x36c65c[_0x46fd15(0x11e)],')')));});var _0x2e9c5e=_0x36c65c['defIds'];return!_0x2e9c5e||_0x2e9c5e[_0x21dc7d(0x193)]===0x0||(_0x5e7d4b[_0x21dc7d(0x12a)]===_0x21dc7d(0x174)&&_0x5e149d['xlink:href']&&(_0x5e149d[_0x21dc7d(0x16d)]=_0x5e149d[_0x21dc7d(0x16d)]+_0x36c65c[_0x21dc7d(0x11e)]),Object[_0x21dc7d(0x167)](_0x5e149d)['forEach'](function(_0x2b5da4){var _0x48a09f=_0x21dc7d,_0x251aff=_0x2b5da4[0x0],_0x3433f6=_0x2b5da4[0x1];typeof _0x3433f6==_0x48a09f(0x1b2)&&(_0x5e149d[_0x251aff]=_0x3433f6['replace'](/url\(#(.*)\)/,_0x48a09f(0x112)[_0x48a09f(0x17c)](_0x36c65c[_0x48a09f(0x11e)],')')));})),_0x5e149d;}function xe(_0x4c07b0,_0xd3c48){var _0xe12aa4=_0x1417ed,_0x1257f0,_0x1a4732=_0xd3c48[_0xe12aa4(0x183)];return!_0x1a4732||_0x1a4732[_0xe12aa4(0x193)]===0x0?_0x4c07b0:_0x4c07b0['tag']===_0xe12aa4(0x118)&&(!((_0x1257f0=_0x4c07b0[_0xe12aa4(0x11f)])===null||_0x1257f0===void 0x0)&&_0x1257f0[_0xe12aa4(0x193)])?c(c({},_0x4c07b0),{'children':_0x4c07b0[_0xe12aa4(0x11f)][_0xe12aa4(0x153)](function(_0x177973){var _0x2939a8=_0xe12aa4;return typeof _0x177973['attrs']['id']==_0x2939a8(0x1b2)&&_0x1a4732&&_0x1a4732['includes'](_0x177973[_0x2939a8(0x185)]['id'])?c(c({},_0x177973),{'attrs':c(c({},_0x177973[_0x2939a8(0x185)]),{'id':_0x177973[_0x2939a8(0x185)]['id']+_0xd3c48[_0x2939a8(0x11e)]})}):_0x177973;})}):_0x4c07b0;}function Le(){var _0x1e2b08=_0x1417ed;return Math[_0x1e2b08(0x124)]()['toString'](0x24)[_0x1e2b08(0x116)](0x2,0x8);}W[_0x1417ed(0x190)]='UniverIcon';var ye={'tag':_0x1417ed(0x15d),'attrs':{'xmlns':_0x1417ed(0x10e),'fill':'none','viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x1417ed(0x13d)},'children':[{'tag':_0x1417ed(0x146),'attrs':{'fill':_0x1417ed(0x14f),'d':_0x1417ed(0x132)}},{'tag':_0x1417ed(0x146),'attrs':{'fill':_0x1417ed(0x14f),'d':_0x1417ed(0x127),'fillRule':'evenodd','clipRule':_0x1417ed(0x134)}}]},B=_0x5e8b1c(function(_0x22d22e,_0x3bd02a){var _0xb176a5=_0x1417ed;return _0x162003(W,Object[_0xb176a5(0x136)]({},_0x22d22e,{'id':_0xb176a5(0x14c),'ref':_0x3bd02a,'icon':ye}));});B['displayName']=_0x1417ed(0x178);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x45393f,_0x3651d7,_0x3e0be9,_0x4e2e2a)=>{for(var _0x4cb65f=_0x4e2e2a>0x1?void 0x0:_0x4e2e2a?Re(_0x3651d7,_0x3e0be9):_0x3651d7,_0x366109=_0x45393f['length']-0x1,_0x77834e;_0x366109>=0x0;_0x366109--)(_0x77834e=_0x45393f[_0x366109])&&(_0x4cb65f=_0x77834e(_0x4cb65f)||_0x4cb65f);return _0x4cb65f;},f=(_0x1ff030,_0x298994)=>(_0x11093e,_0x4a1a2e)=>_0x298994(_0x11093e,_0x4a1a2e,_0x1ff030);let I=class extends _0x43b34b{constructor(_0x2f77c3,_0x56075c,_0x441d88){var _0x9008d0=_0x1417ed;super(),d(this,_0x9008d0(0x12f),new Map()),(this[_0x9008d0(0x194)]=_0x2f77c3,this[_0x9008d0(0x161)]=_0x56075c,this[_0x9008d0(0x199)]=_0x441d88,this['_init']());}async[_0x1417ed(0x13a)](_0x3e06cf){var _0x2f5b2c=_0x1417ed;return this['_entities']['has'](_0x3e06cf)||await this[_0x2f5b2c(0x1b5)](_0x3e06cf),this[_0x2f5b2c(0x12f)][_0x2f5b2c(0x170)](_0x3e06cf);}[_0x1417ed(0x122)](){var _0x53d390=_0x1417ed;this['_univerInstanceService'][_0x53d390(0x11a)](_0x2f6889[_0x53d390(0x111)])[_0x53d390(0x154)](_0x2a9ec6(this[_0x53d390(0x15e)]))['subscribe'](async _0x23b194=>{var _0x5f0077=_0x53d390;const _0x8251e3=_0x23b194[_0x5f0077(0x17b)]();this[_0x5f0077(0x12f)][_0x5f0077(0x197)](_0x8251e3)||this[_0x5f0077(0x1b5)](_0x8251e3);}),this['_univerInstanceService'][_0x53d390(0x1ba)](_0x2f6889['UNIVER_SHEET'])['pipe'](_0x2a9ec6(this[_0x53d390(0x15e)]))['subscribe'](_0x3b9ce5=>{var _0x427c3e=_0x53d390;const _0x36f4be=_0x3b9ce5[_0x427c3e(0x17b)](),_0x49269a=this[_0x427c3e(0x12f)][_0x427c3e(0x170)](_0x36f4be);_0x49269a==null||_0x49269a[_0x427c3e(0x142)]();});}async[_0x1417ed(0x1b5)](_0x30167a){var _0xff65f3=_0x1417ed;const _0x24fe6d=await this[_0xff65f3(0x199)]['requireSession'](_0x30167a),_0x50b01c=this[_0xff65f3(0x161)][_0xff65f3(0x1ab)](C,_0x30167a,_0x24fe6d);return _0x50b01c[_0xff65f3(0x177)](),this[_0xff65f3(0x12f)][_0xff65f3(0x16e)](_0x30167a,_0x50b01c),_0x50b01c;}};I=Z([f(0x0,_0x31ab04),f(0x1,_0x3142fa(_0x4c551c)),f(0x2,_0x3142fa(_0x992e83))],I);var h=(_0x3995cb=>(_0x3995cb['OFFLINE']=_0x1417ed(0x198),_0x3995cb[_0x1417ed(0x173)]=_0x1417ed(0x1b4),_0x3995cb['FOLLOWING']=_0x1417ed(0x163),_0x3995cb[_0x1417ed(0x186)]=_0x1417ed(0x120),_0x3995cb[_0x1417ed(0x13f)]='presenting',_0x3995cb))(h||{});const Pe=_0x1417ed(0x17e),Ae=0xc8;let C=class extends _0x43b34b{constructor(_0x333b9f,_0x4b5bb6,_0x3a8405,_0x5745f4,_0x3ee481){var _0x433f1b=_0x1417ed;super(),d(this,_0x433f1b(0x189),new _0x475cf9(_0x433f1b(0x1b4))),d(this,_0x433f1b(0x196),this[_0x433f1b(0x189)][_0x433f1b(0x181)]()),d(this,_0x433f1b(0x122),!0x1),d(this,_0x433f1b(0x1ae),null),d(this,_0x433f1b(0x123),null),(this[_0x433f1b(0x1a1)]=_0x333b9f,this[_0x433f1b(0x13c)]=_0x4b5bb6,this[_0x433f1b(0x12e)]=_0x3a8405,this[_0x433f1b(0x115)]=_0x5745f4,this[_0x433f1b(0x159)]=_0x3ee481);}get['_status'](){var _0x2914bf=_0x1417ed;return this['_status$'][_0x2914bf(0x1a6)]();}[_0x1417ed(0x142)](){var _0x1acffc=_0x1417ed,_0x597ddd;(_0x597ddd=this[_0x1acffc(0x1ae)])==null||_0x597ddd[_0x1acffc(0x142)](),this[_0x1acffc(0x189)][_0x1acffc(0x149)](_0x1acffc(0x1b4)),this[_0x1acffc(0x189)][_0x1acffc(0x10d)]();}['init'](){var _0x38ab34=_0x1417ed;this[_0x38ab34(0x122)]||(this[_0x38ab34(0x122)]=!0x0,this[_0x38ab34(0x13c)][_0x38ab34(0x148)][_0x38ab34(0x154)](_0x2a9ec6(this['dispose$']))[_0x38ab34(0x143)](_0x4576e8=>{var _0xd71608=_0x38ab34;switch(_0x4576e8){case _0x5f16b5[_0xd71608(0x172)]:this['_handleOffline']();break;case _0x5f16b5[_0xd71608(0x1aa)]:this[_0xd71608(0x176)]();break;}}),this[_0x38ab34(0x13c)][_0x38ab34(0x1a7)]['pipe'](_0x2a9ec6(this[_0x38ab34(0x15e)]))[_0x38ab34(0x143)](_0x5bb15f=>{var _0x53c101=_0x38ab34;const {eventID:_0xc5f6c5}=_0x5bb15f;switch(_0xc5f6c5){case _0x7a9ef0['LIVESHARE_NEW_HOST']:this[_0x53c101(0x17d)](_0x5bb15f);break;case _0x7a9ef0['LIVESHARE_OPERATION']:this[_0x53c101(0x140)](_0x5bb15f);break;case _0x7a9ef0[_0x53c101(0x125)]:this['_handleTerminate']();break;case _0x7a9ef0[_0x53c101(0x150)]:this[_0x53c101(0x192)](_0x5bb15f);break;}}));}[_0x1417ed(0x162)](){var _0x12858b=_0x1417ed;this['_collabSession'][_0x12858b(0x19d)]({'eventID':_0x7a9ef0[_0x12858b(0x175)],'data':{'unitID':this[_0x12858b(0x1a1)],'userID':this[_0x12858b(0x13c)][_0x12858b(0x12c)]()}},this[_0x12858b(0x1a1)]);}[_0x1417ed(0x128)](){var _0x2c091f=_0x1417ed;this[_0x2c091f(0x126)]===_0x2c091f(0x114)&&(this[_0x2c091f(0x189)][_0x2c091f(0x149)]('idle'),this[_0x2c091f(0x13c)][_0x2c091f(0x19d)]({'eventID':_0x7a9ef0[_0x2c091f(0x125)],'data':{'unitID':this['_unitID']}},this[_0x2c091f(0x1a1)]));}[_0x1417ed(0x12d)](){var _0x2a771f=_0x1417ed;this[_0x2a771f(0x126)]===_0x2a771f(0x120)&&(this[_0x2a771f(0x189)][_0x2a771f(0x149)](_0x2a771f(0x163)),this['_startFollowing']());}[_0x1417ed(0x195)](){var _0x208882=_0x1417ed;this[_0x208882(0x126)]==='following'&&this[_0x208882(0x131)]();}[_0x1417ed(0x17d)](_0x542ebd){var _0x14bc5e=_0x1417ed;const {presenter:_0x3037ee}=_0x542ebd[_0x14bc5e(0x18c)],_0x4c374e=this[_0x14bc5e(0x13c)][_0x14bc5e(0x12c)]();this['_presenter']=_0x3037ee,_0x3037ee===_0x4c374e?(this[_0x14bc5e(0x131)](),this[_0x14bc5e(0x1b9)]()):this[_0x14bc5e(0x126)]!==_0x14bc5e(0x120)&&(this[_0x14bc5e(0x110)](),this[_0x14bc5e(0x16a)]());}[_0x1417ed(0x165)](){var _0x5a179f=_0x1417ed;const _0x30c160={'eventID':_0x7a9ef0[_0x5a179f(0x12b)]};this[_0x5a179f(0x13c)][_0x5a179f(0x19d)](_0x30c160,this[_0x5a179f(0x1a1)]);}['_handleTerminate'](){var _0x10dac6=_0x1417ed;this[_0x10dac6(0x123)]=null,this[_0x10dac6(0x126)]!==_0x10dac6(0x114)&&this[_0x10dac6(0x180)]();}[_0x1417ed(0x192)](_0x5c3fb3){var _0x13dcd6=_0x1417ed;if(this[_0x13dcd6(0x126)]===_0x13dcd6(0x163)&&this[_0x13dcd6(0x123)]===_0x5c3fb3[_0x13dcd6(0x18c)][_0x13dcd6(0x141)]){const _0x32364a=_0x4991b8(_0x5c3fb3[_0x13dcd6(0x18c)])['mutations'][_0x13dcd6(0x182)]()['find'](_0x4f2892=>_0x4f2892['id']===_0x1a5c5c['id']);if(_0x32364a){const _0xe2b4f6=_0x32364a[_0x13dcd6(0x1a4)][_0x13dcd6(0x11b)],_0x3f3d2d=_0x32364a[_0x13dcd6(0x1a4)]['sheet']['id'];setTimeout(()=>{var _0x1bc2d8=_0x13dcd6;this[_0x1bc2d8(0x159)][_0x1bc2d8(0x144)](_0x54985f['id'],{'unitId':_0xe2b4f6,'subUnitId':_0x3f3d2d},{'fromCollab':!0x0});});}}}[_0x1417ed(0x1b9)](){var _0x36c8f1=_0x1417ed;this[_0x36c8f1(0x189)][_0x36c8f1(0x149)](_0x36c8f1(0x114));const _0xe49221=new Map(),_0x221ec6=this[_0x36c8f1(0x1ae)]=new _0x40642a();_0x221ec6[_0x36c8f1(0x137)](_0x43f7c0(()=>{var _0x16aef8=_0x36c8f1;_0xe49221[_0x16aef8(0x13e)](_0x4746af=>_0x4746af[_0x16aef8(0x10d)]()),_0xe49221[_0x16aef8(0x184)]();})),_0x221ec6['add'](this[_0x36c8f1(0x159)][_0x36c8f1(0x19a)](_0x49a3bb=>{var _0x59df2e=_0x36c8f1,_0x56d8aa;if(_0x49a3bb['type']!==_0x4ad824[_0x59df2e(0x14d)]||!this[_0x59df2e(0x115)][_0x59df2e(0x10f)](_0x49a3bb['id']))return;const {id:_0x4ca71f}=_0x49a3bb;let _0x6b85aa;_0xe49221['has'](_0x4ca71f)?_0x6b85aa=_0xe49221[_0x59df2e(0x170)](_0x4ca71f):(_0x6b85aa=new _0x510d81(),_0xe49221['set'](_0x4ca71f,_0x6b85aa),_0x6b85aa['pipe'](_0x1efbf4((_0x56d8aa=this[_0x59df2e(0x12e)][_0x59df2e(0x188)](Pe))!=null?_0x56d8aa:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x59df2e(0x143)](_0x6a5105=>{var _0x322476=_0x59df2e;this[_0x322476(0x13c)][_0x322476(0x19d)]({'eventID':_0x7a9ef0['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x322476(0x1a1)],'operations':{[_0x6a5105['id']]:{'id':_0x6a5105['id'],'params':JSON[_0x322476(0x164)](_0x6a5105[_0x322476(0x1a4)])}}}},this['_unitID']);})),_0x6b85aa[_0x59df2e(0x149)](_0x49a3bb);})),this[_0x36c8f1(0x115)][_0x36c8f1(0x155)](this[_0x36c8f1(0x1a1)])[_0x36c8f1(0x13e)](_0x40ce18=>this[_0x36c8f1(0x13c)][_0x36c8f1(0x19d)]({'eventID':_0x7a9ef0[_0x36c8f1(0x191)],'data':{'unitID':this[_0x36c8f1(0x1a1)],'operations':{[_0x40ce18['id']]:{'id':_0x40ce18['id'],'params':JSON[_0x36c8f1(0x164)](_0x40ce18[_0x36c8f1(0x1a4)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x2aa3a3=_0x1417ed,_0x4a2a2e;this['_status$']['next'](_0x2aa3a3(0x1b4)),(_0x4a2a2e=this[_0x2aa3a3(0x1ae)])==null||_0x4a2a2e[_0x2aa3a3(0x142)](),this[_0x2aa3a3(0x1ae)]=null;}[_0x1417ed(0x16a)](){var _0x59e204=_0x1417ed,_0x148b8f;(_0x148b8f=this['_commandDisposable'])==null||_0x148b8f['dispose'](),this[_0x59e204(0x189)][_0x59e204(0x149)](_0x59e204(0x163));}[_0x1417ed(0x180)](){var _0x1071df=_0x1417ed,_0xcc562;this['_status$'][_0x1071df(0x149)](_0x1071df(0x1b4)),(_0xcc562=this[_0x1071df(0x1ae)])==null||_0xcc562[_0x1071df(0x142)](),this[_0x1071df(0x1ae)]=null;}['_stopFollowing'](){var _0x4d03eb=_0x1417ed,_0x555a3e;this[_0x4d03eb(0x189)][_0x4d03eb(0x149)]('not-following'),(_0x555a3e=this['_commandDisposable'])==null||_0x555a3e[_0x4d03eb(0x142)]();}[_0x1417ed(0x140)](_0x3d4b99){var _0x366818=_0x1417ed;if([_0x366818(0x114),_0x366818(0x120),'offline'][_0x366818(0x168)](this[_0x366818(0x126)])||!_0x3d4b99[_0x366818(0x18c)]['presenter']||_0x3d4b99['data'][_0x366818(0x1a5)]===this[_0x366818(0x13c)][_0x366818(0x12c)]())return;this[_0x366818(0x126)]===_0x366818(0x1b4)&&this['_startFollowing']();const _0x12213b=_0x3d4b99[_0x366818(0x18c)]['operations'];Object['values'](_0x12213b)[_0x366818(0x13e)](_0x2211d8=>{var _0x1fcbb7=_0x366818;this[_0x1fcbb7(0x159)]['executeCommand'](_0x2211d8['id'],_0x2211d8[_0x1fcbb7(0x1a4)]?JSON[_0x1fcbb7(0x15f)](_0x2211d8[_0x1fcbb7(0x1a4)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x7d4c2c=_0x1417ed,_0x2cbec2;this['_status$'][_0x7d4c2c(0x149)](_0x7d4c2c(0x198)),(_0x2cbec2=this[_0x7d4c2c(0x1ae)])==null||_0x2cbec2[_0x7d4c2c(0x142)]();}['_handleOnline'](){var _0x1eb159=_0x1417ed;this[_0x1eb159(0x189)][_0x1eb159(0x149)]('idle'),this[_0x1eb159(0x165)]();}};C=Z([f(0x2,_0x55a2c1),f(0x3,_0x3142fa(L)),f(0x4,_0x1104ab)],C);function Te(){var _0x468cae=_0x1417ed;const _0x7201bc=_0x44e970(I),_0x3969d8=_0x44e970(_0x31ab04),_0x5d4b29=_0x524718(()=>_0x3969d8[_0x468cae(0x15b)](_0x2f6889[_0x468cae(0x111)]),void 0x0,!0x1,[]),[_0xa81dae,_0x23bd15]=_0x11b155(null),[_0x25bd0c,_0xfe1920]=_0x11b155(h[_0x468cae(0x173)]),_0x1df447=_0x2d4b3b(null);return _0x5ef138(()=>(_0x5d4b29&&_0x7201bc['getLiveShareCoordinator'](_0x5d4b29[_0x468cae(0x17b)]())[_0x468cae(0x152)](_0x375d6a=>{var _0xc02cc2=_0x468cae;_0x23bd15(_0x375d6a),_0x1df447[_0xc02cc2(0x156)]=_0x375d6a[_0xc02cc2(0x196)]['subscribe'](_0x2c2761=>{_0xfe1920(_0x2c2761);});}),()=>{var _0x513e54=_0x468cae,_0x95b98d;(_0x95b98d=_0x1df447[_0x513e54(0x156)])==null||_0x95b98d[_0x513e54(0x1a0)](),_0x1df447[_0x513e54(0x156)]=null;}),[_0x5d4b29,_0x7201bc]),_0xa81dae?_0x23cc82(_0x5a9d3c,{'align':'end','disabled':_0x25bd0c===h[_0x468cae(0x172)],'className':_0x468cae(0x145),'overlay':_0x23cc82($e,{'status':_0x25bd0c,'coordinator':_0xa81dae}),'children':_0x23cc82(_0x468cae(0x1b8),{'className':_0x316b45(_0x468cae(0x15c),{'univer-cursor-not-allowed':_0x25bd0c===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x25bd0c!==h[_0x468cae(0x172)]}),'type':_0x468cae(0x1b8),'children':_0x23cc82(B,{'className':_0x468cae(0x1af)})})}):null;}function $e(_0x5b7fef){var _0x53216d=_0x1417ed;const {status:_0x5dd601,coordinator:_0x3a77e8}=_0x5b7fef;switch(_0x5dd601){case h[_0x53216d(0x173)]:return _0x23cc82(Fe,{'coordinator':_0x3a77e8});case h[_0x53216d(0x179)]:return _0x23cc82(He,{'coordinator':_0x3a77e8});case h['NOT_FOLLOWING']:return _0x23cc82(je,{'coordinator':_0x3a77e8});case h['OFFLINE']:return _0x23cc82(Ve,{});case h[_0x53216d(0x13f)]:return _0x23cc82(Ue,{'coordinator':_0x3a77e8});default:return null;}}function Fe(_0xee363a){var _0x304997=_0x1417ed;const {coordinator:_0x2271c5}=_0xee363a;return _0x235d80(_0x20ba1f,{'children':[_0x23cc82(_0x304997(0x113),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x304997(0x18f)}),_0x23cc82(_0x1ff626,{'onClick':()=>_0x2271c5['tryStartPresenting'](),'children':_0x304997(0x11d)})]});}function He(_0x37b298){var _0x1d573a=_0x1417ed;const {coordinator:_0xf7412f}=_0x37b298;return _0x235d80(_0x20ba1f,{'children':[_0x23cc82(_0x1d573a(0x113),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x1d573a(0x158)}),_0x23cc82(_0x1ff626,{'onClick':()=>_0xf7412f[_0x1d573a(0x195)](),'children':_0x1d573a(0x16c)})]});}function je(_0x2fe142){var _0x102a8a=_0x1417ed;const {coordinator:_0x40e6e6}=_0x2fe142;return _0x235d80(_0x20ba1f,{'children':[_0x23cc82(_0x102a8a(0x113),{'className':_0x102a8a(0x17f),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x23cc82(_0x1ff626,{'variant':_0x102a8a(0x160),'onClick':()=>_0x40e6e6[_0x102a8a(0x12d)](),'children':'Start\x20following'})]});}function _0x38a8(_0x335f3f,_0x36edff){var _0x2d2d03=_0x2d2d();return _0x38a8=function(_0x38a81d,_0x553250){_0x38a81d=_0x38a81d-0x10d;var _0x34c252=_0x2d2d03[_0x38a81d];return _0x34c252;},_0x38a8(_0x335f3f,_0x36edff);}function Ue(_0x556db6){var _0x3ce3b5=_0x1417ed;const {coordinator:_0x543b55}=_0x556db6;return _0x235d80(_0x20ba1f,{'children':[_0x23cc82(_0x3ce3b5(0x113),{'className':_0x3ce3b5(0x17f),'children':_0x3ce3b5(0x1a8)}),_0x23cc82(_0x1ff626,{'variant':_0x3ce3b5(0x1a9),'onClick':()=>_0x543b55[_0x3ce3b5(0x128)](),'children':_0x3ce3b5(0x19c)})]});}function Ve(){return _0x23cc82(_0x20ba1f,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x1417ed(0x14a)],ke=(_0x3fa02c,_0x283b3f,_0x2b0b96,_0x118905)=>{var _0x2c4c87=_0x1417ed;for(var _0x18bc7a=_0x118905>0x1?void 0x0:_0x118905?Me(_0x283b3f,_0x2b0b96):_0x283b3f,_0x1f4b9c=_0x3fa02c[_0x2c4c87(0x193)]-0x1,_0x27bb97;_0x1f4b9c>=0x0;_0x1f4b9c--)(_0x27bb97=_0x3fa02c[_0x1f4b9c])&&(_0x18bc7a=_0x27bb97(_0x18bc7a)||_0x18bc7a);return _0x18bc7a;},$=(_0x8d7770,_0x144218)=>(_0x5123be,_0x1763b7)=>_0x144218(_0x5123be,_0x1763b7,_0x8d7770);let b=class extends _0x5a3c0b{constructor(_0x331ab5,_0x16abf2){var _0x550d14=_0x1417ed;super(),this[_0x550d14(0x161)]=_0x331ab5,this[_0x550d14(0x147)]=_0x16abf2,this[_0x550d14(0x19f)]();}[_0x1417ed(0x19f)](){var _0x28c324=_0x1417ed;this[_0x28c324(0x11c)](this[_0x28c324(0x147)][_0x28c324(0x16f)](_0x4fb6b9['HEADER_MENU'],()=>_0x4c37d2(Te,this['_injector'])));}};function _0x2d2d(){var _0x2bb03e=['univer-outline-none\x20univer-text-gray-600\x20univer-border-none','svg','dispose$','parse','text','_injector','tryStartPresenting','following','stringify','_fetchOperations','pluginName','entries','includes','icon','_startFollowing','className','Stop\x20following','xlink:href','set','registerComponent','get','call','OFFLINE','IDLE','use','LIVESHARE_REQUEST_HOST','_handleOnline','init','LiveShareIcon','FOLLOWING','15102370XoEYxP','getUnitId','concat','_handleNewHost','SAME_OPERATION_SHARE_INTERVAL','univer-w-full\x20univer-mb-3\x20univer-text-sm','_beIdle','asObservable','reverse','defIds','clear','attrs','NOT_FOLLOWING','1250464eDFpMg','getConfig','_status$','onStarting','2576672wkaHdv','data','prototype','846450tYrfMF','Present\x20this\x20document','displayName','LIVESHARE_OPERATION','_handleNewChangeSets','length','_univerInstanceService','stopFollowing','status$','has','offline','_collabSessionService','onCommandExecuted','registerSharedOperation','Stop\x20presenting','send','_sharedOperations','_mountLiveShare','unsubscribe','_unitID','6395767TLhpDX','apply','params','presenter','getValue','event$','You\x27re\x20presenting\x20the\x20document','default','ONLINE','createInstance','defineProperty','24ISppoY','_commandDisposable','univer-size-4','delete','5305437Cvamun','string','indexOf','idle','_startLiveShareCoordinator','replace','19692oYXNJf','button','_startPresenting','getTypeOfUnitDisposed$','fill','complete','http://www.w3.org/2000/svg','shouldShareOperation','_stopPresenting','UNIVER_SHEET','url(#$1','div','presenting','_liveShareService','substring','extend','defs','type','getTypeOfUnitAdded$','unitId','disposeWithMe','Start','idSuffix','children','not-following','9bvlHRi','_init','_presenter','random','LIVESHARE_TERMINATE','_status','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','stopPresenting','_config','tag','LIVESHARE_FETCH_OPERATIONS','getMemberID','startFollowing','_configService','_entities','_reporters','_stopFollowing','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','function','evenodd','mask','assign','add','symbol','live-share.config','getLiveShareCoordinator','trim','_collabSession','1em','forEach','PRESENTING','_handleOperation','memberID','dispose','subscribe','executeCommand','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','path','_uiPartsService','sessionStatus$','next','getOwnPropertyDescriptor','colorChannel1','live-share-icon','OPERATION','UNIVER_LIVE_SHARE_PLUGIN','currentColor','NEW_CHANGESETS','hasOwnProperty','then','map','pipe','getInitialStates','current','getOwnPropertySymbols','You\x27re\x20following\x20the\x20presenter','_commandService','8blFErg','getCurrentTypeOfUnit$'];_0x2d2d=function(){return _0x2bb03e;};return _0x2d2d();}b=ke([$(0x0,_0x3142fa(_0x4c551c)),$(0x1,_0xdcb7a5)],b);var Ge=Object[_0x1417ed(0x1ac)],We=Object[_0x1417ed(0x14a)],Ye=(_0x59a5eb,_0x4c8de9,_0xb1bf66)=>_0x4c8de9 in _0x59a5eb?Ge(_0x59a5eb,_0x4c8de9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb1bf66}):_0x59a5eb[_0x4c8de9]=_0xb1bf66,Be=(_0x1a5d5f,_0x5c85f7,_0x1ecc67,_0x349534)=>{var _0x3fdc87=_0x1417ed;for(var _0x560444=_0x349534>0x1?void 0x0:_0x349534?We(_0x5c85f7,_0x1ecc67):_0x5c85f7,_0x46a87f=_0x1a5d5f[_0x3fdc87(0x193)]-0x1,_0x10b00e;_0x46a87f>=0x0;_0x46a87f--)(_0x10b00e=_0x1a5d5f[_0x46a87f])&&(_0x560444=_0x10b00e(_0x560444)||_0x560444);return _0x560444;},F=(_0x263ce5,_0x258416)=>(_0x4af064,_0x1ca4ff)=>_0x258416(_0x4af064,_0x1ca4ff,_0x263ce5),J=(_0xdfd840,_0x4e429a,_0x1ed0d6)=>Ye(_0xdfd840,typeof _0x4e429a!=_0x1417ed(0x138)?_0x4e429a+'':_0x4e429a,_0x1ed0d6);const Ze=_0x1417ed(0x14e);let O=class extends _0x2eea43{constructor(_0x3f756d=T,_0x55ed3b,_0x3b3127){var _0x480564=_0x1417ed;super(),this['_config']=_0x3f756d,this[_0x480564(0x161)]=_0x55ed3b,this[_0x480564(0x12e)]=_0x3b3127;const {..._0x1897fc}=_0x2c031d({},T,this[_0x480564(0x129)]);this[_0x480564(0x12e)]['setConfig'](Oe,_0x1897fc);}[_0x1417ed(0x18a)](){_0x1d739e(this['_injector'],_0x2f04b4([[L],[I],[m],[b]],this['_config']['override'])),_0x560cdb(this['_injector'],[[m]]);}['onRendered'](){var _0x247a81=_0x1417ed;_0x560cdb(this[_0x247a81(0x161)],[[b]]);}};J(O,_0x1417ed(0x119),_0x2f6889['UNIVER_UNKNOWN']),J(O,_0x1417ed(0x166),Ze),O=Be([_0x2af3cb(_0x1c676a),F(0x1,_0x3142fa(_0x4c551c)),F(0x2,_0x55a2c1)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x2ae16c=_0x2506;(function(_0x3fd78d,_0x29fb1c){var _0x2fcd18=_0x2506,_0x26cd98=_0x3fd78d();while(!![]){try{var _0x4e9bd7=parseInt(_0x2fcd18(0x1bf))/0x1+parseInt(_0x2fcd18(0x190))/0x2+-parseInt(_0x2fcd18(0x1b6))/0x3+parseInt(_0x2fcd18(0x1b2))/0x4+-parseInt(_0x2fcd18(0x1e4))/0x5*(parseInt(_0x2fcd18(0x1d6))/0x6)+-parseInt(_0x2fcd18(0x1bc))/0x7+parseInt(_0x2fcd18(0x1fb))/0x8*(parseInt(_0x2fcd18(0x21f))/0x9);if(_0x4e9bd7===_0x29fb1c)break;else _0x26cd98['push'](_0x26cd98['shift']());}catch(_0x1f489d){_0x26cd98['push'](_0x26cd98['shift']());}}}(_0x5400,0x51358));var q=Object[_0x2ae16c(0x1a6)],z=(_0x22255e,_0x548d99,_0x376ca9)=>_0x548d99 in _0x22255e?q(_0x22255e,_0x548d99,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x376ca9}):_0x22255e[_0x548d99]=_0x376ca9,d=(_0x4467b5,_0x5b9072,_0x4fd19f)=>z(_0x4467b5,typeof _0x5b9072!='symbol'?_0x5b9072+'':_0x5b9072,_0x4fd19f);import{CollaborationSessionService as _0x4f5af2,SessionStatus as _0x4d71b3,UniverCollaborationClientPlugin as _0x27f278}from'@univerjs-pro/collaboration-client';import{Disposable as _0x2ccbb9,toDisposable as _0x38901e,Inject as _0x593737,IUniverInstanceService as _0x1a7ea1,Injector as _0xe7680d,IConfigService as _0x1ad72f,ICommandService as _0x560e7e,RxDisposable as _0x55e2fc,UniverInstanceType as _0x42ee76,DisposableCollection as _0x2221d0,CommandType as _0x25c528,DependentOn as _0x46cf58,Plugin as _0x463199,merge as _0x54fc87,registerDependencies as _0x3f2cd6,mergeOverrideWithDependencies as _0x43b81e,touchDependencies as _0x5144c9}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x156019,InsertSheetMutation as _0x2adb2e}from'@univerjs/sheets';import{SetZoomRatioOperation as _0xc12c9e,SetScrollOperation as _0x21e91d}from'@univerjs/sheets-ui';import{useDependency as _0x1d89de,useObservable as _0x19ab69,IUIPartsService as _0x5f57dd,BuiltInUIPart as _0x596006,connectInjector as _0x9eed15}from'@univerjs/ui';import{jsx as _0xa8e486,jsxs as _0x1f8228,Fragment as _0xa79dd}from'react/jsx-runtime';import{Dropdown as _0x524d08,clsx as _0x4589dc,Button as _0x2cd243}from'@univerjs/design';import{forwardRef as _0x53f5e8,useRef as _0x19b438,createElement as _0x43b2f6,useState as _0x2c2ba0,useEffect as _0x5d5c39}from'react';import{CollaborationEvent as _0x3d2fa7,parseProtocolChangeset as _0x5e0ea2}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x1f3e9c,Subject as _0x26d562}from'rxjs';import{takeUntil as _0x4dbea4,throttleTime as _0xa3d9ff}from'rxjs/operators';const Oe=_0x2ae16c(0x1c3),T={};class L extends _0x2ccbb9{constructor(){var _0x21b4b5=_0x2ae16c;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x21b4b5(0x1ea),new Set());}[_0x2ae16c(0x222)](_0x3cb7f1){var _0x296ce5=_0x2ae16c;return this[_0x296ce5(0x218)][_0x296ce5(0x1cb)](_0x3cb7f1),_0x38901e(()=>this['_sharedOperations'][_0x296ce5(0x1d0)](_0x3cb7f1));}['registerInitialStateReporter'](_0x3dd980){var _0x51358e=_0x2ae16c;return this[_0x51358e(0x1ea)][_0x51358e(0x1cb)](_0x3dd980),_0x38901e(()=>this[_0x51358e(0x1ea)]['delete'](_0x3dd980));}['shouldShareOperation'](_0x1d4a24){var _0x1d4501=_0x2ae16c;return this[_0x1d4501(0x218)][_0x1d4501(0x19b)](_0x1d4a24);}[_0x2ae16c(0x1c9)](_0x266566){var _0x264bc4=_0x2ae16c;return Array[_0x264bc4(0x229)](this[_0x264bc4(0x1ea)])[_0x264bc4(0x214)](_0x3989aa=>_0x3989aa(_0x266566));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x1426e2,_0x488f93,_0x415448,_0x58260e)=>{var _0x32aac6=_0x2ae16c;for(var _0x2a9642=_0x58260e>0x1?void 0x0:_0x58260e?Ee(_0x488f93,_0x415448):_0x488f93,_0xe27a18=_0x1426e2[_0x32aac6(0x1d1)]-0x1,_0x1ab13d;_0xe27a18>=0x0;_0xe27a18--)(_0x1ab13d=_0x1426e2[_0xe27a18])&&(_0x2a9642=_0x1ab13d(_0x2a9642)||_0x2a9642);return _0x2a9642;},Ne=(_0x4d4418,_0x4ed351)=>(_0x52cc34,_0x4dd922)=>_0x4ed351(_0x52cc34,_0x4dd922,_0x4d4418);let m=class extends _0x2ccbb9{constructor(_0x40181d){var _0x35a70b=_0x2ae16c;super(),this['_liveShareService']=_0x40181d,this[_0x35a70b(0x22e)]();}['_init'](){var _0x20d9e0=_0x2ae16c;[_0xc12c9e['id'],_0x21e91d['id'],_0x156019['id']][_0x20d9e0(0x226)](_0x3209c5=>{var _0x145342=_0x20d9e0;this[_0x145342(0x199)](this['_liveShareService'][_0x145342(0x222)](_0x3209c5));});}};m=we([Ne(0x0,_0x593737(L))],m);var c=function(){var _0x1e67d5=_0x2ae16c;return c=Object[_0x1e67d5(0x1fd)]||function(_0x3e3853){var _0x242cbe=_0x1e67d5;for(var _0x7c648f,_0x4588ea=0x1,_0x4de5de=arguments['length'];_0x4588ea<_0x4de5de;_0x4588ea++){_0x7c648f=arguments[_0x4588ea];for(var _0x1cf573 in _0x7c648f)Object[_0x242cbe(0x1c4)][_0x242cbe(0x1a7)][_0x242cbe(0x1dc)](_0x7c648f,_0x1cf573)&&(_0x3e3853[_0x1cf573]=_0x7c648f[_0x1cf573]);}return _0x3e3853;},c[_0x1e67d5(0x1b1)](this,arguments);},Ce=function(_0x43a552,_0x593e36){var _0x31a51e=_0x2ae16c,_0x18593e={};for(var _0x58f84e in _0x43a552)Object['prototype']['hasOwnProperty']['call'](_0x43a552,_0x58f84e)&&_0x593e36[_0x31a51e(0x211)](_0x58f84e)<0x0&&(_0x18593e[_0x58f84e]=_0x43a552[_0x58f84e]);if(_0x43a552!=null&&typeof Object['getOwnPropertySymbols']==_0x31a51e(0x1ad)){for(var _0x2c35f2=0x0,_0x58f84e=Object[_0x31a51e(0x1ba)](_0x43a552);_0x2c35f2<_0x58f84e[_0x31a51e(0x1d1)];_0x2c35f2++)_0x593e36[_0x31a51e(0x211)](_0x58f84e[_0x2c35f2])<0x0&&Object[_0x31a51e(0x1c4)][_0x31a51e(0x198)][_0x31a51e(0x1dc)](_0x43a552,_0x58f84e[_0x2c35f2])&&(_0x18593e[_0x58f84e[_0x2c35f2]]=_0x43a552[_0x58f84e[_0x2c35f2]]);}return _0x18593e;},W=_0x53f5e8(function(_0x3fda35,_0x380b7){var _0x59fc05=_0x2ae16c,_0x29aab6=_0x3fda35[_0x59fc05(0x1bb)],_0x57cb8b=_0x3fda35['id'],_0x3f393e=_0x3fda35[_0x59fc05(0x20c)],_0x3abd3a=_0x3fda35[_0x59fc05(0x232)],_0x5a9bc8=Ce(_0x3fda35,['icon','id',_0x59fc05(0x20c),_0x59fc05(0x232)]),_0x1b4bc5=_0x59fc05(0x1b9)[_0x59fc05(0x1f6)](_0x57cb8b,'\x20')['concat'](_0x3f393e||'')['trim'](),_0x2aa5bd=_0x19b438('_'[_0x59fc05(0x1f6)](Le()));return Y(_0x29aab6,''[_0x59fc05(0x1f6)](_0x57cb8b),{'defIds':_0x29aab6[_0x59fc05(0x20a)],'idSuffix':_0x2aa5bd[_0x59fc05(0x1d7)]},c({'ref':_0x380b7,'className':_0x1b4bc5},_0x5a9bc8),_0x3abd3a);});function Y(_0x15273c,_0x1bd5a4,_0x3baaa2,_0x1ff2ef,_0x1b03a8){var _0x3232e5=_0x2ae16c;return _0x43b2f6(_0x15273c[_0x3232e5(0x21e)],c(c({'key':_0x1bd5a4},De(_0x15273c,_0x3baaa2,_0x1b03a8)),_0x1ff2ef),(xe(_0x15273c,_0x3baaa2)[_0x3232e5(0x1d5)]||[])[_0x3232e5(0x214)](function(_0x3846c5,_0x3f7044){var _0x328c22=_0x3232e5;return Y(_0x3846c5,''[_0x328c22(0x1f6)](_0x1bd5a4,'-')[_0x328c22(0x1f6)](_0x15273c['tag'],'-')[_0x328c22(0x1f6)](_0x3f7044),_0x3baaa2,void 0x0,_0x1b03a8);}));}function De(_0x4f1345,_0x57b3b9,_0x22f553){var _0x3bb106=_0x2ae16c,_0x3a70f2=c({},_0x4f1345[_0x3bb106(0x213)]);_0x22f553!=null&&_0x22f553[_0x3bb106(0x212)]&&_0x3a70f2[_0x3bb106(0x1c2)]==='colorChannel1'&&(_0x3a70f2[_0x3bb106(0x1c2)]=_0x22f553['colorChannel1']),_0x4f1345[_0x3bb106(0x21e)]===_0x3bb106(0x1db)&&_0x3a70f2['id']&&(_0x3a70f2['id']=_0x3a70f2['id']+_0x57b3b9['idSuffix']),Object['entries'](_0x3a70f2)[_0x3bb106(0x226)](function(_0x4cd719){var _0x2399f3=_0x3bb106,_0x263fd5=_0x4cd719[0x0],_0xee1a3f=_0x4cd719[0x1];_0x263fd5==='mask'&&typeof _0xee1a3f==_0x2399f3(0x1d9)&&(_0x3a70f2[_0x263fd5]=_0xee1a3f[_0x2399f3(0x1ae)](/url\(#(.*)\)/,_0x2399f3(0x1c0)[_0x2399f3(0x1f6)](_0x57b3b9[_0x2399f3(0x1e0)],')')));});var _0x51b928=_0x57b3b9[_0x3bb106(0x20a)];return!_0x51b928||_0x51b928[_0x3bb106(0x1d1)]===0x0||(_0x4f1345['tag']===_0x3bb106(0x223)&&_0x3a70f2[_0x3bb106(0x239)]&&(_0x3a70f2[_0x3bb106(0x239)]=_0x3a70f2['xlink:href']+_0x57b3b9['idSuffix']),Object[_0x3bb106(0x19a)](_0x3a70f2)[_0x3bb106(0x226)](function(_0xf98fa5){var _0x203526=_0x3bb106,_0x5e486b=_0xf98fa5[0x0],_0x3ec3fe=_0xf98fa5[0x1];typeof _0x3ec3fe=='string'&&(_0x3a70f2[_0x5e486b]=_0x3ec3fe[_0x203526(0x1ae)](/url\(#(.*)\)/,_0x203526(0x1c0)[_0x203526(0x1f6)](_0x57b3b9[_0x203526(0x1e0)],')')));})),_0x3a70f2;}function xe(_0x41ab13,_0xf1e4e8){var _0x47adb4=_0x2ae16c,_0x53cdf0,_0x2a08b4=_0xf1e4e8[_0x47adb4(0x20a)];return!_0x2a08b4||_0x2a08b4['length']===0x0?_0x41ab13:_0x41ab13[_0x47adb4(0x21e)]==='defs'&&(!((_0x53cdf0=_0x41ab13['children'])===null||_0x53cdf0===void 0x0)&&_0x53cdf0[_0x47adb4(0x1d1)])?c(c({},_0x41ab13),{'children':_0x41ab13[_0x47adb4(0x1d5)]['map'](function(_0x5d5dff){var _0x241b32=_0x47adb4;return typeof _0x5d5dff[_0x241b32(0x213)]['id']==_0x241b32(0x1d9)&&_0x2a08b4&&_0x2a08b4[_0x241b32(0x1b3)](_0x5d5dff[_0x241b32(0x213)]['id'])?c(c({},_0x5d5dff),{'attrs':c(c({},_0x5d5dff[_0x241b32(0x213)]),{'id':_0x5d5dff['attrs']['id']+_0xf1e4e8['idSuffix']})}):_0x5d5dff;})}):_0x41ab13;}function _0x2506(_0xa70875,_0x1422bf){var _0x5400d7=_0x5400();return _0x2506=function(_0x250617,_0x3e3126){_0x250617=_0x250617-0x188;var _0x5bf819=_0x5400d7[_0x250617];return _0x5bf819;},_0x2506(_0xa70875,_0x1422bf);}function Le(){var _0x273f1b=_0x2ae16c;return Math['random']()[_0x273f1b(0x1e7)](0x24)[_0x273f1b(0x231)](0x2,0x8);}W[_0x2ae16c(0x1ce)]='UniverIcon';var ye={'tag':'svg','attrs':{'xmlns':_0x2ae16c(0x1cc),'fill':_0x2ae16c(0x236),'viewBox':_0x2ae16c(0x1e3),'width':_0x2ae16c(0x1e8),'height':_0x2ae16c(0x1e8)},'children':[{'tag':_0x2ae16c(0x1e1),'attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x2ae16c(0x1e1),'attrs':{'fill':_0x2ae16c(0x234),'d':_0x2ae16c(0x1a1),'fillRule':'evenodd','clipRule':_0x2ae16c(0x20f)}}]},B=_0x53f5e8(function(_0x1c22f7,_0x31c8ef){var _0x3f488a=_0x2ae16c;return _0x43b2f6(W,Object[_0x3f488a(0x1fd)]({},_0x1c22f7,{'id':_0x3f488a(0x1fc),'ref':_0x31c8ef,'icon':ye}));});B[_0x2ae16c(0x1ce)]=_0x2ae16c(0x1fa);var Re=Object[_0x2ae16c(0x1c7)],Z=(_0x12f08a,_0x3517cf,_0x227c81,_0x48dac0)=>{var _0x3e37b1=_0x2ae16c;for(var _0x1ac48a=_0x48dac0>0x1?void 0x0:_0x48dac0?Re(_0x3517cf,_0x227c81):_0x3517cf,_0x299efa=_0x12f08a[_0x3e37b1(0x1d1)]-0x1,_0x162a83;_0x299efa>=0x0;_0x299efa--)(_0x162a83=_0x12f08a[_0x299efa])&&(_0x1ac48a=_0x162a83(_0x1ac48a)||_0x1ac48a);return _0x1ac48a;},f=(_0x310962,_0x2a6a15)=>(_0x3fc43e,_0x225e2e)=>_0x2a6a15(_0x3fc43e,_0x225e2e,_0x310962);let I=class extends _0x55e2fc{constructor(_0x5a4353,_0x442e13,_0x5c0453){var _0x1c2fbd=_0x2ae16c;super(),d(this,_0x1c2fbd(0x18f),new Map()),(this[_0x1c2fbd(0x18a)]=_0x5a4353,this[_0x1c2fbd(0x23a)]=_0x442e13,this[_0x1c2fbd(0x1f7)]=_0x5c0453,this[_0x1c2fbd(0x22e)]());}async[_0x2ae16c(0x1a3)](_0x4d6da2){var _0x3011ca=_0x2ae16c;return this[_0x3011ca(0x18f)][_0x3011ca(0x19b)](_0x4d6da2)||await this[_0x3011ca(0x1af)](_0x4d6da2),this[_0x3011ca(0x18f)][_0x3011ca(0x1eb)](_0x4d6da2);}[_0x2ae16c(0x22e)](){var _0x931116=_0x2ae16c;this[_0x931116(0x18a)][_0x931116(0x20e)](_0x42ee76[_0x931116(0x18b)])[_0x931116(0x200)](_0x4dbea4(this[_0x931116(0x227)]))[_0x931116(0x1a9)](async _0x3b7f34=>{var _0x7d3742=_0x931116;const _0x3afd5b=_0x3b7f34[_0x7d3742(0x1f9)]();this[_0x7d3742(0x18f)][_0x7d3742(0x19b)](_0x3afd5b)||this[_0x7d3742(0x1af)](_0x3afd5b);}),this[_0x931116(0x18a)][_0x931116(0x1dd)](_0x42ee76[_0x931116(0x18b)])[_0x931116(0x200)](_0x4dbea4(this[_0x931116(0x227)]))[_0x931116(0x1a9)](_0xb1d7d1=>{var _0xebfefe=_0x931116;const _0x3b6c80=_0xb1d7d1[_0xebfefe(0x1f9)](),_0x168387=this['_entities'][_0xebfefe(0x1eb)](_0x3b6c80);_0x168387==null||_0x168387[_0xebfefe(0x1b8)]();});}async[_0x2ae16c(0x1af)](_0xf9367b){var _0x51af54=_0x2ae16c;const _0x320c63=await this[_0x51af54(0x1f7)][_0x51af54(0x237)](_0xf9367b),_0x3addea=this[_0x51af54(0x23a)][_0x51af54(0x195)](C,_0xf9367b,_0x320c63);return _0x3addea[_0x51af54(0x1b0)](),this['_entities'][_0x51af54(0x202)](_0xf9367b,_0x3addea),_0x3addea;}};I=Z([f(0x0,_0x1a7ea1),f(0x1,_0x593737(_0xe7680d)),f(0x2,_0x593737(_0x4f5af2))],I);var h=(_0x34d445=>(_0x34d445[_0x2ae16c(0x1f1)]='offline',_0x34d445[_0x2ae16c(0x1de)]=_0x2ae16c(0x1df),_0x34d445[_0x2ae16c(0x1c1)]=_0x2ae16c(0x1bd),_0x34d445[_0x2ae16c(0x1d4)]=_0x2ae16c(0x225),_0x34d445[_0x2ae16c(0x19e)]=_0x2ae16c(0x220),_0x34d445))(h||{});const Pe=_0x2ae16c(0x217),Ae=0xc8;let C=class extends _0x55e2fc{constructor(_0xe7ff09,_0xbef96,_0x4fe943,_0x4827c4,_0x16b26d){var _0x2d0e2c=_0x2ae16c;super(),d(this,_0x2d0e2c(0x1f0),new _0x1f3e9c(_0x2d0e2c(0x1df))),d(this,_0x2d0e2c(0x18d),this['_status$'][_0x2d0e2c(0x1a0)]()),d(this,_0x2d0e2c(0x22e),!0x1),d(this,_0x2d0e2c(0x1be),null),d(this,_0x2d0e2c(0x1d8),null),(this[_0x2d0e2c(0x191)]=_0xe7ff09,this['_collabSession']=_0xbef96,this[_0x2d0e2c(0x205)]=_0x4fe943,this[_0x2d0e2c(0x1f2)]=_0x4827c4,this[_0x2d0e2c(0x1ca)]=_0x16b26d);}get[_0x2ae16c(0x189)](){var _0x246a13=_0x2ae16c;return this[_0x246a13(0x1f0)]['getValue']();}[_0x2ae16c(0x1b8)](){var _0x44b047=_0x2ae16c,_0x4fd831;(_0x4fd831=this[_0x44b047(0x1be)])==null||_0x4fd831[_0x44b047(0x1b8)](),this[_0x44b047(0x1f0)][_0x44b047(0x228)](_0x44b047(0x1df)),this[_0x44b047(0x1f0)][_0x44b047(0x235)]();}[_0x2ae16c(0x1b0)](){var _0x1ba29d=_0x2ae16c;this[_0x1ba29d(0x22e)]||(this[_0x1ba29d(0x22e)]=!0x0,this['_collabSession'][_0x1ba29d(0x19c)]['pipe'](_0x4dbea4(this['dispose$']))[_0x1ba29d(0x1a9)](_0x468637=>{var _0x1351be=_0x1ba29d;switch(_0x468637){case _0x4d71b3[_0x1351be(0x1f1)]:this[_0x1351be(0x1da)]();break;case _0x4d71b3['ONLINE']:this[_0x1351be(0x21b)]();break;}}),this[_0x1ba29d(0x208)][_0x1ba29d(0x209)][_0x1ba29d(0x200)](_0x4dbea4(this[_0x1ba29d(0x227)]))[_0x1ba29d(0x1a9)](_0x15ff75=>{var _0x30dc3a=_0x1ba29d;const {eventID:_0x3da848}=_0x15ff75;switch(_0x3da848){case _0x3d2fa7[_0x30dc3a(0x188)]:this[_0x30dc3a(0x192)](_0x15ff75);break;case _0x3d2fa7[_0x30dc3a(0x20b)]:this[_0x30dc3a(0x1ee)](_0x15ff75);break;case _0x3d2fa7[_0x30dc3a(0x193)]:this[_0x30dc3a(0x1f3)]();break;case _0x3d2fa7[_0x30dc3a(0x1c6)]:this[_0x30dc3a(0x203)](_0x15ff75);break;}}));}[_0x2ae16c(0x1c5)](){var _0x4f4765=_0x2ae16c;this['_collabSession'][_0x4f4765(0x196)]({'eventID':_0x3d2fa7['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4f4765(0x191)],'userID':this['_collabSession'][_0x4f4765(0x215)]()}},this[_0x4f4765(0x191)]);}[_0x2ae16c(0x201)](){var _0x13fdf9=_0x2ae16c;this['_status']===_0x13fdf9(0x220)&&(this[_0x13fdf9(0x1f0)][_0x13fdf9(0x228)](_0x13fdf9(0x1df)),this[_0x13fdf9(0x208)][_0x13fdf9(0x196)]({'eventID':_0x3d2fa7[_0x13fdf9(0x193)],'data':{'unitID':this[_0x13fdf9(0x191)]}},this['_unitID']));}[_0x2ae16c(0x1ec)](){var _0x21d8c5=_0x2ae16c;this[_0x21d8c5(0x189)]===_0x21d8c5(0x225)&&(this[_0x21d8c5(0x1f0)]['next'](_0x21d8c5(0x1bd)),this[_0x21d8c5(0x1e9)]());}[_0x2ae16c(0x230)](){var _0x3914cf=_0x2ae16c;this[_0x3914cf(0x189)]==='following'&&this[_0x3914cf(0x1aa)]();}[_0x2ae16c(0x192)](_0x6ebcf2){var _0xcb5cc6=_0x2ae16c;const {presenter:_0x546c64}=_0x6ebcf2['data'],_0x2eaf73=this[_0xcb5cc6(0x208)][_0xcb5cc6(0x215)]();this[_0xcb5cc6(0x1d8)]=_0x546c64,_0x546c64===_0x2eaf73?(this['_stopFollowing'](),this[_0xcb5cc6(0x1e5)]()):this[_0xcb5cc6(0x189)]!==_0xcb5cc6(0x225)&&(this[_0xcb5cc6(0x18e)](),this[_0xcb5cc6(0x1e9)]());}[_0x2ae16c(0x1e6)](){var _0x1258b2=_0x2ae16c;const _0x4a09e8={'eventID':_0x3d2fa7[_0x1258b2(0x1d3)]};this['_collabSession'][_0x1258b2(0x196)](_0x4a09e8,this[_0x1258b2(0x191)]);}[_0x2ae16c(0x1f3)](){var _0x17ceee=_0x2ae16c;this['_presenter']=null,this['_status']!==_0x17ceee(0x220)&&this['_beIdle']();}['_handleNewChangeSets'](_0x597ce8){var _0x451583=_0x2ae16c;if(this[_0x451583(0x189)]===_0x451583(0x1bd)&&this[_0x451583(0x1d8)]===_0x597ce8[_0x451583(0x1f5)]['memberID']){const _0x508eea=_0x5e0ea2(_0x597ce8[_0x451583(0x1f5)])['mutations'][_0x451583(0x197)]()[_0x451583(0x1f4)](_0x39dbb9=>_0x39dbb9['id']===_0x2adb2e['id']);if(_0x508eea){const _0xb111ea=_0x508eea[_0x451583(0x224)][_0x451583(0x219)],_0x107f59=_0x508eea[_0x451583(0x224)]['sheet']['id'];setTimeout(()=>{var _0x3fb99e=_0x451583;this['_commandService'][_0x3fb99e(0x18c)](_0x156019['id'],{'unitId':_0xb111ea,'subUnitId':_0x107f59},{'fromCollab':!0x0});});}}}[_0x2ae16c(0x1e5)](){var _0x2bae0c=_0x2ae16c;this['_status$'][_0x2bae0c(0x228)]('presenting');const _0x8158f=new Map(),_0x49a61b=this[_0x2bae0c(0x1be)]=new _0x2221d0();_0x49a61b['add'](_0x38901e(()=>{var _0x2217bb=_0x2bae0c;_0x8158f[_0x2217bb(0x226)](_0xf9f025=>_0xf9f025[_0x2217bb(0x235)]()),_0x8158f[_0x2217bb(0x20d)]();})),_0x49a61b['add'](this[_0x2bae0c(0x1ca)][_0x2bae0c(0x22c)](_0x340898=>{var _0xcc711e=_0x2bae0c,_0xa3aac9;if(_0x340898['type']!==_0x25c528[_0xcc711e(0x1a2)]||!this[_0xcc711e(0x1f2)][_0xcc711e(0x1a8)](_0x340898['id']))return;const {id:_0x1aeed9}=_0x340898;let _0x749247;_0x8158f[_0xcc711e(0x19b)](_0x1aeed9)?_0x749247=_0x8158f[_0xcc711e(0x1eb)](_0x1aeed9):(_0x749247=new _0x26d562(),_0x8158f[_0xcc711e(0x202)](_0x1aeed9,_0x749247),_0x749247[_0xcc711e(0x200)](_0xa3d9ff((_0xa3aac9=this[_0xcc711e(0x205)][_0xcc711e(0x1cf)](Pe))!=null?_0xa3aac9:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x37d15e=>{var _0x5be08d=_0xcc711e;this['_collabSession'][_0x5be08d(0x196)]({'eventID':_0x3d2fa7['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5be08d(0x191)],'operations':{[_0x37d15e['id']]:{'id':_0x37d15e['id'],'params':JSON['stringify'](_0x37d15e['params'])}}}},this['_unitID']);})),_0x749247[_0xcc711e(0x228)](_0x340898);})),this['_liveShareService'][_0x2bae0c(0x1c9)](this[_0x2bae0c(0x191)])[_0x2bae0c(0x226)](_0x79848b=>this[_0x2bae0c(0x208)][_0x2bae0c(0x196)]({'eventID':_0x3d2fa7[_0x2bae0c(0x20b)],'data':{'unitID':this[_0x2bae0c(0x191)],'operations':{[_0x79848b['id']]:{'id':_0x79848b['id'],'params':JSON['stringify'](_0x79848b[_0x2bae0c(0x224)])}}}},this[_0x2bae0c(0x191)]));}[_0x2ae16c(0x18e)](){var _0x2b9b0a=_0x2ae16c,_0x5472d0;this[_0x2b9b0a(0x1f0)]['next'](_0x2b9b0a(0x1df)),(_0x5472d0=this[_0x2b9b0a(0x1be)])==null||_0x5472d0['dispose'](),this[_0x2b9b0a(0x1be)]=null;}[_0x2ae16c(0x1e9)](){var _0x5e1154=_0x2ae16c,_0x3b39ce;(_0x3b39ce=this[_0x5e1154(0x1be)])==null||_0x3b39ce[_0x5e1154(0x1b8)](),this[_0x5e1154(0x1f0)][_0x5e1154(0x228)]('following');}[_0x2ae16c(0x1d2)](){var _0x344364=_0x2ae16c,_0x3afb1c;this['_status$'][_0x344364(0x228)]('idle'),(_0x3afb1c=this['_commandDisposable'])==null||_0x3afb1c[_0x344364(0x1b8)](),this[_0x344364(0x1be)]=null;}[_0x2ae16c(0x1aa)](){var _0x133a84=_0x2ae16c,_0xcf13b2;this[_0x133a84(0x1f0)][_0x133a84(0x228)](_0x133a84(0x225)),(_0xcf13b2=this[_0x133a84(0x1be)])==null||_0xcf13b2[_0x133a84(0x1b8)]();}[_0x2ae16c(0x1ee)](_0x31dd84){var _0x280522=_0x2ae16c;if([_0x280522(0x220),'not-following',_0x280522(0x233)][_0x280522(0x1b3)](this[_0x280522(0x189)])||!_0x31dd84[_0x280522(0x1f5)][_0x280522(0x21d)]||_0x31dd84['data']['presenter']===this['_collabSession'][_0x280522(0x215)]())return;this['_status']===_0x280522(0x1df)&&this[_0x280522(0x1e9)]();const _0x1c588e=_0x31dd84[_0x280522(0x1f5)][_0x280522(0x1ac)];Object[_0x280522(0x1ff)](_0x1c588e)[_0x280522(0x226)](_0x4bad81=>{var _0x27d4e6=_0x280522;this['_commandService'][_0x27d4e6(0x18c)](_0x4bad81['id'],_0x4bad81['params']?JSON['parse'](_0x4bad81[_0x27d4e6(0x224)]):null,{'fromCollab':!0x0});});}[_0x2ae16c(0x1da)](){var _0x38479d=_0x2ae16c,_0x5827fc;this[_0x38479d(0x1f0)][_0x38479d(0x228)](_0x38479d(0x233)),(_0x5827fc=this[_0x38479d(0x1be)])==null||_0x5827fc[_0x38479d(0x1b8)]();}['_handleOnline'](){var _0x4ef888=_0x2ae16c;this['_status$'][_0x4ef888(0x228)](_0x4ef888(0x1df)),this['_fetchOperations']();}};C=Z([f(0x2,_0x1ad72f),f(0x3,_0x593737(L)),f(0x4,_0x560e7e)],C);function Te(){var _0x270f9c=_0x2ae16c;const _0x366ceb=_0x1d89de(I),_0x1db121=_0x1d89de(_0x1a7ea1),_0x111726=_0x19ab69(()=>_0x1db121[_0x270f9c(0x21c)](_0x42ee76[_0x270f9c(0x18b)]),void 0x0,!0x1,[]),[_0x1a154d,_0x27e377]=_0x2c2ba0(null),[_0x32735b,_0x4a9be2]=_0x2c2ba0(h[_0x270f9c(0x1de)]),_0x473a86=_0x19b438(null);return _0x5d5c39(()=>(_0x111726&&_0x366ceb[_0x270f9c(0x1a3)](_0x111726[_0x270f9c(0x1f9)]())[_0x270f9c(0x206)](_0x4c87e0=>{var _0x510372=_0x270f9c;_0x27e377(_0x4c87e0),_0x473a86[_0x510372(0x1d7)]=_0x4c87e0[_0x510372(0x18d)][_0x510372(0x1a9)](_0x5bbbcc=>{_0x4a9be2(_0x5bbbcc);});}),()=>{var _0x12611d=_0x270f9c,_0x382f64;(_0x382f64=_0x473a86['current'])==null||_0x382f64[_0x12611d(0x1ed)](),_0x473a86[_0x12611d(0x1d7)]=null;}),[_0x111726,_0x366ceb]),_0x1a154d?_0xa8e486(_0x524d08,{'align':_0x270f9c(0x1cd),'disabled':_0x32735b===h[_0x270f9c(0x1f1)],'className':_0x270f9c(0x1a5),'overlay':_0xa8e486($e,{'status':_0x32735b,'coordinator':_0x1a154d}),'children':_0xa8e486(_0x270f9c(0x1fe),{'className':_0x4589dc(_0x270f9c(0x216),{'univer-cursor-not-allowed':_0x32735b===h[_0x270f9c(0x1f1)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x32735b!==h['OFFLINE']}),'type':_0x270f9c(0x1fe),'children':_0xa8e486(B,{'className':'univer-size-4'})})}):null;}function $e(_0x4361de){var _0x188f47=_0x2ae16c;const {status:_0xe43e89,coordinator:_0x415664}=_0x4361de;switch(_0xe43e89){case h[_0x188f47(0x1de)]:return _0xa8e486(Fe,{'coordinator':_0x415664});case h['FOLLOWING']:return _0xa8e486(He,{'coordinator':_0x415664});case h[_0x188f47(0x1d4)]:return _0xa8e486(je,{'coordinator':_0x415664});case h['OFFLINE']:return _0xa8e486(Ve,{});case h[_0x188f47(0x19e)]:return _0xa8e486(Ue,{'coordinator':_0x415664});default:return null;}}function Fe(_0x1e3967){var _0x3be6d6=_0x2ae16c;const {coordinator:_0x32f419}=_0x1e3967;return _0x1f8228(_0xa79dd,{'children':[_0xa8e486(_0x3be6d6(0x238),{'className':_0x3be6d6(0x210),'children':'Present\x20this\x20document'}),_0xa8e486(_0x2cd243,{'onClick':()=>_0x32f419[_0x3be6d6(0x1c5)](),'children':_0x3be6d6(0x22a)})]});}function He(_0x1b6d8c){var _0x24e68c=_0x2ae16c;const {coordinator:_0x3eadb2}=_0x1b6d8c;return _0x1f8228(_0xa79dd,{'children':[_0xa8e486('div',{'className':_0x24e68c(0x210),'children':_0x24e68c(0x22f)}),_0xa8e486(_0x2cd243,{'onClick':()=>_0x3eadb2[_0x24e68c(0x230)](),'children':_0x24e68c(0x19f)})]});}function je(_0x18c8d3){var _0x25dade=_0x2ae16c;const {coordinator:_0x543bc4}=_0x18c8d3;return _0x1f8228(_0xa79dd,{'children':[_0xa8e486(_0x25dade(0x238),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0xa8e486(_0x2cd243,{'variant':_0x25dade(0x1f8),'onClick':()=>_0x543bc4[_0x25dade(0x1ec)](),'children':_0x25dade(0x221)})]});}function Ue(_0x278160){var _0x35ca53=_0x2ae16c;const {coordinator:_0xb102b2}=_0x278160;return _0x1f8228(_0xa79dd,{'children':[_0xa8e486(_0x35ca53(0x238),{'className':_0x35ca53(0x210),'children':'You\x27re\x20presenting\x20the\x20document'}),_0xa8e486(_0x2cd243,{'variant':_0x35ca53(0x1b7),'onClick':()=>_0xb102b2['stopPresenting'](),'children':_0x35ca53(0x204)})]});}function Ve(){var _0x6db873=_0x2ae16c;return _0xa8e486(_0xa79dd,{'children':_0x6db873(0x1ef)});}var Me=Object[_0x2ae16c(0x1c7)],ke=(_0x578e67,_0x32fb8a,_0x4671da,_0x255013)=>{var _0x4a4485=_0x2ae16c;for(var _0xb9955f=_0x255013>0x1?void 0x0:_0x255013?Me(_0x32fb8a,_0x4671da):_0x32fb8a,_0x2ecdd8=_0x578e67[_0x4a4485(0x1d1)]-0x1,_0x266d4a;_0x2ecdd8>=0x0;_0x2ecdd8--)(_0x266d4a=_0x578e67[_0x2ecdd8])&&(_0xb9955f=_0x266d4a(_0xb9955f)||_0xb9955f);return _0xb9955f;},$=(_0x464c7c,_0x3518fd)=>(_0xe7439e,_0x5b6234)=>_0x3518fd(_0xe7439e,_0x5b6234,_0x464c7c);let b=class extends _0x2ccbb9{constructor(_0x2ef606,_0x397593){var _0x28636e=_0x2ae16c;super(),this['_injector']=_0x2ef606,this['_uiPartsService']=_0x397593,this[_0x28636e(0x1e2)]();}[_0x2ae16c(0x1e2)](){var _0x2cfd3e=_0x2ae16c;this[_0x2cfd3e(0x199)](this[_0x2cfd3e(0x1b5)][_0x2cfd3e(0x207)](_0x596006['HEADER_MENU'],()=>_0x9eed15(Te,this[_0x2cfd3e(0x23a)])));}};b=ke([$(0x0,_0x593737(_0xe7680d)),$(0x1,_0x5f57dd)],b);var Ge=Object[_0x2ae16c(0x1a6)],We=Object[_0x2ae16c(0x1c7)],Ye=(_0x166beb,_0x3e1a19,_0x166ed0)=>_0x3e1a19 in _0x166beb?Ge(_0x166beb,_0x3e1a19,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x166ed0}):_0x166beb[_0x3e1a19]=_0x166ed0,Be=(_0x4c07a7,_0x294604,_0x57ddd7,_0x4cf621)=>{var _0x3adfa0=_0x2ae16c;for(var _0x2fcda0=_0x4cf621>0x1?void 0x0:_0x4cf621?We(_0x294604,_0x57ddd7):_0x294604,_0x4fd524=_0x4c07a7[_0x3adfa0(0x1d1)]-0x1,_0x5d60c9;_0x4fd524>=0x0;_0x4fd524--)(_0x5d60c9=_0x4c07a7[_0x4fd524])&&(_0x2fcda0=_0x5d60c9(_0x2fcda0)||_0x2fcda0);return _0x2fcda0;},F=(_0x10f85c,_0x4f97cd)=>(_0x2035bb,_0x50b9d2)=>_0x4f97cd(_0x2035bb,_0x50b9d2,_0x10f85c),J=(_0xfc3a84,_0x4ec3e0,_0x1b3036)=>Ye(_0xfc3a84,typeof _0x4ec3e0!=_0x2ae16c(0x1b4)?_0x4ec3e0+'':_0x4ec3e0,_0x1b3036);const Ze=_0x2ae16c(0x194);let O=class extends _0x463199{constructor(_0xf2db2d=T,_0x1daa97,_0x4f9231){var _0x3b06d9=_0x2ae16c;super(),this[_0x3b06d9(0x22d)]=_0xf2db2d,this[_0x3b06d9(0x23a)]=_0x1daa97,this[_0x3b06d9(0x205)]=_0x4f9231;const {..._0x47819c}=_0x54fc87({},T,this[_0x3b06d9(0x22d)]);this['_configService'][_0x3b06d9(0x19d)](Oe,_0x47819c);}[_0x2ae16c(0x22b)](){var _0x446671=_0x2ae16c;_0x3f2cd6(this['_injector'],_0x43b81e([[L],[I],[m],[b]],this['_config'][_0x446671(0x1a4)])),_0x5144c9(this[_0x446671(0x23a)],[[m]]);}[_0x2ae16c(0x21a)](){var _0x49194e=_0x2ae16c;_0x5144c9(this[_0x49194e(0x23a)],[[b]]);}};J(O,'type',_0x42ee76[_0x2ae16c(0x1c8)]),J(O,_0x2ae16c(0x1ab),Ze),O=Be([_0x46cf58(_0x27f278),F(0x1,_0x593737(_0xe7680d)),F(0x2,_0x1ad72f)],O);function _0x5400(){var _0x307fac=['live-share-icon','assign','button','values','pipe','stopPresenting','set','_handleNewChangeSets','Stop\x20presenting','_configService','then','registerComponent','_collabSession','event$','defIds','LIVESHARE_OPERATION','className','clear','getTypeOfUnitAdded$','evenodd','univer-w-full\x20univer-mb-3\x20univer-text-sm','indexOf','colorChannel1','attrs','map','getMemberID','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','SAME_OPERATION_SHARE_INTERVAL','_sharedOperations','unitId','onRendered','_handleOnline','getCurrentTypeOfUnit$','presenter','tag','700092xupCNK','presenting','Start\x20following','registerSharedOperation','use','params','not-following','forEach','dispose$','next','from','Start','onStarting','onCommandExecuted','_config','_init','You\x27re\x20following\x20the\x20presenter','stopFollowing','substring','extend','offline','currentColor','complete','none','requireSession','div','xlink:href','_injector','LIVESHARE_NEW_HOST','_status','_univerInstanceService','UNIVER_SHEET','executeCommand','status$','_stopPresenting','_entities','1128128xROgEQ','_unitID','_handleNewHost','LIVESHARE_TERMINATE','UNIVER_LIVE_SHARE_PLUGIN','createInstance','send','reverse','propertyIsEnumerable','disposeWithMe','entries','has','sessionStatus$','setConfig','PRESENTING','Stop\x20following','asObservable','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','OPERATION','getLiveShareCoordinator','override','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','defineProperty','hasOwnProperty','shouldShareOperation','subscribe','_stopFollowing','pluginName','operations','function','replace','_startLiveShareCoordinator','init','apply','834608QrcUCx','includes','symbol','_uiPartsService','1512696knbjby','default','dispose','univerjs-icon\x20univerjs-icon-','getOwnPropertySymbols','icon','156177zJwaFO','following','_commandDisposable','128567tMYgxT','url(#$1','FOLLOWING','fill','live-share.config','prototype','tryStartPresenting','NEW_CHANGESETS','getOwnPropertyDescriptor','UNIVER_UNKNOWN','getInitialStates','_commandService','add','http://www.w3.org/2000/svg','end','displayName','getConfig','delete','length','_beIdle','LIVESHARE_FETCH_OPERATIONS','NOT_FOLLOWING','children','109992AXBiPy','current','_presenter','string','_handleOffline','mask','call','getTypeOfUnitDisposed$','IDLE','idle','idSuffix','path','_mountLiveShare','0\x200\x2017\x2017','160qfxzIe','_startPresenting','_fetchOperations','toString','1em','_startFollowing','_reporters','get','startFollowing','unsubscribe','_handleOperation','You\x27are\x20offline.','_status$','OFFLINE','_liveShareService','_handleTerminate','find','data','concat','_collabSessionService','text','getUnitId','LiveShareIcon','56RRufVu'];_0x5400=function(){return _0x307fac;};return _0x5400();}export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x1417ed=_0x38a8;(function(_0x51f4bd,_0x21d67f){var _0x571fce=_0x38a8,_0x412b21=_0x51f4bd();while(!![]){try{var _0x17c406=parseInt(_0x571fce(0x187))/0x1+parseInt(_0x571fce(0x18b))/0x2+parseInt(_0x571fce(0x121))/0x3*(parseInt(_0x571fce(0x1b7))/0x4)+-parseInt(_0x571fce(0x18e))/0x5*(parseInt(_0x571fce(0x1ad))/0x6)+parseInt(_0x571fce(0x1a2))/0x7+-parseInt(_0x571fce(0x15a))/0x8*(parseInt(_0x571fce(0x1b1))/0x9)+-parseInt(_0x571fce(0x17a))/0xa;if(_0x17c406===_0x21d67f)break;else _0x412b21['push'](_0x412b21['shift']());}catch(_0x367e2f){_0x412b21['push'](_0x412b21['shift']());}}}(_0x2d2d,0xa88b8));var q=Object[_0x1417ed(0x1ac)],z=(_0x3ed7ab,_0x3ea350,_0x2ba429)=>_0x3ea350 in _0x3ed7ab?q(_0x3ed7ab,_0x3ea350,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ba429}):_0x3ed7ab[_0x3ea350]=_0x2ba429,d=(_0x480cc7,_0x119471,_0x1a0d9f)=>z(_0x480cc7,typeof _0x119471!='symbol'?_0x119471+'':_0x119471,_0x1a0d9f);import{CollaborationSessionService as _0x992e83,SessionStatus as _0x5f16b5,UniverCollaborationClientPlugin as _0x1c676a}from'@univerjs-pro/collaboration-client';import{Disposable as _0x5a3c0b,toDisposable as _0x43f7c0,Inject as _0x3142fa,IUniverInstanceService as _0x31ab04,Injector as _0x4c551c,IConfigService as _0x55a2c1,ICommandService as _0x1104ab,RxDisposable as _0x43b34b,UniverInstanceType as _0x2f6889,DisposableCollection as _0x40642a,CommandType as _0x4ad824,DependentOn as _0x2af3cb,Plugin as _0x2eea43,merge as _0x2c031d,registerDependencies as _0x1d739e,mergeOverrideWithDependencies as _0x2f04b4,touchDependencies as _0x560cdb}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x54985f,InsertSheetMutation as _0x1a5c5c}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x5be70f,SetScrollOperation as _0x311d77}from'@univerjs/sheets-ui';import{useDependency as _0x44e970,useObservable as _0x524718,IUIPartsService as _0xdcb7a5,BuiltInUIPart as _0x4fb6b9,connectInjector as _0x4c37d2}from'@univerjs/ui';import{jsx as _0x23cc82,jsxs as _0x235d80,Fragment as _0x20ba1f}from'react/jsx-runtime';import{Dropdown as _0x5a9d3c,clsx as _0x316b45,Button as _0x1ff626}from'@univerjs/design';import{forwardRef as _0x5e8b1c,useRef as _0x2d4b3b,createElement as _0x162003,useState as _0x11b155,useEffect as _0x5ef138}from'react';import{CollaborationEvent as _0x7a9ef0,parseProtocolChangeset as _0x4991b8}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x475cf9,Subject as _0x510d81}from'rxjs';import{takeUntil as _0x2a9ec6,throttleTime as _0x1efbf4}from'rxjs/operators';const Oe=_0x1417ed(0x139),T={};class L extends _0x5a3c0b{constructor(){super(...arguments),d(this,'_sharedOperations',new Set()),d(this,'_reporters',new Set());}['registerSharedOperation'](_0x103552){var _0x4a305a=_0x1417ed;return this[_0x4a305a(0x19e)][_0x4a305a(0x137)](_0x103552),_0x43f7c0(()=>this[_0x4a305a(0x19e)][_0x4a305a(0x1b0)](_0x103552));}['registerInitialStateReporter'](_0x1be68f){var _0x2e39bb=_0x1417ed;return this[_0x2e39bb(0x130)][_0x2e39bb(0x137)](_0x1be68f),_0x43f7c0(()=>this[_0x2e39bb(0x130)]['delete'](_0x1be68f));}['shouldShareOperation'](_0x36c524){var _0x364373=_0x1417ed;return this[_0x364373(0x19e)][_0x364373(0x197)](_0x36c524);}[_0x1417ed(0x155)](_0x17c413){var _0x372163=_0x1417ed;return Array['from'](this[_0x372163(0x130)])[_0x372163(0x153)](_0x1586db=>_0x1586db(_0x17c413));}}var Ee=Object[_0x1417ed(0x14a)],we=(_0x33a9ca,_0x3458b9,_0xaf98c1,_0x4ae744)=>{var _0x7f7fea=_0x1417ed;for(var _0x483166=_0x4ae744>0x1?void 0x0:_0x4ae744?Ee(_0x3458b9,_0xaf98c1):_0x3458b9,_0x41381d=_0x33a9ca[_0x7f7fea(0x193)]-0x1,_0x329c99;_0x41381d>=0x0;_0x41381d--)(_0x329c99=_0x33a9ca[_0x41381d])&&(_0x483166=_0x329c99(_0x483166)||_0x483166);return _0x483166;},Ne=(_0x1a8c75,_0x31d132)=>(_0x13a208,_0x25c2c2)=>_0x31d132(_0x13a208,_0x25c2c2,_0x1a8c75);let m=class extends _0x5a3c0b{constructor(_0x2fd2c4){var _0x35ab14=_0x1417ed;super(),this['_liveShareService']=_0x2fd2c4,this[_0x35ab14(0x122)]();}['_init'](){var _0xe80d53=_0x1417ed;[_0x5be70f['id'],_0x311d77['id'],_0x54985f['id']][_0xe80d53(0x13e)](_0x3313a1=>{var _0x2ab749=_0xe80d53;this[_0x2ab749(0x11c)](this[_0x2ab749(0x115)][_0x2ab749(0x19b)](_0x3313a1));});}};m=we([Ne(0x0,_0x3142fa(L))],m);var c=function(){var _0x23bb98=_0x1417ed;return c=Object[_0x23bb98(0x136)]||function(_0x2c7cc4){var _0x4a7abf=_0x23bb98;for(var _0xcae639,_0x176a73=0x1,_0x4fc87d=arguments[_0x4a7abf(0x193)];_0x176a73<_0x4fc87d;_0x176a73++){_0xcae639=arguments[_0x176a73];for(var _0x3cf261 in _0xcae639)Object[_0x4a7abf(0x18d)][_0x4a7abf(0x151)][_0x4a7abf(0x171)](_0xcae639,_0x3cf261)&&(_0x2c7cc4[_0x3cf261]=_0xcae639[_0x3cf261]);}return _0x2c7cc4;},c[_0x23bb98(0x1a3)](this,arguments);},Ce=function(_0x2da5e5,_0x228cfd){var _0x2dd034=_0x1417ed,_0x2ee1e3={};for(var _0x10e485 in _0x2da5e5)Object[_0x2dd034(0x18d)][_0x2dd034(0x151)][_0x2dd034(0x171)](_0x2da5e5,_0x10e485)&&_0x228cfd[_0x2dd034(0x1b3)](_0x10e485)<0x0&&(_0x2ee1e3[_0x10e485]=_0x2da5e5[_0x10e485]);if(_0x2da5e5!=null&&typeof Object[_0x2dd034(0x157)]==_0x2dd034(0x133)){for(var _0x26c3da=0x0,_0x10e485=Object[_0x2dd034(0x157)](_0x2da5e5);_0x26c3da<_0x10e485['length'];_0x26c3da++)_0x228cfd[_0x2dd034(0x1b3)](_0x10e485[_0x26c3da])<0x0&&Object[_0x2dd034(0x18d)]['propertyIsEnumerable'][_0x2dd034(0x171)](_0x2da5e5,_0x10e485[_0x26c3da])&&(_0x2ee1e3[_0x10e485[_0x26c3da]]=_0x2da5e5[_0x10e485[_0x26c3da]]);}return _0x2ee1e3;},W=_0x5e8b1c(function(_0xc5934c,_0x3c1df8){var _0xa61875=_0x1417ed,_0x316632=_0xc5934c['icon'],_0x27b20d=_0xc5934c['id'],_0xfbf706=_0xc5934c[_0xa61875(0x16b)],_0x4512f9=_0xc5934c[_0xa61875(0x117)],_0x302a2a=Ce(_0xc5934c,[_0xa61875(0x169),'id','className','extend']),_0x532f22='univerjs-icon\x20univerjs-icon-'[_0xa61875(0x17c)](_0x27b20d,'\x20')[_0xa61875(0x17c)](_0xfbf706||'')[_0xa61875(0x13b)](),_0x40e443=_0x2d4b3b('_'[_0xa61875(0x17c)](Le()));return Y(_0x316632,''[_0xa61875(0x17c)](_0x27b20d),{'defIds':_0x316632[_0xa61875(0x183)],'idSuffix':_0x40e443['current']},c({'ref':_0x3c1df8,'className':_0x532f22},_0x302a2a),_0x4512f9);});function Y(_0x3075d2,_0x58b116,_0x321f34,_0x24eb03,_0x2c13d6){var _0x458537=_0x1417ed;return _0x162003(_0x3075d2[_0x458537(0x12a)],c(c({'key':_0x58b116},De(_0x3075d2,_0x321f34,_0x2c13d6)),_0x24eb03),(xe(_0x3075d2,_0x321f34)[_0x458537(0x11f)]||[])['map'](function(_0x5d3042,_0xe1a8f4){var _0x2dfab3=_0x458537;return Y(_0x5d3042,''['concat'](_0x58b116,'-')[_0x2dfab3(0x17c)](_0x3075d2[_0x2dfab3(0x12a)],'-')[_0x2dfab3(0x17c)](_0xe1a8f4),_0x321f34,void 0x0,_0x2c13d6);}));}function De(_0x5e7d4b,_0x36c65c,_0x16cada){var _0x21dc7d=_0x1417ed,_0x5e149d=c({},_0x5e7d4b['attrs']);_0x16cada!=null&&_0x16cada[_0x21dc7d(0x14b)]&&_0x5e149d['fill']===_0x21dc7d(0x14b)&&(_0x5e149d[_0x21dc7d(0x1bb)]=_0x16cada[_0x21dc7d(0x14b)]),_0x5e7d4b[_0x21dc7d(0x12a)]===_0x21dc7d(0x135)&&_0x5e149d['id']&&(_0x5e149d['id']=_0x5e149d['id']+_0x36c65c[_0x21dc7d(0x11e)]),Object[_0x21dc7d(0x167)](_0x5e149d)[_0x21dc7d(0x13e)](function(_0xe63e9c){var _0x46fd15=_0x21dc7d,_0x2188d3=_0xe63e9c[0x0],_0xe0386=_0xe63e9c[0x1];_0x2188d3===_0x46fd15(0x135)&&typeof _0xe0386==_0x46fd15(0x1b2)&&(_0x5e149d[_0x2188d3]=_0xe0386[_0x46fd15(0x1b6)](/url\(#(.*)\)/,_0x46fd15(0x112)['concat'](_0x36c65c[_0x46fd15(0x11e)],')')));});var _0x2e9c5e=_0x36c65c['defIds'];return!_0x2e9c5e||_0x2e9c5e[_0x21dc7d(0x193)]===0x0||(_0x5e7d4b[_0x21dc7d(0x12a)]===_0x21dc7d(0x174)&&_0x5e149d['xlink:href']&&(_0x5e149d[_0x21dc7d(0x16d)]=_0x5e149d[_0x21dc7d(0x16d)]+_0x36c65c[_0x21dc7d(0x11e)]),Object[_0x21dc7d(0x167)](_0x5e149d)['forEach'](function(_0x2b5da4){var _0x48a09f=_0x21dc7d,_0x251aff=_0x2b5da4[0x0],_0x3433f6=_0x2b5da4[0x1];typeof _0x3433f6==_0x48a09f(0x1b2)&&(_0x5e149d[_0x251aff]=_0x3433f6['replace'](/url\(#(.*)\)/,_0x48a09f(0x112)[_0x48a09f(0x17c)](_0x36c65c[_0x48a09f(0x11e)],')')));})),_0x5e149d;}function xe(_0x4c07b0,_0xd3c48){var _0xe12aa4=_0x1417ed,_0x1257f0,_0x1a4732=_0xd3c48[_0xe12aa4(0x183)];return!_0x1a4732||_0x1a4732[_0xe12aa4(0x193)]===0x0?_0x4c07b0:_0x4c07b0['tag']===_0xe12aa4(0x118)&&(!((_0x1257f0=_0x4c07b0[_0xe12aa4(0x11f)])===null||_0x1257f0===void 0x0)&&_0x1257f0[_0xe12aa4(0x193)])?c(c({},_0x4c07b0),{'children':_0x4c07b0[_0xe12aa4(0x11f)][_0xe12aa4(0x153)](function(_0x177973){var _0x2939a8=_0xe12aa4;return typeof _0x177973['attrs']['id']==_0x2939a8(0x1b2)&&_0x1a4732&&_0x1a4732['includes'](_0x177973[_0x2939a8(0x185)]['id'])?c(c({},_0x177973),{'attrs':c(c({},_0x177973[_0x2939a8(0x185)]),{'id':_0x177973[_0x2939a8(0x185)]['id']+_0xd3c48[_0x2939a8(0x11e)]})}):_0x177973;})}):_0x4c07b0;}function Le(){var _0x1e2b08=_0x1417ed;return Math[_0x1e2b08(0x124)]()['toString'](0x24)[_0x1e2b08(0x116)](0x2,0x8);}W[_0x1417ed(0x190)]='UniverIcon';var ye={'tag':_0x1417ed(0x15d),'attrs':{'xmlns':_0x1417ed(0x10e),'fill':'none','viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x1417ed(0x13d)},'children':[{'tag':_0x1417ed(0x146),'attrs':{'fill':_0x1417ed(0x14f),'d':_0x1417ed(0x132)}},{'tag':_0x1417ed(0x146),'attrs':{'fill':_0x1417ed(0x14f),'d':_0x1417ed(0x127),'fillRule':'evenodd','clipRule':_0x1417ed(0x134)}}]},B=_0x5e8b1c(function(_0x22d22e,_0x3bd02a){var _0xb176a5=_0x1417ed;return _0x162003(W,Object[_0xb176a5(0x136)]({},_0x22d22e,{'id':_0xb176a5(0x14c),'ref':_0x3bd02a,'icon':ye}));});B['displayName']=_0x1417ed(0x178);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x45393f,_0x3651d7,_0x3e0be9,_0x4e2e2a)=>{for(var _0x4cb65f=_0x4e2e2a>0x1?void 0x0:_0x4e2e2a?Re(_0x3651d7,_0x3e0be9):_0x3651d7,_0x366109=_0x45393f['length']-0x1,_0x77834e;_0x366109>=0x0;_0x366109--)(_0x77834e=_0x45393f[_0x366109])&&(_0x4cb65f=_0x77834e(_0x4cb65f)||_0x4cb65f);return _0x4cb65f;},f=(_0x1ff030,_0x298994)=>(_0x11093e,_0x4a1a2e)=>_0x298994(_0x11093e,_0x4a1a2e,_0x1ff030);let I=class extends _0x43b34b{constructor(_0x2f77c3,_0x56075c,_0x441d88){var _0x9008d0=_0x1417ed;super(),d(this,_0x9008d0(0x12f),new Map()),(this[_0x9008d0(0x194)]=_0x2f77c3,this[_0x9008d0(0x161)]=_0x56075c,this[_0x9008d0(0x199)]=_0x441d88,this['_init']());}async[_0x1417ed(0x13a)](_0x3e06cf){var _0x2f5b2c=_0x1417ed;return this['_entities']['has'](_0x3e06cf)||await this[_0x2f5b2c(0x1b5)](_0x3e06cf),this[_0x2f5b2c(0x12f)][_0x2f5b2c(0x170)](_0x3e06cf);}[_0x1417ed(0x122)](){var _0x53d390=_0x1417ed;this['_univerInstanceService'][_0x53d390(0x11a)](_0x2f6889[_0x53d390(0x111)])[_0x53d390(0x154)](_0x2a9ec6(this[_0x53d390(0x15e)]))['subscribe'](async _0x23b194=>{var _0x5f0077=_0x53d390;const _0x8251e3=_0x23b194[_0x5f0077(0x17b)]();this[_0x5f0077(0x12f)][_0x5f0077(0x197)](_0x8251e3)||this[_0x5f0077(0x1b5)](_0x8251e3);}),this['_univerInstanceService'][_0x53d390(0x1ba)](_0x2f6889['UNIVER_SHEET'])['pipe'](_0x2a9ec6(this[_0x53d390(0x15e)]))['subscribe'](_0x3b9ce5=>{var _0x427c3e=_0x53d390;const _0x36f4be=_0x3b9ce5[_0x427c3e(0x17b)](),_0x49269a=this[_0x427c3e(0x12f)][_0x427c3e(0x170)](_0x36f4be);_0x49269a==null||_0x49269a[_0x427c3e(0x142)]();});}async[_0x1417ed(0x1b5)](_0x30167a){var _0xff65f3=_0x1417ed;const _0x24fe6d=await this[_0xff65f3(0x199)]['requireSession'](_0x30167a),_0x50b01c=this[_0xff65f3(0x161)][_0xff65f3(0x1ab)](C,_0x30167a,_0x24fe6d);return _0x50b01c[_0xff65f3(0x177)](),this[_0xff65f3(0x12f)][_0xff65f3(0x16e)](_0x30167a,_0x50b01c),_0x50b01c;}};I=Z([f(0x0,_0x31ab04),f(0x1,_0x3142fa(_0x4c551c)),f(0x2,_0x3142fa(_0x992e83))],I);var h=(_0x3995cb=>(_0x3995cb['OFFLINE']=_0x1417ed(0x198),_0x3995cb[_0x1417ed(0x173)]=_0x1417ed(0x1b4),_0x3995cb['FOLLOWING']=_0x1417ed(0x163),_0x3995cb[_0x1417ed(0x186)]=_0x1417ed(0x120),_0x3995cb[_0x1417ed(0x13f)]='presenting',_0x3995cb))(h||{});const Pe=_0x1417ed(0x17e),Ae=0xc8;let C=class extends _0x43b34b{constructor(_0x333b9f,_0x4b5bb6,_0x3a8405,_0x5745f4,_0x3ee481){var _0x433f1b=_0x1417ed;super(),d(this,_0x433f1b(0x189),new _0x475cf9(_0x433f1b(0x1b4))),d(this,_0x433f1b(0x196),this[_0x433f1b(0x189)][_0x433f1b(0x181)]()),d(this,_0x433f1b(0x122),!0x1),d(this,_0x433f1b(0x1ae),null),d(this,_0x433f1b(0x123),null),(this[_0x433f1b(0x1a1)]=_0x333b9f,this[_0x433f1b(0x13c)]=_0x4b5bb6,this[_0x433f1b(0x12e)]=_0x3a8405,this[_0x433f1b(0x115)]=_0x5745f4,this[_0x433f1b(0x159)]=_0x3ee481);}get['_status'](){var _0x2914bf=_0x1417ed;return this['_status$'][_0x2914bf(0x1a6)]();}[_0x1417ed(0x142)](){var _0x1acffc=_0x1417ed,_0x597ddd;(_0x597ddd=this[_0x1acffc(0x1ae)])==null||_0x597ddd[_0x1acffc(0x142)](),this[_0x1acffc(0x189)][_0x1acffc(0x149)](_0x1acffc(0x1b4)),this[_0x1acffc(0x189)][_0x1acffc(0x10d)]();}['init'](){var _0x38ab34=_0x1417ed;this[_0x38ab34(0x122)]||(this[_0x38ab34(0x122)]=!0x0,this[_0x38ab34(0x13c)][_0x38ab34(0x148)][_0x38ab34(0x154)](_0x2a9ec6(this['dispose$']))[_0x38ab34(0x143)](_0x4576e8=>{var _0xd71608=_0x38ab34;switch(_0x4576e8){case _0x5f16b5[_0xd71608(0x172)]:this['_handleOffline']();break;case _0x5f16b5[_0xd71608(0x1aa)]:this[_0xd71608(0x176)]();break;}}),this[_0x38ab34(0x13c)][_0x38ab34(0x1a7)]['pipe'](_0x2a9ec6(this[_0x38ab34(0x15e)]))[_0x38ab34(0x143)](_0x5bb15f=>{var _0x53c101=_0x38ab34;const {eventID:_0xc5f6c5}=_0x5bb15f;switch(_0xc5f6c5){case _0x7a9ef0['LIVESHARE_NEW_HOST']:this[_0x53c101(0x17d)](_0x5bb15f);break;case _0x7a9ef0['LIVESHARE_OPERATION']:this[_0x53c101(0x140)](_0x5bb15f);break;case _0x7a9ef0[_0x53c101(0x125)]:this['_handleTerminate']();break;case _0x7a9ef0[_0x53c101(0x150)]:this[_0x53c101(0x192)](_0x5bb15f);break;}}));}[_0x1417ed(0x162)](){var _0x12858b=_0x1417ed;this['_collabSession'][_0x12858b(0x19d)]({'eventID':_0x7a9ef0[_0x12858b(0x175)],'data':{'unitID':this[_0x12858b(0x1a1)],'userID':this[_0x12858b(0x13c)][_0x12858b(0x12c)]()}},this[_0x12858b(0x1a1)]);}[_0x1417ed(0x128)](){var _0x2c091f=_0x1417ed;this[_0x2c091f(0x126)]===_0x2c091f(0x114)&&(this[_0x2c091f(0x189)][_0x2c091f(0x149)]('idle'),this[_0x2c091f(0x13c)][_0x2c091f(0x19d)]({'eventID':_0x7a9ef0[_0x2c091f(0x125)],'data':{'unitID':this['_unitID']}},this[_0x2c091f(0x1a1)]));}[_0x1417ed(0x12d)](){var _0x2a771f=_0x1417ed;this[_0x2a771f(0x126)]===_0x2a771f(0x120)&&(this[_0x2a771f(0x189)][_0x2a771f(0x149)](_0x2a771f(0x163)),this['_startFollowing']());}[_0x1417ed(0x195)](){var _0x208882=_0x1417ed;this[_0x208882(0x126)]==='following'&&this[_0x208882(0x131)]();}[_0x1417ed(0x17d)](_0x542ebd){var _0x14bc5e=_0x1417ed;const {presenter:_0x3037ee}=_0x542ebd[_0x14bc5e(0x18c)],_0x4c374e=this[_0x14bc5e(0x13c)][_0x14bc5e(0x12c)]();this['_presenter']=_0x3037ee,_0x3037ee===_0x4c374e?(this[_0x14bc5e(0x131)](),this[_0x14bc5e(0x1b9)]()):this[_0x14bc5e(0x126)]!==_0x14bc5e(0x120)&&(this[_0x14bc5e(0x110)](),this[_0x14bc5e(0x16a)]());}[_0x1417ed(0x165)](){var _0x5a179f=_0x1417ed;const _0x30c160={'eventID':_0x7a9ef0[_0x5a179f(0x12b)]};this[_0x5a179f(0x13c)][_0x5a179f(0x19d)](_0x30c160,this[_0x5a179f(0x1a1)]);}['_handleTerminate'](){var _0x10dac6=_0x1417ed;this[_0x10dac6(0x123)]=null,this[_0x10dac6(0x126)]!==_0x10dac6(0x114)&&this[_0x10dac6(0x180)]();}[_0x1417ed(0x192)](_0x5c3fb3){var _0x13dcd6=_0x1417ed;if(this[_0x13dcd6(0x126)]===_0x13dcd6(0x163)&&this[_0x13dcd6(0x123)]===_0x5c3fb3[_0x13dcd6(0x18c)][_0x13dcd6(0x141)]){const _0x32364a=_0x4991b8(_0x5c3fb3[_0x13dcd6(0x18c)])['mutations'][_0x13dcd6(0x182)]()['find'](_0x4f2892=>_0x4f2892['id']===_0x1a5c5c['id']);if(_0x32364a){const _0xe2b4f6=_0x32364a[_0x13dcd6(0x1a4)][_0x13dcd6(0x11b)],_0x3f3d2d=_0x32364a[_0x13dcd6(0x1a4)]['sheet']['id'];setTimeout(()=>{var _0x1bc2d8=_0x13dcd6;this[_0x1bc2d8(0x159)][_0x1bc2d8(0x144)](_0x54985f['id'],{'unitId':_0xe2b4f6,'subUnitId':_0x3f3d2d},{'fromCollab':!0x0});});}}}[_0x1417ed(0x1b9)](){var _0x36c8f1=_0x1417ed;this[_0x36c8f1(0x189)][_0x36c8f1(0x149)](_0x36c8f1(0x114));const _0xe49221=new Map(),_0x221ec6=this[_0x36c8f1(0x1ae)]=new _0x40642a();_0x221ec6[_0x36c8f1(0x137)](_0x43f7c0(()=>{var _0x16aef8=_0x36c8f1;_0xe49221[_0x16aef8(0x13e)](_0x4746af=>_0x4746af[_0x16aef8(0x10d)]()),_0xe49221[_0x16aef8(0x184)]();})),_0x221ec6['add'](this[_0x36c8f1(0x159)][_0x36c8f1(0x19a)](_0x49a3bb=>{var _0x59df2e=_0x36c8f1,_0x56d8aa;if(_0x49a3bb['type']!==_0x4ad824[_0x59df2e(0x14d)]||!this[_0x59df2e(0x115)][_0x59df2e(0x10f)](_0x49a3bb['id']))return;const {id:_0x4ca71f}=_0x49a3bb;let _0x6b85aa;_0xe49221['has'](_0x4ca71f)?_0x6b85aa=_0xe49221[_0x59df2e(0x170)](_0x4ca71f):(_0x6b85aa=new _0x510d81(),_0xe49221['set'](_0x4ca71f,_0x6b85aa),_0x6b85aa['pipe'](_0x1efbf4((_0x56d8aa=this[_0x59df2e(0x12e)][_0x59df2e(0x188)](Pe))!=null?_0x56d8aa:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x59df2e(0x143)](_0x6a5105=>{var _0x322476=_0x59df2e;this[_0x322476(0x13c)][_0x322476(0x19d)]({'eventID':_0x7a9ef0['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x322476(0x1a1)],'operations':{[_0x6a5105['id']]:{'id':_0x6a5105['id'],'params':JSON[_0x322476(0x164)](_0x6a5105[_0x322476(0x1a4)])}}}},this['_unitID']);})),_0x6b85aa[_0x59df2e(0x149)](_0x49a3bb);})),this[_0x36c8f1(0x115)][_0x36c8f1(0x155)](this[_0x36c8f1(0x1a1)])[_0x36c8f1(0x13e)](_0x40ce18=>this[_0x36c8f1(0x13c)][_0x36c8f1(0x19d)]({'eventID':_0x7a9ef0[_0x36c8f1(0x191)],'data':{'unitID':this[_0x36c8f1(0x1a1)],'operations':{[_0x40ce18['id']]:{'id':_0x40ce18['id'],'params':JSON[_0x36c8f1(0x164)](_0x40ce18[_0x36c8f1(0x1a4)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x2aa3a3=_0x1417ed,_0x4a2a2e;this['_status$']['next'](_0x2aa3a3(0x1b4)),(_0x4a2a2e=this[_0x2aa3a3(0x1ae)])==null||_0x4a2a2e[_0x2aa3a3(0x142)](),this[_0x2aa3a3(0x1ae)]=null;}[_0x1417ed(0x16a)](){var _0x59e204=_0x1417ed,_0x148b8f;(_0x148b8f=this['_commandDisposable'])==null||_0x148b8f['dispose'](),this[_0x59e204(0x189)][_0x59e204(0x149)](_0x59e204(0x163));}[_0x1417ed(0x180)](){var _0x1071df=_0x1417ed,_0xcc562;this['_status$'][_0x1071df(0x149)](_0x1071df(0x1b4)),(_0xcc562=this[_0x1071df(0x1ae)])==null||_0xcc562[_0x1071df(0x142)](),this[_0x1071df(0x1ae)]=null;}['_stopFollowing'](){var _0x4d03eb=_0x1417ed,_0x555a3e;this[_0x4d03eb(0x189)][_0x4d03eb(0x149)]('not-following'),(_0x555a3e=this['_commandDisposable'])==null||_0x555a3e[_0x4d03eb(0x142)]();}[_0x1417ed(0x140)](_0x3d4b99){var _0x366818=_0x1417ed;if([_0x366818(0x114),_0x366818(0x120),'offline'][_0x366818(0x168)](this[_0x366818(0x126)])||!_0x3d4b99[_0x366818(0x18c)]['presenter']||_0x3d4b99['data'][_0x366818(0x1a5)]===this[_0x366818(0x13c)][_0x366818(0x12c)]())return;this[_0x366818(0x126)]===_0x366818(0x1b4)&&this['_startFollowing']();const _0x12213b=_0x3d4b99[_0x366818(0x18c)]['operations'];Object['values'](_0x12213b)[_0x366818(0x13e)](_0x2211d8=>{var _0x1fcbb7=_0x366818;this[_0x1fcbb7(0x159)]['executeCommand'](_0x2211d8['id'],_0x2211d8[_0x1fcbb7(0x1a4)]?JSON[_0x1fcbb7(0x15f)](_0x2211d8[_0x1fcbb7(0x1a4)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x7d4c2c=_0x1417ed,_0x2cbec2;this['_status$'][_0x7d4c2c(0x149)](_0x7d4c2c(0x198)),(_0x2cbec2=this[_0x7d4c2c(0x1ae)])==null||_0x2cbec2[_0x7d4c2c(0x142)]();}['_handleOnline'](){var _0x1eb159=_0x1417ed;this[_0x1eb159(0x189)][_0x1eb159(0x149)]('idle'),this[_0x1eb159(0x165)]();}};C=Z([f(0x2,_0x55a2c1),f(0x3,_0x3142fa(L)),f(0x4,_0x1104ab)],C);function Te(){var _0x468cae=_0x1417ed;const _0x7201bc=_0x44e970(I),_0x3969d8=_0x44e970(_0x31ab04),_0x5d4b29=_0x524718(()=>_0x3969d8[_0x468cae(0x15b)](_0x2f6889[_0x468cae(0x111)]),void 0x0,!0x1,[]),[_0xa81dae,_0x23bd15]=_0x11b155(null),[_0x25bd0c,_0xfe1920]=_0x11b155(h[_0x468cae(0x173)]),_0x1df447=_0x2d4b3b(null);return _0x5ef138(()=>(_0x5d4b29&&_0x7201bc['getLiveShareCoordinator'](_0x5d4b29[_0x468cae(0x17b)]())[_0x468cae(0x152)](_0x375d6a=>{var _0xc02cc2=_0x468cae;_0x23bd15(_0x375d6a),_0x1df447[_0xc02cc2(0x156)]=_0x375d6a[_0xc02cc2(0x196)]['subscribe'](_0x2c2761=>{_0xfe1920(_0x2c2761);});}),()=>{var _0x513e54=_0x468cae,_0x95b98d;(_0x95b98d=_0x1df447[_0x513e54(0x156)])==null||_0x95b98d[_0x513e54(0x1a0)](),_0x1df447[_0x513e54(0x156)]=null;}),[_0x5d4b29,_0x7201bc]),_0xa81dae?_0x23cc82(_0x5a9d3c,{'align':'end','disabled':_0x25bd0c===h[_0x468cae(0x172)],'className':_0x468cae(0x145),'overlay':_0x23cc82($e,{'status':_0x25bd0c,'coordinator':_0xa81dae}),'children':_0x23cc82(_0x468cae(0x1b8),{'className':_0x316b45(_0x468cae(0x15c),{'univer-cursor-not-allowed':_0x25bd0c===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x25bd0c!==h[_0x468cae(0x172)]}),'type':_0x468cae(0x1b8),'children':_0x23cc82(B,{'className':_0x468cae(0x1af)})})}):null;}function $e(_0x5b7fef){var _0x53216d=_0x1417ed;const {status:_0x5dd601,coordinator:_0x3a77e8}=_0x5b7fef;switch(_0x5dd601){case h[_0x53216d(0x173)]:return _0x23cc82(Fe,{'coordinator':_0x3a77e8});case h[_0x53216d(0x179)]:return _0x23cc82(He,{'coordinator':_0x3a77e8});case h['NOT_FOLLOWING']:return _0x23cc82(je,{'coordinator':_0x3a77e8});case h['OFFLINE']:return _0x23cc82(Ve,{});case h[_0x53216d(0x13f)]:return _0x23cc82(Ue,{'coordinator':_0x3a77e8});default:return null;}}function Fe(_0xee363a){var _0x304997=_0x1417ed;const {coordinator:_0x2271c5}=_0xee363a;return _0x235d80(_0x20ba1f,{'children':[_0x23cc82(_0x304997(0x113),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x304997(0x18f)}),_0x23cc82(_0x1ff626,{'onClick':()=>_0x2271c5['tryStartPresenting'](),'children':_0x304997(0x11d)})]});}function He(_0x37b298){var _0x1d573a=_0x1417ed;const {coordinator:_0xf7412f}=_0x37b298;return _0x235d80(_0x20ba1f,{'children':[_0x23cc82(_0x1d573a(0x113),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x1d573a(0x158)}),_0x23cc82(_0x1ff626,{'onClick':()=>_0xf7412f[_0x1d573a(0x195)](),'children':_0x1d573a(0x16c)})]});}function je(_0x2fe142){var _0x102a8a=_0x1417ed;const {coordinator:_0x40e6e6}=_0x2fe142;return _0x235d80(_0x20ba1f,{'children':[_0x23cc82(_0x102a8a(0x113),{'className':_0x102a8a(0x17f),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x23cc82(_0x1ff626,{'variant':_0x102a8a(0x160),'onClick':()=>_0x40e6e6[_0x102a8a(0x12d)](),'children':'Start\x20following'})]});}function _0x38a8(_0x335f3f,_0x36edff){var _0x2d2d03=_0x2d2d();return _0x38a8=function(_0x38a81d,_0x553250){_0x38a81d=_0x38a81d-0x10d;var _0x34c252=_0x2d2d03[_0x38a81d];return _0x34c252;},_0x38a8(_0x335f3f,_0x36edff);}function Ue(_0x556db6){var _0x3ce3b5=_0x1417ed;const {coordinator:_0x543b55}=_0x556db6;return _0x235d80(_0x20ba1f,{'children':[_0x23cc82(_0x3ce3b5(0x113),{'className':_0x3ce3b5(0x17f),'children':_0x3ce3b5(0x1a8)}),_0x23cc82(_0x1ff626,{'variant':_0x3ce3b5(0x1a9),'onClick':()=>_0x543b55[_0x3ce3b5(0x128)](),'children':_0x3ce3b5(0x19c)})]});}function Ve(){return _0x23cc82(_0x20ba1f,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x1417ed(0x14a)],ke=(_0x3fa02c,_0x283b3f,_0x2b0b96,_0x118905)=>{var _0x2c4c87=_0x1417ed;for(var _0x18bc7a=_0x118905>0x1?void 0x0:_0x118905?Me(_0x283b3f,_0x2b0b96):_0x283b3f,_0x1f4b9c=_0x3fa02c[_0x2c4c87(0x193)]-0x1,_0x27bb97;_0x1f4b9c>=0x0;_0x1f4b9c--)(_0x27bb97=_0x3fa02c[_0x1f4b9c])&&(_0x18bc7a=_0x27bb97(_0x18bc7a)||_0x18bc7a);return _0x18bc7a;},$=(_0x8d7770,_0x144218)=>(_0x5123be,_0x1763b7)=>_0x144218(_0x5123be,_0x1763b7,_0x8d7770);let b=class extends _0x5a3c0b{constructor(_0x331ab5,_0x16abf2){var _0x550d14=_0x1417ed;super(),this[_0x550d14(0x161)]=_0x331ab5,this[_0x550d14(0x147)]=_0x16abf2,this[_0x550d14(0x19f)]();}[_0x1417ed(0x19f)](){var _0x28c324=_0x1417ed;this[_0x28c324(0x11c)](this[_0x28c324(0x147)][_0x28c324(0x16f)](_0x4fb6b9['HEADER_MENU'],()=>_0x4c37d2(Te,this['_injector'])));}};function _0x2d2d(){var _0x2bb03e=['univer-outline-none\x20univer-text-gray-600\x20univer-border-none','svg','dispose$','parse','text','_injector','tryStartPresenting','following','stringify','_fetchOperations','pluginName','entries','includes','icon','_startFollowing','className','Stop\x20following','xlink:href','set','registerComponent','get','call','OFFLINE','IDLE','use','LIVESHARE_REQUEST_HOST','_handleOnline','init','LiveShareIcon','FOLLOWING','15102370XoEYxP','getUnitId','concat','_handleNewHost','SAME_OPERATION_SHARE_INTERVAL','univer-w-full\x20univer-mb-3\x20univer-text-sm','_beIdle','asObservable','reverse','defIds','clear','attrs','NOT_FOLLOWING','1250464eDFpMg','getConfig','_status$','onStarting','2576672wkaHdv','data','prototype','846450tYrfMF','Present\x20this\x20document','displayName','LIVESHARE_OPERATION','_handleNewChangeSets','length','_univerInstanceService','stopFollowing','status$','has','offline','_collabSessionService','onCommandExecuted','registerSharedOperation','Stop\x20presenting','send','_sharedOperations','_mountLiveShare','unsubscribe','_unitID','6395767TLhpDX','apply','params','presenter','getValue','event$','You\x27re\x20presenting\x20the\x20document','default','ONLINE','createInstance','defineProperty','24ISppoY','_commandDisposable','univer-size-4','delete','5305437Cvamun','string','indexOf','idle','_startLiveShareCoordinator','replace','19692oYXNJf','button','_startPresenting','getTypeOfUnitDisposed$','fill','complete','http://www.w3.org/2000/svg','shouldShareOperation','_stopPresenting','UNIVER_SHEET','url(#$1','div','presenting','_liveShareService','substring','extend','defs','type','getTypeOfUnitAdded$','unitId','disposeWithMe','Start','idSuffix','children','not-following','9bvlHRi','_init','_presenter','random','LIVESHARE_TERMINATE','_status','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','stopPresenting','_config','tag','LIVESHARE_FETCH_OPERATIONS','getMemberID','startFollowing','_configService','_entities','_reporters','_stopFollowing','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','function','evenodd','mask','assign','add','symbol','live-share.config','getLiveShareCoordinator','trim','_collabSession','1em','forEach','PRESENTING','_handleOperation','memberID','dispose','subscribe','executeCommand','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','path','_uiPartsService','sessionStatus$','next','getOwnPropertyDescriptor','colorChannel1','live-share-icon','OPERATION','UNIVER_LIVE_SHARE_PLUGIN','currentColor','NEW_CHANGESETS','hasOwnProperty','then','map','pipe','getInitialStates','current','getOwnPropertySymbols','You\x27re\x20following\x20the\x20presenter','_commandService','8blFErg','getCurrentTypeOfUnit$'];_0x2d2d=function(){return _0x2bb03e;};return _0x2d2d();}b=ke([$(0x0,_0x3142fa(_0x4c551c)),$(0x1,_0xdcb7a5)],b);var Ge=Object[_0x1417ed(0x1ac)],We=Object[_0x1417ed(0x14a)],Ye=(_0x59a5eb,_0x4c8de9,_0xb1bf66)=>_0x4c8de9 in _0x59a5eb?Ge(_0x59a5eb,_0x4c8de9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb1bf66}):_0x59a5eb[_0x4c8de9]=_0xb1bf66,Be=(_0x1a5d5f,_0x5c85f7,_0x1ecc67,_0x349534)=>{var _0x3fdc87=_0x1417ed;for(var _0x560444=_0x349534>0x1?void 0x0:_0x349534?We(_0x5c85f7,_0x1ecc67):_0x5c85f7,_0x46a87f=_0x1a5d5f[_0x3fdc87(0x193)]-0x1,_0x10b00e;_0x46a87f>=0x0;_0x46a87f--)(_0x10b00e=_0x1a5d5f[_0x46a87f])&&(_0x560444=_0x10b00e(_0x560444)||_0x560444);return _0x560444;},F=(_0x263ce5,_0x258416)=>(_0x4af064,_0x1ca4ff)=>_0x258416(_0x4af064,_0x1ca4ff,_0x263ce5),J=(_0xdfd840,_0x4e429a,_0x1ed0d6)=>Ye(_0xdfd840,typeof _0x4e429a!=_0x1417ed(0x138)?_0x4e429a+'':_0x4e429a,_0x1ed0d6);const Ze=_0x1417ed(0x14e);let O=class extends _0x2eea43{constructor(_0x3f756d=T,_0x55ed3b,_0x3b3127){var _0x480564=_0x1417ed;super(),this['_config']=_0x3f756d,this[_0x480564(0x161)]=_0x55ed3b,this[_0x480564(0x12e)]=_0x3b3127;const {..._0x1897fc}=_0x2c031d({},T,this[_0x480564(0x129)]);this[_0x480564(0x12e)]['setConfig'](Oe,_0x1897fc);}[_0x1417ed(0x18a)](){_0x1d739e(this['_injector'],_0x2f04b4([[L],[I],[m],[b]],this['_config']['override'])),_0x560cdb(this['_injector'],[[m]]);}['onRendered'](){var _0x247a81=_0x1417ed;_0x560cdb(this[_0x247a81(0x161)],[[b]]);}};J(O,_0x1417ed(0x119),_0x2f6889['UNIVER_UNKNOWN']),J(O,_0x1417ed(0x166),Ze),O=Be([_0x2af3cb(_0x1c676a),F(0x1,_0x3142fa(_0x4c551c)),F(0x2,_0x55a2c1)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x2ae16c=_0x2506;(function(_0x3fd78d,_0x29fb1c){var _0x2fcd18=_0x2506,_0x26cd98=_0x3fd78d();while(!![]){try{var _0x4e9bd7=parseInt(_0x2fcd18(0x1bf))/0x1+parseInt(_0x2fcd18(0x190))/0x2+-parseInt(_0x2fcd18(0x1b6))/0x3+parseInt(_0x2fcd18(0x1b2))/0x4+-parseInt(_0x2fcd18(0x1e4))/0x5*(parseInt(_0x2fcd18(0x1d6))/0x6)+-parseInt(_0x2fcd18(0x1bc))/0x7+parseInt(_0x2fcd18(0x1fb))/0x8*(parseInt(_0x2fcd18(0x21f))/0x9);if(_0x4e9bd7===_0x29fb1c)break;else _0x26cd98['push'](_0x26cd98['shift']());}catch(_0x1f489d){_0x26cd98['push'](_0x26cd98['shift']());}}}(_0x5400,0x51358));var q=Object[_0x2ae16c(0x1a6)],z=(_0x22255e,_0x548d99,_0x376ca9)=>_0x548d99 in _0x22255e?q(_0x22255e,_0x548d99,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x376ca9}):_0x22255e[_0x548d99]=_0x376ca9,d=(_0x4467b5,_0x5b9072,_0x4fd19f)=>z(_0x4467b5,typeof _0x5b9072!='symbol'?_0x5b9072+'':_0x5b9072,_0x4fd19f);import{CollaborationSessionService as _0x4f5af2,SessionStatus as _0x4d71b3,UniverCollaborationClientPlugin as _0x27f278}from'@univerjs-pro/collaboration-client';import{Disposable as _0x2ccbb9,toDisposable as _0x38901e,Inject as _0x593737,IUniverInstanceService as _0x1a7ea1,Injector as _0xe7680d,IConfigService as _0x1ad72f,ICommandService as _0x560e7e,RxDisposable as _0x55e2fc,UniverInstanceType as _0x42ee76,DisposableCollection as _0x2221d0,CommandType as _0x25c528,DependentOn as _0x46cf58,Plugin as _0x463199,merge as _0x54fc87,registerDependencies as _0x3f2cd6,mergeOverrideWithDependencies as _0x43b81e,touchDependencies as _0x5144c9}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x156019,InsertSheetMutation as _0x2adb2e}from'@univerjs/sheets';import{SetZoomRatioOperation as _0xc12c9e,SetScrollOperation as _0x21e91d}from'@univerjs/sheets-ui';import{useDependency as _0x1d89de,useObservable as _0x19ab69,IUIPartsService as _0x5f57dd,BuiltInUIPart as _0x596006,connectInjector as _0x9eed15}from'@univerjs/ui';import{jsx as _0xa8e486,jsxs as _0x1f8228,Fragment as _0xa79dd}from'react/jsx-runtime';import{Dropdown as _0x524d08,clsx as _0x4589dc,Button as _0x2cd243}from'@univerjs/design';import{forwardRef as _0x53f5e8,useRef as _0x19b438,createElement as _0x43b2f6,useState as _0x2c2ba0,useEffect as _0x5d5c39}from'react';import{CollaborationEvent as _0x3d2fa7,parseProtocolChangeset as _0x5e0ea2}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x1f3e9c,Subject as _0x26d562}from'rxjs';import{takeUntil as _0x4dbea4,throttleTime as _0xa3d9ff}from'rxjs/operators';const Oe=_0x2ae16c(0x1c3),T={};class L extends _0x2ccbb9{constructor(){var _0x21b4b5=_0x2ae16c;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x21b4b5(0x1ea),new Set());}[_0x2ae16c(0x222)](_0x3cb7f1){var _0x296ce5=_0x2ae16c;return this[_0x296ce5(0x218)][_0x296ce5(0x1cb)](_0x3cb7f1),_0x38901e(()=>this['_sharedOperations'][_0x296ce5(0x1d0)](_0x3cb7f1));}['registerInitialStateReporter'](_0x3dd980){var _0x51358e=_0x2ae16c;return this[_0x51358e(0x1ea)][_0x51358e(0x1cb)](_0x3dd980),_0x38901e(()=>this[_0x51358e(0x1ea)]['delete'](_0x3dd980));}['shouldShareOperation'](_0x1d4a24){var _0x1d4501=_0x2ae16c;return this[_0x1d4501(0x218)][_0x1d4501(0x19b)](_0x1d4a24);}[_0x2ae16c(0x1c9)](_0x266566){var _0x264bc4=_0x2ae16c;return Array[_0x264bc4(0x229)](this[_0x264bc4(0x1ea)])[_0x264bc4(0x214)](_0x3989aa=>_0x3989aa(_0x266566));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x1426e2,_0x488f93,_0x415448,_0x58260e)=>{var _0x32aac6=_0x2ae16c;for(var _0x2a9642=_0x58260e>0x1?void 0x0:_0x58260e?Ee(_0x488f93,_0x415448):_0x488f93,_0xe27a18=_0x1426e2[_0x32aac6(0x1d1)]-0x1,_0x1ab13d;_0xe27a18>=0x0;_0xe27a18--)(_0x1ab13d=_0x1426e2[_0xe27a18])&&(_0x2a9642=_0x1ab13d(_0x2a9642)||_0x2a9642);return _0x2a9642;},Ne=(_0x4d4418,_0x4ed351)=>(_0x52cc34,_0x4dd922)=>_0x4ed351(_0x52cc34,_0x4dd922,_0x4d4418);let m=class extends _0x2ccbb9{constructor(_0x40181d){var _0x35a70b=_0x2ae16c;super(),this['_liveShareService']=_0x40181d,this[_0x35a70b(0x22e)]();}['_init'](){var _0x20d9e0=_0x2ae16c;[_0xc12c9e['id'],_0x21e91d['id'],_0x156019['id']][_0x20d9e0(0x226)](_0x3209c5=>{var _0x145342=_0x20d9e0;this[_0x145342(0x199)](this['_liveShareService'][_0x145342(0x222)](_0x3209c5));});}};m=we([Ne(0x0,_0x593737(L))],m);var c=function(){var _0x1e67d5=_0x2ae16c;return c=Object[_0x1e67d5(0x1fd)]||function(_0x3e3853){var _0x242cbe=_0x1e67d5;for(var _0x7c648f,_0x4588ea=0x1,_0x4de5de=arguments['length'];_0x4588ea<_0x4de5de;_0x4588ea++){_0x7c648f=arguments[_0x4588ea];for(var _0x1cf573 in _0x7c648f)Object[_0x242cbe(0x1c4)][_0x242cbe(0x1a7)][_0x242cbe(0x1dc)](_0x7c648f,_0x1cf573)&&(_0x3e3853[_0x1cf573]=_0x7c648f[_0x1cf573]);}return _0x3e3853;},c[_0x1e67d5(0x1b1)](this,arguments);},Ce=function(_0x43a552,_0x593e36){var _0x31a51e=_0x2ae16c,_0x18593e={};for(var _0x58f84e in _0x43a552)Object['prototype']['hasOwnProperty']['call'](_0x43a552,_0x58f84e)&&_0x593e36[_0x31a51e(0x211)](_0x58f84e)<0x0&&(_0x18593e[_0x58f84e]=_0x43a552[_0x58f84e]);if(_0x43a552!=null&&typeof Object['getOwnPropertySymbols']==_0x31a51e(0x1ad)){for(var _0x2c35f2=0x0,_0x58f84e=Object[_0x31a51e(0x1ba)](_0x43a552);_0x2c35f2<_0x58f84e[_0x31a51e(0x1d1)];_0x2c35f2++)_0x593e36[_0x31a51e(0x211)](_0x58f84e[_0x2c35f2])<0x0&&Object[_0x31a51e(0x1c4)][_0x31a51e(0x198)][_0x31a51e(0x1dc)](_0x43a552,_0x58f84e[_0x2c35f2])&&(_0x18593e[_0x58f84e[_0x2c35f2]]=_0x43a552[_0x58f84e[_0x2c35f2]]);}return _0x18593e;},W=_0x53f5e8(function(_0x3fda35,_0x380b7){var _0x59fc05=_0x2ae16c,_0x29aab6=_0x3fda35[_0x59fc05(0x1bb)],_0x57cb8b=_0x3fda35['id'],_0x3f393e=_0x3fda35[_0x59fc05(0x20c)],_0x3abd3a=_0x3fda35[_0x59fc05(0x232)],_0x5a9bc8=Ce(_0x3fda35,['icon','id',_0x59fc05(0x20c),_0x59fc05(0x232)]),_0x1b4bc5=_0x59fc05(0x1b9)[_0x59fc05(0x1f6)](_0x57cb8b,'\x20')['concat'](_0x3f393e||'')['trim'](),_0x2aa5bd=_0x19b438('_'[_0x59fc05(0x1f6)](Le()));return Y(_0x29aab6,''[_0x59fc05(0x1f6)](_0x57cb8b),{'defIds':_0x29aab6[_0x59fc05(0x20a)],'idSuffix':_0x2aa5bd[_0x59fc05(0x1d7)]},c({'ref':_0x380b7,'className':_0x1b4bc5},_0x5a9bc8),_0x3abd3a);});function Y(_0x15273c,_0x1bd5a4,_0x3baaa2,_0x1ff2ef,_0x1b03a8){var _0x3232e5=_0x2ae16c;return _0x43b2f6(_0x15273c[_0x3232e5(0x21e)],c(c({'key':_0x1bd5a4},De(_0x15273c,_0x3baaa2,_0x1b03a8)),_0x1ff2ef),(xe(_0x15273c,_0x3baaa2)[_0x3232e5(0x1d5)]||[])[_0x3232e5(0x214)](function(_0x3846c5,_0x3f7044){var _0x328c22=_0x3232e5;return Y(_0x3846c5,''[_0x328c22(0x1f6)](_0x1bd5a4,'-')[_0x328c22(0x1f6)](_0x15273c['tag'],'-')[_0x328c22(0x1f6)](_0x3f7044),_0x3baaa2,void 0x0,_0x1b03a8);}));}function De(_0x4f1345,_0x57b3b9,_0x22f553){var _0x3bb106=_0x2ae16c,_0x3a70f2=c({},_0x4f1345[_0x3bb106(0x213)]);_0x22f553!=null&&_0x22f553[_0x3bb106(0x212)]&&_0x3a70f2[_0x3bb106(0x1c2)]==='colorChannel1'&&(_0x3a70f2[_0x3bb106(0x1c2)]=_0x22f553['colorChannel1']),_0x4f1345[_0x3bb106(0x21e)]===_0x3bb106(0x1db)&&_0x3a70f2['id']&&(_0x3a70f2['id']=_0x3a70f2['id']+_0x57b3b9['idSuffix']),Object['entries'](_0x3a70f2)[_0x3bb106(0x226)](function(_0x4cd719){var _0x2399f3=_0x3bb106,_0x263fd5=_0x4cd719[0x0],_0xee1a3f=_0x4cd719[0x1];_0x263fd5==='mask'&&typeof _0xee1a3f==_0x2399f3(0x1d9)&&(_0x3a70f2[_0x263fd5]=_0xee1a3f[_0x2399f3(0x1ae)](/url\(#(.*)\)/,_0x2399f3(0x1c0)[_0x2399f3(0x1f6)](_0x57b3b9[_0x2399f3(0x1e0)],')')));});var _0x51b928=_0x57b3b9[_0x3bb106(0x20a)];return!_0x51b928||_0x51b928[_0x3bb106(0x1d1)]===0x0||(_0x4f1345['tag']===_0x3bb106(0x223)&&_0x3a70f2[_0x3bb106(0x239)]&&(_0x3a70f2[_0x3bb106(0x239)]=_0x3a70f2['xlink:href']+_0x57b3b9['idSuffix']),Object[_0x3bb106(0x19a)](_0x3a70f2)[_0x3bb106(0x226)](function(_0xf98fa5){var _0x203526=_0x3bb106,_0x5e486b=_0xf98fa5[0x0],_0x3ec3fe=_0xf98fa5[0x1];typeof _0x3ec3fe=='string'&&(_0x3a70f2[_0x5e486b]=_0x3ec3fe[_0x203526(0x1ae)](/url\(#(.*)\)/,_0x203526(0x1c0)[_0x203526(0x1f6)](_0x57b3b9[_0x203526(0x1e0)],')')));})),_0x3a70f2;}function xe(_0x41ab13,_0xf1e4e8){var _0x47adb4=_0x2ae16c,_0x53cdf0,_0x2a08b4=_0xf1e4e8[_0x47adb4(0x20a)];return!_0x2a08b4||_0x2a08b4['length']===0x0?_0x41ab13:_0x41ab13[_0x47adb4(0x21e)]==='defs'&&(!((_0x53cdf0=_0x41ab13['children'])===null||_0x53cdf0===void 0x0)&&_0x53cdf0[_0x47adb4(0x1d1)])?c(c({},_0x41ab13),{'children':_0x41ab13[_0x47adb4(0x1d5)]['map'](function(_0x5d5dff){var _0x241b32=_0x47adb4;return typeof _0x5d5dff[_0x241b32(0x213)]['id']==_0x241b32(0x1d9)&&_0x2a08b4&&_0x2a08b4[_0x241b32(0x1b3)](_0x5d5dff[_0x241b32(0x213)]['id'])?c(c({},_0x5d5dff),{'attrs':c(c({},_0x5d5dff[_0x241b32(0x213)]),{'id':_0x5d5dff['attrs']['id']+_0xf1e4e8['idSuffix']})}):_0x5d5dff;})}):_0x41ab13;}function _0x2506(_0xa70875,_0x1422bf){var _0x5400d7=_0x5400();return _0x2506=function(_0x250617,_0x3e3126){_0x250617=_0x250617-0x188;var _0x5bf819=_0x5400d7[_0x250617];return _0x5bf819;},_0x2506(_0xa70875,_0x1422bf);}function Le(){var _0x273f1b=_0x2ae16c;return Math['random']()[_0x273f1b(0x1e7)](0x24)[_0x273f1b(0x231)](0x2,0x8);}W[_0x2ae16c(0x1ce)]='UniverIcon';var ye={'tag':'svg','attrs':{'xmlns':_0x2ae16c(0x1cc),'fill':_0x2ae16c(0x236),'viewBox':_0x2ae16c(0x1e3),'width':_0x2ae16c(0x1e8),'height':_0x2ae16c(0x1e8)},'children':[{'tag':_0x2ae16c(0x1e1),'attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x2ae16c(0x1e1),'attrs':{'fill':_0x2ae16c(0x234),'d':_0x2ae16c(0x1a1),'fillRule':'evenodd','clipRule':_0x2ae16c(0x20f)}}]},B=_0x53f5e8(function(_0x1c22f7,_0x31c8ef){var _0x3f488a=_0x2ae16c;return _0x43b2f6(W,Object[_0x3f488a(0x1fd)]({},_0x1c22f7,{'id':_0x3f488a(0x1fc),'ref':_0x31c8ef,'icon':ye}));});B[_0x2ae16c(0x1ce)]=_0x2ae16c(0x1fa);var Re=Object[_0x2ae16c(0x1c7)],Z=(_0x12f08a,_0x3517cf,_0x227c81,_0x48dac0)=>{var _0x3e37b1=_0x2ae16c;for(var _0x1ac48a=_0x48dac0>0x1?void 0x0:_0x48dac0?Re(_0x3517cf,_0x227c81):_0x3517cf,_0x299efa=_0x12f08a[_0x3e37b1(0x1d1)]-0x1,_0x162a83;_0x299efa>=0x0;_0x299efa--)(_0x162a83=_0x12f08a[_0x299efa])&&(_0x1ac48a=_0x162a83(_0x1ac48a)||_0x1ac48a);return _0x1ac48a;},f=(_0x310962,_0x2a6a15)=>(_0x3fc43e,_0x225e2e)=>_0x2a6a15(_0x3fc43e,_0x225e2e,_0x310962);let I=class extends _0x55e2fc{constructor(_0x5a4353,_0x442e13,_0x5c0453){var _0x1c2fbd=_0x2ae16c;super(),d(this,_0x1c2fbd(0x18f),new Map()),(this[_0x1c2fbd(0x18a)]=_0x5a4353,this[_0x1c2fbd(0x23a)]=_0x442e13,this[_0x1c2fbd(0x1f7)]=_0x5c0453,this[_0x1c2fbd(0x22e)]());}async[_0x2ae16c(0x1a3)](_0x4d6da2){var _0x3011ca=_0x2ae16c;return this[_0x3011ca(0x18f)][_0x3011ca(0x19b)](_0x4d6da2)||await this[_0x3011ca(0x1af)](_0x4d6da2),this[_0x3011ca(0x18f)][_0x3011ca(0x1eb)](_0x4d6da2);}[_0x2ae16c(0x22e)](){var _0x931116=_0x2ae16c;this[_0x931116(0x18a)][_0x931116(0x20e)](_0x42ee76[_0x931116(0x18b)])[_0x931116(0x200)](_0x4dbea4(this[_0x931116(0x227)]))[_0x931116(0x1a9)](async _0x3b7f34=>{var _0x7d3742=_0x931116;const _0x3afd5b=_0x3b7f34[_0x7d3742(0x1f9)]();this[_0x7d3742(0x18f)][_0x7d3742(0x19b)](_0x3afd5b)||this[_0x7d3742(0x1af)](_0x3afd5b);}),this[_0x931116(0x18a)][_0x931116(0x1dd)](_0x42ee76[_0x931116(0x18b)])[_0x931116(0x200)](_0x4dbea4(this[_0x931116(0x227)]))[_0x931116(0x1a9)](_0xb1d7d1=>{var _0xebfefe=_0x931116;const _0x3b6c80=_0xb1d7d1[_0xebfefe(0x1f9)](),_0x168387=this['_entities'][_0xebfefe(0x1eb)](_0x3b6c80);_0x168387==null||_0x168387[_0xebfefe(0x1b8)]();});}async[_0x2ae16c(0x1af)](_0xf9367b){var _0x51af54=_0x2ae16c;const _0x320c63=await this[_0x51af54(0x1f7)][_0x51af54(0x237)](_0xf9367b),_0x3addea=this[_0x51af54(0x23a)][_0x51af54(0x195)](C,_0xf9367b,_0x320c63);return _0x3addea[_0x51af54(0x1b0)](),this['_entities'][_0x51af54(0x202)](_0xf9367b,_0x3addea),_0x3addea;}};I=Z([f(0x0,_0x1a7ea1),f(0x1,_0x593737(_0xe7680d)),f(0x2,_0x593737(_0x4f5af2))],I);var h=(_0x34d445=>(_0x34d445[_0x2ae16c(0x1f1)]='offline',_0x34d445[_0x2ae16c(0x1de)]=_0x2ae16c(0x1df),_0x34d445[_0x2ae16c(0x1c1)]=_0x2ae16c(0x1bd),_0x34d445[_0x2ae16c(0x1d4)]=_0x2ae16c(0x225),_0x34d445[_0x2ae16c(0x19e)]=_0x2ae16c(0x220),_0x34d445))(h||{});const Pe=_0x2ae16c(0x217),Ae=0xc8;let C=class extends _0x55e2fc{constructor(_0xe7ff09,_0xbef96,_0x4fe943,_0x4827c4,_0x16b26d){var _0x2d0e2c=_0x2ae16c;super(),d(this,_0x2d0e2c(0x1f0),new _0x1f3e9c(_0x2d0e2c(0x1df))),d(this,_0x2d0e2c(0x18d),this['_status$'][_0x2d0e2c(0x1a0)]()),d(this,_0x2d0e2c(0x22e),!0x1),d(this,_0x2d0e2c(0x1be),null),d(this,_0x2d0e2c(0x1d8),null),(this[_0x2d0e2c(0x191)]=_0xe7ff09,this['_collabSession']=_0xbef96,this[_0x2d0e2c(0x205)]=_0x4fe943,this[_0x2d0e2c(0x1f2)]=_0x4827c4,this[_0x2d0e2c(0x1ca)]=_0x16b26d);}get[_0x2ae16c(0x189)](){var _0x246a13=_0x2ae16c;return this[_0x246a13(0x1f0)]['getValue']();}[_0x2ae16c(0x1b8)](){var _0x44b047=_0x2ae16c,_0x4fd831;(_0x4fd831=this[_0x44b047(0x1be)])==null||_0x4fd831[_0x44b047(0x1b8)](),this[_0x44b047(0x1f0)][_0x44b047(0x228)](_0x44b047(0x1df)),this[_0x44b047(0x1f0)][_0x44b047(0x235)]();}[_0x2ae16c(0x1b0)](){var _0x1ba29d=_0x2ae16c;this[_0x1ba29d(0x22e)]||(this[_0x1ba29d(0x22e)]=!0x0,this['_collabSession'][_0x1ba29d(0x19c)]['pipe'](_0x4dbea4(this['dispose$']))[_0x1ba29d(0x1a9)](_0x468637=>{var _0x1351be=_0x1ba29d;switch(_0x468637){case _0x4d71b3[_0x1351be(0x1f1)]:this[_0x1351be(0x1da)]();break;case _0x4d71b3['ONLINE']:this[_0x1351be(0x21b)]();break;}}),this[_0x1ba29d(0x208)][_0x1ba29d(0x209)][_0x1ba29d(0x200)](_0x4dbea4(this[_0x1ba29d(0x227)]))[_0x1ba29d(0x1a9)](_0x15ff75=>{var _0x30dc3a=_0x1ba29d;const {eventID:_0x3da848}=_0x15ff75;switch(_0x3da848){case _0x3d2fa7[_0x30dc3a(0x188)]:this[_0x30dc3a(0x192)](_0x15ff75);break;case _0x3d2fa7[_0x30dc3a(0x20b)]:this[_0x30dc3a(0x1ee)](_0x15ff75);break;case _0x3d2fa7[_0x30dc3a(0x193)]:this[_0x30dc3a(0x1f3)]();break;case _0x3d2fa7[_0x30dc3a(0x1c6)]:this[_0x30dc3a(0x203)](_0x15ff75);break;}}));}[_0x2ae16c(0x1c5)](){var _0x4f4765=_0x2ae16c;this['_collabSession'][_0x4f4765(0x196)]({'eventID':_0x3d2fa7['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4f4765(0x191)],'userID':this['_collabSession'][_0x4f4765(0x215)]()}},this[_0x4f4765(0x191)]);}[_0x2ae16c(0x201)](){var _0x13fdf9=_0x2ae16c;this['_status']===_0x13fdf9(0x220)&&(this[_0x13fdf9(0x1f0)][_0x13fdf9(0x228)](_0x13fdf9(0x1df)),this[_0x13fdf9(0x208)][_0x13fdf9(0x196)]({'eventID':_0x3d2fa7[_0x13fdf9(0x193)],'data':{'unitID':this[_0x13fdf9(0x191)]}},this['_unitID']));}[_0x2ae16c(0x1ec)](){var _0x21d8c5=_0x2ae16c;this[_0x21d8c5(0x189)]===_0x21d8c5(0x225)&&(this[_0x21d8c5(0x1f0)]['next'](_0x21d8c5(0x1bd)),this[_0x21d8c5(0x1e9)]());}[_0x2ae16c(0x230)](){var _0x3914cf=_0x2ae16c;this[_0x3914cf(0x189)]==='following'&&this[_0x3914cf(0x1aa)]();}[_0x2ae16c(0x192)](_0x6ebcf2){var _0xcb5cc6=_0x2ae16c;const {presenter:_0x546c64}=_0x6ebcf2['data'],_0x2eaf73=this[_0xcb5cc6(0x208)][_0xcb5cc6(0x215)]();this[_0xcb5cc6(0x1d8)]=_0x546c64,_0x546c64===_0x2eaf73?(this['_stopFollowing'](),this[_0xcb5cc6(0x1e5)]()):this[_0xcb5cc6(0x189)]!==_0xcb5cc6(0x225)&&(this[_0xcb5cc6(0x18e)](),this[_0xcb5cc6(0x1e9)]());}[_0x2ae16c(0x1e6)](){var _0x1258b2=_0x2ae16c;const _0x4a09e8={'eventID':_0x3d2fa7[_0x1258b2(0x1d3)]};this['_collabSession'][_0x1258b2(0x196)](_0x4a09e8,this[_0x1258b2(0x191)]);}[_0x2ae16c(0x1f3)](){var _0x17ceee=_0x2ae16c;this['_presenter']=null,this['_status']!==_0x17ceee(0x220)&&this['_beIdle']();}['_handleNewChangeSets'](_0x597ce8){var _0x451583=_0x2ae16c;if(this[_0x451583(0x189)]===_0x451583(0x1bd)&&this[_0x451583(0x1d8)]===_0x597ce8[_0x451583(0x1f5)]['memberID']){const _0x508eea=_0x5e0ea2(_0x597ce8[_0x451583(0x1f5)])['mutations'][_0x451583(0x197)]()[_0x451583(0x1f4)](_0x39dbb9=>_0x39dbb9['id']===_0x2adb2e['id']);if(_0x508eea){const _0xb111ea=_0x508eea[_0x451583(0x224)][_0x451583(0x219)],_0x107f59=_0x508eea[_0x451583(0x224)]['sheet']['id'];setTimeout(()=>{var _0x3fb99e=_0x451583;this['_commandService'][_0x3fb99e(0x18c)](_0x156019['id'],{'unitId':_0xb111ea,'subUnitId':_0x107f59},{'fromCollab':!0x0});});}}}[_0x2ae16c(0x1e5)](){var _0x2bae0c=_0x2ae16c;this['_status$'][_0x2bae0c(0x228)]('presenting');const _0x8158f=new Map(),_0x49a61b=this[_0x2bae0c(0x1be)]=new _0x2221d0();_0x49a61b['add'](_0x38901e(()=>{var _0x2217bb=_0x2bae0c;_0x8158f[_0x2217bb(0x226)](_0xf9f025=>_0xf9f025[_0x2217bb(0x235)]()),_0x8158f[_0x2217bb(0x20d)]();})),_0x49a61b['add'](this[_0x2bae0c(0x1ca)][_0x2bae0c(0x22c)](_0x340898=>{var _0xcc711e=_0x2bae0c,_0xa3aac9;if(_0x340898['type']!==_0x25c528[_0xcc711e(0x1a2)]||!this[_0xcc711e(0x1f2)][_0xcc711e(0x1a8)](_0x340898['id']))return;const {id:_0x1aeed9}=_0x340898;let _0x749247;_0x8158f[_0xcc711e(0x19b)](_0x1aeed9)?_0x749247=_0x8158f[_0xcc711e(0x1eb)](_0x1aeed9):(_0x749247=new _0x26d562(),_0x8158f[_0xcc711e(0x202)](_0x1aeed9,_0x749247),_0x749247[_0xcc711e(0x200)](_0xa3d9ff((_0xa3aac9=this[_0xcc711e(0x205)][_0xcc711e(0x1cf)](Pe))!=null?_0xa3aac9:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x37d15e=>{var _0x5be08d=_0xcc711e;this['_collabSession'][_0x5be08d(0x196)]({'eventID':_0x3d2fa7['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5be08d(0x191)],'operations':{[_0x37d15e['id']]:{'id':_0x37d15e['id'],'params':JSON['stringify'](_0x37d15e['params'])}}}},this['_unitID']);})),_0x749247[_0xcc711e(0x228)](_0x340898);})),this['_liveShareService'][_0x2bae0c(0x1c9)](this[_0x2bae0c(0x191)])[_0x2bae0c(0x226)](_0x79848b=>this[_0x2bae0c(0x208)][_0x2bae0c(0x196)]({'eventID':_0x3d2fa7[_0x2bae0c(0x20b)],'data':{'unitID':this[_0x2bae0c(0x191)],'operations':{[_0x79848b['id']]:{'id':_0x79848b['id'],'params':JSON['stringify'](_0x79848b[_0x2bae0c(0x224)])}}}},this[_0x2bae0c(0x191)]));}[_0x2ae16c(0x18e)](){var _0x2b9b0a=_0x2ae16c,_0x5472d0;this[_0x2b9b0a(0x1f0)]['next'](_0x2b9b0a(0x1df)),(_0x5472d0=this[_0x2b9b0a(0x1be)])==null||_0x5472d0['dispose'](),this[_0x2b9b0a(0x1be)]=null;}[_0x2ae16c(0x1e9)](){var _0x5e1154=_0x2ae16c,_0x3b39ce;(_0x3b39ce=this[_0x5e1154(0x1be)])==null||_0x3b39ce[_0x5e1154(0x1b8)](),this[_0x5e1154(0x1f0)][_0x5e1154(0x228)]('following');}[_0x2ae16c(0x1d2)](){var _0x344364=_0x2ae16c,_0x3afb1c;this['_status$'][_0x344364(0x228)]('idle'),(_0x3afb1c=this['_commandDisposable'])==null||_0x3afb1c[_0x344364(0x1b8)](),this[_0x344364(0x1be)]=null;}[_0x2ae16c(0x1aa)](){var _0x133a84=_0x2ae16c,_0xcf13b2;this[_0x133a84(0x1f0)][_0x133a84(0x228)](_0x133a84(0x225)),(_0xcf13b2=this[_0x133a84(0x1be)])==null||_0xcf13b2[_0x133a84(0x1b8)]();}[_0x2ae16c(0x1ee)](_0x31dd84){var _0x280522=_0x2ae16c;if([_0x280522(0x220),'not-following',_0x280522(0x233)][_0x280522(0x1b3)](this[_0x280522(0x189)])||!_0x31dd84[_0x280522(0x1f5)][_0x280522(0x21d)]||_0x31dd84['data']['presenter']===this['_collabSession'][_0x280522(0x215)]())return;this['_status']===_0x280522(0x1df)&&this[_0x280522(0x1e9)]();const _0x1c588e=_0x31dd84[_0x280522(0x1f5)][_0x280522(0x1ac)];Object[_0x280522(0x1ff)](_0x1c588e)[_0x280522(0x226)](_0x4bad81=>{var _0x27d4e6=_0x280522;this['_commandService'][_0x27d4e6(0x18c)](_0x4bad81['id'],_0x4bad81['params']?JSON['parse'](_0x4bad81[_0x27d4e6(0x224)]):null,{'fromCollab':!0x0});});}[_0x2ae16c(0x1da)](){var _0x38479d=_0x2ae16c,_0x5827fc;this[_0x38479d(0x1f0)][_0x38479d(0x228)](_0x38479d(0x233)),(_0x5827fc=this[_0x38479d(0x1be)])==null||_0x5827fc[_0x38479d(0x1b8)]();}['_handleOnline'](){var _0x4ef888=_0x2ae16c;this['_status$'][_0x4ef888(0x228)](_0x4ef888(0x1df)),this['_fetchOperations']();}};C=Z([f(0x2,_0x1ad72f),f(0x3,_0x593737(L)),f(0x4,_0x560e7e)],C);function Te(){var _0x270f9c=_0x2ae16c;const _0x366ceb=_0x1d89de(I),_0x1db121=_0x1d89de(_0x1a7ea1),_0x111726=_0x19ab69(()=>_0x1db121[_0x270f9c(0x21c)](_0x42ee76[_0x270f9c(0x18b)]),void 0x0,!0x1,[]),[_0x1a154d,_0x27e377]=_0x2c2ba0(null),[_0x32735b,_0x4a9be2]=_0x2c2ba0(h[_0x270f9c(0x1de)]),_0x473a86=_0x19b438(null);return _0x5d5c39(()=>(_0x111726&&_0x366ceb[_0x270f9c(0x1a3)](_0x111726[_0x270f9c(0x1f9)]())[_0x270f9c(0x206)](_0x4c87e0=>{var _0x510372=_0x270f9c;_0x27e377(_0x4c87e0),_0x473a86[_0x510372(0x1d7)]=_0x4c87e0[_0x510372(0x18d)][_0x510372(0x1a9)](_0x5bbbcc=>{_0x4a9be2(_0x5bbbcc);});}),()=>{var _0x12611d=_0x270f9c,_0x382f64;(_0x382f64=_0x473a86['current'])==null||_0x382f64[_0x12611d(0x1ed)](),_0x473a86[_0x12611d(0x1d7)]=null;}),[_0x111726,_0x366ceb]),_0x1a154d?_0xa8e486(_0x524d08,{'align':_0x270f9c(0x1cd),'disabled':_0x32735b===h[_0x270f9c(0x1f1)],'className':_0x270f9c(0x1a5),'overlay':_0xa8e486($e,{'status':_0x32735b,'coordinator':_0x1a154d}),'children':_0xa8e486(_0x270f9c(0x1fe),{'className':_0x4589dc(_0x270f9c(0x216),{'univer-cursor-not-allowed':_0x32735b===h[_0x270f9c(0x1f1)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x32735b!==h['OFFLINE']}),'type':_0x270f9c(0x1fe),'children':_0xa8e486(B,{'className':'univer-size-4'})})}):null;}function $e(_0x4361de){var _0x188f47=_0x2ae16c;const {status:_0xe43e89,coordinator:_0x415664}=_0x4361de;switch(_0xe43e89){case h[_0x188f47(0x1de)]:return _0xa8e486(Fe,{'coordinator':_0x415664});case h['FOLLOWING']:return _0xa8e486(He,{'coordinator':_0x415664});case h[_0x188f47(0x1d4)]:return _0xa8e486(je,{'coordinator':_0x415664});case h['OFFLINE']:return _0xa8e486(Ve,{});case h[_0x188f47(0x19e)]:return _0xa8e486(Ue,{'coordinator':_0x415664});default:return null;}}function Fe(_0x1e3967){var _0x3be6d6=_0x2ae16c;const {coordinator:_0x32f419}=_0x1e3967;return _0x1f8228(_0xa79dd,{'children':[_0xa8e486(_0x3be6d6(0x238),{'className':_0x3be6d6(0x210),'children':'Present\x20this\x20document'}),_0xa8e486(_0x2cd243,{'onClick':()=>_0x32f419[_0x3be6d6(0x1c5)](),'children':_0x3be6d6(0x22a)})]});}function He(_0x1b6d8c){var _0x24e68c=_0x2ae16c;const {coordinator:_0x3eadb2}=_0x1b6d8c;return _0x1f8228(_0xa79dd,{'children':[_0xa8e486('div',{'className':_0x24e68c(0x210),'children':_0x24e68c(0x22f)}),_0xa8e486(_0x2cd243,{'onClick':()=>_0x3eadb2[_0x24e68c(0x230)](),'children':_0x24e68c(0x19f)})]});}function je(_0x18c8d3){var _0x25dade=_0x2ae16c;const {coordinator:_0x543bc4}=_0x18c8d3;return _0x1f8228(_0xa79dd,{'children':[_0xa8e486(_0x25dade(0x238),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0xa8e486(_0x2cd243,{'variant':_0x25dade(0x1f8),'onClick':()=>_0x543bc4[_0x25dade(0x1ec)](),'children':_0x25dade(0x221)})]});}function Ue(_0x278160){var _0x35ca53=_0x2ae16c;const {coordinator:_0xb102b2}=_0x278160;return _0x1f8228(_0xa79dd,{'children':[_0xa8e486(_0x35ca53(0x238),{'className':_0x35ca53(0x210),'children':'You\x27re\x20presenting\x20the\x20document'}),_0xa8e486(_0x2cd243,{'variant':_0x35ca53(0x1b7),'onClick':()=>_0xb102b2['stopPresenting'](),'children':_0x35ca53(0x204)})]});}function Ve(){var _0x6db873=_0x2ae16c;return _0xa8e486(_0xa79dd,{'children':_0x6db873(0x1ef)});}var Me=Object[_0x2ae16c(0x1c7)],ke=(_0x578e67,_0x32fb8a,_0x4671da,_0x255013)=>{var _0x4a4485=_0x2ae16c;for(var _0xb9955f=_0x255013>0x1?void 0x0:_0x255013?Me(_0x32fb8a,_0x4671da):_0x32fb8a,_0x2ecdd8=_0x578e67[_0x4a4485(0x1d1)]-0x1,_0x266d4a;_0x2ecdd8>=0x0;_0x2ecdd8--)(_0x266d4a=_0x578e67[_0x2ecdd8])&&(_0xb9955f=_0x266d4a(_0xb9955f)||_0xb9955f);return _0xb9955f;},$=(_0x464c7c,_0x3518fd)=>(_0xe7439e,_0x5b6234)=>_0x3518fd(_0xe7439e,_0x5b6234,_0x464c7c);let b=class extends _0x2ccbb9{constructor(_0x2ef606,_0x397593){var _0x28636e=_0x2ae16c;super(),this['_injector']=_0x2ef606,this['_uiPartsService']=_0x397593,this[_0x28636e(0x1e2)]();}[_0x2ae16c(0x1e2)](){var _0x2cfd3e=_0x2ae16c;this[_0x2cfd3e(0x199)](this[_0x2cfd3e(0x1b5)][_0x2cfd3e(0x207)](_0x596006['HEADER_MENU'],()=>_0x9eed15(Te,this[_0x2cfd3e(0x23a)])));}};b=ke([$(0x0,_0x593737(_0xe7680d)),$(0x1,_0x5f57dd)],b);var Ge=Object[_0x2ae16c(0x1a6)],We=Object[_0x2ae16c(0x1c7)],Ye=(_0x166beb,_0x3e1a19,_0x166ed0)=>_0x3e1a19 in _0x166beb?Ge(_0x166beb,_0x3e1a19,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x166ed0}):_0x166beb[_0x3e1a19]=_0x166ed0,Be=(_0x4c07a7,_0x294604,_0x57ddd7,_0x4cf621)=>{var _0x3adfa0=_0x2ae16c;for(var _0x2fcda0=_0x4cf621>0x1?void 0x0:_0x4cf621?We(_0x294604,_0x57ddd7):_0x294604,_0x4fd524=_0x4c07a7[_0x3adfa0(0x1d1)]-0x1,_0x5d60c9;_0x4fd524>=0x0;_0x4fd524--)(_0x5d60c9=_0x4c07a7[_0x4fd524])&&(_0x2fcda0=_0x5d60c9(_0x2fcda0)||_0x2fcda0);return _0x2fcda0;},F=(_0x10f85c,_0x4f97cd)=>(_0x2035bb,_0x50b9d2)=>_0x4f97cd(_0x2035bb,_0x50b9d2,_0x10f85c),J=(_0xfc3a84,_0x4ec3e0,_0x1b3036)=>Ye(_0xfc3a84,typeof _0x4ec3e0!=_0x2ae16c(0x1b4)?_0x4ec3e0+'':_0x4ec3e0,_0x1b3036);const Ze=_0x2ae16c(0x194);let O=class extends _0x463199{constructor(_0xf2db2d=T,_0x1daa97,_0x4f9231){var _0x3b06d9=_0x2ae16c;super(),this[_0x3b06d9(0x22d)]=_0xf2db2d,this[_0x3b06d9(0x23a)]=_0x1daa97,this[_0x3b06d9(0x205)]=_0x4f9231;const {..._0x47819c}=_0x54fc87({},T,this[_0x3b06d9(0x22d)]);this['_configService'][_0x3b06d9(0x19d)](Oe,_0x47819c);}[_0x2ae16c(0x22b)](){var _0x446671=_0x2ae16c;_0x3f2cd6(this['_injector'],_0x43b81e([[L],[I],[m],[b]],this['_config'][_0x446671(0x1a4)])),_0x5144c9(this[_0x446671(0x23a)],[[m]]);}[_0x2ae16c(0x21a)](){var _0x49194e=_0x2ae16c;_0x5144c9(this[_0x49194e(0x23a)],[[b]]);}};J(O,'type',_0x42ee76[_0x2ae16c(0x1c8)]),J(O,_0x2ae16c(0x1ab),Ze),O=Be([_0x46cf58(_0x27f278),F(0x1,_0x593737(_0xe7680d)),F(0x2,_0x1ad72f)],O);function _0x5400(){var _0x307fac=['live-share-icon','assign','button','values','pipe','stopPresenting','set','_handleNewChangeSets','Stop\x20presenting','_configService','then','registerComponent','_collabSession','event$','defIds','LIVESHARE_OPERATION','className','clear','getTypeOfUnitAdded$','evenodd','univer-w-full\x20univer-mb-3\x20univer-text-sm','indexOf','colorChannel1','attrs','map','getMemberID','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','SAME_OPERATION_SHARE_INTERVAL','_sharedOperations','unitId','onRendered','_handleOnline','getCurrentTypeOfUnit$','presenter','tag','700092xupCNK','presenting','Start\x20following','registerSharedOperation','use','params','not-following','forEach','dispose$','next','from','Start','onStarting','onCommandExecuted','_config','_init','You\x27re\x20following\x20the\x20presenter','stopFollowing','substring','extend','offline','currentColor','complete','none','requireSession','div','xlink:href','_injector','LIVESHARE_NEW_HOST','_status','_univerInstanceService','UNIVER_SHEET','executeCommand','status$','_stopPresenting','_entities','1128128xROgEQ','_unitID','_handleNewHost','LIVESHARE_TERMINATE','UNIVER_LIVE_SHARE_PLUGIN','createInstance','send','reverse','propertyIsEnumerable','disposeWithMe','entries','has','sessionStatus$','setConfig','PRESENTING','Stop\x20following','asObservable','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','OPERATION','getLiveShareCoordinator','override','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','defineProperty','hasOwnProperty','shouldShareOperation','subscribe','_stopFollowing','pluginName','operations','function','replace','_startLiveShareCoordinator','init','apply','834608QrcUCx','includes','symbol','_uiPartsService','1512696knbjby','default','dispose','univerjs-icon\x20univerjs-icon-','getOwnPropertySymbols','icon','156177zJwaFO','following','_commandDisposable','128567tMYgxT','url(#$1','FOLLOWING','fill','live-share.config','prototype','tryStartPresenting','NEW_CHANGESETS','getOwnPropertyDescriptor','UNIVER_UNKNOWN','getInitialStates','_commandService','add','http://www.w3.org/2000/svg','end','displayName','getConfig','delete','length','_beIdle','LIVESHARE_FETCH_OPERATIONS','NOT_FOLLOWING','children','109992AXBiPy','current','_presenter','string','_handleOffline','mask','call','getTypeOfUnitDisposed$','IDLE','idle','idSuffix','path','_mountLiveShare','0\x200\x2017\x2017','160qfxzIe','_startPresenting','_fetchOperations','toString','1em','_startFollowing','_reporters','get','startFollowing','unsubscribe','_handleOperation','You\x27are\x20offline.','_status$','OFFLINE','_liveShareService','_handleTerminate','find','data','concat','_collabSessionService','text','getUnitId','LiveShareIcon','56RRufVu'];_0x5400=function(){return _0x307fac;};return _0x5400();}export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x1fc4(){var _0x412fb3=['Injector','live-share.config','DisposableCollection','presenting','call','SessionStatus','@univerjs/design','stopPresenting','following','Dropdown','getTypeOfUnitAdded$','override','_univerInstanceService','3752028JCLXau','getOwnPropertySymbols','button','rxjs/operators','_stopPresenting','react','_presenter','UNIVER_LIVE_SHARE_PLUGIN','ICommandService','onStarting','FOLLOWING','UniverCore','490624Zodsnv','data','LIVESHARE_OPERATION','_uiPartsService','defineProperty','UniverSheetsUi','univer-w-full\x20univer-mb-3\x20univer-text-sm','getLiveShareCoordinator','You\x27re\x20presenting\x20the\x20document','takeUntil','Module','@univerjs/ui','stringify','disposeWithMe','OPERATION','_beIdle','useRef','_startLiveShareCoordinator','symbol','reverse','forEach','_entities','_startFollowing','NOT_FOLLOWING','UNIVER_SHEET','CollaborationEvent','DesktopLiveShareController','OFFLINE','You\x27are\x20offline.','add','assign','send','set','SetWorksheetActiveOperation','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','PRESENTING','_liveShareService','current','Subject','unsubscribe','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','BehaviorSubject','_stopFollowing','idle','Start\x20following','forwardRef','Start','string','Button','not-following','jsxs','clear','UniverInstanceType','startFollowing','registerComponent','UNIVER_UNKNOWN','_commandDisposable','from','merge','CommandType','executeCommand','text','getOwnPropertyDescriptor','LIVESHARE_REQUEST_HOST','getTypeOfUnitDisposed$','getConfig','RxDisposable','LiveShareCoordinator','UniverIcon','IDLE','className','_handleOnline','entries','icon','default','displayName','setConfig','idSuffix','_handleOperation','toString','apply','presenter','_status','clsx','IUniverInstanceService','CollaborationSessionService','SAME_OPERATION_SHARE_INTERVAL','delete','UniverCollaborationClientPlugin','245171avEgxe','params','7884hWDSso','map','createElement','_reporters','throttleTime','_status$','_collabSession','status$','then','includes','jsx','registerInitialStateReporter','_sharedOperations','attrs','React','http://www.w3.org/2000/svg','live-share-icon','SetZoomRatioOperation','useState','mergeOverrideWithDependencies','@univerjs/sheets-ui','1626030dJKmUx','fill','LIVESHARE_TERMINATE','random','LiveShareStatus','xlink:href','mutations','function','amd','10dDdfIU','_commandService','_handleOffline','@univerjs-pro/collaboration-client','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','dispose$','getValue','stopFollowing','hasOwnProperty','subscribe','_configService','getMemberID','_handleTerminate','find','complete','0\x200\x2017\x2017','1889574OyzmQB','useObservable','dispose','toDisposable','parseProtocolChangeset','registerSharedOperation','LiveShareController','getInitialStates','propertyIsEnumerable','pipe','@univerjs/core','getUnitId','IConfigService','Inject','mask','trim','_mountLiveShare','You\x27re\x20following\x20the\x20presenter','16663455SiCArb','operators','rxjs','UniverProCollaboration','defIds','unitId','requireSession','currentColor','children','values','path','_collabSessionService','evenodd','_injector','univer-size-4','indexOf','pluginName','substring','extend','prototype','1em','type','_handleNewChangeSets','_startPresenting','sessionStatus$','InsertSheetMutation','SetScrollOperation','_unitID','registerDependencies','parse','NEW_CHANGESETS','toStringTag','has','UniverProLiveShare','tag','memberID','LIVESHARE_NEW_HOST','length','UniverSheets','url(#$1','next','div','Disposable','_handleNewHost','UniverLiveSharePlugin','Fragment','replace','offline','2745oVMOcd','@univerjs-pro/collaboration','get','IUIPartsService','shouldShareOperation','concat','createInstance','colorChannel1','end','LiveShareIcon','_init','HEADER_MENU','touchDependencies','svg','connectInjector','init','none','@univerjs/sheets','useDependency','defs'];_0x1fc4=function(){return _0x412fb3;};return _0x1fc4();}function _0x5708(_0x23e84e,_0x1278a5){var _0x1fc454=_0x1fc4();return _0x5708=function(_0x57081b,_0x38feba){_0x57081b=_0x57081b-0x88;var _0x2978ab=_0x1fc454[_0x57081b];return _0x2978ab;},_0x5708(_0x23e84e,_0x1278a5);}(function(_0x413311,_0x48a12a){var _0x330ec0=_0x5708,_0x37a81f=_0x413311();while(!![]){try{var _0x1dd8ca=-parseInt(_0x330ec0(0x154))/0x1*(-parseInt(_0x330ec0(0x174))/0x2)+-parseInt(_0x330ec0(0x8c))/0x3+parseInt(_0x330ec0(0x156))/0x4*(-parseInt(_0x330ec0(0xce))/0x5)+-parseInt(_0x330ec0(0xef))/0x6+parseInt(_0x330ec0(0x16b))/0x7+-parseInt(_0x330ec0(0xfb))/0x8+parseInt(_0x330ec0(0x9e))/0x9;if(_0x1dd8ca===_0x48a12a)break;else _0x37a81f['push'](_0x37a81f['shift']());}catch(_0x3b3a2a){_0x37a81f['push'](_0x37a81f['shift']());}}}(_0x1fc4,0xde6bd),function(_0x1d68de,_0x536e1d){var _0x43d11d=_0x5708;typeof exports=='object'&&typeof module<'u'?_0x536e1d(exports,require(_0x43d11d(0x177)),require(_0x43d11d(0x96)),require('@univerjs/sheets'),require(_0x43d11d(0x16a)),require(_0x43d11d(0x106)),require('react/jsx-runtime'),require(_0x43d11d(0xe8)),require(_0x43d11d(0xf4)),require('@univerjs-pro/collaboration'),require(_0x43d11d(0xa0)),require('rxjs/operators')):typeof define==_0x43d11d(0x172)&&define[_0x43d11d(0x173)]?define(['exports',_0x43d11d(0x177),_0x43d11d(0x96),_0x43d11d(0xdf),_0x43d11d(0x16a),'@univerjs/ui','react/jsx-runtime',_0x43d11d(0xe8),_0x43d11d(0xf4),_0x43d11d(0xcf),_0x43d11d(0xa0),_0x43d11d(0xf2)],_0x536e1d):(_0x1d68de=typeof globalThis<'u'?globalThis:_0x1d68de||self,_0x536e1d(_0x1d68de[_0x43d11d(0xbf)]={},_0x1d68de['UniverProCollaborationClient'],_0x1d68de[_0x43d11d(0xfa)],_0x1d68de[_0x43d11d(0xc4)],_0x1d68de[_0x43d11d(0x100)],_0x1d68de['UniverUi'],_0x1d68de[_0x43d11d(0x164)],_0x1d68de['UniverDesign'],_0x1d68de[_0x43d11d(0x164)],_0x1d68de[_0x43d11d(0xa1)],_0x1d68de['rxjs'],_0x1d68de[_0x43d11d(0xa0)][_0x43d11d(0x9f)]));}(this,function(_0x59ece2,_0x14b94a,_0x3dffbb,_0x1c186c,_0x18ef68,_0x34c6bf,_0x1f96db,_0x4630fa,_0x3bdead,_0x3e6c0c,_0x4c87a4,_0x6ce825){'use strict';var _0x19462b=_0x5708;var _0x2c7050=Object['defineProperty'],_0x3c9f4c=(_0x6ddb60,_0x3e5614,_0x53b3ce)=>_0x3e5614 in _0x6ddb60?_0x2c7050(_0x6ddb60,_0x3e5614,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53b3ce}):_0x6ddb60[_0x3e5614]=_0x53b3ce,_0x11cd93=(_0x3f1302,_0x5b55a3,_0xd850e)=>_0x3c9f4c(_0x3f1302,typeof _0x5b55a3!=_0x19462b(0x10d)?_0x5b55a3+'':_0x5b55a3,_0xd850e);const _0x1131d2=_0x19462b(0xe3),_0x5d8d1e={};class _0x35fee9 extends _0x3dffbb[_0x19462b(0xc8)]{constructor(){super(...arguments),_0x11cd93(this,'_sharedOperations',new Set()),_0x11cd93(this,'_reporters',new Set());}['registerSharedOperation'](_0x4b3542){var _0x3a8ee3=_0x19462b;return this[_0x3a8ee3(0x162)][_0x3a8ee3(0x118)](_0x4b3542),_0x3dffbb['toDisposable'](()=>this[_0x3a8ee3(0x162)][_0x3a8ee3(0x152)](_0x4b3542));}[_0x19462b(0x161)](_0x49a1f0){var _0x2c5d45=_0x19462b;return this[_0x2c5d45(0x159)]['add'](_0x49a1f0),_0x3dffbb[_0x2c5d45(0x8f)](()=>this[_0x2c5d45(0x159)][_0x2c5d45(0x152)](_0x49a1f0));}[_0x19462b(0xd2)](_0xb927ab){var _0x403952=_0x19462b;return this[_0x403952(0x162)][_0x403952(0xbe)](_0xb927ab);}[_0x19462b(0x93)](_0xb9089c){var _0x4021b0=_0x19462b;return Array[_0x4021b0(0x134)](this[_0x4021b0(0x159)])[_0x4021b0(0x157)](_0x513174=>_0x513174(_0xb9089c));}}var _0x97cb01=Object[_0x19462b(0x139)],_0x1c2ba5=(_0x44f637,_0x27f737,_0x505a3b,_0x55b774)=>{for(var _0x252464=_0x55b774>0x1?void 0x0:_0x55b774?_0x97cb01(_0x27f737,_0x505a3b):_0x27f737,_0x1d8ecd=_0x44f637['length']-0x1,_0x260d5f;_0x1d8ecd>=0x0;_0x1d8ecd--)(_0x260d5f=_0x44f637[_0x1d8ecd])&&(_0x252464=_0x260d5f(_0x252464)||_0x252464);return _0x252464;},_0x50e359=(_0x2d41b1,_0x1f40ce)=>(_0x242043,_0x86a12d)=>_0x1f40ce(_0x242043,_0x86a12d,_0x2d41b1);let _0x48cda7=class extends _0x3dffbb[_0x19462b(0xc8)]{constructor(_0x302eb6){var _0x465e09=_0x19462b;super(),this['_liveShareService']=_0x302eb6,this[_0x465e09(0xd8)]();}[_0x19462b(0xd8)](){var _0x43870d=_0x19462b;[_0x18ef68[_0x43870d(0x167)]['id'],_0x18ef68[_0x43870d(0xb8)]['id'],_0x1c186c[_0x43870d(0x11c)]['id']]['forEach'](_0x25312e=>{var _0x183618=_0x43870d;this[_0x183618(0x108)](this[_0x183618(0x11f)][_0x183618(0x91)](_0x25312e));});}};_0x48cda7=_0x1c2ba5([_0x50e359(0x0,_0x3dffbb[_0x19462b(0x99)](_0x35fee9))],_0x48cda7);var _0x7b905b=function(){var _0x256e0d=_0x19462b;return _0x7b905b=Object[_0x256e0d(0x119)]||function(_0x46ef69){var _0x30b31c=_0x256e0d;for(var _0x71c708,_0x3bfdae=0x1,_0xa6dd4b=arguments[_0x30b31c(0xc3)];_0x3bfdae<_0xa6dd4b;_0x3bfdae++){_0x71c708=arguments[_0x3bfdae];for(var _0x90ba18 in _0x71c708)Object[_0x30b31c(0xb1)][_0x30b31c(0x17c)][_0x30b31c(0xe6)](_0x71c708,_0x90ba18)&&(_0x46ef69[_0x90ba18]=_0x71c708[_0x90ba18]);}return _0x46ef69;},_0x7b905b[_0x256e0d(0x14b)](this,arguments);},_0x37c6ba=function(_0x5e2ac5,_0x2f0fea){var _0x29be49=_0x19462b,_0x267ce3={};for(var _0x314548 in _0x5e2ac5)Object[_0x29be49(0xb1)][_0x29be49(0x17c)][_0x29be49(0xe6)](_0x5e2ac5,_0x314548)&&_0x2f0fea[_0x29be49(0xad)](_0x314548)<0x0&&(_0x267ce3[_0x314548]=_0x5e2ac5[_0x314548]);if(_0x5e2ac5!=null&&typeof Object[_0x29be49(0xf0)]==_0x29be49(0x172)){for(var _0x13f7c6=0x0,_0x314548=Object['getOwnPropertySymbols'](_0x5e2ac5);_0x13f7c6<_0x314548[_0x29be49(0xc3)];_0x13f7c6++)_0x2f0fea[_0x29be49(0xad)](_0x314548[_0x13f7c6])<0x0&&Object[_0x29be49(0xb1)][_0x29be49(0x94)][_0x29be49(0xe6)](_0x5e2ac5,_0x314548[_0x13f7c6])&&(_0x267ce3[_0x314548[_0x13f7c6]]=_0x5e2ac5[_0x314548[_0x13f7c6]]);}return _0x267ce3;},_0x162be9=_0x3bdead[_0x19462b(0x128)](function(_0x5d08a4,_0x2354eb){var _0x1a4246=_0x19462b,_0x4fc9b5=_0x5d08a4[_0x1a4246(0x144)],_0x2dfebc=_0x5d08a4['id'],_0xb7cca4=_0x5d08a4['className'],_0x5b1963=_0x5d08a4[_0x1a4246(0xb0)],_0x473e3c=_0x37c6ba(_0x5d08a4,[_0x1a4246(0x144),'id',_0x1a4246(0x141),_0x1a4246(0xb0)]),_0x152f0c='univerjs-icon\x20univerjs-icon-'[_0x1a4246(0xd3)](_0x2dfebc,'\x20')[_0x1a4246(0xd3)](_0xb7cca4||'')[_0x1a4246(0x9b)](),_0x591f39=_0x3bdead[_0x1a4246(0x10b)]('_'['concat'](_0x1749ff()));return _0x172e91(_0x4fc9b5,''[_0x1a4246(0xd3)](_0x2dfebc),{'defIds':_0x4fc9b5['defIds'],'idSuffix':_0x591f39[_0x1a4246(0x120)]},_0x7b905b({'ref':_0x2354eb,'className':_0x152f0c},_0x473e3c),_0x5b1963);});function _0x172e91(_0x5f550d,_0x1b814c,_0x435d76,_0x396fb5,_0x15154c){var _0x389e41=_0x19462b;return _0x3bdead['createElement'](_0x5f550d[_0x389e41(0xc0)],_0x7b905b(_0x7b905b({'key':_0x1b814c},_0x3c0962(_0x5f550d,_0x435d76,_0x15154c)),_0x396fb5),(_0x4f1213(_0x5f550d,_0x435d76)[_0x389e41(0xa6)]||[])[_0x389e41(0x157)](function(_0x35bda7,_0x141835){var _0x122686=_0x389e41;return _0x172e91(_0x35bda7,''[_0x122686(0xd3)](_0x1b814c,'-')[_0x122686(0xd3)](_0x5f550d[_0x122686(0xc0)],'-')[_0x122686(0xd3)](_0x141835),_0x435d76,void 0x0,_0x15154c);}));}function _0x3c0962(_0x1465f4,_0x1264cf,_0x464487){var _0x113935=_0x19462b,_0x5822c2=_0x7b905b({},_0x1465f4['attrs']);_0x464487!=null&&_0x464487[_0x113935(0xd5)]&&_0x5822c2[_0x113935(0x16c)]===_0x113935(0xd5)&&(_0x5822c2['fill']=_0x464487[_0x113935(0xd5)]),_0x1465f4['tag']===_0x113935(0x9a)&&_0x5822c2['id']&&(_0x5822c2['id']=_0x5822c2['id']+_0x1264cf[_0x113935(0x148)]),Object[_0x113935(0x143)](_0x5822c2)['forEach'](function(_0x1f89f5){var _0x15026d=_0x113935,_0x1e1339=_0x1f89f5[0x0],_0x4da0fc=_0x1f89f5[0x1];_0x1e1339===_0x15026d(0x9a)&&typeof _0x4da0fc==_0x15026d(0x12a)&&(_0x5822c2[_0x1e1339]=_0x4da0fc[_0x15026d(0xcc)](/url\(#(.*)\)/,_0x15026d(0xc5)[_0x15026d(0xd3)](_0x1264cf['idSuffix'],')')));});var _0x40c218=_0x1264cf[_0x113935(0xa2)];return!_0x40c218||_0x40c218[_0x113935(0xc3)]===0x0||(_0x1465f4['tag']==='use'&&_0x5822c2['xlink:href']&&(_0x5822c2[_0x113935(0x170)]=_0x5822c2[_0x113935(0x170)]+_0x1264cf[_0x113935(0x148)]),Object['entries'](_0x5822c2)[_0x113935(0x10f)](function(_0x51faa4){var _0x5e66ab=_0x113935,_0x2843b1=_0x51faa4[0x0],_0x17fa5a=_0x51faa4[0x1];typeof _0x17fa5a==_0x5e66ab(0x12a)&&(_0x5822c2[_0x2843b1]=_0x17fa5a[_0x5e66ab(0xcc)](/url\(#(.*)\)/,_0x5e66ab(0xc5)[_0x5e66ab(0xd3)](_0x1264cf[_0x5e66ab(0x148)],')')));})),_0x5822c2;}function _0x4f1213(_0x230c1c,_0x5e401a){var _0xa2261c=_0x19462b,_0x455043,_0x1f50a3=_0x5e401a[_0xa2261c(0xa2)];return!_0x1f50a3||_0x1f50a3[_0xa2261c(0xc3)]===0x0?_0x230c1c:_0x230c1c[_0xa2261c(0xc0)]===_0xa2261c(0xe1)&&(!((_0x455043=_0x230c1c[_0xa2261c(0xa6)])===null||_0x455043===void 0x0)&&_0x455043[_0xa2261c(0xc3)])?_0x7b905b(_0x7b905b({},_0x230c1c),{'children':_0x230c1c[_0xa2261c(0xa6)][_0xa2261c(0x157)](function(_0x381f9c){var _0x246abf=_0xa2261c;return typeof _0x381f9c[_0x246abf(0x163)]['id']==_0x246abf(0x12a)&&_0x1f50a3&&_0x1f50a3['includes'](_0x381f9c[_0x246abf(0x163)]['id'])?_0x7b905b(_0x7b905b({},_0x381f9c),{'attrs':_0x7b905b(_0x7b905b({},_0x381f9c[_0x246abf(0x163)]),{'id':_0x381f9c[_0x246abf(0x163)]['id']+_0x5e401a[_0x246abf(0x148)]})}):_0x381f9c;})}):_0x230c1c;}function _0x1749ff(){var _0x4e35c3=_0x19462b;return Math[_0x4e35c3(0x16e)]()[_0x4e35c3(0x14a)](0x24)[_0x4e35c3(0xaf)](0x2,0x8);}_0x162be9[_0x19462b(0x146)]=_0x19462b(0x13f);var _0x3846bd={'tag':_0x19462b(0xdb),'attrs':{'xmlns':_0x19462b(0x165),'fill':_0x19462b(0xde),'viewBox':_0x19462b(0x8b),'width':_0x19462b(0xb2),'height':'1em'},'children':[{'tag':_0x19462b(0xa8),'attrs':{'fill':_0x19462b(0xa5),'d':_0x19462b(0x178)}},{'tag':_0x19462b(0xa8),'attrs':{'fill':_0x19462b(0xa5),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x19462b(0xaa),'clipRule':_0x19462b(0xaa)}}]},_0x141e31=_0x3bdead['forwardRef'](function(_0x2f6e3d,_0x54985b){var _0x51f8e6=_0x19462b;return _0x3bdead[_0x51f8e6(0x158)](_0x162be9,Object[_0x51f8e6(0x119)]({},_0x2f6e3d,{'id':_0x51f8e6(0x166),'ref':_0x54985b,'icon':_0x3846bd}));});_0x141e31[_0x19462b(0x146)]=_0x19462b(0xd7);var _0x30e86b=Object[_0x19462b(0x139)],_0xdbff21=(_0xe6ad76,_0xf5c0cd,_0x27d888,_0x59b4e6)=>{var _0x51b7e8=_0x19462b;for(var _0x5137f9=_0x59b4e6>0x1?void 0x0:_0x59b4e6?_0x30e86b(_0xf5c0cd,_0x27d888):_0xf5c0cd,_0x1d57b2=_0xe6ad76[_0x51b7e8(0xc3)]-0x1,_0x2f3c0b;_0x1d57b2>=0x0;_0x1d57b2--)(_0x2f3c0b=_0xe6ad76[_0x1d57b2])&&(_0x5137f9=_0x2f3c0b(_0x5137f9)||_0x5137f9);return _0x5137f9;},_0x8dd223=(_0x11593b,_0x1a2ab9)=>(_0x3f5a89,_0x279b02)=>_0x1a2ab9(_0x3f5a89,_0x279b02,_0x11593b);_0x59ece2[_0x19462b(0x92)]=class extends _0x3dffbb[_0x19462b(0x13d)]{constructor(_0x3f8626,_0x1414be,_0x1b4264){var _0x21dc78=_0x19462b;super(),_0x11cd93(this,'_entities',new Map()),(this[_0x21dc78(0xee)]=_0x3f8626,this[_0x21dc78(0xab)]=_0x1414be,this[_0x21dc78(0xa9)]=_0x1b4264,this[_0x21dc78(0xd8)]());}async['getLiveShareCoordinator'](_0x210711){var _0x546364=_0x19462b;return this[_0x546364(0x110)][_0x546364(0xbe)](_0x210711)||await this['_startLiveShareCoordinator'](_0x210711),this[_0x546364(0x110)][_0x546364(0xd0)](_0x210711);}['_init'](){var _0x4b9714=_0x19462b;this[_0x4b9714(0xee)][_0x4b9714(0xec)](_0x3dffbb[_0x4b9714(0x12f)][_0x4b9714(0x113)])[_0x4b9714(0x95)](_0x6ce825['takeUntil'](this[_0x4b9714(0x179)]))[_0x4b9714(0x17d)](async _0x3fac23=>{var _0x13bb0b=_0x4b9714;const _0x3e5c19=_0x3fac23[_0x13bb0b(0x97)]();this[_0x13bb0b(0x110)][_0x13bb0b(0xbe)](_0x3e5c19)||this['_startLiveShareCoordinator'](_0x3e5c19);}),this[_0x4b9714(0xee)][_0x4b9714(0x13b)](_0x3dffbb[_0x4b9714(0x12f)][_0x4b9714(0x113)])['pipe'](_0x6ce825[_0x4b9714(0x104)](this[_0x4b9714(0x179)]))[_0x4b9714(0x17d)](_0x806e80=>{var _0x54d30f=_0x4b9714;const _0x39fe84=_0x806e80[_0x54d30f(0x97)](),_0x20899a=this[_0x54d30f(0x110)][_0x54d30f(0xd0)](_0x39fe84);_0x20899a==null||_0x20899a[_0x54d30f(0x8e)]();});}async[_0x19462b(0x10c)](_0x2a01b8){var _0x5006a1=_0x19462b;const _0x15fa6b=await this[_0x5006a1(0xa9)][_0x5006a1(0xa4)](_0x2a01b8),_0x1f1ce6=this[_0x5006a1(0xab)][_0x5006a1(0xd4)](_0x59ece2['LiveShareCoordinator'],_0x2a01b8,_0x15fa6b);return _0x1f1ce6[_0x5006a1(0xdd)](),this['_entities'][_0x5006a1(0x11b)](_0x2a01b8,_0x1f1ce6),_0x1f1ce6;}},_0x59ece2[_0x19462b(0x92)]=_0xdbff21([_0x8dd223(0x0,_0x3dffbb[_0x19462b(0x14f)]),_0x8dd223(0x1,_0x3dffbb[_0x19462b(0x99)](_0x3dffbb[_0x19462b(0xe2)])),_0x8dd223(0x2,_0x3dffbb[_0x19462b(0x99)](_0x14b94a[_0x19462b(0x150)]))],_0x59ece2[_0x19462b(0x92)]);var _0x3b6379=(_0x398001=>(_0x398001[_0x19462b(0x116)]=_0x19462b(0xcd),_0x398001[_0x19462b(0x140)]=_0x19462b(0x126),_0x398001[_0x19462b(0xf9)]=_0x19462b(0xea),_0x398001[_0x19462b(0x112)]=_0x19462b(0x12c),_0x398001[_0x19462b(0x11e)]='presenting',_0x398001))(_0x3b6379||{});const _0x258d89=_0x19462b(0x151),_0x27efb6=0xc8;_0x59ece2['LiveShareCoordinator']=class extends _0x3dffbb[_0x19462b(0x13d)]{constructor(_0x40d702,_0x35ed02,_0x186d0f,_0x6e5312,_0x4d283a){var _0x513358=_0x19462b;super(),_0x11cd93(this,'_status$',new _0x4c87a4[(_0x513358(0x124))](_0x513358(0x126))),_0x11cd93(this,_0x513358(0x15d),this[_0x513358(0x15b)]['asObservable']()),_0x11cd93(this,'_init',!0x1),_0x11cd93(this,'_commandDisposable',null),_0x11cd93(this,_0x513358(0xf5),null),(this['_unitID']=_0x40d702,this[_0x513358(0x15c)]=_0x35ed02,this[_0x513358(0x17e)]=_0x186d0f,this['_liveShareService']=_0x6e5312,this['_commandService']=_0x4d283a);}get['_status'](){var _0x1f6e70=_0x19462b;return this[_0x1f6e70(0x15b)][_0x1f6e70(0x17a)]();}[_0x19462b(0x8e)](){var _0x4f4011=_0x19462b,_0x17aee4;(_0x17aee4=this[_0x4f4011(0x133)])==null||_0x17aee4['dispose'](),this[_0x4f4011(0x15b)][_0x4f4011(0xc6)](_0x4f4011(0x126)),this[_0x4f4011(0x15b)][_0x4f4011(0x8a)]();}['init'](){var _0x239094=_0x19462b;this[_0x239094(0xd8)]||(this[_0x239094(0xd8)]=!0x0,this[_0x239094(0x15c)][_0x239094(0xb6)][_0x239094(0x95)](_0x6ce825[_0x239094(0x104)](this[_0x239094(0x179)]))[_0x239094(0x17d)](_0x1cbe53=>{var _0x3c1072=_0x239094;switch(_0x1cbe53){case _0x14b94a[_0x3c1072(0xe7)][_0x3c1072(0x116)]:this[_0x3c1072(0x176)]();break;case _0x14b94a[_0x3c1072(0xe7)]['ONLINE']:this[_0x3c1072(0x142)]();break;}}),this[_0x239094(0x15c)]['event$'][_0x239094(0x95)](_0x6ce825['takeUntil'](this[_0x239094(0x179)]))['subscribe'](_0x3d4c54=>{var _0x31e623=_0x239094;const {eventID:_0x397693}=_0x3d4c54;switch(_0x397693){case _0x3e6c0c[_0x31e623(0x114)][_0x31e623(0xc2)]:this['_handleNewHost'](_0x3d4c54);break;case _0x3e6c0c['CollaborationEvent'][_0x31e623(0xfd)]:this['_handleOperation'](_0x3d4c54);break;case _0x3e6c0c[_0x31e623(0x114)][_0x31e623(0x16d)]:this[_0x31e623(0x88)]();break;case _0x3e6c0c[_0x31e623(0x114)][_0x31e623(0xbc)]:this['_handleNewChangeSets'](_0x3d4c54);break;}}));}['tryStartPresenting'](){var _0x3e27f5=_0x19462b;this['_collabSession']['send']({'eventID':_0x3e6c0c[_0x3e27f5(0x114)][_0x3e27f5(0x13a)],'data':{'unitID':this[_0x3e27f5(0xb9)],'userID':this[_0x3e27f5(0x15c)][_0x3e27f5(0x17f)]()}},this[_0x3e27f5(0xb9)]);}[_0x19462b(0xe9)](){var _0x3c9035=_0x19462b;this[_0x3c9035(0x14d)]===_0x3c9035(0xe5)&&(this[_0x3c9035(0x15b)]['next']('idle'),this[_0x3c9035(0x15c)][_0x3c9035(0x11a)]({'eventID':_0x3e6c0c[_0x3c9035(0x114)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x3c9035(0xb9)]));}[_0x19462b(0x130)](){var _0x254d63=_0x19462b;this[_0x254d63(0x14d)]===_0x254d63(0x12c)&&(this['_status$']['next'](_0x254d63(0xea)),this[_0x254d63(0x111)]());}[_0x19462b(0x17b)](){var _0x564eb5=_0x19462b;this[_0x564eb5(0x14d)]==='following'&&this[_0x564eb5(0x125)]();}[_0x19462b(0xc9)](_0x2af8d5){var _0x3f4a5d=_0x19462b;const {presenter:_0x35c0df}=_0x2af8d5[_0x3f4a5d(0xfc)],_0xe7aca8=this[_0x3f4a5d(0x15c)][_0x3f4a5d(0x17f)]();this[_0x3f4a5d(0xf5)]=_0x35c0df,_0x35c0df===_0xe7aca8?(this[_0x3f4a5d(0x125)](),this[_0x3f4a5d(0xb5)]()):this['_status']!==_0x3f4a5d(0x12c)&&(this[_0x3f4a5d(0xf3)](),this[_0x3f4a5d(0x111)]());}['_fetchOperations'](){var _0x149916=_0x19462b;const _0x1901b8={'eventID':_0x3e6c0c[_0x149916(0x114)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x149916(0x15c)]['send'](_0x1901b8,this[_0x149916(0xb9)]);}[_0x19462b(0x88)](){var _0x48aa70=_0x19462b;this[_0x48aa70(0xf5)]=null,this[_0x48aa70(0x14d)]!==_0x48aa70(0xe5)&&this[_0x48aa70(0x10a)]();}[_0x19462b(0xb4)](_0x246481){var _0x51044f=_0x19462b;if(this['_status']===_0x51044f(0xea)&&this[_0x51044f(0xf5)]===_0x246481[_0x51044f(0xfc)][_0x51044f(0xc1)]){const _0x122832=_0x3e6c0c[_0x51044f(0x90)](_0x246481[_0x51044f(0xfc)])[_0x51044f(0x171)][_0x51044f(0x10e)]()[_0x51044f(0x89)](_0x4fd53e=>_0x4fd53e['id']===_0x1c186c[_0x51044f(0xb7)]['id']);if(_0x122832){const _0x4196b5=_0x122832[_0x51044f(0x155)][_0x51044f(0xa3)],_0x470f2d=_0x122832[_0x51044f(0x155)]['sheet']['id'];setTimeout(()=>{var _0x5d55e2=_0x51044f;this[_0x5d55e2(0x175)][_0x5d55e2(0x137)](_0x1c186c[_0x5d55e2(0x11c)]['id'],{'unitId':_0x4196b5,'subUnitId':_0x470f2d},{'fromCollab':!0x0});});}}}[_0x19462b(0xb5)](){var _0x32f023=_0x19462b;this[_0x32f023(0x15b)]['next'](_0x32f023(0xe5));const _0x1ecf2b=new Map(),_0x2c2005=this[_0x32f023(0x133)]=new _0x3dffbb[(_0x32f023(0xe4))]();_0x2c2005[_0x32f023(0x118)](_0x3dffbb[_0x32f023(0x8f)](()=>{var _0x2f38ec=_0x32f023;_0x1ecf2b[_0x2f38ec(0x10f)](_0x5a22f7=>_0x5a22f7[_0x2f38ec(0x8a)]()),_0x1ecf2b[_0x2f38ec(0x12e)]();})),_0x2c2005[_0x32f023(0x118)](this[_0x32f023(0x175)]['onCommandExecuted'](_0x92bbd=>{var _0x177eba=_0x32f023,_0x10d6ad;if(_0x92bbd[_0x177eba(0xb3)]!==_0x3dffbb[_0x177eba(0x136)][_0x177eba(0x109)]||!this[_0x177eba(0x11f)][_0x177eba(0xd2)](_0x92bbd['id']))return;const {id:_0x21176f}=_0x92bbd;let _0x349b9b;_0x1ecf2b['has'](_0x21176f)?_0x349b9b=_0x1ecf2b[_0x177eba(0xd0)](_0x21176f):(_0x349b9b=new _0x4c87a4[(_0x177eba(0x121))](),_0x1ecf2b[_0x177eba(0x11b)](_0x21176f,_0x349b9b),_0x349b9b[_0x177eba(0x95)](_0x6ce825[_0x177eba(0x15a)]((_0x10d6ad=this[_0x177eba(0x17e)][_0x177eba(0x13c)](_0x258d89))!=null?_0x10d6ad:_0x27efb6,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x177eba(0x17d)](_0x58acdf=>{var _0x2bbd6c=_0x177eba;this[_0x2bbd6c(0x15c)][_0x2bbd6c(0x11a)]({'eventID':_0x3e6c0c[_0x2bbd6c(0x114)][_0x2bbd6c(0xfd)],'data':{'unitID':this[_0x2bbd6c(0xb9)],'operations':{[_0x58acdf['id']]:{'id':_0x58acdf['id'],'params':JSON[_0x2bbd6c(0x107)](_0x58acdf[_0x2bbd6c(0x155)])}}}},this[_0x2bbd6c(0xb9)]);})),_0x349b9b[_0x177eba(0xc6)](_0x92bbd);})),this['_liveShareService']['getInitialStates'](this[_0x32f023(0xb9)])[_0x32f023(0x10f)](_0x44e1a7=>this[_0x32f023(0x15c)][_0x32f023(0x11a)]({'eventID':_0x3e6c0c[_0x32f023(0x114)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x44e1a7['id']]:{'id':_0x44e1a7['id'],'params':JSON[_0x32f023(0x107)](_0x44e1a7[_0x32f023(0x155)])}}}},this[_0x32f023(0xb9)]));}[_0x19462b(0xf3)](){var _0x51529e=_0x19462b,_0x5e7bbe;this[_0x51529e(0x15b)]['next'](_0x51529e(0x126)),(_0x5e7bbe=this[_0x51529e(0x133)])==null||_0x5e7bbe['dispose'](),this['_commandDisposable']=null;}[_0x19462b(0x111)](){var _0x515afa=_0x19462b,_0x2bb656;(_0x2bb656=this[_0x515afa(0x133)])==null||_0x2bb656[_0x515afa(0x8e)](),this[_0x515afa(0x15b)][_0x515afa(0xc6)](_0x515afa(0xea));}['_beIdle'](){var _0x291415=_0x19462b,_0x15ed8d;this[_0x291415(0x15b)][_0x291415(0xc6)](_0x291415(0x126)),(_0x15ed8d=this['_commandDisposable'])==null||_0x15ed8d[_0x291415(0x8e)](),this[_0x291415(0x133)]=null;}[_0x19462b(0x125)](){var _0x178584=_0x19462b,_0x3facf3;this['_status$'][_0x178584(0xc6)](_0x178584(0x12c)),(_0x3facf3=this[_0x178584(0x133)])==null||_0x3facf3[_0x178584(0x8e)]();}[_0x19462b(0x149)](_0x4dfede){var _0x526848=_0x19462b;if([_0x526848(0xe5),_0x526848(0x12c),_0x526848(0xcd)][_0x526848(0x15f)](this['_status'])||!_0x4dfede[_0x526848(0xfc)][_0x526848(0x14c)]||_0x4dfede[_0x526848(0xfc)][_0x526848(0x14c)]===this[_0x526848(0x15c)][_0x526848(0x17f)]())return;this[_0x526848(0x14d)]===_0x526848(0x126)&&this[_0x526848(0x111)]();const _0x370ed1=_0x4dfede[_0x526848(0xfc)]['operations'];Object[_0x526848(0xa7)](_0x370ed1)['forEach'](_0x3f7492=>{var _0x616749=_0x526848;this[_0x616749(0x175)][_0x616749(0x137)](_0x3f7492['id'],_0x3f7492['params']?JSON[_0x616749(0xbb)](_0x3f7492[_0x616749(0x155)]):null,{'fromCollab':!0x0});});}[_0x19462b(0x176)](){var _0x3097d4=_0x19462b,_0x3d1b3a;this['_status$'][_0x3097d4(0xc6)](_0x3097d4(0xcd)),(_0x3d1b3a=this[_0x3097d4(0x133)])==null||_0x3d1b3a['dispose']();}[_0x19462b(0x142)](){var _0x54af67=_0x19462b;this[_0x54af67(0x15b)][_0x54af67(0xc6)](_0x54af67(0x126)),this['_fetchOperations']();}},_0x59ece2[_0x19462b(0x13e)]=_0xdbff21([_0x8dd223(0x2,_0x3dffbb[_0x19462b(0x98)]),_0x8dd223(0x3,_0x3dffbb['Inject'](_0x35fee9)),_0x8dd223(0x4,_0x3dffbb[_0x19462b(0xf7)])],_0x59ece2['LiveShareCoordinator']);function _0x4495da(){var _0xd9e670=_0x19462b;const _0x4b75d0=_0x34c6bf[_0xd9e670(0xe0)](_0x59ece2[_0xd9e670(0x92)]),_0x1dadc2=_0x34c6bf['useDependency'](_0x3dffbb['IUniverInstanceService']),_0x2a1d07=_0x34c6bf[_0xd9e670(0x8d)](()=>_0x1dadc2['getCurrentTypeOfUnit$'](_0x3dffbb[_0xd9e670(0x12f)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x5afb48,_0x291121]=_0x3bdead[_0xd9e670(0x168)](null),[_0x1936a6,_0x2109e4]=_0x3bdead[_0xd9e670(0x168)](_0x3b6379['IDLE']),_0x3018e8=_0x3bdead[_0xd9e670(0x10b)](null);return _0x3bdead['useEffect'](()=>(_0x2a1d07&&_0x4b75d0[_0xd9e670(0x102)](_0x2a1d07[_0xd9e670(0x97)]())[_0xd9e670(0x15e)](_0x4bff19=>{var _0x4f9cfc=_0xd9e670;_0x291121(_0x4bff19),_0x3018e8['current']=_0x4bff19[_0x4f9cfc(0x15d)][_0x4f9cfc(0x17d)](_0x302a35=>{_0x2109e4(_0x302a35);});}),()=>{var _0x48175f=_0xd9e670,_0x202756;(_0x202756=_0x3018e8[_0x48175f(0x120)])==null||_0x202756[_0x48175f(0x122)](),_0x3018e8[_0x48175f(0x120)]=null;}),[_0x2a1d07,_0x4b75d0]),_0x5afb48?_0x1f96db[_0xd9e670(0x160)](_0x4630fa[_0xd9e670(0xeb)],{'align':_0xd9e670(0xd6),'disabled':_0x1936a6===_0x3b6379[_0xd9e670(0x116)],'className':_0xd9e670(0x11d),'overlay':_0x1f96db[_0xd9e670(0x160)](_0x314bde,{'status':_0x1936a6,'coordinator':_0x5afb48}),'children':_0x1f96db[_0xd9e670(0x160)](_0xd9e670(0xf1),{'className':_0x4630fa[_0xd9e670(0x14e)](_0xd9e670(0x123),{'univer-cursor-not-allowed':_0x1936a6===_0x3b6379[_0xd9e670(0x116)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1936a6!==_0x3b6379[_0xd9e670(0x116)]}),'type':_0xd9e670(0xf1),'children':_0x1f96db[_0xd9e670(0x160)](_0x141e31,{'className':_0xd9e670(0xac)})})}):null;}function _0x314bde(_0x4527cf){var _0x13b723=_0x19462b;const {status:_0x5504b6,coordinator:_0x24a006}=_0x4527cf;switch(_0x5504b6){case _0x3b6379['IDLE']:return _0x1f96db['jsx'](_0x3e3bf4,{'coordinator':_0x24a006});case _0x3b6379[_0x13b723(0xf9)]:return _0x1f96db[_0x13b723(0x160)](_0x588b5d,{'coordinator':_0x24a006});case _0x3b6379[_0x13b723(0x112)]:return _0x1f96db[_0x13b723(0x160)](_0x571292,{'coordinator':_0x24a006});case _0x3b6379[_0x13b723(0x116)]:return _0x1f96db['jsx'](_0x18678a,{});case _0x3b6379['PRESENTING']:return _0x1f96db[_0x13b723(0x160)](_0x5342d8,{'coordinator':_0x24a006});default:return null;}}function _0x3e3bf4(_0x5a4d2f){var _0x516614=_0x19462b;const {coordinator:_0x59486c}=_0x5a4d2f;return _0x1f96db[_0x516614(0x12d)](_0x1f96db[_0x516614(0xcb)],{'children':[_0x1f96db['jsx']('div',{'className':_0x516614(0x101),'children':'Present\x20this\x20document'}),_0x1f96db['jsx'](_0x4630fa[_0x516614(0x12b)],{'onClick':()=>_0x59486c['tryStartPresenting'](),'children':_0x516614(0x129)})]});}function _0x588b5d(_0x495f2a){var _0x558b0f=_0x19462b;const {coordinator:_0x4618c6}=_0x495f2a;return _0x1f96db[_0x558b0f(0x12d)](_0x1f96db[_0x558b0f(0xcb)],{'children':[_0x1f96db[_0x558b0f(0x160)](_0x558b0f(0xc7),{'className':_0x558b0f(0x101),'children':_0x558b0f(0x9d)}),_0x1f96db[_0x558b0f(0x160)](_0x4630fa[_0x558b0f(0x12b)],{'onClick':()=>_0x4618c6[_0x558b0f(0x17b)](),'children':'Stop\x20following'})]});}function _0x571292(_0x191448){var _0x2b0148=_0x19462b;const {coordinator:_0x30dbef}=_0x191448;return _0x1f96db[_0x2b0148(0x12d)](_0x1f96db['Fragment'],{'children':[_0x1f96db[_0x2b0148(0x160)](_0x2b0148(0xc7),{'className':_0x2b0148(0x101),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x1f96db['jsx'](_0x4630fa[_0x2b0148(0x12b)],{'variant':_0x2b0148(0x138),'onClick':()=>_0x30dbef[_0x2b0148(0x130)](),'children':_0x2b0148(0x127)})]});}function _0x5342d8(_0x53b76b){var _0x505e09=_0x19462b;const {coordinator:_0x5dd780}=_0x53b76b;return _0x1f96db['jsxs'](_0x1f96db[_0x505e09(0xcb)],{'children':[_0x1f96db[_0x505e09(0x160)](_0x505e09(0xc7),{'className':_0x505e09(0x101),'children':_0x505e09(0x103)}),_0x1f96db['jsx'](_0x4630fa['Button'],{'variant':_0x505e09(0x145),'onClick':()=>_0x5dd780[_0x505e09(0xe9)](),'children':'Stop\x20presenting'})]});}function _0x18678a(){var _0x38f42b=_0x19462b;return _0x1f96db[_0x38f42b(0x160)](_0x1f96db[_0x38f42b(0xcb)],{'children':_0x38f42b(0x117)});}var _0x142df1=Object['getOwnPropertyDescriptor'],_0x33f33b=(_0x407778,_0x24ad5b,_0x25be71,_0x10cec5)=>{var _0x2c0f4a=_0x19462b;for(var _0x342088=_0x10cec5>0x1?void 0x0:_0x10cec5?_0x142df1(_0x24ad5b,_0x25be71):_0x24ad5b,_0x44ac19=_0x407778[_0x2c0f4a(0xc3)]-0x1,_0x4e0b66;_0x44ac19>=0x0;_0x44ac19--)(_0x4e0b66=_0x407778[_0x44ac19])&&(_0x342088=_0x4e0b66(_0x342088)||_0x342088);return _0x342088;},_0x31e51c=(_0x3a3020,_0x3f61c9)=>(_0x4e4ecb,_0x3bd5f0)=>_0x3f61c9(_0x4e4ecb,_0x3bd5f0,_0x3a3020);_0x59ece2['DesktopLiveShareController']=class extends _0x3dffbb['Disposable']{constructor(_0x247c8b,_0x5f1eca){var _0x3f7f06=_0x19462b;super(),this[_0x3f7f06(0xab)]=_0x247c8b,this[_0x3f7f06(0xfe)]=_0x5f1eca,this['_mountLiveShare']();}[_0x19462b(0x9c)](){var _0x5b0df8=_0x19462b;this['disposeWithMe'](this[_0x5b0df8(0xfe)][_0x5b0df8(0x131)](_0x34c6bf['BuiltInUIPart'][_0x5b0df8(0xd9)],()=>_0x34c6bf[_0x5b0df8(0xdc)](_0x4495da,this[_0x5b0df8(0xab)])));}},_0x59ece2[_0x19462b(0x115)]=_0x33f33b([_0x31e51c(0x0,_0x3dffbb[_0x19462b(0x99)](_0x3dffbb[_0x19462b(0xe2)])),_0x31e51c(0x1,_0x34c6bf[_0x19462b(0xd1)])],_0x59ece2[_0x19462b(0x115)]);var _0x1c75ff=Object[_0x19462b(0xff)],_0x4611d9=Object[_0x19462b(0x139)],_0x4e5817=(_0x6032e0,_0x5a38be,_0x322ccb)=>_0x5a38be in _0x6032e0?_0x1c75ff(_0x6032e0,_0x5a38be,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x322ccb}):_0x6032e0[_0x5a38be]=_0x322ccb,_0x310581=(_0x41d4cd,_0x4556b7,_0x5ca847,_0x3b4932)=>{for(var _0x41ff67=_0x3b4932>0x1?void 0x0:_0x3b4932?_0x4611d9(_0x4556b7,_0x5ca847):_0x4556b7,_0x51038b=_0x41d4cd['length']-0x1,_0x55b829;_0x51038b>=0x0;_0x51038b--)(_0x55b829=_0x41d4cd[_0x51038b])&&(_0x41ff67=_0x55b829(_0x41ff67)||_0x41ff67);return _0x41ff67;},_0xc84987=(_0xf564cf,_0x58a440)=>(_0x506112,_0x5a9c69)=>_0x58a440(_0x506112,_0x5a9c69,_0xf564cf),_0x1c2006=(_0xf0311c,_0x1398bf,_0x356832)=>_0x4e5817(_0xf0311c,typeof _0x1398bf!=_0x19462b(0x10d)?_0x1398bf+'':_0x1398bf,_0x356832);const _0x2b36af=_0x19462b(0xf6);_0x59ece2[_0x19462b(0xca)]=class extends _0x3dffbb['Plugin']{constructor(_0x4bebb5=_0x5d8d1e,_0x310b82,_0x170e84){var _0x3de0bf=_0x19462b;super(),this['_config']=_0x4bebb5,this[_0x3de0bf(0xab)]=_0x310b82,this[_0x3de0bf(0x17e)]=_0x170e84;const {..._0x1ec251}=_0x3dffbb[_0x3de0bf(0x135)]({},_0x5d8d1e,this['_config']);this[_0x3de0bf(0x17e)][_0x3de0bf(0x147)](_0x1131d2,_0x1ec251);}[_0x19462b(0xf8)](){var _0x3d1dcb=_0x19462b;_0x3dffbb[_0x3d1dcb(0xba)](this[_0x3d1dcb(0xab)],_0x3dffbb[_0x3d1dcb(0x169)]([[_0x35fee9],[_0x59ece2[_0x3d1dcb(0x92)]],[_0x48cda7],[_0x59ece2['DesktopLiveShareController']]],this['_config'][_0x3d1dcb(0xed)])),_0x3dffbb['touchDependencies'](this[_0x3d1dcb(0xab)],[[_0x48cda7]]);}['onRendered'](){var _0x2ef152=_0x19462b;_0x3dffbb[_0x2ef152(0xda)](this['_injector'],[[_0x59ece2[_0x2ef152(0x115)]]]);}},_0x1c2006(_0x59ece2[_0x19462b(0xca)],_0x19462b(0xb3),_0x3dffbb[_0x19462b(0x12f)][_0x19462b(0x132)]),_0x1c2006(_0x59ece2[_0x19462b(0xca)],_0x19462b(0xae),_0x2b36af),_0x59ece2[_0x19462b(0xca)]=_0x310581([_0x3dffbb['DependentOn'](_0x14b94a[_0x19462b(0x153)]),_0xc84987(0x1,_0x3dffbb[_0x19462b(0x99)](_0x3dffbb['Injector'])),_0xc84987(0x2,_0x3dffbb[_0x19462b(0x98)])],_0x59ece2[_0x19462b(0xca)]),_0x59ece2['LiveShare']=_0x4495da,_0x59ece2['LiveShareService']=_0x35fee9,_0x59ece2[_0x19462b(0x16f)]=_0x3b6379,Object[_0x19462b(0xff)](_0x59ece2,Symbol[_0x19462b(0xbd)],{'value':_0x19462b(0x105)});}));
|
|
1
|
+
function _0x1156(_0x47a9d7,_0x47a509){var _0x3f69c8=_0x3f69();return _0x1156=function(_0x1156c0,_0x2e217f){_0x1156c0=_0x1156c0-0x1e1;var _0x40b0f5=_0x3f69c8[_0x1156c0];return _0x40b0f5;},_0x1156(_0x47a9d7,_0x47a509);}function _0x3f69(){var _0x17c4d9=['requireSession','ONLINE','UniverCollaborationClientPlugin','Start\x20following','useRef','Inject','You\x27re\x20presenting\x20the\x20document','asObservable','_startLiveShareCoordinator','stopPresenting','univer-size-4','NEW_CHANGESETS','createInstance','offline','_commandService','UniverCore','NOT_FOLLOWING','parseProtocolChangeset','useEffect','_collabSessionService','unitId','Start','getInitialStates','url(#$1','init','rxjs/operators','SessionStatus','defs','mutations','useDependency','DesktopLiveShareController','Plugin','LIVESHARE_NEW_HOST','live-share-icon','call','HEADER_MENU','extend','params','2217582KtOoRM','_stopPresenting','univerjs-icon\x20univerjs-icon-','clsx','current','356senjOD','dispose','rxjs','forEach','7543249oOAwnQ','UniverProLiveShare','tryStartPresenting','then','LiveShareCoordinator','React','1152QcXzXN','mergeOverrideWithDependencies','getOwnPropertySymbols','FOLLOWING','stopFollowing','_handleNewHost','jsxs','LiveShareIcon','_injector','_mountLiveShare','amd','IUniverInstanceService','_fetchOperations','Dropdown','@univerjs/sheets-ui','xlink:href','LIVESHARE_OPERATION','6231985dVJmaN','LiveShare','pluginName','add','sheet','_uiPartsService','_startPresenting','length','useObservable','getLiveShareCoordinator','substring','1765520rRfyKB','delete','status$','getUnitId','toString','@univerjs/design','univer-w-full\x20univer-mb-3\x20univer-text-sm','_liveShareService','UniverInstanceType','318HpNcID','toStringTag','indexOf','UniverProCollaborationClient','propertyIsEnumerable','div','children','LiveShareService','getTypeOfUnitDisposed$','_handleOnline','prototype','complete','tag','function','startFollowing','getMemberID','_commandDisposable','getOwnPropertyDescriptor','getConfig','type','end','Injector','executeCommand','reverse','_status$','registerSharedOperation','symbol','_stopFollowing','map','string','presenter','_configService','_univerInstanceService','idSuffix','PRESENTING','memberID','react','next','@univerjs-pro/collaboration-client','UNIVER_LIVE_SHARE_PLUGIN','_config','InsertSheetMutation','CommandType','pipe','none','exports','toDisposable','SetWorksheetActiveOperation','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','forwardRef','useState','data','@univerjs/core','operations','random','use','OPERATION','_reporters','_startFollowing','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','setConfig','getCurrentTypeOfUnit$','icon','defIds','takeUntil','onCommandExecuted','currentColor','presenting','Subject','LIVESHARE_TERMINATE','LIVESHARE_FETCH_OPERATIONS','shouldShareOperation','UniverLiveSharePlugin','hasOwnProperty','_presenter','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','Module','not-following','SAME_OPERATION_SHARE_INTERVAL','colorChannel1','touchDependencies','replace','path','56268Otvuzg','Stop\x20following','Button','idle','default','CollaborationSessionService','concat','react/jsx-runtime','LiveShareController','dispose$','BehaviorSubject','jsx','set','UNIVER_SHEET','UniverProCollaboration','object','IDLE','assign','svg','UNIVER_UNKNOWN','defineProperty','entries','has','OFFLINE','getTypeOfUnitAdded$','registerInitialStateReporter','registerDependencies','operators','UniverSheetsUi','828333nuwJrs','stringify','unsubscribe','RxDisposable','merge','You\x27are\x20offline.','CollaborationEvent','_sharedOperations','disposeWithMe','connectInjector','Fragment','sessionStatus$','fill','Stop\x20presenting','send','clear','0\x200\x2017\x2017','Disposable','displayName','_status','subscribe','_init','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','1em','@univerjs/sheets','UniverDesign','get','ICommandService','registerComponent','live-share.config','LIVESHARE_REQUEST_HOST','BuiltInUIPart','onStarting','UniverSheets','@univerjs-pro/collaboration','className','following','@univerjs/ui','_entities','attrs','DependentOn','_handleTerminate','_collabSession','from','getValue','createElement','_beIdle','_unitID','override','_handleOffline','_handleOperation'];_0x3f69=function(){return _0x17c4d9;};return _0x3f69();}(function(_0x485388,_0x31a5b5){var _0x3f14e0=_0x1156,_0x4e2704=_0x485388();while(!![]){try{var _0x4e963d=parseInt(_0x3f14e0(0x2bc))/0x1+parseInt(_0x3f14e0(0x243))/0x2+-parseInt(_0x3f14e0(0x24c))/0x3*(parseInt(_0x3f14e0(0x21d))/0x4)+-parseInt(_0x3f14e0(0x238))/0x5+parseInt(_0x3f14e0(0x218))/0x6+-parseInt(_0x3f14e0(0x221))/0x7+-parseInt(_0x3f14e0(0x227))/0x8*(-parseInt(_0x3f14e0(0x29f))/0x9);if(_0x4e963d===_0x31a5b5)break;else _0x4e2704['push'](_0x4e2704['shift']());}catch(_0x1b72d5){_0x4e2704['push'](_0x4e2704['shift']());}}}(_0x3f69,0x9e174),function(_0x3449bd,_0x27be52){var _0x544972=_0x1156;typeof exports==_0x544972(0x2ae)&&typeof module<'u'?_0x27be52(exports,require(_0x544972(0x272)),require('@univerjs/core'),require('@univerjs/sheets'),require(_0x544972(0x235)),require(_0x544972(0x1e4)),require(_0x544972(0x2a6)),require(_0x544972(0x248)),require(_0x544972(0x270)),require(_0x544972(0x1e1)),require(_0x544972(0x21f)),require(_0x544972(0x20b))):typeof define==_0x544972(0x259)&&define[_0x544972(0x231)]?define([_0x544972(0x279),'@univerjs-pro/collaboration-client',_0x544972(0x280),_0x544972(0x2d4),_0x544972(0x235),_0x544972(0x1e4),_0x544972(0x2a6),'@univerjs/design','react',_0x544972(0x1e1),_0x544972(0x21f),_0x544972(0x20b)],_0x27be52):(_0x3449bd=typeof globalThis<'u'?globalThis:_0x3449bd||self,_0x27be52(_0x3449bd[_0x544972(0x222)]={},_0x3449bd[_0x544972(0x24f)],_0x3449bd[_0x544972(0x201)],_0x3449bd[_0x544972(0x2dd)],_0x3449bd[_0x544972(0x2bb)],_0x3449bd['UniverUi'],_0x3449bd['React'],_0x3449bd[_0x544972(0x2d5)],_0x3449bd[_0x544972(0x226)],_0x3449bd[_0x544972(0x2ad)],_0x3449bd[_0x544972(0x21f)],_0x3449bd[_0x544972(0x21f)][_0x544972(0x2ba)]));}(this,function(_0x3922ba,_0x4b448c,_0x51fddc,_0x330718,_0xce2c7b,_0x1e0431,_0x49be1,_0xa1bc07,_0x5eeba2,_0x5aeed6,_0x151af6,_0x2e3af3){'use strict';var _0xa030a2=_0x1156;var _0x41db5c=Object[_0xa030a2(0x2b3)],_0x1a7c00=(_0x1c892a,_0x4392ee,_0x1ff203)=>_0x4392ee in _0x1c892a?_0x41db5c(_0x1c892a,_0x4392ee,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ff203}):_0x1c892a[_0x4392ee]=_0x1ff203,_0x1b5e5f=(_0x64b7d0,_0xf1e7cc,_0x4d0e69)=>_0x1a7c00(_0x64b7d0,typeof _0xf1e7cc!=_0xa030a2(0x266)?_0xf1e7cc+'':_0xf1e7cc,_0x4d0e69);const _0x138e46=_0xa030a2(0x2d9),_0x30e877={};class _0x3c4b2c extends _0x51fddc['Disposable']{constructor(){var _0x123a58=_0xa030a2;super(...arguments),_0x1b5e5f(this,_0x123a58(0x2c3),new Set()),_0x1b5e5f(this,_0x123a58(0x285),new Set());}['registerSharedOperation'](_0x585d89){var _0x1174f8=_0xa030a2;return this[_0x1174f8(0x2c3)][_0x1174f8(0x23b)](_0x585d89),_0x51fddc[_0x1174f8(0x27a)](()=>this[_0x1174f8(0x2c3)][_0x1174f8(0x244)](_0x585d89));}[_0xa030a2(0x2b8)](_0x36a28c){var _0x1106a7=_0xa030a2;return this[_0x1106a7(0x285)]['add'](_0x36a28c),_0x51fddc['toDisposable'](()=>this[_0x1106a7(0x285)][_0x1106a7(0x244)](_0x36a28c));}[_0xa030a2(0x293)](_0x47d65d){var _0x971239=_0xa030a2;return this[_0x971239(0x2c3)]['has'](_0x47d65d);}[_0xa030a2(0x208)](_0x434908){var _0x34a085=_0xa030a2;return Array[_0x34a085(0x1ea)](this[_0x34a085(0x285)])[_0x34a085(0x268)](_0x3d5077=>_0x3d5077(_0x434908));}}var _0x44a93f=Object[_0xa030a2(0x25d)],_0xed1ad7=(_0x37cb14,_0xbcdc88,_0x3199f4,_0xddcb29)=>{var _0x2cf455=_0xa030a2;for(var _0x21c32c=_0xddcb29>0x1?void 0x0:_0xddcb29?_0x44a93f(_0xbcdc88,_0x3199f4):_0xbcdc88,_0x340094=_0x37cb14[_0x2cf455(0x23f)]-0x1,_0x1bb236;_0x340094>=0x0;_0x340094--)(_0x1bb236=_0x37cb14[_0x340094])&&(_0x21c32c=_0x1bb236(_0x21c32c)||_0x21c32c);return _0x21c32c;},_0x19217f=(_0x14c5e8,_0x41bb88)=>(_0x248d9e,_0x5bf18f)=>_0x41bb88(_0x248d9e,_0x5bf18f,_0x14c5e8);let _0x522c4f=class extends _0x51fddc[_0xa030a2(0x2cd)]{constructor(_0xf5d92b){super(),this['_liveShareService']=_0xf5d92b,this['_init']();}[_0xa030a2(0x2d1)](){var _0x35f7f6=_0xa030a2;[_0xce2c7b['SetZoomRatioOperation']['id'],_0xce2c7b['SetScrollOperation']['id'],_0x330718[_0x35f7f6(0x27b)]['id']][_0x35f7f6(0x220)](_0x26dd1a=>{var _0xdb92b3=_0x35f7f6;this[_0xdb92b3(0x2c4)](this['_liveShareService'][_0xdb92b3(0x265)](_0x26dd1a));});}};_0x522c4f=_0xed1ad7([_0x19217f(0x0,_0x51fddc[_0xa030a2(0x1f7)](_0x3c4b2c))],_0x522c4f);var _0x43b018=function(){return _0x43b018=Object['assign']||function(_0x4d71c6){var _0x1ca64f=_0x1156;for(var _0xa6a44c,_0xb7e31a=0x1,_0x570756=arguments[_0x1ca64f(0x23f)];_0xb7e31a<_0x570756;_0xb7e31a++){_0xa6a44c=arguments[_0xb7e31a];for(var _0x5a9e1d in _0xa6a44c)Object[_0x1ca64f(0x256)][_0x1ca64f(0x295)][_0x1ca64f(0x214)](_0xa6a44c,_0x5a9e1d)&&(_0x4d71c6[_0x5a9e1d]=_0xa6a44c[_0x5a9e1d]);}return _0x4d71c6;},_0x43b018['apply'](this,arguments);},_0x21f2ea=function(_0xf4c7c8,_0xafab29){var _0x21fbbe=_0xa030a2,_0x47c386={};for(var _0x77c6f2 in _0xf4c7c8)Object['prototype'][_0x21fbbe(0x295)][_0x21fbbe(0x214)](_0xf4c7c8,_0x77c6f2)&&_0xafab29[_0x21fbbe(0x24e)](_0x77c6f2)<0x0&&(_0x47c386[_0x77c6f2]=_0xf4c7c8[_0x77c6f2]);if(_0xf4c7c8!=null&&typeof Object['getOwnPropertySymbols']==_0x21fbbe(0x259)){for(var _0x594d5d=0x0,_0x77c6f2=Object[_0x21fbbe(0x229)](_0xf4c7c8);_0x594d5d<_0x77c6f2['length'];_0x594d5d++)_0xafab29['indexOf'](_0x77c6f2[_0x594d5d])<0x0&&Object[_0x21fbbe(0x256)][_0x21fbbe(0x250)]['call'](_0xf4c7c8,_0x77c6f2[_0x594d5d])&&(_0x47c386[_0x77c6f2[_0x594d5d]]=_0xf4c7c8[_0x77c6f2[_0x594d5d]]);}return _0x47c386;},_0x3f56b3=_0x5eeba2[_0xa030a2(0x27d)](function(_0x1666a6,_0x4a6128){var _0x3d8ddd=_0xa030a2,_0x16c1ce=_0x1666a6['icon'],_0x350af2=_0x1666a6['id'],_0x3f3064=_0x1666a6['className'],_0x367b60=_0x1666a6[_0x3d8ddd(0x216)],_0x554c73=_0x21f2ea(_0x1666a6,[_0x3d8ddd(0x28a),'id',_0x3d8ddd(0x1e2),_0x3d8ddd(0x216)]),_0x49d4f9=_0x3d8ddd(0x21a)['concat'](_0x350af2,'\x20')[_0x3d8ddd(0x2a5)](_0x3f3064||'')['trim'](),_0x24364d=_0x5eeba2['useRef']('_'['concat'](_0xab142d()));return _0x161fd3(_0x16c1ce,''[_0x3d8ddd(0x2a5)](_0x350af2),{'defIds':_0x16c1ce['defIds'],'idSuffix':_0x24364d[_0x3d8ddd(0x21c)]},_0x43b018({'ref':_0x4a6128,'className':_0x49d4f9},_0x554c73),_0x367b60);});function _0x161fd3(_0x42d35e,_0x2ac973,_0x5e7169,_0x4eecb6,_0x51af8f){var _0x1dc5da=_0xa030a2;return _0x5eeba2[_0x1dc5da(0x1ec)](_0x42d35e[_0x1dc5da(0x258)],_0x43b018(_0x43b018({'key':_0x2ac973},_0x524264(_0x42d35e,_0x5e7169,_0x51af8f)),_0x4eecb6),(_0x14b769(_0x42d35e,_0x5e7169)['children']||[])['map'](function(_0x53472b,_0x5809a8){var _0x1a9083=_0x1dc5da;return _0x161fd3(_0x53472b,''[_0x1a9083(0x2a5)](_0x2ac973,'-')['concat'](_0x42d35e['tag'],'-')[_0x1a9083(0x2a5)](_0x5809a8),_0x5e7169,void 0x0,_0x51af8f);}));}function _0x524264(_0x272a2f,_0x103df8,_0x117338){var _0x8e4a6b=_0xa030a2,_0x172bd7=_0x43b018({},_0x272a2f[_0x8e4a6b(0x1e6)]);_0x117338!=null&&_0x117338[_0x8e4a6b(0x29b)]&&_0x172bd7['fill']===_0x8e4a6b(0x29b)&&(_0x172bd7[_0x8e4a6b(0x2c8)]=_0x117338['colorChannel1']),_0x272a2f[_0x8e4a6b(0x258)]==='mask'&&_0x172bd7['id']&&(_0x172bd7['id']=_0x172bd7['id']+_0x103df8[_0x8e4a6b(0x26d)]),Object[_0x8e4a6b(0x2b4)](_0x172bd7)['forEach'](function(_0x3dda15){var _0x391f0a=_0x8e4a6b,_0x5931af=_0x3dda15[0x0],_0x527577=_0x3dda15[0x1];_0x5931af==='mask'&&typeof _0x527577==_0x391f0a(0x269)&&(_0x172bd7[_0x5931af]=_0x527577[_0x391f0a(0x29d)](/url\(#(.*)\)/,_0x391f0a(0x209)['concat'](_0x103df8[_0x391f0a(0x26d)],')')));});var _0xd3c40c=_0x103df8[_0x8e4a6b(0x28b)];return!_0xd3c40c||_0xd3c40c[_0x8e4a6b(0x23f)]===0x0||(_0x272a2f[_0x8e4a6b(0x258)]===_0x8e4a6b(0x283)&&_0x172bd7[_0x8e4a6b(0x236)]&&(_0x172bd7['xlink:href']=_0x172bd7[_0x8e4a6b(0x236)]+_0x103df8[_0x8e4a6b(0x26d)]),Object[_0x8e4a6b(0x2b4)](_0x172bd7)[_0x8e4a6b(0x220)](function(_0x5250f7){var _0x2941bd=_0x8e4a6b,_0x5adadd=_0x5250f7[0x0],_0x483009=_0x5250f7[0x1];typeof _0x483009==_0x2941bd(0x269)&&(_0x172bd7[_0x5adadd]=_0x483009[_0x2941bd(0x29d)](/url\(#(.*)\)/,_0x2941bd(0x209)[_0x2941bd(0x2a5)](_0x103df8[_0x2941bd(0x26d)],')')));})),_0x172bd7;}function _0x14b769(_0x384daa,_0x1f0dd5){var _0x59dea4=_0xa030a2,_0xbbcfdd,_0x2d8082=_0x1f0dd5[_0x59dea4(0x28b)];return!_0x2d8082||_0x2d8082[_0x59dea4(0x23f)]===0x0?_0x384daa:_0x384daa[_0x59dea4(0x258)]===_0x59dea4(0x20d)&&(!((_0xbbcfdd=_0x384daa['children'])===null||_0xbbcfdd===void 0x0)&&_0xbbcfdd[_0x59dea4(0x23f)])?_0x43b018(_0x43b018({},_0x384daa),{'children':_0x384daa[_0x59dea4(0x252)][_0x59dea4(0x268)](function(_0x4852b0){var _0x55ba3d=_0x59dea4;return typeof _0x4852b0['attrs']['id']==_0x55ba3d(0x269)&&_0x2d8082&&_0x2d8082['includes'](_0x4852b0[_0x55ba3d(0x1e6)]['id'])?_0x43b018(_0x43b018({},_0x4852b0),{'attrs':_0x43b018(_0x43b018({},_0x4852b0[_0x55ba3d(0x1e6)]),{'id':_0x4852b0[_0x55ba3d(0x1e6)]['id']+_0x1f0dd5[_0x55ba3d(0x26d)]})}):_0x4852b0;})}):_0x384daa;}function _0xab142d(){var _0x22fa4d=_0xa030a2;return Math[_0x22fa4d(0x282)]()[_0x22fa4d(0x247)](0x24)[_0x22fa4d(0x242)](0x2,0x8);}_0x3f56b3[_0xa030a2(0x2ce)]='UniverIcon';var _0x1c1999={'tag':_0xa030a2(0x2b1),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xa030a2(0x278),'viewBox':_0xa030a2(0x2cc),'width':_0xa030a2(0x2d3),'height':'1em'},'children':[{'tag':_0xa030a2(0x29e),'attrs':{'fill':_0xa030a2(0x28e),'d':_0xa030a2(0x2d2)}},{'tag':'path','attrs':{'fill':_0xa030a2(0x28e),'d':_0xa030a2(0x27c),'fillRule':'evenodd','clipRule':'evenodd'}}]},_0x24a436=_0x5eeba2[_0xa030a2(0x27d)](function(_0x8e0dc0,_0x4fc6b1){var _0x268428=_0xa030a2;return _0x5eeba2[_0x268428(0x1ec)](_0x3f56b3,Object[_0x268428(0x2b0)]({},_0x8e0dc0,{'id':_0x268428(0x213),'ref':_0x4fc6b1,'icon':_0x1c1999}));});_0x24a436[_0xa030a2(0x2ce)]=_0xa030a2(0x22e);var _0x1c9444=Object[_0xa030a2(0x25d)],_0x17d714=(_0x2919a5,_0x2ef8e6,_0x93d052,_0x3682b2)=>{var _0x4ff075=_0xa030a2;for(var _0x2e806c=_0x3682b2>0x1?void 0x0:_0x3682b2?_0x1c9444(_0x2ef8e6,_0x93d052):_0x2ef8e6,_0x2824cb=_0x2919a5[_0x4ff075(0x23f)]-0x1,_0x5bf966;_0x2824cb>=0x0;_0x2824cb--)(_0x5bf966=_0x2919a5[_0x2824cb])&&(_0x2e806c=_0x5bf966(_0x2e806c)||_0x2e806c);return _0x2e806c;},_0xb36e7b=(_0x3e8a67,_0x3bc130)=>(_0x3b7bea,_0x26a137)=>_0x3bc130(_0x3b7bea,_0x26a137,_0x3e8a67);_0x3922ba[_0xa030a2(0x2a7)]=class extends _0x51fddc['RxDisposable']{constructor(_0x3552f3,_0x566749,_0x12ff12){var _0x41145e=_0xa030a2;super(),_0x1b5e5f(this,'_entities',new Map()),(this[_0x41145e(0x26c)]=_0x3552f3,this[_0x41145e(0x22f)]=_0x566749,this[_0x41145e(0x205)]=_0x12ff12,this[_0x41145e(0x2d1)]());}async['getLiveShareCoordinator'](_0x145668){var _0x275cd7=_0xa030a2;return this[_0x275cd7(0x1e5)][_0x275cd7(0x2b5)](_0x145668)||await this[_0x275cd7(0x1fa)](_0x145668),this['_entities'][_0x275cd7(0x2d6)](_0x145668);}['_init'](){var _0x5292c2=_0xa030a2;this[_0x5292c2(0x26c)][_0x5292c2(0x2b7)](_0x51fddc['UniverInstanceType'][_0x5292c2(0x2ac)])[_0x5292c2(0x277)](_0x2e3af3[_0x5292c2(0x28c)](this[_0x5292c2(0x2a8)]))[_0x5292c2(0x2d0)](async _0x29e8e9=>{var _0x20a383=_0x5292c2;const _0x23c5e8=_0x29e8e9['getUnitId']();this[_0x20a383(0x1e5)][_0x20a383(0x2b5)](_0x23c5e8)||this[_0x20a383(0x1fa)](_0x23c5e8);}),this[_0x5292c2(0x26c)][_0x5292c2(0x254)](_0x51fddc[_0x5292c2(0x24b)][_0x5292c2(0x2ac)])[_0x5292c2(0x277)](_0x2e3af3[_0x5292c2(0x28c)](this[_0x5292c2(0x2a8)]))['subscribe'](_0x2e70e6=>{var _0x4003ac=_0x5292c2;const _0x946aca=_0x2e70e6['getUnitId'](),_0x4c961f=this[_0x4003ac(0x1e5)][_0x4003ac(0x2d6)](_0x946aca);_0x4c961f==null||_0x4c961f[_0x4003ac(0x21e)]();});}async[_0xa030a2(0x1fa)](_0xf86e4e){var _0x29c05e=_0xa030a2;const _0x55ff31=await this['_collabSessionService'][_0x29c05e(0x1f2)](_0xf86e4e),_0x40c505=this['_injector'][_0x29c05e(0x1fe)](_0x3922ba[_0x29c05e(0x225)],_0xf86e4e,_0x55ff31);return _0x40c505['init'](),this[_0x29c05e(0x1e5)][_0x29c05e(0x2ab)](_0xf86e4e,_0x40c505),_0x40c505;}},_0x3922ba[_0xa030a2(0x2a7)]=_0x17d714([_0xb36e7b(0x0,_0x51fddc[_0xa030a2(0x232)]),_0xb36e7b(0x1,_0x51fddc[_0xa030a2(0x1f7)](_0x51fddc[_0xa030a2(0x261)])),_0xb36e7b(0x2,_0x51fddc[_0xa030a2(0x1f7)](_0x4b448c[_0xa030a2(0x2a4)]))],_0x3922ba[_0xa030a2(0x2a7)]);var _0x46fa93=(_0x266c86=>(_0x266c86[_0xa030a2(0x2b6)]='offline',_0x266c86[_0xa030a2(0x2af)]=_0xa030a2(0x2a2),_0x266c86[_0xa030a2(0x22a)]=_0xa030a2(0x1e3),_0x266c86[_0xa030a2(0x202)]='not-following',_0x266c86['PRESENTING']='presenting',_0x266c86))(_0x46fa93||{});const _0x21e3af=_0xa030a2(0x29a),_0x2cb8f8=0xc8;_0x3922ba[_0xa030a2(0x225)]=class extends _0x51fddc[_0xa030a2(0x2bf)]{constructor(_0x2d5aff,_0x5a4b11,_0x3e09db,_0xce1dba,_0x1b3a5c){var _0x18a866=_0xa030a2;super(),_0x1b5e5f(this,_0x18a866(0x264),new _0x151af6[(_0x18a866(0x2a9))](_0x18a866(0x2a2))),_0x1b5e5f(this,_0x18a866(0x245),this['_status$'][_0x18a866(0x1f9)]()),_0x1b5e5f(this,_0x18a866(0x2d1),!0x1),_0x1b5e5f(this,_0x18a866(0x25c),null),_0x1b5e5f(this,_0x18a866(0x296),null),(this[_0x18a866(0x1ee)]=_0x2d5aff,this['_collabSession']=_0x5a4b11,this['_configService']=_0x3e09db,this[_0x18a866(0x24a)]=_0xce1dba,this[_0x18a866(0x200)]=_0x1b3a5c);}get[_0xa030a2(0x2cf)](){var _0x3c72f7=_0xa030a2;return this[_0x3c72f7(0x264)][_0x3c72f7(0x1eb)]();}[_0xa030a2(0x21e)](){var _0x55e57c=_0xa030a2,_0x498fc8;(_0x498fc8=this[_0x55e57c(0x25c)])==null||_0x498fc8['dispose'](),this[_0x55e57c(0x264)][_0x55e57c(0x271)](_0x55e57c(0x2a2)),this[_0x55e57c(0x264)][_0x55e57c(0x257)]();}[_0xa030a2(0x20a)](){var _0x1a513c=_0xa030a2;this[_0x1a513c(0x2d1)]||(this[_0x1a513c(0x2d1)]=!0x0,this[_0x1a513c(0x1e9)][_0x1a513c(0x2c7)][_0x1a513c(0x277)](_0x2e3af3['takeUntil'](this['dispose$']))[_0x1a513c(0x2d0)](_0x31e3ce=>{var _0x426762=_0x1a513c;switch(_0x31e3ce){case _0x4b448c[_0x426762(0x20c)][_0x426762(0x2b6)]:this[_0x426762(0x1f0)]();break;case _0x4b448c['SessionStatus'][_0x426762(0x1f3)]:this[_0x426762(0x255)]();break;}}),this[_0x1a513c(0x1e9)]['event$'][_0x1a513c(0x277)](_0x2e3af3[_0x1a513c(0x28c)](this['dispose$']))[_0x1a513c(0x2d0)](_0x1ee22c=>{var _0x5543f6=_0x1a513c;const {eventID:_0x2cb058}=_0x1ee22c;switch(_0x2cb058){case _0x5aeed6['CollaborationEvent'][_0x5543f6(0x212)]:this[_0x5543f6(0x22c)](_0x1ee22c);break;case _0x5aeed6[_0x5543f6(0x2c2)][_0x5543f6(0x237)]:this['_handleOperation'](_0x1ee22c);break;case _0x5aeed6[_0x5543f6(0x2c2)][_0x5543f6(0x291)]:this[_0x5543f6(0x1e8)]();break;case _0x5aeed6['CollaborationEvent'][_0x5543f6(0x1fd)]:this['_handleNewChangeSets'](_0x1ee22c);break;}}));}[_0xa030a2(0x223)](){var _0x1e2c01=_0xa030a2;this[_0x1e2c01(0x1e9)]['send']({'eventID':_0x5aeed6[_0x1e2c01(0x2c2)][_0x1e2c01(0x2da)],'data':{'unitID':this[_0x1e2c01(0x1ee)],'userID':this[_0x1e2c01(0x1e9)][_0x1e2c01(0x25b)]()}},this['_unitID']);}['stopPresenting'](){var _0x480c0b=_0xa030a2;this['_status']===_0x480c0b(0x28f)&&(this[_0x480c0b(0x264)][_0x480c0b(0x271)](_0x480c0b(0x2a2)),this[_0x480c0b(0x1e9)]['send']({'eventID':_0x5aeed6[_0x480c0b(0x2c2)][_0x480c0b(0x291)],'data':{'unitID':this[_0x480c0b(0x1ee)]}},this[_0x480c0b(0x1ee)]));}['startFollowing'](){var _0x2083a7=_0xa030a2;this[_0x2083a7(0x2cf)]==='not-following'&&(this['_status$'][_0x2083a7(0x271)](_0x2083a7(0x1e3)),this['_startFollowing']());}['stopFollowing'](){var _0x4fba23=_0xa030a2;this[_0x4fba23(0x2cf)]===_0x4fba23(0x1e3)&&this['_stopFollowing']();}['_handleNewHost'](_0x3962a3){var _0x3ce82a=_0xa030a2;const {presenter:_0x2105fe}=_0x3962a3[_0x3ce82a(0x27f)],_0xd78d71=this[_0x3ce82a(0x1e9)][_0x3ce82a(0x25b)]();this['_presenter']=_0x2105fe,_0x2105fe===_0xd78d71?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x3ce82a(0x2cf)]!==_0x3ce82a(0x299)&&(this[_0x3ce82a(0x219)](),this[_0x3ce82a(0x286)]());}[_0xa030a2(0x233)](){var _0x4fda41=_0xa030a2;const _0x259e6d={'eventID':_0x5aeed6[_0x4fda41(0x2c2)][_0x4fda41(0x292)]};this[_0x4fda41(0x1e9)][_0x4fda41(0x2ca)](_0x259e6d,this[_0x4fda41(0x1ee)]);}[_0xa030a2(0x1e8)](){var _0x471564=_0xa030a2;this['_presenter']=null,this[_0x471564(0x2cf)]!==_0x471564(0x28f)&&this['_beIdle']();}['_handleNewChangeSets'](_0x4ba616){var _0x5e740b=_0xa030a2;if(this[_0x5e740b(0x2cf)]===_0x5e740b(0x1e3)&&this[_0x5e740b(0x296)]===_0x4ba616[_0x5e740b(0x27f)][_0x5e740b(0x26f)]){const _0x2d5205=_0x5aeed6[_0x5e740b(0x203)](_0x4ba616[_0x5e740b(0x27f)])[_0x5e740b(0x20e)][_0x5e740b(0x263)]()['find'](_0x4f9bff=>_0x4f9bff['id']===_0x330718[_0x5e740b(0x275)]['id']);if(_0x2d5205){const _0x269407=_0x2d5205[_0x5e740b(0x217)][_0x5e740b(0x206)],_0x24753b=_0x2d5205['params'][_0x5e740b(0x23c)]['id'];setTimeout(()=>{var _0x6ca938=_0x5e740b;this[_0x6ca938(0x200)][_0x6ca938(0x262)](_0x330718[_0x6ca938(0x27b)]['id'],{'unitId':_0x269407,'subUnitId':_0x24753b},{'fromCollab':!0x0});});}}}[_0xa030a2(0x23e)](){var _0x193dfd=_0xa030a2;this[_0x193dfd(0x264)][_0x193dfd(0x271)](_0x193dfd(0x28f));const _0x470063=new Map(),_0x255f49=this['_commandDisposable']=new _0x51fddc['DisposableCollection']();_0x255f49[_0x193dfd(0x23b)](_0x51fddc[_0x193dfd(0x27a)](()=>{var _0x352ad6=_0x193dfd;_0x470063['forEach'](_0x5bd713=>_0x5bd713['complete']()),_0x470063[_0x352ad6(0x2cb)]();})),_0x255f49[_0x193dfd(0x23b)](this[_0x193dfd(0x200)][_0x193dfd(0x28d)](_0x420756=>{var _0x4c2302=_0x193dfd,_0x23c88d;if(_0x420756['type']!==_0x51fddc[_0x4c2302(0x276)][_0x4c2302(0x284)]||!this[_0x4c2302(0x24a)]['shouldShareOperation'](_0x420756['id']))return;const {id:_0x48766d}=_0x420756;let _0x1fdb66;_0x470063['has'](_0x48766d)?_0x1fdb66=_0x470063[_0x4c2302(0x2d6)](_0x48766d):(_0x1fdb66=new _0x151af6[(_0x4c2302(0x290))](),_0x470063[_0x4c2302(0x2ab)](_0x48766d,_0x1fdb66),_0x1fdb66[_0x4c2302(0x277)](_0x2e3af3['throttleTime']((_0x23c88d=this[_0x4c2302(0x26b)][_0x4c2302(0x25e)](_0x21e3af))!=null?_0x23c88d:_0x2cb8f8,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4c2302(0x2d0)](_0x1d25df=>{var _0x1e78ec=_0x4c2302;this['_collabSession'][_0x1e78ec(0x2ca)]({'eventID':_0x5aeed6[_0x1e78ec(0x2c2)][_0x1e78ec(0x237)],'data':{'unitID':this[_0x1e78ec(0x1ee)],'operations':{[_0x1d25df['id']]:{'id':_0x1d25df['id'],'params':JSON[_0x1e78ec(0x2bd)](_0x1d25df[_0x1e78ec(0x217)])}}}},this[_0x1e78ec(0x1ee)]);})),_0x1fdb66[_0x4c2302(0x271)](_0x420756);})),this['_liveShareService'][_0x193dfd(0x208)](this[_0x193dfd(0x1ee)])[_0x193dfd(0x220)](_0x15e8da=>this['_collabSession'][_0x193dfd(0x2ca)]({'eventID':_0x5aeed6[_0x193dfd(0x2c2)][_0x193dfd(0x237)],'data':{'unitID':this[_0x193dfd(0x1ee)],'operations':{[_0x15e8da['id']]:{'id':_0x15e8da['id'],'params':JSON['stringify'](_0x15e8da[_0x193dfd(0x217)])}}}},this[_0x193dfd(0x1ee)]));}[_0xa030a2(0x219)](){var _0x3676f2=_0xa030a2,_0x81dbc7;this['_status$']['next'](_0x3676f2(0x2a2)),(_0x81dbc7=this[_0x3676f2(0x25c)])==null||_0x81dbc7['dispose'](),this[_0x3676f2(0x25c)]=null;}[_0xa030a2(0x286)](){var _0x12daae=_0xa030a2,_0x55a393;(_0x55a393=this[_0x12daae(0x25c)])==null||_0x55a393[_0x12daae(0x21e)](),this[_0x12daae(0x264)][_0x12daae(0x271)](_0x12daae(0x1e3));}[_0xa030a2(0x1ed)](){var _0x379c03=_0xa030a2,_0x24e18a;this[_0x379c03(0x264)]['next'](_0x379c03(0x2a2)),(_0x24e18a=this[_0x379c03(0x25c)])==null||_0x24e18a[_0x379c03(0x21e)](),this['_commandDisposable']=null;}[_0xa030a2(0x267)](){var _0xc5b6a1=_0xa030a2,_0x4928b8;this['_status$'][_0xc5b6a1(0x271)](_0xc5b6a1(0x299)),(_0x4928b8=this[_0xc5b6a1(0x25c)])==null||_0x4928b8[_0xc5b6a1(0x21e)]();}[_0xa030a2(0x1f1)](_0x5aa5b3){var _0x4cf27b=_0xa030a2;if(['presenting','not-following',_0x4cf27b(0x1ff)]['includes'](this['_status'])||!_0x5aa5b3[_0x4cf27b(0x27f)][_0x4cf27b(0x26a)]||_0x5aa5b3['data'][_0x4cf27b(0x26a)]===this[_0x4cf27b(0x1e9)]['getMemberID']())return;this['_status']==='idle'&&this[_0x4cf27b(0x286)]();const _0x46875c=_0x5aa5b3[_0x4cf27b(0x27f)][_0x4cf27b(0x281)];Object['values'](_0x46875c)[_0x4cf27b(0x220)](_0x405c08=>{var _0x4f3437=_0x4cf27b;this[_0x4f3437(0x200)]['executeCommand'](_0x405c08['id'],_0x405c08[_0x4f3437(0x217)]?JSON['parse'](_0x405c08[_0x4f3437(0x217)]):null,{'fromCollab':!0x0});});}[_0xa030a2(0x1f0)](){var _0x15d9e0=_0xa030a2,_0x3fb92b;this[_0x15d9e0(0x264)][_0x15d9e0(0x271)](_0x15d9e0(0x1ff)),(_0x3fb92b=this[_0x15d9e0(0x25c)])==null||_0x3fb92b[_0x15d9e0(0x21e)]();}[_0xa030a2(0x255)](){var _0xddb4be=_0xa030a2;this[_0xddb4be(0x264)][_0xddb4be(0x271)](_0xddb4be(0x2a2)),this['_fetchOperations']();}},_0x3922ba[_0xa030a2(0x225)]=_0x17d714([_0xb36e7b(0x2,_0x51fddc['IConfigService']),_0xb36e7b(0x3,_0x51fddc[_0xa030a2(0x1f7)](_0x3c4b2c)),_0xb36e7b(0x4,_0x51fddc[_0xa030a2(0x2d7)])],_0x3922ba[_0xa030a2(0x225)]);function _0x23e6a7(){var _0x24f505=_0xa030a2;const _0x9f062c=_0x1e0431[_0x24f505(0x20f)](_0x3922ba[_0x24f505(0x2a7)]),_0x47bf3d=_0x1e0431[_0x24f505(0x20f)](_0x51fddc[_0x24f505(0x232)]),_0x43f56b=_0x1e0431[_0x24f505(0x240)](()=>_0x47bf3d[_0x24f505(0x289)](_0x51fddc[_0x24f505(0x24b)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x118166,_0x3aba9d]=_0x5eeba2['useState'](null),[_0xce011a,_0x31fefe]=_0x5eeba2[_0x24f505(0x27e)](_0x46fa93[_0x24f505(0x2af)]),_0x237c51=_0x5eeba2[_0x24f505(0x1f6)](null);return _0x5eeba2[_0x24f505(0x204)](()=>(_0x43f56b&&_0x9f062c[_0x24f505(0x241)](_0x43f56b[_0x24f505(0x246)]())[_0x24f505(0x224)](_0x30973c=>{var _0x2fcabf=_0x24f505;_0x3aba9d(_0x30973c),_0x237c51['current']=_0x30973c[_0x2fcabf(0x245)][_0x2fcabf(0x2d0)](_0x3cbe7e=>{_0x31fefe(_0x3cbe7e);});}),()=>{var _0x1fa6e9=_0x24f505,_0xe32a93;(_0xe32a93=_0x237c51[_0x1fa6e9(0x21c)])==null||_0xe32a93[_0x1fa6e9(0x2be)](),_0x237c51[_0x1fa6e9(0x21c)]=null;}),[_0x43f56b,_0x9f062c]),_0x118166?_0x49be1[_0x24f505(0x2aa)](_0xa1bc07[_0x24f505(0x234)],{'align':_0x24f505(0x260),'disabled':_0xce011a===_0x46fa93[_0x24f505(0x2b6)],'className':_0x24f505(0x297),'overlay':_0x49be1[_0x24f505(0x2aa)](_0x3b10ef,{'status':_0xce011a,'coordinator':_0x118166}),'children':_0x49be1[_0x24f505(0x2aa)]('button',{'className':_0xa1bc07[_0x24f505(0x21b)](_0x24f505(0x287),{'univer-cursor-not-allowed':_0xce011a===_0x46fa93['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xce011a!==_0x46fa93[_0x24f505(0x2b6)]}),'type':'button','children':_0x49be1[_0x24f505(0x2aa)](_0x24a436,{'className':_0x24f505(0x1fc)})})}):null;}function _0x3b10ef(_0x507818){var _0x335538=_0xa030a2;const {status:_0x1d5dc6,coordinator:_0xee4631}=_0x507818;switch(_0x1d5dc6){case _0x46fa93[_0x335538(0x2af)]:return _0x49be1[_0x335538(0x2aa)](_0x5bdb0a,{'coordinator':_0xee4631});case _0x46fa93[_0x335538(0x22a)]:return _0x49be1[_0x335538(0x2aa)](_0x54b6a8,{'coordinator':_0xee4631});case _0x46fa93[_0x335538(0x202)]:return _0x49be1[_0x335538(0x2aa)](_0x56388e,{'coordinator':_0xee4631});case _0x46fa93[_0x335538(0x2b6)]:return _0x49be1[_0x335538(0x2aa)](_0x15ea7f,{});case _0x46fa93[_0x335538(0x26e)]:return _0x49be1[_0x335538(0x2aa)](_0x58e22a,{'coordinator':_0xee4631});default:return null;}}function _0x5bdb0a(_0x3024a9){var _0x1047d5=_0xa030a2;const {coordinator:_0x295e58}=_0x3024a9;return _0x49be1[_0x1047d5(0x22d)](_0x49be1[_0x1047d5(0x2c6)],{'children':[_0x49be1[_0x1047d5(0x2aa)](_0x1047d5(0x251),{'className':_0x1047d5(0x249),'children':'Present\x20this\x20document'}),_0x49be1[_0x1047d5(0x2aa)](_0xa1bc07[_0x1047d5(0x2a1)],{'onClick':()=>_0x295e58[_0x1047d5(0x223)](),'children':_0x1047d5(0x207)})]});}function _0x54b6a8(_0x4d3c20){var _0x1a3044=_0xa030a2;const {coordinator:_0x467ec5}=_0x4d3c20;return _0x49be1[_0x1a3044(0x22d)](_0x49be1['Fragment'],{'children':[_0x49be1[_0x1a3044(0x2aa)](_0x1a3044(0x251),{'className':_0x1a3044(0x249),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x49be1[_0x1a3044(0x2aa)](_0xa1bc07[_0x1a3044(0x2a1)],{'onClick':()=>_0x467ec5[_0x1a3044(0x22b)](),'children':_0x1a3044(0x2a0)})]});}function _0x56388e(_0x37ec7a){var _0x38bc96=_0xa030a2;const {coordinator:_0x484944}=_0x37ec7a;return _0x49be1[_0x38bc96(0x22d)](_0x49be1['Fragment'],{'children':[_0x49be1[_0x38bc96(0x2aa)](_0x38bc96(0x251),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x49be1[_0x38bc96(0x2aa)](_0xa1bc07[_0x38bc96(0x2a1)],{'variant':'text','onClick':()=>_0x484944[_0x38bc96(0x25a)](),'children':_0x38bc96(0x1f5)})]});}function _0x58e22a(_0x195b2f){var _0x2e25c2=_0xa030a2;const {coordinator:_0xfd6f3c}=_0x195b2f;return _0x49be1['jsxs'](_0x49be1['Fragment'],{'children':[_0x49be1[_0x2e25c2(0x2aa)](_0x2e25c2(0x251),{'className':_0x2e25c2(0x249),'children':_0x2e25c2(0x1f8)}),_0x49be1[_0x2e25c2(0x2aa)](_0xa1bc07[_0x2e25c2(0x2a1)],{'variant':_0x2e25c2(0x2a3),'onClick':()=>_0xfd6f3c[_0x2e25c2(0x1fb)](),'children':_0x2e25c2(0x2c9)})]});}function _0x15ea7f(){var _0x3c3f49=_0xa030a2;return _0x49be1[_0x3c3f49(0x2aa)](_0x49be1[_0x3c3f49(0x2c6)],{'children':_0x3c3f49(0x2c1)});}var _0x2e2326=Object[_0xa030a2(0x25d)],_0x21254d=(_0x505582,_0x158bc6,_0x47568c,_0x1589b6)=>{var _0x5db27b=_0xa030a2;for(var _0x339b6a=_0x1589b6>0x1?void 0x0:_0x1589b6?_0x2e2326(_0x158bc6,_0x47568c):_0x158bc6,_0x171ef2=_0x505582[_0x5db27b(0x23f)]-0x1,_0x4a0668;_0x171ef2>=0x0;_0x171ef2--)(_0x4a0668=_0x505582[_0x171ef2])&&(_0x339b6a=_0x4a0668(_0x339b6a)||_0x339b6a);return _0x339b6a;},_0x2ce1a0=(_0x42162f,_0x51d228)=>(_0x4f92ce,_0x1535d0)=>_0x51d228(_0x4f92ce,_0x1535d0,_0x42162f);_0x3922ba[_0xa030a2(0x210)]=class extends _0x51fddc['Disposable']{constructor(_0x58d3b0,_0x100d16){var _0x1611a9=_0xa030a2;super(),this[_0x1611a9(0x22f)]=_0x58d3b0,this[_0x1611a9(0x23d)]=_0x100d16,this[_0x1611a9(0x230)]();}['_mountLiveShare'](){var _0x9d2f85=_0xa030a2;this[_0x9d2f85(0x2c4)](this[_0x9d2f85(0x23d)][_0x9d2f85(0x2d8)](_0x1e0431[_0x9d2f85(0x2db)][_0x9d2f85(0x215)],()=>_0x1e0431[_0x9d2f85(0x2c5)](_0x23e6a7,this[_0x9d2f85(0x22f)])));}},_0x3922ba[_0xa030a2(0x210)]=_0x21254d([_0x2ce1a0(0x0,_0x51fddc[_0xa030a2(0x1f7)](_0x51fddc['Injector'])),_0x2ce1a0(0x1,_0x1e0431['IUIPartsService'])],_0x3922ba[_0xa030a2(0x210)]);var _0x12c798=Object[_0xa030a2(0x2b3)],_0x4e1f41=Object[_0xa030a2(0x25d)],_0x5ce1a6=(_0x31a056,_0x317fd6,_0x36d02f)=>_0x317fd6 in _0x31a056?_0x12c798(_0x31a056,_0x317fd6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x36d02f}):_0x31a056[_0x317fd6]=_0x36d02f,_0x5bfc1d=(_0x4c1f48,_0x2e1ebd,_0x19f599,_0x558a27)=>{var _0x3c9ad2=_0xa030a2;for(var _0x2fa8e6=_0x558a27>0x1?void 0x0:_0x558a27?_0x4e1f41(_0x2e1ebd,_0x19f599):_0x2e1ebd,_0x25d2a6=_0x4c1f48[_0x3c9ad2(0x23f)]-0x1,_0x526ec8;_0x25d2a6>=0x0;_0x25d2a6--)(_0x526ec8=_0x4c1f48[_0x25d2a6])&&(_0x2fa8e6=_0x526ec8(_0x2fa8e6)||_0x2fa8e6);return _0x2fa8e6;},_0x16329f=(_0x3c465b,_0x179904)=>(_0x8bf296,_0x1de457)=>_0x179904(_0x8bf296,_0x1de457,_0x3c465b),_0x4a1db3=(_0x26b489,_0x5c5a89,_0x3b6ff2)=>_0x5ce1a6(_0x26b489,typeof _0x5c5a89!='symbol'?_0x5c5a89+'':_0x5c5a89,_0x3b6ff2);const _0x3e9a91=_0xa030a2(0x273);_0x3922ba['UniverLiveSharePlugin']=class extends _0x51fddc[_0xa030a2(0x211)]{constructor(_0x2514c3=_0x30e877,_0x3fc502,_0x37dfe4){var _0x3cad14=_0xa030a2;super(),this[_0x3cad14(0x274)]=_0x2514c3,this[_0x3cad14(0x22f)]=_0x3fc502,this[_0x3cad14(0x26b)]=_0x37dfe4;const {..._0x26c62f}=_0x51fddc[_0x3cad14(0x2c0)]({},_0x30e877,this['_config']);this[_0x3cad14(0x26b)][_0x3cad14(0x288)](_0x138e46,_0x26c62f);}[_0xa030a2(0x2dc)](){var _0x204082=_0xa030a2;_0x51fddc[_0x204082(0x2b9)](this[_0x204082(0x22f)],_0x51fddc[_0x204082(0x228)]([[_0x3c4b2c],[_0x3922ba[_0x204082(0x2a7)]],[_0x522c4f],[_0x3922ba[_0x204082(0x210)]]],this[_0x204082(0x274)][_0x204082(0x1ef)])),_0x51fddc[_0x204082(0x29c)](this[_0x204082(0x22f)],[[_0x522c4f]]);}['onRendered'](){var _0x15ecc9=_0xa030a2;_0x51fddc[_0x15ecc9(0x29c)](this[_0x15ecc9(0x22f)],[[_0x3922ba[_0x15ecc9(0x210)]]]);}},_0x4a1db3(_0x3922ba['UniverLiveSharePlugin'],_0xa030a2(0x25f),_0x51fddc[_0xa030a2(0x24b)][_0xa030a2(0x2b2)]),_0x4a1db3(_0x3922ba[_0xa030a2(0x294)],_0xa030a2(0x23a),_0x3e9a91),_0x3922ba['UniverLiveSharePlugin']=_0x5bfc1d([_0x51fddc[_0xa030a2(0x1e7)](_0x4b448c[_0xa030a2(0x1f4)]),_0x16329f(0x1,_0x51fddc[_0xa030a2(0x1f7)](_0x51fddc[_0xa030a2(0x261)])),_0x16329f(0x2,_0x51fddc['IConfigService'])],_0x3922ba[_0xa030a2(0x294)]),_0x3922ba[_0xa030a2(0x239)]=_0x23e6a7,_0x3922ba[_0xa030a2(0x253)]=_0x3c4b2c,_0x3922ba['LiveShareStatus']=_0x46fa93,Object[_0xa030a2(0x2b3)](_0x3922ba,Symbol[_0xa030a2(0x24d)],{'value':_0xa030a2(0x298)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.8.0
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^0.4.4",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.8.0
|
|
51
|
-
"@univerjs-pro/collaboration-client": "0.8.0
|
|
52
|
-
"@univerjs/core": "0.8.0
|
|
53
|
-
"@univerjs/sheets": "0.8.0
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/
|
|
50
|
+
"@univerjs-pro/collaboration": "0.8.0",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.8.0",
|
|
52
|
+
"@univerjs/core": "0.8.0",
|
|
53
|
+
"@univerjs/sheets": "0.8.0",
|
|
54
|
+
"@univerjs/sheets-ui": "0.8.0",
|
|
55
|
+
"@univerjs/ui": "0.8.0",
|
|
56
|
+
"@univerjs/design": "0.8.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.4",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"typescript": "^5.8.3",
|
|
64
64
|
"vite": "^6.3.5",
|
|
65
65
|
"vitest": "^3.2.0",
|
|
66
|
-
"@univerjs-infra/shared": "0.8.0
|
|
66
|
+
"@univerjs-infra/shared": "0.8.0",
|
|
67
67
|
"@univerjs/protocol": "0.1.47-alpha.0"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|