@univerjs-pro/live-share 0.12.4-experimental.20251211-e01e32a → 0.12.4-insiders.20251212-6c41730
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 +10 -10
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x40ddeb=_0x2616;(function(_0x265ab4,_0x12cba2){const _0x44121a=_0x2616,_0x2b921f=_0x265ab4();while(!![]){try{const _0x13a5cd=parseInt(_0x44121a(0x10d))/0x1*(-parseInt(_0x44121a(0x108))/0x2)+-parseInt(_0x44121a(0x10e))/0x3+-parseInt(_0x44121a(0x10b))/0x4*(-parseInt(_0x44121a(0x100))/0x5)+-parseInt(_0x44121a(0x101))/0x6+-parseInt(_0x44121a(0x121))/0x7+parseInt(_0x44121a(0x115))/0x8*(-parseInt(_0x44121a(0x116))/0x9)+parseInt(_0x44121a(0x103))/0xa;if(_0x13a5cd===_0x12cba2)break;else _0x2b921f['push'](_0x2b921f['shift']());}catch(_0xadd0c2){_0x2b921f['push'](_0x2b921f['shift']());}}}(_0x4735,0xe95ef));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[_0x40ddeb(0x118)]{[_0x40ddeb(0x110)](_0x105d06,_0x387ebe,_0x5819d4,_0xdbd2bc,_0x4fab26){const _0x4afdd5=_0x40ddeb,_0x58beb7=_0x105d06['get'](n[_0x4afdd5(0xfc)]),_0x2d6b02=_0x105d06[_0x4afdd5(0x112)](g[_0x4afdd5(0x11d)]),_0x157510=_0x387ebe[_0x4afdd5(0xfd)](),_0xc0258c=_0x387ebe[_0x4afdd5(0x107)](),_0x1e3de6=_0x58beb7['getLiveShareCoordinatorSync'](_0x157510);(_0x1e3de6==null?void 0x0:_0x1e3de6[_0x4afdd5(0x11e)]())!==n[_0x4afdd5(0x10f)][_0x4afdd5(0x102)]||(_0x5819d4[_0x4afdd5(0x123)]()!==_0xc0258c[_0x4afdd5(0x123)]()&&this['_commandService'][_0x4afdd5(0x122)](u[_0x4afdd5(0x111)]['id'],{'unitId':_0x157510,'subUnitId':_0x5819d4['getSheetId']()}),!_0x2d6b02[_0x4afdd5(0x11f)](_0x157510))||_0x4fab26[_0x4afdd5(0x114)](f[_0x4afdd5(0x119)]['id'],{'unitId':_0x387ebe[_0x4afdd5(0xfd)](),'sheetId':_0x5819d4['getSheetId'](),'sheetViewStartRow':_0xdbd2bc[_0x4afdd5(0x10c)],'sheetViewStartColumn':_0xdbd2bc['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x40ddeb(0x118)]['extend'](w);class C extends a['FUniver']{['getLiveShareStatus'](){const _0x206625=_0x40ddeb;var _0x56115e,_0x4316df;const _0x306046=this[_0x206625(0x106)][_0x206625(0x112)](n[_0x206625(0xfc)]),_0x340c81=(_0x56115e=this[_0x206625(0x10a)]())==null?void 0x0:_0x56115e[_0x206625(0x117)]();if(!_0x340c81)throw new Error('No\x20active\x20workbook\x20found.');const _0xfbe09d=_0x306046[_0x206625(0x120)](_0x340c81);return(_0x4316df=_0xfbe09d==null?void 0x0:_0xfbe09d[_0x206625(0x11e)]())!=null?_0x4316df:n['LiveShareStatus']['IDLE'];}[_0x40ddeb(0x113)](){const _0x591c2d=_0x40ddeb;var _0x451cc3;const _0x1ea9f2=this[_0x591c2d(0x106)][_0x591c2d(0x112)](n['LiveShareController']),_0x1c3cf9=(_0x451cc3=this['getActiveWorkbook']())==null?void 0x0:_0x451cc3[_0x591c2d(0x117)]();if(!_0x1c3cf9)throw new Error(_0x591c2d(0xfe));const _0x43dad2=_0x1ea9f2[_0x591c2d(0x120)](_0x1c3cf9);if(!_0x43dad2)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x43dad2['startFollowing']();}[_0x40ddeb(0x105)](){const _0x28b1c2=_0x40ddeb;var _0x317f29;const _0x328f0e=this[_0x28b1c2(0x106)][_0x28b1c2(0x112)](n[_0x28b1c2(0xfc)]),_0x4e8d82=(_0x317f29=this[_0x28b1c2(0x10a)]())==null?void 0x0:_0x317f29[_0x28b1c2(0x117)]();if(!_0x4e8d82)throw new Error(_0x28b1c2(0xfe));const _0x49ce3f=_0x328f0e[_0x28b1c2(0x120)](_0x4e8d82);if(!_0x49ce3f)throw new Error(_0x28b1c2(0x11c));_0x49ce3f[_0x28b1c2(0x105)]();}[_0x40ddeb(0xff)](){const _0x7b9a77=_0x40ddeb;var _0x764aa9;const _0x2a1cd2=this[_0x7b9a77(0x106)][_0x7b9a77(0x112)](n[_0x7b9a77(0xfc)]),_0x44ca37=(_0x764aa9=this['getActiveWorkbook']())==null?void 0x0:_0x764aa9['getId']();if(!_0x44ca37)throw new Error('No\x20active\x20workbook\x20found.');const _0xce42e9=_0x2a1cd2[_0x7b9a77(0x120)](_0x44ca37);if(!_0xce42e9)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xce42e9['tryStartPresenting']();}['stopPresenting'](){const _0x3e615a=_0x40ddeb;var _0x54522c;const _0x4bcab8=this[_0x3e615a(0x106)][_0x3e615a(0x112)](n['LiveShareController']),_0x58de11=(_0x54522c=this['getActiveWorkbook']())==null?void 0x0:_0x54522c[_0x3e615a(0x117)]();if(!_0x58de11)throw new Error(_0x3e615a(0xfe));const _0x720901=_0x4bcab8['getLiveShareCoordinatorSync'](_0x58de11);if(!_0x720901)throw new Error(_0x3e615a(0x11c));_0x720901[_0x3e615a(0x11a)]();}}function _0x4735(){const _0x1e7c4c=['stopFollowing','_injector','getActiveSheet','2390cweGOG','FUniver','getActiveWorkbook','4008828UHjmYq','startRow','989fQHAln','590274ySTNTZ','LiveShareStatus','_initialize','SetWorksheetActiveOperation','get','startFollowing','syncExecuteCommand','1016NxMvCh','127035FyhmeO','getId','FRange','SetScrollOperation','stopPresenting','LiveShareStatusEnum','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','IRenderManagerService','getStatus','getRenderById','getLiveShareCoordinatorSync','5784205EpSYRm','executeCommand','getSheetId','extend','LiveShareController','getUnitId','No\x20active\x20workbook\x20found.','startPresenting','5jNtQzr','8428818VlsNar','PRESENTING','53560160iHucMF','FEnum'];_0x4735=function(){return _0x1e7c4c;};return _0x4735();}a[_0x40ddeb(0x109)][_0x40ddeb(0xfb)](C);class L extends a[_0x40ddeb(0x104)]{get[_0x40ddeb(0x11b)](){return n['LiveShareStatus'];}}function _0x2616(_0x4244f0,_0x4d7301){_0x4244f0=_0x4244f0-0xfb;const _0x473571=_0x4735();let _0x26160c=_0x473571[_0x4244f0];return _0x26160c;}a[_0x40ddeb(0x104)]['extend'](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x353631=_0x17bb;(function(_0xcb1a05,_0x114571){const _0x11e12b=_0x17bb,_0x3e5b1d=_0xcb1a05();while(!![]){try{const _0x579904=-parseInt(_0x11e12b(0x1b3))/0x1+parseInt(_0x11e12b(0x19a))/0x2+parseInt(_0x11e12b(0x1a1))/0x3+parseInt(_0x11e12b(0x1bc))/0x4+parseInt(_0x11e12b(0x1d2))/0x5*(parseInt(_0x11e12b(0x20e))/0x6)+parseInt(_0x11e12b(0x1c3))/0x7*(parseInt(_0x11e12b(0x1d4))/0x8)+-parseInt(_0x11e12b(0x22c))/0x9;if(_0x579904===_0x114571)break;else _0x3e5b1d['push'](_0x3e5b1d['shift']());}catch(_0x41e0e5){_0x3e5b1d['push'](_0x3e5b1d['shift']());}}}(_0x4892,0x30433));var T=Object['defineProperty'],U=(_0x384721,_0x4668c5,_0x212c47)=>_0x4668c5 in _0x384721?T(_0x384721,_0x4668c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x212c47}):_0x384721[_0x4668c5]=_0x212c47,_=(_0x2d569c,_0x2fe151,_0x27c554)=>U(_0x2d569c,typeof _0x2fe151!=_0x353631(0x17d)?_0x2fe151+'':_0x2fe151,_0x27c554);Object[_0x353631(0x1e6)](exports,Symbol[_0x353631(0x1d1)],{'value':_0x353631(0x178)});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:_0x2385e4,..._0x5965d7}){const _0x3410ef=_0x353631,{icon:_0x4e793f,id:_0x5343ad,className:_0x16c03c,extend:_0x4a632b,..._0x577b38}=_0x5965d7,_0x16b9ef=(_0x3410ef(0x18d)+_0x5343ad+'\x20'+(_0x16c03c||''))['trim'](),_0x89108a=v[_0x3410ef(0x241)]('_'+H());return j(_0x4e793f,''+_0x5343ad,{'defIds':_0x4e793f[_0x3410ef(0x221)],'idSuffix':_0x89108a['current']},{'ref':_0x2385e4,'className':_0x16b9ef,..._0x577b38},_0x4a632b);}function j(_0x533325,_0x168c31,_0x12fcb3,_0x4fcb4e,_0x2f76f5){const _0x420bd1=_0x353631;return v['createElement'](_0x533325['tag'],{'key':_0x168c31,...y(_0x533325,_0x12fcb3,_0x2f76f5),..._0x4fcb4e},(F(_0x533325,_0x12fcb3)['children']||[])[_0x420bd1(0x19e)]((_0x1b4567,_0xc0dc65)=>j(_0x1b4567,_0x168c31+'-'+_0x533325[_0x420bd1(0x202)]+'-'+_0xc0dc65,_0x12fcb3,void 0x0,_0x2f76f5)));}function y(_0x1dff1a,_0x183bf7,_0x9b7636){const _0x3cd145=_0x353631,_0x5c723e={..._0x1dff1a[_0x3cd145(0x1fb)]};_0x9b7636!=null&&_0x9b7636[_0x3cd145(0x1a5)]&&_0x5c723e[_0x3cd145(0x18b)]==='colorChannel1'&&(_0x5c723e[_0x3cd145(0x18b)]=_0x9b7636[_0x3cd145(0x1a5)]),_0x1dff1a[_0x3cd145(0x202)]==='mask'&&_0x5c723e['id']&&(_0x5c723e['id']=_0x5c723e['id']+_0x183bf7['idSuffix']),Object['entries'](_0x5c723e)['forEach'](([_0x2bd675,_0x162042])=>{const _0x26a4c4=_0x3cd145;_0x2bd675===_0x26a4c4(0x229)&&typeof _0x162042==_0x26a4c4(0x1f8)&&(_0x5c723e[_0x2bd675]=_0x162042[_0x26a4c4(0x1a4)](/url\(#(.*)\)/,'url(#$1'+_0x183bf7[_0x26a4c4(0x222)]+')'));});const {defIds:_0x7dd6d9}=_0x183bf7;return!_0x7dd6d9||_0x7dd6d9[_0x3cd145(0x1b5)]===0x0||(_0x1dff1a['tag']===_0x3cd145(0x1ff)&&_0x5c723e['xlink:href']&&(_0x5c723e[_0x3cd145(0x183)]=_0x5c723e[_0x3cd145(0x183)]+_0x183bf7['idSuffix']),Object[_0x3cd145(0x188)](_0x5c723e)[_0x3cd145(0x1fa)](([_0x4770dd,_0x4a2958])=>{const _0x492f8c=_0x3cd145;typeof _0x4a2958=='string'&&(_0x5c723e[_0x4770dd]=_0x4a2958[_0x492f8c(0x1a4)](/url\(#(.*)\)/,_0x492f8c(0x189)+_0x183bf7[_0x492f8c(0x222)]+')'));})),_0x5c723e;}function F(_0x2f4ff3,_0x1cc2a8){const _0x582701=_0x353631;var _0x38f0e8;const {defIds:_0x58991a}=_0x1cc2a8;return!_0x58991a||_0x58991a[_0x582701(0x1b5)]===0x0?_0x2f4ff3:_0x2f4ff3['tag']===_0x582701(0x1e3)&&((_0x38f0e8=_0x2f4ff3[_0x582701(0x19f)])!=null&&_0x38f0e8[_0x582701(0x1b5)])?{..._0x2f4ff3,'children':_0x2f4ff3[_0x582701(0x19f)][_0x582701(0x19e)](_0x3eae6c=>typeof _0x3eae6c[_0x582701(0x1fb)]['id']==_0x582701(0x1f8)&&_0x58991a&&_0x58991a[_0x582701(0x203)](_0x3eae6c[_0x582701(0x1fb)]['id'])?{..._0x3eae6c,'attrs':{..._0x3eae6c[_0x582701(0x1fb)],'id':_0x3eae6c[_0x582701(0x1fb)]['id']+_0x1cc2a8[_0x582701(0x222)]}}:_0x3eae6c)}:_0x2f4ff3;}function H(){const _0x3787bf=_0x353631;return Math[_0x3787bf(0x1cc)]()[_0x3787bf(0x1ef)](0x24)['substring'](0x2,0x8);}x['displayName']=_0x353631(0x1dd);function _0x4892(){const _0x12fa0d=['univerjs-icon\x20univerjs-icon-','LIVESHARE_NEW_HOST','sheet','You\x27re\x20presenting\x20the\x20document','stringify','startFollowing','Dropdown','find','forwardRef','UniverCollaborationClientPlugin','pipe','_presenter','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','615410AytvGN','BuiltInUIPart','OFFLINE','createInstance','map','children','useState','187932IMhvxe','throttleTime','NEW_CHANGESETS','replace','colorChannel1','_fetchOperations','You\x27re\x20not\x20following\x20the\x20presenter','Fragment','init','_startFollowing','UniverInstanceType','_handleNewHost','IUniverInstanceService','memberID','univer-size-4','SetScrollOperation','text','_handleOffline','85181mrRznH','complete','length','PRESENTING','Injector','get','_handleTerminate','path','values','1410608dsQiAO','HEADER_MENU','next','then','_status','setConfig','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','353087DpEQwc','event$','BehaviorSubject','div','Plugin','InsertSheetMutation','reverse','NOT_FOLLOWING','_handleNewChangeSets','random','jsxs','DesktopLiveShareController','_handleOperation','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','toStringTag','5YzoaGG','_commandService','8XzMxHU','_startLiveShareCoordinator','You\x27are\x20offline.','LIVESHARE_REQUEST_HOST','tryStartPresenting','_reporters','idle','has','svg','UniverIcon','SetWorksheetActiveOperation','Present\x20this\x20document','executeCommand','getOwnPropertyDescriptor','registerComponent','defs','SAME_OPERATION_SHARE_INTERVAL','stopFollowing','defineProperty','add','Stop\x20presenting','FOLLOWING','onStarting','0\x200\x2017\x2017','set','getCurrentTypeOfUnit$','_mountLiveShare','toString','UNIVER_UNKNOWN','IConfigService','LiveShare','IUIPartsService','getUnitId','unitId','LiveShareController','merge','string','assign','forEach','attrs','evenodd','asObservable','_startPresenting','use','operations','1em','tag','includes','disposeWithMe','getInitialStates','LIVESHARE_FETCH_OPERATIONS','registerSharedOperation','offline','getTypeOfUnitAdded$','Inject','Start\x20following','IDLE','clear','385578wduQli','_config','univer-mb-3\x20univer-w-full\x20univer-text-sm','takeUntil','getTypeOfUnitDisposed$','LIVESHARE_TERMINATE','presenter','_configService','_univerInstanceService','ICommandService','LIVESHARE_OPERATION','_commandDisposable','mutations','_stopFollowing','_handleOnline','LiveShareCoordinator','Button','presenting','DisposableCollection','defIds','idSuffix','toDisposable','http://www.w3.org/2000/svg','override','jsx','params','send','mask','_collabSession','shouldShareOperation','4993569vTKSBi','button','following','_liveShareService','_entities','CollaborationEvent','getConfig','Disposable','createElement','clsx','data','getMemberID','pluginName','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','subscribe','_sharedOperations','delete','status$','not-following','_unitID','_uiPartsService','useRef','LiveShareService','current','getValue','live-share-icon','getLiveShareCoordinatorSync','stopPresenting','_status$','connectInjector','_init','CollaborationSessionService','end','useEffect','onCommandExecuted','You\x27re\x20following\x20the\x20presenter','_injector','Module','type','_beIdle','unsubscribe','dispose','symbol','default','parse','UniverLiveSharePlugin','OPERATION','SessionStatus','xlink:href','getStatus','dispose$','touchDependencies','UNIVER_SHEET','entries','url(#$1','_stopPresenting','fill','SetZoomRatioOperation'];_0x4892=function(){return _0x12fa0d;};return _0x4892();}const V={'tag':_0x353631(0x1dc),'attrs':{'xmlns':_0x353631(0x224),'fill':'none','viewBox':_0x353631(0x1eb),'width':'1em','height':_0x353631(0x201)},'children':[{'tag':_0x353631(0x1ba),'attrs':{'fill':'currentColor','d':_0x353631(0x239)}},{'tag':_0x353631(0x1ba),'attrs':{'fill':'currentColor','d':_0x353631(0x1c2),'fillRule':_0x353631(0x1fc),'clipRule':_0x353631(0x1fc)}}]},R=v[_0x353631(0x195)](function(_0x1370cb,_0x5ec8c6){const _0x3543e8=_0x353631;return v[_0x3543e8(0x234)](x,Object[_0x3543e8(0x1f9)]({},_0x1370cb,{'id':_0x3543e8(0x245),'ref':_0x5ec8c6,'icon':V}));});R['displayName']='LiveShareIcon';class E extends o[_0x353631(0x233)]{constructor(){const _0x282ff6=_0x353631;super(...arguments),_(this,_0x282ff6(0x23b),new Set()),_(this,_0x282ff6(0x1d9),new Set());}[_0x353631(0x207)](_0x46df0e){const _0x5884f3=_0x353631;return this[_0x5884f3(0x23b)][_0x5884f3(0x1e7)](_0x46df0e),o[_0x5884f3(0x223)](()=>this[_0x5884f3(0x23b)]['delete'](_0x46df0e));}['registerInitialStateReporter'](_0x28b4d2){const _0x1d740a=_0x353631;return this[_0x1d740a(0x1d9)]['add'](_0x28b4d2),o['toDisposable'](()=>this[_0x1d740a(0x1d9)][_0x1d740a(0x23c)](_0x28b4d2));}[_0x353631(0x22b)](_0x4f1fdc){const _0x487d80=_0x353631;return this[_0x487d80(0x23b)][_0x487d80(0x1db)](_0x4f1fdc);}[_0x353631(0x205)](_0x202e8a){const _0x294c94=_0x353631;return Array['from'](this['_reporters'])[_0x294c94(0x19e)](_0x170f0f=>_0x170f0f(_0x202e8a));}}var M=Object[_0x353631(0x1e1)],P=(_0x324d16,_0x30c119,_0x1ca045,_0x317aa9)=>{const _0x4ca2fc=_0x353631;for(var _0x2df5d7=_0x317aa9>0x1?void 0x0:_0x317aa9?M(_0x30c119,_0x1ca045):_0x30c119,_0x5138ef=_0x324d16[_0x4ca2fc(0x1b5)]-0x1,_0x44991e;_0x5138ef>=0x0;_0x5138ef--)(_0x44991e=_0x324d16[_0x5138ef])&&(_0x2df5d7=_0x44991e(_0x2df5d7)||_0x2df5d7);return _0x2df5d7;},S=(_0x50d5d8,_0x1ac20f)=>(_0x126373,_0x5db17b)=>_0x1ac20f(_0x126373,_0x5db17b,_0x50d5d8);exports[_0x353631(0x1f6)]=class extends o['RxDisposable']{constructor(_0x2212db,_0x346914,_0x476e0e){const _0x2a1d16=_0x353631;super(),_(this,_0x2a1d16(0x230),new Map()),(this[_0x2a1d16(0x216)]=_0x2212db,this[_0x2a1d16(0x177)]=_0x346914,this['_collabSessionService']=_0x476e0e,this[_0x2a1d16(0x171)]());}async['getLiveShareCoordinator'](_0x3c9668){const _0x2cacb4=_0x353631;return this[_0x2cacb4(0x230)][_0x2cacb4(0x1db)](_0x3c9668)||await this[_0x2cacb4(0x1d5)](_0x3c9668),this[_0x2cacb4(0x230)][_0x2cacb4(0x1b8)](_0x3c9668);}[_0x353631(0x246)](_0x264510){const _0x5c99a2=_0x353631;var _0x53aad9;return(_0x53aad9=this[_0x5c99a2(0x230)]['get'](_0x264510))!=null?_0x53aad9:null;}[_0x353631(0x171)](){const _0x86ca67=_0x353631;this[_0x86ca67(0x216)][_0x86ca67(0x209)](o['UniverInstanceType'][_0x86ca67(0x187)])[_0x86ca67(0x197)](I[_0x86ca67(0x211)](this[_0x86ca67(0x185)]))[_0x86ca67(0x23a)](async _0x2822a0=>{const _0x44d260=_0x86ca67,_0x1207b6=_0x2822a0['getUnitId']();this['_entities'][_0x44d260(0x1db)](_0x1207b6)||this['_startLiveShareCoordinator'](_0x1207b6);}),this['_univerInstanceService'][_0x86ca67(0x212)](o['UniverInstanceType'][_0x86ca67(0x187)])['pipe'](I[_0x86ca67(0x211)](this[_0x86ca67(0x185)]))[_0x86ca67(0x23a)](_0x53252e=>{const _0x58ba47=_0x86ca67,_0x1f442b=_0x53252e[_0x58ba47(0x1f4)](),_0x370fee=this[_0x58ba47(0x230)]['get'](_0x1f442b);_0x370fee==null||_0x370fee[_0x58ba47(0x17c)]();});}async[_0x353631(0x1d5)](_0x523ff5){const _0x211280=_0x353631,_0x48e0fc=await this['_collabSessionService']['requireSession'](_0x523ff5),_0x3f9234=this['_injector'][_0x211280(0x19d)](exports[_0x211280(0x21d)],_0x523ff5,_0x48e0fc);return _0x3f9234[_0x211280(0x1a9)](),this[_0x211280(0x230)][_0x211280(0x1ec)](_0x523ff5,_0x3f9234),_0x3f9234;}},exports[_0x353631(0x1f6)]=P([S(0x0,o[_0x353631(0x1ad)]),S(0x1,o[_0x353631(0x20a)](o[_0x353631(0x1b7)])),S(0x2,o[_0x353631(0x20a)](b[_0x353631(0x172)]))],exports[_0x353631(0x1f6)]);var u=(_0x17bacc=>(_0x17bacc[_0x353631(0x19c)]=_0x353631(0x208),_0x17bacc[_0x353631(0x20c)]=_0x353631(0x1da),_0x17bacc[_0x353631(0x1e9)]=_0x353631(0x22e),_0x17bacc['NOT_FOLLOWING']=_0x353631(0x23e),_0x17bacc[_0x353631(0x1b6)]=_0x353631(0x21f),_0x17bacc))(u||{});const k=_0x353631(0x1e4),q=0xc8;exports['LiveShareCoordinator']=class extends o['RxDisposable']{constructor(_0x18d269,_0x28499a,_0xac5d69,_0x2ce6c3,_0x41623b){const _0x20d039=_0x353631;super(),_(this,'_status$',new O[(_0x20d039(0x1c5))](_0x20d039(0x1da))),_(this,_0x20d039(0x23d),this['_status$'][_0x20d039(0x1fd)]()),_(this,_0x20d039(0x171),!0x1),_(this,_0x20d039(0x219),null),_(this,_0x20d039(0x198),null),(this[_0x20d039(0x23f)]=_0x18d269,this[_0x20d039(0x22a)]=_0x28499a,this[_0x20d039(0x215)]=_0xac5d69,this[_0x20d039(0x22f)]=_0x2ce6c3,this[_0x20d039(0x1d3)]=_0x41623b);}get['_status'](){const _0x5552f2=_0x353631;return this[_0x5552f2(0x16f)][_0x5552f2(0x244)]();}['dispose'](){const _0x4ad963=_0x353631;var _0x4134ad;(_0x4134ad=this[_0x4ad963(0x219)])==null||_0x4134ad[_0x4ad963(0x17c)](),this[_0x4ad963(0x16f)][_0x4ad963(0x1be)](_0x4ad963(0x1da)),this[_0x4ad963(0x16f)]['complete']();}[_0x353631(0x184)](){const _0x54c769=_0x353631;return this[_0x54c769(0x1c0)];}['init'](){const _0x3f37a1=_0x353631;this[_0x3f37a1(0x171)]||(this['_init']=!0x0,this[_0x3f37a1(0x22a)]['sessionStatus$']['pipe'](I[_0x3f37a1(0x211)](this[_0x3f37a1(0x185)]))[_0x3f37a1(0x23a)](_0x2defb5=>{const _0x1b62e9=_0x3f37a1;switch(_0x2defb5){case b[_0x1b62e9(0x182)][_0x1b62e9(0x19c)]:this[_0x1b62e9(0x1b2)]();break;case b[_0x1b62e9(0x182)]['ONLINE']:this[_0x1b62e9(0x21c)]();break;}}),this[_0x3f37a1(0x22a)][_0x3f37a1(0x1c4)][_0x3f37a1(0x197)](I['takeUntil'](this[_0x3f37a1(0x185)]))['subscribe'](_0x1b131d=>{const _0xb288c8=_0x3f37a1,{eventID:_0x2331c0}=_0x1b131d;switch(_0x2331c0){case d[_0xb288c8(0x231)][_0xb288c8(0x18e)]:this[_0xb288c8(0x1ac)](_0x1b131d);break;case d[_0xb288c8(0x231)][_0xb288c8(0x218)]:this[_0xb288c8(0x1cf)](_0x1b131d);break;case d[_0xb288c8(0x231)][_0xb288c8(0x213)]:this['_handleTerminate']();break;case d[_0xb288c8(0x231)][_0xb288c8(0x1a3)]:this[_0xb288c8(0x1cb)](_0x1b131d);break;}}));}[_0x353631(0x1d8)](){const _0x202691=_0x353631;this['_collabSession'][_0x202691(0x228)]({'eventID':d[_0x202691(0x231)][_0x202691(0x1d7)],'data':{'unitID':this[_0x202691(0x23f)],'userID':this[_0x202691(0x22a)][_0x202691(0x237)]()}},this['_unitID']);}['stopPresenting'](){const _0x4feaf2=_0x353631;this['_status']===_0x4feaf2(0x21f)&&(this[_0x4feaf2(0x16f)][_0x4feaf2(0x1be)](_0x4feaf2(0x1da)),this[_0x4feaf2(0x22a)]['send']({'eventID':d[_0x4feaf2(0x231)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x4feaf2(0x23f)]}},this[_0x4feaf2(0x23f)]));}['startFollowing'](){const _0x5b9014=_0x353631;this[_0x5b9014(0x1c0)]===_0x5b9014(0x23e)&&(this[_0x5b9014(0x16f)][_0x5b9014(0x1be)](_0x5b9014(0x22e)),this['_startFollowing']());}['stopFollowing'](){const _0x43e242=_0x353631;this['_status']===_0x43e242(0x22e)&&this[_0x43e242(0x21b)]();}[_0x353631(0x1ac)](_0x390393){const _0x5f7da1=_0x353631,{presenter:_0x57447c}=_0x390393[_0x5f7da1(0x236)],_0x3e973e=this[_0x5f7da1(0x22a)][_0x5f7da1(0x237)]();this[_0x5f7da1(0x198)]=_0x57447c,_0x57447c===_0x3e973e?(this[_0x5f7da1(0x21b)](),this[_0x5f7da1(0x1fe)]()):this[_0x5f7da1(0x1c0)]!==_0x5f7da1(0x23e)&&(this[_0x5f7da1(0x18a)](),this[_0x5f7da1(0x1aa)]());}['_fetchOperations'](){const _0x5a2a45=_0x353631,_0x4aaee8={'eventID':d[_0x5a2a45(0x231)][_0x5a2a45(0x206)]};this[_0x5a2a45(0x22a)][_0x5a2a45(0x228)](_0x4aaee8,this[_0x5a2a45(0x23f)]);}[_0x353631(0x1b9)](){const _0x31dccc=_0x353631;this[_0x31dccc(0x198)]=null,this[_0x31dccc(0x1c0)]!=='presenting'&&this[_0x31dccc(0x17a)]();}[_0x353631(0x1cb)](_0x10d7ca){const _0x3b5271=_0x353631;if(this[_0x3b5271(0x1c0)]===_0x3b5271(0x22e)&&this[_0x3b5271(0x198)]===_0x10d7ca[_0x3b5271(0x236)][_0x3b5271(0x1ae)]){const _0xc2a321=d['parseProtocolChangeset'](_0x10d7ca[_0x3b5271(0x236)])[_0x3b5271(0x21a)][_0x3b5271(0x1c9)]()[_0x3b5271(0x194)](_0x11e052=>_0x11e052['id']===C[_0x3b5271(0x1c8)]['id']);if(_0xc2a321){const _0x21e0b0=_0xc2a321[_0x3b5271(0x227)][_0x3b5271(0x1f5)],_0x34fc74=_0xc2a321[_0x3b5271(0x227)][_0x3b5271(0x18f)]['id'];setTimeout(()=>{const _0x551dbe=_0x3b5271;this[_0x551dbe(0x1d3)][_0x551dbe(0x1e0)](C[_0x551dbe(0x1de)]['id'],{'unitId':_0x21e0b0,'subUnitId':_0x34fc74},{'fromCollab':!0x0});});}}}[_0x353631(0x1fe)](){const _0x321099=_0x353631;this[_0x321099(0x16f)][_0x321099(0x1be)]('presenting');const _0x419927=new Map(),_0x6a1b92=this[_0x321099(0x219)]=new o[(_0x321099(0x220))]();_0x6a1b92['add'](o[_0x321099(0x223)](()=>{const _0x333816=_0x321099;_0x419927[_0x333816(0x1fa)](_0x2e4fee=>_0x2e4fee[_0x333816(0x1b4)]()),_0x419927[_0x333816(0x20d)]();})),_0x6a1b92[_0x321099(0x1e7)](this['_commandService'][_0x321099(0x175)](_0x18e5bc=>{const _0x2f5355=_0x321099;var _0x42d3e1;if(_0x18e5bc[_0x2f5355(0x179)]!==o['CommandType'][_0x2f5355(0x181)]||!this[_0x2f5355(0x22f)][_0x2f5355(0x22b)](_0x18e5bc['id']))return;const {id:_0x28004d}=_0x18e5bc;let _0x41a943;_0x419927[_0x2f5355(0x1db)](_0x28004d)?_0x41a943=_0x419927[_0x2f5355(0x1b8)](_0x28004d):(_0x41a943=new O['Subject'](),_0x419927[_0x2f5355(0x1ec)](_0x28004d,_0x41a943),_0x41a943['pipe'](I[_0x2f5355(0x1a2)]((_0x42d3e1=this[_0x2f5355(0x215)][_0x2f5355(0x232)](k))!=null?_0x42d3e1:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2f5355(0x23a)](_0x38854d=>{const _0x1ef010=_0x2f5355;this[_0x1ef010(0x22a)][_0x1ef010(0x228)]({'eventID':d[_0x1ef010(0x231)][_0x1ef010(0x218)],'data':{'unitID':this[_0x1ef010(0x23f)],'operations':{[_0x38854d['id']]:{'id':_0x38854d['id'],'params':JSON[_0x1ef010(0x191)](_0x38854d[_0x1ef010(0x227)])}}}},this[_0x1ef010(0x23f)]);})),_0x41a943[_0x2f5355(0x1be)](_0x18e5bc);})),this[_0x321099(0x22f)][_0x321099(0x205)](this[_0x321099(0x23f)])['forEach'](_0x32c76f=>this[_0x321099(0x22a)][_0x321099(0x228)]({'eventID':d[_0x321099(0x231)][_0x321099(0x218)],'data':{'unitID':this[_0x321099(0x23f)],'operations':{[_0x32c76f['id']]:{'id':_0x32c76f['id'],'params':JSON[_0x321099(0x191)](_0x32c76f['params'])}}}},this['_unitID']));}[_0x353631(0x18a)](){const _0xd9efa6=_0x353631;var _0x3a8fce;this[_0xd9efa6(0x16f)][_0xd9efa6(0x1be)](_0xd9efa6(0x1da)),(_0x3a8fce=this['_commandDisposable'])==null||_0x3a8fce[_0xd9efa6(0x17c)](),this[_0xd9efa6(0x219)]=null;}['_startFollowing'](){const _0x3399c4=_0x353631;var _0x4e032f;(_0x4e032f=this['_commandDisposable'])==null||_0x4e032f[_0x3399c4(0x17c)](),this['_status$']['next'](_0x3399c4(0x22e));}[_0x353631(0x17a)](){const _0x30e810=_0x353631;var _0x4f2a73;this['_status$']['next'](_0x30e810(0x1da)),(_0x4f2a73=this[_0x30e810(0x219)])==null||_0x4f2a73['dispose'](),this[_0x30e810(0x219)]=null;}[_0x353631(0x21b)](){const _0x39f518=_0x353631;var _0x13b7e7;this[_0x39f518(0x16f)]['next'](_0x39f518(0x23e)),(_0x13b7e7=this[_0x39f518(0x219)])==null||_0x13b7e7[_0x39f518(0x17c)]();}[_0x353631(0x1cf)](_0x4b7494){const _0x17b1f3=_0x353631;if([_0x17b1f3(0x21f),'not-following',_0x17b1f3(0x208)][_0x17b1f3(0x203)](this[_0x17b1f3(0x1c0)])||!_0x4b7494['data'][_0x17b1f3(0x214)]||_0x4b7494[_0x17b1f3(0x236)][_0x17b1f3(0x214)]===this[_0x17b1f3(0x22a)][_0x17b1f3(0x237)]())return;this[_0x17b1f3(0x1c0)]==='idle'&&this[_0x17b1f3(0x1aa)]();const _0x4cce5f=_0x4b7494[_0x17b1f3(0x236)][_0x17b1f3(0x200)];Object[_0x17b1f3(0x1bb)](_0x4cce5f)[_0x17b1f3(0x1fa)](_0x34f331=>{const _0x373e81=_0x17b1f3;this['_commandService'][_0x373e81(0x1e0)](_0x34f331['id'],_0x34f331['params']?JSON[_0x373e81(0x17f)](_0x34f331['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x390117=_0x353631;var _0x4b48dd;this['_status$'][_0x390117(0x1be)]('offline'),(_0x4b48dd=this[_0x390117(0x219)])==null||_0x4b48dd[_0x390117(0x17c)]();}[_0x353631(0x21c)](){const _0x142d04=_0x353631;this[_0x142d04(0x16f)][_0x142d04(0x1be)]('idle'),this[_0x142d04(0x1a6)]();}},exports['LiveShareCoordinator']=P([S(0x2,o['IConfigService']),S(0x3,o[_0x353631(0x20a)](E)),S(0x4,o[_0x353631(0x217)])],exports[_0x353631(0x21d)]);function $(){const _0x496441=_0x353631,_0x13250f=p['useDependency'](exports['LiveShareController']),_0x338a94=p['useDependency'](o[_0x496441(0x1ad)]),_0x1a6f47=p['useObservable'](()=>_0x338a94[_0x496441(0x1ed)](o[_0x496441(0x1ab)][_0x496441(0x187)]),void 0x0,!0x1,[]),[_0x43cc3a,_0x244744]=v[_0x496441(0x1a0)](null),[_0x555eba,_0x412172]=v[_0x496441(0x1a0)](u['IDLE']),_0x26172e=v[_0x496441(0x241)](null);return v[_0x496441(0x174)](()=>(_0x1a6f47&&_0x13250f['getLiveShareCoordinator'](_0x1a6f47[_0x496441(0x1f4)]())[_0x496441(0x1bf)](_0x201fef=>{const _0x78747d=_0x496441;_0x244744(_0x201fef),_0x26172e[_0x78747d(0x243)]=_0x201fef[_0x78747d(0x23d)][_0x78747d(0x23a)](_0x54563f=>{_0x412172(_0x54563f);});}),()=>{const _0x41258a=_0x496441;var _0x4c44b4;(_0x4c44b4=_0x26172e[_0x41258a(0x243)])==null||_0x4c44b4[_0x41258a(0x17b)](),_0x26172e['current']=null;}),[_0x1a6f47,_0x13250f]),_0x43cc3a?l[_0x496441(0x226)](f[_0x496441(0x193)],{'align':_0x496441(0x173),'disabled':_0x555eba===u[_0x496441(0x19c)],'className':_0x496441(0x1d0),'overlay':l[_0x496441(0x226)](W,{'status':_0x555eba,'coordinator':_0x43cc3a}),'children':l[_0x496441(0x226)](_0x496441(0x22d),{'className':f[_0x496441(0x235)](_0x496441(0x199),{'univer-cursor-not-allowed':_0x555eba===u[_0x496441(0x19c)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x555eba!==u[_0x496441(0x19c)]}),'type':'button','children':l['jsx'](R,{'className':_0x496441(0x1af)})})}):null;}function _0x17bb(_0x257712,_0x3e5de8){_0x257712=_0x257712-0x16f;const _0x489237=_0x4892();let _0x17bb0c=_0x489237[_0x257712];return _0x17bb0c;}function W(_0x447ccc){const _0x146874=_0x353631,{status:_0x416224,coordinator:_0x47fedc}=_0x447ccc;switch(_0x416224){case u[_0x146874(0x20c)]:return l[_0x146874(0x226)](G,{'coordinator':_0x47fedc});case u[_0x146874(0x1e9)]:return l[_0x146874(0x226)](B,{'coordinator':_0x47fedc});case u[_0x146874(0x1ca)]:return l[_0x146874(0x226)](Y,{'coordinator':_0x47fedc});case u[_0x146874(0x19c)]:return l[_0x146874(0x226)](J,{});case u[_0x146874(0x1b6)]:return l[_0x146874(0x226)](Z,{'coordinator':_0x47fedc});default:return null;}}function G(_0x391792){const _0x1faff6=_0x353631,{coordinator:_0x1e3e3a}=_0x391792;return l[_0x1faff6(0x1cd)](l[_0x1faff6(0x1a8)],{'children':[l[_0x1faff6(0x226)]('div',{'className':_0x1faff6(0x210),'children':_0x1faff6(0x1df)}),l[_0x1faff6(0x226)](f[_0x1faff6(0x21e)],{'onClick':()=>_0x1e3e3a[_0x1faff6(0x1d8)](),'children':'Start'})]});}function B(_0x24d494){const _0x911dec=_0x353631,{coordinator:_0x30daaa}=_0x24d494;return l[_0x911dec(0x1cd)](l[_0x911dec(0x1a8)],{'children':[l[_0x911dec(0x226)](_0x911dec(0x1c6),{'className':_0x911dec(0x210),'children':_0x911dec(0x176)}),l[_0x911dec(0x226)](f[_0x911dec(0x21e)],{'onClick':()=>_0x30daaa[_0x911dec(0x1e5)](),'children':'Stop\x20following'})]});}function Y(_0x4f6e95){const _0x14c01e=_0x353631,{coordinator:_0x12b3b5}=_0x4f6e95;return l[_0x14c01e(0x1cd)](l[_0x14c01e(0x1a8)],{'children':[l[_0x14c01e(0x226)](_0x14c01e(0x1c6),{'className':_0x14c01e(0x210),'children':_0x14c01e(0x1a7)}),l[_0x14c01e(0x226)](f[_0x14c01e(0x21e)],{'variant':_0x14c01e(0x1b1),'onClick':()=>_0x12b3b5[_0x14c01e(0x192)](),'children':_0x14c01e(0x20b)})]});}function Z(_0x34db22){const _0x42d6e9=_0x353631,{coordinator:_0x2d2473}=_0x34db22;return l[_0x42d6e9(0x1cd)](l['Fragment'],{'children':[l[_0x42d6e9(0x226)](_0x42d6e9(0x1c6),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x42d6e9(0x190)}),l[_0x42d6e9(0x226)](f[_0x42d6e9(0x21e)],{'variant':_0x42d6e9(0x17e),'onClick':()=>_0x2d2473[_0x42d6e9(0x247)](),'children':_0x42d6e9(0x1e8)})]});}function J(){const _0x3e2b80=_0x353631;return l['jsx'](l[_0x3e2b80(0x1a8)],{'children':_0x3e2b80(0x1d6)});}var K=Object[_0x353631(0x1e1)],z=(_0x480631,_0x159c47,_0x137477,_0x4d1cb0)=>{const _0x2b2bcb=_0x353631;for(var _0x3f922e=_0x4d1cb0>0x1?void 0x0:_0x4d1cb0?K(_0x159c47,_0x137477):_0x159c47,_0x2c1ac9=_0x480631[_0x2b2bcb(0x1b5)]-0x1,_0x206aa7;_0x2c1ac9>=0x0;_0x2c1ac9--)(_0x206aa7=_0x480631[_0x2c1ac9])&&(_0x3f922e=_0x206aa7(_0x3f922e)||_0x3f922e);return _0x3f922e;},L=(_0x54daaf,_0x307c81)=>(_0x550381,_0x29f486)=>_0x307c81(_0x550381,_0x29f486,_0x54daaf);exports['DesktopLiveShareController']=class extends o[_0x353631(0x233)]{constructor(_0x21ea14,_0x3c551a){const _0x26c5d0=_0x353631;super(),this[_0x26c5d0(0x177)]=_0x21ea14,this[_0x26c5d0(0x240)]=_0x3c551a,this[_0x26c5d0(0x1ee)]();}[_0x353631(0x1ee)](){const _0x5018af=_0x353631;this[_0x5018af(0x204)](this[_0x5018af(0x240)][_0x5018af(0x1e2)](p[_0x5018af(0x19b)][_0x5018af(0x1bd)],()=>p[_0x5018af(0x170)]($,this['_injector'])));}},exports['DesktopLiveShareController']=z([L(0x0,o['Inject'](o[_0x353631(0x1b7)])),L(0x1,p[_0x353631(0x1f3)])],exports[_0x353631(0x1ce)]);const Q='live-share.config',w={};var X=Object[_0x353631(0x1e1)],ee=(_0x1e8347,_0x19bb0b,_0x54866e,_0x45db90)=>{const _0x3bad49=_0x353631;for(var _0xaf65a7=_0x45db90>0x1?void 0x0:_0x45db90?X(_0x19bb0b,_0x54866e):_0x19bb0b,_0x4985c8=_0x1e8347[_0x3bad49(0x1b5)]-0x1,_0x205db4;_0x4985c8>=0x0;_0x4985c8--)(_0x205db4=_0x1e8347[_0x4985c8])&&(_0xaf65a7=_0x205db4(_0xaf65a7)||_0xaf65a7);return _0xaf65a7;},te=(_0x2f636a,_0x539b5f)=>(_0x5eeba2,_0x2c16ca)=>_0x539b5f(_0x5eeba2,_0x2c16ca,_0x2f636a);let m=class extends o[_0x353631(0x233)]{constructor(_0x23c959){const _0x24d45d=_0x353631;super(),this[_0x24d45d(0x22f)]=_0x23c959,this[_0x24d45d(0x171)]();}['_init'](){const _0x1a21d0=_0x353631;[D[_0x1a21d0(0x18c)]['id'],D[_0x1a21d0(0x1b0)]['id'],C['SetWorksheetActiveOperation']['id']][_0x1a21d0(0x1fa)](_0x43e0e4=>{const _0x45887d=_0x1a21d0;this['disposeWithMe'](this[_0x45887d(0x22f)][_0x45887d(0x207)](_0x43e0e4));});}};m=ee([te(0x0,o[_0x353631(0x20a)](E))],m);var ie=Object[_0x353631(0x1e6)],se=Object[_0x353631(0x1e1)],ne=(_0x3f9c10,_0x1028e4,_0x555328)=>_0x1028e4 in _0x3f9c10?ie(_0x3f9c10,_0x1028e4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x555328}):_0x3f9c10[_0x1028e4]=_0x555328,re=(_0x1c7e95,_0x4843bd,_0x3f545a,_0x55d08e)=>{const _0x4dd4e9=_0x353631;for(var _0x28081c=_0x55d08e>0x1?void 0x0:_0x55d08e?se(_0x4843bd,_0x3f545a):_0x4843bd,_0x190671=_0x1c7e95[_0x4dd4e9(0x1b5)]-0x1,_0x3ef495;_0x190671>=0x0;_0x190671--)(_0x3ef495=_0x1c7e95[_0x190671])&&(_0x28081c=_0x3ef495(_0x28081c)||_0x28081c);return _0x28081c;},N=(_0x4b9ba7,_0x3b0df6)=>(_0x2719ae,_0x166b48)=>_0x3b0df6(_0x2719ae,_0x166b48,_0x4b9ba7),A=(_0x4bae38,_0x437002,_0x17b580)=>ne(_0x4bae38,typeof _0x437002!=_0x353631(0x17d)?_0x437002+'':_0x437002,_0x17b580);const oe='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x353631(0x180)]=class extends o[_0x353631(0x1c7)]{constructor(_0x54fb27=w,_0x3ab541,_0xd30164){const _0x414852=_0x353631;super(),this[_0x414852(0x20f)]=_0x54fb27,this[_0x414852(0x177)]=_0x3ab541,this[_0x414852(0x215)]=_0xd30164;const {..._0x41982e}=o[_0x414852(0x1f7)]({},w,this[_0x414852(0x20f)]);this[_0x414852(0x215)][_0x414852(0x1c1)](Q,_0x41982e);}[_0x353631(0x1ea)](){const _0x87bf0b=_0x353631;o['registerDependencies'](this[_0x87bf0b(0x177)],o['mergeOverrideWithDependencies']([[E],[exports[_0x87bf0b(0x1f6)]],[m],[exports[_0x87bf0b(0x1ce)]]],this[_0x87bf0b(0x20f)][_0x87bf0b(0x225)])),o[_0x87bf0b(0x186)](this[_0x87bf0b(0x177)],[[m]]);}['onRendered'](){const _0x237d8e=_0x353631;o[_0x237d8e(0x186)](this[_0x237d8e(0x177)],[[exports['DesktopLiveShareController']]]);}},A(exports[_0x353631(0x180)],'type',o[_0x353631(0x1ab)][_0x353631(0x1f0)]),A(exports['UniverLiveSharePlugin'],_0x353631(0x238),oe),exports[_0x353631(0x180)]=re([o['DependentOn'](b[_0x353631(0x196)]),N(0x1,o[_0x353631(0x20a)](o[_0x353631(0x1b7)])),N(0x2,o[_0x353631(0x1f1)])],exports[_0x353631(0x180)]),exports[_0x353631(0x1f2)]=$,exports[_0x353631(0x242)]=E,exports['LiveShareStatus']=u;
|
|
1
|
+
'use strict';const _0x491241=_0x375b;(function(_0x2a88bf,_0x5a7da9){const _0xc5e574=_0x375b,_0x3cd0a8=_0x2a88bf();while(!![]){try{const _0x5bbb1b=-parseInt(_0xc5e574(0xfc))/0x1+parseInt(_0xc5e574(0x1ba))/0x2+parseInt(_0xc5e574(0x180))/0x3*(parseInt(_0xc5e574(0xf0))/0x4)+-parseInt(_0xc5e574(0xfe))/0x5*(-parseInt(_0xc5e574(0x1b3))/0x6)+-parseInt(_0xc5e574(0x1bf))/0x7+parseInt(_0xc5e574(0x131))/0x8+-parseInt(_0xc5e574(0x18b))/0x9*(parseInt(_0xc5e574(0x107))/0xa);if(_0x5bbb1b===_0x5a7da9)break;else _0x3cd0a8['push'](_0x3cd0a8['shift']());}catch(_0x4b1c78){_0x3cd0a8['push'](_0x3cd0a8['shift']());}}}(_0x12b1,0xca6f5));function _0x375b(_0x110c92,_0x4948d0){_0x110c92=_0x110c92-0xec;const _0x12b1ba=_0x12b1();let _0x375b3a=_0x12b1ba[_0x110c92];return _0x375b3a;}var T=Object[_0x491241(0x119)],U=(_0x38c696,_0x46e76f,_0x28c4d4)=>_0x46e76f in _0x38c696?T(_0x38c696,_0x46e76f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28c4d4}):_0x38c696[_0x46e76f]=_0x28c4d4,_=(_0x302cd4,_0x3f1c86,_0x183987)=>U(_0x302cd4,typeof _0x3f1c86!=_0x491241(0x1aa)?_0x3f1c86+'':_0x3f1c86,_0x183987);Object[_0x491241(0x119)](exports,Symbol[_0x491241(0x116)],{'value':_0x491241(0x138)});function _0x12b1(){const _0x602ace=['xlink:href','LiveShareStatus','SetScrollOperation','random','type','toStringTag','add','_stopFollowing','defineProperty','_handleNewHost','_unitID','dispose$','_collabSession','colorChannel1','getTypeOfUnitAdded$','find','connectInjector','stringify','clsx','disposeWithMe','none','_configService','DependentOn','OPERATION','_startPresenting','univer-size-4','LIVESHARE_TERMINATE','Present\x20this\x20document','http://www.w3.org/2000/svg','LIVESHARE_OPERATION','touchDependencies','Button','3855008upJCzr','throttleTime','unsubscribe','defs','PRESENTING','map','NOT_FOLLOWING','Module','values','next','data','replace','path','getMemberID','subscribe','_commandService','forwardRef','_mountLiveShare','_startFollowing','use','startFollowing','useEffect','univerjs-icon\x20univerjs-icon-','registerSharedOperation','_handleOperation','_presenter','Dropdown','has','SessionStatus','useRef','mergeOverrideWithDependencies','tryStartPresenting','LiveShare','url(#$1','getTypeOfUnitDisposed$','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','_handleOnline','_handleNewChangeSets','_startLiveShareCoordinator','UniverIcon','1em','getStatus','tag','You\x27re\x20following\x20the\x20presenter','BuiltInUIPart','OFFLINE','length','ONLINE','Inject','_commandDisposable','0\x200\x2017\x2017','CommandType','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','pluginName','univer-mb-3\x20univer-w-full\x20univer-text-sm','text','assign','entries','reverse','_uiPartsService','forEach','current','You\x27are\x20offline.','live-share.config','complete','DesktopLiveShareController','RxDisposable','displayName','set','_status$','IConfigService','getLiveShareCoordinator','_stopPresenting','UniverCollaborationClientPlugin','getOwnPropertyDescriptor','getConfig','dispose','div','onCommandExecuted','6yhWULC','setConfig','_handleTerminate','_injector','_sharedOperations','Start\x20following','Plugin','_handleOffline','delete','trim','get','13950333RWnFWq','shouldShareOperation','from','live-share-icon','Injector','takeUntil','jsxs','stopPresenting','_config','pipe','LiveShareController','button','end','string','CollaborationSessionService','SetWorksheetActiveOperation','LIVESHARE_REQUEST_HOST','then','onStarting','UniverLiveSharePlugin','mask','IUniverInstanceService','createElement','_status','_entities','SetZoomRatioOperation','parseProtocolChangeset','getUnitId','not-following','operations','asObservable','symbol','FOLLOWING','_fetchOperations','send','merge','status$','attrs','CollaborationEvent','useDependency','2365206FFTYdT','Fragment','toString','currentColor','default','substring','sessionStatus$','3294588rIKPxf','offline','getInitialStates','InsertSheetMutation','UNIVER_UNKNOWN','8646477pABnMn','IDLE','presenting','_reporters','init','_beIdle','_univerInstanceService','LiveShareService','event$','clear','674644prrxdh','LIVESHARE_NEW_HOST','getValue','_collabSessionService','idSuffix','useState','idle','LiveShareCoordinator','fill','toDisposable','LIVESHARE_FETCH_OPERATIONS','requireSession','34674ZaLpIo','UniverInstanceType','15dvqXun','UNIVER_SHEET','stopFollowing','jsx','includes','getCurrentTypeOfUnit$','_liveShareService','following','evenodd','10hoiCWt','Disposable','executeCommand','children','_init','params','memberID','UNIVER_LIVE_SHARE_PLUGIN','registerComponent','Stop\x20presenting'];_0x12b1=function(){return _0x602ace;};return _0x12b1();}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:_0x582bbe,..._0x5d9e55}){const _0x242929=_0x491241,{icon:_0x5b2bd7,id:_0x1db815,className:_0x5c3a82,extend:_0x3e15af,..._0x508339}=_0x5d9e55,_0x3a6645=(_0x242929(0x147)+_0x1db815+'\x20'+(_0x5c3a82||''))[_0x242929(0x189)](),_0x3ae6f0=v[_0x242929(0x14e)]('_'+H());return j(_0x5b2bd7,''+_0x1db815,{'defIds':_0x5b2bd7['defIds'],'idSuffix':_0x3ae6f0[_0x242929(0x16e)]},{'ref':_0x582bbe,'className':_0x3a6645,..._0x508339},_0x3e15af);}function j(_0x2b81f2,_0x27224b,_0x110f89,_0x3485b9,_0x457bba){const _0x43057c=_0x491241;return v['createElement'](_0x2b81f2[_0x43057c(0x15b)],{'key':_0x27224b,...y(_0x2b81f2,_0x110f89,_0x457bba),..._0x3485b9},(F(_0x2b81f2,_0x110f89)[_0x43057c(0x10a)]||[])['map']((_0x2c634b,_0x4aeabd)=>j(_0x2c634b,_0x27224b+'-'+_0x2b81f2[_0x43057c(0x15b)]+'-'+_0x4aeabd,_0x110f89,void 0x0,_0x457bba)));}function y(_0x51689f,_0x4d5e6a,_0xc46e92){const _0x2dba90=_0x491241,_0x1d7dfd={..._0x51689f[_0x2dba90(0x1b0)]};_0xc46e92!=null&&_0xc46e92[_0x2dba90(0x11e)]&&_0x1d7dfd[_0x2dba90(0xf8)]===_0x2dba90(0x11e)&&(_0x1d7dfd[_0x2dba90(0xf8)]=_0xc46e92[_0x2dba90(0x11e)]),_0x51689f[_0x2dba90(0x15b)]===_0x2dba90(0x19f)&&_0x1d7dfd['id']&&(_0x1d7dfd['id']=_0x1d7dfd['id']+_0x4d5e6a['idSuffix']),Object['entries'](_0x1d7dfd)[_0x2dba90(0x16d)](([_0x4aeeea,_0x5ecc06])=>{const _0x3f5970=_0x2dba90;_0x4aeeea===_0x3f5970(0x19f)&&typeof _0x5ecc06==_0x3f5970(0x198)&&(_0x1d7dfd[_0x4aeeea]=_0x5ecc06[_0x3f5970(0x13c)](/url\(#(.*)\)/,_0x3f5970(0x152)+_0x4d5e6a[_0x3f5970(0xf4)]+')'));});const {defIds:_0x526487}=_0x4d5e6a;return!_0x526487||_0x526487[_0x2dba90(0x15f)]===0x0||(_0x51689f['tag']===_0x2dba90(0x144)&&_0x1d7dfd['xlink:href']&&(_0x1d7dfd[_0x2dba90(0x111)]=_0x1d7dfd[_0x2dba90(0x111)]+_0x4d5e6a[_0x2dba90(0xf4)]),Object[_0x2dba90(0x16a)](_0x1d7dfd)[_0x2dba90(0x16d)](([_0x2a8748,_0x18d0e6])=>{const _0x56ae57=_0x2dba90;typeof _0x18d0e6==_0x56ae57(0x198)&&(_0x1d7dfd[_0x2a8748]=_0x18d0e6['replace'](/url\(#(.*)\)/,_0x56ae57(0x152)+_0x4d5e6a[_0x56ae57(0xf4)]+')'));})),_0x1d7dfd;}function F(_0x5c8d21,_0x22d454){const _0x4b75b8=_0x491241;var _0x187d80;const {defIds:_0x1275bf}=_0x22d454;return!_0x1275bf||_0x1275bf[_0x4b75b8(0x15f)]===0x0?_0x5c8d21:_0x5c8d21[_0x4b75b8(0x15b)]===_0x4b75b8(0x134)&&((_0x187d80=_0x5c8d21[_0x4b75b8(0x10a)])!=null&&_0x187d80[_0x4b75b8(0x15f)])?{..._0x5c8d21,'children':_0x5c8d21[_0x4b75b8(0x10a)]['map'](_0x1bc47d=>typeof _0x1bc47d['attrs']['id']==_0x4b75b8(0x198)&&_0x1275bf&&_0x1275bf[_0x4b75b8(0x102)](_0x1bc47d[_0x4b75b8(0x1b0)]['id'])?{..._0x1bc47d,'attrs':{..._0x1bc47d['attrs'],'id':_0x1bc47d['attrs']['id']+_0x22d454[_0x4b75b8(0xf4)]}}:_0x1bc47d)}:_0x5c8d21;}function H(){const _0x141628=_0x491241;return Math[_0x141628(0x114)]()[_0x141628(0x1b5)](0x24)[_0x141628(0x1b8)](0x2,0x8);}x['displayName']=_0x491241(0x158);const V={'tag':'svg','attrs':{'xmlns':_0x491241(0x12d),'fill':_0x491241(0x125),'viewBox':_0x491241(0x163),'width':_0x491241(0x159),'height':_0x491241(0x159)},'children':[{'tag':_0x491241(0x13d),'attrs':{'fill':_0x491241(0x1b6),'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':'path','attrs':{'fill':_0x491241(0x1b6),'d':_0x491241(0x165),'fillRule':_0x491241(0x106),'clipRule':_0x491241(0x106)}}]},R=v[_0x491241(0x141)](function(_0x167ba3,_0x1fe800){const _0xdd6944=_0x491241;return v[_0xdd6944(0x1a1)](x,Object[_0xdd6944(0x169)]({},_0x167ba3,{'id':_0xdd6944(0x18e),'ref':_0x1fe800,'icon':V}));});R[_0x491241(0x174)]='LiveShareIcon';class E extends o[_0x491241(0x108)]{constructor(){const _0xdb0e6a=_0x491241;super(...arguments),_(this,_0xdb0e6a(0x184),new Set()),_(this,_0xdb0e6a(0x1c2),new Set());}[_0x491241(0x148)](_0x448211){const _0x2648e5=_0x491241;return this['_sharedOperations'][_0x2648e5(0x117)](_0x448211),o['toDisposable'](()=>this['_sharedOperations'][_0x2648e5(0x188)](_0x448211));}['registerInitialStateReporter'](_0x891940){const _0x1de418=_0x491241;return this[_0x1de418(0x1c2)][_0x1de418(0x117)](_0x891940),o['toDisposable'](()=>this[_0x1de418(0x1c2)][_0x1de418(0x188)](_0x891940));}[_0x491241(0x18c)](_0x48f145){const _0x513521=_0x491241;return this[_0x513521(0x184)][_0x513521(0x14c)](_0x48f145);}[_0x491241(0x1bc)](_0xcd9b23){const _0x28d653=_0x491241;return Array[_0x28d653(0x18d)](this['_reporters'])[_0x28d653(0x136)](_0x2122c2=>_0x2122c2(_0xcd9b23));}}var M=Object[_0x491241(0x17b)],P=(_0x6584a2,_0x147c0f,_0x4bc407,_0xdcfb7)=>{const _0x23a922=_0x491241;for(var _0x52cbde=_0xdcfb7>0x1?void 0x0:_0xdcfb7?M(_0x147c0f,_0x4bc407):_0x147c0f,_0x490702=_0x6584a2[_0x23a922(0x15f)]-0x1,_0x43bba0;_0x490702>=0x0;_0x490702--)(_0x43bba0=_0x6584a2[_0x490702])&&(_0x52cbde=_0x43bba0(_0x52cbde)||_0x52cbde);return _0x52cbde;},S=(_0x3263e2,_0x2c1044)=>(_0x44e2aa,_0x130b64)=>_0x2c1044(_0x44e2aa,_0x130b64,_0x3263e2);exports[_0x491241(0x195)]=class extends o[_0x491241(0x173)]{constructor(_0x37c1e9,_0x105773,_0x25f508){const _0x5811dc=_0x491241;super(),_(this,_0x5811dc(0x1a3),new Map()),(this['_univerInstanceService']=_0x37c1e9,this['_injector']=_0x105773,this['_collabSessionService']=_0x25f508,this[_0x5811dc(0x10b)]());}async[_0x491241(0x178)](_0x5cba46){const _0x2cbe7c=_0x491241;return this[_0x2cbe7c(0x1a3)]['has'](_0x5cba46)||await this[_0x2cbe7c(0x157)](_0x5cba46),this[_0x2cbe7c(0x1a3)][_0x2cbe7c(0x18a)](_0x5cba46);}['getLiveShareCoordinatorSync'](_0x32ae41){const _0x23629d=_0x491241;var _0x3764e6;return(_0x3764e6=this[_0x23629d(0x1a3)][_0x23629d(0x18a)](_0x32ae41))!=null?_0x3764e6:null;}[_0x491241(0x10b)](){const _0x2570a5=_0x491241;this[_0x2570a5(0xec)][_0x2570a5(0x11f)](o[_0x2570a5(0xfd)][_0x2570a5(0xff)])[_0x2570a5(0x194)](I[_0x2570a5(0x190)](this[_0x2570a5(0x11c)]))[_0x2570a5(0x13f)](async _0x1ff6dd=>{const _0x21b096=_0x2570a5,_0x2bc9a2=_0x1ff6dd[_0x21b096(0x1a6)]();this['_entities'][_0x21b096(0x14c)](_0x2bc9a2)||this[_0x21b096(0x157)](_0x2bc9a2);}),this[_0x2570a5(0xec)][_0x2570a5(0x153)](o[_0x2570a5(0xfd)]['UNIVER_SHEET'])[_0x2570a5(0x194)](I['takeUntil'](this[_0x2570a5(0x11c)]))[_0x2570a5(0x13f)](_0x9843d9=>{const _0x4e02b1=_0x2570a5,_0x1b9ce9=_0x9843d9[_0x4e02b1(0x1a6)](),_0x4653f2=this[_0x4e02b1(0x1a3)]['get'](_0x1b9ce9);_0x4653f2==null||_0x4653f2['dispose']();});}async[_0x491241(0x157)](_0x38cee2){const _0x5f18a0=_0x491241,_0x27a165=await this[_0x5f18a0(0xf3)][_0x5f18a0(0xfb)](_0x38cee2),_0x43d202=this['_injector']['createInstance'](exports[_0x5f18a0(0xf7)],_0x38cee2,_0x27a165);return _0x43d202['init'](),this[_0x5f18a0(0x1a3)][_0x5f18a0(0x175)](_0x38cee2,_0x43d202),_0x43d202;}},exports[_0x491241(0x195)]=P([S(0x0,o[_0x491241(0x1a0)]),S(0x1,o[_0x491241(0x161)](o[_0x491241(0x18f)])),S(0x2,o[_0x491241(0x161)](b[_0x491241(0x199)]))],exports[_0x491241(0x195)]);var u=(_0x12fb20=>(_0x12fb20[_0x491241(0x15e)]=_0x491241(0x1bb),_0x12fb20[_0x491241(0x1c0)]='idle',_0x12fb20[_0x491241(0x1ab)]=_0x491241(0x105),_0x12fb20['NOT_FOLLOWING']='not-following',_0x12fb20['PRESENTING']=_0x491241(0x1c1),_0x12fb20))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports[_0x491241(0xf7)]=class extends o[_0x491241(0x173)]{constructor(_0x118dd4,_0x1671f4,_0x2bea8d,_0xdf3ba0,_0x3b8568){const _0x5d78fa=_0x491241;super(),_(this,_0x5d78fa(0x176),new O['BehaviorSubject']('idle')),_(this,_0x5d78fa(0x1af),this[_0x5d78fa(0x176)][_0x5d78fa(0x1a9)]()),_(this,_0x5d78fa(0x10b),!0x1),_(this,_0x5d78fa(0x162),null),_(this,'_presenter',null),(this[_0x5d78fa(0x11b)]=_0x118dd4,this[_0x5d78fa(0x11d)]=_0x1671f4,this[_0x5d78fa(0x126)]=_0x2bea8d,this['_liveShareService']=_0xdf3ba0,this[_0x5d78fa(0x140)]=_0x3b8568);}get[_0x491241(0x1a2)](){const _0x32fca7=_0x491241;return this[_0x32fca7(0x176)][_0x32fca7(0xf2)]();}[_0x491241(0x17d)](){const _0x248a15=_0x491241;var _0x39796a;(_0x39796a=this[_0x248a15(0x162)])==null||_0x39796a[_0x248a15(0x17d)](),this[_0x248a15(0x176)]['next'](_0x248a15(0xf6)),this[_0x248a15(0x176)][_0x248a15(0x171)]();}[_0x491241(0x15a)](){const _0xcec845=_0x491241;return this[_0xcec845(0x1a2)];}[_0x491241(0x1c3)](){const _0x585264=_0x491241;this[_0x585264(0x10b)]||(this[_0x585264(0x10b)]=!0x0,this[_0x585264(0x11d)][_0x585264(0x1b9)][_0x585264(0x194)](I[_0x585264(0x190)](this['dispose$']))['subscribe'](_0x16ca21=>{const _0x350ef0=_0x585264;switch(_0x16ca21){case b[_0x350ef0(0x14d)][_0x350ef0(0x15e)]:this[_0x350ef0(0x187)]();break;case b[_0x350ef0(0x14d)][_0x350ef0(0x160)]:this[_0x350ef0(0x155)]();break;}}),this[_0x585264(0x11d)][_0x585264(0xee)][_0x585264(0x194)](I['takeUntil'](this[_0x585264(0x11c)]))[_0x585264(0x13f)](_0x3acd5c=>{const _0x31b4f7=_0x585264,{eventID:_0x37a4cd}=_0x3acd5c;switch(_0x37a4cd){case d[_0x31b4f7(0x1b1)][_0x31b4f7(0xf1)]:this['_handleNewHost'](_0x3acd5c);break;case d['CollaborationEvent']['LIVESHARE_OPERATION']:this[_0x31b4f7(0x149)](_0x3acd5c);break;case d[_0x31b4f7(0x1b1)][_0x31b4f7(0x12b)]:this['_handleTerminate']();break;case d[_0x31b4f7(0x1b1)]['NEW_CHANGESETS']:this[_0x31b4f7(0x156)](_0x3acd5c);break;}}));}[_0x491241(0x150)](){const _0x1cdd4f=_0x491241;this[_0x1cdd4f(0x11d)]['send']({'eventID':d[_0x1cdd4f(0x1b1)][_0x1cdd4f(0x19b)],'data':{'unitID':this[_0x1cdd4f(0x11b)],'userID':this[_0x1cdd4f(0x11d)][_0x1cdd4f(0x13e)]()}},this['_unitID']);}['stopPresenting'](){const _0x2c5f4f=_0x491241;this[_0x2c5f4f(0x1a2)]===_0x2c5f4f(0x1c1)&&(this[_0x2c5f4f(0x176)][_0x2c5f4f(0x13a)](_0x2c5f4f(0xf6)),this['_collabSession'][_0x2c5f4f(0x1ad)]({'eventID':d['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x2c5f4f(0x11b)]));}[_0x491241(0x145)](){const _0x5ac49e=_0x491241;this[_0x5ac49e(0x1a2)]==='not-following'&&(this[_0x5ac49e(0x176)][_0x5ac49e(0x13a)](_0x5ac49e(0x105)),this[_0x5ac49e(0x143)]());}[_0x491241(0x100)](){const _0x2d36e4=_0x491241;this[_0x2d36e4(0x1a2)]==='following'&&this[_0x2d36e4(0x118)]();}[_0x491241(0x11a)](_0x4703d5){const _0x5dc462=_0x491241,{presenter:_0x41a68f}=_0x4703d5['data'],_0x32aa80=this[_0x5dc462(0x11d)][_0x5dc462(0x13e)]();this['_presenter']=_0x41a68f,_0x41a68f===_0x32aa80?(this[_0x5dc462(0x118)](),this['_startPresenting']()):this[_0x5dc462(0x1a2)]!==_0x5dc462(0x1a7)&&(this[_0x5dc462(0x179)](),this[_0x5dc462(0x143)]());}[_0x491241(0x1ac)](){const _0x29e8c3=_0x491241,_0x396c1c={'eventID':d[_0x29e8c3(0x1b1)][_0x29e8c3(0xfa)]};this[_0x29e8c3(0x11d)][_0x29e8c3(0x1ad)](_0x396c1c,this[_0x29e8c3(0x11b)]);}[_0x491241(0x182)](){const _0x129efc=_0x491241;this[_0x129efc(0x14a)]=null,this['_status']!==_0x129efc(0x1c1)&&this[_0x129efc(0x1c4)]();}[_0x491241(0x156)](_0x548fdd){const _0x2c607a=_0x491241;if(this[_0x2c607a(0x1a2)]===_0x2c607a(0x105)&&this[_0x2c607a(0x14a)]===_0x548fdd['data'][_0x2c607a(0x10d)]){const _0x398480=d[_0x2c607a(0x1a5)](_0x548fdd['data'])['mutations'][_0x2c607a(0x16b)]()[_0x2c607a(0x120)](_0x2b4367=>_0x2b4367['id']===C[_0x2c607a(0x1bd)]['id']);if(_0x398480){const _0x35304d=_0x398480[_0x2c607a(0x10c)]['unitId'],_0x5e2fdc=_0x398480[_0x2c607a(0x10c)]['sheet']['id'];setTimeout(()=>{const _0x1477bd=_0x2c607a;this[_0x1477bd(0x140)][_0x1477bd(0x109)](C[_0x1477bd(0x19a)]['id'],{'unitId':_0x35304d,'subUnitId':_0x5e2fdc},{'fromCollab':!0x0});});}}}[_0x491241(0x129)](){const _0xd02c88=_0x491241;this['_status$'][_0xd02c88(0x13a)](_0xd02c88(0x1c1));const _0x105f6b=new Map(),_0x25cf84=this['_commandDisposable']=new o['DisposableCollection']();_0x25cf84[_0xd02c88(0x117)](o[_0xd02c88(0xf9)](()=>{const _0x50b2b8=_0xd02c88;_0x105f6b[_0x50b2b8(0x16d)](_0x46ced2=>_0x46ced2[_0x50b2b8(0x171)]()),_0x105f6b[_0x50b2b8(0xef)]();})),_0x25cf84['add'](this[_0xd02c88(0x140)][_0xd02c88(0x17f)](_0x248ac2=>{const _0x18ef29=_0xd02c88;var _0x52df79;if(_0x248ac2[_0x18ef29(0x115)]!==o[_0x18ef29(0x164)][_0x18ef29(0x128)]||!this[_0x18ef29(0x104)]['shouldShareOperation'](_0x248ac2['id']))return;const {id:_0x3a16ee}=_0x248ac2;let _0x40f42b;_0x105f6b[_0x18ef29(0x14c)](_0x3a16ee)?_0x40f42b=_0x105f6b[_0x18ef29(0x18a)](_0x3a16ee):(_0x40f42b=new O['Subject'](),_0x105f6b[_0x18ef29(0x175)](_0x3a16ee,_0x40f42b),_0x40f42b['pipe'](I[_0x18ef29(0x132)]((_0x52df79=this[_0x18ef29(0x126)][_0x18ef29(0x17c)](k))!=null?_0x52df79:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x18ef29(0x13f)](_0x141134=>{const _0x4d33e7=_0x18ef29;this['_collabSession'][_0x4d33e7(0x1ad)]({'eventID':d[_0x4d33e7(0x1b1)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4d33e7(0x11b)],'operations':{[_0x141134['id']]:{'id':_0x141134['id'],'params':JSON[_0x4d33e7(0x122)](_0x141134[_0x4d33e7(0x10c)])}}}},this[_0x4d33e7(0x11b)]);})),_0x40f42b[_0x18ef29(0x13a)](_0x248ac2);})),this[_0xd02c88(0x104)]['getInitialStates'](this[_0xd02c88(0x11b)])[_0xd02c88(0x16d)](_0x1afea7=>this['_collabSession'][_0xd02c88(0x1ad)]({'eventID':d['CollaborationEvent'][_0xd02c88(0x12e)],'data':{'unitID':this['_unitID'],'operations':{[_0x1afea7['id']]:{'id':_0x1afea7['id'],'params':JSON[_0xd02c88(0x122)](_0x1afea7['params'])}}}},this[_0xd02c88(0x11b)]));}['_stopPresenting'](){const _0x5556f2=_0x491241;var _0x1a0b9d;this[_0x5556f2(0x176)][_0x5556f2(0x13a)](_0x5556f2(0xf6)),(_0x1a0b9d=this['_commandDisposable'])==null||_0x1a0b9d['dispose'](),this[_0x5556f2(0x162)]=null;}[_0x491241(0x143)](){const _0x4884c7=_0x491241;var _0x3f6987;(_0x3f6987=this[_0x4884c7(0x162)])==null||_0x3f6987[_0x4884c7(0x17d)](),this[_0x4884c7(0x176)][_0x4884c7(0x13a)](_0x4884c7(0x105));}[_0x491241(0x1c4)](){const _0x9ba780=_0x491241;var _0x184afa;this['_status$'][_0x9ba780(0x13a)](_0x9ba780(0xf6)),(_0x184afa=this[_0x9ba780(0x162)])==null||_0x184afa[_0x9ba780(0x17d)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x4df61a=_0x491241;var _0x3b7e84;this[_0x4df61a(0x176)][_0x4df61a(0x13a)](_0x4df61a(0x1a7)),(_0x3b7e84=this[_0x4df61a(0x162)])==null||_0x3b7e84[_0x4df61a(0x17d)]();}[_0x491241(0x149)](_0x14d251){const _0xd99dc6=_0x491241;if([_0xd99dc6(0x1c1),'not-following','offline']['includes'](this[_0xd99dc6(0x1a2)])||!_0x14d251[_0xd99dc6(0x13b)]['presenter']||_0x14d251[_0xd99dc6(0x13b)]['presenter']===this[_0xd99dc6(0x11d)][_0xd99dc6(0x13e)]())return;this[_0xd99dc6(0x1a2)]===_0xd99dc6(0xf6)&&this[_0xd99dc6(0x143)]();const _0x439c7e=_0x14d251[_0xd99dc6(0x13b)][_0xd99dc6(0x1a8)];Object[_0xd99dc6(0x139)](_0x439c7e)[_0xd99dc6(0x16d)](_0x52d866=>{const _0x533622=_0xd99dc6;this[_0x533622(0x140)]['executeCommand'](_0x52d866['id'],_0x52d866[_0x533622(0x10c)]?JSON['parse'](_0x52d866[_0x533622(0x10c)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x2b553a=_0x491241;var _0x5c5ad5;this[_0x2b553a(0x176)][_0x2b553a(0x13a)](_0x2b553a(0x1bb)),(_0x5c5ad5=this[_0x2b553a(0x162)])==null||_0x5c5ad5['dispose']();}['_handleOnline'](){const _0x44104d=_0x491241;this[_0x44104d(0x176)][_0x44104d(0x13a)](_0x44104d(0xf6)),this[_0x44104d(0x1ac)]();}},exports[_0x491241(0xf7)]=P([S(0x2,o[_0x491241(0x177)]),S(0x3,o[_0x491241(0x161)](E)),S(0x4,o['ICommandService'])],exports[_0x491241(0xf7)]);function $(){const _0x4da248=_0x491241,_0x125f95=p[_0x4da248(0x1b2)](exports['LiveShareController']),_0x4b66bf=p[_0x4da248(0x1b2)](o['IUniverInstanceService']),_0x10da6b=p['useObservable'](()=>_0x4b66bf[_0x4da248(0x103)](o[_0x4da248(0xfd)][_0x4da248(0xff)]),void 0x0,!0x1,[]),[_0x5bc573,_0x30a0e2]=v['useState'](null),[_0xef7db8,_0x194a4e]=v[_0x4da248(0xf5)](u[_0x4da248(0x1c0)]),_0x394ee0=v['useRef'](null);return v[_0x4da248(0x146)](()=>(_0x10da6b&&_0x125f95[_0x4da248(0x178)](_0x10da6b[_0x4da248(0x1a6)]())[_0x4da248(0x19c)](_0x4fe7bb=>{const _0x730310=_0x4da248;_0x30a0e2(_0x4fe7bb),_0x394ee0[_0x730310(0x16e)]=_0x4fe7bb[_0x730310(0x1af)][_0x730310(0x13f)](_0x24c121=>{_0x194a4e(_0x24c121);});}),()=>{const _0x36105b=_0x4da248;var _0x3cbefd;(_0x3cbefd=_0x394ee0[_0x36105b(0x16e)])==null||_0x3cbefd[_0x36105b(0x133)](),_0x394ee0[_0x36105b(0x16e)]=null;}),[_0x10da6b,_0x125f95]),_0x5bc573?l['jsx'](f[_0x4da248(0x14b)],{'align':_0x4da248(0x197),'disabled':_0xef7db8===u[_0x4da248(0x15e)],'className':_0x4da248(0x154),'overlay':l[_0x4da248(0x101)](W,{'status':_0xef7db8,'coordinator':_0x5bc573}),'children':l[_0x4da248(0x101)]('button',{'className':f[_0x4da248(0x123)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xef7db8===u[_0x4da248(0x15e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xef7db8!==u['OFFLINE']}),'type':_0x4da248(0x196),'children':l[_0x4da248(0x101)](R,{'className':_0x4da248(0x12a)})})}):null;}function W(_0xd23a75){const _0x396f1d=_0x491241,{status:_0x528a60,coordinator:_0x1865ac}=_0xd23a75;switch(_0x528a60){case u[_0x396f1d(0x1c0)]:return l[_0x396f1d(0x101)](G,{'coordinator':_0x1865ac});case u['FOLLOWING']:return l[_0x396f1d(0x101)](B,{'coordinator':_0x1865ac});case u[_0x396f1d(0x137)]:return l[_0x396f1d(0x101)](Y,{'coordinator':_0x1865ac});case u[_0x396f1d(0x15e)]:return l[_0x396f1d(0x101)](J,{});case u[_0x396f1d(0x135)]:return l['jsx'](Z,{'coordinator':_0x1865ac});default:return null;}}function G(_0x35a981){const _0x40b4af=_0x491241,{coordinator:_0x395cbe}=_0x35a981;return l[_0x40b4af(0x191)](l[_0x40b4af(0x1b4)],{'children':[l['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x40b4af(0x12c)}),l[_0x40b4af(0x101)](f['Button'],{'onClick':()=>_0x395cbe[_0x40b4af(0x150)](),'children':'Start'})]});}function B(_0x15b1cb){const _0x1221bf=_0x491241,{coordinator:_0x6ff6db}=_0x15b1cb;return l[_0x1221bf(0x191)](l[_0x1221bf(0x1b4)],{'children':[l[_0x1221bf(0x101)](_0x1221bf(0x17e),{'className':_0x1221bf(0x167),'children':_0x1221bf(0x15c)}),l[_0x1221bf(0x101)](f['Button'],{'onClick':()=>_0x6ff6db['stopFollowing'](),'children':'Stop\x20following'})]});}function Y(_0x118922){const _0x1b06f2=_0x491241,{coordinator:_0x2c9991}=_0x118922;return l[_0x1b06f2(0x191)](l[_0x1b06f2(0x1b4)],{'children':[l[_0x1b06f2(0x101)](_0x1b06f2(0x17e),{'className':_0x1b06f2(0x167),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x1b06f2(0x101)](f[_0x1b06f2(0x130)],{'variant':_0x1b06f2(0x168),'onClick':()=>_0x2c9991[_0x1b06f2(0x145)](),'children':_0x1b06f2(0x185)})]});}function Z(_0x18cf3c){const _0x40eda5=_0x491241,{coordinator:_0x14ee19}=_0x18cf3c;return l[_0x40eda5(0x191)](l['Fragment'],{'children':[l['jsx'](_0x40eda5(0x17e),{'className':_0x40eda5(0x167),'children':'You\x27re\x20presenting\x20the\x20document'}),l['jsx'](f[_0x40eda5(0x130)],{'variant':_0x40eda5(0x1b7),'onClick':()=>_0x14ee19[_0x40eda5(0x192)](),'children':_0x40eda5(0x110)})]});}function J(){const _0x574d6f=_0x491241;return l[_0x574d6f(0x101)](l['Fragment'],{'children':_0x574d6f(0x16f)});}var K=Object[_0x491241(0x17b)],z=(_0x594353,_0x587ee7,_0x19322e,_0x1f78a2)=>{const _0x350eca=_0x491241;for(var _0x2b6db4=_0x1f78a2>0x1?void 0x0:_0x1f78a2?K(_0x587ee7,_0x19322e):_0x587ee7,_0x889ca0=_0x594353[_0x350eca(0x15f)]-0x1,_0x212501;_0x889ca0>=0x0;_0x889ca0--)(_0x212501=_0x594353[_0x889ca0])&&(_0x2b6db4=_0x212501(_0x2b6db4)||_0x2b6db4);return _0x2b6db4;},L=(_0x5ee7c6,_0x2cd824)=>(_0x1d8241,_0x22d1cb)=>_0x2cd824(_0x1d8241,_0x22d1cb,_0x5ee7c6);exports[_0x491241(0x172)]=class extends o[_0x491241(0x108)]{constructor(_0x267a34,_0x4ac2e0){const _0x12488f=_0x491241;super(),this[_0x12488f(0x183)]=_0x267a34,this[_0x12488f(0x16c)]=_0x4ac2e0,this[_0x12488f(0x142)]();}['_mountLiveShare'](){const _0x3db294=_0x491241;this[_0x3db294(0x124)](this[_0x3db294(0x16c)][_0x3db294(0x10f)](p[_0x3db294(0x15d)]['HEADER_MENU'],()=>p[_0x3db294(0x121)]($,this[_0x3db294(0x183)])));}},exports[_0x491241(0x172)]=z([L(0x0,o[_0x491241(0x161)](o[_0x491241(0x18f)])),L(0x1,p['IUIPartsService'])],exports['DesktopLiveShareController']);const Q=_0x491241(0x170),w={};var X=Object[_0x491241(0x17b)],ee=(_0x3ababd,_0x26c21d,_0x48627d,_0x476f21)=>{const _0x11d9bb=_0x491241;for(var _0x521296=_0x476f21>0x1?void 0x0:_0x476f21?X(_0x26c21d,_0x48627d):_0x26c21d,_0x283c59=_0x3ababd[_0x11d9bb(0x15f)]-0x1,_0x398fc8;_0x283c59>=0x0;_0x283c59--)(_0x398fc8=_0x3ababd[_0x283c59])&&(_0x521296=_0x398fc8(_0x521296)||_0x521296);return _0x521296;},te=(_0x316920,_0x39f74f)=>(_0x1d67e7,_0x439a80)=>_0x39f74f(_0x1d67e7,_0x439a80,_0x316920);let m=class extends o['Disposable']{constructor(_0x45c883){super(),this['_liveShareService']=_0x45c883,this['_init']();}[_0x491241(0x10b)](){const _0x368081=_0x491241;[D[_0x368081(0x1a4)]['id'],D[_0x368081(0x113)]['id'],C['SetWorksheetActiveOperation']['id']][_0x368081(0x16d)](_0x8f78fe=>{const _0x2cc087=_0x368081;this['disposeWithMe'](this['_liveShareService'][_0x2cc087(0x148)](_0x8f78fe));});}};m=ee([te(0x0,o[_0x491241(0x161)](E))],m);var ie=Object[_0x491241(0x119)],se=Object[_0x491241(0x17b)],ne=(_0x213bb5,_0x4db0f0,_0x188eb1)=>_0x4db0f0 in _0x213bb5?ie(_0x213bb5,_0x4db0f0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x188eb1}):_0x213bb5[_0x4db0f0]=_0x188eb1,re=(_0x4432ee,_0x511135,_0x38e34d,_0x463d4b)=>{for(var _0x3f3c07=_0x463d4b>0x1?void 0x0:_0x463d4b?se(_0x511135,_0x38e34d):_0x511135,_0x3514cc=_0x4432ee['length']-0x1,_0x4e95a7;_0x3514cc>=0x0;_0x3514cc--)(_0x4e95a7=_0x4432ee[_0x3514cc])&&(_0x3f3c07=_0x4e95a7(_0x3f3c07)||_0x3f3c07);return _0x3f3c07;},N=(_0x5abd3f,_0x4d8018)=>(_0x113790,_0x7fb04c)=>_0x4d8018(_0x113790,_0x7fb04c,_0x5abd3f),A=(_0x4e58ff,_0x1fa244,_0x5a4edb)=>ne(_0x4e58ff,typeof _0x1fa244!=_0x491241(0x1aa)?_0x1fa244+'':_0x1fa244,_0x5a4edb);const oe=_0x491241(0x10e);exports[_0x491241(0x19e)]=class extends o[_0x491241(0x186)]{constructor(_0x84f871=w,_0x4d537e,_0xbd2691){const _0x3d735a=_0x491241;super(),this[_0x3d735a(0x193)]=_0x84f871,this['_injector']=_0x4d537e,this[_0x3d735a(0x126)]=_0xbd2691;const {..._0x828894}=o[_0x3d735a(0x1ae)]({},w,this[_0x3d735a(0x193)]);this[_0x3d735a(0x126)][_0x3d735a(0x181)](Q,_0x828894);}[_0x491241(0x19d)](){const _0x596dd3=_0x491241;o['registerDependencies'](this[_0x596dd3(0x183)],o[_0x596dd3(0x14f)]([[E],[exports[_0x596dd3(0x195)]],[m],[exports[_0x596dd3(0x172)]]],this['_config']['override'])),o[_0x596dd3(0x12f)](this['_injector'],[[m]]);}['onRendered'](){const _0x33c92a=_0x491241;o[_0x33c92a(0x12f)](this[_0x33c92a(0x183)],[[exports[_0x33c92a(0x172)]]]);}},A(exports[_0x491241(0x19e)],'type',o['UniverInstanceType'][_0x491241(0x1be)]),A(exports[_0x491241(0x19e)],_0x491241(0x166),oe),exports[_0x491241(0x19e)]=re([o[_0x491241(0x127)](b[_0x491241(0x17a)]),N(0x1,o[_0x491241(0x161)](o[_0x491241(0x18f)])),N(0x2,o[_0x491241(0x177)])],exports[_0x491241(0x19e)]),exports[_0x491241(0x151)]=$,exports[_0x491241(0xed)]=E,exports[_0x491241(0x112)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2a8c09=_0x32e7;(function(_0x3460aa,_0xf26c3){const _0x3288af=_0x32e7,_0x41f6ad=_0x3460aa();while(!![]){try{const _0x2b5a4f=-parseInt(_0x3288af(0x7f))/0x1*(parseInt(_0x3288af(0x75))/0x2)+-parseInt(_0x3288af(0x86))/0x3*(parseInt(_0x3288af(0x73))/0x4)+parseInt(_0x3288af(0x7a))/0x5*(parseInt(_0x3288af(0x8d))/0x6)+-parseInt(_0x3288af(0x81))/0x7+-parseInt(_0x3288af(0x71))/0x8+-parseInt(_0x3288af(0x8e))/0x9+-parseInt(_0x3288af(0x7c))/0xa*(-parseInt(_0x3288af(0x85))/0xb);if(_0x2b5a4f===_0xf26c3)break;else _0x41f6ad['push'](_0x41f6ad['shift']());}catch(_0x10aff4){_0x41f6ad['push'](_0x41f6ad['shift']());}}}(_0x26a5,0x230d2));import{LiveShareController as _0x14a70b,LiveShareStatus as _0x1428be}from'@univerjs-pro/live-share';import{IRenderManagerService as _0xce11c8}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x4aa18d}from'@univerjs/sheets';import{SetScrollOperation as _0x559e3d}from'@univerjs/sheets-ui';import{FRange as _0x35a4e6}from'@univerjs/sheets/facade';import{FUniver as _0x2e541a,FEnum as _0x336ab1}from'@univerjs/core/facade';class I extends _0x35a4e6{[_0x2a8c09(0x82)](_0xb5b6aa,_0x9b43eb,_0x29dece,_0x30fedd,_0x201ae2){const _0x1a76c2=_0x2a8c09,_0x3b2b51=_0xb5b6aa[_0x1a76c2(0x80)](_0x14a70b),_0x426642=_0xb5b6aa[_0x1a76c2(0x80)](_0xce11c8),_0x34589c=_0x9b43eb[_0x1a76c2(0x84)](),_0x535701=_0x9b43eb['getActiveSheet'](),_0x6ff2c1=_0x3b2b51['getLiveShareCoordinatorSync'](_0x34589c);(_0x6ff2c1==null?void 0x0:_0x6ff2c1['getStatus']())!==_0x1428be[_0x1a76c2(0x90)]||(_0x29dece['getSheetId']()!==_0x535701[_0x1a76c2(0x72)]()&&this['_commandService']['executeCommand'](_0x4aa18d['id'],{'unitId':_0x34589c,'subUnitId':_0x29dece[_0x1a76c2(0x72)]()}),!_0x426642[_0x1a76c2(0x74)](_0x34589c))||_0x201ae2[_0x1a76c2(0x8c)](_0x559e3d['id'],{'unitId':_0x9b43eb[_0x1a76c2(0x84)](),'sheetId':_0x29dece['getSheetId'](),'sheetViewStartRow':_0x30fedd['startRow'],'sheetViewStartColumn':_0x30fedd[_0x1a76c2(0x78)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x35a4e6[_0x2a8c09(0x7d)](I);function _0x32e7(_0x3e7324,_0x2dffa4){_0x3e7324=_0x3e7324-0x6f;const _0x26a55d=_0x26a5();let _0x32e799=_0x26a55d[_0x3e7324];return _0x32e799;}class m extends _0x2e541a{[_0x2a8c09(0x83)](){const _0x4bae81=_0x2a8c09;var _0x561e72,_0x5dbbbc;const _0xa36ea0=this[_0x4bae81(0x76)]['get'](_0x14a70b),_0x59d589=(_0x561e72=this[_0x4bae81(0x87)]())==null?void 0x0:_0x561e72[_0x4bae81(0x70)]();if(!_0x59d589)throw new Error(_0x4bae81(0x8a));const _0x6b6544=_0xa36ea0[_0x4bae81(0x79)](_0x59d589);return(_0x5dbbbc=_0x6b6544==null?void 0x0:_0x6b6544[_0x4bae81(0x8f)]())!=null?_0x5dbbbc:_0x1428be['IDLE'];}[_0x2a8c09(0x6f)](){const _0x3ab86e=_0x2a8c09;var _0x176503;const _0x51178a=this[_0x3ab86e(0x76)][_0x3ab86e(0x80)](_0x14a70b),_0x5699d9=(_0x176503=this[_0x3ab86e(0x87)]())==null?void 0x0:_0x176503[_0x3ab86e(0x70)]();if(!_0x5699d9)throw new Error('No\x20active\x20workbook\x20found.');const _0xf2736f=_0x51178a[_0x3ab86e(0x79)](_0x5699d9);if(!_0xf2736f)throw new Error(_0x3ab86e(0x77));_0xf2736f[_0x3ab86e(0x6f)]();}[_0x2a8c09(0x88)](){const _0x1c5236=_0x2a8c09;var _0x14acc0;const _0x376977=this[_0x1c5236(0x76)]['get'](_0x14a70b),_0x4a57ee=(_0x14acc0=this['getActiveWorkbook']())==null?void 0x0:_0x14acc0[_0x1c5236(0x70)]();if(!_0x4a57ee)throw new Error(_0x1c5236(0x8a));const _0x357673=_0x376977[_0x1c5236(0x79)](_0x4a57ee);if(!_0x357673)throw new Error(_0x1c5236(0x77));_0x357673[_0x1c5236(0x88)]();}[_0x2a8c09(0x8b)](){const _0x1f72fa=_0x2a8c09;var _0x53199e;const _0x2e35ac=this[_0x1f72fa(0x76)][_0x1f72fa(0x80)](_0x14a70b),_0x3cc0ba=(_0x53199e=this[_0x1f72fa(0x87)]())==null?void 0x0:_0x53199e[_0x1f72fa(0x70)]();if(!_0x3cc0ba)throw new Error(_0x1f72fa(0x8a));const _0xb8d64=_0x2e35ac['getLiveShareCoordinatorSync'](_0x3cc0ba);if(!_0xb8d64)throw new Error(_0x1f72fa(0x77));_0xb8d64[_0x1f72fa(0x7e)]();}['stopPresenting'](){const _0xf19fa4=_0x2a8c09;var _0x3a39eb;const _0x100e08=this[_0xf19fa4(0x76)]['get'](_0x14a70b),_0x5a4407=(_0x3a39eb=this[_0xf19fa4(0x87)]())==null?void 0x0:_0x3a39eb[_0xf19fa4(0x70)]();if(!_0x5a4407)throw new Error(_0xf19fa4(0x8a));const _0x388d5e=_0x100e08[_0xf19fa4(0x79)](_0x5a4407);if(!_0x388d5e)throw new Error(_0xf19fa4(0x77));_0x388d5e[_0xf19fa4(0x89)]();}}_0x2e541a[_0x2a8c09(0x7d)](m);function _0x26a5(){const _0xa8bdca=['syncExecuteCommand','85056wlsqHL','1869885vHftYD','getStatus','PRESENTING','startFollowing','getId','1714192TRJIOV','getSheetId','4GsEthZ','getRenderById','2JYOPpb','_injector','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startColumn','getLiveShareCoordinatorSync','70KDTtXn','LiveShareStatusEnum','220420AFnxOc','extend','tryStartPresenting','238421QwbOYQ','get','949676XVJpvL','_initialize','getLiveShareStatus','getUnitId','462BnWIjK','553590hdipJP','getActiveWorkbook','stopFollowing','stopPresenting','No\x20active\x20workbook\x20found.','startPresenting'];_0x26a5=function(){return _0xa8bdca;};return _0x26a5();}class C extends _0x336ab1{get[_0x2a8c09(0x7b)](){return _0x1428be;}}_0x336ab1['extend'](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xce0c4e=_0x53c8;(function(_0xe945e9,_0x5846b5){const _0x1571b1=_0x53c8,_0x4b6916=_0xe945e9();while(!![]){try{const _0x3c7bcf=parseInt(_0x1571b1(0x21e))/0x1*(parseInt(_0x1571b1(0x25a))/0x2)+-parseInt(_0x1571b1(0x26d))/0x3*(-parseInt(_0x1571b1(0x236))/0x4)+-parseInt(_0x1571b1(0x220))/0x5*(-parseInt(_0x1571b1(0x213))/0x6)+parseInt(_0x1571b1(0x277))/0x7*(parseInt(_0x1571b1(0x271))/0x8)+-parseInt(_0x1571b1(0x23e))/0x9+parseInt(_0x1571b1(0x1fc))/0xa*(-parseInt(_0x1571b1(0x24e))/0xb)+parseInt(_0x1571b1(0x232))/0xc*(parseInt(_0x1571b1(0x210))/0xd);if(_0x3c7bcf===_0x5846b5)break;else _0x4b6916['push'](_0x4b6916['shift']());}catch(_0xc22004){_0x4b6916['push'](_0x4b6916['shift']());}}}(_0x1f69,0x48e76));var J=Object[_0xce0c4e(0x293)],K=(_0x40f9bc,_0x48cba5,_0x199f22)=>_0x48cba5 in _0x40f9bc?J(_0x40f9bc,_0x48cba5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x199f22}):_0x40f9bc[_0x48cba5]=_0x199f22,u=(_0x6a6a02,_0x14be30,_0x325189)=>K(_0x6a6a02,typeof _0x14be30!=_0xce0c4e(0x21c)?_0x14be30+'':_0x14be30,_0x325189);import{Disposable as _0x391c50,toDisposable as _0x5ec987,IUniverInstanceService as _0x5d85e7,Inject as _0x2de6b4,Injector as _0x173c5e,IConfigService as _0x34266a,ICommandService as _0x492717,RxDisposable as _0x40c917,UniverInstanceType as _0x324c39,DisposableCollection as _0x321e9e,CommandType as _0x7e8bcb,DependentOn as _0x390b52,Plugin as _0x3d5c76,merge as _0x1325bb,registerDependencies as _0x256053,mergeOverrideWithDependencies as _0x4c1cfa,touchDependencies as _0x39d7eb}from'@univerjs/core';import{useDependency as _0x14182f,useObservable as _0x55b771,IUIPartsService as _0x48a06c,BuiltInUIPart as _0x7e38cc,connectInjector as _0x593ae2}from'@univerjs/ui';import{jsx as _0x481bab,jsxs as _0x3e4308,Fragment as _0x2de7e1}from'react/jsx-runtime';import{Dropdown as _0x42bb87,clsx as _0xfbc3dd,Button as _0x273271}from'@univerjs/design';import{useRef as _0x102f92,createElement as _0x8d6eeb,forwardRef as _0x435347,useState as _0x2b36ac,useEffect as _0xcd52bb}from'react';import{CollaborationEvent as _0x1dbbdf,parseProtocolChangeset as _0x212e49}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x5f546f,SessionStatus as _0x4ce167,UniverCollaborationClientPlugin as _0x11e9df}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3128b0,SetWorksheetActiveOperation as _0x31ae4e}from'@univerjs/sheets';import{BehaviorSubject as _0x1067bc,Subject as _0x23ea99}from'rxjs';import{takeUntil as _0x35683e,throttleTime as _0x3198dc}from'rxjs/operators';import{SetZoomRatioOperation as _0x8a3ff8,SetScrollOperation as _0x3dbd75}from'@univerjs/sheets-ui';function k({ref:_0x436ded,..._0x52490d}){const _0x208345=_0xce0c4e,{icon:_0x1e4f7b,id:_0x5ae976,className:_0x54e6ec,extend:_0x3562b3,..._0x41f5c2}=_0x52490d,_0x57da8b=(_0x208345(0x212)+_0x5ae976+'\x20'+(_0x54e6ec||''))['trim'](),_0x21ebea=_0x102f92('_'+Oe());return G(_0x1e4f7b,''+_0x5ae976,{'defIds':_0x1e4f7b[_0x208345(0x1f1)],'idSuffix':_0x21ebea[_0x208345(0x258)]},{'ref':_0x436ded,'className':_0x57da8b,..._0x41f5c2},_0x3562b3);}function G(_0x43b6b6,_0x1b7e63,_0x1e6617,_0x197ffe,_0x3360e4){const _0x4b6cfb=_0xce0c4e;return _0x8d6eeb(_0x43b6b6[_0x4b6cfb(0x233)],{'key':_0x1b7e63,...be(_0x43b6b6,_0x1e6617,_0x3360e4),..._0x197ffe},(Ee(_0x43b6b6,_0x1e6617)['children']||[])[_0x4b6cfb(0x269)]((_0x53d93b,_0x1c370b)=>G(_0x53d93b,_0x1b7e63+'-'+_0x43b6b6[_0x4b6cfb(0x233)]+'-'+_0x1c370b,_0x1e6617,void 0x0,_0x3360e4)));}function be(_0x4f1854,_0x589f60,_0x301dbe){const _0x5ae272=_0xce0c4e,_0x595744={..._0x4f1854[_0x5ae272(0x203)]};_0x301dbe!=null&&_0x301dbe[_0x5ae272(0x1f5)]&&_0x595744[_0x5ae272(0x1f7)]==='colorChannel1'&&(_0x595744[_0x5ae272(0x1f7)]=_0x301dbe[_0x5ae272(0x1f5)]),_0x4f1854[_0x5ae272(0x233)]==='mask'&&_0x595744['id']&&(_0x595744['id']=_0x595744['id']+_0x589f60[_0x5ae272(0x245)]),Object['entries'](_0x595744)[_0x5ae272(0x25f)](([_0xaee3b6,_0x48844f])=>{const _0x2287d3=_0x5ae272;_0xaee3b6===_0x2287d3(0x20f)&&typeof _0x48844f==_0x2287d3(0x211)&&(_0x595744[_0xaee3b6]=_0x48844f['replace'](/url\(#(.*)\)/,_0x2287d3(0x26b)+_0x589f60[_0x2287d3(0x245)]+')'));});const {defIds:_0x20aad5}=_0x589f60;return!_0x20aad5||_0x20aad5[_0x5ae272(0x22f)]===0x0||(_0x4f1854[_0x5ae272(0x233)]==='use'&&_0x595744[_0x5ae272(0x1f6)]&&(_0x595744[_0x5ae272(0x1f6)]=_0x595744[_0x5ae272(0x1f6)]+_0x589f60[_0x5ae272(0x245)]),Object[_0x5ae272(0x27f)](_0x595744)[_0x5ae272(0x25f)](([_0x4feddd,_0x40d1fa])=>{const _0x1f2e2f=_0x5ae272;typeof _0x40d1fa==_0x1f2e2f(0x211)&&(_0x595744[_0x4feddd]=_0x40d1fa['replace'](/url\(#(.*)\)/,_0x1f2e2f(0x26b)+_0x589f60[_0x1f2e2f(0x245)]+')'));})),_0x595744;}function Ee(_0x51048f,_0x5ea9a5){const _0x46795e=_0xce0c4e;var _0x169604;const {defIds:_0x5e82aa}=_0x5ea9a5;return!_0x5e82aa||_0x5e82aa[_0x46795e(0x22f)]===0x0?_0x51048f:_0x51048f[_0x46795e(0x233)]===_0x46795e(0x267)&&((_0x169604=_0x51048f[_0x46795e(0x256)])!=null&&_0x169604[_0x46795e(0x22f)])?{..._0x51048f,'children':_0x51048f[_0x46795e(0x256)]['map'](_0x425a7f=>typeof _0x425a7f[_0x46795e(0x203)]['id']==_0x46795e(0x211)&&_0x5e82aa&&_0x5e82aa[_0x46795e(0x286)](_0x425a7f[_0x46795e(0x203)]['id'])?{..._0x425a7f,'attrs':{..._0x425a7f[_0x46795e(0x203)],'id':_0x425a7f[_0x46795e(0x203)]['id']+_0x5ea9a5[_0x46795e(0x245)]}}:_0x425a7f)}:_0x51048f;}function Oe(){const _0x2bca86=_0xce0c4e;return Math[_0x2bca86(0x26a)]()[_0x2bca86(0x1f4)](0x24)[_0x2bca86(0x26e)](0x2,0x8);}k['displayName']=_0xce0c4e(0x1fd);const we={'tag':_0xce0c4e(0x290),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0xce0c4e(0x239),'width':_0xce0c4e(0x281),'height':_0xce0c4e(0x281)},'children':[{'tag':_0xce0c4e(0x216),'attrs':{'fill':'currentColor','d':_0xce0c4e(0x205)}},{'tag':_0xce0c4e(0x216),'attrs':{'fill':_0xce0c4e(0x24f),'d':_0xce0c4e(0x280),'fillRule':_0xce0c4e(0x289),'clipRule':_0xce0c4e(0x289)}}]},W=_0x435347(function(_0x5b9697,_0x2d0f81){const _0x54a022=_0xce0c4e;return _0x8d6eeb(k,Object[_0x54a022(0x215)]({},_0x5b9697,{'id':_0x54a022(0x1fe),'ref':_0x2d0f81,'icon':we}));});W[_0xce0c4e(0x21b)]=_0xce0c4e(0x247);class L extends _0x391c50{constructor(){super(...arguments),u(this,'_sharedOperations',new Set()),u(this,'_reporters',new Set());}[_0xce0c4e(0x217)](_0x35addc){const _0x44ba50=_0xce0c4e;return this[_0x44ba50(0x27e)][_0x44ba50(0x285)](_0x35addc),_0x5ec987(()=>this[_0x44ba50(0x27e)][_0x44ba50(0x20b)](_0x35addc));}['registerInitialStateReporter'](_0x3f82e2){const _0x2b95e1=_0xce0c4e;return this['_reporters'][_0x2b95e1(0x285)](_0x3f82e2),_0x5ec987(()=>this['_reporters'][_0x2b95e1(0x20b)](_0x3f82e2));}['shouldShareOperation'](_0x1ca1d6){const _0x3ec09f=_0xce0c4e;return this[_0x3ec09f(0x27e)]['has'](_0x1ca1d6);}[_0xce0c4e(0x259)](_0x49e45e){const _0x333491=_0xce0c4e;return Array['from'](this[_0x333491(0x266)])[_0x333491(0x269)](_0x293b6d=>_0x293b6d(_0x49e45e));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0x22614b,_0x29a179,_0x5f4f45,_0x5031aa)=>{const _0x4f68b0=_0xce0c4e;for(var _0x2cb755=_0x5031aa>0x1?void 0x0:_0x5031aa?Ne(_0x29a179,_0x5f4f45):_0x29a179,_0xfe0e80=_0x22614b[_0x4f68b0(0x22f)]-0x1,_0x40abe9;_0xfe0e80>=0x0;_0xfe0e80--)(_0x40abe9=_0x22614b[_0xfe0e80])&&(_0x2cb755=_0x40abe9(_0x2cb755)||_0x2cb755);return _0x2cb755;},_=(_0x25297a,_0x53b15f)=>(_0x43aafc,_0x8f1802)=>_0x53b15f(_0x43aafc,_0x8f1802,_0x25297a);let S=class extends _0x40c917{constructor(_0x1e6ffa,_0x4898d9,_0x478819){const _0x46b185=_0xce0c4e;super(),u(this,'_entities',new Map()),(this[_0x46b185(0x22b)]=_0x1e6ffa,this[_0x46b185(0x265)]=_0x4898d9,this[_0x46b185(0x25b)]=_0x478819,this[_0x46b185(0x251)]());}async[_0xce0c4e(0x248)](_0x5ecb6e){const _0x4609f8=_0xce0c4e;return this[_0x4609f8(0x252)][_0x4609f8(0x25c)](_0x5ecb6e)||await this[_0x4609f8(0x20c)](_0x5ecb6e),this['_entities']['get'](_0x5ecb6e);}[_0xce0c4e(0x26f)](_0x3a924c){const _0x379183=_0xce0c4e;var _0xe039cb;return(_0xe039cb=this['_entities'][_0x379183(0x229)](_0x3a924c))!=null?_0xe039cb:null;}[_0xce0c4e(0x251)](){const _0x4e9e79=_0xce0c4e;this[_0x4e9e79(0x22b)][_0x4e9e79(0x292)](_0x324c39[_0x4e9e79(0x282)])[_0x4e9e79(0x231)](_0x35683e(this['dispose$']))[_0x4e9e79(0x257)](async _0x41b75f=>{const _0x44c076=_0x4e9e79,_0x46fd50=_0x41b75f[_0x44c076(0x28f)]();this['_entities'][_0x44c076(0x25c)](_0x46fd50)||this['_startLiveShareCoordinator'](_0x46fd50);}),this['_univerInstanceService'][_0x4e9e79(0x1fa)](_0x324c39[_0x4e9e79(0x282)])[_0x4e9e79(0x231)](_0x35683e(this['dispose$']))[_0x4e9e79(0x257)](_0x1e5e41=>{const _0x3d2d42=_0x4e9e79,_0x35d6b9=_0x1e5e41['getUnitId'](),_0x288be8=this[_0x3d2d42(0x252)][_0x3d2d42(0x229)](_0x35d6b9);_0x288be8==null||_0x288be8[_0x3d2d42(0x264)]();});}async[_0xce0c4e(0x20c)](_0x3fafbb){const _0x49a410=_0xce0c4e,_0x1b9cfa=await this[_0x49a410(0x25b)][_0x49a410(0x204)](_0x3fafbb),_0xa9cfe5=this['_injector']['createInstance'](N,_0x3fafbb,_0x1b9cfa);return _0xa9cfe5[_0x49a410(0x22e)](),this[_0x49a410(0x252)][_0x49a410(0x237)](_0x3fafbb,_0xa9cfe5),_0xa9cfe5;}};S=Y([_(0x0,_0x5d85e7),_(0x1,_0x2de6b4(_0x173c5e)),_(0x2,_0x2de6b4(_0x5f546f))],S);var c=(_0x4db93e=>(_0x4db93e[_0xce0c4e(0x24b)]=_0xce0c4e(0x27a),_0x4db93e[_0xce0c4e(0x1fb)]='idle',_0x4db93e[_0xce0c4e(0x243)]=_0xce0c4e(0x206),_0x4db93e[_0xce0c4e(0x28a)]=_0xce0c4e(0x270),_0x4db93e[_0xce0c4e(0x287)]=_0xce0c4e(0x223),_0x4db93e))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x40c917{constructor(_0x2a6d5a,_0x562900,_0x3b1705,_0x52bdd,_0x3eb702){const _0x257eb4=_0xce0c4e;super(),u(this,'_status$',new _0x1067bc(_0x257eb4(0x255))),u(this,_0x257eb4(0x221),this[_0x257eb4(0x214)][_0x257eb4(0x284)]()),u(this,_0x257eb4(0x251),!0x1),u(this,_0x257eb4(0x228),null),u(this,_0x257eb4(0x1f8),null),(this[_0x257eb4(0x1f9)]=_0x2a6d5a,this[_0x257eb4(0x21a)]=_0x562900,this[_0x257eb4(0x294)]=_0x3b1705,this[_0x257eb4(0x240)]=_0x52bdd,this[_0x257eb4(0x296)]=_0x3eb702);}get[_0xce0c4e(0x235)](){const _0x4f205e=_0xce0c4e;return this[_0x4f205e(0x214)]['getValue']();}[_0xce0c4e(0x264)](){const _0x990a07=_0xce0c4e;var _0x342f14;(_0x342f14=this[_0x990a07(0x228)])==null||_0x342f14['dispose'](),this[_0x990a07(0x214)][_0x990a07(0x253)]('idle'),this[_0x990a07(0x214)][_0x990a07(0x207)]();}[_0xce0c4e(0x23f)](){return this['_status'];}[_0xce0c4e(0x22e)](){const _0x2ce3c1=_0xce0c4e;this[_0x2ce3c1(0x251)]||(this[_0x2ce3c1(0x251)]=!0x0,this[_0x2ce3c1(0x21a)][_0x2ce3c1(0x27c)][_0x2ce3c1(0x231)](_0x35683e(this[_0x2ce3c1(0x26c)]))['subscribe'](_0xa9bbbc=>{const _0x1b3b2c=_0x2ce3c1;switch(_0xa9bbbc){case _0x4ce167['OFFLINE']:this[_0x1b3b2c(0x263)]();break;case _0x4ce167['ONLINE']:this['_handleOnline']();break;}}),this['_collabSession'][_0x2ce3c1(0x1ef)][_0x2ce3c1(0x231)](_0x35683e(this['dispose$']))[_0x2ce3c1(0x257)](_0x2625d5=>{const _0x6926e0=_0x2ce3c1,{eventID:_0x12bc56}=_0x2625d5;switch(_0x12bc56){case _0x1dbbdf[_0x6926e0(0x241)]:this[_0x6926e0(0x24d)](_0x2625d5);break;case _0x1dbbdf['LIVESHARE_OPERATION']:this['_handleOperation'](_0x2625d5);break;case _0x1dbbdf['LIVESHARE_TERMINATE']:this[_0x6926e0(0x28d)]();break;case _0x1dbbdf[_0x6926e0(0x1f2)]:this[_0x6926e0(0x1f0)](_0x2625d5);break;}}));}[_0xce0c4e(0x262)](){const _0x4c045a=_0xce0c4e;this[_0x4c045a(0x21a)]['send']({'eventID':_0x1dbbdf[_0x4c045a(0x298)],'data':{'unitID':this[_0x4c045a(0x1f9)],'userID':this[_0x4c045a(0x21a)][_0x4c045a(0x227)]()}},this[_0x4c045a(0x1f9)]);}[_0xce0c4e(0x200)](){const _0xeeff73=_0xce0c4e;this['_status']===_0xeeff73(0x223)&&(this[_0xeeff73(0x214)]['next'](_0xeeff73(0x255)),this[_0xeeff73(0x21a)][_0xeeff73(0x219)]({'eventID':_0x1dbbdf[_0xeeff73(0x254)],'data':{'unitID':this['_unitID']}},this[_0xeeff73(0x1f9)]));}[_0xce0c4e(0x249)](){const _0x3b3f07=_0xce0c4e;this[_0x3b3f07(0x235)]===_0x3b3f07(0x270)&&(this['_status$'][_0x3b3f07(0x253)](_0x3b3f07(0x206)),this[_0x3b3f07(0x250)]());}[_0xce0c4e(0x1ee)](){const _0x421191=_0xce0c4e;this[_0x421191(0x235)]==='following'&&this[_0x421191(0x230)]();}[_0xce0c4e(0x24d)](_0x5950f4){const _0x44a3c5=_0xce0c4e,{presenter:_0x4e893b}=_0x5950f4[_0x44a3c5(0x28b)],_0x37a714=this['_collabSession'][_0x44a3c5(0x227)]();this[_0x44a3c5(0x1f8)]=_0x4e893b,_0x4e893b===_0x37a714?(this[_0x44a3c5(0x230)](),this[_0x44a3c5(0x299)]()):this[_0x44a3c5(0x235)]!=='not-following'&&(this[_0x44a3c5(0x225)](),this[_0x44a3c5(0x250)]());}[_0xce0c4e(0x275)](){const _0x462170=_0xce0c4e,_0x348a09={'eventID':_0x1dbbdf[_0x462170(0x260)]};this[_0x462170(0x21a)][_0x462170(0x219)](_0x348a09,this[_0x462170(0x1f9)]);}[_0xce0c4e(0x28d)](){const _0x11eb75=_0xce0c4e;this['_presenter']=null,this[_0x11eb75(0x235)]!=='presenting'&&this[_0x11eb75(0x22c)]();}[_0xce0c4e(0x1f0)](_0x184626){const _0x500f31=_0xce0c4e;if(this[_0x500f31(0x235)]===_0x500f31(0x206)&&this[_0x500f31(0x1f8)]===_0x184626[_0x500f31(0x28b)][_0x500f31(0x27b)]){const _0x341823=_0x212e49(_0x184626[_0x500f31(0x28b)])[_0x500f31(0x28e)][_0x500f31(0x224)]()[_0x500f31(0x201)](_0x54bf4b=>_0x54bf4b['id']===_0x3128b0['id']);if(_0x341823){const _0x2961a7=_0x341823[_0x500f31(0x24c)][_0x500f31(0x222)],_0x403445=_0x341823['params'][_0x500f31(0x242)]['id'];setTimeout(()=>{const _0x5f21d2=_0x500f31;this[_0x5f21d2(0x296)][_0x5f21d2(0x283)](_0x31ae4e['id'],{'unitId':_0x2961a7,'subUnitId':_0x403445},{'fromCollab':!0x0});});}}}[_0xce0c4e(0x299)](){const _0x4fc005=_0xce0c4e;this[_0x4fc005(0x214)][_0x4fc005(0x253)](_0x4fc005(0x223));const _0x17c6bf=new Map(),_0x4218a5=this[_0x4fc005(0x228)]=new _0x321e9e();_0x4218a5[_0x4fc005(0x285)](_0x5ec987(()=>{const _0x736a9c=_0x4fc005;_0x17c6bf[_0x736a9c(0x25f)](_0x50e675=>_0x50e675['complete']()),_0x17c6bf[_0x736a9c(0x218)]();})),_0x4218a5[_0x4fc005(0x285)](this['_commandService'][_0x4fc005(0x22d)](_0x1247f5=>{const _0x3521e5=_0x4fc005;var _0x8188a2;if(_0x1247f5[_0x3521e5(0x202)]!==_0x7e8bcb[_0x3521e5(0x23d)]||!this[_0x3521e5(0x240)][_0x3521e5(0x276)](_0x1247f5['id']))return;const {id:_0x21d929}=_0x1247f5;let _0x54547c;_0x17c6bf['has'](_0x21d929)?_0x54547c=_0x17c6bf['get'](_0x21d929):(_0x54547c=new _0x23ea99(),_0x17c6bf['set'](_0x21d929,_0x54547c),_0x54547c[_0x3521e5(0x231)](_0x3198dc((_0x8188a2=this['_configService']['getConfig'](Ce))!=null?_0x8188a2:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3521e5(0x257)](_0x1bb3ad=>{const _0x16196a=_0x3521e5;this['_collabSession'][_0x16196a(0x219)]({'eventID':_0x1dbbdf[_0x16196a(0x25e)],'data':{'unitID':this[_0x16196a(0x1f9)],'operations':{[_0x1bb3ad['id']]:{'id':_0x1bb3ad['id'],'params':JSON['stringify'](_0x1bb3ad['params'])}}}},this[_0x16196a(0x1f9)]);})),_0x54547c[_0x3521e5(0x253)](_0x1247f5);})),this['_liveShareService'][_0x4fc005(0x259)](this[_0x4fc005(0x1f9)])['forEach'](_0x1a5477=>this[_0x4fc005(0x21a)][_0x4fc005(0x219)]({'eventID':_0x1dbbdf[_0x4fc005(0x25e)],'data':{'unitID':this[_0x4fc005(0x1f9)],'operations':{[_0x1a5477['id']]:{'id':_0x1a5477['id'],'params':JSON[_0x4fc005(0x234)](_0x1a5477[_0x4fc005(0x24c)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x4ca804=_0xce0c4e;var _0x3aa452;this[_0x4ca804(0x214)]['next']('idle'),(_0x3aa452=this[_0x4ca804(0x228)])==null||_0x3aa452[_0x4ca804(0x264)](),this[_0x4ca804(0x228)]=null;}[_0xce0c4e(0x250)](){const _0x256c91=_0xce0c4e;var _0x168045;(_0x168045=this[_0x256c91(0x228)])==null||_0x168045[_0x256c91(0x264)](),this[_0x256c91(0x214)][_0x256c91(0x253)](_0x256c91(0x206));}[_0xce0c4e(0x22c)](){const _0x55dd65=_0xce0c4e;var _0x1e7fd1;this[_0x55dd65(0x214)][_0x55dd65(0x253)](_0x55dd65(0x255)),(_0x1e7fd1=this[_0x55dd65(0x228)])==null||_0x1e7fd1[_0x55dd65(0x264)](),this[_0x55dd65(0x228)]=null;}[_0xce0c4e(0x230)](){const _0x4b08d4=_0xce0c4e;var _0x10ed26;this[_0x4b08d4(0x214)][_0x4b08d4(0x253)](_0x4b08d4(0x270)),(_0x10ed26=this[_0x4b08d4(0x228)])==null||_0x10ed26[_0x4b08d4(0x264)]();}[_0xce0c4e(0x25d)](_0x487a88){const _0x56b99e=_0xce0c4e;if([_0x56b99e(0x223),'not-following',_0x56b99e(0x27a)][_0x56b99e(0x286)](this[_0x56b99e(0x235)])||!_0x487a88[_0x56b99e(0x28b)][_0x56b99e(0x1f3)]||_0x487a88['data'][_0x56b99e(0x1f3)]===this[_0x56b99e(0x21a)][_0x56b99e(0x227)]())return;this[_0x56b99e(0x235)]===_0x56b99e(0x255)&&this[_0x56b99e(0x250)]();const _0x38b0ce=_0x487a88[_0x56b99e(0x28b)][_0x56b99e(0x261)];Object['values'](_0x38b0ce)[_0x56b99e(0x25f)](_0x9d02a2=>{const _0x32716d=_0x56b99e;this[_0x32716d(0x296)][_0x32716d(0x283)](_0x9d02a2['id'],_0x9d02a2[_0x32716d(0x24c)]?JSON[_0x32716d(0x27d)](_0x9d02a2[_0x32716d(0x24c)]):null,{'fromCollab':!0x0});});}[_0xce0c4e(0x263)](){const _0x31741e=_0xce0c4e;var _0x366ca6;this[_0x31741e(0x214)][_0x31741e(0x253)]('offline'),(_0x366ca6=this[_0x31741e(0x228)])==null||_0x366ca6[_0x31741e(0x264)]();}[_0xce0c4e(0x208)](){const _0x141ef4=_0xce0c4e;this[_0x141ef4(0x214)][_0x141ef4(0x253)](_0x141ef4(0x255)),this[_0x141ef4(0x275)]();}};N=Y([_(0x2,_0x34266a),_(0x3,_0x2de6b4(L)),_(0x4,_0x492717)],N);function _0x53c8(_0x1b914a,_0x237a83){_0x1b914a=_0x1b914a-0x1ee;const _0x1f6949=_0x1f69();let _0x53c8fe=_0x1f6949[_0x1b914a];return _0x53c8fe;}function _0x1f69(){const _0x3e2fd0=['stopPresenting','find','type','attrs','requireSession','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','following','complete','_handleOnline','registerComponent','Stop\x20following','delete','_startLiveShareCoordinator','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','You\x27re\x20not\x20following\x20the\x20presenter','mask','5044cFXqSi','string','univerjs-icon\x20univerjs-icon-','24qiAloX','_status$','assign','path','registerSharedOperation','clear','send','_collabSession','displayName','symbol','You\x27are\x20offline.','249127FSwmiI','HEADER_MENU','735015lRlZAb','status$','unitId','presenting','reverse','_stopPresenting','univer-size-4','getMemberID','_commandDisposable','get','Stop\x20presenting','_univerInstanceService','_beIdle','onCommandExecuted','init','length','_stopFollowing','pipe','2148aVGnRU','tag','stringify','_status','104172JvKqKv','set','div','0\x200\x2017\x2017','univer-mb-3\x20univer-w-full\x20univer-text-sm','unsubscribe','_uiPartsService','OPERATION','1966878BDeLDF','getStatus','_liveShareService','LIVESHARE_NEW_HOST','sheet','FOLLOWING','button','idSuffix','_mountLiveShare','LiveShareIcon','getLiveShareCoordinator','startFollowing','You\x27re\x20following\x20the\x20presenter','OFFLINE','params','_handleNewHost','11pGiyQv','currentColor','_startFollowing','_init','_entities','next','LIVESHARE_TERMINATE','idle','children','subscribe','current','getInitialStates','2DyIpIt','_collabSessionService','has','_handleOperation','LIVESHARE_OPERATION','forEach','LIVESHARE_FETCH_OPERATIONS','operations','tryStartPresenting','_handleOffline','dispose','_injector','_reporters','defs','live-share.config','map','random','url(#$1','dispose$','3yeAAqR','substring','getLiveShareCoordinatorSync','not-following','4808EMpFng','onRendered','pluginName','text','_fetchOperations','shouldShareOperation','917OFHyuO','_config','end','offline','memberID','sessionStatus$','parse','_sharedOperations','entries','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','1em','UNIVER_SHEET','executeCommand','asObservable','add','includes','PRESENTING','Start','evenodd','NOT_FOLLOWING','data','onStarting','_handleTerminate','mutations','getUnitId','svg','Start\x20following','getTypeOfUnitAdded$','defineProperty','_configService','getOwnPropertyDescriptor','_commandService','UNIVER_UNKNOWN','LIVESHARE_REQUEST_HOST','_startPresenting','stopFollowing','event$','_handleNewChangeSets','defIds','NEW_CHANGESETS','presenter','toString','colorChannel1','xlink:href','fill','_presenter','_unitID','getTypeOfUnitDisposed$','IDLE','4942090qJtcCB','UniverIcon','live-share-icon','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'];_0x1f69=function(){return _0x3e2fd0;};return _0x1f69();}function Le(){const _0x834dbc=_0xce0c4e,_0x4851cc=_0x14182f(S),_0x242046=_0x14182f(_0x5d85e7),_0x366b30=_0x55b771(()=>_0x242046['getCurrentTypeOfUnit$'](_0x324c39[_0x834dbc(0x282)]),void 0x0,!0x1,[]),[_0x358073,_0x5e9410]=_0x2b36ac(null),[_0x93b40e,_0x1d3a15]=_0x2b36ac(c['IDLE']),_0x273b6a=_0x102f92(null);return _0xcd52bb(()=>(_0x366b30&&_0x4851cc[_0x834dbc(0x248)](_0x366b30[_0x834dbc(0x28f)]())['then'](_0x5a6acf=>{const _0x3f1d68=_0x834dbc;_0x5e9410(_0x5a6acf),_0x273b6a[_0x3f1d68(0x258)]=_0x5a6acf['status$']['subscribe'](_0x2e3505=>{_0x1d3a15(_0x2e3505);});}),()=>{const _0x5aa97b=_0x834dbc;var _0x1a4438;(_0x1a4438=_0x273b6a[_0x5aa97b(0x258)])==null||_0x1a4438[_0x5aa97b(0x23b)](),_0x273b6a[_0x5aa97b(0x258)]=null;}),[_0x366b30,_0x4851cc]),_0x358073?_0x481bab(_0x42bb87,{'align':_0x834dbc(0x279),'disabled':_0x93b40e===c[_0x834dbc(0x24b)],'className':_0x834dbc(0x1ff),'overlay':_0x481bab(Re,{'status':_0x93b40e,'coordinator':_0x358073}),'children':_0x481bab(_0x834dbc(0x244),{'className':_0xfbc3dd(_0x834dbc(0x20d),{'univer-cursor-not-allowed':_0x93b40e===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x93b40e!==c[_0x834dbc(0x24b)]}),'type':_0x834dbc(0x244),'children':_0x481bab(W,{'className':_0x834dbc(0x226)})})}):null;}function Re(_0x5b806d){const _0x45e4fa=_0xce0c4e,{status:_0x9c7ef7,coordinator:_0x12245e}=_0x5b806d;switch(_0x9c7ef7){case c[_0x45e4fa(0x1fb)]:return _0x481bab($e,{'coordinator':_0x12245e});case c['FOLLOWING']:return _0x481bab(xe,{'coordinator':_0x12245e});case c[_0x45e4fa(0x28a)]:return _0x481bab(Pe,{'coordinator':_0x12245e});case c[_0x45e4fa(0x24b)]:return _0x481bab(Te,{});case c[_0x45e4fa(0x287)]:return _0x481bab(Ae,{'coordinator':_0x12245e});default:return null;}}function $e(_0x203d2b){const _0x21cbd6=_0xce0c4e,{coordinator:_0x322113}=_0x203d2b;return _0x3e4308(_0x2de7e1,{'children':[_0x481bab(_0x21cbd6(0x238),{'className':_0x21cbd6(0x23a),'children':'Present\x20this\x20document'}),_0x481bab(_0x273271,{'onClick':()=>_0x322113[_0x21cbd6(0x262)](),'children':_0x21cbd6(0x288)})]});}function xe(_0x466ff9){const _0x295820=_0xce0c4e,{coordinator:_0x32e1f8}=_0x466ff9;return _0x3e4308(_0x2de7e1,{'children':[_0x481bab(_0x295820(0x238),{'className':_0x295820(0x23a),'children':_0x295820(0x24a)}),_0x481bab(_0x273271,{'onClick':()=>_0x32e1f8[_0x295820(0x1ee)](),'children':_0x295820(0x20a)})]});}function Pe(_0x1b18cd){const _0x46bf32=_0xce0c4e,{coordinator:_0x37026b}=_0x1b18cd;return _0x3e4308(_0x2de7e1,{'children':[_0x481bab(_0x46bf32(0x238),{'className':_0x46bf32(0x23a),'children':_0x46bf32(0x20e)}),_0x481bab(_0x273271,{'variant':_0x46bf32(0x274),'onClick':()=>_0x37026b['startFollowing'](),'children':_0x46bf32(0x291)})]});}function Ae(_0x15b1e1){const _0x1ed5d0=_0xce0c4e,{coordinator:_0x552ad5}=_0x15b1e1;return _0x3e4308(_0x2de7e1,{'children':[_0x481bab(_0x1ed5d0(0x238),{'className':_0x1ed5d0(0x23a),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x481bab(_0x273271,{'variant':'default','onClick':()=>_0x552ad5['stopPresenting'](),'children':_0x1ed5d0(0x22a)})]});}function Te(){const _0x23b940=_0xce0c4e;return _0x481bab(_0x2de7e1,{'children':_0x23b940(0x21d)});}var Fe=Object[_0xce0c4e(0x295)],He=(_0x61172e,_0x50f50d,_0x280557,_0x4f6339)=>{const _0x2fa336=_0xce0c4e;for(var _0x36443e=_0x4f6339>0x1?void 0x0:_0x4f6339?Fe(_0x50f50d,_0x280557):_0x50f50d,_0x3e6806=_0x61172e[_0x2fa336(0x22f)]-0x1,_0x12431d;_0x3e6806>=0x0;_0x3e6806--)(_0x12431d=_0x61172e[_0x3e6806])&&(_0x36443e=_0x12431d(_0x36443e)||_0x36443e);return _0x36443e;},A=(_0x2a0954,_0xe7d020)=>(_0x489cc4,_0x1db3bc)=>_0xe7d020(_0x489cc4,_0x1db3bc,_0x2a0954);let m=class extends _0x391c50{constructor(_0x6cdbcf,_0x312696){const _0x2736fb=_0xce0c4e;super(),this[_0x2736fb(0x265)]=_0x6cdbcf,this[_0x2736fb(0x23c)]=_0x312696,this[_0x2736fb(0x246)]();}['_mountLiveShare'](){const _0x3a3d28=_0xce0c4e;this['disposeWithMe'](this['_uiPartsService'][_0x3a3d28(0x209)](_0x7e38cc[_0x3a3d28(0x21f)],()=>_0x593ae2(Le,this[_0x3a3d28(0x265)])));}};m=He([A(0x0,_0x2de6b4(_0x173c5e)),A(0x1,_0x48a06c)],m);const ye=_0xce0c4e(0x268),T={};var Ue=Object[_0xce0c4e(0x295)],Ve=(_0x22e121,_0x2e3983,_0x4cf945,_0x3c4826)=>{const _0x4496fe=_0xce0c4e;for(var _0x15f34f=_0x3c4826>0x1?void 0x0:_0x3c4826?Ue(_0x2e3983,_0x4cf945):_0x2e3983,_0x2c5cf0=_0x22e121[_0x4496fe(0x22f)]-0x1,_0x814af5;_0x2c5cf0>=0x0;_0x2c5cf0--)(_0x814af5=_0x22e121[_0x2c5cf0])&&(_0x15f34f=_0x814af5(_0x15f34f)||_0x15f34f);return _0x15f34f;},je=(_0x50476d,_0x3a6e75)=>(_0xbe1020,_0x4055fd)=>_0x3a6e75(_0xbe1020,_0x4055fd,_0x50476d);let I=class extends _0x391c50{constructor(_0x338895){const _0x5d6169=_0xce0c4e;super(),this[_0x5d6169(0x240)]=_0x338895,this[_0x5d6169(0x251)]();}[_0xce0c4e(0x251)](){[_0x8a3ff8['id'],_0x3dbd75['id'],_0x31ae4e['id']]['forEach'](_0x8e7b5c=>{const _0x33631d=_0x53c8;this['disposeWithMe'](this[_0x33631d(0x240)]['registerSharedOperation'](_0x8e7b5c));});}};I=Ve([je(0x0,_0x2de6b4(L))],I);var Me=Object[_0xce0c4e(0x293)],ke=Object[_0xce0c4e(0x295)],Ge=(_0x142d9a,_0x1d3bee,_0x517a2d)=>_0x1d3bee in _0x142d9a?Me(_0x142d9a,_0x1d3bee,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x517a2d}):_0x142d9a[_0x1d3bee]=_0x517a2d,We=(_0x5d5d52,_0x48919b,_0x49dab9,_0x380cc0)=>{for(var _0x5defb0=_0x380cc0>0x1?void 0x0:_0x380cc0?ke(_0x48919b,_0x49dab9):_0x48919b,_0x9ed4bd=_0x5d5d52['length']-0x1,_0x382a61;_0x9ed4bd>=0x0;_0x9ed4bd--)(_0x382a61=_0x5d5d52[_0x9ed4bd])&&(_0x5defb0=_0x382a61(_0x5defb0)||_0x5defb0);return _0x5defb0;},F=(_0x156e0a,_0x3e960a)=>(_0x136a24,_0xe9c535)=>_0x3e960a(_0x136a24,_0xe9c535,_0x156e0a),B=(_0xf181c4,_0x661305,_0x1ffb38)=>Ge(_0xf181c4,typeof _0x661305!=_0xce0c4e(0x21c)?_0x661305+'':_0x661305,_0x1ffb38);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x3d5c76{constructor(_0x1c0333=T,_0x379dbb,_0x18b17d){const _0x450ba2=_0xce0c4e;super(),this[_0x450ba2(0x278)]=_0x1c0333,this[_0x450ba2(0x265)]=_0x379dbb,this['_configService']=_0x18b17d;const {..._0x52f487}=_0x1325bb({},T,this[_0x450ba2(0x278)]);this[_0x450ba2(0x294)]['setConfig'](ye,_0x52f487);}[_0xce0c4e(0x28c)](){const _0x155fae=_0xce0c4e;_0x256053(this['_injector'],_0x4c1cfa([[L],[S],[I],[m]],this['_config']['override'])),_0x39d7eb(this[_0x155fae(0x265)],[[I]]);}[_0xce0c4e(0x272)](){const _0x3c2c9a=_0xce0c4e;_0x39d7eb(this[_0x3c2c9a(0x265)],[[m]]);}};B(b,_0xce0c4e(0x202),_0x324c39[_0xce0c4e(0x297)]),B(b,_0xce0c4e(0x273),Ye),b=We([_0x390b52(_0x11e9df),F(0x1,_0x2de6b4(_0x173c5e)),F(0x2,_0x34266a)],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 _0x35a141=_0x4bee;(function(_0x2002c4,_0x309e85){const _0x567d73=_0x4bee,_0x48ba8c=_0x2002c4();while(!![]){try{const _0x3cdb95=parseInt(_0x567d73(0x132))/0x1+-parseInt(_0x567d73(0xcb))/0x2+parseInt(_0x567d73(0x119))/0x3+parseInt(_0x567d73(0x155))/0x4+parseInt(_0x567d73(0xc6))/0x5+parseInt(_0x567d73(0xfe))/0x6+-parseInt(_0x567d73(0x162))/0x7;if(_0x3cdb95===_0x309e85)break;else _0x48ba8c['push'](_0x48ba8c['shift']());}catch(_0x4f04d4){_0x48ba8c['push'](_0x48ba8c['shift']());}}}(_0x3907,0xce1f4));var J=Object[_0x35a141(0xe2)],K=(_0xc34165,_0x317ec8,_0x58d219)=>_0x317ec8 in _0xc34165?J(_0xc34165,_0x317ec8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58d219}):_0xc34165[_0x317ec8]=_0x58d219,u=(_0x55c068,_0x4d7157,_0x164d5a)=>K(_0x55c068,typeof _0x4d7157!=_0x35a141(0xc1)?_0x4d7157+'':_0x4d7157,_0x164d5a);import{Disposable as _0x2b7bf5,toDisposable as _0x188785,IUniverInstanceService as _0x53235a,Inject as _0x165c16,Injector as _0x30e964,IConfigService as _0xe5fba7,ICommandService as _0x57b8d2,RxDisposable as _0x4222af,UniverInstanceType as _0x40dc09,DisposableCollection as _0x3da815,CommandType as _0x1892f5,DependentOn as _0x43f26d,Plugin as _0x57f752,merge as _0x16aada,registerDependencies as _0xd8da1b,mergeOverrideWithDependencies as _0x109ea9,touchDependencies as _0xf181e2}from'@univerjs/core';import{useDependency as _0x24114a,useObservable as _0x37e545,IUIPartsService as _0x13d3ef,BuiltInUIPart as _0xb9814e,connectInjector as _0x23dc11}from'@univerjs/ui';import{jsx as _0x886542,jsxs as _0x27e2fc,Fragment as _0x4e4cd9}from'react/jsx-runtime';function _0x3907(){const _0x181f71=['getValue','getTypeOfUnitAdded$','idle','Start\x20following','_status$','getMemberID','length','_sharedOperations','PRESENTING','getLiveShareCoordinatorSync','set','defIds','939822gNzSGD','asObservable','_entities','presenter','_collabSession','override','0\x200\x2017\x2017','tag','evenodd','none','OFFLINE','_handleTerminate','presenting','delete','LiveShareIcon','http://www.w3.org/2000/svg','_fetchOperations','_commandService','idSuffix','You\x27re\x20following\x20the\x20presenter','ONLINE','Stop\x20presenting','offline','type','1em','replace','_reporters','trim','live-share.config','button','_collabSessionService','_beIdle','registerSharedOperation','_liveShareService','_handleNewHost','328692EbjBhn','find','then','_unitID','complete','_init','pipe','colorChannel1','data','_uiPartsService','You\x27re\x20not\x20following\x20the\x20presenter','univer-mb-3\x20univer-w-full\x20univer-text-sm','get','10521777EjLYSU','includes','FOLLOWING','_handleOffline','HEADER_MENU','init','getUnitId','event$','symbol','displayName','send','_configService','onCommandExecuted','7543015IGSkWw','substring','parse','_presenter','_status','2942062zPbRWD','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','NOT_FOLLOWING','not-following','stopPresenting','div','params','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','status$','_handleOnline','_stopFollowing','use','forEach','univerjs-icon\x20univerjs-icon-','Stop\x20following','_univerInstanceService','_config','_commandDisposable','string','stopFollowing','_startPresenting','_injector','text','defineProperty','currentColor','_mountLiveShare','IDLE','dispose$','startFollowing','Start','defs','has','xlink:href','_stopPresenting','getStatus','pluginName','You\x27are\x20offline.','onStarting','children','executeCommand','shouldShareOperation','mutations','_startFollowing','current','memberID','following','toString','dispose','attrs','getOwnPropertyDescriptor','getLiveShareCoordinator','3601728vJrCsG','getConfig','onRendered','random','disposeWithMe','default','LIVESHARE_OPERATION','_handleOperation','UniverIcon','next','reverse','sessionStatus$','getCurrentTypeOfUnit$','LIVESHARE_NEW_HOST','LIVESHARE_TERMINATE','NEW_CHANGESETS','tryStartPresenting','createInstance','entries','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','OPERATION','_startLiveShareCoordinator','assign','LIVESHARE_FETCH_OPERATIONS','url(#$1','mask','_handleNewChangeSets','2062596zRKmfl','path','map','add','UNIVER_SHEET','fill','Present\x20this\x20document','getInitialStates','stringify','subscribe','requireSession','svg','unsubscribe'];_0x3907=function(){return _0x181f71;};return _0x3907();}import{Dropdown as _0x152f1,clsx as _0x423a38,Button as _0xf38cce}from'@univerjs/design';import{useRef as _0x23045f,createElement as _0x1e3e45,forwardRef as _0x16942a,useState as _0x1c29a4,useEffect as _0x54e30b}from'react';import{CollaborationEvent as _0x19a841,parseProtocolChangeset as _0x2fa26d}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x40e095,SessionStatus as _0x3dc0be,UniverCollaborationClientPlugin as _0x166481}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5da965,SetWorksheetActiveOperation as _0x179248}from'@univerjs/sheets';import{BehaviorSubject as _0x10e087,Subject as _0x415407}from'rxjs';import{takeUntil as _0x323870,throttleTime as _0x5b155c}from'rxjs/operators';import{SetZoomRatioOperation as _0x8c84dc,SetScrollOperation as _0x28c155}from'@univerjs/sheets-ui';function k({ref:_0x2d9f70,..._0x212285}){const _0x16912b=_0x35a141,{icon:_0x3cb016,id:_0x57a1ef,className:_0x852509,extend:_0x596eb7,..._0xb8c9a4}=_0x212285,_0x15fd00=(_0x16912b(0xd8)+_0x57a1ef+'\x20'+(_0x852509||''))[_0x16912b(0x14d)](),_0x1b8a24=_0x23045f('_'+Oe());return G(_0x3cb016,''+_0x57a1ef,{'defIds':_0x3cb016[_0x16912b(0x131)],'idSuffix':_0x1b8a24['current']},{'ref':_0x2d9f70,'className':_0x15fd00,..._0xb8c9a4},_0x596eb7);}function _0x4bee(_0x379c51,_0x509ec0){_0x379c51=_0x379c51-0xc1;const _0x390784=_0x3907();let _0x4bee3a=_0x390784[_0x379c51];return _0x4bee3a;}function G(_0x5796ee,_0x2b8c31,_0x22fb0a,_0x4e6d80,_0x2b0c7e){const _0x20cd4d=_0x35a141;return _0x1e3e45(_0x5796ee[_0x20cd4d(0x139)],{'key':_0x2b8c31,...be(_0x5796ee,_0x22fb0a,_0x2b0c7e),..._0x4e6d80},(Ee(_0x5796ee,_0x22fb0a)[_0x20cd4d(0xf1)]||[])[_0x20cd4d(0x11b)]((_0x51fd3,_0x5a1799)=>G(_0x51fd3,_0x2b8c31+'-'+_0x5796ee['tag']+'-'+_0x5a1799,_0x22fb0a,void 0x0,_0x2b0c7e)));}function be(_0x320cdc,_0x2d181c,_0x299c85){const _0x2f5c20=_0x35a141,_0x3fe7e4={..._0x320cdc[_0x2f5c20(0xfb)]};_0x299c85!=null&&_0x299c85['colorChannel1']&&_0x3fe7e4[_0x2f5c20(0x11e)]===_0x2f5c20(0x15c)&&(_0x3fe7e4[_0x2f5c20(0x11e)]=_0x299c85[_0x2f5c20(0x15c)]),_0x320cdc[_0x2f5c20(0x139)]===_0x2f5c20(0x117)&&_0x3fe7e4['id']&&(_0x3fe7e4['id']=_0x3fe7e4['id']+_0x2d181c[_0x2f5c20(0x144)]),Object[_0x2f5c20(0x110)](_0x3fe7e4)[_0x2f5c20(0xd7)](([_0x21ceb4,_0x4cdfa2])=>{const _0x2f6a17=_0x2f5c20;_0x21ceb4==='mask'&&typeof _0x4cdfa2==_0x2f6a17(0xdd)&&(_0x3fe7e4[_0x21ceb4]=_0x4cdfa2[_0x2f6a17(0x14b)](/url\(#(.*)\)/,'url(#$1'+_0x2d181c['idSuffix']+')'));});const {defIds:_0x25ac31}=_0x2d181c;return!_0x25ac31||_0x25ac31['length']===0x0||(_0x320cdc[_0x2f5c20(0x139)]===_0x2f5c20(0xd6)&&_0x3fe7e4[_0x2f5c20(0xeb)]&&(_0x3fe7e4['xlink:href']=_0x3fe7e4[_0x2f5c20(0xeb)]+_0x2d181c[_0x2f5c20(0x144)]),Object[_0x2f5c20(0x110)](_0x3fe7e4)[_0x2f5c20(0xd7)](([_0x320c28,_0x481b3f])=>{const _0x3376b2=_0x2f5c20;typeof _0x481b3f=='string'&&(_0x3fe7e4[_0x320c28]=_0x481b3f[_0x3376b2(0x14b)](/url\(#(.*)\)/,_0x3376b2(0x116)+_0x2d181c[_0x3376b2(0x144)]+')'));})),_0x3fe7e4;}function Ee(_0x27452f,_0x20acd1){const _0x418da0=_0x35a141;var _0x2f0d28;const {defIds:_0x3d0b9a}=_0x20acd1;return!_0x3d0b9a||_0x3d0b9a[_0x418da0(0x12c)]===0x0?_0x27452f:_0x27452f[_0x418da0(0x139)]===_0x418da0(0xe9)&&((_0x2f0d28=_0x27452f[_0x418da0(0xf1)])!=null&&_0x2f0d28[_0x418da0(0x12c)])?{..._0x27452f,'children':_0x27452f[_0x418da0(0xf1)][_0x418da0(0x11b)](_0x3ccb5a=>typeof _0x3ccb5a[_0x418da0(0xfb)]['id']==_0x418da0(0xdd)&&_0x3d0b9a&&_0x3d0b9a['includes'](_0x3ccb5a['attrs']['id'])?{..._0x3ccb5a,'attrs':{..._0x3ccb5a[_0x418da0(0xfb)],'id':_0x3ccb5a[_0x418da0(0xfb)]['id']+_0x20acd1[_0x418da0(0x144)]}}:_0x3ccb5a)}:_0x27452f;}function Oe(){const _0xce9d7e=_0x35a141;return Math[_0xce9d7e(0x101)]()[_0xce9d7e(0xf9)](0x24)[_0xce9d7e(0xc7)](0x2,0x8);}k[_0x35a141(0xc2)]=_0x35a141(0x106);const we={'tag':_0x35a141(0x124),'attrs':{'xmlns':_0x35a141(0x141),'fill':_0x35a141(0x13b),'viewBox':_0x35a141(0x138),'width':_0x35a141(0x14a),'height':_0x35a141(0x14a)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x35a141(0xd2)}},{'tag':_0x35a141(0x11a),'attrs':{'fill':_0x35a141(0xe3),'d':_0x35a141(0xcc),'fillRule':_0x35a141(0x13a),'clipRule':_0x35a141(0x13a)}}]},W=_0x16942a(function(_0x3bca55,_0x497ff0){const _0x4d9417=_0x35a141;return _0x1e3e45(k,Object[_0x4d9417(0x114)]({},_0x3bca55,{'id':'live-share-icon','ref':_0x497ff0,'icon':we}));});W['displayName']=_0x35a141(0x140);class L extends _0x2b7bf5{constructor(){const _0x4f7e8c=_0x35a141;super(...arguments),u(this,_0x4f7e8c(0x12d),new Set()),u(this,_0x4f7e8c(0x14c),new Set());}['registerSharedOperation'](_0x58270a){const _0x342620=_0x35a141;return this[_0x342620(0x12d)][_0x342620(0x11c)](_0x58270a),_0x188785(()=>this[_0x342620(0x12d)][_0x342620(0x13f)](_0x58270a));}['registerInitialStateReporter'](_0xdf99a7){const _0xf960e5=_0x35a141;return this['_reporters'][_0xf960e5(0x11c)](_0xdf99a7),_0x188785(()=>this[_0xf960e5(0x14c)]['delete'](_0xdf99a7));}['shouldShareOperation'](_0x1a3da7){const _0x28a5be=_0x35a141;return this[_0x28a5be(0x12d)][_0x28a5be(0xea)](_0x1a3da7);}[_0x35a141(0x120)](_0x595e52){const _0x4d82b8=_0x35a141;return Array['from'](this[_0x4d82b8(0x14c)])[_0x4d82b8(0x11b)](_0x5ad1bc=>_0x5ad1bc(_0x595e52));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0x4094c7,_0x23a221,_0xe91801,_0xf15f4b)=>{for(var _0x1780c2=_0xf15f4b>0x1?void 0x0:_0xf15f4b?Ne(_0x23a221,_0xe91801):_0x23a221,_0x59cda5=_0x4094c7['length']-0x1,_0x18578d;_0x59cda5>=0x0;_0x59cda5--)(_0x18578d=_0x4094c7[_0x59cda5])&&(_0x1780c2=_0x18578d(_0x1780c2)||_0x1780c2);return _0x1780c2;},_=(_0x3f28c7,_0x4435d1)=>(_0xd66d1,_0x4fa6e7)=>_0x4435d1(_0xd66d1,_0x4fa6e7,_0x3f28c7);let S=class extends _0x4222af{constructor(_0x239162,_0x3459e4,_0x2e7205){const _0x3dbd29=_0x35a141;super(),u(this,_0x3dbd29(0x134),new Map()),(this[_0x3dbd29(0xda)]=_0x239162,this['_injector']=_0x3459e4,this[_0x3dbd29(0x150)]=_0x2e7205,this['_init']());}async[_0x35a141(0xfd)](_0x31568e){const _0x1b710e=_0x35a141;return this['_entities'][_0x1b710e(0xea)](_0x31568e)||await this['_startLiveShareCoordinator'](_0x31568e),this[_0x1b710e(0x134)][_0x1b710e(0x161)](_0x31568e);}[_0x35a141(0x12f)](_0x474fd8){var _0xa5b180;return(_0xa5b180=this['_entities']['get'](_0x474fd8))!=null?_0xa5b180:null;}[_0x35a141(0x15a)](){const _0x272608=_0x35a141;this[_0x272608(0xda)][_0x272608(0x127)](_0x40dc09[_0x272608(0x11d)])[_0x272608(0x15b)](_0x323870(this['dispose$']))[_0x272608(0x122)](async _0x72312a=>{const _0xb5550=_0x272608,_0x2c12cb=_0x72312a[_0xb5550(0x168)]();this['_entities'][_0xb5550(0xea)](_0x2c12cb)||this[_0xb5550(0x113)](_0x2c12cb);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x40dc09[_0x272608(0x11d)])['pipe'](_0x323870(this['dispose$']))['subscribe'](_0x6a7b53=>{const _0x59a395=_0x272608,_0x4ead53=_0x6a7b53['getUnitId'](),_0x45837b=this[_0x59a395(0x134)][_0x59a395(0x161)](_0x4ead53);_0x45837b==null||_0x45837b[_0x59a395(0xfa)]();});}async['_startLiveShareCoordinator'](_0x106302){const _0x11cf6e=_0x35a141,_0x392e73=await this[_0x11cf6e(0x150)][_0x11cf6e(0x123)](_0x106302),_0xd46928=this[_0x11cf6e(0xe0)][_0x11cf6e(0x10f)](N,_0x106302,_0x392e73);return _0xd46928[_0x11cf6e(0x167)](),this['_entities'][_0x11cf6e(0x130)](_0x106302,_0xd46928),_0xd46928;}};S=Y([_(0x0,_0x53235a),_(0x1,_0x165c16(_0x30e964)),_(0x2,_0x165c16(_0x40e095))],S);var c=(_0xc5f2ad=>(_0xc5f2ad[_0x35a141(0x13c)]=_0x35a141(0x148),_0xc5f2ad[_0x35a141(0xe5)]=_0x35a141(0x128),_0xc5f2ad['FOLLOWING']=_0x35a141(0xf8),_0xc5f2ad[_0x35a141(0xcd)]=_0x35a141(0xce),_0xc5f2ad[_0x35a141(0x12e)]=_0x35a141(0x13e),_0xc5f2ad))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x4222af{constructor(_0x198981,_0x396675,_0x4098de,_0x111e8d,_0x4c39df){const _0x4638c8=_0x35a141;super(),u(this,_0x4638c8(0x12a),new _0x10e087(_0x4638c8(0x128))),u(this,'status$',this[_0x4638c8(0x12a)][_0x4638c8(0x133)]()),u(this,_0x4638c8(0x15a),!0x1),u(this,_0x4638c8(0xdc),null),u(this,_0x4638c8(0xc9),null),(this[_0x4638c8(0x158)]=_0x198981,this[_0x4638c8(0x136)]=_0x396675,this[_0x4638c8(0xc4)]=_0x4098de,this[_0x4638c8(0x153)]=_0x111e8d,this[_0x4638c8(0x143)]=_0x4c39df);}get[_0x35a141(0xca)](){const _0xe1cf94=_0x35a141;return this[_0xe1cf94(0x12a)][_0xe1cf94(0x126)]();}['dispose'](){const _0x5ef359=_0x35a141;var _0xe1c3f9;(_0xe1c3f9=this[_0x5ef359(0xdc)])==null||_0xe1c3f9[_0x5ef359(0xfa)](),this[_0x5ef359(0x12a)][_0x5ef359(0x107)](_0x5ef359(0x128)),this[_0x5ef359(0x12a)][_0x5ef359(0x159)]();}[_0x35a141(0xed)](){return this['_status'];}[_0x35a141(0x167)](){const _0x96f874=_0x35a141;this[_0x96f874(0x15a)]||(this[_0x96f874(0x15a)]=!0x0,this[_0x96f874(0x136)][_0x96f874(0x109)][_0x96f874(0x15b)](_0x323870(this[_0x96f874(0xe6)]))[_0x96f874(0x122)](_0x3586b4=>{const _0x24f561=_0x96f874;switch(_0x3586b4){case _0x3dc0be[_0x24f561(0x13c)]:this['_handleOffline']();break;case _0x3dc0be[_0x24f561(0x146)]:this[_0x24f561(0xd4)]();break;}}),this['_collabSession'][_0x96f874(0x169)][_0x96f874(0x15b)](_0x323870(this[_0x96f874(0xe6)]))[_0x96f874(0x122)](_0x2eee4b=>{const _0x697291=_0x96f874,{eventID:_0x16199a}=_0x2eee4b;switch(_0x16199a){case _0x19a841[_0x697291(0x10b)]:this[_0x697291(0x154)](_0x2eee4b);break;case _0x19a841[_0x697291(0x104)]:this['_handleOperation'](_0x2eee4b);break;case _0x19a841[_0x697291(0x10c)]:this[_0x697291(0x13d)]();break;case _0x19a841[_0x697291(0x10d)]:this[_0x697291(0x118)](_0x2eee4b);break;}}));}[_0x35a141(0x10e)](){const _0x319641=_0x35a141;this[_0x319641(0x136)][_0x319641(0xc3)]({'eventID':_0x19a841['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x319641(0x158)],'userID':this['_collabSession']['getMemberID']()}},this[_0x319641(0x158)]);}[_0x35a141(0xcf)](){const _0x510a7f=_0x35a141;this[_0x510a7f(0xca)]===_0x510a7f(0x13e)&&(this['_status$'][_0x510a7f(0x107)](_0x510a7f(0x128)),this['_collabSession'][_0x510a7f(0xc3)]({'eventID':_0x19a841[_0x510a7f(0x10c)],'data':{'unitID':this[_0x510a7f(0x158)]}},this['_unitID']));}[_0x35a141(0xe7)](){const _0x141861=_0x35a141;this['_status']===_0x141861(0xce)&&(this[_0x141861(0x12a)][_0x141861(0x107)](_0x141861(0xf8)),this[_0x141861(0xf5)]());}[_0x35a141(0xde)](){const _0x46e753=_0x35a141;this[_0x46e753(0xca)]===_0x46e753(0xf8)&&this[_0x46e753(0xd5)]();}[_0x35a141(0x154)](_0xc39aab){const _0x10235f=_0x35a141,{presenter:_0x4867f5}=_0xc39aab[_0x10235f(0x15d)],_0x3c5478=this['_collabSession'][_0x10235f(0x12b)]();this['_presenter']=_0x4867f5,_0x4867f5===_0x3c5478?(this[_0x10235f(0xd5)](),this[_0x10235f(0xdf)]()):this['_status']!=='not-following'&&(this['_stopPresenting'](),this[_0x10235f(0xf5)]());}[_0x35a141(0x142)](){const _0x22dcbc=_0x35a141,_0x183924={'eventID':_0x19a841[_0x22dcbc(0x115)]};this['_collabSession'][_0x22dcbc(0xc3)](_0x183924,this[_0x22dcbc(0x158)]);}[_0x35a141(0x13d)](){const _0x56a686=_0x35a141;this[_0x56a686(0xc9)]=null,this[_0x56a686(0xca)]!==_0x56a686(0x13e)&&this['_beIdle']();}[_0x35a141(0x118)](_0x516e0e){const _0x4fbec5=_0x35a141;if(this[_0x4fbec5(0xca)]===_0x4fbec5(0xf8)&&this['_presenter']===_0x516e0e[_0x4fbec5(0x15d)][_0x4fbec5(0xf7)]){const _0x2a102f=_0x2fa26d(_0x516e0e['data'])[_0x4fbec5(0xf4)][_0x4fbec5(0x108)]()[_0x4fbec5(0x156)](_0x48f6ab=>_0x48f6ab['id']===_0x5da965['id']);if(_0x2a102f){const _0xc8f41d=_0x2a102f['params']['unitId'],_0x58f852=_0x2a102f['params']['sheet']['id'];setTimeout(()=>{const _0x22e260=_0x4fbec5;this[_0x22e260(0x143)][_0x22e260(0xf2)](_0x179248['id'],{'unitId':_0xc8f41d,'subUnitId':_0x58f852},{'fromCollab':!0x0});});}}}[_0x35a141(0xdf)](){const _0x251ac8=_0x35a141;this[_0x251ac8(0x12a)][_0x251ac8(0x107)](_0x251ac8(0x13e));const _0x53e37f=new Map(),_0x122914=this[_0x251ac8(0xdc)]=new _0x3da815();_0x122914[_0x251ac8(0x11c)](_0x188785(()=>{const _0x1be626=_0x251ac8;_0x53e37f[_0x1be626(0xd7)](_0x3e6467=>_0x3e6467[_0x1be626(0x159)]()),_0x53e37f['clear']();})),_0x122914[_0x251ac8(0x11c)](this[_0x251ac8(0x143)][_0x251ac8(0xc5)](_0x4a1ea2=>{const _0x5fe933=_0x251ac8;var _0x52cb58;if(_0x4a1ea2[_0x5fe933(0x149)]!==_0x1892f5[_0x5fe933(0x112)]||!this[_0x5fe933(0x153)][_0x5fe933(0xf3)](_0x4a1ea2['id']))return;const {id:_0x4fd80a}=_0x4a1ea2;let _0x41753e;_0x53e37f[_0x5fe933(0xea)](_0x4fd80a)?_0x41753e=_0x53e37f[_0x5fe933(0x161)](_0x4fd80a):(_0x41753e=new _0x415407(),_0x53e37f['set'](_0x4fd80a,_0x41753e),_0x41753e[_0x5fe933(0x15b)](_0x5b155c((_0x52cb58=this['_configService'][_0x5fe933(0xff)](Ce))!=null?_0x52cb58:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5fe933(0x122)](_0x32d65e=>{const _0x323cd9=_0x5fe933;this[_0x323cd9(0x136)]['send']({'eventID':_0x19a841[_0x323cd9(0x104)],'data':{'unitID':this[_0x323cd9(0x158)],'operations':{[_0x32d65e['id']]:{'id':_0x32d65e['id'],'params':JSON[_0x323cd9(0x121)](_0x32d65e['params'])}}}},this['_unitID']);})),_0x41753e['next'](_0x4a1ea2);})),this[_0x251ac8(0x153)][_0x251ac8(0x120)](this['_unitID'])['forEach'](_0x2151b6=>this[_0x251ac8(0x136)][_0x251ac8(0xc3)]({'eventID':_0x19a841['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x251ac8(0x158)],'operations':{[_0x2151b6['id']]:{'id':_0x2151b6['id'],'params':JSON[_0x251ac8(0x121)](_0x2151b6[_0x251ac8(0xd1)])}}}},this[_0x251ac8(0x158)]));}[_0x35a141(0xec)](){const _0x471466=_0x35a141;var _0x53f315;this['_status$'][_0x471466(0x107)](_0x471466(0x128)),(_0x53f315=this[_0x471466(0xdc)])==null||_0x53f315[_0x471466(0xfa)](),this['_commandDisposable']=null;}[_0x35a141(0xf5)](){const _0x30d43b=_0x35a141;var _0x2a9a54;(_0x2a9a54=this['_commandDisposable'])==null||_0x2a9a54[_0x30d43b(0xfa)](),this[_0x30d43b(0x12a)][_0x30d43b(0x107)](_0x30d43b(0xf8));}[_0x35a141(0x151)](){const _0x559ef9=_0x35a141;var _0x582f2f;this[_0x559ef9(0x12a)][_0x559ef9(0x107)](_0x559ef9(0x128)),(_0x582f2f=this[_0x559ef9(0xdc)])==null||_0x582f2f[_0x559ef9(0xfa)](),this[_0x559ef9(0xdc)]=null;}[_0x35a141(0xd5)](){const _0x220f8b=_0x35a141;var _0x518f54;this[_0x220f8b(0x12a)][_0x220f8b(0x107)](_0x220f8b(0xce)),(_0x518f54=this[_0x220f8b(0xdc)])==null||_0x518f54[_0x220f8b(0xfa)]();}[_0x35a141(0x105)](_0x15f687){const _0x25e92c=_0x35a141;if([_0x25e92c(0x13e),_0x25e92c(0xce),_0x25e92c(0x148)][_0x25e92c(0x163)](this['_status'])||!_0x15f687[_0x25e92c(0x15d)][_0x25e92c(0x135)]||_0x15f687['data'][_0x25e92c(0x135)]===this[_0x25e92c(0x136)][_0x25e92c(0x12b)]())return;this[_0x25e92c(0xca)]===_0x25e92c(0x128)&&this['_startFollowing']();const _0xc3a9f0=_0x15f687[_0x25e92c(0x15d)]['operations'];Object['values'](_0xc3a9f0)[_0x25e92c(0xd7)](_0x4f24a6=>{const _0x4862a7=_0x25e92c;this[_0x4862a7(0x143)][_0x4862a7(0xf2)](_0x4f24a6['id'],_0x4f24a6[_0x4862a7(0xd1)]?JSON[_0x4862a7(0xc8)](_0x4f24a6[_0x4862a7(0xd1)]):null,{'fromCollab':!0x0});});}[_0x35a141(0x165)](){const _0x2057b1=_0x35a141;var _0x37bbfb;this[_0x2057b1(0x12a)][_0x2057b1(0x107)](_0x2057b1(0x148)),(_0x37bbfb=this[_0x2057b1(0xdc)])==null||_0x37bbfb[_0x2057b1(0xfa)]();}[_0x35a141(0xd4)](){const _0x2e1dec=_0x35a141;this[_0x2e1dec(0x12a)]['next'](_0x2e1dec(0x128)),this[_0x2e1dec(0x142)]();}};N=Y([_(0x2,_0xe5fba7),_(0x3,_0x165c16(L)),_(0x4,_0x57b8d2)],N);function Le(){const _0x4ddfc0=_0x35a141,_0x3c3ef5=_0x24114a(S),_0x41a600=_0x24114a(_0x53235a),_0x9019b5=_0x37e545(()=>_0x41a600[_0x4ddfc0(0x10a)](_0x40dc09[_0x4ddfc0(0x11d)]),void 0x0,!0x1,[]),[_0x19d374,_0x1262a7]=_0x1c29a4(null),[_0x516060,_0x28cc4a]=_0x1c29a4(c[_0x4ddfc0(0xe5)]),_0x24c553=_0x23045f(null);return _0x54e30b(()=>(_0x9019b5&&_0x3c3ef5['getLiveShareCoordinator'](_0x9019b5['getUnitId']())[_0x4ddfc0(0x157)](_0x3a2727=>{const _0x4c3938=_0x4ddfc0;_0x1262a7(_0x3a2727),_0x24c553[_0x4c3938(0xf6)]=_0x3a2727[_0x4c3938(0xd3)]['subscribe'](_0x4e63b4=>{_0x28cc4a(_0x4e63b4);});}),()=>{const _0x5e4a34=_0x4ddfc0;var _0xa767bf;(_0xa767bf=_0x24c553[_0x5e4a34(0xf6)])==null||_0xa767bf[_0x5e4a34(0x125)](),_0x24c553[_0x5e4a34(0xf6)]=null;}),[_0x9019b5,_0x3c3ef5]),_0x19d374?_0x886542(_0x152f1,{'align':'end','disabled':_0x516060===c['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x886542(Re,{'status':_0x516060,'coordinator':_0x19d374}),'children':_0x886542('button',{'className':_0x423a38(_0x4ddfc0(0x111),{'univer-cursor-not-allowed':_0x516060===c[_0x4ddfc0(0x13c)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x516060!==c[_0x4ddfc0(0x13c)]}),'type':_0x4ddfc0(0x14f),'children':_0x886542(W,{'className':'univer-size-4'})})}):null;}function Re(_0x1d9a8e){const _0x461228=_0x35a141,{status:_0x8a12a1,coordinator:_0x3f4a13}=_0x1d9a8e;switch(_0x8a12a1){case c[_0x461228(0xe5)]:return _0x886542($e,{'coordinator':_0x3f4a13});case c[_0x461228(0x164)]:return _0x886542(xe,{'coordinator':_0x3f4a13});case c[_0x461228(0xcd)]:return _0x886542(Pe,{'coordinator':_0x3f4a13});case c[_0x461228(0x13c)]:return _0x886542(Te,{});case c[_0x461228(0x12e)]:return _0x886542(Ae,{'coordinator':_0x3f4a13});default:return null;}}function $e(_0xf675e){const _0x3d8ce4=_0x35a141,{coordinator:_0x53ba50}=_0xf675e;return _0x27e2fc(_0x4e4cd9,{'children':[_0x886542('div',{'className':_0x3d8ce4(0x160),'children':_0x3d8ce4(0x11f)}),_0x886542(_0xf38cce,{'onClick':()=>_0x53ba50[_0x3d8ce4(0x10e)](),'children':_0x3d8ce4(0xe8)})]});}function xe(_0x1c0226){const _0x207834=_0x35a141,{coordinator:_0x46490d}=_0x1c0226;return _0x27e2fc(_0x4e4cd9,{'children':[_0x886542(_0x207834(0xd0),{'className':_0x207834(0x160),'children':_0x207834(0x145)}),_0x886542(_0xf38cce,{'onClick':()=>_0x46490d[_0x207834(0xde)](),'children':_0x207834(0xd9)})]});}function Pe(_0x31ddb8){const _0x2cac44=_0x35a141,{coordinator:_0x46f68b}=_0x31ddb8;return _0x27e2fc(_0x4e4cd9,{'children':[_0x886542(_0x2cac44(0xd0),{'className':_0x2cac44(0x160),'children':_0x2cac44(0x15f)}),_0x886542(_0xf38cce,{'variant':_0x2cac44(0xe1),'onClick':()=>_0x46f68b[_0x2cac44(0xe7)](),'children':_0x2cac44(0x129)})]});}function Ae(_0x32dfa4){const _0x74bc2e=_0x35a141,{coordinator:_0x29010d}=_0x32dfa4;return _0x27e2fc(_0x4e4cd9,{'children':[_0x886542(_0x74bc2e(0xd0),{'className':_0x74bc2e(0x160),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x886542(_0xf38cce,{'variant':_0x74bc2e(0x103),'onClick':()=>_0x29010d[_0x74bc2e(0xcf)](),'children':_0x74bc2e(0x147)})]});}function Te(){const _0x3f68bc=_0x35a141;return _0x886542(_0x4e4cd9,{'children':_0x3f68bc(0xef)});}var Fe=Object[_0x35a141(0xfc)],He=(_0x176f17,_0x486e7f,_0xf3826f,_0x45bbb3)=>{const _0x16e745=_0x35a141;for(var _0x195d61=_0x45bbb3>0x1?void 0x0:_0x45bbb3?Fe(_0x486e7f,_0xf3826f):_0x486e7f,_0xf77d72=_0x176f17[_0x16e745(0x12c)]-0x1,_0x71a8cc;_0xf77d72>=0x0;_0xf77d72--)(_0x71a8cc=_0x176f17[_0xf77d72])&&(_0x195d61=_0x71a8cc(_0x195d61)||_0x195d61);return _0x195d61;},A=(_0x53e660,_0x5740c1)=>(_0x14e0d1,_0x2766c3)=>_0x5740c1(_0x14e0d1,_0x2766c3,_0x53e660);let m=class extends _0x2b7bf5{constructor(_0x1ae60f,_0x34f4fc){const _0x5a2232=_0x35a141;super(),this[_0x5a2232(0xe0)]=_0x1ae60f,this['_uiPartsService']=_0x34f4fc,this[_0x5a2232(0xe4)]();}[_0x35a141(0xe4)](){const _0x41efd5=_0x35a141;this['disposeWithMe'](this[_0x41efd5(0x15e)]['registerComponent'](_0xb9814e[_0x41efd5(0x166)],()=>_0x23dc11(Le,this[_0x41efd5(0xe0)])));}};m=He([A(0x0,_0x165c16(_0x30e964)),A(0x1,_0x13d3ef)],m);const ye=_0x35a141(0x14e),T={};var Ue=Object[_0x35a141(0xfc)],Ve=(_0x13bd32,_0x5c20bc,_0x4c6982,_0x468b37)=>{const _0xb3639b=_0x35a141;for(var _0x16b2ff=_0x468b37>0x1?void 0x0:_0x468b37?Ue(_0x5c20bc,_0x4c6982):_0x5c20bc,_0x3036a=_0x13bd32[_0xb3639b(0x12c)]-0x1,_0x363b61;_0x3036a>=0x0;_0x3036a--)(_0x363b61=_0x13bd32[_0x3036a])&&(_0x16b2ff=_0x363b61(_0x16b2ff)||_0x16b2ff);return _0x16b2ff;},je=(_0x5a2b7f,_0x2c2ec2)=>(_0x5259b6,_0x577eb0)=>_0x2c2ec2(_0x5259b6,_0x577eb0,_0x5a2b7f);let I=class extends _0x2b7bf5{constructor(_0x48d20e){const _0x5846a2=_0x35a141;super(),this[_0x5846a2(0x153)]=_0x48d20e,this[_0x5846a2(0x15a)]();}[_0x35a141(0x15a)](){const _0x3ee4a5=_0x35a141;[_0x8c84dc['id'],_0x28c155['id'],_0x179248['id']][_0x3ee4a5(0xd7)](_0x36f824=>{const _0x44bd4e=_0x3ee4a5;this[_0x44bd4e(0x102)](this[_0x44bd4e(0x153)][_0x44bd4e(0x152)](_0x36f824));});}};I=Ve([je(0x0,_0x165c16(L))],I);var Me=Object['defineProperty'],ke=Object[_0x35a141(0xfc)],Ge=(_0x1cc2e7,_0xf33150,_0x377550)=>_0xf33150 in _0x1cc2e7?Me(_0x1cc2e7,_0xf33150,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x377550}):_0x1cc2e7[_0xf33150]=_0x377550,We=(_0x463fdc,_0x3b85ee,_0x16f7f9,_0x548715)=>{const _0x230a8b=_0x35a141;for(var _0xf46cfc=_0x548715>0x1?void 0x0:_0x548715?ke(_0x3b85ee,_0x16f7f9):_0x3b85ee,_0x54bf9e=_0x463fdc[_0x230a8b(0x12c)]-0x1,_0x2d771e;_0x54bf9e>=0x0;_0x54bf9e--)(_0x2d771e=_0x463fdc[_0x54bf9e])&&(_0xf46cfc=_0x2d771e(_0xf46cfc)||_0xf46cfc);return _0xf46cfc;},F=(_0x20fdf3,_0x4638f0)=>(_0x34c918,_0x622d6d)=>_0x4638f0(_0x34c918,_0x622d6d,_0x20fdf3),B=(_0x4c9ed6,_0x14d62f,_0x463170)=>Ge(_0x4c9ed6,typeof _0x14d62f!=_0x35a141(0xc1)?_0x14d62f+'':_0x14d62f,_0x463170);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x57f752{constructor(_0x5a69c4=T,_0x5d7ffc,_0x503605){const _0x5e692c=_0x35a141;super(),this[_0x5e692c(0xdb)]=_0x5a69c4,this[_0x5e692c(0xe0)]=_0x5d7ffc,this['_configService']=_0x503605;const {..._0x24de7b}=_0x16aada({},T,this[_0x5e692c(0xdb)]);this[_0x5e692c(0xc4)]['setConfig'](ye,_0x24de7b);}[_0x35a141(0xf0)](){const _0xecc05f=_0x35a141;_0xd8da1b(this[_0xecc05f(0xe0)],_0x109ea9([[L],[S],[I],[m]],this[_0xecc05f(0xdb)][_0xecc05f(0x137)])),_0xf181e2(this[_0xecc05f(0xe0)],[[I]]);}[_0x35a141(0x100)](){const _0x57a138=_0x35a141;_0xf181e2(this[_0x57a138(0xe0)],[[m]]);}};B(b,_0x35a141(0x149),_0x40dc09['UNIVER_UNKNOWN']),B(b,_0x35a141(0xee),Ye),b=We([_0x43f26d(_0x166481),F(0x1,_0x165c16(_0x30e964)),F(0x2,_0xe5fba7)],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 _0x2a8c09=_0x32e7;(function(_0x3460aa,_0xf26c3){const _0x3288af=_0x32e7,_0x41f6ad=_0x3460aa();while(!![]){try{const _0x2b5a4f=-parseInt(_0x3288af(0x7f))/0x1*(parseInt(_0x3288af(0x75))/0x2)+-parseInt(_0x3288af(0x86))/0x3*(parseInt(_0x3288af(0x73))/0x4)+parseInt(_0x3288af(0x7a))/0x5*(parseInt(_0x3288af(0x8d))/0x6)+-parseInt(_0x3288af(0x81))/0x7+-parseInt(_0x3288af(0x71))/0x8+-parseInt(_0x3288af(0x8e))/0x9+-parseInt(_0x3288af(0x7c))/0xa*(-parseInt(_0x3288af(0x85))/0xb);if(_0x2b5a4f===_0xf26c3)break;else _0x41f6ad['push'](_0x41f6ad['shift']());}catch(_0x10aff4){_0x41f6ad['push'](_0x41f6ad['shift']());}}}(_0x26a5,0x230d2));import{LiveShareController as _0x14a70b,LiveShareStatus as _0x1428be}from'@univerjs-pro/live-share';import{IRenderManagerService as _0xce11c8}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x4aa18d}from'@univerjs/sheets';import{SetScrollOperation as _0x559e3d}from'@univerjs/sheets-ui';import{FRange as _0x35a4e6}from'@univerjs/sheets/facade';import{FUniver as _0x2e541a,FEnum as _0x336ab1}from'@univerjs/core/facade';class I extends _0x35a4e6{[_0x2a8c09(0x82)](_0xb5b6aa,_0x9b43eb,_0x29dece,_0x30fedd,_0x201ae2){const _0x1a76c2=_0x2a8c09,_0x3b2b51=_0xb5b6aa[_0x1a76c2(0x80)](_0x14a70b),_0x426642=_0xb5b6aa[_0x1a76c2(0x80)](_0xce11c8),_0x34589c=_0x9b43eb[_0x1a76c2(0x84)](),_0x535701=_0x9b43eb['getActiveSheet'](),_0x6ff2c1=_0x3b2b51['getLiveShareCoordinatorSync'](_0x34589c);(_0x6ff2c1==null?void 0x0:_0x6ff2c1['getStatus']())!==_0x1428be[_0x1a76c2(0x90)]||(_0x29dece['getSheetId']()!==_0x535701[_0x1a76c2(0x72)]()&&this['_commandService']['executeCommand'](_0x4aa18d['id'],{'unitId':_0x34589c,'subUnitId':_0x29dece[_0x1a76c2(0x72)]()}),!_0x426642[_0x1a76c2(0x74)](_0x34589c))||_0x201ae2[_0x1a76c2(0x8c)](_0x559e3d['id'],{'unitId':_0x9b43eb[_0x1a76c2(0x84)](),'sheetId':_0x29dece['getSheetId'](),'sheetViewStartRow':_0x30fedd['startRow'],'sheetViewStartColumn':_0x30fedd[_0x1a76c2(0x78)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x35a4e6[_0x2a8c09(0x7d)](I);function _0x32e7(_0x3e7324,_0x2dffa4){_0x3e7324=_0x3e7324-0x6f;const _0x26a55d=_0x26a5();let _0x32e799=_0x26a55d[_0x3e7324];return _0x32e799;}class m extends _0x2e541a{[_0x2a8c09(0x83)](){const _0x4bae81=_0x2a8c09;var _0x561e72,_0x5dbbbc;const _0xa36ea0=this[_0x4bae81(0x76)]['get'](_0x14a70b),_0x59d589=(_0x561e72=this[_0x4bae81(0x87)]())==null?void 0x0:_0x561e72[_0x4bae81(0x70)]();if(!_0x59d589)throw new Error(_0x4bae81(0x8a));const _0x6b6544=_0xa36ea0[_0x4bae81(0x79)](_0x59d589);return(_0x5dbbbc=_0x6b6544==null?void 0x0:_0x6b6544[_0x4bae81(0x8f)]())!=null?_0x5dbbbc:_0x1428be['IDLE'];}[_0x2a8c09(0x6f)](){const _0x3ab86e=_0x2a8c09;var _0x176503;const _0x51178a=this[_0x3ab86e(0x76)][_0x3ab86e(0x80)](_0x14a70b),_0x5699d9=(_0x176503=this[_0x3ab86e(0x87)]())==null?void 0x0:_0x176503[_0x3ab86e(0x70)]();if(!_0x5699d9)throw new Error('No\x20active\x20workbook\x20found.');const _0xf2736f=_0x51178a[_0x3ab86e(0x79)](_0x5699d9);if(!_0xf2736f)throw new Error(_0x3ab86e(0x77));_0xf2736f[_0x3ab86e(0x6f)]();}[_0x2a8c09(0x88)](){const _0x1c5236=_0x2a8c09;var _0x14acc0;const _0x376977=this[_0x1c5236(0x76)]['get'](_0x14a70b),_0x4a57ee=(_0x14acc0=this['getActiveWorkbook']())==null?void 0x0:_0x14acc0[_0x1c5236(0x70)]();if(!_0x4a57ee)throw new Error(_0x1c5236(0x8a));const _0x357673=_0x376977[_0x1c5236(0x79)](_0x4a57ee);if(!_0x357673)throw new Error(_0x1c5236(0x77));_0x357673[_0x1c5236(0x88)]();}[_0x2a8c09(0x8b)](){const _0x1f72fa=_0x2a8c09;var _0x53199e;const _0x2e35ac=this[_0x1f72fa(0x76)][_0x1f72fa(0x80)](_0x14a70b),_0x3cc0ba=(_0x53199e=this[_0x1f72fa(0x87)]())==null?void 0x0:_0x53199e[_0x1f72fa(0x70)]();if(!_0x3cc0ba)throw new Error(_0x1f72fa(0x8a));const _0xb8d64=_0x2e35ac['getLiveShareCoordinatorSync'](_0x3cc0ba);if(!_0xb8d64)throw new Error(_0x1f72fa(0x77));_0xb8d64[_0x1f72fa(0x7e)]();}['stopPresenting'](){const _0xf19fa4=_0x2a8c09;var _0x3a39eb;const _0x100e08=this[_0xf19fa4(0x76)]['get'](_0x14a70b),_0x5a4407=(_0x3a39eb=this[_0xf19fa4(0x87)]())==null?void 0x0:_0x3a39eb[_0xf19fa4(0x70)]();if(!_0x5a4407)throw new Error(_0xf19fa4(0x8a));const _0x388d5e=_0x100e08[_0xf19fa4(0x79)](_0x5a4407);if(!_0x388d5e)throw new Error(_0xf19fa4(0x77));_0x388d5e[_0xf19fa4(0x89)]();}}_0x2e541a[_0x2a8c09(0x7d)](m);function _0x26a5(){const _0xa8bdca=['syncExecuteCommand','85056wlsqHL','1869885vHftYD','getStatus','PRESENTING','startFollowing','getId','1714192TRJIOV','getSheetId','4GsEthZ','getRenderById','2JYOPpb','_injector','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startColumn','getLiveShareCoordinatorSync','70KDTtXn','LiveShareStatusEnum','220420AFnxOc','extend','tryStartPresenting','238421QwbOYQ','get','949676XVJpvL','_initialize','getLiveShareStatus','getUnitId','462BnWIjK','553590hdipJP','getActiveWorkbook','stopFollowing','stopPresenting','No\x20active\x20workbook\x20found.','startPresenting'];_0x26a5=function(){return _0xa8bdca;};return _0x26a5();}class C extends _0x336ab1{get[_0x2a8c09(0x7b)](){return _0x1428be;}}_0x336ab1['extend'](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xce0c4e=_0x53c8;(function(_0xe945e9,_0x5846b5){const _0x1571b1=_0x53c8,_0x4b6916=_0xe945e9();while(!![]){try{const _0x3c7bcf=parseInt(_0x1571b1(0x21e))/0x1*(parseInt(_0x1571b1(0x25a))/0x2)+-parseInt(_0x1571b1(0x26d))/0x3*(-parseInt(_0x1571b1(0x236))/0x4)+-parseInt(_0x1571b1(0x220))/0x5*(-parseInt(_0x1571b1(0x213))/0x6)+parseInt(_0x1571b1(0x277))/0x7*(parseInt(_0x1571b1(0x271))/0x8)+-parseInt(_0x1571b1(0x23e))/0x9+parseInt(_0x1571b1(0x1fc))/0xa*(-parseInt(_0x1571b1(0x24e))/0xb)+parseInt(_0x1571b1(0x232))/0xc*(parseInt(_0x1571b1(0x210))/0xd);if(_0x3c7bcf===_0x5846b5)break;else _0x4b6916['push'](_0x4b6916['shift']());}catch(_0xc22004){_0x4b6916['push'](_0x4b6916['shift']());}}}(_0x1f69,0x48e76));var J=Object[_0xce0c4e(0x293)],K=(_0x40f9bc,_0x48cba5,_0x199f22)=>_0x48cba5 in _0x40f9bc?J(_0x40f9bc,_0x48cba5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x199f22}):_0x40f9bc[_0x48cba5]=_0x199f22,u=(_0x6a6a02,_0x14be30,_0x325189)=>K(_0x6a6a02,typeof _0x14be30!=_0xce0c4e(0x21c)?_0x14be30+'':_0x14be30,_0x325189);import{Disposable as _0x391c50,toDisposable as _0x5ec987,IUniverInstanceService as _0x5d85e7,Inject as _0x2de6b4,Injector as _0x173c5e,IConfigService as _0x34266a,ICommandService as _0x492717,RxDisposable as _0x40c917,UniverInstanceType as _0x324c39,DisposableCollection as _0x321e9e,CommandType as _0x7e8bcb,DependentOn as _0x390b52,Plugin as _0x3d5c76,merge as _0x1325bb,registerDependencies as _0x256053,mergeOverrideWithDependencies as _0x4c1cfa,touchDependencies as _0x39d7eb}from'@univerjs/core';import{useDependency as _0x14182f,useObservable as _0x55b771,IUIPartsService as _0x48a06c,BuiltInUIPart as _0x7e38cc,connectInjector as _0x593ae2}from'@univerjs/ui';import{jsx as _0x481bab,jsxs as _0x3e4308,Fragment as _0x2de7e1}from'react/jsx-runtime';import{Dropdown as _0x42bb87,clsx as _0xfbc3dd,Button as _0x273271}from'@univerjs/design';import{useRef as _0x102f92,createElement as _0x8d6eeb,forwardRef as _0x435347,useState as _0x2b36ac,useEffect as _0xcd52bb}from'react';import{CollaborationEvent as _0x1dbbdf,parseProtocolChangeset as _0x212e49}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x5f546f,SessionStatus as _0x4ce167,UniverCollaborationClientPlugin as _0x11e9df}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3128b0,SetWorksheetActiveOperation as _0x31ae4e}from'@univerjs/sheets';import{BehaviorSubject as _0x1067bc,Subject as _0x23ea99}from'rxjs';import{takeUntil as _0x35683e,throttleTime as _0x3198dc}from'rxjs/operators';import{SetZoomRatioOperation as _0x8a3ff8,SetScrollOperation as _0x3dbd75}from'@univerjs/sheets-ui';function k({ref:_0x436ded,..._0x52490d}){const _0x208345=_0xce0c4e,{icon:_0x1e4f7b,id:_0x5ae976,className:_0x54e6ec,extend:_0x3562b3,..._0x41f5c2}=_0x52490d,_0x57da8b=(_0x208345(0x212)+_0x5ae976+'\x20'+(_0x54e6ec||''))['trim'](),_0x21ebea=_0x102f92('_'+Oe());return G(_0x1e4f7b,''+_0x5ae976,{'defIds':_0x1e4f7b[_0x208345(0x1f1)],'idSuffix':_0x21ebea[_0x208345(0x258)]},{'ref':_0x436ded,'className':_0x57da8b,..._0x41f5c2},_0x3562b3);}function G(_0x43b6b6,_0x1b7e63,_0x1e6617,_0x197ffe,_0x3360e4){const _0x4b6cfb=_0xce0c4e;return _0x8d6eeb(_0x43b6b6[_0x4b6cfb(0x233)],{'key':_0x1b7e63,...be(_0x43b6b6,_0x1e6617,_0x3360e4),..._0x197ffe},(Ee(_0x43b6b6,_0x1e6617)['children']||[])[_0x4b6cfb(0x269)]((_0x53d93b,_0x1c370b)=>G(_0x53d93b,_0x1b7e63+'-'+_0x43b6b6[_0x4b6cfb(0x233)]+'-'+_0x1c370b,_0x1e6617,void 0x0,_0x3360e4)));}function be(_0x4f1854,_0x589f60,_0x301dbe){const _0x5ae272=_0xce0c4e,_0x595744={..._0x4f1854[_0x5ae272(0x203)]};_0x301dbe!=null&&_0x301dbe[_0x5ae272(0x1f5)]&&_0x595744[_0x5ae272(0x1f7)]==='colorChannel1'&&(_0x595744[_0x5ae272(0x1f7)]=_0x301dbe[_0x5ae272(0x1f5)]),_0x4f1854[_0x5ae272(0x233)]==='mask'&&_0x595744['id']&&(_0x595744['id']=_0x595744['id']+_0x589f60[_0x5ae272(0x245)]),Object['entries'](_0x595744)[_0x5ae272(0x25f)](([_0xaee3b6,_0x48844f])=>{const _0x2287d3=_0x5ae272;_0xaee3b6===_0x2287d3(0x20f)&&typeof _0x48844f==_0x2287d3(0x211)&&(_0x595744[_0xaee3b6]=_0x48844f['replace'](/url\(#(.*)\)/,_0x2287d3(0x26b)+_0x589f60[_0x2287d3(0x245)]+')'));});const {defIds:_0x20aad5}=_0x589f60;return!_0x20aad5||_0x20aad5[_0x5ae272(0x22f)]===0x0||(_0x4f1854[_0x5ae272(0x233)]==='use'&&_0x595744[_0x5ae272(0x1f6)]&&(_0x595744[_0x5ae272(0x1f6)]=_0x595744[_0x5ae272(0x1f6)]+_0x589f60[_0x5ae272(0x245)]),Object[_0x5ae272(0x27f)](_0x595744)[_0x5ae272(0x25f)](([_0x4feddd,_0x40d1fa])=>{const _0x1f2e2f=_0x5ae272;typeof _0x40d1fa==_0x1f2e2f(0x211)&&(_0x595744[_0x4feddd]=_0x40d1fa['replace'](/url\(#(.*)\)/,_0x1f2e2f(0x26b)+_0x589f60[_0x1f2e2f(0x245)]+')'));})),_0x595744;}function Ee(_0x51048f,_0x5ea9a5){const _0x46795e=_0xce0c4e;var _0x169604;const {defIds:_0x5e82aa}=_0x5ea9a5;return!_0x5e82aa||_0x5e82aa[_0x46795e(0x22f)]===0x0?_0x51048f:_0x51048f[_0x46795e(0x233)]===_0x46795e(0x267)&&((_0x169604=_0x51048f[_0x46795e(0x256)])!=null&&_0x169604[_0x46795e(0x22f)])?{..._0x51048f,'children':_0x51048f[_0x46795e(0x256)]['map'](_0x425a7f=>typeof _0x425a7f[_0x46795e(0x203)]['id']==_0x46795e(0x211)&&_0x5e82aa&&_0x5e82aa[_0x46795e(0x286)](_0x425a7f[_0x46795e(0x203)]['id'])?{..._0x425a7f,'attrs':{..._0x425a7f[_0x46795e(0x203)],'id':_0x425a7f[_0x46795e(0x203)]['id']+_0x5ea9a5[_0x46795e(0x245)]}}:_0x425a7f)}:_0x51048f;}function Oe(){const _0x2bca86=_0xce0c4e;return Math[_0x2bca86(0x26a)]()[_0x2bca86(0x1f4)](0x24)[_0x2bca86(0x26e)](0x2,0x8);}k['displayName']=_0xce0c4e(0x1fd);const we={'tag':_0xce0c4e(0x290),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0xce0c4e(0x239),'width':_0xce0c4e(0x281),'height':_0xce0c4e(0x281)},'children':[{'tag':_0xce0c4e(0x216),'attrs':{'fill':'currentColor','d':_0xce0c4e(0x205)}},{'tag':_0xce0c4e(0x216),'attrs':{'fill':_0xce0c4e(0x24f),'d':_0xce0c4e(0x280),'fillRule':_0xce0c4e(0x289),'clipRule':_0xce0c4e(0x289)}}]},W=_0x435347(function(_0x5b9697,_0x2d0f81){const _0x54a022=_0xce0c4e;return _0x8d6eeb(k,Object[_0x54a022(0x215)]({},_0x5b9697,{'id':_0x54a022(0x1fe),'ref':_0x2d0f81,'icon':we}));});W[_0xce0c4e(0x21b)]=_0xce0c4e(0x247);class L extends _0x391c50{constructor(){super(...arguments),u(this,'_sharedOperations',new Set()),u(this,'_reporters',new Set());}[_0xce0c4e(0x217)](_0x35addc){const _0x44ba50=_0xce0c4e;return this[_0x44ba50(0x27e)][_0x44ba50(0x285)](_0x35addc),_0x5ec987(()=>this[_0x44ba50(0x27e)][_0x44ba50(0x20b)](_0x35addc));}['registerInitialStateReporter'](_0x3f82e2){const _0x2b95e1=_0xce0c4e;return this['_reporters'][_0x2b95e1(0x285)](_0x3f82e2),_0x5ec987(()=>this['_reporters'][_0x2b95e1(0x20b)](_0x3f82e2));}['shouldShareOperation'](_0x1ca1d6){const _0x3ec09f=_0xce0c4e;return this[_0x3ec09f(0x27e)]['has'](_0x1ca1d6);}[_0xce0c4e(0x259)](_0x49e45e){const _0x333491=_0xce0c4e;return Array['from'](this[_0x333491(0x266)])[_0x333491(0x269)](_0x293b6d=>_0x293b6d(_0x49e45e));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0x22614b,_0x29a179,_0x5f4f45,_0x5031aa)=>{const _0x4f68b0=_0xce0c4e;for(var _0x2cb755=_0x5031aa>0x1?void 0x0:_0x5031aa?Ne(_0x29a179,_0x5f4f45):_0x29a179,_0xfe0e80=_0x22614b[_0x4f68b0(0x22f)]-0x1,_0x40abe9;_0xfe0e80>=0x0;_0xfe0e80--)(_0x40abe9=_0x22614b[_0xfe0e80])&&(_0x2cb755=_0x40abe9(_0x2cb755)||_0x2cb755);return _0x2cb755;},_=(_0x25297a,_0x53b15f)=>(_0x43aafc,_0x8f1802)=>_0x53b15f(_0x43aafc,_0x8f1802,_0x25297a);let S=class extends _0x40c917{constructor(_0x1e6ffa,_0x4898d9,_0x478819){const _0x46b185=_0xce0c4e;super(),u(this,'_entities',new Map()),(this[_0x46b185(0x22b)]=_0x1e6ffa,this[_0x46b185(0x265)]=_0x4898d9,this[_0x46b185(0x25b)]=_0x478819,this[_0x46b185(0x251)]());}async[_0xce0c4e(0x248)](_0x5ecb6e){const _0x4609f8=_0xce0c4e;return this[_0x4609f8(0x252)][_0x4609f8(0x25c)](_0x5ecb6e)||await this[_0x4609f8(0x20c)](_0x5ecb6e),this['_entities']['get'](_0x5ecb6e);}[_0xce0c4e(0x26f)](_0x3a924c){const _0x379183=_0xce0c4e;var _0xe039cb;return(_0xe039cb=this['_entities'][_0x379183(0x229)](_0x3a924c))!=null?_0xe039cb:null;}[_0xce0c4e(0x251)](){const _0x4e9e79=_0xce0c4e;this[_0x4e9e79(0x22b)][_0x4e9e79(0x292)](_0x324c39[_0x4e9e79(0x282)])[_0x4e9e79(0x231)](_0x35683e(this['dispose$']))[_0x4e9e79(0x257)](async _0x41b75f=>{const _0x44c076=_0x4e9e79,_0x46fd50=_0x41b75f[_0x44c076(0x28f)]();this['_entities'][_0x44c076(0x25c)](_0x46fd50)||this['_startLiveShareCoordinator'](_0x46fd50);}),this['_univerInstanceService'][_0x4e9e79(0x1fa)](_0x324c39[_0x4e9e79(0x282)])[_0x4e9e79(0x231)](_0x35683e(this['dispose$']))[_0x4e9e79(0x257)](_0x1e5e41=>{const _0x3d2d42=_0x4e9e79,_0x35d6b9=_0x1e5e41['getUnitId'](),_0x288be8=this[_0x3d2d42(0x252)][_0x3d2d42(0x229)](_0x35d6b9);_0x288be8==null||_0x288be8[_0x3d2d42(0x264)]();});}async[_0xce0c4e(0x20c)](_0x3fafbb){const _0x49a410=_0xce0c4e,_0x1b9cfa=await this[_0x49a410(0x25b)][_0x49a410(0x204)](_0x3fafbb),_0xa9cfe5=this['_injector']['createInstance'](N,_0x3fafbb,_0x1b9cfa);return _0xa9cfe5[_0x49a410(0x22e)](),this[_0x49a410(0x252)][_0x49a410(0x237)](_0x3fafbb,_0xa9cfe5),_0xa9cfe5;}};S=Y([_(0x0,_0x5d85e7),_(0x1,_0x2de6b4(_0x173c5e)),_(0x2,_0x2de6b4(_0x5f546f))],S);var c=(_0x4db93e=>(_0x4db93e[_0xce0c4e(0x24b)]=_0xce0c4e(0x27a),_0x4db93e[_0xce0c4e(0x1fb)]='idle',_0x4db93e[_0xce0c4e(0x243)]=_0xce0c4e(0x206),_0x4db93e[_0xce0c4e(0x28a)]=_0xce0c4e(0x270),_0x4db93e[_0xce0c4e(0x287)]=_0xce0c4e(0x223),_0x4db93e))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x40c917{constructor(_0x2a6d5a,_0x562900,_0x3b1705,_0x52bdd,_0x3eb702){const _0x257eb4=_0xce0c4e;super(),u(this,'_status$',new _0x1067bc(_0x257eb4(0x255))),u(this,_0x257eb4(0x221),this[_0x257eb4(0x214)][_0x257eb4(0x284)]()),u(this,_0x257eb4(0x251),!0x1),u(this,_0x257eb4(0x228),null),u(this,_0x257eb4(0x1f8),null),(this[_0x257eb4(0x1f9)]=_0x2a6d5a,this[_0x257eb4(0x21a)]=_0x562900,this[_0x257eb4(0x294)]=_0x3b1705,this[_0x257eb4(0x240)]=_0x52bdd,this[_0x257eb4(0x296)]=_0x3eb702);}get[_0xce0c4e(0x235)](){const _0x4f205e=_0xce0c4e;return this[_0x4f205e(0x214)]['getValue']();}[_0xce0c4e(0x264)](){const _0x990a07=_0xce0c4e;var _0x342f14;(_0x342f14=this[_0x990a07(0x228)])==null||_0x342f14['dispose'](),this[_0x990a07(0x214)][_0x990a07(0x253)]('idle'),this[_0x990a07(0x214)][_0x990a07(0x207)]();}[_0xce0c4e(0x23f)](){return this['_status'];}[_0xce0c4e(0x22e)](){const _0x2ce3c1=_0xce0c4e;this[_0x2ce3c1(0x251)]||(this[_0x2ce3c1(0x251)]=!0x0,this[_0x2ce3c1(0x21a)][_0x2ce3c1(0x27c)][_0x2ce3c1(0x231)](_0x35683e(this[_0x2ce3c1(0x26c)]))['subscribe'](_0xa9bbbc=>{const _0x1b3b2c=_0x2ce3c1;switch(_0xa9bbbc){case _0x4ce167['OFFLINE']:this[_0x1b3b2c(0x263)]();break;case _0x4ce167['ONLINE']:this['_handleOnline']();break;}}),this['_collabSession'][_0x2ce3c1(0x1ef)][_0x2ce3c1(0x231)](_0x35683e(this['dispose$']))[_0x2ce3c1(0x257)](_0x2625d5=>{const _0x6926e0=_0x2ce3c1,{eventID:_0x12bc56}=_0x2625d5;switch(_0x12bc56){case _0x1dbbdf[_0x6926e0(0x241)]:this[_0x6926e0(0x24d)](_0x2625d5);break;case _0x1dbbdf['LIVESHARE_OPERATION']:this['_handleOperation'](_0x2625d5);break;case _0x1dbbdf['LIVESHARE_TERMINATE']:this[_0x6926e0(0x28d)]();break;case _0x1dbbdf[_0x6926e0(0x1f2)]:this[_0x6926e0(0x1f0)](_0x2625d5);break;}}));}[_0xce0c4e(0x262)](){const _0x4c045a=_0xce0c4e;this[_0x4c045a(0x21a)]['send']({'eventID':_0x1dbbdf[_0x4c045a(0x298)],'data':{'unitID':this[_0x4c045a(0x1f9)],'userID':this[_0x4c045a(0x21a)][_0x4c045a(0x227)]()}},this[_0x4c045a(0x1f9)]);}[_0xce0c4e(0x200)](){const _0xeeff73=_0xce0c4e;this['_status']===_0xeeff73(0x223)&&(this[_0xeeff73(0x214)]['next'](_0xeeff73(0x255)),this[_0xeeff73(0x21a)][_0xeeff73(0x219)]({'eventID':_0x1dbbdf[_0xeeff73(0x254)],'data':{'unitID':this['_unitID']}},this[_0xeeff73(0x1f9)]));}[_0xce0c4e(0x249)](){const _0x3b3f07=_0xce0c4e;this[_0x3b3f07(0x235)]===_0x3b3f07(0x270)&&(this['_status$'][_0x3b3f07(0x253)](_0x3b3f07(0x206)),this[_0x3b3f07(0x250)]());}[_0xce0c4e(0x1ee)](){const _0x421191=_0xce0c4e;this[_0x421191(0x235)]==='following'&&this[_0x421191(0x230)]();}[_0xce0c4e(0x24d)](_0x5950f4){const _0x44a3c5=_0xce0c4e,{presenter:_0x4e893b}=_0x5950f4[_0x44a3c5(0x28b)],_0x37a714=this['_collabSession'][_0x44a3c5(0x227)]();this[_0x44a3c5(0x1f8)]=_0x4e893b,_0x4e893b===_0x37a714?(this[_0x44a3c5(0x230)](),this[_0x44a3c5(0x299)]()):this[_0x44a3c5(0x235)]!=='not-following'&&(this[_0x44a3c5(0x225)](),this[_0x44a3c5(0x250)]());}[_0xce0c4e(0x275)](){const _0x462170=_0xce0c4e,_0x348a09={'eventID':_0x1dbbdf[_0x462170(0x260)]};this[_0x462170(0x21a)][_0x462170(0x219)](_0x348a09,this[_0x462170(0x1f9)]);}[_0xce0c4e(0x28d)](){const _0x11eb75=_0xce0c4e;this['_presenter']=null,this[_0x11eb75(0x235)]!=='presenting'&&this[_0x11eb75(0x22c)]();}[_0xce0c4e(0x1f0)](_0x184626){const _0x500f31=_0xce0c4e;if(this[_0x500f31(0x235)]===_0x500f31(0x206)&&this[_0x500f31(0x1f8)]===_0x184626[_0x500f31(0x28b)][_0x500f31(0x27b)]){const _0x341823=_0x212e49(_0x184626[_0x500f31(0x28b)])[_0x500f31(0x28e)][_0x500f31(0x224)]()[_0x500f31(0x201)](_0x54bf4b=>_0x54bf4b['id']===_0x3128b0['id']);if(_0x341823){const _0x2961a7=_0x341823[_0x500f31(0x24c)][_0x500f31(0x222)],_0x403445=_0x341823['params'][_0x500f31(0x242)]['id'];setTimeout(()=>{const _0x5f21d2=_0x500f31;this[_0x5f21d2(0x296)][_0x5f21d2(0x283)](_0x31ae4e['id'],{'unitId':_0x2961a7,'subUnitId':_0x403445},{'fromCollab':!0x0});});}}}[_0xce0c4e(0x299)](){const _0x4fc005=_0xce0c4e;this[_0x4fc005(0x214)][_0x4fc005(0x253)](_0x4fc005(0x223));const _0x17c6bf=new Map(),_0x4218a5=this[_0x4fc005(0x228)]=new _0x321e9e();_0x4218a5[_0x4fc005(0x285)](_0x5ec987(()=>{const _0x736a9c=_0x4fc005;_0x17c6bf[_0x736a9c(0x25f)](_0x50e675=>_0x50e675['complete']()),_0x17c6bf[_0x736a9c(0x218)]();})),_0x4218a5[_0x4fc005(0x285)](this['_commandService'][_0x4fc005(0x22d)](_0x1247f5=>{const _0x3521e5=_0x4fc005;var _0x8188a2;if(_0x1247f5[_0x3521e5(0x202)]!==_0x7e8bcb[_0x3521e5(0x23d)]||!this[_0x3521e5(0x240)][_0x3521e5(0x276)](_0x1247f5['id']))return;const {id:_0x21d929}=_0x1247f5;let _0x54547c;_0x17c6bf['has'](_0x21d929)?_0x54547c=_0x17c6bf['get'](_0x21d929):(_0x54547c=new _0x23ea99(),_0x17c6bf['set'](_0x21d929,_0x54547c),_0x54547c[_0x3521e5(0x231)](_0x3198dc((_0x8188a2=this['_configService']['getConfig'](Ce))!=null?_0x8188a2:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3521e5(0x257)](_0x1bb3ad=>{const _0x16196a=_0x3521e5;this['_collabSession'][_0x16196a(0x219)]({'eventID':_0x1dbbdf[_0x16196a(0x25e)],'data':{'unitID':this[_0x16196a(0x1f9)],'operations':{[_0x1bb3ad['id']]:{'id':_0x1bb3ad['id'],'params':JSON['stringify'](_0x1bb3ad['params'])}}}},this[_0x16196a(0x1f9)]);})),_0x54547c[_0x3521e5(0x253)](_0x1247f5);})),this['_liveShareService'][_0x4fc005(0x259)](this[_0x4fc005(0x1f9)])['forEach'](_0x1a5477=>this[_0x4fc005(0x21a)][_0x4fc005(0x219)]({'eventID':_0x1dbbdf[_0x4fc005(0x25e)],'data':{'unitID':this[_0x4fc005(0x1f9)],'operations':{[_0x1a5477['id']]:{'id':_0x1a5477['id'],'params':JSON[_0x4fc005(0x234)](_0x1a5477[_0x4fc005(0x24c)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x4ca804=_0xce0c4e;var _0x3aa452;this[_0x4ca804(0x214)]['next']('idle'),(_0x3aa452=this[_0x4ca804(0x228)])==null||_0x3aa452[_0x4ca804(0x264)](),this[_0x4ca804(0x228)]=null;}[_0xce0c4e(0x250)](){const _0x256c91=_0xce0c4e;var _0x168045;(_0x168045=this[_0x256c91(0x228)])==null||_0x168045[_0x256c91(0x264)](),this[_0x256c91(0x214)][_0x256c91(0x253)](_0x256c91(0x206));}[_0xce0c4e(0x22c)](){const _0x55dd65=_0xce0c4e;var _0x1e7fd1;this[_0x55dd65(0x214)][_0x55dd65(0x253)](_0x55dd65(0x255)),(_0x1e7fd1=this[_0x55dd65(0x228)])==null||_0x1e7fd1[_0x55dd65(0x264)](),this[_0x55dd65(0x228)]=null;}[_0xce0c4e(0x230)](){const _0x4b08d4=_0xce0c4e;var _0x10ed26;this[_0x4b08d4(0x214)][_0x4b08d4(0x253)](_0x4b08d4(0x270)),(_0x10ed26=this[_0x4b08d4(0x228)])==null||_0x10ed26[_0x4b08d4(0x264)]();}[_0xce0c4e(0x25d)](_0x487a88){const _0x56b99e=_0xce0c4e;if([_0x56b99e(0x223),'not-following',_0x56b99e(0x27a)][_0x56b99e(0x286)](this[_0x56b99e(0x235)])||!_0x487a88[_0x56b99e(0x28b)][_0x56b99e(0x1f3)]||_0x487a88['data'][_0x56b99e(0x1f3)]===this[_0x56b99e(0x21a)][_0x56b99e(0x227)]())return;this[_0x56b99e(0x235)]===_0x56b99e(0x255)&&this[_0x56b99e(0x250)]();const _0x38b0ce=_0x487a88[_0x56b99e(0x28b)][_0x56b99e(0x261)];Object['values'](_0x38b0ce)[_0x56b99e(0x25f)](_0x9d02a2=>{const _0x32716d=_0x56b99e;this[_0x32716d(0x296)][_0x32716d(0x283)](_0x9d02a2['id'],_0x9d02a2[_0x32716d(0x24c)]?JSON[_0x32716d(0x27d)](_0x9d02a2[_0x32716d(0x24c)]):null,{'fromCollab':!0x0});});}[_0xce0c4e(0x263)](){const _0x31741e=_0xce0c4e;var _0x366ca6;this[_0x31741e(0x214)][_0x31741e(0x253)]('offline'),(_0x366ca6=this[_0x31741e(0x228)])==null||_0x366ca6[_0x31741e(0x264)]();}[_0xce0c4e(0x208)](){const _0x141ef4=_0xce0c4e;this[_0x141ef4(0x214)][_0x141ef4(0x253)](_0x141ef4(0x255)),this[_0x141ef4(0x275)]();}};N=Y([_(0x2,_0x34266a),_(0x3,_0x2de6b4(L)),_(0x4,_0x492717)],N);function _0x53c8(_0x1b914a,_0x237a83){_0x1b914a=_0x1b914a-0x1ee;const _0x1f6949=_0x1f69();let _0x53c8fe=_0x1f6949[_0x1b914a];return _0x53c8fe;}function _0x1f69(){const _0x3e2fd0=['stopPresenting','find','type','attrs','requireSession','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','following','complete','_handleOnline','registerComponent','Stop\x20following','delete','_startLiveShareCoordinator','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','You\x27re\x20not\x20following\x20the\x20presenter','mask','5044cFXqSi','string','univerjs-icon\x20univerjs-icon-','24qiAloX','_status$','assign','path','registerSharedOperation','clear','send','_collabSession','displayName','symbol','You\x27are\x20offline.','249127FSwmiI','HEADER_MENU','735015lRlZAb','status$','unitId','presenting','reverse','_stopPresenting','univer-size-4','getMemberID','_commandDisposable','get','Stop\x20presenting','_univerInstanceService','_beIdle','onCommandExecuted','init','length','_stopFollowing','pipe','2148aVGnRU','tag','stringify','_status','104172JvKqKv','set','div','0\x200\x2017\x2017','univer-mb-3\x20univer-w-full\x20univer-text-sm','unsubscribe','_uiPartsService','OPERATION','1966878BDeLDF','getStatus','_liveShareService','LIVESHARE_NEW_HOST','sheet','FOLLOWING','button','idSuffix','_mountLiveShare','LiveShareIcon','getLiveShareCoordinator','startFollowing','You\x27re\x20following\x20the\x20presenter','OFFLINE','params','_handleNewHost','11pGiyQv','currentColor','_startFollowing','_init','_entities','next','LIVESHARE_TERMINATE','idle','children','subscribe','current','getInitialStates','2DyIpIt','_collabSessionService','has','_handleOperation','LIVESHARE_OPERATION','forEach','LIVESHARE_FETCH_OPERATIONS','operations','tryStartPresenting','_handleOffline','dispose','_injector','_reporters','defs','live-share.config','map','random','url(#$1','dispose$','3yeAAqR','substring','getLiveShareCoordinatorSync','not-following','4808EMpFng','onRendered','pluginName','text','_fetchOperations','shouldShareOperation','917OFHyuO','_config','end','offline','memberID','sessionStatus$','parse','_sharedOperations','entries','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','1em','UNIVER_SHEET','executeCommand','asObservable','add','includes','PRESENTING','Start','evenodd','NOT_FOLLOWING','data','onStarting','_handleTerminate','mutations','getUnitId','svg','Start\x20following','getTypeOfUnitAdded$','defineProperty','_configService','getOwnPropertyDescriptor','_commandService','UNIVER_UNKNOWN','LIVESHARE_REQUEST_HOST','_startPresenting','stopFollowing','event$','_handleNewChangeSets','defIds','NEW_CHANGESETS','presenter','toString','colorChannel1','xlink:href','fill','_presenter','_unitID','getTypeOfUnitDisposed$','IDLE','4942090qJtcCB','UniverIcon','live-share-icon','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'];_0x1f69=function(){return _0x3e2fd0;};return _0x1f69();}function Le(){const _0x834dbc=_0xce0c4e,_0x4851cc=_0x14182f(S),_0x242046=_0x14182f(_0x5d85e7),_0x366b30=_0x55b771(()=>_0x242046['getCurrentTypeOfUnit$'](_0x324c39[_0x834dbc(0x282)]),void 0x0,!0x1,[]),[_0x358073,_0x5e9410]=_0x2b36ac(null),[_0x93b40e,_0x1d3a15]=_0x2b36ac(c['IDLE']),_0x273b6a=_0x102f92(null);return _0xcd52bb(()=>(_0x366b30&&_0x4851cc[_0x834dbc(0x248)](_0x366b30[_0x834dbc(0x28f)]())['then'](_0x5a6acf=>{const _0x3f1d68=_0x834dbc;_0x5e9410(_0x5a6acf),_0x273b6a[_0x3f1d68(0x258)]=_0x5a6acf['status$']['subscribe'](_0x2e3505=>{_0x1d3a15(_0x2e3505);});}),()=>{const _0x5aa97b=_0x834dbc;var _0x1a4438;(_0x1a4438=_0x273b6a[_0x5aa97b(0x258)])==null||_0x1a4438[_0x5aa97b(0x23b)](),_0x273b6a[_0x5aa97b(0x258)]=null;}),[_0x366b30,_0x4851cc]),_0x358073?_0x481bab(_0x42bb87,{'align':_0x834dbc(0x279),'disabled':_0x93b40e===c[_0x834dbc(0x24b)],'className':_0x834dbc(0x1ff),'overlay':_0x481bab(Re,{'status':_0x93b40e,'coordinator':_0x358073}),'children':_0x481bab(_0x834dbc(0x244),{'className':_0xfbc3dd(_0x834dbc(0x20d),{'univer-cursor-not-allowed':_0x93b40e===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x93b40e!==c[_0x834dbc(0x24b)]}),'type':_0x834dbc(0x244),'children':_0x481bab(W,{'className':_0x834dbc(0x226)})})}):null;}function Re(_0x5b806d){const _0x45e4fa=_0xce0c4e,{status:_0x9c7ef7,coordinator:_0x12245e}=_0x5b806d;switch(_0x9c7ef7){case c[_0x45e4fa(0x1fb)]:return _0x481bab($e,{'coordinator':_0x12245e});case c['FOLLOWING']:return _0x481bab(xe,{'coordinator':_0x12245e});case c[_0x45e4fa(0x28a)]:return _0x481bab(Pe,{'coordinator':_0x12245e});case c[_0x45e4fa(0x24b)]:return _0x481bab(Te,{});case c[_0x45e4fa(0x287)]:return _0x481bab(Ae,{'coordinator':_0x12245e});default:return null;}}function $e(_0x203d2b){const _0x21cbd6=_0xce0c4e,{coordinator:_0x322113}=_0x203d2b;return _0x3e4308(_0x2de7e1,{'children':[_0x481bab(_0x21cbd6(0x238),{'className':_0x21cbd6(0x23a),'children':'Present\x20this\x20document'}),_0x481bab(_0x273271,{'onClick':()=>_0x322113[_0x21cbd6(0x262)](),'children':_0x21cbd6(0x288)})]});}function xe(_0x466ff9){const _0x295820=_0xce0c4e,{coordinator:_0x32e1f8}=_0x466ff9;return _0x3e4308(_0x2de7e1,{'children':[_0x481bab(_0x295820(0x238),{'className':_0x295820(0x23a),'children':_0x295820(0x24a)}),_0x481bab(_0x273271,{'onClick':()=>_0x32e1f8[_0x295820(0x1ee)](),'children':_0x295820(0x20a)})]});}function Pe(_0x1b18cd){const _0x46bf32=_0xce0c4e,{coordinator:_0x37026b}=_0x1b18cd;return _0x3e4308(_0x2de7e1,{'children':[_0x481bab(_0x46bf32(0x238),{'className':_0x46bf32(0x23a),'children':_0x46bf32(0x20e)}),_0x481bab(_0x273271,{'variant':_0x46bf32(0x274),'onClick':()=>_0x37026b['startFollowing'](),'children':_0x46bf32(0x291)})]});}function Ae(_0x15b1e1){const _0x1ed5d0=_0xce0c4e,{coordinator:_0x552ad5}=_0x15b1e1;return _0x3e4308(_0x2de7e1,{'children':[_0x481bab(_0x1ed5d0(0x238),{'className':_0x1ed5d0(0x23a),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x481bab(_0x273271,{'variant':'default','onClick':()=>_0x552ad5['stopPresenting'](),'children':_0x1ed5d0(0x22a)})]});}function Te(){const _0x23b940=_0xce0c4e;return _0x481bab(_0x2de7e1,{'children':_0x23b940(0x21d)});}var Fe=Object[_0xce0c4e(0x295)],He=(_0x61172e,_0x50f50d,_0x280557,_0x4f6339)=>{const _0x2fa336=_0xce0c4e;for(var _0x36443e=_0x4f6339>0x1?void 0x0:_0x4f6339?Fe(_0x50f50d,_0x280557):_0x50f50d,_0x3e6806=_0x61172e[_0x2fa336(0x22f)]-0x1,_0x12431d;_0x3e6806>=0x0;_0x3e6806--)(_0x12431d=_0x61172e[_0x3e6806])&&(_0x36443e=_0x12431d(_0x36443e)||_0x36443e);return _0x36443e;},A=(_0x2a0954,_0xe7d020)=>(_0x489cc4,_0x1db3bc)=>_0xe7d020(_0x489cc4,_0x1db3bc,_0x2a0954);let m=class extends _0x391c50{constructor(_0x6cdbcf,_0x312696){const _0x2736fb=_0xce0c4e;super(),this[_0x2736fb(0x265)]=_0x6cdbcf,this[_0x2736fb(0x23c)]=_0x312696,this[_0x2736fb(0x246)]();}['_mountLiveShare'](){const _0x3a3d28=_0xce0c4e;this['disposeWithMe'](this['_uiPartsService'][_0x3a3d28(0x209)](_0x7e38cc[_0x3a3d28(0x21f)],()=>_0x593ae2(Le,this[_0x3a3d28(0x265)])));}};m=He([A(0x0,_0x2de6b4(_0x173c5e)),A(0x1,_0x48a06c)],m);const ye=_0xce0c4e(0x268),T={};var Ue=Object[_0xce0c4e(0x295)],Ve=(_0x22e121,_0x2e3983,_0x4cf945,_0x3c4826)=>{const _0x4496fe=_0xce0c4e;for(var _0x15f34f=_0x3c4826>0x1?void 0x0:_0x3c4826?Ue(_0x2e3983,_0x4cf945):_0x2e3983,_0x2c5cf0=_0x22e121[_0x4496fe(0x22f)]-0x1,_0x814af5;_0x2c5cf0>=0x0;_0x2c5cf0--)(_0x814af5=_0x22e121[_0x2c5cf0])&&(_0x15f34f=_0x814af5(_0x15f34f)||_0x15f34f);return _0x15f34f;},je=(_0x50476d,_0x3a6e75)=>(_0xbe1020,_0x4055fd)=>_0x3a6e75(_0xbe1020,_0x4055fd,_0x50476d);let I=class extends _0x391c50{constructor(_0x338895){const _0x5d6169=_0xce0c4e;super(),this[_0x5d6169(0x240)]=_0x338895,this[_0x5d6169(0x251)]();}[_0xce0c4e(0x251)](){[_0x8a3ff8['id'],_0x3dbd75['id'],_0x31ae4e['id']]['forEach'](_0x8e7b5c=>{const _0x33631d=_0x53c8;this['disposeWithMe'](this[_0x33631d(0x240)]['registerSharedOperation'](_0x8e7b5c));});}};I=Ve([je(0x0,_0x2de6b4(L))],I);var Me=Object[_0xce0c4e(0x293)],ke=Object[_0xce0c4e(0x295)],Ge=(_0x142d9a,_0x1d3bee,_0x517a2d)=>_0x1d3bee in _0x142d9a?Me(_0x142d9a,_0x1d3bee,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x517a2d}):_0x142d9a[_0x1d3bee]=_0x517a2d,We=(_0x5d5d52,_0x48919b,_0x49dab9,_0x380cc0)=>{for(var _0x5defb0=_0x380cc0>0x1?void 0x0:_0x380cc0?ke(_0x48919b,_0x49dab9):_0x48919b,_0x9ed4bd=_0x5d5d52['length']-0x1,_0x382a61;_0x9ed4bd>=0x0;_0x9ed4bd--)(_0x382a61=_0x5d5d52[_0x9ed4bd])&&(_0x5defb0=_0x382a61(_0x5defb0)||_0x5defb0);return _0x5defb0;},F=(_0x156e0a,_0x3e960a)=>(_0x136a24,_0xe9c535)=>_0x3e960a(_0x136a24,_0xe9c535,_0x156e0a),B=(_0xf181c4,_0x661305,_0x1ffb38)=>Ge(_0xf181c4,typeof _0x661305!=_0xce0c4e(0x21c)?_0x661305+'':_0x661305,_0x1ffb38);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x3d5c76{constructor(_0x1c0333=T,_0x379dbb,_0x18b17d){const _0x450ba2=_0xce0c4e;super(),this[_0x450ba2(0x278)]=_0x1c0333,this[_0x450ba2(0x265)]=_0x379dbb,this['_configService']=_0x18b17d;const {..._0x52f487}=_0x1325bb({},T,this[_0x450ba2(0x278)]);this[_0x450ba2(0x294)]['setConfig'](ye,_0x52f487);}[_0xce0c4e(0x28c)](){const _0x155fae=_0xce0c4e;_0x256053(this['_injector'],_0x4c1cfa([[L],[S],[I],[m]],this['_config']['override'])),_0x39d7eb(this[_0x155fae(0x265)],[[I]]);}[_0xce0c4e(0x272)](){const _0x3c2c9a=_0xce0c4e;_0x39d7eb(this[_0x3c2c9a(0x265)],[[m]]);}};B(b,_0xce0c4e(0x202),_0x324c39[_0xce0c4e(0x297)]),B(b,_0xce0c4e(0x273),Ye),b=We([_0x390b52(_0x11e9df),F(0x1,_0x2de6b4(_0x173c5e)),F(0x2,_0x34266a)],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 _0x35a141=_0x4bee;(function(_0x2002c4,_0x309e85){const _0x567d73=_0x4bee,_0x48ba8c=_0x2002c4();while(!![]){try{const _0x3cdb95=parseInt(_0x567d73(0x132))/0x1+-parseInt(_0x567d73(0xcb))/0x2+parseInt(_0x567d73(0x119))/0x3+parseInt(_0x567d73(0x155))/0x4+parseInt(_0x567d73(0xc6))/0x5+parseInt(_0x567d73(0xfe))/0x6+-parseInt(_0x567d73(0x162))/0x7;if(_0x3cdb95===_0x309e85)break;else _0x48ba8c['push'](_0x48ba8c['shift']());}catch(_0x4f04d4){_0x48ba8c['push'](_0x48ba8c['shift']());}}}(_0x3907,0xce1f4));var J=Object[_0x35a141(0xe2)],K=(_0xc34165,_0x317ec8,_0x58d219)=>_0x317ec8 in _0xc34165?J(_0xc34165,_0x317ec8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58d219}):_0xc34165[_0x317ec8]=_0x58d219,u=(_0x55c068,_0x4d7157,_0x164d5a)=>K(_0x55c068,typeof _0x4d7157!=_0x35a141(0xc1)?_0x4d7157+'':_0x4d7157,_0x164d5a);import{Disposable as _0x2b7bf5,toDisposable as _0x188785,IUniverInstanceService as _0x53235a,Inject as _0x165c16,Injector as _0x30e964,IConfigService as _0xe5fba7,ICommandService as _0x57b8d2,RxDisposable as _0x4222af,UniverInstanceType as _0x40dc09,DisposableCollection as _0x3da815,CommandType as _0x1892f5,DependentOn as _0x43f26d,Plugin as _0x57f752,merge as _0x16aada,registerDependencies as _0xd8da1b,mergeOverrideWithDependencies as _0x109ea9,touchDependencies as _0xf181e2}from'@univerjs/core';import{useDependency as _0x24114a,useObservable as _0x37e545,IUIPartsService as _0x13d3ef,BuiltInUIPart as _0xb9814e,connectInjector as _0x23dc11}from'@univerjs/ui';import{jsx as _0x886542,jsxs as _0x27e2fc,Fragment as _0x4e4cd9}from'react/jsx-runtime';function _0x3907(){const _0x181f71=['getValue','getTypeOfUnitAdded$','idle','Start\x20following','_status$','getMemberID','length','_sharedOperations','PRESENTING','getLiveShareCoordinatorSync','set','defIds','939822gNzSGD','asObservable','_entities','presenter','_collabSession','override','0\x200\x2017\x2017','tag','evenodd','none','OFFLINE','_handleTerminate','presenting','delete','LiveShareIcon','http://www.w3.org/2000/svg','_fetchOperations','_commandService','idSuffix','You\x27re\x20following\x20the\x20presenter','ONLINE','Stop\x20presenting','offline','type','1em','replace','_reporters','trim','live-share.config','button','_collabSessionService','_beIdle','registerSharedOperation','_liveShareService','_handleNewHost','328692EbjBhn','find','then','_unitID','complete','_init','pipe','colorChannel1','data','_uiPartsService','You\x27re\x20not\x20following\x20the\x20presenter','univer-mb-3\x20univer-w-full\x20univer-text-sm','get','10521777EjLYSU','includes','FOLLOWING','_handleOffline','HEADER_MENU','init','getUnitId','event$','symbol','displayName','send','_configService','onCommandExecuted','7543015IGSkWw','substring','parse','_presenter','_status','2942062zPbRWD','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','NOT_FOLLOWING','not-following','stopPresenting','div','params','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','status$','_handleOnline','_stopFollowing','use','forEach','univerjs-icon\x20univerjs-icon-','Stop\x20following','_univerInstanceService','_config','_commandDisposable','string','stopFollowing','_startPresenting','_injector','text','defineProperty','currentColor','_mountLiveShare','IDLE','dispose$','startFollowing','Start','defs','has','xlink:href','_stopPresenting','getStatus','pluginName','You\x27are\x20offline.','onStarting','children','executeCommand','shouldShareOperation','mutations','_startFollowing','current','memberID','following','toString','dispose','attrs','getOwnPropertyDescriptor','getLiveShareCoordinator','3601728vJrCsG','getConfig','onRendered','random','disposeWithMe','default','LIVESHARE_OPERATION','_handleOperation','UniverIcon','next','reverse','sessionStatus$','getCurrentTypeOfUnit$','LIVESHARE_NEW_HOST','LIVESHARE_TERMINATE','NEW_CHANGESETS','tryStartPresenting','createInstance','entries','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','OPERATION','_startLiveShareCoordinator','assign','LIVESHARE_FETCH_OPERATIONS','url(#$1','mask','_handleNewChangeSets','2062596zRKmfl','path','map','add','UNIVER_SHEET','fill','Present\x20this\x20document','getInitialStates','stringify','subscribe','requireSession','svg','unsubscribe'];_0x3907=function(){return _0x181f71;};return _0x3907();}import{Dropdown as _0x152f1,clsx as _0x423a38,Button as _0xf38cce}from'@univerjs/design';import{useRef as _0x23045f,createElement as _0x1e3e45,forwardRef as _0x16942a,useState as _0x1c29a4,useEffect as _0x54e30b}from'react';import{CollaborationEvent as _0x19a841,parseProtocolChangeset as _0x2fa26d}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x40e095,SessionStatus as _0x3dc0be,UniverCollaborationClientPlugin as _0x166481}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5da965,SetWorksheetActiveOperation as _0x179248}from'@univerjs/sheets';import{BehaviorSubject as _0x10e087,Subject as _0x415407}from'rxjs';import{takeUntil as _0x323870,throttleTime as _0x5b155c}from'rxjs/operators';import{SetZoomRatioOperation as _0x8c84dc,SetScrollOperation as _0x28c155}from'@univerjs/sheets-ui';function k({ref:_0x2d9f70,..._0x212285}){const _0x16912b=_0x35a141,{icon:_0x3cb016,id:_0x57a1ef,className:_0x852509,extend:_0x596eb7,..._0xb8c9a4}=_0x212285,_0x15fd00=(_0x16912b(0xd8)+_0x57a1ef+'\x20'+(_0x852509||''))[_0x16912b(0x14d)](),_0x1b8a24=_0x23045f('_'+Oe());return G(_0x3cb016,''+_0x57a1ef,{'defIds':_0x3cb016[_0x16912b(0x131)],'idSuffix':_0x1b8a24['current']},{'ref':_0x2d9f70,'className':_0x15fd00,..._0xb8c9a4},_0x596eb7);}function _0x4bee(_0x379c51,_0x509ec0){_0x379c51=_0x379c51-0xc1;const _0x390784=_0x3907();let _0x4bee3a=_0x390784[_0x379c51];return _0x4bee3a;}function G(_0x5796ee,_0x2b8c31,_0x22fb0a,_0x4e6d80,_0x2b0c7e){const _0x20cd4d=_0x35a141;return _0x1e3e45(_0x5796ee[_0x20cd4d(0x139)],{'key':_0x2b8c31,...be(_0x5796ee,_0x22fb0a,_0x2b0c7e),..._0x4e6d80},(Ee(_0x5796ee,_0x22fb0a)[_0x20cd4d(0xf1)]||[])[_0x20cd4d(0x11b)]((_0x51fd3,_0x5a1799)=>G(_0x51fd3,_0x2b8c31+'-'+_0x5796ee['tag']+'-'+_0x5a1799,_0x22fb0a,void 0x0,_0x2b0c7e)));}function be(_0x320cdc,_0x2d181c,_0x299c85){const _0x2f5c20=_0x35a141,_0x3fe7e4={..._0x320cdc[_0x2f5c20(0xfb)]};_0x299c85!=null&&_0x299c85['colorChannel1']&&_0x3fe7e4[_0x2f5c20(0x11e)]===_0x2f5c20(0x15c)&&(_0x3fe7e4[_0x2f5c20(0x11e)]=_0x299c85[_0x2f5c20(0x15c)]),_0x320cdc[_0x2f5c20(0x139)]===_0x2f5c20(0x117)&&_0x3fe7e4['id']&&(_0x3fe7e4['id']=_0x3fe7e4['id']+_0x2d181c[_0x2f5c20(0x144)]),Object[_0x2f5c20(0x110)](_0x3fe7e4)[_0x2f5c20(0xd7)](([_0x21ceb4,_0x4cdfa2])=>{const _0x2f6a17=_0x2f5c20;_0x21ceb4==='mask'&&typeof _0x4cdfa2==_0x2f6a17(0xdd)&&(_0x3fe7e4[_0x21ceb4]=_0x4cdfa2[_0x2f6a17(0x14b)](/url\(#(.*)\)/,'url(#$1'+_0x2d181c['idSuffix']+')'));});const {defIds:_0x25ac31}=_0x2d181c;return!_0x25ac31||_0x25ac31['length']===0x0||(_0x320cdc[_0x2f5c20(0x139)]===_0x2f5c20(0xd6)&&_0x3fe7e4[_0x2f5c20(0xeb)]&&(_0x3fe7e4['xlink:href']=_0x3fe7e4[_0x2f5c20(0xeb)]+_0x2d181c[_0x2f5c20(0x144)]),Object[_0x2f5c20(0x110)](_0x3fe7e4)[_0x2f5c20(0xd7)](([_0x320c28,_0x481b3f])=>{const _0x3376b2=_0x2f5c20;typeof _0x481b3f=='string'&&(_0x3fe7e4[_0x320c28]=_0x481b3f[_0x3376b2(0x14b)](/url\(#(.*)\)/,_0x3376b2(0x116)+_0x2d181c[_0x3376b2(0x144)]+')'));})),_0x3fe7e4;}function Ee(_0x27452f,_0x20acd1){const _0x418da0=_0x35a141;var _0x2f0d28;const {defIds:_0x3d0b9a}=_0x20acd1;return!_0x3d0b9a||_0x3d0b9a[_0x418da0(0x12c)]===0x0?_0x27452f:_0x27452f[_0x418da0(0x139)]===_0x418da0(0xe9)&&((_0x2f0d28=_0x27452f[_0x418da0(0xf1)])!=null&&_0x2f0d28[_0x418da0(0x12c)])?{..._0x27452f,'children':_0x27452f[_0x418da0(0xf1)][_0x418da0(0x11b)](_0x3ccb5a=>typeof _0x3ccb5a[_0x418da0(0xfb)]['id']==_0x418da0(0xdd)&&_0x3d0b9a&&_0x3d0b9a['includes'](_0x3ccb5a['attrs']['id'])?{..._0x3ccb5a,'attrs':{..._0x3ccb5a[_0x418da0(0xfb)],'id':_0x3ccb5a[_0x418da0(0xfb)]['id']+_0x20acd1[_0x418da0(0x144)]}}:_0x3ccb5a)}:_0x27452f;}function Oe(){const _0xce9d7e=_0x35a141;return Math[_0xce9d7e(0x101)]()[_0xce9d7e(0xf9)](0x24)[_0xce9d7e(0xc7)](0x2,0x8);}k[_0x35a141(0xc2)]=_0x35a141(0x106);const we={'tag':_0x35a141(0x124),'attrs':{'xmlns':_0x35a141(0x141),'fill':_0x35a141(0x13b),'viewBox':_0x35a141(0x138),'width':_0x35a141(0x14a),'height':_0x35a141(0x14a)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x35a141(0xd2)}},{'tag':_0x35a141(0x11a),'attrs':{'fill':_0x35a141(0xe3),'d':_0x35a141(0xcc),'fillRule':_0x35a141(0x13a),'clipRule':_0x35a141(0x13a)}}]},W=_0x16942a(function(_0x3bca55,_0x497ff0){const _0x4d9417=_0x35a141;return _0x1e3e45(k,Object[_0x4d9417(0x114)]({},_0x3bca55,{'id':'live-share-icon','ref':_0x497ff0,'icon':we}));});W['displayName']=_0x35a141(0x140);class L extends _0x2b7bf5{constructor(){const _0x4f7e8c=_0x35a141;super(...arguments),u(this,_0x4f7e8c(0x12d),new Set()),u(this,_0x4f7e8c(0x14c),new Set());}['registerSharedOperation'](_0x58270a){const _0x342620=_0x35a141;return this[_0x342620(0x12d)][_0x342620(0x11c)](_0x58270a),_0x188785(()=>this[_0x342620(0x12d)][_0x342620(0x13f)](_0x58270a));}['registerInitialStateReporter'](_0xdf99a7){const _0xf960e5=_0x35a141;return this['_reporters'][_0xf960e5(0x11c)](_0xdf99a7),_0x188785(()=>this[_0xf960e5(0x14c)]['delete'](_0xdf99a7));}['shouldShareOperation'](_0x1a3da7){const _0x28a5be=_0x35a141;return this[_0x28a5be(0x12d)][_0x28a5be(0xea)](_0x1a3da7);}[_0x35a141(0x120)](_0x595e52){const _0x4d82b8=_0x35a141;return Array['from'](this[_0x4d82b8(0x14c)])[_0x4d82b8(0x11b)](_0x5ad1bc=>_0x5ad1bc(_0x595e52));}}var Ne=Object['getOwnPropertyDescriptor'],Y=(_0x4094c7,_0x23a221,_0xe91801,_0xf15f4b)=>{for(var _0x1780c2=_0xf15f4b>0x1?void 0x0:_0xf15f4b?Ne(_0x23a221,_0xe91801):_0x23a221,_0x59cda5=_0x4094c7['length']-0x1,_0x18578d;_0x59cda5>=0x0;_0x59cda5--)(_0x18578d=_0x4094c7[_0x59cda5])&&(_0x1780c2=_0x18578d(_0x1780c2)||_0x1780c2);return _0x1780c2;},_=(_0x3f28c7,_0x4435d1)=>(_0xd66d1,_0x4fa6e7)=>_0x4435d1(_0xd66d1,_0x4fa6e7,_0x3f28c7);let S=class extends _0x4222af{constructor(_0x239162,_0x3459e4,_0x2e7205){const _0x3dbd29=_0x35a141;super(),u(this,_0x3dbd29(0x134),new Map()),(this[_0x3dbd29(0xda)]=_0x239162,this['_injector']=_0x3459e4,this[_0x3dbd29(0x150)]=_0x2e7205,this['_init']());}async[_0x35a141(0xfd)](_0x31568e){const _0x1b710e=_0x35a141;return this['_entities'][_0x1b710e(0xea)](_0x31568e)||await this['_startLiveShareCoordinator'](_0x31568e),this[_0x1b710e(0x134)][_0x1b710e(0x161)](_0x31568e);}[_0x35a141(0x12f)](_0x474fd8){var _0xa5b180;return(_0xa5b180=this['_entities']['get'](_0x474fd8))!=null?_0xa5b180:null;}[_0x35a141(0x15a)](){const _0x272608=_0x35a141;this[_0x272608(0xda)][_0x272608(0x127)](_0x40dc09[_0x272608(0x11d)])[_0x272608(0x15b)](_0x323870(this['dispose$']))[_0x272608(0x122)](async _0x72312a=>{const _0xb5550=_0x272608,_0x2c12cb=_0x72312a[_0xb5550(0x168)]();this['_entities'][_0xb5550(0xea)](_0x2c12cb)||this[_0xb5550(0x113)](_0x2c12cb);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x40dc09[_0x272608(0x11d)])['pipe'](_0x323870(this['dispose$']))['subscribe'](_0x6a7b53=>{const _0x59a395=_0x272608,_0x4ead53=_0x6a7b53['getUnitId'](),_0x45837b=this[_0x59a395(0x134)][_0x59a395(0x161)](_0x4ead53);_0x45837b==null||_0x45837b[_0x59a395(0xfa)]();});}async['_startLiveShareCoordinator'](_0x106302){const _0x11cf6e=_0x35a141,_0x392e73=await this[_0x11cf6e(0x150)][_0x11cf6e(0x123)](_0x106302),_0xd46928=this[_0x11cf6e(0xe0)][_0x11cf6e(0x10f)](N,_0x106302,_0x392e73);return _0xd46928[_0x11cf6e(0x167)](),this['_entities'][_0x11cf6e(0x130)](_0x106302,_0xd46928),_0xd46928;}};S=Y([_(0x0,_0x53235a),_(0x1,_0x165c16(_0x30e964)),_(0x2,_0x165c16(_0x40e095))],S);var c=(_0xc5f2ad=>(_0xc5f2ad[_0x35a141(0x13c)]=_0x35a141(0x148),_0xc5f2ad[_0x35a141(0xe5)]=_0x35a141(0x128),_0xc5f2ad['FOLLOWING']=_0x35a141(0xf8),_0xc5f2ad[_0x35a141(0xcd)]=_0x35a141(0xce),_0xc5f2ad[_0x35a141(0x12e)]=_0x35a141(0x13e),_0xc5f2ad))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x4222af{constructor(_0x198981,_0x396675,_0x4098de,_0x111e8d,_0x4c39df){const _0x4638c8=_0x35a141;super(),u(this,_0x4638c8(0x12a),new _0x10e087(_0x4638c8(0x128))),u(this,'status$',this[_0x4638c8(0x12a)][_0x4638c8(0x133)]()),u(this,_0x4638c8(0x15a),!0x1),u(this,_0x4638c8(0xdc),null),u(this,_0x4638c8(0xc9),null),(this[_0x4638c8(0x158)]=_0x198981,this[_0x4638c8(0x136)]=_0x396675,this[_0x4638c8(0xc4)]=_0x4098de,this[_0x4638c8(0x153)]=_0x111e8d,this[_0x4638c8(0x143)]=_0x4c39df);}get[_0x35a141(0xca)](){const _0xe1cf94=_0x35a141;return this[_0xe1cf94(0x12a)][_0xe1cf94(0x126)]();}['dispose'](){const _0x5ef359=_0x35a141;var _0xe1c3f9;(_0xe1c3f9=this[_0x5ef359(0xdc)])==null||_0xe1c3f9[_0x5ef359(0xfa)](),this[_0x5ef359(0x12a)][_0x5ef359(0x107)](_0x5ef359(0x128)),this[_0x5ef359(0x12a)][_0x5ef359(0x159)]();}[_0x35a141(0xed)](){return this['_status'];}[_0x35a141(0x167)](){const _0x96f874=_0x35a141;this[_0x96f874(0x15a)]||(this[_0x96f874(0x15a)]=!0x0,this[_0x96f874(0x136)][_0x96f874(0x109)][_0x96f874(0x15b)](_0x323870(this[_0x96f874(0xe6)]))[_0x96f874(0x122)](_0x3586b4=>{const _0x24f561=_0x96f874;switch(_0x3586b4){case _0x3dc0be[_0x24f561(0x13c)]:this['_handleOffline']();break;case _0x3dc0be[_0x24f561(0x146)]:this[_0x24f561(0xd4)]();break;}}),this['_collabSession'][_0x96f874(0x169)][_0x96f874(0x15b)](_0x323870(this[_0x96f874(0xe6)]))[_0x96f874(0x122)](_0x2eee4b=>{const _0x697291=_0x96f874,{eventID:_0x16199a}=_0x2eee4b;switch(_0x16199a){case _0x19a841[_0x697291(0x10b)]:this[_0x697291(0x154)](_0x2eee4b);break;case _0x19a841[_0x697291(0x104)]:this['_handleOperation'](_0x2eee4b);break;case _0x19a841[_0x697291(0x10c)]:this[_0x697291(0x13d)]();break;case _0x19a841[_0x697291(0x10d)]:this[_0x697291(0x118)](_0x2eee4b);break;}}));}[_0x35a141(0x10e)](){const _0x319641=_0x35a141;this[_0x319641(0x136)][_0x319641(0xc3)]({'eventID':_0x19a841['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x319641(0x158)],'userID':this['_collabSession']['getMemberID']()}},this[_0x319641(0x158)]);}[_0x35a141(0xcf)](){const _0x510a7f=_0x35a141;this[_0x510a7f(0xca)]===_0x510a7f(0x13e)&&(this['_status$'][_0x510a7f(0x107)](_0x510a7f(0x128)),this['_collabSession'][_0x510a7f(0xc3)]({'eventID':_0x19a841[_0x510a7f(0x10c)],'data':{'unitID':this[_0x510a7f(0x158)]}},this['_unitID']));}[_0x35a141(0xe7)](){const _0x141861=_0x35a141;this['_status']===_0x141861(0xce)&&(this[_0x141861(0x12a)][_0x141861(0x107)](_0x141861(0xf8)),this[_0x141861(0xf5)]());}[_0x35a141(0xde)](){const _0x46e753=_0x35a141;this[_0x46e753(0xca)]===_0x46e753(0xf8)&&this[_0x46e753(0xd5)]();}[_0x35a141(0x154)](_0xc39aab){const _0x10235f=_0x35a141,{presenter:_0x4867f5}=_0xc39aab[_0x10235f(0x15d)],_0x3c5478=this['_collabSession'][_0x10235f(0x12b)]();this['_presenter']=_0x4867f5,_0x4867f5===_0x3c5478?(this[_0x10235f(0xd5)](),this[_0x10235f(0xdf)]()):this['_status']!=='not-following'&&(this['_stopPresenting'](),this[_0x10235f(0xf5)]());}[_0x35a141(0x142)](){const _0x22dcbc=_0x35a141,_0x183924={'eventID':_0x19a841[_0x22dcbc(0x115)]};this['_collabSession'][_0x22dcbc(0xc3)](_0x183924,this[_0x22dcbc(0x158)]);}[_0x35a141(0x13d)](){const _0x56a686=_0x35a141;this[_0x56a686(0xc9)]=null,this[_0x56a686(0xca)]!==_0x56a686(0x13e)&&this['_beIdle']();}[_0x35a141(0x118)](_0x516e0e){const _0x4fbec5=_0x35a141;if(this[_0x4fbec5(0xca)]===_0x4fbec5(0xf8)&&this['_presenter']===_0x516e0e[_0x4fbec5(0x15d)][_0x4fbec5(0xf7)]){const _0x2a102f=_0x2fa26d(_0x516e0e['data'])[_0x4fbec5(0xf4)][_0x4fbec5(0x108)]()[_0x4fbec5(0x156)](_0x48f6ab=>_0x48f6ab['id']===_0x5da965['id']);if(_0x2a102f){const _0xc8f41d=_0x2a102f['params']['unitId'],_0x58f852=_0x2a102f['params']['sheet']['id'];setTimeout(()=>{const _0x22e260=_0x4fbec5;this[_0x22e260(0x143)][_0x22e260(0xf2)](_0x179248['id'],{'unitId':_0xc8f41d,'subUnitId':_0x58f852},{'fromCollab':!0x0});});}}}[_0x35a141(0xdf)](){const _0x251ac8=_0x35a141;this[_0x251ac8(0x12a)][_0x251ac8(0x107)](_0x251ac8(0x13e));const _0x53e37f=new Map(),_0x122914=this[_0x251ac8(0xdc)]=new _0x3da815();_0x122914[_0x251ac8(0x11c)](_0x188785(()=>{const _0x1be626=_0x251ac8;_0x53e37f[_0x1be626(0xd7)](_0x3e6467=>_0x3e6467[_0x1be626(0x159)]()),_0x53e37f['clear']();})),_0x122914[_0x251ac8(0x11c)](this[_0x251ac8(0x143)][_0x251ac8(0xc5)](_0x4a1ea2=>{const _0x5fe933=_0x251ac8;var _0x52cb58;if(_0x4a1ea2[_0x5fe933(0x149)]!==_0x1892f5[_0x5fe933(0x112)]||!this[_0x5fe933(0x153)][_0x5fe933(0xf3)](_0x4a1ea2['id']))return;const {id:_0x4fd80a}=_0x4a1ea2;let _0x41753e;_0x53e37f[_0x5fe933(0xea)](_0x4fd80a)?_0x41753e=_0x53e37f[_0x5fe933(0x161)](_0x4fd80a):(_0x41753e=new _0x415407(),_0x53e37f['set'](_0x4fd80a,_0x41753e),_0x41753e[_0x5fe933(0x15b)](_0x5b155c((_0x52cb58=this['_configService'][_0x5fe933(0xff)](Ce))!=null?_0x52cb58:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5fe933(0x122)](_0x32d65e=>{const _0x323cd9=_0x5fe933;this[_0x323cd9(0x136)]['send']({'eventID':_0x19a841[_0x323cd9(0x104)],'data':{'unitID':this[_0x323cd9(0x158)],'operations':{[_0x32d65e['id']]:{'id':_0x32d65e['id'],'params':JSON[_0x323cd9(0x121)](_0x32d65e['params'])}}}},this['_unitID']);})),_0x41753e['next'](_0x4a1ea2);})),this[_0x251ac8(0x153)][_0x251ac8(0x120)](this['_unitID'])['forEach'](_0x2151b6=>this[_0x251ac8(0x136)][_0x251ac8(0xc3)]({'eventID':_0x19a841['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x251ac8(0x158)],'operations':{[_0x2151b6['id']]:{'id':_0x2151b6['id'],'params':JSON[_0x251ac8(0x121)](_0x2151b6[_0x251ac8(0xd1)])}}}},this[_0x251ac8(0x158)]));}[_0x35a141(0xec)](){const _0x471466=_0x35a141;var _0x53f315;this['_status$'][_0x471466(0x107)](_0x471466(0x128)),(_0x53f315=this[_0x471466(0xdc)])==null||_0x53f315[_0x471466(0xfa)](),this['_commandDisposable']=null;}[_0x35a141(0xf5)](){const _0x30d43b=_0x35a141;var _0x2a9a54;(_0x2a9a54=this['_commandDisposable'])==null||_0x2a9a54[_0x30d43b(0xfa)](),this[_0x30d43b(0x12a)][_0x30d43b(0x107)](_0x30d43b(0xf8));}[_0x35a141(0x151)](){const _0x559ef9=_0x35a141;var _0x582f2f;this[_0x559ef9(0x12a)][_0x559ef9(0x107)](_0x559ef9(0x128)),(_0x582f2f=this[_0x559ef9(0xdc)])==null||_0x582f2f[_0x559ef9(0xfa)](),this[_0x559ef9(0xdc)]=null;}[_0x35a141(0xd5)](){const _0x220f8b=_0x35a141;var _0x518f54;this[_0x220f8b(0x12a)][_0x220f8b(0x107)](_0x220f8b(0xce)),(_0x518f54=this[_0x220f8b(0xdc)])==null||_0x518f54[_0x220f8b(0xfa)]();}[_0x35a141(0x105)](_0x15f687){const _0x25e92c=_0x35a141;if([_0x25e92c(0x13e),_0x25e92c(0xce),_0x25e92c(0x148)][_0x25e92c(0x163)](this['_status'])||!_0x15f687[_0x25e92c(0x15d)][_0x25e92c(0x135)]||_0x15f687['data'][_0x25e92c(0x135)]===this[_0x25e92c(0x136)][_0x25e92c(0x12b)]())return;this[_0x25e92c(0xca)]===_0x25e92c(0x128)&&this['_startFollowing']();const _0xc3a9f0=_0x15f687[_0x25e92c(0x15d)]['operations'];Object['values'](_0xc3a9f0)[_0x25e92c(0xd7)](_0x4f24a6=>{const _0x4862a7=_0x25e92c;this[_0x4862a7(0x143)][_0x4862a7(0xf2)](_0x4f24a6['id'],_0x4f24a6[_0x4862a7(0xd1)]?JSON[_0x4862a7(0xc8)](_0x4f24a6[_0x4862a7(0xd1)]):null,{'fromCollab':!0x0});});}[_0x35a141(0x165)](){const _0x2057b1=_0x35a141;var _0x37bbfb;this[_0x2057b1(0x12a)][_0x2057b1(0x107)](_0x2057b1(0x148)),(_0x37bbfb=this[_0x2057b1(0xdc)])==null||_0x37bbfb[_0x2057b1(0xfa)]();}[_0x35a141(0xd4)](){const _0x2e1dec=_0x35a141;this[_0x2e1dec(0x12a)]['next'](_0x2e1dec(0x128)),this[_0x2e1dec(0x142)]();}};N=Y([_(0x2,_0xe5fba7),_(0x3,_0x165c16(L)),_(0x4,_0x57b8d2)],N);function Le(){const _0x4ddfc0=_0x35a141,_0x3c3ef5=_0x24114a(S),_0x41a600=_0x24114a(_0x53235a),_0x9019b5=_0x37e545(()=>_0x41a600[_0x4ddfc0(0x10a)](_0x40dc09[_0x4ddfc0(0x11d)]),void 0x0,!0x1,[]),[_0x19d374,_0x1262a7]=_0x1c29a4(null),[_0x516060,_0x28cc4a]=_0x1c29a4(c[_0x4ddfc0(0xe5)]),_0x24c553=_0x23045f(null);return _0x54e30b(()=>(_0x9019b5&&_0x3c3ef5['getLiveShareCoordinator'](_0x9019b5['getUnitId']())[_0x4ddfc0(0x157)](_0x3a2727=>{const _0x4c3938=_0x4ddfc0;_0x1262a7(_0x3a2727),_0x24c553[_0x4c3938(0xf6)]=_0x3a2727[_0x4c3938(0xd3)]['subscribe'](_0x4e63b4=>{_0x28cc4a(_0x4e63b4);});}),()=>{const _0x5e4a34=_0x4ddfc0;var _0xa767bf;(_0xa767bf=_0x24c553[_0x5e4a34(0xf6)])==null||_0xa767bf[_0x5e4a34(0x125)](),_0x24c553[_0x5e4a34(0xf6)]=null;}),[_0x9019b5,_0x3c3ef5]),_0x19d374?_0x886542(_0x152f1,{'align':'end','disabled':_0x516060===c['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x886542(Re,{'status':_0x516060,'coordinator':_0x19d374}),'children':_0x886542('button',{'className':_0x423a38(_0x4ddfc0(0x111),{'univer-cursor-not-allowed':_0x516060===c[_0x4ddfc0(0x13c)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x516060!==c[_0x4ddfc0(0x13c)]}),'type':_0x4ddfc0(0x14f),'children':_0x886542(W,{'className':'univer-size-4'})})}):null;}function Re(_0x1d9a8e){const _0x461228=_0x35a141,{status:_0x8a12a1,coordinator:_0x3f4a13}=_0x1d9a8e;switch(_0x8a12a1){case c[_0x461228(0xe5)]:return _0x886542($e,{'coordinator':_0x3f4a13});case c[_0x461228(0x164)]:return _0x886542(xe,{'coordinator':_0x3f4a13});case c[_0x461228(0xcd)]:return _0x886542(Pe,{'coordinator':_0x3f4a13});case c[_0x461228(0x13c)]:return _0x886542(Te,{});case c[_0x461228(0x12e)]:return _0x886542(Ae,{'coordinator':_0x3f4a13});default:return null;}}function $e(_0xf675e){const _0x3d8ce4=_0x35a141,{coordinator:_0x53ba50}=_0xf675e;return _0x27e2fc(_0x4e4cd9,{'children':[_0x886542('div',{'className':_0x3d8ce4(0x160),'children':_0x3d8ce4(0x11f)}),_0x886542(_0xf38cce,{'onClick':()=>_0x53ba50[_0x3d8ce4(0x10e)](),'children':_0x3d8ce4(0xe8)})]});}function xe(_0x1c0226){const _0x207834=_0x35a141,{coordinator:_0x46490d}=_0x1c0226;return _0x27e2fc(_0x4e4cd9,{'children':[_0x886542(_0x207834(0xd0),{'className':_0x207834(0x160),'children':_0x207834(0x145)}),_0x886542(_0xf38cce,{'onClick':()=>_0x46490d[_0x207834(0xde)](),'children':_0x207834(0xd9)})]});}function Pe(_0x31ddb8){const _0x2cac44=_0x35a141,{coordinator:_0x46f68b}=_0x31ddb8;return _0x27e2fc(_0x4e4cd9,{'children':[_0x886542(_0x2cac44(0xd0),{'className':_0x2cac44(0x160),'children':_0x2cac44(0x15f)}),_0x886542(_0xf38cce,{'variant':_0x2cac44(0xe1),'onClick':()=>_0x46f68b[_0x2cac44(0xe7)](),'children':_0x2cac44(0x129)})]});}function Ae(_0x32dfa4){const _0x74bc2e=_0x35a141,{coordinator:_0x29010d}=_0x32dfa4;return _0x27e2fc(_0x4e4cd9,{'children':[_0x886542(_0x74bc2e(0xd0),{'className':_0x74bc2e(0x160),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x886542(_0xf38cce,{'variant':_0x74bc2e(0x103),'onClick':()=>_0x29010d[_0x74bc2e(0xcf)](),'children':_0x74bc2e(0x147)})]});}function Te(){const _0x3f68bc=_0x35a141;return _0x886542(_0x4e4cd9,{'children':_0x3f68bc(0xef)});}var Fe=Object[_0x35a141(0xfc)],He=(_0x176f17,_0x486e7f,_0xf3826f,_0x45bbb3)=>{const _0x16e745=_0x35a141;for(var _0x195d61=_0x45bbb3>0x1?void 0x0:_0x45bbb3?Fe(_0x486e7f,_0xf3826f):_0x486e7f,_0xf77d72=_0x176f17[_0x16e745(0x12c)]-0x1,_0x71a8cc;_0xf77d72>=0x0;_0xf77d72--)(_0x71a8cc=_0x176f17[_0xf77d72])&&(_0x195d61=_0x71a8cc(_0x195d61)||_0x195d61);return _0x195d61;},A=(_0x53e660,_0x5740c1)=>(_0x14e0d1,_0x2766c3)=>_0x5740c1(_0x14e0d1,_0x2766c3,_0x53e660);let m=class extends _0x2b7bf5{constructor(_0x1ae60f,_0x34f4fc){const _0x5a2232=_0x35a141;super(),this[_0x5a2232(0xe0)]=_0x1ae60f,this['_uiPartsService']=_0x34f4fc,this[_0x5a2232(0xe4)]();}[_0x35a141(0xe4)](){const _0x41efd5=_0x35a141;this['disposeWithMe'](this[_0x41efd5(0x15e)]['registerComponent'](_0xb9814e[_0x41efd5(0x166)],()=>_0x23dc11(Le,this[_0x41efd5(0xe0)])));}};m=He([A(0x0,_0x165c16(_0x30e964)),A(0x1,_0x13d3ef)],m);const ye=_0x35a141(0x14e),T={};var Ue=Object[_0x35a141(0xfc)],Ve=(_0x13bd32,_0x5c20bc,_0x4c6982,_0x468b37)=>{const _0xb3639b=_0x35a141;for(var _0x16b2ff=_0x468b37>0x1?void 0x0:_0x468b37?Ue(_0x5c20bc,_0x4c6982):_0x5c20bc,_0x3036a=_0x13bd32[_0xb3639b(0x12c)]-0x1,_0x363b61;_0x3036a>=0x0;_0x3036a--)(_0x363b61=_0x13bd32[_0x3036a])&&(_0x16b2ff=_0x363b61(_0x16b2ff)||_0x16b2ff);return _0x16b2ff;},je=(_0x5a2b7f,_0x2c2ec2)=>(_0x5259b6,_0x577eb0)=>_0x2c2ec2(_0x5259b6,_0x577eb0,_0x5a2b7f);let I=class extends _0x2b7bf5{constructor(_0x48d20e){const _0x5846a2=_0x35a141;super(),this[_0x5846a2(0x153)]=_0x48d20e,this[_0x5846a2(0x15a)]();}[_0x35a141(0x15a)](){const _0x3ee4a5=_0x35a141;[_0x8c84dc['id'],_0x28c155['id'],_0x179248['id']][_0x3ee4a5(0xd7)](_0x36f824=>{const _0x44bd4e=_0x3ee4a5;this[_0x44bd4e(0x102)](this[_0x44bd4e(0x153)][_0x44bd4e(0x152)](_0x36f824));});}};I=Ve([je(0x0,_0x165c16(L))],I);var Me=Object['defineProperty'],ke=Object[_0x35a141(0xfc)],Ge=(_0x1cc2e7,_0xf33150,_0x377550)=>_0xf33150 in _0x1cc2e7?Me(_0x1cc2e7,_0xf33150,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x377550}):_0x1cc2e7[_0xf33150]=_0x377550,We=(_0x463fdc,_0x3b85ee,_0x16f7f9,_0x548715)=>{const _0x230a8b=_0x35a141;for(var _0xf46cfc=_0x548715>0x1?void 0x0:_0x548715?ke(_0x3b85ee,_0x16f7f9):_0x3b85ee,_0x54bf9e=_0x463fdc[_0x230a8b(0x12c)]-0x1,_0x2d771e;_0x54bf9e>=0x0;_0x54bf9e--)(_0x2d771e=_0x463fdc[_0x54bf9e])&&(_0xf46cfc=_0x2d771e(_0xf46cfc)||_0xf46cfc);return _0xf46cfc;},F=(_0x20fdf3,_0x4638f0)=>(_0x34c918,_0x622d6d)=>_0x4638f0(_0x34c918,_0x622d6d,_0x20fdf3),B=(_0x4c9ed6,_0x14d62f,_0x463170)=>Ge(_0x4c9ed6,typeof _0x14d62f!=_0x35a141(0xc1)?_0x14d62f+'':_0x14d62f,_0x463170);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x57f752{constructor(_0x5a69c4=T,_0x5d7ffc,_0x503605){const _0x5e692c=_0x35a141;super(),this[_0x5e692c(0xdb)]=_0x5a69c4,this[_0x5e692c(0xe0)]=_0x5d7ffc,this['_configService']=_0x503605;const {..._0x24de7b}=_0x16aada({},T,this[_0x5e692c(0xdb)]);this[_0x5e692c(0xc4)]['setConfig'](ye,_0x24de7b);}[_0x35a141(0xf0)](){const _0xecc05f=_0x35a141;_0xd8da1b(this[_0xecc05f(0xe0)],_0x109ea9([[L],[S],[I],[m]],this[_0xecc05f(0xdb)][_0xecc05f(0x137)])),_0xf181e2(this[_0xecc05f(0xe0)],[[I]]);}[_0x35a141(0x100)](){const _0x57a138=_0x35a141;_0xf181e2(this[_0x57a138(0xe0)],[[m]]);}};B(b,_0x35a141(0x149),_0x40dc09['UNIVER_UNKNOWN']),B(b,_0x35a141(0xee),Ye),b=We([_0x43f26d(_0x166481),F(0x1,_0x165c16(_0x30e964)),F(0x2,_0xe5fba7)],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 _0x5a87(_0x2f8fed,_0x56bbd7){_0x2f8fed=_0x2f8fed-0xe0;const _0x1c8efb=_0x1c8e();let _0x5a877e=_0x1c8efb[_0x2f8fed];return _0x5a877e;}(function(_0x2edfaf,_0x40a817){const _0x43a38c=_0x5a87,_0x45bb70=_0x2edfaf();while(!![]){try{const _0x250254=-parseInt(_0x43a38c(0xfc))/0x1+-parseInt(_0x43a38c(0x107))/0x2+-parseInt(_0x43a38c(0xf2))/0x3+parseInt(_0x43a38c(0xf1))/0x4*(-parseInt(_0x43a38c(0xef))/0x5)+parseInt(_0x43a38c(0xf6))/0x6*(parseInt(_0x43a38c(0xed))/0x7)+parseInt(_0x43a38c(0xfb))/0x8*(parseInt(_0x43a38c(0xe5))/0x9)+parseInt(_0x43a38c(0x103))/0xa*(parseInt(_0x43a38c(0xf5))/0xb);if(_0x250254===_0x40a817)break;else _0x45bb70['push'](_0x45bb70['shift']());}catch(_0x1ca1a0){_0x45bb70['push'](_0x45bb70['shift']());}}}(_0x1c8e,0x7927f),function(_0x4d80d5,_0x4f8384){const _0x2b9965=_0x5a87;typeof exports==_0x2b9965(0xfe)&&typeof module<'u'?_0x4f8384(require('@univerjs-pro/live-share'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define=='function'&&define[_0x2b9965(0xe7)]?define([_0x2b9965(0xea),'@univerjs/engine-render',_0x2b9965(0x102),_0x2b9965(0xec),_0x2b9965(0x115),_0x2b9965(0xe2)],_0x4f8384):(_0x4d80d5=typeof globalThis<'u'?globalThis:_0x4d80d5||self,_0x4f8384(_0x4d80d5[_0x2b9965(0xe8)],_0x4d80d5[_0x2b9965(0xe9)],_0x4d80d5['UniverSheets'],_0x4d80d5['UniverSheetsUi'],_0x4d80d5[_0x2b9965(0x10c)],_0x4d80d5[_0x2b9965(0x110)]));}(this,function(_0x547bd2,_0x4c0eb9,_0x34ac57,_0x34a9c8,_0x25493e,_0x408f87){'use strict';const _0x445309=_0x5a87;class _0x3d844d extends _0x25493e[_0x445309(0xff)]{[_0x445309(0xf4)](_0x5daac4,_0x287827,_0x14473a,_0x20a40b,_0x1345d6){const _0xf82343=_0x445309,_0x197a21=_0x5daac4['get'](_0x547bd2[_0xf82343(0xeb)]),_0x21cd6b=_0x5daac4[_0xf82343(0xe6)](_0x4c0eb9[_0xf82343(0x10e)]),_0x1ea4ea=_0x287827[_0xf82343(0x106)](),_0x10d124=_0x287827['getActiveSheet'](),_0x252d92=_0x197a21[_0xf82343(0x101)](_0x1ea4ea);(_0x252d92==null?void 0x0:_0x252d92[_0xf82343(0xe4)]())!==_0x547bd2[_0xf82343(0xee)][_0xf82343(0x104)]||(_0x14473a[_0xf82343(0x10d)]()!==_0x10d124[_0xf82343(0x10d)]()&&this[_0xf82343(0x109)][_0xf82343(0x116)](_0x34ac57[_0xf82343(0x10a)]['id'],{'unitId':_0x1ea4ea,'subUnitId':_0x14473a[_0xf82343(0x10d)]()}),!_0x21cd6b[_0xf82343(0xf0)](_0x1ea4ea))||_0x1345d6[_0xf82343(0xe1)](_0x34a9c8['SetScrollOperation']['id'],{'unitId':_0x287827['getUnitId'](),'sheetId':_0x14473a['getSheetId'](),'sheetViewStartRow':_0x20a40b[_0xf82343(0x114)],'sheetViewStartColumn':_0x20a40b[_0xf82343(0xf9)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x25493e['FRange'][_0x445309(0x112)](_0x3d844d);class _0x356cd2 extends _0x408f87[_0x445309(0x105)]{['getLiveShareStatus'](){const _0x531e4a=_0x445309;var _0x122290,_0x1fe4c1;const _0x17eec3=this[_0x531e4a(0x100)]['get'](_0x547bd2[_0x531e4a(0xeb)]),_0x219c3b=(_0x122290=this[_0x531e4a(0xf3)]())==null?void 0x0:_0x122290[_0x531e4a(0x111)]();if(!_0x219c3b)throw new Error(_0x531e4a(0x10b));const _0x1736df=_0x17eec3[_0x531e4a(0x101)](_0x219c3b);return(_0x1fe4c1=_0x1736df==null?void 0x0:_0x1736df[_0x531e4a(0xe4)]())!=null?_0x1fe4c1:_0x547bd2['LiveShareStatus'][_0x531e4a(0x113)];}[_0x445309(0x108)](){const _0x77c6e0=_0x445309;var _0x42eac7;const _0x3c3782=this[_0x77c6e0(0x100)]['get'](_0x547bd2['LiveShareController']),_0x116b29=(_0x42eac7=this['getActiveWorkbook']())==null?void 0x0:_0x42eac7['getId']();if(!_0x116b29)throw new Error(_0x77c6e0(0x10b));const _0xbedf10=_0x3c3782[_0x77c6e0(0x101)](_0x116b29);if(!_0xbedf10)throw new Error(_0x77c6e0(0xfa));_0xbedf10[_0x77c6e0(0x108)]();}[_0x445309(0xf8)](){const _0x38c99d=_0x445309;var _0x3ac81c;const _0x2a15f0=this[_0x38c99d(0x100)][_0x38c99d(0xe6)](_0x547bd2[_0x38c99d(0xeb)]),_0x29dd02=(_0x3ac81c=this[_0x38c99d(0xf3)]())==null?void 0x0:_0x3ac81c[_0x38c99d(0x111)]();if(!_0x29dd02)throw new Error(_0x38c99d(0x10b));const _0x19c467=_0x2a15f0['getLiveShareCoordinatorSync'](_0x29dd02);if(!_0x19c467)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x19c467[_0x38c99d(0xf8)]();}[_0x445309(0x10f)](){const _0x34f1a0=_0x445309;var _0x30da6f;const _0x1d1903=this[_0x34f1a0(0x100)][_0x34f1a0(0xe6)](_0x547bd2[_0x34f1a0(0xeb)]),_0x2c906e=(_0x30da6f=this[_0x34f1a0(0xf3)]())==null?void 0x0:_0x30da6f[_0x34f1a0(0x111)]();if(!_0x2c906e)throw new Error(_0x34f1a0(0x10b));const _0x1b9002=_0x1d1903[_0x34f1a0(0x101)](_0x2c906e);if(!_0x1b9002)throw new Error(_0x34f1a0(0xfa));_0x1b9002[_0x34f1a0(0xe3)]();}[_0x445309(0xe0)](){const _0x2e5262=_0x445309;var _0x1d9b2e;const _0x25b601=this[_0x2e5262(0x100)][_0x2e5262(0xe6)](_0x547bd2[_0x2e5262(0xeb)]),_0x4afd8a=(_0x1d9b2e=this['getActiveWorkbook']())==null?void 0x0:_0x1d9b2e['getId']();if(!_0x4afd8a)throw new Error(_0x2e5262(0x10b));const _0x11ca7e=_0x25b601[_0x2e5262(0x101)](_0x4afd8a);if(!_0x11ca7e)throw new Error(_0x2e5262(0xfa));_0x11ca7e[_0x2e5262(0xe0)]();}}_0x408f87[_0x445309(0x105)][_0x445309(0x112)](_0x356cd2);class _0x2dd2d6 extends _0x408f87[_0x445309(0xfd)]{get[_0x445309(0xf7)](){const _0x11cdf4=_0x445309;return _0x547bd2[_0x11cdf4(0xee)];}}_0x408f87[_0x445309(0xfd)][_0x445309(0x112)](_0x2dd2d6);}));function _0x1c8e(){const _0x2bd184=['No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','8cOYyMO','655117esTxnL','FEnum','object','FRange','_injector','getLiveShareCoordinatorSync','@univerjs/sheets','20zVIFpH','PRESENTING','FUniver','getUnitId','469512uVjYJD','startFollowing','_commandService','SetWorksheetActiveOperation','No\x20active\x20workbook\x20found.','UniverSheetsFacade','getSheetId','IRenderManagerService','startPresenting','UniverCoreFacade','getId','extend','IDLE','startRow','@univerjs/sheets/facade','executeCommand','stopPresenting','syncExecuteCommand','@univerjs/core/facade','tryStartPresenting','getStatus','3610269nIXQII','get','amd','UniverProLiveShare','UniverEngineRender','@univerjs-pro/live-share','LiveShareController','@univerjs/sheets-ui','7hCKovr','LiveShareStatus','841495JIwrnn','getRenderById','8DwprKc','299553dlKHwG','getActiveWorkbook','_initialize','2572141IFPYsF','5722644kRRuOw','LiveShareStatusEnum','stopFollowing','startColumn'];_0x1c8e=function(){return _0x2bd184;};return _0x1c8e();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x1f1b(){const _0x3ea9eb=['currentColor','CollaborationEvent','complete','ICommandService','clear','getMemberID','615040SbQTVW','clsx','useRef','_init','LiveShareController','next','registerSharedOperation','Button','subscribe','PRESENTING','rxjs','amd','IConfigService','react','_entities','NEW_CHANGESETS','2abluJu','UNIVER_UNKNOWN','startFollowing','children','get','override','LIVESHARE_OPERATION','toDisposable','1641384aNtNYy','_startLiveShareCoordinator','substring','SetZoomRatioOperation','defineProperty','defs','createElement','CollaborationSessionService','unitId','executeCommand','object','_fetchOperations','getOwnPropertyDescriptor','registerDependencies','presenting','dispose$','Module','forwardRef','merge','391518uUqNZu','74915xxkutk','_commandService','mutations','Injector','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','univer-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','current','_commandDisposable','attrs','_uiPartsService','_handleOnline','ONLINE','_stopPresenting','type','LIVESHARE_NEW_HOST','trim','init','UniverUi','_presenter','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','_unitID','tryStartPresenting','send','has','BehaviorSubject','button','_sharedOperations','SAME_OPERATION_SHARE_INTERVAL','Subject','_reporters','random','_beIdle','@univerjs/design','add','Inject','getConfig','LIVESHARE_REQUEST_HOST','SetScrollOperation','44851PtqTBk','getCurrentTypeOfUnit$','live-share.config','_liveShareService','0\x200\x2017\x2017','disposeWithMe','120jAlrpA','params','@univerjs-pro/collaboration','pluginName','UNIVER_LIVE_SHARE_PLUGIN','data','length','RxDisposable','OFFLINE','dispose','Plugin','SessionStatus','mergeOverrideWithDependencies','SetWorksheetActiveOperation','@univerjs-pro/collaboration-client','IUniverInstanceService','status$','colorChannel1','getInitialStates','unsubscribe','IUIPartsService','_handleOperation','replace','not-following','Present\x20this\x20document','setConfig','connectInjector','stopFollowing','BuiltInUIPart','_handleNewChangeSets','offline','values','memberID','_handleOffline','_univerInstanceService','sheet','Disposable','_config','default','@univerjs/sheets-ui','_stopFollowing','string','xlink:href','jsx','UniverDesign','function','IDLE','entries','_collabSession','div','_configService','tag','UniverProCollaboration','mask','useEffect','presenter','idSuffix','1em','UniverInstanceType','UniverLiveSharePlugin','jsxs','displayName','LIVESHARE_TERMINATE','_handleNewHost','throttleTime','useDependency','NOT_FOLLOWING','univerjs-icon\x20univerjs-icon-','_collabSessionService','You\x27are\x20offline.','UniverSheets','_startFollowing','LIVESHARE_FETCH_OPERATIONS','Start','getStatus','none','http://www.w3.org/2000/svg','map','takeUntil','live-share-icon','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_status','toString','LiveShareCoordinator','UniverIcon','path','LiveShareStatus','set','@univerjs/core','getLiveShareCoordinator','Fragment','from','find','touchDependencies','_mountLiveShare','shouldShareOperation','OPERATION','stringify','includes','evenodd','defIds','UNIVER_SHEET','event$','105YxWEJr','FOLLOWING','url(#$1','following','sessionStatus$','getLiveShareCoordinatorSync','registerInitialStateReporter','Dropdown','UniverProCollaborationClient','symbol','_status$','onRendered','UniverCollaborationClientPlugin','delete','fill','getUnitId','requireSession','idle','forEach','101376ToqWEa','react/jsx-runtime','Stop\x20presenting','useState','end','stopPresenting','univer-size-4','getTypeOfUnitAdded$','operations','DesktopLiveShareController','rxjs/operators','2405976KiDGzD','pipe','_injector','getTypeOfUnitDisposed$','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleTerminate','parse'];_0x1f1b=function(){return _0x3ea9eb;};return _0x1f1b();}function _0x59c0(_0x5838ab,_0x552b87){_0x5838ab=_0x5838ab-0x177;const _0x1f1ba7=_0x1f1b();let _0x59c0f4=_0x1f1ba7[_0x5838ab];return _0x59c0f4;}(function(_0x3ed9d5,_0x379d24){const _0x21ef92=_0x59c0,_0x518997=_0x3ed9d5();while(!![]){try{const _0x1aae25=parseInt(_0x21ef92(0x1e5))/0x1*(parseInt(_0x21ef92(0x1a3))/0x2)+parseInt(_0x21ef92(0x186))/0x3+-parseInt(_0x21ef92(0x1eb))/0x4*(parseInt(_0x21ef92(0x1bf))/0x5)+-parseInt(_0x21ef92(0x17b))/0x6*(parseInt(_0x21ef92(0x252))/0x7)+parseInt(_0x21ef92(0x1ab))/0x8+parseInt(_0x21ef92(0x1be))/0x9+parseInt(_0x21ef92(0x193))/0xa;if(_0x1aae25===_0x379d24)break;else _0x518997['push'](_0x518997['shift']());}catch(_0x279bce){_0x518997['push'](_0x518997['shift']());}}}(_0x1f1b,0x6edcc),function(_0x1e84a9,_0x1d21d1){const _0x2922b5=_0x59c0;typeof exports==_0x2922b5(0x1b5)&&typeof module<'u'?_0x1d21d1(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==_0x2922b5(0x218)&&define[_0x2922b5(0x19e)]?define(['exports',_0x2922b5(0x243),'@univerjs/ui',_0x2922b5(0x17c),_0x2922b5(0x1df),_0x2922b5(0x1a0),_0x2922b5(0x1ed),_0x2922b5(0x1f9),'@univerjs/sheets','rxjs',_0x2922b5(0x185),_0x2922b5(0x212)],_0x1d21d1):(_0x1e84a9=typeof globalThis<'u'?globalThis:_0x1e84a9||self,_0x1d21d1(_0x1e84a9['UniverProLiveShare']={},_0x1e84a9['UniverCore'],_0x1e84a9[_0x2922b5(0x1d0)],_0x1e84a9['React'],_0x1e84a9[_0x2922b5(0x217)],_0x1e84a9['React'],_0x1e84a9[_0x2922b5(0x21f)],_0x1e84a9[_0x2922b5(0x25a)],_0x1e84a9[_0x2922b5(0x231)],_0x1e84a9['rxjs'],_0x1e84a9[_0x2922b5(0x19d)]['operators'],_0x1e84a9['UniverSheetsUi']));}(this,function(_0x3f8dd7,_0x5de346,_0xbe2261,_0x3f7f80,_0x467f51,_0x56f208,_0x23135f,_0x9963ee,_0x224e4b,_0x2feeac,_0x10b0ec,_0x17684d){'use strict';const _0x3f4303=_0x59c0;var _0x235610=Object[_0x3f4303(0x1af)],_0x3adf7c=(_0x707d67,_0x476bbc,_0x3af2a2)=>_0x476bbc in _0x707d67?_0x235610(_0x707d67,_0x476bbc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3af2a2}):_0x707d67[_0x476bbc]=_0x3af2a2,_0x267f59=(_0x485e13,_0x2699f3,_0x4b4b2c)=>_0x3adf7c(_0x485e13,typeof _0x2699f3!=_0x3f4303(0x25b)?_0x2699f3+'':_0x2699f3,_0x4b4b2c);function _0x2bb265({ref:_0x5dd360,..._0x1d3bba}){const _0x44450f=_0x3f4303,{icon:_0x6ffec8,id:_0x464444,className:_0x2b5319,extend:_0x3ea3c0,..._0x48f605}=_0x1d3bba,_0x4c4ae6=(_0x44450f(0x22e)+_0x464444+'\x20'+(_0x2b5319||''))[_0x44450f(0x1ce)](),_0x292230=_0x56f208[_0x44450f(0x195)]('_'+_0x52bedf());return _0x5bdb7c(_0x6ffec8,''+_0x464444,{'defIds':_0x6ffec8[_0x44450f(0x24f)],'idSuffix':_0x292230[_0x44450f(0x1c5)]},{'ref':_0x5dd360,'className':_0x4c4ae6,..._0x48f605},_0x3ea3c0);}function _0x5bdb7c(_0x3cf796,_0x1a7f17,_0x1074e7,_0x4b3076,_0x156dda){const _0x1398ba=_0x3f4303;return _0x56f208[_0x1398ba(0x1b1)](_0x3cf796[_0x1398ba(0x21e)],{'key':_0x1a7f17,..._0x5b37e7(_0x3cf796,_0x1074e7,_0x156dda),..._0x4b3076},(_0x5af350(_0x3cf796,_0x1074e7)[_0x1398ba(0x1a6)]||[])['map']((_0x492f04,_0x4f5a89)=>_0x5bdb7c(_0x492f04,_0x1a7f17+'-'+_0x3cf796[_0x1398ba(0x21e)]+'-'+_0x4f5a89,_0x1074e7,void 0x0,_0x156dda)));}function _0x5b37e7(_0x112d6c,_0x296487,_0x5889da){const _0x1dda17=_0x3f4303,_0x13e531={..._0x112d6c[_0x1dda17(0x1c7)]};_0x5889da!=null&&_0x5889da[_0x1dda17(0x1fc)]&&_0x13e531[_0x1dda17(0x260)]==='colorChannel1'&&(_0x13e531[_0x1dda17(0x260)]=_0x5889da['colorChannel1']),_0x112d6c[_0x1dda17(0x21e)]===_0x1dda17(0x220)&&_0x13e531['id']&&(_0x13e531['id']=_0x13e531['id']+_0x296487['idSuffix']),Object['entries'](_0x13e531)[_0x1dda17(0x17a)](([_0x581763,_0x41fd74])=>{const _0xf11d08=_0x1dda17;_0x581763===_0xf11d08(0x220)&&typeof _0x41fd74=='string'&&(_0x13e531[_0x581763]=_0x41fd74['replace'](/url\(#(.*)\)/,_0xf11d08(0x254)+_0x296487[_0xf11d08(0x223)]+')'));});const {defIds:_0x3f9ec4}=_0x296487;return!_0x3f9ec4||_0x3f9ec4[_0x1dda17(0x1f1)]===0x0||(_0x112d6c[_0x1dda17(0x21e)]==='use'&&_0x13e531[_0x1dda17(0x215)]&&(_0x13e531['xlink:href']=_0x13e531['xlink:href']+_0x296487['idSuffix']),Object[_0x1dda17(0x21a)](_0x13e531)[_0x1dda17(0x17a)](([_0x31d5e2,_0x596293])=>{const _0x2659ff=_0x1dda17;typeof _0x596293==_0x2659ff(0x214)&&(_0x13e531[_0x31d5e2]=_0x596293[_0x2659ff(0x201)](/url\(#(.*)\)/,_0x2659ff(0x254)+_0x296487['idSuffix']+')'));})),_0x13e531;}function _0x5af350(_0x41ef2e,_0x259943){const _0x4efaad=_0x3f4303;var _0x4e8873;const {defIds:_0x3b6fea}=_0x259943;return!_0x3b6fea||_0x3b6fea['length']===0x0?_0x41ef2e:_0x41ef2e[_0x4efaad(0x21e)]===_0x4efaad(0x1b0)&&((_0x4e8873=_0x41ef2e[_0x4efaad(0x1a6)])!=null&&_0x4e8873[_0x4efaad(0x1f1)])?{..._0x41ef2e,'children':_0x41ef2e['children']['map'](_0x2ae1cb=>typeof _0x2ae1cb['attrs']['id']==_0x4efaad(0x214)&&_0x3b6fea&&_0x3b6fea[_0x4efaad(0x24d)](_0x2ae1cb[_0x4efaad(0x1c7)]['id'])?{..._0x2ae1cb,'attrs':{..._0x2ae1cb['attrs'],'id':_0x2ae1cb[_0x4efaad(0x1c7)]['id']+_0x259943[_0x4efaad(0x223)]}}:_0x2ae1cb)}:_0x41ef2e;}function _0x52bedf(){const _0xae57e7=_0x3f4303;return Math[_0xae57e7(0x1dd)]()[_0xae57e7(0x23d)](0x24)[_0xae57e7(0x1ad)](0x2,0x8);}_0x2bb265[_0x3f4303(0x228)]=_0x3f4303(0x23f);const _0x5cdc3c={'tag':'svg','attrs':{'xmlns':_0x3f4303(0x237),'fill':_0x3f4303(0x236),'viewBox':_0x3f4303(0x1e9),'width':_0x3f4303(0x224),'height':_0x3f4303(0x224)},'children':[{'tag':_0x3f4303(0x240),'attrs':{'fill':_0x3f4303(0x18d),'d':_0x3f4303(0x1c3)}},{'tag':_0x3f4303(0x240),'attrs':{'fill':_0x3f4303(0x18d),'d':_0x3f4303(0x1d2),'fillRule':'evenodd','clipRule':_0x3f4303(0x24e)}}]},_0x39d085=_0x56f208[_0x3f4303(0x1bc)](function(_0x508a09,_0x3b54d2){const _0x2c799e=_0x3f4303;return _0x56f208[_0x2c799e(0x1b1)](_0x2bb265,Object['assign']({},_0x508a09,{'id':_0x2c799e(0x23a),'ref':_0x3b54d2,'icon':_0x5cdc3c}));});_0x39d085[_0x3f4303(0x228)]='LiveShareIcon';class _0x43e8b2 extends _0x5de346[_0x3f4303(0x20f)]{constructor(){const _0x258716=_0x3f4303;super(...arguments),_0x267f59(this,_0x258716(0x1d9),new Set()),_0x267f59(this,_0x258716(0x1dc),new Set());}[_0x3f4303(0x199)](_0x5008e2){const _0x4abf70=_0x3f4303;return this[_0x4abf70(0x1d9)][_0x4abf70(0x1e0)](_0x5008e2),_0x5de346[_0x4abf70(0x1aa)](()=>this['_sharedOperations'][_0x4abf70(0x25f)](_0x5008e2));}[_0x3f4303(0x258)](_0x37bd8b){const _0x459c26=_0x3f4303;return this['_reporters'][_0x459c26(0x1e0)](_0x37bd8b),_0x5de346[_0x459c26(0x1aa)](()=>this[_0x459c26(0x1dc)]['delete'](_0x37bd8b));}[_0x3f4303(0x24a)](_0x5bf8ff){const _0x4b2628=_0x3f4303;return this[_0x4b2628(0x1d9)][_0x4b2628(0x1d6)](_0x5bf8ff);}[_0x3f4303(0x1fd)](_0x8c9f08){const _0x20ce65=_0x3f4303;return Array[_0x20ce65(0x246)](this['_reporters'])[_0x20ce65(0x238)](_0x26455b=>_0x26455b(_0x8c9f08));}}var _0x28b623=Object[_0x3f4303(0x1b7)],_0x39e6df=(_0x4d6338,_0x5d5fb0,_0x5b5573,_0x588972)=>{const _0x53ee65=_0x3f4303;for(var _0xfc7fb3=_0x588972>0x1?void 0x0:_0x588972?_0x28b623(_0x5d5fb0,_0x5b5573):_0x5d5fb0,_0x59c9dd=_0x4d6338[_0x53ee65(0x1f1)]-0x1,_0x4e51e5;_0x59c9dd>=0x0;_0x59c9dd--)(_0x4e51e5=_0x4d6338[_0x59c9dd])&&(_0xfc7fb3=_0x4e51e5(_0xfc7fb3)||_0xfc7fb3);return _0xfc7fb3;},_0x350ce=(_0x206985,_0x3cc43c)=>(_0x504cd9,_0x3156a9)=>_0x3cc43c(_0x504cd9,_0x3156a9,_0x206985);_0x3f8dd7[_0x3f4303(0x197)]=class extends _0x5de346[_0x3f4303(0x1f2)]{constructor(_0x1a2a68,_0x217f25,_0xe79c05){const _0x59a3ef=_0x3f4303;super(),_0x267f59(this,_0x59a3ef(0x1a1),new Map()),(this[_0x59a3ef(0x20d)]=_0x1a2a68,this[_0x59a3ef(0x188)]=_0x217f25,this['_collabSessionService']=_0xe79c05,this[_0x59a3ef(0x196)]());}async[_0x3f4303(0x244)](_0x4777d3){const _0x4ff69c=_0x3f4303;return this[_0x4ff69c(0x1a1)][_0x4ff69c(0x1d6)](_0x4777d3)||await this['_startLiveShareCoordinator'](_0x4777d3),this[_0x4ff69c(0x1a1)][_0x4ff69c(0x1a7)](_0x4777d3);}[_0x3f4303(0x257)](_0x901d48){const _0x29378f=_0x3f4303;var _0x46ecdb;return(_0x46ecdb=this[_0x29378f(0x1a1)][_0x29378f(0x1a7)](_0x901d48))!=null?_0x46ecdb:null;}[_0x3f4303(0x196)](){const _0x1aa3a3=_0x3f4303;this[_0x1aa3a3(0x20d)][_0x1aa3a3(0x182)](_0x5de346[_0x1aa3a3(0x225)][_0x1aa3a3(0x250)])[_0x1aa3a3(0x187)](_0x10b0ec[_0x1aa3a3(0x239)](this['dispose$']))[_0x1aa3a3(0x19b)](async _0x1c4462=>{const _0x32858d=_0x1aa3a3,_0x4fe4b9=_0x1c4462[_0x32858d(0x177)]();this['_entities'][_0x32858d(0x1d6)](_0x4fe4b9)||this['_startLiveShareCoordinator'](_0x4fe4b9);}),this['_univerInstanceService'][_0x1aa3a3(0x189)](_0x5de346[_0x1aa3a3(0x225)][_0x1aa3a3(0x250)])[_0x1aa3a3(0x187)](_0x10b0ec[_0x1aa3a3(0x239)](this[_0x1aa3a3(0x1ba)]))['subscribe'](_0x4d33c5=>{const _0x23247c=_0x1aa3a3,_0x33a073=_0x4d33c5[_0x23247c(0x177)](),_0x3f2477=this[_0x23247c(0x1a1)][_0x23247c(0x1a7)](_0x33a073);_0x3f2477==null||_0x3f2477['dispose']();});}async[_0x3f4303(0x1ac)](_0x248998){const _0x329497=_0x3f4303,_0x556757=await this[_0x329497(0x22f)][_0x329497(0x178)](_0x248998),_0x51e701=this[_0x329497(0x188)]['createInstance'](_0x3f8dd7['LiveShareCoordinator'],_0x248998,_0x556757);return _0x51e701['init'](),this[_0x329497(0x1a1)][_0x329497(0x242)](_0x248998,_0x51e701),_0x51e701;}},_0x3f8dd7[_0x3f4303(0x197)]=_0x39e6df([_0x350ce(0x0,_0x5de346[_0x3f4303(0x1fa)]),_0x350ce(0x1,_0x5de346[_0x3f4303(0x1e1)](_0x5de346['Injector'])),_0x350ce(0x2,_0x5de346[_0x3f4303(0x1e1)](_0x9963ee[_0x3f4303(0x1b2)]))],_0x3f8dd7[_0x3f4303(0x197)]);var _0x24db46=(_0x12d578=>(_0x12d578[_0x3f4303(0x1f3)]=_0x3f4303(0x209),_0x12d578[_0x3f4303(0x219)]=_0x3f4303(0x179),_0x12d578['FOLLOWING']=_0x3f4303(0x255),_0x12d578[_0x3f4303(0x22d)]=_0x3f4303(0x202),_0x12d578[_0x3f4303(0x19c)]=_0x3f4303(0x1b9),_0x12d578))(_0x24db46||{});const _0x302ce9=_0x3f4303(0x1da),_0x3b589e=0xc8;_0x3f8dd7[_0x3f4303(0x23e)]=class extends _0x5de346[_0x3f4303(0x1f2)]{constructor(_0x6f88f9,_0x20210b,_0x28a52b,_0x422c0b,_0x36184b){const _0x37585c=_0x3f4303;super(),_0x267f59(this,_0x37585c(0x25c),new _0x2feeac[(_0x37585c(0x1d7))](_0x37585c(0x179))),_0x267f59(this,_0x37585c(0x1fb),this[_0x37585c(0x25c)]['asObservable']()),_0x267f59(this,_0x37585c(0x196),!0x1),_0x267f59(this,'_commandDisposable',null),_0x267f59(this,'_presenter',null),(this['_unitID']=_0x6f88f9,this[_0x37585c(0x21b)]=_0x20210b,this['_configService']=_0x28a52b,this['_liveShareService']=_0x422c0b,this['_commandService']=_0x36184b);}get[_0x3f4303(0x23c)](){const _0x4e5395=_0x3f4303;return this[_0x4e5395(0x25c)]['getValue']();}[_0x3f4303(0x1f4)](){const _0x4f8334=_0x3f4303;var _0x30b8c3;(_0x30b8c3=this['_commandDisposable'])==null||_0x30b8c3[_0x4f8334(0x1f4)](),this[_0x4f8334(0x25c)][_0x4f8334(0x198)](_0x4f8334(0x179)),this[_0x4f8334(0x25c)][_0x4f8334(0x18f)]();}[_0x3f4303(0x235)](){const _0x358763=_0x3f4303;return this[_0x358763(0x23c)];}[_0x3f4303(0x1cf)](){const _0x4e5ffb=_0x3f4303;this[_0x4e5ffb(0x196)]||(this[_0x4e5ffb(0x196)]=!0x0,this[_0x4e5ffb(0x21b)][_0x4e5ffb(0x256)][_0x4e5ffb(0x187)](_0x10b0ec[_0x4e5ffb(0x239)](this['dispose$']))[_0x4e5ffb(0x19b)](_0x4d57e3=>{const _0x4d6c94=_0x4e5ffb;switch(_0x4d57e3){case _0x9963ee['SessionStatus'][_0x4d6c94(0x1f3)]:this[_0x4d6c94(0x20c)]();break;case _0x9963ee[_0x4d6c94(0x1f6)][_0x4d6c94(0x1ca)]:this[_0x4d6c94(0x1c9)]();break;}}),this[_0x4e5ffb(0x21b)][_0x4e5ffb(0x251)][_0x4e5ffb(0x187)](_0x10b0ec[_0x4e5ffb(0x239)](this[_0x4e5ffb(0x1ba)]))['subscribe'](_0x4a366e=>{const _0x43b011=_0x4e5ffb,{eventID:_0x417bac}=_0x4a366e;switch(_0x417bac){case _0x23135f[_0x43b011(0x18e)][_0x43b011(0x1cd)]:this['_handleNewHost'](_0x4a366e);break;case _0x23135f[_0x43b011(0x18e)][_0x43b011(0x1a9)]:this[_0x43b011(0x200)](_0x4a366e);break;case _0x23135f[_0x43b011(0x18e)][_0x43b011(0x229)]:this[_0x43b011(0x18b)]();break;case _0x23135f[_0x43b011(0x18e)][_0x43b011(0x1a2)]:this[_0x43b011(0x208)](_0x4a366e);break;}}));}['tryStartPresenting'](){const _0x4cdfad=_0x3f4303;this[_0x4cdfad(0x21b)][_0x4cdfad(0x1d5)]({'eventID':_0x23135f['CollaborationEvent'][_0x4cdfad(0x1e3)],'data':{'unitID':this[_0x4cdfad(0x1d3)],'userID':this[_0x4cdfad(0x21b)][_0x4cdfad(0x192)]()}},this[_0x4cdfad(0x1d3)]);}[_0x3f4303(0x180)](){const _0x388091=_0x3f4303;this[_0x388091(0x23c)]===_0x388091(0x1b9)&&(this[_0x388091(0x25c)][_0x388091(0x198)](_0x388091(0x179)),this[_0x388091(0x21b)][_0x388091(0x1d5)]({'eventID':_0x23135f[_0x388091(0x18e)][_0x388091(0x229)],'data':{'unitID':this['_unitID']}},this[_0x388091(0x1d3)]));}[_0x3f4303(0x1a5)](){const _0x12f9a6=_0x3f4303;this[_0x12f9a6(0x23c)]===_0x12f9a6(0x202)&&(this[_0x12f9a6(0x25c)][_0x12f9a6(0x198)](_0x12f9a6(0x255)),this[_0x12f9a6(0x232)]());}['stopFollowing'](){const _0x1e301a=_0x3f4303;this[_0x1e301a(0x23c)]===_0x1e301a(0x255)&&this[_0x1e301a(0x213)]();}[_0x3f4303(0x22a)](_0x4d208e){const _0x40d6e0=_0x3f4303,{presenter:_0x102e2d}=_0x4d208e[_0x40d6e0(0x1f0)],_0x2a8775=this[_0x40d6e0(0x21b)][_0x40d6e0(0x192)]();this[_0x40d6e0(0x1d1)]=_0x102e2d,_0x102e2d===_0x2a8775?(this[_0x40d6e0(0x213)](),this['_startPresenting']()):this['_status']!==_0x40d6e0(0x202)&&(this[_0x40d6e0(0x1cb)](),this[_0x40d6e0(0x232)]());}[_0x3f4303(0x1b6)](){const _0x335034=_0x3f4303,_0x367b29={'eventID':_0x23135f[_0x335034(0x18e)][_0x335034(0x233)]};this[_0x335034(0x21b)][_0x335034(0x1d5)](_0x367b29,this['_unitID']);}[_0x3f4303(0x18b)](){const _0x4723b7=_0x3f4303;this[_0x4723b7(0x1d1)]=null,this['_status']!==_0x4723b7(0x1b9)&&this[_0x4723b7(0x1de)]();}[_0x3f4303(0x208)](_0x264e5c){const _0x21a053=_0x3f4303;if(this[_0x21a053(0x23c)]===_0x21a053(0x255)&&this[_0x21a053(0x1d1)]===_0x264e5c['data'][_0x21a053(0x20b)]){const _0x46cd3e=_0x23135f['parseProtocolChangeset'](_0x264e5c[_0x21a053(0x1f0)])[_0x21a053(0x1c1)]['reverse']()[_0x21a053(0x247)](_0x28e944=>_0x28e944['id']===_0x224e4b['InsertSheetMutation']['id']);if(_0x46cd3e){const _0x435069=_0x46cd3e[_0x21a053(0x1ec)][_0x21a053(0x1b3)],_0x397c95=_0x46cd3e[_0x21a053(0x1ec)][_0x21a053(0x20e)]['id'];setTimeout(()=>{const _0xaf18e1=_0x21a053;this[_0xaf18e1(0x1c0)]['executeCommand'](_0x224e4b['SetWorksheetActiveOperation']['id'],{'unitId':_0x435069,'subUnitId':_0x397c95},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x389adb=_0x3f4303;this['_status$'][_0x389adb(0x198)](_0x389adb(0x1b9));const _0x52495d=new Map(),_0x256121=this[_0x389adb(0x1c6)]=new _0x5de346['DisposableCollection']();_0x256121[_0x389adb(0x1e0)](_0x5de346['toDisposable'](()=>{const _0x270912=_0x389adb;_0x52495d[_0x270912(0x17a)](_0x4b8f87=>_0x4b8f87[_0x270912(0x18f)]()),_0x52495d[_0x270912(0x191)]();})),_0x256121[_0x389adb(0x1e0)](this[_0x389adb(0x1c0)]['onCommandExecuted'](_0x208704=>{const _0x160183=_0x389adb;var _0x578915;if(_0x208704[_0x160183(0x1cc)]!==_0x5de346['CommandType'][_0x160183(0x24b)]||!this[_0x160183(0x1e8)][_0x160183(0x24a)](_0x208704['id']))return;const {id:_0x4248b7}=_0x208704;let _0x61c2b;_0x52495d[_0x160183(0x1d6)](_0x4248b7)?_0x61c2b=_0x52495d[_0x160183(0x1a7)](_0x4248b7):(_0x61c2b=new _0x2feeac[(_0x160183(0x1db))](),_0x52495d[_0x160183(0x242)](_0x4248b7,_0x61c2b),_0x61c2b[_0x160183(0x187)](_0x10b0ec[_0x160183(0x22b)]((_0x578915=this['_configService'][_0x160183(0x1e2)](_0x302ce9))!=null?_0x578915:_0x3b589e,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x160183(0x19b)](_0x103762=>{const _0x59b137=_0x160183;this['_collabSession'][_0x59b137(0x1d5)]({'eventID':_0x23135f[_0x59b137(0x18e)][_0x59b137(0x1a9)],'data':{'unitID':this[_0x59b137(0x1d3)],'operations':{[_0x103762['id']]:{'id':_0x103762['id'],'params':JSON[_0x59b137(0x24c)](_0x103762[_0x59b137(0x1ec)])}}}},this[_0x59b137(0x1d3)]);})),_0x61c2b[_0x160183(0x198)](_0x208704);})),this['_liveShareService']['getInitialStates'](this['_unitID'])[_0x389adb(0x17a)](_0x5c28d4=>this[_0x389adb(0x21b)][_0x389adb(0x1d5)]({'eventID':_0x23135f[_0x389adb(0x18e)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x389adb(0x1d3)],'operations':{[_0x5c28d4['id']]:{'id':_0x5c28d4['id'],'params':JSON['stringify'](_0x5c28d4[_0x389adb(0x1ec)])}}}},this['_unitID']));}[_0x3f4303(0x1cb)](){const _0x2d8ae8=_0x3f4303;var _0x13349e;this[_0x2d8ae8(0x25c)]['next'](_0x2d8ae8(0x179)),(_0x13349e=this[_0x2d8ae8(0x1c6)])==null||_0x13349e[_0x2d8ae8(0x1f4)](),this[_0x2d8ae8(0x1c6)]=null;}[_0x3f4303(0x232)](){const _0x1cca07=_0x3f4303;var _0x5d706c;(_0x5d706c=this[_0x1cca07(0x1c6)])==null||_0x5d706c[_0x1cca07(0x1f4)](),this[_0x1cca07(0x25c)][_0x1cca07(0x198)](_0x1cca07(0x255));}['_beIdle'](){const _0x3d148c=_0x3f4303;var _0x736443;this[_0x3d148c(0x25c)][_0x3d148c(0x198)](_0x3d148c(0x179)),(_0x736443=this[_0x3d148c(0x1c6)])==null||_0x736443[_0x3d148c(0x1f4)](),this[_0x3d148c(0x1c6)]=null;}[_0x3f4303(0x213)](){const _0x5f5bb0=_0x3f4303;var _0x5b2ae1;this[_0x5f5bb0(0x25c)]['next'](_0x5f5bb0(0x202)),(_0x5b2ae1=this[_0x5f5bb0(0x1c6)])==null||_0x5b2ae1['dispose']();}[_0x3f4303(0x200)](_0x477102){const _0x579ada=_0x3f4303;if([_0x579ada(0x1b9),_0x579ada(0x202),'offline']['includes'](this['_status'])||!_0x477102[_0x579ada(0x1f0)][_0x579ada(0x222)]||_0x477102[_0x579ada(0x1f0)]['presenter']===this[_0x579ada(0x21b)][_0x579ada(0x192)]())return;this[_0x579ada(0x23c)]==='idle'&&this[_0x579ada(0x232)]();const _0x112d6a=_0x477102['data'][_0x579ada(0x183)];Object[_0x579ada(0x20a)](_0x112d6a)[_0x579ada(0x17a)](_0x4dd16b=>{const _0x317f8b=_0x579ada;this['_commandService'][_0x317f8b(0x1b4)](_0x4dd16b['id'],_0x4dd16b[_0x317f8b(0x1ec)]?JSON[_0x317f8b(0x18c)](_0x4dd16b['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x1ee2e0=_0x3f4303;var _0x33d54d;this['_status$']['next']('offline'),(_0x33d54d=this[_0x1ee2e0(0x1c6)])==null||_0x33d54d[_0x1ee2e0(0x1f4)]();}['_handleOnline'](){const _0x4b5832=_0x3f4303;this[_0x4b5832(0x25c)][_0x4b5832(0x198)](_0x4b5832(0x179)),this[_0x4b5832(0x1b6)]();}},_0x3f8dd7['LiveShareCoordinator']=_0x39e6df([_0x350ce(0x2,_0x5de346[_0x3f4303(0x19f)]),_0x350ce(0x3,_0x5de346[_0x3f4303(0x1e1)](_0x43e8b2)),_0x350ce(0x4,_0x5de346[_0x3f4303(0x190)])],_0x3f8dd7[_0x3f4303(0x23e)]);function _0x2a2c96(){const _0x304df6=_0x3f4303,_0x34950c=_0xbe2261[_0x304df6(0x22c)](_0x3f8dd7['LiveShareController']),_0x208a4f=_0xbe2261[_0x304df6(0x22c)](_0x5de346[_0x304df6(0x1fa)]),_0xfc84ca=_0xbe2261['useObservable'](()=>_0x208a4f[_0x304df6(0x1e6)](_0x5de346[_0x304df6(0x225)][_0x304df6(0x250)]),void 0x0,!0x1,[]),[_0x556de0,_0x234593]=_0x56f208['useState'](null),[_0x42b71b,_0x21af2d]=_0x56f208[_0x304df6(0x17e)](_0x24db46[_0x304df6(0x219)]),_0x51050c=_0x56f208[_0x304df6(0x195)](null);return _0x56f208[_0x304df6(0x221)](()=>(_0xfc84ca&&_0x34950c[_0x304df6(0x244)](_0xfc84ca[_0x304df6(0x177)]())['then'](_0x442218=>{const _0x54e05b=_0x304df6;_0x234593(_0x442218),_0x51050c[_0x54e05b(0x1c5)]=_0x442218['status$']['subscribe'](_0x455630=>{_0x21af2d(_0x455630);});}),()=>{const _0x42d764=_0x304df6;var _0x2af371;(_0x2af371=_0x51050c['current'])==null||_0x2af371[_0x42d764(0x1fe)](),_0x51050c[_0x42d764(0x1c5)]=null;}),[_0xfc84ca,_0x34950c]),_0x556de0?_0x3f7f80[_0x304df6(0x216)](_0x467f51[_0x304df6(0x259)],{'align':_0x304df6(0x17f),'disabled':_0x42b71b===_0x24db46[_0x304df6(0x1f3)],'className':_0x304df6(0x1c4),'overlay':_0x3f7f80[_0x304df6(0x216)](_0x44477f,{'status':_0x42b71b,'coordinator':_0x556de0}),'children':_0x3f7f80['jsx'](_0x304df6(0x1d8),{'className':_0x467f51[_0x304df6(0x194)](_0x304df6(0x23b),{'univer-cursor-not-allowed':_0x42b71b===_0x24db46[_0x304df6(0x1f3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x42b71b!==_0x24db46[_0x304df6(0x1f3)]}),'type':_0x304df6(0x1d8),'children':_0x3f7f80[_0x304df6(0x216)](_0x39d085,{'className':_0x304df6(0x181)})})}):null;}function _0x44477f(_0x54b0de){const _0x12fdbf=_0x3f4303,{status:_0x2d9470,coordinator:_0x5d3b4a}=_0x54b0de;switch(_0x2d9470){case _0x24db46[_0x12fdbf(0x219)]:return _0x3f7f80['jsx'](_0x1da275,{'coordinator':_0x5d3b4a});case _0x24db46[_0x12fdbf(0x253)]:return _0x3f7f80[_0x12fdbf(0x216)](_0x58802b,{'coordinator':_0x5d3b4a});case _0x24db46[_0x12fdbf(0x22d)]:return _0x3f7f80[_0x12fdbf(0x216)](_0xfaa881,{'coordinator':_0x5d3b4a});case _0x24db46['OFFLINE']:return _0x3f7f80['jsx'](_0x10b327,{});case _0x24db46[_0x12fdbf(0x19c)]:return _0x3f7f80[_0x12fdbf(0x216)](_0x255283,{'coordinator':_0x5d3b4a});default:return null;}}function _0x1da275(_0x5d95bf){const _0x4f2e30=_0x3f4303,{coordinator:_0x2ff481}=_0x5d95bf;return _0x3f7f80[_0x4f2e30(0x227)](_0x3f7f80[_0x4f2e30(0x245)],{'children':[_0x3f7f80[_0x4f2e30(0x216)](_0x4f2e30(0x21c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4f2e30(0x203)}),_0x3f7f80[_0x4f2e30(0x216)](_0x467f51[_0x4f2e30(0x19a)],{'onClick':()=>_0x2ff481[_0x4f2e30(0x1d4)](),'children':_0x4f2e30(0x234)})]});}function _0x58802b(_0x22dc8e){const _0x4730ef=_0x3f4303,{coordinator:_0x38a83f}=_0x22dc8e;return _0x3f7f80[_0x4730ef(0x227)](_0x3f7f80[_0x4730ef(0x245)],{'children':[_0x3f7f80['jsx'](_0x4730ef(0x21c),{'className':_0x4730ef(0x18a),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x3f7f80[_0x4730ef(0x216)](_0x467f51[_0x4730ef(0x19a)],{'onClick':()=>_0x38a83f[_0x4730ef(0x206)](),'children':'Stop\x20following'})]});}function _0xfaa881(_0x4b29a2){const _0x892d41=_0x3f4303,{coordinator:_0x43302d}=_0x4b29a2;return _0x3f7f80[_0x892d41(0x227)](_0x3f7f80[_0x892d41(0x245)],{'children':[_0x3f7f80[_0x892d41(0x216)](_0x892d41(0x21c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x3f7f80['jsx'](_0x467f51[_0x892d41(0x19a)],{'variant':'text','onClick':()=>_0x43302d['startFollowing'](),'children':'Start\x20following'})]});}function _0x255283(_0x254491){const _0x11cc1f=_0x3f4303,{coordinator:_0x3c4f54}=_0x254491;return _0x3f7f80[_0x11cc1f(0x227)](_0x3f7f80[_0x11cc1f(0x245)],{'children':[_0x3f7f80[_0x11cc1f(0x216)](_0x11cc1f(0x21c),{'className':_0x11cc1f(0x18a),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x3f7f80[_0x11cc1f(0x216)](_0x467f51[_0x11cc1f(0x19a)],{'variant':_0x11cc1f(0x211),'onClick':()=>_0x3c4f54[_0x11cc1f(0x180)](),'children':_0x11cc1f(0x17d)})]});}function _0x10b327(){const _0x4133e5=_0x3f4303;return _0x3f7f80[_0x4133e5(0x216)](_0x3f7f80[_0x4133e5(0x245)],{'children':_0x4133e5(0x230)});}var _0x10ff0f=Object[_0x3f4303(0x1b7)],_0x5244af=(_0x3c755b,_0x363e74,_0x8e1e06,_0x309115)=>{for(var _0xf49dee=_0x309115>0x1?void 0x0:_0x309115?_0x10ff0f(_0x363e74,_0x8e1e06):_0x363e74,_0x434a23=_0x3c755b['length']-0x1,_0x15cb85;_0x434a23>=0x0;_0x434a23--)(_0x15cb85=_0x3c755b[_0x434a23])&&(_0xf49dee=_0x15cb85(_0xf49dee)||_0xf49dee);return _0xf49dee;},_0x3b87ec=(_0x28ca9a,_0x2d21bb)=>(_0x40f1b4,_0x25bb8e)=>_0x2d21bb(_0x40f1b4,_0x25bb8e,_0x28ca9a);_0x3f8dd7[_0x3f4303(0x184)]=class extends _0x5de346[_0x3f4303(0x20f)]{constructor(_0x25dd94,_0x5823db){const _0x2818d2=_0x3f4303;super(),this[_0x2818d2(0x188)]=_0x25dd94,this['_uiPartsService']=_0x5823db,this[_0x2818d2(0x249)]();}[_0x3f4303(0x249)](){const _0x32146c=_0x3f4303;this[_0x32146c(0x1ea)](this[_0x32146c(0x1c8)]['registerComponent'](_0xbe2261[_0x32146c(0x207)]['HEADER_MENU'],()=>_0xbe2261[_0x32146c(0x205)](_0x2a2c96,this['_injector'])));}},_0x3f8dd7[_0x3f4303(0x184)]=_0x5244af([_0x3b87ec(0x0,_0x5de346[_0x3f4303(0x1e1)](_0x5de346[_0x3f4303(0x1c2)])),_0x3b87ec(0x1,_0xbe2261[_0x3f4303(0x1ff)])],_0x3f8dd7['DesktopLiveShareController']);const _0x194ddf=_0x3f4303(0x1e7),_0xac0da3={};var _0x4b507f=Object['getOwnPropertyDescriptor'],_0x5e9702=(_0x586511,_0x130437,_0x17be1c,_0x8bc752)=>{const _0x360a36=_0x3f4303;for(var _0x4dabe7=_0x8bc752>0x1?void 0x0:_0x8bc752?_0x4b507f(_0x130437,_0x17be1c):_0x130437,_0x5db9b3=_0x586511[_0x360a36(0x1f1)]-0x1,_0x3200d6;_0x5db9b3>=0x0;_0x5db9b3--)(_0x3200d6=_0x586511[_0x5db9b3])&&(_0x4dabe7=_0x3200d6(_0x4dabe7)||_0x4dabe7);return _0x4dabe7;},_0xb7bf7c=(_0x3127a1,_0x76eb9f)=>(_0x371ba5,_0x410ea8)=>_0x76eb9f(_0x371ba5,_0x410ea8,_0x3127a1);let _0x278664=class extends _0x5de346[_0x3f4303(0x20f)]{constructor(_0x33036b){const _0x2cbba5=_0x3f4303;super(),this[_0x2cbba5(0x1e8)]=_0x33036b,this[_0x2cbba5(0x196)]();}[_0x3f4303(0x196)](){const _0x12cd71=_0x3f4303;[_0x17684d[_0x12cd71(0x1ae)]['id'],_0x17684d[_0x12cd71(0x1e4)]['id'],_0x224e4b[_0x12cd71(0x1f8)]['id']][_0x12cd71(0x17a)](_0x43edb8=>{const _0x47df84=_0x12cd71;this[_0x47df84(0x1ea)](this[_0x47df84(0x1e8)][_0x47df84(0x199)](_0x43edb8));});}};_0x278664=_0x5e9702([_0xb7bf7c(0x0,_0x5de346[_0x3f4303(0x1e1)](_0x43e8b2))],_0x278664);var _0x3a8d55=Object[_0x3f4303(0x1af)],_0x4b4aa7=Object[_0x3f4303(0x1b7)],_0x98e340=(_0x4d6d63,_0x2e7469,_0xa42616)=>_0x2e7469 in _0x4d6d63?_0x3a8d55(_0x4d6d63,_0x2e7469,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa42616}):_0x4d6d63[_0x2e7469]=_0xa42616,_0x12e2b4=(_0x29b03c,_0x11c14b,_0x324bfa,_0x58afa9)=>{const _0x34839a=_0x3f4303;for(var _0x3b0ab1=_0x58afa9>0x1?void 0x0:_0x58afa9?_0x4b4aa7(_0x11c14b,_0x324bfa):_0x11c14b,_0x2c10ac=_0x29b03c[_0x34839a(0x1f1)]-0x1,_0x62953;_0x2c10ac>=0x0;_0x2c10ac--)(_0x62953=_0x29b03c[_0x2c10ac])&&(_0x3b0ab1=_0x62953(_0x3b0ab1)||_0x3b0ab1);return _0x3b0ab1;},_0x3e8d8a=(_0x3a38a5,_0x31734e)=>(_0x1d1330,_0x554f5d)=>_0x31734e(_0x1d1330,_0x554f5d,_0x3a38a5),_0x1f456a=(_0x7a145,_0x197c73,_0x3e6ae7)=>_0x98e340(_0x7a145,typeof _0x197c73!=_0x3f4303(0x25b)?_0x197c73+'':_0x197c73,_0x3e6ae7);const _0x13ef6c=_0x3f4303(0x1ef);_0x3f8dd7[_0x3f4303(0x226)]=class extends _0x5de346[_0x3f4303(0x1f5)]{constructor(_0x4219d1=_0xac0da3,_0x4f2ed5,_0x47fff6){const _0x14baa7=_0x3f4303;super(),this[_0x14baa7(0x210)]=_0x4219d1,this[_0x14baa7(0x188)]=_0x4f2ed5,this[_0x14baa7(0x21d)]=_0x47fff6;const {..._0x35bfa5}=_0x5de346[_0x14baa7(0x1bd)]({},_0xac0da3,this[_0x14baa7(0x210)]);this['_configService'][_0x14baa7(0x204)](_0x194ddf,_0x35bfa5);}['onStarting'](){const _0x46fae9=_0x3f4303;_0x5de346[_0x46fae9(0x1b8)](this[_0x46fae9(0x188)],_0x5de346[_0x46fae9(0x1f7)]([[_0x43e8b2],[_0x3f8dd7[_0x46fae9(0x197)]],[_0x278664],[_0x3f8dd7[_0x46fae9(0x184)]]],this[_0x46fae9(0x210)][_0x46fae9(0x1a8)])),_0x5de346['touchDependencies'](this[_0x46fae9(0x188)],[[_0x278664]]);}[_0x3f4303(0x25d)](){const _0xb9a5be=_0x3f4303;_0x5de346[_0xb9a5be(0x248)](this[_0xb9a5be(0x188)],[[_0x3f8dd7[_0xb9a5be(0x184)]]]);}},_0x1f456a(_0x3f8dd7[_0x3f4303(0x226)],_0x3f4303(0x1cc),_0x5de346[_0x3f4303(0x225)][_0x3f4303(0x1a4)]),_0x1f456a(_0x3f8dd7[_0x3f4303(0x226)],_0x3f4303(0x1ee),_0x13ef6c),_0x3f8dd7['UniverLiveSharePlugin']=_0x12e2b4([_0x5de346['DependentOn'](_0x9963ee[_0x3f4303(0x25e)]),_0x3e8d8a(0x1,_0x5de346[_0x3f4303(0x1e1)](_0x5de346['Injector'])),_0x3e8d8a(0x2,_0x5de346[_0x3f4303(0x19f)])],_0x3f8dd7['UniverLiveSharePlugin']),_0x3f8dd7['LiveShare']=_0x2a2c96,_0x3f8dd7['LiveShareService']=_0x43e8b2,_0x3f8dd7[_0x3f4303(0x241)]=_0x24db46,Object[_0x3f4303(0x1af)](_0x3f8dd7,Symbol['toStringTag'],{'value':_0x3f4303(0x1bb)});}));
|
|
1
|
+
function _0x23e6(_0x5cb0e4,_0x1d39a1){_0x5cb0e4=_0x5cb0e4-0xf8;const _0x21ce91=_0x21ce();let _0x23e611=_0x21ce91[_0x5cb0e4];return _0x23e611;}(function(_0x356d37,_0x509e8b){const _0x4d8cbe=_0x23e6,_0x2feb3e=_0x356d37();while(!![]){try{const _0x4f7c60=-parseInt(_0x4d8cbe(0x17b))/0x1*(-parseInt(_0x4d8cbe(0x149))/0x2)+parseInt(_0x4d8cbe(0x160))/0x3+-parseInt(_0x4d8cbe(0x19a))/0x4*(-parseInt(_0x4d8cbe(0x147))/0x5)+parseInt(_0x4d8cbe(0x129))/0x6*(-parseInt(_0x4d8cbe(0x1d2))/0x7)+-parseInt(_0x4d8cbe(0x14e))/0x8+-parseInt(_0x4d8cbe(0x18e))/0x9+parseInt(_0x4d8cbe(0x198))/0xa;if(_0x4f7c60===_0x509e8b)break;else _0x2feb3e['push'](_0x2feb3e['shift']());}catch(_0x1cf802){_0x2feb3e['push'](_0x2feb3e['shift']());}}}(_0x21ce,0x7d01c),function(_0x429a9b,_0x56793d){const _0x3bb9c2=_0x23e6;typeof exports=='object'&&typeof module<'u'?_0x56793d(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==_0x3bb9c2(0x110)&&define[_0x3bb9c2(0x199)]?define([_0x3bb9c2(0x166),_0x3bb9c2(0x19f),_0x3bb9c2(0x133),_0x3bb9c2(0x1de),_0x3bb9c2(0x16f),_0x3bb9c2(0x117),_0x3bb9c2(0x17f),_0x3bb9c2(0x1db),_0x3bb9c2(0x178),'rxjs',_0x3bb9c2(0x10f),_0x3bb9c2(0x15a)],_0x56793d):(_0x429a9b=typeof globalThis<'u'?globalThis:_0x429a9b||self,_0x56793d(_0x429a9b[_0x3bb9c2(0x18f)]={},_0x429a9b[_0x3bb9c2(0x17c)],_0x429a9b['UniverUi'],_0x429a9b[_0x3bb9c2(0x1d4)],_0x429a9b[_0x3bb9c2(0x134)],_0x429a9b[_0x3bb9c2(0x1d4)],_0x429a9b[_0x3bb9c2(0x1cf)],_0x429a9b['UniverProCollaborationClient'],_0x429a9b[_0x3bb9c2(0x1cb)],_0x429a9b['rxjs'],_0x429a9b['rxjs']['operators'],_0x429a9b[_0x3bb9c2(0x11f)]));}(this,function(_0x2624a2,_0x1ecc93,_0x20bfb3,_0x49ef39,_0x4e9136,_0x3dc61e,_0x2145d1,_0x30d3fc,_0x402b6a,_0x30a3d1,_0x302b58,_0x527f2d){'use strict';const _0x1d3409=_0x23e6;var _0x2899c0=Object[_0x1d3409(0x1bf)],_0x5a4486=(_0x465a80,_0x4cfac4,_0x1d3a6d)=>_0x4cfac4 in _0x465a80?_0x2899c0(_0x465a80,_0x4cfac4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d3a6d}):_0x465a80[_0x4cfac4]=_0x1d3a6d,_0x107e1d=(_0x1b4e20,_0x139cda,_0x5ec2ab)=>_0x5a4486(_0x1b4e20,typeof _0x139cda!='symbol'?_0x139cda+'':_0x139cda,_0x5ec2ab);function _0x522857({ref:_0x426394,..._0x29f94d}){const _0x313e62=_0x1d3409,{icon:_0x108ee4,id:_0x1d5004,className:_0x37c5ba,extend:_0x1dda5a,..._0x2a958a}=_0x29f94d,_0x4ad367=(_0x313e62(0x1ab)+_0x1d5004+'\x20'+(_0x37c5ba||''))[_0x313e62(0x1a3)](),_0x50f2fd=_0x3dc61e[_0x313e62(0x19e)]('_'+_0x151b9c());return _0x16ea03(_0x108ee4,''+_0x1d5004,{'defIds':_0x108ee4[_0x313e62(0x1da)],'idSuffix':_0x50f2fd[_0x313e62(0x111)]},{'ref':_0x426394,'className':_0x4ad367,..._0x2a958a},_0x1dda5a);}function _0x16ea03(_0x7cfbf0,_0xe3b55b,_0x837c87,_0x2b119d,_0xf9fc9f){const _0x638c26=_0x1d3409;return _0x3dc61e[_0x638c26(0x189)](_0x7cfbf0[_0x638c26(0x16b)],{'key':_0xe3b55b,..._0x11575f(_0x7cfbf0,_0x837c87,_0xf9fc9f),..._0x2b119d},(_0x560615(_0x7cfbf0,_0x837c87)[_0x638c26(0x195)]||[])[_0x638c26(0x102)]((_0x3f4b90,_0x32204f)=>_0x16ea03(_0x3f4b90,_0xe3b55b+'-'+_0x7cfbf0[_0x638c26(0x16b)]+'-'+_0x32204f,_0x837c87,void 0x0,_0xf9fc9f)));}function _0x11575f(_0x1517bd,_0xcedd3d,_0x56ff64){const _0x281c36=_0x1d3409,_0x1bd5da={..._0x1517bd['attrs']};_0x56ff64!=null&&_0x56ff64[_0x281c36(0x11c)]&&_0x1bd5da['fill']==='colorChannel1'&&(_0x1bd5da['fill']=_0x56ff64[_0x281c36(0x11c)]),_0x1517bd[_0x281c36(0x16b)]===_0x281c36(0x12a)&&_0x1bd5da['id']&&(_0x1bd5da['id']=_0x1bd5da['id']+_0xcedd3d[_0x281c36(0x114)]),Object['entries'](_0x1bd5da)[_0x281c36(0x157)](([_0x1ef6d4,_0x475f19])=>{const _0x36f9af=_0x281c36;_0x1ef6d4==='mask'&&typeof _0x475f19==_0x36f9af(0x171)&&(_0x1bd5da[_0x1ef6d4]=_0x475f19[_0x36f9af(0x1a7)](/url\(#(.*)\)/,'url(#$1'+_0xcedd3d[_0x36f9af(0x114)]+')'));});const {defIds:_0x518c48}=_0xcedd3d;return!_0x518c48||_0x518c48[_0x281c36(0x163)]===0x0||(_0x1517bd[_0x281c36(0x16b)]===_0x281c36(0x16c)&&_0x1bd5da[_0x281c36(0xfa)]&&(_0x1bd5da[_0x281c36(0xfa)]=_0x1bd5da['xlink:href']+_0xcedd3d[_0x281c36(0x114)]),Object[_0x281c36(0x1c0)](_0x1bd5da)['forEach'](([_0x381c04,_0x359ac9])=>{const _0x35a43c=_0x281c36;typeof _0x359ac9==_0x35a43c(0x171)&&(_0x1bd5da[_0x381c04]=_0x359ac9[_0x35a43c(0x1a7)](/url\(#(.*)\)/,'url(#$1'+_0xcedd3d['idSuffix']+')'));})),_0x1bd5da;}function _0x560615(_0x2be612,_0x14e0da){const _0x4feff9=_0x1d3409;var _0x58e33;const {defIds:_0x16928e}=_0x14e0da;return!_0x16928e||_0x16928e[_0x4feff9(0x163)]===0x0?_0x2be612:_0x2be612['tag']===_0x4feff9(0x136)&&((_0x58e33=_0x2be612[_0x4feff9(0x195)])!=null&&_0x58e33['length'])?{..._0x2be612,'children':_0x2be612['children'][_0x4feff9(0x102)](_0x3b073c=>typeof _0x3b073c[_0x4feff9(0x12f)]['id']=='string'&&_0x16928e&&_0x16928e[_0x4feff9(0x165)](_0x3b073c[_0x4feff9(0x12f)]['id'])?{..._0x3b073c,'attrs':{..._0x3b073c[_0x4feff9(0x12f)],'id':_0x3b073c[_0x4feff9(0x12f)]['id']+_0x14e0da['idSuffix']}}:_0x3b073c)}:_0x2be612;}function _0x151b9c(){const _0x39f0c3=_0x1d3409;return Math[_0x39f0c3(0x143)]()[_0x39f0c3(0x170)](0x24)[_0x39f0c3(0x174)](0x2,0x8);}_0x522857[_0x1d3409(0x164)]='UniverIcon';const _0x596020={'tag':_0x1d3409(0x159),'attrs':{'xmlns':_0x1d3409(0x10b),'fill':_0x1d3409(0x187),'viewBox':_0x1d3409(0xfe),'width':_0x1d3409(0x131),'height':_0x1d3409(0x131)},'children':[{'tag':_0x1d3409(0x112),'attrs':{'fill':_0x1d3409(0x1a9),'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':_0x1d3409(0x112),'attrs':{'fill':'currentColor','d':_0x1d3409(0x1e0),'fillRule':_0x1d3409(0x1b6),'clipRule':_0x1d3409(0x1b6)}}]},_0x438601=_0x3dc61e['forwardRef'](function(_0x304379,_0x314d0c){const _0x59a675=_0x1d3409;return _0x3dc61e['createElement'](_0x522857,Object[_0x59a675(0x141)]({},_0x304379,{'id':'live-share-icon','ref':_0x314d0c,'icon':_0x596020}));});_0x438601[_0x1d3409(0x164)]=_0x1d3409(0x142);class _0x5e12fa extends _0x1ecc93[_0x1d3409(0x175)]{constructor(){const _0x52595c=_0x1d3409;super(...arguments),_0x107e1d(this,_0x52595c(0x137),new Set()),_0x107e1d(this,_0x52595c(0x14c),new Set());}[_0x1d3409(0x193)](_0x3ea4a3){const _0x30b41f=_0x1d3409;return this[_0x30b41f(0x137)][_0x30b41f(0x16e)](_0x3ea4a3),_0x1ecc93[_0x30b41f(0x169)](()=>this[_0x30b41f(0x137)][_0x30b41f(0x18d)](_0x3ea4a3));}[_0x1d3409(0x1c7)](_0x59e1ab){const _0x2462f7=_0x1d3409;return this['_reporters'][_0x2462f7(0x16e)](_0x59e1ab),_0x1ecc93[_0x2462f7(0x169)](()=>this[_0x2462f7(0x14c)]['delete'](_0x59e1ab));}['shouldShareOperation'](_0x28cefd){const _0x3e8e5d=_0x1d3409;return this['_sharedOperations'][_0x3e8e5d(0x158)](_0x28cefd);}[_0x1d3409(0x1c3)](_0x478388){const _0x41cb55=_0x1d3409;return Array['from'](this[_0x41cb55(0x14c)])[_0x41cb55(0x102)](_0x44c77b=>_0x44c77b(_0x478388));}}var _0xc98453=Object[_0x1d3409(0x1d0)],_0x55b41d=(_0x11b0b8,_0x1ace49,_0x171475,_0x1b843b)=>{const _0x340317=_0x1d3409;for(var _0x2bb8db=_0x1b843b>0x1?void 0x0:_0x1b843b?_0xc98453(_0x1ace49,_0x171475):_0x1ace49,_0x3acba2=_0x11b0b8[_0x340317(0x163)]-0x1,_0x42454f;_0x3acba2>=0x0;_0x3acba2--)(_0x42454f=_0x11b0b8[_0x3acba2])&&(_0x2bb8db=_0x42454f(_0x2bb8db)||_0x2bb8db);return _0x2bb8db;},_0x5a5b9f=(_0x1a7723,_0x3769d6)=>(_0x50305d,_0x4e2678)=>_0x3769d6(_0x50305d,_0x4e2678,_0x1a7723);_0x2624a2[_0x1d3409(0x190)]=class extends _0x1ecc93[_0x1d3409(0x13e)]{constructor(_0x4d9818,_0x4e1314,_0xc2f561){const _0x17a769=_0x1d3409;super(),_0x107e1d(this,_0x17a769(0x10a),new Map()),(this['_univerInstanceService']=_0x4d9818,this[_0x17a769(0x144)]=_0x4e1314,this['_collabSessionService']=_0xc2f561,this[_0x17a769(0x12b)]());}async[_0x1d3409(0xff)](_0x5c9096){const _0x304783=_0x1d3409;return this[_0x304783(0x10a)][_0x304783(0x158)](_0x5c9096)||await this['_startLiveShareCoordinator'](_0x5c9096),this['_entities'][_0x304783(0x122)](_0x5c9096);}[_0x1d3409(0x150)](_0x252d61){const _0x201980=_0x1d3409;var _0x2a5d12;return(_0x2a5d12=this['_entities'][_0x201980(0x122)](_0x252d61))!=null?_0x2a5d12:null;}['_init'](){const _0x55d0ff=_0x1d3409;this[_0x55d0ff(0x100)][_0x55d0ff(0x1a5)](_0x1ecc93[_0x55d0ff(0x11a)][_0x55d0ff(0x15d)])[_0x55d0ff(0x115)](_0x302b58[_0x55d0ff(0x108)](this[_0x55d0ff(0x14a)]))[_0x55d0ff(0x1d7)](async _0x4a7f0e=>{const _0xfe3ccc=_0x55d0ff,_0x41d0f2=_0x4a7f0e[_0xfe3ccc(0x1d6)]();this[_0xfe3ccc(0x10a)]['has'](_0x41d0f2)||this['_startLiveShareCoordinator'](_0x41d0f2);}),this[_0x55d0ff(0x100)][_0x55d0ff(0x1af)](_0x1ecc93[_0x55d0ff(0x11a)][_0x55d0ff(0x15d)])[_0x55d0ff(0x115)](_0x302b58[_0x55d0ff(0x108)](this['dispose$']))['subscribe'](_0x34f3f1=>{const _0x2f0e20=_0x55d0ff,_0x3c79f3=_0x34f3f1[_0x2f0e20(0x1d6)](),_0x1d1668=this['_entities'][_0x2f0e20(0x122)](_0x3c79f3);_0x1d1668==null||_0x1d1668[_0x2f0e20(0x172)]();});}async[_0x1d3409(0x116)](_0x40990f){const _0xab68b6=_0x1d3409,_0x57d0a4=await this['_collabSessionService'][_0xab68b6(0x19c)](_0x40990f),_0x508588=this[_0xab68b6(0x144)][_0xab68b6(0x176)](_0x2624a2[_0xab68b6(0x106)],_0x40990f,_0x57d0a4);return _0x508588[_0xab68b6(0x12c)](),this[_0xab68b6(0x10a)][_0xab68b6(0x1a4)](_0x40990f,_0x508588),_0x508588;}},_0x2624a2['LiveShareController']=_0x55b41d([_0x5a5b9f(0x0,_0x1ecc93[_0x1d3409(0x14f)]),_0x5a5b9f(0x1,_0x1ecc93[_0x1d3409(0x11d)](_0x1ecc93[_0x1d3409(0x1d8)])),_0x5a5b9f(0x2,_0x1ecc93[_0x1d3409(0x11d)](_0x30d3fc['CollaborationSessionService']))],_0x2624a2[_0x1d3409(0x190)]);var _0x4d3fc0=(_0x3a13ed=>(_0x3a13ed[_0x1d3409(0x1ca)]='offline',_0x3a13ed[_0x1d3409(0x1d5)]=_0x1d3409(0x125),_0x3a13ed[_0x1d3409(0x101)]=_0x1d3409(0x15b),_0x3a13ed[_0x1d3409(0x1c2)]=_0x1d3409(0x104),_0x3a13ed[_0x1d3409(0x140)]='presenting',_0x3a13ed))(_0x4d3fc0||{});const _0xabffb9=_0x1d3409(0x13b),_0x227cf7=0xc8;_0x2624a2[_0x1d3409(0x106)]=class extends _0x1ecc93[_0x1d3409(0x13e)]{constructor(_0x30b331,_0x4f47c6,_0x44efc3,_0x1f33a9,_0x4a424e){const _0x54ed34=_0x1d3409;super(),_0x107e1d(this,'_status$',new _0x30a3d1[(_0x54ed34(0x13c))](_0x54ed34(0x125))),_0x107e1d(this,'status$',this[_0x54ed34(0x12d)][_0x54ed34(0x1e1)]()),_0x107e1d(this,'_init',!0x1),_0x107e1d(this,_0x54ed34(0x186),null),_0x107e1d(this,_0x54ed34(0x1b8),null),(this[_0x54ed34(0x138)]=_0x30b331,this['_collabSession']=_0x4f47c6,this['_configService']=_0x44efc3,this['_liveShareService']=_0x1f33a9,this[_0x54ed34(0x161)]=_0x4a424e);}get[_0x1d3409(0x1c5)](){const _0x515d07=_0x1d3409;return this[_0x515d07(0x12d)][_0x515d07(0x151)]();}[_0x1d3409(0x172)](){const _0x445ff8=_0x1d3409;var _0x6abc77;(_0x6abc77=this[_0x445ff8(0x186)])==null||_0x6abc77[_0x445ff8(0x172)](),this['_status$'][_0x445ff8(0x124)](_0x445ff8(0x125)),this[_0x445ff8(0x12d)][_0x445ff8(0x17a)]();}['getStatus'](){const _0x497e6f=_0x1d3409;return this[_0x497e6f(0x1c5)];}[_0x1d3409(0x12c)](){const _0x5782d5=_0x1d3409;this['_init']||(this['_init']=!0x0,this[_0x5782d5(0x152)][_0x5782d5(0x183)][_0x5782d5(0x115)](_0x302b58[_0x5782d5(0x108)](this[_0x5782d5(0x14a)]))[_0x5782d5(0x1d7)](_0x465505=>{const _0x2434ac=_0x5782d5;switch(_0x465505){case _0x30d3fc[_0x2434ac(0x1ac)][_0x2434ac(0x1ca)]:this[_0x2434ac(0x148)]();break;case _0x30d3fc[_0x2434ac(0x1ac)]['ONLINE']:this[_0x2434ac(0x1cc)]();break;}}),this[_0x5782d5(0x152)]['event$'][_0x5782d5(0x115)](_0x302b58[_0x5782d5(0x108)](this['dispose$']))[_0x5782d5(0x1d7)](_0x1bfe51=>{const _0x2a8bb5=_0x5782d5,{eventID:_0x490024}=_0x1bfe51;switch(_0x490024){case _0x2145d1[_0x2a8bb5(0x1c6)][_0x2a8bb5(0x17e)]:this['_handleNewHost'](_0x1bfe51);break;case _0x2145d1[_0x2a8bb5(0x1c6)][_0x2a8bb5(0x12e)]:this[_0x2a8bb5(0x194)](_0x1bfe51);break;case _0x2145d1[_0x2a8bb5(0x1c6)][_0x2a8bb5(0x113)]:this[_0x2a8bb5(0x1a1)]();break;case _0x2145d1[_0x2a8bb5(0x1c6)][_0x2a8bb5(0x1aa)]:this[_0x2a8bb5(0x18b)](_0x1bfe51);break;}}));}['tryStartPresenting'](){const _0x41c036=_0x1d3409;this['_collabSession'][_0x41c036(0x14b)]({'eventID':_0x2145d1[_0x41c036(0x1c6)][_0x41c036(0x121)],'data':{'unitID':this[_0x41c036(0x138)],'userID':this['_collabSession']['getMemberID']()}},this['_unitID']);}[_0x1d3409(0x18a)](){const _0x19c740=_0x1d3409;this[_0x19c740(0x1c5)]===_0x19c740(0x1bc)&&(this[_0x19c740(0x12d)]['next']('idle'),this[_0x19c740(0x152)][_0x19c740(0x14b)]({'eventID':_0x2145d1[_0x19c740(0x1c6)][_0x19c740(0x113)],'data':{'unitID':this['_unitID']}},this['_unitID']));}['startFollowing'](){const _0x312eb9=_0x1d3409;this[_0x312eb9(0x1c5)]===_0x312eb9(0x104)&&(this[_0x312eb9(0x12d)]['next']('following'),this[_0x312eb9(0x128)]());}[_0x1d3409(0x1b0)](){const _0x33058a=_0x1d3409;this['_status']===_0x33058a(0x15b)&&this['_stopFollowing']();}[_0x1d3409(0x1b7)](_0x198beb){const _0x675384=_0x1d3409,{presenter:_0x2fdf3a}=_0x198beb[_0x675384(0x146)],_0x1047c4=this[_0x675384(0x152)][_0x675384(0x192)]();this[_0x675384(0x1b8)]=_0x2fdf3a,_0x2fdf3a===_0x1047c4?(this[_0x675384(0x120)](),this[_0x675384(0x1b2)]()):this[_0x675384(0x1c5)]!==_0x675384(0x104)&&(this[_0x675384(0x1a2)](),this[_0x675384(0x128)]());}[_0x1d3409(0x1d9)](){const _0x5afe0b=_0x1d3409,_0x1f99c1={'eventID':_0x2145d1[_0x5afe0b(0x1c6)][_0x5afe0b(0x1dd)]};this[_0x5afe0b(0x152)][_0x5afe0b(0x14b)](_0x1f99c1,this[_0x5afe0b(0x138)]);}[_0x1d3409(0x1a1)](){const _0x62a035=_0x1d3409;this['_presenter']=null,this[_0x62a035(0x1c5)]!==_0x62a035(0x1bc)&&this[_0x62a035(0x127)]();}[_0x1d3409(0x18b)](_0x570dac){const _0x2f14f5=_0x1d3409;if(this['_status']===_0x2f14f5(0x15b)&&this[_0x2f14f5(0x1b8)]===_0x570dac[_0x2f14f5(0x146)][_0x2f14f5(0x1c4)]){const _0xa1b7e2=_0x2145d1[_0x2f14f5(0x132)](_0x570dac[_0x2f14f5(0x146)])[_0x2f14f5(0x145)][_0x2f14f5(0x1e2)]()[_0x2f14f5(0x103)](_0x4f9e7d=>_0x4f9e7d['id']===_0x402b6a['InsertSheetMutation']['id']);if(_0xa1b7e2){const _0x546090=_0xa1b7e2[_0x2f14f5(0x180)]['unitId'],_0x25d6e2=_0xa1b7e2[_0x2f14f5(0x180)][_0x2f14f5(0x10e)]['id'];setTimeout(()=>{const _0x4faeff=_0x2f14f5;this[_0x4faeff(0x161)][_0x4faeff(0x1a8)](_0x402b6a[_0x4faeff(0x1bb)]['id'],{'unitId':_0x546090,'subUnitId':_0x25d6e2},{'fromCollab':!0x0});});}}}[_0x1d3409(0x1b2)](){const _0x872011=_0x1d3409;this['_status$'][_0x872011(0x124)](_0x872011(0x1bc));const _0x5a9fc7=new Map(),_0xf5b545=this[_0x872011(0x186)]=new _0x1ecc93[(_0x872011(0xfb))]();_0xf5b545[_0x872011(0x16e)](_0x1ecc93[_0x872011(0x169)](()=>{const _0x48f700=_0x872011;_0x5a9fc7[_0x48f700(0x157)](_0x3c1eea=>_0x3c1eea['complete']()),_0x5a9fc7[_0x48f700(0x10d)]();})),_0xf5b545[_0x872011(0x16e)](this[_0x872011(0x161)]['onCommandExecuted'](_0x7bb323=>{const _0x4fb4e4=_0x872011;var _0x14d3ae;if(_0x7bb323[_0x4fb4e4(0x155)]!==_0x1ecc93[_0x4fb4e4(0x19d)][_0x4fb4e4(0xfc)]||!this[_0x4fb4e4(0x181)][_0x4fb4e4(0x1b3)](_0x7bb323['id']))return;const {id:_0x1e2432}=_0x7bb323;let _0x46a4d8;_0x5a9fc7[_0x4fb4e4(0x158)](_0x1e2432)?_0x46a4d8=_0x5a9fc7['get'](_0x1e2432):(_0x46a4d8=new _0x30a3d1[(_0x4fb4e4(0x11b))](),_0x5a9fc7[_0x4fb4e4(0x1a4)](_0x1e2432,_0x46a4d8),_0x46a4d8[_0x4fb4e4(0x115)](_0x302b58[_0x4fb4e4(0x1ae)]((_0x14d3ae=this[_0x4fb4e4(0x139)][_0x4fb4e4(0x19b)](_0xabffb9))!=null?_0x14d3ae:_0x227cf7,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4fb4e4(0x1d7)](_0x542f74=>{const _0x4753ed=_0x4fb4e4;this['_collabSession'][_0x4753ed(0x14b)]({'eventID':_0x2145d1[_0x4753ed(0x1c6)][_0x4753ed(0x12e)],'data':{'unitID':this['_unitID'],'operations':{[_0x542f74['id']]:{'id':_0x542f74['id'],'params':JSON[_0x4753ed(0x1b4)](_0x542f74['params'])}}}},this[_0x4753ed(0x138)]);})),_0x46a4d8['next'](_0x7bb323);})),this[_0x872011(0x181)]['getInitialStates'](this['_unitID'])[_0x872011(0x157)](_0x849ac9=>this[_0x872011(0x152)][_0x872011(0x14b)]({'eventID':_0x2145d1['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x849ac9['id']]:{'id':_0x849ac9['id'],'params':JSON[_0x872011(0x1b4)](_0x849ac9[_0x872011(0x180)])}}}},this[_0x872011(0x138)]));}[_0x1d3409(0x1a2)](){const _0x2f2cf7=_0x1d3409;var _0x5b8c50;this['_status$'][_0x2f2cf7(0x124)](_0x2f2cf7(0x125)),(_0x5b8c50=this[_0x2f2cf7(0x186)])==null||_0x5b8c50[_0x2f2cf7(0x172)](),this[_0x2f2cf7(0x186)]=null;}[_0x1d3409(0x128)](){const _0x2d22e0=_0x1d3409;var _0x1fa7a0;(_0x1fa7a0=this[_0x2d22e0(0x186)])==null||_0x1fa7a0[_0x2d22e0(0x172)](),this['_status$'][_0x2d22e0(0x124)](_0x2d22e0(0x15b));}[_0x1d3409(0x127)](){const _0x56596e=_0x1d3409;var _0x142d97;this[_0x56596e(0x12d)]['next'](_0x56596e(0x125)),(_0x142d97=this[_0x56596e(0x186)])==null||_0x142d97['dispose'](),this[_0x56596e(0x186)]=null;}[_0x1d3409(0x120)](){const _0x586795=_0x1d3409;var _0x30fb45;this[_0x586795(0x12d)][_0x586795(0x124)]('not-following'),(_0x30fb45=this[_0x586795(0x186)])==null||_0x30fb45[_0x586795(0x172)]();}[_0x1d3409(0x194)](_0x4f54e0){const _0x2b5c8a=_0x1d3409;if([_0x2b5c8a(0x1bc),_0x2b5c8a(0x104),_0x2b5c8a(0x17d)][_0x2b5c8a(0x165)](this[_0x2b5c8a(0x1c5)])||!_0x4f54e0[_0x2b5c8a(0x146)][_0x2b5c8a(0x1a0)]||_0x4f54e0[_0x2b5c8a(0x146)][_0x2b5c8a(0x1a0)]===this['_collabSession'][_0x2b5c8a(0x192)]())return;this[_0x2b5c8a(0x1c5)]==='idle'&&this[_0x2b5c8a(0x128)]();const _0x32acf7=_0x4f54e0['data'][_0x2b5c8a(0x1ba)];Object[_0x2b5c8a(0x1d1)](_0x32acf7)[_0x2b5c8a(0x157)](_0x1276ce=>{const _0x411899=_0x2b5c8a;this['_commandService'][_0x411899(0x1a8)](_0x1276ce['id'],_0x1276ce['params']?JSON['parse'](_0x1276ce['params']):null,{'fromCollab':!0x0});});}[_0x1d3409(0x148)](){const _0x4ea12f=_0x1d3409;var _0x220da0;this['_status$']['next'](_0x4ea12f(0x17d)),(_0x220da0=this[_0x4ea12f(0x186)])==null||_0x220da0[_0x4ea12f(0x172)]();}[_0x1d3409(0x1cc)](){const _0x3ff9c2=_0x1d3409;this[_0x3ff9c2(0x12d)][_0x3ff9c2(0x124)](_0x3ff9c2(0x125)),this[_0x3ff9c2(0x1d9)]();}},_0x2624a2[_0x1d3409(0x106)]=_0x55b41d([_0x5a5b9f(0x2,_0x1ecc93[_0x1d3409(0x1ce)]),_0x5a5b9f(0x3,_0x1ecc93[_0x1d3409(0x11d)](_0x5e12fa)),_0x5a5b9f(0x4,_0x1ecc93[_0x1d3409(0x123)])],_0x2624a2[_0x1d3409(0x106)]);function _0x628078(){const _0x1d2d11=_0x1d3409,_0x4dcbb9=_0x20bfb3[_0x1d2d11(0x1df)](_0x2624a2[_0x1d2d11(0x190)]),_0x44b680=_0x20bfb3[_0x1d2d11(0x1df)](_0x1ecc93[_0x1d2d11(0x14f)]),_0x146694=_0x20bfb3[_0x1d2d11(0x188)](()=>_0x44b680[_0x1d2d11(0x197)](_0x1ecc93[_0x1d2d11(0x11a)][_0x1d2d11(0x15d)]),void 0x0,!0x1,[]),[_0x36bbac,_0xe11841]=_0x3dc61e[_0x1d2d11(0x15c)](null),[_0x5b4d04,_0x466f78]=_0x3dc61e[_0x1d2d11(0x15c)](_0x4d3fc0[_0x1d2d11(0x1d5)]),_0x56f18e=_0x3dc61e[_0x1d2d11(0x19e)](null);return _0x3dc61e[_0x1d2d11(0xfd)](()=>(_0x146694&&_0x4dcbb9[_0x1d2d11(0xff)](_0x146694[_0x1d2d11(0x1d6)]())[_0x1d2d11(0x1ad)](_0x599fde=>{const _0x439041=_0x1d2d11;_0xe11841(_0x599fde),_0x56f18e[_0x439041(0x111)]=_0x599fde[_0x439041(0x1c8)]['subscribe'](_0xbcadcc=>{_0x466f78(_0xbcadcc);});}),()=>{const _0x34f495=_0x1d2d11;var _0x2275a3;(_0x2275a3=_0x56f18e[_0x34f495(0x111)])==null||_0x2275a3[_0x34f495(0x14d)](),_0x56f18e[_0x34f495(0x111)]=null;}),[_0x146694,_0x4dcbb9]),_0x36bbac?_0x49ef39[_0x1d2d11(0x10c)](_0x4e9136[_0x1d2d11(0x11e)],{'align':_0x1d2d11(0x107),'disabled':_0x5b4d04===_0x4d3fc0['OFFLINE'],'className':_0x1d2d11(0x13a),'overlay':_0x49ef39[_0x1d2d11(0x10c)](_0x13352d,{'status':_0x5b4d04,'coordinator':_0x36bbac}),'children':_0x49ef39[_0x1d2d11(0x10c)]('button',{'className':_0x4e9136['clsx']('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x5b4d04===_0x4d3fc0[_0x1d2d11(0x1ca)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5b4d04!==_0x4d3fc0['OFFLINE']}),'type':'button','children':_0x49ef39[_0x1d2d11(0x10c)](_0x438601,{'className':_0x1d2d11(0x1b5)})})}):null;}function _0x13352d(_0x134623){const _0x5d4c91=_0x1d3409,{status:_0x37b0e5,coordinator:_0xeff7c4}=_0x134623;switch(_0x37b0e5){case _0x4d3fc0[_0x5d4c91(0x1d5)]:return _0x49ef39[_0x5d4c91(0x10c)](_0x5eddbd,{'coordinator':_0xeff7c4});case _0x4d3fc0[_0x5d4c91(0x101)]:return _0x49ef39[_0x5d4c91(0x10c)](_0x280652,{'coordinator':_0xeff7c4});case _0x4d3fc0[_0x5d4c91(0x1c2)]:return _0x49ef39['jsx'](_0x16aec7,{'coordinator':_0xeff7c4});case _0x4d3fc0[_0x5d4c91(0x1ca)]:return _0x49ef39[_0x5d4c91(0x10c)](_0x12a948,{});case _0x4d3fc0[_0x5d4c91(0x140)]:return _0x49ef39[_0x5d4c91(0x10c)](_0x55d24d,{'coordinator':_0xeff7c4});default:return null;}}function _0x5eddbd(_0x3a8e6e){const _0x481ba2=_0x1d3409,{coordinator:_0x290970}=_0x3a8e6e;return _0x49ef39[_0x481ba2(0x130)](_0x49ef39[_0x481ba2(0x1c1)],{'children':[_0x49ef39['jsx'](_0x481ba2(0x119),{'className':_0x481ba2(0x177),'children':_0x481ba2(0x156)}),_0x49ef39[_0x481ba2(0x10c)](_0x4e9136['Button'],{'onClick':()=>_0x290970['tryStartPresenting'](),'children':_0x481ba2(0x185)})]});}function _0x280652(_0x52df6a){const _0x216316=_0x1d3409,{coordinator:_0x4f43b4}=_0x52df6a;return _0x49ef39['jsxs'](_0x49ef39['Fragment'],{'children':[_0x49ef39['jsx'](_0x216316(0x119),{'className':_0x216316(0x177),'children':_0x216316(0x1dc)}),_0x49ef39['jsx'](_0x4e9136[_0x216316(0x1b9)],{'onClick':()=>_0x4f43b4['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x16aec7(_0x2104f7){const _0xaf8a82=_0x1d3409,{coordinator:_0x49406d}=_0x2104f7;return _0x49ef39[_0xaf8a82(0x130)](_0x49ef39[_0xaf8a82(0x1c1)],{'children':[_0x49ef39[_0xaf8a82(0x10c)](_0xaf8a82(0x119),{'className':_0xaf8a82(0x177),'children':_0xaf8a82(0x1c9)}),_0x49ef39[_0xaf8a82(0x10c)](_0x4e9136['Button'],{'variant':_0xaf8a82(0x135),'onClick':()=>_0x49406d['startFollowing'](),'children':_0xaf8a82(0x118)})]});}function _0x55d24d(_0xdb8d4d){const _0x382602=_0x1d3409,{coordinator:_0x30de2b}=_0xdb8d4d;return _0x49ef39[_0x382602(0x130)](_0x49ef39[_0x382602(0x1c1)],{'children':[_0x49ef39[_0x382602(0x10c)]('div',{'className':_0x382602(0x177),'children':_0x382602(0x13d)}),_0x49ef39[_0x382602(0x10c)](_0x4e9136[_0x382602(0x1b9)],{'variant':_0x382602(0x154),'onClick':()=>_0x30de2b[_0x382602(0x18a)](),'children':_0x382602(0x15e)})]});}function _0x12a948(){const _0x3b226d=_0x1d3409;return _0x49ef39[_0x3b226d(0x10c)](_0x49ef39[_0x3b226d(0x1c1)],{'children':_0x3b226d(0x1d3)});}var _0x3a337f=Object[_0x1d3409(0x1d0)],_0x5d82df=(_0x48d26a,_0x2e3932,_0x520a4d,_0x27c851)=>{const _0x192801=_0x1d3409;for(var _0x352af7=_0x27c851>0x1?void 0x0:_0x27c851?_0x3a337f(_0x2e3932,_0x520a4d):_0x2e3932,_0x43ff48=_0x48d26a[_0x192801(0x163)]-0x1,_0x37c1d4;_0x43ff48>=0x0;_0x43ff48--)(_0x37c1d4=_0x48d26a[_0x43ff48])&&(_0x352af7=_0x37c1d4(_0x352af7)||_0x352af7);return _0x352af7;},_0x2accc7=(_0x145147,_0x5de823)=>(_0xe46112,_0x512d88)=>_0x5de823(_0xe46112,_0x512d88,_0x145147);_0x2624a2['DesktopLiveShareController']=class extends _0x1ecc93[_0x1d3409(0x175)]{constructor(_0x1b4905,_0x147e54){const _0x4549c8=_0x1d3409;super(),this['_injector']=_0x1b4905,this[_0x4549c8(0x168)]=_0x147e54,this['_mountLiveShare']();}[_0x1d3409(0x1be)](){const _0x4b81f3=_0x1d3409;this[_0x4b81f3(0x1a6)](this[_0x4b81f3(0x168)][_0x4b81f3(0x1bd)](_0x20bfb3[_0x4b81f3(0x18c)][_0x4b81f3(0xf8)],()=>_0x20bfb3[_0x4b81f3(0x16d)](_0x628078,this[_0x4b81f3(0x144)])));}},_0x2624a2[_0x1d3409(0xf9)]=_0x5d82df([_0x2accc7(0x0,_0x1ecc93[_0x1d3409(0x11d)](_0x1ecc93['Injector'])),_0x2accc7(0x1,_0x20bfb3['IUIPartsService'])],_0x2624a2['DesktopLiveShareController']);const _0x4fb311=_0x1d3409(0x184),_0xa9cf={};var _0x43cff3=Object[_0x1d3409(0x1d0)],_0x139930=(_0x1a1171,_0x56ba76,_0x9f2402,_0x6104c0)=>{const _0x245bc4=_0x1d3409;for(var _0x2657d2=_0x6104c0>0x1?void 0x0:_0x6104c0?_0x43cff3(_0x56ba76,_0x9f2402):_0x56ba76,_0x28f5ce=_0x1a1171[_0x245bc4(0x163)]-0x1,_0xc59214;_0x28f5ce>=0x0;_0x28f5ce--)(_0xc59214=_0x1a1171[_0x28f5ce])&&(_0x2657d2=_0xc59214(_0x2657d2)||_0x2657d2);return _0x2657d2;},_0x46e057=(_0x488441,_0x28ba62)=>(_0xc749a3,_0x4f3fd1)=>_0x28ba62(_0xc749a3,_0x4f3fd1,_0x488441);let _0x241993=class extends _0x1ecc93[_0x1d3409(0x175)]{constructor(_0x51b5b7){const _0x308093=_0x1d3409;super(),this[_0x308093(0x181)]=_0x51b5b7,this['_init']();}[_0x1d3409(0x12b)](){const _0x3ea86b=_0x1d3409;[_0x527f2d[_0x3ea86b(0x13f)]['id'],_0x527f2d['SetScrollOperation']['id'],_0x402b6a[_0x3ea86b(0x1bb)]['id']][_0x3ea86b(0x157)](_0x5c2759=>{const _0x1941e8=_0x3ea86b;this[_0x1941e8(0x1a6)](this['_liveShareService'][_0x1941e8(0x193)](_0x5c2759));});}};_0x241993=_0x139930([_0x46e057(0x0,_0x1ecc93['Inject'](_0x5e12fa))],_0x241993);var _0x24c73b=Object[_0x1d3409(0x1bf)],_0x53a497=Object[_0x1d3409(0x1d0)],_0x34bd03=(_0x181a87,_0x5c4ef0,_0x828d05)=>_0x5c4ef0 in _0x181a87?_0x24c73b(_0x181a87,_0x5c4ef0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x828d05}):_0x181a87[_0x5c4ef0]=_0x828d05,_0x462782=(_0x5838a5,_0x45ee66,_0x5d615f,_0x2202cb)=>{for(var _0x1926b1=_0x2202cb>0x1?void 0x0:_0x2202cb?_0x53a497(_0x45ee66,_0x5d615f):_0x45ee66,_0x4aeb26=_0x5838a5['length']-0x1,_0x63440c;_0x4aeb26>=0x0;_0x4aeb26--)(_0x63440c=_0x5838a5[_0x4aeb26])&&(_0x1926b1=_0x63440c(_0x1926b1)||_0x1926b1);return _0x1926b1;},_0x17c188=(_0x350976,_0x5a2bc9)=>(_0x462163,_0x839ec6)=>_0x5a2bc9(_0x462163,_0x839ec6,_0x350976),_0x1824c0=(_0x2cbe96,_0x5e7244,_0x1e21dd)=>_0x34bd03(_0x2cbe96,typeof _0x5e7244!='symbol'?_0x5e7244+'':_0x5e7244,_0x1e21dd);const _0x1bb8ad='UNIVER_LIVE_SHARE_PLUGIN';_0x2624a2[_0x1d3409(0x105)]=class extends _0x1ecc93[_0x1d3409(0x16a)]{constructor(_0x183b15=_0xa9cf,_0x108d16,_0x25dcf7){const _0x3e1092=_0x1d3409;super(),this['_config']=_0x183b15,this[_0x3e1092(0x144)]=_0x108d16,this[_0x3e1092(0x139)]=_0x25dcf7;const {..._0x2568f4}=_0x1ecc93[_0x3e1092(0x15f)]({},_0xa9cf,this['_config']);this[_0x3e1092(0x139)][_0x3e1092(0x1cd)](_0x4fb311,_0x2568f4);}[_0x1d3409(0x179)](){const _0x1dc069=_0x1d3409;_0x1ecc93[_0x1dc069(0x162)](this['_injector'],_0x1ecc93['mergeOverrideWithDependencies']([[_0x5e12fa],[_0x2624a2[_0x1dc069(0x190)]],[_0x241993],[_0x2624a2[_0x1dc069(0xf9)]]],this[_0x1dc069(0x153)]['override'])),_0x1ecc93[_0x1dc069(0x1b1)](this[_0x1dc069(0x144)],[[_0x241993]]);}['onRendered'](){const _0x2a3b1c=_0x1d3409;_0x1ecc93['touchDependencies'](this['_injector'],[[_0x2624a2[_0x2a3b1c(0xf9)]]]);}},_0x1824c0(_0x2624a2[_0x1d3409(0x105)],_0x1d3409(0x155),_0x1ecc93[_0x1d3409(0x11a)]['UNIVER_UNKNOWN']),_0x1824c0(_0x2624a2[_0x1d3409(0x105)],_0x1d3409(0x126),_0x1bb8ad),_0x2624a2['UniverLiveSharePlugin']=_0x462782([_0x1ecc93[_0x1d3409(0x182)](_0x30d3fc[_0x1d3409(0x109)]),_0x17c188(0x1,_0x1ecc93[_0x1d3409(0x11d)](_0x1ecc93[_0x1d3409(0x1d8)])),_0x17c188(0x2,_0x1ecc93[_0x1d3409(0x1ce)])],_0x2624a2[_0x1d3409(0x105)]),_0x2624a2[_0x1d3409(0x196)]=_0x628078,_0x2624a2[_0x1d3409(0x167)]=_0x5e12fa,_0x2624a2[_0x1d3409(0x191)]=_0x4d3fc0,Object['defineProperty'](_0x2624a2,Symbol[_0x1d3409(0x173)],{'value':'Module'});}));function _0x21ce(){const _0x242d9d=['default','type','Present\x20this\x20document','forEach','has','svg','@univerjs/sheets-ui','following','useState','UNIVER_SHEET','Stop\x20presenting','merge','917040hwuUMh','_commandService','registerDependencies','length','displayName','includes','exports','LiveShareService','_uiPartsService','toDisposable','Plugin','tag','use','connectInjector','add','@univerjs/design','toString','string','dispose','toStringTag','substring','Disposable','createInstance','univer-mb-3\x20univer-w-full\x20univer-text-sm','@univerjs/sheets','onStarting','complete','794788YcBWvE','UniverCore','offline','LIVESHARE_NEW_HOST','@univerjs-pro/collaboration','params','_liveShareService','DependentOn','sessionStatus$','live-share.config','Start','_commandDisposable','none','useObservable','createElement','stopPresenting','_handleNewChangeSets','BuiltInUIPart','delete','8105364IgUduh','UniverProLiveShare','LiveShareController','LiveShareStatus','getMemberID','registerSharedOperation','_handleOperation','children','LiveShare','getCurrentTypeOfUnit$','5764160eEEBxE','amd','4OUtVNw','getConfig','requireSession','CommandType','useRef','@univerjs/core','presenter','_handleTerminate','_stopPresenting','trim','set','getTypeOfUnitAdded$','disposeWithMe','replace','executeCommand','currentColor','NEW_CHANGESETS','univerjs-icon\x20univerjs-icon-','SessionStatus','then','throttleTime','getTypeOfUnitDisposed$','stopFollowing','touchDependencies','_startPresenting','shouldShareOperation','stringify','univer-size-4','evenodd','_handleNewHost','_presenter','Button','operations','SetWorksheetActiveOperation','presenting','registerComponent','_mountLiveShare','defineProperty','entries','Fragment','NOT_FOLLOWING','getInitialStates','memberID','_status','CollaborationEvent','registerInitialStateReporter','status$','You\x27re\x20not\x20following\x20the\x20presenter','OFFLINE','UniverSheets','_handleOnline','setConfig','IConfigService','UniverProCollaboration','getOwnPropertyDescriptor','values','62363tmIExG','You\x27are\x20offline.','React','IDLE','getUnitId','subscribe','Injector','_fetchOperations','defIds','@univerjs-pro/collaboration-client','You\x27re\x20following\x20the\x20presenter','LIVESHARE_FETCH_OPERATIONS','react/jsx-runtime','useDependency','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','asObservable','reverse','HEADER_MENU','DesktopLiveShareController','xlink:href','DisposableCollection','OPERATION','useEffect','0\x200\x2017\x2017','getLiveShareCoordinator','_univerInstanceService','FOLLOWING','map','find','not-following','UniverLiveSharePlugin','LiveShareCoordinator','end','takeUntil','UniverCollaborationClientPlugin','_entities','http://www.w3.org/2000/svg','jsx','clear','sheet','rxjs/operators','function','current','path','LIVESHARE_TERMINATE','idSuffix','pipe','_startLiveShareCoordinator','react','Start\x20following','div','UniverInstanceType','Subject','colorChannel1','Inject','Dropdown','UniverSheetsUi','_stopFollowing','LIVESHARE_REQUEST_HOST','get','ICommandService','next','idle','pluginName','_beIdle','_startFollowing','318xwgorf','mask','_init','init','_status$','LIVESHARE_OPERATION','attrs','jsxs','1em','parseProtocolChangeset','@univerjs/ui','UniverDesign','text','defs','_sharedOperations','_unitID','_configService','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','SAME_OPERATION_SHARE_INTERVAL','BehaviorSubject','You\x27re\x20presenting\x20the\x20document','RxDisposable','SetZoomRatioOperation','PRESENTING','assign','LiveShareIcon','random','_injector','mutations','data','2813240xCCnfk','_handleOffline','2qQFMHO','dispose$','send','_reporters','unsubscribe','2837848qjypsC','IUniverInstanceService','getLiveShareCoordinatorSync','getValue','_collabSession','_config'];_0x21ce=function(){return _0x242d9d;};return _0x21ce();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.12.4-
|
|
3
|
+
"version": "0.12.4-insiders.20251212-6c41730",
|
|
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.4-
|
|
61
|
-
"@univerjs-pro/collaboration-client": "0.12.4-
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/sheets": "0.12.4-
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/ui": "0.12.4-
|
|
67
|
-
"@univerjs/
|
|
60
|
+
"@univerjs-pro/collaboration": "0.12.4-insiders.20251212-6c41730",
|
|
61
|
+
"@univerjs-pro/collaboration-client": "0.12.4-insiders.20251212-6c41730",
|
|
62
|
+
"@univerjs/core": "0.12.4-insiders.20251212-6c41730",
|
|
63
|
+
"@univerjs/design": "0.12.4-insiders.20251212-6c41730",
|
|
64
|
+
"@univerjs/sheets-ui": "0.12.4-insiders.20251212-6c41730",
|
|
65
|
+
"@univerjs/engine-render": "0.12.4-insiders.20251212-6c41730",
|
|
66
|
+
"@univerjs/ui": "0.12.4-insiders.20251212-6c41730",
|
|
67
|
+
"@univerjs/sheets": "0.12.4-insiders.20251212-6c41730"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"rxjs": "7.8.2",
|
|
73
73
|
"tailwindcss": "^3.4.17",
|
|
74
74
|
"typescript": "^5.9.3",
|
|
75
|
-
"vite": "^7.2.
|
|
75
|
+
"vite": "^7.2.7",
|
|
76
76
|
"vitest": "^4.0.15",
|
|
77
77
|
"@univerjs-infra/shared": "0.12.4",
|
|
78
78
|
"@univerjs/protocol": "0.1.47"
|