@univerjs-pro/live-share 0.12.4 → 0.13.0-insiders.20251215-64041bb
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';const
|
|
1
|
+
'use strict';const _0x5cc455=_0x2a19;(function(_0x8093b5,_0x1934c0){const _0x1bbbcd=_0x2a19,_0x5a49a0=_0x8093b5();while(!![]){try{const _0x4f089f=parseInt(_0x1bbbcd(0xb8))/0x1+parseInt(_0x1bbbcd(0xa2))/0x2*(parseInt(_0x1bbbcd(0x96))/0x3)+parseInt(_0x1bbbcd(0x92))/0x4*(parseInt(_0x1bbbcd(0xa4))/0x5)+parseInt(_0x1bbbcd(0xad))/0x6+parseInt(_0x1bbbcd(0xaf))/0x7+parseInt(_0x1bbbcd(0xb0))/0x8*(parseInt(_0x1bbbcd(0x9f))/0x9)+-parseInt(_0x1bbbcd(0xa6))/0xa;if(_0x4f089f===_0x1934c0)break;else _0x5a49a0['push'](_0x5a49a0['shift']());}catch(_0x2a17d5){_0x5a49a0['push'](_0x5a49a0['shift']());}}}(_0x1959,0xe8010));const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');class w extends d[_0x5cc455(0x91)]{[_0x5cc455(0xa0)](_0x4cecf5,_0x3fea54,_0x1f8237,_0x3fb0d8,_0x319573){const _0x113916=_0x5cc455,_0x54ed1b=_0x4cecf5[_0x113916(0x94)](n[_0x113916(0xb2)]),_0x3d8cd0=_0x4cecf5[_0x113916(0x94)](g[_0x113916(0xb4)]),_0x16b874=_0x3fea54[_0x113916(0xb5)](),_0x16194c=_0x3fea54['getActiveSheet'](),_0x272544=_0x54ed1b[_0x113916(0x8f)](_0x16b874);(_0x272544==null?void 0x0:_0x272544[_0x113916(0xaa)]())!==n['LiveShareStatus']['PRESENTING']||(_0x1f8237[_0x113916(0x9e)]()!==_0x16194c[_0x113916(0x9e)]()&&this[_0x113916(0x9c)][_0x113916(0xba)](u[_0x113916(0xa7)]['id'],{'unitId':_0x16b874,'subUnitId':_0x1f8237[_0x113916(0x9e)]()}),!_0x3d8cd0[_0x113916(0x9b)](_0x16b874))||_0x319573[_0x113916(0xa3)](f[_0x113916(0xae)]['id'],{'unitId':_0x3fea54[_0x113916(0xb5)](),'sheetId':_0x1f8237['getSheetId'](),'sheetViewStartRow':_0x3fb0d8[_0x113916(0xac)],'sheetViewStartColumn':_0x3fb0d8[_0x113916(0x9d)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x1959(){const _0x580bd6=['get','_injector','2030286COoktX','IDLE','FUniver','extend','stopPresenting','getRenderById','_commandService','startColumn','getSheetId','414XzVNXL','_initialize','tryStartPresenting','2CxdAuk','syncExecuteCommand','535THoCSc','No\x20active\x20workbook\x20found.','59951990AzXwQh','SetWorksheetActiveOperation','getId','getActiveWorkbook','getStatus','LiveShareStatus','startRow','6521034dYcWqo','SetScrollOperation','2452331ElhHbp','294824JOpImA','startPresenting','LiveShareController','LiveShareStatusEnum','IRenderManagerService','getUnitId','FEnum','startFollowing','1498466riaPJb','getLiveShareStatus','executeCommand','getLiveShareCoordinatorSync','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','FRange','61228CTDhnf','stopFollowing'];_0x1959=function(){return _0x580bd6;};return _0x1959();}d['FRange'][_0x5cc455(0x99)](w);function _0x2a19(_0x37ac30,_0x5bfed3){_0x37ac30=_0x37ac30-0x8f;const _0x1959e6=_0x1959();let _0x2a19fd=_0x1959e6[_0x37ac30];return _0x2a19fd;}class C extends a['FUniver']{[_0x5cc455(0xb9)](){const _0x4bb721=_0x5cc455;var _0x1753f0,_0x4ce4ac;const _0x39d3b5=this[_0x4bb721(0x95)][_0x4bb721(0x94)](n[_0x4bb721(0xb2)]),_0xc90d0=(_0x1753f0=this[_0x4bb721(0xa9)]())==null?void 0x0:_0x1753f0[_0x4bb721(0xa8)]();if(!_0xc90d0)throw new Error(_0x4bb721(0xa5));const _0x3bb5db=_0x39d3b5[_0x4bb721(0x8f)](_0xc90d0);return(_0x4ce4ac=_0x3bb5db==null?void 0x0:_0x3bb5db[_0x4bb721(0xaa)]())!=null?_0x4ce4ac:n['LiveShareStatus'][_0x4bb721(0x97)];}[_0x5cc455(0xb7)](){const _0x28b23c=_0x5cc455;var _0x1ecd33;const _0x47c45d=this[_0x28b23c(0x95)][_0x28b23c(0x94)](n[_0x28b23c(0xb2)]),_0x9227c8=(_0x1ecd33=this['getActiveWorkbook']())==null?void 0x0:_0x1ecd33[_0x28b23c(0xa8)]();if(!_0x9227c8)throw new Error(_0x28b23c(0xa5));const _0x6b2821=_0x47c45d[_0x28b23c(0x8f)](_0x9227c8);if(!_0x6b2821)throw new Error(_0x28b23c(0x90));_0x6b2821[_0x28b23c(0xb7)]();}[_0x5cc455(0x93)](){const _0x32373f=_0x5cc455;var _0x33c5f1;const _0x1eb1c6=this['_injector'][_0x32373f(0x94)](n[_0x32373f(0xb2)]),_0x19332e=(_0x33c5f1=this[_0x32373f(0xa9)]())==null?void 0x0:_0x33c5f1[_0x32373f(0xa8)]();if(!_0x19332e)throw new Error(_0x32373f(0xa5));const _0xf0e1f7=_0x1eb1c6[_0x32373f(0x8f)](_0x19332e);if(!_0xf0e1f7)throw new Error(_0x32373f(0x90));_0xf0e1f7[_0x32373f(0x93)]();}[_0x5cc455(0xb1)](){const _0x2774dd=_0x5cc455;var _0x4d0b45;const _0x59f153=this[_0x2774dd(0x95)]['get'](n[_0x2774dd(0xb2)]),_0x192cae=(_0x4d0b45=this[_0x2774dd(0xa9)]())==null?void 0x0:_0x4d0b45[_0x2774dd(0xa8)]();if(!_0x192cae)throw new Error(_0x2774dd(0xa5));const _0x440eeb=_0x59f153[_0x2774dd(0x8f)](_0x192cae);if(!_0x440eeb)throw new Error(_0x2774dd(0x90));_0x440eeb[_0x2774dd(0xa1)]();}[_0x5cc455(0x9a)](){const _0x56da83=_0x5cc455;var _0x5e4e43;const _0x3a04ce=this['_injector'][_0x56da83(0x94)](n[_0x56da83(0xb2)]),_0x8629ab=(_0x5e4e43=this[_0x56da83(0xa9)]())==null?void 0x0:_0x5e4e43['getId']();if(!_0x8629ab)throw new Error(_0x56da83(0xa5));const _0x4e4a80=_0x3a04ce['getLiveShareCoordinatorSync'](_0x8629ab);if(!_0x4e4a80)throw new Error(_0x56da83(0x90));_0x4e4a80[_0x56da83(0x9a)]();}}a[_0x5cc455(0x98)][_0x5cc455(0x99)](C);class L extends a['FEnum']{get[_0x5cc455(0xb3)](){const _0x4ae3af=_0x5cc455;return n[_0x4ae3af(0xab)];}}a[_0x5cc455(0xb6)][_0x5cc455(0x99)](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 _0x146de2=_0x4aaf;function _0x4aaf(_0x5d3476,_0x35ad77){_0x5d3476=_0x5d3476-0x6d;const _0x5376c2=_0x5376();let _0x4aafa9=_0x5376c2[_0x5d3476];return _0x4aafa9;}(function(_0x31fb83,_0x5ee9f6){const _0x483a53=_0x4aaf,_0x52e21d=_0x31fb83();while(!![]){try{const _0x521076=parseInt(_0x483a53(0x121))/0x1*(parseInt(_0x483a53(0x11e))/0x2)+parseInt(_0x483a53(0xd4))/0x3+parseInt(_0x483a53(0x10e))/0x4*(parseInt(_0x483a53(0x10d))/0x5)+-parseInt(_0x483a53(0xcd))/0x6*(-parseInt(_0x483a53(0x73))/0x7)+-parseInt(_0x483a53(0x6d))/0x8+-parseInt(_0x483a53(0xcf))/0x9*(parseInt(_0x483a53(0x8d))/0xa)+-parseInt(_0x483a53(0x127))/0xb;if(_0x521076===_0x5ee9f6)break;else _0x52e21d['push'](_0x52e21d['shift']());}catch(_0x55e1ce){_0x52e21d['push'](_0x52e21d['shift']());}}}(_0x5376,0xf105c));var T=Object[_0x146de2(0x76)],U=(_0x52f6e9,_0x366f85,_0x284485)=>_0x366f85 in _0x52f6e9?T(_0x52f6e9,_0x366f85,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x284485}):_0x52f6e9[_0x366f85]=_0x284485,_=(_0x384ddf,_0x531e8b,_0x181d5f)=>U(_0x384ddf,typeof _0x531e8b!=_0x146de2(0xe0)?_0x531e8b+'':_0x531e8b,_0x181d5f);Object[_0x146de2(0x76)](exports,Symbol[_0x146de2(0xd3)],{'value':_0x146de2(0x104)});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:_0x34e755,..._0x4da669}){const _0x42ccd7=_0x146de2,{icon:_0x5d7d04,id:_0x467310,className:_0x35eba6,extend:_0xc968c0,..._0x220fa5}=_0x4da669,_0x146e81=(_0x42ccd7(0xc7)+_0x467310+'\x20'+(_0x35eba6||''))[_0x42ccd7(0x7d)](),_0x5e3b60=v[_0x42ccd7(0x75)]('_'+H());return j(_0x5d7d04,''+_0x467310,{'defIds':_0x5d7d04[_0x42ccd7(0xb4)],'idSuffix':_0x5e3b60[_0x42ccd7(0x106)]},{'ref':_0x34e755,'className':_0x146e81,..._0x220fa5},_0xc968c0);}function j(_0x224df1,_0x3a3aeb,_0x38e188,_0xebc979,_0x4a8308){const _0x1396c1=_0x146de2;return v['createElement'](_0x224df1[_0x1396c1(0x9a)],{'key':_0x3a3aeb,...y(_0x224df1,_0x38e188,_0x4a8308),..._0xebc979},(F(_0x224df1,_0x38e188)['children']||[])[_0x1396c1(0x117)]((_0x148bb8,_0x2fa454)=>j(_0x148bb8,_0x3a3aeb+'-'+_0x224df1[_0x1396c1(0x9a)]+'-'+_0x2fa454,_0x38e188,void 0x0,_0x4a8308)));}function y(_0x13a6de,_0x4ba84d,_0x390193){const _0x5648fa=_0x146de2,_0x1d8893={..._0x13a6de['attrs']};_0x390193!=null&&_0x390193[_0x5648fa(0xae)]&&_0x1d8893['fill']===_0x5648fa(0xae)&&(_0x1d8893[_0x5648fa(0xc8)]=_0x390193[_0x5648fa(0xae)]),_0x13a6de[_0x5648fa(0x9a)]===_0x5648fa(0xde)&&_0x1d8893['id']&&(_0x1d8893['id']=_0x1d8893['id']+_0x4ba84d['idSuffix']),Object[_0x5648fa(0x90)](_0x1d8893)['forEach'](([_0x45ab0c,_0x2fa0c1])=>{const _0x11b120=_0x5648fa;_0x45ab0c===_0x11b120(0xde)&&typeof _0x2fa0c1==_0x11b120(0xda)&&(_0x1d8893[_0x45ab0c]=_0x2fa0c1['replace'](/url\(#(.*)\)/,'url(#$1'+_0x4ba84d[_0x11b120(0x11d)]+')'));});const {defIds:_0x2401f8}=_0x4ba84d;return!_0x2401f8||_0x2401f8['length']===0x0||(_0x13a6de['tag']==='use'&&_0x1d8893[_0x5648fa(0x8b)]&&(_0x1d8893[_0x5648fa(0x8b)]=_0x1d8893[_0x5648fa(0x8b)]+_0x4ba84d[_0x5648fa(0x11d)]),Object[_0x5648fa(0x90)](_0x1d8893)[_0x5648fa(0xab)](([_0xa60488,_0x4c1517])=>{const _0x338c65=_0x5648fa;typeof _0x4c1517==_0x338c65(0xda)&&(_0x1d8893[_0xa60488]=_0x4c1517[_0x338c65(0x102)](/url\(#(.*)\)/,'url(#$1'+_0x4ba84d[_0x338c65(0x11d)]+')'));})),_0x1d8893;}function F(_0x481f07,_0x2edea9){const _0x1c1367=_0x146de2;var _0x19b682;const {defIds:_0x1df126}=_0x2edea9;return!_0x1df126||_0x1df126['length']===0x0?_0x481f07:_0x481f07[_0x1c1367(0x9a)]===_0x1c1367(0x11a)&&((_0x19b682=_0x481f07[_0x1c1367(0xc9)])!=null&&_0x19b682[_0x1c1367(0x126)])?{..._0x481f07,'children':_0x481f07[_0x1c1367(0xc9)]['map'](_0x47eedc=>typeof _0x47eedc[_0x1c1367(0x112)]['id']==_0x1c1367(0xda)&&_0x1df126&&_0x1df126['includes'](_0x47eedc[_0x1c1367(0x112)]['id'])?{..._0x47eedc,'attrs':{..._0x47eedc[_0x1c1367(0x112)],'id':_0x47eedc['attrs']['id']+_0x2edea9[_0x1c1367(0x11d)]}}:_0x47eedc)}:_0x481f07;}function H(){const _0x37667a=_0x146de2;return Math['random']()[_0x37667a(0x8e)](0x24)['substring'](0x2,0x8);}x[_0x146de2(0x13a)]=_0x146de2(0x12e);const V={'tag':_0x146de2(0xa2),'attrs':{'xmlns':_0x146de2(0xe3),'fill':_0x146de2(0xc3),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x146de2(0xa7)},'children':[{'tag':_0x146de2(0x91),'attrs':{'fill':_0x146de2(0xb0),'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':_0x146de2(0x91),'attrs':{'fill':_0x146de2(0xb0),'d':_0x146de2(0xfe),'fillRule':_0x146de2(0x87),'clipRule':'evenodd'}}]},R=v[_0x146de2(0xb3)](function(_0xf86e26,_0x301570){const _0x1c8c8b=_0x146de2;return v[_0x1c8c8b(0x8a)](x,Object[_0x1c8c8b(0x80)]({},_0xf86e26,{'id':_0x1c8c8b(0x110),'ref':_0x301570,'icon':V}));});R['displayName']=_0x146de2(0x123);class E extends o[_0x146de2(0x12b)]{constructor(){super(...arguments),_(this,'_sharedOperations',new Set()),_(this,'_reporters',new Set());}[_0x146de2(0xff)](_0x4c5e77){const _0x26941b=_0x146de2;return this[_0x26941b(0xc2)]['add'](_0x4c5e77),o[_0x26941b(0x122)](()=>this[_0x26941b(0xc2)][_0x26941b(0x13b)](_0x4c5e77));}[_0x146de2(0xb6)](_0x3979f0){const _0x2aa6b7=_0x146de2;return this[_0x2aa6b7(0x9f)][_0x2aa6b7(0xd9)](_0x3979f0),o[_0x2aa6b7(0x122)](()=>this[_0x2aa6b7(0x9f)]['delete'](_0x3979f0));}[_0x146de2(0xb5)](_0x34032f){const _0x2f89f2=_0x146de2;return this[_0x2f89f2(0xc2)][_0x2f89f2(0x11b)](_0x34032f);}[_0x146de2(0x138)](_0x5de52c){const _0x44299e=_0x146de2;return Array[_0x44299e(0x81)](this[_0x44299e(0x9f)])[_0x44299e(0x117)](_0x2ba9d8=>_0x2ba9d8(_0x5de52c));}}var M=Object[_0x146de2(0xe8)],P=(_0x149566,_0x36095f,_0x1958f3,_0x41b6ce)=>{const _0x9b4230=_0x146de2;for(var _0xa44610=_0x41b6ce>0x1?void 0x0:_0x41b6ce?M(_0x36095f,_0x1958f3):_0x36095f,_0x12cdce=_0x149566[_0x9b4230(0x126)]-0x1,_0x4ae8ec;_0x12cdce>=0x0;_0x12cdce--)(_0x4ae8ec=_0x149566[_0x12cdce])&&(_0xa44610=_0x4ae8ec(_0xa44610)||_0xa44610);return _0xa44610;},S=(_0x39ee51,_0x141642)=>(_0x4b3549,_0x5be8a4)=>_0x141642(_0x4b3549,_0x5be8a4,_0x39ee51);exports[_0x146de2(0xbb)]=class extends o[_0x146de2(0x9b)]{constructor(_0xfee62,_0x456659,_0x28e7e3){const _0x2c1a11=_0x146de2;super(),_(this,'_entities',new Map()),(this[_0x2c1a11(0x9c)]=_0xfee62,this[_0x2c1a11(0xd2)]=_0x456659,this[_0x2c1a11(0x7c)]=_0x28e7e3,this[_0x2c1a11(0x140)]());}async[_0x146de2(0xea)](_0x2f7b55){const _0x3e906c=_0x146de2;return this[_0x3e906c(0x11f)][_0x3e906c(0x11b)](_0x2f7b55)||await this[_0x3e906c(0xef)](_0x2f7b55),this[_0x3e906c(0x11f)][_0x3e906c(0xf0)](_0x2f7b55);}[_0x146de2(0xdb)](_0x2495a5){const _0x40a25f=_0x146de2;var _0x1ba0ed;return(_0x1ba0ed=this[_0x40a25f(0x11f)][_0x40a25f(0xf0)](_0x2495a5))!=null?_0x1ba0ed:null;}[_0x146de2(0x140)](){const _0xdf7677=_0x146de2;this[_0xdf7677(0x9c)][_0xdf7677(0x96)](o['UniverInstanceType'][_0xdf7677(0xaf)])[_0xdf7677(0x136)](I[_0xdf7677(0x101)](this[_0xdf7677(0xa8)]))[_0xdf7677(0x84)](async _0x54f63a=>{const _0x240fdd=_0xdf7677,_0xe9ee3d=_0x54f63a[_0x240fdd(0xec)]();this['_entities'][_0x240fdd(0x11b)](_0xe9ee3d)||this['_startLiveShareCoordinator'](_0xe9ee3d);}),this[_0xdf7677(0x9c)][_0xdf7677(0xad)](o[_0xdf7677(0xbf)][_0xdf7677(0xaf)])[_0xdf7677(0x136)](I[_0xdf7677(0x101)](this[_0xdf7677(0xa8)]))['subscribe'](_0x30e12f=>{const _0x55211a=_0xdf7677,_0x5ac1b5=_0x30e12f[_0x55211a(0xec)](),_0x25190a=this[_0x55211a(0x11f)][_0x55211a(0xf0)](_0x5ac1b5);_0x25190a==null||_0x25190a[_0x55211a(0xf2)]();});}async['_startLiveShareCoordinator'](_0x2bb766){const _0x663060=_0x146de2,_0xb3aeb7=await this[_0x663060(0x7c)][_0x663060(0x7b)](_0x2bb766),_0x5dd7dd=this['_injector'][_0x663060(0xfb)](exports[_0x663060(0x6e)],_0x2bb766,_0xb3aeb7);return _0x5dd7dd[_0x663060(0x141)](),this[_0x663060(0x11f)]['set'](_0x2bb766,_0x5dd7dd),_0x5dd7dd;}},exports[_0x146de2(0xbb)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x146de2(0xb2)](o[_0x146de2(0x137)])),S(0x2,o[_0x146de2(0xb2)](b['CollaborationSessionService']))],exports[_0x146de2(0xbb)]);var u=(_0x470af8=>(_0x470af8[_0x146de2(0x9d)]=_0x146de2(0xac),_0x470af8[_0x146de2(0x114)]=_0x146de2(0x10a),_0x470af8[_0x146de2(0x134)]=_0x146de2(0x135),_0x470af8['NOT_FOLLOWING']='not-following',_0x470af8[_0x146de2(0x111)]=_0x146de2(0xe1),_0x470af8))(u||{});const k=_0x146de2(0x11c),q=0xc8;exports[_0x146de2(0x6e)]=class extends o['RxDisposable']{constructor(_0x27171c,_0x1ad537,_0x461872,_0x21587c,_0x263f73){const _0x44b0af=_0x146de2;super(),_(this,_0x44b0af(0xcb),new O[(_0x44b0af(0x131))](_0x44b0af(0x10a))),_(this,'status$',this[_0x44b0af(0xcb)][_0x44b0af(0xf6)]()),_(this,_0x44b0af(0x140),!0x1),_(this,_0x44b0af(0x77),null),_(this,_0x44b0af(0x88),null),(this['_unitID']=_0x27171c,this[_0x44b0af(0x85)]=_0x1ad537,this[_0x44b0af(0xbc)]=_0x461872,this[_0x44b0af(0x103)]=_0x21587c,this[_0x44b0af(0x12c)]=_0x263f73);}get[_0x146de2(0xc1)](){const _0x4207a7=_0x146de2;return this[_0x4207a7(0xcb)][_0x4207a7(0xf4)]();}[_0x146de2(0xf2)](){const _0x3f8d61=_0x146de2;var _0x46eaff;(_0x46eaff=this[_0x3f8d61(0x77)])==null||_0x46eaff[_0x3f8d61(0xf2)](),this[_0x3f8d61(0xcb)][_0x3f8d61(0xba)](_0x3f8d61(0x10a)),this[_0x3f8d61(0xcb)]['complete']();}[_0x146de2(0xb8)](){const _0x2b9cfe=_0x146de2;return this[_0x2b9cfe(0xc1)];}[_0x146de2(0x141)](){const _0x5442c0=_0x146de2;this['_init']||(this[_0x5442c0(0x140)]=!0x0,this[_0x5442c0(0x85)][_0x5442c0(0xc5)][_0x5442c0(0x136)](I['takeUntil'](this[_0x5442c0(0xa8)]))[_0x5442c0(0x84)](_0x3c7a4a=>{const _0x177dd7=_0x5442c0;switch(_0x3c7a4a){case b[_0x177dd7(0xcc)][_0x177dd7(0x9d)]:this[_0x177dd7(0xc4)]();break;case b[_0x177dd7(0xcc)]['ONLINE']:this['_handleOnline']();break;}}),this[_0x5442c0(0x85)][_0x5442c0(0x72)]['pipe'](I[_0x5442c0(0x101)](this[_0x5442c0(0xa8)]))[_0x5442c0(0x84)](_0x5e0864=>{const _0x52d413=_0x5442c0,{eventID:_0x2d1a95}=_0x5e0864;switch(_0x2d1a95){case d[_0x52d413(0xf1)][_0x52d413(0xa1)]:this['_handleNewHost'](_0x5e0864);break;case d['CollaborationEvent'][_0x52d413(0xe7)]:this[_0x52d413(0xe6)](_0x5e0864);break;case d['CollaborationEvent'][_0x52d413(0xd8)]:this[_0x52d413(0xa5)]();break;case d['CollaborationEvent']['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x5e0864);break;}}));}['tryStartPresenting'](){const _0x47e2f1=_0x146de2;this[_0x47e2f1(0x85)]['send']({'eventID':d[_0x47e2f1(0xf1)][_0x47e2f1(0x105)],'data':{'unitID':this[_0x47e2f1(0xe5)],'userID':this['_collabSession'][_0x47e2f1(0xca)]()}},this[_0x47e2f1(0xe5)]);}[_0x146de2(0x97)](){const _0x1ec38e=_0x146de2;this[_0x1ec38e(0xc1)]===_0x1ec38e(0xe1)&&(this['_status$'][_0x1ec38e(0xba)](_0x1ec38e(0x10a)),this['_collabSession'][_0x1ec38e(0x94)]({'eventID':d[_0x1ec38e(0xf1)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x1ec38e(0xe5)]}},this['_unitID']));}[_0x146de2(0x71)](){const _0x758bcf=_0x146de2;this[_0x758bcf(0xc1)]==='not-following'&&(this['_status$'][_0x758bcf(0xba)](_0x758bcf(0x135)),this['_startFollowing']());}['stopFollowing'](){const _0x44bd2c=_0x146de2;this[_0x44bd2c(0xc1)]===_0x44bd2c(0x135)&&this['_stopFollowing']();}[_0x146de2(0x120)](_0xce91d0){const _0xb4f4c=_0x146de2,{presenter:_0x213d4c}=_0xce91d0[_0xb4f4c(0xd5)],_0xd8c79=this['_collabSession'][_0xb4f4c(0xca)]();this[_0xb4f4c(0x88)]=_0x213d4c,_0x213d4c===_0xd8c79?(this[_0xb4f4c(0x83)](),this['_startPresenting']()):this[_0xb4f4c(0xc1)]!==_0xb4f4c(0xee)&&(this[_0xb4f4c(0xa6)](),this['_startFollowing']());}[_0x146de2(0xce)](){const _0xa47f58=_0x146de2,_0x12cd2a={'eventID':d[_0xa47f58(0xf1)][_0xa47f58(0x78)]};this[_0xa47f58(0x85)][_0xa47f58(0x94)](_0x12cd2a,this[_0xa47f58(0xe5)]);}[_0x146de2(0xa5)](){const _0x27cb39=_0x146de2;this[_0x27cb39(0x88)]=null,this['_status']!==_0x27cb39(0xe1)&&this[_0x27cb39(0x99)]();}[_0x146de2(0xe9)](_0x5514dd){const _0x3540c4=_0x146de2;if(this[_0x3540c4(0xc1)]===_0x3540c4(0x135)&&this[_0x3540c4(0x88)]===_0x5514dd[_0x3540c4(0xd5)][_0x3540c4(0xeb)]){const _0x51ebfa=d[_0x3540c4(0x74)](_0x5514dd[_0x3540c4(0xd5)])[_0x3540c4(0x8f)][_0x3540c4(0x7e)]()['find'](_0x2a622b=>_0x2a622b['id']===C[_0x3540c4(0x13d)]['id']);if(_0x51ebfa){const _0x512690=_0x51ebfa[_0x3540c4(0x100)][_0x3540c4(0x128)],_0x4ded6d=_0x51ebfa[_0x3540c4(0x100)][_0x3540c4(0x86)]['id'];setTimeout(()=>{const _0x4f162c=_0x3540c4;this[_0x4f162c(0x12c)][_0x4f162c(0xfd)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x512690,'subUnitId':_0x4ded6d},{'fromCollab':!0x0});});}}}[_0x146de2(0xc0)](){const _0x18232c=_0x146de2;this[_0x18232c(0xcb)]['next']('presenting');const _0x45e1a4=new Map(),_0x407a7e=this[_0x18232c(0x77)]=new o[(_0x18232c(0xbe))]();_0x407a7e['add'](o['toDisposable'](()=>{const _0x3e8369=_0x18232c;_0x45e1a4[_0x3e8369(0xab)](_0xcdca93=>_0xcdca93[_0x3e8369(0x139)]()),_0x45e1a4['clear']();})),_0x407a7e[_0x18232c(0xd9)](this[_0x18232c(0x12c)][_0x18232c(0xdd)](_0x3949eb=>{const _0x3cb5f5=_0x18232c;var _0x547d7e;if(_0x3949eb[_0x3cb5f5(0x118)]!==o['CommandType']['OPERATION']||!this[_0x3cb5f5(0x103)][_0x3cb5f5(0xb5)](_0x3949eb['id']))return;const {id:_0x59c107}=_0x3949eb;let _0x34c747;_0x45e1a4['has'](_0x59c107)?_0x34c747=_0x45e1a4[_0x3cb5f5(0xf0)](_0x59c107):(_0x34c747=new O[(_0x3cb5f5(0xbd))](),_0x45e1a4[_0x3cb5f5(0x82)](_0x59c107,_0x34c747),_0x34c747['pipe'](I['throttleTime']((_0x547d7e=this['_configService'][_0x3cb5f5(0x130)](k))!=null?_0x547d7e:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3cb5f5(0x84)](_0x341bac=>{const _0x4a40b1=_0x3cb5f5;this[_0x4a40b1(0x85)][_0x4a40b1(0x94)]({'eventID':d['CollaborationEvent'][_0x4a40b1(0xe7)],'data':{'unitID':this[_0x4a40b1(0xe5)],'operations':{[_0x341bac['id']]:{'id':_0x341bac['id'],'params':JSON[_0x4a40b1(0xa9)](_0x341bac[_0x4a40b1(0x100)])}}}},this['_unitID']);})),_0x34c747[_0x3cb5f5(0xba)](_0x3949eb);})),this[_0x18232c(0x103)]['getInitialStates'](this[_0x18232c(0xe5)])[_0x18232c(0xab)](_0x111f8b=>this[_0x18232c(0x85)][_0x18232c(0x94)]({'eventID':d[_0x18232c(0xf1)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x111f8b['id']]:{'id':_0x111f8b['id'],'params':JSON['stringify'](_0x111f8b[_0x18232c(0x100)])}}}},this[_0x18232c(0xe5)]));}['_stopPresenting'](){const _0x32b682=_0x146de2;var _0x5644ab;this[_0x32b682(0xcb)][_0x32b682(0xba)](_0x32b682(0x10a)),(_0x5644ab=this['_commandDisposable'])==null||_0x5644ab[_0x32b682(0xf2)](),this[_0x32b682(0x77)]=null;}[_0x146de2(0x116)](){const _0x453827=_0x146de2;var _0x255b63;(_0x255b63=this['_commandDisposable'])==null||_0x255b63[_0x453827(0xf2)](),this[_0x453827(0xcb)]['next'](_0x453827(0x135));}['_beIdle'](){const _0x4902d6=_0x146de2;var _0x378a39;this[_0x4902d6(0xcb)][_0x4902d6(0xba)]('idle'),(_0x378a39=this['_commandDisposable'])==null||_0x378a39[_0x4902d6(0xf2)](),this[_0x4902d6(0x77)]=null;}[_0x146de2(0x83)](){const _0x146463=_0x146de2;var _0x36da4e;this[_0x146463(0xcb)][_0x146463(0xba)](_0x146463(0xee)),(_0x36da4e=this[_0x146463(0x77)])==null||_0x36da4e[_0x146463(0xf2)]();}[_0x146de2(0xe6)](_0x4fe118){const _0x29f772=_0x146de2;if([_0x29f772(0xe1),'not-following',_0x29f772(0xac)][_0x29f772(0xdf)](this[_0x29f772(0xc1)])||!_0x4fe118[_0x29f772(0xd5)][_0x29f772(0xe4)]||_0x4fe118['data'][_0x29f772(0xe4)]===this[_0x29f772(0x85)]['getMemberID']())return;this[_0x29f772(0xc1)]==='idle'&&this[_0x29f772(0x116)]();const _0x2ff25e=_0x4fe118[_0x29f772(0xd5)][_0x29f772(0xb1)];Object['values'](_0x2ff25e)[_0x29f772(0xab)](_0x9c1c4d=>{const _0x1c35c0=_0x29f772;this[_0x1c35c0(0x12c)][_0x1c35c0(0xfd)](_0x9c1c4d['id'],_0x9c1c4d[_0x1c35c0(0x100)]?JSON[_0x1c35c0(0x9e)](_0x9c1c4d[_0x1c35c0(0x100)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x48ccf9=_0x146de2;var _0x1718d9;this[_0x48ccf9(0xcb)]['next'](_0x48ccf9(0xac)),(_0x1718d9=this['_commandDisposable'])==null||_0x1718d9['dispose']();}[_0x146de2(0x12a)](){const _0x3fb297=_0x146de2;this[_0x3fb297(0xcb)][_0x3fb297(0xba)](_0x3fb297(0x10a)),this['_fetchOperations']();}},exports['LiveShareCoordinator']=P([S(0x2,o['IConfigService']),S(0x3,o[_0x146de2(0xb2)](E)),S(0x4,o[_0x146de2(0x13e)])],exports[_0x146de2(0x6e)]);function $(){const _0x3bda8f=_0x146de2,_0x2f0e65=p[_0x3bda8f(0xf7)](exports['LiveShareController']),_0x4a1a15=p['useDependency'](o[_0x3bda8f(0xd6)]),_0x5a257c=p[_0x3bda8f(0xd7)](()=>_0x4a1a15['getCurrentTypeOfUnit$'](o[_0x3bda8f(0xbf)][_0x3bda8f(0xaf)]),void 0x0,!0x1,[]),[_0x1dd321,_0x1bc584]=v['useState'](null),[_0x18db90,_0x4e04bd]=v[_0x3bda8f(0xd0)](u[_0x3bda8f(0x114)]),_0x4ca4be=v[_0x3bda8f(0x75)](null);return v[_0x3bda8f(0x142)](()=>(_0x5a257c&&_0x2f0e65[_0x3bda8f(0xea)](_0x5a257c[_0x3bda8f(0xec)]())['then'](_0xfdd285=>{const _0xec746c=_0x3bda8f;_0x1bc584(_0xfdd285),_0x4ca4be['current']=_0xfdd285[_0xec746c(0xa0)]['subscribe'](_0x283e26=>{_0x4e04bd(_0x283e26);});}),()=>{const _0x54e46d=_0x3bda8f;var _0x19ef0c;(_0x19ef0c=_0x4ca4be[_0x54e46d(0x106)])==null||_0x19ef0c[_0x54e46d(0xd1)](),_0x4ca4be['current']=null;}),[_0x5a257c,_0x2f0e65]),_0x1dd321?l[_0x3bda8f(0x98)](f['Dropdown'],{'align':'end','disabled':_0x18db90===u[_0x3bda8f(0x9d)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l['jsx'](W,{'status':_0x18db90,'coordinator':_0x1dd321}),'children':l['jsx'](_0x3bda8f(0xf5),{'className':f[_0x3bda8f(0x6f)](_0x3bda8f(0xfc),{'univer-cursor-not-allowed':_0x18db90===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x18db90!==u[_0x3bda8f(0x9d)]}),'type':'button','children':l[_0x3bda8f(0x98)](R,{'className':_0x3bda8f(0x7a)})})}):null;}function W(_0x460dae){const _0xaabf42=_0x146de2,{status:_0x301960,coordinator:_0x5c5714}=_0x460dae;switch(_0x301960){case u[_0xaabf42(0x114)]:return l[_0xaabf42(0x98)](G,{'coordinator':_0x5c5714});case u[_0xaabf42(0x134)]:return l[_0xaabf42(0x98)](B,{'coordinator':_0x5c5714});case u['NOT_FOLLOWING']:return l[_0xaabf42(0x98)](Y,{'coordinator':_0x5c5714});case u[_0xaabf42(0x9d)]:return l[_0xaabf42(0x98)](J,{});case u[_0xaabf42(0x111)]:return l[_0xaabf42(0x98)](Z,{'coordinator':_0x5c5714});default:return null;}}function G(_0x3cf337){const _0x2e0aba=_0x146de2,{coordinator:_0x3d9ec6}=_0x3cf337;return l[_0x2e0aba(0x125)](l[_0x2e0aba(0x132)],{'children':[l[_0x2e0aba(0x98)](_0x2e0aba(0xa4),{'className':_0x2e0aba(0x12f),'children':'Present\x20this\x20document'}),l[_0x2e0aba(0x98)](f[_0x2e0aba(0xf9)],{'onClick':()=>_0x3d9ec6[_0x2e0aba(0xb7)](),'children':_0x2e0aba(0x109)})]});}function B(_0x45ec86){const _0x33980c=_0x146de2,{coordinator:_0x589665}=_0x45ec86;return l[_0x33980c(0x125)](l['Fragment'],{'children':[l[_0x33980c(0x98)]('div',{'className':_0x33980c(0x12f),'children':'You\x27re\x20following\x20the\x20presenter'}),l['jsx'](f[_0x33980c(0xf9)],{'onClick':()=>_0x589665['stopFollowing'](),'children':_0x33980c(0xb9)})]});}function Y(_0x4153b4){const _0x492fa3=_0x146de2,{coordinator:_0x71ec41}=_0x4153b4;return l[_0x492fa3(0x125)](l[_0x492fa3(0x132)],{'children':[l[_0x492fa3(0x98)](_0x492fa3(0xa4),{'className':_0x492fa3(0x12f),'children':_0x492fa3(0xc6)}),l['jsx'](f[_0x492fa3(0xf9)],{'variant':'text','onClick':()=>_0x71ec41[_0x492fa3(0x71)](),'children':_0x492fa3(0x13f)})]});}function Z(_0x2061f7){const _0x38486e=_0x146de2,{coordinator:_0x5ebfc3}=_0x2061f7;return l[_0x38486e(0x125)](l[_0x38486e(0x132)],{'children':[l[_0x38486e(0x98)]('div',{'className':_0x38486e(0x12f),'children':_0x38486e(0x133)}),l[_0x38486e(0x98)](f[_0x38486e(0xf9)],{'variant':_0x38486e(0x113),'onClick':()=>_0x5ebfc3[_0x38486e(0x97)](),'children':_0x38486e(0xaa)})]});}function J(){const _0x3f5bff=_0x146de2;return l[_0x3f5bff(0x98)](l[_0x3f5bff(0x132)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x146de2(0xe8)],z=(_0x127cdb,_0x45ffaa,_0x19c527,_0xf723df)=>{for(var _0x5780c5=_0xf723df>0x1?void 0x0:_0xf723df?K(_0x45ffaa,_0x19c527):_0x45ffaa,_0x5baa74=_0x127cdb['length']-0x1,_0x235dc6;_0x5baa74>=0x0;_0x5baa74--)(_0x235dc6=_0x127cdb[_0x5baa74])&&(_0x5780c5=_0x235dc6(_0x5780c5)||_0x5780c5);return _0x5780c5;},L=(_0xf1afd0,_0x36f6de)=>(_0x2c0e1a,_0x11f536)=>_0x36f6de(_0x2c0e1a,_0x11f536,_0xf1afd0);exports['DesktopLiveShareController']=class extends o[_0x146de2(0x12b)]{constructor(_0x91b287,_0x4a54df){const _0x552749=_0x146de2;super(),this[_0x552749(0xd2)]=_0x91b287,this['_uiPartsService']=_0x4a54df,this[_0x552749(0xdc)]();}['_mountLiveShare'](){const _0x381622=_0x146de2;this[_0x381622(0x70)](this[_0x381622(0xf3)][_0x381622(0x10f)](p[_0x381622(0x79)][_0x381622(0x92)],()=>p[_0x381622(0x13c)]($,this[_0x381622(0xd2)])));}},exports[_0x146de2(0xf8)]=z([L(0x0,o[_0x146de2(0xb2)](o[_0x146de2(0x137)])),L(0x1,p[_0x146de2(0xe2)])],exports[_0x146de2(0xf8)]);const Q='live-share.config',w={};var X=Object[_0x146de2(0xe8)],ee=(_0x3512d6,_0x3b1654,_0x8ebb0a,_0x15a270)=>{for(var _0x5bc4e7=_0x15a270>0x1?void 0x0:_0x15a270?X(_0x3b1654,_0x8ebb0a):_0x3b1654,_0xf1d583=_0x3512d6['length']-0x1,_0x37e892;_0xf1d583>=0x0;_0xf1d583--)(_0x37e892=_0x3512d6[_0xf1d583])&&(_0x5bc4e7=_0x37e892(_0x5bc4e7)||_0x5bc4e7);return _0x5bc4e7;},te=(_0x8afd3a,_0x4002c5)=>(_0x12a391,_0x123a25)=>_0x4002c5(_0x12a391,_0x123a25,_0x8afd3a);let m=class extends o[_0x146de2(0x12b)]{constructor(_0x348c07){const _0x4c2bfd=_0x146de2;super(),this[_0x4c2bfd(0x103)]=_0x348c07,this['_init']();}[_0x146de2(0x140)](){const _0x503166=_0x146de2;[D['SetZoomRatioOperation']['id'],D['SetScrollOperation']['id'],C[_0x503166(0x7f)]['id']]['forEach'](_0x59a074=>{const _0x18d7dd=_0x503166;this[_0x18d7dd(0x70)](this[_0x18d7dd(0x103)]['registerSharedOperation'](_0x59a074));});}};function _0x5376(){const _0x28c44f=['string','getLiveShareCoordinatorSync','_mountLiveShare','onCommandExecuted','mask','includes','symbol','presenting','IUIPartsService','http://www.w3.org/2000/svg','presenter','_unitID','_handleOperation','LIVESHARE_OPERATION','getOwnPropertyDescriptor','_handleNewChangeSets','getLiveShareCoordinator','memberID','getUnitId','setConfig','not-following','_startLiveShareCoordinator','get','CollaborationEvent','dispose','_uiPartsService','getValue','button','asObservable','useDependency','DesktopLiveShareController','Button','UniverLiveSharePlugin','createInstance','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','executeCommand','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','registerSharedOperation','params','takeUntil','replace','_liveShareService','Module','LIVESHARE_REQUEST_HOST','current','registerDependencies','merge','Start','idle','UNIVER_UNKNOWN','UNIVER_LIVE_SHARE_PLUGIN','3481080OxVIKV','4WvXHnr','registerComponent','live-share-icon','PRESENTING','attrs','default','IDLE','UniverCollaborationClientPlugin','_startFollowing','map','type','IConfigService','defs','has','SAME_OPERATION_SHARE_INTERVAL','idSuffix','1063690DSeeJo','_entities','_handleNewHost','3blLIDq','toDisposable','LiveShareIcon','onStarting','jsxs','length','12107744lhwAhf','unitId','touchDependencies','_handleOnline','Disposable','_commandService','_config','UniverIcon','univer-mb-3\x20univer-w-full\x20univer-text-sm','getConfig','BehaviorSubject','Fragment','You\x27re\x20presenting\x20the\x20document','FOLLOWING','following','pipe','Injector','getInitialStates','complete','displayName','delete','connectInjector','InsertSheetMutation','ICommandService','Start\x20following','_init','init','useEffect','4728576jKvxOv','LiveShareCoordinator','clsx','disposeWithMe','startFollowing','event$','56YIxIsS','parseProtocolChangeset','useRef','defineProperty','_commandDisposable','LIVESHARE_FETCH_OPERATIONS','BuiltInUIPart','univer-size-4','requireSession','_collabSessionService','trim','reverse','SetWorksheetActiveOperation','assign','from','set','_stopFollowing','subscribe','_collabSession','sheet','evenodd','_presenter','onRendered','createElement','xlink:href','override','14527010Ssiree','toString','mutations','entries','path','HEADER_MENU','mergeOverrideWithDependencies','send','DependentOn','getTypeOfUnitAdded$','stopPresenting','jsx','_beIdle','tag','RxDisposable','_univerInstanceService','OFFLINE','parse','_reporters','status$','LIVESHARE_NEW_HOST','svg','LiveShareStatus','div','_handleTerminate','_stopPresenting','1em','dispose$','stringify','Stop\x20presenting','forEach','offline','getTypeOfUnitDisposed$','colorChannel1','UNIVER_SHEET','currentColor','operations','Inject','forwardRef','defIds','shouldShareOperation','registerInitialStateReporter','tryStartPresenting','getStatus','Stop\x20following','next','LiveShareController','_configService','Subject','DisposableCollection','UniverInstanceType','_startPresenting','_status','_sharedOperations','none','_handleOffline','sessionStatus$','You\x27re\x20not\x20following\x20the\x20presenter','univerjs-icon\x20univerjs-icon-','fill','children','getMemberID','_status$','SessionStatus','1370934ToPsLk','_fetchOperations','9PGNzOH','useState','unsubscribe','_injector','toStringTag','36126MnJYzn','data','IUniverInstanceService','useObservable','LIVESHARE_TERMINATE','add'];_0x5376=function(){return _0x28c44f;};return _0x5376();}m=ee([te(0x0,o[_0x146de2(0xb2)](E))],m);var ie=Object[_0x146de2(0x76)],se=Object[_0x146de2(0xe8)],ne=(_0x317205,_0x535483,_0x1b93c9)=>_0x535483 in _0x317205?ie(_0x317205,_0x535483,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b93c9}):_0x317205[_0x535483]=_0x1b93c9,re=(_0x39be84,_0x410db4,_0x4c4e74,_0x4f96d5)=>{for(var _0x17383c=_0x4f96d5>0x1?void 0x0:_0x4f96d5?se(_0x410db4,_0x4c4e74):_0x410db4,_0x31e2e4=_0x39be84['length']-0x1,_0x5e63cf;_0x31e2e4>=0x0;_0x31e2e4--)(_0x5e63cf=_0x39be84[_0x31e2e4])&&(_0x17383c=_0x5e63cf(_0x17383c)||_0x17383c);return _0x17383c;},N=(_0x3e86ad,_0x4e4683)=>(_0x31bf60,_0x835dd4)=>_0x4e4683(_0x31bf60,_0x835dd4,_0x3e86ad),A=(_0x25f980,_0x14bf26,_0x514f04)=>ne(_0x25f980,typeof _0x14bf26!=_0x146de2(0xe0)?_0x14bf26+'':_0x14bf26,_0x514f04);const oe=_0x146de2(0x10c);exports[_0x146de2(0xfa)]=class extends o['Plugin']{constructor(_0x3c3f12=w,_0x52e1ce,_0x2c8805){const _0x102121=_0x146de2;super(),this[_0x102121(0x12d)]=_0x3c3f12,this[_0x102121(0xd2)]=_0x52e1ce,this[_0x102121(0xbc)]=_0x2c8805;const {..._0x5dd218}=o[_0x102121(0x108)]({},w,this[_0x102121(0x12d)]);this[_0x102121(0xbc)][_0x102121(0xed)](Q,_0x5dd218);}[_0x146de2(0x124)](){const _0x36c6bf=_0x146de2;o[_0x36c6bf(0x107)](this[_0x36c6bf(0xd2)],o[_0x36c6bf(0x93)]([[E],[exports['LiveShareController']],[m],[exports[_0x36c6bf(0xf8)]]],this['_config'][_0x36c6bf(0x8c)])),o[_0x36c6bf(0x129)](this[_0x36c6bf(0xd2)],[[m]]);}[_0x146de2(0x89)](){const _0x43bfbb=_0x146de2;o[_0x43bfbb(0x129)](this[_0x43bfbb(0xd2)],[[exports['DesktopLiveShareController']]]);}},A(exports[_0x146de2(0xfa)],_0x146de2(0x118),o['UniverInstanceType'][_0x146de2(0x10b)]),A(exports[_0x146de2(0xfa)],'pluginName',oe),exports[_0x146de2(0xfa)]=re([o[_0x146de2(0x95)](b[_0x146de2(0x115)]),N(0x1,o[_0x146de2(0xb2)](o['Injector'])),N(0x2,o[_0x146de2(0x119)])],exports[_0x146de2(0xfa)]),exports['LiveShare']=$,exports['LiveShareService']=E,exports[_0x146de2(0xa3)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x15df1a=_0x4ee7;(function(_0x11bebc,_0x5d49bc){const _0x2d6039=_0x4ee7,_0x2f4f3a=_0x11bebc();while(!![]){try{const _0x1341a0=-parseInt(_0x2d6039(0xf6))/0x1*(-parseInt(_0x2d6039(0xed))/0x2)+-parseInt(_0x2d6039(0xf7))/0x3*(parseInt(_0x2d6039(0xfb))/0x4)+-parseInt(_0x2d6039(0x102))/0x5+-parseInt(_0x2d6039(0xfd))/0x6*(-parseInt(_0x2d6039(0x101))/0x7)+parseInt(_0x2d6039(0xf8))/0x8+-parseInt(_0x2d6039(0xf2))/0x9*(parseInt(_0x2d6039(0xf1))/0xa)+-parseInt(_0x2d6039(0xe6))/0xb;if(_0x1341a0===_0x5d49bc)break;else _0x2f4f3a['push'](_0x2f4f3a['shift']());}catch(_0x4b1da3){_0x2f4f3a['push'](_0x2f4f3a['shift']());}}}(_0x2b9d,0x5aa36));import{LiveShareController as _0x5786b5,LiveShareStatus as _0x58edfc}from'@univerjs-pro/live-share';function _0x4ee7(_0x2fdc37,_0x1b63a1){_0x2fdc37=_0x2fdc37-0xe5;const _0x2b9dab=_0x2b9d();let _0x4ee7ab=_0x2b9dab[_0x2fdc37];return _0x4ee7ab;}import{IRenderManagerService as _0x84d76}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x498c84}from'@univerjs/sheets';import{SetScrollOperation as _0x12a682}from'@univerjs/sheets-ui';import{FRange as _0x42ea79}from'@univerjs/sheets/facade';import{FUniver as _0x25caba,FEnum as _0x51510a}from'@univerjs/core/facade';class I extends _0x42ea79{[_0x15df1a(0xf4)](_0x388aa5,_0x46b2c6,_0x20ecc1,_0x5bf515,_0x10c7bd){const _0x3fb127=_0x15df1a,_0x4d937f=_0x388aa5['get'](_0x5786b5),_0x204a05=_0x388aa5[_0x3fb127(0x108)](_0x84d76),_0x5d51b2=_0x46b2c6[_0x3fb127(0xef)](),_0x9a40d0=_0x46b2c6['getActiveSheet'](),_0x5a2913=_0x4d937f[_0x3fb127(0xe9)](_0x5d51b2);(_0x5a2913==null?void 0x0:_0x5a2913[_0x3fb127(0xfa)]())!==_0x58edfc[_0x3fb127(0xf9)]||(_0x20ecc1[_0x3fb127(0xee)]()!==_0x9a40d0[_0x3fb127(0xee)]()&&this[_0x3fb127(0xf5)][_0x3fb127(0xfc)](_0x498c84['id'],{'unitId':_0x5d51b2,'subUnitId':_0x20ecc1['getSheetId']()}),!_0x204a05[_0x3fb127(0x107)](_0x5d51b2))||_0x10c7bd[_0x3fb127(0xfe)](_0x12a682['id'],{'unitId':_0x46b2c6[_0x3fb127(0xef)](),'sheetId':_0x20ecc1[_0x3fb127(0xee)](),'sheetViewStartRow':_0x5bf515[_0x3fb127(0xf0)],'sheetViewStartColumn':_0x5bf515[_0x3fb127(0xe8)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x2b9d(){const _0x1c89f4=['getLiveShareCoordinatorSync','startFollowing','No\x20active\x20workbook\x20found.','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','1389038ZEcSdo','getSheetId','getUnitId','startRow','1030YzCnPL','23049WXQRvH','_injector','_initialize','_commandService','1KGyuUL','42KOOOIo','5158840DqCruh','PRESENTING','getStatus','13316ucTOwd','executeCommand','5478ijuazh','syncExecuteCommand','extend','getId','1484GRfJuV','877220nxUoee','LiveShareStatusEnum','tryStartPresenting','stopFollowing','stopPresenting','getRenderById','get','getActiveWorkbook','7434273zYoibZ','getLiveShareStatus','startColumn'];_0x2b9d=function(){return _0x1c89f4;};return _0x2b9d();}_0x42ea79['extend'](I);class m extends _0x25caba{[_0x15df1a(0xe7)](){const _0x8fa4d1=_0x15df1a;var _0x2af9b3,_0x44d587;const _0x5c6cdb=this[_0x8fa4d1(0xf3)][_0x8fa4d1(0x108)](_0x5786b5),_0x29c6ee=(_0x2af9b3=this[_0x8fa4d1(0xe5)]())==null?void 0x0:_0x2af9b3[_0x8fa4d1(0x100)]();if(!_0x29c6ee)throw new Error(_0x8fa4d1(0xeb));const _0x5e22fe=_0x5c6cdb[_0x8fa4d1(0xe9)](_0x29c6ee);return(_0x44d587=_0x5e22fe==null?void 0x0:_0x5e22fe['getStatus']())!=null?_0x44d587:_0x58edfc['IDLE'];}[_0x15df1a(0xea)](){const _0x3fe74f=_0x15df1a;var _0x5295ed;const _0x4a2468=this[_0x3fe74f(0xf3)]['get'](_0x5786b5),_0x5f7c63=(_0x5295ed=this[_0x3fe74f(0xe5)]())==null?void 0x0:_0x5295ed[_0x3fe74f(0x100)]();if(!_0x5f7c63)throw new Error(_0x3fe74f(0xeb));const _0x19f351=_0x4a2468[_0x3fe74f(0xe9)](_0x5f7c63);if(!_0x19f351)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x19f351[_0x3fe74f(0xea)]();}[_0x15df1a(0x105)](){const _0x274919=_0x15df1a;var _0x128ca3;const _0x78379e=this[_0x274919(0xf3)]['get'](_0x5786b5),_0x2846f8=(_0x128ca3=this['getActiveWorkbook']())==null?void 0x0:_0x128ca3[_0x274919(0x100)]();if(!_0x2846f8)throw new Error(_0x274919(0xeb));const _0x369fd7=_0x78379e[_0x274919(0xe9)](_0x2846f8);if(!_0x369fd7)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x369fd7[_0x274919(0x105)]();}['startPresenting'](){const _0x3d078b=_0x15df1a;var _0x425dd3;const _0x104bc4=this[_0x3d078b(0xf3)][_0x3d078b(0x108)](_0x5786b5),_0x4c2eba=(_0x425dd3=this[_0x3d078b(0xe5)]())==null?void 0x0:_0x425dd3[_0x3d078b(0x100)]();if(!_0x4c2eba)throw new Error(_0x3d078b(0xeb));const _0x21f1f1=_0x104bc4[_0x3d078b(0xe9)](_0x4c2eba);if(!_0x21f1f1)throw new Error(_0x3d078b(0xec));_0x21f1f1[_0x3d078b(0x104)]();}['stopPresenting'](){const _0x442797=_0x15df1a;var _0x4b5262;const _0xda59a5=this[_0x442797(0xf3)][_0x442797(0x108)](_0x5786b5),_0x445d1f=(_0x4b5262=this[_0x442797(0xe5)]())==null?void 0x0:_0x4b5262[_0x442797(0x100)]();if(!_0x445d1f)throw new Error(_0x442797(0xeb));const _0x351499=_0xda59a5[_0x442797(0xe9)](_0x445d1f);if(!_0x351499)throw new Error(_0x442797(0xec));_0x351499[_0x442797(0x106)]();}}_0x25caba['extend'](m);class C extends _0x51510a{get[_0x15df1a(0x103)](){return _0x58edfc;}}_0x51510a[_0x15df1a(0xff)](C);
|
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 _0x94c2f4=_0x21c3;function _0x21c3(_0x446bb3,_0x18f90f){_0x446bb3=_0x446bb3-0x1d0;const _0x519940=_0x5199();let _0x21c38f=_0x519940[_0x446bb3];return _0x21c38f;}(function(_0x4c86f3,_0x134e2f){const _0x38792d=_0x21c3,_0x180f4e=_0x4c86f3();while(!![]){try{const _0x518ddf=-parseInt(_0x38792d(0x222))/0x1+parseInt(_0x38792d(0x247))/0x2+-parseInt(_0x38792d(0x21a))/0x3+-parseInt(_0x38792d(0x252))/0x4*(-parseInt(_0x38792d(0x24e))/0x5)+-parseInt(_0x38792d(0x237))/0x6*(-parseInt(_0x38792d(0x1fa))/0x7)+-parseInt(_0x38792d(0x206))/0x8+parseInt(_0x38792d(0x1f9))/0x9*(parseInt(_0x38792d(0x1d4))/0xa);if(_0x518ddf===_0x134e2f)break;else _0x180f4e['push'](_0x180f4e['shift']());}catch(_0x39cf1a){_0x180f4e['push'](_0x180f4e['shift']());}}}(_0x5199,0xdf6f1));var J=Object[_0x94c2f4(0x250)],K=(_0x37670d,_0x4433f6,_0x29d063)=>_0x4433f6 in _0x37670d?J(_0x37670d,_0x4433f6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29d063}):_0x37670d[_0x4433f6]=_0x29d063,u=(_0x548a32,_0x5e598a,_0xf6d060)=>K(_0x548a32,typeof _0x5e598a!=_0x94c2f4(0x279)?_0x5e598a+'':_0x5e598a,_0xf6d060);import{Disposable as _0x237410,toDisposable as _0x479776,IUniverInstanceService as _0x131adf,Inject as _0x39e2ff,Injector as _0x1af462,IConfigService as _0x1163db,ICommandService as _0x3fe997,RxDisposable as _0x3c244d,UniverInstanceType as _0x1edb56,DisposableCollection as _0x56d0d3,CommandType as _0x11ab87,DependentOn as _0x298814,Plugin as _0x1f099d,merge as _0x38fee5,registerDependencies as _0x20cdf0,mergeOverrideWithDependencies as _0x1c6eec,touchDependencies as _0x5e0f2d}from'@univerjs/core';import{useDependency as _0x1a3369,useObservable as _0x43c83b,IUIPartsService as _0x189af9,BuiltInUIPart as _0x54c386,connectInjector as _0x40daf7}from'@univerjs/ui';import{jsx as _0x3b2e8c,jsxs as _0x5a8b02,Fragment as _0x34fda9}from'react/jsx-runtime';import{Dropdown as _0x580ca5,clsx as _0x38bcb7,Button as _0x4bf6a0}from'@univerjs/design';import{useRef as _0x5302de,createElement as _0x4c6606,forwardRef as _0x13d357,useState as _0x24f563,useEffect as _0x1d9b38}from'react';import{CollaborationEvent as _0x117a17,parseProtocolChangeset as _0x1a1c61}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x12178f,SessionStatus as _0x2ec079,UniverCollaborationClientPlugin as _0x4883e2}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x109733,SetWorksheetActiveOperation as _0x45b437}from'@univerjs/sheets';import{BehaviorSubject as _0x5ee00e,Subject as _0x13c737}from'rxjs';import{takeUntil as _0x2cd887,throttleTime as _0x3e7564}from'rxjs/operators';import{SetZoomRatioOperation as _0x33d3cc,SetScrollOperation as _0x1ac8e2}from'@univerjs/sheets-ui';function k({ref:_0xb065e,..._0x3a7358}){const _0x361340=_0x94c2f4,{icon:_0x54010d,id:_0x1cfe5c,className:_0x190099,extend:_0x57bce0,..._0x488160}=_0x3a7358,_0x2d8fc4=(_0x361340(0x24a)+_0x1cfe5c+'\x20'+(_0x190099||''))[_0x361340(0x244)](),_0x37b877=_0x5302de('_'+Oe());return G(_0x54010d,''+_0x1cfe5c,{'defIds':_0x54010d[_0x361340(0x1d3)],'idSuffix':_0x37b877[_0x361340(0x26e)]},{'ref':_0xb065e,'className':_0x2d8fc4,..._0x488160},_0x57bce0);}function G(_0x240805,_0x41f09f,_0x555cdc,_0x1cc80c,_0x1bfed9){const _0x28632a=_0x94c2f4;return _0x4c6606(_0x240805[_0x28632a(0x269)],{'key':_0x41f09f,...be(_0x240805,_0x555cdc,_0x1bfed9),..._0x1cc80c},(Ee(_0x240805,_0x555cdc)[_0x28632a(0x20d)]||[])[_0x28632a(0x270)]((_0x1bddaa,_0x1f5413)=>G(_0x1bddaa,_0x41f09f+'-'+_0x240805['tag']+'-'+_0x1f5413,_0x555cdc,void 0x0,_0x1bfed9)));}function be(_0x320310,_0x2e634b,_0x158a5f){const _0x5cf614=_0x94c2f4,_0x1a26f2={..._0x320310['attrs']};_0x158a5f!=null&&_0x158a5f[_0x5cf614(0x227)]&&_0x1a26f2[_0x5cf614(0x239)]===_0x5cf614(0x227)&&(_0x1a26f2['fill']=_0x158a5f[_0x5cf614(0x227)]),_0x320310[_0x5cf614(0x269)]===_0x5cf614(0x208)&&_0x1a26f2['id']&&(_0x1a26f2['id']=_0x1a26f2['id']+_0x2e634b[_0x5cf614(0x260)]),Object['entries'](_0x1a26f2)[_0x5cf614(0x233)](([_0x55f103,_0x18e607])=>{const _0xe5660b=_0x5cf614;_0x55f103===_0xe5660b(0x208)&&typeof _0x18e607==_0xe5660b(0x1d8)&&(_0x1a26f2[_0x55f103]=_0x18e607[_0xe5660b(0x266)](/url\(#(.*)\)/,'url(#$1'+_0x2e634b['idSuffix']+')'));});const {defIds:_0x6c0053}=_0x2e634b;return!_0x6c0053||_0x6c0053['length']===0x0||(_0x320310[_0x5cf614(0x269)]===_0x5cf614(0x224)&&_0x1a26f2[_0x5cf614(0x238)]&&(_0x1a26f2[_0x5cf614(0x238)]=_0x1a26f2[_0x5cf614(0x238)]+_0x2e634b[_0x5cf614(0x260)]),Object[_0x5cf614(0x229)](_0x1a26f2)[_0x5cf614(0x233)](([_0x38bb32,_0x575f36])=>{const _0x106096=_0x5cf614;typeof _0x575f36==_0x106096(0x1d8)&&(_0x1a26f2[_0x38bb32]=_0x575f36[_0x106096(0x266)](/url\(#(.*)\)/,'url(#$1'+_0x2e634b[_0x106096(0x260)]+')'));})),_0x1a26f2;}function Ee(_0x41659d,_0x1cb916){const _0x2cab9c=_0x94c2f4;var _0x4249a2;const {defIds:_0x4e6d2b}=_0x1cb916;return!_0x4e6d2b||_0x4e6d2b['length']===0x0?_0x41659d:_0x41659d[_0x2cab9c(0x269)]===_0x2cab9c(0x22c)&&((_0x4249a2=_0x41659d[_0x2cab9c(0x20d)])!=null&&_0x4249a2[_0x2cab9c(0x234)])?{..._0x41659d,'children':_0x41659d[_0x2cab9c(0x20d)][_0x2cab9c(0x270)](_0x46dd25=>typeof _0x46dd25['attrs']['id']==_0x2cab9c(0x1d8)&&_0x4e6d2b&&_0x4e6d2b[_0x2cab9c(0x25f)](_0x46dd25[_0x2cab9c(0x20b)]['id'])?{..._0x46dd25,'attrs':{..._0x46dd25[_0x2cab9c(0x20b)],'id':_0x46dd25[_0x2cab9c(0x20b)]['id']+_0x1cb916[_0x2cab9c(0x260)]}}:_0x46dd25)}:_0x41659d;}function Oe(){const _0x4f1be8=_0x94c2f4;return Math[_0x4f1be8(0x255)]()[_0x4f1be8(0x219)](0x24)[_0x4f1be8(0x1e5)](0x2,0x8);}k[_0x94c2f4(0x241)]=_0x94c2f4(0x212);const we={'tag':_0x94c2f4(0x25c),'attrs':{'xmlns':_0x94c2f4(0x263),'fill':_0x94c2f4(0x1d1),'viewBox':_0x94c2f4(0x267),'width':_0x94c2f4(0x277),'height':_0x94c2f4(0x277)},'children':[{'tag':_0x94c2f4(0x25d),'attrs':{'fill':_0x94c2f4(0x258),'d':_0x94c2f4(0x235)}},{'tag':_0x94c2f4(0x25d),'attrs':{'fill':_0x94c2f4(0x258),'d':_0x94c2f4(0x26d),'fillRule':_0x94c2f4(0x236),'clipRule':_0x94c2f4(0x236)}}]},W=_0x13d357(function(_0x3fe056,_0x2cc369){const _0x3f646b=_0x94c2f4;return _0x4c6606(k,Object[_0x3f646b(0x1d5)]({},_0x3fe056,{'id':_0x3f646b(0x1fb),'ref':_0x2cc369,'icon':we}));});W[_0x94c2f4(0x241)]='LiveShareIcon';class L extends _0x237410{constructor(){const _0x5a0ee4=_0x94c2f4;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x5a0ee4(0x27b),new Set());}[_0x94c2f4(0x25a)](_0x1dec7d){const _0x4b7c09=_0x94c2f4;return this[_0x4b7c09(0x1ee)][_0x4b7c09(0x26f)](_0x1dec7d),_0x479776(()=>this[_0x4b7c09(0x1ee)][_0x4b7c09(0x25b)](_0x1dec7d));}[_0x94c2f4(0x25e)](_0xc19384){const _0x1e5cd8=_0x94c2f4;return this['_reporters']['add'](_0xc19384),_0x479776(()=>this['_reporters'][_0x1e5cd8(0x25b)](_0xc19384));}['shouldShareOperation'](_0x356b1e){const _0x3460c6=_0x94c2f4;return this[_0x3460c6(0x1ee)]['has'](_0x356b1e);}[_0x94c2f4(0x231)](_0x5d3542){const _0x4197ef=_0x94c2f4;return Array[_0x4197ef(0x1fe)](this[_0x4197ef(0x27b)])[_0x4197ef(0x270)](_0x3f3ad7=>_0x3f3ad7(_0x5d3542));}}var Ne=Object[_0x94c2f4(0x1e3)],Y=(_0x24e75c,_0x508cc0,_0x3de33b,_0x4de27e)=>{const _0x5a3bd5=_0x94c2f4;for(var _0x4fe054=_0x4de27e>0x1?void 0x0:_0x4de27e?Ne(_0x508cc0,_0x3de33b):_0x508cc0,_0x233d13=_0x24e75c[_0x5a3bd5(0x234)]-0x1,_0x9dc5a5;_0x233d13>=0x0;_0x233d13--)(_0x9dc5a5=_0x24e75c[_0x233d13])&&(_0x4fe054=_0x9dc5a5(_0x4fe054)||_0x4fe054);return _0x4fe054;},_=(_0x5ba021,_0x2dc522)=>(_0x103223,_0x4a42bd)=>_0x2dc522(_0x103223,_0x4a42bd,_0x5ba021);let S=class extends _0x3c244d{constructor(_0x11278b,_0x50b451,_0x33cd12){const _0x58aa65=_0x94c2f4;super(),u(this,_0x58aa65(0x272),new Map()),(this[_0x58aa65(0x245)]=_0x11278b,this['_injector']=_0x50b451,this[_0x58aa65(0x1da)]=_0x33cd12,this[_0x58aa65(0x1d2)]());}async[_0x94c2f4(0x274)](_0x30146d){const _0x6d15e1=_0x94c2f4;return this[_0x6d15e1(0x272)]['has'](_0x30146d)||await this[_0x6d15e1(0x23d)](_0x30146d),this['_entities'][_0x6d15e1(0x205)](_0x30146d);}[_0x94c2f4(0x228)](_0x4c17df){var _0x2e4ab1;return(_0x2e4ab1=this['_entities']['get'](_0x4c17df))!=null?_0x2e4ab1:null;}[_0x94c2f4(0x1d2)](){const _0x435494=_0x94c2f4;this['_univerInstanceService'][_0x435494(0x211)](_0x1edb56[_0x435494(0x275)])[_0x435494(0x246)](_0x2cd887(this[_0x435494(0x1fd)]))[_0x435494(0x202)](async _0xe3d952=>{const _0x288c8e=_0x435494,_0x3a31c9=_0xe3d952['getUnitId']();this['_entities']['has'](_0x3a31c9)||this[_0x288c8e(0x23d)](_0x3a31c9);}),this[_0x435494(0x245)][_0x435494(0x1e1)](_0x1edb56[_0x435494(0x275)])['pipe'](_0x2cd887(this[_0x435494(0x1fd)]))[_0x435494(0x202)](_0x45f7ac=>{const _0x59258f=_0x435494,_0x2aeb58=_0x45f7ac[_0x59258f(0x1f2)](),_0x4bb934=this[_0x59258f(0x272)]['get'](_0x2aeb58);_0x4bb934==null||_0x4bb934[_0x59258f(0x1f3)]();});}async['_startLiveShareCoordinator'](_0x488194){const _0x33a5b0=_0x94c2f4,_0x5d3691=await this['_collabSessionService'][_0x33a5b0(0x1f8)](_0x488194),_0x1de098=this[_0x33a5b0(0x204)][_0x33a5b0(0x1eb)](N,_0x488194,_0x5d3691);return _0x1de098[_0x33a5b0(0x225)](),this[_0x33a5b0(0x272)][_0x33a5b0(0x217)](_0x488194,_0x1de098),_0x1de098;}};S=Y([_(0x0,_0x131adf),_(0x1,_0x39e2ff(_0x1af462)),_(0x2,_0x39e2ff(_0x12178f))],S);var c=(_0x221161=>(_0x221161[_0x94c2f4(0x22a)]=_0x94c2f4(0x207),_0x221161['IDLE']=_0x94c2f4(0x1de),_0x221161['FOLLOWING']=_0x94c2f4(0x24b),_0x221161['NOT_FOLLOWING']='not-following',_0x221161['PRESENTING']=_0x94c2f4(0x209),_0x221161))(c||{});const Ce=_0x94c2f4(0x23b),De=0xc8;let N=class extends _0x3c244d{constructor(_0x3c6de8,_0x1e0d6a,_0x48a41f,_0x4d0548,_0x303acf){const _0x2a724f=_0x94c2f4;super(),u(this,'_status$',new _0x5ee00e(_0x2a724f(0x1de))),u(this,_0x2a724f(0x218),this[_0x2a724f(0x1f1)][_0x2a724f(0x223)]()),u(this,_0x2a724f(0x1d2),!0x1),u(this,_0x2a724f(0x1e7),null),u(this,'_presenter',null),(this['_unitID']=_0x3c6de8,this[_0x2a724f(0x20f)]=_0x1e0d6a,this[_0x2a724f(0x1d0)]=_0x48a41f,this[_0x2a724f(0x226)]=_0x4d0548,this[_0x2a724f(0x1fc)]=_0x303acf);}get[_0x94c2f4(0x21e)](){const _0x10c3e8=_0x94c2f4;return this[_0x10c3e8(0x1f1)][_0x10c3e8(0x278)]();}[_0x94c2f4(0x1f3)](){const _0x5ee6ab=_0x94c2f4;var _0x439748;(_0x439748=this[_0x5ee6ab(0x1e7)])==null||_0x439748[_0x5ee6ab(0x1f3)](),this[_0x5ee6ab(0x1f1)]['next'](_0x5ee6ab(0x1de)),this[_0x5ee6ab(0x1f1)][_0x5ee6ab(0x1f6)]();}[_0x94c2f4(0x230)](){return this['_status'];}['init'](){const _0x14d99f=_0x94c2f4;this[_0x14d99f(0x1d2)]||(this['_init']=!0x0,this[_0x14d99f(0x20f)][_0x14d99f(0x210)][_0x14d99f(0x246)](_0x2cd887(this[_0x14d99f(0x1fd)]))[_0x14d99f(0x202)](_0x41ffd8=>{const _0x5407dd=_0x14d99f;switch(_0x41ffd8){case _0x2ec079[_0x5407dd(0x22a)]:this[_0x5407dd(0x1dd)]();break;case _0x2ec079['ONLINE']:this[_0x5407dd(0x1f0)]();break;}}),this[_0x14d99f(0x20f)]['event$']['pipe'](_0x2cd887(this[_0x14d99f(0x1fd)]))[_0x14d99f(0x202)](_0x511b8f=>{const _0x2fbae5=_0x14d99f,{eventID:_0x43efde}=_0x511b8f;switch(_0x43efde){case _0x117a17['LIVESHARE_NEW_HOST']:this[_0x2fbae5(0x1e0)](_0x511b8f);break;case _0x117a17[_0x2fbae5(0x22b)]:this[_0x2fbae5(0x1db)](_0x511b8f);break;case _0x117a17[_0x2fbae5(0x201)]:this['_handleTerminate']();break;case _0x117a17['NEW_CHANGESETS']:this[_0x2fbae5(0x21d)](_0x511b8f);break;}}));}[_0x94c2f4(0x1ff)](){const _0x3ed1ef=_0x94c2f4;this[_0x3ed1ef(0x20f)][_0x3ed1ef(0x1e6)]({'eventID':_0x117a17['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3ed1ef(0x1d7)],'userID':this[_0x3ed1ef(0x20f)][_0x3ed1ef(0x256)]()}},this[_0x3ed1ef(0x1d7)]);}['stopPresenting'](){const _0x3e21c3=_0x94c2f4;this['_status']==='presenting'&&(this[_0x3e21c3(0x1f1)]['next'](_0x3e21c3(0x1de)),this['_collabSession'][_0x3e21c3(0x1e6)]({'eventID':_0x117a17['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x3e21c3(0x1d7)]));}[_0x94c2f4(0x1ef)](){const _0x1b7ca6=_0x94c2f4;this[_0x1b7ca6(0x21e)]===_0x1b7ca6(0x26b)&&(this[_0x1b7ca6(0x1f1)]['next'](_0x1b7ca6(0x24b)),this[_0x1b7ca6(0x216)]());}[_0x94c2f4(0x220)](){const _0x2ad836=_0x94c2f4;this[_0x2ad836(0x21e)]===_0x2ad836(0x24b)&&this[_0x2ad836(0x214)]();}[_0x94c2f4(0x1e0)](_0x3366e7){const _0x15fd2c=_0x94c2f4,{presenter:_0x3fa34a}=_0x3366e7[_0x15fd2c(0x215)],_0x3d7902=this[_0x15fd2c(0x20f)]['getMemberID']();this[_0x15fd2c(0x22f)]=_0x3fa34a,_0x3fa34a===_0x3d7902?(this[_0x15fd2c(0x214)](),this['_startPresenting']()):this[_0x15fd2c(0x21e)]!=='not-following'&&(this['_stopPresenting'](),this[_0x15fd2c(0x216)]());}[_0x94c2f4(0x21c)](){const _0x39d8a9=_0x94c2f4,_0x92349={'eventID':_0x117a17[_0x39d8a9(0x253)]};this['_collabSession']['send'](_0x92349,this['_unitID']);}[_0x94c2f4(0x254)](){const _0x3fc57f=_0x94c2f4;this[_0x3fc57f(0x22f)]=null,this[_0x3fc57f(0x21e)]!=='presenting'&&this[_0x3fc57f(0x249)]();}[_0x94c2f4(0x21d)](_0x4b135a){const _0x5e05f9=_0x94c2f4;if(this[_0x5e05f9(0x21e)]==='following'&&this[_0x5e05f9(0x22f)]===_0x4b135a[_0x5e05f9(0x215)][_0x5e05f9(0x23c)]){const _0x59abe1=_0x1a1c61(_0x4b135a[_0x5e05f9(0x215)])['mutations']['reverse']()[_0x5e05f9(0x1f4)](_0x2e3f06=>_0x2e3f06['id']===_0x109733['id']);if(_0x59abe1){const _0x3b2243=_0x59abe1[_0x5e05f9(0x26a)][_0x5e05f9(0x22d)],_0xfa0724=_0x59abe1[_0x5e05f9(0x26a)][_0x5e05f9(0x259)]['id'];setTimeout(()=>{const _0x2eaf2e=_0x5e05f9;this[_0x2eaf2e(0x1fc)][_0x2eaf2e(0x273)](_0x45b437['id'],{'unitId':_0x3b2243,'subUnitId':_0xfa0724},{'fromCollab':!0x0});});}}}[_0x94c2f4(0x21b)](){const _0x5c5dbd=_0x94c2f4;this[_0x5c5dbd(0x1f1)][_0x5c5dbd(0x1f7)]('presenting');const _0x3eb12d=new Map(),_0x54656=this[_0x5c5dbd(0x1e7)]=new _0x56d0d3();_0x54656[_0x5c5dbd(0x26f)](_0x479776(()=>{const _0xd23b2d=_0x5c5dbd;_0x3eb12d['forEach'](_0x4b4532=>_0x4b4532[_0xd23b2d(0x1f6)]()),_0x3eb12d[_0xd23b2d(0x264)]();})),_0x54656['add'](this[_0x5c5dbd(0x1fc)][_0x5c5dbd(0x257)](_0x516c6c=>{const _0x12b720=_0x5c5dbd;var _0x160f74;if(_0x516c6c[_0x12b720(0x23f)]!==_0x11ab87[_0x12b720(0x22e)]||!this['_liveShareService'][_0x12b720(0x1ea)](_0x516c6c['id']))return;const {id:_0x2e50cc}=_0x516c6c;let _0x42f196;_0x3eb12d[_0x12b720(0x242)](_0x2e50cc)?_0x42f196=_0x3eb12d[_0x12b720(0x205)](_0x2e50cc):(_0x42f196=new _0x13c737(),_0x3eb12d[_0x12b720(0x217)](_0x2e50cc,_0x42f196),_0x42f196[_0x12b720(0x246)](_0x3e7564((_0x160f74=this[_0x12b720(0x1d0)]['getConfig'](Ce))!=null?_0x160f74:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x12b720(0x202)](_0x22c8db=>{const _0x4d1d81=_0x12b720;this[_0x4d1d81(0x20f)][_0x4d1d81(0x1e6)]({'eventID':_0x117a17['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x22c8db['id']]:{'id':_0x22c8db['id'],'params':JSON[_0x4d1d81(0x251)](_0x22c8db[_0x4d1d81(0x26a)])}}}},this[_0x4d1d81(0x1d7)]);})),_0x42f196[_0x12b720(0x1f7)](_0x516c6c);})),this[_0x5c5dbd(0x226)][_0x5c5dbd(0x231)](this[_0x5c5dbd(0x1d7)])[_0x5c5dbd(0x233)](_0x21d879=>this['_collabSession'][_0x5c5dbd(0x1e6)]({'eventID':_0x117a17[_0x5c5dbd(0x22b)],'data':{'unitID':this[_0x5c5dbd(0x1d7)],'operations':{[_0x21d879['id']]:{'id':_0x21d879['id'],'params':JSON[_0x5c5dbd(0x251)](_0x21d879[_0x5c5dbd(0x26a)])}}}},this[_0x5c5dbd(0x1d7)]));}['_stopPresenting'](){const _0x2a0dcb=_0x94c2f4;var _0x2c3d1a;this[_0x2a0dcb(0x1f1)][_0x2a0dcb(0x1f7)](_0x2a0dcb(0x1de)),(_0x2c3d1a=this['_commandDisposable'])==null||_0x2c3d1a[_0x2a0dcb(0x1f3)](),this[_0x2a0dcb(0x1e7)]=null;}['_startFollowing'](){const _0x130462=_0x94c2f4;var _0x54879a;(_0x54879a=this['_commandDisposable'])==null||_0x54879a['dispose'](),this['_status$'][_0x130462(0x1f7)](_0x130462(0x24b));}[_0x94c2f4(0x249)](){const _0x5e30bf=_0x94c2f4;var _0x21248e;this['_status$'][_0x5e30bf(0x1f7)](_0x5e30bf(0x1de)),(_0x21248e=this[_0x5e30bf(0x1e7)])==null||_0x21248e[_0x5e30bf(0x1f3)](),this['_commandDisposable']=null;}[_0x94c2f4(0x214)](){const _0x5a4a24=_0x94c2f4;var _0x134633;this['_status$'][_0x5a4a24(0x1f7)](_0x5a4a24(0x26b)),(_0x134633=this[_0x5a4a24(0x1e7)])==null||_0x134633['dispose']();}[_0x94c2f4(0x1db)](_0x2358d9){const _0x4d8d5d=_0x94c2f4;if(['presenting',_0x4d8d5d(0x26b),_0x4d8d5d(0x207)]['includes'](this[_0x4d8d5d(0x21e)])||!_0x2358d9[_0x4d8d5d(0x215)]['presenter']||_0x2358d9[_0x4d8d5d(0x215)]['presenter']===this[_0x4d8d5d(0x20f)]['getMemberID']())return;this[_0x4d8d5d(0x21e)]===_0x4d8d5d(0x1de)&&this[_0x4d8d5d(0x216)]();const _0x53124e=_0x2358d9[_0x4d8d5d(0x215)][_0x4d8d5d(0x1e9)];Object[_0x4d8d5d(0x1d6)](_0x53124e)['forEach'](_0x39f73c=>{const _0x55a1dc=_0x4d8d5d;this[_0x55a1dc(0x1fc)][_0x55a1dc(0x273)](_0x39f73c['id'],_0x39f73c[_0x55a1dc(0x26a)]?JSON[_0x55a1dc(0x20c)](_0x39f73c['params']):null,{'fromCollab':!0x0});});}[_0x94c2f4(0x1dd)](){const _0x4e765c=_0x94c2f4;var _0x304165;this[_0x4e765c(0x1f1)][_0x4e765c(0x1f7)](_0x4e765c(0x207)),(_0x304165=this['_commandDisposable'])==null||_0x304165[_0x4e765c(0x1f3)]();}[_0x94c2f4(0x1f0)](){const _0x14dc6a=_0x94c2f4;this['_status$']['next'](_0x14dc6a(0x1de)),this['_fetchOperations']();}};N=Y([_(0x2,_0x1163db),_(0x3,_0x39e2ff(L)),_(0x4,_0x3fe997)],N);function _0x5199(){const _0x1a36fe=['_startPresenting','_fetchOperations','_handleNewChangeSets','_status','then','stopFollowing','live-share.config','919047HgGWSl','asObservable','use','init','_liveShareService','colorChannel1','getLiveShareCoordinatorSync','entries','OFFLINE','LIVESHARE_OPERATION','defs','unitId','OPERATION','_presenter','getStatus','getInitialStates','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','forEach','length','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','evenodd','636PCVUKY','xlink:href','fill','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','SAME_OPERATION_SHARE_INTERVAL','memberID','_startLiveShareCoordinator','Stop\x20following','type','UNIVER_UNKNOWN','displayName','has','_mountLiveShare','trim','_univerInstanceService','pipe','709408UIgFwJ','NOT_FOLLOWING','_beIdle','univerjs-icon\x20univerjs-icon-','following','unsubscribe','PRESENTING','200yEcOGr','univer-mb-3\x20univer-w-full\x20univer-text-sm','defineProperty','stringify','25888YOuzwn','LIVESHARE_FETCH_OPERATIONS','_handleTerminate','random','getMemberID','onCommandExecuted','currentColor','sheet','registerSharedOperation','delete','svg','path','registerInitialStateReporter','includes','idSuffix','Present\x20this\x20document','onStarting','http://www.w3.org/2000/svg','clear','IDLE','replace','0\x200\x2017\x2017','You\x27re\x20not\x20following\x20the\x20presenter','tag','params','not-following','end','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','current','add','map','HEADER_MENU','_entities','executeCommand','getLiveShareCoordinator','UNIVER_SHEET','setConfig','1em','getValue','symbol','UNIVER_LIVE_SHARE_PLUGIN','_reporters','getCurrentTypeOfUnit$','_configService','none','_init','defIds','8190LUoSJV','assign','values','_unitID','string','pluginName','_collabSessionService','_handleOperation','_config','_handleOffline','idle','div','_handleNewHost','getTypeOfUnitDisposed$','Start','getOwnPropertyDescriptor','You\x27re\x20following\x20the\x20presenter','substring','send','_commandDisposable','_uiPartsService','operations','shouldShareOperation','createInstance','button','onRendered','_sharedOperations','startFollowing','_handleOnline','_status$','getUnitId','dispose','find','Start\x20following','complete','next','requireSession','11079GKKPzB','53473HiYgsm','live-share-icon','_commandService','dispose$','from','tryStartPresenting','override','LIVESHARE_TERMINATE','subscribe','univer-size-4','_injector','get','4224688NAsBSz','offline','mask','presenting','disposeWithMe','attrs','parse','children','registerComponent','_collabSession','sessionStatus$','getTypeOfUnitAdded$','UniverIcon','FOLLOWING','_stopFollowing','data','_startFollowing','set','status$','toString','207567JEysXj'];_0x5199=function(){return _0x1a36fe;};return _0x5199();}function Le(){const _0x351e49=_0x94c2f4,_0x36c017=_0x1a3369(S),_0x12c744=_0x1a3369(_0x131adf),_0x5280d1=_0x43c83b(()=>_0x12c744[_0x351e49(0x27c)](_0x1edb56[_0x351e49(0x275)]),void 0x0,!0x1,[]),[_0x45eb19,_0xb80a]=_0x24f563(null),[_0x47808b,_0x235c0a]=_0x24f563(c[_0x351e49(0x265)]),_0x5714da=_0x5302de(null);return _0x1d9b38(()=>(_0x5280d1&&_0x36c017[_0x351e49(0x274)](_0x5280d1['getUnitId']())[_0x351e49(0x21f)](_0x338243=>{const _0x133b34=_0x351e49;_0xb80a(_0x338243),_0x5714da[_0x133b34(0x26e)]=_0x338243['status$'][_0x133b34(0x202)](_0x4152a6=>{_0x235c0a(_0x4152a6);});}),()=>{const _0x1e5e92=_0x351e49;var _0x317318;(_0x317318=_0x5714da[_0x1e5e92(0x26e)])==null||_0x317318[_0x1e5e92(0x24c)](),_0x5714da[_0x1e5e92(0x26e)]=null;}),[_0x5280d1,_0x36c017]),_0x45eb19?_0x3b2e8c(_0x580ca5,{'align':_0x351e49(0x26c),'disabled':_0x47808b===c[_0x351e49(0x22a)],'className':_0x351e49(0x232),'overlay':_0x3b2e8c(Re,{'status':_0x47808b,'coordinator':_0x45eb19}),'children':_0x3b2e8c(_0x351e49(0x1ec),{'className':_0x38bcb7(_0x351e49(0x23a),{'univer-cursor-not-allowed':_0x47808b===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x47808b!==c[_0x351e49(0x22a)]}),'type':_0x351e49(0x1ec),'children':_0x3b2e8c(W,{'className':_0x351e49(0x203)})})}):null;}function Re(_0x9e5441){const _0xee2a99=_0x94c2f4,{status:_0x2032fd,coordinator:_0x2a92e9}=_0x9e5441;switch(_0x2032fd){case c[_0xee2a99(0x265)]:return _0x3b2e8c($e,{'coordinator':_0x2a92e9});case c[_0xee2a99(0x213)]:return _0x3b2e8c(xe,{'coordinator':_0x2a92e9});case c[_0xee2a99(0x248)]:return _0x3b2e8c(Pe,{'coordinator':_0x2a92e9});case c[_0xee2a99(0x22a)]:return _0x3b2e8c(Te,{});case c[_0xee2a99(0x24d)]:return _0x3b2e8c(Ae,{'coordinator':_0x2a92e9});default:return null;}}function $e(_0x36800c){const _0x58d5c6=_0x94c2f4,{coordinator:_0x86e0a8}=_0x36800c;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c('div',{'className':_0x58d5c6(0x24f),'children':_0x58d5c6(0x261)}),_0x3b2e8c(_0x4bf6a0,{'onClick':()=>_0x86e0a8[_0x58d5c6(0x1ff)](),'children':_0x58d5c6(0x1e2)})]});}function xe(_0x41074d){const _0x3878ce=_0x94c2f4,{coordinator:_0x519a31}=_0x41074d;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c(_0x3878ce(0x1df),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3878ce(0x1e4)}),_0x3b2e8c(_0x4bf6a0,{'onClick':()=>_0x519a31[_0x3878ce(0x220)](),'children':_0x3878ce(0x23e)})]});}function Pe(_0x4209f1){const _0x48fc4a=_0x94c2f4,{coordinator:_0x21a2b7}=_0x4209f1;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c(_0x48fc4a(0x1df),{'className':_0x48fc4a(0x24f),'children':_0x48fc4a(0x268)}),_0x3b2e8c(_0x4bf6a0,{'variant':'text','onClick':()=>_0x21a2b7[_0x48fc4a(0x1ef)](),'children':_0x48fc4a(0x1f5)})]});}function Ae(_0x50433d){const _0x13d664=_0x94c2f4,{coordinator:_0x2de63b}=_0x50433d;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c(_0x13d664(0x1df),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x3b2e8c(_0x4bf6a0,{'variant':'default','onClick':()=>_0x2de63b['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Te(){return _0x3b2e8c(_0x34fda9,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x94c2f4(0x1e3)],He=(_0x4ee589,_0x41e877,_0x5d2bc7,_0x1ec7e2)=>{for(var _0xf6315a=_0x1ec7e2>0x1?void 0x0:_0x1ec7e2?Fe(_0x41e877,_0x5d2bc7):_0x41e877,_0x357fa3=_0x4ee589['length']-0x1,_0x50ca30;_0x357fa3>=0x0;_0x357fa3--)(_0x50ca30=_0x4ee589[_0x357fa3])&&(_0xf6315a=_0x50ca30(_0xf6315a)||_0xf6315a);return _0xf6315a;},A=(_0x54abe0,_0x111759)=>(_0x10a906,_0xfe785d)=>_0x111759(_0x10a906,_0xfe785d,_0x54abe0);let m=class extends _0x237410{constructor(_0x35f642,_0x326940){const _0x433d42=_0x94c2f4;super(),this[_0x433d42(0x204)]=_0x35f642,this['_uiPartsService']=_0x326940,this['_mountLiveShare']();}[_0x94c2f4(0x243)](){const _0x46b4b5=_0x94c2f4;this[_0x46b4b5(0x20a)](this[_0x46b4b5(0x1e8)][_0x46b4b5(0x20e)](_0x54c386[_0x46b4b5(0x271)],()=>_0x40daf7(Le,this[_0x46b4b5(0x204)])));}};m=He([A(0x0,_0x39e2ff(_0x1af462)),A(0x1,_0x189af9)],m);const ye=_0x94c2f4(0x221),T={};var Ue=Object[_0x94c2f4(0x1e3)],Ve=(_0x4b6f53,_0x3ef43d,_0x15c32b,_0x590121)=>{for(var _0x173e04=_0x590121>0x1?void 0x0:_0x590121?Ue(_0x3ef43d,_0x15c32b):_0x3ef43d,_0x300e9=_0x4b6f53['length']-0x1,_0x20d0df;_0x300e9>=0x0;_0x300e9--)(_0x20d0df=_0x4b6f53[_0x300e9])&&(_0x173e04=_0x20d0df(_0x173e04)||_0x173e04);return _0x173e04;},je=(_0x1dce1c,_0x18628f)=>(_0x4bf7ce,_0x54c527)=>_0x18628f(_0x4bf7ce,_0x54c527,_0x1dce1c);let I=class extends _0x237410{constructor(_0x48fd1b){const _0x517999=_0x94c2f4;super(),this[_0x517999(0x226)]=_0x48fd1b,this['_init']();}['_init'](){const _0x1d05b8=_0x94c2f4;[_0x33d3cc['id'],_0x1ac8e2['id'],_0x45b437['id']][_0x1d05b8(0x233)](_0x2aa60b=>{const _0x3851a6=_0x1d05b8;this[_0x3851a6(0x20a)](this[_0x3851a6(0x226)][_0x3851a6(0x25a)](_0x2aa60b));});}};I=Ve([je(0x0,_0x39e2ff(L))],I);var Me=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x25b41c,_0xc9ab13,_0x373b7a)=>_0xc9ab13 in _0x25b41c?Me(_0x25b41c,_0xc9ab13,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x373b7a}):_0x25b41c[_0xc9ab13]=_0x373b7a,We=(_0x448b4b,_0x18ed3d,_0x381973,_0x421da2)=>{const _0x4317f8=_0x94c2f4;for(var _0x39ec83=_0x421da2>0x1?void 0x0:_0x421da2?ke(_0x18ed3d,_0x381973):_0x18ed3d,_0xefb135=_0x448b4b[_0x4317f8(0x234)]-0x1,_0x27f4d5;_0xefb135>=0x0;_0xefb135--)(_0x27f4d5=_0x448b4b[_0xefb135])&&(_0x39ec83=_0x27f4d5(_0x39ec83)||_0x39ec83);return _0x39ec83;},F=(_0x25f3bc,_0x4a93e5)=>(_0x311f14,_0x1147ea)=>_0x4a93e5(_0x311f14,_0x1147ea,_0x25f3bc),B=(_0x24ac65,_0x1c5268,_0x2aba29)=>Ge(_0x24ac65,typeof _0x1c5268!=_0x94c2f4(0x279)?_0x1c5268+'':_0x1c5268,_0x2aba29);const Ye=_0x94c2f4(0x27a);let b=class extends _0x1f099d{constructor(_0x152420=T,_0x59ea89,_0x51de){const _0x2d3149=_0x94c2f4;super(),this[_0x2d3149(0x1dc)]=_0x152420,this[_0x2d3149(0x204)]=_0x59ea89,this[_0x2d3149(0x1d0)]=_0x51de;const {..._0x3f9fb8}=_0x38fee5({},T,this['_config']);this['_configService'][_0x2d3149(0x276)](ye,_0x3f9fb8);}[_0x94c2f4(0x262)](){const _0x172bdc=_0x94c2f4;_0x20cdf0(this[_0x172bdc(0x204)],_0x1c6eec([[L],[S],[I],[m]],this[_0x172bdc(0x1dc)][_0x172bdc(0x200)])),_0x5e0f2d(this['_injector'],[[I]]);}[_0x94c2f4(0x1ed)](){_0x5e0f2d(this['_injector'],[[m]]);}};B(b,_0x94c2f4(0x23f),_0x1edb56[_0x94c2f4(0x240)]),B(b,_0x94c2f4(0x1d9),Ye),b=We([_0x298814(_0x4883e2),F(0x1,_0x39e2ff(_0x1af462)),F(0x2,_0x1163db)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x15df1a=_0x4ee7;(function(_0x11bebc,_0x5d49bc){const _0x2d6039=_0x4ee7,_0x2f4f3a=_0x11bebc();while(!![]){try{const _0x1341a0=-parseInt(_0x2d6039(0xf6))/0x1*(-parseInt(_0x2d6039(0xed))/0x2)+-parseInt(_0x2d6039(0xf7))/0x3*(parseInt(_0x2d6039(0xfb))/0x4)+-parseInt(_0x2d6039(0x102))/0x5+-parseInt(_0x2d6039(0xfd))/0x6*(-parseInt(_0x2d6039(0x101))/0x7)+parseInt(_0x2d6039(0xf8))/0x8+-parseInt(_0x2d6039(0xf2))/0x9*(parseInt(_0x2d6039(0xf1))/0xa)+-parseInt(_0x2d6039(0xe6))/0xb;if(_0x1341a0===_0x5d49bc)break;else _0x2f4f3a['push'](_0x2f4f3a['shift']());}catch(_0x4b1da3){_0x2f4f3a['push'](_0x2f4f3a['shift']());}}}(_0x2b9d,0x5aa36));import{LiveShareController as _0x5786b5,LiveShareStatus as _0x58edfc}from'@univerjs-pro/live-share';function _0x4ee7(_0x2fdc37,_0x1b63a1){_0x2fdc37=_0x2fdc37-0xe5;const _0x2b9dab=_0x2b9d();let _0x4ee7ab=_0x2b9dab[_0x2fdc37];return _0x4ee7ab;}import{IRenderManagerService as _0x84d76}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x498c84}from'@univerjs/sheets';import{SetScrollOperation as _0x12a682}from'@univerjs/sheets-ui';import{FRange as _0x42ea79}from'@univerjs/sheets/facade';import{FUniver as _0x25caba,FEnum as _0x51510a}from'@univerjs/core/facade';class I extends _0x42ea79{[_0x15df1a(0xf4)](_0x388aa5,_0x46b2c6,_0x20ecc1,_0x5bf515,_0x10c7bd){const _0x3fb127=_0x15df1a,_0x4d937f=_0x388aa5['get'](_0x5786b5),_0x204a05=_0x388aa5[_0x3fb127(0x108)](_0x84d76),_0x5d51b2=_0x46b2c6[_0x3fb127(0xef)](),_0x9a40d0=_0x46b2c6['getActiveSheet'](),_0x5a2913=_0x4d937f[_0x3fb127(0xe9)](_0x5d51b2);(_0x5a2913==null?void 0x0:_0x5a2913[_0x3fb127(0xfa)]())!==_0x58edfc[_0x3fb127(0xf9)]||(_0x20ecc1[_0x3fb127(0xee)]()!==_0x9a40d0[_0x3fb127(0xee)]()&&this[_0x3fb127(0xf5)][_0x3fb127(0xfc)](_0x498c84['id'],{'unitId':_0x5d51b2,'subUnitId':_0x20ecc1['getSheetId']()}),!_0x204a05[_0x3fb127(0x107)](_0x5d51b2))||_0x10c7bd[_0x3fb127(0xfe)](_0x12a682['id'],{'unitId':_0x46b2c6[_0x3fb127(0xef)](),'sheetId':_0x20ecc1[_0x3fb127(0xee)](),'sheetViewStartRow':_0x5bf515[_0x3fb127(0xf0)],'sheetViewStartColumn':_0x5bf515[_0x3fb127(0xe8)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x2b9d(){const _0x1c89f4=['getLiveShareCoordinatorSync','startFollowing','No\x20active\x20workbook\x20found.','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','1389038ZEcSdo','getSheetId','getUnitId','startRow','1030YzCnPL','23049WXQRvH','_injector','_initialize','_commandService','1KGyuUL','42KOOOIo','5158840DqCruh','PRESENTING','getStatus','13316ucTOwd','executeCommand','5478ijuazh','syncExecuteCommand','extend','getId','1484GRfJuV','877220nxUoee','LiveShareStatusEnum','tryStartPresenting','stopFollowing','stopPresenting','getRenderById','get','getActiveWorkbook','7434273zYoibZ','getLiveShareStatus','startColumn'];_0x2b9d=function(){return _0x1c89f4;};return _0x2b9d();}_0x42ea79['extend'](I);class m extends _0x25caba{[_0x15df1a(0xe7)](){const _0x8fa4d1=_0x15df1a;var _0x2af9b3,_0x44d587;const _0x5c6cdb=this[_0x8fa4d1(0xf3)][_0x8fa4d1(0x108)](_0x5786b5),_0x29c6ee=(_0x2af9b3=this[_0x8fa4d1(0xe5)]())==null?void 0x0:_0x2af9b3[_0x8fa4d1(0x100)]();if(!_0x29c6ee)throw new Error(_0x8fa4d1(0xeb));const _0x5e22fe=_0x5c6cdb[_0x8fa4d1(0xe9)](_0x29c6ee);return(_0x44d587=_0x5e22fe==null?void 0x0:_0x5e22fe['getStatus']())!=null?_0x44d587:_0x58edfc['IDLE'];}[_0x15df1a(0xea)](){const _0x3fe74f=_0x15df1a;var _0x5295ed;const _0x4a2468=this[_0x3fe74f(0xf3)]['get'](_0x5786b5),_0x5f7c63=(_0x5295ed=this[_0x3fe74f(0xe5)]())==null?void 0x0:_0x5295ed[_0x3fe74f(0x100)]();if(!_0x5f7c63)throw new Error(_0x3fe74f(0xeb));const _0x19f351=_0x4a2468[_0x3fe74f(0xe9)](_0x5f7c63);if(!_0x19f351)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x19f351[_0x3fe74f(0xea)]();}[_0x15df1a(0x105)](){const _0x274919=_0x15df1a;var _0x128ca3;const _0x78379e=this[_0x274919(0xf3)]['get'](_0x5786b5),_0x2846f8=(_0x128ca3=this['getActiveWorkbook']())==null?void 0x0:_0x128ca3[_0x274919(0x100)]();if(!_0x2846f8)throw new Error(_0x274919(0xeb));const _0x369fd7=_0x78379e[_0x274919(0xe9)](_0x2846f8);if(!_0x369fd7)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x369fd7[_0x274919(0x105)]();}['startPresenting'](){const _0x3d078b=_0x15df1a;var _0x425dd3;const _0x104bc4=this[_0x3d078b(0xf3)][_0x3d078b(0x108)](_0x5786b5),_0x4c2eba=(_0x425dd3=this[_0x3d078b(0xe5)]())==null?void 0x0:_0x425dd3[_0x3d078b(0x100)]();if(!_0x4c2eba)throw new Error(_0x3d078b(0xeb));const _0x21f1f1=_0x104bc4[_0x3d078b(0xe9)](_0x4c2eba);if(!_0x21f1f1)throw new Error(_0x3d078b(0xec));_0x21f1f1[_0x3d078b(0x104)]();}['stopPresenting'](){const _0x442797=_0x15df1a;var _0x4b5262;const _0xda59a5=this[_0x442797(0xf3)][_0x442797(0x108)](_0x5786b5),_0x445d1f=(_0x4b5262=this[_0x442797(0xe5)]())==null?void 0x0:_0x4b5262[_0x442797(0x100)]();if(!_0x445d1f)throw new Error(_0x442797(0xeb));const _0x351499=_0xda59a5[_0x442797(0xe9)](_0x445d1f);if(!_0x351499)throw new Error(_0x442797(0xec));_0x351499[_0x442797(0x106)]();}}_0x25caba['extend'](m);class C extends _0x51510a{get[_0x15df1a(0x103)](){return _0x58edfc;}}_0x51510a[_0x15df1a(0xff)](C);
|
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 _0x94c2f4=_0x21c3;function _0x21c3(_0x446bb3,_0x18f90f){_0x446bb3=_0x446bb3-0x1d0;const _0x519940=_0x5199();let _0x21c38f=_0x519940[_0x446bb3];return _0x21c38f;}(function(_0x4c86f3,_0x134e2f){const _0x38792d=_0x21c3,_0x180f4e=_0x4c86f3();while(!![]){try{const _0x518ddf=-parseInt(_0x38792d(0x222))/0x1+parseInt(_0x38792d(0x247))/0x2+-parseInt(_0x38792d(0x21a))/0x3+-parseInt(_0x38792d(0x252))/0x4*(-parseInt(_0x38792d(0x24e))/0x5)+-parseInt(_0x38792d(0x237))/0x6*(-parseInt(_0x38792d(0x1fa))/0x7)+-parseInt(_0x38792d(0x206))/0x8+parseInt(_0x38792d(0x1f9))/0x9*(parseInt(_0x38792d(0x1d4))/0xa);if(_0x518ddf===_0x134e2f)break;else _0x180f4e['push'](_0x180f4e['shift']());}catch(_0x39cf1a){_0x180f4e['push'](_0x180f4e['shift']());}}}(_0x5199,0xdf6f1));var J=Object[_0x94c2f4(0x250)],K=(_0x37670d,_0x4433f6,_0x29d063)=>_0x4433f6 in _0x37670d?J(_0x37670d,_0x4433f6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x29d063}):_0x37670d[_0x4433f6]=_0x29d063,u=(_0x548a32,_0x5e598a,_0xf6d060)=>K(_0x548a32,typeof _0x5e598a!=_0x94c2f4(0x279)?_0x5e598a+'':_0x5e598a,_0xf6d060);import{Disposable as _0x237410,toDisposable as _0x479776,IUniverInstanceService as _0x131adf,Inject as _0x39e2ff,Injector as _0x1af462,IConfigService as _0x1163db,ICommandService as _0x3fe997,RxDisposable as _0x3c244d,UniverInstanceType as _0x1edb56,DisposableCollection as _0x56d0d3,CommandType as _0x11ab87,DependentOn as _0x298814,Plugin as _0x1f099d,merge as _0x38fee5,registerDependencies as _0x20cdf0,mergeOverrideWithDependencies as _0x1c6eec,touchDependencies as _0x5e0f2d}from'@univerjs/core';import{useDependency as _0x1a3369,useObservable as _0x43c83b,IUIPartsService as _0x189af9,BuiltInUIPart as _0x54c386,connectInjector as _0x40daf7}from'@univerjs/ui';import{jsx as _0x3b2e8c,jsxs as _0x5a8b02,Fragment as _0x34fda9}from'react/jsx-runtime';import{Dropdown as _0x580ca5,clsx as _0x38bcb7,Button as _0x4bf6a0}from'@univerjs/design';import{useRef as _0x5302de,createElement as _0x4c6606,forwardRef as _0x13d357,useState as _0x24f563,useEffect as _0x1d9b38}from'react';import{CollaborationEvent as _0x117a17,parseProtocolChangeset as _0x1a1c61}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x12178f,SessionStatus as _0x2ec079,UniverCollaborationClientPlugin as _0x4883e2}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x109733,SetWorksheetActiveOperation as _0x45b437}from'@univerjs/sheets';import{BehaviorSubject as _0x5ee00e,Subject as _0x13c737}from'rxjs';import{takeUntil as _0x2cd887,throttleTime as _0x3e7564}from'rxjs/operators';import{SetZoomRatioOperation as _0x33d3cc,SetScrollOperation as _0x1ac8e2}from'@univerjs/sheets-ui';function k({ref:_0xb065e,..._0x3a7358}){const _0x361340=_0x94c2f4,{icon:_0x54010d,id:_0x1cfe5c,className:_0x190099,extend:_0x57bce0,..._0x488160}=_0x3a7358,_0x2d8fc4=(_0x361340(0x24a)+_0x1cfe5c+'\x20'+(_0x190099||''))[_0x361340(0x244)](),_0x37b877=_0x5302de('_'+Oe());return G(_0x54010d,''+_0x1cfe5c,{'defIds':_0x54010d[_0x361340(0x1d3)],'idSuffix':_0x37b877[_0x361340(0x26e)]},{'ref':_0xb065e,'className':_0x2d8fc4,..._0x488160},_0x57bce0);}function G(_0x240805,_0x41f09f,_0x555cdc,_0x1cc80c,_0x1bfed9){const _0x28632a=_0x94c2f4;return _0x4c6606(_0x240805[_0x28632a(0x269)],{'key':_0x41f09f,...be(_0x240805,_0x555cdc,_0x1bfed9),..._0x1cc80c},(Ee(_0x240805,_0x555cdc)[_0x28632a(0x20d)]||[])[_0x28632a(0x270)]((_0x1bddaa,_0x1f5413)=>G(_0x1bddaa,_0x41f09f+'-'+_0x240805['tag']+'-'+_0x1f5413,_0x555cdc,void 0x0,_0x1bfed9)));}function be(_0x320310,_0x2e634b,_0x158a5f){const _0x5cf614=_0x94c2f4,_0x1a26f2={..._0x320310['attrs']};_0x158a5f!=null&&_0x158a5f[_0x5cf614(0x227)]&&_0x1a26f2[_0x5cf614(0x239)]===_0x5cf614(0x227)&&(_0x1a26f2['fill']=_0x158a5f[_0x5cf614(0x227)]),_0x320310[_0x5cf614(0x269)]===_0x5cf614(0x208)&&_0x1a26f2['id']&&(_0x1a26f2['id']=_0x1a26f2['id']+_0x2e634b[_0x5cf614(0x260)]),Object['entries'](_0x1a26f2)[_0x5cf614(0x233)](([_0x55f103,_0x18e607])=>{const _0xe5660b=_0x5cf614;_0x55f103===_0xe5660b(0x208)&&typeof _0x18e607==_0xe5660b(0x1d8)&&(_0x1a26f2[_0x55f103]=_0x18e607[_0xe5660b(0x266)](/url\(#(.*)\)/,'url(#$1'+_0x2e634b['idSuffix']+')'));});const {defIds:_0x6c0053}=_0x2e634b;return!_0x6c0053||_0x6c0053['length']===0x0||(_0x320310[_0x5cf614(0x269)]===_0x5cf614(0x224)&&_0x1a26f2[_0x5cf614(0x238)]&&(_0x1a26f2[_0x5cf614(0x238)]=_0x1a26f2[_0x5cf614(0x238)]+_0x2e634b[_0x5cf614(0x260)]),Object[_0x5cf614(0x229)](_0x1a26f2)[_0x5cf614(0x233)](([_0x38bb32,_0x575f36])=>{const _0x106096=_0x5cf614;typeof _0x575f36==_0x106096(0x1d8)&&(_0x1a26f2[_0x38bb32]=_0x575f36[_0x106096(0x266)](/url\(#(.*)\)/,'url(#$1'+_0x2e634b[_0x106096(0x260)]+')'));})),_0x1a26f2;}function Ee(_0x41659d,_0x1cb916){const _0x2cab9c=_0x94c2f4;var _0x4249a2;const {defIds:_0x4e6d2b}=_0x1cb916;return!_0x4e6d2b||_0x4e6d2b['length']===0x0?_0x41659d:_0x41659d[_0x2cab9c(0x269)]===_0x2cab9c(0x22c)&&((_0x4249a2=_0x41659d[_0x2cab9c(0x20d)])!=null&&_0x4249a2[_0x2cab9c(0x234)])?{..._0x41659d,'children':_0x41659d[_0x2cab9c(0x20d)][_0x2cab9c(0x270)](_0x46dd25=>typeof _0x46dd25['attrs']['id']==_0x2cab9c(0x1d8)&&_0x4e6d2b&&_0x4e6d2b[_0x2cab9c(0x25f)](_0x46dd25[_0x2cab9c(0x20b)]['id'])?{..._0x46dd25,'attrs':{..._0x46dd25[_0x2cab9c(0x20b)],'id':_0x46dd25[_0x2cab9c(0x20b)]['id']+_0x1cb916[_0x2cab9c(0x260)]}}:_0x46dd25)}:_0x41659d;}function Oe(){const _0x4f1be8=_0x94c2f4;return Math[_0x4f1be8(0x255)]()[_0x4f1be8(0x219)](0x24)[_0x4f1be8(0x1e5)](0x2,0x8);}k[_0x94c2f4(0x241)]=_0x94c2f4(0x212);const we={'tag':_0x94c2f4(0x25c),'attrs':{'xmlns':_0x94c2f4(0x263),'fill':_0x94c2f4(0x1d1),'viewBox':_0x94c2f4(0x267),'width':_0x94c2f4(0x277),'height':_0x94c2f4(0x277)},'children':[{'tag':_0x94c2f4(0x25d),'attrs':{'fill':_0x94c2f4(0x258),'d':_0x94c2f4(0x235)}},{'tag':_0x94c2f4(0x25d),'attrs':{'fill':_0x94c2f4(0x258),'d':_0x94c2f4(0x26d),'fillRule':_0x94c2f4(0x236),'clipRule':_0x94c2f4(0x236)}}]},W=_0x13d357(function(_0x3fe056,_0x2cc369){const _0x3f646b=_0x94c2f4;return _0x4c6606(k,Object[_0x3f646b(0x1d5)]({},_0x3fe056,{'id':_0x3f646b(0x1fb),'ref':_0x2cc369,'icon':we}));});W[_0x94c2f4(0x241)]='LiveShareIcon';class L extends _0x237410{constructor(){const _0x5a0ee4=_0x94c2f4;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x5a0ee4(0x27b),new Set());}[_0x94c2f4(0x25a)](_0x1dec7d){const _0x4b7c09=_0x94c2f4;return this[_0x4b7c09(0x1ee)][_0x4b7c09(0x26f)](_0x1dec7d),_0x479776(()=>this[_0x4b7c09(0x1ee)][_0x4b7c09(0x25b)](_0x1dec7d));}[_0x94c2f4(0x25e)](_0xc19384){const _0x1e5cd8=_0x94c2f4;return this['_reporters']['add'](_0xc19384),_0x479776(()=>this['_reporters'][_0x1e5cd8(0x25b)](_0xc19384));}['shouldShareOperation'](_0x356b1e){const _0x3460c6=_0x94c2f4;return this[_0x3460c6(0x1ee)]['has'](_0x356b1e);}[_0x94c2f4(0x231)](_0x5d3542){const _0x4197ef=_0x94c2f4;return Array[_0x4197ef(0x1fe)](this[_0x4197ef(0x27b)])[_0x4197ef(0x270)](_0x3f3ad7=>_0x3f3ad7(_0x5d3542));}}var Ne=Object[_0x94c2f4(0x1e3)],Y=(_0x24e75c,_0x508cc0,_0x3de33b,_0x4de27e)=>{const _0x5a3bd5=_0x94c2f4;for(var _0x4fe054=_0x4de27e>0x1?void 0x0:_0x4de27e?Ne(_0x508cc0,_0x3de33b):_0x508cc0,_0x233d13=_0x24e75c[_0x5a3bd5(0x234)]-0x1,_0x9dc5a5;_0x233d13>=0x0;_0x233d13--)(_0x9dc5a5=_0x24e75c[_0x233d13])&&(_0x4fe054=_0x9dc5a5(_0x4fe054)||_0x4fe054);return _0x4fe054;},_=(_0x5ba021,_0x2dc522)=>(_0x103223,_0x4a42bd)=>_0x2dc522(_0x103223,_0x4a42bd,_0x5ba021);let S=class extends _0x3c244d{constructor(_0x11278b,_0x50b451,_0x33cd12){const _0x58aa65=_0x94c2f4;super(),u(this,_0x58aa65(0x272),new Map()),(this[_0x58aa65(0x245)]=_0x11278b,this['_injector']=_0x50b451,this[_0x58aa65(0x1da)]=_0x33cd12,this[_0x58aa65(0x1d2)]());}async[_0x94c2f4(0x274)](_0x30146d){const _0x6d15e1=_0x94c2f4;return this[_0x6d15e1(0x272)]['has'](_0x30146d)||await this[_0x6d15e1(0x23d)](_0x30146d),this['_entities'][_0x6d15e1(0x205)](_0x30146d);}[_0x94c2f4(0x228)](_0x4c17df){var _0x2e4ab1;return(_0x2e4ab1=this['_entities']['get'](_0x4c17df))!=null?_0x2e4ab1:null;}[_0x94c2f4(0x1d2)](){const _0x435494=_0x94c2f4;this['_univerInstanceService'][_0x435494(0x211)](_0x1edb56[_0x435494(0x275)])[_0x435494(0x246)](_0x2cd887(this[_0x435494(0x1fd)]))[_0x435494(0x202)](async _0xe3d952=>{const _0x288c8e=_0x435494,_0x3a31c9=_0xe3d952['getUnitId']();this['_entities']['has'](_0x3a31c9)||this[_0x288c8e(0x23d)](_0x3a31c9);}),this[_0x435494(0x245)][_0x435494(0x1e1)](_0x1edb56[_0x435494(0x275)])['pipe'](_0x2cd887(this[_0x435494(0x1fd)]))[_0x435494(0x202)](_0x45f7ac=>{const _0x59258f=_0x435494,_0x2aeb58=_0x45f7ac[_0x59258f(0x1f2)](),_0x4bb934=this[_0x59258f(0x272)]['get'](_0x2aeb58);_0x4bb934==null||_0x4bb934[_0x59258f(0x1f3)]();});}async['_startLiveShareCoordinator'](_0x488194){const _0x33a5b0=_0x94c2f4,_0x5d3691=await this['_collabSessionService'][_0x33a5b0(0x1f8)](_0x488194),_0x1de098=this[_0x33a5b0(0x204)][_0x33a5b0(0x1eb)](N,_0x488194,_0x5d3691);return _0x1de098[_0x33a5b0(0x225)](),this[_0x33a5b0(0x272)][_0x33a5b0(0x217)](_0x488194,_0x1de098),_0x1de098;}};S=Y([_(0x0,_0x131adf),_(0x1,_0x39e2ff(_0x1af462)),_(0x2,_0x39e2ff(_0x12178f))],S);var c=(_0x221161=>(_0x221161[_0x94c2f4(0x22a)]=_0x94c2f4(0x207),_0x221161['IDLE']=_0x94c2f4(0x1de),_0x221161['FOLLOWING']=_0x94c2f4(0x24b),_0x221161['NOT_FOLLOWING']='not-following',_0x221161['PRESENTING']=_0x94c2f4(0x209),_0x221161))(c||{});const Ce=_0x94c2f4(0x23b),De=0xc8;let N=class extends _0x3c244d{constructor(_0x3c6de8,_0x1e0d6a,_0x48a41f,_0x4d0548,_0x303acf){const _0x2a724f=_0x94c2f4;super(),u(this,'_status$',new _0x5ee00e(_0x2a724f(0x1de))),u(this,_0x2a724f(0x218),this[_0x2a724f(0x1f1)][_0x2a724f(0x223)]()),u(this,_0x2a724f(0x1d2),!0x1),u(this,_0x2a724f(0x1e7),null),u(this,'_presenter',null),(this['_unitID']=_0x3c6de8,this[_0x2a724f(0x20f)]=_0x1e0d6a,this[_0x2a724f(0x1d0)]=_0x48a41f,this[_0x2a724f(0x226)]=_0x4d0548,this[_0x2a724f(0x1fc)]=_0x303acf);}get[_0x94c2f4(0x21e)](){const _0x10c3e8=_0x94c2f4;return this[_0x10c3e8(0x1f1)][_0x10c3e8(0x278)]();}[_0x94c2f4(0x1f3)](){const _0x5ee6ab=_0x94c2f4;var _0x439748;(_0x439748=this[_0x5ee6ab(0x1e7)])==null||_0x439748[_0x5ee6ab(0x1f3)](),this[_0x5ee6ab(0x1f1)]['next'](_0x5ee6ab(0x1de)),this[_0x5ee6ab(0x1f1)][_0x5ee6ab(0x1f6)]();}[_0x94c2f4(0x230)](){return this['_status'];}['init'](){const _0x14d99f=_0x94c2f4;this[_0x14d99f(0x1d2)]||(this['_init']=!0x0,this[_0x14d99f(0x20f)][_0x14d99f(0x210)][_0x14d99f(0x246)](_0x2cd887(this[_0x14d99f(0x1fd)]))[_0x14d99f(0x202)](_0x41ffd8=>{const _0x5407dd=_0x14d99f;switch(_0x41ffd8){case _0x2ec079[_0x5407dd(0x22a)]:this[_0x5407dd(0x1dd)]();break;case _0x2ec079['ONLINE']:this[_0x5407dd(0x1f0)]();break;}}),this[_0x14d99f(0x20f)]['event$']['pipe'](_0x2cd887(this[_0x14d99f(0x1fd)]))[_0x14d99f(0x202)](_0x511b8f=>{const _0x2fbae5=_0x14d99f,{eventID:_0x43efde}=_0x511b8f;switch(_0x43efde){case _0x117a17['LIVESHARE_NEW_HOST']:this[_0x2fbae5(0x1e0)](_0x511b8f);break;case _0x117a17[_0x2fbae5(0x22b)]:this[_0x2fbae5(0x1db)](_0x511b8f);break;case _0x117a17[_0x2fbae5(0x201)]:this['_handleTerminate']();break;case _0x117a17['NEW_CHANGESETS']:this[_0x2fbae5(0x21d)](_0x511b8f);break;}}));}[_0x94c2f4(0x1ff)](){const _0x3ed1ef=_0x94c2f4;this[_0x3ed1ef(0x20f)][_0x3ed1ef(0x1e6)]({'eventID':_0x117a17['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3ed1ef(0x1d7)],'userID':this[_0x3ed1ef(0x20f)][_0x3ed1ef(0x256)]()}},this[_0x3ed1ef(0x1d7)]);}['stopPresenting'](){const _0x3e21c3=_0x94c2f4;this['_status']==='presenting'&&(this[_0x3e21c3(0x1f1)]['next'](_0x3e21c3(0x1de)),this['_collabSession'][_0x3e21c3(0x1e6)]({'eventID':_0x117a17['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x3e21c3(0x1d7)]));}[_0x94c2f4(0x1ef)](){const _0x1b7ca6=_0x94c2f4;this[_0x1b7ca6(0x21e)]===_0x1b7ca6(0x26b)&&(this[_0x1b7ca6(0x1f1)]['next'](_0x1b7ca6(0x24b)),this[_0x1b7ca6(0x216)]());}[_0x94c2f4(0x220)](){const _0x2ad836=_0x94c2f4;this[_0x2ad836(0x21e)]===_0x2ad836(0x24b)&&this[_0x2ad836(0x214)]();}[_0x94c2f4(0x1e0)](_0x3366e7){const _0x15fd2c=_0x94c2f4,{presenter:_0x3fa34a}=_0x3366e7[_0x15fd2c(0x215)],_0x3d7902=this[_0x15fd2c(0x20f)]['getMemberID']();this[_0x15fd2c(0x22f)]=_0x3fa34a,_0x3fa34a===_0x3d7902?(this[_0x15fd2c(0x214)](),this['_startPresenting']()):this[_0x15fd2c(0x21e)]!=='not-following'&&(this['_stopPresenting'](),this[_0x15fd2c(0x216)]());}[_0x94c2f4(0x21c)](){const _0x39d8a9=_0x94c2f4,_0x92349={'eventID':_0x117a17[_0x39d8a9(0x253)]};this['_collabSession']['send'](_0x92349,this['_unitID']);}[_0x94c2f4(0x254)](){const _0x3fc57f=_0x94c2f4;this[_0x3fc57f(0x22f)]=null,this[_0x3fc57f(0x21e)]!=='presenting'&&this[_0x3fc57f(0x249)]();}[_0x94c2f4(0x21d)](_0x4b135a){const _0x5e05f9=_0x94c2f4;if(this[_0x5e05f9(0x21e)]==='following'&&this[_0x5e05f9(0x22f)]===_0x4b135a[_0x5e05f9(0x215)][_0x5e05f9(0x23c)]){const _0x59abe1=_0x1a1c61(_0x4b135a[_0x5e05f9(0x215)])['mutations']['reverse']()[_0x5e05f9(0x1f4)](_0x2e3f06=>_0x2e3f06['id']===_0x109733['id']);if(_0x59abe1){const _0x3b2243=_0x59abe1[_0x5e05f9(0x26a)][_0x5e05f9(0x22d)],_0xfa0724=_0x59abe1[_0x5e05f9(0x26a)][_0x5e05f9(0x259)]['id'];setTimeout(()=>{const _0x2eaf2e=_0x5e05f9;this[_0x2eaf2e(0x1fc)][_0x2eaf2e(0x273)](_0x45b437['id'],{'unitId':_0x3b2243,'subUnitId':_0xfa0724},{'fromCollab':!0x0});});}}}[_0x94c2f4(0x21b)](){const _0x5c5dbd=_0x94c2f4;this[_0x5c5dbd(0x1f1)][_0x5c5dbd(0x1f7)]('presenting');const _0x3eb12d=new Map(),_0x54656=this[_0x5c5dbd(0x1e7)]=new _0x56d0d3();_0x54656[_0x5c5dbd(0x26f)](_0x479776(()=>{const _0xd23b2d=_0x5c5dbd;_0x3eb12d['forEach'](_0x4b4532=>_0x4b4532[_0xd23b2d(0x1f6)]()),_0x3eb12d[_0xd23b2d(0x264)]();})),_0x54656['add'](this[_0x5c5dbd(0x1fc)][_0x5c5dbd(0x257)](_0x516c6c=>{const _0x12b720=_0x5c5dbd;var _0x160f74;if(_0x516c6c[_0x12b720(0x23f)]!==_0x11ab87[_0x12b720(0x22e)]||!this['_liveShareService'][_0x12b720(0x1ea)](_0x516c6c['id']))return;const {id:_0x2e50cc}=_0x516c6c;let _0x42f196;_0x3eb12d[_0x12b720(0x242)](_0x2e50cc)?_0x42f196=_0x3eb12d[_0x12b720(0x205)](_0x2e50cc):(_0x42f196=new _0x13c737(),_0x3eb12d[_0x12b720(0x217)](_0x2e50cc,_0x42f196),_0x42f196[_0x12b720(0x246)](_0x3e7564((_0x160f74=this[_0x12b720(0x1d0)]['getConfig'](Ce))!=null?_0x160f74:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x12b720(0x202)](_0x22c8db=>{const _0x4d1d81=_0x12b720;this[_0x4d1d81(0x20f)][_0x4d1d81(0x1e6)]({'eventID':_0x117a17['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x22c8db['id']]:{'id':_0x22c8db['id'],'params':JSON[_0x4d1d81(0x251)](_0x22c8db[_0x4d1d81(0x26a)])}}}},this[_0x4d1d81(0x1d7)]);})),_0x42f196[_0x12b720(0x1f7)](_0x516c6c);})),this[_0x5c5dbd(0x226)][_0x5c5dbd(0x231)](this[_0x5c5dbd(0x1d7)])[_0x5c5dbd(0x233)](_0x21d879=>this['_collabSession'][_0x5c5dbd(0x1e6)]({'eventID':_0x117a17[_0x5c5dbd(0x22b)],'data':{'unitID':this[_0x5c5dbd(0x1d7)],'operations':{[_0x21d879['id']]:{'id':_0x21d879['id'],'params':JSON[_0x5c5dbd(0x251)](_0x21d879[_0x5c5dbd(0x26a)])}}}},this[_0x5c5dbd(0x1d7)]));}['_stopPresenting'](){const _0x2a0dcb=_0x94c2f4;var _0x2c3d1a;this[_0x2a0dcb(0x1f1)][_0x2a0dcb(0x1f7)](_0x2a0dcb(0x1de)),(_0x2c3d1a=this['_commandDisposable'])==null||_0x2c3d1a[_0x2a0dcb(0x1f3)](),this[_0x2a0dcb(0x1e7)]=null;}['_startFollowing'](){const _0x130462=_0x94c2f4;var _0x54879a;(_0x54879a=this['_commandDisposable'])==null||_0x54879a['dispose'](),this['_status$'][_0x130462(0x1f7)](_0x130462(0x24b));}[_0x94c2f4(0x249)](){const _0x5e30bf=_0x94c2f4;var _0x21248e;this['_status$'][_0x5e30bf(0x1f7)](_0x5e30bf(0x1de)),(_0x21248e=this[_0x5e30bf(0x1e7)])==null||_0x21248e[_0x5e30bf(0x1f3)](),this['_commandDisposable']=null;}[_0x94c2f4(0x214)](){const _0x5a4a24=_0x94c2f4;var _0x134633;this['_status$'][_0x5a4a24(0x1f7)](_0x5a4a24(0x26b)),(_0x134633=this[_0x5a4a24(0x1e7)])==null||_0x134633['dispose']();}[_0x94c2f4(0x1db)](_0x2358d9){const _0x4d8d5d=_0x94c2f4;if(['presenting',_0x4d8d5d(0x26b),_0x4d8d5d(0x207)]['includes'](this[_0x4d8d5d(0x21e)])||!_0x2358d9[_0x4d8d5d(0x215)]['presenter']||_0x2358d9[_0x4d8d5d(0x215)]['presenter']===this[_0x4d8d5d(0x20f)]['getMemberID']())return;this[_0x4d8d5d(0x21e)]===_0x4d8d5d(0x1de)&&this[_0x4d8d5d(0x216)]();const _0x53124e=_0x2358d9[_0x4d8d5d(0x215)][_0x4d8d5d(0x1e9)];Object[_0x4d8d5d(0x1d6)](_0x53124e)['forEach'](_0x39f73c=>{const _0x55a1dc=_0x4d8d5d;this[_0x55a1dc(0x1fc)][_0x55a1dc(0x273)](_0x39f73c['id'],_0x39f73c[_0x55a1dc(0x26a)]?JSON[_0x55a1dc(0x20c)](_0x39f73c['params']):null,{'fromCollab':!0x0});});}[_0x94c2f4(0x1dd)](){const _0x4e765c=_0x94c2f4;var _0x304165;this[_0x4e765c(0x1f1)][_0x4e765c(0x1f7)](_0x4e765c(0x207)),(_0x304165=this['_commandDisposable'])==null||_0x304165[_0x4e765c(0x1f3)]();}[_0x94c2f4(0x1f0)](){const _0x14dc6a=_0x94c2f4;this['_status$']['next'](_0x14dc6a(0x1de)),this['_fetchOperations']();}};N=Y([_(0x2,_0x1163db),_(0x3,_0x39e2ff(L)),_(0x4,_0x3fe997)],N);function _0x5199(){const _0x1a36fe=['_startPresenting','_fetchOperations','_handleNewChangeSets','_status','then','stopFollowing','live-share.config','919047HgGWSl','asObservable','use','init','_liveShareService','colorChannel1','getLiveShareCoordinatorSync','entries','OFFLINE','LIVESHARE_OPERATION','defs','unitId','OPERATION','_presenter','getStatus','getInitialStates','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','forEach','length','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','evenodd','636PCVUKY','xlink:href','fill','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','SAME_OPERATION_SHARE_INTERVAL','memberID','_startLiveShareCoordinator','Stop\x20following','type','UNIVER_UNKNOWN','displayName','has','_mountLiveShare','trim','_univerInstanceService','pipe','709408UIgFwJ','NOT_FOLLOWING','_beIdle','univerjs-icon\x20univerjs-icon-','following','unsubscribe','PRESENTING','200yEcOGr','univer-mb-3\x20univer-w-full\x20univer-text-sm','defineProperty','stringify','25888YOuzwn','LIVESHARE_FETCH_OPERATIONS','_handleTerminate','random','getMemberID','onCommandExecuted','currentColor','sheet','registerSharedOperation','delete','svg','path','registerInitialStateReporter','includes','idSuffix','Present\x20this\x20document','onStarting','http://www.w3.org/2000/svg','clear','IDLE','replace','0\x200\x2017\x2017','You\x27re\x20not\x20following\x20the\x20presenter','tag','params','not-following','end','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','current','add','map','HEADER_MENU','_entities','executeCommand','getLiveShareCoordinator','UNIVER_SHEET','setConfig','1em','getValue','symbol','UNIVER_LIVE_SHARE_PLUGIN','_reporters','getCurrentTypeOfUnit$','_configService','none','_init','defIds','8190LUoSJV','assign','values','_unitID','string','pluginName','_collabSessionService','_handleOperation','_config','_handleOffline','idle','div','_handleNewHost','getTypeOfUnitDisposed$','Start','getOwnPropertyDescriptor','You\x27re\x20following\x20the\x20presenter','substring','send','_commandDisposable','_uiPartsService','operations','shouldShareOperation','createInstance','button','onRendered','_sharedOperations','startFollowing','_handleOnline','_status$','getUnitId','dispose','find','Start\x20following','complete','next','requireSession','11079GKKPzB','53473HiYgsm','live-share-icon','_commandService','dispose$','from','tryStartPresenting','override','LIVESHARE_TERMINATE','subscribe','univer-size-4','_injector','get','4224688NAsBSz','offline','mask','presenting','disposeWithMe','attrs','parse','children','registerComponent','_collabSession','sessionStatus$','getTypeOfUnitAdded$','UniverIcon','FOLLOWING','_stopFollowing','data','_startFollowing','set','status$','toString','207567JEysXj'];_0x5199=function(){return _0x1a36fe;};return _0x5199();}function Le(){const _0x351e49=_0x94c2f4,_0x36c017=_0x1a3369(S),_0x12c744=_0x1a3369(_0x131adf),_0x5280d1=_0x43c83b(()=>_0x12c744[_0x351e49(0x27c)](_0x1edb56[_0x351e49(0x275)]),void 0x0,!0x1,[]),[_0x45eb19,_0xb80a]=_0x24f563(null),[_0x47808b,_0x235c0a]=_0x24f563(c[_0x351e49(0x265)]),_0x5714da=_0x5302de(null);return _0x1d9b38(()=>(_0x5280d1&&_0x36c017[_0x351e49(0x274)](_0x5280d1['getUnitId']())[_0x351e49(0x21f)](_0x338243=>{const _0x133b34=_0x351e49;_0xb80a(_0x338243),_0x5714da[_0x133b34(0x26e)]=_0x338243['status$'][_0x133b34(0x202)](_0x4152a6=>{_0x235c0a(_0x4152a6);});}),()=>{const _0x1e5e92=_0x351e49;var _0x317318;(_0x317318=_0x5714da[_0x1e5e92(0x26e)])==null||_0x317318[_0x1e5e92(0x24c)](),_0x5714da[_0x1e5e92(0x26e)]=null;}),[_0x5280d1,_0x36c017]),_0x45eb19?_0x3b2e8c(_0x580ca5,{'align':_0x351e49(0x26c),'disabled':_0x47808b===c[_0x351e49(0x22a)],'className':_0x351e49(0x232),'overlay':_0x3b2e8c(Re,{'status':_0x47808b,'coordinator':_0x45eb19}),'children':_0x3b2e8c(_0x351e49(0x1ec),{'className':_0x38bcb7(_0x351e49(0x23a),{'univer-cursor-not-allowed':_0x47808b===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x47808b!==c[_0x351e49(0x22a)]}),'type':_0x351e49(0x1ec),'children':_0x3b2e8c(W,{'className':_0x351e49(0x203)})})}):null;}function Re(_0x9e5441){const _0xee2a99=_0x94c2f4,{status:_0x2032fd,coordinator:_0x2a92e9}=_0x9e5441;switch(_0x2032fd){case c[_0xee2a99(0x265)]:return _0x3b2e8c($e,{'coordinator':_0x2a92e9});case c[_0xee2a99(0x213)]:return _0x3b2e8c(xe,{'coordinator':_0x2a92e9});case c[_0xee2a99(0x248)]:return _0x3b2e8c(Pe,{'coordinator':_0x2a92e9});case c[_0xee2a99(0x22a)]:return _0x3b2e8c(Te,{});case c[_0xee2a99(0x24d)]:return _0x3b2e8c(Ae,{'coordinator':_0x2a92e9});default:return null;}}function $e(_0x36800c){const _0x58d5c6=_0x94c2f4,{coordinator:_0x86e0a8}=_0x36800c;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c('div',{'className':_0x58d5c6(0x24f),'children':_0x58d5c6(0x261)}),_0x3b2e8c(_0x4bf6a0,{'onClick':()=>_0x86e0a8[_0x58d5c6(0x1ff)](),'children':_0x58d5c6(0x1e2)})]});}function xe(_0x41074d){const _0x3878ce=_0x94c2f4,{coordinator:_0x519a31}=_0x41074d;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c(_0x3878ce(0x1df),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3878ce(0x1e4)}),_0x3b2e8c(_0x4bf6a0,{'onClick':()=>_0x519a31[_0x3878ce(0x220)](),'children':_0x3878ce(0x23e)})]});}function Pe(_0x4209f1){const _0x48fc4a=_0x94c2f4,{coordinator:_0x21a2b7}=_0x4209f1;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c(_0x48fc4a(0x1df),{'className':_0x48fc4a(0x24f),'children':_0x48fc4a(0x268)}),_0x3b2e8c(_0x4bf6a0,{'variant':'text','onClick':()=>_0x21a2b7[_0x48fc4a(0x1ef)](),'children':_0x48fc4a(0x1f5)})]});}function Ae(_0x50433d){const _0x13d664=_0x94c2f4,{coordinator:_0x2de63b}=_0x50433d;return _0x5a8b02(_0x34fda9,{'children':[_0x3b2e8c(_0x13d664(0x1df),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x3b2e8c(_0x4bf6a0,{'variant':'default','onClick':()=>_0x2de63b['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Te(){return _0x3b2e8c(_0x34fda9,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x94c2f4(0x1e3)],He=(_0x4ee589,_0x41e877,_0x5d2bc7,_0x1ec7e2)=>{for(var _0xf6315a=_0x1ec7e2>0x1?void 0x0:_0x1ec7e2?Fe(_0x41e877,_0x5d2bc7):_0x41e877,_0x357fa3=_0x4ee589['length']-0x1,_0x50ca30;_0x357fa3>=0x0;_0x357fa3--)(_0x50ca30=_0x4ee589[_0x357fa3])&&(_0xf6315a=_0x50ca30(_0xf6315a)||_0xf6315a);return _0xf6315a;},A=(_0x54abe0,_0x111759)=>(_0x10a906,_0xfe785d)=>_0x111759(_0x10a906,_0xfe785d,_0x54abe0);let m=class extends _0x237410{constructor(_0x35f642,_0x326940){const _0x433d42=_0x94c2f4;super(),this[_0x433d42(0x204)]=_0x35f642,this['_uiPartsService']=_0x326940,this['_mountLiveShare']();}[_0x94c2f4(0x243)](){const _0x46b4b5=_0x94c2f4;this[_0x46b4b5(0x20a)](this[_0x46b4b5(0x1e8)][_0x46b4b5(0x20e)](_0x54c386[_0x46b4b5(0x271)],()=>_0x40daf7(Le,this[_0x46b4b5(0x204)])));}};m=He([A(0x0,_0x39e2ff(_0x1af462)),A(0x1,_0x189af9)],m);const ye=_0x94c2f4(0x221),T={};var Ue=Object[_0x94c2f4(0x1e3)],Ve=(_0x4b6f53,_0x3ef43d,_0x15c32b,_0x590121)=>{for(var _0x173e04=_0x590121>0x1?void 0x0:_0x590121?Ue(_0x3ef43d,_0x15c32b):_0x3ef43d,_0x300e9=_0x4b6f53['length']-0x1,_0x20d0df;_0x300e9>=0x0;_0x300e9--)(_0x20d0df=_0x4b6f53[_0x300e9])&&(_0x173e04=_0x20d0df(_0x173e04)||_0x173e04);return _0x173e04;},je=(_0x1dce1c,_0x18628f)=>(_0x4bf7ce,_0x54c527)=>_0x18628f(_0x4bf7ce,_0x54c527,_0x1dce1c);let I=class extends _0x237410{constructor(_0x48fd1b){const _0x517999=_0x94c2f4;super(),this[_0x517999(0x226)]=_0x48fd1b,this['_init']();}['_init'](){const _0x1d05b8=_0x94c2f4;[_0x33d3cc['id'],_0x1ac8e2['id'],_0x45b437['id']][_0x1d05b8(0x233)](_0x2aa60b=>{const _0x3851a6=_0x1d05b8;this[_0x3851a6(0x20a)](this[_0x3851a6(0x226)][_0x3851a6(0x25a)](_0x2aa60b));});}};I=Ve([je(0x0,_0x39e2ff(L))],I);var Me=Object['defineProperty'],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x25b41c,_0xc9ab13,_0x373b7a)=>_0xc9ab13 in _0x25b41c?Me(_0x25b41c,_0xc9ab13,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x373b7a}):_0x25b41c[_0xc9ab13]=_0x373b7a,We=(_0x448b4b,_0x18ed3d,_0x381973,_0x421da2)=>{const _0x4317f8=_0x94c2f4;for(var _0x39ec83=_0x421da2>0x1?void 0x0:_0x421da2?ke(_0x18ed3d,_0x381973):_0x18ed3d,_0xefb135=_0x448b4b[_0x4317f8(0x234)]-0x1,_0x27f4d5;_0xefb135>=0x0;_0xefb135--)(_0x27f4d5=_0x448b4b[_0xefb135])&&(_0x39ec83=_0x27f4d5(_0x39ec83)||_0x39ec83);return _0x39ec83;},F=(_0x25f3bc,_0x4a93e5)=>(_0x311f14,_0x1147ea)=>_0x4a93e5(_0x311f14,_0x1147ea,_0x25f3bc),B=(_0x24ac65,_0x1c5268,_0x2aba29)=>Ge(_0x24ac65,typeof _0x1c5268!=_0x94c2f4(0x279)?_0x1c5268+'':_0x1c5268,_0x2aba29);const Ye=_0x94c2f4(0x27a);let b=class extends _0x1f099d{constructor(_0x152420=T,_0x59ea89,_0x51de){const _0x2d3149=_0x94c2f4;super(),this[_0x2d3149(0x1dc)]=_0x152420,this[_0x2d3149(0x204)]=_0x59ea89,this[_0x2d3149(0x1d0)]=_0x51de;const {..._0x3f9fb8}=_0x38fee5({},T,this['_config']);this['_configService'][_0x2d3149(0x276)](ye,_0x3f9fb8);}[_0x94c2f4(0x262)](){const _0x172bdc=_0x94c2f4;_0x20cdf0(this[_0x172bdc(0x204)],_0x1c6eec([[L],[S],[I],[m]],this[_0x172bdc(0x1dc)][_0x172bdc(0x200)])),_0x5e0f2d(this['_injector'],[[I]]);}[_0x94c2f4(0x1ed)](){_0x5e0f2d(this['_injector'],[[m]]);}};B(b,_0x94c2f4(0x23f),_0x1edb56[_0x94c2f4(0x240)]),B(b,_0x94c2f4(0x1d9),Ye),b=We([_0x298814(_0x4883e2),F(0x1,_0x39e2ff(_0x1af462)),F(0x2,_0x1163db)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x2e52(_0xa08691,_0x402dc3){_0xa08691=_0xa08691-0xda;const _0xdfe7a0=_0xdfe7();let _0x2e525a=_0xdfe7a0[_0xa08691];return _0x2e525a;}function _0xdfe7(){const _0x5ac355=['getRenderById','getLiveShareStatus','15740NEhymU','8732889YYGniS','_injector','get','syncExecuteCommand','8oiafOW','stopFollowing','extend','getLiveShareCoordinatorSync','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','@univerjs/sheets-ui','@univerjs-pro/live-share','tryStartPresenting','startRow','getActiveWorkbook','387084IbzEjQ','@univerjs/sheets','PRESENTING','FUniver','FEnum','LiveShareStatusEnum','UniverSheets','8048060FGBzuj','executeCommand','54635EUpREP','1996018JoSYSj','2989551dJXWGH','LiveShareController','No\x20active\x20workbook\x20found.','LiveShareStatus','121VujcNL','565uNjSdm','@univerjs/core/facade','_initialize','_commandService','getStatus','amd','@univerjs/sheets/facade','getActiveSheet','startColumn','FRange','108aTXOAa','SetWorksheetActiveOperation','getSheetId','1tMDXqJ','IRenderManagerService','startFollowing','UniverSheetsUi','UniverProLiveShare','stopPresenting','getUnitId','UniverEngineRender','startPresenting','@univerjs/engine-render','getId'];_0xdfe7=function(){return _0x5ac355;};return _0xdfe7();}(function(_0x19398c,_0x4e169e){const _0x80a9b4=_0x2e52,_0x20b2f4=_0x19398c();while(!![]){try{const _0x52a54b=parseInt(_0x80a9b4(0xff))/0x1*(parseInt(_0x80a9b4(0xec))/0x2)+-parseInt(_0x80a9b4(0xed))/0x3+parseInt(_0x80a9b4(0x10c))/0x4*(parseInt(_0x80a9b4(0xf2))/0x5)+-parseInt(_0x80a9b4(0xfc))/0x6*(parseInt(_0x80a9b4(0xeb))/0x7)+parseInt(_0x80a9b4(0x111))/0x8*(parseInt(_0x80a9b4(0x10d))/0x9)+-parseInt(_0x80a9b4(0xe9))/0xa+-parseInt(_0x80a9b4(0xf1))/0xb*(-parseInt(_0x80a9b4(0xe2))/0xc);if(_0x52a54b===_0x4e169e)break;else _0x20b2f4['push'](_0x20b2f4['shift']());}catch(_0x52fffb){_0x20b2f4['push'](_0x20b2f4['shift']());}}}(_0xdfe7,0xc9a8f),function(_0x8734bb,_0x112193){const _0x26aa40=_0x2e52;typeof exports=='object'&&typeof module<'u'?_0x112193(require('@univerjs-pro/live-share'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define=='function'&&define[_0x26aa40(0xf7)]?define([_0x26aa40(0xde),_0x26aa40(0x108),_0x26aa40(0xe3),_0x26aa40(0xdd),_0x26aa40(0xf8),_0x26aa40(0xf3)],_0x112193):(_0x8734bb=typeof globalThis<'u'?globalThis:_0x8734bb||self,_0x112193(_0x8734bb[_0x26aa40(0x103)],_0x8734bb[_0x26aa40(0x106)],_0x8734bb[_0x26aa40(0xe8)],_0x8734bb[_0x26aa40(0x102)],_0x8734bb['UniverSheetsFacade'],_0x8734bb['UniverCoreFacade']));}(this,function(_0x43fc83,_0x336b3d,_0x45d7e6,_0x26ef7f,_0xd5575e,_0x5f379d){'use strict';const _0x44a539=_0x2e52;class _0x2085c5 extends _0xd5575e['FRange']{[_0x44a539(0xf4)](_0x128b23,_0x50a45b,_0xbfd769,_0xcef31,_0x35aac4){const _0x37aec2=_0x44a539,_0x4061bc=_0x128b23['get'](_0x43fc83['LiveShareController']),_0x36e90b=_0x128b23[_0x37aec2(0x10f)](_0x336b3d[_0x37aec2(0x100)]),_0x295b85=_0x50a45b[_0x37aec2(0x105)](),_0x3ca1bc=_0x50a45b[_0x37aec2(0xf9)](),_0x5b37aa=_0x4061bc[_0x37aec2(0xdb)](_0x295b85);(_0x5b37aa==null?void 0x0:_0x5b37aa[_0x37aec2(0xf6)]())!==_0x43fc83[_0x37aec2(0xf0)][_0x37aec2(0xe4)]||(_0xbfd769[_0x37aec2(0xfe)]()!==_0x3ca1bc[_0x37aec2(0xfe)]()&&this[_0x37aec2(0xf5)][_0x37aec2(0xea)](_0x45d7e6[_0x37aec2(0xfd)]['id'],{'unitId':_0x295b85,'subUnitId':_0xbfd769[_0x37aec2(0xfe)]()}),!_0x36e90b[_0x37aec2(0x10a)](_0x295b85))||_0x35aac4[_0x37aec2(0x110)](_0x26ef7f['SetScrollOperation']['id'],{'unitId':_0x50a45b[_0x37aec2(0x105)](),'sheetId':_0xbfd769[_0x37aec2(0xfe)](),'sheetViewStartRow':_0xcef31[_0x37aec2(0xe0)],'sheetViewStartColumn':_0xcef31[_0x37aec2(0xfa)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0xd5575e[_0x44a539(0xfb)][_0x44a539(0xda)](_0x2085c5);class _0x2b1b99 extends _0x5f379d[_0x44a539(0xe5)]{[_0x44a539(0x10b)](){const _0x5581d0=_0x44a539;var _0x4d73de,_0x14b9b8;const _0x529b23=this[_0x5581d0(0x10e)]['get'](_0x43fc83[_0x5581d0(0xee)]),_0x5188bf=(_0x4d73de=this[_0x5581d0(0xe1)]())==null?void 0x0:_0x4d73de[_0x5581d0(0x109)]();if(!_0x5188bf)throw new Error(_0x5581d0(0xef));const _0x14c306=_0x529b23[_0x5581d0(0xdb)](_0x5188bf);return(_0x14b9b8=_0x14c306==null?void 0x0:_0x14c306[_0x5581d0(0xf6)]())!=null?_0x14b9b8:_0x43fc83[_0x5581d0(0xf0)]['IDLE'];}[_0x44a539(0x101)](){const _0x2f0155=_0x44a539;var _0x46e805;const _0x5cccab=this['_injector']['get'](_0x43fc83['LiveShareController']),_0x26c080=(_0x46e805=this['getActiveWorkbook']())==null?void 0x0:_0x46e805['getId']();if(!_0x26c080)throw new Error(_0x2f0155(0xef));const _0x3dfa70=_0x5cccab['getLiveShareCoordinatorSync'](_0x26c080);if(!_0x3dfa70)throw new Error(_0x2f0155(0xdc));_0x3dfa70['startFollowing']();}[_0x44a539(0x112)](){const _0x5e6b37=_0x44a539;var _0x5ab6d9;const _0x292091=this['_injector'][_0x5e6b37(0x10f)](_0x43fc83[_0x5e6b37(0xee)]),_0x93dab2=(_0x5ab6d9=this[_0x5e6b37(0xe1)]())==null?void 0x0:_0x5ab6d9[_0x5e6b37(0x109)]();if(!_0x93dab2)throw new Error('No\x20active\x20workbook\x20found.');const _0x109e1f=_0x292091[_0x5e6b37(0xdb)](_0x93dab2);if(!_0x109e1f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x109e1f[_0x5e6b37(0x112)]();}[_0x44a539(0x107)](){const _0x3805b3=_0x44a539;var _0x245fc1;const _0x56174b=this[_0x3805b3(0x10e)]['get'](_0x43fc83[_0x3805b3(0xee)]),_0x4cc45b=(_0x245fc1=this['getActiveWorkbook']())==null?void 0x0:_0x245fc1[_0x3805b3(0x109)]();if(!_0x4cc45b)throw new Error('No\x20active\x20workbook\x20found.');const _0x38ef6a=_0x56174b[_0x3805b3(0xdb)](_0x4cc45b);if(!_0x38ef6a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x38ef6a[_0x3805b3(0xdf)]();}[_0x44a539(0x104)](){const _0x2bffb0=_0x44a539;var _0x58ac06;const _0x1a5bb2=this[_0x2bffb0(0x10e)][_0x2bffb0(0x10f)](_0x43fc83['LiveShareController']),_0x3733ef=(_0x58ac06=this[_0x2bffb0(0xe1)]())==null?void 0x0:_0x58ac06[_0x2bffb0(0x109)]();if(!_0x3733ef)throw new Error('No\x20active\x20workbook\x20found.');const _0x461940=_0x1a5bb2[_0x2bffb0(0xdb)](_0x3733ef);if(!_0x461940)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x461940[_0x2bffb0(0x104)]();}}_0x5f379d[_0x44a539(0xe5)][_0x44a539(0xda)](_0x2b1b99);class _0x593f73 extends _0x5f379d[_0x44a539(0xe6)]{get[_0x44a539(0xe7)](){const _0x2d572d=_0x44a539;return _0x43fc83[_0x2d572d(0xf0)];}}_0x5f379d['FEnum']['extend'](_0x593f73);}));
|
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 _0x4c6b(){const _0x15262d=['useRef','14471960pWOQQn','end','init','UNIVER_SHEET','set','button','Plugin','attrs','UniverCollaborationClientPlugin','mask','_startLiveShareCoordinator','IUIPartsService','904LHVbtM','_sharedOperations','Button','defineProperty','ICommandService','_stopFollowing','override','object','jsxs','function','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','trim','_entities','entries','0\x200\x2017\x2017','univer-mb-3\x20univer-w-full\x20univer-text-sm','unsubscribe','add','startFollowing','UniverSheets','delete','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','CollaborationEvent','string','exports','forEach','12579glIYwz','following','_collabSession','_handleOffline','IDLE','length','_beIdle','1em','LiveShareController','live-share-icon','NOT_FOLLOWING','DisposableCollection','offline','_init','path','_config','dispose','type','data','@univerjs/sheets-ui','OPERATION','default','BehaviorSubject','defIds','getTypeOfUnitAdded$','UNIVER_LIVE_SHARE_PLUGIN','none','_liveShareService','UniverIcon','unitId','next','_presenter','1131270qvTfNo','operations','reverse','PRESENTING','Injector','complete','stopFollowing','use','245hyXokz','event$','SAME_OPERATION_SHARE_INTERVAL','presenting','_handleTerminate','includes','then','BuiltInUIPart','LIVESHARE_TERMINATE','jsx','idle','tag','subscribe','_status$','getConfig','toString','univerjs-icon\x20univerjs-icon-','symbol','throttleTime','34LZVaVm','pluginName','SetWorksheetActiveOperation','6094818CaxbLd','@univerjs/ui','createElement','React','fill','_stopPresenting','div','createInstance','currentColor','_reporters','LiveShareService','_startPresenting','Stop\x20following','onCommandExecuted','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','executeCommand','_collabSessionService','@univerjs-pro/collaboration','disposeWithMe','useDependency','FOLLOWING','LiveShareCoordinator','ONLINE','IUniverInstanceService','_startFollowing','SetZoomRatioOperation','LiveShareStatus','parse','Start\x20following','IConfigService','touchDependencies','SessionStatus','getUnitId','svg','getCurrentTypeOfUnit$','_univerInstanceService','requireSession','defs','133674wYmWju','registerInitialStateReporter','OFFLINE','RxDisposable','xlink:href','connectInjector','UniverLiveSharePlugin','useState','send','_unitID','useEffect','SetScrollOperation','assign','replace','mutations','has','params','@univerjs/design','Inject','getValue','@univerjs/sheets','_commandDisposable','stopPresenting','onStarting','asObservable','evenodd','Dropdown','displayName','Stop\x20presenting','current','_handleOnline','status$','stringify','find','takeUntil','getLiveShareCoordinator','_configService','parseProtocolChangeset','UniverUi','dispose$','registerSharedOperation','UniverDesign','rxjs','useObservable','getTypeOfUnitDisposed$','children','getLiveShareCoordinatorSync','30312TcZFPz','amd','DesktopLiveShareController','forwardRef','memberID','mergeOverrideWithDependencies','idSuffix','InsertSheetMutation','Subject','not-following','getOwnPropertyDescriptor','_handleNewChangeSets','presenter','LIVESHARE_NEW_HOST','_status','pipe','clsx','text','You\x27re\x20not\x20following\x20the\x20presenter','registerDependencies','merge','_commandService','UniverCore','LIVESHARE_OPERATION','live-share.config','_injector','Present\x20this\x20document','CommandType','colorChannel1','5366700NireLU','substring','UniverSheetsUi','22zWHyPe','UniverInstanceType','tryStartPresenting','toDisposable','NEW_CHANGESETS','_uiPartsService','HEADER_MENU','map','Fragment','univer-size-4','Disposable'];_0x4c6b=function(){return _0x15262d;};return _0x4c6b();}function _0x586c(_0x5691b3,_0x4f558c){_0x5691b3=_0x5691b3-0x19d;const _0x4c6bd4=_0x4c6b();let _0x586cac=_0x4c6bd4[_0x5691b3];return _0x586cac;}(function(_0x475143,_0x33b237){const _0x2c4435=_0x586c,_0x282416=_0x475143();while(!![]){try{const _0x2d7f0d=-parseInt(_0x2c4435(0x25d))/0x1+-parseInt(_0x2c4435(0x278))/0x2*(parseInt(_0x2c4435(0x1bc))/0x3)+parseInt(_0x2c4435(0x1eb))/0x4*(parseInt(_0x2c4435(0x265))/0x5)+-parseInt(_0x2c4435(0x27b))/0x6+-parseInt(_0x2c4435(0x23d))/0x7*(parseInt(_0x2c4435(0x223))/0x8)+parseInt(_0x2c4435(0x208))/0x9+-parseInt(_0x2c4435(0x217))/0xa*(-parseInt(_0x2c4435(0x20b))/0xb);if(_0x2d7f0d===_0x33b237)break;else _0x282416['push'](_0x282416['shift']());}catch(_0x58f1c0){_0x282416['push'](_0x282416['shift']());}}}(_0x4c6b,0xb82da),function(_0x3654e5,_0xba6531){const _0x44eafc=_0x586c;typeof exports==_0x44eafc(0x22a)&&typeof module<'u'?_0xba6531(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==_0x44eafc(0x22c)&&define[_0x44eafc(0x1ec)]?define([_0x44eafc(0x23b),'@univerjs/core',_0x44eafc(0x27c),'react/jsx-runtime',_0x44eafc(0x1cd),'react',_0x44eafc(0x1a7),'@univerjs-pro/collaboration-client',_0x44eafc(0x1d0),_0x44eafc(0x1e6),'rxjs/operators',_0x44eafc(0x250)],_0xba6531):(_0x3654e5=typeof globalThis<'u'?globalThis:_0x3654e5||self,_0xba6531(_0x3654e5['UniverProLiveShare']={},_0x3654e5[_0x44eafc(0x201)],_0x3654e5[_0x44eafc(0x1e2)],_0x3654e5[_0x44eafc(0x27e)],_0x3654e5[_0x44eafc(0x1e5)],_0x3654e5['React'],_0x3654e5['UniverProCollaboration'],_0x3654e5['UniverProCollaborationClient'],_0x3654e5[_0x44eafc(0x236)],_0x3654e5[_0x44eafc(0x1e6)],_0x3654e5['rxjs']['operators'],_0x3654e5[_0x44eafc(0x20a)]));}(this,function(_0x531713,_0x578637,_0x51c68d,_0x4e8258,_0x80076a,_0x1b3469,_0x17874a,_0x42171a,_0x2275db,_0x48b2dd,_0x2cdb56,_0x138877){'use strict';const _0x31a07c=_0x586c;var _0x239b00=Object[_0x31a07c(0x226)],_0x3d93b0=(_0xecdc66,_0x4d9352,_0x3ec629)=>_0x4d9352 in _0xecdc66?_0x239b00(_0xecdc66,_0x4d9352,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ec629}):_0xecdc66[_0x4d9352]=_0x3ec629,_0xe30dc1=(_0x216b71,_0x6eb35d,_0x57015a)=>_0x3d93b0(_0x216b71,typeof _0x6eb35d!=_0x31a07c(0x276)?_0x6eb35d+'':_0x6eb35d,_0x57015a);function _0x63995d({ref:_0x5a59aa,..._0xd678de}){const _0x43a19b=_0x31a07c,{icon:_0xe237ef,id:_0xb28f4a,className:_0x505128,extend:_0x402d11,..._0x1b6fbe}=_0xd678de,_0x4ac154=(_0x43a19b(0x275)+_0xb28f4a+'\x20'+(_0x505128||''))[_0x43a19b(0x22e)](),_0x5466dd=_0x1b3469[_0x43a19b(0x216)]('_'+_0x147831());return _0x41ee75(_0xe237ef,''+_0xb28f4a,{'defIds':_0xe237ef[_0x43a19b(0x254)],'idSuffix':_0x5466dd['current']},{'ref':_0x5a59aa,'className':_0x4ac154,..._0x1b6fbe},_0x402d11);}function _0x41ee75(_0x12767d,_0x1e40e5,_0x307267,_0x5a3788,_0x27a926){const _0x17b04a=_0x31a07c;return _0x1b3469[_0x17b04a(0x27d)](_0x12767d['tag'],{'key':_0x1e40e5,..._0xda2bc8(_0x12767d,_0x307267,_0x27a926),..._0x5a3788},(_0x50ffdc(_0x12767d,_0x307267)['children']||[])['map']((_0x304b13,_0x1fe029)=>_0x41ee75(_0x304b13,_0x1e40e5+'-'+_0x12767d[_0x17b04a(0x270)]+'-'+_0x1fe029,_0x307267,void 0x0,_0x27a926)));}function _0xda2bc8(_0x3e14ea,_0x51ebed,_0x2e8c45){const _0xe5cc0c=_0x31a07c,_0x2fe97a={..._0x3e14ea[_0xe5cc0c(0x21e)]};_0x2e8c45!=null&&_0x2e8c45[_0xe5cc0c(0x207)]&&_0x2fe97a[_0xe5cc0c(0x27f)]===_0xe5cc0c(0x207)&&(_0x2fe97a[_0xe5cc0c(0x27f)]=_0x2e8c45[_0xe5cc0c(0x207)]),_0x3e14ea['tag']===_0xe5cc0c(0x220)&&_0x2fe97a['id']&&(_0x2fe97a['id']=_0x2fe97a['id']+_0x51ebed[_0xe5cc0c(0x1f1)]),Object['entries'](_0x2fe97a)[_0xe5cc0c(0x23c)](([_0x23fa01,_0x3c6181])=>{const _0x1c10c4=_0xe5cc0c;_0x23fa01===_0x1c10c4(0x220)&&typeof _0x3c6181==_0x1c10c4(0x23a)&&(_0x2fe97a[_0x23fa01]=_0x3c6181[_0x1c10c4(0x1c9)](/url\(#(.*)\)/,'url(#$1'+_0x51ebed[_0x1c10c4(0x1f1)]+')'));});const {defIds:_0x5195db}=_0x51ebed;return!_0x5195db||_0x5195db[_0xe5cc0c(0x242)]===0x0||(_0x3e14ea[_0xe5cc0c(0x270)]===_0xe5cc0c(0x264)&&_0x2fe97a['xlink:href']&&(_0x2fe97a[_0xe5cc0c(0x1c0)]=_0x2fe97a[_0xe5cc0c(0x1c0)]+_0x51ebed[_0xe5cc0c(0x1f1)]),Object[_0xe5cc0c(0x230)](_0x2fe97a)[_0xe5cc0c(0x23c)](([_0xf8b671,_0x1b4b61])=>{const _0x447dc3=_0xe5cc0c;typeof _0x1b4b61==_0x447dc3(0x23a)&&(_0x2fe97a[_0xf8b671]=_0x1b4b61[_0x447dc3(0x1c9)](/url\(#(.*)\)/,'url(#$1'+_0x51ebed[_0x447dc3(0x1f1)]+')'));})),_0x2fe97a;}function _0x50ffdc(_0x468a73,_0x2ae4b7){const _0xcd819c=_0x31a07c;var _0x128da0;const {defIds:_0x144871}=_0x2ae4b7;return!_0x144871||_0x144871[_0xcd819c(0x242)]===0x0?_0x468a73:_0x468a73[_0xcd819c(0x270)]===_0xcd819c(0x1bb)&&((_0x128da0=_0x468a73[_0xcd819c(0x1e9)])!=null&&_0x128da0[_0xcd819c(0x242)])?{..._0x468a73,'children':_0x468a73[_0xcd819c(0x1e9)]['map'](_0x14470c=>typeof _0x14470c['attrs']['id']==_0xcd819c(0x23a)&&_0x144871&&_0x144871[_0xcd819c(0x26a)](_0x14470c[_0xcd819c(0x21e)]['id'])?{..._0x14470c,'attrs':{..._0x14470c['attrs'],'id':_0x14470c[_0xcd819c(0x21e)]['id']+_0x2ae4b7['idSuffix']}}:_0x14470c)}:_0x468a73;}function _0x147831(){const _0x17c662=_0x31a07c;return Math['random']()[_0x17c662(0x274)](0x24)[_0x17c662(0x209)](0x2,0x8);}_0x63995d[_0x31a07c(0x1d7)]=_0x31a07c(0x259);const _0x2b8dca={'tag':_0x31a07c(0x1b7),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x31a07c(0x257),'viewBox':_0x31a07c(0x231),'width':_0x31a07c(0x244),'height':'1em'},'children':[{'tag':_0x31a07c(0x24b),'attrs':{'fill':_0x31a07c(0x19e),'d':_0x31a07c(0x238)}},{'tag':_0x31a07c(0x24b),'attrs':{'fill':_0x31a07c(0x19e),'d':_0x31a07c(0x22d),'fillRule':_0x31a07c(0x1d5),'clipRule':_0x31a07c(0x1d5)}}]},_0x1c04bc=_0x1b3469[_0x31a07c(0x1ee)](function(_0x2fa48c,_0x43e478){const _0x15676b=_0x31a07c;return _0x1b3469['createElement'](_0x63995d,Object[_0x15676b(0x1c8)]({},_0x2fa48c,{'id':_0x15676b(0x246),'ref':_0x43e478,'icon':_0x2b8dca}));});_0x1c04bc[_0x31a07c(0x1d7)]='LiveShareIcon';class _0x4c4275 extends _0x578637[_0x31a07c(0x215)]{constructor(){const _0x58d420=_0x31a07c;super(...arguments),_0xe30dc1(this,'_sharedOperations',new Set()),_0xe30dc1(this,_0x58d420(0x19f),new Set());}[_0x31a07c(0x1e4)](_0x5234ba){const _0x14c4d0=_0x31a07c;return this[_0x14c4d0(0x224)][_0x14c4d0(0x234)](_0x5234ba),_0x578637[_0x14c4d0(0x20e)](()=>this[_0x14c4d0(0x224)][_0x14c4d0(0x237)](_0x5234ba));}[_0x31a07c(0x1bd)](_0x28024f){const _0xc8213d=_0x31a07c;return this[_0xc8213d(0x19f)][_0xc8213d(0x234)](_0x28024f),_0x578637[_0xc8213d(0x20e)](()=>this[_0xc8213d(0x19f)][_0xc8213d(0x237)](_0x28024f));}['shouldShareOperation'](_0x1697ef){const _0x2e535b=_0x31a07c;return this[_0x2e535b(0x224)]['has'](_0x1697ef);}['getInitialStates'](_0x1491f5){const _0x2a03a6=_0x31a07c;return Array['from'](this['_reporters'])[_0x2a03a6(0x212)](_0x4f6601=>_0x4f6601(_0x1491f5));}}var _0x13e93e=Object[_0x31a07c(0x1f5)],_0x2a654c=(_0x170577,_0x550328,_0x50a447,_0x1bd166)=>{const _0x356040=_0x31a07c;for(var _0x4bd265=_0x1bd166>0x1?void 0x0:_0x1bd166?_0x13e93e(_0x550328,_0x50a447):_0x550328,_0x21128a=_0x170577[_0x356040(0x242)]-0x1,_0x5644a7;_0x21128a>=0x0;_0x21128a--)(_0x5644a7=_0x170577[_0x21128a])&&(_0x4bd265=_0x5644a7(_0x4bd265)||_0x4bd265);return _0x4bd265;},_0x32ef52=(_0x458f3d,_0x268f93)=>(_0x30ba42,_0x519089)=>_0x268f93(_0x30ba42,_0x519089,_0x458f3d);_0x531713['LiveShareController']=class extends _0x578637[_0x31a07c(0x1bf)]{constructor(_0x1ffd76,_0xad80f2,_0x3f3ae7){const _0x2ac298=_0x31a07c;super(),_0xe30dc1(this,_0x2ac298(0x22f),new Map()),(this[_0x2ac298(0x1b9)]=_0x1ffd76,this[_0x2ac298(0x204)]=_0xad80f2,this[_0x2ac298(0x1a6)]=_0x3f3ae7,this[_0x2ac298(0x24a)]());}async['getLiveShareCoordinator'](_0x38f9a0){const _0x53f0dc=_0x31a07c;return this[_0x53f0dc(0x22f)][_0x53f0dc(0x1cb)](_0x38f9a0)||await this[_0x53f0dc(0x221)](_0x38f9a0),this[_0x53f0dc(0x22f)]['get'](_0x38f9a0);}[_0x31a07c(0x1ea)](_0x3a9df4){const _0x4b4304=_0x31a07c;var _0x53cca1;return(_0x53cca1=this[_0x4b4304(0x22f)]['get'](_0x3a9df4))!=null?_0x53cca1:null;}[_0x31a07c(0x24a)](){const _0x448d97=_0x31a07c;this[_0x448d97(0x1b9)][_0x448d97(0x255)](_0x578637[_0x448d97(0x20c)]['UNIVER_SHEET'])[_0x448d97(0x1fa)](_0x2cdb56[_0x448d97(0x1de)](this[_0x448d97(0x1e3)]))[_0x448d97(0x271)](async _0x54721e=>{const _0x2265bf=_0x448d97,_0x1dbcbb=_0x54721e[_0x2265bf(0x1b6)]();this[_0x2265bf(0x22f)][_0x2265bf(0x1cb)](_0x1dbcbb)||this[_0x2265bf(0x221)](_0x1dbcbb);}),this[_0x448d97(0x1b9)][_0x448d97(0x1e8)](_0x578637[_0x448d97(0x20c)][_0x448d97(0x21a)])[_0x448d97(0x1fa)](_0x2cdb56[_0x448d97(0x1de)](this[_0x448d97(0x1e3)]))[_0x448d97(0x271)](_0x2a7e90=>{const _0x36b115=_0x448d97,_0x4d0f1e=_0x2a7e90['getUnitId'](),_0x15d506=this[_0x36b115(0x22f)]['get'](_0x4d0f1e);_0x15d506==null||_0x15d506[_0x36b115(0x24d)]();});}async[_0x31a07c(0x221)](_0x420058){const _0x37bd0d=_0x31a07c,_0x4be8b6=await this['_collabSessionService'][_0x37bd0d(0x1ba)](_0x420058),_0x24bd08=this['_injector'][_0x37bd0d(0x19d)](_0x531713['LiveShareCoordinator'],_0x420058,_0x4be8b6);return _0x24bd08[_0x37bd0d(0x219)](),this['_entities'][_0x37bd0d(0x21b)](_0x420058,_0x24bd08),_0x24bd08;}},_0x531713[_0x31a07c(0x245)]=_0x2a654c([_0x32ef52(0x0,_0x578637[_0x31a07c(0x1ad)]),_0x32ef52(0x1,_0x578637[_0x31a07c(0x1ce)](_0x578637[_0x31a07c(0x261)])),_0x32ef52(0x2,_0x578637[_0x31a07c(0x1ce)](_0x42171a['CollaborationSessionService']))],_0x531713[_0x31a07c(0x245)]);var _0x1e02cf=(_0x35005c=>(_0x35005c[_0x31a07c(0x1be)]=_0x31a07c(0x249),_0x35005c[_0x31a07c(0x241)]='idle',_0x35005c['FOLLOWING']=_0x31a07c(0x23e),_0x35005c[_0x31a07c(0x247)]=_0x31a07c(0x1f4),_0x35005c[_0x31a07c(0x260)]=_0x31a07c(0x268),_0x35005c))(_0x1e02cf||{});const _0x596c2f=_0x31a07c(0x267),_0x5da53b=0xc8;_0x531713['LiveShareCoordinator']=class extends _0x578637[_0x31a07c(0x1bf)]{constructor(_0x21f770,_0x26d646,_0x2ad1ab,_0x17dd20,_0x24f631){const _0x579c06=_0x31a07c;super(),_0xe30dc1(this,_0x579c06(0x272),new _0x48b2dd[(_0x579c06(0x253))](_0x579c06(0x26f))),_0xe30dc1(this,_0x579c06(0x1db),this['_status$'][_0x579c06(0x1d4)]()),_0xe30dc1(this,'_init',!0x1),_0xe30dc1(this,_0x579c06(0x1d1),null),_0xe30dc1(this,_0x579c06(0x25c),null),(this[_0x579c06(0x1c5)]=_0x21f770,this[_0x579c06(0x23f)]=_0x26d646,this[_0x579c06(0x1e0)]=_0x2ad1ab,this['_liveShareService']=_0x17dd20,this[_0x579c06(0x200)]=_0x24f631);}get[_0x31a07c(0x1f9)](){const _0x5578a8=_0x31a07c;return this[_0x5578a8(0x272)][_0x5578a8(0x1cf)]();}[_0x31a07c(0x24d)](){const _0x2cf0b2=_0x31a07c;var _0x430de5;(_0x430de5=this[_0x2cf0b2(0x1d1)])==null||_0x430de5[_0x2cf0b2(0x24d)](),this[_0x2cf0b2(0x272)][_0x2cf0b2(0x25b)](_0x2cf0b2(0x26f)),this[_0x2cf0b2(0x272)]['complete']();}['getStatus'](){const _0xbd33b4=_0x31a07c;return this[_0xbd33b4(0x1f9)];}[_0x31a07c(0x219)](){const _0x3b67f9=_0x31a07c;this[_0x3b67f9(0x24a)]||(this[_0x3b67f9(0x24a)]=!0x0,this['_collabSession']['sessionStatus$'][_0x3b67f9(0x1fa)](_0x2cdb56[_0x3b67f9(0x1de)](this[_0x3b67f9(0x1e3)]))[_0x3b67f9(0x271)](_0x227e40=>{const _0x53c311=_0x3b67f9;switch(_0x227e40){case _0x42171a[_0x53c311(0x1b5)][_0x53c311(0x1be)]:this['_handleOffline']();break;case _0x42171a[_0x53c311(0x1b5)][_0x53c311(0x1ac)]:this[_0x53c311(0x1da)]();break;}}),this[_0x3b67f9(0x23f)][_0x3b67f9(0x266)][_0x3b67f9(0x1fa)](_0x2cdb56[_0x3b67f9(0x1de)](this[_0x3b67f9(0x1e3)]))[_0x3b67f9(0x271)](_0xc7f616=>{const _0x536da6=_0x3b67f9,{eventID:_0x500312}=_0xc7f616;switch(_0x500312){case _0x17874a['CollaborationEvent'][_0x536da6(0x1f8)]:this['_handleNewHost'](_0xc7f616);break;case _0x17874a[_0x536da6(0x239)][_0x536da6(0x202)]:this['_handleOperation'](_0xc7f616);break;case _0x17874a[_0x536da6(0x239)]['LIVESHARE_TERMINATE']:this[_0x536da6(0x269)]();break;case _0x17874a[_0x536da6(0x239)][_0x536da6(0x20f)]:this[_0x536da6(0x1f6)](_0xc7f616);break;}}));}[_0x31a07c(0x20d)](){const _0x24044d=_0x31a07c;this[_0x24044d(0x23f)][_0x24044d(0x1c4)]({'eventID':_0x17874a[_0x24044d(0x239)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x24044d(0x1c5)],'userID':this['_collabSession']['getMemberID']()}},this[_0x24044d(0x1c5)]);}['stopPresenting'](){const _0x146290=_0x31a07c;this[_0x146290(0x1f9)]===_0x146290(0x268)&&(this['_status$']['next']('idle'),this[_0x146290(0x23f)][_0x146290(0x1c4)]({'eventID':_0x17874a[_0x146290(0x239)][_0x146290(0x26d)],'data':{'unitID':this['_unitID']}},this[_0x146290(0x1c5)]));}['startFollowing'](){const _0x24afa2=_0x31a07c;this[_0x24afa2(0x1f9)]==='not-following'&&(this[_0x24afa2(0x272)][_0x24afa2(0x25b)]('following'),this['_startFollowing']());}[_0x31a07c(0x263)](){const _0x388622=_0x31a07c;this[_0x388622(0x1f9)]==='following'&&this[_0x388622(0x228)]();}['_handleNewHost'](_0x2944f1){const _0x52188f=_0x31a07c,{presenter:_0x29f878}=_0x2944f1['data'],_0x1122b1=this[_0x52188f(0x23f)]['getMemberID']();this[_0x52188f(0x25c)]=_0x29f878,_0x29f878===_0x1122b1?(this[_0x52188f(0x228)](),this[_0x52188f(0x1a1)]()):this['_status']!=='not-following'&&(this[_0x52188f(0x280)](),this['_startFollowing']());}['_fetchOperations'](){const _0x4faae9=_0x31a07c,_0x454581={'eventID':_0x17874a['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x4faae9(0x23f)][_0x4faae9(0x1c4)](_0x454581,this[_0x4faae9(0x1c5)]);}['_handleTerminate'](){const _0x412dfa=_0x31a07c;this[_0x412dfa(0x25c)]=null,this[_0x412dfa(0x1f9)]!=='presenting'&&this[_0x412dfa(0x243)]();}[_0x31a07c(0x1f6)](_0x3a293f){const _0x3aa969=_0x31a07c;if(this[_0x3aa969(0x1f9)]===_0x3aa969(0x23e)&&this[_0x3aa969(0x25c)]===_0x3a293f[_0x3aa969(0x24f)][_0x3aa969(0x1ef)]){const _0x5f04d5=_0x17874a[_0x3aa969(0x1e1)](_0x3a293f[_0x3aa969(0x24f)])[_0x3aa969(0x1ca)][_0x3aa969(0x25f)]()[_0x3aa969(0x1dd)](_0x183a84=>_0x183a84['id']===_0x2275db[_0x3aa969(0x1f2)]['id']);if(_0x5f04d5){const _0x27817d=_0x5f04d5[_0x3aa969(0x1cc)][_0x3aa969(0x25a)],_0x10939f=_0x5f04d5[_0x3aa969(0x1cc)]['sheet']['id'];setTimeout(()=>{const _0x567f7c=_0x3aa969;this[_0x567f7c(0x200)]['executeCommand'](_0x2275db[_0x567f7c(0x27a)]['id'],{'unitId':_0x27817d,'subUnitId':_0x10939f},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x3130c2=_0x31a07c;this[_0x3130c2(0x272)]['next']('presenting');const _0x385e79=new Map(),_0x2adfcf=this[_0x3130c2(0x1d1)]=new _0x578637[(_0x3130c2(0x248))]();_0x2adfcf[_0x3130c2(0x234)](_0x578637[_0x3130c2(0x20e)](()=>{const _0x5f25d7=_0x3130c2;_0x385e79[_0x5f25d7(0x23c)](_0x5c3845=>_0x5c3845[_0x5f25d7(0x262)]()),_0x385e79['clear']();})),_0x2adfcf['add'](this[_0x3130c2(0x200)][_0x3130c2(0x1a3)](_0x1cbf4b=>{const _0x402daa=_0x3130c2;var _0x1fecac;if(_0x1cbf4b['type']!==_0x578637[_0x402daa(0x206)][_0x402daa(0x251)]||!this['_liveShareService']['shouldShareOperation'](_0x1cbf4b['id']))return;const {id:_0x371921}=_0x1cbf4b;let _0x5475d9;_0x385e79[_0x402daa(0x1cb)](_0x371921)?_0x5475d9=_0x385e79['get'](_0x371921):(_0x5475d9=new _0x48b2dd[(_0x402daa(0x1f3))](),_0x385e79[_0x402daa(0x21b)](_0x371921,_0x5475d9),_0x5475d9[_0x402daa(0x1fa)](_0x2cdb56[_0x402daa(0x277)]((_0x1fecac=this[_0x402daa(0x1e0)][_0x402daa(0x273)](_0x596c2f))!=null?_0x1fecac:_0x5da53b,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x402daa(0x271)](_0x5c00b2=>{const _0x15e3a2=_0x402daa;this[_0x15e3a2(0x23f)][_0x15e3a2(0x1c4)]({'eventID':_0x17874a['CollaborationEvent'][_0x15e3a2(0x202)],'data':{'unitID':this[_0x15e3a2(0x1c5)],'operations':{[_0x5c00b2['id']]:{'id':_0x5c00b2['id'],'params':JSON[_0x15e3a2(0x1dc)](_0x5c00b2[_0x15e3a2(0x1cc)])}}}},this[_0x15e3a2(0x1c5)]);})),_0x5475d9[_0x402daa(0x25b)](_0x1cbf4b);})),this[_0x3130c2(0x258)]['getInitialStates'](this['_unitID'])[_0x3130c2(0x23c)](_0xdaf073=>this[_0x3130c2(0x23f)]['send']({'eventID':_0x17874a[_0x3130c2(0x239)][_0x3130c2(0x202)],'data':{'unitID':this[_0x3130c2(0x1c5)],'operations':{[_0xdaf073['id']]:{'id':_0xdaf073['id'],'params':JSON[_0x3130c2(0x1dc)](_0xdaf073['params'])}}}},this[_0x3130c2(0x1c5)]));}['_stopPresenting'](){const _0x33783a=_0x31a07c;var _0x43105e;this[_0x33783a(0x272)]['next'](_0x33783a(0x26f)),(_0x43105e=this[_0x33783a(0x1d1)])==null||_0x43105e[_0x33783a(0x24d)](),this[_0x33783a(0x1d1)]=null;}[_0x31a07c(0x1ae)](){const _0x5ee576=_0x31a07c;var _0x5a28ff;(_0x5a28ff=this[_0x5ee576(0x1d1)])==null||_0x5a28ff['dispose'](),this['_status$'][_0x5ee576(0x25b)]('following');}[_0x31a07c(0x243)](){const _0x535cb1=_0x31a07c;var _0x3d47ae;this['_status$'][_0x535cb1(0x25b)](_0x535cb1(0x26f)),(_0x3d47ae=this[_0x535cb1(0x1d1)])==null||_0x3d47ae[_0x535cb1(0x24d)](),this[_0x535cb1(0x1d1)]=null;}[_0x31a07c(0x228)](){const _0x57ab65=_0x31a07c;var _0x48cbad;this[_0x57ab65(0x272)][_0x57ab65(0x25b)](_0x57ab65(0x1f4)),(_0x48cbad=this[_0x57ab65(0x1d1)])==null||_0x48cbad['dispose']();}['_handleOperation'](_0x53f76b){const _0x47509d=_0x31a07c;if([_0x47509d(0x268),'not-following',_0x47509d(0x249)]['includes'](this['_status'])||!_0x53f76b[_0x47509d(0x24f)][_0x47509d(0x1f7)]||_0x53f76b['data'][_0x47509d(0x1f7)]===this['_collabSession']['getMemberID']())return;this[_0x47509d(0x1f9)]===_0x47509d(0x26f)&&this[_0x47509d(0x1ae)]();const _0x335332=_0x53f76b[_0x47509d(0x24f)][_0x47509d(0x25e)];Object['values'](_0x335332)[_0x47509d(0x23c)](_0xfc564e=>{const _0x47afdc=_0x47509d;this[_0x47afdc(0x200)][_0x47afdc(0x1a5)](_0xfc564e['id'],_0xfc564e['params']?JSON[_0x47afdc(0x1b1)](_0xfc564e['params']):null,{'fromCollab':!0x0});});}[_0x31a07c(0x240)](){const _0x424e46=_0x31a07c;var _0x2ac0c4;this[_0x424e46(0x272)][_0x424e46(0x25b)](_0x424e46(0x249)),(_0x2ac0c4=this['_commandDisposable'])==null||_0x2ac0c4[_0x424e46(0x24d)]();}[_0x31a07c(0x1da)](){const _0x4bc064=_0x31a07c;this[_0x4bc064(0x272)][_0x4bc064(0x25b)](_0x4bc064(0x26f)),this['_fetchOperations']();}},_0x531713[_0x31a07c(0x1ab)]=_0x2a654c([_0x32ef52(0x2,_0x578637['IConfigService']),_0x32ef52(0x3,_0x578637[_0x31a07c(0x1ce)](_0x4c4275)),_0x32ef52(0x4,_0x578637[_0x31a07c(0x227)])],_0x531713[_0x31a07c(0x1ab)]);function _0x23ae1e(){const _0x2def26=_0x31a07c,_0x343790=_0x51c68d[_0x2def26(0x1a9)](_0x531713[_0x2def26(0x245)]),_0x465cef=_0x51c68d['useDependency'](_0x578637['IUniverInstanceService']),_0x1cecfb=_0x51c68d[_0x2def26(0x1e7)](()=>_0x465cef[_0x2def26(0x1b8)](_0x578637[_0x2def26(0x20c)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x1b5911,_0x47e5eb]=_0x1b3469[_0x2def26(0x1c3)](null),[_0x5378bc,_0x494c7c]=_0x1b3469[_0x2def26(0x1c3)](_0x1e02cf[_0x2def26(0x241)]),_0x7bcc9c=_0x1b3469[_0x2def26(0x216)](null);return _0x1b3469[_0x2def26(0x1c6)](()=>(_0x1cecfb&&_0x343790[_0x2def26(0x1df)](_0x1cecfb['getUnitId']())[_0x2def26(0x26b)](_0x23dea6=>{const _0x2c42d3=_0x2def26;_0x47e5eb(_0x23dea6),_0x7bcc9c['current']=_0x23dea6[_0x2c42d3(0x1db)]['subscribe'](_0x3ef664=>{_0x494c7c(_0x3ef664);});}),()=>{const _0x42f3b9=_0x2def26;var _0x354a45;(_0x354a45=_0x7bcc9c[_0x42f3b9(0x1d9)])==null||_0x354a45[_0x42f3b9(0x233)](),_0x7bcc9c[_0x42f3b9(0x1d9)]=null;}),[_0x1cecfb,_0x343790]),_0x1b5911?_0x4e8258[_0x2def26(0x26e)](_0x80076a[_0x2def26(0x1d6)],{'align':_0x2def26(0x218),'disabled':_0x5378bc===_0x1e02cf['OFFLINE'],'className':_0x2def26(0x1a4),'overlay':_0x4e8258['jsx'](_0x525160,{'status':_0x5378bc,'coordinator':_0x1b5911}),'children':_0x4e8258['jsx'](_0x2def26(0x21c),{'className':_0x80076a[_0x2def26(0x1fb)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x5378bc===_0x1e02cf['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5378bc!==_0x1e02cf['OFFLINE']}),'type':_0x2def26(0x21c),'children':_0x4e8258[_0x2def26(0x26e)](_0x1c04bc,{'className':_0x2def26(0x214)})})}):null;}function _0x525160(_0x1232c2){const _0x4249f8=_0x31a07c,{status:_0x2a938c,coordinator:_0x35803c}=_0x1232c2;switch(_0x2a938c){case _0x1e02cf[_0x4249f8(0x241)]:return _0x4e8258['jsx'](_0x18bc71,{'coordinator':_0x35803c});case _0x1e02cf[_0x4249f8(0x1aa)]:return _0x4e8258[_0x4249f8(0x26e)](_0x3bff13,{'coordinator':_0x35803c});case _0x1e02cf[_0x4249f8(0x247)]:return _0x4e8258[_0x4249f8(0x26e)](_0x556ba1,{'coordinator':_0x35803c});case _0x1e02cf['OFFLINE']:return _0x4e8258[_0x4249f8(0x26e)](_0x4f7a0e,{});case _0x1e02cf[_0x4249f8(0x260)]:return _0x4e8258[_0x4249f8(0x26e)](_0xd0567b,{'coordinator':_0x35803c});default:return null;}}function _0x18bc71(_0x39c7d8){const _0x45ffba=_0x31a07c,{coordinator:_0x5d561e}=_0x39c7d8;return _0x4e8258[_0x45ffba(0x22b)](_0x4e8258['Fragment'],{'children':[_0x4e8258[_0x45ffba(0x26e)](_0x45ffba(0x281),{'className':_0x45ffba(0x232),'children':_0x45ffba(0x205)}),_0x4e8258[_0x45ffba(0x26e)](_0x80076a['Button'],{'onClick':()=>_0x5d561e[_0x45ffba(0x20d)](),'children':'Start'})]});}function _0x3bff13(_0x455600){const _0x1b4f0e=_0x31a07c,{coordinator:_0x104661}=_0x455600;return _0x4e8258[_0x1b4f0e(0x22b)](_0x4e8258[_0x1b4f0e(0x213)],{'children':[_0x4e8258[_0x1b4f0e(0x26e)](_0x1b4f0e(0x281),{'className':_0x1b4f0e(0x232),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x4e8258['jsx'](_0x80076a['Button'],{'onClick':()=>_0x104661['stopFollowing'](),'children':_0x1b4f0e(0x1a2)})]});}function _0x556ba1(_0x42bb87){const _0x2eb437=_0x31a07c,{coordinator:_0x392a2f}=_0x42bb87;return _0x4e8258['jsxs'](_0x4e8258[_0x2eb437(0x213)],{'children':[_0x4e8258[_0x2eb437(0x26e)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2eb437(0x1fd)}),_0x4e8258[_0x2eb437(0x26e)](_0x80076a[_0x2eb437(0x225)],{'variant':_0x2eb437(0x1fc),'onClick':()=>_0x392a2f[_0x2eb437(0x235)](),'children':_0x2eb437(0x1b2)})]});}function _0xd0567b(_0x55c784){const _0x21ff6c=_0x31a07c,{coordinator:_0x17f0a9}=_0x55c784;return _0x4e8258[_0x21ff6c(0x22b)](_0x4e8258[_0x21ff6c(0x213)],{'children':[_0x4e8258[_0x21ff6c(0x26e)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x4e8258['jsx'](_0x80076a[_0x21ff6c(0x225)],{'variant':_0x21ff6c(0x252),'onClick':()=>_0x17f0a9[_0x21ff6c(0x1d2)](),'children':_0x21ff6c(0x1d8)})]});}function _0x4f7a0e(){return _0x4e8258['jsx'](_0x4e8258['Fragment'],{'children':'You\x27are\x20offline.'});}var _0x35702c=Object[_0x31a07c(0x1f5)],_0x3868da=(_0x26bb61,_0xa8f487,_0x262cec,_0x3ad869)=>{for(var _0x166799=_0x3ad869>0x1?void 0x0:_0x3ad869?_0x35702c(_0xa8f487,_0x262cec):_0xa8f487,_0x123391=_0x26bb61['length']-0x1,_0x5bb076;_0x123391>=0x0;_0x123391--)(_0x5bb076=_0x26bb61[_0x123391])&&(_0x166799=_0x5bb076(_0x166799)||_0x166799);return _0x166799;},_0xe0125b=(_0xc64cf3,_0x3b2e88)=>(_0x4d0d8c,_0x23cc7f)=>_0x3b2e88(_0x4d0d8c,_0x23cc7f,_0xc64cf3);_0x531713[_0x31a07c(0x1ed)]=class extends _0x578637[_0x31a07c(0x215)]{constructor(_0x1407c2,_0x378076){const _0x5c1af9=_0x31a07c;super(),this[_0x5c1af9(0x204)]=_0x1407c2,this[_0x5c1af9(0x210)]=_0x378076,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x28349f=_0x31a07c;this[_0x28349f(0x1a8)](this[_0x28349f(0x210)]['registerComponent'](_0x51c68d[_0x28349f(0x26c)][_0x28349f(0x211)],()=>_0x51c68d[_0x28349f(0x1c1)](_0x23ae1e,this[_0x28349f(0x204)])));}},_0x531713['DesktopLiveShareController']=_0x3868da([_0xe0125b(0x0,_0x578637[_0x31a07c(0x1ce)](_0x578637[_0x31a07c(0x261)])),_0xe0125b(0x1,_0x51c68d[_0x31a07c(0x222)])],_0x531713['DesktopLiveShareController']);const _0x32124f=_0x31a07c(0x203),_0x449df5={};var _0x15f6d1=Object[_0x31a07c(0x1f5)],_0x1858bd=(_0x21aece,_0x4146e0,_0x1b0134,_0x4dcf0c)=>{const _0x196756=_0x31a07c;for(var _0x5e0202=_0x4dcf0c>0x1?void 0x0:_0x4dcf0c?_0x15f6d1(_0x4146e0,_0x1b0134):_0x4146e0,_0x3f4dce=_0x21aece[_0x196756(0x242)]-0x1,_0x541ab7;_0x3f4dce>=0x0;_0x3f4dce--)(_0x541ab7=_0x21aece[_0x3f4dce])&&(_0x5e0202=_0x541ab7(_0x5e0202)||_0x5e0202);return _0x5e0202;},_0x57e262=(_0x239586,_0x533975)=>(_0x49124c,_0x3152f3)=>_0x533975(_0x49124c,_0x3152f3,_0x239586);let _0x15480d=class extends _0x578637[_0x31a07c(0x215)]{constructor(_0x7d97df){const _0x168e72=_0x31a07c;super(),this[_0x168e72(0x258)]=_0x7d97df,this[_0x168e72(0x24a)]();}[_0x31a07c(0x24a)](){const _0x137731=_0x31a07c;[_0x138877[_0x137731(0x1af)]['id'],_0x138877[_0x137731(0x1c7)]['id'],_0x2275db['SetWorksheetActiveOperation']['id']][_0x137731(0x23c)](_0xe0f71c=>{const _0x2c9ce8=_0x137731;this[_0x2c9ce8(0x1a8)](this['_liveShareService']['registerSharedOperation'](_0xe0f71c));});}};_0x15480d=_0x1858bd([_0x57e262(0x0,_0x578637[_0x31a07c(0x1ce)](_0x4c4275))],_0x15480d);var _0x2036ad=Object['defineProperty'],_0x400a47=Object[_0x31a07c(0x1f5)],_0x53ddd7=(_0x50d92c,_0x41e594,_0x1382db)=>_0x41e594 in _0x50d92c?_0x2036ad(_0x50d92c,_0x41e594,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1382db}):_0x50d92c[_0x41e594]=_0x1382db,_0x519659=(_0xe7c0cb,_0x125df9,_0x2fc33f,_0x4d6744)=>{for(var _0x30965f=_0x4d6744>0x1?void 0x0:_0x4d6744?_0x400a47(_0x125df9,_0x2fc33f):_0x125df9,_0x11f8e6=_0xe7c0cb['length']-0x1,_0x2715ab;_0x11f8e6>=0x0;_0x11f8e6--)(_0x2715ab=_0xe7c0cb[_0x11f8e6])&&(_0x30965f=_0x2715ab(_0x30965f)||_0x30965f);return _0x30965f;},_0x25fad5=(_0x3346b6,_0x119e67)=>(_0x38bd4d,_0x3ebf27)=>_0x119e67(_0x38bd4d,_0x3ebf27,_0x3346b6),_0x307965=(_0x4f8639,_0x199fa3,_0x194f83)=>_0x53ddd7(_0x4f8639,typeof _0x199fa3!=_0x31a07c(0x276)?_0x199fa3+'':_0x199fa3,_0x194f83);const _0x39951e=_0x31a07c(0x256);_0x531713['UniverLiveSharePlugin']=class extends _0x578637[_0x31a07c(0x21d)]{constructor(_0x3d597f=_0x449df5,_0x36d1a2,_0x13f3df){const _0x4544a7=_0x31a07c;super(),this[_0x4544a7(0x24c)]=_0x3d597f,this[_0x4544a7(0x204)]=_0x36d1a2,this['_configService']=_0x13f3df;const {..._0x2d9800}=_0x578637[_0x4544a7(0x1ff)]({},_0x449df5,this[_0x4544a7(0x24c)]);this[_0x4544a7(0x1e0)]['setConfig'](_0x32124f,_0x2d9800);}[_0x31a07c(0x1d3)](){const _0x7eaa68=_0x31a07c;_0x578637[_0x7eaa68(0x1fe)](this[_0x7eaa68(0x204)],_0x578637[_0x7eaa68(0x1f0)]([[_0x4c4275],[_0x531713[_0x7eaa68(0x245)]],[_0x15480d],[_0x531713[_0x7eaa68(0x1ed)]]],this['_config'][_0x7eaa68(0x229)])),_0x578637[_0x7eaa68(0x1b4)](this['_injector'],[[_0x15480d]]);}['onRendered'](){const _0x2c21bc=_0x31a07c;_0x578637[_0x2c21bc(0x1b4)](this['_injector'],[[_0x531713[_0x2c21bc(0x1ed)]]]);}},_0x307965(_0x531713[_0x31a07c(0x1c2)],_0x31a07c(0x24e),_0x578637[_0x31a07c(0x20c)]['UNIVER_UNKNOWN']),_0x307965(_0x531713[_0x31a07c(0x1c2)],_0x31a07c(0x279),_0x39951e),_0x531713[_0x31a07c(0x1c2)]=_0x519659([_0x578637['DependentOn'](_0x42171a[_0x31a07c(0x21f)]),_0x25fad5(0x1,_0x578637[_0x31a07c(0x1ce)](_0x578637[_0x31a07c(0x261)])),_0x25fad5(0x2,_0x578637[_0x31a07c(0x1b3)])],_0x531713[_0x31a07c(0x1c2)]),_0x531713['LiveShare']=_0x23ae1e,_0x531713[_0x31a07c(0x1a0)]=_0x4c4275,_0x531713[_0x31a07c(0x1b0)]=_0x1e02cf,Object['defineProperty'](_0x531713,Symbol['toStringTag'],{'value':'Module'});}));
|
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-insiders.20251215-64041bb",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@univerjs/icons": "^1.0.2",
|
|
60
|
-
"@univerjs-pro/collaboration": "0.
|
|
61
|
-
"@univerjs
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/sheets-ui": "0.
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs/
|
|
60
|
+
"@univerjs-pro/collaboration": "0.13.0-insiders.20251215-64041bb",
|
|
61
|
+
"@univerjs/core": "0.13.0-insiders.20251215-64041bb",
|
|
62
|
+
"@univerjs-pro/collaboration-client": "0.13.0-insiders.20251215-64041bb",
|
|
63
|
+
"@univerjs/design": "0.13.0-insiders.20251215-64041bb",
|
|
64
|
+
"@univerjs/engine-render": "0.13.0-insiders.20251215-64041bb",
|
|
65
|
+
"@univerjs/sheets-ui": "0.13.0-insiders.20251215-64041bb",
|
|
66
|
+
"@univerjs/sheets": "0.13.0-insiders.20251215-64041bb",
|
|
67
|
+
"@univerjs/ui": "0.13.0-insiders.20251215-64041bb"
|
|
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": {
|