@univerjs-pro/live-share 0.12.3-experimental.20251205-e439e48 → 0.12.3-experimental.20251205-8c9a6bf
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/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +11 -11
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5b621a=_0x1c8b;(function(_0x5c5f4e,_0x48dc39){const _0x47fcec=_0x1c8b,_0x26c1ad=_0x5c5f4e();while(!![]){try{const _0x18dec6=parseInt(_0x47fcec(0x142))/0x1+-parseInt(_0x47fcec(0x121))/0x2*(-parseInt(_0x47fcec(0x135))/0x3)+-parseInt(_0x47fcec(0x128))/0x4+-parseInt(_0x47fcec(0x122))/0x5+parseInt(_0x47fcec(0x136))/0x6*(-parseInt(_0x47fcec(0x130))/0x7)+parseInt(_0x47fcec(0x127))/0x8*(-parseInt(_0x47fcec(0x13a))/0x9)+-parseInt(_0x47fcec(0x134))/0xa;if(_0x18dec6===_0x48dc39)break;else _0x26c1ad['push'](_0x26c1ad['shift']());}catch(_0x1376ab){_0x26c1ad['push'](_0x26c1ad['shift']());}}}(_0x3215,0xd13a5));function _0x3215(){const _0x12aa9f=['1468390gpoRCS','startPresenting','No\x20active\x20workbook\x20found.','SetWorksheetActiveOperation','syncExecuteCommand','32EYSypP','2221896uwiBLH','startRow','getActiveSheet','extend','_initialize','stopFollowing','getStatus','getLiveShareCoordinatorSync','1233015RllpPW','SetScrollOperation','_injector','getRenderById','1058840RYMxum','6LAxyQv','6HPBahr','getSheetId','executeCommand','FRange','696474VxgyKL','FUniver','IDLE','IRenderManagerService','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','stopPresenting','getId','getUnitId','1167216OrxcvD','startFollowing','getActiveWorkbook','LiveShareStatus','get','LiveShareController','1130506KHXRRG'];_0x3215=function(){return _0x12aa9f;};return _0x3215();}const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');function _0x1c8b(_0x3ab761,_0x27179b){_0x3ab761=_0x3ab761-0x11e;const _0x32156e=_0x3215();let _0x1c8bda=_0x32156e[_0x3ab761];return _0x1c8bda;}class w extends d[_0x5b621a(0x139)]{[_0x5b621a(0x12c)](_0x4ac3a8,_0x3ccc15,_0x565b00,_0x593a4d,_0x228461){const _0x12ec06=_0x5b621a,_0xfc64cf=_0x4ac3a8['get'](n[_0x12ec06(0x120)]),_0x430651=_0x4ac3a8[_0x12ec06(0x11f)](g[_0x12ec06(0x13d)]),_0x297106=_0x3ccc15[_0x12ec06(0x141)](),_0x212c84=_0x3ccc15[_0x12ec06(0x12a)](),_0x173fc9=_0xfc64cf[_0x12ec06(0x12f)](_0x297106);(_0x173fc9==null?void 0x0:_0x173fc9['getStatus']())!==n[_0x12ec06(0x11e)]['PRESENTING']||(_0x565b00[_0x12ec06(0x137)]()!==_0x212c84[_0x12ec06(0x137)]()&&this['_commandService'][_0x12ec06(0x138)](u[_0x12ec06(0x125)]['id'],{'unitId':_0x297106,'subUnitId':_0x565b00[_0x12ec06(0x137)]()}),!_0x430651[_0x12ec06(0x133)](_0x297106))||_0x228461[_0x12ec06(0x126)](f[_0x12ec06(0x131)]['id'],{'unitId':_0x3ccc15[_0x12ec06(0x141)](),'sheetId':_0x565b00[_0x12ec06(0x137)](),'sheetViewStartRow':_0x593a4d[_0x12ec06(0x129)],'sheetViewStartColumn':_0x593a4d['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x5b621a(0x139)][_0x5b621a(0x12b)](w);class C extends a[_0x5b621a(0x13b)]{['getLiveShareStatus'](){const _0x473f6e=_0x5b621a;var _0x211b0e,_0x230066;const _0x374fd2=this[_0x473f6e(0x132)]['get'](n[_0x473f6e(0x120)]),_0x4e0e2a=(_0x211b0e=this[_0x473f6e(0x144)]())==null?void 0x0:_0x211b0e['getId']();if(!_0x4e0e2a)throw new Error('No\x20active\x20workbook\x20found.');const _0x1b32bb=_0x374fd2[_0x473f6e(0x12f)](_0x4e0e2a);return(_0x230066=_0x1b32bb==null?void 0x0:_0x1b32bb[_0x473f6e(0x12e)]())!=null?_0x230066:n['LiveShareStatus'][_0x473f6e(0x13c)];}[_0x5b621a(0x143)](){const _0x437420=_0x5b621a;var _0xdfbf57;const _0x359925=this[_0x437420(0x132)][_0x437420(0x11f)](n[_0x437420(0x120)]),_0x42ed7f=(_0xdfbf57=this[_0x437420(0x144)]())==null?void 0x0:_0xdfbf57[_0x437420(0x140)]();if(!_0x42ed7f)throw new Error('No\x20active\x20workbook\x20found.');const _0x477127=_0x359925[_0x437420(0x12f)](_0x42ed7f);if(!_0x477127)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x477127['startFollowing']();}[_0x5b621a(0x12d)](){const _0x1182f7=_0x5b621a;var _0x102e4f;const _0x5703fd=this[_0x1182f7(0x132)]['get'](n[_0x1182f7(0x120)]),_0x5eaf48=(_0x102e4f=this['getActiveWorkbook']())==null?void 0x0:_0x102e4f['getId']();if(!_0x5eaf48)throw new Error(_0x1182f7(0x124));const _0x3b959e=_0x5703fd[_0x1182f7(0x12f)](_0x5eaf48);if(!_0x3b959e)throw new Error(_0x1182f7(0x13e));_0x3b959e[_0x1182f7(0x12d)]();}[_0x5b621a(0x123)](){const _0x4282c9=_0x5b621a;var _0x47602e;const _0x4f9f7b=this[_0x4282c9(0x132)][_0x4282c9(0x11f)](n[_0x4282c9(0x120)]),_0x22ade6=(_0x47602e=this[_0x4282c9(0x144)]())==null?void 0x0:_0x47602e[_0x4282c9(0x140)]();if(!_0x22ade6)throw new Error(_0x4282c9(0x124));const _0x374e79=_0x4f9f7b[_0x4282c9(0x12f)](_0x22ade6);if(!_0x374e79)throw new Error(_0x4282c9(0x13e));_0x374e79['tryStartPresenting']();}[_0x5b621a(0x13f)](){const _0x3a0969=_0x5b621a;var _0x2f2afe;const _0x135d85=this['_injector'][_0x3a0969(0x11f)](n['LiveShareController']),_0x54673c=(_0x2f2afe=this[_0x3a0969(0x144)]())==null?void 0x0:_0x2f2afe[_0x3a0969(0x140)]();if(!_0x54673c)throw new Error(_0x3a0969(0x124));const _0x1894e8=_0x135d85['getLiveShareCoordinatorSync'](_0x54673c);if(!_0x1894e8)throw new Error(_0x3a0969(0x13e));_0x1894e8['stopPresenting']();}}a[_0x5b621a(0x13b)]['extend'](C);class L extends a['FEnum']{get['LiveShareStatusEnum'](){const _0x16d251=_0x5b621a;return n[_0x16d251(0x11e)];}}a['FEnum'][_0x5b621a(0x12b)](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x5374fb=_0x167c;(function(_0x5e4bd3,_0x3a57a3){const _0x559e65=_0x167c,_0x462d99=_0x5e4bd3();while(!![]){try{const _0x1c25b0=-parseInt(_0x559e65(0x2a9))/0x1*(parseInt(_0x559e65(0x240))/0x2)+-parseInt(_0x559e65(0x2af))/0x3*(parseInt(_0x559e65(0x20f))/0x4)+-parseInt(_0x559e65(0x21b))/0x5*(-parseInt(_0x559e65(0x1ea))/0x6)+-parseInt(_0x559e65(0x29c))/0x7+-parseInt(_0x559e65(0x1ee))/0x8*(parseInt(_0x559e65(0x2bc))/0x9)+parseInt(_0x559e65(0x298))/0xa*(parseInt(_0x559e65(0x28e))/0xb)+parseInt(_0x559e65(0x232))/0xc;if(_0x1c25b0===_0x3a57a3)break;else _0x462d99['push'](_0x462d99['shift']());}catch(_0x11797c){_0x462d99['push'](_0x462d99['shift']());}}}(_0x3263,0xab004));var T=Object[_0x5374fb(0x1e9)],U=(_0x33bc01,_0x193297,_0x44ba37)=>_0x193297 in _0x33bc01?T(_0x33bc01,_0x193297,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x44ba37}):_0x33bc01[_0x193297]=_0x44ba37,_=(_0x4f62f6,_0x2eeee7,_0x2937e2)=>U(_0x4f62f6,typeof _0x2eeee7!=_0x5374fb(0x1f9)?_0x2eeee7+'':_0x2eeee7,_0x2937e2);function _0x3263(){const _0x43d2b7=['_uiPartsService','length','executeCommand','registerInitialStateReporter','tag','parse','onStarting','useState','_entities','1337188Wwlurv','DependentOn','UniverLiveSharePlugin','set','override','SetScrollOperation','_handleTerminate','LIVESHARE_TERMINATE','Plugin','dispose','text','Module','2592545MWcXWT','_univerInstanceService','UNIVER_SHEET','useObservable','init','colorChannel1','getValue','xlink:href','pipe','CollaborationSessionService','toStringTag','NEW_CHANGESETS','entries','presenting','send','event$','div','_handleOffline','_handleOnline','OFFLINE','Subject','IDLE','_startLiveShareCoordinator','21666252gMMbzT','getUnitId','parseProtocolChangeset','get','disposeWithMe','univer-mb-3\x20univer-w-full\x20univer-text-sm','complete','status$','getMemberID','svg','SAME_OPERATION_SHARE_INTERVAL','path','_beIdle','throttleTime','19932rgXrGA','FOLLOWING','PRESENTING','idSuffix','none','RxDisposable','getInitialStates','_liveShareService','subscribe','idle','startFollowing','IConfigService','jsxs','_configService','next','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','pluginName','end','jsx','_collabSessionService','getLiveShareCoordinator','Dropdown','attrs','from','type','HEADER_MENU','CommandType','Inject','toString','following','tryStartPresenting','IUniverInstanceService','getOwnPropertyDescriptor','You\x27re\x20presenting\x20the\x20document','CollaborationEvent','Stop\x20presenting','forEach','params','_mountLiveShare','offline','stopPresenting','forwardRef','data','_status$','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','LiveShareStatus','unsubscribe','SetZoomRatioOperation','useDependency','BuiltInUIPart','SetWorksheetActiveOperation','Button','defs','currentColor','Start\x20following','operations','dispose$','_startFollowing','requireSession','use','_commandService','shouldShareOperation','LIVESHARE_OPERATION','sheet','random','LiveShare','stopFollowing','0\x200\x2017\x2017','LIVESHARE_REQUEST_HOST','registerSharedOperation','assign','LiveShareService','Injector','getCurrentTypeOfUnit$','current','registerComponent','has','_stopFollowing','121ULRbTf','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','evenodd','LiveShareCoordinator','_handleNewChangeSets','NOT_FOLLOWING','toDisposable','LiveShareIcon','1em','createElement','279950hwXIUw','IUIPartsService','sessionStatus$','_collabSession','3031448KEgYMK','setConfig','mask','getTypeOfUnitDisposed$','includes','connectInjector','asObservable','SessionStatus','not-following','onRendered','useRef','_unitID','_presenter','13qDxjiw','string','url(#$1','InsertSheetMutation','_status','map','9YSgLNa','getTypeOfUnitAdded$','live-share.config','Fragment','_config','clear','defIds','UniverInstanceType','live-share-icon','children','You\x27re\x20following\x20the\x20presenter','_commandDisposable','http://www.w3.org/2000/svg','1647189exbxxY','then','stringify','You\x27re\x20not\x20following\x20the\x20presenter','add','_startPresenting','createInstance','delete','LiveShareController','defineProperty','6IDzGDd','_handleOperation','OPERATION','univerjs-icon\x20univerjs-icon-','16ZwlwSq','_injector','button','_init','univer-size-4','_fetchOperations','_stopPresenting','UniverCollaborationClientPlugin','DisposableCollection','LIVESHARE_FETCH_OPERATIONS','DesktopLiveShareController','symbol','presenter','onCommandExecuted','mergeOverrideWithDependencies','_handleNewHost','displayName','replace','touchDependencies','_reporters','_sharedOperations','takeUntil','UNIVER_UNKNOWN','Disposable'];_0x3263=function(){return _0x43d2b7;};return _0x3263();}Object[_0x5374fb(0x1e9)](exports,Symbol[_0x5374fb(0x225)],{'value':_0x5374fb(0x21a)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x1d44d4,..._0x4d3c23}){const _0x175839=_0x5374fb,{icon:_0x3f29f0,id:_0xafd0d5,className:_0x15fef4,extend:_0x4c4d59,..._0x2e3d20}=_0x4d3c23,_0x5652f1=(_0x175839(0x1ed)+_0xafd0d5+'\x20'+(_0x15fef4||''))['trim'](),_0x8fc57b=v[_0x175839(0x2a6)]('_'+H());return j(_0x3f29f0,''+_0xafd0d5,{'defIds':_0x3f29f0[_0x175839(0x2b5)],'idSuffix':_0x8fc57b[_0x175839(0x28a)]},{'ref':_0x1d44d4,'className':_0x5652f1,..._0x2e3d20},_0x4c4d59);}function j(_0x5dd6f0,_0x540cbd,_0x76778a,_0x25baa6,_0x4e5794){const _0x427670=_0x5374fb;return v[_0x427670(0x297)](_0x5dd6f0['tag'],{'key':_0x540cbd,...y(_0x5dd6f0,_0x76778a,_0x4e5794),..._0x25baa6},(F(_0x5dd6f0,_0x76778a)[_0x427670(0x2b8)]||[])[_0x427670(0x2ae)]((_0x310710,_0x46ea7f)=>j(_0x310710,_0x540cbd+'-'+_0x5dd6f0[_0x427670(0x20a)]+'-'+_0x46ea7f,_0x76778a,void 0x0,_0x4e5794)));}function y(_0x160fb6,_0x43e3b7,_0x54e4f9){const _0x3a4ee2=_0x5374fb,_0x2a279f={..._0x160fb6[_0x3a4ee2(0x256)]};_0x54e4f9!=null&&_0x54e4f9[_0x3a4ee2(0x220)]&&_0x2a279f['fill']===_0x3a4ee2(0x220)&&(_0x2a279f['fill']=_0x54e4f9['colorChannel1']),_0x160fb6[_0x3a4ee2(0x20a)]===_0x3a4ee2(0x29e)&&_0x2a279f['id']&&(_0x2a279f['id']=_0x2a279f['id']+_0x43e3b7[_0x3a4ee2(0x243)]),Object[_0x3a4ee2(0x227)](_0x2a279f)[_0x3a4ee2(0x264)](([_0x3f927f,_0x51c057])=>{const _0x4e080c=_0x3a4ee2;_0x3f927f===_0x4e080c(0x29e)&&typeof _0x51c057=='string'&&(_0x2a279f[_0x3f927f]=_0x51c057[_0x4e080c(0x1ff)](/url\(#(.*)\)/,_0x4e080c(0x2ab)+_0x43e3b7['idSuffix']+')'));});const {defIds:_0x15f9fb}=_0x43e3b7;return!_0x15f9fb||_0x15f9fb[_0x3a4ee2(0x207)]===0x0||(_0x160fb6['tag']===_0x3a4ee2(0x27b)&&_0x2a279f['xlink:href']&&(_0x2a279f[_0x3a4ee2(0x222)]=_0x2a279f['xlink:href']+_0x43e3b7[_0x3a4ee2(0x243)]),Object[_0x3a4ee2(0x227)](_0x2a279f)[_0x3a4ee2(0x264)](([_0x1faa38,_0x5dedae])=>{const _0x35f593=_0x3a4ee2;typeof _0x5dedae==_0x35f593(0x2aa)&&(_0x2a279f[_0x1faa38]=_0x5dedae[_0x35f593(0x1ff)](/url\(#(.*)\)/,_0x35f593(0x2ab)+_0x43e3b7[_0x35f593(0x243)]+')'));})),_0x2a279f;}function F(_0x42b811,_0x379009){const _0x564df0=_0x5374fb;var _0x558caf;const {defIds:_0x5a5816}=_0x379009;return!_0x5a5816||_0x5a5816[_0x564df0(0x207)]===0x0?_0x42b811:_0x42b811[_0x564df0(0x20a)]===_0x564df0(0x274)&&((_0x558caf=_0x42b811['children'])!=null&&_0x558caf['length'])?{..._0x42b811,'children':_0x42b811['children'][_0x564df0(0x2ae)](_0x1d2334=>typeof _0x1d2334[_0x564df0(0x256)]['id']==_0x564df0(0x2aa)&&_0x5a5816&&_0x5a5816[_0x564df0(0x2a0)](_0x1d2334[_0x564df0(0x256)]['id'])?{..._0x1d2334,'attrs':{..._0x1d2334['attrs'],'id':_0x1d2334[_0x564df0(0x256)]['id']+_0x379009[_0x564df0(0x243)]}}:_0x1d2334)}:_0x42b811;}function H(){const _0x43d225=_0x5374fb;return Math[_0x43d225(0x280)]()[_0x43d225(0x25c)](0x24)['substring'](0x2,0x8);}x[_0x5374fb(0x1fe)]='UniverIcon';const V={'tag':_0x5374fb(0x23b),'attrs':{'xmlns':_0x5374fb(0x2bb),'fill':_0x5374fb(0x244),'viewBox':_0x5374fb(0x283),'width':'1em','height':_0x5374fb(0x296)},'children':[{'tag':_0x5374fb(0x23d),'attrs':{'fill':_0x5374fb(0x275),'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':_0x5374fb(0x23d),'attrs':{'fill':_0x5374fb(0x275),'d':_0x5374fb(0x24f),'fillRule':_0x5374fb(0x290),'clipRule':'evenodd'}}]},R=v[_0x5374fb(0x269)](function(_0x403669,_0x4c4ea1){const _0x1cf6da=_0x5374fb;return v[_0x1cf6da(0x297)](x,Object[_0x1cf6da(0x286)]({},_0x403669,{'id':_0x1cf6da(0x2b7),'ref':_0x4c4ea1,'icon':V}));});R[_0x5374fb(0x1fe)]=_0x5374fb(0x295);class E extends o[_0x5374fb(0x205)]{constructor(){const _0x264842=_0x5374fb;super(...arguments),_(this,_0x264842(0x202),new Set()),_(this,_0x264842(0x201),new Set());}[_0x5374fb(0x285)](_0x25f17e){const _0x587b3e=_0x5374fb;return this['_sharedOperations'][_0x587b3e(0x2c0)](_0x25f17e),o[_0x587b3e(0x294)](()=>this[_0x587b3e(0x202)][_0x587b3e(0x1e7)](_0x25f17e));}[_0x5374fb(0x209)](_0x281a06){const _0x241b7f=_0x5374fb;return this[_0x241b7f(0x201)][_0x241b7f(0x2c0)](_0x281a06),o[_0x241b7f(0x294)](()=>this[_0x241b7f(0x201)]['delete'](_0x281a06));}['shouldShareOperation'](_0x40ecef){const _0x19c303=_0x5374fb;return this[_0x19c303(0x202)]['has'](_0x40ecef);}[_0x5374fb(0x246)](_0x5c83e5){const _0x127bc0=_0x5374fb;return Array[_0x127bc0(0x257)](this[_0x127bc0(0x201)])[_0x127bc0(0x2ae)](_0x306a9b=>_0x306a9b(_0x5c83e5));}}var M=Object[_0x5374fb(0x260)],P=(_0x39069b,_0x11f9d4,_0x5b92e2,_0x1600a0)=>{const _0x1fa69f=_0x5374fb;for(var _0x3b7e77=_0x1600a0>0x1?void 0x0:_0x1600a0?M(_0x11f9d4,_0x5b92e2):_0x11f9d4,_0x22dc14=_0x39069b[_0x1fa69f(0x207)]-0x1,_0x7c4ae7;_0x22dc14>=0x0;_0x22dc14--)(_0x7c4ae7=_0x39069b[_0x22dc14])&&(_0x3b7e77=_0x7c4ae7(_0x3b7e77)||_0x3b7e77);return _0x3b7e77;},S=(_0x4f9a82,_0x49caee)=>(_0x5a5ef2,_0x21bf1d)=>_0x49caee(_0x5a5ef2,_0x21bf1d,_0x4f9a82);exports[_0x5374fb(0x1e8)]=class extends o[_0x5374fb(0x245)]{constructor(_0x1a27c1,_0x4dad97,_0x393a49){const _0x29409a=_0x5374fb;super(),_(this,_0x29409a(0x20e),new Map()),(this[_0x29409a(0x21c)]=_0x1a27c1,this['_injector']=_0x4dad97,this[_0x29409a(0x253)]=_0x393a49,this['_init']());}async[_0x5374fb(0x254)](_0x32694e){const _0xbf5660=_0x5374fb;return this[_0xbf5660(0x20e)]['has'](_0x32694e)||await this['_startLiveShareCoordinator'](_0x32694e),this[_0xbf5660(0x20e)][_0xbf5660(0x235)](_0x32694e);}['getLiveShareCoordinatorSync'](_0x315e4e){const _0x45b828=_0x5374fb;var _0x28f146;return(_0x28f146=this[_0x45b828(0x20e)][_0x45b828(0x235)](_0x315e4e))!=null?_0x28f146:null;}[_0x5374fb(0x1f1)](){const _0xaf73e6=_0x5374fb;this[_0xaf73e6(0x21c)][_0xaf73e6(0x2b0)](o[_0xaf73e6(0x2b6)][_0xaf73e6(0x21d)])[_0xaf73e6(0x223)](I[_0xaf73e6(0x203)](this[_0xaf73e6(0x278)]))[_0xaf73e6(0x248)](async _0x1b037f=>{const _0x4a0023=_0xaf73e6,_0xbc9c0f=_0x1b037f[_0x4a0023(0x233)]();this[_0x4a0023(0x20e)]['has'](_0xbc9c0f)||this['_startLiveShareCoordinator'](_0xbc9c0f);}),this[_0xaf73e6(0x21c)][_0xaf73e6(0x29f)](o[_0xaf73e6(0x2b6)][_0xaf73e6(0x21d)])['pipe'](I[_0xaf73e6(0x203)](this[_0xaf73e6(0x278)]))['subscribe'](_0x405a6d=>{const _0x12b2e3=_0xaf73e6,_0x4c439e=_0x405a6d[_0x12b2e3(0x233)](),_0x258a0d=this[_0x12b2e3(0x20e)][_0x12b2e3(0x235)](_0x4c439e);_0x258a0d==null||_0x258a0d[_0x12b2e3(0x218)]();});}async[_0x5374fb(0x231)](_0x2bc13b){const _0x1fcc1f=_0x5374fb,_0xe46b9a=await this[_0x1fcc1f(0x253)][_0x1fcc1f(0x27a)](_0x2bc13b),_0x5d866d=this['_injector'][_0x1fcc1f(0x1e6)](exports['LiveShareCoordinator'],_0x2bc13b,_0xe46b9a);return _0x5d866d[_0x1fcc1f(0x21f)](),this[_0x1fcc1f(0x20e)][_0x1fcc1f(0x212)](_0x2bc13b,_0x5d866d),_0x5d866d;}},exports[_0x5374fb(0x1e8)]=P([S(0x0,o[_0x5374fb(0x25f)]),S(0x1,o[_0x5374fb(0x25b)](o['Injector'])),S(0x2,o[_0x5374fb(0x25b)](b[_0x5374fb(0x224)]))],exports['LiveShareController']);var u=(_0x519ccc=>(_0x519ccc['OFFLINE']=_0x5374fb(0x267),_0x519ccc[_0x5374fb(0x230)]='idle',_0x519ccc[_0x5374fb(0x241)]=_0x5374fb(0x25d),_0x519ccc[_0x5374fb(0x293)]='not-following',_0x519ccc[_0x5374fb(0x242)]=_0x5374fb(0x228),_0x519ccc))(u||{});const k=_0x5374fb(0x23c),q=0xc8;exports[_0x5374fb(0x291)]=class extends o[_0x5374fb(0x245)]{constructor(_0x3e285a,_0xa028cb,_0x2f97b2,_0x579c5a,_0x140d11){const _0x225d0f=_0x5374fb;super(),_(this,_0x225d0f(0x26b),new O['BehaviorSubject'](_0x225d0f(0x249))),_(this,_0x225d0f(0x239),this[_0x225d0f(0x26b)][_0x225d0f(0x2a2)]()),_(this,_0x225d0f(0x1f1),!0x1),_(this,_0x225d0f(0x2ba),null),_(this,'_presenter',null),(this['_unitID']=_0x3e285a,this[_0x225d0f(0x29b)]=_0xa028cb,this['_configService']=_0x2f97b2,this[_0x225d0f(0x247)]=_0x579c5a,this['_commandService']=_0x140d11);}get[_0x5374fb(0x2ad)](){const _0x33ffc1=_0x5374fb;return this[_0x33ffc1(0x26b)][_0x33ffc1(0x221)]();}[_0x5374fb(0x218)](){const _0x4528f9=_0x5374fb;var _0x3cfb8d;(_0x3cfb8d=this[_0x4528f9(0x2ba)])==null||_0x3cfb8d['dispose'](),this[_0x4528f9(0x26b)][_0x4528f9(0x24e)](_0x4528f9(0x249)),this[_0x4528f9(0x26b)][_0x4528f9(0x238)]();}['getStatus'](){const _0x344594=_0x5374fb;return this[_0x344594(0x2ad)];}[_0x5374fb(0x21f)](){const _0x1dab39=_0x5374fb;this['_init']||(this[_0x1dab39(0x1f1)]=!0x0,this['_collabSession'][_0x1dab39(0x29a)][_0x1dab39(0x223)](I[_0x1dab39(0x203)](this['dispose$']))[_0x1dab39(0x248)](_0x4d9d4e=>{const _0x39e000=_0x1dab39;switch(_0x4d9d4e){case b[_0x39e000(0x2a3)][_0x39e000(0x22e)]:this[_0x39e000(0x22c)]();break;case b[_0x39e000(0x2a3)]['ONLINE']:this['_handleOnline']();break;}}),this['_collabSession'][_0x1dab39(0x22a)][_0x1dab39(0x223)](I['takeUntil'](this[_0x1dab39(0x278)]))[_0x1dab39(0x248)](_0xe11919=>{const _0x3efddc=_0x1dab39,{eventID:_0x181c97}=_0xe11919;switch(_0x181c97){case d[_0x3efddc(0x262)]['LIVESHARE_NEW_HOST']:this[_0x3efddc(0x1fd)](_0xe11919);break;case d[_0x3efddc(0x262)][_0x3efddc(0x27e)]:this[_0x3efddc(0x1eb)](_0xe11919);break;case d['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x3efddc(0x215)]();break;case d[_0x3efddc(0x262)][_0x3efddc(0x226)]:this[_0x3efddc(0x292)](_0xe11919);break;}}));}['tryStartPresenting'](){const _0x559e4a=_0x5374fb;this['_collabSession'][_0x559e4a(0x229)]({'eventID':d[_0x559e4a(0x262)][_0x559e4a(0x284)],'data':{'unitID':this['_unitID'],'userID':this[_0x559e4a(0x29b)]['getMemberID']()}},this['_unitID']);}['stopPresenting'](){const _0x577533=_0x5374fb;this['_status']==='presenting'&&(this[_0x577533(0x26b)]['next']('idle'),this[_0x577533(0x29b)][_0x577533(0x229)]({'eventID':d[_0x577533(0x262)][_0x577533(0x216)],'data':{'unitID':this['_unitID']}},this[_0x577533(0x2a7)]));}[_0x5374fb(0x24a)](){const _0x346ea6=_0x5374fb;this['_status']===_0x346ea6(0x2a4)&&(this['_status$'][_0x346ea6(0x24e)]('following'),this[_0x346ea6(0x279)]());}[_0x5374fb(0x282)](){const _0x30f267=_0x5374fb;this[_0x30f267(0x2ad)]==='following'&&this[_0x30f267(0x28d)]();}[_0x5374fb(0x1fd)](_0x44fda5){const _0x48bf58=_0x5374fb,{presenter:_0x908021}=_0x44fda5['data'],_0x328e95=this[_0x48bf58(0x29b)][_0x48bf58(0x23a)]();this[_0x48bf58(0x2a8)]=_0x908021,_0x908021===_0x328e95?(this[_0x48bf58(0x28d)](),this[_0x48bf58(0x1e5)]()):this['_status']!==_0x48bf58(0x2a4)&&(this[_0x48bf58(0x1f4)](),this[_0x48bf58(0x279)]());}[_0x5374fb(0x1f3)](){const _0x493990=_0x5374fb,_0x41f1cc={'eventID':d['CollaborationEvent'][_0x493990(0x1f7)]};this[_0x493990(0x29b)][_0x493990(0x229)](_0x41f1cc,this[_0x493990(0x2a7)]);}[_0x5374fb(0x215)](){const _0x1fd4a4=_0x5374fb;this['_presenter']=null,this['_status']!=='presenting'&&this[_0x1fd4a4(0x23e)]();}[_0x5374fb(0x292)](_0x24f8f1){const _0x3231ea=_0x5374fb;if(this['_status']===_0x3231ea(0x25d)&&this['_presenter']===_0x24f8f1['data']['memberID']){const _0x1443a8=d[_0x3231ea(0x234)](_0x24f8f1[_0x3231ea(0x26a)])['mutations']['reverse']()['find'](_0x1dc626=>_0x1dc626['id']===C[_0x3231ea(0x2ac)]['id']);if(_0x1443a8){const _0x33f4f3=_0x1443a8[_0x3231ea(0x265)]['unitId'],_0x179316=_0x1443a8['params'][_0x3231ea(0x27f)]['id'];setTimeout(()=>{const _0x4169ed=_0x3231ea;this[_0x4169ed(0x27c)][_0x4169ed(0x208)](C[_0x4169ed(0x272)]['id'],{'unitId':_0x33f4f3,'subUnitId':_0x179316},{'fromCollab':!0x0});});}}}[_0x5374fb(0x1e5)](){const _0x1bcbaf=_0x5374fb;this[_0x1bcbaf(0x26b)][_0x1bcbaf(0x24e)]('presenting');const _0x16a058=new Map(),_0x4c0be9=this['_commandDisposable']=new o[(_0x1bcbaf(0x1f6))]();_0x4c0be9[_0x1bcbaf(0x2c0)](o[_0x1bcbaf(0x294)](()=>{const _0x439079=_0x1bcbaf;_0x16a058[_0x439079(0x264)](_0x16e22c=>_0x16e22c[_0x439079(0x238)]()),_0x16a058[_0x439079(0x2b4)]();})),_0x4c0be9['add'](this[_0x1bcbaf(0x27c)][_0x1bcbaf(0x1fb)](_0x5b2fdf=>{const _0x1bda68=_0x1bcbaf;var _0x41145a;if(_0x5b2fdf[_0x1bda68(0x258)]!==o[_0x1bda68(0x25a)][_0x1bda68(0x1ec)]||!this[_0x1bda68(0x247)][_0x1bda68(0x27d)](_0x5b2fdf['id']))return;const {id:_0x16eacc}=_0x5b2fdf;let _0x113aa1;_0x16a058[_0x1bda68(0x28c)](_0x16eacc)?_0x113aa1=_0x16a058[_0x1bda68(0x235)](_0x16eacc):(_0x113aa1=new O[(_0x1bda68(0x22f))](),_0x16a058[_0x1bda68(0x212)](_0x16eacc,_0x113aa1),_0x113aa1[_0x1bda68(0x223)](I[_0x1bda68(0x23f)]((_0x41145a=this[_0x1bda68(0x24d)]['getConfig'](k))!=null?_0x41145a:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4ee529=>{const _0x290f2d=_0x1bda68;this['_collabSession']['send']({'eventID':d[_0x290f2d(0x262)][_0x290f2d(0x27e)],'data':{'unitID':this[_0x290f2d(0x2a7)],'operations':{[_0x4ee529['id']]:{'id':_0x4ee529['id'],'params':JSON[_0x290f2d(0x2be)](_0x4ee529['params'])}}}},this[_0x290f2d(0x2a7)]);})),_0x113aa1[_0x1bda68(0x24e)](_0x5b2fdf);})),this[_0x1bcbaf(0x247)]['getInitialStates'](this[_0x1bcbaf(0x2a7)])[_0x1bcbaf(0x264)](_0x31b7cb=>this[_0x1bcbaf(0x29b)]['send']({'eventID':d['CollaborationEvent'][_0x1bcbaf(0x27e)],'data':{'unitID':this[_0x1bcbaf(0x2a7)],'operations':{[_0x31b7cb['id']]:{'id':_0x31b7cb['id'],'params':JSON[_0x1bcbaf(0x2be)](_0x31b7cb[_0x1bcbaf(0x265)])}}}},this[_0x1bcbaf(0x2a7)]));}[_0x5374fb(0x1f4)](){const _0x444d5a=_0x5374fb;var _0x175ef2;this[_0x444d5a(0x26b)][_0x444d5a(0x24e)](_0x444d5a(0x249)),(_0x175ef2=this[_0x444d5a(0x2ba)])==null||_0x175ef2[_0x444d5a(0x218)](),this['_commandDisposable']=null;}[_0x5374fb(0x279)](){const _0x3a17e1=_0x5374fb;var _0x3d2b02;(_0x3d2b02=this[_0x3a17e1(0x2ba)])==null||_0x3d2b02['dispose'](),this[_0x3a17e1(0x26b)][_0x3a17e1(0x24e)](_0x3a17e1(0x25d));}[_0x5374fb(0x23e)](){const _0x1e5079=_0x5374fb;var _0x51e1a4;this[_0x1e5079(0x26b)][_0x1e5079(0x24e)](_0x1e5079(0x249)),(_0x51e1a4=this[_0x1e5079(0x2ba)])==null||_0x51e1a4[_0x1e5079(0x218)](),this[_0x1e5079(0x2ba)]=null;}[_0x5374fb(0x28d)](){const _0x2bdc01=_0x5374fb;var _0x2fefe0;this['_status$'][_0x2bdc01(0x24e)]('not-following'),(_0x2fefe0=this[_0x2bdc01(0x2ba)])==null||_0x2fefe0[_0x2bdc01(0x218)]();}[_0x5374fb(0x1eb)](_0x79687d){const _0x26ad55=_0x5374fb;if([_0x26ad55(0x228),_0x26ad55(0x2a4),_0x26ad55(0x267)]['includes'](this[_0x26ad55(0x2ad)])||!_0x79687d[_0x26ad55(0x26a)][_0x26ad55(0x1fa)]||_0x79687d['data'][_0x26ad55(0x1fa)]===this[_0x26ad55(0x29b)][_0x26ad55(0x23a)]())return;this[_0x26ad55(0x2ad)]===_0x26ad55(0x249)&&this['_startFollowing']();const _0x521c6e=_0x79687d['data'][_0x26ad55(0x277)];Object['values'](_0x521c6e)['forEach'](_0x246eb0=>{const _0x4dbe63=_0x26ad55;this[_0x4dbe63(0x27c)][_0x4dbe63(0x208)](_0x246eb0['id'],_0x246eb0['params']?JSON[_0x4dbe63(0x20b)](_0x246eb0[_0x4dbe63(0x265)]):null,{'fromCollab':!0x0});});}[_0x5374fb(0x22c)](){const _0x335218=_0x5374fb;var _0x2554a7;this['_status$']['next'](_0x335218(0x267)),(_0x2554a7=this[_0x335218(0x2ba)])==null||_0x2554a7[_0x335218(0x218)]();}[_0x5374fb(0x22d)](){const _0x19116b=_0x5374fb;this[_0x19116b(0x26b)][_0x19116b(0x24e)](_0x19116b(0x249)),this[_0x19116b(0x1f3)]();}},exports[_0x5374fb(0x291)]=P([S(0x2,o['IConfigService']),S(0x3,o['Inject'](E)),S(0x4,o['ICommandService'])],exports[_0x5374fb(0x291)]);function $(){const _0xf4123d=_0x5374fb,_0x203c81=p[_0xf4123d(0x270)](exports[_0xf4123d(0x1e8)]),_0x1a82e3=p[_0xf4123d(0x270)](o[_0xf4123d(0x25f)]),_0x25f3ac=p[_0xf4123d(0x21e)](()=>_0x1a82e3[_0xf4123d(0x289)](o[_0xf4123d(0x2b6)][_0xf4123d(0x21d)]),void 0x0,!0x1,[]),[_0x13343b,_0x4d0297]=v[_0xf4123d(0x20d)](null),[_0x132db0,_0x5958b0]=v[_0xf4123d(0x20d)](u[_0xf4123d(0x230)]),_0x56b83b=v[_0xf4123d(0x2a6)](null);return v['useEffect'](()=>(_0x25f3ac&&_0x203c81[_0xf4123d(0x254)](_0x25f3ac[_0xf4123d(0x233)]())[_0xf4123d(0x2bd)](_0x120da4=>{const _0x550eb7=_0xf4123d;_0x4d0297(_0x120da4),_0x56b83b[_0x550eb7(0x28a)]=_0x120da4['status$'][_0x550eb7(0x248)](_0x922684=>{_0x5958b0(_0x922684);});}),()=>{const _0x481d1e=_0xf4123d;var _0x4234ce;(_0x4234ce=_0x56b83b[_0x481d1e(0x28a)])==null||_0x4234ce[_0x481d1e(0x26e)](),_0x56b83b['current']=null;}),[_0x25f3ac,_0x203c81]),_0x13343b?l[_0xf4123d(0x252)](f[_0xf4123d(0x255)],{'align':_0xf4123d(0x251),'disabled':_0x132db0===u[_0xf4123d(0x22e)],'className':_0xf4123d(0x26c),'overlay':l[_0xf4123d(0x252)](W,{'status':_0x132db0,'coordinator':_0x13343b}),'children':l[_0xf4123d(0x252)](_0xf4123d(0x1f0),{'className':f['clsx'](_0xf4123d(0x28f),{'univer-cursor-not-allowed':_0x132db0===u[_0xf4123d(0x22e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x132db0!==u[_0xf4123d(0x22e)]}),'type':_0xf4123d(0x1f0),'children':l[_0xf4123d(0x252)](R,{'className':_0xf4123d(0x1f2)})})}):null;}function W(_0xf1af40){const _0x4d3424=_0x5374fb,{status:_0x5e6c5b,coordinator:_0x21b9cd}=_0xf1af40;switch(_0x5e6c5b){case u[_0x4d3424(0x230)]:return l[_0x4d3424(0x252)](G,{'coordinator':_0x21b9cd});case u[_0x4d3424(0x241)]:return l[_0x4d3424(0x252)](B,{'coordinator':_0x21b9cd});case u[_0x4d3424(0x293)]:return l[_0x4d3424(0x252)](Y,{'coordinator':_0x21b9cd});case u['OFFLINE']:return l[_0x4d3424(0x252)](J,{});case u[_0x4d3424(0x242)]:return l[_0x4d3424(0x252)](Z,{'coordinator':_0x21b9cd});default:return null;}}function G(_0x1386aa){const _0x142a5c=_0x5374fb,{coordinator:_0x278ce4}=_0x1386aa;return l[_0x142a5c(0x24c)](l[_0x142a5c(0x2b2)],{'children':[l[_0x142a5c(0x252)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),l[_0x142a5c(0x252)](f['Button'],{'onClick':()=>_0x278ce4[_0x142a5c(0x25e)](),'children':'Start'})]});}function B(_0x26c126){const _0x154f3c=_0x5374fb,{coordinator:_0x3519a0}=_0x26c126;return l['jsxs'](l['Fragment'],{'children':[l[_0x154f3c(0x252)](_0x154f3c(0x22b),{'className':_0x154f3c(0x237),'children':_0x154f3c(0x2b9)}),l[_0x154f3c(0x252)](f[_0x154f3c(0x273)],{'onClick':()=>_0x3519a0['stopFollowing'](),'children':'Stop\x20following'})]});}function Y(_0x4e6c35){const _0x35e077=_0x5374fb,{coordinator:_0x19f978}=_0x4e6c35;return l[_0x35e077(0x24c)](l[_0x35e077(0x2b2)],{'children':[l[_0x35e077(0x252)](_0x35e077(0x22b),{'className':_0x35e077(0x237),'children':_0x35e077(0x2bf)}),l[_0x35e077(0x252)](f[_0x35e077(0x273)],{'variant':_0x35e077(0x219),'onClick':()=>_0x19f978[_0x35e077(0x24a)](),'children':_0x35e077(0x276)})]});}function _0x167c(_0x49f489,_0x3c90ec){_0x49f489=_0x49f489-0x1e5;const _0x326338=_0x3263();let _0x167c85=_0x326338[_0x49f489];return _0x167c85;}function Z(_0xf5d959){const _0x675be3=_0x5374fb,{coordinator:_0xf2d920}=_0xf5d959;return l[_0x675be3(0x24c)](l[_0x675be3(0x2b2)],{'children':[l[_0x675be3(0x252)](_0x675be3(0x22b),{'className':_0x675be3(0x237),'children':_0x675be3(0x261)}),l[_0x675be3(0x252)](f[_0x675be3(0x273)],{'variant':'default','onClick':()=>_0xf2d920[_0x675be3(0x268)](),'children':_0x675be3(0x263)})]});}function J(){const _0x33c408=_0x5374fb;return l[_0x33c408(0x252)](l[_0x33c408(0x2b2)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x5374fb(0x260)],z=(_0x2a64aa,_0x47a788,_0x285c54,_0x504216)=>{const _0x54a12d=_0x5374fb;for(var _0x14e9ed=_0x504216>0x1?void 0x0:_0x504216?K(_0x47a788,_0x285c54):_0x47a788,_0x2403cb=_0x2a64aa[_0x54a12d(0x207)]-0x1,_0x13de52;_0x2403cb>=0x0;_0x2403cb--)(_0x13de52=_0x2a64aa[_0x2403cb])&&(_0x14e9ed=_0x13de52(_0x14e9ed)||_0x14e9ed);return _0x14e9ed;},L=(_0x58ee89,_0x26df82)=>(_0x8a6898,_0x392dcd)=>_0x26df82(_0x8a6898,_0x392dcd,_0x58ee89);exports['DesktopLiveShareController']=class extends o[_0x5374fb(0x205)]{constructor(_0x12de5a,_0x29cf79){const _0x16bf40=_0x5374fb;super(),this[_0x16bf40(0x1ef)]=_0x12de5a,this[_0x16bf40(0x206)]=_0x29cf79,this['_mountLiveShare']();}[_0x5374fb(0x266)](){const _0x18485b=_0x5374fb;this[_0x18485b(0x236)](this[_0x18485b(0x206)][_0x18485b(0x28b)](p[_0x18485b(0x271)][_0x18485b(0x259)],()=>p[_0x18485b(0x2a1)]($,this['_injector'])));}},exports[_0x5374fb(0x1f8)]=z([L(0x0,o[_0x5374fb(0x25b)](o[_0x5374fb(0x288)])),L(0x1,p[_0x5374fb(0x299)])],exports[_0x5374fb(0x1f8)]);const Q=_0x5374fb(0x2b1),w={};var X=Object[_0x5374fb(0x260)],ee=(_0xf6a834,_0x5d4444,_0x1086b4,_0x1cce99)=>{for(var _0x34a058=_0x1cce99>0x1?void 0x0:_0x1cce99?X(_0x5d4444,_0x1086b4):_0x5d4444,_0x444c40=_0xf6a834['length']-0x1,_0x98a359;_0x444c40>=0x0;_0x444c40--)(_0x98a359=_0xf6a834[_0x444c40])&&(_0x34a058=_0x98a359(_0x34a058)||_0x34a058);return _0x34a058;},te=(_0xc3473b,_0x4cb935)=>(_0x55c920,_0x3c563f)=>_0x4cb935(_0x55c920,_0x3c563f,_0xc3473b);let m=class extends o[_0x5374fb(0x205)]{constructor(_0x525a58){const _0x31c310=_0x5374fb;super(),this[_0x31c310(0x247)]=_0x525a58,this[_0x31c310(0x1f1)]();}[_0x5374fb(0x1f1)](){const _0x6b6531=_0x5374fb;[D[_0x6b6531(0x26f)]['id'],D[_0x6b6531(0x214)]['id'],C[_0x6b6531(0x272)]['id']][_0x6b6531(0x264)](_0x1bbc57=>{const _0xf9cd1c=_0x6b6531;this[_0xf9cd1c(0x236)](this[_0xf9cd1c(0x247)][_0xf9cd1c(0x285)](_0x1bbc57));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object[_0x5374fb(0x1e9)],se=Object['getOwnPropertyDescriptor'],ne=(_0x36be4a,_0x109ddc,_0x56a259)=>_0x109ddc in _0x36be4a?ie(_0x36be4a,_0x109ddc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56a259}):_0x36be4a[_0x109ddc]=_0x56a259,re=(_0x5ba389,_0x4f5a6a,_0x3a780c,_0x28559e)=>{for(var _0x135825=_0x28559e>0x1?void 0x0:_0x28559e?se(_0x4f5a6a,_0x3a780c):_0x4f5a6a,_0x29ea34=_0x5ba389['length']-0x1,_0x156b9f;_0x29ea34>=0x0;_0x29ea34--)(_0x156b9f=_0x5ba389[_0x29ea34])&&(_0x135825=_0x156b9f(_0x135825)||_0x135825);return _0x135825;},N=(_0x53e38a,_0x4f3870)=>(_0x2c4596,_0x45453a)=>_0x4f3870(_0x2c4596,_0x45453a,_0x53e38a),A=(_0x2bcb58,_0x35bd75,_0x27a055)=>ne(_0x2bcb58,typeof _0x35bd75!=_0x5374fb(0x1f9)?_0x35bd75+'':_0x35bd75,_0x27a055);const oe='UNIVER_LIVE_SHARE_PLUGIN';exports['UniverLiveSharePlugin']=class extends o[_0x5374fb(0x217)]{constructor(_0x415732=w,_0x41550f,_0x33eca2){const _0x4fa630=_0x5374fb;super(),this[_0x4fa630(0x2b3)]=_0x415732,this[_0x4fa630(0x1ef)]=_0x41550f,this[_0x4fa630(0x24d)]=_0x33eca2;const {..._0x4e3afb}=o['merge']({},w,this[_0x4fa630(0x2b3)]);this[_0x4fa630(0x24d)][_0x4fa630(0x29d)](Q,_0x4e3afb);}[_0x5374fb(0x20c)](){const _0x3ebec3=_0x5374fb;o['registerDependencies'](this['_injector'],o[_0x3ebec3(0x1fc)]([[E],[exports[_0x3ebec3(0x1e8)]],[m],[exports[_0x3ebec3(0x1f8)]]],this[_0x3ebec3(0x2b3)][_0x3ebec3(0x213)])),o[_0x3ebec3(0x200)](this[_0x3ebec3(0x1ef)],[[m]]);}[_0x5374fb(0x2a5)](){const _0x4157ce=_0x5374fb;o[_0x4157ce(0x200)](this[_0x4157ce(0x1ef)],[[exports[_0x4157ce(0x1f8)]]]);}},A(exports[_0x5374fb(0x211)],_0x5374fb(0x258),o[_0x5374fb(0x2b6)][_0x5374fb(0x204)]),A(exports[_0x5374fb(0x211)],_0x5374fb(0x250),oe),exports[_0x5374fb(0x211)]=re([o[_0x5374fb(0x210)](b[_0x5374fb(0x1f5)]),N(0x1,o[_0x5374fb(0x25b)](o[_0x5374fb(0x288)])),N(0x2,o[_0x5374fb(0x24b)])],exports[_0x5374fb(0x211)]),exports[_0x5374fb(0x281)]=$,exports[_0x5374fb(0x287)]=E,exports[_0x5374fb(0x26d)]=u;
|
|
1
|
+
'use strict';const _0x71273f=_0xcc9f;(function(_0x33bbfb,_0x3e5d79){const _0x570ee6=_0xcc9f,_0x52ede9=_0x33bbfb();while(!![]){try{const _0x4b9a0f=-parseInt(_0x570ee6(0x235))/0x1+parseInt(_0x570ee6(0x1ad))/0x2*(parseInt(_0x570ee6(0x1fe))/0x3)+-parseInt(_0x570ee6(0x20c))/0x4*(-parseInt(_0x570ee6(0x1aa))/0x5)+parseInt(_0x570ee6(0x18b))/0x6+parseInt(_0x570ee6(0x1dc))/0x7+parseInt(_0x570ee6(0x239))/0x8+-parseInt(_0x570ee6(0x252))/0x9;if(_0x4b9a0f===_0x3e5d79)break;else _0x52ede9['push'](_0x52ede9['shift']());}catch(_0x305683){_0x52ede9['push'](_0x52ede9['shift']());}}}(_0xa0d3,0x29588));var T=Object[_0x71273f(0x205)],U=(_0x16d455,_0x4b4a06,_0x33c6b1)=>_0x4b4a06 in _0x16d455?T(_0x16d455,_0x4b4a06,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x33c6b1}):_0x16d455[_0x4b4a06]=_0x33c6b1,_=(_0xfbc4a8,_0x1632cb,_0x453b1)=>U(_0xfbc4a8,typeof _0x1632cb!=_0x71273f(0x186)?_0x1632cb+'':_0x1632cb,_0x453b1);Object[_0x71273f(0x205)](exports,Symbol['toStringTag'],{'value':'Module'});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x3c0314,..._0x2c7d09}){const _0x279afd=_0x71273f,{icon:_0x111999,id:_0x50908a,className:_0x601aeb,extend:_0x5e813d,..._0x4710ef}=_0x2c7d09,_0x5e5f98=(_0x279afd(0x1e8)+_0x50908a+'\x20'+(_0x601aeb||''))[_0x279afd(0x226)](),_0x5dddb9=v[_0x279afd(0x24e)]('_'+H());return j(_0x111999,''+_0x50908a,{'defIds':_0x111999[_0x279afd(0x184)],'idSuffix':_0x5dddb9['current']},{'ref':_0x3c0314,'className':_0x5e5f98,..._0x4710ef},_0x5e813d);}function j(_0x5fb607,_0x42b65d,_0x8a65d9,_0x129fd8,_0x297db7){const _0x2e6772=_0x71273f;return v[_0x2e6772(0x221)](_0x5fb607['tag'],{'key':_0x42b65d,...y(_0x5fb607,_0x8a65d9,_0x297db7),..._0x129fd8},(F(_0x5fb607,_0x8a65d9)[_0x2e6772(0x234)]||[])[_0x2e6772(0x236)]((_0x106290,_0x55bf95)=>j(_0x106290,_0x42b65d+'-'+_0x5fb607[_0x2e6772(0x1ab)]+'-'+_0x55bf95,_0x8a65d9,void 0x0,_0x297db7)));}function y(_0x7716e0,_0x4f0e9f,_0x5e210f){const _0x40e8ca=_0x71273f,_0xda87d={..._0x7716e0[_0x40e8ca(0x1c1)]};_0x5e210f!=null&&_0x5e210f[_0x40e8ca(0x1c3)]&&_0xda87d[_0x40e8ca(0x208)]===_0x40e8ca(0x1c3)&&(_0xda87d[_0x40e8ca(0x208)]=_0x5e210f[_0x40e8ca(0x1c3)]),_0x7716e0[_0x40e8ca(0x1ab)]===_0x40e8ca(0x230)&&_0xda87d['id']&&(_0xda87d['id']=_0xda87d['id']+_0x4f0e9f[_0x40e8ca(0x25e)]),Object[_0x40e8ca(0x1ac)](_0xda87d)[_0x40e8ca(0x244)](([_0x5744ba,_0x4f7347])=>{const _0x120406=_0x40e8ca;_0x5744ba===_0x120406(0x230)&&typeof _0x4f7347=='string'&&(_0xda87d[_0x5744ba]=_0x4f7347[_0x120406(0x21f)](/url\(#(.*)\)/,'url(#$1'+_0x4f0e9f['idSuffix']+')'));});const {defIds:_0x134438}=_0x4f0e9f;return!_0x134438||_0x134438['length']===0x0||(_0x7716e0[_0x40e8ca(0x1ab)]===_0x40e8ca(0x19d)&&_0xda87d[_0x40e8ca(0x193)]&&(_0xda87d['xlink:href']=_0xda87d[_0x40e8ca(0x193)]+_0x4f0e9f[_0x40e8ca(0x25e)]),Object[_0x40e8ca(0x1ac)](_0xda87d)['forEach'](([_0x3798c7,_0x22ab56])=>{const _0x11892d=_0x40e8ca;typeof _0x22ab56=='string'&&(_0xda87d[_0x3798c7]=_0x22ab56[_0x11892d(0x21f)](/url\(#(.*)\)/,'url(#$1'+_0x4f0e9f[_0x11892d(0x25e)]+')'));})),_0xda87d;}function F(_0x21679a,_0x145a89){const _0x5967f3=_0x71273f;var _0x554416;const {defIds:_0x68f212}=_0x145a89;return!_0x68f212||_0x68f212[_0x5967f3(0x1d8)]===0x0?_0x21679a:_0x21679a[_0x5967f3(0x1ab)]===_0x5967f3(0x1d3)&&((_0x554416=_0x21679a[_0x5967f3(0x234)])!=null&&_0x554416[_0x5967f3(0x1d8)])?{..._0x21679a,'children':_0x21679a[_0x5967f3(0x234)][_0x5967f3(0x236)](_0x37563d=>typeof _0x37563d[_0x5967f3(0x1c1)]['id']==_0x5967f3(0x1ce)&&_0x68f212&&_0x68f212[_0x5967f3(0x242)](_0x37563d['attrs']['id'])?{..._0x37563d,'attrs':{..._0x37563d['attrs'],'id':_0x37563d[_0x5967f3(0x1c1)]['id']+_0x145a89['idSuffix']}}:_0x37563d)}:_0x21679a;}function H(){const _0x4934db=_0x71273f;return Math['random']()[_0x4934db(0x237)](0x24)[_0x4934db(0x1ff)](0x2,0x8);}x['displayName']=_0x71273f(0x1df);function _0xcc9f(_0x2813a3,_0x3a63d0){_0x2813a3=_0x2813a3-0x184;const _0xa0d3e4=_0xa0d3();let _0xcc9f6f=_0xa0d3e4[_0x2813a3];return _0xcc9f6f;}const V={'tag':_0x71273f(0x22a),'attrs':{'xmlns':_0x71273f(0x1fc),'fill':_0x71273f(0x257),'viewBox':_0x71273f(0x1a7),'width':_0x71273f(0x209),'height':_0x71273f(0x209)},'children':[{'tag':_0x71273f(0x243),'attrs':{'fill':_0x71273f(0x23f),'d':_0x71273f(0x223)}},{'tag':_0x71273f(0x243),'attrs':{'fill':_0x71273f(0x23f),'d':_0x71273f(0x1f5),'fillRule':_0x71273f(0x21b),'clipRule':_0x71273f(0x21b)}}]},R=v[_0x71273f(0x18f)](function(_0x31e749,_0x3025f6){const _0x577e50=_0x71273f;return v[_0x577e50(0x221)](x,Object[_0x577e50(0x21a)]({},_0x31e749,{'id':_0x577e50(0x1c6),'ref':_0x3025f6,'icon':V}));});R[_0x71273f(0x1cb)]=_0x71273f(0x1bf);class E extends o[_0x71273f(0x246)]{constructor(){const _0x5e8282=_0x71273f;super(...arguments),_(this,_0x5e8282(0x219),new Set()),_(this,_0x5e8282(0x248),new Set());}[_0x71273f(0x23b)](_0x41ac88){const _0x5b38b5=_0x71273f;return this[_0x5b38b5(0x219)][_0x5b38b5(0x18d)](_0x41ac88),o[_0x5b38b5(0x1ec)](()=>this[_0x5b38b5(0x219)]['delete'](_0x41ac88));}[_0x71273f(0x1a8)](_0x401a7a){const _0x255c0a=_0x71273f;return this[_0x255c0a(0x248)][_0x255c0a(0x18d)](_0x401a7a),o['toDisposable'](()=>this[_0x255c0a(0x248)][_0x255c0a(0x23e)](_0x401a7a));}['shouldShareOperation'](_0x320953){const _0x2c1fe3=_0x71273f;return this[_0x2c1fe3(0x219)]['has'](_0x320953);}['getInitialStates'](_0x1efc52){const _0xab24d1=_0x71273f;return Array['from'](this[_0xab24d1(0x248)])['map'](_0x221878=>_0x221878(_0x1efc52));}}var M=Object[_0x71273f(0x204)],P=(_0x841128,_0x36d59a,_0x2d9414,_0xf4919)=>{for(var _0x545b05=_0xf4919>0x1?void 0x0:_0xf4919?M(_0x36d59a,_0x2d9414):_0x36d59a,_0x1adba1=_0x841128['length']-0x1,_0x4ae3f5;_0x1adba1>=0x0;_0x1adba1--)(_0x4ae3f5=_0x841128[_0x1adba1])&&(_0x545b05=_0x4ae3f5(_0x545b05)||_0x545b05);return _0x545b05;},S=(_0xd5ba24,_0x60f4c3)=>(_0x23797e,_0x28061d)=>_0x60f4c3(_0x23797e,_0x28061d,_0xd5ba24);exports[_0x71273f(0x245)]=class extends o[_0x71273f(0x20d)]{constructor(_0x330ff3,_0x48d2ad,_0x2229cb){const _0x136874=_0x71273f;super(),_(this,_0x136874(0x238),new Map()),(this[_0x136874(0x1e3)]=_0x330ff3,this[_0x136874(0x1cf)]=_0x48d2ad,this[_0x136874(0x1de)]=_0x2229cb,this[_0x136874(0x1be)]());}async[_0x71273f(0x1ba)](_0x2db8f5){const _0x3b56b9=_0x71273f;return this[_0x3b56b9(0x238)][_0x3b56b9(0x24a)](_0x2db8f5)||await this[_0x3b56b9(0x1f3)](_0x2db8f5),this[_0x3b56b9(0x238)][_0x3b56b9(0x1d9)](_0x2db8f5);}[_0x71273f(0x249)](_0x359c48){const _0x4c5ee3=_0x71273f;var _0xe5fcf8;return(_0xe5fcf8=this[_0x4c5ee3(0x238)]['get'](_0x359c48))!=null?_0xe5fcf8:null;}[_0x71273f(0x1be)](){const _0x3a9cb3=_0x71273f;this['_univerInstanceService'][_0x3a9cb3(0x23c)](o[_0x3a9cb3(0x1b3)]['UNIVER_SHEET'])[_0x3a9cb3(0x1ea)](I['takeUntil'](this['dispose$']))['subscribe'](async _0x2ac635=>{const _0x34cfec=_0x3a9cb3,_0x1a3742=_0x2ac635[_0x34cfec(0x22f)]();this['_entities'][_0x34cfec(0x24a)](_0x1a3742)||this[_0x34cfec(0x1f3)](_0x1a3742);}),this[_0x3a9cb3(0x1e3)][_0x3a9cb3(0x198)](o[_0x3a9cb3(0x1b3)][_0x3a9cb3(0x1e7)])[_0x3a9cb3(0x1ea)](I[_0x3a9cb3(0x1ca)](this[_0x3a9cb3(0x22b)]))[_0x3a9cb3(0x207)](_0x8127c=>{const _0x429058=_0x3a9cb3,_0x8be3de=_0x8127c[_0x429058(0x22f)](),_0x3e1ed2=this['_entities']['get'](_0x8be3de);_0x3e1ed2==null||_0x3e1ed2['dispose']();});}async[_0x71273f(0x1f3)](_0x16fa2a){const _0x59216b=_0x71273f,_0x49876f=await this[_0x59216b(0x1de)]['requireSession'](_0x16fa2a),_0x1ad71f=this[_0x59216b(0x1cf)][_0x59216b(0x1bc)](exports[_0x59216b(0x232)],_0x16fa2a,_0x49876f);return _0x1ad71f[_0x59216b(0x25d)](),this[_0x59216b(0x238)]['set'](_0x16fa2a,_0x1ad71f),_0x1ad71f;}},exports[_0x71273f(0x245)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x71273f(0x1d0)](o[_0x71273f(0x1b1)])),S(0x2,o[_0x71273f(0x1d0)](b[_0x71273f(0x194)]))],exports[_0x71273f(0x245)]);var u=(_0x495a6f=>(_0x495a6f[_0x71273f(0x1c2)]=_0x71273f(0x251),_0x495a6f[_0x71273f(0x22e)]=_0x71273f(0x258),_0x495a6f['FOLLOWING']=_0x71273f(0x21c),_0x495a6f[_0x71273f(0x23d)]='not-following',_0x495a6f[_0x71273f(0x1c7)]=_0x71273f(0x259),_0x495a6f))(u||{});const k=_0x71273f(0x195),q=0xc8;exports[_0x71273f(0x232)]=class extends o['RxDisposable']{constructor(_0x57c53e,_0x2a3c1b,_0x262248,_0x4d5003,_0x4747a4){const _0x1bedbb=_0x71273f;super(),_(this,_0x1bedbb(0x1e4),new O[(_0x1bedbb(0x1b7))]('idle')),_(this,_0x1bedbb(0x1e1),this['_status$'][_0x1bedbb(0x25a)]()),_(this,_0x1bedbb(0x1be),!0x1),_(this,'_commandDisposable',null),_(this,_0x1bedbb(0x1fd),null),(this[_0x1bedbb(0x1f7)]=_0x57c53e,this['_collabSession']=_0x2a3c1b,this['_configService']=_0x262248,this[_0x1bedbb(0x20a)]=_0x4d5003,this[_0x1bedbb(0x1cd)]=_0x4747a4);}get['_status'](){const _0x1c43cb=_0x71273f;return this[_0x1c43cb(0x1e4)][_0x1c43cb(0x1b4)]();}[_0x71273f(0x229)](){const _0x14ab12=_0x71273f;var _0x9409d2;(_0x9409d2=this[_0x14ab12(0x22d)])==null||_0x9409d2[_0x14ab12(0x229)](),this['_status$']['next'](_0x14ab12(0x258)),this['_status$'][_0x14ab12(0x1d6)]();}['getStatus'](){return this['_status'];}[_0x71273f(0x25d)](){const _0x6907a8=_0x71273f;this['_init']||(this['_init']=!0x0,this[_0x6907a8(0x1a3)][_0x6907a8(0x215)][_0x6907a8(0x1ea)](I['takeUntil'](this[_0x6907a8(0x22b)]))[_0x6907a8(0x207)](_0x1959d3=>{const _0x17f581=_0x6907a8;switch(_0x1959d3){case b[_0x17f581(0x212)][_0x17f581(0x1c2)]:this[_0x17f581(0x1d7)]();break;case b[_0x17f581(0x212)][_0x17f581(0x1f8)]:this[_0x17f581(0x241)]();break;}}),this[_0x6907a8(0x1a3)]['event$'][_0x6907a8(0x1ea)](I[_0x6907a8(0x1ca)](this[_0x6907a8(0x22b)]))[_0x6907a8(0x207)](_0x5a1fc6=>{const _0x503fad=_0x6907a8,{eventID:_0x5a7841}=_0x5a1fc6;switch(_0x5a7841){case d[_0x503fad(0x1f6)][_0x503fad(0x1cc)]:this[_0x503fad(0x211)](_0x5a1fc6);break;case d[_0x503fad(0x1f6)][_0x503fad(0x216)]:this[_0x503fad(0x1ed)](_0x5a1fc6);break;case d[_0x503fad(0x1f6)]['LIVESHARE_TERMINATE']:this[_0x503fad(0x1f1)]();break;case d[_0x503fad(0x1f6)][_0x503fad(0x1e2)]:this['_handleNewChangeSets'](_0x5a1fc6);break;}}));}[_0x71273f(0x1c9)](){const _0xda93da=_0x71273f;this['_collabSession'][_0xda93da(0x24c)]({'eventID':d[_0xda93da(0x1f6)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0xda93da(0x1f7)],'userID':this['_collabSession']['getMemberID']()}},this[_0xda93da(0x1f7)]);}[_0x71273f(0x1f2)](){const _0x1a5a76=_0x71273f;this[_0x1a5a76(0x1e5)]===_0x1a5a76(0x259)&&(this[_0x1a5a76(0x1e4)][_0x1a5a76(0x1f0)](_0x1a5a76(0x258)),this[_0x1a5a76(0x1a3)][_0x1a5a76(0x24c)]({'eventID':d['CollaborationEvent'][_0x1a5a76(0x190)],'data':{'unitID':this[_0x1a5a76(0x1f7)]}},this[_0x1a5a76(0x1f7)]));}[_0x71273f(0x1af)](){const _0x52f9e5=_0x71273f;this['_status']===_0x52f9e5(0x22c)&&(this[_0x52f9e5(0x1e4)][_0x52f9e5(0x1f0)](_0x52f9e5(0x21c)),this[_0x52f9e5(0x240)]());}[_0x71273f(0x214)](){const _0x320d0a=_0x71273f;this[_0x320d0a(0x1e5)]===_0x320d0a(0x21c)&&this[_0x320d0a(0x1e0)]();}[_0x71273f(0x211)](_0x179bad){const _0x47d912=_0x71273f,{presenter:_0x40c2b5}=_0x179bad[_0x47d912(0x19b)],_0x3ece16=this[_0x47d912(0x1a3)][_0x47d912(0x1e6)]();this[_0x47d912(0x1fd)]=_0x40c2b5,_0x40c2b5===_0x3ece16?(this[_0x47d912(0x1e0)](),this[_0x47d912(0x18e)]()):this[_0x47d912(0x1e5)]!==_0x47d912(0x22c)&&(this['_stopPresenting'](),this[_0x47d912(0x240)]());}['_fetchOperations'](){const _0x17af4d=_0x71273f,_0xe98c97={'eventID':d[_0x17af4d(0x1f6)][_0x17af4d(0x199)]};this[_0x17af4d(0x1a3)][_0x17af4d(0x24c)](_0xe98c97,this[_0x17af4d(0x1f7)]);}[_0x71273f(0x1f1)](){const _0x2e1794=_0x71273f;this[_0x2e1794(0x1fd)]=null,this[_0x2e1794(0x1e5)]!==_0x2e1794(0x259)&&this['_beIdle']();}['_handleNewChangeSets'](_0x417744){const _0x43673e=_0x71273f;if(this[_0x43673e(0x1e5)]===_0x43673e(0x21c)&&this[_0x43673e(0x1fd)]===_0x417744[_0x43673e(0x19b)][_0x43673e(0x201)]){const _0x532da3=d[_0x43673e(0x231)](_0x417744[_0x43673e(0x19b)])[_0x43673e(0x25c)][_0x43673e(0x200)]()['find'](_0x5f3141=>_0x5f3141['id']===C[_0x43673e(0x1d5)]['id']);if(_0x532da3){const _0x2509ea=_0x532da3[_0x43673e(0x1ae)][_0x43673e(0x24d)],_0x246af1=_0x532da3[_0x43673e(0x1ae)][_0x43673e(0x1a2)]['id'];setTimeout(()=>{const _0x27d11c=_0x43673e;this[_0x27d11c(0x1cd)][_0x27d11c(0x18c)](C[_0x27d11c(0x1b8)]['id'],{'unitId':_0x2509ea,'subUnitId':_0x246af1},{'fromCollab':!0x0});});}}}[_0x71273f(0x18e)](){const _0x2335d3=_0x71273f;this[_0x2335d3(0x1e4)][_0x2335d3(0x1f0)](_0x2335d3(0x259));const _0x13a427=new Map(),_0x2f87bc=this[_0x2335d3(0x22d)]=new o[(_0x2335d3(0x1c5))]();_0x2f87bc[_0x2335d3(0x18d)](o[_0x2335d3(0x1ec)](()=>{const _0x33b770=_0x2335d3;_0x13a427[_0x33b770(0x244)](_0x566379=>_0x566379[_0x33b770(0x1d6)]()),_0x13a427['clear']();})),_0x2f87bc[_0x2335d3(0x18d)](this[_0x2335d3(0x1cd)]['onCommandExecuted'](_0x25cf0f=>{const _0x32bebd=_0x2335d3;var _0x2fe218;if(_0x25cf0f[_0x32bebd(0x1c4)]!==o['CommandType'][_0x32bebd(0x1b0)]||!this['_liveShareService'][_0x32bebd(0x1b6)](_0x25cf0f['id']))return;const {id:_0x12c636}=_0x25cf0f;let _0x199b57;_0x13a427[_0x32bebd(0x24a)](_0x12c636)?_0x199b57=_0x13a427['get'](_0x12c636):(_0x199b57=new O['Subject'](),_0x13a427[_0x32bebd(0x250)](_0x12c636,_0x199b57),_0x199b57['pipe'](I[_0x32bebd(0x19a)]((_0x2fe218=this['_configService'][_0x32bebd(0x220)](k))!=null?_0x2fe218:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x32bebd(0x207)](_0x4aaef4=>{const _0x28f2d6=_0x32bebd;this[_0x28f2d6(0x1a3)][_0x28f2d6(0x24c)]({'eventID':d[_0x28f2d6(0x1f6)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x4aaef4['id']]:{'id':_0x4aaef4['id'],'params':JSON[_0x28f2d6(0x191)](_0x4aaef4[_0x28f2d6(0x1ae)])}}}},this[_0x28f2d6(0x1f7)]);})),_0x199b57[_0x32bebd(0x1f0)](_0x25cf0f);})),this[_0x2335d3(0x20a)][_0x2335d3(0x225)](this['_unitID'])[_0x2335d3(0x244)](_0x4ef630=>this[_0x2335d3(0x1a3)][_0x2335d3(0x24c)]({'eventID':d[_0x2335d3(0x1f6)][_0x2335d3(0x216)],'data':{'unitID':this[_0x2335d3(0x1f7)],'operations':{[_0x4ef630['id']]:{'id':_0x4ef630['id'],'params':JSON[_0x2335d3(0x191)](_0x4ef630[_0x2335d3(0x1ae)])}}}},this[_0x2335d3(0x1f7)]));}[_0x71273f(0x192)](){const _0x3f9dec=_0x71273f;var _0x18ffed;this['_status$'][_0x3f9dec(0x1f0)](_0x3f9dec(0x258)),(_0x18ffed=this[_0x3f9dec(0x22d)])==null||_0x18ffed[_0x3f9dec(0x229)](),this[_0x3f9dec(0x22d)]=null;}['_startFollowing'](){const _0x3c1e63=_0x71273f;var _0x34b775;(_0x34b775=this['_commandDisposable'])==null||_0x34b775['dispose'](),this[_0x3c1e63(0x1e4)][_0x3c1e63(0x1f0)]('following');}[_0x71273f(0x19f)](){const _0x286f7e=_0x71273f;var _0x40945e;this[_0x286f7e(0x1e4)][_0x286f7e(0x1f0)]('idle'),(_0x40945e=this[_0x286f7e(0x22d)])==null||_0x40945e[_0x286f7e(0x229)](),this[_0x286f7e(0x22d)]=null;}['_stopFollowing'](){const _0x16051b=_0x71273f;var _0x55f50f;this[_0x16051b(0x1e4)]['next'](_0x16051b(0x22c)),(_0x55f50f=this[_0x16051b(0x22d)])==null||_0x55f50f[_0x16051b(0x229)]();}[_0x71273f(0x1ed)](_0x2d50be){const _0x56d30c=_0x71273f;if(['presenting','not-following','offline']['includes'](this[_0x56d30c(0x1e5)])||!_0x2d50be[_0x56d30c(0x19b)][_0x56d30c(0x20f)]||_0x2d50be[_0x56d30c(0x19b)][_0x56d30c(0x20f)]===this[_0x56d30c(0x1a3)][_0x56d30c(0x1e6)]())return;this[_0x56d30c(0x1e5)]==='idle'&&this[_0x56d30c(0x240)]();const _0x14a7c3=_0x2d50be[_0x56d30c(0x19b)][_0x56d30c(0x1eb)];Object[_0x56d30c(0x227)](_0x14a7c3)[_0x56d30c(0x244)](_0xeff6f1=>{const _0x315fdf=_0x56d30c;this[_0x315fdf(0x1cd)][_0x315fdf(0x18c)](_0xeff6f1['id'],_0xeff6f1[_0x315fdf(0x1ae)]?JSON[_0x315fdf(0x1a9)](_0xeff6f1[_0x315fdf(0x1ae)]):null,{'fromCollab':!0x0});});}[_0x71273f(0x1d7)](){const _0x5a70fc=_0x71273f;var _0x3951fc;this[_0x5a70fc(0x1e4)][_0x5a70fc(0x1f0)]('offline'),(_0x3951fc=this[_0x5a70fc(0x22d)])==null||_0x3951fc[_0x5a70fc(0x229)]();}['_handleOnline'](){const _0x2e2409=_0x71273f;this[_0x2e2409(0x1e4)][_0x2e2409(0x1f0)](_0x2e2409(0x258)),this[_0x2e2409(0x1d4)]();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0x71273f(0x1bd)]),S(0x3,o[_0x71273f(0x1d0)](E)),S(0x4,o[_0x71273f(0x185)])],exports[_0x71273f(0x232)]);function _0xa0d3(){const _0x4e3ec9=['IDLE','getUnitId','mask','parseProtocolChangeset','LiveShareCoordinator','useState','children','159585vAbyXB','map','toString','_entities','114520ZeGSEu','BuiltInUIPart','registerSharedOperation','getTypeOfUnitAdded$','NOT_FOLLOWING','delete','currentColor','_startFollowing','_handleOnline','includes','path','forEach','LiveShareController','Disposable','then','_reporters','getLiveShareCoordinatorSync','has','Fragment','send','unitId','useRef','LiveShareStatus','set','offline','2089134TWSCof','button','IUniverInstanceService','You\x27re\x20not\x20following\x20the\x20presenter','clsx','none','idle','presenting','asObservable','connectInjector','mutations','init','idSuffix','defIds','ICommandService','symbol','registerComponent','Start\x20following','LiveShare','getCurrentTypeOfUnit$','1731804bsmKLn','executeCommand','add','_startPresenting','forwardRef','LIVESHARE_TERMINATE','stringify','_stopPresenting','xlink:href','CollaborationSessionService','SAME_OPERATION_SHARE_INTERVAL','_mountLiveShare','current','getTypeOfUnitDisposed$','LIVESHARE_FETCH_OPERATIONS','throttleTime','data','disposeWithMe','use','DependentOn','_beIdle','Button','_uiPartsService','sheet','_collabSession','_configService','Dropdown','HEADER_MENU','0\x200\x2017\x2017','registerInitialStateReporter','parse','5XtNjWz','tag','entries','26xglObB','params','startFollowing','OPERATION','Injector','SetZoomRatioOperation','UniverInstanceType','getValue','jsxs','shouldShareOperation','BehaviorSubject','SetWorksheetActiveOperation','touchDependencies','getLiveShareCoordinator','useDependency','createInstance','IConfigService','_init','LiveShareIcon','_config','attrs','OFFLINE','colorChannel1','type','DisposableCollection','live-share-icon','PRESENTING','unsubscribe','tryStartPresenting','takeUntil','displayName','LIVESHARE_NEW_HOST','_commandService','string','_injector','Inject','UNIVER_LIVE_SHARE_PLUGIN','end','defs','_fetchOperations','InsertSheetMutation','complete','_handleOffline','length','get','jsx','UNIVER_UNKNOWN','772604xitWIT','Start','_collabSessionService','UniverIcon','_stopFollowing','status$','NEW_CHANGESETS','_univerInstanceService','_status$','_status','getMemberID','UNIVER_SHEET','univerjs-icon\x20univerjs-icon-','useEffect','pipe','operations','toDisposable','_handleOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverLiveSharePlugin','next','_handleTerminate','stopPresenting','_startLiveShareCoordinator','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','CollaborationEvent','_unitID','ONLINE','merge','Stop\x20following','default','http://www.w3.org/2000/svg','_presenter','20211sHPALn','substring','reverse','memberID','registerDependencies','live-share.config','getOwnPropertyDescriptor','defineProperty','Present\x20this\x20document','subscribe','fill','1em','_liveShareService','univer-size-4','240644axXCOE','RxDisposable','onStarting','presenter','text','_handleNewHost','SessionStatus','LiveShareService','stopFollowing','sessionStatus$','LIVESHARE_OPERATION','Stop\x20presenting','DesktopLiveShareController','_sharedOperations','assign','evenodd','following','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','div','replace','getConfig','createElement','pluginName','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','You\x27re\x20following\x20the\x20presenter','getInitialStates','trim','values','Plugin','dispose','svg','dispose$','not-following','_commandDisposable'];_0xa0d3=function(){return _0x4e3ec9;};return _0xa0d3();}function $(){const _0x529e09=_0x71273f,_0xef0527=p[_0x529e09(0x1bb)](exports[_0x529e09(0x245)]),_0x35823e=p[_0x529e09(0x1bb)](o[_0x529e09(0x254)]),_0x3fa9ff=p['useObservable'](()=>_0x35823e[_0x529e09(0x18a)](o[_0x529e09(0x1b3)][_0x529e09(0x1e7)]),void 0x0,!0x1,[]),[_0x123cf3,_0x3a26e8]=v[_0x529e09(0x233)](null),[_0x773d13,_0x10842b]=v[_0x529e09(0x233)](u[_0x529e09(0x22e)]),_0x46207a=v[_0x529e09(0x24e)](null);return v[_0x529e09(0x1e9)](()=>(_0x3fa9ff&&_0xef0527[_0x529e09(0x1ba)](_0x3fa9ff[_0x529e09(0x22f)]())[_0x529e09(0x247)](_0x578bcc=>{const _0xc71cfc=_0x529e09;_0x3a26e8(_0x578bcc),_0x46207a[_0xc71cfc(0x197)]=_0x578bcc['status$']['subscribe'](_0xfc7696=>{_0x10842b(_0xfc7696);});}),()=>{const _0x17b07a=_0x529e09;var _0x398845;(_0x398845=_0x46207a[_0x17b07a(0x197)])==null||_0x398845[_0x17b07a(0x1c8)](),_0x46207a[_0x17b07a(0x197)]=null;}),[_0x3fa9ff,_0xef0527]),_0x123cf3?l[_0x529e09(0x1da)](f[_0x529e09(0x1a5)],{'align':_0x529e09(0x1d2),'disabled':_0x773d13===u['OFFLINE'],'className':_0x529e09(0x1f4),'overlay':l[_0x529e09(0x1da)](W,{'status':_0x773d13,'coordinator':_0x123cf3}),'children':l[_0x529e09(0x1da)](_0x529e09(0x253),{'className':f[_0x529e09(0x256)](_0x529e09(0x21d),{'univer-cursor-not-allowed':_0x773d13===u[_0x529e09(0x1c2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x773d13!==u[_0x529e09(0x1c2)]}),'type':'button','children':l[_0x529e09(0x1da)](R,{'className':_0x529e09(0x20b)})})}):null;}function W(_0x6a0508){const _0x5b4355=_0x71273f,{status:_0x1bc16f,coordinator:_0x2562ee}=_0x6a0508;switch(_0x1bc16f){case u[_0x5b4355(0x22e)]:return l[_0x5b4355(0x1da)](G,{'coordinator':_0x2562ee});case u['FOLLOWING']:return l['jsx'](B,{'coordinator':_0x2562ee});case u[_0x5b4355(0x23d)]:return l[_0x5b4355(0x1da)](Y,{'coordinator':_0x2562ee});case u[_0x5b4355(0x1c2)]:return l[_0x5b4355(0x1da)](J,{});case u['PRESENTING']:return l[_0x5b4355(0x1da)](Z,{'coordinator':_0x2562ee});default:return null;}}function G(_0x41b819){const _0x36f9e9=_0x71273f,{coordinator:_0x1936a4}=_0x41b819;return l['jsxs'](l[_0x36f9e9(0x24b)],{'children':[l[_0x36f9e9(0x1da)](_0x36f9e9(0x21e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x36f9e9(0x206)}),l['jsx'](f[_0x36f9e9(0x1a0)],{'onClick':()=>_0x1936a4[_0x36f9e9(0x1c9)](),'children':_0x36f9e9(0x1dd)})]});}function B(_0x87a29a){const _0x4dabb9=_0x71273f,{coordinator:_0x862d28}=_0x87a29a;return l[_0x4dabb9(0x1b5)](l[_0x4dabb9(0x24b)],{'children':[l[_0x4dabb9(0x1da)](_0x4dabb9(0x21e),{'className':_0x4dabb9(0x1ee),'children':_0x4dabb9(0x224)}),l['jsx'](f['Button'],{'onClick':()=>_0x862d28[_0x4dabb9(0x214)](),'children':_0x4dabb9(0x1fa)})]});}function Y(_0x51a263){const _0x32eb4f=_0x71273f,{coordinator:_0x4637a9}=_0x51a263;return l['jsxs'](l['Fragment'],{'children':[l[_0x32eb4f(0x1da)]('div',{'className':_0x32eb4f(0x1ee),'children':_0x32eb4f(0x255)}),l[_0x32eb4f(0x1da)](f['Button'],{'variant':_0x32eb4f(0x210),'onClick':()=>_0x4637a9[_0x32eb4f(0x1af)](),'children':_0x32eb4f(0x188)})]});}function Z(_0x3fb94d){const _0x21e76d=_0x71273f,{coordinator:_0x2b5c51}=_0x3fb94d;return l[_0x21e76d(0x1b5)](l[_0x21e76d(0x24b)],{'children':[l['jsx'](_0x21e76d(0x21e),{'className':_0x21e76d(0x1ee),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x21e76d(0x1da)](f[_0x21e76d(0x1a0)],{'variant':_0x21e76d(0x1fb),'onClick':()=>_0x2b5c51[_0x21e76d(0x1f2)](),'children':_0x21e76d(0x217)})]});}function J(){const _0x2799a0=_0x71273f;return l[_0x2799a0(0x1da)](l[_0x2799a0(0x24b)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x71273f(0x204)],z=(_0x4c4d41,_0x23c325,_0x143c53,_0x215017)=>{const _0x28cead=_0x71273f;for(var _0x505953=_0x215017>0x1?void 0x0:_0x215017?K(_0x23c325,_0x143c53):_0x23c325,_0x10366b=_0x4c4d41[_0x28cead(0x1d8)]-0x1,_0x308d4a;_0x10366b>=0x0;_0x10366b--)(_0x308d4a=_0x4c4d41[_0x10366b])&&(_0x505953=_0x308d4a(_0x505953)||_0x505953);return _0x505953;},L=(_0xa62359,_0x32e6a7)=>(_0x5aa4f7,_0x1ab83d)=>_0x32e6a7(_0x5aa4f7,_0x1ab83d,_0xa62359);exports[_0x71273f(0x218)]=class extends o[_0x71273f(0x246)]{constructor(_0x1f6f3a,_0x4620aa){const _0x169016=_0x71273f;super(),this[_0x169016(0x1cf)]=_0x1f6f3a,this[_0x169016(0x1a1)]=_0x4620aa,this[_0x169016(0x196)]();}['_mountLiveShare'](){const _0x35796d=_0x71273f;this[_0x35796d(0x19c)](this['_uiPartsService'][_0x35796d(0x187)](p[_0x35796d(0x23a)][_0x35796d(0x1a6)],()=>p[_0x35796d(0x25b)]($,this[_0x35796d(0x1cf)])));}},exports[_0x71273f(0x218)]=z([L(0x0,o[_0x71273f(0x1d0)](o[_0x71273f(0x1b1)])),L(0x1,p['IUIPartsService'])],exports[_0x71273f(0x218)]);const Q=_0x71273f(0x203),w={};var X=Object[_0x71273f(0x204)],ee=(_0x3b717a,_0x2036e3,_0x25645d,_0x33fab4)=>{for(var _0x1f9a1a=_0x33fab4>0x1?void 0x0:_0x33fab4?X(_0x2036e3,_0x25645d):_0x2036e3,_0x33c541=_0x3b717a['length']-0x1,_0x254b5a;_0x33c541>=0x0;_0x33c541--)(_0x254b5a=_0x3b717a[_0x33c541])&&(_0x1f9a1a=_0x254b5a(_0x1f9a1a)||_0x1f9a1a);return _0x1f9a1a;},te=(_0x42d1bb,_0xa9d986)=>(_0x58fef2,_0x2b4e39)=>_0xa9d986(_0x58fef2,_0x2b4e39,_0x42d1bb);let m=class extends o['Disposable']{constructor(_0x1d5c01){const _0x253172=_0x71273f;super(),this[_0x253172(0x20a)]=_0x1d5c01,this[_0x253172(0x1be)]();}['_init'](){const _0x200809=_0x71273f;[D[_0x200809(0x1b2)]['id'],D['SetScrollOperation']['id'],C[_0x200809(0x1b8)]['id']][_0x200809(0x244)](_0xdf0f3=>{const _0x627693=_0x200809;this[_0x627693(0x19c)](this[_0x627693(0x20a)][_0x627693(0x23b)](_0xdf0f3));});}};m=ee([te(0x0,o[_0x71273f(0x1d0)](E))],m);var ie=Object[_0x71273f(0x205)],se=Object[_0x71273f(0x204)],ne=(_0x142648,_0x3479dc,_0xb7afb1)=>_0x3479dc in _0x142648?ie(_0x142648,_0x3479dc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb7afb1}):_0x142648[_0x3479dc]=_0xb7afb1,re=(_0x281af8,_0x1ca849,_0x4bab41,_0x5aa08c)=>{const _0x1a0cc2=_0x71273f;for(var _0x1562db=_0x5aa08c>0x1?void 0x0:_0x5aa08c?se(_0x1ca849,_0x4bab41):_0x1ca849,_0x2afec6=_0x281af8[_0x1a0cc2(0x1d8)]-0x1,_0x4ddd55;_0x2afec6>=0x0;_0x2afec6--)(_0x4ddd55=_0x281af8[_0x2afec6])&&(_0x1562db=_0x4ddd55(_0x1562db)||_0x1562db);return _0x1562db;},N=(_0x106a0a,_0x154055)=>(_0x2a0649,_0x41ec96)=>_0x154055(_0x2a0649,_0x41ec96,_0x106a0a),A=(_0x9081f8,_0xaf7764,_0x369f27)=>ne(_0x9081f8,typeof _0xaf7764!=_0x71273f(0x186)?_0xaf7764+'':_0xaf7764,_0x369f27);const oe=_0x71273f(0x1d1);exports[_0x71273f(0x1ef)]=class extends o[_0x71273f(0x228)]{constructor(_0x2238b0=w,_0x2fcc6d,_0x4bfa3d){const _0x522125=_0x71273f;super(),this[_0x522125(0x1c0)]=_0x2238b0,this[_0x522125(0x1cf)]=_0x2fcc6d,this[_0x522125(0x1a4)]=_0x4bfa3d;const {..._0x3b18c6}=o[_0x522125(0x1f9)]({},w,this['_config']);this[_0x522125(0x1a4)]['setConfig'](Q,_0x3b18c6);}[_0x71273f(0x20e)](){const _0x39e360=_0x71273f;o[_0x39e360(0x202)](this['_injector'],o['mergeOverrideWithDependencies']([[E],[exports[_0x39e360(0x245)]],[m],[exports['DesktopLiveShareController']]],this[_0x39e360(0x1c0)]['override'])),o[_0x39e360(0x1b9)](this[_0x39e360(0x1cf)],[[m]]);}['onRendered'](){const _0x2247e8=_0x71273f;o[_0x2247e8(0x1b9)](this['_injector'],[[exports[_0x2247e8(0x218)]]]);}},A(exports['UniverLiveSharePlugin'],_0x71273f(0x1c4),o[_0x71273f(0x1b3)][_0x71273f(0x1db)]),A(exports['UniverLiveSharePlugin'],_0x71273f(0x222),oe),exports[_0x71273f(0x1ef)]=re([o[_0x71273f(0x19e)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x71273f(0x1d0)](o[_0x71273f(0x1b1)])),N(0x2,o[_0x71273f(0x1bd)])],exports[_0x71273f(0x1ef)]),exports[_0x71273f(0x189)]=$,exports[_0x71273f(0x213)]=E,exports[_0x71273f(0x24f)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4d247f=_0x49da;function _0x49da(_0x34d8b8,_0x4294ed){_0x34d8b8=_0x34d8b8-0x93;const _0x5e83a1=_0x5e83();let _0x49dac3=_0x5e83a1[_0x34d8b8];return _0x49dac3;}(function(_0x5949eb,_0x5c8740){const _0xa388fb=_0x49da,_0x3058eb=_0x5949eb();while(!![]){try{const _0x29db9e=parseInt(_0xa388fb(0xad))/0x1*(-parseInt(_0xa388fb(0x9b))/0x2)+-parseInt(_0xa388fb(0xa6))/0x3+-parseInt(_0xa388fb(0xa8))/0x4+-parseInt(_0xa388fb(0xac))/0x5*(-parseInt(_0xa388fb(0x9e))/0x6)+parseInt(_0xa388fb(0x97))/0x7+-parseInt(_0xa388fb(0xb1))/0x8*(-parseInt(_0xa388fb(0x94))/0x9)+parseInt(_0xa388fb(0x99))/0xa;if(_0x29db9e===_0x5c8740)break;else _0x3058eb['push'](_0x3058eb['shift']());}catch(_0x2466ac){_0x3058eb['push'](_0x3058eb['shift']());}}}(_0x5e83,0x44b22));function _0x5e83(){const _0x2faa60=['stopPresenting','5089010AEhlEw','_initialize','576178bGViZM','extend','getActiveSheet','25518IGEgsw','_injector','PRESENTING','get','getLiveShareCoordinatorSync','executeCommand','startColumn','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','1580778YENpkt','getUnitId','425752UuUOga','stopFollowing','startFollowing','_commandService','290FkuliN','1njOWpU','getStatus','syncExecuteCommand','IDLE','8LZLKwU','getSheetId','getRenderById','getId','LiveShareStatusEnum','tryStartPresenting','1782693dZJWCI','No\x20active\x20workbook\x20found.','getActiveWorkbook','1744253wasowl'];_0x5e83=function(){return _0x2faa60;};return _0x5e83();}import{LiveShareController as _0x2f9fe8,LiveShareStatus as _0x573c3f}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x57294e}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x59fe9b}from'@univerjs/sheets';import{SetScrollOperation as _0x4c06e9}from'@univerjs/sheets-ui';import{FRange as _0x5905fd}from'@univerjs/sheets/facade';import{FUniver as _0x17db69,FEnum as _0x4c4961}from'@univerjs/core/facade';class I extends _0x5905fd{[_0x4d247f(0x9a)](_0x574e76,_0x39344d,_0x5d9305,_0x49a9a1,_0x276fb6){const _0x4700f8=_0x4d247f,_0x3b0e43=_0x574e76['get'](_0x2f9fe8),_0x32443a=_0x574e76['get'](_0x57294e),_0x6d0ba2=_0x39344d[_0x4700f8(0xa7)](),_0x509806=_0x39344d[_0x4700f8(0x9d)](),_0x1b9a08=_0x3b0e43['getLiveShareCoordinatorSync'](_0x6d0ba2);(_0x1b9a08==null?void 0x0:_0x1b9a08[_0x4700f8(0xae)]())!==_0x573c3f[_0x4700f8(0xa0)]||(_0x5d9305[_0x4700f8(0xb2)]()!==_0x509806[_0x4700f8(0xb2)]()&&this[_0x4700f8(0xab)][_0x4700f8(0xa3)](_0x59fe9b['id'],{'unitId':_0x6d0ba2,'subUnitId':_0x5d9305['getSheetId']()}),!_0x32443a[_0x4700f8(0xb3)](_0x6d0ba2))||_0x276fb6[_0x4700f8(0xaf)](_0x4c06e9['id'],{'unitId':_0x39344d[_0x4700f8(0xa7)](),'sheetId':_0x5d9305['getSheetId'](),'sheetViewStartRow':_0x49a9a1['startRow'],'sheetViewStartColumn':_0x49a9a1[_0x4700f8(0xa4)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x5905fd[_0x4d247f(0x9c)](I);class m extends _0x17db69{['getLiveShareStatus'](){const _0x6d99e7=_0x4d247f;var _0x78faee,_0x165a6b;const _0x3b7892=this[_0x6d99e7(0x9f)][_0x6d99e7(0xa1)](_0x2f9fe8),_0x1fc049=(_0x78faee=this['getActiveWorkbook']())==null?void 0x0:_0x78faee['getId']();if(!_0x1fc049)throw new Error(_0x6d99e7(0x95));const _0x49190a=_0x3b7892['getLiveShareCoordinatorSync'](_0x1fc049);return(_0x165a6b=_0x49190a==null?void 0x0:_0x49190a[_0x6d99e7(0xae)]())!=null?_0x165a6b:_0x573c3f[_0x6d99e7(0xb0)];}[_0x4d247f(0xaa)](){const _0x46d719=_0x4d247f;var _0x5eecd1;const _0x30f892=this[_0x46d719(0x9f)][_0x46d719(0xa1)](_0x2f9fe8),_0x58ab32=(_0x5eecd1=this['getActiveWorkbook']())==null?void 0x0:_0x5eecd1[_0x46d719(0xb4)]();if(!_0x58ab32)throw new Error('No\x20active\x20workbook\x20found.');const _0x47279d=_0x30f892[_0x46d719(0xa2)](_0x58ab32);if(!_0x47279d)throw new Error(_0x46d719(0xa5));_0x47279d[_0x46d719(0xaa)]();}[_0x4d247f(0xa9)](){const _0x2b5b75=_0x4d247f;var _0x15f5ff;const _0xe39924=this['_injector'][_0x2b5b75(0xa1)](_0x2f9fe8),_0x17b743=(_0x15f5ff=this[_0x2b5b75(0x96)]())==null?void 0x0:_0x15f5ff[_0x2b5b75(0xb4)]();if(!_0x17b743)throw new Error(_0x2b5b75(0x95));const _0x27494=_0xe39924['getLiveShareCoordinatorSync'](_0x17b743);if(!_0x27494)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x27494[_0x2b5b75(0xa9)]();}['startPresenting'](){const _0x328503=_0x4d247f;var _0x3c6aaa;const _0x55b5fd=this[_0x328503(0x9f)][_0x328503(0xa1)](_0x2f9fe8),_0x562498=(_0x3c6aaa=this[_0x328503(0x96)]())==null?void 0x0:_0x3c6aaa[_0x328503(0xb4)]();if(!_0x562498)throw new Error('No\x20active\x20workbook\x20found.');const _0x1404af=_0x55b5fd['getLiveShareCoordinatorSync'](_0x562498);if(!_0x1404af)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1404af[_0x328503(0x93)]();}[_0x4d247f(0x98)](){const _0x38b532=_0x4d247f;var _0x4dcde2;const _0x5e6025=this[_0x38b532(0x9f)][_0x38b532(0xa1)](_0x2f9fe8),_0x288b0f=(_0x4dcde2=this['getActiveWorkbook']())==null?void 0x0:_0x4dcde2[_0x38b532(0xb4)]();if(!_0x288b0f)throw new Error(_0x38b532(0x95));const _0x124217=_0x5e6025[_0x38b532(0xa2)](_0x288b0f);if(!_0x124217)throw new Error(_0x38b532(0xa5));_0x124217[_0x38b532(0x98)]();}}_0x17db69[_0x4d247f(0x9c)](m);class C extends _0x4c4961{get[_0x4d247f(0xb5)](){return _0x573c3f;}}_0x4c4961[_0x4d247f(0x9c)](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x562b47=_0x465d;(function(_0x4cd1ab,_0x3b9ac4){const _0x231961=_0x465d,_0x2b535b=_0x4cd1ab();while(!![]){try{const _0x54b116=parseInt(_0x231961(0x145))/0x1*(-parseInt(_0x231961(0x164))/0x2)+parseInt(_0x231961(0xeb))/0x3*(-parseInt(_0x231961(0x128))/0x4)+parseInt(_0x231961(0x136))/0x5*(parseInt(_0x231961(0xd1))/0x6)+parseInt(_0x231961(0x148))/0x7*(parseInt(_0x231961(0x14c))/0x8)+parseInt(_0x231961(0x12a))/0x9+-parseInt(_0x231961(0x152))/0xa+parseInt(_0x231961(0x15c))/0xb;if(_0x54b116===_0x3b9ac4)break;else _0x2b535b['push'](_0x2b535b['shift']());}catch(_0x21dbd4){_0x2b535b['push'](_0x2b535b['shift']());}}}(_0xad37,0x605b1));var J=Object['defineProperty'],K=(_0x2e0408,_0x7c337c,_0x2c8bdc)=>_0x7c337c in _0x2e0408?J(_0x2e0408,_0x7c337c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c8bdc}):_0x2e0408[_0x7c337c]=_0x2c8bdc,u=(_0x97d849,_0x181dd3,_0x145323)=>K(_0x97d849,typeof _0x181dd3!=_0x562b47(0x10f)?_0x181dd3+'':_0x181dd3,_0x145323);import{Disposable as _0x2e50d0,toDisposable as _0x4271be,IUniverInstanceService as _0x187255,Inject as _0x264acd,Injector as _0x126a5b,IConfigService as _0x974748,ICommandService as _0x105090,RxDisposable as _0x51a549,UniverInstanceType as _0x51802f,DisposableCollection as _0x43222f,CommandType as _0x33f042,DependentOn as _0x411c47,Plugin as _0x1130c7,merge as _0xb0c13e,registerDependencies as _0x333ef5,mergeOverrideWithDependencies as _0x3d1a15,touchDependencies as _0x1c3957}from'@univerjs/core';import{useDependency as _0x38dad9,useObservable as _0x14a93c,IUIPartsService as _0x28a6aa,BuiltInUIPart as _0x2de438,connectInjector as _0x183c2b}from'@univerjs/ui';import{jsx as _0x33bb7b,jsxs as _0x4dcdb8,Fragment as _0x967f7f}from'react/jsx-runtime';import{Dropdown as _0x5079de,clsx as _0x54f579,Button as _0x468343}from'@univerjs/design';import{useRef as _0x2dba5e,createElement as _0x4a7a97,forwardRef as _0x424bb6,useState as _0x555c58,useEffect as _0x22e887}from'react';import{CollaborationEvent as _0x301d58,parseProtocolChangeset as _0x19d1a6}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x4baae7,SessionStatus as _0x50ed84,UniverCollaborationClientPlugin as _0x4e7d3f}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x34d039,SetWorksheetActiveOperation as _0x56bd43}from'@univerjs/sheets';import{BehaviorSubject as _0x5af6da,Subject as _0x8db225}from'rxjs';import{takeUntil as _0x37e8e1,throttleTime as _0x225f90}from'rxjs/operators';function _0xad37(){const _0x57a4e1=['_handleTerminate','3958aGpPZD','_handleOnline','requireSession','values','colorChannel1','UNIVER_LIVE_SHARE_PLUGIN','_univerInstanceService','getUnitId','_commandService','replace','mask','Stop\x20presenting','onStarting','init','disposeWithMe','getLiveShareCoordinator','evenodd','LIVESHARE_OPERATION','add','_stopFollowing','6JIlaZT','xlink:href','offline','stopFollowing','_startFollowing','stringify','UniverIcon','has','reverse','UNIVER_SHEET','_startLiveShareCoordinator','children','LiveShareIcon','_unitID','_configService','_collabSessionService','trim','current','get','_sharedOperations','OFFLINE','getInitialStates','executeCommand','getOwnPropertyDescriptor','defineProperty','shouldShareOperation','659898jeDCxf','subscribe','NOT_FOLLOWING','entries','getMemberID','length','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','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','includes','_beIdle','presenter','currentColor','send','_fetchOperations','assign','onRendered','univerjs-icon\x20univerjs-icon-','_presenter','Present\x20this\x20document','operations','status$','asObservable','presenting','type','_injector','default','forEach','registerComponent','You\x27re\x20not\x20following\x20the\x20presenter','_handleOffline','defs','1em','attrs','registerSharedOperation','unsubscribe','startFollowing','symbol','end','toString','onCommandExecuted','tag','_status$','_reporters','text','IDLE','registerInitialStateReporter','sessionStatus$','univer-mb-3\x20univer-w-full\x20univer-text-sm','params','div','_commandDisposable','from','getTypeOfUnitAdded$','LIVESHARE_TERMINATE','string','_status','You\x27re\x20following\x20the\x20presenter','not-following','live-share-icon','override','_startPresenting','4AjjRIw','dispose','2359764EWOZQb','getCurrentTypeOfUnit$','getTypeOfUnitDisposed$','getConfig','delete','parse','next','_uiPartsService','http://www.w3.org/2000/svg','following','univer-size-4','data','77225JfVLKv','pipe','OPERATION','fill','_init','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','_liveShareService','substring','NEW_CHANGESETS','0\x200\x2017\x2017','idSuffix','PRESENTING','set','then','LIVESHARE_NEW_HOST','7rkUwWw','tryStartPresenting','_handleNewChangeSets','7XjjDKe','path','idle','_handleOperation','759048idyRNb','stopPresenting','_config','getValue','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','complete','7433730tQoJZL','ONLINE','_collabSession','defIds','none','You\x27are\x20offline.','_entities','dispose$','url(#$1','button','10992773hcrZbG','UNIVER_UNKNOWN','find','_stopPresenting','FOLLOWING','_handleNewHost','getLiveShareCoordinatorSync'];_0xad37=function(){return _0x57a4e1;};return _0xad37();}import{SetZoomRatioOperation as _0x4e0176,SetScrollOperation as _0xdcd218}from'@univerjs/sheets-ui';function k({ref:_0x4c54a8,..._0x5c0e74}){const _0x5e6d46=_0x562b47,{icon:_0x314ce7,id:_0x1a5b04,className:_0x2acdf6,extend:_0x5503e6,..._0x2067cf}=_0x5c0e74,_0x1e4a05=(_0x5e6d46(0xfb)+_0x1a5b04+'\x20'+(_0x2acdf6||''))[_0x5e6d46(0xe1)](),_0x50da95=_0x2dba5e('_'+Oe());return G(_0x314ce7,''+_0x1a5b04,{'defIds':_0x314ce7[_0x5e6d46(0x155)],'idSuffix':_0x50da95[_0x5e6d46(0xe2)]},{'ref':_0x4c54a8,'className':_0x1e4a05,..._0x2067cf},_0x5503e6);}function G(_0xac6eaa,_0x11c44e,_0x27b2d0,_0x1b95cf,_0x527ef1){const _0x2eafa7=_0x562b47;return _0x4a7a97(_0xac6eaa[_0x2eafa7(0x113)],{'key':_0x11c44e,...be(_0xac6eaa,_0x27b2d0,_0x527ef1),..._0x1b95cf},(Ee(_0xac6eaa,_0x27b2d0)[_0x2eafa7(0xdc)]||[])['map']((_0x30a889,_0x30cb91)=>G(_0x30a889,_0x11c44e+'-'+_0xac6eaa[_0x2eafa7(0x113)]+'-'+_0x30cb91,_0x27b2d0,void 0x0,_0x527ef1)));}function be(_0x885004,_0x615c6f,_0x51715f){const _0x10a47a=_0x562b47,_0x54ec7e={..._0x885004[_0x10a47a(0x10b)]};_0x51715f!=null&&_0x51715f[_0x10a47a(0xc1)]&&_0x54ec7e[_0x10a47a(0x139)]==='colorChannel1'&&(_0x54ec7e[_0x10a47a(0x139)]=_0x51715f[_0x10a47a(0xc1)]),_0x885004[_0x10a47a(0x113)]===_0x10a47a(0xc7)&&_0x54ec7e['id']&&(_0x54ec7e['id']=_0x54ec7e['id']+_0x615c6f[_0x10a47a(0x140)]),Object[_0x10a47a(0xee)](_0x54ec7e)['forEach'](([_0x2d0e81,_0x558183])=>{const _0x192f8d=_0x10a47a;_0x2d0e81===_0x192f8d(0xc7)&&typeof _0x558183==_0x192f8d(0x121)&&(_0x54ec7e[_0x2d0e81]=_0x558183[_0x192f8d(0xc6)](/url\(#(.*)\)/,'url(#$1'+_0x615c6f[_0x192f8d(0x140)]+')'));});const {defIds:_0x5d471e}=_0x615c6f;return!_0x5d471e||_0x5d471e[_0x10a47a(0xf0)]===0x0||(_0x885004['tag']==='use'&&_0x54ec7e[_0x10a47a(0xd2)]&&(_0x54ec7e[_0x10a47a(0xd2)]=_0x54ec7e[_0x10a47a(0xd2)]+_0x615c6f[_0x10a47a(0x140)]),Object[_0x10a47a(0xee)](_0x54ec7e)[_0x10a47a(0x105)](([_0x302d90,_0x37e392])=>{const _0x1a58ef=_0x10a47a;typeof _0x37e392==_0x1a58ef(0x121)&&(_0x54ec7e[_0x302d90]=_0x37e392[_0x1a58ef(0xc6)](/url\(#(.*)\)/,_0x1a58ef(0x15a)+_0x615c6f[_0x1a58ef(0x140)]+')'));})),_0x54ec7e;}function Ee(_0x30635a,_0x12daad){const _0x5c683c=_0x562b47;var _0x512872;const {defIds:_0x1c6c91}=_0x12daad;return!_0x1c6c91||_0x1c6c91[_0x5c683c(0xf0)]===0x0?_0x30635a:_0x30635a['tag']===_0x5c683c(0x109)&&((_0x512872=_0x30635a[_0x5c683c(0xdc)])!=null&&_0x512872[_0x5c683c(0xf0)])?{..._0x30635a,'children':_0x30635a[_0x5c683c(0xdc)]['map'](_0x587fc7=>typeof _0x587fc7[_0x5c683c(0x10b)]['id']==_0x5c683c(0x121)&&_0x1c6c91&&_0x1c6c91[_0x5c683c(0xf3)](_0x587fc7[_0x5c683c(0x10b)]['id'])?{..._0x587fc7,'attrs':{..._0x587fc7[_0x5c683c(0x10b)],'id':_0x587fc7[_0x5c683c(0x10b)]['id']+_0x12daad[_0x5c683c(0x140)]}}:_0x587fc7)}:_0x30635a;}function Oe(){const _0xe371e=_0x562b47;return Math['random']()[_0xe371e(0x111)](0x24)[_0xe371e(0x13d)](0x2,0x8);}k['displayName']=_0x562b47(0xd7);const we={'tag':'svg','attrs':{'xmlns':_0x562b47(0x132),'fill':_0x562b47(0x156),'viewBox':_0x562b47(0x13f),'width':_0x562b47(0x10a),'height':'1em'},'children':[{'tag':_0x562b47(0x149),'attrs':{'fill':_0x562b47(0xf6),'d':_0x562b47(0x13b)}},{'tag':'path','attrs':{'fill':_0x562b47(0xf6),'d':_0x562b47(0x150),'fillRule':'evenodd','clipRule':_0x562b47(0xcd)}}]},W=_0x424bb6(function(_0x2bcc6a,_0x58b487){const _0x2f598f=_0x562b47;return _0x4a7a97(k,Object[_0x2f598f(0xf9)]({},_0x2bcc6a,{'id':_0x2f598f(0x125),'ref':_0x58b487,'icon':we}));});W['displayName']=_0x562b47(0xdd);class L extends _0x2e50d0{constructor(){const _0x562679=_0x562b47;super(...arguments),u(this,_0x562679(0xe4),new Set()),u(this,_0x562679(0x115),new Set());}[_0x562b47(0x10c)](_0x2c2786){const _0x2f1f1b=_0x562b47;return this[_0x2f1f1b(0xe4)]['add'](_0x2c2786),_0x4271be(()=>this[_0x2f1f1b(0xe4)][_0x2f1f1b(0x12e)](_0x2c2786));}[_0x562b47(0x118)](_0x490737){const _0x33b0af=_0x562b47;return this[_0x33b0af(0x115)]['add'](_0x490737),_0x4271be(()=>this['_reporters'][_0x33b0af(0x12e)](_0x490737));}[_0x562b47(0xea)](_0x16195f){const _0x3ebe52=_0x562b47;return this[_0x3ebe52(0xe4)][_0x3ebe52(0xd8)](_0x16195f);}['getInitialStates'](_0x239faf){const _0x31ba11=_0x562b47;return Array[_0x31ba11(0x11e)](this[_0x31ba11(0x115)])['map'](_0x2e959e=>_0x2e959e(_0x239faf));}}var Ne=Object[_0x562b47(0xe8)],Y=(_0x447188,_0x169ee5,_0x1f6a5a,_0x138d9c)=>{const _0x48dd42=_0x562b47;for(var _0x5f0651=_0x138d9c>0x1?void 0x0:_0x138d9c?Ne(_0x169ee5,_0x1f6a5a):_0x169ee5,_0x539646=_0x447188[_0x48dd42(0xf0)]-0x1,_0x1854e1;_0x539646>=0x0;_0x539646--)(_0x1854e1=_0x447188[_0x539646])&&(_0x5f0651=_0x1854e1(_0x5f0651)||_0x5f0651);return _0x5f0651;},_=(_0x443ad9,_0x3b2c40)=>(_0x47b132,_0x14aaa2)=>_0x3b2c40(_0x47b132,_0x14aaa2,_0x443ad9);let S=class extends _0x51a549{constructor(_0x562fae,_0x541c70,_0x2ce976){const _0x1633b0=_0x562b47;super(),u(this,_0x1633b0(0x158),new Map()),(this[_0x1633b0(0xc3)]=_0x562fae,this[_0x1633b0(0x103)]=_0x541c70,this[_0x1633b0(0xe0)]=_0x2ce976,this[_0x1633b0(0x13a)]());}async[_0x562b47(0xcc)](_0x36b81f){const _0x4e84d8=_0x562b47;return this[_0x4e84d8(0x158)][_0x4e84d8(0xd8)](_0x36b81f)||await this['_startLiveShareCoordinator'](_0x36b81f),this['_entities'][_0x4e84d8(0xe3)](_0x36b81f);}[_0x562b47(0x162)](_0x46eade){const _0x3f0b84=_0x562b47;var _0x2c8302;return(_0x2c8302=this[_0x3f0b84(0x158)]['get'](_0x46eade))!=null?_0x2c8302:null;}[_0x562b47(0x13a)](){const _0x240901=_0x562b47;this[_0x240901(0xc3)][_0x240901(0x11f)](_0x51802f[_0x240901(0xda)])[_0x240901(0x137)](_0x37e8e1(this['dispose$']))[_0x240901(0xec)](async _0x1813e4=>{const _0x1bce96=_0x240901,_0x49fdf0=_0x1813e4[_0x1bce96(0xc4)]();this[_0x1bce96(0x158)]['has'](_0x49fdf0)||this[_0x1bce96(0xdb)](_0x49fdf0);}),this[_0x240901(0xc3)][_0x240901(0x12c)](_0x51802f[_0x240901(0xda)])[_0x240901(0x137)](_0x37e8e1(this[_0x240901(0x159)]))[_0x240901(0xec)](_0x29d9f4=>{const _0x18e5ab=_0x240901,_0x31bdcb=_0x29d9f4[_0x18e5ab(0xc4)](),_0x151a8c=this[_0x18e5ab(0x158)][_0x18e5ab(0xe3)](_0x31bdcb);_0x151a8c==null||_0x151a8c[_0x18e5ab(0x129)]();});}async[_0x562b47(0xdb)](_0x208b9b){const _0x1af5d8=_0x562b47,_0x2166f3=await this['_collabSessionService'][_0x1af5d8(0x166)](_0x208b9b),_0x70e399=this[_0x1af5d8(0x103)]['createInstance'](N,_0x208b9b,_0x2166f3);return _0x70e399[_0x1af5d8(0xca)](),this[_0x1af5d8(0x158)][_0x1af5d8(0x142)](_0x208b9b,_0x70e399),_0x70e399;}};S=Y([_(0x0,_0x187255),_(0x1,_0x264acd(_0x126a5b)),_(0x2,_0x264acd(_0x4baae7))],S);var c=(_0x51fd21=>(_0x51fd21[_0x562b47(0xe5)]=_0x562b47(0xd3),_0x51fd21[_0x562b47(0x117)]=_0x562b47(0x14a),_0x51fd21['FOLLOWING']='following',_0x51fd21['NOT_FOLLOWING']='not-following',_0x51fd21[_0x562b47(0x141)]=_0x562b47(0x101),_0x51fd21))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x51a549{constructor(_0x4335c1,_0x880e61,_0x33e4d2,_0x3837f7,_0x2a4e6f){const _0x5f297d=_0x562b47;super(),u(this,'_status$',new _0x5af6da(_0x5f297d(0x14a))),u(this,_0x5f297d(0xff),this[_0x5f297d(0x114)][_0x5f297d(0x100)]()),u(this,_0x5f297d(0x13a),!0x1),u(this,_0x5f297d(0x11d),null),u(this,_0x5f297d(0xfc),null),(this['_unitID']=_0x4335c1,this[_0x5f297d(0x154)]=_0x880e61,this[_0x5f297d(0xdf)]=_0x33e4d2,this[_0x5f297d(0x13c)]=_0x3837f7,this[_0x5f297d(0xc5)]=_0x2a4e6f);}get[_0x562b47(0x122)](){const _0x513979=_0x562b47;return this[_0x513979(0x114)][_0x513979(0x14f)]();}[_0x562b47(0x129)](){const _0x485651=_0x562b47;var _0x527930;(_0x527930=this['_commandDisposable'])==null||_0x527930[_0x485651(0x129)](),this[_0x485651(0x114)][_0x485651(0x130)](_0x485651(0x14a)),this['_status$'][_0x485651(0x151)]();}['getStatus'](){return this['_status'];}[_0x562b47(0xca)](){const _0x567d7e=_0x562b47;this[_0x567d7e(0x13a)]||(this['_init']=!0x0,this[_0x567d7e(0x154)][_0x567d7e(0x119)]['pipe'](_0x37e8e1(this[_0x567d7e(0x159)]))[_0x567d7e(0xec)](_0x20fbf8=>{const _0x41e774=_0x567d7e;switch(_0x20fbf8){case _0x50ed84[_0x41e774(0xe5)]:this[_0x41e774(0x108)]();break;case _0x50ed84[_0x41e774(0x153)]:this['_handleOnline']();break;}}),this[_0x567d7e(0x154)]['event$'][_0x567d7e(0x137)](_0x37e8e1(this[_0x567d7e(0x159)]))[_0x567d7e(0xec)](_0x29231e=>{const _0x3b50fa=_0x567d7e,{eventID:_0x3e0843}=_0x29231e;switch(_0x3e0843){case _0x301d58[_0x3b50fa(0x144)]:this[_0x3b50fa(0x161)](_0x29231e);break;case _0x301d58[_0x3b50fa(0xce)]:this[_0x3b50fa(0x14b)](_0x29231e);break;case _0x301d58[_0x3b50fa(0x120)]:this[_0x3b50fa(0x163)]();break;case _0x301d58[_0x3b50fa(0x13e)]:this['_handleNewChangeSets'](_0x29231e);break;}}));}[_0x562b47(0x146)](){const _0x525b0f=_0x562b47;this[_0x525b0f(0x154)][_0x525b0f(0xf7)]({'eventID':_0x301d58['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x525b0f(0xde)],'userID':this[_0x525b0f(0x154)][_0x525b0f(0xef)]()}},this[_0x525b0f(0xde)]);}[_0x562b47(0x14d)](){const _0xa82d6f=_0x562b47;this[_0xa82d6f(0x122)]===_0xa82d6f(0x101)&&(this['_status$']['next']('idle'),this[_0xa82d6f(0x154)]['send']({'eventID':_0x301d58['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0xa82d6f(0xde)]}},this[_0xa82d6f(0xde)]));}[_0x562b47(0x10e)](){const _0x1c3b84=_0x562b47;this['_status']===_0x1c3b84(0x124)&&(this['_status$']['next'](_0x1c3b84(0x133)),this['_startFollowing']());}['stopFollowing'](){const _0x5bb57a=_0x562b47;this[_0x5bb57a(0x122)]==='following'&&this[_0x5bb57a(0xd0)]();}['_handleNewHost'](_0x4b55fc){const _0x5b0860=_0x562b47,{presenter:_0x1290a9}=_0x4b55fc[_0x5b0860(0x135)],_0x140afc=this[_0x5b0860(0x154)][_0x5b0860(0xef)]();this[_0x5b0860(0xfc)]=_0x1290a9,_0x1290a9===_0x140afc?(this[_0x5b0860(0xd0)](),this[_0x5b0860(0x127)]()):this[_0x5b0860(0x122)]!==_0x5b0860(0x124)&&(this[_0x5b0860(0x15f)](),this['_startFollowing']());}['_fetchOperations'](){const _0x16bd35=_0x562b47,_0x5da9bb={'eventID':_0x301d58['LIVESHARE_FETCH_OPERATIONS']};this[_0x16bd35(0x154)]['send'](_0x5da9bb,this['_unitID']);}[_0x562b47(0x163)](){const _0x5acf28=_0x562b47;this[_0x5acf28(0xfc)]=null,this[_0x5acf28(0x122)]!=='presenting'&&this['_beIdle']();}[_0x562b47(0x147)](_0x1adea4){const _0x906164=_0x562b47;if(this[_0x906164(0x122)]===_0x906164(0x133)&&this[_0x906164(0xfc)]===_0x1adea4[_0x906164(0x135)]['memberID']){const _0x56ad84=_0x19d1a6(_0x1adea4[_0x906164(0x135)])['mutations'][_0x906164(0xd9)]()[_0x906164(0x15e)](_0x2c6158=>_0x2c6158['id']===_0x34d039['id']);if(_0x56ad84){const _0x1cef96=_0x56ad84['params']['unitId'],_0x1b8c4e=_0x56ad84[_0x906164(0x11b)]['sheet']['id'];setTimeout(()=>{const _0x56a571=_0x906164;this[_0x56a571(0xc5)][_0x56a571(0xe7)](_0x56bd43['id'],{'unitId':_0x1cef96,'subUnitId':_0x1b8c4e},{'fromCollab':!0x0});});}}}[_0x562b47(0x127)](){const _0x4d569f=_0x562b47;this[_0x4d569f(0x114)][_0x4d569f(0x130)](_0x4d569f(0x101));const _0x5925f2=new Map(),_0x3eac62=this[_0x4d569f(0x11d)]=new _0x43222f();_0x3eac62[_0x4d569f(0xcf)](_0x4271be(()=>{const _0x3d6ec6=_0x4d569f;_0x5925f2[_0x3d6ec6(0x105)](_0x47fc61=>_0x47fc61['complete']()),_0x5925f2['clear']();})),_0x3eac62[_0x4d569f(0xcf)](this['_commandService'][_0x4d569f(0x112)](_0x4f10df=>{const _0x37b9e2=_0x4d569f;var _0x367a07;if(_0x4f10df[_0x37b9e2(0x102)]!==_0x33f042[_0x37b9e2(0x138)]||!this[_0x37b9e2(0x13c)][_0x37b9e2(0xea)](_0x4f10df['id']))return;const {id:_0x112488}=_0x4f10df;let _0x22c586;_0x5925f2[_0x37b9e2(0xd8)](_0x112488)?_0x22c586=_0x5925f2[_0x37b9e2(0xe3)](_0x112488):(_0x22c586=new _0x8db225(),_0x5925f2[_0x37b9e2(0x142)](_0x112488,_0x22c586),_0x22c586[_0x37b9e2(0x137)](_0x225f90((_0x367a07=this[_0x37b9e2(0xdf)][_0x37b9e2(0x12d)](Ce))!=null?_0x367a07:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x37b9e2(0xec)](_0x4d333a=>{const _0x4d27f1=_0x37b9e2;this[_0x4d27f1(0x154)]['send']({'eventID':_0x301d58[_0x4d27f1(0xce)],'data':{'unitID':this[_0x4d27f1(0xde)],'operations':{[_0x4d333a['id']]:{'id':_0x4d333a['id'],'params':JSON[_0x4d27f1(0xd6)](_0x4d333a['params'])}}}},this[_0x4d27f1(0xde)]);})),_0x22c586[_0x37b9e2(0x130)](_0x4f10df);})),this[_0x4d569f(0x13c)][_0x4d569f(0xe6)](this['_unitID'])['forEach'](_0x323d5a=>this[_0x4d569f(0x154)][_0x4d569f(0xf7)]({'eventID':_0x301d58[_0x4d569f(0xce)],'data':{'unitID':this[_0x4d569f(0xde)],'operations':{[_0x323d5a['id']]:{'id':_0x323d5a['id'],'params':JSON[_0x4d569f(0xd6)](_0x323d5a[_0x4d569f(0x11b)])}}}},this[_0x4d569f(0xde)]));}['_stopPresenting'](){const _0x36c595=_0x562b47;var _0x43ce6d;this[_0x36c595(0x114)]['next']('idle'),(_0x43ce6d=this['_commandDisposable'])==null||_0x43ce6d[_0x36c595(0x129)](),this['_commandDisposable']=null;}[_0x562b47(0xd5)](){const _0x4748b7=_0x562b47;var _0x376b01;(_0x376b01=this[_0x4748b7(0x11d)])==null||_0x376b01[_0x4748b7(0x129)](),this['_status$'][_0x4748b7(0x130)](_0x4748b7(0x133));}[_0x562b47(0xf4)](){const _0x4c49c9=_0x562b47;var _0xa33ed8;this['_status$'][_0x4c49c9(0x130)]('idle'),(_0xa33ed8=this[_0x4c49c9(0x11d)])==null||_0xa33ed8[_0x4c49c9(0x129)](),this[_0x4c49c9(0x11d)]=null;}[_0x562b47(0xd0)](){const _0x356afa=_0x562b47;var _0x3b0322;this[_0x356afa(0x114)][_0x356afa(0x130)]('not-following'),(_0x3b0322=this[_0x356afa(0x11d)])==null||_0x3b0322[_0x356afa(0x129)]();}[_0x562b47(0x14b)](_0x1eaf46){const _0x1bf23c=_0x562b47;if([_0x1bf23c(0x101),_0x1bf23c(0x124),_0x1bf23c(0xd3)][_0x1bf23c(0xf3)](this[_0x1bf23c(0x122)])||!_0x1eaf46[_0x1bf23c(0x135)][_0x1bf23c(0xf5)]||_0x1eaf46[_0x1bf23c(0x135)][_0x1bf23c(0xf5)]===this['_collabSession']['getMemberID']())return;this[_0x1bf23c(0x122)]===_0x1bf23c(0x14a)&&this[_0x1bf23c(0xd5)]();const _0x3e2d4e=_0x1eaf46[_0x1bf23c(0x135)][_0x1bf23c(0xfe)];Object[_0x1bf23c(0x167)](_0x3e2d4e)[_0x1bf23c(0x105)](_0x367c4c=>{const _0x5111c2=_0x1bf23c;this['_commandService'][_0x5111c2(0xe7)](_0x367c4c['id'],_0x367c4c['params']?JSON[_0x5111c2(0x12f)](_0x367c4c[_0x5111c2(0x11b)]):null,{'fromCollab':!0x0});});}[_0x562b47(0x108)](){const _0x3fb4bc=_0x562b47;var _0x25d51f;this[_0x3fb4bc(0x114)][_0x3fb4bc(0x130)](_0x3fb4bc(0xd3)),(_0x25d51f=this['_commandDisposable'])==null||_0x25d51f[_0x3fb4bc(0x129)]();}[_0x562b47(0x165)](){const _0x2125bc=_0x562b47;this[_0x2125bc(0x114)][_0x2125bc(0x130)](_0x2125bc(0x14a)),this[_0x2125bc(0xf8)]();}};N=Y([_(0x2,_0x974748),_(0x3,_0x264acd(L)),_(0x4,_0x105090)],N);function Le(){const _0x4a6c4b=_0x562b47,_0x46f034=_0x38dad9(S),_0x4b5495=_0x38dad9(_0x187255),_0x357f80=_0x14a93c(()=>_0x4b5495[_0x4a6c4b(0x12b)](_0x51802f[_0x4a6c4b(0xda)]),void 0x0,!0x1,[]),[_0x321261,_0x2b483d]=_0x555c58(null),[_0x39da3e,_0x487c08]=_0x555c58(c[_0x4a6c4b(0x117)]),_0x5c9aba=_0x2dba5e(null);return _0x22e887(()=>(_0x357f80&&_0x46f034[_0x4a6c4b(0xcc)](_0x357f80[_0x4a6c4b(0xc4)]())[_0x4a6c4b(0x143)](_0x58b38f=>{const _0x41f29a=_0x4a6c4b;_0x2b483d(_0x58b38f),_0x5c9aba['current']=_0x58b38f[_0x41f29a(0xff)][_0x41f29a(0xec)](_0x3a5734=>{_0x487c08(_0x3a5734);});}),()=>{const _0x5053c7=_0x4a6c4b;var _0x4e470b;(_0x4e470b=_0x5c9aba[_0x5053c7(0xe2)])==null||_0x4e470b[_0x5053c7(0x10d)](),_0x5c9aba['current']=null;}),[_0x357f80,_0x46f034]),_0x321261?_0x33bb7b(_0x5079de,{'align':_0x4a6c4b(0x110),'disabled':_0x39da3e===c[_0x4a6c4b(0xe5)],'className':_0x4a6c4b(0xf1),'overlay':_0x33bb7b(Re,{'status':_0x39da3e,'coordinator':_0x321261}),'children':_0x33bb7b(_0x4a6c4b(0x15b),{'className':_0x54f579(_0x4a6c4b(0xf2),{'univer-cursor-not-allowed':_0x39da3e===c[_0x4a6c4b(0xe5)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x39da3e!==c[_0x4a6c4b(0xe5)]}),'type':_0x4a6c4b(0x15b),'children':_0x33bb7b(W,{'className':_0x4a6c4b(0x134)})})}):null;}function Re(_0xcd5400){const _0x5cb8f9=_0x562b47,{status:_0xf6ff60,coordinator:_0x103430}=_0xcd5400;switch(_0xf6ff60){case c[_0x5cb8f9(0x117)]:return _0x33bb7b($e,{'coordinator':_0x103430});case c[_0x5cb8f9(0x160)]:return _0x33bb7b(xe,{'coordinator':_0x103430});case c[_0x5cb8f9(0xed)]:return _0x33bb7b(Pe,{'coordinator':_0x103430});case c[_0x5cb8f9(0xe5)]:return _0x33bb7b(Te,{});case c[_0x5cb8f9(0x141)]:return _0x33bb7b(Ae,{'coordinator':_0x103430});default:return null;}}function $e(_0xfe284e){const _0x49706d=_0x562b47,{coordinator:_0x41fae0}=_0xfe284e;return _0x4dcdb8(_0x967f7f,{'children':[_0x33bb7b(_0x49706d(0x11c),{'className':_0x49706d(0x11a),'children':_0x49706d(0xfd)}),_0x33bb7b(_0x468343,{'onClick':()=>_0x41fae0[_0x49706d(0x146)](),'children':'Start'})]});}function xe(_0xea0781){const _0x59e65e=_0x562b47,{coordinator:_0x3077cf}=_0xea0781;return _0x4dcdb8(_0x967f7f,{'children':[_0x33bb7b(_0x59e65e(0x11c),{'className':_0x59e65e(0x11a),'children':_0x59e65e(0x123)}),_0x33bb7b(_0x468343,{'onClick':()=>_0x3077cf[_0x59e65e(0xd4)](),'children':'Stop\x20following'})]});}function Pe(_0x17c015){const _0x173e7b=_0x562b47,{coordinator:_0x5e2ed2}=_0x17c015;return _0x4dcdb8(_0x967f7f,{'children':[_0x33bb7b('div',{'className':_0x173e7b(0x11a),'children':_0x173e7b(0x107)}),_0x33bb7b(_0x468343,{'variant':_0x173e7b(0x116),'onClick':()=>_0x5e2ed2[_0x173e7b(0x10e)](),'children':'Start\x20following'})]});}function _0x465d(_0x3d6d8f,_0x39997c){_0x3d6d8f=_0x3d6d8f-0xc1;const _0xad37bf=_0xad37();let _0x465d9f=_0xad37bf[_0x3d6d8f];return _0x465d9f;}function Ae(_0x338c7b){const _0xca71c4=_0x562b47,{coordinator:_0x1aef68}=_0x338c7b;return _0x4dcdb8(_0x967f7f,{'children':[_0x33bb7b(_0xca71c4(0x11c),{'className':_0xca71c4(0x11a),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x33bb7b(_0x468343,{'variant':_0xca71c4(0x104),'onClick':()=>_0x1aef68[_0xca71c4(0x14d)](),'children':_0xca71c4(0xc8)})]});}function Te(){const _0x371d4c=_0x562b47;return _0x33bb7b(_0x967f7f,{'children':_0x371d4c(0x157)});}var Fe=Object[_0x562b47(0xe8)],He=(_0x3efd5d,_0x30871a,_0x33d905,_0x4119a7)=>{for(var _0x47ffec=_0x4119a7>0x1?void 0x0:_0x4119a7?Fe(_0x30871a,_0x33d905):_0x30871a,_0x1b80fe=_0x3efd5d['length']-0x1,_0x213264;_0x1b80fe>=0x0;_0x1b80fe--)(_0x213264=_0x3efd5d[_0x1b80fe])&&(_0x47ffec=_0x213264(_0x47ffec)||_0x47ffec);return _0x47ffec;},A=(_0x4c9b00,_0x3defb5)=>(_0x434d3a,_0x582c0c)=>_0x3defb5(_0x434d3a,_0x582c0c,_0x4c9b00);let m=class extends _0x2e50d0{constructor(_0x33f367,_0x44a88a){const _0x4b3204=_0x562b47;super(),this[_0x4b3204(0x103)]=_0x33f367,this[_0x4b3204(0x131)]=_0x44a88a,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x4db92a=_0x562b47;this[_0x4db92a(0xcb)](this[_0x4db92a(0x131)][_0x4db92a(0x106)](_0x2de438['HEADER_MENU'],()=>_0x183c2b(Le,this[_0x4db92a(0x103)])));}};m=He([A(0x0,_0x264acd(_0x126a5b)),A(0x1,_0x28a6aa)],m);const ye='live-share.config',T={};var Ue=Object[_0x562b47(0xe8)],Ve=(_0x5ca6a7,_0x2b3f17,_0x496a25,_0x405d8c)=>{const _0x56bbb8=_0x562b47;for(var _0x5a0f03=_0x405d8c>0x1?void 0x0:_0x405d8c?Ue(_0x2b3f17,_0x496a25):_0x2b3f17,_0x33f87f=_0x5ca6a7[_0x56bbb8(0xf0)]-0x1,_0x110241;_0x33f87f>=0x0;_0x33f87f--)(_0x110241=_0x5ca6a7[_0x33f87f])&&(_0x5a0f03=_0x110241(_0x5a0f03)||_0x5a0f03);return _0x5a0f03;},je=(_0x368bdf,_0x5f58f2)=>(_0x4901b3,_0x4bfac9)=>_0x5f58f2(_0x4901b3,_0x4bfac9,_0x368bdf);let I=class extends _0x2e50d0{constructor(_0xf15733){const _0x3e77f3=_0x562b47;super(),this[_0x3e77f3(0x13c)]=_0xf15733,this[_0x3e77f3(0x13a)]();}['_init'](){const _0x29fecc=_0x562b47;[_0x4e0176['id'],_0xdcd218['id'],_0x56bd43['id']][_0x29fecc(0x105)](_0x9f8534=>{const _0x15a010=_0x29fecc;this[_0x15a010(0xcb)](this[_0x15a010(0x13c)][_0x15a010(0x10c)](_0x9f8534));});}};I=Ve([je(0x0,_0x264acd(L))],I);var Me=Object[_0x562b47(0xe9)],ke=Object[_0x562b47(0xe8)],Ge=(_0x478195,_0x55241a,_0x3a2b8a)=>_0x55241a in _0x478195?Me(_0x478195,_0x55241a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a2b8a}):_0x478195[_0x55241a]=_0x3a2b8a,We=(_0x35fe86,_0x39fabc,_0x1c7658,_0x12c030)=>{const _0x23fed1=_0x562b47;for(var _0x46c4ee=_0x12c030>0x1?void 0x0:_0x12c030?ke(_0x39fabc,_0x1c7658):_0x39fabc,_0x425e53=_0x35fe86[_0x23fed1(0xf0)]-0x1,_0xcbbbcc;_0x425e53>=0x0;_0x425e53--)(_0xcbbbcc=_0x35fe86[_0x425e53])&&(_0x46c4ee=_0xcbbbcc(_0x46c4ee)||_0x46c4ee);return _0x46c4ee;},F=(_0xf7d262,_0x5c51ae)=>(_0x37ffa7,_0x22314d)=>_0x5c51ae(_0x37ffa7,_0x22314d,_0xf7d262),B=(_0x281cd1,_0x57b597,_0x5bc9c6)=>Ge(_0x281cd1,typeof _0x57b597!=_0x562b47(0x10f)?_0x57b597+'':_0x57b597,_0x5bc9c6);const Ye=_0x562b47(0xc2);let b=class extends _0x1130c7{constructor(_0x32209a=T,_0x3c6ecf,_0x4cae29){const _0x579846=_0x562b47;super(),this[_0x579846(0x14e)]=_0x32209a,this['_injector']=_0x3c6ecf,this[_0x579846(0xdf)]=_0x4cae29;const {..._0x1bd3dc}=_0xb0c13e({},T,this[_0x579846(0x14e)]);this[_0x579846(0xdf)]['setConfig'](ye,_0x1bd3dc);}[_0x562b47(0xc9)](){const _0x5c9daf=_0x562b47;_0x333ef5(this['_injector'],_0x3d1a15([[L],[S],[I],[m]],this['_config'][_0x5c9daf(0x126)])),_0x1c3957(this[_0x5c9daf(0x103)],[[I]]);}[_0x562b47(0xfa)](){const _0xbd4a61=_0x562b47;_0x1c3957(this[_0xbd4a61(0x103)],[[m]]);}};B(b,_0x562b47(0x102),_0x51802f[_0x562b47(0x15d)]),B(b,'pluginName',Ye),b=We([_0x411c47(_0x4e7d3f),F(0x1,_0x264acd(_0x126a5b)),F(0x2,_0x974748)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
|
1
|
+
const _0x55cb2f=_0x3b3f;(function(_0x2853c3,_0x18e970){const _0x3e22b9=_0x3b3f,_0x2a2857=_0x2853c3();while(!![]){try{const _0xcf43=-parseInt(_0x3e22b9(0x187))/0x1+-parseInt(_0x3e22b9(0x18d))/0x2+-parseInt(_0x3e22b9(0x1e7))/0x3*(parseInt(_0x3e22b9(0x181))/0x4)+-parseInt(_0x3e22b9(0x1d6))/0x5+-parseInt(_0x3e22b9(0x1ad))/0x6*(parseInt(_0x3e22b9(0x168))/0x7)+parseInt(_0x3e22b9(0x1b1))/0x8*(parseInt(_0x3e22b9(0x1f0))/0x9)+parseInt(_0x3e22b9(0x199))/0xa;if(_0xcf43===_0x18e970)break;else _0x2a2857['push'](_0x2a2857['shift']());}catch(_0x4e4263){_0x2a2857['push'](_0x2a2857['shift']());}}}(_0x38d6,0x8d84a));var J=Object[_0x55cb2f(0x1fb)],K=(_0x321bef,_0x1638e8,_0x242cf9)=>_0x1638e8 in _0x321bef?J(_0x321bef,_0x1638e8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x242cf9}):_0x321bef[_0x1638e8]=_0x242cf9,u=(_0x30cd6d,_0x2d65bb,_0x30439e)=>K(_0x30cd6d,typeof _0x2d65bb!=_0x55cb2f(0x1f2)?_0x2d65bb+'':_0x2d65bb,_0x30439e);import{Disposable as _0x4af259,toDisposable as _0x11f671,IUniverInstanceService as _0x121289,Inject as _0x312b96,Injector as _0x7d3dde,IConfigService as _0x3d3506,ICommandService as _0x58b740,RxDisposable as _0x5c9eca,UniverInstanceType as _0x4070ed,DisposableCollection as _0x52d334,CommandType as _0x3f3a8a,DependentOn as _0x5ee615,Plugin as _0x119531,merge as _0xe10b7b,registerDependencies as _0x58f0a9,mergeOverrideWithDependencies as _0x434f51,touchDependencies as _0x38b9cb}from'@univerjs/core';import{useDependency as _0x1e6c41,useObservable as _0x2bbad4,IUIPartsService as _0x219ba3,BuiltInUIPart as _0x148c23,connectInjector as _0x48b907}from'@univerjs/ui';import{jsx as _0x4c93b8,jsxs as _0x300104,Fragment as _0x3d3edc}from'react/jsx-runtime';import{Dropdown as _0x1ada85,clsx as _0x37c55b,Button as _0x5de6ef}from'@univerjs/design';import{useRef as _0x5cc64a,createElement as _0x368bcf,forwardRef as _0x59d39c,useState as _0x1d3edb,useEffect as _0x310807}from'react';import{CollaborationEvent as _0x246bf5,parseProtocolChangeset as _0x1704a8}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x4517c3,SessionStatus as _0x40d8fd,UniverCollaborationClientPlugin as _0x427d7f}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x252e6b,SetWorksheetActiveOperation as _0x1c9065}from'@univerjs/sheets';import{BehaviorSubject as _0x4699ca,Subject as _0x26cfc0}from'rxjs';import{takeUntil as _0x3b65a1,throttleTime as _0x1b8bcb}from'rxjs/operators';import{SetZoomRatioOperation as _0xaf5adc,SetScrollOperation as _0x48d7dc}from'@univerjs/sheets-ui';function k({ref:_0x30de43,..._0xc717a5}){const _0x45c78f=_0x55cb2f,{icon:_0x3a262c,id:_0x4e0a42,className:_0x4d6d1d,extend:_0x131070,..._0x16853e}=_0xc717a5,_0x6c8aa6=(_0x45c78f(0x161)+_0x4e0a42+'\x20'+(_0x4d6d1d||''))['trim'](),_0x1e9e74=_0x5cc64a('_'+Oe());return G(_0x3a262c,''+_0x4e0a42,{'defIds':_0x3a262c[_0x45c78f(0x17d)],'idSuffix':_0x1e9e74[_0x45c78f(0x1c1)]},{'ref':_0x30de43,'className':_0x6c8aa6,..._0x16853e},_0x131070);}function G(_0xb4d215,_0x50c14b,_0x424c06,_0x50de1d,_0x28853b){const _0x239271=_0x55cb2f;return _0x368bcf(_0xb4d215['tag'],{'key':_0x50c14b,...be(_0xb4d215,_0x424c06,_0x28853b),..._0x50de1d},(Ee(_0xb4d215,_0x424c06)[_0x239271(0x1e8)]||[])['map']((_0x20230d,_0x5ddca1)=>G(_0x20230d,_0x50c14b+'-'+_0xb4d215[_0x239271(0x15e)]+'-'+_0x5ddca1,_0x424c06,void 0x0,_0x28853b)));}function be(_0x5aac9b,_0x127e6f,_0x3dd643){const _0x57a9cd=_0x55cb2f,_0x546884={..._0x5aac9b[_0x57a9cd(0x1f9)]};_0x3dd643!=null&&_0x3dd643[_0x57a9cd(0x1c9)]&&_0x546884[_0x57a9cd(0x1c8)]==='colorChannel1'&&(_0x546884[_0x57a9cd(0x1c8)]=_0x3dd643[_0x57a9cd(0x1c9)]),_0x5aac9b[_0x57a9cd(0x15e)]===_0x57a9cd(0x202)&&_0x546884['id']&&(_0x546884['id']=_0x546884['id']+_0x127e6f['idSuffix']),Object[_0x57a9cd(0x186)](_0x546884)[_0x57a9cd(0x1a9)](([_0x4c5b08,_0x506377])=>{const _0x564068=_0x57a9cd;_0x4c5b08==='mask'&&typeof _0x506377==_0x564068(0x1bb)&&(_0x546884[_0x4c5b08]=_0x506377[_0x564068(0x175)](/url\(#(.*)\)/,_0x564068(0x165)+_0x127e6f['idSuffix']+')'));});const {defIds:_0x1665fb}=_0x127e6f;return!_0x1665fb||_0x1665fb[_0x57a9cd(0x167)]===0x0||(_0x5aac9b[_0x57a9cd(0x15e)]===_0x57a9cd(0x1b5)&&_0x546884[_0x57a9cd(0x179)]&&(_0x546884[_0x57a9cd(0x179)]=_0x546884[_0x57a9cd(0x179)]+_0x127e6f[_0x57a9cd(0x1ee)]),Object[_0x57a9cd(0x186)](_0x546884)[_0x57a9cd(0x1a9)](([_0x1f5012,_0x456b69])=>{const _0x5d0a58=_0x57a9cd;typeof _0x456b69==_0x5d0a58(0x1bb)&&(_0x546884[_0x1f5012]=_0x456b69['replace'](/url\(#(.*)\)/,'url(#$1'+_0x127e6f[_0x5d0a58(0x1ee)]+')'));})),_0x546884;}function Ee(_0x43177f,_0x30ef3b){const _0x366f3a=_0x55cb2f;var _0x4cb47e;const {defIds:_0x357cbf}=_0x30ef3b;return!_0x357cbf||_0x357cbf[_0x366f3a(0x167)]===0x0?_0x43177f:_0x43177f[_0x366f3a(0x15e)]===_0x366f3a(0x1d7)&&((_0x4cb47e=_0x43177f[_0x366f3a(0x1e8)])!=null&&_0x4cb47e[_0x366f3a(0x167)])?{..._0x43177f,'children':_0x43177f[_0x366f3a(0x1e8)][_0x366f3a(0x1f3)](_0x3366ef=>typeof _0x3366ef[_0x366f3a(0x1f9)]['id']=='string'&&_0x357cbf&&_0x357cbf[_0x366f3a(0x198)](_0x3366ef[_0x366f3a(0x1f9)]['id'])?{..._0x3366ef,'attrs':{..._0x3366ef[_0x366f3a(0x1f9)],'id':_0x3366ef[_0x366f3a(0x1f9)]['id']+_0x30ef3b[_0x366f3a(0x1ee)]}}:_0x3366ef)}:_0x43177f;}function Oe(){const _0x4159f0=_0x55cb2f;return Math[_0x4159f0(0x1e5)]()[_0x4159f0(0x1da)](0x24)['substring'](0x2,0x8);}k['displayName']=_0x55cb2f(0x1b3);const we={'tag':'svg','attrs':{'xmlns':_0x55cb2f(0x1c5),'fill':_0x55cb2f(0x1aa),'viewBox':_0x55cb2f(0x19d),'width':_0x55cb2f(0x184),'height':'1em'},'children':[{'tag':_0x55cb2f(0x204),'attrs':{'fill':_0x55cb2f(0x174),'d':_0x55cb2f(0x18b)}},{'tag':_0x55cb2f(0x204),'attrs':{'fill':_0x55cb2f(0x174),'d':_0x55cb2f(0x1bd),'fillRule':_0x55cb2f(0x1ed),'clipRule':_0x55cb2f(0x1ed)}}]},W=_0x59d39c(function(_0x10da74,_0x59629d){const _0x5609b2=_0x55cb2f;return _0x368bcf(k,Object[_0x5609b2(0x1dd)]({},_0x10da74,{'id':'live-share-icon','ref':_0x59629d,'icon':we}));});W[_0x55cb2f(0x189)]=_0x55cb2f(0x1cb);class L extends _0x4af259{constructor(){const _0x4bcc7c=_0x55cb2f;super(...arguments),u(this,_0x4bcc7c(0x1d9),new Set()),u(this,_0x4bcc7c(0x172),new Set());}[_0x55cb2f(0x1fc)](_0x455077){const _0x272a88=_0x55cb2f;return this[_0x272a88(0x1d9)][_0x272a88(0x1cc)](_0x455077),_0x11f671(()=>this[_0x272a88(0x1d9)][_0x272a88(0x206)](_0x455077));}[_0x55cb2f(0x178)](_0x4b13ee){const _0x55c795=_0x55cb2f;return this[_0x55c795(0x172)]['add'](_0x4b13ee),_0x11f671(()=>this[_0x55c795(0x172)][_0x55c795(0x206)](_0x4b13ee));}['shouldShareOperation'](_0x1076a3){const _0x21d2df=_0x55cb2f;return this[_0x21d2df(0x1d9)][_0x21d2df(0x18e)](_0x1076a3);}[_0x55cb2f(0x1d8)](_0x1f388e){const _0x4c4a86=_0x55cb2f;return Array[_0x4c4a86(0x171)](this['_reporters'])[_0x4c4a86(0x1f3)](_0x2cc008=>_0x2cc008(_0x1f388e));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0x4f69d6,_0x444dd4,_0x2dbc2c,_0x439c35)=>{const _0x115134=_0x55cb2f;for(var _0x55d3a5=_0x439c35>0x1?void 0x0:_0x439c35?Ne(_0x444dd4,_0x2dbc2c):_0x444dd4,_0x547d2f=_0x4f69d6[_0x115134(0x167)]-0x1,_0x2972a7;_0x547d2f>=0x0;_0x547d2f--)(_0x2972a7=_0x4f69d6[_0x547d2f])&&(_0x55d3a5=_0x2972a7(_0x55d3a5)||_0x55d3a5);return _0x55d3a5;},_=(_0x49dfbc,_0x4a3b30)=>(_0x21741d,_0x51210f)=>_0x4a3b30(_0x21741d,_0x51210f,_0x49dfbc);let S=class extends _0x5c9eca{constructor(_0x464b9d,_0x169ca8,_0x558123){const _0x5a314d=_0x55cb2f;super(),u(this,_0x5a314d(0x205),new Map()),(this[_0x5a314d(0x1c3)]=_0x464b9d,this[_0x5a314d(0x1dc)]=_0x169ca8,this[_0x5a314d(0x1b7)]=_0x558123,this[_0x5a314d(0x19e)]());}async[_0x55cb2f(0x1a8)](_0x4569df){const _0x451b2c=_0x55cb2f;return this[_0x451b2c(0x205)]['has'](_0x4569df)||await this['_startLiveShareCoordinator'](_0x4569df),this[_0x451b2c(0x205)]['get'](_0x4569df);}[_0x55cb2f(0x17b)](_0x4c78dd){const _0x3dec21=_0x55cb2f;var _0x12ee02;return(_0x12ee02=this[_0x3dec21(0x205)][_0x3dec21(0x1ba)](_0x4c78dd))!=null?_0x12ee02:null;}['_init'](){const _0x2e7f3f=_0x55cb2f;this['_univerInstanceService'][_0x2e7f3f(0x1f5)](_0x4070ed['UNIVER_SHEET'])[_0x2e7f3f(0x1bf)](_0x3b65a1(this[_0x2e7f3f(0x194)]))[_0x2e7f3f(0x1b6)](async _0x4316ee=>{const _0x4c782c=_0x2e7f3f,_0x404448=_0x4316ee[_0x4c782c(0x18f)]();this[_0x4c782c(0x205)][_0x4c782c(0x18e)](_0x404448)||this['_startLiveShareCoordinator'](_0x404448);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4070ed[_0x2e7f3f(0x1eb)])[_0x2e7f3f(0x1bf)](_0x3b65a1(this['dispose$']))[_0x2e7f3f(0x1b6)](_0x460b91=>{const _0x3585cf=_0x2e7f3f,_0x471a29=_0x460b91[_0x3585cf(0x18f)](),_0x58a66f=this['_entities'][_0x3585cf(0x1ba)](_0x471a29);_0x58a66f==null||_0x58a66f[_0x3585cf(0x1cf)]();});}async['_startLiveShareCoordinator'](_0x20bc95){const _0x5569a2=_0x55cb2f,_0x4df69a=await this[_0x5569a2(0x1b7)][_0x5569a2(0x182)](_0x20bc95),_0x4f9b5f=this[_0x5569a2(0x1dc)][_0x5569a2(0x180)](N,_0x20bc95,_0x4df69a);return _0x4f9b5f['init'](),this[_0x5569a2(0x205)]['set'](_0x20bc95,_0x4f9b5f),_0x4f9b5f;}};S=Y([_(0x0,_0x121289),_(0x1,_0x312b96(_0x7d3dde)),_(0x2,_0x312b96(_0x4517c3))],S);function _0x38d6(){const _0x30b275=['_commandService','type','_handleOffline','startFollowing','OFFLINE','mask','getValue','path','_entities','delete','override','getConfig','tag','idle','set','univerjs-icon\x20univerjs-icon-','You\x27are\x20offline.','_status','presenting','url(#$1','operations','length','549850lLLxpk','getMemberID','_commandDisposable','You\x27re\x20following\x20the\x20presenter','_uiPartsService','_liveShareService','_handleNewHost','send','onCommandExecuted','from','_reporters','find','currentColor','replace','NOT_FOLLOWING','_handleOnline','registerInitialStateReporter','xlink:href','onStarting','getLiveShareCoordinatorSync','_status$','defIds','disposeWithMe','ONLINE','createInstance','3565852TEIFJC','requireSession','_handleNewChangeSets','1em','_presenter','entries','304626ZhJhZr','_startPresenting','displayName','mutations','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','not-following','1530518oCzYNF','has','getUnitId','then','Present\x20this\x20document','_stopFollowing','_handleOperation','dispose$','LIVESHARE_FETCH_OPERATIONS','OPERATION','Start\x20following','includes','42260800AxemyM','end','next','Start','0\x200\x2017\x2017','_init','offline','stopFollowing','complete','tryStartPresenting','_startFollowing','sheet','FOLLOWING','HEADER_MENU','getOwnPropertyDescriptor','getLiveShareCoordinator','forEach','none','unsubscribe','_fetchOperations','84xYIGQd','_stopPresenting','Stop\x20following','reverse','2833864pINWxF','LIVESHARE_REQUEST_HOST','UniverIcon','You\x27re\x20not\x20following\x20the\x20presenter','use','subscribe','_collabSessionService','unitId','_beIdle','get','string','following','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','_collabSession','pipe','data','current','LIVESHARE_TERMINATE','_univerInstanceService','IDLE','http://www.w3.org/2000/svg','init','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','fill','colorChannel1','stringify','LiveShareIcon','add','button','Stop\x20presenting','dispose','LIVESHARE_NEW_HOST','SAME_OPERATION_SHARE_INTERVAL','parse','_configService','memberID','setConfig','4698035MziXTi','defs','getInitialStates','_sharedOperations','toString','params','_injector','assign','clear','presenter','default','asObservable','_unitID','executeCommand','LIVESHARE_OPERATION','random','pluginName','3ADkKgs','children','PRESENTING','stopPresenting','UNIVER_SHEET','univer-size-4','evenodd','idSuffix','_handleTerminate','9pOsJax','UNIVER_LIVE_SHARE_PLUGIN','symbol','map','_config','getTypeOfUnitAdded$','_mountLiveShare','div','status$','attrs','univer-mb-3\x20univer-w-full\x20univer-text-sm','defineProperty','registerSharedOperation'];_0x38d6=function(){return _0x30b275;};return _0x38d6();}function _0x3b3f(_0x5b0076,_0xf91d0a){_0x5b0076=_0x5b0076-0x15e;const _0x38d605=_0x38d6();let _0x3b3feb=_0x38d605[_0x5b0076];return _0x3b3feb;}var c=(_0x552b37=>(_0x552b37['OFFLINE']=_0x55cb2f(0x19f),_0x552b37[_0x55cb2f(0x1c4)]=_0x55cb2f(0x15f),_0x552b37[_0x55cb2f(0x1a5)]=_0x55cb2f(0x1bc),_0x552b37[_0x55cb2f(0x176)]=_0x55cb2f(0x18c),_0x552b37[_0x55cb2f(0x1e9)]='presenting',_0x552b37))(c||{});const Ce=_0x55cb2f(0x1d1),De=0xc8;let N=class extends _0x5c9eca{constructor(_0xa67ec8,_0x14f7a5,_0x5cd55b,_0xb41f36,_0x486500){const _0x4672ef=_0x55cb2f;super(),u(this,_0x4672ef(0x17c),new _0x4699ca(_0x4672ef(0x15f))),u(this,_0x4672ef(0x1f8),this[_0x4672ef(0x17c)][_0x4672ef(0x1e1)]()),u(this,_0x4672ef(0x19e),!0x1),u(this,_0x4672ef(0x16a),null),u(this,_0x4672ef(0x185),null),(this[_0x4672ef(0x1e2)]=_0xa67ec8,this[_0x4672ef(0x1be)]=_0x14f7a5,this[_0x4672ef(0x1d3)]=_0x5cd55b,this[_0x4672ef(0x16d)]=_0xb41f36,this[_0x4672ef(0x1fd)]=_0x486500);}get[_0x55cb2f(0x163)](){const _0x5ef825=_0x55cb2f;return this[_0x5ef825(0x17c)][_0x5ef825(0x203)]();}[_0x55cb2f(0x1cf)](){const _0x3de9b0=_0x55cb2f;var _0x51c18d;(_0x51c18d=this[_0x3de9b0(0x16a)])==null||_0x51c18d[_0x3de9b0(0x1cf)](),this['_status$'][_0x3de9b0(0x19b)](_0x3de9b0(0x15f)),this[_0x3de9b0(0x17c)]['complete']();}['getStatus'](){const _0x28bb25=_0x55cb2f;return this[_0x28bb25(0x163)];}[_0x55cb2f(0x1c6)](){const _0x1d5dde=_0x55cb2f;this[_0x1d5dde(0x19e)]||(this[_0x1d5dde(0x19e)]=!0x0,this['_collabSession']['sessionStatus$']['pipe'](_0x3b65a1(this['dispose$']))[_0x1d5dde(0x1b6)](_0x44d854=>{const _0x366120=_0x1d5dde;switch(_0x44d854){case _0x40d8fd['OFFLINE']:this[_0x366120(0x1ff)]();break;case _0x40d8fd[_0x366120(0x17f)]:this[_0x366120(0x177)]();break;}}),this[_0x1d5dde(0x1be)]['event$'][_0x1d5dde(0x1bf)](_0x3b65a1(this[_0x1d5dde(0x194)]))[_0x1d5dde(0x1b6)](_0x25ec19=>{const _0xd1b267=_0x1d5dde,{eventID:_0x507ca6}=_0x25ec19;switch(_0x507ca6){case _0x246bf5[_0xd1b267(0x1d0)]:this[_0xd1b267(0x16e)](_0x25ec19);break;case _0x246bf5['LIVESHARE_OPERATION']:this[_0xd1b267(0x193)](_0x25ec19);break;case _0x246bf5[_0xd1b267(0x1c2)]:this[_0xd1b267(0x1ef)]();break;case _0x246bf5['NEW_CHANGESETS']:this[_0xd1b267(0x183)](_0x25ec19);break;}}));}[_0x55cb2f(0x1a2)](){const _0x1e769b=_0x55cb2f;this['_collabSession'][_0x1e769b(0x16f)]({'eventID':_0x246bf5[_0x1e769b(0x1b2)],'data':{'unitID':this[_0x1e769b(0x1e2)],'userID':this[_0x1e769b(0x1be)][_0x1e769b(0x169)]()}},this[_0x1e769b(0x1e2)]);}['stopPresenting'](){const _0x4b4506=_0x55cb2f;this[_0x4b4506(0x163)]===_0x4b4506(0x164)&&(this[_0x4b4506(0x17c)]['next'](_0x4b4506(0x15f)),this[_0x4b4506(0x1be)][_0x4b4506(0x16f)]({'eventID':_0x246bf5[_0x4b4506(0x1c2)],'data':{'unitID':this[_0x4b4506(0x1e2)]}},this[_0x4b4506(0x1e2)]));}[_0x55cb2f(0x200)](){const _0x98ff50=_0x55cb2f;this[_0x98ff50(0x163)]===_0x98ff50(0x18c)&&(this[_0x98ff50(0x17c)][_0x98ff50(0x19b)](_0x98ff50(0x1bc)),this[_0x98ff50(0x1a3)]());}['stopFollowing'](){const _0x36c901=_0x55cb2f;this[_0x36c901(0x163)]===_0x36c901(0x1bc)&&this['_stopFollowing']();}[_0x55cb2f(0x16e)](_0x8b94fe){const _0x5e4e90=_0x55cb2f,{presenter:_0x38d6f7}=_0x8b94fe[_0x5e4e90(0x1c0)],_0x100f7d=this[_0x5e4e90(0x1be)]['getMemberID']();this[_0x5e4e90(0x185)]=_0x38d6f7,_0x38d6f7===_0x100f7d?(this['_stopFollowing'](),this[_0x5e4e90(0x188)]()):this[_0x5e4e90(0x163)]!==_0x5e4e90(0x18c)&&(this['_stopPresenting'](),this[_0x5e4e90(0x1a3)]());}[_0x55cb2f(0x1ac)](){const _0x157e7b=_0x55cb2f,_0x273e6d={'eventID':_0x246bf5[_0x157e7b(0x195)]};this[_0x157e7b(0x1be)][_0x157e7b(0x16f)](_0x273e6d,this[_0x157e7b(0x1e2)]);}[_0x55cb2f(0x1ef)](){const _0x41c011=_0x55cb2f;this['_presenter']=null,this[_0x41c011(0x163)]!==_0x41c011(0x164)&&this[_0x41c011(0x1b9)]();}[_0x55cb2f(0x183)](_0x4bb8e2){const _0x29f721=_0x55cb2f;if(this[_0x29f721(0x163)]===_0x29f721(0x1bc)&&this[_0x29f721(0x185)]===_0x4bb8e2[_0x29f721(0x1c0)][_0x29f721(0x1d4)]){const _0x3c9559=_0x1704a8(_0x4bb8e2[_0x29f721(0x1c0)])[_0x29f721(0x18a)][_0x29f721(0x1b0)]()[_0x29f721(0x173)](_0x4db788=>_0x4db788['id']===_0x252e6b['id']);if(_0x3c9559){const _0x4e9ab4=_0x3c9559[_0x29f721(0x1db)][_0x29f721(0x1b8)],_0x531013=_0x3c9559[_0x29f721(0x1db)][_0x29f721(0x1a4)]['id'];setTimeout(()=>{const _0x9f05e6=_0x29f721;this[_0x9f05e6(0x1fd)][_0x9f05e6(0x1e3)](_0x1c9065['id'],{'unitId':_0x4e9ab4,'subUnitId':_0x531013},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x416ba5=_0x55cb2f;this[_0x416ba5(0x17c)][_0x416ba5(0x19b)](_0x416ba5(0x164));const _0x2b9da7=new Map(),_0xb0f887=this[_0x416ba5(0x16a)]=new _0x52d334();_0xb0f887[_0x416ba5(0x1cc)](_0x11f671(()=>{const _0x2af8e7=_0x416ba5;_0x2b9da7[_0x2af8e7(0x1a9)](_0x49680a=>_0x49680a[_0x2af8e7(0x1a1)]()),_0x2b9da7[_0x2af8e7(0x1de)]();})),_0xb0f887[_0x416ba5(0x1cc)](this[_0x416ba5(0x1fd)][_0x416ba5(0x170)](_0x4fcb17=>{const _0x4ba326=_0x416ba5;var _0x2f46bc;if(_0x4fcb17[_0x4ba326(0x1fe)]!==_0x3f3a8a[_0x4ba326(0x196)]||!this[_0x4ba326(0x16d)]['shouldShareOperation'](_0x4fcb17['id']))return;const {id:_0x3be601}=_0x4fcb17;let _0x27895a;_0x2b9da7[_0x4ba326(0x18e)](_0x3be601)?_0x27895a=_0x2b9da7[_0x4ba326(0x1ba)](_0x3be601):(_0x27895a=new _0x26cfc0(),_0x2b9da7[_0x4ba326(0x160)](_0x3be601,_0x27895a),_0x27895a['pipe'](_0x1b8bcb((_0x2f46bc=this[_0x4ba326(0x1d3)][_0x4ba326(0x208)](Ce))!=null?_0x2f46bc:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4ba326(0x1b6)](_0x9788dc=>{const _0xe73f54=_0x4ba326;this[_0xe73f54(0x1be)][_0xe73f54(0x16f)]({'eventID':_0x246bf5[_0xe73f54(0x1e4)],'data':{'unitID':this[_0xe73f54(0x1e2)],'operations':{[_0x9788dc['id']]:{'id':_0x9788dc['id'],'params':JSON[_0xe73f54(0x1ca)](_0x9788dc[_0xe73f54(0x1db)])}}}},this[_0xe73f54(0x1e2)]);})),_0x27895a['next'](_0x4fcb17);})),this[_0x416ba5(0x16d)]['getInitialStates'](this[_0x416ba5(0x1e2)])[_0x416ba5(0x1a9)](_0x57fa13=>this[_0x416ba5(0x1be)][_0x416ba5(0x16f)]({'eventID':_0x246bf5[_0x416ba5(0x1e4)],'data':{'unitID':this['_unitID'],'operations':{[_0x57fa13['id']]:{'id':_0x57fa13['id'],'params':JSON[_0x416ba5(0x1ca)](_0x57fa13[_0x416ba5(0x1db)])}}}},this['_unitID']));}[_0x55cb2f(0x1ae)](){const _0x545277=_0x55cb2f;var _0xf52ddd;this[_0x545277(0x17c)]['next'](_0x545277(0x15f)),(_0xf52ddd=this[_0x545277(0x16a)])==null||_0xf52ddd[_0x545277(0x1cf)](),this[_0x545277(0x16a)]=null;}['_startFollowing'](){const _0x1dface=_0x55cb2f;var _0x31b759;(_0x31b759=this[_0x1dface(0x16a)])==null||_0x31b759[_0x1dface(0x1cf)](),this['_status$'][_0x1dface(0x19b)](_0x1dface(0x1bc));}[_0x55cb2f(0x1b9)](){const _0x4b4516=_0x55cb2f;var _0x45c763;this['_status$'][_0x4b4516(0x19b)](_0x4b4516(0x15f)),(_0x45c763=this[_0x4b4516(0x16a)])==null||_0x45c763['dispose'](),this[_0x4b4516(0x16a)]=null;}[_0x55cb2f(0x192)](){const _0x19e2e9=_0x55cb2f;var _0x5f36aa;this['_status$']['next']('not-following'),(_0x5f36aa=this['_commandDisposable'])==null||_0x5f36aa[_0x19e2e9(0x1cf)]();}[_0x55cb2f(0x193)](_0x215fb5){const _0x502e6b=_0x55cb2f;if(['presenting',_0x502e6b(0x18c),_0x502e6b(0x19f)][_0x502e6b(0x198)](this[_0x502e6b(0x163)])||!_0x215fb5[_0x502e6b(0x1c0)][_0x502e6b(0x1df)]||_0x215fb5[_0x502e6b(0x1c0)][_0x502e6b(0x1df)]===this['_collabSession'][_0x502e6b(0x169)]())return;this[_0x502e6b(0x163)]===_0x502e6b(0x15f)&&this['_startFollowing']();const _0x5922c8=_0x215fb5[_0x502e6b(0x1c0)][_0x502e6b(0x166)];Object['values'](_0x5922c8)[_0x502e6b(0x1a9)](_0x1fc158=>{const _0x2e3d4e=_0x502e6b;this[_0x2e3d4e(0x1fd)][_0x2e3d4e(0x1e3)](_0x1fc158['id'],_0x1fc158[_0x2e3d4e(0x1db)]?JSON[_0x2e3d4e(0x1d2)](_0x1fc158[_0x2e3d4e(0x1db)]):null,{'fromCollab':!0x0});});}[_0x55cb2f(0x1ff)](){const _0x582f95=_0x55cb2f;var _0x34beb2;this[_0x582f95(0x17c)][_0x582f95(0x19b)](_0x582f95(0x19f)),(_0x34beb2=this[_0x582f95(0x16a)])==null||_0x34beb2[_0x582f95(0x1cf)]();}[_0x55cb2f(0x177)](){const _0x5e62b4=_0x55cb2f;this[_0x5e62b4(0x17c)][_0x5e62b4(0x19b)](_0x5e62b4(0x15f)),this[_0x5e62b4(0x1ac)]();}};N=Y([_(0x2,_0x3d3506),_(0x3,_0x312b96(L)),_(0x4,_0x58b740)],N);function Le(){const _0x247917=_0x55cb2f,_0x374653=_0x1e6c41(S),_0x5de15c=_0x1e6c41(_0x121289),_0x52a6c8=_0x2bbad4(()=>_0x5de15c['getCurrentTypeOfUnit$'](_0x4070ed[_0x247917(0x1eb)]),void 0x0,!0x1,[]),[_0xcc7ff4,_0x331c1f]=_0x1d3edb(null),[_0x45611c,_0x55693f]=_0x1d3edb(c[_0x247917(0x1c4)]),_0x21711c=_0x5cc64a(null);return _0x310807(()=>(_0x52a6c8&&_0x374653[_0x247917(0x1a8)](_0x52a6c8[_0x247917(0x18f)]())[_0x247917(0x190)](_0x45f8ac=>{const _0x3f0d66=_0x247917;_0x331c1f(_0x45f8ac),_0x21711c['current']=_0x45f8ac[_0x3f0d66(0x1f8)][_0x3f0d66(0x1b6)](_0x577466=>{_0x55693f(_0x577466);});}),()=>{const _0x4cd3f8=_0x247917;var _0x3a13ca;(_0x3a13ca=_0x21711c['current'])==null||_0x3a13ca[_0x4cd3f8(0x1ab)](),_0x21711c[_0x4cd3f8(0x1c1)]=null;}),[_0x52a6c8,_0x374653]),_0xcc7ff4?_0x4c93b8(_0x1ada85,{'align':_0x247917(0x19a),'disabled':_0x45611c===c[_0x247917(0x201)],'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':_0x4c93b8(Re,{'status':_0x45611c,'coordinator':_0xcc7ff4}),'children':_0x4c93b8(_0x247917(0x1cd),{'className':_0x37c55b(_0x247917(0x1c7),{'univer-cursor-not-allowed':_0x45611c===c[_0x247917(0x201)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x45611c!==c['OFFLINE']}),'type':_0x247917(0x1cd),'children':_0x4c93b8(W,{'className':_0x247917(0x1ec)})})}):null;}function Re(_0x305889){const _0x3150f0=_0x55cb2f,{status:_0x1512ad,coordinator:_0x570ed8}=_0x305889;switch(_0x1512ad){case c[_0x3150f0(0x1c4)]:return _0x4c93b8($e,{'coordinator':_0x570ed8});case c[_0x3150f0(0x1a5)]:return _0x4c93b8(xe,{'coordinator':_0x570ed8});case c['NOT_FOLLOWING']:return _0x4c93b8(Pe,{'coordinator':_0x570ed8});case c[_0x3150f0(0x201)]:return _0x4c93b8(Te,{});case c[_0x3150f0(0x1e9)]:return _0x4c93b8(Ae,{'coordinator':_0x570ed8});default:return null;}}function $e(_0x535d85){const _0xc28b8=_0x55cb2f,{coordinator:_0x569156}=_0x535d85;return _0x300104(_0x3d3edc,{'children':[_0x4c93b8('div',{'className':_0xc28b8(0x1fa),'children':_0xc28b8(0x191)}),_0x4c93b8(_0x5de6ef,{'onClick':()=>_0x569156['tryStartPresenting'](),'children':_0xc28b8(0x19c)})]});}function xe(_0x50b0db){const _0x1d9bc5=_0x55cb2f,{coordinator:_0x26e156}=_0x50b0db;return _0x300104(_0x3d3edc,{'children':[_0x4c93b8(_0x1d9bc5(0x1f7),{'className':_0x1d9bc5(0x1fa),'children':_0x1d9bc5(0x16b)}),_0x4c93b8(_0x5de6ef,{'onClick':()=>_0x26e156[_0x1d9bc5(0x1a0)](),'children':_0x1d9bc5(0x1af)})]});}function Pe(_0x523b08){const _0x2fb522=_0x55cb2f,{coordinator:_0x7585a2}=_0x523b08;return _0x300104(_0x3d3edc,{'children':[_0x4c93b8(_0x2fb522(0x1f7),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2fb522(0x1b4)}),_0x4c93b8(_0x5de6ef,{'variant':'text','onClick':()=>_0x7585a2[_0x2fb522(0x200)](),'children':_0x2fb522(0x197)})]});}function Ae(_0x4cb948){const _0x551fbc=_0x55cb2f,{coordinator:_0x26509d}=_0x4cb948;return _0x300104(_0x3d3edc,{'children':[_0x4c93b8(_0x551fbc(0x1f7),{'className':_0x551fbc(0x1fa),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x4c93b8(_0x5de6ef,{'variant':_0x551fbc(0x1e0),'onClick':()=>_0x26509d[_0x551fbc(0x1ea)](),'children':_0x551fbc(0x1ce)})]});}function Te(){const _0x3f8971=_0x55cb2f;return _0x4c93b8(_0x3d3edc,{'children':_0x3f8971(0x162)});}var Fe=Object[_0x55cb2f(0x1a7)],He=(_0x3e819d,_0x15d8e5,_0x5b2734,_0x5d387b)=>{for(var _0x999a1e=_0x5d387b>0x1?void 0x0:_0x5d387b?Fe(_0x15d8e5,_0x5b2734):_0x15d8e5,_0x524e23=_0x3e819d['length']-0x1,_0x36b944;_0x524e23>=0x0;_0x524e23--)(_0x36b944=_0x3e819d[_0x524e23])&&(_0x999a1e=_0x36b944(_0x999a1e)||_0x999a1e);return _0x999a1e;},A=(_0x1f8caa,_0x237d12)=>(_0x3d69f7,_0x22871b)=>_0x237d12(_0x3d69f7,_0x22871b,_0x1f8caa);let m=class extends _0x4af259{constructor(_0x31a7b3,_0x4ddd3c){const _0x4bd0c7=_0x55cb2f;super(),this[_0x4bd0c7(0x1dc)]=_0x31a7b3,this['_uiPartsService']=_0x4ddd3c,this[_0x4bd0c7(0x1f6)]();}[_0x55cb2f(0x1f6)](){const _0x5c5e2f=_0x55cb2f;this[_0x5c5e2f(0x17e)](this[_0x5c5e2f(0x16c)]['registerComponent'](_0x148c23[_0x5c5e2f(0x1a6)],()=>_0x48b907(Le,this[_0x5c5e2f(0x1dc)])));}};m=He([A(0x0,_0x312b96(_0x7d3dde)),A(0x1,_0x219ba3)],m);const ye='live-share.config',T={};var Ue=Object[_0x55cb2f(0x1a7)],Ve=(_0xb3b2c5,_0x3a118e,_0xc4c1b9,_0x20ddc7)=>{const _0x12289a=_0x55cb2f;for(var _0x46f981=_0x20ddc7>0x1?void 0x0:_0x20ddc7?Ue(_0x3a118e,_0xc4c1b9):_0x3a118e,_0xa8ddb7=_0xb3b2c5[_0x12289a(0x167)]-0x1,_0x569a6b;_0xa8ddb7>=0x0;_0xa8ddb7--)(_0x569a6b=_0xb3b2c5[_0xa8ddb7])&&(_0x46f981=_0x569a6b(_0x46f981)||_0x46f981);return _0x46f981;},je=(_0x54b3d0,_0x46ccaa)=>(_0x112c32,_0xa35fc1)=>_0x46ccaa(_0x112c32,_0xa35fc1,_0x54b3d0);let I=class extends _0x4af259{constructor(_0x273ad3){const _0x2ee53e=_0x55cb2f;super(),this['_liveShareService']=_0x273ad3,this[_0x2ee53e(0x19e)]();}['_init'](){[_0xaf5adc['id'],_0x48d7dc['id'],_0x1c9065['id']]['forEach'](_0x25a7aa=>{const _0x297fca=_0x3b3f;this[_0x297fca(0x17e)](this[_0x297fca(0x16d)][_0x297fca(0x1fc)](_0x25a7aa));});}};I=Ve([je(0x0,_0x312b96(L))],I);var Me=Object[_0x55cb2f(0x1fb)],ke=Object[_0x55cb2f(0x1a7)],Ge=(_0x4f19cf,_0x3d64c3,_0x5708e6)=>_0x3d64c3 in _0x4f19cf?Me(_0x4f19cf,_0x3d64c3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5708e6}):_0x4f19cf[_0x3d64c3]=_0x5708e6,We=(_0x56f1c5,_0x504788,_0x1794b5,_0x143f82)=>{const _0x1c45fd=_0x55cb2f;for(var _0xcdc8c9=_0x143f82>0x1?void 0x0:_0x143f82?ke(_0x504788,_0x1794b5):_0x504788,_0x2ab0d2=_0x56f1c5[_0x1c45fd(0x167)]-0x1,_0x1c61e6;_0x2ab0d2>=0x0;_0x2ab0d2--)(_0x1c61e6=_0x56f1c5[_0x2ab0d2])&&(_0xcdc8c9=_0x1c61e6(_0xcdc8c9)||_0xcdc8c9);return _0xcdc8c9;},F=(_0x3a1733,_0xf8553d)=>(_0x78f25d,_0x1c730a)=>_0xf8553d(_0x78f25d,_0x1c730a,_0x3a1733),B=(_0x470de7,_0x201494,_0x292d53)=>Ge(_0x470de7,typeof _0x201494!=_0x55cb2f(0x1f2)?_0x201494+'':_0x201494,_0x292d53);const Ye=_0x55cb2f(0x1f1);let b=class extends _0x119531{constructor(_0x285585=T,_0x578fbf,_0x1687fb){const _0x591562=_0x55cb2f;super(),this[_0x591562(0x1f4)]=_0x285585,this[_0x591562(0x1dc)]=_0x578fbf,this[_0x591562(0x1d3)]=_0x1687fb;const {..._0x4ac328}=_0xe10b7b({},T,this[_0x591562(0x1f4)]);this['_configService'][_0x591562(0x1d5)](ye,_0x4ac328);}[_0x55cb2f(0x17a)](){const _0x1eece6=_0x55cb2f;_0x58f0a9(this[_0x1eece6(0x1dc)],_0x434f51([[L],[S],[I],[m]],this[_0x1eece6(0x1f4)][_0x1eece6(0x207)])),_0x38b9cb(this[_0x1eece6(0x1dc)],[[I]]);}['onRendered'](){const _0x7445e4=_0x55cb2f;_0x38b9cb(this[_0x7445e4(0x1dc)],[[m]]);}};B(b,'type',_0x4070ed['UNIVER_UNKNOWN']),B(b,_0x55cb2f(0x1e6),Ye),b=We([_0x5ee615(_0x427d7f),F(0x1,_0x312b96(_0x7d3dde)),F(0x2,_0x3d3506)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4d247f=_0x49da;function _0x49da(_0x34d8b8,_0x4294ed){_0x34d8b8=_0x34d8b8-0x93;const _0x5e83a1=_0x5e83();let _0x49dac3=_0x5e83a1[_0x34d8b8];return _0x49dac3;}(function(_0x5949eb,_0x5c8740){const _0xa388fb=_0x49da,_0x3058eb=_0x5949eb();while(!![]){try{const _0x29db9e=parseInt(_0xa388fb(0xad))/0x1*(-parseInt(_0xa388fb(0x9b))/0x2)+-parseInt(_0xa388fb(0xa6))/0x3+-parseInt(_0xa388fb(0xa8))/0x4+-parseInt(_0xa388fb(0xac))/0x5*(-parseInt(_0xa388fb(0x9e))/0x6)+parseInt(_0xa388fb(0x97))/0x7+-parseInt(_0xa388fb(0xb1))/0x8*(-parseInt(_0xa388fb(0x94))/0x9)+parseInt(_0xa388fb(0x99))/0xa;if(_0x29db9e===_0x5c8740)break;else _0x3058eb['push'](_0x3058eb['shift']());}catch(_0x2466ac){_0x3058eb['push'](_0x3058eb['shift']());}}}(_0x5e83,0x44b22));function _0x5e83(){const _0x2faa60=['stopPresenting','5089010AEhlEw','_initialize','576178bGViZM','extend','getActiveSheet','25518IGEgsw','_injector','PRESENTING','get','getLiveShareCoordinatorSync','executeCommand','startColumn','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','1580778YENpkt','getUnitId','425752UuUOga','stopFollowing','startFollowing','_commandService','290FkuliN','1njOWpU','getStatus','syncExecuteCommand','IDLE','8LZLKwU','getSheetId','getRenderById','getId','LiveShareStatusEnum','tryStartPresenting','1782693dZJWCI','No\x20active\x20workbook\x20found.','getActiveWorkbook','1744253wasowl'];_0x5e83=function(){return _0x2faa60;};return _0x5e83();}import{LiveShareController as _0x2f9fe8,LiveShareStatus as _0x573c3f}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x57294e}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x59fe9b}from'@univerjs/sheets';import{SetScrollOperation as _0x4c06e9}from'@univerjs/sheets-ui';import{FRange as _0x5905fd}from'@univerjs/sheets/facade';import{FUniver as _0x17db69,FEnum as _0x4c4961}from'@univerjs/core/facade';class I extends _0x5905fd{[_0x4d247f(0x9a)](_0x574e76,_0x39344d,_0x5d9305,_0x49a9a1,_0x276fb6){const _0x4700f8=_0x4d247f,_0x3b0e43=_0x574e76['get'](_0x2f9fe8),_0x32443a=_0x574e76['get'](_0x57294e),_0x6d0ba2=_0x39344d[_0x4700f8(0xa7)](),_0x509806=_0x39344d[_0x4700f8(0x9d)](),_0x1b9a08=_0x3b0e43['getLiveShareCoordinatorSync'](_0x6d0ba2);(_0x1b9a08==null?void 0x0:_0x1b9a08[_0x4700f8(0xae)]())!==_0x573c3f[_0x4700f8(0xa0)]||(_0x5d9305[_0x4700f8(0xb2)]()!==_0x509806[_0x4700f8(0xb2)]()&&this[_0x4700f8(0xab)][_0x4700f8(0xa3)](_0x59fe9b['id'],{'unitId':_0x6d0ba2,'subUnitId':_0x5d9305['getSheetId']()}),!_0x32443a[_0x4700f8(0xb3)](_0x6d0ba2))||_0x276fb6[_0x4700f8(0xaf)](_0x4c06e9['id'],{'unitId':_0x39344d[_0x4700f8(0xa7)](),'sheetId':_0x5d9305['getSheetId'](),'sheetViewStartRow':_0x49a9a1['startRow'],'sheetViewStartColumn':_0x49a9a1[_0x4700f8(0xa4)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x5905fd[_0x4d247f(0x9c)](I);class m extends _0x17db69{['getLiveShareStatus'](){const _0x6d99e7=_0x4d247f;var _0x78faee,_0x165a6b;const _0x3b7892=this[_0x6d99e7(0x9f)][_0x6d99e7(0xa1)](_0x2f9fe8),_0x1fc049=(_0x78faee=this['getActiveWorkbook']())==null?void 0x0:_0x78faee['getId']();if(!_0x1fc049)throw new Error(_0x6d99e7(0x95));const _0x49190a=_0x3b7892['getLiveShareCoordinatorSync'](_0x1fc049);return(_0x165a6b=_0x49190a==null?void 0x0:_0x49190a[_0x6d99e7(0xae)]())!=null?_0x165a6b:_0x573c3f[_0x6d99e7(0xb0)];}[_0x4d247f(0xaa)](){const _0x46d719=_0x4d247f;var _0x5eecd1;const _0x30f892=this[_0x46d719(0x9f)][_0x46d719(0xa1)](_0x2f9fe8),_0x58ab32=(_0x5eecd1=this['getActiveWorkbook']())==null?void 0x0:_0x5eecd1[_0x46d719(0xb4)]();if(!_0x58ab32)throw new Error('No\x20active\x20workbook\x20found.');const _0x47279d=_0x30f892[_0x46d719(0xa2)](_0x58ab32);if(!_0x47279d)throw new Error(_0x46d719(0xa5));_0x47279d[_0x46d719(0xaa)]();}[_0x4d247f(0xa9)](){const _0x2b5b75=_0x4d247f;var _0x15f5ff;const _0xe39924=this['_injector'][_0x2b5b75(0xa1)](_0x2f9fe8),_0x17b743=(_0x15f5ff=this[_0x2b5b75(0x96)]())==null?void 0x0:_0x15f5ff[_0x2b5b75(0xb4)]();if(!_0x17b743)throw new Error(_0x2b5b75(0x95));const _0x27494=_0xe39924['getLiveShareCoordinatorSync'](_0x17b743);if(!_0x27494)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x27494[_0x2b5b75(0xa9)]();}['startPresenting'](){const _0x328503=_0x4d247f;var _0x3c6aaa;const _0x55b5fd=this[_0x328503(0x9f)][_0x328503(0xa1)](_0x2f9fe8),_0x562498=(_0x3c6aaa=this[_0x328503(0x96)]())==null?void 0x0:_0x3c6aaa[_0x328503(0xb4)]();if(!_0x562498)throw new Error('No\x20active\x20workbook\x20found.');const _0x1404af=_0x55b5fd['getLiveShareCoordinatorSync'](_0x562498);if(!_0x1404af)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1404af[_0x328503(0x93)]();}[_0x4d247f(0x98)](){const _0x38b532=_0x4d247f;var _0x4dcde2;const _0x5e6025=this[_0x38b532(0x9f)][_0x38b532(0xa1)](_0x2f9fe8),_0x288b0f=(_0x4dcde2=this['getActiveWorkbook']())==null?void 0x0:_0x4dcde2[_0x38b532(0xb4)]();if(!_0x288b0f)throw new Error(_0x38b532(0x95));const _0x124217=_0x5e6025[_0x38b532(0xa2)](_0x288b0f);if(!_0x124217)throw new Error(_0x38b532(0xa5));_0x124217[_0x38b532(0x98)]();}}_0x17db69[_0x4d247f(0x9c)](m);class C extends _0x4c4961{get[_0x4d247f(0xb5)](){return _0x573c3f;}}_0x4c4961[_0x4d247f(0x9c)](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x562b47=_0x465d;(function(_0x4cd1ab,_0x3b9ac4){const _0x231961=_0x465d,_0x2b535b=_0x4cd1ab();while(!![]){try{const _0x54b116=parseInt(_0x231961(0x145))/0x1*(-parseInt(_0x231961(0x164))/0x2)+parseInt(_0x231961(0xeb))/0x3*(-parseInt(_0x231961(0x128))/0x4)+parseInt(_0x231961(0x136))/0x5*(parseInt(_0x231961(0xd1))/0x6)+parseInt(_0x231961(0x148))/0x7*(parseInt(_0x231961(0x14c))/0x8)+parseInt(_0x231961(0x12a))/0x9+-parseInt(_0x231961(0x152))/0xa+parseInt(_0x231961(0x15c))/0xb;if(_0x54b116===_0x3b9ac4)break;else _0x2b535b['push'](_0x2b535b['shift']());}catch(_0x21dbd4){_0x2b535b['push'](_0x2b535b['shift']());}}}(_0xad37,0x605b1));var J=Object['defineProperty'],K=(_0x2e0408,_0x7c337c,_0x2c8bdc)=>_0x7c337c in _0x2e0408?J(_0x2e0408,_0x7c337c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c8bdc}):_0x2e0408[_0x7c337c]=_0x2c8bdc,u=(_0x97d849,_0x181dd3,_0x145323)=>K(_0x97d849,typeof _0x181dd3!=_0x562b47(0x10f)?_0x181dd3+'':_0x181dd3,_0x145323);import{Disposable as _0x2e50d0,toDisposable as _0x4271be,IUniverInstanceService as _0x187255,Inject as _0x264acd,Injector as _0x126a5b,IConfigService as _0x974748,ICommandService as _0x105090,RxDisposable as _0x51a549,UniverInstanceType as _0x51802f,DisposableCollection as _0x43222f,CommandType as _0x33f042,DependentOn as _0x411c47,Plugin as _0x1130c7,merge as _0xb0c13e,registerDependencies as _0x333ef5,mergeOverrideWithDependencies as _0x3d1a15,touchDependencies as _0x1c3957}from'@univerjs/core';import{useDependency as _0x38dad9,useObservable as _0x14a93c,IUIPartsService as _0x28a6aa,BuiltInUIPart as _0x2de438,connectInjector as _0x183c2b}from'@univerjs/ui';import{jsx as _0x33bb7b,jsxs as _0x4dcdb8,Fragment as _0x967f7f}from'react/jsx-runtime';import{Dropdown as _0x5079de,clsx as _0x54f579,Button as _0x468343}from'@univerjs/design';import{useRef as _0x2dba5e,createElement as _0x4a7a97,forwardRef as _0x424bb6,useState as _0x555c58,useEffect as _0x22e887}from'react';import{CollaborationEvent as _0x301d58,parseProtocolChangeset as _0x19d1a6}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x4baae7,SessionStatus as _0x50ed84,UniverCollaborationClientPlugin as _0x4e7d3f}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x34d039,SetWorksheetActiveOperation as _0x56bd43}from'@univerjs/sheets';import{BehaviorSubject as _0x5af6da,Subject as _0x8db225}from'rxjs';import{takeUntil as _0x37e8e1,throttleTime as _0x225f90}from'rxjs/operators';function _0xad37(){const _0x57a4e1=['_handleTerminate','3958aGpPZD','_handleOnline','requireSession','values','colorChannel1','UNIVER_LIVE_SHARE_PLUGIN','_univerInstanceService','getUnitId','_commandService','replace','mask','Stop\x20presenting','onStarting','init','disposeWithMe','getLiveShareCoordinator','evenodd','LIVESHARE_OPERATION','add','_stopFollowing','6JIlaZT','xlink:href','offline','stopFollowing','_startFollowing','stringify','UniverIcon','has','reverse','UNIVER_SHEET','_startLiveShareCoordinator','children','LiveShareIcon','_unitID','_configService','_collabSessionService','trim','current','get','_sharedOperations','OFFLINE','getInitialStates','executeCommand','getOwnPropertyDescriptor','defineProperty','shouldShareOperation','659898jeDCxf','subscribe','NOT_FOLLOWING','entries','getMemberID','length','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','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','includes','_beIdle','presenter','currentColor','send','_fetchOperations','assign','onRendered','univerjs-icon\x20univerjs-icon-','_presenter','Present\x20this\x20document','operations','status$','asObservable','presenting','type','_injector','default','forEach','registerComponent','You\x27re\x20not\x20following\x20the\x20presenter','_handleOffline','defs','1em','attrs','registerSharedOperation','unsubscribe','startFollowing','symbol','end','toString','onCommandExecuted','tag','_status$','_reporters','text','IDLE','registerInitialStateReporter','sessionStatus$','univer-mb-3\x20univer-w-full\x20univer-text-sm','params','div','_commandDisposable','from','getTypeOfUnitAdded$','LIVESHARE_TERMINATE','string','_status','You\x27re\x20following\x20the\x20presenter','not-following','live-share-icon','override','_startPresenting','4AjjRIw','dispose','2359764EWOZQb','getCurrentTypeOfUnit$','getTypeOfUnitDisposed$','getConfig','delete','parse','next','_uiPartsService','http://www.w3.org/2000/svg','following','univer-size-4','data','77225JfVLKv','pipe','OPERATION','fill','_init','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','_liveShareService','substring','NEW_CHANGESETS','0\x200\x2017\x2017','idSuffix','PRESENTING','set','then','LIVESHARE_NEW_HOST','7rkUwWw','tryStartPresenting','_handleNewChangeSets','7XjjDKe','path','idle','_handleOperation','759048idyRNb','stopPresenting','_config','getValue','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','complete','7433730tQoJZL','ONLINE','_collabSession','defIds','none','You\x27are\x20offline.','_entities','dispose$','url(#$1','button','10992773hcrZbG','UNIVER_UNKNOWN','find','_stopPresenting','FOLLOWING','_handleNewHost','getLiveShareCoordinatorSync'];_0xad37=function(){return _0x57a4e1;};return _0xad37();}import{SetZoomRatioOperation as _0x4e0176,SetScrollOperation as _0xdcd218}from'@univerjs/sheets-ui';function k({ref:_0x4c54a8,..._0x5c0e74}){const _0x5e6d46=_0x562b47,{icon:_0x314ce7,id:_0x1a5b04,className:_0x2acdf6,extend:_0x5503e6,..._0x2067cf}=_0x5c0e74,_0x1e4a05=(_0x5e6d46(0xfb)+_0x1a5b04+'\x20'+(_0x2acdf6||''))[_0x5e6d46(0xe1)](),_0x50da95=_0x2dba5e('_'+Oe());return G(_0x314ce7,''+_0x1a5b04,{'defIds':_0x314ce7[_0x5e6d46(0x155)],'idSuffix':_0x50da95[_0x5e6d46(0xe2)]},{'ref':_0x4c54a8,'className':_0x1e4a05,..._0x2067cf},_0x5503e6);}function G(_0xac6eaa,_0x11c44e,_0x27b2d0,_0x1b95cf,_0x527ef1){const _0x2eafa7=_0x562b47;return _0x4a7a97(_0xac6eaa[_0x2eafa7(0x113)],{'key':_0x11c44e,...be(_0xac6eaa,_0x27b2d0,_0x527ef1),..._0x1b95cf},(Ee(_0xac6eaa,_0x27b2d0)[_0x2eafa7(0xdc)]||[])['map']((_0x30a889,_0x30cb91)=>G(_0x30a889,_0x11c44e+'-'+_0xac6eaa[_0x2eafa7(0x113)]+'-'+_0x30cb91,_0x27b2d0,void 0x0,_0x527ef1)));}function be(_0x885004,_0x615c6f,_0x51715f){const _0x10a47a=_0x562b47,_0x54ec7e={..._0x885004[_0x10a47a(0x10b)]};_0x51715f!=null&&_0x51715f[_0x10a47a(0xc1)]&&_0x54ec7e[_0x10a47a(0x139)]==='colorChannel1'&&(_0x54ec7e[_0x10a47a(0x139)]=_0x51715f[_0x10a47a(0xc1)]),_0x885004[_0x10a47a(0x113)]===_0x10a47a(0xc7)&&_0x54ec7e['id']&&(_0x54ec7e['id']=_0x54ec7e['id']+_0x615c6f[_0x10a47a(0x140)]),Object[_0x10a47a(0xee)](_0x54ec7e)['forEach'](([_0x2d0e81,_0x558183])=>{const _0x192f8d=_0x10a47a;_0x2d0e81===_0x192f8d(0xc7)&&typeof _0x558183==_0x192f8d(0x121)&&(_0x54ec7e[_0x2d0e81]=_0x558183[_0x192f8d(0xc6)](/url\(#(.*)\)/,'url(#$1'+_0x615c6f[_0x192f8d(0x140)]+')'));});const {defIds:_0x5d471e}=_0x615c6f;return!_0x5d471e||_0x5d471e[_0x10a47a(0xf0)]===0x0||(_0x885004['tag']==='use'&&_0x54ec7e[_0x10a47a(0xd2)]&&(_0x54ec7e[_0x10a47a(0xd2)]=_0x54ec7e[_0x10a47a(0xd2)]+_0x615c6f[_0x10a47a(0x140)]),Object[_0x10a47a(0xee)](_0x54ec7e)[_0x10a47a(0x105)](([_0x302d90,_0x37e392])=>{const _0x1a58ef=_0x10a47a;typeof _0x37e392==_0x1a58ef(0x121)&&(_0x54ec7e[_0x302d90]=_0x37e392[_0x1a58ef(0xc6)](/url\(#(.*)\)/,_0x1a58ef(0x15a)+_0x615c6f[_0x1a58ef(0x140)]+')'));})),_0x54ec7e;}function Ee(_0x30635a,_0x12daad){const _0x5c683c=_0x562b47;var _0x512872;const {defIds:_0x1c6c91}=_0x12daad;return!_0x1c6c91||_0x1c6c91[_0x5c683c(0xf0)]===0x0?_0x30635a:_0x30635a['tag']===_0x5c683c(0x109)&&((_0x512872=_0x30635a[_0x5c683c(0xdc)])!=null&&_0x512872[_0x5c683c(0xf0)])?{..._0x30635a,'children':_0x30635a[_0x5c683c(0xdc)]['map'](_0x587fc7=>typeof _0x587fc7[_0x5c683c(0x10b)]['id']==_0x5c683c(0x121)&&_0x1c6c91&&_0x1c6c91[_0x5c683c(0xf3)](_0x587fc7[_0x5c683c(0x10b)]['id'])?{..._0x587fc7,'attrs':{..._0x587fc7[_0x5c683c(0x10b)],'id':_0x587fc7[_0x5c683c(0x10b)]['id']+_0x12daad[_0x5c683c(0x140)]}}:_0x587fc7)}:_0x30635a;}function Oe(){const _0xe371e=_0x562b47;return Math['random']()[_0xe371e(0x111)](0x24)[_0xe371e(0x13d)](0x2,0x8);}k['displayName']=_0x562b47(0xd7);const we={'tag':'svg','attrs':{'xmlns':_0x562b47(0x132),'fill':_0x562b47(0x156),'viewBox':_0x562b47(0x13f),'width':_0x562b47(0x10a),'height':'1em'},'children':[{'tag':_0x562b47(0x149),'attrs':{'fill':_0x562b47(0xf6),'d':_0x562b47(0x13b)}},{'tag':'path','attrs':{'fill':_0x562b47(0xf6),'d':_0x562b47(0x150),'fillRule':'evenodd','clipRule':_0x562b47(0xcd)}}]},W=_0x424bb6(function(_0x2bcc6a,_0x58b487){const _0x2f598f=_0x562b47;return _0x4a7a97(k,Object[_0x2f598f(0xf9)]({},_0x2bcc6a,{'id':_0x2f598f(0x125),'ref':_0x58b487,'icon':we}));});W['displayName']=_0x562b47(0xdd);class L extends _0x2e50d0{constructor(){const _0x562679=_0x562b47;super(...arguments),u(this,_0x562679(0xe4),new Set()),u(this,_0x562679(0x115),new Set());}[_0x562b47(0x10c)](_0x2c2786){const _0x2f1f1b=_0x562b47;return this[_0x2f1f1b(0xe4)]['add'](_0x2c2786),_0x4271be(()=>this[_0x2f1f1b(0xe4)][_0x2f1f1b(0x12e)](_0x2c2786));}[_0x562b47(0x118)](_0x490737){const _0x33b0af=_0x562b47;return this[_0x33b0af(0x115)]['add'](_0x490737),_0x4271be(()=>this['_reporters'][_0x33b0af(0x12e)](_0x490737));}[_0x562b47(0xea)](_0x16195f){const _0x3ebe52=_0x562b47;return this[_0x3ebe52(0xe4)][_0x3ebe52(0xd8)](_0x16195f);}['getInitialStates'](_0x239faf){const _0x31ba11=_0x562b47;return Array[_0x31ba11(0x11e)](this[_0x31ba11(0x115)])['map'](_0x2e959e=>_0x2e959e(_0x239faf));}}var Ne=Object[_0x562b47(0xe8)],Y=(_0x447188,_0x169ee5,_0x1f6a5a,_0x138d9c)=>{const _0x48dd42=_0x562b47;for(var _0x5f0651=_0x138d9c>0x1?void 0x0:_0x138d9c?Ne(_0x169ee5,_0x1f6a5a):_0x169ee5,_0x539646=_0x447188[_0x48dd42(0xf0)]-0x1,_0x1854e1;_0x539646>=0x0;_0x539646--)(_0x1854e1=_0x447188[_0x539646])&&(_0x5f0651=_0x1854e1(_0x5f0651)||_0x5f0651);return _0x5f0651;},_=(_0x443ad9,_0x3b2c40)=>(_0x47b132,_0x14aaa2)=>_0x3b2c40(_0x47b132,_0x14aaa2,_0x443ad9);let S=class extends _0x51a549{constructor(_0x562fae,_0x541c70,_0x2ce976){const _0x1633b0=_0x562b47;super(),u(this,_0x1633b0(0x158),new Map()),(this[_0x1633b0(0xc3)]=_0x562fae,this[_0x1633b0(0x103)]=_0x541c70,this[_0x1633b0(0xe0)]=_0x2ce976,this[_0x1633b0(0x13a)]());}async[_0x562b47(0xcc)](_0x36b81f){const _0x4e84d8=_0x562b47;return this[_0x4e84d8(0x158)][_0x4e84d8(0xd8)](_0x36b81f)||await this['_startLiveShareCoordinator'](_0x36b81f),this['_entities'][_0x4e84d8(0xe3)](_0x36b81f);}[_0x562b47(0x162)](_0x46eade){const _0x3f0b84=_0x562b47;var _0x2c8302;return(_0x2c8302=this[_0x3f0b84(0x158)]['get'](_0x46eade))!=null?_0x2c8302:null;}[_0x562b47(0x13a)](){const _0x240901=_0x562b47;this[_0x240901(0xc3)][_0x240901(0x11f)](_0x51802f[_0x240901(0xda)])[_0x240901(0x137)](_0x37e8e1(this['dispose$']))[_0x240901(0xec)](async _0x1813e4=>{const _0x1bce96=_0x240901,_0x49fdf0=_0x1813e4[_0x1bce96(0xc4)]();this[_0x1bce96(0x158)]['has'](_0x49fdf0)||this[_0x1bce96(0xdb)](_0x49fdf0);}),this[_0x240901(0xc3)][_0x240901(0x12c)](_0x51802f[_0x240901(0xda)])[_0x240901(0x137)](_0x37e8e1(this[_0x240901(0x159)]))[_0x240901(0xec)](_0x29d9f4=>{const _0x18e5ab=_0x240901,_0x31bdcb=_0x29d9f4[_0x18e5ab(0xc4)](),_0x151a8c=this[_0x18e5ab(0x158)][_0x18e5ab(0xe3)](_0x31bdcb);_0x151a8c==null||_0x151a8c[_0x18e5ab(0x129)]();});}async[_0x562b47(0xdb)](_0x208b9b){const _0x1af5d8=_0x562b47,_0x2166f3=await this['_collabSessionService'][_0x1af5d8(0x166)](_0x208b9b),_0x70e399=this[_0x1af5d8(0x103)]['createInstance'](N,_0x208b9b,_0x2166f3);return _0x70e399[_0x1af5d8(0xca)](),this[_0x1af5d8(0x158)][_0x1af5d8(0x142)](_0x208b9b,_0x70e399),_0x70e399;}};S=Y([_(0x0,_0x187255),_(0x1,_0x264acd(_0x126a5b)),_(0x2,_0x264acd(_0x4baae7))],S);var c=(_0x51fd21=>(_0x51fd21[_0x562b47(0xe5)]=_0x562b47(0xd3),_0x51fd21[_0x562b47(0x117)]=_0x562b47(0x14a),_0x51fd21['FOLLOWING']='following',_0x51fd21['NOT_FOLLOWING']='not-following',_0x51fd21[_0x562b47(0x141)]=_0x562b47(0x101),_0x51fd21))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x51a549{constructor(_0x4335c1,_0x880e61,_0x33e4d2,_0x3837f7,_0x2a4e6f){const _0x5f297d=_0x562b47;super(),u(this,'_status$',new _0x5af6da(_0x5f297d(0x14a))),u(this,_0x5f297d(0xff),this[_0x5f297d(0x114)][_0x5f297d(0x100)]()),u(this,_0x5f297d(0x13a),!0x1),u(this,_0x5f297d(0x11d),null),u(this,_0x5f297d(0xfc),null),(this['_unitID']=_0x4335c1,this[_0x5f297d(0x154)]=_0x880e61,this[_0x5f297d(0xdf)]=_0x33e4d2,this[_0x5f297d(0x13c)]=_0x3837f7,this[_0x5f297d(0xc5)]=_0x2a4e6f);}get[_0x562b47(0x122)](){const _0x513979=_0x562b47;return this[_0x513979(0x114)][_0x513979(0x14f)]();}[_0x562b47(0x129)](){const _0x485651=_0x562b47;var _0x527930;(_0x527930=this['_commandDisposable'])==null||_0x527930[_0x485651(0x129)](),this[_0x485651(0x114)][_0x485651(0x130)](_0x485651(0x14a)),this['_status$'][_0x485651(0x151)]();}['getStatus'](){return this['_status'];}[_0x562b47(0xca)](){const _0x567d7e=_0x562b47;this[_0x567d7e(0x13a)]||(this['_init']=!0x0,this[_0x567d7e(0x154)][_0x567d7e(0x119)]['pipe'](_0x37e8e1(this[_0x567d7e(0x159)]))[_0x567d7e(0xec)](_0x20fbf8=>{const _0x41e774=_0x567d7e;switch(_0x20fbf8){case _0x50ed84[_0x41e774(0xe5)]:this[_0x41e774(0x108)]();break;case _0x50ed84[_0x41e774(0x153)]:this['_handleOnline']();break;}}),this[_0x567d7e(0x154)]['event$'][_0x567d7e(0x137)](_0x37e8e1(this[_0x567d7e(0x159)]))[_0x567d7e(0xec)](_0x29231e=>{const _0x3b50fa=_0x567d7e,{eventID:_0x3e0843}=_0x29231e;switch(_0x3e0843){case _0x301d58[_0x3b50fa(0x144)]:this[_0x3b50fa(0x161)](_0x29231e);break;case _0x301d58[_0x3b50fa(0xce)]:this[_0x3b50fa(0x14b)](_0x29231e);break;case _0x301d58[_0x3b50fa(0x120)]:this[_0x3b50fa(0x163)]();break;case _0x301d58[_0x3b50fa(0x13e)]:this['_handleNewChangeSets'](_0x29231e);break;}}));}[_0x562b47(0x146)](){const _0x525b0f=_0x562b47;this[_0x525b0f(0x154)][_0x525b0f(0xf7)]({'eventID':_0x301d58['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x525b0f(0xde)],'userID':this[_0x525b0f(0x154)][_0x525b0f(0xef)]()}},this[_0x525b0f(0xde)]);}[_0x562b47(0x14d)](){const _0xa82d6f=_0x562b47;this[_0xa82d6f(0x122)]===_0xa82d6f(0x101)&&(this['_status$']['next']('idle'),this[_0xa82d6f(0x154)]['send']({'eventID':_0x301d58['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0xa82d6f(0xde)]}},this[_0xa82d6f(0xde)]));}[_0x562b47(0x10e)](){const _0x1c3b84=_0x562b47;this['_status']===_0x1c3b84(0x124)&&(this['_status$']['next'](_0x1c3b84(0x133)),this['_startFollowing']());}['stopFollowing'](){const _0x5bb57a=_0x562b47;this[_0x5bb57a(0x122)]==='following'&&this[_0x5bb57a(0xd0)]();}['_handleNewHost'](_0x4b55fc){const _0x5b0860=_0x562b47,{presenter:_0x1290a9}=_0x4b55fc[_0x5b0860(0x135)],_0x140afc=this[_0x5b0860(0x154)][_0x5b0860(0xef)]();this[_0x5b0860(0xfc)]=_0x1290a9,_0x1290a9===_0x140afc?(this[_0x5b0860(0xd0)](),this[_0x5b0860(0x127)]()):this[_0x5b0860(0x122)]!==_0x5b0860(0x124)&&(this[_0x5b0860(0x15f)](),this['_startFollowing']());}['_fetchOperations'](){const _0x16bd35=_0x562b47,_0x5da9bb={'eventID':_0x301d58['LIVESHARE_FETCH_OPERATIONS']};this[_0x16bd35(0x154)]['send'](_0x5da9bb,this['_unitID']);}[_0x562b47(0x163)](){const _0x5acf28=_0x562b47;this[_0x5acf28(0xfc)]=null,this[_0x5acf28(0x122)]!=='presenting'&&this['_beIdle']();}[_0x562b47(0x147)](_0x1adea4){const _0x906164=_0x562b47;if(this[_0x906164(0x122)]===_0x906164(0x133)&&this[_0x906164(0xfc)]===_0x1adea4[_0x906164(0x135)]['memberID']){const _0x56ad84=_0x19d1a6(_0x1adea4[_0x906164(0x135)])['mutations'][_0x906164(0xd9)]()[_0x906164(0x15e)](_0x2c6158=>_0x2c6158['id']===_0x34d039['id']);if(_0x56ad84){const _0x1cef96=_0x56ad84['params']['unitId'],_0x1b8c4e=_0x56ad84[_0x906164(0x11b)]['sheet']['id'];setTimeout(()=>{const _0x56a571=_0x906164;this[_0x56a571(0xc5)][_0x56a571(0xe7)](_0x56bd43['id'],{'unitId':_0x1cef96,'subUnitId':_0x1b8c4e},{'fromCollab':!0x0});});}}}[_0x562b47(0x127)](){const _0x4d569f=_0x562b47;this[_0x4d569f(0x114)][_0x4d569f(0x130)](_0x4d569f(0x101));const _0x5925f2=new Map(),_0x3eac62=this[_0x4d569f(0x11d)]=new _0x43222f();_0x3eac62[_0x4d569f(0xcf)](_0x4271be(()=>{const _0x3d6ec6=_0x4d569f;_0x5925f2[_0x3d6ec6(0x105)](_0x47fc61=>_0x47fc61['complete']()),_0x5925f2['clear']();})),_0x3eac62[_0x4d569f(0xcf)](this['_commandService'][_0x4d569f(0x112)](_0x4f10df=>{const _0x37b9e2=_0x4d569f;var _0x367a07;if(_0x4f10df[_0x37b9e2(0x102)]!==_0x33f042[_0x37b9e2(0x138)]||!this[_0x37b9e2(0x13c)][_0x37b9e2(0xea)](_0x4f10df['id']))return;const {id:_0x112488}=_0x4f10df;let _0x22c586;_0x5925f2[_0x37b9e2(0xd8)](_0x112488)?_0x22c586=_0x5925f2[_0x37b9e2(0xe3)](_0x112488):(_0x22c586=new _0x8db225(),_0x5925f2[_0x37b9e2(0x142)](_0x112488,_0x22c586),_0x22c586[_0x37b9e2(0x137)](_0x225f90((_0x367a07=this[_0x37b9e2(0xdf)][_0x37b9e2(0x12d)](Ce))!=null?_0x367a07:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x37b9e2(0xec)](_0x4d333a=>{const _0x4d27f1=_0x37b9e2;this[_0x4d27f1(0x154)]['send']({'eventID':_0x301d58[_0x4d27f1(0xce)],'data':{'unitID':this[_0x4d27f1(0xde)],'operations':{[_0x4d333a['id']]:{'id':_0x4d333a['id'],'params':JSON[_0x4d27f1(0xd6)](_0x4d333a['params'])}}}},this[_0x4d27f1(0xde)]);})),_0x22c586[_0x37b9e2(0x130)](_0x4f10df);})),this[_0x4d569f(0x13c)][_0x4d569f(0xe6)](this['_unitID'])['forEach'](_0x323d5a=>this[_0x4d569f(0x154)][_0x4d569f(0xf7)]({'eventID':_0x301d58[_0x4d569f(0xce)],'data':{'unitID':this[_0x4d569f(0xde)],'operations':{[_0x323d5a['id']]:{'id':_0x323d5a['id'],'params':JSON[_0x4d569f(0xd6)](_0x323d5a[_0x4d569f(0x11b)])}}}},this[_0x4d569f(0xde)]));}['_stopPresenting'](){const _0x36c595=_0x562b47;var _0x43ce6d;this[_0x36c595(0x114)]['next']('idle'),(_0x43ce6d=this['_commandDisposable'])==null||_0x43ce6d[_0x36c595(0x129)](),this['_commandDisposable']=null;}[_0x562b47(0xd5)](){const _0x4748b7=_0x562b47;var _0x376b01;(_0x376b01=this[_0x4748b7(0x11d)])==null||_0x376b01[_0x4748b7(0x129)](),this['_status$'][_0x4748b7(0x130)](_0x4748b7(0x133));}[_0x562b47(0xf4)](){const _0x4c49c9=_0x562b47;var _0xa33ed8;this['_status$'][_0x4c49c9(0x130)]('idle'),(_0xa33ed8=this[_0x4c49c9(0x11d)])==null||_0xa33ed8[_0x4c49c9(0x129)](),this[_0x4c49c9(0x11d)]=null;}[_0x562b47(0xd0)](){const _0x356afa=_0x562b47;var _0x3b0322;this[_0x356afa(0x114)][_0x356afa(0x130)]('not-following'),(_0x3b0322=this[_0x356afa(0x11d)])==null||_0x3b0322[_0x356afa(0x129)]();}[_0x562b47(0x14b)](_0x1eaf46){const _0x1bf23c=_0x562b47;if([_0x1bf23c(0x101),_0x1bf23c(0x124),_0x1bf23c(0xd3)][_0x1bf23c(0xf3)](this[_0x1bf23c(0x122)])||!_0x1eaf46[_0x1bf23c(0x135)][_0x1bf23c(0xf5)]||_0x1eaf46[_0x1bf23c(0x135)][_0x1bf23c(0xf5)]===this['_collabSession']['getMemberID']())return;this[_0x1bf23c(0x122)]===_0x1bf23c(0x14a)&&this[_0x1bf23c(0xd5)]();const _0x3e2d4e=_0x1eaf46[_0x1bf23c(0x135)][_0x1bf23c(0xfe)];Object[_0x1bf23c(0x167)](_0x3e2d4e)[_0x1bf23c(0x105)](_0x367c4c=>{const _0x5111c2=_0x1bf23c;this['_commandService'][_0x5111c2(0xe7)](_0x367c4c['id'],_0x367c4c['params']?JSON[_0x5111c2(0x12f)](_0x367c4c[_0x5111c2(0x11b)]):null,{'fromCollab':!0x0});});}[_0x562b47(0x108)](){const _0x3fb4bc=_0x562b47;var _0x25d51f;this[_0x3fb4bc(0x114)][_0x3fb4bc(0x130)](_0x3fb4bc(0xd3)),(_0x25d51f=this['_commandDisposable'])==null||_0x25d51f[_0x3fb4bc(0x129)]();}[_0x562b47(0x165)](){const _0x2125bc=_0x562b47;this[_0x2125bc(0x114)][_0x2125bc(0x130)](_0x2125bc(0x14a)),this[_0x2125bc(0xf8)]();}};N=Y([_(0x2,_0x974748),_(0x3,_0x264acd(L)),_(0x4,_0x105090)],N);function Le(){const _0x4a6c4b=_0x562b47,_0x46f034=_0x38dad9(S),_0x4b5495=_0x38dad9(_0x187255),_0x357f80=_0x14a93c(()=>_0x4b5495[_0x4a6c4b(0x12b)](_0x51802f[_0x4a6c4b(0xda)]),void 0x0,!0x1,[]),[_0x321261,_0x2b483d]=_0x555c58(null),[_0x39da3e,_0x487c08]=_0x555c58(c[_0x4a6c4b(0x117)]),_0x5c9aba=_0x2dba5e(null);return _0x22e887(()=>(_0x357f80&&_0x46f034[_0x4a6c4b(0xcc)](_0x357f80[_0x4a6c4b(0xc4)]())[_0x4a6c4b(0x143)](_0x58b38f=>{const _0x41f29a=_0x4a6c4b;_0x2b483d(_0x58b38f),_0x5c9aba['current']=_0x58b38f[_0x41f29a(0xff)][_0x41f29a(0xec)](_0x3a5734=>{_0x487c08(_0x3a5734);});}),()=>{const _0x5053c7=_0x4a6c4b;var _0x4e470b;(_0x4e470b=_0x5c9aba[_0x5053c7(0xe2)])==null||_0x4e470b[_0x5053c7(0x10d)](),_0x5c9aba['current']=null;}),[_0x357f80,_0x46f034]),_0x321261?_0x33bb7b(_0x5079de,{'align':_0x4a6c4b(0x110),'disabled':_0x39da3e===c[_0x4a6c4b(0xe5)],'className':_0x4a6c4b(0xf1),'overlay':_0x33bb7b(Re,{'status':_0x39da3e,'coordinator':_0x321261}),'children':_0x33bb7b(_0x4a6c4b(0x15b),{'className':_0x54f579(_0x4a6c4b(0xf2),{'univer-cursor-not-allowed':_0x39da3e===c[_0x4a6c4b(0xe5)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x39da3e!==c[_0x4a6c4b(0xe5)]}),'type':_0x4a6c4b(0x15b),'children':_0x33bb7b(W,{'className':_0x4a6c4b(0x134)})})}):null;}function Re(_0xcd5400){const _0x5cb8f9=_0x562b47,{status:_0xf6ff60,coordinator:_0x103430}=_0xcd5400;switch(_0xf6ff60){case c[_0x5cb8f9(0x117)]:return _0x33bb7b($e,{'coordinator':_0x103430});case c[_0x5cb8f9(0x160)]:return _0x33bb7b(xe,{'coordinator':_0x103430});case c[_0x5cb8f9(0xed)]:return _0x33bb7b(Pe,{'coordinator':_0x103430});case c[_0x5cb8f9(0xe5)]:return _0x33bb7b(Te,{});case c[_0x5cb8f9(0x141)]:return _0x33bb7b(Ae,{'coordinator':_0x103430});default:return null;}}function $e(_0xfe284e){const _0x49706d=_0x562b47,{coordinator:_0x41fae0}=_0xfe284e;return _0x4dcdb8(_0x967f7f,{'children':[_0x33bb7b(_0x49706d(0x11c),{'className':_0x49706d(0x11a),'children':_0x49706d(0xfd)}),_0x33bb7b(_0x468343,{'onClick':()=>_0x41fae0[_0x49706d(0x146)](),'children':'Start'})]});}function xe(_0xea0781){const _0x59e65e=_0x562b47,{coordinator:_0x3077cf}=_0xea0781;return _0x4dcdb8(_0x967f7f,{'children':[_0x33bb7b(_0x59e65e(0x11c),{'className':_0x59e65e(0x11a),'children':_0x59e65e(0x123)}),_0x33bb7b(_0x468343,{'onClick':()=>_0x3077cf[_0x59e65e(0xd4)](),'children':'Stop\x20following'})]});}function Pe(_0x17c015){const _0x173e7b=_0x562b47,{coordinator:_0x5e2ed2}=_0x17c015;return _0x4dcdb8(_0x967f7f,{'children':[_0x33bb7b('div',{'className':_0x173e7b(0x11a),'children':_0x173e7b(0x107)}),_0x33bb7b(_0x468343,{'variant':_0x173e7b(0x116),'onClick':()=>_0x5e2ed2[_0x173e7b(0x10e)](),'children':'Start\x20following'})]});}function _0x465d(_0x3d6d8f,_0x39997c){_0x3d6d8f=_0x3d6d8f-0xc1;const _0xad37bf=_0xad37();let _0x465d9f=_0xad37bf[_0x3d6d8f];return _0x465d9f;}function Ae(_0x338c7b){const _0xca71c4=_0x562b47,{coordinator:_0x1aef68}=_0x338c7b;return _0x4dcdb8(_0x967f7f,{'children':[_0x33bb7b(_0xca71c4(0x11c),{'className':_0xca71c4(0x11a),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x33bb7b(_0x468343,{'variant':_0xca71c4(0x104),'onClick':()=>_0x1aef68[_0xca71c4(0x14d)](),'children':_0xca71c4(0xc8)})]});}function Te(){const _0x371d4c=_0x562b47;return _0x33bb7b(_0x967f7f,{'children':_0x371d4c(0x157)});}var Fe=Object[_0x562b47(0xe8)],He=(_0x3efd5d,_0x30871a,_0x33d905,_0x4119a7)=>{for(var _0x47ffec=_0x4119a7>0x1?void 0x0:_0x4119a7?Fe(_0x30871a,_0x33d905):_0x30871a,_0x1b80fe=_0x3efd5d['length']-0x1,_0x213264;_0x1b80fe>=0x0;_0x1b80fe--)(_0x213264=_0x3efd5d[_0x1b80fe])&&(_0x47ffec=_0x213264(_0x47ffec)||_0x47ffec);return _0x47ffec;},A=(_0x4c9b00,_0x3defb5)=>(_0x434d3a,_0x582c0c)=>_0x3defb5(_0x434d3a,_0x582c0c,_0x4c9b00);let m=class extends _0x2e50d0{constructor(_0x33f367,_0x44a88a){const _0x4b3204=_0x562b47;super(),this[_0x4b3204(0x103)]=_0x33f367,this[_0x4b3204(0x131)]=_0x44a88a,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x4db92a=_0x562b47;this[_0x4db92a(0xcb)](this[_0x4db92a(0x131)][_0x4db92a(0x106)](_0x2de438['HEADER_MENU'],()=>_0x183c2b(Le,this[_0x4db92a(0x103)])));}};m=He([A(0x0,_0x264acd(_0x126a5b)),A(0x1,_0x28a6aa)],m);const ye='live-share.config',T={};var Ue=Object[_0x562b47(0xe8)],Ve=(_0x5ca6a7,_0x2b3f17,_0x496a25,_0x405d8c)=>{const _0x56bbb8=_0x562b47;for(var _0x5a0f03=_0x405d8c>0x1?void 0x0:_0x405d8c?Ue(_0x2b3f17,_0x496a25):_0x2b3f17,_0x33f87f=_0x5ca6a7[_0x56bbb8(0xf0)]-0x1,_0x110241;_0x33f87f>=0x0;_0x33f87f--)(_0x110241=_0x5ca6a7[_0x33f87f])&&(_0x5a0f03=_0x110241(_0x5a0f03)||_0x5a0f03);return _0x5a0f03;},je=(_0x368bdf,_0x5f58f2)=>(_0x4901b3,_0x4bfac9)=>_0x5f58f2(_0x4901b3,_0x4bfac9,_0x368bdf);let I=class extends _0x2e50d0{constructor(_0xf15733){const _0x3e77f3=_0x562b47;super(),this[_0x3e77f3(0x13c)]=_0xf15733,this[_0x3e77f3(0x13a)]();}['_init'](){const _0x29fecc=_0x562b47;[_0x4e0176['id'],_0xdcd218['id'],_0x56bd43['id']][_0x29fecc(0x105)](_0x9f8534=>{const _0x15a010=_0x29fecc;this[_0x15a010(0xcb)](this[_0x15a010(0x13c)][_0x15a010(0x10c)](_0x9f8534));});}};I=Ve([je(0x0,_0x264acd(L))],I);var Me=Object[_0x562b47(0xe9)],ke=Object[_0x562b47(0xe8)],Ge=(_0x478195,_0x55241a,_0x3a2b8a)=>_0x55241a in _0x478195?Me(_0x478195,_0x55241a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a2b8a}):_0x478195[_0x55241a]=_0x3a2b8a,We=(_0x35fe86,_0x39fabc,_0x1c7658,_0x12c030)=>{const _0x23fed1=_0x562b47;for(var _0x46c4ee=_0x12c030>0x1?void 0x0:_0x12c030?ke(_0x39fabc,_0x1c7658):_0x39fabc,_0x425e53=_0x35fe86[_0x23fed1(0xf0)]-0x1,_0xcbbbcc;_0x425e53>=0x0;_0x425e53--)(_0xcbbbcc=_0x35fe86[_0x425e53])&&(_0x46c4ee=_0xcbbbcc(_0x46c4ee)||_0x46c4ee);return _0x46c4ee;},F=(_0xf7d262,_0x5c51ae)=>(_0x37ffa7,_0x22314d)=>_0x5c51ae(_0x37ffa7,_0x22314d,_0xf7d262),B=(_0x281cd1,_0x57b597,_0x5bc9c6)=>Ge(_0x281cd1,typeof _0x57b597!=_0x562b47(0x10f)?_0x57b597+'':_0x57b597,_0x5bc9c6);const Ye=_0x562b47(0xc2);let b=class extends _0x1130c7{constructor(_0x32209a=T,_0x3c6ecf,_0x4cae29){const _0x579846=_0x562b47;super(),this[_0x579846(0x14e)]=_0x32209a,this['_injector']=_0x3c6ecf,this[_0x579846(0xdf)]=_0x4cae29;const {..._0x1bd3dc}=_0xb0c13e({},T,this[_0x579846(0x14e)]);this[_0x579846(0xdf)]['setConfig'](ye,_0x1bd3dc);}[_0x562b47(0xc9)](){const _0x5c9daf=_0x562b47;_0x333ef5(this['_injector'],_0x3d1a15([[L],[S],[I],[m]],this['_config'][_0x5c9daf(0x126)])),_0x1c3957(this[_0x5c9daf(0x103)],[[I]]);}[_0x562b47(0xfa)](){const _0xbd4a61=_0x562b47;_0x1c3957(this[_0xbd4a61(0x103)],[[m]]);}};B(b,_0x562b47(0x102),_0x51802f[_0x562b47(0x15d)]),B(b,'pluginName',Ye),b=We([_0x411c47(_0x4e7d3f),F(0x1,_0x264acd(_0x126a5b)),F(0x2,_0x974748)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
|
1
|
+
const _0x55cb2f=_0x3b3f;(function(_0x2853c3,_0x18e970){const _0x3e22b9=_0x3b3f,_0x2a2857=_0x2853c3();while(!![]){try{const _0xcf43=-parseInt(_0x3e22b9(0x187))/0x1+-parseInt(_0x3e22b9(0x18d))/0x2+-parseInt(_0x3e22b9(0x1e7))/0x3*(parseInt(_0x3e22b9(0x181))/0x4)+-parseInt(_0x3e22b9(0x1d6))/0x5+-parseInt(_0x3e22b9(0x1ad))/0x6*(parseInt(_0x3e22b9(0x168))/0x7)+parseInt(_0x3e22b9(0x1b1))/0x8*(parseInt(_0x3e22b9(0x1f0))/0x9)+parseInt(_0x3e22b9(0x199))/0xa;if(_0xcf43===_0x18e970)break;else _0x2a2857['push'](_0x2a2857['shift']());}catch(_0x4e4263){_0x2a2857['push'](_0x2a2857['shift']());}}}(_0x38d6,0x8d84a));var J=Object[_0x55cb2f(0x1fb)],K=(_0x321bef,_0x1638e8,_0x242cf9)=>_0x1638e8 in _0x321bef?J(_0x321bef,_0x1638e8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x242cf9}):_0x321bef[_0x1638e8]=_0x242cf9,u=(_0x30cd6d,_0x2d65bb,_0x30439e)=>K(_0x30cd6d,typeof _0x2d65bb!=_0x55cb2f(0x1f2)?_0x2d65bb+'':_0x2d65bb,_0x30439e);import{Disposable as _0x4af259,toDisposable as _0x11f671,IUniverInstanceService as _0x121289,Inject as _0x312b96,Injector as _0x7d3dde,IConfigService as _0x3d3506,ICommandService as _0x58b740,RxDisposable as _0x5c9eca,UniverInstanceType as _0x4070ed,DisposableCollection as _0x52d334,CommandType as _0x3f3a8a,DependentOn as _0x5ee615,Plugin as _0x119531,merge as _0xe10b7b,registerDependencies as _0x58f0a9,mergeOverrideWithDependencies as _0x434f51,touchDependencies as _0x38b9cb}from'@univerjs/core';import{useDependency as _0x1e6c41,useObservable as _0x2bbad4,IUIPartsService as _0x219ba3,BuiltInUIPart as _0x148c23,connectInjector as _0x48b907}from'@univerjs/ui';import{jsx as _0x4c93b8,jsxs as _0x300104,Fragment as _0x3d3edc}from'react/jsx-runtime';import{Dropdown as _0x1ada85,clsx as _0x37c55b,Button as _0x5de6ef}from'@univerjs/design';import{useRef as _0x5cc64a,createElement as _0x368bcf,forwardRef as _0x59d39c,useState as _0x1d3edb,useEffect as _0x310807}from'react';import{CollaborationEvent as _0x246bf5,parseProtocolChangeset as _0x1704a8}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x4517c3,SessionStatus as _0x40d8fd,UniverCollaborationClientPlugin as _0x427d7f}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x252e6b,SetWorksheetActiveOperation as _0x1c9065}from'@univerjs/sheets';import{BehaviorSubject as _0x4699ca,Subject as _0x26cfc0}from'rxjs';import{takeUntil as _0x3b65a1,throttleTime as _0x1b8bcb}from'rxjs/operators';import{SetZoomRatioOperation as _0xaf5adc,SetScrollOperation as _0x48d7dc}from'@univerjs/sheets-ui';function k({ref:_0x30de43,..._0xc717a5}){const _0x45c78f=_0x55cb2f,{icon:_0x3a262c,id:_0x4e0a42,className:_0x4d6d1d,extend:_0x131070,..._0x16853e}=_0xc717a5,_0x6c8aa6=(_0x45c78f(0x161)+_0x4e0a42+'\x20'+(_0x4d6d1d||''))['trim'](),_0x1e9e74=_0x5cc64a('_'+Oe());return G(_0x3a262c,''+_0x4e0a42,{'defIds':_0x3a262c[_0x45c78f(0x17d)],'idSuffix':_0x1e9e74[_0x45c78f(0x1c1)]},{'ref':_0x30de43,'className':_0x6c8aa6,..._0x16853e},_0x131070);}function G(_0xb4d215,_0x50c14b,_0x424c06,_0x50de1d,_0x28853b){const _0x239271=_0x55cb2f;return _0x368bcf(_0xb4d215['tag'],{'key':_0x50c14b,...be(_0xb4d215,_0x424c06,_0x28853b),..._0x50de1d},(Ee(_0xb4d215,_0x424c06)[_0x239271(0x1e8)]||[])['map']((_0x20230d,_0x5ddca1)=>G(_0x20230d,_0x50c14b+'-'+_0xb4d215[_0x239271(0x15e)]+'-'+_0x5ddca1,_0x424c06,void 0x0,_0x28853b)));}function be(_0x5aac9b,_0x127e6f,_0x3dd643){const _0x57a9cd=_0x55cb2f,_0x546884={..._0x5aac9b[_0x57a9cd(0x1f9)]};_0x3dd643!=null&&_0x3dd643[_0x57a9cd(0x1c9)]&&_0x546884[_0x57a9cd(0x1c8)]==='colorChannel1'&&(_0x546884[_0x57a9cd(0x1c8)]=_0x3dd643[_0x57a9cd(0x1c9)]),_0x5aac9b[_0x57a9cd(0x15e)]===_0x57a9cd(0x202)&&_0x546884['id']&&(_0x546884['id']=_0x546884['id']+_0x127e6f['idSuffix']),Object[_0x57a9cd(0x186)](_0x546884)[_0x57a9cd(0x1a9)](([_0x4c5b08,_0x506377])=>{const _0x564068=_0x57a9cd;_0x4c5b08==='mask'&&typeof _0x506377==_0x564068(0x1bb)&&(_0x546884[_0x4c5b08]=_0x506377[_0x564068(0x175)](/url\(#(.*)\)/,_0x564068(0x165)+_0x127e6f['idSuffix']+')'));});const {defIds:_0x1665fb}=_0x127e6f;return!_0x1665fb||_0x1665fb[_0x57a9cd(0x167)]===0x0||(_0x5aac9b[_0x57a9cd(0x15e)]===_0x57a9cd(0x1b5)&&_0x546884[_0x57a9cd(0x179)]&&(_0x546884[_0x57a9cd(0x179)]=_0x546884[_0x57a9cd(0x179)]+_0x127e6f[_0x57a9cd(0x1ee)]),Object[_0x57a9cd(0x186)](_0x546884)[_0x57a9cd(0x1a9)](([_0x1f5012,_0x456b69])=>{const _0x5d0a58=_0x57a9cd;typeof _0x456b69==_0x5d0a58(0x1bb)&&(_0x546884[_0x1f5012]=_0x456b69['replace'](/url\(#(.*)\)/,'url(#$1'+_0x127e6f[_0x5d0a58(0x1ee)]+')'));})),_0x546884;}function Ee(_0x43177f,_0x30ef3b){const _0x366f3a=_0x55cb2f;var _0x4cb47e;const {defIds:_0x357cbf}=_0x30ef3b;return!_0x357cbf||_0x357cbf[_0x366f3a(0x167)]===0x0?_0x43177f:_0x43177f[_0x366f3a(0x15e)]===_0x366f3a(0x1d7)&&((_0x4cb47e=_0x43177f[_0x366f3a(0x1e8)])!=null&&_0x4cb47e[_0x366f3a(0x167)])?{..._0x43177f,'children':_0x43177f[_0x366f3a(0x1e8)][_0x366f3a(0x1f3)](_0x3366ef=>typeof _0x3366ef[_0x366f3a(0x1f9)]['id']=='string'&&_0x357cbf&&_0x357cbf[_0x366f3a(0x198)](_0x3366ef[_0x366f3a(0x1f9)]['id'])?{..._0x3366ef,'attrs':{..._0x3366ef[_0x366f3a(0x1f9)],'id':_0x3366ef[_0x366f3a(0x1f9)]['id']+_0x30ef3b[_0x366f3a(0x1ee)]}}:_0x3366ef)}:_0x43177f;}function Oe(){const _0x4159f0=_0x55cb2f;return Math[_0x4159f0(0x1e5)]()[_0x4159f0(0x1da)](0x24)['substring'](0x2,0x8);}k['displayName']=_0x55cb2f(0x1b3);const we={'tag':'svg','attrs':{'xmlns':_0x55cb2f(0x1c5),'fill':_0x55cb2f(0x1aa),'viewBox':_0x55cb2f(0x19d),'width':_0x55cb2f(0x184),'height':'1em'},'children':[{'tag':_0x55cb2f(0x204),'attrs':{'fill':_0x55cb2f(0x174),'d':_0x55cb2f(0x18b)}},{'tag':_0x55cb2f(0x204),'attrs':{'fill':_0x55cb2f(0x174),'d':_0x55cb2f(0x1bd),'fillRule':_0x55cb2f(0x1ed),'clipRule':_0x55cb2f(0x1ed)}}]},W=_0x59d39c(function(_0x10da74,_0x59629d){const _0x5609b2=_0x55cb2f;return _0x368bcf(k,Object[_0x5609b2(0x1dd)]({},_0x10da74,{'id':'live-share-icon','ref':_0x59629d,'icon':we}));});W[_0x55cb2f(0x189)]=_0x55cb2f(0x1cb);class L extends _0x4af259{constructor(){const _0x4bcc7c=_0x55cb2f;super(...arguments),u(this,_0x4bcc7c(0x1d9),new Set()),u(this,_0x4bcc7c(0x172),new Set());}[_0x55cb2f(0x1fc)](_0x455077){const _0x272a88=_0x55cb2f;return this[_0x272a88(0x1d9)][_0x272a88(0x1cc)](_0x455077),_0x11f671(()=>this[_0x272a88(0x1d9)][_0x272a88(0x206)](_0x455077));}[_0x55cb2f(0x178)](_0x4b13ee){const _0x55c795=_0x55cb2f;return this[_0x55c795(0x172)]['add'](_0x4b13ee),_0x11f671(()=>this[_0x55c795(0x172)][_0x55c795(0x206)](_0x4b13ee));}['shouldShareOperation'](_0x1076a3){const _0x21d2df=_0x55cb2f;return this[_0x21d2df(0x1d9)][_0x21d2df(0x18e)](_0x1076a3);}[_0x55cb2f(0x1d8)](_0x1f388e){const _0x4c4a86=_0x55cb2f;return Array[_0x4c4a86(0x171)](this['_reporters'])[_0x4c4a86(0x1f3)](_0x2cc008=>_0x2cc008(_0x1f388e));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0x4f69d6,_0x444dd4,_0x2dbc2c,_0x439c35)=>{const _0x115134=_0x55cb2f;for(var _0x55d3a5=_0x439c35>0x1?void 0x0:_0x439c35?Ne(_0x444dd4,_0x2dbc2c):_0x444dd4,_0x547d2f=_0x4f69d6[_0x115134(0x167)]-0x1,_0x2972a7;_0x547d2f>=0x0;_0x547d2f--)(_0x2972a7=_0x4f69d6[_0x547d2f])&&(_0x55d3a5=_0x2972a7(_0x55d3a5)||_0x55d3a5);return _0x55d3a5;},_=(_0x49dfbc,_0x4a3b30)=>(_0x21741d,_0x51210f)=>_0x4a3b30(_0x21741d,_0x51210f,_0x49dfbc);let S=class extends _0x5c9eca{constructor(_0x464b9d,_0x169ca8,_0x558123){const _0x5a314d=_0x55cb2f;super(),u(this,_0x5a314d(0x205),new Map()),(this[_0x5a314d(0x1c3)]=_0x464b9d,this[_0x5a314d(0x1dc)]=_0x169ca8,this[_0x5a314d(0x1b7)]=_0x558123,this[_0x5a314d(0x19e)]());}async[_0x55cb2f(0x1a8)](_0x4569df){const _0x451b2c=_0x55cb2f;return this[_0x451b2c(0x205)]['has'](_0x4569df)||await this['_startLiveShareCoordinator'](_0x4569df),this[_0x451b2c(0x205)]['get'](_0x4569df);}[_0x55cb2f(0x17b)](_0x4c78dd){const _0x3dec21=_0x55cb2f;var _0x12ee02;return(_0x12ee02=this[_0x3dec21(0x205)][_0x3dec21(0x1ba)](_0x4c78dd))!=null?_0x12ee02:null;}['_init'](){const _0x2e7f3f=_0x55cb2f;this['_univerInstanceService'][_0x2e7f3f(0x1f5)](_0x4070ed['UNIVER_SHEET'])[_0x2e7f3f(0x1bf)](_0x3b65a1(this[_0x2e7f3f(0x194)]))[_0x2e7f3f(0x1b6)](async _0x4316ee=>{const _0x4c782c=_0x2e7f3f,_0x404448=_0x4316ee[_0x4c782c(0x18f)]();this[_0x4c782c(0x205)][_0x4c782c(0x18e)](_0x404448)||this['_startLiveShareCoordinator'](_0x404448);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4070ed[_0x2e7f3f(0x1eb)])[_0x2e7f3f(0x1bf)](_0x3b65a1(this['dispose$']))[_0x2e7f3f(0x1b6)](_0x460b91=>{const _0x3585cf=_0x2e7f3f,_0x471a29=_0x460b91[_0x3585cf(0x18f)](),_0x58a66f=this['_entities'][_0x3585cf(0x1ba)](_0x471a29);_0x58a66f==null||_0x58a66f[_0x3585cf(0x1cf)]();});}async['_startLiveShareCoordinator'](_0x20bc95){const _0x5569a2=_0x55cb2f,_0x4df69a=await this[_0x5569a2(0x1b7)][_0x5569a2(0x182)](_0x20bc95),_0x4f9b5f=this[_0x5569a2(0x1dc)][_0x5569a2(0x180)](N,_0x20bc95,_0x4df69a);return _0x4f9b5f['init'](),this[_0x5569a2(0x205)]['set'](_0x20bc95,_0x4f9b5f),_0x4f9b5f;}};S=Y([_(0x0,_0x121289),_(0x1,_0x312b96(_0x7d3dde)),_(0x2,_0x312b96(_0x4517c3))],S);function _0x38d6(){const _0x30b275=['_commandService','type','_handleOffline','startFollowing','OFFLINE','mask','getValue','path','_entities','delete','override','getConfig','tag','idle','set','univerjs-icon\x20univerjs-icon-','You\x27are\x20offline.','_status','presenting','url(#$1','operations','length','549850lLLxpk','getMemberID','_commandDisposable','You\x27re\x20following\x20the\x20presenter','_uiPartsService','_liveShareService','_handleNewHost','send','onCommandExecuted','from','_reporters','find','currentColor','replace','NOT_FOLLOWING','_handleOnline','registerInitialStateReporter','xlink:href','onStarting','getLiveShareCoordinatorSync','_status$','defIds','disposeWithMe','ONLINE','createInstance','3565852TEIFJC','requireSession','_handleNewChangeSets','1em','_presenter','entries','304626ZhJhZr','_startPresenting','displayName','mutations','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','not-following','1530518oCzYNF','has','getUnitId','then','Present\x20this\x20document','_stopFollowing','_handleOperation','dispose$','LIVESHARE_FETCH_OPERATIONS','OPERATION','Start\x20following','includes','42260800AxemyM','end','next','Start','0\x200\x2017\x2017','_init','offline','stopFollowing','complete','tryStartPresenting','_startFollowing','sheet','FOLLOWING','HEADER_MENU','getOwnPropertyDescriptor','getLiveShareCoordinator','forEach','none','unsubscribe','_fetchOperations','84xYIGQd','_stopPresenting','Stop\x20following','reverse','2833864pINWxF','LIVESHARE_REQUEST_HOST','UniverIcon','You\x27re\x20not\x20following\x20the\x20presenter','use','subscribe','_collabSessionService','unitId','_beIdle','get','string','following','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','_collabSession','pipe','data','current','LIVESHARE_TERMINATE','_univerInstanceService','IDLE','http://www.w3.org/2000/svg','init','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','fill','colorChannel1','stringify','LiveShareIcon','add','button','Stop\x20presenting','dispose','LIVESHARE_NEW_HOST','SAME_OPERATION_SHARE_INTERVAL','parse','_configService','memberID','setConfig','4698035MziXTi','defs','getInitialStates','_sharedOperations','toString','params','_injector','assign','clear','presenter','default','asObservable','_unitID','executeCommand','LIVESHARE_OPERATION','random','pluginName','3ADkKgs','children','PRESENTING','stopPresenting','UNIVER_SHEET','univer-size-4','evenodd','idSuffix','_handleTerminate','9pOsJax','UNIVER_LIVE_SHARE_PLUGIN','symbol','map','_config','getTypeOfUnitAdded$','_mountLiveShare','div','status$','attrs','univer-mb-3\x20univer-w-full\x20univer-text-sm','defineProperty','registerSharedOperation'];_0x38d6=function(){return _0x30b275;};return _0x38d6();}function _0x3b3f(_0x5b0076,_0xf91d0a){_0x5b0076=_0x5b0076-0x15e;const _0x38d605=_0x38d6();let _0x3b3feb=_0x38d605[_0x5b0076];return _0x3b3feb;}var c=(_0x552b37=>(_0x552b37['OFFLINE']=_0x55cb2f(0x19f),_0x552b37[_0x55cb2f(0x1c4)]=_0x55cb2f(0x15f),_0x552b37[_0x55cb2f(0x1a5)]=_0x55cb2f(0x1bc),_0x552b37[_0x55cb2f(0x176)]=_0x55cb2f(0x18c),_0x552b37[_0x55cb2f(0x1e9)]='presenting',_0x552b37))(c||{});const Ce=_0x55cb2f(0x1d1),De=0xc8;let N=class extends _0x5c9eca{constructor(_0xa67ec8,_0x14f7a5,_0x5cd55b,_0xb41f36,_0x486500){const _0x4672ef=_0x55cb2f;super(),u(this,_0x4672ef(0x17c),new _0x4699ca(_0x4672ef(0x15f))),u(this,_0x4672ef(0x1f8),this[_0x4672ef(0x17c)][_0x4672ef(0x1e1)]()),u(this,_0x4672ef(0x19e),!0x1),u(this,_0x4672ef(0x16a),null),u(this,_0x4672ef(0x185),null),(this[_0x4672ef(0x1e2)]=_0xa67ec8,this[_0x4672ef(0x1be)]=_0x14f7a5,this[_0x4672ef(0x1d3)]=_0x5cd55b,this[_0x4672ef(0x16d)]=_0xb41f36,this[_0x4672ef(0x1fd)]=_0x486500);}get[_0x55cb2f(0x163)](){const _0x5ef825=_0x55cb2f;return this[_0x5ef825(0x17c)][_0x5ef825(0x203)]();}[_0x55cb2f(0x1cf)](){const _0x3de9b0=_0x55cb2f;var _0x51c18d;(_0x51c18d=this[_0x3de9b0(0x16a)])==null||_0x51c18d[_0x3de9b0(0x1cf)](),this['_status$'][_0x3de9b0(0x19b)](_0x3de9b0(0x15f)),this[_0x3de9b0(0x17c)]['complete']();}['getStatus'](){const _0x28bb25=_0x55cb2f;return this[_0x28bb25(0x163)];}[_0x55cb2f(0x1c6)](){const _0x1d5dde=_0x55cb2f;this[_0x1d5dde(0x19e)]||(this[_0x1d5dde(0x19e)]=!0x0,this['_collabSession']['sessionStatus$']['pipe'](_0x3b65a1(this['dispose$']))[_0x1d5dde(0x1b6)](_0x44d854=>{const _0x366120=_0x1d5dde;switch(_0x44d854){case _0x40d8fd['OFFLINE']:this[_0x366120(0x1ff)]();break;case _0x40d8fd[_0x366120(0x17f)]:this[_0x366120(0x177)]();break;}}),this[_0x1d5dde(0x1be)]['event$'][_0x1d5dde(0x1bf)](_0x3b65a1(this[_0x1d5dde(0x194)]))[_0x1d5dde(0x1b6)](_0x25ec19=>{const _0xd1b267=_0x1d5dde,{eventID:_0x507ca6}=_0x25ec19;switch(_0x507ca6){case _0x246bf5[_0xd1b267(0x1d0)]:this[_0xd1b267(0x16e)](_0x25ec19);break;case _0x246bf5['LIVESHARE_OPERATION']:this[_0xd1b267(0x193)](_0x25ec19);break;case _0x246bf5[_0xd1b267(0x1c2)]:this[_0xd1b267(0x1ef)]();break;case _0x246bf5['NEW_CHANGESETS']:this[_0xd1b267(0x183)](_0x25ec19);break;}}));}[_0x55cb2f(0x1a2)](){const _0x1e769b=_0x55cb2f;this['_collabSession'][_0x1e769b(0x16f)]({'eventID':_0x246bf5[_0x1e769b(0x1b2)],'data':{'unitID':this[_0x1e769b(0x1e2)],'userID':this[_0x1e769b(0x1be)][_0x1e769b(0x169)]()}},this[_0x1e769b(0x1e2)]);}['stopPresenting'](){const _0x4b4506=_0x55cb2f;this[_0x4b4506(0x163)]===_0x4b4506(0x164)&&(this[_0x4b4506(0x17c)]['next'](_0x4b4506(0x15f)),this[_0x4b4506(0x1be)][_0x4b4506(0x16f)]({'eventID':_0x246bf5[_0x4b4506(0x1c2)],'data':{'unitID':this[_0x4b4506(0x1e2)]}},this[_0x4b4506(0x1e2)]));}[_0x55cb2f(0x200)](){const _0x98ff50=_0x55cb2f;this[_0x98ff50(0x163)]===_0x98ff50(0x18c)&&(this[_0x98ff50(0x17c)][_0x98ff50(0x19b)](_0x98ff50(0x1bc)),this[_0x98ff50(0x1a3)]());}['stopFollowing'](){const _0x36c901=_0x55cb2f;this[_0x36c901(0x163)]===_0x36c901(0x1bc)&&this['_stopFollowing']();}[_0x55cb2f(0x16e)](_0x8b94fe){const _0x5e4e90=_0x55cb2f,{presenter:_0x38d6f7}=_0x8b94fe[_0x5e4e90(0x1c0)],_0x100f7d=this[_0x5e4e90(0x1be)]['getMemberID']();this[_0x5e4e90(0x185)]=_0x38d6f7,_0x38d6f7===_0x100f7d?(this['_stopFollowing'](),this[_0x5e4e90(0x188)]()):this[_0x5e4e90(0x163)]!==_0x5e4e90(0x18c)&&(this['_stopPresenting'](),this[_0x5e4e90(0x1a3)]());}[_0x55cb2f(0x1ac)](){const _0x157e7b=_0x55cb2f,_0x273e6d={'eventID':_0x246bf5[_0x157e7b(0x195)]};this[_0x157e7b(0x1be)][_0x157e7b(0x16f)](_0x273e6d,this[_0x157e7b(0x1e2)]);}[_0x55cb2f(0x1ef)](){const _0x41c011=_0x55cb2f;this['_presenter']=null,this[_0x41c011(0x163)]!==_0x41c011(0x164)&&this[_0x41c011(0x1b9)]();}[_0x55cb2f(0x183)](_0x4bb8e2){const _0x29f721=_0x55cb2f;if(this[_0x29f721(0x163)]===_0x29f721(0x1bc)&&this[_0x29f721(0x185)]===_0x4bb8e2[_0x29f721(0x1c0)][_0x29f721(0x1d4)]){const _0x3c9559=_0x1704a8(_0x4bb8e2[_0x29f721(0x1c0)])[_0x29f721(0x18a)][_0x29f721(0x1b0)]()[_0x29f721(0x173)](_0x4db788=>_0x4db788['id']===_0x252e6b['id']);if(_0x3c9559){const _0x4e9ab4=_0x3c9559[_0x29f721(0x1db)][_0x29f721(0x1b8)],_0x531013=_0x3c9559[_0x29f721(0x1db)][_0x29f721(0x1a4)]['id'];setTimeout(()=>{const _0x9f05e6=_0x29f721;this[_0x9f05e6(0x1fd)][_0x9f05e6(0x1e3)](_0x1c9065['id'],{'unitId':_0x4e9ab4,'subUnitId':_0x531013},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x416ba5=_0x55cb2f;this[_0x416ba5(0x17c)][_0x416ba5(0x19b)](_0x416ba5(0x164));const _0x2b9da7=new Map(),_0xb0f887=this[_0x416ba5(0x16a)]=new _0x52d334();_0xb0f887[_0x416ba5(0x1cc)](_0x11f671(()=>{const _0x2af8e7=_0x416ba5;_0x2b9da7[_0x2af8e7(0x1a9)](_0x49680a=>_0x49680a[_0x2af8e7(0x1a1)]()),_0x2b9da7[_0x2af8e7(0x1de)]();})),_0xb0f887[_0x416ba5(0x1cc)](this[_0x416ba5(0x1fd)][_0x416ba5(0x170)](_0x4fcb17=>{const _0x4ba326=_0x416ba5;var _0x2f46bc;if(_0x4fcb17[_0x4ba326(0x1fe)]!==_0x3f3a8a[_0x4ba326(0x196)]||!this[_0x4ba326(0x16d)]['shouldShareOperation'](_0x4fcb17['id']))return;const {id:_0x3be601}=_0x4fcb17;let _0x27895a;_0x2b9da7[_0x4ba326(0x18e)](_0x3be601)?_0x27895a=_0x2b9da7[_0x4ba326(0x1ba)](_0x3be601):(_0x27895a=new _0x26cfc0(),_0x2b9da7[_0x4ba326(0x160)](_0x3be601,_0x27895a),_0x27895a['pipe'](_0x1b8bcb((_0x2f46bc=this[_0x4ba326(0x1d3)][_0x4ba326(0x208)](Ce))!=null?_0x2f46bc:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4ba326(0x1b6)](_0x9788dc=>{const _0xe73f54=_0x4ba326;this[_0xe73f54(0x1be)][_0xe73f54(0x16f)]({'eventID':_0x246bf5[_0xe73f54(0x1e4)],'data':{'unitID':this[_0xe73f54(0x1e2)],'operations':{[_0x9788dc['id']]:{'id':_0x9788dc['id'],'params':JSON[_0xe73f54(0x1ca)](_0x9788dc[_0xe73f54(0x1db)])}}}},this[_0xe73f54(0x1e2)]);})),_0x27895a['next'](_0x4fcb17);})),this[_0x416ba5(0x16d)]['getInitialStates'](this[_0x416ba5(0x1e2)])[_0x416ba5(0x1a9)](_0x57fa13=>this[_0x416ba5(0x1be)][_0x416ba5(0x16f)]({'eventID':_0x246bf5[_0x416ba5(0x1e4)],'data':{'unitID':this['_unitID'],'operations':{[_0x57fa13['id']]:{'id':_0x57fa13['id'],'params':JSON[_0x416ba5(0x1ca)](_0x57fa13[_0x416ba5(0x1db)])}}}},this['_unitID']));}[_0x55cb2f(0x1ae)](){const _0x545277=_0x55cb2f;var _0xf52ddd;this[_0x545277(0x17c)]['next'](_0x545277(0x15f)),(_0xf52ddd=this[_0x545277(0x16a)])==null||_0xf52ddd[_0x545277(0x1cf)](),this[_0x545277(0x16a)]=null;}['_startFollowing'](){const _0x1dface=_0x55cb2f;var _0x31b759;(_0x31b759=this[_0x1dface(0x16a)])==null||_0x31b759[_0x1dface(0x1cf)](),this['_status$'][_0x1dface(0x19b)](_0x1dface(0x1bc));}[_0x55cb2f(0x1b9)](){const _0x4b4516=_0x55cb2f;var _0x45c763;this['_status$'][_0x4b4516(0x19b)](_0x4b4516(0x15f)),(_0x45c763=this[_0x4b4516(0x16a)])==null||_0x45c763['dispose'](),this[_0x4b4516(0x16a)]=null;}[_0x55cb2f(0x192)](){const _0x19e2e9=_0x55cb2f;var _0x5f36aa;this['_status$']['next']('not-following'),(_0x5f36aa=this['_commandDisposable'])==null||_0x5f36aa[_0x19e2e9(0x1cf)]();}[_0x55cb2f(0x193)](_0x215fb5){const _0x502e6b=_0x55cb2f;if(['presenting',_0x502e6b(0x18c),_0x502e6b(0x19f)][_0x502e6b(0x198)](this[_0x502e6b(0x163)])||!_0x215fb5[_0x502e6b(0x1c0)][_0x502e6b(0x1df)]||_0x215fb5[_0x502e6b(0x1c0)][_0x502e6b(0x1df)]===this['_collabSession'][_0x502e6b(0x169)]())return;this[_0x502e6b(0x163)]===_0x502e6b(0x15f)&&this['_startFollowing']();const _0x5922c8=_0x215fb5[_0x502e6b(0x1c0)][_0x502e6b(0x166)];Object['values'](_0x5922c8)[_0x502e6b(0x1a9)](_0x1fc158=>{const _0x2e3d4e=_0x502e6b;this[_0x2e3d4e(0x1fd)][_0x2e3d4e(0x1e3)](_0x1fc158['id'],_0x1fc158[_0x2e3d4e(0x1db)]?JSON[_0x2e3d4e(0x1d2)](_0x1fc158[_0x2e3d4e(0x1db)]):null,{'fromCollab':!0x0});});}[_0x55cb2f(0x1ff)](){const _0x582f95=_0x55cb2f;var _0x34beb2;this[_0x582f95(0x17c)][_0x582f95(0x19b)](_0x582f95(0x19f)),(_0x34beb2=this[_0x582f95(0x16a)])==null||_0x34beb2[_0x582f95(0x1cf)]();}[_0x55cb2f(0x177)](){const _0x5e62b4=_0x55cb2f;this[_0x5e62b4(0x17c)][_0x5e62b4(0x19b)](_0x5e62b4(0x15f)),this[_0x5e62b4(0x1ac)]();}};N=Y([_(0x2,_0x3d3506),_(0x3,_0x312b96(L)),_(0x4,_0x58b740)],N);function Le(){const _0x247917=_0x55cb2f,_0x374653=_0x1e6c41(S),_0x5de15c=_0x1e6c41(_0x121289),_0x52a6c8=_0x2bbad4(()=>_0x5de15c['getCurrentTypeOfUnit$'](_0x4070ed[_0x247917(0x1eb)]),void 0x0,!0x1,[]),[_0xcc7ff4,_0x331c1f]=_0x1d3edb(null),[_0x45611c,_0x55693f]=_0x1d3edb(c[_0x247917(0x1c4)]),_0x21711c=_0x5cc64a(null);return _0x310807(()=>(_0x52a6c8&&_0x374653[_0x247917(0x1a8)](_0x52a6c8[_0x247917(0x18f)]())[_0x247917(0x190)](_0x45f8ac=>{const _0x3f0d66=_0x247917;_0x331c1f(_0x45f8ac),_0x21711c['current']=_0x45f8ac[_0x3f0d66(0x1f8)][_0x3f0d66(0x1b6)](_0x577466=>{_0x55693f(_0x577466);});}),()=>{const _0x4cd3f8=_0x247917;var _0x3a13ca;(_0x3a13ca=_0x21711c['current'])==null||_0x3a13ca[_0x4cd3f8(0x1ab)](),_0x21711c[_0x4cd3f8(0x1c1)]=null;}),[_0x52a6c8,_0x374653]),_0xcc7ff4?_0x4c93b8(_0x1ada85,{'align':_0x247917(0x19a),'disabled':_0x45611c===c[_0x247917(0x201)],'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':_0x4c93b8(Re,{'status':_0x45611c,'coordinator':_0xcc7ff4}),'children':_0x4c93b8(_0x247917(0x1cd),{'className':_0x37c55b(_0x247917(0x1c7),{'univer-cursor-not-allowed':_0x45611c===c[_0x247917(0x201)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x45611c!==c['OFFLINE']}),'type':_0x247917(0x1cd),'children':_0x4c93b8(W,{'className':_0x247917(0x1ec)})})}):null;}function Re(_0x305889){const _0x3150f0=_0x55cb2f,{status:_0x1512ad,coordinator:_0x570ed8}=_0x305889;switch(_0x1512ad){case c[_0x3150f0(0x1c4)]:return _0x4c93b8($e,{'coordinator':_0x570ed8});case c[_0x3150f0(0x1a5)]:return _0x4c93b8(xe,{'coordinator':_0x570ed8});case c['NOT_FOLLOWING']:return _0x4c93b8(Pe,{'coordinator':_0x570ed8});case c[_0x3150f0(0x201)]:return _0x4c93b8(Te,{});case c[_0x3150f0(0x1e9)]:return _0x4c93b8(Ae,{'coordinator':_0x570ed8});default:return null;}}function $e(_0x535d85){const _0xc28b8=_0x55cb2f,{coordinator:_0x569156}=_0x535d85;return _0x300104(_0x3d3edc,{'children':[_0x4c93b8('div',{'className':_0xc28b8(0x1fa),'children':_0xc28b8(0x191)}),_0x4c93b8(_0x5de6ef,{'onClick':()=>_0x569156['tryStartPresenting'](),'children':_0xc28b8(0x19c)})]});}function xe(_0x50b0db){const _0x1d9bc5=_0x55cb2f,{coordinator:_0x26e156}=_0x50b0db;return _0x300104(_0x3d3edc,{'children':[_0x4c93b8(_0x1d9bc5(0x1f7),{'className':_0x1d9bc5(0x1fa),'children':_0x1d9bc5(0x16b)}),_0x4c93b8(_0x5de6ef,{'onClick':()=>_0x26e156[_0x1d9bc5(0x1a0)](),'children':_0x1d9bc5(0x1af)})]});}function Pe(_0x523b08){const _0x2fb522=_0x55cb2f,{coordinator:_0x7585a2}=_0x523b08;return _0x300104(_0x3d3edc,{'children':[_0x4c93b8(_0x2fb522(0x1f7),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2fb522(0x1b4)}),_0x4c93b8(_0x5de6ef,{'variant':'text','onClick':()=>_0x7585a2[_0x2fb522(0x200)](),'children':_0x2fb522(0x197)})]});}function Ae(_0x4cb948){const _0x551fbc=_0x55cb2f,{coordinator:_0x26509d}=_0x4cb948;return _0x300104(_0x3d3edc,{'children':[_0x4c93b8(_0x551fbc(0x1f7),{'className':_0x551fbc(0x1fa),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x4c93b8(_0x5de6ef,{'variant':_0x551fbc(0x1e0),'onClick':()=>_0x26509d[_0x551fbc(0x1ea)](),'children':_0x551fbc(0x1ce)})]});}function Te(){const _0x3f8971=_0x55cb2f;return _0x4c93b8(_0x3d3edc,{'children':_0x3f8971(0x162)});}var Fe=Object[_0x55cb2f(0x1a7)],He=(_0x3e819d,_0x15d8e5,_0x5b2734,_0x5d387b)=>{for(var _0x999a1e=_0x5d387b>0x1?void 0x0:_0x5d387b?Fe(_0x15d8e5,_0x5b2734):_0x15d8e5,_0x524e23=_0x3e819d['length']-0x1,_0x36b944;_0x524e23>=0x0;_0x524e23--)(_0x36b944=_0x3e819d[_0x524e23])&&(_0x999a1e=_0x36b944(_0x999a1e)||_0x999a1e);return _0x999a1e;},A=(_0x1f8caa,_0x237d12)=>(_0x3d69f7,_0x22871b)=>_0x237d12(_0x3d69f7,_0x22871b,_0x1f8caa);let m=class extends _0x4af259{constructor(_0x31a7b3,_0x4ddd3c){const _0x4bd0c7=_0x55cb2f;super(),this[_0x4bd0c7(0x1dc)]=_0x31a7b3,this['_uiPartsService']=_0x4ddd3c,this[_0x4bd0c7(0x1f6)]();}[_0x55cb2f(0x1f6)](){const _0x5c5e2f=_0x55cb2f;this[_0x5c5e2f(0x17e)](this[_0x5c5e2f(0x16c)]['registerComponent'](_0x148c23[_0x5c5e2f(0x1a6)],()=>_0x48b907(Le,this[_0x5c5e2f(0x1dc)])));}};m=He([A(0x0,_0x312b96(_0x7d3dde)),A(0x1,_0x219ba3)],m);const ye='live-share.config',T={};var Ue=Object[_0x55cb2f(0x1a7)],Ve=(_0xb3b2c5,_0x3a118e,_0xc4c1b9,_0x20ddc7)=>{const _0x12289a=_0x55cb2f;for(var _0x46f981=_0x20ddc7>0x1?void 0x0:_0x20ddc7?Ue(_0x3a118e,_0xc4c1b9):_0x3a118e,_0xa8ddb7=_0xb3b2c5[_0x12289a(0x167)]-0x1,_0x569a6b;_0xa8ddb7>=0x0;_0xa8ddb7--)(_0x569a6b=_0xb3b2c5[_0xa8ddb7])&&(_0x46f981=_0x569a6b(_0x46f981)||_0x46f981);return _0x46f981;},je=(_0x54b3d0,_0x46ccaa)=>(_0x112c32,_0xa35fc1)=>_0x46ccaa(_0x112c32,_0xa35fc1,_0x54b3d0);let I=class extends _0x4af259{constructor(_0x273ad3){const _0x2ee53e=_0x55cb2f;super(),this['_liveShareService']=_0x273ad3,this[_0x2ee53e(0x19e)]();}['_init'](){[_0xaf5adc['id'],_0x48d7dc['id'],_0x1c9065['id']]['forEach'](_0x25a7aa=>{const _0x297fca=_0x3b3f;this[_0x297fca(0x17e)](this[_0x297fca(0x16d)][_0x297fca(0x1fc)](_0x25a7aa));});}};I=Ve([je(0x0,_0x312b96(L))],I);var Me=Object[_0x55cb2f(0x1fb)],ke=Object[_0x55cb2f(0x1a7)],Ge=(_0x4f19cf,_0x3d64c3,_0x5708e6)=>_0x3d64c3 in _0x4f19cf?Me(_0x4f19cf,_0x3d64c3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5708e6}):_0x4f19cf[_0x3d64c3]=_0x5708e6,We=(_0x56f1c5,_0x504788,_0x1794b5,_0x143f82)=>{const _0x1c45fd=_0x55cb2f;for(var _0xcdc8c9=_0x143f82>0x1?void 0x0:_0x143f82?ke(_0x504788,_0x1794b5):_0x504788,_0x2ab0d2=_0x56f1c5[_0x1c45fd(0x167)]-0x1,_0x1c61e6;_0x2ab0d2>=0x0;_0x2ab0d2--)(_0x1c61e6=_0x56f1c5[_0x2ab0d2])&&(_0xcdc8c9=_0x1c61e6(_0xcdc8c9)||_0xcdc8c9);return _0xcdc8c9;},F=(_0x3a1733,_0xf8553d)=>(_0x78f25d,_0x1c730a)=>_0xf8553d(_0x78f25d,_0x1c730a,_0x3a1733),B=(_0x470de7,_0x201494,_0x292d53)=>Ge(_0x470de7,typeof _0x201494!=_0x55cb2f(0x1f2)?_0x201494+'':_0x201494,_0x292d53);const Ye=_0x55cb2f(0x1f1);let b=class extends _0x119531{constructor(_0x285585=T,_0x578fbf,_0x1687fb){const _0x591562=_0x55cb2f;super(),this[_0x591562(0x1f4)]=_0x285585,this[_0x591562(0x1dc)]=_0x578fbf,this[_0x591562(0x1d3)]=_0x1687fb;const {..._0x4ac328}=_0xe10b7b({},T,this[_0x591562(0x1f4)]);this['_configService'][_0x591562(0x1d5)](ye,_0x4ac328);}[_0x55cb2f(0x17a)](){const _0x1eece6=_0x55cb2f;_0x58f0a9(this[_0x1eece6(0x1dc)],_0x434f51([[L],[S],[I],[m]],this[_0x1eece6(0x1f4)][_0x1eece6(0x207)])),_0x38b9cb(this[_0x1eece6(0x1dc)],[[I]]);}['onRendered'](){const _0x7445e4=_0x55cb2f;_0x38b9cb(this[_0x7445e4(0x1dc)],[[m]]);}};B(b,'type',_0x4070ed['UNIVER_UNKNOWN']),B(b,_0x55cb2f(0x1e6),Ye),b=We([_0x5ee615(_0x427d7f),F(0x1,_0x312b96(_0x7d3dde)),F(0x2,_0x3d3506)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x4a74(_0x136849,_0x583acc){_0x136849=_0x136849-0x1bd;const _0x7d11ea=_0x7d11();let _0x4a747b=_0x7d11ea[_0x136849];return _0x4a747b;}(function(_0x2dcf22,_0x5e9fe5){const _0x6f2406=_0x4a74,_0x5f42f5=_0x2dcf22();while(!![]){try{const _0x55ee13=-parseInt(_0x6f2406(0x1dc))/0x1*(parseInt(_0x6f2406(0x1e5))/0x2)+parseInt(_0x6f2406(0x1c6))/0x3*(parseInt(_0x6f2406(0x1e6))/0x4)+parseInt(_0x6f2406(0x1d4))/0x5+-parseInt(_0x6f2406(0x1db))/0x6+-parseInt(_0x6f2406(0x1cf))/0x7*(parseInt(_0x6f2406(0x1cd))/0x8)+parseInt(_0x6f2406(0x1d5))/0x9*(-parseInt(_0x6f2406(0x1c3))/0xa)+parseInt(_0x6f2406(0x1c2))/0xb;if(_0x55ee13===_0x5e9fe5)break;else _0x5f42f5['push'](_0x5f42f5['shift']());}catch(_0x35ee02){_0x5f42f5['push'](_0x5f42f5['shift']());}}}(_0x7d11,0x47b6a),function(_0x50a5e7,_0x3e1ce7){const _0x25bed5=_0x4a74;typeof exports==_0x25bed5(0x1eb)&&typeof module<'u'?_0x3e1ce7(require('@univerjs-pro/live-share'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define==_0x25bed5(0x1e3)&&define['amd']?define([_0x25bed5(0x1ef),'@univerjs/engine-render',_0x25bed5(0x1e9),_0x25bed5(0x1ca),_0x25bed5(0x1d2),_0x25bed5(0x1da)],_0x3e1ce7):(_0x50a5e7=typeof globalThis<'u'?globalThis:_0x50a5e7||self,_0x3e1ce7(_0x50a5e7[_0x25bed5(0x1d0)],_0x50a5e7[_0x25bed5(0x1e2)],_0x50a5e7[_0x25bed5(0x1f1)],_0x50a5e7['UniverSheetsUi'],_0x50a5e7[_0x25bed5(0x1d3)],_0x50a5e7['UniverCoreFacade']));}(this,function(_0x1e4bfa,_0x39c5e4,_0x5a3554,_0x57607d,_0x4dd8c9,_0x2e0aeb){'use strict';const _0x572824=_0x4a74;class _0x3988b5 extends _0x4dd8c9[_0x572824(0x1be)]{[_0x572824(0x1d8)](_0x2ab6ea,_0x16781b,_0xa5f936,_0x4f4224,_0x27990a){const _0x23ae9f=_0x572824,_0x1cfb7d=_0x2ab6ea[_0x23ae9f(0x1c7)](_0x1e4bfa[_0x23ae9f(0x1c5)]),_0x357d52=_0x2ab6ea[_0x23ae9f(0x1c7)](_0x39c5e4[_0x23ae9f(0x1e0)]),_0x5ea524=_0x16781b[_0x23ae9f(0x1ce)](),_0x2acfe2=_0x16781b[_0x23ae9f(0x1c0)](),_0x245e29=_0x1cfb7d[_0x23ae9f(0x1bd)](_0x5ea524);(_0x245e29==null?void 0x0:_0x245e29[_0x23ae9f(0x1ed)]())!==_0x1e4bfa['LiveShareStatus'][_0x23ae9f(0x1e7)]||(_0xa5f936[_0x23ae9f(0x1d6)]()!==_0x2acfe2['getSheetId']()&&this[_0x23ae9f(0x1df)][_0x23ae9f(0x1bf)](_0x5a3554['SetWorksheetActiveOperation']['id'],{'unitId':_0x5ea524,'subUnitId':_0xa5f936[_0x23ae9f(0x1d6)]()}),!_0x357d52['getRenderById'](_0x5ea524))||_0x27990a[_0x23ae9f(0x1c9)](_0x57607d[_0x23ae9f(0x1cb)]['id'],{'unitId':_0x16781b[_0x23ae9f(0x1ce)](),'sheetId':_0xa5f936[_0x23ae9f(0x1d6)](),'sheetViewStartRow':_0x4f4224[_0x23ae9f(0x1ec)],'sheetViewStartColumn':_0x4f4224[_0x23ae9f(0x1ee)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4dd8c9[_0x572824(0x1be)][_0x572824(0x1e4)](_0x3988b5);class _0x48ee95 extends _0x2e0aeb[_0x572824(0x1e8)]{[_0x572824(0x1de)](){const _0x3ebd33=_0x572824;var _0x1b5803,_0x3c30f5;const _0x5591c7=this[_0x3ebd33(0x1f0)]['get'](_0x1e4bfa[_0x3ebd33(0x1c5)]),_0x27a00e=(_0x1b5803=this[_0x3ebd33(0x1d9)]())==null?void 0x0:_0x1b5803['getId']();if(!_0x27a00e)throw new Error(_0x3ebd33(0x1c8));const _0x18a785=_0x5591c7[_0x3ebd33(0x1bd)](_0x27a00e);return(_0x3c30f5=_0x18a785==null?void 0x0:_0x18a785[_0x3ebd33(0x1ed)]())!=null?_0x3c30f5:_0x1e4bfa[_0x3ebd33(0x1c1)]['IDLE'];}[_0x572824(0x1dd)](){const _0x5a2cd0=_0x572824;var _0x5344ea;const _0x9ef7dc=this[_0x5a2cd0(0x1f0)][_0x5a2cd0(0x1c7)](_0x1e4bfa[_0x5a2cd0(0x1c5)]),_0x141ff7=(_0x5344ea=this['getActiveWorkbook']())==null?void 0x0:_0x5344ea[_0x5a2cd0(0x1d1)]();if(!_0x141ff7)throw new Error(_0x5a2cd0(0x1c8));const _0x44f4ed=_0x9ef7dc[_0x5a2cd0(0x1bd)](_0x141ff7);if(!_0x44f4ed)throw new Error(_0x5a2cd0(0x1d7));_0x44f4ed[_0x5a2cd0(0x1dd)]();}[_0x572824(0x1c4)](){const _0x28e0a4=_0x572824;var _0x3921d4;const _0x11b28e=this[_0x28e0a4(0x1f0)][_0x28e0a4(0x1c7)](_0x1e4bfa[_0x28e0a4(0x1c5)]),_0x33309a=(_0x3921d4=this[_0x28e0a4(0x1d9)]())==null?void 0x0:_0x3921d4[_0x28e0a4(0x1d1)]();if(!_0x33309a)throw new Error('No\x20active\x20workbook\x20found.');const _0x292286=_0x11b28e[_0x28e0a4(0x1bd)](_0x33309a);if(!_0x292286)throw new Error(_0x28e0a4(0x1d7));_0x292286['stopFollowing']();}['startPresenting'](){const _0x16d640=_0x572824;var _0xfb0add;const _0x3351f2=this[_0x16d640(0x1f0)]['get'](_0x1e4bfa[_0x16d640(0x1c5)]),_0x93c491=(_0xfb0add=this['getActiveWorkbook']())==null?void 0x0:_0xfb0add[_0x16d640(0x1d1)]();if(!_0x93c491)throw new Error(_0x16d640(0x1c8));const _0x49fa3c=_0x3351f2[_0x16d640(0x1bd)](_0x93c491);if(!_0x49fa3c)throw new Error(_0x16d640(0x1d7));_0x49fa3c['tryStartPresenting']();}[_0x572824(0x1cc)](){const _0x279fe4=_0x572824;var _0x241827;const _0x187d83=this[_0x279fe4(0x1f0)][_0x279fe4(0x1c7)](_0x1e4bfa[_0x279fe4(0x1c5)]),_0x555b4e=(_0x241827=this[_0x279fe4(0x1d9)]())==null?void 0x0:_0x241827[_0x279fe4(0x1d1)]();if(!_0x555b4e)throw new Error(_0x279fe4(0x1c8));const _0x1a8225=_0x187d83[_0x279fe4(0x1bd)](_0x555b4e);if(!_0x1a8225)throw new Error(_0x279fe4(0x1d7));_0x1a8225[_0x279fe4(0x1cc)]();}}_0x2e0aeb[_0x572824(0x1e8)][_0x572824(0x1e4)](_0x48ee95);class _0x2152a3 extends _0x2e0aeb[_0x572824(0x1ea)]{get[_0x572824(0x1e1)](){const _0x2d01c2=_0x572824;return _0x1e4bfa[_0x2d01c2(0x1c1)];}}_0x2e0aeb[_0x572824(0x1ea)][_0x572824(0x1e4)](_0x2152a3);}));function _0x7d11(){const _0x376d55=['LiveShareController','3GGHcIp','get','No\x20active\x20workbook\x20found.','syncExecuteCommand','@univerjs/sheets-ui','SetScrollOperation','stopPresenting','353656ZauyIF','getUnitId','7PVXuEF','UniverProLiveShare','getId','@univerjs/sheets/facade','UniverSheetsFacade','2041160NMDioH','675qzFfDG','getSheetId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_initialize','getActiveWorkbook','@univerjs/core/facade','2929152xvKOol','2fiYqrA','startFollowing','getLiveShareStatus','_commandService','IRenderManagerService','LiveShareStatusEnum','UniverEngineRender','function','extend','340888LFxZKs','835124onXyIA','PRESENTING','FUniver','@univerjs/sheets','FEnum','object','startRow','getStatus','startColumn','@univerjs-pro/live-share','_injector','UniverSheets','getLiveShareCoordinatorSync','FRange','executeCommand','getActiveSheet','LiveShareStatus','11392007eFJbaU','64750BZDxuR','stopFollowing'];_0x7d11=function(){return _0x376d55;};return _0x7d11();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x4eeb(){const _0x8e3d07=['substring','DisposableCollection','map','OPERATION','length','IDLE','UniverProCollaboration','defineProperty','xlink:href','@univerjs/sheets-ui','subscribe','NOT_FOLLOWING','_fetchOperations','offline','string','LIVESHARE_NEW_HOST','from','getUnitId','_handleNewChangeSets','UniverInstanceType','not-following','Present\x20this\x20document','univer-mb-3\x20univer-w-full\x20univer-text-sm','pipe','registerInitialStateReporter','parseProtocolChangeset','shouldShareOperation','Disposable','useRef','idSuffix','DesktopLiveShareController','@univerjs-pro/collaboration-client','LiveShare','unsubscribe','4421329foYroQ','UniverIcon','button','You\x27re\x20presenting\x20the\x20document','_status','InsertSheetMutation','presenter','getOwnPropertyDescriptor','76bpVoEM','getStatus','getTypeOfUnitDisposed$','LiveShareCoordinator','Button','includes','UniverCore','live-share-icon','194991akDldB','univer-size-4','reverse','jsxs','registerComponent','touchDependencies','@univerjs-pro/collaboration','stringify','PRESENTING','getInitialStates','_handleOperation','RxDisposable','238862coyoMj','You\x27are\x20offline.','UniverSheets','_reporters','registerSharedOperation','live-share.config','_init','operators','_univerInstanceService','text','BehaviorSubject','CollaborationEvent','UNIVER_LIVE_SHARE_PLUGIN','mutations','clsx','asObservable','send','Module','complete','SetWorksheetActiveOperation','amd','idle','attrs','OFFLINE','current','_configService','SetZoomRatioOperation','_handleOnline','assign','replace','forEach','useState','object','UniverCollaborationClientPlugin','path','FOLLOWING','_sharedOperations','_entities','symbol','add','currentColor','NEW_CHANGESETS','rxjs/operators','UniverDesign','mask','createElement','SessionStatus','_status$','@univerjs/design','http://www.w3.org/2000/svg','function','none','useEffect','has','_startFollowing','7OZPmPD','_handleNewHost','_startLiveShareCoordinator','toString','react','Injector','next','defs','parse','_injector','rxjs','Plugin','find','trim','Inject','1OSPQCC','params','type','873108IRkXAY','ONLINE','connectInjector','@univerjs/sheets','merge','Start','executeCommand','8SSZhAE','random','UniverSheetsUi','getCurrentTypeOfUnit$','getMemberID','useObservable','IUniverInstanceService','You\x27re\x20following\x20the\x20presenter','throttleTime','sessionStatus$','getLiveShareCoordinator','disposeWithMe','1em','DependentOn','_handleOffline','tag','stopPresenting','getTypeOfUnitAdded$','Fragment','UNIVER_UNKNOWN','_presenter','following','_collabSession','init','Stop\x20following','onRendered','createInstance','end','UniverProLiveShare','status$','SetScrollOperation','delete','get','use','values','getConfig','colorChannel1','_commandDisposable','dispose$','React','mergeOverrideWithDependencies','stopFollowing','presenting','UniverProCollaborationClient','UniverUi','UniverLiveSharePlugin','UNIVER_SHEET','_beIdle','evenodd','unitId','getLiveShareCoordinatorSync','_commandService','fill','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_handleTerminate','_uiPartsService','tryStartPresenting','6492465Gvhhos','_mountLiveShare','_collabSessionService','_startPresenting','_liveShareService','Dropdown','_unitID','LiveShareService','clear','LIVESHARE_REQUEST_HOST','div','setConfig','forwardRef','entries','@univerjs/core','children','10AIMMaA','LIVESHARE_FETCH_OPERATIONS','0\x200\x2017\x2017','data','Start\x20following','LiveShareController','override','pluginName','LiveShareStatus','3794015oEGRXC','_config','7964562WAFFcv','getValue','useDependency','toDisposable','dispose','default','_stopFollowing','takeUntil','jsx','HEADER_MENU','IConfigService','SAME_OPERATION_SHARE_INTERVAL','displayName','LIVESHARE_TERMINATE','set','1164hYUzYw','LIVESHARE_OPERATION'];_0x4eeb=function(){return _0x8e3d07;};return _0x4eeb();}function _0x9466(_0x24ef7d,_0x20bf8b){_0x24ef7d=_0x24ef7d-0x1b0;const _0x4eeb35=_0x4eeb();let _0x94668f=_0x4eeb35[_0x24ef7d];return _0x94668f;}(function(_0x539bc8,_0x4efac1){const _0x5ba5ee=_0x9466,_0x35733f=_0x539bc8();while(!![]){try{const _0x2023a5=-parseInt(_0x5ba5ee(0x1b2))/0x1*(parseInt(_0x5ba5ee(0x1b5))/0x2)+-parseInt(_0x5ba5ee(0x253))/0x3*(parseInt(_0x5ba5ee(0x24b))/0x4)+parseInt(_0x5ba5ee(0x20e))/0x5+parseInt(_0x5ba5ee(0x210))/0x6*(-parseInt(_0x5ba5ee(0x296))/0x7)+parseInt(_0x5ba5ee(0x1bc))/0x8*(parseInt(_0x5ba5ee(0x1f5))/0x9)+parseInt(_0x5ba5ee(0x205))/0xa*(parseInt(_0x5ba5ee(0x243))/0xb)+-parseInt(_0x5ba5ee(0x21f))/0xc*(-parseInt(_0x5ba5ee(0x25f))/0xd);if(_0x2023a5===_0x4efac1)break;else _0x35733f['push'](_0x35733f['shift']());}catch(_0x1ef597){_0x35733f['push'](_0x35733f['shift']());}}}(_0x4eeb,0xa2789),function(_0x21b15b,_0x441864){const _0x9d5a37=_0x9466;typeof exports==_0x9d5a37(0x27f)&&typeof module<'u'?_0x441864(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==_0x9d5a37(0x291)&&define[_0x9d5a37(0x273)]?define(['exports',_0x9d5a37(0x203),'@univerjs/ui','react/jsx-runtime',_0x9d5a37(0x28f),_0x9d5a37(0x29a),_0x9d5a37(0x259),_0x9d5a37(0x240),_0x9d5a37(0x1b8),_0x9d5a37(0x2a0),_0x9d5a37(0x289),_0x9d5a37(0x22a)],_0x441864):(_0x21b15b=typeof globalThis<'u'?globalThis:_0x21b15b||self,_0x441864(_0x21b15b[_0x9d5a37(0x1d8)]={},_0x21b15b[_0x9d5a37(0x251)],_0x21b15b[_0x9d5a37(0x1e8)],_0x21b15b[_0x9d5a37(0x1e3)],_0x21b15b[_0x9d5a37(0x28a)],_0x21b15b[_0x9d5a37(0x1e3)],_0x21b15b[_0x9d5a37(0x227)],_0x21b15b[_0x9d5a37(0x1e7)],_0x21b15b[_0x9d5a37(0x261)],_0x21b15b[_0x9d5a37(0x2a0)],_0x21b15b[_0x9d5a37(0x2a0)][_0x9d5a37(0x266)],_0x21b15b[_0x9d5a37(0x1be)]));}(this,function(_0x1b7f31,_0x1d89bd,_0x522fca,_0x49a6a2,_0x1cc4fc,_0x4ec959,_0x1c2e2c,_0x1c0277,_0x2de1a3,_0x2f9214,_0x612458,_0x513987){'use strict';const _0x4082bc=_0x9466;var _0x4ba8e9=Object[_0x4082bc(0x228)],_0x222177=(_0x43cbfe,_0x575528,_0x2d296c)=>_0x575528 in _0x43cbfe?_0x4ba8e9(_0x43cbfe,_0x575528,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d296c}):_0x43cbfe[_0x575528]=_0x2d296c,_0x264440=(_0x5d6f6a,_0x42231b,_0x295176)=>_0x222177(_0x5d6f6a,typeof _0x42231b!=_0x4082bc(0x285)?_0x42231b+'':_0x42231b,_0x295176);function _0x28b166({ref:_0x40d37d,..._0x20dd9b}){const _0x234504=_0x4082bc,{icon:_0x52e161,id:_0xe50e33,className:_0x1a64ab,extend:_0x238bba,..._0x1c034a}=_0x20dd9b,_0x5776b6=('univerjs-icon\x20univerjs-icon-'+_0xe50e33+'\x20'+(_0x1a64ab||''))[_0x234504(0x1b0)](),_0x5cfbc4=_0x4ec959[_0x234504(0x23d)]('_'+_0x5f0b56());return _0x2bdf44(_0x52e161,''+_0xe50e33,{'defIds':_0x52e161['defIds'],'idSuffix':_0x5cfbc4[_0x234504(0x277)]},{'ref':_0x40d37d,'className':_0x5776b6,..._0x1c034a},_0x238bba);}function _0x2bdf44(_0x5439d0,_0x5869ee,_0x1894d7,_0x22ec7c,_0x1fb352){const _0x1dbd4a=_0x4082bc;return _0x4ec959[_0x1dbd4a(0x28c)](_0x5439d0[_0x1dbd4a(0x1cb)],{'key':_0x5869ee,..._0x5bda3b(_0x5439d0,_0x1894d7,_0x1fb352),..._0x22ec7c},(_0x34ff82(_0x5439d0,_0x1894d7)[_0x1dbd4a(0x204)]||[])['map']((_0x34f1e0,_0x28fca2)=>_0x2bdf44(_0x34f1e0,_0x5869ee+'-'+_0x5439d0[_0x1dbd4a(0x1cb)]+'-'+_0x28fca2,_0x1894d7,void 0x0,_0x1fb352)));}function _0x5bda3b(_0x2b72fc,_0x496061,_0x1da2ee){const _0x593428=_0x4082bc,_0x558a3e={..._0x2b72fc[_0x593428(0x275)]};_0x1da2ee!=null&&_0x1da2ee[_0x593428(0x1e0)]&&_0x558a3e['fill']===_0x593428(0x1e0)&&(_0x558a3e[_0x593428(0x1f0)]=_0x1da2ee[_0x593428(0x1e0)]),_0x2b72fc[_0x593428(0x1cb)]==='mask'&&_0x558a3e['id']&&(_0x558a3e['id']=_0x558a3e['id']+_0x496061[_0x593428(0x23e)]),Object[_0x593428(0x202)](_0x558a3e)[_0x593428(0x27d)](([_0x5aee9e,_0x465425])=>{const _0xe8744f=_0x593428;_0x5aee9e===_0xe8744f(0x28b)&&typeof _0x465425==_0xe8744f(0x22f)&&(_0x558a3e[_0x5aee9e]=_0x465425[_0xe8744f(0x27c)](/url\(#(.*)\)/,'url(#$1'+_0x496061[_0xe8744f(0x23e)]+')'));});const {defIds:_0x4d07b6}=_0x496061;return!_0x4d07b6||_0x4d07b6[_0x593428(0x225)]===0x0||(_0x2b72fc[_0x593428(0x1cb)]===_0x593428(0x1dd)&&_0x558a3e[_0x593428(0x229)]&&(_0x558a3e[_0x593428(0x229)]=_0x558a3e[_0x593428(0x229)]+_0x496061[_0x593428(0x23e)]),Object[_0x593428(0x202)](_0x558a3e)[_0x593428(0x27d)](([_0x549424,_0x26d30a])=>{const _0x1c6f33=_0x593428;typeof _0x26d30a=='string'&&(_0x558a3e[_0x549424]=_0x26d30a[_0x1c6f33(0x27c)](/url\(#(.*)\)/,'url(#$1'+_0x496061['idSuffix']+')'));})),_0x558a3e;}function _0x34ff82(_0x439d41,_0x4a719d){const _0x2af4d5=_0x4082bc;var _0x5911c6;const {defIds:_0x450b50}=_0x4a719d;return!_0x450b50||_0x450b50[_0x2af4d5(0x225)]===0x0?_0x439d41:_0x439d41['tag']===_0x2af4d5(0x29d)&&((_0x5911c6=_0x439d41[_0x2af4d5(0x204)])!=null&&_0x5911c6[_0x2af4d5(0x225)])?{..._0x439d41,'children':_0x439d41['children'][_0x2af4d5(0x223)](_0x590f84=>typeof _0x590f84[_0x2af4d5(0x275)]['id']=='string'&&_0x450b50&&_0x450b50['includes'](_0x590f84[_0x2af4d5(0x275)]['id'])?{..._0x590f84,'attrs':{..._0x590f84[_0x2af4d5(0x275)],'id':_0x590f84[_0x2af4d5(0x275)]['id']+_0x4a719d['idSuffix']}}:_0x590f84)}:_0x439d41;}function _0x5f0b56(){const _0x2a3f4c=_0x4082bc;return Math[_0x2a3f4c(0x1bd)]()[_0x2a3f4c(0x299)](0x24)[_0x2a3f4c(0x221)](0x2,0x8);}_0x28b166[_0x4082bc(0x21c)]=_0x4082bc(0x244);const _0x2bab71={'tag':'svg','attrs':{'xmlns':_0x4082bc(0x290),'fill':_0x4082bc(0x292),'viewBox':_0x4082bc(0x207),'width':_0x4082bc(0x1c8),'height':_0x4082bc(0x1c8)},'children':[{'tag':'path','attrs':{'fill':_0x4082bc(0x287),'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':_0x4082bc(0x281),'attrs':{'fill':_0x4082bc(0x287),'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':_0x4082bc(0x1ec),'clipRule':'evenodd'}}]},_0x46ac41=_0x4ec959[_0x4082bc(0x201)](function(_0x3d84e6,_0x5b9aa8){const _0x29f424=_0x4082bc;return _0x4ec959[_0x29f424(0x28c)](_0x28b166,Object[_0x29f424(0x27b)]({},_0x3d84e6,{'id':_0x29f424(0x252),'ref':_0x5b9aa8,'icon':_0x2bab71}));});_0x46ac41[_0x4082bc(0x21c)]='LiveShareIcon';class _0x52e43b extends _0x1d89bd['Disposable']{constructor(){const _0x51e330=_0x4082bc;super(...arguments),_0x264440(this,'_sharedOperations',new Set()),_0x264440(this,_0x51e330(0x262),new Set());}[_0x4082bc(0x263)](_0x53a236){const _0x2c34f9=_0x4082bc;return this[_0x2c34f9(0x283)][_0x2c34f9(0x286)](_0x53a236),_0x1d89bd['toDisposable'](()=>this[_0x2c34f9(0x283)][_0x2c34f9(0x1db)](_0x53a236));}[_0x4082bc(0x239)](_0xc02853){const _0xfe0cc3=_0x4082bc;return this['_reporters'][_0xfe0cc3(0x286)](_0xc02853),_0x1d89bd[_0xfe0cc3(0x213)](()=>this['_reporters'][_0xfe0cc3(0x1db)](_0xc02853));}[_0x4082bc(0x23b)](_0x254db0){const _0x44bc18=_0x4082bc;return this[_0x44bc18(0x283)][_0x44bc18(0x294)](_0x254db0);}['getInitialStates'](_0x303b21){const _0x323d8f=_0x4082bc;return Array[_0x323d8f(0x231)](this[_0x323d8f(0x262)])['map'](_0x562ba0=>_0x562ba0(_0x303b21));}}var _0x3b12d9=Object['getOwnPropertyDescriptor'],_0x5bf3d4=(_0x53a60c,_0x555f0a,_0x322b78,_0x2e60e4)=>{for(var _0x5a71ee=_0x2e60e4>0x1?void 0x0:_0x2e60e4?_0x3b12d9(_0x555f0a,_0x322b78):_0x555f0a,_0x28eb9d=_0x53a60c['length']-0x1,_0x5e383f;_0x28eb9d>=0x0;_0x28eb9d--)(_0x5e383f=_0x53a60c[_0x28eb9d])&&(_0x5a71ee=_0x5e383f(_0x5a71ee)||_0x5a71ee);return _0x5a71ee;},_0x4529da=(_0x494aaa,_0x1af81e)=>(_0x497ca5,_0x38e488)=>_0x1af81e(_0x497ca5,_0x38e488,_0x494aaa);_0x1b7f31['LiveShareController']=class extends _0x1d89bd[_0x4082bc(0x25e)]{constructor(_0x507618,_0x42d5fd,_0x43e31c){const _0x3145ee=_0x4082bc;super(),_0x264440(this,'_entities',new Map()),(this['_univerInstanceService']=_0x507618,this[_0x3145ee(0x29f)]=_0x42d5fd,this[_0x3145ee(0x1f7)]=_0x43e31c,this[_0x3145ee(0x265)]());}async[_0x4082bc(0x1c6)](_0xe4ba09){const _0x384dcb=_0x4082bc;return this[_0x384dcb(0x284)][_0x384dcb(0x294)](_0xe4ba09)||await this['_startLiveShareCoordinator'](_0xe4ba09),this[_0x384dcb(0x284)][_0x384dcb(0x1dc)](_0xe4ba09);}[_0x4082bc(0x1ee)](_0x55b13c){const _0x2755fb=_0x4082bc;var _0x125d45;return(_0x125d45=this[_0x2755fb(0x284)]['get'](_0x55b13c))!=null?_0x125d45:null;}['_init'](){const _0x480056=_0x4082bc;this[_0x480056(0x267)][_0x480056(0x1cd)](_0x1d89bd[_0x480056(0x234)][_0x480056(0x1ea)])[_0x480056(0x238)](_0x612458[_0x480056(0x217)](this['dispose$']))['subscribe'](async _0x40a48a=>{const _0x47e6b5=_0x480056,_0x46d600=_0x40a48a[_0x47e6b5(0x232)]();this[_0x47e6b5(0x284)][_0x47e6b5(0x294)](_0x46d600)||this[_0x47e6b5(0x298)](_0x46d600);}),this[_0x480056(0x267)][_0x480056(0x24d)](_0x1d89bd['UniverInstanceType'][_0x480056(0x1ea)])['pipe'](_0x612458[_0x480056(0x217)](this['dispose$']))[_0x480056(0x22b)](_0x1cd968=>{const _0x27975d=_0x480056,_0x2b3792=_0x1cd968[_0x27975d(0x232)](),_0x5c3534=this['_entities'][_0x27975d(0x1dc)](_0x2b3792);_0x5c3534==null||_0x5c3534[_0x27975d(0x214)]();});}async[_0x4082bc(0x298)](_0x58e70c){const _0x284e91=_0x4082bc,_0x5c362f=await this[_0x284e91(0x1f7)]['requireSession'](_0x58e70c),_0x545687=this['_injector'][_0x284e91(0x1d6)](_0x1b7f31['LiveShareCoordinator'],_0x58e70c,_0x5c362f);return _0x545687[_0x284e91(0x1d3)](),this[_0x284e91(0x284)][_0x284e91(0x21e)](_0x58e70c,_0x545687),_0x545687;}},_0x1b7f31[_0x4082bc(0x20a)]=_0x5bf3d4([_0x4529da(0x0,_0x1d89bd[_0x4082bc(0x1c2)]),_0x4529da(0x1,_0x1d89bd['Inject'](_0x1d89bd[_0x4082bc(0x29b)])),_0x4529da(0x2,_0x1d89bd['Inject'](_0x1c0277['CollaborationSessionService']))],_0x1b7f31[_0x4082bc(0x20a)]);var _0x1ea7a1=(_0x444fc0=>(_0x444fc0[_0x4082bc(0x276)]=_0x4082bc(0x22e),_0x444fc0[_0x4082bc(0x226)]='idle',_0x444fc0['FOLLOWING']=_0x4082bc(0x1d1),_0x444fc0[_0x4082bc(0x22c)]=_0x4082bc(0x235),_0x444fc0[_0x4082bc(0x25b)]=_0x4082bc(0x1e6),_0x444fc0))(_0x1ea7a1||{});const _0x2dc144=_0x4082bc(0x21b),_0x5b96e3=0xc8;_0x1b7f31[_0x4082bc(0x24e)]=class extends _0x1d89bd['RxDisposable']{constructor(_0x497fc6,_0xd59201,_0xfc76b2,_0x2ab34a,_0x29f69c){const _0x278f7b=_0x4082bc;super(),_0x264440(this,_0x278f7b(0x28e),new _0x2f9214[(_0x278f7b(0x269))](_0x278f7b(0x274))),_0x264440(this,_0x278f7b(0x1d9),this['_status$'][_0x278f7b(0x26e)]()),_0x264440(this,_0x278f7b(0x265),!0x1),_0x264440(this,_0x278f7b(0x1e1),null),_0x264440(this,_0x278f7b(0x1d0),null),(this[_0x278f7b(0x1fb)]=_0x497fc6,this[_0x278f7b(0x1d2)]=_0xd59201,this['_configService']=_0xfc76b2,this[_0x278f7b(0x1f9)]=_0x2ab34a,this[_0x278f7b(0x1ef)]=_0x29f69c);}get[_0x4082bc(0x247)](){const _0xb9c8a1=_0x4082bc;return this['_status$'][_0xb9c8a1(0x211)]();}['dispose'](){const _0xd5872b=_0x4082bc;var _0x528c92;(_0x528c92=this[_0xd5872b(0x1e1)])==null||_0x528c92[_0xd5872b(0x214)](),this['_status$'][_0xd5872b(0x29c)](_0xd5872b(0x274)),this[_0xd5872b(0x28e)][_0xd5872b(0x271)]();}[_0x4082bc(0x24c)](){const _0x3e3015=_0x4082bc;return this[_0x3e3015(0x247)];}[_0x4082bc(0x1d3)](){const _0xc5e25a=_0x4082bc;this['_init']||(this[_0xc5e25a(0x265)]=!0x0,this[_0xc5e25a(0x1d2)][_0xc5e25a(0x1c5)][_0xc5e25a(0x238)](_0x612458['takeUntil'](this[_0xc5e25a(0x1e2)]))[_0xc5e25a(0x22b)](_0x5e46c8=>{const _0x52f416=_0xc5e25a;switch(_0x5e46c8){case _0x1c0277[_0x52f416(0x28d)][_0x52f416(0x276)]:this[_0x52f416(0x1ca)]();break;case _0x1c0277[_0x52f416(0x28d)][_0x52f416(0x1b6)]:this['_handleOnline']();break;}}),this[_0xc5e25a(0x1d2)]['event$'][_0xc5e25a(0x238)](_0x612458[_0xc5e25a(0x217)](this[_0xc5e25a(0x1e2)]))['subscribe'](_0x1916bf=>{const _0x1b4acd=_0xc5e25a,{eventID:_0x28df5f}=_0x1916bf;switch(_0x28df5f){case _0x1c2e2c[_0x1b4acd(0x26a)][_0x1b4acd(0x230)]:this[_0x1b4acd(0x297)](_0x1916bf);break;case _0x1c2e2c[_0x1b4acd(0x26a)]['LIVESHARE_OPERATION']:this[_0x1b4acd(0x25d)](_0x1916bf);break;case _0x1c2e2c[_0x1b4acd(0x26a)][_0x1b4acd(0x21d)]:this[_0x1b4acd(0x1f2)]();break;case _0x1c2e2c[_0x1b4acd(0x26a)][_0x1b4acd(0x288)]:this[_0x1b4acd(0x233)](_0x1916bf);break;}}));}[_0x4082bc(0x1f4)](){const _0x54e909=_0x4082bc;this[_0x54e909(0x1d2)]['send']({'eventID':_0x1c2e2c[_0x54e909(0x26a)][_0x54e909(0x1fe)],'data':{'unitID':this[_0x54e909(0x1fb)],'userID':this[_0x54e909(0x1d2)][_0x54e909(0x1c0)]()}},this[_0x54e909(0x1fb)]);}[_0x4082bc(0x1cc)](){const _0x456a19=_0x4082bc;this[_0x456a19(0x247)]===_0x456a19(0x1e6)&&(this['_status$'][_0x456a19(0x29c)](_0x456a19(0x274)),this['_collabSession']['send']({'eventID':_0x1c2e2c[_0x456a19(0x26a)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x456a19(0x1fb)]}},this[_0x456a19(0x1fb)]));}['startFollowing'](){const _0x5c8c54=_0x4082bc;this['_status']===_0x5c8c54(0x235)&&(this['_status$']['next'](_0x5c8c54(0x1d1)),this['_startFollowing']());}[_0x4082bc(0x1e5)](){const _0x517308=_0x4082bc;this['_status']===_0x517308(0x1d1)&&this[_0x517308(0x216)]();}[_0x4082bc(0x297)](_0x36fa22){const _0x99a665=_0x4082bc,{presenter:_0x35b315}=_0x36fa22[_0x99a665(0x208)],_0x3a209d=this['_collabSession'][_0x99a665(0x1c0)]();this[_0x99a665(0x1d0)]=_0x35b315,_0x35b315===_0x3a209d?(this[_0x99a665(0x216)](),this['_startPresenting']()):this['_status']!==_0x99a665(0x235)&&(this['_stopPresenting'](),this[_0x99a665(0x295)]());}[_0x4082bc(0x22d)](){const _0x2c0712=_0x4082bc,_0x15699b={'eventID':_0x1c2e2c[_0x2c0712(0x26a)][_0x2c0712(0x206)]};this[_0x2c0712(0x1d2)]['send'](_0x15699b,this[_0x2c0712(0x1fb)]);}[_0x4082bc(0x1f2)](){const _0x265724=_0x4082bc;this[_0x265724(0x1d0)]=null,this[_0x265724(0x247)]!=='presenting'&&this[_0x265724(0x1eb)]();}['_handleNewChangeSets'](_0x1d7ea9){const _0x18029d=_0x4082bc;if(this['_status']===_0x18029d(0x1d1)&&this[_0x18029d(0x1d0)]===_0x1d7ea9['data']['memberID']){const _0x4b7a58=_0x1c2e2c[_0x18029d(0x23a)](_0x1d7ea9['data'])[_0x18029d(0x26c)][_0x18029d(0x255)]()[_0x18029d(0x2a2)](_0x471b90=>_0x471b90['id']===_0x2de1a3[_0x18029d(0x248)]['id']);if(_0x4b7a58){const _0x2c856d=_0x4b7a58[_0x18029d(0x1b3)][_0x18029d(0x1ed)],_0x53176c=_0x4b7a58[_0x18029d(0x1b3)]['sheet']['id'];setTimeout(()=>{const _0x136b15=_0x18029d;this[_0x136b15(0x1ef)][_0x136b15(0x1bb)](_0x2de1a3[_0x136b15(0x272)]['id'],{'unitId':_0x2c856d,'subUnitId':_0x53176c},{'fromCollab':!0x0});});}}}[_0x4082bc(0x1f8)](){const _0x4e81a7=_0x4082bc;this[_0x4e81a7(0x28e)][_0x4e81a7(0x29c)](_0x4e81a7(0x1e6));const _0x23343c=new Map(),_0x1761b3=this[_0x4e81a7(0x1e1)]=new _0x1d89bd[(_0x4e81a7(0x222))]();_0x1761b3[_0x4e81a7(0x286)](_0x1d89bd[_0x4e81a7(0x213)](()=>{const _0x409684=_0x4e81a7;_0x23343c[_0x409684(0x27d)](_0x48fd1a=>_0x48fd1a[_0x409684(0x271)]()),_0x23343c[_0x409684(0x1fd)]();})),_0x1761b3['add'](this['_commandService']['onCommandExecuted'](_0x45ef91=>{const _0x5df0c0=_0x4e81a7;var _0xad815a;if(_0x45ef91[_0x5df0c0(0x1b4)]!==_0x1d89bd['CommandType'][_0x5df0c0(0x224)]||!this[_0x5df0c0(0x1f9)][_0x5df0c0(0x23b)](_0x45ef91['id']))return;const {id:_0x45e941}=_0x45ef91;let _0x2c1aa8;_0x23343c[_0x5df0c0(0x294)](_0x45e941)?_0x2c1aa8=_0x23343c[_0x5df0c0(0x1dc)](_0x45e941):(_0x2c1aa8=new _0x2f9214['Subject'](),_0x23343c[_0x5df0c0(0x21e)](_0x45e941,_0x2c1aa8),_0x2c1aa8[_0x5df0c0(0x238)](_0x612458[_0x5df0c0(0x1c4)]((_0xad815a=this['_configService'][_0x5df0c0(0x1df)](_0x2dc144))!=null?_0xad815a:_0x5b96e3,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5df0c0(0x22b)](_0x24f8a3=>{const _0x101e3b=_0x5df0c0;this[_0x101e3b(0x1d2)][_0x101e3b(0x26f)]({'eventID':_0x1c2e2c[_0x101e3b(0x26a)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x101e3b(0x1fb)],'operations':{[_0x24f8a3['id']]:{'id':_0x24f8a3['id'],'params':JSON[_0x101e3b(0x25a)](_0x24f8a3['params'])}}}},this[_0x101e3b(0x1fb)]);})),_0x2c1aa8[_0x5df0c0(0x29c)](_0x45ef91);})),this[_0x4e81a7(0x1f9)][_0x4e81a7(0x25c)](this[_0x4e81a7(0x1fb)])[_0x4e81a7(0x27d)](_0x102d1b=>this[_0x4e81a7(0x1d2)][_0x4e81a7(0x26f)]({'eventID':_0x1c2e2c['CollaborationEvent'][_0x4e81a7(0x220)],'data':{'unitID':this[_0x4e81a7(0x1fb)],'operations':{[_0x102d1b['id']]:{'id':_0x102d1b['id'],'params':JSON[_0x4e81a7(0x25a)](_0x102d1b['params'])}}}},this[_0x4e81a7(0x1fb)]));}['_stopPresenting'](){const _0x62da4=_0x4082bc;var _0x3de3e4;this[_0x62da4(0x28e)][_0x62da4(0x29c)](_0x62da4(0x274)),(_0x3de3e4=this[_0x62da4(0x1e1)])==null||_0x3de3e4[_0x62da4(0x214)](),this[_0x62da4(0x1e1)]=null;}[_0x4082bc(0x295)](){const _0x5bf827=_0x4082bc;var _0x537d49;(_0x537d49=this[_0x5bf827(0x1e1)])==null||_0x537d49['dispose'](),this[_0x5bf827(0x28e)][_0x5bf827(0x29c)]('following');}[_0x4082bc(0x1eb)](){const _0x110b23=_0x4082bc;var _0x188f99;this[_0x110b23(0x28e)]['next'](_0x110b23(0x274)),(_0x188f99=this[_0x110b23(0x1e1)])==null||_0x188f99[_0x110b23(0x214)](),this['_commandDisposable']=null;}[_0x4082bc(0x216)](){const _0x464f00=_0x4082bc;var _0x3f3f3d;this[_0x464f00(0x28e)][_0x464f00(0x29c)](_0x464f00(0x235)),(_0x3f3f3d=this[_0x464f00(0x1e1)])==null||_0x3f3f3d['dispose']();}[_0x4082bc(0x25d)](_0x18e589){const _0x1831d1=_0x4082bc;if(['presenting',_0x1831d1(0x235),_0x1831d1(0x22e)][_0x1831d1(0x250)](this[_0x1831d1(0x247)])||!_0x18e589[_0x1831d1(0x208)]['presenter']||_0x18e589[_0x1831d1(0x208)][_0x1831d1(0x249)]===this[_0x1831d1(0x1d2)][_0x1831d1(0x1c0)]())return;this['_status']===_0x1831d1(0x274)&&this['_startFollowing']();const _0x4203b1=_0x18e589['data']['operations'];Object[_0x1831d1(0x1de)](_0x4203b1)[_0x1831d1(0x27d)](_0x54e7fd=>{const _0x397a65=_0x1831d1;this['_commandService'][_0x397a65(0x1bb)](_0x54e7fd['id'],_0x54e7fd[_0x397a65(0x1b3)]?JSON[_0x397a65(0x29e)](_0x54e7fd[_0x397a65(0x1b3)]):null,{'fromCollab':!0x0});});}[_0x4082bc(0x1ca)](){const _0x19bdca=_0x4082bc;var _0x3bd6c4;this['_status$'][_0x19bdca(0x29c)]('offline'),(_0x3bd6c4=this[_0x19bdca(0x1e1)])==null||_0x3bd6c4[_0x19bdca(0x214)]();}[_0x4082bc(0x27a)](){const _0x47709f=_0x4082bc;this[_0x47709f(0x28e)][_0x47709f(0x29c)]('idle'),this['_fetchOperations']();}},_0x1b7f31[_0x4082bc(0x24e)]=_0x5bf3d4([_0x4529da(0x2,_0x1d89bd[_0x4082bc(0x21a)]),_0x4529da(0x3,_0x1d89bd[_0x4082bc(0x1b1)](_0x52e43b)),_0x4529da(0x4,_0x1d89bd['ICommandService'])],_0x1b7f31[_0x4082bc(0x24e)]);function _0x5da910(){const _0x366da5=_0x4082bc,_0x2b34eb=_0x522fca[_0x366da5(0x212)](_0x1b7f31['LiveShareController']),_0x210911=_0x522fca[_0x366da5(0x212)](_0x1d89bd[_0x366da5(0x1c2)]),_0x553f22=_0x522fca[_0x366da5(0x1c1)](()=>_0x210911[_0x366da5(0x1bf)](_0x1d89bd[_0x366da5(0x234)][_0x366da5(0x1ea)]),void 0x0,!0x1,[]),[_0x28fdad,_0x3e388c]=_0x4ec959[_0x366da5(0x27e)](null),[_0x54a385,_0x33315d]=_0x4ec959['useState'](_0x1ea7a1[_0x366da5(0x226)]),_0x22ef4e=_0x4ec959[_0x366da5(0x23d)](null);return _0x4ec959[_0x366da5(0x293)](()=>(_0x553f22&&_0x2b34eb[_0x366da5(0x1c6)](_0x553f22['getUnitId']())['then'](_0x7d6366=>{const _0x52ac8a=_0x366da5;_0x3e388c(_0x7d6366),_0x22ef4e[_0x52ac8a(0x277)]=_0x7d6366[_0x52ac8a(0x1d9)]['subscribe'](_0x2d5166=>{_0x33315d(_0x2d5166);});}),()=>{const _0x59a528=_0x366da5;var _0x303d83;(_0x303d83=_0x22ef4e['current'])==null||_0x303d83[_0x59a528(0x242)](),_0x22ef4e['current']=null;}),[_0x553f22,_0x2b34eb]),_0x28fdad?_0x49a6a2['jsx'](_0x1cc4fc[_0x366da5(0x1fa)],{'align':_0x366da5(0x1d7),'disabled':_0x54a385===_0x1ea7a1[_0x366da5(0x276)],'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':_0x49a6a2['jsx'](_0x2a1f00,{'status':_0x54a385,'coordinator':_0x28fdad}),'children':_0x49a6a2[_0x366da5(0x218)](_0x366da5(0x245),{'className':_0x1cc4fc[_0x366da5(0x26d)](_0x366da5(0x1f1),{'univer-cursor-not-allowed':_0x54a385===_0x1ea7a1['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x54a385!==_0x1ea7a1[_0x366da5(0x276)]}),'type':_0x366da5(0x245),'children':_0x49a6a2[_0x366da5(0x218)](_0x46ac41,{'className':_0x366da5(0x254)})})}):null;}function _0x2a1f00(_0x274cce){const _0x2535ae=_0x4082bc,{status:_0x34cfaf,coordinator:_0x2782c3}=_0x274cce;switch(_0x34cfaf){case _0x1ea7a1[_0x2535ae(0x226)]:return _0x49a6a2[_0x2535ae(0x218)](_0x22f64e,{'coordinator':_0x2782c3});case _0x1ea7a1[_0x2535ae(0x282)]:return _0x49a6a2['jsx'](_0x269dd2,{'coordinator':_0x2782c3});case _0x1ea7a1[_0x2535ae(0x22c)]:return _0x49a6a2[_0x2535ae(0x218)](_0x3ffcc3,{'coordinator':_0x2782c3});case _0x1ea7a1['OFFLINE']:return _0x49a6a2[_0x2535ae(0x218)](_0x3c0486,{});case _0x1ea7a1[_0x2535ae(0x25b)]:return _0x49a6a2[_0x2535ae(0x218)](_0x11807b,{'coordinator':_0x2782c3});default:return null;}}function _0x22f64e(_0x40e859){const _0x5ab1df=_0x4082bc,{coordinator:_0x1b16f5}=_0x40e859;return _0x49a6a2['jsxs'](_0x49a6a2['Fragment'],{'children':[_0x49a6a2[_0x5ab1df(0x218)](_0x5ab1df(0x1ff),{'className':_0x5ab1df(0x237),'children':_0x5ab1df(0x236)}),_0x49a6a2[_0x5ab1df(0x218)](_0x1cc4fc[_0x5ab1df(0x24f)],{'onClick':()=>_0x1b16f5[_0x5ab1df(0x1f4)](),'children':_0x5ab1df(0x1ba)})]});}function _0x269dd2(_0x304a7f){const _0x4e4188=_0x4082bc,{coordinator:_0x3992e9}=_0x304a7f;return _0x49a6a2[_0x4e4188(0x256)](_0x49a6a2['Fragment'],{'children':[_0x49a6a2['jsx'](_0x4e4188(0x1ff),{'className':_0x4e4188(0x237),'children':_0x4e4188(0x1c3)}),_0x49a6a2[_0x4e4188(0x218)](_0x1cc4fc['Button'],{'onClick':()=>_0x3992e9[_0x4e4188(0x1e5)](),'children':_0x4e4188(0x1d4)})]});}function _0x3ffcc3(_0x153f20){const _0x1d2414=_0x4082bc,{coordinator:_0x3eea45}=_0x153f20;return _0x49a6a2[_0x1d2414(0x256)](_0x49a6a2[_0x1d2414(0x1ce)],{'children':[_0x49a6a2[_0x1d2414(0x218)]('div',{'className':_0x1d2414(0x237),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x49a6a2[_0x1d2414(0x218)](_0x1cc4fc[_0x1d2414(0x24f)],{'variant':_0x1d2414(0x268),'onClick':()=>_0x3eea45['startFollowing'](),'children':_0x1d2414(0x209)})]});}function _0x11807b(_0x3d240b){const _0x5e5ff3=_0x4082bc,{coordinator:_0xfe7425}=_0x3d240b;return _0x49a6a2[_0x5e5ff3(0x256)](_0x49a6a2['Fragment'],{'children':[_0x49a6a2[_0x5e5ff3(0x218)](_0x5e5ff3(0x1ff),{'className':_0x5e5ff3(0x237),'children':_0x5e5ff3(0x246)}),_0x49a6a2[_0x5e5ff3(0x218)](_0x1cc4fc['Button'],{'variant':_0x5e5ff3(0x215),'onClick':()=>_0xfe7425[_0x5e5ff3(0x1cc)](),'children':'Stop\x20presenting'})]});}function _0x3c0486(){const _0x128f44=_0x4082bc;return _0x49a6a2[_0x128f44(0x218)](_0x49a6a2[_0x128f44(0x1ce)],{'children':_0x128f44(0x260)});}var _0x209a30=Object[_0x4082bc(0x24a)],_0x330dd9=(_0x3dfb11,_0x46c204,_0x94293f,_0x595b19)=>{const _0x273f70=_0x4082bc;for(var _0x2b36df=_0x595b19>0x1?void 0x0:_0x595b19?_0x209a30(_0x46c204,_0x94293f):_0x46c204,_0x13124b=_0x3dfb11[_0x273f70(0x225)]-0x1,_0x32131d;_0x13124b>=0x0;_0x13124b--)(_0x32131d=_0x3dfb11[_0x13124b])&&(_0x2b36df=_0x32131d(_0x2b36df)||_0x2b36df);return _0x2b36df;},_0x58e169=(_0x566cf9,_0x29dab3)=>(_0xbae49e,_0x34748d)=>_0x29dab3(_0xbae49e,_0x34748d,_0x566cf9);_0x1b7f31['DesktopLiveShareController']=class extends _0x1d89bd[_0x4082bc(0x23c)]{constructor(_0x89b4a4,_0x226012){const _0x294112=_0x4082bc;super(),this['_injector']=_0x89b4a4,this[_0x294112(0x1f3)]=_0x226012,this['_mountLiveShare']();}[_0x4082bc(0x1f6)](){const _0x2df672=_0x4082bc;this[_0x2df672(0x1c7)](this[_0x2df672(0x1f3)][_0x2df672(0x257)](_0x522fca['BuiltInUIPart'][_0x2df672(0x219)],()=>_0x522fca[_0x2df672(0x1b7)](_0x5da910,this[_0x2df672(0x29f)])));}},_0x1b7f31[_0x4082bc(0x23f)]=_0x330dd9([_0x58e169(0x0,_0x1d89bd[_0x4082bc(0x1b1)](_0x1d89bd[_0x4082bc(0x29b)])),_0x58e169(0x1,_0x522fca['IUIPartsService'])],_0x1b7f31['DesktopLiveShareController']);const _0x186f17=_0x4082bc(0x264),_0x2bee52={};var _0xd3a432=Object[_0x4082bc(0x24a)],_0x47f4f7=(_0x33443a,_0x5634ba,_0x25e6f3,_0x277242)=>{const _0x44d0ba=_0x4082bc;for(var _0xb580ca=_0x277242>0x1?void 0x0:_0x277242?_0xd3a432(_0x5634ba,_0x25e6f3):_0x5634ba,_0xcd2464=_0x33443a[_0x44d0ba(0x225)]-0x1,_0xf1479b;_0xcd2464>=0x0;_0xcd2464--)(_0xf1479b=_0x33443a[_0xcd2464])&&(_0xb580ca=_0xf1479b(_0xb580ca)||_0xb580ca);return _0xb580ca;},_0x1f8374=(_0x2c2669,_0x21fb6e)=>(_0x1f1081,_0x4fce36)=>_0x21fb6e(_0x1f1081,_0x4fce36,_0x2c2669);let _0x38bef9=class extends _0x1d89bd[_0x4082bc(0x23c)]{constructor(_0x5f1904){const _0x5d1997=_0x4082bc;super(),this[_0x5d1997(0x1f9)]=_0x5f1904,this['_init']();}[_0x4082bc(0x265)](){const _0x181ab6=_0x4082bc;[_0x513987[_0x181ab6(0x279)]['id'],_0x513987[_0x181ab6(0x1da)]['id'],_0x2de1a3[_0x181ab6(0x272)]['id']][_0x181ab6(0x27d)](_0x48c2f8=>{const _0x1be00a=_0x181ab6;this[_0x1be00a(0x1c7)](this['_liveShareService']['registerSharedOperation'](_0x48c2f8));});}};_0x38bef9=_0x47f4f7([_0x1f8374(0x0,_0x1d89bd[_0x4082bc(0x1b1)](_0x52e43b))],_0x38bef9);var _0xf0642f=Object[_0x4082bc(0x228)],_0x6976e3=Object['getOwnPropertyDescriptor'],_0x5ad3c8=(_0x350db9,_0x10b2e9,_0x7c185)=>_0x10b2e9 in _0x350db9?_0xf0642f(_0x350db9,_0x10b2e9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x7c185}):_0x350db9[_0x10b2e9]=_0x7c185,_0x308901=(_0x28cd3e,_0x566b8c,_0x4fce20,_0x3b9d20)=>{for(var _0x19afbe=_0x3b9d20>0x1?void 0x0:_0x3b9d20?_0x6976e3(_0x566b8c,_0x4fce20):_0x566b8c,_0x543852=_0x28cd3e['length']-0x1,_0x1b72a8;_0x543852>=0x0;_0x543852--)(_0x1b72a8=_0x28cd3e[_0x543852])&&(_0x19afbe=_0x1b72a8(_0x19afbe)||_0x19afbe);return _0x19afbe;},_0x35d6ad=(_0x25752e,_0x202e01)=>(_0x5c5d92,_0x80498)=>_0x202e01(_0x5c5d92,_0x80498,_0x25752e),_0x5e6f20=(_0x10fec8,_0xbd16d3,_0x20a609)=>_0x5ad3c8(_0x10fec8,typeof _0xbd16d3!=_0x4082bc(0x285)?_0xbd16d3+'':_0xbd16d3,_0x20a609);const _0x291965=_0x4082bc(0x26b);_0x1b7f31[_0x4082bc(0x1e9)]=class extends _0x1d89bd[_0x4082bc(0x2a1)]{constructor(_0xc80c2a=_0x2bee52,_0x2ba5a2,_0x364268){const _0x123dd6=_0x4082bc;super(),this[_0x123dd6(0x20f)]=_0xc80c2a,this[_0x123dd6(0x29f)]=_0x2ba5a2,this[_0x123dd6(0x278)]=_0x364268;const {..._0x236713}=_0x1d89bd[_0x123dd6(0x1b9)]({},_0x2bee52,this[_0x123dd6(0x20f)]);this[_0x123dd6(0x278)][_0x123dd6(0x200)](_0x186f17,_0x236713);}['onStarting'](){const _0x3ed0bf=_0x4082bc;_0x1d89bd['registerDependencies'](this[_0x3ed0bf(0x29f)],_0x1d89bd[_0x3ed0bf(0x1e4)]([[_0x52e43b],[_0x1b7f31['LiveShareController']],[_0x38bef9],[_0x1b7f31[_0x3ed0bf(0x23f)]]],this[_0x3ed0bf(0x20f)][_0x3ed0bf(0x20b)])),_0x1d89bd['touchDependencies'](this[_0x3ed0bf(0x29f)],[[_0x38bef9]]);}[_0x4082bc(0x1d5)](){const _0x4351e2=_0x4082bc;_0x1d89bd[_0x4351e2(0x258)](this[_0x4351e2(0x29f)],[[_0x1b7f31[_0x4351e2(0x23f)]]]);}},_0x5e6f20(_0x1b7f31[_0x4082bc(0x1e9)],_0x4082bc(0x1b4),_0x1d89bd['UniverInstanceType'][_0x4082bc(0x1cf)]),_0x5e6f20(_0x1b7f31[_0x4082bc(0x1e9)],_0x4082bc(0x20c),_0x291965),_0x1b7f31[_0x4082bc(0x1e9)]=_0x308901([_0x1d89bd[_0x4082bc(0x1c9)](_0x1c0277[_0x4082bc(0x280)]),_0x35d6ad(0x1,_0x1d89bd[_0x4082bc(0x1b1)](_0x1d89bd[_0x4082bc(0x29b)])),_0x35d6ad(0x2,_0x1d89bd[_0x4082bc(0x21a)])],_0x1b7f31[_0x4082bc(0x1e9)]),_0x1b7f31[_0x4082bc(0x241)]=_0x5da910,_0x1b7f31[_0x4082bc(0x1fc)]=_0x52e43b,_0x1b7f31[_0x4082bc(0x20d)]=_0x1ea7a1,Object['defineProperty'](_0x1b7f31,Symbol['toStringTag'],{'value':_0x4082bc(0x270)});}));
|
|
1
|
+
function _0x2fd4(){const _0x53532b=['function','length','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverInstanceType','live-share.config','displayName','UniverIcon','UNIVER_SHEET','path','_reporters','Disposable','children','div','entries','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','IDLE','rxjs','29117mExzwn','find','IUIPartsService','_stopPresenting','operators','unsubscribe','idSuffix','0\x200\x2017\x2017','useObservable','send','_handleOperation','get','_status$','OFFLINE','LiveShareCoordinator','getMemberID','colorChannel1','_sharedOperations','disposeWithMe','url(#$1','_handleOffline','trim','You\x27re\x20presenting\x20the\x20document','react','reverse','registerSharedOperation','forwardRef','_handleNewChangeSets','Start\x20following','Start','toDisposable','Injector','SAME_OPERATION_SHARE_INTERVAL','presenter','_startPresenting','4440884Rlhyjv','forEach','type','next','LiveShareController','UNIVER_UNKNOWN','_configService','LIVESHARE_OPERATION','currentColor','getTypeOfUnitAdded$','jsxs','UniverProCollaborationClient','idle','createElement','PRESENTING','mask','fill','getOwnPropertyDescriptor','substring','6069760QexWPt','CollaborationSessionService','@univerjs-pro/collaboration-client','getConfig','CollaborationEvent','UNIVER_LIVE_SHARE_PLUGIN','LiveShareService','takeUntil','stringify','getValue','connectInjector','Stop\x20following','getUnitId','getLiveShareCoordinator','_uiPartsService','toStringTag','data','UniverUi','has','map','useRef','UniverSheetsUi','values','LIVESHARE_FETCH_OPERATIONS','following','defineProperty','SetZoomRatioOperation','rxjs/operators','executeCommand','_status','DesktopLiveShareController','_fetchOperations','UniverDesign','You\x27are\x20offline.','onRendered','4370049trPNPf','@univerjs/design','getInitialStates','useDependency','dispose','React','SetWorksheetActiveOperation','_config','requireSession','offline','amd','touchDependencies','sheet','presenting','includes','getLiveShareCoordinatorSync','then','attrs','_collabSessionService','assign','Inject','object','InsertSheetMutation','You\x27re\x20not\x20following\x20the\x20presenter','_startLiveShareCoordinator','shouldShareOperation','evenodd','@univerjs/ui','delete','_collabSession','UniverProCollaboration','_handleNewHost','operations','_startFollowing','live-share-icon','6741102mUSvop','3614520OZInHm','Present\x20this\x20document','complete','clsx','tryStartPresenting','override','current','parseProtocolChangeset','merge','string','defs','Fragment','BehaviorSubject','_stopFollowing','IUniverInstanceService','_presenter','use','params','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','dispose$','FOLLOWING','add','useState','clear','_injector','_univerInstanceService','pluginName','_handleTerminate','exports','jsx','UniverCollaborationClientPlugin','set','init','pipe','_liveShareService','NOT_FOLLOWING','default','SessionStatus','random','subscribe','_commandDisposable','LiveShare','LiveShareIcon','univer-size-4','createInstance','asObservable','_entities','status$','_init','_beIdle','181212WPHlOE','replace','xlink:href','UniverCore','useEffect','text','LIVESHARE_TERMINATE','1em','throttleTime','UniverSheets','registerComponent','_commandService','getStatus','not-following','DisposableCollection','7ECNhVb','ICommandService','getCurrentTypeOfUnit$','toString','ONLINE','_unitID','tag','stopPresenting','onStarting','symbol','Button','event$','@univerjs/sheets','RxDisposable','onCommandExecuted','from','_handleOnline','@univerjs/sheets-ui','stopFollowing','button','Subject','UniverLiveSharePlugin','IConfigService'];_0x2fd4=function(){return _0x53532b;};return _0x2fd4();}function _0x22a4(_0x4c5cff,_0x596007){_0x4c5cff=_0x4c5cff-0x111;const _0x2fd41e=_0x2fd4();let _0x22a4bf=_0x2fd41e[_0x4c5cff];return _0x22a4bf;}(function(_0x57b548,_0x286201){const _0x43cfd7=_0x22a4,_0x27f359=_0x57b548();while(!![]){try{const _0x10bc4b=-parseInt(_0x43cfd7(0x1bc))/0x1+parseInt(_0x43cfd7(0x185))/0x2+parseInt(_0x43cfd7(0x12f))/0x3+-parseInt(_0x43cfd7(0x1df))/0x4+-parseInt(_0x43cfd7(0x1f2))/0x5+parseInt(_0x43cfd7(0x152))/0x6*(parseInt(_0x43cfd7(0x194))/0x7)+parseInt(_0x43cfd7(0x153))/0x8;if(_0x10bc4b===_0x286201)break;else _0x27f359['push'](_0x27f359['shift']());}catch(_0x3b788a){_0x27f359['push'](_0x27f359['shift']());}}}(_0x2fd4,0xbbd33),function(_0x23b3a9,_0x500538){const _0x1c6577=_0x22a4;typeof exports==_0x1c6577(0x144)&&typeof module<'u'?_0x500538(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==_0x1c6577(0x1ab)&&define[_0x1c6577(0x139)]?define([_0x1c6577(0x16f),'@univerjs/core',_0x1c6577(0x14a),'react/jsx-runtime',_0x1c6577(0x130),_0x1c6577(0x1d3),'@univerjs-pro/collaboration',_0x1c6577(0x1f4),_0x1c6577(0x1a0),'rxjs',_0x1c6577(0x127),_0x1c6577(0x1a5)],_0x500538):(_0x23b3a9=typeof globalThis<'u'?globalThis:_0x23b3a9||self,_0x500538(_0x23b3a9['UniverProLiveShare']={},_0x23b3a9[_0x1c6577(0x188)],_0x23b3a9[_0x1c6577(0x11d)],_0x23b3a9[_0x1c6577(0x134)],_0x23b3a9[_0x1c6577(0x12c)],_0x23b3a9[_0x1c6577(0x134)],_0x23b3a9[_0x1c6577(0x14d)],_0x23b3a9[_0x1c6577(0x1ea)],_0x23b3a9[_0x1c6577(0x18e)],_0x23b3a9[_0x1c6577(0x1bb)],_0x23b3a9[_0x1c6577(0x1bb)][_0x1c6577(0x1c0)],_0x23b3a9[_0x1c6577(0x121)]));}(this,function(_0x39654e,_0x6a378b,_0x5780f1,_0x506a4e,_0x2ac1de,_0x2ba196,_0x3cff9b,_0x3afd91,_0x2cce30,_0x29ef30,_0x7a73a6,_0x5931b1){'use strict';const _0x283fd3=_0x22a4;var _0x23ab4c=Object['defineProperty'],_0x48fa3f=(_0x4d67f3,_0x55ccaa,_0x1ceb40)=>_0x55ccaa in _0x4d67f3?_0x23ab4c(_0x4d67f3,_0x55ccaa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ceb40}):_0x4d67f3[_0x55ccaa]=_0x1ceb40,_0x2932a5=(_0x3fbe05,_0x26f7bb,_0x9237a5)=>_0x48fa3f(_0x3fbe05,typeof _0x26f7bb!=_0x283fd3(0x19d)?_0x26f7bb+'':_0x26f7bb,_0x9237a5);function _0x24a981({ref:_0x2d0ec6,..._0x4dc9aa}){const _0x3c2b0c=_0x283fd3,{icon:_0x3c44f2,id:_0x324788,className:_0x34b2a1,extend:_0x52df0b,..._0x23e712}=_0x4dc9aa,_0x12cb2c=('univerjs-icon\x20univerjs-icon-'+_0x324788+'\x20'+(_0x34b2a1||''))[_0x3c2b0c(0x1d1)](),_0x303874=_0x2ba196[_0x3c2b0c(0x120)]('_'+_0x3e12b3());return _0xc6b95(_0x3c44f2,''+_0x324788,{'defIds':_0x3c44f2['defIds'],'idSuffix':_0x303874[_0x3c2b0c(0x159)]},{'ref':_0x2d0ec6,'className':_0x12cb2c,..._0x23e712},_0x52df0b);}function _0xc6b95(_0x12f528,_0x1b193e,_0x3cf4c9,_0x2fd7ac,_0x26c28b){const _0x30b6e0=_0x283fd3;return _0x2ba196[_0x30b6e0(0x1ec)](_0x12f528[_0x30b6e0(0x19a)],{'key':_0x1b193e,..._0x57a634(_0x12f528,_0x3cf4c9,_0x26c28b),..._0x2fd7ac},(_0x236019(_0x12f528,_0x3cf4c9)[_0x30b6e0(0x1b6)]||[])[_0x30b6e0(0x11f)]((_0x188631,_0x2df147)=>_0xc6b95(_0x188631,_0x1b193e+'-'+_0x12f528[_0x30b6e0(0x19a)]+'-'+_0x2df147,_0x3cf4c9,void 0x0,_0x26c28b)));}function _0x57a634(_0x3625d5,_0x3c2a85,_0x5529a5){const _0x571610=_0x283fd3,_0x5cf452={..._0x3625d5[_0x571610(0x140)]};_0x5529a5!=null&&_0x5529a5['colorChannel1']&&_0x5cf452[_0x571610(0x1ef)]===_0x571610(0x1cc)&&(_0x5cf452[_0x571610(0x1ef)]=_0x5529a5['colorChannel1']),_0x3625d5[_0x571610(0x19a)]===_0x571610(0x1ee)&&_0x5cf452['id']&&(_0x5cf452['id']=_0x5cf452['id']+_0x3c2a85[_0x571610(0x1c2)]),Object[_0x571610(0x1b8)](_0x5cf452)[_0x571610(0x1e0)](([_0x50f2fc,_0x14d5fb])=>{const _0x2e9776=_0x571610;_0x50f2fc===_0x2e9776(0x1ee)&&typeof _0x14d5fb=='string'&&(_0x5cf452[_0x50f2fc]=_0x14d5fb[_0x2e9776(0x186)](/url\(#(.*)\)/,_0x2e9776(0x1cf)+_0x3c2a85[_0x2e9776(0x1c2)]+')'));});const {defIds:_0x588744}=_0x3c2a85;return!_0x588744||_0x588744[_0x571610(0x1ac)]===0x0||(_0x3625d5[_0x571610(0x19a)]===_0x571610(0x163)&&_0x5cf452['xlink:href']&&(_0x5cf452[_0x571610(0x187)]=_0x5cf452[_0x571610(0x187)]+_0x3c2a85[_0x571610(0x1c2)]),Object['entries'](_0x5cf452)['forEach'](([_0x42ffb2,_0x1249c7])=>{const _0x5b32fa=_0x571610;typeof _0x1249c7==_0x5b32fa(0x15c)&&(_0x5cf452[_0x42ffb2]=_0x1249c7[_0x5b32fa(0x186)](/url\(#(.*)\)/,'url(#$1'+_0x3c2a85['idSuffix']+')'));})),_0x5cf452;}function _0x236019(_0x18223e,_0x57495f){const _0x579f7a=_0x283fd3;var _0x56cf67;const {defIds:_0x4cef8d}=_0x57495f;return!_0x4cef8d||_0x4cef8d['length']===0x0?_0x18223e:_0x18223e[_0x579f7a(0x19a)]===_0x579f7a(0x15d)&&((_0x56cf67=_0x18223e[_0x579f7a(0x1b6)])!=null&&_0x56cf67[_0x579f7a(0x1ac)])?{..._0x18223e,'children':_0x18223e[_0x579f7a(0x1b6)]['map'](_0x475a02=>typeof _0x475a02[_0x579f7a(0x140)]['id']==_0x579f7a(0x15c)&&_0x4cef8d&&_0x4cef8d[_0x579f7a(0x13d)](_0x475a02[_0x579f7a(0x140)]['id'])?{..._0x475a02,'attrs':{..._0x475a02['attrs'],'id':_0x475a02['attrs']['id']+_0x57495f['idSuffix']}}:_0x475a02)}:_0x18223e;}function _0x3e12b3(){const _0x330cde=_0x283fd3;return Math[_0x330cde(0x179)]()[_0x330cde(0x197)](0x24)[_0x330cde(0x1f1)](0x2,0x8);}_0x24a981[_0x283fd3(0x1b0)]=_0x283fd3(0x1b1);const _0x3151e7={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x283fd3(0x1c3),'width':'1em','height':_0x283fd3(0x18c)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x283fd3(0x1b3),'attrs':{'fill':_0x283fd3(0x1e7),'d':_0x283fd3(0x165),'fillRule':'evenodd','clipRule':_0x283fd3(0x149)}}]},_0x12b436=_0x2ba196[_0x283fd3(0x1d6)](function(_0x10c9af,_0xf6fc58){const _0x2275d3=_0x283fd3;return _0x2ba196[_0x2275d3(0x1ec)](_0x24a981,Object[_0x2275d3(0x142)]({},_0x10c9af,{'id':_0x2275d3(0x151),'ref':_0xf6fc58,'icon':_0x3151e7}));});_0x12b436[_0x283fd3(0x1b0)]=_0x283fd3(0x17d);class _0xe8c135 extends _0x6a378b[_0x283fd3(0x1b5)]{constructor(){const _0x34ea67=_0x283fd3;super(...arguments),_0x2932a5(this,_0x34ea67(0x1cd),new Set()),_0x2932a5(this,_0x34ea67(0x1b4),new Set());}[_0x283fd3(0x1d5)](_0x3438ab){const _0x663367=_0x283fd3;return this['_sharedOperations'][_0x663367(0x168)](_0x3438ab),_0x6a378b[_0x663367(0x1da)](()=>this[_0x663367(0x1cd)]['delete'](_0x3438ab));}['registerInitialStateReporter'](_0x11d0a0){const _0x3e98ba=_0x283fd3;return this[_0x3e98ba(0x1b4)][_0x3e98ba(0x168)](_0x11d0a0),_0x6a378b['toDisposable'](()=>this[_0x3e98ba(0x1b4)][_0x3e98ba(0x14b)](_0x11d0a0));}['shouldShareOperation'](_0xc641d2){const _0x28058c=_0x283fd3;return this['_sharedOperations'][_0x28058c(0x11e)](_0xc641d2);}[_0x283fd3(0x131)](_0x474161){const _0x38e173=_0x283fd3;return Array[_0x38e173(0x1a3)](this[_0x38e173(0x1b4)])[_0x38e173(0x11f)](_0x55d7c1=>_0x55d7c1(_0x474161));}}var _0xf0e9ae=Object[_0x283fd3(0x1f0)],_0x1c5230=(_0x124ff6,_0xdb3c7f,_0x110cf7,_0x3ddd89)=>{const _0xcc304b=_0x283fd3;for(var _0x1cfdf2=_0x3ddd89>0x1?void 0x0:_0x3ddd89?_0xf0e9ae(_0xdb3c7f,_0x110cf7):_0xdb3c7f,_0x20ed2a=_0x124ff6[_0xcc304b(0x1ac)]-0x1,_0x455400;_0x20ed2a>=0x0;_0x20ed2a--)(_0x455400=_0x124ff6[_0x20ed2a])&&(_0x1cfdf2=_0x455400(_0x1cfdf2)||_0x1cfdf2);return _0x1cfdf2;},_0xf8eeef=(_0x1e2309,_0x6d1235)=>(_0x32bb31,_0x537fc9)=>_0x6d1235(_0x32bb31,_0x537fc9,_0x1e2309);_0x39654e['LiveShareController']=class extends _0x6a378b[_0x283fd3(0x1a1)]{constructor(_0x3d83c2,_0x49089a,_0x5b30f6){const _0x368834=_0x283fd3;super(),_0x2932a5(this,_0x368834(0x181),new Map()),(this['_univerInstanceService']=_0x3d83c2,this[_0x368834(0x16b)]=_0x49089a,this['_collabSessionService']=_0x5b30f6,this['_init']());}async[_0x283fd3(0x119)](_0xd9c2c){const _0x5050bf=_0x283fd3;return this[_0x5050bf(0x181)][_0x5050bf(0x11e)](_0xd9c2c)||await this[_0x5050bf(0x147)](_0xd9c2c),this[_0x5050bf(0x181)][_0x5050bf(0x1c7)](_0xd9c2c);}[_0x283fd3(0x13e)](_0x3db6ab){const _0x32ac05=_0x283fd3;var _0x32b823;return(_0x32b823=this[_0x32ac05(0x181)]['get'](_0x3db6ab))!=null?_0x32b823:null;}[_0x283fd3(0x183)](){const _0x30471c=_0x283fd3;this[_0x30471c(0x16c)][_0x30471c(0x1e8)](_0x6a378b['UniverInstanceType']['UNIVER_SHEET'])[_0x30471c(0x174)](_0x7a73a6['takeUntil'](this[_0x30471c(0x166)]))[_0x30471c(0x17a)](async _0x36ef3c=>{const _0x4d21af=_0x30471c,_0x155230=_0x36ef3c[_0x4d21af(0x118)]();this[_0x4d21af(0x181)][_0x4d21af(0x11e)](_0x155230)||this[_0x4d21af(0x147)](_0x155230);}),this[_0x30471c(0x16c)]['getTypeOfUnitDisposed$'](_0x6a378b[_0x30471c(0x1ae)][_0x30471c(0x1b2)])[_0x30471c(0x174)](_0x7a73a6['takeUntil'](this[_0x30471c(0x166)]))['subscribe'](_0x22ea05=>{const _0xca719=_0x30471c,_0x2fa60b=_0x22ea05[_0xca719(0x118)](),_0x70ca28=this[_0xca719(0x181)][_0xca719(0x1c7)](_0x2fa60b);_0x70ca28==null||_0x70ca28[_0xca719(0x133)]();});}async[_0x283fd3(0x147)](_0x267aeb){const _0x58453b=_0x283fd3,_0x37b27d=await this[_0x58453b(0x141)][_0x58453b(0x137)](_0x267aeb),_0xef88c=this[_0x58453b(0x16b)][_0x58453b(0x17f)](_0x39654e['LiveShareCoordinator'],_0x267aeb,_0x37b27d);return _0xef88c[_0x58453b(0x173)](),this[_0x58453b(0x181)]['set'](_0x267aeb,_0xef88c),_0xef88c;}},_0x39654e['LiveShareController']=_0x1c5230([_0xf8eeef(0x0,_0x6a378b[_0x283fd3(0x161)]),_0xf8eeef(0x1,_0x6a378b[_0x283fd3(0x143)](_0x6a378b[_0x283fd3(0x1db)])),_0xf8eeef(0x2,_0x6a378b[_0x283fd3(0x143)](_0x3afd91[_0x283fd3(0x1f3)]))],_0x39654e[_0x283fd3(0x1e3)]);var _0x58a4b4=(_0x2cdde1=>(_0x2cdde1[_0x283fd3(0x1c9)]=_0x283fd3(0x138),_0x2cdde1[_0x283fd3(0x1ba)]=_0x283fd3(0x1eb),_0x2cdde1[_0x283fd3(0x167)]=_0x283fd3(0x124),_0x2cdde1[_0x283fd3(0x176)]=_0x283fd3(0x192),_0x2cdde1[_0x283fd3(0x1ed)]=_0x283fd3(0x13c),_0x2cdde1))(_0x58a4b4||{});const _0x2a454b=_0x283fd3(0x1dc),_0x38e98e=0xc8;_0x39654e['LiveShareCoordinator']=class extends _0x6a378b['RxDisposable']{constructor(_0x56b40e,_0x4ef03b,_0x35c04d,_0x34977d,_0x40d83b){const _0x1c7e2a=_0x283fd3;super(),_0x2932a5(this,'_status$',new _0x29ef30[(_0x1c7e2a(0x15f))]('idle')),_0x2932a5(this,_0x1c7e2a(0x182),this[_0x1c7e2a(0x1c8)][_0x1c7e2a(0x180)]()),_0x2932a5(this,_0x1c7e2a(0x183),!0x1),_0x2932a5(this,_0x1c7e2a(0x17b),null),_0x2932a5(this,_0x1c7e2a(0x162),null),(this[_0x1c7e2a(0x199)]=_0x56b40e,this[_0x1c7e2a(0x14c)]=_0x4ef03b,this[_0x1c7e2a(0x1e5)]=_0x35c04d,this[_0x1c7e2a(0x175)]=_0x34977d,this[_0x1c7e2a(0x190)]=_0x40d83b);}get[_0x283fd3(0x129)](){const _0x4b1e0b=_0x283fd3;return this['_status$'][_0x4b1e0b(0x115)]();}[_0x283fd3(0x133)](){const _0xa526e2=_0x283fd3;var _0x20031e;(_0x20031e=this['_commandDisposable'])==null||_0x20031e[_0xa526e2(0x133)](),this[_0xa526e2(0x1c8)][_0xa526e2(0x1e2)]('idle'),this[_0xa526e2(0x1c8)][_0xa526e2(0x155)]();}[_0x283fd3(0x191)](){const _0x4006f9=_0x283fd3;return this[_0x4006f9(0x129)];}[_0x283fd3(0x173)](){const _0x289a24=_0x283fd3;this[_0x289a24(0x183)]||(this[_0x289a24(0x183)]=!0x0,this[_0x289a24(0x14c)]['sessionStatus$']['pipe'](_0x7a73a6[_0x289a24(0x113)](this[_0x289a24(0x166)]))['subscribe'](_0x2fd478=>{const _0x29ba12=_0x289a24;switch(_0x2fd478){case _0x3afd91['SessionStatus'][_0x29ba12(0x1c9)]:this[_0x29ba12(0x1d0)]();break;case _0x3afd91[_0x29ba12(0x178)][_0x29ba12(0x198)]:this[_0x29ba12(0x1a4)]();break;}}),this['_collabSession'][_0x289a24(0x19f)][_0x289a24(0x174)](_0x7a73a6[_0x289a24(0x113)](this[_0x289a24(0x166)]))[_0x289a24(0x17a)](_0x4dd9f3=>{const _0x29b892=_0x289a24,{eventID:_0x8317a6}=_0x4dd9f3;switch(_0x8317a6){case _0x3cff9b[_0x29b892(0x1f6)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x4dd9f3);break;case _0x3cff9b[_0x29b892(0x1f6)]['LIVESHARE_OPERATION']:this[_0x29b892(0x1c6)](_0x4dd9f3);break;case _0x3cff9b[_0x29b892(0x1f6)]['LIVESHARE_TERMINATE']:this[_0x29b892(0x16e)]();break;case _0x3cff9b['CollaborationEvent']['NEW_CHANGESETS']:this[_0x29b892(0x1d7)](_0x4dd9f3);break;}}));}[_0x283fd3(0x157)](){const _0x59dc60=_0x283fd3;this[_0x59dc60(0x14c)][_0x59dc60(0x1c5)]({'eventID':_0x3cff9b['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x59dc60(0x199)],'userID':this[_0x59dc60(0x14c)][_0x59dc60(0x1cb)]()}},this['_unitID']);}[_0x283fd3(0x19b)](){const _0x5875c1=_0x283fd3;this['_status']===_0x5875c1(0x13c)&&(this[_0x5875c1(0x1c8)][_0x5875c1(0x1e2)]('idle'),this[_0x5875c1(0x14c)][_0x5875c1(0x1c5)]({'eventID':_0x3cff9b[_0x5875c1(0x1f6)][_0x5875c1(0x18b)],'data':{'unitID':this[_0x5875c1(0x199)]}},this['_unitID']));}['startFollowing'](){const _0x5d1d4c=_0x283fd3;this[_0x5d1d4c(0x129)]===_0x5d1d4c(0x192)&&(this['_status$'][_0x5d1d4c(0x1e2)](_0x5d1d4c(0x124)),this[_0x5d1d4c(0x150)]());}[_0x283fd3(0x1a6)](){const _0x54da6f=_0x283fd3;this[_0x54da6f(0x129)]===_0x54da6f(0x124)&&this[_0x54da6f(0x160)]();}[_0x283fd3(0x14e)](_0x25eb47){const _0x3db304=_0x283fd3,{presenter:_0xe1f527}=_0x25eb47[_0x3db304(0x11c)],_0x444952=this['_collabSession'][_0x3db304(0x1cb)]();this[_0x3db304(0x162)]=_0xe1f527,_0xe1f527===_0x444952?(this[_0x3db304(0x160)](),this['_startPresenting']()):this[_0x3db304(0x129)]!==_0x3db304(0x192)&&(this[_0x3db304(0x1bf)](),this[_0x3db304(0x150)]());}[_0x283fd3(0x12b)](){const _0x15b29b=_0x283fd3,_0x5ef379={'eventID':_0x3cff9b['CollaborationEvent'][_0x15b29b(0x123)]};this[_0x15b29b(0x14c)]['send'](_0x5ef379,this['_unitID']);}['_handleTerminate'](){const _0x5a23e3=_0x283fd3;this[_0x5a23e3(0x162)]=null,this['_status']!==_0x5a23e3(0x13c)&&this[_0x5a23e3(0x184)]();}[_0x283fd3(0x1d7)](_0x5961ec){const _0x40edab=_0x283fd3;if(this[_0x40edab(0x129)]==='following'&&this[_0x40edab(0x162)]===_0x5961ec[_0x40edab(0x11c)]['memberID']){const _0x16fce9=_0x3cff9b[_0x40edab(0x15a)](_0x5961ec[_0x40edab(0x11c)])['mutations'][_0x40edab(0x1d4)]()[_0x40edab(0x1bd)](_0x4de7b0=>_0x4de7b0['id']===_0x2cce30[_0x40edab(0x145)]['id']);if(_0x16fce9){const _0x2b6678=_0x16fce9[_0x40edab(0x164)]['unitId'],_0x23b045=_0x16fce9[_0x40edab(0x164)][_0x40edab(0x13b)]['id'];setTimeout(()=>{const _0x33ce71=_0x40edab;this['_commandService'][_0x33ce71(0x128)](_0x2cce30[_0x33ce71(0x135)]['id'],{'unitId':_0x2b6678,'subUnitId':_0x23b045},{'fromCollab':!0x0});});}}}[_0x283fd3(0x1de)](){const _0xf261c7=_0x283fd3;this[_0xf261c7(0x1c8)][_0xf261c7(0x1e2)](_0xf261c7(0x13c));const _0x288fb0=new Map(),_0xdd58ef=this[_0xf261c7(0x17b)]=new _0x6a378b[(_0xf261c7(0x193))]();_0xdd58ef[_0xf261c7(0x168)](_0x6a378b[_0xf261c7(0x1da)](()=>{const _0x3a516b=_0xf261c7;_0x288fb0[_0x3a516b(0x1e0)](_0x3f3dd2=>_0x3f3dd2[_0x3a516b(0x155)]()),_0x288fb0[_0x3a516b(0x16a)]();})),_0xdd58ef[_0xf261c7(0x168)](this['_commandService'][_0xf261c7(0x1a2)](_0x1f98a4=>{const _0x488cf7=_0xf261c7;var _0x41d2b5;if(_0x1f98a4[_0x488cf7(0x1e1)]!==_0x6a378b['CommandType']['OPERATION']||!this['_liveShareService'][_0x488cf7(0x148)](_0x1f98a4['id']))return;const {id:_0x8592a7}=_0x1f98a4;let _0x216117;_0x288fb0['has'](_0x8592a7)?_0x216117=_0x288fb0[_0x488cf7(0x1c7)](_0x8592a7):(_0x216117=new _0x29ef30[(_0x488cf7(0x1a8))](),_0x288fb0[_0x488cf7(0x172)](_0x8592a7,_0x216117),_0x216117[_0x488cf7(0x174)](_0x7a73a6[_0x488cf7(0x18d)]((_0x41d2b5=this['_configService'][_0x488cf7(0x1f5)](_0x2a454b))!=null?_0x41d2b5:_0x38e98e,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x488cf7(0x17a)](_0x54c450=>{const _0x50aeae=_0x488cf7;this['_collabSession'][_0x50aeae(0x1c5)]({'eventID':_0x3cff9b[_0x50aeae(0x1f6)][_0x50aeae(0x1e6)],'data':{'unitID':this[_0x50aeae(0x199)],'operations':{[_0x54c450['id']]:{'id':_0x54c450['id'],'params':JSON[_0x50aeae(0x114)](_0x54c450['params'])}}}},this[_0x50aeae(0x199)]);})),_0x216117[_0x488cf7(0x1e2)](_0x1f98a4);})),this[_0xf261c7(0x175)][_0xf261c7(0x131)](this[_0xf261c7(0x199)])['forEach'](_0x4a88c5=>this['_collabSession'][_0xf261c7(0x1c5)]({'eventID':_0x3cff9b[_0xf261c7(0x1f6)][_0xf261c7(0x1e6)],'data':{'unitID':this['_unitID'],'operations':{[_0x4a88c5['id']]:{'id':_0x4a88c5['id'],'params':JSON[_0xf261c7(0x114)](_0x4a88c5[_0xf261c7(0x164)])}}}},this[_0xf261c7(0x199)]));}[_0x283fd3(0x1bf)](){const _0x2983c6=_0x283fd3;var _0x363b4e;this[_0x2983c6(0x1c8)][_0x2983c6(0x1e2)](_0x2983c6(0x1eb)),(_0x363b4e=this[_0x2983c6(0x17b)])==null||_0x363b4e[_0x2983c6(0x133)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x513cfc=_0x283fd3;var _0x3f3f5e;(_0x3f3f5e=this['_commandDisposable'])==null||_0x3f3f5e[_0x513cfc(0x133)](),this[_0x513cfc(0x1c8)][_0x513cfc(0x1e2)](_0x513cfc(0x124));}[_0x283fd3(0x184)](){const _0x2a3960=_0x283fd3;var _0x7fda16;this[_0x2a3960(0x1c8)][_0x2a3960(0x1e2)]('idle'),(_0x7fda16=this['_commandDisposable'])==null||_0x7fda16[_0x2a3960(0x133)](),this['_commandDisposable']=null;}[_0x283fd3(0x160)](){const _0x559e0c=_0x283fd3;var _0xb693eb;this['_status$']['next'](_0x559e0c(0x192)),(_0xb693eb=this[_0x559e0c(0x17b)])==null||_0xb693eb['dispose']();}[_0x283fd3(0x1c6)](_0x50380f){const _0x3edc62=_0x283fd3;if([_0x3edc62(0x13c),'not-following',_0x3edc62(0x138)][_0x3edc62(0x13d)](this[_0x3edc62(0x129)])||!_0x50380f[_0x3edc62(0x11c)][_0x3edc62(0x1dd)]||_0x50380f[_0x3edc62(0x11c)]['presenter']===this['_collabSession'][_0x3edc62(0x1cb)]())return;this[_0x3edc62(0x129)]===_0x3edc62(0x1eb)&&this[_0x3edc62(0x150)]();const _0x27e177=_0x50380f[_0x3edc62(0x11c)][_0x3edc62(0x14f)];Object[_0x3edc62(0x122)](_0x27e177)[_0x3edc62(0x1e0)](_0x5649a7=>{const _0x1a5080=_0x3edc62;this[_0x1a5080(0x190)]['executeCommand'](_0x5649a7['id'],_0x5649a7[_0x1a5080(0x164)]?JSON['parse'](_0x5649a7[_0x1a5080(0x164)]):null,{'fromCollab':!0x0});});}[_0x283fd3(0x1d0)](){const _0x1562d1=_0x283fd3;var _0x453157;this[_0x1562d1(0x1c8)][_0x1562d1(0x1e2)](_0x1562d1(0x138)),(_0x453157=this[_0x1562d1(0x17b)])==null||_0x453157[_0x1562d1(0x133)]();}[_0x283fd3(0x1a4)](){const _0x4cc3b3=_0x283fd3;this[_0x4cc3b3(0x1c8)][_0x4cc3b3(0x1e2)]('idle'),this[_0x4cc3b3(0x12b)]();}},_0x39654e[_0x283fd3(0x1ca)]=_0x1c5230([_0xf8eeef(0x2,_0x6a378b[_0x283fd3(0x1aa)]),_0xf8eeef(0x3,_0x6a378b[_0x283fd3(0x143)](_0xe8c135)),_0xf8eeef(0x4,_0x6a378b[_0x283fd3(0x195)])],_0x39654e[_0x283fd3(0x1ca)]);function _0x2e8439(){const _0x5ab041=_0x283fd3,_0x37f653=_0x5780f1['useDependency'](_0x39654e[_0x5ab041(0x1e3)]),_0x4544aa=_0x5780f1[_0x5ab041(0x132)](_0x6a378b[_0x5ab041(0x161)]),_0x22626d=_0x5780f1[_0x5ab041(0x1c4)](()=>_0x4544aa[_0x5ab041(0x196)](_0x6a378b['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x22df38,_0x2bcb91]=_0x2ba196[_0x5ab041(0x169)](null),[_0x50d88c,_0x39e486]=_0x2ba196['useState'](_0x58a4b4[_0x5ab041(0x1ba)]),_0x5c0977=_0x2ba196[_0x5ab041(0x120)](null);return _0x2ba196[_0x5ab041(0x189)](()=>(_0x22626d&&_0x37f653['getLiveShareCoordinator'](_0x22626d[_0x5ab041(0x118)]())[_0x5ab041(0x13f)](_0x1e57d8=>{const _0x464827=_0x5ab041;_0x2bcb91(_0x1e57d8),_0x5c0977[_0x464827(0x159)]=_0x1e57d8['status$'][_0x464827(0x17a)](_0x4c4eec=>{_0x39e486(_0x4c4eec);});}),()=>{const _0x5081c4=_0x5ab041;var _0x2dfe88;(_0x2dfe88=_0x5c0977['current'])==null||_0x2dfe88[_0x5081c4(0x1c1)](),_0x5c0977[_0x5081c4(0x159)]=null;}),[_0x22626d,_0x37f653]),_0x22df38?_0x506a4e[_0x5ab041(0x170)](_0x2ac1de['Dropdown'],{'align':'end','disabled':_0x50d88c===_0x58a4b4[_0x5ab041(0x1c9)],'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':_0x506a4e[_0x5ab041(0x170)](_0x43bb82,{'status':_0x50d88c,'coordinator':_0x22df38}),'children':_0x506a4e[_0x5ab041(0x170)]('button',{'className':_0x2ac1de[_0x5ab041(0x156)](_0x5ab041(0x1b9),{'univer-cursor-not-allowed':_0x50d88c===_0x58a4b4[_0x5ab041(0x1c9)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x50d88c!==_0x58a4b4[_0x5ab041(0x1c9)]}),'type':_0x5ab041(0x1a7),'children':_0x506a4e[_0x5ab041(0x170)](_0x12b436,{'className':_0x5ab041(0x17e)})})}):null;}function _0x43bb82(_0xa08a10){const _0xf2fdd4=_0x283fd3,{status:_0x359d65,coordinator:_0x599fa0}=_0xa08a10;switch(_0x359d65){case _0x58a4b4[_0xf2fdd4(0x1ba)]:return _0x506a4e[_0xf2fdd4(0x170)](_0x3e190b,{'coordinator':_0x599fa0});case _0x58a4b4[_0xf2fdd4(0x167)]:return _0x506a4e[_0xf2fdd4(0x170)](_0x332db2,{'coordinator':_0x599fa0});case _0x58a4b4[_0xf2fdd4(0x176)]:return _0x506a4e['jsx'](_0x4263c4,{'coordinator':_0x599fa0});case _0x58a4b4[_0xf2fdd4(0x1c9)]:return _0x506a4e['jsx'](_0x2f1ef7,{});case _0x58a4b4['PRESENTING']:return _0x506a4e[_0xf2fdd4(0x170)](_0x51d851,{'coordinator':_0x599fa0});default:return null;}}function _0x3e190b(_0xf5122c){const _0x4725cf=_0x283fd3,{coordinator:_0xa81730}=_0xf5122c;return _0x506a4e[_0x4725cf(0x1e9)](_0x506a4e[_0x4725cf(0x15e)],{'children':[_0x506a4e[_0x4725cf(0x170)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4725cf(0x154)}),_0x506a4e[_0x4725cf(0x170)](_0x2ac1de[_0x4725cf(0x19e)],{'onClick':()=>_0xa81730[_0x4725cf(0x157)](),'children':_0x4725cf(0x1d9)})]});}function _0x332db2(_0x1ac8bb){const _0x5329e8=_0x283fd3,{coordinator:_0x54386c}=_0x1ac8bb;return _0x506a4e[_0x5329e8(0x1e9)](_0x506a4e[_0x5329e8(0x15e)],{'children':[_0x506a4e[_0x5329e8(0x170)]('div',{'className':_0x5329e8(0x1ad),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x506a4e['jsx'](_0x2ac1de[_0x5329e8(0x19e)],{'onClick':()=>_0x54386c[_0x5329e8(0x1a6)](),'children':_0x5329e8(0x117)})]});}function _0x4263c4(_0x20676f){const _0x2e7ff6=_0x283fd3,{coordinator:_0xc34c2}=_0x20676f;return _0x506a4e['jsxs'](_0x506a4e[_0x2e7ff6(0x15e)],{'children':[_0x506a4e[_0x2e7ff6(0x170)](_0x2e7ff6(0x1b7),{'className':_0x2e7ff6(0x1ad),'children':_0x2e7ff6(0x146)}),_0x506a4e[_0x2e7ff6(0x170)](_0x2ac1de[_0x2e7ff6(0x19e)],{'variant':_0x2e7ff6(0x18a),'onClick':()=>_0xc34c2['startFollowing'](),'children':_0x2e7ff6(0x1d8)})]});}function _0x51d851(_0x35782f){const _0x267966=_0x283fd3,{coordinator:_0x10d993}=_0x35782f;return _0x506a4e[_0x267966(0x1e9)](_0x506a4e[_0x267966(0x15e)],{'children':[_0x506a4e['jsx']('div',{'className':_0x267966(0x1ad),'children':_0x267966(0x1d2)}),_0x506a4e[_0x267966(0x170)](_0x2ac1de['Button'],{'variant':_0x267966(0x177),'onClick':()=>_0x10d993[_0x267966(0x19b)](),'children':'Stop\x20presenting'})]});}function _0x2f1ef7(){const _0x235415=_0x283fd3;return _0x506a4e[_0x235415(0x170)](_0x506a4e[_0x235415(0x15e)],{'children':_0x235415(0x12d)});}var _0x2e29c2=Object[_0x283fd3(0x1f0)],_0x34c9b8=(_0x544d49,_0x4ea65f,_0x5f474f,_0xa62f91)=>{for(var _0x4d3339=_0xa62f91>0x1?void 0x0:_0xa62f91?_0x2e29c2(_0x4ea65f,_0x5f474f):_0x4ea65f,_0x3cc596=_0x544d49['length']-0x1,_0x38de1b;_0x3cc596>=0x0;_0x3cc596--)(_0x38de1b=_0x544d49[_0x3cc596])&&(_0x4d3339=_0x38de1b(_0x4d3339)||_0x4d3339);return _0x4d3339;},_0x2ea4c0=(_0x1d8304,_0x815474)=>(_0x249c2a,_0x33b90c)=>_0x815474(_0x249c2a,_0x33b90c,_0x1d8304);_0x39654e[_0x283fd3(0x12a)]=class extends _0x6a378b['Disposable']{constructor(_0x23360f,_0x54aa3f){const _0x48b35d=_0x283fd3;super(),this[_0x48b35d(0x16b)]=_0x23360f,this[_0x48b35d(0x11a)]=_0x54aa3f,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x56cc99=_0x283fd3;this[_0x56cc99(0x1ce)](this[_0x56cc99(0x11a)][_0x56cc99(0x18f)](_0x5780f1['BuiltInUIPart']['HEADER_MENU'],()=>_0x5780f1[_0x56cc99(0x116)](_0x2e8439,this[_0x56cc99(0x16b)])));}},_0x39654e[_0x283fd3(0x12a)]=_0x34c9b8([_0x2ea4c0(0x0,_0x6a378b[_0x283fd3(0x143)](_0x6a378b[_0x283fd3(0x1db)])),_0x2ea4c0(0x1,_0x5780f1[_0x283fd3(0x1be)])],_0x39654e[_0x283fd3(0x12a)]);const _0x1c055d=_0x283fd3(0x1af),_0x4b5cbc={};var _0x2a21a8=Object['getOwnPropertyDescriptor'],_0x4ee742=(_0x43fc1e,_0x47d320,_0x53598b,_0x2eafc0)=>{for(var _0x222fb7=_0x2eafc0>0x1?void 0x0:_0x2eafc0?_0x2a21a8(_0x47d320,_0x53598b):_0x47d320,_0x42b801=_0x43fc1e['length']-0x1,_0x28df04;_0x42b801>=0x0;_0x42b801--)(_0x28df04=_0x43fc1e[_0x42b801])&&(_0x222fb7=_0x28df04(_0x222fb7)||_0x222fb7);return _0x222fb7;},_0x4f4447=(_0x495526,_0x46ce5d)=>(_0x30b192,_0x96f3b2)=>_0x46ce5d(_0x30b192,_0x96f3b2,_0x495526);let _0x1e053a=class extends _0x6a378b['Disposable']{constructor(_0xbbb71a){const _0x5e3dfc=_0x283fd3;super(),this[_0x5e3dfc(0x175)]=_0xbbb71a,this[_0x5e3dfc(0x183)]();}[_0x283fd3(0x183)](){const _0x58d01e=_0x283fd3;[_0x5931b1[_0x58d01e(0x126)]['id'],_0x5931b1['SetScrollOperation']['id'],_0x2cce30[_0x58d01e(0x135)]['id']][_0x58d01e(0x1e0)](_0x1af948=>{const _0x31fa74=_0x58d01e;this['disposeWithMe'](this[_0x31fa74(0x175)]['registerSharedOperation'](_0x1af948));});}};_0x1e053a=_0x4ee742([_0x4f4447(0x0,_0x6a378b[_0x283fd3(0x143)](_0xe8c135))],_0x1e053a);var _0x28569a=Object['defineProperty'],_0x57ce39=Object[_0x283fd3(0x1f0)],_0x599a1b=(_0x3bcf73,_0x2ed0ea,_0x442713)=>_0x2ed0ea in _0x3bcf73?_0x28569a(_0x3bcf73,_0x2ed0ea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x442713}):_0x3bcf73[_0x2ed0ea]=_0x442713,_0x3322c2=(_0x179cf4,_0x178db4,_0xffac92,_0x3a644f)=>{const _0x3d8ef6=_0x283fd3;for(var _0x344419=_0x3a644f>0x1?void 0x0:_0x3a644f?_0x57ce39(_0x178db4,_0xffac92):_0x178db4,_0x57e57a=_0x179cf4[_0x3d8ef6(0x1ac)]-0x1,_0x421138;_0x57e57a>=0x0;_0x57e57a--)(_0x421138=_0x179cf4[_0x57e57a])&&(_0x344419=_0x421138(_0x344419)||_0x344419);return _0x344419;},_0x396e03=(_0x18f2e7,_0x28861c)=>(_0x1a30fa,_0x1e2dcb)=>_0x28861c(_0x1a30fa,_0x1e2dcb,_0x18f2e7),_0x1cd44e=(_0x329b35,_0x1e8dca,_0x466ec6)=>_0x599a1b(_0x329b35,typeof _0x1e8dca!='symbol'?_0x1e8dca+'':_0x1e8dca,_0x466ec6);const _0x53cf9a=_0x283fd3(0x111);_0x39654e['UniverLiveSharePlugin']=class extends _0x6a378b['Plugin']{constructor(_0x2ac587=_0x4b5cbc,_0x2b4140,_0x2b995c){const _0xe87202=_0x283fd3;super(),this[_0xe87202(0x136)]=_0x2ac587,this[_0xe87202(0x16b)]=_0x2b4140,this[_0xe87202(0x1e5)]=_0x2b995c;const {..._0x3933df}=_0x6a378b[_0xe87202(0x15b)]({},_0x4b5cbc,this[_0xe87202(0x136)]);this[_0xe87202(0x1e5)]['setConfig'](_0x1c055d,_0x3933df);}[_0x283fd3(0x19c)](){const _0x12f8a5=_0x283fd3;_0x6a378b['registerDependencies'](this['_injector'],_0x6a378b['mergeOverrideWithDependencies']([[_0xe8c135],[_0x39654e[_0x12f8a5(0x1e3)]],[_0x1e053a],[_0x39654e[_0x12f8a5(0x12a)]]],this[_0x12f8a5(0x136)][_0x12f8a5(0x158)])),_0x6a378b[_0x12f8a5(0x13a)](this[_0x12f8a5(0x16b)],[[_0x1e053a]]);}[_0x283fd3(0x12e)](){const _0xf38c83=_0x283fd3;_0x6a378b[_0xf38c83(0x13a)](this[_0xf38c83(0x16b)],[[_0x39654e[_0xf38c83(0x12a)]]]);}},_0x1cd44e(_0x39654e[_0x283fd3(0x1a9)],_0x283fd3(0x1e1),_0x6a378b[_0x283fd3(0x1ae)][_0x283fd3(0x1e4)]),_0x1cd44e(_0x39654e[_0x283fd3(0x1a9)],_0x283fd3(0x16d),_0x53cf9a),_0x39654e['UniverLiveSharePlugin']=_0x3322c2([_0x6a378b['DependentOn'](_0x3afd91[_0x283fd3(0x171)]),_0x396e03(0x1,_0x6a378b[_0x283fd3(0x143)](_0x6a378b['Injector'])),_0x396e03(0x2,_0x6a378b['IConfigService'])],_0x39654e[_0x283fd3(0x1a9)]),_0x39654e[_0x283fd3(0x17c)]=_0x2e8439,_0x39654e[_0x283fd3(0x112)]=_0xe8c135,_0x39654e['LiveShareStatus']=_0x58a4b4,Object[_0x283fd3(0x125)](_0x39654e,Symbol[_0x283fd3(0x11b)],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.12.3-experimental.20251205-
|
|
3
|
+
"version": "0.12.3-experimental.20251205-8c9a6bf",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@univerjs/icons": "^1.0.2",
|
|
60
|
-
"@univerjs-pro/collaboration": "0.12.3-experimental.20251205-
|
|
61
|
-
"@univerjs-pro/collaboration-client": "0.12.3-experimental.20251205-
|
|
62
|
-
"@univerjs/core": "0.12.3-experimental.20251205-
|
|
63
|
-
"@univerjs/engine-render": "0.12.3-experimental.20251205-
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/sheets": "0.12.3-experimental.20251205-
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs/ui": "0.12.3-experimental.20251205-
|
|
60
|
+
"@univerjs-pro/collaboration": "0.12.3-experimental.20251205-8c9a6bf",
|
|
61
|
+
"@univerjs-pro/collaboration-client": "0.12.3-experimental.20251205-8c9a6bf",
|
|
62
|
+
"@univerjs/core": "0.12.3-experimental.20251205-8c9a6bf",
|
|
63
|
+
"@univerjs/engine-render": "0.12.3-experimental.20251205-8c9a6bf",
|
|
64
|
+
"@univerjs/design": "0.12.3-experimental.20251205-8c9a6bf",
|
|
65
|
+
"@univerjs/sheets-ui": "0.12.3-experimental.20251205-8c9a6bf",
|
|
66
|
+
"@univerjs/sheets": "0.12.3-experimental.20251205-8c9a6bf",
|
|
67
|
+
"@univerjs/ui": "0.12.3-experimental.20251205-8c9a6bf"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"typescript": "^5.9.3",
|
|
75
75
|
"vite": "^7.2.6",
|
|
76
76
|
"vitest": "^4.0.15",
|
|
77
|
-
"@univerjs
|
|
78
|
-
"@univerjs/
|
|
77
|
+
"@univerjs/protocol": "0.1.47",
|
|
78
|
+
"@univerjs-infra/shared": "0.12.3"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"test": "vitest run",
|