@univerjs-pro/live-share 0.8.0-nightly.202506101607 → 0.8.0-nightly.202506111607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +8 -8
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x1c7aef=_0x5063;(function(_0x3a3028,_0x25af4b){var _0x3ff596=_0x5063,_0x26d193=_0x3a3028();while(!![]){try{var _0x507c3c=-parseInt(_0x3ff596(0x1d1))/0x1+parseInt(_0x3ff596(0x1f4))/0x2*(parseInt(_0x3ff596(0x169))/0x3)+parseInt(_0x3ff596(0x1ac))/0x4*(parseInt(_0x3ff596(0x164))/0x5)+parseInt(_0x3ff596(0x23d))/0x6+-parseInt(_0x3ff596(0x180))/0x7*(-parseInt(_0x3ff596(0x194))/0x8)+parseInt(_0x3ff596(0x1ce))/0x9+parseInt(_0x3ff596(0x18e))/0xa*(-parseInt(_0x3ff596(0x177))/0xb);if(_0x507c3c===_0x25af4b)break;else _0x26d193['push'](_0x26d193['shift']());}catch(_0x1b909f){_0x26d193['push'](_0x26d193['shift']());}}}(_0x346f,0xa7485));var U=Object['defineProperty'],F=(_0x2d3926,_0x207e6a,_0x585485)=>_0x207e6a in _0x2d3926?U(_0x2d3926,_0x207e6a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x585485}):_0x2d3926[_0x207e6a]=_0x585485,v=(_0x29a6ee,_0x3a5a07,_0x3cd13c)=>F(_0x29a6ee,typeof _0x3a5a07!=_0x1c7aef(0x186)?_0x3a5a07+'':_0x3a5a07,_0x3cd13c);Object[_0x1c7aef(0x19d)](exports,Symbol[_0x1c7aef(0x191)],{'value':_0x1c7aef(0x1f3)});function _0x5063(_0x4a4a60,_0x5c70c4){var _0x346fec=_0x346f();return _0x5063=function(_0x506342,_0x5037e2){_0x506342=_0x506342-0x159;var _0xe5fb84=_0x346fec[_0x506342];return _0xe5fb84;},_0x5063(_0x4a4a60,_0x5c70c4);}const m=require('@univerjs-pro/collaboration-client'),o=require(_0x1c7aef(0x1de)),C=require(_0x1c7aef(0x161)),w=require(_0x1c7aef(0x1a8)),p=require(_0x1c7aef(0x19f)),l=require(_0x1c7aef(0x16e)),g=require(_0x1c7aef(0x1a7)),f=require(_0x1c7aef(0x1e3)),_=require(_0x1c7aef(0x179)),D=require(_0x1c7aef(0x23f)),b=require(_0x1c7aef(0x1d9)),$=_0x1c7aef(0x21a),x={};class O extends o[_0x1c7aef(0x1a1)]{constructor(){var _0x7eb6e3=_0x1c7aef;super(...arguments),v(this,_0x7eb6e3(0x1e2),new Set()),v(this,_0x7eb6e3(0x19c),new Set());}[_0x1c7aef(0x228)](_0x41c440){var _0x397c21=_0x1c7aef;return this[_0x397c21(0x1e2)]['add'](_0x41c440),o[_0x397c21(0x18c)](()=>this[_0x397c21(0x1e2)]['delete'](_0x41c440));}[_0x1c7aef(0x1ba)](_0x43371b){var _0x167bd7=_0x1c7aef;return this['_reporters'][_0x167bd7(0x1d2)](_0x43371b),o[_0x167bd7(0x18c)](()=>this[_0x167bd7(0x19c)][_0x167bd7(0x1a4)](_0x43371b));}[_0x1c7aef(0x17a)](_0x240ca4){var _0x48ffff=_0x1c7aef;return this[_0x48ffff(0x1e2)][_0x48ffff(0x20e)](_0x240ca4);}[_0x1c7aef(0x192)](_0x2cfd6b){var _0x2185fa=_0x1c7aef;return Array[_0x2185fa(0x1bf)](this[_0x2185fa(0x19c)])[_0x2185fa(0x195)](_0x2ef2b0=>_0x2ef2b0(_0x2cfd6b));}}var H=Object[_0x1c7aef(0x1c1)],V=(_0x5360c8,_0x1178b6,_0x38a0bc,_0x227ea3)=>{for(var _0x3571f0=_0x227ea3>0x1?void 0x0:_0x227ea3?H(_0x1178b6,_0x38a0bc):_0x1178b6,_0x2a322e=_0x5360c8['length']-0x1,_0xb87304;_0x2a322e>=0x0;_0x2a322e--)(_0xb87304=_0x5360c8[_0x2a322e])&&(_0x3571f0=_0xb87304(_0x3571f0)||_0x3571f0);return _0x3571f0;},k=(_0x16c344,_0x2a6325)=>(_0x2125da,_0x38a74b)=>_0x2a6325(_0x2125da,_0x38a74b,_0x16c344);function _0x346f(){var _0x2460c7=['0\x200\x2017\x2017','hasOwnProperty','Button','UniverCollaborationClientPlugin','SetZoomRatioOperation','onCommandExecuted','live-share.config','toString','mask','LIVESHARE_OPERATION','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','onStarting','getUnitId','offline','_liveShareService','createInstance','values','useState','prototype','attrs','registerSharedOperation','_collabSession','NEW_CHANGESETS','override','SessionStatus','current','clear','NOT_FOLLOWING','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','Start','idle','disposeWithMe','not-following','string','InsertSheetMutation','path','UNIVER_UNKNOWN','currentColor','useObservable','clsx','You\x27re\x20not\x20following\x20the\x20presenter','2046096CLlcSS','data','rxjs','none','_config','UniverInstanceType','_handleNewHost','jsxs','parseProtocolChangeset','UNIVER_SHEET','LIVESHARE_TERMINATE','tag','dispose$','complete','LiveShareController','You\x27re\x20following\x20the\x20presenter','init','defs','getConfig','You\x27are\x20offline.','_fetchOperations','@univerjs/sheets','connectInjector','presenting','44335mUPeRy','takeUntil','_init','_entities','status$','48999fjXCWo','dispose','You\x27re\x20presenting\x20the\x20document','requireSession','Injector','react/jsx-runtime','button','_startPresenting','parse','getCurrentTypeOfUnit$','children','getLiveShareCoordinator','LiveShareCoordinator','call','29468857uRqHcY','getTypeOfUnitDisposed$','@univerjs-pro/collaboration','shouldShareOperation','SetWorksheetActiveOperation','getOwnPropertySymbols','mergeOverrideWithDependencies','BuiltInUIPart','_univerInstanceService','658DeyRRg','RxDisposable','live-share-icon','className','_unitID','_presenter','symbol','set','default','then','find','unitId','toDisposable','OPERATION','10EGjtwy','_handleNewChangeSets','forwardRef','toStringTag','getInitialStates','DesktopLiveShareController','75320bQOcqN','map','length','colorChannel1','includes','_stopFollowing','_injector','ONLINE','_reporters','defineProperty','SetScrollOperation','@univerjs/ui','http://www.w3.org/2000/svg','Disposable','jsx','indexOf','delete','UniverLiveSharePlugin','type','@univerjs/design','@univerjs/sheets-ui','univer-w-full\x20univer-mb-3\x20univer-text-sm','event$','_handleOperation','436LXLGgk','_commandDisposable','subscribe','touchDependencies','useDependency','LiveShare','PRESENTING','replace','sheet','useRef','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','tryStartPresenting','fill','_status','registerInitialStateReporter','entries','_stopPresenting','createElement','onRendered','from','pluginName','getOwnPropertyDescriptor','mutations','reverse','merge','CollaborationEvent','send','svg','forEach','getValue','SAME_OPERATION_SHARE_INTERVAL','useEffect','LIVESHARE_NEW_HOST','setConfig','2097351AJnVjW','Plugin','unsubscribe','270034HGOwLm','add','UniverIcon','stringify','_uiPartsService','IConfigService','xlink:href','IDLE','rxjs/operators','Fragment','_commandService','getMemberID','_beIdle','@univerjs/core','_configService','stopPresenting','operations','_sharedOperations','react','stopFollowing','_handleTerminate','HEADER_MENU','LiveShareIcon','idSuffix','function','OFFLINE','_handleOffline','text','following','_startLiveShareCoordinator','div','pipe','get','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','Module','148CIyfai','params','Stop\x20following','Subject','_handleOnline','evenodd','FOLLOWING','IUniverInstanceService','LIVESHARE_FETCH_OPERATIONS','concat','asObservable','Start\x20following','univer-size-4','extend','_collabSessionService','CommandType','_mountLiveShare','assign','next','presenter','trim','displayName','executeCommand','startFollowing','_status$','BehaviorSubject','has','Inject','Dropdown','registerComponent','getTypeOfUnitAdded$','defIds'];_0x346f=function(){return _0x2460c7;};return _0x346f();}let E=class extends o['Disposable']{constructor(_0x7f42bf){var _0x35fa5a=_0x1c7aef;super(),this[_0x35fa5a(0x222)]=_0x7f42bf,this[_0x35fa5a(0x166)]();}[_0x1c7aef(0x166)](){var _0x52943e=_0x1c7aef;[w[_0x52943e(0x218)]['id'],w[_0x52943e(0x19e)]['id'],C['SetWorksheetActiveOperation']['id']][_0x52943e(0x1c8)](_0x2ecfda=>{var _0x3bacfb=_0x52943e;this[_0x3bacfb(0x233)](this[_0x3bacfb(0x222)][_0x3bacfb(0x228)](_0x2ecfda));});}};E=V([k(0x0,o[_0x1c7aef(0x20f)](O))],E);var u=function(){var _0x402ff7=_0x1c7aef;return u=Object[_0x402ff7(0x205)]||function(_0x5bbaa8){var _0x325587=_0x402ff7;for(var _0x3dac1d,_0x3a43c4=0x1,_0x2902b3=arguments[_0x325587(0x196)];_0x3a43c4<_0x2902b3;_0x3a43c4++){_0x3dac1d=arguments[_0x3a43c4];for(var _0x3f0746 in _0x3dac1d)Object[_0x325587(0x226)][_0x325587(0x215)][_0x325587(0x176)](_0x3dac1d,_0x3f0746)&&(_0x5bbaa8[_0x3f0746]=_0x3dac1d[_0x3f0746]);}return _0x5bbaa8;},u['apply'](this,arguments);},M=function(_0x389aba,_0x51f941){var _0xfdc11c=_0x1c7aef,_0x35f33c={};for(var _0x4ea113 in _0x389aba)Object[_0xfdc11c(0x226)][_0xfdc11c(0x215)]['call'](_0x389aba,_0x4ea113)&&_0x51f941['indexOf'](_0x4ea113)<0x0&&(_0x35f33c[_0x4ea113]=_0x389aba[_0x4ea113]);if(_0x389aba!=null&&typeof Object[_0xfdc11c(0x17c)]==_0xfdc11c(0x1e9)){for(var _0x7a69bc=0x0,_0x4ea113=Object[_0xfdc11c(0x17c)](_0x389aba);_0x7a69bc<_0x4ea113[_0xfdc11c(0x196)];_0x7a69bc++)_0x51f941[_0xfdc11c(0x1a3)](_0x4ea113[_0x7a69bc])<0x0&&Object[_0xfdc11c(0x226)]['propertyIsEnumerable'][_0xfdc11c(0x176)](_0x389aba,_0x4ea113[_0x7a69bc])&&(_0x35f33c[_0x4ea113[_0x7a69bc]]=_0x389aba[_0x4ea113[_0x7a69bc]]);}return _0x35f33c;},j=f[_0x1c7aef(0x190)](function(_0x195d5c,_0x37a02f){var _0x5c70fb=_0x1c7aef,_0x556b65=_0x195d5c['icon'],_0x2173ce=_0x195d5c['id'],_0x8074c7=_0x195d5c[_0x5c70fb(0x183)],_0x1f96cc=_0x195d5c[_0x5c70fb(0x201)],_0x13457c=M(_0x195d5c,['icon','id',_0x5c70fb(0x183),_0x5c70fb(0x201)]),_0x1cc442='univerjs-icon\x20univerjs-icon-'['concat'](_0x2173ce,'\x20')[_0x5c70fb(0x1fd)](_0x8074c7||'')[_0x5c70fb(0x208)](),_0x25805b=f[_0x5c70fb(0x1b5)]('_'[_0x5c70fb(0x1fd)](G()));return y(_0x556b65,''[_0x5c70fb(0x1fd)](_0x2173ce),{'defIds':_0x556b65['defIds'],'idSuffix':_0x25805b[_0x5c70fb(0x22d)]},u({'ref':_0x37a02f,'className':_0x1cc442},_0x13457c),_0x1f96cc);});function y(_0x3f4167,_0x4b355b,_0x2d4f61,_0x2e0f80,_0x3b4b9d){var _0x1618e0=_0x1c7aef;return f[_0x1618e0(0x1bd)](_0x3f4167[_0x1618e0(0x248)],u(u({'key':_0x4b355b},q(_0x3f4167,_0x2d4f61,_0x3b4b9d)),_0x2e0f80),(W(_0x3f4167,_0x2d4f61)[_0x1618e0(0x173)]||[])[_0x1618e0(0x195)](function(_0x4e6f00,_0x35fb1d){var _0x35846c=_0x1618e0;return y(_0x4e6f00,''[_0x35846c(0x1fd)](_0x4b355b,'-')[_0x35846c(0x1fd)](_0x3f4167[_0x35846c(0x248)],'-')[_0x35846c(0x1fd)](_0x35fb1d),_0x2d4f61,void 0x0,_0x3b4b9d);}));}function q(_0x9ee119,_0x219882,_0x3316e7){var _0x692bdc=_0x1c7aef,_0x6ff6fc=u({},_0x9ee119['attrs']);_0x3316e7!=null&&_0x3316e7[_0x692bdc(0x197)]&&_0x6ff6fc[_0x692bdc(0x1b8)]===_0x692bdc(0x197)&&(_0x6ff6fc[_0x692bdc(0x1b8)]=_0x3316e7['colorChannel1']),_0x9ee119[_0x692bdc(0x248)]===_0x692bdc(0x21c)&&_0x6ff6fc['id']&&(_0x6ff6fc['id']=_0x6ff6fc['id']+_0x219882['idSuffix']),Object[_0x692bdc(0x1bb)](_0x6ff6fc)[_0x692bdc(0x1c8)](function(_0x238fcf){var _0x4a0988=_0x692bdc,_0x5a2b74=_0x238fcf[0x0],_0x3b096e=_0x238fcf[0x1];_0x5a2b74==='mask'&&typeof _0x3b096e==_0x4a0988(0x235)&&(_0x6ff6fc[_0x5a2b74]=_0x3b096e[_0x4a0988(0x1b3)](/url\(#(.*)\)/,'url(#$1'[_0x4a0988(0x1fd)](_0x219882[_0x4a0988(0x1e8)],')')));});var _0x229ead=_0x219882[_0x692bdc(0x213)];return!_0x229ead||_0x229ead['length']===0x0||(_0x9ee119[_0x692bdc(0x248)]==='use'&&_0x6ff6fc[_0x692bdc(0x1d7)]&&(_0x6ff6fc[_0x692bdc(0x1d7)]=_0x6ff6fc[_0x692bdc(0x1d7)]+_0x219882[_0x692bdc(0x1e8)]),Object[_0x692bdc(0x1bb)](_0x6ff6fc)[_0x692bdc(0x1c8)](function(_0x11d439){var _0x245a4b=_0x692bdc,_0x11f5f3=_0x11d439[0x0],_0x54ae76=_0x11d439[0x1];typeof _0x54ae76==_0x245a4b(0x235)&&(_0x6ff6fc[_0x11f5f3]=_0x54ae76[_0x245a4b(0x1b3)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x219882[_0x245a4b(0x1e8)],')')));})),_0x6ff6fc;}function W(_0x5b3628,_0x54bc4a){var _0x1ce7e1=_0x1c7aef,_0x202505,_0xfa75ec=_0x54bc4a[_0x1ce7e1(0x213)];return!_0xfa75ec||_0xfa75ec[_0x1ce7e1(0x196)]===0x0?_0x5b3628:_0x5b3628[_0x1ce7e1(0x248)]===_0x1ce7e1(0x15d)&&(!((_0x202505=_0x5b3628['children'])===null||_0x202505===void 0x0)&&_0x202505[_0x1ce7e1(0x196)])?u(u({},_0x5b3628),{'children':_0x5b3628[_0x1ce7e1(0x173)][_0x1ce7e1(0x195)](function(_0x31513f){var _0x1a4da0=_0x1ce7e1;return typeof _0x31513f[_0x1a4da0(0x227)]['id']==_0x1a4da0(0x235)&&_0xfa75ec&&_0xfa75ec[_0x1a4da0(0x198)](_0x31513f[_0x1a4da0(0x227)]['id'])?u(u({},_0x31513f),{'attrs':u(u({},_0x31513f[_0x1a4da0(0x227)]),{'id':_0x31513f[_0x1a4da0(0x227)]['id']+_0x54bc4a[_0x1a4da0(0x1e8)]})}):_0x31513f;})}):_0x5b3628;}function G(){var _0x455900=_0x1c7aef;return Math['random']()[_0x455900(0x21b)](0x24)['substring'](0x2,0x8);}j['displayName']=_0x1c7aef(0x1d3);var B={'tag':_0x1c7aef(0x1c7),'attrs':{'xmlns':_0x1c7aef(0x1a0),'fill':_0x1c7aef(0x240),'viewBox':_0x1c7aef(0x214),'width':'1em','height':'1em'},'children':[{'tag':_0x1c7aef(0x237),'attrs':{'fill':'currentColor','d':_0x1c7aef(0x1f2)}},{'tag':_0x1c7aef(0x237),'attrs':{'fill':_0x1c7aef(0x239),'d':_0x1c7aef(0x21e),'fillRule':_0x1c7aef(0x1f9),'clipRule':'evenodd'}}]},P=f['forwardRef'](function(_0x4bdf19,_0x3a4f8a){var _0xca2c16=_0x1c7aef;return f[_0xca2c16(0x1bd)](j,Object[_0xca2c16(0x205)]({},_0x4bdf19,{'id':_0xca2c16(0x182),'ref':_0x3a4f8a,'icon':B}));});P[_0x1c7aef(0x209)]=_0x1c7aef(0x1e7);var Y=Object['getOwnPropertyDescriptor'],R=(_0x748fcd,_0x4a6504,_0x4a1425,_0x4bba3b)=>{var _0x28b5b1=_0x1c7aef;for(var _0x117e4f=_0x4bba3b>0x1?void 0x0:_0x4bba3b?Y(_0x4a6504,_0x4a1425):_0x4a6504,_0x230ec4=_0x748fcd[_0x28b5b1(0x196)]-0x1,_0xd81ca4;_0x230ec4>=0x0;_0x230ec4--)(_0xd81ca4=_0x748fcd[_0x230ec4])&&(_0x117e4f=_0xd81ca4(_0x117e4f)||_0x117e4f);return _0x117e4f;},S=(_0x3efae1,_0x40ce4c)=>(_0x389d4b,_0x556eee)=>_0x40ce4c(_0x389d4b,_0x556eee,_0x3efae1);exports['LiveShareController']=class extends o[_0x1c7aef(0x181)]{constructor(_0x34663f,_0x4c1f4c,_0x2b45ff){var _0x4e4b63=_0x1c7aef;super(),v(this,_0x4e4b63(0x167),new Map()),(this['_univerInstanceService']=_0x34663f,this['_injector']=_0x4c1f4c,this[_0x4e4b63(0x202)]=_0x2b45ff,this['_init']());}async[_0x1c7aef(0x174)](_0x5e4073){var _0x36e4f8=_0x1c7aef;return this[_0x36e4f8(0x167)]['has'](_0x5e4073)||await this[_0x36e4f8(0x1ee)](_0x5e4073),this[_0x36e4f8(0x167)][_0x36e4f8(0x1f1)](_0x5e4073);}[_0x1c7aef(0x166)](){var _0x58115e=_0x1c7aef;this[_0x58115e(0x17f)][_0x58115e(0x212)](o[_0x58115e(0x242)][_0x58115e(0x246)])[_0x58115e(0x1f0)](b[_0x58115e(0x165)](this['dispose$']))[_0x58115e(0x1ae)](async _0x2f1510=>{var _0x4f846d=_0x58115e;const _0x37dcda=_0x2f1510['getUnitId']();this[_0x4f846d(0x167)][_0x4f846d(0x20e)](_0x37dcda)||this['_startLiveShareCoordinator'](_0x37dcda);}),this['_univerInstanceService'][_0x58115e(0x178)](o[_0x58115e(0x242)]['UNIVER_SHEET'])[_0x58115e(0x1f0)](b['takeUntil'](this[_0x58115e(0x249)]))['subscribe'](_0x67c29c=>{var _0x1b74f6=_0x58115e;const _0x590ae5=_0x67c29c[_0x1b74f6(0x220)](),_0x9036ef=this[_0x1b74f6(0x167)][_0x1b74f6(0x1f1)](_0x590ae5);_0x9036ef==null||_0x9036ef[_0x1b74f6(0x16a)]();});}async[_0x1c7aef(0x1ee)](_0x5e7a82){var _0x3e1988=_0x1c7aef;const _0x38b9f7=await this['_collabSessionService'][_0x3e1988(0x16c)](_0x5e7a82),_0x470197=this[_0x3e1988(0x19a)][_0x3e1988(0x223)](exports[_0x3e1988(0x175)],_0x5e7a82,_0x38b9f7);return _0x470197[_0x3e1988(0x15c)](),this[_0x3e1988(0x167)][_0x3e1988(0x187)](_0x5e7a82,_0x470197),_0x470197;}},exports[_0x1c7aef(0x15a)]=R([S(0x0,o[_0x1c7aef(0x1fb)]),S(0x1,o['Inject'](o['Injector'])),S(0x2,o['Inject'](m['CollaborationSessionService']))],exports[_0x1c7aef(0x15a)]);var h=(_0x54d35f=>(_0x54d35f['OFFLINE']=_0x1c7aef(0x221),_0x54d35f[_0x1c7aef(0x1d8)]=_0x1c7aef(0x232),_0x54d35f[_0x1c7aef(0x1fa)]=_0x1c7aef(0x1ed),_0x54d35f[_0x1c7aef(0x22f)]=_0x1c7aef(0x234),_0x54d35f[_0x1c7aef(0x1b2)]=_0x1c7aef(0x163),_0x54d35f))(h||{});const Z=_0x1c7aef(0x1ca),J=0xc8;exports[_0x1c7aef(0x175)]=class extends o['RxDisposable']{constructor(_0x12306a,_0x28f695,_0xeb9a8d,_0x31bc05,_0x3ca580){var _0x2190bc=_0x1c7aef;super(),v(this,_0x2190bc(0x20c),new D[(_0x2190bc(0x20d))](_0x2190bc(0x232))),v(this,_0x2190bc(0x168),this[_0x2190bc(0x20c)][_0x2190bc(0x1fe)]()),v(this,'_init',!0x1),v(this,'_commandDisposable',null),v(this,_0x2190bc(0x185),null),(this['_unitID']=_0x12306a,this[_0x2190bc(0x229)]=_0x28f695,this[_0x2190bc(0x1df)]=_0xeb9a8d,this[_0x2190bc(0x222)]=_0x31bc05,this[_0x2190bc(0x1db)]=_0x3ca580);}get[_0x1c7aef(0x1b9)](){var _0x327b9d=_0x1c7aef;return this[_0x327b9d(0x20c)][_0x327b9d(0x1c9)]();}[_0x1c7aef(0x16a)](){var _0x3fe3b3=_0x1c7aef,_0x4cd886;(_0x4cd886=this[_0x3fe3b3(0x1ad)])==null||_0x4cd886[_0x3fe3b3(0x16a)](),this[_0x3fe3b3(0x20c)][_0x3fe3b3(0x206)](_0x3fe3b3(0x232)),this['_status$'][_0x3fe3b3(0x159)]();}['init'](){var _0x46359c=_0x1c7aef;this[_0x46359c(0x166)]||(this[_0x46359c(0x166)]=!0x0,this[_0x46359c(0x229)]['sessionStatus$'][_0x46359c(0x1f0)](b[_0x46359c(0x165)](this[_0x46359c(0x249)]))[_0x46359c(0x1ae)](_0x221ddb=>{var _0x72dbbc=_0x46359c;switch(_0x221ddb){case m[_0x72dbbc(0x22c)][_0x72dbbc(0x1ea)]:this['_handleOffline']();break;case m['SessionStatus'][_0x72dbbc(0x19b)]:this['_handleOnline']();break;}}),this[_0x46359c(0x229)][_0x46359c(0x1aa)][_0x46359c(0x1f0)](b[_0x46359c(0x165)](this[_0x46359c(0x249)]))['subscribe'](_0x1a1dc3=>{var _0xf94b8b=_0x46359c;const {eventID:_0x107062}=_0x1a1dc3;switch(_0x107062){case _['CollaborationEvent'][_0xf94b8b(0x1cc)]:this[_0xf94b8b(0x243)](_0x1a1dc3);break;case _[_0xf94b8b(0x1c5)][_0xf94b8b(0x21d)]:this[_0xf94b8b(0x1ab)](_0x1a1dc3);break;case _[_0xf94b8b(0x1c5)][_0xf94b8b(0x247)]:this[_0xf94b8b(0x1e5)]();break;case _[_0xf94b8b(0x1c5)][_0xf94b8b(0x22a)]:this[_0xf94b8b(0x18f)](_0x1a1dc3);break;}}));}[_0x1c7aef(0x1b7)](){var _0x5540e5=_0x1c7aef;this['_collabSession']['send']({'eventID':_[_0x5540e5(0x1c5)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x5540e5(0x184)],'userID':this[_0x5540e5(0x229)][_0x5540e5(0x1dc)]()}},this['_unitID']);}['stopPresenting'](){var _0x198217=_0x1c7aef;this['_status']==='presenting'&&(this[_0x198217(0x20c)][_0x198217(0x206)](_0x198217(0x232)),this['_collabSession']['send']({'eventID':_['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x198217(0x184)]}},this[_0x198217(0x184)]));}['startFollowing'](){var _0x311c3a=_0x1c7aef;this[_0x311c3a(0x1b9)]===_0x311c3a(0x234)&&(this[_0x311c3a(0x20c)][_0x311c3a(0x206)](_0x311c3a(0x1ed)),this['_startFollowing']());}[_0x1c7aef(0x1e4)](){var _0x51084b=_0x1c7aef;this['_status']===_0x51084b(0x1ed)&&this[_0x51084b(0x199)]();}[_0x1c7aef(0x243)](_0xdf7764){var _0x1e9093=_0x1c7aef;const {presenter:_0x2791cc}=_0xdf7764[_0x1e9093(0x23e)],_0x439db3=this[_0x1e9093(0x229)][_0x1e9093(0x1dc)]();this[_0x1e9093(0x185)]=_0x2791cc,_0x2791cc===_0x439db3?(this[_0x1e9093(0x199)](),this[_0x1e9093(0x170)]()):this['_status']!==_0x1e9093(0x234)&&(this[_0x1e9093(0x1bc)](),this['_startFollowing']());}[_0x1c7aef(0x160)](){var _0x3f60cd=_0x1c7aef;const _0x4c07cb={'eventID':_[_0x3f60cd(0x1c5)][_0x3f60cd(0x1fc)]};this[_0x3f60cd(0x229)]['send'](_0x4c07cb,this[_0x3f60cd(0x184)]);}[_0x1c7aef(0x1e5)](){var _0x14ef6f=_0x1c7aef;this[_0x14ef6f(0x185)]=null,this['_status']!==_0x14ef6f(0x163)&&this[_0x14ef6f(0x1dd)]();}[_0x1c7aef(0x18f)](_0x386a0e){var _0x1eac97=_0x1c7aef;if(this['_status']===_0x1eac97(0x1ed)&&this[_0x1eac97(0x185)]===_0x386a0e[_0x1eac97(0x23e)]['memberID']){const _0x4faae7=_[_0x1eac97(0x245)](_0x386a0e[_0x1eac97(0x23e)])[_0x1eac97(0x1c2)][_0x1eac97(0x1c3)]()[_0x1eac97(0x18a)](_0x3d7a51=>_0x3d7a51['id']===C[_0x1eac97(0x236)]['id']);if(_0x4faae7){const _0x220b0d=_0x4faae7[_0x1eac97(0x1f5)][_0x1eac97(0x18b)],_0x43b689=_0x4faae7['params'][_0x1eac97(0x1b4)]['id'];setTimeout(()=>{var _0x45b729=_0x1eac97;this[_0x45b729(0x1db)][_0x45b729(0x20a)](C[_0x45b729(0x17b)]['id'],{'unitId':_0x220b0d,'subUnitId':_0x43b689},{'fromCollab':!0x0});});}}}[_0x1c7aef(0x170)](){var _0x10cd79=_0x1c7aef;this[_0x10cd79(0x20c)]['next'](_0x10cd79(0x163));const _0x2b30a2=new Map(),_0x338f70=this[_0x10cd79(0x1ad)]=new o['DisposableCollection']();_0x338f70['add'](o[_0x10cd79(0x18c)](()=>{var _0x3bde54=_0x10cd79;_0x2b30a2[_0x3bde54(0x1c8)](_0x5ec77a=>_0x5ec77a[_0x3bde54(0x159)]()),_0x2b30a2[_0x3bde54(0x22e)]();})),_0x338f70[_0x10cd79(0x1d2)](this[_0x10cd79(0x1db)][_0x10cd79(0x219)](_0x4ae78=>{var _0x2614d9=_0x10cd79,_0x596014;if(_0x4ae78[_0x2614d9(0x1a6)]!==o[_0x2614d9(0x203)][_0x2614d9(0x18d)]||!this[_0x2614d9(0x222)][_0x2614d9(0x17a)](_0x4ae78['id']))return;const {id:_0x354da0}=_0x4ae78;let _0x39b576;_0x2b30a2[_0x2614d9(0x20e)](_0x354da0)?_0x39b576=_0x2b30a2[_0x2614d9(0x1f1)](_0x354da0):(_0x39b576=new D[(_0x2614d9(0x1f7))](),_0x2b30a2[_0x2614d9(0x187)](_0x354da0,_0x39b576),_0x39b576[_0x2614d9(0x1f0)](b['throttleTime']((_0x596014=this[_0x2614d9(0x1df)][_0x2614d9(0x15e)](Z))!=null?_0x596014:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x26d0ba=>{var _0x2c030a=_0x2614d9;this[_0x2c030a(0x229)][_0x2c030a(0x1c6)]({'eventID':_[_0x2c030a(0x1c5)][_0x2c030a(0x21d)],'data':{'unitID':this['_unitID'],'operations':{[_0x26d0ba['id']]:{'id':_0x26d0ba['id'],'params':JSON[_0x2c030a(0x1d4)](_0x26d0ba['params'])}}}},this['_unitID']);})),_0x39b576[_0x2614d9(0x206)](_0x4ae78);})),this['_liveShareService']['getInitialStates'](this[_0x10cd79(0x184)])[_0x10cd79(0x1c8)](_0xa66ac8=>this['_collabSession'][_0x10cd79(0x1c6)]({'eventID':_[_0x10cd79(0x1c5)][_0x10cd79(0x21d)],'data':{'unitID':this[_0x10cd79(0x184)],'operations':{[_0xa66ac8['id']]:{'id':_0xa66ac8['id'],'params':JSON['stringify'](_0xa66ac8[_0x10cd79(0x1f5)])}}}},this[_0x10cd79(0x184)]));}[_0x1c7aef(0x1bc)](){var _0x35b5e4=_0x1c7aef,_0x4578d4;this[_0x35b5e4(0x20c)][_0x35b5e4(0x206)](_0x35b5e4(0x232)),(_0x4578d4=this[_0x35b5e4(0x1ad)])==null||_0x4578d4[_0x35b5e4(0x16a)](),this[_0x35b5e4(0x1ad)]=null;}['_startFollowing'](){var _0x31f7e2=_0x1c7aef,_0x37cd2b;(_0x37cd2b=this['_commandDisposable'])==null||_0x37cd2b[_0x31f7e2(0x16a)](),this[_0x31f7e2(0x20c)][_0x31f7e2(0x206)](_0x31f7e2(0x1ed));}[_0x1c7aef(0x1dd)](){var _0x389795=_0x1c7aef,_0x3bf453;this[_0x389795(0x20c)][_0x389795(0x206)]('idle'),(_0x3bf453=this[_0x389795(0x1ad)])==null||_0x3bf453[_0x389795(0x16a)](),this[_0x389795(0x1ad)]=null;}[_0x1c7aef(0x199)](){var _0x108a66=_0x1c7aef,_0x979bd;this[_0x108a66(0x20c)][_0x108a66(0x206)](_0x108a66(0x234)),(_0x979bd=this[_0x108a66(0x1ad)])==null||_0x979bd[_0x108a66(0x16a)]();}['_handleOperation'](_0x1d5f6a){var _0x52a23b=_0x1c7aef;if(['presenting','not-following',_0x52a23b(0x221)][_0x52a23b(0x198)](this[_0x52a23b(0x1b9)])||!_0x1d5f6a[_0x52a23b(0x23e)][_0x52a23b(0x207)]||_0x1d5f6a[_0x52a23b(0x23e)][_0x52a23b(0x207)]===this[_0x52a23b(0x229)][_0x52a23b(0x1dc)]())return;this[_0x52a23b(0x1b9)]===_0x52a23b(0x232)&&this['_startFollowing']();const _0x23858e=_0x1d5f6a[_0x52a23b(0x23e)][_0x52a23b(0x1e1)];Object[_0x52a23b(0x224)](_0x23858e)['forEach'](_0xee3b79=>{var _0x13c6a3=_0x52a23b;this[_0x13c6a3(0x1db)]['executeCommand'](_0xee3b79['id'],_0xee3b79['params']?JSON[_0x13c6a3(0x171)](_0xee3b79[_0x13c6a3(0x1f5)]):null,{'fromCollab':!0x0});});}[_0x1c7aef(0x1eb)](){var _0x43a3f7=_0x1c7aef,_0x2f8e7b;this[_0x43a3f7(0x20c)]['next']('offline'),(_0x2f8e7b=this[_0x43a3f7(0x1ad)])==null||_0x2f8e7b['dispose']();}[_0x1c7aef(0x1f8)](){var _0x265455=_0x1c7aef;this[_0x265455(0x20c)]['next'](_0x265455(0x232)),this['_fetchOperations']();}},exports[_0x1c7aef(0x175)]=R([S(0x2,o[_0x1c7aef(0x1d6)]),S(0x3,o[_0x1c7aef(0x20f)](O)),S(0x4,o['ICommandService'])],exports[_0x1c7aef(0x175)]);function A(){var _0x3aefbf=_0x1c7aef;const _0x2c8ede=p[_0x3aefbf(0x1b0)](exports[_0x3aefbf(0x15a)]),_0x5c5f8a=p[_0x3aefbf(0x1b0)](o[_0x3aefbf(0x1fb)]),_0x3f5760=p[_0x3aefbf(0x23a)](()=>_0x5c5f8a[_0x3aefbf(0x172)](o[_0x3aefbf(0x242)][_0x3aefbf(0x246)]),void 0x0,!0x1,[]),[_0x157a88,_0x52f379]=f[_0x3aefbf(0x225)](null),[_0x3d366f,_0x497e04]=f[_0x3aefbf(0x225)](h['IDLE']),_0x527d10=f['useRef'](null);return f[_0x3aefbf(0x1cb)](()=>(_0x3f5760&&_0x2c8ede['getLiveShareCoordinator'](_0x3f5760[_0x3aefbf(0x220)]())[_0x3aefbf(0x189)](_0x407442=>{var _0x149430=_0x3aefbf;_0x52f379(_0x407442),_0x527d10['current']=_0x407442[_0x149430(0x168)]['subscribe'](_0x9800ba=>{_0x497e04(_0x9800ba);});}),()=>{var _0x469b92=_0x3aefbf,_0x24fdc8;(_0x24fdc8=_0x527d10[_0x469b92(0x22d)])==null||_0x24fdc8[_0x469b92(0x1d0)](),_0x527d10[_0x469b92(0x22d)]=null;}),[_0x3f5760,_0x2c8ede]),_0x157a88?l[_0x3aefbf(0x1a2)](g[_0x3aefbf(0x210)],{'align':'end','disabled':_0x3d366f===h[_0x3aefbf(0x1ea)],'className':_0x3aefbf(0x1b6),'overlay':l[_0x3aefbf(0x1a2)](K,{'status':_0x3d366f,'coordinator':_0x157a88}),'children':l[_0x3aefbf(0x1a2)](_0x3aefbf(0x16f),{'className':g[_0x3aefbf(0x23b)](_0x3aefbf(0x230),{'univer-cursor-not-allowed':_0x3d366f===h[_0x3aefbf(0x1ea)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3d366f!==h[_0x3aefbf(0x1ea)]}),'type':_0x3aefbf(0x16f),'children':l[_0x3aefbf(0x1a2)](P,{'className':_0x3aefbf(0x200)})})}):null;}function K(_0x406318){var _0x2d5b5a=_0x1c7aef;const {status:_0x598755,coordinator:_0x27b379}=_0x406318;switch(_0x598755){case h[_0x2d5b5a(0x1d8)]:return l[_0x2d5b5a(0x1a2)](z,{'coordinator':_0x27b379});case h['FOLLOWING']:return l[_0x2d5b5a(0x1a2)](Q,{'coordinator':_0x27b379});case h[_0x2d5b5a(0x22f)]:return l[_0x2d5b5a(0x1a2)](X,{'coordinator':_0x27b379});case h['OFFLINE']:return l[_0x2d5b5a(0x1a2)](te,{});case h['PRESENTING']:return l[_0x2d5b5a(0x1a2)](ee,{'coordinator':_0x27b379});default:return null;}}function z(_0x3daa88){var _0x53f2a2=_0x1c7aef;const {coordinator:_0x2a2794}=_0x3daa88;return l[_0x53f2a2(0x244)](l[_0x53f2a2(0x1da)],{'children':[l['jsx'](_0x53f2a2(0x1ef),{'className':_0x53f2a2(0x1a9),'children':'Present\x20this\x20document'}),l[_0x53f2a2(0x1a2)](g[_0x53f2a2(0x216)],{'onClick':()=>_0x2a2794[_0x53f2a2(0x1b7)](),'children':_0x53f2a2(0x231)})]});}function Q(_0x320a2e){var _0x37a8ea=_0x1c7aef;const {coordinator:_0xfb14d1}=_0x320a2e;return l['jsxs'](l[_0x37a8ea(0x1da)],{'children':[l['jsx'](_0x37a8ea(0x1ef),{'className':_0x37a8ea(0x1a9),'children':_0x37a8ea(0x15b)}),l[_0x37a8ea(0x1a2)](g[_0x37a8ea(0x216)],{'onClick':()=>_0xfb14d1[_0x37a8ea(0x1e4)](),'children':_0x37a8ea(0x1f6)})]});}function X(_0x3debcf){var _0x46a9be=_0x1c7aef;const {coordinator:_0x1bf378}=_0x3debcf;return l[_0x46a9be(0x244)](l['Fragment'],{'children':[l[_0x46a9be(0x1a2)](_0x46a9be(0x1ef),{'className':_0x46a9be(0x1a9),'children':_0x46a9be(0x23c)}),l[_0x46a9be(0x1a2)](g[_0x46a9be(0x216)],{'variant':_0x46a9be(0x1ec),'onClick':()=>_0x1bf378[_0x46a9be(0x20b)](),'children':_0x46a9be(0x1ff)})]});}function ee(_0xfadb34){var _0x63a67d=_0x1c7aef;const {coordinator:_0x3c8e20}=_0xfadb34;return l['jsxs'](l[_0x63a67d(0x1da)],{'children':[l[_0x63a67d(0x1a2)](_0x63a67d(0x1ef),{'className':_0x63a67d(0x1a9),'children':_0x63a67d(0x16b)}),l['jsx'](g[_0x63a67d(0x216)],{'variant':_0x63a67d(0x188),'onClick':()=>_0x3c8e20[_0x63a67d(0x1e0)](),'children':'Stop\x20presenting'})]});}function te(){var _0x3e4cbc=_0x1c7aef;return l[_0x3e4cbc(0x1a2)](l[_0x3e4cbc(0x1da)],{'children':_0x3e4cbc(0x15f)});}var ie=Object[_0x1c7aef(0x1c1)],ne=(_0x3d0b5f,_0x23e559,_0xf51f04,_0x1f3e5b)=>{var _0x2229e2=_0x1c7aef;for(var _0x30472e=_0x1f3e5b>0x1?void 0x0:_0x1f3e5b?ie(_0x23e559,_0xf51f04):_0x23e559,_0x5f46c5=_0x3d0b5f[_0x2229e2(0x196)]-0x1,_0x389b78;_0x5f46c5>=0x0;_0x5f46c5--)(_0x389b78=_0x3d0b5f[_0x5f46c5])&&(_0x30472e=_0x389b78(_0x30472e)||_0x30472e);return _0x30472e;},L=(_0x1a648f,_0x373f23)=>(_0x290c10,_0x4d04d7)=>_0x373f23(_0x290c10,_0x4d04d7,_0x1a648f);exports[_0x1c7aef(0x193)]=class extends o['Disposable']{constructor(_0x834d0d,_0x4ef12c){var _0x2f2791=_0x1c7aef;super(),this[_0x2f2791(0x19a)]=_0x834d0d,this[_0x2f2791(0x1d5)]=_0x4ef12c,this[_0x2f2791(0x204)]();}['_mountLiveShare'](){var _0x5495df=_0x1c7aef;this[_0x5495df(0x233)](this['_uiPartsService'][_0x5495df(0x211)](p[_0x5495df(0x17e)][_0x5495df(0x1e6)],()=>p[_0x5495df(0x162)](A,this[_0x5495df(0x19a)])));}},exports[_0x1c7aef(0x193)]=ne([L(0x0,o[_0x1c7aef(0x20f)](o[_0x1c7aef(0x16d)])),L(0x1,p['IUIPartsService'])],exports[_0x1c7aef(0x193)]);var re=Object[_0x1c7aef(0x19d)],se=Object[_0x1c7aef(0x1c1)],oe=(_0x4330b8,_0x38e3d2,_0x48113c)=>_0x38e3d2 in _0x4330b8?re(_0x4330b8,_0x38e3d2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48113c}):_0x4330b8[_0x38e3d2]=_0x48113c,ae=(_0x2198fb,_0x53b7d3,_0x132a28,_0x586ee3)=>{var _0x1164d3=_0x1c7aef;for(var _0x2190ff=_0x586ee3>0x1?void 0x0:_0x586ee3?se(_0x53b7d3,_0x132a28):_0x53b7d3,_0x152662=_0x2198fb[_0x1164d3(0x196)]-0x1,_0x45ca16;_0x152662>=0x0;_0x152662--)(_0x45ca16=_0x2198fb[_0x152662])&&(_0x2190ff=_0x45ca16(_0x2190ff)||_0x2190ff);return _0x2190ff;},N=(_0x45b303,_0x149971)=>(_0x59c3af,_0x3fbdeb)=>_0x149971(_0x59c3af,_0x3fbdeb,_0x45b303),T=(_0xdde970,_0xe29de4,_0x3a6b15)=>oe(_0xdde970,typeof _0xe29de4!=_0x1c7aef(0x186)?_0xe29de4+'':_0xe29de4,_0x3a6b15);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x1c7aef(0x1a5)]=class extends o[_0x1c7aef(0x1cf)]{constructor(_0x16dca1=x,_0x45ced8,_0x2e5399){var _0x4dacf0=_0x1c7aef;super(),this[_0x4dacf0(0x241)]=_0x16dca1,this[_0x4dacf0(0x19a)]=_0x45ced8,this[_0x4dacf0(0x1df)]=_0x2e5399;const {..._0xca37cc}=o[_0x4dacf0(0x1c4)]({},x,this['_config']);this[_0x4dacf0(0x1df)][_0x4dacf0(0x1cd)]($,_0xca37cc);}[_0x1c7aef(0x21f)](){var _0x1eac89=_0x1c7aef;o['registerDependencies'](this['_injector'],o[_0x1eac89(0x17d)]([[O],[exports[_0x1eac89(0x15a)]],[E],[exports[_0x1eac89(0x193)]]],this[_0x1eac89(0x241)][_0x1eac89(0x22b)])),o[_0x1eac89(0x1af)](this[_0x1eac89(0x19a)],[[E]]);}[_0x1c7aef(0x1be)](){var _0x126f28=_0x1c7aef;o[_0x126f28(0x1af)](this[_0x126f28(0x19a)],[[exports[_0x126f28(0x193)]]]);}},T(exports[_0x1c7aef(0x1a5)],_0x1c7aef(0x1a6),o[_0x1c7aef(0x242)][_0x1c7aef(0x238)]),T(exports[_0x1c7aef(0x1a5)],_0x1c7aef(0x1c0),le),exports['UniverLiveSharePlugin']=ae([o['DependentOn'](m[_0x1c7aef(0x217)]),N(0x1,o['Inject'](o[_0x1c7aef(0x16d)])),N(0x2,o[_0x1c7aef(0x1d6)])],exports[_0x1c7aef(0x1a5)]),exports[_0x1c7aef(0x1b1)]=A,exports['LiveShareService']=O,exports['LiveShareStatus']=h;
|
|
1
|
+
'use strict';var _0x560ecb=_0x57b5;(function(_0x3f790e,_0x10f5a6){var _0x5d8f14=_0x57b5,_0x7db92c=_0x3f790e();while(!![]){try{var _0x29ea3c=-parseInt(_0x5d8f14(0x128))/0x1+-parseInt(_0x5d8f14(0x180))/0x2+-parseInt(_0x5d8f14(0x17b))/0x3*(-parseInt(_0x5d8f14(0x136))/0x4)+parseInt(_0x5d8f14(0xd9))/0x5+-parseInt(_0x5d8f14(0x1a6))/0x6*(parseInt(_0x5d8f14(0x107))/0x7)+parseInt(_0x5d8f14(0xca))/0x8+-parseInt(_0x5d8f14(0x105))/0x9;if(_0x29ea3c===_0x10f5a6)break;else _0x7db92c['push'](_0x7db92c['shift']());}catch(_0x5e57a6){_0x7db92c['push'](_0x7db92c['shift']());}}}(_0xcf91,0xbb01d));var U=Object[_0x560ecb(0x104)],F=(_0x258a4c,_0x9fbc5,_0x21a7dd)=>_0x9fbc5 in _0x258a4c?U(_0x258a4c,_0x9fbc5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21a7dd}):_0x258a4c[_0x9fbc5]=_0x21a7dd,v=(_0x5ce77b,_0x53b3ae,_0x10a446)=>F(_0x5ce77b,typeof _0x53b3ae!=_0x560ecb(0xf7)?_0x53b3ae+'':_0x53b3ae,_0x10a446);function _0x57b5(_0x62a3f5,_0x1a9e9e){var _0xcf9105=_0xcf91();return _0x57b5=function(_0x57b5ec,_0x2599a6){_0x57b5ec=_0x57b5ec-0xc3;var _0x1e38e6=_0xcf9105[_0x57b5ec];return _0x1e38e6;},_0x57b5(_0x62a3f5,_0x1a9e9e);}Object[_0x560ecb(0x104)](exports,Symbol[_0x560ecb(0xf9)],{'value':_0x560ecb(0x12c)});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require(_0x560ecb(0x155)),w=require(_0x560ecb(0xde)),p=require(_0x560ecb(0x1a0)),l=require(_0x560ecb(0xfb)),g=require(_0x560ecb(0x15b)),f=require(_0x560ecb(0xdb)),_=require(_0x560ecb(0x1ad)),D=require('rxjs'),b=require(_0x560ecb(0xf8)),$=_0x560ecb(0xeb),x={};class O extends o[_0x560ecb(0x178)]{constructor(){var _0x4f027d=_0x560ecb;super(...arguments),v(this,_0x4f027d(0xd0),new Set()),v(this,'_reporters',new Set());}[_0x560ecb(0x16e)](_0x1222a2){var _0x549cf0=_0x560ecb;return this[_0x549cf0(0xd0)][_0x549cf0(0x133)](_0x1222a2),o['toDisposable'](()=>this[_0x549cf0(0xd0)]['delete'](_0x1222a2));}[_0x560ecb(0x160)](_0x4866ed){var _0x114efb=_0x560ecb;return this['_reporters'][_0x114efb(0x133)](_0x4866ed),o[_0x114efb(0x1ab)](()=>this[_0x114efb(0x172)][_0x114efb(0x108)](_0x4866ed));}[_0x560ecb(0xf4)](_0xfbb471){var _0x532ba6=_0x560ecb;return this[_0x532ba6(0xd0)][_0x532ba6(0x174)](_0xfbb471);}[_0x560ecb(0x129)](_0x429c5e){var _0x417494=_0x560ecb;return Array['from'](this[_0x417494(0x172)])[_0x417494(0xe5)](_0x23a64e=>_0x23a64e(_0x429c5e));}}var H=Object[_0x560ecb(0x154)],V=(_0x28c7aa,_0x4453c4,_0xaebe9d,_0x5da6e1)=>{var _0x50e7f8=_0x560ecb;for(var _0x255de6=_0x5da6e1>0x1?void 0x0:_0x5da6e1?H(_0x4453c4,_0xaebe9d):_0x4453c4,_0x13c4a0=_0x28c7aa[_0x50e7f8(0x188)]-0x1,_0x46895c;_0x13c4a0>=0x0;_0x13c4a0--)(_0x46895c=_0x28c7aa[_0x13c4a0])&&(_0x255de6=_0x46895c(_0x255de6)||_0x255de6);return _0x255de6;},k=(_0x52283e,_0x49ac04)=>(_0x1f4f79,_0x51b0d0)=>_0x49ac04(_0x1f4f79,_0x51b0d0,_0x52283e);let E=class extends o[_0x560ecb(0x178)]{constructor(_0xf78092){var _0x1c8fd5=_0x560ecb;super(),this['_liveShareService']=_0xf78092,this[_0x1c8fd5(0x144)]();}['_init'](){var _0x3c329a=_0x560ecb;[w[_0x3c329a(0xef)]['id'],w[_0x3c329a(0x189)]['id'],C[_0x3c329a(0x10f)]['id']]['forEach'](_0x107395=>{var _0x2de4e0=_0x3c329a;this[_0x2de4e0(0x119)](this[_0x2de4e0(0x139)][_0x2de4e0(0x16e)](_0x107395));});}};function _0xcf91(){var _0x31f494=['Module','reverse','Subject','FOLLOWING','_handleNewHost','onStarting','init','add','RxDisposable','LIVESHARE_OPERATION','20236zDYRgd','SessionStatus','default','_liveShareService','apply','jsxs','connectInjector','_uiPartsService','univer-mb-3\x20univer-w-full\x20univer-text-sm','_stopFollowing','event$','You\x27are\x20offline.','then','_startLiveShareCoordinator','_init','_status$','get','status$','override','text','NOT_FOLLOWING','indexOf','stringify','IDLE','_collabSession','not-following','Plugin','univerjs-icon\x20univerjs-icon-','touchDependencies','IUniverInstanceService','getOwnPropertyDescriptor','@univerjs/sheets','path','_beIdle','_injector','CommandType','stopFollowing','@univerjs/design','end','find','assign','_handleOperation','registerInitialStateReporter','takeUntil','operations','complete','unitId','Dropdown','prototype','SAME_OPERATION_SHARE_INTERVAL','getTypeOfUnitDisposed$','following','dispose','LIVESHARE_REQUEST_HOST','presenting','ONLINE','registerSharedOperation','LiveShareStatus','none','useDependency','_reporters','asObservable','has','HEADER_MENU','_univerInstanceService','stopPresenting','Disposable','_presenter','OFFLINE','573sOjWuj','createElement','dispose$','getLiveShareCoordinator','concat','702652BmeBvg','useState','_commandDisposable','div','getCurrentTypeOfUnit$','trim','toString','getOwnPropertySymbols','length','SetScrollOperation','next','jsx','function','children','UNIVER_UNKNOWN','_configService','parse','icon','createInstance','getMemberID','includes','UNIVER_SHEET','extend','sheet','LIVESHARE_TERMINATE','univer-size-4','attrs','defIds','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','pipe','getUnitId','UNIVER_LIVE_SHARE_PLUGIN','@univerjs/ui','You\x27re\x20not\x20following\x20the\x20presenter','LiveShareService','_stopPresenting','requireSession','use','170754bcLfCb','propertyIsEnumerable','idSuffix','string','You\x27re\x20presenting\x20the\x20document','toDisposable','mask','@univerjs-pro/collaboration','defs','useRef','Injector','forEach','currentColor','presenter','Button','10404728WJViRC','displayName','_handleNewChangeSets','idle','offline','onRendered','_sharedOperations','registerComponent','svg','IUIPartsService','set','LiveShare','entries','type','_handleOnline','7451670QIxcFO','_status','react','BehaviorSubject','getTypeOfUnitAdded$','@univerjs/sheets-ui','_handleTerminate','_handleOffline','sessionStatus$','subscribe','getConfig','className','map','tag','executeCommand','_startFollowing','NEW_CHANGESETS','UniverInstanceType','live-share.config','throttleTime','Start\x20following','BuiltInUIPart','SetZoomRatioOperation','DisposableCollection','params','DesktopLiveShareController','OPERATION','shouldShareOperation','data','DependentOn','symbol','rxjs/operators','toStringTag','UniverLiveSharePlugin','react/jsx-runtime','hasOwnProperty','forwardRef','_commandService','button','_collabSessionService','tryStartPresenting','_mountLiveShare','current','defineProperty','1907667gAwQhO','ICommandService','336hkaQYq','delete','Present\x20this\x20document','startFollowing','_config','getValue','Fragment','evenodd','SetWorksheetActiveOperation','substring','IConfigService','_entities','fill','random','_fetchOperations','send','LiveShareController','xlink:href','disposeWithMe','_unitID','PRESENTING','CollaborationEvent','LiveShareCoordinator','memberID','unsubscribe','colorChannel1','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','values','call','0\x200\x2017\x2017','Inject','clsx','useObservable','1061892uSFyiQ','getInitialStates','onCommandExecuted','_startPresenting'];_0xcf91=function(){return _0x31f494;};return _0xcf91();}E=V([k(0x0,o['Inject'](O))],E);var u=function(){var _0x211c35=_0x560ecb;return u=Object[_0x211c35(0x15e)]||function(_0x4efe21){var _0x683512=_0x211c35;for(var _0x59ee19,_0x51e111=0x1,_0x4df6a1=arguments[_0x683512(0x188)];_0x51e111<_0x4df6a1;_0x51e111++){_0x59ee19=arguments[_0x51e111];for(var _0x23482 in _0x59ee19)Object[_0x683512(0x166)]['hasOwnProperty'][_0x683512(0x123)](_0x59ee19,_0x23482)&&(_0x4efe21[_0x23482]=_0x59ee19[_0x23482]);}return _0x4efe21;},u[_0x211c35(0x13a)](this,arguments);},M=function(_0x4c3492,_0x8f3ce7){var _0x516bcc=_0x560ecb,_0x2dc60b={};for(var _0xa1d4ec in _0x4c3492)Object['prototype'][_0x516bcc(0xfc)]['call'](_0x4c3492,_0xa1d4ec)&&_0x8f3ce7[_0x516bcc(0x14b)](_0xa1d4ec)<0x0&&(_0x2dc60b[_0xa1d4ec]=_0x4c3492[_0xa1d4ec]);if(_0x4c3492!=null&&typeof Object[_0x516bcc(0x187)]==_0x516bcc(0x18c)){for(var _0x2c41d9=0x0,_0xa1d4ec=Object[_0x516bcc(0x187)](_0x4c3492);_0x2c41d9<_0xa1d4ec['length'];_0x2c41d9++)_0x8f3ce7[_0x516bcc(0x14b)](_0xa1d4ec[_0x2c41d9])<0x0&&Object[_0x516bcc(0x166)][_0x516bcc(0x1a7)][_0x516bcc(0x123)](_0x4c3492,_0xa1d4ec[_0x2c41d9])&&(_0x2dc60b[_0xa1d4ec[_0x2c41d9]]=_0x4c3492[_0xa1d4ec[_0x2c41d9]]);}return _0x2dc60b;},j=f[_0x560ecb(0xfd)](function(_0xa58e32,_0x1fbcbf){var _0x44949d=_0x560ecb,_0x134f26=_0xa58e32[_0x44949d(0x191)],_0x2e90a8=_0xa58e32['id'],_0x4ea150=_0xa58e32['className'],_0x23623c=_0xa58e32[_0x44949d(0x196)],_0x250047=M(_0xa58e32,[_0x44949d(0x191),'id',_0x44949d(0xe4),_0x44949d(0x196)]),_0x2945ef=_0x44949d(0x151)['concat'](_0x2e90a8,'\x20')[_0x44949d(0x17f)](_0x4ea150||'')[_0x44949d(0x185)](),_0x2b2bc3=f['useRef']('_'['concat'](G()));return y(_0x134f26,''['concat'](_0x2e90a8),{'defIds':_0x134f26[_0x44949d(0x19b)],'idSuffix':_0x2b2bc3['current']},u({'ref':_0x1fbcbf,'className':_0x2945ef},_0x250047),_0x23623c);});function y(_0x358b00,_0x4b4922,_0x1a5ed4,_0xd38720,_0x15109a){var _0x477e42=_0x560ecb;return f[_0x477e42(0x17c)](_0x358b00[_0x477e42(0xe6)],u(u({'key':_0x4b4922},q(_0x358b00,_0x1a5ed4,_0x15109a)),_0xd38720),(W(_0x358b00,_0x1a5ed4)['children']||[])[_0x477e42(0xe5)](function(_0x5ac0a6,_0x27a5c1){var _0x3028c3=_0x477e42;return y(_0x5ac0a6,''['concat'](_0x4b4922,'-')[_0x3028c3(0x17f)](_0x358b00[_0x3028c3(0xe6)],'-')[_0x3028c3(0x17f)](_0x27a5c1),_0x1a5ed4,void 0x0,_0x15109a);}));}function q(_0xdc4aa3,_0x2d316d,_0x272e78){var _0x3b4668=_0x560ecb,_0x49208c=u({},_0xdc4aa3['attrs']);_0x272e78!=null&&_0x272e78['colorChannel1']&&_0x49208c[_0x3b4668(0x113)]===_0x3b4668(0x120)&&(_0x49208c[_0x3b4668(0x113)]=_0x272e78['colorChannel1']),_0xdc4aa3[_0x3b4668(0xe6)]===_0x3b4668(0x1ac)&&_0x49208c['id']&&(_0x49208c['id']=_0x49208c['id']+_0x2d316d[_0x3b4668(0x1a8)]),Object[_0x3b4668(0xd6)](_0x49208c)[_0x3b4668(0xc6)](function(_0xb16b81){var _0x5542e5=_0x3b4668,_0x586222=_0xb16b81[0x0],_0x49fa4f=_0xb16b81[0x1];_0x586222===_0x5542e5(0x1ac)&&typeof _0x49fa4f==_0x5542e5(0x1a9)&&(_0x49208c[_0x586222]=_0x49fa4f['replace'](/url\(#(.*)\)/,'url(#$1'[_0x5542e5(0x17f)](_0x2d316d['idSuffix'],')')));});var _0x3c93e1=_0x2d316d['defIds'];return!_0x3c93e1||_0x3c93e1[_0x3b4668(0x188)]===0x0||(_0xdc4aa3['tag']===_0x3b4668(0x1a5)&&_0x49208c[_0x3b4668(0x118)]&&(_0x49208c[_0x3b4668(0x118)]=_0x49208c['xlink:href']+_0x2d316d['idSuffix']),Object[_0x3b4668(0xd6)](_0x49208c)[_0x3b4668(0xc6)](function(_0x49ee37){var _0x5cebce=_0x3b4668,_0x59a5c6=_0x49ee37[0x0],_0x40f67f=_0x49ee37[0x1];typeof _0x40f67f=='string'&&(_0x49208c[_0x59a5c6]=_0x40f67f['replace'](/url\(#(.*)\)/,'url(#$1'[_0x5cebce(0x17f)](_0x2d316d[_0x5cebce(0x1a8)],')')));})),_0x49208c;}function W(_0x5541c6,_0x5b9892){var _0x392fb8=_0x560ecb,_0x5831a6,_0x157066=_0x5b9892[_0x392fb8(0x19b)];return!_0x157066||_0x157066[_0x392fb8(0x188)]===0x0?_0x5541c6:_0x5541c6[_0x392fb8(0xe6)]===_0x392fb8(0xc3)&&(!((_0x5831a6=_0x5541c6[_0x392fb8(0x18d)])===null||_0x5831a6===void 0x0)&&_0x5831a6[_0x392fb8(0x188)])?u(u({},_0x5541c6),{'children':_0x5541c6[_0x392fb8(0x18d)][_0x392fb8(0xe5)](function(_0x312092){var _0x11dcbf=_0x392fb8;return typeof _0x312092[_0x11dcbf(0x19a)]['id']==_0x11dcbf(0x1a9)&&_0x157066&&_0x157066[_0x11dcbf(0x194)](_0x312092[_0x11dcbf(0x19a)]['id'])?u(u({},_0x312092),{'attrs':u(u({},_0x312092[_0x11dcbf(0x19a)]),{'id':_0x312092[_0x11dcbf(0x19a)]['id']+_0x5b9892[_0x11dcbf(0x1a8)]})}):_0x312092;})}):_0x5541c6;}function G(){var _0x30ebcc=_0x560ecb;return Math[_0x30ebcc(0x114)]()[_0x30ebcc(0x186)](0x24)[_0x30ebcc(0x110)](0x2,0x8);}j['displayName']='UniverIcon';var B={'tag':_0x560ecb(0xd2),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x560ecb(0x170),'viewBox':_0x560ecb(0x124),'width':'1em','height':'1em'},'children':[{'tag':_0x560ecb(0x156),'attrs':{'fill':_0x560ecb(0xc7),'d':_0x560ecb(0x19c)}},{'tag':_0x560ecb(0x156),'attrs':{'fill':_0x560ecb(0xc7),'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':_0x560ecb(0x10e),'clipRule':_0x560ecb(0x10e)}}]},P=f[_0x560ecb(0xfd)](function(_0x2cd857,_0x5557f9){var _0x1b35f3=_0x560ecb;return f[_0x1b35f3(0x17c)](j,Object[_0x1b35f3(0x15e)]({},_0x2cd857,{'id':'live-share-icon','ref':_0x5557f9,'icon':B}));});P[_0x560ecb(0xcb)]='LiveShareIcon';var Y=Object['getOwnPropertyDescriptor'],R=(_0xb40903,_0x438f22,_0x160435,_0x213076)=>{var _0x519bed=_0x560ecb;for(var _0x322ace=_0x213076>0x1?void 0x0:_0x213076?Y(_0x438f22,_0x160435):_0x438f22,_0x4c7c6f=_0xb40903[_0x519bed(0x188)]-0x1,_0x3a295f;_0x4c7c6f>=0x0;_0x4c7c6f--)(_0x3a295f=_0xb40903[_0x4c7c6f])&&(_0x322ace=_0x3a295f(_0x322ace)||_0x322ace);return _0x322ace;},S=(_0x10b7c6,_0x777483)=>(_0x6f0404,_0x479935)=>_0x777483(_0x6f0404,_0x479935,_0x10b7c6);exports[_0x560ecb(0x117)]=class extends o[_0x560ecb(0x134)]{constructor(_0x7b878d,_0x3403b8,_0x4a14b1){var _0x3d20e8=_0x560ecb;super(),v(this,_0x3d20e8(0x112),new Map()),(this[_0x3d20e8(0x176)]=_0x7b878d,this[_0x3d20e8(0x158)]=_0x3403b8,this['_collabSessionService']=_0x4a14b1,this[_0x3d20e8(0x144)]());}async[_0x560ecb(0x17e)](_0x58c66d){var _0x5e60a2=_0x560ecb;return this['_entities'][_0x5e60a2(0x174)](_0x58c66d)||await this[_0x5e60a2(0x143)](_0x58c66d),this['_entities'][_0x5e60a2(0x146)](_0x58c66d);}['_init'](){var _0x29cce3=_0x560ecb;this[_0x29cce3(0x176)][_0x29cce3(0xdd)](o[_0x29cce3(0xea)][_0x29cce3(0x195)])[_0x29cce3(0x19d)](b[_0x29cce3(0x161)](this['dispose$']))[_0x29cce3(0xe2)](async _0xf5b103=>{var _0x13b4ce=_0x29cce3;const _0x466ba4=_0xf5b103[_0x13b4ce(0x19e)]();this[_0x13b4ce(0x112)]['has'](_0x466ba4)||this['_startLiveShareCoordinator'](_0x466ba4);}),this[_0x29cce3(0x176)][_0x29cce3(0x168)](o[_0x29cce3(0xea)]['UNIVER_SHEET'])[_0x29cce3(0x19d)](b['takeUntil'](this['dispose$']))[_0x29cce3(0xe2)](_0x1ece1f=>{var _0x27d33f=_0x29cce3;const _0x3b04c9=_0x1ece1f[_0x27d33f(0x19e)](),_0x5d37d9=this[_0x27d33f(0x112)][_0x27d33f(0x146)](_0x3b04c9);_0x5d37d9==null||_0x5d37d9['dispose']();});}async['_startLiveShareCoordinator'](_0x4c7f35){var _0x4256d7=_0x560ecb;const _0x37768c=await this[_0x4256d7(0x100)][_0x4256d7(0x1a4)](_0x4c7f35),_0x54449d=this[_0x4256d7(0x158)][_0x4256d7(0x192)](exports[_0x4256d7(0x11d)],_0x4c7f35,_0x37768c);return _0x54449d[_0x4256d7(0x132)](),this[_0x4256d7(0x112)][_0x4256d7(0xd4)](_0x4c7f35,_0x54449d),_0x54449d;}},exports['LiveShareController']=R([S(0x0,o[_0x560ecb(0x153)]),S(0x1,o[_0x560ecb(0x125)](o[_0x560ecb(0xc5)])),S(0x2,o[_0x560ecb(0x125)](m['CollaborationSessionService']))],exports[_0x560ecb(0x117)]);var h=(_0x301273=>(_0x301273[_0x560ecb(0x17a)]='offline',_0x301273[_0x560ecb(0x14d)]=_0x560ecb(0xcd),_0x301273[_0x560ecb(0x12f)]=_0x560ecb(0x169),_0x301273[_0x560ecb(0x14a)]=_0x560ecb(0x14f),_0x301273[_0x560ecb(0x11b)]=_0x560ecb(0x16c),_0x301273))(h||{});const Z=_0x560ecb(0x167),J=0xc8;exports[_0x560ecb(0x11d)]=class extends o['RxDisposable']{constructor(_0x5cc370,_0x114788,_0xccc3fb,_0x530d76,_0x3e32c8){var _0xd3a260=_0x560ecb;super(),v(this,_0xd3a260(0x145),new D[(_0xd3a260(0xdc))](_0xd3a260(0xcd))),v(this,'status$',this[_0xd3a260(0x145)][_0xd3a260(0x173)]()),v(this,_0xd3a260(0x144),!0x1),v(this,'_commandDisposable',null),v(this,_0xd3a260(0x179),null),(this[_0xd3a260(0x11a)]=_0x5cc370,this[_0xd3a260(0x14e)]=_0x114788,this[_0xd3a260(0x18f)]=_0xccc3fb,this['_liveShareService']=_0x530d76,this[_0xd3a260(0xfe)]=_0x3e32c8);}get['_status'](){var _0x3221b9=_0x560ecb;return this[_0x3221b9(0x145)][_0x3221b9(0x10c)]();}[_0x560ecb(0x16a)](){var _0x2ed1de=_0x560ecb,_0x114499;(_0x114499=this[_0x2ed1de(0x182)])==null||_0x114499['dispose'](),this[_0x2ed1de(0x145)]['next'](_0x2ed1de(0xcd)),this['_status$'][_0x2ed1de(0x163)]();}[_0x560ecb(0x132)](){var _0x4c9371=_0x560ecb;this[_0x4c9371(0x144)]||(this[_0x4c9371(0x144)]=!0x0,this[_0x4c9371(0x14e)][_0x4c9371(0xe1)][_0x4c9371(0x19d)](b[_0x4c9371(0x161)](this[_0x4c9371(0x17d)]))[_0x4c9371(0xe2)](_0x4c9d6d=>{var _0x193223=_0x4c9371;switch(_0x4c9d6d){case m[_0x193223(0x137)][_0x193223(0x17a)]:this['_handleOffline']();break;case m[_0x193223(0x137)][_0x193223(0x16d)]:this[_0x193223(0xd8)]();break;}}),this['_collabSession'][_0x4c9371(0x140)][_0x4c9371(0x19d)](b[_0x4c9371(0x161)](this['dispose$']))['subscribe'](_0x52c93c=>{var _0x5656e8=_0x4c9371;const {eventID:_0x18ac2a}=_0x52c93c;switch(_0x18ac2a){case _[_0x5656e8(0x11c)]['LIVESHARE_NEW_HOST']:this[_0x5656e8(0x130)](_0x52c93c);break;case _[_0x5656e8(0x11c)][_0x5656e8(0x135)]:this[_0x5656e8(0x15f)](_0x52c93c);break;case _['CollaborationEvent'][_0x5656e8(0x198)]:this[_0x5656e8(0xdf)]();break;case _[_0x5656e8(0x11c)][_0x5656e8(0xe9)]:this[_0x5656e8(0xcc)](_0x52c93c);break;}}));}[_0x560ecb(0x101)](){var _0x4a8913=_0x560ecb;this[_0x4a8913(0x14e)]['send']({'eventID':_[_0x4a8913(0x11c)][_0x4a8913(0x16b)],'data':{'unitID':this['_unitID'],'userID':this[_0x4a8913(0x14e)][_0x4a8913(0x193)]()}},this[_0x4a8913(0x11a)]);}[_0x560ecb(0x177)](){var _0x4b6ffa=_0x560ecb;this[_0x4b6ffa(0xda)]===_0x4b6ffa(0x16c)&&(this[_0x4b6ffa(0x145)][_0x4b6ffa(0x18a)](_0x4b6ffa(0xcd)),this['_collabSession'][_0x4b6ffa(0x116)]({'eventID':_[_0x4b6ffa(0x11c)][_0x4b6ffa(0x198)],'data':{'unitID':this[_0x4b6ffa(0x11a)]}},this['_unitID']));}[_0x560ecb(0x10a)](){var _0x5a23be=_0x560ecb;this['_status']===_0x5a23be(0x14f)&&(this[_0x5a23be(0x145)][_0x5a23be(0x18a)](_0x5a23be(0x169)),this['_startFollowing']());}[_0x560ecb(0x15a)](){var _0x1e4e42=_0x560ecb;this['_status']===_0x1e4e42(0x169)&&this['_stopFollowing']();}[_0x560ecb(0x130)](_0x1d9cca){var _0x259a70=_0x560ecb;const {presenter:_0x47d276}=_0x1d9cca[_0x259a70(0xf5)],_0x3d4b98=this[_0x259a70(0x14e)][_0x259a70(0x193)]();this[_0x259a70(0x179)]=_0x47d276,_0x47d276===_0x3d4b98?(this[_0x259a70(0x13f)](),this[_0x259a70(0x12b)]()):this['_status']!==_0x259a70(0x14f)&&(this[_0x259a70(0x1a3)](),this[_0x259a70(0xe8)]());}['_fetchOperations'](){var _0x1913f4=_0x560ecb;const _0x8ffd99={'eventID':_[_0x1913f4(0x11c)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x1913f4(0x14e)][_0x1913f4(0x116)](_0x8ffd99,this[_0x1913f4(0x11a)]);}['_handleTerminate'](){var _0x146fdf=_0x560ecb;this[_0x146fdf(0x179)]=null,this[_0x146fdf(0xda)]!==_0x146fdf(0x16c)&&this[_0x146fdf(0x157)]();}[_0x560ecb(0xcc)](_0x39bff2){var _0x16d2f0=_0x560ecb;if(this[_0x16d2f0(0xda)]===_0x16d2f0(0x169)&&this[_0x16d2f0(0x179)]===_0x39bff2['data'][_0x16d2f0(0x11e)]){const _0x5824a7=_['parseProtocolChangeset'](_0x39bff2['data'])['mutations'][_0x16d2f0(0x12d)]()[_0x16d2f0(0x15d)](_0x12eaff=>_0x12eaff['id']===C['InsertSheetMutation']['id']);if(_0x5824a7){const _0x15b274=_0x5824a7['params'][_0x16d2f0(0x164)],_0x2e7051=_0x5824a7[_0x16d2f0(0xf1)][_0x16d2f0(0x197)]['id'];setTimeout(()=>{var _0x83efac=_0x16d2f0;this[_0x83efac(0xfe)][_0x83efac(0xe7)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x15b274,'subUnitId':_0x2e7051},{'fromCollab':!0x0});});}}}[_0x560ecb(0x12b)](){var _0x358f1d=_0x560ecb;this[_0x358f1d(0x145)]['next'](_0x358f1d(0x16c));const _0x1d0782=new Map(),_0x22f761=this['_commandDisposable']=new o[(_0x358f1d(0xf0))]();_0x22f761['add'](o[_0x358f1d(0x1ab)](()=>{var _0x5ee38d=_0x358f1d;_0x1d0782['forEach'](_0x14b614=>_0x14b614[_0x5ee38d(0x163)]()),_0x1d0782['clear']();})),_0x22f761[_0x358f1d(0x133)](this[_0x358f1d(0xfe)][_0x358f1d(0x12a)](_0x2c59a9=>{var _0x3b3ea3=_0x358f1d,_0x474128;if(_0x2c59a9[_0x3b3ea3(0xd7)]!==o[_0x3b3ea3(0x159)][_0x3b3ea3(0xf3)]||!this['_liveShareService'][_0x3b3ea3(0xf4)](_0x2c59a9['id']))return;const {id:_0x282fea}=_0x2c59a9;let _0x5384d1;_0x1d0782[_0x3b3ea3(0x174)](_0x282fea)?_0x5384d1=_0x1d0782['get'](_0x282fea):(_0x5384d1=new D[(_0x3b3ea3(0x12e))](),_0x1d0782['set'](_0x282fea,_0x5384d1),_0x5384d1[_0x3b3ea3(0x19d)](b[_0x3b3ea3(0xec)]((_0x474128=this[_0x3b3ea3(0x18f)][_0x3b3ea3(0xe3)](Z))!=null?_0x474128:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x23914a=>{var _0x4d11f0=_0x3b3ea3;this['_collabSession']['send']({'eventID':_[_0x4d11f0(0x11c)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4d11f0(0x11a)],'operations':{[_0x23914a['id']]:{'id':_0x23914a['id'],'params':JSON[_0x4d11f0(0x14c)](_0x23914a[_0x4d11f0(0xf1)])}}}},this[_0x4d11f0(0x11a)]);})),_0x5384d1['next'](_0x2c59a9);})),this[_0x358f1d(0x139)][_0x358f1d(0x129)](this['_unitID'])['forEach'](_0x18d598=>this[_0x358f1d(0x14e)][_0x358f1d(0x116)]({'eventID':_[_0x358f1d(0x11c)][_0x358f1d(0x135)],'data':{'unitID':this[_0x358f1d(0x11a)],'operations':{[_0x18d598['id']]:{'id':_0x18d598['id'],'params':JSON[_0x358f1d(0x14c)](_0x18d598[_0x358f1d(0xf1)])}}}},this[_0x358f1d(0x11a)]));}[_0x560ecb(0x1a3)](){var _0x489c04=_0x560ecb,_0x563f22;this[_0x489c04(0x145)][_0x489c04(0x18a)](_0x489c04(0xcd)),(_0x563f22=this[_0x489c04(0x182)])==null||_0x563f22[_0x489c04(0x16a)](),this[_0x489c04(0x182)]=null;}['_startFollowing'](){var _0x1b335a=_0x560ecb,_0x2e9f9b;(_0x2e9f9b=this[_0x1b335a(0x182)])==null||_0x2e9f9b[_0x1b335a(0x16a)](),this['_status$']['next'](_0x1b335a(0x169));}[_0x560ecb(0x157)](){var _0x4ea1ea=_0x560ecb,_0x557265;this[_0x4ea1ea(0x145)][_0x4ea1ea(0x18a)](_0x4ea1ea(0xcd)),(_0x557265=this[_0x4ea1ea(0x182)])==null||_0x557265['dispose'](),this[_0x4ea1ea(0x182)]=null;}['_stopFollowing'](){var _0x39e96c=_0x560ecb,_0x185607;this[_0x39e96c(0x145)][_0x39e96c(0x18a)](_0x39e96c(0x14f)),(_0x185607=this[_0x39e96c(0x182)])==null||_0x185607[_0x39e96c(0x16a)]();}[_0x560ecb(0x15f)](_0x2de3a9){var _0x4b7ae7=_0x560ecb;if([_0x4b7ae7(0x16c),_0x4b7ae7(0x14f),_0x4b7ae7(0xce)][_0x4b7ae7(0x194)](this[_0x4b7ae7(0xda)])||!_0x2de3a9[_0x4b7ae7(0xf5)][_0x4b7ae7(0xc8)]||_0x2de3a9[_0x4b7ae7(0xf5)][_0x4b7ae7(0xc8)]===this[_0x4b7ae7(0x14e)][_0x4b7ae7(0x193)]())return;this['_status']===_0x4b7ae7(0xcd)&&this[_0x4b7ae7(0xe8)]();const _0x2a0b80=_0x2de3a9[_0x4b7ae7(0xf5)][_0x4b7ae7(0x162)];Object[_0x4b7ae7(0x122)](_0x2a0b80)[_0x4b7ae7(0xc6)](_0x3f1a6b=>{var _0xf0d6f7=_0x4b7ae7;this['_commandService'][_0xf0d6f7(0xe7)](_0x3f1a6b['id'],_0x3f1a6b['params']?JSON[_0xf0d6f7(0x190)](_0x3f1a6b[_0xf0d6f7(0xf1)]):null,{'fromCollab':!0x0});});}[_0x560ecb(0xe0)](){var _0x2582d1=_0x560ecb,_0x2c563e;this[_0x2582d1(0x145)][_0x2582d1(0x18a)](_0x2582d1(0xce)),(_0x2c563e=this[_0x2582d1(0x182)])==null||_0x2c563e[_0x2582d1(0x16a)]();}[_0x560ecb(0xd8)](){var _0x33445f=_0x560ecb;this[_0x33445f(0x145)][_0x33445f(0x18a)](_0x33445f(0xcd)),this[_0x33445f(0x115)]();}},exports[_0x560ecb(0x11d)]=R([S(0x2,o[_0x560ecb(0x111)]),S(0x3,o[_0x560ecb(0x125)](O)),S(0x4,o[_0x560ecb(0x106)])],exports['LiveShareCoordinator']);function A(){var _0x3b3d15=_0x560ecb;const _0x12b7c8=p[_0x3b3d15(0x171)](exports[_0x3b3d15(0x117)]),_0x177c48=p[_0x3b3d15(0x171)](o[_0x3b3d15(0x153)]),_0x22586e=p[_0x3b3d15(0x127)](()=>_0x177c48[_0x3b3d15(0x184)](o[_0x3b3d15(0xea)][_0x3b3d15(0x195)]),void 0x0,!0x1,[]),[_0x533a07,_0x38b393]=f[_0x3b3d15(0x181)](null),[_0x47ce47,_0x5dd7b1]=f[_0x3b3d15(0x181)](h['IDLE']),_0x3d6908=f[_0x3b3d15(0xc4)](null);return f['useEffect'](()=>(_0x22586e&&_0x12b7c8['getLiveShareCoordinator'](_0x22586e['getUnitId']())[_0x3b3d15(0x142)](_0x5a36de=>{var _0x4bea71=_0x3b3d15;_0x38b393(_0x5a36de),_0x3d6908['current']=_0x5a36de[_0x4bea71(0x147)][_0x4bea71(0xe2)](_0x34fc9d=>{_0x5dd7b1(_0x34fc9d);});}),()=>{var _0x12b94c=_0x3b3d15,_0x4bba31;(_0x4bba31=_0x3d6908[_0x12b94c(0x103)])==null||_0x4bba31[_0x12b94c(0x11f)](),_0x3d6908['current']=null;}),[_0x22586e,_0x12b7c8]),_0x533a07?l[_0x3b3d15(0x18b)](g[_0x3b3d15(0x165)],{'align':_0x3b3d15(0x15c),'disabled':_0x47ce47===h[_0x3b3d15(0x17a)],'className':_0x3b3d15(0x121),'overlay':l['jsx'](K,{'status':_0x47ce47,'coordinator':_0x533a07}),'children':l['jsx'](_0x3b3d15(0xff),{'className':g[_0x3b3d15(0x126)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x47ce47===h[_0x3b3d15(0x17a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x47ce47!==h[_0x3b3d15(0x17a)]}),'type':_0x3b3d15(0xff),'children':l['jsx'](P,{'className':_0x3b3d15(0x199)})})}):null;}function K(_0x3441e0){var _0x3859bc=_0x560ecb;const {status:_0x30320b,coordinator:_0x520a1d}=_0x3441e0;switch(_0x30320b){case h[_0x3859bc(0x14d)]:return l[_0x3859bc(0x18b)](z,{'coordinator':_0x520a1d});case h[_0x3859bc(0x12f)]:return l[_0x3859bc(0x18b)](Q,{'coordinator':_0x520a1d});case h[_0x3859bc(0x14a)]:return l[_0x3859bc(0x18b)](X,{'coordinator':_0x520a1d});case h['OFFLINE']:return l['jsx'](te,{});case h['PRESENTING']:return l['jsx'](ee,{'coordinator':_0x520a1d});default:return null;}}function z(_0x37e2c8){var _0x394f87=_0x560ecb;const {coordinator:_0x492e21}=_0x37e2c8;return l[_0x394f87(0x13b)](l['Fragment'],{'children':[l[_0x394f87(0x18b)](_0x394f87(0x183),{'className':_0x394f87(0x13e),'children':_0x394f87(0x109)}),l['jsx'](g[_0x394f87(0xc9)],{'onClick':()=>_0x492e21['tryStartPresenting'](),'children':'Start'})]});}function Q(_0x1ae538){var _0x1129f2=_0x560ecb;const {coordinator:_0xaf25ce}=_0x1ae538;return l[_0x1129f2(0x13b)](l[_0x1129f2(0x10d)],{'children':[l[_0x1129f2(0x18b)]('div',{'className':_0x1129f2(0x13e),'children':'You\x27re\x20following\x20the\x20presenter'}),l['jsx'](g[_0x1129f2(0xc9)],{'onClick':()=>_0xaf25ce['stopFollowing'](),'children':'Stop\x20following'})]});}function X(_0x2a0f55){var _0x3f3c65=_0x560ecb;const {coordinator:_0x434ff9}=_0x2a0f55;return l[_0x3f3c65(0x13b)](l[_0x3f3c65(0x10d)],{'children':[l[_0x3f3c65(0x18b)](_0x3f3c65(0x183),{'className':_0x3f3c65(0x13e),'children':_0x3f3c65(0x1a1)}),l[_0x3f3c65(0x18b)](g[_0x3f3c65(0xc9)],{'variant':_0x3f3c65(0x149),'onClick':()=>_0x434ff9[_0x3f3c65(0x10a)](),'children':_0x3f3c65(0xed)})]});}function ee(_0x2d38c0){var _0xc953d8=_0x560ecb;const {coordinator:_0x31e46f}=_0x2d38c0;return l[_0xc953d8(0x13b)](l[_0xc953d8(0x10d)],{'children':[l[_0xc953d8(0x18b)]('div',{'className':_0xc953d8(0x13e),'children':_0xc953d8(0x1aa)}),l[_0xc953d8(0x18b)](g['Button'],{'variant':_0xc953d8(0x138),'onClick':()=>_0x31e46f[_0xc953d8(0x177)](),'children':'Stop\x20presenting'})]});}function te(){var _0x9300bb=_0x560ecb;return l[_0x9300bb(0x18b)](l[_0x9300bb(0x10d)],{'children':_0x9300bb(0x141)});}var ie=Object[_0x560ecb(0x154)],ne=(_0x44d3f6,_0x2eb0d1,_0x2f3c14,_0x3ec979)=>{var _0x304600=_0x560ecb;for(var _0x28d39d=_0x3ec979>0x1?void 0x0:_0x3ec979?ie(_0x2eb0d1,_0x2f3c14):_0x2eb0d1,_0xa94af0=_0x44d3f6[_0x304600(0x188)]-0x1,_0x4e314e;_0xa94af0>=0x0;_0xa94af0--)(_0x4e314e=_0x44d3f6[_0xa94af0])&&(_0x28d39d=_0x4e314e(_0x28d39d)||_0x28d39d);return _0x28d39d;},L=(_0x38b9b8,_0x958be0)=>(_0x428efd,_0x16cb97)=>_0x958be0(_0x428efd,_0x16cb97,_0x38b9b8);exports[_0x560ecb(0xf2)]=class extends o[_0x560ecb(0x178)]{constructor(_0x5280f6,_0x4a1ff8){var _0x109327=_0x560ecb;super(),this[_0x109327(0x158)]=_0x5280f6,this['_uiPartsService']=_0x4a1ff8,this[_0x109327(0x102)]();}['_mountLiveShare'](){var _0x4417eb=_0x560ecb;this[_0x4417eb(0x119)](this[_0x4417eb(0x13d)][_0x4417eb(0xd1)](p[_0x4417eb(0xee)][_0x4417eb(0x175)],()=>p[_0x4417eb(0x13c)](A,this[_0x4417eb(0x158)])));}},exports[_0x560ecb(0xf2)]=ne([L(0x0,o[_0x560ecb(0x125)](o[_0x560ecb(0xc5)])),L(0x1,p[_0x560ecb(0xd3)])],exports[_0x560ecb(0xf2)]);var re=Object[_0x560ecb(0x104)],se=Object['getOwnPropertyDescriptor'],oe=(_0x3e7979,_0x3b2e12,_0x4cf5d3)=>_0x3b2e12 in _0x3e7979?re(_0x3e7979,_0x3b2e12,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4cf5d3}):_0x3e7979[_0x3b2e12]=_0x4cf5d3,ae=(_0x18f8a8,_0xacc881,_0x524366,_0x498207)=>{for(var _0x18aadd=_0x498207>0x1?void 0x0:_0x498207?se(_0xacc881,_0x524366):_0xacc881,_0x1ef2fd=_0x18f8a8['length']-0x1,_0x4533aa;_0x1ef2fd>=0x0;_0x1ef2fd--)(_0x4533aa=_0x18f8a8[_0x1ef2fd])&&(_0x18aadd=_0x4533aa(_0x18aadd)||_0x18aadd);return _0x18aadd;},N=(_0x37e6af,_0x1b633f)=>(_0x1e87ae,_0x2be095)=>_0x1b633f(_0x1e87ae,_0x2be095,_0x37e6af),T=(_0x401c4f,_0x1973cc,_0x46bfd6)=>oe(_0x401c4f,typeof _0x1973cc!=_0x560ecb(0xf7)?_0x1973cc+'':_0x1973cc,_0x46bfd6);const le=_0x560ecb(0x19f);exports[_0x560ecb(0xfa)]=class extends o[_0x560ecb(0x150)]{constructor(_0x5e1d5e=x,_0x1eaef3,_0x568d11){var _0x23bcf6=_0x560ecb;super(),this[_0x23bcf6(0x10b)]=_0x5e1d5e,this[_0x23bcf6(0x158)]=_0x1eaef3,this[_0x23bcf6(0x18f)]=_0x568d11;const {..._0xadcd8a}=o['merge']({},x,this['_config']);this['_configService']['setConfig']($,_0xadcd8a);}[_0x560ecb(0x131)](){var _0x67ca3e=_0x560ecb;o['registerDependencies'](this[_0x67ca3e(0x158)],o['mergeOverrideWithDependencies']([[O],[exports[_0x67ca3e(0x117)]],[E],[exports[_0x67ca3e(0xf2)]]],this['_config'][_0x67ca3e(0x148)])),o[_0x67ca3e(0x152)](this[_0x67ca3e(0x158)],[[E]]);}[_0x560ecb(0xcf)](){var _0x2784f1=_0x560ecb;o[_0x2784f1(0x152)](this[_0x2784f1(0x158)],[[exports[_0x2784f1(0xf2)]]]);}},T(exports['UniverLiveSharePlugin'],'type',o['UniverInstanceType'][_0x560ecb(0x18e)]),T(exports[_0x560ecb(0xfa)],'pluginName',le),exports['UniverLiveSharePlugin']=ae([o[_0x560ecb(0xf6)](m['UniverCollaborationClientPlugin']),N(0x1,o[_0x560ecb(0x125)](o[_0x560ecb(0xc5)])),N(0x2,o[_0x560ecb(0x111)])],exports[_0x560ecb(0xfa)]),exports[_0x560ecb(0xd5)]=A,exports[_0x560ecb(0x1a2)]=O,exports[_0x560ecb(0x16f)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0xb92f10=_0x40cd;(function(_0x1d5fe8,_0x321b6a){var _0x34c34d=_0x40cd,_0x212d08=_0x1d5fe8();while(!![]){try{var _0x361c5c=parseInt(_0x34c34d(0x153))/0x1*(parseInt(_0x34c34d(0x18e))/0x2)+parseInt(_0x34c34d(0x144))/0x3+-parseInt(_0x34c34d(0x1a6))/0x4+-parseInt(_0x34c34d(0x1a2))/0x5*(parseInt(_0x34c34d(0x1a8))/0x6)+parseInt(_0x34c34d(0x158))/0x7+-parseInt(_0x34c34d(0x187))/0x8*(parseInt(_0x34c34d(0x15d))/0x9)+parseInt(_0x34c34d(0x1a3))/0xa*(-parseInt(_0x34c34d(0x168))/0xb);if(_0x361c5c===_0x321b6a)break;else _0x212d08['push'](_0x212d08['shift']());}catch(_0x509112){_0x212d08['push'](_0x212d08['shift']());}}}(_0x1835,0xaca11));var q=Object[_0xb92f10(0x177)],z=(_0x2cbb61,_0x297940,_0x56228f)=>_0x297940 in _0x2cbb61?q(_0x2cbb61,_0x297940,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56228f}):_0x2cbb61[_0x297940]=_0x56228f,d=(_0x3899b7,_0x466d8c,_0xdf0b8d)=>z(_0x3899b7,typeof _0x466d8c!=_0xb92f10(0x1bb)?_0x466d8c+'':_0x466d8c,_0xdf0b8d);import{CollaborationSessionService as _0x43df75,SessionStatus as _0x23f1bd,UniverCollaborationClientPlugin as _0x310bfc}from'@univerjs-pro/collaboration-client';import{Disposable as _0x36aa7d,toDisposable as _0x11b934,Inject as _0x40f46e,IUniverInstanceService as _0xa30500,Injector as _0x59c839,IConfigService as _0x57314a,ICommandService as _0x282f21,RxDisposable as _0x33764c,UniverInstanceType as _0x3bf8f0,DisposableCollection as _0x413621,CommandType as _0x3a232d,DependentOn as _0x35512a,Plugin as _0x3de4ee,merge as _0x50e9af,registerDependencies as _0x4118c1,mergeOverrideWithDependencies as _0x1a4071,touchDependencies as _0x179b9a}from'@univerjs/core';import{SetWorksheetActiveOperation as _0xe638c0,InsertSheetMutation as _0xec3140}from'@univerjs/sheets';import{SetZoomRatioOperation as _0xf771a5,SetScrollOperation as _0x49a064}from'@univerjs/sheets-ui';import{useDependency as _0xc15240,useObservable as _0x224427,IUIPartsService as _0x90b79,BuiltInUIPart as _0xecae90,connectInjector as _0x195715}from'@univerjs/ui';import{jsx as _0x438b6c,jsxs as _0x15c1f5,Fragment as _0x240eb3}from'react/jsx-runtime';import{Dropdown as _0x4e7389,clsx as _0x516079,Button as _0x598980}from'@univerjs/design';import{forwardRef as _0x9db80c,useRef as _0x5c0ac1,createElement as _0x1cbdc0,useState as _0x566493,useEffect as _0x125e83}from'react';import{CollaborationEvent as _0x23142e,parseProtocolChangeset as _0x30577f}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x40c84d,Subject as _0x4d13be}from'rxjs';import{takeUntil as _0x155f84,throttleTime as _0x36ebc9}from'rxjs/operators';const Oe=_0xb92f10(0x179),T={};class L extends _0x36aa7d{constructor(){var _0x1eff34=_0xb92f10;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x1eff34(0x1d1),new Set());}[_0xb92f10(0x194)](_0xe0ac1e){var _0x1de3a5=_0xb92f10;return this['_sharedOperations']['add'](_0xe0ac1e),_0x11b934(()=>this['_sharedOperations'][_0x1de3a5(0x16c)](_0xe0ac1e));}[_0xb92f10(0x169)](_0x57bf88){var _0xa7feee=_0xb92f10;return this[_0xa7feee(0x1d1)]['add'](_0x57bf88),_0x11b934(()=>this[_0xa7feee(0x1d1)][_0xa7feee(0x16c)](_0x57bf88));}[_0xb92f10(0x16f)](_0x2adc2f){var _0x54c85d=_0xb92f10;return this[_0x54c85d(0x1d8)][_0x54c85d(0x136)](_0x2adc2f);}[_0xb92f10(0x142)](_0x5b204d){var _0x53483b=_0xb92f10;return Array[_0x53483b(0x1af)](this[_0x53483b(0x1d1)])['map'](_0x3276ac=>_0x3276ac(_0x5b204d));}}var Ee=Object[_0xb92f10(0x137)],we=(_0x254359,_0xd46257,_0xabd90a,_0x563cc2)=>{for(var _0x43bfc3=_0x563cc2>0x1?void 0x0:_0x563cc2?Ee(_0xd46257,_0xabd90a):_0xd46257,_0x1586cc=_0x254359['length']-0x1,_0x48c241;_0x1586cc>=0x0;_0x1586cc--)(_0x48c241=_0x254359[_0x1586cc])&&(_0x43bfc3=_0x48c241(_0x43bfc3)||_0x43bfc3);return _0x43bfc3;},Ne=(_0x8e92ab,_0x4ddec3)=>(_0x49d106,_0x5b0016)=>_0x4ddec3(_0x49d106,_0x5b0016,_0x8e92ab);let m=class extends _0x36aa7d{constructor(_0x3a7211){var _0x47e6df=_0xb92f10;super(),this[_0x47e6df(0x1a5)]=_0x3a7211,this['_init']();}[_0xb92f10(0x141)](){var _0x98ffaa=_0xb92f10;[_0xf771a5['id'],_0x49a064['id'],_0xe638c0['id']][_0x98ffaa(0x193)](_0x147004=>{var _0x491994=_0x98ffaa;this[_0x491994(0x1c9)](this[_0x491994(0x1a5)][_0x491994(0x194)](_0x147004));});}};m=we([Ne(0x0,_0x40f46e(L))],m);var c=function(){var _0x4568a5=_0xb92f10;return c=Object['assign']||function(_0x2507e3){var _0x210958=_0x40cd;for(var _0x1f935e,_0x305da6=0x1,_0x4b05b2=arguments[_0x210958(0x128)];_0x305da6<_0x4b05b2;_0x305da6++){_0x1f935e=arguments[_0x305da6];for(var _0x1a0589 in _0x1f935e)Object[_0x210958(0x17d)][_0x210958(0x1cf)]['call'](_0x1f935e,_0x1a0589)&&(_0x2507e3[_0x1a0589]=_0x1f935e[_0x1a0589]);}return _0x2507e3;},c[_0x4568a5(0x185)](this,arguments);},Ce=function(_0x48d83c,_0x4b31f8){var _0x44fee6=_0xb92f10,_0x558944={};for(var _0x3e3918 in _0x48d83c)Object[_0x44fee6(0x17d)]['hasOwnProperty'][_0x44fee6(0x151)](_0x48d83c,_0x3e3918)&&_0x4b31f8[_0x44fee6(0x1c4)](_0x3e3918)<0x0&&(_0x558944[_0x3e3918]=_0x48d83c[_0x3e3918]);if(_0x48d83c!=null&&typeof Object[_0x44fee6(0x1c3)]==_0x44fee6(0x18f)){for(var _0xc96f65=0x0,_0x3e3918=Object[_0x44fee6(0x1c3)](_0x48d83c);_0xc96f65<_0x3e3918[_0x44fee6(0x128)];_0xc96f65++)_0x4b31f8[_0x44fee6(0x1c4)](_0x3e3918[_0xc96f65])<0x0&&Object[_0x44fee6(0x17d)][_0x44fee6(0x1bf)][_0x44fee6(0x151)](_0x48d83c,_0x3e3918[_0xc96f65])&&(_0x558944[_0x3e3918[_0xc96f65]]=_0x48d83c[_0x3e3918[_0xc96f65]]);}return _0x558944;},W=_0x9db80c(function(_0x9057ee,_0x4ec540){var _0x1c775d=_0xb92f10,_0x536ac7=_0x9057ee[_0x1c775d(0x14a)],_0x56a88d=_0x9057ee['id'],_0x36d0e0=_0x9057ee[_0x1c775d(0x15f)],_0x3d07f8=_0x9057ee[_0x1c775d(0x157)],_0x1a6c5a=Ce(_0x9057ee,['icon','id','className','extend']),_0x2323c2='univerjs-icon\x20univerjs-icon-'['concat'](_0x56a88d,'\x20')[_0x1c775d(0x1ce)](_0x36d0e0||'')[_0x1c775d(0x132)](),_0x2433bc=_0x5c0ac1('_'['concat'](Le()));return Y(_0x536ac7,''[_0x1c775d(0x1ce)](_0x56a88d),{'defIds':_0x536ac7[_0x1c775d(0x170)],'idSuffix':_0x2433bc[_0x1c775d(0x1ae)]},c({'ref':_0x4ec540,'className':_0x2323c2},_0x1a6c5a),_0x3d07f8);});function Y(_0xc5ee4,_0x1f1d92,_0x41078d,_0x29bef0,_0x4209e9){var _0x329e48=_0xb92f10;return _0x1cbdc0(_0xc5ee4['tag'],c(c({'key':_0x1f1d92},De(_0xc5ee4,_0x41078d,_0x4209e9)),_0x29bef0),(xe(_0xc5ee4,_0x41078d)['children']||[])[_0x329e48(0x129)](function(_0x289626,_0x235d58){var _0x145203=_0x329e48;return Y(_0x289626,''[_0x145203(0x1ce)](_0x1f1d92,'-')[_0x145203(0x1ce)](_0xc5ee4['tag'],'-')[_0x145203(0x1ce)](_0x235d58),_0x41078d,void 0x0,_0x4209e9);}));}function De(_0x1e8fbc,_0x41b888,_0x16d0c2){var _0x1c3bdb=_0xb92f10,_0x1d304e=c({},_0x1e8fbc[_0x1c3bdb(0x1d5)]);_0x16d0c2!=null&&_0x16d0c2['colorChannel1']&&_0x1d304e[_0x1c3bdb(0x188)]==='colorChannel1'&&(_0x1d304e['fill']=_0x16d0c2[_0x1c3bdb(0x175)]),_0x1e8fbc[_0x1c3bdb(0x12c)]===_0x1c3bdb(0x12b)&&_0x1d304e['id']&&(_0x1d304e['id']=_0x1d304e['id']+_0x41b888[_0x1c3bdb(0x195)]),Object['entries'](_0x1d304e)['forEach'](function(_0x2b1512){var _0x4e6e09=_0x1c3bdb,_0x1fcd60=_0x2b1512[0x0],_0x5e286c=_0x2b1512[0x1];_0x1fcd60===_0x4e6e09(0x12b)&&typeof _0x5e286c==_0x4e6e09(0x150)&&(_0x1d304e[_0x1fcd60]=_0x5e286c[_0x4e6e09(0x152)](/url\(#(.*)\)/,_0x4e6e09(0x18d)[_0x4e6e09(0x1ce)](_0x41b888[_0x4e6e09(0x195)],')')));});var _0x4660cc=_0x41b888[_0x1c3bdb(0x170)];return!_0x4660cc||_0x4660cc[_0x1c3bdb(0x128)]===0x0||(_0x1e8fbc['tag']===_0x1c3bdb(0x19b)&&_0x1d304e['xlink:href']&&(_0x1d304e[_0x1c3bdb(0x1ad)]=_0x1d304e[_0x1c3bdb(0x1ad)]+_0x41b888[_0x1c3bdb(0x195)]),Object['entries'](_0x1d304e)['forEach'](function(_0x236db0){var _0x23e7a5=_0x1c3bdb,_0x1cf9b0=_0x236db0[0x0],_0x37bb1f=_0x236db0[0x1];typeof _0x37bb1f=='string'&&(_0x1d304e[_0x1cf9b0]=_0x37bb1f[_0x23e7a5(0x152)](/url\(#(.*)\)/,_0x23e7a5(0x18d)['concat'](_0x41b888[_0x23e7a5(0x195)],')')));})),_0x1d304e;}function _0x1835(){var _0x377475=['registerSharedOperation','idSuffix','_commandDisposable','currentColor','1em','_collabSessionService','NOT_FOLLOWING','use','none','getConfig','_startPresenting','init','registerComponent','data','70emAAvX','10uBSsOR','mutations','_liveShareService','99968GQFIhB','executeCommand','168066qSxQZk','_fetchOperations','You\x27re\x20following\x20the\x20presenter','getMemberID','createInstance','xlink:href','current','from','FOLLOWING','values','_status$','HEADER_MENU','complete','clear','offline','send','presenting','next','default','symbol','params','_handleTerminate','_stopFollowing','propertyIsEnumerable','substring','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','_startFollowing','getOwnPropertySymbols','indexOf','setConfig','assign','_unitID','parse','disposeWithMe','_entities','onStarting','subscribe','_collabSession','concat','hasOwnProperty','_mountLiveShare','_reporters','PRESENTING','dispose','stopFollowing','attrs','UNIVER_UNKNOWN','LIVESHARE_TERMINATE','_sharedOperations','reverse','end','type','0\x200\x2017\x2017','_handleNewChangeSets','length','map','_uiPartsService','mask','tag','You\x27re\x20presenting\x20the\x20document','_startLiveShareCoordinator','text','dispose$','_presenter','trim','You\x27re\x20not\x20following\x20the\x20presenter','presenter','Present\x20this\x20document','has','getOwnPropertyDescriptor','getLiveShareCoordinator','sessionStatus$','getValue','live-share-icon','override','_handleOperation','tryStartPresenting','then','pipe','_init','getInitialStates','UNIVER_SHEET','589641GlhrpP','add','children','onRendered','status$','_commandService','icon','find','random','OFFLINE','operations','pluginName','string','call','replace','173919VDWuyY','_configService','UNIVER_LIVE_SHARE_PLUGIN','not-following','extend','4223429JzwmVJ','_handleOffline','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','div','_univerInstanceService','74889FBeyAt','get','className','UniverIcon','_beIdle','unsubscribe','_injector','idle','stringify','Stop\x20presenting','defs','5357077IEcUZY','registerInitialStateReporter','event$','OPERATION','delete','set','LIVESHARE_NEW_HOST','shouldShareOperation','defIds','Start\x20following','IDLE','_status','_handleOnline','colorChannel1','displayName','defineProperty','unitId','live-share.config','getUnitId','stopPresenting','sheet','prototype','LIVESHARE_OPERATION','svg','_config','startFollowing','getCurrentTypeOfUnit$','ONLINE','univer-w-full\x20univer-mb-3\x20univer-text-sm','apply','following','56JMTvSW','fill','SAME_OPERATION_SHARE_INTERVAL','univer-size-4','path','Start','url(#$1','10qxoMul','function','button','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','_handleNewHost','forEach'];_0x1835=function(){return _0x377475;};return _0x1835();}function xe(_0x2c34df,_0x7bee95){var _0x163f6b=_0xb92f10,_0x103cc6,_0x562cce=_0x7bee95[_0x163f6b(0x170)];return!_0x562cce||_0x562cce[_0x163f6b(0x128)]===0x0?_0x2c34df:_0x2c34df[_0x163f6b(0x12c)]===_0x163f6b(0x167)&&(!((_0x103cc6=_0x2c34df[_0x163f6b(0x146)])===null||_0x103cc6===void 0x0)&&_0x103cc6[_0x163f6b(0x128)])?c(c({},_0x2c34df),{'children':_0x2c34df[_0x163f6b(0x146)][_0x163f6b(0x129)](function(_0x42e7c8){var _0x4be909=_0x163f6b;return typeof _0x42e7c8[_0x4be909(0x1d5)]['id']==_0x4be909(0x150)&&_0x562cce&&_0x562cce['includes'](_0x42e7c8[_0x4be909(0x1d5)]['id'])?c(c({},_0x42e7c8),{'attrs':c(c({},_0x42e7c8[_0x4be909(0x1d5)]),{'id':_0x42e7c8[_0x4be909(0x1d5)]['id']+_0x7bee95[_0x4be909(0x195)]})}):_0x42e7c8;})}):_0x2c34df;}function Le(){var _0x1d0599=_0xb92f10;return Math[_0x1d0599(0x14c)]()['toString'](0x24)[_0x1d0599(0x1c0)](0x2,0x8);}W[_0xb92f10(0x176)]=_0xb92f10(0x160);var ye={'tag':_0xb92f10(0x17f),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xb92f10(0x19c),'viewBox':_0xb92f10(0x126),'width':'1em','height':_0xb92f10(0x198)},'children':[{'tag':_0xb92f10(0x18b),'attrs':{'fill':_0xb92f10(0x197),'d':_0xb92f10(0x191)}},{'tag':_0xb92f10(0x18b),'attrs':{'fill':_0xb92f10(0x197),'d':_0xb92f10(0x15a),'fillRule':'evenodd','clipRule':'evenodd'}}]},B=_0x9db80c(function(_0x3ab730,_0x4cb993){var _0x1ded31=_0xb92f10;return _0x1cbdc0(W,Object[_0x1ded31(0x1c6)]({},_0x3ab730,{'id':_0x1ded31(0x13b),'ref':_0x4cb993,'icon':ye}));});B[_0xb92f10(0x176)]='LiveShareIcon';var Re=Object[_0xb92f10(0x137)],Z=(_0x593028,_0x3050ce,_0x1b6151,_0x3ef43a)=>{var _0x81c880=_0xb92f10;for(var _0x55e21a=_0x3ef43a>0x1?void 0x0:_0x3ef43a?Re(_0x3050ce,_0x1b6151):_0x3050ce,_0x3eab2e=_0x593028[_0x81c880(0x128)]-0x1,_0x57018c;_0x3eab2e>=0x0;_0x3eab2e--)(_0x57018c=_0x593028[_0x3eab2e])&&(_0x55e21a=_0x57018c(_0x55e21a)||_0x55e21a);return _0x55e21a;},f=(_0x56115a,_0x2b9545)=>(_0x369eca,_0xc8ff29)=>_0x2b9545(_0x369eca,_0xc8ff29,_0x56115a);function _0x40cd(_0x5237a4,_0x379b98){var _0x183531=_0x1835();return _0x40cd=function(_0x40cd0a,_0x2ef57b){_0x40cd0a=_0x40cd0a-0x125;var _0x497df8=_0x183531[_0x40cd0a];return _0x497df8;},_0x40cd(_0x5237a4,_0x379b98);}let I=class extends _0x33764c{constructor(_0x597ecb,_0x11177b,_0x3793d5){var _0x17ff2a=_0xb92f10;super(),d(this,_0x17ff2a(0x1ca),new Map()),(this[_0x17ff2a(0x15c)]=_0x597ecb,this[_0x17ff2a(0x163)]=_0x11177b,this[_0x17ff2a(0x199)]=_0x3793d5,this['_init']());}async[_0xb92f10(0x138)](_0x16453e){var _0x32ce4d=_0xb92f10;return this[_0x32ce4d(0x1ca)]['has'](_0x16453e)||await this[_0x32ce4d(0x12e)](_0x16453e),this['_entities'][_0x32ce4d(0x15e)](_0x16453e);}[_0xb92f10(0x141)](){var _0xab905c=_0xb92f10;this[_0xab905c(0x15c)]['getTypeOfUnitAdded$'](_0x3bf8f0[_0xab905c(0x143)])[_0xab905c(0x140)](_0x155f84(this['dispose$']))[_0xab905c(0x1cc)](async _0x85107f=>{var _0x2cdd68=_0xab905c;const _0x4ff2e2=_0x85107f['getUnitId']();this[_0x2cdd68(0x1ca)][_0x2cdd68(0x136)](_0x4ff2e2)||this['_startLiveShareCoordinator'](_0x4ff2e2);}),this[_0xab905c(0x15c)]['getTypeOfUnitDisposed$'](_0x3bf8f0[_0xab905c(0x143)])[_0xab905c(0x140)](_0x155f84(this['dispose$']))[_0xab905c(0x1cc)](_0x56e824=>{var _0x1da675=_0xab905c;const _0x32cf80=_0x56e824['getUnitId'](),_0x6c6e3=this['_entities'][_0x1da675(0x15e)](_0x32cf80);_0x6c6e3==null||_0x6c6e3[_0x1da675(0x1d3)]();});}async['_startLiveShareCoordinator'](_0x3b5a27){var _0x407cb9=_0xb92f10;const _0x55fa59=await this['_collabSessionService']['requireSession'](_0x3b5a27),_0x5ce173=this[_0x407cb9(0x163)][_0x407cb9(0x1ac)](C,_0x3b5a27,_0x55fa59);return _0x5ce173['init'](),this[_0x407cb9(0x1ca)]['set'](_0x3b5a27,_0x5ce173),_0x5ce173;}};I=Z([f(0x0,_0xa30500),f(0x1,_0x40f46e(_0x59c839)),f(0x2,_0x40f46e(_0x43df75))],I);var h=(_0x1fe2b8=>(_0x1fe2b8[_0xb92f10(0x14d)]=_0xb92f10(0x1b6),_0x1fe2b8['IDLE']=_0xb92f10(0x164),_0x1fe2b8['FOLLOWING']=_0xb92f10(0x186),_0x1fe2b8[_0xb92f10(0x19a)]=_0xb92f10(0x156),_0x1fe2b8[_0xb92f10(0x1d2)]=_0xb92f10(0x1b8),_0x1fe2b8))(h||{});const Pe=_0xb92f10(0x189),Ae=0xc8;let C=class extends _0x33764c{constructor(_0x4e0cc7,_0x49e3bf,_0x450c2f,_0x4e06ed,_0x15c36f){var _0xc75c54=_0xb92f10;super(),d(this,'_status$',new _0x40c84d(_0xc75c54(0x164))),d(this,_0xc75c54(0x148),this[_0xc75c54(0x1b2)]['asObservable']()),d(this,_0xc75c54(0x141),!0x1),d(this,'_commandDisposable',null),d(this,_0xc75c54(0x131),null),(this[_0xc75c54(0x1c7)]=_0x4e0cc7,this[_0xc75c54(0x1cd)]=_0x49e3bf,this[_0xc75c54(0x154)]=_0x450c2f,this[_0xc75c54(0x1a5)]=_0x4e06ed,this[_0xc75c54(0x149)]=_0x15c36f);}get[_0xb92f10(0x173)](){var _0x28741c=_0xb92f10;return this[_0x28741c(0x1b2)][_0x28741c(0x13a)]();}[_0xb92f10(0x1d3)](){var _0x382092=_0xb92f10,_0x35f529;(_0x35f529=this[_0x382092(0x196)])==null||_0x35f529[_0x382092(0x1d3)](),this[_0x382092(0x1b2)][_0x382092(0x1b9)](_0x382092(0x164)),this[_0x382092(0x1b2)]['complete']();}[_0xb92f10(0x19f)](){var _0x144733=_0xb92f10;this[_0x144733(0x141)]||(this[_0x144733(0x141)]=!0x0,this[_0x144733(0x1cd)][_0x144733(0x139)][_0x144733(0x140)](_0x155f84(this[_0x144733(0x130)]))[_0x144733(0x1cc)](_0x54b933=>{var _0x1368d4=_0x144733;switch(_0x54b933){case _0x23f1bd[_0x1368d4(0x14d)]:this['_handleOffline']();break;case _0x23f1bd[_0x1368d4(0x183)]:this[_0x1368d4(0x174)]();break;}}),this[_0x144733(0x1cd)][_0x144733(0x16a)][_0x144733(0x140)](_0x155f84(this[_0x144733(0x130)]))[_0x144733(0x1cc)](_0x3d47ae=>{var _0x25e5b9=_0x144733;const {eventID:_0x42f1e7}=_0x3d47ae;switch(_0x42f1e7){case _0x23142e[_0x25e5b9(0x16e)]:this[_0x25e5b9(0x192)](_0x3d47ae);break;case _0x23142e['LIVESHARE_OPERATION']:this[_0x25e5b9(0x13d)](_0x3d47ae);break;case _0x23142e[_0x25e5b9(0x1d7)]:this[_0x25e5b9(0x1bd)]();break;case _0x23142e['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x3d47ae);break;}}));}['tryStartPresenting'](){var _0x1d2ac2=_0xb92f10;this[_0x1d2ac2(0x1cd)][_0x1d2ac2(0x1b7)]({'eventID':_0x23142e['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x1d2ac2(0x1c7)],'userID':this[_0x1d2ac2(0x1cd)]['getMemberID']()}},this[_0x1d2ac2(0x1c7)]);}[_0xb92f10(0x17b)](){var _0x1407c6=_0xb92f10;this['_status']===_0x1407c6(0x1b8)&&(this[_0x1407c6(0x1b2)][_0x1407c6(0x1b9)](_0x1407c6(0x164)),this[_0x1407c6(0x1cd)][_0x1407c6(0x1b7)]({'eventID':_0x23142e[_0x1407c6(0x1d7)],'data':{'unitID':this[_0x1407c6(0x1c7)]}},this['_unitID']));}[_0xb92f10(0x181)](){var _0x534ee8=_0xb92f10;this[_0x534ee8(0x173)]===_0x534ee8(0x156)&&(this[_0x534ee8(0x1b2)][_0x534ee8(0x1b9)]('following'),this[_0x534ee8(0x1c2)]());}[_0xb92f10(0x1d4)](){var _0x5b5e83=_0xb92f10;this['_status']===_0x5b5e83(0x186)&&this[_0x5b5e83(0x1be)]();}['_handleNewHost'](_0x14841f){var _0x46c794=_0xb92f10;const {presenter:_0x4796a}=_0x14841f[_0x46c794(0x1a1)],_0x172de8=this[_0x46c794(0x1cd)][_0x46c794(0x1ab)]();this[_0x46c794(0x131)]=_0x4796a,_0x4796a===_0x172de8?(this[_0x46c794(0x1be)](),this[_0x46c794(0x19e)]()):this[_0x46c794(0x173)]!=='not-following'&&(this['_stopPresenting'](),this[_0x46c794(0x1c2)]());}[_0xb92f10(0x1a9)](){var _0x561d47=_0xb92f10;const _0x1c4069={'eventID':_0x23142e['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x561d47(0x1b7)](_0x1c4069,this[_0x561d47(0x1c7)]);}[_0xb92f10(0x1bd)](){var _0x225761=_0xb92f10;this[_0x225761(0x131)]=null,this[_0x225761(0x173)]!==_0x225761(0x1b8)&&this[_0x225761(0x161)]();}[_0xb92f10(0x127)](_0x26cc81){var _0x2de87f=_0xb92f10;if(this[_0x2de87f(0x173)]===_0x2de87f(0x186)&&this[_0x2de87f(0x131)]===_0x26cc81[_0x2de87f(0x1a1)]['memberID']){const _0x42f544=_0x30577f(_0x26cc81['data'])[_0x2de87f(0x1a4)][_0x2de87f(0x1d9)]()[_0x2de87f(0x14b)](_0x3ee59c=>_0x3ee59c['id']===_0xec3140['id']);if(_0x42f544){const _0x56cb7a=_0x42f544[_0x2de87f(0x1bc)][_0x2de87f(0x178)],_0x23690d=_0x42f544['params'][_0x2de87f(0x17c)]['id'];setTimeout(()=>{var _0x720292=_0x2de87f;this[_0x720292(0x149)][_0x720292(0x1a7)](_0xe638c0['id'],{'unitId':_0x56cb7a,'subUnitId':_0x23690d},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x41151a=_0xb92f10;this[_0x41151a(0x1b2)][_0x41151a(0x1b9)]('presenting');const _0x3e6923=new Map(),_0x5d23fb=this['_commandDisposable']=new _0x413621();_0x5d23fb[_0x41151a(0x145)](_0x11b934(()=>{var _0x5bbcda=_0x41151a;_0x3e6923[_0x5bbcda(0x193)](_0x55b9c6=>_0x55b9c6[_0x5bbcda(0x1b4)]()),_0x3e6923[_0x5bbcda(0x1b5)]();})),_0x5d23fb[_0x41151a(0x145)](this[_0x41151a(0x149)]['onCommandExecuted'](_0x33e008=>{var _0x51fcb1=_0x41151a,_0x258a98;if(_0x33e008[_0x51fcb1(0x125)]!==_0x3a232d[_0x51fcb1(0x16b)]||!this['_liveShareService']['shouldShareOperation'](_0x33e008['id']))return;const {id:_0x304fd8}=_0x33e008;let _0x3d053b;_0x3e6923[_0x51fcb1(0x136)](_0x304fd8)?_0x3d053b=_0x3e6923['get'](_0x304fd8):(_0x3d053b=new _0x4d13be(),_0x3e6923[_0x51fcb1(0x16d)](_0x304fd8,_0x3d053b),_0x3d053b[_0x51fcb1(0x140)](_0x36ebc9((_0x258a98=this[_0x51fcb1(0x154)][_0x51fcb1(0x19d)](Pe))!=null?_0x258a98:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x51fcb1(0x1cc)](_0x1e08cc=>{var _0x3901d8=_0x51fcb1;this[_0x3901d8(0x1cd)][_0x3901d8(0x1b7)]({'eventID':_0x23142e['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3901d8(0x1c7)],'operations':{[_0x1e08cc['id']]:{'id':_0x1e08cc['id'],'params':JSON['stringify'](_0x1e08cc[_0x3901d8(0x1bc)])}}}},this[_0x3901d8(0x1c7)]);})),_0x3d053b[_0x51fcb1(0x1b9)](_0x33e008);})),this['_liveShareService'][_0x41151a(0x142)](this['_unitID'])[_0x41151a(0x193)](_0x3a4e47=>this[_0x41151a(0x1cd)][_0x41151a(0x1b7)]({'eventID':_0x23142e[_0x41151a(0x17e)],'data':{'unitID':this[_0x41151a(0x1c7)],'operations':{[_0x3a4e47['id']]:{'id':_0x3a4e47['id'],'params':JSON[_0x41151a(0x165)](_0x3a4e47['params'])}}}},this[_0x41151a(0x1c7)]));}['_stopPresenting'](){var _0x257c9b=_0xb92f10,_0x591fa3;this[_0x257c9b(0x1b2)][_0x257c9b(0x1b9)]('idle'),(_0x591fa3=this[_0x257c9b(0x196)])==null||_0x591fa3[_0x257c9b(0x1d3)](),this[_0x257c9b(0x196)]=null;}[_0xb92f10(0x1c2)](){var _0x25d0b5=_0xb92f10,_0x11bc4d;(_0x11bc4d=this[_0x25d0b5(0x196)])==null||_0x11bc4d[_0x25d0b5(0x1d3)](),this[_0x25d0b5(0x1b2)][_0x25d0b5(0x1b9)](_0x25d0b5(0x186));}[_0xb92f10(0x161)](){var _0x3ac23e=_0xb92f10,_0x3a21b6;this['_status$'][_0x3ac23e(0x1b9)](_0x3ac23e(0x164)),(_0x3a21b6=this['_commandDisposable'])==null||_0x3a21b6[_0x3ac23e(0x1d3)](),this[_0x3ac23e(0x196)]=null;}[_0xb92f10(0x1be)](){var _0x1c2efe=_0xb92f10,_0x21c471;this[_0x1c2efe(0x1b2)][_0x1c2efe(0x1b9)](_0x1c2efe(0x156)),(_0x21c471=this['_commandDisposable'])==null||_0x21c471['dispose']();}[_0xb92f10(0x13d)](_0x974e30){var _0x333293=_0xb92f10;if([_0x333293(0x1b8),_0x333293(0x156),'offline']['includes'](this[_0x333293(0x173)])||!_0x974e30['data'][_0x333293(0x134)]||_0x974e30[_0x333293(0x1a1)]['presenter']===this[_0x333293(0x1cd)]['getMemberID']())return;this['_status']===_0x333293(0x164)&&this[_0x333293(0x1c2)]();const _0x3eb228=_0x974e30[_0x333293(0x1a1)][_0x333293(0x14e)];Object[_0x333293(0x1b1)](_0x3eb228)['forEach'](_0x3ff192=>{var _0x549dfd=_0x333293;this[_0x549dfd(0x149)][_0x549dfd(0x1a7)](_0x3ff192['id'],_0x3ff192[_0x549dfd(0x1bc)]?JSON[_0x549dfd(0x1c8)](_0x3ff192[_0x549dfd(0x1bc)]):null,{'fromCollab':!0x0});});}[_0xb92f10(0x159)](){var _0xafccc0=_0xb92f10,_0x5a0a7c;this[_0xafccc0(0x1b2)][_0xafccc0(0x1b9)]('offline'),(_0x5a0a7c=this[_0xafccc0(0x196)])==null||_0x5a0a7c[_0xafccc0(0x1d3)]();}['_handleOnline'](){var _0xbd1a7e=_0xb92f10;this[_0xbd1a7e(0x1b2)][_0xbd1a7e(0x1b9)](_0xbd1a7e(0x164)),this['_fetchOperations']();}};C=Z([f(0x2,_0x57314a),f(0x3,_0x40f46e(L)),f(0x4,_0x282f21)],C);function Te(){var _0x4e9fa8=_0xb92f10;const _0x25aef1=_0xc15240(I),_0x162861=_0xc15240(_0xa30500),_0x421d8a=_0x224427(()=>_0x162861[_0x4e9fa8(0x182)](_0x3bf8f0[_0x4e9fa8(0x143)]),void 0x0,!0x1,[]),[_0x359fac,_0x4ddb0a]=_0x566493(null),[_0x136b5e,_0x1c19f9]=_0x566493(h[_0x4e9fa8(0x172)]),_0x53b98c=_0x5c0ac1(null);return _0x125e83(()=>(_0x421d8a&&_0x25aef1['getLiveShareCoordinator'](_0x421d8a[_0x4e9fa8(0x17a)]())[_0x4e9fa8(0x13f)](_0x4f570e=>{var _0x3bbcc8=_0x4e9fa8;_0x4ddb0a(_0x4f570e),_0x53b98c[_0x3bbcc8(0x1ae)]=_0x4f570e[_0x3bbcc8(0x148)]['subscribe'](_0x4bc696=>{_0x1c19f9(_0x4bc696);});}),()=>{var _0x13bbe7=_0x4e9fa8,_0x3b94cc;(_0x3b94cc=_0x53b98c['current'])==null||_0x3b94cc[_0x13bbe7(0x162)](),_0x53b98c[_0x13bbe7(0x1ae)]=null;}),[_0x421d8a,_0x25aef1]),_0x359fac?_0x438b6c(_0x4e7389,{'align':_0x4e9fa8(0x1da),'disabled':_0x136b5e===h[_0x4e9fa8(0x14d)],'className':_0x4e9fa8(0x1c1),'overlay':_0x438b6c($e,{'status':_0x136b5e,'coordinator':_0x359fac}),'children':_0x438b6c('button',{'className':_0x516079('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x136b5e===h[_0x4e9fa8(0x14d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x136b5e!==h['OFFLINE']}),'type':_0x4e9fa8(0x190),'children':_0x438b6c(B,{'className':_0x4e9fa8(0x18a)})})}):null;}function $e(_0x49f0ac){var _0x3dc94b=_0xb92f10;const {status:_0x209509,coordinator:_0x27d29b}=_0x49f0ac;switch(_0x209509){case h[_0x3dc94b(0x172)]:return _0x438b6c(Fe,{'coordinator':_0x27d29b});case h[_0x3dc94b(0x1b0)]:return _0x438b6c(He,{'coordinator':_0x27d29b});case h[_0x3dc94b(0x19a)]:return _0x438b6c(je,{'coordinator':_0x27d29b});case h[_0x3dc94b(0x14d)]:return _0x438b6c(Ve,{});case h['PRESENTING']:return _0x438b6c(Ue,{'coordinator':_0x27d29b});default:return null;}}function Fe(_0x12aae6){var _0x19e557=_0xb92f10;const {coordinator:_0x500ea0}=_0x12aae6;return _0x15c1f5(_0x240eb3,{'children':[_0x438b6c(_0x19e557(0x15b),{'className':_0x19e557(0x184),'children':_0x19e557(0x135)}),_0x438b6c(_0x598980,{'onClick':()=>_0x500ea0[_0x19e557(0x13e)](),'children':_0x19e557(0x18c)})]});}function He(_0x83da5d){var _0x59ee2d=_0xb92f10;const {coordinator:_0x32265b}=_0x83da5d;return _0x15c1f5(_0x240eb3,{'children':[_0x438b6c(_0x59ee2d(0x15b),{'className':_0x59ee2d(0x184),'children':_0x59ee2d(0x1aa)}),_0x438b6c(_0x598980,{'onClick':()=>_0x32265b[_0x59ee2d(0x1d4)](),'children':'Stop\x20following'})]});}function je(_0x3cf812){var _0x2accb3=_0xb92f10;const {coordinator:_0x1e7826}=_0x3cf812;return _0x15c1f5(_0x240eb3,{'children':[_0x438b6c(_0x2accb3(0x15b),{'className':_0x2accb3(0x184),'children':_0x2accb3(0x133)}),_0x438b6c(_0x598980,{'variant':_0x2accb3(0x12f),'onClick':()=>_0x1e7826[_0x2accb3(0x181)](),'children':_0x2accb3(0x171)})]});}function Ue(_0x475865){var _0x1d0bc0=_0xb92f10;const {coordinator:_0x4027d3}=_0x475865;return _0x15c1f5(_0x240eb3,{'children':[_0x438b6c(_0x1d0bc0(0x15b),{'className':_0x1d0bc0(0x184),'children':_0x1d0bc0(0x12d)}),_0x438b6c(_0x598980,{'variant':_0x1d0bc0(0x1ba),'onClick':()=>_0x4027d3[_0x1d0bc0(0x17b)](),'children':_0x1d0bc0(0x166)})]});}function Ve(){return _0x438b6c(_0x240eb3,{'children':'You\x27are\x20offline.'});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x5aa9c8,_0x5c6171,_0x7762c0,_0x15f905)=>{var _0x1c58b3=_0xb92f10;for(var _0x4fe73c=_0x15f905>0x1?void 0x0:_0x15f905?Me(_0x5c6171,_0x7762c0):_0x5c6171,_0x407924=_0x5aa9c8[_0x1c58b3(0x128)]-0x1,_0xbb2276;_0x407924>=0x0;_0x407924--)(_0xbb2276=_0x5aa9c8[_0x407924])&&(_0x4fe73c=_0xbb2276(_0x4fe73c)||_0x4fe73c);return _0x4fe73c;},$=(_0x45bdcc,_0x4936cb)=>(_0x238466,_0x127401)=>_0x4936cb(_0x238466,_0x127401,_0x45bdcc);let b=class extends _0x36aa7d{constructor(_0x45f354,_0x36db32){var _0x5dc94c=_0xb92f10;super(),this[_0x5dc94c(0x163)]=_0x45f354,this[_0x5dc94c(0x12a)]=_0x36db32,this[_0x5dc94c(0x1d0)]();}[_0xb92f10(0x1d0)](){var _0x5b50dd=_0xb92f10;this[_0x5b50dd(0x1c9)](this[_0x5b50dd(0x12a)][_0x5b50dd(0x1a0)](_0xecae90[_0x5b50dd(0x1b3)],()=>_0x195715(Te,this[_0x5b50dd(0x163)])));}};b=ke([$(0x0,_0x40f46e(_0x59c839)),$(0x1,_0x90b79)],b);var Ge=Object[_0xb92f10(0x177)],We=Object[_0xb92f10(0x137)],Ye=(_0x5c6e5d,_0x27f948,_0x3e87b6)=>_0x27f948 in _0x5c6e5d?Ge(_0x5c6e5d,_0x27f948,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e87b6}):_0x5c6e5d[_0x27f948]=_0x3e87b6,Be=(_0x7b5130,_0x1654b5,_0x262fbb,_0x627239)=>{var _0x1a2ef1=_0xb92f10;for(var _0x190a67=_0x627239>0x1?void 0x0:_0x627239?We(_0x1654b5,_0x262fbb):_0x1654b5,_0x2eb9cf=_0x7b5130[_0x1a2ef1(0x128)]-0x1,_0x3030af;_0x2eb9cf>=0x0;_0x2eb9cf--)(_0x3030af=_0x7b5130[_0x2eb9cf])&&(_0x190a67=_0x3030af(_0x190a67)||_0x190a67);return _0x190a67;},F=(_0x10d26e,_0x939c4c)=>(_0x393c01,_0xd08dde)=>_0x939c4c(_0x393c01,_0xd08dde,_0x10d26e),J=(_0x53eb41,_0x521c7b,_0x238354)=>Ye(_0x53eb41,typeof _0x521c7b!=_0xb92f10(0x1bb)?_0x521c7b+'':_0x521c7b,_0x238354);const Ze=_0xb92f10(0x155);let O=class extends _0x3de4ee{constructor(_0x283fb0=T,_0x4f54de,_0x286482){var _0x6f4418=_0xb92f10;super(),this[_0x6f4418(0x180)]=_0x283fb0,this[_0x6f4418(0x163)]=_0x4f54de,this[_0x6f4418(0x154)]=_0x286482;const {..._0x1cc9ef}=_0x50e9af({},T,this[_0x6f4418(0x180)]);this[_0x6f4418(0x154)][_0x6f4418(0x1c5)](Oe,_0x1cc9ef);}[_0xb92f10(0x1cb)](){var _0x5cced8=_0xb92f10;_0x4118c1(this[_0x5cced8(0x163)],_0x1a4071([[L],[I],[m],[b]],this[_0x5cced8(0x180)][_0x5cced8(0x13c)])),_0x179b9a(this[_0x5cced8(0x163)],[[m]]);}[_0xb92f10(0x147)](){var _0x17e34d=_0xb92f10;_0x179b9a(this[_0x17e34d(0x163)],[[b]]);}};J(O,'type',_0x3bf8f0[_0xb92f10(0x1d6)]),J(O,_0xb92f10(0x14f),Ze),O=Be([_0x35512a(_0x310bfc),F(0x1,_0x40f46e(_0x59c839)),F(0x2,_0x57314a)],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 _0x351d60=_0x5600;(function(_0x3202eb,_0x3b4896){var _0x4d4b73=_0x5600,_0x6683e5=_0x3202eb();while(!![]){try{var _0x42fb6=-parseInt(_0x4d4b73(0x1c7))/0x1+-parseInt(_0x4d4b73(0x17b))/0x2*(parseInt(_0x4d4b73(0x172))/0x3)+parseInt(_0x4d4b73(0x151))/0x4+-parseInt(_0x4d4b73(0x170))/0x5*(-parseInt(_0x4d4b73(0x152))/0x6)+parseInt(_0x4d4b73(0x1ac))/0x7+parseInt(_0x4d4b73(0x15f))/0x8*(-parseInt(_0x4d4b73(0x14a))/0x9)+parseInt(_0x4d4b73(0x1c6))/0xa;if(_0x42fb6===_0x3b4896)break;else _0x6683e5['push'](_0x6683e5['shift']());}catch(_0x4e6543){_0x6683e5['push'](_0x6683e5['shift']());}}}(_0x2b53,0x45de2));var q=Object['defineProperty'],z=(_0x3ed690,_0x5e1962,_0x5e939e)=>_0x5e1962 in _0x3ed690?q(_0x3ed690,_0x5e1962,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e939e}):_0x3ed690[_0x5e1962]=_0x5e939e,d=(_0x3b01dd,_0x2d321,_0x39f49a)=>z(_0x3b01dd,typeof _0x2d321!=_0x351d60(0x1cf)?_0x2d321+'':_0x2d321,_0x39f49a);import{CollaborationSessionService as _0xc42d8f,SessionStatus as _0x5e13a0,UniverCollaborationClientPlugin as _0x29bcfe}from'@univerjs-pro/collaboration-client';import{Disposable as _0x224e4c,toDisposable as _0x420ae4,Inject as _0x3abca3,IUniverInstanceService as _0xe2d3f4,Injector as _0x3d57c1,IConfigService as _0x5be387,ICommandService as _0x236614,RxDisposable as _0x603bd6,UniverInstanceType as _0x4d5efd,DisposableCollection as _0x4feaf1,CommandType as _0x17a80f,DependentOn as _0x2195b7,Plugin as _0x599154,merge as _0x75c717,registerDependencies as _0x5bf58d,mergeOverrideWithDependencies as _0x38e8e6,touchDependencies as _0x281800}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x561dc1,InsertSheetMutation as _0x4f4864}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x226f14,SetScrollOperation as _0x33d4ca}from'@univerjs/sheets-ui';import{useDependency as _0x247355,useObservable as _0x21ae04,IUIPartsService as _0x230a4f,BuiltInUIPart as _0x4ca9bf,connectInjector as _0x32a071}from'@univerjs/ui';import{jsx as _0x37aa2b,jsxs as _0x2c44bf,Fragment as _0x3db7a5}from'react/jsx-runtime';import{Dropdown as _0x5f162c,clsx as _0x53843f,Button as _0x2ee079}from'@univerjs/design';import{forwardRef as _0x313345,useRef as _0xc18a52,createElement as _0x57f48a,useState as _0x2f9e5a,useEffect as _0x28d068}from'react';import{CollaborationEvent as _0x45c8cc,parseProtocolChangeset as _0x522c8f}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x18832b,Subject as _0x25a16f}from'rxjs';import{takeUntil as _0x48f007,throttleTime as _0xee77ca}from'rxjs/operators';const Oe='live-share.config',T={};function _0x2b53(){var _0x326341=['_reporters','2SxGsvQ','onStarting','status$','replace','defineProperty','children','colorChannel1','Stop\x20presenting','values','setConfig','asObservable','idSuffix','concat','univer-mb-3\x20univer-w-full\x20univer-text-sm','length','LIVESHARE_TERMINATE','div','_init','_entities','OPERATION','_stopFollowing','getUnitId','ONLINE','executeCommand','NOT_FOLLOWING','_unitID','getConfig','attrs','trim','evenodd','presenting','set','_collabSessionService','_handleTerminate','data','pluginName','OFFLINE','_startLiveShareCoordinator','dispose$','url(#$1','NEW_CHANGESETS','Stop\x20following','sheet','FOLLOWING','univer-size-4','none','defs','_config','send','2149959GTbLeU','following','UNIVER_SHEET','text','http://www.w3.org/2000/svg','idle','_handleOperation','substring','subscribe','dispose','clear','prototype','getOwnPropertySymbols','assign','displayName','_collabSession','UNIVER_LIVE_SHARE_PLUGIN','end','getOwnPropertyDescriptor','_commandDisposable','getInitialStates','call','indexOf','stringify','get','_injector','7964290pSBBsb','289308leGLVn','_uiPartsService','_startFollowing','createInstance','toString','add','next','reverse','symbol','You\x27are\x20offline.','UniverIcon','LIVESHARE_REQUEST_HOST','delete','live-share-icon','onCommandExecuted','defIds','Present\x20this\x20document','find','then','unsubscribe','registerComponent','You\x27re\x20presenting\x20the\x20document','onRendered','from','stopPresenting','currentColor','apply','registerInitialStateReporter','sessionStatus$','_univerInstanceService','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','You\x27re\x20following\x20the\x20presenter','LIVESHARE_OPERATION','_beIdle','0\x200\x2017\x2017','Start\x20following','You\x27re\x20not\x20following\x20the\x20presenter','offline','params','has','getTypeOfUnitAdded$','startFollowing','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','map','forEach','HEADER_MENU','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','memberID','_presenter','string','_liveShareService','type','propertyIsEnumerable','2210751ZCrMEd','_stopPresenting','_sharedOperations','unitId','getMemberID','xlink:href','entries','151784zmJSDG','9678deKfPf','getLiveShareCoordinator','tryStartPresenting','_fetchOperations','_handleNewChangeSets','extend','includes','1em','getTypeOfUnitDisposed$','_status$','disposeWithMe','_commandService','operations','16cUcYQf','shouldShareOperation','Start','PRESENTING','LIVESHARE_FETCH_OPERATIONS','tag','complete','fill','_startPresenting','icon','_handleNewHost','stopFollowing','_status','mask','_configService','presenter','IDLE','1025keYqKN','init','1216239OkapoE','current','_handleOnline','_mountLiveShare','_handleOffline','pipe','not-following','path'];_0x2b53=function(){return _0x326341;};return _0x2b53();}class L extends _0x224e4c{constructor(){var _0x4b5c00=_0x351d60;super(...arguments),d(this,_0x4b5c00(0x14c),new Set()),d(this,'_reporters',new Set());}['registerSharedOperation'](_0xafd0a){var _0x57023e=_0x351d60;return this[_0x57023e(0x14c)][_0x57023e(0x1cc)](_0xafd0a),_0x420ae4(()=>this[_0x57023e(0x14c)][_0x57023e(0x1d3)](_0xafd0a));}[_0x351d60(0x1e2)](_0xd0edd9){var _0x3a510c=_0x351d60;return this[_0x3a510c(0x17a)][_0x3a510c(0x1cc)](_0xd0edd9),_0x420ae4(()=>this[_0x3a510c(0x17a)][_0x3a510c(0x1d3)](_0xd0edd9));}[_0x351d60(0x160)](_0x5cf08e){var _0x43ad2e=_0x351d60;return this['_sharedOperations'][_0x43ad2e(0x1ee)](_0x5cf08e);}[_0x351d60(0x1c0)](_0x26b8ae){var _0x486893=_0x351d60;return Array[_0x486893(0x1de)](this[_0x486893(0x17a)])[_0x486893(0x1f3)](_0x570949=>_0x570949(_0x26b8ae));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x119d3e,_0x5d4671,_0x40b9e2,_0x7bbc55)=>{var _0x19c7a6=_0x351d60;for(var _0x17b9b0=_0x7bbc55>0x1?void 0x0:_0x7bbc55?Ee(_0x5d4671,_0x40b9e2):_0x5d4671,_0xc30d1f=_0x119d3e[_0x19c7a6(0x189)]-0x1,_0x36f6ef;_0xc30d1f>=0x0;_0xc30d1f--)(_0x36f6ef=_0x119d3e[_0xc30d1f])&&(_0x17b9b0=_0x36f6ef(_0x17b9b0)||_0x17b9b0);return _0x17b9b0;},Ne=(_0x39afc8,_0x55ca59)=>(_0x4cfd48,_0x687522)=>_0x55ca59(_0x4cfd48,_0x687522,_0x39afc8);let m=class extends _0x224e4c{constructor(_0x494f05){var _0x15d423=_0x351d60;super(),this[_0x15d423(0x147)]=_0x494f05,this['_init']();}['_init'](){var _0x327e4c=_0x351d60;[_0x226f14['id'],_0x33d4ca['id'],_0x561dc1['id']][_0x327e4c(0x1f4)](_0x33d76e=>{var _0x21a1e7=_0x327e4c;this[_0x21a1e7(0x15c)](this['_liveShareService']['registerSharedOperation'](_0x33d76e));});}};m=we([Ne(0x0,_0x3abca3(L))],m);var c=function(){var _0x1ebf06=_0x351d60;return c=Object[_0x1ebf06(0x1b9)]||function(_0x238969){var _0x432371=_0x1ebf06;for(var _0x372cff,_0x36148d=0x1,_0x55fcf4=arguments[_0x432371(0x189)];_0x36148d<_0x55fcf4;_0x36148d++){_0x372cff=arguments[_0x36148d];for(var _0x69aaa7 in _0x372cff)Object[_0x432371(0x1b7)]['hasOwnProperty'][_0x432371(0x1c1)](_0x372cff,_0x69aaa7)&&(_0x238969[_0x69aaa7]=_0x372cff[_0x69aaa7]);}return _0x238969;},c[_0x1ebf06(0x1e1)](this,arguments);},Ce=function(_0x4a6f4a,_0x21a8da){var _0xed7f5d=_0x351d60,_0x5309a1={};for(var _0x20d14b in _0x4a6f4a)Object['prototype']['hasOwnProperty'][_0xed7f5d(0x1c1)](_0x4a6f4a,_0x20d14b)&&_0x21a8da[_0xed7f5d(0x1c2)](_0x20d14b)<0x0&&(_0x5309a1[_0x20d14b]=_0x4a6f4a[_0x20d14b]);if(_0x4a6f4a!=null&&typeof Object[_0xed7f5d(0x1b8)]=='function'){for(var _0x3ea593=0x0,_0x20d14b=Object['getOwnPropertySymbols'](_0x4a6f4a);_0x3ea593<_0x20d14b['length'];_0x3ea593++)_0x21a8da['indexOf'](_0x20d14b[_0x3ea593])<0x0&&Object[_0xed7f5d(0x1b7)][_0xed7f5d(0x149)]['call'](_0x4a6f4a,_0x20d14b[_0x3ea593])&&(_0x5309a1[_0x20d14b[_0x3ea593]]=_0x4a6f4a[_0x20d14b[_0x3ea593]]);}return _0x5309a1;},W=_0x313345(function(_0x4826df,_0x2e87bf){var _0x2f29cb=_0x351d60,_0x42a1bf=_0x4826df['icon'],_0xa01011=_0x4826df['id'],_0x4742c9=_0x4826df['className'],_0x234a25=_0x4826df['extend'],_0x237405=Ce(_0x4826df,[_0x2f29cb(0x168),'id','className',_0x2f29cb(0x157)]),_0x3cd53f='univerjs-icon\x20univerjs-icon-'[_0x2f29cb(0x187)](_0xa01011,'\x20')[_0x2f29cb(0x187)](_0x4742c9||'')[_0x2f29cb(0x197)](),_0x1f267d=_0xc18a52('_'['concat'](Le()));return Y(_0x42a1bf,''['concat'](_0xa01011),{'defIds':_0x42a1bf['defIds'],'idSuffix':_0x1f267d[_0x2f29cb(0x173)]},c({'ref':_0x2e87bf,'className':_0x3cd53f},_0x237405),_0x234a25);});function Y(_0x572c0e,_0x16a8a3,_0x87fd89,_0x802cf8,_0x1dd164){var _0x21626b=_0x351d60;return _0x57f48a(_0x572c0e[_0x21626b(0x164)],c(c({'key':_0x16a8a3},De(_0x572c0e,_0x87fd89,_0x1dd164)),_0x802cf8),(xe(_0x572c0e,_0x87fd89)['children']||[])[_0x21626b(0x1f3)](function(_0x2adf0b,_0x4d0224){var _0x843ce8=_0x21626b;return Y(_0x2adf0b,''['concat'](_0x16a8a3,'-')[_0x843ce8(0x187)](_0x572c0e['tag'],'-')[_0x843ce8(0x187)](_0x4d0224),_0x87fd89,void 0x0,_0x1dd164);}));}function De(_0x27080c,_0x3da072,_0xca05fe){var _0x536e7b=_0x351d60,_0xf07a0=c({},_0x27080c[_0x536e7b(0x196)]);_0xca05fe!=null&&_0xca05fe[_0x536e7b(0x181)]&&_0xf07a0[_0x536e7b(0x166)]===_0x536e7b(0x181)&&(_0xf07a0['fill']=_0xca05fe[_0x536e7b(0x181)]),_0x27080c[_0x536e7b(0x164)]==='mask'&&_0xf07a0['id']&&(_0xf07a0['id']=_0xf07a0['id']+_0x3da072[_0x536e7b(0x186)]),Object[_0x536e7b(0x150)](_0xf07a0)['forEach'](function(_0x34a393){var _0x40da90=_0x536e7b,_0x52891f=_0x34a393[0x0],_0x416185=_0x34a393[0x1];_0x52891f===_0x40da90(0x16c)&&typeof _0x416185=='string'&&(_0xf07a0[_0x52891f]=_0x416185[_0x40da90(0x17e)](/url\(#(.*)\)/,_0x40da90(0x1a2)['concat'](_0x3da072[_0x40da90(0x186)],')')));});var _0x4780fb=_0x3da072[_0x536e7b(0x1d6)];return!_0x4780fb||_0x4780fb[_0x536e7b(0x189)]===0x0||(_0x27080c[_0x536e7b(0x164)]==='use'&&_0xf07a0[_0x536e7b(0x14f)]&&(_0xf07a0['xlink:href']=_0xf07a0[_0x536e7b(0x14f)]+_0x3da072[_0x536e7b(0x186)]),Object['entries'](_0xf07a0)[_0x536e7b(0x1f4)](function(_0x3c7de2){var _0x1ae81b=_0x536e7b,_0x22beaa=_0x3c7de2[0x0],_0x3fbfe6=_0x3c7de2[0x1];typeof _0x3fbfe6==_0x1ae81b(0x146)&&(_0xf07a0[_0x22beaa]=_0x3fbfe6[_0x1ae81b(0x17e)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x3da072['idSuffix'],')')));})),_0xf07a0;}function xe(_0xa9fdea,_0x1d0c3e){var _0x36192b=_0x351d60,_0x3616a9,_0x32ed88=_0x1d0c3e[_0x36192b(0x1d6)];return!_0x32ed88||_0x32ed88[_0x36192b(0x189)]===0x0?_0xa9fdea:_0xa9fdea[_0x36192b(0x164)]===_0x36192b(0x1a9)&&(!((_0x3616a9=_0xa9fdea[_0x36192b(0x180)])===null||_0x3616a9===void 0x0)&&_0x3616a9[_0x36192b(0x189)])?c(c({},_0xa9fdea),{'children':_0xa9fdea[_0x36192b(0x180)]['map'](function(_0x32a0bd){var _0x13b65f=_0x36192b;return typeof _0x32a0bd[_0x13b65f(0x196)]['id']=='string'&&_0x32ed88&&_0x32ed88[_0x13b65f(0x158)](_0x32a0bd['attrs']['id'])?c(c({},_0x32a0bd),{'attrs':c(c({},_0x32a0bd['attrs']),{'id':_0x32a0bd[_0x13b65f(0x196)]['id']+_0x1d0c3e[_0x13b65f(0x186)]})}):_0x32a0bd;})}):_0xa9fdea;}function Le(){var _0x11fb04=_0x351d60;return Math['random']()[_0x11fb04(0x1cb)](0x24)[_0x11fb04(0x1b3)](0x2,0x8);}W[_0x351d60(0x1ba)]=_0x351d60(0x1d1);var ye={'tag':'svg','attrs':{'xmlns':_0x351d60(0x1b0),'fill':_0x351d60(0x1a8),'viewBox':_0x351d60(0x1e9),'width':_0x351d60(0x159),'height':_0x351d60(0x159)},'children':[{'tag':_0x351d60(0x179),'attrs':{'fill':_0x351d60(0x1e0),'d':_0x351d60(0x1f1)}},{'tag':_0x351d60(0x179),'attrs':{'fill':_0x351d60(0x1e0),'d':_0x351d60(0x1e5),'fillRule':'evenodd','clipRule':_0x351d60(0x198)}}]},B=_0x313345(function(_0x1cebe0,_0x2c6fb5){var _0xaa98f8=_0x351d60;return _0x57f48a(W,Object['assign']({},_0x1cebe0,{'id':_0xaa98f8(0x1d4),'ref':_0x2c6fb5,'icon':ye}));});B[_0x351d60(0x1ba)]='LiveShareIcon';var Re=Object[_0x351d60(0x1be)],Z=(_0x45c92f,_0x354020,_0x4af8f6,_0x5cb222)=>{var _0x2d3a65=_0x351d60;for(var _0xedb37b=_0x5cb222>0x1?void 0x0:_0x5cb222?Re(_0x354020,_0x4af8f6):_0x354020,_0x9a6e72=_0x45c92f[_0x2d3a65(0x189)]-0x1,_0x2d0cc6;_0x9a6e72>=0x0;_0x9a6e72--)(_0x2d0cc6=_0x45c92f[_0x9a6e72])&&(_0xedb37b=_0x2d0cc6(_0xedb37b)||_0xedb37b);return _0xedb37b;},f=(_0x32c8ab,_0x21d72a)=>(_0x3dd1b2,_0xdf9fff)=>_0x21d72a(_0x3dd1b2,_0xdf9fff,_0x32c8ab);let I=class extends _0x603bd6{constructor(_0x1bc6c3,_0x2fbdcd,_0x10b65b){var _0x593a92=_0x351d60;super(),d(this,_0x593a92(0x18d),new Map()),(this[_0x593a92(0x1e4)]=_0x1bc6c3,this[_0x593a92(0x1c5)]=_0x2fbdcd,this[_0x593a92(0x19b)]=_0x10b65b,this['_init']());}async['getLiveShareCoordinator'](_0x41649b){var _0x42114a=_0x351d60;return this['_entities'][_0x42114a(0x1ee)](_0x41649b)||await this[_0x42114a(0x1a0)](_0x41649b),this[_0x42114a(0x18d)][_0x42114a(0x1c4)](_0x41649b);}[_0x351d60(0x18c)](){var _0x332f24=_0x351d60;this[_0x332f24(0x1e4)][_0x332f24(0x1ef)](_0x4d5efd[_0x332f24(0x1ae)])[_0x332f24(0x177)](_0x48f007(this[_0x332f24(0x1a1)]))[_0x332f24(0x1b4)](async _0x3c9659=>{var _0x2d9bdb=_0x332f24;const _0x40d245=_0x3c9659[_0x2d9bdb(0x190)]();this[_0x2d9bdb(0x18d)][_0x2d9bdb(0x1ee)](_0x40d245)||this[_0x2d9bdb(0x1a0)](_0x40d245);}),this[_0x332f24(0x1e4)][_0x332f24(0x15a)](_0x4d5efd[_0x332f24(0x1ae)])[_0x332f24(0x177)](_0x48f007(this[_0x332f24(0x1a1)]))['subscribe'](_0x16b09c=>{var _0x2d5564=_0x332f24;const _0x3922af=_0x16b09c[_0x2d5564(0x190)](),_0x3b7812=this['_entities'][_0x2d5564(0x1c4)](_0x3922af);_0x3b7812==null||_0x3b7812[_0x2d5564(0x1b5)]();});}async['_startLiveShareCoordinator'](_0x5cdf27){var _0x38f116=_0x351d60;const _0x5c2919=await this[_0x38f116(0x19b)]['requireSession'](_0x5cdf27),_0x4b671f=this[_0x38f116(0x1c5)][_0x38f116(0x1ca)](C,_0x5cdf27,_0x5c2919);return _0x4b671f['init'](),this[_0x38f116(0x18d)][_0x38f116(0x19a)](_0x5cdf27,_0x4b671f),_0x4b671f;}};I=Z([f(0x0,_0xe2d3f4),f(0x1,_0x3abca3(_0x3d57c1)),f(0x2,_0x3abca3(_0xc42d8f))],I);var h=(_0x15ab43=>(_0x15ab43[_0x351d60(0x19f)]=_0x351d60(0x1ec),_0x15ab43['IDLE']='idle',_0x15ab43[_0x351d60(0x1a6)]=_0x351d60(0x1ad),_0x15ab43['NOT_FOLLOWING']=_0x351d60(0x178),_0x15ab43[_0x351d60(0x162)]=_0x351d60(0x199),_0x15ab43))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x603bd6{constructor(_0x42a68e,_0x33c978,_0x427774,_0x546007,_0x51a485){var _0xb6f8d7=_0x351d60;super(),d(this,_0xb6f8d7(0x15b),new _0x18832b(_0xb6f8d7(0x1b1))),d(this,'status$',this[_0xb6f8d7(0x15b)][_0xb6f8d7(0x185)]()),d(this,_0xb6f8d7(0x18c),!0x1),d(this,_0xb6f8d7(0x1bf),null),d(this,_0xb6f8d7(0x145),null),(this['_unitID']=_0x42a68e,this[_0xb6f8d7(0x1bb)]=_0x33c978,this[_0xb6f8d7(0x16d)]=_0x427774,this[_0xb6f8d7(0x147)]=_0x546007,this[_0xb6f8d7(0x15d)]=_0x51a485);}get[_0x351d60(0x16b)](){return this['_status$']['getValue']();}[_0x351d60(0x1b5)](){var _0x5ba52f=_0x351d60,_0x35157a;(_0x35157a=this[_0x5ba52f(0x1bf)])==null||_0x35157a[_0x5ba52f(0x1b5)](),this[_0x5ba52f(0x15b)][_0x5ba52f(0x1cd)](_0x5ba52f(0x1b1)),this['_status$'][_0x5ba52f(0x165)]();}[_0x351d60(0x171)](){var _0x50ed1c=_0x351d60;this[_0x50ed1c(0x18c)]||(this[_0x50ed1c(0x18c)]=!0x0,this[_0x50ed1c(0x1bb)][_0x50ed1c(0x1e3)][_0x50ed1c(0x177)](_0x48f007(this['dispose$']))[_0x50ed1c(0x1b4)](_0xc74f39=>{var _0x49d599=_0x50ed1c;switch(_0xc74f39){case _0x5e13a0[_0x49d599(0x19f)]:this[_0x49d599(0x176)]();break;case _0x5e13a0[_0x49d599(0x191)]:this[_0x49d599(0x174)]();break;}}),this['_collabSession']['event$']['pipe'](_0x48f007(this[_0x50ed1c(0x1a1)]))[_0x50ed1c(0x1b4)](_0x20d08e=>{var _0x3ec6e9=_0x50ed1c;const {eventID:_0x4395c0}=_0x20d08e;switch(_0x4395c0){case _0x45c8cc['LIVESHARE_NEW_HOST']:this[_0x3ec6e9(0x169)](_0x20d08e);break;case _0x45c8cc[_0x3ec6e9(0x1e7)]:this[_0x3ec6e9(0x1b2)](_0x20d08e);break;case _0x45c8cc[_0x3ec6e9(0x18a)]:this['_handleTerminate']();break;case _0x45c8cc[_0x3ec6e9(0x1a3)]:this['_handleNewChangeSets'](_0x20d08e);break;}}));}['tryStartPresenting'](){var _0x31f6a8=_0x351d60;this[_0x31f6a8(0x1bb)][_0x31f6a8(0x1ab)]({'eventID':_0x45c8cc[_0x31f6a8(0x1d2)],'data':{'unitID':this[_0x31f6a8(0x194)],'userID':this[_0x31f6a8(0x1bb)][_0x31f6a8(0x14e)]()}},this[_0x31f6a8(0x194)]);}[_0x351d60(0x1df)](){var _0x32b3ed=_0x351d60;this[_0x32b3ed(0x16b)]==='presenting'&&(this[_0x32b3ed(0x15b)]['next'](_0x32b3ed(0x1b1)),this[_0x32b3ed(0x1bb)][_0x32b3ed(0x1ab)]({'eventID':_0x45c8cc[_0x32b3ed(0x18a)],'data':{'unitID':this[_0x32b3ed(0x194)]}},this[_0x32b3ed(0x194)]));}[_0x351d60(0x1f0)](){var _0x19bddf=_0x351d60;this[_0x19bddf(0x16b)]==='not-following'&&(this['_status$']['next'](_0x19bddf(0x1ad)),this[_0x19bddf(0x1c9)]());}[_0x351d60(0x16a)](){var _0x974b71=_0x351d60;this['_status']===_0x974b71(0x1ad)&&this[_0x974b71(0x18f)]();}['_handleNewHost'](_0x1deae4){var _0x11b954=_0x351d60;const {presenter:_0xcc3c99}=_0x1deae4[_0x11b954(0x19d)],_0x3e0b26=this['_collabSession'][_0x11b954(0x14e)]();this['_presenter']=_0xcc3c99,_0xcc3c99===_0x3e0b26?(this[_0x11b954(0x18f)](),this[_0x11b954(0x167)]()):this['_status']!=='not-following'&&(this[_0x11b954(0x14b)](),this[_0x11b954(0x1c9)]());}['_fetchOperations'](){var _0x26a02e=_0x351d60;const _0x100712={'eventID':_0x45c8cc[_0x26a02e(0x163)]};this['_collabSession']['send'](_0x100712,this[_0x26a02e(0x194)]);}[_0x351d60(0x19c)](){var _0x562ca0=_0x351d60;this['_presenter']=null,this['_status']!=='presenting'&&this[_0x562ca0(0x1e8)]();}[_0x351d60(0x156)](_0x51b729){var _0x30914d=_0x351d60;if(this[_0x30914d(0x16b)]===_0x30914d(0x1ad)&&this[_0x30914d(0x145)]===_0x51b729[_0x30914d(0x19d)][_0x30914d(0x144)]){const _0x39ffc2=_0x522c8f(_0x51b729[_0x30914d(0x19d)])['mutations'][_0x30914d(0x1ce)]()[_0x30914d(0x1d8)](_0x13a316=>_0x13a316['id']===_0x4f4864['id']);if(_0x39ffc2){const _0x28520b=_0x39ffc2[_0x30914d(0x1ed)][_0x30914d(0x14d)],_0x5057a2=_0x39ffc2[_0x30914d(0x1ed)][_0x30914d(0x1a5)]['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x561dc1['id'],{'unitId':_0x28520b,'subUnitId':_0x5057a2},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x159763=_0x351d60;this[_0x159763(0x15b)][_0x159763(0x1cd)](_0x159763(0x199));const _0x29bbda=new Map(),_0x382444=this['_commandDisposable']=new _0x4feaf1();_0x382444[_0x159763(0x1cc)](_0x420ae4(()=>{var _0x445305=_0x159763;_0x29bbda[_0x445305(0x1f4)](_0x1d8de1=>_0x1d8de1[_0x445305(0x165)]()),_0x29bbda[_0x445305(0x1b6)]();})),_0x382444['add'](this[_0x159763(0x15d)][_0x159763(0x1d5)](_0x58133c=>{var _0xd2a746=_0x159763,_0x1c3d76;if(_0x58133c['type']!==_0x17a80f[_0xd2a746(0x18e)]||!this[_0xd2a746(0x147)][_0xd2a746(0x160)](_0x58133c['id']))return;const {id:_0x5e9354}=_0x58133c;let _0x4cf3be;_0x29bbda[_0xd2a746(0x1ee)](_0x5e9354)?_0x4cf3be=_0x29bbda['get'](_0x5e9354):(_0x4cf3be=new _0x25a16f(),_0x29bbda['set'](_0x5e9354,_0x4cf3be),_0x4cf3be[_0xd2a746(0x177)](_0xee77ca((_0x1c3d76=this[_0xd2a746(0x16d)][_0xd2a746(0x195)](Pe))!=null?_0x1c3d76:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4f9cbd=>{var _0x53ca8=_0xd2a746;this[_0x53ca8(0x1bb)][_0x53ca8(0x1ab)]({'eventID':_0x45c8cc[_0x53ca8(0x1e7)],'data':{'unitID':this[_0x53ca8(0x194)],'operations':{[_0x4f9cbd['id']]:{'id':_0x4f9cbd['id'],'params':JSON[_0x53ca8(0x1c3)](_0x4f9cbd[_0x53ca8(0x1ed)])}}}},this['_unitID']);})),_0x4cf3be[_0xd2a746(0x1cd)](_0x58133c);})),this[_0x159763(0x147)][_0x159763(0x1c0)](this[_0x159763(0x194)])['forEach'](_0x1404fd=>this[_0x159763(0x1bb)][_0x159763(0x1ab)]({'eventID':_0x45c8cc[_0x159763(0x1e7)],'data':{'unitID':this[_0x159763(0x194)],'operations':{[_0x1404fd['id']]:{'id':_0x1404fd['id'],'params':JSON[_0x159763(0x1c3)](_0x1404fd[_0x159763(0x1ed)])}}}},this[_0x159763(0x194)]));}['_stopPresenting'](){var _0x2c37d9=_0x351d60,_0x4ba27b;this['_status$'][_0x2c37d9(0x1cd)]('idle'),(_0x4ba27b=this['_commandDisposable'])==null||_0x4ba27b[_0x2c37d9(0x1b5)](),this[_0x2c37d9(0x1bf)]=null;}[_0x351d60(0x1c9)](){var _0x4b7293=_0x351d60,_0x3ea8b3;(_0x3ea8b3=this[_0x4b7293(0x1bf)])==null||_0x3ea8b3[_0x4b7293(0x1b5)](),this[_0x4b7293(0x15b)][_0x4b7293(0x1cd)](_0x4b7293(0x1ad));}[_0x351d60(0x1e8)](){var _0x4f7f0f=_0x351d60,_0x502f12;this[_0x4f7f0f(0x15b)][_0x4f7f0f(0x1cd)]('idle'),(_0x502f12=this[_0x4f7f0f(0x1bf)])==null||_0x502f12[_0x4f7f0f(0x1b5)](),this[_0x4f7f0f(0x1bf)]=null;}[_0x351d60(0x18f)](){var _0x3a27e8=_0x351d60,_0x14767d;this[_0x3a27e8(0x15b)][_0x3a27e8(0x1cd)]('not-following'),(_0x14767d=this[_0x3a27e8(0x1bf)])==null||_0x14767d[_0x3a27e8(0x1b5)]();}[_0x351d60(0x1b2)](_0x3d012e){var _0x1e9453=_0x351d60;if([_0x1e9453(0x199),_0x1e9453(0x178),_0x1e9453(0x1ec)][_0x1e9453(0x158)](this['_status'])||!_0x3d012e[_0x1e9453(0x19d)]['presenter']||_0x3d012e[_0x1e9453(0x19d)][_0x1e9453(0x16e)]===this[_0x1e9453(0x1bb)][_0x1e9453(0x14e)]())return;this[_0x1e9453(0x16b)]==='idle'&&this[_0x1e9453(0x1c9)]();const _0x2b2d0b=_0x3d012e['data'][_0x1e9453(0x15e)];Object[_0x1e9453(0x183)](_0x2b2d0b)[_0x1e9453(0x1f4)](_0x49c5d6=>{var _0x30eea5=_0x1e9453;this[_0x30eea5(0x15d)][_0x30eea5(0x192)](_0x49c5d6['id'],_0x49c5d6[_0x30eea5(0x1ed)]?JSON['parse'](_0x49c5d6[_0x30eea5(0x1ed)]):null,{'fromCollab':!0x0});});}[_0x351d60(0x176)](){var _0x1c449a=_0x351d60,_0x1e9e50;this['_status$']['next'](_0x1c449a(0x1ec)),(_0x1e9e50=this[_0x1c449a(0x1bf)])==null||_0x1e9e50['dispose']();}['_handleOnline'](){var _0x5d2211=_0x351d60;this[_0x5d2211(0x15b)][_0x5d2211(0x1cd)](_0x5d2211(0x1b1)),this[_0x5d2211(0x155)]();}};C=Z([f(0x2,_0x5be387),f(0x3,_0x3abca3(L)),f(0x4,_0x236614)],C);function Te(){var _0x5a3bfb=_0x351d60;const _0x1ccd49=_0x247355(I),_0x21c711=_0x247355(_0xe2d3f4),_0x3d57c2=_0x21ae04(()=>_0x21c711['getCurrentTypeOfUnit$'](_0x4d5efd[_0x5a3bfb(0x1ae)]),void 0x0,!0x1,[]),[_0x5af5b0,_0xcc65c3]=_0x2f9e5a(null),[_0xa7b908,_0x1c86a6]=_0x2f9e5a(h[_0x5a3bfb(0x16f)]),_0x2663b3=_0xc18a52(null);return _0x28d068(()=>(_0x3d57c2&&_0x1ccd49[_0x5a3bfb(0x153)](_0x3d57c2[_0x5a3bfb(0x190)]())[_0x5a3bfb(0x1d9)](_0x3e7446=>{var _0x29a76d=_0x5a3bfb;_0xcc65c3(_0x3e7446),_0x2663b3['current']=_0x3e7446[_0x29a76d(0x17d)]['subscribe'](_0x3d6218=>{_0x1c86a6(_0x3d6218);});}),()=>{var _0x33543b=_0x5a3bfb,_0xe84aff;(_0xe84aff=_0x2663b3['current'])==null||_0xe84aff[_0x33543b(0x1da)](),_0x2663b3['current']=null;}),[_0x3d57c2,_0x1ccd49]),_0x5af5b0?_0x37aa2b(_0x5f162c,{'align':_0x5a3bfb(0x1bd),'disabled':_0xa7b908===h['OFFLINE'],'className':_0x5a3bfb(0x143),'overlay':_0x37aa2b($e,{'status':_0xa7b908,'coordinator':_0x5af5b0}),'children':_0x37aa2b('button',{'className':_0x53843f(_0x5a3bfb(0x1f2),{'univer-cursor-not-allowed':_0xa7b908===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xa7b908!==h[_0x5a3bfb(0x19f)]}),'type':'button','children':_0x37aa2b(B,{'className':_0x5a3bfb(0x1a7)})})}):null;}function $e(_0x3d7363){var _0x542f01=_0x351d60;const {status:_0x58664e,coordinator:_0x5c4fe9}=_0x3d7363;switch(_0x58664e){case h[_0x542f01(0x16f)]:return _0x37aa2b(Fe,{'coordinator':_0x5c4fe9});case h[_0x542f01(0x1a6)]:return _0x37aa2b(He,{'coordinator':_0x5c4fe9});case h[_0x542f01(0x193)]:return _0x37aa2b(je,{'coordinator':_0x5c4fe9});case h['OFFLINE']:return _0x37aa2b(Ve,{});case h[_0x542f01(0x162)]:return _0x37aa2b(Ue,{'coordinator':_0x5c4fe9});default:return null;}}function Fe(_0x1926d9){var _0x4452c2=_0x351d60;const {coordinator:_0x5531de}=_0x1926d9;return _0x2c44bf(_0x3db7a5,{'children':[_0x37aa2b(_0x4452c2(0x18b),{'className':_0x4452c2(0x188),'children':_0x4452c2(0x1d7)}),_0x37aa2b(_0x2ee079,{'onClick':()=>_0x5531de[_0x4452c2(0x154)](),'children':_0x4452c2(0x161)})]});}function He(_0x2bcad2){var _0x4fac49=_0x351d60;const {coordinator:_0x17a3ee}=_0x2bcad2;return _0x2c44bf(_0x3db7a5,{'children':[_0x37aa2b(_0x4fac49(0x18b),{'className':_0x4fac49(0x188),'children':_0x4fac49(0x1e6)}),_0x37aa2b(_0x2ee079,{'onClick':()=>_0x17a3ee[_0x4fac49(0x16a)](),'children':_0x4fac49(0x1a4)})]});}function je(_0x29af5e){var _0x48fca9=_0x351d60;const {coordinator:_0x726358}=_0x29af5e;return _0x2c44bf(_0x3db7a5,{'children':[_0x37aa2b(_0x48fca9(0x18b),{'className':_0x48fca9(0x188),'children':_0x48fca9(0x1eb)}),_0x37aa2b(_0x2ee079,{'variant':_0x48fca9(0x1af),'onClick':()=>_0x726358[_0x48fca9(0x1f0)](),'children':_0x48fca9(0x1ea)})]});}function Ue(_0x1f2b97){var _0x5ac823=_0x351d60;const {coordinator:_0x1cb7d0}=_0x1f2b97;return _0x2c44bf(_0x3db7a5,{'children':[_0x37aa2b(_0x5ac823(0x18b),{'className':_0x5ac823(0x188),'children':_0x5ac823(0x1dc)}),_0x37aa2b(_0x2ee079,{'variant':'default','onClick':()=>_0x1cb7d0['stopPresenting'](),'children':_0x5ac823(0x182)})]});}function Ve(){var _0x538e5d=_0x351d60;return _0x37aa2b(_0x3db7a5,{'children':_0x538e5d(0x1d0)});}var Me=Object[_0x351d60(0x1be)],ke=(_0x34df80,_0x7604c8,_0x400b67,_0x25bab7)=>{var _0xb254b6=_0x351d60;for(var _0x2f8102=_0x25bab7>0x1?void 0x0:_0x25bab7?Me(_0x7604c8,_0x400b67):_0x7604c8,_0x4175f3=_0x34df80[_0xb254b6(0x189)]-0x1,_0x344cb8;_0x4175f3>=0x0;_0x4175f3--)(_0x344cb8=_0x34df80[_0x4175f3])&&(_0x2f8102=_0x344cb8(_0x2f8102)||_0x2f8102);return _0x2f8102;},$=(_0x39b57a,_0x74a61c)=>(_0x424acd,_0x52eb3c)=>_0x74a61c(_0x424acd,_0x52eb3c,_0x39b57a);let b=class extends _0x224e4c{constructor(_0x55a9d2,_0x34b986){var _0x559de6=_0x351d60;super(),this[_0x559de6(0x1c5)]=_0x55a9d2,this[_0x559de6(0x1c8)]=_0x34b986,this[_0x559de6(0x175)]();}[_0x351d60(0x175)](){var _0x151a72=_0x351d60;this['disposeWithMe'](this[_0x151a72(0x1c8)][_0x151a72(0x1db)](_0x4ca9bf[_0x151a72(0x1f5)],()=>_0x32a071(Te,this[_0x151a72(0x1c5)])));}};b=ke([$(0x0,_0x3abca3(_0x3d57c1)),$(0x1,_0x230a4f)],b);var Ge=Object[_0x351d60(0x17f)],We=Object[_0x351d60(0x1be)],Ye=(_0xe8d861,_0x59cacd,_0x54c48c)=>_0x59cacd in _0xe8d861?Ge(_0xe8d861,_0x59cacd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54c48c}):_0xe8d861[_0x59cacd]=_0x54c48c,Be=(_0x171c52,_0x2780dd,_0x445de9,_0x30dacd)=>{var _0x4891ce=_0x351d60;for(var _0x1797d1=_0x30dacd>0x1?void 0x0:_0x30dacd?We(_0x2780dd,_0x445de9):_0x2780dd,_0x176d02=_0x171c52[_0x4891ce(0x189)]-0x1,_0x12d568;_0x176d02>=0x0;_0x176d02--)(_0x12d568=_0x171c52[_0x176d02])&&(_0x1797d1=_0x12d568(_0x1797d1)||_0x1797d1);return _0x1797d1;},F=(_0xd81a3a,_0x198ee9)=>(_0x4afe72,_0x1c5b78)=>_0x198ee9(_0x4afe72,_0x1c5b78,_0xd81a3a),J=(_0x4d826a,_0x4b0cf0,_0x31876f)=>Ye(_0x4d826a,typeof _0x4b0cf0!=_0x351d60(0x1cf)?_0x4b0cf0+'':_0x4b0cf0,_0x31876f);const Ze=_0x351d60(0x1bc);let O=class extends _0x599154{constructor(_0x29abb2=T,_0x263e40,_0x2732a8){var _0x3e7af6=_0x351d60;super(),this[_0x3e7af6(0x1aa)]=_0x29abb2,this[_0x3e7af6(0x1c5)]=_0x263e40,this[_0x3e7af6(0x16d)]=_0x2732a8;const {..._0x5771c1}=_0x75c717({},T,this[_0x3e7af6(0x1aa)]);this[_0x3e7af6(0x16d)][_0x3e7af6(0x184)](Oe,_0x5771c1);}[_0x351d60(0x17c)](){var _0x3b2fb7=_0x351d60;_0x5bf58d(this['_injector'],_0x38e8e6([[L],[I],[m],[b]],this['_config']['override'])),_0x281800(this[_0x3b2fb7(0x1c5)],[[m]]);}[_0x351d60(0x1dd)](){var _0x227f11=_0x351d60;_0x281800(this[_0x227f11(0x1c5)],[[b]]);}};function _0x5600(_0x49bd8d,_0x394706){var _0x2b53ef=_0x2b53();return _0x5600=function(_0x560029,_0x471ecd){_0x560029=_0x560029-0x143;var _0x37baa4=_0x2b53ef[_0x560029];return _0x37baa4;},_0x5600(_0x49bd8d,_0x394706);}J(O,_0x351d60(0x148),_0x4d5efd['UNIVER_UNKNOWN']),J(O,_0x351d60(0x19e),Ze),O=Be([_0x2195b7(_0x29bcfe),F(0x1,_0x3abca3(_0x3d57c1)),F(0x2,_0x5be387)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0xb92f10=_0x40cd;(function(_0x1d5fe8,_0x321b6a){var _0x34c34d=_0x40cd,_0x212d08=_0x1d5fe8();while(!![]){try{var _0x361c5c=parseInt(_0x34c34d(0x153))/0x1*(parseInt(_0x34c34d(0x18e))/0x2)+parseInt(_0x34c34d(0x144))/0x3+-parseInt(_0x34c34d(0x1a6))/0x4+-parseInt(_0x34c34d(0x1a2))/0x5*(parseInt(_0x34c34d(0x1a8))/0x6)+parseInt(_0x34c34d(0x158))/0x7+-parseInt(_0x34c34d(0x187))/0x8*(parseInt(_0x34c34d(0x15d))/0x9)+parseInt(_0x34c34d(0x1a3))/0xa*(-parseInt(_0x34c34d(0x168))/0xb);if(_0x361c5c===_0x321b6a)break;else _0x212d08['push'](_0x212d08['shift']());}catch(_0x509112){_0x212d08['push'](_0x212d08['shift']());}}}(_0x1835,0xaca11));var q=Object[_0xb92f10(0x177)],z=(_0x2cbb61,_0x297940,_0x56228f)=>_0x297940 in _0x2cbb61?q(_0x2cbb61,_0x297940,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56228f}):_0x2cbb61[_0x297940]=_0x56228f,d=(_0x3899b7,_0x466d8c,_0xdf0b8d)=>z(_0x3899b7,typeof _0x466d8c!=_0xb92f10(0x1bb)?_0x466d8c+'':_0x466d8c,_0xdf0b8d);import{CollaborationSessionService as _0x43df75,SessionStatus as _0x23f1bd,UniverCollaborationClientPlugin as _0x310bfc}from'@univerjs-pro/collaboration-client';import{Disposable as _0x36aa7d,toDisposable as _0x11b934,Inject as _0x40f46e,IUniverInstanceService as _0xa30500,Injector as _0x59c839,IConfigService as _0x57314a,ICommandService as _0x282f21,RxDisposable as _0x33764c,UniverInstanceType as _0x3bf8f0,DisposableCollection as _0x413621,CommandType as _0x3a232d,DependentOn as _0x35512a,Plugin as _0x3de4ee,merge as _0x50e9af,registerDependencies as _0x4118c1,mergeOverrideWithDependencies as _0x1a4071,touchDependencies as _0x179b9a}from'@univerjs/core';import{SetWorksheetActiveOperation as _0xe638c0,InsertSheetMutation as _0xec3140}from'@univerjs/sheets';import{SetZoomRatioOperation as _0xf771a5,SetScrollOperation as _0x49a064}from'@univerjs/sheets-ui';import{useDependency as _0xc15240,useObservable as _0x224427,IUIPartsService as _0x90b79,BuiltInUIPart as _0xecae90,connectInjector as _0x195715}from'@univerjs/ui';import{jsx as _0x438b6c,jsxs as _0x15c1f5,Fragment as _0x240eb3}from'react/jsx-runtime';import{Dropdown as _0x4e7389,clsx as _0x516079,Button as _0x598980}from'@univerjs/design';import{forwardRef as _0x9db80c,useRef as _0x5c0ac1,createElement as _0x1cbdc0,useState as _0x566493,useEffect as _0x125e83}from'react';import{CollaborationEvent as _0x23142e,parseProtocolChangeset as _0x30577f}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x40c84d,Subject as _0x4d13be}from'rxjs';import{takeUntil as _0x155f84,throttleTime as _0x36ebc9}from'rxjs/operators';const Oe=_0xb92f10(0x179),T={};class L extends _0x36aa7d{constructor(){var _0x1eff34=_0xb92f10;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x1eff34(0x1d1),new Set());}[_0xb92f10(0x194)](_0xe0ac1e){var _0x1de3a5=_0xb92f10;return this['_sharedOperations']['add'](_0xe0ac1e),_0x11b934(()=>this['_sharedOperations'][_0x1de3a5(0x16c)](_0xe0ac1e));}[_0xb92f10(0x169)](_0x57bf88){var _0xa7feee=_0xb92f10;return this[_0xa7feee(0x1d1)]['add'](_0x57bf88),_0x11b934(()=>this[_0xa7feee(0x1d1)][_0xa7feee(0x16c)](_0x57bf88));}[_0xb92f10(0x16f)](_0x2adc2f){var _0x54c85d=_0xb92f10;return this[_0x54c85d(0x1d8)][_0x54c85d(0x136)](_0x2adc2f);}[_0xb92f10(0x142)](_0x5b204d){var _0x53483b=_0xb92f10;return Array[_0x53483b(0x1af)](this[_0x53483b(0x1d1)])['map'](_0x3276ac=>_0x3276ac(_0x5b204d));}}var Ee=Object[_0xb92f10(0x137)],we=(_0x254359,_0xd46257,_0xabd90a,_0x563cc2)=>{for(var _0x43bfc3=_0x563cc2>0x1?void 0x0:_0x563cc2?Ee(_0xd46257,_0xabd90a):_0xd46257,_0x1586cc=_0x254359['length']-0x1,_0x48c241;_0x1586cc>=0x0;_0x1586cc--)(_0x48c241=_0x254359[_0x1586cc])&&(_0x43bfc3=_0x48c241(_0x43bfc3)||_0x43bfc3);return _0x43bfc3;},Ne=(_0x8e92ab,_0x4ddec3)=>(_0x49d106,_0x5b0016)=>_0x4ddec3(_0x49d106,_0x5b0016,_0x8e92ab);let m=class extends _0x36aa7d{constructor(_0x3a7211){var _0x47e6df=_0xb92f10;super(),this[_0x47e6df(0x1a5)]=_0x3a7211,this['_init']();}[_0xb92f10(0x141)](){var _0x98ffaa=_0xb92f10;[_0xf771a5['id'],_0x49a064['id'],_0xe638c0['id']][_0x98ffaa(0x193)](_0x147004=>{var _0x491994=_0x98ffaa;this[_0x491994(0x1c9)](this[_0x491994(0x1a5)][_0x491994(0x194)](_0x147004));});}};m=we([Ne(0x0,_0x40f46e(L))],m);var c=function(){var _0x4568a5=_0xb92f10;return c=Object['assign']||function(_0x2507e3){var _0x210958=_0x40cd;for(var _0x1f935e,_0x305da6=0x1,_0x4b05b2=arguments[_0x210958(0x128)];_0x305da6<_0x4b05b2;_0x305da6++){_0x1f935e=arguments[_0x305da6];for(var _0x1a0589 in _0x1f935e)Object[_0x210958(0x17d)][_0x210958(0x1cf)]['call'](_0x1f935e,_0x1a0589)&&(_0x2507e3[_0x1a0589]=_0x1f935e[_0x1a0589]);}return _0x2507e3;},c[_0x4568a5(0x185)](this,arguments);},Ce=function(_0x48d83c,_0x4b31f8){var _0x44fee6=_0xb92f10,_0x558944={};for(var _0x3e3918 in _0x48d83c)Object[_0x44fee6(0x17d)]['hasOwnProperty'][_0x44fee6(0x151)](_0x48d83c,_0x3e3918)&&_0x4b31f8[_0x44fee6(0x1c4)](_0x3e3918)<0x0&&(_0x558944[_0x3e3918]=_0x48d83c[_0x3e3918]);if(_0x48d83c!=null&&typeof Object[_0x44fee6(0x1c3)]==_0x44fee6(0x18f)){for(var _0xc96f65=0x0,_0x3e3918=Object[_0x44fee6(0x1c3)](_0x48d83c);_0xc96f65<_0x3e3918[_0x44fee6(0x128)];_0xc96f65++)_0x4b31f8[_0x44fee6(0x1c4)](_0x3e3918[_0xc96f65])<0x0&&Object[_0x44fee6(0x17d)][_0x44fee6(0x1bf)][_0x44fee6(0x151)](_0x48d83c,_0x3e3918[_0xc96f65])&&(_0x558944[_0x3e3918[_0xc96f65]]=_0x48d83c[_0x3e3918[_0xc96f65]]);}return _0x558944;},W=_0x9db80c(function(_0x9057ee,_0x4ec540){var _0x1c775d=_0xb92f10,_0x536ac7=_0x9057ee[_0x1c775d(0x14a)],_0x56a88d=_0x9057ee['id'],_0x36d0e0=_0x9057ee[_0x1c775d(0x15f)],_0x3d07f8=_0x9057ee[_0x1c775d(0x157)],_0x1a6c5a=Ce(_0x9057ee,['icon','id','className','extend']),_0x2323c2='univerjs-icon\x20univerjs-icon-'['concat'](_0x56a88d,'\x20')[_0x1c775d(0x1ce)](_0x36d0e0||'')[_0x1c775d(0x132)](),_0x2433bc=_0x5c0ac1('_'['concat'](Le()));return Y(_0x536ac7,''[_0x1c775d(0x1ce)](_0x56a88d),{'defIds':_0x536ac7[_0x1c775d(0x170)],'idSuffix':_0x2433bc[_0x1c775d(0x1ae)]},c({'ref':_0x4ec540,'className':_0x2323c2},_0x1a6c5a),_0x3d07f8);});function Y(_0xc5ee4,_0x1f1d92,_0x41078d,_0x29bef0,_0x4209e9){var _0x329e48=_0xb92f10;return _0x1cbdc0(_0xc5ee4['tag'],c(c({'key':_0x1f1d92},De(_0xc5ee4,_0x41078d,_0x4209e9)),_0x29bef0),(xe(_0xc5ee4,_0x41078d)['children']||[])[_0x329e48(0x129)](function(_0x289626,_0x235d58){var _0x145203=_0x329e48;return Y(_0x289626,''[_0x145203(0x1ce)](_0x1f1d92,'-')[_0x145203(0x1ce)](_0xc5ee4['tag'],'-')[_0x145203(0x1ce)](_0x235d58),_0x41078d,void 0x0,_0x4209e9);}));}function De(_0x1e8fbc,_0x41b888,_0x16d0c2){var _0x1c3bdb=_0xb92f10,_0x1d304e=c({},_0x1e8fbc[_0x1c3bdb(0x1d5)]);_0x16d0c2!=null&&_0x16d0c2['colorChannel1']&&_0x1d304e[_0x1c3bdb(0x188)]==='colorChannel1'&&(_0x1d304e['fill']=_0x16d0c2[_0x1c3bdb(0x175)]),_0x1e8fbc[_0x1c3bdb(0x12c)]===_0x1c3bdb(0x12b)&&_0x1d304e['id']&&(_0x1d304e['id']=_0x1d304e['id']+_0x41b888[_0x1c3bdb(0x195)]),Object['entries'](_0x1d304e)['forEach'](function(_0x2b1512){var _0x4e6e09=_0x1c3bdb,_0x1fcd60=_0x2b1512[0x0],_0x5e286c=_0x2b1512[0x1];_0x1fcd60===_0x4e6e09(0x12b)&&typeof _0x5e286c==_0x4e6e09(0x150)&&(_0x1d304e[_0x1fcd60]=_0x5e286c[_0x4e6e09(0x152)](/url\(#(.*)\)/,_0x4e6e09(0x18d)[_0x4e6e09(0x1ce)](_0x41b888[_0x4e6e09(0x195)],')')));});var _0x4660cc=_0x41b888[_0x1c3bdb(0x170)];return!_0x4660cc||_0x4660cc[_0x1c3bdb(0x128)]===0x0||(_0x1e8fbc['tag']===_0x1c3bdb(0x19b)&&_0x1d304e['xlink:href']&&(_0x1d304e[_0x1c3bdb(0x1ad)]=_0x1d304e[_0x1c3bdb(0x1ad)]+_0x41b888[_0x1c3bdb(0x195)]),Object['entries'](_0x1d304e)['forEach'](function(_0x236db0){var _0x23e7a5=_0x1c3bdb,_0x1cf9b0=_0x236db0[0x0],_0x37bb1f=_0x236db0[0x1];typeof _0x37bb1f=='string'&&(_0x1d304e[_0x1cf9b0]=_0x37bb1f[_0x23e7a5(0x152)](/url\(#(.*)\)/,_0x23e7a5(0x18d)['concat'](_0x41b888[_0x23e7a5(0x195)],')')));})),_0x1d304e;}function _0x1835(){var _0x377475=['registerSharedOperation','idSuffix','_commandDisposable','currentColor','1em','_collabSessionService','NOT_FOLLOWING','use','none','getConfig','_startPresenting','init','registerComponent','data','70emAAvX','10uBSsOR','mutations','_liveShareService','99968GQFIhB','executeCommand','168066qSxQZk','_fetchOperations','You\x27re\x20following\x20the\x20presenter','getMemberID','createInstance','xlink:href','current','from','FOLLOWING','values','_status$','HEADER_MENU','complete','clear','offline','send','presenting','next','default','symbol','params','_handleTerminate','_stopFollowing','propertyIsEnumerable','substring','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','_startFollowing','getOwnPropertySymbols','indexOf','setConfig','assign','_unitID','parse','disposeWithMe','_entities','onStarting','subscribe','_collabSession','concat','hasOwnProperty','_mountLiveShare','_reporters','PRESENTING','dispose','stopFollowing','attrs','UNIVER_UNKNOWN','LIVESHARE_TERMINATE','_sharedOperations','reverse','end','type','0\x200\x2017\x2017','_handleNewChangeSets','length','map','_uiPartsService','mask','tag','You\x27re\x20presenting\x20the\x20document','_startLiveShareCoordinator','text','dispose$','_presenter','trim','You\x27re\x20not\x20following\x20the\x20presenter','presenter','Present\x20this\x20document','has','getOwnPropertyDescriptor','getLiveShareCoordinator','sessionStatus$','getValue','live-share-icon','override','_handleOperation','tryStartPresenting','then','pipe','_init','getInitialStates','UNIVER_SHEET','589641GlhrpP','add','children','onRendered','status$','_commandService','icon','find','random','OFFLINE','operations','pluginName','string','call','replace','173919VDWuyY','_configService','UNIVER_LIVE_SHARE_PLUGIN','not-following','extend','4223429JzwmVJ','_handleOffline','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','div','_univerInstanceService','74889FBeyAt','get','className','UniverIcon','_beIdle','unsubscribe','_injector','idle','stringify','Stop\x20presenting','defs','5357077IEcUZY','registerInitialStateReporter','event$','OPERATION','delete','set','LIVESHARE_NEW_HOST','shouldShareOperation','defIds','Start\x20following','IDLE','_status','_handleOnline','colorChannel1','displayName','defineProperty','unitId','live-share.config','getUnitId','stopPresenting','sheet','prototype','LIVESHARE_OPERATION','svg','_config','startFollowing','getCurrentTypeOfUnit$','ONLINE','univer-w-full\x20univer-mb-3\x20univer-text-sm','apply','following','56JMTvSW','fill','SAME_OPERATION_SHARE_INTERVAL','univer-size-4','path','Start','url(#$1','10qxoMul','function','button','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','_handleNewHost','forEach'];_0x1835=function(){return _0x377475;};return _0x1835();}function xe(_0x2c34df,_0x7bee95){var _0x163f6b=_0xb92f10,_0x103cc6,_0x562cce=_0x7bee95[_0x163f6b(0x170)];return!_0x562cce||_0x562cce[_0x163f6b(0x128)]===0x0?_0x2c34df:_0x2c34df[_0x163f6b(0x12c)]===_0x163f6b(0x167)&&(!((_0x103cc6=_0x2c34df[_0x163f6b(0x146)])===null||_0x103cc6===void 0x0)&&_0x103cc6[_0x163f6b(0x128)])?c(c({},_0x2c34df),{'children':_0x2c34df[_0x163f6b(0x146)][_0x163f6b(0x129)](function(_0x42e7c8){var _0x4be909=_0x163f6b;return typeof _0x42e7c8[_0x4be909(0x1d5)]['id']==_0x4be909(0x150)&&_0x562cce&&_0x562cce['includes'](_0x42e7c8[_0x4be909(0x1d5)]['id'])?c(c({},_0x42e7c8),{'attrs':c(c({},_0x42e7c8[_0x4be909(0x1d5)]),{'id':_0x42e7c8[_0x4be909(0x1d5)]['id']+_0x7bee95[_0x4be909(0x195)]})}):_0x42e7c8;})}):_0x2c34df;}function Le(){var _0x1d0599=_0xb92f10;return Math[_0x1d0599(0x14c)]()['toString'](0x24)[_0x1d0599(0x1c0)](0x2,0x8);}W[_0xb92f10(0x176)]=_0xb92f10(0x160);var ye={'tag':_0xb92f10(0x17f),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xb92f10(0x19c),'viewBox':_0xb92f10(0x126),'width':'1em','height':_0xb92f10(0x198)},'children':[{'tag':_0xb92f10(0x18b),'attrs':{'fill':_0xb92f10(0x197),'d':_0xb92f10(0x191)}},{'tag':_0xb92f10(0x18b),'attrs':{'fill':_0xb92f10(0x197),'d':_0xb92f10(0x15a),'fillRule':'evenodd','clipRule':'evenodd'}}]},B=_0x9db80c(function(_0x3ab730,_0x4cb993){var _0x1ded31=_0xb92f10;return _0x1cbdc0(W,Object[_0x1ded31(0x1c6)]({},_0x3ab730,{'id':_0x1ded31(0x13b),'ref':_0x4cb993,'icon':ye}));});B[_0xb92f10(0x176)]='LiveShareIcon';var Re=Object[_0xb92f10(0x137)],Z=(_0x593028,_0x3050ce,_0x1b6151,_0x3ef43a)=>{var _0x81c880=_0xb92f10;for(var _0x55e21a=_0x3ef43a>0x1?void 0x0:_0x3ef43a?Re(_0x3050ce,_0x1b6151):_0x3050ce,_0x3eab2e=_0x593028[_0x81c880(0x128)]-0x1,_0x57018c;_0x3eab2e>=0x0;_0x3eab2e--)(_0x57018c=_0x593028[_0x3eab2e])&&(_0x55e21a=_0x57018c(_0x55e21a)||_0x55e21a);return _0x55e21a;},f=(_0x56115a,_0x2b9545)=>(_0x369eca,_0xc8ff29)=>_0x2b9545(_0x369eca,_0xc8ff29,_0x56115a);function _0x40cd(_0x5237a4,_0x379b98){var _0x183531=_0x1835();return _0x40cd=function(_0x40cd0a,_0x2ef57b){_0x40cd0a=_0x40cd0a-0x125;var _0x497df8=_0x183531[_0x40cd0a];return _0x497df8;},_0x40cd(_0x5237a4,_0x379b98);}let I=class extends _0x33764c{constructor(_0x597ecb,_0x11177b,_0x3793d5){var _0x17ff2a=_0xb92f10;super(),d(this,_0x17ff2a(0x1ca),new Map()),(this[_0x17ff2a(0x15c)]=_0x597ecb,this[_0x17ff2a(0x163)]=_0x11177b,this[_0x17ff2a(0x199)]=_0x3793d5,this['_init']());}async[_0xb92f10(0x138)](_0x16453e){var _0x32ce4d=_0xb92f10;return this[_0x32ce4d(0x1ca)]['has'](_0x16453e)||await this[_0x32ce4d(0x12e)](_0x16453e),this['_entities'][_0x32ce4d(0x15e)](_0x16453e);}[_0xb92f10(0x141)](){var _0xab905c=_0xb92f10;this[_0xab905c(0x15c)]['getTypeOfUnitAdded$'](_0x3bf8f0[_0xab905c(0x143)])[_0xab905c(0x140)](_0x155f84(this['dispose$']))[_0xab905c(0x1cc)](async _0x85107f=>{var _0x2cdd68=_0xab905c;const _0x4ff2e2=_0x85107f['getUnitId']();this[_0x2cdd68(0x1ca)][_0x2cdd68(0x136)](_0x4ff2e2)||this['_startLiveShareCoordinator'](_0x4ff2e2);}),this[_0xab905c(0x15c)]['getTypeOfUnitDisposed$'](_0x3bf8f0[_0xab905c(0x143)])[_0xab905c(0x140)](_0x155f84(this['dispose$']))[_0xab905c(0x1cc)](_0x56e824=>{var _0x1da675=_0xab905c;const _0x32cf80=_0x56e824['getUnitId'](),_0x6c6e3=this['_entities'][_0x1da675(0x15e)](_0x32cf80);_0x6c6e3==null||_0x6c6e3[_0x1da675(0x1d3)]();});}async['_startLiveShareCoordinator'](_0x3b5a27){var _0x407cb9=_0xb92f10;const _0x55fa59=await this['_collabSessionService']['requireSession'](_0x3b5a27),_0x5ce173=this[_0x407cb9(0x163)][_0x407cb9(0x1ac)](C,_0x3b5a27,_0x55fa59);return _0x5ce173['init'](),this[_0x407cb9(0x1ca)]['set'](_0x3b5a27,_0x5ce173),_0x5ce173;}};I=Z([f(0x0,_0xa30500),f(0x1,_0x40f46e(_0x59c839)),f(0x2,_0x40f46e(_0x43df75))],I);var h=(_0x1fe2b8=>(_0x1fe2b8[_0xb92f10(0x14d)]=_0xb92f10(0x1b6),_0x1fe2b8['IDLE']=_0xb92f10(0x164),_0x1fe2b8['FOLLOWING']=_0xb92f10(0x186),_0x1fe2b8[_0xb92f10(0x19a)]=_0xb92f10(0x156),_0x1fe2b8[_0xb92f10(0x1d2)]=_0xb92f10(0x1b8),_0x1fe2b8))(h||{});const Pe=_0xb92f10(0x189),Ae=0xc8;let C=class extends _0x33764c{constructor(_0x4e0cc7,_0x49e3bf,_0x450c2f,_0x4e06ed,_0x15c36f){var _0xc75c54=_0xb92f10;super(),d(this,'_status$',new _0x40c84d(_0xc75c54(0x164))),d(this,_0xc75c54(0x148),this[_0xc75c54(0x1b2)]['asObservable']()),d(this,_0xc75c54(0x141),!0x1),d(this,'_commandDisposable',null),d(this,_0xc75c54(0x131),null),(this[_0xc75c54(0x1c7)]=_0x4e0cc7,this[_0xc75c54(0x1cd)]=_0x49e3bf,this[_0xc75c54(0x154)]=_0x450c2f,this[_0xc75c54(0x1a5)]=_0x4e06ed,this[_0xc75c54(0x149)]=_0x15c36f);}get[_0xb92f10(0x173)](){var _0x28741c=_0xb92f10;return this[_0x28741c(0x1b2)][_0x28741c(0x13a)]();}[_0xb92f10(0x1d3)](){var _0x382092=_0xb92f10,_0x35f529;(_0x35f529=this[_0x382092(0x196)])==null||_0x35f529[_0x382092(0x1d3)](),this[_0x382092(0x1b2)][_0x382092(0x1b9)](_0x382092(0x164)),this[_0x382092(0x1b2)]['complete']();}[_0xb92f10(0x19f)](){var _0x144733=_0xb92f10;this[_0x144733(0x141)]||(this[_0x144733(0x141)]=!0x0,this[_0x144733(0x1cd)][_0x144733(0x139)][_0x144733(0x140)](_0x155f84(this[_0x144733(0x130)]))[_0x144733(0x1cc)](_0x54b933=>{var _0x1368d4=_0x144733;switch(_0x54b933){case _0x23f1bd[_0x1368d4(0x14d)]:this['_handleOffline']();break;case _0x23f1bd[_0x1368d4(0x183)]:this[_0x1368d4(0x174)]();break;}}),this[_0x144733(0x1cd)][_0x144733(0x16a)][_0x144733(0x140)](_0x155f84(this[_0x144733(0x130)]))[_0x144733(0x1cc)](_0x3d47ae=>{var _0x25e5b9=_0x144733;const {eventID:_0x42f1e7}=_0x3d47ae;switch(_0x42f1e7){case _0x23142e[_0x25e5b9(0x16e)]:this[_0x25e5b9(0x192)](_0x3d47ae);break;case _0x23142e['LIVESHARE_OPERATION']:this[_0x25e5b9(0x13d)](_0x3d47ae);break;case _0x23142e[_0x25e5b9(0x1d7)]:this[_0x25e5b9(0x1bd)]();break;case _0x23142e['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x3d47ae);break;}}));}['tryStartPresenting'](){var _0x1d2ac2=_0xb92f10;this[_0x1d2ac2(0x1cd)][_0x1d2ac2(0x1b7)]({'eventID':_0x23142e['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x1d2ac2(0x1c7)],'userID':this[_0x1d2ac2(0x1cd)]['getMemberID']()}},this[_0x1d2ac2(0x1c7)]);}[_0xb92f10(0x17b)](){var _0x1407c6=_0xb92f10;this['_status']===_0x1407c6(0x1b8)&&(this[_0x1407c6(0x1b2)][_0x1407c6(0x1b9)](_0x1407c6(0x164)),this[_0x1407c6(0x1cd)][_0x1407c6(0x1b7)]({'eventID':_0x23142e[_0x1407c6(0x1d7)],'data':{'unitID':this[_0x1407c6(0x1c7)]}},this['_unitID']));}[_0xb92f10(0x181)](){var _0x534ee8=_0xb92f10;this[_0x534ee8(0x173)]===_0x534ee8(0x156)&&(this[_0x534ee8(0x1b2)][_0x534ee8(0x1b9)]('following'),this[_0x534ee8(0x1c2)]());}[_0xb92f10(0x1d4)](){var _0x5b5e83=_0xb92f10;this['_status']===_0x5b5e83(0x186)&&this[_0x5b5e83(0x1be)]();}['_handleNewHost'](_0x14841f){var _0x46c794=_0xb92f10;const {presenter:_0x4796a}=_0x14841f[_0x46c794(0x1a1)],_0x172de8=this[_0x46c794(0x1cd)][_0x46c794(0x1ab)]();this[_0x46c794(0x131)]=_0x4796a,_0x4796a===_0x172de8?(this[_0x46c794(0x1be)](),this[_0x46c794(0x19e)]()):this[_0x46c794(0x173)]!=='not-following'&&(this['_stopPresenting'](),this[_0x46c794(0x1c2)]());}[_0xb92f10(0x1a9)](){var _0x561d47=_0xb92f10;const _0x1c4069={'eventID':_0x23142e['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x561d47(0x1b7)](_0x1c4069,this[_0x561d47(0x1c7)]);}[_0xb92f10(0x1bd)](){var _0x225761=_0xb92f10;this[_0x225761(0x131)]=null,this[_0x225761(0x173)]!==_0x225761(0x1b8)&&this[_0x225761(0x161)]();}[_0xb92f10(0x127)](_0x26cc81){var _0x2de87f=_0xb92f10;if(this[_0x2de87f(0x173)]===_0x2de87f(0x186)&&this[_0x2de87f(0x131)]===_0x26cc81[_0x2de87f(0x1a1)]['memberID']){const _0x42f544=_0x30577f(_0x26cc81['data'])[_0x2de87f(0x1a4)][_0x2de87f(0x1d9)]()[_0x2de87f(0x14b)](_0x3ee59c=>_0x3ee59c['id']===_0xec3140['id']);if(_0x42f544){const _0x56cb7a=_0x42f544[_0x2de87f(0x1bc)][_0x2de87f(0x178)],_0x23690d=_0x42f544['params'][_0x2de87f(0x17c)]['id'];setTimeout(()=>{var _0x720292=_0x2de87f;this[_0x720292(0x149)][_0x720292(0x1a7)](_0xe638c0['id'],{'unitId':_0x56cb7a,'subUnitId':_0x23690d},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x41151a=_0xb92f10;this[_0x41151a(0x1b2)][_0x41151a(0x1b9)]('presenting');const _0x3e6923=new Map(),_0x5d23fb=this['_commandDisposable']=new _0x413621();_0x5d23fb[_0x41151a(0x145)](_0x11b934(()=>{var _0x5bbcda=_0x41151a;_0x3e6923[_0x5bbcda(0x193)](_0x55b9c6=>_0x55b9c6[_0x5bbcda(0x1b4)]()),_0x3e6923[_0x5bbcda(0x1b5)]();})),_0x5d23fb[_0x41151a(0x145)](this[_0x41151a(0x149)]['onCommandExecuted'](_0x33e008=>{var _0x51fcb1=_0x41151a,_0x258a98;if(_0x33e008[_0x51fcb1(0x125)]!==_0x3a232d[_0x51fcb1(0x16b)]||!this['_liveShareService']['shouldShareOperation'](_0x33e008['id']))return;const {id:_0x304fd8}=_0x33e008;let _0x3d053b;_0x3e6923[_0x51fcb1(0x136)](_0x304fd8)?_0x3d053b=_0x3e6923['get'](_0x304fd8):(_0x3d053b=new _0x4d13be(),_0x3e6923[_0x51fcb1(0x16d)](_0x304fd8,_0x3d053b),_0x3d053b[_0x51fcb1(0x140)](_0x36ebc9((_0x258a98=this[_0x51fcb1(0x154)][_0x51fcb1(0x19d)](Pe))!=null?_0x258a98:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x51fcb1(0x1cc)](_0x1e08cc=>{var _0x3901d8=_0x51fcb1;this[_0x3901d8(0x1cd)][_0x3901d8(0x1b7)]({'eventID':_0x23142e['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3901d8(0x1c7)],'operations':{[_0x1e08cc['id']]:{'id':_0x1e08cc['id'],'params':JSON['stringify'](_0x1e08cc[_0x3901d8(0x1bc)])}}}},this[_0x3901d8(0x1c7)]);})),_0x3d053b[_0x51fcb1(0x1b9)](_0x33e008);})),this['_liveShareService'][_0x41151a(0x142)](this['_unitID'])[_0x41151a(0x193)](_0x3a4e47=>this[_0x41151a(0x1cd)][_0x41151a(0x1b7)]({'eventID':_0x23142e[_0x41151a(0x17e)],'data':{'unitID':this[_0x41151a(0x1c7)],'operations':{[_0x3a4e47['id']]:{'id':_0x3a4e47['id'],'params':JSON[_0x41151a(0x165)](_0x3a4e47['params'])}}}},this[_0x41151a(0x1c7)]));}['_stopPresenting'](){var _0x257c9b=_0xb92f10,_0x591fa3;this[_0x257c9b(0x1b2)][_0x257c9b(0x1b9)]('idle'),(_0x591fa3=this[_0x257c9b(0x196)])==null||_0x591fa3[_0x257c9b(0x1d3)](),this[_0x257c9b(0x196)]=null;}[_0xb92f10(0x1c2)](){var _0x25d0b5=_0xb92f10,_0x11bc4d;(_0x11bc4d=this[_0x25d0b5(0x196)])==null||_0x11bc4d[_0x25d0b5(0x1d3)](),this[_0x25d0b5(0x1b2)][_0x25d0b5(0x1b9)](_0x25d0b5(0x186));}[_0xb92f10(0x161)](){var _0x3ac23e=_0xb92f10,_0x3a21b6;this['_status$'][_0x3ac23e(0x1b9)](_0x3ac23e(0x164)),(_0x3a21b6=this['_commandDisposable'])==null||_0x3a21b6[_0x3ac23e(0x1d3)](),this[_0x3ac23e(0x196)]=null;}[_0xb92f10(0x1be)](){var _0x1c2efe=_0xb92f10,_0x21c471;this[_0x1c2efe(0x1b2)][_0x1c2efe(0x1b9)](_0x1c2efe(0x156)),(_0x21c471=this['_commandDisposable'])==null||_0x21c471['dispose']();}[_0xb92f10(0x13d)](_0x974e30){var _0x333293=_0xb92f10;if([_0x333293(0x1b8),_0x333293(0x156),'offline']['includes'](this[_0x333293(0x173)])||!_0x974e30['data'][_0x333293(0x134)]||_0x974e30[_0x333293(0x1a1)]['presenter']===this[_0x333293(0x1cd)]['getMemberID']())return;this['_status']===_0x333293(0x164)&&this[_0x333293(0x1c2)]();const _0x3eb228=_0x974e30[_0x333293(0x1a1)][_0x333293(0x14e)];Object[_0x333293(0x1b1)](_0x3eb228)['forEach'](_0x3ff192=>{var _0x549dfd=_0x333293;this[_0x549dfd(0x149)][_0x549dfd(0x1a7)](_0x3ff192['id'],_0x3ff192[_0x549dfd(0x1bc)]?JSON[_0x549dfd(0x1c8)](_0x3ff192[_0x549dfd(0x1bc)]):null,{'fromCollab':!0x0});});}[_0xb92f10(0x159)](){var _0xafccc0=_0xb92f10,_0x5a0a7c;this[_0xafccc0(0x1b2)][_0xafccc0(0x1b9)]('offline'),(_0x5a0a7c=this[_0xafccc0(0x196)])==null||_0x5a0a7c[_0xafccc0(0x1d3)]();}['_handleOnline'](){var _0xbd1a7e=_0xb92f10;this[_0xbd1a7e(0x1b2)][_0xbd1a7e(0x1b9)](_0xbd1a7e(0x164)),this['_fetchOperations']();}};C=Z([f(0x2,_0x57314a),f(0x3,_0x40f46e(L)),f(0x4,_0x282f21)],C);function Te(){var _0x4e9fa8=_0xb92f10;const _0x25aef1=_0xc15240(I),_0x162861=_0xc15240(_0xa30500),_0x421d8a=_0x224427(()=>_0x162861[_0x4e9fa8(0x182)](_0x3bf8f0[_0x4e9fa8(0x143)]),void 0x0,!0x1,[]),[_0x359fac,_0x4ddb0a]=_0x566493(null),[_0x136b5e,_0x1c19f9]=_0x566493(h[_0x4e9fa8(0x172)]),_0x53b98c=_0x5c0ac1(null);return _0x125e83(()=>(_0x421d8a&&_0x25aef1['getLiveShareCoordinator'](_0x421d8a[_0x4e9fa8(0x17a)]())[_0x4e9fa8(0x13f)](_0x4f570e=>{var _0x3bbcc8=_0x4e9fa8;_0x4ddb0a(_0x4f570e),_0x53b98c[_0x3bbcc8(0x1ae)]=_0x4f570e[_0x3bbcc8(0x148)]['subscribe'](_0x4bc696=>{_0x1c19f9(_0x4bc696);});}),()=>{var _0x13bbe7=_0x4e9fa8,_0x3b94cc;(_0x3b94cc=_0x53b98c['current'])==null||_0x3b94cc[_0x13bbe7(0x162)](),_0x53b98c[_0x13bbe7(0x1ae)]=null;}),[_0x421d8a,_0x25aef1]),_0x359fac?_0x438b6c(_0x4e7389,{'align':_0x4e9fa8(0x1da),'disabled':_0x136b5e===h[_0x4e9fa8(0x14d)],'className':_0x4e9fa8(0x1c1),'overlay':_0x438b6c($e,{'status':_0x136b5e,'coordinator':_0x359fac}),'children':_0x438b6c('button',{'className':_0x516079('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x136b5e===h[_0x4e9fa8(0x14d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x136b5e!==h['OFFLINE']}),'type':_0x4e9fa8(0x190),'children':_0x438b6c(B,{'className':_0x4e9fa8(0x18a)})})}):null;}function $e(_0x49f0ac){var _0x3dc94b=_0xb92f10;const {status:_0x209509,coordinator:_0x27d29b}=_0x49f0ac;switch(_0x209509){case h[_0x3dc94b(0x172)]:return _0x438b6c(Fe,{'coordinator':_0x27d29b});case h[_0x3dc94b(0x1b0)]:return _0x438b6c(He,{'coordinator':_0x27d29b});case h[_0x3dc94b(0x19a)]:return _0x438b6c(je,{'coordinator':_0x27d29b});case h[_0x3dc94b(0x14d)]:return _0x438b6c(Ve,{});case h['PRESENTING']:return _0x438b6c(Ue,{'coordinator':_0x27d29b});default:return null;}}function Fe(_0x12aae6){var _0x19e557=_0xb92f10;const {coordinator:_0x500ea0}=_0x12aae6;return _0x15c1f5(_0x240eb3,{'children':[_0x438b6c(_0x19e557(0x15b),{'className':_0x19e557(0x184),'children':_0x19e557(0x135)}),_0x438b6c(_0x598980,{'onClick':()=>_0x500ea0[_0x19e557(0x13e)](),'children':_0x19e557(0x18c)})]});}function He(_0x83da5d){var _0x59ee2d=_0xb92f10;const {coordinator:_0x32265b}=_0x83da5d;return _0x15c1f5(_0x240eb3,{'children':[_0x438b6c(_0x59ee2d(0x15b),{'className':_0x59ee2d(0x184),'children':_0x59ee2d(0x1aa)}),_0x438b6c(_0x598980,{'onClick':()=>_0x32265b[_0x59ee2d(0x1d4)](),'children':'Stop\x20following'})]});}function je(_0x3cf812){var _0x2accb3=_0xb92f10;const {coordinator:_0x1e7826}=_0x3cf812;return _0x15c1f5(_0x240eb3,{'children':[_0x438b6c(_0x2accb3(0x15b),{'className':_0x2accb3(0x184),'children':_0x2accb3(0x133)}),_0x438b6c(_0x598980,{'variant':_0x2accb3(0x12f),'onClick':()=>_0x1e7826[_0x2accb3(0x181)](),'children':_0x2accb3(0x171)})]});}function Ue(_0x475865){var _0x1d0bc0=_0xb92f10;const {coordinator:_0x4027d3}=_0x475865;return _0x15c1f5(_0x240eb3,{'children':[_0x438b6c(_0x1d0bc0(0x15b),{'className':_0x1d0bc0(0x184),'children':_0x1d0bc0(0x12d)}),_0x438b6c(_0x598980,{'variant':_0x1d0bc0(0x1ba),'onClick':()=>_0x4027d3[_0x1d0bc0(0x17b)](),'children':_0x1d0bc0(0x166)})]});}function Ve(){return _0x438b6c(_0x240eb3,{'children':'You\x27are\x20offline.'});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x5aa9c8,_0x5c6171,_0x7762c0,_0x15f905)=>{var _0x1c58b3=_0xb92f10;for(var _0x4fe73c=_0x15f905>0x1?void 0x0:_0x15f905?Me(_0x5c6171,_0x7762c0):_0x5c6171,_0x407924=_0x5aa9c8[_0x1c58b3(0x128)]-0x1,_0xbb2276;_0x407924>=0x0;_0x407924--)(_0xbb2276=_0x5aa9c8[_0x407924])&&(_0x4fe73c=_0xbb2276(_0x4fe73c)||_0x4fe73c);return _0x4fe73c;},$=(_0x45bdcc,_0x4936cb)=>(_0x238466,_0x127401)=>_0x4936cb(_0x238466,_0x127401,_0x45bdcc);let b=class extends _0x36aa7d{constructor(_0x45f354,_0x36db32){var _0x5dc94c=_0xb92f10;super(),this[_0x5dc94c(0x163)]=_0x45f354,this[_0x5dc94c(0x12a)]=_0x36db32,this[_0x5dc94c(0x1d0)]();}[_0xb92f10(0x1d0)](){var _0x5b50dd=_0xb92f10;this[_0x5b50dd(0x1c9)](this[_0x5b50dd(0x12a)][_0x5b50dd(0x1a0)](_0xecae90[_0x5b50dd(0x1b3)],()=>_0x195715(Te,this[_0x5b50dd(0x163)])));}};b=ke([$(0x0,_0x40f46e(_0x59c839)),$(0x1,_0x90b79)],b);var Ge=Object[_0xb92f10(0x177)],We=Object[_0xb92f10(0x137)],Ye=(_0x5c6e5d,_0x27f948,_0x3e87b6)=>_0x27f948 in _0x5c6e5d?Ge(_0x5c6e5d,_0x27f948,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e87b6}):_0x5c6e5d[_0x27f948]=_0x3e87b6,Be=(_0x7b5130,_0x1654b5,_0x262fbb,_0x627239)=>{var _0x1a2ef1=_0xb92f10;for(var _0x190a67=_0x627239>0x1?void 0x0:_0x627239?We(_0x1654b5,_0x262fbb):_0x1654b5,_0x2eb9cf=_0x7b5130[_0x1a2ef1(0x128)]-0x1,_0x3030af;_0x2eb9cf>=0x0;_0x2eb9cf--)(_0x3030af=_0x7b5130[_0x2eb9cf])&&(_0x190a67=_0x3030af(_0x190a67)||_0x190a67);return _0x190a67;},F=(_0x10d26e,_0x939c4c)=>(_0x393c01,_0xd08dde)=>_0x939c4c(_0x393c01,_0xd08dde,_0x10d26e),J=(_0x53eb41,_0x521c7b,_0x238354)=>Ye(_0x53eb41,typeof _0x521c7b!=_0xb92f10(0x1bb)?_0x521c7b+'':_0x521c7b,_0x238354);const Ze=_0xb92f10(0x155);let O=class extends _0x3de4ee{constructor(_0x283fb0=T,_0x4f54de,_0x286482){var _0x6f4418=_0xb92f10;super(),this[_0x6f4418(0x180)]=_0x283fb0,this[_0x6f4418(0x163)]=_0x4f54de,this[_0x6f4418(0x154)]=_0x286482;const {..._0x1cc9ef}=_0x50e9af({},T,this[_0x6f4418(0x180)]);this[_0x6f4418(0x154)][_0x6f4418(0x1c5)](Oe,_0x1cc9ef);}[_0xb92f10(0x1cb)](){var _0x5cced8=_0xb92f10;_0x4118c1(this[_0x5cced8(0x163)],_0x1a4071([[L],[I],[m],[b]],this[_0x5cced8(0x180)][_0x5cced8(0x13c)])),_0x179b9a(this[_0x5cced8(0x163)],[[m]]);}[_0xb92f10(0x147)](){var _0x17e34d=_0xb92f10;_0x179b9a(this[_0x17e34d(0x163)],[[b]]);}};J(O,'type',_0x3bf8f0[_0xb92f10(0x1d6)]),J(O,_0xb92f10(0x14f),Ze),O=Be([_0x35512a(_0x310bfc),F(0x1,_0x40f46e(_0x59c839)),F(0x2,_0x57314a)],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 _0x351d60=_0x5600;(function(_0x3202eb,_0x3b4896){var _0x4d4b73=_0x5600,_0x6683e5=_0x3202eb();while(!![]){try{var _0x42fb6=-parseInt(_0x4d4b73(0x1c7))/0x1+-parseInt(_0x4d4b73(0x17b))/0x2*(parseInt(_0x4d4b73(0x172))/0x3)+parseInt(_0x4d4b73(0x151))/0x4+-parseInt(_0x4d4b73(0x170))/0x5*(-parseInt(_0x4d4b73(0x152))/0x6)+parseInt(_0x4d4b73(0x1ac))/0x7+parseInt(_0x4d4b73(0x15f))/0x8*(-parseInt(_0x4d4b73(0x14a))/0x9)+parseInt(_0x4d4b73(0x1c6))/0xa;if(_0x42fb6===_0x3b4896)break;else _0x6683e5['push'](_0x6683e5['shift']());}catch(_0x4e6543){_0x6683e5['push'](_0x6683e5['shift']());}}}(_0x2b53,0x45de2));var q=Object['defineProperty'],z=(_0x3ed690,_0x5e1962,_0x5e939e)=>_0x5e1962 in _0x3ed690?q(_0x3ed690,_0x5e1962,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5e939e}):_0x3ed690[_0x5e1962]=_0x5e939e,d=(_0x3b01dd,_0x2d321,_0x39f49a)=>z(_0x3b01dd,typeof _0x2d321!=_0x351d60(0x1cf)?_0x2d321+'':_0x2d321,_0x39f49a);import{CollaborationSessionService as _0xc42d8f,SessionStatus as _0x5e13a0,UniverCollaborationClientPlugin as _0x29bcfe}from'@univerjs-pro/collaboration-client';import{Disposable as _0x224e4c,toDisposable as _0x420ae4,Inject as _0x3abca3,IUniverInstanceService as _0xe2d3f4,Injector as _0x3d57c1,IConfigService as _0x5be387,ICommandService as _0x236614,RxDisposable as _0x603bd6,UniverInstanceType as _0x4d5efd,DisposableCollection as _0x4feaf1,CommandType as _0x17a80f,DependentOn as _0x2195b7,Plugin as _0x599154,merge as _0x75c717,registerDependencies as _0x5bf58d,mergeOverrideWithDependencies as _0x38e8e6,touchDependencies as _0x281800}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x561dc1,InsertSheetMutation as _0x4f4864}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x226f14,SetScrollOperation as _0x33d4ca}from'@univerjs/sheets-ui';import{useDependency as _0x247355,useObservable as _0x21ae04,IUIPartsService as _0x230a4f,BuiltInUIPart as _0x4ca9bf,connectInjector as _0x32a071}from'@univerjs/ui';import{jsx as _0x37aa2b,jsxs as _0x2c44bf,Fragment as _0x3db7a5}from'react/jsx-runtime';import{Dropdown as _0x5f162c,clsx as _0x53843f,Button as _0x2ee079}from'@univerjs/design';import{forwardRef as _0x313345,useRef as _0xc18a52,createElement as _0x57f48a,useState as _0x2f9e5a,useEffect as _0x28d068}from'react';import{CollaborationEvent as _0x45c8cc,parseProtocolChangeset as _0x522c8f}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x18832b,Subject as _0x25a16f}from'rxjs';import{takeUntil as _0x48f007,throttleTime as _0xee77ca}from'rxjs/operators';const Oe='live-share.config',T={};function _0x2b53(){var _0x326341=['_reporters','2SxGsvQ','onStarting','status$','replace','defineProperty','children','colorChannel1','Stop\x20presenting','values','setConfig','asObservable','idSuffix','concat','univer-mb-3\x20univer-w-full\x20univer-text-sm','length','LIVESHARE_TERMINATE','div','_init','_entities','OPERATION','_stopFollowing','getUnitId','ONLINE','executeCommand','NOT_FOLLOWING','_unitID','getConfig','attrs','trim','evenodd','presenting','set','_collabSessionService','_handleTerminate','data','pluginName','OFFLINE','_startLiveShareCoordinator','dispose$','url(#$1','NEW_CHANGESETS','Stop\x20following','sheet','FOLLOWING','univer-size-4','none','defs','_config','send','2149959GTbLeU','following','UNIVER_SHEET','text','http://www.w3.org/2000/svg','idle','_handleOperation','substring','subscribe','dispose','clear','prototype','getOwnPropertySymbols','assign','displayName','_collabSession','UNIVER_LIVE_SHARE_PLUGIN','end','getOwnPropertyDescriptor','_commandDisposable','getInitialStates','call','indexOf','stringify','get','_injector','7964290pSBBsb','289308leGLVn','_uiPartsService','_startFollowing','createInstance','toString','add','next','reverse','symbol','You\x27are\x20offline.','UniverIcon','LIVESHARE_REQUEST_HOST','delete','live-share-icon','onCommandExecuted','defIds','Present\x20this\x20document','find','then','unsubscribe','registerComponent','You\x27re\x20presenting\x20the\x20document','onRendered','from','stopPresenting','currentColor','apply','registerInitialStateReporter','sessionStatus$','_univerInstanceService','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','You\x27re\x20following\x20the\x20presenter','LIVESHARE_OPERATION','_beIdle','0\x200\x2017\x2017','Start\x20following','You\x27re\x20not\x20following\x20the\x20presenter','offline','params','has','getTypeOfUnitAdded$','startFollowing','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','map','forEach','HEADER_MENU','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','memberID','_presenter','string','_liveShareService','type','propertyIsEnumerable','2210751ZCrMEd','_stopPresenting','_sharedOperations','unitId','getMemberID','xlink:href','entries','151784zmJSDG','9678deKfPf','getLiveShareCoordinator','tryStartPresenting','_fetchOperations','_handleNewChangeSets','extend','includes','1em','getTypeOfUnitDisposed$','_status$','disposeWithMe','_commandService','operations','16cUcYQf','shouldShareOperation','Start','PRESENTING','LIVESHARE_FETCH_OPERATIONS','tag','complete','fill','_startPresenting','icon','_handleNewHost','stopFollowing','_status','mask','_configService','presenter','IDLE','1025keYqKN','init','1216239OkapoE','current','_handleOnline','_mountLiveShare','_handleOffline','pipe','not-following','path'];_0x2b53=function(){return _0x326341;};return _0x2b53();}class L extends _0x224e4c{constructor(){var _0x4b5c00=_0x351d60;super(...arguments),d(this,_0x4b5c00(0x14c),new Set()),d(this,'_reporters',new Set());}['registerSharedOperation'](_0xafd0a){var _0x57023e=_0x351d60;return this[_0x57023e(0x14c)][_0x57023e(0x1cc)](_0xafd0a),_0x420ae4(()=>this[_0x57023e(0x14c)][_0x57023e(0x1d3)](_0xafd0a));}[_0x351d60(0x1e2)](_0xd0edd9){var _0x3a510c=_0x351d60;return this[_0x3a510c(0x17a)][_0x3a510c(0x1cc)](_0xd0edd9),_0x420ae4(()=>this[_0x3a510c(0x17a)][_0x3a510c(0x1d3)](_0xd0edd9));}[_0x351d60(0x160)](_0x5cf08e){var _0x43ad2e=_0x351d60;return this['_sharedOperations'][_0x43ad2e(0x1ee)](_0x5cf08e);}[_0x351d60(0x1c0)](_0x26b8ae){var _0x486893=_0x351d60;return Array[_0x486893(0x1de)](this[_0x486893(0x17a)])[_0x486893(0x1f3)](_0x570949=>_0x570949(_0x26b8ae));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x119d3e,_0x5d4671,_0x40b9e2,_0x7bbc55)=>{var _0x19c7a6=_0x351d60;for(var _0x17b9b0=_0x7bbc55>0x1?void 0x0:_0x7bbc55?Ee(_0x5d4671,_0x40b9e2):_0x5d4671,_0xc30d1f=_0x119d3e[_0x19c7a6(0x189)]-0x1,_0x36f6ef;_0xc30d1f>=0x0;_0xc30d1f--)(_0x36f6ef=_0x119d3e[_0xc30d1f])&&(_0x17b9b0=_0x36f6ef(_0x17b9b0)||_0x17b9b0);return _0x17b9b0;},Ne=(_0x39afc8,_0x55ca59)=>(_0x4cfd48,_0x687522)=>_0x55ca59(_0x4cfd48,_0x687522,_0x39afc8);let m=class extends _0x224e4c{constructor(_0x494f05){var _0x15d423=_0x351d60;super(),this[_0x15d423(0x147)]=_0x494f05,this['_init']();}['_init'](){var _0x327e4c=_0x351d60;[_0x226f14['id'],_0x33d4ca['id'],_0x561dc1['id']][_0x327e4c(0x1f4)](_0x33d76e=>{var _0x21a1e7=_0x327e4c;this[_0x21a1e7(0x15c)](this['_liveShareService']['registerSharedOperation'](_0x33d76e));});}};m=we([Ne(0x0,_0x3abca3(L))],m);var c=function(){var _0x1ebf06=_0x351d60;return c=Object[_0x1ebf06(0x1b9)]||function(_0x238969){var _0x432371=_0x1ebf06;for(var _0x372cff,_0x36148d=0x1,_0x55fcf4=arguments[_0x432371(0x189)];_0x36148d<_0x55fcf4;_0x36148d++){_0x372cff=arguments[_0x36148d];for(var _0x69aaa7 in _0x372cff)Object[_0x432371(0x1b7)]['hasOwnProperty'][_0x432371(0x1c1)](_0x372cff,_0x69aaa7)&&(_0x238969[_0x69aaa7]=_0x372cff[_0x69aaa7]);}return _0x238969;},c[_0x1ebf06(0x1e1)](this,arguments);},Ce=function(_0x4a6f4a,_0x21a8da){var _0xed7f5d=_0x351d60,_0x5309a1={};for(var _0x20d14b in _0x4a6f4a)Object['prototype']['hasOwnProperty'][_0xed7f5d(0x1c1)](_0x4a6f4a,_0x20d14b)&&_0x21a8da[_0xed7f5d(0x1c2)](_0x20d14b)<0x0&&(_0x5309a1[_0x20d14b]=_0x4a6f4a[_0x20d14b]);if(_0x4a6f4a!=null&&typeof Object[_0xed7f5d(0x1b8)]=='function'){for(var _0x3ea593=0x0,_0x20d14b=Object['getOwnPropertySymbols'](_0x4a6f4a);_0x3ea593<_0x20d14b['length'];_0x3ea593++)_0x21a8da['indexOf'](_0x20d14b[_0x3ea593])<0x0&&Object[_0xed7f5d(0x1b7)][_0xed7f5d(0x149)]['call'](_0x4a6f4a,_0x20d14b[_0x3ea593])&&(_0x5309a1[_0x20d14b[_0x3ea593]]=_0x4a6f4a[_0x20d14b[_0x3ea593]]);}return _0x5309a1;},W=_0x313345(function(_0x4826df,_0x2e87bf){var _0x2f29cb=_0x351d60,_0x42a1bf=_0x4826df['icon'],_0xa01011=_0x4826df['id'],_0x4742c9=_0x4826df['className'],_0x234a25=_0x4826df['extend'],_0x237405=Ce(_0x4826df,[_0x2f29cb(0x168),'id','className',_0x2f29cb(0x157)]),_0x3cd53f='univerjs-icon\x20univerjs-icon-'[_0x2f29cb(0x187)](_0xa01011,'\x20')[_0x2f29cb(0x187)](_0x4742c9||'')[_0x2f29cb(0x197)](),_0x1f267d=_0xc18a52('_'['concat'](Le()));return Y(_0x42a1bf,''['concat'](_0xa01011),{'defIds':_0x42a1bf['defIds'],'idSuffix':_0x1f267d[_0x2f29cb(0x173)]},c({'ref':_0x2e87bf,'className':_0x3cd53f},_0x237405),_0x234a25);});function Y(_0x572c0e,_0x16a8a3,_0x87fd89,_0x802cf8,_0x1dd164){var _0x21626b=_0x351d60;return _0x57f48a(_0x572c0e[_0x21626b(0x164)],c(c({'key':_0x16a8a3},De(_0x572c0e,_0x87fd89,_0x1dd164)),_0x802cf8),(xe(_0x572c0e,_0x87fd89)['children']||[])[_0x21626b(0x1f3)](function(_0x2adf0b,_0x4d0224){var _0x843ce8=_0x21626b;return Y(_0x2adf0b,''['concat'](_0x16a8a3,'-')[_0x843ce8(0x187)](_0x572c0e['tag'],'-')[_0x843ce8(0x187)](_0x4d0224),_0x87fd89,void 0x0,_0x1dd164);}));}function De(_0x27080c,_0x3da072,_0xca05fe){var _0x536e7b=_0x351d60,_0xf07a0=c({},_0x27080c[_0x536e7b(0x196)]);_0xca05fe!=null&&_0xca05fe[_0x536e7b(0x181)]&&_0xf07a0[_0x536e7b(0x166)]===_0x536e7b(0x181)&&(_0xf07a0['fill']=_0xca05fe[_0x536e7b(0x181)]),_0x27080c[_0x536e7b(0x164)]==='mask'&&_0xf07a0['id']&&(_0xf07a0['id']=_0xf07a0['id']+_0x3da072[_0x536e7b(0x186)]),Object[_0x536e7b(0x150)](_0xf07a0)['forEach'](function(_0x34a393){var _0x40da90=_0x536e7b,_0x52891f=_0x34a393[0x0],_0x416185=_0x34a393[0x1];_0x52891f===_0x40da90(0x16c)&&typeof _0x416185=='string'&&(_0xf07a0[_0x52891f]=_0x416185[_0x40da90(0x17e)](/url\(#(.*)\)/,_0x40da90(0x1a2)['concat'](_0x3da072[_0x40da90(0x186)],')')));});var _0x4780fb=_0x3da072[_0x536e7b(0x1d6)];return!_0x4780fb||_0x4780fb[_0x536e7b(0x189)]===0x0||(_0x27080c[_0x536e7b(0x164)]==='use'&&_0xf07a0[_0x536e7b(0x14f)]&&(_0xf07a0['xlink:href']=_0xf07a0[_0x536e7b(0x14f)]+_0x3da072[_0x536e7b(0x186)]),Object['entries'](_0xf07a0)[_0x536e7b(0x1f4)](function(_0x3c7de2){var _0x1ae81b=_0x536e7b,_0x22beaa=_0x3c7de2[0x0],_0x3fbfe6=_0x3c7de2[0x1];typeof _0x3fbfe6==_0x1ae81b(0x146)&&(_0xf07a0[_0x22beaa]=_0x3fbfe6[_0x1ae81b(0x17e)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x3da072['idSuffix'],')')));})),_0xf07a0;}function xe(_0xa9fdea,_0x1d0c3e){var _0x36192b=_0x351d60,_0x3616a9,_0x32ed88=_0x1d0c3e[_0x36192b(0x1d6)];return!_0x32ed88||_0x32ed88[_0x36192b(0x189)]===0x0?_0xa9fdea:_0xa9fdea[_0x36192b(0x164)]===_0x36192b(0x1a9)&&(!((_0x3616a9=_0xa9fdea[_0x36192b(0x180)])===null||_0x3616a9===void 0x0)&&_0x3616a9[_0x36192b(0x189)])?c(c({},_0xa9fdea),{'children':_0xa9fdea[_0x36192b(0x180)]['map'](function(_0x32a0bd){var _0x13b65f=_0x36192b;return typeof _0x32a0bd[_0x13b65f(0x196)]['id']=='string'&&_0x32ed88&&_0x32ed88[_0x13b65f(0x158)](_0x32a0bd['attrs']['id'])?c(c({},_0x32a0bd),{'attrs':c(c({},_0x32a0bd['attrs']),{'id':_0x32a0bd[_0x13b65f(0x196)]['id']+_0x1d0c3e[_0x13b65f(0x186)]})}):_0x32a0bd;})}):_0xa9fdea;}function Le(){var _0x11fb04=_0x351d60;return Math['random']()[_0x11fb04(0x1cb)](0x24)[_0x11fb04(0x1b3)](0x2,0x8);}W[_0x351d60(0x1ba)]=_0x351d60(0x1d1);var ye={'tag':'svg','attrs':{'xmlns':_0x351d60(0x1b0),'fill':_0x351d60(0x1a8),'viewBox':_0x351d60(0x1e9),'width':_0x351d60(0x159),'height':_0x351d60(0x159)},'children':[{'tag':_0x351d60(0x179),'attrs':{'fill':_0x351d60(0x1e0),'d':_0x351d60(0x1f1)}},{'tag':_0x351d60(0x179),'attrs':{'fill':_0x351d60(0x1e0),'d':_0x351d60(0x1e5),'fillRule':'evenodd','clipRule':_0x351d60(0x198)}}]},B=_0x313345(function(_0x1cebe0,_0x2c6fb5){var _0xaa98f8=_0x351d60;return _0x57f48a(W,Object['assign']({},_0x1cebe0,{'id':_0xaa98f8(0x1d4),'ref':_0x2c6fb5,'icon':ye}));});B[_0x351d60(0x1ba)]='LiveShareIcon';var Re=Object[_0x351d60(0x1be)],Z=(_0x45c92f,_0x354020,_0x4af8f6,_0x5cb222)=>{var _0x2d3a65=_0x351d60;for(var _0xedb37b=_0x5cb222>0x1?void 0x0:_0x5cb222?Re(_0x354020,_0x4af8f6):_0x354020,_0x9a6e72=_0x45c92f[_0x2d3a65(0x189)]-0x1,_0x2d0cc6;_0x9a6e72>=0x0;_0x9a6e72--)(_0x2d0cc6=_0x45c92f[_0x9a6e72])&&(_0xedb37b=_0x2d0cc6(_0xedb37b)||_0xedb37b);return _0xedb37b;},f=(_0x32c8ab,_0x21d72a)=>(_0x3dd1b2,_0xdf9fff)=>_0x21d72a(_0x3dd1b2,_0xdf9fff,_0x32c8ab);let I=class extends _0x603bd6{constructor(_0x1bc6c3,_0x2fbdcd,_0x10b65b){var _0x593a92=_0x351d60;super(),d(this,_0x593a92(0x18d),new Map()),(this[_0x593a92(0x1e4)]=_0x1bc6c3,this[_0x593a92(0x1c5)]=_0x2fbdcd,this[_0x593a92(0x19b)]=_0x10b65b,this['_init']());}async['getLiveShareCoordinator'](_0x41649b){var _0x42114a=_0x351d60;return this['_entities'][_0x42114a(0x1ee)](_0x41649b)||await this[_0x42114a(0x1a0)](_0x41649b),this[_0x42114a(0x18d)][_0x42114a(0x1c4)](_0x41649b);}[_0x351d60(0x18c)](){var _0x332f24=_0x351d60;this[_0x332f24(0x1e4)][_0x332f24(0x1ef)](_0x4d5efd[_0x332f24(0x1ae)])[_0x332f24(0x177)](_0x48f007(this[_0x332f24(0x1a1)]))[_0x332f24(0x1b4)](async _0x3c9659=>{var _0x2d9bdb=_0x332f24;const _0x40d245=_0x3c9659[_0x2d9bdb(0x190)]();this[_0x2d9bdb(0x18d)][_0x2d9bdb(0x1ee)](_0x40d245)||this[_0x2d9bdb(0x1a0)](_0x40d245);}),this[_0x332f24(0x1e4)][_0x332f24(0x15a)](_0x4d5efd[_0x332f24(0x1ae)])[_0x332f24(0x177)](_0x48f007(this[_0x332f24(0x1a1)]))['subscribe'](_0x16b09c=>{var _0x2d5564=_0x332f24;const _0x3922af=_0x16b09c[_0x2d5564(0x190)](),_0x3b7812=this['_entities'][_0x2d5564(0x1c4)](_0x3922af);_0x3b7812==null||_0x3b7812[_0x2d5564(0x1b5)]();});}async['_startLiveShareCoordinator'](_0x5cdf27){var _0x38f116=_0x351d60;const _0x5c2919=await this[_0x38f116(0x19b)]['requireSession'](_0x5cdf27),_0x4b671f=this[_0x38f116(0x1c5)][_0x38f116(0x1ca)](C,_0x5cdf27,_0x5c2919);return _0x4b671f['init'](),this[_0x38f116(0x18d)][_0x38f116(0x19a)](_0x5cdf27,_0x4b671f),_0x4b671f;}};I=Z([f(0x0,_0xe2d3f4),f(0x1,_0x3abca3(_0x3d57c1)),f(0x2,_0x3abca3(_0xc42d8f))],I);var h=(_0x15ab43=>(_0x15ab43[_0x351d60(0x19f)]=_0x351d60(0x1ec),_0x15ab43['IDLE']='idle',_0x15ab43[_0x351d60(0x1a6)]=_0x351d60(0x1ad),_0x15ab43['NOT_FOLLOWING']=_0x351d60(0x178),_0x15ab43[_0x351d60(0x162)]=_0x351d60(0x199),_0x15ab43))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x603bd6{constructor(_0x42a68e,_0x33c978,_0x427774,_0x546007,_0x51a485){var _0xb6f8d7=_0x351d60;super(),d(this,_0xb6f8d7(0x15b),new _0x18832b(_0xb6f8d7(0x1b1))),d(this,'status$',this[_0xb6f8d7(0x15b)][_0xb6f8d7(0x185)]()),d(this,_0xb6f8d7(0x18c),!0x1),d(this,_0xb6f8d7(0x1bf),null),d(this,_0xb6f8d7(0x145),null),(this['_unitID']=_0x42a68e,this[_0xb6f8d7(0x1bb)]=_0x33c978,this[_0xb6f8d7(0x16d)]=_0x427774,this[_0xb6f8d7(0x147)]=_0x546007,this[_0xb6f8d7(0x15d)]=_0x51a485);}get[_0x351d60(0x16b)](){return this['_status$']['getValue']();}[_0x351d60(0x1b5)](){var _0x5ba52f=_0x351d60,_0x35157a;(_0x35157a=this[_0x5ba52f(0x1bf)])==null||_0x35157a[_0x5ba52f(0x1b5)](),this[_0x5ba52f(0x15b)][_0x5ba52f(0x1cd)](_0x5ba52f(0x1b1)),this['_status$'][_0x5ba52f(0x165)]();}[_0x351d60(0x171)](){var _0x50ed1c=_0x351d60;this[_0x50ed1c(0x18c)]||(this[_0x50ed1c(0x18c)]=!0x0,this[_0x50ed1c(0x1bb)][_0x50ed1c(0x1e3)][_0x50ed1c(0x177)](_0x48f007(this['dispose$']))[_0x50ed1c(0x1b4)](_0xc74f39=>{var _0x49d599=_0x50ed1c;switch(_0xc74f39){case _0x5e13a0[_0x49d599(0x19f)]:this[_0x49d599(0x176)]();break;case _0x5e13a0[_0x49d599(0x191)]:this[_0x49d599(0x174)]();break;}}),this['_collabSession']['event$']['pipe'](_0x48f007(this[_0x50ed1c(0x1a1)]))[_0x50ed1c(0x1b4)](_0x20d08e=>{var _0x3ec6e9=_0x50ed1c;const {eventID:_0x4395c0}=_0x20d08e;switch(_0x4395c0){case _0x45c8cc['LIVESHARE_NEW_HOST']:this[_0x3ec6e9(0x169)](_0x20d08e);break;case _0x45c8cc[_0x3ec6e9(0x1e7)]:this[_0x3ec6e9(0x1b2)](_0x20d08e);break;case _0x45c8cc[_0x3ec6e9(0x18a)]:this['_handleTerminate']();break;case _0x45c8cc[_0x3ec6e9(0x1a3)]:this['_handleNewChangeSets'](_0x20d08e);break;}}));}['tryStartPresenting'](){var _0x31f6a8=_0x351d60;this[_0x31f6a8(0x1bb)][_0x31f6a8(0x1ab)]({'eventID':_0x45c8cc[_0x31f6a8(0x1d2)],'data':{'unitID':this[_0x31f6a8(0x194)],'userID':this[_0x31f6a8(0x1bb)][_0x31f6a8(0x14e)]()}},this[_0x31f6a8(0x194)]);}[_0x351d60(0x1df)](){var _0x32b3ed=_0x351d60;this[_0x32b3ed(0x16b)]==='presenting'&&(this[_0x32b3ed(0x15b)]['next'](_0x32b3ed(0x1b1)),this[_0x32b3ed(0x1bb)][_0x32b3ed(0x1ab)]({'eventID':_0x45c8cc[_0x32b3ed(0x18a)],'data':{'unitID':this[_0x32b3ed(0x194)]}},this[_0x32b3ed(0x194)]));}[_0x351d60(0x1f0)](){var _0x19bddf=_0x351d60;this[_0x19bddf(0x16b)]==='not-following'&&(this['_status$']['next'](_0x19bddf(0x1ad)),this[_0x19bddf(0x1c9)]());}[_0x351d60(0x16a)](){var _0x974b71=_0x351d60;this['_status']===_0x974b71(0x1ad)&&this[_0x974b71(0x18f)]();}['_handleNewHost'](_0x1deae4){var _0x11b954=_0x351d60;const {presenter:_0xcc3c99}=_0x1deae4[_0x11b954(0x19d)],_0x3e0b26=this['_collabSession'][_0x11b954(0x14e)]();this['_presenter']=_0xcc3c99,_0xcc3c99===_0x3e0b26?(this[_0x11b954(0x18f)](),this[_0x11b954(0x167)]()):this['_status']!=='not-following'&&(this[_0x11b954(0x14b)](),this[_0x11b954(0x1c9)]());}['_fetchOperations'](){var _0x26a02e=_0x351d60;const _0x100712={'eventID':_0x45c8cc[_0x26a02e(0x163)]};this['_collabSession']['send'](_0x100712,this[_0x26a02e(0x194)]);}[_0x351d60(0x19c)](){var _0x562ca0=_0x351d60;this['_presenter']=null,this['_status']!=='presenting'&&this[_0x562ca0(0x1e8)]();}[_0x351d60(0x156)](_0x51b729){var _0x30914d=_0x351d60;if(this[_0x30914d(0x16b)]===_0x30914d(0x1ad)&&this[_0x30914d(0x145)]===_0x51b729[_0x30914d(0x19d)][_0x30914d(0x144)]){const _0x39ffc2=_0x522c8f(_0x51b729[_0x30914d(0x19d)])['mutations'][_0x30914d(0x1ce)]()[_0x30914d(0x1d8)](_0x13a316=>_0x13a316['id']===_0x4f4864['id']);if(_0x39ffc2){const _0x28520b=_0x39ffc2[_0x30914d(0x1ed)][_0x30914d(0x14d)],_0x5057a2=_0x39ffc2[_0x30914d(0x1ed)][_0x30914d(0x1a5)]['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x561dc1['id'],{'unitId':_0x28520b,'subUnitId':_0x5057a2},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x159763=_0x351d60;this[_0x159763(0x15b)][_0x159763(0x1cd)](_0x159763(0x199));const _0x29bbda=new Map(),_0x382444=this['_commandDisposable']=new _0x4feaf1();_0x382444[_0x159763(0x1cc)](_0x420ae4(()=>{var _0x445305=_0x159763;_0x29bbda[_0x445305(0x1f4)](_0x1d8de1=>_0x1d8de1[_0x445305(0x165)]()),_0x29bbda[_0x445305(0x1b6)]();})),_0x382444['add'](this[_0x159763(0x15d)][_0x159763(0x1d5)](_0x58133c=>{var _0xd2a746=_0x159763,_0x1c3d76;if(_0x58133c['type']!==_0x17a80f[_0xd2a746(0x18e)]||!this[_0xd2a746(0x147)][_0xd2a746(0x160)](_0x58133c['id']))return;const {id:_0x5e9354}=_0x58133c;let _0x4cf3be;_0x29bbda[_0xd2a746(0x1ee)](_0x5e9354)?_0x4cf3be=_0x29bbda['get'](_0x5e9354):(_0x4cf3be=new _0x25a16f(),_0x29bbda['set'](_0x5e9354,_0x4cf3be),_0x4cf3be[_0xd2a746(0x177)](_0xee77ca((_0x1c3d76=this[_0xd2a746(0x16d)][_0xd2a746(0x195)](Pe))!=null?_0x1c3d76:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4f9cbd=>{var _0x53ca8=_0xd2a746;this[_0x53ca8(0x1bb)][_0x53ca8(0x1ab)]({'eventID':_0x45c8cc[_0x53ca8(0x1e7)],'data':{'unitID':this[_0x53ca8(0x194)],'operations':{[_0x4f9cbd['id']]:{'id':_0x4f9cbd['id'],'params':JSON[_0x53ca8(0x1c3)](_0x4f9cbd[_0x53ca8(0x1ed)])}}}},this['_unitID']);})),_0x4cf3be[_0xd2a746(0x1cd)](_0x58133c);})),this[_0x159763(0x147)][_0x159763(0x1c0)](this[_0x159763(0x194)])['forEach'](_0x1404fd=>this[_0x159763(0x1bb)][_0x159763(0x1ab)]({'eventID':_0x45c8cc[_0x159763(0x1e7)],'data':{'unitID':this[_0x159763(0x194)],'operations':{[_0x1404fd['id']]:{'id':_0x1404fd['id'],'params':JSON[_0x159763(0x1c3)](_0x1404fd[_0x159763(0x1ed)])}}}},this[_0x159763(0x194)]));}['_stopPresenting'](){var _0x2c37d9=_0x351d60,_0x4ba27b;this['_status$'][_0x2c37d9(0x1cd)]('idle'),(_0x4ba27b=this['_commandDisposable'])==null||_0x4ba27b[_0x2c37d9(0x1b5)](),this[_0x2c37d9(0x1bf)]=null;}[_0x351d60(0x1c9)](){var _0x4b7293=_0x351d60,_0x3ea8b3;(_0x3ea8b3=this[_0x4b7293(0x1bf)])==null||_0x3ea8b3[_0x4b7293(0x1b5)](),this[_0x4b7293(0x15b)][_0x4b7293(0x1cd)](_0x4b7293(0x1ad));}[_0x351d60(0x1e8)](){var _0x4f7f0f=_0x351d60,_0x502f12;this[_0x4f7f0f(0x15b)][_0x4f7f0f(0x1cd)]('idle'),(_0x502f12=this[_0x4f7f0f(0x1bf)])==null||_0x502f12[_0x4f7f0f(0x1b5)](),this[_0x4f7f0f(0x1bf)]=null;}[_0x351d60(0x18f)](){var _0x3a27e8=_0x351d60,_0x14767d;this[_0x3a27e8(0x15b)][_0x3a27e8(0x1cd)]('not-following'),(_0x14767d=this[_0x3a27e8(0x1bf)])==null||_0x14767d[_0x3a27e8(0x1b5)]();}[_0x351d60(0x1b2)](_0x3d012e){var _0x1e9453=_0x351d60;if([_0x1e9453(0x199),_0x1e9453(0x178),_0x1e9453(0x1ec)][_0x1e9453(0x158)](this['_status'])||!_0x3d012e[_0x1e9453(0x19d)]['presenter']||_0x3d012e[_0x1e9453(0x19d)][_0x1e9453(0x16e)]===this[_0x1e9453(0x1bb)][_0x1e9453(0x14e)]())return;this[_0x1e9453(0x16b)]==='idle'&&this[_0x1e9453(0x1c9)]();const _0x2b2d0b=_0x3d012e['data'][_0x1e9453(0x15e)];Object[_0x1e9453(0x183)](_0x2b2d0b)[_0x1e9453(0x1f4)](_0x49c5d6=>{var _0x30eea5=_0x1e9453;this[_0x30eea5(0x15d)][_0x30eea5(0x192)](_0x49c5d6['id'],_0x49c5d6[_0x30eea5(0x1ed)]?JSON['parse'](_0x49c5d6[_0x30eea5(0x1ed)]):null,{'fromCollab':!0x0});});}[_0x351d60(0x176)](){var _0x1c449a=_0x351d60,_0x1e9e50;this['_status$']['next'](_0x1c449a(0x1ec)),(_0x1e9e50=this[_0x1c449a(0x1bf)])==null||_0x1e9e50['dispose']();}['_handleOnline'](){var _0x5d2211=_0x351d60;this[_0x5d2211(0x15b)][_0x5d2211(0x1cd)](_0x5d2211(0x1b1)),this[_0x5d2211(0x155)]();}};C=Z([f(0x2,_0x5be387),f(0x3,_0x3abca3(L)),f(0x4,_0x236614)],C);function Te(){var _0x5a3bfb=_0x351d60;const _0x1ccd49=_0x247355(I),_0x21c711=_0x247355(_0xe2d3f4),_0x3d57c2=_0x21ae04(()=>_0x21c711['getCurrentTypeOfUnit$'](_0x4d5efd[_0x5a3bfb(0x1ae)]),void 0x0,!0x1,[]),[_0x5af5b0,_0xcc65c3]=_0x2f9e5a(null),[_0xa7b908,_0x1c86a6]=_0x2f9e5a(h[_0x5a3bfb(0x16f)]),_0x2663b3=_0xc18a52(null);return _0x28d068(()=>(_0x3d57c2&&_0x1ccd49[_0x5a3bfb(0x153)](_0x3d57c2[_0x5a3bfb(0x190)]())[_0x5a3bfb(0x1d9)](_0x3e7446=>{var _0x29a76d=_0x5a3bfb;_0xcc65c3(_0x3e7446),_0x2663b3['current']=_0x3e7446[_0x29a76d(0x17d)]['subscribe'](_0x3d6218=>{_0x1c86a6(_0x3d6218);});}),()=>{var _0x33543b=_0x5a3bfb,_0xe84aff;(_0xe84aff=_0x2663b3['current'])==null||_0xe84aff[_0x33543b(0x1da)](),_0x2663b3['current']=null;}),[_0x3d57c2,_0x1ccd49]),_0x5af5b0?_0x37aa2b(_0x5f162c,{'align':_0x5a3bfb(0x1bd),'disabled':_0xa7b908===h['OFFLINE'],'className':_0x5a3bfb(0x143),'overlay':_0x37aa2b($e,{'status':_0xa7b908,'coordinator':_0x5af5b0}),'children':_0x37aa2b('button',{'className':_0x53843f(_0x5a3bfb(0x1f2),{'univer-cursor-not-allowed':_0xa7b908===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xa7b908!==h[_0x5a3bfb(0x19f)]}),'type':'button','children':_0x37aa2b(B,{'className':_0x5a3bfb(0x1a7)})})}):null;}function $e(_0x3d7363){var _0x542f01=_0x351d60;const {status:_0x58664e,coordinator:_0x5c4fe9}=_0x3d7363;switch(_0x58664e){case h[_0x542f01(0x16f)]:return _0x37aa2b(Fe,{'coordinator':_0x5c4fe9});case h[_0x542f01(0x1a6)]:return _0x37aa2b(He,{'coordinator':_0x5c4fe9});case h[_0x542f01(0x193)]:return _0x37aa2b(je,{'coordinator':_0x5c4fe9});case h['OFFLINE']:return _0x37aa2b(Ve,{});case h[_0x542f01(0x162)]:return _0x37aa2b(Ue,{'coordinator':_0x5c4fe9});default:return null;}}function Fe(_0x1926d9){var _0x4452c2=_0x351d60;const {coordinator:_0x5531de}=_0x1926d9;return _0x2c44bf(_0x3db7a5,{'children':[_0x37aa2b(_0x4452c2(0x18b),{'className':_0x4452c2(0x188),'children':_0x4452c2(0x1d7)}),_0x37aa2b(_0x2ee079,{'onClick':()=>_0x5531de[_0x4452c2(0x154)](),'children':_0x4452c2(0x161)})]});}function He(_0x2bcad2){var _0x4fac49=_0x351d60;const {coordinator:_0x17a3ee}=_0x2bcad2;return _0x2c44bf(_0x3db7a5,{'children':[_0x37aa2b(_0x4fac49(0x18b),{'className':_0x4fac49(0x188),'children':_0x4fac49(0x1e6)}),_0x37aa2b(_0x2ee079,{'onClick':()=>_0x17a3ee[_0x4fac49(0x16a)](),'children':_0x4fac49(0x1a4)})]});}function je(_0x29af5e){var _0x48fca9=_0x351d60;const {coordinator:_0x726358}=_0x29af5e;return _0x2c44bf(_0x3db7a5,{'children':[_0x37aa2b(_0x48fca9(0x18b),{'className':_0x48fca9(0x188),'children':_0x48fca9(0x1eb)}),_0x37aa2b(_0x2ee079,{'variant':_0x48fca9(0x1af),'onClick':()=>_0x726358[_0x48fca9(0x1f0)](),'children':_0x48fca9(0x1ea)})]});}function Ue(_0x1f2b97){var _0x5ac823=_0x351d60;const {coordinator:_0x1cb7d0}=_0x1f2b97;return _0x2c44bf(_0x3db7a5,{'children':[_0x37aa2b(_0x5ac823(0x18b),{'className':_0x5ac823(0x188),'children':_0x5ac823(0x1dc)}),_0x37aa2b(_0x2ee079,{'variant':'default','onClick':()=>_0x1cb7d0['stopPresenting'](),'children':_0x5ac823(0x182)})]});}function Ve(){var _0x538e5d=_0x351d60;return _0x37aa2b(_0x3db7a5,{'children':_0x538e5d(0x1d0)});}var Me=Object[_0x351d60(0x1be)],ke=(_0x34df80,_0x7604c8,_0x400b67,_0x25bab7)=>{var _0xb254b6=_0x351d60;for(var _0x2f8102=_0x25bab7>0x1?void 0x0:_0x25bab7?Me(_0x7604c8,_0x400b67):_0x7604c8,_0x4175f3=_0x34df80[_0xb254b6(0x189)]-0x1,_0x344cb8;_0x4175f3>=0x0;_0x4175f3--)(_0x344cb8=_0x34df80[_0x4175f3])&&(_0x2f8102=_0x344cb8(_0x2f8102)||_0x2f8102);return _0x2f8102;},$=(_0x39b57a,_0x74a61c)=>(_0x424acd,_0x52eb3c)=>_0x74a61c(_0x424acd,_0x52eb3c,_0x39b57a);let b=class extends _0x224e4c{constructor(_0x55a9d2,_0x34b986){var _0x559de6=_0x351d60;super(),this[_0x559de6(0x1c5)]=_0x55a9d2,this[_0x559de6(0x1c8)]=_0x34b986,this[_0x559de6(0x175)]();}[_0x351d60(0x175)](){var _0x151a72=_0x351d60;this['disposeWithMe'](this[_0x151a72(0x1c8)][_0x151a72(0x1db)](_0x4ca9bf[_0x151a72(0x1f5)],()=>_0x32a071(Te,this[_0x151a72(0x1c5)])));}};b=ke([$(0x0,_0x3abca3(_0x3d57c1)),$(0x1,_0x230a4f)],b);var Ge=Object[_0x351d60(0x17f)],We=Object[_0x351d60(0x1be)],Ye=(_0xe8d861,_0x59cacd,_0x54c48c)=>_0x59cacd in _0xe8d861?Ge(_0xe8d861,_0x59cacd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54c48c}):_0xe8d861[_0x59cacd]=_0x54c48c,Be=(_0x171c52,_0x2780dd,_0x445de9,_0x30dacd)=>{var _0x4891ce=_0x351d60;for(var _0x1797d1=_0x30dacd>0x1?void 0x0:_0x30dacd?We(_0x2780dd,_0x445de9):_0x2780dd,_0x176d02=_0x171c52[_0x4891ce(0x189)]-0x1,_0x12d568;_0x176d02>=0x0;_0x176d02--)(_0x12d568=_0x171c52[_0x176d02])&&(_0x1797d1=_0x12d568(_0x1797d1)||_0x1797d1);return _0x1797d1;},F=(_0xd81a3a,_0x198ee9)=>(_0x4afe72,_0x1c5b78)=>_0x198ee9(_0x4afe72,_0x1c5b78,_0xd81a3a),J=(_0x4d826a,_0x4b0cf0,_0x31876f)=>Ye(_0x4d826a,typeof _0x4b0cf0!=_0x351d60(0x1cf)?_0x4b0cf0+'':_0x4b0cf0,_0x31876f);const Ze=_0x351d60(0x1bc);let O=class extends _0x599154{constructor(_0x29abb2=T,_0x263e40,_0x2732a8){var _0x3e7af6=_0x351d60;super(),this[_0x3e7af6(0x1aa)]=_0x29abb2,this[_0x3e7af6(0x1c5)]=_0x263e40,this[_0x3e7af6(0x16d)]=_0x2732a8;const {..._0x5771c1}=_0x75c717({},T,this[_0x3e7af6(0x1aa)]);this[_0x3e7af6(0x16d)][_0x3e7af6(0x184)](Oe,_0x5771c1);}[_0x351d60(0x17c)](){var _0x3b2fb7=_0x351d60;_0x5bf58d(this['_injector'],_0x38e8e6([[L],[I],[m],[b]],this['_config']['override'])),_0x281800(this[_0x3b2fb7(0x1c5)],[[m]]);}[_0x351d60(0x1dd)](){var _0x227f11=_0x351d60;_0x281800(this[_0x227f11(0x1c5)],[[b]]);}};function _0x5600(_0x49bd8d,_0x394706){var _0x2b53ef=_0x2b53();return _0x5600=function(_0x560029,_0x471ecd){_0x560029=_0x560029-0x143;var _0x37baa4=_0x2b53ef[_0x560029];return _0x37baa4;},_0x5600(_0x49bd8d,_0x394706);}J(O,_0x351d60(0x148),_0x4d5efd['UNIVER_UNKNOWN']),J(O,_0x351d60(0x19e),Ze),O=Be([_0x2195b7(_0x29bcfe),F(0x1,_0x3abca3(_0x3d57c1)),F(0x2,_0x5be387)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x3b4d(_0x9fb612,_0x872483){var _0x5102df=_0x5102();return _0x3b4d=function(_0x3b4d8b,_0x2b9f2d){_0x3b4d8b=_0x3b4d8b-0x1d7;var _0x537bce=_0x5102df[_0x3b4d8b];return _0x537bce;},_0x3b4d(_0x9fb612,_0x872483);}function _0x5102(){var _0x35c757=['complete','_beIdle','BehaviorSubject','idSuffix','@univerjs-pro/collaboration','@univerjs/sheets-ui','univer-w-full\x20univer-mb-3\x20univer-text-sm','UniverLiveSharePlugin','LIVESHARE_OPERATION','getOwnPropertyDescriptor','parse','_stopFollowing','sheet','shouldShareOperation','@univerjs/ui','concat','children','type','11848956kDppAS','NEW_CHANGESETS','live-share.config','UniverUi','univer-size-4','xlink:href','Present\x20this\x20document','object','params','indexOf','_unitID','entries','getMemberID','_univerInstanceService','SessionStatus','1247632OWFZQK','offline','_handleTerminate','_collabSessionService','_handleNewChangeSets','useState','getCurrentTypeOfUnit$','colorChannel1','random','includes','useRef','pluginName','15LYpEVm','UNIVER_SHEET','SAME_OPERATION_SHARE_INTERVAL','You\x27re\x20presenting\x20the\x20document','presenter','send','stringify','call','createInstance','live-share-icon','sessionStatus$','asObservable','NOT_FOLLOWING','getOwnPropertySymbols','startFollowing','throttleTime','React','registerSharedOperation','UniverSheetsUi','find','delete','dispose','prototype','OPERATION','none','LiveShareService','stopFollowing','IUniverInstanceService','LiveShareCoordinator','init','url(#$1','UniverProCollaboration','presenting','clsx','subscribe','CommandType','UniverSheets','LiveShareController','LIVESHARE_FETCH_OPERATIONS','SetZoomRatioOperation','useDependency','You\x27re\x20not\x20following\x20the\x20presenter','getLiveShareCoordinator','Button','not-following','IDLE','connectInjector','getConfig','Injector','tryStartPresenting','length','270121XDQjAB','2GKoyEW','ICommandService','operators','fill','override','_stopPresenting','@univerjs-pro/collaboration-client','use','trim','_handleNewHost','UniverCore','Disposable','icon','_sharedOperations','CollaborationEvent','_uiPartsService','default','forEach','LIVESHARE_NEW_HOST','_commandDisposable','Plugin','_handleOperation','symbol','You\x27re\x20following\x20the\x20presenter','text','Stop\x20following','_collabSession','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','button','@univerjs/core','LiveShare','LiveShareIcon','currentColor','_startPresenting','assign','27433dEqgpI','values','OFFLINE','tag','get','getTypeOfUnitDisposed$','UniverInstanceType','react','UNIVER_LIVE_SHARE_PLUGIN','function','string','_status','LIVESHARE_TERMINATE','2611500ZpxfQc','_configService','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','useEffect','Dropdown','react/jsx-runtime','RxDisposable','registerComponent','22yNHckq','@univerjs/design','dispose$','reverse','then','UniverCollaborationClientPlugin','2038737ZFRWYF','extend','_status$','className','1448EHrviM','defs','forwardRef','SetScrollOperation','UniverIcon','getUnitId','UniverProCollaborationClient','30ysEUQi','setConfig','rxjs','UniverProLiveShare','Stop\x20presenting','end','disposeWithMe','map','stopPresenting','_entities','following','exports','_startFollowing','You\x27are\x20offline.','div','_injector','next','rxjs/operators','_liveShareService','evenodd','clear','HEADER_MENU','_reporters','PRESENTING','amd','LIVESHARE_REQUEST_HOST','DependentOn','hasOwnProperty','has','current','executeCommand','add','defineProperty','Inject','jsx','path','_init','http://www.w3.org/2000/svg','Fragment','_config','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','idle','_startLiveShareCoordinator','attrs','getTypeOfUnitAdded$','_fetchOperations','getInitialStates','ONLINE','apply','defIds','takeUntil','data','DesktopLiveShareController','_handleOnline','requireSession','set','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','status$','mask','toDisposable','_commandService','jsxs','onStarting','_presenter','UNIVER_UNKNOWN','FOLLOWING','touchDependencies','893169oIWJmE','SetWorksheetActiveOperation','pipe','IUIPartsService','@univerjs/sheets'];_0x5102=function(){return _0x35c757;};return _0x5102();}(function(_0xe5363d,_0x4edd5a){var _0x26a12e=_0x3b4d,_0x121af0=_0xe5363d();while(!![]){try{var _0x2e46d7=-parseInt(_0x26a12e(0x1fe))/0x1*(-parseInt(_0x26a12e(0x1ff))/0x2)+parseInt(_0x26a12e(0x23d))/0x3+-parseInt(_0x26a12e(0x2b1))/0x4*(-parseInt(_0x26a12e(0x2bd))/0x5)+-parseInt(_0x26a12e(0x22f))/0x6+parseInt(_0x26a12e(0x222))/0x7*(parseInt(_0x26a12e(0x241))/0x8)+-parseInt(_0x26a12e(0x28b))/0x9*(-parseInt(_0x26a12e(0x248))/0xa)+parseInt(_0x26a12e(0x237))/0xb*(-parseInt(_0x26a12e(0x2a2))/0xc);if(_0x2e46d7===_0x4edd5a)break;else _0x121af0['push'](_0x121af0['shift']());}catch(_0x2ab52d){_0x121af0['push'](_0x121af0['shift']());}}}(_0x5102,0x75c6a),function(_0x1acc09,_0x1bad8c){var _0x566a2e=_0x3b4d;typeof exports==_0x566a2e(0x2a9)&&typeof module<'u'?_0x1bad8c(exports,require(_0x566a2e(0x205)),require(_0x566a2e(0x21c)),require(_0x566a2e(0x28f)),require(_0x566a2e(0x295)),require('@univerjs/ui'),require(_0x566a2e(0x234)),require(_0x566a2e(0x238)),require(_0x566a2e(0x229)),require(_0x566a2e(0x294)),require('rxjs'),require(_0x566a2e(0x259))):typeof define==_0x566a2e(0x22b)&&define[_0x566a2e(0x260)]?define([_0x566a2e(0x253),_0x566a2e(0x205),_0x566a2e(0x21c),_0x566a2e(0x28f),_0x566a2e(0x295),_0x566a2e(0x29e),_0x566a2e(0x234),_0x566a2e(0x238),_0x566a2e(0x229),_0x566a2e(0x294),_0x566a2e(0x24a),_0x566a2e(0x259)],_0x1bad8c):(_0x1acc09=typeof globalThis<'u'?globalThis:_0x1acc09||self,_0x1bad8c(_0x1acc09[_0x566a2e(0x24b)]={},_0x1acc09[_0x566a2e(0x247)],_0x1acc09[_0x566a2e(0x209)],_0x1acc09[_0x566a2e(0x1ef)],_0x1acc09[_0x566a2e(0x1dd)],_0x1acc09[_0x566a2e(0x2a5)],_0x1acc09[_0x566a2e(0x1db)],_0x1acc09['UniverDesign'],_0x1acc09[_0x566a2e(0x1db)],_0x1acc09[_0x566a2e(0x1ea)],_0x1acc09[_0x566a2e(0x24a)],_0x1acc09[_0x566a2e(0x24a)][_0x566a2e(0x201)]));}(this,function(_0x5dd97a,_0x569cba,_0x28105a,_0x177475,_0x2daf98,_0x18ad33,_0x374754,_0x37424e,_0x1bf5e5,_0x5dc2a0,_0x1c151f,_0x41010d){'use strict';var _0xa4fc0a=_0x3b4d;var _0x3ae5a5=Object['defineProperty'],_0x375d05=(_0x240806,_0x270c5a,_0x3af71b)=>_0x270c5a in _0x240806?_0x3ae5a5(_0x240806,_0x270c5a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3af71b}):_0x240806[_0x270c5a]=_0x3af71b,_0x10ec6c=(_0xde92c8,_0x1d1677,_0x1bdd94)=>_0x375d05(_0xde92c8,typeof _0x1d1677!=_0xa4fc0a(0x215)?_0x1d1677+'':_0x1d1677,_0x1bdd94);const _0x12c7ae=_0xa4fc0a(0x2a4),_0x4bce67={};class _0x4c9441 extends _0x28105a['Disposable']{constructor(){super(...arguments),_0x10ec6c(this,'_sharedOperations',new Set()),_0x10ec6c(this,'_reporters',new Set());}[_0xa4fc0a(0x1dc)](_0x48480f){var _0x3d89b3=_0xa4fc0a;return this[_0x3d89b3(0x20c)][_0x3d89b3(0x267)](_0x48480f),_0x28105a['toDisposable'](()=>this['_sharedOperations'][_0x3d89b3(0x1df)](_0x48480f));}['registerInitialStateReporter'](_0x1c7419){var _0x3bdf34=_0xa4fc0a;return this['_reporters'][_0x3bdf34(0x267)](_0x1c7419),_0x28105a[_0x3bdf34(0x283)](()=>this[_0x3bdf34(0x25e)]['delete'](_0x1c7419));}[_0xa4fc0a(0x29d)](_0x1704ae){var _0x317bc6=_0xa4fc0a;return this['_sharedOperations'][_0x317bc6(0x264)](_0x1704ae);}[_0xa4fc0a(0x276)](_0x15be8a){var _0x5110c8=_0xa4fc0a;return Array['from'](this['_reporters'])[_0x5110c8(0x24f)](_0x375d42=>_0x375d42(_0x15be8a));}}var _0x38f517=Object[_0xa4fc0a(0x299)],_0x4d1342=(_0x511ac6,_0x35e0f2,_0xdbaf3f,_0x395b00)=>{var _0x5f4ea7=_0xa4fc0a;for(var _0x2f40bd=_0x395b00>0x1?void 0x0:_0x395b00?_0x38f517(_0x35e0f2,_0xdbaf3f):_0x35e0f2,_0x22c32d=_0x511ac6[_0x5f4ea7(0x1fd)]-0x1,_0x5bf10a;_0x22c32d>=0x0;_0x22c32d--)(_0x5bf10a=_0x511ac6[_0x22c32d])&&(_0x2f40bd=_0x5bf10a(_0x2f40bd)||_0x2f40bd);return _0x2f40bd;},_0x58137c=(_0x5ba5b8,_0x5e9e50)=>(_0x25a512,_0x50071c)=>_0x5e9e50(_0x25a512,_0x50071c,_0x5ba5b8);let _0x3c9c15=class extends _0x28105a[_0xa4fc0a(0x20a)]{constructor(_0x406252){var _0x4d7788=_0xa4fc0a;super(),this['_liveShareService']=_0x406252,this[_0x4d7788(0x26c)]();}[_0xa4fc0a(0x26c)](){var _0x2811b3=_0xa4fc0a;[_0x2daf98[_0x2811b3(0x1f2)]['id'],_0x2daf98[_0x2811b3(0x244)]['id'],_0x177475['SetWorksheetActiveOperation']['id']]['forEach'](_0xad6f3f=>{var _0x1ab16d=_0x2811b3;this[_0x1ab16d(0x24e)](this[_0x1ab16d(0x25a)][_0x1ab16d(0x1dc)](_0xad6f3f));});}};_0x3c9c15=_0x4d1342([_0x58137c(0x0,_0x28105a[_0xa4fc0a(0x269)](_0x4c9441))],_0x3c9c15);var _0x29272e=function(){var _0x20524d=_0xa4fc0a;return _0x29272e=Object['assign']||function(_0xed0199){var _0x437efd=_0x3b4d;for(var _0x3b8acd,_0x35faa7=0x1,_0x42c20b=arguments[_0x437efd(0x1fd)];_0x35faa7<_0x42c20b;_0x35faa7++){_0x3b8acd=arguments[_0x35faa7];for(var _0x4c3be6 in _0x3b8acd)Object['prototype'][_0x437efd(0x263)][_0x437efd(0x2c4)](_0x3b8acd,_0x4c3be6)&&(_0xed0199[_0x4c3be6]=_0x3b8acd[_0x4c3be6]);}return _0xed0199;},_0x29272e[_0x20524d(0x278)](this,arguments);},_0x1460f1=function(_0x34f6c3,_0xabfec7){var _0x2818ff=_0xa4fc0a,_0x52eaa4={};for(var _0x254024 in _0x34f6c3)Object[_0x2818ff(0x1e1)][_0x2818ff(0x263)][_0x2818ff(0x2c4)](_0x34f6c3,_0x254024)&&_0xabfec7[_0x2818ff(0x2ab)](_0x254024)<0x0&&(_0x52eaa4[_0x254024]=_0x34f6c3[_0x254024]);if(_0x34f6c3!=null&&typeof Object[_0x2818ff(0x1d8)]==_0x2818ff(0x22b)){for(var _0x165cd6=0x0,_0x254024=Object[_0x2818ff(0x1d8)](_0x34f6c3);_0x165cd6<_0x254024[_0x2818ff(0x1fd)];_0x165cd6++)_0xabfec7['indexOf'](_0x254024[_0x165cd6])<0x0&&Object[_0x2818ff(0x1e1)]['propertyIsEnumerable'][_0x2818ff(0x2c4)](_0x34f6c3,_0x254024[_0x165cd6])&&(_0x52eaa4[_0x254024[_0x165cd6]]=_0x34f6c3[_0x254024[_0x165cd6]]);}return _0x52eaa4;},_0x5a9e4e=_0x1bf5e5[_0xa4fc0a(0x243)](function(_0x256276,_0x2d531f){var _0x3c76c9=_0xa4fc0a,_0x2d2b41=_0x256276[_0x3c76c9(0x20b)],_0x26d981=_0x256276['id'],_0x402c8f=_0x256276[_0x3c76c9(0x240)],_0x2c63a0=_0x256276[_0x3c76c9(0x23e)],_0x4779c7=_0x1460f1(_0x256276,['icon','id',_0x3c76c9(0x240),_0x3c76c9(0x23e)]),_0x483e40='univerjs-icon\x20univerjs-icon-'[_0x3c76c9(0x29f)](_0x26d981,'\x20')[_0x3c76c9(0x29f)](_0x402c8f||'')[_0x3c76c9(0x207)](),_0x4a5457=_0x1bf5e5[_0x3c76c9(0x2bb)]('_'[_0x3c76c9(0x29f)](_0x30dbcd()));return _0x2a1b41(_0x2d2b41,''[_0x3c76c9(0x29f)](_0x26d981),{'defIds':_0x2d2b41[_0x3c76c9(0x279)],'idSuffix':_0x4a5457[_0x3c76c9(0x265)]},_0x29272e({'ref':_0x2d531f,'className':_0x483e40},_0x4779c7),_0x2c63a0);});function _0x2a1b41(_0x40f8ee,_0x3665a7,_0x18d8ce,_0x24d25c,_0x77370b){var _0xb665f6=_0xa4fc0a;return _0x1bf5e5['createElement'](_0x40f8ee[_0xb665f6(0x225)],_0x29272e(_0x29272e({'key':_0x3665a7},_0x53e725(_0x40f8ee,_0x18d8ce,_0x77370b)),_0x24d25c),(_0x432786(_0x40f8ee,_0x18d8ce)['children']||[])[_0xb665f6(0x24f)](function(_0x192632,_0x1edfa6){var _0xfa6abd=_0xb665f6;return _0x2a1b41(_0x192632,''['concat'](_0x3665a7,'-')[_0xfa6abd(0x29f)](_0x40f8ee[_0xfa6abd(0x225)],'-')[_0xfa6abd(0x29f)](_0x1edfa6),_0x18d8ce,void 0x0,_0x77370b);}));}function _0x53e725(_0x335315,_0x183808,_0x30ff8a){var _0x276e46=_0xa4fc0a,_0x52e79e=_0x29272e({},_0x335315[_0x276e46(0x273)]);_0x30ff8a!=null&&_0x30ff8a[_0x276e46(0x2b8)]&&_0x52e79e[_0x276e46(0x202)]==='colorChannel1'&&(_0x52e79e['fill']=_0x30ff8a['colorChannel1']),_0x335315[_0x276e46(0x225)]==='mask'&&_0x52e79e['id']&&(_0x52e79e['id']=_0x52e79e['id']+_0x183808[_0x276e46(0x293)]),Object[_0x276e46(0x2ad)](_0x52e79e)['forEach'](function(_0x43895e){var _0x5483e7=_0x276e46,_0x205ba6=_0x43895e[0x0],_0x43c152=_0x43895e[0x1];_0x205ba6===_0x5483e7(0x282)&&typeof _0x43c152==_0x5483e7(0x22c)&&(_0x52e79e[_0x205ba6]=_0x43c152['replace'](/url\(#(.*)\)/,_0x5483e7(0x1e9)[_0x5483e7(0x29f)](_0x183808['idSuffix'],')')));});var _0x304b54=_0x183808[_0x276e46(0x279)];return!_0x304b54||_0x304b54[_0x276e46(0x1fd)]===0x0||(_0x335315[_0x276e46(0x225)]===_0x276e46(0x206)&&_0x52e79e[_0x276e46(0x2a7)]&&(_0x52e79e[_0x276e46(0x2a7)]=_0x52e79e[_0x276e46(0x2a7)]+_0x183808[_0x276e46(0x293)]),Object[_0x276e46(0x2ad)](_0x52e79e)[_0x276e46(0x210)](function(_0x20ae29){var _0xdfc3fb=_0x276e46,_0x1bd65d=_0x20ae29[0x0],_0x16fb9e=_0x20ae29[0x1];typeof _0x16fb9e==_0xdfc3fb(0x22c)&&(_0x52e79e[_0x1bd65d]=_0x16fb9e['replace'](/url\(#(.*)\)/,_0xdfc3fb(0x1e9)['concat'](_0x183808[_0xdfc3fb(0x293)],')')));})),_0x52e79e;}function _0x432786(_0x2e597c,_0x2e38f7){var _0x583310=_0xa4fc0a,_0x5df16d,_0x4b5818=_0x2e38f7[_0x583310(0x279)];return!_0x4b5818||_0x4b5818[_0x583310(0x1fd)]===0x0?_0x2e597c:_0x2e597c[_0x583310(0x225)]===_0x583310(0x242)&&(!((_0x5df16d=_0x2e597c[_0x583310(0x2a0)])===null||_0x5df16d===void 0x0)&&_0x5df16d[_0x583310(0x1fd)])?_0x29272e(_0x29272e({},_0x2e597c),{'children':_0x2e597c[_0x583310(0x2a0)][_0x583310(0x24f)](function(_0x2b64c5){var _0x55de35=_0x583310;return typeof _0x2b64c5['attrs']['id']==_0x55de35(0x22c)&&_0x4b5818&&_0x4b5818[_0x55de35(0x2ba)](_0x2b64c5[_0x55de35(0x273)]['id'])?_0x29272e(_0x29272e({},_0x2b64c5),{'attrs':_0x29272e(_0x29272e({},_0x2b64c5['attrs']),{'id':_0x2b64c5[_0x55de35(0x273)]['id']+_0x2e38f7[_0x55de35(0x293)]})}):_0x2b64c5;})}):_0x2e597c;}function _0x30dbcd(){var _0x38ed7a=_0xa4fc0a;return Math[_0x38ed7a(0x2b9)]()['toString'](0x24)['substring'](0x2,0x8);}_0x5a9e4e['displayName']=_0xa4fc0a(0x245);var _0x3836ef={'tag':'svg','attrs':{'xmlns':_0xa4fc0a(0x26d),'fill':_0xa4fc0a(0x1e3),'viewBox':'0\x200\x2017\x2017','width':'1em','height':'1em'},'children':[{'tag':_0xa4fc0a(0x26b),'attrs':{'fill':_0xa4fc0a(0x21f),'d':_0xa4fc0a(0x231)}},{'tag':_0xa4fc0a(0x26b),'attrs':{'fill':_0xa4fc0a(0x21f),'d':_0xa4fc0a(0x280),'fillRule':_0xa4fc0a(0x25b),'clipRule':_0xa4fc0a(0x25b)}}]},_0x159610=_0x1bf5e5[_0xa4fc0a(0x243)](function(_0x3e5498,_0x454707){var _0x452325=_0xa4fc0a;return _0x1bf5e5['createElement'](_0x5a9e4e,Object[_0x452325(0x221)]({},_0x3e5498,{'id':_0x452325(0x2c6),'ref':_0x454707,'icon':_0x3836ef}));});_0x159610['displayName']=_0xa4fc0a(0x21e);var _0x2084a3=Object[_0xa4fc0a(0x299)],_0x316b9d=(_0x36a3b4,_0x1bf6f0,_0x567db5,_0x28d226)=>{var _0x14561f=_0xa4fc0a;for(var _0x235306=_0x28d226>0x1?void 0x0:_0x28d226?_0x2084a3(_0x1bf6f0,_0x567db5):_0x1bf6f0,_0x513fd0=_0x36a3b4[_0x14561f(0x1fd)]-0x1,_0x136110;_0x513fd0>=0x0;_0x513fd0--)(_0x136110=_0x36a3b4[_0x513fd0])&&(_0x235306=_0x136110(_0x235306)||_0x235306);return _0x235306;},_0x5886c5=(_0x3a18be,_0x4ad736)=>(_0x3f1f4b,_0x1eabed)=>_0x4ad736(_0x3f1f4b,_0x1eabed,_0x3a18be);_0x5dd97a[_0xa4fc0a(0x1f0)]=class extends _0x28105a[_0xa4fc0a(0x235)]{constructor(_0x171d98,_0x5adb82,_0x2823d9){var _0x1092e2=_0xa4fc0a;super(),_0x10ec6c(this,_0x1092e2(0x251),new Map()),(this[_0x1092e2(0x2af)]=_0x171d98,this[_0x1092e2(0x257)]=_0x5adb82,this[_0x1092e2(0x2b4)]=_0x2823d9,this[_0x1092e2(0x26c)]());}async[_0xa4fc0a(0x1f5)](_0x5e7f3f){var _0x485a6f=_0xa4fc0a;return this[_0x485a6f(0x251)][_0x485a6f(0x264)](_0x5e7f3f)||await this[_0x485a6f(0x272)](_0x5e7f3f),this[_0x485a6f(0x251)][_0x485a6f(0x226)](_0x5e7f3f);}[_0xa4fc0a(0x26c)](){var _0x22c05d=_0xa4fc0a;this[_0x22c05d(0x2af)][_0x22c05d(0x274)](_0x28105a[_0x22c05d(0x228)][_0x22c05d(0x2be)])[_0x22c05d(0x28d)](_0x41010d[_0x22c05d(0x27a)](this[_0x22c05d(0x239)]))['subscribe'](async _0x59e135=>{var _0x3158ec=_0x22c05d;const _0x48e96e=_0x59e135[_0x3158ec(0x246)]();this[_0x3158ec(0x251)][_0x3158ec(0x264)](_0x48e96e)||this['_startLiveShareCoordinator'](_0x48e96e);}),this[_0x22c05d(0x2af)][_0x22c05d(0x227)](_0x28105a[_0x22c05d(0x228)]['UNIVER_SHEET'])[_0x22c05d(0x28d)](_0x41010d[_0x22c05d(0x27a)](this[_0x22c05d(0x239)]))[_0x22c05d(0x1ed)](_0x33dd6a=>{var _0x3570ac=_0x22c05d;const _0x52abe2=_0x33dd6a[_0x3570ac(0x246)](),_0xe92198=this['_entities'][_0x3570ac(0x226)](_0x52abe2);_0xe92198==null||_0xe92198[_0x3570ac(0x1e0)]();});}async['_startLiveShareCoordinator'](_0x249d03){var _0x4d86aa=_0xa4fc0a;const _0xefa54a=await this[_0x4d86aa(0x2b4)][_0x4d86aa(0x27e)](_0x249d03),_0x518782=this['_injector'][_0x4d86aa(0x2c5)](_0x5dd97a['LiveShareCoordinator'],_0x249d03,_0xefa54a);return _0x518782[_0x4d86aa(0x1e8)](),this['_entities'][_0x4d86aa(0x27f)](_0x249d03,_0x518782),_0x518782;}},_0x5dd97a[_0xa4fc0a(0x1f0)]=_0x316b9d([_0x5886c5(0x0,_0x28105a[_0xa4fc0a(0x1e6)]),_0x5886c5(0x1,_0x28105a[_0xa4fc0a(0x269)](_0x28105a[_0xa4fc0a(0x1fb)])),_0x5886c5(0x2,_0x28105a[_0xa4fc0a(0x269)](_0x569cba['CollaborationSessionService']))],_0x5dd97a[_0xa4fc0a(0x1f0)]);var _0x3f2ead=(_0x40049a=>(_0x40049a[_0xa4fc0a(0x224)]=_0xa4fc0a(0x2b2),_0x40049a[_0xa4fc0a(0x1f8)]='idle',_0x40049a[_0xa4fc0a(0x289)]=_0xa4fc0a(0x252),_0x40049a['NOT_FOLLOWING']=_0xa4fc0a(0x1f7),_0x40049a[_0xa4fc0a(0x25f)]='presenting',_0x40049a))(_0x3f2ead||{});const _0x54b8dc=_0xa4fc0a(0x2bf),_0x162342=0xc8;_0x5dd97a['LiveShareCoordinator']=class extends _0x28105a[_0xa4fc0a(0x235)]{constructor(_0x82106b,_0x15246e,_0x119aad,_0x54ec71,_0x35b69b){var _0x2cae95=_0xa4fc0a;super(),_0x10ec6c(this,'_status$',new _0x1c151f[(_0x2cae95(0x292))]('idle')),_0x10ec6c(this,_0x2cae95(0x281),this[_0x2cae95(0x23f)][_0x2cae95(0x2c8)]()),_0x10ec6c(this,'_init',!0x1),_0x10ec6c(this,_0x2cae95(0x212),null),_0x10ec6c(this,'_presenter',null),(this['_unitID']=_0x82106b,this[_0x2cae95(0x219)]=_0x15246e,this[_0x2cae95(0x230)]=_0x119aad,this[_0x2cae95(0x25a)]=_0x54ec71,this[_0x2cae95(0x284)]=_0x35b69b);}get[_0xa4fc0a(0x22d)](){return this['_status$']['getValue']();}[_0xa4fc0a(0x1e0)](){var _0x33232d=_0xa4fc0a,_0x3af794;(_0x3af794=this['_commandDisposable'])==null||_0x3af794[_0x33232d(0x1e0)](),this[_0x33232d(0x23f)][_0x33232d(0x258)]('idle'),this[_0x33232d(0x23f)][_0x33232d(0x290)]();}[_0xa4fc0a(0x1e8)](){var _0x519fba=_0xa4fc0a;this[_0x519fba(0x26c)]||(this[_0x519fba(0x26c)]=!0x0,this[_0x519fba(0x219)][_0x519fba(0x2c7)][_0x519fba(0x28d)](_0x41010d[_0x519fba(0x27a)](this[_0x519fba(0x239)]))[_0x519fba(0x1ed)](_0x56c7d8=>{var _0x258785=_0x519fba;switch(_0x56c7d8){case _0x569cba[_0x258785(0x2b0)][_0x258785(0x224)]:this['_handleOffline']();break;case _0x569cba[_0x258785(0x2b0)][_0x258785(0x277)]:this[_0x258785(0x27d)]();break;}}),this[_0x519fba(0x219)]['event$'][_0x519fba(0x28d)](_0x41010d[_0x519fba(0x27a)](this[_0x519fba(0x239)]))[_0x519fba(0x1ed)](_0x59cf28=>{var _0x1d6293=_0x519fba;const {eventID:_0x78f57}=_0x59cf28;switch(_0x78f57){case _0x5dc2a0[_0x1d6293(0x20d)][_0x1d6293(0x211)]:this[_0x1d6293(0x208)](_0x59cf28);break;case _0x5dc2a0[_0x1d6293(0x20d)][_0x1d6293(0x298)]:this[_0x1d6293(0x214)](_0x59cf28);break;case _0x5dc2a0['CollaborationEvent'][_0x1d6293(0x22e)]:this[_0x1d6293(0x2b3)]();break;case _0x5dc2a0[_0x1d6293(0x20d)][_0x1d6293(0x2a3)]:this[_0x1d6293(0x2b5)](_0x59cf28);break;}}));}[_0xa4fc0a(0x1fc)](){var _0xfb1761=_0xa4fc0a;this[_0xfb1761(0x219)][_0xfb1761(0x2c2)]({'eventID':_0x5dc2a0[_0xfb1761(0x20d)][_0xfb1761(0x261)],'data':{'unitID':this[_0xfb1761(0x2ac)],'userID':this[_0xfb1761(0x219)][_0xfb1761(0x2ae)]()}},this[_0xfb1761(0x2ac)]);}[_0xa4fc0a(0x250)](){var _0x3912e9=_0xa4fc0a;this[_0x3912e9(0x22d)]===_0x3912e9(0x1eb)&&(this['_status$']['next'](_0x3912e9(0x271)),this['_collabSession']['send']({'eventID':_0x5dc2a0[_0x3912e9(0x20d)][_0x3912e9(0x22e)],'data':{'unitID':this[_0x3912e9(0x2ac)]}},this[_0x3912e9(0x2ac)]));}['startFollowing'](){var _0x2d22e6=_0xa4fc0a;this[_0x2d22e6(0x22d)]===_0x2d22e6(0x1f7)&&(this['_status$'][_0x2d22e6(0x258)](_0x2d22e6(0x252)),this[_0x2d22e6(0x254)]());}[_0xa4fc0a(0x1e5)](){var _0x4d78ef=_0xa4fc0a;this['_status']===_0x4d78ef(0x252)&&this[_0x4d78ef(0x29b)]();}['_handleNewHost'](_0xb83c52){var _0x2c7b75=_0xa4fc0a;const {presenter:_0x1fbcda}=_0xb83c52[_0x2c7b75(0x27b)],_0x33ab15=this[_0x2c7b75(0x219)][_0x2c7b75(0x2ae)]();this[_0x2c7b75(0x287)]=_0x1fbcda,_0x1fbcda===_0x33ab15?(this[_0x2c7b75(0x29b)](),this[_0x2c7b75(0x220)]()):this['_status']!==_0x2c7b75(0x1f7)&&(this[_0x2c7b75(0x204)](),this[_0x2c7b75(0x254)]());}[_0xa4fc0a(0x275)](){var _0x549678=_0xa4fc0a;const _0x423d91={'eventID':_0x5dc2a0[_0x549678(0x20d)][_0x549678(0x1f1)]};this[_0x549678(0x219)][_0x549678(0x2c2)](_0x423d91,this[_0x549678(0x2ac)]);}['_handleTerminate'](){var _0x178e7b=_0xa4fc0a;this['_presenter']=null,this[_0x178e7b(0x22d)]!=='presenting'&&this[_0x178e7b(0x291)]();}['_handleNewChangeSets'](_0x246e47){var _0x2811f4=_0xa4fc0a;if(this[_0x2811f4(0x22d)]===_0x2811f4(0x252)&&this[_0x2811f4(0x287)]===_0x246e47['data']['memberID']){const _0x3a4f2d=_0x5dc2a0['parseProtocolChangeset'](_0x246e47['data'])['mutations'][_0x2811f4(0x23a)]()[_0x2811f4(0x1de)](_0x1fd13e=>_0x1fd13e['id']===_0x177475['InsertSheetMutation']['id']);if(_0x3a4f2d){const _0xff34ea=_0x3a4f2d[_0x2811f4(0x2aa)]['unitId'],_0x19ce52=_0x3a4f2d[_0x2811f4(0x2aa)][_0x2811f4(0x29c)]['id'];setTimeout(()=>{var _0x527e01=_0x2811f4;this[_0x527e01(0x284)][_0x527e01(0x266)](_0x177475[_0x527e01(0x28c)]['id'],{'unitId':_0xff34ea,'subUnitId':_0x19ce52},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x2ea300=_0xa4fc0a;this['_status$']['next'](_0x2ea300(0x1eb));const _0x4c0b0d=new Map(),_0xfd460a=this[_0x2ea300(0x212)]=new _0x28105a['DisposableCollection']();_0xfd460a[_0x2ea300(0x267)](_0x28105a[_0x2ea300(0x283)](()=>{var _0x557ba4=_0x2ea300;_0x4c0b0d[_0x557ba4(0x210)](_0x12a6a0=>_0x12a6a0['complete']()),_0x4c0b0d[_0x557ba4(0x25c)]();})),_0xfd460a[_0x2ea300(0x267)](this['_commandService']['onCommandExecuted'](_0x27053c=>{var _0x13dec0=_0x2ea300,_0x47d423;if(_0x27053c[_0x13dec0(0x2a1)]!==_0x28105a[_0x13dec0(0x1ee)][_0x13dec0(0x1e2)]||!this[_0x13dec0(0x25a)][_0x13dec0(0x29d)](_0x27053c['id']))return;const {id:_0x4e1c1e}=_0x27053c;let _0x31d40d;_0x4c0b0d[_0x13dec0(0x264)](_0x4e1c1e)?_0x31d40d=_0x4c0b0d[_0x13dec0(0x226)](_0x4e1c1e):(_0x31d40d=new _0x1c151f['Subject'](),_0x4c0b0d['set'](_0x4e1c1e,_0x31d40d),_0x31d40d[_0x13dec0(0x28d)](_0x41010d[_0x13dec0(0x1da)]((_0x47d423=this['_configService'][_0x13dec0(0x1fa)](_0x54b8dc))!=null?_0x47d423:_0x162342,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x13dec0(0x1ed)](_0x132591=>{var _0x5c931a=_0x13dec0;this[_0x5c931a(0x219)][_0x5c931a(0x2c2)]({'eventID':_0x5dc2a0[_0x5c931a(0x20d)][_0x5c931a(0x298)],'data':{'unitID':this['_unitID'],'operations':{[_0x132591['id']]:{'id':_0x132591['id'],'params':JSON[_0x5c931a(0x2c3)](_0x132591[_0x5c931a(0x2aa)])}}}},this['_unitID']);})),_0x31d40d[_0x13dec0(0x258)](_0x27053c);})),this[_0x2ea300(0x25a)][_0x2ea300(0x276)](this[_0x2ea300(0x2ac)])[_0x2ea300(0x210)](_0x572059=>this[_0x2ea300(0x219)]['send']({'eventID':_0x5dc2a0[_0x2ea300(0x20d)][_0x2ea300(0x298)],'data':{'unitID':this[_0x2ea300(0x2ac)],'operations':{[_0x572059['id']]:{'id':_0x572059['id'],'params':JSON[_0x2ea300(0x2c3)](_0x572059[_0x2ea300(0x2aa)])}}}},this['_unitID']));}[_0xa4fc0a(0x204)](){var _0x358337=_0xa4fc0a,_0x3a2426;this[_0x358337(0x23f)][_0x358337(0x258)](_0x358337(0x271)),(_0x3a2426=this[_0x358337(0x212)])==null||_0x3a2426[_0x358337(0x1e0)](),this[_0x358337(0x212)]=null;}[_0xa4fc0a(0x254)](){var _0x4e0be5=_0xa4fc0a,_0x2fc700;(_0x2fc700=this[_0x4e0be5(0x212)])==null||_0x2fc700[_0x4e0be5(0x1e0)](),this[_0x4e0be5(0x23f)][_0x4e0be5(0x258)](_0x4e0be5(0x252));}[_0xa4fc0a(0x291)](){var _0x3b21ff=_0xa4fc0a,_0x46b428;this['_status$'][_0x3b21ff(0x258)](_0x3b21ff(0x271)),(_0x46b428=this[_0x3b21ff(0x212)])==null||_0x46b428[_0x3b21ff(0x1e0)](),this[_0x3b21ff(0x212)]=null;}[_0xa4fc0a(0x29b)](){var _0x213623=_0xa4fc0a,_0x2cadef;this['_status$'][_0x213623(0x258)]('not-following'),(_0x2cadef=this[_0x213623(0x212)])==null||_0x2cadef[_0x213623(0x1e0)]();}[_0xa4fc0a(0x214)](_0xac2d2e){var _0x178cdc=_0xa4fc0a;if([_0x178cdc(0x1eb),_0x178cdc(0x1f7),_0x178cdc(0x2b2)][_0x178cdc(0x2ba)](this[_0x178cdc(0x22d)])||!_0xac2d2e[_0x178cdc(0x27b)][_0x178cdc(0x2c1)]||_0xac2d2e['data'][_0x178cdc(0x2c1)]===this[_0x178cdc(0x219)][_0x178cdc(0x2ae)]())return;this['_status']==='idle'&&this[_0x178cdc(0x254)]();const _0x5450f5=_0xac2d2e[_0x178cdc(0x27b)]['operations'];Object[_0x178cdc(0x223)](_0x5450f5)[_0x178cdc(0x210)](_0x538947=>{var _0xf4e094=_0x178cdc;this['_commandService'][_0xf4e094(0x266)](_0x538947['id'],_0x538947['params']?JSON[_0xf4e094(0x29a)](_0x538947[_0xf4e094(0x2aa)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1195c0=_0xa4fc0a,_0xd64bb0;this[_0x1195c0(0x23f)][_0x1195c0(0x258)](_0x1195c0(0x2b2)),(_0xd64bb0=this['_commandDisposable'])==null||_0xd64bb0[_0x1195c0(0x1e0)]();}['_handleOnline'](){var _0x4e6bc7=_0xa4fc0a;this[_0x4e6bc7(0x23f)]['next'](_0x4e6bc7(0x271)),this[_0x4e6bc7(0x275)]();}},_0x5dd97a[_0xa4fc0a(0x1e7)]=_0x316b9d([_0x5886c5(0x2,_0x28105a['IConfigService']),_0x5886c5(0x3,_0x28105a[_0xa4fc0a(0x269)](_0x4c9441)),_0x5886c5(0x4,_0x28105a[_0xa4fc0a(0x200)])],_0x5dd97a[_0xa4fc0a(0x1e7)]);function _0x44498e(){var _0x3fb542=_0xa4fc0a;const _0x4234ca=_0x18ad33['useDependency'](_0x5dd97a[_0x3fb542(0x1f0)]),_0x3fe0bf=_0x18ad33[_0x3fb542(0x1f3)](_0x28105a[_0x3fb542(0x1e6)]),_0x199c58=_0x18ad33['useObservable'](()=>_0x3fe0bf[_0x3fb542(0x2b7)](_0x28105a['UniverInstanceType'][_0x3fb542(0x2be)]),void 0x0,!0x1,[]),[_0x5b4068,_0x24d656]=_0x1bf5e5[_0x3fb542(0x2b6)](null),[_0x4ef9e5,_0x5770b0]=_0x1bf5e5['useState'](_0x3f2ead[_0x3fb542(0x1f8)]),_0x2796f0=_0x1bf5e5[_0x3fb542(0x2bb)](null);return _0x1bf5e5[_0x3fb542(0x232)](()=>(_0x199c58&&_0x4234ca['getLiveShareCoordinator'](_0x199c58[_0x3fb542(0x246)]())[_0x3fb542(0x23b)](_0x3522c9=>{var _0xbf3e79=_0x3fb542;_0x24d656(_0x3522c9),_0x2796f0[_0xbf3e79(0x265)]=_0x3522c9['status$'][_0xbf3e79(0x1ed)](_0x38dd56=>{_0x5770b0(_0x38dd56);});}),()=>{var _0x1c012d=_0x3fb542,_0x4db921;(_0x4db921=_0x2796f0['current'])==null||_0x4db921['unsubscribe'](),_0x2796f0[_0x1c012d(0x265)]=null;}),[_0x199c58,_0x4234ca]),_0x5b4068?_0x374754['jsx'](_0x37424e[_0x3fb542(0x233)],{'align':_0x3fb542(0x24d),'disabled':_0x4ef9e5===_0x3f2ead[_0x3fb542(0x224)],'className':_0x3fb542(0x270),'overlay':_0x374754[_0x3fb542(0x26a)](_0x4e9f51,{'status':_0x4ef9e5,'coordinator':_0x5b4068}),'children':_0x374754[_0x3fb542(0x26a)](_0x3fb542(0x21b),{'className':_0x37424e[_0x3fb542(0x1ec)](_0x3fb542(0x21a),{'univer-cursor-not-allowed':_0x4ef9e5===_0x3f2ead[_0x3fb542(0x224)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4ef9e5!==_0x3f2ead['OFFLINE']}),'type':_0x3fb542(0x21b),'children':_0x374754[_0x3fb542(0x26a)](_0x159610,{'className':_0x3fb542(0x2a6)})})}):null;}function _0x4e9f51(_0x37481e){var _0xa6bb8=_0xa4fc0a;const {status:_0x38286d,coordinator:_0x2df0cb}=_0x37481e;switch(_0x38286d){case _0x3f2ead[_0xa6bb8(0x1f8)]:return _0x374754[_0xa6bb8(0x26a)](_0xb63d96,{'coordinator':_0x2df0cb});case _0x3f2ead[_0xa6bb8(0x289)]:return _0x374754['jsx'](_0x149739,{'coordinator':_0x2df0cb});case _0x3f2ead[_0xa6bb8(0x1d7)]:return _0x374754[_0xa6bb8(0x26a)](_0x487723,{'coordinator':_0x2df0cb});case _0x3f2ead[_0xa6bb8(0x224)]:return _0x374754[_0xa6bb8(0x26a)](_0x5adcbd,{});case _0x3f2ead[_0xa6bb8(0x25f)]:return _0x374754[_0xa6bb8(0x26a)](_0x50a248,{'coordinator':_0x2df0cb});default:return null;}}function _0xb63d96(_0xc570bd){var _0x4be8a1=_0xa4fc0a;const {coordinator:_0x444d31}=_0xc570bd;return _0x374754[_0x4be8a1(0x285)](_0x374754[_0x4be8a1(0x26e)],{'children':[_0x374754[_0x4be8a1(0x26a)](_0x4be8a1(0x256),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x4be8a1(0x2a8)}),_0x374754['jsx'](_0x37424e[_0x4be8a1(0x1f6)],{'onClick':()=>_0x444d31[_0x4be8a1(0x1fc)](),'children':'Start'})]});}function _0x149739(_0x3c5305){var _0x4801da=_0xa4fc0a;const {coordinator:_0x4b6b8a}=_0x3c5305;return _0x374754['jsxs'](_0x374754[_0x4801da(0x26e)],{'children':[_0x374754[_0x4801da(0x26a)](_0x4801da(0x256),{'className':_0x4801da(0x296),'children':_0x4801da(0x216)}),_0x374754[_0x4801da(0x26a)](_0x37424e[_0x4801da(0x1f6)],{'onClick':()=>_0x4b6b8a['stopFollowing'](),'children':_0x4801da(0x218)})]});}function _0x487723(_0xcc0352){var _0x465b30=_0xa4fc0a;const {coordinator:_0x366b14}=_0xcc0352;return _0x374754[_0x465b30(0x285)](_0x374754['Fragment'],{'children':[_0x374754['jsx']('div',{'className':_0x465b30(0x296),'children':_0x465b30(0x1f4)}),_0x374754[_0x465b30(0x26a)](_0x37424e[_0x465b30(0x1f6)],{'variant':_0x465b30(0x217),'onClick':()=>_0x366b14[_0x465b30(0x1d9)](),'children':'Start\x20following'})]});}function _0x50a248(_0x20aa80){var _0x367a65=_0xa4fc0a;const {coordinator:_0x3db18c}=_0x20aa80;return _0x374754[_0x367a65(0x285)](_0x374754[_0x367a65(0x26e)],{'children':[_0x374754[_0x367a65(0x26a)]('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x367a65(0x2c0)}),_0x374754['jsx'](_0x37424e['Button'],{'variant':_0x367a65(0x20f),'onClick':()=>_0x3db18c[_0x367a65(0x250)](),'children':_0x367a65(0x24c)})]});}function _0x5adcbd(){var _0x178cc9=_0xa4fc0a;return _0x374754[_0x178cc9(0x26a)](_0x374754[_0x178cc9(0x26e)],{'children':_0x178cc9(0x255)});}var _0x45bf44=Object[_0xa4fc0a(0x299)],_0x5b02a8=(_0x32fe4b,_0x5d65a1,_0x15b49d,_0x104ebe)=>{var _0x456fbf=_0xa4fc0a;for(var _0x2f96b4=_0x104ebe>0x1?void 0x0:_0x104ebe?_0x45bf44(_0x5d65a1,_0x15b49d):_0x5d65a1,_0x55204f=_0x32fe4b[_0x456fbf(0x1fd)]-0x1,_0x251913;_0x55204f>=0x0;_0x55204f--)(_0x251913=_0x32fe4b[_0x55204f])&&(_0x2f96b4=_0x251913(_0x2f96b4)||_0x2f96b4);return _0x2f96b4;},_0x30db3e=(_0x3e35fa,_0x220a09)=>(_0x1c724e,_0x413a2c)=>_0x220a09(_0x1c724e,_0x413a2c,_0x3e35fa);_0x5dd97a['DesktopLiveShareController']=class extends _0x28105a[_0xa4fc0a(0x20a)]{constructor(_0x525b09,_0x5eb675){var _0x3f255e=_0xa4fc0a;super(),this[_0x3f255e(0x257)]=_0x525b09,this[_0x3f255e(0x20e)]=_0x5eb675,this['_mountLiveShare']();}['_mountLiveShare'](){var _0x58aecc=_0xa4fc0a;this['disposeWithMe'](this[_0x58aecc(0x20e)][_0x58aecc(0x236)](_0x18ad33['BuiltInUIPart'][_0x58aecc(0x25d)],()=>_0x18ad33[_0x58aecc(0x1f9)](_0x44498e,this[_0x58aecc(0x257)])));}},_0x5dd97a[_0xa4fc0a(0x27c)]=_0x5b02a8([_0x30db3e(0x0,_0x28105a[_0xa4fc0a(0x269)](_0x28105a[_0xa4fc0a(0x1fb)])),_0x30db3e(0x1,_0x18ad33[_0xa4fc0a(0x28e)])],_0x5dd97a['DesktopLiveShareController']);var _0xdc6460=Object[_0xa4fc0a(0x268)],_0x136e13=Object[_0xa4fc0a(0x299)],_0x396d71=(_0x2d89c6,_0x35fd39,_0xba6367)=>_0x35fd39 in _0x2d89c6?_0xdc6460(_0x2d89c6,_0x35fd39,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xba6367}):_0x2d89c6[_0x35fd39]=_0xba6367,_0x31e289=(_0x52dfd6,_0x3cc1d7,_0x224c30,_0x4be3d3)=>{for(var _0x4e814c=_0x4be3d3>0x1?void 0x0:_0x4be3d3?_0x136e13(_0x3cc1d7,_0x224c30):_0x3cc1d7,_0x147589=_0x52dfd6['length']-0x1,_0x2668fe;_0x147589>=0x0;_0x147589--)(_0x2668fe=_0x52dfd6[_0x147589])&&(_0x4e814c=_0x2668fe(_0x4e814c)||_0x4e814c);return _0x4e814c;},_0x101943=(_0x205384,_0x5e43fd)=>(_0x1ab7da,_0x442b0d)=>_0x5e43fd(_0x1ab7da,_0x442b0d,_0x205384),_0x4fd610=(_0x4b7548,_0x12ba63,_0x562c09)=>_0x396d71(_0x4b7548,typeof _0x12ba63!=_0xa4fc0a(0x215)?_0x12ba63+'':_0x12ba63,_0x562c09);const _0x237a50=_0xa4fc0a(0x22a);_0x5dd97a['UniverLiveSharePlugin']=class extends _0x28105a[_0xa4fc0a(0x213)]{constructor(_0x44d036=_0x4bce67,_0x224a33,_0x34825a){var _0x33d5cc=_0xa4fc0a;super(),this['_config']=_0x44d036,this[_0x33d5cc(0x257)]=_0x224a33,this[_0x33d5cc(0x230)]=_0x34825a;const {..._0x86b0d9}=_0x28105a['merge']({},_0x4bce67,this[_0x33d5cc(0x26f)]);this['_configService'][_0x33d5cc(0x249)](_0x12c7ae,_0x86b0d9);}[_0xa4fc0a(0x286)](){var _0x5ec981=_0xa4fc0a;_0x28105a['registerDependencies'](this['_injector'],_0x28105a['mergeOverrideWithDependencies']([[_0x4c9441],[_0x5dd97a[_0x5ec981(0x1f0)]],[_0x3c9c15],[_0x5dd97a['DesktopLiveShareController']]],this[_0x5ec981(0x26f)][_0x5ec981(0x203)])),_0x28105a[_0x5ec981(0x28a)](this[_0x5ec981(0x257)],[[_0x3c9c15]]);}['onRendered'](){var _0x2e26a7=_0xa4fc0a;_0x28105a[_0x2e26a7(0x28a)](this[_0x2e26a7(0x257)],[[_0x5dd97a[_0x2e26a7(0x27c)]]]);}},_0x4fd610(_0x5dd97a[_0xa4fc0a(0x297)],_0xa4fc0a(0x2a1),_0x28105a[_0xa4fc0a(0x228)][_0xa4fc0a(0x288)]),_0x4fd610(_0x5dd97a['UniverLiveSharePlugin'],_0xa4fc0a(0x2bc),_0x237a50),_0x5dd97a['UniverLiveSharePlugin']=_0x31e289([_0x28105a[_0xa4fc0a(0x262)](_0x569cba[_0xa4fc0a(0x23c)]),_0x101943(0x1,_0x28105a[_0xa4fc0a(0x269)](_0x28105a[_0xa4fc0a(0x1fb)])),_0x101943(0x2,_0x28105a['IConfigService'])],_0x5dd97a['UniverLiveSharePlugin']),_0x5dd97a[_0xa4fc0a(0x21d)]=_0x44498e,_0x5dd97a[_0xa4fc0a(0x1e4)]=_0x4c9441,_0x5dd97a['LiveShareStatus']=_0x3f2ead,Object[_0xa4fc0a(0x268)](_0x5dd97a,Symbol['toStringTag'],{'value':'Module'});}));
|
|
1
|
+
function _0x482b(_0x18f058,_0x3d4b1c){var _0x49cabe=_0x49ca();return _0x482b=function(_0x482b47,_0x163f3f){_0x482b47=_0x482b47-0x64;var _0x4d3a88=_0x49cabe[_0x482b47];return _0x4d3a88;},_0x482b(_0x18f058,_0x3d4b1c);}(function(_0x5250ec,_0x28ea7a){var _0x21fc37=_0x482b,_0x3ed563=_0x5250ec();while(!![]){try{var _0x207183=-parseInt(_0x21fc37(0x64))/0x1+-parseInt(_0x21fc37(0x141))/0x2+parseInt(_0x21fc37(0xe7))/0x3+-parseInt(_0x21fc37(0x122))/0x4+parseInt(_0x21fc37(0xa2))/0x5*(parseInt(_0x21fc37(0xb1))/0x6)+parseInt(_0x21fc37(0x102))/0x7+parseInt(_0x21fc37(0x78))/0x8*(parseInt(_0x21fc37(0x89))/0x9);if(_0x207183===_0x28ea7a)break;else _0x3ed563['push'](_0x3ed563['shift']());}catch(_0x32d922){_0x3ed563['push'](_0x3ed563['shift']());}}}(_0x49ca,0x43697),function(_0xadf584,_0x6828f8){var _0x27e6e9=_0x482b;typeof exports==_0x27e6e9(0x10f)&&typeof module<'u'?_0x6828f8(exports,require(_0x27e6e9(0x140)),require(_0x27e6e9(0xec)),require('@univerjs/sheets'),require(_0x27e6e9(0x101)),require(_0x27e6e9(0x93)),require('react/jsx-runtime'),require(_0x27e6e9(0xf5)),require(_0x27e6e9(0xd2)),require(_0x27e6e9(0x8d)),require(_0x27e6e9(0x6b)),require(_0x27e6e9(0x11f))):typeof define=='function'&&define[_0x27e6e9(0xf4)]?define([_0x27e6e9(0xab),_0x27e6e9(0x140),_0x27e6e9(0xec),_0x27e6e9(0x131),'@univerjs/sheets-ui','@univerjs/ui','react/jsx-runtime',_0x27e6e9(0xf5),_0x27e6e9(0xd2),'@univerjs-pro/collaboration',_0x27e6e9(0x6b),_0x27e6e9(0x11f)],_0x6828f8):(_0xadf584=typeof globalThis<'u'?globalThis:_0xadf584||self,_0x6828f8(_0xadf584[_0x27e6e9(0xce)]={},_0xadf584[_0x27e6e9(0xc0)],_0xadf584[_0x27e6e9(0x8b)],_0xadf584[_0x27e6e9(0x7e)],_0xadf584[_0x27e6e9(0x12a)],_0xadf584[_0x27e6e9(0xe1)],_0xadf584['React'],_0xadf584[_0x27e6e9(0xd5)],_0xadf584[_0x27e6e9(0xe9)],_0xadf584[_0x27e6e9(0x86)],_0xadf584['rxjs'],_0xadf584[_0x27e6e9(0x6b)][_0x27e6e9(0x150)]));}(this,function(_0x224b11,_0x35ef0a,_0x8e9bb7,_0x154e22,_0x2de615,_0x156244,_0x212baf,_0x596c7f,_0x256040,_0x2e265e,_0x2e0944,_0x289fe9){'use strict';var _0x182584=_0x482b;var _0x2b813d=Object[_0x182584(0xb4)],_0x5a02d2=(_0x4f1be6,_0x19019d,_0x331dfe)=>_0x19019d in _0x4f1be6?_0x2b813d(_0x4f1be6,_0x19019d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x331dfe}):_0x4f1be6[_0x19019d]=_0x331dfe,_0x354d30=(_0x1d0b84,_0x3e5e97,_0x15f0e4)=>_0x5a02d2(_0x1d0b84,typeof _0x3e5e97!=_0x182584(0x147)?_0x3e5e97+'':_0x3e5e97,_0x15f0e4);const _0x24e3ba=_0x182584(0x152),_0x393318={};class _0x2dea8b extends _0x8e9bb7[_0x182584(0x14f)]{constructor(){var _0x18e63c=_0x182584;super(...arguments),_0x354d30(this,_0x18e63c(0x128),new Set()),_0x354d30(this,_0x18e63c(0xbf),new Set());}[_0x182584(0x90)](_0x16c09b){var _0x1a7201=_0x182584;return this['_sharedOperations'][_0x1a7201(0xa9)](_0x16c09b),_0x8e9bb7['toDisposable'](()=>this['_sharedOperations'][_0x1a7201(0x144)](_0x16c09b));}['registerInitialStateReporter'](_0x36f09e){var _0x23c663=_0x182584;return this[_0x23c663(0xbf)][_0x23c663(0xa9)](_0x36f09e),_0x8e9bb7[_0x23c663(0x149)](()=>this[_0x23c663(0xbf)][_0x23c663(0x144)](_0x36f09e));}[_0x182584(0xd7)](_0xbdaad7){var _0x3836a9=_0x182584;return this[_0x3836a9(0x128)]['has'](_0xbdaad7);}[_0x182584(0xae)](_0x4b3d38){var _0x4db406=_0x182584;return Array[_0x4db406(0x80)](this[_0x4db406(0xbf)])[_0x4db406(0x97)](_0x4f1634=>_0x4f1634(_0x4b3d38));}}var _0x50d3e8=Object[_0x182584(0x7f)],_0x3922da=(_0xa6f846,_0x1613e5,_0xf19d7a,_0x69d36e)=>{var _0x4a91fc=_0x182584;for(var _0x2aac1c=_0x69d36e>0x1?void 0x0:_0x69d36e?_0x50d3e8(_0x1613e5,_0xf19d7a):_0x1613e5,_0x4b31fa=_0xa6f846[_0x4a91fc(0x75)]-0x1,_0x2d98b0;_0x4b31fa>=0x0;_0x4b31fa--)(_0x2d98b0=_0xa6f846[_0x4b31fa])&&(_0x2aac1c=_0x2d98b0(_0x2aac1c)||_0x2aac1c);return _0x2aac1c;},_0x1c5739=(_0x818952,_0x40a436)=>(_0x2bca4d,_0x4b3856)=>_0x40a436(_0x2bca4d,_0x4b3856,_0x818952);let _0x5f55d9=class extends _0x8e9bb7[_0x182584(0x14f)]{constructor(_0x53cb67){var _0x4f0ddc=_0x182584;super(),this['_liveShareService']=_0x53cb67,this[_0x4f0ddc(0x14c)]();}[_0x182584(0x14c)](){var _0x1bce82=_0x182584;[_0x2de615[_0x1bce82(0xbe)]['id'],_0x2de615[_0x1bce82(0x143)]['id'],_0x154e22[_0x1bce82(0x71)]['id']][_0x1bce82(0x7b)](_0x4969f4=>{var _0x46c696=_0x1bce82;this[_0x46c696(0x13f)](this[_0x46c696(0xf9)][_0x46c696(0x90)](_0x4969f4));});}};_0x5f55d9=_0x3922da([_0x1c5739(0x0,_0x8e9bb7[_0x182584(0x137)](_0x2dea8b))],_0x5f55d9);var _0x2c1d4f=function(){var _0x3b5341=_0x182584;return _0x2c1d4f=Object[_0x3b5341(0x130)]||function(_0x42e61a){var _0x3c9adf=_0x3b5341;for(var _0x53452e,_0x5c343f=0x1,_0x2b2a00=arguments['length'];_0x5c343f<_0x2b2a00;_0x5c343f++){_0x53452e=arguments[_0x5c343f];for(var _0x4607f5 in _0x53452e)Object[_0x3c9adf(0xaf)][_0x3c9adf(0xc4)]['call'](_0x53452e,_0x4607f5)&&(_0x42e61a[_0x4607f5]=_0x53452e[_0x4607f5]);}return _0x42e61a;},_0x2c1d4f['apply'](this,arguments);},_0x57de56=function(_0x5b3fd6,_0x29684f){var _0x121695=_0x182584,_0x33070c={};for(var _0xce6cf6 in _0x5b3fd6)Object[_0x121695(0xaf)][_0x121695(0xc4)][_0x121695(0x9e)](_0x5b3fd6,_0xce6cf6)&&_0x29684f['indexOf'](_0xce6cf6)<0x0&&(_0x33070c[_0xce6cf6]=_0x5b3fd6[_0xce6cf6]);if(_0x5b3fd6!=null&&typeof Object[_0x121695(0x153)]=='function'){for(var _0x21963f=0x0,_0xce6cf6=Object[_0x121695(0x153)](_0x5b3fd6);_0x21963f<_0xce6cf6[_0x121695(0x75)];_0x21963f++)_0x29684f['indexOf'](_0xce6cf6[_0x21963f])<0x0&&Object['prototype'][_0x121695(0xf8)]['call'](_0x5b3fd6,_0xce6cf6[_0x21963f])&&(_0x33070c[_0xce6cf6[_0x21963f]]=_0x5b3fd6[_0xce6cf6[_0x21963f]]);}return _0x33070c;},_0x39ee26=_0x256040[_0x182584(0xee)](function(_0x1ebf84,_0x17c643){var _0x55824f=_0x182584,_0x31b52f=_0x1ebf84[_0x55824f(0xc2)],_0x34f65f=_0x1ebf84['id'],_0xc825e=_0x1ebf84['className'],_0x4fdf9e=_0x1ebf84[_0x55824f(0x146)],_0x297629=_0x57de56(_0x1ebf84,[_0x55824f(0xc2),'id',_0x55824f(0x85),_0x55824f(0x146)]),_0x4a2605=_0x55824f(0xde)['concat'](_0x34f65f,'\x20')['concat'](_0xc825e||'')['trim'](),_0x2ff66b=_0x256040[_0x55824f(0x103)]('_'[_0x55824f(0xd4)](_0x34405c()));return _0x2292b6(_0x31b52f,''[_0x55824f(0xd4)](_0x34f65f),{'defIds':_0x31b52f[_0x55824f(0xa6)],'idSuffix':_0x2ff66b['current']},_0x2c1d4f({'ref':_0x17c643,'className':_0x4a2605},_0x297629),_0x4fdf9e);});function _0x2292b6(_0x54d0f1,_0x8987aa,_0x5c04bc,_0x5f4eba,_0xa39383){var _0x251b16=_0x182584;return _0x256040[_0x251b16(0xac)](_0x54d0f1[_0x251b16(0x139)],_0x2c1d4f(_0x2c1d4f({'key':_0x8987aa},_0x47de06(_0x54d0f1,_0x5c04bc,_0xa39383)),_0x5f4eba),(_0x183ceb(_0x54d0f1,_0x5c04bc)[_0x251b16(0x9d)]||[])[_0x251b16(0x97)](function(_0x4a9f97,_0x1b4c70){var _0x1c9ef8=_0x251b16;return _0x2292b6(_0x4a9f97,''[_0x1c9ef8(0xd4)](_0x8987aa,'-')[_0x1c9ef8(0xd4)](_0x54d0f1[_0x1c9ef8(0x139)],'-')[_0x1c9ef8(0xd4)](_0x1b4c70),_0x5c04bc,void 0x0,_0xa39383);}));}function _0x47de06(_0x209b67,_0x502afc,_0x4deec9){var _0x452e8c=_0x182584,_0x3b8ec7=_0x2c1d4f({},_0x209b67[_0x452e8c(0x154)]);_0x4deec9!=null&&_0x4deec9[_0x452e8c(0x129)]&&_0x3b8ec7[_0x452e8c(0xbc)]===_0x452e8c(0x129)&&(_0x3b8ec7[_0x452e8c(0xbc)]=_0x4deec9[_0x452e8c(0x129)]),_0x209b67[_0x452e8c(0x139)]===_0x452e8c(0x136)&&_0x3b8ec7['id']&&(_0x3b8ec7['id']=_0x3b8ec7['id']+_0x502afc[_0x452e8c(0xb6)]),Object[_0x452e8c(0x145)](_0x3b8ec7)['forEach'](function(_0x4269bb){var _0x59f588=_0x452e8c,_0x3e085d=_0x4269bb[0x0],_0x47fbe1=_0x4269bb[0x1];_0x3e085d===_0x59f588(0x136)&&typeof _0x47fbe1==_0x59f588(0x9a)&&(_0x3b8ec7[_0x3e085d]=_0x47fbe1[_0x59f588(0xe3)](/url\(#(.*)\)/,_0x59f588(0x106)[_0x59f588(0xd4)](_0x502afc[_0x59f588(0xb6)],')')));});var _0x186947=_0x502afc['defIds'];return!_0x186947||_0x186947[_0x452e8c(0x75)]===0x0||(_0x209b67[_0x452e8c(0x139)]===_0x452e8c(0xcc)&&_0x3b8ec7['xlink:href']&&(_0x3b8ec7['xlink:href']=_0x3b8ec7[_0x452e8c(0xf1)]+_0x502afc[_0x452e8c(0xb6)]),Object[_0x452e8c(0x145)](_0x3b8ec7)[_0x452e8c(0x7b)](function(_0x142fd3){var _0x304e4b=_0x452e8c,_0x4282f2=_0x142fd3[0x0],_0x36979c=_0x142fd3[0x1];typeof _0x36979c=='string'&&(_0x3b8ec7[_0x4282f2]=_0x36979c[_0x304e4b(0xe3)](/url\(#(.*)\)/,_0x304e4b(0x106)[_0x304e4b(0xd4)](_0x502afc['idSuffix'],')')));})),_0x3b8ec7;}function _0x183ceb(_0x330d69,_0x54ae61){var _0x1d1ff3=_0x182584,_0x44c000,_0xdb1848=_0x54ae61['defIds'];return!_0xdb1848||_0xdb1848[_0x1d1ff3(0x75)]===0x0?_0x330d69:_0x330d69[_0x1d1ff3(0x139)]===_0x1d1ff3(0x72)&&(!((_0x44c000=_0x330d69[_0x1d1ff3(0x9d)])===null||_0x44c000===void 0x0)&&_0x44c000[_0x1d1ff3(0x75)])?_0x2c1d4f(_0x2c1d4f({},_0x330d69),{'children':_0x330d69['children']['map'](function(_0x37e0bc){var _0x5e50f1=_0x1d1ff3;return typeof _0x37e0bc[_0x5e50f1(0x154)]['id']=='string'&&_0xdb1848&&_0xdb1848[_0x5e50f1(0x81)](_0x37e0bc[_0x5e50f1(0x154)]['id'])?_0x2c1d4f(_0x2c1d4f({},_0x37e0bc),{'attrs':_0x2c1d4f(_0x2c1d4f({},_0x37e0bc['attrs']),{'id':_0x37e0bc['attrs']['id']+_0x54ae61[_0x5e50f1(0xb6)]})}):_0x37e0bc;})}):_0x330d69;}function _0x34405c(){var _0x59f82d=_0x182584;return Math[_0x59f82d(0x11d)]()[_0x59f82d(0xc5)](0x24)[_0x59f82d(0xed)](0x2,0x8);}_0x39ee26[_0x182584(0x88)]=_0x182584(0xff);var _0x5a1eb8={'tag':_0x182584(0x70),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x182584(0x107),'viewBox':_0x182584(0xc8),'width':'1em','height':'1em'},'children':[{'tag':_0x182584(0xf6),'attrs':{'fill':_0x182584(0xfb),'d':_0x182584(0x99)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x182584(0x92),'fillRule':_0x182584(0xc1),'clipRule':_0x182584(0xc1)}}]},_0x4c0bfa=_0x256040[_0x182584(0xee)](function(_0x1898a0,_0xc07ef5){var _0xb00c5=_0x182584;return _0x256040[_0xb00c5(0xac)](_0x39ee26,Object[_0xb00c5(0x130)]({},_0x1898a0,{'id':_0xb00c5(0xfa),'ref':_0xc07ef5,'icon':_0x5a1eb8}));});_0x4c0bfa['displayName']=_0x182584(0x68);var _0x130f1f=Object[_0x182584(0x7f)],_0x490635=(_0x321d97,_0x5e7225,_0x21aab4,_0x1885cc)=>{var _0x535aef=_0x182584;for(var _0x44a092=_0x1885cc>0x1?void 0x0:_0x1885cc?_0x130f1f(_0x5e7225,_0x21aab4):_0x5e7225,_0xaee86f=_0x321d97[_0x535aef(0x75)]-0x1,_0x4545ac;_0xaee86f>=0x0;_0xaee86f--)(_0x4545ac=_0x321d97[_0xaee86f])&&(_0x44a092=_0x4545ac(_0x44a092)||_0x44a092);return _0x44a092;},_0x3ffce4=(_0x50f1f5,_0x2e20e2)=>(_0x2b4097,_0x1ab536)=>_0x2e20e2(_0x2b4097,_0x1ab536,_0x50f1f5);_0x224b11[_0x182584(0x12d)]=class extends _0x8e9bb7['RxDisposable']{constructor(_0x1c9ce3,_0x3a691c,_0x1c727b){var _0x63b72f=_0x182584;super(),_0x354d30(this,_0x63b72f(0x127),new Map()),(this[_0x63b72f(0xda)]=_0x1c9ce3,this['_injector']=_0x3a691c,this[_0x63b72f(0xbd)]=_0x1c727b,this[_0x63b72f(0x14c)]());}async[_0x182584(0xb0)](_0x248dbb){var _0x43f923=_0x182584;return this[_0x43f923(0x127)][_0x43f923(0xaa)](_0x248dbb)||await this[_0x43f923(0x113)](_0x248dbb),this[_0x43f923(0x127)][_0x43f923(0x84)](_0x248dbb);}['_init'](){var _0x285fd3=_0x182584;this[_0x285fd3(0xda)][_0x285fd3(0xb8)](_0x8e9bb7[_0x285fd3(0x11b)]['UNIVER_SHEET'])[_0x285fd3(0xdf)](_0x289fe9[_0x285fd3(0x9b)](this[_0x285fd3(0x11a)]))[_0x285fd3(0x13a)](async _0x1c3400=>{var _0x2f8765=_0x285fd3;const _0x2e7d10=_0x1c3400[_0x2f8765(0x157)]();this[_0x2f8765(0x127)][_0x2f8765(0xaa)](_0x2e7d10)||this[_0x2f8765(0x113)](_0x2e7d10);}),this[_0x285fd3(0xda)][_0x285fd3(0xcb)](_0x8e9bb7[_0x285fd3(0x11b)][_0x285fd3(0x7c)])[_0x285fd3(0xdf)](_0x289fe9[_0x285fd3(0x9b)](this[_0x285fd3(0x11a)]))['subscribe'](_0x4a291d=>{var _0x19747f=_0x285fd3;const _0x41037e=_0x4a291d['getUnitId'](),_0x1306c0=this[_0x19747f(0x127)][_0x19747f(0x84)](_0x41037e);_0x1306c0==null||_0x1306c0[_0x19747f(0x114)]();});}async[_0x182584(0x113)](_0x31ee03){var _0xab53c2=_0x182584;const _0x355b93=await this[_0xab53c2(0xbd)][_0xab53c2(0xc3)](_0x31ee03),_0x2fb09c=this[_0xab53c2(0x133)][_0xab53c2(0xb3)](_0x224b11['LiveShareCoordinator'],_0x31ee03,_0x355b93);return _0x2fb09c['init'](),this[_0xab53c2(0x127)]['set'](_0x31ee03,_0x2fb09c),_0x2fb09c;}},_0x224b11['LiveShareController']=_0x490635([_0x3ffce4(0x0,_0x8e9bb7['IUniverInstanceService']),_0x3ffce4(0x1,_0x8e9bb7['Inject'](_0x8e9bb7[_0x182584(0x120)])),_0x3ffce4(0x2,_0x8e9bb7[_0x182584(0x137)](_0x35ef0a['CollaborationSessionService']))],_0x224b11[_0x182584(0x12d)]);var _0x2a9fe1=(_0xea313e=>(_0xea313e[_0x182584(0x67)]=_0x182584(0x115),_0xea313e['IDLE']='idle',_0xea313e[_0x182584(0x109)]=_0x182584(0x83),_0xea313e[_0x182584(0x76)]='not-following',_0xea313e[_0x182584(0x14b)]=_0x182584(0xb7),_0xea313e))(_0x2a9fe1||{});const _0x2e9eb4=_0x182584(0xd6),_0x97670d=0xc8;_0x224b11[_0x182584(0xcd)]=class extends _0x8e9bb7[_0x182584(0x148)]{constructor(_0x17a065,_0x34440d,_0x567965,_0x458c3c,_0x488eb8){var _0x31edbc=_0x182584;super(),_0x354d30(this,_0x31edbc(0x158),new _0x2e0944['BehaviorSubject']('idle')),_0x354d30(this,_0x31edbc(0x6e),this[_0x31edbc(0x158)][_0x31edbc(0x125)]()),_0x354d30(this,_0x31edbc(0x14c),!0x1),_0x354d30(this,_0x31edbc(0x6f),null),_0x354d30(this,_0x31edbc(0x138),null),(this[_0x31edbc(0x124)]=_0x17a065,this['_collabSession']=_0x34440d,this[_0x31edbc(0xa5)]=_0x567965,this['_liveShareService']=_0x458c3c,this[_0x31edbc(0x13d)]=_0x488eb8);}get[_0x182584(0x111)](){var _0x536364=_0x182584;return this['_status$'][_0x536364(0x13b)]();}[_0x182584(0x114)](){var _0x4b63d9=_0x182584,_0x423266;(_0x423266=this[_0x4b63d9(0x6f)])==null||_0x423266[_0x4b63d9(0x114)](),this['_status$']['next'](_0x4b63d9(0xf7)),this[_0x4b63d9(0x158)][_0x4b63d9(0xa1)]();}[_0x182584(0xfc)](){var _0x390f53=_0x182584;this[_0x390f53(0x14c)]||(this[_0x390f53(0x14c)]=!0x0,this[_0x390f53(0xba)][_0x390f53(0xd3)][_0x390f53(0xdf)](_0x289fe9['takeUntil'](this['dispose$']))[_0x390f53(0x13a)](_0x38042d=>{var _0x453ff1=_0x390f53;switch(_0x38042d){case _0x35ef0a['SessionStatus'][_0x453ff1(0x67)]:this['_handleOffline']();break;case _0x35ef0a[_0x453ff1(0xa4)]['ONLINE']:this[_0x453ff1(0x9f)]();break;}}),this[_0x390f53(0xba)][_0x390f53(0x105)][_0x390f53(0xdf)](_0x289fe9[_0x390f53(0x9b)](this[_0x390f53(0x11a)]))[_0x390f53(0x13a)](_0x282728=>{var _0x5ea7ba=_0x390f53;const {eventID:_0x502201}=_0x282728;switch(_0x502201){case _0x2e265e[_0x5ea7ba(0xa7)][_0x5ea7ba(0x121)]:this[_0x5ea7ba(0x10d)](_0x282728);break;case _0x2e265e[_0x5ea7ba(0xa7)][_0x5ea7ba(0x110)]:this[_0x5ea7ba(0xf0)](_0x282728);break;case _0x2e265e['CollaborationEvent'][_0x5ea7ba(0xca)]:this['_handleTerminate']();break;case _0x2e265e[_0x5ea7ba(0xa7)]['NEW_CHANGESETS']:this[_0x5ea7ba(0xad)](_0x282728);break;}}));}[_0x182584(0x116)](){var _0x544ea3=_0x182584;this['_collabSession'][_0x544ea3(0x13c)]({'eventID':_0x2e265e[_0x544ea3(0xa7)][_0x544ea3(0xe2)],'data':{'unitID':this[_0x544ea3(0x124)],'userID':this[_0x544ea3(0xba)]['getMemberID']()}},this[_0x544ea3(0x124)]);}[_0x182584(0xd8)](){var _0x4ad09a=_0x182584;this[_0x4ad09a(0x111)]===_0x4ad09a(0xb7)&&(this['_status$'][_0x4ad09a(0xcf)](_0x4ad09a(0xf7)),this[_0x4ad09a(0xba)][_0x4ad09a(0x13c)]({'eventID':_0x2e265e[_0x4ad09a(0xa7)][_0x4ad09a(0xca)],'data':{'unitID':this[_0x4ad09a(0x124)]}},this[_0x4ad09a(0x124)]));}[_0x182584(0xe8)](){var _0x19d4fc=_0x182584;this[_0x19d4fc(0x111)]==='not-following'&&(this[_0x19d4fc(0x158)][_0x19d4fc(0xcf)]('following'),this[_0x19d4fc(0x156)]());}[_0x182584(0x134)](){var _0x3c60c0=_0x182584;this[_0x3c60c0(0x111)]==='following'&&this['_stopFollowing']();}['_handleNewHost'](_0x775102){var _0x53ad0a=_0x182584;const {presenter:_0x39aef5}=_0x775102[_0x53ad0a(0xea)],_0x5a0a84=this[_0x53ad0a(0xba)][_0x53ad0a(0x9c)]();this['_presenter']=_0x39aef5,_0x39aef5===_0x5a0a84?(this[_0x53ad0a(0x123)](),this['_startPresenting']()):this['_status']!==_0x53ad0a(0x95)&&(this[_0x53ad0a(0x10b)](),this[_0x53ad0a(0x156)]());}[_0x182584(0x12b)](){var _0x3d227e=_0x182584;const _0x2fcf05={'eventID':_0x2e265e[_0x3d227e(0xa7)][_0x3d227e(0x69)]};this[_0x3d227e(0xba)][_0x3d227e(0x13c)](_0x2fcf05,this[_0x3d227e(0x124)]);}['_handleTerminate'](){var _0x4040b6=_0x182584;this[_0x4040b6(0x138)]=null,this[_0x4040b6(0x111)]!==_0x4040b6(0xb7)&&this['_beIdle']();}[_0x182584(0xad)](_0x27e706){var _0x396942=_0x182584;if(this[_0x396942(0x111)]==='following'&&this[_0x396942(0x138)]===_0x27e706['data'][_0x396942(0xb5)]){const _0x503312=_0x2e265e[_0x396942(0xb9)](_0x27e706[_0x396942(0xea)])['mutations']['reverse']()[_0x396942(0x7a)](_0x745a10=>_0x745a10['id']===_0x154e22[_0x396942(0x118)]['id']);if(_0x503312){const _0x197c4a=_0x503312['params'][_0x396942(0xa3)],_0x3bfda0=_0x503312['params'][_0x396942(0xdb)]['id'];setTimeout(()=>{var _0x30c893=_0x396942;this[_0x30c893(0x13d)][_0x30c893(0x11e)](_0x154e22['SetWorksheetActiveOperation']['id'],{'unitId':_0x197c4a,'subUnitId':_0x3bfda0},{'fromCollab':!0x0});});}}}[_0x182584(0x119)](){var _0x252ce6=_0x182584;this[_0x252ce6(0x158)][_0x252ce6(0xcf)](_0x252ce6(0xb7));const _0x4e4295=new Map(),_0x4e8f9e=this[_0x252ce6(0x6f)]=new _0x8e9bb7[(_0x252ce6(0xe5))]();_0x4e8f9e[_0x252ce6(0xa9)](_0x8e9bb7['toDisposable'](()=>{var _0x4de4fd=_0x252ce6;_0x4e4295[_0x4de4fd(0x7b)](_0x215c42=>_0x215c42[_0x4de4fd(0xa1)]()),_0x4e4295[_0x4de4fd(0x10c)]();})),_0x4e8f9e[_0x252ce6(0xa9)](this[_0x252ce6(0x13d)]['onCommandExecuted'](_0x814cc1=>{var _0x260355=_0x252ce6,_0x1322d3;if(_0x814cc1['type']!==_0x8e9bb7[_0x260355(0x8e)][_0x260355(0xd1)]||!this['_liveShareService'][_0x260355(0xd7)](_0x814cc1['id']))return;const {id:_0x58f7c0}=_0x814cc1;let _0xc54041;_0x4e4295['has'](_0x58f7c0)?_0xc54041=_0x4e4295[_0x260355(0x84)](_0x58f7c0):(_0xc54041=new _0x2e0944[(_0x260355(0x65))](),_0x4e4295[_0x260355(0xfd)](_0x58f7c0,_0xc54041),_0xc54041[_0x260355(0xdf)](_0x289fe9[_0x260355(0x108)]((_0x1322d3=this['_configService'][_0x260355(0x7d)](_0x2e9eb4))!=null?_0x1322d3:_0x97670d,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x260355(0x13a)](_0x107236=>{var _0x223ea1=_0x260355;this[_0x223ea1(0xba)][_0x223ea1(0x13c)]({'eventID':_0x2e265e[_0x223ea1(0xa7)][_0x223ea1(0x110)],'data':{'unitID':this['_unitID'],'operations':{[_0x107236['id']]:{'id':_0x107236['id'],'params':JSON[_0x223ea1(0xd9)](_0x107236[_0x223ea1(0x77)])}}}},this[_0x223ea1(0x124)]);})),_0xc54041['next'](_0x814cc1);})),this[_0x252ce6(0xf9)][_0x252ce6(0xae)](this['_unitID'])[_0x252ce6(0x7b)](_0x15c172=>this[_0x252ce6(0xba)][_0x252ce6(0x13c)]({'eventID':_0x2e265e['CollaborationEvent'][_0x252ce6(0x110)],'data':{'unitID':this[_0x252ce6(0x124)],'operations':{[_0x15c172['id']]:{'id':_0x15c172['id'],'params':JSON[_0x252ce6(0xd9)](_0x15c172[_0x252ce6(0x77)])}}}},this[_0x252ce6(0x124)]));}['_stopPresenting'](){var _0x3644bb=_0x182584,_0x405321;this[_0x3644bb(0x158)][_0x3644bb(0xcf)](_0x3644bb(0xf7)),(_0x405321=this[_0x3644bb(0x6f)])==null||_0x405321[_0x3644bb(0x114)](),this[_0x3644bb(0x6f)]=null;}[_0x182584(0x156)](){var _0x4edede=_0x182584,_0xb54142;(_0xb54142=this[_0x4edede(0x6f)])==null||_0xb54142[_0x4edede(0x114)](),this[_0x4edede(0x158)][_0x4edede(0xcf)](_0x4edede(0x83));}[_0x182584(0xfe)](){var _0x271d3e=_0x182584,_0x4f99ce;this[_0x271d3e(0x158)][_0x271d3e(0xcf)](_0x271d3e(0xf7)),(_0x4f99ce=this[_0x271d3e(0x6f)])==null||_0x4f99ce[_0x271d3e(0x114)](),this[_0x271d3e(0x6f)]=null;}[_0x182584(0x123)](){var _0x36e0d3=_0x182584,_0xaaf33e;this[_0x36e0d3(0x158)][_0x36e0d3(0xcf)](_0x36e0d3(0x95)),(_0xaaf33e=this['_commandDisposable'])==null||_0xaaf33e[_0x36e0d3(0x114)]();}[_0x182584(0xf0)](_0x3c48d1){var _0x4c6700=_0x182584;if(['presenting',_0x4c6700(0x95),_0x4c6700(0x115)][_0x4c6700(0x81)](this[_0x4c6700(0x111)])||!_0x3c48d1[_0x4c6700(0xea)]['presenter']||_0x3c48d1[_0x4c6700(0xea)][_0x4c6700(0xb2)]===this[_0x4c6700(0xba)]['getMemberID']())return;this[_0x4c6700(0x111)]===_0x4c6700(0xf7)&&this[_0x4c6700(0x156)]();const _0x2ef19a=_0x3c48d1['data']['operations'];Object[_0x4c6700(0x11c)](_0x2ef19a)[_0x4c6700(0x7b)](_0x57af61=>{var _0x464863=_0x4c6700;this[_0x464863(0x13d)][_0x464863(0x11e)](_0x57af61['id'],_0x57af61[_0x464863(0x77)]?JSON[_0x464863(0x98)](_0x57af61[_0x464863(0x77)]):null,{'fromCollab':!0x0});});}[_0x182584(0xe0)](){var _0xd9cc4f=_0x182584,_0x2a5afc;this[_0xd9cc4f(0x158)][_0xd9cc4f(0xcf)](_0xd9cc4f(0x115)),(_0x2a5afc=this[_0xd9cc4f(0x6f)])==null||_0x2a5afc[_0xd9cc4f(0x114)]();}[_0x182584(0x9f)](){var _0x5e1617=_0x182584;this[_0x5e1617(0x158)][_0x5e1617(0xcf)](_0x5e1617(0xf7)),this[_0x5e1617(0x12b)]();}},_0x224b11[_0x182584(0xcd)]=_0x490635([_0x3ffce4(0x2,_0x8e9bb7[_0x182584(0x66)]),_0x3ffce4(0x3,_0x8e9bb7[_0x182584(0x137)](_0x2dea8b)),_0x3ffce4(0x4,_0x8e9bb7['ICommandService'])],_0x224b11['LiveShareCoordinator']);function _0x5a2e36(){var _0xb7c199=_0x182584;const _0x1670cf=_0x156244[_0xb7c199(0xc9)](_0x224b11[_0xb7c199(0x12d)]),_0x4c404b=_0x156244[_0xb7c199(0xc9)](_0x8e9bb7['IUniverInstanceService']),_0x59fa35=_0x156244[_0xb7c199(0x82)](()=>_0x4c404b[_0xb7c199(0x8c)](_0x8e9bb7['UniverInstanceType'][_0xb7c199(0x7c)]),void 0x0,!0x1,[]),[_0x24ecb1,_0x53f795]=_0x256040[_0xb7c199(0x94)](null),[_0x3fb293,_0x42ac23]=_0x256040[_0xb7c199(0x94)](_0x2a9fe1[_0xb7c199(0xef)]),_0x321ad7=_0x256040[_0xb7c199(0x103)](null);return _0x256040[_0xb7c199(0x135)](()=>(_0x59fa35&&_0x1670cf[_0xb7c199(0xb0)](_0x59fa35[_0xb7c199(0x157)]())['then'](_0x408557=>{var _0x34b533=_0xb7c199;_0x53f795(_0x408557),_0x321ad7[_0x34b533(0x79)]=_0x408557['status$'][_0x34b533(0x13a)](_0x37b2c4=>{_0x42ac23(_0x37b2c4);});}),()=>{var _0x4cf1e2=_0xb7c199,_0x3b6a6b;(_0x3b6a6b=_0x321ad7['current'])==null||_0x3b6a6b[_0x4cf1e2(0x14e)](),_0x321ad7[_0x4cf1e2(0x79)]=null;}),[_0x59fa35,_0x1670cf]),_0x24ecb1?_0x212baf[_0xb7c199(0xdc)](_0x596c7f[_0xb7c199(0xf2)],{'align':_0xb7c199(0x14a),'disabled':_0x3fb293===_0x2a9fe1[_0xb7c199(0x67)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x212baf['jsx'](_0x53995c,{'status':_0x3fb293,'coordinator':_0x24ecb1}),'children':_0x212baf[_0xb7c199(0xdc)](_0xb7c199(0x6d),{'className':_0x596c7f[_0xb7c199(0x10e)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3fb293===_0x2a9fe1['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3fb293!==_0x2a9fe1[_0xb7c199(0x67)]}),'type':_0xb7c199(0x6d),'children':_0x212baf[_0xb7c199(0xdc)](_0x4c0bfa,{'className':_0xb7c199(0x87)})})}):null;}function _0x53995c(_0x13f7d6){var _0x625ff4=_0x182584;const {status:_0x34cada,coordinator:_0x3579d2}=_0x13f7d6;switch(_0x34cada){case _0x2a9fe1[_0x625ff4(0xef)]:return _0x212baf[_0x625ff4(0xdc)](_0x2ce090,{'coordinator':_0x3579d2});case _0x2a9fe1[_0x625ff4(0x109)]:return _0x212baf[_0x625ff4(0xdc)](_0x4702c6,{'coordinator':_0x3579d2});case _0x2a9fe1[_0x625ff4(0x76)]:return _0x212baf[_0x625ff4(0xdc)](_0x5ba4b3,{'coordinator':_0x3579d2});case _0x2a9fe1[_0x625ff4(0x67)]:return _0x212baf['jsx'](_0x443033,{});case _0x2a9fe1[_0x625ff4(0x14b)]:return _0x212baf['jsx'](_0x3dd9fb,{'coordinator':_0x3579d2});default:return null;}}function _0x2ce090(_0x57ceb0){var _0x1cc82a=_0x182584;const {coordinator:_0x31b143}=_0x57ceb0;return _0x212baf['jsxs'](_0x212baf[_0x1cc82a(0x10a)],{'children':[_0x212baf[_0x1cc82a(0xdc)](_0x1cc82a(0x104),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x212baf[_0x1cc82a(0xdc)](_0x596c7f[_0x1cc82a(0x73)],{'onClick':()=>_0x31b143[_0x1cc82a(0x116)](),'children':_0x1cc82a(0x12e)})]});}function _0x4702c6(_0x1c09be){var _0x14ce5f=_0x182584;const {coordinator:_0x565fea}=_0x1c09be;return _0x212baf['jsxs'](_0x212baf[_0x14ce5f(0x10a)],{'children':[_0x212baf[_0x14ce5f(0xdc)]('div',{'className':_0x14ce5f(0xc7),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x212baf[_0x14ce5f(0xdc)](_0x596c7f[_0x14ce5f(0x73)],{'onClick':()=>_0x565fea['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x5ba4b3(_0x98f746){var _0x2e5bba=_0x182584;const {coordinator:_0x23b0ed}=_0x98f746;return _0x212baf[_0x2e5bba(0x112)](_0x212baf[_0x2e5bba(0x10a)],{'children':[_0x212baf[_0x2e5bba(0xdc)]('div',{'className':_0x2e5bba(0xc7),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x212baf[_0x2e5bba(0xdc)](_0x596c7f[_0x2e5bba(0x73)],{'variant':_0x2e5bba(0x155),'onClick':()=>_0x23b0ed['startFollowing'](),'children':_0x2e5bba(0x117)})]});}function _0x3dd9fb(_0x58cbf1){var _0x521bc3=_0x182584;const {coordinator:_0x45975f}=_0x58cbf1;return _0x212baf['jsxs'](_0x212baf[_0x521bc3(0x10a)],{'children':[_0x212baf[_0x521bc3(0xdc)](_0x521bc3(0x104),{'className':_0x521bc3(0xc7),'children':_0x521bc3(0x96)}),_0x212baf[_0x521bc3(0xdc)](_0x596c7f['Button'],{'variant':_0x521bc3(0x91),'onClick':()=>_0x45975f[_0x521bc3(0xd8)](),'children':'Stop\x20presenting'})]});}function _0x443033(){var _0x3d9e4a=_0x182584;return _0x212baf[_0x3d9e4a(0xdc)](_0x212baf[_0x3d9e4a(0x10a)],{'children':'You\x27are\x20offline.'});}var _0x253f3a=Object[_0x182584(0x7f)],_0x1b3665=(_0x1b62a9,_0x3eab9e,_0x100ddf,_0xb90bff)=>{var _0x1fa463=_0x182584;for(var _0x22cfda=_0xb90bff>0x1?void 0x0:_0xb90bff?_0x253f3a(_0x3eab9e,_0x100ddf):_0x3eab9e,_0x1a427c=_0x1b62a9[_0x1fa463(0x75)]-0x1,_0x23b24a;_0x1a427c>=0x0;_0x1a427c--)(_0x23b24a=_0x1b62a9[_0x1a427c])&&(_0x22cfda=_0x23b24a(_0x22cfda)||_0x22cfda);return _0x22cfda;},_0x45bdf0=(_0x1bd77a,_0x3d4a22)=>(_0x170b68,_0x3afb74)=>_0x3d4a22(_0x170b68,_0x3afb74,_0x1bd77a);_0x224b11['DesktopLiveShareController']=class extends _0x8e9bb7[_0x182584(0x14f)]{constructor(_0x2673b6,_0x1022ed){var _0x3ab896=_0x182584;super(),this[_0x3ab896(0x133)]=_0x2673b6,this[_0x3ab896(0x13e)]=_0x1022ed,this['_mountLiveShare']();}[_0x182584(0x6a)](){var _0x32a50b=_0x182584;this[_0x32a50b(0x13f)](this[_0x32a50b(0x13e)]['registerComponent'](_0x156244[_0x32a50b(0x100)][_0x32a50b(0xf3)],()=>_0x156244[_0x32a50b(0x132)](_0x5a2e36,this[_0x32a50b(0x133)])));}},_0x224b11['DesktopLiveShareController']=_0x1b3665([_0x45bdf0(0x0,_0x8e9bb7[_0x182584(0x137)](_0x8e9bb7['Injector'])),_0x45bdf0(0x1,_0x156244[_0x182584(0xdd)])],_0x224b11[_0x182584(0x142)]);var _0x23a688=Object['defineProperty'],_0x6126f1=Object[_0x182584(0x7f)],_0x288926=(_0x44860b,_0x55898a,_0x44a720)=>_0x55898a in _0x44860b?_0x23a688(_0x44860b,_0x55898a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x44a720}):_0x44860b[_0x55898a]=_0x44a720,_0x3d9ed1=(_0x53f504,_0x40b278,_0x4d1d6f,_0x57c4c6)=>{var _0x2b4694=_0x182584;for(var _0x2b816a=_0x57c4c6>0x1?void 0x0:_0x57c4c6?_0x6126f1(_0x40b278,_0x4d1d6f):_0x40b278,_0x3868ae=_0x53f504[_0x2b4694(0x75)]-0x1,_0x26d600;_0x3868ae>=0x0;_0x3868ae--)(_0x26d600=_0x53f504[_0x3868ae])&&(_0x2b816a=_0x26d600(_0x2b816a)||_0x2b816a);return _0x2b816a;},_0x377c71=(_0x1924e9,_0x58c4f1)=>(_0x2c960d,_0x81abd3)=>_0x58c4f1(_0x2c960d,_0x81abd3,_0x1924e9),_0x1eec64=(_0xe6e0d2,_0x42d8b4,_0xef0016)=>_0x288926(_0xe6e0d2,typeof _0x42d8b4!=_0x182584(0x147)?_0x42d8b4+'':_0x42d8b4,_0xef0016);const _0x3b69e6='UNIVER_LIVE_SHARE_PLUGIN';_0x224b11[_0x182584(0xe4)]=class extends _0x8e9bb7['Plugin']{constructor(_0xc1a6c0=_0x393318,_0x5efaaa,_0x45f9fc){var _0x138f81=_0x182584;super(),this[_0x138f81(0xd0)]=_0xc1a6c0,this[_0x138f81(0x133)]=_0x5efaaa,this[_0x138f81(0xa5)]=_0x45f9fc;const {..._0x2e348e}=_0x8e9bb7[_0x138f81(0x6c)]({},_0x393318,this[_0x138f81(0xd0)]);this[_0x138f81(0xa5)]['setConfig'](_0x24e3ba,_0x2e348e);}[_0x182584(0xeb)](){var _0x47f7e5=_0x182584;_0x8e9bb7[_0x47f7e5(0x14d)](this[_0x47f7e5(0x133)],_0x8e9bb7[_0x47f7e5(0x151)]([[_0x2dea8b],[_0x224b11['LiveShareController']],[_0x5f55d9],[_0x224b11[_0x47f7e5(0x142)]]],this[_0x47f7e5(0xd0)]['override'])),_0x8e9bb7[_0x47f7e5(0x12f)](this[_0x47f7e5(0x133)],[[_0x5f55d9]]);}[_0x182584(0xa8)](){var _0xfc37c5=_0x182584;_0x8e9bb7[_0xfc37c5(0x12f)](this['_injector'],[[_0x224b11[_0xfc37c5(0x142)]]]);}},_0x1eec64(_0x224b11[_0x182584(0xe4)],_0x182584(0xbb),_0x8e9bb7[_0x182584(0x11b)][_0x182584(0xe6)]),_0x1eec64(_0x224b11[_0x182584(0xe4)],'pluginName',_0x3b69e6),_0x224b11['UniverLiveSharePlugin']=_0x3d9ed1([_0x8e9bb7[_0x182584(0xa0)](_0x35ef0a[_0x182584(0x126)]),_0x377c71(0x1,_0x8e9bb7[_0x182584(0x137)](_0x8e9bb7[_0x182584(0x120)])),_0x377c71(0x2,_0x8e9bb7[_0x182584(0x66)])],_0x224b11[_0x182584(0xe4)]),_0x224b11[_0x182584(0x8a)]=_0x5a2e36,_0x224b11[_0x182584(0x74)]=_0x2dea8b,_0x224b11[_0x182584(0x12c)]=_0x2a9fe1,Object[_0x182584(0xb4)](_0x224b11,Symbol[_0x182584(0x8f)],{'value':_0x182584(0xc6)});}));function _0x49ca(){var _0x28e37d=['concat','UniverDesign','SAME_OPERATION_SHARE_INTERVAL','shouldShareOperation','stopPresenting','stringify','_univerInstanceService','sheet','jsx','IUIPartsService','univerjs-icon\x20univerjs-icon-','pipe','_handleOffline','UniverUi','LIVESHARE_REQUEST_HOST','replace','UniverLiveSharePlugin','DisposableCollection','UNIVER_UNKNOWN','403053qhzksY','startFollowing','React','data','onStarting','@univerjs/core','substring','forwardRef','IDLE','_handleOperation','xlink:href','Dropdown','HEADER_MENU','amd','@univerjs/design','path','idle','propertyIsEnumerable','_liveShareService','live-share-icon','currentColor','init','set','_beIdle','UniverIcon','BuiltInUIPart','@univerjs/sheets-ui','2287796CqBuJL','useRef','div','event$','url(#$1','none','throttleTime','FOLLOWING','Fragment','_stopPresenting','clear','_handleNewHost','clsx','object','LIVESHARE_OPERATION','_status','jsxs','_startLiveShareCoordinator','dispose','offline','tryStartPresenting','Start\x20following','InsertSheetMutation','_startPresenting','dispose$','UniverInstanceType','values','random','executeCommand','rxjs/operators','Injector','LIVESHARE_NEW_HOST','1603300EdiYZq','_stopFollowing','_unitID','asObservable','UniverCollaborationClientPlugin','_entities','_sharedOperations','colorChannel1','UniverSheetsUi','_fetchOperations','LiveShareStatus','LiveShareController','Start','touchDependencies','assign','@univerjs/sheets','connectInjector','_injector','stopFollowing','useEffect','mask','Inject','_presenter','tag','subscribe','getValue','send','_commandService','_uiPartsService','disposeWithMe','@univerjs-pro/collaboration-client','461938RzmJrj','DesktopLiveShareController','SetScrollOperation','delete','entries','extend','symbol','RxDisposable','toDisposable','end','PRESENTING','_init','registerDependencies','unsubscribe','Disposable','operators','mergeOverrideWithDependencies','live-share.config','getOwnPropertySymbols','attrs','text','_startFollowing','getUnitId','_status$','221727dRsUAw','Subject','IConfigService','OFFLINE','LiveShareIcon','LIVESHARE_FETCH_OPERATIONS','_mountLiveShare','rxjs','merge','button','status$','_commandDisposable','svg','SetWorksheetActiveOperation','defs','Button','LiveShareService','length','NOT_FOLLOWING','params','8bOFetF','current','find','forEach','UNIVER_SHEET','getConfig','UniverSheets','getOwnPropertyDescriptor','from','includes','useObservable','following','get','className','UniverProCollaboration','univer-size-4','displayName','5019849JDkNJn','LiveShare','UniverCore','getCurrentTypeOfUnit$','@univerjs-pro/collaboration','CommandType','toStringTag','registerSharedOperation','default','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','@univerjs/ui','useState','not-following','You\x27re\x20presenting\x20the\x20document','map','parse','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','string','takeUntil','getMemberID','children','call','_handleOnline','DependentOn','complete','820vGrCQN','unitId','SessionStatus','_configService','defIds','CollaborationEvent','onRendered','add','has','exports','createElement','_handleNewChangeSets','getInitialStates','prototype','getLiveShareCoordinator','4050DYQHni','presenter','createInstance','defineProperty','memberID','idSuffix','presenting','getTypeOfUnitAdded$','parseProtocolChangeset','_collabSession','type','fill','_collabSessionService','SetZoomRatioOperation','_reporters','UniverProCollaborationClient','evenodd','icon','requireSession','hasOwnProperty','toString','Module','univer-mb-3\x20univer-w-full\x20univer-text-sm','0\x200\x2017\x2017','useDependency','LIVESHARE_TERMINATE','getTypeOfUnitDisposed$','use','LiveShareCoordinator','UniverProLiveShare','next','_config','OPERATION','react','sessionStatus$'];_0x49ca=function(){return _0x28e37d;};return _0x49ca();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.8.0-nightly.
|
|
3
|
+
"version": "0.8.0-nightly.202506111607",
|
|
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
|
|
51
|
-
"@univerjs/
|
|
52
|
-
"@univerjs/core": "0.8.0-nightly.
|
|
53
|
-
"@univerjs/sheets": "0.8.0-nightly.
|
|
54
|
-
"@univerjs-
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/
|
|
50
|
+
"@univerjs-pro/collaboration": "0.8.0-nightly.202506111607",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.8.0-nightly.202506111607",
|
|
52
|
+
"@univerjs/core": "0.8.0-nightly.202506111607",
|
|
53
|
+
"@univerjs/sheets": "0.8.0-nightly.202506111607",
|
|
54
|
+
"@univerjs/sheets-ui": "0.8.0-nightly.202506111607",
|
|
55
|
+
"@univerjs/ui": "0.8.0-nightly.202506111607",
|
|
56
|
+
"@univerjs/design": "0.8.0-nightly.202506111607"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.4",
|