@univerjs-pro/live-share 0.12.4-insiders.20251213-692494c → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +11 -11
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function
|
|
1
|
+
'use strict';function _0x4578(_0x5435f5,_0x5edaf4){_0x5435f5=_0x5435f5-0x82;const _0x2bb06d=_0x2bb0();let _0x457803=_0x2bb06d[_0x5435f5];return _0x457803;}const _0x3a0534=_0x4578;(function(_0x490e11,_0x4048df){const _0x461d8d=_0x4578,_0x1fb0f3=_0x490e11();while(!![]){try{const _0x1a6064=-parseInt(_0x461d8d(0x97))/0x1*(parseInt(_0x461d8d(0x94))/0x2)+-parseInt(_0x461d8d(0x99))/0x3*(parseInt(_0x461d8d(0xaa))/0x4)+parseInt(_0x461d8d(0x8a))/0x5*(-parseInt(_0x461d8d(0x91))/0x6)+parseInt(_0x461d8d(0x9d))/0x7*(-parseInt(_0x461d8d(0xa4))/0x8)+parseInt(_0x461d8d(0x9f))/0x9+parseInt(_0x461d8d(0x8d))/0xa+parseInt(_0x461d8d(0x85))/0xb*(parseInt(_0x461d8d(0x96))/0xc);if(_0x1a6064===_0x4048df)break;else _0x1fb0f3['push'](_0x1fb0f3['shift']());}catch(_0x500b7e){_0x1fb0f3['push'](_0x1fb0f3['shift']());}}}(_0x2bb0,0xc6c0e));const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');function _0x2bb0(){const _0x1e31ff=['148936jcRque','SetScrollOperation','PRESENTING','getLiveShareCoordinatorSync','stopPresenting','FEnum','4541336hqUMMQ','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','FRange','extend','startColumn','get','LiveShareStatusEnum','77jCAbpR','FUniver','startRow','LiveShareStatus','LiveShareController','1167410lRQGEs','executeCommand','getUnitId','697220qQiQAy','tryStartPresenting','getId','startFollowing','6zafRFB','stopFollowing','getActiveSheet','226lIjAyc','No\x20active\x20workbook\x20found.','4179372McPDuo','11864JzsHYi','startPresenting','3tPpMnU','getSheetId','_commandService','_injector','133DAxnRz','getStatus','12326184OiwveX','_initialize','getLiveShareStatus','getActiveWorkbook','IDLE'];_0x2bb0=function(){return _0x1e31ff;};return _0x2bb0();}class w extends d['FRange']{[_0x3a0534(0xa0)](_0x4c8468,_0xdde57b,_0xb6d44f,_0x424eb4,_0x3f3855){const _0x49e144=_0x3a0534,_0x11785d=_0x4c8468[_0x49e144(0x83)](n[_0x49e144(0x89)]),_0x148cb0=_0x4c8468[_0x49e144(0x83)](g['IRenderManagerService']),_0x172f0f=_0xdde57b['getUnitId'](),_0x1a4b7c=_0xdde57b[_0x49e144(0x93)](),_0x595112=_0x11785d[_0x49e144(0xa7)](_0x172f0f);(_0x595112==null?void 0x0:_0x595112[_0x49e144(0x9e)]())!==n[_0x49e144(0x88)][_0x49e144(0xa6)]||(_0xb6d44f[_0x49e144(0x9a)]()!==_0x1a4b7c[_0x49e144(0x9a)]()&&this[_0x49e144(0x9b)][_0x49e144(0x8b)](u['SetWorksheetActiveOperation']['id'],{'unitId':_0x172f0f,'subUnitId':_0xb6d44f['getSheetId']()}),!_0x148cb0['getRenderById'](_0x172f0f))||_0x3f3855['syncExecuteCommand'](f[_0x49e144(0xa5)]['id'],{'unitId':_0xdde57b[_0x49e144(0x8c)](),'sheetId':_0xb6d44f[_0x49e144(0x9a)](),'sheetViewStartRow':_0x424eb4[_0x49e144(0x87)],'sheetViewStartColumn':_0x424eb4[_0x49e144(0x82)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x3a0534(0xac)][_0x3a0534(0xad)](w);class C extends a['FUniver']{[_0x3a0534(0xa1)](){const _0x1c9b5b=_0x3a0534;var _0x41a6ec,_0x4dbc46;const _0x40ac2c=this[_0x1c9b5b(0x9c)][_0x1c9b5b(0x83)](n[_0x1c9b5b(0x89)]),_0x263195=(_0x41a6ec=this[_0x1c9b5b(0xa2)]())==null?void 0x0:_0x41a6ec[_0x1c9b5b(0x8f)]();if(!_0x263195)throw new Error(_0x1c9b5b(0x95));const _0x1fcf2e=_0x40ac2c[_0x1c9b5b(0xa7)](_0x263195);return(_0x4dbc46=_0x1fcf2e==null?void 0x0:_0x1fcf2e[_0x1c9b5b(0x9e)]())!=null?_0x4dbc46:n[_0x1c9b5b(0x88)][_0x1c9b5b(0xa3)];}['startFollowing'](){const _0x1376d9=_0x3a0534;var _0x3ac2ad;const _0xa98aad=this[_0x1376d9(0x9c)][_0x1376d9(0x83)](n[_0x1376d9(0x89)]),_0x1f361f=(_0x3ac2ad=this['getActiveWorkbook']())==null?void 0x0:_0x3ac2ad[_0x1376d9(0x8f)]();if(!_0x1f361f)throw new Error('No\x20active\x20workbook\x20found.');const _0xc2497c=_0xa98aad[_0x1376d9(0xa7)](_0x1f361f);if(!_0xc2497c)throw new Error(_0x1376d9(0xab));_0xc2497c[_0x1376d9(0x90)]();}[_0x3a0534(0x92)](){const _0x74a32b=_0x3a0534;var _0x569c4d;const _0x5e4d09=this[_0x74a32b(0x9c)]['get'](n[_0x74a32b(0x89)]),_0x892f36=(_0x569c4d=this[_0x74a32b(0xa2)]())==null?void 0x0:_0x569c4d[_0x74a32b(0x8f)]();if(!_0x892f36)throw new Error('No\x20active\x20workbook\x20found.');const _0x21bc1c=_0x5e4d09[_0x74a32b(0xa7)](_0x892f36);if(!_0x21bc1c)throw new Error(_0x74a32b(0xab));_0x21bc1c[_0x74a32b(0x92)]();}[_0x3a0534(0x98)](){const _0x176271=_0x3a0534;var _0x28d397;const _0xce3cab=this['_injector'][_0x176271(0x83)](n[_0x176271(0x89)]),_0x4cc781=(_0x28d397=this[_0x176271(0xa2)]())==null?void 0x0:_0x28d397[_0x176271(0x8f)]();if(!_0x4cc781)throw new Error(_0x176271(0x95));const _0x408166=_0xce3cab[_0x176271(0xa7)](_0x4cc781);if(!_0x408166)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x408166[_0x176271(0x8e)]();}['stopPresenting'](){const _0x4a0a46=_0x3a0534;var _0x37b78e;const _0x37899d=this[_0x4a0a46(0x9c)][_0x4a0a46(0x83)](n[_0x4a0a46(0x89)]),_0x3556a0=(_0x37b78e=this[_0x4a0a46(0xa2)]())==null?void 0x0:_0x37b78e[_0x4a0a46(0x8f)]();if(!_0x3556a0)throw new Error('No\x20active\x20workbook\x20found.');const _0x1ce8ea=_0x37899d[_0x4a0a46(0xa7)](_0x3556a0);if(!_0x1ce8ea)throw new Error(_0x4a0a46(0xab));_0x1ce8ea[_0x4a0a46(0xa8)]();}}a[_0x3a0534(0x86)][_0x3a0534(0xad)](C);class L extends a[_0x3a0534(0xa9)]{get[_0x3a0534(0x84)](){const _0x47bf59=_0x3a0534;return n[_0x47bf59(0x88)];}}a['FEnum'][_0x3a0534(0xad)](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x12f82e=_0x4641;(function(_0x250969,_0x1fcaf8){const _0x3501fc=_0x4641,_0x21bbaa=_0x250969();while(!![]){try{const _0x5ad3f3=parseInt(_0x3501fc(0x18f))/0x1+parseInt(_0x3501fc(0x1c1))/0x2+-parseInt(_0x3501fc(0x1e1))/0x3*(-parseInt(_0x3501fc(0x13d))/0x4)+parseInt(_0x3501fc(0x1d6))/0x5*(-parseInt(_0x3501fc(0x1fa))/0x6)+parseInt(_0x3501fc(0x1dc))/0x7+parseInt(_0x3501fc(0x1af))/0x8+parseInt(_0x3501fc(0x178))/0x9*(-parseInt(_0x3501fc(0x181))/0xa);if(_0x5ad3f3===_0x1fcaf8)break;else _0x21bbaa['push'](_0x21bbaa['shift']());}catch(_0x2fa9b4){_0x21bbaa['push'](_0x21bbaa['shift']());}}}(_0x4c94,0x675a1));var T=Object[_0x12f82e(0x20c)],U=(_0x1c4539,_0x132659,_0x582e24)=>_0x132659 in _0x1c4539?T(_0x1c4539,_0x132659,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x582e24}):_0x1c4539[_0x132659]=_0x582e24,_=(_0xcb41cf,_0x183bb6,_0x319afd)=>U(_0xcb41cf,typeof _0x183bb6!=_0x12f82e(0x154)?_0x183bb6+'':_0x183bb6,_0x319afd);Object['defineProperty'](exports,Symbol[_0x12f82e(0x1a9)],{'value':_0x12f82e(0x1cf)});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:_0x1c643c,..._0xfabc16}){const _0x5b193a=_0x12f82e,{icon:_0x157980,id:_0x42bbf8,className:_0x453be5,extend:_0x3367a7,..._0x38eb7c}=_0xfabc16,_0x5429e2=(_0x5b193a(0x19b)+_0x42bbf8+'\x20'+(_0x453be5||''))['trim'](),_0x5232e1=v[_0x5b193a(0x185)]('_'+H());return j(_0x157980,''+_0x42bbf8,{'defIds':_0x157980['defIds'],'idSuffix':_0x5232e1[_0x5b193a(0x14a)]},{'ref':_0x1c643c,'className':_0x5429e2,..._0x38eb7c},_0x3367a7);}function _0x4c94(){const _0x230e95=['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','Inject','_handleNewChangeSets','useDependency','_mountLiveShare','_reporters','clear','getStatus','live-share.config','throttleTime','useState','tag','SetWorksheetActiveOperation','getLiveShareCoordinatorSync','_startPresenting','getLiveShareCoordinator','14130819cLkgpb','mutations','random','init','_collabSessionService','data','none','InsertSheetMutation','LIVESHARE_TERMINATE','10ujuuuJ','add','offline','Dropdown','useRef','DesktopLiveShareController','memberID','getOwnPropertyDescriptor','string','getCurrentTypeOfUnit$','next','SessionStatus','unsubscribe','_injector','579728QxNAaA','jsxs','UniverInstanceType','useEffect','map','Start','_liveShareService','length','attrs','Injector','You\x27re\x20following\x20the\x20presenter','PRESENTING','univerjs-icon\x20univerjs-icon-','BuiltInUIPart','_sharedOperations','getInitialStates','_init','subscribe','getConfig','SetZoomRatioOperation','params','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','then','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','use','createInstance','toStringTag','_entities','stringify','children','_beIdle','_handleOffline','4292360eQtEGG','sheet','send','toString','_fetchOperations','evenodd','Fragment','_uiPartsService','_handleOperation','SetScrollOperation','LIVESHARE_OPERATION','DisposableCollection','url(#$1','requireSession','registerSharedOperation','_univerInstanceService','forwardRef','svg','84340FjCsPD','_commandService','event$','getTypeOfUnitAdded$','idSuffix','takeUntil','type','You\x27are\x20offline.','You\x27re\x20presenting\x20the\x20document','Start\x20following','UNIVER_SHEET','1em','ONLINE','Button','Module','_unitID','find','tryStartPresenting','button','colorChannel1','startFollowing','10555IJloqX','pipe','clsx','LIVESHARE_NEW_HOST','_status','_stopPresenting','5600028FQRkmq','disposeWithMe','complete','IUIPartsService','CollaborationEvent','180CYTFNw','registerDependencies','onCommandExecuted','_stopFollowing','_startFollowing','merge','LiveShareIcon','connectInjector','LiveShare','jsx','Disposable','entries','replace','presenter','div','not-following','mergeOverrideWithDependencies','UNIVER_LIVE_SHARE_PLUGIN','HEADER_MENU','idle','parse','Stop\x20following','fill','LiveShareCoordinator','has','822WReSwW','createElement','_handleOnline','executeCommand','path','UniverIcon','parseProtocolChangeset','univer-mb-3\x20univer-w-full\x20univer-text-sm','shouldShareOperation','override','UNIVER_UNKNOWN','_configService','set','getValue','IConfigService','operations','_handleTerminate','UniverCollaborationClientPlugin','defineProperty','touchDependencies','RxDisposable','Plugin','21612jlbQZT','_handleNewHost','UniverLiveSharePlugin','Stop\x20presenting','_status$','setConfig','presenting','getMemberID','displayName','stopFollowing','getUnitId','onStarting','_presenter','current','xlink:href','dispose','end','defs','IDLE','OFFLINE','0\x200\x2017\x2017','_commandDisposable','includes','symbol','_collabSession','NEW_CHANGESETS','sessionStatus$','following','_startLiveShareCoordinator','toDisposable','dispose$','LiveShareService','substring','get','_config','You\x27re\x20not\x20following\x20the\x20presenter','NOT_FOLLOWING','asObservable','stopPresenting','from','mask','LiveShareController','forEach'];_0x4c94=function(){return _0x230e95;};return _0x4c94();}function j(_0x978f76,_0x2fc1ca,_0xd4bc70,_0x15a75b,_0x1de0e4){const _0x4fc54b=_0x12f82e;return v[_0x4fc54b(0x1fb)](_0x978f76[_0x4fc54b(0x173)],{'key':_0x2fc1ca,...y(_0x978f76,_0xd4bc70,_0x1de0e4),..._0x15a75b},(F(_0x978f76,_0xd4bc70)[_0x4fc54b(0x1ac)]||[])[_0x4fc54b(0x193)]((_0x54f9dc,_0x58e83b)=>j(_0x54f9dc,_0x2fc1ca+'-'+_0x978f76[_0x4fc54b(0x173)]+'-'+_0x58e83b,_0xd4bc70,void 0x0,_0x1de0e4)));}function y(_0x34beae,_0x75ab2c,_0x4e85d7){const _0xf4ecce=_0x12f82e,_0x28bf95={..._0x34beae[_0xf4ecce(0x197)]};_0x4e85d7!=null&&_0x4e85d7[_0xf4ecce(0x1d4)]&&_0x28bf95['fill']===_0xf4ecce(0x1d4)&&(_0x28bf95[_0xf4ecce(0x1f7)]=_0x4e85d7['colorChannel1']),_0x34beae[_0xf4ecce(0x173)]===_0xf4ecce(0x165)&&_0x28bf95['id']&&(_0x28bf95['id']=_0x28bf95['id']+_0x75ab2c['idSuffix']),Object[_0xf4ecce(0x1ec)](_0x28bf95)[_0xf4ecce(0x167)](([_0x1fac4c,_0x32ba95])=>{const _0x431908=_0xf4ecce;_0x1fac4c===_0x431908(0x165)&&typeof _0x32ba95==_0x431908(0x189)&&(_0x28bf95[_0x1fac4c]=_0x32ba95[_0x431908(0x1ed)](/url\(#(.*)\)/,_0x431908(0x1bb)+_0x75ab2c[_0x431908(0x1c5)]+')'));});const {defIds:_0x43e5d7}=_0x75ab2c;return!_0x43e5d7||_0x43e5d7[_0xf4ecce(0x196)]===0x0||(_0x34beae[_0xf4ecce(0x173)]===_0xf4ecce(0x1a7)&&_0x28bf95[_0xf4ecce(0x14b)]&&(_0x28bf95['xlink:href']=_0x28bf95[_0xf4ecce(0x14b)]+_0x75ab2c[_0xf4ecce(0x1c5)]),Object[_0xf4ecce(0x1ec)](_0x28bf95)[_0xf4ecce(0x167)](([_0x1e0964,_0x2bf303])=>{const _0x4b1f01=_0xf4ecce;typeof _0x2bf303=='string'&&(_0x28bf95[_0x1e0964]=_0x2bf303[_0x4b1f01(0x1ed)](/url\(#(.*)\)/,_0x4b1f01(0x1bb)+_0x75ab2c[_0x4b1f01(0x1c5)]+')'));})),_0x28bf95;}function F(_0x3e5622,_0x131d0e){const _0x4390ec=_0x12f82e;var _0x4179f7;const {defIds:_0x3d7c52}=_0x131d0e;return!_0x3d7c52||_0x3d7c52[_0x4390ec(0x196)]===0x0?_0x3e5622:_0x3e5622[_0x4390ec(0x173)]===_0x4390ec(0x14e)&&((_0x4179f7=_0x3e5622['children'])!=null&&_0x4179f7[_0x4390ec(0x196)])?{..._0x3e5622,'children':_0x3e5622[_0x4390ec(0x1ac)][_0x4390ec(0x193)](_0x35b678=>typeof _0x35b678[_0x4390ec(0x197)]['id']==_0x4390ec(0x189)&&_0x3d7c52&&_0x3d7c52[_0x4390ec(0x153)](_0x35b678[_0x4390ec(0x197)]['id'])?{..._0x35b678,'attrs':{..._0x35b678[_0x4390ec(0x197)],'id':_0x35b678[_0x4390ec(0x197)]['id']+_0x131d0e[_0x4390ec(0x1c5)]}}:_0x35b678)}:_0x3e5622;}function _0x4641(_0x28bb5f,_0x5d2836){_0x28bb5f=_0x28bb5f-0x13c;const _0x4c9455=_0x4c94();let _0x4641bf=_0x4c9455[_0x28bb5f];return _0x4641bf;}function H(){const _0x3ea414=_0x12f82e;return Math[_0x3ea414(0x17a)]()[_0x3ea414(0x1b2)](0x24)[_0x3ea414(0x15d)](0x2,0x8);}x[_0x12f82e(0x145)]=_0x12f82e(0x1ff);const V={'tag':_0x12f82e(0x1c0),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x12f82e(0x17e),'viewBox':_0x12f82e(0x151),'width':_0x12f82e(0x1cc),'height':_0x12f82e(0x1cc)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x12f82e(0x1fe),'attrs':{'fill':'currentColor','d':_0x12f82e(0x168),'fillRule':'evenodd','clipRule':_0x12f82e(0x1b4)}}]},R=v[_0x12f82e(0x1bf)](function(_0xff8aef,_0x956d36){const _0x10fc6a=_0x12f82e;return v[_0x10fc6a(0x1fb)](x,Object['assign']({},_0xff8aef,{'id':'live-share-icon','ref':_0x956d36,'icon':V}));});R[_0x12f82e(0x145)]=_0x12f82e(0x1e7);class E extends o['Disposable']{constructor(){super(...arguments),_(this,'_sharedOperations',new Set()),_(this,'_reporters',new Set());}['registerSharedOperation'](_0x17886d){const _0x2b3dde=_0x12f82e;return this[_0x2b3dde(0x19d)][_0x2b3dde(0x182)](_0x17886d),o[_0x2b3dde(0x15a)](()=>this['_sharedOperations']['delete'](_0x17886d));}['registerInitialStateReporter'](_0x22a121){const _0x5e0cf8=_0x12f82e;return this['_reporters'][_0x5e0cf8(0x182)](_0x22a121),o[_0x5e0cf8(0x15a)](()=>this[_0x5e0cf8(0x16d)]['delete'](_0x22a121));}[_0x12f82e(0x202)](_0x4e1fdf){const _0x548879=_0x12f82e;return this[_0x548879(0x19d)]['has'](_0x4e1fdf);}[_0x12f82e(0x19e)](_0x2db929){const _0x26d75d=_0x12f82e;return Array[_0x26d75d(0x164)](this['_reporters'])[_0x26d75d(0x193)](_0x2f69f9=>_0x2f69f9(_0x2db929));}}var M=Object[_0x12f82e(0x188)],P=(_0x14da8d,_0x32b72d,_0x947996,_0x16cdf7)=>{const _0x135f38=_0x12f82e;for(var _0x5f5d5f=_0x16cdf7>0x1?void 0x0:_0x16cdf7?M(_0x32b72d,_0x947996):_0x32b72d,_0x4a5f02=_0x14da8d[_0x135f38(0x196)]-0x1,_0x37dc03;_0x4a5f02>=0x0;_0x4a5f02--)(_0x37dc03=_0x14da8d[_0x4a5f02])&&(_0x5f5d5f=_0x37dc03(_0x5f5d5f)||_0x5f5d5f);return _0x5f5d5f;},S=(_0x430b9c,_0xa4eb5f)=>(_0x517220,_0x158184)=>_0xa4eb5f(_0x517220,_0x158184,_0x430b9c);exports[_0x12f82e(0x166)]=class extends o[_0x12f82e(0x20e)]{constructor(_0x1a6ad7,_0xb570f4,_0x521385){const _0x2a1720=_0x12f82e;super(),_(this,_0x2a1720(0x1aa),new Map()),(this[_0x2a1720(0x1be)]=_0x1a6ad7,this['_injector']=_0xb570f4,this['_collabSessionService']=_0x521385,this[_0x2a1720(0x19f)]());}async['getLiveShareCoordinator'](_0x264f8d){const _0x387f42=_0x12f82e;return this[_0x387f42(0x1aa)][_0x387f42(0x1f9)](_0x264f8d)||await this[_0x387f42(0x159)](_0x264f8d),this[_0x387f42(0x1aa)][_0x387f42(0x15e)](_0x264f8d);}[_0x12f82e(0x175)](_0x3b7290){const _0x81b120=_0x12f82e;var _0x44237e;return(_0x44237e=this[_0x81b120(0x1aa)][_0x81b120(0x15e)](_0x3b7290))!=null?_0x44237e:null;}[_0x12f82e(0x19f)](){const _0x16dfac=_0x12f82e;this['_univerInstanceService'][_0x16dfac(0x1c4)](o[_0x16dfac(0x191)]['UNIVER_SHEET'])[_0x16dfac(0x1d7)](I['takeUntil'](this[_0x16dfac(0x15b)]))[_0x16dfac(0x1a0)](async _0x1c64ee=>{const _0x24c6b5=_0x16dfac,_0x36641e=_0x1c64ee[_0x24c6b5(0x147)]();this[_0x24c6b5(0x1aa)]['has'](_0x36641e)||this[_0x24c6b5(0x159)](_0x36641e);}),this[_0x16dfac(0x1be)]['getTypeOfUnitDisposed$'](o['UniverInstanceType'][_0x16dfac(0x1cb)])['pipe'](I[_0x16dfac(0x1c6)](this['dispose$']))[_0x16dfac(0x1a0)](_0x142594=>{const _0x1a728b=_0x16dfac,_0x333a26=_0x142594[_0x1a728b(0x147)](),_0x9b445a=this[_0x1a728b(0x1aa)][_0x1a728b(0x15e)](_0x333a26);_0x9b445a==null||_0x9b445a[_0x1a728b(0x14c)]();});}async[_0x12f82e(0x159)](_0x1046ae){const _0x12f9b1=_0x12f82e,_0x4bb107=await this[_0x12f9b1(0x17c)][_0x12f9b1(0x1bc)](_0x1046ae),_0x1d31a2=this[_0x12f9b1(0x18e)][_0x12f9b1(0x1a8)](exports[_0x12f9b1(0x1f8)],_0x1046ae,_0x4bb107);return _0x1d31a2[_0x12f9b1(0x17b)](),this['_entities'][_0x12f9b1(0x206)](_0x1046ae,_0x1d31a2),_0x1d31a2;}},exports[_0x12f82e(0x166)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x12f82e(0x169)](o[_0x12f82e(0x198)])),S(0x2,o['Inject'](b['CollaborationSessionService']))],exports['LiveShareController']);var u=(_0x9e342b=>(_0x9e342b[_0x12f82e(0x150)]='offline',_0x9e342b['IDLE']='idle',_0x9e342b['FOLLOWING']=_0x12f82e(0x158),_0x9e342b[_0x12f82e(0x161)]=_0x12f82e(0x1f0),_0x9e342b[_0x12f82e(0x19a)]=_0x12f82e(0x143),_0x9e342b))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports['LiveShareCoordinator']=class extends o[_0x12f82e(0x20e)]{constructor(_0x155913,_0x1e87b6,_0x2cc75f,_0x4887ce,_0x54bf30){const _0x3d8215=_0x12f82e;super(),_(this,_0x3d8215(0x141),new O['BehaviorSubject']('idle')),_(this,'status$',this[_0x3d8215(0x141)][_0x3d8215(0x162)]()),_(this,_0x3d8215(0x19f),!0x1),_(this,'_commandDisposable',null),_(this,_0x3d8215(0x149),null),(this[_0x3d8215(0x1d0)]=_0x155913,this[_0x3d8215(0x155)]=_0x1e87b6,this[_0x3d8215(0x205)]=_0x2cc75f,this[_0x3d8215(0x195)]=_0x4887ce,this[_0x3d8215(0x1c2)]=_0x54bf30);}get[_0x12f82e(0x1da)](){const _0x5d5ab5=_0x12f82e;return this[_0x5d5ab5(0x141)][_0x5d5ab5(0x207)]();}[_0x12f82e(0x14c)](){const _0x21ced9=_0x12f82e;var _0x2dbdbc;(_0x2dbdbc=this[_0x21ced9(0x152)])==null||_0x2dbdbc[_0x21ced9(0x14c)](),this[_0x21ced9(0x141)][_0x21ced9(0x18b)](_0x21ced9(0x1f4)),this[_0x21ced9(0x141)][_0x21ced9(0x1de)]();}[_0x12f82e(0x16f)](){const _0xb03cc0=_0x12f82e;return this[_0xb03cc0(0x1da)];}['init'](){const _0x13e9f7=_0x12f82e;this[_0x13e9f7(0x19f)]||(this[_0x13e9f7(0x19f)]=!0x0,this['_collabSession'][_0x13e9f7(0x157)][_0x13e9f7(0x1d7)](I[_0x13e9f7(0x1c6)](this[_0x13e9f7(0x15b)]))[_0x13e9f7(0x1a0)](_0x5d24eb=>{const _0x4cd108=_0x13e9f7;switch(_0x5d24eb){case b[_0x4cd108(0x18c)][_0x4cd108(0x150)]:this['_handleOffline']();break;case b[_0x4cd108(0x18c)][_0x4cd108(0x1cd)]:this[_0x4cd108(0x1fc)]();break;}}),this[_0x13e9f7(0x155)][_0x13e9f7(0x1c3)][_0x13e9f7(0x1d7)](I[_0x13e9f7(0x1c6)](this[_0x13e9f7(0x15b)]))[_0x13e9f7(0x1a0)](_0x2ef593=>{const _0x204f72=_0x13e9f7,{eventID:_0x4820ad}=_0x2ef593;switch(_0x4820ad){case d[_0x204f72(0x1e0)][_0x204f72(0x1d9)]:this[_0x204f72(0x13e)](_0x2ef593);break;case d[_0x204f72(0x1e0)][_0x204f72(0x1b9)]:this[_0x204f72(0x1b7)](_0x2ef593);break;case d['CollaborationEvent'][_0x204f72(0x180)]:this[_0x204f72(0x20a)]();break;case d[_0x204f72(0x1e0)][_0x204f72(0x156)]:this[_0x204f72(0x16a)](_0x2ef593);break;}}));}[_0x12f82e(0x1d2)](){const _0xbbb99d=_0x12f82e;this['_collabSession'][_0xbbb99d(0x1b1)]({'eventID':d[_0xbbb99d(0x1e0)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0xbbb99d(0x1d0)],'userID':this[_0xbbb99d(0x155)][_0xbbb99d(0x144)]()}},this['_unitID']);}[_0x12f82e(0x163)](){const _0x376e6f=_0x12f82e;this['_status']===_0x376e6f(0x143)&&(this[_0x376e6f(0x141)]['next']('idle'),this[_0x376e6f(0x155)][_0x376e6f(0x1b1)]({'eventID':d[_0x376e6f(0x1e0)][_0x376e6f(0x180)],'data':{'unitID':this[_0x376e6f(0x1d0)]}},this[_0x376e6f(0x1d0)]));}[_0x12f82e(0x1d5)](){const _0x3b14ab=_0x12f82e;this[_0x3b14ab(0x1da)]==='not-following'&&(this['_status$'][_0x3b14ab(0x18b)](_0x3b14ab(0x158)),this[_0x3b14ab(0x1e5)]());}[_0x12f82e(0x146)](){const _0x23c08d=_0x12f82e;this['_status']===_0x23c08d(0x158)&&this[_0x23c08d(0x1e4)]();}['_handleNewHost'](_0x4bf94d){const _0x2142cc=_0x12f82e,{presenter:_0x141e63}=_0x4bf94d[_0x2142cc(0x17d)],_0x4fb545=this['_collabSession'][_0x2142cc(0x144)]();this[_0x2142cc(0x149)]=_0x141e63,_0x141e63===_0x4fb545?(this[_0x2142cc(0x1e4)](),this['_startPresenting']()):this[_0x2142cc(0x1da)]!=='not-following'&&(this[_0x2142cc(0x1db)](),this[_0x2142cc(0x1e5)]());}[_0x12f82e(0x1b3)](){const _0x338c50=_0x12f82e,_0x235716={'eventID':d[_0x338c50(0x1e0)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x338c50(0x155)][_0x338c50(0x1b1)](_0x235716,this[_0x338c50(0x1d0)]);}[_0x12f82e(0x20a)](){const _0x44f304=_0x12f82e;this[_0x44f304(0x149)]=null,this[_0x44f304(0x1da)]!==_0x44f304(0x143)&&this['_beIdle']();}[_0x12f82e(0x16a)](_0x5f52f4){const _0x1be33e=_0x12f82e;if(this[_0x1be33e(0x1da)]===_0x1be33e(0x158)&&this['_presenter']===_0x5f52f4[_0x1be33e(0x17d)][_0x1be33e(0x187)]){const _0x548072=d[_0x1be33e(0x200)](_0x5f52f4[_0x1be33e(0x17d)])[_0x1be33e(0x179)]['reverse']()[_0x1be33e(0x1d1)](_0x4472a4=>_0x4472a4['id']===C[_0x1be33e(0x17f)]['id']);if(_0x548072){const _0x346ea4=_0x548072[_0x1be33e(0x1a3)]['unitId'],_0x1fdd91=_0x548072['params'][_0x1be33e(0x1b0)]['id'];setTimeout(()=>{const _0x38ca75=_0x1be33e;this['_commandService'][_0x38ca75(0x1fd)](C[_0x38ca75(0x174)]['id'],{'unitId':_0x346ea4,'subUnitId':_0x1fdd91},{'fromCollab':!0x0});});}}}[_0x12f82e(0x176)](){const _0x15b8d9=_0x12f82e;this[_0x15b8d9(0x141)][_0x15b8d9(0x18b)](_0x15b8d9(0x143));const _0x4a13df=new Map(),_0x5651ac=this['_commandDisposable']=new o[(_0x15b8d9(0x1ba))]();_0x5651ac[_0x15b8d9(0x182)](o['toDisposable'](()=>{const _0x62ecac=_0x15b8d9;_0x4a13df[_0x62ecac(0x167)](_0x4df896=>_0x4df896[_0x62ecac(0x1de)]()),_0x4a13df[_0x62ecac(0x16e)]();})),_0x5651ac[_0x15b8d9(0x182)](this[_0x15b8d9(0x1c2)][_0x15b8d9(0x1e3)](_0x43c342=>{const _0x1fb2d8=_0x15b8d9;var _0x1a820a;if(_0x43c342[_0x1fb2d8(0x1c7)]!==o['CommandType']['OPERATION']||!this[_0x1fb2d8(0x195)][_0x1fb2d8(0x202)](_0x43c342['id']))return;const {id:_0x32f700}=_0x43c342;let _0x55cb47;_0x4a13df[_0x1fb2d8(0x1f9)](_0x32f700)?_0x55cb47=_0x4a13df[_0x1fb2d8(0x15e)](_0x32f700):(_0x55cb47=new O['Subject'](),_0x4a13df[_0x1fb2d8(0x206)](_0x32f700,_0x55cb47),_0x55cb47[_0x1fb2d8(0x1d7)](I[_0x1fb2d8(0x171)]((_0x1a820a=this[_0x1fb2d8(0x205)][_0x1fb2d8(0x1a1)](k))!=null?_0x1a820a:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x46fc65=>{const _0x4005d9=_0x1fb2d8;this[_0x4005d9(0x155)]['send']({'eventID':d['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4005d9(0x1d0)],'operations':{[_0x46fc65['id']]:{'id':_0x46fc65['id'],'params':JSON[_0x4005d9(0x1ab)](_0x46fc65[_0x4005d9(0x1a3)])}}}},this[_0x4005d9(0x1d0)]);})),_0x55cb47[_0x1fb2d8(0x18b)](_0x43c342);})),this[_0x15b8d9(0x195)][_0x15b8d9(0x19e)](this[_0x15b8d9(0x1d0)])[_0x15b8d9(0x167)](_0x8a33fe=>this[_0x15b8d9(0x155)]['send']({'eventID':d[_0x15b8d9(0x1e0)][_0x15b8d9(0x1b9)],'data':{'unitID':this[_0x15b8d9(0x1d0)],'operations':{[_0x8a33fe['id']]:{'id':_0x8a33fe['id'],'params':JSON['stringify'](_0x8a33fe[_0x15b8d9(0x1a3)])}}}},this[_0x15b8d9(0x1d0)]));}[_0x12f82e(0x1db)](){const _0x3b5ba5=_0x12f82e;var _0x26ef56;this[_0x3b5ba5(0x141)][_0x3b5ba5(0x18b)](_0x3b5ba5(0x1f4)),(_0x26ef56=this[_0x3b5ba5(0x152)])==null||_0x26ef56['dispose'](),this[_0x3b5ba5(0x152)]=null;}[_0x12f82e(0x1e5)](){const _0x41919e=_0x12f82e;var _0x1af539;(_0x1af539=this['_commandDisposable'])==null||_0x1af539[_0x41919e(0x14c)](),this[_0x41919e(0x141)]['next']('following');}[_0x12f82e(0x1ad)](){const _0x4ce764=_0x12f82e;var _0x39efe9;this[_0x4ce764(0x141)][_0x4ce764(0x18b)](_0x4ce764(0x1f4)),(_0x39efe9=this['_commandDisposable'])==null||_0x39efe9[_0x4ce764(0x14c)](),this['_commandDisposable']=null;}[_0x12f82e(0x1e4)](){const _0x433c4c=_0x12f82e;var _0x131823;this[_0x433c4c(0x141)]['next'](_0x433c4c(0x1f0)),(_0x131823=this[_0x433c4c(0x152)])==null||_0x131823[_0x433c4c(0x14c)]();}[_0x12f82e(0x1b7)](_0x395760){const _0x4d81fa=_0x12f82e;if(['presenting','not-following',_0x4d81fa(0x183)][_0x4d81fa(0x153)](this[_0x4d81fa(0x1da)])||!_0x395760[_0x4d81fa(0x17d)]['presenter']||_0x395760[_0x4d81fa(0x17d)][_0x4d81fa(0x1ee)]===this[_0x4d81fa(0x155)]['getMemberID']())return;this[_0x4d81fa(0x1da)]==='idle'&&this[_0x4d81fa(0x1e5)]();const _0x2b2aca=_0x395760[_0x4d81fa(0x17d)][_0x4d81fa(0x209)];Object['values'](_0x2b2aca)[_0x4d81fa(0x167)](_0x532b03=>{const _0x51adf3=_0x4d81fa;this[_0x51adf3(0x1c2)]['executeCommand'](_0x532b03['id'],_0x532b03[_0x51adf3(0x1a3)]?JSON[_0x51adf3(0x1f5)](_0x532b03['params']):null,{'fromCollab':!0x0});});}[_0x12f82e(0x1ae)](){const _0x559e3c=_0x12f82e;var _0x5733a2;this[_0x559e3c(0x141)][_0x559e3c(0x18b)](_0x559e3c(0x183)),(_0x5733a2=this[_0x559e3c(0x152)])==null||_0x5733a2[_0x559e3c(0x14c)]();}['_handleOnline'](){const _0x25a6f0=_0x12f82e;this[_0x25a6f0(0x141)][_0x25a6f0(0x18b)](_0x25a6f0(0x1f4)),this[_0x25a6f0(0x1b3)]();}},exports[_0x12f82e(0x1f8)]=P([S(0x2,o[_0x12f82e(0x208)]),S(0x3,o['Inject'](E)),S(0x4,o['ICommandService'])],exports[_0x12f82e(0x1f8)]);function $(){const _0x31535f=_0x12f82e,_0x2f5efa=p[_0x31535f(0x16b)](exports['LiveShareController']),_0x4c4ed6=p['useDependency'](o['IUniverInstanceService']),_0x1acdcf=p['useObservable'](()=>_0x4c4ed6[_0x31535f(0x18a)](o[_0x31535f(0x191)][_0x31535f(0x1cb)]),void 0x0,!0x1,[]),[_0x2f26b7,_0x584960]=v[_0x31535f(0x172)](null),[_0x27a7ae,_0x550c50]=v['useState'](u[_0x31535f(0x14f)]),_0x2ad5b9=v['useRef'](null);return v[_0x31535f(0x192)](()=>(_0x1acdcf&&_0x2f5efa[_0x31535f(0x177)](_0x1acdcf[_0x31535f(0x147)]())[_0x31535f(0x1a5)](_0x11fb8e=>{const _0x593d8d=_0x31535f;_0x584960(_0x11fb8e),_0x2ad5b9[_0x593d8d(0x14a)]=_0x11fb8e['status$']['subscribe'](_0x4a9e62=>{_0x550c50(_0x4a9e62);});}),()=>{const _0x12ce0c=_0x31535f;var _0x413077;(_0x413077=_0x2ad5b9[_0x12ce0c(0x14a)])==null||_0x413077[_0x12ce0c(0x18d)](),_0x2ad5b9[_0x12ce0c(0x14a)]=null;}),[_0x1acdcf,_0x2f5efa]),_0x2f26b7?l['jsx'](f[_0x31535f(0x184)],{'align':_0x31535f(0x14d),'disabled':_0x27a7ae===u[_0x31535f(0x150)],'className':_0x31535f(0x1a4),'overlay':l['jsx'](W,{'status':_0x27a7ae,'coordinator':_0x2f26b7}),'children':l[_0x31535f(0x1ea)]('button',{'className':f[_0x31535f(0x1d8)](_0x31535f(0x1a6),{'univer-cursor-not-allowed':_0x27a7ae===u[_0x31535f(0x150)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x27a7ae!==u[_0x31535f(0x150)]}),'type':_0x31535f(0x1d3),'children':l[_0x31535f(0x1ea)](R,{'className':'univer-size-4'})})}):null;}function W(_0x436e05){const _0x2048dd=_0x12f82e,{status:_0x3081f9,coordinator:_0xb0b951}=_0x436e05;switch(_0x3081f9){case u[_0x2048dd(0x14f)]:return l[_0x2048dd(0x1ea)](G,{'coordinator':_0xb0b951});case u['FOLLOWING']:return l[_0x2048dd(0x1ea)](B,{'coordinator':_0xb0b951});case u[_0x2048dd(0x161)]:return l[_0x2048dd(0x1ea)](Y,{'coordinator':_0xb0b951});case u['OFFLINE']:return l[_0x2048dd(0x1ea)](J,{});case u[_0x2048dd(0x19a)]:return l['jsx'](Z,{'coordinator':_0xb0b951});default:return null;}}function G(_0x3971f8){const _0x5aec32=_0x12f82e,{coordinator:_0x51c1c2}=_0x3971f8;return l[_0x5aec32(0x190)](l[_0x5aec32(0x1b5)],{'children':[l['jsx'](_0x5aec32(0x1ef),{'className':_0x5aec32(0x201),'children':'Present\x20this\x20document'}),l[_0x5aec32(0x1ea)](f[_0x5aec32(0x1ce)],{'onClick':()=>_0x51c1c2[_0x5aec32(0x1d2)](),'children':_0x5aec32(0x194)})]});}function B(_0x1112a4){const _0x3c7bc4=_0x12f82e,{coordinator:_0x5de80}=_0x1112a4;return l['jsxs'](l['Fragment'],{'children':[l[_0x3c7bc4(0x1ea)]('div',{'className':_0x3c7bc4(0x201),'children':_0x3c7bc4(0x199)}),l[_0x3c7bc4(0x1ea)](f[_0x3c7bc4(0x1ce)],{'onClick':()=>_0x5de80[_0x3c7bc4(0x146)](),'children':_0x3c7bc4(0x1f6)})]});}function Y(_0x4da901){const _0x43e432=_0x12f82e,{coordinator:_0x3e39ab}=_0x4da901;return l[_0x43e432(0x190)](l[_0x43e432(0x1b5)],{'children':[l[_0x43e432(0x1ea)](_0x43e432(0x1ef),{'className':_0x43e432(0x201),'children':_0x43e432(0x160)}),l['jsx'](f[_0x43e432(0x1ce)],{'variant':'text','onClick':()=>_0x3e39ab[_0x43e432(0x1d5)](),'children':_0x43e432(0x1ca)})]});}function Z(_0x4b31fd){const _0x2d35f9=_0x12f82e,{coordinator:_0x2bdfcc}=_0x4b31fd;return l['jsxs'](l['Fragment'],{'children':[l['jsx']('div',{'className':_0x2d35f9(0x201),'children':_0x2d35f9(0x1c9)}),l['jsx'](f['Button'],{'variant':'default','onClick':()=>_0x2bdfcc[_0x2d35f9(0x163)](),'children':_0x2d35f9(0x140)})]});}function J(){const _0x1038f2=_0x12f82e;return l[_0x1038f2(0x1ea)](l[_0x1038f2(0x1b5)],{'children':_0x1038f2(0x1c8)});}var K=Object[_0x12f82e(0x188)],z=(_0x2d47c2,_0x4c8d57,_0x1aeb6f,_0x3a2d0c)=>{const _0x4128f3=_0x12f82e;for(var _0x56ca41=_0x3a2d0c>0x1?void 0x0:_0x3a2d0c?K(_0x4c8d57,_0x1aeb6f):_0x4c8d57,_0x1547ba=_0x2d47c2[_0x4128f3(0x196)]-0x1,_0x5c2d26;_0x1547ba>=0x0;_0x1547ba--)(_0x5c2d26=_0x2d47c2[_0x1547ba])&&(_0x56ca41=_0x5c2d26(_0x56ca41)||_0x56ca41);return _0x56ca41;},L=(_0xd78a76,_0x15b83b)=>(_0x4b8f2a,_0x328071)=>_0x15b83b(_0x4b8f2a,_0x328071,_0xd78a76);exports[_0x12f82e(0x186)]=class extends o[_0x12f82e(0x1eb)]{constructor(_0x3dc07e,_0x401b0c){const _0x272655=_0x12f82e;super(),this['_injector']=_0x3dc07e,this[_0x272655(0x1b6)]=_0x401b0c,this[_0x272655(0x16c)]();}[_0x12f82e(0x16c)](){const _0x472668=_0x12f82e;this[_0x472668(0x1dd)](this[_0x472668(0x1b6)]['registerComponent'](p[_0x472668(0x19c)][_0x472668(0x1f3)],()=>p[_0x472668(0x1e8)]($,this[_0x472668(0x18e)])));}},exports[_0x12f82e(0x186)]=z([L(0x0,o[_0x12f82e(0x169)](o[_0x12f82e(0x198)])),L(0x1,p[_0x12f82e(0x1df)])],exports[_0x12f82e(0x186)]);const Q=_0x12f82e(0x170),w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0xd7cb92,_0x2680b8,_0x232125,_0x53daad)=>{const _0x5bba22=_0x12f82e;for(var _0x2e0da3=_0x53daad>0x1?void 0x0:_0x53daad?X(_0x2680b8,_0x232125):_0x2680b8,_0x33d36a=_0xd7cb92[_0x5bba22(0x196)]-0x1,_0x2be649;_0x33d36a>=0x0;_0x33d36a--)(_0x2be649=_0xd7cb92[_0x33d36a])&&(_0x2e0da3=_0x2be649(_0x2e0da3)||_0x2e0da3);return _0x2e0da3;},te=(_0x307ead,_0x5283a9)=>(_0x54df7c,_0x526b2f)=>_0x5283a9(_0x54df7c,_0x526b2f,_0x307ead);let m=class extends o[_0x12f82e(0x1eb)]{constructor(_0x57a1ec){const _0x3f2e7c=_0x12f82e;super(),this[_0x3f2e7c(0x195)]=_0x57a1ec,this[_0x3f2e7c(0x19f)]();}['_init'](){const _0x54e40d=_0x12f82e;[D[_0x54e40d(0x1a2)]['id'],D[_0x54e40d(0x1b8)]['id'],C[_0x54e40d(0x174)]['id']][_0x54e40d(0x167)](_0x3d5e3b=>{const _0x554950=_0x54e40d;this[_0x554950(0x1dd)](this[_0x554950(0x195)][_0x554950(0x1bd)](_0x3d5e3b));});}};m=ee([te(0x0,o[_0x12f82e(0x169)](E))],m);var ie=Object[_0x12f82e(0x20c)],se=Object[_0x12f82e(0x188)],ne=(_0x2f10fc,_0x27c368,_0x3e6147)=>_0x27c368 in _0x2f10fc?ie(_0x2f10fc,_0x27c368,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e6147}):_0x2f10fc[_0x27c368]=_0x3e6147,re=(_0x3c3bc3,_0x50dba5,_0x1a9f1d,_0x42ead9)=>{const _0x1e93df=_0x12f82e;for(var _0x27bc6=_0x42ead9>0x1?void 0x0:_0x42ead9?se(_0x50dba5,_0x1a9f1d):_0x50dba5,_0x581e27=_0x3c3bc3[_0x1e93df(0x196)]-0x1,_0x2f73d4;_0x581e27>=0x0;_0x581e27--)(_0x2f73d4=_0x3c3bc3[_0x581e27])&&(_0x27bc6=_0x2f73d4(_0x27bc6)||_0x27bc6);return _0x27bc6;},N=(_0x2611d9,_0x3ee6ed)=>(_0x46ac15,_0x23ce83)=>_0x3ee6ed(_0x46ac15,_0x23ce83,_0x2611d9),A=(_0x36639a,_0x33cf4d,_0x11e8e7)=>ne(_0x36639a,typeof _0x33cf4d!=_0x12f82e(0x154)?_0x33cf4d+'':_0x33cf4d,_0x11e8e7);const oe=_0x12f82e(0x1f2);exports[_0x12f82e(0x13f)]=class extends o[_0x12f82e(0x13c)]{constructor(_0x33449e=w,_0x19a831,_0x410b5b){const _0x2222e4=_0x12f82e;super(),this[_0x2222e4(0x15f)]=_0x33449e,this[_0x2222e4(0x18e)]=_0x19a831,this[_0x2222e4(0x205)]=_0x410b5b;const {..._0x47a14c}=o[_0x2222e4(0x1e6)]({},w,this[_0x2222e4(0x15f)]);this[_0x2222e4(0x205)][_0x2222e4(0x142)](Q,_0x47a14c);}[_0x12f82e(0x148)](){const _0x1437ba=_0x12f82e;o[_0x1437ba(0x1e2)](this['_injector'],o[_0x1437ba(0x1f1)]([[E],[exports[_0x1437ba(0x166)]],[m],[exports[_0x1437ba(0x186)]]],this[_0x1437ba(0x15f)][_0x1437ba(0x203)])),o['touchDependencies'](this[_0x1437ba(0x18e)],[[m]]);}['onRendered'](){const _0x48f0bd=_0x12f82e;o[_0x48f0bd(0x20d)](this['_injector'],[[exports[_0x48f0bd(0x186)]]]);}},A(exports[_0x12f82e(0x13f)],'type',o[_0x12f82e(0x191)][_0x12f82e(0x204)]),A(exports['UniverLiveSharePlugin'],'pluginName',oe),exports[_0x12f82e(0x13f)]=re([o['DependentOn'](b[_0x12f82e(0x20b)]),N(0x1,o[_0x12f82e(0x169)](o[_0x12f82e(0x198)])),N(0x2,o['IConfigService'])],exports[_0x12f82e(0x13f)]),exports[_0x12f82e(0x1e9)]=$,exports[_0x12f82e(0x15c)]=E,exports['LiveShareStatus']=u;
|
|
1
|
+
'use strict';const _0x34e30e=_0x31cf;(function(_0x4dad24,_0x504108){const _0x5e274c=_0x31cf,_0x2e1aaf=_0x4dad24();while(!![]){try{const _0x128c52=-parseInt(_0x5e274c(0x17b))/0x1+-parseInt(_0x5e274c(0x154))/0x2*(-parseInt(_0x5e274c(0x19a))/0x3)+parseInt(_0x5e274c(0xfe))/0x4*(parseInt(_0x5e274c(0xfc))/0x5)+parseInt(_0x5e274c(0x162))/0x6+parseInt(_0x5e274c(0x13c))/0x7+parseInt(_0x5e274c(0x14e))/0x8*(-parseInt(_0x5e274c(0x1b7))/0x9)+-parseInt(_0x5e274c(0x102))/0xa;if(_0x128c52===_0x504108)break;else _0x2e1aaf['push'](_0x2e1aaf['shift']());}catch(_0x3de6bf){_0x2e1aaf['push'](_0x2e1aaf['shift']());}}}(_0x5d3c,0x88ae4));var T=Object[_0x34e30e(0x179)],U=(_0x544d50,_0x3a0f18,_0x1cac04)=>_0x3a0f18 in _0x544d50?T(_0x544d50,_0x3a0f18,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1cac04}):_0x544d50[_0x3a0f18]=_0x1cac04,_=(_0x4c68b9,_0x5a1fe4,_0x4064fd)=>U(_0x4c68b9,typeof _0x5a1fe4!=_0x34e30e(0x170)?_0x5a1fe4+'':_0x5a1fe4,_0x4064fd);Object[_0x34e30e(0x179)](exports,Symbol[_0x34e30e(0x156)],{'value':_0x34e30e(0x1ae)});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:_0x283cd1,..._0x5789c9}){const _0x139f0f=_0x34e30e,{icon:_0x17d2ca,id:_0x858077,className:_0x16d393,extend:_0x2e2c90,..._0x43d90f}=_0x5789c9,_0x29d474=(_0x139f0f(0x115)+_0x858077+'\x20'+(_0x16d393||''))[_0x139f0f(0x15b)](),_0x2b1bc=v[_0x139f0f(0x1ac)]('_'+H());return j(_0x17d2ca,''+_0x858077,{'defIds':_0x17d2ca[_0x139f0f(0x180)],'idSuffix':_0x2b1bc['current']},{'ref':_0x283cd1,'className':_0x29d474,..._0x43d90f},_0x2e2c90);}function j(_0x4cda76,_0x226ce3,_0x3cd317,_0x31e422,_0x7c7ad){const _0x4e77dc=_0x34e30e;return v[_0x4e77dc(0x10e)](_0x4cda76[_0x4e77dc(0x11c)],{'key':_0x226ce3,...y(_0x4cda76,_0x3cd317,_0x7c7ad),..._0x31e422},(F(_0x4cda76,_0x3cd317)['children']||[])['map']((_0x287b9c,_0x44d060)=>j(_0x287b9c,_0x226ce3+'-'+_0x4cda76[_0x4e77dc(0x11c)]+'-'+_0x44d060,_0x3cd317,void 0x0,_0x7c7ad)));}function _0x31cf(_0xc53084,_0x1153f0){_0xc53084=_0xc53084-0xe7;const _0x5d3c2b=_0x5d3c();let _0x31cf08=_0x5d3c2b[_0xc53084];return _0x31cf08;}function y(_0x2d557f,_0x495bf9,_0x1cb6d9){const _0x4096b9=_0x34e30e,_0x4ba0b9={..._0x2d557f[_0x4096b9(0xea)]};_0x1cb6d9!=null&&_0x1cb6d9[_0x4096b9(0x12f)]&&_0x4ba0b9[_0x4096b9(0x119)]===_0x4096b9(0x12f)&&(_0x4ba0b9[_0x4096b9(0x119)]=_0x1cb6d9[_0x4096b9(0x12f)]),_0x2d557f[_0x4096b9(0x11c)]===_0x4096b9(0x1b4)&&_0x4ba0b9['id']&&(_0x4ba0b9['id']=_0x4ba0b9['id']+_0x495bf9['idSuffix']),Object[_0x4096b9(0x13b)](_0x4ba0b9)[_0x4096b9(0x108)](([_0x230158,_0xd371d9])=>{const _0x2294eb=_0x4096b9;_0x230158===_0x2294eb(0x1b4)&&typeof _0xd371d9=='string'&&(_0x4ba0b9[_0x230158]=_0xd371d9[_0x2294eb(0x117)](/url\(#(.*)\)/,_0x2294eb(0x14f)+_0x495bf9['idSuffix']+')'));});const {defIds:_0x4faf56}=_0x495bf9;return!_0x4faf56||_0x4faf56[_0x4096b9(0x16b)]===0x0||(_0x2d557f['tag']==='use'&&_0x4ba0b9['xlink:href']&&(_0x4ba0b9['xlink:href']=_0x4ba0b9[_0x4096b9(0x132)]+_0x495bf9[_0x4096b9(0x157)]),Object[_0x4096b9(0x13b)](_0x4ba0b9)[_0x4096b9(0x108)](([_0x24e2f8,_0x1f4edf])=>{const _0x2430b2=_0x4096b9;typeof _0x1f4edf==_0x2430b2(0x130)&&(_0x4ba0b9[_0x24e2f8]=_0x1f4edf['replace'](/url\(#(.*)\)/,_0x2430b2(0x14f)+_0x495bf9[_0x2430b2(0x157)]+')'));})),_0x4ba0b9;}function F(_0x59eab5,_0x3962c4){const _0x312b85=_0x34e30e;var _0x31b5cf;const {defIds:_0x41e1e5}=_0x3962c4;return!_0x41e1e5||_0x41e1e5[_0x312b85(0x16b)]===0x0?_0x59eab5:_0x59eab5['tag']==='defs'&&((_0x31b5cf=_0x59eab5[_0x312b85(0x106)])!=null&&_0x31b5cf[_0x312b85(0x16b)])?{..._0x59eab5,'children':_0x59eab5[_0x312b85(0x106)][_0x312b85(0x13f)](_0x52270f=>typeof _0x52270f[_0x312b85(0xea)]['id']==_0x312b85(0x130)&&_0x41e1e5&&_0x41e1e5[_0x312b85(0x163)](_0x52270f[_0x312b85(0xea)]['id'])?{..._0x52270f,'attrs':{..._0x52270f['attrs'],'id':_0x52270f[_0x312b85(0xea)]['id']+_0x3962c4[_0x312b85(0x157)]}}:_0x52270f)}:_0x59eab5;}function H(){const _0x3d3657=_0x34e30e;return Math[_0x3d3657(0x10b)]()[_0x3d3657(0x126)](0x24)[_0x3d3657(0x142)](0x2,0x8);}x[_0x34e30e(0xf6)]='UniverIcon';const V={'tag':_0x34e30e(0x118),'attrs':{'xmlns':_0x34e30e(0x1a0),'fill':_0x34e30e(0x19e),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x34e30e(0x164)},'children':[{'tag':'path','attrs':{'fill':_0x34e30e(0x15e),'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':_0x34e30e(0xfa),'attrs':{'fill':_0x34e30e(0x15e),'d':_0x34e30e(0x1aa),'fillRule':_0x34e30e(0x13d),'clipRule':'evenodd'}}]},R=v[_0x34e30e(0x176)](function(_0x2f5895,_0x451c56){const _0x5e5fed=_0x34e30e;return v['createElement'](x,Object[_0x5e5fed(0x172)]({},_0x2f5895,{'id':_0x5e5fed(0x1a7),'ref':_0x451c56,'icon':V}));});R[_0x34e30e(0xf6)]=_0x34e30e(0xf1);class E extends o[_0x34e30e(0x17e)]{constructor(){const _0x20bf3f=_0x34e30e;super(...arguments),_(this,_0x20bf3f(0xf7),new Set()),_(this,_0x20bf3f(0x104),new Set());}[_0x34e30e(0x16e)](_0x35e5a7){const _0x36dbaa=_0x34e30e;return this[_0x36dbaa(0xf7)][_0x36dbaa(0xfd)](_0x35e5a7),o[_0x36dbaa(0x153)](()=>this[_0x36dbaa(0xf7)]['delete'](_0x35e5a7));}[_0x34e30e(0x1ab)](_0x11c47f){const _0x4a715f=_0x34e30e;return this[_0x4a715f(0x104)]['add'](_0x11c47f),o[_0x4a715f(0x153)](()=>this[_0x4a715f(0x104)][_0x4a715f(0x165)](_0x11c47f));}['shouldShareOperation'](_0x5eb652){const _0x4ac4bb=_0x34e30e;return this[_0x4ac4bb(0xf7)]['has'](_0x5eb652);}[_0x34e30e(0x15f)](_0x57a4fb){const _0x10cd45=_0x34e30e;return Array[_0x10cd45(0x103)](this[_0x10cd45(0x104)])['map'](_0x3b5ed0=>_0x3b5ed0(_0x57a4fb));}}var M=Object[_0x34e30e(0x14d)],P=(_0x15f372,_0x2bb8b5,_0x2f243f,_0x342ac6)=>{const _0x558d96=_0x34e30e;for(var _0x229629=_0x342ac6>0x1?void 0x0:_0x342ac6?M(_0x2bb8b5,_0x2f243f):_0x2bb8b5,_0x5bb303=_0x15f372[_0x558d96(0x16b)]-0x1,_0xb8aa4f;_0x5bb303>=0x0;_0x5bb303--)(_0xb8aa4f=_0x15f372[_0x5bb303])&&(_0x229629=_0xb8aa4f(_0x229629)||_0x229629);return _0x229629;},S=(_0x757bc7,_0xf84cd5)=>(_0x184c20,_0xed7b66)=>_0xf84cd5(_0x184c20,_0xed7b66,_0x757bc7);exports['LiveShareController']=class extends o[_0x34e30e(0x12c)]{constructor(_0x540fd0,_0x52ed60,_0x1c8ef5){const _0x4fe98d=_0x34e30e;super(),_(this,_0x4fe98d(0x181),new Map()),(this['_univerInstanceService']=_0x540fd0,this[_0x4fe98d(0x13a)]=_0x52ed60,this[_0x4fe98d(0xee)]=_0x1c8ef5,this['_init']());}async['getLiveShareCoordinator'](_0x5cd67e){const _0x497342=_0x34e30e;return this[_0x497342(0x181)][_0x497342(0x138)](_0x5cd67e)||await this['_startLiveShareCoordinator'](_0x5cd67e),this['_entities'][_0x497342(0x18b)](_0x5cd67e);}[_0x34e30e(0x10f)](_0x2782f2){const _0x569731=_0x34e30e;var _0x5c362a;return(_0x5c362a=this[_0x569731(0x181)][_0x569731(0x18b)](_0x2782f2))!=null?_0x5c362a:null;}[_0x34e30e(0x128)](){const _0x4b2e64=_0x34e30e;this[_0x4b2e64(0x111)][_0x4b2e64(0xf2)](o[_0x4b2e64(0xf0)][_0x4b2e64(0x183)])[_0x4b2e64(0x11a)](I[_0x4b2e64(0x15c)](this[_0x4b2e64(0x190)]))[_0x4b2e64(0x152)](async _0x27d79f=>{const _0x5cb819=_0x4b2e64,_0x229063=_0x27d79f[_0x5cb819(0x144)]();this[_0x5cb819(0x181)][_0x5cb819(0x138)](_0x229063)||this[_0x5cb819(0x151)](_0x229063);}),this['_univerInstanceService'][_0x4b2e64(0xef)](o[_0x4b2e64(0xf0)]['UNIVER_SHEET'])[_0x4b2e64(0x11a)](I[_0x4b2e64(0x15c)](this[_0x4b2e64(0x190)]))[_0x4b2e64(0x152)](_0x18a9cf=>{const _0x9c70cd=_0x4b2e64,_0xeb67bf=_0x18a9cf[_0x9c70cd(0x144)](),_0x255148=this[_0x9c70cd(0x181)][_0x9c70cd(0x18b)](_0xeb67bf);_0x255148==null||_0x255148['dispose']();});}async[_0x34e30e(0x151)](_0x511455){const _0x2561a7=_0x34e30e,_0x4654a8=await this['_collabSessionService']['requireSession'](_0x511455),_0x2fc231=this[_0x2561a7(0x13a)]['createInstance'](exports['LiveShareCoordinator'],_0x511455,_0x4654a8);return _0x2fc231[_0x2561a7(0xf9)](),this[_0x2561a7(0x181)][_0x2561a7(0x100)](_0x511455,_0x2fc231),_0x2fc231;}},exports[_0x34e30e(0x123)]=P([S(0x0,o[_0x34e30e(0x17c)]),S(0x1,o[_0x34e30e(0x12d)](o[_0x34e30e(0x1b0)])),S(0x2,o[_0x34e30e(0x12d)](b['CollaborationSessionService']))],exports['LiveShareController']);function _0x5d3c(){const _0x3b10cb=['getStatus','16688430NePasI','from','_reporters','getLiveShareCoordinator','children','executeCommand','forEach','_stopFollowing','live-share.config','random','_commandDisposable','_mountLiveShare','createElement','getLiveShareCoordinatorSync','Stop\x20following','_univerInstanceService','getCurrentTypeOfUnit$','_handleTerminate','Stop\x20presenting','univerjs-icon\x20univerjs-icon-','getConfig','replace','svg','fill','pipe','getMemberID','tag','You\x27are\x20offline.','IConfigService','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','useState','useObservable','Fragment','LiveShareController','current','Plugin','toString','CollaborationEvent','_init','NEW_CHANGESETS','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','BehaviorSubject','RxDisposable','Inject','Start\x20following','colorChannel1','string','UNIVER_UNKNOWN','xlink:href','SetWorksheetActiveOperation','presenting','text','onCommandExecuted','params','has','_startFollowing','_injector','entries','6924561LxxfYy','evenodd','InsertSheetMutation','map','univer-mb-3\x20univer-w-full\x20univer-text-sm','operations','substring','div','getUnitId','SAME_OPERATION_SHARE_INTERVAL','clsx','type','jsxs','DisposableCollection','ONLINE','offline','LiveShareStatus','getOwnPropertyDescriptor','80otEmHR','url(#$1','DependentOn','_startLiveShareCoordinator','subscribe','toDisposable','890374ECfzfL','IDLE','toStringTag','idSuffix','dispose','_handleOffline','next','trim','takeUntil','_startPresenting','currentColor','getInitialStates','registerDependencies','disposeWithMe','6457212yrCaYE','includes','1em','delete','following','_status','unsubscribe','_beIdle','_config','length','complete','memberID','registerSharedOperation','Subject','symbol','_unitID','assign','not-following','end','data','forwardRef','PRESENTING','OPERATION','defineProperty','_configService','809175QnXzyE','IUniverInstanceService','_fetchOperations','Disposable','clear','defIds','_entities','_handleOperation','UNIVER_SHEET','_liveShareService','LIVESHARE_TERMINATE','override','default','idle','getValue','_collabSession','get','useDependency','_status$','_handleNewHost','You\x27re\x20following\x20the\x20presenter','dispose$','presenter','BuiltInUIPart','LIVESHARE_FETCH_OPERATIONS','values','stringify','event$','DesktopLiveShareController','onStarting','SessionStatus','6vqKmqN','LiveShareService','connectInjector','_handleNewChangeSets','none','LIVESHARE_NEW_HOST','http://www.w3.org/2000/svg','jsx','_commandService','sessionStatus$','_presenter','_stopPresenting','Button','live-share-icon','Dropdown','UniverLiveSharePlugin','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','registerInitialStateReporter','useRef','setConfig','Module','pluginName','Injector','status$','stopPresenting','LiveShareCoordinator','mask','NOT_FOLLOWING','LIVESHARE_OPERATION','880191sTluYp','touchDependencies','unitId','reverse','OFFLINE','then','attrs','send','univer-size-4','tryStartPresenting','_collabSessionService','getTypeOfUnitDisposed$','UniverInstanceType','LiveShareIcon','getTypeOfUnitAdded$','mutations','SetScrollOperation','startFollowing','displayName','_sharedOperations','button','init','path','_handleOnline','295gNLDdU','add','71868gWAYoA','shouldShareOperation','set'];_0x5d3c=function(){return _0x3b10cb;};return _0x5d3c();}var u=(_0x3837b2=>(_0x3837b2[_0x34e30e(0xe8)]=_0x34e30e(0x14b),_0x3837b2[_0x34e30e(0x155)]='idle',_0x3837b2['FOLLOWING']=_0x34e30e(0x166),_0x3837b2[_0x34e30e(0x1b5)]='not-following',_0x3837b2['PRESENTING']=_0x34e30e(0x134),_0x3837b2))(u||{});const k=_0x34e30e(0x145),q=0xc8;exports[_0x34e30e(0x1b3)]=class extends o[_0x34e30e(0x12c)]{constructor(_0x11af28,_0xe949e5,_0x36c46a,_0x4efb5d,_0x667299){const _0x5a1a72=_0x34e30e;super(),_(this,_0x5a1a72(0x18d),new O[(_0x5a1a72(0x12b))](_0x5a1a72(0x188))),_(this,_0x5a1a72(0x1b1),this[_0x5a1a72(0x18d)]['asObservable']()),_(this,_0x5a1a72(0x128),!0x1),_(this,_0x5a1a72(0x10c),null),_(this,_0x5a1a72(0x1a4),null),(this[_0x5a1a72(0x171)]=_0x11af28,this[_0x5a1a72(0x18a)]=_0xe949e5,this[_0x5a1a72(0x17a)]=_0x36c46a,this[_0x5a1a72(0x184)]=_0x4efb5d,this[_0x5a1a72(0x1a2)]=_0x667299);}get[_0x34e30e(0x167)](){const _0x3fe131=_0x34e30e;return this[_0x3fe131(0x18d)][_0x3fe131(0x189)]();}['dispose'](){const _0x542374=_0x34e30e;var _0x3fa61d;(_0x3fa61d=this[_0x542374(0x10c)])==null||_0x3fa61d[_0x542374(0x158)](),this[_0x542374(0x18d)][_0x542374(0x15a)](_0x542374(0x188)),this[_0x542374(0x18d)][_0x542374(0x16c)]();}[_0x34e30e(0x101)](){const _0x113ad5=_0x34e30e;return this[_0x113ad5(0x167)];}[_0x34e30e(0xf9)](){const _0x26f9ac=_0x34e30e;this[_0x26f9ac(0x128)]||(this[_0x26f9ac(0x128)]=!0x0,this['_collabSession'][_0x26f9ac(0x1a3)]['pipe'](I[_0x26f9ac(0x15c)](this[_0x26f9ac(0x190)]))[_0x26f9ac(0x152)](_0x1dd333=>{const _0x12e13e=_0x26f9ac;switch(_0x1dd333){case b[_0x12e13e(0x199)][_0x12e13e(0xe8)]:this[_0x12e13e(0x159)]();break;case b[_0x12e13e(0x199)][_0x12e13e(0x14a)]:this['_handleOnline']();break;}}),this[_0x26f9ac(0x18a)][_0x26f9ac(0x196)][_0x26f9ac(0x11a)](I[_0x26f9ac(0x15c)](this[_0x26f9ac(0x190)]))[_0x26f9ac(0x152)](_0x181cb7=>{const _0x24cbf5=_0x26f9ac,{eventID:_0x223e7b}=_0x181cb7;switch(_0x223e7b){case d[_0x24cbf5(0x127)][_0x24cbf5(0x19f)]:this[_0x24cbf5(0x18e)](_0x181cb7);break;case d[_0x24cbf5(0x127)][_0x24cbf5(0x1b6)]:this['_handleOperation'](_0x181cb7);break;case d[_0x24cbf5(0x127)][_0x24cbf5(0x185)]:this['_handleTerminate']();break;case d['CollaborationEvent'][_0x24cbf5(0x129)]:this[_0x24cbf5(0x19d)](_0x181cb7);break;}}));}['tryStartPresenting'](){const _0x30eb52=_0x34e30e;this[_0x30eb52(0x18a)][_0x30eb52(0xeb)]({'eventID':d['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x30eb52(0x171)],'userID':this[_0x30eb52(0x18a)][_0x30eb52(0x11b)]()}},this['_unitID']);}[_0x34e30e(0x1b2)](){const _0x28e836=_0x34e30e;this['_status']===_0x28e836(0x134)&&(this[_0x28e836(0x18d)][_0x28e836(0x15a)](_0x28e836(0x188)),this['_collabSession'][_0x28e836(0xeb)]({'eventID':d['CollaborationEvent'][_0x28e836(0x185)],'data':{'unitID':this[_0x28e836(0x171)]}},this[_0x28e836(0x171)]));}['startFollowing'](){const _0x1a7365=_0x34e30e;this[_0x1a7365(0x167)]===_0x1a7365(0x173)&&(this[_0x1a7365(0x18d)]['next'](_0x1a7365(0x166)),this[_0x1a7365(0x139)]());}['stopFollowing'](){const _0x177c2e=_0x34e30e;this['_status']==='following'&&this[_0x177c2e(0x109)]();}[_0x34e30e(0x18e)](_0x9e7d4d){const _0x15838f=_0x34e30e,{presenter:_0x2df9fb}=_0x9e7d4d[_0x15838f(0x175)],_0x44cc36=this[_0x15838f(0x18a)][_0x15838f(0x11b)]();this[_0x15838f(0x1a4)]=_0x2df9fb,_0x2df9fb===_0x44cc36?(this[_0x15838f(0x109)](),this[_0x15838f(0x15d)]()):this[_0x15838f(0x167)]!=='not-following'&&(this[_0x15838f(0x1a5)](),this[_0x15838f(0x139)]());}[_0x34e30e(0x17d)](){const _0x3b3d41=_0x34e30e,_0x2515cd={'eventID':d[_0x3b3d41(0x127)][_0x3b3d41(0x193)]};this[_0x3b3d41(0x18a)][_0x3b3d41(0xeb)](_0x2515cd,this[_0x3b3d41(0x171)]);}[_0x34e30e(0x113)](){const _0xb74107=_0x34e30e;this[_0xb74107(0x1a4)]=null,this[_0xb74107(0x167)]!==_0xb74107(0x134)&&this[_0xb74107(0x169)]();}[_0x34e30e(0x19d)](_0x118bd4){const _0xffed85=_0x34e30e;if(this[_0xffed85(0x167)]===_0xffed85(0x166)&&this[_0xffed85(0x1a4)]===_0x118bd4[_0xffed85(0x175)][_0xffed85(0x16d)]){const _0xbe1e12=d['parseProtocolChangeset'](_0x118bd4[_0xffed85(0x175)])[_0xffed85(0xf3)][_0xffed85(0xe7)]()['find'](_0x13f420=>_0x13f420['id']===C[_0xffed85(0x13e)]['id']);if(_0xbe1e12){const _0x54e9e6=_0xbe1e12[_0xffed85(0x137)][_0xffed85(0x1b9)],_0x36c88b=_0xbe1e12[_0xffed85(0x137)]['sheet']['id'];setTimeout(()=>{const _0x137a07=_0xffed85;this['_commandService'][_0x137a07(0x107)](C[_0x137a07(0x133)]['id'],{'unitId':_0x54e9e6,'subUnitId':_0x36c88b},{'fromCollab':!0x0});});}}}[_0x34e30e(0x15d)](){const _0x59f160=_0x34e30e;this[_0x59f160(0x18d)][_0x59f160(0x15a)]('presenting');const _0x1a9f6c=new Map(),_0x252a9f=this[_0x59f160(0x10c)]=new o[(_0x59f160(0x149))]();_0x252a9f[_0x59f160(0xfd)](o['toDisposable'](()=>{const _0x9d2464=_0x59f160;_0x1a9f6c[_0x9d2464(0x108)](_0x34eace=>_0x34eace['complete']()),_0x1a9f6c[_0x9d2464(0x17f)]();})),_0x252a9f[_0x59f160(0xfd)](this[_0x59f160(0x1a2)][_0x59f160(0x136)](_0x3ae62a=>{const _0x313966=_0x59f160;var _0x2e7aa3;if(_0x3ae62a[_0x313966(0x147)]!==o['CommandType'][_0x313966(0x178)]||!this['_liveShareService'][_0x313966(0xff)](_0x3ae62a['id']))return;const {id:_0xed34b5}=_0x3ae62a;let _0x10af5c;_0x1a9f6c[_0x313966(0x138)](_0xed34b5)?_0x10af5c=_0x1a9f6c[_0x313966(0x18b)](_0xed34b5):(_0x10af5c=new O[(_0x313966(0x16f))](),_0x1a9f6c['set'](_0xed34b5,_0x10af5c),_0x10af5c[_0x313966(0x11a)](I['throttleTime']((_0x2e7aa3=this[_0x313966(0x17a)][_0x313966(0x116)](k))!=null?_0x2e7aa3:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x313966(0x152)](_0xfd80e4=>{const _0x46dab1=_0x313966;this['_collabSession']['send']({'eventID':d['CollaborationEvent'][_0x46dab1(0x1b6)],'data':{'unitID':this[_0x46dab1(0x171)],'operations':{[_0xfd80e4['id']]:{'id':_0xfd80e4['id'],'params':JSON[_0x46dab1(0x195)](_0xfd80e4[_0x46dab1(0x137)])}}}},this['_unitID']);})),_0x10af5c[_0x313966(0x15a)](_0x3ae62a);})),this[_0x59f160(0x184)]['getInitialStates'](this[_0x59f160(0x171)])[_0x59f160(0x108)](_0x25221a=>this[_0x59f160(0x18a)][_0x59f160(0xeb)]({'eventID':d[_0x59f160(0x127)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x25221a['id']]:{'id':_0x25221a['id'],'params':JSON[_0x59f160(0x195)](_0x25221a[_0x59f160(0x137)])}}}},this[_0x59f160(0x171)]));}[_0x34e30e(0x1a5)](){const _0x5957d0=_0x34e30e;var _0x334ccd;this[_0x5957d0(0x18d)][_0x5957d0(0x15a)]('idle'),(_0x334ccd=this[_0x5957d0(0x10c)])==null||_0x334ccd[_0x5957d0(0x158)](),this[_0x5957d0(0x10c)]=null;}[_0x34e30e(0x139)](){const _0x5a576e=_0x34e30e;var _0x6cb1b3;(_0x6cb1b3=this[_0x5a576e(0x10c)])==null||_0x6cb1b3[_0x5a576e(0x158)](),this[_0x5a576e(0x18d)][_0x5a576e(0x15a)](_0x5a576e(0x166));}[_0x34e30e(0x169)](){const _0x5373e7=_0x34e30e;var _0x28fb05;this[_0x5373e7(0x18d)][_0x5373e7(0x15a)](_0x5373e7(0x188)),(_0x28fb05=this[_0x5373e7(0x10c)])==null||_0x28fb05[_0x5373e7(0x158)](),this[_0x5373e7(0x10c)]=null;}[_0x34e30e(0x109)](){const _0xbd9355=_0x34e30e;var _0x4ae210;this['_status$'][_0xbd9355(0x15a)]('not-following'),(_0x4ae210=this['_commandDisposable'])==null||_0x4ae210[_0xbd9355(0x158)]();}[_0x34e30e(0x182)](_0x258d97){const _0x93e743=_0x34e30e;if(['presenting',_0x93e743(0x173),_0x93e743(0x14b)]['includes'](this[_0x93e743(0x167)])||!_0x258d97[_0x93e743(0x175)][_0x93e743(0x191)]||_0x258d97[_0x93e743(0x175)][_0x93e743(0x191)]===this[_0x93e743(0x18a)][_0x93e743(0x11b)]())return;this[_0x93e743(0x167)]===_0x93e743(0x188)&&this['_startFollowing']();const _0xfe2aa6=_0x258d97[_0x93e743(0x175)][_0x93e743(0x141)];Object[_0x93e743(0x194)](_0xfe2aa6)[_0x93e743(0x108)](_0x4bb2fb=>{const _0x5a218d=_0x93e743;this[_0x5a218d(0x1a2)]['executeCommand'](_0x4bb2fb['id'],_0x4bb2fb[_0x5a218d(0x137)]?JSON['parse'](_0x4bb2fb[_0x5a218d(0x137)]):null,{'fromCollab':!0x0});});}[_0x34e30e(0x159)](){const _0x4b3ea4=_0x34e30e;var _0x5198cf;this[_0x4b3ea4(0x18d)][_0x4b3ea4(0x15a)](_0x4b3ea4(0x14b)),(_0x5198cf=this[_0x4b3ea4(0x10c)])==null||_0x5198cf[_0x4b3ea4(0x158)]();}[_0x34e30e(0xfb)](){const _0x567941=_0x34e30e;this[_0x567941(0x18d)][_0x567941(0x15a)](_0x567941(0x188)),this['_fetchOperations']();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0x34e30e(0x11e)]),S(0x3,o['Inject'](E)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function $(){const _0xe2942c=_0x34e30e,_0x1aabd0=p[_0xe2942c(0x18c)](exports[_0xe2942c(0x123)]),_0x296137=p['useDependency'](o[_0xe2942c(0x17c)]),_0x25fbaf=p[_0xe2942c(0x121)](()=>_0x296137[_0xe2942c(0x112)](o[_0xe2942c(0xf0)][_0xe2942c(0x183)]),void 0x0,!0x1,[]),[_0x3bc801,_0x4beee6]=v[_0xe2942c(0x120)](null),[_0x136ca0,_0x44ae27]=v[_0xe2942c(0x120)](u['IDLE']),_0x98072f=v[_0xe2942c(0x1ac)](null);return v['useEffect'](()=>(_0x25fbaf&&_0x1aabd0[_0xe2942c(0x105)](_0x25fbaf['getUnitId']())[_0xe2942c(0xe9)](_0x5b2c56=>{const _0x48e2c9=_0xe2942c;_0x4beee6(_0x5b2c56),_0x98072f[_0x48e2c9(0x124)]=_0x5b2c56[_0x48e2c9(0x1b1)][_0x48e2c9(0x152)](_0x1258c3=>{_0x44ae27(_0x1258c3);});}),()=>{const _0x5b11ff=_0xe2942c;var _0x50db71;(_0x50db71=_0x98072f[_0x5b11ff(0x124)])==null||_0x50db71[_0x5b11ff(0x168)](),_0x98072f[_0x5b11ff(0x124)]=null;}),[_0x25fbaf,_0x1aabd0]),_0x3bc801?l['jsx'](f[_0xe2942c(0x1a8)],{'align':_0xe2942c(0x174),'disabled':_0x136ca0===u[_0xe2942c(0xe8)],'className':_0xe2942c(0x11f),'overlay':l[_0xe2942c(0x1a1)](W,{'status':_0x136ca0,'coordinator':_0x3bc801}),'children':l[_0xe2942c(0x1a1)](_0xe2942c(0xf8),{'className':f[_0xe2942c(0x146)](_0xe2942c(0x12a),{'univer-cursor-not-allowed':_0x136ca0===u[_0xe2942c(0xe8)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x136ca0!==u['OFFLINE']}),'type':_0xe2942c(0xf8),'children':l[_0xe2942c(0x1a1)](R,{'className':_0xe2942c(0xec)})})}):null;}function W(_0xcecab){const _0x44c63d=_0x34e30e,{status:_0x3cb28b,coordinator:_0x3315b7}=_0xcecab;switch(_0x3cb28b){case u['IDLE']:return l[_0x44c63d(0x1a1)](G,{'coordinator':_0x3315b7});case u['FOLLOWING']:return l[_0x44c63d(0x1a1)](B,{'coordinator':_0x3315b7});case u[_0x44c63d(0x1b5)]:return l[_0x44c63d(0x1a1)](Y,{'coordinator':_0x3315b7});case u[_0x44c63d(0xe8)]:return l[_0x44c63d(0x1a1)](J,{});case u[_0x44c63d(0x177)]:return l[_0x44c63d(0x1a1)](Z,{'coordinator':_0x3315b7});default:return null;}}function G(_0x1494a0){const _0x595c00=_0x34e30e,{coordinator:_0x578258}=_0x1494a0;return l[_0x595c00(0x148)](l[_0x595c00(0x122)],{'children':[l[_0x595c00(0x1a1)](_0x595c00(0x143),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),l['jsx'](f['Button'],{'onClick':()=>_0x578258[_0x595c00(0xed)](),'children':'Start'})]});}function B(_0x5715c7){const _0x40ac55=_0x34e30e,{coordinator:_0x5dc03b}=_0x5715c7;return l['jsxs'](l[_0x40ac55(0x122)],{'children':[l[_0x40ac55(0x1a1)](_0x40ac55(0x143),{'className':_0x40ac55(0x140),'children':_0x40ac55(0x18f)}),l[_0x40ac55(0x1a1)](f[_0x40ac55(0x1a6)],{'onClick':()=>_0x5dc03b['stopFollowing'](),'children':_0x40ac55(0x110)})]});}function Y(_0x380457){const _0x276578=_0x34e30e,{coordinator:_0x4a55ea}=_0x380457;return l[_0x276578(0x148)](l[_0x276578(0x122)],{'children':[l[_0x276578(0x1a1)](_0x276578(0x143),{'className':_0x276578(0x140),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x276578(0x1a1)](f['Button'],{'variant':_0x276578(0x135),'onClick':()=>_0x4a55ea[_0x276578(0xf5)](),'children':_0x276578(0x12e)})]});}function Z(_0x5cc8a0){const _0x3fe948=_0x34e30e,{coordinator:_0x24a547}=_0x5cc8a0;return l['jsxs'](l[_0x3fe948(0x122)],{'children':[l['jsx'](_0x3fe948(0x143),{'className':_0x3fe948(0x140),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x3fe948(0x1a1)](f[_0x3fe948(0x1a6)],{'variant':_0x3fe948(0x187),'onClick':()=>_0x24a547[_0x3fe948(0x1b2)](),'children':_0x3fe948(0x114)})]});}function J(){const _0x8629dd=_0x34e30e;return l[_0x8629dd(0x1a1)](l['Fragment'],{'children':_0x8629dd(0x11d)});}var K=Object[_0x34e30e(0x14d)],z=(_0x42a351,_0x506cd7,_0x248056,_0x3f5ab2)=>{const _0x180a26=_0x34e30e;for(var _0x46d223=_0x3f5ab2>0x1?void 0x0:_0x3f5ab2?K(_0x506cd7,_0x248056):_0x506cd7,_0x19abb4=_0x42a351[_0x180a26(0x16b)]-0x1,_0x457e85;_0x19abb4>=0x0;_0x19abb4--)(_0x457e85=_0x42a351[_0x19abb4])&&(_0x46d223=_0x457e85(_0x46d223)||_0x46d223);return _0x46d223;},L=(_0x5d8f2b,_0x4ec8a2)=>(_0x3926cf,_0x3fe64a)=>_0x4ec8a2(_0x3926cf,_0x3fe64a,_0x5d8f2b);exports[_0x34e30e(0x197)]=class extends o['Disposable']{constructor(_0x5dcdb6,_0xfd77e4){const _0x26dcc2=_0x34e30e;super(),this[_0x26dcc2(0x13a)]=_0x5dcdb6,this['_uiPartsService']=_0xfd77e4,this[_0x26dcc2(0x10d)]();}[_0x34e30e(0x10d)](){const _0x4d5890=_0x34e30e;this[_0x4d5890(0x161)](this['_uiPartsService']['registerComponent'](p[_0x4d5890(0x192)]['HEADER_MENU'],()=>p[_0x4d5890(0x19c)]($,this['_injector'])));}},exports[_0x34e30e(0x197)]=z([L(0x0,o['Inject'](o[_0x34e30e(0x1b0)])),L(0x1,p['IUIPartsService'])],exports['DesktopLiveShareController']);const Q=_0x34e30e(0x10a),w={};var X=Object[_0x34e30e(0x14d)],ee=(_0x297447,_0x7fe3b5,_0x12adbe,_0x205c53)=>{const _0x466bb6=_0x34e30e;for(var _0x25e8fe=_0x205c53>0x1?void 0x0:_0x205c53?X(_0x7fe3b5,_0x12adbe):_0x7fe3b5,_0x18e87e=_0x297447[_0x466bb6(0x16b)]-0x1,_0x38e4c3;_0x18e87e>=0x0;_0x18e87e--)(_0x38e4c3=_0x297447[_0x18e87e])&&(_0x25e8fe=_0x38e4c3(_0x25e8fe)||_0x25e8fe);return _0x25e8fe;},te=(_0x4e2d70,_0x1704e3)=>(_0x1f18ac,_0x15f2d6)=>_0x1704e3(_0x1f18ac,_0x15f2d6,_0x4e2d70);let m=class extends o[_0x34e30e(0x17e)]{constructor(_0xd0e5c8){const _0x5137cf=_0x34e30e;super(),this[_0x5137cf(0x184)]=_0xd0e5c8,this['_init']();}[_0x34e30e(0x128)](){const _0x33b1be=_0x34e30e;[D['SetZoomRatioOperation']['id'],D[_0x33b1be(0xf4)]['id'],C[_0x33b1be(0x133)]['id']]['forEach'](_0x5dc238=>{const _0x1e97f7=_0x33b1be;this[_0x1e97f7(0x161)](this[_0x1e97f7(0x184)][_0x1e97f7(0x16e)](_0x5dc238));});}};m=ee([te(0x0,o[_0x34e30e(0x12d)](E))],m);var ie=Object[_0x34e30e(0x179)],se=Object[_0x34e30e(0x14d)],ne=(_0x593bc3,_0x389c84,_0x41782b)=>_0x389c84 in _0x593bc3?ie(_0x593bc3,_0x389c84,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x41782b}):_0x593bc3[_0x389c84]=_0x41782b,re=(_0x146540,_0x330536,_0x18c15d,_0x4509d7)=>{for(var _0x35d12b=_0x4509d7>0x1?void 0x0:_0x4509d7?se(_0x330536,_0x18c15d):_0x330536,_0x540af5=_0x146540['length']-0x1,_0x44b5fe;_0x540af5>=0x0;_0x540af5--)(_0x44b5fe=_0x146540[_0x540af5])&&(_0x35d12b=_0x44b5fe(_0x35d12b)||_0x35d12b);return _0x35d12b;},N=(_0x499adc,_0x43f0af)=>(_0x38b7f0,_0x566437)=>_0x43f0af(_0x38b7f0,_0x566437,_0x499adc),A=(_0x34cddc,_0x47ab4a,_0x50c13d)=>ne(_0x34cddc,typeof _0x47ab4a!=_0x34e30e(0x170)?_0x47ab4a+'':_0x47ab4a,_0x50c13d);const oe='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x34e30e(0x1a9)]=class extends o[_0x34e30e(0x125)]{constructor(_0x47b802=w,_0x2ed751,_0xbc0bfc){const _0x1c8436=_0x34e30e;super(),this['_config']=_0x47b802,this[_0x1c8436(0x13a)]=_0x2ed751,this[_0x1c8436(0x17a)]=_0xbc0bfc;const {..._0x131c65}=o['merge']({},w,this[_0x1c8436(0x16a)]);this[_0x1c8436(0x17a)][_0x1c8436(0x1ad)](Q,_0x131c65);}[_0x34e30e(0x198)](){const _0x2356d8=_0x34e30e;o[_0x2356d8(0x160)](this['_injector'],o['mergeOverrideWithDependencies']([[E],[exports[_0x2356d8(0x123)]],[m],[exports[_0x2356d8(0x197)]]],this['_config'][_0x2356d8(0x186)])),o['touchDependencies'](this[_0x2356d8(0x13a)],[[m]]);}['onRendered'](){const _0x4f0f9c=_0x34e30e;o[_0x4f0f9c(0x1b8)](this['_injector'],[[exports[_0x4f0f9c(0x197)]]]);}},A(exports[_0x34e30e(0x1a9)],_0x34e30e(0x147),o['UniverInstanceType'][_0x34e30e(0x131)]),A(exports[_0x34e30e(0x1a9)],_0x34e30e(0x1af),oe),exports[_0x34e30e(0x1a9)]=re([o[_0x34e30e(0x150)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x34e30e(0x12d)](o['Injector'])),N(0x2,o[_0x34e30e(0x11e)])],exports[_0x34e30e(0x1a9)]),exports['LiveShare']=$,exports[_0x34e30e(0x19b)]=E,exports[_0x34e30e(0x14c)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x38762c=_0x1322;(function(_0x4b3cb5,_0x4b032d){const _0x4b078e=_0x1322,_0x267d21=_0x4b3cb5();while(!![]){try{const _0xfcc7b9=-parseInt(_0x4b078e(0xaa))/0x1+parseInt(_0x4b078e(0xa6))/0x2*(parseInt(_0x4b078e(0xa1))/0x3)+-parseInt(_0x4b078e(0x8f))/0x4*(parseInt(_0x4b078e(0x8e))/0x5)+-parseInt(_0x4b078e(0xac))/0x6*(parseInt(_0x4b078e(0x9a))/0x7)+parseInt(_0x4b078e(0x97))/0x8+parseInt(_0x4b078e(0xab))/0x9*(parseInt(_0x4b078e(0xae))/0xa)+parseInt(_0x4b078e(0x91))/0xb*(-parseInt(_0x4b078e(0xad))/0xc);if(_0xfcc7b9===_0x4b032d)break;else _0x267d21['push'](_0x267d21['shift']());}catch(_0x522c58){_0x267d21['push'](_0x267d21['shift']());}}}(_0x40d8,0x569dc));import{LiveShareController as _0x24ed23,LiveShareStatus as _0x236572}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x2eaba2}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x5c625f}from'@univerjs/sheets';import{SetScrollOperation as _0x3dd26c}from'@univerjs/sheets-ui';import{FRange as _0x197e81}from'@univerjs/sheets/facade';import{FUniver as _0x106cef,FEnum as _0x8f2951}from'@univerjs/core/facade';class I extends _0x197e81{[_0x38762c(0x92)](_0x467941,_0x1167d2,_0x538a1f,_0x41a628,_0x2d324e){const _0x47dc6b=_0x38762c,_0x251938=_0x467941[_0x47dc6b(0xa0)](_0x24ed23),_0x502f4b=_0x467941[_0x47dc6b(0xa0)](_0x2eaba2),_0x3d072a=_0x1167d2['getUnitId'](),_0x30d7ac=_0x1167d2['getActiveSheet'](),_0x330555=_0x251938['getLiveShareCoordinatorSync'](_0x3d072a);(_0x330555==null?void 0x0:_0x330555[_0x47dc6b(0x9c)]())!==_0x236572[_0x47dc6b(0xa2)]||(_0x538a1f[_0x47dc6b(0xa4)]()!==_0x30d7ac[_0x47dc6b(0xa4)]()&&this[_0x47dc6b(0x9e)][_0x47dc6b(0xaf)](_0x5c625f['id'],{'unitId':_0x3d072a,'subUnitId':_0x538a1f['getSheetId']()}),!_0x502f4b['getRenderById'](_0x3d072a))||_0x2d324e[_0x47dc6b(0x93)](_0x3dd26c['id'],{'unitId':_0x1167d2[_0x47dc6b(0xa3)](),'sheetId':_0x538a1f[_0x47dc6b(0xa4)](),'sheetViewStartRow':_0x41a628[_0x47dc6b(0x8d)],'sheetViewStartColumn':_0x41a628['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x197e81[_0x38762c(0x99)](I);class m extends _0x106cef{[_0x38762c(0x90)](){const _0x4d381a=_0x38762c;var _0x48ddc5,_0x1a2c3b;const _0x525263=this[_0x4d381a(0x96)]['get'](_0x24ed23),_0x47a1b0=(_0x48ddc5=this[_0x4d381a(0x9b)]())==null?void 0x0:_0x48ddc5['getId']();if(!_0x47a1b0)throw new Error(_0x4d381a(0x9d));const _0x19520e=_0x525263[_0x4d381a(0xa8)](_0x47a1b0);return(_0x1a2c3b=_0x19520e==null?void 0x0:_0x19520e[_0x4d381a(0x9c)]())!=null?_0x1a2c3b:_0x236572[_0x4d381a(0x98)];}[_0x38762c(0x95)](){const _0x987b92=_0x38762c;var _0x5dc8d8;const _0xaf7822=this[_0x987b92(0x96)]['get'](_0x24ed23),_0x409a30=(_0x5dc8d8=this[_0x987b92(0x9b)]())==null?void 0x0:_0x5dc8d8[_0x987b92(0x9f)]();if(!_0x409a30)throw new Error(_0x987b92(0x9d));const _0x1cda2a=_0xaf7822[_0x987b92(0xa8)](_0x409a30);if(!_0x1cda2a)throw new Error(_0x987b92(0x94));_0x1cda2a[_0x987b92(0x95)]();}[_0x38762c(0xb0)](){const _0x3c6bd8=_0x38762c;var _0x2638a9;const _0x459aae=this[_0x3c6bd8(0x96)]['get'](_0x24ed23),_0x222884=(_0x2638a9=this[_0x3c6bd8(0x9b)]())==null?void 0x0:_0x2638a9[_0x3c6bd8(0x9f)]();if(!_0x222884)throw new Error('No\x20active\x20workbook\x20found.');const _0x24a03c=_0x459aae[_0x3c6bd8(0xa8)](_0x222884);if(!_0x24a03c)throw new Error(_0x3c6bd8(0x94));_0x24a03c[_0x3c6bd8(0xb0)]();}[_0x38762c(0x8c)](){const _0x1fa591=_0x38762c;var _0x2e9f1e;const _0x445801=this[_0x1fa591(0x96)]['get'](_0x24ed23),_0xcaa8ba=(_0x2e9f1e=this[_0x1fa591(0x9b)]())==null?void 0x0:_0x2e9f1e[_0x1fa591(0x9f)]();if(!_0xcaa8ba)throw new Error(_0x1fa591(0x9d));const _0x2bd2ed=_0x445801[_0x1fa591(0xa8)](_0xcaa8ba);if(!_0x2bd2ed)throw new Error(_0x1fa591(0x94));_0x2bd2ed[_0x1fa591(0xa9)]();}['stopPresenting'](){const _0x11b4bd=_0x38762c;var _0x473022;const _0x222e1b=this[_0x11b4bd(0x96)][_0x11b4bd(0xa0)](_0x24ed23),_0x335f72=(_0x473022=this[_0x11b4bd(0x9b)]())==null?void 0x0:_0x473022['getId']();if(!_0x335f72)throw new Error(_0x11b4bd(0x9d));const _0x10709b=_0x222e1b[_0x11b4bd(0xa8)](_0x335f72);if(!_0x10709b)throw new Error(_0x11b4bd(0x94));_0x10709b[_0x11b4bd(0xa7)]();}}_0x106cef[_0x38762c(0x99)](m);class C extends _0x8f2951{get[_0x38762c(0xa5)](){return _0x236572;}}_0x8f2951['extend'](C);function _0x1322(_0x47da0c,_0xdfa40b){_0x47da0c=_0x47da0c-0x8c;const _0x40d801=_0x40d8();let _0x13227b=_0x40d801[_0x47da0c];return _0x13227b;}function _0x40d8(){const _0x233b69=['get','3AQafnO','PRESENTING','getUnitId','getSheetId','LiveShareStatusEnum','544924ZDvkNx','stopPresenting','getLiveShareCoordinatorSync','tryStartPresenting','658597jVHLwy','2084202FrUmfh','222yjbocB','12AmThGu','30bsGIxu','executeCommand','stopFollowing','startPresenting','startRow','975HLjyjm','5972UdXmqX','getLiveShareStatus','766832KosLMZ','_initialize','syncExecuteCommand','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startFollowing','_injector','4590000IOflAt','IDLE','extend','31542kvMcZM','getActiveWorkbook','getStatus','No\x20active\x20workbook\x20found.','_commandService','getId'];_0x40d8=function(){return _0x233b69;};return _0x40d8();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x105b4f=_0x2cf0;(function(_0x42ec40,_0x164217){const _0x31c271=_0x2cf0,_0x2798aa=_0x42ec40();while(!![]){try{const _0x4fd234=parseInt(_0x31c271(0x1c0))/0x1+-parseInt(_0x31c271(0x21e))/0x2+parseInt(_0x31c271(0x1a3))/0x3*(parseInt(_0x31c271(0x1c3))/0x4)+parseInt(_0x31c271(0x1cd))/0x5*(-parseInt(_0x31c271(0x1a8))/0x6)+-parseInt(_0x31c271(0x238))/0x7*(parseInt(_0x31c271(0x1f3))/0x8)+parseInt(_0x31c271(0x1fe))/0x9+-parseInt(_0x31c271(0x1ec))/0xa*(-parseInt(_0x31c271(0x236))/0xb);if(_0x4fd234===_0x164217)break;else _0x2798aa['push'](_0x2798aa['shift']());}catch(_0x57a09e){_0x2798aa['push'](_0x2798aa['shift']());}}}(_0x4bc3,0xcade1));var J=Object[_0x105b4f(0x1b0)],K=(_0x14a8e0,_0x590774,_0x36d8b0)=>_0x590774 in _0x14a8e0?J(_0x14a8e0,_0x590774,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x36d8b0}):_0x14a8e0[_0x590774]=_0x36d8b0,u=(_0x15841b,_0xf8d9e0,_0x22c4e5)=>K(_0x15841b,typeof _0xf8d9e0!=_0x105b4f(0x208)?_0xf8d9e0+'':_0xf8d9e0,_0x22c4e5);import{Disposable as _0x19c5fe,toDisposable as _0x2f41f0,IUniverInstanceService as _0x49d2d0,Inject as _0xb4de5c,Injector as _0x39091f,IConfigService as _0x162c40,ICommandService as _0x3e5399,RxDisposable as _0x34eb50,UniverInstanceType as _0x122c76,DisposableCollection as _0x1ca7f7,CommandType as _0x2379b5,DependentOn as _0x2510ce,Plugin as _0x1ec157,merge as _0x2a4c60,registerDependencies as _0x47fa09,mergeOverrideWithDependencies as _0x37eaec,touchDependencies as _0x2a81f9}from'@univerjs/core';import{useDependency as _0x3284dd,useObservable as _0x36dee3,IUIPartsService as _0x1cb32c,BuiltInUIPart as _0x2d952e,connectInjector as _0x5cc7c1}from'@univerjs/ui';import{jsx as _0x46e223,jsxs as _0x539ff2,Fragment as _0x46e9aa}from'react/jsx-runtime';import{Dropdown as _0x26b96d,clsx as _0x3c8e64,Button as _0x21597a}from'@univerjs/design';import{useRef as _0xf38a0d,createElement as _0x2c90b5,forwardRef as _0x4e5534,useState as _0x4e7da4,useEffect as _0x5d80fb}from'react';import{CollaborationEvent as _0x564ee3,parseProtocolChangeset as _0x40078c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xa11808,SessionStatus as _0x155833,UniverCollaborationClientPlugin as _0x16c8c0}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xd8595d,SetWorksheetActiveOperation as _0x2e64c1}from'@univerjs/sheets';import{BehaviorSubject as _0x2fdabf,Subject as _0x415a69}from'rxjs';import{takeUntil as _0x56a21e,throttleTime as _0x2c6eb0}from'rxjs/operators';import{SetZoomRatioOperation as _0xba6ce1,SetScrollOperation as _0x105dbb}from'@univerjs/sheets-ui';function k({ref:_0x19be25,..._0x3012e5}){const _0x3b9e35=_0x105b4f,{icon:_0x17a20b,id:_0x550ba1,className:_0x7bb1a8,extend:_0x1882b2,..._0x27c232}=_0x3012e5,_0x1c5a00=('univerjs-icon\x20univerjs-icon-'+_0x550ba1+'\x20'+(_0x7bb1a8||''))['trim'](),_0x1c2479=_0xf38a0d('_'+Oe());return G(_0x17a20b,''+_0x550ba1,{'defIds':_0x17a20b[_0x3b9e35(0x21a)],'idSuffix':_0x1c2479['current']},{'ref':_0x19be25,'className':_0x1c5a00,..._0x27c232},_0x1882b2);}function G(_0x21c71b,_0x3db89a,_0x46eea3,_0xd75d4d,_0x3dbb56){const _0x16fb68=_0x105b4f;return _0x2c90b5(_0x21c71b['tag'],{'key':_0x3db89a,...be(_0x21c71b,_0x46eea3,_0x3dbb56),..._0xd75d4d},(Ee(_0x21c71b,_0x46eea3)[_0x16fb68(0x220)]||[])[_0x16fb68(0x20c)]((_0x52c4db,_0xf6c6bc)=>G(_0x52c4db,_0x3db89a+'-'+_0x21c71b[_0x16fb68(0x214)]+'-'+_0xf6c6bc,_0x46eea3,void 0x0,_0x3dbb56)));}function be(_0x4835e8,_0x49aeef,_0x341a92){const _0x230566=_0x105b4f,_0xc3ac35={..._0x4835e8[_0x230566(0x200)]};_0x341a92!=null&&_0x341a92[_0x230566(0x1de)]&&_0xc3ac35[_0x230566(0x1f8)]===_0x230566(0x1de)&&(_0xc3ac35[_0x230566(0x1f8)]=_0x341a92[_0x230566(0x1de)]),_0x4835e8[_0x230566(0x214)]===_0x230566(0x1b4)&&_0xc3ac35['id']&&(_0xc3ac35['id']=_0xc3ac35['id']+_0x49aeef[_0x230566(0x22c)]),Object[_0x230566(0x21c)](_0xc3ac35)[_0x230566(0x22b)](([_0x5889e0,_0x26227b])=>{const _0xed9923=_0x230566;_0x5889e0===_0xed9923(0x1b4)&&typeof _0x26227b==_0xed9923(0x1d5)&&(_0xc3ac35[_0x5889e0]=_0x26227b[_0xed9923(0x22d)](/url\(#(.*)\)/,_0xed9923(0x1af)+_0x49aeef[_0xed9923(0x22c)]+')'));});const {defIds:_0x5adcf5}=_0x49aeef;return!_0x5adcf5||_0x5adcf5[_0x230566(0x1c4)]===0x0||(_0x4835e8[_0x230566(0x214)]===_0x230566(0x1e3)&&_0xc3ac35[_0x230566(0x231)]&&(_0xc3ac35['xlink:href']=_0xc3ac35[_0x230566(0x231)]+_0x49aeef['idSuffix']),Object[_0x230566(0x21c)](_0xc3ac35)[_0x230566(0x22b)](([_0xde30ef,_0x589144])=>{const _0xb27482=_0x230566;typeof _0x589144==_0xb27482(0x1d5)&&(_0xc3ac35[_0xde30ef]=_0x589144[_0xb27482(0x22d)](/url\(#(.*)\)/,'url(#$1'+_0x49aeef[_0xb27482(0x22c)]+')'));})),_0xc3ac35;}function Ee(_0x37eaba,_0x32f198){const _0x2e155c=_0x105b4f;var _0x234cb;const {defIds:_0x475cfd}=_0x32f198;return!_0x475cfd||_0x475cfd[_0x2e155c(0x1c4)]===0x0?_0x37eaba:_0x37eaba[_0x2e155c(0x214)]===_0x2e155c(0x1f4)&&((_0x234cb=_0x37eaba[_0x2e155c(0x220)])!=null&&_0x234cb[_0x2e155c(0x1c4)])?{..._0x37eaba,'children':_0x37eaba[_0x2e155c(0x220)]['map'](_0x1bcca1=>typeof _0x1bcca1[_0x2e155c(0x200)]['id']==_0x2e155c(0x1d5)&&_0x475cfd&&_0x475cfd['includes'](_0x1bcca1['attrs']['id'])?{..._0x1bcca1,'attrs':{..._0x1bcca1[_0x2e155c(0x200)],'id':_0x1bcca1[_0x2e155c(0x200)]['id']+_0x32f198[_0x2e155c(0x22c)]}}:_0x1bcca1)}:_0x37eaba;}function Oe(){const _0x3fbdf7=_0x105b4f;return Math['random']()[_0x3fbdf7(0x22f)](0x24)[_0x3fbdf7(0x195)](0x2,0x8);}k[_0x105b4f(0x19a)]=_0x105b4f(0x1bd);const we={'tag':_0x105b4f(0x223),'attrs':{'xmlns':_0x105b4f(0x1c2),'fill':_0x105b4f(0x216),'viewBox':_0x105b4f(0x1eb),'width':_0x105b4f(0x1ad),'height':_0x105b4f(0x1ad)},'children':[{'tag':_0x105b4f(0x1a1),'attrs':{'fill':_0x105b4f(0x229),'d':_0x105b4f(0x1b3)}},{'tag':'path','attrs':{'fill':_0x105b4f(0x229),'d':_0x105b4f(0x1e4),'fillRule':_0x105b4f(0x1f7),'clipRule':_0x105b4f(0x1f7)}}]},W=_0x4e5534(function(_0x1d92a2,_0x15aa4d){const _0x1c883a=_0x105b4f;return _0x2c90b5(k,Object[_0x1c883a(0x1fd)]({},_0x1d92a2,{'id':_0x1c883a(0x1b1),'ref':_0x15aa4d,'icon':we}));});W[_0x105b4f(0x19a)]=_0x105b4f(0x1d8);class L extends _0x19c5fe{constructor(){const _0x112e80=_0x105b4f;super(...arguments),u(this,_0x112e80(0x1d6),new Set()),u(this,'_reporters',new Set());}[_0x105b4f(0x215)](_0x835e58){const _0x4477b4=_0x105b4f;return this[_0x4477b4(0x1d6)][_0x4477b4(0x1fa)](_0x835e58),_0x2f41f0(()=>this['_sharedOperations']['delete'](_0x835e58));}[_0x105b4f(0x1e5)](_0x4a3df0){const _0x1d81b4=_0x105b4f;return this[_0x1d81b4(0x1c5)][_0x1d81b4(0x1fa)](_0x4a3df0),_0x2f41f0(()=>this[_0x1d81b4(0x1c5)][_0x1d81b4(0x23d)](_0x4a3df0));}[_0x105b4f(0x235)](_0x38ea69){const _0x1430d9=_0x105b4f;return this[_0x1430d9(0x1d6)]['has'](_0x38ea69);}[_0x105b4f(0x21f)](_0x4c130e){const _0x827315=_0x105b4f;return Array['from'](this[_0x827315(0x1c5)])['map'](_0x320bfe=>_0x320bfe(_0x4c130e));}}var Ne=Object[_0x105b4f(0x19c)],Y=(_0x18595c,_0x5c0b4a,_0x50b15e,_0xc7cae9)=>{const _0x2d14e4=_0x105b4f;for(var _0x3799f8=_0xc7cae9>0x1?void 0x0:_0xc7cae9?Ne(_0x5c0b4a,_0x50b15e):_0x5c0b4a,_0x3dcda3=_0x18595c[_0x2d14e4(0x1c4)]-0x1,_0x4db411;_0x3dcda3>=0x0;_0x3dcda3--)(_0x4db411=_0x18595c[_0x3dcda3])&&(_0x3799f8=_0x4db411(_0x3799f8)||_0x3799f8);return _0x3799f8;},_=(_0x27f62d,_0x278db7)=>(_0x4b1b12,_0x54d1cb)=>_0x278db7(_0x4b1b12,_0x54d1cb,_0x27f62d);let S=class extends _0x34eb50{constructor(_0xb583bf,_0x4480d9,_0x327328){const _0x3a4e0c=_0x105b4f;super(),u(this,_0x3a4e0c(0x226),new Map()),(this['_univerInstanceService']=_0xb583bf,this[_0x3a4e0c(0x1aa)]=_0x4480d9,this[_0x3a4e0c(0x19b)]=_0x327328,this['_init']());}async['getLiveShareCoordinator'](_0x162e45){const _0x1297d7=_0x105b4f;return this[_0x1297d7(0x226)]['has'](_0x162e45)||await this[_0x1297d7(0x22a)](_0x162e45),this[_0x1297d7(0x226)][_0x1297d7(0x228)](_0x162e45);}['getLiveShareCoordinatorSync'](_0x5be43b){const _0x27a61c=_0x105b4f;var _0x28abce;return(_0x28abce=this[_0x27a61c(0x226)][_0x27a61c(0x228)](_0x5be43b))!=null?_0x28abce:null;}[_0x105b4f(0x1ba)](){const _0x55a1dd=_0x105b4f;this['_univerInstanceService'][_0x55a1dd(0x1c1)](_0x122c76[_0x55a1dd(0x203)])[_0x55a1dd(0x1bf)](_0x56a21e(this[_0x55a1dd(0x222)]))[_0x55a1dd(0x221)](async _0x40c9ee=>{const _0x4e61a1=_0x55a1dd,_0x22b9bf=_0x40c9ee[_0x4e61a1(0x23b)]();this['_entities'][_0x4e61a1(0x1d0)](_0x22b9bf)||this[_0x4e61a1(0x22a)](_0x22b9bf);}),this[_0x55a1dd(0x1c7)][_0x55a1dd(0x237)](_0x122c76[_0x55a1dd(0x203)])['pipe'](_0x56a21e(this['dispose$']))[_0x55a1dd(0x221)](_0x1904f2=>{const _0x27a46e=_0x55a1dd,_0xb6d5ff=_0x1904f2[_0x27a46e(0x23b)](),_0x3825a4=this[_0x27a46e(0x226)][_0x27a46e(0x228)](_0xb6d5ff);_0x3825a4==null||_0x3825a4['dispose']();});}async[_0x105b4f(0x22a)](_0x2efe1d){const _0xae3cb7=_0x105b4f,_0x5aeec5=await this['_collabSessionService']['requireSession'](_0x2efe1d),_0x4486d8=this[_0xae3cb7(0x1aa)][_0xae3cb7(0x1ea)](N,_0x2efe1d,_0x5aeec5);return _0x4486d8[_0xae3cb7(0x1cf)](),this[_0xae3cb7(0x226)][_0xae3cb7(0x239)](_0x2efe1d,_0x4486d8),_0x4486d8;}};S=Y([_(0x0,_0x49d2d0),_(0x1,_0xb4de5c(_0x39091f)),_(0x2,_0xb4de5c(_0xa11808))],S);var c=(_0x2ca91a=>(_0x2ca91a[_0x105b4f(0x1ab)]=_0x105b4f(0x1a7),_0x2ca91a[_0x105b4f(0x1a4)]=_0x105b4f(0x1d2),_0x2ca91a[_0x105b4f(0x1dc)]=_0x105b4f(0x194),_0x2ca91a[_0x105b4f(0x1b9)]=_0x105b4f(0x232),_0x2ca91a['PRESENTING']=_0x105b4f(0x192),_0x2ca91a))(c||{});const Ce=_0x105b4f(0x1dd),De=0xc8;let N=class extends _0x34eb50{constructor(_0x185fa4,_0x8785a7,_0x31829b,_0x56baef,_0xf9d038){const _0x2b68a5=_0x105b4f;super(),u(this,_0x2b68a5(0x198),new _0x2fdabf(_0x2b68a5(0x1d2))),u(this,_0x2b68a5(0x211),this[_0x2b68a5(0x198)][_0x2b68a5(0x19e)]()),u(this,'_init',!0x1),u(this,_0x2b68a5(0x227),null),u(this,_0x2b68a5(0x1c8),null),(this[_0x2b68a5(0x202)]=_0x185fa4,this[_0x2b68a5(0x1ef)]=_0x8785a7,this[_0x2b68a5(0x1d9)]=_0x31829b,this[_0x2b68a5(0x212)]=_0x56baef,this['_commandService']=_0xf9d038);}get[_0x105b4f(0x199)](){const _0x28c3c4=_0x105b4f;return this[_0x28c3c4(0x198)][_0x28c3c4(0x1b8)]();}[_0x105b4f(0x1b6)](){const _0x546d94=_0x105b4f;var _0x4b7cc3;(_0x4b7cc3=this[_0x546d94(0x227)])==null||_0x4b7cc3[_0x546d94(0x1b6)](),this[_0x546d94(0x198)][_0x546d94(0x1df)](_0x546d94(0x1d2)),this[_0x546d94(0x198)][_0x546d94(0x1e1)]();}[_0x105b4f(0x197)](){const _0x3f46ba=_0x105b4f;return this[_0x3f46ba(0x199)];}[_0x105b4f(0x1cf)](){const _0x28fbd3=_0x105b4f;this[_0x28fbd3(0x1ba)]||(this['_init']=!0x0,this[_0x28fbd3(0x1ef)]['sessionStatus$'][_0x28fbd3(0x1bf)](_0x56a21e(this[_0x28fbd3(0x222)]))[_0x28fbd3(0x221)](_0x45450e=>{const _0x41d137=_0x28fbd3;switch(_0x45450e){case _0x155833[_0x41d137(0x1ab)]:this[_0x41d137(0x224)]();break;case _0x155833[_0x41d137(0x205)]:this[_0x41d137(0x1a2)]();break;}}),this[_0x28fbd3(0x1ef)][_0x28fbd3(0x206)][_0x28fbd3(0x1bf)](_0x56a21e(this[_0x28fbd3(0x222)]))[_0x28fbd3(0x221)](_0x21501b=>{const _0x40db3e=_0x28fbd3,{eventID:_0x4a89a2}=_0x21501b;switch(_0x4a89a2){case _0x564ee3[_0x40db3e(0x1bc)]:this['_handleNewHost'](_0x21501b);break;case _0x564ee3[_0x40db3e(0x19d)]:this['_handleOperation'](_0x21501b);break;case _0x564ee3[_0x40db3e(0x1e0)]:this[_0x40db3e(0x1e9)]();break;case _0x564ee3[_0x40db3e(0x21b)]:this[_0x40db3e(0x21d)](_0x21501b);break;}}));}[_0x105b4f(0x193)](){const _0x1757f5=_0x105b4f;this[_0x1757f5(0x1ef)][_0x1757f5(0x1bb)]({'eventID':_0x564ee3[_0x1757f5(0x210)],'data':{'unitID':this[_0x1757f5(0x202)],'userID':this[_0x1757f5(0x1ef)][_0x1757f5(0x1e7)]()}},this[_0x1757f5(0x202)]);}[_0x105b4f(0x1ca)](){const _0x358fbe=_0x105b4f;this[_0x358fbe(0x199)]===_0x358fbe(0x192)&&(this[_0x358fbe(0x198)][_0x358fbe(0x1df)](_0x358fbe(0x1d2)),this[_0x358fbe(0x1ef)][_0x358fbe(0x1bb)]({'eventID':_0x564ee3[_0x358fbe(0x1e0)],'data':{'unitID':this[_0x358fbe(0x202)]}},this[_0x358fbe(0x202)]));}[_0x105b4f(0x217)](){const _0x4c5053=_0x105b4f;this[_0x4c5053(0x199)]==='not-following'&&(this['_status$'][_0x4c5053(0x1df)](_0x4c5053(0x194)),this[_0x4c5053(0x1ac)]());}[_0x105b4f(0x233)](){const _0x207bb2=_0x105b4f;this[_0x207bb2(0x199)]==='following'&&this[_0x207bb2(0x1db)]();}[_0x105b4f(0x1f2)](_0x258b83){const _0x3cc256=_0x105b4f,{presenter:_0x7afcbf}=_0x258b83[_0x3cc256(0x1a9)],_0x2efc6d=this['_collabSession'][_0x3cc256(0x1e7)]();this[_0x3cc256(0x1c8)]=_0x7afcbf,_0x7afcbf===_0x2efc6d?(this['_stopFollowing'](),this[_0x3cc256(0x1e6)]()):this[_0x3cc256(0x199)]!==_0x3cc256(0x232)&&(this[_0x3cc256(0x1f5)](),this[_0x3cc256(0x1ac)]());}[_0x105b4f(0x196)](){const _0x47edfb=_0x105b4f,_0x136365={'eventID':_0x564ee3[_0x47edfb(0x1be)]};this['_collabSession'][_0x47edfb(0x1bb)](_0x136365,this[_0x47edfb(0x202)]);}['_handleTerminate'](){const _0x2f3a3b=_0x105b4f;this[_0x2f3a3b(0x1c8)]=null,this[_0x2f3a3b(0x199)]!==_0x2f3a3b(0x192)&&this[_0x2f3a3b(0x1cc)]();}[_0x105b4f(0x21d)](_0x250de6){const _0x5a0456=_0x105b4f;if(this[_0x5a0456(0x199)]==='following'&&this['_presenter']===_0x250de6[_0x5a0456(0x1a9)][_0x5a0456(0x1f0)]){const _0xc47a3c=_0x40078c(_0x250de6[_0x5a0456(0x1a9)])[_0x5a0456(0x1ee)][_0x5a0456(0x207)]()['find'](_0x2167f0=>_0x2167f0['id']===_0xd8595d['id']);if(_0xc47a3c){const _0x87f447=_0xc47a3c[_0x5a0456(0x218)][_0x5a0456(0x1fc)],_0xe57cf7=_0xc47a3c[_0x5a0456(0x218)]['sheet']['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x2e64c1['id'],{'unitId':_0x87f447,'subUnitId':_0xe57cf7},{'fromCollab':!0x0});});}}}[_0x105b4f(0x1e6)](){const _0x39afc7=_0x105b4f;this['_status$']['next'](_0x39afc7(0x192));const _0x35359e=new Map(),_0x298573=this[_0x39afc7(0x227)]=new _0x1ca7f7();_0x298573['add'](_0x2f41f0(()=>{const _0x3ff51f=_0x39afc7;_0x35359e['forEach'](_0x205651=>_0x205651[_0x3ff51f(0x1e1)]()),_0x35359e[_0x3ff51f(0x213)]();})),_0x298573[_0x39afc7(0x1fa)](this[_0x39afc7(0x1ce)][_0x39afc7(0x230)](_0x564bf6=>{const _0x4b54e6=_0x39afc7;var _0x5c1107;if(_0x564bf6[_0x4b54e6(0x23a)]!==_0x2379b5['OPERATION']||!this['_liveShareService'][_0x4b54e6(0x235)](_0x564bf6['id']))return;const {id:_0x563181}=_0x564bf6;let _0x37d666;_0x35359e['has'](_0x563181)?_0x37d666=_0x35359e[_0x4b54e6(0x228)](_0x563181):(_0x37d666=new _0x415a69(),_0x35359e['set'](_0x563181,_0x37d666),_0x37d666[_0x4b54e6(0x1bf)](_0x2c6eb0((_0x5c1107=this[_0x4b54e6(0x1d9)][_0x4b54e6(0x1c6)](Ce))!=null?_0x5c1107:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4bf215=>{const _0x2185e4=_0x4b54e6;this[_0x2185e4(0x1ef)][_0x2185e4(0x1bb)]({'eventID':_0x564ee3['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2185e4(0x202)],'operations':{[_0x4bf215['id']]:{'id':_0x4bf215['id'],'params':JSON[_0x2185e4(0x20b)](_0x4bf215['params'])}}}},this[_0x2185e4(0x202)]);})),_0x37d666[_0x4b54e6(0x1df)](_0x564bf6);})),this['_liveShareService'][_0x39afc7(0x21f)](this[_0x39afc7(0x202)])[_0x39afc7(0x22b)](_0x32ed6a=>this[_0x39afc7(0x1ef)]['send']({'eventID':_0x564ee3[_0x39afc7(0x19d)],'data':{'unitID':this[_0x39afc7(0x202)],'operations':{[_0x32ed6a['id']]:{'id':_0x32ed6a['id'],'params':JSON[_0x39afc7(0x20b)](_0x32ed6a['params'])}}}},this[_0x39afc7(0x202)]));}[_0x105b4f(0x1f5)](){const _0x56783e=_0x105b4f;var _0x509977;this['_status$'][_0x56783e(0x1df)](_0x56783e(0x1d2)),(_0x509977=this[_0x56783e(0x227)])==null||_0x509977[_0x56783e(0x1b6)](),this[_0x56783e(0x227)]=null;}[_0x105b4f(0x1ac)](){const _0x435280=_0x105b4f;var _0x991dee;(_0x991dee=this[_0x435280(0x227)])==null||_0x991dee['dispose'](),this[_0x435280(0x198)]['next']('following');}['_beIdle'](){const _0x1845e5=_0x105b4f;var _0x67b2a6;this[_0x1845e5(0x198)][_0x1845e5(0x1df)](_0x1845e5(0x1d2)),(_0x67b2a6=this[_0x1845e5(0x227)])==null||_0x67b2a6[_0x1845e5(0x1b6)](),this[_0x1845e5(0x227)]=null;}[_0x105b4f(0x1db)](){const _0x239549=_0x105b4f;var _0x4103a3;this[_0x239549(0x198)][_0x239549(0x1df)](_0x239549(0x232)),(_0x4103a3=this[_0x239549(0x227)])==null||_0x4103a3[_0x239549(0x1b6)]();}[_0x105b4f(0x1b5)](_0x3a49cb){const _0x3cac2b=_0x105b4f;if([_0x3cac2b(0x192),_0x3cac2b(0x232),_0x3cac2b(0x1a7)][_0x3cac2b(0x1d4)](this[_0x3cac2b(0x199)])||!_0x3a49cb[_0x3cac2b(0x1a9)]['presenter']||_0x3a49cb['data']['presenter']===this[_0x3cac2b(0x1ef)][_0x3cac2b(0x1e7)]())return;this[_0x3cac2b(0x199)]==='idle'&&this['_startFollowing']();const _0x2e60c5=_0x3a49cb[_0x3cac2b(0x1a9)]['operations'];Object['values'](_0x2e60c5)[_0x3cac2b(0x22b)](_0x111f87=>{const _0xfa675f=_0x3cac2b;this[_0xfa675f(0x1ce)][_0xfa675f(0x1cb)](_0x111f87['id'],_0x111f87[_0xfa675f(0x218)]?JSON[_0xfa675f(0x1ae)](_0x111f87[_0xfa675f(0x218)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x902da0=_0x105b4f;var _0x37cdf6;this[_0x902da0(0x198)][_0x902da0(0x1df)](_0x902da0(0x1a7)),(_0x37cdf6=this[_0x902da0(0x227)])==null||_0x37cdf6[_0x902da0(0x1b6)]();}[_0x105b4f(0x1a2)](){const _0x48ac69=_0x105b4f;this[_0x48ac69(0x198)][_0x48ac69(0x1df)]('idle'),this[_0x48ac69(0x196)]();}};N=Y([_(0x2,_0x162c40),_(0x3,_0xb4de5c(L)),_(0x4,_0x3e5399)],N);function Le(){const _0x38392e=_0x105b4f,_0xeda6f3=_0x3284dd(S),_0x2ca413=_0x3284dd(_0x49d2d0),_0x148d05=_0x36dee3(()=>_0x2ca413[_0x38392e(0x1da)](_0x122c76['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x4d6f57,_0x21cce1]=_0x4e7da4(null),[_0x1220af,_0x1146e6]=_0x4e7da4(c[_0x38392e(0x1a4)]),_0x263fba=_0xf38a0d(null);return _0x5d80fb(()=>(_0x148d05&&_0xeda6f3[_0x38392e(0x1d7)](_0x148d05[_0x38392e(0x23b)]())[_0x38392e(0x1b2)](_0x1a2f64=>{const _0x3cef76=_0x38392e;_0x21cce1(_0x1a2f64),_0x263fba['current']=_0x1a2f64[_0x3cef76(0x211)][_0x3cef76(0x221)](_0x32f005=>{_0x1146e6(_0x32f005);});}),()=>{const _0x3bde3d=_0x38392e;var _0x4e97ea;(_0x4e97ea=_0x263fba[_0x3bde3d(0x1f6)])==null||_0x4e97ea[_0x3bde3d(0x20f)](),_0x263fba['current']=null;}),[_0x148d05,_0xeda6f3]),_0x4d6f57?_0x46e223(_0x26b96d,{'align':_0x38392e(0x204),'disabled':_0x1220af===c[_0x38392e(0x1ab)],'className':_0x38392e(0x1b7),'overlay':_0x46e223(Re,{'status':_0x1220af,'coordinator':_0x4d6f57}),'children':_0x46e223(_0x38392e(0x1a5),{'className':_0x3c8e64('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x1220af===c[_0x38392e(0x1ab)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1220af!==c[_0x38392e(0x1ab)]}),'type':'button','children':_0x46e223(W,{'className':'univer-size-4'})})}):null;}function Re(_0x2f9b59){const _0x1f8106=_0x105b4f,{status:_0xa7e895,coordinator:_0x371e7a}=_0x2f9b59;switch(_0xa7e895){case c[_0x1f8106(0x1a4)]:return _0x46e223($e,{'coordinator':_0x371e7a});case c[_0x1f8106(0x1dc)]:return _0x46e223(xe,{'coordinator':_0x371e7a});case c['NOT_FOLLOWING']:return _0x46e223(Pe,{'coordinator':_0x371e7a});case c['OFFLINE']:return _0x46e223(Te,{});case c[_0x1f8106(0x1e2)]:return _0x46e223(Ae,{'coordinator':_0x371e7a});default:return null;}}function $e(_0xc6d450){const _0x4e0a36=_0x105b4f,{coordinator:_0x3df512}=_0xc6d450;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223('div',{'className':_0x4e0a36(0x201),'children':_0x4e0a36(0x1a6)}),_0x46e223(_0x21597a,{'onClick':()=>_0x3df512[_0x4e0a36(0x193)](),'children':_0x4e0a36(0x225)})]});}function xe(_0x5739f4){const _0x1ab26f=_0x105b4f,{coordinator:_0x5f3e05}=_0x5739f4;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223(_0x1ab26f(0x234),{'className':_0x1ab26f(0x201),'children':_0x1ab26f(0x1a0)}),_0x46e223(_0x21597a,{'onClick':()=>_0x5f3e05[_0x1ab26f(0x233)](),'children':_0x1ab26f(0x23c)})]});}function Pe(_0x1ea74d){const _0xc46fc2=_0x105b4f,{coordinator:_0x52d7ce}=_0x1ea74d;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223(_0xc46fc2(0x234),{'className':_0xc46fc2(0x201),'children':_0xc46fc2(0x1c9)}),_0x46e223(_0x21597a,{'variant':'text','onClick':()=>_0x52d7ce[_0xc46fc2(0x217)](),'children':_0xc46fc2(0x20a)})]});}function _0x4bc3(){const _0x365bfb=['You\x27re\x20following\x20the\x20presenter','path','_handleOnline','1215cccCXK','IDLE','button','Present\x20this\x20document','offline','6GJLmww','data','_injector','OFFLINE','_startFollowing','1em','parse','url(#$1','defineProperty','live-share-icon','then','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','mask','_handleOperation','dispose','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','getValue','NOT_FOLLOWING','_init','send','LIVESHARE_NEW_HOST','UniverIcon','LIVESHARE_FETCH_OPERATIONS','pipe','1066867ONVETv','getTypeOfUnitAdded$','http://www.w3.org/2000/svg','4688hbUvvx','length','_reporters','getConfig','_univerInstanceService','_presenter','You\x27re\x20not\x20following\x20the\x20presenter','stopPresenting','executeCommand','_beIdle','2944430gFiIVp','_commandService','init','has','live-share.config','idle','default','includes','string','_sharedOperations','getLiveShareCoordinator','LiveShareIcon','_configService','getCurrentTypeOfUnit$','_stopFollowing','FOLLOWING','SAME_OPERATION_SHARE_INTERVAL','colorChannel1','next','LIVESHARE_TERMINATE','complete','PRESENTING','use','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','registerInitialStateReporter','_startPresenting','getMemberID','UNIVER_LIVE_SHARE_PLUGIN','_handleTerminate','createInstance','0\x200\x2017\x2017','4291060ietMZS','registerComponent','mutations','_collabSession','memberID','onStarting','_handleNewHost','5987768EuxmaE','defs','_stopPresenting','current','evenodd','fill','You\x27re\x20presenting\x20the\x20document','add','_uiPartsService','unitId','assign','1848528fHxHbJ','onRendered','attrs','univer-mb-3\x20univer-w-full\x20univer-text-sm','_unitID','UNIVER_SHEET','end','ONLINE','event$','reverse','symbol','override','Start\x20following','stringify','map','_config','setConfig','unsubscribe','LIVESHARE_REQUEST_HOST','status$','_liveShareService','clear','tag','registerSharedOperation','none','startFollowing','params','pluginName','defIds','NEW_CHANGESETS','entries','_handleNewChangeSets','1731870ffdTaq','getInitialStates','children','subscribe','dispose$','svg','_handleOffline','Start','_entities','_commandDisposable','get','currentColor','_startLiveShareCoordinator','forEach','idSuffix','replace','_mountLiveShare','toString','onCommandExecuted','xlink:href','not-following','stopFollowing','div','shouldShareOperation','33VnLGcf','getTypeOfUnitDisposed$','7dnmgxV','set','type','getUnitId','Stop\x20following','delete','presenting','tryStartPresenting','following','substring','_fetchOperations','getStatus','_status$','_status','displayName','_collabSessionService','getOwnPropertyDescriptor','LIVESHARE_OPERATION','asObservable','disposeWithMe'];_0x4bc3=function(){return _0x365bfb;};return _0x4bc3();}function Ae(_0x4ec58f){const _0xcd0b7c=_0x105b4f,{coordinator:_0x185c56}=_0x4ec58f;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223(_0xcd0b7c(0x234),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xcd0b7c(0x1f9)}),_0x46e223(_0x21597a,{'variant':_0xcd0b7c(0x1d3),'onClick':()=>_0x185c56[_0xcd0b7c(0x1ca)](),'children':'Stop\x20presenting'})]});}function Te(){return _0x46e223(_0x46e9aa,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x105b4f(0x19c)],He=(_0x255dcd,_0x1a5c41,_0x49d45d,_0x786092)=>{for(var _0x525b14=_0x786092>0x1?void 0x0:_0x786092?Fe(_0x1a5c41,_0x49d45d):_0x1a5c41,_0xd22516=_0x255dcd['length']-0x1,_0x97ffff;_0xd22516>=0x0;_0xd22516--)(_0x97ffff=_0x255dcd[_0xd22516])&&(_0x525b14=_0x97ffff(_0x525b14)||_0x525b14);return _0x525b14;},A=(_0x12b793,_0x47751e)=>(_0x79e905,_0xf24172)=>_0x47751e(_0x79e905,_0xf24172,_0x12b793);let m=class extends _0x19c5fe{constructor(_0xd63cca,_0x3488ea){const _0x2758c8=_0x105b4f;super(),this['_injector']=_0xd63cca,this[_0x2758c8(0x1fb)]=_0x3488ea,this[_0x2758c8(0x22e)]();}[_0x105b4f(0x22e)](){const _0x257e9b=_0x105b4f;this[_0x257e9b(0x19f)](this[_0x257e9b(0x1fb)][_0x257e9b(0x1ed)](_0x2d952e['HEADER_MENU'],()=>_0x5cc7c1(Le,this[_0x257e9b(0x1aa)])));}};m=He([A(0x0,_0xb4de5c(_0x39091f)),A(0x1,_0x1cb32c)],m);const ye=_0x105b4f(0x1d1),T={};var Ue=Object[_0x105b4f(0x19c)],Ve=(_0x353cd4,_0x541fb5,_0x4dbd46,_0x2fff44)=>{const _0x585f2b=_0x105b4f;for(var _0x36e467=_0x2fff44>0x1?void 0x0:_0x2fff44?Ue(_0x541fb5,_0x4dbd46):_0x541fb5,_0x5db4eb=_0x353cd4[_0x585f2b(0x1c4)]-0x1,_0x555916;_0x5db4eb>=0x0;_0x5db4eb--)(_0x555916=_0x353cd4[_0x5db4eb])&&(_0x36e467=_0x555916(_0x36e467)||_0x36e467);return _0x36e467;},je=(_0x86080f,_0x697570)=>(_0x1dd81d,_0x276284)=>_0x697570(_0x1dd81d,_0x276284,_0x86080f);let I=class extends _0x19c5fe{constructor(_0x420fed){const _0x545cda=_0x105b4f;super(),this[_0x545cda(0x212)]=_0x420fed,this[_0x545cda(0x1ba)]();}['_init'](){[_0xba6ce1['id'],_0x105dbb['id'],_0x2e64c1['id']]['forEach'](_0x43d7ad=>{const _0x439df9=_0x2cf0;this['disposeWithMe'](this[_0x439df9(0x212)][_0x439df9(0x215)](_0x43d7ad));});}};I=Ve([je(0x0,_0xb4de5c(L))],I);function _0x2cf0(_0xc200c0,_0x258a0d){_0xc200c0=_0xc200c0-0x192;const _0x4bc32d=_0x4bc3();let _0x2cf084=_0x4bc32d[_0xc200c0];return _0x2cf084;}var Me=Object[_0x105b4f(0x1b0)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x547a47,_0x4d3bcb,_0xd46219)=>_0x4d3bcb in _0x547a47?Me(_0x547a47,_0x4d3bcb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd46219}):_0x547a47[_0x4d3bcb]=_0xd46219,We=(_0x47fd44,_0x58f49e,_0x5e44c1,_0xffcf3a)=>{const _0x3f7eec=_0x105b4f;for(var _0x199bea=_0xffcf3a>0x1?void 0x0:_0xffcf3a?ke(_0x58f49e,_0x5e44c1):_0x58f49e,_0x51af3e=_0x47fd44[_0x3f7eec(0x1c4)]-0x1,_0x3f9398;_0x51af3e>=0x0;_0x51af3e--)(_0x3f9398=_0x47fd44[_0x51af3e])&&(_0x199bea=_0x3f9398(_0x199bea)||_0x199bea);return _0x199bea;},F=(_0x5891e1,_0x324080)=>(_0x36dbcd,_0x5073de)=>_0x324080(_0x36dbcd,_0x5073de,_0x5891e1),B=(_0x165e69,_0x37f9aa,_0xf3451d)=>Ge(_0x165e69,typeof _0x37f9aa!=_0x105b4f(0x208)?_0x37f9aa+'':_0x37f9aa,_0xf3451d);const Ye=_0x105b4f(0x1e8);let b=class extends _0x1ec157{constructor(_0x1de8fd=T,_0x198cd6,_0x12f543){const _0x5d285c=_0x105b4f;super(),this['_config']=_0x1de8fd,this[_0x5d285c(0x1aa)]=_0x198cd6,this[_0x5d285c(0x1d9)]=_0x12f543;const {..._0x11363f}=_0x2a4c60({},T,this['_config']);this[_0x5d285c(0x1d9)][_0x5d285c(0x20e)](ye,_0x11363f);}[_0x105b4f(0x1f1)](){const _0x4a008a=_0x105b4f;_0x47fa09(this[_0x4a008a(0x1aa)],_0x37eaec([[L],[S],[I],[m]],this[_0x4a008a(0x20d)][_0x4a008a(0x209)])),_0x2a81f9(this['_injector'],[[I]]);}[_0x105b4f(0x1ff)](){_0x2a81f9(this['_injector'],[[m]]);}};B(b,_0x105b4f(0x23a),_0x122c76['UNIVER_UNKNOWN']),B(b,_0x105b4f(0x219),Ye),b=We([_0x2510ce(_0x16c8c0),F(0x1,_0xb4de5c(_0x39091f)),F(0x2,_0x162c40)],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 _0x288259=_0x33d3;(function(_0x367953,_0x55dc8c){const _0x5e37f9=_0x33d3,_0x3d88f2=_0x367953();while(!![]){try{const _0x16d529=-parseInt(_0x5e37f9(0x1bd))/0x1*(-parseInt(_0x5e37f9(0x207))/0x2)+-parseInt(_0x5e37f9(0x205))/0x3*(-parseInt(_0x5e37f9(0x200))/0x4)+-parseInt(_0x5e37f9(0x1eb))/0x5+-parseInt(_0x5e37f9(0x21c))/0x6+-parseInt(_0x5e37f9(0x226))/0x7*(parseInt(_0x5e37f9(0x1f4))/0x8)+-parseInt(_0x5e37f9(0x22e))/0x9*(parseInt(_0x5e37f9(0x1d9))/0xa)+parseInt(_0x5e37f9(0x1e0))/0xb*(parseInt(_0x5e37f9(0x1e2))/0xc);if(_0x16d529===_0x55dc8c)break;else _0x3d88f2['push'](_0x3d88f2['shift']());}catch(_0x69295a){_0x3d88f2['push'](_0x3d88f2['shift']());}}}(_0x5f16,0xa95f7));var J=Object[_0x288259(0x231)],K=(_0x455c85,_0x502859,_0x173dc6)=>_0x502859 in _0x455c85?J(_0x455c85,_0x502859,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x173dc6}):_0x455c85[_0x502859]=_0x173dc6,u=(_0x27b4b4,_0x3292f2,_0x36c817)=>K(_0x27b4b4,typeof _0x3292f2!=_0x288259(0x1b0)?_0x3292f2+'':_0x3292f2,_0x36c817);import{Disposable as _0x2f9266,toDisposable as _0x357616,IUniverInstanceService as _0x4b8f0b,Inject as _0x2ccce4,Injector as _0x38a60f,IConfigService as _0x292df9,ICommandService as _0xe319f4,RxDisposable as _0x1e8ae5,UniverInstanceType as _0x374271,DisposableCollection as _0x50ce28,CommandType as _0x419927,DependentOn as _0x553a41,Plugin as _0x3f1d3f,merge as _0x2eff68,registerDependencies as _0x28d75e,mergeOverrideWithDependencies as _0x965e10,touchDependencies as _0x5b4615}from'@univerjs/core';import{useDependency as _0x2cf9c5,useObservable as _0x57d739,IUIPartsService as _0x39de93,BuiltInUIPart as _0x367153,connectInjector as _0x4d0457}from'@univerjs/ui';import{jsx as _0x120c4b,jsxs as _0x18b69b,Fragment as _0x182287}from'react/jsx-runtime';import{Dropdown as _0x1c59e1,clsx as _0x4affc9,Button as _0x22c645}from'@univerjs/design';function _0x33d3(_0x33005b,_0x44790f){_0x33005b=_0x33005b-0x18f;const _0x5f1636=_0x5f16();let _0x33d3b9=_0x5f1636[_0x33005b];return _0x33d3b9;}import{useRef as _0x15d3aa,createElement as _0x350b00,forwardRef as _0xa9da7e,useState as _0x223824,useEffect as _0x365662}from'react';import{CollaborationEvent as _0x555910,parseProtocolChangeset as _0x3b7300}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x8e0700,SessionStatus as _0x2d2d85,UniverCollaborationClientPlugin as _0x5d8e2c}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5d46de,SetWorksheetActiveOperation as _0x3493cd}from'@univerjs/sheets';import{BehaviorSubject as _0x2fd282,Subject as _0x514c47}from'rxjs';import{takeUntil as _0x29691d,throttleTime as _0x4434ac}from'rxjs/operators';import{SetZoomRatioOperation as _0xc86880,SetScrollOperation as _0x184f42}from'@univerjs/sheets-ui';function k({ref:_0x33eda2,..._0x55b604}){const _0x44e87b=_0x288259,{icon:_0x10d8f6,id:_0x17c6ae,className:_0xbde572,extend:_0x146d76,..._0xd434da}=_0x55b604,_0x3217d1=(_0x44e87b(0x22b)+_0x17c6ae+'\x20'+(_0xbde572||''))[_0x44e87b(0x1bc)](),_0x3db8d7=_0x15d3aa('_'+Oe());return G(_0x10d8f6,''+_0x17c6ae,{'defIds':_0x10d8f6[_0x44e87b(0x1e9)],'idSuffix':_0x3db8d7[_0x44e87b(0x1a2)]},{'ref':_0x33eda2,'className':_0x3217d1,..._0xd434da},_0x146d76);}function G(_0xf936be,_0xefb038,_0x4d4633,_0x27420a,_0x2f6dd7){const _0x5a56fa=_0x288259;return _0x350b00(_0xf936be['tag'],{'key':_0xefb038,...be(_0xf936be,_0x4d4633,_0x2f6dd7),..._0x27420a},(Ee(_0xf936be,_0x4d4633)[_0x5a56fa(0x1c3)]||[])[_0x5a56fa(0x208)]((_0x4c5d5c,_0x18cc97)=>G(_0x4c5d5c,_0xefb038+'-'+_0xf936be[_0x5a56fa(0x1d3)]+'-'+_0x18cc97,_0x4d4633,void 0x0,_0x2f6dd7)));}function be(_0x1cc91b,_0x585765,_0x3cefc0){const _0x4cdb9e=_0x288259,_0x1ed481={..._0x1cc91b[_0x4cdb9e(0x20c)]};_0x3cefc0!=null&&_0x3cefc0['colorChannel1']&&_0x1ed481[_0x4cdb9e(0x1f9)]===_0x4cdb9e(0x1d5)&&(_0x1ed481[_0x4cdb9e(0x1f9)]=_0x3cefc0[_0x4cdb9e(0x1d5)]),_0x1cc91b[_0x4cdb9e(0x1d3)]===_0x4cdb9e(0x1b1)&&_0x1ed481['id']&&(_0x1ed481['id']=_0x1ed481['id']+_0x585765[_0x4cdb9e(0x233)]),Object[_0x4cdb9e(0x1a7)](_0x1ed481)[_0x4cdb9e(0x1b8)](([_0x7ec95c,_0x248034])=>{const _0x56f04a=_0x4cdb9e;_0x7ec95c==='mask'&&typeof _0x248034==_0x56f04a(0x1c6)&&(_0x1ed481[_0x7ec95c]=_0x248034[_0x56f04a(0x20a)](/url\(#(.*)\)/,_0x56f04a(0x1a3)+_0x585765[_0x56f04a(0x233)]+')'));});const {defIds:_0x4e730b}=_0x585765;return!_0x4e730b||_0x4e730b[_0x4cdb9e(0x1fe)]===0x0||(_0x1cc91b[_0x4cdb9e(0x1d3)]===_0x4cdb9e(0x234)&&_0x1ed481[_0x4cdb9e(0x219)]&&(_0x1ed481[_0x4cdb9e(0x219)]=_0x1ed481[_0x4cdb9e(0x219)]+_0x585765['idSuffix']),Object[_0x4cdb9e(0x1a7)](_0x1ed481)['forEach'](([_0x39a603,_0x5056a2])=>{const _0x39c72f=_0x4cdb9e;typeof _0x5056a2==_0x39c72f(0x1c6)&&(_0x1ed481[_0x39a603]=_0x5056a2[_0x39c72f(0x20a)](/url\(#(.*)\)/,_0x39c72f(0x1a3)+_0x585765['idSuffix']+')'));})),_0x1ed481;}function Ee(_0x3f4c76,_0x22017d){const _0x17406c=_0x288259;var _0x44c032;const {defIds:_0x352459}=_0x22017d;return!_0x352459||_0x352459[_0x17406c(0x1fe)]===0x0?_0x3f4c76:_0x3f4c76[_0x17406c(0x1d3)]===_0x17406c(0x220)&&((_0x44c032=_0x3f4c76['children'])!=null&&_0x44c032[_0x17406c(0x1fe)])?{..._0x3f4c76,'children':_0x3f4c76[_0x17406c(0x1c3)][_0x17406c(0x208)](_0x1ff9b0=>typeof _0x1ff9b0[_0x17406c(0x20c)]['id']==_0x17406c(0x1c6)&&_0x352459&&_0x352459['includes'](_0x1ff9b0['attrs']['id'])?{..._0x1ff9b0,'attrs':{..._0x1ff9b0[_0x17406c(0x20c)],'id':_0x1ff9b0[_0x17406c(0x20c)]['id']+_0x22017d[_0x17406c(0x233)]}}:_0x1ff9b0)}:_0x3f4c76;}function Oe(){const _0x25377a=_0x288259;return Math['random']()[_0x25377a(0x211)](0x24)[_0x25377a(0x191)](0x2,0x8);}k[_0x288259(0x197)]='UniverIcon';const we={'tag':_0x288259(0x210),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x288259(0x1b5),'width':_0x288259(0x1da),'height':_0x288259(0x1da)},'children':[{'tag':_0x288259(0x20d),'attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x288259(0x20d),'attrs':{'fill':'currentColor','d':_0x288259(0x237),'fillRule':'evenodd','clipRule':_0x288259(0x204)}}]},W=_0xa9da7e(function(_0x416c25,_0x1f2fc3){const _0xb17fc8=_0x288259;return _0x350b00(k,Object[_0xb17fc8(0x1a9)]({},_0x416c25,{'id':_0xb17fc8(0x20b),'ref':_0x1f2fc3,'icon':we}));});W['displayName']=_0x288259(0x1e6);class L extends _0x2f9266{constructor(){const _0x37307d=_0x288259;super(...arguments),u(this,_0x37307d(0x236),new Set()),u(this,_0x37307d(0x1ec),new Set());}[_0x288259(0x190)](_0x31dcd7){const _0x4557c4=_0x288259;return this[_0x4557c4(0x236)][_0x4557c4(0x18f)](_0x31dcd7),_0x357616(()=>this[_0x4557c4(0x236)][_0x4557c4(0x1ef)](_0x31dcd7));}['registerInitialStateReporter'](_0x3b3ed7){const _0xa54d35=_0x288259;return this[_0xa54d35(0x1ec)]['add'](_0x3b3ed7),_0x357616(()=>this[_0xa54d35(0x1ec)]['delete'](_0x3b3ed7));}[_0x288259(0x198)](_0x4630a5){const _0x5abafa=_0x288259;return this[_0x5abafa(0x236)][_0x5abafa(0x1aa)](_0x4630a5);}[_0x288259(0x1f8)](_0x2fa184){const _0x2e6d01=_0x288259;return Array[_0x2e6d01(0x19d)](this[_0x2e6d01(0x1ec)])[_0x2e6d01(0x208)](_0x8372f0=>_0x8372f0(_0x2fa184));}}var Ne=Object[_0x288259(0x218)],Y=(_0x56ca39,_0x5df9cb,_0x33643a,_0x3f65ad)=>{const _0x47250e=_0x288259;for(var _0x5ed2c6=_0x3f65ad>0x1?void 0x0:_0x3f65ad?Ne(_0x5df9cb,_0x33643a):_0x5df9cb,_0x2b25b5=_0x56ca39[_0x47250e(0x1fe)]-0x1,_0x18a69f;_0x2b25b5>=0x0;_0x2b25b5--)(_0x18a69f=_0x56ca39[_0x2b25b5])&&(_0x5ed2c6=_0x18a69f(_0x5ed2c6)||_0x5ed2c6);return _0x5ed2c6;},_=(_0x76c072,_0xf10aa)=>(_0x12cd8e,_0x30a995)=>_0xf10aa(_0x12cd8e,_0x30a995,_0x76c072);let S=class extends _0x1e8ae5{constructor(_0x3d6566,_0x17bc9c,_0x3a69ac){const _0x2d6e8d=_0x288259;super(),u(this,_0x2d6e8d(0x229),new Map()),(this[_0x2d6e8d(0x1e8)]=_0x3d6566,this['_injector']=_0x17bc9c,this[_0x2d6e8d(0x1bb)]=_0x3a69ac,this['_init']());}async['getLiveShareCoordinator'](_0x51818e){const _0x2ae6e6=_0x288259;return this[_0x2ae6e6(0x229)][_0x2ae6e6(0x1aa)](_0x51818e)||await this[_0x2ae6e6(0x1d8)](_0x51818e),this[_0x2ae6e6(0x229)][_0x2ae6e6(0x20f)](_0x51818e);}[_0x288259(0x1be)](_0x978332){const _0x313c8c=_0x288259;var _0x2cf19d;return(_0x2cf19d=this[_0x313c8c(0x229)][_0x313c8c(0x20f)](_0x978332))!=null?_0x2cf19d:null;}[_0x288259(0x1c0)](){const _0x5b6c4b=_0x288259;this[_0x5b6c4b(0x1e8)][_0x5b6c4b(0x1a0)](_0x374271[_0x5b6c4b(0x1d6)])['pipe'](_0x29691d(this['dispose$']))[_0x5b6c4b(0x1d0)](async _0x404cb9=>{const _0x59f579=_0x5b6c4b,_0x201f4d=_0x404cb9['getUnitId']();this[_0x59f579(0x229)][_0x59f579(0x1aa)](_0x201f4d)||this[_0x59f579(0x1d8)](_0x201f4d);}),this[_0x5b6c4b(0x1e8)][_0x5b6c4b(0x1db)](_0x374271[_0x5b6c4b(0x1d6)])[_0x5b6c4b(0x1fb)](_0x29691d(this[_0x5b6c4b(0x21b)]))['subscribe'](_0xc29fa9=>{const _0x4578e9=_0x5b6c4b,_0x443200=_0xc29fa9[_0x4578e9(0x1bf)](),_0x3c81a4=this[_0x4578e9(0x229)][_0x4578e9(0x20f)](_0x443200);_0x3c81a4==null||_0x3c81a4[_0x4578e9(0x1fd)]();});}async['_startLiveShareCoordinator'](_0x3a7fd0){const _0x464826=_0x288259,_0x3fce9c=await this[_0x464826(0x1bb)][_0x464826(0x1f1)](_0x3a7fd0),_0x235213=this[_0x464826(0x1dd)][_0x464826(0x235)](N,_0x3a7fd0,_0x3fce9c);return _0x235213[_0x464826(0x1e5)](),this[_0x464826(0x229)][_0x464826(0x1a8)](_0x3a7fd0,_0x235213),_0x235213;}};S=Y([_(0x0,_0x4b8f0b),_(0x1,_0x2ccce4(_0x38a60f)),_(0x2,_0x2ccce4(_0x8e0700))],S);var c=(_0x4bbe1b=>(_0x4bbe1b[_0x288259(0x1ad)]=_0x288259(0x194),_0x4bbe1b[_0x288259(0x213)]=_0x288259(0x232),_0x4bbe1b[_0x288259(0x202)]='following',_0x4bbe1b[_0x288259(0x21a)]='not-following',_0x4bbe1b['PRESENTING']=_0x288259(0x222),_0x4bbe1b))(c||{});const Ce=_0x288259(0x228),De=0xc8;let N=class extends _0x1e8ae5{constructor(_0x238eb6,_0x534c6c,_0x14e14d,_0x57f55e,_0x161068){const _0x444c30=_0x288259;super(),u(this,_0x444c30(0x1ee),new _0x2fd282(_0x444c30(0x232))),u(this,_0x444c30(0x223),this['_status$'][_0x444c30(0x1af)]()),u(this,'_init',!0x1),u(this,_0x444c30(0x1d4),null),u(this,_0x444c30(0x1f0),null),(this[_0x444c30(0x1cb)]=_0x238eb6,this[_0x444c30(0x203)]=_0x534c6c,this['_configService']=_0x14e14d,this['_liveShareService']=_0x57f55e,this[_0x444c30(0x1ba)]=_0x161068);}get[_0x288259(0x1c8)](){const _0x4a7690=_0x288259;return this[_0x4a7690(0x1ee)][_0x4a7690(0x225)]();}[_0x288259(0x1fd)](){const _0xec0031=_0x288259;var _0x559285;(_0x559285=this[_0xec0031(0x1d4)])==null||_0x559285[_0xec0031(0x1fd)](),this[_0xec0031(0x1ee)]['next']('idle'),this[_0xec0031(0x1ee)][_0xec0031(0x1d7)]();}[_0x288259(0x1ac)](){return this['_status'];}['init'](){const _0x30d302=_0x288259;this['_init']||(this[_0x30d302(0x1c0)]=!0x0,this[_0x30d302(0x203)][_0x30d302(0x195)][_0x30d302(0x1fb)](_0x29691d(this[_0x30d302(0x21b)]))['subscribe'](_0x367bef=>{const _0x2d0341=_0x30d302;switch(_0x367bef){case _0x2d2d85['OFFLINE']:this[_0x2d0341(0x1b9)]();break;case _0x2d2d85[_0x2d0341(0x1ce)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x30d302(0x224)]['pipe'](_0x29691d(this[_0x30d302(0x21b)]))[_0x30d302(0x1d0)](_0x103413=>{const _0x1f1aa5=_0x30d302,{eventID:_0x5d036d}=_0x103413;switch(_0x5d036d){case _0x555910[_0x1f1aa5(0x21e)]:this['_handleNewHost'](_0x103413);break;case _0x555910[_0x1f1aa5(0x1f5)]:this[_0x1f1aa5(0x221)](_0x103413);break;case _0x555910[_0x1f1aa5(0x1cc)]:this['_handleTerminate']();break;case _0x555910[_0x1f1aa5(0x1fc)]:this[_0x1f1aa5(0x212)](_0x103413);break;}}));}[_0x288259(0x1b7)](){const _0x1f01ce=_0x288259;this[_0x1f01ce(0x203)][_0x1f01ce(0x201)]({'eventID':_0x555910[_0x1f01ce(0x1a4)],'data':{'unitID':this['_unitID'],'userID':this[_0x1f01ce(0x203)]['getMemberID']()}},this[_0x1f01ce(0x1cb)]);}[_0x288259(0x1df)](){const _0x593f8a=_0x288259;this['_status']===_0x593f8a(0x222)&&(this[_0x593f8a(0x1ee)]['next']('idle'),this[_0x593f8a(0x203)][_0x593f8a(0x201)]({'eventID':_0x555910[_0x593f8a(0x1cc)],'data':{'unitID':this[_0x593f8a(0x1cb)]}},this[_0x593f8a(0x1cb)]));}[_0x288259(0x20e)](){const _0x17c16f=_0x288259;this[_0x17c16f(0x1c8)]===_0x17c16f(0x209)&&(this[_0x17c16f(0x1ee)][_0x17c16f(0x1dc)]('following'),this[_0x17c16f(0x22f)]());}[_0x288259(0x216)](){const _0x56fe15=_0x288259;this['_status']===_0x56fe15(0x1ea)&&this[_0x56fe15(0x22a)]();}[_0x288259(0x206)](_0x36c959){const _0x5eb3aa=_0x288259,{presenter:_0x2ed9c5}=_0x36c959['data'],_0xc72ae8=this[_0x5eb3aa(0x203)][_0x5eb3aa(0x1cf)]();this[_0x5eb3aa(0x1f0)]=_0x2ed9c5,_0x2ed9c5===_0xc72ae8?(this[_0x5eb3aa(0x22a)](),this[_0x5eb3aa(0x193)]()):this['_status']!=='not-following'&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x288259(0x214)](){const _0x4f0dec=_0x288259,_0x32c37a={'eventID':_0x555910[_0x4f0dec(0x21f)]};this['_collabSession'][_0x4f0dec(0x201)](_0x32c37a,this[_0x4f0dec(0x1cb)]);}[_0x288259(0x239)](){const _0x153376=_0x288259;this[_0x153376(0x1f0)]=null,this[_0x153376(0x1c8)]!=='presenting'&&this['_beIdle']();}['_handleNewChangeSets'](_0x36e0ca){const _0x25f2a5=_0x288259;if(this['_status']===_0x25f2a5(0x1ea)&&this[_0x25f2a5(0x1f0)]===_0x36e0ca[_0x25f2a5(0x1ed)][_0x25f2a5(0x19c)]){const _0x5ba717=_0x3b7300(_0x36e0ca[_0x25f2a5(0x1ed)])['mutations'][_0x25f2a5(0x1e1)]()['find'](_0x459aad=>_0x459aad['id']===_0x5d46de['id']);if(_0x5ba717){const _0x307f94=_0x5ba717[_0x25f2a5(0x1f7)][_0x25f2a5(0x23b)],_0x2908ca=_0x5ba717['params'][_0x25f2a5(0x1fa)]['id'];setTimeout(()=>{const _0xf95204=_0x25f2a5;this[_0xf95204(0x1ba)][_0xf95204(0x1c5)](_0x3493cd['id'],{'unitId':_0x307f94,'subUnitId':_0x2908ca},{'fromCollab':!0x0});});}}}[_0x288259(0x193)](){const _0x1c3e27=_0x288259;this[_0x1c3e27(0x1ee)][_0x1c3e27(0x1dc)](_0x1c3e27(0x222));const _0x478f22=new Map(),_0x275e18=this[_0x1c3e27(0x1d4)]=new _0x50ce28();_0x275e18[_0x1c3e27(0x18f)](_0x357616(()=>{const _0x40fcbc=_0x1c3e27;_0x478f22['forEach'](_0x25d5bb=>_0x25d5bb[_0x40fcbc(0x1d7)]()),_0x478f22[_0x40fcbc(0x1a5)]();})),_0x275e18[_0x1c3e27(0x18f)](this[_0x1c3e27(0x1ba)][_0x1c3e27(0x230)](_0x9c0a59=>{const _0x22527c=_0x1c3e27;var _0x190d6c;if(_0x9c0a59[_0x22527c(0x1c1)]!==_0x419927['OPERATION']||!this[_0x22527c(0x1b3)]['shouldShareOperation'](_0x9c0a59['id']))return;const {id:_0x60363b}=_0x9c0a59;let _0x33d8b6;_0x478f22[_0x22527c(0x1aa)](_0x60363b)?_0x33d8b6=_0x478f22[_0x22527c(0x20f)](_0x60363b):(_0x33d8b6=new _0x514c47(),_0x478f22['set'](_0x60363b,_0x33d8b6),_0x33d8b6[_0x22527c(0x1fb)](_0x4434ac((_0x190d6c=this[_0x22527c(0x238)][_0x22527c(0x22c)](Ce))!=null?_0x190d6c:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x26e65d=>{const _0xeecc7a=_0x22527c;this['_collabSession'][_0xeecc7a(0x201)]({'eventID':_0x555910[_0xeecc7a(0x1f5)],'data':{'unitID':this[_0xeecc7a(0x1cb)],'operations':{[_0x26e65d['id']]:{'id':_0x26e65d['id'],'params':JSON[_0xeecc7a(0x1d1)](_0x26e65d[_0xeecc7a(0x1f7)])}}}},this[_0xeecc7a(0x1cb)]);})),_0x33d8b6[_0x22527c(0x1dc)](_0x9c0a59);})),this[_0x1c3e27(0x1b3)][_0x1c3e27(0x1f8)](this[_0x1c3e27(0x1cb)])[_0x1c3e27(0x1b8)](_0x4ce92a=>this[_0x1c3e27(0x203)][_0x1c3e27(0x201)]({'eventID':_0x555910['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x4ce92a['id']]:{'id':_0x4ce92a['id'],'params':JSON['stringify'](_0x4ce92a[_0x1c3e27(0x1f7)])}}}},this[_0x1c3e27(0x1cb)]));}[_0x288259(0x1b4)](){const _0x4665c0=_0x288259;var _0x24c72b;this[_0x4665c0(0x1ee)][_0x4665c0(0x1dc)](_0x4665c0(0x232)),(_0x24c72b=this[_0x4665c0(0x1d4)])==null||_0x24c72b[_0x4665c0(0x1fd)](),this[_0x4665c0(0x1d4)]=null;}['_startFollowing'](){const _0x19b962=_0x288259;var _0x33d342;(_0x33d342=this['_commandDisposable'])==null||_0x33d342['dispose'](),this[_0x19b962(0x1ee)][_0x19b962(0x1dc)](_0x19b962(0x1ea));}[_0x288259(0x1f6)](){const _0x3b9b94=_0x288259;var _0xcbeccb;this[_0x3b9b94(0x1ee)][_0x3b9b94(0x1dc)](_0x3b9b94(0x232)),(_0xcbeccb=this[_0x3b9b94(0x1d4)])==null||_0xcbeccb[_0x3b9b94(0x1fd)](),this[_0x3b9b94(0x1d4)]=null;}[_0x288259(0x22a)](){const _0x5da14b=_0x288259;var _0x4c272e;this[_0x5da14b(0x1ee)][_0x5da14b(0x1dc)](_0x5da14b(0x209)),(_0x4c272e=this[_0x5da14b(0x1d4)])==null||_0x4c272e[_0x5da14b(0x1fd)]();}[_0x288259(0x221)](_0xafb528){const _0x31a66d=_0x288259;if([_0x31a66d(0x222),_0x31a66d(0x209),_0x31a66d(0x194)][_0x31a66d(0x227)](this[_0x31a66d(0x1c8)])||!_0xafb528[_0x31a66d(0x1ed)]['presenter']||_0xafb528[_0x31a66d(0x1ed)]['presenter']===this[_0x31a66d(0x203)][_0x31a66d(0x1cf)]())return;this[_0x31a66d(0x1c8)]==='idle'&&this['_startFollowing']();const _0x59c778=_0xafb528['data']['operations'];Object[_0x31a66d(0x215)](_0x59c778)['forEach'](_0x4d58aa=>{const _0x432061=_0x31a66d;this[_0x432061(0x1ba)]['executeCommand'](_0x4d58aa['id'],_0x4d58aa[_0x432061(0x1f7)]?JSON[_0x432061(0x1e4)](_0x4d58aa['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x3754b6=_0x288259;var _0x10b501;this[_0x3754b6(0x1ee)][_0x3754b6(0x1dc)](_0x3754b6(0x194)),(_0x10b501=this[_0x3754b6(0x1d4)])==null||_0x10b501[_0x3754b6(0x1fd)]();}[_0x288259(0x22d)](){const _0x3c96ba=_0x288259;this['_status$'][_0x3c96ba(0x1dc)](_0x3c96ba(0x232)),this[_0x3c96ba(0x214)]();}};N=Y([_(0x2,_0x292df9),_(0x3,_0x2ccce4(L)),_(0x4,_0xe319f4)],N);function Le(){const _0x5dfa7e=_0x288259,_0x103b8e=_0x2cf9c5(S),_0x5c7e87=_0x2cf9c5(_0x4b8f0b),_0x433543=_0x57d739(()=>_0x5c7e87['getCurrentTypeOfUnit$'](_0x374271[_0x5dfa7e(0x1d6)]),void 0x0,!0x1,[]),[_0x5ec586,_0x3f6800]=_0x223824(null),[_0x56a1cf,_0x49f542]=_0x223824(c[_0x5dfa7e(0x213)]),_0x58f772=_0x15d3aa(null);return _0x365662(()=>(_0x433543&&_0x103b8e[_0x5dfa7e(0x1f3)](_0x433543['getUnitId']())[_0x5dfa7e(0x1a6)](_0x5a5bdc=>{const _0x1814b1=_0x5dfa7e;_0x3f6800(_0x5a5bdc),_0x58f772[_0x1814b1(0x1a2)]=_0x5a5bdc['status$'][_0x1814b1(0x1d0)](_0x108aaf=>{_0x49f542(_0x108aaf);});}),()=>{const _0x6491d2=_0x5dfa7e;var _0x1e20f4;(_0x1e20f4=_0x58f772[_0x6491d2(0x1a2)])==null||_0x1e20f4[_0x6491d2(0x1c7)](),_0x58f772[_0x6491d2(0x1a2)]=null;}),[_0x433543,_0x103b8e]),_0x5ec586?_0x120c4b(_0x1c59e1,{'align':_0x5dfa7e(0x1ab),'disabled':_0x56a1cf===c[_0x5dfa7e(0x1ad)],'className':_0x5dfa7e(0x192),'overlay':_0x120c4b(Re,{'status':_0x56a1cf,'coordinator':_0x5ec586}),'children':_0x120c4b('button',{'className':_0x4affc9('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x56a1cf===c[_0x5dfa7e(0x1ad)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x56a1cf!==c[_0x5dfa7e(0x1ad)]}),'type':'button','children':_0x120c4b(W,{'className':_0x5dfa7e(0x1ca)})})}):null;}function Re(_0x5670a2){const _0x4afaf8=_0x288259,{status:_0x109fa5,coordinator:_0x27ab16}=_0x5670a2;switch(_0x109fa5){case c[_0x4afaf8(0x213)]:return _0x120c4b($e,{'coordinator':_0x27ab16});case c[_0x4afaf8(0x202)]:return _0x120c4b(xe,{'coordinator':_0x27ab16});case c[_0x4afaf8(0x21a)]:return _0x120c4b(Pe,{'coordinator':_0x27ab16});case c[_0x4afaf8(0x1ad)]:return _0x120c4b(Te,{});case c[_0x4afaf8(0x217)]:return _0x120c4b(Ae,{'coordinator':_0x27ab16});default:return null;}}function $e(_0x377b24){const _0x5cb217=_0x288259,{coordinator:_0x30ecda}=_0x377b24;return _0x18b69b(_0x182287,{'children':[_0x120c4b(_0x5cb217(0x1b6),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5cb217(0x1e3)}),_0x120c4b(_0x22c645,{'onClick':()=>_0x30ecda['tryStartPresenting'](),'children':'Start'})]});}function xe(_0x279f75){const _0x3a7b8d=_0x288259,{coordinator:_0x3a96ec}=_0x279f75;return _0x18b69b(_0x182287,{'children':[_0x120c4b(_0x3a7b8d(0x1b6),{'className':_0x3a7b8d(0x1e7),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x120c4b(_0x22c645,{'onClick':()=>_0x3a96ec[_0x3a7b8d(0x216)](),'children':_0x3a7b8d(0x1f2)})]});}function Pe(_0x540f95){const _0x5bd04b=_0x288259,{coordinator:_0x2b3d0b}=_0x540f95;return _0x18b69b(_0x182287,{'children':[_0x120c4b(_0x5bd04b(0x1b6),{'className':_0x5bd04b(0x1e7),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x120c4b(_0x22c645,{'variant':'text','onClick':()=>_0x2b3d0b[_0x5bd04b(0x20e)](),'children':_0x5bd04b(0x1c4)})]});}function Ae(_0x5b5747){const _0x50ffc7=_0x288259,{coordinator:_0x269e83}=_0x5b5747;return _0x18b69b(_0x182287,{'children':[_0x120c4b('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x50ffc7(0x1a1)}),_0x120c4b(_0x22c645,{'variant':_0x50ffc7(0x1b2),'onClick':()=>_0x269e83[_0x50ffc7(0x1df)](),'children':_0x50ffc7(0x1c9)})]});}function Te(){const _0x471c51=_0x288259;return _0x120c4b(_0x182287,{'children':_0x471c51(0x1ae)});}var Fe=Object[_0x288259(0x218)],He=(_0x597881,_0x2e0b7c,_0x359c89,_0x443b17)=>{const _0x3afbee=_0x288259;for(var _0x90b0f5=_0x443b17>0x1?void 0x0:_0x443b17?Fe(_0x2e0b7c,_0x359c89):_0x2e0b7c,_0x23e3fd=_0x597881[_0x3afbee(0x1fe)]-0x1,_0x464d32;_0x23e3fd>=0x0;_0x23e3fd--)(_0x464d32=_0x597881[_0x23e3fd])&&(_0x90b0f5=_0x464d32(_0x90b0f5)||_0x90b0f5);return _0x90b0f5;},A=(_0x4f2e1c,_0x410599)=>(_0x36348e,_0x4fdf10)=>_0x410599(_0x36348e,_0x4fdf10,_0x4f2e1c);let m=class extends _0x2f9266{constructor(_0x1e5014,_0x59f260){const _0x449ede=_0x288259;super(),this[_0x449ede(0x1dd)]=_0x1e5014,this[_0x449ede(0x1ff)]=_0x59f260,this['_mountLiveShare']();}[_0x288259(0x19a)](){const _0xef82cf=_0x288259;this[_0xef82cf(0x1d2)](this['_uiPartsService'][_0xef82cf(0x196)](_0x367153[_0xef82cf(0x1cd)],()=>_0x4d0457(Le,this[_0xef82cf(0x1dd)])));}};m=He([A(0x0,_0x2ccce4(_0x38a60f)),A(0x1,_0x39de93)],m);const ye=_0x288259(0x23a),T={};var Ue=Object[_0x288259(0x218)],Ve=(_0x41ff90,_0x44f3e5,_0x30d7ea,_0x4ce8b6)=>{const _0x303322=_0x288259;for(var _0x5134db=_0x4ce8b6>0x1?void 0x0:_0x4ce8b6?Ue(_0x44f3e5,_0x30d7ea):_0x44f3e5,_0x5510b2=_0x41ff90[_0x303322(0x1fe)]-0x1,_0x2d5093;_0x5510b2>=0x0;_0x5510b2--)(_0x2d5093=_0x41ff90[_0x5510b2])&&(_0x5134db=_0x2d5093(_0x5134db)||_0x5134db);return _0x5134db;},je=(_0x1d3aa0,_0x4008fa)=>(_0x3d222e,_0x37da56)=>_0x4008fa(_0x3d222e,_0x37da56,_0x1d3aa0);let I=class extends _0x2f9266{constructor(_0x3779ad){const _0x588b31=_0x288259;super(),this[_0x588b31(0x1b3)]=_0x3779ad,this[_0x588b31(0x1c0)]();}[_0x288259(0x1c0)](){[_0xc86880['id'],_0x184f42['id'],_0x3493cd['id']]['forEach'](_0x5ef7c9=>{const _0x378a43=_0x33d3;this[_0x378a43(0x1d2)](this[_0x378a43(0x1b3)]['registerSharedOperation'](_0x5ef7c9));});}};I=Ve([je(0x0,_0x2ccce4(L))],I);var Me=Object[_0x288259(0x231)],ke=Object[_0x288259(0x218)],Ge=(_0x32d307,_0x7762f9,_0x4b7b01)=>_0x7762f9 in _0x32d307?Me(_0x32d307,_0x7762f9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b7b01}):_0x32d307[_0x7762f9]=_0x4b7b01,We=(_0x4a4a44,_0x45c9a3,_0x5d9a4d,_0x3acefe)=>{const _0x4a4d80=_0x288259;for(var _0x110a54=_0x3acefe>0x1?void 0x0:_0x3acefe?ke(_0x45c9a3,_0x5d9a4d):_0x45c9a3,_0x38cfec=_0x4a4a44[_0x4a4d80(0x1fe)]-0x1,_0x4efb6b;_0x38cfec>=0x0;_0x38cfec--)(_0x4efb6b=_0x4a4a44[_0x38cfec])&&(_0x110a54=_0x4efb6b(_0x110a54)||_0x110a54);return _0x110a54;},F=(_0x1cc800,_0x3c46c3)=>(_0x36cdac,_0x2dc82c)=>_0x3c46c3(_0x36cdac,_0x2dc82c,_0x1cc800),B=(_0x35f92a,_0x712dab,_0x44f472)=>Ge(_0x35f92a,typeof _0x712dab!=_0x288259(0x1b0)?_0x712dab+'':_0x712dab,_0x44f472);const Ye=_0x288259(0x19f);let b=class extends _0x3f1d3f{constructor(_0x1e511a=T,_0x32e59b,_0x9a80){const _0x3f389f=_0x288259;super(),this[_0x3f389f(0x21d)]=_0x1e511a,this['_injector']=_0x32e59b,this[_0x3f389f(0x238)]=_0x9a80;const {..._0x3df5d2}=_0x2eff68({},T,this['_config']);this[_0x3f389f(0x238)][_0x3f389f(0x1de)](ye,_0x3df5d2);}[_0x288259(0x19e)](){const _0x14d7c0=_0x288259;_0x28d75e(this[_0x14d7c0(0x1dd)],_0x965e10([[L],[S],[I],[m]],this[_0x14d7c0(0x21d)][_0x14d7c0(0x199)])),_0x5b4615(this[_0x14d7c0(0x1dd)],[[I]]);}[_0x288259(0x19b)](){_0x5b4615(this['_injector'],[[m]]);}};B(b,_0x288259(0x1c1),_0x374271['UNIVER_UNKNOWN']),B(b,_0x288259(0x1c2),Ye),b=We([_0x553a41(_0x5d8e2c),F(0x1,_0x2ccce4(_0x38a60f)),F(0x2,_0x292df9)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};function _0x5f16(){const _0x4c8d55=['univer-mb-3\x20univer-w-full\x20univer-text-sm','_univerInstanceService','defIds','following','1728160kgIJXr','_reporters','data','_status$','delete','_presenter','requireSession','Stop\x20following','getLiveShareCoordinator','1111752ylGwec','LIVESHARE_OPERATION','_beIdle','params','getInitialStates','fill','sheet','pipe','NEW_CHANGESETS','dispose','length','_uiPartsService','36eVQPtP','send','FOLLOWING','_collabSession','evenodd','326181TmvmeI','_handleNewHost','2AQWkEx','map','not-following','replace','live-share-icon','attrs','path','startFollowing','get','svg','toString','_handleNewChangeSets','IDLE','_fetchOperations','values','stopFollowing','PRESENTING','getOwnPropertyDescriptor','xlink:href','NOT_FOLLOWING','dispose$','4456110hHKimL','_config','LIVESHARE_NEW_HOST','LIVESHARE_FETCH_OPERATIONS','defs','_handleOperation','presenting','status$','event$','getValue','7UDrFct','includes','SAME_OPERATION_SHARE_INTERVAL','_entities','_stopFollowing','univerjs-icon\x20univerjs-icon-','getConfig','_handleOnline','18CHblwZ','_startFollowing','onCommandExecuted','defineProperty','idle','idSuffix','use','createInstance','_sharedOperations','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','_configService','_handleTerminate','live-share.config','unitId','add','registerSharedOperation','substring','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','_startPresenting','offline','sessionStatus$','registerComponent','displayName','shouldShareOperation','override','_mountLiveShare','onRendered','memberID','from','onStarting','UNIVER_LIVE_SHARE_PLUGIN','getTypeOfUnitAdded$','You\x27re\x20presenting\x20the\x20document','current','url(#$1','LIVESHARE_REQUEST_HOST','clear','then','entries','set','assign','has','end','getStatus','OFFLINE','You\x27are\x20offline.','asObservable','symbol','mask','default','_liveShareService','_stopPresenting','0\x200\x2017\x2017','div','tryStartPresenting','forEach','_handleOffline','_commandService','_collabSessionService','trim','744855gXupYh','getLiveShareCoordinatorSync','getUnitId','_init','type','pluginName','children','Start\x20following','executeCommand','string','unsubscribe','_status','Stop\x20presenting','univer-size-4','_unitID','LIVESHARE_TERMINATE','HEADER_MENU','ONLINE','getMemberID','subscribe','stringify','disposeWithMe','tag','_commandDisposable','colorChannel1','UNIVER_SHEET','complete','_startLiveShareCoordinator','3981610OVuPAs','1em','getTypeOfUnitDisposed$','next','_injector','setConfig','stopPresenting','11HDWnoZ','reverse','11927532Losnhb','Present\x20this\x20document','parse','init','LiveShareIcon'];_0x5f16=function(){return _0x4c8d55;};return _0x5f16();}
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x38762c=_0x1322;(function(_0x4b3cb5,_0x4b032d){const _0x4b078e=_0x1322,_0x267d21=_0x4b3cb5();while(!![]){try{const _0xfcc7b9=-parseInt(_0x4b078e(0xaa))/0x1+parseInt(_0x4b078e(0xa6))/0x2*(parseInt(_0x4b078e(0xa1))/0x3)+-parseInt(_0x4b078e(0x8f))/0x4*(parseInt(_0x4b078e(0x8e))/0x5)+-parseInt(_0x4b078e(0xac))/0x6*(parseInt(_0x4b078e(0x9a))/0x7)+parseInt(_0x4b078e(0x97))/0x8+parseInt(_0x4b078e(0xab))/0x9*(parseInt(_0x4b078e(0xae))/0xa)+parseInt(_0x4b078e(0x91))/0xb*(-parseInt(_0x4b078e(0xad))/0xc);if(_0xfcc7b9===_0x4b032d)break;else _0x267d21['push'](_0x267d21['shift']());}catch(_0x522c58){_0x267d21['push'](_0x267d21['shift']());}}}(_0x40d8,0x569dc));import{LiveShareController as _0x24ed23,LiveShareStatus as _0x236572}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x2eaba2}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x5c625f}from'@univerjs/sheets';import{SetScrollOperation as _0x3dd26c}from'@univerjs/sheets-ui';import{FRange as _0x197e81}from'@univerjs/sheets/facade';import{FUniver as _0x106cef,FEnum as _0x8f2951}from'@univerjs/core/facade';class I extends _0x197e81{[_0x38762c(0x92)](_0x467941,_0x1167d2,_0x538a1f,_0x41a628,_0x2d324e){const _0x47dc6b=_0x38762c,_0x251938=_0x467941[_0x47dc6b(0xa0)](_0x24ed23),_0x502f4b=_0x467941[_0x47dc6b(0xa0)](_0x2eaba2),_0x3d072a=_0x1167d2['getUnitId'](),_0x30d7ac=_0x1167d2['getActiveSheet'](),_0x330555=_0x251938['getLiveShareCoordinatorSync'](_0x3d072a);(_0x330555==null?void 0x0:_0x330555[_0x47dc6b(0x9c)]())!==_0x236572[_0x47dc6b(0xa2)]||(_0x538a1f[_0x47dc6b(0xa4)]()!==_0x30d7ac[_0x47dc6b(0xa4)]()&&this[_0x47dc6b(0x9e)][_0x47dc6b(0xaf)](_0x5c625f['id'],{'unitId':_0x3d072a,'subUnitId':_0x538a1f['getSheetId']()}),!_0x502f4b['getRenderById'](_0x3d072a))||_0x2d324e[_0x47dc6b(0x93)](_0x3dd26c['id'],{'unitId':_0x1167d2[_0x47dc6b(0xa3)](),'sheetId':_0x538a1f[_0x47dc6b(0xa4)](),'sheetViewStartRow':_0x41a628[_0x47dc6b(0x8d)],'sheetViewStartColumn':_0x41a628['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x197e81[_0x38762c(0x99)](I);class m extends _0x106cef{[_0x38762c(0x90)](){const _0x4d381a=_0x38762c;var _0x48ddc5,_0x1a2c3b;const _0x525263=this[_0x4d381a(0x96)]['get'](_0x24ed23),_0x47a1b0=(_0x48ddc5=this[_0x4d381a(0x9b)]())==null?void 0x0:_0x48ddc5['getId']();if(!_0x47a1b0)throw new Error(_0x4d381a(0x9d));const _0x19520e=_0x525263[_0x4d381a(0xa8)](_0x47a1b0);return(_0x1a2c3b=_0x19520e==null?void 0x0:_0x19520e[_0x4d381a(0x9c)]())!=null?_0x1a2c3b:_0x236572[_0x4d381a(0x98)];}[_0x38762c(0x95)](){const _0x987b92=_0x38762c;var _0x5dc8d8;const _0xaf7822=this[_0x987b92(0x96)]['get'](_0x24ed23),_0x409a30=(_0x5dc8d8=this[_0x987b92(0x9b)]())==null?void 0x0:_0x5dc8d8[_0x987b92(0x9f)]();if(!_0x409a30)throw new Error(_0x987b92(0x9d));const _0x1cda2a=_0xaf7822[_0x987b92(0xa8)](_0x409a30);if(!_0x1cda2a)throw new Error(_0x987b92(0x94));_0x1cda2a[_0x987b92(0x95)]();}[_0x38762c(0xb0)](){const _0x3c6bd8=_0x38762c;var _0x2638a9;const _0x459aae=this[_0x3c6bd8(0x96)]['get'](_0x24ed23),_0x222884=(_0x2638a9=this[_0x3c6bd8(0x9b)]())==null?void 0x0:_0x2638a9[_0x3c6bd8(0x9f)]();if(!_0x222884)throw new Error('No\x20active\x20workbook\x20found.');const _0x24a03c=_0x459aae[_0x3c6bd8(0xa8)](_0x222884);if(!_0x24a03c)throw new Error(_0x3c6bd8(0x94));_0x24a03c[_0x3c6bd8(0xb0)]();}[_0x38762c(0x8c)](){const _0x1fa591=_0x38762c;var _0x2e9f1e;const _0x445801=this[_0x1fa591(0x96)]['get'](_0x24ed23),_0xcaa8ba=(_0x2e9f1e=this[_0x1fa591(0x9b)]())==null?void 0x0:_0x2e9f1e[_0x1fa591(0x9f)]();if(!_0xcaa8ba)throw new Error(_0x1fa591(0x9d));const _0x2bd2ed=_0x445801[_0x1fa591(0xa8)](_0xcaa8ba);if(!_0x2bd2ed)throw new Error(_0x1fa591(0x94));_0x2bd2ed[_0x1fa591(0xa9)]();}['stopPresenting'](){const _0x11b4bd=_0x38762c;var _0x473022;const _0x222e1b=this[_0x11b4bd(0x96)][_0x11b4bd(0xa0)](_0x24ed23),_0x335f72=(_0x473022=this[_0x11b4bd(0x9b)]())==null?void 0x0:_0x473022['getId']();if(!_0x335f72)throw new Error(_0x11b4bd(0x9d));const _0x10709b=_0x222e1b[_0x11b4bd(0xa8)](_0x335f72);if(!_0x10709b)throw new Error(_0x11b4bd(0x94));_0x10709b[_0x11b4bd(0xa7)]();}}_0x106cef[_0x38762c(0x99)](m);class C extends _0x8f2951{get[_0x38762c(0xa5)](){return _0x236572;}}_0x8f2951['extend'](C);function _0x1322(_0x47da0c,_0xdfa40b){_0x47da0c=_0x47da0c-0x8c;const _0x40d801=_0x40d8();let _0x13227b=_0x40d801[_0x47da0c];return _0x13227b;}function _0x40d8(){const _0x233b69=['get','3AQafnO','PRESENTING','getUnitId','getSheetId','LiveShareStatusEnum','544924ZDvkNx','stopPresenting','getLiveShareCoordinatorSync','tryStartPresenting','658597jVHLwy','2084202FrUmfh','222yjbocB','12AmThGu','30bsGIxu','executeCommand','stopFollowing','startPresenting','startRow','975HLjyjm','5972UdXmqX','getLiveShareStatus','766832KosLMZ','_initialize','syncExecuteCommand','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startFollowing','_injector','4590000IOflAt','IDLE','extend','31542kvMcZM','getActiveWorkbook','getStatus','No\x20active\x20workbook\x20found.','_commandService','getId'];_0x40d8=function(){return _0x233b69;};return _0x40d8();}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x105b4f=_0x2cf0;(function(_0x42ec40,_0x164217){const _0x31c271=_0x2cf0,_0x2798aa=_0x42ec40();while(!![]){try{const _0x4fd234=parseInt(_0x31c271(0x1c0))/0x1+-parseInt(_0x31c271(0x21e))/0x2+parseInt(_0x31c271(0x1a3))/0x3*(parseInt(_0x31c271(0x1c3))/0x4)+parseInt(_0x31c271(0x1cd))/0x5*(-parseInt(_0x31c271(0x1a8))/0x6)+-parseInt(_0x31c271(0x238))/0x7*(parseInt(_0x31c271(0x1f3))/0x8)+parseInt(_0x31c271(0x1fe))/0x9+-parseInt(_0x31c271(0x1ec))/0xa*(-parseInt(_0x31c271(0x236))/0xb);if(_0x4fd234===_0x164217)break;else _0x2798aa['push'](_0x2798aa['shift']());}catch(_0x57a09e){_0x2798aa['push'](_0x2798aa['shift']());}}}(_0x4bc3,0xcade1));var J=Object[_0x105b4f(0x1b0)],K=(_0x14a8e0,_0x590774,_0x36d8b0)=>_0x590774 in _0x14a8e0?J(_0x14a8e0,_0x590774,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x36d8b0}):_0x14a8e0[_0x590774]=_0x36d8b0,u=(_0x15841b,_0xf8d9e0,_0x22c4e5)=>K(_0x15841b,typeof _0xf8d9e0!=_0x105b4f(0x208)?_0xf8d9e0+'':_0xf8d9e0,_0x22c4e5);import{Disposable as _0x19c5fe,toDisposable as _0x2f41f0,IUniverInstanceService as _0x49d2d0,Inject as _0xb4de5c,Injector as _0x39091f,IConfigService as _0x162c40,ICommandService as _0x3e5399,RxDisposable as _0x34eb50,UniverInstanceType as _0x122c76,DisposableCollection as _0x1ca7f7,CommandType as _0x2379b5,DependentOn as _0x2510ce,Plugin as _0x1ec157,merge as _0x2a4c60,registerDependencies as _0x47fa09,mergeOverrideWithDependencies as _0x37eaec,touchDependencies as _0x2a81f9}from'@univerjs/core';import{useDependency as _0x3284dd,useObservable as _0x36dee3,IUIPartsService as _0x1cb32c,BuiltInUIPart as _0x2d952e,connectInjector as _0x5cc7c1}from'@univerjs/ui';import{jsx as _0x46e223,jsxs as _0x539ff2,Fragment as _0x46e9aa}from'react/jsx-runtime';import{Dropdown as _0x26b96d,clsx as _0x3c8e64,Button as _0x21597a}from'@univerjs/design';import{useRef as _0xf38a0d,createElement as _0x2c90b5,forwardRef as _0x4e5534,useState as _0x4e7da4,useEffect as _0x5d80fb}from'react';import{CollaborationEvent as _0x564ee3,parseProtocolChangeset as _0x40078c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xa11808,SessionStatus as _0x155833,UniverCollaborationClientPlugin as _0x16c8c0}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xd8595d,SetWorksheetActiveOperation as _0x2e64c1}from'@univerjs/sheets';import{BehaviorSubject as _0x2fdabf,Subject as _0x415a69}from'rxjs';import{takeUntil as _0x56a21e,throttleTime as _0x2c6eb0}from'rxjs/operators';import{SetZoomRatioOperation as _0xba6ce1,SetScrollOperation as _0x105dbb}from'@univerjs/sheets-ui';function k({ref:_0x19be25,..._0x3012e5}){const _0x3b9e35=_0x105b4f,{icon:_0x17a20b,id:_0x550ba1,className:_0x7bb1a8,extend:_0x1882b2,..._0x27c232}=_0x3012e5,_0x1c5a00=('univerjs-icon\x20univerjs-icon-'+_0x550ba1+'\x20'+(_0x7bb1a8||''))['trim'](),_0x1c2479=_0xf38a0d('_'+Oe());return G(_0x17a20b,''+_0x550ba1,{'defIds':_0x17a20b[_0x3b9e35(0x21a)],'idSuffix':_0x1c2479['current']},{'ref':_0x19be25,'className':_0x1c5a00,..._0x27c232},_0x1882b2);}function G(_0x21c71b,_0x3db89a,_0x46eea3,_0xd75d4d,_0x3dbb56){const _0x16fb68=_0x105b4f;return _0x2c90b5(_0x21c71b['tag'],{'key':_0x3db89a,...be(_0x21c71b,_0x46eea3,_0x3dbb56),..._0xd75d4d},(Ee(_0x21c71b,_0x46eea3)[_0x16fb68(0x220)]||[])[_0x16fb68(0x20c)]((_0x52c4db,_0xf6c6bc)=>G(_0x52c4db,_0x3db89a+'-'+_0x21c71b[_0x16fb68(0x214)]+'-'+_0xf6c6bc,_0x46eea3,void 0x0,_0x3dbb56)));}function be(_0x4835e8,_0x49aeef,_0x341a92){const _0x230566=_0x105b4f,_0xc3ac35={..._0x4835e8[_0x230566(0x200)]};_0x341a92!=null&&_0x341a92[_0x230566(0x1de)]&&_0xc3ac35[_0x230566(0x1f8)]===_0x230566(0x1de)&&(_0xc3ac35[_0x230566(0x1f8)]=_0x341a92[_0x230566(0x1de)]),_0x4835e8[_0x230566(0x214)]===_0x230566(0x1b4)&&_0xc3ac35['id']&&(_0xc3ac35['id']=_0xc3ac35['id']+_0x49aeef[_0x230566(0x22c)]),Object[_0x230566(0x21c)](_0xc3ac35)[_0x230566(0x22b)](([_0x5889e0,_0x26227b])=>{const _0xed9923=_0x230566;_0x5889e0===_0xed9923(0x1b4)&&typeof _0x26227b==_0xed9923(0x1d5)&&(_0xc3ac35[_0x5889e0]=_0x26227b[_0xed9923(0x22d)](/url\(#(.*)\)/,_0xed9923(0x1af)+_0x49aeef[_0xed9923(0x22c)]+')'));});const {defIds:_0x5adcf5}=_0x49aeef;return!_0x5adcf5||_0x5adcf5[_0x230566(0x1c4)]===0x0||(_0x4835e8[_0x230566(0x214)]===_0x230566(0x1e3)&&_0xc3ac35[_0x230566(0x231)]&&(_0xc3ac35['xlink:href']=_0xc3ac35[_0x230566(0x231)]+_0x49aeef['idSuffix']),Object[_0x230566(0x21c)](_0xc3ac35)[_0x230566(0x22b)](([_0xde30ef,_0x589144])=>{const _0xb27482=_0x230566;typeof _0x589144==_0xb27482(0x1d5)&&(_0xc3ac35[_0xde30ef]=_0x589144[_0xb27482(0x22d)](/url\(#(.*)\)/,'url(#$1'+_0x49aeef[_0xb27482(0x22c)]+')'));})),_0xc3ac35;}function Ee(_0x37eaba,_0x32f198){const _0x2e155c=_0x105b4f;var _0x234cb;const {defIds:_0x475cfd}=_0x32f198;return!_0x475cfd||_0x475cfd[_0x2e155c(0x1c4)]===0x0?_0x37eaba:_0x37eaba[_0x2e155c(0x214)]===_0x2e155c(0x1f4)&&((_0x234cb=_0x37eaba[_0x2e155c(0x220)])!=null&&_0x234cb[_0x2e155c(0x1c4)])?{..._0x37eaba,'children':_0x37eaba[_0x2e155c(0x220)]['map'](_0x1bcca1=>typeof _0x1bcca1[_0x2e155c(0x200)]['id']==_0x2e155c(0x1d5)&&_0x475cfd&&_0x475cfd['includes'](_0x1bcca1['attrs']['id'])?{..._0x1bcca1,'attrs':{..._0x1bcca1[_0x2e155c(0x200)],'id':_0x1bcca1[_0x2e155c(0x200)]['id']+_0x32f198[_0x2e155c(0x22c)]}}:_0x1bcca1)}:_0x37eaba;}function Oe(){const _0x3fbdf7=_0x105b4f;return Math['random']()[_0x3fbdf7(0x22f)](0x24)[_0x3fbdf7(0x195)](0x2,0x8);}k[_0x105b4f(0x19a)]=_0x105b4f(0x1bd);const we={'tag':_0x105b4f(0x223),'attrs':{'xmlns':_0x105b4f(0x1c2),'fill':_0x105b4f(0x216),'viewBox':_0x105b4f(0x1eb),'width':_0x105b4f(0x1ad),'height':_0x105b4f(0x1ad)},'children':[{'tag':_0x105b4f(0x1a1),'attrs':{'fill':_0x105b4f(0x229),'d':_0x105b4f(0x1b3)}},{'tag':'path','attrs':{'fill':_0x105b4f(0x229),'d':_0x105b4f(0x1e4),'fillRule':_0x105b4f(0x1f7),'clipRule':_0x105b4f(0x1f7)}}]},W=_0x4e5534(function(_0x1d92a2,_0x15aa4d){const _0x1c883a=_0x105b4f;return _0x2c90b5(k,Object[_0x1c883a(0x1fd)]({},_0x1d92a2,{'id':_0x1c883a(0x1b1),'ref':_0x15aa4d,'icon':we}));});W[_0x105b4f(0x19a)]=_0x105b4f(0x1d8);class L extends _0x19c5fe{constructor(){const _0x112e80=_0x105b4f;super(...arguments),u(this,_0x112e80(0x1d6),new Set()),u(this,'_reporters',new Set());}[_0x105b4f(0x215)](_0x835e58){const _0x4477b4=_0x105b4f;return this[_0x4477b4(0x1d6)][_0x4477b4(0x1fa)](_0x835e58),_0x2f41f0(()=>this['_sharedOperations']['delete'](_0x835e58));}[_0x105b4f(0x1e5)](_0x4a3df0){const _0x1d81b4=_0x105b4f;return this[_0x1d81b4(0x1c5)][_0x1d81b4(0x1fa)](_0x4a3df0),_0x2f41f0(()=>this[_0x1d81b4(0x1c5)][_0x1d81b4(0x23d)](_0x4a3df0));}[_0x105b4f(0x235)](_0x38ea69){const _0x1430d9=_0x105b4f;return this[_0x1430d9(0x1d6)]['has'](_0x38ea69);}[_0x105b4f(0x21f)](_0x4c130e){const _0x827315=_0x105b4f;return Array['from'](this[_0x827315(0x1c5)])['map'](_0x320bfe=>_0x320bfe(_0x4c130e));}}var Ne=Object[_0x105b4f(0x19c)],Y=(_0x18595c,_0x5c0b4a,_0x50b15e,_0xc7cae9)=>{const _0x2d14e4=_0x105b4f;for(var _0x3799f8=_0xc7cae9>0x1?void 0x0:_0xc7cae9?Ne(_0x5c0b4a,_0x50b15e):_0x5c0b4a,_0x3dcda3=_0x18595c[_0x2d14e4(0x1c4)]-0x1,_0x4db411;_0x3dcda3>=0x0;_0x3dcda3--)(_0x4db411=_0x18595c[_0x3dcda3])&&(_0x3799f8=_0x4db411(_0x3799f8)||_0x3799f8);return _0x3799f8;},_=(_0x27f62d,_0x278db7)=>(_0x4b1b12,_0x54d1cb)=>_0x278db7(_0x4b1b12,_0x54d1cb,_0x27f62d);let S=class extends _0x34eb50{constructor(_0xb583bf,_0x4480d9,_0x327328){const _0x3a4e0c=_0x105b4f;super(),u(this,_0x3a4e0c(0x226),new Map()),(this['_univerInstanceService']=_0xb583bf,this[_0x3a4e0c(0x1aa)]=_0x4480d9,this[_0x3a4e0c(0x19b)]=_0x327328,this['_init']());}async['getLiveShareCoordinator'](_0x162e45){const _0x1297d7=_0x105b4f;return this[_0x1297d7(0x226)]['has'](_0x162e45)||await this[_0x1297d7(0x22a)](_0x162e45),this[_0x1297d7(0x226)][_0x1297d7(0x228)](_0x162e45);}['getLiveShareCoordinatorSync'](_0x5be43b){const _0x27a61c=_0x105b4f;var _0x28abce;return(_0x28abce=this[_0x27a61c(0x226)][_0x27a61c(0x228)](_0x5be43b))!=null?_0x28abce:null;}[_0x105b4f(0x1ba)](){const _0x55a1dd=_0x105b4f;this['_univerInstanceService'][_0x55a1dd(0x1c1)](_0x122c76[_0x55a1dd(0x203)])[_0x55a1dd(0x1bf)](_0x56a21e(this[_0x55a1dd(0x222)]))[_0x55a1dd(0x221)](async _0x40c9ee=>{const _0x4e61a1=_0x55a1dd,_0x22b9bf=_0x40c9ee[_0x4e61a1(0x23b)]();this['_entities'][_0x4e61a1(0x1d0)](_0x22b9bf)||this[_0x4e61a1(0x22a)](_0x22b9bf);}),this[_0x55a1dd(0x1c7)][_0x55a1dd(0x237)](_0x122c76[_0x55a1dd(0x203)])['pipe'](_0x56a21e(this['dispose$']))[_0x55a1dd(0x221)](_0x1904f2=>{const _0x27a46e=_0x55a1dd,_0xb6d5ff=_0x1904f2[_0x27a46e(0x23b)](),_0x3825a4=this[_0x27a46e(0x226)][_0x27a46e(0x228)](_0xb6d5ff);_0x3825a4==null||_0x3825a4['dispose']();});}async[_0x105b4f(0x22a)](_0x2efe1d){const _0xae3cb7=_0x105b4f,_0x5aeec5=await this['_collabSessionService']['requireSession'](_0x2efe1d),_0x4486d8=this[_0xae3cb7(0x1aa)][_0xae3cb7(0x1ea)](N,_0x2efe1d,_0x5aeec5);return _0x4486d8[_0xae3cb7(0x1cf)](),this[_0xae3cb7(0x226)][_0xae3cb7(0x239)](_0x2efe1d,_0x4486d8),_0x4486d8;}};S=Y([_(0x0,_0x49d2d0),_(0x1,_0xb4de5c(_0x39091f)),_(0x2,_0xb4de5c(_0xa11808))],S);var c=(_0x2ca91a=>(_0x2ca91a[_0x105b4f(0x1ab)]=_0x105b4f(0x1a7),_0x2ca91a[_0x105b4f(0x1a4)]=_0x105b4f(0x1d2),_0x2ca91a[_0x105b4f(0x1dc)]=_0x105b4f(0x194),_0x2ca91a[_0x105b4f(0x1b9)]=_0x105b4f(0x232),_0x2ca91a['PRESENTING']=_0x105b4f(0x192),_0x2ca91a))(c||{});const Ce=_0x105b4f(0x1dd),De=0xc8;let N=class extends _0x34eb50{constructor(_0x185fa4,_0x8785a7,_0x31829b,_0x56baef,_0xf9d038){const _0x2b68a5=_0x105b4f;super(),u(this,_0x2b68a5(0x198),new _0x2fdabf(_0x2b68a5(0x1d2))),u(this,_0x2b68a5(0x211),this[_0x2b68a5(0x198)][_0x2b68a5(0x19e)]()),u(this,'_init',!0x1),u(this,_0x2b68a5(0x227),null),u(this,_0x2b68a5(0x1c8),null),(this[_0x2b68a5(0x202)]=_0x185fa4,this[_0x2b68a5(0x1ef)]=_0x8785a7,this[_0x2b68a5(0x1d9)]=_0x31829b,this[_0x2b68a5(0x212)]=_0x56baef,this['_commandService']=_0xf9d038);}get[_0x105b4f(0x199)](){const _0x28c3c4=_0x105b4f;return this[_0x28c3c4(0x198)][_0x28c3c4(0x1b8)]();}[_0x105b4f(0x1b6)](){const _0x546d94=_0x105b4f;var _0x4b7cc3;(_0x4b7cc3=this[_0x546d94(0x227)])==null||_0x4b7cc3[_0x546d94(0x1b6)](),this[_0x546d94(0x198)][_0x546d94(0x1df)](_0x546d94(0x1d2)),this[_0x546d94(0x198)][_0x546d94(0x1e1)]();}[_0x105b4f(0x197)](){const _0x3f46ba=_0x105b4f;return this[_0x3f46ba(0x199)];}[_0x105b4f(0x1cf)](){const _0x28fbd3=_0x105b4f;this[_0x28fbd3(0x1ba)]||(this['_init']=!0x0,this[_0x28fbd3(0x1ef)]['sessionStatus$'][_0x28fbd3(0x1bf)](_0x56a21e(this[_0x28fbd3(0x222)]))[_0x28fbd3(0x221)](_0x45450e=>{const _0x41d137=_0x28fbd3;switch(_0x45450e){case _0x155833[_0x41d137(0x1ab)]:this[_0x41d137(0x224)]();break;case _0x155833[_0x41d137(0x205)]:this[_0x41d137(0x1a2)]();break;}}),this[_0x28fbd3(0x1ef)][_0x28fbd3(0x206)][_0x28fbd3(0x1bf)](_0x56a21e(this[_0x28fbd3(0x222)]))[_0x28fbd3(0x221)](_0x21501b=>{const _0x40db3e=_0x28fbd3,{eventID:_0x4a89a2}=_0x21501b;switch(_0x4a89a2){case _0x564ee3[_0x40db3e(0x1bc)]:this['_handleNewHost'](_0x21501b);break;case _0x564ee3[_0x40db3e(0x19d)]:this['_handleOperation'](_0x21501b);break;case _0x564ee3[_0x40db3e(0x1e0)]:this[_0x40db3e(0x1e9)]();break;case _0x564ee3[_0x40db3e(0x21b)]:this[_0x40db3e(0x21d)](_0x21501b);break;}}));}[_0x105b4f(0x193)](){const _0x1757f5=_0x105b4f;this[_0x1757f5(0x1ef)][_0x1757f5(0x1bb)]({'eventID':_0x564ee3[_0x1757f5(0x210)],'data':{'unitID':this[_0x1757f5(0x202)],'userID':this[_0x1757f5(0x1ef)][_0x1757f5(0x1e7)]()}},this[_0x1757f5(0x202)]);}[_0x105b4f(0x1ca)](){const _0x358fbe=_0x105b4f;this[_0x358fbe(0x199)]===_0x358fbe(0x192)&&(this[_0x358fbe(0x198)][_0x358fbe(0x1df)](_0x358fbe(0x1d2)),this[_0x358fbe(0x1ef)][_0x358fbe(0x1bb)]({'eventID':_0x564ee3[_0x358fbe(0x1e0)],'data':{'unitID':this[_0x358fbe(0x202)]}},this[_0x358fbe(0x202)]));}[_0x105b4f(0x217)](){const _0x4c5053=_0x105b4f;this[_0x4c5053(0x199)]==='not-following'&&(this['_status$'][_0x4c5053(0x1df)](_0x4c5053(0x194)),this[_0x4c5053(0x1ac)]());}[_0x105b4f(0x233)](){const _0x207bb2=_0x105b4f;this[_0x207bb2(0x199)]==='following'&&this[_0x207bb2(0x1db)]();}[_0x105b4f(0x1f2)](_0x258b83){const _0x3cc256=_0x105b4f,{presenter:_0x7afcbf}=_0x258b83[_0x3cc256(0x1a9)],_0x2efc6d=this['_collabSession'][_0x3cc256(0x1e7)]();this[_0x3cc256(0x1c8)]=_0x7afcbf,_0x7afcbf===_0x2efc6d?(this['_stopFollowing'](),this[_0x3cc256(0x1e6)]()):this[_0x3cc256(0x199)]!==_0x3cc256(0x232)&&(this[_0x3cc256(0x1f5)](),this[_0x3cc256(0x1ac)]());}[_0x105b4f(0x196)](){const _0x47edfb=_0x105b4f,_0x136365={'eventID':_0x564ee3[_0x47edfb(0x1be)]};this['_collabSession'][_0x47edfb(0x1bb)](_0x136365,this[_0x47edfb(0x202)]);}['_handleTerminate'](){const _0x2f3a3b=_0x105b4f;this[_0x2f3a3b(0x1c8)]=null,this[_0x2f3a3b(0x199)]!==_0x2f3a3b(0x192)&&this[_0x2f3a3b(0x1cc)]();}[_0x105b4f(0x21d)](_0x250de6){const _0x5a0456=_0x105b4f;if(this[_0x5a0456(0x199)]==='following'&&this['_presenter']===_0x250de6[_0x5a0456(0x1a9)][_0x5a0456(0x1f0)]){const _0xc47a3c=_0x40078c(_0x250de6[_0x5a0456(0x1a9)])[_0x5a0456(0x1ee)][_0x5a0456(0x207)]()['find'](_0x2167f0=>_0x2167f0['id']===_0xd8595d['id']);if(_0xc47a3c){const _0x87f447=_0xc47a3c[_0x5a0456(0x218)][_0x5a0456(0x1fc)],_0xe57cf7=_0xc47a3c[_0x5a0456(0x218)]['sheet']['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x2e64c1['id'],{'unitId':_0x87f447,'subUnitId':_0xe57cf7},{'fromCollab':!0x0});});}}}[_0x105b4f(0x1e6)](){const _0x39afc7=_0x105b4f;this['_status$']['next'](_0x39afc7(0x192));const _0x35359e=new Map(),_0x298573=this[_0x39afc7(0x227)]=new _0x1ca7f7();_0x298573['add'](_0x2f41f0(()=>{const _0x3ff51f=_0x39afc7;_0x35359e['forEach'](_0x205651=>_0x205651[_0x3ff51f(0x1e1)]()),_0x35359e[_0x3ff51f(0x213)]();})),_0x298573[_0x39afc7(0x1fa)](this[_0x39afc7(0x1ce)][_0x39afc7(0x230)](_0x564bf6=>{const _0x4b54e6=_0x39afc7;var _0x5c1107;if(_0x564bf6[_0x4b54e6(0x23a)]!==_0x2379b5['OPERATION']||!this['_liveShareService'][_0x4b54e6(0x235)](_0x564bf6['id']))return;const {id:_0x563181}=_0x564bf6;let _0x37d666;_0x35359e['has'](_0x563181)?_0x37d666=_0x35359e[_0x4b54e6(0x228)](_0x563181):(_0x37d666=new _0x415a69(),_0x35359e['set'](_0x563181,_0x37d666),_0x37d666[_0x4b54e6(0x1bf)](_0x2c6eb0((_0x5c1107=this[_0x4b54e6(0x1d9)][_0x4b54e6(0x1c6)](Ce))!=null?_0x5c1107:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4bf215=>{const _0x2185e4=_0x4b54e6;this[_0x2185e4(0x1ef)][_0x2185e4(0x1bb)]({'eventID':_0x564ee3['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2185e4(0x202)],'operations':{[_0x4bf215['id']]:{'id':_0x4bf215['id'],'params':JSON[_0x2185e4(0x20b)](_0x4bf215['params'])}}}},this[_0x2185e4(0x202)]);})),_0x37d666[_0x4b54e6(0x1df)](_0x564bf6);})),this['_liveShareService'][_0x39afc7(0x21f)](this[_0x39afc7(0x202)])[_0x39afc7(0x22b)](_0x32ed6a=>this[_0x39afc7(0x1ef)]['send']({'eventID':_0x564ee3[_0x39afc7(0x19d)],'data':{'unitID':this[_0x39afc7(0x202)],'operations':{[_0x32ed6a['id']]:{'id':_0x32ed6a['id'],'params':JSON[_0x39afc7(0x20b)](_0x32ed6a['params'])}}}},this[_0x39afc7(0x202)]));}[_0x105b4f(0x1f5)](){const _0x56783e=_0x105b4f;var _0x509977;this['_status$'][_0x56783e(0x1df)](_0x56783e(0x1d2)),(_0x509977=this[_0x56783e(0x227)])==null||_0x509977[_0x56783e(0x1b6)](),this[_0x56783e(0x227)]=null;}[_0x105b4f(0x1ac)](){const _0x435280=_0x105b4f;var _0x991dee;(_0x991dee=this[_0x435280(0x227)])==null||_0x991dee['dispose'](),this[_0x435280(0x198)]['next']('following');}['_beIdle'](){const _0x1845e5=_0x105b4f;var _0x67b2a6;this[_0x1845e5(0x198)][_0x1845e5(0x1df)](_0x1845e5(0x1d2)),(_0x67b2a6=this[_0x1845e5(0x227)])==null||_0x67b2a6[_0x1845e5(0x1b6)](),this[_0x1845e5(0x227)]=null;}[_0x105b4f(0x1db)](){const _0x239549=_0x105b4f;var _0x4103a3;this[_0x239549(0x198)][_0x239549(0x1df)](_0x239549(0x232)),(_0x4103a3=this[_0x239549(0x227)])==null||_0x4103a3[_0x239549(0x1b6)]();}[_0x105b4f(0x1b5)](_0x3a49cb){const _0x3cac2b=_0x105b4f;if([_0x3cac2b(0x192),_0x3cac2b(0x232),_0x3cac2b(0x1a7)][_0x3cac2b(0x1d4)](this[_0x3cac2b(0x199)])||!_0x3a49cb[_0x3cac2b(0x1a9)]['presenter']||_0x3a49cb['data']['presenter']===this[_0x3cac2b(0x1ef)][_0x3cac2b(0x1e7)]())return;this[_0x3cac2b(0x199)]==='idle'&&this['_startFollowing']();const _0x2e60c5=_0x3a49cb[_0x3cac2b(0x1a9)]['operations'];Object['values'](_0x2e60c5)[_0x3cac2b(0x22b)](_0x111f87=>{const _0xfa675f=_0x3cac2b;this[_0xfa675f(0x1ce)][_0xfa675f(0x1cb)](_0x111f87['id'],_0x111f87[_0xfa675f(0x218)]?JSON[_0xfa675f(0x1ae)](_0x111f87[_0xfa675f(0x218)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x902da0=_0x105b4f;var _0x37cdf6;this[_0x902da0(0x198)][_0x902da0(0x1df)](_0x902da0(0x1a7)),(_0x37cdf6=this[_0x902da0(0x227)])==null||_0x37cdf6[_0x902da0(0x1b6)]();}[_0x105b4f(0x1a2)](){const _0x48ac69=_0x105b4f;this[_0x48ac69(0x198)][_0x48ac69(0x1df)]('idle'),this[_0x48ac69(0x196)]();}};N=Y([_(0x2,_0x162c40),_(0x3,_0xb4de5c(L)),_(0x4,_0x3e5399)],N);function Le(){const _0x38392e=_0x105b4f,_0xeda6f3=_0x3284dd(S),_0x2ca413=_0x3284dd(_0x49d2d0),_0x148d05=_0x36dee3(()=>_0x2ca413[_0x38392e(0x1da)](_0x122c76['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x4d6f57,_0x21cce1]=_0x4e7da4(null),[_0x1220af,_0x1146e6]=_0x4e7da4(c[_0x38392e(0x1a4)]),_0x263fba=_0xf38a0d(null);return _0x5d80fb(()=>(_0x148d05&&_0xeda6f3[_0x38392e(0x1d7)](_0x148d05[_0x38392e(0x23b)]())[_0x38392e(0x1b2)](_0x1a2f64=>{const _0x3cef76=_0x38392e;_0x21cce1(_0x1a2f64),_0x263fba['current']=_0x1a2f64[_0x3cef76(0x211)][_0x3cef76(0x221)](_0x32f005=>{_0x1146e6(_0x32f005);});}),()=>{const _0x3bde3d=_0x38392e;var _0x4e97ea;(_0x4e97ea=_0x263fba[_0x3bde3d(0x1f6)])==null||_0x4e97ea[_0x3bde3d(0x20f)](),_0x263fba['current']=null;}),[_0x148d05,_0xeda6f3]),_0x4d6f57?_0x46e223(_0x26b96d,{'align':_0x38392e(0x204),'disabled':_0x1220af===c[_0x38392e(0x1ab)],'className':_0x38392e(0x1b7),'overlay':_0x46e223(Re,{'status':_0x1220af,'coordinator':_0x4d6f57}),'children':_0x46e223(_0x38392e(0x1a5),{'className':_0x3c8e64('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x1220af===c[_0x38392e(0x1ab)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1220af!==c[_0x38392e(0x1ab)]}),'type':'button','children':_0x46e223(W,{'className':'univer-size-4'})})}):null;}function Re(_0x2f9b59){const _0x1f8106=_0x105b4f,{status:_0xa7e895,coordinator:_0x371e7a}=_0x2f9b59;switch(_0xa7e895){case c[_0x1f8106(0x1a4)]:return _0x46e223($e,{'coordinator':_0x371e7a});case c[_0x1f8106(0x1dc)]:return _0x46e223(xe,{'coordinator':_0x371e7a});case c['NOT_FOLLOWING']:return _0x46e223(Pe,{'coordinator':_0x371e7a});case c['OFFLINE']:return _0x46e223(Te,{});case c[_0x1f8106(0x1e2)]:return _0x46e223(Ae,{'coordinator':_0x371e7a});default:return null;}}function $e(_0xc6d450){const _0x4e0a36=_0x105b4f,{coordinator:_0x3df512}=_0xc6d450;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223('div',{'className':_0x4e0a36(0x201),'children':_0x4e0a36(0x1a6)}),_0x46e223(_0x21597a,{'onClick':()=>_0x3df512[_0x4e0a36(0x193)](),'children':_0x4e0a36(0x225)})]});}function xe(_0x5739f4){const _0x1ab26f=_0x105b4f,{coordinator:_0x5f3e05}=_0x5739f4;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223(_0x1ab26f(0x234),{'className':_0x1ab26f(0x201),'children':_0x1ab26f(0x1a0)}),_0x46e223(_0x21597a,{'onClick':()=>_0x5f3e05[_0x1ab26f(0x233)](),'children':_0x1ab26f(0x23c)})]});}function Pe(_0x1ea74d){const _0xc46fc2=_0x105b4f,{coordinator:_0x52d7ce}=_0x1ea74d;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223(_0xc46fc2(0x234),{'className':_0xc46fc2(0x201),'children':_0xc46fc2(0x1c9)}),_0x46e223(_0x21597a,{'variant':'text','onClick':()=>_0x52d7ce[_0xc46fc2(0x217)](),'children':_0xc46fc2(0x20a)})]});}function _0x4bc3(){const _0x365bfb=['You\x27re\x20following\x20the\x20presenter','path','_handleOnline','1215cccCXK','IDLE','button','Present\x20this\x20document','offline','6GJLmww','data','_injector','OFFLINE','_startFollowing','1em','parse','url(#$1','defineProperty','live-share-icon','then','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','mask','_handleOperation','dispose','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','getValue','NOT_FOLLOWING','_init','send','LIVESHARE_NEW_HOST','UniverIcon','LIVESHARE_FETCH_OPERATIONS','pipe','1066867ONVETv','getTypeOfUnitAdded$','http://www.w3.org/2000/svg','4688hbUvvx','length','_reporters','getConfig','_univerInstanceService','_presenter','You\x27re\x20not\x20following\x20the\x20presenter','stopPresenting','executeCommand','_beIdle','2944430gFiIVp','_commandService','init','has','live-share.config','idle','default','includes','string','_sharedOperations','getLiveShareCoordinator','LiveShareIcon','_configService','getCurrentTypeOfUnit$','_stopFollowing','FOLLOWING','SAME_OPERATION_SHARE_INTERVAL','colorChannel1','next','LIVESHARE_TERMINATE','complete','PRESENTING','use','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','registerInitialStateReporter','_startPresenting','getMemberID','UNIVER_LIVE_SHARE_PLUGIN','_handleTerminate','createInstance','0\x200\x2017\x2017','4291060ietMZS','registerComponent','mutations','_collabSession','memberID','onStarting','_handleNewHost','5987768EuxmaE','defs','_stopPresenting','current','evenodd','fill','You\x27re\x20presenting\x20the\x20document','add','_uiPartsService','unitId','assign','1848528fHxHbJ','onRendered','attrs','univer-mb-3\x20univer-w-full\x20univer-text-sm','_unitID','UNIVER_SHEET','end','ONLINE','event$','reverse','symbol','override','Start\x20following','stringify','map','_config','setConfig','unsubscribe','LIVESHARE_REQUEST_HOST','status$','_liveShareService','clear','tag','registerSharedOperation','none','startFollowing','params','pluginName','defIds','NEW_CHANGESETS','entries','_handleNewChangeSets','1731870ffdTaq','getInitialStates','children','subscribe','dispose$','svg','_handleOffline','Start','_entities','_commandDisposable','get','currentColor','_startLiveShareCoordinator','forEach','idSuffix','replace','_mountLiveShare','toString','onCommandExecuted','xlink:href','not-following','stopFollowing','div','shouldShareOperation','33VnLGcf','getTypeOfUnitDisposed$','7dnmgxV','set','type','getUnitId','Stop\x20following','delete','presenting','tryStartPresenting','following','substring','_fetchOperations','getStatus','_status$','_status','displayName','_collabSessionService','getOwnPropertyDescriptor','LIVESHARE_OPERATION','asObservable','disposeWithMe'];_0x4bc3=function(){return _0x365bfb;};return _0x4bc3();}function Ae(_0x4ec58f){const _0xcd0b7c=_0x105b4f,{coordinator:_0x185c56}=_0x4ec58f;return _0x539ff2(_0x46e9aa,{'children':[_0x46e223(_0xcd0b7c(0x234),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xcd0b7c(0x1f9)}),_0x46e223(_0x21597a,{'variant':_0xcd0b7c(0x1d3),'onClick':()=>_0x185c56[_0xcd0b7c(0x1ca)](),'children':'Stop\x20presenting'})]});}function Te(){return _0x46e223(_0x46e9aa,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x105b4f(0x19c)],He=(_0x255dcd,_0x1a5c41,_0x49d45d,_0x786092)=>{for(var _0x525b14=_0x786092>0x1?void 0x0:_0x786092?Fe(_0x1a5c41,_0x49d45d):_0x1a5c41,_0xd22516=_0x255dcd['length']-0x1,_0x97ffff;_0xd22516>=0x0;_0xd22516--)(_0x97ffff=_0x255dcd[_0xd22516])&&(_0x525b14=_0x97ffff(_0x525b14)||_0x525b14);return _0x525b14;},A=(_0x12b793,_0x47751e)=>(_0x79e905,_0xf24172)=>_0x47751e(_0x79e905,_0xf24172,_0x12b793);let m=class extends _0x19c5fe{constructor(_0xd63cca,_0x3488ea){const _0x2758c8=_0x105b4f;super(),this['_injector']=_0xd63cca,this[_0x2758c8(0x1fb)]=_0x3488ea,this[_0x2758c8(0x22e)]();}[_0x105b4f(0x22e)](){const _0x257e9b=_0x105b4f;this[_0x257e9b(0x19f)](this[_0x257e9b(0x1fb)][_0x257e9b(0x1ed)](_0x2d952e['HEADER_MENU'],()=>_0x5cc7c1(Le,this[_0x257e9b(0x1aa)])));}};m=He([A(0x0,_0xb4de5c(_0x39091f)),A(0x1,_0x1cb32c)],m);const ye=_0x105b4f(0x1d1),T={};var Ue=Object[_0x105b4f(0x19c)],Ve=(_0x353cd4,_0x541fb5,_0x4dbd46,_0x2fff44)=>{const _0x585f2b=_0x105b4f;for(var _0x36e467=_0x2fff44>0x1?void 0x0:_0x2fff44?Ue(_0x541fb5,_0x4dbd46):_0x541fb5,_0x5db4eb=_0x353cd4[_0x585f2b(0x1c4)]-0x1,_0x555916;_0x5db4eb>=0x0;_0x5db4eb--)(_0x555916=_0x353cd4[_0x5db4eb])&&(_0x36e467=_0x555916(_0x36e467)||_0x36e467);return _0x36e467;},je=(_0x86080f,_0x697570)=>(_0x1dd81d,_0x276284)=>_0x697570(_0x1dd81d,_0x276284,_0x86080f);let I=class extends _0x19c5fe{constructor(_0x420fed){const _0x545cda=_0x105b4f;super(),this[_0x545cda(0x212)]=_0x420fed,this[_0x545cda(0x1ba)]();}['_init'](){[_0xba6ce1['id'],_0x105dbb['id'],_0x2e64c1['id']]['forEach'](_0x43d7ad=>{const _0x439df9=_0x2cf0;this['disposeWithMe'](this[_0x439df9(0x212)][_0x439df9(0x215)](_0x43d7ad));});}};I=Ve([je(0x0,_0xb4de5c(L))],I);function _0x2cf0(_0xc200c0,_0x258a0d){_0xc200c0=_0xc200c0-0x192;const _0x4bc32d=_0x4bc3();let _0x2cf084=_0x4bc32d[_0xc200c0];return _0x2cf084;}var Me=Object[_0x105b4f(0x1b0)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x547a47,_0x4d3bcb,_0xd46219)=>_0x4d3bcb in _0x547a47?Me(_0x547a47,_0x4d3bcb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd46219}):_0x547a47[_0x4d3bcb]=_0xd46219,We=(_0x47fd44,_0x58f49e,_0x5e44c1,_0xffcf3a)=>{const _0x3f7eec=_0x105b4f;for(var _0x199bea=_0xffcf3a>0x1?void 0x0:_0xffcf3a?ke(_0x58f49e,_0x5e44c1):_0x58f49e,_0x51af3e=_0x47fd44[_0x3f7eec(0x1c4)]-0x1,_0x3f9398;_0x51af3e>=0x0;_0x51af3e--)(_0x3f9398=_0x47fd44[_0x51af3e])&&(_0x199bea=_0x3f9398(_0x199bea)||_0x199bea);return _0x199bea;},F=(_0x5891e1,_0x324080)=>(_0x36dbcd,_0x5073de)=>_0x324080(_0x36dbcd,_0x5073de,_0x5891e1),B=(_0x165e69,_0x37f9aa,_0xf3451d)=>Ge(_0x165e69,typeof _0x37f9aa!=_0x105b4f(0x208)?_0x37f9aa+'':_0x37f9aa,_0xf3451d);const Ye=_0x105b4f(0x1e8);let b=class extends _0x1ec157{constructor(_0x1de8fd=T,_0x198cd6,_0x12f543){const _0x5d285c=_0x105b4f;super(),this['_config']=_0x1de8fd,this[_0x5d285c(0x1aa)]=_0x198cd6,this[_0x5d285c(0x1d9)]=_0x12f543;const {..._0x11363f}=_0x2a4c60({},T,this['_config']);this[_0x5d285c(0x1d9)][_0x5d285c(0x20e)](ye,_0x11363f);}[_0x105b4f(0x1f1)](){const _0x4a008a=_0x105b4f;_0x47fa09(this[_0x4a008a(0x1aa)],_0x37eaec([[L],[S],[I],[m]],this[_0x4a008a(0x20d)][_0x4a008a(0x209)])),_0x2a81f9(this['_injector'],[[I]]);}[_0x105b4f(0x1ff)](){_0x2a81f9(this['_injector'],[[m]]);}};B(b,_0x105b4f(0x23a),_0x122c76['UNIVER_UNKNOWN']),B(b,_0x105b4f(0x219),Ye),b=We([_0x2510ce(_0x16c8c0),F(0x1,_0xb4de5c(_0x39091f)),F(0x2,_0x162c40)],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 _0x288259=_0x33d3;(function(_0x367953,_0x55dc8c){const _0x5e37f9=_0x33d3,_0x3d88f2=_0x367953();while(!![]){try{const _0x16d529=-parseInt(_0x5e37f9(0x1bd))/0x1*(-parseInt(_0x5e37f9(0x207))/0x2)+-parseInt(_0x5e37f9(0x205))/0x3*(-parseInt(_0x5e37f9(0x200))/0x4)+-parseInt(_0x5e37f9(0x1eb))/0x5+-parseInt(_0x5e37f9(0x21c))/0x6+-parseInt(_0x5e37f9(0x226))/0x7*(parseInt(_0x5e37f9(0x1f4))/0x8)+-parseInt(_0x5e37f9(0x22e))/0x9*(parseInt(_0x5e37f9(0x1d9))/0xa)+parseInt(_0x5e37f9(0x1e0))/0xb*(parseInt(_0x5e37f9(0x1e2))/0xc);if(_0x16d529===_0x55dc8c)break;else _0x3d88f2['push'](_0x3d88f2['shift']());}catch(_0x69295a){_0x3d88f2['push'](_0x3d88f2['shift']());}}}(_0x5f16,0xa95f7));var J=Object[_0x288259(0x231)],K=(_0x455c85,_0x502859,_0x173dc6)=>_0x502859 in _0x455c85?J(_0x455c85,_0x502859,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x173dc6}):_0x455c85[_0x502859]=_0x173dc6,u=(_0x27b4b4,_0x3292f2,_0x36c817)=>K(_0x27b4b4,typeof _0x3292f2!=_0x288259(0x1b0)?_0x3292f2+'':_0x3292f2,_0x36c817);import{Disposable as _0x2f9266,toDisposable as _0x357616,IUniverInstanceService as _0x4b8f0b,Inject as _0x2ccce4,Injector as _0x38a60f,IConfigService as _0x292df9,ICommandService as _0xe319f4,RxDisposable as _0x1e8ae5,UniverInstanceType as _0x374271,DisposableCollection as _0x50ce28,CommandType as _0x419927,DependentOn as _0x553a41,Plugin as _0x3f1d3f,merge as _0x2eff68,registerDependencies as _0x28d75e,mergeOverrideWithDependencies as _0x965e10,touchDependencies as _0x5b4615}from'@univerjs/core';import{useDependency as _0x2cf9c5,useObservable as _0x57d739,IUIPartsService as _0x39de93,BuiltInUIPart as _0x367153,connectInjector as _0x4d0457}from'@univerjs/ui';import{jsx as _0x120c4b,jsxs as _0x18b69b,Fragment as _0x182287}from'react/jsx-runtime';import{Dropdown as _0x1c59e1,clsx as _0x4affc9,Button as _0x22c645}from'@univerjs/design';function _0x33d3(_0x33005b,_0x44790f){_0x33005b=_0x33005b-0x18f;const _0x5f1636=_0x5f16();let _0x33d3b9=_0x5f1636[_0x33005b];return _0x33d3b9;}import{useRef as _0x15d3aa,createElement as _0x350b00,forwardRef as _0xa9da7e,useState as _0x223824,useEffect as _0x365662}from'react';import{CollaborationEvent as _0x555910,parseProtocolChangeset as _0x3b7300}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x8e0700,SessionStatus as _0x2d2d85,UniverCollaborationClientPlugin as _0x5d8e2c}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5d46de,SetWorksheetActiveOperation as _0x3493cd}from'@univerjs/sheets';import{BehaviorSubject as _0x2fd282,Subject as _0x514c47}from'rxjs';import{takeUntil as _0x29691d,throttleTime as _0x4434ac}from'rxjs/operators';import{SetZoomRatioOperation as _0xc86880,SetScrollOperation as _0x184f42}from'@univerjs/sheets-ui';function k({ref:_0x33eda2,..._0x55b604}){const _0x44e87b=_0x288259,{icon:_0x10d8f6,id:_0x17c6ae,className:_0xbde572,extend:_0x146d76,..._0xd434da}=_0x55b604,_0x3217d1=(_0x44e87b(0x22b)+_0x17c6ae+'\x20'+(_0xbde572||''))[_0x44e87b(0x1bc)](),_0x3db8d7=_0x15d3aa('_'+Oe());return G(_0x10d8f6,''+_0x17c6ae,{'defIds':_0x10d8f6[_0x44e87b(0x1e9)],'idSuffix':_0x3db8d7[_0x44e87b(0x1a2)]},{'ref':_0x33eda2,'className':_0x3217d1,..._0xd434da},_0x146d76);}function G(_0xf936be,_0xefb038,_0x4d4633,_0x27420a,_0x2f6dd7){const _0x5a56fa=_0x288259;return _0x350b00(_0xf936be['tag'],{'key':_0xefb038,...be(_0xf936be,_0x4d4633,_0x2f6dd7),..._0x27420a},(Ee(_0xf936be,_0x4d4633)[_0x5a56fa(0x1c3)]||[])[_0x5a56fa(0x208)]((_0x4c5d5c,_0x18cc97)=>G(_0x4c5d5c,_0xefb038+'-'+_0xf936be[_0x5a56fa(0x1d3)]+'-'+_0x18cc97,_0x4d4633,void 0x0,_0x2f6dd7)));}function be(_0x1cc91b,_0x585765,_0x3cefc0){const _0x4cdb9e=_0x288259,_0x1ed481={..._0x1cc91b[_0x4cdb9e(0x20c)]};_0x3cefc0!=null&&_0x3cefc0['colorChannel1']&&_0x1ed481[_0x4cdb9e(0x1f9)]===_0x4cdb9e(0x1d5)&&(_0x1ed481[_0x4cdb9e(0x1f9)]=_0x3cefc0[_0x4cdb9e(0x1d5)]),_0x1cc91b[_0x4cdb9e(0x1d3)]===_0x4cdb9e(0x1b1)&&_0x1ed481['id']&&(_0x1ed481['id']=_0x1ed481['id']+_0x585765[_0x4cdb9e(0x233)]),Object[_0x4cdb9e(0x1a7)](_0x1ed481)[_0x4cdb9e(0x1b8)](([_0x7ec95c,_0x248034])=>{const _0x56f04a=_0x4cdb9e;_0x7ec95c==='mask'&&typeof _0x248034==_0x56f04a(0x1c6)&&(_0x1ed481[_0x7ec95c]=_0x248034[_0x56f04a(0x20a)](/url\(#(.*)\)/,_0x56f04a(0x1a3)+_0x585765[_0x56f04a(0x233)]+')'));});const {defIds:_0x4e730b}=_0x585765;return!_0x4e730b||_0x4e730b[_0x4cdb9e(0x1fe)]===0x0||(_0x1cc91b[_0x4cdb9e(0x1d3)]===_0x4cdb9e(0x234)&&_0x1ed481[_0x4cdb9e(0x219)]&&(_0x1ed481[_0x4cdb9e(0x219)]=_0x1ed481[_0x4cdb9e(0x219)]+_0x585765['idSuffix']),Object[_0x4cdb9e(0x1a7)](_0x1ed481)['forEach'](([_0x39a603,_0x5056a2])=>{const _0x39c72f=_0x4cdb9e;typeof _0x5056a2==_0x39c72f(0x1c6)&&(_0x1ed481[_0x39a603]=_0x5056a2[_0x39c72f(0x20a)](/url\(#(.*)\)/,_0x39c72f(0x1a3)+_0x585765['idSuffix']+')'));})),_0x1ed481;}function Ee(_0x3f4c76,_0x22017d){const _0x17406c=_0x288259;var _0x44c032;const {defIds:_0x352459}=_0x22017d;return!_0x352459||_0x352459[_0x17406c(0x1fe)]===0x0?_0x3f4c76:_0x3f4c76[_0x17406c(0x1d3)]===_0x17406c(0x220)&&((_0x44c032=_0x3f4c76['children'])!=null&&_0x44c032[_0x17406c(0x1fe)])?{..._0x3f4c76,'children':_0x3f4c76[_0x17406c(0x1c3)][_0x17406c(0x208)](_0x1ff9b0=>typeof _0x1ff9b0[_0x17406c(0x20c)]['id']==_0x17406c(0x1c6)&&_0x352459&&_0x352459['includes'](_0x1ff9b0['attrs']['id'])?{..._0x1ff9b0,'attrs':{..._0x1ff9b0[_0x17406c(0x20c)],'id':_0x1ff9b0[_0x17406c(0x20c)]['id']+_0x22017d[_0x17406c(0x233)]}}:_0x1ff9b0)}:_0x3f4c76;}function Oe(){const _0x25377a=_0x288259;return Math['random']()[_0x25377a(0x211)](0x24)[_0x25377a(0x191)](0x2,0x8);}k[_0x288259(0x197)]='UniverIcon';const we={'tag':_0x288259(0x210),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x288259(0x1b5),'width':_0x288259(0x1da),'height':_0x288259(0x1da)},'children':[{'tag':_0x288259(0x20d),'attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x288259(0x20d),'attrs':{'fill':'currentColor','d':_0x288259(0x237),'fillRule':'evenodd','clipRule':_0x288259(0x204)}}]},W=_0xa9da7e(function(_0x416c25,_0x1f2fc3){const _0xb17fc8=_0x288259;return _0x350b00(k,Object[_0xb17fc8(0x1a9)]({},_0x416c25,{'id':_0xb17fc8(0x20b),'ref':_0x1f2fc3,'icon':we}));});W['displayName']=_0x288259(0x1e6);class L extends _0x2f9266{constructor(){const _0x37307d=_0x288259;super(...arguments),u(this,_0x37307d(0x236),new Set()),u(this,_0x37307d(0x1ec),new Set());}[_0x288259(0x190)](_0x31dcd7){const _0x4557c4=_0x288259;return this[_0x4557c4(0x236)][_0x4557c4(0x18f)](_0x31dcd7),_0x357616(()=>this[_0x4557c4(0x236)][_0x4557c4(0x1ef)](_0x31dcd7));}['registerInitialStateReporter'](_0x3b3ed7){const _0xa54d35=_0x288259;return this[_0xa54d35(0x1ec)]['add'](_0x3b3ed7),_0x357616(()=>this[_0xa54d35(0x1ec)]['delete'](_0x3b3ed7));}[_0x288259(0x198)](_0x4630a5){const _0x5abafa=_0x288259;return this[_0x5abafa(0x236)][_0x5abafa(0x1aa)](_0x4630a5);}[_0x288259(0x1f8)](_0x2fa184){const _0x2e6d01=_0x288259;return Array[_0x2e6d01(0x19d)](this[_0x2e6d01(0x1ec)])[_0x2e6d01(0x208)](_0x8372f0=>_0x8372f0(_0x2fa184));}}var Ne=Object[_0x288259(0x218)],Y=(_0x56ca39,_0x5df9cb,_0x33643a,_0x3f65ad)=>{const _0x47250e=_0x288259;for(var _0x5ed2c6=_0x3f65ad>0x1?void 0x0:_0x3f65ad?Ne(_0x5df9cb,_0x33643a):_0x5df9cb,_0x2b25b5=_0x56ca39[_0x47250e(0x1fe)]-0x1,_0x18a69f;_0x2b25b5>=0x0;_0x2b25b5--)(_0x18a69f=_0x56ca39[_0x2b25b5])&&(_0x5ed2c6=_0x18a69f(_0x5ed2c6)||_0x5ed2c6);return _0x5ed2c6;},_=(_0x76c072,_0xf10aa)=>(_0x12cd8e,_0x30a995)=>_0xf10aa(_0x12cd8e,_0x30a995,_0x76c072);let S=class extends _0x1e8ae5{constructor(_0x3d6566,_0x17bc9c,_0x3a69ac){const _0x2d6e8d=_0x288259;super(),u(this,_0x2d6e8d(0x229),new Map()),(this[_0x2d6e8d(0x1e8)]=_0x3d6566,this['_injector']=_0x17bc9c,this[_0x2d6e8d(0x1bb)]=_0x3a69ac,this['_init']());}async['getLiveShareCoordinator'](_0x51818e){const _0x2ae6e6=_0x288259;return this[_0x2ae6e6(0x229)][_0x2ae6e6(0x1aa)](_0x51818e)||await this[_0x2ae6e6(0x1d8)](_0x51818e),this[_0x2ae6e6(0x229)][_0x2ae6e6(0x20f)](_0x51818e);}[_0x288259(0x1be)](_0x978332){const _0x313c8c=_0x288259;var _0x2cf19d;return(_0x2cf19d=this[_0x313c8c(0x229)][_0x313c8c(0x20f)](_0x978332))!=null?_0x2cf19d:null;}[_0x288259(0x1c0)](){const _0x5b6c4b=_0x288259;this[_0x5b6c4b(0x1e8)][_0x5b6c4b(0x1a0)](_0x374271[_0x5b6c4b(0x1d6)])['pipe'](_0x29691d(this['dispose$']))[_0x5b6c4b(0x1d0)](async _0x404cb9=>{const _0x59f579=_0x5b6c4b,_0x201f4d=_0x404cb9['getUnitId']();this[_0x59f579(0x229)][_0x59f579(0x1aa)](_0x201f4d)||this[_0x59f579(0x1d8)](_0x201f4d);}),this[_0x5b6c4b(0x1e8)][_0x5b6c4b(0x1db)](_0x374271[_0x5b6c4b(0x1d6)])[_0x5b6c4b(0x1fb)](_0x29691d(this[_0x5b6c4b(0x21b)]))['subscribe'](_0xc29fa9=>{const _0x4578e9=_0x5b6c4b,_0x443200=_0xc29fa9[_0x4578e9(0x1bf)](),_0x3c81a4=this[_0x4578e9(0x229)][_0x4578e9(0x20f)](_0x443200);_0x3c81a4==null||_0x3c81a4[_0x4578e9(0x1fd)]();});}async['_startLiveShareCoordinator'](_0x3a7fd0){const _0x464826=_0x288259,_0x3fce9c=await this[_0x464826(0x1bb)][_0x464826(0x1f1)](_0x3a7fd0),_0x235213=this[_0x464826(0x1dd)][_0x464826(0x235)](N,_0x3a7fd0,_0x3fce9c);return _0x235213[_0x464826(0x1e5)](),this[_0x464826(0x229)][_0x464826(0x1a8)](_0x3a7fd0,_0x235213),_0x235213;}};S=Y([_(0x0,_0x4b8f0b),_(0x1,_0x2ccce4(_0x38a60f)),_(0x2,_0x2ccce4(_0x8e0700))],S);var c=(_0x4bbe1b=>(_0x4bbe1b[_0x288259(0x1ad)]=_0x288259(0x194),_0x4bbe1b[_0x288259(0x213)]=_0x288259(0x232),_0x4bbe1b[_0x288259(0x202)]='following',_0x4bbe1b[_0x288259(0x21a)]='not-following',_0x4bbe1b['PRESENTING']=_0x288259(0x222),_0x4bbe1b))(c||{});const Ce=_0x288259(0x228),De=0xc8;let N=class extends _0x1e8ae5{constructor(_0x238eb6,_0x534c6c,_0x14e14d,_0x57f55e,_0x161068){const _0x444c30=_0x288259;super(),u(this,_0x444c30(0x1ee),new _0x2fd282(_0x444c30(0x232))),u(this,_0x444c30(0x223),this['_status$'][_0x444c30(0x1af)]()),u(this,'_init',!0x1),u(this,_0x444c30(0x1d4),null),u(this,_0x444c30(0x1f0),null),(this[_0x444c30(0x1cb)]=_0x238eb6,this[_0x444c30(0x203)]=_0x534c6c,this['_configService']=_0x14e14d,this['_liveShareService']=_0x57f55e,this[_0x444c30(0x1ba)]=_0x161068);}get[_0x288259(0x1c8)](){const _0x4a7690=_0x288259;return this[_0x4a7690(0x1ee)][_0x4a7690(0x225)]();}[_0x288259(0x1fd)](){const _0xec0031=_0x288259;var _0x559285;(_0x559285=this[_0xec0031(0x1d4)])==null||_0x559285[_0xec0031(0x1fd)](),this[_0xec0031(0x1ee)]['next']('idle'),this[_0xec0031(0x1ee)][_0xec0031(0x1d7)]();}[_0x288259(0x1ac)](){return this['_status'];}['init'](){const _0x30d302=_0x288259;this['_init']||(this[_0x30d302(0x1c0)]=!0x0,this[_0x30d302(0x203)][_0x30d302(0x195)][_0x30d302(0x1fb)](_0x29691d(this[_0x30d302(0x21b)]))['subscribe'](_0x367bef=>{const _0x2d0341=_0x30d302;switch(_0x367bef){case _0x2d2d85['OFFLINE']:this[_0x2d0341(0x1b9)]();break;case _0x2d2d85[_0x2d0341(0x1ce)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x30d302(0x224)]['pipe'](_0x29691d(this[_0x30d302(0x21b)]))[_0x30d302(0x1d0)](_0x103413=>{const _0x1f1aa5=_0x30d302,{eventID:_0x5d036d}=_0x103413;switch(_0x5d036d){case _0x555910[_0x1f1aa5(0x21e)]:this['_handleNewHost'](_0x103413);break;case _0x555910[_0x1f1aa5(0x1f5)]:this[_0x1f1aa5(0x221)](_0x103413);break;case _0x555910[_0x1f1aa5(0x1cc)]:this['_handleTerminate']();break;case _0x555910[_0x1f1aa5(0x1fc)]:this[_0x1f1aa5(0x212)](_0x103413);break;}}));}[_0x288259(0x1b7)](){const _0x1f01ce=_0x288259;this[_0x1f01ce(0x203)][_0x1f01ce(0x201)]({'eventID':_0x555910[_0x1f01ce(0x1a4)],'data':{'unitID':this['_unitID'],'userID':this[_0x1f01ce(0x203)]['getMemberID']()}},this[_0x1f01ce(0x1cb)]);}[_0x288259(0x1df)](){const _0x593f8a=_0x288259;this['_status']===_0x593f8a(0x222)&&(this[_0x593f8a(0x1ee)]['next']('idle'),this[_0x593f8a(0x203)][_0x593f8a(0x201)]({'eventID':_0x555910[_0x593f8a(0x1cc)],'data':{'unitID':this[_0x593f8a(0x1cb)]}},this[_0x593f8a(0x1cb)]));}[_0x288259(0x20e)](){const _0x17c16f=_0x288259;this[_0x17c16f(0x1c8)]===_0x17c16f(0x209)&&(this[_0x17c16f(0x1ee)][_0x17c16f(0x1dc)]('following'),this[_0x17c16f(0x22f)]());}[_0x288259(0x216)](){const _0x56fe15=_0x288259;this['_status']===_0x56fe15(0x1ea)&&this[_0x56fe15(0x22a)]();}[_0x288259(0x206)](_0x36c959){const _0x5eb3aa=_0x288259,{presenter:_0x2ed9c5}=_0x36c959['data'],_0xc72ae8=this[_0x5eb3aa(0x203)][_0x5eb3aa(0x1cf)]();this[_0x5eb3aa(0x1f0)]=_0x2ed9c5,_0x2ed9c5===_0xc72ae8?(this[_0x5eb3aa(0x22a)](),this[_0x5eb3aa(0x193)]()):this['_status']!=='not-following'&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x288259(0x214)](){const _0x4f0dec=_0x288259,_0x32c37a={'eventID':_0x555910[_0x4f0dec(0x21f)]};this['_collabSession'][_0x4f0dec(0x201)](_0x32c37a,this[_0x4f0dec(0x1cb)]);}[_0x288259(0x239)](){const _0x153376=_0x288259;this[_0x153376(0x1f0)]=null,this[_0x153376(0x1c8)]!=='presenting'&&this['_beIdle']();}['_handleNewChangeSets'](_0x36e0ca){const _0x25f2a5=_0x288259;if(this['_status']===_0x25f2a5(0x1ea)&&this[_0x25f2a5(0x1f0)]===_0x36e0ca[_0x25f2a5(0x1ed)][_0x25f2a5(0x19c)]){const _0x5ba717=_0x3b7300(_0x36e0ca[_0x25f2a5(0x1ed)])['mutations'][_0x25f2a5(0x1e1)]()['find'](_0x459aad=>_0x459aad['id']===_0x5d46de['id']);if(_0x5ba717){const _0x307f94=_0x5ba717[_0x25f2a5(0x1f7)][_0x25f2a5(0x23b)],_0x2908ca=_0x5ba717['params'][_0x25f2a5(0x1fa)]['id'];setTimeout(()=>{const _0xf95204=_0x25f2a5;this[_0xf95204(0x1ba)][_0xf95204(0x1c5)](_0x3493cd['id'],{'unitId':_0x307f94,'subUnitId':_0x2908ca},{'fromCollab':!0x0});});}}}[_0x288259(0x193)](){const _0x1c3e27=_0x288259;this[_0x1c3e27(0x1ee)][_0x1c3e27(0x1dc)](_0x1c3e27(0x222));const _0x478f22=new Map(),_0x275e18=this[_0x1c3e27(0x1d4)]=new _0x50ce28();_0x275e18[_0x1c3e27(0x18f)](_0x357616(()=>{const _0x40fcbc=_0x1c3e27;_0x478f22['forEach'](_0x25d5bb=>_0x25d5bb[_0x40fcbc(0x1d7)]()),_0x478f22[_0x40fcbc(0x1a5)]();})),_0x275e18[_0x1c3e27(0x18f)](this[_0x1c3e27(0x1ba)][_0x1c3e27(0x230)](_0x9c0a59=>{const _0x22527c=_0x1c3e27;var _0x190d6c;if(_0x9c0a59[_0x22527c(0x1c1)]!==_0x419927['OPERATION']||!this[_0x22527c(0x1b3)]['shouldShareOperation'](_0x9c0a59['id']))return;const {id:_0x60363b}=_0x9c0a59;let _0x33d8b6;_0x478f22[_0x22527c(0x1aa)](_0x60363b)?_0x33d8b6=_0x478f22[_0x22527c(0x20f)](_0x60363b):(_0x33d8b6=new _0x514c47(),_0x478f22['set'](_0x60363b,_0x33d8b6),_0x33d8b6[_0x22527c(0x1fb)](_0x4434ac((_0x190d6c=this[_0x22527c(0x238)][_0x22527c(0x22c)](Ce))!=null?_0x190d6c:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x26e65d=>{const _0xeecc7a=_0x22527c;this['_collabSession'][_0xeecc7a(0x201)]({'eventID':_0x555910[_0xeecc7a(0x1f5)],'data':{'unitID':this[_0xeecc7a(0x1cb)],'operations':{[_0x26e65d['id']]:{'id':_0x26e65d['id'],'params':JSON[_0xeecc7a(0x1d1)](_0x26e65d[_0xeecc7a(0x1f7)])}}}},this[_0xeecc7a(0x1cb)]);})),_0x33d8b6[_0x22527c(0x1dc)](_0x9c0a59);})),this[_0x1c3e27(0x1b3)][_0x1c3e27(0x1f8)](this[_0x1c3e27(0x1cb)])[_0x1c3e27(0x1b8)](_0x4ce92a=>this[_0x1c3e27(0x203)][_0x1c3e27(0x201)]({'eventID':_0x555910['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x4ce92a['id']]:{'id':_0x4ce92a['id'],'params':JSON['stringify'](_0x4ce92a[_0x1c3e27(0x1f7)])}}}},this[_0x1c3e27(0x1cb)]));}[_0x288259(0x1b4)](){const _0x4665c0=_0x288259;var _0x24c72b;this[_0x4665c0(0x1ee)][_0x4665c0(0x1dc)](_0x4665c0(0x232)),(_0x24c72b=this[_0x4665c0(0x1d4)])==null||_0x24c72b[_0x4665c0(0x1fd)](),this[_0x4665c0(0x1d4)]=null;}['_startFollowing'](){const _0x19b962=_0x288259;var _0x33d342;(_0x33d342=this['_commandDisposable'])==null||_0x33d342['dispose'](),this[_0x19b962(0x1ee)][_0x19b962(0x1dc)](_0x19b962(0x1ea));}[_0x288259(0x1f6)](){const _0x3b9b94=_0x288259;var _0xcbeccb;this[_0x3b9b94(0x1ee)][_0x3b9b94(0x1dc)](_0x3b9b94(0x232)),(_0xcbeccb=this[_0x3b9b94(0x1d4)])==null||_0xcbeccb[_0x3b9b94(0x1fd)](),this[_0x3b9b94(0x1d4)]=null;}[_0x288259(0x22a)](){const _0x5da14b=_0x288259;var _0x4c272e;this[_0x5da14b(0x1ee)][_0x5da14b(0x1dc)](_0x5da14b(0x209)),(_0x4c272e=this[_0x5da14b(0x1d4)])==null||_0x4c272e[_0x5da14b(0x1fd)]();}[_0x288259(0x221)](_0xafb528){const _0x31a66d=_0x288259;if([_0x31a66d(0x222),_0x31a66d(0x209),_0x31a66d(0x194)][_0x31a66d(0x227)](this[_0x31a66d(0x1c8)])||!_0xafb528[_0x31a66d(0x1ed)]['presenter']||_0xafb528[_0x31a66d(0x1ed)]['presenter']===this[_0x31a66d(0x203)][_0x31a66d(0x1cf)]())return;this[_0x31a66d(0x1c8)]==='idle'&&this['_startFollowing']();const _0x59c778=_0xafb528['data']['operations'];Object[_0x31a66d(0x215)](_0x59c778)['forEach'](_0x4d58aa=>{const _0x432061=_0x31a66d;this[_0x432061(0x1ba)]['executeCommand'](_0x4d58aa['id'],_0x4d58aa[_0x432061(0x1f7)]?JSON[_0x432061(0x1e4)](_0x4d58aa['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x3754b6=_0x288259;var _0x10b501;this[_0x3754b6(0x1ee)][_0x3754b6(0x1dc)](_0x3754b6(0x194)),(_0x10b501=this[_0x3754b6(0x1d4)])==null||_0x10b501[_0x3754b6(0x1fd)]();}[_0x288259(0x22d)](){const _0x3c96ba=_0x288259;this['_status$'][_0x3c96ba(0x1dc)](_0x3c96ba(0x232)),this[_0x3c96ba(0x214)]();}};N=Y([_(0x2,_0x292df9),_(0x3,_0x2ccce4(L)),_(0x4,_0xe319f4)],N);function Le(){const _0x5dfa7e=_0x288259,_0x103b8e=_0x2cf9c5(S),_0x5c7e87=_0x2cf9c5(_0x4b8f0b),_0x433543=_0x57d739(()=>_0x5c7e87['getCurrentTypeOfUnit$'](_0x374271[_0x5dfa7e(0x1d6)]),void 0x0,!0x1,[]),[_0x5ec586,_0x3f6800]=_0x223824(null),[_0x56a1cf,_0x49f542]=_0x223824(c[_0x5dfa7e(0x213)]),_0x58f772=_0x15d3aa(null);return _0x365662(()=>(_0x433543&&_0x103b8e[_0x5dfa7e(0x1f3)](_0x433543['getUnitId']())[_0x5dfa7e(0x1a6)](_0x5a5bdc=>{const _0x1814b1=_0x5dfa7e;_0x3f6800(_0x5a5bdc),_0x58f772[_0x1814b1(0x1a2)]=_0x5a5bdc['status$'][_0x1814b1(0x1d0)](_0x108aaf=>{_0x49f542(_0x108aaf);});}),()=>{const _0x6491d2=_0x5dfa7e;var _0x1e20f4;(_0x1e20f4=_0x58f772[_0x6491d2(0x1a2)])==null||_0x1e20f4[_0x6491d2(0x1c7)](),_0x58f772[_0x6491d2(0x1a2)]=null;}),[_0x433543,_0x103b8e]),_0x5ec586?_0x120c4b(_0x1c59e1,{'align':_0x5dfa7e(0x1ab),'disabled':_0x56a1cf===c[_0x5dfa7e(0x1ad)],'className':_0x5dfa7e(0x192),'overlay':_0x120c4b(Re,{'status':_0x56a1cf,'coordinator':_0x5ec586}),'children':_0x120c4b('button',{'className':_0x4affc9('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x56a1cf===c[_0x5dfa7e(0x1ad)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x56a1cf!==c[_0x5dfa7e(0x1ad)]}),'type':'button','children':_0x120c4b(W,{'className':_0x5dfa7e(0x1ca)})})}):null;}function Re(_0x5670a2){const _0x4afaf8=_0x288259,{status:_0x109fa5,coordinator:_0x27ab16}=_0x5670a2;switch(_0x109fa5){case c[_0x4afaf8(0x213)]:return _0x120c4b($e,{'coordinator':_0x27ab16});case c[_0x4afaf8(0x202)]:return _0x120c4b(xe,{'coordinator':_0x27ab16});case c[_0x4afaf8(0x21a)]:return _0x120c4b(Pe,{'coordinator':_0x27ab16});case c[_0x4afaf8(0x1ad)]:return _0x120c4b(Te,{});case c[_0x4afaf8(0x217)]:return _0x120c4b(Ae,{'coordinator':_0x27ab16});default:return null;}}function $e(_0x377b24){const _0x5cb217=_0x288259,{coordinator:_0x30ecda}=_0x377b24;return _0x18b69b(_0x182287,{'children':[_0x120c4b(_0x5cb217(0x1b6),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5cb217(0x1e3)}),_0x120c4b(_0x22c645,{'onClick':()=>_0x30ecda['tryStartPresenting'](),'children':'Start'})]});}function xe(_0x279f75){const _0x3a7b8d=_0x288259,{coordinator:_0x3a96ec}=_0x279f75;return _0x18b69b(_0x182287,{'children':[_0x120c4b(_0x3a7b8d(0x1b6),{'className':_0x3a7b8d(0x1e7),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x120c4b(_0x22c645,{'onClick':()=>_0x3a96ec[_0x3a7b8d(0x216)](),'children':_0x3a7b8d(0x1f2)})]});}function Pe(_0x540f95){const _0x5bd04b=_0x288259,{coordinator:_0x2b3d0b}=_0x540f95;return _0x18b69b(_0x182287,{'children':[_0x120c4b(_0x5bd04b(0x1b6),{'className':_0x5bd04b(0x1e7),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x120c4b(_0x22c645,{'variant':'text','onClick':()=>_0x2b3d0b[_0x5bd04b(0x20e)](),'children':_0x5bd04b(0x1c4)})]});}function Ae(_0x5b5747){const _0x50ffc7=_0x288259,{coordinator:_0x269e83}=_0x5b5747;return _0x18b69b(_0x182287,{'children':[_0x120c4b('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x50ffc7(0x1a1)}),_0x120c4b(_0x22c645,{'variant':_0x50ffc7(0x1b2),'onClick':()=>_0x269e83[_0x50ffc7(0x1df)](),'children':_0x50ffc7(0x1c9)})]});}function Te(){const _0x471c51=_0x288259;return _0x120c4b(_0x182287,{'children':_0x471c51(0x1ae)});}var Fe=Object[_0x288259(0x218)],He=(_0x597881,_0x2e0b7c,_0x359c89,_0x443b17)=>{const _0x3afbee=_0x288259;for(var _0x90b0f5=_0x443b17>0x1?void 0x0:_0x443b17?Fe(_0x2e0b7c,_0x359c89):_0x2e0b7c,_0x23e3fd=_0x597881[_0x3afbee(0x1fe)]-0x1,_0x464d32;_0x23e3fd>=0x0;_0x23e3fd--)(_0x464d32=_0x597881[_0x23e3fd])&&(_0x90b0f5=_0x464d32(_0x90b0f5)||_0x90b0f5);return _0x90b0f5;},A=(_0x4f2e1c,_0x410599)=>(_0x36348e,_0x4fdf10)=>_0x410599(_0x36348e,_0x4fdf10,_0x4f2e1c);let m=class extends _0x2f9266{constructor(_0x1e5014,_0x59f260){const _0x449ede=_0x288259;super(),this[_0x449ede(0x1dd)]=_0x1e5014,this[_0x449ede(0x1ff)]=_0x59f260,this['_mountLiveShare']();}[_0x288259(0x19a)](){const _0xef82cf=_0x288259;this[_0xef82cf(0x1d2)](this['_uiPartsService'][_0xef82cf(0x196)](_0x367153[_0xef82cf(0x1cd)],()=>_0x4d0457(Le,this[_0xef82cf(0x1dd)])));}};m=He([A(0x0,_0x2ccce4(_0x38a60f)),A(0x1,_0x39de93)],m);const ye=_0x288259(0x23a),T={};var Ue=Object[_0x288259(0x218)],Ve=(_0x41ff90,_0x44f3e5,_0x30d7ea,_0x4ce8b6)=>{const _0x303322=_0x288259;for(var _0x5134db=_0x4ce8b6>0x1?void 0x0:_0x4ce8b6?Ue(_0x44f3e5,_0x30d7ea):_0x44f3e5,_0x5510b2=_0x41ff90[_0x303322(0x1fe)]-0x1,_0x2d5093;_0x5510b2>=0x0;_0x5510b2--)(_0x2d5093=_0x41ff90[_0x5510b2])&&(_0x5134db=_0x2d5093(_0x5134db)||_0x5134db);return _0x5134db;},je=(_0x1d3aa0,_0x4008fa)=>(_0x3d222e,_0x37da56)=>_0x4008fa(_0x3d222e,_0x37da56,_0x1d3aa0);let I=class extends _0x2f9266{constructor(_0x3779ad){const _0x588b31=_0x288259;super(),this[_0x588b31(0x1b3)]=_0x3779ad,this[_0x588b31(0x1c0)]();}[_0x288259(0x1c0)](){[_0xc86880['id'],_0x184f42['id'],_0x3493cd['id']]['forEach'](_0x5ef7c9=>{const _0x378a43=_0x33d3;this[_0x378a43(0x1d2)](this[_0x378a43(0x1b3)]['registerSharedOperation'](_0x5ef7c9));});}};I=Ve([je(0x0,_0x2ccce4(L))],I);var Me=Object[_0x288259(0x231)],ke=Object[_0x288259(0x218)],Ge=(_0x32d307,_0x7762f9,_0x4b7b01)=>_0x7762f9 in _0x32d307?Me(_0x32d307,_0x7762f9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b7b01}):_0x32d307[_0x7762f9]=_0x4b7b01,We=(_0x4a4a44,_0x45c9a3,_0x5d9a4d,_0x3acefe)=>{const _0x4a4d80=_0x288259;for(var _0x110a54=_0x3acefe>0x1?void 0x0:_0x3acefe?ke(_0x45c9a3,_0x5d9a4d):_0x45c9a3,_0x38cfec=_0x4a4a44[_0x4a4d80(0x1fe)]-0x1,_0x4efb6b;_0x38cfec>=0x0;_0x38cfec--)(_0x4efb6b=_0x4a4a44[_0x38cfec])&&(_0x110a54=_0x4efb6b(_0x110a54)||_0x110a54);return _0x110a54;},F=(_0x1cc800,_0x3c46c3)=>(_0x36cdac,_0x2dc82c)=>_0x3c46c3(_0x36cdac,_0x2dc82c,_0x1cc800),B=(_0x35f92a,_0x712dab,_0x44f472)=>Ge(_0x35f92a,typeof _0x712dab!=_0x288259(0x1b0)?_0x712dab+'':_0x712dab,_0x44f472);const Ye=_0x288259(0x19f);let b=class extends _0x3f1d3f{constructor(_0x1e511a=T,_0x32e59b,_0x9a80){const _0x3f389f=_0x288259;super(),this[_0x3f389f(0x21d)]=_0x1e511a,this['_injector']=_0x32e59b,this[_0x3f389f(0x238)]=_0x9a80;const {..._0x3df5d2}=_0x2eff68({},T,this['_config']);this[_0x3f389f(0x238)][_0x3f389f(0x1de)](ye,_0x3df5d2);}[_0x288259(0x19e)](){const _0x14d7c0=_0x288259;_0x28d75e(this[_0x14d7c0(0x1dd)],_0x965e10([[L],[S],[I],[m]],this[_0x14d7c0(0x21d)][_0x14d7c0(0x199)])),_0x5b4615(this[_0x14d7c0(0x1dd)],[[I]]);}[_0x288259(0x19b)](){_0x5b4615(this['_injector'],[[m]]);}};B(b,_0x288259(0x1c1),_0x374271['UNIVER_UNKNOWN']),B(b,_0x288259(0x1c2),Ye),b=We([_0x553a41(_0x5d8e2c),F(0x1,_0x2ccce4(_0x38a60f)),F(0x2,_0x292df9)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};function _0x5f16(){const _0x4c8d55=['univer-mb-3\x20univer-w-full\x20univer-text-sm','_univerInstanceService','defIds','following','1728160kgIJXr','_reporters','data','_status$','delete','_presenter','requireSession','Stop\x20following','getLiveShareCoordinator','1111752ylGwec','LIVESHARE_OPERATION','_beIdle','params','getInitialStates','fill','sheet','pipe','NEW_CHANGESETS','dispose','length','_uiPartsService','36eVQPtP','send','FOLLOWING','_collabSession','evenodd','326181TmvmeI','_handleNewHost','2AQWkEx','map','not-following','replace','live-share-icon','attrs','path','startFollowing','get','svg','toString','_handleNewChangeSets','IDLE','_fetchOperations','values','stopFollowing','PRESENTING','getOwnPropertyDescriptor','xlink:href','NOT_FOLLOWING','dispose$','4456110hHKimL','_config','LIVESHARE_NEW_HOST','LIVESHARE_FETCH_OPERATIONS','defs','_handleOperation','presenting','status$','event$','getValue','7UDrFct','includes','SAME_OPERATION_SHARE_INTERVAL','_entities','_stopFollowing','univerjs-icon\x20univerjs-icon-','getConfig','_handleOnline','18CHblwZ','_startFollowing','onCommandExecuted','defineProperty','idle','idSuffix','use','createInstance','_sharedOperations','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','_configService','_handleTerminate','live-share.config','unitId','add','registerSharedOperation','substring','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','_startPresenting','offline','sessionStatus$','registerComponent','displayName','shouldShareOperation','override','_mountLiveShare','onRendered','memberID','from','onStarting','UNIVER_LIVE_SHARE_PLUGIN','getTypeOfUnitAdded$','You\x27re\x20presenting\x20the\x20document','current','url(#$1','LIVESHARE_REQUEST_HOST','clear','then','entries','set','assign','has','end','getStatus','OFFLINE','You\x27are\x20offline.','asObservable','symbol','mask','default','_liveShareService','_stopPresenting','0\x200\x2017\x2017','div','tryStartPresenting','forEach','_handleOffline','_commandService','_collabSessionService','trim','744855gXupYh','getLiveShareCoordinatorSync','getUnitId','_init','type','pluginName','children','Start\x20following','executeCommand','string','unsubscribe','_status','Stop\x20presenting','univer-size-4','_unitID','LIVESHARE_TERMINATE','HEADER_MENU','ONLINE','getMemberID','subscribe','stringify','disposeWithMe','tag','_commandDisposable','colorChannel1','UNIVER_SHEET','complete','_startLiveShareCoordinator','3981610OVuPAs','1em','getTypeOfUnitDisposed$','next','_injector','setConfig','stopPresenting','11HDWnoZ','reverse','11927532Losnhb','Present\x20this\x20document','parse','init','LiveShareIcon'];_0x5f16=function(){return _0x4c8d55;};return _0x5f16();}
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x4571(_0x2039a8,_0x21ce6b){_0x2039a8=_0x2039a8-0x17f;const _0x542ea7=_0x542e();let _0x457152=_0x542ea7[_0x2039a8];return _0x457152;}(function(_0x3c37c2,_0x507be5){const _0x31636d=_0x4571,_0x1eaf41=_0x3c37c2();while(!![]){try{const _0x1a3928=parseInt(_0x31636d(0x1b3))/0x1+-parseInt(_0x31636d(0x193))/0x2+-parseInt(_0x31636d(0x186))/0x3+-parseInt(_0x31636d(0x1b2))/0x4+-parseInt(_0x31636d(0x18c))/0x5*(-parseInt(_0x31636d(0x19a))/0x6)+-parseInt(_0x31636d(0x18e))/0x7+parseInt(_0x31636d(0x181))/0x8;if(_0x1a3928===_0x507be5)break;else _0x1eaf41['push'](_0x1eaf41['shift']());}catch(_0x29f7c6){_0x1eaf41['push'](_0x1eaf41['shift']());}}}(_0x542e,0xc78a8),function(_0x46effe,_0x2f33c9){const _0x488ee8=_0x4571;typeof exports==_0x488ee8(0x1b0)&&typeof module<'u'?_0x2f33c9(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==_0x488ee8(0x1a5)&&define[_0x488ee8(0x1ad)]?define(['@univerjs-pro/live-share',_0x488ee8(0x1ae),_0x488ee8(0x18d),'@univerjs/sheets-ui',_0x488ee8(0x182),_0x488ee8(0x191)],_0x2f33c9):(_0x46effe=typeof globalThis<'u'?globalThis:_0x46effe||self,_0x2f33c9(_0x46effe['UniverProLiveShare'],_0x46effe[_0x488ee8(0x194)],_0x46effe[_0x488ee8(0x18b)],_0x46effe[_0x488ee8(0x19c)],_0x46effe['UniverSheetsFacade'],_0x46effe[_0x488ee8(0x19f)]));}(this,function(_0xb44c2e,_0x216142,_0x4178a9,_0xf6248d,_0xf8334a,_0x36ba72){'use strict';const _0x330419=_0x4571;class _0x5d58c3 extends _0xf8334a['FRange']{[_0x330419(0x1aa)](_0x57b17d,_0x53200a,_0x5b4a58,_0x524261,_0x5d2117){const _0xffb163=_0x330419,_0x5851f2=_0x57b17d[_0xffb163(0x195)](_0xb44c2e[_0xffb163(0x1a4)]),_0x32fb9d=_0x57b17d['get'](_0x216142[_0xffb163(0x1ab)]),_0x52da9a=_0x53200a['getUnitId'](),_0x50141d=_0x53200a[_0xffb163(0x190)](),_0x279598=_0x5851f2[_0xffb163(0x1a6)](_0x52da9a);(_0x279598==null?void 0x0:_0x279598[_0xffb163(0x184)]())!==_0xb44c2e[_0xffb163(0x187)][_0xffb163(0x18a)]||(_0x5b4a58['getSheetId']()!==_0x50141d[_0xffb163(0x197)]()&&this[_0xffb163(0x19d)][_0xffb163(0x196)](_0x4178a9[_0xffb163(0x19b)]['id'],{'unitId':_0x52da9a,'subUnitId':_0x5b4a58[_0xffb163(0x197)]()}),!_0x32fb9d[_0xffb163(0x185)](_0x52da9a))||_0x5d2117[_0xffb163(0x1af)](_0xf6248d[_0xffb163(0x1a1)]['id'],{'unitId':_0x53200a[_0xffb163(0x1b1)](),'sheetId':_0x5b4a58[_0xffb163(0x197)](),'sheetViewStartRow':_0x524261[_0xffb163(0x180)],'sheetViewStartColumn':_0x524261[_0xffb163(0x17f)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0xf8334a[_0x330419(0x199)]['extend'](_0x5d58c3);class _0x3c3142 extends _0x36ba72[_0x330419(0x1ac)]{[_0x330419(0x189)](){const _0x216a13=_0x330419;var _0x44aabe,_0x34bd1f;const _0x1f8eff=this[_0x216a13(0x1b5)][_0x216a13(0x195)](_0xb44c2e[_0x216a13(0x1a4)]),_0x4bbfd8=(_0x44aabe=this['getActiveWorkbook']())==null?void 0x0:_0x44aabe[_0x216a13(0x188)]();if(!_0x4bbfd8)throw new Error(_0x216a13(0x1a9));const _0x1a8a3e=_0x1f8eff[_0x216a13(0x1a6)](_0x4bbfd8);return(_0x34bd1f=_0x1a8a3e==null?void 0x0:_0x1a8a3e[_0x216a13(0x184)]())!=null?_0x34bd1f:_0xb44c2e['LiveShareStatus'][_0x216a13(0x19e)];}[_0x330419(0x198)](){const _0x57b553=_0x330419;var _0x49c430;const _0x7c355e=this['_injector'][_0x57b553(0x195)](_0xb44c2e[_0x57b553(0x1a4)]),_0xed92a5=(_0x49c430=this[_0x57b553(0x18f)]())==null?void 0x0:_0x49c430[_0x57b553(0x188)]();if(!_0xed92a5)throw new Error(_0x57b553(0x1a9));const _0x4c5057=_0x7c355e[_0x57b553(0x1a6)](_0xed92a5);if(!_0x4c5057)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4c5057['startFollowing']();}[_0x330419(0x183)](){const _0x2dd3a3=_0x330419;var _0x2b9e6b;const _0x2c1221=this[_0x2dd3a3(0x1b5)][_0x2dd3a3(0x195)](_0xb44c2e[_0x2dd3a3(0x1a4)]),_0x460c15=(_0x2b9e6b=this[_0x2dd3a3(0x18f)]())==null?void 0x0:_0x2b9e6b['getId']();if(!_0x460c15)throw new Error(_0x2dd3a3(0x1a9));const _0x291a5d=_0x2c1221[_0x2dd3a3(0x1a6)](_0x460c15);if(!_0x291a5d)throw new Error(_0x2dd3a3(0x1a0));_0x291a5d[_0x2dd3a3(0x183)]();}[_0x330419(0x1a2)](){const _0x37fcc9=_0x330419;var _0x35666d;const _0x1a51e5=this[_0x37fcc9(0x1b5)]['get'](_0xb44c2e[_0x37fcc9(0x1a4)]),_0x1937ea=(_0x35666d=this[_0x37fcc9(0x18f)]())==null?void 0x0:_0x35666d['getId']();if(!_0x1937ea)throw new Error(_0x37fcc9(0x1a9));const _0x2a4d26=_0x1a51e5[_0x37fcc9(0x1a6)](_0x1937ea);if(!_0x2a4d26)throw new Error(_0x37fcc9(0x1a0));_0x2a4d26[_0x37fcc9(0x1b4)]();}[_0x330419(0x1a3)](){const _0x52219d=_0x330419;var _0x4737ab;const _0x3328f7=this[_0x52219d(0x1b5)][_0x52219d(0x195)](_0xb44c2e['LiveShareController']),_0x332fd2=(_0x4737ab=this['getActiveWorkbook']())==null?void 0x0:_0x4737ab['getId']();if(!_0x332fd2)throw new Error(_0x52219d(0x1a9));const _0x3d8de4=_0x3328f7[_0x52219d(0x1a6)](_0x332fd2);if(!_0x3d8de4)throw new Error(_0x52219d(0x1a0));_0x3d8de4['stopPresenting']();}}_0x36ba72[_0x330419(0x1ac)][_0x330419(0x192)](_0x3c3142);class _0x3990c3 extends _0x36ba72[_0x330419(0x1a8)]{get[_0x330419(0x1a7)](){const _0x23762e=_0x330419;return _0xb44c2e[_0x23762e(0x187)];}}_0x36ba72[_0x330419(0x1a8)][_0x330419(0x192)](_0x3990c3);}));function _0x542e(){const _0x322b26=['1154352RKyMgJ','369449yyCjTg','tryStartPresenting','_injector','startColumn','startRow','16439192mRmunL','@univerjs/sheets/facade','stopFollowing','getStatus','getRenderById','124278pTomgC','LiveShareStatus','getId','getLiveShareStatus','PRESENTING','UniverSheets','3734465SYxdib','@univerjs/sheets','4607589KUcAvm','getActiveWorkbook','getActiveSheet','@univerjs/core/facade','extend','2731360FQdvcD','UniverEngineRender','get','executeCommand','getSheetId','startFollowing','FRange','6dhFOOm','SetWorksheetActiveOperation','UniverSheetsUi','_commandService','IDLE','UniverCoreFacade','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','SetScrollOperation','startPresenting','stopPresenting','LiveShareController','function','getLiveShareCoordinatorSync','LiveShareStatusEnum','FEnum','No\x20active\x20workbook\x20found.','_initialize','IRenderManagerService','FUniver','amd','@univerjs/engine-render','syncExecuteCommand','object','getUnitId'];_0x542e=function(){return _0x322b26;};return _0x542e();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x8f7c(){const _0x1f8015=['UniverSheetsUi','sessionStatus$','IUIPartsService','data','dispose$','registerSharedOperation','rxjs','mutations','Dropdown','then','NEW_CHANGESETS','createInstance','jsx','_handleNewChangeSets','_handleTerminate','CollaborationEvent','stopPresenting','_stopPresenting','LiveShareController','evenodd','presenting','Disposable','LiveShareService','UniverProLiveShare','LIVESHARE_TERMINATE','startFollowing','CommandType','pipe','substring','LiveShare','3bluRvT','NOT_FOLLOWING','LiveShareCoordinator','reverse','live-share.config','getInitialStates','tag','registerInitialStateReporter','LIVESHARE_NEW_HOST','_stopFollowing','Button','_handleOperation','Start','react/jsx-runtime','send','Start\x20following','UniverProCollaboration','end','CollaborationSessionService','@univerjs/ui','following','_startLiveShareCoordinator','UNIVER_UNKNOWN','mask','requireSession','getConfig','defIds','_presenter','exports','_status$','useObservable','getLiveShareCoordinatorSync','InsertSheetMutation','OPERATION','UniverCollaborationClientPlugin','toStringTag','SAME_OPERATION_SHARE_INTERVAL','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','UniverProCollaborationClient','type','default','_beIdle','takeUntil','onCommandExecuted','@univerjs-pro/collaboration-client','merge','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','You\x27re\x20presenting\x20the\x20document','includes','UNIVER_LIVE_SHARE_PLUGIN','Inject','univer-size-4','path','has','Stop\x20presenting','IDLE','_startFollowing','replace','next','complete','_uiPartsService','_mountLiveShare','entries','unitId','_status','_configService','attrs','throttleTime','xlink:href','from','RxDisposable','clear','LIVESHARE_FETCH_OPERATIONS','_liveShareService','_injector','not-following','Fragment','stringify','function','_handleNewHost','disposeWithMe','get','React','operators','presenter','You\x27re\x20not\x20following\x20the\x20presenter','map','Plugin','_collabSessionService','defs','_fetchOperations','forwardRef','random','PRESENTING','dispose','FOLLOWING','executeCommand','IConfigService','getOwnPropertyDescriptor','text','_handleOffline','getCurrentTypeOfUnit$','1879192ZdeCUJ','30XQHZAP','set','none','idle','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startPresenting','shouldShareOperation','toDisposable','length','_config','status$','getMemberID','@univerjs/core','305374VQFyfj','mergeOverrideWithDependencies','current','react','@univerjs-pro/collaboration','Injector','memberID','HEADER_MENU','UniverSheets','params','UniverLiveSharePlugin','369960VQxtfO','_reporters','_commandDisposable','getTypeOfUnitAdded$','Present\x20this\x20document','You\x27are\x20offline.','@univerjs/design','delete','offline','jsxs','BuiltInUIPart','stopFollowing','UniverDesign','getLiveShareCoordinator','1236048Qfejwy','touchDependencies','createElement','trim','use','object','symbol','override','string','1em','registerDependencies','getUnitId','DesktopLiveShareController','forEach','connectInjector','pluginName','rxjs/operators','getTypeOfUnitDisposed$','SessionStatus','useDependency','useRef','_handleOnline','_sharedOperations','320904zkRWUV','init','useState','BehaviorSubject','_init','svg','div','LiveShareStatus','Stop\x20following','@univerjs/sheets','defineProperty','968700nVIkRB','idSuffix','add','UniverInstanceType','getStatus','currentColor','UniverIcon','UNIVER_SHEET','ICommandService','_commandService','parse','operations','LiveShareIcon','_entities','_unitID','colorChannel1','_univerInstanceService','subscribe','tryStartPresenting','OFFLINE','live-share-icon','toString','displayName','0\x200\x2017\x2017','SetWorksheetActiveOperation','506556advuNT','find','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','_collabSession','clsx','children','fill','SetScrollOperation'];_0x8f7c=function(){return _0x1f8015;};return _0x8f7c();}function _0x3e36(_0x22d6bd,_0x35e45e){_0x22d6bd=_0x22d6bd-0x11e;const _0x8f7c2f=_0x8f7c();let _0x3e3653=_0x8f7c2f[_0x22d6bd];return _0x3e3653;}(function(_0x4ab8de,_0x3460de){const _0x4d8687=_0x3e36,_0x3ab222=_0x4ab8de();while(!![]){try{const _0x45e64b=-parseInt(_0x4d8687(0x1cc))/0x1*(-parseInt(_0x4d8687(0x152))/0x2)+-parseInt(_0x4d8687(0x1a6))/0x3+parseInt(_0x4d8687(0x18d))/0x4+parseInt(_0x4d8687(0x15d))/0x5*(-parseInt(_0x4d8687(0x145))/0x6)+parseInt(_0x4d8687(0x144))/0x7+-parseInt(_0x4d8687(0x16b))/0x8+-parseInt(_0x4d8687(0x182))/0x9;if(_0x45e64b===_0x3460de)break;else _0x3ab222['push'](_0x3ab222['shift']());}catch(_0xb4ef46){_0x3ab222['push'](_0x3ab222['shift']());}}}(_0x8f7c,0x3a866),function(_0x3abc90,_0x3df5cf){const _0xf7dcd=_0x3e36;typeof exports==_0xf7dcd(0x170)&&typeof module<'u'?_0x3df5cf(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==_0xf7dcd(0x12c)&&define['amd']?define([_0xf7dcd(0x1e8),_0xf7dcd(0x151),_0xf7dcd(0x1df),_0xf7dcd(0x1d9),_0xf7dcd(0x163),_0xf7dcd(0x155),_0xf7dcd(0x156),_0xf7dcd(0x1f8),_0xf7dcd(0x18b),_0xf7dcd(0x1b4),_0xf7dcd(0x17b),'@univerjs/sheets-ui'],_0x3df5cf):(_0x3abc90=typeof globalThis<'u'?globalThis:_0x3abc90||self,_0x3df5cf(_0x3abc90[_0xf7dcd(0x1c5)]={},_0x3abc90['UniverCore'],_0x3abc90['UniverUi'],_0x3abc90[_0xf7dcd(0x130)],_0x3abc90[_0xf7dcd(0x169)],_0x3abc90[_0xf7dcd(0x130)],_0x3abc90[_0xf7dcd(0x1dc)],_0x3abc90[_0xf7dcd(0x1f2)],_0x3abc90[_0xf7dcd(0x15a)],_0x3abc90[_0xf7dcd(0x1b4)],_0x3abc90['rxjs'][_0xf7dcd(0x131)],_0x3abc90[_0xf7dcd(0x1ae)]));}(this,function(_0x1c5f91,_0x342837,_0x20cf75,_0x5d3518,_0x19382c,_0x2af741,_0x2fb4e6,_0x4b3acb,_0x22bb53,_0x5d360a,_0x392387,_0x51dae5){'use strict';const _0x7360d4=_0x3e36;var _0x2e2910=Object['defineProperty'],_0x530287=(_0x1465c3,_0x1f4c9d,_0x368241)=>_0x1f4c9d in _0x1465c3?_0x2e2910(_0x1465c3,_0x1f4c9d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x368241}):_0x1465c3[_0x1f4c9d]=_0x368241,_0x408b92=(_0x1557fc,_0x3f4af7,_0x41d953)=>_0x530287(_0x1557fc,typeof _0x3f4af7!='symbol'?_0x3f4af7+'':_0x3f4af7,_0x41d953);function _0x46471f({ref:_0xd58555,..._0x47544e}){const _0x5d7a11=_0x3e36,{icon:_0x1dbc6f,id:_0x4c3045,className:_0x16d3ec,extend:_0x44b08f,..._0x4d2a53}=_0x47544e,_0x14a4cb=('univerjs-icon\x20univerjs-icon-'+_0x4c3045+'\x20'+(_0x16d3ec||''))[_0x5d7a11(0x16e)](),_0x3318dc=_0x2af741[_0x5d7a11(0x17f)]('_'+_0x202d02());return _0x4f21bf(_0x1dbc6f,''+_0x4c3045,{'defIds':_0x1dbc6f[_0x5d7a11(0x1e6)],'idSuffix':_0x3318dc[_0x5d7a11(0x154)]},{'ref':_0xd58555,'className':_0x14a4cb,..._0x4d2a53},_0x44b08f);}function _0x4f21bf(_0x106b65,_0x584ee7,_0x42c4f7,_0x18292f,_0x32c563){const _0x5d76fe=_0x3e36;return _0x2af741[_0x5d76fe(0x16d)](_0x106b65[_0x5d76fe(0x1d2)],{'key':_0x584ee7,..._0x552b13(_0x106b65,_0x42c4f7,_0x32c563),..._0x18292f},(_0x1ceb3b(_0x106b65,_0x42c4f7)[_0x5d76fe(0x1ab)]||[])[_0x5d76fe(0x134)]((_0x38744b,_0x7bbab8)=>_0x4f21bf(_0x38744b,_0x584ee7+'-'+_0x106b65[_0x5d76fe(0x1d2)]+'-'+_0x7bbab8,_0x42c4f7,void 0x0,_0x32c563)));}function _0x552b13(_0x7de52a,_0x1e969c,_0x35910c){const _0xcb2ca8=_0x3e36,_0x8ada6={..._0x7de52a[_0xcb2ca8(0x120)]};_0x35910c!=null&&_0x35910c[_0xcb2ca8(0x19c)]&&_0x8ada6[_0xcb2ca8(0x1ac)]===_0xcb2ca8(0x19c)&&(_0x8ada6[_0xcb2ca8(0x1ac)]=_0x35910c[_0xcb2ca8(0x19c)]),_0x7de52a[_0xcb2ca8(0x1d2)]===_0xcb2ca8(0x1e3)&&_0x8ada6['id']&&(_0x8ada6['id']=_0x8ada6['id']+_0x1e969c[_0xcb2ca8(0x18e)]),Object[_0xcb2ca8(0x20a)](_0x8ada6)[_0xcb2ca8(0x178)](([_0x20f153,_0x5431c5])=>{const _0x5e2ffc=_0xcb2ca8;_0x20f153===_0x5e2ffc(0x1e3)&&typeof _0x5431c5=='string'&&(_0x8ada6[_0x20f153]=_0x5431c5[_0x5e2ffc(0x205)](/url\(#(.*)\)/,'url(#$1'+_0x1e969c[_0x5e2ffc(0x18e)]+')'));});const {defIds:_0x15b5de}=_0x1e969c;return!_0x15b5de||_0x15b5de[_0xcb2ca8(0x14d)]===0x0||(_0x7de52a[_0xcb2ca8(0x1d2)]===_0xcb2ca8(0x16f)&&_0x8ada6[_0xcb2ca8(0x122)]&&(_0x8ada6[_0xcb2ca8(0x122)]=_0x8ada6['xlink:href']+_0x1e969c['idSuffix']),Object[_0xcb2ca8(0x20a)](_0x8ada6)[_0xcb2ca8(0x178)](([_0x2dd5c8,_0x4f3b2b])=>{const _0xec82fd=_0xcb2ca8;typeof _0x4f3b2b==_0xec82fd(0x173)&&(_0x8ada6[_0x2dd5c8]=_0x4f3b2b['replace'](/url\(#(.*)\)/,'url(#$1'+_0x1e969c[_0xec82fd(0x18e)]+')'));})),_0x8ada6;}function _0x1ceb3b(_0x327cf2,_0x4c415a){const _0x121b0c=_0x3e36;var _0x428d20;const {defIds:_0x15e44f}=_0x4c415a;return!_0x15e44f||_0x15e44f[_0x121b0c(0x14d)]===0x0?_0x327cf2:_0x327cf2[_0x121b0c(0x1d2)]===_0x121b0c(0x137)&&((_0x428d20=_0x327cf2[_0x121b0c(0x1ab)])!=null&&_0x428d20[_0x121b0c(0x14d)])?{..._0x327cf2,'children':_0x327cf2['children'][_0x121b0c(0x134)](_0x3a7401=>typeof _0x3a7401[_0x121b0c(0x120)]['id']==_0x121b0c(0x173)&&_0x15e44f&&_0x15e44f['includes'](_0x3a7401[_0x121b0c(0x120)]['id'])?{..._0x3a7401,'attrs':{..._0x3a7401[_0x121b0c(0x120)],'id':_0x3a7401['attrs']['id']+_0x4c415a['idSuffix']}}:_0x3a7401)}:_0x327cf2;}function _0x202d02(){const _0x24fdb5=_0x3e36;return Math[_0x24fdb5(0x13a)]()[_0x24fdb5(0x1a2)](0x24)[_0x24fdb5(0x1ca)](0x2,0x8);}_0x46471f[_0x7360d4(0x1a3)]=_0x7360d4(0x193);const _0x164371={'tag':_0x7360d4(0x187),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x7360d4(0x147),'viewBox':_0x7360d4(0x1a4),'width':_0x7360d4(0x174),'height':_0x7360d4(0x174)},'children':[{'tag':_0x7360d4(0x200),'attrs':{'fill':_0x7360d4(0x192),'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':_0x7360d4(0x200),'attrs':{'fill':_0x7360d4(0x192),'d':_0x7360d4(0x1fa),'fillRule':_0x7360d4(0x1c1),'clipRule':_0x7360d4(0x1c1)}}]},_0x342eb9=_0x2af741[_0x7360d4(0x139)](function(_0x281935,_0x515bc8){const _0x395ddb=_0x7360d4;return _0x2af741[_0x395ddb(0x16d)](_0x46471f,Object['assign']({},_0x281935,{'id':_0x395ddb(0x1a1),'ref':_0x515bc8,'icon':_0x164371}));});_0x342eb9['displayName']=_0x7360d4(0x199);class _0x16957c extends _0x342837[_0x7360d4(0x1c3)]{constructor(){const _0x5df372=_0x7360d4;super(...arguments),_0x408b92(this,_0x5df372(0x181),new Set()),_0x408b92(this,_0x5df372(0x15e),new Set());}['registerSharedOperation'](_0x78c52b){const _0x58e555=_0x7360d4;return this['_sharedOperations'][_0x58e555(0x18f)](_0x78c52b),_0x342837[_0x58e555(0x14c)](()=>this['_sharedOperations'][_0x58e555(0x164)](_0x78c52b));}[_0x7360d4(0x1d3)](_0x3451b6){const _0x18b97d=_0x7360d4;return this['_reporters'][_0x18b97d(0x18f)](_0x3451b6),_0x342837[_0x18b97d(0x14c)](()=>this[_0x18b97d(0x15e)]['delete'](_0x3451b6));}[_0x7360d4(0x14b)](_0x46b391){const _0x36779d=_0x7360d4;return this['_sharedOperations'][_0x36779d(0x201)](_0x46b391);}[_0x7360d4(0x1d1)](_0x4585f4){const _0x68eaa2=_0x7360d4;return Array[_0x68eaa2(0x123)](this[_0x68eaa2(0x15e)])[_0x68eaa2(0x134)](_0x3f9410=>_0x3f9410(_0x4585f4));}}var _0x27689d=Object[_0x7360d4(0x140)],_0x5cb2ff=(_0xd444a5,_0x131b0e,_0x16ee90,_0x5b7807)=>{for(var _0x3c8b64=_0x5b7807>0x1?void 0x0:_0x5b7807?_0x27689d(_0x131b0e,_0x16ee90):_0x131b0e,_0x3629dd=_0xd444a5['length']-0x1,_0x265f1f;_0x3629dd>=0x0;_0x3629dd--)(_0x265f1f=_0xd444a5[_0x3629dd])&&(_0x3c8b64=_0x265f1f(_0x3c8b64)||_0x3c8b64);return _0x3c8b64;},_0x58bb4e=(_0x40d00c,_0x2c088f)=>(_0x3a63c4,_0x4cc526)=>_0x2c088f(_0x3a63c4,_0x4cc526,_0x40d00c);_0x1c5f91[_0x7360d4(0x1c0)]=class extends _0x342837[_0x7360d4(0x124)]{constructor(_0x49c171,_0x42f35e,_0x4bf9f8){const _0x4a1465=_0x7360d4;super(),_0x408b92(this,'_entities',new Map()),(this[_0x4a1465(0x19d)]=_0x49c171,this[_0x4a1465(0x128)]=_0x42f35e,this[_0x4a1465(0x136)]=_0x4bf9f8,this['_init']());}async[_0x7360d4(0x16a)](_0x22d998){const _0x5d8e39=_0x7360d4;return this[_0x5d8e39(0x19a)][_0x5d8e39(0x201)](_0x22d998)||await this[_0x5d8e39(0x1e1)](_0x22d998),this[_0x5d8e39(0x19a)][_0x5d8e39(0x12f)](_0x22d998);}[_0x7360d4(0x1eb)](_0x33c1b2){const _0x4670a1=_0x7360d4;var _0x147593;return(_0x147593=this['_entities'][_0x4670a1(0x12f)](_0x33c1b2))!=null?_0x147593:null;}[_0x7360d4(0x186)](){const _0x268e1b=_0x7360d4;this[_0x268e1b(0x19d)][_0x268e1b(0x160)](_0x342837[_0x268e1b(0x190)][_0x268e1b(0x194)])[_0x268e1b(0x1c9)](_0x392387[_0x268e1b(0x1f6)](this['dispose$']))[_0x268e1b(0x19e)](async _0x6d3cb6=>{const _0x561d47=_0x268e1b,_0x39cef5=_0x6d3cb6[_0x561d47(0x176)]();this[_0x561d47(0x19a)]['has'](_0x39cef5)||this[_0x561d47(0x1e1)](_0x39cef5);}),this[_0x268e1b(0x19d)][_0x268e1b(0x17c)](_0x342837[_0x268e1b(0x190)]['UNIVER_SHEET'])[_0x268e1b(0x1c9)](_0x392387[_0x268e1b(0x1f6)](this[_0x268e1b(0x1b2)]))[_0x268e1b(0x19e)](_0x4289dc=>{const _0xf113e4=_0x268e1b,_0x47b295=_0x4289dc['getUnitId'](),_0x5c3b24=this[_0xf113e4(0x19a)][_0xf113e4(0x12f)](_0x47b295);_0x5c3b24==null||_0x5c3b24['dispose']();});}async[_0x7360d4(0x1e1)](_0x34ed81){const _0x3e1ab3=_0x7360d4,_0x4b2b0a=await this[_0x3e1ab3(0x136)][_0x3e1ab3(0x1e4)](_0x34ed81),_0x215a47=this[_0x3e1ab3(0x128)][_0x3e1ab3(0x1b9)](_0x1c5f91[_0x3e1ab3(0x1ce)],_0x34ed81,_0x4b2b0a);return _0x215a47['init'](),this['_entities']['set'](_0x34ed81,_0x215a47),_0x215a47;}},_0x1c5f91[_0x7360d4(0x1c0)]=_0x5cb2ff([_0x58bb4e(0x0,_0x342837['IUniverInstanceService']),_0x58bb4e(0x1,_0x342837[_0x7360d4(0x1fe)](_0x342837['Injector'])),_0x58bb4e(0x2,_0x342837[_0x7360d4(0x1fe)](_0x4b3acb[_0x7360d4(0x1de)]))],_0x1c5f91[_0x7360d4(0x1c0)]);var _0x1aabba=(_0x10c688=>(_0x10c688[_0x7360d4(0x1a0)]=_0x7360d4(0x165),_0x10c688[_0x7360d4(0x203)]=_0x7360d4(0x148),_0x10c688['FOLLOWING']='following',_0x10c688[_0x7360d4(0x1cd)]=_0x7360d4(0x129),_0x10c688['PRESENTING']='presenting',_0x10c688))(_0x1aabba||{});const _0x383b2a=_0x7360d4(0x1f0),_0x460867=0xc8;_0x1c5f91['LiveShareCoordinator']=class extends _0x342837['RxDisposable']{constructor(_0x1172f0,_0x2e1f9e,_0xe4e0c0,_0x1cf4d6,_0x5d7b05){const _0x4e2739=_0x7360d4;super(),_0x408b92(this,_0x4e2739(0x1e9),new _0x5d360a[(_0x4e2739(0x185))]('idle')),_0x408b92(this,_0x4e2739(0x14f),this['_status$']['asObservable']()),_0x408b92(this,_0x4e2739(0x186),!0x1),_0x408b92(this,'_commandDisposable',null),_0x408b92(this,_0x4e2739(0x1e7),null),(this[_0x4e2739(0x19b)]=_0x1172f0,this[_0x4e2739(0x1a9)]=_0x2e1f9e,this[_0x4e2739(0x11f)]=_0xe4e0c0,this[_0x4e2739(0x127)]=_0x1cf4d6,this[_0x4e2739(0x196)]=_0x5d7b05);}get['_status'](){const _0xc2994a=_0x7360d4;return this[_0xc2994a(0x1e9)]['getValue']();}[_0x7360d4(0x13c)](){const _0x1b7585=_0x7360d4;var _0x187e45;(_0x187e45=this[_0x1b7585(0x15f)])==null||_0x187e45['dispose'](),this[_0x1b7585(0x1e9)][_0x1b7585(0x206)]('idle'),this[_0x1b7585(0x1e9)][_0x1b7585(0x207)]();}[_0x7360d4(0x191)](){const _0x419cc1=_0x7360d4;return this[_0x419cc1(0x11e)];}[_0x7360d4(0x183)](){const _0xfdb6ca=_0x7360d4;this[_0xfdb6ca(0x186)]||(this['_init']=!0x0,this[_0xfdb6ca(0x1a9)][_0xfdb6ca(0x1af)][_0xfdb6ca(0x1c9)](_0x392387[_0xfdb6ca(0x1f6)](this['dispose$']))['subscribe'](_0x3f4f0c=>{const _0xc566c0=_0xfdb6ca;switch(_0x3f4f0c){case _0x4b3acb[_0xc566c0(0x17d)][_0xc566c0(0x1a0)]:this[_0xc566c0(0x142)]();break;case _0x4b3acb[_0xc566c0(0x17d)]['ONLINE']:this[_0xc566c0(0x180)]();break;}}),this[_0xfdb6ca(0x1a9)]['event$'][_0xfdb6ca(0x1c9)](_0x392387[_0xfdb6ca(0x1f6)](this[_0xfdb6ca(0x1b2)]))[_0xfdb6ca(0x19e)](_0xbf902d=>{const _0x502acd=_0xfdb6ca,{eventID:_0x43d417}=_0xbf902d;switch(_0x43d417){case _0x2fb4e6[_0x502acd(0x1bd)][_0x502acd(0x1d4)]:this[_0x502acd(0x12d)](_0xbf902d);break;case _0x2fb4e6[_0x502acd(0x1bd)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0xbf902d);break;case _0x2fb4e6[_0x502acd(0x1bd)]['LIVESHARE_TERMINATE']:this[_0x502acd(0x1bc)]();break;case _0x2fb4e6[_0x502acd(0x1bd)][_0x502acd(0x1b8)]:this[_0x502acd(0x1bb)](_0xbf902d);break;}}));}[_0x7360d4(0x19f)](){const _0x53652f=_0x7360d4;this[_0x53652f(0x1a9)][_0x53652f(0x1da)]({'eventID':_0x2fb4e6[_0x53652f(0x1bd)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x53652f(0x19b)],'userID':this[_0x53652f(0x1a9)][_0x53652f(0x150)]()}},this[_0x53652f(0x19b)]);}[_0x7360d4(0x1be)](){const _0x3175c0=_0x7360d4;this['_status']===_0x3175c0(0x1c2)&&(this[_0x3175c0(0x1e9)][_0x3175c0(0x206)](_0x3175c0(0x148)),this[_0x3175c0(0x1a9)][_0x3175c0(0x1da)]({'eventID':_0x2fb4e6[_0x3175c0(0x1bd)][_0x3175c0(0x1c6)],'data':{'unitID':this[_0x3175c0(0x19b)]}},this[_0x3175c0(0x19b)]));}[_0x7360d4(0x1c7)](){const _0xc13be2=_0x7360d4;this[_0xc13be2(0x11e)]===_0xc13be2(0x129)&&(this[_0xc13be2(0x1e9)][_0xc13be2(0x206)](_0xc13be2(0x1e0)),this[_0xc13be2(0x204)]());}[_0x7360d4(0x168)](){const _0x35ca0c=_0x7360d4;this[_0x35ca0c(0x11e)]===_0x35ca0c(0x1e0)&&this['_stopFollowing']();}[_0x7360d4(0x12d)](_0x313768){const _0x172bd5=_0x7360d4,{presenter:_0x5a709d}=_0x313768[_0x172bd5(0x1b1)],_0x4678e0=this['_collabSession'][_0x172bd5(0x150)]();this[_0x172bd5(0x1e7)]=_0x5a709d,_0x5a709d===_0x4678e0?(this[_0x172bd5(0x1d5)](),this[_0x172bd5(0x14a)]()):this[_0x172bd5(0x11e)]!=='not-following'&&(this[_0x172bd5(0x1bf)](),this['_startFollowing']());}[_0x7360d4(0x138)](){const _0x1a435f=_0x7360d4,_0x411b65={'eventID':_0x2fb4e6['CollaborationEvent'][_0x1a435f(0x126)]};this['_collabSession'][_0x1a435f(0x1da)](_0x411b65,this[_0x1a435f(0x19b)]);}[_0x7360d4(0x1bc)](){const _0x13c559=_0x7360d4;this[_0x13c559(0x1e7)]=null,this[_0x13c559(0x11e)]!==_0x13c559(0x1c2)&&this[_0x13c559(0x1f5)]();}[_0x7360d4(0x1bb)](_0xefc4a5){const _0x4a8a56=_0x7360d4;if(this['_status']==='following'&&this[_0x4a8a56(0x1e7)]===_0xefc4a5[_0x4a8a56(0x1b1)][_0x4a8a56(0x158)]){const _0x14aa64=_0x2fb4e6['parseProtocolChangeset'](_0xefc4a5[_0x4a8a56(0x1b1)])[_0x4a8a56(0x1b5)][_0x4a8a56(0x1cf)]()[_0x4a8a56(0x1a7)](_0x253fbc=>_0x253fbc['id']===_0x22bb53[_0x4a8a56(0x1ec)]['id']);if(_0x14aa64){const _0x567441=_0x14aa64[_0x4a8a56(0x15b)][_0x4a8a56(0x20b)],_0x26b94d=_0x14aa64['params']['sheet']['id'];setTimeout(()=>{const _0x3019ae=_0x4a8a56;this[_0x3019ae(0x196)][_0x3019ae(0x13e)](_0x22bb53[_0x3019ae(0x1a5)]['id'],{'unitId':_0x567441,'subUnitId':_0x26b94d},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x5ed318=_0x7360d4;this[_0x5ed318(0x1e9)][_0x5ed318(0x206)](_0x5ed318(0x1c2));const _0xe6516=new Map(),_0x2b463d=this['_commandDisposable']=new _0x342837['DisposableCollection']();_0x2b463d['add'](_0x342837[_0x5ed318(0x14c)](()=>{const _0x3988ee=_0x5ed318;_0xe6516[_0x3988ee(0x178)](_0x3caa4c=>_0x3caa4c['complete']()),_0xe6516[_0x3988ee(0x125)]();})),_0x2b463d[_0x5ed318(0x18f)](this['_commandService'][_0x5ed318(0x1f7)](_0x378f2d=>{const _0x3eea8e=_0x5ed318;var _0x5a4c6d;if(_0x378f2d[_0x3eea8e(0x1f3)]!==_0x342837[_0x3eea8e(0x1c8)][_0x3eea8e(0x1ed)]||!this[_0x3eea8e(0x127)][_0x3eea8e(0x14b)](_0x378f2d['id']))return;const {id:_0x8b8179}=_0x378f2d;let _0x13d4ae;_0xe6516[_0x3eea8e(0x201)](_0x8b8179)?_0x13d4ae=_0xe6516[_0x3eea8e(0x12f)](_0x8b8179):(_0x13d4ae=new _0x5d360a['Subject'](),_0xe6516[_0x3eea8e(0x146)](_0x8b8179,_0x13d4ae),_0x13d4ae['pipe'](_0x392387[_0x3eea8e(0x121)]((_0x5a4c6d=this[_0x3eea8e(0x11f)][_0x3eea8e(0x1e5)](_0x383b2a))!=null?_0x5a4c6d:_0x460867,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3eea8e(0x19e)](_0xe247d7=>{const _0x38c256=_0x3eea8e;this[_0x38c256(0x1a9)][_0x38c256(0x1da)]({'eventID':_0x2fb4e6[_0x38c256(0x1bd)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x38c256(0x19b)],'operations':{[_0xe247d7['id']]:{'id':_0xe247d7['id'],'params':JSON[_0x38c256(0x12b)](_0xe247d7[_0x38c256(0x15b)])}}}},this[_0x38c256(0x19b)]);})),_0x13d4ae[_0x3eea8e(0x206)](_0x378f2d);})),this[_0x5ed318(0x127)]['getInitialStates'](this[_0x5ed318(0x19b)])[_0x5ed318(0x178)](_0x3c10d3=>this[_0x5ed318(0x1a9)][_0x5ed318(0x1da)]({'eventID':_0x2fb4e6['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5ed318(0x19b)],'operations':{[_0x3c10d3['id']]:{'id':_0x3c10d3['id'],'params':JSON[_0x5ed318(0x12b)](_0x3c10d3[_0x5ed318(0x15b)])}}}},this[_0x5ed318(0x19b)]));}[_0x7360d4(0x1bf)](){const _0xd09dce=_0x7360d4;var _0x3f9f1d;this[_0xd09dce(0x1e9)][_0xd09dce(0x206)](_0xd09dce(0x148)),(_0x3f9f1d=this[_0xd09dce(0x15f)])==null||_0x3f9f1d[_0xd09dce(0x13c)](),this['_commandDisposable']=null;}[_0x7360d4(0x204)](){const _0x4f6042=_0x7360d4;var _0x5f482b;(_0x5f482b=this[_0x4f6042(0x15f)])==null||_0x5f482b['dispose'](),this[_0x4f6042(0x1e9)][_0x4f6042(0x206)](_0x4f6042(0x1e0));}[_0x7360d4(0x1f5)](){const _0x4d724e=_0x7360d4;var _0x36f552;this[_0x4d724e(0x1e9)]['next'](_0x4d724e(0x148)),(_0x36f552=this['_commandDisposable'])==null||_0x36f552[_0x4d724e(0x13c)](),this[_0x4d724e(0x15f)]=null;}[_0x7360d4(0x1d5)](){const _0x33f316=_0x7360d4;var _0x32f0c4;this[_0x33f316(0x1e9)][_0x33f316(0x206)]('not-following'),(_0x32f0c4=this[_0x33f316(0x15f)])==null||_0x32f0c4[_0x33f316(0x13c)]();}[_0x7360d4(0x1d7)](_0x2f7dfa){const _0x51065b=_0x7360d4;if([_0x51065b(0x1c2),_0x51065b(0x129),_0x51065b(0x165)][_0x51065b(0x1fc)](this['_status'])||!_0x2f7dfa['data'][_0x51065b(0x132)]||_0x2f7dfa['data']['presenter']===this[_0x51065b(0x1a9)]['getMemberID']())return;this[_0x51065b(0x11e)]===_0x51065b(0x148)&&this[_0x51065b(0x204)]();const _0x3b24db=_0x2f7dfa[_0x51065b(0x1b1)][_0x51065b(0x198)];Object['values'](_0x3b24db)[_0x51065b(0x178)](_0x52c6f0=>{const _0x193ee1=_0x51065b;this[_0x193ee1(0x196)][_0x193ee1(0x13e)](_0x52c6f0['id'],_0x52c6f0['params']?JSON[_0x193ee1(0x197)](_0x52c6f0[_0x193ee1(0x15b)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x577cb2=_0x7360d4;var _0x211f75;this[_0x577cb2(0x1e9)][_0x577cb2(0x206)](_0x577cb2(0x165)),(_0x211f75=this[_0x577cb2(0x15f)])==null||_0x211f75['dispose']();}[_0x7360d4(0x180)](){const _0x4dc37b=_0x7360d4;this[_0x4dc37b(0x1e9)][_0x4dc37b(0x206)]('idle'),this[_0x4dc37b(0x138)]();}},_0x1c5f91['LiveShareCoordinator']=_0x5cb2ff([_0x58bb4e(0x2,_0x342837[_0x7360d4(0x13f)]),_0x58bb4e(0x3,_0x342837[_0x7360d4(0x1fe)](_0x16957c)),_0x58bb4e(0x4,_0x342837[_0x7360d4(0x195)])],_0x1c5f91['LiveShareCoordinator']);function _0x245629(){const _0x58a902=_0x7360d4,_0x4c828a=_0x20cf75[_0x58a902(0x17e)](_0x1c5f91['LiveShareController']),_0xc9d43f=_0x20cf75[_0x58a902(0x17e)](_0x342837['IUniverInstanceService']),_0x7d41da=_0x20cf75[_0x58a902(0x1ea)](()=>_0xc9d43f[_0x58a902(0x143)](_0x342837[_0x58a902(0x190)][_0x58a902(0x194)]),void 0x0,!0x1,[]),[_0x1be1b1,_0x2d6654]=_0x2af741[_0x58a902(0x184)](null),[_0x7fe31b,_0x3fe9f3]=_0x2af741[_0x58a902(0x184)](_0x1aabba[_0x58a902(0x203)]),_0x394adb=_0x2af741[_0x58a902(0x17f)](null);return _0x2af741['useEffect'](()=>(_0x7d41da&&_0x4c828a[_0x58a902(0x16a)](_0x7d41da[_0x58a902(0x176)]())[_0x58a902(0x1b7)](_0x29e3d7=>{const _0x4be241=_0x58a902;_0x2d6654(_0x29e3d7),_0x394adb[_0x4be241(0x154)]=_0x29e3d7['status$']['subscribe'](_0xdd020=>{_0x3fe9f3(_0xdd020);});}),()=>{const _0x5e89ad=_0x58a902;var _0x14048e;(_0x14048e=_0x394adb[_0x5e89ad(0x154)])==null||_0x14048e['unsubscribe'](),_0x394adb[_0x5e89ad(0x154)]=null;}),[_0x7d41da,_0x4c828a]),_0x1be1b1?_0x5d3518[_0x58a902(0x1ba)](_0x19382c[_0x58a902(0x1b6)],{'align':_0x58a902(0x1dd),'disabled':_0x7fe31b===_0x1aabba[_0x58a902(0x1a0)],'className':_0x58a902(0x1a8),'overlay':_0x5d3518[_0x58a902(0x1ba)](_0xe21a01,{'status':_0x7fe31b,'coordinator':_0x1be1b1}),'children':_0x5d3518[_0x58a902(0x1ba)]('button',{'className':_0x19382c[_0x58a902(0x1aa)](_0x58a902(0x1f1),{'univer-cursor-not-allowed':_0x7fe31b===_0x1aabba['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x7fe31b!==_0x1aabba[_0x58a902(0x1a0)]}),'type':'button','children':_0x5d3518[_0x58a902(0x1ba)](_0x342eb9,{'className':_0x58a902(0x1ff)})})}):null;}function _0xe21a01(_0x44a76f){const _0x7169b5=_0x7360d4,{status:_0x340aa1,coordinator:_0x48cb5b}=_0x44a76f;switch(_0x340aa1){case _0x1aabba[_0x7169b5(0x203)]:return _0x5d3518[_0x7169b5(0x1ba)](_0x3b695d,{'coordinator':_0x48cb5b});case _0x1aabba[_0x7169b5(0x13d)]:return _0x5d3518[_0x7169b5(0x1ba)](_0x3b871b,{'coordinator':_0x48cb5b});case _0x1aabba[_0x7169b5(0x1cd)]:return _0x5d3518[_0x7169b5(0x1ba)](_0x107415,{'coordinator':_0x48cb5b});case _0x1aabba[_0x7169b5(0x1a0)]:return _0x5d3518[_0x7169b5(0x1ba)](_0x31f1fa,{});case _0x1aabba[_0x7169b5(0x13b)]:return _0x5d3518['jsx'](_0x3218bd,{'coordinator':_0x48cb5b});default:return null;}}function _0x3b695d(_0x42efa2){const _0x5498d2=_0x7360d4,{coordinator:_0x265161}=_0x42efa2;return _0x5d3518[_0x5498d2(0x166)](_0x5d3518[_0x5498d2(0x12a)],{'children':[_0x5d3518[_0x5498d2(0x1ba)](_0x5498d2(0x188),{'className':_0x5498d2(0x149),'children':_0x5498d2(0x161)}),_0x5d3518[_0x5498d2(0x1ba)](_0x19382c[_0x5498d2(0x1d6)],{'onClick':()=>_0x265161[_0x5498d2(0x19f)](),'children':_0x5498d2(0x1d8)})]});}function _0x3b871b(_0x18c67d){const _0x182919=_0x7360d4,{coordinator:_0x55972c}=_0x18c67d;return _0x5d3518[_0x182919(0x166)](_0x5d3518[_0x182919(0x12a)],{'children':[_0x5d3518[_0x182919(0x1ba)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x5d3518[_0x182919(0x1ba)](_0x19382c['Button'],{'onClick':()=>_0x55972c[_0x182919(0x168)](),'children':_0x182919(0x18a)})]});}function _0x107415(_0x12c7d0){const _0x1f3ea3=_0x7360d4,{coordinator:_0x4a479b}=_0x12c7d0;return _0x5d3518[_0x1f3ea3(0x166)](_0x5d3518['Fragment'],{'children':[_0x5d3518['jsx'](_0x1f3ea3(0x188),{'className':_0x1f3ea3(0x149),'children':_0x1f3ea3(0x133)}),_0x5d3518['jsx'](_0x19382c[_0x1f3ea3(0x1d6)],{'variant':_0x1f3ea3(0x141),'onClick':()=>_0x4a479b[_0x1f3ea3(0x1c7)](),'children':_0x1f3ea3(0x1db)})]});}function _0x3218bd(_0x51e777){const _0x506f50=_0x7360d4,{coordinator:_0x30ba29}=_0x51e777;return _0x5d3518['jsxs'](_0x5d3518[_0x506f50(0x12a)],{'children':[_0x5d3518[_0x506f50(0x1ba)](_0x506f50(0x188),{'className':_0x506f50(0x149),'children':_0x506f50(0x1fb)}),_0x5d3518[_0x506f50(0x1ba)](_0x19382c[_0x506f50(0x1d6)],{'variant':_0x506f50(0x1f4),'onClick':()=>_0x30ba29[_0x506f50(0x1be)](),'children':_0x506f50(0x202)})]});}function _0x31f1fa(){const _0x55acb2=_0x7360d4;return _0x5d3518[_0x55acb2(0x1ba)](_0x5d3518[_0x55acb2(0x12a)],{'children':_0x55acb2(0x162)});}var _0x1e559a=Object[_0x7360d4(0x140)],_0x268bf6=(_0x95e674,_0x5f1d04,_0x17ca30,_0x232611)=>{const _0x12b519=_0x7360d4;for(var _0x1fc10f=_0x232611>0x1?void 0x0:_0x232611?_0x1e559a(_0x5f1d04,_0x17ca30):_0x5f1d04,_0x2aa0e8=_0x95e674[_0x12b519(0x14d)]-0x1,_0x376fb1;_0x2aa0e8>=0x0;_0x2aa0e8--)(_0x376fb1=_0x95e674[_0x2aa0e8])&&(_0x1fc10f=_0x376fb1(_0x1fc10f)||_0x1fc10f);return _0x1fc10f;},_0x186dc6=(_0xa80f06,_0x17b0c4)=>(_0x567a16,_0x5a4e2a)=>_0x17b0c4(_0x567a16,_0x5a4e2a,_0xa80f06);_0x1c5f91[_0x7360d4(0x177)]=class extends _0x342837[_0x7360d4(0x1c3)]{constructor(_0x4c2d86,_0x16a9a0){const _0x1ab2c5=_0x7360d4;super(),this[_0x1ab2c5(0x128)]=_0x4c2d86,this[_0x1ab2c5(0x208)]=_0x16a9a0,this[_0x1ab2c5(0x209)]();}['_mountLiveShare'](){const _0x312966=_0x7360d4;this[_0x312966(0x12e)](this[_0x312966(0x208)]['registerComponent'](_0x20cf75[_0x312966(0x167)][_0x312966(0x159)],()=>_0x20cf75[_0x312966(0x179)](_0x245629,this[_0x312966(0x128)])));}},_0x1c5f91[_0x7360d4(0x177)]=_0x268bf6([_0x186dc6(0x0,_0x342837['Inject'](_0x342837['Injector'])),_0x186dc6(0x1,_0x20cf75[_0x7360d4(0x1b0)])],_0x1c5f91['DesktopLiveShareController']);const _0x273c6a=_0x7360d4(0x1d0),_0x371327={};var _0x2058a4=Object[_0x7360d4(0x140)],_0x1238be=(_0x1be501,_0x9124de,_0x41b7e1,_0x3b9ed0)=>{for(var _0x125c1e=_0x3b9ed0>0x1?void 0x0:_0x3b9ed0?_0x2058a4(_0x9124de,_0x41b7e1):_0x9124de,_0x5fbf03=_0x1be501['length']-0x1,_0x45aa3d;_0x5fbf03>=0x0;_0x5fbf03--)(_0x45aa3d=_0x1be501[_0x5fbf03])&&(_0x125c1e=_0x45aa3d(_0x125c1e)||_0x125c1e);return _0x125c1e;},_0x284e46=(_0x219df5,_0xae8d1f)=>(_0x58d9ee,_0x42d115)=>_0xae8d1f(_0x58d9ee,_0x42d115,_0x219df5);let _0x2fcbb6=class extends _0x342837[_0x7360d4(0x1c3)]{constructor(_0x535405){const _0x830a94=_0x7360d4;super(),this[_0x830a94(0x127)]=_0x535405,this[_0x830a94(0x186)]();}['_init'](){const _0xb52c97=_0x7360d4;[_0x51dae5['SetZoomRatioOperation']['id'],_0x51dae5[_0xb52c97(0x1ad)]['id'],_0x22bb53[_0xb52c97(0x1a5)]['id']][_0xb52c97(0x178)](_0x20c02b=>{const _0x190382=_0xb52c97;this[_0x190382(0x12e)](this['_liveShareService'][_0x190382(0x1b3)](_0x20c02b));});}};_0x2fcbb6=_0x1238be([_0x284e46(0x0,_0x342837[_0x7360d4(0x1fe)](_0x16957c))],_0x2fcbb6);var _0x49b202=Object[_0x7360d4(0x18c)],_0x1281a5=Object[_0x7360d4(0x140)],_0x5eb755=(_0x20d4b0,_0x358fa2,_0x5bfdfe)=>_0x358fa2 in _0x20d4b0?_0x49b202(_0x20d4b0,_0x358fa2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5bfdfe}):_0x20d4b0[_0x358fa2]=_0x5bfdfe,_0x1ff269=(_0x3bad10,_0x11faa4,_0x511b3a,_0x26e6ad)=>{for(var _0x298545=_0x26e6ad>0x1?void 0x0:_0x26e6ad?_0x1281a5(_0x11faa4,_0x511b3a):_0x11faa4,_0x2873da=_0x3bad10['length']-0x1,_0x1e25f5;_0x2873da>=0x0;_0x2873da--)(_0x1e25f5=_0x3bad10[_0x2873da])&&(_0x298545=_0x1e25f5(_0x298545)||_0x298545);return _0x298545;},_0x4afb6f=(_0xc79ea5,_0x455356)=>(_0x564f04,_0x1c40cf)=>_0x455356(_0x564f04,_0x1c40cf,_0xc79ea5),_0xf45197=(_0xb1a850,_0x20387c,_0x33cd70)=>_0x5eb755(_0xb1a850,typeof _0x20387c!=_0x7360d4(0x171)?_0x20387c+'':_0x20387c,_0x33cd70);const _0x5ac992=_0x7360d4(0x1fd);_0x1c5f91[_0x7360d4(0x15c)]=class extends _0x342837[_0x7360d4(0x135)]{constructor(_0x2f9a19=_0x371327,_0x37d1a4,_0x470589){const _0xb665d4=_0x7360d4;super(),this[_0xb665d4(0x14e)]=_0x2f9a19,this['_injector']=_0x37d1a4,this[_0xb665d4(0x11f)]=_0x470589;const {..._0x49e5fc}=_0x342837[_0xb665d4(0x1f9)]({},_0x371327,this[_0xb665d4(0x14e)]);this[_0xb665d4(0x11f)]['setConfig'](_0x273c6a,_0x49e5fc);}['onStarting'](){const _0x31f021=_0x7360d4;_0x342837[_0x31f021(0x175)](this[_0x31f021(0x128)],_0x342837[_0x31f021(0x153)]([[_0x16957c],[_0x1c5f91[_0x31f021(0x1c0)]],[_0x2fcbb6],[_0x1c5f91['DesktopLiveShareController']]],this[_0x31f021(0x14e)][_0x31f021(0x172)])),_0x342837['touchDependencies'](this[_0x31f021(0x128)],[[_0x2fcbb6]]);}['onRendered'](){const _0x132b49=_0x7360d4;_0x342837[_0x132b49(0x16c)](this['_injector'],[[_0x1c5f91[_0x132b49(0x177)]]]);}},_0xf45197(_0x1c5f91[_0x7360d4(0x15c)],'type',_0x342837['UniverInstanceType'][_0x7360d4(0x1e2)]),_0xf45197(_0x1c5f91[_0x7360d4(0x15c)],_0x7360d4(0x17a),_0x5ac992),_0x1c5f91['UniverLiveSharePlugin']=_0x1ff269([_0x342837['DependentOn'](_0x4b3acb[_0x7360d4(0x1ee)]),_0x4afb6f(0x1,_0x342837[_0x7360d4(0x1fe)](_0x342837[_0x7360d4(0x157)])),_0x4afb6f(0x2,_0x342837[_0x7360d4(0x13f)])],_0x1c5f91[_0x7360d4(0x15c)]),_0x1c5f91[_0x7360d4(0x1cb)]=_0x245629,_0x1c5f91[_0x7360d4(0x1c4)]=_0x16957c,_0x1c5f91[_0x7360d4(0x189)]=_0x1aabba,Object[_0x7360d4(0x18c)](_0x1c5f91,Symbol[_0x7360d4(0x1ef)],{'value':'Module'});}));
|
|
1
|
+
(function(_0xa5b8ee,_0x333a2a){const _0x4c9a0a=_0x3f98,_0x5c9227=_0xa5b8ee();while(!![]){try{const _0x54d220=-parseInt(_0x4c9a0a(0x117))/0x1*(parseInt(_0x4c9a0a(0xa1))/0x2)+-parseInt(_0x4c9a0a(0x15d))/0x3+parseInt(_0x4c9a0a(0xc3))/0x4*(-parseInt(_0x4c9a0a(0x9f))/0x5)+-parseInt(_0x4c9a0a(0xb7))/0x6+parseInt(_0x4c9a0a(0xc7))/0x7*(-parseInt(_0x4c9a0a(0x12b))/0x8)+parseInt(_0x4c9a0a(0x138))/0x9*(parseInt(_0x4c9a0a(0x125))/0xa)+parseInt(_0x4c9a0a(0x93))/0xb;if(_0x54d220===_0x333a2a)break;else _0x5c9227['push'](_0x5c9227['shift']());}catch(_0x15a4ee){_0x5c9227['push'](_0x5c9227['shift']());}}}(_0x5dc3,0x43c5e),function(_0x10ccba,_0x31d493){const _0x43628a=_0x3f98;typeof exports=='object'&&typeof module<'u'?_0x31d493(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==_0x43628a(0x157)&&define[_0x43628a(0xe5)]?define(['exports','@univerjs/core',_0x43628a(0xd7),_0x43628a(0x153),_0x43628a(0x136),_0x43628a(0x12c),'@univerjs-pro/collaboration',_0x43628a(0xe7),'@univerjs/sheets','rxjs',_0x43628a(0xde),_0x43628a(0xb9)],_0x31d493):(_0x10ccba=typeof globalThis<'u'?globalThis:_0x10ccba||self,_0x31d493(_0x10ccba[_0x43628a(0x13a)]={},_0x10ccba[_0x43628a(0x102)],_0x10ccba['UniverUi'],_0x10ccba['React'],_0x10ccba[_0x43628a(0x146)],_0x10ccba[_0x43628a(0x148)],_0x10ccba['UniverProCollaboration'],_0x10ccba[_0x43628a(0x156)],_0x10ccba['UniverSheets'],_0x10ccba[_0x43628a(0x115)],_0x10ccba[_0x43628a(0x115)][_0x43628a(0xbf)],_0x10ccba[_0x43628a(0xf2)]));}(this,function(_0x784c83,_0x21d2bc,_0x2cd6f3,_0xa8e110,_0x8fc2ee,_0x4ab7b3,_0x5b59d7,_0x2a3a18,_0x1bab7d,_0x4144a4,_0x35ee97,_0xdc1aaa){'use strict';const _0x3a813a=_0x3f98;var _0x38fb5c=Object[_0x3a813a(0x143)],_0x3544c2=(_0x3b1a97,_0x408139,_0x4b796e)=>_0x408139 in _0x3b1a97?_0x38fb5c(_0x3b1a97,_0x408139,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b796e}):_0x3b1a97[_0x408139]=_0x4b796e,_0x2f63d4=(_0x26ed2c,_0x2949f,_0x4e393b)=>_0x3544c2(_0x26ed2c,typeof _0x2949f!=_0x3a813a(0x137)?_0x2949f+'':_0x2949f,_0x4e393b);function _0x1085bb({ref:_0x3c4c24,..._0x23c112}){const _0x33086b=_0x3a813a,{icon:_0x556ebe,id:_0x347a52,className:_0x53b64f,extend:_0x13c651,..._0x265409}=_0x23c112,_0x486681=('univerjs-icon\x20univerjs-icon-'+_0x347a52+'\x20'+(_0x53b64f||''))['trim'](),_0x24e542=_0x4ab7b3[_0x33086b(0xf9)]('_'+_0x531a0f());return _0x40c634(_0x556ebe,''+_0x347a52,{'defIds':_0x556ebe['defIds'],'idSuffix':_0x24e542[_0x33086b(0x108)]},{'ref':_0x3c4c24,'className':_0x486681,..._0x265409},_0x13c651);}function _0x40c634(_0x4c42a8,_0x1c61e3,_0x1cc5bb,_0x162141,_0x49a0d7){const _0x169fd2=_0x3a813a;return _0x4ab7b3[_0x169fd2(0xa7)](_0x4c42a8['tag'],{'key':_0x1c61e3,..._0x3a6f18(_0x4c42a8,_0x1cc5bb,_0x49a0d7),..._0x162141},(_0x4f8ea5(_0x4c42a8,_0x1cc5bb)[_0x169fd2(0xa3)]||[])[_0x169fd2(0x128)]((_0x3c58fe,_0x15c18e)=>_0x40c634(_0x3c58fe,_0x1c61e3+'-'+_0x4c42a8['tag']+'-'+_0x15c18e,_0x1cc5bb,void 0x0,_0x49a0d7)));}function _0x3a6f18(_0x5078bb,_0x43c983,_0x72e5a7){const _0x483bff=_0x3a813a,_0x32c11a={..._0x5078bb[_0x483bff(0xf7)]};_0x72e5a7!=null&&_0x72e5a7[_0x483bff(0x144)]&&_0x32c11a[_0x483bff(0x11c)]===_0x483bff(0x144)&&(_0x32c11a[_0x483bff(0x11c)]=_0x72e5a7[_0x483bff(0x144)]),_0x5078bb['tag']==='mask'&&_0x32c11a['id']&&(_0x32c11a['id']=_0x32c11a['id']+_0x43c983[_0x483bff(0xe3)]),Object['entries'](_0x32c11a)['forEach'](([_0x32f091,_0x34acaf])=>{const _0x6efe66=_0x483bff;_0x32f091===_0x6efe66(0x12e)&&typeof _0x34acaf==_0x6efe66(0x133)&&(_0x32c11a[_0x32f091]=_0x34acaf[_0x6efe66(0xab)](/url\(#(.*)\)/,'url(#$1'+_0x43c983['idSuffix']+')'));});const {defIds:_0xa4033a}=_0x43c983;return!_0xa4033a||_0xa4033a[_0x483bff(0xeb)]===0x0||(_0x5078bb['tag']===_0x483bff(0xcc)&&_0x32c11a[_0x483bff(0xd6)]&&(_0x32c11a[_0x483bff(0xd6)]=_0x32c11a['xlink:href']+_0x43c983['idSuffix']),Object['entries'](_0x32c11a)[_0x483bff(0x12d)](([_0x28fcc4,_0x1e8151])=>{const _0x4c3205=_0x483bff;typeof _0x1e8151==_0x4c3205(0x133)&&(_0x32c11a[_0x28fcc4]=_0x1e8151['replace'](/url\(#(.*)\)/,_0x4c3205(0x10b)+_0x43c983[_0x4c3205(0xe3)]+')'));})),_0x32c11a;}function _0x4f8ea5(_0x1868a9,_0x54f368){const _0x2757fa=_0x3a813a;var _0x2b99af;const {defIds:_0x50b443}=_0x54f368;return!_0x50b443||_0x50b443[_0x2757fa(0xeb)]===0x0?_0x1868a9:_0x1868a9[_0x2757fa(0x164)]===_0x2757fa(0xf5)&&((_0x2b99af=_0x1868a9[_0x2757fa(0xa3)])!=null&&_0x2b99af[_0x2757fa(0xeb)])?{..._0x1868a9,'children':_0x1868a9['children'][_0x2757fa(0x128)](_0x3476f3=>typeof _0x3476f3[_0x2757fa(0xf7)]['id']==_0x2757fa(0x133)&&_0x50b443&&_0x50b443[_0x2757fa(0xa6)](_0x3476f3[_0x2757fa(0xf7)]['id'])?{..._0x3476f3,'attrs':{..._0x3476f3[_0x2757fa(0xf7)],'id':_0x3476f3['attrs']['id']+_0x54f368['idSuffix']}}:_0x3476f3)}:_0x1868a9;}function _0x531a0f(){const _0x54e2c8=_0x3a813a;return Math['random']()[_0x54e2c8(0xb2)](0x24)[_0x54e2c8(0xd8)](0x2,0x8);}_0x1085bb[_0x3a813a(0xf3)]=_0x3a813a(0x132);const _0x71a2e5={'tag':_0x3a813a(0x13d),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3a813a(0xbb),'viewBox':_0x3a813a(0x119),'width':'1em','height':_0x3a813a(0x147)},'children':[{'tag':_0x3a813a(0xcd),'attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x3a813a(0xcd),'attrs':{'fill':_0x3a813a(0xa0),'d':_0x3a813a(0xa9),'fillRule':_0x3a813a(0x9b),'clipRule':_0x3a813a(0x9b)}}]},_0x565bb0=_0x4ab7b3[_0x3a813a(0x161)](function(_0xf98063,_0x53b0d4){const _0xe2c32a=_0x3a813a;return _0x4ab7b3[_0xe2c32a(0xa7)](_0x1085bb,Object['assign']({},_0xf98063,{'id':_0xe2c32a(0xc9),'ref':_0x53b0d4,'icon':_0x71a2e5}));});_0x565bb0[_0x3a813a(0xf3)]='LiveShareIcon';class _0x1319ac extends _0x21d2bc['Disposable']{constructor(){const _0x317b1d=_0x3a813a;super(...arguments),_0x2f63d4(this,'_sharedOperations',new Set()),_0x2f63d4(this,_0x317b1d(0xb0),new Set());}[_0x3a813a(0x14c)](_0x42b74f){const _0x2430e7=_0x3a813a;return this[_0x2430e7(0x124)][_0x2430e7(0xfe)](_0x42b74f),_0x21d2bc['toDisposable'](()=>this[_0x2430e7(0x124)][_0x2430e7(0x139)](_0x42b74f));}['registerInitialStateReporter'](_0x29f5df){const _0x55f895=_0x3a813a;return this['_reporters']['add'](_0x29f5df),_0x21d2bc[_0x55f895(0x154)](()=>this[_0x55f895(0xb0)][_0x55f895(0x139)](_0x29f5df));}[_0x3a813a(0x145)](_0x5a8083){const _0x1b6480=_0x3a813a;return this[_0x1b6480(0x124)][_0x1b6480(0x131)](_0x5a8083);}['getInitialStates'](_0x514e43){const _0x2209dc=_0x3a813a;return Array[_0x2209dc(0xe1)](this[_0x2209dc(0xb0)])['map'](_0x229a10=>_0x229a10(_0x514e43));}}var _0x5200b6=Object[_0x3a813a(0x13b)],_0x9b581b=(_0x59a0e4,_0x461502,_0x4aa74c,_0x38dfab)=>{const _0x27d238=_0x3a813a;for(var _0x17077e=_0x38dfab>0x1?void 0x0:_0x38dfab?_0x5200b6(_0x461502,_0x4aa74c):_0x461502,_0x56afaa=_0x59a0e4[_0x27d238(0xeb)]-0x1,_0x57fad6;_0x56afaa>=0x0;_0x56afaa--)(_0x57fad6=_0x59a0e4[_0x56afaa])&&(_0x17077e=_0x57fad6(_0x17077e)||_0x17077e);return _0x17077e;},_0x2c1587=(_0x77e526,_0x48f166)=>(_0x3aa77e,_0x31e112)=>_0x48f166(_0x3aa77e,_0x31e112,_0x77e526);_0x784c83['LiveShareController']=class extends _0x21d2bc[_0x3a813a(0x13c)]{constructor(_0x2b82b4,_0x8c2258,_0xfe4586){const _0x503492=_0x3a813a;super(),_0x2f63d4(this,'_entities',new Map()),(this[_0x503492(0xc4)]=_0x2b82b4,this[_0x503492(0x97)]=_0x8c2258,this[_0x503492(0xae)]=_0xfe4586,this[_0x503492(0x104)]());}async[_0x3a813a(0xa4)](_0x24e5bd){const _0x5bb719=_0x3a813a;return this[_0x5bb719(0xff)][_0x5bb719(0x131)](_0x24e5bd)||await this[_0x5bb719(0xf1)](_0x24e5bd),this['_entities']['get'](_0x24e5bd);}[_0x3a813a(0x92)](_0x5799db){const _0x3cca86=_0x3a813a;var _0x45204c;return(_0x45204c=this[_0x3cca86(0xff)]['get'](_0x5799db))!=null?_0x45204c:null;}[_0x3a813a(0x104)](){const _0x1b578c=_0x3a813a;this[_0x1b578c(0xc4)][_0x1b578c(0x10d)](_0x21d2bc[_0x1b578c(0xb4)][_0x1b578c(0x8c)])[_0x1b578c(0x166)](_0x35ee97['takeUntil'](this[_0x1b578c(0xbd)]))[_0x1b578c(0xda)](async _0x2d0b9c=>{const _0x2a4291=_0x1b578c,_0x13e5c9=_0x2d0b9c[_0x2a4291(0x142)]();this[_0x2a4291(0xff)][_0x2a4291(0x131)](_0x13e5c9)||this[_0x2a4291(0xf1)](_0x13e5c9);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x21d2bc['UniverInstanceType'][_0x1b578c(0x8c)])[_0x1b578c(0x166)](_0x35ee97[_0x1b578c(0x129)](this['dispose$']))['subscribe'](_0x298138=>{const _0x4fc2c5=_0x1b578c,_0x25e497=_0x298138['getUnitId'](),_0x357455=this[_0x4fc2c5(0xff)]['get'](_0x25e497);_0x357455==null||_0x357455[_0x4fc2c5(0xb6)]();});}async[_0x3a813a(0xf1)](_0x1a9808){const _0x532fc4=_0x3a813a,_0x3bbd08=await this[_0x532fc4(0xae)]['requireSession'](_0x1a9808),_0xa767f=this[_0x532fc4(0x97)][_0x532fc4(0x8f)](_0x784c83[_0x532fc4(0x140)],_0x1a9808,_0x3bbd08);return _0xa767f[_0x532fc4(0x159)](),this['_entities']['set'](_0x1a9808,_0xa767f),_0xa767f;}},_0x784c83['LiveShareController']=_0x9b581b([_0x2c1587(0x0,_0x21d2bc[_0x3a813a(0x152)]),_0x2c1587(0x1,_0x21d2bc[_0x3a813a(0x15e)](_0x21d2bc[_0x3a813a(0x14e)])),_0x2c1587(0x2,_0x21d2bc['Inject'](_0x2a3a18['CollaborationSessionService']))],_0x784c83['LiveShareController']);var _0x59ab26=(_0xd86f6b=>(_0xd86f6b['OFFLINE']='offline',_0xd86f6b[_0x3a813a(0x10c)]=_0x3a813a(0xef),_0xd86f6b[_0x3a813a(0x116)]='following',_0xd86f6b[_0x3a813a(0xdc)]=_0x3a813a(0xa8),_0xd86f6b[_0x3a813a(0x103)]='presenting',_0xd86f6b))(_0x59ab26||{});const _0x3bbd30=_0x3a813a(0x11b),_0x4f3e88=0xc8;_0x784c83['LiveShareCoordinator']=class extends _0x21d2bc[_0x3a813a(0x13c)]{constructor(_0x254dab,_0x2fc749,_0x46e980,_0xe71d57,_0x46a421){const _0xf75069=_0x3a813a;super(),_0x2f63d4(this,_0xf75069(0x10f),new _0x4144a4[(_0xf75069(0x151))]('idle')),_0x2f63d4(this,'status$',this['_status$'][_0xf75069(0x135)]()),_0x2f63d4(this,_0xf75069(0x104),!0x1),_0x2f63d4(this,_0xf75069(0x91),null),_0x2f63d4(this,_0xf75069(0xa2),null),(this[_0xf75069(0xb5)]=_0x254dab,this['_collabSession']=_0x2fc749,this['_configService']=_0x46e980,this['_liveShareService']=_0xe71d57,this[_0xf75069(0xfb)]=_0x46a421);}get[_0x3a813a(0x14f)](){const _0x208f00=_0x3a813a;return this[_0x208f00(0x10f)][_0x208f00(0x13f)]();}[_0x3a813a(0xb6)](){const _0x2b4199=_0x3a813a;var _0x4cc979;(_0x4cc979=this['_commandDisposable'])==null||_0x4cc979[_0x2b4199(0xb6)](),this[_0x2b4199(0x10f)][_0x2b4199(0x109)](_0x2b4199(0xef)),this[_0x2b4199(0x10f)]['complete']();}['getStatus'](){const _0x5a4e87=_0x3a813a;return this[_0x5a4e87(0x14f)];}[_0x3a813a(0x159)](){const _0x42f537=_0x3a813a;this[_0x42f537(0x104)]||(this[_0x42f537(0x104)]=!0x0,this['_collabSession'][_0x42f537(0x113)][_0x42f537(0x166)](_0x35ee97[_0x42f537(0x129)](this['dispose$']))[_0x42f537(0xda)](_0x19157d=>{const _0x1f3a15=_0x42f537;switch(_0x19157d){case _0x2a3a18[_0x1f3a15(0x155)][_0x1f3a15(0x111)]:this['_handleOffline']();break;case _0x2a3a18['SessionStatus']['ONLINE']:this['_handleOnline']();break;}}),this[_0x42f537(0xc2)][_0x42f537(0xc1)][_0x42f537(0x166)](_0x35ee97[_0x42f537(0x129)](this['dispose$']))['subscribe'](_0x37cd16=>{const _0x5b7794=_0x42f537,{eventID:_0x5cb56f}=_0x37cd16;switch(_0x5cb56f){case _0x5b59d7['CollaborationEvent'][_0x5b7794(0xbc)]:this[_0x5b7794(0x149)](_0x37cd16);break;case _0x5b59d7['CollaborationEvent'][_0x5b7794(0xee)]:this[_0x5b7794(0x11e)](_0x37cd16);break;case _0x5b59d7['CollaborationEvent'][_0x5b7794(0xac)]:this[_0x5b7794(0x90)]();break;case _0x5b59d7[_0x5b7794(0xe8)][_0x5b7794(0x130)]:this[_0x5b7794(0x141)](_0x37cd16);break;}}));}[_0x3a813a(0xaf)](){const _0x2e9652=_0x3a813a;this['_collabSession'][_0x2e9652(0xad)]({'eventID':_0x5b59d7['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x2e9652(0xb5)],'userID':this[_0x2e9652(0xc2)]['getMemberID']()}},this[_0x2e9652(0xb5)]);}[_0x3a813a(0x112)](){const _0x34df14=_0x3a813a;this[_0x34df14(0x14f)]===_0x34df14(0xb1)&&(this[_0x34df14(0x10f)][_0x34df14(0x109)]('idle'),this['_collabSession'][_0x34df14(0xad)]({'eventID':_0x5b59d7[_0x34df14(0xe8)][_0x34df14(0xac)],'data':{'unitID':this[_0x34df14(0xb5)]}},this[_0x34df14(0xb5)]));}[_0x3a813a(0x110)](){const _0x21afed=_0x3a813a;this[_0x21afed(0x14f)]===_0x21afed(0xa8)&&(this[_0x21afed(0x10f)][_0x21afed(0x109)]('following'),this[_0x21afed(0xec)]());}[_0x3a813a(0xdb)](){const _0x4a134e=_0x3a813a;this[_0x4a134e(0x14f)]===_0x4a134e(0x15f)&&this['_stopFollowing']();}[_0x3a813a(0x149)](_0x45a29a){const _0x3045ed=_0x3a813a,{presenter:_0x18cf8b}=_0x45a29a['data'],_0x187fc5=this['_collabSession']['getMemberID']();this[_0x3045ed(0xa2)]=_0x18cf8b,_0x18cf8b===_0x187fc5?(this[_0x3045ed(0x9c)](),this['_startPresenting']()):this['_status']!==_0x3045ed(0xa8)&&(this['_stopPresenting'](),this['_startFollowing']());}['_fetchOperations'](){const _0x4f27fb=_0x3a813a,_0x3624da={'eventID':_0x5b59d7['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x4f27fb(0xad)](_0x3624da,this[_0x4f27fb(0xb5)]);}[_0x3a813a(0x90)](){const _0x32ab0d=_0x3a813a;this['_presenter']=null,this[_0x32ab0d(0x14f)]!=='presenting'&&this[_0x32ab0d(0x11f)]();}[_0x3a813a(0x141)](_0x750d1){const _0x13174e=_0x3a813a;if(this[_0x13174e(0x14f)]===_0x13174e(0x15f)&&this[_0x13174e(0xa2)]===_0x750d1[_0x13174e(0xd4)][_0x13174e(0xca)]){const _0x18705c=_0x5b59d7[_0x13174e(0xe4)](_0x750d1[_0x13174e(0xd4)])[_0x13174e(0xb8)][_0x13174e(0xaa)]()[_0x13174e(0x123)](_0x311b06=>_0x311b06['id']===_0x1bab7d[_0x13174e(0xfa)]['id']);if(_0x18705c){const _0xf06c83=_0x18705c[_0x13174e(0x15c)][_0x13174e(0x14d)],_0x497781=_0x18705c[_0x13174e(0x15c)][_0x13174e(0x94)]['id'];setTimeout(()=>{const _0x3ce911=_0x13174e;this[_0x3ce911(0xfb)][_0x3ce911(0xf8)](_0x1bab7d[_0x3ce911(0xf6)]['id'],{'unitId':_0xf06c83,'subUnitId':_0x497781},{'fromCollab':!0x0});});}}}[_0x3a813a(0x13e)](){const _0x5ce6e3=_0x3a813a;this[_0x5ce6e3(0x10f)]['next'](_0x5ce6e3(0xb1));const _0xbc68d6=new Map(),_0x2ad355=this[_0x5ce6e3(0x91)]=new _0x21d2bc[(_0x5ce6e3(0xd1))]();_0x2ad355[_0x5ce6e3(0xfe)](_0x21d2bc['toDisposable'](()=>{const _0x455275=_0x5ce6e3;_0xbc68d6['forEach'](_0x220efb=>_0x220efb[_0x455275(0x10a)]()),_0xbc68d6[_0x455275(0x105)]();})),_0x2ad355[_0x5ce6e3(0xfe)](this['_commandService'][_0x5ce6e3(0x100)](_0x5a7e7f=>{const _0x2ea09f=_0x5ce6e3;var _0x40085e;if(_0x5a7e7f[_0x2ea09f(0x121)]!==_0x21d2bc[_0x2ea09f(0x114)]['OPERATION']||!this[_0x2ea09f(0xa5)][_0x2ea09f(0x145)](_0x5a7e7f['id']))return;const {id:_0x4c1df7}=_0x5a7e7f;let _0x5c9ce1;_0xbc68d6[_0x2ea09f(0x131)](_0x4c1df7)?_0x5c9ce1=_0xbc68d6[_0x2ea09f(0xba)](_0x4c1df7):(_0x5c9ce1=new _0x4144a4['Subject'](),_0xbc68d6['set'](_0x4c1df7,_0x5c9ce1),_0x5c9ce1[_0x2ea09f(0x166)](_0x35ee97[_0x2ea09f(0xea)]((_0x40085e=this[_0x2ea09f(0xed)][_0x2ea09f(0x122)](_0x3bbd30))!=null?_0x40085e:_0x4f3e88,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2ea09f(0xda)](_0x21d11d=>{const _0x3adb65=_0x2ea09f;this[_0x3adb65(0xc2)][_0x3adb65(0xad)]({'eventID':_0x5b59d7['CollaborationEvent'][_0x3adb65(0xee)],'data':{'unitID':this[_0x3adb65(0xb5)],'operations':{[_0x21d11d['id']]:{'id':_0x21d11d['id'],'params':JSON[_0x3adb65(0x101)](_0x21d11d['params'])}}}},this['_unitID']);})),_0x5c9ce1[_0x2ea09f(0x109)](_0x5a7e7f);})),this[_0x5ce6e3(0xa5)][_0x5ce6e3(0x165)](this[_0x5ce6e3(0xb5)])[_0x5ce6e3(0x12d)](_0x378b0d=>this[_0x5ce6e3(0xc2)][_0x5ce6e3(0xad)]({'eventID':_0x5b59d7[_0x5ce6e3(0xe8)][_0x5ce6e3(0xee)],'data':{'unitID':this[_0x5ce6e3(0xb5)],'operations':{[_0x378b0d['id']]:{'id':_0x378b0d['id'],'params':JSON['stringify'](_0x378b0d['params'])}}}},this[_0x5ce6e3(0xb5)]));}[_0x3a813a(0x95)](){const _0x22c3ee=_0x3a813a;var _0x66e144;this[_0x22c3ee(0x10f)][_0x22c3ee(0x109)](_0x22c3ee(0xef)),(_0x66e144=this['_commandDisposable'])==null||_0x66e144[_0x22c3ee(0xb6)](),this[_0x22c3ee(0x91)]=null;}[_0x3a813a(0xec)](){const _0x547537=_0x3a813a;var _0x290f31;(_0x290f31=this[_0x547537(0x91)])==null||_0x290f31['dispose'](),this[_0x547537(0x10f)][_0x547537(0x109)]('following');}[_0x3a813a(0x11f)](){const _0x1f2e52=_0x3a813a;var _0x1d1868;this['_status$'][_0x1f2e52(0x109)](_0x1f2e52(0xef)),(_0x1d1868=this[_0x1f2e52(0x91)])==null||_0x1d1868['dispose'](),this[_0x1f2e52(0x91)]=null;}[_0x3a813a(0x9c)](){const _0x5ad521=_0x3a813a;var _0x37b252;this[_0x5ad521(0x10f)][_0x5ad521(0x109)](_0x5ad521(0xa8)),(_0x37b252=this['_commandDisposable'])==null||_0x37b252['dispose']();}[_0x3a813a(0x11e)](_0x21b31b){const _0x299e49=_0x3a813a;if([_0x299e49(0xb1),_0x299e49(0xa8),'offline'][_0x299e49(0xa6)](this[_0x299e49(0x14f)])||!_0x21b31b[_0x299e49(0xd4)][_0x299e49(0xd9)]||_0x21b31b[_0x299e49(0xd4)][_0x299e49(0xd9)]===this[_0x299e49(0xc2)]['getMemberID']())return;this['_status']==='idle'&&this['_startFollowing']();const _0x24718f=_0x21b31b[_0x299e49(0xd4)]['operations'];Object['values'](_0x24718f)[_0x299e49(0x12d)](_0x504df3=>{const _0x2dba4e=_0x299e49;this['_commandService'][_0x2dba4e(0xf8)](_0x504df3['id'],_0x504df3[_0x2dba4e(0x15c)]?JSON[_0x2dba4e(0x10e)](_0x504df3[_0x2dba4e(0x15c)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x54e9bd=_0x3a813a;var _0x62fa5f;this[_0x54e9bd(0x10f)][_0x54e9bd(0x109)](_0x54e9bd(0x126)),(_0x62fa5f=this[_0x54e9bd(0x91)])==null||_0x62fa5f['dispose']();}[_0x3a813a(0xce)](){const _0x14f638=_0x3a813a;this[_0x14f638(0x10f)][_0x14f638(0x109)](_0x14f638(0xef)),this['_fetchOperations']();}},_0x784c83[_0x3a813a(0x140)]=_0x9b581b([_0x2c1587(0x2,_0x21d2bc[_0x3a813a(0x163)]),_0x2c1587(0x3,_0x21d2bc[_0x3a813a(0x15e)](_0x1319ac)),_0x2c1587(0x4,_0x21d2bc[_0x3a813a(0xfd)])],_0x784c83['LiveShareCoordinator']);function _0x49ae53(){const _0x49905c=_0x3a813a,_0x1975a4=_0x2cd6f3['useDependency'](_0x784c83[_0x49905c(0xc6)]),_0x26d86a=_0x2cd6f3[_0x49905c(0xe6)](_0x21d2bc[_0x49905c(0x152)]),_0x355ce8=_0x2cd6f3[_0x49905c(0x98)](()=>_0x26d86a[_0x49905c(0x9d)](_0x21d2bc[_0x49905c(0xb4)][_0x49905c(0x8c)]),void 0x0,!0x1,[]),[_0x1a161a,_0x30057f]=_0x4ab7b3[_0x49905c(0xf4)](null),[_0x2a4232,_0xf43d4b]=_0x4ab7b3['useState'](_0x59ab26['IDLE']),_0x3c7198=_0x4ab7b3[_0x49905c(0xf9)](null);return _0x4ab7b3['useEffect'](()=>(_0x355ce8&&_0x1975a4[_0x49905c(0xa4)](_0x355ce8[_0x49905c(0x142)]())[_0x49905c(0x8e)](_0x1c1507=>{const _0x51d04d=_0x49905c;_0x30057f(_0x1c1507),_0x3c7198['current']=_0x1c1507[_0x51d04d(0x11d)][_0x51d04d(0xda)](_0x1d614a=>{_0xf43d4b(_0x1d614a);});}),()=>{const _0x33b390=_0x49905c;var _0x420d1f;(_0x420d1f=_0x3c7198[_0x33b390(0x108)])==null||_0x420d1f[_0x33b390(0x14b)](),_0x3c7198[_0x33b390(0x108)]=null;}),[_0x355ce8,_0x1975a4]),_0x1a161a?_0xa8e110[_0x49905c(0xbe)](_0x8fc2ee[_0x49905c(0xd0)],{'align':'end','disabled':_0x2a4232===_0x59ab26['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':_0xa8e110[_0x49905c(0xbe)](_0x3391b4,{'status':_0x2a4232,'coordinator':_0x1a161a}),'children':_0xa8e110[_0x49905c(0xbe)]('button',{'className':_0x8fc2ee['clsx'](_0x49905c(0xc0),{'univer-cursor-not-allowed':_0x2a4232===_0x59ab26['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2a4232!==_0x59ab26[_0x49905c(0x111)]}),'type':_0x49905c(0xd5),'children':_0xa8e110[_0x49905c(0xbe)](_0x565bb0,{'className':_0x49905c(0x162)})})}):null;}function _0x3391b4(_0xa7824d){const _0x39b6c9=_0x3a813a,{status:_0x2d0ce1,coordinator:_0x16e588}=_0xa7824d;switch(_0x2d0ce1){case _0x59ab26[_0x39b6c9(0x10c)]:return _0xa8e110['jsx'](_0x56352f,{'coordinator':_0x16e588});case _0x59ab26[_0x39b6c9(0x116)]:return _0xa8e110[_0x39b6c9(0xbe)](_0x52a640,{'coordinator':_0x16e588});case _0x59ab26['NOT_FOLLOWING']:return _0xa8e110[_0x39b6c9(0xbe)](_0x5ab4c4,{'coordinator':_0x16e588});case _0x59ab26[_0x39b6c9(0x111)]:return _0xa8e110[_0x39b6c9(0xbe)](_0x30662d,{});case _0x59ab26[_0x39b6c9(0x103)]:return _0xa8e110[_0x39b6c9(0xbe)](_0x49e673,{'coordinator':_0x16e588});default:return null;}}function _0x56352f(_0x1963af){const _0x2c35fd=_0x3a813a,{coordinator:_0x478e4b}=_0x1963af;return _0xa8e110[_0x2c35fd(0xb3)](_0xa8e110[_0x2c35fd(0xd3)],{'children':[_0xa8e110['jsx'](_0x2c35fd(0xe9),{'className':_0x2c35fd(0x8d),'children':'Present\x20this\x20document'}),_0xa8e110[_0x2c35fd(0xbe)](_0x8fc2ee[_0x2c35fd(0x9a)],{'onClick':()=>_0x478e4b[_0x2c35fd(0xaf)](),'children':'Start'})]});}function _0x52a640(_0x5d57f5){const _0x184355=_0x3a813a,{coordinator:_0x4e61f1}=_0x5d57f5;return _0xa8e110[_0x184355(0xb3)](_0xa8e110[_0x184355(0xd3)],{'children':[_0xa8e110[_0x184355(0xbe)](_0x184355(0xe9),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x184355(0x107)}),_0xa8e110[_0x184355(0xbe)](_0x8fc2ee['Button'],{'onClick':()=>_0x4e61f1[_0x184355(0xdb)](),'children':_0x184355(0xf0)})]});}function _0x5ab4c4(_0x51fe66){const _0x2614fb=_0x3a813a,{coordinator:_0x4a8667}=_0x51fe66;return _0xa8e110[_0x2614fb(0xb3)](_0xa8e110[_0x2614fb(0xd3)],{'children':[_0xa8e110['jsx'](_0x2614fb(0xe9),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2614fb(0x99)}),_0xa8e110[_0x2614fb(0xbe)](_0x8fc2ee[_0x2614fb(0x9a)],{'variant':'text','onClick':()=>_0x4a8667['startFollowing'](),'children':'Start\x20following'})]});}function _0x49e673(_0x5a4cd6){const _0x92c3c=_0x3a813a,{coordinator:_0x3a061d}=_0x5a4cd6;return _0xa8e110[_0x92c3c(0xb3)](_0xa8e110[_0x92c3c(0xd3)],{'children':[_0xa8e110[_0x92c3c(0xbe)]('div',{'className':_0x92c3c(0x8d),'children':_0x92c3c(0xe2)}),_0xa8e110[_0x92c3c(0xbe)](_0x8fc2ee[_0x92c3c(0x9a)],{'variant':'default','onClick':()=>_0x3a061d[_0x92c3c(0x112)](),'children':'Stop\x20presenting'})]});}function _0x30662d(){const _0x5428a4=_0x3a813a;return _0xa8e110['jsx'](_0xa8e110[_0x5428a4(0xd3)],{'children':_0x5428a4(0x120)});}var _0x85a86a=Object[_0x3a813a(0x13b)],_0x242867=(_0x8e16ef,_0x22852e,_0x30d44c,_0x2814f0)=>{const _0x536117=_0x3a813a;for(var _0x23c456=_0x2814f0>0x1?void 0x0:_0x2814f0?_0x85a86a(_0x22852e,_0x30d44c):_0x22852e,_0x231dfd=_0x8e16ef[_0x536117(0xeb)]-0x1,_0x338dd9;_0x231dfd>=0x0;_0x231dfd--)(_0x338dd9=_0x8e16ef[_0x231dfd])&&(_0x23c456=_0x338dd9(_0x23c456)||_0x23c456);return _0x23c456;},_0x5816ac=(_0xc71453,_0x1e6e3d)=>(_0x599f50,_0x3c426a)=>_0x1e6e3d(_0x599f50,_0x3c426a,_0xc71453);_0x784c83[_0x3a813a(0x106)]=class extends _0x21d2bc[_0x3a813a(0xdd)]{constructor(_0x4a7b75,_0x3f8d8e){const _0x4de378=_0x3a813a;super(),this[_0x4de378(0x97)]=_0x4a7b75,this[_0x4de378(0x12a)]=_0x3f8d8e,this[_0x4de378(0x158)]();}[_0x3a813a(0x158)](){const _0x5a4088=_0x3a813a;this[_0x5a4088(0xcf)](this[_0x5a4088(0x12a)][_0x5a4088(0x160)](_0x2cd6f3[_0x5a4088(0xdf)]['HEADER_MENU'],()=>_0x2cd6f3['connectInjector'](_0x49ae53,this[_0x5a4088(0x97)])));}},_0x784c83[_0x3a813a(0x106)]=_0x242867([_0x5816ac(0x0,_0x21d2bc['Inject'](_0x21d2bc[_0x3a813a(0x14e)])),_0x5816ac(0x1,_0x2cd6f3[_0x3a813a(0x14a)])],_0x784c83['DesktopLiveShareController']);const _0x573de5=_0x3a813a(0x9e),_0x5adef7={};var _0x32033b=Object[_0x3a813a(0x13b)],_0x4da43d=(_0x415f55,_0x29d518,_0x336777,_0x264067)=>{for(var _0x26ca1b=_0x264067>0x1?void 0x0:_0x264067?_0x32033b(_0x29d518,_0x336777):_0x29d518,_0x3ee1ac=_0x415f55['length']-0x1,_0x25cfa5;_0x3ee1ac>=0x0;_0x3ee1ac--)(_0x25cfa5=_0x415f55[_0x3ee1ac])&&(_0x26ca1b=_0x25cfa5(_0x26ca1b)||_0x26ca1b);return _0x26ca1b;},_0x22ee5e=(_0x3a2ae4,_0x2f1b49)=>(_0x109721,_0x5c7a86)=>_0x2f1b49(_0x109721,_0x5c7a86,_0x3a2ae4);let _0x2b9b05=class extends _0x21d2bc[_0x3a813a(0xdd)]{constructor(_0x151982){const _0x142f8c=_0x3a813a;super(),this[_0x142f8c(0xa5)]=_0x151982,this['_init']();}[_0x3a813a(0x104)](){const _0xdf4ee=_0x3a813a;[_0xdc1aaa['SetZoomRatioOperation']['id'],_0xdc1aaa[_0xdf4ee(0x11a)]['id'],_0x1bab7d[_0xdf4ee(0xf6)]['id']][_0xdf4ee(0x12d)](_0x268008=>{const _0x264c47=_0xdf4ee;this[_0x264c47(0xcf)](this[_0x264c47(0xa5)][_0x264c47(0x14c)](_0x268008));});}};_0x2b9b05=_0x4da43d([_0x22ee5e(0x0,_0x21d2bc[_0x3a813a(0x15e)](_0x1319ac))],_0x2b9b05);var _0x358bf5=Object[_0x3a813a(0x143)],_0x162cf7=Object[_0x3a813a(0x13b)],_0x1c12c8=(_0x434a46,_0x381aa7,_0xe5515b)=>_0x381aa7 in _0x434a46?_0x358bf5(_0x434a46,_0x381aa7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe5515b}):_0x434a46[_0x381aa7]=_0xe5515b,_0x3da07a=(_0x3dcb40,_0x128638,_0x4c01c1,_0x5eff48)=>{for(var _0x28c33b=_0x5eff48>0x1?void 0x0:_0x5eff48?_0x162cf7(_0x128638,_0x4c01c1):_0x128638,_0x2f5c9c=_0x3dcb40['length']-0x1,_0x3fda82;_0x2f5c9c>=0x0;_0x2f5c9c--)(_0x3fda82=_0x3dcb40[_0x2f5c9c])&&(_0x28c33b=_0x3fda82(_0x28c33b)||_0x28c33b);return _0x28c33b;},_0xdea672=(_0x5c1606,_0x4a66c5)=>(_0x48daa7,_0x196d7f)=>_0x4a66c5(_0x48daa7,_0x196d7f,_0x5c1606),_0x45f1b4=(_0x5c2427,_0x2599b1,_0x44045e)=>_0x1c12c8(_0x5c2427,typeof _0x2599b1!='symbol'?_0x2599b1+'':_0x2599b1,_0x44045e);const _0x3ba7e2=_0x3a813a(0xcb);_0x784c83[_0x3a813a(0x127)]=class extends _0x21d2bc[_0x3a813a(0xfc)]{constructor(_0x4e6e02=_0x5adef7,_0x4aa605,_0x3b6c53){const _0x1557fa=_0x3a813a;super(),this['_config']=_0x4e6e02,this[_0x1557fa(0x97)]=_0x4aa605,this[_0x1557fa(0xed)]=_0x3b6c53;const {..._0x10b974}=_0x21d2bc[_0x1557fa(0x15b)]({},_0x5adef7,this[_0x1557fa(0xe0)]);this[_0x1557fa(0xed)][_0x1557fa(0x150)](_0x573de5,_0x10b974);}['onStarting'](){const _0x2f14b7=_0x3a813a;_0x21d2bc['registerDependencies'](this['_injector'],_0x21d2bc['mergeOverrideWithDependencies']([[_0x1319ac],[_0x784c83[_0x2f14b7(0xc6)]],[_0x2b9b05],[_0x784c83['DesktopLiveShareController']]],this[_0x2f14b7(0xe0)][_0x2f14b7(0xc5)])),_0x21d2bc['touchDependencies'](this['_injector'],[[_0x2b9b05]]);}[_0x3a813a(0x96)](){const _0x575112=_0x3a813a;_0x21d2bc['touchDependencies'](this['_injector'],[[_0x784c83[_0x575112(0x106)]]]);}},_0x45f1b4(_0x784c83[_0x3a813a(0x127)],'type',_0x21d2bc['UniverInstanceType'][_0x3a813a(0xd2)]),_0x45f1b4(_0x784c83['UniverLiveSharePlugin'],'pluginName',_0x3ba7e2),_0x784c83[_0x3a813a(0x127)]=_0x3da07a([_0x21d2bc[_0x3a813a(0x15a)](_0x2a3a18['UniverCollaborationClientPlugin']),_0xdea672(0x1,_0x21d2bc[_0x3a813a(0x15e)](_0x21d2bc['Injector'])),_0xdea672(0x2,_0x21d2bc[_0x3a813a(0x163)])],_0x784c83[_0x3a813a(0x127)]),_0x784c83[_0x3a813a(0x12f)]=_0x49ae53,_0x784c83[_0x3a813a(0xc8)]=_0x1319ac,_0x784c83[_0x3a813a(0x118)]=_0x59ab26,Object[_0x3a813a(0x143)](_0x784c83,Symbol[_0x3a813a(0x134)],{'value':'Module'});}));function _0x3f98(_0x1c31f0,_0xc1c173){_0x1c31f0=_0x1c31f0-0x8c;const _0x5dc3f7=_0x5dc3();let _0x3f9818=_0x5dc3f7[_0x1c31f0];return _0x3f9818;}function _0x5dc3(){const _0x428e65=['createInstance','_handleTerminate','_commandDisposable','getLiveShareCoordinatorSync','19203184GHFkaj','sheet','_stopPresenting','onRendered','_injector','useObservable','You\x27re\x20not\x20following\x20the\x20presenter','Button','evenodd','_stopFollowing','getCurrentTypeOfUnit$','live-share.config','315rRgvVz','currentColor','32182bxDMyp','_presenter','children','getLiveShareCoordinator','_liveShareService','includes','createElement','not-following','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','reverse','replace','LIVESHARE_TERMINATE','send','_collabSessionService','tryStartPresenting','_reporters','presenting','toString','jsxs','UniverInstanceType','_unitID','dispose','2118912snlBCf','mutations','@univerjs/sheets-ui','get','none','LIVESHARE_NEW_HOST','dispose$','jsx','operators','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','event$','_collabSession','32624NatcuD','_univerInstanceService','override','LiveShareController','9254BTdUCh','LiveShareService','live-share-icon','memberID','UNIVER_LIVE_SHARE_PLUGIN','use','path','_handleOnline','disposeWithMe','Dropdown','DisposableCollection','UNIVER_UNKNOWN','Fragment','data','button','xlink:href','@univerjs/ui','substring','presenter','subscribe','stopFollowing','NOT_FOLLOWING','Disposable','rxjs/operators','BuiltInUIPart','_config','from','You\x27re\x20presenting\x20the\x20document','idSuffix','parseProtocolChangeset','amd','useDependency','@univerjs-pro/collaboration-client','CollaborationEvent','div','throttleTime','length','_startFollowing','_configService','LIVESHARE_OPERATION','idle','Stop\x20following','_startLiveShareCoordinator','UniverSheetsUi','displayName','useState','defs','SetWorksheetActiveOperation','attrs','executeCommand','useRef','InsertSheetMutation','_commandService','Plugin','ICommandService','add','_entities','onCommandExecuted','stringify','UniverCore','PRESENTING','_init','clear','DesktopLiveShareController','You\x27re\x20following\x20the\x20presenter','current','next','complete','url(#$1','IDLE','getTypeOfUnitAdded$','parse','_status$','startFollowing','OFFLINE','stopPresenting','sessionStatus$','CommandType','rxjs','FOLLOWING','27DJPLPG','LiveShareStatus','0\x200\x2017\x2017','SetScrollOperation','SAME_OPERATION_SHARE_INTERVAL','fill','status$','_handleOperation','_beIdle','You\x27are\x20offline.','type','getConfig','find','_sharedOperations','3090qQhsXd','offline','UniverLiveSharePlugin','map','takeUntil','_uiPartsService','104cVdeqp','react','forEach','mask','LiveShare','NEW_CHANGESETS','has','UniverIcon','string','toStringTag','asObservable','@univerjs/design','symbol','2988luEQPW','delete','UniverProLiveShare','getOwnPropertyDescriptor','RxDisposable','svg','_startPresenting','getValue','LiveShareCoordinator','_handleNewChangeSets','getUnitId','defineProperty','colorChannel1','shouldShareOperation','UniverDesign','1em','React','_handleNewHost','IUIPartsService','unsubscribe','registerSharedOperation','unitId','Injector','_status','setConfig','BehaviorSubject','IUniverInstanceService','react/jsx-runtime','toDisposable','SessionStatus','UniverProCollaborationClient','function','_mountLiveShare','init','DependentOn','merge','params','756333UdwPwG','Inject','following','registerComponent','forwardRef','univer-size-4','IConfigService','tag','getInitialStates','pipe','UNIVER_SHEET','univer-mb-3\x20univer-w-full\x20univer-text-sm','then'];_0x5dc3=function(){return _0x428e65;};return _0x5dc3();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
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
|
|
61
|
-
"@univerjs-pro/collaboration
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs/design": "0.
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/ui": "0.
|
|
66
|
-
"@univerjs/sheets": "0.
|
|
67
|
-
"@univerjs/
|
|
60
|
+
"@univerjs/core": "0.13.0",
|
|
61
|
+
"@univerjs-pro/collaboration": "0.13.0",
|
|
62
|
+
"@univerjs-pro/collaboration-client": "0.13.0",
|
|
63
|
+
"@univerjs/design": "0.13.0",
|
|
64
|
+
"@univerjs/engine-render": "0.13.0",
|
|
65
|
+
"@univerjs/sheets-ui": "0.13.0",
|
|
66
|
+
"@univerjs/sheets": "0.13.0",
|
|
67
|
+
"@univerjs/ui": "0.13.0"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"typescript": "^5.9.3",
|
|
75
75
|
"vite": "^7.2.7",
|
|
76
76
|
"vitest": "^4.0.15",
|
|
77
|
-
"@univerjs/
|
|
78
|
-
"@univerjs
|
|
77
|
+
"@univerjs-infra/shared": "0.13.0",
|
|
78
|
+
"@univerjs/protocol": "0.1.47"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"test": "vitest run",
|