@univerjs-pro/live-share 0.10.8-nightly.202509200616 → 0.10.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x40f3b6=_0x103f;(function(_0x203430,_0x5e10b9){var _0xd855b8=_0x103f,_0x20fa24=_0x203430();while(!![]){try{var _0x41468c=parseInt(_0xd855b8(0x22c))/0x1*(parseInt(_0xd855b8(0x245))/0x2)+-parseInt(_0xd855b8(0x28a))/0x3*(-parseInt(_0xd855b8(0x1db))/0x4)+-parseInt(_0xd855b8(0x226))/0x5*(-parseInt(_0xd855b8(0x1d6))/0x6)+parseInt(_0xd855b8(0x1b4))/0x7*(-parseInt(_0xd855b8(0x27b))/0x8)+parseInt(_0xd855b8(0x26c))/0x9*(parseInt(_0xd855b8(0x24a))/0xa)+-parseInt(_0xd855b8(0x280))/0xb+parseInt(_0xd855b8(0x291))/0xc*(-parseInt(_0xd855b8(0x234))/0xd);if(_0x41468c===_0x5e10b9)break;else _0x20fa24['push'](_0x20fa24['shift']());}catch(_0x4207da){_0x20fa24['push'](_0x20fa24['shift']());}}}(_0x1146,0x4118a));var U=Object[_0x40f3b6(0x286)],F=(_0x379ccd,_0x3dfde7,_0x1d8243)=>_0x3dfde7 in _0x379ccd?U(_0x379ccd,_0x3dfde7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d8243}):_0x379ccd[_0x3dfde7]=_0x1d8243,v=(_0x22b7ae,_0x296d73,_0x46ded1)=>F(_0x22b7ae,typeof _0x296d73!='symbol'?_0x296d73+'':_0x296d73,_0x46ded1);Object[_0x40f3b6(0x286)](exports,Symbol[_0x40f3b6(0x258)],{'value':_0x40f3b6(0x1de)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');var u=function(){var _0x2e489c=_0x40f3b6;return u=Object[_0x2e489c(0x1ef)]||function(_0xf19496){var _0x57956b=_0x2e489c;for(var _0x17f992,_0x5251d4=0x1,_0x4c90c2=arguments[_0x57956b(0x277)];_0x5251d4<_0x4c90c2;_0x5251d4++){_0x17f992=arguments[_0x5251d4];for(var _0x3ce420 in _0x17f992)Object[_0x57956b(0x1cd)][_0x57956b(0x220)][_0x57956b(0x1c4)](_0x17f992,_0x3ce420)&&(_0xf19496[_0x3ce420]=_0x17f992[_0x3ce420]);}return _0xf19496;},u[_0x2e489c(0x1f8)](this,arguments);},$=function(_0xc94e8e,_0x2a85c6){var _0x3cc6a3=_0x40f3b6,_0x5877c2={};for(var _0xc2a7c2 in _0xc94e8e)Object['prototype'][_0x3cc6a3(0x220)]['call'](_0xc94e8e,_0xc2a7c2)&&_0x2a85c6[_0x3cc6a3(0x1d4)](_0xc2a7c2)<0x0&&(_0x5877c2[_0xc2a7c2]=_0xc94e8e[_0xc2a7c2]);if(_0xc94e8e!=null&&typeof Object[_0x3cc6a3(0x224)]==_0x3cc6a3(0x1c0)){for(var _0x5ce6a5=0x0,_0xc2a7c2=Object[_0x3cc6a3(0x224)](_0xc94e8e);_0x5ce6a5<_0xc2a7c2[_0x3cc6a3(0x277)];_0x5ce6a5++)_0x2a85c6[_0x3cc6a3(0x1d4)](_0xc2a7c2[_0x5ce6a5])<0x0&&Object[_0x3cc6a3(0x1cd)][_0x3cc6a3(0x21f)][_0x3cc6a3(0x1c4)](_0xc94e8e,_0xc2a7c2[_0x5ce6a5])&&(_0x5877c2[_0xc2a7c2[_0x5ce6a5]]=_0xc94e8e[_0xc2a7c2[_0x5ce6a5]]);}return _0x5877c2;},j=f[_0x40f3b6(0x279)](function(_0x141f24,_0xe70842){var _0x5a2a43=_0x40f3b6,_0xdd924=_0x141f24[_0x5a2a43(0x1e1)],_0x2be540=_0x141f24['id'],_0x2924a3=_0x141f24['className'],_0x1565e0=_0x141f24['extend'],_0x10515e=$(_0x141f24,['icon','id',_0x5a2a43(0x21c),'extend']),_0x46289f=_0x5a2a43(0x28c)[_0x5a2a43(0x27f)](_0x2be540,'\x20')[_0x5a2a43(0x27f)](_0x2924a3||'')[_0x5a2a43(0x272)](),_0x530d17=f['useRef']('_'[_0x5a2a43(0x27f)](k()));return y(_0xdd924,''['concat'](_0x2be540),{'defIds':_0xdd924[_0x5a2a43(0x20d)],'idSuffix':_0x530d17['current']},u({'ref':_0xe70842,'className':_0x46289f},_0x10515e),_0x1565e0);});function y(_0x2ba2d1,_0x5244a5,_0x215af6,_0x55c95e,_0x531104){var _0x310f29=_0x40f3b6;return f[_0x310f29(0x276)](_0x2ba2d1[_0x310f29(0x288)],u(u({'key':_0x5244a5},H(_0x2ba2d1,_0x215af6,_0x531104)),_0x55c95e),(V(_0x2ba2d1,_0x215af6)[_0x310f29(0x215)]||[])[_0x310f29(0x274)](function(_0x310f7e,_0x352b77){var _0x245f6c=_0x310f29;return y(_0x310f7e,''[_0x245f6c(0x27f)](_0x5244a5,'-')[_0x245f6c(0x27f)](_0x2ba2d1[_0x245f6c(0x288)],'-')[_0x245f6c(0x27f)](_0x352b77),_0x215af6,void 0x0,_0x531104);}));}function H(_0x2efcd7,_0x366ded,_0xf8ecee){var _0x3ac29c=_0x40f3b6,_0x2b6784=u({},_0x2efcd7[_0x3ac29c(0x1e5)]);_0xf8ecee!=null&&_0xf8ecee[_0x3ac29c(0x212)]&&_0x2b6784[_0x3ac29c(0x252)]==='colorChannel1'&&(_0x2b6784[_0x3ac29c(0x252)]=_0xf8ecee[_0x3ac29c(0x212)]),_0x2efcd7[_0x3ac29c(0x288)]==='mask'&&_0x2b6784['id']&&(_0x2b6784['id']=_0x2b6784['id']+_0x366ded['idSuffix']),Object[_0x3ac29c(0x275)](_0x2b6784)[_0x3ac29c(0x1ff)](function(_0x42fbd7){var _0x283441=_0x3ac29c,_0x3d8d55=_0x42fbd7[0x0],_0x29aefd=_0x42fbd7[0x1];_0x3d8d55==='mask'&&typeof _0x29aefd==_0x283441(0x247)&&(_0x2b6784[_0x3d8d55]=_0x29aefd['replace'](/url\(#(.*)\)/,_0x283441(0x269)[_0x283441(0x27f)](_0x366ded[_0x283441(0x1d0)],')')));});var _0x324c80=_0x366ded[_0x3ac29c(0x20d)];return!_0x324c80||_0x324c80[_0x3ac29c(0x277)]===0x0||(_0x2efcd7['tag']===_0x3ac29c(0x26e)&&_0x2b6784[_0x3ac29c(0x22a)]&&(_0x2b6784[_0x3ac29c(0x22a)]=_0x2b6784[_0x3ac29c(0x22a)]+_0x366ded[_0x3ac29c(0x1d0)]),Object['entries'](_0x2b6784)[_0x3ac29c(0x1ff)](function(_0x35b5d0){var _0x13cec8=_0x3ac29c,_0x43a788=_0x35b5d0[0x0],_0x22b923=_0x35b5d0[0x1];typeof _0x22b923==_0x13cec8(0x247)&&(_0x2b6784[_0x43a788]=_0x22b923[_0x13cec8(0x1bf)](/url\(#(.*)\)/,_0x13cec8(0x269)['concat'](_0x366ded['idSuffix'],')')));})),_0x2b6784;}function V(_0x1e44e4,_0x2bd13f){var _0x269f68=_0x40f3b6,_0x14b156,_0x20aa1d=_0x2bd13f[_0x269f68(0x20d)];return!_0x20aa1d||_0x20aa1d[_0x269f68(0x277)]===0x0?_0x1e44e4:_0x1e44e4[_0x269f68(0x288)]===_0x269f68(0x1fb)&&(!((_0x14b156=_0x1e44e4[_0x269f68(0x215)])===null||_0x14b156===void 0x0)&&_0x14b156[_0x269f68(0x277)])?u(u({},_0x1e44e4),{'children':_0x1e44e4[_0x269f68(0x215)][_0x269f68(0x274)](function(_0x46f90){var _0x4f069d=_0x269f68;return typeof _0x46f90[_0x4f069d(0x1e5)]['id']==_0x4f069d(0x247)&&_0x20aa1d&&_0x20aa1d['includes'](_0x46f90[_0x4f069d(0x1e5)]['id'])?u(u({},_0x46f90),{'attrs':u(u({},_0x46f90['attrs']),{'id':_0x46f90['attrs']['id']+_0x2bd13f[_0x4f069d(0x1d0)]})}):_0x46f90;})}):_0x1e44e4;}function k(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}j[_0x40f3b6(0x24f)]=_0x40f3b6(0x227);var M={'tag':_0x40f3b6(0x219),'attrs':{'xmlns':_0x40f3b6(0x1f9),'fill':'none','viewBox':_0x40f3b6(0x1dd),'width':_0x40f3b6(0x229),'height':_0x40f3b6(0x229)},'children':[{'tag':_0x40f3b6(0x235),'attrs':{'fill':_0x40f3b6(0x200),'d':_0x40f3b6(0x25d)}},{'tag':'path','attrs':{'fill':_0x40f3b6(0x200),'d':_0x40f3b6(0x243),'fillRule':'evenodd','clipRule':'evenodd'}}]},P=f[_0x40f3b6(0x279)](function(_0x395264,_0x412c91){var _0x4c78e4=_0x40f3b6;return f['createElement'](j,Object[_0x4c78e4(0x1ef)]({},_0x395264,{'id':_0x4c78e4(0x1b7),'ref':_0x412c91,'icon':M}));});P['displayName']=_0x40f3b6(0x27c);class O extends o[_0x40f3b6(0x1d3)]{constructor(){var _0x4ea7f9=_0x40f3b6;super(...arguments),v(this,_0x4ea7f9(0x1ed),new Set()),v(this,'_reporters',new Set());}[_0x40f3b6(0x246)](_0x343932){var _0x3b606f=_0x40f3b6;return this[_0x3b606f(0x1ed)][_0x3b606f(0x1ba)](_0x343932),o[_0x3b606f(0x1fd)](()=>this[_0x3b606f(0x1ed)]['delete'](_0x343932));}[_0x40f3b6(0x267)](_0x245cb3){var _0x127f2f=_0x40f3b6;return this['_reporters'][_0x127f2f(0x1ba)](_0x245cb3),o[_0x127f2f(0x1fd)](()=>this['_reporters'][_0x127f2f(0x1e2)](_0x245cb3));}[_0x40f3b6(0x1ce)](_0x30b619){var _0x37b35a=_0x40f3b6;return this[_0x37b35a(0x1ed)][_0x37b35a(0x23e)](_0x30b619);}[_0x40f3b6(0x1fa)](_0x38f490){var _0x113970=_0x40f3b6;return Array[_0x113970(0x28b)](this[_0x113970(0x23b)])[_0x113970(0x274)](_0x1c445b=>_0x1c445b(_0x38f490));}}var q=Object[_0x40f3b6(0x1bd)],R=(_0x43af1d,_0x4ac851,_0x594491,_0x15c0e5)=>{var _0x5b29c0=_0x40f3b6;for(var _0x5c8b0a=_0x15c0e5>0x1?void 0x0:_0x15c0e5?q(_0x4ac851,_0x594491):_0x4ac851,_0x412ecb=_0x43af1d[_0x5b29c0(0x277)]-0x1,_0x213f9d;_0x412ecb>=0x0;_0x412ecb--)(_0x213f9d=_0x43af1d[_0x412ecb])&&(_0x5c8b0a=_0x213f9d(_0x5c8b0a)||_0x5c8b0a);return _0x5c8b0a;},S=(_0x32c7c2,_0x469888)=>(_0x311d2d,_0x4efbc4)=>_0x469888(_0x311d2d,_0x4efbc4,_0x32c7c2);exports[_0x40f3b6(0x1c1)]=class extends o[_0x40f3b6(0x237)]{constructor(_0x1c3f71,_0x54a532,_0x2fa03a){var _0x3c60dc=_0x40f3b6;super(),v(this,_0x3c60dc(0x236),new Map()),(this[_0x3c60dc(0x292)]=_0x1c3f71,this[_0x3c60dc(0x1d9)]=_0x54a532,this[_0x3c60dc(0x289)]=_0x2fa03a,this[_0x3c60dc(0x253)]());}async[_0x40f3b6(0x24c)](_0x5acf1d){var _0x51b4a6=_0x40f3b6;return this['_entities']['has'](_0x5acf1d)||await this[_0x51b4a6(0x1fe)](_0x5acf1d),this[_0x51b4a6(0x236)][_0x51b4a6(0x22e)](_0x5acf1d);}[_0x40f3b6(0x253)](){var _0x1c46d8=_0x40f3b6;this[_0x1c46d8(0x292)][_0x1c46d8(0x240)](o[_0x1c46d8(0x283)][_0x1c46d8(0x25f)])[_0x1c46d8(0x26a)](b[_0x1c46d8(0x211)](this['dispose$']))[_0x1c46d8(0x1f6)](async _0x1b8742=>{var _0x5883e3=_0x1c46d8;const _0x34cf64=_0x1b8742[_0x5883e3(0x261)]();this[_0x5883e3(0x236)]['has'](_0x34cf64)||this[_0x5883e3(0x1fe)](_0x34cf64);}),this[_0x1c46d8(0x292)][_0x1c46d8(0x1e6)](o[_0x1c46d8(0x283)]['UNIVER_SHEET'])[_0x1c46d8(0x26a)](b['takeUntil'](this[_0x1c46d8(0x208)]))[_0x1c46d8(0x1f6)](_0x2b4918=>{var _0x2c5b3d=_0x1c46d8;const _0x4fccd6=_0x2b4918[_0x2c5b3d(0x261)](),_0x14c5e6=this['_entities'][_0x2c5b3d(0x22e)](_0x4fccd6);_0x14c5e6==null||_0x14c5e6[_0x2c5b3d(0x273)]();});}async['_startLiveShareCoordinator'](_0xcdfae4){var _0x46c97c=_0x40f3b6;const _0x5b63a9=await this[_0x46c97c(0x289)][_0x46c97c(0x262)](_0xcdfae4),_0x4aadba=this[_0x46c97c(0x1d9)][_0x46c97c(0x232)](exports['LiveShareCoordinator'],_0xcdfae4,_0x5b63a9);return _0x4aadba[_0x46c97c(0x205)](),this[_0x46c97c(0x236)]['set'](_0xcdfae4,_0x4aadba),_0x4aadba;}},exports[_0x40f3b6(0x1c1)]=R([S(0x0,o[_0x40f3b6(0x233)]),S(0x1,o['Inject'](o[_0x40f3b6(0x201)])),S(0x2,o[_0x40f3b6(0x225)](m[_0x40f3b6(0x20e)]))],exports[_0x40f3b6(0x1c1)]);var h=(_0x81c823=>(_0x81c823[_0x40f3b6(0x26f)]='offline',_0x81c823[_0x40f3b6(0x1be)]=_0x40f3b6(0x28f),_0x81c823[_0x40f3b6(0x278)]=_0x40f3b6(0x1c6),_0x81c823['NOT_FOLLOWING']=_0x40f3b6(0x284),_0x81c823[_0x40f3b6(0x281)]=_0x40f3b6(0x27d),_0x81c823))(h||{});function _0x1146(){var _0x544baf=['createElement','length','FOLLOWING','forwardRef','pluginName','551224bUNTAi','LiveShareIcon','presenting','sessionStatus$','concat','3047671gGixSF','PRESENTING','next','UniverInstanceType','not-following','registerComponent','defineProperty','_commandDisposable','tag','_collabSessionService','154005WNOTSM','from','univerjs-icon\x20univerjs-icon-','Dropdown','InsertSheetMutation','idle','startFollowing','48ddqkAR','_univerInstanceService','mergeOverrideWithDependencies','_handleNewHost','35KVNvDZ','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','_commandService','live-share-icon','_handleOperation','default','add','stopFollowing','_collabSession','getOwnPropertyDescriptor','IDLE','replace','function','LiveShareController','univer-mb-3\x20univer-w-full\x20univer-text-sm','LIVESHARE_OPERATION','call','Button','following','getMemberID','_unitID','unsubscribe','LiveShareStatus','Fragment','mutations','prototype','shouldShareOperation','NEW_CHANGESETS','idSuffix','SAME_OPERATION_SHARE_INTERVAL','You\x27re\x20presenting\x20the\x20document','Disposable','indexOf','_beIdle','2776296kogynk','params','_status$','_injector','useState','28LOIFTb','type','0\x200\x2017\x2017','Module','status$','BehaviorSubject','icon','delete','UNIVER_LIVE_SHARE_PLUGIN','presenter','attrs','getTypeOfUnitDisposed$','CollaborationEvent','symbol','_handleOffline','onCommandExecuted','onRendered','onStarting','_sharedOperations','parse','assign','jsxs','univer-size-4','SetZoomRatioOperation','_config','then','useDependency','subscribe','LIVESHARE_FETCH_OPERATIONS','apply','http://www.w3.org/2000/svg','getInitialStates','defs','stringify','toDisposable','_startLiveShareCoordinator','forEach','currentColor','Injector','_mountLiveShare','ICommandService','CommandType','init','_startFollowing','set','dispose$','You\x27re\x20not\x20following\x20the\x20presenter','UNIVER_UNKNOWN','unitId','_presenter','defIds','CollaborationSessionService','_liveShareService','sheet','takeUntil','colorChannel1','find','operations','children','_stopPresenting','memberID','LiveShareService','svg','connectInjector','button','className','LIVESHARE_REQUEST_HOST','UniverCollaborationClientPlugin','propertyIsEnumerable','hasOwnProperty','_handleOnline','Start','You\x27are\x20offline.','getOwnPropertySymbols','Inject','5ldXrhu','UniverIcon','complete','1em','xlink:href','registerDependencies','269410aglzqd','throttleTime','get','DesktopLiveShareController','SetScrollOperation','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','createInstance','IUniverInstanceService','1548677pOpVcZ','path','_entities','RxDisposable','touchDependencies','SessionStatus','_handleTerminate','_reporters','data','clsx','has','SetWorksheetActiveOperation','getTypeOfUnitAdded$','jsx','current','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','event$','2aOzazo','registerSharedOperation','string','IUIPartsService','_uiPartsService','10eNBoGZ','reverse','getLiveShareCoordinator','disposeWithMe','includes','displayName','_startPresenting','LIVESHARE_NEW_HOST','fill','_init','_handleNewChangeSets','_status','Plugin','HEADER_MENU','toStringTag','send','OPERATION','end','Start\x20following','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','UniverLiveSharePlugin','UNIVER_SHEET','_configService','getUnitId','requireSession','getValue','Subject','_fetchOperations','_stopFollowing','registerInitialStateReporter','override','url(#$1','pipe','LiveShareCoordinator','2459295zIBjyN','div','use','OFFLINE','LIVESHARE_TERMINATE','executeCommand','trim','dispose','map','entries'];_0x1146=function(){return _0x544baf;};return _0x1146();}const W=_0x40f3b6(0x1d1),G=0xc8;exports['LiveShareCoordinator']=class extends o['RxDisposable']{constructor(_0x20fd1e,_0x345495,_0xacd67b,_0x1f65b9,_0x18b3a5){var _0x15ae79=_0x40f3b6;super(),v(this,'_status$',new w[(_0x15ae79(0x1e0))](_0x15ae79(0x28f))),v(this,_0x15ae79(0x1df),this[_0x15ae79(0x1d8)]['asObservable']()),v(this,_0x15ae79(0x253),!0x1),v(this,_0x15ae79(0x287),null),v(this,_0x15ae79(0x20c),null),(this[_0x15ae79(0x1c8)]=_0x20fd1e,this['_collabSession']=_0x345495,this[_0x15ae79(0x260)]=_0xacd67b,this[_0x15ae79(0x20f)]=_0x1f65b9,this[_0x15ae79(0x1b6)]=_0x18b3a5);}get['_status'](){var _0x2f056f=_0x40f3b6;return this[_0x2f056f(0x1d8)][_0x2f056f(0x263)]();}[_0x40f3b6(0x273)](){var _0x2a78f8=_0x40f3b6,_0x2c9771;(_0x2c9771=this[_0x2a78f8(0x287)])==null||_0x2c9771[_0x2a78f8(0x273)](),this[_0x2a78f8(0x1d8)][_0x2a78f8(0x282)](_0x2a78f8(0x28f)),this[_0x2a78f8(0x1d8)][_0x2a78f8(0x228)]();}[_0x40f3b6(0x205)](){var _0x2ce1a4=_0x40f3b6;this[_0x2ce1a4(0x253)]||(this[_0x2ce1a4(0x253)]=!0x0,this['_collabSession'][_0x2ce1a4(0x27e)]['pipe'](b[_0x2ce1a4(0x211)](this[_0x2ce1a4(0x208)]))['subscribe'](_0x3baf02=>{var _0x492877=_0x2ce1a4;switch(_0x3baf02){case m['SessionStatus'][_0x492877(0x26f)]:this['_handleOffline']();break;case m[_0x492877(0x239)]['ONLINE']:this['_handleOnline']();break;}}),this[_0x2ce1a4(0x1bc)][_0x2ce1a4(0x244)][_0x2ce1a4(0x26a)](b[_0x2ce1a4(0x211)](this[_0x2ce1a4(0x208)]))[_0x2ce1a4(0x1f6)](_0x26323d=>{var _0x5c6371=_0x2ce1a4;const {eventID:_0x5a34c1}=_0x26323d;switch(_0x5a34c1){case _[_0x5c6371(0x1e7)][_0x5c6371(0x251)]:this[_0x5c6371(0x294)](_0x26323d);break;case _[_0x5c6371(0x1e7)][_0x5c6371(0x1c3)]:this[_0x5c6371(0x1b8)](_0x26323d);break;case _[_0x5c6371(0x1e7)][_0x5c6371(0x270)]:this[_0x5c6371(0x23a)]();break;case _[_0x5c6371(0x1e7)][_0x5c6371(0x1cf)]:this[_0x5c6371(0x254)](_0x26323d);break;}}));}['tryStartPresenting'](){var _0x32031d=_0x40f3b6;this[_0x32031d(0x1bc)]['send']({'eventID':_['CollaborationEvent'][_0x32031d(0x21d)],'data':{'unitID':this[_0x32031d(0x1c8)],'userID':this[_0x32031d(0x1bc)][_0x32031d(0x1c7)]()}},this[_0x32031d(0x1c8)]);}['stopPresenting'](){var _0x56e521=_0x40f3b6;this['_status']===_0x56e521(0x27d)&&(this[_0x56e521(0x1d8)][_0x56e521(0x282)](_0x56e521(0x28f)),this['_collabSession']['send']({'eventID':_[_0x56e521(0x1e7)][_0x56e521(0x270)],'data':{'unitID':this[_0x56e521(0x1c8)]}},this['_unitID']));}['startFollowing'](){var _0x530f4a=_0x40f3b6;this[_0x530f4a(0x255)]===_0x530f4a(0x284)&&(this['_status$'][_0x530f4a(0x282)](_0x530f4a(0x1c6)),this[_0x530f4a(0x206)]());}['stopFollowing'](){var _0xcf1110=_0x40f3b6;this[_0xcf1110(0x255)]==='following'&&this[_0xcf1110(0x266)]();}[_0x40f3b6(0x294)](_0x207cad){var _0x445fb1=_0x40f3b6;const {presenter:_0x4f240b}=_0x207cad[_0x445fb1(0x23c)],_0x32cd25=this[_0x445fb1(0x1bc)][_0x445fb1(0x1c7)]();this[_0x445fb1(0x20c)]=_0x4f240b,_0x4f240b===_0x32cd25?(this['_stopFollowing'](),this[_0x445fb1(0x250)]()):this['_status']!==_0x445fb1(0x284)&&(this[_0x445fb1(0x216)](),this['_startFollowing']());}[_0x40f3b6(0x265)](){var _0x57a49c=_0x40f3b6;const _0x497ad0={'eventID':_[_0x57a49c(0x1e7)][_0x57a49c(0x1f7)]};this[_0x57a49c(0x1bc)]['send'](_0x497ad0,this['_unitID']);}[_0x40f3b6(0x23a)](){var _0x4f508d=_0x40f3b6;this[_0x4f508d(0x20c)]=null,this[_0x4f508d(0x255)]!=='presenting'&&this[_0x4f508d(0x1d5)]();}['_handleNewChangeSets'](_0xa383ea){var _0x40d024=_0x40f3b6;if(this['_status']===_0x40d024(0x1c6)&&this[_0x40d024(0x20c)]===_0xa383ea[_0x40d024(0x23c)][_0x40d024(0x217)]){const _0x971f79=_['parseProtocolChangeset'](_0xa383ea[_0x40d024(0x23c)])[_0x40d024(0x1cc)][_0x40d024(0x24b)]()[_0x40d024(0x213)](_0x139487=>_0x139487['id']===C[_0x40d024(0x28e)]['id']);if(_0x971f79){const _0x2edb70=_0x971f79[_0x40d024(0x1d7)][_0x40d024(0x20b)],_0x1e925d=_0x971f79[_0x40d024(0x1d7)][_0x40d024(0x210)]['id'];setTimeout(()=>{var _0x334a36=_0x40d024;this['_commandService'][_0x334a36(0x271)](C[_0x334a36(0x23f)]['id'],{'unitId':_0x2edb70,'subUnitId':_0x1e925d},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x13dc7a=_0x40f3b6;this[_0x13dc7a(0x1d8)][_0x13dc7a(0x282)](_0x13dc7a(0x27d));const _0x2e1e6e=new Map(),_0x3d3f8d=this['_commandDisposable']=new o['DisposableCollection']();_0x3d3f8d['add'](o[_0x13dc7a(0x1fd)](()=>{var _0x5685cb=_0x13dc7a;_0x2e1e6e[_0x5685cb(0x1ff)](_0x4464b3=>_0x4464b3[_0x5685cb(0x228)]()),_0x2e1e6e['clear']();})),_0x3d3f8d[_0x13dc7a(0x1ba)](this[_0x13dc7a(0x1b6)][_0x13dc7a(0x1ea)](_0x1978e7=>{var _0x4519b8=_0x13dc7a,_0x584ba2;if(_0x1978e7[_0x4519b8(0x1dc)]!==o[_0x4519b8(0x204)][_0x4519b8(0x25a)]||!this[_0x4519b8(0x20f)][_0x4519b8(0x1ce)](_0x1978e7['id']))return;const {id:_0x1b251a}=_0x1978e7;let _0x4c0cca;_0x2e1e6e[_0x4519b8(0x23e)](_0x1b251a)?_0x4c0cca=_0x2e1e6e[_0x4519b8(0x22e)](_0x1b251a):(_0x4c0cca=new w[(_0x4519b8(0x264))](),_0x2e1e6e[_0x4519b8(0x207)](_0x1b251a,_0x4c0cca),_0x4c0cca[_0x4519b8(0x26a)](b[_0x4519b8(0x22d)]((_0x584ba2=this[_0x4519b8(0x260)]['getConfig'](W))!=null?_0x584ba2:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4519b8(0x1f6)](_0x2e7dd4=>{var _0x5d7fc2=_0x4519b8;this[_0x5d7fc2(0x1bc)][_0x5d7fc2(0x259)]({'eventID':_[_0x5d7fc2(0x1e7)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5d7fc2(0x1c8)],'operations':{[_0x2e7dd4['id']]:{'id':_0x2e7dd4['id'],'params':JSON[_0x5d7fc2(0x1fc)](_0x2e7dd4['params'])}}}},this[_0x5d7fc2(0x1c8)]);})),_0x4c0cca[_0x4519b8(0x282)](_0x1978e7);})),this[_0x13dc7a(0x20f)][_0x13dc7a(0x1fa)](this[_0x13dc7a(0x1c8)])[_0x13dc7a(0x1ff)](_0x4a2f93=>this['_collabSession'][_0x13dc7a(0x259)]({'eventID':_['CollaborationEvent'][_0x13dc7a(0x1c3)],'data':{'unitID':this[_0x13dc7a(0x1c8)],'operations':{[_0x4a2f93['id']]:{'id':_0x4a2f93['id'],'params':JSON[_0x13dc7a(0x1fc)](_0x4a2f93[_0x13dc7a(0x1d7)])}}}},this[_0x13dc7a(0x1c8)]));}[_0x40f3b6(0x216)](){var _0x4e59e5=_0x40f3b6,_0x383741;this[_0x4e59e5(0x1d8)][_0x4e59e5(0x282)](_0x4e59e5(0x28f)),(_0x383741=this[_0x4e59e5(0x287)])==null||_0x383741[_0x4e59e5(0x273)](),this['_commandDisposable']=null;}[_0x40f3b6(0x206)](){var _0x111397=_0x40f3b6,_0x2fff3a;(_0x2fff3a=this[_0x111397(0x287)])==null||_0x2fff3a[_0x111397(0x273)](),this['_status$'][_0x111397(0x282)](_0x111397(0x1c6));}[_0x40f3b6(0x1d5)](){var _0x5d5253=_0x40f3b6,_0x6ba2ac;this[_0x5d5253(0x1d8)]['next'](_0x5d5253(0x28f)),(_0x6ba2ac=this['_commandDisposable'])==null||_0x6ba2ac[_0x5d5253(0x273)](),this[_0x5d5253(0x287)]=null;}[_0x40f3b6(0x266)](){var _0x1b3356=_0x40f3b6,_0x46633d;this[_0x1b3356(0x1d8)][_0x1b3356(0x282)](_0x1b3356(0x284)),(_0x46633d=this[_0x1b3356(0x287)])==null||_0x46633d[_0x1b3356(0x273)]();}[_0x40f3b6(0x1b8)](_0x20c742){var _0x28ce17=_0x40f3b6;if([_0x28ce17(0x27d),'not-following','offline'][_0x28ce17(0x24e)](this[_0x28ce17(0x255)])||!_0x20c742[_0x28ce17(0x23c)][_0x28ce17(0x1e4)]||_0x20c742[_0x28ce17(0x23c)][_0x28ce17(0x1e4)]===this[_0x28ce17(0x1bc)]['getMemberID']())return;this[_0x28ce17(0x255)]===_0x28ce17(0x28f)&&this[_0x28ce17(0x206)]();const _0x2316e1=_0x20c742[_0x28ce17(0x23c)][_0x28ce17(0x214)];Object['values'](_0x2316e1)['forEach'](_0x2de7eb=>{var _0x3a327f=_0x28ce17;this[_0x3a327f(0x1b6)][_0x3a327f(0x271)](_0x2de7eb['id'],_0x2de7eb[_0x3a327f(0x1d7)]?JSON[_0x3a327f(0x1ee)](_0x2de7eb[_0x3a327f(0x1d7)]):null,{'fromCollab':!0x0});});}[_0x40f3b6(0x1e9)](){var _0x439d2e=_0x40f3b6,_0x191590;this[_0x439d2e(0x1d8)][_0x439d2e(0x282)]('offline'),(_0x191590=this['_commandDisposable'])==null||_0x191590['dispose']();}[_0x40f3b6(0x221)](){var _0x314d37=_0x40f3b6;this[_0x314d37(0x1d8)][_0x314d37(0x282)](_0x314d37(0x28f)),this['_fetchOperations']();}},exports[_0x40f3b6(0x26b)]=R([S(0x2,o['IConfigService']),S(0x3,o['Inject'](O)),S(0x4,o[_0x40f3b6(0x203)])],exports[_0x40f3b6(0x26b)]);function A(){var _0x229b51=_0x40f3b6;const _0x17ebfe=p[_0x229b51(0x1f5)](exports[_0x229b51(0x1c1)]),_0x47b2df=p[_0x229b51(0x1f5)](o[_0x229b51(0x233)]),_0x2e3ddc=p['useObservable'](()=>_0x47b2df['getCurrentTypeOfUnit$'](o[_0x229b51(0x283)][_0x229b51(0x25f)]),void 0x0,!0x1,[]),[_0x316b1b,_0x3675e3]=f[_0x229b51(0x1da)](null),[_0x1f5779,_0x55b547]=f[_0x229b51(0x1da)](h[_0x229b51(0x1be)]),_0x39a756=f['useRef'](null);return f['useEffect'](()=>(_0x2e3ddc&&_0x17ebfe['getLiveShareCoordinator'](_0x2e3ddc['getUnitId']())[_0x229b51(0x1f4)](_0x3219a2=>{var _0x2c1ab3=_0x229b51;_0x3675e3(_0x3219a2),_0x39a756[_0x2c1ab3(0x242)]=_0x3219a2[_0x2c1ab3(0x1df)][_0x2c1ab3(0x1f6)](_0x8fee78=>{_0x55b547(_0x8fee78);});}),()=>{var _0x9a0c1f=_0x229b51,_0x5ebc91;(_0x5ebc91=_0x39a756[_0x9a0c1f(0x242)])==null||_0x5ebc91[_0x9a0c1f(0x1c9)](),_0x39a756[_0x9a0c1f(0x242)]=null;}),[_0x2e3ddc,_0x17ebfe]),_0x316b1b?l[_0x229b51(0x241)](g[_0x229b51(0x28d)],{'align':_0x229b51(0x25b),'disabled':_0x1f5779===h[_0x229b51(0x26f)],'className':_0x229b51(0x1b5),'overlay':l[_0x229b51(0x241)](B,{'status':_0x1f5779,'coordinator':_0x316b1b}),'children':l[_0x229b51(0x241)]('button',{'className':g[_0x229b51(0x23d)](_0x229b51(0x231),{'univer-cursor-not-allowed':_0x1f5779===h[_0x229b51(0x26f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1f5779!==h[_0x229b51(0x26f)]}),'type':_0x229b51(0x21b),'children':l['jsx'](P,{'className':_0x229b51(0x1f1)})})}):null;}function B(_0x264a32){var _0x4a7b38=_0x40f3b6;const {status:_0x5d471b,coordinator:_0x160a98}=_0x264a32;switch(_0x5d471b){case h[_0x4a7b38(0x1be)]:return l[_0x4a7b38(0x241)](Y,{'coordinator':_0x160a98});case h[_0x4a7b38(0x278)]:return l[_0x4a7b38(0x241)](Z,{'coordinator':_0x160a98});case h['NOT_FOLLOWING']:return l[_0x4a7b38(0x241)](J,{'coordinator':_0x160a98});case h[_0x4a7b38(0x26f)]:return l[_0x4a7b38(0x241)](z,{});case h[_0x4a7b38(0x281)]:return l[_0x4a7b38(0x241)](K,{'coordinator':_0x160a98});default:return null;}}function Y(_0x10a75c){var _0x2ce312=_0x40f3b6;const {coordinator:_0x2678ef}=_0x10a75c;return l[_0x2ce312(0x1f0)](l['Fragment'],{'children':[l[_0x2ce312(0x241)](_0x2ce312(0x26d),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),l[_0x2ce312(0x241)](g[_0x2ce312(0x1c5)],{'onClick':()=>_0x2678ef['tryStartPresenting'](),'children':_0x2ce312(0x222)})]});}function Z(_0x522be0){var _0x9d122c=_0x40f3b6;const {coordinator:_0x553283}=_0x522be0;return l[_0x9d122c(0x1f0)](l['Fragment'],{'children':[l[_0x9d122c(0x241)](_0x9d122c(0x26d),{'className':_0x9d122c(0x1c2),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x9d122c(0x241)](g[_0x9d122c(0x1c5)],{'onClick':()=>_0x553283[_0x9d122c(0x1bb)](),'children':'Stop\x20following'})]});}function J(_0x24dfc2){var _0x553e8e=_0x40f3b6;const {coordinator:_0x286815}=_0x24dfc2;return l['jsxs'](l['Fragment'],{'children':[l['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x553e8e(0x209)}),l['jsx'](g['Button'],{'variant':'text','onClick':()=>_0x286815[_0x553e8e(0x290)](),'children':_0x553e8e(0x25c)})]});}function K(_0x4c747b){var _0x235bee=_0x40f3b6;const {coordinator:_0x32f6af}=_0x4c747b;return l['jsxs'](l[_0x235bee(0x1cb)],{'children':[l[_0x235bee(0x241)](_0x235bee(0x26d),{'className':_0x235bee(0x1c2),'children':_0x235bee(0x1d2)}),l[_0x235bee(0x241)](g[_0x235bee(0x1c5)],{'variant':_0x235bee(0x1b9),'onClick':()=>_0x32f6af['stopPresenting'](),'children':'Stop\x20presenting'})]});}function z(){var _0x1477e1=_0x40f3b6;return l[_0x1477e1(0x241)](l[_0x1477e1(0x1cb)],{'children':_0x1477e1(0x223)});}var Q=Object[_0x40f3b6(0x1bd)],X=(_0x4e0157,_0x3e9895,_0x5ae7b6,_0xf8286e)=>{var _0x1c2c8b=_0x40f3b6;for(var _0x5ba8a0=_0xf8286e>0x1?void 0x0:_0xf8286e?Q(_0x3e9895,_0x5ae7b6):_0x3e9895,_0x21f1ce=_0x4e0157[_0x1c2c8b(0x277)]-0x1,_0x45c11d;_0x21f1ce>=0x0;_0x21f1ce--)(_0x45c11d=_0x4e0157[_0x21f1ce])&&(_0x5ba8a0=_0x45c11d(_0x5ba8a0)||_0x5ba8a0);return _0x5ba8a0;},x=(_0x4e293a,_0x4a3d47)=>(_0x2e0903,_0xbafaa9)=>_0x4a3d47(_0x2e0903,_0xbafaa9,_0x4e293a);exports['DesktopLiveShareController']=class extends o[_0x40f3b6(0x1d3)]{constructor(_0x464e9f,_0x2754b7){var _0x5e264d=_0x40f3b6;super(),this[_0x5e264d(0x1d9)]=_0x464e9f,this[_0x5e264d(0x249)]=_0x2754b7,this[_0x5e264d(0x202)]();}['_mountLiveShare'](){var _0x27f7a0=_0x40f3b6;this['disposeWithMe'](this[_0x27f7a0(0x249)][_0x27f7a0(0x285)](p['BuiltInUIPart'][_0x27f7a0(0x257)],()=>p[_0x27f7a0(0x21a)](A,this[_0x27f7a0(0x1d9)])));}},exports[_0x40f3b6(0x22f)]=X([x(0x0,o[_0x40f3b6(0x225)](o['Injector'])),x(0x1,p[_0x40f3b6(0x248)])],exports['DesktopLiveShareController']);const ee='live-share.config',L={};var te=Object[_0x40f3b6(0x1bd)],ie=(_0x42d993,_0x2f4aa2,_0x6b1154,_0x28b470)=>{var _0x5a31e6=_0x40f3b6;for(var _0x536c7f=_0x28b470>0x1?void 0x0:_0x28b470?te(_0x2f4aa2,_0x6b1154):_0x2f4aa2,_0x5a7f80=_0x42d993[_0x5a31e6(0x277)]-0x1,_0x122910;_0x5a7f80>=0x0;_0x5a7f80--)(_0x122910=_0x42d993[_0x5a7f80])&&(_0x536c7f=_0x122910(_0x536c7f)||_0x536c7f);return _0x536c7f;},ne=(_0x27fc7c,_0x45b0d9)=>(_0x940f76,_0x76c23d)=>_0x45b0d9(_0x940f76,_0x76c23d,_0x27fc7c);let E=class extends o[_0x40f3b6(0x1d3)]{constructor(_0x381346){var _0x27e0f6=_0x40f3b6;super(),this['_liveShareService']=_0x381346,this[_0x27e0f6(0x253)]();}[_0x40f3b6(0x253)](){var _0x428de0=_0x40f3b6;[D[_0x428de0(0x1f2)]['id'],D[_0x428de0(0x230)]['id'],C[_0x428de0(0x23f)]['id']][_0x428de0(0x1ff)](_0x22d8b3=>{var _0x353763=_0x428de0;this[_0x353763(0x24d)](this[_0x353763(0x20f)]['registerSharedOperation'](_0x22d8b3));});}};E=ie([ne(0x0,o[_0x40f3b6(0x225)](O))],E);function _0x103f(_0x2b5b2d,_0x4b89f3){var _0x114633=_0x1146();return _0x103f=function(_0x103fe7,_0x582b37){_0x103fe7=_0x103fe7-0x1b4;var _0x472157=_0x114633[_0x103fe7];return _0x472157;},_0x103f(_0x2b5b2d,_0x4b89f3);}var re=Object[_0x40f3b6(0x286)],se=Object[_0x40f3b6(0x1bd)],oe=(_0xcb4a2f,_0x459fce,_0x438e55)=>_0x459fce in _0xcb4a2f?re(_0xcb4a2f,_0x459fce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x438e55}):_0xcb4a2f[_0x459fce]=_0x438e55,ae=(_0x3b72cb,_0x1e7f45,_0x75be82,_0x5b7bc4)=>{var _0x2b8d8a=_0x40f3b6;for(var _0xdfc942=_0x5b7bc4>0x1?void 0x0:_0x5b7bc4?se(_0x1e7f45,_0x75be82):_0x1e7f45,_0x5dd6a6=_0x3b72cb[_0x2b8d8a(0x277)]-0x1,_0x4fa114;_0x5dd6a6>=0x0;_0x5dd6a6--)(_0x4fa114=_0x3b72cb[_0x5dd6a6])&&(_0xdfc942=_0x4fa114(_0xdfc942)||_0xdfc942);return _0xdfc942;},N=(_0x594c1b,_0x3ef822)=>(_0x56ea4f,_0xca402c)=>_0x3ef822(_0x56ea4f,_0xca402c,_0x594c1b),T=(_0x244164,_0x363385,_0x22ecf3)=>oe(_0x244164,typeof _0x363385!=_0x40f3b6(0x1e8)?_0x363385+'':_0x363385,_0x22ecf3);const le=_0x40f3b6(0x1e3);exports[_0x40f3b6(0x25e)]=class extends o[_0x40f3b6(0x256)]{constructor(_0x25296d=L,_0x282296,_0x1af854){var _0x58d610=_0x40f3b6;super(),this[_0x58d610(0x1f3)]=_0x25296d,this['_injector']=_0x282296,this[_0x58d610(0x260)]=_0x1af854;const {..._0x4517a2}=o['merge']({},L,this['_config']);this['_configService']['setConfig'](ee,_0x4517a2);}[_0x40f3b6(0x1ec)](){var _0x50a90d=_0x40f3b6;o[_0x50a90d(0x22b)](this[_0x50a90d(0x1d9)],o[_0x50a90d(0x293)]([[O],[exports[_0x50a90d(0x1c1)]],[E],[exports[_0x50a90d(0x22f)]]],this[_0x50a90d(0x1f3)][_0x50a90d(0x268)])),o[_0x50a90d(0x238)](this[_0x50a90d(0x1d9)],[[E]]);}[_0x40f3b6(0x1eb)](){var _0x50c725=_0x40f3b6;o[_0x50c725(0x238)](this[_0x50c725(0x1d9)],[[exports[_0x50c725(0x22f)]]]);}},T(exports[_0x40f3b6(0x25e)],_0x40f3b6(0x1dc),o[_0x40f3b6(0x283)][_0x40f3b6(0x20a)]),T(exports[_0x40f3b6(0x25e)],_0x40f3b6(0x27a),le),exports[_0x40f3b6(0x25e)]=ae([o['DependentOn'](m[_0x40f3b6(0x21e)]),N(0x1,o[_0x40f3b6(0x225)](o['Injector'])),N(0x2,o['IConfigService'])],exports[_0x40f3b6(0x25e)]),exports['LiveShare']=A,exports[_0x40f3b6(0x218)]=O,exports[_0x40f3b6(0x1ca)]=h;
|
|
1
|
+
'use strict';var _0x38e991=_0x5564;(function(_0x461ea9,_0x1dbd41){var _0x45fe66=_0x5564,_0x14cad0=_0x461ea9();while(!![]){try{var _0x36f03e=-parseInt(_0x45fe66(0x231))/0x1+-parseInt(_0x45fe66(0x1df))/0x2*(parseInt(_0x45fe66(0x1b4))/0x3)+-parseInt(_0x45fe66(0x22c))/0x4*(parseInt(_0x45fe66(0x20d))/0x5)+parseInt(_0x45fe66(0x24e))/0x6*(-parseInt(_0x45fe66(0x21a))/0x7)+-parseInt(_0x45fe66(0x1f1))/0x8+parseInt(_0x45fe66(0x200))/0x9+parseInt(_0x45fe66(0x226))/0xa;if(_0x36f03e===_0x1dbd41)break;else _0x14cad0['push'](_0x14cad0['shift']());}catch(_0x29830c){_0x14cad0['push'](_0x14cad0['shift']());}}}(_0x5af0,0x8a08b));var U=Object[_0x38e991(0x272)],F=(_0x5c63b1,_0x27735d,_0x58ce0c)=>_0x27735d in _0x5c63b1?U(_0x5c63b1,_0x27735d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58ce0c}):_0x5c63b1[_0x27735d]=_0x58ce0c,v=(_0x4ec7b4,_0x4e00c9,_0x59dd41)=>F(_0x4ec7b4,typeof _0x4e00c9!=_0x38e991(0x21f)?_0x4e00c9+'':_0x4e00c9,_0x59dd41);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x38e991(0x1d3)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function _0x5564(_0x30c75b,_0x57b115){var _0x5af0b4=_0x5af0();return _0x5564=function(_0x5564da,_0x1e8384){_0x5564da=_0x5564da-0x193;var _0x2bc82f=_0x5af0b4[_0x5564da];return _0x2bc82f;},_0x5564(_0x30c75b,_0x57b115);}function _0x5af0(){var _0x1611e0=['getConfig','includes','FOLLOWING','current','HEADER_MENU','idSuffix','presenting','div','button','dispose$','getTypeOfUnitAdded$','6eDdsJc','getCurrentTypeOfUnit$','className','_commandService','getUnitId','Start','entries','_status$','default','replace','toDisposable','univer-mb-3\x20univer-w-full\x20univer-text-sm','OFFLINE','stopFollowing','path','icon','UniverIcon','SetWorksheetActiveOperation','colorChannel1','then','Start\x20following','_mountLiveShare','_liveShareService','Button','_unitID','_startFollowing','takeUntil','pluginName','indexOf','LiveShareIcon','NOT_FOLLOWING','jsx','_status','PRESENTING','_injector','univer-size-4','defineProperty','mergeOverrideWithDependencies','parseProtocolChangeset','_handleNewHost','memberID','concat','Injector','data','fill','LIVESHARE_TERMINATE','IUniverInstanceService','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','init','function','subscribe','unsubscribe','_uiPartsService','params','_init','extend','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','_config','_configService','_beIdle','set','hasOwnProperty','onRendered','LIVESHARE_OPERATION','event$','find','_handleOffline','mask','unitId','1em','3108uWUjsS','tryStartPresenting','tag','next','Disposable','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','end','LiveShareService','requireSession','trim','getOwnPropertyDescriptor','LIVESHARE_FETCH_OPERATIONS','CommandType','InsertSheetMutation','toString','assign','getInitialStates','from','random','LiveShareStatus','SessionStatus','_handleOperation','url(#$1','get','not-following','_startLiveShareCoordinator','throttleTime','svg','live-share-icon','IDLE','RxDisposable','Module','string','length','Stop\x20presenting','BehaviorSubject','0\x200\x2017\x2017','shouldShareOperation','_startPresenting','values','prototype','_fetchOperations','connectInjector','834yeFptN','_collabSessionService','xlink:href','delete','SetZoomRatioOperation','OPERATION','type','LiveShare','CollaborationEvent','call','_stopFollowing','substring','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','useState','LIVESHARE_NEW_HOST','ONLINE','_stopPresenting','status$','7960648pMCBVp','touchDependencies','_handleNewChangeSets','_commandDisposable','stringify','Stop\x20following','map','defs','forwardRef','clear','idle','dispose','pipe','LiveShareController','defIds','7136721gSdYOq','getOwnPropertySymbols','add','apply','sessionStatus$','children','presenter','_collabSession','_presenter','text','attrs','IUIPartsService','UniverInstanceType','20jCQcwG','Fragment','getLiveShareCoordinator','SetScrollOperation','UNIVER_SHEET','_sharedOperations','registerInitialStateReporter','UNIVER_UNKNOWN','stopPresenting','http://www.w3.org/2000/svg','useObservable','Inject','forEach','3962161AtuRHw','getMemberID','IConfigService','_reporters','offline','symbol','startFollowing','_univerInstanceService','useRef','You\x27re\x20presenting\x20the\x20document','setConfig','DesktopLiveShareController','35510400zcIRFo','onStarting','UniverLiveSharePlugin','displayName','univerjs-icon\x20univerjs-icon-','Plugin','694132ABaNUp','operations','send','BuiltInUIPart','disposeWithMe','1091374NGEpad','DependentOn','SAME_OPERATION_SHARE_INTERVAL','useDependency','_handleTerminate','none','override','_entities','complete','has','merge','createInstance','You\x27re\x20not\x20following\x20the\x20presenter','jsxs','LiveShareCoordinator','_handleOnline','ICommandService','following'];_0x5af0=function(){return _0x1611e0;};return _0x5af0();}var u=function(){var _0x5c2b01=_0x38e991;return u=Object[_0x5c2b01(0x1c3)]||function(_0x1a50ce){var _0x129ff4=_0x5c2b01;for(var _0x193aa4,_0x3fa60c=0x1,_0x3112e1=arguments[_0x129ff4(0x1d5)];_0x3fa60c<_0x3112e1;_0x3fa60c++){_0x193aa4=arguments[_0x3fa60c];for(var _0x476cf4 in _0x193aa4)Object[_0x129ff4(0x1dc)][_0x129ff4(0x1ab)]['call'](_0x193aa4,_0x476cf4)&&(_0x1a50ce[_0x476cf4]=_0x193aa4[_0x476cf4]);}return _0x1a50ce;},u[_0x5c2b01(0x203)](this,arguments);},$=function(_0x8b2636,_0x5c3ee3){var _0x51a3ea=_0x38e991,_0x41bca2={};for(var _0x14ed4e in _0x8b2636)Object['prototype'][_0x51a3ea(0x1ab)][_0x51a3ea(0x1e8)](_0x8b2636,_0x14ed4e)&&_0x5c3ee3[_0x51a3ea(0x26a)](_0x14ed4e)<0x0&&(_0x41bca2[_0x14ed4e]=_0x8b2636[_0x14ed4e]);if(_0x8b2636!=null&&typeof Object[_0x51a3ea(0x201)]==_0x51a3ea(0x19f)){for(var _0x994329=0x0,_0x14ed4e=Object[_0x51a3ea(0x201)](_0x8b2636);_0x994329<_0x14ed4e[_0x51a3ea(0x1d5)];_0x994329++)_0x5c3ee3[_0x51a3ea(0x26a)](_0x14ed4e[_0x994329])<0x0&&Object[_0x51a3ea(0x1dc)]['propertyIsEnumerable'][_0x51a3ea(0x1e8)](_0x8b2636,_0x14ed4e[_0x994329])&&(_0x41bca2[_0x14ed4e[_0x994329]]=_0x8b2636[_0x14ed4e[_0x994329]]);}return _0x41bca2;},j=f[_0x38e991(0x1f9)](function(_0x538229,_0x20b6c3){var _0x10cbc7=_0x38e991,_0x5ffd19=_0x538229['icon'],_0x1eb040=_0x538229['id'],_0x272835=_0x538229[_0x10cbc7(0x250)],_0x4ac414=_0x538229[_0x10cbc7(0x1a5)],_0x35c8a2=$(_0x538229,[_0x10cbc7(0x25d),'id',_0x10cbc7(0x250),_0x10cbc7(0x1a5)]),_0x5ecf9c=_0x10cbc7(0x22a)['concat'](_0x1eb040,'\x20')['concat'](_0x272835||'')[_0x10cbc7(0x1bd)](),_0x147e0a=f['useRef']('_'['concat'](k()));return y(_0x5ffd19,''[_0x10cbc7(0x197)](_0x1eb040),{'defIds':_0x5ffd19[_0x10cbc7(0x1ff)],'idSuffix':_0x147e0a[_0x10cbc7(0x246)]},u({'ref':_0x20b6c3,'className':_0x5ecf9c},_0x35c8a2),_0x4ac414);});function y(_0x2df939,_0x2140b3,_0x5b454d,_0x104b3c,_0x530a27){var _0x20ba4b=_0x38e991;return f['createElement'](_0x2df939[_0x20ba4b(0x1b6)],u(u({'key':_0x2140b3},H(_0x2df939,_0x5b454d,_0x530a27)),_0x104b3c),(V(_0x2df939,_0x5b454d)[_0x20ba4b(0x205)]||[])[_0x20ba4b(0x1f7)](function(_0x18613f,_0x2c897c){var _0x51cca5=_0x20ba4b;return y(_0x18613f,''[_0x51cca5(0x197)](_0x2140b3,'-')[_0x51cca5(0x197)](_0x2df939[_0x51cca5(0x1b6)],'-')[_0x51cca5(0x197)](_0x2c897c),_0x5b454d,void 0x0,_0x530a27);}));}function H(_0x43cb34,_0x51ad81,_0x3c81fd){var _0x19bf92=_0x38e991,_0x30da0c=u({},_0x43cb34['attrs']);_0x3c81fd!=null&&_0x3c81fd[_0x19bf92(0x260)]&&_0x30da0c[_0x19bf92(0x19a)]===_0x19bf92(0x260)&&(_0x30da0c[_0x19bf92(0x19a)]=_0x3c81fd[_0x19bf92(0x260)]),_0x43cb34[_0x19bf92(0x1b6)]===_0x19bf92(0x1b1)&&_0x30da0c['id']&&(_0x30da0c['id']=_0x30da0c['id']+_0x51ad81[_0x19bf92(0x248)]),Object[_0x19bf92(0x254)](_0x30da0c)[_0x19bf92(0x219)](function(_0x579039){var _0x30baaf=_0x19bf92,_0x19cfc5=_0x579039[0x0],_0x24018d=_0x579039[0x1];_0x19cfc5===_0x30baaf(0x1b1)&&typeof _0x24018d==_0x30baaf(0x1d4)&&(_0x30da0c[_0x19cfc5]=_0x24018d[_0x30baaf(0x257)](/url\(#(.*)\)/,_0x30baaf(0x1ca)[_0x30baaf(0x197)](_0x51ad81[_0x30baaf(0x248)],')')));});var _0x4a17d7=_0x51ad81[_0x19bf92(0x1ff)];return!_0x4a17d7||_0x4a17d7[_0x19bf92(0x1d5)]===0x0||(_0x43cb34['tag']==='use'&&_0x30da0c[_0x19bf92(0x1e1)]&&(_0x30da0c['xlink:href']=_0x30da0c[_0x19bf92(0x1e1)]+_0x51ad81[_0x19bf92(0x248)]),Object['entries'](_0x30da0c)['forEach'](function(_0x4e194b){var _0x3070f3=_0x19bf92,_0x6d7a9d=_0x4e194b[0x0],_0x4ed9f9=_0x4e194b[0x1];typeof _0x4ed9f9==_0x3070f3(0x1d4)&&(_0x30da0c[_0x6d7a9d]=_0x4ed9f9[_0x3070f3(0x257)](/url\(#(.*)\)/,_0x3070f3(0x1ca)[_0x3070f3(0x197)](_0x51ad81['idSuffix'],')')));})),_0x30da0c;}function V(_0x99e8dc,_0xa1812a){var _0x43f6a6=_0x38e991,_0x12e1f8,_0x4015da=_0xa1812a[_0x43f6a6(0x1ff)];return!_0x4015da||_0x4015da['length']===0x0?_0x99e8dc:_0x99e8dc[_0x43f6a6(0x1b6)]===_0x43f6a6(0x1f8)&&(!((_0x12e1f8=_0x99e8dc['children'])===null||_0x12e1f8===void 0x0)&&_0x12e1f8[_0x43f6a6(0x1d5)])?u(u({},_0x99e8dc),{'children':_0x99e8dc[_0x43f6a6(0x205)][_0x43f6a6(0x1f7)](function(_0x10bf8b){var _0x53d7e2=_0x43f6a6;return typeof _0x10bf8b[_0x53d7e2(0x20a)]['id']=='string'&&_0x4015da&&_0x4015da[_0x53d7e2(0x244)](_0x10bf8b[_0x53d7e2(0x20a)]['id'])?u(u({},_0x10bf8b),{'attrs':u(u({},_0x10bf8b[_0x53d7e2(0x20a)]),{'id':_0x10bf8b[_0x53d7e2(0x20a)]['id']+_0xa1812a[_0x53d7e2(0x248)]})}):_0x10bf8b;})}):_0x99e8dc;}function k(){var _0x51a297=_0x38e991;return Math[_0x51a297(0x1c6)]()[_0x51a297(0x1c2)](0x24)[_0x51a297(0x1ea)](0x2,0x8);}j[_0x38e991(0x229)]=_0x38e991(0x25e);var M={'tag':_0x38e991(0x1cf),'attrs':{'xmlns':_0x38e991(0x216),'fill':_0x38e991(0x236),'viewBox':_0x38e991(0x1d8),'width':_0x38e991(0x1b3),'height':_0x38e991(0x1b3)},'children':[{'tag':_0x38e991(0x25c),'attrs':{'fill':'currentColor','d':_0x38e991(0x1a6)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x38e991(0x1b9),'fillRule':'evenodd','clipRule':'evenodd'}}]},P=f[_0x38e991(0x1f9)](function(_0x423bd1,_0x44a4a3){var _0x4b907d=_0x38e991;return f['createElement'](j,Object[_0x4b907d(0x1c3)]({},_0x423bd1,{'id':_0x4b907d(0x1d0),'ref':_0x44a4a3,'icon':M}));});P[_0x38e991(0x229)]=_0x38e991(0x26b);class O extends o['Disposable']{constructor(){super(...arguments),v(this,'_sharedOperations',new Set()),v(this,'_reporters',new Set());}['registerSharedOperation'](_0x934a24){var _0x17e657=_0x38e991;return this[_0x17e657(0x212)][_0x17e657(0x202)](_0x934a24),o[_0x17e657(0x258)](()=>this[_0x17e657(0x212)][_0x17e657(0x1e2)](_0x934a24));}[_0x38e991(0x213)](_0x568489){var _0x606a18=_0x38e991;return this[_0x606a18(0x21d)][_0x606a18(0x202)](_0x568489),o[_0x606a18(0x258)](()=>this[_0x606a18(0x21d)][_0x606a18(0x1e2)](_0x568489));}[_0x38e991(0x1d9)](_0x49006b){var _0x219845=_0x38e991;return this[_0x219845(0x212)][_0x219845(0x23a)](_0x49006b);}[_0x38e991(0x1c4)](_0x33948a){var _0x109b3a=_0x38e991;return Array[_0x109b3a(0x1c5)](this[_0x109b3a(0x21d)])['map'](_0x16529c=>_0x16529c(_0x33948a));}}var q=Object[_0x38e991(0x1be)],R=(_0x1813de,_0x4eb6ef,_0x50ba7a,_0x585b28)=>{for(var _0x30e556=_0x585b28>0x1?void 0x0:_0x585b28?q(_0x4eb6ef,_0x50ba7a):_0x4eb6ef,_0x55e7b3=_0x1813de['length']-0x1,_0x42fc26;_0x55e7b3>=0x0;_0x55e7b3--)(_0x42fc26=_0x1813de[_0x55e7b3])&&(_0x30e556=_0x42fc26(_0x30e556)||_0x30e556);return _0x30e556;},S=(_0x45e040,_0x5d81b3)=>(_0x212b4f,_0x3299a1)=>_0x5d81b3(_0x212b4f,_0x3299a1,_0x45e040);exports[_0x38e991(0x1fe)]=class extends o[_0x38e991(0x1d2)]{constructor(_0x448fa6,_0x2fd816,_0x43d796){var _0x35686c=_0x38e991;super(),v(this,'_entities',new Map()),(this[_0x35686c(0x221)]=_0x448fa6,this[_0x35686c(0x270)]=_0x2fd816,this[_0x35686c(0x1e0)]=_0x43d796,this[_0x35686c(0x1a4)]());}async[_0x38e991(0x20f)](_0xb56644){var _0x89431f=_0x38e991;return this[_0x89431f(0x238)][_0x89431f(0x23a)](_0xb56644)||await this[_0x89431f(0x1cd)](_0xb56644),this[_0x89431f(0x238)][_0x89431f(0x1cb)](_0xb56644);}['_init'](){var _0x56e5ae=_0x38e991;this[_0x56e5ae(0x221)][_0x56e5ae(0x24d)](o[_0x56e5ae(0x20c)][_0x56e5ae(0x211)])[_0x56e5ae(0x1fd)](b[_0x56e5ae(0x268)](this['dispose$']))[_0x56e5ae(0x1a0)](async _0x26c25c=>{var _0x1596d4=_0x56e5ae;const _0x3a6cc6=_0x26c25c[_0x1596d4(0x252)]();this[_0x1596d4(0x238)][_0x1596d4(0x23a)](_0x3a6cc6)||this[_0x1596d4(0x1cd)](_0x3a6cc6);}),this[_0x56e5ae(0x221)]['getTypeOfUnitDisposed$'](o[_0x56e5ae(0x20c)][_0x56e5ae(0x211)])['pipe'](b['takeUntil'](this['dispose$']))[_0x56e5ae(0x1a0)](_0x245482=>{var _0x584f5d=_0x56e5ae;const _0xe80a18=_0x245482['getUnitId'](),_0x2b0275=this[_0x584f5d(0x238)][_0x584f5d(0x1cb)](_0xe80a18);_0x2b0275==null||_0x2b0275[_0x584f5d(0x1fc)]();});}async['_startLiveShareCoordinator'](_0x4c0779){var _0x2c895a=_0x38e991;const _0xbdd460=await this['_collabSessionService'][_0x2c895a(0x1bc)](_0x4c0779),_0x99f661=this[_0x2c895a(0x270)][_0x2c895a(0x23c)](exports[_0x2c895a(0x23f)],_0x4c0779,_0xbdd460);return _0x99f661[_0x2c895a(0x19e)](),this[_0x2c895a(0x238)][_0x2c895a(0x1aa)](_0x4c0779,_0x99f661),_0x99f661;}},exports[_0x38e991(0x1fe)]=R([S(0x0,o[_0x38e991(0x19c)]),S(0x1,o[_0x38e991(0x218)](o[_0x38e991(0x198)])),S(0x2,o[_0x38e991(0x218)](m['CollaborationSessionService']))],exports[_0x38e991(0x1fe)]);var h=(_0x55f725=>(_0x55f725[_0x38e991(0x25a)]=_0x38e991(0x21e),_0x55f725[_0x38e991(0x1d1)]=_0x38e991(0x1fb),_0x55f725[_0x38e991(0x245)]=_0x38e991(0x242),_0x55f725[_0x38e991(0x26c)]='not-following',_0x55f725[_0x38e991(0x26f)]=_0x38e991(0x249),_0x55f725))(h||{});const W=_0x38e991(0x233),G=0xc8;exports['LiveShareCoordinator']=class extends o[_0x38e991(0x1d2)]{constructor(_0xdb1d93,_0x4e5e72,_0x44cd59,_0x25d2fc,_0x2d4f33){var _0x161e5e=_0x38e991;super(),v(this,_0x161e5e(0x255),new w[(_0x161e5e(0x1d7))](_0x161e5e(0x1fb))),v(this,_0x161e5e(0x1f0),this['_status$']['asObservable']()),v(this,_0x161e5e(0x1a4),!0x1),v(this,_0x161e5e(0x1f4),null),v(this,_0x161e5e(0x208),null),(this[_0x161e5e(0x266)]=_0xdb1d93,this[_0x161e5e(0x207)]=_0x4e5e72,this['_configService']=_0x44cd59,this[_0x161e5e(0x264)]=_0x25d2fc,this[_0x161e5e(0x251)]=_0x2d4f33);}get[_0x38e991(0x26e)](){var _0x5bb1a0=_0x38e991;return this[_0x5bb1a0(0x255)]['getValue']();}[_0x38e991(0x1fc)](){var _0x2cebaa=_0x38e991,_0xbbb6ff;(_0xbbb6ff=this[_0x2cebaa(0x1f4)])==null||_0xbbb6ff[_0x2cebaa(0x1fc)](),this['_status$'][_0x2cebaa(0x1b7)](_0x2cebaa(0x1fb)),this[_0x2cebaa(0x255)]['complete']();}[_0x38e991(0x19e)](){var _0x4b1a70=_0x38e991;this[_0x4b1a70(0x1a4)]||(this[_0x4b1a70(0x1a4)]=!0x0,this['_collabSession'][_0x4b1a70(0x204)][_0x4b1a70(0x1fd)](b['takeUntil'](this[_0x4b1a70(0x24c)]))[_0x4b1a70(0x1a0)](_0xc4593b=>{var _0x21bbbc=_0x4b1a70;switch(_0xc4593b){case m[_0x21bbbc(0x1c8)][_0x21bbbc(0x25a)]:this['_handleOffline']();break;case m['SessionStatus'][_0x21bbbc(0x1ee)]:this['_handleOnline']();break;}}),this[_0x4b1a70(0x207)][_0x4b1a70(0x1ae)][_0x4b1a70(0x1fd)](b['takeUntil'](this[_0x4b1a70(0x24c)]))[_0x4b1a70(0x1a0)](_0x59c8e7=>{var _0x57fef2=_0x4b1a70;const {eventID:_0x3e62d1}=_0x59c8e7;switch(_0x3e62d1){case _[_0x57fef2(0x1e7)][_0x57fef2(0x1ed)]:this[_0x57fef2(0x195)](_0x59c8e7);break;case _[_0x57fef2(0x1e7)][_0x57fef2(0x1ad)]:this[_0x57fef2(0x1c9)](_0x59c8e7);break;case _['CollaborationEvent'][_0x57fef2(0x19b)]:this[_0x57fef2(0x235)]();break;case _[_0x57fef2(0x1e7)]['NEW_CHANGESETS']:this[_0x57fef2(0x1f3)](_0x59c8e7);break;}}));}['tryStartPresenting'](){var _0x1203bc=_0x38e991;this[_0x1203bc(0x207)][_0x1203bc(0x22e)]({'eventID':_['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x1203bc(0x266)],'userID':this[_0x1203bc(0x207)]['getMemberID']()}},this[_0x1203bc(0x266)]);}[_0x38e991(0x215)](){var _0x5ea0d0=_0x38e991;this[_0x5ea0d0(0x26e)]===_0x5ea0d0(0x249)&&(this[_0x5ea0d0(0x255)][_0x5ea0d0(0x1b7)](_0x5ea0d0(0x1fb)),this[_0x5ea0d0(0x207)][_0x5ea0d0(0x22e)]({'eventID':_[_0x5ea0d0(0x1e7)][_0x5ea0d0(0x19b)],'data':{'unitID':this['_unitID']}},this[_0x5ea0d0(0x266)]));}[_0x38e991(0x220)](){var _0xb049f2=_0x38e991;this[_0xb049f2(0x26e)]===_0xb049f2(0x1cc)&&(this[_0xb049f2(0x255)][_0xb049f2(0x1b7)](_0xb049f2(0x242)),this[_0xb049f2(0x267)]());}['stopFollowing'](){var _0x40abcb=_0x38e991;this[_0x40abcb(0x26e)]===_0x40abcb(0x242)&&this[_0x40abcb(0x1e9)]();}[_0x38e991(0x195)](_0x379c95){var _0x1c1692=_0x38e991;const {presenter:_0xf01961}=_0x379c95['data'],_0x479f1a=this[_0x1c1692(0x207)][_0x1c1692(0x21b)]();this[_0x1c1692(0x208)]=_0xf01961,_0xf01961===_0x479f1a?(this[_0x1c1692(0x1e9)](),this['_startPresenting']()):this[_0x1c1692(0x26e)]!==_0x1c1692(0x1cc)&&(this[_0x1c1692(0x1ef)](),this[_0x1c1692(0x267)]());}[_0x38e991(0x1dd)](){var _0x3ac5a7=_0x38e991;const _0x3132fd={'eventID':_['CollaborationEvent'][_0x3ac5a7(0x1bf)]};this['_collabSession']['send'](_0x3132fd,this['_unitID']);}['_handleTerminate'](){var _0x4925d=_0x38e991;this[_0x4925d(0x208)]=null,this['_status']!=='presenting'&&this[_0x4925d(0x1a9)]();}[_0x38e991(0x1f3)](_0x27a2e9){var _0x27980a=_0x38e991;if(this[_0x27980a(0x26e)]===_0x27980a(0x242)&&this['_presenter']===_0x27a2e9[_0x27980a(0x199)][_0x27980a(0x196)]){const _0x181311=_[_0x27980a(0x194)](_0x27a2e9[_0x27980a(0x199)])['mutations']['reverse']()[_0x27980a(0x1af)](_0x55ee59=>_0x55ee59['id']===C[_0x27980a(0x1c1)]['id']);if(_0x181311){const _0x5e80fc=_0x181311[_0x27980a(0x1a3)][_0x27980a(0x1b2)],_0x3bba43=_0x181311[_0x27980a(0x1a3)]['sheet']['id'];setTimeout(()=>{var _0x28f4ce=_0x27980a;this[_0x28f4ce(0x251)]['executeCommand'](C[_0x28f4ce(0x25f)]['id'],{'unitId':_0x5e80fc,'subUnitId':_0x3bba43},{'fromCollab':!0x0});});}}}[_0x38e991(0x1da)](){var _0x31e674=_0x38e991;this['_status$'][_0x31e674(0x1b7)](_0x31e674(0x249));const _0x24e08b=new Map(),_0x57ed5c=this['_commandDisposable']=new o['DisposableCollection']();_0x57ed5c['add'](o[_0x31e674(0x258)](()=>{var _0x475020=_0x31e674;_0x24e08b[_0x475020(0x219)](_0x4a921f=>_0x4a921f[_0x475020(0x239)]()),_0x24e08b[_0x475020(0x1fa)]();})),_0x57ed5c[_0x31e674(0x202)](this[_0x31e674(0x251)]['onCommandExecuted'](_0xdd6862=>{var _0x120d99=_0x31e674,_0x5aa729;if(_0xdd6862[_0x120d99(0x1e5)]!==o[_0x120d99(0x1c0)][_0x120d99(0x1e4)]||!this['_liveShareService'][_0x120d99(0x1d9)](_0xdd6862['id']))return;const {id:_0x4b4c56}=_0xdd6862;let _0x4b4590;_0x24e08b[_0x120d99(0x23a)](_0x4b4c56)?_0x4b4590=_0x24e08b[_0x120d99(0x1cb)](_0x4b4c56):(_0x4b4590=new w['Subject'](),_0x24e08b[_0x120d99(0x1aa)](_0x4b4c56,_0x4b4590),_0x4b4590[_0x120d99(0x1fd)](b[_0x120d99(0x1ce)]((_0x5aa729=this[_0x120d99(0x1a8)][_0x120d99(0x243)](W))!=null?_0x5aa729:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x120d99(0x1a0)](_0x17821f=>{var _0x12f7a6=_0x120d99;this[_0x12f7a6(0x207)][_0x12f7a6(0x22e)]({'eventID':_[_0x12f7a6(0x1e7)][_0x12f7a6(0x1ad)],'data':{'unitID':this['_unitID'],'operations':{[_0x17821f['id']]:{'id':_0x17821f['id'],'params':JSON['stringify'](_0x17821f[_0x12f7a6(0x1a3)])}}}},this['_unitID']);})),_0x4b4590[_0x120d99(0x1b7)](_0xdd6862);})),this[_0x31e674(0x264)][_0x31e674(0x1c4)](this[_0x31e674(0x266)])[_0x31e674(0x219)](_0x22e3da=>this[_0x31e674(0x207)]['send']({'eventID':_[_0x31e674(0x1e7)][_0x31e674(0x1ad)],'data':{'unitID':this['_unitID'],'operations':{[_0x22e3da['id']]:{'id':_0x22e3da['id'],'params':JSON[_0x31e674(0x1f5)](_0x22e3da[_0x31e674(0x1a3)])}}}},this[_0x31e674(0x266)]));}[_0x38e991(0x1ef)](){var _0x1ddb05=_0x38e991,_0x1b2841;this[_0x1ddb05(0x255)]['next'](_0x1ddb05(0x1fb)),(_0x1b2841=this['_commandDisposable'])==null||_0x1b2841[_0x1ddb05(0x1fc)](),this['_commandDisposable']=null;}[_0x38e991(0x267)](){var _0xbcc0dc=_0x38e991,_0x132549;(_0x132549=this[_0xbcc0dc(0x1f4)])==null||_0x132549[_0xbcc0dc(0x1fc)](),this[_0xbcc0dc(0x255)][_0xbcc0dc(0x1b7)](_0xbcc0dc(0x242));}[_0x38e991(0x1a9)](){var _0x2096d7=_0x38e991,_0x5daa30;this[_0x2096d7(0x255)]['next']('idle'),(_0x5daa30=this[_0x2096d7(0x1f4)])==null||_0x5daa30[_0x2096d7(0x1fc)](),this[_0x2096d7(0x1f4)]=null;}[_0x38e991(0x1e9)](){var _0x5b0e1f=_0x38e991,_0x5f107c;this[_0x5b0e1f(0x255)][_0x5b0e1f(0x1b7)](_0x5b0e1f(0x1cc)),(_0x5f107c=this['_commandDisposable'])==null||_0x5f107c['dispose']();}[_0x38e991(0x1c9)](_0x38d406){var _0x4d5dae=_0x38e991;if(['presenting',_0x4d5dae(0x1cc),_0x4d5dae(0x21e)]['includes'](this['_status'])||!_0x38d406[_0x4d5dae(0x199)][_0x4d5dae(0x206)]||_0x38d406['data']['presenter']===this[_0x4d5dae(0x207)][_0x4d5dae(0x21b)]())return;this[_0x4d5dae(0x26e)]===_0x4d5dae(0x1fb)&&this[_0x4d5dae(0x267)]();const _0x27edd8=_0x38d406['data'][_0x4d5dae(0x22d)];Object[_0x4d5dae(0x1db)](_0x27edd8)[_0x4d5dae(0x219)](_0x1607af=>{var _0x35ae54=_0x4d5dae;this[_0x35ae54(0x251)]['executeCommand'](_0x1607af['id'],_0x1607af[_0x35ae54(0x1a3)]?JSON['parse'](_0x1607af[_0x35ae54(0x1a3)]):null,{'fromCollab':!0x0});});}[_0x38e991(0x1b0)](){var _0x513cc7=_0x38e991,_0x1bc516;this[_0x513cc7(0x255)][_0x513cc7(0x1b7)](_0x513cc7(0x21e)),(_0x1bc516=this['_commandDisposable'])==null||_0x1bc516[_0x513cc7(0x1fc)]();}[_0x38e991(0x240)](){var _0x22006e=_0x38e991;this[_0x22006e(0x255)]['next'](_0x22006e(0x1fb)),this[_0x22006e(0x1dd)]();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x38e991(0x21c)]),S(0x3,o[_0x38e991(0x218)](O)),S(0x4,o[_0x38e991(0x241)])],exports[_0x38e991(0x23f)]);function A(){var _0x25c079=_0x38e991;const _0x44863a=p['useDependency'](exports[_0x25c079(0x1fe)]),_0x116726=p[_0x25c079(0x234)](o['IUniverInstanceService']),_0x73d01f=p[_0x25c079(0x217)](()=>_0x116726[_0x25c079(0x24f)](o[_0x25c079(0x20c)][_0x25c079(0x211)]),void 0x0,!0x1,[]),[_0x5222ad,_0x23c09c]=f['useState'](null),[_0x635eb,_0x5b26a3]=f[_0x25c079(0x1ec)](h[_0x25c079(0x1d1)]),_0xaee3aa=f[_0x25c079(0x222)](null);return f['useEffect'](()=>(_0x73d01f&&_0x44863a[_0x25c079(0x20f)](_0x73d01f['getUnitId']())[_0x25c079(0x261)](_0x313299=>{var _0x51562f=_0x25c079;_0x23c09c(_0x313299),_0xaee3aa['current']=_0x313299[_0x51562f(0x1f0)]['subscribe'](_0x37b4cb=>{_0x5b26a3(_0x37b4cb);});}),()=>{var _0x3ffec6=_0x25c079,_0x2a4e9f;(_0x2a4e9f=_0xaee3aa[_0x3ffec6(0x246)])==null||_0x2a4e9f[_0x3ffec6(0x1a1)](),_0xaee3aa[_0x3ffec6(0x246)]=null;}),[_0x73d01f,_0x44863a]),_0x5222ad?l[_0x25c079(0x26d)](g['Dropdown'],{'align':_0x25c079(0x1ba),'disabled':_0x635eb===h[_0x25c079(0x25a)],'className':_0x25c079(0x19d),'overlay':l[_0x25c079(0x26d)](B,{'status':_0x635eb,'coordinator':_0x5222ad}),'children':l['jsx'](_0x25c079(0x24b),{'className':g['clsx'](_0x25c079(0x1eb),{'univer-cursor-not-allowed':_0x635eb===h[_0x25c079(0x25a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x635eb!==h[_0x25c079(0x25a)]}),'type':_0x25c079(0x24b),'children':l[_0x25c079(0x26d)](P,{'className':_0x25c079(0x271)})})}):null;}function B(_0x56dc91){var _0x4dc8a4=_0x38e991;const {status:_0x50a69d,coordinator:_0xf754d4}=_0x56dc91;switch(_0x50a69d){case h[_0x4dc8a4(0x1d1)]:return l['jsx'](Y,{'coordinator':_0xf754d4});case h[_0x4dc8a4(0x245)]:return l[_0x4dc8a4(0x26d)](Z,{'coordinator':_0xf754d4});case h[_0x4dc8a4(0x26c)]:return l[_0x4dc8a4(0x26d)](J,{'coordinator':_0xf754d4});case h[_0x4dc8a4(0x25a)]:return l['jsx'](z,{});case h[_0x4dc8a4(0x26f)]:return l['jsx'](K,{'coordinator':_0xf754d4});default:return null;}}function Y(_0x46a70a){var _0x494bf0=_0x38e991;const {coordinator:_0x432676}=_0x46a70a;return l[_0x494bf0(0x23e)](l[_0x494bf0(0x20e)],{'children':[l[_0x494bf0(0x26d)](_0x494bf0(0x24a),{'className':_0x494bf0(0x259),'children':'Present\x20this\x20document'}),l['jsx'](g[_0x494bf0(0x265)],{'onClick':()=>_0x432676[_0x494bf0(0x1b5)](),'children':_0x494bf0(0x253)})]});}function Z(_0x1d2b0f){var _0x4073c1=_0x38e991;const {coordinator:_0x51d33a}=_0x1d2b0f;return l[_0x4073c1(0x23e)](l[_0x4073c1(0x20e)],{'children':[l[_0x4073c1(0x26d)](_0x4073c1(0x24a),{'className':_0x4073c1(0x259),'children':'You\x27re\x20following\x20the\x20presenter'}),l['jsx'](g[_0x4073c1(0x265)],{'onClick':()=>_0x51d33a[_0x4073c1(0x25b)](),'children':_0x4073c1(0x1f6)})]});}function J(_0x46d947){var _0x361af4=_0x38e991;const {coordinator:_0x59fc6d}=_0x46d947;return l[_0x361af4(0x23e)](l[_0x361af4(0x20e)],{'children':[l[_0x361af4(0x26d)]('div',{'className':_0x361af4(0x259),'children':_0x361af4(0x23d)}),l[_0x361af4(0x26d)](g[_0x361af4(0x265)],{'variant':_0x361af4(0x209),'onClick':()=>_0x59fc6d[_0x361af4(0x220)](),'children':_0x361af4(0x262)})]});}function K(_0x304959){var _0x77dcea=_0x38e991;const {coordinator:_0x4acc5b}=_0x304959;return l[_0x77dcea(0x23e)](l[_0x77dcea(0x20e)],{'children':[l[_0x77dcea(0x26d)]('div',{'className':_0x77dcea(0x259),'children':_0x77dcea(0x223)}),l[_0x77dcea(0x26d)](g[_0x77dcea(0x265)],{'variant':_0x77dcea(0x256),'onClick':()=>_0x4acc5b[_0x77dcea(0x215)](),'children':_0x77dcea(0x1d6)})]});}function z(){var _0x6d0a0a=_0x38e991;return l[_0x6d0a0a(0x26d)](l['Fragment'],{'children':'You\x27are\x20offline.'});}var Q=Object[_0x38e991(0x1be)],X=(_0x2ae37f,_0x5c0c94,_0x496f95,_0x300d3e)=>{var _0x5f13b8=_0x38e991;for(var _0x33bebf=_0x300d3e>0x1?void 0x0:_0x300d3e?Q(_0x5c0c94,_0x496f95):_0x5c0c94,_0x4d1214=_0x2ae37f[_0x5f13b8(0x1d5)]-0x1,_0x8972c;_0x4d1214>=0x0;_0x4d1214--)(_0x8972c=_0x2ae37f[_0x4d1214])&&(_0x33bebf=_0x8972c(_0x33bebf)||_0x33bebf);return _0x33bebf;},x=(_0x4862e0,_0x4de1ee)=>(_0x16bd5e,_0x585c2c)=>_0x4de1ee(_0x16bd5e,_0x585c2c,_0x4862e0);exports[_0x38e991(0x225)]=class extends o[_0x38e991(0x1b8)]{constructor(_0x2fa39c,_0x2d94f4){var _0x24c18a=_0x38e991;super(),this[_0x24c18a(0x270)]=_0x2fa39c,this['_uiPartsService']=_0x2d94f4,this[_0x24c18a(0x263)]();}['_mountLiveShare'](){var _0x2d73f7=_0x38e991;this[_0x2d73f7(0x230)](this[_0x2d73f7(0x1a2)]['registerComponent'](p[_0x2d73f7(0x22f)][_0x2d73f7(0x247)],()=>p[_0x2d73f7(0x1de)](A,this[_0x2d73f7(0x270)])));}},exports[_0x38e991(0x225)]=X([x(0x0,o['Inject'](o[_0x38e991(0x198)])),x(0x1,p[_0x38e991(0x20b)])],exports[_0x38e991(0x225)]);const ee='live-share.config',L={};var te=Object[_0x38e991(0x1be)],ie=(_0x2d3ff0,_0x5ef856,_0x3e7654,_0x3fb01e)=>{var _0x40f4b1=_0x38e991;for(var _0x275fae=_0x3fb01e>0x1?void 0x0:_0x3fb01e?te(_0x5ef856,_0x3e7654):_0x5ef856,_0x2a9fce=_0x2d3ff0[_0x40f4b1(0x1d5)]-0x1,_0x278b2b;_0x2a9fce>=0x0;_0x2a9fce--)(_0x278b2b=_0x2d3ff0[_0x2a9fce])&&(_0x275fae=_0x278b2b(_0x275fae)||_0x275fae);return _0x275fae;},ne=(_0x18998f,_0x22afbb)=>(_0x57e9f9,_0x4e0bd9)=>_0x22afbb(_0x57e9f9,_0x4e0bd9,_0x18998f);let E=class extends o[_0x38e991(0x1b8)]{constructor(_0x573c25){var _0x38cab9=_0x38e991;super(),this[_0x38cab9(0x264)]=_0x573c25,this[_0x38cab9(0x1a4)]();}['_init'](){var _0x29776b=_0x38e991;[D[_0x29776b(0x1e3)]['id'],D[_0x29776b(0x210)]['id'],C[_0x29776b(0x25f)]['id']][_0x29776b(0x219)](_0x55496b=>{var _0x143148=_0x29776b;this[_0x143148(0x230)](this[_0x143148(0x264)]['registerSharedOperation'](_0x55496b));});}};E=ie([ne(0x0,o[_0x38e991(0x218)](O))],E);var re=Object[_0x38e991(0x272)],se=Object[_0x38e991(0x1be)],oe=(_0x289298,_0x392013,_0xeaed8d)=>_0x392013 in _0x289298?re(_0x289298,_0x392013,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xeaed8d}):_0x289298[_0x392013]=_0xeaed8d,ae=(_0x53c303,_0x5e8b89,_0x5efa1a,_0x1e10a5)=>{var _0x513a5f=_0x38e991;for(var _0x1888d8=_0x1e10a5>0x1?void 0x0:_0x1e10a5?se(_0x5e8b89,_0x5efa1a):_0x5e8b89,_0x4b2081=_0x53c303[_0x513a5f(0x1d5)]-0x1,_0x4bda74;_0x4b2081>=0x0;_0x4b2081--)(_0x4bda74=_0x53c303[_0x4b2081])&&(_0x1888d8=_0x4bda74(_0x1888d8)||_0x1888d8);return _0x1888d8;},N=(_0x5ca200,_0x1e9bfb)=>(_0x4a9cf3,_0x7cb7f7)=>_0x1e9bfb(_0x4a9cf3,_0x7cb7f7,_0x5ca200),T=(_0x5b1cd7,_0x4722ee,_0x5a826e)=>oe(_0x5b1cd7,typeof _0x4722ee!=_0x38e991(0x21f)?_0x4722ee+'':_0x4722ee,_0x5a826e);const le='UNIVER_LIVE_SHARE_PLUGIN';exports['UniverLiveSharePlugin']=class extends o[_0x38e991(0x22b)]{constructor(_0x1dbfe9=L,_0x42dcf2,_0x4aab31){var _0x4de9fe=_0x38e991;super(),this[_0x4de9fe(0x1a7)]=_0x1dbfe9,this['_injector']=_0x42dcf2,this[_0x4de9fe(0x1a8)]=_0x4aab31;const {..._0x2cd967}=o[_0x4de9fe(0x23b)]({},L,this['_config']);this[_0x4de9fe(0x1a8)][_0x4de9fe(0x224)](ee,_0x2cd967);}[_0x38e991(0x227)](){var _0x36bbb0=_0x38e991;o['registerDependencies'](this['_injector'],o[_0x36bbb0(0x193)]([[O],[exports[_0x36bbb0(0x1fe)]],[E],[exports[_0x36bbb0(0x225)]]],this[_0x36bbb0(0x1a7)][_0x36bbb0(0x237)])),o[_0x36bbb0(0x1f2)](this[_0x36bbb0(0x270)],[[E]]);}[_0x38e991(0x1ac)](){var _0x508f05=_0x38e991;o[_0x508f05(0x1f2)](this[_0x508f05(0x270)],[[exports[_0x508f05(0x225)]]]);}},T(exports[_0x38e991(0x228)],_0x38e991(0x1e5),o[_0x38e991(0x20c)][_0x38e991(0x214)]),T(exports[_0x38e991(0x228)],_0x38e991(0x269),le),exports[_0x38e991(0x228)]=ae([o[_0x38e991(0x232)](m['UniverCollaborationClientPlugin']),N(0x1,o['Inject'](o[_0x38e991(0x198)])),N(0x2,o[_0x38e991(0x21c)])],exports[_0x38e991(0x228)]),exports[_0x38e991(0x1e6)]=A,exports[_0x38e991(0x1bb)]=O,exports[_0x38e991(0x1c7)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x181387=_0x5244;(function(_0xc27ffd,_0x12ab18){var _0xbefd0a=_0x5244,_0xa037be=_0xc27ffd();while(!![]){try{var _0x511bc0=parseInt(_0xbefd0a(0x1b1))/0x1+-parseInt(_0xbefd0a(0x1c8))/0x2+parseInt(_0xbefd0a(0x19a))/0x3+parseInt(_0xbefd0a(0x199))/0x4*(parseInt(_0xbefd0a(0x1bb))/0x5)+parseInt(_0xbefd0a(0x1da))/0x6*(-parseInt(_0xbefd0a(0x1b8))/0x7)+-parseInt(_0xbefd0a(0x13c))/0x8*(-parseInt(_0xbefd0a(0x15f))/0x9)+-parseInt(_0xbefd0a(0x198))/0xa*(parseInt(_0xbefd0a(0x1b3))/0xb);if(_0x511bc0===_0x12ab18)break;else _0xa037be['push'](_0xa037be['shift']());}catch(_0x323d22){_0xa037be['push'](_0xa037be['shift']());}}}(_0x4d26,0x5611e));var q=Object[_0x181387(0x1c5)],z=(_0x42c765,_0x34fc17,_0x59a000)=>_0x34fc17 in _0x42c765?q(_0x42c765,_0x34fc17,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x59a000}):_0x42c765[_0x34fc17]=_0x59a000,d=(_0x544352,_0x16d2da,_0x3c54f1)=>z(_0x544352,typeof _0x16d2da!=_0x181387(0x169)?_0x16d2da+'':_0x16d2da,_0x3c54f1);import{Disposable as _0xb4423d,toDisposable as _0x5e0149,IUniverInstanceService as _0x1d3c87,Inject as _0x19b8a0,Injector as _0x340b01,IConfigService as _0x5f525b,ICommandService as _0x4b3389,RxDisposable as _0x379150,UniverInstanceType as _0x3d14a2,DisposableCollection as _0x14b7d5,CommandType as _0x586723,DependentOn as _0x498526,Plugin as _0x51df73,merge as _0xd6b33,registerDependencies as _0x1050b5,mergeOverrideWithDependencies as _0x4379af,touchDependencies as _0x422eb9}from'@univerjs/core';import{useDependency as _0x279fce,useObservable as _0xd9f531,IUIPartsService as _0x59ff15,BuiltInUIPart as _0x8a0539,connectInjector as _0x401def}from'@univerjs/ui';import{jsx as _0x291591,jsxs as _0x312e4c,Fragment as _0x1bf877}from'react/jsx-runtime';import{Dropdown as _0x40e762,clsx as _0x508fea,Button as _0x19249c}from'@univerjs/design';import{forwardRef as _0x190d04,useRef as _0x15d217,createElement as _0x4c53b7,useState as _0x701ff9,useEffect as _0x5f411f}from'react';import{CollaborationEvent as _0x18f536,parseProtocolChangeset as _0x2d9b95}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x106a09,SessionStatus as _0x35e16e,UniverCollaborationClientPlugin as _0x204b9a}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x598f74,SetWorksheetActiveOperation as _0x4dceb2}from'@univerjs/sheets';import{BehaviorSubject as _0x108541,Subject as _0x8ae165}from'rxjs';import{takeUntil as _0x203c69,throttleTime as _0x573e8c}from'rxjs/operators';import{SetZoomRatioOperation as _0x4d70b8,SetScrollOperation as _0x2991d1}from'@univerjs/sheets-ui';var c=function(){var _0x104d6c=_0x181387;return c=Object['assign']||function(_0x169026){var _0x4ce8db=_0x5244;for(var _0x362adc,_0x2d286e=0x1,_0x4be252=arguments[_0x4ce8db(0x178)];_0x2d286e<_0x4be252;_0x2d286e++){_0x362adc=arguments[_0x2d286e];for(var _0x4d80bd in _0x362adc)Object['prototype'][_0x4ce8db(0x179)]['call'](_0x362adc,_0x4d80bd)&&(_0x169026[_0x4d80bd]=_0x362adc[_0x4d80bd]);}return _0x169026;},c[_0x104d6c(0x170)](this,arguments);},Oe=function(_0x1ef6cb,_0x1ba05b){var _0x8d10f3=_0x181387,_0x77a537={};for(var _0x170fa5 in _0x1ef6cb)Object[_0x8d10f3(0x149)][_0x8d10f3(0x179)][_0x8d10f3(0x1ce)](_0x1ef6cb,_0x170fa5)&&_0x1ba05b['indexOf'](_0x170fa5)<0x0&&(_0x77a537[_0x170fa5]=_0x1ef6cb[_0x170fa5]);if(_0x1ef6cb!=null&&typeof Object['getOwnPropertySymbols']==_0x8d10f3(0x1d8)){for(var _0x4c8699=0x0,_0x170fa5=Object[_0x8d10f3(0x1e3)](_0x1ef6cb);_0x4c8699<_0x170fa5[_0x8d10f3(0x178)];_0x4c8699++)_0x1ba05b['indexOf'](_0x170fa5[_0x4c8699])<0x0&&Object[_0x8d10f3(0x149)][_0x8d10f3(0x1aa)][_0x8d10f3(0x1ce)](_0x1ef6cb,_0x170fa5[_0x4c8699])&&(_0x77a537[_0x170fa5[_0x4c8699]]=_0x1ef6cb[_0x170fa5[_0x4c8699]]);}return _0x77a537;},W=_0x190d04(function(_0x2c0fb1,_0x41a4c3){var _0x529883=_0x181387,_0x46fa0d=_0x2c0fb1[_0x529883(0x18d)],_0x2e2eac=_0x2c0fb1['id'],_0x5c1230=_0x2c0fb1[_0x529883(0x1d2)],_0x2bebd8=_0x2c0fb1['extend'],_0x2561d7=Oe(_0x2c0fb1,[_0x529883(0x18d),'id','className','extend']),_0x4ad339='univerjs-icon\x20univerjs-icon-'[_0x529883(0x177)](_0x2e2eac,'\x20')['concat'](_0x5c1230||'')[_0x529883(0x1d7)](),_0x406328=_0x15d217('_'[_0x529883(0x177)](Ne()));return Y(_0x46fa0d,''[_0x529883(0x177)](_0x2e2eac),{'defIds':_0x46fa0d[_0x529883(0x1b0)],'idSuffix':_0x406328[_0x529883(0x1a0)]},c({'ref':_0x41a4c3,'className':_0x4ad339},_0x2561d7),_0x2bebd8);});function Y(_0x25cb32,_0x37d599,_0x415d74,_0x23ecc6,_0x43cabd){var _0x3f33ff=_0x181387;return _0x4c53b7(_0x25cb32[_0x3f33ff(0x147)],c(c({'key':_0x37d599},Ee(_0x25cb32,_0x415d74,_0x43cabd)),_0x23ecc6),(we(_0x25cb32,_0x415d74)[_0x3f33ff(0x1db)]||[])['map'](function(_0x3dd05c,_0x25c447){var _0x1af87f=_0x3f33ff;return Y(_0x3dd05c,''[_0x1af87f(0x177)](_0x37d599,'-')['concat'](_0x25cb32[_0x1af87f(0x147)],'-')[_0x1af87f(0x177)](_0x25c447),_0x415d74,void 0x0,_0x43cabd);}));}function Ee(_0x2df4b2,_0x773496,_0x4352e7){var _0x1c8d61=_0x181387,_0x3ad030=c({},_0x2df4b2[_0x1c8d61(0x191)]);_0x4352e7!=null&&_0x4352e7[_0x1c8d61(0x1ab)]&&_0x3ad030[_0x1c8d61(0x156)]==='colorChannel1'&&(_0x3ad030[_0x1c8d61(0x156)]=_0x4352e7['colorChannel1']),_0x2df4b2['tag']===_0x1c8d61(0x15e)&&_0x3ad030['id']&&(_0x3ad030['id']=_0x3ad030['id']+_0x773496[_0x1c8d61(0x164)]),Object['entries'](_0x3ad030)[_0x1c8d61(0x186)](function(_0x1ee3a3){var _0x3f1db8=_0x1c8d61,_0xd0eb11=_0x1ee3a3[0x0],_0x597a0c=_0x1ee3a3[0x1];_0xd0eb11===_0x3f1db8(0x15e)&&typeof _0x597a0c==_0x3f1db8(0x190)&&(_0x3ad030[_0xd0eb11]=_0x597a0c[_0x3f1db8(0x152)](/url\(#(.*)\)/,_0x3f1db8(0x13b)[_0x3f1db8(0x177)](_0x773496[_0x3f1db8(0x164)],')')));});var _0x392b44=_0x773496[_0x1c8d61(0x1b0)];return!_0x392b44||_0x392b44['length']===0x0||(_0x2df4b2[_0x1c8d61(0x147)]===_0x1c8d61(0x14c)&&_0x3ad030[_0x1c8d61(0x1d5)]&&(_0x3ad030[_0x1c8d61(0x1d5)]=_0x3ad030[_0x1c8d61(0x1d5)]+_0x773496[_0x1c8d61(0x164)]),Object[_0x1c8d61(0x142)](_0x3ad030)[_0x1c8d61(0x186)](function(_0x8e3ffe){var _0x2b7bee=_0x1c8d61,_0x155910=_0x8e3ffe[0x0],_0x7e5772=_0x8e3ffe[0x1];typeof _0x7e5772==_0x2b7bee(0x190)&&(_0x3ad030[_0x155910]=_0x7e5772[_0x2b7bee(0x152)](/url\(#(.*)\)/,_0x2b7bee(0x13b)[_0x2b7bee(0x177)](_0x773496[_0x2b7bee(0x164)],')')));})),_0x3ad030;}function we(_0x4bb924,_0x2b3619){var _0x10c281=_0x181387,_0x76e881,_0x4a5851=_0x2b3619['defIds'];return!_0x4a5851||_0x4a5851['length']===0x0?_0x4bb924:_0x4bb924[_0x10c281(0x147)]==='defs'&&(!((_0x76e881=_0x4bb924[_0x10c281(0x1db)])===null||_0x76e881===void 0x0)&&_0x76e881[_0x10c281(0x178)])?c(c({},_0x4bb924),{'children':_0x4bb924['children'][_0x10c281(0x1d9)](function(_0x5047da){var _0x42c6b3=_0x10c281;return typeof _0x5047da[_0x42c6b3(0x191)]['id']==_0x42c6b3(0x190)&&_0x4a5851&&_0x4a5851[_0x42c6b3(0x138)](_0x5047da[_0x42c6b3(0x191)]['id'])?c(c({},_0x5047da),{'attrs':c(c({},_0x5047da[_0x42c6b3(0x191)]),{'id':_0x5047da[_0x42c6b3(0x191)]['id']+_0x2b3619['idSuffix']})}):_0x5047da;})}):_0x4bb924;}function Ne(){var _0x201e5b=_0x181387;return Math[_0x201e5b(0x1be)]()['toString'](0x24)[_0x201e5b(0x19b)](0x2,0x8);}W['displayName']='UniverIcon';var Ce={'tag':_0x181387(0x1cd),'attrs':{'xmlns':_0x181387(0x181),'fill':'none','viewBox':_0x181387(0x187),'width':_0x181387(0x148),'height':_0x181387(0x148)},'children':[{'tag':'path','attrs':{'fill':_0x181387(0x18a),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x181387(0x150),'attrs':{'fill':_0x181387(0x18a),'d':_0x181387(0x188),'fillRule':'evenodd','clipRule':_0x181387(0x182)}}]},B=_0x190d04(function(_0x1a46b0,_0x15294d){var _0x388a9d=_0x181387;return _0x4c53b7(W,Object['assign']({},_0x1a46b0,{'id':_0x388a9d(0x13e),'ref':_0x15294d,'icon':Ce}));});B[_0x181387(0x1d6)]=_0x181387(0x173);class L extends _0xb4423d{constructor(){var _0x53cfcb=_0x181387;super(...arguments),d(this,_0x53cfcb(0x167),new Set()),d(this,_0x53cfcb(0x1dc),new Set());}[_0x181387(0x175)](_0x58fc0a){var _0x5e37a3=_0x181387;return this[_0x5e37a3(0x167)]['add'](_0x58fc0a),_0x5e0149(()=>this[_0x5e37a3(0x167)][_0x5e37a3(0x1d0)](_0x58fc0a));}[_0x181387(0x15c)](_0x2270b6){var _0x4b5d0e=_0x181387;return this[_0x4b5d0e(0x1dc)][_0x4b5d0e(0x1b6)](_0x2270b6),_0x5e0149(()=>this[_0x4b5d0e(0x1dc)][_0x4b5d0e(0x1d0)](_0x2270b6));}['shouldShareOperation'](_0x42ac0d){var _0x1cd4b8=_0x181387;return this[_0x1cd4b8(0x167)][_0x1cd4b8(0x189)](_0x42ac0d);}[_0x181387(0x17a)](_0x5f2719){var _0xdf5c24=_0x181387;return Array[_0xdf5c24(0x1e1)](this['_reporters'])[_0xdf5c24(0x1d9)](_0xfdac59=>_0xfdac59(_0x5f2719));}}var De=Object[_0x181387(0x193)],Z=(_0x4ae96c,_0x12bfce,_0x33ed9b,_0x4c37d5)=>{var _0x51e47b=_0x181387;for(var _0x219f81=_0x4c37d5>0x1?void 0x0:_0x4c37d5?De(_0x12bfce,_0x33ed9b):_0x12bfce,_0x35e5d1=_0x4ae96c[_0x51e47b(0x178)]-0x1,_0x1c0fa3;_0x35e5d1>=0x0;_0x35e5d1--)(_0x1c0fa3=_0x4ae96c[_0x35e5d1])&&(_0x219f81=_0x1c0fa3(_0x219f81)||_0x219f81);return _0x219f81;},f=(_0x51ffa0,_0x1e8c4d)=>(_0x363ac5,_0x387fb1)=>_0x1e8c4d(_0x363ac5,_0x387fb1,_0x51ffa0);let m=class extends _0x379150{constructor(_0x456523,_0x28ae25,_0x203c1f){var _0xcb4437=_0x181387;super(),d(this,_0xcb4437(0x1c7),new Map()),(this[_0xcb4437(0x1e5)]=_0x456523,this['_injector']=_0x28ae25,this[_0xcb4437(0x17e)]=_0x203c1f,this[_0xcb4437(0x197)]());}async[_0x181387(0x19d)](_0x5dd37c){var _0x25549e=_0x181387;return this[_0x25549e(0x1c7)][_0x25549e(0x189)](_0x5dd37c)||await this[_0x25549e(0x163)](_0x5dd37c),this[_0x25549e(0x1c7)][_0x25549e(0x13a)](_0x5dd37c);}['_init'](){var _0x2cfca8=_0x181387;this[_0x2cfca8(0x1e5)]['getTypeOfUnitAdded$'](_0x3d14a2[_0x2cfca8(0x1bf)])[_0x2cfca8(0x1a4)](_0x203c69(this[_0x2cfca8(0x1bd)]))[_0x2cfca8(0x18f)](async _0x462de0=>{var _0x3264ad=_0x2cfca8;const _0x539761=_0x462de0[_0x3264ad(0x1a6)]();this[_0x3264ad(0x1c7)]['has'](_0x539761)||this[_0x3264ad(0x163)](_0x539761);}),this['_univerInstanceService'][_0x2cfca8(0x166)](_0x3d14a2[_0x2cfca8(0x1bf)])[_0x2cfca8(0x1a4)](_0x203c69(this[_0x2cfca8(0x1bd)]))[_0x2cfca8(0x18f)](_0x4d1c2e=>{var _0x592499=_0x2cfca8;const _0x581b86=_0x4d1c2e['getUnitId'](),_0x1eafb2=this[_0x592499(0x1c7)][_0x592499(0x13a)](_0x581b86);_0x1eafb2==null||_0x1eafb2[_0x592499(0x183)]();});}async[_0x181387(0x163)](_0x714915){var _0x17471b=_0x181387;const _0x4ed7ba=await this['_collabSessionService'][_0x17471b(0x137)](_0x714915),_0x59dba9=this[_0x17471b(0x146)][_0x17471b(0x1ac)](C,_0x714915,_0x4ed7ba);return _0x59dba9[_0x17471b(0x141)](),this['_entities']['set'](_0x714915,_0x59dba9),_0x59dba9;}};m=Z([f(0x0,_0x1d3c87),f(0x1,_0x19b8a0(_0x340b01)),f(0x2,_0x19b8a0(_0x106a09))],m);var h=(_0x5b607d=>(_0x5b607d[_0x181387(0x19f)]='offline',_0x5b607d[_0x181387(0x1d4)]='idle',_0x5b607d['FOLLOWING']=_0x181387(0x145),_0x5b607d[_0x181387(0x14b)]=_0x181387(0x185),_0x5b607d['PRESENTING']=_0x181387(0x14d),_0x5b607d))(h||{});const xe=_0x181387(0x159),Le=0xc8;let C=class extends _0x379150{constructor(_0x847543,_0x9aef47,_0xa1063e,_0x23de10,_0x4066d8){var _0x2ada3e=_0x181387;super(),d(this,_0x2ada3e(0x1ca),new _0x108541(_0x2ada3e(0x1c2))),d(this,_0x2ada3e(0x192),this['_status$'][_0x2ada3e(0x151)]()),d(this,_0x2ada3e(0x197),!0x1),d(this,_0x2ada3e(0x143),null),d(this,_0x2ada3e(0x1d3),null),(this['_unitID']=_0x847543,this[_0x2ada3e(0x184)]=_0x9aef47,this[_0x2ada3e(0x140)]=_0xa1063e,this['_liveShareService']=_0x23de10,this['_commandService']=_0x4066d8);}get[_0x181387(0x155)](){var _0x5555ad=_0x181387;return this[_0x5555ad(0x1ca)]['getValue']();}[_0x181387(0x183)](){var _0x35ad49=_0x181387,_0x1d0444;(_0x1d0444=this[_0x35ad49(0x143)])==null||_0x1d0444[_0x35ad49(0x183)](),this[_0x35ad49(0x1ca)]['next']('idle'),this['_status$'][_0x35ad49(0x1dd)]();}[_0x181387(0x141)](){var _0x5bb9d7=_0x181387;this['_init']||(this[_0x5bb9d7(0x197)]=!0x0,this[_0x5bb9d7(0x184)][_0x5bb9d7(0x1a8)]['pipe'](_0x203c69(this['dispose$']))['subscribe'](_0x17f5a2=>{var _0x3ab379=_0x5bb9d7;switch(_0x17f5a2){case _0x35e16e[_0x3ab379(0x19f)]:this['_handleOffline']();break;case _0x35e16e[_0x3ab379(0x1a9)]:this[_0x3ab379(0x17d)]();break;}}),this[_0x5bb9d7(0x184)][_0x5bb9d7(0x16a)]['pipe'](_0x203c69(this[_0x5bb9d7(0x1bd)]))[_0x5bb9d7(0x18f)](_0x3f6543=>{var _0x53682e=_0x5bb9d7;const {eventID:_0x382dc9}=_0x3f6543;switch(_0x382dc9){case _0x18f536[_0x53682e(0x14a)]:this[_0x53682e(0x1ba)](_0x3f6543);break;case _0x18f536[_0x53682e(0x18e)]:this[_0x53682e(0x1b2)](_0x3f6543);break;case _0x18f536[_0x53682e(0x1c4)]:this[_0x53682e(0x136)]();break;case _0x18f536[_0x53682e(0x1c1)]:this['_handleNewChangeSets'](_0x3f6543);break;}}));}[_0x181387(0x1a2)](){var _0x535a27=_0x181387;this[_0x535a27(0x184)][_0x535a27(0x17c)]({'eventID':_0x18f536[_0x535a27(0x144)],'data':{'unitID':this[_0x535a27(0x1cf)],'userID':this[_0x535a27(0x184)][_0x535a27(0x18c)]()}},this[_0x535a27(0x1cf)]);}[_0x181387(0x174)](){var _0x59ff97=_0x181387;this[_0x59ff97(0x155)]===_0x59ff97(0x14d)&&(this[_0x59ff97(0x1ca)]['next'](_0x59ff97(0x1c2)),this[_0x59ff97(0x184)][_0x59ff97(0x17c)]({'eventID':_0x18f536[_0x59ff97(0x1c4)],'data':{'unitID':this[_0x59ff97(0x1cf)]}},this['_unitID']));}[_0x181387(0x180)](){var _0x262e5e=_0x181387;this['_status']===_0x262e5e(0x185)&&(this['_status$'][_0x262e5e(0x16f)]('following'),this[_0x262e5e(0x17b)]());}[_0x181387(0x15a)](){var _0x43e6a8=_0x181387;this['_status']===_0x43e6a8(0x145)&&this[_0x43e6a8(0x1bc)]();}[_0x181387(0x1ba)](_0x1cbdab){var _0x96e490=_0x181387;const {presenter:_0x40a471}=_0x1cbdab['data'],_0x487d8e=this['_collabSession'][_0x96e490(0x18c)]();this[_0x96e490(0x1d3)]=_0x40a471,_0x40a471===_0x487d8e?(this[_0x96e490(0x1bc)](),this[_0x96e490(0x13d)]()):this[_0x96e490(0x155)]!==_0x96e490(0x185)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x181387(0x157)](){var _0x32d263=_0x181387;const _0x363b32={'eventID':_0x18f536[_0x32d263(0x15b)]};this[_0x32d263(0x184)][_0x32d263(0x17c)](_0x363b32,this['_unitID']);}['_handleTerminate'](){var _0x1f55d0=_0x181387;this['_presenter']=null,this['_status']!==_0x1f55d0(0x14d)&&this['_beIdle']();}[_0x181387(0x1c0)](_0x2e90a5){var _0x3d22fd=_0x181387;if(this[_0x3d22fd(0x155)]===_0x3d22fd(0x145)&&this[_0x3d22fd(0x1d3)]===_0x2e90a5[_0x3d22fd(0x16b)][_0x3d22fd(0x139)]){const _0x441832=_0x2d9b95(_0x2e90a5[_0x3d22fd(0x16b)])[_0x3d22fd(0x161)]['reverse']()[_0x3d22fd(0x194)](_0x5130e3=>_0x5130e3['id']===_0x598f74['id']);if(_0x441832){const _0x564608=_0x441832[_0x3d22fd(0x158)]['unitId'],_0x574823=_0x441832['params'][_0x3d22fd(0x16e)]['id'];setTimeout(()=>{var _0x139f8b=_0x3d22fd;this[_0x139f8b(0x1e0)]['executeCommand'](_0x4dceb2['id'],{'unitId':_0x564608,'subUnitId':_0x574823},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x4fec86=_0x181387;this[_0x4fec86(0x1ca)][_0x4fec86(0x16f)](_0x4fec86(0x14d));const _0x58973d=new Map(),_0x1ecbc7=this[_0x4fec86(0x143)]=new _0x14b7d5();_0x1ecbc7[_0x4fec86(0x1b6)](_0x5e0149(()=>{var _0x5d2394=_0x4fec86;_0x58973d[_0x5d2394(0x186)](_0x31ed57=>_0x31ed57[_0x5d2394(0x1dd)]()),_0x58973d[_0x5d2394(0x1e2)]();})),_0x1ecbc7[_0x4fec86(0x1b6)](this['_commandService'][_0x4fec86(0x19c)](_0x120996=>{var _0x4f1840=_0x4fec86,_0x1883b3;if(_0x120996[_0x4f1840(0x1b9)]!==_0x586723[_0x4f1840(0x154)]||!this['_liveShareService'][_0x4f1840(0x176)](_0x120996['id']))return;const {id:_0x3a6513}=_0x120996;let _0x3bf11f;_0x58973d[_0x4f1840(0x189)](_0x3a6513)?_0x3bf11f=_0x58973d[_0x4f1840(0x13a)](_0x3a6513):(_0x3bf11f=new _0x8ae165(),_0x58973d['set'](_0x3a6513,_0x3bf11f),_0x3bf11f[_0x4f1840(0x1a4)](_0x573e8c((_0x1883b3=this[_0x4f1840(0x140)][_0x4f1840(0x1b4)](xe))!=null?_0x1883b3:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x49cb64=>{var _0x5ec7ae=_0x4f1840;this[_0x5ec7ae(0x184)]['send']({'eventID':_0x18f536['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x49cb64['id']]:{'id':_0x49cb64['id'],'params':JSON['stringify'](_0x49cb64[_0x5ec7ae(0x158)])}}}},this[_0x5ec7ae(0x1cf)]);})),_0x3bf11f[_0x4f1840(0x16f)](_0x120996);})),this[_0x4fec86(0x19e)]['getInitialStates'](this[_0x4fec86(0x1cf)])[_0x4fec86(0x186)](_0xf94d8=>this[_0x4fec86(0x184)][_0x4fec86(0x17c)]({'eventID':_0x18f536['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4fec86(0x1cf)],'operations':{[_0xf94d8['id']]:{'id':_0xf94d8['id'],'params':JSON[_0x4fec86(0x195)](_0xf94d8['params'])}}}},this[_0x4fec86(0x1cf)]));}[_0x181387(0x1d1)](){var _0x170f11=_0x181387,_0xe17cd3;this['_status$'][_0x170f11(0x16f)]('idle'),(_0xe17cd3=this['_commandDisposable'])==null||_0xe17cd3[_0x170f11(0x183)](),this[_0x170f11(0x143)]=null;}[_0x181387(0x17b)](){var _0x3417ad=_0x181387,_0x4124df;(_0x4124df=this[_0x3417ad(0x143)])==null||_0x4124df[_0x3417ad(0x183)](),this[_0x3417ad(0x1ca)][_0x3417ad(0x16f)](_0x3417ad(0x145));}['_beIdle'](){var _0x5ca409=_0x181387,_0x419194;this[_0x5ca409(0x1ca)][_0x5ca409(0x16f)](_0x5ca409(0x1c2)),(_0x419194=this['_commandDisposable'])==null||_0x419194['dispose'](),this[_0x5ca409(0x143)]=null;}[_0x181387(0x1bc)](){var _0x385822=_0x181387,_0x15d342;this[_0x385822(0x1ca)]['next'](_0x385822(0x185)),(_0x15d342=this[_0x385822(0x143)])==null||_0x15d342[_0x385822(0x183)]();}[_0x181387(0x1b2)](_0x1734d9){var _0x23b6f5=_0x181387;if([_0x23b6f5(0x14d),_0x23b6f5(0x185),_0x23b6f5(0x1a3)][_0x23b6f5(0x138)](this[_0x23b6f5(0x155)])||!_0x1734d9[_0x23b6f5(0x16b)][_0x23b6f5(0x165)]||_0x1734d9[_0x23b6f5(0x16b)][_0x23b6f5(0x165)]===this[_0x23b6f5(0x184)]['getMemberID']())return;this[_0x23b6f5(0x155)]===_0x23b6f5(0x1c2)&&this[_0x23b6f5(0x17b)]();const _0x1b0271=_0x1734d9[_0x23b6f5(0x16b)]['operations'];Object[_0x23b6f5(0x1b7)](_0x1b0271)[_0x23b6f5(0x186)](_0x3c047a=>{var _0x3ec457=_0x23b6f5;this[_0x3ec457(0x1e0)]['executeCommand'](_0x3c047a['id'],_0x3c047a['params']?JSON[_0x3ec457(0x1de)](_0x3c047a[_0x3ec457(0x158)]):null,{'fromCollab':!0x0});});}[_0x181387(0x1c9)](){var _0x50da63=_0x181387,_0x53750c;this[_0x50da63(0x1ca)]['next']('offline'),(_0x53750c=this['_commandDisposable'])==null||_0x53750c[_0x50da63(0x183)]();}[_0x181387(0x17d)](){var _0x347458=_0x181387;this['_status$']['next'](_0x347458(0x1c2)),this[_0x347458(0x157)]();}};C=Z([f(0x2,_0x5f525b),f(0x3,_0x19b8a0(L)),f(0x4,_0x4b3389)],C);function ye(){var _0x16c89f=_0x181387;const _0xe9d7a9=_0x279fce(m),_0x157dd0=_0x279fce(_0x1d3c87),_0x256a06=_0xd9f531(()=>_0x157dd0[_0x16c89f(0x1a5)](_0x3d14a2[_0x16c89f(0x1bf)]),void 0x0,!0x1,[]),[_0x5ede85,_0x3b689c]=_0x701ff9(null),[_0x58aca6,_0x1792db]=_0x701ff9(h['IDLE']),_0x24673f=_0x15d217(null);return _0x5f411f(()=>(_0x256a06&&_0xe9d7a9[_0x16c89f(0x19d)](_0x256a06[_0x16c89f(0x1a6)]())[_0x16c89f(0x1c3)](_0x18d7cf=>{var _0x5100b3=_0x16c89f;_0x3b689c(_0x18d7cf),_0x24673f[_0x5100b3(0x1a0)]=_0x18d7cf['status$'][_0x5100b3(0x18f)](_0x1ea568=>{_0x1792db(_0x1ea568);});}),()=>{var _0x1c9b06=_0x16c89f,_0x484f6f;(_0x484f6f=_0x24673f['current'])==null||_0x484f6f[_0x1c9b06(0x160)](),_0x24673f[_0x1c9b06(0x1a0)]=null;}),[_0x256a06,_0xe9d7a9]),_0x5ede85?_0x291591(_0x40e762,{'align':'end','disabled':_0x58aca6===h['OFFLINE'],'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':_0x291591(Re,{'status':_0x58aca6,'coordinator':_0x5ede85}),'children':_0x291591(_0x16c89f(0x16c),{'className':_0x508fea(_0x16c89f(0x13f),{'univer-cursor-not-allowed':_0x58aca6===h[_0x16c89f(0x19f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x58aca6!==h[_0x16c89f(0x19f)]}),'type':_0x16c89f(0x16c),'children':_0x291591(B,{'className':_0x16c89f(0x1b5)})})}):null;}function Re(_0x27b483){var _0x1c123f=_0x181387;const {status:_0x5ba908,coordinator:_0x453a17}=_0x27b483;switch(_0x5ba908){case h[_0x1c123f(0x1d4)]:return _0x291591(Pe,{'coordinator':_0x453a17});case h['FOLLOWING']:return _0x291591(Ae,{'coordinator':_0x453a17});case h[_0x1c123f(0x14b)]:return _0x291591(Te,{'coordinator':_0x453a17});case h['OFFLINE']:return _0x291591(Fe,{});case h[_0x1c123f(0x1cb)]:return _0x291591($e,{'coordinator':_0x453a17});default:return null;}}function Pe(_0x49c9da){var _0x48dde3=_0x181387;const {coordinator:_0x47efc1}=_0x49c9da;return _0x312e4c(_0x1bf877,{'children':[_0x291591(_0x48dde3(0x196),{'className':_0x48dde3(0x1e4),'children':_0x48dde3(0x17f)}),_0x291591(_0x19249c,{'onClick':()=>_0x47efc1[_0x48dde3(0x1a2)](),'children':'Start'})]});}function Ae(_0x55f0a8){var _0x7f3747=_0x181387;const {coordinator:_0x47a0d3}=_0x55f0a8;return _0x312e4c(_0x1bf877,{'children':[_0x291591(_0x7f3747(0x196),{'className':_0x7f3747(0x1e4),'children':_0x7f3747(0x172)}),_0x291591(_0x19249c,{'onClick':()=>_0x47a0d3[_0x7f3747(0x15a)](),'children':'Stop\x20following'})]});}function Te(_0x1dda3f){var _0x28bf64=_0x181387;const {coordinator:_0x192419}=_0x1dda3f;return _0x312e4c(_0x1bf877,{'children':[_0x291591(_0x28bf64(0x196),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x28bf64(0x162)}),_0x291591(_0x19249c,{'variant':'text','onClick':()=>_0x192419[_0x28bf64(0x180)](),'children':'Start\x20following'})]});}function $e(_0x22a67f){var _0x1b3b35=_0x181387;const {coordinator:_0x374b6e}=_0x22a67f;return _0x312e4c(_0x1bf877,{'children':[_0x291591(_0x1b3b35(0x196),{'className':_0x1b3b35(0x1e4),'children':_0x1b3b35(0x18b)}),_0x291591(_0x19249c,{'variant':'default','onClick':()=>_0x374b6e[_0x1b3b35(0x174)](),'children':_0x1b3b35(0x153)})]});}function Fe(){var _0x4ea957=_0x181387;return _0x291591(_0x1bf877,{'children':_0x4ea957(0x1ad)});}var He=Object[_0x181387(0x193)],je=(_0x27901f,_0x24f529,_0x4d9197,_0x214d70)=>{var _0xe4e56=_0x181387;for(var _0x225179=_0x214d70>0x1?void 0x0:_0x214d70?He(_0x24f529,_0x4d9197):_0x24f529,_0x32e8bb=_0x27901f[_0xe4e56(0x178)]-0x1,_0x3a3db2;_0x32e8bb>=0x0;_0x32e8bb--)(_0x3a3db2=_0x27901f[_0x32e8bb])&&(_0x225179=_0x3a3db2(_0x225179)||_0x225179);return _0x225179;},T=(_0x2ee10e,_0x2a8a06)=>(_0xdef2d0,_0x356d1d)=>_0x2a8a06(_0xdef2d0,_0x356d1d,_0x2ee10e);function _0x5244(_0xd6eec1,_0x4b74c4){var _0x4d2656=_0x4d26();return _0x5244=function(_0x524493,_0x42f8ee){_0x524493=_0x524493-0x136;var _0x366dd9=_0x4d2656[_0x524493];return _0x366dd9;},_0x5244(_0xd6eec1,_0x4b74c4);}let I=class extends _0xb4423d{constructor(_0x57c5d9,_0x4b5082){var _0x358af7=_0x181387;super(),this['_injector']=_0x57c5d9,this[_0x358af7(0x1af)]=_0x4b5082,this[_0x358af7(0x1df)]();}[_0x181387(0x1df)](){var _0x4cfb0b=_0x181387;this[_0x4cfb0b(0x14e)](this[_0x4cfb0b(0x1af)][_0x4cfb0b(0x1ae)](_0x8a0539[_0x4cfb0b(0x1c6)],()=>_0x401def(ye,this['_injector'])));}};I=je([T(0x0,_0x19b8a0(_0x340b01)),T(0x1,_0x59ff15)],I);const Ue=_0x181387(0x1a1),$={};var Ve=Object[_0x181387(0x193)],Me=(_0x45115a,_0x3e31a6,_0x1f4776,_0x2e2be0)=>{for(var _0x4647ca=_0x2e2be0>0x1?void 0x0:_0x2e2be0?Ve(_0x3e31a6,_0x1f4776):_0x3e31a6,_0x1f2a29=_0x45115a['length']-0x1,_0x3d2f15;_0x1f2a29>=0x0;_0x1f2a29--)(_0x3d2f15=_0x45115a[_0x1f2a29])&&(_0x4647ca=_0x3d2f15(_0x4647ca)||_0x4647ca);return _0x4647ca;},ke=(_0x5891fc,_0x19805a)=>(_0x534bf2,_0x237c0a)=>_0x19805a(_0x534bf2,_0x237c0a,_0x5891fc);let b=class extends _0xb4423d{constructor(_0x279f9d){var _0x454ade=_0x181387;super(),this[_0x454ade(0x19e)]=_0x279f9d,this[_0x454ade(0x197)]();}[_0x181387(0x197)](){var _0x184932=_0x181387;[_0x4d70b8['id'],_0x2991d1['id'],_0x4dceb2['id']][_0x184932(0x186)](_0x32a7aa=>{var _0x1674dd=_0x184932;this[_0x1674dd(0x14e)](this[_0x1674dd(0x19e)]['registerSharedOperation'](_0x32a7aa));});}};b=Me([ke(0x0,_0x19b8a0(L))],b);function _0x4d26(){var _0xd8d1f2=['1853230OqrWoE','_stopFollowing','dispose$','random','UNIVER_SHEET','_handleNewChangeSets','NEW_CHANGESETS','idle','then','LIVESHARE_TERMINATE','defineProperty','HEADER_MENU','_entities','877644KfPbPq','_handleOffline','_status$','PRESENTING','_config','svg','call','_unitID','delete','_stopPresenting','className','_presenter','IDLE','xlink:href','displayName','trim','function','map','1018446vfrBAI','children','_reporters','complete','parse','_mountLiveShare','_commandService','from','clear','getOwnPropertySymbols','univer-mb-3\x20univer-w-full\x20univer-text-sm','_univerInstanceService','_handleTerminate','requireSession','includes','memberID','get','url(#$1','552aqAEFO','_startPresenting','live-share-icon','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_configService','init','entries','_commandDisposable','LIVESHARE_REQUEST_HOST','following','_injector','tag','1em','prototype','LIVESHARE_NEW_HOST','NOT_FOLLOWING','use','presenting','disposeWithMe','UNIVER_UNKNOWN','path','asObservable','replace','Stop\x20presenting','OPERATION','_status','fill','_fetchOperations','params','SAME_OPERATION_SHARE_INTERVAL','stopFollowing','LIVESHARE_FETCH_OPERATIONS','registerInitialStateReporter','setConfig','mask','88398tQmaaj','unsubscribe','mutations','You\x27re\x20not\x20following\x20the\x20presenter','_startLiveShareCoordinator','idSuffix','presenter','getTypeOfUnitDisposed$','_sharedOperations','onRendered','symbol','event$','data','button','onStarting','sheet','next','apply','pluginName','You\x27re\x20following\x20the\x20presenter','LiveShareIcon','stopPresenting','registerSharedOperation','shouldShareOperation','concat','length','hasOwnProperty','getInitialStates','_startFollowing','send','_handleOnline','_collabSessionService','Present\x20this\x20document','startFollowing','http://www.w3.org/2000/svg','evenodd','dispose','_collabSession','not-following','forEach','0\x200\x2017\x2017','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','has','currentColor','You\x27re\x20presenting\x20the\x20document','getMemberID','icon','LIVESHARE_OPERATION','subscribe','string','attrs','status$','getOwnPropertyDescriptor','find','stringify','div','_init','270gAjacs','4fZBAEA','328242fJdTxd','substring','onCommandExecuted','getLiveShareCoordinator','_liveShareService','OFFLINE','current','live-share.config','tryStartPresenting','offline','pipe','getCurrentTypeOfUnit$','getUnitId','UNIVER_LIVE_SHARE_PLUGIN','sessionStatus$','ONLINE','propertyIsEnumerable','colorChannel1','createInstance','You\x27are\x20offline.','registerComponent','_uiPartsService','defIds','581524HZefhr','_handleOperation','109582UXiXrg','getConfig','univer-size-4','add','values','28IjcRVG','type','_handleNewHost'];_0x4d26=function(){return _0xd8d1f2;};return _0x4d26();}var Ge=Object[_0x181387(0x1c5)],We=Object[_0x181387(0x193)],Ye=(_0x96e68a,_0x59a02a,_0x1fc2f2)=>_0x59a02a in _0x96e68a?Ge(_0x96e68a,_0x59a02a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1fc2f2}):_0x96e68a[_0x59a02a]=_0x1fc2f2,Be=(_0x1a2ba2,_0x3f1212,_0x5f245e,_0x1f3629)=>{var _0x405386=_0x181387;for(var _0xac1a4f=_0x1f3629>0x1?void 0x0:_0x1f3629?We(_0x3f1212,_0x5f245e):_0x3f1212,_0x2ae03c=_0x1a2ba2[_0x405386(0x178)]-0x1,_0x57c803;_0x2ae03c>=0x0;_0x2ae03c--)(_0x57c803=_0x1a2ba2[_0x2ae03c])&&(_0xac1a4f=_0x57c803(_0xac1a4f)||_0xac1a4f);return _0xac1a4f;},F=(_0x21bb44,_0x3eff0f)=>(_0x455f6e,_0x2b12ab)=>_0x3eff0f(_0x455f6e,_0x2b12ab,_0x21bb44),J=(_0x5ea947,_0x5e9f79,_0x51fc96)=>Ye(_0x5ea947,typeof _0x5e9f79!=_0x181387(0x169)?_0x5e9f79+'':_0x5e9f79,_0x51fc96);const Ze=_0x181387(0x1a7);let O=class extends _0x51df73{constructor(_0x4aefd8=$,_0x29618b,_0x4368d6){var _0x28fcdf=_0x181387;super(),this[_0x28fcdf(0x1cc)]=_0x4aefd8,this['_injector']=_0x29618b,this['_configService']=_0x4368d6;const {..._0x127ce3}=_0xd6b33({},$,this[_0x28fcdf(0x1cc)]);this[_0x28fcdf(0x140)][_0x28fcdf(0x15d)](Ue,_0x127ce3);}[_0x181387(0x16d)](){var _0x3fd118=_0x181387;_0x1050b5(this[_0x3fd118(0x146)],_0x4379af([[L],[m],[b],[I]],this[_0x3fd118(0x1cc)]['override'])),_0x422eb9(this['_injector'],[[b]]);}[_0x181387(0x168)](){var _0x5f4fbc=_0x181387;_0x422eb9(this[_0x5f4fbc(0x146)],[[I]]);}};J(O,_0x181387(0x1b9),_0x3d14a2[_0x181387(0x14f)]),J(O,_0x181387(0x171),Ze),O=Be([_0x498526(_0x204b9a),F(0x1,_0x19b8a0(_0x340b01)),F(0x2,_0x5f525b)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x43ad12=_0x5bf1;(function(_0x43f385,_0x19f216){var _0x47725f=_0x5bf1,_0x3bd6a2=_0x43f385();while(!![]){try{var _0x2c16d4=-parseInt(_0x47725f(0x14d))/0x1+-parseInt(_0x47725f(0x16e))/0x2+parseInt(_0x47725f(0x15b))/0x3+parseInt(_0x47725f(0x17a))/0x4*(parseInt(_0x47725f(0x187))/0x5)+parseInt(_0x47725f(0x194))/0x6*(parseInt(_0x47725f(0x143))/0x7)+parseInt(_0x47725f(0x170))/0x8*(-parseInt(_0x47725f(0x17c))/0x9)+parseInt(_0x47725f(0x171))/0xa*(parseInt(_0x47725f(0x17d))/0xb);if(_0x2c16d4===_0x19f216)break;else _0x3bd6a2['push'](_0x3bd6a2['shift']());}catch(_0x4281f1){_0x3bd6a2['push'](_0x3bd6a2['shift']());}}}(_0x59c7,0xadca4));var q=Object[_0x43ad12(0x128)],z=(_0x519c17,_0x50d9a5,_0x2b7167)=>_0x50d9a5 in _0x519c17?q(_0x519c17,_0x50d9a5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b7167}):_0x519c17[_0x50d9a5]=_0x2b7167,d=(_0x165409,_0x26b618,_0x47c4c8)=>z(_0x165409,typeof _0x26b618!=_0x43ad12(0x112)?_0x26b618+'':_0x26b618,_0x47c4c8);import{Disposable as _0x1b4c3b,toDisposable as _0x588afd,IUniverInstanceService as _0x149d48,Inject as _0x415909,Injector as _0x3fc7f2,IConfigService as _0x13311c,ICommandService as _0x4937f3,RxDisposable as _0x3b727a,UniverInstanceType as _0x33c666,DisposableCollection as _0x4ec9f6,CommandType as _0x2173c3,DependentOn as _0x1b3cbd,Plugin as _0x36a567,merge as _0x567ad9,registerDependencies as _0x540bc8,mergeOverrideWithDependencies as _0x14ee17,touchDependencies as _0x41f7e0}from'@univerjs/core';import{useDependency as _0x3aad55,useObservable as _0x52b777,IUIPartsService as _0x3d81bf,BuiltInUIPart as _0x3c9c42,connectInjector as _0x1896e1}from'@univerjs/ui';import{jsx as _0x10c595,jsxs as _0x2b145f,Fragment as _0x5aa383}from'react/jsx-runtime';import{Dropdown as _0x75180f,clsx as _0x5e4436,Button as _0x3a9d39}from'@univerjs/design';import{forwardRef as _0x43924e,useRef as _0x5dd95c,createElement as _0x1ff31c,useState as _0x13739e,useEffect as _0x57601b}from'react';import{CollaborationEvent as _0x39828a,parseProtocolChangeset as _0x238891}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1db8e9,SessionStatus as _0x13ce6b,UniverCollaborationClientPlugin as _0x485a8f}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x61d40f,SetWorksheetActiveOperation as _0x82b7b3}from'@univerjs/sheets';import{BehaviorSubject as _0x56bdba,Subject as _0x546630}from'rxjs';import{takeUntil as _0x444045,throttleTime as _0x2bca3c}from'rxjs/operators';import{SetZoomRatioOperation as _0xb0b9cb,SetScrollOperation as _0x2b4266}from'@univerjs/sheets-ui';var c=function(){var _0x5af697=_0x43ad12;return c=Object['assign']||function(_0x46a481){var _0xcfc4a1=_0x5bf1;for(var _0x5d485c,_0x4450ae=0x1,_0x2926c7=arguments[_0xcfc4a1(0x185)];_0x4450ae<_0x2926c7;_0x4450ae++){_0x5d485c=arguments[_0x4450ae];for(var _0x22a378 in _0x5d485c)Object['prototype'][_0xcfc4a1(0x19d)][_0xcfc4a1(0x12f)](_0x5d485c,_0x22a378)&&(_0x46a481[_0x22a378]=_0x5d485c[_0x22a378]);}return _0x46a481;},c[_0x5af697(0x1ad)](this,arguments);},Oe=function(_0x44bf89,_0x2aa466){var _0x3fb611=_0x43ad12,_0x144d13={};for(var _0x202364 in _0x44bf89)Object[_0x3fb611(0x125)][_0x3fb611(0x19d)][_0x3fb611(0x12f)](_0x44bf89,_0x202364)&&_0x2aa466[_0x3fb611(0x1bc)](_0x202364)<0x0&&(_0x144d13[_0x202364]=_0x44bf89[_0x202364]);if(_0x44bf89!=null&&typeof Object[_0x3fb611(0x133)]==_0x3fb611(0x1a6)){for(var _0xe40934=0x0,_0x202364=Object['getOwnPropertySymbols'](_0x44bf89);_0xe40934<_0x202364[_0x3fb611(0x185)];_0xe40934++)_0x2aa466[_0x3fb611(0x1bc)](_0x202364[_0xe40934])<0x0&&Object['prototype'][_0x3fb611(0x18c)][_0x3fb611(0x12f)](_0x44bf89,_0x202364[_0xe40934])&&(_0x144d13[_0x202364[_0xe40934]]=_0x44bf89[_0x202364[_0xe40934]]);}return _0x144d13;},W=_0x43924e(function(_0x419862,_0x5b1d30){var _0x1b238e=_0x43ad12,_0x2a5366=_0x419862['icon'],_0x1ce739=_0x419862['id'],_0x44f1bb=_0x419862['className'],_0x44c12c=_0x419862[_0x1b238e(0x19a)],_0x5b1c55=Oe(_0x419862,[_0x1b238e(0x1b0),'id',_0x1b238e(0x1a1),_0x1b238e(0x19a)]),_0x514530=_0x1b238e(0x136)[_0x1b238e(0x1a8)](_0x1ce739,'\x20')[_0x1b238e(0x1a8)](_0x44f1bb||'')[_0x1b238e(0x15a)](),_0xd92020=_0x5dd95c('_'[_0x1b238e(0x1a8)](Ne()));return Y(_0x2a5366,''[_0x1b238e(0x1a8)](_0x1ce739),{'defIds':_0x2a5366['defIds'],'idSuffix':_0xd92020[_0x1b238e(0x179)]},c({'ref':_0x5b1d30,'className':_0x514530},_0x5b1c55),_0x44c12c);});function Y(_0x4f07cb,_0x29a918,_0x16804c,_0x4801e7,_0x405205){var _0x4105cd=_0x43ad12;return _0x1ff31c(_0x4f07cb[_0x4105cd(0x11d)],c(c({'key':_0x29a918},Ee(_0x4f07cb,_0x16804c,_0x405205)),_0x4801e7),(we(_0x4f07cb,_0x16804c)[_0x4105cd(0x168)]||[])[_0x4105cd(0x11c)](function(_0x1a053e,_0x30aa0){var _0x4300c4=_0x4105cd;return Y(_0x1a053e,''[_0x4300c4(0x1a8)](_0x29a918,'-')[_0x4300c4(0x1a8)](_0x4f07cb['tag'],'-')['concat'](_0x30aa0),_0x16804c,void 0x0,_0x405205);}));}function Ee(_0x3d9a2d,_0xaf7f46,_0x187dbe){var _0x3d838d=_0x43ad12,_0x2b2753=c({},_0x3d9a2d[_0x3d838d(0x1c0)]);_0x187dbe!=null&&_0x187dbe['colorChannel1']&&_0x2b2753[_0x3d838d(0x122)]===_0x3d838d(0x18a)&&(_0x2b2753[_0x3d838d(0x122)]=_0x187dbe[_0x3d838d(0x18a)]),_0x3d9a2d[_0x3d838d(0x11d)]===_0x3d838d(0x150)&&_0x2b2753['id']&&(_0x2b2753['id']=_0x2b2753['id']+_0xaf7f46['idSuffix']),Object[_0x3d838d(0x119)](_0x2b2753)[_0x3d838d(0x163)](function(_0x5d464d){var _0x48f29f=_0x3d838d,_0x2a8dec=_0x5d464d[0x0],_0x3bb73f=_0x5d464d[0x1];_0x2a8dec===_0x48f29f(0x150)&&typeof _0x3bb73f==_0x48f29f(0x19f)&&(_0x2b2753[_0x2a8dec]=_0x3bb73f[_0x48f29f(0x1b9)](/url\(#(.*)\)/,'url(#$1'[_0x48f29f(0x1a8)](_0xaf7f46['idSuffix'],')')));});var _0x1f3502=_0xaf7f46['defIds'];return!_0x1f3502||_0x1f3502[_0x3d838d(0x185)]===0x0||(_0x3d9a2d['tag']===_0x3d838d(0x1b1)&&_0x2b2753[_0x3d838d(0x166)]&&(_0x2b2753[_0x3d838d(0x166)]=_0x2b2753['xlink:href']+_0xaf7f46[_0x3d838d(0x113)]),Object['entries'](_0x2b2753)[_0x3d838d(0x163)](function(_0x2a9e88){var _0x3fb766=_0x3d838d,_0x2badde=_0x2a9e88[0x0],_0x194549=_0x2a9e88[0x1];typeof _0x194549==_0x3fb766(0x19f)&&(_0x2b2753[_0x2badde]=_0x194549[_0x3fb766(0x1b9)](/url\(#(.*)\)/,_0x3fb766(0x177)['concat'](_0xaf7f46[_0x3fb766(0x113)],')')));})),_0x2b2753;}function we(_0x51c3ca,_0x50f96d){var _0x484f65=_0x43ad12,_0x36c831,_0x1f447a=_0x50f96d['defIds'];return!_0x1f447a||_0x1f447a[_0x484f65(0x185)]===0x0?_0x51c3ca:_0x51c3ca[_0x484f65(0x11d)]===_0x484f65(0x127)&&(!((_0x36c831=_0x51c3ca[_0x484f65(0x168)])===null||_0x36c831===void 0x0)&&_0x36c831[_0x484f65(0x185)])?c(c({},_0x51c3ca),{'children':_0x51c3ca[_0x484f65(0x168)]['map'](function(_0x2ce7c1){var _0x17e411=_0x484f65;return typeof _0x2ce7c1['attrs']['id']==_0x17e411(0x19f)&&_0x1f447a&&_0x1f447a[_0x17e411(0x1ae)](_0x2ce7c1[_0x17e411(0x1c0)]['id'])?c(c({},_0x2ce7c1),{'attrs':c(c({},_0x2ce7c1[_0x17e411(0x1c0)]),{'id':_0x2ce7c1[_0x17e411(0x1c0)]['id']+_0x50f96d[_0x17e411(0x113)]})}):_0x2ce7c1;})}):_0x51c3ca;}function Ne(){var _0x5eb072=_0x43ad12;return Math[_0x5eb072(0x13c)]()[_0x5eb072(0x110)](0x24)[_0x5eb072(0x175)](0x2,0x8);}W[_0x43ad12(0x1bf)]=_0x43ad12(0x1a4);function _0x5bf1(_0x4eb4c5,_0x46bdbd){var _0x59c775=_0x59c7();return _0x5bf1=function(_0x5bf108,_0x46b66a){_0x5bf108=_0x5bf108-0x10c;var _0x3883aa=_0x59c775[_0x5bf108];return _0x3883aa;},_0x5bf1(_0x4eb4c5,_0x46bdbd);}var Ce={'tag':_0x43ad12(0x14f),'attrs':{'xmlns':_0x43ad12(0x140),'fill':_0x43ad12(0x1ac),'viewBox':'0\x200\x2017\x2017','width':_0x43ad12(0x11e),'height':_0x43ad12(0x11e)},'children':[{'tag':_0x43ad12(0x1b3),'attrs':{'fill':_0x43ad12(0x142),'d':_0x43ad12(0x197)}},{'tag':'path','attrs':{'fill':_0x43ad12(0x142),'d':_0x43ad12(0x1c1),'fillRule':_0x43ad12(0x13e),'clipRule':_0x43ad12(0x13e)}}]},B=_0x43924e(function(_0x389c3f,_0x63a00f){var _0x526703=_0x43ad12;return _0x1ff31c(W,Object[_0x526703(0x1ab)]({},_0x389c3f,{'id':_0x526703(0x144),'ref':_0x63a00f,'icon':Ce}));});B['displayName']='LiveShareIcon';class L extends _0x1b4c3b{constructor(){super(...arguments),d(this,'_sharedOperations',new Set()),d(this,'_reporters',new Set());}[_0x43ad12(0x116)](_0x36352d){var _0xc5e79f=_0x43ad12;return this['_sharedOperations'][_0xc5e79f(0x13a)](_0x36352d),_0x588afd(()=>this[_0xc5e79f(0x132)][_0xc5e79f(0x176)](_0x36352d));}[_0x43ad12(0x158)](_0xea3677){var _0x2486bb=_0x43ad12;return this['_reporters'][_0x2486bb(0x13a)](_0xea3677),_0x588afd(()=>this[_0x2486bb(0x115)]['delete'](_0xea3677));}['shouldShareOperation'](_0x26e2b5){var _0x3e556f=_0x43ad12;return this[_0x3e556f(0x132)]['has'](_0x26e2b5);}[_0x43ad12(0x151)](_0xe8ea75){var _0x4ca2f7=_0x43ad12;return Array[_0x4ca2f7(0x181)](this[_0x4ca2f7(0x115)])[_0x4ca2f7(0x11c)](_0x1f8788=>_0x1f8788(_0xe8ea75));}}var De=Object[_0x43ad12(0x1b6)],Z=(_0x108d72,_0x597d40,_0x4866df,_0x330c3c)=>{var _0x7c8c0=_0x43ad12;for(var _0x4cfad7=_0x330c3c>0x1?void 0x0:_0x330c3c?De(_0x597d40,_0x4866df):_0x597d40,_0x4c07b4=_0x108d72[_0x7c8c0(0x185)]-0x1,_0x21e715;_0x4c07b4>=0x0;_0x4c07b4--)(_0x21e715=_0x108d72[_0x4c07b4])&&(_0x4cfad7=_0x21e715(_0x4cfad7)||_0x4cfad7);return _0x4cfad7;},f=(_0xac1e79,_0x5f4938)=>(_0x12f20e,_0x501932)=>_0x5f4938(_0x12f20e,_0x501932,_0xac1e79);let m=class extends _0x3b727a{constructor(_0x1aaf0a,_0x17adca,_0x5b3c11){var _0x5edf8a=_0x43ad12;super(),d(this,_0x5edf8a(0x12e),new Map()),(this[_0x5edf8a(0x188)]=_0x1aaf0a,this['_injector']=_0x17adca,this[_0x5edf8a(0x199)]=_0x5b3c11,this[_0x5edf8a(0x16f)]());}async[_0x43ad12(0x156)](_0x482b03){var _0xe0027c=_0x43ad12;return this[_0xe0027c(0x12e)][_0xe0027c(0x11a)](_0x482b03)||await this[_0xe0027c(0x195)](_0x482b03),this['_entities'][_0xe0027c(0x16d)](_0x482b03);}['_init'](){var _0x852fb9=_0x43ad12;this[_0x852fb9(0x188)][_0x852fb9(0x15d)](_0x33c666['UNIVER_SHEET'])['pipe'](_0x444045(this['dispose$']))['subscribe'](async _0x4d1e87=>{var _0x4b6010=_0x852fb9;const _0x4953bc=_0x4d1e87[_0x4b6010(0x1be)]();this['_entities'][_0x4b6010(0x11a)](_0x4953bc)||this['_startLiveShareCoordinator'](_0x4953bc);}),this[_0x852fb9(0x188)][_0x852fb9(0x15e)](_0x33c666[_0x852fb9(0x18e)])[_0x852fb9(0x189)](_0x444045(this[_0x852fb9(0x114)]))[_0x852fb9(0x15f)](_0x1fc75d=>{var _0x224f99=_0x852fb9;const _0x103875=_0x1fc75d[_0x224f99(0x1be)](),_0x44cfff=this[_0x224f99(0x12e)]['get'](_0x103875);_0x44cfff==null||_0x44cfff['dispose']();});}async[_0x43ad12(0x195)](_0x59aa1c){var _0x5d12d7=_0x43ad12;const _0x451266=await this[_0x5d12d7(0x199)][_0x5d12d7(0x164)](_0x59aa1c),_0x418dd2=this[_0x5d12d7(0x1bd)]['createInstance'](C,_0x59aa1c,_0x451266);return _0x418dd2[_0x5d12d7(0x1af)](),this[_0x5d12d7(0x12e)][_0x5d12d7(0x10e)](_0x59aa1c,_0x418dd2),_0x418dd2;}};m=Z([f(0x0,_0x149d48),f(0x1,_0x415909(_0x3fc7f2)),f(0x2,_0x415909(_0x1db8e9))],m);var h=(_0x244fa3=>(_0x244fa3[_0x43ad12(0x12d)]=_0x43ad12(0x135),_0x244fa3[_0x43ad12(0x1a5)]='idle',_0x244fa3[_0x43ad12(0x134)]=_0x43ad12(0x17b),_0x244fa3[_0x43ad12(0x13b)]='not-following',_0x244fa3[_0x43ad12(0x184)]='presenting',_0x244fa3))(h||{});const xe=_0x43ad12(0x160),Le=0xc8;let C=class extends _0x3b727a{constructor(_0x1fab99,_0x686740,_0xa2aa81,_0x26a5a1,_0x519752){var _0x2db2fe=_0x43ad12;super(),d(this,'_status$',new _0x56bdba('idle')),d(this,'status$',this[_0x2db2fe(0x13f)]['asObservable']()),d(this,_0x2db2fe(0x16f),!0x1),d(this,_0x2db2fe(0x19e),null),d(this,_0x2db2fe(0x18d),null),(this[_0x2db2fe(0x186)]=_0x1fab99,this[_0x2db2fe(0x145)]=_0x686740,this[_0x2db2fe(0x1ba)]=_0xa2aa81,this[_0x2db2fe(0x1b8)]=_0x26a5a1,this[_0x2db2fe(0x16b)]=_0x519752);}get[_0x43ad12(0x1a9)](){var _0x4f58fa=_0x43ad12;return this[_0x4f58fa(0x13f)][_0x4f58fa(0x1b2)]();}[_0x43ad12(0x148)](){var _0x3515e5=_0x43ad12,_0x4afdb4;(_0x4afdb4=this[_0x3515e5(0x19e)])==null||_0x4afdb4[_0x3515e5(0x148)](),this[_0x3515e5(0x13f)][_0x3515e5(0x19c)](_0x3515e5(0x1a3)),this[_0x3515e5(0x13f)][_0x3515e5(0x172)]();}[_0x43ad12(0x1af)](){var _0x1ded7f=_0x43ad12;this[_0x1ded7f(0x16f)]||(this[_0x1ded7f(0x16f)]=!0x0,this[_0x1ded7f(0x145)][_0x1ded7f(0x12c)][_0x1ded7f(0x189)](_0x444045(this[_0x1ded7f(0x114)]))[_0x1ded7f(0x15f)](_0x54ca26=>{var _0x21bec2=_0x1ded7f;switch(_0x54ca26){case _0x13ce6b['OFFLINE']:this['_handleOffline']();break;case _0x13ce6b[_0x21bec2(0x1c2)]:this['_handleOnline']();break;}}),this[_0x1ded7f(0x145)][_0x1ded7f(0x167)][_0x1ded7f(0x189)](_0x444045(this[_0x1ded7f(0x114)]))[_0x1ded7f(0x15f)](_0x3795c8=>{var _0x11edb5=_0x1ded7f;const {eventID:_0x5acc11}=_0x3795c8;switch(_0x5acc11){case _0x39828a[_0x11edb5(0x191)]:this[_0x11edb5(0x159)](_0x3795c8);break;case _0x39828a[_0x11edb5(0x15c)]:this[_0x11edb5(0x118)](_0x3795c8);break;case _0x39828a['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x39828a[_0x11edb5(0x10c)]:this['_handleNewChangeSets'](_0x3795c8);break;}}));}['tryStartPresenting'](){var _0x38ec87=_0x43ad12;this[_0x38ec87(0x145)][_0x38ec87(0x19b)]({'eventID':_0x39828a[_0x38ec87(0x13d)],'data':{'unitID':this[_0x38ec87(0x186)],'userID':this[_0x38ec87(0x145)][_0x38ec87(0x183)]()}},this['_unitID']);}[_0x43ad12(0x17e)](){var _0x44555f=_0x43ad12;this[_0x44555f(0x1a9)]===_0x44555f(0x192)&&(this['_status$'][_0x44555f(0x19c)](_0x44555f(0x1a3)),this['_collabSession'][_0x44555f(0x19b)]({'eventID':_0x39828a[_0x44555f(0x169)],'data':{'unitID':this[_0x44555f(0x186)]}},this[_0x44555f(0x186)]));}['startFollowing'](){var _0xc62691=_0x43ad12;this['_status']===_0xc62691(0x124)&&(this[_0xc62691(0x13f)][_0xc62691(0x19c)](_0xc62691(0x17b)),this[_0xc62691(0x14e)]());}[_0x43ad12(0x14c)](){var _0x32d772=_0x43ad12;this[_0x32d772(0x1a9)]===_0x32d772(0x17b)&&this[_0x32d772(0x182)]();}[_0x43ad12(0x159)](_0x13b2ba){var _0x31d93f=_0x43ad12;const {presenter:_0x46783f}=_0x13b2ba['data'],_0x198b4c=this['_collabSession']['getMemberID']();this[_0x31d93f(0x18d)]=_0x46783f,_0x46783f===_0x198b4c?(this[_0x31d93f(0x182)](),this[_0x31d93f(0x18f)]()):this[_0x31d93f(0x1a9)]!==_0x31d93f(0x124)&&(this[_0x31d93f(0x17f)](),this[_0x31d93f(0x14e)]());}[_0x43ad12(0x1bb)](){var _0x66a0ef=_0x43ad12;const _0x30e2b5={'eventID':_0x39828a[_0x66a0ef(0x1a7)]};this[_0x66a0ef(0x145)]['send'](_0x30e2b5,this[_0x66a0ef(0x186)]);}[_0x43ad12(0x129)](){var _0x161257=_0x43ad12;this[_0x161257(0x18d)]=null,this['_status']!==_0x161257(0x192)&&this[_0x161257(0x11f)]();}[_0x43ad12(0x162)](_0x346333){var _0x35d9a1=_0x43ad12;if(this[_0x35d9a1(0x1a9)]==='following'&&this[_0x35d9a1(0x18d)]===_0x346333[_0x35d9a1(0x14b)][_0x35d9a1(0x153)]){const _0x1b6381=_0x238891(_0x346333['data'])[_0x35d9a1(0x117)][_0x35d9a1(0x130)]()[_0x35d9a1(0x18b)](_0x49d9ff=>_0x49d9ff['id']===_0x61d40f['id']);if(_0x1b6381){const _0x47fee0=_0x1b6381[_0x35d9a1(0x178)]['unitId'],_0x1d52b6=_0x1b6381[_0x35d9a1(0x178)]['sheet']['id'];setTimeout(()=>{var _0x5c44c6=_0x35d9a1;this[_0x5c44c6(0x16b)][_0x5c44c6(0x1aa)](_0x82b7b3['id'],{'unitId':_0x47fee0,'subUnitId':_0x1d52b6},{'fromCollab':!0x0});});}}}[_0x43ad12(0x18f)](){var _0x593c9b=_0x43ad12;this['_status$'][_0x593c9b(0x19c)](_0x593c9b(0x192));const _0x5d117b=new Map(),_0x3b7c13=this['_commandDisposable']=new _0x4ec9f6();_0x3b7c13[_0x593c9b(0x13a)](_0x588afd(()=>{var _0x3680e6=_0x593c9b;_0x5d117b[_0x3680e6(0x163)](_0x2726d8=>_0x2726d8[_0x3680e6(0x172)]()),_0x5d117b['clear']();})),_0x3b7c13['add'](this['_commandService'][_0x593c9b(0x120)](_0x243ef4=>{var _0x4ac734=_0x593c9b,_0xa8e20d;if(_0x243ef4[_0x4ac734(0x147)]!==_0x2173c3[_0x4ac734(0x141)]||!this[_0x4ac734(0x1b8)][_0x4ac734(0x1b7)](_0x243ef4['id']))return;const {id:_0x4d69f9}=_0x243ef4;let _0x28f1a3;_0x5d117b[_0x4ac734(0x11a)](_0x4d69f9)?_0x28f1a3=_0x5d117b['get'](_0x4d69f9):(_0x28f1a3=new _0x546630(),_0x5d117b[_0x4ac734(0x10e)](_0x4d69f9,_0x28f1a3),_0x28f1a3['pipe'](_0x2bca3c((_0xa8e20d=this[_0x4ac734(0x1ba)][_0x4ac734(0x16c)](xe))!=null?_0xa8e20d:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4ac734(0x15f)](_0x255a90=>{var _0x499fa8=_0x4ac734;this[_0x499fa8(0x145)][_0x499fa8(0x19b)]({'eventID':_0x39828a[_0x499fa8(0x15c)],'data':{'unitID':this['_unitID'],'operations':{[_0x255a90['id']]:{'id':_0x255a90['id'],'params':JSON[_0x499fa8(0x155)](_0x255a90['params'])}}}},this[_0x499fa8(0x186)]);})),_0x28f1a3[_0x4ac734(0x19c)](_0x243ef4);})),this[_0x593c9b(0x1b8)]['getInitialStates'](this[_0x593c9b(0x186)])[_0x593c9b(0x163)](_0x34ce6b=>this[_0x593c9b(0x145)][_0x593c9b(0x19b)]({'eventID':_0x39828a[_0x593c9b(0x15c)],'data':{'unitID':this[_0x593c9b(0x186)],'operations':{[_0x34ce6b['id']]:{'id':_0x34ce6b['id'],'params':JSON['stringify'](_0x34ce6b[_0x593c9b(0x178)])}}}},this[_0x593c9b(0x186)]));}[_0x43ad12(0x17f)](){var _0x37d488=_0x43ad12,_0x8ff1a4;this['_status$'][_0x37d488(0x19c)](_0x37d488(0x1a3)),(_0x8ff1a4=this[_0x37d488(0x19e)])==null||_0x8ff1a4[_0x37d488(0x148)](),this[_0x37d488(0x19e)]=null;}[_0x43ad12(0x14e)](){var _0x266cee=_0x43ad12,_0x5c3f17;(_0x5c3f17=this['_commandDisposable'])==null||_0x5c3f17['dispose'](),this[_0x266cee(0x13f)]['next'](_0x266cee(0x17b));}['_beIdle'](){var _0x1a8173=_0x43ad12,_0x37949e;this[_0x1a8173(0x13f)][_0x1a8173(0x19c)](_0x1a8173(0x1a3)),(_0x37949e=this[_0x1a8173(0x19e)])==null||_0x37949e['dispose'](),this['_commandDisposable']=null;}[_0x43ad12(0x182)](){var _0xcd28b6=_0x43ad12,_0x401bc0;this['_status$'][_0xcd28b6(0x19c)](_0xcd28b6(0x124)),(_0x401bc0=this[_0xcd28b6(0x19e)])==null||_0x401bc0['dispose']();}['_handleOperation'](_0x47440e){var _0x44809d=_0x43ad12;if([_0x44809d(0x192),_0x44809d(0x124),_0x44809d(0x135)]['includes'](this[_0x44809d(0x1a9)])||!_0x47440e[_0x44809d(0x14b)]['presenter']||_0x47440e['data'][_0x44809d(0x11b)]===this[_0x44809d(0x145)][_0x44809d(0x183)]())return;this[_0x44809d(0x1a9)]===_0x44809d(0x1a3)&&this[_0x44809d(0x14e)]();const _0x2741cb=_0x47440e[_0x44809d(0x14b)][_0x44809d(0x10d)];Object[_0x44809d(0x14a)](_0x2741cb)[_0x44809d(0x163)](_0x11cf94=>{var _0x27ca02=_0x44809d;this['_commandService'][_0x27ca02(0x1aa)](_0x11cf94['id'],_0x11cf94['params']?JSON['parse'](_0x11cf94['params']):null,{'fromCollab':!0x0});});}[_0x43ad12(0x111)](){var _0x11702b=_0x43ad12,_0x3c29cf;this['_status$'][_0x11702b(0x19c)](_0x11702b(0x135)),(_0x3c29cf=this['_commandDisposable'])==null||_0x3c29cf['dispose']();}[_0x43ad12(0x152)](){var _0x2c41ec=_0x43ad12;this[_0x2c41ec(0x13f)][_0x2c41ec(0x19c)](_0x2c41ec(0x1a3)),this[_0x2c41ec(0x1bb)]();}};C=Z([f(0x2,_0x13311c),f(0x3,_0x415909(L)),f(0x4,_0x4937f3)],C);function ye(){var _0x460f50=_0x43ad12;const _0x366375=_0x3aad55(m),_0xc85841=_0x3aad55(_0x149d48),_0x2dacd0=_0x52b777(()=>_0xc85841[_0x460f50(0x12a)](_0x33c666[_0x460f50(0x18e)]),void 0x0,!0x1,[]),[_0x2eeb27,_0x454562]=_0x13739e(null),[_0x2e0a01,_0x1fe1cd]=_0x13739e(h['IDLE']),_0x206f76=_0x5dd95c(null);return _0x57601b(()=>(_0x2dacd0&&_0x366375[_0x460f50(0x156)](_0x2dacd0[_0x460f50(0x1be)]())[_0x460f50(0x180)](_0x150fbe=>{var _0x3774f6=_0x460f50;_0x454562(_0x150fbe),_0x206f76['current']=_0x150fbe[_0x3774f6(0x131)][_0x3774f6(0x15f)](_0x47b192=>{_0x1fe1cd(_0x47b192);});}),()=>{var _0x5bdbc5=_0x460f50,_0x458b64;(_0x458b64=_0x206f76[_0x5bdbc5(0x179)])==null||_0x458b64[_0x5bdbc5(0x123)](),_0x206f76[_0x5bdbc5(0x179)]=null;}),[_0x2dacd0,_0x366375]),_0x2eeb27?_0x10c595(_0x75180f,{'align':_0x460f50(0x138),'disabled':_0x2e0a01===h[_0x460f50(0x12d)],'className':_0x460f50(0x139),'overlay':_0x10c595(Re,{'status':_0x2e0a01,'coordinator':_0x2eeb27}),'children':_0x10c595(_0x460f50(0x149),{'className':_0x5e4436('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2e0a01===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2e0a01!==h[_0x460f50(0x12d)]}),'type':'button','children':_0x10c595(B,{'className':_0x460f50(0x1b5)})})}):null;}function Re(_0x57817d){var _0x370bdf=_0x43ad12;const {status:_0x1950d9,coordinator:_0x5f5522}=_0x57817d;switch(_0x1950d9){case h['IDLE']:return _0x10c595(Pe,{'coordinator':_0x5f5522});case h[_0x370bdf(0x134)]:return _0x10c595(Ae,{'coordinator':_0x5f5522});case h[_0x370bdf(0x13b)]:return _0x10c595(Te,{'coordinator':_0x5f5522});case h['OFFLINE']:return _0x10c595(Fe,{});case h[_0x370bdf(0x184)]:return _0x10c595($e,{'coordinator':_0x5f5522});default:return null;}}function Pe(_0x2a2fe2){var _0x2172ce=_0x43ad12;const {coordinator:_0x2e5d4a}=_0x2a2fe2;return _0x2b145f(_0x5aa383,{'children':[_0x10c595('div',{'className':_0x2172ce(0x10f),'children':_0x2172ce(0x173)}),_0x10c595(_0x3a9d39,{'onClick':()=>_0x2e5d4a['tryStartPresenting'](),'children':_0x2172ce(0x196)})]});}function Ae(_0x427630){var _0xacca79=_0x43ad12;const {coordinator:_0x4c571e}=_0x427630;return _0x2b145f(_0x5aa383,{'children':[_0x10c595(_0xacca79(0x190),{'className':_0xacca79(0x10f),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x10c595(_0x3a9d39,{'onClick':()=>_0x4c571e[_0xacca79(0x14c)](),'children':'Stop\x20following'})]});}function Te(_0x23ef1a){var _0x4dc7fc=_0x43ad12;const {coordinator:_0x11d62e}=_0x23ef1a;return _0x2b145f(_0x5aa383,{'children':[_0x10c595(_0x4dc7fc(0x190),{'className':_0x4dc7fc(0x10f),'children':_0x4dc7fc(0x126)}),_0x10c595(_0x3a9d39,{'variant':'text','onClick':()=>_0x11d62e[_0x4dc7fc(0x1a2)](),'children':_0x4dc7fc(0x161)})]});}function $e(_0x33a1f0){var _0x293508=_0x43ad12;const {coordinator:_0x3f81c0}=_0x33a1f0;return _0x2b145f(_0x5aa383,{'children':[_0x10c595('div',{'className':_0x293508(0x10f),'children':_0x293508(0x174)}),_0x10c595(_0x3a9d39,{'variant':_0x293508(0x154),'onClick':()=>_0x3f81c0['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Fe(){var _0x42edf6=_0x43ad12;return _0x10c595(_0x5aa383,{'children':_0x42edf6(0x137)});}var He=Object[_0x43ad12(0x1b6)],je=(_0x508d6e,_0x76f076,_0xfb9d47,_0x597f21)=>{var _0xca4084=_0x43ad12;for(var _0x43f9fa=_0x597f21>0x1?void 0x0:_0x597f21?He(_0x76f076,_0xfb9d47):_0x76f076,_0x32de71=_0x508d6e[_0xca4084(0x185)]-0x1,_0xa3f41f;_0x32de71>=0x0;_0x32de71--)(_0xa3f41f=_0x508d6e[_0x32de71])&&(_0x43f9fa=_0xa3f41f(_0x43f9fa)||_0x43f9fa);return _0x43f9fa;},T=(_0x3de9d8,_0x432a49)=>(_0x287650,_0x5a9a49)=>_0x432a49(_0x287650,_0x5a9a49,_0x3de9d8);function _0x59c7(){var _0x5bbf20=['SAME_OPERATION_SHARE_INTERVAL','Start\x20following','_handleNewChangeSets','forEach','requireSession','setConfig','xlink:href','event$','children','LIVESHARE_TERMINATE','UNIVER_UNKNOWN','_commandService','getConfig','get','1719976EanUnq','_init','1923832COLdxK','1720xAiZjU','complete','Present\x20this\x20document','You\x27re\x20presenting\x20the\x20document','substring','delete','url(#$1','params','current','4pKGvIM','following','9BLVPZy','7304EemPpo','stopPresenting','_stopPresenting','then','from','_stopFollowing','getMemberID','PRESENTING','length','_unitID','6504880MpKkzb','_univerInstanceService','pipe','colorChannel1','find','propertyIsEnumerable','_presenter','UNIVER_SHEET','_startPresenting','div','LIVESHARE_NEW_HOST','presenting','override','2392482RtUvaV','_startLiveShareCoordinator','Start','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','onStarting','_collabSessionService','extend','send','next','hasOwnProperty','_commandDisposable','string','_mountLiveShare','className','startFollowing','idle','UniverIcon','IDLE','function','LIVESHARE_FETCH_OPERATIONS','concat','_status','executeCommand','assign','none','apply','includes','init','icon','use','getValue','path','_config','univer-size-4','getOwnPropertyDescriptor','shouldShareOperation','_liveShareService','replace','_configService','_fetchOperations','indexOf','_injector','getUnitId','displayName','attrs','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','ONLINE','NEW_CHANGESETS','operations','set','univer-mb-3\x20univer-w-full\x20univer-text-sm','toString','_handleOffline','symbol','idSuffix','dispose$','_reporters','registerSharedOperation','mutations','_handleOperation','entries','has','presenter','map','tag','1em','_beIdle','onCommandExecuted','pluginName','fill','unsubscribe','not-following','prototype','You\x27re\x20not\x20following\x20the\x20presenter','defs','defineProperty','_handleTerminate','getCurrentTypeOfUnit$','disposeWithMe','sessionStatus$','OFFLINE','_entities','call','reverse','status$','_sharedOperations','getOwnPropertySymbols','FOLLOWING','offline','univerjs-icon\x20univerjs-icon-','You\x27are\x20offline.','end','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','add','NOT_FOLLOWING','random','LIVESHARE_REQUEST_HOST','evenodd','_status$','http://www.w3.org/2000/svg','OPERATION','currentColor','7ycYBsd','live-share-icon','_collabSession','registerComponent','type','dispose','button','values','data','stopFollowing','6955afPYKR','_startFollowing','svg','mask','getInitialStates','_handleOnline','memberID','default','stringify','getLiveShareCoordinator','_uiPartsService','registerInitialStateReporter','_handleNewHost','trim','16005ruNFTS','LIVESHARE_OPERATION','getTypeOfUnitAdded$','getTypeOfUnitDisposed$','subscribe'];_0x59c7=function(){return _0x5bbf20;};return _0x59c7();}let I=class extends _0x1b4c3b{constructor(_0x3c5285,_0x589df5){var _0x5ab782=_0x43ad12;super(),this[_0x5ab782(0x1bd)]=_0x3c5285,this[_0x5ab782(0x157)]=_0x589df5,this[_0x5ab782(0x1a0)]();}['_mountLiveShare'](){var _0xc12a86=_0x43ad12;this[_0xc12a86(0x12b)](this[_0xc12a86(0x157)][_0xc12a86(0x146)](_0x3c9c42['HEADER_MENU'],()=>_0x1896e1(ye,this['_injector'])));}};I=je([T(0x0,_0x415909(_0x3fc7f2)),T(0x1,_0x3d81bf)],I);const Ue='live-share.config',$={};var Ve=Object['getOwnPropertyDescriptor'],Me=(_0x5c04f3,_0x1682c0,_0x31924b,_0x3f51db)=>{for(var _0xd7c9b0=_0x3f51db>0x1?void 0x0:_0x3f51db?Ve(_0x1682c0,_0x31924b):_0x1682c0,_0x44252e=_0x5c04f3['length']-0x1,_0x5e068a;_0x44252e>=0x0;_0x44252e--)(_0x5e068a=_0x5c04f3[_0x44252e])&&(_0xd7c9b0=_0x5e068a(_0xd7c9b0)||_0xd7c9b0);return _0xd7c9b0;},ke=(_0x344af6,_0x5c7f4f)=>(_0x148486,_0x4907f3)=>_0x5c7f4f(_0x148486,_0x4907f3,_0x344af6);let b=class extends _0x1b4c3b{constructor(_0x329840){var _0x582655=_0x43ad12;super(),this['_liveShareService']=_0x329840,this[_0x582655(0x16f)]();}[_0x43ad12(0x16f)](){var _0x5def39=_0x43ad12;[_0xb0b9cb['id'],_0x2b4266['id'],_0x82b7b3['id']][_0x5def39(0x163)](_0x5742fc=>{var _0x12275e=_0x5def39;this[_0x12275e(0x12b)](this[_0x12275e(0x1b8)][_0x12275e(0x116)](_0x5742fc));});}};b=Me([ke(0x0,_0x415909(L))],b);var Ge=Object[_0x43ad12(0x128)],We=Object[_0x43ad12(0x1b6)],Ye=(_0x215cb6,_0x2c906f,_0x2ce248)=>_0x2c906f in _0x215cb6?Ge(_0x215cb6,_0x2c906f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ce248}):_0x215cb6[_0x2c906f]=_0x2ce248,Be=(_0x12f9e1,_0x1f0d31,_0x512454,_0x5a7f64)=>{var _0x3110a4=_0x43ad12;for(var _0x19d988=_0x5a7f64>0x1?void 0x0:_0x5a7f64?We(_0x1f0d31,_0x512454):_0x1f0d31,_0x1bafe5=_0x12f9e1[_0x3110a4(0x185)]-0x1,_0x5925da;_0x1bafe5>=0x0;_0x1bafe5--)(_0x5925da=_0x12f9e1[_0x1bafe5])&&(_0x19d988=_0x5925da(_0x19d988)||_0x19d988);return _0x19d988;},F=(_0x32496f,_0x179d8b)=>(_0x1e2084,_0x1cda7f)=>_0x179d8b(_0x1e2084,_0x1cda7f,_0x32496f),J=(_0x12c914,_0x2aa623,_0x2daeba)=>Ye(_0x12c914,typeof _0x2aa623!=_0x43ad12(0x112)?_0x2aa623+'':_0x2aa623,_0x2daeba);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x36a567{constructor(_0x4dfdb5=$,_0x446f4f,_0x44cfba){var _0x4c2ac8=_0x43ad12;super(),this['_config']=_0x4dfdb5,this[_0x4c2ac8(0x1bd)]=_0x446f4f,this[_0x4c2ac8(0x1ba)]=_0x44cfba;const {..._0xa95df4}=_0x567ad9({},$,this[_0x4c2ac8(0x1b4)]);this['_configService'][_0x4c2ac8(0x165)](Ue,_0xa95df4);}[_0x43ad12(0x198)](){var _0x5ffbc6=_0x43ad12;_0x540bc8(this[_0x5ffbc6(0x1bd)],_0x14ee17([[L],[m],[b],[I]],this[_0x5ffbc6(0x1b4)][_0x5ffbc6(0x193)])),_0x41f7e0(this['_injector'],[[b]]);}['onRendered'](){_0x41f7e0(this['_injector'],[[I]]);}};J(O,_0x43ad12(0x147),_0x33c666[_0x43ad12(0x16a)]),J(O,_0x43ad12(0x121),Ze),O=Be([_0x1b3cbd(_0x485a8f),F(0x1,_0x415909(_0x3fc7f2)),F(0x2,_0x13311c)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x181387=_0x5244;(function(_0xc27ffd,_0x12ab18){var _0xbefd0a=_0x5244,_0xa037be=_0xc27ffd();while(!![]){try{var _0x511bc0=parseInt(_0xbefd0a(0x1b1))/0x1+-parseInt(_0xbefd0a(0x1c8))/0x2+parseInt(_0xbefd0a(0x19a))/0x3+parseInt(_0xbefd0a(0x199))/0x4*(parseInt(_0xbefd0a(0x1bb))/0x5)+parseInt(_0xbefd0a(0x1da))/0x6*(-parseInt(_0xbefd0a(0x1b8))/0x7)+-parseInt(_0xbefd0a(0x13c))/0x8*(-parseInt(_0xbefd0a(0x15f))/0x9)+-parseInt(_0xbefd0a(0x198))/0xa*(parseInt(_0xbefd0a(0x1b3))/0xb);if(_0x511bc0===_0x12ab18)break;else _0xa037be['push'](_0xa037be['shift']());}catch(_0x323d22){_0xa037be['push'](_0xa037be['shift']());}}}(_0x4d26,0x5611e));var q=Object[_0x181387(0x1c5)],z=(_0x42c765,_0x34fc17,_0x59a000)=>_0x34fc17 in _0x42c765?q(_0x42c765,_0x34fc17,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x59a000}):_0x42c765[_0x34fc17]=_0x59a000,d=(_0x544352,_0x16d2da,_0x3c54f1)=>z(_0x544352,typeof _0x16d2da!=_0x181387(0x169)?_0x16d2da+'':_0x16d2da,_0x3c54f1);import{Disposable as _0xb4423d,toDisposable as _0x5e0149,IUniverInstanceService as _0x1d3c87,Inject as _0x19b8a0,Injector as _0x340b01,IConfigService as _0x5f525b,ICommandService as _0x4b3389,RxDisposable as _0x379150,UniverInstanceType as _0x3d14a2,DisposableCollection as _0x14b7d5,CommandType as _0x586723,DependentOn as _0x498526,Plugin as _0x51df73,merge as _0xd6b33,registerDependencies as _0x1050b5,mergeOverrideWithDependencies as _0x4379af,touchDependencies as _0x422eb9}from'@univerjs/core';import{useDependency as _0x279fce,useObservable as _0xd9f531,IUIPartsService as _0x59ff15,BuiltInUIPart as _0x8a0539,connectInjector as _0x401def}from'@univerjs/ui';import{jsx as _0x291591,jsxs as _0x312e4c,Fragment as _0x1bf877}from'react/jsx-runtime';import{Dropdown as _0x40e762,clsx as _0x508fea,Button as _0x19249c}from'@univerjs/design';import{forwardRef as _0x190d04,useRef as _0x15d217,createElement as _0x4c53b7,useState as _0x701ff9,useEffect as _0x5f411f}from'react';import{CollaborationEvent as _0x18f536,parseProtocolChangeset as _0x2d9b95}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x106a09,SessionStatus as _0x35e16e,UniverCollaborationClientPlugin as _0x204b9a}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x598f74,SetWorksheetActiveOperation as _0x4dceb2}from'@univerjs/sheets';import{BehaviorSubject as _0x108541,Subject as _0x8ae165}from'rxjs';import{takeUntil as _0x203c69,throttleTime as _0x573e8c}from'rxjs/operators';import{SetZoomRatioOperation as _0x4d70b8,SetScrollOperation as _0x2991d1}from'@univerjs/sheets-ui';var c=function(){var _0x104d6c=_0x181387;return c=Object['assign']||function(_0x169026){var _0x4ce8db=_0x5244;for(var _0x362adc,_0x2d286e=0x1,_0x4be252=arguments[_0x4ce8db(0x178)];_0x2d286e<_0x4be252;_0x2d286e++){_0x362adc=arguments[_0x2d286e];for(var _0x4d80bd in _0x362adc)Object['prototype'][_0x4ce8db(0x179)]['call'](_0x362adc,_0x4d80bd)&&(_0x169026[_0x4d80bd]=_0x362adc[_0x4d80bd]);}return _0x169026;},c[_0x104d6c(0x170)](this,arguments);},Oe=function(_0x1ef6cb,_0x1ba05b){var _0x8d10f3=_0x181387,_0x77a537={};for(var _0x170fa5 in _0x1ef6cb)Object[_0x8d10f3(0x149)][_0x8d10f3(0x179)][_0x8d10f3(0x1ce)](_0x1ef6cb,_0x170fa5)&&_0x1ba05b['indexOf'](_0x170fa5)<0x0&&(_0x77a537[_0x170fa5]=_0x1ef6cb[_0x170fa5]);if(_0x1ef6cb!=null&&typeof Object['getOwnPropertySymbols']==_0x8d10f3(0x1d8)){for(var _0x4c8699=0x0,_0x170fa5=Object[_0x8d10f3(0x1e3)](_0x1ef6cb);_0x4c8699<_0x170fa5[_0x8d10f3(0x178)];_0x4c8699++)_0x1ba05b['indexOf'](_0x170fa5[_0x4c8699])<0x0&&Object[_0x8d10f3(0x149)][_0x8d10f3(0x1aa)][_0x8d10f3(0x1ce)](_0x1ef6cb,_0x170fa5[_0x4c8699])&&(_0x77a537[_0x170fa5[_0x4c8699]]=_0x1ef6cb[_0x170fa5[_0x4c8699]]);}return _0x77a537;},W=_0x190d04(function(_0x2c0fb1,_0x41a4c3){var _0x529883=_0x181387,_0x46fa0d=_0x2c0fb1[_0x529883(0x18d)],_0x2e2eac=_0x2c0fb1['id'],_0x5c1230=_0x2c0fb1[_0x529883(0x1d2)],_0x2bebd8=_0x2c0fb1['extend'],_0x2561d7=Oe(_0x2c0fb1,[_0x529883(0x18d),'id','className','extend']),_0x4ad339='univerjs-icon\x20univerjs-icon-'[_0x529883(0x177)](_0x2e2eac,'\x20')['concat'](_0x5c1230||'')[_0x529883(0x1d7)](),_0x406328=_0x15d217('_'[_0x529883(0x177)](Ne()));return Y(_0x46fa0d,''[_0x529883(0x177)](_0x2e2eac),{'defIds':_0x46fa0d[_0x529883(0x1b0)],'idSuffix':_0x406328[_0x529883(0x1a0)]},c({'ref':_0x41a4c3,'className':_0x4ad339},_0x2561d7),_0x2bebd8);});function Y(_0x25cb32,_0x37d599,_0x415d74,_0x23ecc6,_0x43cabd){var _0x3f33ff=_0x181387;return _0x4c53b7(_0x25cb32[_0x3f33ff(0x147)],c(c({'key':_0x37d599},Ee(_0x25cb32,_0x415d74,_0x43cabd)),_0x23ecc6),(we(_0x25cb32,_0x415d74)[_0x3f33ff(0x1db)]||[])['map'](function(_0x3dd05c,_0x25c447){var _0x1af87f=_0x3f33ff;return Y(_0x3dd05c,''[_0x1af87f(0x177)](_0x37d599,'-')['concat'](_0x25cb32[_0x1af87f(0x147)],'-')[_0x1af87f(0x177)](_0x25c447),_0x415d74,void 0x0,_0x43cabd);}));}function Ee(_0x2df4b2,_0x773496,_0x4352e7){var _0x1c8d61=_0x181387,_0x3ad030=c({},_0x2df4b2[_0x1c8d61(0x191)]);_0x4352e7!=null&&_0x4352e7[_0x1c8d61(0x1ab)]&&_0x3ad030[_0x1c8d61(0x156)]==='colorChannel1'&&(_0x3ad030[_0x1c8d61(0x156)]=_0x4352e7['colorChannel1']),_0x2df4b2['tag']===_0x1c8d61(0x15e)&&_0x3ad030['id']&&(_0x3ad030['id']=_0x3ad030['id']+_0x773496[_0x1c8d61(0x164)]),Object['entries'](_0x3ad030)[_0x1c8d61(0x186)](function(_0x1ee3a3){var _0x3f1db8=_0x1c8d61,_0xd0eb11=_0x1ee3a3[0x0],_0x597a0c=_0x1ee3a3[0x1];_0xd0eb11===_0x3f1db8(0x15e)&&typeof _0x597a0c==_0x3f1db8(0x190)&&(_0x3ad030[_0xd0eb11]=_0x597a0c[_0x3f1db8(0x152)](/url\(#(.*)\)/,_0x3f1db8(0x13b)[_0x3f1db8(0x177)](_0x773496[_0x3f1db8(0x164)],')')));});var _0x392b44=_0x773496[_0x1c8d61(0x1b0)];return!_0x392b44||_0x392b44['length']===0x0||(_0x2df4b2[_0x1c8d61(0x147)]===_0x1c8d61(0x14c)&&_0x3ad030[_0x1c8d61(0x1d5)]&&(_0x3ad030[_0x1c8d61(0x1d5)]=_0x3ad030[_0x1c8d61(0x1d5)]+_0x773496[_0x1c8d61(0x164)]),Object[_0x1c8d61(0x142)](_0x3ad030)[_0x1c8d61(0x186)](function(_0x8e3ffe){var _0x2b7bee=_0x1c8d61,_0x155910=_0x8e3ffe[0x0],_0x7e5772=_0x8e3ffe[0x1];typeof _0x7e5772==_0x2b7bee(0x190)&&(_0x3ad030[_0x155910]=_0x7e5772[_0x2b7bee(0x152)](/url\(#(.*)\)/,_0x2b7bee(0x13b)[_0x2b7bee(0x177)](_0x773496[_0x2b7bee(0x164)],')')));})),_0x3ad030;}function we(_0x4bb924,_0x2b3619){var _0x10c281=_0x181387,_0x76e881,_0x4a5851=_0x2b3619['defIds'];return!_0x4a5851||_0x4a5851['length']===0x0?_0x4bb924:_0x4bb924[_0x10c281(0x147)]==='defs'&&(!((_0x76e881=_0x4bb924[_0x10c281(0x1db)])===null||_0x76e881===void 0x0)&&_0x76e881[_0x10c281(0x178)])?c(c({},_0x4bb924),{'children':_0x4bb924['children'][_0x10c281(0x1d9)](function(_0x5047da){var _0x42c6b3=_0x10c281;return typeof _0x5047da[_0x42c6b3(0x191)]['id']==_0x42c6b3(0x190)&&_0x4a5851&&_0x4a5851[_0x42c6b3(0x138)](_0x5047da[_0x42c6b3(0x191)]['id'])?c(c({},_0x5047da),{'attrs':c(c({},_0x5047da[_0x42c6b3(0x191)]),{'id':_0x5047da[_0x42c6b3(0x191)]['id']+_0x2b3619['idSuffix']})}):_0x5047da;})}):_0x4bb924;}function Ne(){var _0x201e5b=_0x181387;return Math[_0x201e5b(0x1be)]()['toString'](0x24)[_0x201e5b(0x19b)](0x2,0x8);}W['displayName']='UniverIcon';var Ce={'tag':_0x181387(0x1cd),'attrs':{'xmlns':_0x181387(0x181),'fill':'none','viewBox':_0x181387(0x187),'width':_0x181387(0x148),'height':_0x181387(0x148)},'children':[{'tag':'path','attrs':{'fill':_0x181387(0x18a),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x181387(0x150),'attrs':{'fill':_0x181387(0x18a),'d':_0x181387(0x188),'fillRule':'evenodd','clipRule':_0x181387(0x182)}}]},B=_0x190d04(function(_0x1a46b0,_0x15294d){var _0x388a9d=_0x181387;return _0x4c53b7(W,Object['assign']({},_0x1a46b0,{'id':_0x388a9d(0x13e),'ref':_0x15294d,'icon':Ce}));});B[_0x181387(0x1d6)]=_0x181387(0x173);class L extends _0xb4423d{constructor(){var _0x53cfcb=_0x181387;super(...arguments),d(this,_0x53cfcb(0x167),new Set()),d(this,_0x53cfcb(0x1dc),new Set());}[_0x181387(0x175)](_0x58fc0a){var _0x5e37a3=_0x181387;return this[_0x5e37a3(0x167)]['add'](_0x58fc0a),_0x5e0149(()=>this[_0x5e37a3(0x167)][_0x5e37a3(0x1d0)](_0x58fc0a));}[_0x181387(0x15c)](_0x2270b6){var _0x4b5d0e=_0x181387;return this[_0x4b5d0e(0x1dc)][_0x4b5d0e(0x1b6)](_0x2270b6),_0x5e0149(()=>this[_0x4b5d0e(0x1dc)][_0x4b5d0e(0x1d0)](_0x2270b6));}['shouldShareOperation'](_0x42ac0d){var _0x1cd4b8=_0x181387;return this[_0x1cd4b8(0x167)][_0x1cd4b8(0x189)](_0x42ac0d);}[_0x181387(0x17a)](_0x5f2719){var _0xdf5c24=_0x181387;return Array[_0xdf5c24(0x1e1)](this['_reporters'])[_0xdf5c24(0x1d9)](_0xfdac59=>_0xfdac59(_0x5f2719));}}var De=Object[_0x181387(0x193)],Z=(_0x4ae96c,_0x12bfce,_0x33ed9b,_0x4c37d5)=>{var _0x51e47b=_0x181387;for(var _0x219f81=_0x4c37d5>0x1?void 0x0:_0x4c37d5?De(_0x12bfce,_0x33ed9b):_0x12bfce,_0x35e5d1=_0x4ae96c[_0x51e47b(0x178)]-0x1,_0x1c0fa3;_0x35e5d1>=0x0;_0x35e5d1--)(_0x1c0fa3=_0x4ae96c[_0x35e5d1])&&(_0x219f81=_0x1c0fa3(_0x219f81)||_0x219f81);return _0x219f81;},f=(_0x51ffa0,_0x1e8c4d)=>(_0x363ac5,_0x387fb1)=>_0x1e8c4d(_0x363ac5,_0x387fb1,_0x51ffa0);let m=class extends _0x379150{constructor(_0x456523,_0x28ae25,_0x203c1f){var _0xcb4437=_0x181387;super(),d(this,_0xcb4437(0x1c7),new Map()),(this[_0xcb4437(0x1e5)]=_0x456523,this['_injector']=_0x28ae25,this[_0xcb4437(0x17e)]=_0x203c1f,this[_0xcb4437(0x197)]());}async[_0x181387(0x19d)](_0x5dd37c){var _0x25549e=_0x181387;return this[_0x25549e(0x1c7)][_0x25549e(0x189)](_0x5dd37c)||await this[_0x25549e(0x163)](_0x5dd37c),this[_0x25549e(0x1c7)][_0x25549e(0x13a)](_0x5dd37c);}['_init'](){var _0x2cfca8=_0x181387;this[_0x2cfca8(0x1e5)]['getTypeOfUnitAdded$'](_0x3d14a2[_0x2cfca8(0x1bf)])[_0x2cfca8(0x1a4)](_0x203c69(this[_0x2cfca8(0x1bd)]))[_0x2cfca8(0x18f)](async _0x462de0=>{var _0x3264ad=_0x2cfca8;const _0x539761=_0x462de0[_0x3264ad(0x1a6)]();this[_0x3264ad(0x1c7)]['has'](_0x539761)||this[_0x3264ad(0x163)](_0x539761);}),this['_univerInstanceService'][_0x2cfca8(0x166)](_0x3d14a2[_0x2cfca8(0x1bf)])[_0x2cfca8(0x1a4)](_0x203c69(this[_0x2cfca8(0x1bd)]))[_0x2cfca8(0x18f)](_0x4d1c2e=>{var _0x592499=_0x2cfca8;const _0x581b86=_0x4d1c2e['getUnitId'](),_0x1eafb2=this[_0x592499(0x1c7)][_0x592499(0x13a)](_0x581b86);_0x1eafb2==null||_0x1eafb2[_0x592499(0x183)]();});}async[_0x181387(0x163)](_0x714915){var _0x17471b=_0x181387;const _0x4ed7ba=await this['_collabSessionService'][_0x17471b(0x137)](_0x714915),_0x59dba9=this[_0x17471b(0x146)][_0x17471b(0x1ac)](C,_0x714915,_0x4ed7ba);return _0x59dba9[_0x17471b(0x141)](),this['_entities']['set'](_0x714915,_0x59dba9),_0x59dba9;}};m=Z([f(0x0,_0x1d3c87),f(0x1,_0x19b8a0(_0x340b01)),f(0x2,_0x19b8a0(_0x106a09))],m);var h=(_0x5b607d=>(_0x5b607d[_0x181387(0x19f)]='offline',_0x5b607d[_0x181387(0x1d4)]='idle',_0x5b607d['FOLLOWING']=_0x181387(0x145),_0x5b607d[_0x181387(0x14b)]=_0x181387(0x185),_0x5b607d['PRESENTING']=_0x181387(0x14d),_0x5b607d))(h||{});const xe=_0x181387(0x159),Le=0xc8;let C=class extends _0x379150{constructor(_0x847543,_0x9aef47,_0xa1063e,_0x23de10,_0x4066d8){var _0x2ada3e=_0x181387;super(),d(this,_0x2ada3e(0x1ca),new _0x108541(_0x2ada3e(0x1c2))),d(this,_0x2ada3e(0x192),this['_status$'][_0x2ada3e(0x151)]()),d(this,_0x2ada3e(0x197),!0x1),d(this,_0x2ada3e(0x143),null),d(this,_0x2ada3e(0x1d3),null),(this['_unitID']=_0x847543,this[_0x2ada3e(0x184)]=_0x9aef47,this[_0x2ada3e(0x140)]=_0xa1063e,this['_liveShareService']=_0x23de10,this['_commandService']=_0x4066d8);}get[_0x181387(0x155)](){var _0x5555ad=_0x181387;return this[_0x5555ad(0x1ca)]['getValue']();}[_0x181387(0x183)](){var _0x35ad49=_0x181387,_0x1d0444;(_0x1d0444=this[_0x35ad49(0x143)])==null||_0x1d0444[_0x35ad49(0x183)](),this[_0x35ad49(0x1ca)]['next']('idle'),this['_status$'][_0x35ad49(0x1dd)]();}[_0x181387(0x141)](){var _0x5bb9d7=_0x181387;this['_init']||(this[_0x5bb9d7(0x197)]=!0x0,this[_0x5bb9d7(0x184)][_0x5bb9d7(0x1a8)]['pipe'](_0x203c69(this['dispose$']))['subscribe'](_0x17f5a2=>{var _0x3ab379=_0x5bb9d7;switch(_0x17f5a2){case _0x35e16e[_0x3ab379(0x19f)]:this['_handleOffline']();break;case _0x35e16e[_0x3ab379(0x1a9)]:this[_0x3ab379(0x17d)]();break;}}),this[_0x5bb9d7(0x184)][_0x5bb9d7(0x16a)]['pipe'](_0x203c69(this[_0x5bb9d7(0x1bd)]))[_0x5bb9d7(0x18f)](_0x3f6543=>{var _0x53682e=_0x5bb9d7;const {eventID:_0x382dc9}=_0x3f6543;switch(_0x382dc9){case _0x18f536[_0x53682e(0x14a)]:this[_0x53682e(0x1ba)](_0x3f6543);break;case _0x18f536[_0x53682e(0x18e)]:this[_0x53682e(0x1b2)](_0x3f6543);break;case _0x18f536[_0x53682e(0x1c4)]:this[_0x53682e(0x136)]();break;case _0x18f536[_0x53682e(0x1c1)]:this['_handleNewChangeSets'](_0x3f6543);break;}}));}[_0x181387(0x1a2)](){var _0x535a27=_0x181387;this[_0x535a27(0x184)][_0x535a27(0x17c)]({'eventID':_0x18f536[_0x535a27(0x144)],'data':{'unitID':this[_0x535a27(0x1cf)],'userID':this[_0x535a27(0x184)][_0x535a27(0x18c)]()}},this[_0x535a27(0x1cf)]);}[_0x181387(0x174)](){var _0x59ff97=_0x181387;this[_0x59ff97(0x155)]===_0x59ff97(0x14d)&&(this[_0x59ff97(0x1ca)]['next'](_0x59ff97(0x1c2)),this[_0x59ff97(0x184)][_0x59ff97(0x17c)]({'eventID':_0x18f536[_0x59ff97(0x1c4)],'data':{'unitID':this[_0x59ff97(0x1cf)]}},this['_unitID']));}[_0x181387(0x180)](){var _0x262e5e=_0x181387;this['_status']===_0x262e5e(0x185)&&(this['_status$'][_0x262e5e(0x16f)]('following'),this[_0x262e5e(0x17b)]());}[_0x181387(0x15a)](){var _0x43e6a8=_0x181387;this['_status']===_0x43e6a8(0x145)&&this[_0x43e6a8(0x1bc)]();}[_0x181387(0x1ba)](_0x1cbdab){var _0x96e490=_0x181387;const {presenter:_0x40a471}=_0x1cbdab['data'],_0x487d8e=this['_collabSession'][_0x96e490(0x18c)]();this[_0x96e490(0x1d3)]=_0x40a471,_0x40a471===_0x487d8e?(this[_0x96e490(0x1bc)](),this[_0x96e490(0x13d)]()):this[_0x96e490(0x155)]!==_0x96e490(0x185)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x181387(0x157)](){var _0x32d263=_0x181387;const _0x363b32={'eventID':_0x18f536[_0x32d263(0x15b)]};this[_0x32d263(0x184)][_0x32d263(0x17c)](_0x363b32,this['_unitID']);}['_handleTerminate'](){var _0x1f55d0=_0x181387;this['_presenter']=null,this['_status']!==_0x1f55d0(0x14d)&&this['_beIdle']();}[_0x181387(0x1c0)](_0x2e90a5){var _0x3d22fd=_0x181387;if(this[_0x3d22fd(0x155)]===_0x3d22fd(0x145)&&this[_0x3d22fd(0x1d3)]===_0x2e90a5[_0x3d22fd(0x16b)][_0x3d22fd(0x139)]){const _0x441832=_0x2d9b95(_0x2e90a5[_0x3d22fd(0x16b)])[_0x3d22fd(0x161)]['reverse']()[_0x3d22fd(0x194)](_0x5130e3=>_0x5130e3['id']===_0x598f74['id']);if(_0x441832){const _0x564608=_0x441832[_0x3d22fd(0x158)]['unitId'],_0x574823=_0x441832['params'][_0x3d22fd(0x16e)]['id'];setTimeout(()=>{var _0x139f8b=_0x3d22fd;this[_0x139f8b(0x1e0)]['executeCommand'](_0x4dceb2['id'],{'unitId':_0x564608,'subUnitId':_0x574823},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x4fec86=_0x181387;this[_0x4fec86(0x1ca)][_0x4fec86(0x16f)](_0x4fec86(0x14d));const _0x58973d=new Map(),_0x1ecbc7=this[_0x4fec86(0x143)]=new _0x14b7d5();_0x1ecbc7[_0x4fec86(0x1b6)](_0x5e0149(()=>{var _0x5d2394=_0x4fec86;_0x58973d[_0x5d2394(0x186)](_0x31ed57=>_0x31ed57[_0x5d2394(0x1dd)]()),_0x58973d[_0x5d2394(0x1e2)]();})),_0x1ecbc7[_0x4fec86(0x1b6)](this['_commandService'][_0x4fec86(0x19c)](_0x120996=>{var _0x4f1840=_0x4fec86,_0x1883b3;if(_0x120996[_0x4f1840(0x1b9)]!==_0x586723[_0x4f1840(0x154)]||!this['_liveShareService'][_0x4f1840(0x176)](_0x120996['id']))return;const {id:_0x3a6513}=_0x120996;let _0x3bf11f;_0x58973d[_0x4f1840(0x189)](_0x3a6513)?_0x3bf11f=_0x58973d[_0x4f1840(0x13a)](_0x3a6513):(_0x3bf11f=new _0x8ae165(),_0x58973d['set'](_0x3a6513,_0x3bf11f),_0x3bf11f[_0x4f1840(0x1a4)](_0x573e8c((_0x1883b3=this[_0x4f1840(0x140)][_0x4f1840(0x1b4)](xe))!=null?_0x1883b3:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x49cb64=>{var _0x5ec7ae=_0x4f1840;this[_0x5ec7ae(0x184)]['send']({'eventID':_0x18f536['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x49cb64['id']]:{'id':_0x49cb64['id'],'params':JSON['stringify'](_0x49cb64[_0x5ec7ae(0x158)])}}}},this[_0x5ec7ae(0x1cf)]);})),_0x3bf11f[_0x4f1840(0x16f)](_0x120996);})),this[_0x4fec86(0x19e)]['getInitialStates'](this[_0x4fec86(0x1cf)])[_0x4fec86(0x186)](_0xf94d8=>this[_0x4fec86(0x184)][_0x4fec86(0x17c)]({'eventID':_0x18f536['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4fec86(0x1cf)],'operations':{[_0xf94d8['id']]:{'id':_0xf94d8['id'],'params':JSON[_0x4fec86(0x195)](_0xf94d8['params'])}}}},this[_0x4fec86(0x1cf)]));}[_0x181387(0x1d1)](){var _0x170f11=_0x181387,_0xe17cd3;this['_status$'][_0x170f11(0x16f)]('idle'),(_0xe17cd3=this['_commandDisposable'])==null||_0xe17cd3[_0x170f11(0x183)](),this[_0x170f11(0x143)]=null;}[_0x181387(0x17b)](){var _0x3417ad=_0x181387,_0x4124df;(_0x4124df=this[_0x3417ad(0x143)])==null||_0x4124df[_0x3417ad(0x183)](),this[_0x3417ad(0x1ca)][_0x3417ad(0x16f)](_0x3417ad(0x145));}['_beIdle'](){var _0x5ca409=_0x181387,_0x419194;this[_0x5ca409(0x1ca)][_0x5ca409(0x16f)](_0x5ca409(0x1c2)),(_0x419194=this['_commandDisposable'])==null||_0x419194['dispose'](),this[_0x5ca409(0x143)]=null;}[_0x181387(0x1bc)](){var _0x385822=_0x181387,_0x15d342;this[_0x385822(0x1ca)]['next'](_0x385822(0x185)),(_0x15d342=this[_0x385822(0x143)])==null||_0x15d342[_0x385822(0x183)]();}[_0x181387(0x1b2)](_0x1734d9){var _0x23b6f5=_0x181387;if([_0x23b6f5(0x14d),_0x23b6f5(0x185),_0x23b6f5(0x1a3)][_0x23b6f5(0x138)](this[_0x23b6f5(0x155)])||!_0x1734d9[_0x23b6f5(0x16b)][_0x23b6f5(0x165)]||_0x1734d9[_0x23b6f5(0x16b)][_0x23b6f5(0x165)]===this[_0x23b6f5(0x184)]['getMemberID']())return;this[_0x23b6f5(0x155)]===_0x23b6f5(0x1c2)&&this[_0x23b6f5(0x17b)]();const _0x1b0271=_0x1734d9[_0x23b6f5(0x16b)]['operations'];Object[_0x23b6f5(0x1b7)](_0x1b0271)[_0x23b6f5(0x186)](_0x3c047a=>{var _0x3ec457=_0x23b6f5;this[_0x3ec457(0x1e0)]['executeCommand'](_0x3c047a['id'],_0x3c047a['params']?JSON[_0x3ec457(0x1de)](_0x3c047a[_0x3ec457(0x158)]):null,{'fromCollab':!0x0});});}[_0x181387(0x1c9)](){var _0x50da63=_0x181387,_0x53750c;this[_0x50da63(0x1ca)]['next']('offline'),(_0x53750c=this['_commandDisposable'])==null||_0x53750c[_0x50da63(0x183)]();}[_0x181387(0x17d)](){var _0x347458=_0x181387;this['_status$']['next'](_0x347458(0x1c2)),this[_0x347458(0x157)]();}};C=Z([f(0x2,_0x5f525b),f(0x3,_0x19b8a0(L)),f(0x4,_0x4b3389)],C);function ye(){var _0x16c89f=_0x181387;const _0xe9d7a9=_0x279fce(m),_0x157dd0=_0x279fce(_0x1d3c87),_0x256a06=_0xd9f531(()=>_0x157dd0[_0x16c89f(0x1a5)](_0x3d14a2[_0x16c89f(0x1bf)]),void 0x0,!0x1,[]),[_0x5ede85,_0x3b689c]=_0x701ff9(null),[_0x58aca6,_0x1792db]=_0x701ff9(h['IDLE']),_0x24673f=_0x15d217(null);return _0x5f411f(()=>(_0x256a06&&_0xe9d7a9[_0x16c89f(0x19d)](_0x256a06[_0x16c89f(0x1a6)]())[_0x16c89f(0x1c3)](_0x18d7cf=>{var _0x5100b3=_0x16c89f;_0x3b689c(_0x18d7cf),_0x24673f[_0x5100b3(0x1a0)]=_0x18d7cf['status$'][_0x5100b3(0x18f)](_0x1ea568=>{_0x1792db(_0x1ea568);});}),()=>{var _0x1c9b06=_0x16c89f,_0x484f6f;(_0x484f6f=_0x24673f['current'])==null||_0x484f6f[_0x1c9b06(0x160)](),_0x24673f[_0x1c9b06(0x1a0)]=null;}),[_0x256a06,_0xe9d7a9]),_0x5ede85?_0x291591(_0x40e762,{'align':'end','disabled':_0x58aca6===h['OFFLINE'],'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':_0x291591(Re,{'status':_0x58aca6,'coordinator':_0x5ede85}),'children':_0x291591(_0x16c89f(0x16c),{'className':_0x508fea(_0x16c89f(0x13f),{'univer-cursor-not-allowed':_0x58aca6===h[_0x16c89f(0x19f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x58aca6!==h[_0x16c89f(0x19f)]}),'type':_0x16c89f(0x16c),'children':_0x291591(B,{'className':_0x16c89f(0x1b5)})})}):null;}function Re(_0x27b483){var _0x1c123f=_0x181387;const {status:_0x5ba908,coordinator:_0x453a17}=_0x27b483;switch(_0x5ba908){case h[_0x1c123f(0x1d4)]:return _0x291591(Pe,{'coordinator':_0x453a17});case h['FOLLOWING']:return _0x291591(Ae,{'coordinator':_0x453a17});case h[_0x1c123f(0x14b)]:return _0x291591(Te,{'coordinator':_0x453a17});case h['OFFLINE']:return _0x291591(Fe,{});case h[_0x1c123f(0x1cb)]:return _0x291591($e,{'coordinator':_0x453a17});default:return null;}}function Pe(_0x49c9da){var _0x48dde3=_0x181387;const {coordinator:_0x47efc1}=_0x49c9da;return _0x312e4c(_0x1bf877,{'children':[_0x291591(_0x48dde3(0x196),{'className':_0x48dde3(0x1e4),'children':_0x48dde3(0x17f)}),_0x291591(_0x19249c,{'onClick':()=>_0x47efc1[_0x48dde3(0x1a2)](),'children':'Start'})]});}function Ae(_0x55f0a8){var _0x7f3747=_0x181387;const {coordinator:_0x47a0d3}=_0x55f0a8;return _0x312e4c(_0x1bf877,{'children':[_0x291591(_0x7f3747(0x196),{'className':_0x7f3747(0x1e4),'children':_0x7f3747(0x172)}),_0x291591(_0x19249c,{'onClick':()=>_0x47a0d3[_0x7f3747(0x15a)](),'children':'Stop\x20following'})]});}function Te(_0x1dda3f){var _0x28bf64=_0x181387;const {coordinator:_0x192419}=_0x1dda3f;return _0x312e4c(_0x1bf877,{'children':[_0x291591(_0x28bf64(0x196),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x28bf64(0x162)}),_0x291591(_0x19249c,{'variant':'text','onClick':()=>_0x192419[_0x28bf64(0x180)](),'children':'Start\x20following'})]});}function $e(_0x22a67f){var _0x1b3b35=_0x181387;const {coordinator:_0x374b6e}=_0x22a67f;return _0x312e4c(_0x1bf877,{'children':[_0x291591(_0x1b3b35(0x196),{'className':_0x1b3b35(0x1e4),'children':_0x1b3b35(0x18b)}),_0x291591(_0x19249c,{'variant':'default','onClick':()=>_0x374b6e[_0x1b3b35(0x174)](),'children':_0x1b3b35(0x153)})]});}function Fe(){var _0x4ea957=_0x181387;return _0x291591(_0x1bf877,{'children':_0x4ea957(0x1ad)});}var He=Object[_0x181387(0x193)],je=(_0x27901f,_0x24f529,_0x4d9197,_0x214d70)=>{var _0xe4e56=_0x181387;for(var _0x225179=_0x214d70>0x1?void 0x0:_0x214d70?He(_0x24f529,_0x4d9197):_0x24f529,_0x32e8bb=_0x27901f[_0xe4e56(0x178)]-0x1,_0x3a3db2;_0x32e8bb>=0x0;_0x32e8bb--)(_0x3a3db2=_0x27901f[_0x32e8bb])&&(_0x225179=_0x3a3db2(_0x225179)||_0x225179);return _0x225179;},T=(_0x2ee10e,_0x2a8a06)=>(_0xdef2d0,_0x356d1d)=>_0x2a8a06(_0xdef2d0,_0x356d1d,_0x2ee10e);function _0x5244(_0xd6eec1,_0x4b74c4){var _0x4d2656=_0x4d26();return _0x5244=function(_0x524493,_0x42f8ee){_0x524493=_0x524493-0x136;var _0x366dd9=_0x4d2656[_0x524493];return _0x366dd9;},_0x5244(_0xd6eec1,_0x4b74c4);}let I=class extends _0xb4423d{constructor(_0x57c5d9,_0x4b5082){var _0x358af7=_0x181387;super(),this['_injector']=_0x57c5d9,this[_0x358af7(0x1af)]=_0x4b5082,this[_0x358af7(0x1df)]();}[_0x181387(0x1df)](){var _0x4cfb0b=_0x181387;this[_0x4cfb0b(0x14e)](this[_0x4cfb0b(0x1af)][_0x4cfb0b(0x1ae)](_0x8a0539[_0x4cfb0b(0x1c6)],()=>_0x401def(ye,this['_injector'])));}};I=je([T(0x0,_0x19b8a0(_0x340b01)),T(0x1,_0x59ff15)],I);const Ue=_0x181387(0x1a1),$={};var Ve=Object[_0x181387(0x193)],Me=(_0x45115a,_0x3e31a6,_0x1f4776,_0x2e2be0)=>{for(var _0x4647ca=_0x2e2be0>0x1?void 0x0:_0x2e2be0?Ve(_0x3e31a6,_0x1f4776):_0x3e31a6,_0x1f2a29=_0x45115a['length']-0x1,_0x3d2f15;_0x1f2a29>=0x0;_0x1f2a29--)(_0x3d2f15=_0x45115a[_0x1f2a29])&&(_0x4647ca=_0x3d2f15(_0x4647ca)||_0x4647ca);return _0x4647ca;},ke=(_0x5891fc,_0x19805a)=>(_0x534bf2,_0x237c0a)=>_0x19805a(_0x534bf2,_0x237c0a,_0x5891fc);let b=class extends _0xb4423d{constructor(_0x279f9d){var _0x454ade=_0x181387;super(),this[_0x454ade(0x19e)]=_0x279f9d,this[_0x454ade(0x197)]();}[_0x181387(0x197)](){var _0x184932=_0x181387;[_0x4d70b8['id'],_0x2991d1['id'],_0x4dceb2['id']][_0x184932(0x186)](_0x32a7aa=>{var _0x1674dd=_0x184932;this[_0x1674dd(0x14e)](this[_0x1674dd(0x19e)]['registerSharedOperation'](_0x32a7aa));});}};b=Me([ke(0x0,_0x19b8a0(L))],b);function _0x4d26(){var _0xd8d1f2=['1853230OqrWoE','_stopFollowing','dispose$','random','UNIVER_SHEET','_handleNewChangeSets','NEW_CHANGESETS','idle','then','LIVESHARE_TERMINATE','defineProperty','HEADER_MENU','_entities','877644KfPbPq','_handleOffline','_status$','PRESENTING','_config','svg','call','_unitID','delete','_stopPresenting','className','_presenter','IDLE','xlink:href','displayName','trim','function','map','1018446vfrBAI','children','_reporters','complete','parse','_mountLiveShare','_commandService','from','clear','getOwnPropertySymbols','univer-mb-3\x20univer-w-full\x20univer-text-sm','_univerInstanceService','_handleTerminate','requireSession','includes','memberID','get','url(#$1','552aqAEFO','_startPresenting','live-share-icon','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_configService','init','entries','_commandDisposable','LIVESHARE_REQUEST_HOST','following','_injector','tag','1em','prototype','LIVESHARE_NEW_HOST','NOT_FOLLOWING','use','presenting','disposeWithMe','UNIVER_UNKNOWN','path','asObservable','replace','Stop\x20presenting','OPERATION','_status','fill','_fetchOperations','params','SAME_OPERATION_SHARE_INTERVAL','stopFollowing','LIVESHARE_FETCH_OPERATIONS','registerInitialStateReporter','setConfig','mask','88398tQmaaj','unsubscribe','mutations','You\x27re\x20not\x20following\x20the\x20presenter','_startLiveShareCoordinator','idSuffix','presenter','getTypeOfUnitDisposed$','_sharedOperations','onRendered','symbol','event$','data','button','onStarting','sheet','next','apply','pluginName','You\x27re\x20following\x20the\x20presenter','LiveShareIcon','stopPresenting','registerSharedOperation','shouldShareOperation','concat','length','hasOwnProperty','getInitialStates','_startFollowing','send','_handleOnline','_collabSessionService','Present\x20this\x20document','startFollowing','http://www.w3.org/2000/svg','evenodd','dispose','_collabSession','not-following','forEach','0\x200\x2017\x2017','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','has','currentColor','You\x27re\x20presenting\x20the\x20document','getMemberID','icon','LIVESHARE_OPERATION','subscribe','string','attrs','status$','getOwnPropertyDescriptor','find','stringify','div','_init','270gAjacs','4fZBAEA','328242fJdTxd','substring','onCommandExecuted','getLiveShareCoordinator','_liveShareService','OFFLINE','current','live-share.config','tryStartPresenting','offline','pipe','getCurrentTypeOfUnit$','getUnitId','UNIVER_LIVE_SHARE_PLUGIN','sessionStatus$','ONLINE','propertyIsEnumerable','colorChannel1','createInstance','You\x27are\x20offline.','registerComponent','_uiPartsService','defIds','581524HZefhr','_handleOperation','109582UXiXrg','getConfig','univer-size-4','add','values','28IjcRVG','type','_handleNewHost'];_0x4d26=function(){return _0xd8d1f2;};return _0x4d26();}var Ge=Object[_0x181387(0x1c5)],We=Object[_0x181387(0x193)],Ye=(_0x96e68a,_0x59a02a,_0x1fc2f2)=>_0x59a02a in _0x96e68a?Ge(_0x96e68a,_0x59a02a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1fc2f2}):_0x96e68a[_0x59a02a]=_0x1fc2f2,Be=(_0x1a2ba2,_0x3f1212,_0x5f245e,_0x1f3629)=>{var _0x405386=_0x181387;for(var _0xac1a4f=_0x1f3629>0x1?void 0x0:_0x1f3629?We(_0x3f1212,_0x5f245e):_0x3f1212,_0x2ae03c=_0x1a2ba2[_0x405386(0x178)]-0x1,_0x57c803;_0x2ae03c>=0x0;_0x2ae03c--)(_0x57c803=_0x1a2ba2[_0x2ae03c])&&(_0xac1a4f=_0x57c803(_0xac1a4f)||_0xac1a4f);return _0xac1a4f;},F=(_0x21bb44,_0x3eff0f)=>(_0x455f6e,_0x2b12ab)=>_0x3eff0f(_0x455f6e,_0x2b12ab,_0x21bb44),J=(_0x5ea947,_0x5e9f79,_0x51fc96)=>Ye(_0x5ea947,typeof _0x5e9f79!=_0x181387(0x169)?_0x5e9f79+'':_0x5e9f79,_0x51fc96);const Ze=_0x181387(0x1a7);let O=class extends _0x51df73{constructor(_0x4aefd8=$,_0x29618b,_0x4368d6){var _0x28fcdf=_0x181387;super(),this[_0x28fcdf(0x1cc)]=_0x4aefd8,this['_injector']=_0x29618b,this['_configService']=_0x4368d6;const {..._0x127ce3}=_0xd6b33({},$,this[_0x28fcdf(0x1cc)]);this[_0x28fcdf(0x140)][_0x28fcdf(0x15d)](Ue,_0x127ce3);}[_0x181387(0x16d)](){var _0x3fd118=_0x181387;_0x1050b5(this[_0x3fd118(0x146)],_0x4379af([[L],[m],[b],[I]],this[_0x3fd118(0x1cc)]['override'])),_0x422eb9(this['_injector'],[[b]]);}[_0x181387(0x168)](){var _0x5f4fbc=_0x181387;_0x422eb9(this[_0x5f4fbc(0x146)],[[I]]);}};J(O,_0x181387(0x1b9),_0x3d14a2[_0x181387(0x14f)]),J(O,_0x181387(0x171),Ze),O=Be([_0x498526(_0x204b9a),F(0x1,_0x19b8a0(_0x340b01)),F(0x2,_0x5f525b)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x43ad12=_0x5bf1;(function(_0x43f385,_0x19f216){var _0x47725f=_0x5bf1,_0x3bd6a2=_0x43f385();while(!![]){try{var _0x2c16d4=-parseInt(_0x47725f(0x14d))/0x1+-parseInt(_0x47725f(0x16e))/0x2+parseInt(_0x47725f(0x15b))/0x3+parseInt(_0x47725f(0x17a))/0x4*(parseInt(_0x47725f(0x187))/0x5)+parseInt(_0x47725f(0x194))/0x6*(parseInt(_0x47725f(0x143))/0x7)+parseInt(_0x47725f(0x170))/0x8*(-parseInt(_0x47725f(0x17c))/0x9)+parseInt(_0x47725f(0x171))/0xa*(parseInt(_0x47725f(0x17d))/0xb);if(_0x2c16d4===_0x19f216)break;else _0x3bd6a2['push'](_0x3bd6a2['shift']());}catch(_0x4281f1){_0x3bd6a2['push'](_0x3bd6a2['shift']());}}}(_0x59c7,0xadca4));var q=Object[_0x43ad12(0x128)],z=(_0x519c17,_0x50d9a5,_0x2b7167)=>_0x50d9a5 in _0x519c17?q(_0x519c17,_0x50d9a5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b7167}):_0x519c17[_0x50d9a5]=_0x2b7167,d=(_0x165409,_0x26b618,_0x47c4c8)=>z(_0x165409,typeof _0x26b618!=_0x43ad12(0x112)?_0x26b618+'':_0x26b618,_0x47c4c8);import{Disposable as _0x1b4c3b,toDisposable as _0x588afd,IUniverInstanceService as _0x149d48,Inject as _0x415909,Injector as _0x3fc7f2,IConfigService as _0x13311c,ICommandService as _0x4937f3,RxDisposable as _0x3b727a,UniverInstanceType as _0x33c666,DisposableCollection as _0x4ec9f6,CommandType as _0x2173c3,DependentOn as _0x1b3cbd,Plugin as _0x36a567,merge as _0x567ad9,registerDependencies as _0x540bc8,mergeOverrideWithDependencies as _0x14ee17,touchDependencies as _0x41f7e0}from'@univerjs/core';import{useDependency as _0x3aad55,useObservable as _0x52b777,IUIPartsService as _0x3d81bf,BuiltInUIPart as _0x3c9c42,connectInjector as _0x1896e1}from'@univerjs/ui';import{jsx as _0x10c595,jsxs as _0x2b145f,Fragment as _0x5aa383}from'react/jsx-runtime';import{Dropdown as _0x75180f,clsx as _0x5e4436,Button as _0x3a9d39}from'@univerjs/design';import{forwardRef as _0x43924e,useRef as _0x5dd95c,createElement as _0x1ff31c,useState as _0x13739e,useEffect as _0x57601b}from'react';import{CollaborationEvent as _0x39828a,parseProtocolChangeset as _0x238891}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1db8e9,SessionStatus as _0x13ce6b,UniverCollaborationClientPlugin as _0x485a8f}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x61d40f,SetWorksheetActiveOperation as _0x82b7b3}from'@univerjs/sheets';import{BehaviorSubject as _0x56bdba,Subject as _0x546630}from'rxjs';import{takeUntil as _0x444045,throttleTime as _0x2bca3c}from'rxjs/operators';import{SetZoomRatioOperation as _0xb0b9cb,SetScrollOperation as _0x2b4266}from'@univerjs/sheets-ui';var c=function(){var _0x5af697=_0x43ad12;return c=Object['assign']||function(_0x46a481){var _0xcfc4a1=_0x5bf1;for(var _0x5d485c,_0x4450ae=0x1,_0x2926c7=arguments[_0xcfc4a1(0x185)];_0x4450ae<_0x2926c7;_0x4450ae++){_0x5d485c=arguments[_0x4450ae];for(var _0x22a378 in _0x5d485c)Object['prototype'][_0xcfc4a1(0x19d)][_0xcfc4a1(0x12f)](_0x5d485c,_0x22a378)&&(_0x46a481[_0x22a378]=_0x5d485c[_0x22a378]);}return _0x46a481;},c[_0x5af697(0x1ad)](this,arguments);},Oe=function(_0x44bf89,_0x2aa466){var _0x3fb611=_0x43ad12,_0x144d13={};for(var _0x202364 in _0x44bf89)Object[_0x3fb611(0x125)][_0x3fb611(0x19d)][_0x3fb611(0x12f)](_0x44bf89,_0x202364)&&_0x2aa466[_0x3fb611(0x1bc)](_0x202364)<0x0&&(_0x144d13[_0x202364]=_0x44bf89[_0x202364]);if(_0x44bf89!=null&&typeof Object[_0x3fb611(0x133)]==_0x3fb611(0x1a6)){for(var _0xe40934=0x0,_0x202364=Object['getOwnPropertySymbols'](_0x44bf89);_0xe40934<_0x202364[_0x3fb611(0x185)];_0xe40934++)_0x2aa466[_0x3fb611(0x1bc)](_0x202364[_0xe40934])<0x0&&Object['prototype'][_0x3fb611(0x18c)][_0x3fb611(0x12f)](_0x44bf89,_0x202364[_0xe40934])&&(_0x144d13[_0x202364[_0xe40934]]=_0x44bf89[_0x202364[_0xe40934]]);}return _0x144d13;},W=_0x43924e(function(_0x419862,_0x5b1d30){var _0x1b238e=_0x43ad12,_0x2a5366=_0x419862['icon'],_0x1ce739=_0x419862['id'],_0x44f1bb=_0x419862['className'],_0x44c12c=_0x419862[_0x1b238e(0x19a)],_0x5b1c55=Oe(_0x419862,[_0x1b238e(0x1b0),'id',_0x1b238e(0x1a1),_0x1b238e(0x19a)]),_0x514530=_0x1b238e(0x136)[_0x1b238e(0x1a8)](_0x1ce739,'\x20')[_0x1b238e(0x1a8)](_0x44f1bb||'')[_0x1b238e(0x15a)](),_0xd92020=_0x5dd95c('_'[_0x1b238e(0x1a8)](Ne()));return Y(_0x2a5366,''[_0x1b238e(0x1a8)](_0x1ce739),{'defIds':_0x2a5366['defIds'],'idSuffix':_0xd92020[_0x1b238e(0x179)]},c({'ref':_0x5b1d30,'className':_0x514530},_0x5b1c55),_0x44c12c);});function Y(_0x4f07cb,_0x29a918,_0x16804c,_0x4801e7,_0x405205){var _0x4105cd=_0x43ad12;return _0x1ff31c(_0x4f07cb[_0x4105cd(0x11d)],c(c({'key':_0x29a918},Ee(_0x4f07cb,_0x16804c,_0x405205)),_0x4801e7),(we(_0x4f07cb,_0x16804c)[_0x4105cd(0x168)]||[])[_0x4105cd(0x11c)](function(_0x1a053e,_0x30aa0){var _0x4300c4=_0x4105cd;return Y(_0x1a053e,''[_0x4300c4(0x1a8)](_0x29a918,'-')[_0x4300c4(0x1a8)](_0x4f07cb['tag'],'-')['concat'](_0x30aa0),_0x16804c,void 0x0,_0x405205);}));}function Ee(_0x3d9a2d,_0xaf7f46,_0x187dbe){var _0x3d838d=_0x43ad12,_0x2b2753=c({},_0x3d9a2d[_0x3d838d(0x1c0)]);_0x187dbe!=null&&_0x187dbe['colorChannel1']&&_0x2b2753[_0x3d838d(0x122)]===_0x3d838d(0x18a)&&(_0x2b2753[_0x3d838d(0x122)]=_0x187dbe[_0x3d838d(0x18a)]),_0x3d9a2d[_0x3d838d(0x11d)]===_0x3d838d(0x150)&&_0x2b2753['id']&&(_0x2b2753['id']=_0x2b2753['id']+_0xaf7f46['idSuffix']),Object[_0x3d838d(0x119)](_0x2b2753)[_0x3d838d(0x163)](function(_0x5d464d){var _0x48f29f=_0x3d838d,_0x2a8dec=_0x5d464d[0x0],_0x3bb73f=_0x5d464d[0x1];_0x2a8dec===_0x48f29f(0x150)&&typeof _0x3bb73f==_0x48f29f(0x19f)&&(_0x2b2753[_0x2a8dec]=_0x3bb73f[_0x48f29f(0x1b9)](/url\(#(.*)\)/,'url(#$1'[_0x48f29f(0x1a8)](_0xaf7f46['idSuffix'],')')));});var _0x1f3502=_0xaf7f46['defIds'];return!_0x1f3502||_0x1f3502[_0x3d838d(0x185)]===0x0||(_0x3d9a2d['tag']===_0x3d838d(0x1b1)&&_0x2b2753[_0x3d838d(0x166)]&&(_0x2b2753[_0x3d838d(0x166)]=_0x2b2753['xlink:href']+_0xaf7f46[_0x3d838d(0x113)]),Object['entries'](_0x2b2753)[_0x3d838d(0x163)](function(_0x2a9e88){var _0x3fb766=_0x3d838d,_0x2badde=_0x2a9e88[0x0],_0x194549=_0x2a9e88[0x1];typeof _0x194549==_0x3fb766(0x19f)&&(_0x2b2753[_0x2badde]=_0x194549[_0x3fb766(0x1b9)](/url\(#(.*)\)/,_0x3fb766(0x177)['concat'](_0xaf7f46[_0x3fb766(0x113)],')')));})),_0x2b2753;}function we(_0x51c3ca,_0x50f96d){var _0x484f65=_0x43ad12,_0x36c831,_0x1f447a=_0x50f96d['defIds'];return!_0x1f447a||_0x1f447a[_0x484f65(0x185)]===0x0?_0x51c3ca:_0x51c3ca[_0x484f65(0x11d)]===_0x484f65(0x127)&&(!((_0x36c831=_0x51c3ca[_0x484f65(0x168)])===null||_0x36c831===void 0x0)&&_0x36c831[_0x484f65(0x185)])?c(c({},_0x51c3ca),{'children':_0x51c3ca[_0x484f65(0x168)]['map'](function(_0x2ce7c1){var _0x17e411=_0x484f65;return typeof _0x2ce7c1['attrs']['id']==_0x17e411(0x19f)&&_0x1f447a&&_0x1f447a[_0x17e411(0x1ae)](_0x2ce7c1[_0x17e411(0x1c0)]['id'])?c(c({},_0x2ce7c1),{'attrs':c(c({},_0x2ce7c1[_0x17e411(0x1c0)]),{'id':_0x2ce7c1[_0x17e411(0x1c0)]['id']+_0x50f96d[_0x17e411(0x113)]})}):_0x2ce7c1;})}):_0x51c3ca;}function Ne(){var _0x5eb072=_0x43ad12;return Math[_0x5eb072(0x13c)]()[_0x5eb072(0x110)](0x24)[_0x5eb072(0x175)](0x2,0x8);}W[_0x43ad12(0x1bf)]=_0x43ad12(0x1a4);function _0x5bf1(_0x4eb4c5,_0x46bdbd){var _0x59c775=_0x59c7();return _0x5bf1=function(_0x5bf108,_0x46b66a){_0x5bf108=_0x5bf108-0x10c;var _0x3883aa=_0x59c775[_0x5bf108];return _0x3883aa;},_0x5bf1(_0x4eb4c5,_0x46bdbd);}var Ce={'tag':_0x43ad12(0x14f),'attrs':{'xmlns':_0x43ad12(0x140),'fill':_0x43ad12(0x1ac),'viewBox':'0\x200\x2017\x2017','width':_0x43ad12(0x11e),'height':_0x43ad12(0x11e)},'children':[{'tag':_0x43ad12(0x1b3),'attrs':{'fill':_0x43ad12(0x142),'d':_0x43ad12(0x197)}},{'tag':'path','attrs':{'fill':_0x43ad12(0x142),'d':_0x43ad12(0x1c1),'fillRule':_0x43ad12(0x13e),'clipRule':_0x43ad12(0x13e)}}]},B=_0x43924e(function(_0x389c3f,_0x63a00f){var _0x526703=_0x43ad12;return _0x1ff31c(W,Object[_0x526703(0x1ab)]({},_0x389c3f,{'id':_0x526703(0x144),'ref':_0x63a00f,'icon':Ce}));});B['displayName']='LiveShareIcon';class L extends _0x1b4c3b{constructor(){super(...arguments),d(this,'_sharedOperations',new Set()),d(this,'_reporters',new Set());}[_0x43ad12(0x116)](_0x36352d){var _0xc5e79f=_0x43ad12;return this['_sharedOperations'][_0xc5e79f(0x13a)](_0x36352d),_0x588afd(()=>this[_0xc5e79f(0x132)][_0xc5e79f(0x176)](_0x36352d));}[_0x43ad12(0x158)](_0xea3677){var _0x2486bb=_0x43ad12;return this['_reporters'][_0x2486bb(0x13a)](_0xea3677),_0x588afd(()=>this[_0x2486bb(0x115)]['delete'](_0xea3677));}['shouldShareOperation'](_0x26e2b5){var _0x3e556f=_0x43ad12;return this[_0x3e556f(0x132)]['has'](_0x26e2b5);}[_0x43ad12(0x151)](_0xe8ea75){var _0x4ca2f7=_0x43ad12;return Array[_0x4ca2f7(0x181)](this[_0x4ca2f7(0x115)])[_0x4ca2f7(0x11c)](_0x1f8788=>_0x1f8788(_0xe8ea75));}}var De=Object[_0x43ad12(0x1b6)],Z=(_0x108d72,_0x597d40,_0x4866df,_0x330c3c)=>{var _0x7c8c0=_0x43ad12;for(var _0x4cfad7=_0x330c3c>0x1?void 0x0:_0x330c3c?De(_0x597d40,_0x4866df):_0x597d40,_0x4c07b4=_0x108d72[_0x7c8c0(0x185)]-0x1,_0x21e715;_0x4c07b4>=0x0;_0x4c07b4--)(_0x21e715=_0x108d72[_0x4c07b4])&&(_0x4cfad7=_0x21e715(_0x4cfad7)||_0x4cfad7);return _0x4cfad7;},f=(_0xac1e79,_0x5f4938)=>(_0x12f20e,_0x501932)=>_0x5f4938(_0x12f20e,_0x501932,_0xac1e79);let m=class extends _0x3b727a{constructor(_0x1aaf0a,_0x17adca,_0x5b3c11){var _0x5edf8a=_0x43ad12;super(),d(this,_0x5edf8a(0x12e),new Map()),(this[_0x5edf8a(0x188)]=_0x1aaf0a,this['_injector']=_0x17adca,this[_0x5edf8a(0x199)]=_0x5b3c11,this[_0x5edf8a(0x16f)]());}async[_0x43ad12(0x156)](_0x482b03){var _0xe0027c=_0x43ad12;return this[_0xe0027c(0x12e)][_0xe0027c(0x11a)](_0x482b03)||await this[_0xe0027c(0x195)](_0x482b03),this['_entities'][_0xe0027c(0x16d)](_0x482b03);}['_init'](){var _0x852fb9=_0x43ad12;this[_0x852fb9(0x188)][_0x852fb9(0x15d)](_0x33c666['UNIVER_SHEET'])['pipe'](_0x444045(this['dispose$']))['subscribe'](async _0x4d1e87=>{var _0x4b6010=_0x852fb9;const _0x4953bc=_0x4d1e87[_0x4b6010(0x1be)]();this['_entities'][_0x4b6010(0x11a)](_0x4953bc)||this['_startLiveShareCoordinator'](_0x4953bc);}),this[_0x852fb9(0x188)][_0x852fb9(0x15e)](_0x33c666[_0x852fb9(0x18e)])[_0x852fb9(0x189)](_0x444045(this[_0x852fb9(0x114)]))[_0x852fb9(0x15f)](_0x1fc75d=>{var _0x224f99=_0x852fb9;const _0x103875=_0x1fc75d[_0x224f99(0x1be)](),_0x44cfff=this[_0x224f99(0x12e)]['get'](_0x103875);_0x44cfff==null||_0x44cfff['dispose']();});}async[_0x43ad12(0x195)](_0x59aa1c){var _0x5d12d7=_0x43ad12;const _0x451266=await this[_0x5d12d7(0x199)][_0x5d12d7(0x164)](_0x59aa1c),_0x418dd2=this[_0x5d12d7(0x1bd)]['createInstance'](C,_0x59aa1c,_0x451266);return _0x418dd2[_0x5d12d7(0x1af)](),this[_0x5d12d7(0x12e)][_0x5d12d7(0x10e)](_0x59aa1c,_0x418dd2),_0x418dd2;}};m=Z([f(0x0,_0x149d48),f(0x1,_0x415909(_0x3fc7f2)),f(0x2,_0x415909(_0x1db8e9))],m);var h=(_0x244fa3=>(_0x244fa3[_0x43ad12(0x12d)]=_0x43ad12(0x135),_0x244fa3[_0x43ad12(0x1a5)]='idle',_0x244fa3[_0x43ad12(0x134)]=_0x43ad12(0x17b),_0x244fa3[_0x43ad12(0x13b)]='not-following',_0x244fa3[_0x43ad12(0x184)]='presenting',_0x244fa3))(h||{});const xe=_0x43ad12(0x160),Le=0xc8;let C=class extends _0x3b727a{constructor(_0x1fab99,_0x686740,_0xa2aa81,_0x26a5a1,_0x519752){var _0x2db2fe=_0x43ad12;super(),d(this,'_status$',new _0x56bdba('idle')),d(this,'status$',this[_0x2db2fe(0x13f)]['asObservable']()),d(this,_0x2db2fe(0x16f),!0x1),d(this,_0x2db2fe(0x19e),null),d(this,_0x2db2fe(0x18d),null),(this[_0x2db2fe(0x186)]=_0x1fab99,this[_0x2db2fe(0x145)]=_0x686740,this[_0x2db2fe(0x1ba)]=_0xa2aa81,this[_0x2db2fe(0x1b8)]=_0x26a5a1,this[_0x2db2fe(0x16b)]=_0x519752);}get[_0x43ad12(0x1a9)](){var _0x4f58fa=_0x43ad12;return this[_0x4f58fa(0x13f)][_0x4f58fa(0x1b2)]();}[_0x43ad12(0x148)](){var _0x3515e5=_0x43ad12,_0x4afdb4;(_0x4afdb4=this[_0x3515e5(0x19e)])==null||_0x4afdb4[_0x3515e5(0x148)](),this[_0x3515e5(0x13f)][_0x3515e5(0x19c)](_0x3515e5(0x1a3)),this[_0x3515e5(0x13f)][_0x3515e5(0x172)]();}[_0x43ad12(0x1af)](){var _0x1ded7f=_0x43ad12;this[_0x1ded7f(0x16f)]||(this[_0x1ded7f(0x16f)]=!0x0,this[_0x1ded7f(0x145)][_0x1ded7f(0x12c)][_0x1ded7f(0x189)](_0x444045(this[_0x1ded7f(0x114)]))[_0x1ded7f(0x15f)](_0x54ca26=>{var _0x21bec2=_0x1ded7f;switch(_0x54ca26){case _0x13ce6b['OFFLINE']:this['_handleOffline']();break;case _0x13ce6b[_0x21bec2(0x1c2)]:this['_handleOnline']();break;}}),this[_0x1ded7f(0x145)][_0x1ded7f(0x167)][_0x1ded7f(0x189)](_0x444045(this[_0x1ded7f(0x114)]))[_0x1ded7f(0x15f)](_0x3795c8=>{var _0x11edb5=_0x1ded7f;const {eventID:_0x5acc11}=_0x3795c8;switch(_0x5acc11){case _0x39828a[_0x11edb5(0x191)]:this[_0x11edb5(0x159)](_0x3795c8);break;case _0x39828a[_0x11edb5(0x15c)]:this[_0x11edb5(0x118)](_0x3795c8);break;case _0x39828a['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x39828a[_0x11edb5(0x10c)]:this['_handleNewChangeSets'](_0x3795c8);break;}}));}['tryStartPresenting'](){var _0x38ec87=_0x43ad12;this[_0x38ec87(0x145)][_0x38ec87(0x19b)]({'eventID':_0x39828a[_0x38ec87(0x13d)],'data':{'unitID':this[_0x38ec87(0x186)],'userID':this[_0x38ec87(0x145)][_0x38ec87(0x183)]()}},this['_unitID']);}[_0x43ad12(0x17e)](){var _0x44555f=_0x43ad12;this[_0x44555f(0x1a9)]===_0x44555f(0x192)&&(this['_status$'][_0x44555f(0x19c)](_0x44555f(0x1a3)),this['_collabSession'][_0x44555f(0x19b)]({'eventID':_0x39828a[_0x44555f(0x169)],'data':{'unitID':this[_0x44555f(0x186)]}},this[_0x44555f(0x186)]));}['startFollowing'](){var _0xc62691=_0x43ad12;this['_status']===_0xc62691(0x124)&&(this[_0xc62691(0x13f)][_0xc62691(0x19c)](_0xc62691(0x17b)),this[_0xc62691(0x14e)]());}[_0x43ad12(0x14c)](){var _0x32d772=_0x43ad12;this[_0x32d772(0x1a9)]===_0x32d772(0x17b)&&this[_0x32d772(0x182)]();}[_0x43ad12(0x159)](_0x13b2ba){var _0x31d93f=_0x43ad12;const {presenter:_0x46783f}=_0x13b2ba['data'],_0x198b4c=this['_collabSession']['getMemberID']();this[_0x31d93f(0x18d)]=_0x46783f,_0x46783f===_0x198b4c?(this[_0x31d93f(0x182)](),this[_0x31d93f(0x18f)]()):this[_0x31d93f(0x1a9)]!==_0x31d93f(0x124)&&(this[_0x31d93f(0x17f)](),this[_0x31d93f(0x14e)]());}[_0x43ad12(0x1bb)](){var _0x66a0ef=_0x43ad12;const _0x30e2b5={'eventID':_0x39828a[_0x66a0ef(0x1a7)]};this[_0x66a0ef(0x145)]['send'](_0x30e2b5,this[_0x66a0ef(0x186)]);}[_0x43ad12(0x129)](){var _0x161257=_0x43ad12;this[_0x161257(0x18d)]=null,this['_status']!==_0x161257(0x192)&&this[_0x161257(0x11f)]();}[_0x43ad12(0x162)](_0x346333){var _0x35d9a1=_0x43ad12;if(this[_0x35d9a1(0x1a9)]==='following'&&this[_0x35d9a1(0x18d)]===_0x346333[_0x35d9a1(0x14b)][_0x35d9a1(0x153)]){const _0x1b6381=_0x238891(_0x346333['data'])[_0x35d9a1(0x117)][_0x35d9a1(0x130)]()[_0x35d9a1(0x18b)](_0x49d9ff=>_0x49d9ff['id']===_0x61d40f['id']);if(_0x1b6381){const _0x47fee0=_0x1b6381[_0x35d9a1(0x178)]['unitId'],_0x1d52b6=_0x1b6381[_0x35d9a1(0x178)]['sheet']['id'];setTimeout(()=>{var _0x5c44c6=_0x35d9a1;this[_0x5c44c6(0x16b)][_0x5c44c6(0x1aa)](_0x82b7b3['id'],{'unitId':_0x47fee0,'subUnitId':_0x1d52b6},{'fromCollab':!0x0});});}}}[_0x43ad12(0x18f)](){var _0x593c9b=_0x43ad12;this['_status$'][_0x593c9b(0x19c)](_0x593c9b(0x192));const _0x5d117b=new Map(),_0x3b7c13=this['_commandDisposable']=new _0x4ec9f6();_0x3b7c13[_0x593c9b(0x13a)](_0x588afd(()=>{var _0x3680e6=_0x593c9b;_0x5d117b[_0x3680e6(0x163)](_0x2726d8=>_0x2726d8[_0x3680e6(0x172)]()),_0x5d117b['clear']();})),_0x3b7c13['add'](this['_commandService'][_0x593c9b(0x120)](_0x243ef4=>{var _0x4ac734=_0x593c9b,_0xa8e20d;if(_0x243ef4[_0x4ac734(0x147)]!==_0x2173c3[_0x4ac734(0x141)]||!this[_0x4ac734(0x1b8)][_0x4ac734(0x1b7)](_0x243ef4['id']))return;const {id:_0x4d69f9}=_0x243ef4;let _0x28f1a3;_0x5d117b[_0x4ac734(0x11a)](_0x4d69f9)?_0x28f1a3=_0x5d117b['get'](_0x4d69f9):(_0x28f1a3=new _0x546630(),_0x5d117b[_0x4ac734(0x10e)](_0x4d69f9,_0x28f1a3),_0x28f1a3['pipe'](_0x2bca3c((_0xa8e20d=this[_0x4ac734(0x1ba)][_0x4ac734(0x16c)](xe))!=null?_0xa8e20d:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4ac734(0x15f)](_0x255a90=>{var _0x499fa8=_0x4ac734;this[_0x499fa8(0x145)][_0x499fa8(0x19b)]({'eventID':_0x39828a[_0x499fa8(0x15c)],'data':{'unitID':this['_unitID'],'operations':{[_0x255a90['id']]:{'id':_0x255a90['id'],'params':JSON[_0x499fa8(0x155)](_0x255a90['params'])}}}},this[_0x499fa8(0x186)]);})),_0x28f1a3[_0x4ac734(0x19c)](_0x243ef4);})),this[_0x593c9b(0x1b8)]['getInitialStates'](this[_0x593c9b(0x186)])[_0x593c9b(0x163)](_0x34ce6b=>this[_0x593c9b(0x145)][_0x593c9b(0x19b)]({'eventID':_0x39828a[_0x593c9b(0x15c)],'data':{'unitID':this[_0x593c9b(0x186)],'operations':{[_0x34ce6b['id']]:{'id':_0x34ce6b['id'],'params':JSON['stringify'](_0x34ce6b[_0x593c9b(0x178)])}}}},this[_0x593c9b(0x186)]));}[_0x43ad12(0x17f)](){var _0x37d488=_0x43ad12,_0x8ff1a4;this['_status$'][_0x37d488(0x19c)](_0x37d488(0x1a3)),(_0x8ff1a4=this[_0x37d488(0x19e)])==null||_0x8ff1a4[_0x37d488(0x148)](),this[_0x37d488(0x19e)]=null;}[_0x43ad12(0x14e)](){var _0x266cee=_0x43ad12,_0x5c3f17;(_0x5c3f17=this['_commandDisposable'])==null||_0x5c3f17['dispose'](),this[_0x266cee(0x13f)]['next'](_0x266cee(0x17b));}['_beIdle'](){var _0x1a8173=_0x43ad12,_0x37949e;this[_0x1a8173(0x13f)][_0x1a8173(0x19c)](_0x1a8173(0x1a3)),(_0x37949e=this[_0x1a8173(0x19e)])==null||_0x37949e['dispose'](),this['_commandDisposable']=null;}[_0x43ad12(0x182)](){var _0xcd28b6=_0x43ad12,_0x401bc0;this['_status$'][_0xcd28b6(0x19c)](_0xcd28b6(0x124)),(_0x401bc0=this[_0xcd28b6(0x19e)])==null||_0x401bc0['dispose']();}['_handleOperation'](_0x47440e){var _0x44809d=_0x43ad12;if([_0x44809d(0x192),_0x44809d(0x124),_0x44809d(0x135)]['includes'](this[_0x44809d(0x1a9)])||!_0x47440e[_0x44809d(0x14b)]['presenter']||_0x47440e['data'][_0x44809d(0x11b)]===this[_0x44809d(0x145)][_0x44809d(0x183)]())return;this[_0x44809d(0x1a9)]===_0x44809d(0x1a3)&&this[_0x44809d(0x14e)]();const _0x2741cb=_0x47440e[_0x44809d(0x14b)][_0x44809d(0x10d)];Object[_0x44809d(0x14a)](_0x2741cb)[_0x44809d(0x163)](_0x11cf94=>{var _0x27ca02=_0x44809d;this['_commandService'][_0x27ca02(0x1aa)](_0x11cf94['id'],_0x11cf94['params']?JSON['parse'](_0x11cf94['params']):null,{'fromCollab':!0x0});});}[_0x43ad12(0x111)](){var _0x11702b=_0x43ad12,_0x3c29cf;this['_status$'][_0x11702b(0x19c)](_0x11702b(0x135)),(_0x3c29cf=this['_commandDisposable'])==null||_0x3c29cf['dispose']();}[_0x43ad12(0x152)](){var _0x2c41ec=_0x43ad12;this[_0x2c41ec(0x13f)][_0x2c41ec(0x19c)](_0x2c41ec(0x1a3)),this[_0x2c41ec(0x1bb)]();}};C=Z([f(0x2,_0x13311c),f(0x3,_0x415909(L)),f(0x4,_0x4937f3)],C);function ye(){var _0x460f50=_0x43ad12;const _0x366375=_0x3aad55(m),_0xc85841=_0x3aad55(_0x149d48),_0x2dacd0=_0x52b777(()=>_0xc85841[_0x460f50(0x12a)](_0x33c666[_0x460f50(0x18e)]),void 0x0,!0x1,[]),[_0x2eeb27,_0x454562]=_0x13739e(null),[_0x2e0a01,_0x1fe1cd]=_0x13739e(h['IDLE']),_0x206f76=_0x5dd95c(null);return _0x57601b(()=>(_0x2dacd0&&_0x366375[_0x460f50(0x156)](_0x2dacd0[_0x460f50(0x1be)]())[_0x460f50(0x180)](_0x150fbe=>{var _0x3774f6=_0x460f50;_0x454562(_0x150fbe),_0x206f76['current']=_0x150fbe[_0x3774f6(0x131)][_0x3774f6(0x15f)](_0x47b192=>{_0x1fe1cd(_0x47b192);});}),()=>{var _0x5bdbc5=_0x460f50,_0x458b64;(_0x458b64=_0x206f76[_0x5bdbc5(0x179)])==null||_0x458b64[_0x5bdbc5(0x123)](),_0x206f76[_0x5bdbc5(0x179)]=null;}),[_0x2dacd0,_0x366375]),_0x2eeb27?_0x10c595(_0x75180f,{'align':_0x460f50(0x138),'disabled':_0x2e0a01===h[_0x460f50(0x12d)],'className':_0x460f50(0x139),'overlay':_0x10c595(Re,{'status':_0x2e0a01,'coordinator':_0x2eeb27}),'children':_0x10c595(_0x460f50(0x149),{'className':_0x5e4436('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2e0a01===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2e0a01!==h[_0x460f50(0x12d)]}),'type':'button','children':_0x10c595(B,{'className':_0x460f50(0x1b5)})})}):null;}function Re(_0x57817d){var _0x370bdf=_0x43ad12;const {status:_0x1950d9,coordinator:_0x5f5522}=_0x57817d;switch(_0x1950d9){case h['IDLE']:return _0x10c595(Pe,{'coordinator':_0x5f5522});case h[_0x370bdf(0x134)]:return _0x10c595(Ae,{'coordinator':_0x5f5522});case h[_0x370bdf(0x13b)]:return _0x10c595(Te,{'coordinator':_0x5f5522});case h['OFFLINE']:return _0x10c595(Fe,{});case h[_0x370bdf(0x184)]:return _0x10c595($e,{'coordinator':_0x5f5522});default:return null;}}function Pe(_0x2a2fe2){var _0x2172ce=_0x43ad12;const {coordinator:_0x2e5d4a}=_0x2a2fe2;return _0x2b145f(_0x5aa383,{'children':[_0x10c595('div',{'className':_0x2172ce(0x10f),'children':_0x2172ce(0x173)}),_0x10c595(_0x3a9d39,{'onClick':()=>_0x2e5d4a['tryStartPresenting'](),'children':_0x2172ce(0x196)})]});}function Ae(_0x427630){var _0xacca79=_0x43ad12;const {coordinator:_0x4c571e}=_0x427630;return _0x2b145f(_0x5aa383,{'children':[_0x10c595(_0xacca79(0x190),{'className':_0xacca79(0x10f),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x10c595(_0x3a9d39,{'onClick':()=>_0x4c571e[_0xacca79(0x14c)](),'children':'Stop\x20following'})]});}function Te(_0x23ef1a){var _0x4dc7fc=_0x43ad12;const {coordinator:_0x11d62e}=_0x23ef1a;return _0x2b145f(_0x5aa383,{'children':[_0x10c595(_0x4dc7fc(0x190),{'className':_0x4dc7fc(0x10f),'children':_0x4dc7fc(0x126)}),_0x10c595(_0x3a9d39,{'variant':'text','onClick':()=>_0x11d62e[_0x4dc7fc(0x1a2)](),'children':_0x4dc7fc(0x161)})]});}function $e(_0x33a1f0){var _0x293508=_0x43ad12;const {coordinator:_0x3f81c0}=_0x33a1f0;return _0x2b145f(_0x5aa383,{'children':[_0x10c595('div',{'className':_0x293508(0x10f),'children':_0x293508(0x174)}),_0x10c595(_0x3a9d39,{'variant':_0x293508(0x154),'onClick':()=>_0x3f81c0['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Fe(){var _0x42edf6=_0x43ad12;return _0x10c595(_0x5aa383,{'children':_0x42edf6(0x137)});}var He=Object[_0x43ad12(0x1b6)],je=(_0x508d6e,_0x76f076,_0xfb9d47,_0x597f21)=>{var _0xca4084=_0x43ad12;for(var _0x43f9fa=_0x597f21>0x1?void 0x0:_0x597f21?He(_0x76f076,_0xfb9d47):_0x76f076,_0x32de71=_0x508d6e[_0xca4084(0x185)]-0x1,_0xa3f41f;_0x32de71>=0x0;_0x32de71--)(_0xa3f41f=_0x508d6e[_0x32de71])&&(_0x43f9fa=_0xa3f41f(_0x43f9fa)||_0x43f9fa);return _0x43f9fa;},T=(_0x3de9d8,_0x432a49)=>(_0x287650,_0x5a9a49)=>_0x432a49(_0x287650,_0x5a9a49,_0x3de9d8);function _0x59c7(){var _0x5bbf20=['SAME_OPERATION_SHARE_INTERVAL','Start\x20following','_handleNewChangeSets','forEach','requireSession','setConfig','xlink:href','event$','children','LIVESHARE_TERMINATE','UNIVER_UNKNOWN','_commandService','getConfig','get','1719976EanUnq','_init','1923832COLdxK','1720xAiZjU','complete','Present\x20this\x20document','You\x27re\x20presenting\x20the\x20document','substring','delete','url(#$1','params','current','4pKGvIM','following','9BLVPZy','7304EemPpo','stopPresenting','_stopPresenting','then','from','_stopFollowing','getMemberID','PRESENTING','length','_unitID','6504880MpKkzb','_univerInstanceService','pipe','colorChannel1','find','propertyIsEnumerable','_presenter','UNIVER_SHEET','_startPresenting','div','LIVESHARE_NEW_HOST','presenting','override','2392482RtUvaV','_startLiveShareCoordinator','Start','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','onStarting','_collabSessionService','extend','send','next','hasOwnProperty','_commandDisposable','string','_mountLiveShare','className','startFollowing','idle','UniverIcon','IDLE','function','LIVESHARE_FETCH_OPERATIONS','concat','_status','executeCommand','assign','none','apply','includes','init','icon','use','getValue','path','_config','univer-size-4','getOwnPropertyDescriptor','shouldShareOperation','_liveShareService','replace','_configService','_fetchOperations','indexOf','_injector','getUnitId','displayName','attrs','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','ONLINE','NEW_CHANGESETS','operations','set','univer-mb-3\x20univer-w-full\x20univer-text-sm','toString','_handleOffline','symbol','idSuffix','dispose$','_reporters','registerSharedOperation','mutations','_handleOperation','entries','has','presenter','map','tag','1em','_beIdle','onCommandExecuted','pluginName','fill','unsubscribe','not-following','prototype','You\x27re\x20not\x20following\x20the\x20presenter','defs','defineProperty','_handleTerminate','getCurrentTypeOfUnit$','disposeWithMe','sessionStatus$','OFFLINE','_entities','call','reverse','status$','_sharedOperations','getOwnPropertySymbols','FOLLOWING','offline','univerjs-icon\x20univerjs-icon-','You\x27are\x20offline.','end','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','add','NOT_FOLLOWING','random','LIVESHARE_REQUEST_HOST','evenodd','_status$','http://www.w3.org/2000/svg','OPERATION','currentColor','7ycYBsd','live-share-icon','_collabSession','registerComponent','type','dispose','button','values','data','stopFollowing','6955afPYKR','_startFollowing','svg','mask','getInitialStates','_handleOnline','memberID','default','stringify','getLiveShareCoordinator','_uiPartsService','registerInitialStateReporter','_handleNewHost','trim','16005ruNFTS','LIVESHARE_OPERATION','getTypeOfUnitAdded$','getTypeOfUnitDisposed$','subscribe'];_0x59c7=function(){return _0x5bbf20;};return _0x59c7();}let I=class extends _0x1b4c3b{constructor(_0x3c5285,_0x589df5){var _0x5ab782=_0x43ad12;super(),this[_0x5ab782(0x1bd)]=_0x3c5285,this[_0x5ab782(0x157)]=_0x589df5,this[_0x5ab782(0x1a0)]();}['_mountLiveShare'](){var _0xc12a86=_0x43ad12;this[_0xc12a86(0x12b)](this[_0xc12a86(0x157)][_0xc12a86(0x146)](_0x3c9c42['HEADER_MENU'],()=>_0x1896e1(ye,this['_injector'])));}};I=je([T(0x0,_0x415909(_0x3fc7f2)),T(0x1,_0x3d81bf)],I);const Ue='live-share.config',$={};var Ve=Object['getOwnPropertyDescriptor'],Me=(_0x5c04f3,_0x1682c0,_0x31924b,_0x3f51db)=>{for(var _0xd7c9b0=_0x3f51db>0x1?void 0x0:_0x3f51db?Ve(_0x1682c0,_0x31924b):_0x1682c0,_0x44252e=_0x5c04f3['length']-0x1,_0x5e068a;_0x44252e>=0x0;_0x44252e--)(_0x5e068a=_0x5c04f3[_0x44252e])&&(_0xd7c9b0=_0x5e068a(_0xd7c9b0)||_0xd7c9b0);return _0xd7c9b0;},ke=(_0x344af6,_0x5c7f4f)=>(_0x148486,_0x4907f3)=>_0x5c7f4f(_0x148486,_0x4907f3,_0x344af6);let b=class extends _0x1b4c3b{constructor(_0x329840){var _0x582655=_0x43ad12;super(),this['_liveShareService']=_0x329840,this[_0x582655(0x16f)]();}[_0x43ad12(0x16f)](){var _0x5def39=_0x43ad12;[_0xb0b9cb['id'],_0x2b4266['id'],_0x82b7b3['id']][_0x5def39(0x163)](_0x5742fc=>{var _0x12275e=_0x5def39;this[_0x12275e(0x12b)](this[_0x12275e(0x1b8)][_0x12275e(0x116)](_0x5742fc));});}};b=Me([ke(0x0,_0x415909(L))],b);var Ge=Object[_0x43ad12(0x128)],We=Object[_0x43ad12(0x1b6)],Ye=(_0x215cb6,_0x2c906f,_0x2ce248)=>_0x2c906f in _0x215cb6?Ge(_0x215cb6,_0x2c906f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ce248}):_0x215cb6[_0x2c906f]=_0x2ce248,Be=(_0x12f9e1,_0x1f0d31,_0x512454,_0x5a7f64)=>{var _0x3110a4=_0x43ad12;for(var _0x19d988=_0x5a7f64>0x1?void 0x0:_0x5a7f64?We(_0x1f0d31,_0x512454):_0x1f0d31,_0x1bafe5=_0x12f9e1[_0x3110a4(0x185)]-0x1,_0x5925da;_0x1bafe5>=0x0;_0x1bafe5--)(_0x5925da=_0x12f9e1[_0x1bafe5])&&(_0x19d988=_0x5925da(_0x19d988)||_0x19d988);return _0x19d988;},F=(_0x32496f,_0x179d8b)=>(_0x1e2084,_0x1cda7f)=>_0x179d8b(_0x1e2084,_0x1cda7f,_0x32496f),J=(_0x12c914,_0x2aa623,_0x2daeba)=>Ye(_0x12c914,typeof _0x2aa623!=_0x43ad12(0x112)?_0x2aa623+'':_0x2aa623,_0x2daeba);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x36a567{constructor(_0x4dfdb5=$,_0x446f4f,_0x44cfba){var _0x4c2ac8=_0x43ad12;super(),this['_config']=_0x4dfdb5,this[_0x4c2ac8(0x1bd)]=_0x446f4f,this[_0x4c2ac8(0x1ba)]=_0x44cfba;const {..._0xa95df4}=_0x567ad9({},$,this[_0x4c2ac8(0x1b4)]);this['_configService'][_0x4c2ac8(0x165)](Ue,_0xa95df4);}[_0x43ad12(0x198)](){var _0x5ffbc6=_0x43ad12;_0x540bc8(this[_0x5ffbc6(0x1bd)],_0x14ee17([[L],[m],[b],[I]],this[_0x5ffbc6(0x1b4)][_0x5ffbc6(0x193)])),_0x41f7e0(this['_injector'],[[b]]);}['onRendered'](){_0x41f7e0(this['_injector'],[[I]]);}};J(O,_0x43ad12(0x147),_0x33c666[_0x43ad12(0x16a)]),J(O,_0x43ad12(0x121),Ze),O=Be([_0x1b3cbd(_0x485a8f),F(0x1,_0x415909(_0x3fc7f2)),F(0x2,_0x13311c)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x21bd(_0x466977,_0x2e92c3){var _0x2269c4=_0x2269();return _0x21bd=function(_0x21bd9c,_0x2fbbce){_0x21bd9c=_0x21bd9c-0x193;var _0x22861a=_0x2269c4[_0x21bd9c];return _0x22861a;},_0x21bd(_0x466977,_0x2e92c3);}(function(_0x2be1df,_0x4d0118){var _0x1311a4=_0x21bd,_0x4c7ecb=_0x2be1df();while(!![]){try{var _0x25f9da=-parseInt(_0x1311a4(0x22b))/0x1*(-parseInt(_0x1311a4(0x20c))/0x2)+parseInt(_0x1311a4(0x266))/0x3*(-parseInt(_0x1311a4(0x253))/0x4)+-parseInt(_0x1311a4(0x241))/0x5*(parseInt(_0x1311a4(0x1ec))/0x6)+-parseInt(_0x1311a4(0x1cc))/0x7*(parseInt(_0x1311a4(0x1c3))/0x8)+parseInt(_0x1311a4(0x1da))/0x9+parseInt(_0x1311a4(0x1ad))/0xa*(parseInt(_0x1311a4(0x23e))/0xb)+-parseInt(_0x1311a4(0x274))/0xc*(-parseInt(_0x1311a4(0x25d))/0xd);if(_0x25f9da===_0x4d0118)break;else _0x4c7ecb['push'](_0x4c7ecb['shift']());}catch(_0x2ed9d3){_0x4c7ecb['push'](_0x4c7ecb['shift']());}}}(_0x2269,0x57268),function(_0x5bd477,_0x2b7efb){var _0x4da389=_0x21bd;typeof exports=='object'&&typeof module<'u'?_0x2b7efb(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x4da389(0x1d0)&&define[_0x4da389(0x1a1)]?define([_0x4da389(0x1d3),_0x4da389(0x1f5),_0x4da389(0x22c),_0x4da389(0x278),'@univerjs/design',_0x4da389(0x19a),_0x4da389(0x24a),_0x4da389(0x276),_0x4da389(0x271),_0x4da389(0x1e4),_0x4da389(0x217),_0x4da389(0x256)],_0x2b7efb):(_0x5bd477=typeof globalThis<'u'?globalThis:_0x5bd477||self,_0x2b7efb(_0x5bd477['UniverProLiveShare']={},_0x5bd477[_0x4da389(0x1b9)],_0x5bd477[_0x4da389(0x1ee)],_0x5bd477[_0x4da389(0x199)],_0x5bd477['UniverDesign'],_0x5bd477[_0x4da389(0x199)],_0x5bd477[_0x4da389(0x24b)],_0x5bd477[_0x4da389(0x1af)],_0x5bd477[_0x4da389(0x239)],_0x5bd477['rxjs'],_0x5bd477[_0x4da389(0x1e4)][_0x4da389(0x26f)],_0x5bd477[_0x4da389(0x211)]));}(this,function(_0x4a4863,_0x4f0b45,_0x5384f9,_0x3254a5,_0x2ce26d,_0x52eab4,_0x3b4e71,_0x5e47b8,_0x5ac1ba,_0x1952e0,_0x1ff521,_0x5a85b2){'use strict';var _0xd9bf49=_0x21bd;var _0x48422d=Object['defineProperty'],_0x7f93e8=(_0xea5f87,_0xcb90f4,_0x5f0d87)=>_0xcb90f4 in _0xea5f87?_0x48422d(_0xea5f87,_0xcb90f4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5f0d87}):_0xea5f87[_0xcb90f4]=_0x5f0d87,_0x3842bd=(_0x553b99,_0x7f7294,_0x3fab71)=>_0x7f93e8(_0x553b99,typeof _0x7f7294!=_0xd9bf49(0x1ba)?_0x7f7294+'':_0x7f7294,_0x3fab71),_0x18d925=function(){var _0xe186e2=_0xd9bf49;return _0x18d925=Object[_0xe186e2(0x1ac)]||function(_0x1659a7){var _0x2263cc=_0xe186e2;for(var _0x466e09,_0x3bad7b=0x1,_0x477e8c=arguments['length'];_0x3bad7b<_0x477e8c;_0x3bad7b++){_0x466e09=arguments[_0x3bad7b];for(var _0x901725 in _0x466e09)Object['prototype']['hasOwnProperty'][_0x2263cc(0x225)](_0x466e09,_0x901725)&&(_0x1659a7[_0x901725]=_0x466e09[_0x901725]);}return _0x1659a7;},_0x18d925[_0xe186e2(0x215)](this,arguments);},_0x32424a=function(_0x586f06,_0x2a98a3){var _0x2e130d=_0xd9bf49,_0x296ed2={};for(var _0x1226d5 in _0x586f06)Object[_0x2e130d(0x1a3)][_0x2e130d(0x252)][_0x2e130d(0x225)](_0x586f06,_0x1226d5)&&_0x2a98a3[_0x2e130d(0x1d4)](_0x1226d5)<0x0&&(_0x296ed2[_0x1226d5]=_0x586f06[_0x1226d5]);if(_0x586f06!=null&&typeof Object[_0x2e130d(0x23a)]=='function'){for(var _0x86e40d=0x0,_0x1226d5=Object[_0x2e130d(0x23a)](_0x586f06);_0x86e40d<_0x1226d5[_0x2e130d(0x194)];_0x86e40d++)_0x2a98a3['indexOf'](_0x1226d5[_0x86e40d])<0x0&&Object['prototype'][_0x2e130d(0x273)][_0x2e130d(0x225)](_0x586f06,_0x1226d5[_0x86e40d])&&(_0x296ed2[_0x1226d5[_0x86e40d]]=_0x586f06[_0x1226d5[_0x86e40d]]);}return _0x296ed2;},_0x2cf640=_0x52eab4[_0xd9bf49(0x21b)](function(_0x46b513,_0x4998dd){var _0x2bd51f=_0xd9bf49,_0x4e3921=_0x46b513['icon'],_0x4ed98f=_0x46b513['id'],_0xed7894=_0x46b513[_0x2bd51f(0x279)],_0xcdf171=_0x46b513[_0x2bd51f(0x1db)],_0x4e49a1=_0x32424a(_0x46b513,['icon','id',_0x2bd51f(0x279),'extend']),_0x3ab742=_0x2bd51f(0x213)[_0x2bd51f(0x230)](_0x4ed98f,'\x20')[_0x2bd51f(0x230)](_0xed7894||'')[_0x2bd51f(0x245)](),_0x3d9d25=_0x52eab4[_0x2bd51f(0x237)]('_'[_0x2bd51f(0x230)](_0x5a201d()));return _0x1ce6ca(_0x4e3921,''['concat'](_0x4ed98f),{'defIds':_0x4e3921['defIds'],'idSuffix':_0x3d9d25['current']},_0x18d925({'ref':_0x4998dd,'className':_0x3ab742},_0x4e49a1),_0xcdf171);});function _0x1ce6ca(_0x205ac2,_0x5c5bf8,_0x286a25,_0xf8070,_0x35ad2e){var _0x512c30=_0xd9bf49;return _0x52eab4['createElement'](_0x205ac2[_0x512c30(0x1f3)],_0x18d925(_0x18d925({'key':_0x5c5bf8},_0x303180(_0x205ac2,_0x286a25,_0x35ad2e)),_0xf8070),(_0x4dab48(_0x205ac2,_0x286a25)[_0x512c30(0x223)]||[])[_0x512c30(0x270)](function(_0x3925c1,_0x4407e3){var _0x1f5563=_0x512c30;return _0x1ce6ca(_0x3925c1,''[_0x1f5563(0x230)](_0x5c5bf8,'-')[_0x1f5563(0x230)](_0x205ac2['tag'],'-')[_0x1f5563(0x230)](_0x4407e3),_0x286a25,void 0x0,_0x35ad2e);}));}function _0x303180(_0x593c3d,_0x315ac0,_0xce0856){var _0x40d182=_0xd9bf49,_0x5cec21=_0x18d925({},_0x593c3d[_0x40d182(0x20d)]);_0xce0856!=null&&_0xce0856[_0x40d182(0x1f1)]&&_0x5cec21[_0x40d182(0x26d)]==='colorChannel1'&&(_0x5cec21[_0x40d182(0x26d)]=_0xce0856[_0x40d182(0x1f1)]),_0x593c3d[_0x40d182(0x1f3)]===_0x40d182(0x281)&&_0x5cec21['id']&&(_0x5cec21['id']=_0x5cec21['id']+_0x315ac0[_0x40d182(0x23b)]),Object[_0x40d182(0x255)](_0x5cec21)['forEach'](function(_0xd80bc4){var _0x1652e2=_0x40d182,_0x158f36=_0xd80bc4[0x0],_0x5ba4c3=_0xd80bc4[0x1];_0x158f36===_0x1652e2(0x281)&&typeof _0x5ba4c3==_0x1652e2(0x22d)&&(_0x5cec21[_0x158f36]=_0x5ba4c3[_0x1652e2(0x1fd)](/url\(#(.*)\)/,_0x1652e2(0x1a0)[_0x1652e2(0x230)](_0x315ac0[_0x1652e2(0x23b)],')')));});var _0x2ce401=_0x315ac0[_0x40d182(0x1a8)];return!_0x2ce401||_0x2ce401[_0x40d182(0x194)]===0x0||(_0x593c3d[_0x40d182(0x1f3)]===_0x40d182(0x1c2)&&_0x5cec21[_0x40d182(0x1f2)]&&(_0x5cec21[_0x40d182(0x1f2)]=_0x5cec21['xlink:href']+_0x315ac0[_0x40d182(0x23b)]),Object[_0x40d182(0x255)](_0x5cec21)['forEach'](function(_0x4e7212){var _0x47cf88=_0x40d182,_0x1bed4f=_0x4e7212[0x0],_0xcb56a4=_0x4e7212[0x1];typeof _0xcb56a4=='string'&&(_0x5cec21[_0x1bed4f]=_0xcb56a4[_0x47cf88(0x1fd)](/url\(#(.*)\)/,'url(#$1'[_0x47cf88(0x230)](_0x315ac0[_0x47cf88(0x23b)],')')));})),_0x5cec21;}function _0x4dab48(_0x5614e6,_0x45243c){var _0x1f3ed5=_0xd9bf49,_0x5ea35f,_0x1871ab=_0x45243c[_0x1f3ed5(0x1a8)];return!_0x1871ab||_0x1871ab[_0x1f3ed5(0x194)]===0x0?_0x5614e6:_0x5614e6[_0x1f3ed5(0x1f3)]===_0x1f3ed5(0x1ae)&&(!((_0x5ea35f=_0x5614e6[_0x1f3ed5(0x223)])===null||_0x5ea35f===void 0x0)&&_0x5ea35f['length'])?_0x18d925(_0x18d925({},_0x5614e6),{'children':_0x5614e6[_0x1f3ed5(0x223)]['map'](function(_0x787bf5){var _0x38a0be=_0x1f3ed5;return typeof _0x787bf5[_0x38a0be(0x20d)]['id']==_0x38a0be(0x22d)&&_0x1871ab&&_0x1871ab[_0x38a0be(0x1ca)](_0x787bf5[_0x38a0be(0x20d)]['id'])?_0x18d925(_0x18d925({},_0x787bf5),{'attrs':_0x18d925(_0x18d925({},_0x787bf5[_0x38a0be(0x20d)]),{'id':_0x787bf5[_0x38a0be(0x20d)]['id']+_0x45243c[_0x38a0be(0x23b)]})}):_0x787bf5;})}):_0x5614e6;}function _0x5a201d(){var _0x449f7a=_0xd9bf49;return Math[_0x449f7a(0x204)]()[_0x449f7a(0x214)](0x24)[_0x449f7a(0x229)](0x2,0x8);}_0x2cf640['displayName']=_0xd9bf49(0x20a);var _0x2de6e6={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xd9bf49(0x1d9),'viewBox':_0xd9bf49(0x1a5),'width':_0xd9bf49(0x1b1),'height':'1em'},'children':[{'tag':_0xd9bf49(0x27e),'attrs':{'fill':_0xd9bf49(0x21a),'d':_0xd9bf49(0x20e)}},{'tag':_0xd9bf49(0x27e),'attrs':{'fill':_0xd9bf49(0x21a),'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':_0xd9bf49(0x263),'clipRule':_0xd9bf49(0x263)}}]},_0x4289e=_0x52eab4[_0xd9bf49(0x21b)](function(_0x2410f0,_0x4ace02){var _0x344013=_0xd9bf49;return _0x52eab4['createElement'](_0x2cf640,Object[_0x344013(0x1ac)]({},_0x2410f0,{'id':_0x344013(0x22f),'ref':_0x4ace02,'icon':_0x2de6e6}));});_0x4289e['displayName']='LiveShareIcon';class _0x1c2d2c extends _0x4f0b45[_0xd9bf49(0x210)]{constructor(){var _0x1259f7=_0xd9bf49;super(...arguments),_0x3842bd(this,'_sharedOperations',new Set()),_0x3842bd(this,_0x1259f7(0x1e8),new Set());}[_0xd9bf49(0x216)](_0x4b23e7){var _0x50cefc=_0xd9bf49;return this[_0x50cefc(0x258)]['add'](_0x4b23e7),_0x4f0b45['toDisposable'](()=>this[_0x50cefc(0x258)]['delete'](_0x4b23e7));}[_0xd9bf49(0x233)](_0x4c271a){var _0x401ea3=_0xd9bf49;return this[_0x401ea3(0x1e8)][_0x401ea3(0x1c0)](_0x4c271a),_0x4f0b45[_0x401ea3(0x25a)](()=>this['_reporters'][_0x401ea3(0x247)](_0x4c271a));}['shouldShareOperation'](_0x3b4ed8){var _0x326944=_0xd9bf49;return this[_0x326944(0x258)][_0x326944(0x1bd)](_0x3b4ed8);}['getInitialStates'](_0xf47938){var _0x5176f9=_0xd9bf49;return Array[_0x5176f9(0x1ed)](this['_reporters'])[_0x5176f9(0x270)](_0x4f0051=>_0x4f0051(_0xf47938));}}var _0x306d22=Object['getOwnPropertyDescriptor'],_0x5ad8b8=(_0x9767ab,_0xb747ba,_0x18928b,_0xdc81a6)=>{var _0x79ca39=_0xd9bf49;for(var _0x19fd4b=_0xdc81a6>0x1?void 0x0:_0xdc81a6?_0x306d22(_0xb747ba,_0x18928b):_0xb747ba,_0x29d59a=_0x9767ab[_0x79ca39(0x194)]-0x1,_0x3395c3;_0x29d59a>=0x0;_0x29d59a--)(_0x3395c3=_0x9767ab[_0x29d59a])&&(_0x19fd4b=_0x3395c3(_0x19fd4b)||_0x19fd4b);return _0x19fd4b;},_0x330cdb=(_0x253a45,_0x3d730f)=>(_0x438cc2,_0x4145b7)=>_0x3d730f(_0x438cc2,_0x4145b7,_0x253a45);_0x4a4863[_0xd9bf49(0x235)]=class extends _0x4f0b45[_0xd9bf49(0x1e9)]{constructor(_0x3e1376,_0x49fb7c,_0x228d21){var _0x55045c=_0xd9bf49;super(),_0x3842bd(this,_0x55045c(0x1ce),new Map()),(this[_0x55045c(0x1c5)]=_0x3e1376,this[_0x55045c(0x1bf)]=_0x49fb7c,this[_0x55045c(0x265)]=_0x228d21,this[_0x55045c(0x1e5)]());}async[_0xd9bf49(0x1d6)](_0x2a177a){var _0x5a0d7c=_0xd9bf49;return this[_0x5a0d7c(0x1ce)][_0x5a0d7c(0x1bd)](_0x2a177a)||await this[_0x5a0d7c(0x22a)](_0x2a177a),this['_entities'][_0x5a0d7c(0x20f)](_0x2a177a);}[_0xd9bf49(0x1e5)](){var _0x1d1655=_0xd9bf49;this[_0x1d1655(0x1c5)][_0x1d1655(0x1b3)](_0x4f0b45[_0x1d1655(0x1cb)][_0x1d1655(0x1c1)])['pipe'](_0x1ff521[_0x1d1655(0x226)](this[_0x1d1655(0x259)]))[_0x1d1655(0x19e)](async _0x42722d=>{var _0x3d69fe=_0x1d1655;const _0x5686d2=_0x42722d[_0x3d69fe(0x27b)]();this['_entities'][_0x3d69fe(0x1bd)](_0x5686d2)||this[_0x3d69fe(0x22a)](_0x5686d2);}),this[_0x1d1655(0x1c5)]['getTypeOfUnitDisposed$'](_0x4f0b45[_0x1d1655(0x1cb)][_0x1d1655(0x1c1)])[_0x1d1655(0x25b)](_0x1ff521[_0x1d1655(0x226)](this[_0x1d1655(0x259)]))[_0x1d1655(0x19e)](_0x2a182a=>{var _0x5d7d80=_0x1d1655;const _0x10cebc=_0x2a182a[_0x5d7d80(0x27b)](),_0x4ac0bc=this['_entities']['get'](_0x10cebc);_0x4ac0bc==null||_0x4ac0bc['dispose']();});}async[_0xd9bf49(0x22a)](_0x5bb9e3){var _0x464661=_0xd9bf49;const _0x13bd0e=await this['_collabSessionService'][_0x464661(0x1c7)](_0x5bb9e3),_0x266832=this[_0x464661(0x1bf)][_0x464661(0x1df)](_0x4a4863[_0x464661(0x20b)],_0x5bb9e3,_0x13bd0e);return _0x266832[_0x464661(0x1f8)](),this[_0x464661(0x1ce)]['set'](_0x5bb9e3,_0x266832),_0x266832;}},_0x4a4863[_0xd9bf49(0x235)]=_0x5ad8b8([_0x330cdb(0x0,_0x4f0b45[_0xd9bf49(0x224)]),_0x330cdb(0x1,_0x4f0b45[_0xd9bf49(0x1fa)](_0x4f0b45[_0xd9bf49(0x236)])),_0x330cdb(0x2,_0x4f0b45[_0xd9bf49(0x1fa)](_0x5e47b8[_0xd9bf49(0x1d1)]))],_0x4a4863[_0xd9bf49(0x235)]);var _0x5de92f=(_0x22ac9f=>(_0x22ac9f[_0xd9bf49(0x1d5)]='offline',_0x22ac9f[_0xd9bf49(0x1f0)]=_0xd9bf49(0x1e0),_0x22ac9f[_0xd9bf49(0x26b)]=_0xd9bf49(0x19c),_0x22ac9f[_0xd9bf49(0x24f)]=_0xd9bf49(0x260),_0x22ac9f[_0xd9bf49(0x207)]=_0xd9bf49(0x1ff),_0x22ac9f))(_0x5de92f||{});const _0x49d1a0=_0xd9bf49(0x1a4),_0xf95aad=0xc8;_0x4a4863[_0xd9bf49(0x20b)]=class extends _0x4f0b45[_0xd9bf49(0x1e9)]{constructor(_0x5e6776,_0x32e6af,_0x4ed928,_0x3bb6e7,_0x58b405){var _0x21d38c=_0xd9bf49;super(),_0x3842bd(this,_0x21d38c(0x208),new _0x1952e0['BehaviorSubject'](_0x21d38c(0x1e0))),_0x3842bd(this,'status$',this[_0x21d38c(0x208)][_0x21d38c(0x21f)]()),_0x3842bd(this,_0x21d38c(0x1e5),!0x1),_0x3842bd(this,_0x21d38c(0x193),null),_0x3842bd(this,_0x21d38c(0x203),null),(this[_0x21d38c(0x1f7)]=_0x5e6776,this[_0x21d38c(0x200)]=_0x32e6af,this[_0x21d38c(0x1b7)]=_0x4ed928,this[_0x21d38c(0x26c)]=_0x3bb6e7,this[_0x21d38c(0x25f)]=_0x58b405);}get['_status'](){var _0x25d2bc=_0xd9bf49;return this[_0x25d2bc(0x208)]['getValue']();}[_0xd9bf49(0x212)](){var _0x2d755f=_0xd9bf49,_0x426f6b;(_0x426f6b=this[_0x2d755f(0x193)])==null||_0x426f6b[_0x2d755f(0x212)](),this[_0x2d755f(0x208)][_0x2d755f(0x1b4)](_0x2d755f(0x1e0)),this[_0x2d755f(0x208)]['complete']();}[_0xd9bf49(0x1f8)](){var _0x16bd1f=_0xd9bf49;this['_init']||(this['_init']=!0x0,this[_0x16bd1f(0x200)]['sessionStatus$'][_0x16bd1f(0x25b)](_0x1ff521[_0x16bd1f(0x226)](this[_0x16bd1f(0x259)]))[_0x16bd1f(0x19e)](_0x8140=>{var _0x5cc1b1=_0x16bd1f;switch(_0x8140){case _0x5e47b8[_0x5cc1b1(0x218)]['OFFLINE']:this['_handleOffline']();break;case _0x5e47b8[_0x5cc1b1(0x218)][_0x5cc1b1(0x257)]:this[_0x5cc1b1(0x24e)]();break;}}),this['_collabSession']['event$'][_0x16bd1f(0x25b)](_0x1ff521['takeUntil'](this['dispose$']))[_0x16bd1f(0x19e)](_0x410002=>{var _0x395215=_0x16bd1f;const {eventID:_0x2a27d6}=_0x410002;switch(_0x2a27d6){case _0x3b4e71[_0x395215(0x1c4)]['LIVESHARE_NEW_HOST']:this[_0x395215(0x1d2)](_0x410002);break;case _0x3b4e71[_0x395215(0x1c4)][_0x395215(0x246)]:this[_0x395215(0x1a2)](_0x410002);break;case _0x3b4e71[_0x395215(0x1c4)]['LIVESHARE_TERMINATE']:this[_0x395215(0x195)]();break;case _0x3b4e71['CollaborationEvent'][_0x395215(0x1dc)]:this['_handleNewChangeSets'](_0x410002);break;}}));}[_0xd9bf49(0x1a9)](){var _0x284e1e=_0xd9bf49;this[_0x284e1e(0x200)]['send']({'eventID':_0x3b4e71['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x284e1e(0x1f7)],'userID':this[_0x284e1e(0x200)]['getMemberID']()}},this['_unitID']);}[_0xd9bf49(0x250)](){var _0x417225=_0xd9bf49;this[_0x417225(0x1f6)]===_0x417225(0x1ff)&&(this[_0x417225(0x208)]['next'](_0x417225(0x1e0)),this[_0x417225(0x200)][_0x417225(0x1be)]({'eventID':_0x3b4e71['CollaborationEvent'][_0x417225(0x1d8)],'data':{'unitID':this[_0x417225(0x1f7)]}},this[_0x417225(0x1f7)]));}['startFollowing'](){var _0x1d6fda=_0xd9bf49;this['_status']===_0x1d6fda(0x260)&&(this[_0x1d6fda(0x208)][_0x1d6fda(0x1b4)](_0x1d6fda(0x19c)),this['_startFollowing']());}[_0xd9bf49(0x1eb)](){var _0x49ae19=_0xd9bf49;this[_0x49ae19(0x1f6)]===_0x49ae19(0x19c)&&this[_0x49ae19(0x240)]();}[_0xd9bf49(0x1d2)](_0x1e09d8){var _0x2eb190=_0xd9bf49;const {presenter:_0x73ee95}=_0x1e09d8['data'],_0x7c572a=this['_collabSession'][_0x2eb190(0x243)]();this[_0x2eb190(0x203)]=_0x73ee95,_0x73ee95===_0x7c572a?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x2eb190(0x1f6)]!==_0x2eb190(0x260)&&(this[_0x2eb190(0x198)](),this['_startFollowing']());}['_fetchOperations'](){var _0x38e971=_0xd9bf49;const _0x4d6818={'eventID':_0x3b4e71[_0x38e971(0x1c4)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x38e971(0x200)][_0x38e971(0x1be)](_0x4d6818,this[_0x38e971(0x1f7)]);}[_0xd9bf49(0x195)](){var _0x5810dc=_0xd9bf49;this[_0x5810dc(0x203)]=null,this[_0x5810dc(0x1f6)]!==_0x5810dc(0x1ff)&&this['_beIdle']();}[_0xd9bf49(0x209)](_0x533b91){var _0x490215=_0xd9bf49;if(this[_0x490215(0x1f6)]==='following'&&this[_0x490215(0x203)]===_0x533b91['data'][_0x490215(0x1e7)]){const _0x4d74b6=_0x3b4e71[_0x490215(0x1cd)](_0x533b91[_0x490215(0x1a7)])[_0x490215(0x24c)][_0x490215(0x244)]()[_0x490215(0x23d)](_0x42fd32=>_0x42fd32['id']===_0x5ac1ba[_0x490215(0x232)]['id']);if(_0x4d74b6){const _0x53a73b=_0x4d74b6[_0x490215(0x268)][_0x490215(0x242)],_0x245fb8=_0x4d74b6['params']['sheet']['id'];setTimeout(()=>{var _0x356bfc=_0x490215;this[_0x356bfc(0x25f)][_0x356bfc(0x1fc)](_0x5ac1ba[_0x356bfc(0x1cf)]['id'],{'unitId':_0x53a73b,'subUnitId':_0x245fb8},{'fromCollab':!0x0});});}}}[_0xd9bf49(0x1c9)](){var _0x10f331=_0xd9bf49;this[_0x10f331(0x208)][_0x10f331(0x1b4)](_0x10f331(0x1ff));const _0x367150=new Map(),_0xd6acce=this[_0x10f331(0x193)]=new _0x4f0b45[(_0x10f331(0x1c6))]();_0xd6acce[_0x10f331(0x1c0)](_0x4f0b45['toDisposable'](()=>{var _0x31222c=_0x10f331;_0x367150[_0x31222c(0x21e)](_0x3e8585=>_0x3e8585[_0x31222c(0x1ea)]()),_0x367150[_0x31222c(0x27d)]();})),_0xd6acce[_0x10f331(0x1c0)](this[_0x10f331(0x25f)][_0x10f331(0x197)](_0x29d21c=>{var _0x3a23e1=_0x10f331,_0x586ec4;if(_0x29d21c[_0x3a23e1(0x23c)]!==_0x4f0b45[_0x3a23e1(0x21c)][_0x3a23e1(0x25e)]||!this[_0x3a23e1(0x26c)]['shouldShareOperation'](_0x29d21c['id']))return;const {id:_0x2862b0}=_0x29d21c;let _0x3223a5;_0x367150['has'](_0x2862b0)?_0x3223a5=_0x367150['get'](_0x2862b0):(_0x3223a5=new _0x1952e0['Subject'](),_0x367150['set'](_0x2862b0,_0x3223a5),_0x3223a5['pipe'](_0x1ff521[_0x3a23e1(0x1de)]((_0x586ec4=this['_configService'][_0x3a23e1(0x205)](_0x49d1a0))!=null?_0x586ec4:_0xf95aad,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3a23e1(0x19e)](_0x33f055=>{var _0x15be31=_0x3a23e1;this['_collabSession'][_0x15be31(0x1be)]({'eventID':_0x3b4e71['CollaborationEvent'][_0x15be31(0x246)],'data':{'unitID':this[_0x15be31(0x1f7)],'operations':{[_0x33f055['id']]:{'id':_0x33f055['id'],'params':JSON[_0x15be31(0x1ef)](_0x33f055['params'])}}}},this[_0x15be31(0x1f7)]);})),_0x3223a5[_0x3a23e1(0x1b4)](_0x29d21c);})),this['_liveShareService']['getInitialStates'](this['_unitID'])[_0x10f331(0x21e)](_0x5ce959=>this[_0x10f331(0x200)][_0x10f331(0x1be)]({'eventID':_0x3b4e71[_0x10f331(0x1c4)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x10f331(0x1f7)],'operations':{[_0x5ce959['id']]:{'id':_0x5ce959['id'],'params':JSON[_0x10f331(0x1ef)](_0x5ce959[_0x10f331(0x268)])}}}},this[_0x10f331(0x1f7)]));}[_0xd9bf49(0x198)](){var _0x29df15=_0xd9bf49,_0x2a4150;this[_0x29df15(0x208)]['next'](_0x29df15(0x1e0)),(_0x2a4150=this[_0x29df15(0x193)])==null||_0x2a4150[_0x29df15(0x212)](),this[_0x29df15(0x193)]=null;}['_startFollowing'](){var _0x313ebf=_0xd9bf49,_0x46e6ae;(_0x46e6ae=this[_0x313ebf(0x193)])==null||_0x46e6ae[_0x313ebf(0x212)](),this[_0x313ebf(0x208)][_0x313ebf(0x1b4)](_0x313ebf(0x19c));}[_0xd9bf49(0x201)](){var _0x30d6af=_0xd9bf49,_0x4ac6f4;this['_status$'][_0x30d6af(0x1b4)](_0x30d6af(0x1e0)),(_0x4ac6f4=this[_0x30d6af(0x193)])==null||_0x4ac6f4[_0x30d6af(0x212)](),this[_0x30d6af(0x193)]=null;}[_0xd9bf49(0x240)](){var _0x475e00=_0xd9bf49,_0x4f2854;this['_status$'][_0x475e00(0x1b4)](_0x475e00(0x260)),(_0x4f2854=this[_0x475e00(0x193)])==null||_0x4f2854['dispose']();}['_handleOperation'](_0x2e5c38){var _0x3491c5=_0xd9bf49;if(['presenting',_0x3491c5(0x260),_0x3491c5(0x19b)]['includes'](this[_0x3491c5(0x1f6)])||!_0x2e5c38[_0x3491c5(0x1a7)][_0x3491c5(0x222)]||_0x2e5c38[_0x3491c5(0x1a7)][_0x3491c5(0x222)]===this[_0x3491c5(0x200)][_0x3491c5(0x243)]())return;this[_0x3491c5(0x1f6)]===_0x3491c5(0x1e0)&&this[_0x3491c5(0x1a6)]();const _0x4c6ff7=_0x2e5c38[_0x3491c5(0x1a7)][_0x3491c5(0x1e1)];Object[_0x3491c5(0x1b2)](_0x4c6ff7)[_0x3491c5(0x21e)](_0x36cd25=>{var _0x467f4b=_0x3491c5;this['_commandService'][_0x467f4b(0x1fc)](_0x36cd25['id'],_0x36cd25[_0x467f4b(0x268)]?JSON[_0x467f4b(0x261)](_0x36cd25[_0x467f4b(0x268)]):null,{'fromCollab':!0x0});});}[_0xd9bf49(0x22e)](){var _0x465887=_0xd9bf49,_0x28cde1;this[_0x465887(0x208)][_0x465887(0x1b4)](_0x465887(0x19b)),(_0x28cde1=this[_0x465887(0x193)])==null||_0x28cde1[_0x465887(0x212)]();}['_handleOnline'](){var _0x9451ba=_0xd9bf49;this[_0x9451ba(0x208)][_0x9451ba(0x1b4)](_0x9451ba(0x1e0)),this['_fetchOperations']();}},_0x4a4863[_0xd9bf49(0x20b)]=_0x5ad8b8([_0x330cdb(0x2,_0x4f0b45[_0xd9bf49(0x24d)]),_0x330cdb(0x3,_0x4f0b45['Inject'](_0x1c2d2c)),_0x330cdb(0x4,_0x4f0b45[_0xd9bf49(0x262)])],_0x4a4863[_0xd9bf49(0x20b)]);function _0x239727(){var _0x346529=_0xd9bf49;const _0x27e865=_0x5384f9[_0x346529(0x206)](_0x4a4863[_0x346529(0x235)]),_0xea21e1=_0x5384f9[_0x346529(0x206)](_0x4f0b45[_0x346529(0x224)]),_0x4c421b=_0x5384f9['useObservable'](()=>_0xea21e1['getCurrentTypeOfUnit$'](_0x4f0b45[_0x346529(0x1cb)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x41656b,_0x786219]=_0x52eab4[_0x346529(0x1e6)](null),[_0x5affbd,_0x369ba9]=_0x52eab4[_0x346529(0x1e6)](_0x5de92f['IDLE']),_0xdfc610=_0x52eab4[_0x346529(0x237)](null);return _0x52eab4[_0x346529(0x196)](()=>(_0x4c421b&&_0x27e865[_0x346529(0x1d6)](_0x4c421b[_0x346529(0x27b)]())[_0x346529(0x202)](_0x25c2f5=>{var _0x1f4f1d=_0x346529;_0x786219(_0x25c2f5),_0xdfc610[_0x1f4f1d(0x19d)]=_0x25c2f5['status$']['subscribe'](_0x41ad55=>{_0x369ba9(_0x41ad55);});}),()=>{var _0x21f24f=_0x346529,_0x507e50;(_0x507e50=_0xdfc610[_0x21f24f(0x19d)])==null||_0x507e50['unsubscribe'](),_0xdfc610[_0x21f24f(0x19d)]=null;}),[_0x4c421b,_0x27e865]),_0x41656b?_0x3254a5[_0x346529(0x25c)](_0x2ce26d['Dropdown'],{'align':'end','disabled':_0x5affbd===_0x5de92f[_0x346529(0x1d5)],'className':_0x346529(0x231),'overlay':_0x3254a5['jsx'](_0x16f80e,{'status':_0x5affbd,'coordinator':_0x41656b}),'children':_0x3254a5[_0x346529(0x25c)](_0x346529(0x254),{'className':_0x2ce26d['clsx'](_0x346529(0x1dd),{'univer-cursor-not-allowed':_0x5affbd===_0x5de92f[_0x346529(0x1d5)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5affbd!==_0x5de92f[_0x346529(0x1d5)]}),'type':_0x346529(0x254),'children':_0x3254a5[_0x346529(0x25c)](_0x4289e,{'className':_0x346529(0x1bb)})})}):null;}function _0x16f80e(_0x3f23b1){var _0x8f5664=_0xd9bf49;const {status:_0x295b79,coordinator:_0x228729}=_0x3f23b1;switch(_0x295b79){case _0x5de92f['IDLE']:return _0x3254a5[_0x8f5664(0x25c)](_0x107789,{'coordinator':_0x228729});case _0x5de92f['FOLLOWING']:return _0x3254a5[_0x8f5664(0x25c)](_0x2a5317,{'coordinator':_0x228729});case _0x5de92f['NOT_FOLLOWING']:return _0x3254a5['jsx'](_0x12eef5,{'coordinator':_0x228729});case _0x5de92f[_0x8f5664(0x1d5)]:return _0x3254a5[_0x8f5664(0x25c)](_0x3e1901,{});case _0x5de92f[_0x8f5664(0x207)]:return _0x3254a5[_0x8f5664(0x25c)](_0x3bce68,{'coordinator':_0x228729});default:return null;}}function _0x107789(_0x20f4f8){var _0x2c6bac=_0xd9bf49;const {coordinator:_0xec3037}=_0x20f4f8;return _0x3254a5['jsxs'](_0x3254a5[_0x2c6bac(0x264)],{'children':[_0x3254a5['jsx'](_0x2c6bac(0x1c8),{'className':_0x2c6bac(0x1b0),'children':_0x2c6bac(0x227)}),_0x3254a5[_0x2c6bac(0x25c)](_0x2ce26d[_0x2c6bac(0x219)],{'onClick':()=>_0xec3037[_0x2c6bac(0x1a9)](),'children':_0x2c6bac(0x220)})]});}function _0x2a5317(_0x396c43){var _0x1245fb=_0xd9bf49;const {coordinator:_0xd95b55}=_0x396c43;return _0x3254a5[_0x1245fb(0x27f)](_0x3254a5[_0x1245fb(0x264)],{'children':[_0x3254a5[_0x1245fb(0x25c)](_0x1245fb(0x1c8),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1245fb(0x234)}),_0x3254a5[_0x1245fb(0x25c)](_0x2ce26d[_0x1245fb(0x219)],{'onClick':()=>_0xd95b55['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x12eef5(_0x5440ec){var _0x3a54c7=_0xd9bf49;const {coordinator:_0x51039d}=_0x5440ec;return _0x3254a5['jsxs'](_0x3254a5[_0x3a54c7(0x264)],{'children':[_0x3254a5[_0x3a54c7(0x25c)](_0x3a54c7(0x1c8),{'className':_0x3a54c7(0x1b0),'children':_0x3a54c7(0x1e3)}),_0x3254a5[_0x3a54c7(0x25c)](_0x2ce26d[_0x3a54c7(0x219)],{'variant':_0x3a54c7(0x282),'onClick':()=>_0x51039d[_0x3a54c7(0x1d7)](),'children':'Start\x20following'})]});}function _0x3bce68(_0x55722a){var _0x1e444c=_0xd9bf49;const {coordinator:_0x13c12e}=_0x55722a;return _0x3254a5[_0x1e444c(0x27f)](_0x3254a5[_0x1e444c(0x264)],{'children':[_0x3254a5['jsx'](_0x1e444c(0x1c8),{'className':_0x1e444c(0x1b0),'children':_0x1e444c(0x1b6)}),_0x3254a5['jsx'](_0x2ce26d[_0x1e444c(0x219)],{'variant':_0x1e444c(0x1bc),'onClick':()=>_0x13c12e['stopPresenting'](),'children':_0x1e444c(0x26a)})]});}function _0x3e1901(){var _0x40f26c=_0xd9bf49;return _0x3254a5['jsx'](_0x3254a5[_0x40f26c(0x264)],{'children':'You\x27are\x20offline.'});}var _0x33b478=Object['getOwnPropertyDescriptor'],_0x39aa41=(_0x1cfa9a,_0x4e5ddc,_0x1b1bce,_0x27d91c)=>{var _0x1b83e2=_0xd9bf49;for(var _0x5f45f3=_0x27d91c>0x1?void 0x0:_0x27d91c?_0x33b478(_0x4e5ddc,_0x1b1bce):_0x4e5ddc,_0x3315f9=_0x1cfa9a[_0x1b83e2(0x194)]-0x1,_0x5c9202;_0x3315f9>=0x0;_0x3315f9--)(_0x5c9202=_0x1cfa9a[_0x3315f9])&&(_0x5f45f3=_0x5c9202(_0x5f45f3)||_0x5f45f3);return _0x5f45f3;},_0x11fc3c=(_0x38ea5c,_0x3d5802)=>(_0x32a901,_0x3deccd)=>_0x3d5802(_0x32a901,_0x3deccd,_0x38ea5c);_0x4a4863['DesktopLiveShareController']=class extends _0x4f0b45['Disposable']{constructor(_0x4fb65a,_0x15c2af){var _0x2bd675=_0xd9bf49;super(),this['_injector']=_0x4fb65a,this[_0x2bd675(0x27c)]=_0x15c2af,this[_0x2bd675(0x248)]();}['_mountLiveShare'](){var _0x2e6f85=_0xd9bf49;this[_0x2e6f85(0x228)](this[_0x2e6f85(0x27c)][_0x2e6f85(0x283)](_0x5384f9[_0x2e6f85(0x269)]['HEADER_MENU'],()=>_0x5384f9[_0x2e6f85(0x275)](_0x239727,this[_0x2e6f85(0x1bf)])));}},_0x4a4863['DesktopLiveShareController']=_0x39aa41([_0x11fc3c(0x0,_0x4f0b45['Inject'](_0x4f0b45[_0xd9bf49(0x236)])),_0x11fc3c(0x1,_0x5384f9[_0xd9bf49(0x251)])],_0x4a4863[_0xd9bf49(0x1f9)]);const _0x484dee=_0xd9bf49(0x27a),_0x149dc4={};var _0x10d065=Object[_0xd9bf49(0x26e)],_0x71725=(_0x393d4f,_0x15d8d7,_0x386faa,_0x18148f)=>{var _0x1adb72=_0xd9bf49;for(var _0x36273e=_0x18148f>0x1?void 0x0:_0x18148f?_0x10d065(_0x15d8d7,_0x386faa):_0x15d8d7,_0x21fa1b=_0x393d4f[_0x1adb72(0x194)]-0x1,_0x19cf75;_0x21fa1b>=0x0;_0x21fa1b--)(_0x19cf75=_0x393d4f[_0x21fa1b])&&(_0x36273e=_0x19cf75(_0x36273e)||_0x36273e);return _0x36273e;},_0x17dd1a=(_0x287c49,_0x384cd3)=>(_0x33a2aa,_0x3fae6e)=>_0x384cd3(_0x33a2aa,_0x3fae6e,_0x287c49);let _0x4f6d6d=class extends _0x4f0b45[_0xd9bf49(0x210)]{constructor(_0x1b3af3){var _0x352ffb=_0xd9bf49;super(),this[_0x352ffb(0x26c)]=_0x1b3af3,this[_0x352ffb(0x1e5)]();}['_init'](){var _0x4e69cf=_0xd9bf49;[_0x5a85b2[_0x4e69cf(0x221)]['id'],_0x5a85b2[_0x4e69cf(0x1f4)]['id'],_0x5ac1ba['SetWorksheetActiveOperation']['id']][_0x4e69cf(0x21e)](_0x3c3bcd=>{var _0x8cd833=_0x4e69cf;this[_0x8cd833(0x228)](this[_0x8cd833(0x26c)][_0x8cd833(0x216)](_0x3c3bcd));});}};_0x4f6d6d=_0x71725([_0x17dd1a(0x0,_0x4f0b45[_0xd9bf49(0x1fa)](_0x1c2d2c))],_0x4f6d6d);var _0x3cf021=Object[_0xd9bf49(0x1e2)],_0x5bd59d=Object['getOwnPropertyDescriptor'],_0xa6a429=(_0x1f70a0,_0x12d0fd,_0x155d16)=>_0x12d0fd in _0x1f70a0?_0x3cf021(_0x1f70a0,_0x12d0fd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x155d16}):_0x1f70a0[_0x12d0fd]=_0x155d16,_0x2b875c=(_0x47c987,_0x4e1587,_0x6a7c32,_0xdb65b4)=>{for(var _0x3b0b78=_0xdb65b4>0x1?void 0x0:_0xdb65b4?_0x5bd59d(_0x4e1587,_0x6a7c32):_0x4e1587,_0x9b2773=_0x47c987['length']-0x1,_0x4c454d;_0x9b2773>=0x0;_0x9b2773--)(_0x4c454d=_0x47c987[_0x9b2773])&&(_0x3b0b78=_0x4c454d(_0x3b0b78)||_0x3b0b78);return _0x3b0b78;},_0x1543af=(_0xe1807,_0x464c80)=>(_0x55e174,_0x3f2a8c)=>_0x464c80(_0x55e174,_0x3f2a8c,_0xe1807),_0x18695a=(_0x596c77,_0x3288e9,_0x54f090)=>_0xa6a429(_0x596c77,typeof _0x3288e9!=_0xd9bf49(0x1ba)?_0x3288e9+'':_0x3288e9,_0x54f090);const _0x300eaa='UNIVER_LIVE_SHARE_PLUGIN';_0x4a4863[_0xd9bf49(0x1aa)]=class extends _0x4f0b45[_0xd9bf49(0x238)]{constructor(_0x4e5b31=_0x149dc4,_0x54edf2,_0x1898aa){var _0x205ee5=_0xd9bf49;super(),this['_config']=_0x4e5b31,this[_0x205ee5(0x1bf)]=_0x54edf2,this[_0x205ee5(0x1b7)]=_0x1898aa;const {..._0x253fc5}=_0x4f0b45[_0x205ee5(0x277)]({},_0x149dc4,this['_config']);this[_0x205ee5(0x1b7)]['setConfig'](_0x484dee,_0x253fc5);}[_0xd9bf49(0x1fe)](){var _0x43d0a6=_0xd9bf49;_0x4f0b45[_0x43d0a6(0x249)](this['_injector'],_0x4f0b45[_0x43d0a6(0x1b8)]([[_0x1c2d2c],[_0x4a4863[_0x43d0a6(0x235)]],[_0x4f6d6d],[_0x4a4863[_0x43d0a6(0x1f9)]]],this['_config'][_0x43d0a6(0x1fb)])),_0x4f0b45['touchDependencies'](this[_0x43d0a6(0x1bf)],[[_0x4f6d6d]]);}[_0xd9bf49(0x23f)](){var _0x3d84ae=_0xd9bf49;_0x4f0b45[_0x3d84ae(0x19f)](this['_injector'],[[_0x4a4863[_0x3d84ae(0x1f9)]]]);}},_0x18695a(_0x4a4863[_0xd9bf49(0x1aa)],'type',_0x4f0b45['UniverInstanceType'][_0xd9bf49(0x1b5)]),_0x18695a(_0x4a4863[_0xd9bf49(0x1aa)],_0xd9bf49(0x280),_0x300eaa),_0x4a4863[_0xd9bf49(0x1aa)]=_0x2b875c([_0x4f0b45[_0xd9bf49(0x272)](_0x5e47b8['UniverCollaborationClientPlugin']),_0x1543af(0x1,_0x4f0b45[_0xd9bf49(0x1fa)](_0x4f0b45[_0xd9bf49(0x236)])),_0x1543af(0x2,_0x4f0b45[_0xd9bf49(0x24d)])],_0x4a4863[_0xd9bf49(0x1aa)]),_0x4a4863[_0xd9bf49(0x267)]=_0x239727,_0x4a4863['LiveShareService']=_0x1c2d2c,_0x4a4863[_0xd9bf49(0x1ab)]=_0x5de92f,Object['defineProperty'](_0x4a4863,Symbol['toStringTag'],{'value':_0xd9bf49(0x21d)});}));function _0x2269(){var _0x3f3f88=['live-share.config','getUnitId','_uiPartsService','clear','path','jsxs','pluginName','mask','text','registerComponent','_commandDisposable','length','_handleTerminate','useEffect','onCommandExecuted','_stopPresenting','React','react','offline','following','current','subscribe','touchDependencies','url(#$1','amd','_handleOperation','prototype','SAME_OPERATION_SHARE_INTERVAL','0\x200\x2017\x2017','_startFollowing','data','defIds','tryStartPresenting','UniverLiveSharePlugin','LiveShareStatus','assign','570280ReYvDM','defs','UniverProCollaborationClient','univer-mb-3\x20univer-w-full\x20univer-text-sm','1em','values','getTypeOfUnitAdded$','next','UNIVER_UNKNOWN','You\x27re\x20presenting\x20the\x20document','_configService','mergeOverrideWithDependencies','UniverCore','symbol','univer-size-4','default','has','send','_injector','add','UNIVER_SHEET','use','245576vZdeGs','CollaborationEvent','_univerInstanceService','DisposableCollection','requireSession','div','_startPresenting','includes','UniverInstanceType','35ijXKSh','parseProtocolChangeset','_entities','SetWorksheetActiveOperation','function','CollaborationSessionService','_handleNewHost','exports','indexOf','OFFLINE','getLiveShareCoordinator','startFollowing','LIVESHARE_TERMINATE','none','379332zFHgRz','extend','NEW_CHANGESETS','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','throttleTime','createInstance','idle','operations','defineProperty','You\x27re\x20not\x20following\x20the\x20presenter','rxjs','_init','useState','memberID','_reporters','RxDisposable','complete','stopFollowing','127746TTdHIk','from','UniverUi','stringify','IDLE','colorChannel1','xlink:href','tag','SetScrollOperation','@univerjs/core','_status','_unitID','init','DesktopLiveShareController','Inject','override','executeCommand','replace','onStarting','presenting','_collabSession','_beIdle','then','_presenter','random','getConfig','useDependency','PRESENTING','_status$','_handleNewChangeSets','UniverIcon','LiveShareCoordinator','80140QDMzqg','attrs','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','get','Disposable','UniverSheetsUi','dispose','univerjs-icon\x20univerjs-icon-','toString','apply','registerSharedOperation','rxjs/operators','SessionStatus','Button','currentColor','forwardRef','CommandType','Module','forEach','asObservable','Start','SetZoomRatioOperation','presenter','children','IUniverInstanceService','call','takeUntil','Present\x20this\x20document','disposeWithMe','substring','_startLiveShareCoordinator','2yVqrpR','@univerjs/ui','string','_handleOffline','live-share-icon','concat','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','InsertSheetMutation','registerInitialStateReporter','You\x27re\x20following\x20the\x20presenter','LiveShareController','Injector','useRef','Plugin','UniverSheets','getOwnPropertySymbols','idSuffix','type','find','77AZuxvy','onRendered','_stopFollowing','40yxtMtv','unitId','getMemberID','reverse','trim','LIVESHARE_OPERATION','delete','_mountLiveShare','registerDependencies','@univerjs-pro/collaboration','UniverProCollaboration','mutations','IConfigService','_handleOnline','NOT_FOLLOWING','stopPresenting','IUIPartsService','hasOwnProperty','6536GeOZqQ','button','entries','@univerjs/sheets-ui','ONLINE','_sharedOperations','dispose$','toDisposable','pipe','jsx','7147699kAmwVc','OPERATION','_commandService','not-following','parse','ICommandService','evenodd','Fragment','_collabSessionService','717EEboHn','LiveShare','params','BuiltInUIPart','Stop\x20presenting','FOLLOWING','_liveShareService','fill','getOwnPropertyDescriptor','operators','map','@univerjs/sheets','DependentOn','propertyIsEnumerable','12oiXLyS','connectInjector','@univerjs-pro/collaboration-client','merge','react/jsx-runtime','className'];_0x2269=function(){return _0x3f3f88;};return _0x2269();}
|
|
1
|
+
function _0x19ae(){var _0x35af3a=['Button','init','sessionStatus$','has','live-share.config','get','length','_status','toString','_handleTerminate','hasOwnProperty','InsertSheetMutation','_config','5398001RvdhhY','React','7276176rkAYbH','connectInjector','rxjs','takeUntil','OFFLINE','OPERATION','_startLiveShareCoordinator','string','react','from','FOLLOWING','parse','_unitID','registerInitialStateReporter','getValue','4188096BVWRNl','onRendered','_univerInstanceService','executeCommand','IUniverInstanceService','evenodd','forwardRef','@univerjs/design','none','createInstance','params','className','UniverCollaborationClientPlugin','useEffect','registerComponent','SetWorksheetActiveOperation','UniverDesign','event$','defs','getTypeOfUnitDisposed$','_status$','NEW_CHANGESETS','useObservable','type','indexOf','url(#$1','DisposableCollection','_liveShareService','Fragment','div','sheet','button','trim','propertyIsEnumerable','xlink:href','useDependency','includes','LiveShare','univer-size-4','SessionStatus','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverLiveSharePlugin','@univerjs-pro/collaboration','LIVESHARE_FETCH_OPERATIONS','data','Start','getMemberID','current','mutations','RxDisposable','dispose$','_reporters','CommandType','You\x27re\x20not\x20following\x20the\x20presenter','map','4txzzAJ','DependentOn','prototype','rxjs/operators','jsx','Module','set','1em','amd','text','IConfigService','icon','PRESENTING','_handleNewHost','fill','startFollowing','getTypeOfUnitAdded$','registerSharedOperation','values','asObservable','merge','LiveShareCoordinator','_injector','displayName','_commandDisposable','svg','_handleNewChangeSets','Start\x20following','ONLINE','0\x200\x2017\x2017','mask','default','createElement','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','presenter','UNIVER_UNKNOWN','complete','tryStartPresenting','attrs','_startPresenting','_uiPartsService','pluginName','clear','6YQvQjU','You\x27re\x20following\x20the\x20presenter','forEach','setConfig','getCurrentTypeOfUnit$','call','SAME_OPERATION_SHARE_INTERVAL','_fetchOperations','dispose','toStringTag','LiveShareStatus','mergeOverrideWithDependencies','345482YYSEhk','unitId','stopPresenting','disposeWithMe','onCommandExecuted','stopFollowing','send','UNIVER_SHEET','not-following','UniverProLiveShare','UNIVER_LIVE_SHARE_PLUGIN','_collabSessionService','_collabSession','2113460BkxSUT','requireSession','UniverIcon','offline','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','toDisposable','colorChannel1','override','useRef','Present\x20this\x20document','live-share-icon','end','replace','getInitialStates','delete','pipe','CollaborationSessionService','univerjs-icon\x20univerjs-icon-','substring','Inject','idle','DesktopLiveShareController','_configService','3567648kYozsm','LiveShareIcon','LiveShareController','LIVESHARE_OPERATION','_startFollowing','UniverSheets','getOwnPropertyDescriptor','_commandService','_handleOffline','UniverCore','stringify','touchDependencies','shouldShareOperation','defineProperty','operations','UniverSheetsUi','CollaborationEvent','543831hUIUyd','tag','Stop\x20presenting','react/jsx-runtime','path','LIVESHARE_NEW_HOST','clsx','SetScrollOperation','Disposable','getOwnPropertySymbols','LIVESHARE_TERMINATE','random','@univerjs/core','_mountLiveShare','You\x27are\x20offline.','presenting','jsxs','NOT_FOLLOWING','getLiveShareCoordinator','_init','subscribe','following','_entities','currentColor','_presenter','extend','_handleOnline','use','getUnitId','defIds','assign','throttleTime','next','_handleOperation','unsubscribe','Stop\x20following','_stopPresenting','UniverInstanceType','_beIdle','IDLE','Injector','useState','idSuffix','status$','symbol','IUIPartsService','_stopFollowing','BehaviorSubject','add','concat','entries','children','_sharedOperations','ICommandService','object'];_0x19ae=function(){return _0x35af3a;};return _0x19ae();}function _0x3e8e(_0x2d1ca7,_0x1c7b38){var _0x19aeb0=_0x19ae();return _0x3e8e=function(_0x3e8e57,_0x3ed5aa){_0x3e8e57=_0x3e8e57-0x142;var _0x38fc36=_0x19aeb0[_0x3e8e57];return _0x38fc36;},_0x3e8e(_0x2d1ca7,_0x1c7b38);}(function(_0x44ca59,_0x579029){var _0x1ed7ad=_0x3e8e,_0x42726e=_0x44ca59();while(!![]){try{var _0x144cfd=parseInt(_0x1ed7ad(0x1fe))/0x1*(-parseInt(_0x1ed7ad(0x1f2))/0x2)+-parseInt(_0x1ed7ad(0x234))/0x3+parseInt(_0x1ed7ad(0x1c7))/0x4*(parseInt(_0x1ed7ad(0x20b))/0x5)+-parseInt(_0x1ed7ad(0x190))/0x6+parseInt(_0x1ed7ad(0x17f))/0x7+parseInt(_0x1ed7ad(0x223))/0x8+parseInt(_0x1ed7ad(0x181))/0x9;if(_0x144cfd===_0x579029)break;else _0x42726e['push'](_0x42726e['shift']());}catch(_0x1e2c4a){_0x42726e['push'](_0x42726e['shift']());}}}(_0x19ae,0x82024),function(_0x97980b,_0xf898bb){var _0x511162=_0x3e8e;typeof exports==_0x511162(0x171)&&typeof module<'u'?_0xf898bb(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x511162(0x1cf)]?define(['exports',_0x511162(0x147),'@univerjs/ui',_0x511162(0x237),_0x511162(0x197),_0x511162(0x189),_0x511162(0x1ba),'@univerjs-pro/collaboration-client','@univerjs/sheets',_0x511162(0x183),_0x511162(0x1ca),'@univerjs/sheets-ui'],_0xf898bb):(_0x97980b=typeof globalThis<'u'?globalThis:_0x97980b||self,_0xf898bb(_0x97980b[_0x511162(0x207)]={},_0x97980b[_0x511162(0x22c)],_0x97980b['UniverUi'],_0x97980b[_0x511162(0x180)],_0x97980b[_0x511162(0x1a0)],_0x97980b[_0x511162(0x180)],_0x97980b['UniverProCollaboration'],_0x97980b['UniverProCollaborationClient'],_0x97980b[_0x511162(0x228)],_0x97980b[_0x511162(0x183)],_0x97980b[_0x511162(0x183)]['operators'],_0x97980b[_0x511162(0x232)]));}(this,function(_0x2ae557,_0x453450,_0x46224a,_0x5f1e5a,_0x90d784,_0x42be82,_0x266178,_0x897d58,_0x18f9b0,_0x34306b,_0x52dd43,_0x3f2a4e){'use strict';var _0x59eba7=_0x3e8e;var _0x8e8d69=Object[_0x59eba7(0x230)],_0xcebe8e=(_0x42b2ce,_0x21e70f,_0x641247)=>_0x21e70f in _0x42b2ce?_0x8e8d69(_0x42b2ce,_0x21e70f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x641247}):_0x42b2ce[_0x21e70f]=_0x641247,_0x145e3a=(_0x52571c,_0x2d6dc6,_0x570850)=>_0xcebe8e(_0x52571c,typeof _0x2d6dc6!=_0x59eba7(0x167)?_0x2d6dc6+'':_0x2d6dc6,_0x570850),_0x3dd743=function(){var _0xea2a88=_0x59eba7;return _0x3dd743=Object[_0xea2a88(0x159)]||function(_0x264d01){var _0x2f1c97=_0xea2a88;for(var _0x3ce5a3,_0x5a42ed=0x1,_0x3bb781=arguments[_0x2f1c97(0x178)];_0x5a42ed<_0x3bb781;_0x5a42ed++){_0x3ce5a3=arguments[_0x5a42ed];for(var _0x911869 in _0x3ce5a3)Object[_0x2f1c97(0x1c9)]['hasOwnProperty'][_0x2f1c97(0x1f7)](_0x3ce5a3,_0x911869)&&(_0x264d01[_0x911869]=_0x3ce5a3[_0x911869]);}return _0x264d01;},_0x3dd743['apply'](this,arguments);},_0x3665f7=function(_0xab66d7,_0x46abff){var _0x3561bb=_0x59eba7,_0x65bfff={};for(var _0x722bb6 in _0xab66d7)Object[_0x3561bb(0x1c9)][_0x3561bb(0x17c)][_0x3561bb(0x1f7)](_0xab66d7,_0x722bb6)&&_0x46abff[_0x3561bb(0x1a8)](_0x722bb6)<0x0&&(_0x65bfff[_0x722bb6]=_0xab66d7[_0x722bb6]);if(_0xab66d7!=null&&typeof Object[_0x3561bb(0x144)]=='function'){for(var _0x5b3db9=0x0,_0x722bb6=Object[_0x3561bb(0x144)](_0xab66d7);_0x5b3db9<_0x722bb6[_0x3561bb(0x178)];_0x5b3db9++)_0x46abff[_0x3561bb(0x1a8)](_0x722bb6[_0x5b3db9])<0x0&&Object[_0x3561bb(0x1c9)][_0x3561bb(0x1b1)][_0x3561bb(0x1f7)](_0xab66d7,_0x722bb6[_0x5b3db9])&&(_0x65bfff[_0x722bb6[_0x5b3db9]]=_0xab66d7[_0x722bb6[_0x5b3db9]]);}return _0x65bfff;},_0xb3725a=_0x42be82[_0x59eba7(0x196)](function(_0x48c44b,_0x425cdb){var _0x2070aa=_0x59eba7,_0x3d7d6e=_0x48c44b[_0x2070aa(0x1d2)],_0x46af5b=_0x48c44b['id'],_0x132ac1=_0x48c44b['className'],_0x1fb2f7=_0x48c44b[_0x2070aa(0x154)],_0x519b0f=_0x3665f7(_0x48c44b,['icon','id',_0x2070aa(0x19b),_0x2070aa(0x154)]),_0x5c0502=_0x2070aa(0x21d)[_0x2070aa(0x16c)](_0x46af5b,'\x20')[_0x2070aa(0x16c)](_0x132ac1||'')[_0x2070aa(0x1b0)](),_0x544232=_0x42be82['useRef']('_'['concat'](_0x4d4f4c()));return _0x2e1d42(_0x3d7d6e,''['concat'](_0x46af5b),{'defIds':_0x3d7d6e['defIds'],'idSuffix':_0x544232[_0x2070aa(0x1bf)]},_0x3dd743({'ref':_0x425cdb,'className':_0x5c0502},_0x519b0f),_0x1fb2f7);});function _0x2e1d42(_0x4b9868,_0x194787,_0x57aa54,_0x33eb0f,_0x3929fc){var _0x33bc32=_0x59eba7;return _0x42be82[_0x33bc32(0x1e7)](_0x4b9868[_0x33bc32(0x235)],_0x3dd743(_0x3dd743({'key':_0x194787},_0x4cc54a(_0x4b9868,_0x57aa54,_0x3929fc)),_0x33eb0f),(_0x4d1184(_0x4b9868,_0x57aa54)[_0x33bc32(0x16e)]||[])[_0x33bc32(0x1c6)](function(_0x452092,_0x58120d){var _0x2c620f=_0x33bc32;return _0x2e1d42(_0x452092,''[_0x2c620f(0x16c)](_0x194787,'-')['concat'](_0x4b9868['tag'],'-')[_0x2c620f(0x16c)](_0x58120d),_0x57aa54,void 0x0,_0x3929fc);}));}function _0x4cc54a(_0x200294,_0x5c1e1d,_0x3671d5){var _0x42b0f4=_0x59eba7,_0x5b83ae=_0x3dd743({},_0x200294[_0x42b0f4(0x1ed)]);_0x3671d5!=null&&_0x3671d5[_0x42b0f4(0x212)]&&_0x5b83ae['fill']===_0x42b0f4(0x212)&&(_0x5b83ae[_0x42b0f4(0x1d5)]=_0x3671d5[_0x42b0f4(0x212)]),_0x200294['tag']===_0x42b0f4(0x1e5)&&_0x5b83ae['id']&&(_0x5b83ae['id']=_0x5b83ae['id']+_0x5c1e1d[_0x42b0f4(0x165)]),Object[_0x42b0f4(0x16d)](_0x5b83ae)[_0x42b0f4(0x1f4)](function(_0xa9f10f){var _0x170041=_0x42b0f4,_0x3548ba=_0xa9f10f[0x0],_0x4d5f7d=_0xa9f10f[0x1];_0x3548ba===_0x170041(0x1e5)&&typeof _0x4d5f7d==_0x170041(0x188)&&(_0x5b83ae[_0x3548ba]=_0x4d5f7d[_0x170041(0x218)](/url\(#(.*)\)/,_0x170041(0x1a9)[_0x170041(0x16c)](_0x5c1e1d[_0x170041(0x165)],')')));});var _0xf39884=_0x5c1e1d[_0x42b0f4(0x158)];return!_0xf39884||_0xf39884[_0x42b0f4(0x178)]===0x0||(_0x200294[_0x42b0f4(0x235)]===_0x42b0f4(0x156)&&_0x5b83ae[_0x42b0f4(0x1b2)]&&(_0x5b83ae[_0x42b0f4(0x1b2)]=_0x5b83ae[_0x42b0f4(0x1b2)]+_0x5c1e1d[_0x42b0f4(0x165)]),Object[_0x42b0f4(0x16d)](_0x5b83ae)[_0x42b0f4(0x1f4)](function(_0x2763c9){var _0x251430=_0x42b0f4,_0x28e854=_0x2763c9[0x0],_0x45cf1c=_0x2763c9[0x1];typeof _0x45cf1c==_0x251430(0x188)&&(_0x5b83ae[_0x28e854]=_0x45cf1c['replace'](/url\(#(.*)\)/,_0x251430(0x1a9)['concat'](_0x5c1e1d[_0x251430(0x165)],')')));})),_0x5b83ae;}function _0x4d1184(_0x4283b7,_0xa62bf6){var _0x21a4ca=_0x59eba7,_0xfe642c,_0x3b5aaa=_0xa62bf6[_0x21a4ca(0x158)];return!_0x3b5aaa||_0x3b5aaa[_0x21a4ca(0x178)]===0x0?_0x4283b7:_0x4283b7['tag']===_0x21a4ca(0x1a2)&&(!((_0xfe642c=_0x4283b7[_0x21a4ca(0x16e)])===null||_0xfe642c===void 0x0)&&_0xfe642c[_0x21a4ca(0x178)])?_0x3dd743(_0x3dd743({},_0x4283b7),{'children':_0x4283b7[_0x21a4ca(0x16e)]['map'](function(_0x26ffb8){var _0xafa503=_0x21a4ca;return typeof _0x26ffb8[_0xafa503(0x1ed)]['id']==_0xafa503(0x188)&&_0x3b5aaa&&_0x3b5aaa[_0xafa503(0x1b4)](_0x26ffb8['attrs']['id'])?_0x3dd743(_0x3dd743({},_0x26ffb8),{'attrs':_0x3dd743(_0x3dd743({},_0x26ffb8[_0xafa503(0x1ed)]),{'id':_0x26ffb8[_0xafa503(0x1ed)]['id']+_0xa62bf6['idSuffix']})}):_0x26ffb8;})}):_0x4283b7;}function _0x4d4f4c(){var _0xb8223d=_0x59eba7;return Math[_0xb8223d(0x146)]()[_0xb8223d(0x17a)](0x24)[_0xb8223d(0x21e)](0x2,0x8);}_0xb3725a[_0x59eba7(0x1de)]=_0x59eba7(0x20d);var _0xb85c0c={'tag':_0x59eba7(0x1e0),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x59eba7(0x198),'viewBox':_0x59eba7(0x1e4),'width':_0x59eba7(0x1ce),'height':'1em'},'children':[{'tag':_0x59eba7(0x238),'attrs':{'fill':_0x59eba7(0x152),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x59eba7(0x238),'attrs':{'fill':_0x59eba7(0x152),'d':_0x59eba7(0x210),'fillRule':_0x59eba7(0x195),'clipRule':_0x59eba7(0x195)}}]},_0x208bcc=_0x42be82[_0x59eba7(0x196)](function(_0x461a7d,_0x47a128){var _0x13afc2=_0x59eba7;return _0x42be82[_0x13afc2(0x1e7)](_0xb3725a,Object[_0x13afc2(0x159)]({},_0x461a7d,{'id':_0x13afc2(0x216),'ref':_0x47a128,'icon':_0xb85c0c}));});_0x208bcc[_0x59eba7(0x1de)]=_0x59eba7(0x224);class _0x2db617 extends _0x453450['Disposable']{constructor(){var _0x57c1e0=_0x59eba7;super(...arguments),_0x145e3a(this,_0x57c1e0(0x16f),new Set()),_0x145e3a(this,_0x57c1e0(0x1c3),new Set());}[_0x59eba7(0x1d8)](_0x599083){var _0x1f47c2=_0x59eba7;return this[_0x1f47c2(0x16f)][_0x1f47c2(0x16b)](_0x599083),_0x453450['toDisposable'](()=>this[_0x1f47c2(0x16f)][_0x1f47c2(0x21a)](_0x599083));}[_0x59eba7(0x18e)](_0x39aee2){var _0x5dd02b=_0x59eba7;return this[_0x5dd02b(0x1c3)]['add'](_0x39aee2),_0x453450[_0x5dd02b(0x211)](()=>this[_0x5dd02b(0x1c3)][_0x5dd02b(0x21a)](_0x39aee2));}[_0x59eba7(0x22f)](_0x58d4cd){var _0x5f13df=_0x59eba7;return this[_0x5f13df(0x16f)][_0x5f13df(0x175)](_0x58d4cd);}[_0x59eba7(0x219)](_0x49c4bf){var _0x4b4a1d=_0x59eba7;return Array[_0x4b4a1d(0x18a)](this[_0x4b4a1d(0x1c3)])['map'](_0x37b91f=>_0x37b91f(_0x49c4bf));}}var _0x2b3cb6=Object[_0x59eba7(0x229)],_0x20b616=(_0x264375,_0x3e31a7,_0x46e5f3,_0x307d3a)=>{var _0x2e39fc=_0x59eba7;for(var _0x58ebbb=_0x307d3a>0x1?void 0x0:_0x307d3a?_0x2b3cb6(_0x3e31a7,_0x46e5f3):_0x3e31a7,_0x5c6d81=_0x264375[_0x2e39fc(0x178)]-0x1,_0xbb79b1;_0x5c6d81>=0x0;_0x5c6d81--)(_0xbb79b1=_0x264375[_0x5c6d81])&&(_0x58ebbb=_0xbb79b1(_0x58ebbb)||_0x58ebbb);return _0x58ebbb;},_0x226670=(_0xce1c18,_0x9efd62)=>(_0x4fadd9,_0x366aba)=>_0x9efd62(_0x4fadd9,_0x366aba,_0xce1c18);_0x2ae557['LiveShareController']=class extends _0x453450[_0x59eba7(0x1c1)]{constructor(_0x5e0f7a,_0x4d057c,_0x497419){var _0x293b85=_0x59eba7;super(),_0x145e3a(this,_0x293b85(0x151),new Map()),(this[_0x293b85(0x192)]=_0x5e0f7a,this[_0x293b85(0x1dd)]=_0x4d057c,this[_0x293b85(0x209)]=_0x497419,this[_0x293b85(0x14e)]());}async[_0x59eba7(0x14d)](_0x4cdb15){var _0x44dcdd=_0x59eba7;return this['_entities']['has'](_0x4cdb15)||await this[_0x44dcdd(0x187)](_0x4cdb15),this[_0x44dcdd(0x151)]['get'](_0x4cdb15);}[_0x59eba7(0x14e)](){var _0x17cea1=_0x59eba7;this[_0x17cea1(0x192)][_0x17cea1(0x1d7)](_0x453450[_0x17cea1(0x160)]['UNIVER_SHEET'])['pipe'](_0x52dd43[_0x17cea1(0x184)](this[_0x17cea1(0x1c2)]))[_0x17cea1(0x14f)](async _0x1de0b3=>{var _0x4abecc=_0x17cea1;const _0x325fa3=_0x1de0b3['getUnitId']();this[_0x4abecc(0x151)][_0x4abecc(0x175)](_0x325fa3)||this[_0x4abecc(0x187)](_0x325fa3);}),this[_0x17cea1(0x192)][_0x17cea1(0x1a3)](_0x453450[_0x17cea1(0x160)][_0x17cea1(0x205)])[_0x17cea1(0x21b)](_0x52dd43['takeUntil'](this[_0x17cea1(0x1c2)]))['subscribe'](_0x4a6dde=>{var _0x2d53e2=_0x17cea1;const _0x3192ed=_0x4a6dde[_0x2d53e2(0x157)](),_0x25bdfa=this[_0x2d53e2(0x151)]['get'](_0x3192ed);_0x25bdfa==null||_0x25bdfa[_0x2d53e2(0x1fa)]();});}async['_startLiveShareCoordinator'](_0x5b869f){var _0x49e530=_0x59eba7;const _0xbe3818=await this['_collabSessionService'][_0x49e530(0x20c)](_0x5b869f),_0x2e2e15=this[_0x49e530(0x1dd)][_0x49e530(0x199)](_0x2ae557[_0x49e530(0x1dc)],_0x5b869f,_0xbe3818);return _0x2e2e15[_0x49e530(0x173)](),this[_0x49e530(0x151)][_0x49e530(0x1cd)](_0x5b869f,_0x2e2e15),_0x2e2e15;}},_0x2ae557[_0x59eba7(0x225)]=_0x20b616([_0x226670(0x0,_0x453450[_0x59eba7(0x194)]),_0x226670(0x1,_0x453450[_0x59eba7(0x21f)](_0x453450['Injector'])),_0x226670(0x2,_0x453450[_0x59eba7(0x21f)](_0x897d58[_0x59eba7(0x21c)]))],_0x2ae557[_0x59eba7(0x225)]);var _0x2b7454=(_0x1199b8=>(_0x1199b8[_0x59eba7(0x185)]=_0x59eba7(0x20e),_0x1199b8[_0x59eba7(0x162)]=_0x59eba7(0x220),_0x1199b8[_0x59eba7(0x18b)]=_0x59eba7(0x150),_0x1199b8['NOT_FOLLOWING']=_0x59eba7(0x206),_0x1199b8[_0x59eba7(0x1d3)]='presenting',_0x1199b8))(_0x2b7454||{});const _0x17b247=_0x59eba7(0x1f8),_0x59b40e=0xc8;_0x2ae557[_0x59eba7(0x1dc)]=class extends _0x453450[_0x59eba7(0x1c1)]{constructor(_0x203a07,_0x291b5a,_0x7ed705,_0x46e12d,_0x5275c9){var _0x1f1e53=_0x59eba7;super(),_0x145e3a(this,'_status$',new _0x34306b[(_0x1f1e53(0x16a))](_0x1f1e53(0x220))),_0x145e3a(this,_0x1f1e53(0x166),this[_0x1f1e53(0x1a4)][_0x1f1e53(0x1da)]()),_0x145e3a(this,_0x1f1e53(0x14e),!0x1),_0x145e3a(this,'_commandDisposable',null),_0x145e3a(this,_0x1f1e53(0x153),null),(this[_0x1f1e53(0x18d)]=_0x203a07,this['_collabSession']=_0x291b5a,this[_0x1f1e53(0x222)]=_0x7ed705,this[_0x1f1e53(0x1ab)]=_0x46e12d,this['_commandService']=_0x5275c9);}get[_0x59eba7(0x179)](){var _0x45a363=_0x59eba7;return this[_0x45a363(0x1a4)][_0x45a363(0x18f)]();}[_0x59eba7(0x1fa)](){var _0x415b3f=_0x59eba7,_0x573318;(_0x573318=this[_0x415b3f(0x1df)])==null||_0x573318[_0x415b3f(0x1fa)](),this['_status$']['next'](_0x415b3f(0x220)),this['_status$']['complete']();}[_0x59eba7(0x173)](){var _0x33b142=_0x59eba7;this[_0x33b142(0x14e)]||(this[_0x33b142(0x14e)]=!0x0,this[_0x33b142(0x20a)][_0x33b142(0x174)]['pipe'](_0x52dd43[_0x33b142(0x184)](this[_0x33b142(0x1c2)]))['subscribe'](_0x6178e1=>{var _0x247171=_0x33b142;switch(_0x6178e1){case _0x897d58[_0x247171(0x1b7)]['OFFLINE']:this[_0x247171(0x22b)]();break;case _0x897d58['SessionStatus'][_0x247171(0x1e3)]:this[_0x247171(0x155)]();break;}}),this['_collabSession'][_0x33b142(0x1a1)][_0x33b142(0x21b)](_0x52dd43[_0x33b142(0x184)](this[_0x33b142(0x1c2)]))[_0x33b142(0x14f)](_0x2116de=>{var _0x55bab8=_0x33b142;const {eventID:_0x110016}=_0x2116de;switch(_0x110016){case _0x266178['CollaborationEvent'][_0x55bab8(0x239)]:this[_0x55bab8(0x1d4)](_0x2116de);break;case _0x266178[_0x55bab8(0x233)][_0x55bab8(0x226)]:this[_0x55bab8(0x15c)](_0x2116de);break;case _0x266178[_0x55bab8(0x233)]['LIVESHARE_TERMINATE']:this[_0x55bab8(0x17b)]();break;case _0x266178[_0x55bab8(0x233)][_0x55bab8(0x1a5)]:this['_handleNewChangeSets'](_0x2116de);break;}}));}[_0x59eba7(0x1ec)](){var _0x15b065=_0x59eba7;this[_0x15b065(0x20a)]['send']({'eventID':_0x266178[_0x15b065(0x233)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x15b065(0x20a)][_0x15b065(0x1be)]()}},this['_unitID']);}[_0x59eba7(0x200)](){var _0x5bee0e=_0x59eba7;this[_0x5bee0e(0x179)]==='presenting'&&(this[_0x5bee0e(0x1a4)]['next'](_0x5bee0e(0x220)),this[_0x5bee0e(0x20a)][_0x5bee0e(0x204)]({'eventID':_0x266178['CollaborationEvent'][_0x5bee0e(0x145)],'data':{'unitID':this[_0x5bee0e(0x18d)]}},this[_0x5bee0e(0x18d)]));}[_0x59eba7(0x1d6)](){var _0x5d8c4b=_0x59eba7;this['_status']==='not-following'&&(this[_0x5d8c4b(0x1a4)][_0x5d8c4b(0x15b)](_0x5d8c4b(0x150)),this[_0x5d8c4b(0x227)]());}['stopFollowing'](){var _0x130d79=_0x59eba7;this[_0x130d79(0x179)]===_0x130d79(0x150)&&this[_0x130d79(0x169)]();}[_0x59eba7(0x1d4)](_0x4d4009){var _0x2907a7=_0x59eba7;const {presenter:_0x3d4931}=_0x4d4009[_0x2907a7(0x1bc)],_0x257d6f=this[_0x2907a7(0x20a)]['getMemberID']();this[_0x2907a7(0x153)]=_0x3d4931,_0x3d4931===_0x257d6f?(this[_0x2907a7(0x169)](),this[_0x2907a7(0x1ee)]()):this['_status']!==_0x2907a7(0x206)&&(this[_0x2907a7(0x15f)](),this['_startFollowing']());}[_0x59eba7(0x1f9)](){var _0x2b4411=_0x59eba7;const _0x4c11bd={'eventID':_0x266178[_0x2b4411(0x233)][_0x2b4411(0x1bb)]};this['_collabSession'][_0x2b4411(0x204)](_0x4c11bd,this[_0x2b4411(0x18d)]);}[_0x59eba7(0x17b)](){var _0x340b08=_0x59eba7;this['_presenter']=null,this[_0x340b08(0x179)]!==_0x340b08(0x14a)&&this[_0x340b08(0x161)]();}[_0x59eba7(0x1e1)](_0x4d54e5){var _0x252c18=_0x59eba7;if(this[_0x252c18(0x179)]===_0x252c18(0x150)&&this[_0x252c18(0x153)]===_0x4d54e5[_0x252c18(0x1bc)]['memberID']){const _0x221230=_0x266178['parseProtocolChangeset'](_0x4d54e5[_0x252c18(0x1bc)])[_0x252c18(0x1c0)]['reverse']()['find'](_0x14e53b=>_0x14e53b['id']===_0x18f9b0[_0x252c18(0x17d)]['id']);if(_0x221230){const _0x2a120b=_0x221230[_0x252c18(0x19a)][_0x252c18(0x1ff)],_0x5f0d90=_0x221230[_0x252c18(0x19a)][_0x252c18(0x1ae)]['id'];setTimeout(()=>{var _0x2d1483=_0x252c18;this[_0x2d1483(0x22a)][_0x2d1483(0x193)](_0x18f9b0[_0x2d1483(0x19f)]['id'],{'unitId':_0x2a120b,'subUnitId':_0x5f0d90},{'fromCollab':!0x0});});}}}[_0x59eba7(0x1ee)](){var _0x460f3c=_0x59eba7;this[_0x460f3c(0x1a4)][_0x460f3c(0x15b)](_0x460f3c(0x14a));const _0xd7fc47=new Map(),_0x28022d=this[_0x460f3c(0x1df)]=new _0x453450[(_0x460f3c(0x1aa))]();_0x28022d[_0x460f3c(0x16b)](_0x453450[_0x460f3c(0x211)](()=>{var _0x24eca8=_0x460f3c;_0xd7fc47[_0x24eca8(0x1f4)](_0x286bc3=>_0x286bc3[_0x24eca8(0x1eb)]()),_0xd7fc47[_0x24eca8(0x1f1)]();})),_0x28022d['add'](this[_0x460f3c(0x22a)][_0x460f3c(0x202)](_0x44b943=>{var _0x1f6c46=_0x460f3c,_0x2a85b5;if(_0x44b943[_0x1f6c46(0x1a7)]!==_0x453450[_0x1f6c46(0x1c4)][_0x1f6c46(0x186)]||!this[_0x1f6c46(0x1ab)]['shouldShareOperation'](_0x44b943['id']))return;const {id:_0x55a08e}=_0x44b943;let _0x1a551a;_0xd7fc47[_0x1f6c46(0x175)](_0x55a08e)?_0x1a551a=_0xd7fc47[_0x1f6c46(0x177)](_0x55a08e):(_0x1a551a=new _0x34306b['Subject'](),_0xd7fc47['set'](_0x55a08e,_0x1a551a),_0x1a551a[_0x1f6c46(0x21b)](_0x52dd43[_0x1f6c46(0x15a)]((_0x2a85b5=this[_0x1f6c46(0x222)]['getConfig'](_0x17b247))!=null?_0x2a85b5:_0x59b40e,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1f6c46(0x14f)](_0x22d03e=>{var _0x52138a=_0x1f6c46;this[_0x52138a(0x20a)][_0x52138a(0x204)]({'eventID':_0x266178[_0x52138a(0x233)][_0x52138a(0x226)],'data':{'unitID':this[_0x52138a(0x18d)],'operations':{[_0x22d03e['id']]:{'id':_0x22d03e['id'],'params':JSON[_0x52138a(0x22d)](_0x22d03e[_0x52138a(0x19a)])}}}},this[_0x52138a(0x18d)]);})),_0x1a551a['next'](_0x44b943);})),this['_liveShareService']['getInitialStates'](this[_0x460f3c(0x18d)])[_0x460f3c(0x1f4)](_0x5429a7=>this['_collabSession'][_0x460f3c(0x204)]({'eventID':_0x266178[_0x460f3c(0x233)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x5429a7['id']]:{'id':_0x5429a7['id'],'params':JSON[_0x460f3c(0x22d)](_0x5429a7[_0x460f3c(0x19a)])}}}},this[_0x460f3c(0x18d)]));}[_0x59eba7(0x15f)](){var _0x15fb2b=_0x59eba7,_0x529a6a;this[_0x15fb2b(0x1a4)]['next'](_0x15fb2b(0x220)),(_0x529a6a=this['_commandDisposable'])==null||_0x529a6a[_0x15fb2b(0x1fa)](),this[_0x15fb2b(0x1df)]=null;}[_0x59eba7(0x227)](){var _0x389306=_0x59eba7,_0x223ef2;(_0x223ef2=this['_commandDisposable'])==null||_0x223ef2[_0x389306(0x1fa)](),this['_status$'][_0x389306(0x15b)](_0x389306(0x150));}[_0x59eba7(0x161)](){var _0x4dc107=_0x59eba7,_0x273ce5;this[_0x4dc107(0x1a4)]['next']('idle'),(_0x273ce5=this[_0x4dc107(0x1df)])==null||_0x273ce5[_0x4dc107(0x1fa)](),this[_0x4dc107(0x1df)]=null;}[_0x59eba7(0x169)](){var _0x429d74=_0x59eba7,_0x471d2a;this[_0x429d74(0x1a4)]['next'](_0x429d74(0x206)),(_0x471d2a=this[_0x429d74(0x1df)])==null||_0x471d2a[_0x429d74(0x1fa)]();}[_0x59eba7(0x15c)](_0x419be1){var _0x305687=_0x59eba7;if([_0x305687(0x14a),_0x305687(0x206),'offline']['includes'](this[_0x305687(0x179)])||!_0x419be1['data'][_0x305687(0x1e9)]||_0x419be1['data'][_0x305687(0x1e9)]===this[_0x305687(0x20a)][_0x305687(0x1be)]())return;this[_0x305687(0x179)]===_0x305687(0x220)&&this[_0x305687(0x227)]();const _0x52d922=_0x419be1[_0x305687(0x1bc)][_0x305687(0x231)];Object[_0x305687(0x1d9)](_0x52d922)[_0x305687(0x1f4)](_0xf94cca=>{var _0x1ac69a=_0x305687;this[_0x1ac69a(0x22a)][_0x1ac69a(0x193)](_0xf94cca['id'],_0xf94cca[_0x1ac69a(0x19a)]?JSON[_0x1ac69a(0x18c)](_0xf94cca['params']):null,{'fromCollab':!0x0});});}[_0x59eba7(0x22b)](){var _0x5a977c=_0x59eba7,_0x34179a;this['_status$'][_0x5a977c(0x15b)]('offline'),(_0x34179a=this['_commandDisposable'])==null||_0x34179a['dispose']();}['_handleOnline'](){var _0x39474c=_0x59eba7;this[_0x39474c(0x1a4)][_0x39474c(0x15b)]('idle'),this[_0x39474c(0x1f9)]();}},_0x2ae557['LiveShareCoordinator']=_0x20b616([_0x226670(0x2,_0x453450[_0x59eba7(0x1d1)]),_0x226670(0x3,_0x453450[_0x59eba7(0x21f)](_0x2db617)),_0x226670(0x4,_0x453450[_0x59eba7(0x170)])],_0x2ae557[_0x59eba7(0x1dc)]);function _0x576f4c(){var _0x55c019=_0x59eba7;const _0x330ea3=_0x46224a[_0x55c019(0x1b3)](_0x2ae557[_0x55c019(0x225)]),_0x9e6351=_0x46224a['useDependency'](_0x453450[_0x55c019(0x194)]),_0x11d36c=_0x46224a[_0x55c019(0x1a6)](()=>_0x9e6351[_0x55c019(0x1f6)](_0x453450[_0x55c019(0x160)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0xc1c37b,_0x45f250]=_0x42be82[_0x55c019(0x164)](null),[_0x523e0,_0x484d87]=_0x42be82['useState'](_0x2b7454[_0x55c019(0x162)]),_0x4a2ff6=_0x42be82[_0x55c019(0x214)](null);return _0x42be82[_0x55c019(0x19d)](()=>(_0x11d36c&&_0x330ea3[_0x55c019(0x14d)](_0x11d36c[_0x55c019(0x157)]())['then'](_0x1e598d=>{var _0x22b2cc=_0x55c019;_0x45f250(_0x1e598d),_0x4a2ff6[_0x22b2cc(0x1bf)]=_0x1e598d['status$'][_0x22b2cc(0x14f)](_0xfd1c01=>{_0x484d87(_0xfd1c01);});}),()=>{var _0x364279=_0x55c019,_0x20e24d;(_0x20e24d=_0x4a2ff6['current'])==null||_0x20e24d[_0x364279(0x15d)](),_0x4a2ff6[_0x364279(0x1bf)]=null;}),[_0x11d36c,_0x330ea3]),_0xc1c37b?_0x5f1e5a[_0x55c019(0x1cb)](_0x90d784['Dropdown'],{'align':_0x55c019(0x217),'disabled':_0x523e0===_0x2b7454['OFFLINE'],'className':_0x55c019(0x20f),'overlay':_0x5f1e5a[_0x55c019(0x1cb)](_0x10f251,{'status':_0x523e0,'coordinator':_0xc1c37b}),'children':_0x5f1e5a[_0x55c019(0x1cb)](_0x55c019(0x1af),{'className':_0x90d784[_0x55c019(0x23a)](_0x55c019(0x1e8),{'univer-cursor-not-allowed':_0x523e0===_0x2b7454[_0x55c019(0x185)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x523e0!==_0x2b7454['OFFLINE']}),'type':_0x55c019(0x1af),'children':_0x5f1e5a[_0x55c019(0x1cb)](_0x208bcc,{'className':_0x55c019(0x1b6)})})}):null;}function _0x10f251(_0x5b5b25){var _0x326cdc=_0x59eba7;const {status:_0x418c8e,coordinator:_0x3dfe45}=_0x5b5b25;switch(_0x418c8e){case _0x2b7454[_0x326cdc(0x162)]:return _0x5f1e5a['jsx'](_0x11d805,{'coordinator':_0x3dfe45});case _0x2b7454[_0x326cdc(0x18b)]:return _0x5f1e5a[_0x326cdc(0x1cb)](_0x584035,{'coordinator':_0x3dfe45});case _0x2b7454[_0x326cdc(0x14c)]:return _0x5f1e5a[_0x326cdc(0x1cb)](_0x218bae,{'coordinator':_0x3dfe45});case _0x2b7454[_0x326cdc(0x185)]:return _0x5f1e5a[_0x326cdc(0x1cb)](_0x170ddf,{});case _0x2b7454[_0x326cdc(0x1d3)]:return _0x5f1e5a[_0x326cdc(0x1cb)](_0x49cc7c,{'coordinator':_0x3dfe45});default:return null;}}function _0x11d805(_0x34525d){var _0x834960=_0x59eba7;const {coordinator:_0x549644}=_0x34525d;return _0x5f1e5a[_0x834960(0x14b)](_0x5f1e5a[_0x834960(0x1ac)],{'children':[_0x5f1e5a['jsx'](_0x834960(0x1ad),{'className':_0x834960(0x1b8),'children':_0x834960(0x215)}),_0x5f1e5a[_0x834960(0x1cb)](_0x90d784[_0x834960(0x172)],{'onClick':()=>_0x549644[_0x834960(0x1ec)](),'children':_0x834960(0x1bd)})]});}function _0x584035(_0x15617d){var _0xf8b6b4=_0x59eba7;const {coordinator:_0x5a491d}=_0x15617d;return _0x5f1e5a[_0xf8b6b4(0x14b)](_0x5f1e5a[_0xf8b6b4(0x1ac)],{'children':[_0x5f1e5a[_0xf8b6b4(0x1cb)](_0xf8b6b4(0x1ad),{'className':_0xf8b6b4(0x1b8),'children':_0xf8b6b4(0x1f3)}),_0x5f1e5a[_0xf8b6b4(0x1cb)](_0x90d784[_0xf8b6b4(0x172)],{'onClick':()=>_0x5a491d[_0xf8b6b4(0x203)](),'children':_0xf8b6b4(0x15e)})]});}function _0x218bae(_0x136442){var _0x307420=_0x59eba7;const {coordinator:_0x41e6fc}=_0x136442;return _0x5f1e5a[_0x307420(0x14b)](_0x5f1e5a[_0x307420(0x1ac)],{'children':[_0x5f1e5a[_0x307420(0x1cb)](_0x307420(0x1ad),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x307420(0x1c5)}),_0x5f1e5a[_0x307420(0x1cb)](_0x90d784[_0x307420(0x172)],{'variant':_0x307420(0x1d0),'onClick':()=>_0x41e6fc[_0x307420(0x1d6)](),'children':_0x307420(0x1e2)})]});}function _0x49cc7c(_0x20a8ee){var _0x1c9736=_0x59eba7;const {coordinator:_0x3aadce}=_0x20a8ee;return _0x5f1e5a[_0x1c9736(0x14b)](_0x5f1e5a['Fragment'],{'children':[_0x5f1e5a['jsx']('div',{'className':_0x1c9736(0x1b8),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x5f1e5a['jsx'](_0x90d784[_0x1c9736(0x172)],{'variant':_0x1c9736(0x1e6),'onClick':()=>_0x3aadce[_0x1c9736(0x200)](),'children':_0x1c9736(0x236)})]});}function _0x170ddf(){var _0x432010=_0x59eba7;return _0x5f1e5a[_0x432010(0x1cb)](_0x5f1e5a[_0x432010(0x1ac)],{'children':_0x432010(0x149)});}var _0x2ed600=Object[_0x59eba7(0x229)],_0x356d3d=(_0x48af8d,_0x584a48,_0x76de00,_0x176536)=>{var _0x5b0a87=_0x59eba7;for(var _0x1e567d=_0x176536>0x1?void 0x0:_0x176536?_0x2ed600(_0x584a48,_0x76de00):_0x584a48,_0x4dcb65=_0x48af8d[_0x5b0a87(0x178)]-0x1,_0x2c5957;_0x4dcb65>=0x0;_0x4dcb65--)(_0x2c5957=_0x48af8d[_0x4dcb65])&&(_0x1e567d=_0x2c5957(_0x1e567d)||_0x1e567d);return _0x1e567d;},_0x3c8d52=(_0x4fa229,_0x57ecfe)=>(_0x6f93dd,_0x4185e9)=>_0x57ecfe(_0x6f93dd,_0x4185e9,_0x4fa229);_0x2ae557[_0x59eba7(0x221)]=class extends _0x453450[_0x59eba7(0x143)]{constructor(_0x4d9fee,_0x5ecda7){var _0x1c590e=_0x59eba7;super(),this[_0x1c590e(0x1dd)]=_0x4d9fee,this['_uiPartsService']=_0x5ecda7,this['_mountLiveShare']();}[_0x59eba7(0x148)](){var _0x576c1a=_0x59eba7;this[_0x576c1a(0x201)](this[_0x576c1a(0x1ef)][_0x576c1a(0x19e)](_0x46224a['BuiltInUIPart']['HEADER_MENU'],()=>_0x46224a[_0x576c1a(0x182)](_0x576f4c,this[_0x576c1a(0x1dd)])));}},_0x2ae557[_0x59eba7(0x221)]=_0x356d3d([_0x3c8d52(0x0,_0x453450['Inject'](_0x453450[_0x59eba7(0x163)])),_0x3c8d52(0x1,_0x46224a[_0x59eba7(0x168)])],_0x2ae557[_0x59eba7(0x221)]);const _0x13a3e2=_0x59eba7(0x176),_0x3ad231={};var _0x661db5=Object[_0x59eba7(0x229)],_0x2a419c=(_0x33c007,_0x4ff1ce,_0x31b6be,_0x3bae2a)=>{var _0x4ec69e=_0x59eba7;for(var _0x271533=_0x3bae2a>0x1?void 0x0:_0x3bae2a?_0x661db5(_0x4ff1ce,_0x31b6be):_0x4ff1ce,_0x2978aa=_0x33c007[_0x4ec69e(0x178)]-0x1,_0x287cc3;_0x2978aa>=0x0;_0x2978aa--)(_0x287cc3=_0x33c007[_0x2978aa])&&(_0x271533=_0x287cc3(_0x271533)||_0x271533);return _0x271533;},_0x4f0f25=(_0x2b7c62,_0x31c1d8)=>(_0x1548a6,_0x426035)=>_0x31c1d8(_0x1548a6,_0x426035,_0x2b7c62);let _0x3368c1=class extends _0x453450['Disposable']{constructor(_0x31836c){var _0x1181e7=_0x59eba7;super(),this[_0x1181e7(0x1ab)]=_0x31836c,this[_0x1181e7(0x14e)]();}[_0x59eba7(0x14e)](){var _0xaf79bf=_0x59eba7;[_0x3f2a4e['SetZoomRatioOperation']['id'],_0x3f2a4e[_0xaf79bf(0x142)]['id'],_0x18f9b0[_0xaf79bf(0x19f)]['id']][_0xaf79bf(0x1f4)](_0x22fb79=>{var _0x10cc9c=_0xaf79bf;this['disposeWithMe'](this[_0x10cc9c(0x1ab)][_0x10cc9c(0x1d8)](_0x22fb79));});}};_0x3368c1=_0x2a419c([_0x4f0f25(0x0,_0x453450[_0x59eba7(0x21f)](_0x2db617))],_0x3368c1);var _0x1d784d=Object[_0x59eba7(0x230)],_0x4f4f85=Object[_0x59eba7(0x229)],_0x101da5=(_0x1edf38,_0x29344d,_0x237105)=>_0x29344d in _0x1edf38?_0x1d784d(_0x1edf38,_0x29344d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x237105}):_0x1edf38[_0x29344d]=_0x237105,_0x5ee6d4=(_0x2708e9,_0x53c398,_0x1b70f7,_0x47a112)=>{var _0x4cdec4=_0x59eba7;for(var _0x20b0c6=_0x47a112>0x1?void 0x0:_0x47a112?_0x4f4f85(_0x53c398,_0x1b70f7):_0x53c398,_0x1bcf90=_0x2708e9[_0x4cdec4(0x178)]-0x1,_0x5d9042;_0x1bcf90>=0x0;_0x1bcf90--)(_0x5d9042=_0x2708e9[_0x1bcf90])&&(_0x20b0c6=_0x5d9042(_0x20b0c6)||_0x20b0c6);return _0x20b0c6;},_0x26912a=(_0x4851a4,_0x31208f)=>(_0x2b76d1,_0x137581)=>_0x31208f(_0x2b76d1,_0x137581,_0x4851a4),_0x3b8542=(_0x1590a2,_0x57453e,_0x10dce8)=>_0x101da5(_0x1590a2,typeof _0x57453e!=_0x59eba7(0x167)?_0x57453e+'':_0x57453e,_0x10dce8);const _0x3ccfc2=_0x59eba7(0x208);_0x2ae557[_0x59eba7(0x1b9)]=class extends _0x453450['Plugin']{constructor(_0x304a88=_0x3ad231,_0x461729,_0x17f835){var _0x90729a=_0x59eba7;super(),this[_0x90729a(0x17e)]=_0x304a88,this[_0x90729a(0x1dd)]=_0x461729,this[_0x90729a(0x222)]=_0x17f835;const {..._0x4d76c8}=_0x453450[_0x90729a(0x1db)]({},_0x3ad231,this[_0x90729a(0x17e)]);this[_0x90729a(0x222)][_0x90729a(0x1f5)](_0x13a3e2,_0x4d76c8);}['onStarting'](){var _0x56a32f=_0x59eba7;_0x453450['registerDependencies'](this[_0x56a32f(0x1dd)],_0x453450[_0x56a32f(0x1fd)]([[_0x2db617],[_0x2ae557[_0x56a32f(0x225)]],[_0x3368c1],[_0x2ae557[_0x56a32f(0x221)]]],this[_0x56a32f(0x17e)][_0x56a32f(0x213)])),_0x453450['touchDependencies'](this['_injector'],[[_0x3368c1]]);}[_0x59eba7(0x191)](){var _0x3815c5=_0x59eba7;_0x453450[_0x3815c5(0x22e)](this[_0x3815c5(0x1dd)],[[_0x2ae557[_0x3815c5(0x221)]]]);}},_0x3b8542(_0x2ae557[_0x59eba7(0x1b9)],'type',_0x453450['UniverInstanceType'][_0x59eba7(0x1ea)]),_0x3b8542(_0x2ae557[_0x59eba7(0x1b9)],_0x59eba7(0x1f0),_0x3ccfc2),_0x2ae557[_0x59eba7(0x1b9)]=_0x5ee6d4([_0x453450[_0x59eba7(0x1c8)](_0x897d58[_0x59eba7(0x19c)]),_0x26912a(0x1,_0x453450['Inject'](_0x453450['Injector'])),_0x26912a(0x2,_0x453450['IConfigService'])],_0x2ae557[_0x59eba7(0x1b9)]),_0x2ae557[_0x59eba7(0x1b5)]=_0x576f4c,_0x2ae557['LiveShareService']=_0x2db617,_0x2ae557[_0x59eba7(0x1fc)]=_0x2b7454,Object['defineProperty'](_0x2ae557,Symbol[_0x59eba7(0x1fb)],{'value':_0x59eba7(0x1cc)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.9",
|
|
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.8",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.10.
|
|
51
|
-
"@univerjs-pro/collaboration-client": "0.10.
|
|
52
|
-
"@univerjs/core": "0.10.
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs/sheets-ui": "0.10.
|
|
56
|
-
"@univerjs/ui": "0.10.
|
|
50
|
+
"@univerjs-pro/collaboration": "0.10.9",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.10.9",
|
|
52
|
+
"@univerjs/core": "0.10.9",
|
|
53
|
+
"@univerjs/sheets": "0.10.9",
|
|
54
|
+
"@univerjs/design": "0.10.9",
|
|
55
|
+
"@univerjs/sheets-ui": "0.10.9",
|
|
56
|
+
"@univerjs/ui": "0.10.9"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.6",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"typescript": "^5.9.2",
|
|
64
64
|
"vite": "^7.1.3",
|
|
65
65
|
"vitest": "^3.2.4",
|
|
66
|
-
"@univerjs-infra/shared": "0.10.
|
|
66
|
+
"@univerjs-infra/shared": "0.10.9",
|
|
67
67
|
"@univerjs/protocol": "0.1.47-alpha.0"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|