@univerjs-pro/live-share 0.12.2-experimental.20251129-0fa20cd → 0.12.2-experimental.20251202-45172c6
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 +9 -9
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x4716(_0x12e6d2,_0x43d543){const _0x57fa5c=_0x57fa();return _0x4716=function(_0x4716a9,_0x20079b){_0x4716a9=_0x4716a9-0x126;let _0x467da4=_0x57fa5c[_0x4716a9];return _0x467da4;},_0x4716(_0x12e6d2,_0x43d543);}const _0x4c3477=_0x4716;(function(_0x4115dd,_0x105dad){const _0x3b0cb6=_0x4716,_0x1d7c4a=_0x4115dd();while(!![]){try{const _0x2246b7=-parseInt(_0x3b0cb6(0x144))/0x1*(parseInt(_0x3b0cb6(0x139))/0x2)+-parseInt(_0x3b0cb6(0x135))/0x3+-parseInt(_0x3b0cb6(0x129))/0x4+-parseInt(_0x3b0cb6(0x148))/0x5*(-parseInt(_0x3b0cb6(0x13a))/0x6)+-parseInt(_0x3b0cb6(0x131))/0x7+-parseInt(_0x3b0cb6(0x145))/0x8*(parseInt(_0x3b0cb6(0x134))/0x9)+-parseInt(_0x3b0cb6(0x133))/0xa*(-parseInt(_0x3b0cb6(0x12e))/0xb);if(_0x2246b7===_0x105dad)break;else _0x1d7c4a['push'](_0x1d7c4a['shift']());}catch(_0x2c3e2b){_0x1d7c4a['push'](_0x1d7c4a['shift']());}}}(_0x57fa,0xc22e4));function _0x57fa(){const _0x441afa=['startRow','14788sgxHzM','1357344lfIyUt','getActiveWorkbook','SetScrollOperation','_injector','startFollowing','getUnitId','extend','executeCommand','No\x20active\x20workbook\x20found.','getActiveSheet','97ktKxBN','8HAOdJU','LiveShareStatus','FRange','15pZkNde','IDLE','getRenderById','FEnum','stopFollowing','getLiveShareCoordinatorSync','syncExecuteCommand','tryStartPresenting','getStatus','FUniver','getLiveShareStatus','startColumn','1517808jCanpd','get','SetWorksheetActiveOperation','stopPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','45774674MEQnRu','startPresenting','LiveShareController','9050069UdbVmy','getSheetId','10TonvfQ','8084142GdILFJ','2270601MuNVss','_commandService','getId'];_0x57fa=function(){return _0x441afa;};return _0x57fa();}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[_0x4c3477(0x147)]{['_initialize'](_0x36e6eb,_0x36600d,_0x1094fd,_0x577892,_0x5a97f7){const _0x5474f5=_0x4c3477,_0x537cba=_0x36e6eb[_0x5474f5(0x12a)](n[_0x5474f5(0x130)]),_0x58fe80=_0x36e6eb[_0x5474f5(0x12a)](g['IRenderManagerService']),_0x26a13f=_0x36600d[_0x5474f5(0x13f)](),_0x398056=_0x36600d[_0x5474f5(0x143)](),_0x15f1dc=_0x537cba[_0x5474f5(0x14d)](_0x26a13f);(_0x15f1dc==null?void 0x0:_0x15f1dc[_0x5474f5(0x150)]())!==n[_0x5474f5(0x146)]['PRESENTING']||(_0x1094fd['getSheetId']()!==_0x398056['getSheetId']()&&this[_0x5474f5(0x136)][_0x5474f5(0x141)](u[_0x5474f5(0x12b)]['id'],{'unitId':_0x26a13f,'subUnitId':_0x1094fd['getSheetId']()}),!_0x58fe80[_0x5474f5(0x14a)](_0x26a13f))||_0x5a97f7[_0x5474f5(0x14e)](f[_0x5474f5(0x13c)]['id'],{'unitId':_0x36600d[_0x5474f5(0x13f)](),'sheetId':_0x1094fd[_0x5474f5(0x132)](),'sheetViewStartRow':_0x577892[_0x5474f5(0x138)],'sheetViewStartColumn':_0x577892[_0x5474f5(0x128)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x4c3477(0x147)]['extend'](w);class C extends a[_0x4c3477(0x126)]{[_0x4c3477(0x127)](){const _0x3ce8f9=_0x4c3477;var _0x5c4e41,_0x4ff7c8;const _0x4df02f=this['_injector']['get'](n[_0x3ce8f9(0x130)]),_0x4b3030=(_0x5c4e41=this['getActiveWorkbook']())==null?void 0x0:_0x5c4e41['getId']();if(!_0x4b3030)throw new Error(_0x3ce8f9(0x142));const _0x596be3=_0x4df02f[_0x3ce8f9(0x14d)](_0x4b3030);return(_0x4ff7c8=_0x596be3==null?void 0x0:_0x596be3[_0x3ce8f9(0x150)]())!=null?_0x4ff7c8:n['LiveShareStatus'][_0x3ce8f9(0x149)];}[_0x4c3477(0x13e)](){const _0x4ebc28=_0x4c3477;var _0x52d74c;const _0x505703=this[_0x4ebc28(0x13d)][_0x4ebc28(0x12a)](n[_0x4ebc28(0x130)]),_0x5c713a=(_0x52d74c=this[_0x4ebc28(0x13b)]())==null?void 0x0:_0x52d74c['getId']();if(!_0x5c713a)throw new Error('No\x20active\x20workbook\x20found.');const _0x33770c=_0x505703[_0x4ebc28(0x14d)](_0x5c713a);if(!_0x33770c)throw new Error(_0x4ebc28(0x12d));_0x33770c['startFollowing']();}[_0x4c3477(0x14c)](){const _0x4506a0=_0x4c3477;var _0x48c237;const _0x2ea826=this[_0x4506a0(0x13d)][_0x4506a0(0x12a)](n[_0x4506a0(0x130)]),_0x38d975=(_0x48c237=this[_0x4506a0(0x13b)]())==null?void 0x0:_0x48c237[_0x4506a0(0x137)]();if(!_0x38d975)throw new Error(_0x4506a0(0x142));const _0x5e0283=_0x2ea826[_0x4506a0(0x14d)](_0x38d975);if(!_0x5e0283)throw new Error(_0x4506a0(0x12d));_0x5e0283[_0x4506a0(0x14c)]();}[_0x4c3477(0x12f)](){const _0x360142=_0x4c3477;var _0x36aba3;const _0x58b0b4=this[_0x360142(0x13d)][_0x360142(0x12a)](n[_0x360142(0x130)]),_0x5e1932=(_0x36aba3=this[_0x360142(0x13b)]())==null?void 0x0:_0x36aba3[_0x360142(0x137)]();if(!_0x5e1932)throw new Error(_0x360142(0x142));const _0x54cf9a=_0x58b0b4[_0x360142(0x14d)](_0x5e1932);if(!_0x54cf9a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x54cf9a[_0x360142(0x14f)]();}[_0x4c3477(0x12c)](){const _0x263581=_0x4c3477;var _0x1c6a79;const _0x307807=this['_injector'][_0x263581(0x12a)](n[_0x263581(0x130)]),_0x229d99=(_0x1c6a79=this[_0x263581(0x13b)]())==null?void 0x0:_0x1c6a79[_0x263581(0x137)]();if(!_0x229d99)throw new Error(_0x263581(0x142));const _0x2622b5=_0x307807[_0x263581(0x14d)](_0x229d99);if(!_0x2622b5)throw new Error(_0x263581(0x12d));_0x2622b5[_0x263581(0x12c)]();}}a[_0x4c3477(0x126)][_0x4c3477(0x140)](C);class L extends a[_0x4c3477(0x14b)]{get['LiveShareStatusEnum'](){return n['LiveShareStatus'];}}a[_0x4c3477(0x14b)][_0x4c3477(0x140)](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x4cc6ca=_0x5812;(function(_0x3a457,_0x33467c){const _0x4b1aaf=_0x5812,_0x316d73=_0x3a457();while(!![]){try{const _0x180d6b=parseInt(_0x4b1aaf(0x229))/0x1+parseInt(_0x4b1aaf(0x1c8))/0x2*(-parseInt(_0x4b1aaf(0x172))/0x3)+parseInt(_0x4b1aaf(0x21d))/0x4*(parseInt(_0x4b1aaf(0x1f1))/0x5)+-parseInt(_0x4b1aaf(0x1c5))/0x6+parseInt(_0x4b1aaf(0x1b7))/0x7+parseInt(_0x4b1aaf(0x22d))/0x8+-parseInt(_0x4b1aaf(0x1aa))/0x9*(-parseInt(_0x4b1aaf(0x1bc))/0xa);if(_0x180d6b===_0x33467c)break;else _0x316d73['push'](_0x316d73['shift']());}catch(_0x214142){_0x316d73['push'](_0x316d73['shift']());}}}(_0x48e6,0xadfa8));function _0x48e6(){const _0x344c78=['registerSharedOperation','InsertSheetMutation','_commandDisposable','sheet','getTypeOfUnitDisposed$','registerDependencies','map','merge','ONLINE','getOwnPropertyDescriptor','mutations','forwardRef','_config','params','unitId','37809gIVCEf','throttleTime','operations','div','SAME_OPERATION_SHARE_INTERVAL','presenting','children','_handleOffline','live-share-icon','_beIdle','LIVESHARE_FETCH_OPERATIONS','stopPresenting','useState','2421356StYNMW','_commandService','getMemberID','tag','_collabSessionService','950FPSUkX','Disposable','presenter','useObservable','delete','toDisposable','Module','values','_stopPresenting','7510896TpkseI','_univerInstanceService','_handleNewHost','14wHwXLV','idle','xlink:href','_startFollowing','_handleNewChangeSets','Dropdown','memberID','LiveShare','You\x27re\x20following\x20the\x20presenter','not-following','add','LiveShareService','symbol','currentColor','DesktopLiveShareController','touchDependencies','Injector','Subject','text','Plugin','_presenter','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','dispose','IUIPartsService','UniverInstanceType','string','LIVESHARE_NEW_HOST','univerjs-icon\x20univerjs-icon-','IConfigService','unsubscribe','IDLE','NEW_CHANGESETS','_reporters','svg','getUnitId','NOT_FOLLOWING','shouldShareOperation','startFollowing','following','complete','stringify','5AcrQYd','idSuffix','defineProperty','tryStartPresenting','HEADER_MENU','assign','_init','evenodd','_mountLiveShare','url(#$1','displayName','useDependency','_handleOnline','univer-mb-3\x20univer-w-full\x20univer-text-sm','get','getCurrentTypeOfUnit$','CollaborationSessionService','live-share.config','none','BehaviorSubject','parse','UNIVER_UNKNOWN','FOLLOWING','LIVESHARE_OPERATION','LIVESHARE_REQUEST_HOST','getConfig','path','next','colorChannel1','RxDisposable','_liveShareService','Stop\x20presenting','SetScrollOperation','fill','jsxs','_startPresenting','_status','OFFLINE','_handleOperation','dispose$','1em','includes','forEach','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','2676692AaDxCJ','attrs','pluginName','current','init','getLiveShareCoordinator','stopFollowing','Present\x20this\x20document','executeCommand','0\x200\x2017\x2017','mask','PRESENTING','486587CUzZKs','set','then','_uiPartsService','3310696tJfWIO','IUniverInstanceService','status$','SetZoomRatioOperation','LiveShareCoordinator','button','offline','has','reverse','BuiltInUIPart','LiveShareIcon','event$','UNIVER_LIVE_SHARE_PLUGIN','_sharedOperations','replace','type','Inject','DisposableCollection','override','_startLiveShareCoordinator','trim','getStatus','use','createElement','DependentOn','entries','Stop\x20following','_stopFollowing','CollaborationEvent','150072yZQdjU','getTypeOfUnitAdded$','jsx','setConfig','send','LIVESHARE_TERMINATE','onCommandExecuted','SessionStatus','pipe','LiveShareController','createInstance','subscribe','_entities','UNIVER_SHEET','Start\x20following','takeUntil','clsx','sessionStatus$','Fragment','substring','_configService','LiveShareStatus','_unitID','Button','UniverLiveSharePlugin','_collabSession','default','_status$','find','getInitialStates','mergeOverrideWithDependencies','connectInjector','defs','length','_injector','data','registerInitialStateReporter','getValue','disposeWithMe','SetWorksheetActiveOperation','useRef'];_0x48e6=function(){return _0x344c78;};return _0x48e6();}var T=Object[_0x4cc6ca(0x1f3)],U=(_0x1d28ca,_0x2ae161,_0x3d712a)=>_0x2ae161 in _0x1d28ca?T(_0x1d28ca,_0x2ae161,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d712a}):_0x1d28ca[_0x2ae161]=_0x3d712a,_=(_0x4255fa,_0x39360c,_0x5bc857)=>U(_0x4255fa,typeof _0x39360c!='symbol'?_0x39360c+'':_0x39360c,_0x5bc857);Object[_0x4cc6ca(0x1f3)](exports,Symbol['toStringTag'],{'value':_0x4cc6ca(0x1c2)});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:_0x491ba0,..._0x498e88}){const _0x107484=_0x4cc6ca,{icon:_0x3e4ad7,id:_0x5eb824,className:_0x5cebc2,extend:_0x629d5b,..._0x54fb9c}=_0x498e88,_0x7503b9=(_0x107484(0x1e3)+_0x5eb824+'\x20'+(_0x5cebc2||''))[_0x107484(0x169)](),_0x1fbb2b=v[_0x107484(0x19a)]('_'+H());return j(_0x3e4ad7,''+_0x5eb824,{'defIds':_0x3e4ad7['defIds'],'idSuffix':_0x1fbb2b[_0x107484(0x220)]},{'ref':_0x491ba0,'className':_0x7503b9,..._0x54fb9c},_0x629d5b);}function j(_0x2d513e,_0xef5416,_0x296a34,_0x391893,_0x2c5b23){const _0x52d685=_0x4cc6ca;return v[_0x52d685(0x16c)](_0x2d513e[_0x52d685(0x1ba)],{'key':_0xef5416,...y(_0x2d513e,_0x296a34,_0x2c5b23),..._0x391893},(F(_0x2d513e,_0x296a34)[_0x52d685(0x1b0)]||[])[_0x52d685(0x1a1)]((_0x508223,_0x1cf8a9)=>j(_0x508223,_0xef5416+'-'+_0x2d513e['tag']+'-'+_0x1cf8a9,_0x296a34,void 0x0,_0x2c5b23)));}function y(_0x3561f0,_0x1a475d,_0x1eb6c2){const _0x5bf8a7=_0x4cc6ca,_0x25801c={..._0x3561f0['attrs']};_0x1eb6c2!=null&&_0x1eb6c2[_0x5bf8a7(0x20d)]&&_0x25801c['fill']===_0x5bf8a7(0x20d)&&(_0x25801c[_0x5bf8a7(0x212)]=_0x1eb6c2[_0x5bf8a7(0x20d)]),_0x3561f0[_0x5bf8a7(0x1ba)]===_0x5bf8a7(0x227)&&_0x25801c['id']&&(_0x25801c['id']=_0x25801c['id']+_0x1a475d['idSuffix']),Object[_0x5bf8a7(0x16e)](_0x25801c)[_0x5bf8a7(0x21b)](([_0x149dca,_0x13e026])=>{const _0x50a19e=_0x5bf8a7;_0x149dca===_0x50a19e(0x227)&&typeof _0x13e026==_0x50a19e(0x1e1)&&(_0x25801c[_0x149dca]=_0x13e026[_0x50a19e(0x23b)](/url\(#(.*)\)/,_0x50a19e(0x1fa)+_0x1a475d[_0x50a19e(0x1f2)]+')'));});const {defIds:_0x1a3b40}=_0x1a475d;return!_0x1a3b40||_0x1a3b40[_0x5bf8a7(0x193)]===0x0||(_0x3561f0[_0x5bf8a7(0x1ba)]===_0x5bf8a7(0x16b)&&_0x25801c[_0x5bf8a7(0x1ca)]&&(_0x25801c['xlink:href']=_0x25801c['xlink:href']+_0x1a475d[_0x5bf8a7(0x1f2)]),Object[_0x5bf8a7(0x16e)](_0x25801c)[_0x5bf8a7(0x21b)](([_0xec86f9,_0x31332f])=>{const _0x51ab41=_0x5bf8a7;typeof _0x31332f==_0x51ab41(0x1e1)&&(_0x25801c[_0xec86f9]=_0x31332f[_0x51ab41(0x23b)](/url\(#(.*)\)/,_0x51ab41(0x1fa)+_0x1a475d['idSuffix']+')'));})),_0x25801c;}function F(_0x4fe128,_0x33e675){const _0x11fe04=_0x4cc6ca;var _0x1eae61;const {defIds:_0x1407ec}=_0x33e675;return!_0x1407ec||_0x1407ec['length']===0x0?_0x4fe128:_0x4fe128['tag']===_0x11fe04(0x192)&&((_0x1eae61=_0x4fe128[_0x11fe04(0x1b0)])!=null&&_0x1eae61[_0x11fe04(0x193)])?{..._0x4fe128,'children':_0x4fe128[_0x11fe04(0x1b0)][_0x11fe04(0x1a1)](_0x1fd0c4=>typeof _0x1fd0c4[_0x11fe04(0x21e)]['id']==_0x11fe04(0x1e1)&&_0x1407ec&&_0x1407ec[_0x11fe04(0x21a)](_0x1fd0c4[_0x11fe04(0x21e)]['id'])?{..._0x1fd0c4,'attrs':{..._0x1fd0c4[_0x11fe04(0x21e)],'id':_0x1fd0c4[_0x11fe04(0x21e)]['id']+_0x33e675['idSuffix']}}:_0x1fd0c4)}:_0x4fe128;}function H(){const _0x59329d=_0x4cc6ca;return Math['random']()['toString'](0x24)[_0x59329d(0x185)](0x2,0x8);}x[_0x4cc6ca(0x1fb)]='UniverIcon';const V={'tag':_0x4cc6ca(0x1e9),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4cc6ca(0x203),'viewBox':_0x4cc6ca(0x226),'width':_0x4cc6ca(0x219),'height':'1em'},'children':[{'tag':_0x4cc6ca(0x20b),'attrs':{'fill':_0x4cc6ca(0x1d5),'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':_0x4cc6ca(0x20b),'attrs':{'fill':'currentColor','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':_0x4cc6ca(0x1f8),'clipRule':_0x4cc6ca(0x1f8)}}]},R=v[_0x4cc6ca(0x1a6)](function(_0x2db570,_0x2cae5e){const _0x4b825c=_0x4cc6ca;return v['createElement'](x,Object[_0x4b825c(0x1f6)]({},_0x2db570,{'id':_0x4b825c(0x1b2),'ref':_0x2cae5e,'icon':V}));});R[_0x4cc6ca(0x1fb)]=_0x4cc6ca(0x237);class E extends o[_0x4cc6ca(0x1bd)]{constructor(){const _0xbaabf0=_0x4cc6ca;super(...arguments),_(this,_0xbaabf0(0x23a),new Set()),_(this,_0xbaabf0(0x1e8),new Set());}[_0x4cc6ca(0x19b)](_0x72ee06){const _0x1bfcac=_0x4cc6ca;return this[_0x1bfcac(0x23a)][_0x1bfcac(0x1d2)](_0x72ee06),o['toDisposable'](()=>this[_0x1bfcac(0x23a)][_0x1bfcac(0x1c0)](_0x72ee06));}[_0x4cc6ca(0x196)](_0x5dcaee){const _0x565122=_0x4cc6ca;return this[_0x565122(0x1e8)]['add'](_0x5dcaee),o[_0x565122(0x1c1)](()=>this['_reporters'][_0x565122(0x1c0)](_0x5dcaee));}[_0x4cc6ca(0x1ec)](_0x5d34d8){const _0x1f1726=_0x4cc6ca;return this[_0x1f1726(0x23a)][_0x1f1726(0x234)](_0x5d34d8);}[_0x4cc6ca(0x18f)](_0x1329be){const _0x5b8694=_0x4cc6ca;return Array['from'](this[_0x5b8694(0x1e8)])[_0x5b8694(0x1a1)](_0x59df21=>_0x59df21(_0x1329be));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x2f4761,_0x1944bc,_0x16244d,_0x1b192c)=>{for(var _0x770b8e=_0x1b192c>0x1?void 0x0:_0x1b192c?M(_0x1944bc,_0x16244d):_0x1944bc,_0x1f2f18=_0x2f4761['length']-0x1,_0x216623;_0x1f2f18>=0x0;_0x1f2f18--)(_0x216623=_0x2f4761[_0x1f2f18])&&(_0x770b8e=_0x216623(_0x770b8e)||_0x770b8e);return _0x770b8e;},S=(_0x3643b2,_0x47270d)=>(_0x2c3251,_0x199c04)=>_0x47270d(_0x2c3251,_0x199c04,_0x3643b2);exports['LiveShareController']=class extends o[_0x4cc6ca(0x20e)]{constructor(_0x1f4fe4,_0x382ad8,_0x51ebd2){const _0xbdcf75=_0x4cc6ca;super(),_(this,'_entities',new Map()),(this['_univerInstanceService']=_0x1f4fe4,this[_0xbdcf75(0x194)]=_0x382ad8,this[_0xbdcf75(0x1bb)]=_0x51ebd2,this['_init']());}async[_0x4cc6ca(0x222)](_0x56098c){const _0x412d94=_0x4cc6ca;return this[_0x412d94(0x17e)]['has'](_0x56098c)||await this[_0x412d94(0x168)](_0x56098c),this['_entities'][_0x412d94(0x1ff)](_0x56098c);}['getLiveShareCoordinatorSync'](_0x529d45){const _0x99d85c=_0x4cc6ca;var _0x24efd1;return(_0x24efd1=this['_entities'][_0x99d85c(0x1ff)](_0x529d45))!=null?_0x24efd1:null;}[_0x4cc6ca(0x1f7)](){const _0x50c089=_0x4cc6ca;this[_0x50c089(0x1c6)][_0x50c089(0x173)](o[_0x50c089(0x1e0)][_0x50c089(0x17f)])[_0x50c089(0x17a)](I['takeUntil'](this['dispose$']))[_0x50c089(0x17d)](async _0x7ca45d=>{const _0x5175f4=_0x50c089,_0x40d391=_0x7ca45d['getUnitId']();this['_entities'][_0x5175f4(0x234)](_0x40d391)||this[_0x5175f4(0x168)](_0x40d391);}),this[_0x50c089(0x1c6)][_0x50c089(0x19f)](o['UniverInstanceType'][_0x50c089(0x17f)])[_0x50c089(0x17a)](I[_0x50c089(0x181)](this[_0x50c089(0x218)]))['subscribe'](_0x5a82e7=>{const _0x24030a=_0x50c089,_0x36eb89=_0x5a82e7[_0x24030a(0x1ea)](),_0x5e2dbe=this['_entities'][_0x24030a(0x1ff)](_0x36eb89);_0x5e2dbe==null||_0x5e2dbe['dispose']();});}async['_startLiveShareCoordinator'](_0x58f5c4){const _0x1c248a=_0x4cc6ca,_0x5b2e7d=await this[_0x1c248a(0x1bb)]['requireSession'](_0x58f5c4),_0x2869ac=this[_0x1c248a(0x194)][_0x1c248a(0x17c)](exports[_0x1c248a(0x231)],_0x58f5c4,_0x5b2e7d);return _0x2869ac[_0x1c248a(0x221)](),this[_0x1c248a(0x17e)][_0x1c248a(0x22a)](_0x58f5c4,_0x2869ac),_0x2869ac;}},exports[_0x4cc6ca(0x17b)]=P([S(0x0,o[_0x4cc6ca(0x22e)]),S(0x1,o[_0x4cc6ca(0x23d)](o[_0x4cc6ca(0x1d8)])),S(0x2,o[_0x4cc6ca(0x23d)](b[_0x4cc6ca(0x201)]))],exports[_0x4cc6ca(0x17b)]);var u=(_0x74dee8=>(_0x74dee8['OFFLINE']='offline',_0x74dee8[_0x4cc6ca(0x1e6)]='idle',_0x74dee8[_0x4cc6ca(0x207)]=_0x4cc6ca(0x1ee),_0x74dee8['NOT_FOLLOWING']='not-following',_0x74dee8['PRESENTING']=_0x4cc6ca(0x1af),_0x74dee8))(u||{});const k=_0x4cc6ca(0x1ae),q=0xc8;exports[_0x4cc6ca(0x231)]=class extends o[_0x4cc6ca(0x20e)]{constructor(_0x4cb8c6,_0x5a5a28,_0x29fb87,_0x55fc5e,_0x29f112){const _0x295a43=_0x4cc6ca;super(),_(this,_0x295a43(0x18d),new O[(_0x295a43(0x204))]('idle')),_(this,_0x295a43(0x22f),this[_0x295a43(0x18d)]['asObservable']()),_(this,'_init',!0x1),_(this,'_commandDisposable',null),_(this,'_presenter',null),(this['_unitID']=_0x4cb8c6,this['_collabSession']=_0x5a5a28,this[_0x295a43(0x186)]=_0x29fb87,this[_0x295a43(0x20f)]=_0x55fc5e,this[_0x295a43(0x1b8)]=_0x29f112);}get[_0x4cc6ca(0x215)](){const _0x4c8634=_0x4cc6ca;return this['_status$'][_0x4c8634(0x197)]();}[_0x4cc6ca(0x1de)](){const _0x13df83=_0x4cc6ca;var _0x35cfcd;(_0x35cfcd=this[_0x13df83(0x19d)])==null||_0x35cfcd[_0x13df83(0x1de)](),this['_status$'][_0x13df83(0x20c)](_0x13df83(0x1c9)),this[_0x13df83(0x18d)][_0x13df83(0x1ef)]();}[_0x4cc6ca(0x16a)](){const _0x243903=_0x4cc6ca;return this[_0x243903(0x215)];}[_0x4cc6ca(0x221)](){const _0x54de3c=_0x4cc6ca;this[_0x54de3c(0x1f7)]||(this['_init']=!0x0,this['_collabSession'][_0x54de3c(0x183)][_0x54de3c(0x17a)](I['takeUntil'](this[_0x54de3c(0x218)]))[_0x54de3c(0x17d)](_0x368960=>{const _0x2f17c0=_0x54de3c;switch(_0x368960){case b['SessionStatus'][_0x2f17c0(0x216)]:this['_handleOffline']();break;case b[_0x2f17c0(0x179)][_0x2f17c0(0x1a3)]:this[_0x2f17c0(0x1fd)]();break;}}),this['_collabSession'][_0x54de3c(0x238)][_0x54de3c(0x17a)](I[_0x54de3c(0x181)](this[_0x54de3c(0x218)]))['subscribe'](_0x5d9a19=>{const _0x5a764a=_0x54de3c,{eventID:_0x19401a}=_0x5d9a19;switch(_0x19401a){case d[_0x5a764a(0x171)][_0x5a764a(0x1e2)]:this['_handleNewHost'](_0x5d9a19);break;case d[_0x5a764a(0x171)]['LIVESHARE_OPERATION']:this[_0x5a764a(0x217)](_0x5d9a19);break;case d[_0x5a764a(0x171)][_0x5a764a(0x177)]:this['_handleTerminate']();break;case d[_0x5a764a(0x171)][_0x5a764a(0x1e7)]:this[_0x5a764a(0x1cc)](_0x5d9a19);break;}}));}[_0x4cc6ca(0x1f4)](){const _0x2f3d58=_0x4cc6ca;this[_0x2f3d58(0x18b)][_0x2f3d58(0x176)]({'eventID':d[_0x2f3d58(0x171)][_0x2f3d58(0x209)],'data':{'unitID':this[_0x2f3d58(0x188)],'userID':this[_0x2f3d58(0x18b)][_0x2f3d58(0x1b9)]()}},this[_0x2f3d58(0x188)]);}[_0x4cc6ca(0x1b5)](){const _0x238150=_0x4cc6ca;this['_status']===_0x238150(0x1af)&&(this[_0x238150(0x18d)][_0x238150(0x20c)](_0x238150(0x1c9)),this[_0x238150(0x18b)][_0x238150(0x176)]({'eventID':d['CollaborationEvent'][_0x238150(0x177)],'data':{'unitID':this[_0x238150(0x188)]}},this[_0x238150(0x188)]));}[_0x4cc6ca(0x1ed)](){const _0x16d7bd=_0x4cc6ca;this['_status']===_0x16d7bd(0x1d1)&&(this[_0x16d7bd(0x18d)]['next'](_0x16d7bd(0x1ee)),this[_0x16d7bd(0x1cb)]());}[_0x4cc6ca(0x223)](){const _0x39bd0b=_0x4cc6ca;this[_0x39bd0b(0x215)]===_0x39bd0b(0x1ee)&&this[_0x39bd0b(0x170)]();}[_0x4cc6ca(0x1c7)](_0x53bd3a){const _0x167870=_0x4cc6ca,{presenter:_0x208296}=_0x53bd3a[_0x167870(0x195)],_0x2a7c7c=this[_0x167870(0x18b)][_0x167870(0x1b9)]();this['_presenter']=_0x208296,_0x208296===_0x2a7c7c?(this[_0x167870(0x170)](),this[_0x167870(0x214)]()):this[_0x167870(0x215)]!==_0x167870(0x1d1)&&(this[_0x167870(0x1c4)](),this[_0x167870(0x1cb)]());}['_fetchOperations'](){const _0xaef9ff=_0x4cc6ca,_0x4047e5={'eventID':d[_0xaef9ff(0x171)][_0xaef9ff(0x1b4)]};this[_0xaef9ff(0x18b)][_0xaef9ff(0x176)](_0x4047e5,this['_unitID']);}['_handleTerminate'](){const _0x1cc109=_0x4cc6ca;this[_0x1cc109(0x1dc)]=null,this[_0x1cc109(0x215)]!==_0x1cc109(0x1af)&&this[_0x1cc109(0x1b3)]();}[_0x4cc6ca(0x1cc)](_0x258079){const _0x4c0c3e=_0x4cc6ca;if(this[_0x4c0c3e(0x215)]===_0x4c0c3e(0x1ee)&&this[_0x4c0c3e(0x1dc)]===_0x258079[_0x4c0c3e(0x195)][_0x4c0c3e(0x1ce)]){const _0x4e8b22=d['parseProtocolChangeset'](_0x258079[_0x4c0c3e(0x195)])[_0x4c0c3e(0x1a5)][_0x4c0c3e(0x235)]()[_0x4c0c3e(0x18e)](_0x2ff7e2=>_0x2ff7e2['id']===C[_0x4c0c3e(0x19c)]['id']);if(_0x4e8b22){const _0x36f599=_0x4e8b22['params'][_0x4c0c3e(0x1a9)],_0x41ba4b=_0x4e8b22['params'][_0x4c0c3e(0x19e)]['id'];setTimeout(()=>{const _0x34f239=_0x4c0c3e;this[_0x34f239(0x1b8)][_0x34f239(0x225)](C[_0x34f239(0x199)]['id'],{'unitId':_0x36f599,'subUnitId':_0x41ba4b},{'fromCollab':!0x0});});}}}[_0x4cc6ca(0x214)](){const _0x5bb2dc=_0x4cc6ca;this['_status$'][_0x5bb2dc(0x20c)](_0x5bb2dc(0x1af));const _0x2f40bf=new Map(),_0x3eaa8d=this[_0x5bb2dc(0x19d)]=new o[(_0x5bb2dc(0x23e))]();_0x3eaa8d[_0x5bb2dc(0x1d2)](o[_0x5bb2dc(0x1c1)](()=>{const _0x553eb8=_0x5bb2dc;_0x2f40bf[_0x553eb8(0x21b)](_0xd546a1=>_0xd546a1[_0x553eb8(0x1ef)]()),_0x2f40bf['clear']();})),_0x3eaa8d[_0x5bb2dc(0x1d2)](this[_0x5bb2dc(0x1b8)][_0x5bb2dc(0x178)](_0x3a417d=>{const _0x502874=_0x5bb2dc;var _0x4306c4;if(_0x3a417d[_0x502874(0x23c)]!==o['CommandType']['OPERATION']||!this['_liveShareService']['shouldShareOperation'](_0x3a417d['id']))return;const {id:_0x2e770d}=_0x3a417d;let _0xa7e931;_0x2f40bf[_0x502874(0x234)](_0x2e770d)?_0xa7e931=_0x2f40bf[_0x502874(0x1ff)](_0x2e770d):(_0xa7e931=new O[(_0x502874(0x1d9))](),_0x2f40bf['set'](_0x2e770d,_0xa7e931),_0xa7e931[_0x502874(0x17a)](I[_0x502874(0x1ab)]((_0x4306c4=this[_0x502874(0x186)][_0x502874(0x20a)](k))!=null?_0x4306c4:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x502874(0x17d)](_0x2f1981=>{const _0x1696ea=_0x502874;this[_0x1696ea(0x18b)][_0x1696ea(0x176)]({'eventID':d[_0x1696ea(0x171)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x2f1981['id']]:{'id':_0x2f1981['id'],'params':JSON[_0x1696ea(0x1f0)](_0x2f1981[_0x1696ea(0x1a8)])}}}},this[_0x1696ea(0x188)]);})),_0xa7e931[_0x502874(0x20c)](_0x3a417d);})),this['_liveShareService'][_0x5bb2dc(0x18f)](this['_unitID'])['forEach'](_0x3803c0=>this['_collabSession'][_0x5bb2dc(0x176)]({'eventID':d[_0x5bb2dc(0x171)][_0x5bb2dc(0x208)],'data':{'unitID':this[_0x5bb2dc(0x188)],'operations':{[_0x3803c0['id']]:{'id':_0x3803c0['id'],'params':JSON[_0x5bb2dc(0x1f0)](_0x3803c0[_0x5bb2dc(0x1a8)])}}}},this[_0x5bb2dc(0x188)]));}[_0x4cc6ca(0x1c4)](){const _0x47f72b=_0x4cc6ca;var _0x277422;this['_status$']['next'](_0x47f72b(0x1c9)),(_0x277422=this[_0x47f72b(0x19d)])==null||_0x277422[_0x47f72b(0x1de)](),this[_0x47f72b(0x19d)]=null;}[_0x4cc6ca(0x1cb)](){const _0x32f386=_0x4cc6ca;var _0x122025;(_0x122025=this[_0x32f386(0x19d)])==null||_0x122025[_0x32f386(0x1de)](),this[_0x32f386(0x18d)][_0x32f386(0x20c)](_0x32f386(0x1ee));}[_0x4cc6ca(0x1b3)](){const _0x5cda15=_0x4cc6ca;var _0x29bfda;this[_0x5cda15(0x18d)]['next'](_0x5cda15(0x1c9)),(_0x29bfda=this[_0x5cda15(0x19d)])==null||_0x29bfda[_0x5cda15(0x1de)](),this[_0x5cda15(0x19d)]=null;}['_stopFollowing'](){const _0x1f9aca=_0x4cc6ca;var _0x371b40;this['_status$'][_0x1f9aca(0x20c)](_0x1f9aca(0x1d1)),(_0x371b40=this[_0x1f9aca(0x19d)])==null||_0x371b40['dispose']();}['_handleOperation'](_0x5e1a51){const _0x4fc819=_0x4cc6ca;if(['presenting',_0x4fc819(0x1d1),'offline'][_0x4fc819(0x21a)](this['_status'])||!_0x5e1a51[_0x4fc819(0x195)][_0x4fc819(0x1be)]||_0x5e1a51[_0x4fc819(0x195)][_0x4fc819(0x1be)]===this[_0x4fc819(0x18b)]['getMemberID']())return;this['_status']==='idle'&&this[_0x4fc819(0x1cb)]();const _0x1e1c8a=_0x5e1a51[_0x4fc819(0x195)][_0x4fc819(0x1ac)];Object[_0x4fc819(0x1c3)](_0x1e1c8a)[_0x4fc819(0x21b)](_0x52ba97=>{const _0x1f8064=_0x4fc819;this[_0x1f8064(0x1b8)]['executeCommand'](_0x52ba97['id'],_0x52ba97[_0x1f8064(0x1a8)]?JSON[_0x1f8064(0x205)](_0x52ba97[_0x1f8064(0x1a8)]):null,{'fromCollab':!0x0});});}[_0x4cc6ca(0x1b1)](){const _0x2d10eb=_0x4cc6ca;var _0x9131c5;this[_0x2d10eb(0x18d)][_0x2d10eb(0x20c)](_0x2d10eb(0x233)),(_0x9131c5=this[_0x2d10eb(0x19d)])==null||_0x9131c5[_0x2d10eb(0x1de)]();}['_handleOnline'](){const _0x52546c=_0x4cc6ca;this['_status$'][_0x52546c(0x20c)](_0x52546c(0x1c9)),this['_fetchOperations']();}},exports[_0x4cc6ca(0x231)]=P([S(0x2,o[_0x4cc6ca(0x1e4)]),S(0x3,o[_0x4cc6ca(0x23d)](E)),S(0x4,o['ICommandService'])],exports[_0x4cc6ca(0x231)]);function $(){const _0x3f4473=_0x4cc6ca,_0x19551c=p[_0x3f4473(0x1fc)](exports[_0x3f4473(0x17b)]),_0x691e47=p[_0x3f4473(0x1fc)](o['IUniverInstanceService']),_0x3004=p[_0x3f4473(0x1bf)](()=>_0x691e47[_0x3f4473(0x200)](o[_0x3f4473(0x1e0)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x599ba0,_0x1f2c7a]=v[_0x3f4473(0x1b6)](null),[_0x3f99f7,_0x18729]=v[_0x3f4473(0x1b6)](u['IDLE']),_0x51292d=v[_0x3f4473(0x19a)](null);return v['useEffect'](()=>(_0x3004&&_0x19551c['getLiveShareCoordinator'](_0x3004[_0x3f4473(0x1ea)]())[_0x3f4473(0x22b)](_0x21f597=>{const _0x9487c5=_0x3f4473;_0x1f2c7a(_0x21f597),_0x51292d[_0x9487c5(0x220)]=_0x21f597[_0x9487c5(0x22f)][_0x9487c5(0x17d)](_0xee09b2=>{_0x18729(_0xee09b2);});}),()=>{const _0x5a397c=_0x3f4473;var _0x5720ed;(_0x5720ed=_0x51292d[_0x5a397c(0x220)])==null||_0x5720ed[_0x5a397c(0x1e5)](),_0x51292d['current']=null;}),[_0x3004,_0x19551c]),_0x599ba0?l[_0x3f4473(0x174)](f[_0x3f4473(0x1cd)],{'align':'end','disabled':_0x3f99f7===u[_0x3f4473(0x216)],'className':_0x3f4473(0x21c),'overlay':l[_0x3f4473(0x174)](W,{'status':_0x3f99f7,'coordinator':_0x599ba0}),'children':l[_0x3f4473(0x174)](_0x3f4473(0x232),{'className':f[_0x3f4473(0x182)](_0x3f4473(0x1dd),{'univer-cursor-not-allowed':_0x3f99f7===u[_0x3f4473(0x216)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3f99f7!==u[_0x3f4473(0x216)]}),'type':'button','children':l['jsx'](R,{'className':'univer-size-4'})})}):null;}function W(_0x458d53){const _0x21f54b=_0x4cc6ca,{status:_0x3292e1,coordinator:_0x874fdb}=_0x458d53;switch(_0x3292e1){case u[_0x21f54b(0x1e6)]:return l[_0x21f54b(0x174)](G,{'coordinator':_0x874fdb});case u['FOLLOWING']:return l[_0x21f54b(0x174)](B,{'coordinator':_0x874fdb});case u[_0x21f54b(0x1eb)]:return l['jsx'](Y,{'coordinator':_0x874fdb});case u[_0x21f54b(0x216)]:return l['jsx'](J,{});case u[_0x21f54b(0x228)]:return l['jsx'](Z,{'coordinator':_0x874fdb});default:return null;}}function G(_0x10af61){const _0x36599e=_0x4cc6ca,{coordinator:_0x4da583}=_0x10af61;return l[_0x36599e(0x213)](l[_0x36599e(0x184)],{'children':[l[_0x36599e(0x174)](_0x36599e(0x1ad),{'className':_0x36599e(0x1fe),'children':_0x36599e(0x224)}),l[_0x36599e(0x174)](f['Button'],{'onClick':()=>_0x4da583[_0x36599e(0x1f4)](),'children':'Start'})]});}function B(_0x4daf79){const _0x584c3c=_0x4cc6ca,{coordinator:_0x29a2b9}=_0x4daf79;return l['jsxs'](l[_0x584c3c(0x184)],{'children':[l['jsx'](_0x584c3c(0x1ad),{'className':_0x584c3c(0x1fe),'children':_0x584c3c(0x1d0)}),l[_0x584c3c(0x174)](f['Button'],{'onClick':()=>_0x29a2b9[_0x584c3c(0x223)](),'children':_0x584c3c(0x16f)})]});}function Y(_0x3bd2ca){const _0x9fca71=_0x4cc6ca,{coordinator:_0x48731d}=_0x3bd2ca;return l[_0x9fca71(0x213)](l[_0x9fca71(0x184)],{'children':[l['jsx'](_0x9fca71(0x1ad),{'className':_0x9fca71(0x1fe),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l['jsx'](f['Button'],{'variant':_0x9fca71(0x1da),'onClick':()=>_0x48731d[_0x9fca71(0x1ed)](),'children':_0x9fca71(0x180)})]});}function Z(_0x54e60b){const _0xce5e8f=_0x4cc6ca,{coordinator:_0x2c7120}=_0x54e60b;return l['jsxs'](l[_0xce5e8f(0x184)],{'children':[l['jsx'](_0xce5e8f(0x1ad),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),l[_0xce5e8f(0x174)](f[_0xce5e8f(0x189)],{'variant':_0xce5e8f(0x18c),'onClick':()=>_0x2c7120[_0xce5e8f(0x1b5)](),'children':_0xce5e8f(0x210)})]});}function J(){const _0x4586b8=_0x4cc6ca;return l[_0x4586b8(0x174)](l['Fragment'],{'children':'You\x27are\x20offline.'});}function _0x5812(_0x1ccaa2,_0xa2bfb4){const _0x48e6d6=_0x48e6();return _0x5812=function(_0x581273,_0xc55876){_0x581273=_0x581273-0x168;let _0x2ec236=_0x48e6d6[_0x581273];return _0x2ec236;},_0x5812(_0x1ccaa2,_0xa2bfb4);}var K=Object[_0x4cc6ca(0x1a4)],z=(_0x4a0444,_0x4ceeee,_0x42aa0f,_0x267d31)=>{const _0xc2a99f=_0x4cc6ca;for(var _0x5126df=_0x267d31>0x1?void 0x0:_0x267d31?K(_0x4ceeee,_0x42aa0f):_0x4ceeee,_0x5cba44=_0x4a0444[_0xc2a99f(0x193)]-0x1,_0x442652;_0x5cba44>=0x0;_0x5cba44--)(_0x442652=_0x4a0444[_0x5cba44])&&(_0x5126df=_0x442652(_0x5126df)||_0x5126df);return _0x5126df;},L=(_0x33135a,_0x4ccf80)=>(_0x4a3c42,_0x2edfc9)=>_0x4ccf80(_0x4a3c42,_0x2edfc9,_0x33135a);exports[_0x4cc6ca(0x1d6)]=class extends o[_0x4cc6ca(0x1bd)]{constructor(_0x33413c,_0x14fed9){const _0x5483a2=_0x4cc6ca;super(),this[_0x5483a2(0x194)]=_0x33413c,this[_0x5483a2(0x22c)]=_0x14fed9,this[_0x5483a2(0x1f9)]();}[_0x4cc6ca(0x1f9)](){const _0x5f2516=_0x4cc6ca;this[_0x5f2516(0x198)](this[_0x5f2516(0x22c)]['registerComponent'](p[_0x5f2516(0x236)][_0x5f2516(0x1f5)],()=>p[_0x5f2516(0x191)]($,this['_injector'])));}},exports[_0x4cc6ca(0x1d6)]=z([L(0x0,o[_0x4cc6ca(0x23d)](o[_0x4cc6ca(0x1d8)])),L(0x1,p[_0x4cc6ca(0x1df)])],exports[_0x4cc6ca(0x1d6)]);const Q=_0x4cc6ca(0x202),w={};var X=Object[_0x4cc6ca(0x1a4)],ee=(_0x4c4a4d,_0x320252,_0x3a5469,_0x619358)=>{const _0x12ff38=_0x4cc6ca;for(var _0x3665eb=_0x619358>0x1?void 0x0:_0x619358?X(_0x320252,_0x3a5469):_0x320252,_0x54c7e6=_0x4c4a4d[_0x12ff38(0x193)]-0x1,_0x4aa8e3;_0x54c7e6>=0x0;_0x54c7e6--)(_0x4aa8e3=_0x4c4a4d[_0x54c7e6])&&(_0x3665eb=_0x4aa8e3(_0x3665eb)||_0x3665eb);return _0x3665eb;},te=(_0x1198f9,_0x53597e)=>(_0x5ed447,_0x53cd4d)=>_0x53597e(_0x5ed447,_0x53cd4d,_0x1198f9);let m=class extends o[_0x4cc6ca(0x1bd)]{constructor(_0x18e6ad){const _0x4f9629=_0x4cc6ca;super(),this[_0x4f9629(0x20f)]=_0x18e6ad,this[_0x4f9629(0x1f7)]();}['_init'](){const _0x591783=_0x4cc6ca;[D[_0x591783(0x230)]['id'],D[_0x591783(0x211)]['id'],C[_0x591783(0x199)]['id']]['forEach'](_0x32a9c5=>{const _0x19bcf8=_0x591783;this[_0x19bcf8(0x198)](this[_0x19bcf8(0x20f)][_0x19bcf8(0x19b)](_0x32a9c5));});}};m=ee([te(0x0,o[_0x4cc6ca(0x23d)](E))],m);var ie=Object[_0x4cc6ca(0x1f3)],se=Object['getOwnPropertyDescriptor'],ne=(_0x5355b7,_0x1465f6,_0x1fc4ae)=>_0x1465f6 in _0x5355b7?ie(_0x5355b7,_0x1465f6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1fc4ae}):_0x5355b7[_0x1465f6]=_0x1fc4ae,re=(_0x26b852,_0x29ab97,_0x1af0bd,_0x35fe03)=>{const _0x196bc2=_0x4cc6ca;for(var _0x35246b=_0x35fe03>0x1?void 0x0:_0x35fe03?se(_0x29ab97,_0x1af0bd):_0x29ab97,_0x190947=_0x26b852[_0x196bc2(0x193)]-0x1,_0xf6ba44;_0x190947>=0x0;_0x190947--)(_0xf6ba44=_0x26b852[_0x190947])&&(_0x35246b=_0xf6ba44(_0x35246b)||_0x35246b);return _0x35246b;},N=(_0x52bae5,_0x20d67c)=>(_0x2e40c9,_0x147180)=>_0x20d67c(_0x2e40c9,_0x147180,_0x52bae5),A=(_0x43e79c,_0x1c4332,_0x5d72c0)=>ne(_0x43e79c,typeof _0x1c4332!=_0x4cc6ca(0x1d4)?_0x1c4332+'':_0x1c4332,_0x5d72c0);const oe=_0x4cc6ca(0x239);exports[_0x4cc6ca(0x18a)]=class extends o[_0x4cc6ca(0x1db)]{constructor(_0x2e2b92=w,_0x32edd3,_0x1742a7){const _0x58a51c=_0x4cc6ca;super(),this['_config']=_0x2e2b92,this['_injector']=_0x32edd3,this[_0x58a51c(0x186)]=_0x1742a7;const {..._0x19bbbe}=o[_0x58a51c(0x1a2)]({},w,this['_config']);this[_0x58a51c(0x186)][_0x58a51c(0x175)](Q,_0x19bbbe);}['onStarting'](){const _0x69ab5d=_0x4cc6ca;o[_0x69ab5d(0x1a0)](this['_injector'],o[_0x69ab5d(0x190)]([[E],[exports[_0x69ab5d(0x17b)]],[m],[exports[_0x69ab5d(0x1d6)]]],this[_0x69ab5d(0x1a7)][_0x69ab5d(0x23f)])),o[_0x69ab5d(0x1d7)](this[_0x69ab5d(0x194)],[[m]]);}['onRendered'](){const _0x55b30a=_0x4cc6ca;o[_0x55b30a(0x1d7)](this['_injector'],[[exports[_0x55b30a(0x1d6)]]]);}},A(exports[_0x4cc6ca(0x18a)],'type',o[_0x4cc6ca(0x1e0)][_0x4cc6ca(0x206)]),A(exports[_0x4cc6ca(0x18a)],_0x4cc6ca(0x21f),oe),exports[_0x4cc6ca(0x18a)]=re([o[_0x4cc6ca(0x16d)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x4cc6ca(0x23d)](o[_0x4cc6ca(0x1d8)])),N(0x2,o[_0x4cc6ca(0x1e4)])],exports[_0x4cc6ca(0x18a)]),exports[_0x4cc6ca(0x1cf)]=$,exports[_0x4cc6ca(0x1d3)]=E,exports[_0x4cc6ca(0x187)]=u;
|
|
1
|
+
'use strict';const _0x46cccf=_0x4de5;(function(_0x1681db,_0x41b78e){const _0x2eb5f3=_0x4de5,_0x4b658b=_0x1681db();while(!![]){try{const _0x2fa4a7=-parseInt(_0x2eb5f3(0x154))/0x1*(parseInt(_0x2eb5f3(0x1ac))/0x2)+-parseInt(_0x2eb5f3(0x1b1))/0x3*(-parseInt(_0x2eb5f3(0x1cb))/0x4)+parseInt(_0x2eb5f3(0x18f))/0x5+parseInt(_0x2eb5f3(0x160))/0x6*(-parseInt(_0x2eb5f3(0x172))/0x7)+-parseInt(_0x2eb5f3(0x15e))/0x8*(-parseInt(_0x2eb5f3(0x126))/0x9)+parseInt(_0x2eb5f3(0x1cf))/0xa*(-parseInt(_0x2eb5f3(0x197))/0xb)+-parseInt(_0x2eb5f3(0x18c))/0xc*(-parseInt(_0x2eb5f3(0x125))/0xd);if(_0x2fa4a7===_0x41b78e)break;else _0x4b658b['push'](_0x4b658b['shift']());}catch(_0x3c7e1b){_0x4b658b['push'](_0x4b658b['shift']());}}}(_0x259c,0x5cb36));var T=Object[_0x46cccf(0x1b6)],U=(_0x8e40ce,_0x456470,_0x32382c)=>_0x456470 in _0x8e40ce?T(_0x8e40ce,_0x456470,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32382c}):_0x8e40ce[_0x456470]=_0x32382c,_=(_0xbb1fce,_0x573ad5,_0x45dc3c)=>U(_0xbb1fce,typeof _0x573ad5!=_0x46cccf(0x1bf)?_0x573ad5+'':_0x573ad5,_0x45dc3c);Object[_0x46cccf(0x1b6)](exports,Symbol[_0x46cccf(0x171)],{'value':_0x46cccf(0x1e3)});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:_0x54a9f5,..._0x5e2218}){const _0x2537cb=_0x46cccf,{icon:_0x1eb749,id:_0x30cd22,className:_0x457bcb,extend:_0xcf974e,..._0x24e4cb}=_0x5e2218,_0x470dd4=(_0x2537cb(0x174)+_0x30cd22+'\x20'+(_0x457bcb||''))[_0x2537cb(0x146)](),_0x4afc15=v[_0x2537cb(0x122)]('_'+H());return j(_0x1eb749,''+_0x30cd22,{'defIds':_0x1eb749['defIds'],'idSuffix':_0x4afc15[_0x2537cb(0x167)]},{'ref':_0x54a9f5,'className':_0x470dd4,..._0x24e4cb},_0xcf974e);}function j(_0x242da5,_0x57bf67,_0x38d9f1,_0x396ab2,_0x35d5f5){const _0x4d6f4a=_0x46cccf;return v[_0x4d6f4a(0x17b)](_0x242da5[_0x4d6f4a(0x1aa)],{'key':_0x57bf67,...y(_0x242da5,_0x38d9f1,_0x35d5f5),..._0x396ab2},(F(_0x242da5,_0x38d9f1)['children']||[])['map']((_0x34e580,_0x230775)=>j(_0x34e580,_0x57bf67+'-'+_0x242da5[_0x4d6f4a(0x1aa)]+'-'+_0x230775,_0x38d9f1,void 0x0,_0x35d5f5)));}function y(_0x2e626f,_0x28d09f,_0x253b46){const _0x3e4e36=_0x46cccf,_0x3aca9a={..._0x2e626f[_0x3e4e36(0x1bc)]};_0x253b46!=null&&_0x253b46[_0x3e4e36(0x13a)]&&_0x3aca9a[_0x3e4e36(0x19d)]==='colorChannel1'&&(_0x3aca9a['fill']=_0x253b46[_0x3e4e36(0x13a)]),_0x2e626f[_0x3e4e36(0x1aa)]===_0x3e4e36(0x1e8)&&_0x3aca9a['id']&&(_0x3aca9a['id']=_0x3aca9a['id']+_0x28d09f[_0x3e4e36(0x151)]),Object[_0x3e4e36(0x152)](_0x3aca9a)['forEach'](([_0xb7f9d8,_0x41603e])=>{const _0x479ff7=_0x3e4e36;_0xb7f9d8===_0x479ff7(0x1e8)&&typeof _0x41603e==_0x479ff7(0x14a)&&(_0x3aca9a[_0xb7f9d8]=_0x41603e['replace'](/url\(#(.*)\)/,_0x479ff7(0x11d)+_0x28d09f[_0x479ff7(0x151)]+')'));});const {defIds:_0x1b2764}=_0x28d09f;return!_0x1b2764||_0x1b2764['length']===0x0||(_0x2e626f['tag']===_0x3e4e36(0x16b)&&_0x3aca9a[_0x3e4e36(0x16d)]&&(_0x3aca9a[_0x3e4e36(0x16d)]=_0x3aca9a[_0x3e4e36(0x16d)]+_0x28d09f['idSuffix']),Object[_0x3e4e36(0x152)](_0x3aca9a)[_0x3e4e36(0x130)](([_0x5deba9,_0x15a696])=>{const _0x272de7=_0x3e4e36;typeof _0x15a696==_0x272de7(0x14a)&&(_0x3aca9a[_0x5deba9]=_0x15a696[_0x272de7(0x1cc)](/url\(#(.*)\)/,_0x272de7(0x11d)+_0x28d09f[_0x272de7(0x151)]+')'));})),_0x3aca9a;}function F(_0x3604f4,_0x4808b4){const _0x4f7d20=_0x46cccf;var _0x373c4b;const {defIds:_0x3ba0f0}=_0x4808b4;return!_0x3ba0f0||_0x3ba0f0[_0x4f7d20(0x1ab)]===0x0?_0x3604f4:_0x3604f4[_0x4f7d20(0x1aa)]==='defs'&&((_0x373c4b=_0x3604f4[_0x4f7d20(0x187)])!=null&&_0x373c4b[_0x4f7d20(0x1ab)])?{..._0x3604f4,'children':_0x3604f4[_0x4f7d20(0x187)][_0x4f7d20(0x1c5)](_0x31e9d8=>typeof _0x31e9d8[_0x4f7d20(0x1bc)]['id']=='string'&&_0x3ba0f0&&_0x3ba0f0[_0x4f7d20(0x164)](_0x31e9d8[_0x4f7d20(0x1bc)]['id'])?{..._0x31e9d8,'attrs':{..._0x31e9d8[_0x4f7d20(0x1bc)],'id':_0x31e9d8['attrs']['id']+_0x4808b4['idSuffix']}}:_0x31e9d8)}:_0x3604f4;}function H(){const _0x1805e3=_0x46cccf;return Math[_0x1805e3(0x1e1)]()[_0x1805e3(0x1d7)](0x24)[_0x1805e3(0x12d)](0x2,0x8);}x[_0x46cccf(0x1b7)]=_0x46cccf(0x189);function _0x259c(){const _0x324080=['substring','toDisposable','useState','forEach','RxDisposable','LIVESHARE_NEW_HOST','UniverLiveSharePlugin','getConfig','DisposableCollection','stopPresenting','_status','univer-mb-3\x20univer-w-full\x20univer-text-sm','LiveShareStatus','colorChannel1','presenting','currentColor','SetScrollOperation','OFFLINE','_config','UNIVER_SHEET','LiveShareCoordinator','sessionStatus$','getMemberID','registerDependencies','takeUntil','trim','SessionStatus','_collabSession','assign','string','live-share-icon','jsx','delete','from','_commandService','BehaviorSubject','idSuffix','entries','univer-size-4','3Qkjzpl','_entities','You\x27re\x20presenting\x20the\x20document','IUIPartsService','You\x27are\x20offline.','Subject','DesktopLiveShareController','_handleOnline','LiveShareIcon','SetZoomRatioOperation','8mgHCss','send','1503990BVPFnJ','IConfigService','_mountLiveShare','Injector','includes','_sharedOperations','getLiveShareCoordinator','current','stringify','following','FOLLOWING','use','_init','xlink:href','IUniverInstanceService','_beIdle','You\x27re\x20following\x20the\x20presenter','toStringTag','21TIDeIA','startFollowing','univerjs-icon\x20univerjs-icon-','Plugin','getInitialStates','registerComponent','DependentOn','getTypeOfUnitDisposed$','dispose','createElement','0\x200\x2017\x2017','NEW_CHANGESETS','mutations','params','_commandDisposable','getOwnPropertyDescriptor','SetWorksheetActiveOperation','_stopFollowing','LiveShare','_startLiveShareCoordinator','_uiPartsService','children','onCommandExecuted','UniverIcon','useEffect','CommandType','12rRKvLp','pipe','_reporters','3373300gcICcx','http://www.w3.org/2000/svg','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','useDependency','_configService','_unitID','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','PRESENTING','32714UVioUd','Start\x20following','idle','memberID','_startFollowing','throttleTime','fill','_fetchOperations','setConfig','forwardRef','disposeWithMe','add','LiveShareController','merge','NOT_FOLLOWING','_liveShareService','UniverInstanceType','mergeOverrideWithDependencies','parseProtocolChangeset','tag','length','148468hZfLLD','reverse','_startPresenting','_stopPresenting','_handleTerminate','360483FdBBSw','OPERATION','next','tryStartPresenting','get','defineProperty','displayName','find','pluginName','_collabSessionService','getValue','attrs','type','Dropdown','symbol','Button','dispose$','_status$','set','text','map','path','parse','jsxs','getUnitId','presenter','4jSNBnz','replace','live-share.config','UNIVER_UNKNOWN','1920NVkBPd','stopFollowing','not-following','Inject','Present\x20this\x20document','createInstance','registerInitialStateReporter','_handleOffline','toString','_presenter','onRendered','button','LIVESHARE_OPERATION','IDLE','getCurrentTypeOfUnit$','1em','_univerInstanceService','has','random','_handleNewChangeSets','Module','init','subscribe','executeCommand','CollaborationEvent','mask','touchDependencies','evenodd','_handleNewHost','ICommandService','shouldShareOperation','override','CollaborationSessionService','Fragment','LIVESHARE_TERMINATE','status$','url(#$1','Start','event$','Disposable','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','useRef','registerSharedOperation','operations','13365157TRXmZT','922473RNOYCr','clear','_injector','unitId','data','div','complete'];_0x259c=function(){return _0x324080;};return _0x259c();}const V={'tag':'svg','attrs':{'xmlns':_0x46cccf(0x190),'fill':'none','viewBox':_0x46cccf(0x17c),'width':_0x46cccf(0x1de),'height':_0x46cccf(0x1de)},'children':[{'tag':_0x46cccf(0x1c6),'attrs':{'fill':_0x46cccf(0x13c),'d':_0x46cccf(0x195)}},{'tag':_0x46cccf(0x1c6),'attrs':{'fill':_0x46cccf(0x13c),'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':_0x46cccf(0x1ea),'clipRule':'evenodd'}}]},R=v[_0x46cccf(0x1a0)](function(_0x289627,_0x24ef6f){const _0x27bba2=_0x46cccf;return v[_0x27bba2(0x17b)](x,Object[_0x27bba2(0x149)]({},_0x289627,{'id':_0x27bba2(0x14b),'ref':_0x24ef6f,'icon':V}));});R[_0x46cccf(0x1b7)]=_0x46cccf(0x15c);class E extends o[_0x46cccf(0x120)]{constructor(){const _0x4f9b86=_0x46cccf;super(...arguments),_(this,_0x4f9b86(0x165),new Set()),_(this,_0x4f9b86(0x18e),new Set());}[_0x46cccf(0x123)](_0x57e576){const _0x469dc5=_0x46cccf;return this[_0x469dc5(0x165)][_0x469dc5(0x1a2)](_0x57e576),o['toDisposable'](()=>this['_sharedOperations'][_0x469dc5(0x14d)](_0x57e576));}[_0x46cccf(0x1d5)](_0x407681){const _0x4b9087=_0x46cccf;return this[_0x4b9087(0x18e)]['add'](_0x407681),o['toDisposable'](()=>this[_0x4b9087(0x18e)][_0x4b9087(0x14d)](_0x407681));}[_0x46cccf(0x1ed)](_0x1e2668){const _0x315966=_0x46cccf;return this[_0x315966(0x165)][_0x315966(0x1e0)](_0x1e2668);}[_0x46cccf(0x176)](_0x46f11c){const _0x2656bb=_0x46cccf;return Array[_0x2656bb(0x14e)](this['_reporters'])['map'](_0x179833=>_0x179833(_0x46f11c));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x48f1e9,_0x34fa15,_0x1bf0f9,_0x587632)=>{const _0x2f166e=_0x46cccf;for(var _0x34fc9d=_0x587632>0x1?void 0x0:_0x587632?M(_0x34fa15,_0x1bf0f9):_0x34fa15,_0x49cb12=_0x48f1e9[_0x2f166e(0x1ab)]-0x1,_0x5ba111;_0x49cb12>=0x0;_0x49cb12--)(_0x5ba111=_0x48f1e9[_0x49cb12])&&(_0x34fc9d=_0x5ba111(_0x34fc9d)||_0x34fc9d);return _0x34fc9d;},S=(_0x159e0c,_0x54c2a6)=>(_0x3632e4,_0x189415)=>_0x54c2a6(_0x3632e4,_0x189415,_0x159e0c);exports[_0x46cccf(0x1a3)]=class extends o[_0x46cccf(0x131)]{constructor(_0x1691f9,_0xbd1c5b,_0x48b386){const _0x203347=_0x46cccf;super(),_(this,_0x203347(0x155),new Map()),(this[_0x203347(0x1df)]=_0x1691f9,this[_0x203347(0x128)]=_0xbd1c5b,this['_collabSessionService']=_0x48b386,this[_0x203347(0x16c)]());}async[_0x46cccf(0x166)](_0x4d0f21){const _0x114626=_0x46cccf;return this[_0x114626(0x155)][_0x114626(0x1e0)](_0x4d0f21)||await this[_0x114626(0x185)](_0x4d0f21),this[_0x114626(0x155)][_0x114626(0x1b5)](_0x4d0f21);}['getLiveShareCoordinatorSync'](_0x57b009){const _0x4aa657=_0x46cccf;var _0x166bf1;return(_0x166bf1=this[_0x4aa657(0x155)]['get'](_0x57b009))!=null?_0x166bf1:null;}[_0x46cccf(0x16c)](){const _0x1e8e65=_0x46cccf;this[_0x1e8e65(0x1df)]['getTypeOfUnitAdded$'](o[_0x1e8e65(0x1a7)][_0x1e8e65(0x140)])['pipe'](I['takeUntil'](this[_0x1e8e65(0x1c1)]))[_0x1e8e65(0x1e5)](async _0x6f4d9f=>{const _0xabc016=_0x1e8e65,_0x10ba9b=_0x6f4d9f[_0xabc016(0x1c9)]();this[_0xabc016(0x155)][_0xabc016(0x1e0)](_0x10ba9b)||this[_0xabc016(0x185)](_0x10ba9b);}),this[_0x1e8e65(0x1df)][_0x1e8e65(0x179)](o[_0x1e8e65(0x1a7)][_0x1e8e65(0x140)])['pipe'](I[_0x1e8e65(0x145)](this['dispose$']))[_0x1e8e65(0x1e5)](_0x362baa=>{const _0x3ecff4=_0x1e8e65,_0x7f12af=_0x362baa[_0x3ecff4(0x1c9)](),_0x2e4552=this[_0x3ecff4(0x155)]['get'](_0x7f12af);_0x2e4552==null||_0x2e4552[_0x3ecff4(0x17a)]();});}async[_0x46cccf(0x185)](_0x2d868){const _0x430a3d=_0x46cccf,_0x2aff17=await this[_0x430a3d(0x1ba)]['requireSession'](_0x2d868),_0xc65cb5=this[_0x430a3d(0x128)][_0x430a3d(0x1d4)](exports['LiveShareCoordinator'],_0x2d868,_0x2aff17);return _0xc65cb5[_0x430a3d(0x1e4)](),this[_0x430a3d(0x155)][_0x430a3d(0x1c3)](_0x2d868,_0xc65cb5),_0xc65cb5;}},exports[_0x46cccf(0x1a3)]=P([S(0x0,o[_0x46cccf(0x16e)]),S(0x1,o[_0x46cccf(0x1d2)](o['Injector'])),S(0x2,o['Inject'](b[_0x46cccf(0x1ef)]))],exports[_0x46cccf(0x1a3)]);var u=(_0x16b477=>(_0x16b477['OFFLINE']='offline',_0x16b477[_0x46cccf(0x1dc)]=_0x46cccf(0x199),_0x16b477['FOLLOWING']=_0x46cccf(0x169),_0x16b477[_0x46cccf(0x1a5)]=_0x46cccf(0x1d1),_0x16b477[_0x46cccf(0x196)]=_0x46cccf(0x13b),_0x16b477))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports[_0x46cccf(0x141)]=class extends o[_0x46cccf(0x131)]{constructor(_0xd46c61,_0x4d58e4,_0x596f6a,_0x11e70b,_0x29a4b9){const _0x34fccb=_0x46cccf;super(),_(this,_0x34fccb(0x1c2),new O[(_0x34fccb(0x150))](_0x34fccb(0x199))),_(this,_0x34fccb(0x11c),this[_0x34fccb(0x1c2)]['asObservable']()),_(this,'_init',!0x1),_(this,'_commandDisposable',null),_(this,_0x34fccb(0x1d8),null),(this[_0x34fccb(0x194)]=_0xd46c61,this['_collabSession']=_0x4d58e4,this[_0x34fccb(0x193)]=_0x596f6a,this[_0x34fccb(0x1a6)]=_0x11e70b,this[_0x34fccb(0x14f)]=_0x29a4b9);}get['_status'](){const _0x34ba50=_0x46cccf;return this[_0x34ba50(0x1c2)][_0x34ba50(0x1bb)]();}['dispose'](){const _0x580f83=_0x46cccf;var _0x58db7e;(_0x58db7e=this[_0x580f83(0x180)])==null||_0x58db7e[_0x580f83(0x17a)](),this[_0x580f83(0x1c2)][_0x580f83(0x1b3)](_0x580f83(0x199)),this[_0x580f83(0x1c2)]['complete']();}['getStatus'](){const _0xb69546=_0x46cccf;return this[_0xb69546(0x137)];}[_0x46cccf(0x1e4)](){const _0x485f7a=_0x46cccf;this[_0x485f7a(0x16c)]||(this[_0x485f7a(0x16c)]=!0x0,this[_0x485f7a(0x148)][_0x485f7a(0x142)][_0x485f7a(0x18d)](I[_0x485f7a(0x145)](this[_0x485f7a(0x1c1)]))[_0x485f7a(0x1e5)](_0x6fb077=>{const _0x4f034e=_0x485f7a;switch(_0x6fb077){case b[_0x4f034e(0x147)][_0x4f034e(0x13e)]:this[_0x4f034e(0x1d6)]();break;case b['SessionStatus']['ONLINE']:this[_0x4f034e(0x15b)]();break;}}),this[_0x485f7a(0x148)][_0x485f7a(0x11f)][_0x485f7a(0x18d)](I['takeUntil'](this[_0x485f7a(0x1c1)]))[_0x485f7a(0x1e5)](_0x11ad3b=>{const _0x5171ac=_0x485f7a,{eventID:_0x33c443}=_0x11ad3b;switch(_0x33c443){case d[_0x5171ac(0x1e7)][_0x5171ac(0x132)]:this['_handleNewHost'](_0x11ad3b);break;case d[_0x5171ac(0x1e7)][_0x5171ac(0x1db)]:this['_handleOperation'](_0x11ad3b);break;case d['CollaborationEvent'][_0x5171ac(0x11b)]:this[_0x5171ac(0x1b0)]();break;case d[_0x5171ac(0x1e7)][_0x5171ac(0x17d)]:this['_handleNewChangeSets'](_0x11ad3b);break;}}));}[_0x46cccf(0x1b4)](){const _0x55852a=_0x46cccf;this[_0x55852a(0x148)][_0x55852a(0x15f)]({'eventID':d[_0x55852a(0x1e7)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x55852a(0x194)],'userID':this['_collabSession'][_0x55852a(0x143)]()}},this[_0x55852a(0x194)]);}[_0x46cccf(0x136)](){const _0x274aab=_0x46cccf;this[_0x274aab(0x137)]==='presenting'&&(this['_status$'][_0x274aab(0x1b3)](_0x274aab(0x199)),this[_0x274aab(0x148)][_0x274aab(0x15f)]({'eventID':d[_0x274aab(0x1e7)][_0x274aab(0x11b)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x46cccf(0x173)](){const _0x2b60da=_0x46cccf;this['_status']===_0x2b60da(0x1d1)&&(this['_status$'][_0x2b60da(0x1b3)](_0x2b60da(0x169)),this[_0x2b60da(0x19b)]());}['stopFollowing'](){const _0x2e78fc=_0x46cccf;this['_status']===_0x2e78fc(0x169)&&this[_0x2e78fc(0x183)]();}[_0x46cccf(0x1eb)](_0xf47c9f){const _0x1fc920=_0x46cccf,{presenter:_0x3b0327}=_0xf47c9f['data'],_0x980f4e=this[_0x1fc920(0x148)][_0x1fc920(0x143)]();this['_presenter']=_0x3b0327,_0x3b0327===_0x980f4e?(this['_stopFollowing'](),this[_0x1fc920(0x1ae)]()):this[_0x1fc920(0x137)]!==_0x1fc920(0x1d1)&&(this[_0x1fc920(0x1af)](),this[_0x1fc920(0x19b)]());}[_0x46cccf(0x19e)](){const _0x409f14=_0x46cccf,_0x6314d6={'eventID':d[_0x409f14(0x1e7)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x409f14(0x148)][_0x409f14(0x15f)](_0x6314d6,this[_0x409f14(0x194)]);}[_0x46cccf(0x1b0)](){const _0x2fbcf7=_0x46cccf;this[_0x2fbcf7(0x1d8)]=null,this[_0x2fbcf7(0x137)]!==_0x2fbcf7(0x13b)&&this['_beIdle']();}[_0x46cccf(0x1e2)](_0x102e13){const _0x29a746=_0x46cccf;if(this['_status']===_0x29a746(0x169)&&this[_0x29a746(0x1d8)]===_0x102e13['data'][_0x29a746(0x19a)]){const _0x29d0d2=d[_0x29a746(0x1a9)](_0x102e13[_0x29a746(0x12a)])[_0x29a746(0x17e)][_0x29a746(0x1ad)]()[_0x29a746(0x1b8)](_0x1f19ff=>_0x1f19ff['id']===C['InsertSheetMutation']['id']);if(_0x29d0d2){const _0x24cf5f=_0x29d0d2[_0x29a746(0x17f)][_0x29a746(0x129)],_0x3024c7=_0x29d0d2[_0x29a746(0x17f)]['sheet']['id'];setTimeout(()=>{const _0x1446c5=_0x29a746;this[_0x1446c5(0x14f)][_0x1446c5(0x1e6)](C[_0x1446c5(0x182)]['id'],{'unitId':_0x24cf5f,'subUnitId':_0x3024c7},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x3afa53=_0x46cccf;this[_0x3afa53(0x1c2)]['next'](_0x3afa53(0x13b));const _0x5d9739=new Map(),_0xc75de3=this[_0x3afa53(0x180)]=new o[(_0x3afa53(0x135))]();_0xc75de3[_0x3afa53(0x1a2)](o[_0x3afa53(0x12e)](()=>{const _0x2837e8=_0x3afa53;_0x5d9739[_0x2837e8(0x130)](_0x20e240=>_0x20e240[_0x2837e8(0x12c)]()),_0x5d9739[_0x2837e8(0x127)]();})),_0xc75de3[_0x3afa53(0x1a2)](this[_0x3afa53(0x14f)][_0x3afa53(0x188)](_0x514ded=>{const _0x4ec839=_0x3afa53;var _0x2759ae;if(_0x514ded[_0x4ec839(0x1bd)]!==o[_0x4ec839(0x18b)][_0x4ec839(0x1b2)]||!this[_0x4ec839(0x1a6)][_0x4ec839(0x1ed)](_0x514ded['id']))return;const {id:_0x292157}=_0x514ded;let _0xd2e399;_0x5d9739[_0x4ec839(0x1e0)](_0x292157)?_0xd2e399=_0x5d9739[_0x4ec839(0x1b5)](_0x292157):(_0xd2e399=new O[(_0x4ec839(0x159))](),_0x5d9739[_0x4ec839(0x1c3)](_0x292157,_0xd2e399),_0xd2e399[_0x4ec839(0x18d)](I[_0x4ec839(0x19c)]((_0x2759ae=this[_0x4ec839(0x193)][_0x4ec839(0x134)](k))!=null?_0x2759ae:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4ec839(0x1e5)](_0x5d1cea=>{const _0x21128f=_0x4ec839;this[_0x21128f(0x148)][_0x21128f(0x15f)]({'eventID':d[_0x21128f(0x1e7)][_0x21128f(0x1db)],'data':{'unitID':this[_0x21128f(0x194)],'operations':{[_0x5d1cea['id']]:{'id':_0x5d1cea['id'],'params':JSON['stringify'](_0x5d1cea['params'])}}}},this[_0x21128f(0x194)]);})),_0xd2e399[_0x4ec839(0x1b3)](_0x514ded);})),this['_liveShareService'][_0x3afa53(0x176)](this[_0x3afa53(0x194)])['forEach'](_0x1cd216=>this['_collabSession'][_0x3afa53(0x15f)]({'eventID':d[_0x3afa53(0x1e7)][_0x3afa53(0x1db)],'data':{'unitID':this[_0x3afa53(0x194)],'operations':{[_0x1cd216['id']]:{'id':_0x1cd216['id'],'params':JSON[_0x3afa53(0x168)](_0x1cd216[_0x3afa53(0x17f)])}}}},this[_0x3afa53(0x194)]));}['_stopPresenting'](){const _0x50cfa9=_0x46cccf;var _0x59cb84;this[_0x50cfa9(0x1c2)][_0x50cfa9(0x1b3)](_0x50cfa9(0x199)),(_0x59cb84=this[_0x50cfa9(0x180)])==null||_0x59cb84[_0x50cfa9(0x17a)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x58fa71=_0x46cccf;var _0x2a9c80;(_0x2a9c80=this[_0x58fa71(0x180)])==null||_0x2a9c80[_0x58fa71(0x17a)](),this[_0x58fa71(0x1c2)][_0x58fa71(0x1b3)]('following');}[_0x46cccf(0x16f)](){const _0x2a7354=_0x46cccf;var _0x1ef0c9;this['_status$'][_0x2a7354(0x1b3)](_0x2a7354(0x199)),(_0x1ef0c9=this['_commandDisposable'])==null||_0x1ef0c9[_0x2a7354(0x17a)](),this[_0x2a7354(0x180)]=null;}[_0x46cccf(0x183)](){const _0x59bc51=_0x46cccf;var _0x4fe476;this['_status$'][_0x59bc51(0x1b3)](_0x59bc51(0x1d1)),(_0x4fe476=this[_0x59bc51(0x180)])==null||_0x4fe476[_0x59bc51(0x17a)]();}['_handleOperation'](_0x580858){const _0x4f8499=_0x46cccf;if([_0x4f8499(0x13b),_0x4f8499(0x1d1),'offline'][_0x4f8499(0x164)](this[_0x4f8499(0x137)])||!_0x580858[_0x4f8499(0x12a)][_0x4f8499(0x1ca)]||_0x580858[_0x4f8499(0x12a)][_0x4f8499(0x1ca)]===this[_0x4f8499(0x148)]['getMemberID']())return;this[_0x4f8499(0x137)]===_0x4f8499(0x199)&&this[_0x4f8499(0x19b)]();const _0x53a57a=_0x580858[_0x4f8499(0x12a)][_0x4f8499(0x124)];Object['values'](_0x53a57a)[_0x4f8499(0x130)](_0x275add=>{const _0x1fede3=_0x4f8499;this['_commandService'][_0x1fede3(0x1e6)](_0x275add['id'],_0x275add[_0x1fede3(0x17f)]?JSON[_0x1fede3(0x1c7)](_0x275add[_0x1fede3(0x17f)]):null,{'fromCollab':!0x0});});}[_0x46cccf(0x1d6)](){const _0x3d49d9=_0x46cccf;var _0x4b87e1;this[_0x3d49d9(0x1c2)]['next']('offline'),(_0x4b87e1=this['_commandDisposable'])==null||_0x4b87e1[_0x3d49d9(0x17a)]();}[_0x46cccf(0x15b)](){const _0x5dcb41=_0x46cccf;this[_0x5dcb41(0x1c2)]['next']('idle'),this[_0x5dcb41(0x19e)]();}},exports[_0x46cccf(0x141)]=P([S(0x2,o[_0x46cccf(0x161)]),S(0x3,o[_0x46cccf(0x1d2)](E)),S(0x4,o[_0x46cccf(0x1ec)])],exports['LiveShareCoordinator']);function $(){const _0x53bd63=_0x46cccf,_0x6f1fdb=p[_0x53bd63(0x192)](exports[_0x53bd63(0x1a3)]),_0x30258a=p['useDependency'](o['IUniverInstanceService']),_0x18d40a=p['useObservable'](()=>_0x30258a[_0x53bd63(0x1dd)](o[_0x53bd63(0x1a7)][_0x53bd63(0x140)]),void 0x0,!0x1,[]),[_0x5ca64e,_0x4e5798]=v[_0x53bd63(0x12f)](null),[_0x2d1bd3,_0x43a8a0]=v[_0x53bd63(0x12f)](u['IDLE']),_0x23aa66=v['useRef'](null);return v[_0x53bd63(0x18a)](()=>(_0x18d40a&&_0x6f1fdb['getLiveShareCoordinator'](_0x18d40a[_0x53bd63(0x1c9)]())['then'](_0x1c8a82=>{const _0x333f77=_0x53bd63;_0x4e5798(_0x1c8a82),_0x23aa66[_0x333f77(0x167)]=_0x1c8a82[_0x333f77(0x11c)]['subscribe'](_0x19cf6b=>{_0x43a8a0(_0x19cf6b);});}),()=>{const _0x393822=_0x53bd63;var _0x5a2fcb;(_0x5a2fcb=_0x23aa66[_0x393822(0x167)])==null||_0x5a2fcb['unsubscribe'](),_0x23aa66['current']=null;}),[_0x18d40a,_0x6f1fdb]),_0x5ca64e?l[_0x53bd63(0x14c)](f[_0x53bd63(0x1be)],{'align':'end','disabled':_0x2d1bd3===u[_0x53bd63(0x13e)],'className':_0x53bd63(0x191),'overlay':l['jsx'](W,{'status':_0x2d1bd3,'coordinator':_0x5ca64e}),'children':l['jsx']('button',{'className':f['clsx'](_0x53bd63(0x121),{'univer-cursor-not-allowed':_0x2d1bd3===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2d1bd3!==u['OFFLINE']}),'type':_0x53bd63(0x1da),'children':l[_0x53bd63(0x14c)](R,{'className':_0x53bd63(0x153)})})}):null;}function W(_0x313256){const _0x4f6f58=_0x46cccf,{status:_0x23c996,coordinator:_0x458411}=_0x313256;switch(_0x23c996){case u[_0x4f6f58(0x1dc)]:return l['jsx'](G,{'coordinator':_0x458411});case u[_0x4f6f58(0x16a)]:return l[_0x4f6f58(0x14c)](B,{'coordinator':_0x458411});case u[_0x4f6f58(0x1a5)]:return l['jsx'](Y,{'coordinator':_0x458411});case u[_0x4f6f58(0x13e)]:return l[_0x4f6f58(0x14c)](J,{});case u[_0x4f6f58(0x196)]:return l['jsx'](Z,{'coordinator':_0x458411});default:return null;}}function G(_0x32e079){const _0x26c51a=_0x46cccf,{coordinator:_0x4643d2}=_0x32e079;return l[_0x26c51a(0x1c8)](l[_0x26c51a(0x11a)],{'children':[l['jsx'](_0x26c51a(0x12b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x26c51a(0x1d3)}),l['jsx'](f[_0x26c51a(0x1c0)],{'onClick':()=>_0x4643d2[_0x26c51a(0x1b4)](),'children':_0x26c51a(0x11e)})]});}function B(_0x4325ea){const _0x289834=_0x46cccf,{coordinator:_0x457954}=_0x4325ea;return l['jsxs'](l[_0x289834(0x11a)],{'children':[l[_0x289834(0x14c)](_0x289834(0x12b),{'className':_0x289834(0x138),'children':_0x289834(0x170)}),l[_0x289834(0x14c)](f['Button'],{'onClick':()=>_0x457954[_0x289834(0x1d0)](),'children':'Stop\x20following'})]});}function Y(_0x5ddce8){const _0x576354=_0x46cccf,{coordinator:_0x25dbb6}=_0x5ddce8;return l[_0x576354(0x1c8)](l['Fragment'],{'children':[l[_0x576354(0x14c)]('div',{'className':_0x576354(0x138),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x576354(0x14c)](f[_0x576354(0x1c0)],{'variant':_0x576354(0x1c4),'onClick':()=>_0x25dbb6[_0x576354(0x173)](),'children':_0x576354(0x198)})]});}function Z(_0x56837d){const _0x290b14=_0x46cccf,{coordinator:_0x3ac36f}=_0x56837d;return l['jsxs'](l[_0x290b14(0x11a)],{'children':[l['jsx'](_0x290b14(0x12b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x290b14(0x156)}),l[_0x290b14(0x14c)](f[_0x290b14(0x1c0)],{'variant':'default','onClick':()=>_0x3ac36f[_0x290b14(0x136)](),'children':'Stop\x20presenting'})]});}function _0x4de5(_0x1d18bf,_0x53f6f8){const _0x259c50=_0x259c();return _0x4de5=function(_0x4de57f,_0xe4de5){_0x4de57f=_0x4de57f-0x11a;let _0x3de218=_0x259c50[_0x4de57f];return _0x3de218;},_0x4de5(_0x1d18bf,_0x53f6f8);}function J(){const _0xca54d3=_0x46cccf;return l[_0xca54d3(0x14c)](l['Fragment'],{'children':_0xca54d3(0x158)});}var K=Object[_0x46cccf(0x181)],z=(_0x33ee64,_0x338869,_0x26b7f2,_0x3bf703)=>{for(var _0x2f186e=_0x3bf703>0x1?void 0x0:_0x3bf703?K(_0x338869,_0x26b7f2):_0x338869,_0xd002bb=_0x33ee64['length']-0x1,_0x470ecf;_0xd002bb>=0x0;_0xd002bb--)(_0x470ecf=_0x33ee64[_0xd002bb])&&(_0x2f186e=_0x470ecf(_0x2f186e)||_0x2f186e);return _0x2f186e;},L=(_0x5088ce,_0x3b52a7)=>(_0x133854,_0x160573)=>_0x3b52a7(_0x133854,_0x160573,_0x5088ce);exports['DesktopLiveShareController']=class extends o['Disposable']{constructor(_0xe4411b,_0x16955a){const _0x41cea6=_0x46cccf;super(),this[_0x41cea6(0x128)]=_0xe4411b,this['_uiPartsService']=_0x16955a,this[_0x41cea6(0x162)]();}[_0x46cccf(0x162)](){const _0x4097c2=_0x46cccf;this[_0x4097c2(0x1a1)](this[_0x4097c2(0x186)][_0x4097c2(0x177)](p['BuiltInUIPart']['HEADER_MENU'],()=>p['connectInjector']($,this[_0x4097c2(0x128)])));}},exports[_0x46cccf(0x15a)]=z([L(0x0,o[_0x46cccf(0x1d2)](o['Injector'])),L(0x1,p[_0x46cccf(0x157)])],exports[_0x46cccf(0x15a)]);const Q=_0x46cccf(0x1cd),w={};var X=Object[_0x46cccf(0x181)],ee=(_0x44025f,_0x8ba14b,_0x2278c8,_0x52c9f6)=>{const _0x10bda7=_0x46cccf;for(var _0x4121cd=_0x52c9f6>0x1?void 0x0:_0x52c9f6?X(_0x8ba14b,_0x2278c8):_0x8ba14b,_0x28c5ca=_0x44025f[_0x10bda7(0x1ab)]-0x1,_0x4b2f55;_0x28c5ca>=0x0;_0x28c5ca--)(_0x4b2f55=_0x44025f[_0x28c5ca])&&(_0x4121cd=_0x4b2f55(_0x4121cd)||_0x4121cd);return _0x4121cd;},te=(_0x4ae520,_0x1f0a7f)=>(_0x2b75eb,_0x2d05fc)=>_0x1f0a7f(_0x2b75eb,_0x2d05fc,_0x4ae520);let m=class extends o[_0x46cccf(0x120)]{constructor(_0x30d12e){const _0xac16d5=_0x46cccf;super(),this['_liveShareService']=_0x30d12e,this[_0xac16d5(0x16c)]();}[_0x46cccf(0x16c)](){const _0x2c6694=_0x46cccf;[D[_0x2c6694(0x15d)]['id'],D[_0x2c6694(0x13d)]['id'],C[_0x2c6694(0x182)]['id']]['forEach'](_0x2369ef=>{const _0x3ba759=_0x2c6694;this[_0x3ba759(0x1a1)](this[_0x3ba759(0x1a6)][_0x3ba759(0x123)](_0x2369ef));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object[_0x46cccf(0x1b6)],se=Object[_0x46cccf(0x181)],ne=(_0x231378,_0x1bac39,_0x44d982)=>_0x1bac39 in _0x231378?ie(_0x231378,_0x1bac39,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x44d982}):_0x231378[_0x1bac39]=_0x44d982,re=(_0x3cdb1d,_0x21bd63,_0x4487c5,_0xfaf02e)=>{const _0x3827e8=_0x46cccf;for(var _0x1138f5=_0xfaf02e>0x1?void 0x0:_0xfaf02e?se(_0x21bd63,_0x4487c5):_0x21bd63,_0x5586a4=_0x3cdb1d[_0x3827e8(0x1ab)]-0x1,_0x24ce65;_0x5586a4>=0x0;_0x5586a4--)(_0x24ce65=_0x3cdb1d[_0x5586a4])&&(_0x1138f5=_0x24ce65(_0x1138f5)||_0x1138f5);return _0x1138f5;},N=(_0x22a54a,_0x3145d8)=>(_0x590ff5,_0x18aed7)=>_0x3145d8(_0x590ff5,_0x18aed7,_0x22a54a),A=(_0x1e2d92,_0x2ff71c,_0x2b090b)=>ne(_0x1e2d92,typeof _0x2ff71c!=_0x46cccf(0x1bf)?_0x2ff71c+'':_0x2ff71c,_0x2b090b);const oe='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x46cccf(0x133)]=class extends o[_0x46cccf(0x175)]{constructor(_0x4cec9b=w,_0x40e1bc,_0x1cc4a8){const _0x31bed6=_0x46cccf;super(),this['_config']=_0x4cec9b,this[_0x31bed6(0x128)]=_0x40e1bc,this[_0x31bed6(0x193)]=_0x1cc4a8;const {..._0xee43f3}=o[_0x31bed6(0x1a4)]({},w,this[_0x31bed6(0x13f)]);this['_configService'][_0x31bed6(0x19f)](Q,_0xee43f3);}['onStarting'](){const _0x4f5cb4=_0x46cccf;o[_0x4f5cb4(0x144)](this[_0x4f5cb4(0x128)],o[_0x4f5cb4(0x1a8)]([[E],[exports[_0x4f5cb4(0x1a3)]],[m],[exports['DesktopLiveShareController']]],this[_0x4f5cb4(0x13f)][_0x4f5cb4(0x1ee)])),o[_0x4f5cb4(0x1e9)](this[_0x4f5cb4(0x128)],[[m]]);}[_0x46cccf(0x1d9)](){const _0x2347ba=_0x46cccf;o[_0x2347ba(0x1e9)](this[_0x2347ba(0x128)],[[exports[_0x2347ba(0x15a)]]]);}},A(exports[_0x46cccf(0x133)],_0x46cccf(0x1bd),o[_0x46cccf(0x1a7)][_0x46cccf(0x1ce)]),A(exports[_0x46cccf(0x133)],_0x46cccf(0x1b9),oe),exports[_0x46cccf(0x133)]=re([o[_0x46cccf(0x178)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x46cccf(0x1d2)](o[_0x46cccf(0x163)])),N(0x2,o[_0x46cccf(0x161)])],exports[_0x46cccf(0x133)]),exports[_0x46cccf(0x184)]=$,exports['LiveShareService']=E,exports[_0x46cccf(0x139)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3d493c=_0x26b2;(function(_0x5a7eee,_0x5843f3){const _0x37bafa=_0x26b2,_0x47c072=_0x5a7eee();while(!![]){try{const _0x25a607=parseInt(_0x37bafa(0x10c))/0x1*(parseInt(_0x37bafa(0xff))/0x2)+-parseInt(_0x37bafa(0x110))/0x3+-parseInt(_0x37bafa(0xf4))/0x4*(-parseInt(_0x37bafa(0xfe))/0x5)+-parseInt(_0x37bafa(0x106))/0x6+parseInt(_0x37bafa(0x103))/0x7+-parseInt(_0x37bafa(0x101))/0x8*(-parseInt(_0x37bafa(0xfb))/0x9)+parseInt(_0x37bafa(0x107))/0xa;if(_0x25a607===_0x5843f3)break;else _0x47c072['push'](_0x47c072['shift']());}catch(_0x270fbb){_0x47c072['push'](_0x47c072['shift']());}}}(_0x1d68,0x1a865));import{LiveShareController as _0x30732c,LiveShareStatus as _0x27f431}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x1f62e4}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x2e2c02}from'@univerjs/sheets';import{SetScrollOperation as _0x23aa4c}from'@univerjs/sheets-ui';import{FRange as _0x31d273}from'@univerjs/sheets/facade';import{FUniver as _0x4e8923,FEnum as _0x595c1f}from'@univerjs/core/facade';class I extends _0x31d273{['_initialize'](_0x58d307,_0x4fd541,_0x1c8c42,_0x4a1bac,_0x4c2316){const _0x559afe=_0x26b2,_0x1707ed=_0x58d307[_0x559afe(0xfa)](_0x30732c),_0x4f039c=_0x58d307[_0x559afe(0xfa)](_0x1f62e4),_0x2d02b8=_0x4fd541[_0x559afe(0x111)](),_0x36af57=_0x4fd541[_0x559afe(0x100)](),_0x22e673=_0x1707ed['getLiveShareCoordinatorSync'](_0x2d02b8);(_0x22e673==null?void 0x0:_0x22e673[_0x559afe(0xf2)]())!==_0x27f431[_0x559afe(0xf8)]||(_0x1c8c42[_0x559afe(0x10b)]()!==_0x36af57[_0x559afe(0x10b)]()&&this['_commandService'][_0x559afe(0xfc)](_0x2e2c02['id'],{'unitId':_0x2d02b8,'subUnitId':_0x1c8c42[_0x559afe(0x10b)]()}),!_0x4f039c[_0x559afe(0xf6)](_0x2d02b8))||_0x4c2316[_0x559afe(0x10f)](_0x23aa4c['id'],{'unitId':_0x4fd541['getUnitId'](),'sheetId':_0x1c8c42[_0x559afe(0x10b)](),'sheetViewStartRow':_0x4a1bac['startRow'],'sheetViewStartColumn':_0x4a1bac[_0x559afe(0x105)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x31d273['extend'](I);function _0x1d68(){const _0x4fb5b0=['LiveShareStatusEnum','syncExecuteCommand','507087UuaXzO','getUnitId','startFollowing','getStatus','getActiveWorkbook','76548iHxlVJ','getLiveShareCoordinatorSync','getRenderById','tryStartPresenting','PRESENTING','IDLE','get','18zyCjVc','executeCommand','stopFollowing','40leUanr','122XWCHvG','getActiveSheet','125992LrrRHH','getLiveShareStatus','114821DSJqOj','extend','startColumn','641256wPPhby','1315200GaLRoV','No\x20active\x20workbook\x20found.','_injector','getId','getSheetId','853uAieWJ','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.'];_0x1d68=function(){return _0x4fb5b0;};return _0x1d68();}function _0x26b2(_0x4f2c9e,_0x203c7b){const _0x1d6898=_0x1d68();return _0x26b2=function(_0x26b2a3,_0x3b2a22){_0x26b2a3=_0x26b2a3-0xf2;let _0x37420a=_0x1d6898[_0x26b2a3];return _0x37420a;},_0x26b2(_0x4f2c9e,_0x203c7b);}class m extends _0x4e8923{[_0x3d493c(0x102)](){const _0x1f9362=_0x3d493c;var _0x22e510,_0x31a870;const _0x2a3775=this[_0x1f9362(0x109)][_0x1f9362(0xfa)](_0x30732c),_0x4f51ed=(_0x22e510=this['getActiveWorkbook']())==null?void 0x0:_0x22e510['getId']();if(!_0x4f51ed)throw new Error('No\x20active\x20workbook\x20found.');const _0x30bb73=_0x2a3775['getLiveShareCoordinatorSync'](_0x4f51ed);return(_0x31a870=_0x30bb73==null?void 0x0:_0x30bb73[_0x1f9362(0xf2)]())!=null?_0x31a870:_0x27f431[_0x1f9362(0xf9)];}[_0x3d493c(0x112)](){const _0x390306=_0x3d493c;var _0x141b0c;const _0xa6fd3=this['_injector'][_0x390306(0xfa)](_0x30732c),_0x56532d=(_0x141b0c=this[_0x390306(0xf3)]())==null?void 0x0:_0x141b0c[_0x390306(0x10a)]();if(!_0x56532d)throw new Error(_0x390306(0x108));const _0x4c18b6=_0xa6fd3['getLiveShareCoordinatorSync'](_0x56532d);if(!_0x4c18b6)throw new Error(_0x390306(0x10d));_0x4c18b6[_0x390306(0x112)]();}[_0x3d493c(0xfd)](){const _0x14ea82=_0x3d493c;var _0x4ad526;const _0x14d570=this[_0x14ea82(0x109)][_0x14ea82(0xfa)](_0x30732c),_0x5357f6=(_0x4ad526=this[_0x14ea82(0xf3)]())==null?void 0x0:_0x4ad526['getId']();if(!_0x5357f6)throw new Error('No\x20active\x20workbook\x20found.');const _0x2c54e6=_0x14d570[_0x14ea82(0xf5)](_0x5357f6);if(!_0x2c54e6)throw new Error(_0x14ea82(0x10d));_0x2c54e6[_0x14ea82(0xfd)]();}['startPresenting'](){const _0x4d090d=_0x3d493c;var _0x516f11;const _0x179eff=this['_injector'][_0x4d090d(0xfa)](_0x30732c),_0x5c6f50=(_0x516f11=this[_0x4d090d(0xf3)]())==null?void 0x0:_0x516f11[_0x4d090d(0x10a)]();if(!_0x5c6f50)throw new Error(_0x4d090d(0x108));const _0x4d1aab=_0x179eff[_0x4d090d(0xf5)](_0x5c6f50);if(!_0x4d1aab)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4d1aab[_0x4d090d(0xf7)]();}['stopPresenting'](){const _0x3d6ecd=_0x3d493c;var _0x5413e;const _0x59ae79=this['_injector'][_0x3d6ecd(0xfa)](_0x30732c),_0x4162=(_0x5413e=this[_0x3d6ecd(0xf3)]())==null?void 0x0:_0x5413e[_0x3d6ecd(0x10a)]();if(!_0x4162)throw new Error(_0x3d6ecd(0x108));const _0x3638e2=_0x59ae79[_0x3d6ecd(0xf5)](_0x4162);if(!_0x3638e2)throw new Error(_0x3d6ecd(0x10d));_0x3638e2['stopPresenting']();}}_0x4e8923['extend'](m);class C extends _0x595c1f{get[_0x3d493c(0x10e)](){return _0x27f431;}}_0x595c1f[_0x3d493c(0x104)](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x11b6eb=_0x54c5;(function(_0x418aa4,_0x46e2f9){const _0x3f6b1c=_0x54c5,_0x4edc84=_0x418aa4();while(!![]){try{const _0xeaee8d=parseInt(_0x3f6b1c(0x1d0))/0x1*(-parseInt(_0x3f6b1c(0x257))/0x2)+-parseInt(_0x3f6b1c(0x273))/0x3*(parseInt(_0x3f6b1c(0x207))/0x4)+parseInt(_0x3f6b1c(0x1d7))/0x5+parseInt(_0x3f6b1c(0x1ff))/0x6+parseInt(_0x3f6b1c(0x1fc))/0x7*(-parseInt(_0x3f6b1c(0x208))/0x8)+parseInt(_0x3f6b1c(0x21b))/0x9+parseInt(_0x3f6b1c(0x216))/0xa;if(_0xeaee8d===_0x46e2f9)break;else _0x4edc84['push'](_0x4edc84['shift']());}catch(_0x5ac5b5){_0x4edc84['push'](_0x4edc84['shift']());}}}(_0x1e4f,0x35a99));var J=Object[_0x11b6eb(0x262)],K=(_0x288cae,_0xf92ce1,_0x372a6b)=>_0xf92ce1 in _0x288cae?J(_0x288cae,_0xf92ce1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x372a6b}):_0x288cae[_0xf92ce1]=_0x372a6b,u=(_0x3f82ad,_0x1ae34f,_0x4aa1a0)=>K(_0x3f82ad,typeof _0x1ae34f!=_0x11b6eb(0x260)?_0x1ae34f+'':_0x1ae34f,_0x4aa1a0);import{Disposable as _0x1488b8,toDisposable as _0xc8298e,IUniverInstanceService as _0x41e0ae,Inject as _0x34997e,Injector as _0x172459,IConfigService as _0x586d2f,ICommandService as _0x43fef4,RxDisposable as _0x2a59c6,UniverInstanceType as _0x30dc91,DisposableCollection as _0x537ad0,CommandType as _0xf4e9d3,DependentOn as _0x1db9f3,Plugin as _0x4e2557,merge as _0x6531d9,registerDependencies as _0x5507b0,mergeOverrideWithDependencies as _0x350506,touchDependencies as _0x6327c4}from'@univerjs/core';import{useDependency as _0x138bea,useObservable as _0x5a2037,IUIPartsService as _0x274200,BuiltInUIPart as _0xe162dd,connectInjector as _0x437101}from'@univerjs/ui';import{jsx as _0x4d2be6,jsxs as _0x57c5c7,Fragment as _0xa0c774}from'react/jsx-runtime';import{Dropdown as _0xef8b71,clsx as _0x1b48c8,Button as _0x23cb3d}from'@univerjs/design';import{useRef as _0x2f0507,createElement as _0x4693a1,forwardRef as _0x2916ff,useState as _0x2af4b9,useEffect as _0x22d44a}from'react';import{CollaborationEvent as _0x22cfb1,parseProtocolChangeset as _0xcb2e04}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3926f7,SessionStatus as _0x442896,UniverCollaborationClientPlugin as _0x12ac27}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x49fa8f,SetWorksheetActiveOperation as _0x4b8267}from'@univerjs/sheets';import{BehaviorSubject as _0xdd1c4e,Subject as _0x1059fe}from'rxjs';import{takeUntil as _0x2d117c,throttleTime as _0x274690}from'rxjs/operators';import{SetZoomRatioOperation as _0x3a77e6,SetScrollOperation as _0x5e3f90}from'@univerjs/sheets-ui';function k({ref:_0x15ba60,..._0xcd5b24}){const _0x3f8236=_0x11b6eb,{icon:_0x39986c,id:_0x5337b6,className:_0x55ed26,extend:_0x229d37,..._0x593f1f}=_0xcd5b24,_0x11ffa4=(_0x3f8236(0x1d9)+_0x5337b6+'\x20'+(_0x55ed26||''))['trim'](),_0x3aed19=_0x2f0507('_'+Oe());return G(_0x39986c,''+_0x5337b6,{'defIds':_0x39986c['defIds'],'idSuffix':_0x3aed19[_0x3f8236(0x26f)]},{'ref':_0x15ba60,'className':_0x11ffa4,..._0x593f1f},_0x229d37);}function G(_0x136669,_0x5bc0d8,_0x286476,_0x41ac78,_0x844976){const _0x10e63f=_0x11b6eb;return _0x4693a1(_0x136669[_0x10e63f(0x23e)],{'key':_0x5bc0d8,...be(_0x136669,_0x286476,_0x844976),..._0x41ac78},(Ee(_0x136669,_0x286476)[_0x10e63f(0x22d)]||[])['map']((_0x293970,_0x151a35)=>G(_0x293970,_0x5bc0d8+'-'+_0x136669[_0x10e63f(0x23e)]+'-'+_0x151a35,_0x286476,void 0x0,_0x844976)));}function be(_0x536bd9,_0x128553,_0x2c7863){const _0x936f9=_0x11b6eb,_0x44b459={..._0x536bd9[_0x936f9(0x271)]};_0x2c7863!=null&&_0x2c7863[_0x936f9(0x211)]&&_0x44b459[_0x936f9(0x225)]===_0x936f9(0x211)&&(_0x44b459[_0x936f9(0x225)]=_0x2c7863['colorChannel1']),_0x536bd9['tag']==='mask'&&_0x44b459['id']&&(_0x44b459['id']=_0x44b459['id']+_0x128553['idSuffix']),Object[_0x936f9(0x227)](_0x44b459)['forEach'](([_0x47cdc9,_0x428db4])=>{const _0x32ac60=_0x936f9;_0x47cdc9==='mask'&&typeof _0x428db4=='string'&&(_0x44b459[_0x47cdc9]=_0x428db4[_0x32ac60(0x248)](/url\(#(.*)\)/,_0x32ac60(0x21d)+_0x128553[_0x32ac60(0x23c)]+')'));});const {defIds:_0x3c88cf}=_0x128553;return!_0x3c88cf||_0x3c88cf[_0x936f9(0x209)]===0x0||(_0x536bd9['tag']===_0x936f9(0x1f2)&&_0x44b459[_0x936f9(0x1ed)]&&(_0x44b459[_0x936f9(0x1ed)]=_0x44b459[_0x936f9(0x1ed)]+_0x128553[_0x936f9(0x23c)]),Object['entries'](_0x44b459)[_0x936f9(0x25e)](([_0x3826a4,_0x5e48a3])=>{const _0x158286=_0x936f9;typeof _0x5e48a3==_0x158286(0x20c)&&(_0x44b459[_0x3826a4]=_0x5e48a3[_0x158286(0x248)](/url\(#(.*)\)/,_0x158286(0x21d)+_0x128553[_0x158286(0x23c)]+')'));})),_0x44b459;}function Ee(_0x4b2588,_0x5c2cdf){const _0xd16ff0=_0x11b6eb;var _0xf4889a;const {defIds:_0x279f00}=_0x5c2cdf;return!_0x279f00||_0x279f00[_0xd16ff0(0x209)]===0x0?_0x4b2588:_0x4b2588[_0xd16ff0(0x23e)]===_0xd16ff0(0x1e4)&&((_0xf4889a=_0x4b2588[_0xd16ff0(0x22d)])!=null&&_0xf4889a[_0xd16ff0(0x209)])?{..._0x4b2588,'children':_0x4b2588[_0xd16ff0(0x22d)][_0xd16ff0(0x1d5)](_0x392b65=>typeof _0x392b65[_0xd16ff0(0x271)]['id']==_0xd16ff0(0x20c)&&_0x279f00&&_0x279f00['includes'](_0x392b65['attrs']['id'])?{..._0x392b65,'attrs':{..._0x392b65[_0xd16ff0(0x271)],'id':_0x392b65['attrs']['id']+_0x5c2cdf[_0xd16ff0(0x23c)]}}:_0x392b65)}:_0x4b2588;}function Oe(){const _0x15f411=_0x11b6eb;return Math['random']()[_0x15f411(0x251)](0x24)[_0x15f411(0x246)](0x2,0x8);}k[_0x11b6eb(0x21e)]=_0x11b6eb(0x1eb);const we={'tag':_0x11b6eb(0x252),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x11b6eb(0x1cd),'viewBox':_0x11b6eb(0x1ee),'width':_0x11b6eb(0x1ec),'height':_0x11b6eb(0x1ec)},'children':[{'tag':_0x11b6eb(0x272),'attrs':{'fill':_0x11b6eb(0x244),'d':_0x11b6eb(0x25b)}},{'tag':'path','attrs':{'fill':_0x11b6eb(0x244),'d':_0x11b6eb(0x223),'fillRule':'evenodd','clipRule':_0x11b6eb(0x1e5)}}]},W=_0x2916ff(function(_0x31f0eb,_0x114be7){const _0x6b71c6=_0x11b6eb;return _0x4693a1(k,Object[_0x6b71c6(0x275)]({},_0x31f0eb,{'id':_0x6b71c6(0x203),'ref':_0x114be7,'icon':we}));});W[_0x11b6eb(0x21e)]=_0x11b6eb(0x210);class L extends _0x1488b8{constructor(){const _0x187bea=_0x11b6eb;super(...arguments),u(this,_0x187bea(0x23d),new Set()),u(this,_0x187bea(0x229),new Set());}[_0x11b6eb(0x23f)](_0x158060){const _0x37a3b6=_0x11b6eb;return this['_sharedOperations'][_0x37a3b6(0x24c)](_0x158060),_0xc8298e(()=>this['_sharedOperations'][_0x37a3b6(0x218)](_0x158060));}[_0x11b6eb(0x240)](_0x40f42f){const _0x21980b=_0x11b6eb;return this['_reporters'][_0x21980b(0x24c)](_0x40f42f),_0xc8298e(()=>this[_0x21980b(0x229)][_0x21980b(0x218)](_0x40f42f));}['shouldShareOperation'](_0x52b18f){const _0x5a10ce=_0x11b6eb;return this['_sharedOperations'][_0x5a10ce(0x1d6)](_0x52b18f);}[_0x11b6eb(0x245)](_0xf39133){const _0x5f47e4=_0x11b6eb;return Array['from'](this[_0x5f47e4(0x229)])['map'](_0x4f7263=>_0x4f7263(_0xf39133));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0x1d211f,_0x53137e,_0x55eb84,_0xa88252)=>{for(var _0x2fca2e=_0xa88252>0x1?void 0x0:_0xa88252?Ne(_0x53137e,_0x55eb84):_0x53137e,_0x189193=_0x1d211f['length']-0x1,_0x4c40b9;_0x189193>=0x0;_0x189193--)(_0x4c40b9=_0x1d211f[_0x189193])&&(_0x2fca2e=_0x4c40b9(_0x2fca2e)||_0x2fca2e);return _0x2fca2e;},_=(_0x15797f,_0x272207)=>(_0x3350f6,_0x91ac93)=>_0x272207(_0x3350f6,_0x91ac93,_0x15797f);let S=class extends _0x2a59c6{constructor(_0x5e6954,_0x255fd4,_0x5aa4ac){const _0x5bd724=_0x11b6eb;super(),u(this,_0x5bd724(0x242),new Map()),(this['_univerInstanceService']=_0x5e6954,this[_0x5bd724(0x26b)]=_0x255fd4,this[_0x5bd724(0x1f8)]=_0x5aa4ac,this['_init']());}async[_0x11b6eb(0x205)](_0x53bb06){const _0x36ee54=_0x11b6eb;return this['_entities'][_0x36ee54(0x1d6)](_0x53bb06)||await this['_startLiveShareCoordinator'](_0x53bb06),this[_0x36ee54(0x242)]['get'](_0x53bb06);}[_0x11b6eb(0x267)](_0x1759c4){const _0x2b7a3b=_0x11b6eb;var _0x2a7b48;return(_0x2a7b48=this['_entities'][_0x2b7a3b(0x270)](_0x1759c4))!=null?_0x2a7b48:null;}[_0x11b6eb(0x1dc)](){const _0x29d409=_0x11b6eb;this[_0x29d409(0x206)]['getTypeOfUnitAdded$'](_0x30dc91['UNIVER_SHEET'])['pipe'](_0x2d117c(this[_0x29d409(0x1f4)]))['subscribe'](async _0x1b26aa=>{const _0x520262=_0x29d409,_0xd0e9af=_0x1b26aa[_0x520262(0x1f9)]();this[_0x520262(0x242)][_0x520262(0x1d6)](_0xd0e9af)||this['_startLiveShareCoordinator'](_0xd0e9af);}),this[_0x29d409(0x206)][_0x29d409(0x231)](_0x30dc91[_0x29d409(0x24f)])['pipe'](_0x2d117c(this[_0x29d409(0x1f4)]))[_0x29d409(0x204)](_0x57738d=>{const _0x1a8037=_0x29d409,_0x4f3d71=_0x57738d['getUnitId'](),_0x50d797=this['_entities'][_0x1a8037(0x270)](_0x4f3d71);_0x50d797==null||_0x50d797['dispose']();});}async[_0x11b6eb(0x21c)](_0x12bd1e){const _0x27fe9c=_0x11b6eb,_0x5b541b=await this[_0x27fe9c(0x1f8)][_0x27fe9c(0x1e1)](_0x12bd1e),_0x28e7a5=this[_0x27fe9c(0x26b)][_0x27fe9c(0x202)](N,_0x12bd1e,_0x5b541b);return _0x28e7a5[_0x27fe9c(0x1dd)](),this[_0x27fe9c(0x242)][_0x27fe9c(0x26e)](_0x12bd1e,_0x28e7a5),_0x28e7a5;}};S=Y([_(0x0,_0x41e0ae),_(0x1,_0x34997e(_0x172459)),_(0x2,_0x34997e(_0x3926f7))],S);var c=(_0x26ecd0=>(_0x26ecd0[_0x11b6eb(0x247)]=_0x11b6eb(0x263),_0x26ecd0[_0x11b6eb(0x21f)]=_0x11b6eb(0x261),_0x26ecd0['FOLLOWING']=_0x11b6eb(0x228),_0x26ecd0[_0x11b6eb(0x237)]='not-following',_0x26ecd0[_0x11b6eb(0x26d)]=_0x11b6eb(0x1cf),_0x26ecd0))(c||{});function _0x1e4f(){const _0x14a054=['_config','asObservable','7336910zpOGuR','NEW_CHANGESETS','delete','_fetchOperations','LIVESHARE_OPERATION','559638FPbKuN','_startLiveShareCoordinator','url(#$1','displayName','IDLE','Stop\x20following','_collabSession','find','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','_handleTerminate','fill','then','entries','following','_reporters','pipe','_beIdle','dispose','children','event$','params','_mountLiveShare','getTypeOfUnitDisposed$','_status$','unitId','div','disposeWithMe','getMemberID','NOT_FOLLOWING','_stopFollowing','operations','_unitID','type','idSuffix','_sharedOperations','tag','registerSharedOperation','registerInitialStateReporter','data','_entities','live-share.config','currentColor','getInitialStates','substring','OFFLINE','replace','complete','You\x27are\x20offline.','stopFollowing','add','_stopPresenting','LIVESHARE_NEW_HOST','UNIVER_SHEET','_startPresenting','toString','svg','univer-size-4','_presenter','You\x27re\x20not\x20following\x20the\x20presenter','includes','32698UFThGU','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_REQUEST_HOST','_startFollowing','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','pluginName','presenter','forEach','Start','symbol','idle','defineProperty','offline','stopPresenting','end','getStatus','getLiveShareCoordinatorSync','startFollowing','sessionStatus$','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','_injector','onCommandExecuted','PRESENTING','set','current','get','attrs','path','178371BQyFUy','stringify','assign','memberID','ONLINE','clear','registerComponent','none','_configService','presenting','25hUFxgX','button','getOwnPropertyDescriptor','getConfig','SAME_OPERATION_SHARE_INTERVAL','map','has','258075yynvPG','_uiPartsService','univerjs-icon\x20univerjs-icon-','not-following','parse','_init','init','_status','LIVESHARE_FETCH_OPERATIONS','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','requireSession','executeCommand','_handleNewChangeSets','defs','evenodd','unsubscribe','_commandService','sheet','FOLLOWING','reverse','UniverIcon','1em','xlink:href','0\x200\x2017\x2017','_commandDisposable','onStarting','_liveShareService','use','default','dispose$','_handleOperation','send','tryStartPresenting','_collabSessionService','getUnitId','getCurrentTypeOfUnit$','univer-mb-3\x20univer-w-full\x20univer-text-sm','14GSxefv','status$','_handleNewHost','2267178CdIcsq','mutations','next','createInstance','live-share-icon','subscribe','getLiveShareCoordinator','_univerInstanceService','12jlXabr','1673816TcqAcD','length','UNIVER_UNKNOWN','Present\x20this\x20document','string','Stop\x20presenting','OPERATION','override','LiveShareIcon','colorChannel1','shouldShareOperation','LIVESHARE_TERMINATE'];_0x1e4f=function(){return _0x14a054;};return _0x1e4f();}const Ce=_0x11b6eb(0x1d4),De=0xc8;let N=class extends _0x2a59c6{constructor(_0x3df8e1,_0x5c69c2,_0x3a4a59,_0x4ff255,_0x4f8c0a){const _0x4a1d13=_0x11b6eb;super(),u(this,_0x4a1d13(0x232),new _0xdd1c4e(_0x4a1d13(0x261))),u(this,_0x4a1d13(0x1fd),this['_status$'][_0x4a1d13(0x215)]()),u(this,_0x4a1d13(0x1dc),!0x1),u(this,'_commandDisposable',null),u(this,_0x4a1d13(0x254),null),(this[_0x4a1d13(0x23a)]=_0x3df8e1,this[_0x4a1d13(0x221)]=_0x5c69c2,this[_0x4a1d13(0x1ce)]=_0x3a4a59,this[_0x4a1d13(0x1f1)]=_0x4ff255,this[_0x4a1d13(0x1e7)]=_0x4f8c0a);}get[_0x11b6eb(0x1de)](){const _0x29ad33=_0x11b6eb;return this[_0x29ad33(0x232)]['getValue']();}['dispose'](){const _0x35ddfc=_0x11b6eb;var _0x16a093;(_0x16a093=this[_0x35ddfc(0x1ef)])==null||_0x16a093[_0x35ddfc(0x22c)](),this[_0x35ddfc(0x232)][_0x35ddfc(0x201)](_0x35ddfc(0x261)),this[_0x35ddfc(0x232)][_0x35ddfc(0x249)]();}[_0x11b6eb(0x266)](){const _0x44c87d=_0x11b6eb;return this[_0x44c87d(0x1de)];}[_0x11b6eb(0x1dd)](){const _0x368a34=_0x11b6eb;this['_init']||(this[_0x368a34(0x1dc)]=!0x0,this[_0x368a34(0x221)][_0x368a34(0x269)][_0x368a34(0x22a)](_0x2d117c(this[_0x368a34(0x1f4)]))[_0x368a34(0x204)](_0x4b1b8a=>{const _0xaff4f6=_0x368a34;switch(_0x4b1b8a){case _0x442896['OFFLINE']:this['_handleOffline']();break;case _0x442896[_0xaff4f6(0x1ca)]:this['_handleOnline']();break;}}),this[_0x368a34(0x221)][_0x368a34(0x22e)][_0x368a34(0x22a)](_0x2d117c(this['dispose$']))['subscribe'](_0x39d3c4=>{const _0x4ae8a7=_0x368a34,{eventID:_0x5ab451}=_0x39d3c4;switch(_0x5ab451){case _0x22cfb1[_0x4ae8a7(0x24e)]:this['_handleNewHost'](_0x39d3c4);break;case _0x22cfb1[_0x4ae8a7(0x21a)]:this['_handleOperation'](_0x39d3c4);break;case _0x22cfb1[_0x4ae8a7(0x213)]:this[_0x4ae8a7(0x224)]();break;case _0x22cfb1[_0x4ae8a7(0x217)]:this['_handleNewChangeSets'](_0x39d3c4);break;}}));}[_0x11b6eb(0x1f7)](){const _0x490fab=_0x11b6eb;this['_collabSession'][_0x490fab(0x1f6)]({'eventID':_0x22cfb1[_0x490fab(0x259)],'data':{'unitID':this['_unitID'],'userID':this[_0x490fab(0x221)]['getMemberID']()}},this[_0x490fab(0x23a)]);}[_0x11b6eb(0x264)](){const _0x4c0ff6=_0x11b6eb;this[_0x4c0ff6(0x1de)]===_0x4c0ff6(0x1cf)&&(this['_status$'][_0x4c0ff6(0x201)](_0x4c0ff6(0x261)),this[_0x4c0ff6(0x221)][_0x4c0ff6(0x1f6)]({'eventID':_0x22cfb1[_0x4c0ff6(0x213)],'data':{'unitID':this[_0x4c0ff6(0x23a)]}},this['_unitID']));}['startFollowing'](){const _0x904f6e=_0x11b6eb;this[_0x904f6e(0x1de)]===_0x904f6e(0x1da)&&(this[_0x904f6e(0x232)][_0x904f6e(0x201)](_0x904f6e(0x228)),this[_0x904f6e(0x25a)]());}[_0x11b6eb(0x24b)](){const _0x545b6a=_0x11b6eb;this[_0x545b6a(0x1de)]===_0x545b6a(0x228)&&this[_0x545b6a(0x238)]();}[_0x11b6eb(0x1fe)](_0x45d7b4){const _0x1c77e5=_0x11b6eb,{presenter:_0x4ea448}=_0x45d7b4[_0x1c77e5(0x241)],_0x5a4c1f=this[_0x1c77e5(0x221)][_0x1c77e5(0x236)]();this[_0x1c77e5(0x254)]=_0x4ea448,_0x4ea448===_0x5a4c1f?(this[_0x1c77e5(0x238)](),this[_0x1c77e5(0x250)]()):this['_status']!=='not-following'&&(this[_0x1c77e5(0x24d)](),this[_0x1c77e5(0x25a)]());}[_0x11b6eb(0x219)](){const _0x210f4e=_0x11b6eb,_0x5767d9={'eventID':_0x22cfb1[_0x210f4e(0x1df)]};this[_0x210f4e(0x221)][_0x210f4e(0x1f6)](_0x5767d9,this[_0x210f4e(0x23a)]);}[_0x11b6eb(0x224)](){const _0x591fec=_0x11b6eb;this[_0x591fec(0x254)]=null,this[_0x591fec(0x1de)]!=='presenting'&&this[_0x591fec(0x22b)]();}[_0x11b6eb(0x1e3)](_0x5e91b9){const _0x1b1542=_0x11b6eb;if(this[_0x1b1542(0x1de)]===_0x1b1542(0x228)&&this[_0x1b1542(0x254)]===_0x5e91b9[_0x1b1542(0x241)][_0x1b1542(0x276)]){const _0x3aa936=_0xcb2e04(_0x5e91b9[_0x1b1542(0x241)])[_0x1b1542(0x200)][_0x1b1542(0x1ea)]()[_0x1b1542(0x222)](_0xa478ed=>_0xa478ed['id']===_0x49fa8f['id']);if(_0x3aa936){const _0x56986b=_0x3aa936['params'][_0x1b1542(0x233)],_0x29bf7e=_0x3aa936[_0x1b1542(0x22f)][_0x1b1542(0x1e8)]['id'];setTimeout(()=>{const _0x28acb3=_0x1b1542;this[_0x28acb3(0x1e7)][_0x28acb3(0x1e2)](_0x4b8267['id'],{'unitId':_0x56986b,'subUnitId':_0x29bf7e},{'fromCollab':!0x0});});}}}[_0x11b6eb(0x250)](){const _0x14bb61=_0x11b6eb;this[_0x14bb61(0x232)]['next']('presenting');const _0x5bfa21=new Map(),_0x401fa4=this['_commandDisposable']=new _0x537ad0();_0x401fa4['add'](_0xc8298e(()=>{const _0x4a5654=_0x14bb61;_0x5bfa21[_0x4a5654(0x25e)](_0x55197b=>_0x55197b[_0x4a5654(0x249)]()),_0x5bfa21[_0x4a5654(0x1cb)]();})),_0x401fa4['add'](this[_0x14bb61(0x1e7)][_0x14bb61(0x26c)](_0x49858e=>{const _0x4e8731=_0x14bb61;var _0x2d2887;if(_0x49858e['type']!==_0xf4e9d3[_0x4e8731(0x20e)]||!this['_liveShareService'][_0x4e8731(0x212)](_0x49858e['id']))return;const {id:_0x58ef73}=_0x49858e;let _0x6261e;_0x5bfa21[_0x4e8731(0x1d6)](_0x58ef73)?_0x6261e=_0x5bfa21['get'](_0x58ef73):(_0x6261e=new _0x1059fe(),_0x5bfa21[_0x4e8731(0x26e)](_0x58ef73,_0x6261e),_0x6261e[_0x4e8731(0x22a)](_0x274690((_0x2d2887=this['_configService'][_0x4e8731(0x1d3)](Ce))!=null?_0x2d2887:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4e8731(0x204)](_0x3ac1cf=>{const _0x5c8042=_0x4e8731;this[_0x5c8042(0x221)]['send']({'eventID':_0x22cfb1[_0x5c8042(0x21a)],'data':{'unitID':this[_0x5c8042(0x23a)],'operations':{[_0x3ac1cf['id']]:{'id':_0x3ac1cf['id'],'params':JSON['stringify'](_0x3ac1cf[_0x5c8042(0x22f)])}}}},this[_0x5c8042(0x23a)]);})),_0x6261e['next'](_0x49858e);})),this['_liveShareService']['getInitialStates'](this['_unitID'])['forEach'](_0x25bc6e=>this[_0x14bb61(0x221)][_0x14bb61(0x1f6)]({'eventID':_0x22cfb1[_0x14bb61(0x21a)],'data':{'unitID':this[_0x14bb61(0x23a)],'operations':{[_0x25bc6e['id']]:{'id':_0x25bc6e['id'],'params':JSON[_0x14bb61(0x274)](_0x25bc6e[_0x14bb61(0x22f)])}}}},this[_0x14bb61(0x23a)]));}[_0x11b6eb(0x24d)](){const _0x12a207=_0x11b6eb;var _0x1e822e;this[_0x12a207(0x232)][_0x12a207(0x201)](_0x12a207(0x261)),(_0x1e822e=this[_0x12a207(0x1ef)])==null||_0x1e822e[_0x12a207(0x22c)](),this['_commandDisposable']=null;}[_0x11b6eb(0x25a)](){const _0x3de75b=_0x11b6eb;var _0x440789;(_0x440789=this[_0x3de75b(0x1ef)])==null||_0x440789[_0x3de75b(0x22c)](),this[_0x3de75b(0x232)][_0x3de75b(0x201)]('following');}[_0x11b6eb(0x22b)](){const _0x32410f=_0x11b6eb;var _0x27c408;this[_0x32410f(0x232)][_0x32410f(0x201)](_0x32410f(0x261)),(_0x27c408=this[_0x32410f(0x1ef)])==null||_0x27c408['dispose'](),this[_0x32410f(0x1ef)]=null;}[_0x11b6eb(0x238)](){const _0x141240=_0x11b6eb;var _0x3dfd67;this[_0x141240(0x232)][_0x141240(0x201)](_0x141240(0x1da)),(_0x3dfd67=this[_0x141240(0x1ef)])==null||_0x3dfd67[_0x141240(0x22c)]();}[_0x11b6eb(0x1f5)](_0x3f5674){const _0x5a9bf9=_0x11b6eb;if([_0x5a9bf9(0x1cf),'not-following',_0x5a9bf9(0x263)][_0x5a9bf9(0x256)](this[_0x5a9bf9(0x1de)])||!_0x3f5674[_0x5a9bf9(0x241)][_0x5a9bf9(0x25d)]||_0x3f5674[_0x5a9bf9(0x241)]['presenter']===this[_0x5a9bf9(0x221)][_0x5a9bf9(0x236)]())return;this['_status']===_0x5a9bf9(0x261)&&this[_0x5a9bf9(0x25a)]();const _0x3a4158=_0x3f5674[_0x5a9bf9(0x241)][_0x5a9bf9(0x239)];Object['values'](_0x3a4158)[_0x5a9bf9(0x25e)](_0x10154e=>{const _0xc2d404=_0x5a9bf9;this[_0xc2d404(0x1e7)]['executeCommand'](_0x10154e['id'],_0x10154e[_0xc2d404(0x22f)]?JSON[_0xc2d404(0x1db)](_0x10154e['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x512728=_0x11b6eb;var _0x5d09aa;this[_0x512728(0x232)]['next'](_0x512728(0x263)),(_0x5d09aa=this['_commandDisposable'])==null||_0x5d09aa[_0x512728(0x22c)]();}['_handleOnline'](){const _0x3f59e2=_0x11b6eb;this[_0x3f59e2(0x232)][_0x3f59e2(0x201)](_0x3f59e2(0x261)),this['_fetchOperations']();}};N=Y([_(0x2,_0x586d2f),_(0x3,_0x34997e(L)),_(0x4,_0x43fef4)],N);function Le(){const _0x16c21c=_0x11b6eb,_0x4cec2a=_0x138bea(S),_0x471b54=_0x138bea(_0x41e0ae),_0x413690=_0x5a2037(()=>_0x471b54[_0x16c21c(0x1fa)](_0x30dc91[_0x16c21c(0x24f)]),void 0x0,!0x1,[]),[_0x242625,_0xebd6d2]=_0x2af4b9(null),[_0x31da5f,_0x3cb4e6]=_0x2af4b9(c['IDLE']),_0x139d59=_0x2f0507(null);return _0x22d44a(()=>(_0x413690&&_0x4cec2a[_0x16c21c(0x205)](_0x413690[_0x16c21c(0x1f9)]())[_0x16c21c(0x226)](_0x4efc0f=>{const _0x5324fd=_0x16c21c;_0xebd6d2(_0x4efc0f),_0x139d59[_0x5324fd(0x26f)]=_0x4efc0f[_0x5324fd(0x1fd)][_0x5324fd(0x204)](_0x2c4102=>{_0x3cb4e6(_0x2c4102);});}),()=>{const _0x4d2dba=_0x16c21c;var _0x51a3d3;(_0x51a3d3=_0x139d59['current'])==null||_0x51a3d3[_0x4d2dba(0x1e6)](),_0x139d59[_0x4d2dba(0x26f)]=null;}),[_0x413690,_0x4cec2a]),_0x242625?_0x4d2be6(_0xef8b71,{'align':_0x16c21c(0x265),'disabled':_0x31da5f===c[_0x16c21c(0x247)],'className':_0x16c21c(0x26a),'overlay':_0x4d2be6(Re,{'status':_0x31da5f,'coordinator':_0x242625}),'children':_0x4d2be6(_0x16c21c(0x1d1),{'className':_0x1b48c8(_0x16c21c(0x1e0),{'univer-cursor-not-allowed':_0x31da5f===c[_0x16c21c(0x247)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x31da5f!==c[_0x16c21c(0x247)]}),'type':'button','children':_0x4d2be6(W,{'className':_0x16c21c(0x253)})})}):null;}function Re(_0x1a0cf1){const _0x379eda=_0x11b6eb,{status:_0x3f220c,coordinator:_0x2d6ce0}=_0x1a0cf1;switch(_0x3f220c){case c[_0x379eda(0x21f)]:return _0x4d2be6($e,{'coordinator':_0x2d6ce0});case c[_0x379eda(0x1e9)]:return _0x4d2be6(xe,{'coordinator':_0x2d6ce0});case c[_0x379eda(0x237)]:return _0x4d2be6(Pe,{'coordinator':_0x2d6ce0});case c[_0x379eda(0x247)]:return _0x4d2be6(Te,{});case c[_0x379eda(0x26d)]:return _0x4d2be6(Ae,{'coordinator':_0x2d6ce0});default:return null;}}function $e(_0x590e4f){const _0x470752=_0x11b6eb,{coordinator:_0x230193}=_0x590e4f;return _0x57c5c7(_0xa0c774,{'children':[_0x4d2be6(_0x470752(0x234),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x470752(0x20b)}),_0x4d2be6(_0x23cb3d,{'onClick':()=>_0x230193[_0x470752(0x1f7)](),'children':_0x470752(0x25f)})]});}function xe(_0x3ca136){const _0x275bb7=_0x11b6eb,{coordinator:_0x572915}=_0x3ca136;return _0x57c5c7(_0xa0c774,{'children':[_0x4d2be6(_0x275bb7(0x234),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x4d2be6(_0x23cb3d,{'onClick':()=>_0x572915[_0x275bb7(0x24b)](),'children':_0x275bb7(0x220)})]});}function Pe(_0x589811){const _0x39732f=_0x11b6eb,{coordinator:_0x2b7e62}=_0x589811;return _0x57c5c7(_0xa0c774,{'children':[_0x4d2be6(_0x39732f(0x234),{'className':_0x39732f(0x1fb),'children':_0x39732f(0x255)}),_0x4d2be6(_0x23cb3d,{'variant':'text','onClick':()=>_0x2b7e62[_0x39732f(0x268)](),'children':'Start\x20following'})]});}function Ae(_0x217d88){const _0x3f2db2=_0x11b6eb,{coordinator:_0x16fd5b}=_0x217d88;return _0x57c5c7(_0xa0c774,{'children':[_0x4d2be6(_0x3f2db2(0x234),{'className':_0x3f2db2(0x1fb),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x4d2be6(_0x23cb3d,{'variant':_0x3f2db2(0x1f3),'onClick':()=>_0x16fd5b[_0x3f2db2(0x264)](),'children':_0x3f2db2(0x20d)})]});}function Te(){const _0x38fd24=_0x11b6eb;return _0x4d2be6(_0xa0c774,{'children':_0x38fd24(0x24a)});}function _0x54c5(_0xe7a61e,_0x1aff34){const _0x1e4fad=_0x1e4f();return _0x54c5=function(_0x54c51c,_0x3f2c49){_0x54c51c=_0x54c51c-0x1ca;let _0x50767b=_0x1e4fad[_0x54c51c];return _0x50767b;},_0x54c5(_0xe7a61e,_0x1aff34);}var Fe=Object[_0x11b6eb(0x1d2)],He=(_0x38c998,_0x4ea12c,_0x32bc5d,_0x176234)=>{const _0x1aad53=_0x11b6eb;for(var _0x2e9d14=_0x176234>0x1?void 0x0:_0x176234?Fe(_0x4ea12c,_0x32bc5d):_0x4ea12c,_0x432a90=_0x38c998[_0x1aad53(0x209)]-0x1,_0x26e754;_0x432a90>=0x0;_0x432a90--)(_0x26e754=_0x38c998[_0x432a90])&&(_0x2e9d14=_0x26e754(_0x2e9d14)||_0x2e9d14);return _0x2e9d14;},A=(_0xa17375,_0x4a8e82)=>(_0x56bb98,_0x5eae5d)=>_0x4a8e82(_0x56bb98,_0x5eae5d,_0xa17375);let m=class extends _0x1488b8{constructor(_0x2945c9,_0x559605){const _0x359654=_0x11b6eb;super(),this[_0x359654(0x26b)]=_0x2945c9,this[_0x359654(0x1d8)]=_0x559605,this[_0x359654(0x230)]();}['_mountLiveShare'](){const _0x4bbbb7=_0x11b6eb;this['disposeWithMe'](this['_uiPartsService'][_0x4bbbb7(0x1cc)](_0xe162dd['HEADER_MENU'],()=>_0x437101(Le,this[_0x4bbbb7(0x26b)])));}};m=He([A(0x0,_0x34997e(_0x172459)),A(0x1,_0x274200)],m);const ye=_0x11b6eb(0x243),T={};var Ue=Object[_0x11b6eb(0x1d2)],Ve=(_0x411382,_0x2e8368,_0x52c4ba,_0xaebcd6)=>{const _0x28a6a1=_0x11b6eb;for(var _0x9360d9=_0xaebcd6>0x1?void 0x0:_0xaebcd6?Ue(_0x2e8368,_0x52c4ba):_0x2e8368,_0x2b0fd5=_0x411382[_0x28a6a1(0x209)]-0x1,_0x4bcfff;_0x2b0fd5>=0x0;_0x2b0fd5--)(_0x4bcfff=_0x411382[_0x2b0fd5])&&(_0x9360d9=_0x4bcfff(_0x9360d9)||_0x9360d9);return _0x9360d9;},je=(_0x22af56,_0x42b3dd)=>(_0x411372,_0x4c15e9)=>_0x42b3dd(_0x411372,_0x4c15e9,_0x22af56);let I=class extends _0x1488b8{constructor(_0x5822de){const _0x521c05=_0x11b6eb;super(),this[_0x521c05(0x1f1)]=_0x5822de,this['_init']();}[_0x11b6eb(0x1dc)](){const _0x4f1c9c=_0x11b6eb;[_0x3a77e6['id'],_0x5e3f90['id'],_0x4b8267['id']][_0x4f1c9c(0x25e)](_0x2ab669=>{const _0x21b666=_0x4f1c9c;this[_0x21b666(0x235)](this[_0x21b666(0x1f1)][_0x21b666(0x23f)](_0x2ab669));});}};I=Ve([je(0x0,_0x34997e(L))],I);var Me=Object[_0x11b6eb(0x262)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x37d6de,_0x73cce6,_0x53f01e)=>_0x73cce6 in _0x37d6de?Me(_0x37d6de,_0x73cce6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53f01e}):_0x37d6de[_0x73cce6]=_0x53f01e,We=(_0x4d4862,_0x2b1df5,_0x4179e8,_0x348e1a)=>{const _0x21f4eb=_0x11b6eb;for(var _0x48e571=_0x348e1a>0x1?void 0x0:_0x348e1a?ke(_0x2b1df5,_0x4179e8):_0x2b1df5,_0x4b5328=_0x4d4862[_0x21f4eb(0x209)]-0x1,_0x4db8c5;_0x4b5328>=0x0;_0x4b5328--)(_0x4db8c5=_0x4d4862[_0x4b5328])&&(_0x48e571=_0x4db8c5(_0x48e571)||_0x48e571);return _0x48e571;},F=(_0x468ae7,_0x4ecec)=>(_0x4f3af4,_0x1b9600)=>_0x4ecec(_0x4f3af4,_0x1b9600,_0x468ae7),B=(_0x117af5,_0x4af8be,_0x5b70e0)=>Ge(_0x117af5,typeof _0x4af8be!='symbol'?_0x4af8be+'':_0x4af8be,_0x5b70e0);const Ye=_0x11b6eb(0x258);let b=class extends _0x4e2557{constructor(_0x48756a=T,_0x5caf02,_0x4940e3){const _0x150edf=_0x11b6eb;super(),this[_0x150edf(0x214)]=_0x48756a,this[_0x150edf(0x26b)]=_0x5caf02,this[_0x150edf(0x1ce)]=_0x4940e3;const {..._0x9354b9}=_0x6531d9({},T,this[_0x150edf(0x214)]);this['_configService']['setConfig'](ye,_0x9354b9);}[_0x11b6eb(0x1f0)](){const _0x4af5fb=_0x11b6eb;_0x5507b0(this['_injector'],_0x350506([[L],[S],[I],[m]],this[_0x4af5fb(0x214)][_0x4af5fb(0x20f)])),_0x6327c4(this[_0x4af5fb(0x26b)],[[I]]);}['onRendered'](){_0x6327c4(this['_injector'],[[m]]);}};B(b,_0x11b6eb(0x23b),_0x30dc91[_0x11b6eb(0x20a)]),B(b,_0x11b6eb(0x25c),Ye),b=We([_0x1db9f3(_0x12ac27),F(0x1,_0x34997e(_0x172459)),F(0x2,_0x586d2f)],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 _0x33c0d5=_0x1222;(function(_0xc38f3c,_0x1da37d){const _0x134b08=_0x1222,_0x42afae=_0xc38f3c();while(!![]){try{const _0x247247=-parseInt(_0x134b08(0x1b6))/0x1+parseInt(_0x134b08(0x126))/0x2*(parseInt(_0x134b08(0x15c))/0x3)+parseInt(_0x134b08(0x191))/0x4+-parseInt(_0x134b08(0x166))/0x5*(-parseInt(_0x134b08(0x145))/0x6)+-parseInt(_0x134b08(0x1a1))/0x7*(-parseInt(_0x134b08(0x136))/0x8)+-parseInt(_0x134b08(0x165))/0x9*(-parseInt(_0x134b08(0x1c7))/0xa)+-parseInt(_0x134b08(0x169))/0xb;if(_0x247247===_0x1da37d)break;else _0x42afae['push'](_0x42afae['shift']());}catch(_0x3845c9){_0x42afae['push'](_0x42afae['shift']());}}}(_0x5737,0xd1d56));var J=Object['defineProperty'],K=(_0x2f0abe,_0x58c7d8,_0x1262e3)=>_0x58c7d8 in _0x2f0abe?J(_0x2f0abe,_0x58c7d8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1262e3}):_0x2f0abe[_0x58c7d8]=_0x1262e3,u=(_0x1bbc44,_0x63953d,_0x31ddb8)=>K(_0x1bbc44,typeof _0x63953d!='symbol'?_0x63953d+'':_0x63953d,_0x31ddb8);import{Disposable as _0x2eb520,toDisposable as _0xa18819,IUniverInstanceService as _0x213847,Inject as _0x1465af,Injector as _0x574d75,IConfigService as _0x3c1f5c,ICommandService as _0x2771da,RxDisposable as _0x207d4a,UniverInstanceType as _0x4e0037,DisposableCollection as _0x3472ee,CommandType as _0x2a1b33,DependentOn as _0x5cad98,Plugin as _0x2e958d,merge as _0x551b22,registerDependencies as _0x25b9eb,mergeOverrideWithDependencies as _0x4c2590,touchDependencies as _0x2704d5}from'@univerjs/core';import{useDependency as _0xd36f04,useObservable as _0x48b784,IUIPartsService as _0x45f094,BuiltInUIPart as _0x323948,connectInjector as _0x15a4f6}from'@univerjs/ui';import{jsx as _0x49193b,jsxs as _0x48b03d,Fragment as _0x456367}from'react/jsx-runtime';import{Dropdown as _0x35d73c,clsx as _0x4c3322,Button as _0x1199fb}from'@univerjs/design';import{useRef as _0xe1e52d,createElement as _0x35b954,forwardRef as _0x11b4d3,useState as _0x3f7468,useEffect as _0x1d6da2}from'react';import{CollaborationEvent as _0x29bfd2,parseProtocolChangeset as _0x1b4190}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xf04e22,SessionStatus as _0xdd7313,UniverCollaborationClientPlugin as _0x17a4d8}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x2b76f4,SetWorksheetActiveOperation as _0x4e0d10}from'@univerjs/sheets';import{BehaviorSubject as _0x29530b,Subject as _0x1f94fd}from'rxjs';import{takeUntil as _0x4ca9d7,throttleTime as _0x1b3748}from'rxjs/operators';import{SetZoomRatioOperation as _0x13e569,SetScrollOperation as _0x4f372f}from'@univerjs/sheets-ui';function k({ref:_0x3e2a3e,..._0x1d0690}){const _0x105f3e=_0x1222,{icon:_0x1995c9,id:_0x88d405,className:_0x570eb7,extend:_0x172618,..._0xd0f503}=_0x1d0690,_0x52cfb5=(_0x105f3e(0x132)+_0x88d405+'\x20'+(_0x570eb7||''))[_0x105f3e(0x146)](),_0x1420d5=_0xe1e52d('_'+Oe());return G(_0x1995c9,''+_0x88d405,{'defIds':_0x1995c9[_0x105f3e(0x17a)],'idSuffix':_0x1420d5[_0x105f3e(0x1ca)]},{'ref':_0x3e2a3e,'className':_0x52cfb5,..._0xd0f503},_0x172618);}function G(_0x1dcff4,_0x5754a0,_0x16f9cb,_0x1d4c04,_0x1c8f49){const _0x5bc735=_0x1222;return _0x35b954(_0x1dcff4[_0x5bc735(0x137)],{'key':_0x5754a0,...be(_0x1dcff4,_0x16f9cb,_0x1c8f49),..._0x1d4c04},(Ee(_0x1dcff4,_0x16f9cb)['children']||[])[_0x5bc735(0x1ce)]((_0x52e04c,_0x511943)=>G(_0x52e04c,_0x5754a0+'-'+_0x1dcff4['tag']+'-'+_0x511943,_0x16f9cb,void 0x0,_0x1c8f49)));}function be(_0x588129,_0x3b87ac,_0x574f9f){const _0x41e82b=_0x1222,_0x41fe0c={..._0x588129[_0x41e82b(0x149)]};_0x574f9f!=null&&_0x574f9f['colorChannel1']&&_0x41fe0c[_0x41e82b(0x1bb)]===_0x41e82b(0x1c2)&&(_0x41fe0c['fill']=_0x574f9f[_0x41e82b(0x1c2)]),_0x588129[_0x41e82b(0x137)]===_0x41e82b(0x14f)&&_0x41fe0c['id']&&(_0x41fe0c['id']=_0x41fe0c['id']+_0x3b87ac[_0x41e82b(0x185)]),Object[_0x41e82b(0x148)](_0x41fe0c)[_0x41e82b(0x15a)](([_0x4949d1,_0x2f2bf0])=>{const _0x3d91f9=_0x41e82b;_0x4949d1===_0x3d91f9(0x14f)&&typeof _0x2f2bf0==_0x3d91f9(0x19e)&&(_0x41fe0c[_0x4949d1]=_0x2f2bf0[_0x3d91f9(0x140)](/url\(#(.*)\)/,_0x3d91f9(0x16a)+_0x3b87ac[_0x3d91f9(0x185)]+')'));});const {defIds:_0x5c5cf1}=_0x3b87ac;return!_0x5c5cf1||_0x5c5cf1[_0x41e82b(0x155)]===0x0||(_0x588129[_0x41e82b(0x137)]===_0x41e82b(0x1b0)&&_0x41fe0c[_0x41e82b(0x1c9)]&&(_0x41fe0c[_0x41e82b(0x1c9)]=_0x41fe0c[_0x41e82b(0x1c9)]+_0x3b87ac[_0x41e82b(0x185)]),Object[_0x41e82b(0x148)](_0x41fe0c)[_0x41e82b(0x15a)](([_0x5e8fe4,_0x545ecd])=>{const _0xd51f4a=_0x41e82b;typeof _0x545ecd==_0xd51f4a(0x19e)&&(_0x41fe0c[_0x5e8fe4]=_0x545ecd[_0xd51f4a(0x140)](/url\(#(.*)\)/,_0xd51f4a(0x16a)+_0x3b87ac[_0xd51f4a(0x185)]+')'));})),_0x41fe0c;}function Ee(_0x42441f,_0x35a4d9){const _0x5a4c62=_0x1222;var _0x28e393;const {defIds:_0x476973}=_0x35a4d9;return!_0x476973||_0x476973[_0x5a4c62(0x155)]===0x0?_0x42441f:_0x42441f[_0x5a4c62(0x137)]===_0x5a4c62(0x18d)&&((_0x28e393=_0x42441f[_0x5a4c62(0x19f)])!=null&&_0x28e393[_0x5a4c62(0x155)])?{..._0x42441f,'children':_0x42441f[_0x5a4c62(0x19f)]['map'](_0x1d72fa=>typeof _0x1d72fa[_0x5a4c62(0x149)]['id']=='string'&&_0x476973&&_0x476973['includes'](_0x1d72fa[_0x5a4c62(0x149)]['id'])?{..._0x1d72fa,'attrs':{..._0x1d72fa[_0x5a4c62(0x149)],'id':_0x1d72fa['attrs']['id']+_0x35a4d9[_0x5a4c62(0x185)]}}:_0x1d72fa)}:_0x42441f;}function Oe(){const _0x564b23=_0x1222;return Math[_0x564b23(0x183)]()[_0x564b23(0x1b4)](0x24)[_0x564b23(0x16b)](0x2,0x8);}k[_0x33c0d5(0x15f)]='UniverIcon';const we={'tag':_0x33c0d5(0x1a0),'attrs':{'xmlns':_0x33c0d5(0x12b),'fill':_0x33c0d5(0x1b9),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x33c0d5(0x180)},'children':[{'tag':_0x33c0d5(0x19d),'attrs':{'fill':_0x33c0d5(0x16c),'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':_0x33c0d5(0x19d),'attrs':{'fill':'currentColor','d':_0x33c0d5(0x141),'fillRule':_0x33c0d5(0x14d),'clipRule':'evenodd'}}]},W=_0x11b4d3(function(_0x2f8ab0,_0x31a285){const _0x17d585=_0x33c0d5;return _0x35b954(k,Object[_0x17d585(0x131)]({},_0x2f8ab0,{'id':_0x17d585(0x1af),'ref':_0x31a285,'icon':we}));});W['displayName']=_0x33c0d5(0x195);class L extends _0x2eb520{constructor(){const _0x259797=_0x33c0d5;super(...arguments),u(this,_0x259797(0x152),new Set()),u(this,_0x259797(0x13f),new Set());}['registerSharedOperation'](_0x422cf7){const _0x1cbd7d=_0x33c0d5;return this[_0x1cbd7d(0x152)][_0x1cbd7d(0x12c)](_0x422cf7),_0xa18819(()=>this['_sharedOperations'][_0x1cbd7d(0x13c)](_0x422cf7));}['registerInitialStateReporter'](_0x24ac55){const _0x49eae2=_0x33c0d5;return this['_reporters']['add'](_0x24ac55),_0xa18819(()=>this[_0x49eae2(0x13f)][_0x49eae2(0x13c)](_0x24ac55));}[_0x33c0d5(0x190)](_0x1c02f0){const _0x3eaae5=_0x33c0d5;return this[_0x3eaae5(0x152)][_0x3eaae5(0x188)](_0x1c02f0);}['getInitialStates'](_0x1c1e29){const _0xe77863=_0x33c0d5;return Array[_0xe77863(0x142)](this[_0xe77863(0x13f)])['map'](_0x254b07=>_0x254b07(_0x1c1e29));}}var Ne=Object[_0x33c0d5(0x1c6)],Y=(_0x1c3ef3,_0x335640,_0x13906b,_0x3415f8)=>{const _0x48eb5d=_0x33c0d5;for(var _0x5e233e=_0x3415f8>0x1?void 0x0:_0x3415f8?Ne(_0x335640,_0x13906b):_0x335640,_0x4b7fd1=_0x1c3ef3[_0x48eb5d(0x155)]-0x1,_0x2c0daa;_0x4b7fd1>=0x0;_0x4b7fd1--)(_0x2c0daa=_0x1c3ef3[_0x4b7fd1])&&(_0x5e233e=_0x2c0daa(_0x5e233e)||_0x5e233e);return _0x5e233e;},_=(_0x338328,_0x1ca725)=>(_0x41b81f,_0x1877ef)=>_0x1ca725(_0x41b81f,_0x1877ef,_0x338328);let S=class extends _0x207d4a{constructor(_0x3620b5,_0x144df6,_0x65207c){const _0x26802a=_0x33c0d5;super(),u(this,_0x26802a(0x1a5),new Map()),(this['_univerInstanceService']=_0x3620b5,this[_0x26802a(0x1ac)]=_0x144df6,this['_collabSessionService']=_0x65207c,this[_0x26802a(0x161)]());}async[_0x33c0d5(0x1b5)](_0x581452){const _0x42f907=_0x33c0d5;return this[_0x42f907(0x1a5)][_0x42f907(0x188)](_0x581452)||await this[_0x42f907(0x1b7)](_0x581452),this['_entities']['get'](_0x581452);}[_0x33c0d5(0x1c1)](_0x4b561b){const _0x418d14=_0x33c0d5;var _0x38919e;return(_0x38919e=this[_0x418d14(0x1a5)][_0x418d14(0x15d)](_0x4b561b))!=null?_0x38919e:null;}[_0x33c0d5(0x161)](){const _0x49cf7e=_0x33c0d5;this[_0x49cf7e(0x139)][_0x49cf7e(0x1a3)](_0x4e0037['UNIVER_SHEET'])[_0x49cf7e(0x1c0)](_0x4ca9d7(this[_0x49cf7e(0x147)]))['subscribe'](async _0xdb3ebf=>{const _0x55b154=_0x49cf7e,_0x5e6e4d=_0xdb3ebf[_0x55b154(0x16d)]();this[_0x55b154(0x1a5)]['has'](_0x5e6e4d)||this['_startLiveShareCoordinator'](_0x5e6e4d);}),this[_0x49cf7e(0x139)]['getTypeOfUnitDisposed$'](_0x4e0037[_0x49cf7e(0x14b)])[_0x49cf7e(0x1c0)](_0x4ca9d7(this[_0x49cf7e(0x147)]))[_0x49cf7e(0x144)](_0x728095=>{const _0x58f6ef=_0x49cf7e,_0x2fe5e3=_0x728095['getUnitId'](),_0x21e7eb=this[_0x58f6ef(0x1a5)][_0x58f6ef(0x15d)](_0x2fe5e3);_0x21e7eb==null||_0x21e7eb['dispose']();});}async['_startLiveShareCoordinator'](_0x5d6ce2){const _0x36c28c=_0x33c0d5,_0xa7079d=await this[_0x36c28c(0x1a2)][_0x36c28c(0x154)](_0x5d6ce2),_0x24caf2=this[_0x36c28c(0x1ac)][_0x36c28c(0x175)](N,_0x5d6ce2,_0xa7079d);return _0x24caf2[_0x36c28c(0x199)](),this['_entities']['set'](_0x5d6ce2,_0x24caf2),_0x24caf2;}};function _0x5737(){const _0x2b629e=['Start\x20following','button','map','72LyiNun','next','_config','_status$','memberID','http://www.w3.org/2000/svg','add','following','LIVESHARE_REQUEST_HOST','presenting','clear','assign','univerjs-icon\x20univerjs-icon-','OFFLINE','_handleNewChangeSets','_collabSession','312jCJPzZ','tag','_handleOperation','_univerInstanceService','pluginName','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','delete','_uiPartsService','_handleOnline','_reporters','replace','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','from','You\x27re\x20presenting\x20the\x20document','subscribe','276TkWyuL','trim','dispose$','entries','attrs','setConfig','UNIVER_SHEET','params','evenodd','data','mask','_commandService','_liveShareService','_sharedOperations','getCurrentTypeOfUnit$','requireSession','length','end','reverse','_mountLiveShare','_presenter','forEach','getInitialStates','59379UBoXFP','get','_status','displayName','getMemberID','_init','tryStartPresenting','ONLINE','_handleOffline','612yOGUIo','20065KtogHw','stringify','parse','30409698mZwYqX','url(#$1','substring','currentColor','getUnitId','_handleNewHost','onStarting','_commandDisposable','_startFollowing','getValue','_stopFollowing','registerComponent','createInstance','UNIVER_UNKNOWN','onRendered','LIVESHARE_OPERATION','SAME_OPERATION_SHARE_INTERVAL','defIds','HEADER_MENU','stopPresenting','not-following','complete','IDLE','1em','univer-size-4','PRESENTING','random','You\x27are\x20offline.','idSuffix','Present\x20this\x20document','idle','has','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startPresenting','sessionStatus$','_handleTerminate','defs','event$','override','shouldShareOperation','5616468MUlbij','Stop\x20following','executeCommand','_beIdle','LiveShareIcon','OPERATION','then','You\x27re\x20not\x20following\x20the\x20presenter','init','sheet','_configService','disposeWithMe','path','string','children','svg','209517zmPTbu','_collabSessionService','getTypeOfUnitAdded$','status$','_entities','operations','_stopPresenting','default','_unitID','UNIVER_LIVE_SHARE_PLUGIN','type','_injector','onCommandExecuted','_fetchOperations','live-share-icon','use','getStatus','div','unitId','toString','getLiveShareCoordinator','191036mmUoud','_startLiveShareCoordinator','send','none','NOT_FOLLOWING','fill','offline','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','startFollowing','You\x27re\x20following\x20the\x20presenter','pipe','getLiveShareCoordinatorSync','colorChannel1','stopFollowing','values','FOLLOWING','getOwnPropertyDescriptor','50950dxBeyJ','dispose','xlink:href','current','LIVESHARE_FETCH_OPERATIONS'];_0x5737=function(){return _0x2b629e;};return _0x5737();}S=Y([_(0x0,_0x213847),_(0x1,_0x1465af(_0x574d75)),_(0x2,_0x1465af(_0xf04e22))],S);var c=(_0xaaabbd=>(_0xaaabbd['OFFLINE']=_0x33c0d5(0x1bc),_0xaaabbd[_0x33c0d5(0x17f)]=_0x33c0d5(0x187),_0xaaabbd[_0x33c0d5(0x1c5)]=_0x33c0d5(0x12d),_0xaaabbd[_0x33c0d5(0x1ba)]=_0x33c0d5(0x17d),_0xaaabbd[_0x33c0d5(0x182)]=_0x33c0d5(0x12f),_0xaaabbd))(c||{});const Ce=_0x33c0d5(0x179),De=0xc8;let N=class extends _0x207d4a{constructor(_0x104238,_0x20136b,_0xf13c15,_0x441d09,_0x3499f3){const _0x432099=_0x33c0d5;super(),u(this,_0x432099(0x129),new _0x29530b('idle')),u(this,_0x432099(0x1a4),this[_0x432099(0x129)]['asObservable']()),u(this,_0x432099(0x161),!0x1),u(this,_0x432099(0x170),null),u(this,_0x432099(0x159),null),(this[_0x432099(0x1a9)]=_0x104238,this[_0x432099(0x135)]=_0x20136b,this[_0x432099(0x19b)]=_0xf13c15,this[_0x432099(0x151)]=_0x441d09,this[_0x432099(0x150)]=_0x3499f3);}get[_0x33c0d5(0x15e)](){const _0x31a985=_0x33c0d5;return this[_0x31a985(0x129)][_0x31a985(0x172)]();}['dispose'](){const _0x34299e=_0x33c0d5;var _0x25fada;(_0x25fada=this[_0x34299e(0x170)])==null||_0x25fada['dispose'](),this[_0x34299e(0x129)][_0x34299e(0x127)](_0x34299e(0x187)),this[_0x34299e(0x129)][_0x34299e(0x17e)]();}[_0x33c0d5(0x1b1)](){const _0x5c323f=_0x33c0d5;return this[_0x5c323f(0x15e)];}[_0x33c0d5(0x199)](){const _0x305fde=_0x33c0d5;this[_0x305fde(0x161)]||(this[_0x305fde(0x161)]=!0x0,this[_0x305fde(0x135)][_0x305fde(0x18b)]['pipe'](_0x4ca9d7(this[_0x305fde(0x147)]))[_0x305fde(0x144)](_0x3e8af5=>{const _0x3c97c8=_0x305fde;switch(_0x3e8af5){case _0xdd7313[_0x3c97c8(0x133)]:this[_0x3c97c8(0x164)]();break;case _0xdd7313[_0x3c97c8(0x163)]:this[_0x3c97c8(0x13e)]();break;}}),this['_collabSession'][_0x305fde(0x18e)][_0x305fde(0x1c0)](_0x4ca9d7(this[_0x305fde(0x147)]))[_0x305fde(0x144)](_0x3cbdb2=>{const _0x454ec8=_0x305fde,{eventID:_0x47052b}=_0x3cbdb2;switch(_0x47052b){case _0x29bfd2['LIVESHARE_NEW_HOST']:this[_0x454ec8(0x16e)](_0x3cbdb2);break;case _0x29bfd2[_0x454ec8(0x178)]:this[_0x454ec8(0x138)](_0x3cbdb2);break;case _0x29bfd2['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x29bfd2['NEW_CHANGESETS']:this[_0x454ec8(0x134)](_0x3cbdb2);break;}}));}[_0x33c0d5(0x162)](){const _0x262827=_0x33c0d5;this[_0x262827(0x135)][_0x262827(0x1b8)]({'eventID':_0x29bfd2[_0x262827(0x12e)],'data':{'unitID':this[_0x262827(0x1a9)],'userID':this[_0x262827(0x135)][_0x262827(0x160)]()}},this[_0x262827(0x1a9)]);}[_0x33c0d5(0x17c)](){const _0x340766=_0x33c0d5;this['_status']===_0x340766(0x12f)&&(this[_0x340766(0x129)][_0x340766(0x127)](_0x340766(0x187)),this[_0x340766(0x135)][_0x340766(0x1b8)]({'eventID':_0x29bfd2['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x340766(0x1a9)]}},this[_0x340766(0x1a9)]));}['startFollowing'](){const _0x3d6962=_0x33c0d5;this[_0x3d6962(0x15e)]===_0x3d6962(0x17d)&&(this[_0x3d6962(0x129)]['next']('following'),this[_0x3d6962(0x171)]());}[_0x33c0d5(0x1c3)](){const _0x1c9ebc=_0x33c0d5;this[_0x1c9ebc(0x15e)]==='following'&&this['_stopFollowing']();}[_0x33c0d5(0x16e)](_0x6447ca){const _0x399d76=_0x33c0d5,{presenter:_0x1f9c53}=_0x6447ca[_0x399d76(0x14e)],_0x147f73=this[_0x399d76(0x135)][_0x399d76(0x160)]();this[_0x399d76(0x159)]=_0x1f9c53,_0x1f9c53===_0x147f73?(this[_0x399d76(0x173)](),this['_startPresenting']()):this[_0x399d76(0x15e)]!==_0x399d76(0x17d)&&(this[_0x399d76(0x1a7)](),this[_0x399d76(0x171)]());}['_fetchOperations'](){const _0x49150a=_0x33c0d5,_0x120f6b={'eventID':_0x29bfd2[_0x49150a(0x1cb)]};this[_0x49150a(0x135)][_0x49150a(0x1b8)](_0x120f6b,this[_0x49150a(0x1a9)]);}[_0x33c0d5(0x18c)](){const _0x5874a9=_0x33c0d5;this[_0x5874a9(0x159)]=null,this[_0x5874a9(0x15e)]!==_0x5874a9(0x12f)&&this[_0x5874a9(0x194)]();}['_handleNewChangeSets'](_0x1ffaab){const _0x2729f7=_0x33c0d5;if(this[_0x2729f7(0x15e)]===_0x2729f7(0x12d)&&this['_presenter']===_0x1ffaab[_0x2729f7(0x14e)][_0x2729f7(0x12a)]){const _0x555b18=_0x1b4190(_0x1ffaab[_0x2729f7(0x14e)])['mutations'][_0x2729f7(0x157)]()['find'](_0x273be6=>_0x273be6['id']===_0x2b76f4['id']);if(_0x555b18){const _0x40688c=_0x555b18[_0x2729f7(0x14c)][_0x2729f7(0x1b3)],_0x313969=_0x555b18['params'][_0x2729f7(0x19a)]['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x4e0d10['id'],{'unitId':_0x40688c,'subUnitId':_0x313969},{'fromCollab':!0x0});});}}}[_0x33c0d5(0x18a)](){const _0x221cf7=_0x33c0d5;this[_0x221cf7(0x129)][_0x221cf7(0x127)](_0x221cf7(0x12f));const _0x1cfc55=new Map(),_0x1b9c67=this[_0x221cf7(0x170)]=new _0x3472ee();_0x1b9c67[_0x221cf7(0x12c)](_0xa18819(()=>{const _0x140d66=_0x221cf7;_0x1cfc55[_0x140d66(0x15a)](_0x3b6e48=>_0x3b6e48[_0x140d66(0x17e)]()),_0x1cfc55[_0x140d66(0x130)]();})),_0x1b9c67[_0x221cf7(0x12c)](this[_0x221cf7(0x150)][_0x221cf7(0x1ad)](_0x32b363=>{const _0x1b67b0=_0x221cf7;var _0x65dd7;if(_0x32b363[_0x1b67b0(0x1ab)]!==_0x2a1b33[_0x1b67b0(0x196)]||!this[_0x1b67b0(0x151)][_0x1b67b0(0x190)](_0x32b363['id']))return;const {id:_0x26ebe7}=_0x32b363;let _0x22fab2;_0x1cfc55[_0x1b67b0(0x188)](_0x26ebe7)?_0x22fab2=_0x1cfc55['get'](_0x26ebe7):(_0x22fab2=new _0x1f94fd(),_0x1cfc55['set'](_0x26ebe7,_0x22fab2),_0x22fab2[_0x1b67b0(0x1c0)](_0x1b3748((_0x65dd7=this['_configService']['getConfig'](Ce))!=null?_0x65dd7:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x243441=>{const _0x2479af=_0x1b67b0;this[_0x2479af(0x135)]['send']({'eventID':_0x29bfd2[_0x2479af(0x178)],'data':{'unitID':this[_0x2479af(0x1a9)],'operations':{[_0x243441['id']]:{'id':_0x243441['id'],'params':JSON[_0x2479af(0x167)](_0x243441[_0x2479af(0x14c)])}}}},this[_0x2479af(0x1a9)]);})),_0x22fab2['next'](_0x32b363);})),this[_0x221cf7(0x151)][_0x221cf7(0x15b)](this[_0x221cf7(0x1a9)])['forEach'](_0x35245a=>this[_0x221cf7(0x135)][_0x221cf7(0x1b8)]({'eventID':_0x29bfd2['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x221cf7(0x1a9)],'operations':{[_0x35245a['id']]:{'id':_0x35245a['id'],'params':JSON[_0x221cf7(0x167)](_0x35245a['params'])}}}},this[_0x221cf7(0x1a9)]));}['_stopPresenting'](){const _0x1dbc32=_0x33c0d5;var _0x39c24f;this[_0x1dbc32(0x129)]['next'](_0x1dbc32(0x187)),(_0x39c24f=this[_0x1dbc32(0x170)])==null||_0x39c24f[_0x1dbc32(0x1c8)](),this[_0x1dbc32(0x170)]=null;}[_0x33c0d5(0x171)](){const _0x42e372=_0x33c0d5;var _0x532fc8;(_0x532fc8=this['_commandDisposable'])==null||_0x532fc8[_0x42e372(0x1c8)](),this['_status$'][_0x42e372(0x127)](_0x42e372(0x12d));}[_0x33c0d5(0x194)](){const _0x5a8405=_0x33c0d5;var _0x66b38a;this[_0x5a8405(0x129)]['next'](_0x5a8405(0x187)),(_0x66b38a=this[_0x5a8405(0x170)])==null||_0x66b38a[_0x5a8405(0x1c8)](),this[_0x5a8405(0x170)]=null;}[_0x33c0d5(0x173)](){const _0x15a659=_0x33c0d5;var _0x2e679c;this[_0x15a659(0x129)][_0x15a659(0x127)](_0x15a659(0x17d)),(_0x2e679c=this['_commandDisposable'])==null||_0x2e679c[_0x15a659(0x1c8)]();}[_0x33c0d5(0x138)](_0x183c52){const _0x6d984e=_0x33c0d5;if(['presenting','not-following','offline']['includes'](this[_0x6d984e(0x15e)])||!_0x183c52[_0x6d984e(0x14e)]['presenter']||_0x183c52[_0x6d984e(0x14e)]['presenter']===this[_0x6d984e(0x135)][_0x6d984e(0x160)]())return;this[_0x6d984e(0x15e)]===_0x6d984e(0x187)&&this[_0x6d984e(0x171)]();const _0x1e3449=_0x183c52[_0x6d984e(0x14e)][_0x6d984e(0x1a6)];Object[_0x6d984e(0x1c4)](_0x1e3449)[_0x6d984e(0x15a)](_0x2f8c7d=>{const _0x4d4938=_0x6d984e;this[_0x4d4938(0x150)][_0x4d4938(0x193)](_0x2f8c7d['id'],_0x2f8c7d['params']?JSON[_0x4d4938(0x168)](_0x2f8c7d['params']):null,{'fromCollab':!0x0});});}[_0x33c0d5(0x164)](){const _0x53bc54=_0x33c0d5;var _0x50e45a;this[_0x53bc54(0x129)][_0x53bc54(0x127)](_0x53bc54(0x1bc)),(_0x50e45a=this['_commandDisposable'])==null||_0x50e45a[_0x53bc54(0x1c8)]();}[_0x33c0d5(0x13e)](){const _0x4dbb4e=_0x33c0d5;this['_status$']['next']('idle'),this[_0x4dbb4e(0x1ae)]();}};N=Y([_(0x2,_0x3c1f5c),_(0x3,_0x1465af(L)),_(0x4,_0x2771da)],N);function Le(){const _0x56c829=_0x33c0d5,_0x577148=_0xd36f04(S),_0xb8fd38=_0xd36f04(_0x213847),_0x26ac52=_0x48b784(()=>_0xb8fd38[_0x56c829(0x153)](_0x4e0037[_0x56c829(0x14b)]),void 0x0,!0x1,[]),[_0x36c11f,_0x57c9da]=_0x3f7468(null),[_0x5b75b8,_0x21c879]=_0x3f7468(c[_0x56c829(0x17f)]),_0x343147=_0xe1e52d(null);return _0x1d6da2(()=>(_0x26ac52&&_0x577148[_0x56c829(0x1b5)](_0x26ac52['getUnitId']())[_0x56c829(0x197)](_0x4b9e4c=>{const _0x411c26=_0x56c829;_0x57c9da(_0x4b9e4c),_0x343147[_0x411c26(0x1ca)]=_0x4b9e4c[_0x411c26(0x1a4)][_0x411c26(0x144)](_0x5a8237=>{_0x21c879(_0x5a8237);});}),()=>{const _0x45a284=_0x56c829;var _0x6281b8;(_0x6281b8=_0x343147[_0x45a284(0x1ca)])==null||_0x6281b8['unsubscribe'](),_0x343147[_0x45a284(0x1ca)]=null;}),[_0x26ac52,_0x577148]),_0x36c11f?_0x49193b(_0x35d73c,{'align':_0x56c829(0x156),'disabled':_0x5b75b8===c['OFFLINE'],'className':_0x56c829(0x13b),'overlay':_0x49193b(Re,{'status':_0x5b75b8,'coordinator':_0x36c11f}),'children':_0x49193b(_0x56c829(0x1cd),{'className':_0x4c3322(_0x56c829(0x1bd),{'univer-cursor-not-allowed':_0x5b75b8===c[_0x56c829(0x133)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5b75b8!==c[_0x56c829(0x133)]}),'type':_0x56c829(0x1cd),'children':_0x49193b(W,{'className':_0x56c829(0x181)})})}):null;}function Re(_0x1353a5){const _0xe9e261=_0x33c0d5,{status:_0xee14a0,coordinator:_0x138400}=_0x1353a5;switch(_0xee14a0){case c['IDLE']:return _0x49193b($e,{'coordinator':_0x138400});case c[_0xe9e261(0x1c5)]:return _0x49193b(xe,{'coordinator':_0x138400});case c[_0xe9e261(0x1ba)]:return _0x49193b(Pe,{'coordinator':_0x138400});case c['OFFLINE']:return _0x49193b(Te,{});case c[_0xe9e261(0x182)]:return _0x49193b(Ae,{'coordinator':_0x138400});default:return null;}}function $e(_0x566fb5){const _0x166b5a=_0x33c0d5,{coordinator:_0x121373}=_0x566fb5;return _0x48b03d(_0x456367,{'children':[_0x49193b(_0x166b5a(0x1b2),{'className':_0x166b5a(0x189),'children':_0x166b5a(0x186)}),_0x49193b(_0x1199fb,{'onClick':()=>_0x121373[_0x166b5a(0x162)](),'children':'Start'})]});}function xe(_0x4c9455){const _0xaa9693=_0x33c0d5,{coordinator:_0x28b4c4}=_0x4c9455;return _0x48b03d(_0x456367,{'children':[_0x49193b(_0xaa9693(0x1b2),{'className':_0xaa9693(0x189),'children':_0xaa9693(0x1bf)}),_0x49193b(_0x1199fb,{'onClick':()=>_0x28b4c4[_0xaa9693(0x1c3)](),'children':_0xaa9693(0x192)})]});}function Pe(_0x54b4a7){const _0x4462b7=_0x33c0d5,{coordinator:_0x2e917b}=_0x54b4a7;return _0x48b03d(_0x456367,{'children':[_0x49193b(_0x4462b7(0x1b2),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4462b7(0x198)}),_0x49193b(_0x1199fb,{'variant':'text','onClick':()=>_0x2e917b[_0x4462b7(0x1be)](),'children':_0x4462b7(0x1cc)})]});}function Ae(_0x55f81e){const _0x3a34a5=_0x33c0d5,{coordinator:_0x59917b}=_0x55f81e;return _0x48b03d(_0x456367,{'children':[_0x49193b(_0x3a34a5(0x1b2),{'className':_0x3a34a5(0x189),'children':_0x3a34a5(0x143)}),_0x49193b(_0x1199fb,{'variant':_0x3a34a5(0x1a8),'onClick':()=>_0x59917b[_0x3a34a5(0x17c)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x6846d=_0x33c0d5;return _0x49193b(_0x456367,{'children':_0x6846d(0x184)});}var Fe=Object[_0x33c0d5(0x1c6)],He=(_0x4b37e4,_0x198a55,_0x1e7182,_0x11e564)=>{const _0x5c3745=_0x33c0d5;for(var _0x4a86d0=_0x11e564>0x1?void 0x0:_0x11e564?Fe(_0x198a55,_0x1e7182):_0x198a55,_0xcc357f=_0x4b37e4[_0x5c3745(0x155)]-0x1,_0x3b988c;_0xcc357f>=0x0;_0xcc357f--)(_0x3b988c=_0x4b37e4[_0xcc357f])&&(_0x4a86d0=_0x3b988c(_0x4a86d0)||_0x4a86d0);return _0x4a86d0;},A=(_0x111d56,_0x12470e)=>(_0x8d18f4,_0x39d9af)=>_0x12470e(_0x8d18f4,_0x39d9af,_0x111d56);let m=class extends _0x2eb520{constructor(_0x2abe36,_0x4689d8){const _0x3bda93=_0x33c0d5;super(),this[_0x3bda93(0x1ac)]=_0x2abe36,this[_0x3bda93(0x13d)]=_0x4689d8,this[_0x3bda93(0x158)]();}['_mountLiveShare'](){const _0x42e789=_0x33c0d5;this[_0x42e789(0x19c)](this['_uiPartsService'][_0x42e789(0x174)](_0x323948[_0x42e789(0x17b)],()=>_0x15a4f6(Le,this[_0x42e789(0x1ac)])));}};m=He([A(0x0,_0x1465af(_0x574d75)),A(0x1,_0x45f094)],m);const ye='live-share.config',T={};var Ue=Object[_0x33c0d5(0x1c6)],Ve=(_0x18256d,_0x4f7013,_0x463f23,_0x28a97c)=>{const _0x4935ac=_0x33c0d5;for(var _0x54fcfd=_0x28a97c>0x1?void 0x0:_0x28a97c?Ue(_0x4f7013,_0x463f23):_0x4f7013,_0x3c8a47=_0x18256d[_0x4935ac(0x155)]-0x1,_0x1a5916;_0x3c8a47>=0x0;_0x3c8a47--)(_0x1a5916=_0x18256d[_0x3c8a47])&&(_0x54fcfd=_0x1a5916(_0x54fcfd)||_0x54fcfd);return _0x54fcfd;},je=(_0x577057,_0x47b77b)=>(_0x5daa0f,_0xf55712)=>_0x47b77b(_0x5daa0f,_0xf55712,_0x577057);let I=class extends _0x2eb520{constructor(_0xe92e93){const _0x400446=_0x33c0d5;super(),this[_0x400446(0x151)]=_0xe92e93,this[_0x400446(0x161)]();}[_0x33c0d5(0x161)](){const _0x21ea4c=_0x33c0d5;[_0x13e569['id'],_0x4f372f['id'],_0x4e0d10['id']][_0x21ea4c(0x15a)](_0x366faa=>{const _0x56259c=_0x21ea4c;this[_0x56259c(0x19c)](this[_0x56259c(0x151)]['registerSharedOperation'](_0x366faa));});}};I=Ve([je(0x0,_0x1465af(L))],I);var Me=Object['defineProperty'],ke=Object[_0x33c0d5(0x1c6)],Ge=(_0x5e08c4,_0x256ca7,_0x29d861)=>_0x256ca7 in _0x5e08c4?Me(_0x5e08c4,_0x256ca7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29d861}):_0x5e08c4[_0x256ca7]=_0x29d861,We=(_0x493c72,_0x356d27,_0x48f45e,_0x2f82e0)=>{const _0x941ad4=_0x33c0d5;for(var _0x31b645=_0x2f82e0>0x1?void 0x0:_0x2f82e0?ke(_0x356d27,_0x48f45e):_0x356d27,_0x47ee4b=_0x493c72[_0x941ad4(0x155)]-0x1,_0x5ef4db;_0x47ee4b>=0x0;_0x47ee4b--)(_0x5ef4db=_0x493c72[_0x47ee4b])&&(_0x31b645=_0x5ef4db(_0x31b645)||_0x31b645);return _0x31b645;},F=(_0x17a408,_0x1ba768)=>(_0x449c19,_0x467754)=>_0x1ba768(_0x449c19,_0x467754,_0x17a408),B=(_0x1a8d3f,_0x1eb3b6,_0x1a635b)=>Ge(_0x1a8d3f,typeof _0x1eb3b6!='symbol'?_0x1eb3b6+'':_0x1eb3b6,_0x1a635b);function _0x1222(_0x1ae22d,_0x56d74b){const _0x5737d1=_0x5737();return _0x1222=function(_0x122212,_0x47b29b){_0x122212=_0x122212-0x126;let _0x26ecd0=_0x5737d1[_0x122212];return _0x26ecd0;},_0x1222(_0x1ae22d,_0x56d74b);}const Ye=_0x33c0d5(0x1aa);let b=class extends _0x2e958d{constructor(_0x2fae6e=T,_0x4a87e9,_0x3a0f26){const _0x49638d=_0x33c0d5;super(),this[_0x49638d(0x128)]=_0x2fae6e,this['_injector']=_0x4a87e9,this[_0x49638d(0x19b)]=_0x3a0f26;const {..._0x2cf667}=_0x551b22({},T,this[_0x49638d(0x128)]);this[_0x49638d(0x19b)][_0x49638d(0x14a)](ye,_0x2cf667);}[_0x33c0d5(0x16f)](){const _0x2b25d2=_0x33c0d5;_0x25b9eb(this[_0x2b25d2(0x1ac)],_0x4c2590([[L],[S],[I],[m]],this[_0x2b25d2(0x128)][_0x2b25d2(0x18f)])),_0x2704d5(this[_0x2b25d2(0x1ac)],[[I]]);}[_0x33c0d5(0x177)](){const _0x391f29=_0x33c0d5;_0x2704d5(this[_0x391f29(0x1ac)],[[m]]);}};B(b,_0x33c0d5(0x1ab),_0x4e0037[_0x33c0d5(0x176)]),B(b,_0x33c0d5(0x13a),Ye),b=We([_0x5cad98(_0x17a4d8),F(0x1,_0x1465af(_0x574d75)),F(0x2,_0x3c1f5c)],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 _0x3d493c=_0x26b2;(function(_0x5a7eee,_0x5843f3){const _0x37bafa=_0x26b2,_0x47c072=_0x5a7eee();while(!![]){try{const _0x25a607=parseInt(_0x37bafa(0x10c))/0x1*(parseInt(_0x37bafa(0xff))/0x2)+-parseInt(_0x37bafa(0x110))/0x3+-parseInt(_0x37bafa(0xf4))/0x4*(-parseInt(_0x37bafa(0xfe))/0x5)+-parseInt(_0x37bafa(0x106))/0x6+parseInt(_0x37bafa(0x103))/0x7+-parseInt(_0x37bafa(0x101))/0x8*(-parseInt(_0x37bafa(0xfb))/0x9)+parseInt(_0x37bafa(0x107))/0xa;if(_0x25a607===_0x5843f3)break;else _0x47c072['push'](_0x47c072['shift']());}catch(_0x270fbb){_0x47c072['push'](_0x47c072['shift']());}}}(_0x1d68,0x1a865));import{LiveShareController as _0x30732c,LiveShareStatus as _0x27f431}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x1f62e4}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x2e2c02}from'@univerjs/sheets';import{SetScrollOperation as _0x23aa4c}from'@univerjs/sheets-ui';import{FRange as _0x31d273}from'@univerjs/sheets/facade';import{FUniver as _0x4e8923,FEnum as _0x595c1f}from'@univerjs/core/facade';class I extends _0x31d273{['_initialize'](_0x58d307,_0x4fd541,_0x1c8c42,_0x4a1bac,_0x4c2316){const _0x559afe=_0x26b2,_0x1707ed=_0x58d307[_0x559afe(0xfa)](_0x30732c),_0x4f039c=_0x58d307[_0x559afe(0xfa)](_0x1f62e4),_0x2d02b8=_0x4fd541[_0x559afe(0x111)](),_0x36af57=_0x4fd541[_0x559afe(0x100)](),_0x22e673=_0x1707ed['getLiveShareCoordinatorSync'](_0x2d02b8);(_0x22e673==null?void 0x0:_0x22e673[_0x559afe(0xf2)]())!==_0x27f431[_0x559afe(0xf8)]||(_0x1c8c42[_0x559afe(0x10b)]()!==_0x36af57[_0x559afe(0x10b)]()&&this['_commandService'][_0x559afe(0xfc)](_0x2e2c02['id'],{'unitId':_0x2d02b8,'subUnitId':_0x1c8c42[_0x559afe(0x10b)]()}),!_0x4f039c[_0x559afe(0xf6)](_0x2d02b8))||_0x4c2316[_0x559afe(0x10f)](_0x23aa4c['id'],{'unitId':_0x4fd541['getUnitId'](),'sheetId':_0x1c8c42[_0x559afe(0x10b)](),'sheetViewStartRow':_0x4a1bac['startRow'],'sheetViewStartColumn':_0x4a1bac[_0x559afe(0x105)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x31d273['extend'](I);function _0x1d68(){const _0x4fb5b0=['LiveShareStatusEnum','syncExecuteCommand','507087UuaXzO','getUnitId','startFollowing','getStatus','getActiveWorkbook','76548iHxlVJ','getLiveShareCoordinatorSync','getRenderById','tryStartPresenting','PRESENTING','IDLE','get','18zyCjVc','executeCommand','stopFollowing','40leUanr','122XWCHvG','getActiveSheet','125992LrrRHH','getLiveShareStatus','114821DSJqOj','extend','startColumn','641256wPPhby','1315200GaLRoV','No\x20active\x20workbook\x20found.','_injector','getId','getSheetId','853uAieWJ','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.'];_0x1d68=function(){return _0x4fb5b0;};return _0x1d68();}function _0x26b2(_0x4f2c9e,_0x203c7b){const _0x1d6898=_0x1d68();return _0x26b2=function(_0x26b2a3,_0x3b2a22){_0x26b2a3=_0x26b2a3-0xf2;let _0x37420a=_0x1d6898[_0x26b2a3];return _0x37420a;},_0x26b2(_0x4f2c9e,_0x203c7b);}class m extends _0x4e8923{[_0x3d493c(0x102)](){const _0x1f9362=_0x3d493c;var _0x22e510,_0x31a870;const _0x2a3775=this[_0x1f9362(0x109)][_0x1f9362(0xfa)](_0x30732c),_0x4f51ed=(_0x22e510=this['getActiveWorkbook']())==null?void 0x0:_0x22e510['getId']();if(!_0x4f51ed)throw new Error('No\x20active\x20workbook\x20found.');const _0x30bb73=_0x2a3775['getLiveShareCoordinatorSync'](_0x4f51ed);return(_0x31a870=_0x30bb73==null?void 0x0:_0x30bb73[_0x1f9362(0xf2)]())!=null?_0x31a870:_0x27f431[_0x1f9362(0xf9)];}[_0x3d493c(0x112)](){const _0x390306=_0x3d493c;var _0x141b0c;const _0xa6fd3=this['_injector'][_0x390306(0xfa)](_0x30732c),_0x56532d=(_0x141b0c=this[_0x390306(0xf3)]())==null?void 0x0:_0x141b0c[_0x390306(0x10a)]();if(!_0x56532d)throw new Error(_0x390306(0x108));const _0x4c18b6=_0xa6fd3['getLiveShareCoordinatorSync'](_0x56532d);if(!_0x4c18b6)throw new Error(_0x390306(0x10d));_0x4c18b6[_0x390306(0x112)]();}[_0x3d493c(0xfd)](){const _0x14ea82=_0x3d493c;var _0x4ad526;const _0x14d570=this[_0x14ea82(0x109)][_0x14ea82(0xfa)](_0x30732c),_0x5357f6=(_0x4ad526=this[_0x14ea82(0xf3)]())==null?void 0x0:_0x4ad526['getId']();if(!_0x5357f6)throw new Error('No\x20active\x20workbook\x20found.');const _0x2c54e6=_0x14d570[_0x14ea82(0xf5)](_0x5357f6);if(!_0x2c54e6)throw new Error(_0x14ea82(0x10d));_0x2c54e6[_0x14ea82(0xfd)]();}['startPresenting'](){const _0x4d090d=_0x3d493c;var _0x516f11;const _0x179eff=this['_injector'][_0x4d090d(0xfa)](_0x30732c),_0x5c6f50=(_0x516f11=this[_0x4d090d(0xf3)]())==null?void 0x0:_0x516f11[_0x4d090d(0x10a)]();if(!_0x5c6f50)throw new Error(_0x4d090d(0x108));const _0x4d1aab=_0x179eff[_0x4d090d(0xf5)](_0x5c6f50);if(!_0x4d1aab)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4d1aab[_0x4d090d(0xf7)]();}['stopPresenting'](){const _0x3d6ecd=_0x3d493c;var _0x5413e;const _0x59ae79=this['_injector'][_0x3d6ecd(0xfa)](_0x30732c),_0x4162=(_0x5413e=this[_0x3d6ecd(0xf3)]())==null?void 0x0:_0x5413e[_0x3d6ecd(0x10a)]();if(!_0x4162)throw new Error(_0x3d6ecd(0x108));const _0x3638e2=_0x59ae79[_0x3d6ecd(0xf5)](_0x4162);if(!_0x3638e2)throw new Error(_0x3d6ecd(0x10d));_0x3638e2['stopPresenting']();}}_0x4e8923['extend'](m);class C extends _0x595c1f{get[_0x3d493c(0x10e)](){return _0x27f431;}}_0x595c1f[_0x3d493c(0x104)](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x11b6eb=_0x54c5;(function(_0x418aa4,_0x46e2f9){const _0x3f6b1c=_0x54c5,_0x4edc84=_0x418aa4();while(!![]){try{const _0xeaee8d=parseInt(_0x3f6b1c(0x1d0))/0x1*(-parseInt(_0x3f6b1c(0x257))/0x2)+-parseInt(_0x3f6b1c(0x273))/0x3*(parseInt(_0x3f6b1c(0x207))/0x4)+parseInt(_0x3f6b1c(0x1d7))/0x5+parseInt(_0x3f6b1c(0x1ff))/0x6+parseInt(_0x3f6b1c(0x1fc))/0x7*(-parseInt(_0x3f6b1c(0x208))/0x8)+parseInt(_0x3f6b1c(0x21b))/0x9+parseInt(_0x3f6b1c(0x216))/0xa;if(_0xeaee8d===_0x46e2f9)break;else _0x4edc84['push'](_0x4edc84['shift']());}catch(_0x5ac5b5){_0x4edc84['push'](_0x4edc84['shift']());}}}(_0x1e4f,0x35a99));var J=Object[_0x11b6eb(0x262)],K=(_0x288cae,_0xf92ce1,_0x372a6b)=>_0xf92ce1 in _0x288cae?J(_0x288cae,_0xf92ce1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x372a6b}):_0x288cae[_0xf92ce1]=_0x372a6b,u=(_0x3f82ad,_0x1ae34f,_0x4aa1a0)=>K(_0x3f82ad,typeof _0x1ae34f!=_0x11b6eb(0x260)?_0x1ae34f+'':_0x1ae34f,_0x4aa1a0);import{Disposable as _0x1488b8,toDisposable as _0xc8298e,IUniverInstanceService as _0x41e0ae,Inject as _0x34997e,Injector as _0x172459,IConfigService as _0x586d2f,ICommandService as _0x43fef4,RxDisposable as _0x2a59c6,UniverInstanceType as _0x30dc91,DisposableCollection as _0x537ad0,CommandType as _0xf4e9d3,DependentOn as _0x1db9f3,Plugin as _0x4e2557,merge as _0x6531d9,registerDependencies as _0x5507b0,mergeOverrideWithDependencies as _0x350506,touchDependencies as _0x6327c4}from'@univerjs/core';import{useDependency as _0x138bea,useObservable as _0x5a2037,IUIPartsService as _0x274200,BuiltInUIPart as _0xe162dd,connectInjector as _0x437101}from'@univerjs/ui';import{jsx as _0x4d2be6,jsxs as _0x57c5c7,Fragment as _0xa0c774}from'react/jsx-runtime';import{Dropdown as _0xef8b71,clsx as _0x1b48c8,Button as _0x23cb3d}from'@univerjs/design';import{useRef as _0x2f0507,createElement as _0x4693a1,forwardRef as _0x2916ff,useState as _0x2af4b9,useEffect as _0x22d44a}from'react';import{CollaborationEvent as _0x22cfb1,parseProtocolChangeset as _0xcb2e04}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3926f7,SessionStatus as _0x442896,UniverCollaborationClientPlugin as _0x12ac27}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x49fa8f,SetWorksheetActiveOperation as _0x4b8267}from'@univerjs/sheets';import{BehaviorSubject as _0xdd1c4e,Subject as _0x1059fe}from'rxjs';import{takeUntil as _0x2d117c,throttleTime as _0x274690}from'rxjs/operators';import{SetZoomRatioOperation as _0x3a77e6,SetScrollOperation as _0x5e3f90}from'@univerjs/sheets-ui';function k({ref:_0x15ba60,..._0xcd5b24}){const _0x3f8236=_0x11b6eb,{icon:_0x39986c,id:_0x5337b6,className:_0x55ed26,extend:_0x229d37,..._0x593f1f}=_0xcd5b24,_0x11ffa4=(_0x3f8236(0x1d9)+_0x5337b6+'\x20'+(_0x55ed26||''))['trim'](),_0x3aed19=_0x2f0507('_'+Oe());return G(_0x39986c,''+_0x5337b6,{'defIds':_0x39986c['defIds'],'idSuffix':_0x3aed19[_0x3f8236(0x26f)]},{'ref':_0x15ba60,'className':_0x11ffa4,..._0x593f1f},_0x229d37);}function G(_0x136669,_0x5bc0d8,_0x286476,_0x41ac78,_0x844976){const _0x10e63f=_0x11b6eb;return _0x4693a1(_0x136669[_0x10e63f(0x23e)],{'key':_0x5bc0d8,...be(_0x136669,_0x286476,_0x844976),..._0x41ac78},(Ee(_0x136669,_0x286476)[_0x10e63f(0x22d)]||[])['map']((_0x293970,_0x151a35)=>G(_0x293970,_0x5bc0d8+'-'+_0x136669[_0x10e63f(0x23e)]+'-'+_0x151a35,_0x286476,void 0x0,_0x844976)));}function be(_0x536bd9,_0x128553,_0x2c7863){const _0x936f9=_0x11b6eb,_0x44b459={..._0x536bd9[_0x936f9(0x271)]};_0x2c7863!=null&&_0x2c7863[_0x936f9(0x211)]&&_0x44b459[_0x936f9(0x225)]===_0x936f9(0x211)&&(_0x44b459[_0x936f9(0x225)]=_0x2c7863['colorChannel1']),_0x536bd9['tag']==='mask'&&_0x44b459['id']&&(_0x44b459['id']=_0x44b459['id']+_0x128553['idSuffix']),Object[_0x936f9(0x227)](_0x44b459)['forEach'](([_0x47cdc9,_0x428db4])=>{const _0x32ac60=_0x936f9;_0x47cdc9==='mask'&&typeof _0x428db4=='string'&&(_0x44b459[_0x47cdc9]=_0x428db4[_0x32ac60(0x248)](/url\(#(.*)\)/,_0x32ac60(0x21d)+_0x128553[_0x32ac60(0x23c)]+')'));});const {defIds:_0x3c88cf}=_0x128553;return!_0x3c88cf||_0x3c88cf[_0x936f9(0x209)]===0x0||(_0x536bd9['tag']===_0x936f9(0x1f2)&&_0x44b459[_0x936f9(0x1ed)]&&(_0x44b459[_0x936f9(0x1ed)]=_0x44b459[_0x936f9(0x1ed)]+_0x128553[_0x936f9(0x23c)]),Object['entries'](_0x44b459)[_0x936f9(0x25e)](([_0x3826a4,_0x5e48a3])=>{const _0x158286=_0x936f9;typeof _0x5e48a3==_0x158286(0x20c)&&(_0x44b459[_0x3826a4]=_0x5e48a3[_0x158286(0x248)](/url\(#(.*)\)/,_0x158286(0x21d)+_0x128553[_0x158286(0x23c)]+')'));})),_0x44b459;}function Ee(_0x4b2588,_0x5c2cdf){const _0xd16ff0=_0x11b6eb;var _0xf4889a;const {defIds:_0x279f00}=_0x5c2cdf;return!_0x279f00||_0x279f00[_0xd16ff0(0x209)]===0x0?_0x4b2588:_0x4b2588[_0xd16ff0(0x23e)]===_0xd16ff0(0x1e4)&&((_0xf4889a=_0x4b2588[_0xd16ff0(0x22d)])!=null&&_0xf4889a[_0xd16ff0(0x209)])?{..._0x4b2588,'children':_0x4b2588[_0xd16ff0(0x22d)][_0xd16ff0(0x1d5)](_0x392b65=>typeof _0x392b65[_0xd16ff0(0x271)]['id']==_0xd16ff0(0x20c)&&_0x279f00&&_0x279f00['includes'](_0x392b65['attrs']['id'])?{..._0x392b65,'attrs':{..._0x392b65[_0xd16ff0(0x271)],'id':_0x392b65['attrs']['id']+_0x5c2cdf[_0xd16ff0(0x23c)]}}:_0x392b65)}:_0x4b2588;}function Oe(){const _0x15f411=_0x11b6eb;return Math['random']()[_0x15f411(0x251)](0x24)[_0x15f411(0x246)](0x2,0x8);}k[_0x11b6eb(0x21e)]=_0x11b6eb(0x1eb);const we={'tag':_0x11b6eb(0x252),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x11b6eb(0x1cd),'viewBox':_0x11b6eb(0x1ee),'width':_0x11b6eb(0x1ec),'height':_0x11b6eb(0x1ec)},'children':[{'tag':_0x11b6eb(0x272),'attrs':{'fill':_0x11b6eb(0x244),'d':_0x11b6eb(0x25b)}},{'tag':'path','attrs':{'fill':_0x11b6eb(0x244),'d':_0x11b6eb(0x223),'fillRule':'evenodd','clipRule':_0x11b6eb(0x1e5)}}]},W=_0x2916ff(function(_0x31f0eb,_0x114be7){const _0x6b71c6=_0x11b6eb;return _0x4693a1(k,Object[_0x6b71c6(0x275)]({},_0x31f0eb,{'id':_0x6b71c6(0x203),'ref':_0x114be7,'icon':we}));});W[_0x11b6eb(0x21e)]=_0x11b6eb(0x210);class L extends _0x1488b8{constructor(){const _0x187bea=_0x11b6eb;super(...arguments),u(this,_0x187bea(0x23d),new Set()),u(this,_0x187bea(0x229),new Set());}[_0x11b6eb(0x23f)](_0x158060){const _0x37a3b6=_0x11b6eb;return this['_sharedOperations'][_0x37a3b6(0x24c)](_0x158060),_0xc8298e(()=>this['_sharedOperations'][_0x37a3b6(0x218)](_0x158060));}[_0x11b6eb(0x240)](_0x40f42f){const _0x21980b=_0x11b6eb;return this['_reporters'][_0x21980b(0x24c)](_0x40f42f),_0xc8298e(()=>this[_0x21980b(0x229)][_0x21980b(0x218)](_0x40f42f));}['shouldShareOperation'](_0x52b18f){const _0x5a10ce=_0x11b6eb;return this['_sharedOperations'][_0x5a10ce(0x1d6)](_0x52b18f);}[_0x11b6eb(0x245)](_0xf39133){const _0x5f47e4=_0x11b6eb;return Array['from'](this[_0x5f47e4(0x229)])['map'](_0x4f7263=>_0x4f7263(_0xf39133));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0x1d211f,_0x53137e,_0x55eb84,_0xa88252)=>{for(var _0x2fca2e=_0xa88252>0x1?void 0x0:_0xa88252?Ne(_0x53137e,_0x55eb84):_0x53137e,_0x189193=_0x1d211f['length']-0x1,_0x4c40b9;_0x189193>=0x0;_0x189193--)(_0x4c40b9=_0x1d211f[_0x189193])&&(_0x2fca2e=_0x4c40b9(_0x2fca2e)||_0x2fca2e);return _0x2fca2e;},_=(_0x15797f,_0x272207)=>(_0x3350f6,_0x91ac93)=>_0x272207(_0x3350f6,_0x91ac93,_0x15797f);let S=class extends _0x2a59c6{constructor(_0x5e6954,_0x255fd4,_0x5aa4ac){const _0x5bd724=_0x11b6eb;super(),u(this,_0x5bd724(0x242),new Map()),(this['_univerInstanceService']=_0x5e6954,this[_0x5bd724(0x26b)]=_0x255fd4,this[_0x5bd724(0x1f8)]=_0x5aa4ac,this['_init']());}async[_0x11b6eb(0x205)](_0x53bb06){const _0x36ee54=_0x11b6eb;return this['_entities'][_0x36ee54(0x1d6)](_0x53bb06)||await this['_startLiveShareCoordinator'](_0x53bb06),this[_0x36ee54(0x242)]['get'](_0x53bb06);}[_0x11b6eb(0x267)](_0x1759c4){const _0x2b7a3b=_0x11b6eb;var _0x2a7b48;return(_0x2a7b48=this['_entities'][_0x2b7a3b(0x270)](_0x1759c4))!=null?_0x2a7b48:null;}[_0x11b6eb(0x1dc)](){const _0x29d409=_0x11b6eb;this[_0x29d409(0x206)]['getTypeOfUnitAdded$'](_0x30dc91['UNIVER_SHEET'])['pipe'](_0x2d117c(this[_0x29d409(0x1f4)]))['subscribe'](async _0x1b26aa=>{const _0x520262=_0x29d409,_0xd0e9af=_0x1b26aa[_0x520262(0x1f9)]();this[_0x520262(0x242)][_0x520262(0x1d6)](_0xd0e9af)||this['_startLiveShareCoordinator'](_0xd0e9af);}),this[_0x29d409(0x206)][_0x29d409(0x231)](_0x30dc91[_0x29d409(0x24f)])['pipe'](_0x2d117c(this[_0x29d409(0x1f4)]))[_0x29d409(0x204)](_0x57738d=>{const _0x1a8037=_0x29d409,_0x4f3d71=_0x57738d['getUnitId'](),_0x50d797=this['_entities'][_0x1a8037(0x270)](_0x4f3d71);_0x50d797==null||_0x50d797['dispose']();});}async[_0x11b6eb(0x21c)](_0x12bd1e){const _0x27fe9c=_0x11b6eb,_0x5b541b=await this[_0x27fe9c(0x1f8)][_0x27fe9c(0x1e1)](_0x12bd1e),_0x28e7a5=this[_0x27fe9c(0x26b)][_0x27fe9c(0x202)](N,_0x12bd1e,_0x5b541b);return _0x28e7a5[_0x27fe9c(0x1dd)](),this[_0x27fe9c(0x242)][_0x27fe9c(0x26e)](_0x12bd1e,_0x28e7a5),_0x28e7a5;}};S=Y([_(0x0,_0x41e0ae),_(0x1,_0x34997e(_0x172459)),_(0x2,_0x34997e(_0x3926f7))],S);var c=(_0x26ecd0=>(_0x26ecd0[_0x11b6eb(0x247)]=_0x11b6eb(0x263),_0x26ecd0[_0x11b6eb(0x21f)]=_0x11b6eb(0x261),_0x26ecd0['FOLLOWING']=_0x11b6eb(0x228),_0x26ecd0[_0x11b6eb(0x237)]='not-following',_0x26ecd0[_0x11b6eb(0x26d)]=_0x11b6eb(0x1cf),_0x26ecd0))(c||{});function _0x1e4f(){const _0x14a054=['_config','asObservable','7336910zpOGuR','NEW_CHANGESETS','delete','_fetchOperations','LIVESHARE_OPERATION','559638FPbKuN','_startLiveShareCoordinator','url(#$1','displayName','IDLE','Stop\x20following','_collabSession','find','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','_handleTerminate','fill','then','entries','following','_reporters','pipe','_beIdle','dispose','children','event$','params','_mountLiveShare','getTypeOfUnitDisposed$','_status$','unitId','div','disposeWithMe','getMemberID','NOT_FOLLOWING','_stopFollowing','operations','_unitID','type','idSuffix','_sharedOperations','tag','registerSharedOperation','registerInitialStateReporter','data','_entities','live-share.config','currentColor','getInitialStates','substring','OFFLINE','replace','complete','You\x27are\x20offline.','stopFollowing','add','_stopPresenting','LIVESHARE_NEW_HOST','UNIVER_SHEET','_startPresenting','toString','svg','univer-size-4','_presenter','You\x27re\x20not\x20following\x20the\x20presenter','includes','32698UFThGU','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_REQUEST_HOST','_startFollowing','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','pluginName','presenter','forEach','Start','symbol','idle','defineProperty','offline','stopPresenting','end','getStatus','getLiveShareCoordinatorSync','startFollowing','sessionStatus$','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','_injector','onCommandExecuted','PRESENTING','set','current','get','attrs','path','178371BQyFUy','stringify','assign','memberID','ONLINE','clear','registerComponent','none','_configService','presenting','25hUFxgX','button','getOwnPropertyDescriptor','getConfig','SAME_OPERATION_SHARE_INTERVAL','map','has','258075yynvPG','_uiPartsService','univerjs-icon\x20univerjs-icon-','not-following','parse','_init','init','_status','LIVESHARE_FETCH_OPERATIONS','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','requireSession','executeCommand','_handleNewChangeSets','defs','evenodd','unsubscribe','_commandService','sheet','FOLLOWING','reverse','UniverIcon','1em','xlink:href','0\x200\x2017\x2017','_commandDisposable','onStarting','_liveShareService','use','default','dispose$','_handleOperation','send','tryStartPresenting','_collabSessionService','getUnitId','getCurrentTypeOfUnit$','univer-mb-3\x20univer-w-full\x20univer-text-sm','14GSxefv','status$','_handleNewHost','2267178CdIcsq','mutations','next','createInstance','live-share-icon','subscribe','getLiveShareCoordinator','_univerInstanceService','12jlXabr','1673816TcqAcD','length','UNIVER_UNKNOWN','Present\x20this\x20document','string','Stop\x20presenting','OPERATION','override','LiveShareIcon','colorChannel1','shouldShareOperation','LIVESHARE_TERMINATE'];_0x1e4f=function(){return _0x14a054;};return _0x1e4f();}const Ce=_0x11b6eb(0x1d4),De=0xc8;let N=class extends _0x2a59c6{constructor(_0x3df8e1,_0x5c69c2,_0x3a4a59,_0x4ff255,_0x4f8c0a){const _0x4a1d13=_0x11b6eb;super(),u(this,_0x4a1d13(0x232),new _0xdd1c4e(_0x4a1d13(0x261))),u(this,_0x4a1d13(0x1fd),this['_status$'][_0x4a1d13(0x215)]()),u(this,_0x4a1d13(0x1dc),!0x1),u(this,'_commandDisposable',null),u(this,_0x4a1d13(0x254),null),(this[_0x4a1d13(0x23a)]=_0x3df8e1,this[_0x4a1d13(0x221)]=_0x5c69c2,this[_0x4a1d13(0x1ce)]=_0x3a4a59,this[_0x4a1d13(0x1f1)]=_0x4ff255,this[_0x4a1d13(0x1e7)]=_0x4f8c0a);}get[_0x11b6eb(0x1de)](){const _0x29ad33=_0x11b6eb;return this[_0x29ad33(0x232)]['getValue']();}['dispose'](){const _0x35ddfc=_0x11b6eb;var _0x16a093;(_0x16a093=this[_0x35ddfc(0x1ef)])==null||_0x16a093[_0x35ddfc(0x22c)](),this[_0x35ddfc(0x232)][_0x35ddfc(0x201)](_0x35ddfc(0x261)),this[_0x35ddfc(0x232)][_0x35ddfc(0x249)]();}[_0x11b6eb(0x266)](){const _0x44c87d=_0x11b6eb;return this[_0x44c87d(0x1de)];}[_0x11b6eb(0x1dd)](){const _0x368a34=_0x11b6eb;this['_init']||(this[_0x368a34(0x1dc)]=!0x0,this[_0x368a34(0x221)][_0x368a34(0x269)][_0x368a34(0x22a)](_0x2d117c(this[_0x368a34(0x1f4)]))[_0x368a34(0x204)](_0x4b1b8a=>{const _0xaff4f6=_0x368a34;switch(_0x4b1b8a){case _0x442896['OFFLINE']:this['_handleOffline']();break;case _0x442896[_0xaff4f6(0x1ca)]:this['_handleOnline']();break;}}),this[_0x368a34(0x221)][_0x368a34(0x22e)][_0x368a34(0x22a)](_0x2d117c(this['dispose$']))['subscribe'](_0x39d3c4=>{const _0x4ae8a7=_0x368a34,{eventID:_0x5ab451}=_0x39d3c4;switch(_0x5ab451){case _0x22cfb1[_0x4ae8a7(0x24e)]:this['_handleNewHost'](_0x39d3c4);break;case _0x22cfb1[_0x4ae8a7(0x21a)]:this['_handleOperation'](_0x39d3c4);break;case _0x22cfb1[_0x4ae8a7(0x213)]:this[_0x4ae8a7(0x224)]();break;case _0x22cfb1[_0x4ae8a7(0x217)]:this['_handleNewChangeSets'](_0x39d3c4);break;}}));}[_0x11b6eb(0x1f7)](){const _0x490fab=_0x11b6eb;this['_collabSession'][_0x490fab(0x1f6)]({'eventID':_0x22cfb1[_0x490fab(0x259)],'data':{'unitID':this['_unitID'],'userID':this[_0x490fab(0x221)]['getMemberID']()}},this[_0x490fab(0x23a)]);}[_0x11b6eb(0x264)](){const _0x4c0ff6=_0x11b6eb;this[_0x4c0ff6(0x1de)]===_0x4c0ff6(0x1cf)&&(this['_status$'][_0x4c0ff6(0x201)](_0x4c0ff6(0x261)),this[_0x4c0ff6(0x221)][_0x4c0ff6(0x1f6)]({'eventID':_0x22cfb1[_0x4c0ff6(0x213)],'data':{'unitID':this[_0x4c0ff6(0x23a)]}},this['_unitID']));}['startFollowing'](){const _0x904f6e=_0x11b6eb;this[_0x904f6e(0x1de)]===_0x904f6e(0x1da)&&(this[_0x904f6e(0x232)][_0x904f6e(0x201)](_0x904f6e(0x228)),this[_0x904f6e(0x25a)]());}[_0x11b6eb(0x24b)](){const _0x545b6a=_0x11b6eb;this[_0x545b6a(0x1de)]===_0x545b6a(0x228)&&this[_0x545b6a(0x238)]();}[_0x11b6eb(0x1fe)](_0x45d7b4){const _0x1c77e5=_0x11b6eb,{presenter:_0x4ea448}=_0x45d7b4[_0x1c77e5(0x241)],_0x5a4c1f=this[_0x1c77e5(0x221)][_0x1c77e5(0x236)]();this[_0x1c77e5(0x254)]=_0x4ea448,_0x4ea448===_0x5a4c1f?(this[_0x1c77e5(0x238)](),this[_0x1c77e5(0x250)]()):this['_status']!=='not-following'&&(this[_0x1c77e5(0x24d)](),this[_0x1c77e5(0x25a)]());}[_0x11b6eb(0x219)](){const _0x210f4e=_0x11b6eb,_0x5767d9={'eventID':_0x22cfb1[_0x210f4e(0x1df)]};this[_0x210f4e(0x221)][_0x210f4e(0x1f6)](_0x5767d9,this[_0x210f4e(0x23a)]);}[_0x11b6eb(0x224)](){const _0x591fec=_0x11b6eb;this[_0x591fec(0x254)]=null,this[_0x591fec(0x1de)]!=='presenting'&&this[_0x591fec(0x22b)]();}[_0x11b6eb(0x1e3)](_0x5e91b9){const _0x1b1542=_0x11b6eb;if(this[_0x1b1542(0x1de)]===_0x1b1542(0x228)&&this[_0x1b1542(0x254)]===_0x5e91b9[_0x1b1542(0x241)][_0x1b1542(0x276)]){const _0x3aa936=_0xcb2e04(_0x5e91b9[_0x1b1542(0x241)])[_0x1b1542(0x200)][_0x1b1542(0x1ea)]()[_0x1b1542(0x222)](_0xa478ed=>_0xa478ed['id']===_0x49fa8f['id']);if(_0x3aa936){const _0x56986b=_0x3aa936['params'][_0x1b1542(0x233)],_0x29bf7e=_0x3aa936[_0x1b1542(0x22f)][_0x1b1542(0x1e8)]['id'];setTimeout(()=>{const _0x28acb3=_0x1b1542;this[_0x28acb3(0x1e7)][_0x28acb3(0x1e2)](_0x4b8267['id'],{'unitId':_0x56986b,'subUnitId':_0x29bf7e},{'fromCollab':!0x0});});}}}[_0x11b6eb(0x250)](){const _0x14bb61=_0x11b6eb;this[_0x14bb61(0x232)]['next']('presenting');const _0x5bfa21=new Map(),_0x401fa4=this['_commandDisposable']=new _0x537ad0();_0x401fa4['add'](_0xc8298e(()=>{const _0x4a5654=_0x14bb61;_0x5bfa21[_0x4a5654(0x25e)](_0x55197b=>_0x55197b[_0x4a5654(0x249)]()),_0x5bfa21[_0x4a5654(0x1cb)]();})),_0x401fa4['add'](this[_0x14bb61(0x1e7)][_0x14bb61(0x26c)](_0x49858e=>{const _0x4e8731=_0x14bb61;var _0x2d2887;if(_0x49858e['type']!==_0xf4e9d3[_0x4e8731(0x20e)]||!this['_liveShareService'][_0x4e8731(0x212)](_0x49858e['id']))return;const {id:_0x58ef73}=_0x49858e;let _0x6261e;_0x5bfa21[_0x4e8731(0x1d6)](_0x58ef73)?_0x6261e=_0x5bfa21['get'](_0x58ef73):(_0x6261e=new _0x1059fe(),_0x5bfa21[_0x4e8731(0x26e)](_0x58ef73,_0x6261e),_0x6261e[_0x4e8731(0x22a)](_0x274690((_0x2d2887=this['_configService'][_0x4e8731(0x1d3)](Ce))!=null?_0x2d2887:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4e8731(0x204)](_0x3ac1cf=>{const _0x5c8042=_0x4e8731;this[_0x5c8042(0x221)]['send']({'eventID':_0x22cfb1[_0x5c8042(0x21a)],'data':{'unitID':this[_0x5c8042(0x23a)],'operations':{[_0x3ac1cf['id']]:{'id':_0x3ac1cf['id'],'params':JSON['stringify'](_0x3ac1cf[_0x5c8042(0x22f)])}}}},this[_0x5c8042(0x23a)]);})),_0x6261e['next'](_0x49858e);})),this['_liveShareService']['getInitialStates'](this['_unitID'])['forEach'](_0x25bc6e=>this[_0x14bb61(0x221)][_0x14bb61(0x1f6)]({'eventID':_0x22cfb1[_0x14bb61(0x21a)],'data':{'unitID':this[_0x14bb61(0x23a)],'operations':{[_0x25bc6e['id']]:{'id':_0x25bc6e['id'],'params':JSON[_0x14bb61(0x274)](_0x25bc6e[_0x14bb61(0x22f)])}}}},this[_0x14bb61(0x23a)]));}[_0x11b6eb(0x24d)](){const _0x12a207=_0x11b6eb;var _0x1e822e;this[_0x12a207(0x232)][_0x12a207(0x201)](_0x12a207(0x261)),(_0x1e822e=this[_0x12a207(0x1ef)])==null||_0x1e822e[_0x12a207(0x22c)](),this['_commandDisposable']=null;}[_0x11b6eb(0x25a)](){const _0x3de75b=_0x11b6eb;var _0x440789;(_0x440789=this[_0x3de75b(0x1ef)])==null||_0x440789[_0x3de75b(0x22c)](),this[_0x3de75b(0x232)][_0x3de75b(0x201)]('following');}[_0x11b6eb(0x22b)](){const _0x32410f=_0x11b6eb;var _0x27c408;this[_0x32410f(0x232)][_0x32410f(0x201)](_0x32410f(0x261)),(_0x27c408=this[_0x32410f(0x1ef)])==null||_0x27c408['dispose'](),this[_0x32410f(0x1ef)]=null;}[_0x11b6eb(0x238)](){const _0x141240=_0x11b6eb;var _0x3dfd67;this[_0x141240(0x232)][_0x141240(0x201)](_0x141240(0x1da)),(_0x3dfd67=this[_0x141240(0x1ef)])==null||_0x3dfd67[_0x141240(0x22c)]();}[_0x11b6eb(0x1f5)](_0x3f5674){const _0x5a9bf9=_0x11b6eb;if([_0x5a9bf9(0x1cf),'not-following',_0x5a9bf9(0x263)][_0x5a9bf9(0x256)](this[_0x5a9bf9(0x1de)])||!_0x3f5674[_0x5a9bf9(0x241)][_0x5a9bf9(0x25d)]||_0x3f5674[_0x5a9bf9(0x241)]['presenter']===this[_0x5a9bf9(0x221)][_0x5a9bf9(0x236)]())return;this['_status']===_0x5a9bf9(0x261)&&this[_0x5a9bf9(0x25a)]();const _0x3a4158=_0x3f5674[_0x5a9bf9(0x241)][_0x5a9bf9(0x239)];Object['values'](_0x3a4158)[_0x5a9bf9(0x25e)](_0x10154e=>{const _0xc2d404=_0x5a9bf9;this[_0xc2d404(0x1e7)]['executeCommand'](_0x10154e['id'],_0x10154e[_0xc2d404(0x22f)]?JSON[_0xc2d404(0x1db)](_0x10154e['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x512728=_0x11b6eb;var _0x5d09aa;this[_0x512728(0x232)]['next'](_0x512728(0x263)),(_0x5d09aa=this['_commandDisposable'])==null||_0x5d09aa[_0x512728(0x22c)]();}['_handleOnline'](){const _0x3f59e2=_0x11b6eb;this[_0x3f59e2(0x232)][_0x3f59e2(0x201)](_0x3f59e2(0x261)),this['_fetchOperations']();}};N=Y([_(0x2,_0x586d2f),_(0x3,_0x34997e(L)),_(0x4,_0x43fef4)],N);function Le(){const _0x16c21c=_0x11b6eb,_0x4cec2a=_0x138bea(S),_0x471b54=_0x138bea(_0x41e0ae),_0x413690=_0x5a2037(()=>_0x471b54[_0x16c21c(0x1fa)](_0x30dc91[_0x16c21c(0x24f)]),void 0x0,!0x1,[]),[_0x242625,_0xebd6d2]=_0x2af4b9(null),[_0x31da5f,_0x3cb4e6]=_0x2af4b9(c['IDLE']),_0x139d59=_0x2f0507(null);return _0x22d44a(()=>(_0x413690&&_0x4cec2a[_0x16c21c(0x205)](_0x413690[_0x16c21c(0x1f9)]())[_0x16c21c(0x226)](_0x4efc0f=>{const _0x5324fd=_0x16c21c;_0xebd6d2(_0x4efc0f),_0x139d59[_0x5324fd(0x26f)]=_0x4efc0f[_0x5324fd(0x1fd)][_0x5324fd(0x204)](_0x2c4102=>{_0x3cb4e6(_0x2c4102);});}),()=>{const _0x4d2dba=_0x16c21c;var _0x51a3d3;(_0x51a3d3=_0x139d59['current'])==null||_0x51a3d3[_0x4d2dba(0x1e6)](),_0x139d59[_0x4d2dba(0x26f)]=null;}),[_0x413690,_0x4cec2a]),_0x242625?_0x4d2be6(_0xef8b71,{'align':_0x16c21c(0x265),'disabled':_0x31da5f===c[_0x16c21c(0x247)],'className':_0x16c21c(0x26a),'overlay':_0x4d2be6(Re,{'status':_0x31da5f,'coordinator':_0x242625}),'children':_0x4d2be6(_0x16c21c(0x1d1),{'className':_0x1b48c8(_0x16c21c(0x1e0),{'univer-cursor-not-allowed':_0x31da5f===c[_0x16c21c(0x247)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x31da5f!==c[_0x16c21c(0x247)]}),'type':'button','children':_0x4d2be6(W,{'className':_0x16c21c(0x253)})})}):null;}function Re(_0x1a0cf1){const _0x379eda=_0x11b6eb,{status:_0x3f220c,coordinator:_0x2d6ce0}=_0x1a0cf1;switch(_0x3f220c){case c[_0x379eda(0x21f)]:return _0x4d2be6($e,{'coordinator':_0x2d6ce0});case c[_0x379eda(0x1e9)]:return _0x4d2be6(xe,{'coordinator':_0x2d6ce0});case c[_0x379eda(0x237)]:return _0x4d2be6(Pe,{'coordinator':_0x2d6ce0});case c[_0x379eda(0x247)]:return _0x4d2be6(Te,{});case c[_0x379eda(0x26d)]:return _0x4d2be6(Ae,{'coordinator':_0x2d6ce0});default:return null;}}function $e(_0x590e4f){const _0x470752=_0x11b6eb,{coordinator:_0x230193}=_0x590e4f;return _0x57c5c7(_0xa0c774,{'children':[_0x4d2be6(_0x470752(0x234),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x470752(0x20b)}),_0x4d2be6(_0x23cb3d,{'onClick':()=>_0x230193[_0x470752(0x1f7)](),'children':_0x470752(0x25f)})]});}function xe(_0x3ca136){const _0x275bb7=_0x11b6eb,{coordinator:_0x572915}=_0x3ca136;return _0x57c5c7(_0xa0c774,{'children':[_0x4d2be6(_0x275bb7(0x234),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x4d2be6(_0x23cb3d,{'onClick':()=>_0x572915[_0x275bb7(0x24b)](),'children':_0x275bb7(0x220)})]});}function Pe(_0x589811){const _0x39732f=_0x11b6eb,{coordinator:_0x2b7e62}=_0x589811;return _0x57c5c7(_0xa0c774,{'children':[_0x4d2be6(_0x39732f(0x234),{'className':_0x39732f(0x1fb),'children':_0x39732f(0x255)}),_0x4d2be6(_0x23cb3d,{'variant':'text','onClick':()=>_0x2b7e62[_0x39732f(0x268)](),'children':'Start\x20following'})]});}function Ae(_0x217d88){const _0x3f2db2=_0x11b6eb,{coordinator:_0x16fd5b}=_0x217d88;return _0x57c5c7(_0xa0c774,{'children':[_0x4d2be6(_0x3f2db2(0x234),{'className':_0x3f2db2(0x1fb),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x4d2be6(_0x23cb3d,{'variant':_0x3f2db2(0x1f3),'onClick':()=>_0x16fd5b[_0x3f2db2(0x264)](),'children':_0x3f2db2(0x20d)})]});}function Te(){const _0x38fd24=_0x11b6eb;return _0x4d2be6(_0xa0c774,{'children':_0x38fd24(0x24a)});}function _0x54c5(_0xe7a61e,_0x1aff34){const _0x1e4fad=_0x1e4f();return _0x54c5=function(_0x54c51c,_0x3f2c49){_0x54c51c=_0x54c51c-0x1ca;let _0x50767b=_0x1e4fad[_0x54c51c];return _0x50767b;},_0x54c5(_0xe7a61e,_0x1aff34);}var Fe=Object[_0x11b6eb(0x1d2)],He=(_0x38c998,_0x4ea12c,_0x32bc5d,_0x176234)=>{const _0x1aad53=_0x11b6eb;for(var _0x2e9d14=_0x176234>0x1?void 0x0:_0x176234?Fe(_0x4ea12c,_0x32bc5d):_0x4ea12c,_0x432a90=_0x38c998[_0x1aad53(0x209)]-0x1,_0x26e754;_0x432a90>=0x0;_0x432a90--)(_0x26e754=_0x38c998[_0x432a90])&&(_0x2e9d14=_0x26e754(_0x2e9d14)||_0x2e9d14);return _0x2e9d14;},A=(_0xa17375,_0x4a8e82)=>(_0x56bb98,_0x5eae5d)=>_0x4a8e82(_0x56bb98,_0x5eae5d,_0xa17375);let m=class extends _0x1488b8{constructor(_0x2945c9,_0x559605){const _0x359654=_0x11b6eb;super(),this[_0x359654(0x26b)]=_0x2945c9,this[_0x359654(0x1d8)]=_0x559605,this[_0x359654(0x230)]();}['_mountLiveShare'](){const _0x4bbbb7=_0x11b6eb;this['disposeWithMe'](this['_uiPartsService'][_0x4bbbb7(0x1cc)](_0xe162dd['HEADER_MENU'],()=>_0x437101(Le,this[_0x4bbbb7(0x26b)])));}};m=He([A(0x0,_0x34997e(_0x172459)),A(0x1,_0x274200)],m);const ye=_0x11b6eb(0x243),T={};var Ue=Object[_0x11b6eb(0x1d2)],Ve=(_0x411382,_0x2e8368,_0x52c4ba,_0xaebcd6)=>{const _0x28a6a1=_0x11b6eb;for(var _0x9360d9=_0xaebcd6>0x1?void 0x0:_0xaebcd6?Ue(_0x2e8368,_0x52c4ba):_0x2e8368,_0x2b0fd5=_0x411382[_0x28a6a1(0x209)]-0x1,_0x4bcfff;_0x2b0fd5>=0x0;_0x2b0fd5--)(_0x4bcfff=_0x411382[_0x2b0fd5])&&(_0x9360d9=_0x4bcfff(_0x9360d9)||_0x9360d9);return _0x9360d9;},je=(_0x22af56,_0x42b3dd)=>(_0x411372,_0x4c15e9)=>_0x42b3dd(_0x411372,_0x4c15e9,_0x22af56);let I=class extends _0x1488b8{constructor(_0x5822de){const _0x521c05=_0x11b6eb;super(),this[_0x521c05(0x1f1)]=_0x5822de,this['_init']();}[_0x11b6eb(0x1dc)](){const _0x4f1c9c=_0x11b6eb;[_0x3a77e6['id'],_0x5e3f90['id'],_0x4b8267['id']][_0x4f1c9c(0x25e)](_0x2ab669=>{const _0x21b666=_0x4f1c9c;this[_0x21b666(0x235)](this[_0x21b666(0x1f1)][_0x21b666(0x23f)](_0x2ab669));});}};I=Ve([je(0x0,_0x34997e(L))],I);var Me=Object[_0x11b6eb(0x262)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x37d6de,_0x73cce6,_0x53f01e)=>_0x73cce6 in _0x37d6de?Me(_0x37d6de,_0x73cce6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53f01e}):_0x37d6de[_0x73cce6]=_0x53f01e,We=(_0x4d4862,_0x2b1df5,_0x4179e8,_0x348e1a)=>{const _0x21f4eb=_0x11b6eb;for(var _0x48e571=_0x348e1a>0x1?void 0x0:_0x348e1a?ke(_0x2b1df5,_0x4179e8):_0x2b1df5,_0x4b5328=_0x4d4862[_0x21f4eb(0x209)]-0x1,_0x4db8c5;_0x4b5328>=0x0;_0x4b5328--)(_0x4db8c5=_0x4d4862[_0x4b5328])&&(_0x48e571=_0x4db8c5(_0x48e571)||_0x48e571);return _0x48e571;},F=(_0x468ae7,_0x4ecec)=>(_0x4f3af4,_0x1b9600)=>_0x4ecec(_0x4f3af4,_0x1b9600,_0x468ae7),B=(_0x117af5,_0x4af8be,_0x5b70e0)=>Ge(_0x117af5,typeof _0x4af8be!='symbol'?_0x4af8be+'':_0x4af8be,_0x5b70e0);const Ye=_0x11b6eb(0x258);let b=class extends _0x4e2557{constructor(_0x48756a=T,_0x5caf02,_0x4940e3){const _0x150edf=_0x11b6eb;super(),this[_0x150edf(0x214)]=_0x48756a,this[_0x150edf(0x26b)]=_0x5caf02,this[_0x150edf(0x1ce)]=_0x4940e3;const {..._0x9354b9}=_0x6531d9({},T,this[_0x150edf(0x214)]);this['_configService']['setConfig'](ye,_0x9354b9);}[_0x11b6eb(0x1f0)](){const _0x4af5fb=_0x11b6eb;_0x5507b0(this['_injector'],_0x350506([[L],[S],[I],[m]],this[_0x4af5fb(0x214)][_0x4af5fb(0x20f)])),_0x6327c4(this[_0x4af5fb(0x26b)],[[I]]);}['onRendered'](){_0x6327c4(this['_injector'],[[m]]);}};B(b,_0x11b6eb(0x23b),_0x30dc91[_0x11b6eb(0x20a)]),B(b,_0x11b6eb(0x25c),Ye),b=We([_0x1db9f3(_0x12ac27),F(0x1,_0x34997e(_0x172459)),F(0x2,_0x586d2f)],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 _0x33c0d5=_0x1222;(function(_0xc38f3c,_0x1da37d){const _0x134b08=_0x1222,_0x42afae=_0xc38f3c();while(!![]){try{const _0x247247=-parseInt(_0x134b08(0x1b6))/0x1+parseInt(_0x134b08(0x126))/0x2*(parseInt(_0x134b08(0x15c))/0x3)+parseInt(_0x134b08(0x191))/0x4+-parseInt(_0x134b08(0x166))/0x5*(-parseInt(_0x134b08(0x145))/0x6)+-parseInt(_0x134b08(0x1a1))/0x7*(-parseInt(_0x134b08(0x136))/0x8)+-parseInt(_0x134b08(0x165))/0x9*(-parseInt(_0x134b08(0x1c7))/0xa)+-parseInt(_0x134b08(0x169))/0xb;if(_0x247247===_0x1da37d)break;else _0x42afae['push'](_0x42afae['shift']());}catch(_0x3845c9){_0x42afae['push'](_0x42afae['shift']());}}}(_0x5737,0xd1d56));var J=Object['defineProperty'],K=(_0x2f0abe,_0x58c7d8,_0x1262e3)=>_0x58c7d8 in _0x2f0abe?J(_0x2f0abe,_0x58c7d8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1262e3}):_0x2f0abe[_0x58c7d8]=_0x1262e3,u=(_0x1bbc44,_0x63953d,_0x31ddb8)=>K(_0x1bbc44,typeof _0x63953d!='symbol'?_0x63953d+'':_0x63953d,_0x31ddb8);import{Disposable as _0x2eb520,toDisposable as _0xa18819,IUniverInstanceService as _0x213847,Inject as _0x1465af,Injector as _0x574d75,IConfigService as _0x3c1f5c,ICommandService as _0x2771da,RxDisposable as _0x207d4a,UniverInstanceType as _0x4e0037,DisposableCollection as _0x3472ee,CommandType as _0x2a1b33,DependentOn as _0x5cad98,Plugin as _0x2e958d,merge as _0x551b22,registerDependencies as _0x25b9eb,mergeOverrideWithDependencies as _0x4c2590,touchDependencies as _0x2704d5}from'@univerjs/core';import{useDependency as _0xd36f04,useObservable as _0x48b784,IUIPartsService as _0x45f094,BuiltInUIPart as _0x323948,connectInjector as _0x15a4f6}from'@univerjs/ui';import{jsx as _0x49193b,jsxs as _0x48b03d,Fragment as _0x456367}from'react/jsx-runtime';import{Dropdown as _0x35d73c,clsx as _0x4c3322,Button as _0x1199fb}from'@univerjs/design';import{useRef as _0xe1e52d,createElement as _0x35b954,forwardRef as _0x11b4d3,useState as _0x3f7468,useEffect as _0x1d6da2}from'react';import{CollaborationEvent as _0x29bfd2,parseProtocolChangeset as _0x1b4190}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xf04e22,SessionStatus as _0xdd7313,UniverCollaborationClientPlugin as _0x17a4d8}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x2b76f4,SetWorksheetActiveOperation as _0x4e0d10}from'@univerjs/sheets';import{BehaviorSubject as _0x29530b,Subject as _0x1f94fd}from'rxjs';import{takeUntil as _0x4ca9d7,throttleTime as _0x1b3748}from'rxjs/operators';import{SetZoomRatioOperation as _0x13e569,SetScrollOperation as _0x4f372f}from'@univerjs/sheets-ui';function k({ref:_0x3e2a3e,..._0x1d0690}){const _0x105f3e=_0x1222,{icon:_0x1995c9,id:_0x88d405,className:_0x570eb7,extend:_0x172618,..._0xd0f503}=_0x1d0690,_0x52cfb5=(_0x105f3e(0x132)+_0x88d405+'\x20'+(_0x570eb7||''))[_0x105f3e(0x146)](),_0x1420d5=_0xe1e52d('_'+Oe());return G(_0x1995c9,''+_0x88d405,{'defIds':_0x1995c9[_0x105f3e(0x17a)],'idSuffix':_0x1420d5[_0x105f3e(0x1ca)]},{'ref':_0x3e2a3e,'className':_0x52cfb5,..._0xd0f503},_0x172618);}function G(_0x1dcff4,_0x5754a0,_0x16f9cb,_0x1d4c04,_0x1c8f49){const _0x5bc735=_0x1222;return _0x35b954(_0x1dcff4[_0x5bc735(0x137)],{'key':_0x5754a0,...be(_0x1dcff4,_0x16f9cb,_0x1c8f49),..._0x1d4c04},(Ee(_0x1dcff4,_0x16f9cb)['children']||[])[_0x5bc735(0x1ce)]((_0x52e04c,_0x511943)=>G(_0x52e04c,_0x5754a0+'-'+_0x1dcff4['tag']+'-'+_0x511943,_0x16f9cb,void 0x0,_0x1c8f49)));}function be(_0x588129,_0x3b87ac,_0x574f9f){const _0x41e82b=_0x1222,_0x41fe0c={..._0x588129[_0x41e82b(0x149)]};_0x574f9f!=null&&_0x574f9f['colorChannel1']&&_0x41fe0c[_0x41e82b(0x1bb)]===_0x41e82b(0x1c2)&&(_0x41fe0c['fill']=_0x574f9f[_0x41e82b(0x1c2)]),_0x588129[_0x41e82b(0x137)]===_0x41e82b(0x14f)&&_0x41fe0c['id']&&(_0x41fe0c['id']=_0x41fe0c['id']+_0x3b87ac[_0x41e82b(0x185)]),Object[_0x41e82b(0x148)](_0x41fe0c)[_0x41e82b(0x15a)](([_0x4949d1,_0x2f2bf0])=>{const _0x3d91f9=_0x41e82b;_0x4949d1===_0x3d91f9(0x14f)&&typeof _0x2f2bf0==_0x3d91f9(0x19e)&&(_0x41fe0c[_0x4949d1]=_0x2f2bf0[_0x3d91f9(0x140)](/url\(#(.*)\)/,_0x3d91f9(0x16a)+_0x3b87ac[_0x3d91f9(0x185)]+')'));});const {defIds:_0x5c5cf1}=_0x3b87ac;return!_0x5c5cf1||_0x5c5cf1[_0x41e82b(0x155)]===0x0||(_0x588129[_0x41e82b(0x137)]===_0x41e82b(0x1b0)&&_0x41fe0c[_0x41e82b(0x1c9)]&&(_0x41fe0c[_0x41e82b(0x1c9)]=_0x41fe0c[_0x41e82b(0x1c9)]+_0x3b87ac[_0x41e82b(0x185)]),Object[_0x41e82b(0x148)](_0x41fe0c)[_0x41e82b(0x15a)](([_0x5e8fe4,_0x545ecd])=>{const _0xd51f4a=_0x41e82b;typeof _0x545ecd==_0xd51f4a(0x19e)&&(_0x41fe0c[_0x5e8fe4]=_0x545ecd[_0xd51f4a(0x140)](/url\(#(.*)\)/,_0xd51f4a(0x16a)+_0x3b87ac[_0xd51f4a(0x185)]+')'));})),_0x41fe0c;}function Ee(_0x42441f,_0x35a4d9){const _0x5a4c62=_0x1222;var _0x28e393;const {defIds:_0x476973}=_0x35a4d9;return!_0x476973||_0x476973[_0x5a4c62(0x155)]===0x0?_0x42441f:_0x42441f[_0x5a4c62(0x137)]===_0x5a4c62(0x18d)&&((_0x28e393=_0x42441f[_0x5a4c62(0x19f)])!=null&&_0x28e393[_0x5a4c62(0x155)])?{..._0x42441f,'children':_0x42441f[_0x5a4c62(0x19f)]['map'](_0x1d72fa=>typeof _0x1d72fa[_0x5a4c62(0x149)]['id']=='string'&&_0x476973&&_0x476973['includes'](_0x1d72fa[_0x5a4c62(0x149)]['id'])?{..._0x1d72fa,'attrs':{..._0x1d72fa[_0x5a4c62(0x149)],'id':_0x1d72fa['attrs']['id']+_0x35a4d9[_0x5a4c62(0x185)]}}:_0x1d72fa)}:_0x42441f;}function Oe(){const _0x564b23=_0x1222;return Math[_0x564b23(0x183)]()[_0x564b23(0x1b4)](0x24)[_0x564b23(0x16b)](0x2,0x8);}k[_0x33c0d5(0x15f)]='UniverIcon';const we={'tag':_0x33c0d5(0x1a0),'attrs':{'xmlns':_0x33c0d5(0x12b),'fill':_0x33c0d5(0x1b9),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x33c0d5(0x180)},'children':[{'tag':_0x33c0d5(0x19d),'attrs':{'fill':_0x33c0d5(0x16c),'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':_0x33c0d5(0x19d),'attrs':{'fill':'currentColor','d':_0x33c0d5(0x141),'fillRule':_0x33c0d5(0x14d),'clipRule':'evenodd'}}]},W=_0x11b4d3(function(_0x2f8ab0,_0x31a285){const _0x17d585=_0x33c0d5;return _0x35b954(k,Object[_0x17d585(0x131)]({},_0x2f8ab0,{'id':_0x17d585(0x1af),'ref':_0x31a285,'icon':we}));});W['displayName']=_0x33c0d5(0x195);class L extends _0x2eb520{constructor(){const _0x259797=_0x33c0d5;super(...arguments),u(this,_0x259797(0x152),new Set()),u(this,_0x259797(0x13f),new Set());}['registerSharedOperation'](_0x422cf7){const _0x1cbd7d=_0x33c0d5;return this[_0x1cbd7d(0x152)][_0x1cbd7d(0x12c)](_0x422cf7),_0xa18819(()=>this['_sharedOperations'][_0x1cbd7d(0x13c)](_0x422cf7));}['registerInitialStateReporter'](_0x24ac55){const _0x49eae2=_0x33c0d5;return this['_reporters']['add'](_0x24ac55),_0xa18819(()=>this[_0x49eae2(0x13f)][_0x49eae2(0x13c)](_0x24ac55));}[_0x33c0d5(0x190)](_0x1c02f0){const _0x3eaae5=_0x33c0d5;return this[_0x3eaae5(0x152)][_0x3eaae5(0x188)](_0x1c02f0);}['getInitialStates'](_0x1c1e29){const _0xe77863=_0x33c0d5;return Array[_0xe77863(0x142)](this[_0xe77863(0x13f)])['map'](_0x254b07=>_0x254b07(_0x1c1e29));}}var Ne=Object[_0x33c0d5(0x1c6)],Y=(_0x1c3ef3,_0x335640,_0x13906b,_0x3415f8)=>{const _0x48eb5d=_0x33c0d5;for(var _0x5e233e=_0x3415f8>0x1?void 0x0:_0x3415f8?Ne(_0x335640,_0x13906b):_0x335640,_0x4b7fd1=_0x1c3ef3[_0x48eb5d(0x155)]-0x1,_0x2c0daa;_0x4b7fd1>=0x0;_0x4b7fd1--)(_0x2c0daa=_0x1c3ef3[_0x4b7fd1])&&(_0x5e233e=_0x2c0daa(_0x5e233e)||_0x5e233e);return _0x5e233e;},_=(_0x338328,_0x1ca725)=>(_0x41b81f,_0x1877ef)=>_0x1ca725(_0x41b81f,_0x1877ef,_0x338328);let S=class extends _0x207d4a{constructor(_0x3620b5,_0x144df6,_0x65207c){const _0x26802a=_0x33c0d5;super(),u(this,_0x26802a(0x1a5),new Map()),(this['_univerInstanceService']=_0x3620b5,this[_0x26802a(0x1ac)]=_0x144df6,this['_collabSessionService']=_0x65207c,this[_0x26802a(0x161)]());}async[_0x33c0d5(0x1b5)](_0x581452){const _0x42f907=_0x33c0d5;return this[_0x42f907(0x1a5)][_0x42f907(0x188)](_0x581452)||await this[_0x42f907(0x1b7)](_0x581452),this['_entities']['get'](_0x581452);}[_0x33c0d5(0x1c1)](_0x4b561b){const _0x418d14=_0x33c0d5;var _0x38919e;return(_0x38919e=this[_0x418d14(0x1a5)][_0x418d14(0x15d)](_0x4b561b))!=null?_0x38919e:null;}[_0x33c0d5(0x161)](){const _0x49cf7e=_0x33c0d5;this[_0x49cf7e(0x139)][_0x49cf7e(0x1a3)](_0x4e0037['UNIVER_SHEET'])[_0x49cf7e(0x1c0)](_0x4ca9d7(this[_0x49cf7e(0x147)]))['subscribe'](async _0xdb3ebf=>{const _0x55b154=_0x49cf7e,_0x5e6e4d=_0xdb3ebf[_0x55b154(0x16d)]();this[_0x55b154(0x1a5)]['has'](_0x5e6e4d)||this['_startLiveShareCoordinator'](_0x5e6e4d);}),this[_0x49cf7e(0x139)]['getTypeOfUnitDisposed$'](_0x4e0037[_0x49cf7e(0x14b)])[_0x49cf7e(0x1c0)](_0x4ca9d7(this[_0x49cf7e(0x147)]))[_0x49cf7e(0x144)](_0x728095=>{const _0x58f6ef=_0x49cf7e,_0x2fe5e3=_0x728095['getUnitId'](),_0x21e7eb=this[_0x58f6ef(0x1a5)][_0x58f6ef(0x15d)](_0x2fe5e3);_0x21e7eb==null||_0x21e7eb['dispose']();});}async['_startLiveShareCoordinator'](_0x5d6ce2){const _0x36c28c=_0x33c0d5,_0xa7079d=await this[_0x36c28c(0x1a2)][_0x36c28c(0x154)](_0x5d6ce2),_0x24caf2=this[_0x36c28c(0x1ac)][_0x36c28c(0x175)](N,_0x5d6ce2,_0xa7079d);return _0x24caf2[_0x36c28c(0x199)](),this['_entities']['set'](_0x5d6ce2,_0x24caf2),_0x24caf2;}};function _0x5737(){const _0x2b629e=['Start\x20following','button','map','72LyiNun','next','_config','_status$','memberID','http://www.w3.org/2000/svg','add','following','LIVESHARE_REQUEST_HOST','presenting','clear','assign','univerjs-icon\x20univerjs-icon-','OFFLINE','_handleNewChangeSets','_collabSession','312jCJPzZ','tag','_handleOperation','_univerInstanceService','pluginName','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','delete','_uiPartsService','_handleOnline','_reporters','replace','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','from','You\x27re\x20presenting\x20the\x20document','subscribe','276TkWyuL','trim','dispose$','entries','attrs','setConfig','UNIVER_SHEET','params','evenodd','data','mask','_commandService','_liveShareService','_sharedOperations','getCurrentTypeOfUnit$','requireSession','length','end','reverse','_mountLiveShare','_presenter','forEach','getInitialStates','59379UBoXFP','get','_status','displayName','getMemberID','_init','tryStartPresenting','ONLINE','_handleOffline','612yOGUIo','20065KtogHw','stringify','parse','30409698mZwYqX','url(#$1','substring','currentColor','getUnitId','_handleNewHost','onStarting','_commandDisposable','_startFollowing','getValue','_stopFollowing','registerComponent','createInstance','UNIVER_UNKNOWN','onRendered','LIVESHARE_OPERATION','SAME_OPERATION_SHARE_INTERVAL','defIds','HEADER_MENU','stopPresenting','not-following','complete','IDLE','1em','univer-size-4','PRESENTING','random','You\x27are\x20offline.','idSuffix','Present\x20this\x20document','idle','has','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startPresenting','sessionStatus$','_handleTerminate','defs','event$','override','shouldShareOperation','5616468MUlbij','Stop\x20following','executeCommand','_beIdle','LiveShareIcon','OPERATION','then','You\x27re\x20not\x20following\x20the\x20presenter','init','sheet','_configService','disposeWithMe','path','string','children','svg','209517zmPTbu','_collabSessionService','getTypeOfUnitAdded$','status$','_entities','operations','_stopPresenting','default','_unitID','UNIVER_LIVE_SHARE_PLUGIN','type','_injector','onCommandExecuted','_fetchOperations','live-share-icon','use','getStatus','div','unitId','toString','getLiveShareCoordinator','191036mmUoud','_startLiveShareCoordinator','send','none','NOT_FOLLOWING','fill','offline','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','startFollowing','You\x27re\x20following\x20the\x20presenter','pipe','getLiveShareCoordinatorSync','colorChannel1','stopFollowing','values','FOLLOWING','getOwnPropertyDescriptor','50950dxBeyJ','dispose','xlink:href','current','LIVESHARE_FETCH_OPERATIONS'];_0x5737=function(){return _0x2b629e;};return _0x5737();}S=Y([_(0x0,_0x213847),_(0x1,_0x1465af(_0x574d75)),_(0x2,_0x1465af(_0xf04e22))],S);var c=(_0xaaabbd=>(_0xaaabbd['OFFLINE']=_0x33c0d5(0x1bc),_0xaaabbd[_0x33c0d5(0x17f)]=_0x33c0d5(0x187),_0xaaabbd[_0x33c0d5(0x1c5)]=_0x33c0d5(0x12d),_0xaaabbd[_0x33c0d5(0x1ba)]=_0x33c0d5(0x17d),_0xaaabbd[_0x33c0d5(0x182)]=_0x33c0d5(0x12f),_0xaaabbd))(c||{});const Ce=_0x33c0d5(0x179),De=0xc8;let N=class extends _0x207d4a{constructor(_0x104238,_0x20136b,_0xf13c15,_0x441d09,_0x3499f3){const _0x432099=_0x33c0d5;super(),u(this,_0x432099(0x129),new _0x29530b('idle')),u(this,_0x432099(0x1a4),this[_0x432099(0x129)]['asObservable']()),u(this,_0x432099(0x161),!0x1),u(this,_0x432099(0x170),null),u(this,_0x432099(0x159),null),(this[_0x432099(0x1a9)]=_0x104238,this[_0x432099(0x135)]=_0x20136b,this[_0x432099(0x19b)]=_0xf13c15,this[_0x432099(0x151)]=_0x441d09,this[_0x432099(0x150)]=_0x3499f3);}get[_0x33c0d5(0x15e)](){const _0x31a985=_0x33c0d5;return this[_0x31a985(0x129)][_0x31a985(0x172)]();}['dispose'](){const _0x34299e=_0x33c0d5;var _0x25fada;(_0x25fada=this[_0x34299e(0x170)])==null||_0x25fada['dispose'](),this[_0x34299e(0x129)][_0x34299e(0x127)](_0x34299e(0x187)),this[_0x34299e(0x129)][_0x34299e(0x17e)]();}[_0x33c0d5(0x1b1)](){const _0x5c323f=_0x33c0d5;return this[_0x5c323f(0x15e)];}[_0x33c0d5(0x199)](){const _0x305fde=_0x33c0d5;this[_0x305fde(0x161)]||(this[_0x305fde(0x161)]=!0x0,this[_0x305fde(0x135)][_0x305fde(0x18b)]['pipe'](_0x4ca9d7(this[_0x305fde(0x147)]))[_0x305fde(0x144)](_0x3e8af5=>{const _0x3c97c8=_0x305fde;switch(_0x3e8af5){case _0xdd7313[_0x3c97c8(0x133)]:this[_0x3c97c8(0x164)]();break;case _0xdd7313[_0x3c97c8(0x163)]:this[_0x3c97c8(0x13e)]();break;}}),this['_collabSession'][_0x305fde(0x18e)][_0x305fde(0x1c0)](_0x4ca9d7(this[_0x305fde(0x147)]))[_0x305fde(0x144)](_0x3cbdb2=>{const _0x454ec8=_0x305fde,{eventID:_0x47052b}=_0x3cbdb2;switch(_0x47052b){case _0x29bfd2['LIVESHARE_NEW_HOST']:this[_0x454ec8(0x16e)](_0x3cbdb2);break;case _0x29bfd2[_0x454ec8(0x178)]:this[_0x454ec8(0x138)](_0x3cbdb2);break;case _0x29bfd2['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x29bfd2['NEW_CHANGESETS']:this[_0x454ec8(0x134)](_0x3cbdb2);break;}}));}[_0x33c0d5(0x162)](){const _0x262827=_0x33c0d5;this[_0x262827(0x135)][_0x262827(0x1b8)]({'eventID':_0x29bfd2[_0x262827(0x12e)],'data':{'unitID':this[_0x262827(0x1a9)],'userID':this[_0x262827(0x135)][_0x262827(0x160)]()}},this[_0x262827(0x1a9)]);}[_0x33c0d5(0x17c)](){const _0x340766=_0x33c0d5;this['_status']===_0x340766(0x12f)&&(this[_0x340766(0x129)][_0x340766(0x127)](_0x340766(0x187)),this[_0x340766(0x135)][_0x340766(0x1b8)]({'eventID':_0x29bfd2['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x340766(0x1a9)]}},this[_0x340766(0x1a9)]));}['startFollowing'](){const _0x3d6962=_0x33c0d5;this[_0x3d6962(0x15e)]===_0x3d6962(0x17d)&&(this[_0x3d6962(0x129)]['next']('following'),this[_0x3d6962(0x171)]());}[_0x33c0d5(0x1c3)](){const _0x1c9ebc=_0x33c0d5;this[_0x1c9ebc(0x15e)]==='following'&&this['_stopFollowing']();}[_0x33c0d5(0x16e)](_0x6447ca){const _0x399d76=_0x33c0d5,{presenter:_0x1f9c53}=_0x6447ca[_0x399d76(0x14e)],_0x147f73=this[_0x399d76(0x135)][_0x399d76(0x160)]();this[_0x399d76(0x159)]=_0x1f9c53,_0x1f9c53===_0x147f73?(this[_0x399d76(0x173)](),this['_startPresenting']()):this[_0x399d76(0x15e)]!==_0x399d76(0x17d)&&(this[_0x399d76(0x1a7)](),this[_0x399d76(0x171)]());}['_fetchOperations'](){const _0x49150a=_0x33c0d5,_0x120f6b={'eventID':_0x29bfd2[_0x49150a(0x1cb)]};this[_0x49150a(0x135)][_0x49150a(0x1b8)](_0x120f6b,this[_0x49150a(0x1a9)]);}[_0x33c0d5(0x18c)](){const _0x5874a9=_0x33c0d5;this[_0x5874a9(0x159)]=null,this[_0x5874a9(0x15e)]!==_0x5874a9(0x12f)&&this[_0x5874a9(0x194)]();}['_handleNewChangeSets'](_0x1ffaab){const _0x2729f7=_0x33c0d5;if(this[_0x2729f7(0x15e)]===_0x2729f7(0x12d)&&this['_presenter']===_0x1ffaab[_0x2729f7(0x14e)][_0x2729f7(0x12a)]){const _0x555b18=_0x1b4190(_0x1ffaab[_0x2729f7(0x14e)])['mutations'][_0x2729f7(0x157)]()['find'](_0x273be6=>_0x273be6['id']===_0x2b76f4['id']);if(_0x555b18){const _0x40688c=_0x555b18[_0x2729f7(0x14c)][_0x2729f7(0x1b3)],_0x313969=_0x555b18['params'][_0x2729f7(0x19a)]['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x4e0d10['id'],{'unitId':_0x40688c,'subUnitId':_0x313969},{'fromCollab':!0x0});});}}}[_0x33c0d5(0x18a)](){const _0x221cf7=_0x33c0d5;this[_0x221cf7(0x129)][_0x221cf7(0x127)](_0x221cf7(0x12f));const _0x1cfc55=new Map(),_0x1b9c67=this[_0x221cf7(0x170)]=new _0x3472ee();_0x1b9c67[_0x221cf7(0x12c)](_0xa18819(()=>{const _0x140d66=_0x221cf7;_0x1cfc55[_0x140d66(0x15a)](_0x3b6e48=>_0x3b6e48[_0x140d66(0x17e)]()),_0x1cfc55[_0x140d66(0x130)]();})),_0x1b9c67[_0x221cf7(0x12c)](this[_0x221cf7(0x150)][_0x221cf7(0x1ad)](_0x32b363=>{const _0x1b67b0=_0x221cf7;var _0x65dd7;if(_0x32b363[_0x1b67b0(0x1ab)]!==_0x2a1b33[_0x1b67b0(0x196)]||!this[_0x1b67b0(0x151)][_0x1b67b0(0x190)](_0x32b363['id']))return;const {id:_0x26ebe7}=_0x32b363;let _0x22fab2;_0x1cfc55[_0x1b67b0(0x188)](_0x26ebe7)?_0x22fab2=_0x1cfc55['get'](_0x26ebe7):(_0x22fab2=new _0x1f94fd(),_0x1cfc55['set'](_0x26ebe7,_0x22fab2),_0x22fab2[_0x1b67b0(0x1c0)](_0x1b3748((_0x65dd7=this['_configService']['getConfig'](Ce))!=null?_0x65dd7:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x243441=>{const _0x2479af=_0x1b67b0;this[_0x2479af(0x135)]['send']({'eventID':_0x29bfd2[_0x2479af(0x178)],'data':{'unitID':this[_0x2479af(0x1a9)],'operations':{[_0x243441['id']]:{'id':_0x243441['id'],'params':JSON[_0x2479af(0x167)](_0x243441[_0x2479af(0x14c)])}}}},this[_0x2479af(0x1a9)]);})),_0x22fab2['next'](_0x32b363);})),this[_0x221cf7(0x151)][_0x221cf7(0x15b)](this[_0x221cf7(0x1a9)])['forEach'](_0x35245a=>this[_0x221cf7(0x135)][_0x221cf7(0x1b8)]({'eventID':_0x29bfd2['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x221cf7(0x1a9)],'operations':{[_0x35245a['id']]:{'id':_0x35245a['id'],'params':JSON[_0x221cf7(0x167)](_0x35245a['params'])}}}},this[_0x221cf7(0x1a9)]));}['_stopPresenting'](){const _0x1dbc32=_0x33c0d5;var _0x39c24f;this[_0x1dbc32(0x129)]['next'](_0x1dbc32(0x187)),(_0x39c24f=this[_0x1dbc32(0x170)])==null||_0x39c24f[_0x1dbc32(0x1c8)](),this[_0x1dbc32(0x170)]=null;}[_0x33c0d5(0x171)](){const _0x42e372=_0x33c0d5;var _0x532fc8;(_0x532fc8=this['_commandDisposable'])==null||_0x532fc8[_0x42e372(0x1c8)](),this['_status$'][_0x42e372(0x127)](_0x42e372(0x12d));}[_0x33c0d5(0x194)](){const _0x5a8405=_0x33c0d5;var _0x66b38a;this[_0x5a8405(0x129)]['next'](_0x5a8405(0x187)),(_0x66b38a=this[_0x5a8405(0x170)])==null||_0x66b38a[_0x5a8405(0x1c8)](),this[_0x5a8405(0x170)]=null;}[_0x33c0d5(0x173)](){const _0x15a659=_0x33c0d5;var _0x2e679c;this[_0x15a659(0x129)][_0x15a659(0x127)](_0x15a659(0x17d)),(_0x2e679c=this['_commandDisposable'])==null||_0x2e679c[_0x15a659(0x1c8)]();}[_0x33c0d5(0x138)](_0x183c52){const _0x6d984e=_0x33c0d5;if(['presenting','not-following','offline']['includes'](this[_0x6d984e(0x15e)])||!_0x183c52[_0x6d984e(0x14e)]['presenter']||_0x183c52[_0x6d984e(0x14e)]['presenter']===this[_0x6d984e(0x135)][_0x6d984e(0x160)]())return;this[_0x6d984e(0x15e)]===_0x6d984e(0x187)&&this[_0x6d984e(0x171)]();const _0x1e3449=_0x183c52[_0x6d984e(0x14e)][_0x6d984e(0x1a6)];Object[_0x6d984e(0x1c4)](_0x1e3449)[_0x6d984e(0x15a)](_0x2f8c7d=>{const _0x4d4938=_0x6d984e;this[_0x4d4938(0x150)][_0x4d4938(0x193)](_0x2f8c7d['id'],_0x2f8c7d['params']?JSON[_0x4d4938(0x168)](_0x2f8c7d['params']):null,{'fromCollab':!0x0});});}[_0x33c0d5(0x164)](){const _0x53bc54=_0x33c0d5;var _0x50e45a;this[_0x53bc54(0x129)][_0x53bc54(0x127)](_0x53bc54(0x1bc)),(_0x50e45a=this['_commandDisposable'])==null||_0x50e45a[_0x53bc54(0x1c8)]();}[_0x33c0d5(0x13e)](){const _0x4dbb4e=_0x33c0d5;this['_status$']['next']('idle'),this[_0x4dbb4e(0x1ae)]();}};N=Y([_(0x2,_0x3c1f5c),_(0x3,_0x1465af(L)),_(0x4,_0x2771da)],N);function Le(){const _0x56c829=_0x33c0d5,_0x577148=_0xd36f04(S),_0xb8fd38=_0xd36f04(_0x213847),_0x26ac52=_0x48b784(()=>_0xb8fd38[_0x56c829(0x153)](_0x4e0037[_0x56c829(0x14b)]),void 0x0,!0x1,[]),[_0x36c11f,_0x57c9da]=_0x3f7468(null),[_0x5b75b8,_0x21c879]=_0x3f7468(c[_0x56c829(0x17f)]),_0x343147=_0xe1e52d(null);return _0x1d6da2(()=>(_0x26ac52&&_0x577148[_0x56c829(0x1b5)](_0x26ac52['getUnitId']())[_0x56c829(0x197)](_0x4b9e4c=>{const _0x411c26=_0x56c829;_0x57c9da(_0x4b9e4c),_0x343147[_0x411c26(0x1ca)]=_0x4b9e4c[_0x411c26(0x1a4)][_0x411c26(0x144)](_0x5a8237=>{_0x21c879(_0x5a8237);});}),()=>{const _0x45a284=_0x56c829;var _0x6281b8;(_0x6281b8=_0x343147[_0x45a284(0x1ca)])==null||_0x6281b8['unsubscribe'](),_0x343147[_0x45a284(0x1ca)]=null;}),[_0x26ac52,_0x577148]),_0x36c11f?_0x49193b(_0x35d73c,{'align':_0x56c829(0x156),'disabled':_0x5b75b8===c['OFFLINE'],'className':_0x56c829(0x13b),'overlay':_0x49193b(Re,{'status':_0x5b75b8,'coordinator':_0x36c11f}),'children':_0x49193b(_0x56c829(0x1cd),{'className':_0x4c3322(_0x56c829(0x1bd),{'univer-cursor-not-allowed':_0x5b75b8===c[_0x56c829(0x133)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5b75b8!==c[_0x56c829(0x133)]}),'type':_0x56c829(0x1cd),'children':_0x49193b(W,{'className':_0x56c829(0x181)})})}):null;}function Re(_0x1353a5){const _0xe9e261=_0x33c0d5,{status:_0xee14a0,coordinator:_0x138400}=_0x1353a5;switch(_0xee14a0){case c['IDLE']:return _0x49193b($e,{'coordinator':_0x138400});case c[_0xe9e261(0x1c5)]:return _0x49193b(xe,{'coordinator':_0x138400});case c[_0xe9e261(0x1ba)]:return _0x49193b(Pe,{'coordinator':_0x138400});case c['OFFLINE']:return _0x49193b(Te,{});case c[_0xe9e261(0x182)]:return _0x49193b(Ae,{'coordinator':_0x138400});default:return null;}}function $e(_0x566fb5){const _0x166b5a=_0x33c0d5,{coordinator:_0x121373}=_0x566fb5;return _0x48b03d(_0x456367,{'children':[_0x49193b(_0x166b5a(0x1b2),{'className':_0x166b5a(0x189),'children':_0x166b5a(0x186)}),_0x49193b(_0x1199fb,{'onClick':()=>_0x121373[_0x166b5a(0x162)](),'children':'Start'})]});}function xe(_0x4c9455){const _0xaa9693=_0x33c0d5,{coordinator:_0x28b4c4}=_0x4c9455;return _0x48b03d(_0x456367,{'children':[_0x49193b(_0xaa9693(0x1b2),{'className':_0xaa9693(0x189),'children':_0xaa9693(0x1bf)}),_0x49193b(_0x1199fb,{'onClick':()=>_0x28b4c4[_0xaa9693(0x1c3)](),'children':_0xaa9693(0x192)})]});}function Pe(_0x54b4a7){const _0x4462b7=_0x33c0d5,{coordinator:_0x2e917b}=_0x54b4a7;return _0x48b03d(_0x456367,{'children':[_0x49193b(_0x4462b7(0x1b2),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4462b7(0x198)}),_0x49193b(_0x1199fb,{'variant':'text','onClick':()=>_0x2e917b[_0x4462b7(0x1be)](),'children':_0x4462b7(0x1cc)})]});}function Ae(_0x55f81e){const _0x3a34a5=_0x33c0d5,{coordinator:_0x59917b}=_0x55f81e;return _0x48b03d(_0x456367,{'children':[_0x49193b(_0x3a34a5(0x1b2),{'className':_0x3a34a5(0x189),'children':_0x3a34a5(0x143)}),_0x49193b(_0x1199fb,{'variant':_0x3a34a5(0x1a8),'onClick':()=>_0x59917b[_0x3a34a5(0x17c)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x6846d=_0x33c0d5;return _0x49193b(_0x456367,{'children':_0x6846d(0x184)});}var Fe=Object[_0x33c0d5(0x1c6)],He=(_0x4b37e4,_0x198a55,_0x1e7182,_0x11e564)=>{const _0x5c3745=_0x33c0d5;for(var _0x4a86d0=_0x11e564>0x1?void 0x0:_0x11e564?Fe(_0x198a55,_0x1e7182):_0x198a55,_0xcc357f=_0x4b37e4[_0x5c3745(0x155)]-0x1,_0x3b988c;_0xcc357f>=0x0;_0xcc357f--)(_0x3b988c=_0x4b37e4[_0xcc357f])&&(_0x4a86d0=_0x3b988c(_0x4a86d0)||_0x4a86d0);return _0x4a86d0;},A=(_0x111d56,_0x12470e)=>(_0x8d18f4,_0x39d9af)=>_0x12470e(_0x8d18f4,_0x39d9af,_0x111d56);let m=class extends _0x2eb520{constructor(_0x2abe36,_0x4689d8){const _0x3bda93=_0x33c0d5;super(),this[_0x3bda93(0x1ac)]=_0x2abe36,this[_0x3bda93(0x13d)]=_0x4689d8,this[_0x3bda93(0x158)]();}['_mountLiveShare'](){const _0x42e789=_0x33c0d5;this[_0x42e789(0x19c)](this['_uiPartsService'][_0x42e789(0x174)](_0x323948[_0x42e789(0x17b)],()=>_0x15a4f6(Le,this[_0x42e789(0x1ac)])));}};m=He([A(0x0,_0x1465af(_0x574d75)),A(0x1,_0x45f094)],m);const ye='live-share.config',T={};var Ue=Object[_0x33c0d5(0x1c6)],Ve=(_0x18256d,_0x4f7013,_0x463f23,_0x28a97c)=>{const _0x4935ac=_0x33c0d5;for(var _0x54fcfd=_0x28a97c>0x1?void 0x0:_0x28a97c?Ue(_0x4f7013,_0x463f23):_0x4f7013,_0x3c8a47=_0x18256d[_0x4935ac(0x155)]-0x1,_0x1a5916;_0x3c8a47>=0x0;_0x3c8a47--)(_0x1a5916=_0x18256d[_0x3c8a47])&&(_0x54fcfd=_0x1a5916(_0x54fcfd)||_0x54fcfd);return _0x54fcfd;},je=(_0x577057,_0x47b77b)=>(_0x5daa0f,_0xf55712)=>_0x47b77b(_0x5daa0f,_0xf55712,_0x577057);let I=class extends _0x2eb520{constructor(_0xe92e93){const _0x400446=_0x33c0d5;super(),this[_0x400446(0x151)]=_0xe92e93,this[_0x400446(0x161)]();}[_0x33c0d5(0x161)](){const _0x21ea4c=_0x33c0d5;[_0x13e569['id'],_0x4f372f['id'],_0x4e0d10['id']][_0x21ea4c(0x15a)](_0x366faa=>{const _0x56259c=_0x21ea4c;this[_0x56259c(0x19c)](this[_0x56259c(0x151)]['registerSharedOperation'](_0x366faa));});}};I=Ve([je(0x0,_0x1465af(L))],I);var Me=Object['defineProperty'],ke=Object[_0x33c0d5(0x1c6)],Ge=(_0x5e08c4,_0x256ca7,_0x29d861)=>_0x256ca7 in _0x5e08c4?Me(_0x5e08c4,_0x256ca7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29d861}):_0x5e08c4[_0x256ca7]=_0x29d861,We=(_0x493c72,_0x356d27,_0x48f45e,_0x2f82e0)=>{const _0x941ad4=_0x33c0d5;for(var _0x31b645=_0x2f82e0>0x1?void 0x0:_0x2f82e0?ke(_0x356d27,_0x48f45e):_0x356d27,_0x47ee4b=_0x493c72[_0x941ad4(0x155)]-0x1,_0x5ef4db;_0x47ee4b>=0x0;_0x47ee4b--)(_0x5ef4db=_0x493c72[_0x47ee4b])&&(_0x31b645=_0x5ef4db(_0x31b645)||_0x31b645);return _0x31b645;},F=(_0x17a408,_0x1ba768)=>(_0x449c19,_0x467754)=>_0x1ba768(_0x449c19,_0x467754,_0x17a408),B=(_0x1a8d3f,_0x1eb3b6,_0x1a635b)=>Ge(_0x1a8d3f,typeof _0x1eb3b6!='symbol'?_0x1eb3b6+'':_0x1eb3b6,_0x1a635b);function _0x1222(_0x1ae22d,_0x56d74b){const _0x5737d1=_0x5737();return _0x1222=function(_0x122212,_0x47b29b){_0x122212=_0x122212-0x126;let _0x26ecd0=_0x5737d1[_0x122212];return _0x26ecd0;},_0x1222(_0x1ae22d,_0x56d74b);}const Ye=_0x33c0d5(0x1aa);let b=class extends _0x2e958d{constructor(_0x2fae6e=T,_0x4a87e9,_0x3a0f26){const _0x49638d=_0x33c0d5;super(),this[_0x49638d(0x128)]=_0x2fae6e,this['_injector']=_0x4a87e9,this[_0x49638d(0x19b)]=_0x3a0f26;const {..._0x2cf667}=_0x551b22({},T,this[_0x49638d(0x128)]);this[_0x49638d(0x19b)][_0x49638d(0x14a)](ye,_0x2cf667);}[_0x33c0d5(0x16f)](){const _0x2b25d2=_0x33c0d5;_0x25b9eb(this[_0x2b25d2(0x1ac)],_0x4c2590([[L],[S],[I],[m]],this[_0x2b25d2(0x128)][_0x2b25d2(0x18f)])),_0x2704d5(this[_0x2b25d2(0x1ac)],[[I]]);}[_0x33c0d5(0x177)](){const _0x391f29=_0x33c0d5;_0x2704d5(this[_0x391f29(0x1ac)],[[m]]);}};B(b,_0x33c0d5(0x1ab),_0x4e0037[_0x33c0d5(0x176)]),B(b,_0x33c0d5(0x13a),Ye),b=We([_0x5cad98(_0x17a4d8),F(0x1,_0x1465af(_0x574d75)),F(0x2,_0x3c1f5c)],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 _0x511d(_0x5f4378,_0x423a23){const _0x2d3f9c=_0x2d3f();return _0x511d=function(_0x511d36,_0x2f2e38){_0x511d36=_0x511d36-0x181;let _0x43c29e=_0x2d3f9c[_0x511d36];return _0x43c29e;},_0x511d(_0x5f4378,_0x423a23);}(function(_0x3e87c5,_0x3c1ed1){const _0x4f1471=_0x511d,_0x20ab59=_0x3e87c5();while(!![]){try{const _0x5bd4d6=parseInt(_0x4f1471(0x1a2))/0x1*(parseInt(_0x4f1471(0x184))/0x2)+-parseInt(_0x4f1471(0x1b2))/0x3+parseInt(_0x4f1471(0x19b))/0x4+-parseInt(_0x4f1471(0x183))/0x5+parseInt(_0x4f1471(0x1ab))/0x6+parseInt(_0x4f1471(0x18f))/0x7*(-parseInt(_0x4f1471(0x189))/0x8)+parseInt(_0x4f1471(0x1a1))/0x9;if(_0x5bd4d6===_0x3c1ed1)break;else _0x20ab59['push'](_0x20ab59['shift']());}catch(_0x127c4e){_0x20ab59['push'](_0x20ab59['shift']());}}}(_0x2d3f,0x6c3be),function(_0x240fce,_0x26e942){const _0x1fca13=_0x511d;typeof exports==_0x1fca13(0x19e)&&typeof module<'u'?_0x26e942(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==_0x1fca13(0x18d)&&define[_0x1fca13(0x190)]?define(['@univerjs-pro/live-share',_0x1fca13(0x1b1),_0x1fca13(0x18a),_0x1fca13(0x185),_0x1fca13(0x195),_0x1fca13(0x198)],_0x26e942):(_0x240fce=typeof globalThis<'u'?globalThis:_0x240fce||self,_0x26e942(_0x240fce[_0x1fca13(0x197)],_0x240fce['UniverEngineRender'],_0x240fce[_0x1fca13(0x19c)],_0x240fce['UniverSheetsUi'],_0x240fce['UniverSheetsFacade'],_0x240fce[_0x1fca13(0x182)]));}(this,function(_0x4af882,_0xc71952,_0x230b6c,_0xacc7d5,_0x23b331,_0x1cd5db){'use strict';const _0x74b768=_0x511d;class _0x3e0b1c extends _0x23b331[_0x74b768(0x186)]{[_0x74b768(0x1a4)](_0x3f2635,_0x375b2c,_0x2320e2,_0x138ab3,_0x59b4e2){const _0x42eda7=_0x74b768,_0x3ca8d3=_0x3f2635[_0x42eda7(0x1ae)](_0x4af882[_0x42eda7(0x1a7)]),_0x3ad5b0=_0x3f2635[_0x42eda7(0x1ae)](_0xc71952[_0x42eda7(0x192)]),_0x48a51b=_0x375b2c[_0x42eda7(0x1aa)](),_0x231450=_0x375b2c['getActiveSheet'](),_0x566ad7=_0x3ca8d3[_0x42eda7(0x1ad)](_0x48a51b);(_0x566ad7==null?void 0x0:_0x566ad7[_0x42eda7(0x19d)]())!==_0x4af882[_0x42eda7(0x1a8)][_0x42eda7(0x1a3)]||(_0x2320e2['getSheetId']()!==_0x231450[_0x42eda7(0x18c)]()&&this[_0x42eda7(0x194)][_0x42eda7(0x196)](_0x230b6c['SetWorksheetActiveOperation']['id'],{'unitId':_0x48a51b,'subUnitId':_0x2320e2[_0x42eda7(0x18c)]()}),!_0x3ad5b0['getRenderById'](_0x48a51b))||_0x59b4e2[_0x42eda7(0x187)](_0xacc7d5['SetScrollOperation']['id'],{'unitId':_0x375b2c[_0x42eda7(0x1aa)](),'sheetId':_0x2320e2[_0x42eda7(0x18c)](),'sheetViewStartRow':_0x138ab3[_0x42eda7(0x18e)],'sheetViewStartColumn':_0x138ab3[_0x42eda7(0x1ac)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x23b331[_0x74b768(0x186)][_0x74b768(0x1a5)](_0x3e0b1c);class _0x529d03 extends _0x1cd5db['FUniver']{[_0x74b768(0x199)](){const _0x1ba9e4=_0x74b768;var _0x2afcfd,_0x20853f;const _0x383d82=this[_0x1ba9e4(0x1a6)][_0x1ba9e4(0x1ae)](_0x4af882['LiveShareController']),_0x3a451e=(_0x2afcfd=this[_0x1ba9e4(0x181)]())==null?void 0x0:_0x2afcfd[_0x1ba9e4(0x1af)]();if(!_0x3a451e)throw new Error(_0x1ba9e4(0x188));const _0x1dfe90=_0x383d82[_0x1ba9e4(0x1ad)](_0x3a451e);return(_0x20853f=_0x1dfe90==null?void 0x0:_0x1dfe90[_0x1ba9e4(0x19d)]())!=null?_0x20853f:_0x4af882[_0x1ba9e4(0x1a8)][_0x1ba9e4(0x193)];}[_0x74b768(0x19f)](){const _0x400858=_0x74b768;var _0x19d466;const _0x459007=this[_0x400858(0x1a6)]['get'](_0x4af882['LiveShareController']),_0x5a6b66=(_0x19d466=this[_0x400858(0x181)]())==null?void 0x0:_0x19d466[_0x400858(0x1af)]();if(!_0x5a6b66)throw new Error(_0x400858(0x188));const _0x19b5e5=_0x459007[_0x400858(0x1ad)](_0x5a6b66);if(!_0x19b5e5)throw new Error(_0x400858(0x18b));_0x19b5e5['startFollowing']();}[_0x74b768(0x19a)](){const _0x3ea496=_0x74b768;var _0x271163;const _0x542f4b=this[_0x3ea496(0x1a6)]['get'](_0x4af882[_0x3ea496(0x1a7)]),_0x48cf56=(_0x271163=this[_0x3ea496(0x181)]())==null?void 0x0:_0x271163[_0x3ea496(0x1af)]();if(!_0x48cf56)throw new Error(_0x3ea496(0x188));const _0x1ccb12=_0x542f4b[_0x3ea496(0x1ad)](_0x48cf56);if(!_0x1ccb12)throw new Error(_0x3ea496(0x18b));_0x1ccb12['stopFollowing']();}['startPresenting'](){const _0x3172af=_0x74b768;var _0x310ca;const _0x5a7edb=this[_0x3172af(0x1a6)][_0x3172af(0x1ae)](_0x4af882[_0x3172af(0x1a7)]),_0x31e02e=(_0x310ca=this['getActiveWorkbook']())==null?void 0x0:_0x310ca[_0x3172af(0x1af)]();if(!_0x31e02e)throw new Error(_0x3172af(0x188));const _0x2b35af=_0x5a7edb[_0x3172af(0x1ad)](_0x31e02e);if(!_0x2b35af)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2b35af[_0x3172af(0x1b0)]();}[_0x74b768(0x1a9)](){const _0x204848=_0x74b768;var _0x18445d;const _0x103d93=this[_0x204848(0x1a6)][_0x204848(0x1ae)](_0x4af882['LiveShareController']),_0x30e6dd=(_0x18445d=this[_0x204848(0x181)]())==null?void 0x0:_0x18445d[_0x204848(0x1af)]();if(!_0x30e6dd)throw new Error('No\x20active\x20workbook\x20found.');const _0xe9e32c=_0x103d93[_0x204848(0x1ad)](_0x30e6dd);if(!_0xe9e32c)throw new Error(_0x204848(0x18b));_0xe9e32c[_0x204848(0x1a9)]();}}_0x1cd5db[_0x74b768(0x191)][_0x74b768(0x1a5)](_0x529d03);class _0xc18b51 extends _0x1cd5db[_0x74b768(0x1a0)]{get['LiveShareStatusEnum'](){const _0x536e88=_0x74b768;return _0x4af882[_0x536e88(0x1a8)];}}_0x1cd5db['FEnum'][_0x74b768(0x1a5)](_0xc18b51);}));function _0x2d3f(){const _0x2897ee=['getLiveShareStatus','stopFollowing','1094380soMHBQ','UniverSheets','getStatus','object','startFollowing','FEnum','4840389dwPZfj','1spVNec','PRESENTING','_initialize','extend','_injector','LiveShareController','LiveShareStatus','stopPresenting','getUnitId','447270rFDvgq','startColumn','getLiveShareCoordinatorSync','get','getId','tryStartPresenting','@univerjs/engine-render','589758Mrftwk','getActiveWorkbook','UniverCoreFacade','2009985qWgIrP','803626lsqHna','@univerjs/sheets-ui','FRange','syncExecuteCommand','No\x20active\x20workbook\x20found.','8vdfKnT','@univerjs/sheets','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getSheetId','function','startRow','1721055zRPrki','amd','FUniver','IRenderManagerService','IDLE','_commandService','@univerjs/sheets/facade','executeCommand','UniverProLiveShare','@univerjs/core/facade'];_0x2d3f=function(){return _0x2897ee;};return _0x2d3f();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x3bb1d4,_0xfc04e9){const _0x353b2a=_0x207e,_0x94d0e5=_0x3bb1d4();while(!![]){try{const _0x5dd956=parseInt(_0x353b2a(0x2c3))/0x1+-parseInt(_0x353b2a(0x250))/0x2*(-parseInt(_0x353b2a(0x2cc))/0x3)+-parseInt(_0x353b2a(0x227))/0x4+-parseInt(_0x353b2a(0x2ab))/0x5+parseInt(_0x353b2a(0x219))/0x6+-parseInt(_0x353b2a(0x222))/0x7+parseInt(_0x353b2a(0x2cd))/0x8*(-parseInt(_0x353b2a(0x2c7))/0x9);if(_0x5dd956===_0xfc04e9)break;else _0x94d0e5['push'](_0x94d0e5['shift']());}catch(_0x58562a){_0x94d0e5['push'](_0x94d0e5['shift']());}}}(_0x3384,0x71569),function(_0x49bb0b,_0x3fcfc2){const _0x56a09d=_0x207e;typeof exports==_0x56a09d(0x298)&&typeof module<'u'?_0x3fcfc2(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==_0x56a09d(0x253)&&define[_0x56a09d(0x2ac)]?define(['exports',_0x56a09d(0x271),'@univerjs/ui',_0x56a09d(0x29b),'@univerjs/design',_0x56a09d(0x26f),_0x56a09d(0x2ad),_0x56a09d(0x230),_0x56a09d(0x27f),_0x56a09d(0x23d),_0x56a09d(0x209),_0x56a09d(0x2b7)],_0x3fcfc2):(_0x49bb0b=typeof globalThis<'u'?globalThis:_0x49bb0b||self,_0x3fcfc2(_0x49bb0b['UniverProLiveShare']={},_0x49bb0b['UniverCore'],_0x49bb0b[_0x56a09d(0x279)],_0x49bb0b[_0x56a09d(0x220)],_0x49bb0b[_0x56a09d(0x263)],_0x49bb0b[_0x56a09d(0x220)],_0x49bb0b[_0x56a09d(0x224)],_0x49bb0b[_0x56a09d(0x20e)],_0x49bb0b[_0x56a09d(0x276)],_0x49bb0b['rxjs'],_0x49bb0b['rxjs'][_0x56a09d(0x248)],_0x49bb0b['UniverSheetsUi']));}(this,function(_0x3489d5,_0xb5ae36,_0xc23a78,_0x14e61f,_0x3b0785,_0x4dd198,_0x73e55a,_0x5a862d,_0x45207c,_0x15c700,_0x3a846d,_0x4234cc){'use strict';const _0x5508b7=_0x207e;var _0x169ddd=Object[_0x5508b7(0x29a)],_0x3cc598=(_0x343796,_0x26eea0,_0x467fe4)=>_0x26eea0 in _0x343796?_0x169ddd(_0x343796,_0x26eea0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x467fe4}):_0x343796[_0x26eea0]=_0x467fe4,_0x5a0317=(_0x3784f7,_0xf96b3c,_0x57a444)=>_0x3cc598(_0x3784f7,typeof _0xf96b3c!=_0x5508b7(0x1f8)?_0xf96b3c+'':_0xf96b3c,_0x57a444);function _0x2db733({ref:_0x46d423,..._0x35286e}){const _0x3b585f=_0x5508b7,{icon:_0x356462,id:_0x35fa1f,className:_0x26c341,extend:_0x5314fb,..._0x252241}=_0x35286e,_0x267a9c=('univerjs-icon\x20univerjs-icon-'+_0x35fa1f+'\x20'+(_0x26c341||''))[_0x3b585f(0x1fe)](),_0x24ff9c=_0x4dd198[_0x3b585f(0x241)]('_'+_0x5b2387());return _0x219240(_0x356462,''+_0x35fa1f,{'defIds':_0x356462[_0x3b585f(0x2d2)],'idSuffix':_0x24ff9c[_0x3b585f(0x2c6)]},{'ref':_0x46d423,'className':_0x267a9c,..._0x252241},_0x5314fb);}function _0x219240(_0x489e3b,_0x2f86af,_0x33a68c,_0x4201ac,_0x3af69a){const _0x1fe379=_0x5508b7;return _0x4dd198[_0x1fe379(0x2b5)](_0x489e3b[_0x1fe379(0x2bf)],{'key':_0x2f86af,..._0x36d34f(_0x489e3b,_0x33a68c,_0x3af69a),..._0x4201ac},(_0x3c7d70(_0x489e3b,_0x33a68c)[_0x1fe379(0x265)]||[])[_0x1fe379(0x282)]((_0x450d84,_0x4cc24d)=>_0x219240(_0x450d84,_0x2f86af+'-'+_0x489e3b[_0x1fe379(0x2bf)]+'-'+_0x4cc24d,_0x33a68c,void 0x0,_0x3af69a)));}function _0x36d34f(_0x1109ef,_0x11d903,_0xec4ebe){const _0x33ea72=_0x5508b7,_0x1bfe27={..._0x1109ef[_0x33ea72(0x293)]};_0xec4ebe!=null&&_0xec4ebe[_0x33ea72(0x2ca)]&&_0x1bfe27[_0x33ea72(0x2be)]==='colorChannel1'&&(_0x1bfe27[_0x33ea72(0x2be)]=_0xec4ebe['colorChannel1']),_0x1109ef['tag']===_0x33ea72(0x29c)&&_0x1bfe27['id']&&(_0x1bfe27['id']=_0x1bfe27['id']+_0x11d903[_0x33ea72(0x246)]),Object[_0x33ea72(0x23e)](_0x1bfe27)['forEach'](([_0x11ac00,_0xc7d09e])=>{const _0x1c55d7=_0x33ea72;_0x11ac00===_0x1c55d7(0x29c)&&typeof _0xc7d09e==_0x1c55d7(0x274)&&(_0x1bfe27[_0x11ac00]=_0xc7d09e['replace'](/url\(#(.*)\)/,_0x1c55d7(0x2cf)+_0x11d903['idSuffix']+')'));});const {defIds:_0x24580e}=_0x11d903;return!_0x24580e||_0x24580e['length']===0x0||(_0x1109ef[_0x33ea72(0x2bf)]===_0x33ea72(0x21e)&&_0x1bfe27['xlink:href']&&(_0x1bfe27['xlink:href']=_0x1bfe27[_0x33ea72(0x2bb)]+_0x11d903[_0x33ea72(0x246)]),Object[_0x33ea72(0x23e)](_0x1bfe27)[_0x33ea72(0x272)](([_0x4ccc99,_0x134039])=>{const _0x388701=_0x33ea72;typeof _0x134039==_0x388701(0x274)&&(_0x1bfe27[_0x4ccc99]=_0x134039['replace'](/url\(#(.*)\)/,'url(#$1'+_0x11d903[_0x388701(0x246)]+')'));})),_0x1bfe27;}function _0x3c7d70(_0x3da28a,_0x439b93){const _0x4ab6d4=_0x5508b7;var _0x578251;const {defIds:_0x505ff4}=_0x439b93;return!_0x505ff4||_0x505ff4[_0x4ab6d4(0x244)]===0x0?_0x3da28a:_0x3da28a[_0x4ab6d4(0x2bf)]===_0x4ab6d4(0x285)&&((_0x578251=_0x3da28a[_0x4ab6d4(0x265)])!=null&&_0x578251[_0x4ab6d4(0x244)])?{..._0x3da28a,'children':_0x3da28a[_0x4ab6d4(0x265)][_0x4ab6d4(0x282)](_0x3a4bf9=>typeof _0x3a4bf9['attrs']['id']==_0x4ab6d4(0x274)&&_0x505ff4&&_0x505ff4['includes'](_0x3a4bf9[_0x4ab6d4(0x293)]['id'])?{..._0x3a4bf9,'attrs':{..._0x3a4bf9[_0x4ab6d4(0x293)],'id':_0x3a4bf9[_0x4ab6d4(0x293)]['id']+_0x439b93[_0x4ab6d4(0x246)]}}:_0x3a4bf9)}:_0x3da28a;}function _0x5b2387(){const _0x212530=_0x5508b7;return Math[_0x212530(0x297)]()[_0x212530(0x223)](0x24)[_0x212530(0x212)](0x2,0x8);}_0x2db733[_0x5508b7(0x24a)]=_0x5508b7(0x259);const _0x48430c={'tag':'svg','attrs':{'xmlns':_0x5508b7(0x260),'fill':_0x5508b7(0x281),'viewBox':_0x5508b7(0x238),'width':_0x5508b7(0x1f3),'height':_0x5508b7(0x1f3)},'children':[{'tag':_0x5508b7(0x23b),'attrs':{'fill':_0x5508b7(0x25b),'d':_0x5508b7(0x240)}},{'tag':'path','attrs':{'fill':_0x5508b7(0x25b),'d':_0x5508b7(0x20b),'fillRule':_0x5508b7(0x269),'clipRule':'evenodd'}}]},_0x3ebec7=_0x4dd198['forwardRef'](function(_0x8082fd,_0x457f94){const _0xf4b6d9=_0x5508b7;return _0x4dd198[_0xf4b6d9(0x2b5)](_0x2db733,Object[_0xf4b6d9(0x1fa)]({},_0x8082fd,{'id':'live-share-icon','ref':_0x457f94,'icon':_0x48430c}));});_0x3ebec7[_0x5508b7(0x24a)]='LiveShareIcon';class _0x14b749 extends _0xb5ae36[_0x5508b7(0x207)]{constructor(){const _0x40f594=_0x5508b7;super(...arguments),_0x5a0317(this,'_sharedOperations',new Set()),_0x5a0317(this,_0x40f594(0x226),new Set());}[_0x5508b7(0x273)](_0x2a8708){const _0x3540d1=_0x5508b7;return this[_0x3540d1(0x211)][_0x3540d1(0x24f)](_0x2a8708),_0xb5ae36[_0x3540d1(0x202)](()=>this[_0x3540d1(0x211)]['delete'](_0x2a8708));}['registerInitialStateReporter'](_0x4a43d1){const _0x2c820a=_0x5508b7;return this['_reporters']['add'](_0x4a43d1),_0xb5ae36[_0x2c820a(0x202)](()=>this[_0x2c820a(0x226)]['delete'](_0x4a43d1));}['shouldShareOperation'](_0x415f91){return this['_sharedOperations']['has'](_0x415f91);}['getInitialStates'](_0x2e1a6d){const _0x46a787=_0x5508b7;return Array[_0x46a787(0x24d)](this['_reporters'])[_0x46a787(0x282)](_0x26b2d7=>_0x26b2d7(_0x2e1a6d));}}var _0x57be60=Object[_0x5508b7(0x22d)],_0x235117=(_0x4531ff,_0xc91cb0,_0x5b7288,_0x31ae1a)=>{const _0x4fdab9=_0x5508b7;for(var _0x566123=_0x31ae1a>0x1?void 0x0:_0x31ae1a?_0x57be60(_0xc91cb0,_0x5b7288):_0xc91cb0,_0x23341d=_0x4531ff[_0x4fdab9(0x244)]-0x1,_0x472b6d;_0x23341d>=0x0;_0x23341d--)(_0x472b6d=_0x4531ff[_0x23341d])&&(_0x566123=_0x472b6d(_0x566123)||_0x566123);return _0x566123;},_0x10b05b=(_0xd06d6,_0x44cd00)=>(_0x710b84,_0x2b1148)=>_0x44cd00(_0x710b84,_0x2b1148,_0xd06d6);_0x3489d5[_0x5508b7(0x267)]=class extends _0xb5ae36[_0x5508b7(0x2aa)]{constructor(_0x21e481,_0x29a03d,_0x13d963){const _0x7f854c=_0x5508b7;super(),_0x5a0317(this,_0x7f854c(0x1ff),new Map()),(this[_0x7f854c(0x290)]=_0x21e481,this[_0x7f854c(0x256)]=_0x29a03d,this[_0x7f854c(0x215)]=_0x13d963,this[_0x7f854c(0x247)]());}async[_0x5508b7(0x2ce)](_0x2da5ad){const _0x4c38d8=_0x5508b7;return this[_0x4c38d8(0x1ff)][_0x4c38d8(0x235)](_0x2da5ad)||await this[_0x4c38d8(0x20f)](_0x2da5ad),this[_0x4c38d8(0x1ff)][_0x4c38d8(0x22b)](_0x2da5ad);}[_0x5508b7(0x21a)](_0x3344d4){const _0x3945d4=_0x5508b7;var _0x3b1028;return(_0x3b1028=this[_0x3945d4(0x1ff)][_0x3945d4(0x22b)](_0x3344d4))!=null?_0x3b1028:null;}[_0x5508b7(0x247)](){const _0x1e07cf=_0x5508b7;this[_0x1e07cf(0x290)][_0x1e07cf(0x205)](_0xb5ae36[_0x1e07cf(0x29f)][_0x1e07cf(0x2c2)])[_0x1e07cf(0x26d)](_0x3a846d[_0x1e07cf(0x26b)](this[_0x1e07cf(0x203)]))[_0x1e07cf(0x24e)](async _0x429349=>{const _0x36c2e4=_0x1e07cf,_0x451e9b=_0x429349['getUnitId']();this[_0x36c2e4(0x1ff)][_0x36c2e4(0x235)](_0x451e9b)||this[_0x36c2e4(0x20f)](_0x451e9b);}),this[_0x1e07cf(0x290)][_0x1e07cf(0x28c)](_0xb5ae36[_0x1e07cf(0x29f)][_0x1e07cf(0x2c2)])[_0x1e07cf(0x26d)](_0x3a846d[_0x1e07cf(0x26b)](this[_0x1e07cf(0x203)]))[_0x1e07cf(0x24e)](_0x39e42e=>{const _0x327988=_0x1e07cf,_0x1e505d=_0x39e42e[_0x327988(0x25e)](),_0x31d59e=this[_0x327988(0x1ff)][_0x327988(0x22b)](_0x1e505d);_0x31d59e==null||_0x31d59e[_0x327988(0x299)]();});}async[_0x5508b7(0x20f)](_0x1d12d8){const _0x1b416b=_0x5508b7,_0x41d031=await this['_collabSessionService'][_0x1b416b(0x216)](_0x1d12d8),_0x3a8ff6=this[_0x1b416b(0x256)][_0x1b416b(0x2af)](_0x3489d5[_0x1b416b(0x288)],_0x1d12d8,_0x41d031);return _0x3a8ff6[_0x1b416b(0x1f2)](),this[_0x1b416b(0x1ff)][_0x1b416b(0x2a2)](_0x1d12d8,_0x3a8ff6),_0x3a8ff6;}},_0x3489d5['LiveShareController']=_0x235117([_0x10b05b(0x0,_0xb5ae36[_0x5508b7(0x232)]),_0x10b05b(0x1,_0xb5ae36[_0x5508b7(0x25f)](_0xb5ae36[_0x5508b7(0x1f7)])),_0x10b05b(0x2,_0xb5ae36[_0x5508b7(0x25f)](_0x5a862d[_0x5508b7(0x2b6)]))],_0x3489d5[_0x5508b7(0x267)]);var _0x12bed9=(_0x29986d=>(_0x29986d['OFFLINE']=_0x5508b7(0x200),_0x29986d['IDLE']=_0x5508b7(0x21d),_0x29986d[_0x5508b7(0x201)]=_0x5508b7(0x296),_0x29986d[_0x5508b7(0x27c)]=_0x5508b7(0x234),_0x29986d[_0x5508b7(0x266)]=_0x5508b7(0x233),_0x29986d))(_0x12bed9||{});const _0x46bd8a=_0x5508b7(0x2b0),_0x1bc222=0xc8;_0x3489d5[_0x5508b7(0x288)]=class extends _0xb5ae36[_0x5508b7(0x2aa)]{constructor(_0x1deb8f,_0x334487,_0x3286b5,_0x1fc16b,_0x5ebcc6){const _0x445985=_0x5508b7;super(),_0x5a0317(this,_0x445985(0x20d),new _0x15c700['BehaviorSubject']('idle')),_0x5a0317(this,_0x445985(0x2d0),this[_0x445985(0x20d)]['asObservable']()),_0x5a0317(this,_0x445985(0x247),!0x1),_0x5a0317(this,_0x445985(0x2a8),null),_0x5a0317(this,_0x445985(0x2a9),null),(this[_0x445985(0x1f6)]=_0x1deb8f,this[_0x445985(0x23f)]=_0x334487,this[_0x445985(0x28e)]=_0x3286b5,this[_0x445985(0x21b)]=_0x1fc16b,this[_0x445985(0x28b)]=_0x5ebcc6);}get[_0x5508b7(0x28a)](){const _0x50d630=_0x5508b7;return this[_0x50d630(0x20d)]['getValue']();}[_0x5508b7(0x299)](){const _0x3bbd33=_0x5508b7;var _0x63e6b3;(_0x63e6b3=this[_0x3bbd33(0x2a8)])==null||_0x63e6b3[_0x3bbd33(0x299)](),this[_0x3bbd33(0x20d)]['next'](_0x3bbd33(0x21d)),this[_0x3bbd33(0x20d)][_0x3bbd33(0x2a0)]();}[_0x5508b7(0x1f9)](){const _0x157e19=_0x5508b7;return this[_0x157e19(0x28a)];}[_0x5508b7(0x1f2)](){const _0x2d538d=_0x5508b7;this[_0x2d538d(0x247)]||(this[_0x2d538d(0x247)]=!0x0,this[_0x2d538d(0x23f)][_0x2d538d(0x225)]['pipe'](_0x3a846d[_0x2d538d(0x26b)](this['dispose$']))[_0x2d538d(0x24e)](_0x506b42=>{const _0x35994b=_0x2d538d;switch(_0x506b42){case _0x5a862d[_0x35994b(0x254)][_0x35994b(0x270)]:this['_handleOffline']();break;case _0x5a862d['SessionStatus'][_0x35994b(0x29e)]:this[_0x35994b(0x210)]();break;}}),this[_0x2d538d(0x23f)][_0x2d538d(0x228)][_0x2d538d(0x26d)](_0x3a846d[_0x2d538d(0x26b)](this[_0x2d538d(0x203)]))[_0x2d538d(0x24e)](_0x2af886=>{const _0x3fe095=_0x2d538d,{eventID:_0x463fdc}=_0x2af886;switch(_0x463fdc){case _0x73e55a[_0x3fe095(0x206)][_0x3fe095(0x1f4)]:this[_0x3fe095(0x1fd)](_0x2af886);break;case _0x73e55a['CollaborationEvent'][_0x3fe095(0x2b2)]:this[_0x3fe095(0x2c1)](_0x2af886);break;case _0x73e55a[_0x3fe095(0x206)]['LIVESHARE_TERMINATE']:this[_0x3fe095(0x231)]();break;case _0x73e55a[_0x3fe095(0x206)][_0x3fe095(0x249)]:this[_0x3fe095(0x277)](_0x2af886);break;}}));}[_0x5508b7(0x2b3)](){const _0x4c5750=_0x5508b7;this['_collabSession'][_0x4c5750(0x27e)]({'eventID':_0x73e55a[_0x4c5750(0x206)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4c5750(0x1f6)],'userID':this['_collabSession'][_0x4c5750(0x1f5)]()}},this[_0x4c5750(0x1f6)]);}[_0x5508b7(0x213)](){const _0x50c044=_0x5508b7;this[_0x50c044(0x28a)]==='presenting'&&(this[_0x50c044(0x20d)][_0x50c044(0x28d)](_0x50c044(0x21d)),this[_0x50c044(0x23f)][_0x50c044(0x27e)]({'eventID':_0x73e55a[_0x50c044(0x206)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x50c044(0x1f6)]));}[_0x5508b7(0x284)](){const _0x3fbdc3=_0x5508b7;this[_0x3fbdc3(0x28a)]===_0x3fbdc3(0x234)&&(this['_status$'][_0x3fbdc3(0x28d)](_0x3fbdc3(0x296)),this['_startFollowing']());}[_0x5508b7(0x2c8)](){const _0x446d86=_0x5508b7;this[_0x446d86(0x28a)]===_0x446d86(0x296)&&this['_stopFollowing']();}[_0x5508b7(0x1fd)](_0x567610){const _0x34153f=_0x5508b7,{presenter:_0x4da660}=_0x567610['data'],_0x1080c1=this[_0x34153f(0x23f)][_0x34153f(0x1f5)]();this[_0x34153f(0x2a9)]=_0x4da660,_0x4da660===_0x1080c1?(this[_0x34153f(0x264)](),this[_0x34153f(0x221)]()):this[_0x34153f(0x28a)]!=='not-following'&&(this[_0x34153f(0x257)](),this[_0x34153f(0x2c9)]());}[_0x5508b7(0x2b4)](){const _0x22cca4=_0x5508b7,_0x31eaa0={'eventID':_0x73e55a['CollaborationEvent'][_0x22cca4(0x25c)]};this[_0x22cca4(0x23f)]['send'](_0x31eaa0,this[_0x22cca4(0x1f6)]);}['_handleTerminate'](){const _0x42d65c=_0x5508b7;this[_0x42d65c(0x2a9)]=null,this[_0x42d65c(0x28a)]!==_0x42d65c(0x233)&&this['_beIdle']();}[_0x5508b7(0x277)](_0x4a99b1){const _0x4def90=_0x5508b7;if(this[_0x4def90(0x28a)]===_0x4def90(0x296)&&this[_0x4def90(0x2a9)]===_0x4a99b1[_0x4def90(0x1fc)][_0x4def90(0x2a7)]){const _0x1aff91=_0x73e55a['parseProtocolChangeset'](_0x4a99b1[_0x4def90(0x1fc)])['mutations'][_0x4def90(0x287)]()['find'](_0x470aa7=>_0x470aa7['id']===_0x45207c['InsertSheetMutation']['id']);if(_0x1aff91){const _0x231e2d=_0x1aff91[_0x4def90(0x291)]['unitId'],_0x34ef90=_0x1aff91[_0x4def90(0x291)]['sheet']['id'];setTimeout(()=>{const _0x389fe7=_0x4def90;this['_commandService']['executeCommand'](_0x45207c[_0x389fe7(0x25a)]['id'],{'unitId':_0x231e2d,'subUnitId':_0x34ef90},{'fromCollab':!0x0});});}}}[_0x5508b7(0x221)](){const _0x2be37c=_0x5508b7;this['_status$']['next'](_0x2be37c(0x233));const _0x1e7ac0=new Map(),_0x5888cb=this[_0x2be37c(0x2a8)]=new _0xb5ae36['DisposableCollection']();_0x5888cb[_0x2be37c(0x24f)](_0xb5ae36[_0x2be37c(0x202)](()=>{const _0x31ac60=_0x2be37c;_0x1e7ac0['forEach'](_0x5c85e3=>_0x5c85e3[_0x31ac60(0x2a0)]()),_0x1e7ac0[_0x31ac60(0x2a1)]();})),_0x5888cb[_0x2be37c(0x24f)](this[_0x2be37c(0x28b)][_0x2be37c(0x245)](_0x5024bb=>{const _0x5146fb=_0x2be37c;var _0x3482bf;if(_0x5024bb[_0x5146fb(0x294)]!==_0xb5ae36[_0x5146fb(0x283)][_0x5146fb(0x243)]||!this['_liveShareService']['shouldShareOperation'](_0x5024bb['id']))return;const {id:_0x581a4f}=_0x5024bb;let _0x253e43;_0x1e7ac0['has'](_0x581a4f)?_0x253e43=_0x1e7ac0[_0x5146fb(0x22b)](_0x581a4f):(_0x253e43=new _0x15c700['Subject'](),_0x1e7ac0[_0x5146fb(0x2a2)](_0x581a4f,_0x253e43),_0x253e43[_0x5146fb(0x26d)](_0x3a846d[_0x5146fb(0x22e)]((_0x3482bf=this[_0x5146fb(0x28e)][_0x5146fb(0x2b8)](_0x46bd8a))!=null?_0x3482bf:_0x1bc222,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5146fb(0x24e)](_0x5d35b3=>{const _0x452d84=_0x5146fb;this[_0x452d84(0x23f)]['send']({'eventID':_0x73e55a[_0x452d84(0x206)][_0x452d84(0x2b2)],'data':{'unitID':this[_0x452d84(0x1f6)],'operations':{[_0x5d35b3['id']]:{'id':_0x5d35b3['id'],'params':JSON[_0x452d84(0x28f)](_0x5d35b3[_0x452d84(0x291)])}}}},this[_0x452d84(0x1f6)]);})),_0x253e43['next'](_0x5024bb);})),this[_0x2be37c(0x21b)][_0x2be37c(0x2c0)](this['_unitID'])[_0x2be37c(0x272)](_0x49b73e=>this['_collabSession'][_0x2be37c(0x27e)]({'eventID':_0x73e55a[_0x2be37c(0x206)][_0x2be37c(0x2b2)],'data':{'unitID':this[_0x2be37c(0x1f6)],'operations':{[_0x49b73e['id']]:{'id':_0x49b73e['id'],'params':JSON['stringify'](_0x49b73e['params'])}}}},this[_0x2be37c(0x1f6)]));}[_0x5508b7(0x257)](){const _0x19d74a=_0x5508b7;var _0x5b358d;this[_0x19d74a(0x20d)][_0x19d74a(0x28d)](_0x19d74a(0x21d)),(_0x5b358d=this['_commandDisposable'])==null||_0x5b358d[_0x19d74a(0x299)](),this[_0x19d74a(0x2a8)]=null;}['_startFollowing'](){const _0x46a981=_0x5508b7;var _0x5a77d8;(_0x5a77d8=this['_commandDisposable'])==null||_0x5a77d8[_0x46a981(0x299)](),this[_0x46a981(0x20d)][_0x46a981(0x28d)](_0x46a981(0x296));}['_beIdle'](){const _0x558570=_0x5508b7;var _0x2aef2d;this[_0x558570(0x20d)]['next'](_0x558570(0x21d)),(_0x2aef2d=this[_0x558570(0x2a8)])==null||_0x2aef2d[_0x558570(0x299)](),this[_0x558570(0x2a8)]=null;}['_stopFollowing'](){const _0x128501=_0x5508b7;var _0x4a21fd;this['_status$'][_0x128501(0x28d)](_0x128501(0x234)),(_0x4a21fd=this[_0x128501(0x2a8)])==null||_0x4a21fd[_0x128501(0x299)]();}[_0x5508b7(0x2c1)](_0x2e9b23){const _0x593f44=_0x5508b7;if([_0x593f44(0x233),'not-following',_0x593f44(0x200)][_0x593f44(0x29d)](this[_0x593f44(0x28a)])||!_0x2e9b23[_0x593f44(0x1fc)][_0x593f44(0x26c)]||_0x2e9b23[_0x593f44(0x1fc)][_0x593f44(0x26c)]===this['_collabSession'][_0x593f44(0x1f5)]())return;this[_0x593f44(0x28a)]===_0x593f44(0x21d)&&this[_0x593f44(0x2c9)]();const _0x3db20f=_0x2e9b23[_0x593f44(0x1fc)]['operations'];Object[_0x593f44(0x262)](_0x3db20f)[_0x593f44(0x272)](_0x1e041d=>{const _0x5a1fb8=_0x593f44;this['_commandService'][_0x5a1fb8(0x251)](_0x1e041d['id'],_0x1e041d['params']?JSON[_0x5a1fb8(0x280)](_0x1e041d['params']):null,{'fromCollab':!0x0});});}[_0x5508b7(0x236)](){const _0x43d1c2=_0x5508b7;var _0x5655db;this[_0x43d1c2(0x20d)][_0x43d1c2(0x28d)]('offline'),(_0x5655db=this[_0x43d1c2(0x2a8)])==null||_0x5655db['dispose']();}[_0x5508b7(0x210)](){const _0x84f4ae=_0x5508b7;this[_0x84f4ae(0x20d)][_0x84f4ae(0x28d)](_0x84f4ae(0x21d)),this[_0x84f4ae(0x2b4)]();}},_0x3489d5['LiveShareCoordinator']=_0x235117([_0x10b05b(0x2,_0xb5ae36['IConfigService']),_0x10b05b(0x3,_0xb5ae36[_0x5508b7(0x25f)](_0x14b749)),_0x10b05b(0x4,_0xb5ae36['ICommandService'])],_0x3489d5['LiveShareCoordinator']);function _0x36c6d3(){const _0x186215=_0x5508b7,_0x512f42=_0xc23a78[_0x186215(0x295)](_0x3489d5[_0x186215(0x267)]),_0x2be9f2=_0xc23a78[_0x186215(0x295)](_0xb5ae36[_0x186215(0x232)]),_0x2f107c=_0xc23a78['useObservable'](()=>_0x2be9f2[_0x186215(0x208)](_0xb5ae36['UniverInstanceType'][_0x186215(0x2c2)]),void 0x0,!0x1,[]),[_0x4cc3f9,_0x1d9c7d]=_0x4dd198[_0x186215(0x229)](null),[_0xa93b6,_0x5af1c6]=_0x4dd198[_0x186215(0x229)](_0x12bed9[_0x186215(0x239)]),_0x39a258=_0x4dd198[_0x186215(0x241)](null);return _0x4dd198[_0x186215(0x2ae)](()=>(_0x2f107c&&_0x512f42['getLiveShareCoordinator'](_0x2f107c[_0x186215(0x25e)]())[_0x186215(0x258)](_0x478b8c=>{const _0x31d9d1=_0x186215;_0x1d9c7d(_0x478b8c),_0x39a258[_0x31d9d1(0x2c6)]=_0x478b8c[_0x31d9d1(0x2d0)][_0x31d9d1(0x24e)](_0x1e6c65=>{_0x5af1c6(_0x1e6c65);});}),()=>{const _0x31d17c=_0x186215;var _0x867a02;(_0x867a02=_0x39a258[_0x31d17c(0x2c6)])==null||_0x867a02[_0x31d17c(0x2b1)](),_0x39a258['current']=null;}),[_0x2f107c,_0x512f42]),_0x4cc3f9?_0x14e61f[_0x186215(0x214)](_0x3b0785[_0x186215(0x292)],{'align':_0x186215(0x286),'disabled':_0xa93b6===_0x12bed9['OFFLINE'],'className':_0x186215(0x2cb),'overlay':_0x14e61f[_0x186215(0x214)](_0x1787f3,{'status':_0xa93b6,'coordinator':_0x4cc3f9}),'children':_0x14e61f[_0x186215(0x214)]('button',{'className':_0x3b0785['clsx'](_0x186215(0x20a),{'univer-cursor-not-allowed':_0xa93b6===_0x12bed9[_0x186215(0x270)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xa93b6!==_0x12bed9['OFFLINE']}),'type':_0x186215(0x2a4),'children':_0x14e61f[_0x186215(0x214)](_0x3ebec7,{'className':_0x186215(0x23c)})})}):null;}function _0x1787f3(_0x230270){const _0x3dc62d=_0x5508b7,{status:_0x3b8986,coordinator:_0x29958c}=_0x230270;switch(_0x3b8986){case _0x12bed9['IDLE']:return _0x14e61f[_0x3dc62d(0x214)](_0x4934fe,{'coordinator':_0x29958c});case _0x12bed9[_0x3dc62d(0x201)]:return _0x14e61f[_0x3dc62d(0x214)](_0x40539b,{'coordinator':_0x29958c});case _0x12bed9[_0x3dc62d(0x27c)]:return _0x14e61f[_0x3dc62d(0x214)](_0x2e4366,{'coordinator':_0x29958c});case _0x12bed9[_0x3dc62d(0x270)]:return _0x14e61f[_0x3dc62d(0x214)](_0x26c778,{});case _0x12bed9['PRESENTING']:return _0x14e61f[_0x3dc62d(0x214)](_0x1c42d2,{'coordinator':_0x29958c});default:return null;}}function _0x4934fe(_0xe09fc9){const _0x23e91c=_0x5508b7,{coordinator:_0x425829}=_0xe09fc9;return _0x14e61f[_0x23e91c(0x22f)](_0x14e61f[_0x23e91c(0x20c)],{'children':[_0x14e61f['jsx'](_0x23e91c(0x21c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x23e91c(0x2b9)}),_0x14e61f['jsx'](_0x3b0785[_0x23e91c(0x218)],{'onClick':()=>_0x425829[_0x23e91c(0x2b3)](),'children':_0x23e91c(0x237)})]});}function _0x40539b(_0x15338d){const _0x5fc46e=_0x5508b7,{coordinator:_0x45c93d}=_0x15338d;return _0x14e61f[_0x5fc46e(0x22f)](_0x14e61f[_0x5fc46e(0x20c)],{'children':[_0x14e61f['jsx'](_0x5fc46e(0x21c),{'className':_0x5fc46e(0x217),'children':_0x5fc46e(0x242)}),_0x14e61f['jsx'](_0x3b0785[_0x5fc46e(0x218)],{'onClick':()=>_0x45c93d[_0x5fc46e(0x2c8)](),'children':_0x5fc46e(0x22c)})]});}function _0x2e4366(_0x447167){const _0x2d4dbc=_0x5508b7,{coordinator:_0x55c439}=_0x447167;return _0x14e61f[_0x2d4dbc(0x22f)](_0x14e61f[_0x2d4dbc(0x20c)],{'children':[_0x14e61f[_0x2d4dbc(0x214)](_0x2d4dbc(0x21c),{'className':_0x2d4dbc(0x217),'children':_0x2d4dbc(0x26e)}),_0x14e61f[_0x2d4dbc(0x214)](_0x3b0785['Button'],{'variant':_0x2d4dbc(0x275),'onClick':()=>_0x55c439[_0x2d4dbc(0x284)](),'children':'Start\x20following'})]});}function _0x1c42d2(_0x35797e){const _0x2803e4=_0x5508b7,{coordinator:_0x1d3a09}=_0x35797e;return _0x14e61f['jsxs'](_0x14e61f[_0x2803e4(0x20c)],{'children':[_0x14e61f[_0x2803e4(0x214)](_0x2803e4(0x21c),{'className':_0x2803e4(0x217),'children':_0x2803e4(0x1fb)}),_0x14e61f[_0x2803e4(0x214)](_0x3b0785[_0x2803e4(0x218)],{'variant':'default','onClick':()=>_0x1d3a09[_0x2803e4(0x213)](),'children':'Stop\x20presenting'})]});}function _0x26c778(){const _0x215033=_0x5508b7;return _0x14e61f['jsx'](_0x14e61f[_0x215033(0x20c)],{'children':_0x215033(0x24c)});}var _0xc64db6=Object[_0x5508b7(0x22d)],_0x3fee4a=(_0x57dc86,_0x1c938f,_0x2bd1ef,_0x48e3a5)=>{const _0x5c150b=_0x5508b7;for(var _0x13aecc=_0x48e3a5>0x1?void 0x0:_0x48e3a5?_0xc64db6(_0x1c938f,_0x2bd1ef):_0x1c938f,_0x4423db=_0x57dc86[_0x5c150b(0x244)]-0x1,_0x16115c;_0x4423db>=0x0;_0x4423db--)(_0x16115c=_0x57dc86[_0x4423db])&&(_0x13aecc=_0x16115c(_0x13aecc)||_0x13aecc);return _0x13aecc;},_0x59d630=(_0x5c2ff1,_0x1285d0)=>(_0x22934a,_0xb263d1)=>_0x1285d0(_0x22934a,_0xb263d1,_0x5c2ff1);_0x3489d5[_0x5508b7(0x2a5)]=class extends _0xb5ae36[_0x5508b7(0x207)]{constructor(_0x3ebe4e,_0x1fe932){const _0xbac7f2=_0x5508b7;super(),this['_injector']=_0x3ebe4e,this[_0xbac7f2(0x21f)]=_0x1fe932,this[_0xbac7f2(0x27a)]();}[_0x5508b7(0x27a)](){const _0x339889=_0x5508b7;this[_0x339889(0x26a)](this['_uiPartsService']['registerComponent'](_0xc23a78['BuiltInUIPart'][_0x339889(0x2ba)],()=>_0xc23a78[_0x339889(0x2a6)](_0x36c6d3,this[_0x339889(0x256)])));}},_0x3489d5[_0x5508b7(0x2a5)]=_0x3fee4a([_0x59d630(0x0,_0xb5ae36['Inject'](_0xb5ae36['Injector'])),_0x59d630(0x1,_0xc23a78['IUIPartsService'])],_0x3489d5[_0x5508b7(0x2a5)]);const _0x142e49=_0x5508b7(0x2c4),_0x2ee98f={};var _0x53adb4=Object['getOwnPropertyDescriptor'],_0x493590=(_0x3ed831,_0x27db9f,_0x34c5b6,_0x15df32)=>{const _0x145c0f=_0x5508b7;for(var _0x1ff8ba=_0x15df32>0x1?void 0x0:_0x15df32?_0x53adb4(_0x27db9f,_0x34c5b6):_0x27db9f,_0x3eeed5=_0x3ed831[_0x145c0f(0x244)]-0x1,_0x536944;_0x3eeed5>=0x0;_0x3eeed5--)(_0x536944=_0x3ed831[_0x3eeed5])&&(_0x1ff8ba=_0x536944(_0x1ff8ba)||_0x1ff8ba);return _0x1ff8ba;},_0x108661=(_0x306613,_0x40f802)=>(_0x333946,_0x45b7b1)=>_0x40f802(_0x333946,_0x45b7b1,_0x306613);let _0xa82539=class extends _0xb5ae36[_0x5508b7(0x207)]{constructor(_0x5cd6e1){const _0x211733=_0x5508b7;super(),this[_0x211733(0x21b)]=_0x5cd6e1,this[_0x211733(0x247)]();}[_0x5508b7(0x247)](){const _0x2c7f7c=_0x5508b7;[_0x4234cc[_0x2c7f7c(0x23a)]['id'],_0x4234cc['SetScrollOperation']['id'],_0x45207c[_0x2c7f7c(0x25a)]['id']][_0x2c7f7c(0x272)](_0x2e8105=>{const _0xb7f543=_0x2c7f7c;this[_0xb7f543(0x26a)](this[_0xb7f543(0x21b)][_0xb7f543(0x273)](_0x2e8105));});}};_0xa82539=_0x493590([_0x108661(0x0,_0xb5ae36[_0x5508b7(0x25f)](_0x14b749))],_0xa82539);var _0x407cde=Object[_0x5508b7(0x29a)],_0x128edf=Object[_0x5508b7(0x22d)],_0x22e401=(_0x14643e,_0x2627a0,_0x23e709)=>_0x2627a0 in _0x14643e?_0x407cde(_0x14643e,_0x2627a0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23e709}):_0x14643e[_0x2627a0]=_0x23e709,_0x45351a=(_0x12d1b2,_0x120c8d,_0x252a96,_0x4c225d)=>{const _0x4e075f=_0x5508b7;for(var _0x5eaec4=_0x4c225d>0x1?void 0x0:_0x4c225d?_0x128edf(_0x120c8d,_0x252a96):_0x120c8d,_0x463503=_0x12d1b2[_0x4e075f(0x244)]-0x1,_0x247623;_0x463503>=0x0;_0x463503--)(_0x247623=_0x12d1b2[_0x463503])&&(_0x5eaec4=_0x247623(_0x5eaec4)||_0x5eaec4);return _0x5eaec4;},_0x4d1805=(_0x49b60f,_0x3a1a03)=>(_0x562da3,_0x1d07ec)=>_0x3a1a03(_0x562da3,_0x1d07ec,_0x49b60f),_0x1b3554=(_0x3f421b,_0x4cdc71,_0xc7bef7)=>_0x22e401(_0x3f421b,typeof _0x4cdc71!=_0x5508b7(0x1f8)?_0x4cdc71+'':_0x4cdc71,_0xc7bef7);const _0x29bdf4=_0x5508b7(0x2a3);_0x3489d5[_0x5508b7(0x289)]=class extends _0xb5ae36[_0x5508b7(0x278)]{constructor(_0x3fa3cc=_0x2ee98f,_0x49e36b,_0x2341c5){const _0x590630=_0x5508b7;super(),this[_0x590630(0x2d1)]=_0x3fa3cc,this['_injector']=_0x49e36b,this[_0x590630(0x28e)]=_0x2341c5;const {..._0x44d8ff}=_0xb5ae36[_0x590630(0x2bc)]({},_0x2ee98f,this['_config']);this[_0x590630(0x28e)]['setConfig'](_0x142e49,_0x44d8ff);}['onStarting'](){const _0x5dc768=_0x5508b7;_0xb5ae36[_0x5dc768(0x22a)](this[_0x5dc768(0x256)],_0xb5ae36[_0x5dc768(0x268)]([[_0x14b749],[_0x3489d5['LiveShareController']],[_0xa82539],[_0x3489d5[_0x5dc768(0x2a5)]]],this['_config']['override'])),_0xb5ae36[_0x5dc768(0x255)](this[_0x5dc768(0x256)],[[_0xa82539]]);}[_0x5508b7(0x25d)](){const _0x3773f=_0x5508b7;_0xb5ae36['touchDependencies'](this[_0x3773f(0x256)],[[_0x3489d5[_0x3773f(0x2a5)]]]);}},_0x1b3554(_0x3489d5['UniverLiveSharePlugin'],_0x5508b7(0x294),_0xb5ae36['UniverInstanceType'][_0x5508b7(0x204)]),_0x1b3554(_0x3489d5[_0x5508b7(0x289)],_0x5508b7(0x2bd),_0x29bdf4),_0x3489d5[_0x5508b7(0x289)]=_0x45351a([_0xb5ae36[_0x5508b7(0x27b)](_0x5a862d[_0x5508b7(0x2c5)]),_0x4d1805(0x1,_0xb5ae36[_0x5508b7(0x25f)](_0xb5ae36['Injector'])),_0x4d1805(0x2,_0xb5ae36[_0x5508b7(0x27d)])],_0x3489d5[_0x5508b7(0x289)]),_0x3489d5['LiveShare']=_0x36c6d3,_0x3489d5['LiveShareService']=_0x14b749,_0x3489d5[_0x5508b7(0x252)]=_0x12bed9,Object[_0x5508b7(0x29a)](_0x3489d5,Symbol[_0x5508b7(0x261)],{'value':_0x5508b7(0x24b)});}));function _0x207e(_0xa7e67f,_0x167e85){const _0x3384a3=_0x3384();return _0x207e=function(_0x207e0c,_0x5382aa){_0x207e0c=_0x207e0c-0x1f2;let _0x1c2d56=_0x3384a3[_0x207e0c];return _0x1c2d56;},_0x207e(_0xa7e67f,_0x167e85);}function _0x3384(){const _0x20afda=['add','1723082UsFrBO','executeCommand','LiveShareStatus','function','SessionStatus','touchDependencies','_injector','_stopPresenting','then','UniverIcon','SetWorksheetActiveOperation','currentColor','LIVESHARE_FETCH_OPERATIONS','onRendered','getUnitId','Inject','http://www.w3.org/2000/svg','toStringTag','values','UniverDesign','_stopFollowing','children','PRESENTING','LiveShareController','mergeOverrideWithDependencies','evenodd','disposeWithMe','takeUntil','presenter','pipe','You\x27re\x20not\x20following\x20the\x20presenter','react','OFFLINE','@univerjs/core','forEach','registerSharedOperation','string','text','UniverSheets','_handleNewChangeSets','Plugin','UniverUi','_mountLiveShare','DependentOn','NOT_FOLLOWING','IConfigService','send','@univerjs/sheets','parse','none','map','CommandType','startFollowing','defs','end','reverse','LiveShareCoordinator','UniverLiveSharePlugin','_status','_commandService','getTypeOfUnitDisposed$','next','_configService','stringify','_univerInstanceService','params','Dropdown','attrs','type','useDependency','following','random','object','dispose','defineProperty','react/jsx-runtime','mask','includes','ONLINE','UniverInstanceType','complete','clear','set','UNIVER_LIVE_SHARE_PLUGIN','button','DesktopLiveShareController','connectInjector','memberID','_commandDisposable','_presenter','RxDisposable','2550915jEIUeZ','amd','@univerjs-pro/collaboration','useEffect','createInstance','SAME_OPERATION_SHARE_INTERVAL','unsubscribe','LIVESHARE_OPERATION','tryStartPresenting','_fetchOperations','createElement','CollaborationSessionService','@univerjs/sheets-ui','getConfig','Present\x20this\x20document','HEADER_MENU','xlink:href','merge','pluginName','fill','tag','getInitialStates','_handleOperation','UNIVER_SHEET','851841eOsgkV','live-share.config','UniverCollaborationClientPlugin','current','9bjDOQF','stopFollowing','_startFollowing','colorChannel1','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','3kSEIMf','4357256oQkZcR','getLiveShareCoordinator','url(#$1','status$','_config','defIds','init','1em','LIVESHARE_NEW_HOST','getMemberID','_unitID','Injector','symbol','getStatus','assign','You\x27re\x20presenting\x20the\x20document','data','_handleNewHost','trim','_entities','offline','FOLLOWING','toDisposable','dispose$','UNIVER_UNKNOWN','getTypeOfUnitAdded$','CollaborationEvent','Disposable','getCurrentTypeOfUnit$','rxjs/operators','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','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','Fragment','_status$','UniverProCollaborationClient','_startLiveShareCoordinator','_handleOnline','_sharedOperations','substring','stopPresenting','jsx','_collabSessionService','requireSession','univer-mb-3\x20univer-w-full\x20univer-text-sm','Button','2846244knoqlG','getLiveShareCoordinatorSync','_liveShareService','div','idle','use','_uiPartsService','React','_startPresenting','3200771GvoZhJ','toString','UniverProCollaboration','sessionStatus$','_reporters','845720qqZhFx','event$','useState','registerDependencies','get','Stop\x20following','getOwnPropertyDescriptor','throttleTime','jsxs','@univerjs-pro/collaboration-client','_handleTerminate','IUniverInstanceService','presenting','not-following','has','_handleOffline','Start','0\x200\x2017\x2017','IDLE','SetZoomRatioOperation','path','univer-size-4','rxjs','entries','_collabSession','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','useRef','You\x27re\x20following\x20the\x20presenter','OPERATION','length','onCommandExecuted','idSuffix','_init','operators','NEW_CHANGESETS','displayName','Module','You\x27are\x20offline.','from','subscribe'];_0x3384=function(){return _0x20afda;};return _0x3384();}
|
|
1
|
+
function _0x5dcd(){const _0x82308e=['live-share-icon','LIVESHARE_TERMINATE','current','defineProperty','getTypeOfUnitDisposed$','presenting','925608JsFrMT','@univerjs/core','clear','27TPnsbG','IConfigService','Present\x20this\x20document','div','idSuffix','useEffect','entries','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','length','not-following','symbol','then','LiveShare','UniverSheets','_handleOffline','forwardRef','UniverCore','_handleOnline','svg','univerjs-icon\x20univerjs-icon-','NOT_FOLLOWING','CommandType','object','setConfig','UniverCollaborationClientPlugin','random','BehaviorSubject','pipe','jsx','useState','5fSewQZ','trim','_commandDisposable','sheet','stringify','getTypeOfUnitAdded$','fill','@univerjs/sheets-ui','stopPresenting','button','has','live-share.config','from','_status','takeUntil','get','executeCommand','Injector','_handleNewHost','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','disposeWithMe','path','UniverProCollaborationClient','_collabSessionService','IDLE','_presenter','UniverUi','_beIdle','find','displayName','LIVESHARE_OPERATION','jsxs','clsx','init','replace','presenter','_uiPartsService','_collabSession','react/jsx-runtime','shouldShareOperation','DesktopLiveShareController','_liveShareService','children','Plugin','_injector','FOLLOWING','OFFLINE','registerInitialStateReporter','string','unitId','getStatus','rxjs/operators','_commandService','UNIVER_UNKNOWN','SessionStatus','IUIPartsService','UniverIcon','useObservable','LiveShareController','_sharedOperations','mask','_stopPresenting','UniverProCollaboration','univer-size-4','DependentOn','Stop\x20presenting','exports','asObservable','tag','type','event$','_fetchOperations','useRef','sessionStatus$','_univerInstanceService','complete','UniverSheetsUi','React','IUniverInstanceService','reverse','amd','createElement','HEADER_MENU','react','params','mutations','override','idle','getUnitId','delete','add','_startLiveShareCoordinator','data','_config','getLiveShareCoordinator','getCurrentTypeOfUnit$','getLiveShareCoordinatorSync','_handleTerminate','url(#$1','registerSharedOperation','status$','following','DisposableCollection','OPERATION','@univerjs-pro/collaboration-client','defs','throttleTime','Inject','createInstance','startFollowing','Disposable','_unitID','ONLINE','getConfig','_startFollowing','unsubscribe','_entities','toDisposable','parseProtocolChangeset','mergeOverrideWithDependencies','@univerjs/sheets','getMemberID','dispose$','getOwnPropertyDescriptor','_status$','1em','LIVESHARE_NEW_HOST','915753OZLNhQ','@univerjs/design','getValue','BuiltInUIPart','forEach','http://www.w3.org/2000/svg','defIds','Stop\x20following','_mountLiveShare','toString','dispose','evenodd','Module','RxDisposable','488014gjhBzW','none','map','PRESENTING','toStringTag','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','SetWorksheetActiveOperation','_handleNewChangeSets','colorChannel1','30MKKAbU','_init','onCommandExecuted','_configService','LiveShareCoordinator','UniverLiveSharePlugin','UniverInstanceType','_reporters','ICommandService','1746833CtmPTe','memberID','getInitialStates','_stopFollowing','CollaborationEvent','attrs','Button','onStarting','subscribe','_startPresenting','next','operators','LiveShareIcon','includes','end','Fragment','touchDependencies','UNIVER_SHEET','Start\x20following','rxjs','175620fGQCvc','onRendered','_handleOperation','useDependency','stopFollowing','currentColor','xlink:href','operations','send','pluginName','tryStartPresenting','LIVESHARE_REQUEST_HOST','Start','CollaborationSessionService','136630hqPKTl','offline','7mypvyU','499560TzESKY','set','univer-mb-3\x20univer-w-full\x20univer-text-sm','You\x27re\x20following\x20the\x20presenter'];_0x5dcd=function(){return _0x82308e;};return _0x5dcd();}function _0x5f54(_0x5114ce,_0x4d7cb8){const _0x5dcd11=_0x5dcd();return _0x5f54=function(_0x5f545d,_0xe0a9d5){_0x5f545d=_0x5f545d-0x7a;let _0x5c68f1=_0x5dcd11[_0x5f545d];return _0x5c68f1;},_0x5f54(_0x5114ce,_0x4d7cb8);}(function(_0x19f638,_0x43c87a){const _0x5019c9=_0x5f54,_0x52b10a=_0x19f638();while(!![]){try{const _0x4cc4b1=parseInt(_0x5019c9(0x158))/0x1+-parseInt(_0x5019c9(0x124))/0x2+parseInt(_0x5019c9(0x116))/0x3+-parseInt(_0x5019c9(0x14a))/0x4*(parseInt(_0x5019c9(0x97))/0x5)+parseInt(_0x5019c9(0x165))/0x6*(-parseInt(_0x5019c9(0x15a))/0x7)+parseInt(_0x5019c9(0x15b))/0x8*(-parseInt(_0x5019c9(0x168))/0x9)+-parseInt(_0x5019c9(0x12d))/0xa*(-parseInt(_0x5019c9(0x136))/0xb);if(_0x4cc4b1===_0x43c87a)break;else _0x52b10a['push'](_0x52b10a['shift']());}catch(_0x2a1a38){_0x52b10a['push'](_0x52b10a['shift']());}}}(_0x5dcd,0x46807),function(_0x74f9df,_0x9302f5){const _0x1fc1f5=_0x5f54;typeof exports==_0x1fc1f5(0x8f)&&typeof module<'u'?_0x9302f5(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[_0x1fc1f5(0xe7)]?define([_0x1fc1f5(0xd9),_0x1fc1f5(0x166),'@univerjs/ui',_0x1fc1f5(0xbd),_0x1fc1f5(0x117),_0x1fc1f5(0xea),'@univerjs-pro/collaboration',_0x1fc1f5(0xff),_0x1fc1f5(0x10f),_0x1fc1f5(0x149),_0x1fc1f5(0xca),_0x1fc1f5(0x9e)],_0x9302f5):(_0x74f9df=typeof globalThis<'u'?globalThis:_0x74f9df||self,_0x9302f5(_0x74f9df['UniverProLiveShare']={},_0x74f9df[_0x1fc1f5(0x89)],_0x74f9df[_0x1fc1f5(0xb1)],_0x74f9df[_0x1fc1f5(0xe4)],_0x74f9df['UniverDesign'],_0x74f9df[_0x1fc1f5(0xe4)],_0x74f9df[_0x1fc1f5(0xd5)],_0x74f9df[_0x1fc1f5(0xad)],_0x74f9df[_0x1fc1f5(0x86)],_0x74f9df[_0x1fc1f5(0x149)],_0x74f9df[_0x1fc1f5(0x149)][_0x1fc1f5(0x141)],_0x74f9df[_0x1fc1f5(0xe3)]));}(this,function(_0x337bdf,_0x22843f,_0x43069c,_0x6ca322,_0x168d28,_0x4af639,_0x7b6f2e,_0x48621c,_0x40796a,_0xc3b0d0,_0x12ea5d,_0x5857a0){'use strict';const _0x41be65=_0x5f54;var _0x581918=Object[_0x41be65(0x162)],_0x1736b3=(_0x438062,_0x33831f,_0xc8a99)=>_0x33831f in _0x438062?_0x581918(_0x438062,_0x33831f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc8a99}):_0x438062[_0x33831f]=_0xc8a99,_0x1af315=(_0xc3fa7d,_0x2b7fa3,_0x1de253)=>_0x1736b3(_0xc3fa7d,typeof _0x2b7fa3!=_0x41be65(0x83)?_0x2b7fa3+'':_0x2b7fa3,_0x1de253);function _0x4b4bc8({ref:_0x61de6e,..._0x47dff6}){const _0x3bcfb7=_0x41be65,{icon:_0x3909a9,id:_0x3413bd,className:_0x1a27ee,extend:_0x4643a5,..._0x216eef}=_0x47dff6,_0x49cc7d=(_0x3bcfb7(0x8c)+_0x3413bd+'\x20'+(_0x1a27ee||''))[_0x3bcfb7(0x98)](),_0x332083=_0x4af639[_0x3bcfb7(0xdf)]('_'+_0x372e98());return _0x2567ad(_0x3909a9,''+_0x3413bd,{'defIds':_0x3909a9[_0x3bcfb7(0x11c)],'idSuffix':_0x332083[_0x3bcfb7(0x161)]},{'ref':_0x61de6e,'className':_0x49cc7d,..._0x216eef},_0x4643a5);}function _0x2567ad(_0x52fbd3,_0x14765c,_0x416e39,_0x204c2d,_0x3025dc){const _0x322a37=_0x41be65;return _0x4af639[_0x322a37(0xe8)](_0x52fbd3[_0x322a37(0xdb)],{'key':_0x14765c,..._0x4a4e94(_0x52fbd3,_0x416e39,_0x3025dc),..._0x204c2d},(_0x195abe(_0x52fbd3,_0x416e39)[_0x322a37(0xc1)]||[])[_0x322a37(0x126)]((_0x395254,_0x384367)=>_0x2567ad(_0x395254,_0x14765c+'-'+_0x52fbd3[_0x322a37(0xdb)]+'-'+_0x384367,_0x416e39,void 0x0,_0x3025dc)));}function _0x4a4e94(_0x3de5aa,_0x5b4838,_0x195eb0){const _0x54d2af=_0x41be65,_0x1e39fb={..._0x3de5aa[_0x54d2af(0x13b)]};_0x195eb0!=null&&_0x195eb0[_0x54d2af(0x12c)]&&_0x1e39fb[_0x54d2af(0x9d)]===_0x54d2af(0x12c)&&(_0x1e39fb['fill']=_0x195eb0[_0x54d2af(0x12c)]),_0x3de5aa['tag']===_0x54d2af(0xd3)&&_0x1e39fb['id']&&(_0x1e39fb['id']=_0x1e39fb['id']+_0x5b4838['idSuffix']),Object[_0x54d2af(0x7f)](_0x1e39fb)[_0x54d2af(0x11a)](([_0x5ee25a,_0x496e47])=>{const _0x2a0d04=_0x54d2af;_0x5ee25a===_0x2a0d04(0xd3)&&typeof _0x496e47==_0x2a0d04(0xc7)&&(_0x1e39fb[_0x5ee25a]=_0x496e47[_0x2a0d04(0xb9)](/url\(#(.*)\)/,_0x2a0d04(0xf9)+_0x5b4838[_0x2a0d04(0x7d)]+')'));});const {defIds:_0x43618e}=_0x5b4838;return!_0x43618e||_0x43618e[_0x54d2af(0x81)]===0x0||(_0x3de5aa[_0x54d2af(0xdb)]==='use'&&_0x1e39fb[_0x54d2af(0x150)]&&(_0x1e39fb[_0x54d2af(0x150)]=_0x1e39fb[_0x54d2af(0x150)]+_0x5b4838[_0x54d2af(0x7d)]),Object['entries'](_0x1e39fb)[_0x54d2af(0x11a)](([_0x2afa8e,_0x4bc808])=>{const _0x44dcbe=_0x54d2af;typeof _0x4bc808==_0x44dcbe(0xc7)&&(_0x1e39fb[_0x2afa8e]=_0x4bc808[_0x44dcbe(0xb9)](/url\(#(.*)\)/,_0x44dcbe(0xf9)+_0x5b4838[_0x44dcbe(0x7d)]+')'));})),_0x1e39fb;}function _0x195abe(_0x31d212,_0x2b1196){const _0x296b54=_0x41be65;var _0x3f1643;const {defIds:_0x431d13}=_0x2b1196;return!_0x431d13||_0x431d13[_0x296b54(0x81)]===0x0?_0x31d212:_0x31d212[_0x296b54(0xdb)]===_0x296b54(0x100)&&((_0x3f1643=_0x31d212[_0x296b54(0xc1)])!=null&&_0x3f1643[_0x296b54(0x81)])?{..._0x31d212,'children':_0x31d212[_0x296b54(0xc1)][_0x296b54(0x126)](_0x5179b5=>typeof _0x5179b5[_0x296b54(0x13b)]['id']=='string'&&_0x431d13&&_0x431d13[_0x296b54(0x143)](_0x5179b5[_0x296b54(0x13b)]['id'])?{..._0x5179b5,'attrs':{..._0x5179b5[_0x296b54(0x13b)],'id':_0x5179b5['attrs']['id']+_0x2b1196['idSuffix']}}:_0x5179b5)}:_0x31d212;}function _0x372e98(){const _0x1626f8=_0x41be65;return Math[_0x1626f8(0x92)]()[_0x1626f8(0x11f)](0x24)['substring'](0x2,0x8);}_0x4b4bc8[_0x41be65(0xb4)]=_0x41be65(0xcf);const _0x3ccfca={'tag':_0x41be65(0x8b),'attrs':{'xmlns':_0x41be65(0x11b),'fill':_0x41be65(0x125),'viewBox':'0\x200\x2017\x2017','width':_0x41be65(0x114),'height':_0x41be65(0x114)},'children':[{'tag':_0x41be65(0xac),'attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x41be65(0xac),'attrs':{'fill':_0x41be65(0x14f),'d':_0x41be65(0xaa),'fillRule':'evenodd','clipRule':_0x41be65(0x121)}}]},_0x319dcd=_0x4af639[_0x41be65(0x88)](function(_0x5d36c5,_0x1d8f64){const _0x4e8304=_0x41be65;return _0x4af639[_0x4e8304(0xe8)](_0x4b4bc8,Object['assign']({},_0x5d36c5,{'id':_0x4e8304(0x15f),'ref':_0x1d8f64,'icon':_0x3ccfca}));});_0x319dcd['displayName']=_0x41be65(0x142);class _0x5c7e50 extends _0x22843f[_0x41be65(0x105)]{constructor(){const _0x28c27b=_0x41be65;super(...arguments),_0x1af315(this,'_sharedOperations',new Set()),_0x1af315(this,_0x28c27b(0x134),new Set());}['registerSharedOperation'](_0xa8dc47){const _0x27af35=_0x41be65;return this['_sharedOperations'][_0x27af35(0xf1)](_0xa8dc47),_0x22843f['toDisposable'](()=>this[_0x27af35(0xd2)][_0x27af35(0xf0)](_0xa8dc47));}[_0x41be65(0xc6)](_0x1f0da6){const _0x4f2aed=_0x41be65;return this[_0x4f2aed(0x134)][_0x4f2aed(0xf1)](_0x1f0da6),_0x22843f[_0x4f2aed(0x10c)](()=>this['_reporters'][_0x4f2aed(0xf0)](_0x1f0da6));}['shouldShareOperation'](_0x129591){const _0x1e86f2=_0x41be65;return this[_0x1e86f2(0xd2)][_0x1e86f2(0xa1)](_0x129591);}[_0x41be65(0x138)](_0x1f0aed){const _0x4dc868=_0x41be65;return Array[_0x4dc868(0xa3)](this[_0x4dc868(0x134)])[_0x4dc868(0x126)](_0x154da3=>_0x154da3(_0x1f0aed));}}var _0x44c52a=Object[_0x41be65(0x112)],_0x2ba73f=(_0xda7e06,_0x177e01,_0x3a2ac9,_0x11885e)=>{for(var _0x135f61=_0x11885e>0x1?void 0x0:_0x11885e?_0x44c52a(_0x177e01,_0x3a2ac9):_0x177e01,_0xa74033=_0xda7e06['length']-0x1,_0x459beb;_0xa74033>=0x0;_0xa74033--)(_0x459beb=_0xda7e06[_0xa74033])&&(_0x135f61=_0x459beb(_0x135f61)||_0x135f61);return _0x135f61;},_0x19bedc=(_0x12f12f,_0x40a059)=>(_0x497554,_0x38e3b4)=>_0x40a059(_0x497554,_0x38e3b4,_0x12f12f);_0x337bdf['LiveShareController']=class extends _0x22843f[_0x41be65(0x123)]{constructor(_0x55e86e,_0x4b4147,_0x50c177){const _0x11267c=_0x41be65;super(),_0x1af315(this,_0x11267c(0x10b),new Map()),(this['_univerInstanceService']=_0x55e86e,this[_0x11267c(0xc3)]=_0x4b4147,this[_0x11267c(0xae)]=_0x50c177,this[_0x11267c(0x12e)]());}async['getLiveShareCoordinator'](_0x321577){const _0x21d531=_0x41be65;return this[_0x21d531(0x10b)][_0x21d531(0xa1)](_0x321577)||await this[_0x21d531(0xf2)](_0x321577),this[_0x21d531(0x10b)][_0x21d531(0xa6)](_0x321577);}[_0x41be65(0xf7)](_0x403409){const _0x18a5b8=_0x41be65;var _0x196053;return(_0x196053=this['_entities'][_0x18a5b8(0xa6)](_0x403409))!=null?_0x196053:null;}['_init'](){const _0x48aba3=_0x41be65;this[_0x48aba3(0xe1)][_0x48aba3(0x9c)](_0x22843f['UniverInstanceType'][_0x48aba3(0x147)])[_0x48aba3(0x94)](_0x12ea5d[_0x48aba3(0xa5)](this['dispose$']))['subscribe'](async _0x2a75a8=>{const _0x13153b=_0x48aba3,_0x5aaaa0=_0x2a75a8[_0x13153b(0xef)]();this[_0x13153b(0x10b)]['has'](_0x5aaaa0)||this['_startLiveShareCoordinator'](_0x5aaaa0);}),this[_0x48aba3(0xe1)][_0x48aba3(0x163)](_0x22843f['UniverInstanceType'][_0x48aba3(0x147)])[_0x48aba3(0x94)](_0x12ea5d[_0x48aba3(0xa5)](this[_0x48aba3(0x111)]))[_0x48aba3(0x13e)](_0x1a30e6=>{const _0x32156f=_0x48aba3,_0x3dafc0=_0x1a30e6[_0x32156f(0xef)](),_0x4aedcc=this[_0x32156f(0x10b)][_0x32156f(0xa6)](_0x3dafc0);_0x4aedcc==null||_0x4aedcc[_0x32156f(0x120)]();});}async[_0x41be65(0xf2)](_0x49e162){const _0x504715=_0x41be65,_0x92e300=await this[_0x504715(0xae)]['requireSession'](_0x49e162),_0xd83f4=this[_0x504715(0xc3)][_0x504715(0x103)](_0x337bdf[_0x504715(0x131)],_0x49e162,_0x92e300);return _0xd83f4[_0x504715(0xb8)](),this[_0x504715(0x10b)][_0x504715(0x15c)](_0x49e162,_0xd83f4),_0xd83f4;}},_0x337bdf[_0x41be65(0xd1)]=_0x2ba73f([_0x19bedc(0x0,_0x22843f['IUniverInstanceService']),_0x19bedc(0x1,_0x22843f['Inject'](_0x22843f[_0x41be65(0xa8)])),_0x19bedc(0x2,_0x22843f['Inject'](_0x48621c[_0x41be65(0x157)]))],_0x337bdf[_0x41be65(0xd1)]);var _0x119424=(_0x55cc62=>(_0x55cc62['OFFLINE']=_0x41be65(0x159),_0x55cc62[_0x41be65(0xaf)]='idle',_0x55cc62[_0x41be65(0xc4)]=_0x41be65(0xfc),_0x55cc62[_0x41be65(0x8d)]='not-following',_0x55cc62[_0x41be65(0x127)]=_0x41be65(0x164),_0x55cc62))(_0x119424||{});const _0x5b6813='SAME_OPERATION_SHARE_INTERVAL',_0x345f6f=0xc8;_0x337bdf[_0x41be65(0x131)]=class extends _0x22843f[_0x41be65(0x123)]{constructor(_0x3df219,_0x27e469,_0x26cd12,_0x263ab0,_0x5c5b25){const _0x50237c=_0x41be65;super(),_0x1af315(this,_0x50237c(0x113),new _0xc3b0d0[(_0x50237c(0x93))]('idle')),_0x1af315(this,_0x50237c(0xfb),this[_0x50237c(0x113)][_0x50237c(0xda)]()),_0x1af315(this,'_init',!0x1),_0x1af315(this,_0x50237c(0x99),null),_0x1af315(this,_0x50237c(0xb0),null),(this[_0x50237c(0x106)]=_0x3df219,this['_collabSession']=_0x27e469,this[_0x50237c(0x130)]=_0x26cd12,this[_0x50237c(0xc0)]=_0x263ab0,this[_0x50237c(0xcb)]=_0x5c5b25);}get['_status'](){const _0x576342=_0x41be65;return this[_0x576342(0x113)][_0x576342(0x118)]();}[_0x41be65(0x120)](){const _0x5d26b3=_0x41be65;var _0xca9da7;(_0xca9da7=this[_0x5d26b3(0x99)])==null||_0xca9da7[_0x5d26b3(0x120)](),this['_status$'][_0x5d26b3(0x140)](_0x5d26b3(0xee)),this[_0x5d26b3(0x113)][_0x5d26b3(0xe2)]();}[_0x41be65(0xc9)](){const _0x135d3a=_0x41be65;return this[_0x135d3a(0xa4)];}[_0x41be65(0xb8)](){const _0x3831bd=_0x41be65;this[_0x3831bd(0x12e)]||(this[_0x3831bd(0x12e)]=!0x0,this[_0x3831bd(0xbc)][_0x3831bd(0xe0)][_0x3831bd(0x94)](_0x12ea5d[_0x3831bd(0xa5)](this[_0x3831bd(0x111)]))[_0x3831bd(0x13e)](_0x1ef735=>{const _0x1c0bd6=_0x3831bd;switch(_0x1ef735){case _0x48621c[_0x1c0bd6(0xcd)]['OFFLINE']:this[_0x1c0bd6(0x87)]();break;case _0x48621c[_0x1c0bd6(0xcd)][_0x1c0bd6(0x107)]:this[_0x1c0bd6(0x8a)]();break;}}),this[_0x3831bd(0xbc)][_0x3831bd(0xdd)][_0x3831bd(0x94)](_0x12ea5d[_0x3831bd(0xa5)](this[_0x3831bd(0x111)]))[_0x3831bd(0x13e)](_0x38b1dc=>{const _0x267d0d=_0x3831bd,{eventID:_0x4bbec8}=_0x38b1dc;switch(_0x4bbec8){case _0x7b6f2e['CollaborationEvent'][_0x267d0d(0x115)]:this[_0x267d0d(0xa9)](_0x38b1dc);break;case _0x7b6f2e['CollaborationEvent'][_0x267d0d(0xb5)]:this[_0x267d0d(0x14c)](_0x38b1dc);break;case _0x7b6f2e['CollaborationEvent'][_0x267d0d(0x160)]:this[_0x267d0d(0xf8)]();break;case _0x7b6f2e['CollaborationEvent']['NEW_CHANGESETS']:this[_0x267d0d(0x12b)](_0x38b1dc);break;}}));}[_0x41be65(0x154)](){const _0x14b738=_0x41be65;this[_0x14b738(0xbc)][_0x14b738(0x152)]({'eventID':_0x7b6f2e[_0x14b738(0x13a)][_0x14b738(0x155)],'data':{'unitID':this[_0x14b738(0x106)],'userID':this['_collabSession']['getMemberID']()}},this[_0x14b738(0x106)]);}['stopPresenting'](){const _0x53c8c2=_0x41be65;this['_status']===_0x53c8c2(0x164)&&(this[_0x53c8c2(0x113)]['next'](_0x53c8c2(0xee)),this[_0x53c8c2(0xbc)][_0x53c8c2(0x152)]({'eventID':_0x7b6f2e[_0x53c8c2(0x13a)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x53c8c2(0x106)]}},this['_unitID']));}[_0x41be65(0x104)](){const _0x37e03f=_0x41be65;this[_0x37e03f(0xa4)]===_0x37e03f(0x82)&&(this[_0x37e03f(0x113)]['next'](_0x37e03f(0xfc)),this['_startFollowing']());}[_0x41be65(0x14e)](){const _0x536e23=_0x41be65;this[_0x536e23(0xa4)]===_0x536e23(0xfc)&&this[_0x536e23(0x139)]();}[_0x41be65(0xa9)](_0x1c3a4d){const _0x12a7a9=_0x41be65,{presenter:_0x256610}=_0x1c3a4d[_0x12a7a9(0xf3)],_0x4fda5c=this[_0x12a7a9(0xbc)][_0x12a7a9(0x110)]();this[_0x12a7a9(0xb0)]=_0x256610,_0x256610===_0x4fda5c?(this[_0x12a7a9(0x139)](),this[_0x12a7a9(0x13f)]()):this[_0x12a7a9(0xa4)]!==_0x12a7a9(0x82)&&(this[_0x12a7a9(0xd4)](),this[_0x12a7a9(0x109)]());}[_0x41be65(0xde)](){const _0x481720=_0x41be65,_0x228a62={'eventID':_0x7b6f2e['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x481720(0xbc)][_0x481720(0x152)](_0x228a62,this[_0x481720(0x106)]);}[_0x41be65(0xf8)](){const _0x1e0e99=_0x41be65;this[_0x1e0e99(0xb0)]=null,this[_0x1e0e99(0xa4)]!=='presenting'&&this[_0x1e0e99(0xb2)]();}['_handleNewChangeSets'](_0x5d42a9){const _0x2b3dd2=_0x41be65;if(this[_0x2b3dd2(0xa4)]===_0x2b3dd2(0xfc)&&this[_0x2b3dd2(0xb0)]===_0x5d42a9[_0x2b3dd2(0xf3)][_0x2b3dd2(0x137)]){const _0x2dc51e=_0x7b6f2e[_0x2b3dd2(0x10d)](_0x5d42a9[_0x2b3dd2(0xf3)])[_0x2b3dd2(0xec)][_0x2b3dd2(0xe6)]()[_0x2b3dd2(0xb3)](_0x4442a2=>_0x4442a2['id']===_0x40796a['InsertSheetMutation']['id']);if(_0x2dc51e){const _0xb2aca6=_0x2dc51e[_0x2b3dd2(0xeb)][_0x2b3dd2(0xc8)],_0x1885b0=_0x2dc51e[_0x2b3dd2(0xeb)][_0x2b3dd2(0x9a)]['id'];setTimeout(()=>{const _0x3a233d=_0x2b3dd2;this[_0x3a233d(0xcb)][_0x3a233d(0xa7)](_0x40796a[_0x3a233d(0x12a)]['id'],{'unitId':_0xb2aca6,'subUnitId':_0x1885b0},{'fromCollab':!0x0});});}}}[_0x41be65(0x13f)](){const _0x16ceba=_0x41be65;this[_0x16ceba(0x113)][_0x16ceba(0x140)](_0x16ceba(0x164));const _0x1d443e=new Map(),_0x74dbdd=this['_commandDisposable']=new _0x22843f[(_0x16ceba(0xfd))]();_0x74dbdd[_0x16ceba(0xf1)](_0x22843f[_0x16ceba(0x10c)](()=>{const _0x3e0fe9=_0x16ceba;_0x1d443e[_0x3e0fe9(0x11a)](_0x8841b0=>_0x8841b0[_0x3e0fe9(0xe2)]()),_0x1d443e[_0x3e0fe9(0x167)]();})),_0x74dbdd['add'](this[_0x16ceba(0xcb)][_0x16ceba(0x12f)](_0x43bb48=>{const _0x348003=_0x16ceba;var _0x3c513b;if(_0x43bb48[_0x348003(0xdc)]!==_0x22843f[_0x348003(0x8e)][_0x348003(0xfe)]||!this[_0x348003(0xc0)][_0x348003(0xbe)](_0x43bb48['id']))return;const {id:_0x23afb0}=_0x43bb48;let _0x7e56a5;_0x1d443e[_0x348003(0xa1)](_0x23afb0)?_0x7e56a5=_0x1d443e[_0x348003(0xa6)](_0x23afb0):(_0x7e56a5=new _0xc3b0d0['Subject'](),_0x1d443e['set'](_0x23afb0,_0x7e56a5),_0x7e56a5[_0x348003(0x94)](_0x12ea5d[_0x348003(0x101)]((_0x3c513b=this[_0x348003(0x130)][_0x348003(0x108)](_0x5b6813))!=null?_0x3c513b:_0x345f6f,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2a556b=>{const _0xb22186=_0x348003;this[_0xb22186(0xbc)][_0xb22186(0x152)]({'eventID':_0x7b6f2e[_0xb22186(0x13a)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xb22186(0x106)],'operations':{[_0x2a556b['id']]:{'id':_0x2a556b['id'],'params':JSON[_0xb22186(0x9b)](_0x2a556b[_0xb22186(0xeb)])}}}},this['_unitID']);})),_0x7e56a5[_0x348003(0x140)](_0x43bb48);})),this[_0x16ceba(0xc0)][_0x16ceba(0x138)](this[_0x16ceba(0x106)])['forEach'](_0x3c6609=>this[_0x16ceba(0xbc)][_0x16ceba(0x152)]({'eventID':_0x7b6f2e['CollaborationEvent'][_0x16ceba(0xb5)],'data':{'unitID':this[_0x16ceba(0x106)],'operations':{[_0x3c6609['id']]:{'id':_0x3c6609['id'],'params':JSON[_0x16ceba(0x9b)](_0x3c6609[_0x16ceba(0xeb)])}}}},this[_0x16ceba(0x106)]));}[_0x41be65(0xd4)](){const _0x438215=_0x41be65;var _0x4b7a69;this[_0x438215(0x113)]['next']('idle'),(_0x4b7a69=this[_0x438215(0x99)])==null||_0x4b7a69[_0x438215(0x120)](),this[_0x438215(0x99)]=null;}['_startFollowing'](){const _0x1b2cb8=_0x41be65;var _0x187ca6;(_0x187ca6=this[_0x1b2cb8(0x99)])==null||_0x187ca6['dispose'](),this[_0x1b2cb8(0x113)][_0x1b2cb8(0x140)](_0x1b2cb8(0xfc));}[_0x41be65(0xb2)](){const _0x49b2a8=_0x41be65;var _0x89103d;this['_status$']['next'](_0x49b2a8(0xee)),(_0x89103d=this[_0x49b2a8(0x99)])==null||_0x89103d[_0x49b2a8(0x120)](),this[_0x49b2a8(0x99)]=null;}[_0x41be65(0x139)](){const _0x17c3f6=_0x41be65;var _0xe015bd;this[_0x17c3f6(0x113)]['next'](_0x17c3f6(0x82)),(_0xe015bd=this[_0x17c3f6(0x99)])==null||_0xe015bd[_0x17c3f6(0x120)]();}[_0x41be65(0x14c)](_0x2b051c){const _0x499961=_0x41be65;if([_0x499961(0x164),_0x499961(0x82),'offline'][_0x499961(0x143)](this[_0x499961(0xa4)])||!_0x2b051c[_0x499961(0xf3)][_0x499961(0xba)]||_0x2b051c[_0x499961(0xf3)][_0x499961(0xba)]===this[_0x499961(0xbc)][_0x499961(0x110)]())return;this[_0x499961(0xa4)]===_0x499961(0xee)&&this[_0x499961(0x109)]();const _0x57089c=_0x2b051c[_0x499961(0xf3)][_0x499961(0x151)];Object['values'](_0x57089c)['forEach'](_0x1b965c=>{const _0x17fff5=_0x499961;this[_0x17fff5(0xcb)][_0x17fff5(0xa7)](_0x1b965c['id'],_0x1b965c['params']?JSON['parse'](_0x1b965c[_0x17fff5(0xeb)]):null,{'fromCollab':!0x0});});}[_0x41be65(0x87)](){const _0xac20f2=_0x41be65;var _0x3230fd;this['_status$'][_0xac20f2(0x140)](_0xac20f2(0x159)),(_0x3230fd=this[_0xac20f2(0x99)])==null||_0x3230fd[_0xac20f2(0x120)]();}[_0x41be65(0x8a)](){const _0x2403d3=_0x41be65;this[_0x2403d3(0x113)][_0x2403d3(0x140)](_0x2403d3(0xee)),this[_0x2403d3(0xde)]();}},_0x337bdf[_0x41be65(0x131)]=_0x2ba73f([_0x19bedc(0x2,_0x22843f['IConfigService']),_0x19bedc(0x3,_0x22843f[_0x41be65(0x102)](_0x5c7e50)),_0x19bedc(0x4,_0x22843f[_0x41be65(0x135)])],_0x337bdf[_0x41be65(0x131)]);function _0x5ae231(){const _0x5ab1fd=_0x41be65,_0x48ddaa=_0x43069c[_0x5ab1fd(0x14d)](_0x337bdf[_0x5ab1fd(0xd1)]),_0x2adf54=_0x43069c[_0x5ab1fd(0x14d)](_0x22843f[_0x5ab1fd(0xe5)]),_0x5651c8=_0x43069c[_0x5ab1fd(0xd0)](()=>_0x2adf54[_0x5ab1fd(0xf6)](_0x22843f['UniverInstanceType'][_0x5ab1fd(0x147)]),void 0x0,!0x1,[]),[_0x2b7943,_0x246b2b]=_0x4af639[_0x5ab1fd(0x96)](null),[_0x1262a1,_0x4558bd]=_0x4af639[_0x5ab1fd(0x96)](_0x119424[_0x5ab1fd(0xaf)]),_0x276c57=_0x4af639['useRef'](null);return _0x4af639[_0x5ab1fd(0x7e)](()=>(_0x5651c8&&_0x48ddaa[_0x5ab1fd(0xf5)](_0x5651c8[_0x5ab1fd(0xef)]())[_0x5ab1fd(0x84)](_0x1dd25c=>{const _0x4ae9d1=_0x5ab1fd;_0x246b2b(_0x1dd25c),_0x276c57[_0x4ae9d1(0x161)]=_0x1dd25c['status$'][_0x4ae9d1(0x13e)](_0x2f76d8=>{_0x4558bd(_0x2f76d8);});}),()=>{const _0x16111e=_0x5ab1fd;var _0x5164f3;(_0x5164f3=_0x276c57[_0x16111e(0x161)])==null||_0x5164f3[_0x16111e(0x10a)](),_0x276c57[_0x16111e(0x161)]=null;}),[_0x5651c8,_0x48ddaa]),_0x2b7943?_0x6ca322[_0x5ab1fd(0x95)](_0x168d28['Dropdown'],{'align':_0x5ab1fd(0x144),'disabled':_0x1262a1===_0x119424['OFFLINE'],'className':_0x5ab1fd(0x129),'overlay':_0x6ca322['jsx'](_0x4386f3,{'status':_0x1262a1,'coordinator':_0x2b7943}),'children':_0x6ca322['jsx'](_0x5ab1fd(0xa0),{'className':_0x168d28[_0x5ab1fd(0xb7)](_0x5ab1fd(0x80),{'univer-cursor-not-allowed':_0x1262a1===_0x119424[_0x5ab1fd(0xc5)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1262a1!==_0x119424[_0x5ab1fd(0xc5)]}),'type':_0x5ab1fd(0xa0),'children':_0x6ca322['jsx'](_0x319dcd,{'className':_0x5ab1fd(0xd6)})})}):null;}function _0x4386f3(_0xf26bcc){const _0x441b6b=_0x41be65,{status:_0x18e20e,coordinator:_0x412e80}=_0xf26bcc;switch(_0x18e20e){case _0x119424['IDLE']:return _0x6ca322['jsx'](_0x31a00b,{'coordinator':_0x412e80});case _0x119424['FOLLOWING']:return _0x6ca322[_0x441b6b(0x95)](_0x5bf7c2,{'coordinator':_0x412e80});case _0x119424[_0x441b6b(0x8d)]:return _0x6ca322[_0x441b6b(0x95)](_0x4babc4,{'coordinator':_0x412e80});case _0x119424[_0x441b6b(0xc5)]:return _0x6ca322[_0x441b6b(0x95)](_0x18430b,{});case _0x119424['PRESENTING']:return _0x6ca322[_0x441b6b(0x95)](_0x4f1823,{'coordinator':_0x412e80});default:return null;}}function _0x31a00b(_0x33a34a){const _0x21c0d3=_0x41be65,{coordinator:_0x319e3f}=_0x33a34a;return _0x6ca322['jsxs'](_0x6ca322[_0x21c0d3(0x145)],{'children':[_0x6ca322[_0x21c0d3(0x95)](_0x21c0d3(0x7c),{'className':_0x21c0d3(0x15d),'children':_0x21c0d3(0x7b)}),_0x6ca322['jsx'](_0x168d28['Button'],{'onClick':()=>_0x319e3f['tryStartPresenting'](),'children':_0x21c0d3(0x156)})]});}function _0x5bf7c2(_0x40d147){const _0x1f302a=_0x41be65,{coordinator:_0x56277f}=_0x40d147;return _0x6ca322['jsxs'](_0x6ca322[_0x1f302a(0x145)],{'children':[_0x6ca322[_0x1f302a(0x95)](_0x1f302a(0x7c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1f302a(0x15e)}),_0x6ca322[_0x1f302a(0x95)](_0x168d28[_0x1f302a(0x13c)],{'onClick':()=>_0x56277f[_0x1f302a(0x14e)](),'children':_0x1f302a(0x11d)})]});}function _0x4babc4(_0x20e8e8){const _0x47a374=_0x41be65,{coordinator:_0x54ec67}=_0x20e8e8;return _0x6ca322['jsxs'](_0x6ca322[_0x47a374(0x145)],{'children':[_0x6ca322[_0x47a374(0x95)]('div',{'className':_0x47a374(0x15d),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x6ca322[_0x47a374(0x95)](_0x168d28[_0x47a374(0x13c)],{'variant':'text','onClick':()=>_0x54ec67[_0x47a374(0x104)](),'children':_0x47a374(0x148)})]});}function _0x4f1823(_0x2c9715){const _0x4b5ea9=_0x41be65,{coordinator:_0x417a58}=_0x2c9715;return _0x6ca322[_0x4b5ea9(0xb6)](_0x6ca322[_0x4b5ea9(0x145)],{'children':[_0x6ca322['jsx'](_0x4b5ea9(0x7c),{'className':_0x4b5ea9(0x15d),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x6ca322[_0x4b5ea9(0x95)](_0x168d28['Button'],{'variant':'default','onClick':()=>_0x417a58[_0x4b5ea9(0x9f)](),'children':_0x4b5ea9(0xd8)})]});}function _0x18430b(){const _0x5b8ef5=_0x41be65;return _0x6ca322[_0x5b8ef5(0x95)](_0x6ca322[_0x5b8ef5(0x145)],{'children':'You\x27are\x20offline.'});}var _0x4b61f7=Object[_0x41be65(0x112)],_0xfb8c5f=(_0x23afb2,_0x46c649,_0x1a1433,_0x2f053c)=>{const _0x358c5c=_0x41be65;for(var _0x59978f=_0x2f053c>0x1?void 0x0:_0x2f053c?_0x4b61f7(_0x46c649,_0x1a1433):_0x46c649,_0x3acaba=_0x23afb2[_0x358c5c(0x81)]-0x1,_0x394875;_0x3acaba>=0x0;_0x3acaba--)(_0x394875=_0x23afb2[_0x3acaba])&&(_0x59978f=_0x394875(_0x59978f)||_0x59978f);return _0x59978f;},_0x3ab9f5=(_0x47ada7,_0x2f2c22)=>(_0x20962c,_0x3022e2)=>_0x2f2c22(_0x20962c,_0x3022e2,_0x47ada7);_0x337bdf[_0x41be65(0xbf)]=class extends _0x22843f[_0x41be65(0x105)]{constructor(_0x5371eb,_0x4776f3){const _0x44e4bd=_0x41be65;super(),this[_0x44e4bd(0xc3)]=_0x5371eb,this[_0x44e4bd(0xbb)]=_0x4776f3,this[_0x44e4bd(0x11e)]();}[_0x41be65(0x11e)](){const _0x1174a9=_0x41be65;this[_0x1174a9(0xab)](this[_0x1174a9(0xbb)]['registerComponent'](_0x43069c[_0x1174a9(0x119)][_0x1174a9(0xe9)],()=>_0x43069c['connectInjector'](_0x5ae231,this[_0x1174a9(0xc3)])));}},_0x337bdf[_0x41be65(0xbf)]=_0xfb8c5f([_0x3ab9f5(0x0,_0x22843f[_0x41be65(0x102)](_0x22843f['Injector'])),_0x3ab9f5(0x1,_0x43069c[_0x41be65(0xce)])],_0x337bdf['DesktopLiveShareController']);const _0x22248e=_0x41be65(0xa2),_0x42f49f={};var _0x5de725=Object[_0x41be65(0x112)],_0x3023de=(_0x10f12c,_0x1bedb,_0x4f07bc,_0x3bfc28)=>{const _0x31d009=_0x41be65;for(var _0x3099e7=_0x3bfc28>0x1?void 0x0:_0x3bfc28?_0x5de725(_0x1bedb,_0x4f07bc):_0x1bedb,_0x2447af=_0x10f12c[_0x31d009(0x81)]-0x1,_0x22ee3c;_0x2447af>=0x0;_0x2447af--)(_0x22ee3c=_0x10f12c[_0x2447af])&&(_0x3099e7=_0x22ee3c(_0x3099e7)||_0x3099e7);return _0x3099e7;},_0x1a7859=(_0x51fc9e,_0xbdb792)=>(_0x50df1c,_0x2540ec)=>_0xbdb792(_0x50df1c,_0x2540ec,_0x51fc9e);let _0x469b14=class extends _0x22843f[_0x41be65(0x105)]{constructor(_0x304e9b){const _0x41a410=_0x41be65;super(),this['_liveShareService']=_0x304e9b,this[_0x41a410(0x12e)]();}[_0x41be65(0x12e)](){const _0x23f1a8=_0x41be65;[_0x5857a0['SetZoomRatioOperation']['id'],_0x5857a0['SetScrollOperation']['id'],_0x40796a[_0x23f1a8(0x12a)]['id']][_0x23f1a8(0x11a)](_0x5ea345=>{const _0x1e8d36=_0x23f1a8;this['disposeWithMe'](this[_0x1e8d36(0xc0)][_0x1e8d36(0xfa)](_0x5ea345));});}};_0x469b14=_0x3023de([_0x1a7859(0x0,_0x22843f['Inject'](_0x5c7e50))],_0x469b14);var _0x22e280=Object['defineProperty'],_0x1b802c=Object[_0x41be65(0x112)],_0x28637d=(_0x40d8cc,_0x1f6c55,_0x102e63)=>_0x1f6c55 in _0x40d8cc?_0x22e280(_0x40d8cc,_0x1f6c55,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x102e63}):_0x40d8cc[_0x1f6c55]=_0x102e63,_0x220cbd=(_0x7e64ac,_0xed572c,_0x452a3e,_0x317e48)=>{const _0x494e69=_0x41be65;for(var _0x561b72=_0x317e48>0x1?void 0x0:_0x317e48?_0x1b802c(_0xed572c,_0x452a3e):_0xed572c,_0x3dae0b=_0x7e64ac[_0x494e69(0x81)]-0x1,_0x541a84;_0x3dae0b>=0x0;_0x3dae0b--)(_0x541a84=_0x7e64ac[_0x3dae0b])&&(_0x561b72=_0x541a84(_0x561b72)||_0x561b72);return _0x561b72;},_0x74170=(_0x3c3a98,_0x2ec1ee)=>(_0x251823,_0x22d159)=>_0x2ec1ee(_0x251823,_0x22d159,_0x3c3a98),_0x44fde6=(_0x242aa4,_0x1128c1,_0x26ba84)=>_0x28637d(_0x242aa4,typeof _0x1128c1!=_0x41be65(0x83)?_0x1128c1+'':_0x1128c1,_0x26ba84);const _0x4d2ca5='UNIVER_LIVE_SHARE_PLUGIN';_0x337bdf[_0x41be65(0x132)]=class extends _0x22843f[_0x41be65(0xc2)]{constructor(_0x92fbc=_0x42f49f,_0x4d2cba,_0x2cdc6d){const _0x5a60e0=_0x41be65;super(),this[_0x5a60e0(0xf4)]=_0x92fbc,this[_0x5a60e0(0xc3)]=_0x4d2cba,this[_0x5a60e0(0x130)]=_0x2cdc6d;const {..._0x5524da}=_0x22843f['merge']({},_0x42f49f,this[_0x5a60e0(0xf4)]);this[_0x5a60e0(0x130)][_0x5a60e0(0x90)](_0x22248e,_0x5524da);}[_0x41be65(0x13d)](){const _0x38f0b0=_0x41be65;_0x22843f['registerDependencies'](this['_injector'],_0x22843f[_0x38f0b0(0x10e)]([[_0x5c7e50],[_0x337bdf[_0x38f0b0(0xd1)]],[_0x469b14],[_0x337bdf['DesktopLiveShareController']]],this[_0x38f0b0(0xf4)][_0x38f0b0(0xed)])),_0x22843f[_0x38f0b0(0x146)](this[_0x38f0b0(0xc3)],[[_0x469b14]]);}[_0x41be65(0x14b)](){const _0x3f2499=_0x41be65;_0x22843f[_0x3f2499(0x146)](this[_0x3f2499(0xc3)],[[_0x337bdf[_0x3f2499(0xbf)]]]);}},_0x44fde6(_0x337bdf[_0x41be65(0x132)],_0x41be65(0xdc),_0x22843f[_0x41be65(0x133)][_0x41be65(0xcc)]),_0x44fde6(_0x337bdf[_0x41be65(0x132)],_0x41be65(0x153),_0x4d2ca5),_0x337bdf[_0x41be65(0x132)]=_0x220cbd([_0x22843f[_0x41be65(0xd7)](_0x48621c[_0x41be65(0x91)]),_0x74170(0x1,_0x22843f[_0x41be65(0x102)](_0x22843f[_0x41be65(0xa8)])),_0x74170(0x2,_0x22843f[_0x41be65(0x7a)])],_0x337bdf[_0x41be65(0x132)]),_0x337bdf[_0x41be65(0x85)]=_0x5ae231,_0x337bdf['LiveShareService']=_0x5c7e50,_0x337bdf['LiveShareStatus']=_0x119424,Object[_0x41be65(0x162)](_0x337bdf,Symbol[_0x41be65(0x128)],{'value':_0x41be65(0x122)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.12.2-experimental.
|
|
3
|
+
"version": "0.12.2-experimental.20251202-45172c6",
|
|
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.2-experimental.
|
|
61
|
-
"@univerjs-pro/collaboration-client": "0.12.2-experimental.
|
|
62
|
-
"@univerjs/core": "0.12.2-experimental.
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/sheets": "0.12.2-experimental.
|
|
66
|
-
"@univerjs/ui": "0.12.2-experimental.
|
|
67
|
-
"@univerjs/
|
|
60
|
+
"@univerjs-pro/collaboration": "0.12.2-experimental.20251202-45172c6",
|
|
61
|
+
"@univerjs-pro/collaboration-client": "0.12.2-experimental.20251202-45172c6",
|
|
62
|
+
"@univerjs/core": "0.12.2-experimental.20251202-45172c6",
|
|
63
|
+
"@univerjs/design": "0.12.2-experimental.20251202-45172c6",
|
|
64
|
+
"@univerjs/engine-render": "0.12.2-experimental.20251202-45172c6",
|
|
65
|
+
"@univerjs/sheets": "0.12.2-experimental.20251202-45172c6",
|
|
66
|
+
"@univerjs/sheets-ui": "0.12.2-experimental.20251202-45172c6",
|
|
67
|
+
"@univerjs/ui": "0.12.2-experimental.20251202-45172c6"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|