@univerjs-pro/live-share 0.12.4 → 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';
|
|
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 _0x3bf8b1=_0x54cd;(function(_0x4a907f,_0x138a3f){const _0x14f2bd=_0x54cd,_0x5ee503=_0x4a907f();while(!![]){try{const _0x5b307b=-parseInt(_0x14f2bd(0x20c))/0x1*(parseInt(_0x14f2bd(0x1fd))/0x2)+parseInt(_0x14f2bd(0x16c))/0x3*(parseInt(_0x14f2bd(0x1ec))/0x4)+-parseInt(_0x14f2bd(0x1e8))/0x5+-parseInt(_0x14f2bd(0x1e0))/0x6*(-parseInt(_0x14f2bd(0x1f3))/0x7)+parseInt(_0x14f2bd(0x197))/0x8+parseInt(_0x14f2bd(0x151))/0x9+parseInt(_0x14f2bd(0x1f8))/0xa;if(_0x5b307b===_0x138a3f)break;else _0x5ee503['push'](_0x5ee503['shift']());}catch(_0x57f727){_0x5ee503['push'](_0x5ee503['shift']());}}}(_0x2195,0xa1531));var T=Object[_0x3bf8b1(0x1c3)],U=(_0x53b6b7,_0x33bd01,_0x401c18)=>_0x33bd01 in _0x53b6b7?T(_0x53b6b7,_0x33bd01,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x401c18}):_0x53b6b7[_0x33bd01]=_0x401c18,_=(_0x3172f5,_0x320475,_0x1fa23f)=>U(_0x3172f5,typeof _0x320475!='symbol'?_0x320475+'':_0x320475,_0x1fa23f);Object[_0x3bf8b1(0x1c3)](exports,Symbol[_0x3bf8b1(0x173)],{'value':_0x3bf8b1(0x1ab)});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:_0x1b1635,..._0x1f5456}){const _0x48e57c=_0x3bf8b1,{icon:_0x49dafe,id:_0x15caf5,className:_0x1226e2,extend:_0x2f8c51,..._0x3abc38}=_0x1f5456,_0x54cacd=('univerjs-icon\x20univerjs-icon-'+_0x15caf5+'\x20'+(_0x1226e2||''))[_0x48e57c(0x1fe)](),_0x2c3314=v[_0x48e57c(0x1e9)]('_'+H());return j(_0x49dafe,''+_0x15caf5,{'defIds':_0x49dafe[_0x48e57c(0x171)],'idSuffix':_0x2c3314[_0x48e57c(0x1ed)]},{'ref':_0x1b1635,'className':_0x54cacd,..._0x3abc38},_0x2f8c51);}function _0x54cd(_0x44af07,_0x58f546){_0x44af07=_0x44af07-0x140;const _0x2195cd=_0x2195();let _0x54cd49=_0x2195cd[_0x44af07];return _0x54cd49;}function j(_0x2ba811,_0x1b3620,_0xdb0e4f,_0x14fe57,_0xad740){const _0xd372b=_0x3bf8b1;return v[_0xd372b(0x1f2)](_0x2ba811['tag'],{'key':_0x1b3620,...y(_0x2ba811,_0xdb0e4f,_0xad740),..._0x14fe57},(F(_0x2ba811,_0xdb0e4f)[_0xd372b(0x1cc)]||[])[_0xd372b(0x1a5)]((_0x5de3f7,_0x5d2b4c)=>j(_0x5de3f7,_0x1b3620+'-'+_0x2ba811[_0xd372b(0x1b9)]+'-'+_0x5d2b4c,_0xdb0e4f,void 0x0,_0xad740)));}function y(_0x385fa9,_0x33a1d9,_0x1ea4cc){const _0x2a4e09=_0x3bf8b1,_0x3c2ae7={..._0x385fa9['attrs']};_0x1ea4cc!=null&&_0x1ea4cc[_0x2a4e09(0x164)]&&_0x3c2ae7[_0x2a4e09(0x206)]===_0x2a4e09(0x164)&&(_0x3c2ae7[_0x2a4e09(0x206)]=_0x1ea4cc[_0x2a4e09(0x164)]),_0x385fa9[_0x2a4e09(0x1b9)]===_0x2a4e09(0x1c1)&&_0x3c2ae7['id']&&(_0x3c2ae7['id']=_0x3c2ae7['id']+_0x33a1d9[_0x2a4e09(0x188)]),Object['entries'](_0x3c2ae7)[_0x2a4e09(0x1d9)](([_0x4130ba,_0x2cfe69])=>{const _0x86b75a=_0x2a4e09;_0x4130ba===_0x86b75a(0x1c1)&&typeof _0x2cfe69==_0x86b75a(0x1db)&&(_0x3c2ae7[_0x4130ba]=_0x2cfe69[_0x86b75a(0x1c5)](/url\(#(.*)\)/,'url(#$1'+_0x33a1d9['idSuffix']+')'));});const {defIds:_0x2a5025}=_0x33a1d9;return!_0x2a5025||_0x2a5025['length']===0x0||(_0x385fa9[_0x2a4e09(0x1b9)]===_0x2a4e09(0x198)&&_0x3c2ae7[_0x2a4e09(0x1a7)]&&(_0x3c2ae7[_0x2a4e09(0x1a7)]=_0x3c2ae7[_0x2a4e09(0x1a7)]+_0x33a1d9['idSuffix']),Object[_0x2a4e09(0x1ee)](_0x3c2ae7)[_0x2a4e09(0x1d9)](([_0x137df1,_0x1b8a2c])=>{const _0x357921=_0x2a4e09;typeof _0x1b8a2c=='string'&&(_0x3c2ae7[_0x137df1]=_0x1b8a2c[_0x357921(0x1c5)](/url\(#(.*)\)/,'url(#$1'+_0x33a1d9['idSuffix']+')'));})),_0x3c2ae7;}function F(_0xd00e2,_0x45b00a){const _0x4234b1=_0x3bf8b1;var _0x1f6a6c;const {defIds:_0x5962e8}=_0x45b00a;return!_0x5962e8||_0x5962e8['length']===0x0?_0xd00e2:_0xd00e2[_0x4234b1(0x1b9)]===_0x4234b1(0x152)&&((_0x1f6a6c=_0xd00e2['children'])!=null&&_0x1f6a6c['length'])?{..._0xd00e2,'children':_0xd00e2[_0x4234b1(0x1cc)][_0x4234b1(0x1a5)](_0x5d6c73=>typeof _0x5d6c73['attrs']['id']==_0x4234b1(0x1db)&&_0x5962e8&&_0x5962e8[_0x4234b1(0x1bc)](_0x5d6c73[_0x4234b1(0x201)]['id'])?{..._0x5d6c73,'attrs':{..._0x5d6c73[_0x4234b1(0x201)],'id':_0x5d6c73[_0x4234b1(0x201)]['id']+_0x45b00a[_0x4234b1(0x188)]}}:_0x5d6c73)}:_0xd00e2;}function H(){const _0x3b9522=_0x3bf8b1;return Math[_0x3b9522(0x1ad)]()[_0x3b9522(0x180)](0x24)['substring'](0x2,0x8);}function _0x2195(){const _0x597283=['merge','_beIdle','LIVESHARE_OPERATION','InsertSheetMutation','_stopPresenting','_init','length','requireSession','SetWorksheetActiveOperation','BuiltInUIPart','registerDependencies','mergeOverrideWithDependencies','_mountLiveShare','You\x27re\x20following\x20the\x20presenter','_commandService','colorChannel1','complete','You\x27re\x20not\x20following\x20the\x20presenter','Inject','NOT_FOLLOWING','throttleTime','memberID','ICommandService','81oaTjcE','IConfigService','then','CollaborationEvent','asObservable','defIds','OFFLINE','toStringTag','DesktopLiveShareController','Fragment','getConfig','getInitialStates','unsubscribe','Injector','_handleNewChangeSets','IUniverInstanceService','path','_reporters','_handleOnline','_handleTerminate','toString','PRESENTING','currentColor','SAME_OPERATION_SHARE_INTERVAL','_fetchOperations','idle','NEW_CHANGESETS','clear','idSuffix','_startLiveShareCoordinator','evenodd','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','1em','univer-size-4','getCurrentTypeOfUnit$','text','UniverInstanceType','not-following','startFollowing','clsx','_presenter','getTypeOfUnitDisposed$','_injector','856704gjnLQn','use','Stop\x20following','_entities','sheet','values','LiveShareController','_startFollowing','LiveShareStatus','SetZoomRatioOperation','status$','univer-mb-3\x20univer-w-full\x20univer-text-sm','offline','touchDependencies','map','SetScrollOperation','xlink:href','displayName','You\x27are\x20offline.','Dropdown','Module','operations','random','pluginName','connectInjector','_status','getMemberID','LIVESHARE_FETCH_OPERATIONS','IDLE','next','params','LIVESHARE_NEW_HOST','type','data','tag','_commandDisposable','shouldShareOperation','includes','LiveShareService','unitId','useState','_startPresenting','mask','live-share.config','defineProperty','getLiveShareCoordinatorSync','replace','toDisposable','stringify','none','from','DisposableCollection','http://www.w3.org/2000/svg','children','_sharedOperations','mutations','UNIVER_UNKNOWN','Disposable','BehaviorSubject','UniverIcon','registerSharedOperation','has','_collabSession','SessionStatus','tryStartPresenting','delete','forEach','dispose','string','get','LiveShareIcon','ONLINE','_config','465066ZSXqxL','button','presenter','_collabSessionService','override','subscribe','init','stopPresenting','3610705RSKCYJ','useRef','event$','_unitID','35444DviYcc','current','entries','jsxs','LIVESHARE_TERMINATE','jsx','createElement','77lJxrKk','Button','getStatus','_univerInstanceService','IUIPartsService','123630vAmuVA','set','_configService','_handleOperation','presenting','4qiGFGn','trim','Start','UNIVER_SHEET','attrs','add','CommandType','send','_status$','fill','disposeWithMe','onCommandExecuted','0\x200\x2017\x2017','_uiPartsService','svg','137639WSItLV','_handleOffline','Stop\x20presenting','takeUntil','Subject','_liveShareService','_handleNewHost','LiveShareCoordinator','useDependency','UniverLiveSharePlugin','CollaborationSessionService','getLiveShareCoordinator','Plugin','onStarting','FOLLOWING','following','dispose$','getUnitId','UniverCollaborationClientPlugin','sessionStatus$','Present\x20this\x20document','find','parse','executeCommand','default','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','4021965kYVhEl','defs','pipe','div'];_0x2195=function(){return _0x597283;};return _0x2195();}x[_0x3bf8b1(0x1a8)]=_0x3bf8b1(0x1d2);const V={'tag':_0x3bf8b1(0x20b),'attrs':{'xmlns':_0x3bf8b1(0x1cb),'fill':_0x3bf8b1(0x1c8),'viewBox':_0x3bf8b1(0x209),'width':_0x3bf8b1(0x18c),'height':_0x3bf8b1(0x18c)},'children':[{'tag':'path','attrs':{'fill':_0x3bf8b1(0x182),'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':_0x3bf8b1(0x17c),'attrs':{'fill':_0x3bf8b1(0x182),'d':_0x3bf8b1(0x150),'fillRule':_0x3bf8b1(0x18a),'clipRule':_0x3bf8b1(0x18a)}}]},R=v['forwardRef'](function(_0x4ce5c9,_0x1e886a){return v['createElement'](x,Object['assign']({},_0x4ce5c9,{'id':'live-share-icon','ref':_0x1e886a,'icon':V}));});R[_0x3bf8b1(0x1a8)]=_0x3bf8b1(0x1dd);class E extends o[_0x3bf8b1(0x1d0)]{constructor(){const _0x342a7f=_0x3bf8b1;super(...arguments),_(this,_0x342a7f(0x1cd),new Set()),_(this,_0x342a7f(0x17d),new Set());}[_0x3bf8b1(0x1d3)](_0x40b563){const _0x1d1f04=_0x3bf8b1;return this[_0x1d1f04(0x1cd)]['add'](_0x40b563),o[_0x1d1f04(0x1c6)](()=>this[_0x1d1f04(0x1cd)][_0x1d1f04(0x1d8)](_0x40b563));}['registerInitialStateReporter'](_0x37ab6c){const _0x201fcd=_0x3bf8b1;return this[_0x201fcd(0x17d)]['add'](_0x37ab6c),o[_0x201fcd(0x1c6)](()=>this[_0x201fcd(0x17d)][_0x201fcd(0x1d8)](_0x37ab6c));}[_0x3bf8b1(0x1bb)](_0x13eda9){const _0x4949e1=_0x3bf8b1;return this['_sharedOperations'][_0x4949e1(0x1d4)](_0x13eda9);}[_0x3bf8b1(0x177)](_0x43d894){const _0x57b40a=_0x3bf8b1;return Array[_0x57b40a(0x1c9)](this[_0x57b40a(0x17d)])[_0x57b40a(0x1a5)](_0x49e6b6=>_0x49e6b6(_0x43d894));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x2ba8fb,_0x565df3,_0x3a9f0a,_0x4702e6)=>{const _0x25f2e5=_0x3bf8b1;for(var _0x2496bd=_0x4702e6>0x1?void 0x0:_0x4702e6?M(_0x565df3,_0x3a9f0a):_0x565df3,_0x2f43ce=_0x2ba8fb[_0x25f2e5(0x15b)]-0x1,_0x513bcb;_0x2f43ce>=0x0;_0x2f43ce--)(_0x513bcb=_0x2ba8fb[_0x2f43ce])&&(_0x2496bd=_0x513bcb(_0x2496bd)||_0x2496bd);return _0x2496bd;},S=(_0x5e61f9,_0x43c24a)=>(_0x22c057,_0x103e07)=>_0x43c24a(_0x22c057,_0x103e07,_0x5e61f9);exports[_0x3bf8b1(0x19d)]=class extends o['RxDisposable']{constructor(_0x510ac9,_0x528323,_0x729f93){const _0x2fed71=_0x3bf8b1;super(),_(this,_0x2fed71(0x19a),new Map()),(this[_0x2fed71(0x1f6)]=_0x510ac9,this[_0x2fed71(0x196)]=_0x528323,this[_0x2fed71(0x1e3)]=_0x729f93,this[_0x2fed71(0x15a)]());}async[_0x3bf8b1(0x142)](_0x51b87a){const _0x1f3db9=_0x3bf8b1;return this[_0x1f3db9(0x19a)][_0x1f3db9(0x1d4)](_0x51b87a)||await this['_startLiveShareCoordinator'](_0x51b87a),this[_0x1f3db9(0x19a)][_0x1f3db9(0x1dc)](_0x51b87a);}[_0x3bf8b1(0x1c4)](_0xd71344){const _0xa97bb9=_0x3bf8b1;var _0x596e91;return(_0x596e91=this[_0xa97bb9(0x19a)]['get'](_0xd71344))!=null?_0x596e91:null;}[_0x3bf8b1(0x15a)](){const _0x227395=_0x3bf8b1;this[_0x227395(0x1f6)]['getTypeOfUnitAdded$'](o[_0x227395(0x190)][_0x227395(0x200)])[_0x227395(0x153)](I[_0x227395(0x20f)](this[_0x227395(0x147)]))['subscribe'](async _0x2ac375=>{const _0x57a44c=_0x227395,_0x46cc57=_0x2ac375[_0x57a44c(0x148)]();this[_0x57a44c(0x19a)][_0x57a44c(0x1d4)](_0x46cc57)||this[_0x57a44c(0x189)](_0x46cc57);}),this['_univerInstanceService'][_0x227395(0x195)](o['UniverInstanceType'][_0x227395(0x200)])[_0x227395(0x153)](I[_0x227395(0x20f)](this['dispose$']))[_0x227395(0x1e5)](_0x99a2f7=>{const _0x2a5b64=_0x227395,_0x269696=_0x99a2f7[_0x2a5b64(0x148)](),_0x162363=this[_0x2a5b64(0x19a)]['get'](_0x269696);_0x162363==null||_0x162363[_0x2a5b64(0x1da)]();});}async['_startLiveShareCoordinator'](_0x57a088){const _0x1983b9=_0x3bf8b1,_0x269369=await this[_0x1983b9(0x1e3)][_0x1983b9(0x15c)](_0x57a088),_0x4288b8=this[_0x1983b9(0x196)]['createInstance'](exports[_0x1983b9(0x213)],_0x57a088,_0x269369);return _0x4288b8['init'](),this[_0x1983b9(0x19a)][_0x1983b9(0x1f9)](_0x57a088,_0x4288b8),_0x4288b8;}},exports['LiveShareController']=P([S(0x0,o[_0x3bf8b1(0x17b)]),S(0x1,o[_0x3bf8b1(0x167)](o[_0x3bf8b1(0x179)])),S(0x2,o['Inject'](b[_0x3bf8b1(0x141)]))],exports[_0x3bf8b1(0x19d)]);var u=(_0xf97e29=>(_0xf97e29[_0x3bf8b1(0x172)]=_0x3bf8b1(0x1a3),_0xf97e29[_0x3bf8b1(0x1b3)]=_0x3bf8b1(0x185),_0xf97e29['FOLLOWING']=_0x3bf8b1(0x146),_0xf97e29['NOT_FOLLOWING']=_0x3bf8b1(0x191),_0xf97e29['PRESENTING']=_0x3bf8b1(0x1fc),_0xf97e29))(u||{});const k=_0x3bf8b1(0x183),q=0xc8;exports['LiveShareCoordinator']=class extends o['RxDisposable']{constructor(_0x58531f,_0x4e9b1f,_0x129077,_0x4c4ee7,_0x2d1137){const _0x36e0bb=_0x3bf8b1;super(),_(this,_0x36e0bb(0x205),new O[(_0x36e0bb(0x1d1))](_0x36e0bb(0x185))),_(this,_0x36e0bb(0x1a1),this[_0x36e0bb(0x205)][_0x36e0bb(0x170)]()),_(this,_0x36e0bb(0x15a),!0x1),_(this,_0x36e0bb(0x1ba),null),_(this,_0x36e0bb(0x194),null),(this['_unitID']=_0x58531f,this[_0x36e0bb(0x1d5)]=_0x4e9b1f,this[_0x36e0bb(0x1fa)]=_0x129077,this[_0x36e0bb(0x211)]=_0x4c4ee7,this['_commandService']=_0x2d1137);}get['_status'](){const _0x59c2ad=_0x3bf8b1;return this[_0x59c2ad(0x205)]['getValue']();}['dispose'](){const _0x2fef33=_0x3bf8b1;var _0x31b00c;(_0x31b00c=this[_0x2fef33(0x1ba)])==null||_0x31b00c['dispose'](),this[_0x2fef33(0x205)][_0x2fef33(0x1b4)]('idle'),this[_0x2fef33(0x205)][_0x2fef33(0x165)]();}[_0x3bf8b1(0x1f5)](){const _0x3a4d16=_0x3bf8b1;return this[_0x3a4d16(0x1b0)];}[_0x3bf8b1(0x1e6)](){const _0x5ace84=_0x3bf8b1;this[_0x5ace84(0x15a)]||(this[_0x5ace84(0x15a)]=!0x0,this[_0x5ace84(0x1d5)][_0x5ace84(0x14a)][_0x5ace84(0x153)](I[_0x5ace84(0x20f)](this['dispose$']))['subscribe'](_0x81cd48=>{const _0x19aab6=_0x5ace84;switch(_0x81cd48){case b[_0x19aab6(0x1d6)]['OFFLINE']:this[_0x19aab6(0x20d)]();break;case b[_0x19aab6(0x1d6)][_0x19aab6(0x1de)]:this[_0x19aab6(0x17e)]();break;}}),this['_collabSession'][_0x5ace84(0x1ea)][_0x5ace84(0x153)](I[_0x5ace84(0x20f)](this[_0x5ace84(0x147)]))['subscribe'](_0x5838be=>{const _0xb21d9f=_0x5ace84,{eventID:_0x8a1d55}=_0x5838be;switch(_0x8a1d55){case d[_0xb21d9f(0x16f)][_0xb21d9f(0x1b6)]:this['_handleNewHost'](_0x5838be);break;case d[_0xb21d9f(0x16f)]['LIVESHARE_OPERATION']:this[_0xb21d9f(0x1fb)](_0x5838be);break;case d[_0xb21d9f(0x16f)]['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case d['CollaborationEvent'][_0xb21d9f(0x186)]:this[_0xb21d9f(0x17a)](_0x5838be);break;}}));}[_0x3bf8b1(0x1d7)](){const _0x98a35=_0x3bf8b1;this['_collabSession'][_0x98a35(0x204)]({'eventID':d[_0x98a35(0x16f)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x98a35(0x1eb)],'userID':this['_collabSession'][_0x98a35(0x1b1)]()}},this[_0x98a35(0x1eb)]);}[_0x3bf8b1(0x1e7)](){const _0x13254c=_0x3bf8b1;this[_0x13254c(0x1b0)]===_0x13254c(0x1fc)&&(this['_status$'][_0x13254c(0x1b4)](_0x13254c(0x185)),this[_0x13254c(0x1d5)]['send']({'eventID':d[_0x13254c(0x16f)][_0x13254c(0x1f0)],'data':{'unitID':this[_0x13254c(0x1eb)]}},this[_0x13254c(0x1eb)]));}[_0x3bf8b1(0x192)](){const _0x65266=_0x3bf8b1;this[_0x65266(0x1b0)]===_0x65266(0x191)&&(this['_status$'][_0x65266(0x1b4)](_0x65266(0x146)),this[_0x65266(0x19e)]());}['stopFollowing'](){const _0x3af4df=_0x3bf8b1;this[_0x3af4df(0x1b0)]===_0x3af4df(0x146)&&this['_stopFollowing']();}[_0x3bf8b1(0x212)](_0x3fbb8a){const _0x50b595=_0x3bf8b1,{presenter:_0x1ddffd}=_0x3fbb8a[_0x50b595(0x1b8)],_0x30beb5=this[_0x50b595(0x1d5)][_0x50b595(0x1b1)]();this[_0x50b595(0x194)]=_0x1ddffd,_0x1ddffd===_0x30beb5?(this['_stopFollowing'](),this[_0x50b595(0x1c0)]()):this[_0x50b595(0x1b0)]!==_0x50b595(0x191)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x3bf8b1(0x184)](){const _0x56e4bc=_0x3bf8b1,_0x356a00={'eventID':d['CollaborationEvent'][_0x56e4bc(0x1b2)]};this['_collabSession'][_0x56e4bc(0x204)](_0x356a00,this['_unitID']);}[_0x3bf8b1(0x17f)](){const _0x3a4f21=_0x3bf8b1;this[_0x3a4f21(0x194)]=null,this[_0x3a4f21(0x1b0)]!==_0x3a4f21(0x1fc)&&this[_0x3a4f21(0x156)]();}[_0x3bf8b1(0x17a)](_0x273543){const _0x47fd11=_0x3bf8b1;if(this[_0x47fd11(0x1b0)]===_0x47fd11(0x146)&&this[_0x47fd11(0x194)]===_0x273543['data'][_0x47fd11(0x16a)]){const _0x23c1c7=d['parseProtocolChangeset'](_0x273543[_0x47fd11(0x1b8)])[_0x47fd11(0x1ce)]['reverse']()[_0x47fd11(0x14c)](_0x13c4f0=>_0x13c4f0['id']===C[_0x47fd11(0x158)]['id']);if(_0x23c1c7){const _0x3a49e8=_0x23c1c7['params'][_0x47fd11(0x1be)],_0x214e3c=_0x23c1c7[_0x47fd11(0x1b5)][_0x47fd11(0x19b)]['id'];setTimeout(()=>{const _0x81fe65=_0x47fd11;this[_0x81fe65(0x163)][_0x81fe65(0x14e)](C[_0x81fe65(0x15d)]['id'],{'unitId':_0x3a49e8,'subUnitId':_0x214e3c},{'fromCollab':!0x0});});}}}[_0x3bf8b1(0x1c0)](){const _0x1ee3d9=_0x3bf8b1;this['_status$'][_0x1ee3d9(0x1b4)](_0x1ee3d9(0x1fc));const _0x5b21b0=new Map(),_0x5cae18=this['_commandDisposable']=new o[(_0x1ee3d9(0x1ca))]();_0x5cae18[_0x1ee3d9(0x202)](o[_0x1ee3d9(0x1c6)](()=>{const _0x4a6970=_0x1ee3d9;_0x5b21b0[_0x4a6970(0x1d9)](_0x53c4cb=>_0x53c4cb[_0x4a6970(0x165)]()),_0x5b21b0[_0x4a6970(0x187)]();})),_0x5cae18[_0x1ee3d9(0x202)](this[_0x1ee3d9(0x163)][_0x1ee3d9(0x208)](_0x1592a9=>{const _0x44ddf3=_0x1ee3d9;var _0x18f7b7;if(_0x1592a9[_0x44ddf3(0x1b7)]!==o[_0x44ddf3(0x203)]['OPERATION']||!this['_liveShareService'][_0x44ddf3(0x1bb)](_0x1592a9['id']))return;const {id:_0x40be3d}=_0x1592a9;let _0x525dcb;_0x5b21b0[_0x44ddf3(0x1d4)](_0x40be3d)?_0x525dcb=_0x5b21b0[_0x44ddf3(0x1dc)](_0x40be3d):(_0x525dcb=new O[(_0x44ddf3(0x210))](),_0x5b21b0[_0x44ddf3(0x1f9)](_0x40be3d,_0x525dcb),_0x525dcb[_0x44ddf3(0x153)](I[_0x44ddf3(0x169)]((_0x18f7b7=this[_0x44ddf3(0x1fa)][_0x44ddf3(0x176)](k))!=null?_0x18f7b7:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x3a3535=>{const _0x4b6d2a=_0x44ddf3;this[_0x4b6d2a(0x1d5)]['send']({'eventID':d[_0x4b6d2a(0x16f)][_0x4b6d2a(0x157)],'data':{'unitID':this[_0x4b6d2a(0x1eb)],'operations':{[_0x3a3535['id']]:{'id':_0x3a3535['id'],'params':JSON[_0x4b6d2a(0x1c7)](_0x3a3535['params'])}}}},this['_unitID']);})),_0x525dcb[_0x44ddf3(0x1b4)](_0x1592a9);})),this[_0x1ee3d9(0x211)][_0x1ee3d9(0x177)](this[_0x1ee3d9(0x1eb)])[_0x1ee3d9(0x1d9)](_0x51d839=>this[_0x1ee3d9(0x1d5)][_0x1ee3d9(0x204)]({'eventID':d[_0x1ee3d9(0x16f)][_0x1ee3d9(0x157)],'data':{'unitID':this[_0x1ee3d9(0x1eb)],'operations':{[_0x51d839['id']]:{'id':_0x51d839['id'],'params':JSON['stringify'](_0x51d839[_0x1ee3d9(0x1b5)])}}}},this['_unitID']));}[_0x3bf8b1(0x159)](){const _0x56c09d=_0x3bf8b1;var _0x1cea07;this[_0x56c09d(0x205)][_0x56c09d(0x1b4)]('idle'),(_0x1cea07=this[_0x56c09d(0x1ba)])==null||_0x1cea07[_0x56c09d(0x1da)](),this['_commandDisposable']=null;}[_0x3bf8b1(0x19e)](){const _0xf63e=_0x3bf8b1;var _0x25295a;(_0x25295a=this[_0xf63e(0x1ba)])==null||_0x25295a[_0xf63e(0x1da)](),this['_status$']['next']('following');}['_beIdle'](){const _0x14ba9e=_0x3bf8b1;var _0x194174;this[_0x14ba9e(0x205)]['next']('idle'),(_0x194174=this[_0x14ba9e(0x1ba)])==null||_0x194174[_0x14ba9e(0x1da)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x31b4bf=_0x3bf8b1;var _0x14598d;this[_0x31b4bf(0x205)][_0x31b4bf(0x1b4)](_0x31b4bf(0x191)),(_0x14598d=this['_commandDisposable'])==null||_0x14598d[_0x31b4bf(0x1da)]();}[_0x3bf8b1(0x1fb)](_0x438a30){const _0x489c0c=_0x3bf8b1;if([_0x489c0c(0x1fc),'not-following',_0x489c0c(0x1a3)]['includes'](this[_0x489c0c(0x1b0)])||!_0x438a30[_0x489c0c(0x1b8)][_0x489c0c(0x1e2)]||_0x438a30['data'][_0x489c0c(0x1e2)]===this[_0x489c0c(0x1d5)]['getMemberID']())return;this[_0x489c0c(0x1b0)]==='idle'&&this[_0x489c0c(0x19e)]();const _0x9d8f32=_0x438a30[_0x489c0c(0x1b8)][_0x489c0c(0x1ac)];Object[_0x489c0c(0x19c)](_0x9d8f32)['forEach'](_0x280fac=>{const _0x2344d8=_0x489c0c;this[_0x2344d8(0x163)][_0x2344d8(0x14e)](_0x280fac['id'],_0x280fac[_0x2344d8(0x1b5)]?JSON[_0x2344d8(0x14d)](_0x280fac[_0x2344d8(0x1b5)]):null,{'fromCollab':!0x0});});}[_0x3bf8b1(0x20d)](){const _0x28e9ab=_0x3bf8b1;var _0x24ff55;this['_status$'][_0x28e9ab(0x1b4)]('offline'),(_0x24ff55=this[_0x28e9ab(0x1ba)])==null||_0x24ff55[_0x28e9ab(0x1da)]();}[_0x3bf8b1(0x17e)](){const _0x242d7d=_0x3bf8b1;this[_0x242d7d(0x205)][_0x242d7d(0x1b4)](_0x242d7d(0x185)),this[_0x242d7d(0x184)]();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0x3bf8b1(0x16d)]),S(0x3,o[_0x3bf8b1(0x167)](E)),S(0x4,o[_0x3bf8b1(0x16b)])],exports[_0x3bf8b1(0x213)]);function $(){const _0x291ca8=_0x3bf8b1,_0x16f4ce=p[_0x291ca8(0x214)](exports[_0x291ca8(0x19d)]),_0x3e395b=p['useDependency'](o[_0x291ca8(0x17b)]),_0x1b4882=p['useObservable'](()=>_0x3e395b[_0x291ca8(0x18e)](o[_0x291ca8(0x190)][_0x291ca8(0x200)]),void 0x0,!0x1,[]),[_0x4d4931,_0x5033ba]=v['useState'](null),[_0xec5472,_0xac66df]=v[_0x291ca8(0x1bf)](u[_0x291ca8(0x1b3)]),_0x45ba66=v[_0x291ca8(0x1e9)](null);return v['useEffect'](()=>(_0x1b4882&&_0x16f4ce[_0x291ca8(0x142)](_0x1b4882[_0x291ca8(0x148)]())[_0x291ca8(0x16e)](_0x1abaab=>{const _0x9c041f=_0x291ca8;_0x5033ba(_0x1abaab),_0x45ba66[_0x9c041f(0x1ed)]=_0x1abaab[_0x9c041f(0x1a1)][_0x9c041f(0x1e5)](_0x5a9264=>{_0xac66df(_0x5a9264);});}),()=>{const _0x52ef71=_0x291ca8;var _0x236fa9;(_0x236fa9=_0x45ba66[_0x52ef71(0x1ed)])==null||_0x236fa9[_0x52ef71(0x178)](),_0x45ba66['current']=null;}),[_0x1b4882,_0x16f4ce]),_0x4d4931?l[_0x291ca8(0x1f1)](f[_0x291ca8(0x1aa)],{'align':'end','disabled':_0xec5472===u[_0x291ca8(0x172)],'className':_0x291ca8(0x18b),'overlay':l['jsx'](W,{'status':_0xec5472,'coordinator':_0x4d4931}),'children':l['jsx'](_0x291ca8(0x1e1),{'className':f[_0x291ca8(0x193)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xec5472===u[_0x291ca8(0x172)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xec5472!==u[_0x291ca8(0x172)]}),'type':_0x291ca8(0x1e1),'children':l[_0x291ca8(0x1f1)](R,{'className':_0x291ca8(0x18d)})})}):null;}function W(_0x56d086){const _0x3f5358=_0x3bf8b1,{status:_0x576b5e,coordinator:_0x5821b0}=_0x56d086;switch(_0x576b5e){case u[_0x3f5358(0x1b3)]:return l[_0x3f5358(0x1f1)](G,{'coordinator':_0x5821b0});case u[_0x3f5358(0x145)]:return l[_0x3f5358(0x1f1)](B,{'coordinator':_0x5821b0});case u[_0x3f5358(0x168)]:return l[_0x3f5358(0x1f1)](Y,{'coordinator':_0x5821b0});case u[_0x3f5358(0x172)]:return l[_0x3f5358(0x1f1)](J,{});case u[_0x3f5358(0x181)]:return l[_0x3f5358(0x1f1)](Z,{'coordinator':_0x5821b0});default:return null;}}function G(_0x56f425){const _0x395c23=_0x3bf8b1,{coordinator:_0x19c84e}=_0x56f425;return l[_0x395c23(0x1ef)](l[_0x395c23(0x175)],{'children':[l[_0x395c23(0x1f1)](_0x395c23(0x154),{'className':_0x395c23(0x1a2),'children':_0x395c23(0x14b)}),l[_0x395c23(0x1f1)](f[_0x395c23(0x1f4)],{'onClick':()=>_0x19c84e[_0x395c23(0x1d7)](),'children':_0x395c23(0x1ff)})]});}function B(_0x1b5cbc){const _0x2ed32f=_0x3bf8b1,{coordinator:_0x2efa6e}=_0x1b5cbc;return l[_0x2ed32f(0x1ef)](l['Fragment'],{'children':[l[_0x2ed32f(0x1f1)]('div',{'className':_0x2ed32f(0x1a2),'children':_0x2ed32f(0x162)}),l[_0x2ed32f(0x1f1)](f[_0x2ed32f(0x1f4)],{'onClick':()=>_0x2efa6e['stopFollowing'](),'children':_0x2ed32f(0x199)})]});}function Y(_0x347e69){const _0x38ef6d=_0x3bf8b1,{coordinator:_0xdd8854}=_0x347e69;return l[_0x38ef6d(0x1ef)](l[_0x38ef6d(0x175)],{'children':[l['jsx'](_0x38ef6d(0x154),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x38ef6d(0x166)}),l[_0x38ef6d(0x1f1)](f[_0x38ef6d(0x1f4)],{'variant':_0x38ef6d(0x18f),'onClick':()=>_0xdd8854[_0x38ef6d(0x192)](),'children':'Start\x20following'})]});}function Z(_0xeaf4f4){const _0x192f51=_0x3bf8b1,{coordinator:_0x4df6b1}=_0xeaf4f4;return l[_0x192f51(0x1ef)](l['Fragment'],{'children':[l[_0x192f51(0x1f1)]('div',{'className':_0x192f51(0x1a2),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x192f51(0x1f1)](f[_0x192f51(0x1f4)],{'variant':_0x192f51(0x14f),'onClick':()=>_0x4df6b1[_0x192f51(0x1e7)](),'children':_0x192f51(0x20e)})]});}function J(){const _0x2270ea=_0x3bf8b1;return l[_0x2270ea(0x1f1)](l['Fragment'],{'children':_0x2270ea(0x1a9)});}var K=Object['getOwnPropertyDescriptor'],z=(_0x52b1b2,_0x24f05b,_0x5da2f4,_0x38c1b4)=>{const _0x281350=_0x3bf8b1;for(var _0x26b5d3=_0x38c1b4>0x1?void 0x0:_0x38c1b4?K(_0x24f05b,_0x5da2f4):_0x24f05b,_0x2440e1=_0x52b1b2[_0x281350(0x15b)]-0x1,_0x2c7f4a;_0x2440e1>=0x0;_0x2440e1--)(_0x2c7f4a=_0x52b1b2[_0x2440e1])&&(_0x26b5d3=_0x2c7f4a(_0x26b5d3)||_0x26b5d3);return _0x26b5d3;},L=(_0x6ff18,_0x5cc798)=>(_0x53fd8e,_0x4fa9e5)=>_0x5cc798(_0x53fd8e,_0x4fa9e5,_0x6ff18);exports[_0x3bf8b1(0x174)]=class extends o[_0x3bf8b1(0x1d0)]{constructor(_0x406e91,_0x37248e){const _0x349b0f=_0x3bf8b1;super(),this[_0x349b0f(0x196)]=_0x406e91,this[_0x349b0f(0x20a)]=_0x37248e,this[_0x349b0f(0x161)]();}['_mountLiveShare'](){const _0x142150=_0x3bf8b1;this[_0x142150(0x207)](this['_uiPartsService']['registerComponent'](p[_0x142150(0x15e)]['HEADER_MENU'],()=>p[_0x142150(0x1af)]($,this['_injector'])));}},exports[_0x3bf8b1(0x174)]=z([L(0x0,o[_0x3bf8b1(0x167)](o[_0x3bf8b1(0x179)])),L(0x1,p[_0x3bf8b1(0x1f7)])],exports[_0x3bf8b1(0x174)]);const Q=_0x3bf8b1(0x1c2),w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0x2845e4,_0x591acb,_0x23f0aa,_0x49d1aa)=>{const _0x15020a=_0x3bf8b1;for(var _0x3c8d01=_0x49d1aa>0x1?void 0x0:_0x49d1aa?X(_0x591acb,_0x23f0aa):_0x591acb,_0x14caab=_0x2845e4[_0x15020a(0x15b)]-0x1,_0x2cbaf5;_0x14caab>=0x0;_0x14caab--)(_0x2cbaf5=_0x2845e4[_0x14caab])&&(_0x3c8d01=_0x2cbaf5(_0x3c8d01)||_0x3c8d01);return _0x3c8d01;},te=(_0x76dd90,_0x465fca)=>(_0x1daf90,_0x43e028)=>_0x465fca(_0x1daf90,_0x43e028,_0x76dd90);let m=class extends o[_0x3bf8b1(0x1d0)]{constructor(_0x3393a9){const _0xe7a249=_0x3bf8b1;super(),this[_0xe7a249(0x211)]=_0x3393a9,this[_0xe7a249(0x15a)]();}[_0x3bf8b1(0x15a)](){const _0x251c4a=_0x3bf8b1;[D[_0x251c4a(0x1a0)]['id'],D[_0x251c4a(0x1a6)]['id'],C[_0x251c4a(0x15d)]['id']][_0x251c4a(0x1d9)](_0x513a06=>{const _0xb77def=_0x251c4a;this['disposeWithMe'](this[_0xb77def(0x211)][_0xb77def(0x1d3)](_0x513a06));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object[_0x3bf8b1(0x1c3)],se=Object['getOwnPropertyDescriptor'],ne=(_0xf2b976,_0x2a4a13,_0x552247)=>_0x2a4a13 in _0xf2b976?ie(_0xf2b976,_0x2a4a13,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x552247}):_0xf2b976[_0x2a4a13]=_0x552247,re=(_0x31e09a,_0x57f078,_0x3b49f9,_0x5f4d91)=>{const _0x4c48a0=_0x3bf8b1;for(var _0x2dacaa=_0x5f4d91>0x1?void 0x0:_0x5f4d91?se(_0x57f078,_0x3b49f9):_0x57f078,_0x557e93=_0x31e09a[_0x4c48a0(0x15b)]-0x1,_0x328b43;_0x557e93>=0x0;_0x557e93--)(_0x328b43=_0x31e09a[_0x557e93])&&(_0x2dacaa=_0x328b43(_0x2dacaa)||_0x2dacaa);return _0x2dacaa;},N=(_0x30b657,_0x4bc9e3)=>(_0x434370,_0x1e3176)=>_0x4bc9e3(_0x434370,_0x1e3176,_0x30b657),A=(_0x5ec3d0,_0x3e7b69,_0x171e27)=>ne(_0x5ec3d0,typeof _0x3e7b69!='symbol'?_0x3e7b69+'':_0x3e7b69,_0x171e27);const oe='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x3bf8b1(0x140)]=class extends o[_0x3bf8b1(0x143)]{constructor(_0x24ba40=w,_0x192c21,_0x9b6692){const _0x171475=_0x3bf8b1;super(),this[_0x171475(0x1df)]=_0x24ba40,this[_0x171475(0x196)]=_0x192c21,this[_0x171475(0x1fa)]=_0x9b6692;const {..._0x413cfc}=o[_0x171475(0x155)]({},w,this[_0x171475(0x1df)]);this[_0x171475(0x1fa)]['setConfig'](Q,_0x413cfc);}[_0x3bf8b1(0x144)](){const _0x31803a=_0x3bf8b1;o[_0x31803a(0x15f)](this[_0x31803a(0x196)],o[_0x31803a(0x160)]([[E],[exports['LiveShareController']],[m],[exports[_0x31803a(0x174)]]],this[_0x31803a(0x1df)][_0x31803a(0x1e4)])),o[_0x31803a(0x1a4)](this['_injector'],[[m]]);}['onRendered'](){const _0xeade5f=_0x3bf8b1;o['touchDependencies'](this[_0xeade5f(0x196)],[[exports[_0xeade5f(0x174)]]]);}},A(exports[_0x3bf8b1(0x140)],'type',o['UniverInstanceType'][_0x3bf8b1(0x1cf)]),A(exports[_0x3bf8b1(0x140)],_0x3bf8b1(0x1ae),oe),exports['UniverLiveSharePlugin']=re([o['DependentOn'](b[_0x3bf8b1(0x149)]),N(0x1,o['Inject'](o[_0x3bf8b1(0x179)])),N(0x2,o[_0x3bf8b1(0x16d)])],exports[_0x3bf8b1(0x140)]),exports['LiveShare']=$,exports[_0x3bf8b1(0x1bd)]=E,exports[_0x3bf8b1(0x19f)]=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 _0x5f210e=_0x4205;(function(_0x77f3f4,_0x4391ac){const _0xeb3014=_0x4205,_0x4700f2=_0x77f3f4();while(!![]){try{const _0xa9259d=parseInt(_0xeb3014(0x220))/0x1*(-parseInt(_0xeb3014(0x21a))/0x2)+-parseInt(_0xeb3014(0x1bd))/0x3*(-parseInt(_0xeb3014(0x205))/0x4)+parseInt(_0xeb3014(0x1dd))/0x5+-parseInt(_0xeb3014(0x1a1))/0x6+parseInt(_0xeb3014(0x1ec))/0x7*(-parseInt(_0xeb3014(0x1ae))/0x8)+-parseInt(_0xeb3014(0x1e1))/0x9+-parseInt(_0xeb3014(0x22a))/0xa*(-parseInt(_0xeb3014(0x1fd))/0xb);if(_0xa9259d===_0x4391ac)break;else _0x4700f2['push'](_0x4700f2['shift']());}catch(_0x429913){_0x4700f2['push'](_0x4700f2['shift']());}}}(_0x6842,0x194f6));var J=Object[_0x5f210e(0x222)],K=(_0x1ca8dc,_0x31bb47,_0x414c95)=>_0x31bb47 in _0x1ca8dc?J(_0x1ca8dc,_0x31bb47,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x414c95}):_0x1ca8dc[_0x31bb47]=_0x414c95,u=(_0x4dc91b,_0x33d0d7,_0x10facd)=>K(_0x4dc91b,typeof _0x33d0d7!='symbol'?_0x33d0d7+'':_0x33d0d7,_0x10facd);import{Disposable as _0x4347cc,toDisposable as _0x4a1250,IUniverInstanceService as _0x29aa4f,Inject as _0x4937f2,Injector as _0x179f2d,IConfigService as _0x333494,ICommandService as _0x422603,RxDisposable as _0xbb3b5b,UniverInstanceType as _0x4cded3,DisposableCollection as _0x42a077,CommandType as _0x1dfff3,DependentOn as _0x190b72,Plugin as _0x406235,merge as _0x2df91a,registerDependencies as _0x173359,mergeOverrideWithDependencies as _0x20d4d6,touchDependencies as _0x1d822a}from'@univerjs/core';import{useDependency as _0x1394d4,useObservable as _0x30edbe,IUIPartsService as _0x6bedd5,BuiltInUIPart as _0x102999,connectInjector as _0x1ca43}from'@univerjs/ui';import{jsx as _0x28f4b5,jsxs as _0x526545,Fragment as _0x3d9444}from'react/jsx-runtime';import{Dropdown as _0x12b65d,clsx as _0x403356,Button as _0x36a71c}from'@univerjs/design';function _0x6842(){const _0x237418=['evenodd','dispose$','645612rTxkYB','_startLiveShareCoordinator','requireSession','_unitID','defs','_sharedOperations','toString','getMemberID','_handleTerminate','params','fill','stringify','use','248JysBoL','LIVESHARE_TERMINATE','getValue','values','getLiveShareCoordinatorSync','getOwnPropertyDescriptor','OFFLINE','LIVESHARE_REQUEST_HOST','_handleOperation','map','LIVESHARE_NEW_HOST','getCurrentTypeOfUnit$','_uiPartsService','get','stopPresenting','2634wesgnK','_fetchOperations','setConfig','children','following','_commandDisposable','displayName','svg','idle','url(#$1','disposeWithMe','colorChannel1','_handleNewChangeSets','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_handleNewHost','You\x27re\x20following\x20the\x20presenter','Stop\x20following','currentColor','init','live-share-icon','delete','SAME_OPERATION_SHARE_INTERVAL','none','startFollowing','_beIdle','add','_stopPresenting','reverse','data','forEach','string','_init','1028825bkmOJp','getStatus','onCommandExecuted','subscribe','1681983CFciHU','offline','pipe','xlink:href','_config','executeCommand','from','_stopFollowing','entries','mask','asObservable','36806PgwcLz','sessionStatus$','Stop\x20presenting','_injector','IDLE','unitId','_univerInstanceService','includes','_liveShareService','replace','status$','tag','symbol','Start','button','_handleOffline','complete','817872BWPviN','assign','Present\x20this\x20document','operations','http://www.w3.org/2000/svg','next','_presenter','getLiveShareCoordinator','128czdKqw','div','_configService','onStarting','OPERATION','has','tryStartPresenting','substring','FOLLOWING','trim','UNIVER_SHEET','registerSharedOperation','random','univer-size-4','_commandService','shouldShareOperation','_startFollowing','stopFollowing','_collabSession','_handleOnline','_startPresenting','16czMjLw','You\x27re\x20presenting\x20the\x20document','createInstance','not-following','getConfig','1em','14852zACCQY','_mountLiveShare','defineProperty','memberID','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','event$','default','idSuffix','0\x200\x2017\x2017','registerInitialStateReporter','60drqWGr','pluginName','univer-mb-3\x20univer-w-full\x20univer-text-sm','getInitialStates','_reporters','set','type','send','LIVESHARE_OPERATION','_status$','PRESENTING','_status','clear','defIds','current','_entities','attrs','LiveShareIcon','getTypeOfUnitAdded$','presenting','length','sheet','dispose','presenter','univerjs-icon\x20univerjs-icon-','HEADER_MENU','getUnitId'];_0x6842=function(){return _0x237418;};return _0x6842();}import{useRef as _0x31ae4f,createElement as _0x3b18d7,forwardRef as _0x2f499a,useState as _0x1f1cf5,useEffect as _0x109cfc}from'react';import{CollaborationEvent as _0x46ef97,parseProtocolChangeset as _0x34a695}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x59cabe,SessionStatus as _0x51023d,UniverCollaborationClientPlugin as _0x363746}from'@univerjs-pro/collaboration-client';function _0x4205(_0x1e8f61,_0x18387b){_0x1e8f61=_0x1e8f61-0x19d;const _0x684275=_0x6842();let _0x4205ef=_0x684275[_0x1e8f61];return _0x4205ef;}import{InsertSheetMutation as _0x19729f,SetWorksheetActiveOperation as _0x2e84d3}from'@univerjs/sheets';import{BehaviorSubject as _0x28b056,Subject as _0x4f0fd5}from'rxjs';import{takeUntil as _0x2e8cf2,throttleTime as _0x258f82}from'rxjs/operators';import{SetZoomRatioOperation as _0x31f67b,SetScrollOperation as _0x487be7}from'@univerjs/sheets-ui';function k({ref:_0x9f714e,..._0x49d3e0}){const _0x3651f3=_0x5f210e,{icon:_0x53a727,id:_0x478e97,className:_0x5f4c11,extend:_0x9e631,..._0x30ac5e}=_0x49d3e0,_0x56d5d3=(_0x3651f3(0x242)+_0x478e97+'\x20'+(_0x5f4c11||''))[_0x3651f3(0x20e)](),_0x3caaf1=_0x31ae4f('_'+Oe());return G(_0x53a727,''+_0x478e97,{'defIds':_0x53a727[_0x3651f3(0x237)],'idSuffix':_0x3caaf1[_0x3651f3(0x238)]},{'ref':_0x9f714e,'className':_0x56d5d3,..._0x30ac5e},_0x9e631);}function G(_0x29bf56,_0x478156,_0x2476ce,_0x1b3560,_0x5d6aa6){const _0x2c26e7=_0x5f210e;return _0x3b18d7(_0x29bf56[_0x2c26e7(0x1f7)],{'key':_0x478156,...be(_0x29bf56,_0x2476ce,_0x5d6aa6),..._0x1b3560},(Ee(_0x29bf56,_0x2476ce)['children']||[])[_0x2c26e7(0x1b7)]((_0x419c69,_0x58ded4)=>G(_0x419c69,_0x478156+'-'+_0x29bf56[_0x2c26e7(0x1f7)]+'-'+_0x58ded4,_0x2476ce,void 0x0,_0x5d6aa6)));}function be(_0x3a03ed,_0x40135b,_0x25314e){const _0x24acfd=_0x5f210e,_0x42387f={..._0x3a03ed[_0x24acfd(0x23a)]};_0x25314e!=null&&_0x25314e[_0x24acfd(0x1c8)]&&_0x42387f[_0x24acfd(0x1ab)]===_0x24acfd(0x1c8)&&(_0x42387f[_0x24acfd(0x1ab)]=_0x25314e[_0x24acfd(0x1c8)]),_0x3a03ed[_0x24acfd(0x1f7)]===_0x24acfd(0x1ea)&&_0x42387f['id']&&(_0x42387f['id']=_0x42387f['id']+_0x40135b[_0x24acfd(0x227)]),Object['entries'](_0x42387f)[_0x24acfd(0x1da)](([_0x58dc04,_0x5a7633])=>{const _0x289b33=_0x24acfd;_0x58dc04===_0x289b33(0x1ea)&&typeof _0x5a7633==_0x289b33(0x1db)&&(_0x42387f[_0x58dc04]=_0x5a7633[_0x289b33(0x1f5)](/url\(#(.*)\)/,_0x289b33(0x1c6)+_0x40135b[_0x289b33(0x227)]+')'));});const {defIds:_0xc7ff80}=_0x40135b;return!_0xc7ff80||_0xc7ff80[_0x24acfd(0x23e)]===0x0||(_0x3a03ed['tag']===_0x24acfd(0x1ad)&&_0x42387f[_0x24acfd(0x1e4)]&&(_0x42387f[_0x24acfd(0x1e4)]=_0x42387f[_0x24acfd(0x1e4)]+_0x40135b[_0x24acfd(0x227)]),Object[_0x24acfd(0x1e9)](_0x42387f)[_0x24acfd(0x1da)](([_0x745b18,_0x31b2f9])=>{const _0x39a2ea=_0x24acfd;typeof _0x31b2f9==_0x39a2ea(0x1db)&&(_0x42387f[_0x745b18]=_0x31b2f9['replace'](/url\(#(.*)\)/,'url(#$1'+_0x40135b[_0x39a2ea(0x227)]+')'));})),_0x42387f;}function Ee(_0x2053d5,_0x463b30){const _0x1a8588=_0x5f210e;var _0x19393e;const {defIds:_0x477302}=_0x463b30;return!_0x477302||_0x477302[_0x1a8588(0x23e)]===0x0?_0x2053d5:_0x2053d5[_0x1a8588(0x1f7)]===_0x1a8588(0x1a5)&&((_0x19393e=_0x2053d5[_0x1a8588(0x1c0)])!=null&&_0x19393e[_0x1a8588(0x23e)])?{..._0x2053d5,'children':_0x2053d5[_0x1a8588(0x1c0)][_0x1a8588(0x1b7)](_0x46760c=>typeof _0x46760c['attrs']['id']=='string'&&_0x477302&&_0x477302[_0x1a8588(0x1f3)](_0x46760c[_0x1a8588(0x23a)]['id'])?{..._0x46760c,'attrs':{..._0x46760c[_0x1a8588(0x23a)],'id':_0x46760c[_0x1a8588(0x23a)]['id']+_0x463b30[_0x1a8588(0x227)]}}:_0x46760c)}:_0x2053d5;}function Oe(){const _0x55c2cd=_0x5f210e;return Math[_0x55c2cd(0x211)]()[_0x55c2cd(0x1a7)](0x24)[_0x55c2cd(0x20c)](0x2,0x8);}k[_0x5f210e(0x1c3)]='UniverIcon';const we={'tag':_0x5f210e(0x1c4),'attrs':{'xmlns':_0x5f210e(0x201),'fill':_0x5f210e(0x1d3),'viewBox':_0x5f210e(0x228),'width':_0x5f210e(0x21f),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x5f210e(0x1ce),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x5f210e(0x224),'fillRule':'evenodd','clipRule':_0x5f210e(0x19f)}}]},W=_0x2f499a(function(_0x5a2083,_0x5aff48){const _0x620a94=_0x5f210e;return _0x3b18d7(k,Object[_0x620a94(0x1fe)]({},_0x5a2083,{'id':_0x620a94(0x1d0),'ref':_0x5aff48,'icon':we}));});W[_0x5f210e(0x1c3)]=_0x5f210e(0x23b);class L extends _0x4347cc{constructor(){const _0x418bd8=_0x5f210e;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x418bd8(0x22e),new Set());}[_0x5f210e(0x210)](_0x5cad0d){const _0x3bf3a0=_0x5f210e;return this[_0x3bf3a0(0x1a6)]['add'](_0x5cad0d),_0x4a1250(()=>this[_0x3bf3a0(0x1a6)][_0x3bf3a0(0x1d1)](_0x5cad0d));}[_0x5f210e(0x229)](_0x4cfa56){const _0x585956=_0x5f210e;return this['_reporters'][_0x585956(0x1d6)](_0x4cfa56),_0x4a1250(()=>this[_0x585956(0x22e)][_0x585956(0x1d1)](_0x4cfa56));}[_0x5f210e(0x214)](_0x4e598d){const _0x733095=_0x5f210e;return this[_0x733095(0x1a6)][_0x733095(0x20a)](_0x4e598d);}[_0x5f210e(0x22d)](_0x1e402e){const _0x4f558b=_0x5f210e;return Array[_0x4f558b(0x1e7)](this['_reporters'])[_0x4f558b(0x1b7)](_0x5ca0a4=>_0x5ca0a4(_0x1e402e));}}var Ne=Object[_0x5f210e(0x1b3)],Y=(_0x25be2c,_0x116969,_0x2f9838,_0x1104ad)=>{const _0x450e1f=_0x5f210e;for(var _0x59d459=_0x1104ad>0x1?void 0x0:_0x1104ad?Ne(_0x116969,_0x2f9838):_0x116969,_0x3354b8=_0x25be2c[_0x450e1f(0x23e)]-0x1,_0x130364;_0x3354b8>=0x0;_0x3354b8--)(_0x130364=_0x25be2c[_0x3354b8])&&(_0x59d459=_0x130364(_0x59d459)||_0x59d459);return _0x59d459;},_=(_0x196aba,_0x1752f7)=>(_0x42bd81,_0x53426b)=>_0x1752f7(_0x42bd81,_0x53426b,_0x196aba);let S=class extends _0xbb3b5b{constructor(_0x3a718d,_0x1967bc,_0x1736fd){const _0x3610ef=_0x5f210e;super(),u(this,_0x3610ef(0x239),new Map()),(this[_0x3610ef(0x1f2)]=_0x3a718d,this['_injector']=_0x1967bc,this['_collabSessionService']=_0x1736fd,this[_0x3610ef(0x1dc)]());}async[_0x5f210e(0x204)](_0x7e5df5){const _0x2fe540=_0x5f210e;return this[_0x2fe540(0x239)][_0x2fe540(0x20a)](_0x7e5df5)||await this[_0x2fe540(0x1a2)](_0x7e5df5),this[_0x2fe540(0x239)][_0x2fe540(0x1bb)](_0x7e5df5);}[_0x5f210e(0x1b2)](_0x5a6fbe){const _0x456e44=_0x5f210e;var _0x1275b4;return(_0x1275b4=this[_0x456e44(0x239)]['get'](_0x5a6fbe))!=null?_0x1275b4:null;}['_init'](){const _0x305aca=_0x5f210e;this[_0x305aca(0x1f2)][_0x305aca(0x23c)](_0x4cded3[_0x305aca(0x20f)])[_0x305aca(0x1e3)](_0x2e8cf2(this[_0x305aca(0x1a0)]))[_0x305aca(0x1e0)](async _0x26d6b4=>{const _0x93351b=_0x305aca,_0x11661b=_0x26d6b4[_0x93351b(0x19e)]();this['_entities']['has'](_0x11661b)||this[_0x93351b(0x1a2)](_0x11661b);}),this[_0x305aca(0x1f2)]['getTypeOfUnitDisposed$'](_0x4cded3[_0x305aca(0x20f)])[_0x305aca(0x1e3)](_0x2e8cf2(this[_0x305aca(0x1a0)]))[_0x305aca(0x1e0)](_0x1b3982=>{const _0x1659d5=_0x305aca,_0x3e0bf7=_0x1b3982[_0x1659d5(0x19e)](),_0xa5f47c=this[_0x1659d5(0x239)]['get'](_0x3e0bf7);_0xa5f47c==null||_0xa5f47c['dispose']();});}async[_0x5f210e(0x1a2)](_0x2791ef){const _0x148183=_0x5f210e,_0xf25f8d=await this['_collabSessionService'][_0x148183(0x1a3)](_0x2791ef),_0x546f28=this[_0x148183(0x1ef)][_0x148183(0x21c)](N,_0x2791ef,_0xf25f8d);return _0x546f28[_0x148183(0x1cf)](),this[_0x148183(0x239)][_0x148183(0x22f)](_0x2791ef,_0x546f28),_0x546f28;}};S=Y([_(0x0,_0x29aa4f),_(0x1,_0x4937f2(_0x179f2d)),_(0x2,_0x4937f2(_0x59cabe))],S);var c=(_0xc00f77=>(_0xc00f77['OFFLINE']=_0x5f210e(0x1e2),_0xc00f77[_0x5f210e(0x1f0)]=_0x5f210e(0x1c5),_0xc00f77[_0x5f210e(0x20d)]=_0x5f210e(0x1c1),_0xc00f77['NOT_FOLLOWING']='not-following',_0xc00f77[_0x5f210e(0x234)]=_0x5f210e(0x23d),_0xc00f77))(c||{});const Ce=_0x5f210e(0x1d2),De=0xc8;let N=class extends _0xbb3b5b{constructor(_0x174e05,_0x3780f3,_0x1e15f4,_0xddd3c6,_0x500fc0){const _0x574a1a=_0x5f210e;super(),u(this,_0x574a1a(0x233),new _0x28b056(_0x574a1a(0x1c5))),u(this,_0x574a1a(0x1f6),this[_0x574a1a(0x233)][_0x574a1a(0x1eb)]()),u(this,_0x574a1a(0x1dc),!0x1),u(this,'_commandDisposable',null),u(this,_0x574a1a(0x203),null),(this[_0x574a1a(0x1a4)]=_0x174e05,this[_0x574a1a(0x217)]=_0x3780f3,this[_0x574a1a(0x207)]=_0x1e15f4,this[_0x574a1a(0x1f4)]=_0xddd3c6,this[_0x574a1a(0x213)]=_0x500fc0);}get[_0x5f210e(0x235)](){const _0x5693ff=_0x5f210e;return this[_0x5693ff(0x233)][_0x5693ff(0x1b0)]();}[_0x5f210e(0x240)](){const _0x24ca52=_0x5f210e;var _0x18d3e8;(_0x18d3e8=this[_0x24ca52(0x1c2)])==null||_0x18d3e8[_0x24ca52(0x240)](),this[_0x24ca52(0x233)][_0x24ca52(0x202)](_0x24ca52(0x1c5)),this[_0x24ca52(0x233)][_0x24ca52(0x1fc)]();}[_0x5f210e(0x1de)](){const _0x5a41bb=_0x5f210e;return this[_0x5a41bb(0x235)];}[_0x5f210e(0x1cf)](){const _0x471ed=_0x5f210e;this[_0x471ed(0x1dc)]||(this[_0x471ed(0x1dc)]=!0x0,this['_collabSession'][_0x471ed(0x1ed)]['pipe'](_0x2e8cf2(this[_0x471ed(0x1a0)]))['subscribe'](_0x4c43b0=>{const _0x15958d=_0x471ed;switch(_0x4c43b0){case _0x51023d[_0x15958d(0x1b4)]:this[_0x15958d(0x1fb)]();break;case _0x51023d['ONLINE']:this[_0x15958d(0x218)]();break;}}),this[_0x471ed(0x217)][_0x471ed(0x225)][_0x471ed(0x1e3)](_0x2e8cf2(this[_0x471ed(0x1a0)]))[_0x471ed(0x1e0)](_0xc530e6=>{const _0x286662=_0x471ed,{eventID:_0x5d6772}=_0xc530e6;switch(_0x5d6772){case _0x46ef97[_0x286662(0x1b8)]:this[_0x286662(0x1cb)](_0xc530e6);break;case _0x46ef97[_0x286662(0x232)]:this[_0x286662(0x1b6)](_0xc530e6);break;case _0x46ef97[_0x286662(0x1af)]:this[_0x286662(0x1a9)]();break;case _0x46ef97['NEW_CHANGESETS']:this[_0x286662(0x1c9)](_0xc530e6);break;}}));}[_0x5f210e(0x20b)](){const _0x402c77=_0x5f210e;this[_0x402c77(0x217)]['send']({'eventID':_0x46ef97[_0x402c77(0x1b5)],'data':{'unitID':this[_0x402c77(0x1a4)],'userID':this[_0x402c77(0x217)][_0x402c77(0x1a8)]()}},this[_0x402c77(0x1a4)]);}[_0x5f210e(0x1bc)](){const _0x35c601=_0x5f210e;this[_0x35c601(0x235)]===_0x35c601(0x23d)&&(this[_0x35c601(0x233)][_0x35c601(0x202)]('idle'),this[_0x35c601(0x217)][_0x35c601(0x231)]({'eventID':_0x46ef97[_0x35c601(0x1af)],'data':{'unitID':this[_0x35c601(0x1a4)]}},this['_unitID']));}[_0x5f210e(0x1d4)](){const _0x5be0c6=_0x5f210e;this['_status']==='not-following'&&(this['_status$'][_0x5be0c6(0x202)](_0x5be0c6(0x1c1)),this[_0x5be0c6(0x215)]());}[_0x5f210e(0x216)](){const _0x4e3a41=_0x5f210e;this[_0x4e3a41(0x235)]===_0x4e3a41(0x1c1)&&this[_0x4e3a41(0x1e8)]();}[_0x5f210e(0x1cb)](_0x39f759){const _0x2d28ce=_0x5f210e,{presenter:_0x49be82}=_0x39f759[_0x2d28ce(0x1d9)],_0x4a0661=this[_0x2d28ce(0x217)][_0x2d28ce(0x1a8)]();this['_presenter']=_0x49be82,_0x49be82===_0x4a0661?(this[_0x2d28ce(0x1e8)](),this[_0x2d28ce(0x219)]()):this[_0x2d28ce(0x235)]!=='not-following'&&(this['_stopPresenting'](),this[_0x2d28ce(0x215)]());}[_0x5f210e(0x1be)](){const _0x1f4e49=_0x5f210e,_0x24e6b9={'eventID':_0x46ef97['LIVESHARE_FETCH_OPERATIONS']};this[_0x1f4e49(0x217)][_0x1f4e49(0x231)](_0x24e6b9,this[_0x1f4e49(0x1a4)]);}['_handleTerminate'](){const _0x1c59a8=_0x5f210e;this[_0x1c59a8(0x203)]=null,this[_0x1c59a8(0x235)]!==_0x1c59a8(0x23d)&&this[_0x1c59a8(0x1d5)]();}[_0x5f210e(0x1c9)](_0x4ee355){const _0x46b9fb=_0x5f210e;if(this[_0x46b9fb(0x235)]===_0x46b9fb(0x1c1)&&this[_0x46b9fb(0x203)]===_0x4ee355[_0x46b9fb(0x1d9)][_0x46b9fb(0x223)]){const _0x5ad1c6=_0x34a695(_0x4ee355[_0x46b9fb(0x1d9)])['mutations'][_0x46b9fb(0x1d8)]()['find'](_0xd529e3=>_0xd529e3['id']===_0x19729f['id']);if(_0x5ad1c6){const _0x1fe012=_0x5ad1c6[_0x46b9fb(0x1aa)][_0x46b9fb(0x1f1)],_0x1cb5a0=_0x5ad1c6[_0x46b9fb(0x1aa)][_0x46b9fb(0x23f)]['id'];setTimeout(()=>{const _0xa8eec5=_0x46b9fb;this[_0xa8eec5(0x213)][_0xa8eec5(0x1e6)](_0x2e84d3['id'],{'unitId':_0x1fe012,'subUnitId':_0x1cb5a0},{'fromCollab':!0x0});});}}}[_0x5f210e(0x219)](){const _0x5155dc=_0x5f210e;this['_status$'][_0x5155dc(0x202)]('presenting');const _0x4a7a16=new Map(),_0x3bf5c4=this['_commandDisposable']=new _0x42a077();_0x3bf5c4[_0x5155dc(0x1d6)](_0x4a1250(()=>{const _0x44c526=_0x5155dc;_0x4a7a16[_0x44c526(0x1da)](_0x48ae2d=>_0x48ae2d[_0x44c526(0x1fc)]()),_0x4a7a16[_0x44c526(0x236)]();})),_0x3bf5c4[_0x5155dc(0x1d6)](this['_commandService'][_0x5155dc(0x1df)](_0x9cf3d8=>{const _0x313a1f=_0x5155dc;var _0x20ad03;if(_0x9cf3d8[_0x313a1f(0x230)]!==_0x1dfff3[_0x313a1f(0x209)]||!this['_liveShareService'][_0x313a1f(0x214)](_0x9cf3d8['id']))return;const {id:_0x3e7b2b}=_0x9cf3d8;let _0x1aed76;_0x4a7a16['has'](_0x3e7b2b)?_0x1aed76=_0x4a7a16['get'](_0x3e7b2b):(_0x1aed76=new _0x4f0fd5(),_0x4a7a16[_0x313a1f(0x22f)](_0x3e7b2b,_0x1aed76),_0x1aed76[_0x313a1f(0x1e3)](_0x258f82((_0x20ad03=this['_configService'][_0x313a1f(0x21e)](Ce))!=null?_0x20ad03:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x313a1f(0x1e0)](_0x1d35fb=>{const _0x198ec0=_0x313a1f;this[_0x198ec0(0x217)]['send']({'eventID':_0x46ef97[_0x198ec0(0x232)],'data':{'unitID':this[_0x198ec0(0x1a4)],'operations':{[_0x1d35fb['id']]:{'id':_0x1d35fb['id'],'params':JSON[_0x198ec0(0x1ac)](_0x1d35fb[_0x198ec0(0x1aa)])}}}},this[_0x198ec0(0x1a4)]);})),_0x1aed76['next'](_0x9cf3d8);})),this[_0x5155dc(0x1f4)]['getInitialStates'](this[_0x5155dc(0x1a4)])[_0x5155dc(0x1da)](_0x35b374=>this[_0x5155dc(0x217)][_0x5155dc(0x231)]({'eventID':_0x46ef97['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5155dc(0x1a4)],'operations':{[_0x35b374['id']]:{'id':_0x35b374['id'],'params':JSON[_0x5155dc(0x1ac)](_0x35b374['params'])}}}},this['_unitID']));}[_0x5f210e(0x1d7)](){const _0x366330=_0x5f210e;var _0x50a4fc;this['_status$'][_0x366330(0x202)]('idle'),(_0x50a4fc=this[_0x366330(0x1c2)])==null||_0x50a4fc[_0x366330(0x240)](),this[_0x366330(0x1c2)]=null;}[_0x5f210e(0x215)](){const _0x309dc9=_0x5f210e;var _0x159c0b;(_0x159c0b=this[_0x309dc9(0x1c2)])==null||_0x159c0b[_0x309dc9(0x240)](),this[_0x309dc9(0x233)][_0x309dc9(0x202)]('following');}['_beIdle'](){const _0x392d64=_0x5f210e;var _0x1965f5;this[_0x392d64(0x233)][_0x392d64(0x202)]('idle'),(_0x1965f5=this[_0x392d64(0x1c2)])==null||_0x1965f5['dispose'](),this['_commandDisposable']=null;}[_0x5f210e(0x1e8)](){const _0x27e1dd=_0x5f210e;var _0x13d45b;this[_0x27e1dd(0x233)][_0x27e1dd(0x202)](_0x27e1dd(0x21d)),(_0x13d45b=this[_0x27e1dd(0x1c2)])==null||_0x13d45b['dispose']();}['_handleOperation'](_0xd034e0){const _0x3e6311=_0x5f210e;if([_0x3e6311(0x23d),_0x3e6311(0x21d),_0x3e6311(0x1e2)][_0x3e6311(0x1f3)](this[_0x3e6311(0x235)])||!_0xd034e0[_0x3e6311(0x1d9)][_0x3e6311(0x241)]||_0xd034e0[_0x3e6311(0x1d9)]['presenter']===this[_0x3e6311(0x217)][_0x3e6311(0x1a8)]())return;this['_status']===_0x3e6311(0x1c5)&&this[_0x3e6311(0x215)]();const _0x23361d=_0xd034e0[_0x3e6311(0x1d9)][_0x3e6311(0x200)];Object[_0x3e6311(0x1b1)](_0x23361d)['forEach'](_0x22898a=>{const _0x2812f2=_0x3e6311;this['_commandService'][_0x2812f2(0x1e6)](_0x22898a['id'],_0x22898a['params']?JSON['parse'](_0x22898a[_0x2812f2(0x1aa)]):null,{'fromCollab':!0x0});});}[_0x5f210e(0x1fb)](){const _0x3250d9=_0x5f210e;var _0x33c312;this[_0x3250d9(0x233)][_0x3250d9(0x202)](_0x3250d9(0x1e2)),(_0x33c312=this[_0x3250d9(0x1c2)])==null||_0x33c312[_0x3250d9(0x240)]();}['_handleOnline'](){const _0x2a94c3=_0x5f210e;this[_0x2a94c3(0x233)][_0x2a94c3(0x202)](_0x2a94c3(0x1c5)),this[_0x2a94c3(0x1be)]();}};N=Y([_(0x2,_0x333494),_(0x3,_0x4937f2(L)),_(0x4,_0x422603)],N);function Le(){const _0x58f66f=_0x5f210e,_0x228b58=_0x1394d4(S),_0x5bd705=_0x1394d4(_0x29aa4f),_0xfa6d6f=_0x30edbe(()=>_0x5bd705[_0x58f66f(0x1b9)](_0x4cded3[_0x58f66f(0x20f)]),void 0x0,!0x1,[]),[_0x408d08,_0x33fa29]=_0x1f1cf5(null),[_0x3eaa33,_0xd1d095]=_0x1f1cf5(c[_0x58f66f(0x1f0)]),_0x1a2e98=_0x31ae4f(null);return _0x109cfc(()=>(_0xfa6d6f&&_0x228b58['getLiveShareCoordinator'](_0xfa6d6f[_0x58f66f(0x19e)]())['then'](_0x4294a4=>{const _0x3473ca=_0x58f66f;_0x33fa29(_0x4294a4),_0x1a2e98['current']=_0x4294a4['status$'][_0x3473ca(0x1e0)](_0x2ec87b=>{_0xd1d095(_0x2ec87b);});}),()=>{const _0x10148f=_0x58f66f;var _0x2c46d5;(_0x2c46d5=_0x1a2e98[_0x10148f(0x238)])==null||_0x2c46d5['unsubscribe'](),_0x1a2e98['current']=null;}),[_0xfa6d6f,_0x228b58]),_0x408d08?_0x28f4b5(_0x12b65d,{'align':'end','disabled':_0x3eaa33===c[_0x58f66f(0x1b4)],'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':_0x28f4b5(Re,{'status':_0x3eaa33,'coordinator':_0x408d08}),'children':_0x28f4b5('button',{'className':_0x403356(_0x58f66f(0x1ca),{'univer-cursor-not-allowed':_0x3eaa33===c[_0x58f66f(0x1b4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3eaa33!==c[_0x58f66f(0x1b4)]}),'type':_0x58f66f(0x1fa),'children':_0x28f4b5(W,{'className':_0x58f66f(0x212)})})}):null;}function Re(_0x8f9d25){const _0x202da3=_0x5f210e,{status:_0x3ebe08,coordinator:_0x18e96f}=_0x8f9d25;switch(_0x3ebe08){case c[_0x202da3(0x1f0)]:return _0x28f4b5($e,{'coordinator':_0x18e96f});case c[_0x202da3(0x20d)]:return _0x28f4b5(xe,{'coordinator':_0x18e96f});case c['NOT_FOLLOWING']:return _0x28f4b5(Pe,{'coordinator':_0x18e96f});case c[_0x202da3(0x1b4)]:return _0x28f4b5(Te,{});case c[_0x202da3(0x234)]:return _0x28f4b5(Ae,{'coordinator':_0x18e96f});default:return null;}}function $e(_0x12c38f){const _0x5550f9=_0x5f210e,{coordinator:_0x4cab37}=_0x12c38f;return _0x526545(_0x3d9444,{'children':[_0x28f4b5('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5550f9(0x1ff)}),_0x28f4b5(_0x36a71c,{'onClick':()=>_0x4cab37['tryStartPresenting'](),'children':_0x5550f9(0x1f9)})]});}function xe(_0x179491){const _0x36c323=_0x5f210e,{coordinator:_0x215503}=_0x179491;return _0x526545(_0x3d9444,{'children':[_0x28f4b5(_0x36c323(0x206),{'className':_0x36c323(0x22c),'children':_0x36c323(0x1cc)}),_0x28f4b5(_0x36a71c,{'onClick':()=>_0x215503[_0x36c323(0x216)](),'children':_0x36c323(0x1cd)})]});}function Pe(_0x280386){const _0x55c36c=_0x5f210e,{coordinator:_0x1dda82}=_0x280386;return _0x526545(_0x3d9444,{'children':[_0x28f4b5(_0x55c36c(0x206),{'className':_0x55c36c(0x22c),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x28f4b5(_0x36a71c,{'variant':'text','onClick':()=>_0x1dda82[_0x55c36c(0x1d4)](),'children':'Start\x20following'})]});}function Ae(_0x556d30){const _0xd99098=_0x5f210e,{coordinator:_0x3b5a07}=_0x556d30;return _0x526545(_0x3d9444,{'children':[_0x28f4b5(_0xd99098(0x206),{'className':_0xd99098(0x22c),'children':_0xd99098(0x21b)}),_0x28f4b5(_0x36a71c,{'variant':_0xd99098(0x226),'onClick':()=>_0x3b5a07[_0xd99098(0x1bc)](),'children':_0xd99098(0x1ee)})]});}function Te(){return _0x28f4b5(_0x3d9444,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x5f210e(0x1b3)],He=(_0x614e67,_0x5b7117,_0x310441,_0x18f6a7)=>{const _0x56789a=_0x5f210e;for(var _0x1a0ca4=_0x18f6a7>0x1?void 0x0:_0x18f6a7?Fe(_0x5b7117,_0x310441):_0x5b7117,_0x26e932=_0x614e67[_0x56789a(0x23e)]-0x1,_0x17ea06;_0x26e932>=0x0;_0x26e932--)(_0x17ea06=_0x614e67[_0x26e932])&&(_0x1a0ca4=_0x17ea06(_0x1a0ca4)||_0x1a0ca4);return _0x1a0ca4;},A=(_0x573a5d,_0x2ee4f2)=>(_0x212a65,_0x1ff948)=>_0x2ee4f2(_0x212a65,_0x1ff948,_0x573a5d);let m=class extends _0x4347cc{constructor(_0x6072c,_0x57d4f2){const _0x210867=_0x5f210e;super(),this[_0x210867(0x1ef)]=_0x6072c,this['_uiPartsService']=_0x57d4f2,this[_0x210867(0x221)]();}[_0x5f210e(0x221)](){const _0x4af5d3=_0x5f210e;this['disposeWithMe'](this[_0x4af5d3(0x1ba)]['registerComponent'](_0x102999[_0x4af5d3(0x19d)],()=>_0x1ca43(Le,this[_0x4af5d3(0x1ef)])));}};m=He([A(0x0,_0x4937f2(_0x179f2d)),A(0x1,_0x6bedd5)],m);const ye='live-share.config',T={};var Ue=Object[_0x5f210e(0x1b3)],Ve=(_0x98c8b1,_0x16017f,_0x47cb7f,_0x4ff2bb)=>{const _0x2e1b2c=_0x5f210e;for(var _0x3a7015=_0x4ff2bb>0x1?void 0x0:_0x4ff2bb?Ue(_0x16017f,_0x47cb7f):_0x16017f,_0x1cadf3=_0x98c8b1[_0x2e1b2c(0x23e)]-0x1,_0x4ef1be;_0x1cadf3>=0x0;_0x1cadf3--)(_0x4ef1be=_0x98c8b1[_0x1cadf3])&&(_0x3a7015=_0x4ef1be(_0x3a7015)||_0x3a7015);return _0x3a7015;},je=(_0x5abc9e,_0x3a0755)=>(_0x2b4d78,_0x52240c)=>_0x3a0755(_0x2b4d78,_0x52240c,_0x5abc9e);let I=class extends _0x4347cc{constructor(_0x2be0e9){const _0x4d5ecb=_0x5f210e;super(),this[_0x4d5ecb(0x1f4)]=_0x2be0e9,this['_init']();}['_init'](){const _0x47349f=_0x5f210e;[_0x31f67b['id'],_0x487be7['id'],_0x2e84d3['id']][_0x47349f(0x1da)](_0x122e40=>{const _0x23a3af=_0x47349f;this[_0x23a3af(0x1c7)](this['_liveShareService'][_0x23a3af(0x210)](_0x122e40));});}};I=Ve([je(0x0,_0x4937f2(L))],I);var Me=Object[_0x5f210e(0x222)],ke=Object[_0x5f210e(0x1b3)],Ge=(_0x4b9c9a,_0x4fa621,_0x2ad77d)=>_0x4fa621 in _0x4b9c9a?Me(_0x4b9c9a,_0x4fa621,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ad77d}):_0x4b9c9a[_0x4fa621]=_0x2ad77d,We=(_0x3ad683,_0x35e603,_0x35b713,_0x44d90c)=>{for(var _0x536587=_0x44d90c>0x1?void 0x0:_0x44d90c?ke(_0x35e603,_0x35b713):_0x35e603,_0x3d1a5=_0x3ad683['length']-0x1,_0x172b5a;_0x3d1a5>=0x0;_0x3d1a5--)(_0x172b5a=_0x3ad683[_0x3d1a5])&&(_0x536587=_0x172b5a(_0x536587)||_0x536587);return _0x536587;},F=(_0x3f5441,_0x36e944)=>(_0xde85b,_0x4e3465)=>_0x36e944(_0xde85b,_0x4e3465,_0x3f5441),B=(_0x1b039e,_0x2685d0,_0x16bc47)=>Ge(_0x1b039e,typeof _0x2685d0!=_0x5f210e(0x1f8)?_0x2685d0+'':_0x2685d0,_0x16bc47);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x406235{constructor(_0x110357=T,_0x154dcc,_0x428787){const _0x480e9b=_0x5f210e;super(),this[_0x480e9b(0x1e5)]=_0x110357,this[_0x480e9b(0x1ef)]=_0x154dcc,this[_0x480e9b(0x207)]=_0x428787;const {..._0x10025f}=_0x2df91a({},T,this['_config']);this[_0x480e9b(0x207)][_0x480e9b(0x1bf)](ye,_0x10025f);}[_0x5f210e(0x208)](){const _0x3a1e2b=_0x5f210e;_0x173359(this['_injector'],_0x20d4d6([[L],[S],[I],[m]],this[_0x3a1e2b(0x1e5)]['override'])),_0x1d822a(this[_0x3a1e2b(0x1ef)],[[I]]);}['onRendered'](){const _0x5d6b78=_0x5f210e;_0x1d822a(this[_0x5d6b78(0x1ef)],[[m]]);}};B(b,_0x5f210e(0x230),_0x4cded3['UNIVER_UNKNOWN']),B(b,_0x5f210e(0x22b),Ye),b=We([_0x190b72(_0x363746),F(0x1,_0x4937f2(_0x179f2d)),F(0x2,_0x333494)],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 _0x5f210e=_0x4205;(function(_0x77f3f4,_0x4391ac){const _0xeb3014=_0x4205,_0x4700f2=_0x77f3f4();while(!![]){try{const _0xa9259d=parseInt(_0xeb3014(0x220))/0x1*(-parseInt(_0xeb3014(0x21a))/0x2)+-parseInt(_0xeb3014(0x1bd))/0x3*(-parseInt(_0xeb3014(0x205))/0x4)+parseInt(_0xeb3014(0x1dd))/0x5+-parseInt(_0xeb3014(0x1a1))/0x6+parseInt(_0xeb3014(0x1ec))/0x7*(-parseInt(_0xeb3014(0x1ae))/0x8)+-parseInt(_0xeb3014(0x1e1))/0x9+-parseInt(_0xeb3014(0x22a))/0xa*(-parseInt(_0xeb3014(0x1fd))/0xb);if(_0xa9259d===_0x4391ac)break;else _0x4700f2['push'](_0x4700f2['shift']());}catch(_0x429913){_0x4700f2['push'](_0x4700f2['shift']());}}}(_0x6842,0x194f6));var J=Object[_0x5f210e(0x222)],K=(_0x1ca8dc,_0x31bb47,_0x414c95)=>_0x31bb47 in _0x1ca8dc?J(_0x1ca8dc,_0x31bb47,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x414c95}):_0x1ca8dc[_0x31bb47]=_0x414c95,u=(_0x4dc91b,_0x33d0d7,_0x10facd)=>K(_0x4dc91b,typeof _0x33d0d7!='symbol'?_0x33d0d7+'':_0x33d0d7,_0x10facd);import{Disposable as _0x4347cc,toDisposable as _0x4a1250,IUniverInstanceService as _0x29aa4f,Inject as _0x4937f2,Injector as _0x179f2d,IConfigService as _0x333494,ICommandService as _0x422603,RxDisposable as _0xbb3b5b,UniverInstanceType as _0x4cded3,DisposableCollection as _0x42a077,CommandType as _0x1dfff3,DependentOn as _0x190b72,Plugin as _0x406235,merge as _0x2df91a,registerDependencies as _0x173359,mergeOverrideWithDependencies as _0x20d4d6,touchDependencies as _0x1d822a}from'@univerjs/core';import{useDependency as _0x1394d4,useObservable as _0x30edbe,IUIPartsService as _0x6bedd5,BuiltInUIPart as _0x102999,connectInjector as _0x1ca43}from'@univerjs/ui';import{jsx as _0x28f4b5,jsxs as _0x526545,Fragment as _0x3d9444}from'react/jsx-runtime';import{Dropdown as _0x12b65d,clsx as _0x403356,Button as _0x36a71c}from'@univerjs/design';function _0x6842(){const _0x237418=['evenodd','dispose$','645612rTxkYB','_startLiveShareCoordinator','requireSession','_unitID','defs','_sharedOperations','toString','getMemberID','_handleTerminate','params','fill','stringify','use','248JysBoL','LIVESHARE_TERMINATE','getValue','values','getLiveShareCoordinatorSync','getOwnPropertyDescriptor','OFFLINE','LIVESHARE_REQUEST_HOST','_handleOperation','map','LIVESHARE_NEW_HOST','getCurrentTypeOfUnit$','_uiPartsService','get','stopPresenting','2634wesgnK','_fetchOperations','setConfig','children','following','_commandDisposable','displayName','svg','idle','url(#$1','disposeWithMe','colorChannel1','_handleNewChangeSets','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_handleNewHost','You\x27re\x20following\x20the\x20presenter','Stop\x20following','currentColor','init','live-share-icon','delete','SAME_OPERATION_SHARE_INTERVAL','none','startFollowing','_beIdle','add','_stopPresenting','reverse','data','forEach','string','_init','1028825bkmOJp','getStatus','onCommandExecuted','subscribe','1681983CFciHU','offline','pipe','xlink:href','_config','executeCommand','from','_stopFollowing','entries','mask','asObservable','36806PgwcLz','sessionStatus$','Stop\x20presenting','_injector','IDLE','unitId','_univerInstanceService','includes','_liveShareService','replace','status$','tag','symbol','Start','button','_handleOffline','complete','817872BWPviN','assign','Present\x20this\x20document','operations','http://www.w3.org/2000/svg','next','_presenter','getLiveShareCoordinator','128czdKqw','div','_configService','onStarting','OPERATION','has','tryStartPresenting','substring','FOLLOWING','trim','UNIVER_SHEET','registerSharedOperation','random','univer-size-4','_commandService','shouldShareOperation','_startFollowing','stopFollowing','_collabSession','_handleOnline','_startPresenting','16czMjLw','You\x27re\x20presenting\x20the\x20document','createInstance','not-following','getConfig','1em','14852zACCQY','_mountLiveShare','defineProperty','memberID','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','event$','default','idSuffix','0\x200\x2017\x2017','registerInitialStateReporter','60drqWGr','pluginName','univer-mb-3\x20univer-w-full\x20univer-text-sm','getInitialStates','_reporters','set','type','send','LIVESHARE_OPERATION','_status$','PRESENTING','_status','clear','defIds','current','_entities','attrs','LiveShareIcon','getTypeOfUnitAdded$','presenting','length','sheet','dispose','presenter','univerjs-icon\x20univerjs-icon-','HEADER_MENU','getUnitId'];_0x6842=function(){return _0x237418;};return _0x6842();}import{useRef as _0x31ae4f,createElement as _0x3b18d7,forwardRef as _0x2f499a,useState as _0x1f1cf5,useEffect as _0x109cfc}from'react';import{CollaborationEvent as _0x46ef97,parseProtocolChangeset as _0x34a695}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x59cabe,SessionStatus as _0x51023d,UniverCollaborationClientPlugin as _0x363746}from'@univerjs-pro/collaboration-client';function _0x4205(_0x1e8f61,_0x18387b){_0x1e8f61=_0x1e8f61-0x19d;const _0x684275=_0x6842();let _0x4205ef=_0x684275[_0x1e8f61];return _0x4205ef;}import{InsertSheetMutation as _0x19729f,SetWorksheetActiveOperation as _0x2e84d3}from'@univerjs/sheets';import{BehaviorSubject as _0x28b056,Subject as _0x4f0fd5}from'rxjs';import{takeUntil as _0x2e8cf2,throttleTime as _0x258f82}from'rxjs/operators';import{SetZoomRatioOperation as _0x31f67b,SetScrollOperation as _0x487be7}from'@univerjs/sheets-ui';function k({ref:_0x9f714e,..._0x49d3e0}){const _0x3651f3=_0x5f210e,{icon:_0x53a727,id:_0x478e97,className:_0x5f4c11,extend:_0x9e631,..._0x30ac5e}=_0x49d3e0,_0x56d5d3=(_0x3651f3(0x242)+_0x478e97+'\x20'+(_0x5f4c11||''))[_0x3651f3(0x20e)](),_0x3caaf1=_0x31ae4f('_'+Oe());return G(_0x53a727,''+_0x478e97,{'defIds':_0x53a727[_0x3651f3(0x237)],'idSuffix':_0x3caaf1[_0x3651f3(0x238)]},{'ref':_0x9f714e,'className':_0x56d5d3,..._0x30ac5e},_0x9e631);}function G(_0x29bf56,_0x478156,_0x2476ce,_0x1b3560,_0x5d6aa6){const _0x2c26e7=_0x5f210e;return _0x3b18d7(_0x29bf56[_0x2c26e7(0x1f7)],{'key':_0x478156,...be(_0x29bf56,_0x2476ce,_0x5d6aa6),..._0x1b3560},(Ee(_0x29bf56,_0x2476ce)['children']||[])[_0x2c26e7(0x1b7)]((_0x419c69,_0x58ded4)=>G(_0x419c69,_0x478156+'-'+_0x29bf56[_0x2c26e7(0x1f7)]+'-'+_0x58ded4,_0x2476ce,void 0x0,_0x5d6aa6)));}function be(_0x3a03ed,_0x40135b,_0x25314e){const _0x24acfd=_0x5f210e,_0x42387f={..._0x3a03ed[_0x24acfd(0x23a)]};_0x25314e!=null&&_0x25314e[_0x24acfd(0x1c8)]&&_0x42387f[_0x24acfd(0x1ab)]===_0x24acfd(0x1c8)&&(_0x42387f[_0x24acfd(0x1ab)]=_0x25314e[_0x24acfd(0x1c8)]),_0x3a03ed[_0x24acfd(0x1f7)]===_0x24acfd(0x1ea)&&_0x42387f['id']&&(_0x42387f['id']=_0x42387f['id']+_0x40135b[_0x24acfd(0x227)]),Object['entries'](_0x42387f)[_0x24acfd(0x1da)](([_0x58dc04,_0x5a7633])=>{const _0x289b33=_0x24acfd;_0x58dc04===_0x289b33(0x1ea)&&typeof _0x5a7633==_0x289b33(0x1db)&&(_0x42387f[_0x58dc04]=_0x5a7633[_0x289b33(0x1f5)](/url\(#(.*)\)/,_0x289b33(0x1c6)+_0x40135b[_0x289b33(0x227)]+')'));});const {defIds:_0xc7ff80}=_0x40135b;return!_0xc7ff80||_0xc7ff80[_0x24acfd(0x23e)]===0x0||(_0x3a03ed['tag']===_0x24acfd(0x1ad)&&_0x42387f[_0x24acfd(0x1e4)]&&(_0x42387f[_0x24acfd(0x1e4)]=_0x42387f[_0x24acfd(0x1e4)]+_0x40135b[_0x24acfd(0x227)]),Object[_0x24acfd(0x1e9)](_0x42387f)[_0x24acfd(0x1da)](([_0x745b18,_0x31b2f9])=>{const _0x39a2ea=_0x24acfd;typeof _0x31b2f9==_0x39a2ea(0x1db)&&(_0x42387f[_0x745b18]=_0x31b2f9['replace'](/url\(#(.*)\)/,'url(#$1'+_0x40135b[_0x39a2ea(0x227)]+')'));})),_0x42387f;}function Ee(_0x2053d5,_0x463b30){const _0x1a8588=_0x5f210e;var _0x19393e;const {defIds:_0x477302}=_0x463b30;return!_0x477302||_0x477302[_0x1a8588(0x23e)]===0x0?_0x2053d5:_0x2053d5[_0x1a8588(0x1f7)]===_0x1a8588(0x1a5)&&((_0x19393e=_0x2053d5[_0x1a8588(0x1c0)])!=null&&_0x19393e[_0x1a8588(0x23e)])?{..._0x2053d5,'children':_0x2053d5[_0x1a8588(0x1c0)][_0x1a8588(0x1b7)](_0x46760c=>typeof _0x46760c['attrs']['id']=='string'&&_0x477302&&_0x477302[_0x1a8588(0x1f3)](_0x46760c[_0x1a8588(0x23a)]['id'])?{..._0x46760c,'attrs':{..._0x46760c[_0x1a8588(0x23a)],'id':_0x46760c[_0x1a8588(0x23a)]['id']+_0x463b30[_0x1a8588(0x227)]}}:_0x46760c)}:_0x2053d5;}function Oe(){const _0x55c2cd=_0x5f210e;return Math[_0x55c2cd(0x211)]()[_0x55c2cd(0x1a7)](0x24)[_0x55c2cd(0x20c)](0x2,0x8);}k[_0x5f210e(0x1c3)]='UniverIcon';const we={'tag':_0x5f210e(0x1c4),'attrs':{'xmlns':_0x5f210e(0x201),'fill':_0x5f210e(0x1d3),'viewBox':_0x5f210e(0x228),'width':_0x5f210e(0x21f),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x5f210e(0x1ce),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x5f210e(0x224),'fillRule':'evenodd','clipRule':_0x5f210e(0x19f)}}]},W=_0x2f499a(function(_0x5a2083,_0x5aff48){const _0x620a94=_0x5f210e;return _0x3b18d7(k,Object[_0x620a94(0x1fe)]({},_0x5a2083,{'id':_0x620a94(0x1d0),'ref':_0x5aff48,'icon':we}));});W[_0x5f210e(0x1c3)]=_0x5f210e(0x23b);class L extends _0x4347cc{constructor(){const _0x418bd8=_0x5f210e;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x418bd8(0x22e),new Set());}[_0x5f210e(0x210)](_0x5cad0d){const _0x3bf3a0=_0x5f210e;return this[_0x3bf3a0(0x1a6)]['add'](_0x5cad0d),_0x4a1250(()=>this[_0x3bf3a0(0x1a6)][_0x3bf3a0(0x1d1)](_0x5cad0d));}[_0x5f210e(0x229)](_0x4cfa56){const _0x585956=_0x5f210e;return this['_reporters'][_0x585956(0x1d6)](_0x4cfa56),_0x4a1250(()=>this[_0x585956(0x22e)][_0x585956(0x1d1)](_0x4cfa56));}[_0x5f210e(0x214)](_0x4e598d){const _0x733095=_0x5f210e;return this[_0x733095(0x1a6)][_0x733095(0x20a)](_0x4e598d);}[_0x5f210e(0x22d)](_0x1e402e){const _0x4f558b=_0x5f210e;return Array[_0x4f558b(0x1e7)](this['_reporters'])[_0x4f558b(0x1b7)](_0x5ca0a4=>_0x5ca0a4(_0x1e402e));}}var Ne=Object[_0x5f210e(0x1b3)],Y=(_0x25be2c,_0x116969,_0x2f9838,_0x1104ad)=>{const _0x450e1f=_0x5f210e;for(var _0x59d459=_0x1104ad>0x1?void 0x0:_0x1104ad?Ne(_0x116969,_0x2f9838):_0x116969,_0x3354b8=_0x25be2c[_0x450e1f(0x23e)]-0x1,_0x130364;_0x3354b8>=0x0;_0x3354b8--)(_0x130364=_0x25be2c[_0x3354b8])&&(_0x59d459=_0x130364(_0x59d459)||_0x59d459);return _0x59d459;},_=(_0x196aba,_0x1752f7)=>(_0x42bd81,_0x53426b)=>_0x1752f7(_0x42bd81,_0x53426b,_0x196aba);let S=class extends _0xbb3b5b{constructor(_0x3a718d,_0x1967bc,_0x1736fd){const _0x3610ef=_0x5f210e;super(),u(this,_0x3610ef(0x239),new Map()),(this[_0x3610ef(0x1f2)]=_0x3a718d,this['_injector']=_0x1967bc,this['_collabSessionService']=_0x1736fd,this[_0x3610ef(0x1dc)]());}async[_0x5f210e(0x204)](_0x7e5df5){const _0x2fe540=_0x5f210e;return this[_0x2fe540(0x239)][_0x2fe540(0x20a)](_0x7e5df5)||await this[_0x2fe540(0x1a2)](_0x7e5df5),this[_0x2fe540(0x239)][_0x2fe540(0x1bb)](_0x7e5df5);}[_0x5f210e(0x1b2)](_0x5a6fbe){const _0x456e44=_0x5f210e;var _0x1275b4;return(_0x1275b4=this[_0x456e44(0x239)]['get'](_0x5a6fbe))!=null?_0x1275b4:null;}['_init'](){const _0x305aca=_0x5f210e;this[_0x305aca(0x1f2)][_0x305aca(0x23c)](_0x4cded3[_0x305aca(0x20f)])[_0x305aca(0x1e3)](_0x2e8cf2(this[_0x305aca(0x1a0)]))[_0x305aca(0x1e0)](async _0x26d6b4=>{const _0x93351b=_0x305aca,_0x11661b=_0x26d6b4[_0x93351b(0x19e)]();this['_entities']['has'](_0x11661b)||this[_0x93351b(0x1a2)](_0x11661b);}),this[_0x305aca(0x1f2)]['getTypeOfUnitDisposed$'](_0x4cded3[_0x305aca(0x20f)])[_0x305aca(0x1e3)](_0x2e8cf2(this[_0x305aca(0x1a0)]))[_0x305aca(0x1e0)](_0x1b3982=>{const _0x1659d5=_0x305aca,_0x3e0bf7=_0x1b3982[_0x1659d5(0x19e)](),_0xa5f47c=this[_0x1659d5(0x239)]['get'](_0x3e0bf7);_0xa5f47c==null||_0xa5f47c['dispose']();});}async[_0x5f210e(0x1a2)](_0x2791ef){const _0x148183=_0x5f210e,_0xf25f8d=await this['_collabSessionService'][_0x148183(0x1a3)](_0x2791ef),_0x546f28=this[_0x148183(0x1ef)][_0x148183(0x21c)](N,_0x2791ef,_0xf25f8d);return _0x546f28[_0x148183(0x1cf)](),this[_0x148183(0x239)][_0x148183(0x22f)](_0x2791ef,_0x546f28),_0x546f28;}};S=Y([_(0x0,_0x29aa4f),_(0x1,_0x4937f2(_0x179f2d)),_(0x2,_0x4937f2(_0x59cabe))],S);var c=(_0xc00f77=>(_0xc00f77['OFFLINE']=_0x5f210e(0x1e2),_0xc00f77[_0x5f210e(0x1f0)]=_0x5f210e(0x1c5),_0xc00f77[_0x5f210e(0x20d)]=_0x5f210e(0x1c1),_0xc00f77['NOT_FOLLOWING']='not-following',_0xc00f77[_0x5f210e(0x234)]=_0x5f210e(0x23d),_0xc00f77))(c||{});const Ce=_0x5f210e(0x1d2),De=0xc8;let N=class extends _0xbb3b5b{constructor(_0x174e05,_0x3780f3,_0x1e15f4,_0xddd3c6,_0x500fc0){const _0x574a1a=_0x5f210e;super(),u(this,_0x574a1a(0x233),new _0x28b056(_0x574a1a(0x1c5))),u(this,_0x574a1a(0x1f6),this[_0x574a1a(0x233)][_0x574a1a(0x1eb)]()),u(this,_0x574a1a(0x1dc),!0x1),u(this,'_commandDisposable',null),u(this,_0x574a1a(0x203),null),(this[_0x574a1a(0x1a4)]=_0x174e05,this[_0x574a1a(0x217)]=_0x3780f3,this[_0x574a1a(0x207)]=_0x1e15f4,this[_0x574a1a(0x1f4)]=_0xddd3c6,this[_0x574a1a(0x213)]=_0x500fc0);}get[_0x5f210e(0x235)](){const _0x5693ff=_0x5f210e;return this[_0x5693ff(0x233)][_0x5693ff(0x1b0)]();}[_0x5f210e(0x240)](){const _0x24ca52=_0x5f210e;var _0x18d3e8;(_0x18d3e8=this[_0x24ca52(0x1c2)])==null||_0x18d3e8[_0x24ca52(0x240)](),this[_0x24ca52(0x233)][_0x24ca52(0x202)](_0x24ca52(0x1c5)),this[_0x24ca52(0x233)][_0x24ca52(0x1fc)]();}[_0x5f210e(0x1de)](){const _0x5a41bb=_0x5f210e;return this[_0x5a41bb(0x235)];}[_0x5f210e(0x1cf)](){const _0x471ed=_0x5f210e;this[_0x471ed(0x1dc)]||(this[_0x471ed(0x1dc)]=!0x0,this['_collabSession'][_0x471ed(0x1ed)]['pipe'](_0x2e8cf2(this[_0x471ed(0x1a0)]))['subscribe'](_0x4c43b0=>{const _0x15958d=_0x471ed;switch(_0x4c43b0){case _0x51023d[_0x15958d(0x1b4)]:this[_0x15958d(0x1fb)]();break;case _0x51023d['ONLINE']:this[_0x15958d(0x218)]();break;}}),this[_0x471ed(0x217)][_0x471ed(0x225)][_0x471ed(0x1e3)](_0x2e8cf2(this[_0x471ed(0x1a0)]))[_0x471ed(0x1e0)](_0xc530e6=>{const _0x286662=_0x471ed,{eventID:_0x5d6772}=_0xc530e6;switch(_0x5d6772){case _0x46ef97[_0x286662(0x1b8)]:this[_0x286662(0x1cb)](_0xc530e6);break;case _0x46ef97[_0x286662(0x232)]:this[_0x286662(0x1b6)](_0xc530e6);break;case _0x46ef97[_0x286662(0x1af)]:this[_0x286662(0x1a9)]();break;case _0x46ef97['NEW_CHANGESETS']:this[_0x286662(0x1c9)](_0xc530e6);break;}}));}[_0x5f210e(0x20b)](){const _0x402c77=_0x5f210e;this[_0x402c77(0x217)]['send']({'eventID':_0x46ef97[_0x402c77(0x1b5)],'data':{'unitID':this[_0x402c77(0x1a4)],'userID':this[_0x402c77(0x217)][_0x402c77(0x1a8)]()}},this[_0x402c77(0x1a4)]);}[_0x5f210e(0x1bc)](){const _0x35c601=_0x5f210e;this[_0x35c601(0x235)]===_0x35c601(0x23d)&&(this[_0x35c601(0x233)][_0x35c601(0x202)]('idle'),this[_0x35c601(0x217)][_0x35c601(0x231)]({'eventID':_0x46ef97[_0x35c601(0x1af)],'data':{'unitID':this[_0x35c601(0x1a4)]}},this['_unitID']));}[_0x5f210e(0x1d4)](){const _0x5be0c6=_0x5f210e;this['_status']==='not-following'&&(this['_status$'][_0x5be0c6(0x202)](_0x5be0c6(0x1c1)),this[_0x5be0c6(0x215)]());}[_0x5f210e(0x216)](){const _0x4e3a41=_0x5f210e;this[_0x4e3a41(0x235)]===_0x4e3a41(0x1c1)&&this[_0x4e3a41(0x1e8)]();}[_0x5f210e(0x1cb)](_0x39f759){const _0x2d28ce=_0x5f210e,{presenter:_0x49be82}=_0x39f759[_0x2d28ce(0x1d9)],_0x4a0661=this[_0x2d28ce(0x217)][_0x2d28ce(0x1a8)]();this['_presenter']=_0x49be82,_0x49be82===_0x4a0661?(this[_0x2d28ce(0x1e8)](),this[_0x2d28ce(0x219)]()):this[_0x2d28ce(0x235)]!=='not-following'&&(this['_stopPresenting'](),this[_0x2d28ce(0x215)]());}[_0x5f210e(0x1be)](){const _0x1f4e49=_0x5f210e,_0x24e6b9={'eventID':_0x46ef97['LIVESHARE_FETCH_OPERATIONS']};this[_0x1f4e49(0x217)][_0x1f4e49(0x231)](_0x24e6b9,this[_0x1f4e49(0x1a4)]);}['_handleTerminate'](){const _0x1c59a8=_0x5f210e;this[_0x1c59a8(0x203)]=null,this[_0x1c59a8(0x235)]!==_0x1c59a8(0x23d)&&this[_0x1c59a8(0x1d5)]();}[_0x5f210e(0x1c9)](_0x4ee355){const _0x46b9fb=_0x5f210e;if(this[_0x46b9fb(0x235)]===_0x46b9fb(0x1c1)&&this[_0x46b9fb(0x203)]===_0x4ee355[_0x46b9fb(0x1d9)][_0x46b9fb(0x223)]){const _0x5ad1c6=_0x34a695(_0x4ee355[_0x46b9fb(0x1d9)])['mutations'][_0x46b9fb(0x1d8)]()['find'](_0xd529e3=>_0xd529e3['id']===_0x19729f['id']);if(_0x5ad1c6){const _0x1fe012=_0x5ad1c6[_0x46b9fb(0x1aa)][_0x46b9fb(0x1f1)],_0x1cb5a0=_0x5ad1c6[_0x46b9fb(0x1aa)][_0x46b9fb(0x23f)]['id'];setTimeout(()=>{const _0xa8eec5=_0x46b9fb;this[_0xa8eec5(0x213)][_0xa8eec5(0x1e6)](_0x2e84d3['id'],{'unitId':_0x1fe012,'subUnitId':_0x1cb5a0},{'fromCollab':!0x0});});}}}[_0x5f210e(0x219)](){const _0x5155dc=_0x5f210e;this['_status$'][_0x5155dc(0x202)]('presenting');const _0x4a7a16=new Map(),_0x3bf5c4=this['_commandDisposable']=new _0x42a077();_0x3bf5c4[_0x5155dc(0x1d6)](_0x4a1250(()=>{const _0x44c526=_0x5155dc;_0x4a7a16[_0x44c526(0x1da)](_0x48ae2d=>_0x48ae2d[_0x44c526(0x1fc)]()),_0x4a7a16[_0x44c526(0x236)]();})),_0x3bf5c4[_0x5155dc(0x1d6)](this['_commandService'][_0x5155dc(0x1df)](_0x9cf3d8=>{const _0x313a1f=_0x5155dc;var _0x20ad03;if(_0x9cf3d8[_0x313a1f(0x230)]!==_0x1dfff3[_0x313a1f(0x209)]||!this['_liveShareService'][_0x313a1f(0x214)](_0x9cf3d8['id']))return;const {id:_0x3e7b2b}=_0x9cf3d8;let _0x1aed76;_0x4a7a16['has'](_0x3e7b2b)?_0x1aed76=_0x4a7a16['get'](_0x3e7b2b):(_0x1aed76=new _0x4f0fd5(),_0x4a7a16[_0x313a1f(0x22f)](_0x3e7b2b,_0x1aed76),_0x1aed76[_0x313a1f(0x1e3)](_0x258f82((_0x20ad03=this['_configService'][_0x313a1f(0x21e)](Ce))!=null?_0x20ad03:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x313a1f(0x1e0)](_0x1d35fb=>{const _0x198ec0=_0x313a1f;this[_0x198ec0(0x217)]['send']({'eventID':_0x46ef97[_0x198ec0(0x232)],'data':{'unitID':this[_0x198ec0(0x1a4)],'operations':{[_0x1d35fb['id']]:{'id':_0x1d35fb['id'],'params':JSON[_0x198ec0(0x1ac)](_0x1d35fb[_0x198ec0(0x1aa)])}}}},this[_0x198ec0(0x1a4)]);})),_0x1aed76['next'](_0x9cf3d8);})),this[_0x5155dc(0x1f4)]['getInitialStates'](this[_0x5155dc(0x1a4)])[_0x5155dc(0x1da)](_0x35b374=>this[_0x5155dc(0x217)][_0x5155dc(0x231)]({'eventID':_0x46ef97['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5155dc(0x1a4)],'operations':{[_0x35b374['id']]:{'id':_0x35b374['id'],'params':JSON[_0x5155dc(0x1ac)](_0x35b374['params'])}}}},this['_unitID']));}[_0x5f210e(0x1d7)](){const _0x366330=_0x5f210e;var _0x50a4fc;this['_status$'][_0x366330(0x202)]('idle'),(_0x50a4fc=this[_0x366330(0x1c2)])==null||_0x50a4fc[_0x366330(0x240)](),this[_0x366330(0x1c2)]=null;}[_0x5f210e(0x215)](){const _0x309dc9=_0x5f210e;var _0x159c0b;(_0x159c0b=this[_0x309dc9(0x1c2)])==null||_0x159c0b[_0x309dc9(0x240)](),this[_0x309dc9(0x233)][_0x309dc9(0x202)]('following');}['_beIdle'](){const _0x392d64=_0x5f210e;var _0x1965f5;this[_0x392d64(0x233)][_0x392d64(0x202)]('idle'),(_0x1965f5=this[_0x392d64(0x1c2)])==null||_0x1965f5['dispose'](),this['_commandDisposable']=null;}[_0x5f210e(0x1e8)](){const _0x27e1dd=_0x5f210e;var _0x13d45b;this[_0x27e1dd(0x233)][_0x27e1dd(0x202)](_0x27e1dd(0x21d)),(_0x13d45b=this[_0x27e1dd(0x1c2)])==null||_0x13d45b['dispose']();}['_handleOperation'](_0xd034e0){const _0x3e6311=_0x5f210e;if([_0x3e6311(0x23d),_0x3e6311(0x21d),_0x3e6311(0x1e2)][_0x3e6311(0x1f3)](this[_0x3e6311(0x235)])||!_0xd034e0[_0x3e6311(0x1d9)][_0x3e6311(0x241)]||_0xd034e0[_0x3e6311(0x1d9)]['presenter']===this[_0x3e6311(0x217)][_0x3e6311(0x1a8)]())return;this['_status']===_0x3e6311(0x1c5)&&this[_0x3e6311(0x215)]();const _0x23361d=_0xd034e0[_0x3e6311(0x1d9)][_0x3e6311(0x200)];Object[_0x3e6311(0x1b1)](_0x23361d)['forEach'](_0x22898a=>{const _0x2812f2=_0x3e6311;this['_commandService'][_0x2812f2(0x1e6)](_0x22898a['id'],_0x22898a['params']?JSON['parse'](_0x22898a[_0x2812f2(0x1aa)]):null,{'fromCollab':!0x0});});}[_0x5f210e(0x1fb)](){const _0x3250d9=_0x5f210e;var _0x33c312;this[_0x3250d9(0x233)][_0x3250d9(0x202)](_0x3250d9(0x1e2)),(_0x33c312=this[_0x3250d9(0x1c2)])==null||_0x33c312[_0x3250d9(0x240)]();}['_handleOnline'](){const _0x2a94c3=_0x5f210e;this[_0x2a94c3(0x233)][_0x2a94c3(0x202)](_0x2a94c3(0x1c5)),this[_0x2a94c3(0x1be)]();}};N=Y([_(0x2,_0x333494),_(0x3,_0x4937f2(L)),_(0x4,_0x422603)],N);function Le(){const _0x58f66f=_0x5f210e,_0x228b58=_0x1394d4(S),_0x5bd705=_0x1394d4(_0x29aa4f),_0xfa6d6f=_0x30edbe(()=>_0x5bd705[_0x58f66f(0x1b9)](_0x4cded3[_0x58f66f(0x20f)]),void 0x0,!0x1,[]),[_0x408d08,_0x33fa29]=_0x1f1cf5(null),[_0x3eaa33,_0xd1d095]=_0x1f1cf5(c[_0x58f66f(0x1f0)]),_0x1a2e98=_0x31ae4f(null);return _0x109cfc(()=>(_0xfa6d6f&&_0x228b58['getLiveShareCoordinator'](_0xfa6d6f[_0x58f66f(0x19e)]())['then'](_0x4294a4=>{const _0x3473ca=_0x58f66f;_0x33fa29(_0x4294a4),_0x1a2e98['current']=_0x4294a4['status$'][_0x3473ca(0x1e0)](_0x2ec87b=>{_0xd1d095(_0x2ec87b);});}),()=>{const _0x10148f=_0x58f66f;var _0x2c46d5;(_0x2c46d5=_0x1a2e98[_0x10148f(0x238)])==null||_0x2c46d5['unsubscribe'](),_0x1a2e98['current']=null;}),[_0xfa6d6f,_0x228b58]),_0x408d08?_0x28f4b5(_0x12b65d,{'align':'end','disabled':_0x3eaa33===c[_0x58f66f(0x1b4)],'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':_0x28f4b5(Re,{'status':_0x3eaa33,'coordinator':_0x408d08}),'children':_0x28f4b5('button',{'className':_0x403356(_0x58f66f(0x1ca),{'univer-cursor-not-allowed':_0x3eaa33===c[_0x58f66f(0x1b4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3eaa33!==c[_0x58f66f(0x1b4)]}),'type':_0x58f66f(0x1fa),'children':_0x28f4b5(W,{'className':_0x58f66f(0x212)})})}):null;}function Re(_0x8f9d25){const _0x202da3=_0x5f210e,{status:_0x3ebe08,coordinator:_0x18e96f}=_0x8f9d25;switch(_0x3ebe08){case c[_0x202da3(0x1f0)]:return _0x28f4b5($e,{'coordinator':_0x18e96f});case c[_0x202da3(0x20d)]:return _0x28f4b5(xe,{'coordinator':_0x18e96f});case c['NOT_FOLLOWING']:return _0x28f4b5(Pe,{'coordinator':_0x18e96f});case c[_0x202da3(0x1b4)]:return _0x28f4b5(Te,{});case c[_0x202da3(0x234)]:return _0x28f4b5(Ae,{'coordinator':_0x18e96f});default:return null;}}function $e(_0x12c38f){const _0x5550f9=_0x5f210e,{coordinator:_0x4cab37}=_0x12c38f;return _0x526545(_0x3d9444,{'children':[_0x28f4b5('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5550f9(0x1ff)}),_0x28f4b5(_0x36a71c,{'onClick':()=>_0x4cab37['tryStartPresenting'](),'children':_0x5550f9(0x1f9)})]});}function xe(_0x179491){const _0x36c323=_0x5f210e,{coordinator:_0x215503}=_0x179491;return _0x526545(_0x3d9444,{'children':[_0x28f4b5(_0x36c323(0x206),{'className':_0x36c323(0x22c),'children':_0x36c323(0x1cc)}),_0x28f4b5(_0x36a71c,{'onClick':()=>_0x215503[_0x36c323(0x216)](),'children':_0x36c323(0x1cd)})]});}function Pe(_0x280386){const _0x55c36c=_0x5f210e,{coordinator:_0x1dda82}=_0x280386;return _0x526545(_0x3d9444,{'children':[_0x28f4b5(_0x55c36c(0x206),{'className':_0x55c36c(0x22c),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x28f4b5(_0x36a71c,{'variant':'text','onClick':()=>_0x1dda82[_0x55c36c(0x1d4)](),'children':'Start\x20following'})]});}function Ae(_0x556d30){const _0xd99098=_0x5f210e,{coordinator:_0x3b5a07}=_0x556d30;return _0x526545(_0x3d9444,{'children':[_0x28f4b5(_0xd99098(0x206),{'className':_0xd99098(0x22c),'children':_0xd99098(0x21b)}),_0x28f4b5(_0x36a71c,{'variant':_0xd99098(0x226),'onClick':()=>_0x3b5a07[_0xd99098(0x1bc)](),'children':_0xd99098(0x1ee)})]});}function Te(){return _0x28f4b5(_0x3d9444,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x5f210e(0x1b3)],He=(_0x614e67,_0x5b7117,_0x310441,_0x18f6a7)=>{const _0x56789a=_0x5f210e;for(var _0x1a0ca4=_0x18f6a7>0x1?void 0x0:_0x18f6a7?Fe(_0x5b7117,_0x310441):_0x5b7117,_0x26e932=_0x614e67[_0x56789a(0x23e)]-0x1,_0x17ea06;_0x26e932>=0x0;_0x26e932--)(_0x17ea06=_0x614e67[_0x26e932])&&(_0x1a0ca4=_0x17ea06(_0x1a0ca4)||_0x1a0ca4);return _0x1a0ca4;},A=(_0x573a5d,_0x2ee4f2)=>(_0x212a65,_0x1ff948)=>_0x2ee4f2(_0x212a65,_0x1ff948,_0x573a5d);let m=class extends _0x4347cc{constructor(_0x6072c,_0x57d4f2){const _0x210867=_0x5f210e;super(),this[_0x210867(0x1ef)]=_0x6072c,this['_uiPartsService']=_0x57d4f2,this[_0x210867(0x221)]();}[_0x5f210e(0x221)](){const _0x4af5d3=_0x5f210e;this['disposeWithMe'](this[_0x4af5d3(0x1ba)]['registerComponent'](_0x102999[_0x4af5d3(0x19d)],()=>_0x1ca43(Le,this[_0x4af5d3(0x1ef)])));}};m=He([A(0x0,_0x4937f2(_0x179f2d)),A(0x1,_0x6bedd5)],m);const ye='live-share.config',T={};var Ue=Object[_0x5f210e(0x1b3)],Ve=(_0x98c8b1,_0x16017f,_0x47cb7f,_0x4ff2bb)=>{const _0x2e1b2c=_0x5f210e;for(var _0x3a7015=_0x4ff2bb>0x1?void 0x0:_0x4ff2bb?Ue(_0x16017f,_0x47cb7f):_0x16017f,_0x1cadf3=_0x98c8b1[_0x2e1b2c(0x23e)]-0x1,_0x4ef1be;_0x1cadf3>=0x0;_0x1cadf3--)(_0x4ef1be=_0x98c8b1[_0x1cadf3])&&(_0x3a7015=_0x4ef1be(_0x3a7015)||_0x3a7015);return _0x3a7015;},je=(_0x5abc9e,_0x3a0755)=>(_0x2b4d78,_0x52240c)=>_0x3a0755(_0x2b4d78,_0x52240c,_0x5abc9e);let I=class extends _0x4347cc{constructor(_0x2be0e9){const _0x4d5ecb=_0x5f210e;super(),this[_0x4d5ecb(0x1f4)]=_0x2be0e9,this['_init']();}['_init'](){const _0x47349f=_0x5f210e;[_0x31f67b['id'],_0x487be7['id'],_0x2e84d3['id']][_0x47349f(0x1da)](_0x122e40=>{const _0x23a3af=_0x47349f;this[_0x23a3af(0x1c7)](this['_liveShareService'][_0x23a3af(0x210)](_0x122e40));});}};I=Ve([je(0x0,_0x4937f2(L))],I);var Me=Object[_0x5f210e(0x222)],ke=Object[_0x5f210e(0x1b3)],Ge=(_0x4b9c9a,_0x4fa621,_0x2ad77d)=>_0x4fa621 in _0x4b9c9a?Me(_0x4b9c9a,_0x4fa621,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2ad77d}):_0x4b9c9a[_0x4fa621]=_0x2ad77d,We=(_0x3ad683,_0x35e603,_0x35b713,_0x44d90c)=>{for(var _0x536587=_0x44d90c>0x1?void 0x0:_0x44d90c?ke(_0x35e603,_0x35b713):_0x35e603,_0x3d1a5=_0x3ad683['length']-0x1,_0x172b5a;_0x3d1a5>=0x0;_0x3d1a5--)(_0x172b5a=_0x3ad683[_0x3d1a5])&&(_0x536587=_0x172b5a(_0x536587)||_0x536587);return _0x536587;},F=(_0x3f5441,_0x36e944)=>(_0xde85b,_0x4e3465)=>_0x36e944(_0xde85b,_0x4e3465,_0x3f5441),B=(_0x1b039e,_0x2685d0,_0x16bc47)=>Ge(_0x1b039e,typeof _0x2685d0!=_0x5f210e(0x1f8)?_0x2685d0+'':_0x2685d0,_0x16bc47);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x406235{constructor(_0x110357=T,_0x154dcc,_0x428787){const _0x480e9b=_0x5f210e;super(),this[_0x480e9b(0x1e5)]=_0x110357,this[_0x480e9b(0x1ef)]=_0x154dcc,this[_0x480e9b(0x207)]=_0x428787;const {..._0x10025f}=_0x2df91a({},T,this['_config']);this[_0x480e9b(0x207)][_0x480e9b(0x1bf)](ye,_0x10025f);}[_0x5f210e(0x208)](){const _0x3a1e2b=_0x5f210e;_0x173359(this['_injector'],_0x20d4d6([[L],[S],[I],[m]],this[_0x3a1e2b(0x1e5)]['override'])),_0x1d822a(this[_0x3a1e2b(0x1ef)],[[I]]);}['onRendered'](){const _0x5d6b78=_0x5f210e;_0x1d822a(this[_0x5d6b78(0x1ef)],[[m]]);}};B(b,_0x5f210e(0x230),_0x4cded3['UNIVER_UNKNOWN']),B(b,_0x5f210e(0x22b),Ye),b=We([_0x190b72(_0x363746),F(0x1,_0x4937f2(_0x179f2d)),F(0x2,_0x333494)],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(_0xeedef3,_0x5b2ecc){const _0x580baa=_0x2d88,_0xec2e70=_0xeedef3();while(!![]){try{const _0x371569=parseInt(_0x580baa(0x181))/0x1+parseInt(_0x580baa(0x129))/0x2*(parseInt(_0x580baa(0xdc))/0x3)+-parseInt(_0x580baa(0x185))/0x4*(parseInt(_0x580baa(0xc3))/0x5)+parseInt(_0x580baa(0x114))/0x6*(-parseInt(_0x580baa(0x123))/0x7)+-parseInt(_0x580baa(0x121))/0x8+parseInt(_0x580baa(0x191))/0x9*(-parseInt(_0x580baa(0xbc))/0xa)+parseInt(_0x580baa(0xf6))/0xb;if(_0x371569===_0x5b2ecc)break;else _0xec2e70['push'](_0xec2e70['shift']());}catch(_0x26e4d2){_0xec2e70['push'](_0xec2e70['shift']());}}}(_0x57dc,0x49c12),function(_0x454a0b,_0x2af9a8){const _0x54de4b=_0x2d88;typeof exports==_0x54de4b(0x11e)&&typeof module<'u'?_0x2af9a8(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==_0x54de4b(0xed)&&define['amd']?define(['exports',_0x54de4b(0x14b),_0x54de4b(0x14f),_0x54de4b(0x115),_0x54de4b(0x146),_0x54de4b(0x13b),'@univerjs-pro/collaboration','@univerjs-pro/collaboration-client',_0x54de4b(0x107),_0x54de4b(0x196),'rxjs/operators',_0x54de4b(0xe5)],_0x2af9a8):(_0x454a0b=typeof globalThis<'u'?globalThis:_0x454a0b||self,_0x2af9a8(_0x454a0b[_0x54de4b(0x14e)]={},_0x454a0b[_0x54de4b(0x139)],_0x454a0b[_0x54de4b(0x194)],_0x454a0b[_0x54de4b(0x12f)],_0x454a0b[_0x54de4b(0xf4)],_0x454a0b[_0x54de4b(0x12f)],_0x454a0b[_0x54de4b(0xb7)],_0x454a0b[_0x54de4b(0x16e)],_0x454a0b[_0x54de4b(0xd1)],_0x454a0b['rxjs'],_0x454a0b['rxjs'][_0x54de4b(0xbd)],_0x454a0b['UniverSheetsUi']));}(this,function(_0x1d53d8,_0x1397df,_0x4da58e,_0x4e7be3,_0x1f13cb,_0x34a161,_0x4e00b2,_0x405ccc,_0x3cdbdd,_0x912b8,_0xdde623,_0x56053b){'use strict';const _0xae0692=_0x2d88;var _0x755593=Object['defineProperty'],_0x2b9bc1=(_0x297996,_0x11a580,_0x795d94)=>_0x11a580 in _0x297996?_0x755593(_0x297996,_0x11a580,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x795d94}):_0x297996[_0x11a580]=_0x795d94,_0x16daf4=(_0x44acf5,_0x55f8f3,_0x20fb5d)=>_0x2b9bc1(_0x44acf5,typeof _0x55f8f3!=_0xae0692(0x111)?_0x55f8f3+'':_0x55f8f3,_0x20fb5d);function _0x5c3958({ref:_0x26d89f,..._0x1d3462}){const _0x1d779b=_0xae0692,{icon:_0x5c9b88,id:_0x28fa35,className:_0x52f228,extend:_0x2cae1b,..._0x53fd28}=_0x1d3462,_0x1a8847=(_0x1d779b(0x137)+_0x28fa35+'\x20'+(_0x52f228||''))[_0x1d779b(0x133)](),_0x221255=_0x34a161[_0x1d779b(0x178)]('_'+_0x49e592());return _0x170b76(_0x5c9b88,''+_0x28fa35,{'defIds':_0x5c9b88[_0x1d779b(0x179)],'idSuffix':_0x221255[_0x1d779b(0x173)]},{'ref':_0x26d89f,'className':_0x1a8847,..._0x53fd28},_0x2cae1b);}function _0x170b76(_0x2925e2,_0xc17adb,_0x5b95d0,_0x34d574,_0x18bd8d){const _0xd46a5c=_0xae0692;return _0x34a161[_0xd46a5c(0x106)](_0x2925e2[_0xd46a5c(0x11d)],{'key':_0xc17adb,..._0x47aff1(_0x2925e2,_0x5b95d0,_0x18bd8d),..._0x34d574},(_0x31bd17(_0x2925e2,_0x5b95d0)[_0xd46a5c(0x166)]||[])[_0xd46a5c(0xec)]((_0xff916f,_0x174ffa)=>_0x170b76(_0xff916f,_0xc17adb+'-'+_0x2925e2[_0xd46a5c(0x11d)]+'-'+_0x174ffa,_0x5b95d0,void 0x0,_0x18bd8d)));}function _0x47aff1(_0x557a8a,_0x37c660,_0x5184eb){const _0x5770bb=_0xae0692,_0x524c58={..._0x557a8a['attrs']};_0x5184eb!=null&&_0x5184eb[_0x5770bb(0x197)]&&_0x524c58[_0x5770bb(0x180)]===_0x5770bb(0x197)&&(_0x524c58[_0x5770bb(0x180)]=_0x5184eb['colorChannel1']),_0x557a8a[_0x5770bb(0x11d)]===_0x5770bb(0xe3)&&_0x524c58['id']&&(_0x524c58['id']=_0x524c58['id']+_0x37c660[_0x5770bb(0xf8)]),Object[_0x5770bb(0x169)](_0x524c58)['forEach'](([_0x5e8222,_0x425c94])=>{const _0x28accc=_0x5770bb;_0x5e8222===_0x28accc(0xe3)&&typeof _0x425c94==_0x28accc(0xd7)&&(_0x524c58[_0x5e8222]=_0x425c94[_0x28accc(0xe2)](/url\(#(.*)\)/,'url(#$1'+_0x37c660[_0x28accc(0xf8)]+')'));});const {defIds:_0x1a7738}=_0x37c660;return!_0x1a7738||_0x1a7738[_0x5770bb(0xe8)]===0x0||(_0x557a8a[_0x5770bb(0x11d)]==='use'&&_0x524c58[_0x5770bb(0x100)]&&(_0x524c58[_0x5770bb(0x100)]=_0x524c58[_0x5770bb(0x100)]+_0x37c660[_0x5770bb(0xf8)]),Object[_0x5770bb(0x169)](_0x524c58)[_0x5770bb(0xbf)](([_0x341915,_0x173e6f])=>{const _0x443248=_0x5770bb;typeof _0x173e6f==_0x443248(0xd7)&&(_0x524c58[_0x341915]=_0x173e6f['replace'](/url\(#(.*)\)/,_0x443248(0x119)+_0x37c660[_0x443248(0xf8)]+')'));})),_0x524c58;}function _0x31bd17(_0x5f039c,_0x560bd4){const _0x185205=_0xae0692;var _0x16b8d2;const {defIds:_0x34efb6}=_0x560bd4;return!_0x34efb6||_0x34efb6[_0x185205(0xe8)]===0x0?_0x5f039c:_0x5f039c[_0x185205(0x11d)]===_0x185205(0x187)&&((_0x16b8d2=_0x5f039c[_0x185205(0x166)])!=null&&_0x16b8d2[_0x185205(0xe8)])?{..._0x5f039c,'children':_0x5f039c[_0x185205(0x166)][_0x185205(0xec)](_0x3395ff=>typeof _0x3395ff[_0x185205(0x16d)]['id']==_0x185205(0xd7)&&_0x34efb6&&_0x34efb6[_0x185205(0xfa)](_0x3395ff['attrs']['id'])?{..._0x3395ff,'attrs':{..._0x3395ff['attrs'],'id':_0x3395ff[_0x185205(0x16d)]['id']+_0x560bd4[_0x185205(0xf8)]}}:_0x3395ff)}:_0x5f039c;}function _0x49e592(){const _0x56798d=_0xae0692;return Math['random']()[_0x56798d(0xe1)](0x24)['substring'](0x2,0x8);}_0x5c3958[_0xae0692(0x17b)]=_0xae0692(0x17c);const _0x4eba07={'tag':_0xae0692(0xe7),'attrs':{'xmlns':_0xae0692(0x151),'fill':'none','viewBox':_0xae0692(0x192),'width':_0xae0692(0xde),'height':_0xae0692(0xde)},'children':[{'tag':_0xae0692(0x104),'attrs':{'fill':_0xae0692(0xf9),'d':_0xae0692(0x174)}},{'tag':_0xae0692(0x104),'attrs':{'fill':_0xae0692(0xf9),'d':_0xae0692(0xd8),'fillRule':_0xae0692(0x117),'clipRule':_0xae0692(0x117)}}]},_0x21b4bb=_0x34a161[_0xae0692(0x14a)](function(_0x3877a0,_0x45d510){const _0x3bb879=_0xae0692;return _0x34a161[_0x3bb879(0x106)](_0x5c3958,Object[_0x3bb879(0x11a)]({},_0x3877a0,{'id':_0x3bb879(0x182),'ref':_0x45d510,'icon':_0x4eba07}));});_0x21b4bb['displayName']=_0xae0692(0xd3);class _0x2aa38c extends _0x1397df[_0xae0692(0x183)]{constructor(){const _0x5af0b4=_0xae0692;super(...arguments),_0x16daf4(this,_0x5af0b4(0xbe),new Set()),_0x16daf4(this,_0x5af0b4(0x19d),new Set());}['registerSharedOperation'](_0x51c3d2){const _0x53a22d=_0xae0692;return this[_0x53a22d(0xbe)][_0x53a22d(0x171)](_0x51c3d2),_0x1397df[_0x53a22d(0xc4)](()=>this[_0x53a22d(0xbe)][_0x53a22d(0x168)](_0x51c3d2));}[_0xae0692(0xc8)](_0x1a4cf2){const _0x360af5=_0xae0692;return this[_0x360af5(0x19d)][_0x360af5(0x171)](_0x1a4cf2),_0x1397df[_0x360af5(0xc4)](()=>this[_0x360af5(0x19d)][_0x360af5(0x168)](_0x1a4cf2));}[_0xae0692(0x112)](_0x314465){const _0x2e428a=_0xae0692;return this[_0x2e428a(0xbe)][_0x2e428a(0x128)](_0x314465);}['getInitialStates'](_0x3216d3){const _0x3e9081=_0xae0692;return Array['from'](this[_0x3e9081(0x19d)])[_0x3e9081(0xec)](_0x3f73a1=>_0x3f73a1(_0x3216d3));}}var _0xc7b8c6=Object[_0xae0692(0x11c)],_0x558cf2=(_0x4c1db5,_0x527e66,_0x5bad0a,_0x589082)=>{const _0x2d74db=_0xae0692;for(var _0x11cb2c=_0x589082>0x1?void 0x0:_0x589082?_0xc7b8c6(_0x527e66,_0x5bad0a):_0x527e66,_0x94ad4e=_0x4c1db5[_0x2d74db(0xe8)]-0x1,_0x54cbab;_0x94ad4e>=0x0;_0x94ad4e--)(_0x54cbab=_0x4c1db5[_0x94ad4e])&&(_0x11cb2c=_0x54cbab(_0x11cb2c)||_0x11cb2c);return _0x11cb2c;},_0x286e77=(_0x22ae76,_0x30e53b)=>(_0x42f393,_0xb31f21)=>_0x30e53b(_0x42f393,_0xb31f21,_0x22ae76);_0x1d53d8[_0xae0692(0x12d)]=class extends _0x1397df['RxDisposable']{constructor(_0x349228,_0xe3d42c,_0x5038be){const _0x3ce1a7=_0xae0692;super(),_0x16daf4(this,_0x3ce1a7(0x147),new Map()),(this[_0x3ce1a7(0x109)]=_0x349228,this[_0x3ce1a7(0x160)]=_0xe3d42c,this[_0x3ce1a7(0xb9)]=_0x5038be,this['_init']());}async[_0xae0692(0x141)](_0x259899){const _0x462d4a=_0xae0692;return this[_0x462d4a(0x147)][_0x462d4a(0x128)](_0x259899)||await this[_0x462d4a(0xe0)](_0x259899),this[_0x462d4a(0x147)][_0x462d4a(0x190)](_0x259899);}[_0xae0692(0xf3)](_0x10337d){const _0x3fd52f=_0xae0692;var _0x2f74e2;return(_0x2f74e2=this[_0x3fd52f(0x147)][_0x3fd52f(0x190)](_0x10337d))!=null?_0x2f74e2:null;}[_0xae0692(0x12a)](){const _0xda3b5c=_0xae0692;this[_0xda3b5c(0x109)]['getTypeOfUnitAdded$'](_0x1397df[_0xda3b5c(0xdd)]['UNIVER_SHEET'])[_0xda3b5c(0xda)](_0xdde623[_0xda3b5c(0x11f)](this[_0xda3b5c(0xf7)]))[_0xda3b5c(0x13e)](async _0x4501de=>{const _0xa80360=_0xda3b5c,_0x5ee04f=_0x4501de[_0xa80360(0x17d)]();this['_entities']['has'](_0x5ee04f)||this[_0xa80360(0xe0)](_0x5ee04f);}),this[_0xda3b5c(0x109)]['getTypeOfUnitDisposed$'](_0x1397df[_0xda3b5c(0xdd)][_0xda3b5c(0xc7)])['pipe'](_0xdde623[_0xda3b5c(0x11f)](this[_0xda3b5c(0xf7)]))['subscribe'](_0x485546=>{const _0x388358=_0xda3b5c,_0x4656cb=_0x485546[_0x388358(0x17d)](),_0x43fae2=this[_0x388358(0x147)][_0x388358(0x190)](_0x4656cb);_0x43fae2==null||_0x43fae2[_0x388358(0x157)]();});}async[_0xae0692(0xe0)](_0x584211){const _0x5c33bd=_0xae0692,_0x1e56be=await this['_collabSessionService'][_0x5c33bd(0xd9)](_0x584211),_0x3759b8=this['_injector']['createInstance'](_0x1d53d8['LiveShareCoordinator'],_0x584211,_0x1e56be);return _0x3759b8['init'](),this[_0x5c33bd(0x147)][_0x5c33bd(0x122)](_0x584211,_0x3759b8),_0x3759b8;}},_0x1d53d8[_0xae0692(0x12d)]=_0x558cf2([_0x286e77(0x0,_0x1397df[_0xae0692(0x101)]),_0x286e77(0x1,_0x1397df[_0xae0692(0xd2)](_0x1397df[_0xae0692(0x18c)])),_0x286e77(0x2,_0x1397df['Inject'](_0x405ccc[_0xae0692(0xef)]))],_0x1d53d8[_0xae0692(0x12d)]);var _0x5d2a2f=(_0x48a300=>(_0x48a300['OFFLINE']='offline',_0x48a300[_0xae0692(0x10d)]=_0xae0692(0xd4),_0x48a300[_0xae0692(0x130)]=_0xae0692(0x189),_0x48a300[_0xae0692(0xeb)]='not-following',_0x48a300[_0xae0692(0x12e)]=_0xae0692(0xcc),_0x48a300))(_0x5d2a2f||{});const _0x1a4ba1=_0xae0692(0x138),_0x3e7848=0xc8;_0x1d53d8[_0xae0692(0x16a)]=class extends _0x1397df[_0xae0692(0x18e)]{constructor(_0x5a9985,_0x982c5b,_0x1df5b0,_0x46dc3b,_0x59051f){const _0x87cfee=_0xae0692;super(),_0x16daf4(this,'_status$',new _0x912b8[(_0x87cfee(0x110))](_0x87cfee(0xd4))),_0x16daf4(this,_0x87cfee(0x15e),this['_status$'][_0x87cfee(0x153)]()),_0x16daf4(this,_0x87cfee(0x12a),!0x1),_0x16daf4(this,'_commandDisposable',null),_0x16daf4(this,'_presenter',null),(this['_unitID']=_0x5a9985,this[_0x87cfee(0x19c)]=_0x982c5b,this[_0x87cfee(0x19a)]=_0x1df5b0,this['_liveShareService']=_0x46dc3b,this[_0x87cfee(0x188)]=_0x59051f);}get['_status'](){const _0x292138=_0xae0692;return this['_status$'][_0x292138(0xf2)]();}[_0xae0692(0x157)](){const _0x6f3e12=_0xae0692;var _0x271db1;(_0x271db1=this[_0x6f3e12(0x16f)])==null||_0x271db1[_0x6f3e12(0x157)](),this[_0x6f3e12(0xfd)][_0x6f3e12(0xcf)](_0x6f3e12(0xd4)),this[_0x6f3e12(0xfd)]['complete']();}['getStatus'](){const _0x42757e=_0xae0692;return this[_0x42757e(0x170)];}[_0xae0692(0x15a)](){const _0x42622b=_0xae0692;this[_0x42622b(0x12a)]||(this[_0x42622b(0x12a)]=!0x0,this[_0x42622b(0x19c)][_0x42622b(0x163)]['pipe'](_0xdde623[_0x42622b(0x11f)](this[_0x42622b(0xf7)]))['subscribe'](_0x56631e=>{const _0x1297cb=_0x42622b;switch(_0x56631e){case _0x405ccc[_0x1297cb(0x135)][_0x1297cb(0x177)]:this[_0x1297cb(0x102)]();break;case _0x405ccc[_0x1297cb(0x135)]['ONLINE']:this[_0x1297cb(0xba)]();break;}}),this['_collabSession'][_0x42622b(0x132)][_0x42622b(0xda)](_0xdde623[_0x42622b(0x11f)](this['dispose$']))[_0x42622b(0x13e)](_0x430583=>{const _0x495be5=_0x42622b,{eventID:_0x44aeed}=_0x430583;switch(_0x44aeed){case _0x4e00b2[_0x495be5(0xbb)][_0x495be5(0xea)]:this[_0x495be5(0x184)](_0x430583);break;case _0x4e00b2[_0x495be5(0xbb)][_0x495be5(0x14c)]:this[_0x495be5(0x145)](_0x430583);break;case _0x4e00b2[_0x495be5(0xbb)][_0x495be5(0xfe)]:this['_handleTerminate']();break;case _0x4e00b2[_0x495be5(0xbb)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x430583);break;}}));}[_0xae0692(0x116)](){const _0x26a503=_0xae0692;this[_0x26a503(0x19c)][_0x26a503(0x11b)]({'eventID':_0x4e00b2['CollaborationEvent'][_0x26a503(0x195)],'data':{'unitID':this[_0x26a503(0xb6)],'userID':this[_0x26a503(0x19c)][_0x26a503(0x15c)]()}},this[_0x26a503(0xb6)]);}['stopPresenting'](){const _0x443a7c=_0xae0692;this[_0x443a7c(0x170)]===_0x443a7c(0xcc)&&(this[_0x443a7c(0xfd)][_0x443a7c(0xcf)](_0x443a7c(0xd4)),this[_0x443a7c(0x19c)][_0x443a7c(0x11b)]({'eventID':_0x4e00b2[_0x443a7c(0xbb)][_0x443a7c(0xfe)],'data':{'unitID':this[_0x443a7c(0xb6)]}},this[_0x443a7c(0xb6)]));}['startFollowing'](){const _0x550cd4=_0xae0692;this[_0x550cd4(0x170)]===_0x550cd4(0x136)&&(this[_0x550cd4(0xfd)][_0x550cd4(0xcf)](_0x550cd4(0x189)),this[_0x550cd4(0xb5)]());}[_0xae0692(0xfc)](){const _0x65c717=_0xae0692;this[_0x65c717(0x170)]===_0x65c717(0x189)&&this[_0x65c717(0x15f)]();}[_0xae0692(0x184)](_0x3cc054){const _0x3eb7c9=_0xae0692,{presenter:_0x214701}=_0x3cc054[_0x3eb7c9(0x113)],_0x550aa4=this['_collabSession'][_0x3eb7c9(0x15c)]();this[_0x3eb7c9(0xfb)]=_0x214701,_0x214701===_0x550aa4?(this[_0x3eb7c9(0x15f)](),this[_0x3eb7c9(0x108)]()):this[_0x3eb7c9(0x170)]!==_0x3eb7c9(0x136)&&(this[_0x3eb7c9(0x175)](),this[_0x3eb7c9(0xb5)]());}['_fetchOperations'](){const _0x4b641a=_0xae0692,_0x1cc8b6={'eventID':_0x4e00b2['CollaborationEvent'][_0x4b641a(0x152)]};this[_0x4b641a(0x19c)]['send'](_0x1cc8b6,this['_unitID']);}[_0xae0692(0x10b)](){const _0x2d5480=_0xae0692;this[_0x2d5480(0xfb)]=null,this[_0x2d5480(0x170)]!=='presenting'&&this[_0x2d5480(0x16c)]();}[_0xae0692(0xff)](_0x491a63){const _0x391274=_0xae0692;if(this['_status']==='following'&&this['_presenter']===_0x491a63[_0x391274(0x113)][_0x391274(0x17f)]){const _0x155f06=_0x4e00b2[_0x391274(0xca)](_0x491a63[_0x391274(0x113)])[_0x391274(0x12b)]['reverse']()['find'](_0x7535c3=>_0x7535c3['id']===_0x3cdbdd[_0x391274(0x17a)]['id']);if(_0x155f06){const _0xa87e90=_0x155f06[_0x391274(0xc1)][_0x391274(0xee)],_0x4e00a8=_0x155f06[_0x391274(0xc1)][_0x391274(0xcb)]['id'];setTimeout(()=>{const _0x416c21=_0x391274;this[_0x416c21(0x188)]['executeCommand'](_0x3cdbdd[_0x416c21(0x105)]['id'],{'unitId':_0xa87e90,'subUnitId':_0x4e00a8},{'fromCollab':!0x0});});}}}[_0xae0692(0x108)](){const _0x761a78=_0xae0692;this[_0x761a78(0xfd)][_0x761a78(0xcf)]('presenting');const _0x5ad8c1=new Map(),_0x1d8a19=this[_0x761a78(0x16f)]=new _0x1397df[(_0x761a78(0xc5))]();_0x1d8a19[_0x761a78(0x171)](_0x1397df['toDisposable'](()=>{const _0x4730fc=_0x761a78;_0x5ad8c1[_0x4730fc(0xbf)](_0xcf77fc=>_0xcf77fc[_0x4730fc(0x150)]()),_0x5ad8c1[_0x4730fc(0x15b)]();})),_0x1d8a19['add'](this[_0x761a78(0x188)][_0x761a78(0x165)](_0x363551=>{const _0x566c6c=_0x761a78;var _0x43380c;if(_0x363551[_0x566c6c(0x198)]!==_0x1397df[_0x566c6c(0x124)][_0x566c6c(0xe9)]||!this[_0x566c6c(0x13f)]['shouldShareOperation'](_0x363551['id']))return;const {id:_0x24b9e3}=_0x363551;let _0x25f08a;_0x5ad8c1[_0x566c6c(0x128)](_0x24b9e3)?_0x25f08a=_0x5ad8c1['get'](_0x24b9e3):(_0x25f08a=new _0x912b8[(_0x566c6c(0x127))](),_0x5ad8c1[_0x566c6c(0x122)](_0x24b9e3,_0x25f08a),_0x25f08a[_0x566c6c(0xda)](_0xdde623[_0x566c6c(0x13a)]((_0x43380c=this[_0x566c6c(0x19a)]['getConfig'](_0x1a4ba1))!=null?_0x43380c:_0x3e7848,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x566c6c(0x13e)](_0x23f599=>{const _0x3eedf7=_0x566c6c;this[_0x3eedf7(0x19c)][_0x3eedf7(0x11b)]({'eventID':_0x4e00b2[_0x3eedf7(0xbb)][_0x3eedf7(0x14c)],'data':{'unitID':this[_0x3eedf7(0xb6)],'operations':{[_0x23f599['id']]:{'id':_0x23f599['id'],'params':JSON['stringify'](_0x23f599[_0x3eedf7(0xc1)])}}}},this['_unitID']);})),_0x25f08a['next'](_0x363551);})),this[_0x761a78(0x13f)][_0x761a78(0x12c)](this[_0x761a78(0xb6)])['forEach'](_0x266a19=>this['_collabSession']['send']({'eventID':_0x4e00b2['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x761a78(0xb6)],'operations':{[_0x266a19['id']]:{'id':_0x266a19['id'],'params':JSON[_0x761a78(0x176)](_0x266a19['params'])}}}},this[_0x761a78(0xb6)]));}[_0xae0692(0x175)](){const _0x12a392=_0xae0692;var _0xf34590;this[_0x12a392(0xfd)][_0x12a392(0xcf)](_0x12a392(0xd4)),(_0xf34590=this[_0x12a392(0x16f)])==null||_0xf34590[_0x12a392(0x157)](),this[_0x12a392(0x16f)]=null;}[_0xae0692(0xb5)](){const _0x3d42fd=_0xae0692;var _0x4348e0;(_0x4348e0=this[_0x3d42fd(0x16f)])==null||_0x4348e0[_0x3d42fd(0x157)](),this[_0x3d42fd(0xfd)][_0x3d42fd(0xcf)]('following');}[_0xae0692(0x16c)](){const _0xd40040=_0xae0692;var _0x44ccee;this[_0xd40040(0xfd)][_0xd40040(0xcf)](_0xd40040(0xd4)),(_0x44ccee=this[_0xd40040(0x16f)])==null||_0x44ccee['dispose'](),this[_0xd40040(0x16f)]=null;}[_0xae0692(0x15f)](){const _0x4da205=_0xae0692;var _0x19045a;this[_0x4da205(0xfd)]['next']('not-following'),(_0x19045a=this[_0x4da205(0x16f)])==null||_0x19045a[_0x4da205(0x157)]();}['_handleOperation'](_0xfde2db){const _0x6d36eb=_0xae0692;if([_0x6d36eb(0xcc),_0x6d36eb(0x136),_0x6d36eb(0x156)]['includes'](this[_0x6d36eb(0x170)])||!_0xfde2db[_0x6d36eb(0x113)][_0x6d36eb(0x13c)]||_0xfde2db[_0x6d36eb(0x113)][_0x6d36eb(0x13c)]===this[_0x6d36eb(0x19c)][_0x6d36eb(0x15c)]())return;this[_0x6d36eb(0x170)]==='idle'&&this[_0x6d36eb(0xb5)]();const _0x15fb83=_0xfde2db[_0x6d36eb(0x113)][_0x6d36eb(0x18f)];Object[_0x6d36eb(0x126)](_0x15fb83)[_0x6d36eb(0xbf)](_0x2f63ff=>{const _0x47a085=_0x6d36eb;this['_commandService'][_0x47a085(0x149)](_0x2f63ff['id'],_0x2f63ff['params']?JSON['parse'](_0x2f63ff['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x20d663=_0xae0692;var _0xcd50ff;this[_0x20d663(0xfd)][_0x20d663(0xcf)](_0x20d663(0x156)),(_0xcd50ff=this[_0x20d663(0x16f)])==null||_0xcd50ff[_0x20d663(0x157)]();}[_0xae0692(0xba)](){const _0x470216=_0xae0692;this['_status$'][_0x470216(0xcf)](_0x470216(0xd4)),this[_0x470216(0xcd)]();}},_0x1d53d8['LiveShareCoordinator']=_0x558cf2([_0x286e77(0x2,_0x1397df[_0xae0692(0x16b)]),_0x286e77(0x3,_0x1397df['Inject'](_0x2aa38c)),_0x286e77(0x4,_0x1397df['ICommandService'])],_0x1d53d8['LiveShareCoordinator']);function _0x4ee34d(){const _0x2daf59=_0xae0692,_0xcdd38c=_0x4da58e[_0x2daf59(0x10f)](_0x1d53d8[_0x2daf59(0x12d)]),_0x96a6f=_0x4da58e[_0x2daf59(0x10f)](_0x1397df['IUniverInstanceService']),_0x116bd7=_0x4da58e[_0x2daf59(0xd6)](()=>_0x96a6f['getCurrentTypeOfUnit$'](_0x1397df['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x73a6ce,_0x2f9d87]=_0x34a161[_0x2daf59(0xc6)](null),[_0x587043,_0x53ba4b]=_0x34a161[_0x2daf59(0xc6)](_0x5d2a2f[_0x2daf59(0x10d)]),_0x24c711=_0x34a161[_0x2daf59(0x178)](null);return _0x34a161[_0x2daf59(0xb8)](()=>(_0x116bd7&&_0xcdd38c['getLiveShareCoordinator'](_0x116bd7[_0x2daf59(0x17d)]())['then'](_0x4e2e31=>{const _0x146213=_0x2daf59;_0x2f9d87(_0x4e2e31),_0x24c711[_0x146213(0x173)]=_0x4e2e31[_0x146213(0x15e)][_0x146213(0x13e)](_0x96a40d=>{_0x53ba4b(_0x96a40d);});}),()=>{const _0x4e2715=_0x2daf59;var _0x4a564c;(_0x4a564c=_0x24c711['current'])==null||_0x4a564c[_0x4e2715(0x193)](),_0x24c711['current']=null;}),[_0x116bd7,_0xcdd38c]),_0x73a6ce?_0x4e7be3[_0x2daf59(0x19b)](_0x1f13cb['Dropdown'],{'align':'end','disabled':_0x587043===_0x5d2a2f['OFFLINE'],'className':_0x2daf59(0xdb),'overlay':_0x4e7be3[_0x2daf59(0x19b)](_0x15408e,{'status':_0x587043,'coordinator':_0x73a6ce}),'children':_0x4e7be3[_0x2daf59(0x19b)](_0x2daf59(0x155),{'className':_0x1f13cb[_0x2daf59(0x140)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x587043===_0x5d2a2f[_0x2daf59(0x177)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x587043!==_0x5d2a2f['OFFLINE']}),'type':_0x2daf59(0x155),'children':_0x4e7be3[_0x2daf59(0x19b)](_0x21b4bb,{'className':_0x2daf59(0x14d)})})}):null;}function _0x15408e(_0x5acb55){const _0x4b7e75=_0xae0692,{status:_0x285649,coordinator:_0x526b70}=_0x5acb55;switch(_0x285649){case _0x5d2a2f[_0x4b7e75(0x10d)]:return _0x4e7be3[_0x4b7e75(0x19b)](_0xae5710,{'coordinator':_0x526b70});case _0x5d2a2f['FOLLOWING']:return _0x4e7be3[_0x4b7e75(0x19b)](_0x457e35,{'coordinator':_0x526b70});case _0x5d2a2f[_0x4b7e75(0xeb)]:return _0x4e7be3[_0x4b7e75(0x19b)](_0x56c882,{'coordinator':_0x526b70});case _0x5d2a2f[_0x4b7e75(0x177)]:return _0x4e7be3[_0x4b7e75(0x19b)](_0x47d51e,{});case _0x5d2a2f[_0x4b7e75(0x12e)]:return _0x4e7be3[_0x4b7e75(0x19b)](_0x4d191f,{'coordinator':_0x526b70});default:return null;}}function _0xae5710(_0x4a2af8){const _0x3675f7=_0xae0692,{coordinator:_0x3e00af}=_0x4a2af8;return _0x4e7be3[_0x3675f7(0x144)](_0x4e7be3[_0x3675f7(0xc2)],{'children':[_0x4e7be3['jsx'](_0x3675f7(0x10c),{'className':_0x3675f7(0xce),'children':_0x3675f7(0x186)}),_0x4e7be3[_0x3675f7(0x19b)](_0x1f13cb[_0x3675f7(0x172)],{'onClick':()=>_0x3e00af[_0x3675f7(0x116)](),'children':_0x3675f7(0x134)})]});}function _0x457e35(_0x9adbda){const _0x533cd0=_0xae0692,{coordinator:_0x15b2e9}=_0x9adbda;return _0x4e7be3[_0x533cd0(0x144)](_0x4e7be3[_0x533cd0(0xc2)],{'children':[_0x4e7be3['jsx'](_0x533cd0(0x10c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x533cd0(0x125)}),_0x4e7be3[_0x533cd0(0x19b)](_0x1f13cb[_0x533cd0(0x172)],{'onClick':()=>_0x15b2e9[_0x533cd0(0xfc)](),'children':'Stop\x20following'})]});}function _0x56c882(_0x4d50cc){const _0x3479cb=_0xae0692,{coordinator:_0x2bb6df}=_0x4d50cc;return _0x4e7be3[_0x3479cb(0x144)](_0x4e7be3['Fragment'],{'children':[_0x4e7be3['jsx'](_0x3479cb(0x10c),{'className':_0x3479cb(0xce),'children':_0x3479cb(0x167)}),_0x4e7be3[_0x3479cb(0x19b)](_0x1f13cb['Button'],{'variant':_0x3479cb(0x154),'onClick':()=>_0x2bb6df['startFollowing'](),'children':_0x3479cb(0xc9)})]});}function _0x4d191f(_0x1973d6){const _0x468d49=_0xae0692,{coordinator:_0x3a6aa2}=_0x1973d6;return _0x4e7be3[_0x468d49(0x144)](_0x4e7be3[_0x468d49(0xc2)],{'children':[_0x4e7be3[_0x468d49(0x19b)](_0x468d49(0x10c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x4e7be3['jsx'](_0x1f13cb['Button'],{'variant':_0x468d49(0x142),'onClick':()=>_0x3a6aa2[_0x468d49(0x103)](),'children':_0x468d49(0x164)})]});}function _0x47d51e(){const _0x2ef5e2=_0xae0692;return _0x4e7be3[_0x2ef5e2(0x19b)](_0x4e7be3[_0x2ef5e2(0xc2)],{'children':_0x2ef5e2(0x148)});}var _0x142a45=Object[_0xae0692(0x11c)],_0x576e4f=(_0x512136,_0x1321ae,_0x228931,_0x5072e1)=>{const _0x3c71ea=_0xae0692;for(var _0x45be2e=_0x5072e1>0x1?void 0x0:_0x5072e1?_0x142a45(_0x1321ae,_0x228931):_0x1321ae,_0x5db439=_0x512136[_0x3c71ea(0xe8)]-0x1,_0x599fe7;_0x5db439>=0x0;_0x5db439--)(_0x599fe7=_0x512136[_0x5db439])&&(_0x45be2e=_0x599fe7(_0x45be2e)||_0x45be2e);return _0x45be2e;},_0x30fa92=(_0x3cd562,_0x2d2c75)=>(_0x43c6b5,_0x452c86)=>_0x2d2c75(_0x43c6b5,_0x452c86,_0x3cd562);_0x1d53d8[_0xae0692(0xf0)]=class extends _0x1397df[_0xae0692(0x183)]{constructor(_0x903adb,_0x16315d){const _0x25ec17=_0xae0692;super(),this['_injector']=_0x903adb,this[_0x25ec17(0x18d)]=_0x16315d,this['_mountLiveShare']();}[_0xae0692(0xe6)](){const _0x27e8fe=_0xae0692;this[_0x27e8fe(0xf1)](this[_0x27e8fe(0x18d)][_0x27e8fe(0x120)](_0x4da58e['BuiltInUIPart'][_0x27e8fe(0xd0)],()=>_0x4da58e['connectInjector'](_0x4ee34d,this[_0x27e8fe(0x160)])));}},_0x1d53d8[_0xae0692(0xf0)]=_0x576e4f([_0x30fa92(0x0,_0x1397df[_0xae0692(0xd2)](_0x1397df[_0xae0692(0x18c)])),_0x30fa92(0x1,_0x4da58e['IUIPartsService'])],_0x1d53d8[_0xae0692(0xf0)]);const _0x3ed653=_0xae0692(0x161),_0xb1c6b={};var _0x5ebd2d=Object[_0xae0692(0x11c)],_0x21aef6=(_0x5eb4d0,_0x147885,_0x290cbd,_0x394d94)=>{for(var _0x1fdcc5=_0x394d94>0x1?void 0x0:_0x394d94?_0x5ebd2d(_0x147885,_0x290cbd):_0x147885,_0xa96662=_0x5eb4d0['length']-0x1,_0x126ec8;_0xa96662>=0x0;_0xa96662--)(_0x126ec8=_0x5eb4d0[_0xa96662])&&(_0x1fdcc5=_0x126ec8(_0x1fdcc5)||_0x1fdcc5);return _0x1fdcc5;},_0x384ebc=(_0x8106da,_0x18d231)=>(_0x10b812,_0x88ee13)=>_0x18d231(_0x10b812,_0x88ee13,_0x8106da);let _0x3c95c3=class extends _0x1397df[_0xae0692(0x183)]{constructor(_0x18c39c){const _0x39d19f=_0xae0692;super(),this[_0x39d19f(0x13f)]=_0x18c39c,this[_0x39d19f(0x12a)]();}['_init'](){const _0x42ae48=_0xae0692;[_0x56053b[_0x42ae48(0xd5)]['id'],_0x56053b[_0x42ae48(0x10e)]['id'],_0x3cdbdd[_0x42ae48(0x105)]['id']][_0x42ae48(0xbf)](_0x194370=>{const _0x3df671=_0x42ae48;this[_0x3df671(0xf1)](this[_0x3df671(0x13f)]['registerSharedOperation'](_0x194370));});}};_0x3c95c3=_0x21aef6([_0x384ebc(0x0,_0x1397df[_0xae0692(0xd2)](_0x2aa38c))],_0x3c95c3);var _0x5d8e7c=Object[_0xae0692(0x10a)],_0x77951a=Object[_0xae0692(0x11c)],_0x4aa0d2=(_0x31fbbe,_0x25b175,_0x413bd9)=>_0x25b175 in _0x31fbbe?_0x5d8e7c(_0x31fbbe,_0x25b175,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x413bd9}):_0x31fbbe[_0x25b175]=_0x413bd9,_0x13bed6=(_0x2b6ea4,_0x47326c,_0x48b597,_0xc404c9)=>{const _0x1569b5=_0xae0692;for(var _0x37da21=_0xc404c9>0x1?void 0x0:_0xc404c9?_0x77951a(_0x47326c,_0x48b597):_0x47326c,_0x4c352a=_0x2b6ea4[_0x1569b5(0xe8)]-0x1,_0x110db0;_0x4c352a>=0x0;_0x4c352a--)(_0x110db0=_0x2b6ea4[_0x4c352a])&&(_0x37da21=_0x110db0(_0x37da21)||_0x37da21);return _0x37da21;},_0x439e4a=(_0x5407b0,_0x5b7eed)=>(_0x2ed323,_0x4a1a34)=>_0x5b7eed(_0x2ed323,_0x4a1a34,_0x5407b0),_0x5d983f=(_0x56e38d,_0xd2ac93,_0x4c97e4)=>_0x4aa0d2(_0x56e38d,typeof _0xd2ac93!=_0xae0692(0x111)?_0xd2ac93+'':_0xd2ac93,_0x4c97e4);const _0x1adb4c=_0xae0692(0x199);_0x1d53d8[_0xae0692(0x17e)]=class extends _0x1397df[_0xae0692(0x118)]{constructor(_0x15b52b=_0xb1c6b,_0x3c34c4,_0x3f886e){const _0x37b8ca=_0xae0692;super(),this['_config']=_0x15b52b,this['_injector']=_0x3c34c4,this['_configService']=_0x3f886e;const {..._0x30ffb1}=_0x1397df[_0x37b8ca(0x143)]({},_0xb1c6b,this[_0x37b8ca(0xb4)]);this['_configService'][_0x37b8ca(0x18b)](_0x3ed653,_0x30ffb1);}[_0xae0692(0x15d)](){const _0x1d953b=_0xae0692;_0x1397df['registerDependencies'](this[_0x1d953b(0x160)],_0x1397df[_0x1d953b(0x158)]([[_0x2aa38c],[_0x1d53d8[_0x1d953b(0x12d)]],[_0x3c95c3],[_0x1d53d8[_0x1d953b(0xf0)]]],this[_0x1d953b(0xb4)][_0x1d953b(0xdf)])),_0x1397df[_0x1d953b(0xc0)](this[_0x1d953b(0x160)],[[_0x3c95c3]]);}[_0xae0692(0x13d)](){const _0x65b49a=_0xae0692;_0x1397df[_0x65b49a(0xc0)](this[_0x65b49a(0x160)],[[_0x1d53d8[_0x65b49a(0xf0)]]]);}},_0x5d983f(_0x1d53d8[_0xae0692(0x17e)],_0xae0692(0x198),_0x1397df[_0xae0692(0xdd)]['UNIVER_UNKNOWN']),_0x5d983f(_0x1d53d8['UniverLiveSharePlugin'],_0xae0692(0xe4),_0x1adb4c),_0x1d53d8[_0xae0692(0x17e)]=_0x13bed6([_0x1397df[_0xae0692(0x131)](_0x405ccc['UniverCollaborationClientPlugin']),_0x439e4a(0x1,_0x1397df['Inject'](_0x1397df[_0xae0692(0x18c)])),_0x439e4a(0x2,_0x1397df[_0xae0692(0x16b)])],_0x1d53d8[_0xae0692(0x17e)]),_0x1d53d8[_0xae0692(0xf5)]=_0x4ee34d,_0x1d53d8[_0xae0692(0x18a)]=_0x2aa38c,_0x1d53d8['LiveShareStatus']=_0x5d2a2f,Object[_0xae0692(0x10a)](_0x1d53d8,Symbol[_0xae0692(0x162)],{'value':_0xae0692(0x159)});}));function _0x2d88(_0x1a91e4,_0x12b8d4){_0x1a91e4=_0x1a91e4-0xb4;const _0x57dca2=_0x57dc();let _0x2d8852=_0x57dca2[_0x1a91e4];return _0x2d8852;}function _0x57dc(){const _0x48f159=['UniverProCollaboration','useEffect','_collabSessionService','_handleOnline','CollaborationEvent','2300630gOiEAj','operators','_sharedOperations','forEach','touchDependencies','params','Fragment','800RJDlRC','toDisposable','DisposableCollection','useState','UNIVER_SHEET','registerInitialStateReporter','Start\x20following','parseProtocolChangeset','sheet','presenting','_fetchOperations','univer-mb-3\x20univer-w-full\x20univer-text-sm','next','HEADER_MENU','UniverSheets','Inject','LiveShareIcon','idle','SetZoomRatioOperation','useObservable','string','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','requireSession','pipe','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','15ijxHuh','UniverInstanceType','1em','override','_startLiveShareCoordinator','toString','replace','mask','pluginName','@univerjs/sheets-ui','_mountLiveShare','svg','length','OPERATION','LIVESHARE_NEW_HOST','NOT_FOLLOWING','map','function','unitId','CollaborationSessionService','DesktopLiveShareController','disposeWithMe','getValue','getLiveShareCoordinatorSync','UniverDesign','LiveShare','9830942FqvHRO','dispose$','idSuffix','currentColor','includes','_presenter','stopFollowing','_status$','LIVESHARE_TERMINATE','_handleNewChangeSets','xlink:href','IUniverInstanceService','_handleOffline','stopPresenting','path','SetWorksheetActiveOperation','createElement','@univerjs/sheets','_startPresenting','_univerInstanceService','defineProperty','_handleTerminate','div','IDLE','SetScrollOperation','useDependency','BehaviorSubject','symbol','shouldShareOperation','data','30bORUsZ','react/jsx-runtime','tryStartPresenting','evenodd','Plugin','url(#$1','assign','send','getOwnPropertyDescriptor','tag','object','takeUntil','registerComponent','2997776iYhUaB','set','134533ucMVxU','CommandType','You\x27re\x20following\x20the\x20presenter','values','Subject','has','137980qQgiUD','_init','mutations','getInitialStates','LiveShareController','PRESENTING','React','FOLLOWING','DependentOn','event$','trim','Start','SessionStatus','not-following','univerjs-icon\x20univerjs-icon-','SAME_OPERATION_SHARE_INTERVAL','UniverCore','throttleTime','react','presenter','onRendered','subscribe','_liveShareService','clsx','getLiveShareCoordinator','default','merge','jsxs','_handleOperation','@univerjs/design','_entities','You\x27are\x20offline.','executeCommand','forwardRef','@univerjs/core','LIVESHARE_OPERATION','univer-size-4','UniverProLiveShare','@univerjs/ui','complete','http://www.w3.org/2000/svg','LIVESHARE_FETCH_OPERATIONS','asObservable','text','button','offline','dispose','mergeOverrideWithDependencies','Module','init','clear','getMemberID','onStarting','status$','_stopFollowing','_injector','live-share.config','toStringTag','sessionStatus$','Stop\x20presenting','onCommandExecuted','children','You\x27re\x20not\x20following\x20the\x20presenter','delete','entries','LiveShareCoordinator','IConfigService','_beIdle','attrs','UniverProCollaborationClient','_commandDisposable','_status','add','Button','current','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','_stopPresenting','stringify','OFFLINE','useRef','defIds','InsertSheetMutation','displayName','UniverIcon','getUnitId','UniverLiveSharePlugin','memberID','fill','253729ZlYJMp','live-share-icon','Disposable','_handleNewHost','6484MiuAjN','Present\x20this\x20document','defs','_commandService','following','LiveShareService','setConfig','Injector','_uiPartsService','RxDisposable','operations','get','18qOUcdz','0\x200\x2017\x2017','unsubscribe','UniverUi','LIVESHARE_REQUEST_HOST','rxjs','colorChannel1','type','UNIVER_LIVE_SHARE_PLUGIN','_configService','jsx','_collabSession','_reporters','_config','_startFollowing','_unitID'];_0x57dc=function(){return _0x48f159;};return _0x57dc();}
|
|
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/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/sheets-ui": "0.
|
|
66
|
-
"@univerjs/
|
|
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",
|
|
@@ -72,9 +72,9 @@
|
|
|
72
72
|
"rxjs": "7.8.2",
|
|
73
73
|
"tailwindcss": "^3.4.17",
|
|
74
74
|
"typescript": "^5.9.3",
|
|
75
|
-
"vite": "^7.2.
|
|
75
|
+
"vite": "^7.2.7",
|
|
76
76
|
"vitest": "^4.0.15",
|
|
77
|
-
"@univerjs-infra/shared": "0.
|
|
77
|
+
"@univerjs-infra/shared": "0.13.0",
|
|
78
78
|
"@univerjs/protocol": "0.1.47"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|