@univerjs-pro/live-share 0.12.1 → 0.12.2-experimental.20251201-5b27b55
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 +12 -12
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x187b77=_0x4625;function _0x539a(){const _0x5f3be6=['getActiveWorkbook','stopFollowing','No\x20active\x20workbook\x20found.','getLiveShareStatus','startFollowing','startRow','FEnum','get','getStatus','getLiveShareCoordinatorSync','_injector','getRenderById','177087lYndyc','23537723CwsmXP','FUniver','syncExecuteCommand','_initialize','8372OltggT','getSheetId','896bdgPkg','557987mbMXWv','executeCommand','LiveShareController','1626ZUmQWZ','SetScrollOperation','FRange','3426550mbysLK','SetWorksheetActiveOperation','IDLE','IRenderManagerService','getId','stopPresenting','extend','10bSGHjj','10SrBjMZ','79749byngSL','1318632PXjQzH','LiveShareStatus','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.'];_0x539a=function(){return _0x5f3be6;};return _0x539a();}(function(_0x44d6cb,_0x148899){const _0x3155e1=_0x4625,_0x3745cb=_0x44d6cb();while(!![]){try{const _0x4f4c4e=parseInt(_0x3155e1(0xb9))/0x1+-parseInt(_0x3155e1(0x9f))/0x2*(parseInt(_0x3155e1(0xb1))/0x3)+parseInt(_0x3155e1(0xa2))/0x4+-parseInt(_0x3155e1(0x98))/0x5+parseInt(_0x3155e1(0x95))/0x6*(-parseInt(_0x3155e1(0xb6))/0x7)+-parseInt(_0x3155e1(0xb8))/0x8*(parseInt(_0x3155e1(0xa1))/0x9)+-parseInt(_0x3155e1(0xa0))/0xa*(-parseInt(_0x3155e1(0xb2))/0xb);if(_0x4f4c4e===_0x148899)break;else _0x3745cb['push'](_0x3745cb['shift']());}catch(_0x4c589c){_0x3745cb['push'](_0x3745cb['shift']());}}}(_0x539a,0xb2543));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');class w extends d[_0x187b77(0x97)]{[_0x187b77(0xb5)](_0x1e5c29,_0x23d2b0,_0x320290,_0x11701e,_0x3e5ec4){const _0x353e38=_0x187b77,_0x549c23=_0x1e5c29[_0x353e38(0xac)](n[_0x353e38(0x94)]),_0x326f23=_0x1e5c29[_0x353e38(0xac)](g[_0x353e38(0x9b)]),_0x33aafc=_0x23d2b0['getUnitId'](),_0x143e94=_0x23d2b0['getActiveSheet'](),_0x3a52b5=_0x549c23[_0x353e38(0xae)](_0x33aafc);(_0x3a52b5==null?void 0x0:_0x3a52b5['getStatus']())!==n[_0x353e38(0xa3)]['PRESENTING']||(_0x320290[_0x353e38(0xb7)]()!==_0x143e94[_0x353e38(0xb7)]()&&this['_commandService'][_0x353e38(0xba)](u[_0x353e38(0x99)]['id'],{'unitId':_0x33aafc,'subUnitId':_0x320290[_0x353e38(0xb7)]()}),!_0x326f23[_0x353e38(0xb0)](_0x33aafc))||_0x3e5ec4[_0x353e38(0xb4)](f[_0x353e38(0x96)]['id'],{'unitId':_0x23d2b0['getUnitId'](),'sheetId':_0x320290[_0x353e38(0xb7)](),'sheetViewStartRow':_0x11701e[_0x353e38(0xaa)],'sheetViewStartColumn':_0x11701e['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x187b77(0x97)][_0x187b77(0x9e)](w);function _0x4625(_0x2aebe7,_0x168dd2){const _0x539aef=_0x539a();return _0x4625=function(_0x462506,_0x304497){_0x462506=_0x462506-0x94;let _0x5f5893=_0x539aef[_0x462506];return _0x5f5893;},_0x4625(_0x2aebe7,_0x168dd2);}class C extends a['FUniver']{[_0x187b77(0xa8)](){const _0x45a28e=_0x187b77;var _0x5e3b09,_0x413985;const _0x4b270b=this[_0x45a28e(0xaf)]['get'](n[_0x45a28e(0x94)]),_0x3cd481=(_0x5e3b09=this[_0x45a28e(0xa5)]())==null?void 0x0:_0x5e3b09[_0x45a28e(0x9c)]();if(!_0x3cd481)throw new Error(_0x45a28e(0xa7));const _0x5805a2=_0x4b270b[_0x45a28e(0xae)](_0x3cd481);return(_0x413985=_0x5805a2==null?void 0x0:_0x5805a2[_0x45a28e(0xad)]())!=null?_0x413985:n[_0x45a28e(0xa3)][_0x45a28e(0x9a)];}['startFollowing'](){const _0x1dd282=_0x187b77;var _0x3fcc2c;const _0x2a895f=this['_injector'][_0x1dd282(0xac)](n[_0x1dd282(0x94)]),_0x5e5a89=(_0x3fcc2c=this[_0x1dd282(0xa5)]())==null?void 0x0:_0x3fcc2c[_0x1dd282(0x9c)]();if(!_0x5e5a89)throw new Error('No\x20active\x20workbook\x20found.');const _0x1a0d7c=_0x2a895f[_0x1dd282(0xae)](_0x5e5a89);if(!_0x1a0d7c)throw new Error(_0x1dd282(0xa4));_0x1a0d7c[_0x1dd282(0xa9)]();}[_0x187b77(0xa6)](){const _0x16b811=_0x187b77;var _0x5482bb;const _0x5540e5=this[_0x16b811(0xaf)][_0x16b811(0xac)](n['LiveShareController']),_0x385a79=(_0x5482bb=this[_0x16b811(0xa5)]())==null?void 0x0:_0x5482bb[_0x16b811(0x9c)]();if(!_0x385a79)throw new Error(_0x16b811(0xa7));const _0x541f14=_0x5540e5[_0x16b811(0xae)](_0x385a79);if(!_0x541f14)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x541f14['stopFollowing']();}['startPresenting'](){const _0x3b8319=_0x187b77;var _0x466e53;const _0x22c482=this[_0x3b8319(0xaf)][_0x3b8319(0xac)](n['LiveShareController']),_0xc2b8f5=(_0x466e53=this[_0x3b8319(0xa5)]())==null?void 0x0:_0x466e53[_0x3b8319(0x9c)]();if(!_0xc2b8f5)throw new Error('No\x20active\x20workbook\x20found.');const _0x4548e3=_0x22c482[_0x3b8319(0xae)](_0xc2b8f5);if(!_0x4548e3)throw new Error(_0x3b8319(0xa4));_0x4548e3['tryStartPresenting']();}[_0x187b77(0x9d)](){const _0x478693=_0x187b77;var _0x364ba2;const _0x171c23=this[_0x478693(0xaf)][_0x478693(0xac)](n['LiveShareController']),_0x370b23=(_0x364ba2=this[_0x478693(0xa5)]())==null?void 0x0:_0x364ba2[_0x478693(0x9c)]();if(!_0x370b23)throw new Error(_0x478693(0xa7));const _0x51d0e4=_0x171c23[_0x478693(0xae)](_0x370b23);if(!_0x51d0e4)throw new Error(_0x478693(0xa4));_0x51d0e4['stopPresenting']();}}a[_0x187b77(0xb3)]['extend'](C);class L extends a[_0x187b77(0xab)]{get['LiveShareStatusEnum'](){const _0x4867e5=_0x187b77;return n[_0x4867e5(0xa3)];}}a[_0x187b77(0xab)][_0x187b77(0x9e)](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0xdd045d=_0x17f2;(function(_0x48b512,_0x57cc41){const _0x2a169b=_0x17f2,_0x5144ca=_0x48b512();while(!![]){try{const _0x3c059e=parseInt(_0x2a169b(0x146))/0x1+-parseInt(_0x2a169b(0x129))/0x2*(parseInt(_0x2a169b(0x1b5))/0x3)+-parseInt(_0x2a169b(0x1ad))/0x4+-parseInt(_0x2a169b(0x19f))/0x5+parseInt(_0x2a169b(0x109))/0x6*(-parseInt(_0x2a169b(0x16d))/0x7)+parseInt(_0x2a169b(0x18f))/0x8+parseInt(_0x2a169b(0x147))/0x9;if(_0x3c059e===_0x57cc41)break;else _0x5144ca['push'](_0x5144ca['shift']());}catch(_0x577c3d){_0x5144ca['push'](_0x5144ca['shift']());}}}(_0x58ee,0x6c893));var T=Object[_0xdd045d(0x121)],U=(_0x5c29e5,_0x559ae7,_0x17dd05)=>_0x559ae7 in _0x5c29e5?T(_0x5c29e5,_0x559ae7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x17dd05}):_0x5c29e5[_0x559ae7]=_0x17dd05,_=(_0x6e6423,_0x120440,_0x311de0)=>U(_0x6e6423,typeof _0x120440!='symbol'?_0x120440+'':_0x120440,_0x311de0);Object[_0xdd045d(0x121)](exports,Symbol[_0xdd045d(0x194)],{'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:_0xdb21c0,..._0x50564c}){const _0xb371f3=_0xdd045d,{icon:_0x46eaf1,id:_0x2f1d36,className:_0xfa7a5c,extend:_0x276aeb,..._0xa545d5}=_0x50564c,_0x509099=(_0xb371f3(0x107)+_0x2f1d36+'\x20'+(_0xfa7a5c||''))[_0xb371f3(0x192)](),_0x38c30e=v[_0xb371f3(0x153)]('_'+H());return j(_0x46eaf1,''+_0x2f1d36,{'defIds':_0x46eaf1[_0xb371f3(0x14d)],'idSuffix':_0x38c30e['current']},{'ref':_0xdb21c0,'className':_0x509099,..._0xa545d5},_0x276aeb);}function _0x58ee(){const _0xab138f=['status$','override','useRef','getStatus','Disposable','OPERATION','displayName','_collabSession','getConfig','RxDisposable','replace','_univerInstanceService','CollaborationEvent','length','symbol','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_commandDisposable','_mountLiveShare','tag','UniverCollaborationClientPlugin','_beIdle','live-share-icon','presenting','OFFLINE','LIVESHARE_TERMINATE','forEach','stopPresenting','SetWorksheetActiveOperation','80437WLkeNQ','find','setConfig','useEffect','presenter','Button','idle','event$','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','univer-mb-3\x20univer-w-full\x20univer-text-sm','subscribe','mutations','from','includes','colorChannel1','data','SetScrollOperation','1em','path','getUnitId','LiveShare','reverse','_startLiveShareCoordinator','Fragment','useState','unsubscribe','xlink:href','ONLINE','default','Subject','toDisposable','send','fill','pipe','6472048NzteiM','complete','startFollowing','trim','UNIVER_LIVE_SHARE_PLUGIN','toStringTag','executeCommand','idSuffix','UNIVER_SHEET','registerSharedOperation','IDLE','Start\x20following','ICommandService','_presenter','Present\x20this\x20document','text','4183835WCPrEV','stringify','_injector','_init','You\x27are\x20offline.','UniverInstanceType','assign','_uiPartsService','_liveShareService','mask','current','DesktopLiveShareController','sheet','LiveShareIcon','1524376wKBlXG','HEADER_MENU','svg','get','_handleOnline','DependentOn','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','_startPresenting','126798cOxQDr','shouldShareOperation','mergeOverrideWithDependencies','LiveShareStatus','LIVESHARE_NEW_HOST','_sharedOperations','div','createInstance','LiveShareController','disposeWithMe','forwardRef','map','clear','_fetchOperations','onStarting','parseProtocolChangeset','LIVESHARE_REQUEST_HOST','_stopPresenting','getOwnPropertyDescriptor','http://www.w3.org/2000/svg','NOT_FOLLOWING','LIVESHARE_OPERATION','next','operations','_entities','merge','toString','random','_configService','Start','_reporters','string','following','IConfigService','entries','sessionStatus$','attrs','onCommandExecuted','_stopFollowing','use','_handleOffline','substring','has','univerjs-icon\x20univerjs-icon-','FOLLOWING','228BofnpB','getInitialStates','jsxs','univer-size-4','currentColor','You\x27re\x20presenting\x20the\x20document','tryStartPresenting','_config','dispose','Inject','none','UNIVER_UNKNOWN','PRESENTING','dispose$','0\x200\x2017\x2017','add','throttleTime','defs','NEW_CHANGESETS','memberID','requireSession','Injector','SessionStatus','offline','defineProperty','button','url(#$1','touchDependencies','_status','You\x27re\x20not\x20following\x20the\x20presenter','type','stopFollowing','6SwoNvj','_collabSessionService','_handleNewHost','takeUntil','SAME_OPERATION_SHARE_INTERVAL','evenodd','not-following','_unitID','useDependency','unitId','_status$','getValue','UniverIcon','CommandType','IUIPartsService','SetZoomRatioOperation','LiveShareCoordinator','LIVESHARE_FETCH_OPERATIONS','createElement','_startFollowing','Plugin','jsx','registerInitialStateReporter','getLiveShareCoordinator','_handleTerminate','end','UniverLiveSharePlugin','_commandService','children','635409srnScS','7033185kRkjPv','set','IUniverInstanceService','params','useObservable','getCurrentTypeOfUnit$','defIds','CollaborationSessionService','DisposableCollection','getMemberID'];_0x58ee=function(){return _0xab138f;};return _0x58ee();}function j(_0x42b12c,_0x1d08a0,_0x3eb1e1,_0x268038,_0x5c2936){const _0x36457f=_0xdd045d;return v[_0x36457f(0x13b)](_0x42b12c[_0x36457f(0x163)],{'key':_0x1d08a0,...y(_0x42b12c,_0x3eb1e1,_0x5c2936),..._0x268038},(F(_0x42b12c,_0x3eb1e1)[_0x36457f(0x145)]||[])[_0x36457f(0x1c0)]((_0x3d7e66,_0x74cbc5)=>j(_0x3d7e66,_0x1d08a0+'-'+_0x42b12c[_0x36457f(0x163)]+'-'+_0x74cbc5,_0x3eb1e1,void 0x0,_0x5c2936)));}function y(_0x1f98b2,_0x4adbed,_0x48a558){const _0x2b5e9b=_0xdd045d,_0x484182={..._0x1f98b2[_0x2b5e9b(0x100)]};_0x48a558!=null&&_0x48a558[_0x2b5e9b(0x17b)]&&_0x484182[_0x2b5e9b(0x18d)]===_0x2b5e9b(0x17b)&&(_0x484182[_0x2b5e9b(0x18d)]=_0x48a558['colorChannel1']),_0x1f98b2[_0x2b5e9b(0x163)]===_0x2b5e9b(0x1a8)&&_0x484182['id']&&(_0x484182['id']=_0x484182['id']+_0x4adbed['idSuffix']),Object[_0x2b5e9b(0xfe)](_0x484182)[_0x2b5e9b(0x16a)](([_0x57fe19,_0x2c9df9])=>{const _0x36cd94=_0x2b5e9b;_0x57fe19===_0x36cd94(0x1a8)&&typeof _0x2c9df9==_0x36cd94(0xfb)&&(_0x484182[_0x57fe19]=_0x2c9df9[_0x36cd94(0x15b)](/url\(#(.*)\)/,_0x36cd94(0x123)+_0x4adbed[_0x36cd94(0x196)]+')'));});const {defIds:_0x234592}=_0x4adbed;return!_0x234592||_0x234592['length']===0x0||(_0x1f98b2[_0x2b5e9b(0x163)]===_0x2b5e9b(0x103)&&_0x484182['xlink:href']&&(_0x484182[_0x2b5e9b(0x187)]=_0x484182[_0x2b5e9b(0x187)]+_0x4adbed['idSuffix']),Object['entries'](_0x484182)[_0x2b5e9b(0x16a)](([_0x42294f,_0x2e1f5f])=>{const _0xd503b0=_0x2b5e9b;typeof _0x2e1f5f==_0xd503b0(0xfb)&&(_0x484182[_0x42294f]=_0x2e1f5f[_0xd503b0(0x15b)](/url\(#(.*)\)/,_0xd503b0(0x123)+_0x4adbed[_0xd503b0(0x196)]+')'));})),_0x484182;}function _0x17f2(_0xa49f2,_0x45e98d){const _0x58ee65=_0x58ee();return _0x17f2=function(_0x17f2f9,_0x412b88){_0x17f2f9=_0x17f2f9-0xf9;let _0x71b0aa=_0x58ee65[_0x17f2f9];return _0x71b0aa;},_0x17f2(_0xa49f2,_0x45e98d);}function F(_0x780198,_0x950c65){const _0x48f9c6=_0xdd045d;var _0x488a3d;const {defIds:_0x3ffd56}=_0x950c65;return!_0x3ffd56||_0x3ffd56['length']===0x0?_0x780198:_0x780198['tag']===_0x48f9c6(0x11a)&&((_0x488a3d=_0x780198[_0x48f9c6(0x145)])!=null&&_0x488a3d['length'])?{..._0x780198,'children':_0x780198[_0x48f9c6(0x145)][_0x48f9c6(0x1c0)](_0xe58702=>typeof _0xe58702[_0x48f9c6(0x100)]['id']==_0x48f9c6(0xfb)&&_0x3ffd56&&_0x3ffd56[_0x48f9c6(0x17a)](_0xe58702[_0x48f9c6(0x100)]['id'])?{..._0xe58702,'attrs':{..._0xe58702[_0x48f9c6(0x100)],'id':_0xe58702[_0x48f9c6(0x100)]['id']+_0x950c65['idSuffix']}}:_0xe58702)}:_0x780198;}function H(){const _0x52a6a3=_0xdd045d;return Math[_0x52a6a3(0x1d0)]()[_0x52a6a3(0x1cf)](0x24)[_0x52a6a3(0x105)](0x2,0x8);}x[_0xdd045d(0x157)]=_0xdd045d(0x135);const V={'tag':_0xdd045d(0x1af),'attrs':{'xmlns':_0xdd045d(0x1c8),'fill':_0xdd045d(0x113),'viewBox':_0xdd045d(0x117),'width':_0xdd045d(0x17e),'height':'1em'},'children':[{'tag':_0xdd045d(0x17f),'attrs':{'fill':'currentColor','d':_0xdd045d(0x175)}},{'tag':_0xdd045d(0x17f),'attrs':{'fill':_0xdd045d(0x10d),'d':_0xdd045d(0x1b3),'fillRule':_0xdd045d(0x12e),'clipRule':_0xdd045d(0x12e)}}]},R=v[_0xdd045d(0x1bf)](function(_0xa2ac72,_0x2ae11b){const _0x212e53=_0xdd045d;return v[_0x212e53(0x13b)](x,Object[_0x212e53(0x1a5)]({},_0xa2ac72,{'id':_0x212e53(0x166),'ref':_0x2ae11b,'icon':V}));});R['displayName']=_0xdd045d(0x1ac);class E extends o[_0xdd045d(0x155)]{constructor(){const _0x55b65a=_0xdd045d;super(...arguments),_(this,_0x55b65a(0x1ba),new Set()),_(this,_0x55b65a(0xfa),new Set());}['registerSharedOperation'](_0x3af51b){const _0x36c35d=_0xdd045d;return this['_sharedOperations']['add'](_0x3af51b),o[_0x36c35d(0x18b)](()=>this[_0x36c35d(0x1ba)]['delete'](_0x3af51b));}[_0xdd045d(0x13f)](_0x24cfa4){const _0x32f59d=_0xdd045d;return this[_0x32f59d(0xfa)][_0x32f59d(0x118)](_0x24cfa4),o['toDisposable'](()=>this['_reporters']['delete'](_0x24cfa4));}[_0xdd045d(0x1b6)](_0x13e2e4){const _0xa5abf=_0xdd045d;return this[_0xa5abf(0x1ba)][_0xa5abf(0x106)](_0x13e2e4);}[_0xdd045d(0x10a)](_0x46e2d8){const _0xe7f6db=_0xdd045d;return Array[_0xe7f6db(0x179)](this['_reporters'])[_0xe7f6db(0x1c0)](_0x83f7f7=>_0x83f7f7(_0x46e2d8));}}var M=Object[_0xdd045d(0x1c7)],P=(_0x5d1334,_0x21071e,_0xdd3216,_0x195f1d)=>{for(var _0x331750=_0x195f1d>0x1?void 0x0:_0x195f1d?M(_0x21071e,_0xdd3216):_0x21071e,_0x4350b8=_0x5d1334['length']-0x1,_0x362a7b;_0x4350b8>=0x0;_0x4350b8--)(_0x362a7b=_0x5d1334[_0x4350b8])&&(_0x331750=_0x362a7b(_0x331750)||_0x331750);return _0x331750;},S=(_0x2fce75,_0x57d25b)=>(_0x1ab775,_0x114b3c)=>_0x57d25b(_0x1ab775,_0x114b3c,_0x2fce75);exports['LiveShareController']=class extends o[_0xdd045d(0x15a)]{constructor(_0x422fc9,_0x3ea1ae,_0x2de0b8){const _0xa4badf=_0xdd045d;super(),_(this,_0xa4badf(0x1cd),new Map()),(this[_0xa4badf(0x15c)]=_0x422fc9,this[_0xa4badf(0x1a1)]=_0x3ea1ae,this[_0xa4badf(0x12a)]=_0x2de0b8,this[_0xa4badf(0x1a2)]());}async['getLiveShareCoordinator'](_0x3738b7){const _0x27c0e3=_0xdd045d;return this[_0x27c0e3(0x1cd)][_0x27c0e3(0x106)](_0x3738b7)||await this['_startLiveShareCoordinator'](_0x3738b7),this[_0x27c0e3(0x1cd)][_0x27c0e3(0x1b0)](_0x3738b7);}['getLiveShareCoordinatorSync'](_0x2fbe3e){const _0x179407=_0xdd045d;var _0x2937bc;return(_0x2937bc=this[_0x179407(0x1cd)][_0x179407(0x1b0)](_0x2fbe3e))!=null?_0x2937bc:null;}['_init'](){const _0x1ef661=_0xdd045d;this[_0x1ef661(0x15c)]['getTypeOfUnitAdded$'](o[_0x1ef661(0x1a4)][_0x1ef661(0x197)])[_0x1ef661(0x18e)](I[_0x1ef661(0x12c)](this[_0x1ef661(0x116)]))[_0x1ef661(0x177)](async _0x3e6857=>{const _0x3b97b5=_0x1ef661,_0x4f24e=_0x3e6857[_0x3b97b5(0x180)]();this[_0x3b97b5(0x1cd)][_0x3b97b5(0x106)](_0x4f24e)||this[_0x3b97b5(0x183)](_0x4f24e);}),this[_0x1ef661(0x15c)]['getTypeOfUnitDisposed$'](o['UniverInstanceType'][_0x1ef661(0x197)])['pipe'](I[_0x1ef661(0x12c)](this[_0x1ef661(0x116)]))[_0x1ef661(0x177)](_0x6e1046=>{const _0x1fe2a6=_0x1ef661,_0x486c6b=_0x6e1046['getUnitId'](),_0x21f61f=this[_0x1fe2a6(0x1cd)]['get'](_0x486c6b);_0x21f61f==null||_0x21f61f[_0x1fe2a6(0x111)]();});}async[_0xdd045d(0x183)](_0x1048a4){const _0x49af57=_0xdd045d,_0x5b8812=await this[_0x49af57(0x12a)][_0x49af57(0x11d)](_0x1048a4),_0x5ccb41=this[_0x49af57(0x1a1)][_0x49af57(0x1bc)](exports[_0x49af57(0x139)],_0x1048a4,_0x5b8812);return _0x5ccb41['init'](),this[_0x49af57(0x1cd)][_0x49af57(0x148)](_0x1048a4,_0x5ccb41),_0x5ccb41;}},exports[_0xdd045d(0x1bd)]=P([S(0x0,o[_0xdd045d(0x149)]),S(0x1,o[_0xdd045d(0x112)](o['Injector'])),S(0x2,o['Inject'](b[_0xdd045d(0x14e)]))],exports[_0xdd045d(0x1bd)]);var u=(_0x310e5b=>(_0x310e5b[_0xdd045d(0x168)]=_0xdd045d(0x120),_0x310e5b[_0xdd045d(0x199)]=_0xdd045d(0x173),_0x310e5b['FOLLOWING']=_0xdd045d(0xfc),_0x310e5b[_0xdd045d(0x1c9)]=_0xdd045d(0x12f),_0x310e5b[_0xdd045d(0x115)]=_0xdd045d(0x167),_0x310e5b))(u||{});const k=_0xdd045d(0x12d),q=0xc8;exports[_0xdd045d(0x139)]=class extends o[_0xdd045d(0x15a)]{constructor(_0x39bfc9,_0x4ecfd2,_0x3e23f9,_0x4096ce,_0x5a75f){const _0x31e6f9=_0xdd045d;super(),_(this,_0x31e6f9(0x133),new O['BehaviorSubject'](_0x31e6f9(0x173))),_(this,_0x31e6f9(0x151),this[_0x31e6f9(0x133)]['asObservable']()),_(this,_0x31e6f9(0x1a2),!0x1),_(this,_0x31e6f9(0x161),null),_(this,_0x31e6f9(0x19c),null),(this[_0x31e6f9(0x130)]=_0x39bfc9,this[_0x31e6f9(0x158)]=_0x4ecfd2,this[_0x31e6f9(0x1d1)]=_0x3e23f9,this[_0x31e6f9(0x1a7)]=_0x4096ce,this[_0x31e6f9(0x144)]=_0x5a75f);}get[_0xdd045d(0x125)](){const _0x1e859e=_0xdd045d;return this[_0x1e859e(0x133)][_0x1e859e(0x134)]();}[_0xdd045d(0x111)](){const _0x3b1792=_0xdd045d;var _0x492506;(_0x492506=this[_0x3b1792(0x161)])==null||_0x492506['dispose'](),this[_0x3b1792(0x133)][_0x3b1792(0x1cb)](_0x3b1792(0x173)),this[_0x3b1792(0x133)][_0x3b1792(0x190)]();}[_0xdd045d(0x154)](){const _0x6e1d55=_0xdd045d;return this[_0x6e1d55(0x125)];}['init'](){const _0xb713e0=_0xdd045d;this[_0xb713e0(0x1a2)]||(this[_0xb713e0(0x1a2)]=!0x0,this[_0xb713e0(0x158)][_0xb713e0(0xff)][_0xb713e0(0x18e)](I[_0xb713e0(0x12c)](this['dispose$']))[_0xb713e0(0x177)](_0x25bb06=>{const _0x533e4d=_0xb713e0;switch(_0x25bb06){case b[_0x533e4d(0x11f)][_0x533e4d(0x168)]:this[_0x533e4d(0x104)]();break;case b[_0x533e4d(0x11f)][_0x533e4d(0x188)]:this[_0x533e4d(0x1b1)]();break;}}),this[_0xb713e0(0x158)][_0xb713e0(0x174)][_0xb713e0(0x18e)](I[_0xb713e0(0x12c)](this[_0xb713e0(0x116)]))[_0xb713e0(0x177)](_0x228d70=>{const _0x30e4b7=_0xb713e0,{eventID:_0x23b07a}=_0x228d70;switch(_0x23b07a){case d[_0x30e4b7(0x15d)][_0x30e4b7(0x1b9)]:this['_handleNewHost'](_0x228d70);break;case d[_0x30e4b7(0x15d)][_0x30e4b7(0x1ca)]:this['_handleOperation'](_0x228d70);break;case d[_0x30e4b7(0x15d)]['LIVESHARE_TERMINATE']:this[_0x30e4b7(0x141)]();break;case d['CollaborationEvent'][_0x30e4b7(0x11b)]:this['_handleNewChangeSets'](_0x228d70);break;}}));}[_0xdd045d(0x10f)](){const _0x1c509b=_0xdd045d;this[_0x1c509b(0x158)]['send']({'eventID':d[_0x1c509b(0x15d)][_0x1c509b(0x1c5)],'data':{'unitID':this[_0x1c509b(0x130)],'userID':this['_collabSession'][_0x1c509b(0x150)]()}},this[_0x1c509b(0x130)]);}[_0xdd045d(0x16b)](){const _0x72959f=_0xdd045d;this[_0x72959f(0x125)]===_0x72959f(0x167)&&(this[_0x72959f(0x133)][_0x72959f(0x1cb)](_0x72959f(0x173)),this[_0x72959f(0x158)][_0x72959f(0x18c)]({'eventID':d['CollaborationEvent'][_0x72959f(0x169)],'data':{'unitID':this['_unitID']}},this[_0x72959f(0x130)]));}['startFollowing'](){const _0x3eb1ef=_0xdd045d;this[_0x3eb1ef(0x125)]===_0x3eb1ef(0x12f)&&(this['_status$'][_0x3eb1ef(0x1cb)](_0x3eb1ef(0xfc)),this[_0x3eb1ef(0x13c)]());}[_0xdd045d(0x128)](){const _0x37be2f=_0xdd045d;this['_status']===_0x37be2f(0xfc)&&this[_0x37be2f(0x102)]();}[_0xdd045d(0x12b)](_0x44250c){const _0x5b55f6=_0xdd045d,{presenter:_0x20537b}=_0x44250c['data'],_0x431ebb=this['_collabSession'][_0x5b55f6(0x150)]();this[_0x5b55f6(0x19c)]=_0x20537b,_0x20537b===_0x431ebb?(this[_0x5b55f6(0x102)](),this[_0x5b55f6(0x1b4)]()):this[_0x5b55f6(0x125)]!==_0x5b55f6(0x12f)&&(this['_stopPresenting'](),this[_0x5b55f6(0x13c)]());}[_0xdd045d(0x1c2)](){const _0x474e5d=_0xdd045d,_0x56949f={'eventID':d['CollaborationEvent'][_0x474e5d(0x13a)]};this[_0x474e5d(0x158)][_0x474e5d(0x18c)](_0x56949f,this['_unitID']);}[_0xdd045d(0x141)](){const _0x425fd2=_0xdd045d;this[_0x425fd2(0x19c)]=null,this[_0x425fd2(0x125)]!=='presenting'&&this[_0x425fd2(0x165)]();}['_handleNewChangeSets'](_0xbddfad){const _0x4e648b=_0xdd045d;if(this[_0x4e648b(0x125)]===_0x4e648b(0xfc)&&this['_presenter']===_0xbddfad[_0x4e648b(0x17c)][_0x4e648b(0x11c)]){const _0x15511f=d[_0x4e648b(0x1c4)](_0xbddfad[_0x4e648b(0x17c)])[_0x4e648b(0x178)][_0x4e648b(0x182)]()[_0x4e648b(0x16e)](_0x8864ee=>_0x8864ee['id']===C['InsertSheetMutation']['id']);if(_0x15511f){const _0x447862=_0x15511f[_0x4e648b(0x14a)][_0x4e648b(0x132)],_0x4d151c=_0x15511f[_0x4e648b(0x14a)][_0x4e648b(0x1ab)]['id'];setTimeout(()=>{const _0x28bbde=_0x4e648b;this['_commandService'][_0x28bbde(0x195)](C[_0x28bbde(0x16c)]['id'],{'unitId':_0x447862,'subUnitId':_0x4d151c},{'fromCollab':!0x0});});}}}[_0xdd045d(0x1b4)](){const _0x1c6b73=_0xdd045d;this[_0x1c6b73(0x133)]['next'](_0x1c6b73(0x167));const _0x4379b1=new Map(),_0x488216=this[_0x1c6b73(0x161)]=new o[(_0x1c6b73(0x14f))]();_0x488216[_0x1c6b73(0x118)](o[_0x1c6b73(0x18b)](()=>{const _0x116990=_0x1c6b73;_0x4379b1['forEach'](_0x18f74a=>_0x18f74a['complete']()),_0x4379b1[_0x116990(0x1c1)]();})),_0x488216[_0x1c6b73(0x118)](this[_0x1c6b73(0x144)][_0x1c6b73(0x101)](_0x24bdef=>{const _0x30fce3=_0x1c6b73;var _0x1e8612;if(_0x24bdef['type']!==o[_0x30fce3(0x136)][_0x30fce3(0x156)]||!this['_liveShareService'][_0x30fce3(0x1b6)](_0x24bdef['id']))return;const {id:_0xe8b643}=_0x24bdef;let _0x41c5e6;_0x4379b1[_0x30fce3(0x106)](_0xe8b643)?_0x41c5e6=_0x4379b1[_0x30fce3(0x1b0)](_0xe8b643):(_0x41c5e6=new O[(_0x30fce3(0x18a))](),_0x4379b1[_0x30fce3(0x148)](_0xe8b643,_0x41c5e6),_0x41c5e6[_0x30fce3(0x18e)](I[_0x30fce3(0x119)]((_0x1e8612=this[_0x30fce3(0x1d1)][_0x30fce3(0x159)](k))!=null?_0x1e8612:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x30fce3(0x177)](_0x4cf5fa=>{const _0x8835e7=_0x30fce3;this['_collabSession'][_0x8835e7(0x18c)]({'eventID':d['CollaborationEvent'][_0x8835e7(0x1ca)],'data':{'unitID':this['_unitID'],'operations':{[_0x4cf5fa['id']]:{'id':_0x4cf5fa['id'],'params':JSON[_0x8835e7(0x1a0)](_0x4cf5fa[_0x8835e7(0x14a)])}}}},this[_0x8835e7(0x130)]);})),_0x41c5e6[_0x30fce3(0x1cb)](_0x24bdef);})),this[_0x1c6b73(0x1a7)][_0x1c6b73(0x10a)](this[_0x1c6b73(0x130)])[_0x1c6b73(0x16a)](_0x32f964=>this['_collabSession'][_0x1c6b73(0x18c)]({'eventID':d[_0x1c6b73(0x15d)][_0x1c6b73(0x1ca)],'data':{'unitID':this[_0x1c6b73(0x130)],'operations':{[_0x32f964['id']]:{'id':_0x32f964['id'],'params':JSON[_0x1c6b73(0x1a0)](_0x32f964[_0x1c6b73(0x14a)])}}}},this[_0x1c6b73(0x130)]));}[_0xdd045d(0x1c6)](){const _0x251e98=_0xdd045d;var _0xf2c528;this['_status$'][_0x251e98(0x1cb)](_0x251e98(0x173)),(_0xf2c528=this['_commandDisposable'])==null||_0xf2c528['dispose'](),this['_commandDisposable']=null;}[_0xdd045d(0x13c)](){const _0x4328eb=_0xdd045d;var _0xe9bd3a;(_0xe9bd3a=this['_commandDisposable'])==null||_0xe9bd3a[_0x4328eb(0x111)](),this[_0x4328eb(0x133)][_0x4328eb(0x1cb)]('following');}['_beIdle'](){const _0x8f1ede=_0xdd045d;var _0x476ef6;this[_0x8f1ede(0x133)][_0x8f1ede(0x1cb)](_0x8f1ede(0x173)),(_0x476ef6=this[_0x8f1ede(0x161)])==null||_0x476ef6[_0x8f1ede(0x111)](),this[_0x8f1ede(0x161)]=null;}['_stopFollowing'](){const _0x220cd3=_0xdd045d;var _0x5421cb;this['_status$'][_0x220cd3(0x1cb)](_0x220cd3(0x12f)),(_0x5421cb=this['_commandDisposable'])==null||_0x5421cb[_0x220cd3(0x111)]();}['_handleOperation'](_0x21c058){const _0x3db315=_0xdd045d;if([_0x3db315(0x167),'not-following',_0x3db315(0x120)][_0x3db315(0x17a)](this[_0x3db315(0x125)])||!_0x21c058[_0x3db315(0x17c)][_0x3db315(0x171)]||_0x21c058[_0x3db315(0x17c)]['presenter']===this['_collabSession'][_0x3db315(0x150)]())return;this[_0x3db315(0x125)]===_0x3db315(0x173)&&this['_startFollowing']();const _0x4fbe39=_0x21c058[_0x3db315(0x17c)][_0x3db315(0x1cc)];Object['values'](_0x4fbe39)[_0x3db315(0x16a)](_0x3a9c15=>{const _0x4b38d4=_0x3db315;this[_0x4b38d4(0x144)][_0x4b38d4(0x195)](_0x3a9c15['id'],_0x3a9c15[_0x4b38d4(0x14a)]?JSON['parse'](_0x3a9c15[_0x4b38d4(0x14a)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0xbf6def=_0xdd045d;var _0x207da3;this[_0xbf6def(0x133)][_0xbf6def(0x1cb)]('offline'),(_0x207da3=this[_0xbf6def(0x161)])==null||_0x207da3[_0xbf6def(0x111)]();}[_0xdd045d(0x1b1)](){const _0x459df2=_0xdd045d;this[_0x459df2(0x133)][_0x459df2(0x1cb)](_0x459df2(0x173)),this['_fetchOperations']();}},exports[_0xdd045d(0x139)]=P([S(0x2,o[_0xdd045d(0xfd)]),S(0x3,o['Inject'](E)),S(0x4,o[_0xdd045d(0x19b)])],exports[_0xdd045d(0x139)]);function $(){const _0x4fb7d8=_0xdd045d,_0x5aa036=p[_0x4fb7d8(0x131)](exports[_0x4fb7d8(0x1bd)]),_0x1037a4=p[_0x4fb7d8(0x131)](o[_0x4fb7d8(0x149)]),_0x39bc6a=p[_0x4fb7d8(0x14b)](()=>_0x1037a4[_0x4fb7d8(0x14c)](o[_0x4fb7d8(0x1a4)][_0x4fb7d8(0x197)]),void 0x0,!0x1,[]),[_0x592da5,_0x262fc2]=v[_0x4fb7d8(0x185)](null),[_0x560eb8,_0x4295d5]=v['useState'](u[_0x4fb7d8(0x199)]),_0x4964e6=v[_0x4fb7d8(0x153)](null);return v[_0x4fb7d8(0x170)](()=>(_0x39bc6a&&_0x5aa036[_0x4fb7d8(0x140)](_0x39bc6a[_0x4fb7d8(0x180)]())['then'](_0x4ee993=>{const _0x570d7c=_0x4fb7d8;_0x262fc2(_0x4ee993),_0x4964e6[_0x570d7c(0x1a9)]=_0x4ee993[_0x570d7c(0x151)]['subscribe'](_0x472a56=>{_0x4295d5(_0x472a56);});}),()=>{const _0x2a052e=_0x4fb7d8;var _0x560db7;(_0x560db7=_0x4964e6[_0x2a052e(0x1a9)])==null||_0x560db7[_0x2a052e(0x186)](),_0x4964e6['current']=null;}),[_0x39bc6a,_0x5aa036]),_0x592da5?l[_0x4fb7d8(0x13e)](f['Dropdown'],{'align':_0x4fb7d8(0x142),'disabled':_0x560eb8===u['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x4fb7d8(0x13e)](W,{'status':_0x560eb8,'coordinator':_0x592da5}),'children':l[_0x4fb7d8(0x13e)](_0x4fb7d8(0x122),{'className':f['clsx'](_0x4fb7d8(0x160),{'univer-cursor-not-allowed':_0x560eb8===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x560eb8!==u[_0x4fb7d8(0x168)]}),'type':_0x4fb7d8(0x122),'children':l['jsx'](R,{'className':_0x4fb7d8(0x10c)})})}):null;}function W(_0x2fd63c){const _0x85882a=_0xdd045d,{status:_0x54ab49,coordinator:_0x4a8ebe}=_0x2fd63c;switch(_0x54ab49){case u['IDLE']:return l['jsx'](G,{'coordinator':_0x4a8ebe});case u[_0x85882a(0x108)]:return l[_0x85882a(0x13e)](B,{'coordinator':_0x4a8ebe});case u[_0x85882a(0x1c9)]:return l[_0x85882a(0x13e)](Y,{'coordinator':_0x4a8ebe});case u[_0x85882a(0x168)]:return l['jsx'](J,{});case u[_0x85882a(0x115)]:return l['jsx'](Z,{'coordinator':_0x4a8ebe});default:return null;}}function G(_0x48a5a9){const _0x192179=_0xdd045d,{coordinator:_0x98d15f}=_0x48a5a9;return l[_0x192179(0x10b)](l['Fragment'],{'children':[l[_0x192179(0x13e)](_0x192179(0x1bb),{'className':_0x192179(0x176),'children':_0x192179(0x19d)}),l[_0x192179(0x13e)](f[_0x192179(0x172)],{'onClick':()=>_0x98d15f[_0x192179(0x10f)](),'children':_0x192179(0xf9)})]});}function B(_0xa278ab){const _0x57aab6=_0xdd045d,{coordinator:_0x101e6f}=_0xa278ab;return l[_0x57aab6(0x10b)](l[_0x57aab6(0x184)],{'children':[l[_0x57aab6(0x13e)](_0x57aab6(0x1bb),{'className':_0x57aab6(0x176),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x57aab6(0x13e)](f[_0x57aab6(0x172)],{'onClick':()=>_0x101e6f[_0x57aab6(0x128)](),'children':'Stop\x20following'})]});}function Y(_0x2e31da){const _0x2a8f0e=_0xdd045d,{coordinator:_0x4f16e2}=_0x2e31da;return l[_0x2a8f0e(0x10b)](l['Fragment'],{'children':[l[_0x2a8f0e(0x13e)](_0x2a8f0e(0x1bb),{'className':_0x2a8f0e(0x176),'children':_0x2a8f0e(0x126)}),l[_0x2a8f0e(0x13e)](f[_0x2a8f0e(0x172)],{'variant':_0x2a8f0e(0x19e),'onClick':()=>_0x4f16e2[_0x2a8f0e(0x191)](),'children':_0x2a8f0e(0x19a)})]});}function Z(_0x36acbf){const _0x232485=_0xdd045d,{coordinator:_0x7c610}=_0x36acbf;return l['jsxs'](l[_0x232485(0x184)],{'children':[l['jsx'](_0x232485(0x1bb),{'className':_0x232485(0x176),'children':_0x232485(0x10e)}),l[_0x232485(0x13e)](f[_0x232485(0x172)],{'variant':_0x232485(0x189),'onClick':()=>_0x7c610[_0x232485(0x16b)](),'children':'Stop\x20presenting'})]});}function J(){const _0xf56682=_0xdd045d;return l[_0xf56682(0x13e)](l[_0xf56682(0x184)],{'children':_0xf56682(0x1a3)});}var K=Object['getOwnPropertyDescriptor'],z=(_0x3fafda,_0x337b7c,_0xdb1a82,_0x2523bb)=>{const _0x18065a=_0xdd045d;for(var _0xac1312=_0x2523bb>0x1?void 0x0:_0x2523bb?K(_0x337b7c,_0xdb1a82):_0x337b7c,_0x1ec31b=_0x3fafda[_0x18065a(0x15e)]-0x1,_0x4f6c42;_0x1ec31b>=0x0;_0x1ec31b--)(_0x4f6c42=_0x3fafda[_0x1ec31b])&&(_0xac1312=_0x4f6c42(_0xac1312)||_0xac1312);return _0xac1312;},L=(_0x41d613,_0x53d675)=>(_0x520e1a,_0x3a1455)=>_0x53d675(_0x520e1a,_0x3a1455,_0x41d613);exports[_0xdd045d(0x1aa)]=class extends o['Disposable']{constructor(_0x255bde,_0x478d88){const _0x2e401b=_0xdd045d;super(),this[_0x2e401b(0x1a1)]=_0x255bde,this['_uiPartsService']=_0x478d88,this['_mountLiveShare']();}[_0xdd045d(0x162)](){const _0x2e83ce=_0xdd045d;this[_0x2e83ce(0x1be)](this[_0x2e83ce(0x1a6)]['registerComponent'](p['BuiltInUIPart'][_0x2e83ce(0x1ae)],()=>p['connectInjector']($,this[_0x2e83ce(0x1a1)])));}},exports[_0xdd045d(0x1aa)]=z([L(0x0,o[_0xdd045d(0x112)](o[_0xdd045d(0x11e)])),L(0x1,p[_0xdd045d(0x137)])],exports[_0xdd045d(0x1aa)]);const Q='live-share.config',w={};var X=Object[_0xdd045d(0x1c7)],ee=(_0x148b90,_0x48f981,_0x3ac92f,_0x1f41e4)=>{const _0x44adda=_0xdd045d;for(var _0x558cba=_0x1f41e4>0x1?void 0x0:_0x1f41e4?X(_0x48f981,_0x3ac92f):_0x48f981,_0x1bd54a=_0x148b90[_0x44adda(0x15e)]-0x1,_0x1ecf7b;_0x1bd54a>=0x0;_0x1bd54a--)(_0x1ecf7b=_0x148b90[_0x1bd54a])&&(_0x558cba=_0x1ecf7b(_0x558cba)||_0x558cba);return _0x558cba;},te=(_0x34fdd0,_0x39b19c)=>(_0x41395f,_0x392a16)=>_0x39b19c(_0x41395f,_0x392a16,_0x34fdd0);let m=class extends o[_0xdd045d(0x155)]{constructor(_0x43c89f){const _0x514a86=_0xdd045d;super(),this[_0x514a86(0x1a7)]=_0x43c89f,this[_0x514a86(0x1a2)]();}[_0xdd045d(0x1a2)](){const _0x289d6d=_0xdd045d;[D[_0x289d6d(0x138)]['id'],D[_0x289d6d(0x17d)]['id'],C[_0x289d6d(0x16c)]['id']]['forEach'](_0xad5a71=>{const _0x3728b0=_0x289d6d;this[_0x3728b0(0x1be)](this[_0x3728b0(0x1a7)][_0x3728b0(0x198)](_0xad5a71));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object['defineProperty'],se=Object[_0xdd045d(0x1c7)],ne=(_0x2cda22,_0xff991e,_0x27744f)=>_0xff991e in _0x2cda22?ie(_0x2cda22,_0xff991e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x27744f}):_0x2cda22[_0xff991e]=_0x27744f,re=(_0x522290,_0x2bc755,_0x5b1b72,_0x30634a)=>{for(var _0x55cec2=_0x30634a>0x1?void 0x0:_0x30634a?se(_0x2bc755,_0x5b1b72):_0x2bc755,_0x2c2f6c=_0x522290['length']-0x1,_0x1061e0;_0x2c2f6c>=0x0;_0x2c2f6c--)(_0x1061e0=_0x522290[_0x2c2f6c])&&(_0x55cec2=_0x1061e0(_0x55cec2)||_0x55cec2);return _0x55cec2;},N=(_0x549834,_0x5b3452)=>(_0x110895,_0x42a828)=>_0x5b3452(_0x110895,_0x42a828,_0x549834),A=(_0x32ec45,_0x279aa1,_0x2492fc)=>ne(_0x32ec45,typeof _0x279aa1!=_0xdd045d(0x15f)?_0x279aa1+'':_0x279aa1,_0x2492fc);const oe=_0xdd045d(0x193);exports[_0xdd045d(0x143)]=class extends o[_0xdd045d(0x13d)]{constructor(_0x35867a=w,_0x2be720,_0x1a07f5){const _0x34786a=_0xdd045d;super(),this[_0x34786a(0x110)]=_0x35867a,this[_0x34786a(0x1a1)]=_0x2be720,this[_0x34786a(0x1d1)]=_0x1a07f5;const {..._0x198a7b}=o[_0x34786a(0x1ce)]({},w,this[_0x34786a(0x110)]);this['_configService'][_0x34786a(0x16f)](Q,_0x198a7b);}[_0xdd045d(0x1c3)](){const _0x303cd8=_0xdd045d;o['registerDependencies'](this[_0x303cd8(0x1a1)],o[_0x303cd8(0x1b7)]([[E],[exports[_0x303cd8(0x1bd)]],[m],[exports[_0x303cd8(0x1aa)]]],this['_config'][_0x303cd8(0x152)])),o[_0x303cd8(0x124)](this[_0x303cd8(0x1a1)],[[m]]);}['onRendered'](){const _0x37f82b=_0xdd045d;o[_0x37f82b(0x124)](this[_0x37f82b(0x1a1)],[[exports['DesktopLiveShareController']]]);}},A(exports[_0xdd045d(0x143)],_0xdd045d(0x127),o['UniverInstanceType'][_0xdd045d(0x114)]),A(exports[_0xdd045d(0x143)],'pluginName',oe),exports[_0xdd045d(0x143)]=re([o[_0xdd045d(0x1b2)](b[_0xdd045d(0x164)]),N(0x1,o[_0xdd045d(0x112)](o[_0xdd045d(0x11e)])),N(0x2,o[_0xdd045d(0xfd)])],exports[_0xdd045d(0x143)]),exports[_0xdd045d(0x181)]=$,exports['LiveShareService']=E,exports[_0xdd045d(0x1b8)]=u;
|
|
1
|
+
'use strict';const _0x141999=_0x10fc;(function(_0x4b1bca,_0x44250b){const _0x5c42c3=_0x10fc,_0x52c951=_0x4b1bca();while(!![]){try{const _0x413a56=parseInt(_0x5c42c3(0x20f))/0x1*(-parseInt(_0x5c42c3(0x1d9))/0x2)+-parseInt(_0x5c42c3(0x22c))/0x3+parseInt(_0x5c42c3(0x237))/0x4*(parseInt(_0x5c42c3(0x205))/0x5)+parseInt(_0x5c42c3(0x1d7))/0x6*(parseInt(_0x5c42c3(0x27f))/0x7)+parseInt(_0x5c42c3(0x278))/0x8+-parseInt(_0x5c42c3(0x24a))/0x9+parseInt(_0x5c42c3(0x266))/0xa;if(_0x413a56===_0x44250b)break;else _0x52c951['push'](_0x52c951['shift']());}catch(_0x3c0928){_0x52c951['push'](_0x52c951['shift']());}}}(_0x3491,0xb3afe));var T=Object[_0x141999(0x1cc)],U=(_0xe02584,_0x5dd677,_0x2b4209)=>_0x5dd677 in _0xe02584?T(_0xe02584,_0x5dd677,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b4209}):_0xe02584[_0x5dd677]=_0x2b4209,_=(_0x41e9d1,_0x27e852,_0x5cf05e)=>U(_0x41e9d1,typeof _0x27e852!='symbol'?_0x27e852+'':_0x27e852,_0x5cf05e);Object['defineProperty'](exports,Symbol[_0x141999(0x1e8)],{'value':_0x141999(0x1e7)});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:_0x3af414,..._0x56a8dc}){const _0x460619=_0x141999,{icon:_0xe7a7b,id:_0x3703ce,className:_0x40ae58,extend:_0x15a4ed,..._0x410b2b}=_0x56a8dc,_0x5c422d=(_0x460619(0x277)+_0x3703ce+'\x20'+(_0x40ae58||''))[_0x460619(0x1dc)](),_0x157aba=v['useRef']('_'+H());return j(_0xe7a7b,''+_0x3703ce,{'defIds':_0xe7a7b[_0x460619(0x293)],'idSuffix':_0x157aba[_0x460619(0x1e2)]},{'ref':_0x3af414,'className':_0x5c422d,..._0x410b2b},_0x15a4ed);}function j(_0x2bb2ac,_0x40a2d1,_0xaa3f65,_0x2ce93d,_0x4e1845){const _0x783034=_0x141999;return v['createElement'](_0x2bb2ac[_0x783034(0x206)],{'key':_0x40a2d1,...y(_0x2bb2ac,_0xaa3f65,_0x4e1845),..._0x2ce93d},(F(_0x2bb2ac,_0xaa3f65)[_0x783034(0x210)]||[])[_0x783034(0x243)]((_0xffba7e,_0x1f7632)=>j(_0xffba7e,_0x40a2d1+'-'+_0x2bb2ac[_0x783034(0x206)]+'-'+_0x1f7632,_0xaa3f65,void 0x0,_0x4e1845)));}function y(_0x2eef6f,_0x56445f,_0x350a6a){const _0x5ec6d7=_0x141999,_0x5afa90={..._0x2eef6f['attrs']};_0x350a6a!=null&&_0x350a6a[_0x5ec6d7(0x21f)]&&_0x5afa90['fill']===_0x5ec6d7(0x21f)&&(_0x5afa90[_0x5ec6d7(0x242)]=_0x350a6a[_0x5ec6d7(0x21f)]),_0x2eef6f[_0x5ec6d7(0x206)]===_0x5ec6d7(0x2a1)&&_0x5afa90['id']&&(_0x5afa90['id']=_0x5afa90['id']+_0x56445f[_0x5ec6d7(0x239)]),Object[_0x5ec6d7(0x297)](_0x5afa90)[_0x5ec6d7(0x1d1)](([_0x5242dc,_0xeee3ef])=>{const _0x48ccdb=_0x5ec6d7;_0x5242dc===_0x48ccdb(0x2a1)&&typeof _0xeee3ef==_0x48ccdb(0x233)&&(_0x5afa90[_0x5242dc]=_0xeee3ef['replace'](/url\(#(.*)\)/,'url(#$1'+_0x56445f['idSuffix']+')'));});const {defIds:_0x2957db}=_0x56445f;return!_0x2957db||_0x2957db[_0x5ec6d7(0x246)]===0x0||(_0x2eef6f[_0x5ec6d7(0x206)]===_0x5ec6d7(0x267)&&_0x5afa90[_0x5ec6d7(0x1cf)]&&(_0x5afa90[_0x5ec6d7(0x1cf)]=_0x5afa90[_0x5ec6d7(0x1cf)]+_0x56445f[_0x5ec6d7(0x239)]),Object[_0x5ec6d7(0x297)](_0x5afa90)[_0x5ec6d7(0x1d1)](([_0x35a45d,_0x31ce8e])=>{const _0x1514cc=_0x5ec6d7;typeof _0x31ce8e==_0x1514cc(0x233)&&(_0x5afa90[_0x35a45d]=_0x31ce8e[_0x1514cc(0x24f)](/url\(#(.*)\)/,_0x1514cc(0x221)+_0x56445f[_0x1514cc(0x239)]+')'));})),_0x5afa90;}function F(_0x54d15c,_0x420725){const _0x112b8f=_0x141999;var _0x12006a;const {defIds:_0xc1f41c}=_0x420725;return!_0xc1f41c||_0xc1f41c['length']===0x0?_0x54d15c:_0x54d15c['tag']===_0x112b8f(0x1fc)&&((_0x12006a=_0x54d15c['children'])!=null&&_0x12006a[_0x112b8f(0x246)])?{..._0x54d15c,'children':_0x54d15c[_0x112b8f(0x210)][_0x112b8f(0x243)](_0x59ecaf=>typeof _0x59ecaf[_0x112b8f(0x235)]['id']==_0x112b8f(0x233)&&_0xc1f41c&&_0xc1f41c['includes'](_0x59ecaf['attrs']['id'])?{..._0x59ecaf,'attrs':{..._0x59ecaf[_0x112b8f(0x235)],'id':_0x59ecaf['attrs']['id']+_0x420725[_0x112b8f(0x239)]}}:_0x59ecaf)}:_0x54d15c;}function H(){const _0x9337e0=_0x141999;return Math[_0x9337e0(0x1f1)]()[_0x9337e0(0x270)](0x24)['substring'](0x2,0x8);}x[_0x141999(0x1ea)]='UniverIcon';const V={'tag':_0x141999(0x213),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x141999(0x280),'viewBox':_0x141999(0x265),'width':_0x141999(0x28d),'height':_0x141999(0x28d)},'children':[{'tag':_0x141999(0x227),'attrs':{'fill':'currentColor','d':_0x141999(0x212)}},{'tag':_0x141999(0x227),'attrs':{'fill':'currentColor','d':_0x141999(0x263),'fillRule':'evenodd','clipRule':_0x141999(0x214)}}]},R=v[_0x141999(0x290)](function(_0xd7b4e4,_0x5add11){const _0x5534c5=_0x141999;return v['createElement'](x,Object[_0x5534c5(0x29f)]({},_0xd7b4e4,{'id':_0x5534c5(0x1f9),'ref':_0x5add11,'icon':V}));});function _0x10fc(_0xdfb522,_0x2f9d78){const _0x349181=_0x3491();return _0x10fc=function(_0x10fc71,_0xeb07e0){_0x10fc71=_0x10fc71-0x1c7;let _0x342e05=_0x349181[_0x10fc71];return _0x342e05;},_0x10fc(_0xdfb522,_0x2f9d78);}R[_0x141999(0x1ea)]=_0x141999(0x1db);class E extends o[_0x141999(0x21b)]{constructor(){const _0x8a5b10=_0x141999;super(...arguments),_(this,_0x8a5b10(0x20e),new Set()),_(this,_0x8a5b10(0x207),new Set());}[_0x141999(0x281)](_0x1830f2){const _0x2b3969=_0x141999;return this[_0x2b3969(0x20e)][_0x2b3969(0x1e0)](_0x1830f2),o[_0x2b3969(0x20a)](()=>this[_0x2b3969(0x20e)][_0x2b3969(0x1fe)](_0x1830f2));}[_0x141999(0x1c9)](_0xaeea43){const _0x290f3f=_0x141999;return this[_0x290f3f(0x207)]['add'](_0xaeea43),o[_0x290f3f(0x20a)](()=>this['_reporters'][_0x290f3f(0x1fe)](_0xaeea43));}[_0x141999(0x1d0)](_0x4f87b9){const _0x5222b5=_0x141999;return this[_0x5222b5(0x20e)]['has'](_0x4f87b9);}['getInitialStates'](_0x17e8ae){const _0x530e6d=_0x141999;return Array[_0x530e6d(0x1ec)](this['_reporters'])[_0x530e6d(0x243)](_0x385178=>_0x385178(_0x17e8ae));}}var M=Object[_0x141999(0x248)],P=(_0x4cb9cd,_0x14a13a,_0x42ad60,_0x6e04fe)=>{const _0x519ce4=_0x141999;for(var _0x2b1d3c=_0x6e04fe>0x1?void 0x0:_0x6e04fe?M(_0x14a13a,_0x42ad60):_0x14a13a,_0x4b9f2a=_0x4cb9cd[_0x519ce4(0x246)]-0x1,_0x60f7b;_0x4b9f2a>=0x0;_0x4b9f2a--)(_0x60f7b=_0x4cb9cd[_0x4b9f2a])&&(_0x2b1d3c=_0x60f7b(_0x2b1d3c)||_0x2b1d3c);return _0x2b1d3c;},S=(_0x561062,_0x50524e)=>(_0x45e033,_0x72c983)=>_0x50524e(_0x45e033,_0x72c983,_0x561062);exports[_0x141999(0x289)]=class extends o[_0x141999(0x254)]{constructor(_0x2c909f,_0x2975d0,_0x210379){const _0x65e81f=_0x141999;super(),_(this,_0x65e81f(0x27e),new Map()),(this[_0x65e81f(0x282)]=_0x2c909f,this['_injector']=_0x2975d0,this[_0x65e81f(0x250)]=_0x210379,this[_0x65e81f(0x251)]());}async[_0x141999(0x1ca)](_0x15fce1){const _0x29629f=_0x141999;return this[_0x29629f(0x27e)]['has'](_0x15fce1)||await this[_0x29629f(0x2a4)](_0x15fce1),this[_0x29629f(0x27e)][_0x29629f(0x299)](_0x15fce1);}[_0x141999(0x23c)](_0x8eb8be){const _0xd71677=_0x141999;var _0x49787c;return(_0x49787c=this[_0xd71677(0x27e)]['get'](_0x8eb8be))!=null?_0x49787c:null;}[_0x141999(0x251)](){const _0x1dedbf=_0x141999;this[_0x1dedbf(0x282)][_0x1dedbf(0x283)](o[_0x1dedbf(0x223)][_0x1dedbf(0x1e5)])[_0x1dedbf(0x22e)](I['takeUntil'](this[_0x1dedbf(0x225)]))[_0x1dedbf(0x1cd)](async _0x3ba579=>{const _0x59465a=_0x1dedbf,_0x23ca60=_0x3ba579['getUnitId']();this[_0x59465a(0x27e)][_0x59465a(0x21d)](_0x23ca60)||this[_0x59465a(0x2a4)](_0x23ca60);}),this['_univerInstanceService'][_0x1dedbf(0x28f)](o[_0x1dedbf(0x223)][_0x1dedbf(0x1e5)])['pipe'](I['takeUntil'](this[_0x1dedbf(0x225)]))[_0x1dedbf(0x1cd)](_0x54e830=>{const _0x144d71=_0x1dedbf,_0xaa0d97=_0x54e830[_0x144d71(0x284)](),_0x4aa8fe=this['_entities'][_0x144d71(0x299)](_0xaa0d97);_0x4aa8fe==null||_0x4aa8fe[_0x144d71(0x1df)]();});}async[_0x141999(0x2a4)](_0x3eeb3f){const _0x432ab6=_0x141999,_0x5c3e6b=await this[_0x432ab6(0x250)][_0x432ab6(0x29e)](_0x3eeb3f),_0x315bec=this['_injector'][_0x432ab6(0x1d4)](exports['LiveShareCoordinator'],_0x3eeb3f,_0x5c3e6b);return _0x315bec[_0x432ab6(0x1f0)](),this[_0x432ab6(0x27e)][_0x432ab6(0x247)](_0x3eeb3f,_0x315bec),_0x315bec;}},exports['LiveShareController']=P([S(0x0,o[_0x141999(0x1dd)]),S(0x1,o[_0x141999(0x274)](o[_0x141999(0x1cb)])),S(0x2,o['Inject'](b[_0x141999(0x1ed)]))],exports[_0x141999(0x289)]);var u=(_0x18619f=>(_0x18619f['OFFLINE']=_0x141999(0x273),_0x18619f[_0x141999(0x262)]='idle',_0x18619f[_0x141999(0x261)]=_0x141999(0x29c),_0x18619f[_0x141999(0x1ce)]=_0x141999(0x2a2),_0x18619f[_0x141999(0x26a)]=_0x141999(0x215),_0x18619f))(u||{});const k=_0x141999(0x264),q=0xc8;exports[_0x141999(0x1fb)]=class extends o[_0x141999(0x254)]{constructor(_0x18f638,_0x5b567d,_0x1ed41b,_0xef47b8,_0x26bb3f){const _0x328e70=_0x141999;super(),_(this,_0x328e70(0x26c),new O[(_0x328e70(0x226))](_0x328e70(0x217))),_(this,_0x328e70(0x29d),this[_0x328e70(0x26c)][_0x328e70(0x25a)]()),_(this,_0x328e70(0x251),!0x1),_(this,'_commandDisposable',null),_(this,_0x328e70(0x21e),null),(this[_0x328e70(0x208)]=_0x18f638,this['_collabSession']=_0x5b567d,this[_0x328e70(0x26f)]=_0x1ed41b,this[_0x328e70(0x28a)]=_0xef47b8,this[_0x328e70(0x204)]=_0x26bb3f);}get[_0x141999(0x271)](){const _0x430a01=_0x141999;return this['_status$'][_0x430a01(0x259)]();}[_0x141999(0x1df)](){const _0x1ea98f=_0x141999;var _0x39541c;(_0x39541c=this['_commandDisposable'])==null||_0x39541c[_0x1ea98f(0x1df)](),this[_0x1ea98f(0x26c)][_0x1ea98f(0x24d)]('idle'),this[_0x1ea98f(0x26c)][_0x1ea98f(0x1d6)]();}[_0x141999(0x298)](){const _0x16cf93=_0x141999;return this[_0x16cf93(0x271)];}[_0x141999(0x1f0)](){const _0x204f44=_0x141999;this[_0x204f44(0x251)]||(this[_0x204f44(0x251)]=!0x0,this['_collabSession'][_0x204f44(0x21c)][_0x204f44(0x22e)](I[_0x204f44(0x20d)](this['dispose$']))['subscribe'](_0x2510e1=>{const _0x4d4bc3=_0x204f44;switch(_0x2510e1){case b[_0x4d4bc3(0x245)][_0x4d4bc3(0x256)]:this[_0x4d4bc3(0x294)]();break;case b['SessionStatus'][_0x4d4bc3(0x22a)]:this[_0x4d4bc3(0x220)]();break;}}),this[_0x204f44(0x23d)][_0x204f44(0x231)][_0x204f44(0x22e)](I['takeUntil'](this[_0x204f44(0x225)]))[_0x204f44(0x1cd)](_0x5e2913=>{const _0x3b6ec9=_0x204f44,{eventID:_0x5803a7}=_0x5e2913;switch(_0x5803a7){case d['CollaborationEvent'][_0x3b6ec9(0x20c)]:this['_handleNewHost'](_0x5e2913);break;case d[_0x3b6ec9(0x286)][_0x3b6ec9(0x1f4)]:this['_handleOperation'](_0x5e2913);break;case d[_0x3b6ec9(0x286)][_0x3b6ec9(0x1f7)]:this['_handleTerminate']();break;case d[_0x3b6ec9(0x286)][_0x3b6ec9(0x285)]:this[_0x3b6ec9(0x28e)](_0x5e2913);break;}}));}[_0x141999(0x28c)](){const _0x4f2107=_0x141999;this[_0x4f2107(0x23d)][_0x4f2107(0x228)]({'eventID':d[_0x4f2107(0x286)][_0x4f2107(0x23b)],'data':{'unitID':this[_0x4f2107(0x208)],'userID':this[_0x4f2107(0x23d)][_0x4f2107(0x26b)]()}},this['_unitID']);}[_0x141999(0x1fd)](){const _0xd68b4a=_0x141999;this[_0xd68b4a(0x271)]==='presenting'&&(this[_0xd68b4a(0x26c)]['next'](_0xd68b4a(0x217)),this[_0xd68b4a(0x23d)][_0xd68b4a(0x228)]({'eventID':d[_0xd68b4a(0x286)][_0xd68b4a(0x1f7)],'data':{'unitID':this[_0xd68b4a(0x208)]}},this[_0xd68b4a(0x208)]));}[_0x141999(0x222)](){const _0xdff30d=_0x141999;this['_status']==='not-following'&&(this[_0xdff30d(0x26c)][_0xdff30d(0x24d)]('following'),this[_0xdff30d(0x1e3)]());}['stopFollowing'](){const _0xdd31a7=_0x141999;this[_0xdd31a7(0x271)]===_0xdd31a7(0x29c)&&this[_0xdd31a7(0x2a5)]();}[_0x141999(0x1f5)](_0x362768){const _0x865d0d=_0x141999,{presenter:_0xfe7f1c}=_0x362768[_0x865d0d(0x21a)],_0x349ab6=this[_0x865d0d(0x23d)][_0x865d0d(0x26b)]();this['_presenter']=_0xfe7f1c,_0xfe7f1c===_0x349ab6?(this[_0x865d0d(0x2a5)](),this[_0x865d0d(0x209)]()):this['_status']!==_0x865d0d(0x2a2)&&(this[_0x865d0d(0x292)](),this[_0x865d0d(0x1e3)]());}['_fetchOperations'](){const _0x129272=_0x141999,_0x11b2d0={'eventID':d[_0x129272(0x286)][_0x129272(0x1e4)]};this['_collabSession'][_0x129272(0x228)](_0x11b2d0,this[_0x129272(0x208)]);}['_handleTerminate'](){const _0x1596cf=_0x141999;this[_0x1596cf(0x21e)]=null,this[_0x1596cf(0x271)]!=='presenting'&&this[_0x1596cf(0x252)]();}[_0x141999(0x28e)](_0x58c26a){const _0x59c12f=_0x141999;if(this[_0x59c12f(0x271)]===_0x59c12f(0x29c)&&this[_0x59c12f(0x21e)]===_0x58c26a[_0x59c12f(0x21a)][_0x59c12f(0x27c)]){const _0x3237d7=d['parseProtocolChangeset'](_0x58c26a['data'])[_0x59c12f(0x25f)]['reverse']()[_0x59c12f(0x1f2)](_0xa97cf9=>_0xa97cf9['id']===C[_0x59c12f(0x240)]['id']);if(_0x3237d7){const _0x35aee4=_0x3237d7[_0x59c12f(0x288)][_0x59c12f(0x291)],_0x198543=_0x3237d7[_0x59c12f(0x288)][_0x59c12f(0x20b)]['id'];setTimeout(()=>{const _0x42720a=_0x59c12f;this['_commandService'][_0x42720a(0x26e)](C[_0x42720a(0x2a6)]['id'],{'unitId':_0x35aee4,'subUnitId':_0x198543},{'fromCollab':!0x0});});}}}[_0x141999(0x209)](){const _0x4fc938=_0x141999;this['_status$'][_0x4fc938(0x24d)]('presenting');const _0x396629=new Map(),_0x558aa9=this['_commandDisposable']=new o[(_0x4fc938(0x216))]();_0x558aa9['add'](o[_0x4fc938(0x20a)](()=>{const _0x5c9f2a=_0x4fc938;_0x396629['forEach'](_0x5c561e=>_0x5c561e['complete']()),_0x396629[_0x5c9f2a(0x1e9)]();})),_0x558aa9[_0x4fc938(0x1e0)](this['_commandService'][_0x4fc938(0x253)](_0x39e4e5=>{const _0x7ae5ed=_0x4fc938;var _0x43b775;if(_0x39e4e5[_0x7ae5ed(0x211)]!==o['CommandType'][_0x7ae5ed(0x1d5)]||!this['_liveShareService']['shouldShareOperation'](_0x39e4e5['id']))return;const {id:_0x4ed897}=_0x39e4e5;let _0x4a74d5;_0x396629[_0x7ae5ed(0x21d)](_0x4ed897)?_0x4a74d5=_0x396629['get'](_0x4ed897):(_0x4a74d5=new O[(_0x7ae5ed(0x29b))](),_0x396629[_0x7ae5ed(0x247)](_0x4ed897,_0x4a74d5),_0x4a74d5['pipe'](I[_0x7ae5ed(0x1fa)]((_0x43b775=this[_0x7ae5ed(0x26f)][_0x7ae5ed(0x1eb)](k))!=null?_0x43b775:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x7ae5ed(0x1cd)](_0x3f5224=>{const _0x307054=_0x7ae5ed;this[_0x307054(0x23d)][_0x307054(0x228)]({'eventID':d[_0x307054(0x286)][_0x307054(0x1f4)],'data':{'unitID':this[_0x307054(0x208)],'operations':{[_0x3f5224['id']]:{'id':_0x3f5224['id'],'params':JSON['stringify'](_0x3f5224['params'])}}}},this['_unitID']);})),_0x4a74d5[_0x7ae5ed(0x24d)](_0x39e4e5);})),this[_0x4fc938(0x28a)][_0x4fc938(0x27b)](this[_0x4fc938(0x208)])[_0x4fc938(0x1d1)](_0x1c6335=>this[_0x4fc938(0x23d)]['send']({'eventID':d[_0x4fc938(0x286)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4fc938(0x208)],'operations':{[_0x1c6335['id']]:{'id':_0x1c6335['id'],'params':JSON['stringify'](_0x1c6335[_0x4fc938(0x288)])}}}},this[_0x4fc938(0x208)]));}[_0x141999(0x292)](){const _0x43983f=_0x141999;var _0x3a5b33;this[_0x43983f(0x26c)][_0x43983f(0x24d)](_0x43983f(0x217)),(_0x3a5b33=this[_0x43983f(0x1e6)])==null||_0x3a5b33[_0x43983f(0x1df)](),this[_0x43983f(0x1e6)]=null;}['_startFollowing'](){const _0x244299=_0x141999;var _0x1795c4;(_0x1795c4=this['_commandDisposable'])==null||_0x1795c4['dispose'](),this[_0x244299(0x26c)][_0x244299(0x24d)](_0x244299(0x29c));}[_0x141999(0x252)](){const _0x4ec7f5=_0x141999;var _0x586224;this[_0x4ec7f5(0x26c)][_0x4ec7f5(0x24d)](_0x4ec7f5(0x217)),(_0x586224=this[_0x4ec7f5(0x1e6)])==null||_0x586224[_0x4ec7f5(0x1df)](),this[_0x4ec7f5(0x1e6)]=null;}[_0x141999(0x2a5)](){const _0x59e98f=_0x141999;var _0x291d79;this[_0x59e98f(0x26c)][_0x59e98f(0x24d)](_0x59e98f(0x2a2)),(_0x291d79=this[_0x59e98f(0x1e6)])==null||_0x291d79[_0x59e98f(0x1df)]();}[_0x141999(0x25e)](_0x39570a){const _0x28d1b4=_0x141999;if([_0x28d1b4(0x215),_0x28d1b4(0x2a2),_0x28d1b4(0x273)][_0x28d1b4(0x258)](this['_status'])||!_0x39570a['data'][_0x28d1b4(0x224)]||_0x39570a[_0x28d1b4(0x21a)]['presenter']===this['_collabSession'][_0x28d1b4(0x26b)]())return;this['_status']===_0x28d1b4(0x217)&&this['_startFollowing']();const _0x4f258d=_0x39570a[_0x28d1b4(0x21a)][_0x28d1b4(0x201)];Object[_0x28d1b4(0x28b)](_0x4f258d)[_0x28d1b4(0x1d1)](_0x234472=>{const _0x40905d=_0x28d1b4;this[_0x40905d(0x204)][_0x40905d(0x26e)](_0x234472['id'],_0x234472[_0x40905d(0x288)]?JSON[_0x40905d(0x218)](_0x234472[_0x40905d(0x288)]):null,{'fromCollab':!0x0});});}[_0x141999(0x294)](){const _0xbe9bfc=_0x141999;var _0x10b2b3;this[_0xbe9bfc(0x26c)]['next'](_0xbe9bfc(0x273)),(_0x10b2b3=this['_commandDisposable'])==null||_0x10b2b3[_0xbe9bfc(0x1df)]();}[_0x141999(0x220)](){const _0x237fe0=_0x141999;this[_0x237fe0(0x26c)][_0x237fe0(0x24d)](_0x237fe0(0x217)),this[_0x237fe0(0x257)]();}},exports[_0x141999(0x1fb)]=P([S(0x2,o[_0x141999(0x1de)]),S(0x3,o[_0x141999(0x274)](E)),S(0x4,o[_0x141999(0x255)])],exports[_0x141999(0x1fb)]);function $(){const _0x8882d=_0x141999,_0x3bf566=p[_0x8882d(0x26d)](exports[_0x8882d(0x289)]),_0x41dba3=p[_0x8882d(0x26d)](o[_0x8882d(0x1dd)]),_0x5d719c=p[_0x8882d(0x269)](()=>_0x41dba3[_0x8882d(0x23e)](o[_0x8882d(0x223)][_0x8882d(0x1e5)]),void 0x0,!0x1,[]),[_0x280561,_0x1a4b8f]=v[_0x8882d(0x1e1)](null),[_0x54be5b,_0x561dbc]=v[_0x8882d(0x1e1)](u[_0x8882d(0x262)]),_0x5ff9c1=v[_0x8882d(0x22b)](null);return v['useEffect'](()=>(_0x5d719c&&_0x3bf566[_0x8882d(0x1ca)](_0x5d719c['getUnitId']())[_0x8882d(0x1f6)](_0xfe8b83=>{const _0x461040=_0x8882d;_0x1a4b8f(_0xfe8b83),_0x5ff9c1[_0x461040(0x1e2)]=_0xfe8b83[_0x461040(0x29d)][_0x461040(0x1cd)](_0x460367=>{_0x561dbc(_0x460367);});}),()=>{const _0x1a7c48=_0x8882d;var _0xb39d2e;(_0xb39d2e=_0x5ff9c1[_0x1a7c48(0x1e2)])==null||_0xb39d2e[_0x1a7c48(0x1ef)](),_0x5ff9c1[_0x1a7c48(0x1e2)]=null;}),[_0x5d719c,_0x3bf566]),_0x280561?l[_0x8882d(0x296)](f[_0x8882d(0x23f)],{'align':_0x8882d(0x202),'disabled':_0x54be5b===u['OFFLINE'],'className':_0x8882d(0x2a3),'overlay':l[_0x8882d(0x296)](W,{'status':_0x54be5b,'coordinator':_0x280561}),'children':l['jsx'](_0x8882d(0x200),{'className':f[_0x8882d(0x1f8)](_0x8882d(0x24c),{'univer-cursor-not-allowed':_0x54be5b===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x54be5b!==u['OFFLINE']}),'type':_0x8882d(0x200),'children':l[_0x8882d(0x296)](R,{'className':'univer-size-4'})})}):null;}function W(_0x28f90d){const _0x4b42ee=_0x141999,{status:_0x41f55d,coordinator:_0x236977}=_0x28f90d;switch(_0x41f55d){case u[_0x4b42ee(0x262)]:return l['jsx'](G,{'coordinator':_0x236977});case u[_0x4b42ee(0x261)]:return l['jsx'](B,{'coordinator':_0x236977});case u[_0x4b42ee(0x1ce)]:return l[_0x4b42ee(0x296)](Y,{'coordinator':_0x236977});case u[_0x4b42ee(0x256)]:return l[_0x4b42ee(0x296)](J,{});case u[_0x4b42ee(0x26a)]:return l['jsx'](Z,{'coordinator':_0x236977});default:return null;}}function G(_0x2e1e3d){const _0x3f612c=_0x141999,{coordinator:_0xc2ce45}=_0x2e1e3d;return l[_0x3f612c(0x22d)](l[_0x3f612c(0x241)],{'children':[l[_0x3f612c(0x296)](_0x3f612c(0x27a),{'className':_0x3f612c(0x22f),'children':_0x3f612c(0x27d)}),l[_0x3f612c(0x296)](f[_0x3f612c(0x275)],{'onClick':()=>_0xc2ce45[_0x3f612c(0x28c)](),'children':'Start'})]});}function B(_0x2fc9e2){const _0x28b5cf=_0x141999,{coordinator:_0x1d4624}=_0x2fc9e2;return l['jsxs'](l['Fragment'],{'children':[l[_0x28b5cf(0x296)](_0x28b5cf(0x27a),{'className':_0x28b5cf(0x22f),'children':_0x28b5cf(0x1c8)}),l[_0x28b5cf(0x296)](f[_0x28b5cf(0x275)],{'onClick':()=>_0x1d4624[_0x28b5cf(0x295)](),'children':_0x28b5cf(0x1d3)})]});}function Y(_0xca9c33){const _0x5c0e42=_0x141999,{coordinator:_0x422549}=_0xca9c33;return l[_0x5c0e42(0x22d)](l['Fragment'],{'children':[l[_0x5c0e42(0x296)](_0x5c0e42(0x27a),{'className':_0x5c0e42(0x22f),'children':_0x5c0e42(0x260)}),l['jsx'](f[_0x5c0e42(0x275)],{'variant':_0x5c0e42(0x244),'onClick':()=>_0x422549[_0x5c0e42(0x222)](),'children':_0x5c0e42(0x24e)})]});}function Z(_0x3fbbd2){const _0x3f6c7=_0x141999,{coordinator:_0x23a2af}=_0x3fbbd2;return l['jsxs'](l[_0x3f6c7(0x241)],{'children':[l[_0x3f6c7(0x296)](_0x3f6c7(0x27a),{'className':_0x3f6c7(0x22f),'children':_0x3f6c7(0x279)}),l[_0x3f6c7(0x296)](f['Button'],{'variant':_0x3f6c7(0x29a),'onClick':()=>_0x23a2af[_0x3f6c7(0x1fd)](),'children':_0x3f6c7(0x249)})]});}function J(){const _0x1b86c2=_0x141999;return l[_0x1b86c2(0x296)](l[_0x1b86c2(0x241)],{'children':_0x1b86c2(0x24b)});}var K=Object[_0x141999(0x248)],z=(_0x56528b,_0x1f678c,_0x10e4c0,_0x1b1fd2)=>{const _0x56e61f=_0x141999;for(var _0xed6429=_0x1b1fd2>0x1?void 0x0:_0x1b1fd2?K(_0x1f678c,_0x10e4c0):_0x1f678c,_0xcc9e20=_0x56528b[_0x56e61f(0x246)]-0x1,_0x14d481;_0xcc9e20>=0x0;_0xcc9e20--)(_0x14d481=_0x56528b[_0xcc9e20])&&(_0xed6429=_0x14d481(_0xed6429)||_0xed6429);return _0xed6429;},L=(_0x255621,_0x3bb99e)=>(_0x382a96,_0x424c22)=>_0x3bb99e(_0x382a96,_0x424c22,_0x255621);exports[_0x141999(0x1d8)]=class extends o[_0x141999(0x21b)]{constructor(_0x381072,_0x30976a){const _0x5c29b1=_0x141999;super(),this[_0x5c29b1(0x219)]=_0x381072,this[_0x5c29b1(0x2a0)]=_0x30976a,this[_0x5c29b1(0x268)]();}[_0x141999(0x268)](){const _0x3fd802=_0x141999;this[_0x3fd802(0x1f3)](this[_0x3fd802(0x2a0)]['registerComponent'](p[_0x3fd802(0x25d)]['HEADER_MENU'],()=>p[_0x3fd802(0x25b)]($,this[_0x3fd802(0x219)])));}},exports[_0x141999(0x1d8)]=z([L(0x0,o[_0x141999(0x274)](o[_0x141999(0x1cb)])),L(0x1,p[_0x141999(0x238)])],exports[_0x141999(0x1d8)]);const Q=_0x141999(0x234),w={};var X=Object[_0x141999(0x248)],ee=(_0x5124b,_0x2a1d45,_0x72437b,_0x1be898)=>{const _0x3fdad3=_0x141999;for(var _0x3522d2=_0x1be898>0x1?void 0x0:_0x1be898?X(_0x2a1d45,_0x72437b):_0x2a1d45,_0x58eaea=_0x5124b[_0x3fdad3(0x246)]-0x1,_0x2f8c90;_0x58eaea>=0x0;_0x58eaea--)(_0x2f8c90=_0x5124b[_0x58eaea])&&(_0x3522d2=_0x2f8c90(_0x3522d2)||_0x3522d2);return _0x3522d2;},te=(_0x1703a5,_0x307e24)=>(_0x2aa160,_0x5a2493)=>_0x307e24(_0x2aa160,_0x5a2493,_0x1703a5);let m=class extends o[_0x141999(0x21b)]{constructor(_0x13d79f){const _0xe43b72=_0x141999;super(),this[_0xe43b72(0x28a)]=_0x13d79f,this[_0xe43b72(0x251)]();}['_init'](){const _0x199803=_0x141999;[D[_0x199803(0x203)]['id'],D[_0x199803(0x276)]['id'],C['SetWorksheetActiveOperation']['id']][_0x199803(0x1d1)](_0x440828=>{const _0x3dd0a8=_0x199803;this[_0x3dd0a8(0x1f3)](this[_0x3dd0a8(0x28a)][_0x3dd0a8(0x281)](_0x440828));});}};m=ee([te(0x0,o['Inject'](E))],m);function _0x3491(){const _0x4380fe=['startFollowing','UniverInstanceType','presenter','dispose$','BehaviorSubject','path','send','touchDependencies','ONLINE','useRef','4237458lhWbbG','jsxs','pipe','univer-mb-3\x20univer-w-full\x20univer-text-sm','LiveShare','event$','_config','string','live-share.config','attrs','Plugin','5212LBzaaa','IUIPartsService','idSuffix','mergeOverrideWithDependencies','LIVESHARE_REQUEST_HOST','getLiveShareCoordinatorSync','_collabSession','getCurrentTypeOfUnit$','Dropdown','InsertSheetMutation','Fragment','fill','map','text','SessionStatus','length','set','getOwnPropertyDescriptor','Stop\x20presenting','360621LjMyfu','You\x27are\x20offline.','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','next','Start\x20following','replace','_collabSessionService','_init','_beIdle','onCommandExecuted','RxDisposable','ICommandService','OFFLINE','_fetchOperations','includes','getValue','asObservable','connectInjector','symbol','BuiltInUIPart','_handleOperation','mutations','You\x27re\x20not\x20following\x20the\x20presenter','FOLLOWING','IDLE','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','SAME_OPERATION_SHARE_INTERVAL','0\x200\x2017\x2017','4191950RGIfgv','use','_mountLiveShare','useObservable','PRESENTING','getMemberID','_status$','useDependency','executeCommand','_configService','toString','_status','UNIVER_UNKNOWN','offline','Inject','Button','SetScrollOperation','univerjs-icon\x20univerjs-icon-','7598616KhFCSU','You\x27re\x20presenting\x20the\x20document','div','getInitialStates','memberID','Present\x20this\x20document','_entities','5782dWRXvi','none','registerSharedOperation','_univerInstanceService','getTypeOfUnitAdded$','getUnitId','NEW_CHANGESETS','CollaborationEvent','pluginName','params','LiveShareController','_liveShareService','values','tryStartPresenting','1em','_handleNewChangeSets','getTypeOfUnitDisposed$','forwardRef','unitId','_stopPresenting','defIds','_handleOffline','stopFollowing','jsx','entries','getStatus','get','default','Subject','following','status$','requireSession','assign','_uiPartsService','mask','not-following','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','_startLiveShareCoordinator','_stopFollowing','SetWorksheetActiveOperation','UniverLiveSharePlugin','You\x27re\x20following\x20the\x20presenter','registerInitialStateReporter','getLiveShareCoordinator','Injector','defineProperty','subscribe','NOT_FOLLOWING','xlink:href','shouldShareOperation','forEach','LiveShareStatus','Stop\x20following','createInstance','OPERATION','complete','5376xKPeFT','DesktopLiveShareController','776636VkzfpA','UniverCollaborationClientPlugin','LiveShareIcon','trim','IUniverInstanceService','IConfigService','dispose','add','useState','current','_startFollowing','LIVESHARE_FETCH_OPERATIONS','UNIVER_SHEET','_commandDisposable','Module','toStringTag','clear','displayName','getConfig','from','CollaborationSessionService','merge','unsubscribe','init','random','find','disposeWithMe','LIVESHARE_OPERATION','_handleNewHost','then','LIVESHARE_TERMINATE','clsx','live-share-icon','throttleTime','LiveShareCoordinator','defs','stopPresenting','delete','override','button','operations','end','SetZoomRatioOperation','_commandService','3285DHjWAP','tag','_reporters','_unitID','_startPresenting','toDisposable','sheet','LIVESHARE_NEW_HOST','takeUntil','_sharedOperations','2LvYLOy','children','type','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','svg','evenodd','presenting','DisposableCollection','idle','parse','_injector','data','Disposable','sessionStatus$','has','_presenter','colorChannel1','_handleOnline','url(#$1'];_0x3491=function(){return _0x4380fe;};return _0x3491();}var ie=Object['defineProperty'],se=Object['getOwnPropertyDescriptor'],ne=(_0x1a84e0,_0x5e1e2e,_0x3b06ce)=>_0x5e1e2e in _0x1a84e0?ie(_0x1a84e0,_0x5e1e2e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b06ce}):_0x1a84e0[_0x5e1e2e]=_0x3b06ce,re=(_0x33636b,_0x26d19a,_0x7c8f79,_0x190d3e)=>{const _0x5b82d2=_0x141999;for(var _0x30e586=_0x190d3e>0x1?void 0x0:_0x190d3e?se(_0x26d19a,_0x7c8f79):_0x26d19a,_0x99c3ec=_0x33636b[_0x5b82d2(0x246)]-0x1,_0x1d18c2;_0x99c3ec>=0x0;_0x99c3ec--)(_0x1d18c2=_0x33636b[_0x99c3ec])&&(_0x30e586=_0x1d18c2(_0x30e586)||_0x30e586);return _0x30e586;},N=(_0x20bab5,_0x407579)=>(_0x1178aa,_0x3620c1)=>_0x407579(_0x1178aa,_0x3620c1,_0x20bab5),A=(_0x2918b6,_0x3987d5,_0x538cf0)=>ne(_0x2918b6,typeof _0x3987d5!=_0x141999(0x25c)?_0x3987d5+'':_0x3987d5,_0x538cf0);const oe='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x141999(0x1c7)]=class extends o[_0x141999(0x236)]{constructor(_0x480d5b=w,_0x71c347,_0x2274b1){const _0x3e2655=_0x141999;super(),this[_0x3e2655(0x232)]=_0x480d5b,this[_0x3e2655(0x219)]=_0x71c347,this[_0x3e2655(0x26f)]=_0x2274b1;const {..._0x31624c}=o[_0x3e2655(0x1ee)]({},w,this[_0x3e2655(0x232)]);this[_0x3e2655(0x26f)]['setConfig'](Q,_0x31624c);}['onStarting'](){const _0x533edf=_0x141999;o['registerDependencies'](this['_injector'],o[_0x533edf(0x23a)]([[E],[exports['LiveShareController']],[m],[exports['DesktopLiveShareController']]],this[_0x533edf(0x232)][_0x533edf(0x1ff)])),o[_0x533edf(0x229)](this[_0x533edf(0x219)],[[m]]);}['onRendered'](){const _0xd767c0=_0x141999;o['touchDependencies'](this['_injector'],[[exports[_0xd767c0(0x1d8)]]]);}},A(exports[_0x141999(0x1c7)],_0x141999(0x211),o['UniverInstanceType'][_0x141999(0x272)]),A(exports['UniverLiveSharePlugin'],_0x141999(0x287),oe),exports[_0x141999(0x1c7)]=re([o['DependentOn'](b[_0x141999(0x1da)]),N(0x1,o[_0x141999(0x274)](o[_0x141999(0x1cb)])),N(0x2,o[_0x141999(0x1de)])],exports['UniverLiveSharePlugin']),exports[_0x141999(0x230)]=$,exports['LiveShareService']=E,exports[_0x141999(0x1d2)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x40c1ea=_0x58c7;(function(_0x1c25f9,_0x3f0424){const _0x2dfd3c=_0x58c7,_0x44629a=_0x1c25f9();while(!![]){try{const _0x133a23=parseInt(_0x2dfd3c(0xf8))/0x1+-parseInt(_0x2dfd3c(0xe3))/0x2*(parseInt(_0x2dfd3c(0xdf))/0x3)+-parseInt(_0x2dfd3c(0xf1))/0x4*(parseInt(_0x2dfd3c(0xf6))/0x5)+-parseInt(_0x2dfd3c(0xe0))/0x6*(-parseInt(_0x2dfd3c(0xf5))/0x7)+parseInt(_0x2dfd3c(0xe2))/0x8+parseInt(_0x2dfd3c(0xde))/0x9*(-parseInt(_0x2dfd3c(0xe7))/0xa)+-parseInt(_0x2dfd3c(0xed))/0xb*(-parseInt(_0x2dfd3c(0xdb))/0xc);if(_0x133a23===_0x3f0424)break;else _0x44629a['push'](_0x44629a['shift']());}catch(_0x5cfcdd){_0x44629a['push'](_0x44629a['shift']());}}}(_0xdb34,0xbf0c6));import{LiveShareController as _0x366aa2,LiveShareStatus as _0x1225ab}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x43ded8}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0xc08bb4}from'@univerjs/sheets';import{SetScrollOperation as _0x1df6e2}from'@univerjs/sheets-ui';import{FRange as _0x4e1153}from'@univerjs/sheets/facade';import{FUniver as _0x1b330d,FEnum as _0x38e9b6}from'@univerjs/core/facade';class I extends _0x4e1153{[_0x40c1ea(0xda)](_0x444e1d,_0x153f7c,_0x171791,_0x5aa139,_0x4d4431){const _0x12dd07=_0x40c1ea,_0x5b61f6=_0x444e1d[_0x12dd07(0xeb)](_0x366aa2),_0x498491=_0x444e1d[_0x12dd07(0xeb)](_0x43ded8),_0x4a889c=_0x153f7c[_0x12dd07(0xe8)](),_0x1554d2=_0x153f7c[_0x12dd07(0xf4)](),_0x2a03fe=_0x5b61f6[_0x12dd07(0xd9)](_0x4a889c);(_0x2a03fe==null?void 0x0:_0x2a03fe[_0x12dd07(0xec)]())!==_0x1225ab[_0x12dd07(0xfd)]||(_0x171791[_0x12dd07(0xe4)]()!==_0x1554d2[_0x12dd07(0xe4)]()&&this[_0x12dd07(0xfb)][_0x12dd07(0xe1)](_0xc08bb4['id'],{'unitId':_0x4a889c,'subUnitId':_0x171791['getSheetId']()}),!_0x498491['getRenderById'](_0x4a889c))||_0x4d4431['syncExecuteCommand'](_0x1df6e2['id'],{'unitId':_0x153f7c['getUnitId'](),'sheetId':_0x171791['getSheetId'](),'sheetViewStartRow':_0x5aa139[_0x12dd07(0xef)],'sheetViewStartColumn':_0x5aa139[_0x12dd07(0xf7)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4e1153[_0x40c1ea(0xdc)](I);function _0x58c7(_0x5e76f4,_0x50f3ab){const _0xdb34c9=_0xdb34();return _0x58c7=function(_0x58c7d3,_0x36f5b5){_0x58c7d3=_0x58c7d3-0xd9;let _0x53eaa5=_0xdb34c9[_0x58c7d3];return _0x53eaa5;},_0x58c7(_0x5e76f4,_0x50f3ab);}class m extends _0x1b330d{[_0x40c1ea(0xfc)](){const _0x29c13e=_0x40c1ea;var _0x3fdcfb,_0x36806b;const _0x2549cd=this[_0x29c13e(0xe5)][_0x29c13e(0xeb)](_0x366aa2),_0x124653=(_0x3fdcfb=this[_0x29c13e(0xf9)]())==null?void 0x0:_0x3fdcfb[_0x29c13e(0xdd)]();if(!_0x124653)throw new Error('No\x20active\x20workbook\x20found.');const _0x1021a4=_0x2549cd['getLiveShareCoordinatorSync'](_0x124653);return(_0x36806b=_0x1021a4==null?void 0x0:_0x1021a4[_0x29c13e(0xec)]())!=null?_0x36806b:_0x1225ab[_0x29c13e(0xea)];}[_0x40c1ea(0xfa)](){const _0x3c4a92=_0x40c1ea;var _0x3a9550;const _0x49c930=this['_injector'][_0x3c4a92(0xeb)](_0x366aa2),_0x33956e=(_0x3a9550=this['getActiveWorkbook']())==null?void 0x0:_0x3a9550[_0x3c4a92(0xdd)]();if(!_0x33956e)throw new Error(_0x3c4a92(0xe6));const _0x59a327=_0x49c930[_0x3c4a92(0xd9)](_0x33956e);if(!_0x59a327)throw new Error(_0x3c4a92(0xf2));_0x59a327[_0x3c4a92(0xfa)]();}[_0x40c1ea(0xe9)](){const _0x2ec6dc=_0x40c1ea;var _0xaa8795;const _0x55e69d=this['_injector'][_0x2ec6dc(0xeb)](_0x366aa2),_0x17c2d7=(_0xaa8795=this[_0x2ec6dc(0xf9)]())==null?void 0x0:_0xaa8795[_0x2ec6dc(0xdd)]();if(!_0x17c2d7)throw new Error('No\x20active\x20workbook\x20found.');const _0x4fddf0=_0x55e69d[_0x2ec6dc(0xd9)](_0x17c2d7);if(!_0x4fddf0)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4fddf0[_0x2ec6dc(0xe9)]();}[_0x40c1ea(0xee)](){const _0x5dbf5c=_0x40c1ea;var _0x105c4e;const _0x31b24a=this[_0x5dbf5c(0xe5)][_0x5dbf5c(0xeb)](_0x366aa2),_0x3d4ed0=(_0x105c4e=this[_0x5dbf5c(0xf9)]())==null?void 0x0:_0x105c4e['getId']();if(!_0x3d4ed0)throw new Error('No\x20active\x20workbook\x20found.');const _0x5747e3=_0x31b24a[_0x5dbf5c(0xd9)](_0x3d4ed0);if(!_0x5747e3)throw new Error(_0x5dbf5c(0xf2));_0x5747e3[_0x5dbf5c(0xf0)]();}['stopPresenting'](){const _0x1cbfb0=_0x40c1ea;var _0x12eac9;const _0x2604be=this[_0x1cbfb0(0xe5)]['get'](_0x366aa2),_0x50e455=(_0x12eac9=this[_0x1cbfb0(0xf9)]())==null?void 0x0:_0x12eac9[_0x1cbfb0(0xdd)]();if(!_0x50e455)throw new Error(_0x1cbfb0(0xe6));const _0x5c5126=_0x2604be['getLiveShareCoordinatorSync'](_0x50e455);if(!_0x5c5126)throw new Error(_0x1cbfb0(0xf2));_0x5c5126[_0x1cbfb0(0xf3)]();}}_0x1b330d[_0x40c1ea(0xdc)](m);function _0xdb34(){const _0x30e162=['startFollowing','_commandService','getLiveShareStatus','PRESENTING','getLiveShareCoordinatorSync','_initialize','60bgTSrn','extend','getId','8829342dLfQBR','6SlEwxg','6uxKadF','executeCommand','1610536EFAGVB','720532IyiOzw','getSheetId','_injector','No\x20active\x20workbook\x20found.','10DeEzbi','getUnitId','stopFollowing','IDLE','get','getStatus','2944447aoZHCh','startPresenting','startRow','tryStartPresenting','6988jOTUMx','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','stopPresenting','getActiveSheet','3933881KFFqIT','2225TTihzU','startColumn','1159834FwRAJE','getActiveWorkbook'];_0xdb34=function(){return _0x30e162;};return _0xdb34();}class C extends _0x38e9b6{get['LiveShareStatusEnum'](){return _0x1225ab;}}_0x38e9b6['extend'](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x31e0fe=_0x2156;(function(_0x790349,_0x474d36){const _0x1fc443=_0x2156,_0x42c72b=_0x790349();while(!![]){try{const _0x2d8182=-parseInt(_0x1fc443(0x122))/0x1+-parseInt(_0x1fc443(0x159))/0x2*(parseInt(_0x1fc443(0x14a))/0x3)+parseInt(_0x1fc443(0x110))/0x4*(parseInt(_0x1fc443(0xf1))/0x5)+parseInt(_0x1fc443(0x103))/0x6*(parseInt(_0x1fc443(0xc1))/0x7)+-parseInt(_0x1fc443(0x106))/0x8+-parseInt(_0x1fc443(0x11b))/0x9+parseInt(_0x1fc443(0x157))/0xa;if(_0x2d8182===_0x474d36)break;else _0x42c72b['push'](_0x42c72b['shift']());}catch(_0x1d3f65){_0x42c72b['push'](_0x42c72b['shift']());}}}(_0x5b50,0x699ec));var J=Object[_0x31e0fe(0x11e)],K=(_0x3db337,_0x2b126c,_0x131200)=>_0x2b126c in _0x3db337?J(_0x3db337,_0x2b126c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x131200}):_0x3db337[_0x2b126c]=_0x131200,u=(_0x2520db,_0x21a086,_0x52a2b9)=>K(_0x2520db,typeof _0x21a086!=_0x31e0fe(0x114)?_0x21a086+'':_0x21a086,_0x52a2b9);import{Disposable as _0x228b43,toDisposable as _0x5ef63b,IUniverInstanceService as _0x317c62,Inject as _0x3458e3,Injector as _0x5618b7,IConfigService as _0x1c3f63,ICommandService as _0x1e5b71,RxDisposable as _0x2500e7,UniverInstanceType as _0x43d276,DisposableCollection as _0x24f9a5,CommandType as _0x2a21f4,DependentOn as _0x34be54,Plugin as _0x4e1973,merge as _0x50ef25,registerDependencies as _0x484001,mergeOverrideWithDependencies as _0x3f0d95,touchDependencies as _0x24c6ea}from'@univerjs/core';import{useDependency as _0x28b1d7,useObservable as _0x20ed0a,IUIPartsService as _0x584a6b,BuiltInUIPart as _0x3c0cfc,connectInjector as _0x18b5ed}from'@univerjs/ui';import{jsx as _0x17901e,jsxs as _0x19be63,Fragment as _0x30f380}from'react/jsx-runtime';import{Dropdown as _0x24d95f,clsx as _0x4bc289,Button as _0x22044f}from'@univerjs/design';function _0x5b50(){const _0x403622=['complete','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','attrs','string','idle','HEADER_MENU','ONLINE','unsubscribe','data','reverse','random','following','1em','registerSharedOperation','NEW_CHANGESETS','0\x200\x2017\x2017','onCommandExecuted','replace','_handleNewHost','defIds','LIVESHARE_OPERATION','getLiveShareCoordinatorSync','evenodd','NOT_FOLLOWING','mask','getCurrentTypeOfUnit$','getLiveShareCoordinator','UNIVER_UNKNOWN','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','SAME_OPERATION_SHARE_INTERVAL','memberID','_status$','disposeWithMe','getValue','_commandDisposable','480295qHdBbQ','setConfig','LIVESHARE_TERMINATE','_handleOperation','xlink:href','dispose','next','_beIdle','delete','getTypeOfUnitDisposed$','colorChannel1','has','You\x27re\x20following\x20the\x20presenter','entries','_fetchOperations','_unitID','_config','_uiPartsService','92898KiFgFq','_startFollowing','_handleTerminate','323048AUHuog','stopPresenting','_stopFollowing','_liveShareService','add','end','stopFollowing','_reporters','fill','includes','4mTxtLu','FOLLOWING','_sharedOperations','tag','symbol','_collabSessionService','_init','path','_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','status$','4246020rGffZR','_presenter','_handleNewChangeSets','defineProperty','LiveShareIcon','UNIVER_LIVE_SHARE_PLUGIN','_handleOffline','637803ciwrbA','shouldShareOperation','asObservable','div','presenter','then','IDLE','createInstance','parse','none','get','_configService','live-share.config','currentColor','sheet','type','sessionStatus$','onRendered','assign','map','params','Start\x20following','_univerInstanceService','_injector','substring','UNIVER_SHEET','getStatus','UniverIcon','_entities','OFFLINE','getOwnPropertyDescriptor','LIVESHARE_REQUEST_HOST','getInitialStates','Stop\x20following','idSuffix','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','children','subscribe','send','_stopPresenting','186702lzSbsx','executeCommand','stringify','_startLiveShareCoordinator','univerjs-icon\x20univerjs-icon-','forEach','dispose$','set','univer-mb-3\x20univer-w-full\x20univer-text-sm','PRESENTING','_startPresenting','toString','length','13802580beKSVg','requireSession','14eUSTeb','text','You\x27re\x20not\x20following\x20the\x20presenter','getUnitId','not-following','button','_handleOnline','unitId','startFollowing','displayName','getConfig','values','event$','Stop\x20presenting','245EOypGV','current','LIVESHARE_NEW_HOST','offline','pipe','_collabSession','url(#$1','_commandService','presenting','getMemberID','You\x27are\x20offline.','onStarting','Present\x20this\x20document'];_0x5b50=function(){return _0x403622;};return _0x5b50();}import{useRef as _0x58a2f7,createElement as _0x2db518,forwardRef as _0x42a9a1,useState as _0x5e4848,useEffect as _0x5a2871}from'react';import{CollaborationEvent as _0x51229d,parseProtocolChangeset as _0x18e355}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x537dba,SessionStatus as _0x41a8e6,UniverCollaborationClientPlugin as _0xe5cc13}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x20a015,SetWorksheetActiveOperation as _0x51cc86}from'@univerjs/sheets';import{BehaviorSubject as _0x3363c0,Subject as _0x412524}from'rxjs';import{takeUntil as _0xf2e89d,throttleTime as _0x2c8eeb}from'rxjs/operators';import{SetZoomRatioOperation as _0x516bb6,SetScrollOperation as _0x4ac1aa}from'@univerjs/sheets-ui';function k({ref:_0x1bd7a8,..._0x2e1589}){const _0x5a18c2=_0x31e0fe,{icon:_0x40c36a,id:_0x166bb7,className:_0x3775b2,extend:_0x27651e,..._0x97945c}=_0x2e1589,_0x5348b6=(_0x5a18c2(0x14e)+_0x166bb7+'\x20'+(_0x3775b2||''))['trim'](),_0x6c74a7=_0x58a2f7('_'+Oe());return G(_0x40c36a,''+_0x166bb7,{'defIds':_0x40c36a[_0x5a18c2(0xe1)],'idSuffix':_0x6c74a7[_0x5a18c2(0xc2)]},{'ref':_0x1bd7a8,'className':_0x5348b6,..._0x97945c},_0x27651e);}function G(_0x44b7a0,_0x8b3723,_0x512f4d,_0x18cfe5,_0x2e6872){const _0x33b159=_0x31e0fe;return _0x2db518(_0x44b7a0['tag'],{'key':_0x8b3723,...be(_0x44b7a0,_0x512f4d,_0x2e6872),..._0x18cfe5},(Ee(_0x44b7a0,_0x512f4d)[_0x33b159(0x146)]||[])[_0x33b159(0x135)]((_0x44d82a,_0x195b36)=>G(_0x44d82a,_0x8b3723+'-'+_0x44b7a0['tag']+'-'+_0x195b36,_0x512f4d,void 0x0,_0x2e6872)));}function be(_0x50d6a7,_0xb55631,_0x53c9b4){const _0x36e0e3=_0x31e0fe,_0x52e9f7={..._0x50d6a7['attrs']};_0x53c9b4!=null&&_0x53c9b4[_0x36e0e3(0xfb)]&&_0x52e9f7[_0x36e0e3(0x10e)]==='colorChannel1'&&(_0x52e9f7[_0x36e0e3(0x10e)]=_0x53c9b4['colorChannel1']),_0x50d6a7[_0x36e0e3(0x113)]===_0x36e0e3(0xe6)&&_0x52e9f7['id']&&(_0x52e9f7['id']=_0x52e9f7['id']+_0xb55631[_0x36e0e3(0x144)]),Object['entries'](_0x52e9f7)[_0x36e0e3(0x14f)](([_0x2ed913,_0x1b370f])=>{const _0x233cc7=_0x36e0e3;_0x2ed913===_0x233cc7(0xe6)&&typeof _0x1b370f=='string'&&(_0x52e9f7[_0x2ed913]=_0x1b370f[_0x233cc7(0xdf)](/url\(#(.*)\)/,_0x233cc7(0xc7)+_0xb55631[_0x233cc7(0x144)]+')'));});const {defIds:_0x3854fb}=_0xb55631;return!_0x3854fb||_0x3854fb[_0x36e0e3(0x156)]===0x0||(_0x50d6a7[_0x36e0e3(0x113)]==='use'&&_0x52e9f7['xlink:href']&&(_0x52e9f7['xlink:href']=_0x52e9f7[_0x36e0e3(0xf5)]+_0xb55631[_0x36e0e3(0x144)]),Object[_0x36e0e3(0xfe)](_0x52e9f7)[_0x36e0e3(0x14f)](([_0x1c5354,_0x11f227])=>{const _0x3666a3=_0x36e0e3;typeof _0x11f227==_0x3666a3(0xd1)&&(_0x52e9f7[_0x1c5354]=_0x11f227['replace'](/url\(#(.*)\)/,_0x3666a3(0xc7)+_0xb55631[_0x3666a3(0x144)]+')'));})),_0x52e9f7;}function Ee(_0x55b46f,_0x8f397){const _0x3f08c6=_0x31e0fe;var _0x41eb48;const {defIds:_0x4dffc6}=_0x8f397;return!_0x4dffc6||_0x4dffc6['length']===0x0?_0x55b46f:_0x55b46f['tag']==='defs'&&((_0x41eb48=_0x55b46f[_0x3f08c6(0x146)])!=null&&_0x41eb48[_0x3f08c6(0x156)])?{..._0x55b46f,'children':_0x55b46f['children'][_0x3f08c6(0x135)](_0x26a332=>typeof _0x26a332[_0x3f08c6(0xd0)]['id']==_0x3f08c6(0xd1)&&_0x4dffc6&&_0x4dffc6['includes'](_0x26a332[_0x3f08c6(0xd0)]['id'])?{..._0x26a332,'attrs':{..._0x26a332[_0x3f08c6(0xd0)],'id':_0x26a332[_0x3f08c6(0xd0)]['id']+_0x8f397['idSuffix']}}:_0x26a332)}:_0x55b46f;}function Oe(){const _0x2c1d6a=_0x31e0fe;return Math[_0x2c1d6a(0xd8)]()[_0x2c1d6a(0x155)](0x24)[_0x2c1d6a(0x13a)](0x2,0x8);}k[_0x31e0fe(0xbc)]=_0x31e0fe(0x13d);const we={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x31e0fe(0x12b),'viewBox':_0x31e0fe(0xdd),'width':_0x31e0fe(0xda),'height':_0x31e0fe(0xda)},'children':[{'tag':_0x31e0fe(0x117),'attrs':{'fill':'currentColor','d':_0x31e0fe(0xcf)}},{'tag':_0x31e0fe(0x117),'attrs':{'fill':_0x31e0fe(0x12f),'d':_0x31e0fe(0xea),'fillRule':_0x31e0fe(0xe4),'clipRule':_0x31e0fe(0xe4)}}]},W=_0x42a9a1(function(_0x493e85,_0x258d8f){const _0x1efa15=_0x31e0fe;return _0x2db518(k,Object[_0x1efa15(0x134)]({},_0x493e85,{'id':'live-share-icon','ref':_0x258d8f,'icon':we}));});W['displayName']=_0x31e0fe(0x11f);class L extends _0x228b43{constructor(){const _0x4533b7=_0x31e0fe;super(...arguments),u(this,_0x4533b7(0x112),new Set()),u(this,_0x4533b7(0x10d),new Set());}[_0x31e0fe(0xdb)](_0x15536a){const _0x56d8f9=_0x31e0fe;return this[_0x56d8f9(0x112)][_0x56d8f9(0x10a)](_0x15536a),_0x5ef63b(()=>this[_0x56d8f9(0x112)]['delete'](_0x15536a));}['registerInitialStateReporter'](_0x316e22){const _0x5d38e1=_0x31e0fe;return this[_0x5d38e1(0x10d)]['add'](_0x316e22),_0x5ef63b(()=>this['_reporters'][_0x5d38e1(0xf9)](_0x316e22));}[_0x31e0fe(0x123)](_0x46da99){const _0x1724a1=_0x31e0fe;return this[_0x1724a1(0x112)][_0x1724a1(0xfc)](_0x46da99);}[_0x31e0fe(0x142)](_0xeedf09){const _0x25bba2=_0x31e0fe;return Array['from'](this[_0x25bba2(0x10d)])[_0x25bba2(0x135)](_0x29dc5d=>_0x29dc5d(_0xeedf09));}}var Ne=Object[_0x31e0fe(0x140)],Y=(_0x45d860,_0x73ba24,_0x1579c0,_0xf72ddc)=>{for(var _0xaba4a=_0xf72ddc>0x1?void 0x0:_0xf72ddc?Ne(_0x73ba24,_0x1579c0):_0x73ba24,_0x1001e9=_0x45d860['length']-0x1,_0x3aba27;_0x1001e9>=0x0;_0x1001e9--)(_0x3aba27=_0x45d860[_0x1001e9])&&(_0xaba4a=_0x3aba27(_0xaba4a)||_0xaba4a);return _0xaba4a;},_=(_0x18447b,_0x497803)=>(_0x314039,_0x593479)=>_0x497803(_0x314039,_0x593479,_0x18447b);let S=class extends _0x2500e7{constructor(_0x55eb58,_0x4da080,_0x171ff1){const _0x22c51f=_0x31e0fe;super(),u(this,'_entities',new Map()),(this[_0x22c51f(0x138)]=_0x55eb58,this[_0x22c51f(0x139)]=_0x4da080,this[_0x22c51f(0x115)]=_0x171ff1,this['_init']());}async[_0x31e0fe(0xe8)](_0xa6ccb7){const _0x43ebec=_0x31e0fe;return this['_entities'][_0x43ebec(0xfc)](_0xa6ccb7)||await this[_0x43ebec(0x14d)](_0xa6ccb7),this['_entities']['get'](_0xa6ccb7);}[_0x31e0fe(0xe3)](_0x1a3558){const _0x608d02=_0x31e0fe;var _0x5a03cb;return(_0x5a03cb=this[_0x608d02(0x13e)][_0x608d02(0x12c)](_0x1a3558))!=null?_0x5a03cb:null;}['_init'](){const _0x217b4e=_0x31e0fe;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x43d276[_0x217b4e(0x13b)])[_0x217b4e(0xc5)](_0xf2e89d(this[_0x217b4e(0x150)]))[_0x217b4e(0x147)](async _0x251488=>{const _0x1751d0=_0x217b4e,_0x52792f=_0x251488['getUnitId']();this[_0x1751d0(0x13e)][_0x1751d0(0xfc)](_0x52792f)||this[_0x1751d0(0x14d)](_0x52792f);}),this[_0x217b4e(0x138)][_0x217b4e(0xfa)](_0x43d276[_0x217b4e(0x13b)])[_0x217b4e(0xc5)](_0xf2e89d(this[_0x217b4e(0x150)]))['subscribe'](_0x1eb536=>{const _0x436c8d=_0x217b4e,_0x208fcd=_0x1eb536[_0x436c8d(0x15c)](),_0x3d33dd=this[_0x436c8d(0x13e)][_0x436c8d(0x12c)](_0x208fcd);_0x3d33dd==null||_0x3d33dd[_0x436c8d(0xf6)]();});}async[_0x31e0fe(0x14d)](_0x14b2bc){const _0x2c26b4=_0x31e0fe,_0x14256a=await this[_0x2c26b4(0x115)][_0x2c26b4(0x158)](_0x14b2bc),_0x14cf32=this['_injector'][_0x2c26b4(0x129)](N,_0x14b2bc,_0x14256a);return _0x14cf32['init'](),this[_0x2c26b4(0x13e)][_0x2c26b4(0x151)](_0x14b2bc,_0x14cf32),_0x14cf32;}};S=Y([_(0x0,_0x317c62),_(0x1,_0x3458e3(_0x5618b7)),_(0x2,_0x3458e3(_0x537dba))],S);var c=(_0x10b00f=>(_0x10b00f[_0x31e0fe(0x13f)]=_0x31e0fe(0xc4),_0x10b00f[_0x31e0fe(0x128)]=_0x31e0fe(0xd2),_0x10b00f[_0x31e0fe(0x111)]=_0x31e0fe(0xd9),_0x10b00f[_0x31e0fe(0xe5)]='not-following',_0x10b00f[_0x31e0fe(0x153)]='presenting',_0x10b00f))(c||{});function _0x2156(_0x4ecbaf,_0x3af9de){const _0x5b5021=_0x5b50();return _0x2156=function(_0x2156f0,_0x2560e0){_0x2156f0=_0x2156f0-0xb7;let _0x46e9c7=_0x5b5021[_0x2156f0];return _0x46e9c7;},_0x2156(_0x4ecbaf,_0x3af9de);}const Ce=_0x31e0fe(0xeb),De=0xc8;let N=class extends _0x2500e7{constructor(_0x474d6c,_0x408502,_0x392c54,_0x546258,_0x38825d){const _0x56aa39=_0x31e0fe;super(),u(this,'_status$',new _0x3363c0(_0x56aa39(0xd2))),u(this,'status$',this[_0x56aa39(0xed)][_0x56aa39(0x124)]()),u(this,_0x56aa39(0x116),!0x1),u(this,'_commandDisposable',null),u(this,_0x56aa39(0x11c),null),(this[_0x56aa39(0x100)]=_0x474d6c,this[_0x56aa39(0xc6)]=_0x408502,this['_configService']=_0x392c54,this[_0x56aa39(0x109)]=_0x546258,this[_0x56aa39(0xc8)]=_0x38825d);}get[_0x31e0fe(0x118)](){const _0x5a207f=_0x31e0fe;return this['_status$'][_0x5a207f(0xef)]();}['dispose'](){const _0xc64f10=_0x31e0fe;var _0x7e83e8;(_0x7e83e8=this[_0xc64f10(0xf0)])==null||_0x7e83e8[_0xc64f10(0xf6)](),this[_0xc64f10(0xed)]['next'](_0xc64f10(0xd2)),this['_status$']['complete']();}[_0x31e0fe(0x13c)](){return this['_status'];}['init'](){const _0x15fd65=_0x31e0fe;this['_init']||(this[_0x15fd65(0x116)]=!0x0,this[_0x15fd65(0xc6)][_0x15fd65(0x132)][_0x15fd65(0xc5)](_0xf2e89d(this[_0x15fd65(0x150)]))[_0x15fd65(0x147)](_0xc51298=>{const _0x4b90fe=_0x15fd65;switch(_0xc51298){case _0x41a8e6[_0x4b90fe(0x13f)]:this[_0x4b90fe(0x121)]();break;case _0x41a8e6[_0x4b90fe(0xd4)]:this[_0x4b90fe(0xb9)]();break;}}),this[_0x15fd65(0xc6)][_0x15fd65(0xbf)][_0x15fd65(0xc5)](_0xf2e89d(this[_0x15fd65(0x150)]))[_0x15fd65(0x147)](_0x3b9818=>{const _0x50fbd7=_0x15fd65,{eventID:_0x5f0a81}=_0x3b9818;switch(_0x5f0a81){case _0x51229d[_0x50fbd7(0xc3)]:this[_0x50fbd7(0xe0)](_0x3b9818);break;case _0x51229d[_0x50fbd7(0xe2)]:this[_0x50fbd7(0xf4)](_0x3b9818);break;case _0x51229d['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x51229d[_0x50fbd7(0xdc)]:this['_handleNewChangeSets'](_0x3b9818);break;}}));}['tryStartPresenting'](){const _0xfb5af4=_0x31e0fe;this[_0xfb5af4(0xc6)][_0xfb5af4(0x148)]({'eventID':_0x51229d[_0xfb5af4(0x141)],'data':{'unitID':this[_0xfb5af4(0x100)],'userID':this[_0xfb5af4(0xc6)]['getMemberID']()}},this[_0xfb5af4(0x100)]);}[_0x31e0fe(0x107)](){const _0x3c0ab5=_0x31e0fe;this[_0x3c0ab5(0x118)]===_0x3c0ab5(0xc9)&&(this[_0x3c0ab5(0xed)][_0x3c0ab5(0xf7)]('idle'),this[_0x3c0ab5(0xc6)][_0x3c0ab5(0x148)]({'eventID':_0x51229d[_0x3c0ab5(0xf3)],'data':{'unitID':this[_0x3c0ab5(0x100)]}},this[_0x3c0ab5(0x100)]));}[_0x31e0fe(0xbb)](){const _0x1f4608=_0x31e0fe;this[_0x1f4608(0x118)]==='not-following'&&(this[_0x1f4608(0xed)][_0x1f4608(0xf7)]('following'),this[_0x1f4608(0x104)]());}[_0x31e0fe(0x10c)](){const _0x59d6c8=_0x31e0fe;this['_status']===_0x59d6c8(0xd9)&&this['_stopFollowing']();}[_0x31e0fe(0xe0)](_0x4d09bb){const _0x37cb3a=_0x31e0fe,{presenter:_0x1b3a1f}=_0x4d09bb['data'],_0x560ad5=this[_0x37cb3a(0xc6)][_0x37cb3a(0xca)]();this['_presenter']=_0x1b3a1f,_0x1b3a1f===_0x560ad5?(this[_0x37cb3a(0x108)](),this['_startPresenting']()):this[_0x37cb3a(0x118)]!=='not-following'&&(this[_0x37cb3a(0x149)](),this['_startFollowing']());}[_0x31e0fe(0xff)](){const _0xaa4ebe=_0x31e0fe,_0x3a4a34={'eventID':_0x51229d['LIVESHARE_FETCH_OPERATIONS']};this[_0xaa4ebe(0xc6)][_0xaa4ebe(0x148)](_0x3a4a34,this[_0xaa4ebe(0x100)]);}[_0x31e0fe(0x105)](){const _0x497cdb=_0x31e0fe;this['_presenter']=null,this[_0x497cdb(0x118)]!=='presenting'&&this[_0x497cdb(0xf8)]();}[_0x31e0fe(0x11d)](_0x4065a4){const _0x163a88=_0x31e0fe;if(this['_status']===_0x163a88(0xd9)&&this['_presenter']===_0x4065a4['data'][_0x163a88(0xec)]){const _0x46ad8c=_0x18e355(_0x4065a4[_0x163a88(0xd6)])['mutations'][_0x163a88(0xd7)]()['find'](_0x13a32c=>_0x13a32c['id']===_0x20a015['id']);if(_0x46ad8c){const _0x5f0172=_0x46ad8c['params'][_0x163a88(0xba)],_0x2252cb=_0x46ad8c['params'][_0x163a88(0x130)]['id'];setTimeout(()=>{const _0x4cedcc=_0x163a88;this['_commandService'][_0x4cedcc(0x14b)](_0x51cc86['id'],{'unitId':_0x5f0172,'subUnitId':_0x2252cb},{'fromCollab':!0x0});});}}}[_0x31e0fe(0x154)](){const _0x4d1d5b=_0x31e0fe;this['_status$']['next'](_0x4d1d5b(0xc9));const _0x3b8b1a=new Map(),_0x458268=this[_0x4d1d5b(0xf0)]=new _0x24f9a5();_0x458268[_0x4d1d5b(0x10a)](_0x5ef63b(()=>{const _0x190f1a=_0x4d1d5b;_0x3b8b1a[_0x190f1a(0x14f)](_0x77114b=>_0x77114b[_0x190f1a(0xce)]()),_0x3b8b1a['clear']();})),_0x458268[_0x4d1d5b(0x10a)](this[_0x4d1d5b(0xc8)][_0x4d1d5b(0xde)](_0x4bd36b=>{const _0x339294=_0x4d1d5b;var _0xdbc029;if(_0x4bd36b['type']!==_0x2a21f4['OPERATION']||!this[_0x339294(0x109)]['shouldShareOperation'](_0x4bd36b['id']))return;const {id:_0x200d1f}=_0x4bd36b;let _0x2c9bd6;_0x3b8b1a['has'](_0x200d1f)?_0x2c9bd6=_0x3b8b1a[_0x339294(0x12c)](_0x200d1f):(_0x2c9bd6=new _0x412524(),_0x3b8b1a[_0x339294(0x151)](_0x200d1f,_0x2c9bd6),_0x2c9bd6[_0x339294(0xc5)](_0x2c8eeb((_0xdbc029=this[_0x339294(0x12d)][_0x339294(0xbd)](Ce))!=null?_0xdbc029:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1e493d=>{const _0x528b64=_0x339294;this[_0x528b64(0xc6)][_0x528b64(0x148)]({'eventID':_0x51229d[_0x528b64(0xe2)],'data':{'unitID':this[_0x528b64(0x100)],'operations':{[_0x1e493d['id']]:{'id':_0x1e493d['id'],'params':JSON[_0x528b64(0x14c)](_0x1e493d['params'])}}}},this[_0x528b64(0x100)]);})),_0x2c9bd6[_0x339294(0xf7)](_0x4bd36b);})),this['_liveShareService']['getInitialStates'](this[_0x4d1d5b(0x100)])['forEach'](_0x4defc1=>this[_0x4d1d5b(0xc6)][_0x4d1d5b(0x148)]({'eventID':_0x51229d['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4d1d5b(0x100)],'operations':{[_0x4defc1['id']]:{'id':_0x4defc1['id'],'params':JSON[_0x4d1d5b(0x14c)](_0x4defc1[_0x4d1d5b(0x136)])}}}},this['_unitID']));}[_0x31e0fe(0x149)](){const _0x12d733=_0x31e0fe;var _0x2cd6f0;this[_0x12d733(0xed)][_0x12d733(0xf7)](_0x12d733(0xd2)),(_0x2cd6f0=this[_0x12d733(0xf0)])==null||_0x2cd6f0['dispose'](),this[_0x12d733(0xf0)]=null;}[_0x31e0fe(0x104)](){const _0x149a61=_0x31e0fe;var _0x471c96;(_0x471c96=this[_0x149a61(0xf0)])==null||_0x471c96[_0x149a61(0xf6)](),this[_0x149a61(0xed)][_0x149a61(0xf7)](_0x149a61(0xd9));}[_0x31e0fe(0xf8)](){const _0x1da58a=_0x31e0fe;var _0x521932;this[_0x1da58a(0xed)][_0x1da58a(0xf7)](_0x1da58a(0xd2)),(_0x521932=this[_0x1da58a(0xf0)])==null||_0x521932[_0x1da58a(0xf6)](),this[_0x1da58a(0xf0)]=null;}[_0x31e0fe(0x108)](){const _0x1a38f5=_0x31e0fe;var _0x4ae33f;this[_0x1a38f5(0xed)][_0x1a38f5(0xf7)]('not-following'),(_0x4ae33f=this[_0x1a38f5(0xf0)])==null||_0x4ae33f[_0x1a38f5(0xf6)]();}[_0x31e0fe(0xf4)](_0xda7a5a){const _0x145449=_0x31e0fe;if([_0x145449(0xc9),_0x145449(0xb7),_0x145449(0xc4)][_0x145449(0x10f)](this[_0x145449(0x118)])||!_0xda7a5a[_0x145449(0xd6)][_0x145449(0x126)]||_0xda7a5a[_0x145449(0xd6)][_0x145449(0x126)]===this[_0x145449(0xc6)][_0x145449(0xca)]())return;this[_0x145449(0x118)]===_0x145449(0xd2)&&this[_0x145449(0x104)]();const _0x4930dd=_0xda7a5a[_0x145449(0xd6)]['operations'];Object[_0x145449(0xbe)](_0x4930dd)['forEach'](_0xfc945=>{const _0xf918b1=_0x145449;this[_0xf918b1(0xc8)][_0xf918b1(0x14b)](_0xfc945['id'],_0xfc945[_0xf918b1(0x136)]?JSON[_0xf918b1(0x12a)](_0xfc945[_0xf918b1(0x136)]):null,{'fromCollab':!0x0});});}[_0x31e0fe(0x121)](){const _0x38c0f0=_0x31e0fe;var _0xd55dec;this['_status$'][_0x38c0f0(0xf7)](_0x38c0f0(0xc4)),(_0xd55dec=this[_0x38c0f0(0xf0)])==null||_0xd55dec['dispose']();}['_handleOnline'](){const _0x159811=_0x31e0fe;this['_status$']['next'](_0x159811(0xd2)),this[_0x159811(0xff)]();}};N=Y([_(0x2,_0x1c3f63),_(0x3,_0x3458e3(L)),_(0x4,_0x1e5b71)],N);function Le(){const _0x1d7bef=_0x31e0fe,_0x55bb7a=_0x28b1d7(S),_0x40b6c7=_0x28b1d7(_0x317c62),_0x5bc88a=_0x20ed0a(()=>_0x40b6c7[_0x1d7bef(0xe7)](_0x43d276[_0x1d7bef(0x13b)]),void 0x0,!0x1,[]),[_0x37f89d,_0x544345]=_0x5e4848(null),[_0x3f6ab9,_0x595009]=_0x5e4848(c[_0x1d7bef(0x128)]),_0x30e7be=_0x58a2f7(null);return _0x5a2871(()=>(_0x5bc88a&&_0x55bb7a[_0x1d7bef(0xe8)](_0x5bc88a[_0x1d7bef(0x15c)]())[_0x1d7bef(0x127)](_0x43ca4f=>{const _0x8db60f=_0x1d7bef;_0x544345(_0x43ca4f),_0x30e7be[_0x8db60f(0xc2)]=_0x43ca4f[_0x8db60f(0x11a)][_0x8db60f(0x147)](_0x4c868e=>{_0x595009(_0x4c868e);});}),()=>{const _0x106c21=_0x1d7bef;var _0x4d2e76;(_0x4d2e76=_0x30e7be['current'])==null||_0x4d2e76[_0x106c21(0xd5)](),_0x30e7be['current']=null;}),[_0x5bc88a,_0x55bb7a]),_0x37f89d?_0x17901e(_0x24d95f,{'align':_0x1d7bef(0x10b),'disabled':_0x3f6ab9===c['OFFLINE'],'className':_0x1d7bef(0x119),'overlay':_0x17901e(Re,{'status':_0x3f6ab9,'coordinator':_0x37f89d}),'children':_0x17901e('button',{'className':_0x4bc289(_0x1d7bef(0x145),{'univer-cursor-not-allowed':_0x3f6ab9===c[_0x1d7bef(0x13f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3f6ab9!==c[_0x1d7bef(0x13f)]}),'type':_0x1d7bef(0xb8),'children':_0x17901e(W,{'className':'univer-size-4'})})}):null;}function Re(_0x217568){const _0xe8d60a=_0x31e0fe,{status:_0x4d87ca,coordinator:_0x1e0159}=_0x217568;switch(_0x4d87ca){case c[_0xe8d60a(0x128)]:return _0x17901e($e,{'coordinator':_0x1e0159});case c['FOLLOWING']:return _0x17901e(xe,{'coordinator':_0x1e0159});case c[_0xe8d60a(0xe5)]:return _0x17901e(Pe,{'coordinator':_0x1e0159});case c[_0xe8d60a(0x13f)]:return _0x17901e(Te,{});case c['PRESENTING']:return _0x17901e(Ae,{'coordinator':_0x1e0159});default:return null;}}function $e(_0x5d46c7){const _0x592148=_0x31e0fe,{coordinator:_0x4ca482}=_0x5d46c7;return _0x19be63(_0x30f380,{'children':[_0x17901e('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x592148(0xcd)}),_0x17901e(_0x22044f,{'onClick':()=>_0x4ca482['tryStartPresenting'](),'children':'Start'})]});}function xe(_0x5a0919){const _0x49176b=_0x31e0fe,{coordinator:_0x98d896}=_0x5a0919;return _0x19be63(_0x30f380,{'children':[_0x17901e('div',{'className':_0x49176b(0x152),'children':_0x49176b(0xfd)}),_0x17901e(_0x22044f,{'onClick':()=>_0x98d896[_0x49176b(0x10c)](),'children':_0x49176b(0x143)})]});}function Pe(_0x5d82a4){const _0x3f5c57=_0x31e0fe,{coordinator:_0x1fb1b6}=_0x5d82a4;return _0x19be63(_0x30f380,{'children':[_0x17901e(_0x3f5c57(0x125),{'className':_0x3f5c57(0x152),'children':_0x3f5c57(0x15b)}),_0x17901e(_0x22044f,{'variant':_0x3f5c57(0x15a),'onClick':()=>_0x1fb1b6[_0x3f5c57(0xbb)](),'children':_0x3f5c57(0x137)})]});}function Ae(_0x1d8cfb){const _0x35f30c=_0x31e0fe,{coordinator:_0x65e032}=_0x1d8cfb;return _0x19be63(_0x30f380,{'children':[_0x17901e('div',{'className':_0x35f30c(0x152),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x17901e(_0x22044f,{'variant':'default','onClick':()=>_0x65e032[_0x35f30c(0x107)](),'children':_0x35f30c(0xc0)})]});}function Te(){const _0x3befb6=_0x31e0fe;return _0x17901e(_0x30f380,{'children':_0x3befb6(0xcb)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x12526f,_0x116b0f,_0x148ba8,_0x23038f)=>{const _0x296034=_0x31e0fe;for(var _0x3f349f=_0x23038f>0x1?void 0x0:_0x23038f?Fe(_0x116b0f,_0x148ba8):_0x116b0f,_0x421f4b=_0x12526f[_0x296034(0x156)]-0x1,_0x531aae;_0x421f4b>=0x0;_0x421f4b--)(_0x531aae=_0x12526f[_0x421f4b])&&(_0x3f349f=_0x531aae(_0x3f349f)||_0x3f349f);return _0x3f349f;},A=(_0x17ec15,_0x1051bf)=>(_0x133fe3,_0x3d1ef2)=>_0x1051bf(_0x133fe3,_0x3d1ef2,_0x17ec15);let m=class extends _0x228b43{constructor(_0x254e22,_0x28b170){const _0x22554b=_0x31e0fe;super(),this[_0x22554b(0x139)]=_0x254e22,this[_0x22554b(0x102)]=_0x28b170,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x3e11fb=_0x31e0fe;this[_0x3e11fb(0xee)](this[_0x3e11fb(0x102)]['registerComponent'](_0x3c0cfc[_0x3e11fb(0xd3)],()=>_0x18b5ed(Le,this[_0x3e11fb(0x139)])));}};m=He([A(0x0,_0x3458e3(_0x5618b7)),A(0x1,_0x584a6b)],m);const ye=_0x31e0fe(0x12e),T={};var Ue=Object[_0x31e0fe(0x140)],Ve=(_0x51c540,_0x307ead,_0x126981,_0x318a33)=>{const _0x4edf03=_0x31e0fe;for(var _0x557686=_0x318a33>0x1?void 0x0:_0x318a33?Ue(_0x307ead,_0x126981):_0x307ead,_0x35138d=_0x51c540[_0x4edf03(0x156)]-0x1,_0x32df21;_0x35138d>=0x0;_0x35138d--)(_0x32df21=_0x51c540[_0x35138d])&&(_0x557686=_0x32df21(_0x557686)||_0x557686);return _0x557686;},je=(_0x3d62d6,_0x59c896)=>(_0x3eb9ab,_0x53e26a)=>_0x59c896(_0x3eb9ab,_0x53e26a,_0x3d62d6);let I=class extends _0x228b43{constructor(_0x588829){const _0x20e3dd=_0x31e0fe;super(),this[_0x20e3dd(0x109)]=_0x588829,this[_0x20e3dd(0x116)]();}[_0x31e0fe(0x116)](){const _0x1b5618=_0x31e0fe;[_0x516bb6['id'],_0x4ac1aa['id'],_0x51cc86['id']][_0x1b5618(0x14f)](_0x5560eb=>{const _0x33ee34=_0x1b5618;this[_0x33ee34(0xee)](this[_0x33ee34(0x109)][_0x33ee34(0xdb)](_0x5560eb));});}};I=Ve([je(0x0,_0x3458e3(L))],I);var Me=Object[_0x31e0fe(0x11e)],ke=Object[_0x31e0fe(0x140)],Ge=(_0x562f13,_0x12fc5f,_0x5dc6bb)=>_0x12fc5f in _0x562f13?Me(_0x562f13,_0x12fc5f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5dc6bb}):_0x562f13[_0x12fc5f]=_0x5dc6bb,We=(_0x1d86c1,_0x5061d3,_0x55cacd,_0x4d63df)=>{const _0xc46480=_0x31e0fe;for(var _0x55d2eb=_0x4d63df>0x1?void 0x0:_0x4d63df?ke(_0x5061d3,_0x55cacd):_0x5061d3,_0x34690e=_0x1d86c1[_0xc46480(0x156)]-0x1,_0xca3e05;_0x34690e>=0x0;_0x34690e--)(_0xca3e05=_0x1d86c1[_0x34690e])&&(_0x55d2eb=_0xca3e05(_0x55d2eb)||_0x55d2eb);return _0x55d2eb;},F=(_0x428281,_0x3d99cf)=>(_0x1847a3,_0x26043a)=>_0x3d99cf(_0x1847a3,_0x26043a,_0x428281),B=(_0x5b44af,_0x1140a1,_0x4b85f9)=>Ge(_0x5b44af,typeof _0x1140a1!='symbol'?_0x1140a1+'':_0x1140a1,_0x4b85f9);const Ye=_0x31e0fe(0x120);let b=class extends _0x4e1973{constructor(_0x11d1b1=T,_0x462d12,_0x39cb0c){const _0x2c0459=_0x31e0fe;super(),this[_0x2c0459(0x101)]=_0x11d1b1,this[_0x2c0459(0x139)]=_0x462d12,this[_0x2c0459(0x12d)]=_0x39cb0c;const {..._0x20c96b}=_0x50ef25({},T,this['_config']);this[_0x2c0459(0x12d)][_0x2c0459(0xf2)](ye,_0x20c96b);}[_0x31e0fe(0xcc)](){const _0x5aeb0f=_0x31e0fe;_0x484001(this[_0x5aeb0f(0x139)],_0x3f0d95([[L],[S],[I],[m]],this['_config']['override'])),_0x24c6ea(this['_injector'],[[I]]);}[_0x31e0fe(0x133)](){const _0x49dcbf=_0x31e0fe;_0x24c6ea(this[_0x49dcbf(0x139)],[[m]]);}};B(b,_0x31e0fe(0x131),_0x43d276[_0x31e0fe(0xe9)]),B(b,'pluginName',Ye),b=We([_0x34be54(_0xe5cc13),F(0x1,_0x3458e3(_0x5618b7)),F(0x2,_0x1c3f63)],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 _0x376a4f=_0x6fa4;(function(_0x5f9762,_0x4db515){const _0x4a266d=_0x6fa4,_0x1ac9ae=_0x5f9762();while(!![]){try{const _0x27545b=parseInt(_0x4a266d(0x14f))/0x1*(parseInt(_0x4a266d(0x111))/0x2)+parseInt(_0x4a266d(0xaf))/0x3*(-parseInt(_0x4a266d(0xee))/0x4)+-parseInt(_0x4a266d(0xdf))/0x5*(-parseInt(_0x4a266d(0x10b))/0x6)+parseInt(_0x4a266d(0x107))/0x7*(-parseInt(_0x4a266d(0xc0))/0x8)+parseInt(_0x4a266d(0x118))/0x9+parseInt(_0x4a266d(0x142))/0xa*(parseInt(_0x4a266d(0xb5))/0xb)+parseInt(_0x4a266d(0x131))/0xc;if(_0x27545b===_0x4db515)break;else _0x1ac9ae['push'](_0x1ac9ae['shift']());}catch(_0x20ec09){_0x1ac9ae['push'](_0x1ac9ae['shift']());}}}(_0x2f50,0x73e5d));var J=Object[_0x376a4f(0xe6)],K=(_0x366b39,_0x48c34a,_0x450ba2)=>_0x48c34a in _0x366b39?J(_0x366b39,_0x48c34a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x450ba2}):_0x366b39[_0x48c34a]=_0x450ba2,u=(_0x6748e8,_0x12c4fd,_0x18f7de)=>K(_0x6748e8,typeof _0x12c4fd!=_0x376a4f(0xbb)?_0x12c4fd+'':_0x12c4fd,_0x18f7de);import{Disposable as _0xa8a9d0,toDisposable as _0xd13dd9,IUniverInstanceService as _0x5aa078,Inject as _0x2a25eb,Injector as _0x32fd57,IConfigService as _0x3456b4,ICommandService as _0x37323b,RxDisposable as _0x3566dd,UniverInstanceType as _0x48a4bc,DisposableCollection as _0x1e700a,CommandType as _0x45bef0,DependentOn as _0x139081,Plugin as _0x2bd5e2,merge as _0x1ed009,registerDependencies as _0x61aae3,mergeOverrideWithDependencies as _0x5ae5b0,touchDependencies as _0x92363}from'@univerjs/core';import{useDependency as _0xb50b79,useObservable as _0x56bbc7,IUIPartsService as _0x1210ac,BuiltInUIPart as _0x16c9fe,connectInjector as _0x5a62ec}from'@univerjs/ui';import{jsx as _0x2faf40,jsxs as _0x306731,Fragment as _0x498a05}from'react/jsx-runtime';import{Dropdown as _0xe34a22,clsx as _0x191602,Button as _0x57ee97}from'@univerjs/design';import{useRef as _0x4eeaac,createElement as _0x4266f5,forwardRef as _0x52e11c,useState as _0x7ea6fc,useEffect as _0x257959}from'react';import{CollaborationEvent as _0x5d24e8,parseProtocolChangeset as _0x41fc5f}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1c1186,SessionStatus as _0x2c44d1,UniverCollaborationClientPlugin as _0x7cb5ad}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x16e07d,SetWorksheetActiveOperation as _0x1b3bb6}from'@univerjs/sheets';import{BehaviorSubject as _0x5a3f65,Subject as _0xfc6fa9}from'rxjs';import{takeUntil as _0x4bc284,throttleTime as _0x146c58}from'rxjs/operators';import{SetZoomRatioOperation as _0x1b2024,SetScrollOperation as _0x4f12f1}from'@univerjs/sheets-ui';function k({ref:_0x55cd3a,..._0x212a7b}){const _0x1cfb18=_0x376a4f,{icon:_0x1fda22,id:_0x4ac276,className:_0x1a4eb9,extend:_0x1a7c74,..._0x180662}=_0x212a7b,_0x40c270=(_0x1cfb18(0x121)+_0x4ac276+'\x20'+(_0x1a4eb9||''))[_0x1cfb18(0x147)](),_0x43c737=_0x4eeaac('_'+Oe());return G(_0x1fda22,''+_0x4ac276,{'defIds':_0x1fda22[_0x1cfb18(0x13f)],'idSuffix':_0x43c737[_0x1cfb18(0x14e)]},{'ref':_0x55cd3a,'className':_0x40c270,..._0x180662},_0x1a7c74);}function G(_0x517988,_0x5db89d,_0x4a8c40,_0x563450,_0x312112){const _0x1829b6=_0x376a4f;return _0x4266f5(_0x517988[_0x1829b6(0x11c)],{'key':_0x5db89d,...be(_0x517988,_0x4a8c40,_0x312112),..._0x563450},(Ee(_0x517988,_0x4a8c40)[_0x1829b6(0xe5)]||[])[_0x1829b6(0xbf)]((_0x2a31ab,_0x47cdb6)=>G(_0x2a31ab,_0x5db89d+'-'+_0x517988[_0x1829b6(0x11c)]+'-'+_0x47cdb6,_0x4a8c40,void 0x0,_0x312112)));}function be(_0x5d8254,_0x2711f1,_0x16ad9d){const _0x1b365d=_0x376a4f,_0x174904={..._0x5d8254[_0x1b365d(0xc9)]};_0x16ad9d!=null&&_0x16ad9d[_0x1b365d(0x140)]&&_0x174904[_0x1b365d(0xff)]===_0x1b365d(0x140)&&(_0x174904[_0x1b365d(0xff)]=_0x16ad9d[_0x1b365d(0x140)]),_0x5d8254[_0x1b365d(0x11c)]===_0x1b365d(0xb4)&&_0x174904['id']&&(_0x174904['id']=_0x174904['id']+_0x2711f1[_0x1b365d(0xc8)]),Object[_0x1b365d(0x129)](_0x174904)[_0x1b365d(0x102)](([_0x38ddbf,_0x518fb2])=>{const _0x3ec980=_0x1b365d;_0x38ddbf===_0x3ec980(0xb4)&&typeof _0x518fb2==_0x3ec980(0xf4)&&(_0x174904[_0x38ddbf]=_0x518fb2['replace'](/url\(#(.*)\)/,'url(#$1'+_0x2711f1['idSuffix']+')'));});const {defIds:_0x160d19}=_0x2711f1;return!_0x160d19||_0x160d19[_0x1b365d(0xdb)]===0x0||(_0x5d8254['tag']===_0x1b365d(0x12e)&&_0x174904[_0x1b365d(0x108)]&&(_0x174904['xlink:href']=_0x174904[_0x1b365d(0x108)]+_0x2711f1[_0x1b365d(0xc8)]),Object['entries'](_0x174904)[_0x1b365d(0x102)](([_0x471798,_0x1457e6])=>{const _0x175a19=_0x1b365d;typeof _0x1457e6==_0x175a19(0xf4)&&(_0x174904[_0x471798]=_0x1457e6[_0x175a19(0xce)](/url\(#(.*)\)/,'url(#$1'+_0x2711f1[_0x175a19(0xc8)]+')'));})),_0x174904;}function Ee(_0x5a83b0,_0x1e962b){const _0x52f7ce=_0x376a4f;var _0x49b9b3;const {defIds:_0x4e7330}=_0x1e962b;return!_0x4e7330||_0x4e7330[_0x52f7ce(0xdb)]===0x0?_0x5a83b0:_0x5a83b0['tag']===_0x52f7ce(0xf5)&&((_0x49b9b3=_0x5a83b0[_0x52f7ce(0xe5)])!=null&&_0x49b9b3[_0x52f7ce(0xdb)])?{..._0x5a83b0,'children':_0x5a83b0[_0x52f7ce(0xe5)][_0x52f7ce(0xbf)](_0x3cf34a=>typeof _0x3cf34a[_0x52f7ce(0xc9)]['id']==_0x52f7ce(0xf4)&&_0x4e7330&&_0x4e7330['includes'](_0x3cf34a[_0x52f7ce(0xc9)]['id'])?{..._0x3cf34a,'attrs':{..._0x3cf34a[_0x52f7ce(0xc9)],'id':_0x3cf34a[_0x52f7ce(0xc9)]['id']+_0x1e962b['idSuffix']}}:_0x3cf34a)}:_0x5a83b0;}function Oe(){const _0x4e9c7c=_0x376a4f;return Math[_0x4e9c7c(0xca)]()['toString'](0x24)[_0x4e9c7c(0xed)](0x2,0x8);}k[_0x376a4f(0x109)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0x376a4f(0x112),'fill':_0x376a4f(0xeb),'viewBox':_0x376a4f(0x106),'width':'1em','height':_0x376a4f(0x134)},'children':[{'tag':_0x376a4f(0xb9),'attrs':{'fill':_0x376a4f(0x13c),'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':_0x376a4f(0xb9),'attrs':{'fill':_0x376a4f(0x13c),'d':_0x376a4f(0x132),'fillRule':'evenodd','clipRule':_0x376a4f(0x144)}}]},W=_0x52e11c(function(_0x15c6af,_0x1cf9c4){const _0x1a5144=_0x376a4f;return _0x4266f5(k,Object[_0x1a5144(0x135)]({},_0x15c6af,{'id':'live-share-icon','ref':_0x1cf9c4,'icon':we}));});W[_0x376a4f(0x109)]=_0x376a4f(0x101);class L extends _0xa8a9d0{constructor(){const _0x2c6de1=_0x376a4f;super(...arguments),u(this,_0x2c6de1(0xfe),new Set()),u(this,_0x2c6de1(0xe8),new Set());}[_0x376a4f(0x11f)](_0x7c4c5d){const _0x49f156=_0x376a4f;return this[_0x49f156(0xfe)][_0x49f156(0xcc)](_0x7c4c5d),_0xd13dd9(()=>this[_0x49f156(0xfe)][_0x49f156(0x14c)](_0x7c4c5d));}[_0x376a4f(0xf7)](_0x130c4f){const _0x147fb8=_0x376a4f;return this['_reporters'][_0x147fb8(0xcc)](_0x130c4f),_0xd13dd9(()=>this['_reporters']['delete'](_0x130c4f));}['shouldShareOperation'](_0x892d0d){return this['_sharedOperations']['has'](_0x892d0d);}[_0x376a4f(0x133)](_0x2fa5ca){const _0x4172c4=_0x376a4f;return Array['from'](this[_0x4172c4(0xe8)])['map'](_0x5f27d4=>_0x5f27d4(_0x2fa5ca));}}var Ne=Object[_0x376a4f(0x13d)],Y=(_0xea013,_0x1fc69a,_0x4dc94c,_0x59afef)=>{const _0x591bf4=_0x376a4f;for(var _0x4b7c8e=_0x59afef>0x1?void 0x0:_0x59afef?Ne(_0x1fc69a,_0x4dc94c):_0x1fc69a,_0x382817=_0xea013[_0x591bf4(0xdb)]-0x1,_0x21fa60;_0x382817>=0x0;_0x382817--)(_0x21fa60=_0xea013[_0x382817])&&(_0x4b7c8e=_0x21fa60(_0x4b7c8e)||_0x4b7c8e);return _0x4b7c8e;},_=(_0x897e7d,_0x51ff01)=>(_0x38a561,_0xeaf2f7)=>_0x51ff01(_0x38a561,_0xeaf2f7,_0x897e7d);let S=class extends _0x3566dd{constructor(_0x538ba5,_0x45ac84,_0x26d5c0){const _0x28fe87=_0x376a4f;super(),u(this,'_entities',new Map()),(this['_univerInstanceService']=_0x538ba5,this[_0x28fe87(0xe1)]=_0x45ac84,this[_0x28fe87(0x149)]=_0x26d5c0,this[_0x28fe87(0xe0)]());}async[_0x376a4f(0xb7)](_0x1f8f62){const _0x3a410e=_0x376a4f;return this[_0x3a410e(0x117)]['has'](_0x1f8f62)||await this[_0x3a410e(0xdc)](_0x1f8f62),this[_0x3a410e(0x117)]['get'](_0x1f8f62);}['getLiveShareCoordinatorSync'](_0x2b32ca){const _0x24ea30=_0x376a4f;var _0x28b105;return(_0x28b105=this[_0x24ea30(0x117)][_0x24ea30(0xd5)](_0x2b32ca))!=null?_0x28b105:null;}[_0x376a4f(0xe0)](){const _0x4a9128=_0x376a4f;this['_univerInstanceService'][_0x4a9128(0x13b)](_0x48a4bc[_0x4a9128(0xf6)])['pipe'](_0x4bc284(this[_0x4a9128(0xef)]))[_0x4a9128(0xf8)](async _0x5b4ea3=>{const _0x30e096=_0x4a9128,_0x57edf0=_0x5b4ea3['getUnitId']();this[_0x30e096(0x117)][_0x30e096(0x14d)](_0x57edf0)||this[_0x30e096(0xdc)](_0x57edf0);}),this[_0x4a9128(0xea)][_0x4a9128(0x10d)](_0x48a4bc[_0x4a9128(0xf6)])['pipe'](_0x4bc284(this['dispose$']))[_0x4a9128(0xf8)](_0x228720=>{const _0x3076c7=_0x4a9128,_0xa693fa=_0x228720[_0x3076c7(0x125)](),_0x53cd83=this[_0x3076c7(0x117)][_0x3076c7(0xd5)](_0xa693fa);_0x53cd83==null||_0x53cd83[_0x3076c7(0xbe)]();});}async[_0x376a4f(0xdc)](_0x584230){const _0x4220be=_0x376a4f,_0xc82cc9=await this['_collabSessionService']['requireSession'](_0x584230),_0x232d05=this['_injector'][_0x4220be(0x11b)](N,_0x584230,_0xc82cc9);return _0x232d05['init'](),this['_entities'][_0x4220be(0x10c)](_0x584230,_0x232d05),_0x232d05;}};S=Y([_(0x0,_0x5aa078),_(0x1,_0x2a25eb(_0x32fd57)),_(0x2,_0x2a25eb(_0x1c1186))],S);var c=(_0x14b523=>(_0x14b523['OFFLINE']=_0x376a4f(0x103),_0x14b523[_0x376a4f(0x119)]=_0x376a4f(0x137),_0x14b523['FOLLOWING']='following',_0x14b523[_0x376a4f(0x12f)]='not-following',_0x14b523[_0x376a4f(0x138)]=_0x376a4f(0x124),_0x14b523))(c||{});const Ce=_0x376a4f(0xd2),De=0xc8;function _0x2f50(){const _0x546d97=['_unitID','_presenter','get','Present\x20this\x20document','OFFLINE','not-following','button','ONLINE','length','_startLiveShareCoordinator','startFollowing','getValue','45ELGpTb','_init','_injector','status$','_handleOnline','disposeWithMe','children','defineProperty','end','_reporters','_uiPartsService','_univerInstanceService','none','onStarting','substring','3500404fKcLOl','dispose$','executeCommand','LIVESHARE_NEW_HOST','You\x27are\x20offline.','sessionStatus$','string','defs','UNIVER_SHEET','registerInitialStateReporter','subscribe','Stop\x20following','_startPresenting','onCommandExecuted','text','LIVESHARE_REQUEST_HOST','_sharedOperations','fill','_handleNewChangeSets','LiveShareIcon','forEach','offline','_fetchOperations','pluginName','0\x200\x2017\x2017','7KcMfya','xlink:href','displayName','UNIVER_LIVE_SHARE_PLUGIN','184014mJsLoB','set','getTypeOfUnitDisposed$','_config','values','stopFollowing','2ghzpHN','http://www.w3.org/2000/svg','NEW_CHANGESETS','type','includes','_commandDisposable','_entities','2392605qCpwDF','IDLE','complete','createInstance','tag','mutations','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','registerSharedOperation','LIVESHARE_OPERATION','univerjs-icon\x20univerjs-icon-','presenter','getMemberID','presenting','getUnitId','div','_handleNewHost','OPERATION','entries','_status','LIVESHARE_FETCH_OPERATIONS','UNIVER_UNKNOWN','_startFollowing','use','NOT_FOLLOWING','getStatus','7530384dILGef','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','getInitialStates','1em','assign','LIVESHARE_TERMINATE','idle','PRESENTING','operations','params','getTypeOfUnitAdded$','currentColor','getOwnPropertyDescriptor','onRendered','defIds','colorChannel1','stringify','130nZBAzb','send','evenodd','_collabSession','asObservable','trim','registerComponent','_collabSessionService','_stopPresenting','_stopFollowing','delete','has','current','211274lbBFgU','_liveShareService','_commandService','_handleTerminate','3VyNybl','_status$','next','You\x27re\x20not\x20following\x20the\x20presenter','getConfig','mask','62953yvSMCa','getCurrentTypeOfUnit$','getLiveShareCoordinator','_handleOffline','path','pipe','symbol','You\x27re\x20following\x20the\x20presenter','tryStartPresenting','dispose','map','842024jbIYhh','_handleOperation','FOLLOWING','shouldShareOperation','stopPresenting','univer-size-4','_beIdle','Stop\x20presenting','idSuffix','attrs','random','data','add','following','replace','_configService','univer-mb-3\x20univer-w-full\x20univer-text-sm','Start\x20following','SAME_OPERATION_SHARE_INTERVAL'];_0x2f50=function(){return _0x546d97;};return _0x2f50();}let N=class extends _0x3566dd{constructor(_0x5fd53f,_0xf0922a,_0x3166cd,_0x23d6a7,_0x50fb3a){const _0x290e75=_0x376a4f;super(),u(this,_0x290e75(0xb0),new _0x5a3f65(_0x290e75(0x137))),u(this,_0x290e75(0xe2),this['_status$'][_0x290e75(0x146)]()),u(this,_0x290e75(0xe0),!0x1),u(this,'_commandDisposable',null),u(this,'_presenter',null),(this[_0x290e75(0xd3)]=_0x5fd53f,this[_0x290e75(0x145)]=_0xf0922a,this['_configService']=_0x3166cd,this[_0x290e75(0x150)]=_0x23d6a7,this['_commandService']=_0x50fb3a);}get[_0x376a4f(0x12a)](){const _0x18198e=_0x376a4f;return this[_0x18198e(0xb0)][_0x18198e(0xde)]();}['dispose'](){const _0x5601bd=_0x376a4f;var _0x28b9b3;(_0x28b9b3=this[_0x5601bd(0x116)])==null||_0x28b9b3['dispose'](),this['_status$'][_0x5601bd(0xb1)]('idle'),this[_0x5601bd(0xb0)][_0x5601bd(0x11a)]();}[_0x376a4f(0x130)](){const _0x58895d=_0x376a4f;return this[_0x58895d(0x12a)];}['init'](){const _0x5448fa=_0x376a4f;this[_0x5448fa(0xe0)]||(this[_0x5448fa(0xe0)]=!0x0,this[_0x5448fa(0x145)][_0x5448fa(0xf3)]['pipe'](_0x4bc284(this[_0x5448fa(0xef)]))[_0x5448fa(0xf8)](_0x592566=>{const _0x301af8=_0x5448fa;switch(_0x592566){case _0x2c44d1[_0x301af8(0xd7)]:this[_0x301af8(0xb8)]();break;case _0x2c44d1[_0x301af8(0xda)]:this[_0x301af8(0xe3)]();break;}}),this[_0x5448fa(0x145)]['event$'][_0x5448fa(0xba)](_0x4bc284(this[_0x5448fa(0xef)]))[_0x5448fa(0xf8)](_0x34485a=>{const _0x1912b6=_0x5448fa,{eventID:_0x33884f}=_0x34485a;switch(_0x33884f){case _0x5d24e8[_0x1912b6(0xf1)]:this[_0x1912b6(0x127)](_0x34485a);break;case _0x5d24e8[_0x1912b6(0x120)]:this[_0x1912b6(0xc1)](_0x34485a);break;case _0x5d24e8[_0x1912b6(0x136)]:this[_0x1912b6(0xae)]();break;case _0x5d24e8[_0x1912b6(0x113)]:this['_handleNewChangeSets'](_0x34485a);break;}}));}[_0x376a4f(0xbd)](){const _0x3f7064=_0x376a4f;this['_collabSession'][_0x3f7064(0x143)]({'eventID':_0x5d24e8[_0x3f7064(0xfd)],'data':{'unitID':this[_0x3f7064(0xd3)],'userID':this[_0x3f7064(0x145)][_0x3f7064(0x123)]()}},this[_0x3f7064(0xd3)]);}[_0x376a4f(0xc4)](){const _0x519678=_0x376a4f;this[_0x519678(0x12a)]===_0x519678(0x124)&&(this[_0x519678(0xb0)][_0x519678(0xb1)](_0x519678(0x137)),this[_0x519678(0x145)][_0x519678(0x143)]({'eventID':_0x5d24e8[_0x519678(0x136)],'data':{'unitID':this[_0x519678(0xd3)]}},this[_0x519678(0xd3)]));}[_0x376a4f(0xdd)](){const _0x4b2984=_0x376a4f;this[_0x4b2984(0x12a)]===_0x4b2984(0xd8)&&(this[_0x4b2984(0xb0)][_0x4b2984(0xb1)]('following'),this['_startFollowing']());}[_0x376a4f(0x110)](){const _0x4299ea=_0x376a4f;this['_status']==='following'&&this[_0x4299ea(0x14b)]();}['_handleNewHost'](_0x1da5a8){const _0x3f9851=_0x376a4f,{presenter:_0x4610f1}=_0x1da5a8[_0x3f9851(0xcb)],_0x86f32c=this[_0x3f9851(0x145)][_0x3f9851(0x123)]();this[_0x3f9851(0xd4)]=_0x4610f1,_0x4610f1===_0x86f32c?(this[_0x3f9851(0x14b)](),this[_0x3f9851(0xfa)]()):this['_status']!=='not-following'&&(this[_0x3f9851(0x14a)](),this[_0x3f9851(0x12d)]());}[_0x376a4f(0x104)](){const _0x41b390=_0x376a4f,_0x4a6129={'eventID':_0x5d24e8[_0x41b390(0x12b)]};this['_collabSession'][_0x41b390(0x143)](_0x4a6129,this[_0x41b390(0xd3)]);}[_0x376a4f(0xae)](){const _0x27c23a=_0x376a4f;this[_0x27c23a(0xd4)]=null,this['_status']!==_0x27c23a(0x124)&&this['_beIdle']();}[_0x376a4f(0x100)](_0x42f53d){const _0x5f238a=_0x376a4f;if(this['_status']==='following'&&this[_0x5f238a(0xd4)]===_0x42f53d[_0x5f238a(0xcb)]['memberID']){const _0x22db5f=_0x41fc5f(_0x42f53d[_0x5f238a(0xcb)])[_0x5f238a(0x11d)]['reverse']()['find'](_0x197ccc=>_0x197ccc['id']===_0x16e07d['id']);if(_0x22db5f){const _0x204bdb=_0x22db5f[_0x5f238a(0x13a)]['unitId'],_0x43c4f8=_0x22db5f[_0x5f238a(0x13a)]['sheet']['id'];setTimeout(()=>{const _0x2cff73=_0x5f238a;this[_0x2cff73(0xad)][_0x2cff73(0xf0)](_0x1b3bb6['id'],{'unitId':_0x204bdb,'subUnitId':_0x43c4f8},{'fromCollab':!0x0});});}}}[_0x376a4f(0xfa)](){const _0x5990a3=_0x376a4f;this[_0x5990a3(0xb0)][_0x5990a3(0xb1)](_0x5990a3(0x124));const _0x4d6ee7=new Map(),_0xaf0273=this['_commandDisposable']=new _0x1e700a();_0xaf0273[_0x5990a3(0xcc)](_0xd13dd9(()=>{const _0x34a313=_0x5990a3;_0x4d6ee7[_0x34a313(0x102)](_0x17a3cf=>_0x17a3cf['complete']()),_0x4d6ee7['clear']();})),_0xaf0273[_0x5990a3(0xcc)](this['_commandService'][_0x5990a3(0xfb)](_0x382e02=>{const _0x623305=_0x5990a3;var _0x13621f;if(_0x382e02[_0x623305(0x114)]!==_0x45bef0[_0x623305(0x128)]||!this['_liveShareService'][_0x623305(0xc3)](_0x382e02['id']))return;const {id:_0x10750b}=_0x382e02;let _0x1de5a7;_0x4d6ee7[_0x623305(0x14d)](_0x10750b)?_0x1de5a7=_0x4d6ee7[_0x623305(0xd5)](_0x10750b):(_0x1de5a7=new _0xfc6fa9(),_0x4d6ee7['set'](_0x10750b,_0x1de5a7),_0x1de5a7['pipe'](_0x146c58((_0x13621f=this[_0x623305(0xcf)][_0x623305(0xb3)](Ce))!=null?_0x13621f:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x623305(0xf8)](_0x43bd48=>{const _0x29e14d=_0x623305;this[_0x29e14d(0x145)][_0x29e14d(0x143)]({'eventID':_0x5d24e8[_0x29e14d(0x120)],'data':{'unitID':this['_unitID'],'operations':{[_0x43bd48['id']]:{'id':_0x43bd48['id'],'params':JSON[_0x29e14d(0x141)](_0x43bd48[_0x29e14d(0x13a)])}}}},this[_0x29e14d(0xd3)]);})),_0x1de5a7['next'](_0x382e02);})),this[_0x5990a3(0x150)][_0x5990a3(0x133)](this[_0x5990a3(0xd3)])[_0x5990a3(0x102)](_0x34f52c=>this[_0x5990a3(0x145)][_0x5990a3(0x143)]({'eventID':_0x5d24e8[_0x5990a3(0x120)],'data':{'unitID':this[_0x5990a3(0xd3)],'operations':{[_0x34f52c['id']]:{'id':_0x34f52c['id'],'params':JSON[_0x5990a3(0x141)](_0x34f52c[_0x5990a3(0x13a)])}}}},this[_0x5990a3(0xd3)]));}['_stopPresenting'](){const _0x3a2eb9=_0x376a4f;var _0x3343fa;this[_0x3a2eb9(0xb0)]['next']('idle'),(_0x3343fa=this[_0x3a2eb9(0x116)])==null||_0x3343fa[_0x3a2eb9(0xbe)](),this['_commandDisposable']=null;}[_0x376a4f(0x12d)](){const _0x3e4a82=_0x376a4f;var _0x43feb2;(_0x43feb2=this[_0x3e4a82(0x116)])==null||_0x43feb2[_0x3e4a82(0xbe)](),this[_0x3e4a82(0xb0)][_0x3e4a82(0xb1)](_0x3e4a82(0xcd));}[_0x376a4f(0xc6)](){const _0x2b9cbe=_0x376a4f;var _0x3e8ddf;this[_0x2b9cbe(0xb0)][_0x2b9cbe(0xb1)](_0x2b9cbe(0x137)),(_0x3e8ddf=this[_0x2b9cbe(0x116)])==null||_0x3e8ddf[_0x2b9cbe(0xbe)](),this[_0x2b9cbe(0x116)]=null;}['_stopFollowing'](){const _0x1654a1=_0x376a4f;var _0x32d515;this[_0x1654a1(0xb0)]['next'](_0x1654a1(0xd8)),(_0x32d515=this[_0x1654a1(0x116)])==null||_0x32d515[_0x1654a1(0xbe)]();}[_0x376a4f(0xc1)](_0x4e9cf6){const _0x23b207=_0x376a4f;if([_0x23b207(0x124),_0x23b207(0xd8),_0x23b207(0x103)][_0x23b207(0x115)](this['_status'])||!_0x4e9cf6[_0x23b207(0xcb)][_0x23b207(0x122)]||_0x4e9cf6['data'][_0x23b207(0x122)]===this[_0x23b207(0x145)][_0x23b207(0x123)]())return;this[_0x23b207(0x12a)]===_0x23b207(0x137)&&this[_0x23b207(0x12d)]();const _0x3db040=_0x4e9cf6[_0x23b207(0xcb)][_0x23b207(0x139)];Object[_0x23b207(0x10f)](_0x3db040)[_0x23b207(0x102)](_0x1ec4e2=>{const _0x3badbd=_0x23b207;this[_0x3badbd(0xad)][_0x3badbd(0xf0)](_0x1ec4e2['id'],_0x1ec4e2['params']?JSON['parse'](_0x1ec4e2[_0x3badbd(0x13a)]):null,{'fromCollab':!0x0});});}[_0x376a4f(0xb8)](){const _0x3bec99=_0x376a4f;var _0x45dd0a;this[_0x3bec99(0xb0)][_0x3bec99(0xb1)]('offline'),(_0x45dd0a=this[_0x3bec99(0x116)])==null||_0x45dd0a['dispose']();}[_0x376a4f(0xe3)](){const _0x3dca3c=_0x376a4f;this[_0x3dca3c(0xb0)]['next'](_0x3dca3c(0x137)),this[_0x3dca3c(0x104)]();}};N=Y([_(0x2,_0x3456b4),_(0x3,_0x2a25eb(L)),_(0x4,_0x37323b)],N);function Le(){const _0x276637=_0x376a4f,_0x136c1=_0xb50b79(S),_0x1873a8=_0xb50b79(_0x5aa078),_0x534e3c=_0x56bbc7(()=>_0x1873a8[_0x276637(0xb6)](_0x48a4bc[_0x276637(0xf6)]),void 0x0,!0x1,[]),[_0x4d802b,_0x4ce8c9]=_0x7ea6fc(null),[_0x53fbe8,_0x4b8fc4]=_0x7ea6fc(c[_0x276637(0x119)]),_0x117f99=_0x4eeaac(null);return _0x257959(()=>(_0x534e3c&&_0x136c1['getLiveShareCoordinator'](_0x534e3c['getUnitId']())['then'](_0x58521c=>{const _0x773e96=_0x276637;_0x4ce8c9(_0x58521c),_0x117f99[_0x773e96(0x14e)]=_0x58521c[_0x773e96(0xe2)][_0x773e96(0xf8)](_0x56ad24=>{_0x4b8fc4(_0x56ad24);});}),()=>{const _0x30536b=_0x276637;var _0x448309;(_0x448309=_0x117f99[_0x30536b(0x14e)])==null||_0x448309['unsubscribe'](),_0x117f99[_0x30536b(0x14e)]=null;}),[_0x534e3c,_0x136c1]),_0x4d802b?_0x2faf40(_0xe34a22,{'align':_0x276637(0xe7),'disabled':_0x53fbe8===c['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x2faf40(Re,{'status':_0x53fbe8,'coordinator':_0x4d802b}),'children':_0x2faf40(_0x276637(0xd9),{'className':_0x191602(_0x276637(0x11e),{'univer-cursor-not-allowed':_0x53fbe8===c[_0x276637(0xd7)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x53fbe8!==c['OFFLINE']}),'type':_0x276637(0xd9),'children':_0x2faf40(W,{'className':_0x276637(0xc5)})})}):null;}function Re(_0x2468a1){const _0x10ee55=_0x376a4f,{status:_0x5c236d,coordinator:_0x54a2aa}=_0x2468a1;switch(_0x5c236d){case c[_0x10ee55(0x119)]:return _0x2faf40($e,{'coordinator':_0x54a2aa});case c[_0x10ee55(0xc2)]:return _0x2faf40(xe,{'coordinator':_0x54a2aa});case c[_0x10ee55(0x12f)]:return _0x2faf40(Pe,{'coordinator':_0x54a2aa});case c[_0x10ee55(0xd7)]:return _0x2faf40(Te,{});case c[_0x10ee55(0x138)]:return _0x2faf40(Ae,{'coordinator':_0x54a2aa});default:return null;}}function $e(_0x599e40){const _0x5bd1fd=_0x376a4f,{coordinator:_0x561992}=_0x599e40;return _0x306731(_0x498a05,{'children':[_0x2faf40(_0x5bd1fd(0x126),{'className':_0x5bd1fd(0xd0),'children':_0x5bd1fd(0xd6)}),_0x2faf40(_0x57ee97,{'onClick':()=>_0x561992[_0x5bd1fd(0xbd)](),'children':'Start'})]});}function xe(_0x3ea0c1){const _0x5227bb=_0x376a4f,{coordinator:_0x3f5a0f}=_0x3ea0c1;return _0x306731(_0x498a05,{'children':[_0x2faf40(_0x5227bb(0x126),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5227bb(0xbc)}),_0x2faf40(_0x57ee97,{'onClick':()=>_0x3f5a0f[_0x5227bb(0x110)](),'children':_0x5227bb(0xf9)})]});}function Pe(_0x36803f){const _0x11d0b2=_0x376a4f,{coordinator:_0x59830e}=_0x36803f;return _0x306731(_0x498a05,{'children':[_0x2faf40(_0x11d0b2(0x126),{'className':_0x11d0b2(0xd0),'children':_0x11d0b2(0xb2)}),_0x2faf40(_0x57ee97,{'variant':_0x11d0b2(0xfc),'onClick':()=>_0x59830e['startFollowing'](),'children':_0x11d0b2(0xd1)})]});}function Ae(_0x27beb4){const _0x3ec878=_0x376a4f,{coordinator:_0x2e38fb}=_0x27beb4;return _0x306731(_0x498a05,{'children':[_0x2faf40(_0x3ec878(0x126),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x2faf40(_0x57ee97,{'variant':'default','onClick':()=>_0x2e38fb[_0x3ec878(0xc4)](),'children':_0x3ec878(0xc7)})]});}function Te(){const _0x7dc309=_0x376a4f;return _0x2faf40(_0x498a05,{'children':_0x7dc309(0xf2)});}var Fe=Object[_0x376a4f(0x13d)],He=(_0x1664ef,_0x9e543b,_0xb97bfc,_0x5e637d)=>{const _0x40cbf1=_0x376a4f;for(var _0x413fac=_0x5e637d>0x1?void 0x0:_0x5e637d?Fe(_0x9e543b,_0xb97bfc):_0x9e543b,_0x35eb8d=_0x1664ef[_0x40cbf1(0xdb)]-0x1,_0x4c91ff;_0x35eb8d>=0x0;_0x35eb8d--)(_0x4c91ff=_0x1664ef[_0x35eb8d])&&(_0x413fac=_0x4c91ff(_0x413fac)||_0x413fac);return _0x413fac;},A=(_0x488a0c,_0x16d894)=>(_0x426d91,_0x4df179)=>_0x16d894(_0x426d91,_0x4df179,_0x488a0c);let m=class extends _0xa8a9d0{constructor(_0x50b80c,_0x555739){const _0x2a6658=_0x376a4f;super(),this[_0x2a6658(0xe1)]=_0x50b80c,this['_uiPartsService']=_0x555739,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x1e33cd=_0x376a4f;this[_0x1e33cd(0xe4)](this[_0x1e33cd(0xe9)][_0x1e33cd(0x148)](_0x16c9fe['HEADER_MENU'],()=>_0x5a62ec(Le,this[_0x1e33cd(0xe1)])));}};m=He([A(0x0,_0x2a25eb(_0x32fd57)),A(0x1,_0x1210ac)],m);const ye='live-share.config',T={};var Ue=Object[_0x376a4f(0x13d)],Ve=(_0x2a13da,_0x287bec,_0x2a70f7,_0x5c8953)=>{const _0x471c8c=_0x376a4f;for(var _0x261216=_0x5c8953>0x1?void 0x0:_0x5c8953?Ue(_0x287bec,_0x2a70f7):_0x287bec,_0xeaa21a=_0x2a13da[_0x471c8c(0xdb)]-0x1,_0x33a9f8;_0xeaa21a>=0x0;_0xeaa21a--)(_0x33a9f8=_0x2a13da[_0xeaa21a])&&(_0x261216=_0x33a9f8(_0x261216)||_0x261216);return _0x261216;},je=(_0x24dde5,_0x4af24b)=>(_0x184257,_0x574dba)=>_0x4af24b(_0x184257,_0x574dba,_0x24dde5);function _0x6fa4(_0x3edfd7,_0x43fcb5){const _0x2f50e9=_0x2f50();return _0x6fa4=function(_0x6fa478,_0x340fd9){_0x6fa478=_0x6fa478-0xad;let _0x29f8cb=_0x2f50e9[_0x6fa478];return _0x29f8cb;},_0x6fa4(_0x3edfd7,_0x43fcb5);}let I=class extends _0xa8a9d0{constructor(_0xed5695){const _0x3f27f8=_0x376a4f;super(),this[_0x3f27f8(0x150)]=_0xed5695,this['_init']();}['_init'](){const _0x12e2de=_0x376a4f;[_0x1b2024['id'],_0x4f12f1['id'],_0x1b3bb6['id']][_0x12e2de(0x102)](_0x310af2=>{const _0x2b10d8=_0x12e2de;this[_0x2b10d8(0xe4)](this[_0x2b10d8(0x150)]['registerSharedOperation'](_0x310af2));});}};I=Ve([je(0x0,_0x2a25eb(L))],I);var Me=Object[_0x376a4f(0xe6)],ke=Object[_0x376a4f(0x13d)],Ge=(_0x481925,_0x140a79,_0x3919ed)=>_0x140a79 in _0x481925?Me(_0x481925,_0x140a79,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3919ed}):_0x481925[_0x140a79]=_0x3919ed,We=(_0x3785d2,_0x563978,_0x524471,_0x46c6d3)=>{for(var _0xd60a87=_0x46c6d3>0x1?void 0x0:_0x46c6d3?ke(_0x563978,_0x524471):_0x563978,_0x424fe6=_0x3785d2['length']-0x1,_0x78b374;_0x424fe6>=0x0;_0x424fe6--)(_0x78b374=_0x3785d2[_0x424fe6])&&(_0xd60a87=_0x78b374(_0xd60a87)||_0xd60a87);return _0xd60a87;},F=(_0x5c3536,_0x103234)=>(_0x3822d2,_0x4d67bc)=>_0x103234(_0x3822d2,_0x4d67bc,_0x5c3536),B=(_0x24ca47,_0x5f4888,_0x51b084)=>Ge(_0x24ca47,typeof _0x5f4888!=_0x376a4f(0xbb)?_0x5f4888+'':_0x5f4888,_0x51b084);const Ye=_0x376a4f(0x10a);let b=class extends _0x2bd5e2{constructor(_0x9ff0ca=T,_0x14d06c,_0x2dcc9a){const _0x4b0ea9=_0x376a4f;super(),this[_0x4b0ea9(0x10e)]=_0x9ff0ca,this[_0x4b0ea9(0xe1)]=_0x14d06c,this[_0x4b0ea9(0xcf)]=_0x2dcc9a;const {..._0x52dc3c}=_0x1ed009({},T,this[_0x4b0ea9(0x10e)]);this[_0x4b0ea9(0xcf)]['setConfig'](ye,_0x52dc3c);}[_0x376a4f(0xec)](){const _0x2a29a3=_0x376a4f;_0x61aae3(this[_0x2a29a3(0xe1)],_0x5ae5b0([[L],[S],[I],[m]],this[_0x2a29a3(0x10e)]['override'])),_0x92363(this[_0x2a29a3(0xe1)],[[I]]);}[_0x376a4f(0x13e)](){const _0x2fa798=_0x376a4f;_0x92363(this[_0x2fa798(0xe1)],[[m]]);}};B(b,_0x376a4f(0x114),_0x48a4bc[_0x376a4f(0x12c)]),B(b,_0x376a4f(0x105),Ye),b=We([_0x139081(_0x7cb5ad),F(0x1,_0x2a25eb(_0x32fd57)),F(0x2,_0x3456b4)],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 _0x40c1ea=_0x58c7;(function(_0x1c25f9,_0x3f0424){const _0x2dfd3c=_0x58c7,_0x44629a=_0x1c25f9();while(!![]){try{const _0x133a23=parseInt(_0x2dfd3c(0xf8))/0x1+-parseInt(_0x2dfd3c(0xe3))/0x2*(parseInt(_0x2dfd3c(0xdf))/0x3)+-parseInt(_0x2dfd3c(0xf1))/0x4*(parseInt(_0x2dfd3c(0xf6))/0x5)+-parseInt(_0x2dfd3c(0xe0))/0x6*(-parseInt(_0x2dfd3c(0xf5))/0x7)+parseInt(_0x2dfd3c(0xe2))/0x8+parseInt(_0x2dfd3c(0xde))/0x9*(-parseInt(_0x2dfd3c(0xe7))/0xa)+-parseInt(_0x2dfd3c(0xed))/0xb*(-parseInt(_0x2dfd3c(0xdb))/0xc);if(_0x133a23===_0x3f0424)break;else _0x44629a['push'](_0x44629a['shift']());}catch(_0x5cfcdd){_0x44629a['push'](_0x44629a['shift']());}}}(_0xdb34,0xbf0c6));import{LiveShareController as _0x366aa2,LiveShareStatus as _0x1225ab}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x43ded8}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0xc08bb4}from'@univerjs/sheets';import{SetScrollOperation as _0x1df6e2}from'@univerjs/sheets-ui';import{FRange as _0x4e1153}from'@univerjs/sheets/facade';import{FUniver as _0x1b330d,FEnum as _0x38e9b6}from'@univerjs/core/facade';class I extends _0x4e1153{[_0x40c1ea(0xda)](_0x444e1d,_0x153f7c,_0x171791,_0x5aa139,_0x4d4431){const _0x12dd07=_0x40c1ea,_0x5b61f6=_0x444e1d[_0x12dd07(0xeb)](_0x366aa2),_0x498491=_0x444e1d[_0x12dd07(0xeb)](_0x43ded8),_0x4a889c=_0x153f7c[_0x12dd07(0xe8)](),_0x1554d2=_0x153f7c[_0x12dd07(0xf4)](),_0x2a03fe=_0x5b61f6[_0x12dd07(0xd9)](_0x4a889c);(_0x2a03fe==null?void 0x0:_0x2a03fe[_0x12dd07(0xec)]())!==_0x1225ab[_0x12dd07(0xfd)]||(_0x171791[_0x12dd07(0xe4)]()!==_0x1554d2[_0x12dd07(0xe4)]()&&this[_0x12dd07(0xfb)][_0x12dd07(0xe1)](_0xc08bb4['id'],{'unitId':_0x4a889c,'subUnitId':_0x171791['getSheetId']()}),!_0x498491['getRenderById'](_0x4a889c))||_0x4d4431['syncExecuteCommand'](_0x1df6e2['id'],{'unitId':_0x153f7c['getUnitId'](),'sheetId':_0x171791['getSheetId'](),'sheetViewStartRow':_0x5aa139[_0x12dd07(0xef)],'sheetViewStartColumn':_0x5aa139[_0x12dd07(0xf7)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4e1153[_0x40c1ea(0xdc)](I);function _0x58c7(_0x5e76f4,_0x50f3ab){const _0xdb34c9=_0xdb34();return _0x58c7=function(_0x58c7d3,_0x36f5b5){_0x58c7d3=_0x58c7d3-0xd9;let _0x53eaa5=_0xdb34c9[_0x58c7d3];return _0x53eaa5;},_0x58c7(_0x5e76f4,_0x50f3ab);}class m extends _0x1b330d{[_0x40c1ea(0xfc)](){const _0x29c13e=_0x40c1ea;var _0x3fdcfb,_0x36806b;const _0x2549cd=this[_0x29c13e(0xe5)][_0x29c13e(0xeb)](_0x366aa2),_0x124653=(_0x3fdcfb=this[_0x29c13e(0xf9)]())==null?void 0x0:_0x3fdcfb[_0x29c13e(0xdd)]();if(!_0x124653)throw new Error('No\x20active\x20workbook\x20found.');const _0x1021a4=_0x2549cd['getLiveShareCoordinatorSync'](_0x124653);return(_0x36806b=_0x1021a4==null?void 0x0:_0x1021a4[_0x29c13e(0xec)]())!=null?_0x36806b:_0x1225ab[_0x29c13e(0xea)];}[_0x40c1ea(0xfa)](){const _0x3c4a92=_0x40c1ea;var _0x3a9550;const _0x49c930=this['_injector'][_0x3c4a92(0xeb)](_0x366aa2),_0x33956e=(_0x3a9550=this['getActiveWorkbook']())==null?void 0x0:_0x3a9550[_0x3c4a92(0xdd)]();if(!_0x33956e)throw new Error(_0x3c4a92(0xe6));const _0x59a327=_0x49c930[_0x3c4a92(0xd9)](_0x33956e);if(!_0x59a327)throw new Error(_0x3c4a92(0xf2));_0x59a327[_0x3c4a92(0xfa)]();}[_0x40c1ea(0xe9)](){const _0x2ec6dc=_0x40c1ea;var _0xaa8795;const _0x55e69d=this['_injector'][_0x2ec6dc(0xeb)](_0x366aa2),_0x17c2d7=(_0xaa8795=this[_0x2ec6dc(0xf9)]())==null?void 0x0:_0xaa8795[_0x2ec6dc(0xdd)]();if(!_0x17c2d7)throw new Error('No\x20active\x20workbook\x20found.');const _0x4fddf0=_0x55e69d[_0x2ec6dc(0xd9)](_0x17c2d7);if(!_0x4fddf0)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4fddf0[_0x2ec6dc(0xe9)]();}[_0x40c1ea(0xee)](){const _0x5dbf5c=_0x40c1ea;var _0x105c4e;const _0x31b24a=this[_0x5dbf5c(0xe5)][_0x5dbf5c(0xeb)](_0x366aa2),_0x3d4ed0=(_0x105c4e=this[_0x5dbf5c(0xf9)]())==null?void 0x0:_0x105c4e['getId']();if(!_0x3d4ed0)throw new Error('No\x20active\x20workbook\x20found.');const _0x5747e3=_0x31b24a[_0x5dbf5c(0xd9)](_0x3d4ed0);if(!_0x5747e3)throw new Error(_0x5dbf5c(0xf2));_0x5747e3[_0x5dbf5c(0xf0)]();}['stopPresenting'](){const _0x1cbfb0=_0x40c1ea;var _0x12eac9;const _0x2604be=this[_0x1cbfb0(0xe5)]['get'](_0x366aa2),_0x50e455=(_0x12eac9=this[_0x1cbfb0(0xf9)]())==null?void 0x0:_0x12eac9[_0x1cbfb0(0xdd)]();if(!_0x50e455)throw new Error(_0x1cbfb0(0xe6));const _0x5c5126=_0x2604be['getLiveShareCoordinatorSync'](_0x50e455);if(!_0x5c5126)throw new Error(_0x1cbfb0(0xf2));_0x5c5126[_0x1cbfb0(0xf3)]();}}_0x1b330d[_0x40c1ea(0xdc)](m);function _0xdb34(){const _0x30e162=['startFollowing','_commandService','getLiveShareStatus','PRESENTING','getLiveShareCoordinatorSync','_initialize','60bgTSrn','extend','getId','8829342dLfQBR','6SlEwxg','6uxKadF','executeCommand','1610536EFAGVB','720532IyiOzw','getSheetId','_injector','No\x20active\x20workbook\x20found.','10DeEzbi','getUnitId','stopFollowing','IDLE','get','getStatus','2944447aoZHCh','startPresenting','startRow','tryStartPresenting','6988jOTUMx','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','stopPresenting','getActiveSheet','3933881KFFqIT','2225TTihzU','startColumn','1159834FwRAJE','getActiveWorkbook'];_0xdb34=function(){return _0x30e162;};return _0xdb34();}class C extends _0x38e9b6{get['LiveShareStatusEnum'](){return _0x1225ab;}}_0x38e9b6['extend'](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x31e0fe=_0x2156;(function(_0x790349,_0x474d36){const _0x1fc443=_0x2156,_0x42c72b=_0x790349();while(!![]){try{const _0x2d8182=-parseInt(_0x1fc443(0x122))/0x1+-parseInt(_0x1fc443(0x159))/0x2*(parseInt(_0x1fc443(0x14a))/0x3)+parseInt(_0x1fc443(0x110))/0x4*(parseInt(_0x1fc443(0xf1))/0x5)+parseInt(_0x1fc443(0x103))/0x6*(parseInt(_0x1fc443(0xc1))/0x7)+-parseInt(_0x1fc443(0x106))/0x8+-parseInt(_0x1fc443(0x11b))/0x9+parseInt(_0x1fc443(0x157))/0xa;if(_0x2d8182===_0x474d36)break;else _0x42c72b['push'](_0x42c72b['shift']());}catch(_0x1d3f65){_0x42c72b['push'](_0x42c72b['shift']());}}}(_0x5b50,0x699ec));var J=Object[_0x31e0fe(0x11e)],K=(_0x3db337,_0x2b126c,_0x131200)=>_0x2b126c in _0x3db337?J(_0x3db337,_0x2b126c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x131200}):_0x3db337[_0x2b126c]=_0x131200,u=(_0x2520db,_0x21a086,_0x52a2b9)=>K(_0x2520db,typeof _0x21a086!=_0x31e0fe(0x114)?_0x21a086+'':_0x21a086,_0x52a2b9);import{Disposable as _0x228b43,toDisposable as _0x5ef63b,IUniverInstanceService as _0x317c62,Inject as _0x3458e3,Injector as _0x5618b7,IConfigService as _0x1c3f63,ICommandService as _0x1e5b71,RxDisposable as _0x2500e7,UniverInstanceType as _0x43d276,DisposableCollection as _0x24f9a5,CommandType as _0x2a21f4,DependentOn as _0x34be54,Plugin as _0x4e1973,merge as _0x50ef25,registerDependencies as _0x484001,mergeOverrideWithDependencies as _0x3f0d95,touchDependencies as _0x24c6ea}from'@univerjs/core';import{useDependency as _0x28b1d7,useObservable as _0x20ed0a,IUIPartsService as _0x584a6b,BuiltInUIPart as _0x3c0cfc,connectInjector as _0x18b5ed}from'@univerjs/ui';import{jsx as _0x17901e,jsxs as _0x19be63,Fragment as _0x30f380}from'react/jsx-runtime';import{Dropdown as _0x24d95f,clsx as _0x4bc289,Button as _0x22044f}from'@univerjs/design';function _0x5b50(){const _0x403622=['complete','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','attrs','string','idle','HEADER_MENU','ONLINE','unsubscribe','data','reverse','random','following','1em','registerSharedOperation','NEW_CHANGESETS','0\x200\x2017\x2017','onCommandExecuted','replace','_handleNewHost','defIds','LIVESHARE_OPERATION','getLiveShareCoordinatorSync','evenodd','NOT_FOLLOWING','mask','getCurrentTypeOfUnit$','getLiveShareCoordinator','UNIVER_UNKNOWN','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','SAME_OPERATION_SHARE_INTERVAL','memberID','_status$','disposeWithMe','getValue','_commandDisposable','480295qHdBbQ','setConfig','LIVESHARE_TERMINATE','_handleOperation','xlink:href','dispose','next','_beIdle','delete','getTypeOfUnitDisposed$','colorChannel1','has','You\x27re\x20following\x20the\x20presenter','entries','_fetchOperations','_unitID','_config','_uiPartsService','92898KiFgFq','_startFollowing','_handleTerminate','323048AUHuog','stopPresenting','_stopFollowing','_liveShareService','add','end','stopFollowing','_reporters','fill','includes','4mTxtLu','FOLLOWING','_sharedOperations','tag','symbol','_collabSessionService','_init','path','_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','status$','4246020rGffZR','_presenter','_handleNewChangeSets','defineProperty','LiveShareIcon','UNIVER_LIVE_SHARE_PLUGIN','_handleOffline','637803ciwrbA','shouldShareOperation','asObservable','div','presenter','then','IDLE','createInstance','parse','none','get','_configService','live-share.config','currentColor','sheet','type','sessionStatus$','onRendered','assign','map','params','Start\x20following','_univerInstanceService','_injector','substring','UNIVER_SHEET','getStatus','UniverIcon','_entities','OFFLINE','getOwnPropertyDescriptor','LIVESHARE_REQUEST_HOST','getInitialStates','Stop\x20following','idSuffix','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','children','subscribe','send','_stopPresenting','186702lzSbsx','executeCommand','stringify','_startLiveShareCoordinator','univerjs-icon\x20univerjs-icon-','forEach','dispose$','set','univer-mb-3\x20univer-w-full\x20univer-text-sm','PRESENTING','_startPresenting','toString','length','13802580beKSVg','requireSession','14eUSTeb','text','You\x27re\x20not\x20following\x20the\x20presenter','getUnitId','not-following','button','_handleOnline','unitId','startFollowing','displayName','getConfig','values','event$','Stop\x20presenting','245EOypGV','current','LIVESHARE_NEW_HOST','offline','pipe','_collabSession','url(#$1','_commandService','presenting','getMemberID','You\x27are\x20offline.','onStarting','Present\x20this\x20document'];_0x5b50=function(){return _0x403622;};return _0x5b50();}import{useRef as _0x58a2f7,createElement as _0x2db518,forwardRef as _0x42a9a1,useState as _0x5e4848,useEffect as _0x5a2871}from'react';import{CollaborationEvent as _0x51229d,parseProtocolChangeset as _0x18e355}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x537dba,SessionStatus as _0x41a8e6,UniverCollaborationClientPlugin as _0xe5cc13}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x20a015,SetWorksheetActiveOperation as _0x51cc86}from'@univerjs/sheets';import{BehaviorSubject as _0x3363c0,Subject as _0x412524}from'rxjs';import{takeUntil as _0xf2e89d,throttleTime as _0x2c8eeb}from'rxjs/operators';import{SetZoomRatioOperation as _0x516bb6,SetScrollOperation as _0x4ac1aa}from'@univerjs/sheets-ui';function k({ref:_0x1bd7a8,..._0x2e1589}){const _0x5a18c2=_0x31e0fe,{icon:_0x40c36a,id:_0x166bb7,className:_0x3775b2,extend:_0x27651e,..._0x97945c}=_0x2e1589,_0x5348b6=(_0x5a18c2(0x14e)+_0x166bb7+'\x20'+(_0x3775b2||''))['trim'](),_0x6c74a7=_0x58a2f7('_'+Oe());return G(_0x40c36a,''+_0x166bb7,{'defIds':_0x40c36a[_0x5a18c2(0xe1)],'idSuffix':_0x6c74a7[_0x5a18c2(0xc2)]},{'ref':_0x1bd7a8,'className':_0x5348b6,..._0x97945c},_0x27651e);}function G(_0x44b7a0,_0x8b3723,_0x512f4d,_0x18cfe5,_0x2e6872){const _0x33b159=_0x31e0fe;return _0x2db518(_0x44b7a0['tag'],{'key':_0x8b3723,...be(_0x44b7a0,_0x512f4d,_0x2e6872),..._0x18cfe5},(Ee(_0x44b7a0,_0x512f4d)[_0x33b159(0x146)]||[])[_0x33b159(0x135)]((_0x44d82a,_0x195b36)=>G(_0x44d82a,_0x8b3723+'-'+_0x44b7a0['tag']+'-'+_0x195b36,_0x512f4d,void 0x0,_0x2e6872)));}function be(_0x50d6a7,_0xb55631,_0x53c9b4){const _0x36e0e3=_0x31e0fe,_0x52e9f7={..._0x50d6a7['attrs']};_0x53c9b4!=null&&_0x53c9b4[_0x36e0e3(0xfb)]&&_0x52e9f7[_0x36e0e3(0x10e)]==='colorChannel1'&&(_0x52e9f7[_0x36e0e3(0x10e)]=_0x53c9b4['colorChannel1']),_0x50d6a7[_0x36e0e3(0x113)]===_0x36e0e3(0xe6)&&_0x52e9f7['id']&&(_0x52e9f7['id']=_0x52e9f7['id']+_0xb55631[_0x36e0e3(0x144)]),Object['entries'](_0x52e9f7)[_0x36e0e3(0x14f)](([_0x2ed913,_0x1b370f])=>{const _0x233cc7=_0x36e0e3;_0x2ed913===_0x233cc7(0xe6)&&typeof _0x1b370f=='string'&&(_0x52e9f7[_0x2ed913]=_0x1b370f[_0x233cc7(0xdf)](/url\(#(.*)\)/,_0x233cc7(0xc7)+_0xb55631[_0x233cc7(0x144)]+')'));});const {defIds:_0x3854fb}=_0xb55631;return!_0x3854fb||_0x3854fb[_0x36e0e3(0x156)]===0x0||(_0x50d6a7[_0x36e0e3(0x113)]==='use'&&_0x52e9f7['xlink:href']&&(_0x52e9f7['xlink:href']=_0x52e9f7[_0x36e0e3(0xf5)]+_0xb55631[_0x36e0e3(0x144)]),Object[_0x36e0e3(0xfe)](_0x52e9f7)[_0x36e0e3(0x14f)](([_0x1c5354,_0x11f227])=>{const _0x3666a3=_0x36e0e3;typeof _0x11f227==_0x3666a3(0xd1)&&(_0x52e9f7[_0x1c5354]=_0x11f227['replace'](/url\(#(.*)\)/,_0x3666a3(0xc7)+_0xb55631[_0x3666a3(0x144)]+')'));})),_0x52e9f7;}function Ee(_0x55b46f,_0x8f397){const _0x3f08c6=_0x31e0fe;var _0x41eb48;const {defIds:_0x4dffc6}=_0x8f397;return!_0x4dffc6||_0x4dffc6['length']===0x0?_0x55b46f:_0x55b46f['tag']==='defs'&&((_0x41eb48=_0x55b46f[_0x3f08c6(0x146)])!=null&&_0x41eb48[_0x3f08c6(0x156)])?{..._0x55b46f,'children':_0x55b46f['children'][_0x3f08c6(0x135)](_0x26a332=>typeof _0x26a332[_0x3f08c6(0xd0)]['id']==_0x3f08c6(0xd1)&&_0x4dffc6&&_0x4dffc6['includes'](_0x26a332[_0x3f08c6(0xd0)]['id'])?{..._0x26a332,'attrs':{..._0x26a332[_0x3f08c6(0xd0)],'id':_0x26a332[_0x3f08c6(0xd0)]['id']+_0x8f397['idSuffix']}}:_0x26a332)}:_0x55b46f;}function Oe(){const _0x2c1d6a=_0x31e0fe;return Math[_0x2c1d6a(0xd8)]()[_0x2c1d6a(0x155)](0x24)[_0x2c1d6a(0x13a)](0x2,0x8);}k[_0x31e0fe(0xbc)]=_0x31e0fe(0x13d);const we={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x31e0fe(0x12b),'viewBox':_0x31e0fe(0xdd),'width':_0x31e0fe(0xda),'height':_0x31e0fe(0xda)},'children':[{'tag':_0x31e0fe(0x117),'attrs':{'fill':'currentColor','d':_0x31e0fe(0xcf)}},{'tag':_0x31e0fe(0x117),'attrs':{'fill':_0x31e0fe(0x12f),'d':_0x31e0fe(0xea),'fillRule':_0x31e0fe(0xe4),'clipRule':_0x31e0fe(0xe4)}}]},W=_0x42a9a1(function(_0x493e85,_0x258d8f){const _0x1efa15=_0x31e0fe;return _0x2db518(k,Object[_0x1efa15(0x134)]({},_0x493e85,{'id':'live-share-icon','ref':_0x258d8f,'icon':we}));});W['displayName']=_0x31e0fe(0x11f);class L extends _0x228b43{constructor(){const _0x4533b7=_0x31e0fe;super(...arguments),u(this,_0x4533b7(0x112),new Set()),u(this,_0x4533b7(0x10d),new Set());}[_0x31e0fe(0xdb)](_0x15536a){const _0x56d8f9=_0x31e0fe;return this[_0x56d8f9(0x112)][_0x56d8f9(0x10a)](_0x15536a),_0x5ef63b(()=>this[_0x56d8f9(0x112)]['delete'](_0x15536a));}['registerInitialStateReporter'](_0x316e22){const _0x5d38e1=_0x31e0fe;return this[_0x5d38e1(0x10d)]['add'](_0x316e22),_0x5ef63b(()=>this['_reporters'][_0x5d38e1(0xf9)](_0x316e22));}[_0x31e0fe(0x123)](_0x46da99){const _0x1724a1=_0x31e0fe;return this[_0x1724a1(0x112)][_0x1724a1(0xfc)](_0x46da99);}[_0x31e0fe(0x142)](_0xeedf09){const _0x25bba2=_0x31e0fe;return Array['from'](this[_0x25bba2(0x10d)])[_0x25bba2(0x135)](_0x29dc5d=>_0x29dc5d(_0xeedf09));}}var Ne=Object[_0x31e0fe(0x140)],Y=(_0x45d860,_0x73ba24,_0x1579c0,_0xf72ddc)=>{for(var _0xaba4a=_0xf72ddc>0x1?void 0x0:_0xf72ddc?Ne(_0x73ba24,_0x1579c0):_0x73ba24,_0x1001e9=_0x45d860['length']-0x1,_0x3aba27;_0x1001e9>=0x0;_0x1001e9--)(_0x3aba27=_0x45d860[_0x1001e9])&&(_0xaba4a=_0x3aba27(_0xaba4a)||_0xaba4a);return _0xaba4a;},_=(_0x18447b,_0x497803)=>(_0x314039,_0x593479)=>_0x497803(_0x314039,_0x593479,_0x18447b);let S=class extends _0x2500e7{constructor(_0x55eb58,_0x4da080,_0x171ff1){const _0x22c51f=_0x31e0fe;super(),u(this,'_entities',new Map()),(this[_0x22c51f(0x138)]=_0x55eb58,this[_0x22c51f(0x139)]=_0x4da080,this[_0x22c51f(0x115)]=_0x171ff1,this['_init']());}async[_0x31e0fe(0xe8)](_0xa6ccb7){const _0x43ebec=_0x31e0fe;return this['_entities'][_0x43ebec(0xfc)](_0xa6ccb7)||await this[_0x43ebec(0x14d)](_0xa6ccb7),this['_entities']['get'](_0xa6ccb7);}[_0x31e0fe(0xe3)](_0x1a3558){const _0x608d02=_0x31e0fe;var _0x5a03cb;return(_0x5a03cb=this[_0x608d02(0x13e)][_0x608d02(0x12c)](_0x1a3558))!=null?_0x5a03cb:null;}['_init'](){const _0x217b4e=_0x31e0fe;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x43d276[_0x217b4e(0x13b)])[_0x217b4e(0xc5)](_0xf2e89d(this[_0x217b4e(0x150)]))[_0x217b4e(0x147)](async _0x251488=>{const _0x1751d0=_0x217b4e,_0x52792f=_0x251488['getUnitId']();this[_0x1751d0(0x13e)][_0x1751d0(0xfc)](_0x52792f)||this[_0x1751d0(0x14d)](_0x52792f);}),this[_0x217b4e(0x138)][_0x217b4e(0xfa)](_0x43d276[_0x217b4e(0x13b)])[_0x217b4e(0xc5)](_0xf2e89d(this[_0x217b4e(0x150)]))['subscribe'](_0x1eb536=>{const _0x436c8d=_0x217b4e,_0x208fcd=_0x1eb536[_0x436c8d(0x15c)](),_0x3d33dd=this[_0x436c8d(0x13e)][_0x436c8d(0x12c)](_0x208fcd);_0x3d33dd==null||_0x3d33dd[_0x436c8d(0xf6)]();});}async[_0x31e0fe(0x14d)](_0x14b2bc){const _0x2c26b4=_0x31e0fe,_0x14256a=await this[_0x2c26b4(0x115)][_0x2c26b4(0x158)](_0x14b2bc),_0x14cf32=this['_injector'][_0x2c26b4(0x129)](N,_0x14b2bc,_0x14256a);return _0x14cf32['init'](),this[_0x2c26b4(0x13e)][_0x2c26b4(0x151)](_0x14b2bc,_0x14cf32),_0x14cf32;}};S=Y([_(0x0,_0x317c62),_(0x1,_0x3458e3(_0x5618b7)),_(0x2,_0x3458e3(_0x537dba))],S);var c=(_0x10b00f=>(_0x10b00f[_0x31e0fe(0x13f)]=_0x31e0fe(0xc4),_0x10b00f[_0x31e0fe(0x128)]=_0x31e0fe(0xd2),_0x10b00f[_0x31e0fe(0x111)]=_0x31e0fe(0xd9),_0x10b00f[_0x31e0fe(0xe5)]='not-following',_0x10b00f[_0x31e0fe(0x153)]='presenting',_0x10b00f))(c||{});function _0x2156(_0x4ecbaf,_0x3af9de){const _0x5b5021=_0x5b50();return _0x2156=function(_0x2156f0,_0x2560e0){_0x2156f0=_0x2156f0-0xb7;let _0x46e9c7=_0x5b5021[_0x2156f0];return _0x46e9c7;},_0x2156(_0x4ecbaf,_0x3af9de);}const Ce=_0x31e0fe(0xeb),De=0xc8;let N=class extends _0x2500e7{constructor(_0x474d6c,_0x408502,_0x392c54,_0x546258,_0x38825d){const _0x56aa39=_0x31e0fe;super(),u(this,'_status$',new _0x3363c0(_0x56aa39(0xd2))),u(this,'status$',this[_0x56aa39(0xed)][_0x56aa39(0x124)]()),u(this,_0x56aa39(0x116),!0x1),u(this,'_commandDisposable',null),u(this,_0x56aa39(0x11c),null),(this[_0x56aa39(0x100)]=_0x474d6c,this[_0x56aa39(0xc6)]=_0x408502,this['_configService']=_0x392c54,this[_0x56aa39(0x109)]=_0x546258,this[_0x56aa39(0xc8)]=_0x38825d);}get[_0x31e0fe(0x118)](){const _0x5a207f=_0x31e0fe;return this['_status$'][_0x5a207f(0xef)]();}['dispose'](){const _0xc64f10=_0x31e0fe;var _0x7e83e8;(_0x7e83e8=this[_0xc64f10(0xf0)])==null||_0x7e83e8[_0xc64f10(0xf6)](),this[_0xc64f10(0xed)]['next'](_0xc64f10(0xd2)),this['_status$']['complete']();}[_0x31e0fe(0x13c)](){return this['_status'];}['init'](){const _0x15fd65=_0x31e0fe;this['_init']||(this[_0x15fd65(0x116)]=!0x0,this[_0x15fd65(0xc6)][_0x15fd65(0x132)][_0x15fd65(0xc5)](_0xf2e89d(this[_0x15fd65(0x150)]))[_0x15fd65(0x147)](_0xc51298=>{const _0x4b90fe=_0x15fd65;switch(_0xc51298){case _0x41a8e6[_0x4b90fe(0x13f)]:this[_0x4b90fe(0x121)]();break;case _0x41a8e6[_0x4b90fe(0xd4)]:this[_0x4b90fe(0xb9)]();break;}}),this[_0x15fd65(0xc6)][_0x15fd65(0xbf)][_0x15fd65(0xc5)](_0xf2e89d(this[_0x15fd65(0x150)]))[_0x15fd65(0x147)](_0x3b9818=>{const _0x50fbd7=_0x15fd65,{eventID:_0x5f0a81}=_0x3b9818;switch(_0x5f0a81){case _0x51229d[_0x50fbd7(0xc3)]:this[_0x50fbd7(0xe0)](_0x3b9818);break;case _0x51229d[_0x50fbd7(0xe2)]:this[_0x50fbd7(0xf4)](_0x3b9818);break;case _0x51229d['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x51229d[_0x50fbd7(0xdc)]:this['_handleNewChangeSets'](_0x3b9818);break;}}));}['tryStartPresenting'](){const _0xfb5af4=_0x31e0fe;this[_0xfb5af4(0xc6)][_0xfb5af4(0x148)]({'eventID':_0x51229d[_0xfb5af4(0x141)],'data':{'unitID':this[_0xfb5af4(0x100)],'userID':this[_0xfb5af4(0xc6)]['getMemberID']()}},this[_0xfb5af4(0x100)]);}[_0x31e0fe(0x107)](){const _0x3c0ab5=_0x31e0fe;this[_0x3c0ab5(0x118)]===_0x3c0ab5(0xc9)&&(this[_0x3c0ab5(0xed)][_0x3c0ab5(0xf7)]('idle'),this[_0x3c0ab5(0xc6)][_0x3c0ab5(0x148)]({'eventID':_0x51229d[_0x3c0ab5(0xf3)],'data':{'unitID':this[_0x3c0ab5(0x100)]}},this[_0x3c0ab5(0x100)]));}[_0x31e0fe(0xbb)](){const _0x1f4608=_0x31e0fe;this[_0x1f4608(0x118)]==='not-following'&&(this[_0x1f4608(0xed)][_0x1f4608(0xf7)]('following'),this[_0x1f4608(0x104)]());}[_0x31e0fe(0x10c)](){const _0x59d6c8=_0x31e0fe;this['_status']===_0x59d6c8(0xd9)&&this['_stopFollowing']();}[_0x31e0fe(0xe0)](_0x4d09bb){const _0x37cb3a=_0x31e0fe,{presenter:_0x1b3a1f}=_0x4d09bb['data'],_0x560ad5=this[_0x37cb3a(0xc6)][_0x37cb3a(0xca)]();this['_presenter']=_0x1b3a1f,_0x1b3a1f===_0x560ad5?(this[_0x37cb3a(0x108)](),this['_startPresenting']()):this[_0x37cb3a(0x118)]!=='not-following'&&(this[_0x37cb3a(0x149)](),this['_startFollowing']());}[_0x31e0fe(0xff)](){const _0xaa4ebe=_0x31e0fe,_0x3a4a34={'eventID':_0x51229d['LIVESHARE_FETCH_OPERATIONS']};this[_0xaa4ebe(0xc6)][_0xaa4ebe(0x148)](_0x3a4a34,this[_0xaa4ebe(0x100)]);}[_0x31e0fe(0x105)](){const _0x497cdb=_0x31e0fe;this['_presenter']=null,this[_0x497cdb(0x118)]!=='presenting'&&this[_0x497cdb(0xf8)]();}[_0x31e0fe(0x11d)](_0x4065a4){const _0x163a88=_0x31e0fe;if(this['_status']===_0x163a88(0xd9)&&this['_presenter']===_0x4065a4['data'][_0x163a88(0xec)]){const _0x46ad8c=_0x18e355(_0x4065a4[_0x163a88(0xd6)])['mutations'][_0x163a88(0xd7)]()['find'](_0x13a32c=>_0x13a32c['id']===_0x20a015['id']);if(_0x46ad8c){const _0x5f0172=_0x46ad8c['params'][_0x163a88(0xba)],_0x2252cb=_0x46ad8c['params'][_0x163a88(0x130)]['id'];setTimeout(()=>{const _0x4cedcc=_0x163a88;this['_commandService'][_0x4cedcc(0x14b)](_0x51cc86['id'],{'unitId':_0x5f0172,'subUnitId':_0x2252cb},{'fromCollab':!0x0});});}}}[_0x31e0fe(0x154)](){const _0x4d1d5b=_0x31e0fe;this['_status$']['next'](_0x4d1d5b(0xc9));const _0x3b8b1a=new Map(),_0x458268=this[_0x4d1d5b(0xf0)]=new _0x24f9a5();_0x458268[_0x4d1d5b(0x10a)](_0x5ef63b(()=>{const _0x190f1a=_0x4d1d5b;_0x3b8b1a[_0x190f1a(0x14f)](_0x77114b=>_0x77114b[_0x190f1a(0xce)]()),_0x3b8b1a['clear']();})),_0x458268[_0x4d1d5b(0x10a)](this[_0x4d1d5b(0xc8)][_0x4d1d5b(0xde)](_0x4bd36b=>{const _0x339294=_0x4d1d5b;var _0xdbc029;if(_0x4bd36b['type']!==_0x2a21f4['OPERATION']||!this[_0x339294(0x109)]['shouldShareOperation'](_0x4bd36b['id']))return;const {id:_0x200d1f}=_0x4bd36b;let _0x2c9bd6;_0x3b8b1a['has'](_0x200d1f)?_0x2c9bd6=_0x3b8b1a[_0x339294(0x12c)](_0x200d1f):(_0x2c9bd6=new _0x412524(),_0x3b8b1a[_0x339294(0x151)](_0x200d1f,_0x2c9bd6),_0x2c9bd6[_0x339294(0xc5)](_0x2c8eeb((_0xdbc029=this[_0x339294(0x12d)][_0x339294(0xbd)](Ce))!=null?_0xdbc029:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1e493d=>{const _0x528b64=_0x339294;this[_0x528b64(0xc6)][_0x528b64(0x148)]({'eventID':_0x51229d[_0x528b64(0xe2)],'data':{'unitID':this[_0x528b64(0x100)],'operations':{[_0x1e493d['id']]:{'id':_0x1e493d['id'],'params':JSON[_0x528b64(0x14c)](_0x1e493d['params'])}}}},this[_0x528b64(0x100)]);})),_0x2c9bd6[_0x339294(0xf7)](_0x4bd36b);})),this['_liveShareService']['getInitialStates'](this[_0x4d1d5b(0x100)])['forEach'](_0x4defc1=>this[_0x4d1d5b(0xc6)][_0x4d1d5b(0x148)]({'eventID':_0x51229d['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4d1d5b(0x100)],'operations':{[_0x4defc1['id']]:{'id':_0x4defc1['id'],'params':JSON[_0x4d1d5b(0x14c)](_0x4defc1[_0x4d1d5b(0x136)])}}}},this['_unitID']));}[_0x31e0fe(0x149)](){const _0x12d733=_0x31e0fe;var _0x2cd6f0;this[_0x12d733(0xed)][_0x12d733(0xf7)](_0x12d733(0xd2)),(_0x2cd6f0=this[_0x12d733(0xf0)])==null||_0x2cd6f0['dispose'](),this[_0x12d733(0xf0)]=null;}[_0x31e0fe(0x104)](){const _0x149a61=_0x31e0fe;var _0x471c96;(_0x471c96=this[_0x149a61(0xf0)])==null||_0x471c96[_0x149a61(0xf6)](),this[_0x149a61(0xed)][_0x149a61(0xf7)](_0x149a61(0xd9));}[_0x31e0fe(0xf8)](){const _0x1da58a=_0x31e0fe;var _0x521932;this[_0x1da58a(0xed)][_0x1da58a(0xf7)](_0x1da58a(0xd2)),(_0x521932=this[_0x1da58a(0xf0)])==null||_0x521932[_0x1da58a(0xf6)](),this[_0x1da58a(0xf0)]=null;}[_0x31e0fe(0x108)](){const _0x1a38f5=_0x31e0fe;var _0x4ae33f;this[_0x1a38f5(0xed)][_0x1a38f5(0xf7)]('not-following'),(_0x4ae33f=this[_0x1a38f5(0xf0)])==null||_0x4ae33f[_0x1a38f5(0xf6)]();}[_0x31e0fe(0xf4)](_0xda7a5a){const _0x145449=_0x31e0fe;if([_0x145449(0xc9),_0x145449(0xb7),_0x145449(0xc4)][_0x145449(0x10f)](this[_0x145449(0x118)])||!_0xda7a5a[_0x145449(0xd6)][_0x145449(0x126)]||_0xda7a5a[_0x145449(0xd6)][_0x145449(0x126)]===this[_0x145449(0xc6)][_0x145449(0xca)]())return;this[_0x145449(0x118)]===_0x145449(0xd2)&&this[_0x145449(0x104)]();const _0x4930dd=_0xda7a5a[_0x145449(0xd6)]['operations'];Object[_0x145449(0xbe)](_0x4930dd)['forEach'](_0xfc945=>{const _0xf918b1=_0x145449;this[_0xf918b1(0xc8)][_0xf918b1(0x14b)](_0xfc945['id'],_0xfc945[_0xf918b1(0x136)]?JSON[_0xf918b1(0x12a)](_0xfc945[_0xf918b1(0x136)]):null,{'fromCollab':!0x0});});}[_0x31e0fe(0x121)](){const _0x38c0f0=_0x31e0fe;var _0xd55dec;this['_status$'][_0x38c0f0(0xf7)](_0x38c0f0(0xc4)),(_0xd55dec=this[_0x38c0f0(0xf0)])==null||_0xd55dec['dispose']();}['_handleOnline'](){const _0x159811=_0x31e0fe;this['_status$']['next'](_0x159811(0xd2)),this[_0x159811(0xff)]();}};N=Y([_(0x2,_0x1c3f63),_(0x3,_0x3458e3(L)),_(0x4,_0x1e5b71)],N);function Le(){const _0x1d7bef=_0x31e0fe,_0x55bb7a=_0x28b1d7(S),_0x40b6c7=_0x28b1d7(_0x317c62),_0x5bc88a=_0x20ed0a(()=>_0x40b6c7[_0x1d7bef(0xe7)](_0x43d276[_0x1d7bef(0x13b)]),void 0x0,!0x1,[]),[_0x37f89d,_0x544345]=_0x5e4848(null),[_0x3f6ab9,_0x595009]=_0x5e4848(c[_0x1d7bef(0x128)]),_0x30e7be=_0x58a2f7(null);return _0x5a2871(()=>(_0x5bc88a&&_0x55bb7a[_0x1d7bef(0xe8)](_0x5bc88a[_0x1d7bef(0x15c)]())[_0x1d7bef(0x127)](_0x43ca4f=>{const _0x8db60f=_0x1d7bef;_0x544345(_0x43ca4f),_0x30e7be[_0x8db60f(0xc2)]=_0x43ca4f[_0x8db60f(0x11a)][_0x8db60f(0x147)](_0x4c868e=>{_0x595009(_0x4c868e);});}),()=>{const _0x106c21=_0x1d7bef;var _0x4d2e76;(_0x4d2e76=_0x30e7be['current'])==null||_0x4d2e76[_0x106c21(0xd5)](),_0x30e7be['current']=null;}),[_0x5bc88a,_0x55bb7a]),_0x37f89d?_0x17901e(_0x24d95f,{'align':_0x1d7bef(0x10b),'disabled':_0x3f6ab9===c['OFFLINE'],'className':_0x1d7bef(0x119),'overlay':_0x17901e(Re,{'status':_0x3f6ab9,'coordinator':_0x37f89d}),'children':_0x17901e('button',{'className':_0x4bc289(_0x1d7bef(0x145),{'univer-cursor-not-allowed':_0x3f6ab9===c[_0x1d7bef(0x13f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3f6ab9!==c[_0x1d7bef(0x13f)]}),'type':_0x1d7bef(0xb8),'children':_0x17901e(W,{'className':'univer-size-4'})})}):null;}function Re(_0x217568){const _0xe8d60a=_0x31e0fe,{status:_0x4d87ca,coordinator:_0x1e0159}=_0x217568;switch(_0x4d87ca){case c[_0xe8d60a(0x128)]:return _0x17901e($e,{'coordinator':_0x1e0159});case c['FOLLOWING']:return _0x17901e(xe,{'coordinator':_0x1e0159});case c[_0xe8d60a(0xe5)]:return _0x17901e(Pe,{'coordinator':_0x1e0159});case c[_0xe8d60a(0x13f)]:return _0x17901e(Te,{});case c['PRESENTING']:return _0x17901e(Ae,{'coordinator':_0x1e0159});default:return null;}}function $e(_0x5d46c7){const _0x592148=_0x31e0fe,{coordinator:_0x4ca482}=_0x5d46c7;return _0x19be63(_0x30f380,{'children':[_0x17901e('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x592148(0xcd)}),_0x17901e(_0x22044f,{'onClick':()=>_0x4ca482['tryStartPresenting'](),'children':'Start'})]});}function xe(_0x5a0919){const _0x49176b=_0x31e0fe,{coordinator:_0x98d896}=_0x5a0919;return _0x19be63(_0x30f380,{'children':[_0x17901e('div',{'className':_0x49176b(0x152),'children':_0x49176b(0xfd)}),_0x17901e(_0x22044f,{'onClick':()=>_0x98d896[_0x49176b(0x10c)](),'children':_0x49176b(0x143)})]});}function Pe(_0x5d82a4){const _0x3f5c57=_0x31e0fe,{coordinator:_0x1fb1b6}=_0x5d82a4;return _0x19be63(_0x30f380,{'children':[_0x17901e(_0x3f5c57(0x125),{'className':_0x3f5c57(0x152),'children':_0x3f5c57(0x15b)}),_0x17901e(_0x22044f,{'variant':_0x3f5c57(0x15a),'onClick':()=>_0x1fb1b6[_0x3f5c57(0xbb)](),'children':_0x3f5c57(0x137)})]});}function Ae(_0x1d8cfb){const _0x35f30c=_0x31e0fe,{coordinator:_0x65e032}=_0x1d8cfb;return _0x19be63(_0x30f380,{'children':[_0x17901e('div',{'className':_0x35f30c(0x152),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x17901e(_0x22044f,{'variant':'default','onClick':()=>_0x65e032[_0x35f30c(0x107)](),'children':_0x35f30c(0xc0)})]});}function Te(){const _0x3befb6=_0x31e0fe;return _0x17901e(_0x30f380,{'children':_0x3befb6(0xcb)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x12526f,_0x116b0f,_0x148ba8,_0x23038f)=>{const _0x296034=_0x31e0fe;for(var _0x3f349f=_0x23038f>0x1?void 0x0:_0x23038f?Fe(_0x116b0f,_0x148ba8):_0x116b0f,_0x421f4b=_0x12526f[_0x296034(0x156)]-0x1,_0x531aae;_0x421f4b>=0x0;_0x421f4b--)(_0x531aae=_0x12526f[_0x421f4b])&&(_0x3f349f=_0x531aae(_0x3f349f)||_0x3f349f);return _0x3f349f;},A=(_0x17ec15,_0x1051bf)=>(_0x133fe3,_0x3d1ef2)=>_0x1051bf(_0x133fe3,_0x3d1ef2,_0x17ec15);let m=class extends _0x228b43{constructor(_0x254e22,_0x28b170){const _0x22554b=_0x31e0fe;super(),this[_0x22554b(0x139)]=_0x254e22,this[_0x22554b(0x102)]=_0x28b170,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x3e11fb=_0x31e0fe;this[_0x3e11fb(0xee)](this[_0x3e11fb(0x102)]['registerComponent'](_0x3c0cfc[_0x3e11fb(0xd3)],()=>_0x18b5ed(Le,this[_0x3e11fb(0x139)])));}};m=He([A(0x0,_0x3458e3(_0x5618b7)),A(0x1,_0x584a6b)],m);const ye=_0x31e0fe(0x12e),T={};var Ue=Object[_0x31e0fe(0x140)],Ve=(_0x51c540,_0x307ead,_0x126981,_0x318a33)=>{const _0x4edf03=_0x31e0fe;for(var _0x557686=_0x318a33>0x1?void 0x0:_0x318a33?Ue(_0x307ead,_0x126981):_0x307ead,_0x35138d=_0x51c540[_0x4edf03(0x156)]-0x1,_0x32df21;_0x35138d>=0x0;_0x35138d--)(_0x32df21=_0x51c540[_0x35138d])&&(_0x557686=_0x32df21(_0x557686)||_0x557686);return _0x557686;},je=(_0x3d62d6,_0x59c896)=>(_0x3eb9ab,_0x53e26a)=>_0x59c896(_0x3eb9ab,_0x53e26a,_0x3d62d6);let I=class extends _0x228b43{constructor(_0x588829){const _0x20e3dd=_0x31e0fe;super(),this[_0x20e3dd(0x109)]=_0x588829,this[_0x20e3dd(0x116)]();}[_0x31e0fe(0x116)](){const _0x1b5618=_0x31e0fe;[_0x516bb6['id'],_0x4ac1aa['id'],_0x51cc86['id']][_0x1b5618(0x14f)](_0x5560eb=>{const _0x33ee34=_0x1b5618;this[_0x33ee34(0xee)](this[_0x33ee34(0x109)][_0x33ee34(0xdb)](_0x5560eb));});}};I=Ve([je(0x0,_0x3458e3(L))],I);var Me=Object[_0x31e0fe(0x11e)],ke=Object[_0x31e0fe(0x140)],Ge=(_0x562f13,_0x12fc5f,_0x5dc6bb)=>_0x12fc5f in _0x562f13?Me(_0x562f13,_0x12fc5f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5dc6bb}):_0x562f13[_0x12fc5f]=_0x5dc6bb,We=(_0x1d86c1,_0x5061d3,_0x55cacd,_0x4d63df)=>{const _0xc46480=_0x31e0fe;for(var _0x55d2eb=_0x4d63df>0x1?void 0x0:_0x4d63df?ke(_0x5061d3,_0x55cacd):_0x5061d3,_0x34690e=_0x1d86c1[_0xc46480(0x156)]-0x1,_0xca3e05;_0x34690e>=0x0;_0x34690e--)(_0xca3e05=_0x1d86c1[_0x34690e])&&(_0x55d2eb=_0xca3e05(_0x55d2eb)||_0x55d2eb);return _0x55d2eb;},F=(_0x428281,_0x3d99cf)=>(_0x1847a3,_0x26043a)=>_0x3d99cf(_0x1847a3,_0x26043a,_0x428281),B=(_0x5b44af,_0x1140a1,_0x4b85f9)=>Ge(_0x5b44af,typeof _0x1140a1!='symbol'?_0x1140a1+'':_0x1140a1,_0x4b85f9);const Ye=_0x31e0fe(0x120);let b=class extends _0x4e1973{constructor(_0x11d1b1=T,_0x462d12,_0x39cb0c){const _0x2c0459=_0x31e0fe;super(),this[_0x2c0459(0x101)]=_0x11d1b1,this[_0x2c0459(0x139)]=_0x462d12,this[_0x2c0459(0x12d)]=_0x39cb0c;const {..._0x20c96b}=_0x50ef25({},T,this['_config']);this[_0x2c0459(0x12d)][_0x2c0459(0xf2)](ye,_0x20c96b);}[_0x31e0fe(0xcc)](){const _0x5aeb0f=_0x31e0fe;_0x484001(this[_0x5aeb0f(0x139)],_0x3f0d95([[L],[S],[I],[m]],this['_config']['override'])),_0x24c6ea(this['_injector'],[[I]]);}[_0x31e0fe(0x133)](){const _0x49dcbf=_0x31e0fe;_0x24c6ea(this[_0x49dcbf(0x139)],[[m]]);}};B(b,_0x31e0fe(0x131),_0x43d276[_0x31e0fe(0xe9)]),B(b,'pluginName',Ye),b=We([_0x34be54(_0xe5cc13),F(0x1,_0x3458e3(_0x5618b7)),F(0x2,_0x1c3f63)],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 _0x376a4f=_0x6fa4;(function(_0x5f9762,_0x4db515){const _0x4a266d=_0x6fa4,_0x1ac9ae=_0x5f9762();while(!![]){try{const _0x27545b=parseInt(_0x4a266d(0x14f))/0x1*(parseInt(_0x4a266d(0x111))/0x2)+parseInt(_0x4a266d(0xaf))/0x3*(-parseInt(_0x4a266d(0xee))/0x4)+-parseInt(_0x4a266d(0xdf))/0x5*(-parseInt(_0x4a266d(0x10b))/0x6)+parseInt(_0x4a266d(0x107))/0x7*(-parseInt(_0x4a266d(0xc0))/0x8)+parseInt(_0x4a266d(0x118))/0x9+parseInt(_0x4a266d(0x142))/0xa*(parseInt(_0x4a266d(0xb5))/0xb)+parseInt(_0x4a266d(0x131))/0xc;if(_0x27545b===_0x4db515)break;else _0x1ac9ae['push'](_0x1ac9ae['shift']());}catch(_0x20ec09){_0x1ac9ae['push'](_0x1ac9ae['shift']());}}}(_0x2f50,0x73e5d));var J=Object[_0x376a4f(0xe6)],K=(_0x366b39,_0x48c34a,_0x450ba2)=>_0x48c34a in _0x366b39?J(_0x366b39,_0x48c34a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x450ba2}):_0x366b39[_0x48c34a]=_0x450ba2,u=(_0x6748e8,_0x12c4fd,_0x18f7de)=>K(_0x6748e8,typeof _0x12c4fd!=_0x376a4f(0xbb)?_0x12c4fd+'':_0x12c4fd,_0x18f7de);import{Disposable as _0xa8a9d0,toDisposable as _0xd13dd9,IUniverInstanceService as _0x5aa078,Inject as _0x2a25eb,Injector as _0x32fd57,IConfigService as _0x3456b4,ICommandService as _0x37323b,RxDisposable as _0x3566dd,UniverInstanceType as _0x48a4bc,DisposableCollection as _0x1e700a,CommandType as _0x45bef0,DependentOn as _0x139081,Plugin as _0x2bd5e2,merge as _0x1ed009,registerDependencies as _0x61aae3,mergeOverrideWithDependencies as _0x5ae5b0,touchDependencies as _0x92363}from'@univerjs/core';import{useDependency as _0xb50b79,useObservable as _0x56bbc7,IUIPartsService as _0x1210ac,BuiltInUIPart as _0x16c9fe,connectInjector as _0x5a62ec}from'@univerjs/ui';import{jsx as _0x2faf40,jsxs as _0x306731,Fragment as _0x498a05}from'react/jsx-runtime';import{Dropdown as _0xe34a22,clsx as _0x191602,Button as _0x57ee97}from'@univerjs/design';import{useRef as _0x4eeaac,createElement as _0x4266f5,forwardRef as _0x52e11c,useState as _0x7ea6fc,useEffect as _0x257959}from'react';import{CollaborationEvent as _0x5d24e8,parseProtocolChangeset as _0x41fc5f}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1c1186,SessionStatus as _0x2c44d1,UniverCollaborationClientPlugin as _0x7cb5ad}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x16e07d,SetWorksheetActiveOperation as _0x1b3bb6}from'@univerjs/sheets';import{BehaviorSubject as _0x5a3f65,Subject as _0xfc6fa9}from'rxjs';import{takeUntil as _0x4bc284,throttleTime as _0x146c58}from'rxjs/operators';import{SetZoomRatioOperation as _0x1b2024,SetScrollOperation as _0x4f12f1}from'@univerjs/sheets-ui';function k({ref:_0x55cd3a,..._0x212a7b}){const _0x1cfb18=_0x376a4f,{icon:_0x1fda22,id:_0x4ac276,className:_0x1a4eb9,extend:_0x1a7c74,..._0x180662}=_0x212a7b,_0x40c270=(_0x1cfb18(0x121)+_0x4ac276+'\x20'+(_0x1a4eb9||''))[_0x1cfb18(0x147)](),_0x43c737=_0x4eeaac('_'+Oe());return G(_0x1fda22,''+_0x4ac276,{'defIds':_0x1fda22[_0x1cfb18(0x13f)],'idSuffix':_0x43c737[_0x1cfb18(0x14e)]},{'ref':_0x55cd3a,'className':_0x40c270,..._0x180662},_0x1a7c74);}function G(_0x517988,_0x5db89d,_0x4a8c40,_0x563450,_0x312112){const _0x1829b6=_0x376a4f;return _0x4266f5(_0x517988[_0x1829b6(0x11c)],{'key':_0x5db89d,...be(_0x517988,_0x4a8c40,_0x312112),..._0x563450},(Ee(_0x517988,_0x4a8c40)[_0x1829b6(0xe5)]||[])[_0x1829b6(0xbf)]((_0x2a31ab,_0x47cdb6)=>G(_0x2a31ab,_0x5db89d+'-'+_0x517988[_0x1829b6(0x11c)]+'-'+_0x47cdb6,_0x4a8c40,void 0x0,_0x312112)));}function be(_0x5d8254,_0x2711f1,_0x16ad9d){const _0x1b365d=_0x376a4f,_0x174904={..._0x5d8254[_0x1b365d(0xc9)]};_0x16ad9d!=null&&_0x16ad9d[_0x1b365d(0x140)]&&_0x174904[_0x1b365d(0xff)]===_0x1b365d(0x140)&&(_0x174904[_0x1b365d(0xff)]=_0x16ad9d[_0x1b365d(0x140)]),_0x5d8254[_0x1b365d(0x11c)]===_0x1b365d(0xb4)&&_0x174904['id']&&(_0x174904['id']=_0x174904['id']+_0x2711f1[_0x1b365d(0xc8)]),Object[_0x1b365d(0x129)](_0x174904)[_0x1b365d(0x102)](([_0x38ddbf,_0x518fb2])=>{const _0x3ec980=_0x1b365d;_0x38ddbf===_0x3ec980(0xb4)&&typeof _0x518fb2==_0x3ec980(0xf4)&&(_0x174904[_0x38ddbf]=_0x518fb2['replace'](/url\(#(.*)\)/,'url(#$1'+_0x2711f1['idSuffix']+')'));});const {defIds:_0x160d19}=_0x2711f1;return!_0x160d19||_0x160d19[_0x1b365d(0xdb)]===0x0||(_0x5d8254['tag']===_0x1b365d(0x12e)&&_0x174904[_0x1b365d(0x108)]&&(_0x174904['xlink:href']=_0x174904[_0x1b365d(0x108)]+_0x2711f1[_0x1b365d(0xc8)]),Object['entries'](_0x174904)[_0x1b365d(0x102)](([_0x471798,_0x1457e6])=>{const _0x175a19=_0x1b365d;typeof _0x1457e6==_0x175a19(0xf4)&&(_0x174904[_0x471798]=_0x1457e6[_0x175a19(0xce)](/url\(#(.*)\)/,'url(#$1'+_0x2711f1[_0x175a19(0xc8)]+')'));})),_0x174904;}function Ee(_0x5a83b0,_0x1e962b){const _0x52f7ce=_0x376a4f;var _0x49b9b3;const {defIds:_0x4e7330}=_0x1e962b;return!_0x4e7330||_0x4e7330[_0x52f7ce(0xdb)]===0x0?_0x5a83b0:_0x5a83b0['tag']===_0x52f7ce(0xf5)&&((_0x49b9b3=_0x5a83b0[_0x52f7ce(0xe5)])!=null&&_0x49b9b3[_0x52f7ce(0xdb)])?{..._0x5a83b0,'children':_0x5a83b0[_0x52f7ce(0xe5)][_0x52f7ce(0xbf)](_0x3cf34a=>typeof _0x3cf34a[_0x52f7ce(0xc9)]['id']==_0x52f7ce(0xf4)&&_0x4e7330&&_0x4e7330['includes'](_0x3cf34a[_0x52f7ce(0xc9)]['id'])?{..._0x3cf34a,'attrs':{..._0x3cf34a[_0x52f7ce(0xc9)],'id':_0x3cf34a[_0x52f7ce(0xc9)]['id']+_0x1e962b['idSuffix']}}:_0x3cf34a)}:_0x5a83b0;}function Oe(){const _0x4e9c7c=_0x376a4f;return Math[_0x4e9c7c(0xca)]()['toString'](0x24)[_0x4e9c7c(0xed)](0x2,0x8);}k[_0x376a4f(0x109)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0x376a4f(0x112),'fill':_0x376a4f(0xeb),'viewBox':_0x376a4f(0x106),'width':'1em','height':_0x376a4f(0x134)},'children':[{'tag':_0x376a4f(0xb9),'attrs':{'fill':_0x376a4f(0x13c),'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':_0x376a4f(0xb9),'attrs':{'fill':_0x376a4f(0x13c),'d':_0x376a4f(0x132),'fillRule':'evenodd','clipRule':_0x376a4f(0x144)}}]},W=_0x52e11c(function(_0x15c6af,_0x1cf9c4){const _0x1a5144=_0x376a4f;return _0x4266f5(k,Object[_0x1a5144(0x135)]({},_0x15c6af,{'id':'live-share-icon','ref':_0x1cf9c4,'icon':we}));});W[_0x376a4f(0x109)]=_0x376a4f(0x101);class L extends _0xa8a9d0{constructor(){const _0x2c6de1=_0x376a4f;super(...arguments),u(this,_0x2c6de1(0xfe),new Set()),u(this,_0x2c6de1(0xe8),new Set());}[_0x376a4f(0x11f)](_0x7c4c5d){const _0x49f156=_0x376a4f;return this[_0x49f156(0xfe)][_0x49f156(0xcc)](_0x7c4c5d),_0xd13dd9(()=>this[_0x49f156(0xfe)][_0x49f156(0x14c)](_0x7c4c5d));}[_0x376a4f(0xf7)](_0x130c4f){const _0x147fb8=_0x376a4f;return this['_reporters'][_0x147fb8(0xcc)](_0x130c4f),_0xd13dd9(()=>this['_reporters']['delete'](_0x130c4f));}['shouldShareOperation'](_0x892d0d){return this['_sharedOperations']['has'](_0x892d0d);}[_0x376a4f(0x133)](_0x2fa5ca){const _0x4172c4=_0x376a4f;return Array['from'](this[_0x4172c4(0xe8)])['map'](_0x5f27d4=>_0x5f27d4(_0x2fa5ca));}}var Ne=Object[_0x376a4f(0x13d)],Y=(_0xea013,_0x1fc69a,_0x4dc94c,_0x59afef)=>{const _0x591bf4=_0x376a4f;for(var _0x4b7c8e=_0x59afef>0x1?void 0x0:_0x59afef?Ne(_0x1fc69a,_0x4dc94c):_0x1fc69a,_0x382817=_0xea013[_0x591bf4(0xdb)]-0x1,_0x21fa60;_0x382817>=0x0;_0x382817--)(_0x21fa60=_0xea013[_0x382817])&&(_0x4b7c8e=_0x21fa60(_0x4b7c8e)||_0x4b7c8e);return _0x4b7c8e;},_=(_0x897e7d,_0x51ff01)=>(_0x38a561,_0xeaf2f7)=>_0x51ff01(_0x38a561,_0xeaf2f7,_0x897e7d);let S=class extends _0x3566dd{constructor(_0x538ba5,_0x45ac84,_0x26d5c0){const _0x28fe87=_0x376a4f;super(),u(this,'_entities',new Map()),(this['_univerInstanceService']=_0x538ba5,this[_0x28fe87(0xe1)]=_0x45ac84,this[_0x28fe87(0x149)]=_0x26d5c0,this[_0x28fe87(0xe0)]());}async[_0x376a4f(0xb7)](_0x1f8f62){const _0x3a410e=_0x376a4f;return this[_0x3a410e(0x117)]['has'](_0x1f8f62)||await this[_0x3a410e(0xdc)](_0x1f8f62),this[_0x3a410e(0x117)]['get'](_0x1f8f62);}['getLiveShareCoordinatorSync'](_0x2b32ca){const _0x24ea30=_0x376a4f;var _0x28b105;return(_0x28b105=this[_0x24ea30(0x117)][_0x24ea30(0xd5)](_0x2b32ca))!=null?_0x28b105:null;}[_0x376a4f(0xe0)](){const _0x4a9128=_0x376a4f;this['_univerInstanceService'][_0x4a9128(0x13b)](_0x48a4bc[_0x4a9128(0xf6)])['pipe'](_0x4bc284(this[_0x4a9128(0xef)]))[_0x4a9128(0xf8)](async _0x5b4ea3=>{const _0x30e096=_0x4a9128,_0x57edf0=_0x5b4ea3['getUnitId']();this[_0x30e096(0x117)][_0x30e096(0x14d)](_0x57edf0)||this[_0x30e096(0xdc)](_0x57edf0);}),this[_0x4a9128(0xea)][_0x4a9128(0x10d)](_0x48a4bc[_0x4a9128(0xf6)])['pipe'](_0x4bc284(this['dispose$']))[_0x4a9128(0xf8)](_0x228720=>{const _0x3076c7=_0x4a9128,_0xa693fa=_0x228720[_0x3076c7(0x125)](),_0x53cd83=this[_0x3076c7(0x117)][_0x3076c7(0xd5)](_0xa693fa);_0x53cd83==null||_0x53cd83[_0x3076c7(0xbe)]();});}async[_0x376a4f(0xdc)](_0x584230){const _0x4220be=_0x376a4f,_0xc82cc9=await this['_collabSessionService']['requireSession'](_0x584230),_0x232d05=this['_injector'][_0x4220be(0x11b)](N,_0x584230,_0xc82cc9);return _0x232d05['init'](),this['_entities'][_0x4220be(0x10c)](_0x584230,_0x232d05),_0x232d05;}};S=Y([_(0x0,_0x5aa078),_(0x1,_0x2a25eb(_0x32fd57)),_(0x2,_0x2a25eb(_0x1c1186))],S);var c=(_0x14b523=>(_0x14b523['OFFLINE']=_0x376a4f(0x103),_0x14b523[_0x376a4f(0x119)]=_0x376a4f(0x137),_0x14b523['FOLLOWING']='following',_0x14b523[_0x376a4f(0x12f)]='not-following',_0x14b523[_0x376a4f(0x138)]=_0x376a4f(0x124),_0x14b523))(c||{});const Ce=_0x376a4f(0xd2),De=0xc8;function _0x2f50(){const _0x546d97=['_unitID','_presenter','get','Present\x20this\x20document','OFFLINE','not-following','button','ONLINE','length','_startLiveShareCoordinator','startFollowing','getValue','45ELGpTb','_init','_injector','status$','_handleOnline','disposeWithMe','children','defineProperty','end','_reporters','_uiPartsService','_univerInstanceService','none','onStarting','substring','3500404fKcLOl','dispose$','executeCommand','LIVESHARE_NEW_HOST','You\x27are\x20offline.','sessionStatus$','string','defs','UNIVER_SHEET','registerInitialStateReporter','subscribe','Stop\x20following','_startPresenting','onCommandExecuted','text','LIVESHARE_REQUEST_HOST','_sharedOperations','fill','_handleNewChangeSets','LiveShareIcon','forEach','offline','_fetchOperations','pluginName','0\x200\x2017\x2017','7KcMfya','xlink:href','displayName','UNIVER_LIVE_SHARE_PLUGIN','184014mJsLoB','set','getTypeOfUnitDisposed$','_config','values','stopFollowing','2ghzpHN','http://www.w3.org/2000/svg','NEW_CHANGESETS','type','includes','_commandDisposable','_entities','2392605qCpwDF','IDLE','complete','createInstance','tag','mutations','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','registerSharedOperation','LIVESHARE_OPERATION','univerjs-icon\x20univerjs-icon-','presenter','getMemberID','presenting','getUnitId','div','_handleNewHost','OPERATION','entries','_status','LIVESHARE_FETCH_OPERATIONS','UNIVER_UNKNOWN','_startFollowing','use','NOT_FOLLOWING','getStatus','7530384dILGef','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','getInitialStates','1em','assign','LIVESHARE_TERMINATE','idle','PRESENTING','operations','params','getTypeOfUnitAdded$','currentColor','getOwnPropertyDescriptor','onRendered','defIds','colorChannel1','stringify','130nZBAzb','send','evenodd','_collabSession','asObservable','trim','registerComponent','_collabSessionService','_stopPresenting','_stopFollowing','delete','has','current','211274lbBFgU','_liveShareService','_commandService','_handleTerminate','3VyNybl','_status$','next','You\x27re\x20not\x20following\x20the\x20presenter','getConfig','mask','62953yvSMCa','getCurrentTypeOfUnit$','getLiveShareCoordinator','_handleOffline','path','pipe','symbol','You\x27re\x20following\x20the\x20presenter','tryStartPresenting','dispose','map','842024jbIYhh','_handleOperation','FOLLOWING','shouldShareOperation','stopPresenting','univer-size-4','_beIdle','Stop\x20presenting','idSuffix','attrs','random','data','add','following','replace','_configService','univer-mb-3\x20univer-w-full\x20univer-text-sm','Start\x20following','SAME_OPERATION_SHARE_INTERVAL'];_0x2f50=function(){return _0x546d97;};return _0x2f50();}let N=class extends _0x3566dd{constructor(_0x5fd53f,_0xf0922a,_0x3166cd,_0x23d6a7,_0x50fb3a){const _0x290e75=_0x376a4f;super(),u(this,_0x290e75(0xb0),new _0x5a3f65(_0x290e75(0x137))),u(this,_0x290e75(0xe2),this['_status$'][_0x290e75(0x146)]()),u(this,_0x290e75(0xe0),!0x1),u(this,'_commandDisposable',null),u(this,'_presenter',null),(this[_0x290e75(0xd3)]=_0x5fd53f,this[_0x290e75(0x145)]=_0xf0922a,this['_configService']=_0x3166cd,this[_0x290e75(0x150)]=_0x23d6a7,this['_commandService']=_0x50fb3a);}get[_0x376a4f(0x12a)](){const _0x18198e=_0x376a4f;return this[_0x18198e(0xb0)][_0x18198e(0xde)]();}['dispose'](){const _0x5601bd=_0x376a4f;var _0x28b9b3;(_0x28b9b3=this[_0x5601bd(0x116)])==null||_0x28b9b3['dispose'](),this['_status$'][_0x5601bd(0xb1)]('idle'),this[_0x5601bd(0xb0)][_0x5601bd(0x11a)]();}[_0x376a4f(0x130)](){const _0x58895d=_0x376a4f;return this[_0x58895d(0x12a)];}['init'](){const _0x5448fa=_0x376a4f;this[_0x5448fa(0xe0)]||(this[_0x5448fa(0xe0)]=!0x0,this[_0x5448fa(0x145)][_0x5448fa(0xf3)]['pipe'](_0x4bc284(this[_0x5448fa(0xef)]))[_0x5448fa(0xf8)](_0x592566=>{const _0x301af8=_0x5448fa;switch(_0x592566){case _0x2c44d1[_0x301af8(0xd7)]:this[_0x301af8(0xb8)]();break;case _0x2c44d1[_0x301af8(0xda)]:this[_0x301af8(0xe3)]();break;}}),this[_0x5448fa(0x145)]['event$'][_0x5448fa(0xba)](_0x4bc284(this[_0x5448fa(0xef)]))[_0x5448fa(0xf8)](_0x34485a=>{const _0x1912b6=_0x5448fa,{eventID:_0x33884f}=_0x34485a;switch(_0x33884f){case _0x5d24e8[_0x1912b6(0xf1)]:this[_0x1912b6(0x127)](_0x34485a);break;case _0x5d24e8[_0x1912b6(0x120)]:this[_0x1912b6(0xc1)](_0x34485a);break;case _0x5d24e8[_0x1912b6(0x136)]:this[_0x1912b6(0xae)]();break;case _0x5d24e8[_0x1912b6(0x113)]:this['_handleNewChangeSets'](_0x34485a);break;}}));}[_0x376a4f(0xbd)](){const _0x3f7064=_0x376a4f;this['_collabSession'][_0x3f7064(0x143)]({'eventID':_0x5d24e8[_0x3f7064(0xfd)],'data':{'unitID':this[_0x3f7064(0xd3)],'userID':this[_0x3f7064(0x145)][_0x3f7064(0x123)]()}},this[_0x3f7064(0xd3)]);}[_0x376a4f(0xc4)](){const _0x519678=_0x376a4f;this[_0x519678(0x12a)]===_0x519678(0x124)&&(this[_0x519678(0xb0)][_0x519678(0xb1)](_0x519678(0x137)),this[_0x519678(0x145)][_0x519678(0x143)]({'eventID':_0x5d24e8[_0x519678(0x136)],'data':{'unitID':this[_0x519678(0xd3)]}},this[_0x519678(0xd3)]));}[_0x376a4f(0xdd)](){const _0x4b2984=_0x376a4f;this[_0x4b2984(0x12a)]===_0x4b2984(0xd8)&&(this[_0x4b2984(0xb0)][_0x4b2984(0xb1)]('following'),this['_startFollowing']());}[_0x376a4f(0x110)](){const _0x4299ea=_0x376a4f;this['_status']==='following'&&this[_0x4299ea(0x14b)]();}['_handleNewHost'](_0x1da5a8){const _0x3f9851=_0x376a4f,{presenter:_0x4610f1}=_0x1da5a8[_0x3f9851(0xcb)],_0x86f32c=this[_0x3f9851(0x145)][_0x3f9851(0x123)]();this[_0x3f9851(0xd4)]=_0x4610f1,_0x4610f1===_0x86f32c?(this[_0x3f9851(0x14b)](),this[_0x3f9851(0xfa)]()):this['_status']!=='not-following'&&(this[_0x3f9851(0x14a)](),this[_0x3f9851(0x12d)]());}[_0x376a4f(0x104)](){const _0x41b390=_0x376a4f,_0x4a6129={'eventID':_0x5d24e8[_0x41b390(0x12b)]};this['_collabSession'][_0x41b390(0x143)](_0x4a6129,this[_0x41b390(0xd3)]);}[_0x376a4f(0xae)](){const _0x27c23a=_0x376a4f;this[_0x27c23a(0xd4)]=null,this['_status']!==_0x27c23a(0x124)&&this['_beIdle']();}[_0x376a4f(0x100)](_0x42f53d){const _0x5f238a=_0x376a4f;if(this['_status']==='following'&&this[_0x5f238a(0xd4)]===_0x42f53d[_0x5f238a(0xcb)]['memberID']){const _0x22db5f=_0x41fc5f(_0x42f53d[_0x5f238a(0xcb)])[_0x5f238a(0x11d)]['reverse']()['find'](_0x197ccc=>_0x197ccc['id']===_0x16e07d['id']);if(_0x22db5f){const _0x204bdb=_0x22db5f[_0x5f238a(0x13a)]['unitId'],_0x43c4f8=_0x22db5f[_0x5f238a(0x13a)]['sheet']['id'];setTimeout(()=>{const _0x2cff73=_0x5f238a;this[_0x2cff73(0xad)][_0x2cff73(0xf0)](_0x1b3bb6['id'],{'unitId':_0x204bdb,'subUnitId':_0x43c4f8},{'fromCollab':!0x0});});}}}[_0x376a4f(0xfa)](){const _0x5990a3=_0x376a4f;this[_0x5990a3(0xb0)][_0x5990a3(0xb1)](_0x5990a3(0x124));const _0x4d6ee7=new Map(),_0xaf0273=this['_commandDisposable']=new _0x1e700a();_0xaf0273[_0x5990a3(0xcc)](_0xd13dd9(()=>{const _0x34a313=_0x5990a3;_0x4d6ee7[_0x34a313(0x102)](_0x17a3cf=>_0x17a3cf['complete']()),_0x4d6ee7['clear']();})),_0xaf0273[_0x5990a3(0xcc)](this['_commandService'][_0x5990a3(0xfb)](_0x382e02=>{const _0x623305=_0x5990a3;var _0x13621f;if(_0x382e02[_0x623305(0x114)]!==_0x45bef0[_0x623305(0x128)]||!this['_liveShareService'][_0x623305(0xc3)](_0x382e02['id']))return;const {id:_0x10750b}=_0x382e02;let _0x1de5a7;_0x4d6ee7[_0x623305(0x14d)](_0x10750b)?_0x1de5a7=_0x4d6ee7[_0x623305(0xd5)](_0x10750b):(_0x1de5a7=new _0xfc6fa9(),_0x4d6ee7['set'](_0x10750b,_0x1de5a7),_0x1de5a7['pipe'](_0x146c58((_0x13621f=this[_0x623305(0xcf)][_0x623305(0xb3)](Ce))!=null?_0x13621f:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x623305(0xf8)](_0x43bd48=>{const _0x29e14d=_0x623305;this[_0x29e14d(0x145)][_0x29e14d(0x143)]({'eventID':_0x5d24e8[_0x29e14d(0x120)],'data':{'unitID':this['_unitID'],'operations':{[_0x43bd48['id']]:{'id':_0x43bd48['id'],'params':JSON[_0x29e14d(0x141)](_0x43bd48[_0x29e14d(0x13a)])}}}},this[_0x29e14d(0xd3)]);})),_0x1de5a7['next'](_0x382e02);})),this[_0x5990a3(0x150)][_0x5990a3(0x133)](this[_0x5990a3(0xd3)])[_0x5990a3(0x102)](_0x34f52c=>this[_0x5990a3(0x145)][_0x5990a3(0x143)]({'eventID':_0x5d24e8[_0x5990a3(0x120)],'data':{'unitID':this[_0x5990a3(0xd3)],'operations':{[_0x34f52c['id']]:{'id':_0x34f52c['id'],'params':JSON[_0x5990a3(0x141)](_0x34f52c[_0x5990a3(0x13a)])}}}},this[_0x5990a3(0xd3)]));}['_stopPresenting'](){const _0x3a2eb9=_0x376a4f;var _0x3343fa;this[_0x3a2eb9(0xb0)]['next']('idle'),(_0x3343fa=this[_0x3a2eb9(0x116)])==null||_0x3343fa[_0x3a2eb9(0xbe)](),this['_commandDisposable']=null;}[_0x376a4f(0x12d)](){const _0x3e4a82=_0x376a4f;var _0x43feb2;(_0x43feb2=this[_0x3e4a82(0x116)])==null||_0x43feb2[_0x3e4a82(0xbe)](),this[_0x3e4a82(0xb0)][_0x3e4a82(0xb1)](_0x3e4a82(0xcd));}[_0x376a4f(0xc6)](){const _0x2b9cbe=_0x376a4f;var _0x3e8ddf;this[_0x2b9cbe(0xb0)][_0x2b9cbe(0xb1)](_0x2b9cbe(0x137)),(_0x3e8ddf=this[_0x2b9cbe(0x116)])==null||_0x3e8ddf[_0x2b9cbe(0xbe)](),this[_0x2b9cbe(0x116)]=null;}['_stopFollowing'](){const _0x1654a1=_0x376a4f;var _0x32d515;this[_0x1654a1(0xb0)]['next'](_0x1654a1(0xd8)),(_0x32d515=this[_0x1654a1(0x116)])==null||_0x32d515[_0x1654a1(0xbe)]();}[_0x376a4f(0xc1)](_0x4e9cf6){const _0x23b207=_0x376a4f;if([_0x23b207(0x124),_0x23b207(0xd8),_0x23b207(0x103)][_0x23b207(0x115)](this['_status'])||!_0x4e9cf6[_0x23b207(0xcb)][_0x23b207(0x122)]||_0x4e9cf6['data'][_0x23b207(0x122)]===this[_0x23b207(0x145)][_0x23b207(0x123)]())return;this[_0x23b207(0x12a)]===_0x23b207(0x137)&&this[_0x23b207(0x12d)]();const _0x3db040=_0x4e9cf6[_0x23b207(0xcb)][_0x23b207(0x139)];Object[_0x23b207(0x10f)](_0x3db040)[_0x23b207(0x102)](_0x1ec4e2=>{const _0x3badbd=_0x23b207;this[_0x3badbd(0xad)][_0x3badbd(0xf0)](_0x1ec4e2['id'],_0x1ec4e2['params']?JSON['parse'](_0x1ec4e2[_0x3badbd(0x13a)]):null,{'fromCollab':!0x0});});}[_0x376a4f(0xb8)](){const _0x3bec99=_0x376a4f;var _0x45dd0a;this[_0x3bec99(0xb0)][_0x3bec99(0xb1)]('offline'),(_0x45dd0a=this[_0x3bec99(0x116)])==null||_0x45dd0a['dispose']();}[_0x376a4f(0xe3)](){const _0x3dca3c=_0x376a4f;this[_0x3dca3c(0xb0)]['next'](_0x3dca3c(0x137)),this[_0x3dca3c(0x104)]();}};N=Y([_(0x2,_0x3456b4),_(0x3,_0x2a25eb(L)),_(0x4,_0x37323b)],N);function Le(){const _0x276637=_0x376a4f,_0x136c1=_0xb50b79(S),_0x1873a8=_0xb50b79(_0x5aa078),_0x534e3c=_0x56bbc7(()=>_0x1873a8[_0x276637(0xb6)](_0x48a4bc[_0x276637(0xf6)]),void 0x0,!0x1,[]),[_0x4d802b,_0x4ce8c9]=_0x7ea6fc(null),[_0x53fbe8,_0x4b8fc4]=_0x7ea6fc(c[_0x276637(0x119)]),_0x117f99=_0x4eeaac(null);return _0x257959(()=>(_0x534e3c&&_0x136c1['getLiveShareCoordinator'](_0x534e3c['getUnitId']())['then'](_0x58521c=>{const _0x773e96=_0x276637;_0x4ce8c9(_0x58521c),_0x117f99[_0x773e96(0x14e)]=_0x58521c[_0x773e96(0xe2)][_0x773e96(0xf8)](_0x56ad24=>{_0x4b8fc4(_0x56ad24);});}),()=>{const _0x30536b=_0x276637;var _0x448309;(_0x448309=_0x117f99[_0x30536b(0x14e)])==null||_0x448309['unsubscribe'](),_0x117f99[_0x30536b(0x14e)]=null;}),[_0x534e3c,_0x136c1]),_0x4d802b?_0x2faf40(_0xe34a22,{'align':_0x276637(0xe7),'disabled':_0x53fbe8===c['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x2faf40(Re,{'status':_0x53fbe8,'coordinator':_0x4d802b}),'children':_0x2faf40(_0x276637(0xd9),{'className':_0x191602(_0x276637(0x11e),{'univer-cursor-not-allowed':_0x53fbe8===c[_0x276637(0xd7)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x53fbe8!==c['OFFLINE']}),'type':_0x276637(0xd9),'children':_0x2faf40(W,{'className':_0x276637(0xc5)})})}):null;}function Re(_0x2468a1){const _0x10ee55=_0x376a4f,{status:_0x5c236d,coordinator:_0x54a2aa}=_0x2468a1;switch(_0x5c236d){case c[_0x10ee55(0x119)]:return _0x2faf40($e,{'coordinator':_0x54a2aa});case c[_0x10ee55(0xc2)]:return _0x2faf40(xe,{'coordinator':_0x54a2aa});case c[_0x10ee55(0x12f)]:return _0x2faf40(Pe,{'coordinator':_0x54a2aa});case c[_0x10ee55(0xd7)]:return _0x2faf40(Te,{});case c[_0x10ee55(0x138)]:return _0x2faf40(Ae,{'coordinator':_0x54a2aa});default:return null;}}function $e(_0x599e40){const _0x5bd1fd=_0x376a4f,{coordinator:_0x561992}=_0x599e40;return _0x306731(_0x498a05,{'children':[_0x2faf40(_0x5bd1fd(0x126),{'className':_0x5bd1fd(0xd0),'children':_0x5bd1fd(0xd6)}),_0x2faf40(_0x57ee97,{'onClick':()=>_0x561992[_0x5bd1fd(0xbd)](),'children':'Start'})]});}function xe(_0x3ea0c1){const _0x5227bb=_0x376a4f,{coordinator:_0x3f5a0f}=_0x3ea0c1;return _0x306731(_0x498a05,{'children':[_0x2faf40(_0x5227bb(0x126),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5227bb(0xbc)}),_0x2faf40(_0x57ee97,{'onClick':()=>_0x3f5a0f[_0x5227bb(0x110)](),'children':_0x5227bb(0xf9)})]});}function Pe(_0x36803f){const _0x11d0b2=_0x376a4f,{coordinator:_0x59830e}=_0x36803f;return _0x306731(_0x498a05,{'children':[_0x2faf40(_0x11d0b2(0x126),{'className':_0x11d0b2(0xd0),'children':_0x11d0b2(0xb2)}),_0x2faf40(_0x57ee97,{'variant':_0x11d0b2(0xfc),'onClick':()=>_0x59830e['startFollowing'](),'children':_0x11d0b2(0xd1)})]});}function Ae(_0x27beb4){const _0x3ec878=_0x376a4f,{coordinator:_0x2e38fb}=_0x27beb4;return _0x306731(_0x498a05,{'children':[_0x2faf40(_0x3ec878(0x126),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x2faf40(_0x57ee97,{'variant':'default','onClick':()=>_0x2e38fb[_0x3ec878(0xc4)](),'children':_0x3ec878(0xc7)})]});}function Te(){const _0x7dc309=_0x376a4f;return _0x2faf40(_0x498a05,{'children':_0x7dc309(0xf2)});}var Fe=Object[_0x376a4f(0x13d)],He=(_0x1664ef,_0x9e543b,_0xb97bfc,_0x5e637d)=>{const _0x40cbf1=_0x376a4f;for(var _0x413fac=_0x5e637d>0x1?void 0x0:_0x5e637d?Fe(_0x9e543b,_0xb97bfc):_0x9e543b,_0x35eb8d=_0x1664ef[_0x40cbf1(0xdb)]-0x1,_0x4c91ff;_0x35eb8d>=0x0;_0x35eb8d--)(_0x4c91ff=_0x1664ef[_0x35eb8d])&&(_0x413fac=_0x4c91ff(_0x413fac)||_0x413fac);return _0x413fac;},A=(_0x488a0c,_0x16d894)=>(_0x426d91,_0x4df179)=>_0x16d894(_0x426d91,_0x4df179,_0x488a0c);let m=class extends _0xa8a9d0{constructor(_0x50b80c,_0x555739){const _0x2a6658=_0x376a4f;super(),this[_0x2a6658(0xe1)]=_0x50b80c,this['_uiPartsService']=_0x555739,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x1e33cd=_0x376a4f;this[_0x1e33cd(0xe4)](this[_0x1e33cd(0xe9)][_0x1e33cd(0x148)](_0x16c9fe['HEADER_MENU'],()=>_0x5a62ec(Le,this[_0x1e33cd(0xe1)])));}};m=He([A(0x0,_0x2a25eb(_0x32fd57)),A(0x1,_0x1210ac)],m);const ye='live-share.config',T={};var Ue=Object[_0x376a4f(0x13d)],Ve=(_0x2a13da,_0x287bec,_0x2a70f7,_0x5c8953)=>{const _0x471c8c=_0x376a4f;for(var _0x261216=_0x5c8953>0x1?void 0x0:_0x5c8953?Ue(_0x287bec,_0x2a70f7):_0x287bec,_0xeaa21a=_0x2a13da[_0x471c8c(0xdb)]-0x1,_0x33a9f8;_0xeaa21a>=0x0;_0xeaa21a--)(_0x33a9f8=_0x2a13da[_0xeaa21a])&&(_0x261216=_0x33a9f8(_0x261216)||_0x261216);return _0x261216;},je=(_0x24dde5,_0x4af24b)=>(_0x184257,_0x574dba)=>_0x4af24b(_0x184257,_0x574dba,_0x24dde5);function _0x6fa4(_0x3edfd7,_0x43fcb5){const _0x2f50e9=_0x2f50();return _0x6fa4=function(_0x6fa478,_0x340fd9){_0x6fa478=_0x6fa478-0xad;let _0x29f8cb=_0x2f50e9[_0x6fa478];return _0x29f8cb;},_0x6fa4(_0x3edfd7,_0x43fcb5);}let I=class extends _0xa8a9d0{constructor(_0xed5695){const _0x3f27f8=_0x376a4f;super(),this[_0x3f27f8(0x150)]=_0xed5695,this['_init']();}['_init'](){const _0x12e2de=_0x376a4f;[_0x1b2024['id'],_0x4f12f1['id'],_0x1b3bb6['id']][_0x12e2de(0x102)](_0x310af2=>{const _0x2b10d8=_0x12e2de;this[_0x2b10d8(0xe4)](this[_0x2b10d8(0x150)]['registerSharedOperation'](_0x310af2));});}};I=Ve([je(0x0,_0x2a25eb(L))],I);var Me=Object[_0x376a4f(0xe6)],ke=Object[_0x376a4f(0x13d)],Ge=(_0x481925,_0x140a79,_0x3919ed)=>_0x140a79 in _0x481925?Me(_0x481925,_0x140a79,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3919ed}):_0x481925[_0x140a79]=_0x3919ed,We=(_0x3785d2,_0x563978,_0x524471,_0x46c6d3)=>{for(var _0xd60a87=_0x46c6d3>0x1?void 0x0:_0x46c6d3?ke(_0x563978,_0x524471):_0x563978,_0x424fe6=_0x3785d2['length']-0x1,_0x78b374;_0x424fe6>=0x0;_0x424fe6--)(_0x78b374=_0x3785d2[_0x424fe6])&&(_0xd60a87=_0x78b374(_0xd60a87)||_0xd60a87);return _0xd60a87;},F=(_0x5c3536,_0x103234)=>(_0x3822d2,_0x4d67bc)=>_0x103234(_0x3822d2,_0x4d67bc,_0x5c3536),B=(_0x24ca47,_0x5f4888,_0x51b084)=>Ge(_0x24ca47,typeof _0x5f4888!=_0x376a4f(0xbb)?_0x5f4888+'':_0x5f4888,_0x51b084);const Ye=_0x376a4f(0x10a);let b=class extends _0x2bd5e2{constructor(_0x9ff0ca=T,_0x14d06c,_0x2dcc9a){const _0x4b0ea9=_0x376a4f;super(),this[_0x4b0ea9(0x10e)]=_0x9ff0ca,this[_0x4b0ea9(0xe1)]=_0x14d06c,this[_0x4b0ea9(0xcf)]=_0x2dcc9a;const {..._0x52dc3c}=_0x1ed009({},T,this[_0x4b0ea9(0x10e)]);this[_0x4b0ea9(0xcf)]['setConfig'](ye,_0x52dc3c);}[_0x376a4f(0xec)](){const _0x2a29a3=_0x376a4f;_0x61aae3(this[_0x2a29a3(0xe1)],_0x5ae5b0([[L],[S],[I],[m]],this[_0x2a29a3(0x10e)]['override'])),_0x92363(this[_0x2a29a3(0xe1)],[[I]]);}[_0x376a4f(0x13e)](){const _0x2fa798=_0x376a4f;_0x92363(this[_0x2fa798(0xe1)],[[m]]);}};B(b,_0x376a4f(0x114),_0x48a4bc[_0x376a4f(0x12c)]),B(b,_0x376a4f(0x105),Ye),b=We([_0x139081(_0x7cb5ad),F(0x1,_0x2a25eb(_0x32fd57)),F(0x2,_0x3456b4)],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 _0x55c6(_0x2d52b5,_0x4a8226){const _0xa0c6be=_0xa0c6();return _0x55c6=function(_0x55c6b2,_0x13e5a0){_0x55c6b2=_0x55c6b2-0xed;let _0x4952b9=_0xa0c6be[_0x55c6b2];return _0x4952b9;},_0x55c6(_0x2d52b5,_0x4a8226);}(function(_0x3fa017,_0x2e6e3d){const _0x178156=_0x55c6,_0x40fd37=_0x3fa017();while(!![]){try{const _0x50f445=parseInt(_0x178156(0x106))/0x1+-parseInt(_0x178156(0xfd))/0x2+parseInt(_0x178156(0xf0))/0x3+parseInt(_0x178156(0x118))/0x4+parseInt(_0x178156(0x100))/0x5*(-parseInt(_0x178156(0x10e))/0x6)+-parseInt(_0x178156(0xee))/0x7*(-parseInt(_0x178156(0x103))/0x8)+parseInt(_0x178156(0x115))/0x9*(-parseInt(_0x178156(0x10d))/0xa);if(_0x50f445===_0x2e6e3d)break;else _0x40fd37['push'](_0x40fd37['shift']());}catch(_0x9c5b4a){_0x40fd37['push'](_0x40fd37['shift']());}}}(_0xa0c6,0x4918c),function(_0x5b15b1,_0xe114ee){const _0x5424a7=_0x55c6;typeof exports==_0x5424a7(0x10c)&&typeof module<'u'?_0xe114ee(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=='function'&&define[_0x5424a7(0x10a)]?define([_0x5424a7(0x112),_0x5424a7(0x104),'@univerjs/sheets',_0x5424a7(0x110),_0x5424a7(0x11d),_0x5424a7(0x121)],_0xe114ee):(_0x5b15b1=typeof globalThis<'u'?globalThis:_0x5b15b1||self,_0xe114ee(_0x5b15b1['UniverProLiveShare'],_0x5b15b1[_0x5424a7(0x120)],_0x5b15b1[_0x5424a7(0xfa)],_0x5b15b1[_0x5424a7(0x10b)],_0x5b15b1[_0x5424a7(0x105)],_0x5b15b1['UniverCoreFacade']));}(this,function(_0x2d73b9,_0x4b25cf,_0x2c44fd,_0x3ca76d,_0x56467d,_0x187707){'use strict';const _0x1ce539=_0x55c6;class _0x45e601 extends _0x56467d[_0x1ce539(0x11a)]{[_0x1ce539(0x109)](_0x1535d9,_0x267af0,_0x2479c1,_0x22c70b,_0x4a602c){const _0x586cb2=_0x1ce539,_0x47ce62=_0x1535d9[_0x586cb2(0x116)](_0x2d73b9[_0x586cb2(0x11e)]),_0x2f591f=_0x1535d9[_0x586cb2(0x116)](_0x4b25cf[_0x586cb2(0xfe)]),_0x1038fd=_0x267af0[_0x586cb2(0xf1)](),_0x8ec65f=_0x267af0[_0x586cb2(0x11b)](),_0x5e8658=_0x47ce62[_0x586cb2(0xf8)](_0x1038fd);(_0x5e8658==null?void 0x0:_0x5e8658[_0x586cb2(0x113)]())!==_0x2d73b9[_0x586cb2(0x102)][_0x586cb2(0xff)]||(_0x2479c1[_0x586cb2(0x117)]()!==_0x8ec65f[_0x586cb2(0x117)]()&&this['_commandService'][_0x586cb2(0x11f)](_0x2c44fd['SetWorksheetActiveOperation']['id'],{'unitId':_0x1038fd,'subUnitId':_0x2479c1[_0x586cb2(0x117)]()}),!_0x2f591f[_0x586cb2(0xf3)](_0x1038fd))||_0x4a602c[_0x586cb2(0xf4)](_0x3ca76d[_0x586cb2(0x108)]['id'],{'unitId':_0x267af0[_0x586cb2(0xf1)](),'sheetId':_0x2479c1[_0x586cb2(0x117)](),'sheetViewStartRow':_0x22c70b[_0x586cb2(0x11c)],'sheetViewStartColumn':_0x22c70b[_0x586cb2(0x107)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x56467d[_0x1ce539(0x11a)][_0x1ce539(0xf6)](_0x45e601);class _0x341c65 extends _0x187707[_0x1ce539(0xf2)]{['getLiveShareStatus'](){const _0xa476cb=_0x1ce539;var _0x1b34b9,_0x5e908c;const _0x1f00c7=this[_0xa476cb(0xef)][_0xa476cb(0x116)](_0x2d73b9[_0xa476cb(0x11e)]),_0x3f2f60=(_0x1b34b9=this[_0xa476cb(0x119)]())==null?void 0x0:_0x1b34b9[_0xa476cb(0x111)]();if(!_0x3f2f60)throw new Error('No\x20active\x20workbook\x20found.');const _0x523ca9=_0x1f00c7[_0xa476cb(0xf8)](_0x3f2f60);return(_0x5e908c=_0x523ca9==null?void 0x0:_0x523ca9[_0xa476cb(0x113)]())!=null?_0x5e908c:_0x2d73b9[_0xa476cb(0x102)][_0xa476cb(0xf9)];}[_0x1ce539(0xf5)](){const _0x43635a=_0x1ce539;var _0x27e6ff;const _0x463948=this[_0x43635a(0xef)]['get'](_0x2d73b9[_0x43635a(0x11e)]),_0x420992=(_0x27e6ff=this[_0x43635a(0x119)]())==null?void 0x0:_0x27e6ff[_0x43635a(0x111)]();if(!_0x420992)throw new Error(_0x43635a(0x10f));const _0x314078=_0x463948['getLiveShareCoordinatorSync'](_0x420992);if(!_0x314078)throw new Error(_0x43635a(0xed));_0x314078[_0x43635a(0xf5)]();}[_0x1ce539(0x114)](){const _0x253053=_0x1ce539;var _0x5d5e30;const _0x15cadd=this[_0x253053(0xef)]['get'](_0x2d73b9[_0x253053(0x11e)]),_0x579f8d=(_0x5d5e30=this[_0x253053(0x119)]())==null?void 0x0:_0x5d5e30[_0x253053(0x111)]();if(!_0x579f8d)throw new Error('No\x20active\x20workbook\x20found.');const _0x42d30f=_0x15cadd[_0x253053(0xf8)](_0x579f8d);if(!_0x42d30f)throw new Error(_0x253053(0xed));_0x42d30f[_0x253053(0x114)]();}[_0x1ce539(0xf7)](){const _0x1cfc41=_0x1ce539;var _0x57badc;const _0x45b39e=this['_injector'][_0x1cfc41(0x116)](_0x2d73b9[_0x1cfc41(0x11e)]),_0x4894f2=(_0x57badc=this[_0x1cfc41(0x119)]())==null?void 0x0:_0x57badc[_0x1cfc41(0x111)]();if(!_0x4894f2)throw new Error(_0x1cfc41(0x10f));const _0x3040e1=_0x45b39e[_0x1cfc41(0xf8)](_0x4894f2);if(!_0x3040e1)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3040e1['tryStartPresenting']();}['stopPresenting'](){const _0x5e372d=_0x1ce539;var _0xd671c0;const _0x3e68d0=this[_0x5e372d(0xef)][_0x5e372d(0x116)](_0x2d73b9['LiveShareController']),_0x5f2b13=(_0xd671c0=this[_0x5e372d(0x119)]())==null?void 0x0:_0xd671c0[_0x5e372d(0x111)]();if(!_0x5f2b13)throw new Error('No\x20active\x20workbook\x20found.');const _0x6de221=_0x3e68d0[_0x5e372d(0xf8)](_0x5f2b13);if(!_0x6de221)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x6de221[_0x5e372d(0xfb)]();}}_0x187707[_0x1ce539(0xf2)][_0x1ce539(0xf6)](_0x341c65);class _0x523a29 extends _0x187707[_0x1ce539(0x101)]{get[_0x1ce539(0xfc)](){const _0x212382=_0x1ce539;return _0x2d73b9[_0x212382(0x102)];}}_0x187707[_0x1ce539(0x101)]['extend'](_0x523a29);}));function _0xa0c6(){const _0x541f31=['startColumn','SetScrollOperation','_initialize','amd','UniverSheetsUi','object','311970AuLlDR','1124454mlOpEY','No\x20active\x20workbook\x20found.','@univerjs/sheets-ui','getId','@univerjs-pro/live-share','getStatus','stopFollowing','207QuNeir','get','getSheetId','1087864kHhKWk','getActiveWorkbook','FRange','getActiveSheet','startRow','@univerjs/sheets/facade','LiveShareController','executeCommand','UniverEngineRender','@univerjs/core/facade','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','1137052IxNpCH','_injector','1482195EQMpBZ','getUnitId','FUniver','getRenderById','syncExecuteCommand','startFollowing','extend','startPresenting','getLiveShareCoordinatorSync','IDLE','UniverSheets','stopPresenting','LiveShareStatusEnum','238604jHSuGW','IRenderManagerService','PRESENTING','15qfbgBR','FEnum','LiveShareStatus','24UJmnkm','@univerjs/engine-render','UniverSheetsFacade','445125aBhfIC'];_0xa0c6=function(){return _0x541f31;};return _0xa0c6();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0xb79d8b,_0x45253f){const _0x13fb2a=_0x12a5,_0x165408=_0xb79d8b();while(!![]){try{const _0x5dbc95=parseInt(_0x13fb2a(0x188))/0x1+parseInt(_0x13fb2a(0x158))/0x2+-parseInt(_0x13fb2a(0x1b3))/0x3*(parseInt(_0x13fb2a(0xd8))/0x4)+parseInt(_0x13fb2a(0x138))/0x5+parseInt(_0x13fb2a(0xdd))/0x6*(parseInt(_0x13fb2a(0x1a5))/0x7)+-parseInt(_0x13fb2a(0x186))/0x8+parseInt(_0x13fb2a(0x18e))/0x9*(parseInt(_0x13fb2a(0x12a))/0xa);if(_0x5dbc95===_0x45253f)break;else _0x165408['push'](_0x165408['shift']());}catch(_0x3a2648){_0x165408['push'](_0x165408['shift']());}}}(_0x90d5,0xc58e5),function(_0x9118e9,_0xe16f32){const _0x750200=_0x12a5;typeof exports==_0x750200(0x10d)&&typeof module<'u'?_0xe16f32(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==_0x750200(0xf4)&&define[_0x750200(0x195)]?define([_0x750200(0xff),'@univerjs/core','@univerjs/ui',_0x750200(0x18d),'@univerjs/design','react',_0x750200(0x168),_0x750200(0x106),_0x750200(0x144),_0x750200(0xe4),'rxjs/operators',_0x750200(0xfc)],_0xe16f32):(_0x9118e9=typeof globalThis<'u'?globalThis:_0x9118e9||self,_0xe16f32(_0x9118e9[_0x750200(0x123)]={},_0x9118e9[_0x750200(0x139)],_0x9118e9['UniverUi'],_0x9118e9[_0x750200(0x1a0)],_0x9118e9[_0x750200(0x121)],_0x9118e9['React'],_0x9118e9[_0x750200(0x194)],_0x9118e9[_0x750200(0xf8)],_0x9118e9[_0x750200(0x16e)],_0x9118e9[_0x750200(0xe4)],_0x9118e9['rxjs'][_0x750200(0xe6)],_0x9118e9[_0x750200(0xfe)]));}(this,function(_0x32170d,_0x34c7db,_0x3b604b,_0x21b20a,_0x24d65f,_0x1f913f,_0xe01c5b,_0xe0833,_0xac9784,_0x317d5e,_0x5088b7,_0x2c9719){'use strict';const _0x3d9623=_0x12a5;var _0x2fde6e=Object['defineProperty'],_0x55ba4d=(_0x1ad1fa,_0x796674,_0x2222e2)=>_0x796674 in _0x1ad1fa?_0x2fde6e(_0x1ad1fa,_0x796674,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2222e2}):_0x1ad1fa[_0x796674]=_0x2222e2,_0x4c5777=(_0x59625c,_0x17cb71,_0x335c94)=>_0x55ba4d(_0x59625c,typeof _0x17cb71!=_0x3d9623(0x115)?_0x17cb71+'':_0x17cb71,_0x335c94);function _0x11517f({ref:_0x5bd072,..._0x921763}){const _0x578243=_0x3d9623,{icon:_0x115f72,id:_0x17b0c0,className:_0x4aaf56,extend:_0x526d62,..._0x2a71af}=_0x921763,_0x384f14=(_0x578243(0x173)+_0x17b0c0+'\x20'+(_0x4aaf56||''))[_0x578243(0x1be)](),_0x4b8938=_0x1f913f[_0x578243(0x18b)]('_'+_0x2f541d());return _0x111c75(_0x115f72,''+_0x17b0c0,{'defIds':_0x115f72['defIds'],'idSuffix':_0x4b8938[_0x578243(0x156)]},{'ref':_0x5bd072,'className':_0x384f14,..._0x2a71af},_0x526d62);}function _0x111c75(_0x23e1f9,_0x105723,_0x2a17fd,_0x150119,_0x1bfc92){const _0xb3b821=_0x3d9623;return _0x1f913f[_0xb3b821(0x17b)](_0x23e1f9[_0xb3b821(0x152)],{'key':_0x105723,..._0x477789(_0x23e1f9,_0x2a17fd,_0x1bfc92),..._0x150119},(_0x4533f1(_0x23e1f9,_0x2a17fd)[_0xb3b821(0x114)]||[])['map']((_0x1344f3,_0x3118c3)=>_0x111c75(_0x1344f3,_0x105723+'-'+_0x23e1f9[_0xb3b821(0x152)]+'-'+_0x3118c3,_0x2a17fd,void 0x0,_0x1bfc92)));}function _0x477789(_0x1e6744,_0x5de9e7,_0x4e51bc){const _0x4b37c4=_0x3d9623,_0xd39dda={..._0x1e6744['attrs']};_0x4e51bc!=null&&_0x4e51bc[_0x4b37c4(0xf6)]&&_0xd39dda['fill']===_0x4b37c4(0xf6)&&(_0xd39dda['fill']=_0x4e51bc[_0x4b37c4(0xf6)]),_0x1e6744[_0x4b37c4(0x152)]===_0x4b37c4(0x13f)&&_0xd39dda['id']&&(_0xd39dda['id']=_0xd39dda['id']+_0x5de9e7[_0x4b37c4(0x12f)]),Object[_0x4b37c4(0x13c)](_0xd39dda)[_0x4b37c4(0x19e)](([_0x5dff59,_0x1e6872])=>{const _0x201c9e=_0x4b37c4;_0x5dff59===_0x201c9e(0x13f)&&typeof _0x1e6872==_0x201c9e(0x1b6)&&(_0xd39dda[_0x5dff59]=_0x1e6872['replace'](/url\(#(.*)\)/,_0x201c9e(0x128)+_0x5de9e7[_0x201c9e(0x12f)]+')'));});const {defIds:_0x57d794}=_0x5de9e7;return!_0x57d794||_0x57d794[_0x4b37c4(0x11a)]===0x0||(_0x1e6744[_0x4b37c4(0x152)]===_0x4b37c4(0x124)&&_0xd39dda['xlink:href']&&(_0xd39dda[_0x4b37c4(0x1bd)]=_0xd39dda[_0x4b37c4(0x1bd)]+_0x5de9e7['idSuffix']),Object['entries'](_0xd39dda)['forEach'](([_0x3ae729,_0x4ee97b])=>{const _0x15e102=_0x4b37c4;typeof _0x4ee97b=='string'&&(_0xd39dda[_0x3ae729]=_0x4ee97b['replace'](/url\(#(.*)\)/,'url(#$1'+_0x5de9e7[_0x15e102(0x12f)]+')'));})),_0xd39dda;}function _0x4533f1(_0x530eb7,_0x4c48bd){const _0x4dd73d=_0x3d9623;var _0x2f3f93;const {defIds:_0x38140d}=_0x4c48bd;return!_0x38140d||_0x38140d[_0x4dd73d(0x11a)]===0x0?_0x530eb7:_0x530eb7[_0x4dd73d(0x152)]===_0x4dd73d(0x171)&&((_0x2f3f93=_0x530eb7[_0x4dd73d(0x114)])!=null&&_0x2f3f93[_0x4dd73d(0x11a)])?{..._0x530eb7,'children':_0x530eb7[_0x4dd73d(0x114)]['map'](_0x27b246=>typeof _0x27b246[_0x4dd73d(0x105)]['id']==_0x4dd73d(0x1b6)&&_0x38140d&&_0x38140d['includes'](_0x27b246[_0x4dd73d(0x105)]['id'])?{..._0x27b246,'attrs':{..._0x27b246['attrs'],'id':_0x27b246[_0x4dd73d(0x105)]['id']+_0x4c48bd[_0x4dd73d(0x12f)]}}:_0x27b246)}:_0x530eb7;}function _0x2f541d(){const _0x58a2f5=_0x3d9623;return Math[_0x58a2f5(0x112)]()[_0x58a2f5(0x10a)](0x24)[_0x58a2f5(0x150)](0x2,0x8);}_0x11517f[_0x3d9623(0x137)]=_0x3d9623(0x16f);const _0x28a462={'tag':_0x3d9623(0x133),'attrs':{'xmlns':_0x3d9623(0x1ab),'fill':_0x3d9623(0xda),'viewBox':_0x3d9623(0x172),'width':_0x3d9623(0x14e),'height':_0x3d9623(0x14e)},'children':[{'tag':_0x3d9623(0x15c),'attrs':{'fill':'currentColor','d':_0x3d9623(0x134)}},{'tag':_0x3d9623(0x15c),'attrs':{'fill':_0x3d9623(0x153),'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':_0x3d9623(0x13e),'clipRule':'evenodd'}}]},_0xc131=_0x1f913f[_0x3d9623(0x189)](function(_0xcadb01,_0x2ecedc){const _0x43cf55=_0x3d9623;return _0x1f913f['createElement'](_0x11517f,Object[_0x43cf55(0x12e)]({},_0xcadb01,{'id':_0x43cf55(0x1ba),'ref':_0x2ecedc,'icon':_0x28a462}));});_0xc131[_0x3d9623(0x137)]='LiveShareIcon';class _0x423aa1 extends _0x34c7db[_0x3d9623(0x163)]{constructor(){const _0x1f66c7=_0x3d9623;super(...arguments),_0x4c5777(this,_0x1f66c7(0x1ae),new Set()),_0x4c5777(this,_0x1f66c7(0x1ad),new Set());}[_0x3d9623(0x16d)](_0x32776a){const _0x5ea55c=_0x3d9623;return this[_0x5ea55c(0x1ae)][_0x5ea55c(0x15a)](_0x32776a),_0x34c7db[_0x5ea55c(0x1bc)](()=>this[_0x5ea55c(0x1ae)]['delete'](_0x32776a));}[_0x3d9623(0x126)](_0x373a22){const _0x39c312=_0x3d9623;return this['_reporters'][_0x39c312(0x15a)](_0x373a22),_0x34c7db[_0x39c312(0x1bc)](()=>this[_0x39c312(0x1ad)][_0x39c312(0x167)](_0x373a22));}[_0x3d9623(0x157)](_0x4ab51f){const _0x3ac747=_0x3d9623;return this[_0x3ac747(0x1ae)][_0x3ac747(0x11f)](_0x4ab51f);}['getInitialStates'](_0x2968e8){const _0x4235b1=_0x3d9623;return Array[_0x4235b1(0xd9)](this[_0x4235b1(0x1ad)])[_0x4235b1(0x165)](_0x456e5d=>_0x456e5d(_0x2968e8));}}var _0x2e282=Object[_0x3d9623(0x135)],_0x28330e=(_0x505420,_0x132e6d,_0x5303ca,_0x41c371)=>{const _0x277455=_0x3d9623;for(var _0x502ca1=_0x41c371>0x1?void 0x0:_0x41c371?_0x2e282(_0x132e6d,_0x5303ca):_0x132e6d,_0x58779a=_0x505420[_0x277455(0x11a)]-0x1,_0x355754;_0x58779a>=0x0;_0x58779a--)(_0x355754=_0x505420[_0x58779a])&&(_0x502ca1=_0x355754(_0x502ca1)||_0x502ca1);return _0x502ca1;},_0x3b782a=(_0x486652,_0x2b5c74)=>(_0x5af75e,_0x3b5d2a)=>_0x2b5c74(_0x5af75e,_0x3b5d2a,_0x486652);_0x32170d['LiveShareController']=class extends _0x34c7db['RxDisposable']{constructor(_0xefaaa6,_0x3c194b,_0x409ac4){const _0x386a04=_0x3d9623;super(),_0x4c5777(this,_0x386a04(0x19c),new Map()),(this['_univerInstanceService']=_0xefaaa6,this[_0x386a04(0xdb)]=_0x3c194b,this[_0x386a04(0xdc)]=_0x409ac4,this[_0x386a04(0x1b7)]());}async['getLiveShareCoordinator'](_0x4fc31e){const _0x4075c3=_0x3d9623;return this[_0x4075c3(0x19c)][_0x4075c3(0x11f)](_0x4fc31e)||await this[_0x4075c3(0x159)](_0x4fc31e),this['_entities'][_0x4075c3(0x1bb)](_0x4fc31e);}['getLiveShareCoordinatorSync'](_0x330349){var _0x4f9542;return(_0x4f9542=this['_entities']['get'](_0x330349))!=null?_0x4f9542:null;}[_0x3d9623(0x1b7)](){const _0x15e53c=_0x3d9623;this[_0x15e53c(0x110)][_0x15e53c(0x182)](_0x34c7db[_0x15e53c(0x13b)]['UNIVER_SHEET'])[_0x15e53c(0x17a)](_0x5088b7[_0x15e53c(0x15f)](this[_0x15e53c(0x1a7)]))['subscribe'](async _0x332eb0=>{const _0x265cc=_0x15e53c,_0x19e31a=_0x332eb0[_0x265cc(0x14a)]();this[_0x265cc(0x19c)][_0x265cc(0x11f)](_0x19e31a)||this['_startLiveShareCoordinator'](_0x19e31a);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x34c7db[_0x15e53c(0x13b)][_0x15e53c(0xf1)])['pipe'](_0x5088b7[_0x15e53c(0x15f)](this['dispose$']))[_0x15e53c(0x147)](_0x450704=>{const _0x509a9c=_0x15e53c,_0x28a762=_0x450704[_0x509a9c(0x14a)](),_0x199270=this['_entities']['get'](_0x28a762);_0x199270==null||_0x199270[_0x509a9c(0x1a6)]();});}async['_startLiveShareCoordinator'](_0x566120){const _0xb613cb=_0x3d9623,_0x889607=await this[_0xb613cb(0xdc)]['requireSession'](_0x566120),_0x29f7ad=this[_0xb613cb(0xdb)]['createInstance'](_0x32170d[_0xb613cb(0x179)],_0x566120,_0x889607);return _0x29f7ad['init'](),this[_0xb613cb(0x19c)][_0xb613cb(0x1b5)](_0x566120,_0x29f7ad),_0x29f7ad;}},_0x32170d[_0x3d9623(0x187)]=_0x28330e([_0x3b782a(0x0,_0x34c7db[_0x3d9623(0xd7)]),_0x3b782a(0x1,_0x34c7db[_0x3d9623(0x16c)](_0x34c7db[_0x3d9623(0x151)])),_0x3b782a(0x2,_0x34c7db[_0x3d9623(0x16c)](_0xe0833[_0x3d9623(0x143)]))],_0x32170d[_0x3d9623(0x187)]);var _0x4fec94=(_0xa39b1=>(_0xa39b1[_0x3d9623(0x15d)]=_0x3d9623(0x10c),_0xa39b1[_0x3d9623(0xfd)]=_0x3d9623(0x155),_0xa39b1[_0x3d9623(0x193)]=_0x3d9623(0x18f),_0xa39b1['NOT_FOLLOWING']='not-following',_0xa39b1[_0x3d9623(0xeb)]=_0x3d9623(0x17f),_0xa39b1))(_0x4fec94||{});const _0x2450f3=_0x3d9623(0xed),_0x3e3925=0xc8;_0x32170d[_0x3d9623(0x179)]=class extends _0x34c7db[_0x3d9623(0x197)]{constructor(_0x204b66,_0x670f46,_0x43b13c,_0x5683c9,_0x2b3947){const _0x169ee8=_0x3d9623;super(),_0x4c5777(this,_0x169ee8(0x11b),new _0x317d5e[(_0x169ee8(0x1b8))]('idle')),_0x4c5777(this,_0x169ee8(0x199),this['_status$'][_0x169ee8(0x1b9)]()),_0x4c5777(this,_0x169ee8(0x1b7),!0x1),_0x4c5777(this,_0x169ee8(0x15e),null),_0x4c5777(this,_0x169ee8(0x117),null),(this[_0x169ee8(0x169)]=_0x204b66,this[_0x169ee8(0x14b)]=_0x670f46,this[_0x169ee8(0x101)]=_0x43b13c,this[_0x169ee8(0x14d)]=_0x5683c9,this[_0x169ee8(0x17d)]=_0x2b3947);}get[_0x3d9623(0xec)](){const _0x209465=_0x3d9623;return this[_0x209465(0x11b)][_0x209465(0x10b)]();}[_0x3d9623(0x1a6)](){const _0x4e72f3=_0x3d9623;var _0x3c1874;(_0x3c1874=this['_commandDisposable'])==null||_0x3c1874[_0x4e72f3(0x1a6)](),this[_0x4e72f3(0x11b)]['next'](_0x4e72f3(0x155)),this[_0x4e72f3(0x11b)]['complete']();}[_0x3d9623(0xfb)](){const _0x1976a5=_0x3d9623;return this[_0x1976a5(0xec)];}[_0x3d9623(0x141)](){const _0x3da1e6=_0x3d9623;this[_0x3da1e6(0x1b7)]||(this['_init']=!0x0,this['_collabSession'][_0x3da1e6(0xf0)][_0x3da1e6(0x17a)](_0x5088b7['takeUntil'](this[_0x3da1e6(0x1a7)]))[_0x3da1e6(0x147)](_0x5d3e45=>{const _0x5259a1=_0x3da1e6;switch(_0x5d3e45){case _0xe0833[_0x5259a1(0x19d)]['OFFLINE']:this[_0x5259a1(0x103)]();break;case _0xe0833[_0x5259a1(0x19d)]['ONLINE']:this[_0x5259a1(0x111)]();break;}}),this[_0x3da1e6(0x14b)][_0x3da1e6(0x127)]['pipe'](_0x5088b7[_0x3da1e6(0x15f)](this[_0x3da1e6(0x1a7)]))[_0x3da1e6(0x147)](_0x4dd799=>{const _0x38a494=_0x3da1e6,{eventID:_0x596925}=_0x4dd799;switch(_0x596925){case _0xe01c5b[_0x38a494(0x12b)][_0x38a494(0x119)]:this[_0x38a494(0x12d)](_0x4dd799);break;case _0xe01c5b[_0x38a494(0x12b)][_0x38a494(0x1a3)]:this[_0x38a494(0xf7)](_0x4dd799);break;case _0xe01c5b[_0x38a494(0x12b)][_0x38a494(0xfa)]:this[_0x38a494(0x14f)]();break;case _0xe01c5b['CollaborationEvent'][_0x38a494(0x192)]:this[_0x38a494(0xe0)](_0x4dd799);break;}}));}[_0x3d9623(0xdf)](){const _0x22f1cc=_0x3d9623;this[_0x22f1cc(0x14b)][_0x22f1cc(0x162)]({'eventID':_0xe01c5b[_0x22f1cc(0x12b)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x22f1cc(0x14b)][_0x22f1cc(0x191)]()}},this[_0x22f1cc(0x169)]);}['stopPresenting'](){const _0x5baf62=_0x3d9623;this[_0x5baf62(0xec)]==='presenting'&&(this['_status$']['next'](_0x5baf62(0x155)),this['_collabSession']['send']({'eventID':_0xe01c5b[_0x5baf62(0x12b)][_0x5baf62(0xfa)],'data':{'unitID':this[_0x5baf62(0x169)]}},this['_unitID']));}['startFollowing'](){const _0x296613=_0x3d9623;this[_0x296613(0xec)]===_0x296613(0x184)&&(this[_0x296613(0x11b)][_0x296613(0x145)](_0x296613(0x18f)),this['_startFollowing']());}[_0x3d9623(0x164)](){const _0x58706e=_0x3d9623;this['_status']===_0x58706e(0x18f)&&this[_0x58706e(0xf3)]();}[_0x3d9623(0x12d)](_0x5ec037){const _0x65c0fa=_0x3d9623,{presenter:_0x5a5c07}=_0x5ec037[_0x65c0fa(0x196)],_0x2ae567=this[_0x65c0fa(0x14b)][_0x65c0fa(0x191)]();this['_presenter']=_0x5a5c07,_0x5a5c07===_0x2ae567?(this[_0x65c0fa(0xf3)](),this[_0x65c0fa(0x125)]()):this[_0x65c0fa(0xec)]!==_0x65c0fa(0x184)&&(this[_0x65c0fa(0xe5)](),this[_0x65c0fa(0x19f)]());}['_fetchOperations'](){const _0x1c9340=_0x3d9623,_0x40acdc={'eventID':_0xe01c5b['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x1c9340(0x14b)][_0x1c9340(0x162)](_0x40acdc,this[_0x1c9340(0x169)]);}[_0x3d9623(0x14f)](){const _0x14a14a=_0x3d9623;this[_0x14a14a(0x117)]=null,this[_0x14a14a(0xec)]!==_0x14a14a(0x17f)&&this['_beIdle']();}[_0x3d9623(0xe0)](_0x56c5f5){const _0xc35f4e=_0x3d9623;if(this[_0xc35f4e(0xec)]===_0xc35f4e(0x18f)&&this[_0xc35f4e(0x117)]===_0x56c5f5[_0xc35f4e(0x196)][_0xc35f4e(0x170)]){const _0x53ab4a=_0xe01c5b[_0xc35f4e(0xe9)](_0x56c5f5[_0xc35f4e(0x196)])[_0xc35f4e(0x118)][_0xc35f4e(0x10f)]()[_0xc35f4e(0x122)](_0x2c5470=>_0x2c5470['id']===_0xac9784['InsertSheetMutation']['id']);if(_0x53ab4a){const _0x4a8bed=_0x53ab4a['params'][_0xc35f4e(0x11c)],_0x305398=_0x53ab4a[_0xc35f4e(0x107)][_0xc35f4e(0x1b1)]['id'];setTimeout(()=>{const _0x3e6c0a=_0xc35f4e;this[_0x3e6c0a(0x17d)][_0x3e6c0a(0xf2)](_0xac9784[_0x3e6c0a(0x198)]['id'],{'unitId':_0x4a8bed,'subUnitId':_0x305398},{'fromCollab':!0x0});});}}}[_0x3d9623(0x125)](){const _0x3c6597=_0x3d9623;this[_0x3c6597(0x11b)]['next'](_0x3c6597(0x17f));const _0x54e445=new Map(),_0x41f5ad=this[_0x3c6597(0x15e)]=new _0x34c7db[(_0x3c6597(0xe8))]();_0x41f5ad[_0x3c6597(0x15a)](_0x34c7db['toDisposable'](()=>{const _0x19e9df=_0x3c6597;_0x54e445[_0x19e9df(0x19e)](_0x557a5f=>_0x557a5f[_0x19e9df(0x14c)]()),_0x54e445[_0x19e9df(0x180)]();})),_0x41f5ad['add'](this[_0x3c6597(0x17d)][_0x3c6597(0xde)](_0x2b0cc8=>{const _0x3fb9a9=_0x3c6597;var _0x3168c0;if(_0x2b0cc8[_0x3fb9a9(0x1af)]!==_0x34c7db[_0x3fb9a9(0x149)]['OPERATION']||!this[_0x3fb9a9(0x14d)][_0x3fb9a9(0x157)](_0x2b0cc8['id']))return;const {id:_0x47b788}=_0x2b0cc8;let _0x2d4c26;_0x54e445['has'](_0x47b788)?_0x2d4c26=_0x54e445['get'](_0x47b788):(_0x2d4c26=new _0x317d5e[(_0x3fb9a9(0x183))](),_0x54e445['set'](_0x47b788,_0x2d4c26),_0x2d4c26[_0x3fb9a9(0x17a)](_0x5088b7[_0x3fb9a9(0x1aa)]((_0x3168c0=this[_0x3fb9a9(0x101)][_0x3fb9a9(0x1a9)](_0x2450f3))!=null?_0x3168c0:_0x3e3925,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1cce25=>{const _0x358a7e=_0x3fb9a9;this[_0x358a7e(0x14b)][_0x358a7e(0x162)]({'eventID':_0xe01c5b['CollaborationEvent'][_0x358a7e(0x1a3)],'data':{'unitID':this['_unitID'],'operations':{[_0x1cce25['id']]:{'id':_0x1cce25['id'],'params':JSON[_0x358a7e(0x16b)](_0x1cce25['params'])}}}},this[_0x358a7e(0x169)]);})),_0x2d4c26[_0x3fb9a9(0x145)](_0x2b0cc8);})),this[_0x3c6597(0x14d)][_0x3c6597(0x1a4)](this[_0x3c6597(0x169)])[_0x3c6597(0x19e)](_0x75d463=>this[_0x3c6597(0x14b)]['send']({'eventID':_0xe01c5b[_0x3c6597(0x12b)][_0x3c6597(0x1a3)],'data':{'unitID':this[_0x3c6597(0x169)],'operations':{[_0x75d463['id']]:{'id':_0x75d463['id'],'params':JSON[_0x3c6597(0x16b)](_0x75d463['params'])}}}},this[_0x3c6597(0x169)]));}[_0x3d9623(0xe5)](){const _0x1290a5=_0x3d9623;var _0x40d932;this['_status$'][_0x1290a5(0x145)](_0x1290a5(0x155)),(_0x40d932=this[_0x1290a5(0x15e)])==null||_0x40d932[_0x1290a5(0x1a6)](),this[_0x1290a5(0x15e)]=null;}['_startFollowing'](){const _0x107fca=_0x3d9623;var _0x3c47a3;(_0x3c47a3=this['_commandDisposable'])==null||_0x3c47a3[_0x107fca(0x1a6)](),this[_0x107fca(0x11b)][_0x107fca(0x145)](_0x107fca(0x18f));}[_0x3d9623(0x132)](){const _0x5f27cc=_0x3d9623;var _0x72b3c;this[_0x5f27cc(0x11b)][_0x5f27cc(0x145)](_0x5f27cc(0x155)),(_0x72b3c=this[_0x5f27cc(0x15e)])==null||_0x72b3c[_0x5f27cc(0x1a6)](),this['_commandDisposable']=null;}[_0x3d9623(0xf3)](){const _0x3a2651=_0x3d9623;var _0x525d1e;this['_status$'][_0x3a2651(0x145)](_0x3a2651(0x184)),(_0x525d1e=this[_0x3a2651(0x15e)])==null||_0x525d1e['dispose']();}[_0x3d9623(0xf7)](_0x426086){const _0x157aa3=_0x3d9623;if([_0x157aa3(0x17f),_0x157aa3(0x184),_0x157aa3(0x10c)][_0x157aa3(0x129)](this['_status'])||!_0x426086[_0x157aa3(0x196)][_0x157aa3(0x102)]||_0x426086['data']['presenter']===this[_0x157aa3(0x14b)]['getMemberID']())return;this['_status']===_0x157aa3(0x155)&&this['_startFollowing']();const _0xb2cfb1=_0x426086[_0x157aa3(0x196)][_0x157aa3(0xe2)];Object['values'](_0xb2cfb1)['forEach'](_0x14afd8=>{const _0x2a45af=_0x157aa3;this[_0x2a45af(0x17d)][_0x2a45af(0xf2)](_0x14afd8['id'],_0x14afd8[_0x2a45af(0x107)]?JSON[_0x2a45af(0x146)](_0x14afd8[_0x2a45af(0x107)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x3a7d4e=_0x3d9623;var _0x36dc77;this[_0x3a7d4e(0x11b)][_0x3a7d4e(0x145)]('offline'),(_0x36dc77=this[_0x3a7d4e(0x15e)])==null||_0x36dc77[_0x3a7d4e(0x1a6)]();}[_0x3d9623(0x111)](){const _0x161ab1=_0x3d9623;this['_status$'][_0x161ab1(0x145)]('idle'),this[_0x161ab1(0x19a)]();}},_0x32170d['LiveShareCoordinator']=_0x28330e([_0x3b782a(0x2,_0x34c7db[_0x3d9623(0x190)]),_0x3b782a(0x3,_0x34c7db[_0x3d9623(0x16c)](_0x423aa1)),_0x3b782a(0x4,_0x34c7db['ICommandService'])],_0x32170d['LiveShareCoordinator']);function _0x6d5d22(){const _0x1b1db3=_0x3d9623,_0xc987e=_0x3b604b[_0x1b1db3(0x18c)](_0x32170d[_0x1b1db3(0x187)]),_0x386675=_0x3b604b[_0x1b1db3(0x18c)](_0x34c7db['IUniverInstanceService']),_0x3baa8c=_0x3b604b[_0x1b1db3(0x113)](()=>_0x386675[_0x1b1db3(0x175)](_0x34c7db[_0x1b1db3(0x13b)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3f3f24,_0x1898e9]=_0x1f913f['useState'](null),[_0x1a895a,_0x3b5598]=_0x1f913f['useState'](_0x4fec94['IDLE']),_0x7e8433=_0x1f913f['useRef'](null);return _0x1f913f[_0x1b1db3(0xe7)](()=>(_0x3baa8c&&_0xc987e[_0x1b1db3(0xf9)](_0x3baa8c[_0x1b1db3(0x14a)]())[_0x1b1db3(0x131)](_0x4be215=>{const _0x3b061c=_0x1b1db3;_0x1898e9(_0x4be215),_0x7e8433[_0x3b061c(0x156)]=_0x4be215[_0x3b061c(0x199)][_0x3b061c(0x147)](_0xb5915b=>{_0x3b5598(_0xb5915b);});}),()=>{const _0x5c1280=_0x1b1db3;var _0x2212ff;(_0x2212ff=_0x7e8433[_0x5c1280(0x156)])==null||_0x2212ff[_0x5c1280(0x13a)](),_0x7e8433['current']=null;}),[_0x3baa8c,_0xc987e]),_0x3f3f24?_0x21b20a[_0x1b1db3(0x109)](_0x24d65f[_0x1b1db3(0x140)],{'align':_0x1b1db3(0x18a),'disabled':_0x1a895a===_0x4fec94[_0x1b1db3(0x15d)],'className':_0x1b1db3(0x148),'overlay':_0x21b20a[_0x1b1db3(0x109)](_0x558758,{'status':_0x1a895a,'coordinator':_0x3f3f24}),'children':_0x21b20a[_0x1b1db3(0x109)](_0x1b1db3(0xf5),{'className':_0x24d65f[_0x1b1db3(0x100)](_0x1b1db3(0xea),{'univer-cursor-not-allowed':_0x1a895a===_0x4fec94[_0x1b1db3(0x15d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1a895a!==_0x4fec94[_0x1b1db3(0x15d)]}),'type':_0x1b1db3(0xf5),'children':_0x21b20a[_0x1b1db3(0x109)](_0xc131,{'className':'univer-size-4'})})}):null;}function _0x558758(_0x3155e2){const _0x3f9160=_0x3d9623,{status:_0x30c4f2,coordinator:_0x3774d6}=_0x3155e2;switch(_0x30c4f2){case _0x4fec94['IDLE']:return _0x21b20a['jsx'](_0x4ac4f9,{'coordinator':_0x3774d6});case _0x4fec94[_0x3f9160(0x193)]:return _0x21b20a[_0x3f9160(0x109)](_0x46ea45,{'coordinator':_0x3774d6});case _0x4fec94[_0x3f9160(0x178)]:return _0x21b20a['jsx'](_0x81e4d3,{'coordinator':_0x3774d6});case _0x4fec94[_0x3f9160(0x15d)]:return _0x21b20a[_0x3f9160(0x109)](_0x34b943,{});case _0x4fec94[_0x3f9160(0xeb)]:return _0x21b20a[_0x3f9160(0x109)](_0x355e4b,{'coordinator':_0x3774d6});default:return null;}}function _0x4ac4f9(_0x6e60cc){const _0x5f25c0=_0x3d9623,{coordinator:_0x58126c}=_0x6e60cc;return _0x21b20a['jsxs'](_0x21b20a[_0x5f25c0(0x154)],{'children':[_0x21b20a[_0x5f25c0(0x109)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5f25c0(0x19b)}),_0x21b20a['jsx'](_0x24d65f[_0x5f25c0(0x1b0)],{'onClick':()=>_0x58126c[_0x5f25c0(0xdf)](),'children':'Start'})]});}function _0x46ea45(_0x4266e2){const _0x416302=_0x3d9623,{coordinator:_0x5be1ea}=_0x4266e2;return _0x21b20a[_0x416302(0x116)](_0x21b20a['Fragment'],{'children':[_0x21b20a[_0x416302(0x109)](_0x416302(0x12c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x416302(0xe1)}),_0x21b20a['jsx'](_0x24d65f[_0x416302(0x1b0)],{'onClick':()=>_0x5be1ea[_0x416302(0x164)](),'children':_0x416302(0x142)})]});}function _0x81e4d3(_0x4e404f){const _0xc6f6f8=_0x3d9623,{coordinator:_0x175a17}=_0x4e404f;return _0x21b20a[_0xc6f6f8(0x116)](_0x21b20a[_0xc6f6f8(0x154)],{'children':[_0x21b20a['jsx'](_0xc6f6f8(0x12c),{'className':_0xc6f6f8(0x181),'children':_0xc6f6f8(0x166)}),_0x21b20a[_0xc6f6f8(0x109)](_0x24d65f[_0xc6f6f8(0x1b0)],{'variant':_0xc6f6f8(0x176),'onClick':()=>_0x175a17['startFollowing'](),'children':'Start\x20following'})]});}function _0x355e4b(_0x15ee7d){const _0xa73f32=_0x3d9623,{coordinator:_0x536e37}=_0x15ee7d;return _0x21b20a[_0xa73f32(0x116)](_0x21b20a[_0xa73f32(0x154)],{'children':[_0x21b20a[_0xa73f32(0x109)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xa73f32(0x1a2)}),_0x21b20a[_0xa73f32(0x109)](_0x24d65f[_0xa73f32(0x1b0)],{'variant':'default','onClick':()=>_0x536e37[_0xa73f32(0x177)](),'children':'Stop\x20presenting'})]});}function _0x34b943(){const _0x4da438=_0x3d9623;return _0x21b20a[_0x4da438(0x109)](_0x21b20a[_0x4da438(0x154)],{'children':_0x4da438(0xee)});}var _0x53eccd=Object[_0x3d9623(0x135)],_0x17e549=(_0x30b2f2,_0x239c4d,_0x1ebaa6,_0x42fcf4)=>{const _0x558e44=_0x3d9623;for(var _0x10aee3=_0x42fcf4>0x1?void 0x0:_0x42fcf4?_0x53eccd(_0x239c4d,_0x1ebaa6):_0x239c4d,_0x4c7678=_0x30b2f2[_0x558e44(0x11a)]-0x1,_0xf711dc;_0x4c7678>=0x0;_0x4c7678--)(_0xf711dc=_0x30b2f2[_0x4c7678])&&(_0x10aee3=_0xf711dc(_0x10aee3)||_0x10aee3);return _0x10aee3;},_0x487e5c=(_0x8aef26,_0xb36d73)=>(_0x5de36c,_0x5c9a6a)=>_0xb36d73(_0x5de36c,_0x5c9a6a,_0x8aef26);_0x32170d['DesktopLiveShareController']=class extends _0x34c7db[_0x3d9623(0x163)]{constructor(_0x15f1ad,_0x41ad41){const _0xe196c1=_0x3d9623;super(),this[_0xe196c1(0xdb)]=_0x15f1ad,this['_uiPartsService']=_0x41ad41,this[_0xe196c1(0x160)]();}['_mountLiveShare'](){const _0x1340d1=_0x3d9623;this[_0x1340d1(0x185)](this[_0x1340d1(0x1a1)][_0x1340d1(0x130)](_0x3b604b[_0x1340d1(0x1b4)]['HEADER_MENU'],()=>_0x3b604b[_0x1340d1(0x10e)](_0x6d5d22,this['_injector'])));}},_0x32170d['DesktopLiveShareController']=_0x17e549([_0x487e5c(0x0,_0x34c7db[_0x3d9623(0x16c)](_0x34c7db[_0x3d9623(0x151)])),_0x487e5c(0x1,_0x3b604b[_0x3d9623(0x11e)])],_0x32170d[_0x3d9623(0x1a8)]);const _0x814035=_0x3d9623(0xef),_0x2c36e1={};var _0x1b5c13=Object[_0x3d9623(0x135)],_0x101aa4=(_0x5c2d3b,_0x395518,_0x26e2ff,_0x43b694)=>{const _0x16ba23=_0x3d9623;for(var _0x3097eb=_0x43b694>0x1?void 0x0:_0x43b694?_0x1b5c13(_0x395518,_0x26e2ff):_0x395518,_0x203b49=_0x5c2d3b[_0x16ba23(0x11a)]-0x1,_0x407fd9;_0x203b49>=0x0;_0x203b49--)(_0x407fd9=_0x5c2d3b[_0x203b49])&&(_0x3097eb=_0x407fd9(_0x3097eb)||_0x3097eb);return _0x3097eb;},_0x4d30e8=(_0x136594,_0x48832e)=>(_0xf1a786,_0x31e2d0)=>_0x48832e(_0xf1a786,_0x31e2d0,_0x136594);let _0x5eba6f=class extends _0x34c7db[_0x3d9623(0x163)]{constructor(_0x3fde02){const _0x338c3f=_0x3d9623;super(),this[_0x338c3f(0x14d)]=_0x3fde02,this[_0x338c3f(0x1b7)]();}[_0x3d9623(0x1b7)](){const _0x200957=_0x3d9623;[_0x2c9719[_0x200957(0x174)]['id'],_0x2c9719[_0x200957(0x13d)]['id'],_0xac9784[_0x200957(0x198)]['id']][_0x200957(0x19e)](_0x4ff794=>{const _0x35bbc8=_0x200957;this['disposeWithMe'](this[_0x35bbc8(0x14d)][_0x35bbc8(0x16d)](_0x4ff794));});}};_0x5eba6f=_0x101aa4([_0x4d30e8(0x0,_0x34c7db[_0x3d9623(0x16c)](_0x423aa1))],_0x5eba6f);var _0x1cedba=Object[_0x3d9623(0x104)],_0x189d89=Object[_0x3d9623(0x135)],_0x597f5e=(_0x53ec30,_0x31e816,_0x553fa3)=>_0x31e816 in _0x53ec30?_0x1cedba(_0x53ec30,_0x31e816,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x553fa3}):_0x53ec30[_0x31e816]=_0x553fa3,_0x139bc2=(_0x4619da,_0x26a3c5,_0x255720,_0x4cbaeb)=>{const _0x57da35=_0x3d9623;for(var _0x51bbf0=_0x4cbaeb>0x1?void 0x0:_0x4cbaeb?_0x189d89(_0x26a3c5,_0x255720):_0x26a3c5,_0x57c097=_0x4619da[_0x57da35(0x11a)]-0x1,_0x400442;_0x57c097>=0x0;_0x57c097--)(_0x400442=_0x4619da[_0x57c097])&&(_0x51bbf0=_0x400442(_0x51bbf0)||_0x51bbf0);return _0x51bbf0;},_0x174138=(_0x43cd5e,_0x153234)=>(_0x5784ea,_0x2899a8)=>_0x153234(_0x5784ea,_0x2899a8,_0x43cd5e),_0x11f5f6=(_0x551acf,_0x38fea4,_0x1ca358)=>_0x597f5e(_0x551acf,typeof _0x38fea4!=_0x3d9623(0x115)?_0x38fea4+'':_0x38fea4,_0x1ca358);const _0x3dbe92='UNIVER_LIVE_SHARE_PLUGIN';_0x32170d[_0x3d9623(0x120)]=class extends _0x34c7db['Plugin']{constructor(_0x5a8625=_0x2c36e1,_0x1b4ade,_0xfbefcc){const _0x2e7aca=_0x3d9623;super(),this['_config']=_0x5a8625,this[_0x2e7aca(0xdb)]=_0x1b4ade,this[_0x2e7aca(0x101)]=_0xfbefcc;const {..._0x2aab0b}=_0x34c7db[_0x2e7aca(0x1b2)]({},_0x2c36e1,this[_0x2e7aca(0xe3)]);this[_0x2e7aca(0x101)]['setConfig'](_0x814035,_0x2aab0b);}['onStarting'](){const _0x56973a=_0x3d9623;_0x34c7db[_0x56973a(0x17e)](this[_0x56973a(0xdb)],_0x34c7db['mergeOverrideWithDependencies']([[_0x423aa1],[_0x32170d[_0x56973a(0x187)]],[_0x5eba6f],[_0x32170d['DesktopLiveShareController']]],this['_config'][_0x56973a(0x11d)])),_0x34c7db[_0x56973a(0x17c)](this[_0x56973a(0xdb)],[[_0x5eba6f]]);}[_0x3d9623(0x16a)](){const _0x43c643=_0x3d9623;_0x34c7db[_0x43c643(0x17c)](this['_injector'],[[_0x32170d[_0x43c643(0x1a8)]]]);}},_0x11f5f6(_0x32170d[_0x3d9623(0x120)],_0x3d9623(0x1af),_0x34c7db[_0x3d9623(0x13b)][_0x3d9623(0x108)]),_0x11f5f6(_0x32170d[_0x3d9623(0x120)],_0x3d9623(0x161),_0x3dbe92),_0x32170d[_0x3d9623(0x120)]=_0x139bc2([_0x34c7db[_0x3d9623(0x136)](_0xe0833['UniverCollaborationClientPlugin']),_0x174138(0x1,_0x34c7db[_0x3d9623(0x16c)](_0x34c7db[_0x3d9623(0x151)])),_0x174138(0x2,_0x34c7db['IConfigService'])],_0x32170d['UniverLiveSharePlugin']),_0x32170d[_0x3d9623(0x1ac)]=_0x6d5d22,_0x32170d['LiveShareService']=_0x423aa1,_0x32170d['LiveShareStatus']=_0x4fec94,Object[_0x3d9623(0x104)](_0x32170d,Symbol[_0x3d9623(0x15b)],{'value':'Module'});}));function _0x12a5(_0x396398,_0xf5f9d6){const _0x90d588=_0x90d5();return _0x12a5=function(_0x12a515,_0x50acfd){_0x12a515=_0x12a515-0xd7;let _0x504f38=_0x90d588[_0x12a515];return _0x504f38;},_0x12a5(_0x396398,_0xf5f9d6);}function _0x90d5(){const _0x494d5d=['_univerInstanceService','_handleOnline','random','useObservable','children','symbol','jsxs','_presenter','mutations','LIVESHARE_NEW_HOST','length','_status$','unitId','override','IUIPartsService','has','UniverLiveSharePlugin','UniverDesign','find','UniverProLiveShare','use','_startPresenting','registerInitialStateReporter','event$','url(#$1','includes','3060eNCwEh','CollaborationEvent','div','_handleNewHost','assign','idSuffix','registerComponent','then','_beIdle','svg','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','getOwnPropertyDescriptor','DependentOn','displayName','4024205XeZroL','UniverCore','unsubscribe','UniverInstanceType','entries','SetScrollOperation','evenodd','mask','Dropdown','init','Stop\x20following','CollaborationSessionService','@univerjs/sheets','next','parse','subscribe','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','CommandType','getUnitId','_collabSession','complete','_liveShareService','1em','_handleTerminate','substring','Injector','tag','currentColor','Fragment','idle','current','shouldShareOperation','3073010rUAJRC','_startLiveShareCoordinator','add','toStringTag','path','OFFLINE','_commandDisposable','takeUntil','_mountLiveShare','pluginName','send','Disposable','stopFollowing','map','You\x27re\x20not\x20following\x20the\x20presenter','delete','@univerjs-pro/collaboration','_unitID','onRendered','stringify','Inject','registerSharedOperation','UniverSheets','UniverIcon','memberID','defs','0\x200\x2017\x2017','univerjs-icon\x20univerjs-icon-','SetZoomRatioOperation','getCurrentTypeOfUnit$','text','stopPresenting','NOT_FOLLOWING','LiveShareCoordinator','pipe','createElement','touchDependencies','_commandService','registerDependencies','presenting','clear','univer-mb-3\x20univer-w-full\x20univer-text-sm','getTypeOfUnitAdded$','Subject','not-following','disposeWithMe','6621576wcFoSR','LiveShareController','181954qvyiar','forwardRef','end','useRef','useDependency','react/jsx-runtime','7236ZYVgZO','following','IConfigService','getMemberID','NEW_CHANGESETS','FOLLOWING','UniverProCollaboration','amd','data','RxDisposable','SetWorksheetActiveOperation','status$','_fetchOperations','Present\x20this\x20document','_entities','SessionStatus','forEach','_startFollowing','React','_uiPartsService','You\x27re\x20presenting\x20the\x20document','LIVESHARE_OPERATION','getInitialStates','129297nfaqXD','dispose','dispose$','DesktopLiveShareController','getConfig','throttleTime','http://www.w3.org/2000/svg','LiveShare','_reporters','_sharedOperations','type','Button','sheet','merge','161097jzTCEo','BuiltInUIPart','set','string','_init','BehaviorSubject','asObservable','live-share-icon','get','toDisposable','xlink:href','trim','IUniverInstanceService','116IgWFVq','from','none','_injector','_collabSessionService','138JMAfED','onCommandExecuted','tryStartPresenting','_handleNewChangeSets','You\x27re\x20following\x20the\x20presenter','operations','_config','rxjs','_stopPresenting','operators','useEffect','DisposableCollection','parseProtocolChangeset','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','PRESENTING','_status','SAME_OPERATION_SHARE_INTERVAL','You\x27are\x20offline.','live-share.config','sessionStatus$','UNIVER_SHEET','executeCommand','_stopFollowing','function','button','colorChannel1','_handleOperation','UniverProCollaborationClient','getLiveShareCoordinator','LIVESHARE_TERMINATE','getStatus','@univerjs/sheets-ui','IDLE','UniverSheetsUi','exports','clsx','_configService','presenter','_handleOffline','defineProperty','attrs','@univerjs-pro/collaboration-client','params','UNIVER_UNKNOWN','jsx','toString','getValue','offline','object','connectInjector','reverse'];_0x90d5=function(){return _0x494d5d;};return _0x90d5();}
|
|
1
|
+
function _0x57a1(){const _0x597711=['univer-border-none\x20univer-text-gray-600\x20univer-outline-none','702ilQcNv','1em','touchDependencies','http://www.w3.org/2000/svg','_handleTerminate','mutations','You\x27re\x20presenting\x20the\x20document','RxDisposable','_entities','OFFLINE','_configService','DependentOn','react','shouldShareOperation','tryStartPresenting','1671576blKwiN','UniverLiveSharePlugin','LIVESHARE_NEW_HOST','_reporters','SAME_OPERATION_SHARE_INTERVAL','div','sheet','colorChannel1','registerSharedOperation','6TrcYAP','symbol','@univerjs-pro/collaboration','_beIdle','pipe','_handleNewChangeSets','sessionStatus$','DesktopLiveShareController','exports','SetScrollOperation','not-following','NEW_CHANGESETS','replace','LIVESHARE_FETCH_OPERATIONS','53788cwAJLe','0\x200\x2017\x2017','CollaborationEvent','map','100TlbNWz','4206433LanZro','getConfig','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','next','executeCommand','substring','getMemberID','React','_unitID','IConfigService','Button','attrs','_startPresenting','CollaborationSessionService','clsx','button','getLiveShareCoordinatorSync','_injector','UniverUi','jsx','getUnitId','init','add','SessionStatus','idSuffix','url(#$1','data','LiveShareService','throttleTime','UNIVER_SHEET','live-share.config','_sharedOperations','324IkRVSI','children','51buWsTv','@univerjs/design','getInitialStates','length','amd','_uiPartsService','1XqkaJv','disposeWithMe','xlink:href','_mountLiveShare','has','delete','tag','Start','_liveShareService','getCurrentTypeOfUnit$','@univerjs/ui','stringify','defs','_startFollowing','string','UniverCore','send','_presenter','UniverIcon','useEffect','mask','jsxs','values','HEADER_MENU','stopFollowing','LiveShareCoordinator','16EQDODB','startFollowing','IUniverInstanceService','univer-mb-3\x20univer-w-full\x20univer-text-sm','live-share-icon','get','LiveShareController','toStringTag','following','You\x27are\x20offline.','UniverProLiveShare','_stopFollowing','complete','_status$','IDLE','241652IkmfYO','UniverProCollaboration','Plugin','DisposableCollection','_config','@univerjs/sheets','defineProperty','includes','createElement','Module','UniverProCollaborationClient','evenodd','UniverSheets','unitId','197417RUTCOu','status$','UniverCollaborationClientPlugin','useDependency','default','_fetchOperations','parse','path','onRendered','LIVESHARE_TERMINATE','connectInjector','requireSession','Start\x20following','offline','LIVESHARE_OPERATION','object','rxjs','params','InsertSheetMutation','subscribe','Injector','svg','dispose','getTypeOfUnitAdded$','forEach','set','onCommandExecuted','_stopPresenting','_collabSession','end','UniverDesign','operations','_status','Stop\x20following','_handleNewHost','entries','PRESENTING','Inject','getStatus','_init','dispose$','You\x27re\x20not\x20following\x20the\x20presenter','text','event$','none','UniverInstanceType','@univerjs/sheets-ui','_startLiveShareCoordinator','13266MdKjdq','getOwnPropertyDescriptor','Fragment','Dropdown','SetWorksheetActiveOperation','idle','You\x27re\x20following\x20the\x20presenter','random','fill','rxjs/operators','NOT_FOLLOWING','pluginName','LiveShare','type','FOLLOWING','memberID','_handleOnline','UniverSheetsUi','_commandService','operators','UNIVER_UNKNOWN','_collabSessionService','trim','toDisposable','6971465FypKZX','useRef','LIVESHARE_REQUEST_HOST','reverse','forwardRef','CommandType','_univerInstanceService','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','takeUntil','presenting','from','react/jsx-runtime','_handleOffline','find','current','mergeOverrideWithDependencies','Disposable','LiveShareIcon','@univerjs-pro/collaboration-client','displayName','getLiveShareCoordinator','currentColor','_commandDisposable','ICommandService','useState','registerInitialStateReporter'];_0x57a1=function(){return _0x597711;};return _0x57a1();}function _0x2154(_0x34aa5a,_0x4cc107){const _0x57a192=_0x57a1();return _0x2154=function(_0x21546e,_0x2714c4){_0x21546e=_0x21546e-0x71;let _0x550421=_0x57a192[_0x21546e];return _0x550421;},_0x2154(_0x34aa5a,_0x4cc107);}(function(_0x4870b2,_0x3687ca){const _0xf54d57=_0x2154,_0x2e5c86=_0x4870b2();while(!![]){try{const _0x27517f=parseInt(_0xf54d57(0x13e))/0x1*(parseInt(_0xf54d57(0xfa))/0x2)+parseInt(_0xf54d57(0x138))/0x3*(-parseInt(_0xf54d57(0x7a))/0x4)+parseInt(_0xf54d57(0xd0))/0x5*(parseInt(_0xf54d57(0x103))/0x6)+parseInt(_0xf54d57(0x116))/0x7*(-parseInt(_0xf54d57(0x158))/0x8)+parseInt(_0xf54d57(0xb8))/0x9*(parseInt(_0xf54d57(0x115))/0xa)+parseInt(_0xf54d57(0x88))/0xb*(parseInt(_0xf54d57(0x136))/0xc)+parseInt(_0xf54d57(0xeb))/0xd*(parseInt(_0xf54d57(0x111))/0xe);if(_0x27517f===_0x3687ca)break;else _0x2e5c86['push'](_0x2e5c86['shift']());}catch(_0x3a5a9c){_0x2e5c86['push'](_0x2e5c86['shift']());}}}(_0x57a1,0xacd9f),function(_0x4de95a,_0x37c6a8){const _0x139ac0=_0x2154;typeof exports==_0x139ac0(0x97)&&typeof module<'u'?_0x37c6a8(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x139ac0(0x13c)]?define([_0x139ac0(0x10b),'@univerjs/core',_0x139ac0(0x148),_0x139ac0(0xdb),_0x139ac0(0x139),_0x139ac0(0xf7),_0x139ac0(0x105),_0x139ac0(0xe2),_0x139ac0(0x7f),_0x139ac0(0x98),_0x139ac0(0xc1),_0x139ac0(0xb6)],_0x37c6a8):(_0x4de95a=typeof globalThis<'u'?globalThis:_0x4de95a||self,_0x37c6a8(_0x4de95a[_0x139ac0(0x75)]={},_0x4de95a[_0x139ac0(0x14d)],_0x4de95a[_0x139ac0(0x128)],_0x4de95a[_0x139ac0(0x11d)],_0x4de95a[_0x139ac0(0xa6)],_0x4de95a[_0x139ac0(0x11d)],_0x4de95a[_0x139ac0(0x7b)],_0x4de95a[_0x139ac0(0x84)],_0x4de95a[_0x139ac0(0x86)],_0x4de95a['rxjs'],_0x4de95a[_0x139ac0(0x98)][_0x139ac0(0xcb)],_0x4de95a[_0x139ac0(0xc9)]));}(this,function(_0x4a008b,_0x590ecf,_0x3d7446,_0x31c6e6,_0x263b26,_0x46800e,_0x239beb,_0x298e51,_0x585599,_0xc490aa,_0x21e49d,_0xa5de06){'use strict';const _0x416fe=_0x2154;var _0xef06ff=Object[_0x416fe(0x80)],_0x2460b1=(_0x1ed5f6,_0x34d783,_0x571e84)=>_0x34d783 in _0x1ed5f6?_0xef06ff(_0x1ed5f6,_0x34d783,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x571e84}):_0x1ed5f6[_0x34d783]=_0x571e84,_0x5f5c9e=(_0x3b2203,_0x52bc4b,_0x543ff8)=>_0x2460b1(_0x3b2203,typeof _0x52bc4b!=_0x416fe(0x104)?_0x52bc4b+'':_0x52bc4b,_0x543ff8);function _0x4bc2a3({ref:_0x2e56d9,..._0x22746f}){const _0xd18ddd=_0x416fe,{icon:_0xbb1f9c,id:_0x312027,className:_0x486285,extend:_0x135c7b,..._0x387dbf}=_0x22746f,_0x36fffc=('univerjs-icon\x20univerjs-icon-'+_0x312027+'\x20'+(_0x486285||''))[_0xd18ddd(0xce)](),_0x3183e4=_0x46800e['useRef']('_'+_0xf38fcf());return _0x58bb08(_0xbb1f9c,''+_0x312027,{'defIds':_0xbb1f9c['defIds'],'idSuffix':_0x3183e4[_0xd18ddd(0xde)]},{'ref':_0x2e56d9,'className':_0x36fffc,..._0x387dbf},_0x135c7b);}function _0x58bb08(_0x28fa3d,_0x4f43c7,_0x1e3cdf,_0x3771e2,_0x5ca76f){const _0x530ba0=_0x416fe;return _0x46800e['createElement'](_0x28fa3d[_0x530ba0(0x144)],{'key':_0x4f43c7,..._0x40e9b9(_0x28fa3d,_0x1e3cdf,_0x5ca76f),..._0x3771e2},(_0x32e961(_0x28fa3d,_0x1e3cdf)[_0x530ba0(0x137)]||[])[_0x530ba0(0x114)]((_0x51dcea,_0x2e0ff0)=>_0x58bb08(_0x51dcea,_0x4f43c7+'-'+_0x28fa3d[_0x530ba0(0x144)]+'-'+_0x2e0ff0,_0x1e3cdf,void 0x0,_0x5ca76f)));}function _0x40e9b9(_0x1873dd,_0x46c4e3,_0x2df071){const _0x459593=_0x416fe,_0x58765b={..._0x1873dd[_0x459593(0x121)]};_0x2df071!=null&&_0x2df071[_0x459593(0x101)]&&_0x58765b['fill']===_0x459593(0x101)&&(_0x58765b[_0x459593(0xc0)]=_0x2df071[_0x459593(0x101)]),_0x1873dd[_0x459593(0x144)]===_0x459593(0x152)&&_0x58765b['id']&&(_0x58765b['id']=_0x58765b['id']+_0x46c4e3[_0x459593(0x12e)]),Object['entries'](_0x58765b)['forEach'](([_0x32e424,_0x44578f])=>{const _0x12f20d=_0x459593;_0x32e424===_0x12f20d(0x152)&&typeof _0x44578f==_0x12f20d(0x14c)&&(_0x58765b[_0x32e424]=_0x44578f[_0x12f20d(0x10f)](/url\(#(.*)\)/,_0x12f20d(0x12f)+_0x46c4e3[_0x12f20d(0x12e)]+')'));});const {defIds:_0x595dba}=_0x46c4e3;return!_0x595dba||_0x595dba[_0x459593(0x13b)]===0x0||(_0x1873dd[_0x459593(0x144)]==='use'&&_0x58765b[_0x459593(0x140)]&&(_0x58765b[_0x459593(0x140)]=_0x58765b['xlink:href']+_0x46c4e3[_0x459593(0x12e)]),Object[_0x459593(0xab)](_0x58765b)['forEach'](([_0xf156a2,_0x10171e])=>{const _0x3985f6=_0x459593;typeof _0x10171e==_0x3985f6(0x14c)&&(_0x58765b[_0xf156a2]=_0x10171e[_0x3985f6(0x10f)](/url\(#(.*)\)/,_0x3985f6(0x12f)+_0x46c4e3[_0x3985f6(0x12e)]+')'));})),_0x58765b;}function _0x32e961(_0xb733f3,_0x5595e2){const _0x323eda=_0x416fe;var _0x36568f;const {defIds:_0x3c2aa0}=_0x5595e2;return!_0x3c2aa0||_0x3c2aa0[_0x323eda(0x13b)]===0x0?_0xb733f3:_0xb733f3[_0x323eda(0x144)]===_0x323eda(0x14a)&&((_0x36568f=_0xb733f3[_0x323eda(0x137)])!=null&&_0x36568f[_0x323eda(0x13b)])?{..._0xb733f3,'children':_0xb733f3[_0x323eda(0x137)][_0x323eda(0x114)](_0x51992f=>typeof _0x51992f['attrs']['id']==_0x323eda(0x14c)&&_0x3c2aa0&&_0x3c2aa0[_0x323eda(0x81)](_0x51992f[_0x323eda(0x121)]['id'])?{..._0x51992f,'attrs':{..._0x51992f[_0x323eda(0x121)],'id':_0x51992f[_0x323eda(0x121)]['id']+_0x5595e2[_0x323eda(0x12e)]}}:_0x51992f)}:_0xb733f3;}function _0xf38fcf(){const _0x371009=_0x416fe;return Math[_0x371009(0xbf)]()['toString'](0x24)[_0x371009(0x11b)](0x2,0x8);}_0x4bc2a3[_0x416fe(0xe3)]=_0x416fe(0x150);const _0x190f75={'tag':_0x416fe(0x9d),'attrs':{'xmlns':_0x416fe(0xee),'fill':_0x416fe(0xb4),'viewBox':_0x416fe(0x112),'width':'1em','height':_0x416fe(0xec)},'children':[{'tag':_0x416fe(0x8f),'attrs':{'fill':_0x416fe(0xe5),'d':_0x416fe(0xd7)}},{'tag':_0x416fe(0x8f),'attrs':{'fill':_0x416fe(0xe5),'d':_0x416fe(0x118),'fillRule':_0x416fe(0x85),'clipRule':'evenodd'}}]},_0x245bba=_0x46800e[_0x416fe(0xd4)](function(_0x2c4245,_0x4ef608){const _0x1581c2=_0x416fe;return _0x46800e[_0x1581c2(0x82)](_0x4bc2a3,Object['assign']({},_0x2c4245,{'id':_0x1581c2(0x15c),'ref':_0x4ef608,'icon':_0x190f75}));});_0x245bba[_0x416fe(0xe3)]=_0x416fe(0xe1);class _0x3b5cd0 extends _0x590ecf[_0x416fe(0xe0)]{constructor(){const _0x563866=_0x416fe;super(...arguments),_0x5f5c9e(this,_0x563866(0x135),new Set()),_0x5f5c9e(this,_0x563866(0xfd),new Set());}[_0x416fe(0x102)](_0x1bfb29){const _0x320396=_0x416fe;return this['_sharedOperations'][_0x320396(0x12c)](_0x1bfb29),_0x590ecf[_0x320396(0xcf)](()=>this[_0x320396(0x135)][_0x320396(0x143)](_0x1bfb29));}[_0x416fe(0xe9)](_0xa9fd1b){const _0x262646=_0x416fe;return this[_0x262646(0xfd)]['add'](_0xa9fd1b),_0x590ecf[_0x262646(0xcf)](()=>this[_0x262646(0xfd)][_0x262646(0x143)](_0xa9fd1b));}[_0x416fe(0xf8)](_0x14b9b4){const _0xf40b79=_0x416fe;return this['_sharedOperations'][_0xf40b79(0x142)](_0x14b9b4);}[_0x416fe(0x13a)](_0x33a964){const _0x49792c=_0x416fe;return Array[_0x49792c(0xda)](this[_0x49792c(0xfd)])['map'](_0x34637d=>_0x34637d(_0x33a964));}}var _0x311e39=Object[_0x416fe(0xb9)],_0x4a8cb4=(_0xeac163,_0x388707,_0x21007b,_0x1356b1)=>{const _0xc25332=_0x416fe;for(var _0x52c21b=_0x1356b1>0x1?void 0x0:_0x1356b1?_0x311e39(_0x388707,_0x21007b):_0x388707,_0x39a6b9=_0xeac163[_0xc25332(0x13b)]-0x1,_0x19c6e0;_0x39a6b9>=0x0;_0x39a6b9--)(_0x19c6e0=_0xeac163[_0x39a6b9])&&(_0x52c21b=_0x19c6e0(_0x52c21b)||_0x52c21b);return _0x52c21b;},_0x1f5da8=(_0x15b814,_0x3c469f)=>(_0x37e145,_0x5a58bb)=>_0x3c469f(_0x37e145,_0x5a58bb,_0x15b814);_0x4a008b[_0x416fe(0x71)]=class extends _0x590ecf[_0x416fe(0xf2)]{constructor(_0x5b57ab,_0x8ca057,_0x31729c){const _0x33a175=_0x416fe;super(),_0x5f5c9e(this,_0x33a175(0xf3),new Map()),(this['_univerInstanceService']=_0x5b57ab,this[_0x33a175(0x127)]=_0x8ca057,this[_0x33a175(0xcd)]=_0x31729c,this['_init']());}async['getLiveShareCoordinator'](_0xc8cc14){const _0x185cd5=_0x416fe;return this[_0x185cd5(0xf3)][_0x185cd5(0x142)](_0xc8cc14)||await this[_0x185cd5(0xb7)](_0xc8cc14),this[_0x185cd5(0xf3)][_0x185cd5(0x15d)](_0xc8cc14);}[_0x416fe(0x126)](_0x21dfd9){const _0x3bd56b=_0x416fe;var _0x1e22ef;return(_0x1e22ef=this[_0x3bd56b(0xf3)]['get'](_0x21dfd9))!=null?_0x1e22ef:null;}[_0x416fe(0xaf)](){const _0x458152=_0x416fe;this[_0x458152(0xd6)][_0x458152(0x9f)](_0x590ecf[_0x458152(0xb5)][_0x458152(0x133)])[_0x458152(0x107)](_0x21e49d[_0x458152(0xd8)](this['dispose$']))[_0x458152(0x9b)](async _0x47ca9f=>{const _0x28f1cc=_0x458152,_0x138e43=_0x47ca9f['getUnitId']();this['_entities']['has'](_0x138e43)||this[_0x28f1cc(0xb7)](_0x138e43);}),this[_0x458152(0xd6)]['getTypeOfUnitDisposed$'](_0x590ecf['UniverInstanceType'][_0x458152(0x133)])[_0x458152(0x107)](_0x21e49d[_0x458152(0xd8)](this['dispose$']))[_0x458152(0x9b)](_0x162265=>{const _0x5f48f8=_0x458152,_0x4e03b3=_0x162265[_0x5f48f8(0x12a)](),_0x44c2d9=this[_0x5f48f8(0xf3)][_0x5f48f8(0x15d)](_0x4e03b3);_0x44c2d9==null||_0x44c2d9[_0x5f48f8(0x9e)]();});}async[_0x416fe(0xb7)](_0x5f17ad){const _0x2e10f1=_0x416fe,_0x36ee12=await this[_0x2e10f1(0xcd)][_0x2e10f1(0x93)](_0x5f17ad),_0x3d1d7b=this[_0x2e10f1(0x127)]['createInstance'](_0x4a008b[_0x2e10f1(0x157)],_0x5f17ad,_0x36ee12);return _0x3d1d7b[_0x2e10f1(0x12b)](),this['_entities'][_0x2e10f1(0xa1)](_0x5f17ad,_0x3d1d7b),_0x3d1d7b;}},_0x4a008b[_0x416fe(0x71)]=_0x4a8cb4([_0x1f5da8(0x0,_0x590ecf[_0x416fe(0x15a)]),_0x1f5da8(0x1,_0x590ecf['Inject'](_0x590ecf[_0x416fe(0x9c)])),_0x1f5da8(0x2,_0x590ecf['Inject'](_0x298e51[_0x416fe(0x123)]))],_0x4a008b[_0x416fe(0x71)]);var _0x1267e3=(_0x237f0b=>(_0x237f0b[_0x416fe(0xf4)]=_0x416fe(0x95),_0x237f0b[_0x416fe(0x79)]='idle',_0x237f0b[_0x416fe(0xc6)]='following',_0x237f0b['NOT_FOLLOWING']=_0x416fe(0x10d),_0x237f0b[_0x416fe(0xac)]=_0x416fe(0xd9),_0x237f0b))(_0x1267e3||{});const _0x55917d=_0x416fe(0xfe),_0x258a0c=0xc8;_0x4a008b['LiveShareCoordinator']=class extends _0x590ecf[_0x416fe(0xf2)]{constructor(_0x2d7a58,_0x226609,_0x3f2c2a,_0x2a8db8,_0x390b98){const _0x22e226=_0x416fe;super(),_0x5f5c9e(this,_0x22e226(0x78),new _0xc490aa['BehaviorSubject'](_0x22e226(0xbd))),_0x5f5c9e(this,'status$',this['_status$']['asObservable']()),_0x5f5c9e(this,_0x22e226(0xaf),!0x1),_0x5f5c9e(this,_0x22e226(0xe6),null),_0x5f5c9e(this,_0x22e226(0x14f),null),(this[_0x22e226(0x11e)]=_0x2d7a58,this[_0x22e226(0xa4)]=_0x226609,this['_configService']=_0x3f2c2a,this[_0x22e226(0x146)]=_0x2a8db8,this[_0x22e226(0xca)]=_0x390b98);}get[_0x416fe(0xa8)](){const _0x509d72=_0x416fe;return this[_0x509d72(0x78)]['getValue']();}[_0x416fe(0x9e)](){const _0x187622=_0x416fe;var _0x1a57d0;(_0x1a57d0=this['_commandDisposable'])==null||_0x1a57d0[_0x187622(0x9e)](),this[_0x187622(0x78)][_0x187622(0x119)](_0x187622(0xbd)),this[_0x187622(0x78)][_0x187622(0x77)]();}[_0x416fe(0xae)](){return this['_status'];}[_0x416fe(0x12b)](){const _0x32a9c5=_0x416fe;this[_0x32a9c5(0xaf)]||(this[_0x32a9c5(0xaf)]=!0x0,this[_0x32a9c5(0xa4)][_0x32a9c5(0x109)][_0x32a9c5(0x107)](_0x21e49d['takeUntil'](this[_0x32a9c5(0xb0)]))[_0x32a9c5(0x9b)](_0x226255=>{const _0x539dd9=_0x32a9c5;switch(_0x226255){case _0x298e51[_0x539dd9(0x12d)]['OFFLINE']:this[_0x539dd9(0xdc)]();break;case _0x298e51[_0x539dd9(0x12d)]['ONLINE']:this['_handleOnline']();break;}}),this[_0x32a9c5(0xa4)][_0x32a9c5(0xb3)][_0x32a9c5(0x107)](_0x21e49d[_0x32a9c5(0xd8)](this['dispose$']))['subscribe'](_0x1e4a7e=>{const _0x4ad914=_0x32a9c5,{eventID:_0x4dab7a}=_0x1e4a7e;switch(_0x4dab7a){case _0x239beb[_0x4ad914(0x113)][_0x4ad914(0xfc)]:this[_0x4ad914(0xaa)](_0x1e4a7e);break;case _0x239beb[_0x4ad914(0x113)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x1e4a7e);break;case _0x239beb[_0x4ad914(0x113)][_0x4ad914(0x91)]:this['_handleTerminate']();break;case _0x239beb[_0x4ad914(0x113)][_0x4ad914(0x10e)]:this[_0x4ad914(0x108)](_0x1e4a7e);break;}}));}[_0x416fe(0xf9)](){const _0xcae28a=_0x416fe;this[_0xcae28a(0xa4)][_0xcae28a(0x14e)]({'eventID':_0x239beb[_0xcae28a(0x113)][_0xcae28a(0xd2)],'data':{'unitID':this[_0xcae28a(0x11e)],'userID':this['_collabSession'][_0xcae28a(0x11c)]()}},this[_0xcae28a(0x11e)]);}['stopPresenting'](){const _0x4255d9=_0x416fe;this[_0x4255d9(0xa8)]===_0x4255d9(0xd9)&&(this['_status$'][_0x4255d9(0x119)](_0x4255d9(0xbd)),this[_0x4255d9(0xa4)][_0x4255d9(0x14e)]({'eventID':_0x239beb['CollaborationEvent'][_0x4255d9(0x91)],'data':{'unitID':this[_0x4255d9(0x11e)]}},this[_0x4255d9(0x11e)]));}['startFollowing'](){const _0xa26468=_0x416fe;this[_0xa26468(0xa8)]==='not-following'&&(this[_0xa26468(0x78)][_0xa26468(0x119)]('following'),this[_0xa26468(0x14b)]());}['stopFollowing'](){const _0x5ae1b7=_0x416fe;this[_0x5ae1b7(0xa8)]===_0x5ae1b7(0x73)&&this['_stopFollowing']();}[_0x416fe(0xaa)](_0x216997){const _0x122a22=_0x416fe,{presenter:_0x528729}=_0x216997['data'],_0x3bcf09=this['_collabSession'][_0x122a22(0x11c)]();this['_presenter']=_0x528729,_0x528729===_0x3bcf09?(this['_stopFollowing'](),this[_0x122a22(0x122)]()):this[_0x122a22(0xa8)]!=='not-following'&&(this[_0x122a22(0xa3)](),this[_0x122a22(0x14b)]());}[_0x416fe(0x8d)](){const _0x3a9f53=_0x416fe,_0x302d39={'eventID':_0x239beb[_0x3a9f53(0x113)][_0x3a9f53(0x110)]};this['_collabSession'][_0x3a9f53(0x14e)](_0x302d39,this[_0x3a9f53(0x11e)]);}[_0x416fe(0xef)](){const _0x2df54c=_0x416fe;this[_0x2df54c(0x14f)]=null,this[_0x2df54c(0xa8)]!==_0x2df54c(0xd9)&&this[_0x2df54c(0x106)]();}[_0x416fe(0x108)](_0x356597){const _0x226c14=_0x416fe;if(this[_0x226c14(0xa8)]===_0x226c14(0x73)&&this['_presenter']===_0x356597[_0x226c14(0x130)][_0x226c14(0xc7)]){const _0x59f473=_0x239beb['parseProtocolChangeset'](_0x356597[_0x226c14(0x130)])[_0x226c14(0xf0)][_0x226c14(0xd3)]()[_0x226c14(0xdd)](_0x3fdba9=>_0x3fdba9['id']===_0x585599[_0x226c14(0x9a)]['id']);if(_0x59f473){const _0x5db514=_0x59f473[_0x226c14(0x99)][_0x226c14(0x87)],_0x2a0649=_0x59f473['params'][_0x226c14(0x100)]['id'];setTimeout(()=>{const _0x327063=_0x226c14;this[_0x327063(0xca)][_0x327063(0x11a)](_0x585599['SetWorksheetActiveOperation']['id'],{'unitId':_0x5db514,'subUnitId':_0x2a0649},{'fromCollab':!0x0});});}}}[_0x416fe(0x122)](){const _0x2576e4=_0x416fe;this['_status$']['next']('presenting');const _0x1d3ead=new Map(),_0x5cb47e=this[_0x2576e4(0xe6)]=new _0x590ecf[(_0x2576e4(0x7d))]();_0x5cb47e[_0x2576e4(0x12c)](_0x590ecf[_0x2576e4(0xcf)](()=>{const _0x210f77=_0x2576e4;_0x1d3ead[_0x210f77(0xa0)](_0x4b5d3d=>_0x4b5d3d[_0x210f77(0x77)]()),_0x1d3ead['clear']();})),_0x5cb47e['add'](this['_commandService'][_0x2576e4(0xa2)](_0x155559=>{const _0x857278=_0x2576e4;var _0x1642ac;if(_0x155559[_0x857278(0xc5)]!==_0x590ecf[_0x857278(0xd5)]['OPERATION']||!this[_0x857278(0x146)][_0x857278(0xf8)](_0x155559['id']))return;const {id:_0x35b93d}=_0x155559;let _0x2c4c59;_0x1d3ead[_0x857278(0x142)](_0x35b93d)?_0x2c4c59=_0x1d3ead[_0x857278(0x15d)](_0x35b93d):(_0x2c4c59=new _0xc490aa['Subject'](),_0x1d3ead[_0x857278(0xa1)](_0x35b93d,_0x2c4c59),_0x2c4c59[_0x857278(0x107)](_0x21e49d[_0x857278(0x132)]((_0x1642ac=this[_0x857278(0xf5)][_0x857278(0x117)](_0x55917d))!=null?_0x1642ac:_0x258a0c,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x857278(0x9b)](_0x1a93a1=>{const _0x38e503=_0x857278;this['_collabSession'][_0x38e503(0x14e)]({'eventID':_0x239beb[_0x38e503(0x113)][_0x38e503(0x96)],'data':{'unitID':this[_0x38e503(0x11e)],'operations':{[_0x1a93a1['id']]:{'id':_0x1a93a1['id'],'params':JSON[_0x38e503(0x149)](_0x1a93a1[_0x38e503(0x99)])}}}},this[_0x38e503(0x11e)]);})),_0x2c4c59[_0x857278(0x119)](_0x155559);})),this[_0x2576e4(0x146)][_0x2576e4(0x13a)](this[_0x2576e4(0x11e)])[_0x2576e4(0xa0)](_0x46903a=>this['_collabSession']['send']({'eventID':_0x239beb['CollaborationEvent'][_0x2576e4(0x96)],'data':{'unitID':this[_0x2576e4(0x11e)],'operations':{[_0x46903a['id']]:{'id':_0x46903a['id'],'params':JSON['stringify'](_0x46903a[_0x2576e4(0x99)])}}}},this[_0x2576e4(0x11e)]));}['_stopPresenting'](){const _0x3a0eb1=_0x416fe;var _0x20355a;this['_status$'][_0x3a0eb1(0x119)](_0x3a0eb1(0xbd)),(_0x20355a=this[_0x3a0eb1(0xe6)])==null||_0x20355a['dispose'](),this['_commandDisposable']=null;}[_0x416fe(0x14b)](){const _0x7f6dfb=_0x416fe;var _0x5c4a16;(_0x5c4a16=this[_0x7f6dfb(0xe6)])==null||_0x5c4a16[_0x7f6dfb(0x9e)](),this[_0x7f6dfb(0x78)]['next'](_0x7f6dfb(0x73));}[_0x416fe(0x106)](){const _0x3f7fab=_0x416fe;var _0x54844d;this[_0x3f7fab(0x78)]['next'](_0x3f7fab(0xbd)),(_0x54844d=this[_0x3f7fab(0xe6)])==null||_0x54844d[_0x3f7fab(0x9e)](),this[_0x3f7fab(0xe6)]=null;}[_0x416fe(0x76)](){const _0x49bd06=_0x416fe;var _0x8872;this[_0x49bd06(0x78)]['next'](_0x49bd06(0x10d)),(_0x8872=this['_commandDisposable'])==null||_0x8872[_0x49bd06(0x9e)]();}['_handleOperation'](_0x334317){const _0x93d257=_0x416fe;if([_0x93d257(0xd9),'not-following',_0x93d257(0x95)]['includes'](this[_0x93d257(0xa8)])||!_0x334317[_0x93d257(0x130)]['presenter']||_0x334317[_0x93d257(0x130)]['presenter']===this[_0x93d257(0xa4)][_0x93d257(0x11c)]())return;this[_0x93d257(0xa8)]==='idle'&&this[_0x93d257(0x14b)]();const _0x24414d=_0x334317['data'][_0x93d257(0xa7)];Object[_0x93d257(0x154)](_0x24414d)['forEach'](_0x8ed0f6=>{const _0x136042=_0x93d257;this[_0x136042(0xca)][_0x136042(0x11a)](_0x8ed0f6['id'],_0x8ed0f6[_0x136042(0x99)]?JSON[_0x136042(0x8e)](_0x8ed0f6['params']):null,{'fromCollab':!0x0});});}[_0x416fe(0xdc)](){const _0x170bdb=_0x416fe;var _0x25b2ba;this[_0x170bdb(0x78)][_0x170bdb(0x119)](_0x170bdb(0x95)),(_0x25b2ba=this['_commandDisposable'])==null||_0x25b2ba['dispose']();}[_0x416fe(0xc8)](){const _0x208723=_0x416fe;this[_0x208723(0x78)][_0x208723(0x119)](_0x208723(0xbd)),this[_0x208723(0x8d)]();}},_0x4a008b[_0x416fe(0x157)]=_0x4a8cb4([_0x1f5da8(0x2,_0x590ecf[_0x416fe(0x11f)]),_0x1f5da8(0x3,_0x590ecf['Inject'](_0x3b5cd0)),_0x1f5da8(0x4,_0x590ecf[_0x416fe(0xe7)])],_0x4a008b[_0x416fe(0x157)]);function _0x1d75db(){const _0x271187=_0x416fe,_0x34b84e=_0x3d7446[_0x271187(0x8b)](_0x4a008b[_0x271187(0x71)]),_0x20fd95=_0x3d7446[_0x271187(0x8b)](_0x590ecf[_0x271187(0x15a)]),_0x2e829d=_0x3d7446['useObservable'](()=>_0x20fd95[_0x271187(0x147)](_0x590ecf[_0x271187(0xb5)][_0x271187(0x133)]),void 0x0,!0x1,[]),[_0x83e522,_0x435034]=_0x46800e['useState'](null),[_0x11e413,_0x5cb682]=_0x46800e[_0x271187(0xe8)](_0x1267e3[_0x271187(0x79)]),_0x31686a=_0x46800e[_0x271187(0xd1)](null);return _0x46800e[_0x271187(0x151)](()=>(_0x2e829d&&_0x34b84e[_0x271187(0xe4)](_0x2e829d[_0x271187(0x12a)]())['then'](_0x3928ff=>{const _0x1fc299=_0x271187;_0x435034(_0x3928ff),_0x31686a[_0x1fc299(0xde)]=_0x3928ff[_0x1fc299(0x89)]['subscribe'](_0x2c6ac6=>{_0x5cb682(_0x2c6ac6);});}),()=>{const _0x1685ea=_0x271187;var _0x58652f;(_0x58652f=_0x31686a[_0x1685ea(0xde)])==null||_0x58652f['unsubscribe'](),_0x31686a[_0x1685ea(0xde)]=null;}),[_0x2e829d,_0x34b84e]),_0x83e522?_0x31c6e6[_0x271187(0x129)](_0x263b26[_0x271187(0xbb)],{'align':_0x271187(0xa5),'disabled':_0x11e413===_0x1267e3[_0x271187(0xf4)],'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':_0x31c6e6[_0x271187(0x129)](_0x5e8062,{'status':_0x11e413,'coordinator':_0x83e522}),'children':_0x31c6e6[_0x271187(0x129)](_0x271187(0x125),{'className':_0x263b26[_0x271187(0x124)](_0x271187(0xea),{'univer-cursor-not-allowed':_0x11e413===_0x1267e3['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x11e413!==_0x1267e3[_0x271187(0xf4)]}),'type':_0x271187(0x125),'children':_0x31c6e6[_0x271187(0x129)](_0x245bba,{'className':'univer-size-4'})})}):null;}function _0x5e8062(_0x30af31){const _0x14e240=_0x416fe,{status:_0xfcd244,coordinator:_0x384e58}=_0x30af31;switch(_0xfcd244){case _0x1267e3[_0x14e240(0x79)]:return _0x31c6e6[_0x14e240(0x129)](_0x525a8f,{'coordinator':_0x384e58});case _0x1267e3[_0x14e240(0xc6)]:return _0x31c6e6[_0x14e240(0x129)](_0x399999,{'coordinator':_0x384e58});case _0x1267e3[_0x14e240(0xc2)]:return _0x31c6e6['jsx'](_0x15f4c9,{'coordinator':_0x384e58});case _0x1267e3[_0x14e240(0xf4)]:return _0x31c6e6['jsx'](_0x858316,{});case _0x1267e3[_0x14e240(0xac)]:return _0x31c6e6[_0x14e240(0x129)](_0x28c6bb,{'coordinator':_0x384e58});default:return null;}}function _0x525a8f(_0x470dde){const _0x51e49d=_0x416fe,{coordinator:_0x360602}=_0x470dde;return _0x31c6e6[_0x51e49d(0x153)](_0x31c6e6[_0x51e49d(0xba)],{'children':[_0x31c6e6[_0x51e49d(0x129)](_0x51e49d(0xff),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x31c6e6[_0x51e49d(0x129)](_0x263b26[_0x51e49d(0x120)],{'onClick':()=>_0x360602[_0x51e49d(0xf9)](),'children':_0x51e49d(0x145)})]});}function _0x399999(_0x3981e1){const _0x5565d4=_0x416fe,{coordinator:_0x552250}=_0x3981e1;return _0x31c6e6[_0x5565d4(0x153)](_0x31c6e6[_0x5565d4(0xba)],{'children':[_0x31c6e6['jsx'](_0x5565d4(0xff),{'className':_0x5565d4(0x15b),'children':_0x5565d4(0xbe)}),_0x31c6e6[_0x5565d4(0x129)](_0x263b26[_0x5565d4(0x120)],{'onClick':()=>_0x552250[_0x5565d4(0x156)](),'children':_0x5565d4(0xa9)})]});}function _0x15f4c9(_0x35a9ca){const _0x4d0e6d=_0x416fe,{coordinator:_0xee1545}=_0x35a9ca;return _0x31c6e6[_0x4d0e6d(0x153)](_0x31c6e6['Fragment'],{'children':[_0x31c6e6[_0x4d0e6d(0x129)](_0x4d0e6d(0xff),{'className':_0x4d0e6d(0x15b),'children':_0x4d0e6d(0xb1)}),_0x31c6e6[_0x4d0e6d(0x129)](_0x263b26['Button'],{'variant':_0x4d0e6d(0xb2),'onClick':()=>_0xee1545[_0x4d0e6d(0x159)](),'children':_0x4d0e6d(0x94)})]});}function _0x28c6bb(_0x5c89b6){const _0x256bbf=_0x416fe,{coordinator:_0x972428}=_0x5c89b6;return _0x31c6e6['jsxs'](_0x31c6e6[_0x256bbf(0xba)],{'children':[_0x31c6e6['jsx'](_0x256bbf(0xff),{'className':_0x256bbf(0x15b),'children':_0x256bbf(0xf1)}),_0x31c6e6[_0x256bbf(0x129)](_0x263b26[_0x256bbf(0x120)],{'variant':_0x256bbf(0x8c),'onClick':()=>_0x972428['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x858316(){const _0xa50638=_0x416fe;return _0x31c6e6[_0xa50638(0x129)](_0x31c6e6[_0xa50638(0xba)],{'children':_0xa50638(0x74)});}var _0x217964=Object['getOwnPropertyDescriptor'],_0x212396=(_0x2e42da,_0x199fe3,_0x59a511,_0x74eafe)=>{const _0x30d0c8=_0x416fe;for(var _0x1310df=_0x74eafe>0x1?void 0x0:_0x74eafe?_0x217964(_0x199fe3,_0x59a511):_0x199fe3,_0x16361d=_0x2e42da[_0x30d0c8(0x13b)]-0x1,_0x70c29b;_0x16361d>=0x0;_0x16361d--)(_0x70c29b=_0x2e42da[_0x16361d])&&(_0x1310df=_0x70c29b(_0x1310df)||_0x1310df);return _0x1310df;},_0x1d6572=(_0xa99ea7,_0x552c05)=>(_0x181dc1,_0x144410)=>_0x552c05(_0x181dc1,_0x144410,_0xa99ea7);_0x4a008b['DesktopLiveShareController']=class extends _0x590ecf[_0x416fe(0xe0)]{constructor(_0x4f9699,_0x3e3314){const _0x24cf93=_0x416fe;super(),this[_0x24cf93(0x127)]=_0x4f9699,this[_0x24cf93(0x13d)]=_0x3e3314,this['_mountLiveShare']();}[_0x416fe(0x141)](){const _0x7e9836=_0x416fe;this[_0x7e9836(0x13f)](this[_0x7e9836(0x13d)]['registerComponent'](_0x3d7446['BuiltInUIPart'][_0x7e9836(0x155)],()=>_0x3d7446[_0x7e9836(0x92)](_0x1d75db,this[_0x7e9836(0x127)])));}},_0x4a008b[_0x416fe(0x10a)]=_0x212396([_0x1d6572(0x0,_0x590ecf[_0x416fe(0xad)](_0x590ecf[_0x416fe(0x9c)])),_0x1d6572(0x1,_0x3d7446['IUIPartsService'])],_0x4a008b['DesktopLiveShareController']);const _0x5ad5d0=_0x416fe(0x134),_0x3eabf7={};var _0x5a5ea2=Object[_0x416fe(0xb9)],_0x1e8abc=(_0xb6cd28,_0x436ba8,_0x3a2aab,_0x106e06)=>{const _0x3b8121=_0x416fe;for(var _0x267846=_0x106e06>0x1?void 0x0:_0x106e06?_0x5a5ea2(_0x436ba8,_0x3a2aab):_0x436ba8,_0x1c1054=_0xb6cd28[_0x3b8121(0x13b)]-0x1,_0x344d18;_0x1c1054>=0x0;_0x1c1054--)(_0x344d18=_0xb6cd28[_0x1c1054])&&(_0x267846=_0x344d18(_0x267846)||_0x267846);return _0x267846;},_0x5911f3=(_0x10d560,_0xd04a0e)=>(_0x572e05,_0x33ecca)=>_0xd04a0e(_0x572e05,_0x33ecca,_0x10d560);let _0x2ab1e5=class extends _0x590ecf[_0x416fe(0xe0)]{constructor(_0x4f1483){const _0x3efe1f=_0x416fe;super(),this['_liveShareService']=_0x4f1483,this[_0x3efe1f(0xaf)]();}[_0x416fe(0xaf)](){const _0x117f1d=_0x416fe;[_0xa5de06['SetZoomRatioOperation']['id'],_0xa5de06[_0x117f1d(0x10c)]['id'],_0x585599[_0x117f1d(0xbc)]['id']][_0x117f1d(0xa0)](_0x9dbe3f=>{const _0x595325=_0x117f1d;this[_0x595325(0x13f)](this[_0x595325(0x146)][_0x595325(0x102)](_0x9dbe3f));});}};_0x2ab1e5=_0x1e8abc([_0x5911f3(0x0,_0x590ecf[_0x416fe(0xad)](_0x3b5cd0))],_0x2ab1e5);var _0x42d590=Object[_0x416fe(0x80)],_0x37de04=Object['getOwnPropertyDescriptor'],_0x468a4b=(_0x9e87f6,_0x23f314,_0x40bf33)=>_0x23f314 in _0x9e87f6?_0x42d590(_0x9e87f6,_0x23f314,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x40bf33}):_0x9e87f6[_0x23f314]=_0x40bf33,_0x4dee58=(_0x4d9d0b,_0x5873f7,_0x82b0fa,_0x29bf11)=>{const _0x35abaa=_0x416fe;for(var _0x470e58=_0x29bf11>0x1?void 0x0:_0x29bf11?_0x37de04(_0x5873f7,_0x82b0fa):_0x5873f7,_0x4c5514=_0x4d9d0b[_0x35abaa(0x13b)]-0x1,_0x27be54;_0x4c5514>=0x0;_0x4c5514--)(_0x27be54=_0x4d9d0b[_0x4c5514])&&(_0x470e58=_0x27be54(_0x470e58)||_0x470e58);return _0x470e58;},_0xaf6933=(_0x14d819,_0x942006)=>(_0x2c49c7,_0x3b0a35)=>_0x942006(_0x2c49c7,_0x3b0a35,_0x14d819),_0x8eba78=(_0x3d989f,_0x5dcc7a,_0x1486c2)=>_0x468a4b(_0x3d989f,typeof _0x5dcc7a!='symbol'?_0x5dcc7a+'':_0x5dcc7a,_0x1486c2);const _0x3eaa20='UNIVER_LIVE_SHARE_PLUGIN';_0x4a008b[_0x416fe(0xfb)]=class extends _0x590ecf[_0x416fe(0x7c)]{constructor(_0x24811a=_0x3eabf7,_0x24189f,_0x5e7acd){const _0x5e8749=_0x416fe;super(),this['_config']=_0x24811a,this[_0x5e8749(0x127)]=_0x24189f,this['_configService']=_0x5e7acd;const {..._0x2ad1b6}=_0x590ecf['merge']({},_0x3eabf7,this['_config']);this[_0x5e8749(0xf5)]['setConfig'](_0x5ad5d0,_0x2ad1b6);}['onStarting'](){const _0x1f97f9=_0x416fe;_0x590ecf['registerDependencies'](this[_0x1f97f9(0x127)],_0x590ecf[_0x1f97f9(0xdf)]([[_0x3b5cd0],[_0x4a008b[_0x1f97f9(0x71)]],[_0x2ab1e5],[_0x4a008b[_0x1f97f9(0x10a)]]],this[_0x1f97f9(0x7e)]['override'])),_0x590ecf[_0x1f97f9(0xed)](this[_0x1f97f9(0x127)],[[_0x2ab1e5]]);}[_0x416fe(0x90)](){const _0x497f05=_0x416fe;_0x590ecf[_0x497f05(0xed)](this[_0x497f05(0x127)],[[_0x4a008b[_0x497f05(0x10a)]]]);}},_0x8eba78(_0x4a008b[_0x416fe(0xfb)],'type',_0x590ecf[_0x416fe(0xb5)][_0x416fe(0xcc)]),_0x8eba78(_0x4a008b[_0x416fe(0xfb)],_0x416fe(0xc3),_0x3eaa20),_0x4a008b[_0x416fe(0xfb)]=_0x4dee58([_0x590ecf[_0x416fe(0xf6)](_0x298e51[_0x416fe(0x8a)]),_0xaf6933(0x1,_0x590ecf[_0x416fe(0xad)](_0x590ecf[_0x416fe(0x9c)])),_0xaf6933(0x2,_0x590ecf['IConfigService'])],_0x4a008b[_0x416fe(0xfb)]),_0x4a008b[_0x416fe(0xc4)]=_0x1d75db,_0x4a008b[_0x416fe(0x131)]=_0x3b5cd0,_0x4a008b['LiveShareStatus']=_0x1267e3,Object['defineProperty'](_0x4a008b,Symbol[_0x416fe(0x72)],{'value':_0x416fe(0x83)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.2-experimental.20251201-5b27b55",
|
|
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.
|
|
61
|
-
"@univerjs
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/sheets": "0.12.
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/sheets-ui": "0.12.
|
|
67
|
-
"@univerjs/
|
|
60
|
+
"@univerjs-pro/collaboration": "0.12.2-experimental.20251201-5b27b55",
|
|
61
|
+
"@univerjs/design": "0.12.2-experimental.20251201-5b27b55",
|
|
62
|
+
"@univerjs-pro/collaboration-client": "0.12.2-experimental.20251201-5b27b55",
|
|
63
|
+
"@univerjs/engine-render": "0.12.2-experimental.20251201-5b27b55",
|
|
64
|
+
"@univerjs/sheets": "0.12.2-experimental.20251201-5b27b55",
|
|
65
|
+
"@univerjs/ui": "0.12.2-experimental.20251201-5b27b55",
|
|
66
|
+
"@univerjs/sheets-ui": "0.12.2-experimental.20251201-5b27b55",
|
|
67
|
+
"@univerjs/core": "0.12.2-experimental.20251201-5b27b55"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|
|
@@ -72,9 +72,9 @@
|
|
|
72
72
|
"rxjs": "7.8.2",
|
|
73
73
|
"tailwindcss": "^3.4.17",
|
|
74
74
|
"typescript": "^5.9.3",
|
|
75
|
-
"vite": "^7.2.
|
|
76
|
-
"vitest": "^
|
|
77
|
-
"@univerjs-infra/shared": "0.12.
|
|
75
|
+
"vite": "^7.2.4",
|
|
76
|
+
"vitest": "^4.0.14",
|
|
77
|
+
"@univerjs-infra/shared": "0.12.2",
|
|
78
78
|
"@univerjs/protocol": "0.1.47"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|