@univerjs-pro/live-share 0.12.4-experimental.20251210-8d33c6e → 0.12.4-experimental.20251210-29c379a
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';function _0x2f50(_0x524790,_0x2d9cb1){_0x524790=_0x524790-0x7a;const _0x32d1da=_0x32d1();let _0x2f50cf=_0x32d1da[_0x524790];return _0x2f50cf;}const _0x3c9bfb=_0x2f50;(function(_0x1e8493,_0x161d14){const _0x810c3e=_0x2f50,_0x206094=_0x1e8493();while(!![]){try{const _0x1e7c15=parseInt(_0x810c3e(0x92))/0x1*(parseInt(_0x810c3e(0x7b))/0x2)+parseInt(_0x810c3e(0xa4))/0x3+parseInt(_0x810c3e(0x9f))/0x4*(parseInt(_0x810c3e(0x7c))/0x5)+parseInt(_0x810c3e(0xa2))/0x6*(-parseInt(_0x810c3e(0x88))/0x7)+parseInt(_0x810c3e(0x89))/0x8*(-parseInt(_0x810c3e(0xa0))/0x9)+-parseInt(_0x810c3e(0x97))/0xa*(parseInt(_0x810c3e(0x81))/0xb)+parseInt(_0x810c3e(0x7f))/0xc*(parseInt(_0x810c3e(0x9d))/0xd);if(_0x1e7c15===_0x161d14)break;else _0x206094['push'](_0x206094['shift']());}catch(_0x38e28c){_0x206094['push'](_0x206094['shift']());}}}(_0x32d1,0x231d4));function _0x32d1(){const _0x3bb852=['getLiveShareStatus','652hzVepX','2075373UCfRIF','LiveShareStatus','2508fOlPUD','No\x20active\x20workbook\x20found.','6744mmXBAw','FEnum','LiveShareController','FUniver','PRESENTING','190iasbsl','7195aLavoP','SetWorksheetActiveOperation','getRenderById','1103052vjQNtz','get','11nzCeQf','startFollowing','_commandService','getStatus','syncExecuteCommand','getId','getUnitId','889zHvjSb','8RaiDmb','getLiveShareCoordinatorSync','startColumn','startPresenting','_initialize','stopPresenting','IRenderManagerService','getSheetId','getActiveWorkbook','2111IaAEdh','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getActiveSheet','_injector','extend','1936810opyxcJ','SetScrollOperation','tryStartPresenting','executeCommand','stopFollowing','FRange','26zgglLy'];_0x32d1=function(){return _0x3bb852;};return _0x32d1();}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[_0x3c9bfb(0x9c)]{[_0x3c9bfb(0x8d)](_0xab1d7b,_0x379cce,_0x24f7ae,_0x38773c,_0x58303d){const _0x1204fa=_0x3c9bfb,_0x5a74d7=_0xab1d7b['get'](n[_0x1204fa(0xa6)]),_0x1b2ed9=_0xab1d7b[_0x1204fa(0x80)](g[_0x1204fa(0x8f)]),_0x5d490a=_0x379cce[_0x1204fa(0x87)](),_0x2ee9cd=_0x379cce[_0x1204fa(0x94)](),_0x22bd15=_0x5a74d7[_0x1204fa(0x8a)](_0x5d490a);(_0x22bd15==null?void 0x0:_0x22bd15[_0x1204fa(0x84)]())!==n[_0x1204fa(0xa1)][_0x1204fa(0x7a)]||(_0x24f7ae[_0x1204fa(0x90)]()!==_0x2ee9cd[_0x1204fa(0x90)]()&&this[_0x1204fa(0x83)][_0x1204fa(0x9a)](u[_0x1204fa(0x7d)]['id'],{'unitId':_0x5d490a,'subUnitId':_0x24f7ae[_0x1204fa(0x90)]()}),!_0x1b2ed9[_0x1204fa(0x7e)](_0x5d490a))||_0x58303d[_0x1204fa(0x85)](f[_0x1204fa(0x98)]['id'],{'unitId':_0x379cce[_0x1204fa(0x87)](),'sheetId':_0x24f7ae[_0x1204fa(0x90)](),'sheetViewStartRow':_0x38773c['startRow'],'sheetViewStartColumn':_0x38773c[_0x1204fa(0x8b)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x3c9bfb(0x9c)]['extend'](w);class C extends a[_0x3c9bfb(0xa7)]{[_0x3c9bfb(0x9e)](){const _0x29906c=_0x3c9bfb;var _0x38a74b,_0x108487;const _0x298560=this[_0x29906c(0x95)][_0x29906c(0x80)](n['LiveShareController']),_0x3099db=(_0x38a74b=this[_0x29906c(0x91)]())==null?void 0x0:_0x38a74b[_0x29906c(0x86)]();if(!_0x3099db)throw new Error(_0x29906c(0xa3));const _0x12510f=_0x298560[_0x29906c(0x8a)](_0x3099db);return(_0x108487=_0x12510f==null?void 0x0:_0x12510f[_0x29906c(0x84)]())!=null?_0x108487:n['LiveShareStatus']['IDLE'];}[_0x3c9bfb(0x82)](){const _0x48a3ba=_0x3c9bfb;var _0x2ee746;const _0x1a2644=this['_injector'][_0x48a3ba(0x80)](n['LiveShareController']),_0x50355a=(_0x2ee746=this[_0x48a3ba(0x91)]())==null?void 0x0:_0x2ee746[_0x48a3ba(0x86)]();if(!_0x50355a)throw new Error('No\x20active\x20workbook\x20found.');const _0x5e181a=_0x1a2644[_0x48a3ba(0x8a)](_0x50355a);if(!_0x5e181a)throw new Error(_0x48a3ba(0x93));_0x5e181a[_0x48a3ba(0x82)]();}[_0x3c9bfb(0x9b)](){const _0x14b8d1=_0x3c9bfb;var _0x27e648;const _0x13f74b=this[_0x14b8d1(0x95)]['get'](n['LiveShareController']),_0x32809c=(_0x27e648=this[_0x14b8d1(0x91)]())==null?void 0x0:_0x27e648[_0x14b8d1(0x86)]();if(!_0x32809c)throw new Error(_0x14b8d1(0xa3));const _0x315560=_0x13f74b['getLiveShareCoordinatorSync'](_0x32809c);if(!_0x315560)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x315560[_0x14b8d1(0x9b)]();}[_0x3c9bfb(0x8c)](){const _0x56bb3d=_0x3c9bfb;var _0x1ebd27;const _0x1c0c53=this[_0x56bb3d(0x95)]['get'](n['LiveShareController']),_0x4483f6=(_0x1ebd27=this[_0x56bb3d(0x91)]())==null?void 0x0:_0x1ebd27['getId']();if(!_0x4483f6)throw new Error('No\x20active\x20workbook\x20found.');const _0xfc139a=_0x1c0c53[_0x56bb3d(0x8a)](_0x4483f6);if(!_0xfc139a)throw new Error(_0x56bb3d(0x93));_0xfc139a[_0x56bb3d(0x99)]();}[_0x3c9bfb(0x8e)](){const _0x286b1f=_0x3c9bfb;var _0x326dc8;const _0x24a8b9=this[_0x286b1f(0x95)]['get'](n[_0x286b1f(0xa6)]),_0x233ea6=(_0x326dc8=this[_0x286b1f(0x91)]())==null?void 0x0:_0x326dc8[_0x286b1f(0x86)]();if(!_0x233ea6)throw new Error(_0x286b1f(0xa3));const _0x4620c4=_0x24a8b9[_0x286b1f(0x8a)](_0x233ea6);if(!_0x4620c4)throw new Error(_0x286b1f(0x93));_0x4620c4[_0x286b1f(0x8e)]();}}a['FUniver'][_0x3c9bfb(0x96)](C);class L extends a[_0x3c9bfb(0xa5)]{get['LiveShareStatusEnum'](){const _0xcdfcc7=_0x3c9bfb;return n[_0xcdfcc7(0xa1)];}}a[_0x3c9bfb(0xa5)]['extend'](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0xf435b4=_0x2638;(function(_0x88e7a7,_0x1ee3c5){const _0x17f274=_0x2638,_0xa99200=_0x88e7a7();while(!![]){try{const _0x3f0c09=parseInt(_0x17f274(0x1f3))/0x1+-parseInt(_0x17f274(0x227))/0x2*(-parseInt(_0x17f274(0x1b0))/0x3)+-parseInt(_0x17f274(0x1c7))/0x4*(parseInt(_0x17f274(0x22b))/0x5)+-parseInt(_0x17f274(0x1a9))/0x6*(-parseInt(_0x17f274(0x22c))/0x7)+parseInt(_0x17f274(0x201))/0x8*(parseInt(_0x17f274(0x161))/0x9)+parseInt(_0x17f274(0x17b))/0xa+-parseInt(_0x17f274(0x1e4))/0xb*(parseInt(_0x17f274(0x189))/0xc);if(_0x3f0c09===_0x1ee3c5)break;else _0xa99200['push'](_0xa99200['shift']());}catch(_0x56818f){_0xa99200['push'](_0xa99200['shift']());}}}(_0x3643,0xe9a4a));var T=Object[_0xf435b4(0x1f8)],U=(_0x13296d,_0x4f0c35,_0x2a8d3d)=>_0x4f0c35 in _0x13296d?T(_0x13296d,_0x4f0c35,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a8d3d}):_0x13296d[_0x4f0c35]=_0x2a8d3d,_=(_0x7d695b,_0x2e4fd6,_0x2d2665)=>U(_0x7d695b,typeof _0x2e4fd6!='symbol'?_0x2e4fd6+'':_0x2e4fd6,_0x2d2665);Object[_0xf435b4(0x1f8)](exports,Symbol[_0xf435b4(0x184)],{'value':'Module'});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:_0x347d9e,..._0x1073aa}){const _0x6131e2=_0xf435b4,{icon:_0x147945,id:_0x470df9,className:_0x4a55ab,extend:_0x3053f8,..._0x1a6dcf}=_0x1073aa,_0x4ab9e7=('univerjs-icon\x20univerjs-icon-'+_0x470df9+'\x20'+(_0x4a55ab||''))[_0x6131e2(0x191)](),_0xf3c036=v[_0x6131e2(0x19b)]('_'+H());return j(_0x147945,''+_0x470df9,{'defIds':_0x147945['defIds'],'idSuffix':_0xf3c036[_0x6131e2(0x21a)]},{'ref':_0x347d9e,'className':_0x4ab9e7,..._0x1a6dcf},_0x3053f8);}function j(_0x2b922a,_0x42b51f,_0x231aca,_0x14167c,_0x27551d){const _0x3bbff8=_0xf435b4;return v[_0x3bbff8(0x21d)](_0x2b922a[_0x3bbff8(0x212)],{'key':_0x42b51f,...y(_0x2b922a,_0x231aca,_0x27551d),..._0x14167c},(F(_0x2b922a,_0x231aca)['children']||[])['map']((_0x1b0a7b,_0x5bf87d)=>j(_0x1b0a7b,_0x42b51f+'-'+_0x2b922a[_0x3bbff8(0x212)]+'-'+_0x5bf87d,_0x231aca,void 0x0,_0x27551d)));}function y(_0x4cd9b5,_0x3aecb8,_0x5e7245){const _0x31b5b8=_0xf435b4,_0x7a076f={..._0x4cd9b5[_0x31b5b8(0x1ce)]};_0x5e7245!=null&&_0x5e7245[_0x31b5b8(0x1ae)]&&_0x7a076f[_0x31b5b8(0x219)]===_0x31b5b8(0x1ae)&&(_0x7a076f['fill']=_0x5e7245[_0x31b5b8(0x1ae)]),_0x4cd9b5[_0x31b5b8(0x212)]===_0x31b5b8(0x178)&&_0x7a076f['id']&&(_0x7a076f['id']=_0x7a076f['id']+_0x3aecb8[_0x31b5b8(0x171)]),Object['entries'](_0x7a076f)[_0x31b5b8(0x195)](([_0x2f3554,_0x1df4dc])=>{const _0x1edf15=_0x31b5b8;_0x2f3554==='mask'&&typeof _0x1df4dc=='string'&&(_0x7a076f[_0x2f3554]=_0x1df4dc[_0x1edf15(0x198)](/url\(#(.*)\)/,_0x1edf15(0x1f4)+_0x3aecb8['idSuffix']+')'));});const {defIds:_0x3d9233}=_0x3aecb8;return!_0x3d9233||_0x3d9233['length']===0x0||(_0x4cd9b5[_0x31b5b8(0x212)]==='use'&&_0x7a076f['xlink:href']&&(_0x7a076f[_0x31b5b8(0x172)]=_0x7a076f[_0x31b5b8(0x172)]+_0x3aecb8[_0x31b5b8(0x171)]),Object[_0x31b5b8(0x1a1)](_0x7a076f)[_0x31b5b8(0x195)](([_0xf3399f,_0x5c924b])=>{const _0x2d57c8=_0x31b5b8;typeof _0x5c924b==_0x2d57c8(0x18d)&&(_0x7a076f[_0xf3399f]=_0x5c924b[_0x2d57c8(0x198)](/url\(#(.*)\)/,_0x2d57c8(0x1f4)+_0x3aecb8['idSuffix']+')'));})),_0x7a076f;}function F(_0x525229,_0x308668){const _0x5b6cbd=_0xf435b4;var _0xeb03ee;const {defIds:_0x17bf45}=_0x308668;return!_0x17bf45||_0x17bf45[_0x5b6cbd(0x183)]===0x0?_0x525229:_0x525229['tag']==='defs'&&((_0xeb03ee=_0x525229['children'])!=null&&_0xeb03ee[_0x5b6cbd(0x183)])?{..._0x525229,'children':_0x525229[_0x5b6cbd(0x1e6)][_0x5b6cbd(0x1ad)](_0x32ba7c=>typeof _0x32ba7c['attrs']['id']==_0x5b6cbd(0x18d)&&_0x17bf45&&_0x17bf45[_0x5b6cbd(0x1e7)](_0x32ba7c[_0x5b6cbd(0x1ce)]['id'])?{..._0x32ba7c,'attrs':{..._0x32ba7c[_0x5b6cbd(0x1ce)],'id':_0x32ba7c[_0x5b6cbd(0x1ce)]['id']+_0x308668[_0x5b6cbd(0x171)]}}:_0x32ba7c)}:_0x525229;}function H(){const _0x1d8e23=_0xf435b4;return Math['random']()[_0x1d8e23(0x167)](0x24)['substring'](0x2,0x8);}x[_0xf435b4(0x196)]=_0xf435b4(0x1d0);const V={'tag':'svg','attrs':{'xmlns':_0xf435b4(0x207),'fill':'none','viewBox':_0xf435b4(0x1dc),'width':_0xf435b4(0x19d),'height':'1em'},'children':[{'tag':_0xf435b4(0x1ec),'attrs':{'fill':_0xf435b4(0x1b9),'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':_0xf435b4(0x1ec),'attrs':{'fill':_0xf435b4(0x1b9),'d':_0xf435b4(0x232),'fillRule':'evenodd','clipRule':_0xf435b4(0x21b)}}]},R=v['forwardRef'](function(_0x46806f,_0x23515a){const _0x49547b=_0xf435b4;return v['createElement'](x,Object[_0x49547b(0x20a)]({},_0x46806f,{'id':_0x49547b(0x1b6),'ref':_0x23515a,'icon':V}));});R[_0xf435b4(0x196)]=_0xf435b4(0x208);class E extends o['Disposable']{constructor(){const _0x378a8b=_0xf435b4;super(...arguments),_(this,_0x378a8b(0x1ba),new Set()),_(this,_0x378a8b(0x186),new Set());}[_0xf435b4(0x1be)](_0x3fae82){const _0x2a32f7=_0xf435b4;return this[_0x2a32f7(0x1ba)][_0x2a32f7(0x233)](_0x3fae82),o[_0x2a32f7(0x225)](()=>this[_0x2a32f7(0x1ba)][_0x2a32f7(0x160)](_0x3fae82));}[_0xf435b4(0x21e)](_0x3b1b44){const _0x306f6e=_0xf435b4;return this[_0x306f6e(0x186)][_0x306f6e(0x233)](_0x3b1b44),o[_0x306f6e(0x225)](()=>this[_0x306f6e(0x186)][_0x306f6e(0x160)](_0x3b1b44));}[_0xf435b4(0x1c4)](_0xcbccdc){const _0x4eafce=_0xf435b4;return this[_0x4eafce(0x1ba)][_0x4eafce(0x1d9)](_0xcbccdc);}[_0xf435b4(0x1d3)](_0x5084a8){const _0x182e2b=_0xf435b4;return Array[_0x182e2b(0x16c)](this['_reporters'])[_0x182e2b(0x1ad)](_0x54a03e=>_0x54a03e(_0x5084a8));}}function _0x3643(){const _0x35f83b=['LIVESHARE_OPERATION','getLiveShareCoordinator','40pXTdbF','CommandType','live-share.config','sheet','useState','getUnitId','http://www.w3.org/2000/svg','LiveShareIcon','startFollowing','assign','Disposable','stopPresenting','Present\x20this\x20document','getOwnPropertyDescriptor','setConfig','_startPresenting','Start','tag','_init','OFFLINE','DependentOn','takeUntil','button','type','fill','current','evenodd','LiveShareController','createElement','registerInitialStateReporter','IUniverInstanceService','UNIVER_SHEET','useDependency','_status','UNIVER_UNKNOWN','set','toDisposable','_handleOnline','3032754XQqMTf','next','UniverLiveSharePlugin','_status$','115iLGbRo','3160052KLqawM','FOLLOWING','Fragment','DisposableCollection','PRESENTING','event$','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','add','delete','2153457pRRjHm','unsubscribe','_beIdle','data','values','You\x27are\x20offline.','toString','registerComponent','parseProtocolChangeset','LiveShareService','touchDependencies','from','operations','DesktopLiveShareController','_configService','executeCommand','idSuffix','xlink:href','clear','status$','LIVESHARE_NEW_HOST','_mountLiveShare','LIVESHARE_TERMINATE','mask','createInstance','LIVESHARE_FETCH_OPERATIONS','18537460iQdoYv','UniverInstanceType','_commandDisposable','getStatus','getMemberID','_commandService','useObservable','OPERATION','length','toStringTag','Subject','_reporters','reverse','not-following','3158424CPohGi','presenter','onStarting','IDLE','string','onRendered','Stop\x20following','_startFollowing','trim','text','_stopPresenting','stringify','forEach','displayName','mergeOverrideWithDependencies','replace','ONLINE','IUIPartsService','useRef','univer-mb-3\x20univer-w-full\x20univer-text-sm','1em','end','idle','LiveShareCoordinator','entries','_handleNewHost','NEW_CHANGESETS','_unitID','throttleTime','BehaviorSubject','_collabSessionService','Start\x20following','6FKpnbg','params','jsxs','parse','map','colorChannel1','_handleOperation','3TFkNdH','send','div','connectInjector','Plugin','Inject','live-share-icon','pipe','_presenter','currentColor','_sharedOperations','memberID','get','getConfig','registerSharedOperation','univer-size-4','_handleTerminate','jsx','You\x27re\x20following\x20the\x20presenter','useEffect','shouldShareOperation','override','SAME_OPERATION_SHARE_INTERVAL','34156nSBNMv','_config','UNIVER_LIVE_SHARE_PLUGIN','disposeWithMe','Dropdown','SetZoomRatioOperation','UniverCollaborationClientPlugin','attrs','find','UniverIcon','pluginName','_injector','getInitialStates','Injector','HEADER_MENU','_uiPartsService','complete','_liveShareService','has','IConfigService','subscribe','0\x200\x2017\x2017','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','following','requireSession','You\x27re\x20not\x20following\x20the\x20presenter','LiveShare','_stopFollowing','dispose$','198tsgkde','merge','children','includes','Button','_univerInstanceService','NOT_FOLLOWING','_entities','path','You\x27re\x20presenting\x20the\x20document','clsx','stopFollowing','unitId','_startLiveShareCoordinator','offline','873111oqREFd','url(#$1','CollaborationEvent','mutations','RxDisposable','defineProperty','_handleNewChangeSets','getLiveShareCoordinatorSync','presenting','dispose','_collabSession','ICommandService'];_0x3643=function(){return _0x35f83b;};return _0x3643();}var M=Object['getOwnPropertyDescriptor'],P=(_0x11fc63,_0x1c9e52,_0x49c45a,_0x4ba279)=>{const _0x1a719e=_0xf435b4;for(var _0x5bd6a4=_0x4ba279>0x1?void 0x0:_0x4ba279?M(_0x1c9e52,_0x49c45a):_0x1c9e52,_0x4ae1b6=_0x11fc63[_0x1a719e(0x183)]-0x1,_0x11b466;_0x4ae1b6>=0x0;_0x4ae1b6--)(_0x11b466=_0x11fc63[_0x4ae1b6])&&(_0x5bd6a4=_0x11b466(_0x5bd6a4)||_0x5bd6a4);return _0x5bd6a4;},S=(_0x1dec26,_0x3f922b)=>(_0x163ed5,_0x5470b8)=>_0x3f922b(_0x163ed5,_0x5470b8,_0x1dec26);exports[_0xf435b4(0x21c)]=class extends o[_0xf435b4(0x1f7)]{constructor(_0x491a93,_0x3ee0a2,_0x4c4106){const _0x1b3545=_0xf435b4;super(),_(this,_0x1b3545(0x1eb),new Map()),(this[_0x1b3545(0x1e9)]=_0x491a93,this[_0x1b3545(0x1d2)]=_0x3ee0a2,this[_0x1b3545(0x1a7)]=_0x4c4106,this[_0x1b3545(0x213)]());}async[_0xf435b4(0x200)](_0xee1996){const _0x1b174a=_0xf435b4;return this[_0x1b174a(0x1eb)]['has'](_0xee1996)||await this[_0x1b174a(0x1f1)](_0xee1996),this[_0x1b174a(0x1eb)][_0x1b174a(0x1bc)](_0xee1996);}[_0xf435b4(0x1fa)](_0x49c1d3){const _0x55ca83=_0xf435b4;var _0x10fb9d;return(_0x10fb9d=this['_entities'][_0x55ca83(0x1bc)](_0x49c1d3))!=null?_0x10fb9d:null;}[_0xf435b4(0x213)](){const _0x2ebb28=_0xf435b4;this['_univerInstanceService']['getTypeOfUnitAdded$'](o['UniverInstanceType'][_0x2ebb28(0x220)])['pipe'](I['takeUntil'](this[_0x2ebb28(0x1e3)]))[_0x2ebb28(0x1db)](async _0x5b30f2=>{const _0x379693=_0x2ebb28,_0x374aad=_0x5b30f2[_0x379693(0x206)]();this[_0x379693(0x1eb)]['has'](_0x374aad)||this[_0x379693(0x1f1)](_0x374aad);}),this[_0x2ebb28(0x1e9)]['getTypeOfUnitDisposed$'](o[_0x2ebb28(0x17c)][_0x2ebb28(0x220)])[_0x2ebb28(0x1b7)](I[_0x2ebb28(0x216)](this[_0x2ebb28(0x1e3)]))[_0x2ebb28(0x1db)](_0x4dfeca=>{const _0xf45881=_0x2ebb28,_0x3e8030=_0x4dfeca[_0xf45881(0x206)](),_0x30aa1f=this['_entities'][_0xf45881(0x1bc)](_0x3e8030);_0x30aa1f==null||_0x30aa1f[_0xf45881(0x1fc)]();});}async['_startLiveShareCoordinator'](_0x264f64){const _0x11f431=_0xf435b4,_0x2874e7=await this[_0x11f431(0x1a7)][_0x11f431(0x1df)](_0x264f64),_0x1381cc=this[_0x11f431(0x1d2)][_0x11f431(0x179)](exports[_0x11f431(0x1a0)],_0x264f64,_0x2874e7);return _0x1381cc['init'](),this['_entities']['set'](_0x264f64,_0x1381cc),_0x1381cc;}},exports[_0xf435b4(0x21c)]=P([S(0x0,o[_0xf435b4(0x21f)]),S(0x1,o[_0xf435b4(0x1b5)](o[_0xf435b4(0x1d4)])),S(0x2,o[_0xf435b4(0x1b5)](b['CollaborationSessionService']))],exports[_0xf435b4(0x21c)]);var u=(_0x3bc5b2=>(_0x3bc5b2[_0xf435b4(0x214)]='offline',_0x3bc5b2[_0xf435b4(0x18c)]=_0xf435b4(0x19f),_0x3bc5b2[_0xf435b4(0x22d)]=_0xf435b4(0x1de),_0x3bc5b2[_0xf435b4(0x1ea)]=_0xf435b4(0x188),_0x3bc5b2['PRESENTING']='presenting',_0x3bc5b2))(u||{});const k=_0xf435b4(0x1c6),q=0xc8;exports[_0xf435b4(0x1a0)]=class extends o[_0xf435b4(0x1f7)]{constructor(_0x4d9bb9,_0x2ba5f7,_0x116c30,_0xab4ef7,_0x45af61){const _0x386c76=_0xf435b4;super(),_(this,'_status$',new O[(_0x386c76(0x1a6))](_0x386c76(0x19f))),_(this,_0x386c76(0x174),this['_status$']['asObservable']()),_(this,_0x386c76(0x213),!0x1),_(this,_0x386c76(0x17d),null),_(this,_0x386c76(0x1b8),null),(this['_unitID']=_0x4d9bb9,this[_0x386c76(0x1fd)]=_0x2ba5f7,this[_0x386c76(0x16f)]=_0x116c30,this['_liveShareService']=_0xab4ef7,this[_0x386c76(0x180)]=_0x45af61);}get[_0xf435b4(0x222)](){const _0x378431=_0xf435b4;return this[_0x378431(0x22a)]['getValue']();}[_0xf435b4(0x1fc)](){const _0x501b72=_0xf435b4;var _0x29e503;(_0x29e503=this[_0x501b72(0x17d)])==null||_0x29e503[_0x501b72(0x1fc)](),this[_0x501b72(0x22a)]['next'](_0x501b72(0x19f)),this[_0x501b72(0x22a)]['complete']();}[_0xf435b4(0x17e)](){const _0x3a24d0=_0xf435b4;return this[_0x3a24d0(0x222)];}['init'](){const _0x4d2e9b=_0xf435b4;this[_0x4d2e9b(0x213)]||(this[_0x4d2e9b(0x213)]=!0x0,this[_0x4d2e9b(0x1fd)]['sessionStatus$']['pipe'](I[_0x4d2e9b(0x216)](this[_0x4d2e9b(0x1e3)]))[_0x4d2e9b(0x1db)](_0xc0e262=>{const _0x131240=_0x4d2e9b;switch(_0xc0e262){case b['SessionStatus']['OFFLINE']:this['_handleOffline']();break;case b['SessionStatus'][_0x131240(0x199)]:this[_0x131240(0x226)]();break;}}),this[_0x4d2e9b(0x1fd)][_0x4d2e9b(0x231)]['pipe'](I['takeUntil'](this[_0x4d2e9b(0x1e3)]))[_0x4d2e9b(0x1db)](_0x4de609=>{const _0x4b4ee9=_0x4d2e9b,{eventID:_0x24acbd}=_0x4de609;switch(_0x24acbd){case d[_0x4b4ee9(0x1f5)][_0x4b4ee9(0x175)]:this[_0x4b4ee9(0x1a2)](_0x4de609);break;case d[_0x4b4ee9(0x1f5)]['LIVESHARE_OPERATION']:this[_0x4b4ee9(0x1af)](_0x4de609);break;case d[_0x4b4ee9(0x1f5)][_0x4b4ee9(0x177)]:this['_handleTerminate']();break;case d[_0x4b4ee9(0x1f5)][_0x4b4ee9(0x1a3)]:this['_handleNewChangeSets'](_0x4de609);break;}}));}['tryStartPresenting'](){const _0x59d144=_0xf435b4;this[_0x59d144(0x1fd)][_0x59d144(0x1b1)]({'eventID':d[_0x59d144(0x1f5)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x59d144(0x1a4)],'userID':this[_0x59d144(0x1fd)][_0x59d144(0x17f)]()}},this[_0x59d144(0x1a4)]);}['stopPresenting'](){const _0x313316=_0xf435b4;this[_0x313316(0x222)]===_0x313316(0x1fb)&&(this[_0x313316(0x22a)][_0x313316(0x228)]('idle'),this[_0x313316(0x1fd)]['send']({'eventID':d[_0x313316(0x1f5)][_0x313316(0x177)],'data':{'unitID':this[_0x313316(0x1a4)]}},this['_unitID']));}['startFollowing'](){const _0x496ee1=_0xf435b4;this[_0x496ee1(0x222)]===_0x496ee1(0x188)&&(this[_0x496ee1(0x22a)]['next'](_0x496ee1(0x1de)),this[_0x496ee1(0x190)]());}[_0xf435b4(0x1ef)](){const _0x496a1b=_0xf435b4;this[_0x496a1b(0x222)]==='following'&&this[_0x496a1b(0x1e2)]();}[_0xf435b4(0x1a2)](_0x3c5186){const _0x1ef2b6=_0xf435b4,{presenter:_0x465f4b}=_0x3c5186[_0x1ef2b6(0x164)],_0x4a5e1d=this['_collabSession']['getMemberID']();this[_0x1ef2b6(0x1b8)]=_0x465f4b,_0x465f4b===_0x4a5e1d?(this[_0x1ef2b6(0x1e2)](),this[_0x1ef2b6(0x210)]()):this['_status']!==_0x1ef2b6(0x188)&&(this[_0x1ef2b6(0x193)](),this[_0x1ef2b6(0x190)]());}['_fetchOperations'](){const _0x14c379=_0xf435b4,_0x659c40={'eventID':d[_0x14c379(0x1f5)][_0x14c379(0x17a)]};this[_0x14c379(0x1fd)][_0x14c379(0x1b1)](_0x659c40,this['_unitID']);}[_0xf435b4(0x1c0)](){const _0x22779d=_0xf435b4;this[_0x22779d(0x1b8)]=null,this['_status']!=='presenting'&&this[_0x22779d(0x163)]();}[_0xf435b4(0x1f9)](_0x291ebc){const _0x431555=_0xf435b4;if(this['_status']===_0x431555(0x1de)&&this[_0x431555(0x1b8)]===_0x291ebc[_0x431555(0x164)][_0x431555(0x1bb)]){const _0xce14a8=d[_0x431555(0x169)](_0x291ebc[_0x431555(0x164)])[_0x431555(0x1f6)][_0x431555(0x187)]()[_0x431555(0x1cf)](_0x2f863b=>_0x2f863b['id']===C['InsertSheetMutation']['id']);if(_0xce14a8){const _0x5ae678=_0xce14a8[_0x431555(0x1aa)][_0x431555(0x1f0)],_0x2d4b01=_0xce14a8[_0x431555(0x1aa)][_0x431555(0x204)]['id'];setTimeout(()=>{const _0x2b9ac3=_0x431555;this[_0x2b9ac3(0x180)][_0x2b9ac3(0x170)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x5ae678,'subUnitId':_0x2d4b01},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x1c0c4e=_0xf435b4;this[_0x1c0c4e(0x22a)][_0x1c0c4e(0x228)](_0x1c0c4e(0x1fb));const _0x222072=new Map(),_0x3e39ae=this[_0x1c0c4e(0x17d)]=new o[(_0x1c0c4e(0x22f))]();_0x3e39ae[_0x1c0c4e(0x233)](o[_0x1c0c4e(0x225)](()=>{const _0x5cea14=_0x1c0c4e;_0x222072['forEach'](_0x25eb78=>_0x25eb78[_0x5cea14(0x1d7)]()),_0x222072[_0x5cea14(0x173)]();})),_0x3e39ae[_0x1c0c4e(0x233)](this[_0x1c0c4e(0x180)]['onCommandExecuted'](_0x1ec617=>{const _0x257eda=_0x1c0c4e;var _0x34df64;if(_0x1ec617[_0x257eda(0x218)]!==o[_0x257eda(0x202)][_0x257eda(0x182)]||!this[_0x257eda(0x1d8)][_0x257eda(0x1c4)](_0x1ec617['id']))return;const {id:_0x1da636}=_0x1ec617;let _0x5f2f17;_0x222072[_0x257eda(0x1d9)](_0x1da636)?_0x5f2f17=_0x222072[_0x257eda(0x1bc)](_0x1da636):(_0x5f2f17=new O[(_0x257eda(0x185))](),_0x222072[_0x257eda(0x224)](_0x1da636,_0x5f2f17),_0x5f2f17['pipe'](I[_0x257eda(0x1a5)]((_0x34df64=this['_configService'][_0x257eda(0x1bd)](k))!=null?_0x34df64:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x578224=>{const _0x304c0f=_0x257eda;this[_0x304c0f(0x1fd)][_0x304c0f(0x1b1)]({'eventID':d[_0x304c0f(0x1f5)][_0x304c0f(0x1ff)],'data':{'unitID':this[_0x304c0f(0x1a4)],'operations':{[_0x578224['id']]:{'id':_0x578224['id'],'params':JSON[_0x304c0f(0x194)](_0x578224[_0x304c0f(0x1aa)])}}}},this[_0x304c0f(0x1a4)]);})),_0x5f2f17[_0x257eda(0x228)](_0x1ec617);})),this[_0x1c0c4e(0x1d8)]['getInitialStates'](this[_0x1c0c4e(0x1a4)])[_0x1c0c4e(0x195)](_0x43d3df=>this[_0x1c0c4e(0x1fd)][_0x1c0c4e(0x1b1)]({'eventID':d[_0x1c0c4e(0x1f5)][_0x1c0c4e(0x1ff)],'data':{'unitID':this[_0x1c0c4e(0x1a4)],'operations':{[_0x43d3df['id']]:{'id':_0x43d3df['id'],'params':JSON[_0x1c0c4e(0x194)](_0x43d3df[_0x1c0c4e(0x1aa)])}}}},this['_unitID']));}[_0xf435b4(0x193)](){const _0x556d06=_0xf435b4;var _0x4f4b60;this[_0x556d06(0x22a)][_0x556d06(0x228)](_0x556d06(0x19f)),(_0x4f4b60=this[_0x556d06(0x17d)])==null||_0x4f4b60[_0x556d06(0x1fc)](),this[_0x556d06(0x17d)]=null;}['_startFollowing'](){const _0x7fa547=_0xf435b4;var _0x5ccd48;(_0x5ccd48=this['_commandDisposable'])==null||_0x5ccd48['dispose'](),this[_0x7fa547(0x22a)][_0x7fa547(0x228)](_0x7fa547(0x1de));}['_beIdle'](){const _0x391691=_0xf435b4;var _0x470e74;this[_0x391691(0x22a)][_0x391691(0x228)](_0x391691(0x19f)),(_0x470e74=this['_commandDisposable'])==null||_0x470e74['dispose'](),this[_0x391691(0x17d)]=null;}[_0xf435b4(0x1e2)](){const _0x1d004a=_0xf435b4;var _0x1d4d48;this[_0x1d004a(0x22a)]['next']('not-following'),(_0x1d4d48=this[_0x1d004a(0x17d)])==null||_0x1d4d48[_0x1d004a(0x1fc)]();}[_0xf435b4(0x1af)](_0x58334){const _0x1ec845=_0xf435b4;if(['presenting',_0x1ec845(0x188),'offline'][_0x1ec845(0x1e7)](this['_status'])||!_0x58334[_0x1ec845(0x164)][_0x1ec845(0x18a)]||_0x58334[_0x1ec845(0x164)][_0x1ec845(0x18a)]===this['_collabSession'][_0x1ec845(0x17f)]())return;this[_0x1ec845(0x222)]==='idle'&&this[_0x1ec845(0x190)]();const _0x143ea4=_0x58334[_0x1ec845(0x164)][_0x1ec845(0x16d)];Object[_0x1ec845(0x165)](_0x143ea4)[_0x1ec845(0x195)](_0xcc27ab=>{const _0x56e29b=_0x1ec845;this[_0x56e29b(0x180)][_0x56e29b(0x170)](_0xcc27ab['id'],_0xcc27ab['params']?JSON[_0x56e29b(0x1ac)](_0xcc27ab[_0x56e29b(0x1aa)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x50e026=_0xf435b4;var _0x427e12;this['_status$'][_0x50e026(0x228)](_0x50e026(0x1f2)),(_0x427e12=this[_0x50e026(0x17d)])==null||_0x427e12[_0x50e026(0x1fc)]();}[_0xf435b4(0x226)](){const _0x151a88=_0xf435b4;this[_0x151a88(0x22a)][_0x151a88(0x228)](_0x151a88(0x19f)),this['_fetchOperations']();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0xf435b4(0x1da)]),S(0x3,o[_0xf435b4(0x1b5)](E)),S(0x4,o[_0xf435b4(0x1fe)])],exports['LiveShareCoordinator']);function $(){const _0x59b300=_0xf435b4,_0x1feddf=p[_0x59b300(0x221)](exports[_0x59b300(0x21c)]),_0x3a1ff0=p[_0x59b300(0x221)](o[_0x59b300(0x21f)]),_0x5c6f81=p[_0x59b300(0x181)](()=>_0x3a1ff0['getCurrentTypeOfUnit$'](o[_0x59b300(0x17c)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x241b8b,_0xe58aaa]=v[_0x59b300(0x205)](null),[_0x223195,_0x44cbf3]=v[_0x59b300(0x205)](u[_0x59b300(0x18c)]),_0x519556=v[_0x59b300(0x19b)](null);return v[_0x59b300(0x1c3)](()=>(_0x5c6f81&&_0x1feddf[_0x59b300(0x200)](_0x5c6f81[_0x59b300(0x206)]())['then'](_0x29b453=>{const _0x5516b5=_0x59b300;_0xe58aaa(_0x29b453),_0x519556[_0x5516b5(0x21a)]=_0x29b453['status$'][_0x5516b5(0x1db)](_0x46d260=>{_0x44cbf3(_0x46d260);});}),()=>{const _0x5957d4=_0x59b300;var _0x512fb2;(_0x512fb2=_0x519556['current'])==null||_0x512fb2[_0x5957d4(0x162)](),_0x519556[_0x5957d4(0x21a)]=null;}),[_0x5c6f81,_0x1feddf]),_0x241b8b?l[_0x59b300(0x1c1)](f[_0x59b300(0x1cb)],{'align':_0x59b300(0x19e),'disabled':_0x223195===u[_0x59b300(0x214)],'className':_0x59b300(0x1dd),'overlay':l[_0x59b300(0x1c1)](W,{'status':_0x223195,'coordinator':_0x241b8b}),'children':l[_0x59b300(0x1c1)](_0x59b300(0x217),{'className':f[_0x59b300(0x1ee)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x223195===u[_0x59b300(0x214)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x223195!==u[_0x59b300(0x214)]}),'type':_0x59b300(0x217),'children':l[_0x59b300(0x1c1)](R,{'className':_0x59b300(0x1bf)})})}):null;}function W(_0x440097){const _0x3230f8=_0xf435b4,{status:_0x26f757,coordinator:_0x1b8d51}=_0x440097;switch(_0x26f757){case u[_0x3230f8(0x18c)]:return l['jsx'](G,{'coordinator':_0x1b8d51});case u[_0x3230f8(0x22d)]:return l[_0x3230f8(0x1c1)](B,{'coordinator':_0x1b8d51});case u[_0x3230f8(0x1ea)]:return l[_0x3230f8(0x1c1)](Y,{'coordinator':_0x1b8d51});case u[_0x3230f8(0x214)]:return l['jsx'](J,{});case u[_0x3230f8(0x230)]:return l[_0x3230f8(0x1c1)](Z,{'coordinator':_0x1b8d51});default:return null;}}function G(_0x40f02b){const _0x991ec=_0xf435b4,{coordinator:_0x511bf6}=_0x40f02b;return l[_0x991ec(0x1ab)](l[_0x991ec(0x22e)],{'children':[l[_0x991ec(0x1c1)](_0x991ec(0x1b2),{'className':_0x991ec(0x19c),'children':_0x991ec(0x20d)}),l[_0x991ec(0x1c1)](f[_0x991ec(0x1e8)],{'onClick':()=>_0x511bf6['tryStartPresenting'](),'children':_0x991ec(0x211)})]});}function B(_0x32dafa){const _0x5d2cbf=_0xf435b4,{coordinator:_0x28ef33}=_0x32dafa;return l[_0x5d2cbf(0x1ab)](l[_0x5d2cbf(0x22e)],{'children':[l[_0x5d2cbf(0x1c1)](_0x5d2cbf(0x1b2),{'className':_0x5d2cbf(0x19c),'children':_0x5d2cbf(0x1c2)}),l[_0x5d2cbf(0x1c1)](f['Button'],{'onClick':()=>_0x28ef33[_0x5d2cbf(0x1ef)](),'children':_0x5d2cbf(0x18f)})]});}function Y(_0x2b576f){const _0x5f4789=_0xf435b4,{coordinator:_0x1bcf36}=_0x2b576f;return l['jsxs'](l[_0x5f4789(0x22e)],{'children':[l[_0x5f4789(0x1c1)](_0x5f4789(0x1b2),{'className':_0x5f4789(0x19c),'children':_0x5f4789(0x1e0)}),l[_0x5f4789(0x1c1)](f[_0x5f4789(0x1e8)],{'variant':_0x5f4789(0x192),'onClick':()=>_0x1bcf36[_0x5f4789(0x209)](),'children':_0x5f4789(0x1a8)})]});}function Z(_0x560678){const _0x5f40a7=_0xf435b4,{coordinator:_0x58c010}=_0x560678;return l[_0x5f40a7(0x1ab)](l['Fragment'],{'children':[l[_0x5f40a7(0x1c1)](_0x5f40a7(0x1b2),{'className':_0x5f40a7(0x19c),'children':_0x5f40a7(0x1ed)}),l['jsx'](f[_0x5f40a7(0x1e8)],{'variant':'default','onClick':()=>_0x58c010[_0x5f40a7(0x20c)](),'children':'Stop\x20presenting'})]});}function J(){const _0x25539c=_0xf435b4;return l[_0x25539c(0x1c1)](l[_0x25539c(0x22e)],{'children':_0x25539c(0x166)});}var K=Object[_0xf435b4(0x20e)],z=(_0x21da77,_0x104981,_0x264bae,_0x11d00b)=>{const _0x1cb28e=_0xf435b4;for(var _0x1835f0=_0x11d00b>0x1?void 0x0:_0x11d00b?K(_0x104981,_0x264bae):_0x104981,_0x4aa6db=_0x21da77[_0x1cb28e(0x183)]-0x1,_0xdf39f2;_0x4aa6db>=0x0;_0x4aa6db--)(_0xdf39f2=_0x21da77[_0x4aa6db])&&(_0x1835f0=_0xdf39f2(_0x1835f0)||_0x1835f0);return _0x1835f0;},L=(_0x1ca5c3,_0x84885a)=>(_0x5b4cca,_0xf4dac1)=>_0x84885a(_0x5b4cca,_0xf4dac1,_0x1ca5c3);exports[_0xf435b4(0x16e)]=class extends o[_0xf435b4(0x20b)]{constructor(_0x3c2cc6,_0x4fe4b9){const _0x51f462=_0xf435b4;super(),this[_0x51f462(0x1d2)]=_0x3c2cc6,this['_uiPartsService']=_0x4fe4b9,this[_0x51f462(0x176)]();}[_0xf435b4(0x176)](){const _0x235658=_0xf435b4;this[_0x235658(0x1ca)](this[_0x235658(0x1d6)][_0x235658(0x168)](p['BuiltInUIPart'][_0x235658(0x1d5)],()=>p[_0x235658(0x1b3)]($,this[_0x235658(0x1d2)])));}},exports[_0xf435b4(0x16e)]=z([L(0x0,o[_0xf435b4(0x1b5)](o[_0xf435b4(0x1d4)])),L(0x1,p[_0xf435b4(0x19a)])],exports[_0xf435b4(0x16e)]);function _0x2638(_0x3ec3e3,_0x31646c){_0x3ec3e3=_0x3ec3e3-0x160;const _0x364392=_0x3643();let _0x263844=_0x364392[_0x3ec3e3];return _0x263844;}const Q=_0xf435b4(0x203),w={};var X=Object[_0xf435b4(0x20e)],ee=(_0x53246a,_0x865329,_0x263ed4,_0x11ecf4)=>{const _0x246d79=_0xf435b4;for(var _0x135bf5=_0x11ecf4>0x1?void 0x0:_0x11ecf4?X(_0x865329,_0x263ed4):_0x865329,_0x1bdb6c=_0x53246a[_0x246d79(0x183)]-0x1,_0xbfe7a1;_0x1bdb6c>=0x0;_0x1bdb6c--)(_0xbfe7a1=_0x53246a[_0x1bdb6c])&&(_0x135bf5=_0xbfe7a1(_0x135bf5)||_0x135bf5);return _0x135bf5;},te=(_0xac534c,_0x33b24d)=>(_0x2dd846,_0xf7db05)=>_0x33b24d(_0x2dd846,_0xf7db05,_0xac534c);let m=class extends o['Disposable']{constructor(_0x1e2b0f){const _0x2a2abc=_0xf435b4;super(),this['_liveShareService']=_0x1e2b0f,this[_0x2a2abc(0x213)]();}['_init'](){const _0x509a4c=_0xf435b4;[D[_0x509a4c(0x1cc)]['id'],D['SetScrollOperation']['id'],C['SetWorksheetActiveOperation']['id']][_0x509a4c(0x195)](_0x3fc3ca=>{const _0x1a99a8=_0x509a4c;this[_0x1a99a8(0x1ca)](this[_0x1a99a8(0x1d8)][_0x1a99a8(0x1be)](_0x3fc3ca));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object[_0xf435b4(0x1f8)],se=Object[_0xf435b4(0x20e)],ne=(_0x2453e7,_0x516dad,_0x20603c)=>_0x516dad in _0x2453e7?ie(_0x2453e7,_0x516dad,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20603c}):_0x2453e7[_0x516dad]=_0x20603c,re=(_0x8e6f30,_0x486f12,_0x166dc7,_0x2fc172)=>{const _0x59d666=_0xf435b4;for(var _0x5b8cc1=_0x2fc172>0x1?void 0x0:_0x2fc172?se(_0x486f12,_0x166dc7):_0x486f12,_0x509634=_0x8e6f30[_0x59d666(0x183)]-0x1,_0x9d1ee3;_0x509634>=0x0;_0x509634--)(_0x9d1ee3=_0x8e6f30[_0x509634])&&(_0x5b8cc1=_0x9d1ee3(_0x5b8cc1)||_0x5b8cc1);return _0x5b8cc1;},N=(_0x152d49,_0x591861)=>(_0x2a18bd,_0x359ee5)=>_0x591861(_0x2a18bd,_0x359ee5,_0x152d49),A=(_0x35d1ee,_0xce2330,_0xbced61)=>ne(_0x35d1ee,typeof _0xce2330!='symbol'?_0xce2330+'':_0xce2330,_0xbced61);const oe=_0xf435b4(0x1c9);exports['UniverLiveSharePlugin']=class extends o[_0xf435b4(0x1b4)]{constructor(_0xd8fdb5=w,_0xe713d9,_0x314456){const _0x44c10e=_0xf435b4;super(),this[_0x44c10e(0x1c8)]=_0xd8fdb5,this['_injector']=_0xe713d9,this[_0x44c10e(0x16f)]=_0x314456;const {..._0x17fbed}=o[_0x44c10e(0x1e5)]({},w,this['_config']);this[_0x44c10e(0x16f)][_0x44c10e(0x20f)](Q,_0x17fbed);}[_0xf435b4(0x18b)](){const _0x334199=_0xf435b4;o['registerDependencies'](this[_0x334199(0x1d2)],o[_0x334199(0x197)]([[E],[exports[_0x334199(0x21c)]],[m],[exports[_0x334199(0x16e)]]],this[_0x334199(0x1c8)][_0x334199(0x1c5)])),o[_0x334199(0x16b)](this[_0x334199(0x1d2)],[[m]]);}[_0xf435b4(0x18e)](){const _0x119433=_0xf435b4;o[_0x119433(0x16b)](this[_0x119433(0x1d2)],[[exports[_0x119433(0x16e)]]]);}},A(exports[_0xf435b4(0x229)],'type',o[_0xf435b4(0x17c)][_0xf435b4(0x223)]),A(exports[_0xf435b4(0x229)],_0xf435b4(0x1d1),oe),exports['UniverLiveSharePlugin']=re([o[_0xf435b4(0x215)](b[_0xf435b4(0x1cd)]),N(0x1,o[_0xf435b4(0x1b5)](o['Injector'])),N(0x2,o[_0xf435b4(0x1da)])],exports[_0xf435b4(0x229)]),exports[_0xf435b4(0x1e1)]=$,exports[_0xf435b4(0x16a)]=E,exports['LiveShareStatus']=u;
|
|
1
|
+
'use strict';const _0x480436=_0x4c99;(function(_0x3ba62,_0x1705fc){const _0x51b51a=_0x4c99,_0x5b78ed=_0x3ba62();while(!![]){try{const _0x40eda3=-parseInt(_0x51b51a(0x25d))/0x1*(-parseInt(_0x51b51a(0x2b1))/0x2)+parseInt(_0x51b51a(0x28f))/0x3*(parseInt(_0x51b51a(0x1ed))/0x4)+-parseInt(_0x51b51a(0x213))/0x5*(-parseInt(_0x51b51a(0x2a5))/0x6)+-parseInt(_0x51b51a(0x234))/0x7+parseInt(_0x51b51a(0x20e))/0x8*(-parseInt(_0x51b51a(0x271))/0x9)+-parseInt(_0x51b51a(0x203))/0xa*(parseInt(_0x51b51a(0x211))/0xb)+parseInt(_0x51b51a(0x240))/0xc;if(_0x40eda3===_0x1705fc)break;else _0x5b78ed['push'](_0x5b78ed['shift']());}catch(_0x346aa2){_0x5b78ed['push'](_0x5b78ed['shift']());}}}(_0x2906,0xaf586));var T=Object['defineProperty'],U=(_0x366e1a,_0x4233b3,_0x311380)=>_0x4233b3 in _0x366e1a?T(_0x366e1a,_0x4233b3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x311380}):_0x366e1a[_0x4233b3]=_0x311380,_=(_0x5a3323,_0x3ed348,_0x3bcde7)=>U(_0x5a3323,typeof _0x3ed348!='symbol'?_0x3ed348+'':_0x3ed348,_0x3bcde7);Object[_0x480436(0x216)](exports,Symbol['toStringTag'],{'value':'Module'});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:_0x4609d9,..._0x2d055e}){const _0x3dd1ca=_0x480436,{icon:_0x35eab3,id:_0x5468ea,className:_0x38c087,extend:_0x10d6fd,..._0x4feef7}=_0x2d055e,_0x425a2b=(_0x3dd1ca(0x235)+_0x5468ea+'\x20'+(_0x38c087||''))[_0x3dd1ca(0x290)](),_0x168204=v[_0x3dd1ca(0x20c)]('_'+H());return j(_0x35eab3,''+_0x5468ea,{'defIds':_0x35eab3['defIds'],'idSuffix':_0x168204['current']},{'ref':_0x4609d9,'className':_0x425a2b,..._0x4feef7},_0x10d6fd);}function j(_0x114611,_0x5bf324,_0x28f602,_0x1d9e6a,_0x2e5242){const _0x5770b4=_0x480436;return v['createElement'](_0x114611['tag'],{'key':_0x5bf324,...y(_0x114611,_0x28f602,_0x2e5242),..._0x1d9e6a},(F(_0x114611,_0x28f602)[_0x5770b4(0x28a)]||[])['map']((_0x5de92f,_0x26b37e)=>j(_0x5de92f,_0x5bf324+'-'+_0x114611[_0x5770b4(0x229)]+'-'+_0x26b37e,_0x28f602,void 0x0,_0x2e5242)));}function y(_0x4da06c,_0x44f9b6,_0x292774){const _0x855dd7=_0x480436,_0x101a66={..._0x4da06c[_0x855dd7(0x22d)]};_0x292774!=null&&_0x292774[_0x855dd7(0x1f1)]&&_0x101a66[_0x855dd7(0x20d)]===_0x855dd7(0x1f1)&&(_0x101a66[_0x855dd7(0x20d)]=_0x292774['colorChannel1']),_0x4da06c[_0x855dd7(0x229)]===_0x855dd7(0x264)&&_0x101a66['id']&&(_0x101a66['id']=_0x101a66['id']+_0x44f9b6[_0x855dd7(0x1fe)]),Object['entries'](_0x101a66)[_0x855dd7(0x23d)](([_0x373fc5,_0x3d8ee1])=>{const _0x235128=_0x855dd7;_0x373fc5===_0x235128(0x264)&&typeof _0x3d8ee1==_0x235128(0x242)&&(_0x101a66[_0x373fc5]=_0x3d8ee1[_0x235128(0x228)](/url\(#(.*)\)/,_0x235128(0x1ec)+_0x44f9b6[_0x235128(0x1fe)]+')'));});const {defIds:_0x35506b}=_0x44f9b6;return!_0x35506b||_0x35506b['length']===0x0||(_0x4da06c['tag']==='use'&&_0x101a66[_0x855dd7(0x267)]&&(_0x101a66[_0x855dd7(0x267)]=_0x101a66[_0x855dd7(0x267)]+_0x44f9b6[_0x855dd7(0x1fe)]),Object[_0x855dd7(0x28c)](_0x101a66)[_0x855dd7(0x23d)](([_0x5f2418,_0x5de26a])=>{const _0x38d267=_0x855dd7;typeof _0x5de26a==_0x38d267(0x242)&&(_0x101a66[_0x5f2418]=_0x5de26a[_0x38d267(0x228)](/url\(#(.*)\)/,'url(#$1'+_0x44f9b6[_0x38d267(0x1fe)]+')'));})),_0x101a66;}function F(_0x28b192,_0x5ad15f){const _0x53a7f8=_0x480436;var _0x2ee943;const {defIds:_0x58bf3f}=_0x5ad15f;return!_0x58bf3f||_0x58bf3f['length']===0x0?_0x28b192:_0x28b192[_0x53a7f8(0x229)]===_0x53a7f8(0x258)&&((_0x2ee943=_0x28b192['children'])!=null&&_0x2ee943[_0x53a7f8(0x21b)])?{..._0x28b192,'children':_0x28b192[_0x53a7f8(0x28a)][_0x53a7f8(0x238)](_0x5b878c=>typeof _0x5b878c[_0x53a7f8(0x22d)]['id']==_0x53a7f8(0x242)&&_0x58bf3f&&_0x58bf3f[_0x53a7f8(0x1f4)](_0x5b878c[_0x53a7f8(0x22d)]['id'])?{..._0x5b878c,'attrs':{..._0x5b878c['attrs'],'id':_0x5b878c[_0x53a7f8(0x22d)]['id']+_0x5ad15f[_0x53a7f8(0x1fe)]}}:_0x5b878c)}:_0x28b192;}function H(){const _0x1d71ed=_0x480436;return Math[_0x1d71ed(0x269)]()[_0x1d71ed(0x25e)](0x24)['substring'](0x2,0x8);}x[_0x480436(0x1ef)]=_0x480436(0x2b3);const V={'tag':_0x480436(0x2ac),'attrs':{'xmlns':_0x480436(0x24c),'fill':_0x480436(0x270),'viewBox':_0x480436(0x21d),'width':_0x480436(0x20f),'height':_0x480436(0x20f)},'children':[{'tag':_0x480436(0x29b),'attrs':{'fill':_0x480436(0x296),'d':_0x480436(0x2ab)}},{'tag':'path','attrs':{'fill':_0x480436(0x296),'d':_0x480436(0x24f),'fillRule':_0x480436(0x1ff),'clipRule':_0x480436(0x1ff)}}]},R=v['forwardRef'](function(_0x9b7189,_0x2ef559){const _0x298f5a=_0x480436;return v[_0x298f5a(0x2b8)](x,Object[_0x298f5a(0x252)]({},_0x9b7189,{'id':_0x298f5a(0x1fb),'ref':_0x2ef559,'icon':V}));});R[_0x480436(0x1ef)]=_0x480436(0x2b5);class E extends o[_0x480436(0x230)]{constructor(){const _0x51c5a2=_0x480436;super(...arguments),_(this,_0x51c5a2(0x1fc),new Set()),_(this,_0x51c5a2(0x2bd),new Set());}[_0x480436(0x282)](_0xee8744){const _0x4d4a55=_0x480436;return this[_0x4d4a55(0x1fc)][_0x4d4a55(0x26f)](_0xee8744),o['toDisposable'](()=>this[_0x4d4a55(0x1fc)][_0x4d4a55(0x255)](_0xee8744));}[_0x480436(0x23c)](_0x49e5dd){const _0x49984c=_0x480436;return this[_0x49984c(0x2bd)][_0x49984c(0x26f)](_0x49e5dd),o['toDisposable'](()=>this['_reporters'][_0x49984c(0x255)](_0x49e5dd));}[_0x480436(0x28b)](_0x174917){const _0x392ac1=_0x480436;return this[_0x392ac1(0x1fc)]['has'](_0x174917);}['getInitialStates'](_0x64f60d){const _0x4a15c5=_0x480436;return Array[_0x4a15c5(0x263)](this[_0x4a15c5(0x2bd)])[_0x4a15c5(0x238)](_0x4515b3=>_0x4515b3(_0x64f60d));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x189c14,_0x4a3027,_0x5c5c0f,_0x272a4f)=>{const _0x39e9b7=_0x480436;for(var _0x382e84=_0x272a4f>0x1?void 0x0:_0x272a4f?M(_0x4a3027,_0x5c5c0f):_0x4a3027,_0x4b56ff=_0x189c14[_0x39e9b7(0x21b)]-0x1,_0x5e0539;_0x4b56ff>=0x0;_0x4b56ff--)(_0x5e0539=_0x189c14[_0x4b56ff])&&(_0x382e84=_0x5e0539(_0x382e84)||_0x382e84);return _0x382e84;},S=(_0x49a39f,_0x2c48a2)=>(_0x1c0dc5,_0x25bbd5)=>_0x2c48a2(_0x1c0dc5,_0x25bbd5,_0x49a39f);exports[_0x480436(0x29a)]=class extends o['RxDisposable']{constructor(_0x1e2823,_0x1b2dfb,_0x155775){const _0xc523fe=_0x480436;super(),_(this,_0xc523fe(0x2b6),new Map()),(this[_0xc523fe(0x22f)]=_0x1e2823,this['_injector']=_0x1b2dfb,this[_0xc523fe(0x1f6)]=_0x155775,this[_0xc523fe(0x285)]());}async[_0x480436(0x253)](_0x2c5336){const _0x192fbd=_0x480436;return this['_entities'][_0x192fbd(0x25b)](_0x2c5336)||await this[_0x192fbd(0x23e)](_0x2c5336),this[_0x192fbd(0x2b6)][_0x192fbd(0x210)](_0x2c5336);}['getLiveShareCoordinatorSync'](_0x1aac15){const _0x46c9b5=_0x480436;var _0x3c828f;return(_0x3c828f=this[_0x46c9b5(0x2b6)][_0x46c9b5(0x210)](_0x1aac15))!=null?_0x3c828f:null;}['_init'](){const _0x1fffcb=_0x480436;this[_0x1fffcb(0x22f)]['getTypeOfUnitAdded$'](o[_0x1fffcb(0x208)][_0x1fffcb(0x221)])[_0x1fffcb(0x2a4)](I[_0x1fffcb(0x27b)](this['dispose$']))['subscribe'](async _0x2b4484=>{const _0x5d4966=_0x1fffcb,_0x339906=_0x2b4484['getUnitId']();this[_0x5d4966(0x2b6)][_0x5d4966(0x25b)](_0x339906)||this[_0x5d4966(0x23e)](_0x339906);}),this[_0x1fffcb(0x22f)][_0x1fffcb(0x2b2)](o[_0x1fffcb(0x208)][_0x1fffcb(0x221)])[_0x1fffcb(0x2a4)](I[_0x1fffcb(0x27b)](this[_0x1fffcb(0x1e6)]))[_0x1fffcb(0x27e)](_0x393840=>{const _0x5dadcc=_0x1fffcb,_0x99dd0=_0x393840['getUnitId'](),_0x54eb2e=this[_0x5dadcc(0x2b6)]['get'](_0x99dd0);_0x54eb2e==null||_0x54eb2e[_0x5dadcc(0x273)]();});}async['_startLiveShareCoordinator'](_0x192be4){const _0x18219c=_0x480436,_0x5cc0c8=await this[_0x18219c(0x1f6)][_0x18219c(0x2bc)](_0x192be4),_0x19877f=this['_injector'][_0x18219c(0x243)](exports[_0x18219c(0x219)],_0x192be4,_0x5cc0c8);return _0x19877f['init'](),this[_0x18219c(0x2b6)]['set'](_0x192be4,_0x19877f),_0x19877f;}},exports[_0x480436(0x29a)]=P([S(0x0,o[_0x480436(0x21a)]),S(0x1,o['Inject'](o['Injector'])),S(0x2,o['Inject'](b[_0x480436(0x2b9)]))],exports[_0x480436(0x29a)]);var u=(_0x5f55aa=>(_0x5f55aa[_0x480436(0x287)]=_0x480436(0x24a),_0x5f55aa[_0x480436(0x29f)]='idle',_0x5f55aa[_0x480436(0x297)]='following',_0x5f55aa['NOT_FOLLOWING']='not-following',_0x5f55aa['PRESENTING']=_0x480436(0x278),_0x5f55aa))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports[_0x480436(0x219)]=class extends o[_0x480436(0x277)]{constructor(_0x3d77c7,_0x1bfcd6,_0x16174e,_0x551b33,_0x224a52){const _0xf3507e=_0x480436;super(),_(this,_0xf3507e(0x239),new O[(_0xf3507e(0x2a0))](_0xf3507e(0x1f5))),_(this,_0xf3507e(0x27c),this[_0xf3507e(0x239)][_0xf3507e(0x2b4)]()),_(this,'_init',!0x1),_(this,_0xf3507e(0x2aa),null),_(this,_0xf3507e(0x27f),null),(this[_0xf3507e(0x28e)]=_0x3d77c7,this[_0xf3507e(0x2bb)]=_0x1bfcd6,this[_0xf3507e(0x2ba)]=_0x16174e,this['_liveShareService']=_0x551b33,this['_commandService']=_0x224a52);}get[_0x480436(0x29d)](){const _0x5414a2=_0x480436;return this['_status$'][_0x5414a2(0x206)]();}[_0x480436(0x273)](){const _0x500e97=_0x480436;var _0x38eb2c;(_0x38eb2c=this[_0x500e97(0x2aa)])==null||_0x38eb2c[_0x500e97(0x273)](),this['_status$'][_0x500e97(0x217)]('idle'),this['_status$']['complete']();}['getStatus'](){const _0x1433e6=_0x480436;return this[_0x1433e6(0x29d)];}['init'](){const _0xb290c7=_0x480436;this[_0xb290c7(0x285)]||(this[_0xb290c7(0x285)]=!0x0,this[_0xb290c7(0x2bb)][_0xb290c7(0x1f3)][_0xb290c7(0x2a4)](I['takeUntil'](this[_0xb290c7(0x1e6)]))[_0xb290c7(0x27e)](_0x55525b=>{const _0x8a639b=_0xb290c7;switch(_0x55525b){case b[_0x8a639b(0x247)][_0x8a639b(0x287)]:this[_0x8a639b(0x28d)]();break;case b[_0x8a639b(0x247)]['ONLINE']:this[_0x8a639b(0x22e)]();break;}}),this[_0xb290c7(0x2bb)][_0xb290c7(0x222)]['pipe'](I[_0xb290c7(0x27b)](this[_0xb290c7(0x1e6)]))[_0xb290c7(0x27e)](_0x261ebc=>{const _0x175891=_0xb290c7,{eventID:_0x17dc23}=_0x261ebc;switch(_0x17dc23){case d['CollaborationEvent'][_0x175891(0x245)]:this[_0x175891(0x20b)](_0x261ebc);break;case d['CollaborationEvent'][_0x175891(0x21f)]:this['_handleOperation'](_0x261ebc);break;case d['CollaborationEvent'][_0x175891(0x200)]:this[_0x175891(0x232)]();break;case d['CollaborationEvent'][_0x175891(0x1f9)]:this[_0x175891(0x288)](_0x261ebc);break;}}));}[_0x480436(0x283)](){const _0x2be376=_0x480436;this[_0x2be376(0x2bb)][_0x2be376(0x260)]({'eventID':d['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x2be376(0x28e)],'userID':this[_0x2be376(0x2bb)][_0x2be376(0x261)]()}},this['_unitID']);}[_0x480436(0x227)](){const _0x37a0f3=_0x480436;this[_0x37a0f3(0x29d)]==='presenting'&&(this[_0x37a0f3(0x239)]['next'](_0x37a0f3(0x1f5)),this[_0x37a0f3(0x2bb)][_0x37a0f3(0x260)]({'eventID':d[_0x37a0f3(0x246)][_0x37a0f3(0x200)],'data':{'unitID':this['_unitID']}},this[_0x37a0f3(0x28e)]));}['startFollowing'](){const _0x227fa0=_0x480436;this[_0x227fa0(0x29d)]===_0x227fa0(0x233)&&(this[_0x227fa0(0x239)]['next']('following'),this[_0x227fa0(0x26b)]());}[_0x480436(0x268)](){const _0xaa0cd2=_0x480436;this[_0xaa0cd2(0x29d)]===_0xaa0cd2(0x2ad)&&this[_0xaa0cd2(0x27d)]();}['_handleNewHost'](_0x2961ed){const _0x26be98=_0x480436,{presenter:_0x4ad6ee}=_0x2961ed['data'],_0x485dc8=this[_0x26be98(0x2bb)]['getMemberID']();this[_0x26be98(0x27f)]=_0x4ad6ee,_0x4ad6ee===_0x485dc8?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x26be98(0x29d)]!=='not-following'&&(this[_0x26be98(0x201)](),this[_0x26be98(0x26b)]());}[_0x480436(0x1f0)](){const _0x518748=_0x480436,_0x429c6c={'eventID':d[_0x518748(0x246)][_0x518748(0x2af)]};this[_0x518748(0x2bb)]['send'](_0x429c6c,this['_unitID']);}[_0x480436(0x232)](){const _0x3e31f2=_0x480436;this[_0x3e31f2(0x27f)]=null,this['_status']!==_0x3e31f2(0x278)&&this[_0x3e31f2(0x212)]();}[_0x480436(0x288)](_0x29b603){const _0x3301e2=_0x480436;if(this[_0x3301e2(0x29d)]===_0x3301e2(0x2ad)&&this['_presenter']===_0x29b603[_0x3301e2(0x29c)][_0x3301e2(0x248)]){const _0xc07d77=d[_0x3301e2(0x251)](_0x29b603[_0x3301e2(0x29c)])['mutations'][_0x3301e2(0x256)]()[_0x3301e2(0x224)](_0x506ac4=>_0x506ac4['id']===C[_0x3301e2(0x207)]['id']);if(_0xc07d77){const _0x1e8270=_0xc07d77[_0x3301e2(0x249)][_0x3301e2(0x1f7)],_0xe193ef=_0xc07d77['params'][_0x3301e2(0x2a6)]['id'];setTimeout(()=>{const _0xb8c779=_0x3301e2;this[_0xb8c779(0x294)][_0xb8c779(0x281)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x1e8270,'subUnitId':_0xe193ef},{'fromCollab':!0x0});});}}}[_0x480436(0x24e)](){const _0x8cd83b=_0x480436;this[_0x8cd83b(0x239)][_0x8cd83b(0x217)]('presenting');const _0x52073f=new Map(),_0x3b1938=this['_commandDisposable']=new o[(_0x8cd83b(0x209))]();_0x3b1938['add'](o[_0x8cd83b(0x2b0)](()=>{const _0x5876d4=_0x8cd83b;_0x52073f[_0x5876d4(0x23d)](_0x1862f9=>_0x1862f9[_0x5876d4(0x291)]()),_0x52073f[_0x5876d4(0x231)]();})),_0x3b1938['add'](this[_0x8cd83b(0x294)][_0x8cd83b(0x25a)](_0x130d8c=>{const _0xc0ebd0=_0x8cd83b;var _0x2f46a8;if(_0x130d8c[_0xc0ebd0(0x279)]!==o[_0xc0ebd0(0x280)][_0xc0ebd0(0x236)]||!this[_0xc0ebd0(0x244)][_0xc0ebd0(0x28b)](_0x130d8c['id']))return;const {id:_0x336354}=_0x130d8c;let _0x353401;_0x52073f[_0xc0ebd0(0x25b)](_0x336354)?_0x353401=_0x52073f[_0xc0ebd0(0x210)](_0x336354):(_0x353401=new O['Subject'](),_0x52073f[_0xc0ebd0(0x1f2)](_0x336354,_0x353401),_0x353401['pipe'](I[_0xc0ebd0(0x22c)]((_0x2f46a8=this[_0xc0ebd0(0x2ba)]['getConfig'](k))!=null?_0x2f46a8:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xc0ebd0(0x27e)](_0x4551fc=>{const _0x150a0d=_0xc0ebd0;this[_0x150a0d(0x2bb)][_0x150a0d(0x260)]({'eventID':d[_0x150a0d(0x246)][_0x150a0d(0x21f)],'data':{'unitID':this[_0x150a0d(0x28e)],'operations':{[_0x4551fc['id']]:{'id':_0x4551fc['id'],'params':JSON[_0x150a0d(0x23f)](_0x4551fc[_0x150a0d(0x249)])}}}},this[_0x150a0d(0x28e)]);})),_0x353401[_0xc0ebd0(0x217)](_0x130d8c);})),this[_0x8cd83b(0x244)][_0x8cd83b(0x276)](this[_0x8cd83b(0x28e)])[_0x8cd83b(0x23d)](_0xf586a3=>this[_0x8cd83b(0x2bb)][_0x8cd83b(0x260)]({'eventID':d['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x8cd83b(0x28e)],'operations':{[_0xf586a3['id']]:{'id':_0xf586a3['id'],'params':JSON[_0x8cd83b(0x23f)](_0xf586a3[_0x8cd83b(0x249)])}}}},this[_0x8cd83b(0x28e)]));}[_0x480436(0x201)](){const _0x582bab=_0x480436;var _0xe8c3d;this[_0x582bab(0x239)]['next'](_0x582bab(0x1f5)),(_0xe8c3d=this[_0x582bab(0x2aa)])==null||_0xe8c3d['dispose'](),this[_0x582bab(0x2aa)]=null;}[_0x480436(0x26b)](){const _0x124149=_0x480436;var _0x10445f;(_0x10445f=this[_0x124149(0x2aa)])==null||_0x10445f[_0x124149(0x273)](),this['_status$'][_0x124149(0x217)](_0x124149(0x2ad));}[_0x480436(0x212)](){const _0x168baf=_0x480436;var _0xf50e0;this[_0x168baf(0x239)][_0x168baf(0x217)](_0x168baf(0x1f5)),(_0xf50e0=this[_0x168baf(0x2aa)])==null||_0xf50e0[_0x168baf(0x273)](),this[_0x168baf(0x2aa)]=null;}[_0x480436(0x27d)](){const _0x2289a1=_0x480436;var _0x1e1f38;this[_0x2289a1(0x239)][_0x2289a1(0x217)](_0x2289a1(0x233)),(_0x1e1f38=this['_commandDisposable'])==null||_0x1e1f38['dispose']();}[_0x480436(0x289)](_0x4315f5){const _0x489004=_0x480436;if([_0x489004(0x278),_0x489004(0x233),_0x489004(0x24a)][_0x489004(0x1f4)](this['_status'])||!_0x4315f5[_0x489004(0x29c)]['presenter']||_0x4315f5[_0x489004(0x29c)][_0x489004(0x20a)]===this[_0x489004(0x2bb)][_0x489004(0x261)]())return;this[_0x489004(0x29d)]==='idle'&&this[_0x489004(0x26b)]();const _0x1c33e1=_0x4315f5[_0x489004(0x29c)][_0x489004(0x205)];Object[_0x489004(0x1eb)](_0x1c33e1)[_0x489004(0x23d)](_0x701b52=>{const _0x5a75e3=_0x489004;this[_0x5a75e3(0x294)][_0x5a75e3(0x281)](_0x701b52['id'],_0x701b52[_0x5a75e3(0x249)]?JSON[_0x5a75e3(0x214)](_0x701b52[_0x5a75e3(0x249)]):null,{'fromCollab':!0x0});});}[_0x480436(0x28d)](){const _0x4ca5b5=_0x480436;var _0x54f6c9;this['_status$'][_0x4ca5b5(0x217)](_0x4ca5b5(0x24a)),(_0x54f6c9=this['_commandDisposable'])==null||_0x54f6c9[_0x4ca5b5(0x273)]();}['_handleOnline'](){const _0x292f9c=_0x480436;this[_0x292f9c(0x239)][_0x292f9c(0x217)]('idle'),this[_0x292f9c(0x1f0)]();}},exports[_0x480436(0x219)]=P([S(0x2,o['IConfigService']),S(0x3,o[_0x480436(0x215)](E)),S(0x4,o[_0x480436(0x1fa)])],exports[_0x480436(0x219)]);function $(){const _0x431cb8=_0x480436,_0x2aeca1=p[_0x431cb8(0x24d)](exports[_0x431cb8(0x29a)]),_0x22eb6c=p['useDependency'](o[_0x431cb8(0x21a)]),_0x165721=p[_0x431cb8(0x226)](()=>_0x22eb6c[_0x431cb8(0x22b)](o[_0x431cb8(0x208)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x4f3578,_0x43cb86]=v[_0x431cb8(0x1fd)](null),[_0xbe52f7,_0x216e29]=v[_0x431cb8(0x1fd)](u['IDLE']),_0x5cb6eb=v[_0x431cb8(0x20c)](null);return v['useEffect'](()=>(_0x165721&&_0x2aeca1[_0x431cb8(0x253)](_0x165721[_0x431cb8(0x25f)]())[_0x431cb8(0x286)](_0x50df66=>{const _0x2e2793=_0x431cb8;_0x43cb86(_0x50df66),_0x5cb6eb['current']=_0x50df66['status$'][_0x2e2793(0x27e)](_0x58de62=>{_0x216e29(_0x58de62);});}),()=>{const _0x1e1bb9=_0x431cb8;var _0x9b3964;(_0x9b3964=_0x5cb6eb[_0x1e1bb9(0x21c)])==null||_0x9b3964[_0x1e1bb9(0x275)](),_0x5cb6eb[_0x1e1bb9(0x21c)]=null;}),[_0x165721,_0x2aeca1]),_0x4f3578?l['jsx'](f[_0x431cb8(0x1ea)],{'align':_0x431cb8(0x259),'disabled':_0xbe52f7===u[_0x431cb8(0x287)],'className':_0x431cb8(0x295),'overlay':l[_0x431cb8(0x254)](W,{'status':_0xbe52f7,'coordinator':_0x4f3578}),'children':l[_0x431cb8(0x254)](_0x431cb8(0x265),{'className':f[_0x431cb8(0x1e7)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xbe52f7===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xbe52f7!==u['OFFLINE']}),'type':_0x431cb8(0x265),'children':l[_0x431cb8(0x254)](R,{'className':'univer-size-4'})})}):null;}function W(_0x407a63){const _0x593b57=_0x480436,{status:_0x163b5d,coordinator:_0x5eb326}=_0x407a63;switch(_0x163b5d){case u[_0x593b57(0x29f)]:return l[_0x593b57(0x254)](G,{'coordinator':_0x5eb326});case u[_0x593b57(0x297)]:return l[_0x593b57(0x254)](B,{'coordinator':_0x5eb326});case u['NOT_FOLLOWING']:return l[_0x593b57(0x254)](Y,{'coordinator':_0x5eb326});case u[_0x593b57(0x287)]:return l[_0x593b57(0x254)](J,{});case u[_0x593b57(0x2a8)]:return l[_0x593b57(0x254)](Z,{'coordinator':_0x5eb326});default:return null;}}function G(_0xc4586e){const _0x4ebfe3=_0x480436,{coordinator:_0x38c7c7}=_0xc4586e;return l[_0x4ebfe3(0x274)](l[_0x4ebfe3(0x1ee)],{'children':[l['jsx'](_0x4ebfe3(0x21e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4ebfe3(0x299)}),l[_0x4ebfe3(0x254)](f[_0x4ebfe3(0x26e)],{'onClick':()=>_0x38c7c7[_0x4ebfe3(0x283)](),'children':'Start'})]});}function _0x4c99(_0x368068,_0x29a3bf){_0x368068=_0x368068-0x1e6;const _0x2906b7=_0x2906();let _0x4c993a=_0x2906b7[_0x368068];return _0x4c993a;}function _0x2906(){const _0x471e2f=['executeCommand','registerSharedOperation','tryStartPresenting','SetScrollOperation','_init','then','OFFLINE','_handleNewChangeSets','_handleOperation','children','shouldShareOperation','entries','_handleOffline','_unitID','15TOEUzJ','trim','complete','Injector','IUIPartsService','_commandService','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','currentColor','FOLLOWING','pluginName','Present\x20this\x20document','LiveShareController','path','data','_status','merge','IDLE','BehaviorSubject','registerComponent','override','connectInjector','pipe','160032gRmaWp','sheet','You\x27re\x20following\x20the\x20presenter','PRESENTING','Stop\x20presenting','_commandDisposable','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','svg','following','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_FETCH_OPERATIONS','toDisposable','274308easLZv','getTypeOfUnitDisposed$','UniverIcon','asObservable','LiveShareIcon','_entities','default','createElement','CollaborationSessionService','_configService','_collabSession','requireSession','_reporters','dispose$','clsx','UniverCollaborationClientPlugin','onStarting','Dropdown','values','url(#$1','833396fLjXDs','Fragment','displayName','_fetchOperations','colorChannel1','set','sessionStatus$','includes','idle','_collabSessionService','unitId','LiveShare','NEW_CHANGESETS','ICommandService','live-share-icon','_sharedOperations','useState','idSuffix','evenodd','LIVESHARE_TERMINATE','_stopPresenting','text','40aUGNZl','Start\x20following','operations','getValue','InsertSheetMutation','UniverInstanceType','DisposableCollection','presenter','_handleNewHost','useRef','fill','112LniyJj','1em','get','3114221xkkHVg','_beIdle','65kwUsWF','parse','Inject','defineProperty','next','UniverLiveSharePlugin','LiveShareCoordinator','IUniverInstanceService','length','current','0\x200\x2017\x2017','div','LIVESHARE_OPERATION','DependentOn','UNIVER_SHEET','event$','DesktopLiveShareController','find','You\x27re\x20not\x20following\x20the\x20presenter','useObservable','stopPresenting','replace','tag','_mountLiveShare','getCurrentTypeOfUnit$','throttleTime','attrs','_handleOnline','_univerInstanceService','Disposable','clear','_handleTerminate','not-following','8175643MrFVIy','univerjs-icon\x20univerjs-icon-','OPERATION','symbol','map','_status$','Stop\x20following','onRendered','registerInitialStateReporter','forEach','_startLiveShareCoordinator','stringify','20270856GCCALK','touchDependencies','string','createInstance','_liveShareService','LIVESHARE_NEW_HOST','CollaborationEvent','SessionStatus','memberID','params','offline','registerDependencies','http://www.w3.org/2000/svg','useDependency','_startPresenting','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','univer-mb-3\x20univer-w-full\x20univer-text-sm','parseProtocolChangeset','assign','getLiveShareCoordinator','jsx','delete','reverse','UNIVER_UNKNOWN','defs','end','onCommandExecuted','has','_injector','1rMGWih','toString','getUnitId','send','getMemberID','BuiltInUIPart','from','mask','button','_uiPartsService','xlink:href','stopFollowing','random','getOwnPropertyDescriptor','_startFollowing','LiveShareService','_config','Button','add','none','126171LIOUXy','Plugin','dispose','jsxs','unsubscribe','getInitialStates','RxDisposable','presenting','type','disposeWithMe','takeUntil','status$','_stopFollowing','subscribe','_presenter','CommandType'];_0x2906=function(){return _0x471e2f;};return _0x2906();}function B(_0x19a128){const _0x26326a=_0x480436,{coordinator:_0x9bf3c}=_0x19a128;return l[_0x26326a(0x274)](l['Fragment'],{'children':[l[_0x26326a(0x254)](_0x26326a(0x21e),{'className':_0x26326a(0x250),'children':_0x26326a(0x2a7)}),l[_0x26326a(0x254)](f[_0x26326a(0x26e)],{'onClick':()=>_0x9bf3c['stopFollowing'](),'children':_0x26326a(0x23a)})]});}function Y(_0x406cba){const _0x41a206=_0x480436,{coordinator:_0x97b4b6}=_0x406cba;return l[_0x41a206(0x274)](l[_0x41a206(0x1ee)],{'children':[l[_0x41a206(0x254)](_0x41a206(0x21e),{'className':_0x41a206(0x250),'children':_0x41a206(0x225)}),l[_0x41a206(0x254)](f[_0x41a206(0x26e)],{'variant':_0x41a206(0x202),'onClick':()=>_0x97b4b6['startFollowing'](),'children':_0x41a206(0x204)})]});}function Z(_0x34c575){const _0x3ce4cf=_0x480436,{coordinator:_0x46608d}=_0x34c575;return l['jsxs'](l[_0x3ce4cf(0x1ee)],{'children':[l['jsx'](_0x3ce4cf(0x21e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x3ce4cf(0x254)](f[_0x3ce4cf(0x26e)],{'variant':_0x3ce4cf(0x2b7),'onClick':()=>_0x46608d[_0x3ce4cf(0x227)](),'children':_0x3ce4cf(0x2a9)})]});}function J(){const _0x229a2c=_0x480436;return l[_0x229a2c(0x254)](l['Fragment'],{'children':'You\x27are\x20offline.'});}var K=Object['getOwnPropertyDescriptor'],z=(_0x29fefc,_0x1eb802,_0x1d01c2,_0x2e3be4)=>{for(var _0x5dbde6=_0x2e3be4>0x1?void 0x0:_0x2e3be4?K(_0x1eb802,_0x1d01c2):_0x1eb802,_0x2522a2=_0x29fefc['length']-0x1,_0x43e08a;_0x2522a2>=0x0;_0x2522a2--)(_0x43e08a=_0x29fefc[_0x2522a2])&&(_0x5dbde6=_0x43e08a(_0x5dbde6)||_0x5dbde6);return _0x5dbde6;},L=(_0x565759,_0x512a0a)=>(_0x37bd0a,_0x57a810)=>_0x512a0a(_0x37bd0a,_0x57a810,_0x565759);exports[_0x480436(0x223)]=class extends o[_0x480436(0x230)]{constructor(_0x3d4a95,_0x433670){const _0x22ad4b=_0x480436;super(),this['_injector']=_0x3d4a95,this[_0x22ad4b(0x266)]=_0x433670,this[_0x22ad4b(0x22a)]();}[_0x480436(0x22a)](){const _0xab8a97=_0x480436;this[_0xab8a97(0x27a)](this[_0xab8a97(0x266)][_0xab8a97(0x2a1)](p[_0xab8a97(0x262)]['HEADER_MENU'],()=>p[_0xab8a97(0x2a3)]($,this['_injector'])));}},exports[_0x480436(0x223)]=z([L(0x0,o[_0x480436(0x215)](o[_0x480436(0x292)])),L(0x1,p[_0x480436(0x293)])],exports[_0x480436(0x223)]);const Q='live-share.config',w={};var X=Object[_0x480436(0x26a)],ee=(_0x5d0bcf,_0x5286e2,_0x3961c0,_0x245ac5)=>{for(var _0x36925b=_0x245ac5>0x1?void 0x0:_0x245ac5?X(_0x5286e2,_0x3961c0):_0x5286e2,_0x10a55c=_0x5d0bcf['length']-0x1,_0xf86b44;_0x10a55c>=0x0;_0x10a55c--)(_0xf86b44=_0x5d0bcf[_0x10a55c])&&(_0x36925b=_0xf86b44(_0x36925b)||_0x36925b);return _0x36925b;},te=(_0x5a4366,_0x3fc47b)=>(_0x2cc020,_0x53f254)=>_0x3fc47b(_0x2cc020,_0x53f254,_0x5a4366);let m=class extends o[_0x480436(0x230)]{constructor(_0x18e85e){const _0x1584ea=_0x480436;super(),this[_0x1584ea(0x244)]=_0x18e85e,this[_0x1584ea(0x285)]();}[_0x480436(0x285)](){const _0x1773d9=_0x480436;[D['SetZoomRatioOperation']['id'],D[_0x1773d9(0x284)]['id'],C['SetWorksheetActiveOperation']['id']][_0x1773d9(0x23d)](_0x3fcc1a=>{const _0x56046b=_0x1773d9;this['disposeWithMe'](this[_0x56046b(0x244)][_0x56046b(0x282)](_0x3fcc1a));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object[_0x480436(0x216)],se=Object['getOwnPropertyDescriptor'],ne=(_0x5ab78a,_0x3f8bbb,_0x344637)=>_0x3f8bbb in _0x5ab78a?ie(_0x5ab78a,_0x3f8bbb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x344637}):_0x5ab78a[_0x3f8bbb]=_0x344637,re=(_0xe350a2,_0x1ae402,_0x3cdaf5,_0x2b5a30)=>{const _0x4d3860=_0x480436;for(var _0x16d680=_0x2b5a30>0x1?void 0x0:_0x2b5a30?se(_0x1ae402,_0x3cdaf5):_0x1ae402,_0x6f9a02=_0xe350a2[_0x4d3860(0x21b)]-0x1,_0x1e37f1;_0x6f9a02>=0x0;_0x6f9a02--)(_0x1e37f1=_0xe350a2[_0x6f9a02])&&(_0x16d680=_0x1e37f1(_0x16d680)||_0x16d680);return _0x16d680;},N=(_0x727859,_0x49e53e)=>(_0x193b21,_0xa866ce)=>_0x49e53e(_0x193b21,_0xa866ce,_0x727859),A=(_0x55051d,_0x2c9690,_0x38da53)=>ne(_0x55051d,typeof _0x2c9690!=_0x480436(0x237)?_0x2c9690+'':_0x2c9690,_0x38da53);const oe=_0x480436(0x2ae);exports[_0x480436(0x218)]=class extends o[_0x480436(0x272)]{constructor(_0x40e758=w,_0x1bf925,_0x1021d9){const _0x119619=_0x480436;super(),this[_0x119619(0x26d)]=_0x40e758,this[_0x119619(0x25c)]=_0x1bf925,this[_0x119619(0x2ba)]=_0x1021d9;const {..._0x1842ad}=o[_0x119619(0x29e)]({},w,this[_0x119619(0x26d)]);this[_0x119619(0x2ba)]['setConfig'](Q,_0x1842ad);}[_0x480436(0x1e9)](){const _0x26eebb=_0x480436;o[_0x26eebb(0x24b)](this[_0x26eebb(0x25c)],o['mergeOverrideWithDependencies']([[E],[exports[_0x26eebb(0x29a)]],[m],[exports[_0x26eebb(0x223)]]],this[_0x26eebb(0x26d)][_0x26eebb(0x2a2)])),o[_0x26eebb(0x241)](this[_0x26eebb(0x25c)],[[m]]);}[_0x480436(0x23b)](){const _0x9599c3=_0x480436;o[_0x9599c3(0x241)](this[_0x9599c3(0x25c)],[[exports[_0x9599c3(0x223)]]]);}},A(exports['UniverLiveSharePlugin'],_0x480436(0x279),o[_0x480436(0x208)][_0x480436(0x257)]),A(exports[_0x480436(0x218)],_0x480436(0x298),oe),exports[_0x480436(0x218)]=re([o[_0x480436(0x220)](b[_0x480436(0x1e8)]),N(0x1,o[_0x480436(0x215)](o[_0x480436(0x292)])),N(0x2,o['IConfigService'])],exports[_0x480436(0x218)]),exports[_0x480436(0x1f8)]=$,exports[_0x480436(0x26c)]=E,exports['LiveShareStatus']=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x20bcd6=_0x1f2a;(function(_0x2cc397,_0xa868fd){const _0x5ce6e4=_0x1f2a,_0x30e752=_0x2cc397();while(!![]){try{const _0x316838=-parseInt(_0x5ce6e4(0x1b2))/0x1+-parseInt(_0x5ce6e4(0x1c1))/0x2+-parseInt(_0x5ce6e4(0x1cf))/0x3*(parseInt(_0x5ce6e4(0x1bc))/0x4)+parseInt(_0x5ce6e4(0x1b6))/0x5*(-parseInt(_0x5ce6e4(0x1bb))/0x6)+-parseInt(_0x5ce6e4(0x1c3))/0x7+-parseInt(_0x5ce6e4(0x1ca))/0x8*(-parseInt(_0x5ce6e4(0x1b9))/0x9)+parseInt(_0x5ce6e4(0x1b8))/0xa*(parseInt(_0x5ce6e4(0x1c4))/0xb);if(_0x316838===_0xa868fd)break;else _0x30e752['push'](_0x30e752['shift']());}catch(_0x2d2c6a){_0x30e752['push'](_0x30e752['shift']());}}}(_0x57a3,0x36b7b));import{LiveShareController as _0x3bf062,LiveShareStatus as _0x4cb3db}from'@univerjs-pro/live-share';import{IRenderManagerService as _0xef1b8d}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x58c827}from'@univerjs/sheets';import{SetScrollOperation as _0x30b027}from'@univerjs/sheets-ui';function _0x1f2a(_0x3a0254,_0x4a2493){_0x3a0254=_0x3a0254-0x1b0;const _0x57a309=_0x57a3();let _0x1f2a0f=_0x57a309[_0x3a0254];return _0x1f2a0f;}import{FRange as _0xb31a5c}from'@univerjs/sheets/facade';import{FUniver as _0x2e1202,FEnum as _0x1ab120}from'@univerjs/core/facade';class I extends _0xb31a5c{[_0x20bcd6(0x1ce)](_0xe1b583,_0x450f9e,_0x244abf,_0x1e1683,_0x309eeb){const _0x297830=_0x20bcd6,_0x2e985e=_0xe1b583[_0x297830(0x1cc)](_0x3bf062),_0x264784=_0xe1b583['get'](_0xef1b8d),_0x1a3008=_0x450f9e['getUnitId'](),_0x2ea082=_0x450f9e[_0x297830(0x1c2)](),_0x47d389=_0x2e985e[_0x297830(0x1b3)](_0x1a3008);(_0x47d389==null?void 0x0:_0x47d389['getStatus']())!==_0x4cb3db['PRESENTING']||(_0x244abf['getSheetId']()!==_0x2ea082[_0x297830(0x1bd)]()&&this['_commandService'][_0x297830(0x1c7)](_0x58c827['id'],{'unitId':_0x1a3008,'subUnitId':_0x244abf[_0x297830(0x1bd)]()}),!_0x264784['getRenderById'](_0x1a3008))||_0x309eeb[_0x297830(0x1c6)](_0x30b027['id'],{'unitId':_0x450f9e[_0x297830(0x1cd)](),'sheetId':_0x244abf['getSheetId'](),'sheetViewStartRow':_0x1e1683[_0x297830(0x1c0)],'sheetViewStartColumn':_0x1e1683[_0x297830(0x1b0)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0xb31a5c[_0x20bcd6(0x1b5)](I);class m extends _0x2e1202{[_0x20bcd6(0x1bf)](){const _0x1f9573=_0x20bcd6;var _0x47f3ce,_0x53481c;const _0x5b5eb4=this[_0x1f9573(0x1c9)][_0x1f9573(0x1cc)](_0x3bf062),_0x28ec5c=(_0x47f3ce=this[_0x1f9573(0x1b7)]())==null?void 0x0:_0x47f3ce[_0x1f9573(0x1c5)]();if(!_0x28ec5c)throw new Error('No\x20active\x20workbook\x20found.');const _0x210ecf=_0x5b5eb4[_0x1f9573(0x1b3)](_0x28ec5c);return(_0x53481c=_0x210ecf==null?void 0x0:_0x210ecf['getStatus']())!=null?_0x53481c:_0x4cb3db['IDLE'];}[_0x20bcd6(0x1cb)](){const _0x5551a8=_0x20bcd6;var _0xb791fd;const _0x181773=this[_0x5551a8(0x1c9)][_0x5551a8(0x1cc)](_0x3bf062),_0x6aedf=(_0xb791fd=this[_0x5551a8(0x1b7)]())==null?void 0x0:_0xb791fd[_0x5551a8(0x1c5)]();if(!_0x6aedf)throw new Error(_0x5551a8(0x1b4));const _0x15953a=_0x181773[_0x5551a8(0x1b3)](_0x6aedf);if(!_0x15953a)throw new Error(_0x5551a8(0x1ba));_0x15953a['startFollowing']();}['stopFollowing'](){const _0x3aeda3=_0x20bcd6;var _0x134f64;const _0x1445db=this[_0x3aeda3(0x1c9)][_0x3aeda3(0x1cc)](_0x3bf062),_0x2b0fc1=(_0x134f64=this['getActiveWorkbook']())==null?void 0x0:_0x134f64[_0x3aeda3(0x1c5)]();if(!_0x2b0fc1)throw new Error(_0x3aeda3(0x1b4));const _0x18015e=_0x1445db[_0x3aeda3(0x1b3)](_0x2b0fc1);if(!_0x18015e)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x18015e['stopFollowing']();}[_0x20bcd6(0x1c8)](){const _0x311e7c=_0x20bcd6;var _0x265d3e;const _0x1301ff=this['_injector'][_0x311e7c(0x1cc)](_0x3bf062),_0x56c8cb=(_0x265d3e=this[_0x311e7c(0x1b7)]())==null?void 0x0:_0x265d3e['getId']();if(!_0x56c8cb)throw new Error('No\x20active\x20workbook\x20found.');const _0x54f848=_0x1301ff[_0x311e7c(0x1b3)](_0x56c8cb);if(!_0x54f848)throw new Error(_0x311e7c(0x1ba));_0x54f848[_0x311e7c(0x1be)]();}[_0x20bcd6(0x1b1)](){const _0x5a9912=_0x20bcd6;var _0x1677f7;const _0x4019be=this[_0x5a9912(0x1c9)][_0x5a9912(0x1cc)](_0x3bf062),_0xc740ef=(_0x1677f7=this[_0x5a9912(0x1b7)]())==null?void 0x0:_0x1677f7[_0x5a9912(0x1c5)]();if(!_0xc740ef)throw new Error(_0x5a9912(0x1b4));const _0x2b4f7e=_0x4019be[_0x5a9912(0x1b3)](_0xc740ef);if(!_0x2b4f7e)throw new Error(_0x5a9912(0x1ba));_0x2b4f7e[_0x5a9912(0x1b1)]();}}_0x2e1202['extend'](m);class C extends _0x1ab120{get['LiveShareStatusEnum'](){return _0x4cb3db;}}_0x1ab120[_0x20bcd6(0x1b5)](C);function _0x57a3(){const _0x56af26=['358242qERvIE','27652DYzynx','getSheetId','tryStartPresenting','getLiveShareStatus','startRow','459300lKKmEU','getActiveSheet','1434881kzuWIK','253tZThvD','getId','syncExecuteCommand','executeCommand','startPresenting','_injector','27368SRcajm','startFollowing','get','getUnitId','_initialize','24KLcDQP','startColumn','stopPresenting','86177JyfJgn','getLiveShareCoordinatorSync','No\x20active\x20workbook\x20found.','extend','20LZOxIK','getActiveWorkbook','450280IBbtRt','9jRQGbD','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.'];_0x57a3=function(){return _0x56af26;};return _0x57a3();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x124796=_0x2c86;(function(_0x3dd598,_0x3a3c83){const _0xae29ca=_0x2c86,_0x50c085=_0x3dd598();while(!![]){try{const _0x40e179=parseInt(_0xae29ca(0x111))/0x1+parseInt(_0xae29ca(0x17c))/0x2+parseInt(_0xae29ca(0x122))/0x3+-parseInt(_0xae29ca(0x12d))/0x4+-parseInt(_0xae29ca(0x109))/0x5+parseInt(_0xae29ca(0x115))/0x6+-parseInt(_0xae29ca(0xf9))/0x7;if(_0x40e179===_0x3a3c83)break;else _0x50c085['push'](_0x50c085['shift']());}catch(_0x3e2efc){_0x50c085['push'](_0x50c085['shift']());}}}(_0x37cf,0x2e03d));function _0x2c86(_0x1ce7ab,_0x1bba39){_0x1ce7ab=_0x1ce7ab-0xd7;const _0x37cf3c=_0x37cf();let _0x2c864a=_0x37cf3c[_0x1ce7ab];return _0x2c864a;}var J=Object[_0x124796(0x138)],K=(_0x477a5a,_0x14fe6f,_0xc44cce)=>_0x14fe6f in _0x477a5a?J(_0x477a5a,_0x14fe6f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc44cce}):_0x477a5a[_0x14fe6f]=_0xc44cce,u=(_0x25ec78,_0x19c868,_0x33d8e5)=>K(_0x25ec78,typeof _0x19c868!=_0x124796(0x16d)?_0x19c868+'':_0x19c868,_0x33d8e5);import{Disposable as _0x6d8bc5,toDisposable as _0x398eff,IUniverInstanceService as _0x439877,Inject as _0xf32bc,Injector as _0x4813b0,IConfigService as _0x25e87d,ICommandService as _0x2fee39,RxDisposable as _0x7ce4af,UniverInstanceType as _0x25a426,DisposableCollection as _0x274869,CommandType as _0x43ff22,DependentOn as _0x144947,Plugin as _0xc55cf5,merge as _0x1b3366,registerDependencies as _0x1e72fe,mergeOverrideWithDependencies as _0x592dcd,touchDependencies as _0x1012e4}from'@univerjs/core';import{useDependency as _0x2b18f8,useObservable as _0x5d89ee,IUIPartsService as _0x478479,BuiltInUIPart as _0x1c14fe,connectInjector as _0x10e3da}from'@univerjs/ui';import{jsx as _0x23b3a7,jsxs as _0x25b971,Fragment as _0x22f41e}from'react/jsx-runtime';import{Dropdown as _0x36bd65,clsx as _0x10333b,Button as _0x14fb40}from'@univerjs/design';import{useRef as _0x39428b,createElement as _0x1edef1,forwardRef as _0x1a98e5,useState as _0x308496,useEffect as _0x104b05}from'react';import{CollaborationEvent as _0x248419,parseProtocolChangeset as _0x5bbb91}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x27b141,SessionStatus as _0x4ea729,UniverCollaborationClientPlugin as _0x164bb6}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4719ca,SetWorksheetActiveOperation as _0x404888}from'@univerjs/sheets';import{BehaviorSubject as _0x3bb74f,Subject as _0x169f7c}from'rxjs';import{takeUntil as _0x3cb157,throttleTime as _0x6b2616}from'rxjs/operators';import{SetZoomRatioOperation as _0x10eab9,SetScrollOperation as _0x3dcd5e}from'@univerjs/sheets-ui';function k({ref:_0x589ee7,..._0x1795e1}){const _0x4df70a=_0x124796,{icon:_0x51b7cb,id:_0x3c2941,className:_0x416fa0,extend:_0x34a0eb,..._0x10540b}=_0x1795e1,_0x29ed7f=(_0x4df70a(0x12f)+_0x3c2941+'\x20'+(_0x416fa0||''))[_0x4df70a(0x14a)](),_0xfc14b3=_0x39428b('_'+Oe());return G(_0x51b7cb,''+_0x3c2941,{'defIds':_0x51b7cb[_0x4df70a(0x116)],'idSuffix':_0xfc14b3['current']},{'ref':_0x589ee7,'className':_0x29ed7f,..._0x10540b},_0x34a0eb);}function G(_0x46e649,_0x2e5585,_0x70f7f5,_0x234dd9,_0x39cadb){const _0x2dcaaa=_0x124796;return _0x1edef1(_0x46e649['tag'],{'key':_0x2e5585,...be(_0x46e649,_0x70f7f5,_0x39cadb),..._0x234dd9},(Ee(_0x46e649,_0x70f7f5)[_0x2dcaaa(0x14e)]||[])[_0x2dcaaa(0x10a)]((_0x2cacd9,_0x35eda1)=>G(_0x2cacd9,_0x2e5585+'-'+_0x46e649[_0x2dcaaa(0x148)]+'-'+_0x35eda1,_0x70f7f5,void 0x0,_0x39cadb)));}function be(_0x415b10,_0x5f5cc6,_0xaea2ce){const _0x4cc6a9=_0x124796,_0x43453b={..._0x415b10['attrs']};_0xaea2ce!=null&&_0xaea2ce['colorChannel1']&&_0x43453b[_0x4cc6a9(0x150)]===_0x4cc6a9(0x129)&&(_0x43453b[_0x4cc6a9(0x150)]=_0xaea2ce[_0x4cc6a9(0x129)]),_0x415b10[_0x4cc6a9(0x148)]===_0x4cc6a9(0x125)&&_0x43453b['id']&&(_0x43453b['id']=_0x43453b['id']+_0x5f5cc6[_0x4cc6a9(0x136)]),Object[_0x4cc6a9(0x178)](_0x43453b)[_0x4cc6a9(0xff)](([_0xbae202,_0x45ea15])=>{const _0x33f547=_0x4cc6a9;_0xbae202===_0x33f547(0x125)&&typeof _0x45ea15=='string'&&(_0x43453b[_0xbae202]=_0x45ea15[_0x33f547(0x137)](/url\(#(.*)\)/,_0x33f547(0x14c)+_0x5f5cc6[_0x33f547(0x136)]+')'));});const {defIds:_0x2ca9fb}=_0x5f5cc6;return!_0x2ca9fb||_0x2ca9fb['length']===0x0||(_0x415b10[_0x4cc6a9(0x148)]===_0x4cc6a9(0xdf)&&_0x43453b[_0x4cc6a9(0x157)]&&(_0x43453b['xlink:href']=_0x43453b[_0x4cc6a9(0x157)]+_0x5f5cc6[_0x4cc6a9(0x136)]),Object[_0x4cc6a9(0x178)](_0x43453b)[_0x4cc6a9(0xff)](([_0x9deb30,_0x18552c])=>{const _0x28ac90=_0x4cc6a9;typeof _0x18552c==_0x28ac90(0x162)&&(_0x43453b[_0x9deb30]=_0x18552c[_0x28ac90(0x137)](/url\(#(.*)\)/,_0x28ac90(0x14c)+_0x5f5cc6['idSuffix']+')'));})),_0x43453b;}function Ee(_0x40e941,_0x47f8c3){const _0x15a319=_0x124796;var _0x46cfcd;const {defIds:_0x141e94}=_0x47f8c3;return!_0x141e94||_0x141e94[_0x15a319(0x100)]===0x0?_0x40e941:_0x40e941['tag']===_0x15a319(0x15c)&&((_0x46cfcd=_0x40e941[_0x15a319(0x14e)])!=null&&_0x46cfcd[_0x15a319(0x100)])?{..._0x40e941,'children':_0x40e941['children'][_0x15a319(0x10a)](_0x15b8db=>typeof _0x15b8db['attrs']['id']==_0x15a319(0x162)&&_0x141e94&&_0x141e94['includes'](_0x15b8db['attrs']['id'])?{..._0x15b8db,'attrs':{..._0x15b8db[_0x15a319(0x179)],'id':_0x15b8db[_0x15a319(0x179)]['id']+_0x47f8c3[_0x15a319(0x136)]}}:_0x15b8db)}:_0x40e941;}function Oe(){const _0x4497f1=_0x124796;return Math[_0x4497f1(0x131)]()[_0x4497f1(0x141)](0x24)[_0x4497f1(0x139)](0x2,0x8);}k[_0x124796(0x102)]=_0x124796(0xf4);const we={'tag':_0x124796(0x124),'attrs':{'xmlns':_0x124796(0xe9),'fill':_0x124796(0x165),'viewBox':_0x124796(0x10c),'width':_0x124796(0x151),'height':_0x124796(0x151)},'children':[{'tag':_0x124796(0xe4),'attrs':{'fill':'currentColor','d':_0x124796(0x132)}},{'tag':_0x124796(0xe4),'attrs':{'fill':_0x124796(0x12e),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x124796(0x153),'clipRule':'evenodd'}}]},W=_0x1a98e5(function(_0x336af4,_0x1bdc1f){const _0x5f2538=_0x124796;return _0x1edef1(k,Object[_0x5f2538(0x15a)]({},_0x336af4,{'id':_0x5f2538(0x155),'ref':_0x1bdc1f,'icon':we}));});function _0x37cf(){const _0x2059aa=['0\x200\x2017\x2017','set','_config','_handleOffline','operations','112124ZJLCOO','parse','LIVESHARE_FETCH_OPERATIONS','Present\x20this\x20document','915600DXClem','defIds','find','registerInitialStateReporter','tryStartPresenting','getValue','PRESENTING','pipe','getMemberID','pluginName','You\x27re\x20not\x20following\x20the\x20presenter','has','_handleOperation','724671tEjCUZ','override','svg','mask','_injector','You\x27are\x20offline.','OFFLINE','colorChannel1','IDLE','default','_commandService','32424DKMVSz','currentColor','univerjs-icon\x20univerjs-icon-','get','random','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','registerSharedOperation','_startPresenting','_handleOnline','idSuffix','replace','defineProperty','substring','getTypeOfUnitAdded$','_handleNewChangeSets','unitId','dispose$','_univerInstanceService','setConfig','stopFollowing','toString','includes','following','asObservable','getLiveShareCoordinator','_configService','sessionStatus$','tag','You\x27re\x20following\x20the\x20presenter','trim','_handleTerminate','url(#$1','presenting','children','_entities','fill','1em','values','evenodd','memberID','live-share-icon','delete','xlink:href','univer-mb-3\x20univer-w-full\x20univer-text-sm','LiveShareIcon','assign','data','defs','You\x27re\x20presenting\x20the\x20document','_unitID','_status','_init','_fetchOperations','string','then','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','none','_liveShareService','_status$','text','subscribe','_presenter','button','reverse','symbol','getUnitId','Start\x20following','stringify','getConfig','mutations','onRendered','disposeWithMe','startFollowing','SAME_OPERATION_SHARE_INTERVAL','next','entries','attrs','_startLiveShareCoordinator','live-share.config','149756tyixUO','_mountLiveShare','NOT_FOLLOWING','_commandDisposable','_startFollowing','getTypeOfUnitDisposed$','Stop\x20presenting','NEW_CHANGESETS','_stopFollowing','LIVESHARE_NEW_HOST','div','presenter','createInstance','from','LIVESHARE_OPERATION','use','_stopPresenting','_sharedOperations','_collabSession','current','path','_uiPartsService','_handleNewHost','send','getOwnPropertyDescriptor','http://www.w3.org/2000/svg','not-following','LIVESHARE_TERMINATE','dispose','_reporters','type','UNIVER_SHEET','_collabSessionService','Start','getCurrentTypeOfUnit$','init','UniverIcon','params','onCommandExecuted','registerComponent','getInitialStates','1175664UfWrSH','LIVESHARE_REQUEST_HOST','offline','status$','_beIdle','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','idle','displayName','requireSession','univer-size-4','ONLINE','executeCommand','add','OPERATION','1083120unQoXN','map','stopPresenting'];_0x37cf=function(){return _0x2059aa;};return _0x37cf();}W[_0x124796(0x102)]=_0x124796(0x159);class L extends _0x6d8bc5{constructor(){const _0x346c29=_0x124796;super(...arguments),u(this,_0x346c29(0xe1),new Set()),u(this,'_reporters',new Set());}[_0x124796(0x133)](_0x135ed6){const _0x335379=_0x124796;return this[_0x335379(0xe1)][_0x335379(0x107)](_0x135ed6),_0x398eff(()=>this['_sharedOperations'][_0x335379(0x156)](_0x135ed6));}[_0x124796(0x118)](_0x160073){const _0x442add=_0x124796;return this[_0x442add(0xed)][_0x442add(0x107)](_0x160073),_0x398eff(()=>this[_0x442add(0xed)][_0x442add(0x156)](_0x160073));}['shouldShareOperation'](_0x4c5560){const _0x334329=_0x124796;return this['_sharedOperations'][_0x334329(0x120)](_0x4c5560);}[_0x124796(0xf8)](_0x592a2b){const _0x2c46e1=_0x124796;return Array[_0x2c46e1(0xdd)](this['_reporters'])['map'](_0x11c285=>_0x11c285(_0x592a2b));}}var Ne=Object[_0x124796(0xe8)],Y=(_0x514565,_0x3b20ec,_0x1e0ba1,_0x3c15e6)=>{const _0x11da83=_0x124796;for(var _0x3b6d99=_0x3c15e6>0x1?void 0x0:_0x3c15e6?Ne(_0x3b20ec,_0x1e0ba1):_0x3b20ec,_0x58bf13=_0x514565[_0x11da83(0x100)]-0x1,_0x2accc9;_0x58bf13>=0x0;_0x58bf13--)(_0x2accc9=_0x514565[_0x58bf13])&&(_0x3b6d99=_0x2accc9(_0x3b6d99)||_0x3b6d99);return _0x3b6d99;},_=(_0x38cc31,_0x3f09cb)=>(_0xd19354,_0x821cb5)=>_0x3f09cb(_0xd19354,_0x821cb5,_0x38cc31);let S=class extends _0x7ce4af{constructor(_0x1af0aa,_0x17c474,_0x15609f){const _0xdcb7f5=_0x124796;super(),u(this,_0xdcb7f5(0x14f),new Map()),(this['_univerInstanceService']=_0x1af0aa,this['_injector']=_0x17c474,this[_0xdcb7f5(0xf0)]=_0x15609f,this[_0xdcb7f5(0x160)]());}async[_0x124796(0x145)](_0x4efd1a){const _0xbf5338=_0x124796;return this[_0xbf5338(0x14f)][_0xbf5338(0x120)](_0x4efd1a)||await this['_startLiveShareCoordinator'](_0x4efd1a),this[_0xbf5338(0x14f)][_0xbf5338(0x130)](_0x4efd1a);}['getLiveShareCoordinatorSync'](_0x2f9b71){const _0xb23ed5=_0x124796;var _0x11d962;return(_0x11d962=this[_0xb23ed5(0x14f)][_0xb23ed5(0x130)](_0x2f9b71))!=null?_0x11d962:null;}['_init'](){const _0x29a532=_0x124796;this[_0x29a532(0x13e)][_0x29a532(0x13a)](_0x25a426[_0x29a532(0xef)])['pipe'](_0x3cb157(this[_0x29a532(0x13d)]))[_0x29a532(0x169)](async _0x501688=>{const _0x22d748=_0x29a532,_0x3380ef=_0x501688[_0x22d748(0x16e)]();this[_0x22d748(0x14f)][_0x22d748(0x120)](_0x3380ef)||this[_0x22d748(0x17a)](_0x3380ef);}),this[_0x29a532(0x13e)][_0x29a532(0x181)](_0x25a426[_0x29a532(0xef)])[_0x29a532(0x11c)](_0x3cb157(this[_0x29a532(0x13d)]))['subscribe'](_0x2319c0=>{const _0x203639=_0x29a532,_0x2979f1=_0x2319c0['getUnitId'](),_0x37982d=this[_0x203639(0x14f)][_0x203639(0x130)](_0x2979f1);_0x37982d==null||_0x37982d['dispose']();});}async['_startLiveShareCoordinator'](_0x40db4a){const _0x27524f=_0x124796,_0x47e761=await this[_0x27524f(0xf0)][_0x27524f(0x103)](_0x40db4a),_0x5ba18a=this[_0x27524f(0x126)][_0x27524f(0xdc)](N,_0x40db4a,_0x47e761);return _0x5ba18a[_0x27524f(0xf3)](),this[_0x27524f(0x14f)][_0x27524f(0x10d)](_0x40db4a,_0x5ba18a),_0x5ba18a;}};S=Y([_(0x0,_0x439877),_(0x1,_0xf32bc(_0x4813b0)),_(0x2,_0xf32bc(_0x27b141))],S);var c=(_0x9a0c7e=>(_0x9a0c7e[_0x124796(0x128)]=_0x124796(0xfb),_0x9a0c7e[_0x124796(0x12a)]=_0x124796(0x101),_0x9a0c7e['FOLLOWING']='following',_0x9a0c7e['NOT_FOLLOWING']=_0x124796(0xea),_0x9a0c7e[_0x124796(0x11b)]='presenting',_0x9a0c7e))(c||{});const Ce=_0x124796(0x176),De=0xc8;let N=class extends _0x7ce4af{constructor(_0x32a3bd,_0x4934b7,_0x23d7be,_0x4c4cef,_0x34f4ae){const _0x4b659e=_0x124796;super(),u(this,'_status$',new _0x3bb74f(_0x4b659e(0x101))),u(this,_0x4b659e(0xfc),this[_0x4b659e(0x167)][_0x4b659e(0x144)]()),u(this,_0x4b659e(0x160),!0x1),u(this,_0x4b659e(0x17f),null),u(this,'_presenter',null),(this['_unitID']=_0x32a3bd,this[_0x4b659e(0xe2)]=_0x4934b7,this['_configService']=_0x23d7be,this[_0x4b659e(0x166)]=_0x4c4cef,this['_commandService']=_0x34f4ae);}get[_0x124796(0x15f)](){const _0xab98b2=_0x124796;return this[_0xab98b2(0x167)][_0xab98b2(0x11a)]();}['dispose'](){const _0x7ba224=_0x124796;var _0x1bb9c0;(_0x1bb9c0=this[_0x7ba224(0x17f)])==null||_0x1bb9c0['dispose'](),this[_0x7ba224(0x167)][_0x7ba224(0x177)](_0x7ba224(0x101)),this['_status$']['complete']();}['getStatus'](){return this['_status'];}[_0x124796(0xf3)](){const _0xaec24a=_0x124796;this[_0xaec24a(0x160)]||(this[_0xaec24a(0x160)]=!0x0,this[_0xaec24a(0xe2)][_0xaec24a(0x147)][_0xaec24a(0x11c)](_0x3cb157(this[_0xaec24a(0x13d)]))[_0xaec24a(0x169)](_0xfdd238=>{const _0x5a2c55=_0xaec24a;switch(_0xfdd238){case _0x4ea729[_0x5a2c55(0x128)]:this[_0x5a2c55(0x10f)]();break;case _0x4ea729[_0x5a2c55(0x105)]:this[_0x5a2c55(0x135)]();break;}}),this[_0xaec24a(0xe2)]['event$'][_0xaec24a(0x11c)](_0x3cb157(this[_0xaec24a(0x13d)]))[_0xaec24a(0x169)](_0x5e8591=>{const _0x586705=_0xaec24a,{eventID:_0xcf279e}=_0x5e8591;switch(_0xcf279e){case _0x248419[_0x586705(0xd9)]:this[_0x586705(0xe6)](_0x5e8591);break;case _0x248419[_0x586705(0xde)]:this[_0x586705(0x121)](_0x5e8591);break;case _0x248419[_0x586705(0xeb)]:this[_0x586705(0x14b)]();break;case _0x248419[_0x586705(0xd7)]:this['_handleNewChangeSets'](_0x5e8591);break;}}));}['tryStartPresenting'](){const _0x2a2735=_0x124796;this['_collabSession'][_0x2a2735(0xe7)]({'eventID':_0x248419[_0x2a2735(0xfa)],'data':{'unitID':this[_0x2a2735(0x15e)],'userID':this[_0x2a2735(0xe2)][_0x2a2735(0x11d)]()}},this[_0x2a2735(0x15e)]);}[_0x124796(0x10b)](){const _0x34a928=_0x124796;this[_0x34a928(0x15f)]===_0x34a928(0x14d)&&(this[_0x34a928(0x167)][_0x34a928(0x177)]('idle'),this[_0x34a928(0xe2)]['send']({'eventID':_0x248419[_0x34a928(0xeb)],'data':{'unitID':this[_0x34a928(0x15e)]}},this[_0x34a928(0x15e)]));}[_0x124796(0x175)](){const _0x33466d=_0x124796;this[_0x33466d(0x15f)]==='not-following'&&(this[_0x33466d(0x167)][_0x33466d(0x177)]('following'),this[_0x33466d(0x180)]());}[_0x124796(0x140)](){const _0x583c94=_0x124796;this[_0x583c94(0x15f)]===_0x583c94(0x143)&&this[_0x583c94(0xd8)]();}[_0x124796(0xe6)](_0x11b5c5){const _0x24dfe1=_0x124796,{presenter:_0xff946a}=_0x11b5c5[_0x24dfe1(0x15b)],_0x4906dc=this['_collabSession'][_0x24dfe1(0x11d)]();this[_0x24dfe1(0x16a)]=_0xff946a,_0xff946a===_0x4906dc?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x24dfe1(0x15f)]!==_0x24dfe1(0xea)&&(this[_0x24dfe1(0xe0)](),this['_startFollowing']());}[_0x124796(0x161)](){const _0x1aa780=_0x124796,_0x4be587={'eventID':_0x248419[_0x1aa780(0x113)]};this[_0x1aa780(0xe2)][_0x1aa780(0xe7)](_0x4be587,this['_unitID']);}[_0x124796(0x14b)](){const _0xccacdb=_0x124796;this[_0xccacdb(0x16a)]=null,this['_status']!==_0xccacdb(0x14d)&&this[_0xccacdb(0xfd)]();}[_0x124796(0x13b)](_0x43d206){const _0x5ca333=_0x124796;if(this[_0x5ca333(0x15f)]===_0x5ca333(0x143)&&this['_presenter']===_0x43d206[_0x5ca333(0x15b)][_0x5ca333(0x154)]){const _0x5514f8=_0x5bbb91(_0x43d206[_0x5ca333(0x15b)])[_0x5ca333(0x172)][_0x5ca333(0x16c)]()[_0x5ca333(0x117)](_0x4c5ed7=>_0x4c5ed7['id']===_0x4719ca['id']);if(_0x5514f8){const _0x355b06=_0x5514f8[_0x5ca333(0xf5)][_0x5ca333(0x13c)],_0x11b0c4=_0x5514f8[_0x5ca333(0xf5)]['sheet']['id'];setTimeout(()=>{const _0x56a723=_0x5ca333;this[_0x56a723(0x12c)][_0x56a723(0x106)](_0x404888['id'],{'unitId':_0x355b06,'subUnitId':_0x11b0c4},{'fromCollab':!0x0});});}}}[_0x124796(0x134)](){const _0xf3731=_0x124796;this[_0xf3731(0x167)]['next']('presenting');const _0x1e6e45=new Map(),_0x3a257d=this['_commandDisposable']=new _0x274869();_0x3a257d['add'](_0x398eff(()=>{const _0x3148cf=_0xf3731;_0x1e6e45[_0x3148cf(0xff)](_0x3b24a8=>_0x3b24a8['complete']()),_0x1e6e45['clear']();})),_0x3a257d[_0xf3731(0x107)](this[_0xf3731(0x12c)][_0xf3731(0xf6)](_0x851488=>{const _0x3fff64=_0xf3731;var _0x3dec42;if(_0x851488[_0x3fff64(0xee)]!==_0x43ff22[_0x3fff64(0x108)]||!this[_0x3fff64(0x166)]['shouldShareOperation'](_0x851488['id']))return;const {id:_0x30eb49}=_0x851488;let _0x1d887c;_0x1e6e45[_0x3fff64(0x120)](_0x30eb49)?_0x1d887c=_0x1e6e45[_0x3fff64(0x130)](_0x30eb49):(_0x1d887c=new _0x169f7c(),_0x1e6e45['set'](_0x30eb49,_0x1d887c),_0x1d887c[_0x3fff64(0x11c)](_0x6b2616((_0x3dec42=this[_0x3fff64(0x146)][_0x3fff64(0x171)](Ce))!=null?_0x3dec42:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x57fe30=>{const _0x271fe8=_0x3fff64;this['_collabSession'][_0x271fe8(0xe7)]({'eventID':_0x248419[_0x271fe8(0xde)],'data':{'unitID':this[_0x271fe8(0x15e)],'operations':{[_0x57fe30['id']]:{'id':_0x57fe30['id'],'params':JSON[_0x271fe8(0x170)](_0x57fe30['params'])}}}},this[_0x271fe8(0x15e)]);})),_0x1d887c['next'](_0x851488);})),this[_0xf3731(0x166)][_0xf3731(0xf8)](this[_0xf3731(0x15e)])['forEach'](_0x305518=>this['_collabSession']['send']({'eventID':_0x248419['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xf3731(0x15e)],'operations':{[_0x305518['id']]:{'id':_0x305518['id'],'params':JSON['stringify'](_0x305518[_0xf3731(0xf5)])}}}},this[_0xf3731(0x15e)]));}[_0x124796(0xe0)](){const _0x38a531=_0x124796;var _0x31b45c;this[_0x38a531(0x167)][_0x38a531(0x177)](_0x38a531(0x101)),(_0x31b45c=this[_0x38a531(0x17f)])==null||_0x31b45c['dispose'](),this[_0x38a531(0x17f)]=null;}['_startFollowing'](){const _0x202674=_0x124796;var _0x47abf2;(_0x47abf2=this[_0x202674(0x17f)])==null||_0x47abf2['dispose'](),this[_0x202674(0x167)][_0x202674(0x177)](_0x202674(0x143));}[_0x124796(0xfd)](){const _0x782f9=_0x124796;var _0x1dd9df;this[_0x782f9(0x167)]['next'](_0x782f9(0x101)),(_0x1dd9df=this[_0x782f9(0x17f)])==null||_0x1dd9df[_0x782f9(0xec)](),this[_0x782f9(0x17f)]=null;}[_0x124796(0xd8)](){const _0x310603=_0x124796;var _0x43e509;this[_0x310603(0x167)]['next'](_0x310603(0xea)),(_0x43e509=this['_commandDisposable'])==null||_0x43e509[_0x310603(0xec)]();}[_0x124796(0x121)](_0x559bef){const _0x4b26e1=_0x124796;if([_0x4b26e1(0x14d),'not-following',_0x4b26e1(0xfb)][_0x4b26e1(0x142)](this[_0x4b26e1(0x15f)])||!_0x559bef[_0x4b26e1(0x15b)][_0x4b26e1(0xdb)]||_0x559bef[_0x4b26e1(0x15b)]['presenter']===this['_collabSession'][_0x4b26e1(0x11d)]())return;this[_0x4b26e1(0x15f)]===_0x4b26e1(0x101)&&this['_startFollowing']();const _0x4ef1e4=_0x559bef[_0x4b26e1(0x15b)][_0x4b26e1(0x110)];Object[_0x4b26e1(0x152)](_0x4ef1e4)['forEach'](_0x347736=>{const _0x579d29=_0x4b26e1;this[_0x579d29(0x12c)][_0x579d29(0x106)](_0x347736['id'],_0x347736['params']?JSON[_0x579d29(0x112)](_0x347736[_0x579d29(0xf5)]):null,{'fromCollab':!0x0});});}[_0x124796(0x10f)](){const _0x558b64=_0x124796;var _0x50b968;this[_0x558b64(0x167)][_0x558b64(0x177)](_0x558b64(0xfb)),(_0x50b968=this[_0x558b64(0x17f)])==null||_0x50b968[_0x558b64(0xec)]();}['_handleOnline'](){const _0xa113a0=_0x124796;this['_status$'][_0xa113a0(0x177)](_0xa113a0(0x101)),this[_0xa113a0(0x161)]();}};N=Y([_(0x2,_0x25e87d),_(0x3,_0xf32bc(L)),_(0x4,_0x2fee39)],N);function Le(){const _0x5d8852=_0x124796,_0x342838=_0x2b18f8(S),_0x877647=_0x2b18f8(_0x439877),_0x4cc196=_0x5d89ee(()=>_0x877647[_0x5d8852(0xf2)](_0x25a426[_0x5d8852(0xef)]),void 0x0,!0x1,[]),[_0xf177ab,_0x1f83e4]=_0x308496(null),[_0x20469c,_0x2ef963]=_0x308496(c[_0x5d8852(0x12a)]),_0xbc5915=_0x39428b(null);return _0x104b05(()=>(_0x4cc196&&_0x342838[_0x5d8852(0x145)](_0x4cc196[_0x5d8852(0x16e)]())[_0x5d8852(0x163)](_0x5d92b8=>{const _0x4d0081=_0x5d8852;_0x1f83e4(_0x5d92b8),_0xbc5915['current']=_0x5d92b8[_0x4d0081(0xfc)][_0x4d0081(0x169)](_0x3b0ae6=>{_0x2ef963(_0x3b0ae6);});}),()=>{const _0x18693e=_0x5d8852;var _0x4d6540;(_0x4d6540=_0xbc5915['current'])==null||_0x4d6540['unsubscribe'](),_0xbc5915[_0x18693e(0xe3)]=null;}),[_0x4cc196,_0x342838]),_0xf177ab?_0x23b3a7(_0x36bd65,{'align':'end','disabled':_0x20469c===c[_0x5d8852(0x128)],'className':_0x5d8852(0xfe),'overlay':_0x23b3a7(Re,{'status':_0x20469c,'coordinator':_0xf177ab}),'children':_0x23b3a7('button',{'className':_0x10333b(_0x5d8852(0x164),{'univer-cursor-not-allowed':_0x20469c===c[_0x5d8852(0x128)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x20469c!==c[_0x5d8852(0x128)]}),'type':_0x5d8852(0x16b),'children':_0x23b3a7(W,{'className':_0x5d8852(0x104)})})}):null;}function Re(_0xa95eb9){const _0x37d612=_0x124796,{status:_0x56f2ee,coordinator:_0x1a17c6}=_0xa95eb9;switch(_0x56f2ee){case c[_0x37d612(0x12a)]:return _0x23b3a7($e,{'coordinator':_0x1a17c6});case c['FOLLOWING']:return _0x23b3a7(xe,{'coordinator':_0x1a17c6});case c[_0x37d612(0x17e)]:return _0x23b3a7(Pe,{'coordinator':_0x1a17c6});case c[_0x37d612(0x128)]:return _0x23b3a7(Te,{});case c[_0x37d612(0x11b)]:return _0x23b3a7(Ae,{'coordinator':_0x1a17c6});default:return null;}}function $e(_0x3af653){const _0x41ca7c=_0x124796,{coordinator:_0x407e8a}=_0x3af653;return _0x25b971(_0x22f41e,{'children':[_0x23b3a7(_0x41ca7c(0xda),{'className':_0x41ca7c(0x158),'children':_0x41ca7c(0x114)}),_0x23b3a7(_0x14fb40,{'onClick':()=>_0x407e8a[_0x41ca7c(0x119)](),'children':_0x41ca7c(0xf1)})]});}function xe(_0x179d21){const _0x5d5858=_0x124796,{coordinator:_0xc84bf6}=_0x179d21;return _0x25b971(_0x22f41e,{'children':[_0x23b3a7(_0x5d5858(0xda),{'className':_0x5d5858(0x158),'children':_0x5d5858(0x149)}),_0x23b3a7(_0x14fb40,{'onClick':()=>_0xc84bf6['stopFollowing'](),'children':'Stop\x20following'})]});}function Pe(_0x3d2816){const _0xf1899c=_0x124796,{coordinator:_0x12cd31}=_0x3d2816;return _0x25b971(_0x22f41e,{'children':[_0x23b3a7(_0xf1899c(0xda),{'className':_0xf1899c(0x158),'children':_0xf1899c(0x11f)}),_0x23b3a7(_0x14fb40,{'variant':_0xf1899c(0x168),'onClick':()=>_0x12cd31[_0xf1899c(0x175)](),'children':_0xf1899c(0x16f)})]});}function Ae(_0xe4641d){const _0x14458e=_0x124796,{coordinator:_0x4061c4}=_0xe4641d;return _0x25b971(_0x22f41e,{'children':[_0x23b3a7(_0x14458e(0xda),{'className':_0x14458e(0x158),'children':_0x14458e(0x15d)}),_0x23b3a7(_0x14fb40,{'variant':_0x14458e(0x12b),'onClick':()=>_0x4061c4['stopPresenting'](),'children':_0x14458e(0x182)})]});}function Te(){const _0x7e4f8c=_0x124796;return _0x23b3a7(_0x22f41e,{'children':_0x7e4f8c(0x127)});}var Fe=Object[_0x124796(0xe8)],He=(_0x308c4d,_0x16fad8,_0x546931,_0x42e059)=>{const _0x5348c3=_0x124796;for(var _0x5de742=_0x42e059>0x1?void 0x0:_0x42e059?Fe(_0x16fad8,_0x546931):_0x16fad8,_0x515853=_0x308c4d[_0x5348c3(0x100)]-0x1,_0xd597ce;_0x515853>=0x0;_0x515853--)(_0xd597ce=_0x308c4d[_0x515853])&&(_0x5de742=_0xd597ce(_0x5de742)||_0x5de742);return _0x5de742;},A=(_0x31c79d,_0x1817f0)=>(_0x1b3ddd,_0x1a62fc)=>_0x1817f0(_0x1b3ddd,_0x1a62fc,_0x31c79d);let m=class extends _0x6d8bc5{constructor(_0x5564b8,_0x3743ef){const _0x46c189=_0x124796;super(),this[_0x46c189(0x126)]=_0x5564b8,this[_0x46c189(0xe5)]=_0x3743ef,this[_0x46c189(0x17d)]();}[_0x124796(0x17d)](){const _0x55ae0f=_0x124796;this[_0x55ae0f(0x174)](this[_0x55ae0f(0xe5)][_0x55ae0f(0xf7)](_0x1c14fe['HEADER_MENU'],()=>_0x10e3da(Le,this[_0x55ae0f(0x126)])));}};m=He([A(0x0,_0xf32bc(_0x4813b0)),A(0x1,_0x478479)],m);const ye=_0x124796(0x17b),T={};var Ue=Object[_0x124796(0xe8)],Ve=(_0x48ca1f,_0x213db6,_0x17c040,_0x3fecf3)=>{const _0x3f4df8=_0x124796;for(var _0x104303=_0x3fecf3>0x1?void 0x0:_0x3fecf3?Ue(_0x213db6,_0x17c040):_0x213db6,_0x2c6872=_0x48ca1f[_0x3f4df8(0x100)]-0x1,_0x2fbf52;_0x2c6872>=0x0;_0x2c6872--)(_0x2fbf52=_0x48ca1f[_0x2c6872])&&(_0x104303=_0x2fbf52(_0x104303)||_0x104303);return _0x104303;},je=(_0x223ba7,_0x125e3b)=>(_0x35d6eb,_0x4d7ec6)=>_0x125e3b(_0x35d6eb,_0x4d7ec6,_0x223ba7);let I=class extends _0x6d8bc5{constructor(_0x5e5b2f){const _0x42b09e=_0x124796;super(),this['_liveShareService']=_0x5e5b2f,this[_0x42b09e(0x160)]();}['_init'](){const _0x5611bc=_0x124796;[_0x10eab9['id'],_0x3dcd5e['id'],_0x404888['id']][_0x5611bc(0xff)](_0x2df43c=>{const _0x314d99=_0x5611bc;this[_0x314d99(0x174)](this[_0x314d99(0x166)][_0x314d99(0x133)](_0x2df43c));});}};I=Ve([je(0x0,_0xf32bc(L))],I);var Me=Object[_0x124796(0x138)],ke=Object[_0x124796(0xe8)],Ge=(_0x53d7bd,_0x560455,_0x213934)=>_0x560455 in _0x53d7bd?Me(_0x53d7bd,_0x560455,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x213934}):_0x53d7bd[_0x560455]=_0x213934,We=(_0x4ea3be,_0x4acbc0,_0xd38328,_0xab9b0c)=>{for(var _0xc0c20a=_0xab9b0c>0x1?void 0x0:_0xab9b0c?ke(_0x4acbc0,_0xd38328):_0x4acbc0,_0x572987=_0x4ea3be['length']-0x1,_0x548715;_0x572987>=0x0;_0x572987--)(_0x548715=_0x4ea3be[_0x572987])&&(_0xc0c20a=_0x548715(_0xc0c20a)||_0xc0c20a);return _0xc0c20a;},F=(_0xd56d7a,_0x376d59)=>(_0x35395c,_0x4509cf)=>_0x376d59(_0x35395c,_0x4509cf,_0xd56d7a),B=(_0x4d80a5,_0x22039e,_0x133439)=>Ge(_0x4d80a5,typeof _0x22039e!=_0x124796(0x16d)?_0x22039e+'':_0x22039e,_0x133439);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0xc55cf5{constructor(_0x251d0e=T,_0x48f431,_0x33ae32){const _0x4daebc=_0x124796;super(),this[_0x4daebc(0x10e)]=_0x251d0e,this['_injector']=_0x48f431,this[_0x4daebc(0x146)]=_0x33ae32;const {..._0x58f319}=_0x1b3366({},T,this[_0x4daebc(0x10e)]);this[_0x4daebc(0x146)][_0x4daebc(0x13f)](ye,_0x58f319);}['onStarting'](){const _0x538e7f=_0x124796;_0x1e72fe(this['_injector'],_0x592dcd([[L],[S],[I],[m]],this['_config'][_0x538e7f(0x123)])),_0x1012e4(this['_injector'],[[I]]);}[_0x124796(0x173)](){const _0x2e6241=_0x124796;_0x1012e4(this[_0x2e6241(0x126)],[[m]]);}};B(b,_0x124796(0xee),_0x25a426['UNIVER_UNKNOWN']),B(b,_0x124796(0x11e),Ye),b=We([_0x144947(_0x164bb6),F(0x1,_0xf32bc(_0x4813b0)),F(0x2,_0x25e87d)],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 _0x5c891b=_0x3f41;(function(_0x5d1051,_0xfe1fe5){const _0x1c0d34=_0x3f41,_0x307f7c=_0x5d1051();while(!![]){try{const _0x1f14fa=parseInt(_0x1c0d34(0x16d))/0x1+parseInt(_0x1c0d34(0x132))/0x2*(-parseInt(_0x1c0d34(0x16b))/0x3)+parseInt(_0x1c0d34(0x125))/0x4+parseInt(_0x1c0d34(0x11b))/0x5*(parseInt(_0x1c0d34(0xe0))/0x6)+parseInt(_0x1c0d34(0xe7))/0x7*(-parseInt(_0x1c0d34(0x11f))/0x8)+parseInt(_0x1c0d34(0xed))/0x9+-parseInt(_0x1c0d34(0xe3))/0xa;if(_0x1f14fa===_0xfe1fe5)break;else _0x307f7c['push'](_0x307f7c['shift']());}catch(_0x1259e6){_0x307f7c['push'](_0x307f7c['shift']());}}}(_0x13cf,0xc9c7a));var J=Object[_0x5c891b(0x11c)],K=(_0x3d3763,_0x361fb1,_0x386156)=>_0x361fb1 in _0x3d3763?J(_0x3d3763,_0x361fb1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x386156}):_0x3d3763[_0x361fb1]=_0x386156,u=(_0x3be939,_0x82528e,_0x2ae74c)=>K(_0x3be939,typeof _0x82528e!=_0x5c891b(0x149)?_0x82528e+'':_0x82528e,_0x2ae74c);import{Disposable as _0x431729,toDisposable as _0x2a75a6,IUniverInstanceService as _0xb62e9f,Inject as _0x5c0b1a,Injector as _0x122406,IConfigService as _0x3ef321,ICommandService as _0x113a75,RxDisposable as _0x2994f4,UniverInstanceType as _0x4e9761,DisposableCollection as _0x35b926,CommandType as _0x419595,DependentOn as _0x42d09e,Plugin as _0x3414a0,merge as _0x13e6df,registerDependencies as _0x12f174,mergeOverrideWithDependencies as _0x3ea2c1,touchDependencies as _0x299450}from'@univerjs/core';import{useDependency as _0x59cba9,useObservable as _0x172d74,IUIPartsService as _0x150b13,BuiltInUIPart as _0x348417,connectInjector as _0x6df76e}from'@univerjs/ui';import{jsx as _0x22293e,jsxs as _0xc16c99,Fragment as _0x4ad7d5}from'react/jsx-runtime';import{Dropdown as _0x55a60a,clsx as _0x391744,Button as _0x5aedf4}from'@univerjs/design';import{useRef as _0x567279,createElement as _0x21df1f,forwardRef as _0x2542a7,useState as _0x8acbe5,useEffect as _0xb9123a}from'react';import{CollaborationEvent as _0x5b0c32,parseProtocolChangeset as _0x37c054}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1ee3d1,SessionStatus as _0x4b1079,UniverCollaborationClientPlugin as _0x5c81aa}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x36d1bf,SetWorksheetActiveOperation as _0x5564c8}from'@univerjs/sheets';import{BehaviorSubject as _0x5f2c0e,Subject as _0x4d0e55}from'rxjs';import{takeUntil as _0x2a74ec,throttleTime as _0x3d3727}from'rxjs/operators';function _0x3f41(_0x379308,_0x52df29){_0x379308=_0x379308-0xda;const _0x13cf10=_0x13cf();let _0x3f41af=_0x13cf10[_0x379308];return _0x3f41af;}import{SetZoomRatioOperation as _0x10142f,SetScrollOperation as _0x57bc22}from'@univerjs/sheets-ui';function k({ref:_0x8b6fec,..._0x5a2708}){const _0x79a618=_0x5c891b,{icon:_0x10bfca,id:_0xd3c020,className:_0x219571,extend:_0x1eb486,..._0x30e0fb}=_0x5a2708,_0x45676b=('univerjs-icon\x20univerjs-icon-'+_0xd3c020+'\x20'+(_0x219571||''))[_0x79a618(0x147)](),_0x4aab8e=_0x567279('_'+Oe());return G(_0x10bfca,''+_0xd3c020,{'defIds':_0x10bfca['defIds'],'idSuffix':_0x4aab8e[_0x79a618(0xf5)]},{'ref':_0x8b6fec,'className':_0x45676b,..._0x30e0fb},_0x1eb486);}function G(_0x5e72b2,_0x3a6d66,_0xe48b7f,_0x2c8be3,_0x36a5c3){const _0xc17b58=_0x5c891b;return _0x21df1f(_0x5e72b2[_0xc17b58(0x179)],{'key':_0x3a6d66,...be(_0x5e72b2,_0xe48b7f,_0x36a5c3),..._0x2c8be3},(Ee(_0x5e72b2,_0xe48b7f)[_0xc17b58(0x102)]||[])['map']((_0x11d941,_0x31303a)=>G(_0x11d941,_0x3a6d66+'-'+_0x5e72b2[_0xc17b58(0x179)]+'-'+_0x31303a,_0xe48b7f,void 0x0,_0x36a5c3)));}function be(_0x3025f5,_0x256acf,_0x4810c5){const _0x4d9352=_0x5c891b,_0x23a1da={..._0x3025f5[_0x4d9352(0x148)]};_0x4810c5!=null&&_0x4810c5['colorChannel1']&&_0x23a1da[_0x4d9352(0x154)]==='colorChannel1'&&(_0x23a1da[_0x4d9352(0x154)]=_0x4810c5['colorChannel1']),_0x3025f5[_0x4d9352(0x179)]===_0x4d9352(0xeb)&&_0x23a1da['id']&&(_0x23a1da['id']=_0x23a1da['id']+_0x256acf[_0x4d9352(0x14d)]),Object[_0x4d9352(0xf2)](_0x23a1da)[_0x4d9352(0x128)](([_0xc2c9b7,_0x26bd69])=>{const _0x3f7b6f=_0x4d9352;_0xc2c9b7===_0x3f7b6f(0xeb)&&typeof _0x26bd69=='string'&&(_0x23a1da[_0xc2c9b7]=_0x26bd69['replace'](/url\(#(.*)\)/,_0x3f7b6f(0xf1)+_0x256acf['idSuffix']+')'));});const {defIds:_0x8ee528}=_0x256acf;return!_0x8ee528||_0x8ee528['length']===0x0||(_0x3025f5[_0x4d9352(0x179)]==='use'&&_0x23a1da[_0x4d9352(0x12d)]&&(_0x23a1da[_0x4d9352(0x12d)]=_0x23a1da[_0x4d9352(0x12d)]+_0x256acf[_0x4d9352(0x14d)]),Object['entries'](_0x23a1da)[_0x4d9352(0x128)](([_0x321e28,_0x8e1dc3])=>{const _0x279893=_0x4d9352;typeof _0x8e1dc3==_0x279893(0x126)&&(_0x23a1da[_0x321e28]=_0x8e1dc3['replace'](/url\(#(.*)\)/,_0x279893(0xf1)+_0x256acf[_0x279893(0x14d)]+')'));})),_0x23a1da;}function Ee(_0x157426,_0x4cd462){const _0x820846=_0x5c891b;var _0xabca4d;const {defIds:_0x5c5024}=_0x4cd462;return!_0x5c5024||_0x5c5024[_0x820846(0x11e)]===0x0?_0x157426:_0x157426[_0x820846(0x179)]===_0x820846(0x150)&&((_0xabca4d=_0x157426['children'])!=null&&_0xabca4d[_0x820846(0x11e)])?{..._0x157426,'children':_0x157426['children'][_0x820846(0x171)](_0x24d80a=>typeof _0x24d80a[_0x820846(0x148)]['id']==_0x820846(0x126)&&_0x5c5024&&_0x5c5024[_0x820846(0x15d)](_0x24d80a['attrs']['id'])?{..._0x24d80a,'attrs':{..._0x24d80a[_0x820846(0x148)],'id':_0x24d80a[_0x820846(0x148)]['id']+_0x4cd462[_0x820846(0x14d)]}}:_0x24d80a)}:_0x157426;}function Oe(){const _0x3b67fd=_0x5c891b;return Math[_0x3b67fd(0x114)]()[_0x3b67fd(0x10c)](0x24)[_0x3b67fd(0xdf)](0x2,0x8);}k[_0x5c891b(0x12e)]=_0x5c891b(0xec);const we={'tag':'svg','attrs':{'xmlns':_0x5c891b(0x152),'fill':'none','viewBox':_0x5c891b(0x120),'width':_0x5c891b(0x134),'height':_0x5c891b(0x134)},'children':[{'tag':'path','attrs':{'fill':_0x5c891b(0xde),'d':_0x5c891b(0xee)}},{'tag':'path','attrs':{'fill':_0x5c891b(0xde),'d':_0x5c891b(0x17c),'fillRule':_0x5c891b(0x109),'clipRule':_0x5c891b(0x109)}}]},W=_0x2542a7(function(_0x38b9c4,_0x1007a9){const _0x55d74b=_0x5c891b;return _0x21df1f(k,Object[_0x55d74b(0x14f)]({},_0x38b9c4,{'id':_0x55d74b(0x121),'ref':_0x1007a9,'icon':we}));});W[_0x5c891b(0x12e)]=_0x5c891b(0x116);class L extends _0x431729{constructor(){const _0x4ac952=_0x5c891b;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x4ac952(0xf6),new Set());}['registerSharedOperation'](_0x20ac42){const _0x5c9715=_0x5c891b;return this[_0x5c9715(0x13c)][_0x5c9715(0x139)](_0x20ac42),_0x2a75a6(()=>this[_0x5c9715(0x13c)][_0x5c9715(0x135)](_0x20ac42));}[_0x5c891b(0x168)](_0x3fc39d){const _0x4383f1=_0x5c891b;return this[_0x4383f1(0xf6)][_0x4383f1(0x139)](_0x3fc39d),_0x2a75a6(()=>this[_0x4383f1(0xf6)]['delete'](_0x3fc39d));}['shouldShareOperation'](_0x49df9e){const _0x32be29=_0x5c891b;return this[_0x32be29(0x13c)][_0x32be29(0x166)](_0x49df9e);}['getInitialStates'](_0x3f85d0){const _0x1ff91f=_0x5c891b;return Array[_0x1ff91f(0x129)](this[_0x1ff91f(0xf6)])['map'](_0x25030f=>_0x25030f(_0x3f85d0));}}var Ne=Object[_0x5c891b(0x12a)],Y=(_0x364232,_0x59ffda,_0x4bc055,_0x1453d8)=>{const _0x396d74=_0x5c891b;for(var _0x4f0f3b=_0x1453d8>0x1?void 0x0:_0x1453d8?Ne(_0x59ffda,_0x4bc055):_0x59ffda,_0x371ee7=_0x364232[_0x396d74(0x11e)]-0x1,_0x26a79e;_0x371ee7>=0x0;_0x371ee7--)(_0x26a79e=_0x364232[_0x371ee7])&&(_0x4f0f3b=_0x26a79e(_0x4f0f3b)||_0x4f0f3b);return _0x4f0f3b;},_=(_0x3eec54,_0x2989b4)=>(_0x36ecad,_0x2d3a49)=>_0x2989b4(_0x36ecad,_0x2d3a49,_0x3eec54);let S=class extends _0x2994f4{constructor(_0x10ecb8,_0x274e6b,_0x7e5ae4){const _0x1de7a9=_0x5c891b;super(),u(this,_0x1de7a9(0x16e),new Map()),(this['_univerInstanceService']=_0x10ecb8,this[_0x1de7a9(0x15f)]=_0x274e6b,this[_0x1de7a9(0x10b)]=_0x7e5ae4,this[_0x1de7a9(0x142)]());}async['getLiveShareCoordinator'](_0x50c6ea){const _0x2f5d15=_0x5c891b;return this[_0x2f5d15(0x16e)][_0x2f5d15(0x166)](_0x50c6ea)||await this[_0x2f5d15(0xff)](_0x50c6ea),this[_0x2f5d15(0x16e)]['get'](_0x50c6ea);}[_0x5c891b(0x118)](_0x48b606){const _0x57ef09=_0x5c891b;var _0x38d21e;return(_0x38d21e=this[_0x57ef09(0x16e)][_0x57ef09(0xda)](_0x48b606))!=null?_0x38d21e:null;}[_0x5c891b(0x142)](){const _0x225e30=_0x5c891b;this['_univerInstanceService'][_0x225e30(0xe9)](_0x4e9761[_0x225e30(0xdb)])['pipe'](_0x2a74ec(this[_0x225e30(0x119)]))['subscribe'](async _0x4abc25=>{const _0x52a674=_0x225e30,_0x44d1de=_0x4abc25[_0x52a674(0x155)]();this[_0x52a674(0x16e)][_0x52a674(0x166)](_0x44d1de)||this['_startLiveShareCoordinator'](_0x44d1de);}),this[_0x225e30(0x173)][_0x225e30(0x146)](_0x4e9761[_0x225e30(0xdb)])['pipe'](_0x2a74ec(this[_0x225e30(0x119)]))['subscribe'](_0xdb90e7=>{const _0x5d5158=_0x225e30,_0x1991ba=_0xdb90e7[_0x5d5158(0x155)](),_0x3d1f6b=this[_0x5d5158(0x16e)][_0x5d5158(0xda)](_0x1991ba);_0x3d1f6b==null||_0x3d1f6b[_0x5d5158(0x15c)]();});}async['_startLiveShareCoordinator'](_0x550255){const _0x3ca347=_0x5c891b,_0x3e6164=await this['_collabSessionService'][_0x3ca347(0x10a)](_0x550255),_0x428235=this[_0x3ca347(0x15f)][_0x3ca347(0x156)](N,_0x550255,_0x3e6164);return _0x428235[_0x3ca347(0x11d)](),this['_entities'][_0x3ca347(0x13e)](_0x550255,_0x428235),_0x428235;}};S=Y([_(0x0,_0xb62e9f),_(0x1,_0x5c0b1a(_0x122406)),_(0x2,_0x5c0b1a(_0x1ee3d1))],S);var c=(_0x3621f8=>(_0x3621f8['OFFLINE']=_0x5c891b(0x14a),_0x3621f8[_0x5c891b(0x127)]=_0x5c891b(0x158),_0x3621f8[_0x5c891b(0x122)]=_0x5c891b(0x160),_0x3621f8[_0x5c891b(0x13f)]=_0x5c891b(0x111),_0x3621f8[_0x5c891b(0x13a)]=_0x5c891b(0xe8),_0x3621f8))(c||{});const Ce=_0x5c891b(0x107),De=0xc8;let N=class extends _0x2994f4{constructor(_0x145cd3,_0x59756e,_0x1daa51,_0xcd7384,_0x19eb6e){const _0x56fde6=_0x5c891b;super(),u(this,_0x56fde6(0xe5),new _0x5f2c0e(_0x56fde6(0x158))),u(this,_0x56fde6(0x174),this[_0x56fde6(0xe5)][_0x56fde6(0x104)]()),u(this,_0x56fde6(0x142),!0x1),u(this,'_commandDisposable',null),u(this,_0x56fde6(0x145),null),(this[_0x56fde6(0x16f)]=_0x145cd3,this[_0x56fde6(0x117)]=_0x59756e,this[_0x56fde6(0x14b)]=_0x1daa51,this[_0x56fde6(0x143)]=_0xcd7384,this[_0x56fde6(0x11a)]=_0x19eb6e);}get[_0x5c891b(0x101)](){const _0x3f6c9d=_0x5c891b;return this[_0x3f6c9d(0xe5)][_0x3f6c9d(0x15e)]();}[_0x5c891b(0x15c)](){const _0x35cd45=_0x5c891b;var _0x2c8268;(_0x2c8268=this['_commandDisposable'])==null||_0x2c8268[_0x35cd45(0x15c)](),this[_0x35cd45(0xe5)][_0x35cd45(0xf3)]('idle'),this[_0x35cd45(0xe5)][_0x35cd45(0xfe)]();}[_0x5c891b(0x10d)](){return this['_status'];}[_0x5c891b(0x11d)](){const _0x48eb97=_0x5c891b;this[_0x48eb97(0x142)]||(this[_0x48eb97(0x142)]=!0x0,this['_collabSession']['sessionStatus$'][_0x48eb97(0x167)](_0x2a74ec(this[_0x48eb97(0x119)]))[_0x48eb97(0x140)](_0x356bdd=>{const _0x459eb7=_0x48eb97;switch(_0x356bdd){case _0x4b1079[_0x459eb7(0x165)]:this['_handleOffline']();break;case _0x4b1079[_0x459eb7(0x133)]:this['_handleOnline']();break;}}),this[_0x48eb97(0x117)]['event$']['pipe'](_0x2a74ec(this[_0x48eb97(0x119)]))[_0x48eb97(0x140)](_0x3163d5=>{const _0x9b9a40=_0x48eb97,{eventID:_0x29ffc5}=_0x3163d5;switch(_0x29ffc5){case _0x5b0c32[_0x9b9a40(0x151)]:this[_0x9b9a40(0x10e)](_0x3163d5);break;case _0x5b0c32[_0x9b9a40(0x175)]:this['_handleOperation'](_0x3163d5);break;case _0x5b0c32[_0x9b9a40(0xea)]:this[_0x9b9a40(0xfb)]();break;case _0x5b0c32['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x3163d5);break;}}));}['tryStartPresenting'](){const _0x115a56=_0x5c891b;this[_0x115a56(0x117)][_0x115a56(0xfc)]({'eventID':_0x5b0c32[_0x115a56(0xdc)],'data':{'unitID':this['_unitID'],'userID':this[_0x115a56(0x117)][_0x115a56(0x13b)]()}},this[_0x115a56(0x16f)]);}[_0x5c891b(0x16a)](){const _0x3a4e92=_0x5c891b;this[_0x3a4e92(0x101)]===_0x3a4e92(0xe8)&&(this[_0x3a4e92(0xe5)][_0x3a4e92(0xf3)]('idle'),this[_0x3a4e92(0x117)][_0x3a4e92(0xfc)]({'eventID':_0x5b0c32['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x3a4e92(0x16f)]}},this[_0x3a4e92(0x16f)]));}[_0x5c891b(0xe1)](){const _0xae92a2=_0x5c891b;this[_0xae92a2(0x101)]===_0xae92a2(0x111)&&(this[_0xae92a2(0xe5)][_0xae92a2(0xf3)](_0xae92a2(0x160)),this[_0xae92a2(0x12c)]());}['stopFollowing'](){const _0x2d5d90=_0x5c891b;this['_status']===_0x2d5d90(0x160)&&this[_0x2d5d90(0xe4)]();}[_0x5c891b(0x10e)](_0x433812){const _0x17e494=_0x5c891b,{presenter:_0x40ddbf}=_0x433812[_0x17e494(0x17d)],_0x242d4a=this[_0x17e494(0x117)][_0x17e494(0x13b)]();this[_0x17e494(0x145)]=_0x40ddbf,_0x40ddbf===_0x242d4a?(this[_0x17e494(0xe4)](),this[_0x17e494(0x153)]()):this[_0x17e494(0x101)]!==_0x17e494(0x111)&&(this['_stopPresenting'](),this[_0x17e494(0x12c)]());}[_0x5c891b(0x12b)](){const _0x5a4cd1=_0x5c891b,_0x18ffe8={'eventID':_0x5b0c32['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x5a4cd1(0xfc)](_0x18ffe8,this[_0x5a4cd1(0x16f)]);}[_0x5c891b(0xfb)](){const _0xe4fbcc=_0x5c891b;this[_0xe4fbcc(0x145)]=null,this[_0xe4fbcc(0x101)]!=='presenting'&&this[_0xe4fbcc(0xf4)]();}[_0x5c891b(0xfd)](_0x38a7fc){const _0xcb3dce=_0x5c891b;if(this[_0xcb3dce(0x101)]===_0xcb3dce(0x160)&&this[_0xcb3dce(0x145)]===_0x38a7fc['data'][_0xcb3dce(0x115)]){const _0x35ce9f=_0x37c054(_0x38a7fc[_0xcb3dce(0x17d)])[_0xcb3dce(0x15a)]['reverse']()['find'](_0x53fda1=>_0x53fda1['id']===_0x36d1bf['id']);if(_0x35ce9f){const _0x2b5f3b=_0x35ce9f[_0xcb3dce(0x16c)][_0xcb3dce(0x162)],_0x4213be=_0x35ce9f[_0xcb3dce(0x16c)][_0xcb3dce(0x124)]['id'];setTimeout(()=>{const _0xf3faf9=_0xcb3dce;this['_commandService'][_0xf3faf9(0x161)](_0x5564c8['id'],{'unitId':_0x2b5f3b,'subUnitId':_0x4213be},{'fromCollab':!0x0});});}}}[_0x5c891b(0x153)](){const _0x392112=_0x5c891b;this[_0x392112(0xe5)]['next'](_0x392112(0xe8));const _0x76b929=new Map(),_0x207b17=this[_0x392112(0xf9)]=new _0x35b926();_0x207b17[_0x392112(0x139)](_0x2a75a6(()=>{const _0x425e0f=_0x392112;_0x76b929[_0x425e0f(0x128)](_0x47a59a=>_0x47a59a['complete']()),_0x76b929[_0x425e0f(0x17b)]();})),_0x207b17[_0x392112(0x139)](this[_0x392112(0x11a)][_0x392112(0x14c)](_0x35a3c8=>{const _0x4b7eee=_0x392112;var _0x1de7b7;if(_0x35a3c8[_0x4b7eee(0x163)]!==_0x419595[_0x4b7eee(0x178)]||!this[_0x4b7eee(0x143)]['shouldShareOperation'](_0x35a3c8['id']))return;const {id:_0x252f25}=_0x35a3c8;let _0x2fc419;_0x76b929[_0x4b7eee(0x166)](_0x252f25)?_0x2fc419=_0x76b929[_0x4b7eee(0xda)](_0x252f25):(_0x2fc419=new _0x4d0e55(),_0x76b929[_0x4b7eee(0x13e)](_0x252f25,_0x2fc419),_0x2fc419[_0x4b7eee(0x167)](_0x3d3727((_0x1de7b7=this['_configService'][_0x4b7eee(0x15b)](Ce))!=null?_0x1de7b7:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4b7eee(0x140)](_0x35a763=>{const _0x2a9baa=_0x4b7eee;this[_0x2a9baa(0x117)][_0x2a9baa(0xfc)]({'eventID':_0x5b0c32[_0x2a9baa(0x175)],'data':{'unitID':this[_0x2a9baa(0x16f)],'operations':{[_0x35a763['id']]:{'id':_0x35a763['id'],'params':JSON[_0x2a9baa(0x137)](_0x35a763['params'])}}}},this['_unitID']);})),_0x2fc419['next'](_0x35a3c8);})),this[_0x392112(0x143)][_0x392112(0x103)](this['_unitID'])['forEach'](_0x151742=>this[_0x392112(0x117)][_0x392112(0xfc)]({'eventID':_0x5b0c32[_0x392112(0x175)],'data':{'unitID':this['_unitID'],'operations':{[_0x151742['id']]:{'id':_0x151742['id'],'params':JSON[_0x392112(0x137)](_0x151742['params'])}}}},this[_0x392112(0x16f)]));}[_0x5c891b(0x172)](){const _0x399bee=_0x5c891b;var _0x278625;this[_0x399bee(0xe5)][_0x399bee(0xf3)](_0x399bee(0x158)),(_0x278625=this[_0x399bee(0xf9)])==null||_0x278625[_0x399bee(0x15c)](),this[_0x399bee(0xf9)]=null;}[_0x5c891b(0x12c)](){const _0xd0efcb=_0x5c891b;var _0x512c79;(_0x512c79=this[_0xd0efcb(0xf9)])==null||_0x512c79['dispose'](),this[_0xd0efcb(0xe5)][_0xd0efcb(0xf3)](_0xd0efcb(0x160));}[_0x5c891b(0xf4)](){const _0x3b9709=_0x5c891b;var _0xe1931b;this[_0x3b9709(0xe5)][_0x3b9709(0xf3)](_0x3b9709(0x158)),(_0xe1931b=this[_0x3b9709(0xf9)])==null||_0xe1931b[_0x3b9709(0x15c)](),this['_commandDisposable']=null;}[_0x5c891b(0xe4)](){const _0x2b35fc=_0x5c891b;var _0x88a924;this[_0x2b35fc(0xe5)][_0x2b35fc(0xf3)]('not-following'),(_0x88a924=this[_0x2b35fc(0xf9)])==null||_0x88a924[_0x2b35fc(0x15c)]();}[_0x5c891b(0xf7)](_0x537ffc){const _0x5a41e4=_0x5c891b;if(['presenting','not-following','offline'][_0x5a41e4(0x15d)](this[_0x5a41e4(0x101)])||!_0x537ffc[_0x5a41e4(0x17d)]['presenter']||_0x537ffc[_0x5a41e4(0x17d)][_0x5a41e4(0x157)]===this[_0x5a41e4(0x117)][_0x5a41e4(0x13b)]())return;this[_0x5a41e4(0x101)]===_0x5a41e4(0x158)&&this[_0x5a41e4(0x12c)]();const _0x358c8d=_0x537ffc[_0x5a41e4(0x17d)]['operations'];Object[_0x5a41e4(0xef)](_0x358c8d)['forEach'](_0x4b87d3=>{const _0x546da0=_0x5a41e4;this[_0x546da0(0x11a)][_0x546da0(0x161)](_0x4b87d3['id'],_0x4b87d3['params']?JSON[_0x546da0(0x164)](_0x4b87d3[_0x546da0(0x16c)]):null,{'fromCollab':!0x0});});}[_0x5c891b(0x112)](){const _0x7712fe=_0x5c891b;var _0x5e6997;this['_status$'][_0x7712fe(0xf3)](_0x7712fe(0x14a)),(_0x5e6997=this['_commandDisposable'])==null||_0x5e6997[_0x7712fe(0x15c)]();}[_0x5c891b(0x110)](){const _0x24ed7c=_0x5c891b;this[_0x24ed7c(0xe5)][_0x24ed7c(0xf3)]('idle'),this[_0x24ed7c(0x12b)]();}};N=Y([_(0x2,_0x3ef321),_(0x3,_0x5c0b1a(L)),_(0x4,_0x113a75)],N);function Le(){const _0x2e8662=_0x5c891b,_0x46846f=_0x59cba9(S),_0x29bfb9=_0x59cba9(_0xb62e9f),_0xb80694=_0x172d74(()=>_0x29bfb9[_0x2e8662(0x130)](_0x4e9761[_0x2e8662(0xdb)]),void 0x0,!0x1,[]),[_0x107360,_0x17d935]=_0x8acbe5(null),[_0x11ea72,_0x5b4511]=_0x8acbe5(c[_0x2e8662(0x127)]),_0x57db96=_0x567279(null);return _0xb9123a(()=>(_0xb80694&&_0x46846f[_0x2e8662(0x159)](_0xb80694[_0x2e8662(0x155)]())[_0x2e8662(0x144)](_0x27adf9=>{const _0x25b66e=_0x2e8662;_0x17d935(_0x27adf9),_0x57db96[_0x25b66e(0xf5)]=_0x27adf9[_0x25b66e(0x174)][_0x25b66e(0x140)](_0x299c41=>{_0x5b4511(_0x299c41);});}),()=>{const _0x370c58=_0x2e8662;var _0x41841c;(_0x41841c=_0x57db96[_0x370c58(0xf5)])==null||_0x41841c[_0x370c58(0x136)](),_0x57db96['current']=null;}),[_0xb80694,_0x46846f]),_0x107360?_0x22293e(_0x55a60a,{'align':'end','disabled':_0x11ea72===c[_0x2e8662(0x165)],'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':_0x22293e(Re,{'status':_0x11ea72,'coordinator':_0x107360}),'children':_0x22293e(_0x2e8662(0x12f),{'className':_0x391744(_0x2e8662(0x177),{'univer-cursor-not-allowed':_0x11ea72===c[_0x2e8662(0x165)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x11ea72!==c['OFFLINE']}),'type':_0x2e8662(0x12f),'children':_0x22293e(W,{'className':'univer-size-4'})})}):null;}function Re(_0xebe6b7){const _0x59a0ca=_0x5c891b,{status:_0x4adc9d,coordinator:_0x30e75e}=_0xebe6b7;switch(_0x4adc9d){case c['IDLE']:return _0x22293e($e,{'coordinator':_0x30e75e});case c[_0x59a0ca(0x122)]:return _0x22293e(xe,{'coordinator':_0x30e75e});case c['NOT_FOLLOWING']:return _0x22293e(Pe,{'coordinator':_0x30e75e});case c['OFFLINE']:return _0x22293e(Te,{});case c['PRESENTING']:return _0x22293e(Ae,{'coordinator':_0x30e75e});default:return null;}}function $e(_0x2c1586){const _0x311269=_0x5c891b,{coordinator:_0x326fa0}=_0x2c1586;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e(_0x311269(0x108),{'className':_0x311269(0xe6),'children':_0x311269(0x138)}),_0x22293e(_0x5aedf4,{'onClick':()=>_0x326fa0['tryStartPresenting'](),'children':_0x311269(0x13d)})]});}function xe(_0x2b5d49){const _0x397ca3=_0x5c891b,{coordinator:_0x3eaa1b}=_0x2b5d49;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e(_0x397ca3(0x108),{'className':_0x397ca3(0xe6),'children':_0x397ca3(0x123)}),_0x22293e(_0x5aedf4,{'onClick':()=>_0x3eaa1b['stopFollowing'](),'children':_0x397ca3(0x170)})]});}function Pe(_0x6ace70){const _0x2b278a=_0x5c891b,{coordinator:_0x5aeaf1}=_0x6ace70;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e('div',{'className':_0x2b278a(0xe6),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x22293e(_0x5aedf4,{'variant':_0x2b278a(0x100),'onClick':()=>_0x5aeaf1[_0x2b278a(0xe1)](),'children':_0x2b278a(0x141)})]});}function Ae(_0x3c7a47){const _0x2aabc7=_0x5c891b,{coordinator:_0x393d4d}=_0x3c7a47;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x22293e(_0x5aedf4,{'variant':_0x2aabc7(0xf0),'onClick':()=>_0x393d4d[_0x2aabc7(0x16a)](),'children':_0x2aabc7(0x17a)})]});}function Te(){return _0x22293e(_0x4ad7d5,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x5c891b(0x12a)],He=(_0xe70890,_0x1b3670,_0x59da49,_0x179e3e)=>{for(var _0x240718=_0x179e3e>0x1?void 0x0:_0x179e3e?Fe(_0x1b3670,_0x59da49):_0x1b3670,_0x7cdc85=_0xe70890['length']-0x1,_0x2723ac;_0x7cdc85>=0x0;_0x7cdc85--)(_0x2723ac=_0xe70890[_0x7cdc85])&&(_0x240718=_0x2723ac(_0x240718)||_0x240718);return _0x240718;},A=(_0x38e13f,_0x3bff8e)=>(_0x2e8fc0,_0x53adac)=>_0x3bff8e(_0x2e8fc0,_0x53adac,_0x38e13f);let m=class extends _0x431729{constructor(_0xd2e111,_0x308dba){const _0x4e99bd=_0x5c891b;super(),this[_0x4e99bd(0x15f)]=_0xd2e111,this[_0x4e99bd(0x176)]=_0x308dba,this[_0x4e99bd(0x131)]();}[_0x5c891b(0x131)](){const _0x2574bc=_0x5c891b;this[_0x2574bc(0xe2)](this['_uiPartsService']['registerComponent'](_0x348417[_0x2574bc(0x10f)],()=>_0x6df76e(Le,this[_0x2574bc(0x15f)])));}};m=He([A(0x0,_0x5c0b1a(_0x122406)),A(0x1,_0x150b13)],m);const ye=_0x5c891b(0x169),T={};var Ue=Object[_0x5c891b(0x12a)],Ve=(_0xc6d32e,_0x4f3166,_0x433df3,_0x349a72)=>{const _0x1c69eb=_0x5c891b;for(var _0x4fbdc7=_0x349a72>0x1?void 0x0:_0x349a72?Ue(_0x4f3166,_0x433df3):_0x4f3166,_0x1781d9=_0xc6d32e[_0x1c69eb(0x11e)]-0x1,_0x1c4824;_0x1781d9>=0x0;_0x1781d9--)(_0x1c4824=_0xc6d32e[_0x1781d9])&&(_0x4fbdc7=_0x1c4824(_0x4fbdc7)||_0x4fbdc7);return _0x4fbdc7;},je=(_0x529ed1,_0x185e52)=>(_0x46e878,_0x32c45e)=>_0x185e52(_0x46e878,_0x32c45e,_0x529ed1);function _0x13cf(){const _0x481ce6=['LIVESHARE_NEW_HOST','http://www.w3.org/2000/svg','_startPresenting','fill','getUnitId','createInstance','presenter','idle','getLiveShareCoordinator','mutations','getConfig','dispose','includes','getValue','_injector','following','executeCommand','unitId','type','parse','OFFLINE','has','pipe','registerInitialStateReporter','live-share.config','stopPresenting','722994BLrhHq','params','1523720ADbKLF','_entities','_unitID','Stop\x20following','map','_stopPresenting','_univerInstanceService','status$','LIVESHARE_OPERATION','_uiPartsService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','OPERATION','tag','Stop\x20presenting','clear','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','data','get','UNIVER_SHEET','LIVESHARE_REQUEST_HOST','onRendered','currentColor','substring','5046CHcPnD','startFollowing','disposeWithMe','16412740CkJGqN','_stopFollowing','_status$','univer-mb-3\x20univer-w-full\x20univer-text-sm','2831227ugnzHi','presenting','getTypeOfUnitAdded$','LIVESHARE_TERMINATE','mask','UniverIcon','4965129REChjX','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','values','default','url(#$1','entries','next','_beIdle','current','_reporters','_handleOperation','UNIVER_UNKNOWN','_commandDisposable','_config','_handleTerminate','send','_handleNewChangeSets','complete','_startLiveShareCoordinator','text','_status','children','getInitialStates','asObservable','pluginName','override','SAME_OPERATION_SHARE_INTERVAL','div','evenodd','requireSession','_collabSessionService','toString','getStatus','_handleNewHost','HEADER_MENU','_handleOnline','not-following','_handleOffline','registerSharedOperation','random','memberID','LiveShareIcon','_collabSession','getLiveShareCoordinatorSync','dispose$','_commandService','4985NQHVnM','defineProperty','init','length','16iaKIew','0\x200\x2017\x2017','live-share-icon','FOLLOWING','You\x27re\x20following\x20the\x20presenter','sheet','4343208HekjOn','string','IDLE','forEach','from','getOwnPropertyDescriptor','_fetchOperations','_startFollowing','xlink:href','displayName','button','getCurrentTypeOfUnit$','_mountLiveShare','6NMAWMA','ONLINE','1em','delete','unsubscribe','stringify','Present\x20this\x20document','add','PRESENTING','getMemberID','_sharedOperations','Start','set','NOT_FOLLOWING','subscribe','Start\x20following','_init','_liveShareService','then','_presenter','getTypeOfUnitDisposed$','trim','attrs','symbol','offline','_configService','onCommandExecuted','idSuffix','UNIVER_LIVE_SHARE_PLUGIN','assign','defs'];_0x13cf=function(){return _0x481ce6;};return _0x13cf();}let I=class extends _0x431729{constructor(_0xbe3fa){const _0x3c9f89=_0x5c891b;super(),this[_0x3c9f89(0x143)]=_0xbe3fa,this[_0x3c9f89(0x142)]();}['_init'](){[_0x10142f['id'],_0x57bc22['id'],_0x5564c8['id']]['forEach'](_0x3ce2d9=>{const _0x1b1c6f=_0x3f41;this[_0x1b1c6f(0xe2)](this['_liveShareService'][_0x1b1c6f(0x113)](_0x3ce2d9));});}};I=Ve([je(0x0,_0x5c0b1a(L))],I);var Me=Object[_0x5c891b(0x11c)],ke=Object[_0x5c891b(0x12a)],Ge=(_0x5d2e44,_0x275dde,_0x2f2818)=>_0x275dde in _0x5d2e44?Me(_0x5d2e44,_0x275dde,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f2818}):_0x5d2e44[_0x275dde]=_0x2f2818,We=(_0x2dfcb7,_0x454f5a,_0x2e9536,_0x3d1ffe)=>{const _0x2b6635=_0x5c891b;for(var _0x35aaa5=_0x3d1ffe>0x1?void 0x0:_0x3d1ffe?ke(_0x454f5a,_0x2e9536):_0x454f5a,_0x1f534c=_0x2dfcb7[_0x2b6635(0x11e)]-0x1,_0x49886c;_0x1f534c>=0x0;_0x1f534c--)(_0x49886c=_0x2dfcb7[_0x1f534c])&&(_0x35aaa5=_0x49886c(_0x35aaa5)||_0x35aaa5);return _0x35aaa5;},F=(_0x3c9d73,_0x483a82)=>(_0x2ff063,_0x1d551f)=>_0x483a82(_0x2ff063,_0x1d551f,_0x3c9d73),B=(_0x85ab9b,_0x27f8db,_0x157175)=>Ge(_0x85ab9b,typeof _0x27f8db!='symbol'?_0x27f8db+'':_0x27f8db,_0x157175);const Ye=_0x5c891b(0x14e);let b=class extends _0x3414a0{constructor(_0x4ee1fe=T,_0x3869cf,_0x1432a1){const _0x1f5ce2=_0x5c891b;super(),this[_0x1f5ce2(0xfa)]=_0x4ee1fe,this['_injector']=_0x3869cf,this[_0x1f5ce2(0x14b)]=_0x1432a1;const {..._0x2fd983}=_0x13e6df({},T,this[_0x1f5ce2(0xfa)]);this['_configService']['setConfig'](ye,_0x2fd983);}['onStarting'](){const _0x4b77d5=_0x5c891b;_0x12f174(this[_0x4b77d5(0x15f)],_0x3ea2c1([[L],[S],[I],[m]],this[_0x4b77d5(0xfa)][_0x4b77d5(0x106)])),_0x299450(this[_0x4b77d5(0x15f)],[[I]]);}[_0x5c891b(0xdd)](){const _0x58e9f7=_0x5c891b;_0x299450(this[_0x58e9f7(0x15f)],[[m]]);}};B(b,_0x5c891b(0x163),_0x4e9761[_0x5c891b(0xf8)]),B(b,_0x5c891b(0x105),Ye),b=We([_0x42d09e(_0x5c81aa),F(0x1,_0x5c0b1a(_0x122406)),F(0x2,_0x3ef321)],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 _0x20bcd6=_0x1f2a;(function(_0x2cc397,_0xa868fd){const _0x5ce6e4=_0x1f2a,_0x30e752=_0x2cc397();while(!![]){try{const _0x316838=-parseInt(_0x5ce6e4(0x1b2))/0x1+-parseInt(_0x5ce6e4(0x1c1))/0x2+-parseInt(_0x5ce6e4(0x1cf))/0x3*(parseInt(_0x5ce6e4(0x1bc))/0x4)+parseInt(_0x5ce6e4(0x1b6))/0x5*(-parseInt(_0x5ce6e4(0x1bb))/0x6)+-parseInt(_0x5ce6e4(0x1c3))/0x7+-parseInt(_0x5ce6e4(0x1ca))/0x8*(-parseInt(_0x5ce6e4(0x1b9))/0x9)+parseInt(_0x5ce6e4(0x1b8))/0xa*(parseInt(_0x5ce6e4(0x1c4))/0xb);if(_0x316838===_0xa868fd)break;else _0x30e752['push'](_0x30e752['shift']());}catch(_0x2d2c6a){_0x30e752['push'](_0x30e752['shift']());}}}(_0x57a3,0x36b7b));import{LiveShareController as _0x3bf062,LiveShareStatus as _0x4cb3db}from'@univerjs-pro/live-share';import{IRenderManagerService as _0xef1b8d}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x58c827}from'@univerjs/sheets';import{SetScrollOperation as _0x30b027}from'@univerjs/sheets-ui';function _0x1f2a(_0x3a0254,_0x4a2493){_0x3a0254=_0x3a0254-0x1b0;const _0x57a309=_0x57a3();let _0x1f2a0f=_0x57a309[_0x3a0254];return _0x1f2a0f;}import{FRange as _0xb31a5c}from'@univerjs/sheets/facade';import{FUniver as _0x2e1202,FEnum as _0x1ab120}from'@univerjs/core/facade';class I extends _0xb31a5c{[_0x20bcd6(0x1ce)](_0xe1b583,_0x450f9e,_0x244abf,_0x1e1683,_0x309eeb){const _0x297830=_0x20bcd6,_0x2e985e=_0xe1b583[_0x297830(0x1cc)](_0x3bf062),_0x264784=_0xe1b583['get'](_0xef1b8d),_0x1a3008=_0x450f9e['getUnitId'](),_0x2ea082=_0x450f9e[_0x297830(0x1c2)](),_0x47d389=_0x2e985e[_0x297830(0x1b3)](_0x1a3008);(_0x47d389==null?void 0x0:_0x47d389['getStatus']())!==_0x4cb3db['PRESENTING']||(_0x244abf['getSheetId']()!==_0x2ea082[_0x297830(0x1bd)]()&&this['_commandService'][_0x297830(0x1c7)](_0x58c827['id'],{'unitId':_0x1a3008,'subUnitId':_0x244abf[_0x297830(0x1bd)]()}),!_0x264784['getRenderById'](_0x1a3008))||_0x309eeb[_0x297830(0x1c6)](_0x30b027['id'],{'unitId':_0x450f9e[_0x297830(0x1cd)](),'sheetId':_0x244abf['getSheetId'](),'sheetViewStartRow':_0x1e1683[_0x297830(0x1c0)],'sheetViewStartColumn':_0x1e1683[_0x297830(0x1b0)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0xb31a5c[_0x20bcd6(0x1b5)](I);class m extends _0x2e1202{[_0x20bcd6(0x1bf)](){const _0x1f9573=_0x20bcd6;var _0x47f3ce,_0x53481c;const _0x5b5eb4=this[_0x1f9573(0x1c9)][_0x1f9573(0x1cc)](_0x3bf062),_0x28ec5c=(_0x47f3ce=this[_0x1f9573(0x1b7)]())==null?void 0x0:_0x47f3ce[_0x1f9573(0x1c5)]();if(!_0x28ec5c)throw new Error('No\x20active\x20workbook\x20found.');const _0x210ecf=_0x5b5eb4[_0x1f9573(0x1b3)](_0x28ec5c);return(_0x53481c=_0x210ecf==null?void 0x0:_0x210ecf['getStatus']())!=null?_0x53481c:_0x4cb3db['IDLE'];}[_0x20bcd6(0x1cb)](){const _0x5551a8=_0x20bcd6;var _0xb791fd;const _0x181773=this[_0x5551a8(0x1c9)][_0x5551a8(0x1cc)](_0x3bf062),_0x6aedf=(_0xb791fd=this[_0x5551a8(0x1b7)]())==null?void 0x0:_0xb791fd[_0x5551a8(0x1c5)]();if(!_0x6aedf)throw new Error(_0x5551a8(0x1b4));const _0x15953a=_0x181773[_0x5551a8(0x1b3)](_0x6aedf);if(!_0x15953a)throw new Error(_0x5551a8(0x1ba));_0x15953a['startFollowing']();}['stopFollowing'](){const _0x3aeda3=_0x20bcd6;var _0x134f64;const _0x1445db=this[_0x3aeda3(0x1c9)][_0x3aeda3(0x1cc)](_0x3bf062),_0x2b0fc1=(_0x134f64=this['getActiveWorkbook']())==null?void 0x0:_0x134f64[_0x3aeda3(0x1c5)]();if(!_0x2b0fc1)throw new Error(_0x3aeda3(0x1b4));const _0x18015e=_0x1445db[_0x3aeda3(0x1b3)](_0x2b0fc1);if(!_0x18015e)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x18015e['stopFollowing']();}[_0x20bcd6(0x1c8)](){const _0x311e7c=_0x20bcd6;var _0x265d3e;const _0x1301ff=this['_injector'][_0x311e7c(0x1cc)](_0x3bf062),_0x56c8cb=(_0x265d3e=this[_0x311e7c(0x1b7)]())==null?void 0x0:_0x265d3e['getId']();if(!_0x56c8cb)throw new Error('No\x20active\x20workbook\x20found.');const _0x54f848=_0x1301ff[_0x311e7c(0x1b3)](_0x56c8cb);if(!_0x54f848)throw new Error(_0x311e7c(0x1ba));_0x54f848[_0x311e7c(0x1be)]();}[_0x20bcd6(0x1b1)](){const _0x5a9912=_0x20bcd6;var _0x1677f7;const _0x4019be=this[_0x5a9912(0x1c9)][_0x5a9912(0x1cc)](_0x3bf062),_0xc740ef=(_0x1677f7=this[_0x5a9912(0x1b7)]())==null?void 0x0:_0x1677f7[_0x5a9912(0x1c5)]();if(!_0xc740ef)throw new Error(_0x5a9912(0x1b4));const _0x2b4f7e=_0x4019be[_0x5a9912(0x1b3)](_0xc740ef);if(!_0x2b4f7e)throw new Error(_0x5a9912(0x1ba));_0x2b4f7e[_0x5a9912(0x1b1)]();}}_0x2e1202['extend'](m);class C extends _0x1ab120{get['LiveShareStatusEnum'](){return _0x4cb3db;}}_0x1ab120[_0x20bcd6(0x1b5)](C);function _0x57a3(){const _0x56af26=['358242qERvIE','27652DYzynx','getSheetId','tryStartPresenting','getLiveShareStatus','startRow','459300lKKmEU','getActiveSheet','1434881kzuWIK','253tZThvD','getId','syncExecuteCommand','executeCommand','startPresenting','_injector','27368SRcajm','startFollowing','get','getUnitId','_initialize','24KLcDQP','startColumn','stopPresenting','86177JyfJgn','getLiveShareCoordinatorSync','No\x20active\x20workbook\x20found.','extend','20LZOxIK','getActiveWorkbook','450280IBbtRt','9jRQGbD','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.'];_0x57a3=function(){return _0x56af26;};return _0x57a3();}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x124796=_0x2c86;(function(_0x3dd598,_0x3a3c83){const _0xae29ca=_0x2c86,_0x50c085=_0x3dd598();while(!![]){try{const _0x40e179=parseInt(_0xae29ca(0x111))/0x1+parseInt(_0xae29ca(0x17c))/0x2+parseInt(_0xae29ca(0x122))/0x3+-parseInt(_0xae29ca(0x12d))/0x4+-parseInt(_0xae29ca(0x109))/0x5+parseInt(_0xae29ca(0x115))/0x6+-parseInt(_0xae29ca(0xf9))/0x7;if(_0x40e179===_0x3a3c83)break;else _0x50c085['push'](_0x50c085['shift']());}catch(_0x3e2efc){_0x50c085['push'](_0x50c085['shift']());}}}(_0x37cf,0x2e03d));function _0x2c86(_0x1ce7ab,_0x1bba39){_0x1ce7ab=_0x1ce7ab-0xd7;const _0x37cf3c=_0x37cf();let _0x2c864a=_0x37cf3c[_0x1ce7ab];return _0x2c864a;}var J=Object[_0x124796(0x138)],K=(_0x477a5a,_0x14fe6f,_0xc44cce)=>_0x14fe6f in _0x477a5a?J(_0x477a5a,_0x14fe6f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc44cce}):_0x477a5a[_0x14fe6f]=_0xc44cce,u=(_0x25ec78,_0x19c868,_0x33d8e5)=>K(_0x25ec78,typeof _0x19c868!=_0x124796(0x16d)?_0x19c868+'':_0x19c868,_0x33d8e5);import{Disposable as _0x6d8bc5,toDisposable as _0x398eff,IUniverInstanceService as _0x439877,Inject as _0xf32bc,Injector as _0x4813b0,IConfigService as _0x25e87d,ICommandService as _0x2fee39,RxDisposable as _0x7ce4af,UniverInstanceType as _0x25a426,DisposableCollection as _0x274869,CommandType as _0x43ff22,DependentOn as _0x144947,Plugin as _0xc55cf5,merge as _0x1b3366,registerDependencies as _0x1e72fe,mergeOverrideWithDependencies as _0x592dcd,touchDependencies as _0x1012e4}from'@univerjs/core';import{useDependency as _0x2b18f8,useObservable as _0x5d89ee,IUIPartsService as _0x478479,BuiltInUIPart as _0x1c14fe,connectInjector as _0x10e3da}from'@univerjs/ui';import{jsx as _0x23b3a7,jsxs as _0x25b971,Fragment as _0x22f41e}from'react/jsx-runtime';import{Dropdown as _0x36bd65,clsx as _0x10333b,Button as _0x14fb40}from'@univerjs/design';import{useRef as _0x39428b,createElement as _0x1edef1,forwardRef as _0x1a98e5,useState as _0x308496,useEffect as _0x104b05}from'react';import{CollaborationEvent as _0x248419,parseProtocolChangeset as _0x5bbb91}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x27b141,SessionStatus as _0x4ea729,UniverCollaborationClientPlugin as _0x164bb6}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4719ca,SetWorksheetActiveOperation as _0x404888}from'@univerjs/sheets';import{BehaviorSubject as _0x3bb74f,Subject as _0x169f7c}from'rxjs';import{takeUntil as _0x3cb157,throttleTime as _0x6b2616}from'rxjs/operators';import{SetZoomRatioOperation as _0x10eab9,SetScrollOperation as _0x3dcd5e}from'@univerjs/sheets-ui';function k({ref:_0x589ee7,..._0x1795e1}){const _0x4df70a=_0x124796,{icon:_0x51b7cb,id:_0x3c2941,className:_0x416fa0,extend:_0x34a0eb,..._0x10540b}=_0x1795e1,_0x29ed7f=(_0x4df70a(0x12f)+_0x3c2941+'\x20'+(_0x416fa0||''))[_0x4df70a(0x14a)](),_0xfc14b3=_0x39428b('_'+Oe());return G(_0x51b7cb,''+_0x3c2941,{'defIds':_0x51b7cb[_0x4df70a(0x116)],'idSuffix':_0xfc14b3['current']},{'ref':_0x589ee7,'className':_0x29ed7f,..._0x10540b},_0x34a0eb);}function G(_0x46e649,_0x2e5585,_0x70f7f5,_0x234dd9,_0x39cadb){const _0x2dcaaa=_0x124796;return _0x1edef1(_0x46e649['tag'],{'key':_0x2e5585,...be(_0x46e649,_0x70f7f5,_0x39cadb),..._0x234dd9},(Ee(_0x46e649,_0x70f7f5)[_0x2dcaaa(0x14e)]||[])[_0x2dcaaa(0x10a)]((_0x2cacd9,_0x35eda1)=>G(_0x2cacd9,_0x2e5585+'-'+_0x46e649[_0x2dcaaa(0x148)]+'-'+_0x35eda1,_0x70f7f5,void 0x0,_0x39cadb)));}function be(_0x415b10,_0x5f5cc6,_0xaea2ce){const _0x4cc6a9=_0x124796,_0x43453b={..._0x415b10['attrs']};_0xaea2ce!=null&&_0xaea2ce['colorChannel1']&&_0x43453b[_0x4cc6a9(0x150)]===_0x4cc6a9(0x129)&&(_0x43453b[_0x4cc6a9(0x150)]=_0xaea2ce[_0x4cc6a9(0x129)]),_0x415b10[_0x4cc6a9(0x148)]===_0x4cc6a9(0x125)&&_0x43453b['id']&&(_0x43453b['id']=_0x43453b['id']+_0x5f5cc6[_0x4cc6a9(0x136)]),Object[_0x4cc6a9(0x178)](_0x43453b)[_0x4cc6a9(0xff)](([_0xbae202,_0x45ea15])=>{const _0x33f547=_0x4cc6a9;_0xbae202===_0x33f547(0x125)&&typeof _0x45ea15=='string'&&(_0x43453b[_0xbae202]=_0x45ea15[_0x33f547(0x137)](/url\(#(.*)\)/,_0x33f547(0x14c)+_0x5f5cc6[_0x33f547(0x136)]+')'));});const {defIds:_0x2ca9fb}=_0x5f5cc6;return!_0x2ca9fb||_0x2ca9fb['length']===0x0||(_0x415b10[_0x4cc6a9(0x148)]===_0x4cc6a9(0xdf)&&_0x43453b[_0x4cc6a9(0x157)]&&(_0x43453b['xlink:href']=_0x43453b[_0x4cc6a9(0x157)]+_0x5f5cc6[_0x4cc6a9(0x136)]),Object[_0x4cc6a9(0x178)](_0x43453b)[_0x4cc6a9(0xff)](([_0x9deb30,_0x18552c])=>{const _0x28ac90=_0x4cc6a9;typeof _0x18552c==_0x28ac90(0x162)&&(_0x43453b[_0x9deb30]=_0x18552c[_0x28ac90(0x137)](/url\(#(.*)\)/,_0x28ac90(0x14c)+_0x5f5cc6['idSuffix']+')'));})),_0x43453b;}function Ee(_0x40e941,_0x47f8c3){const _0x15a319=_0x124796;var _0x46cfcd;const {defIds:_0x141e94}=_0x47f8c3;return!_0x141e94||_0x141e94[_0x15a319(0x100)]===0x0?_0x40e941:_0x40e941['tag']===_0x15a319(0x15c)&&((_0x46cfcd=_0x40e941[_0x15a319(0x14e)])!=null&&_0x46cfcd[_0x15a319(0x100)])?{..._0x40e941,'children':_0x40e941['children'][_0x15a319(0x10a)](_0x15b8db=>typeof _0x15b8db['attrs']['id']==_0x15a319(0x162)&&_0x141e94&&_0x141e94['includes'](_0x15b8db['attrs']['id'])?{..._0x15b8db,'attrs':{..._0x15b8db[_0x15a319(0x179)],'id':_0x15b8db[_0x15a319(0x179)]['id']+_0x47f8c3[_0x15a319(0x136)]}}:_0x15b8db)}:_0x40e941;}function Oe(){const _0x4497f1=_0x124796;return Math[_0x4497f1(0x131)]()[_0x4497f1(0x141)](0x24)[_0x4497f1(0x139)](0x2,0x8);}k[_0x124796(0x102)]=_0x124796(0xf4);const we={'tag':_0x124796(0x124),'attrs':{'xmlns':_0x124796(0xe9),'fill':_0x124796(0x165),'viewBox':_0x124796(0x10c),'width':_0x124796(0x151),'height':_0x124796(0x151)},'children':[{'tag':_0x124796(0xe4),'attrs':{'fill':'currentColor','d':_0x124796(0x132)}},{'tag':_0x124796(0xe4),'attrs':{'fill':_0x124796(0x12e),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x124796(0x153),'clipRule':'evenodd'}}]},W=_0x1a98e5(function(_0x336af4,_0x1bdc1f){const _0x5f2538=_0x124796;return _0x1edef1(k,Object[_0x5f2538(0x15a)]({},_0x336af4,{'id':_0x5f2538(0x155),'ref':_0x1bdc1f,'icon':we}));});function _0x37cf(){const _0x2059aa=['0\x200\x2017\x2017','set','_config','_handleOffline','operations','112124ZJLCOO','parse','LIVESHARE_FETCH_OPERATIONS','Present\x20this\x20document','915600DXClem','defIds','find','registerInitialStateReporter','tryStartPresenting','getValue','PRESENTING','pipe','getMemberID','pluginName','You\x27re\x20not\x20following\x20the\x20presenter','has','_handleOperation','724671tEjCUZ','override','svg','mask','_injector','You\x27are\x20offline.','OFFLINE','colorChannel1','IDLE','default','_commandService','32424DKMVSz','currentColor','univerjs-icon\x20univerjs-icon-','get','random','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','registerSharedOperation','_startPresenting','_handleOnline','idSuffix','replace','defineProperty','substring','getTypeOfUnitAdded$','_handleNewChangeSets','unitId','dispose$','_univerInstanceService','setConfig','stopFollowing','toString','includes','following','asObservable','getLiveShareCoordinator','_configService','sessionStatus$','tag','You\x27re\x20following\x20the\x20presenter','trim','_handleTerminate','url(#$1','presenting','children','_entities','fill','1em','values','evenodd','memberID','live-share-icon','delete','xlink:href','univer-mb-3\x20univer-w-full\x20univer-text-sm','LiveShareIcon','assign','data','defs','You\x27re\x20presenting\x20the\x20document','_unitID','_status','_init','_fetchOperations','string','then','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','none','_liveShareService','_status$','text','subscribe','_presenter','button','reverse','symbol','getUnitId','Start\x20following','stringify','getConfig','mutations','onRendered','disposeWithMe','startFollowing','SAME_OPERATION_SHARE_INTERVAL','next','entries','attrs','_startLiveShareCoordinator','live-share.config','149756tyixUO','_mountLiveShare','NOT_FOLLOWING','_commandDisposable','_startFollowing','getTypeOfUnitDisposed$','Stop\x20presenting','NEW_CHANGESETS','_stopFollowing','LIVESHARE_NEW_HOST','div','presenter','createInstance','from','LIVESHARE_OPERATION','use','_stopPresenting','_sharedOperations','_collabSession','current','path','_uiPartsService','_handleNewHost','send','getOwnPropertyDescriptor','http://www.w3.org/2000/svg','not-following','LIVESHARE_TERMINATE','dispose','_reporters','type','UNIVER_SHEET','_collabSessionService','Start','getCurrentTypeOfUnit$','init','UniverIcon','params','onCommandExecuted','registerComponent','getInitialStates','1175664UfWrSH','LIVESHARE_REQUEST_HOST','offline','status$','_beIdle','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','idle','displayName','requireSession','univer-size-4','ONLINE','executeCommand','add','OPERATION','1083120unQoXN','map','stopPresenting'];_0x37cf=function(){return _0x2059aa;};return _0x37cf();}W[_0x124796(0x102)]=_0x124796(0x159);class L extends _0x6d8bc5{constructor(){const _0x346c29=_0x124796;super(...arguments),u(this,_0x346c29(0xe1),new Set()),u(this,'_reporters',new Set());}[_0x124796(0x133)](_0x135ed6){const _0x335379=_0x124796;return this[_0x335379(0xe1)][_0x335379(0x107)](_0x135ed6),_0x398eff(()=>this['_sharedOperations'][_0x335379(0x156)](_0x135ed6));}[_0x124796(0x118)](_0x160073){const _0x442add=_0x124796;return this[_0x442add(0xed)][_0x442add(0x107)](_0x160073),_0x398eff(()=>this[_0x442add(0xed)][_0x442add(0x156)](_0x160073));}['shouldShareOperation'](_0x4c5560){const _0x334329=_0x124796;return this['_sharedOperations'][_0x334329(0x120)](_0x4c5560);}[_0x124796(0xf8)](_0x592a2b){const _0x2c46e1=_0x124796;return Array[_0x2c46e1(0xdd)](this['_reporters'])['map'](_0x11c285=>_0x11c285(_0x592a2b));}}var Ne=Object[_0x124796(0xe8)],Y=(_0x514565,_0x3b20ec,_0x1e0ba1,_0x3c15e6)=>{const _0x11da83=_0x124796;for(var _0x3b6d99=_0x3c15e6>0x1?void 0x0:_0x3c15e6?Ne(_0x3b20ec,_0x1e0ba1):_0x3b20ec,_0x58bf13=_0x514565[_0x11da83(0x100)]-0x1,_0x2accc9;_0x58bf13>=0x0;_0x58bf13--)(_0x2accc9=_0x514565[_0x58bf13])&&(_0x3b6d99=_0x2accc9(_0x3b6d99)||_0x3b6d99);return _0x3b6d99;},_=(_0x38cc31,_0x3f09cb)=>(_0xd19354,_0x821cb5)=>_0x3f09cb(_0xd19354,_0x821cb5,_0x38cc31);let S=class extends _0x7ce4af{constructor(_0x1af0aa,_0x17c474,_0x15609f){const _0xdcb7f5=_0x124796;super(),u(this,_0xdcb7f5(0x14f),new Map()),(this['_univerInstanceService']=_0x1af0aa,this['_injector']=_0x17c474,this[_0xdcb7f5(0xf0)]=_0x15609f,this[_0xdcb7f5(0x160)]());}async[_0x124796(0x145)](_0x4efd1a){const _0xbf5338=_0x124796;return this[_0xbf5338(0x14f)][_0xbf5338(0x120)](_0x4efd1a)||await this['_startLiveShareCoordinator'](_0x4efd1a),this[_0xbf5338(0x14f)][_0xbf5338(0x130)](_0x4efd1a);}['getLiveShareCoordinatorSync'](_0x2f9b71){const _0xb23ed5=_0x124796;var _0x11d962;return(_0x11d962=this[_0xb23ed5(0x14f)][_0xb23ed5(0x130)](_0x2f9b71))!=null?_0x11d962:null;}['_init'](){const _0x29a532=_0x124796;this[_0x29a532(0x13e)][_0x29a532(0x13a)](_0x25a426[_0x29a532(0xef)])['pipe'](_0x3cb157(this[_0x29a532(0x13d)]))[_0x29a532(0x169)](async _0x501688=>{const _0x22d748=_0x29a532,_0x3380ef=_0x501688[_0x22d748(0x16e)]();this[_0x22d748(0x14f)][_0x22d748(0x120)](_0x3380ef)||this[_0x22d748(0x17a)](_0x3380ef);}),this[_0x29a532(0x13e)][_0x29a532(0x181)](_0x25a426[_0x29a532(0xef)])[_0x29a532(0x11c)](_0x3cb157(this[_0x29a532(0x13d)]))['subscribe'](_0x2319c0=>{const _0x203639=_0x29a532,_0x2979f1=_0x2319c0['getUnitId'](),_0x37982d=this[_0x203639(0x14f)][_0x203639(0x130)](_0x2979f1);_0x37982d==null||_0x37982d['dispose']();});}async['_startLiveShareCoordinator'](_0x40db4a){const _0x27524f=_0x124796,_0x47e761=await this[_0x27524f(0xf0)][_0x27524f(0x103)](_0x40db4a),_0x5ba18a=this[_0x27524f(0x126)][_0x27524f(0xdc)](N,_0x40db4a,_0x47e761);return _0x5ba18a[_0x27524f(0xf3)](),this[_0x27524f(0x14f)][_0x27524f(0x10d)](_0x40db4a,_0x5ba18a),_0x5ba18a;}};S=Y([_(0x0,_0x439877),_(0x1,_0xf32bc(_0x4813b0)),_(0x2,_0xf32bc(_0x27b141))],S);var c=(_0x9a0c7e=>(_0x9a0c7e[_0x124796(0x128)]=_0x124796(0xfb),_0x9a0c7e[_0x124796(0x12a)]=_0x124796(0x101),_0x9a0c7e['FOLLOWING']='following',_0x9a0c7e['NOT_FOLLOWING']=_0x124796(0xea),_0x9a0c7e[_0x124796(0x11b)]='presenting',_0x9a0c7e))(c||{});const Ce=_0x124796(0x176),De=0xc8;let N=class extends _0x7ce4af{constructor(_0x32a3bd,_0x4934b7,_0x23d7be,_0x4c4cef,_0x34f4ae){const _0x4b659e=_0x124796;super(),u(this,'_status$',new _0x3bb74f(_0x4b659e(0x101))),u(this,_0x4b659e(0xfc),this[_0x4b659e(0x167)][_0x4b659e(0x144)]()),u(this,_0x4b659e(0x160),!0x1),u(this,_0x4b659e(0x17f),null),u(this,'_presenter',null),(this['_unitID']=_0x32a3bd,this[_0x4b659e(0xe2)]=_0x4934b7,this['_configService']=_0x23d7be,this[_0x4b659e(0x166)]=_0x4c4cef,this['_commandService']=_0x34f4ae);}get[_0x124796(0x15f)](){const _0xab98b2=_0x124796;return this[_0xab98b2(0x167)][_0xab98b2(0x11a)]();}['dispose'](){const _0x7ba224=_0x124796;var _0x1bb9c0;(_0x1bb9c0=this[_0x7ba224(0x17f)])==null||_0x1bb9c0['dispose'](),this[_0x7ba224(0x167)][_0x7ba224(0x177)](_0x7ba224(0x101)),this['_status$']['complete']();}['getStatus'](){return this['_status'];}[_0x124796(0xf3)](){const _0xaec24a=_0x124796;this[_0xaec24a(0x160)]||(this[_0xaec24a(0x160)]=!0x0,this[_0xaec24a(0xe2)][_0xaec24a(0x147)][_0xaec24a(0x11c)](_0x3cb157(this[_0xaec24a(0x13d)]))[_0xaec24a(0x169)](_0xfdd238=>{const _0x5a2c55=_0xaec24a;switch(_0xfdd238){case _0x4ea729[_0x5a2c55(0x128)]:this[_0x5a2c55(0x10f)]();break;case _0x4ea729[_0x5a2c55(0x105)]:this[_0x5a2c55(0x135)]();break;}}),this[_0xaec24a(0xe2)]['event$'][_0xaec24a(0x11c)](_0x3cb157(this[_0xaec24a(0x13d)]))[_0xaec24a(0x169)](_0x5e8591=>{const _0x586705=_0xaec24a,{eventID:_0xcf279e}=_0x5e8591;switch(_0xcf279e){case _0x248419[_0x586705(0xd9)]:this[_0x586705(0xe6)](_0x5e8591);break;case _0x248419[_0x586705(0xde)]:this[_0x586705(0x121)](_0x5e8591);break;case _0x248419[_0x586705(0xeb)]:this[_0x586705(0x14b)]();break;case _0x248419[_0x586705(0xd7)]:this['_handleNewChangeSets'](_0x5e8591);break;}}));}['tryStartPresenting'](){const _0x2a2735=_0x124796;this['_collabSession'][_0x2a2735(0xe7)]({'eventID':_0x248419[_0x2a2735(0xfa)],'data':{'unitID':this[_0x2a2735(0x15e)],'userID':this[_0x2a2735(0xe2)][_0x2a2735(0x11d)]()}},this[_0x2a2735(0x15e)]);}[_0x124796(0x10b)](){const _0x34a928=_0x124796;this[_0x34a928(0x15f)]===_0x34a928(0x14d)&&(this[_0x34a928(0x167)][_0x34a928(0x177)]('idle'),this[_0x34a928(0xe2)]['send']({'eventID':_0x248419[_0x34a928(0xeb)],'data':{'unitID':this[_0x34a928(0x15e)]}},this[_0x34a928(0x15e)]));}[_0x124796(0x175)](){const _0x33466d=_0x124796;this[_0x33466d(0x15f)]==='not-following'&&(this[_0x33466d(0x167)][_0x33466d(0x177)]('following'),this[_0x33466d(0x180)]());}[_0x124796(0x140)](){const _0x583c94=_0x124796;this[_0x583c94(0x15f)]===_0x583c94(0x143)&&this[_0x583c94(0xd8)]();}[_0x124796(0xe6)](_0x11b5c5){const _0x24dfe1=_0x124796,{presenter:_0xff946a}=_0x11b5c5[_0x24dfe1(0x15b)],_0x4906dc=this['_collabSession'][_0x24dfe1(0x11d)]();this[_0x24dfe1(0x16a)]=_0xff946a,_0xff946a===_0x4906dc?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x24dfe1(0x15f)]!==_0x24dfe1(0xea)&&(this[_0x24dfe1(0xe0)](),this['_startFollowing']());}[_0x124796(0x161)](){const _0x1aa780=_0x124796,_0x4be587={'eventID':_0x248419[_0x1aa780(0x113)]};this[_0x1aa780(0xe2)][_0x1aa780(0xe7)](_0x4be587,this['_unitID']);}[_0x124796(0x14b)](){const _0xccacdb=_0x124796;this[_0xccacdb(0x16a)]=null,this['_status']!==_0xccacdb(0x14d)&&this[_0xccacdb(0xfd)]();}[_0x124796(0x13b)](_0x43d206){const _0x5ca333=_0x124796;if(this[_0x5ca333(0x15f)]===_0x5ca333(0x143)&&this['_presenter']===_0x43d206[_0x5ca333(0x15b)][_0x5ca333(0x154)]){const _0x5514f8=_0x5bbb91(_0x43d206[_0x5ca333(0x15b)])[_0x5ca333(0x172)][_0x5ca333(0x16c)]()[_0x5ca333(0x117)](_0x4c5ed7=>_0x4c5ed7['id']===_0x4719ca['id']);if(_0x5514f8){const _0x355b06=_0x5514f8[_0x5ca333(0xf5)][_0x5ca333(0x13c)],_0x11b0c4=_0x5514f8[_0x5ca333(0xf5)]['sheet']['id'];setTimeout(()=>{const _0x56a723=_0x5ca333;this[_0x56a723(0x12c)][_0x56a723(0x106)](_0x404888['id'],{'unitId':_0x355b06,'subUnitId':_0x11b0c4},{'fromCollab':!0x0});});}}}[_0x124796(0x134)](){const _0xf3731=_0x124796;this[_0xf3731(0x167)]['next']('presenting');const _0x1e6e45=new Map(),_0x3a257d=this['_commandDisposable']=new _0x274869();_0x3a257d['add'](_0x398eff(()=>{const _0x3148cf=_0xf3731;_0x1e6e45[_0x3148cf(0xff)](_0x3b24a8=>_0x3b24a8['complete']()),_0x1e6e45['clear']();})),_0x3a257d[_0xf3731(0x107)](this[_0xf3731(0x12c)][_0xf3731(0xf6)](_0x851488=>{const _0x3fff64=_0xf3731;var _0x3dec42;if(_0x851488[_0x3fff64(0xee)]!==_0x43ff22[_0x3fff64(0x108)]||!this[_0x3fff64(0x166)]['shouldShareOperation'](_0x851488['id']))return;const {id:_0x30eb49}=_0x851488;let _0x1d887c;_0x1e6e45[_0x3fff64(0x120)](_0x30eb49)?_0x1d887c=_0x1e6e45[_0x3fff64(0x130)](_0x30eb49):(_0x1d887c=new _0x169f7c(),_0x1e6e45['set'](_0x30eb49,_0x1d887c),_0x1d887c[_0x3fff64(0x11c)](_0x6b2616((_0x3dec42=this[_0x3fff64(0x146)][_0x3fff64(0x171)](Ce))!=null?_0x3dec42:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x57fe30=>{const _0x271fe8=_0x3fff64;this['_collabSession'][_0x271fe8(0xe7)]({'eventID':_0x248419[_0x271fe8(0xde)],'data':{'unitID':this[_0x271fe8(0x15e)],'operations':{[_0x57fe30['id']]:{'id':_0x57fe30['id'],'params':JSON[_0x271fe8(0x170)](_0x57fe30['params'])}}}},this[_0x271fe8(0x15e)]);})),_0x1d887c['next'](_0x851488);})),this[_0xf3731(0x166)][_0xf3731(0xf8)](this[_0xf3731(0x15e)])['forEach'](_0x305518=>this['_collabSession']['send']({'eventID':_0x248419['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xf3731(0x15e)],'operations':{[_0x305518['id']]:{'id':_0x305518['id'],'params':JSON['stringify'](_0x305518[_0xf3731(0xf5)])}}}},this[_0xf3731(0x15e)]));}[_0x124796(0xe0)](){const _0x38a531=_0x124796;var _0x31b45c;this[_0x38a531(0x167)][_0x38a531(0x177)](_0x38a531(0x101)),(_0x31b45c=this[_0x38a531(0x17f)])==null||_0x31b45c['dispose'](),this[_0x38a531(0x17f)]=null;}['_startFollowing'](){const _0x202674=_0x124796;var _0x47abf2;(_0x47abf2=this[_0x202674(0x17f)])==null||_0x47abf2['dispose'](),this[_0x202674(0x167)][_0x202674(0x177)](_0x202674(0x143));}[_0x124796(0xfd)](){const _0x782f9=_0x124796;var _0x1dd9df;this[_0x782f9(0x167)]['next'](_0x782f9(0x101)),(_0x1dd9df=this[_0x782f9(0x17f)])==null||_0x1dd9df[_0x782f9(0xec)](),this[_0x782f9(0x17f)]=null;}[_0x124796(0xd8)](){const _0x310603=_0x124796;var _0x43e509;this[_0x310603(0x167)]['next'](_0x310603(0xea)),(_0x43e509=this['_commandDisposable'])==null||_0x43e509[_0x310603(0xec)]();}[_0x124796(0x121)](_0x559bef){const _0x4b26e1=_0x124796;if([_0x4b26e1(0x14d),'not-following',_0x4b26e1(0xfb)][_0x4b26e1(0x142)](this[_0x4b26e1(0x15f)])||!_0x559bef[_0x4b26e1(0x15b)][_0x4b26e1(0xdb)]||_0x559bef[_0x4b26e1(0x15b)]['presenter']===this['_collabSession'][_0x4b26e1(0x11d)]())return;this[_0x4b26e1(0x15f)]===_0x4b26e1(0x101)&&this['_startFollowing']();const _0x4ef1e4=_0x559bef[_0x4b26e1(0x15b)][_0x4b26e1(0x110)];Object[_0x4b26e1(0x152)](_0x4ef1e4)['forEach'](_0x347736=>{const _0x579d29=_0x4b26e1;this[_0x579d29(0x12c)][_0x579d29(0x106)](_0x347736['id'],_0x347736['params']?JSON[_0x579d29(0x112)](_0x347736[_0x579d29(0xf5)]):null,{'fromCollab':!0x0});});}[_0x124796(0x10f)](){const _0x558b64=_0x124796;var _0x50b968;this[_0x558b64(0x167)][_0x558b64(0x177)](_0x558b64(0xfb)),(_0x50b968=this[_0x558b64(0x17f)])==null||_0x50b968[_0x558b64(0xec)]();}['_handleOnline'](){const _0xa113a0=_0x124796;this['_status$'][_0xa113a0(0x177)](_0xa113a0(0x101)),this[_0xa113a0(0x161)]();}};N=Y([_(0x2,_0x25e87d),_(0x3,_0xf32bc(L)),_(0x4,_0x2fee39)],N);function Le(){const _0x5d8852=_0x124796,_0x342838=_0x2b18f8(S),_0x877647=_0x2b18f8(_0x439877),_0x4cc196=_0x5d89ee(()=>_0x877647[_0x5d8852(0xf2)](_0x25a426[_0x5d8852(0xef)]),void 0x0,!0x1,[]),[_0xf177ab,_0x1f83e4]=_0x308496(null),[_0x20469c,_0x2ef963]=_0x308496(c[_0x5d8852(0x12a)]),_0xbc5915=_0x39428b(null);return _0x104b05(()=>(_0x4cc196&&_0x342838[_0x5d8852(0x145)](_0x4cc196[_0x5d8852(0x16e)]())[_0x5d8852(0x163)](_0x5d92b8=>{const _0x4d0081=_0x5d8852;_0x1f83e4(_0x5d92b8),_0xbc5915['current']=_0x5d92b8[_0x4d0081(0xfc)][_0x4d0081(0x169)](_0x3b0ae6=>{_0x2ef963(_0x3b0ae6);});}),()=>{const _0x18693e=_0x5d8852;var _0x4d6540;(_0x4d6540=_0xbc5915['current'])==null||_0x4d6540['unsubscribe'](),_0xbc5915[_0x18693e(0xe3)]=null;}),[_0x4cc196,_0x342838]),_0xf177ab?_0x23b3a7(_0x36bd65,{'align':'end','disabled':_0x20469c===c[_0x5d8852(0x128)],'className':_0x5d8852(0xfe),'overlay':_0x23b3a7(Re,{'status':_0x20469c,'coordinator':_0xf177ab}),'children':_0x23b3a7('button',{'className':_0x10333b(_0x5d8852(0x164),{'univer-cursor-not-allowed':_0x20469c===c[_0x5d8852(0x128)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x20469c!==c[_0x5d8852(0x128)]}),'type':_0x5d8852(0x16b),'children':_0x23b3a7(W,{'className':_0x5d8852(0x104)})})}):null;}function Re(_0xa95eb9){const _0x37d612=_0x124796,{status:_0x56f2ee,coordinator:_0x1a17c6}=_0xa95eb9;switch(_0x56f2ee){case c[_0x37d612(0x12a)]:return _0x23b3a7($e,{'coordinator':_0x1a17c6});case c['FOLLOWING']:return _0x23b3a7(xe,{'coordinator':_0x1a17c6});case c[_0x37d612(0x17e)]:return _0x23b3a7(Pe,{'coordinator':_0x1a17c6});case c[_0x37d612(0x128)]:return _0x23b3a7(Te,{});case c[_0x37d612(0x11b)]:return _0x23b3a7(Ae,{'coordinator':_0x1a17c6});default:return null;}}function $e(_0x3af653){const _0x41ca7c=_0x124796,{coordinator:_0x407e8a}=_0x3af653;return _0x25b971(_0x22f41e,{'children':[_0x23b3a7(_0x41ca7c(0xda),{'className':_0x41ca7c(0x158),'children':_0x41ca7c(0x114)}),_0x23b3a7(_0x14fb40,{'onClick':()=>_0x407e8a[_0x41ca7c(0x119)](),'children':_0x41ca7c(0xf1)})]});}function xe(_0x179d21){const _0x5d5858=_0x124796,{coordinator:_0xc84bf6}=_0x179d21;return _0x25b971(_0x22f41e,{'children':[_0x23b3a7(_0x5d5858(0xda),{'className':_0x5d5858(0x158),'children':_0x5d5858(0x149)}),_0x23b3a7(_0x14fb40,{'onClick':()=>_0xc84bf6['stopFollowing'](),'children':'Stop\x20following'})]});}function Pe(_0x3d2816){const _0xf1899c=_0x124796,{coordinator:_0x12cd31}=_0x3d2816;return _0x25b971(_0x22f41e,{'children':[_0x23b3a7(_0xf1899c(0xda),{'className':_0xf1899c(0x158),'children':_0xf1899c(0x11f)}),_0x23b3a7(_0x14fb40,{'variant':_0xf1899c(0x168),'onClick':()=>_0x12cd31[_0xf1899c(0x175)](),'children':_0xf1899c(0x16f)})]});}function Ae(_0xe4641d){const _0x14458e=_0x124796,{coordinator:_0x4061c4}=_0xe4641d;return _0x25b971(_0x22f41e,{'children':[_0x23b3a7(_0x14458e(0xda),{'className':_0x14458e(0x158),'children':_0x14458e(0x15d)}),_0x23b3a7(_0x14fb40,{'variant':_0x14458e(0x12b),'onClick':()=>_0x4061c4['stopPresenting'](),'children':_0x14458e(0x182)})]});}function Te(){const _0x7e4f8c=_0x124796;return _0x23b3a7(_0x22f41e,{'children':_0x7e4f8c(0x127)});}var Fe=Object[_0x124796(0xe8)],He=(_0x308c4d,_0x16fad8,_0x546931,_0x42e059)=>{const _0x5348c3=_0x124796;for(var _0x5de742=_0x42e059>0x1?void 0x0:_0x42e059?Fe(_0x16fad8,_0x546931):_0x16fad8,_0x515853=_0x308c4d[_0x5348c3(0x100)]-0x1,_0xd597ce;_0x515853>=0x0;_0x515853--)(_0xd597ce=_0x308c4d[_0x515853])&&(_0x5de742=_0xd597ce(_0x5de742)||_0x5de742);return _0x5de742;},A=(_0x31c79d,_0x1817f0)=>(_0x1b3ddd,_0x1a62fc)=>_0x1817f0(_0x1b3ddd,_0x1a62fc,_0x31c79d);let m=class extends _0x6d8bc5{constructor(_0x5564b8,_0x3743ef){const _0x46c189=_0x124796;super(),this[_0x46c189(0x126)]=_0x5564b8,this[_0x46c189(0xe5)]=_0x3743ef,this[_0x46c189(0x17d)]();}[_0x124796(0x17d)](){const _0x55ae0f=_0x124796;this[_0x55ae0f(0x174)](this[_0x55ae0f(0xe5)][_0x55ae0f(0xf7)](_0x1c14fe['HEADER_MENU'],()=>_0x10e3da(Le,this[_0x55ae0f(0x126)])));}};m=He([A(0x0,_0xf32bc(_0x4813b0)),A(0x1,_0x478479)],m);const ye=_0x124796(0x17b),T={};var Ue=Object[_0x124796(0xe8)],Ve=(_0x48ca1f,_0x213db6,_0x17c040,_0x3fecf3)=>{const _0x3f4df8=_0x124796;for(var _0x104303=_0x3fecf3>0x1?void 0x0:_0x3fecf3?Ue(_0x213db6,_0x17c040):_0x213db6,_0x2c6872=_0x48ca1f[_0x3f4df8(0x100)]-0x1,_0x2fbf52;_0x2c6872>=0x0;_0x2c6872--)(_0x2fbf52=_0x48ca1f[_0x2c6872])&&(_0x104303=_0x2fbf52(_0x104303)||_0x104303);return _0x104303;},je=(_0x223ba7,_0x125e3b)=>(_0x35d6eb,_0x4d7ec6)=>_0x125e3b(_0x35d6eb,_0x4d7ec6,_0x223ba7);let I=class extends _0x6d8bc5{constructor(_0x5e5b2f){const _0x42b09e=_0x124796;super(),this['_liveShareService']=_0x5e5b2f,this[_0x42b09e(0x160)]();}['_init'](){const _0x5611bc=_0x124796;[_0x10eab9['id'],_0x3dcd5e['id'],_0x404888['id']][_0x5611bc(0xff)](_0x2df43c=>{const _0x314d99=_0x5611bc;this[_0x314d99(0x174)](this[_0x314d99(0x166)][_0x314d99(0x133)](_0x2df43c));});}};I=Ve([je(0x0,_0xf32bc(L))],I);var Me=Object[_0x124796(0x138)],ke=Object[_0x124796(0xe8)],Ge=(_0x53d7bd,_0x560455,_0x213934)=>_0x560455 in _0x53d7bd?Me(_0x53d7bd,_0x560455,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x213934}):_0x53d7bd[_0x560455]=_0x213934,We=(_0x4ea3be,_0x4acbc0,_0xd38328,_0xab9b0c)=>{for(var _0xc0c20a=_0xab9b0c>0x1?void 0x0:_0xab9b0c?ke(_0x4acbc0,_0xd38328):_0x4acbc0,_0x572987=_0x4ea3be['length']-0x1,_0x548715;_0x572987>=0x0;_0x572987--)(_0x548715=_0x4ea3be[_0x572987])&&(_0xc0c20a=_0x548715(_0xc0c20a)||_0xc0c20a);return _0xc0c20a;},F=(_0xd56d7a,_0x376d59)=>(_0x35395c,_0x4509cf)=>_0x376d59(_0x35395c,_0x4509cf,_0xd56d7a),B=(_0x4d80a5,_0x22039e,_0x133439)=>Ge(_0x4d80a5,typeof _0x22039e!=_0x124796(0x16d)?_0x22039e+'':_0x22039e,_0x133439);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0xc55cf5{constructor(_0x251d0e=T,_0x48f431,_0x33ae32){const _0x4daebc=_0x124796;super(),this[_0x4daebc(0x10e)]=_0x251d0e,this['_injector']=_0x48f431,this[_0x4daebc(0x146)]=_0x33ae32;const {..._0x58f319}=_0x1b3366({},T,this[_0x4daebc(0x10e)]);this[_0x4daebc(0x146)][_0x4daebc(0x13f)](ye,_0x58f319);}['onStarting'](){const _0x538e7f=_0x124796;_0x1e72fe(this['_injector'],_0x592dcd([[L],[S],[I],[m]],this['_config'][_0x538e7f(0x123)])),_0x1012e4(this['_injector'],[[I]]);}[_0x124796(0x173)](){const _0x2e6241=_0x124796;_0x1012e4(this[_0x2e6241(0x126)],[[m]]);}};B(b,_0x124796(0xee),_0x25a426['UNIVER_UNKNOWN']),B(b,_0x124796(0x11e),Ye),b=We([_0x144947(_0x164bb6),F(0x1,_0xf32bc(_0x4813b0)),F(0x2,_0x25e87d)],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 _0x5c891b=_0x3f41;(function(_0x5d1051,_0xfe1fe5){const _0x1c0d34=_0x3f41,_0x307f7c=_0x5d1051();while(!![]){try{const _0x1f14fa=parseInt(_0x1c0d34(0x16d))/0x1+parseInt(_0x1c0d34(0x132))/0x2*(-parseInt(_0x1c0d34(0x16b))/0x3)+parseInt(_0x1c0d34(0x125))/0x4+parseInt(_0x1c0d34(0x11b))/0x5*(parseInt(_0x1c0d34(0xe0))/0x6)+parseInt(_0x1c0d34(0xe7))/0x7*(-parseInt(_0x1c0d34(0x11f))/0x8)+parseInt(_0x1c0d34(0xed))/0x9+-parseInt(_0x1c0d34(0xe3))/0xa;if(_0x1f14fa===_0xfe1fe5)break;else _0x307f7c['push'](_0x307f7c['shift']());}catch(_0x1259e6){_0x307f7c['push'](_0x307f7c['shift']());}}}(_0x13cf,0xc9c7a));var J=Object[_0x5c891b(0x11c)],K=(_0x3d3763,_0x361fb1,_0x386156)=>_0x361fb1 in _0x3d3763?J(_0x3d3763,_0x361fb1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x386156}):_0x3d3763[_0x361fb1]=_0x386156,u=(_0x3be939,_0x82528e,_0x2ae74c)=>K(_0x3be939,typeof _0x82528e!=_0x5c891b(0x149)?_0x82528e+'':_0x82528e,_0x2ae74c);import{Disposable as _0x431729,toDisposable as _0x2a75a6,IUniverInstanceService as _0xb62e9f,Inject as _0x5c0b1a,Injector as _0x122406,IConfigService as _0x3ef321,ICommandService as _0x113a75,RxDisposable as _0x2994f4,UniverInstanceType as _0x4e9761,DisposableCollection as _0x35b926,CommandType as _0x419595,DependentOn as _0x42d09e,Plugin as _0x3414a0,merge as _0x13e6df,registerDependencies as _0x12f174,mergeOverrideWithDependencies as _0x3ea2c1,touchDependencies as _0x299450}from'@univerjs/core';import{useDependency as _0x59cba9,useObservable as _0x172d74,IUIPartsService as _0x150b13,BuiltInUIPart as _0x348417,connectInjector as _0x6df76e}from'@univerjs/ui';import{jsx as _0x22293e,jsxs as _0xc16c99,Fragment as _0x4ad7d5}from'react/jsx-runtime';import{Dropdown as _0x55a60a,clsx as _0x391744,Button as _0x5aedf4}from'@univerjs/design';import{useRef as _0x567279,createElement as _0x21df1f,forwardRef as _0x2542a7,useState as _0x8acbe5,useEffect as _0xb9123a}from'react';import{CollaborationEvent as _0x5b0c32,parseProtocolChangeset as _0x37c054}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1ee3d1,SessionStatus as _0x4b1079,UniverCollaborationClientPlugin as _0x5c81aa}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x36d1bf,SetWorksheetActiveOperation as _0x5564c8}from'@univerjs/sheets';import{BehaviorSubject as _0x5f2c0e,Subject as _0x4d0e55}from'rxjs';import{takeUntil as _0x2a74ec,throttleTime as _0x3d3727}from'rxjs/operators';function _0x3f41(_0x379308,_0x52df29){_0x379308=_0x379308-0xda;const _0x13cf10=_0x13cf();let _0x3f41af=_0x13cf10[_0x379308];return _0x3f41af;}import{SetZoomRatioOperation as _0x10142f,SetScrollOperation as _0x57bc22}from'@univerjs/sheets-ui';function k({ref:_0x8b6fec,..._0x5a2708}){const _0x79a618=_0x5c891b,{icon:_0x10bfca,id:_0xd3c020,className:_0x219571,extend:_0x1eb486,..._0x30e0fb}=_0x5a2708,_0x45676b=('univerjs-icon\x20univerjs-icon-'+_0xd3c020+'\x20'+(_0x219571||''))[_0x79a618(0x147)](),_0x4aab8e=_0x567279('_'+Oe());return G(_0x10bfca,''+_0xd3c020,{'defIds':_0x10bfca['defIds'],'idSuffix':_0x4aab8e[_0x79a618(0xf5)]},{'ref':_0x8b6fec,'className':_0x45676b,..._0x30e0fb},_0x1eb486);}function G(_0x5e72b2,_0x3a6d66,_0xe48b7f,_0x2c8be3,_0x36a5c3){const _0xc17b58=_0x5c891b;return _0x21df1f(_0x5e72b2[_0xc17b58(0x179)],{'key':_0x3a6d66,...be(_0x5e72b2,_0xe48b7f,_0x36a5c3),..._0x2c8be3},(Ee(_0x5e72b2,_0xe48b7f)[_0xc17b58(0x102)]||[])['map']((_0x11d941,_0x31303a)=>G(_0x11d941,_0x3a6d66+'-'+_0x5e72b2[_0xc17b58(0x179)]+'-'+_0x31303a,_0xe48b7f,void 0x0,_0x36a5c3)));}function be(_0x3025f5,_0x256acf,_0x4810c5){const _0x4d9352=_0x5c891b,_0x23a1da={..._0x3025f5[_0x4d9352(0x148)]};_0x4810c5!=null&&_0x4810c5['colorChannel1']&&_0x23a1da[_0x4d9352(0x154)]==='colorChannel1'&&(_0x23a1da[_0x4d9352(0x154)]=_0x4810c5['colorChannel1']),_0x3025f5[_0x4d9352(0x179)]===_0x4d9352(0xeb)&&_0x23a1da['id']&&(_0x23a1da['id']=_0x23a1da['id']+_0x256acf[_0x4d9352(0x14d)]),Object[_0x4d9352(0xf2)](_0x23a1da)[_0x4d9352(0x128)](([_0xc2c9b7,_0x26bd69])=>{const _0x3f7b6f=_0x4d9352;_0xc2c9b7===_0x3f7b6f(0xeb)&&typeof _0x26bd69=='string'&&(_0x23a1da[_0xc2c9b7]=_0x26bd69['replace'](/url\(#(.*)\)/,_0x3f7b6f(0xf1)+_0x256acf['idSuffix']+')'));});const {defIds:_0x8ee528}=_0x256acf;return!_0x8ee528||_0x8ee528['length']===0x0||(_0x3025f5[_0x4d9352(0x179)]==='use'&&_0x23a1da[_0x4d9352(0x12d)]&&(_0x23a1da[_0x4d9352(0x12d)]=_0x23a1da[_0x4d9352(0x12d)]+_0x256acf[_0x4d9352(0x14d)]),Object['entries'](_0x23a1da)[_0x4d9352(0x128)](([_0x321e28,_0x8e1dc3])=>{const _0x279893=_0x4d9352;typeof _0x8e1dc3==_0x279893(0x126)&&(_0x23a1da[_0x321e28]=_0x8e1dc3['replace'](/url\(#(.*)\)/,_0x279893(0xf1)+_0x256acf[_0x279893(0x14d)]+')'));})),_0x23a1da;}function Ee(_0x157426,_0x4cd462){const _0x820846=_0x5c891b;var _0xabca4d;const {defIds:_0x5c5024}=_0x4cd462;return!_0x5c5024||_0x5c5024[_0x820846(0x11e)]===0x0?_0x157426:_0x157426[_0x820846(0x179)]===_0x820846(0x150)&&((_0xabca4d=_0x157426['children'])!=null&&_0xabca4d[_0x820846(0x11e)])?{..._0x157426,'children':_0x157426['children'][_0x820846(0x171)](_0x24d80a=>typeof _0x24d80a[_0x820846(0x148)]['id']==_0x820846(0x126)&&_0x5c5024&&_0x5c5024[_0x820846(0x15d)](_0x24d80a['attrs']['id'])?{..._0x24d80a,'attrs':{..._0x24d80a[_0x820846(0x148)],'id':_0x24d80a[_0x820846(0x148)]['id']+_0x4cd462[_0x820846(0x14d)]}}:_0x24d80a)}:_0x157426;}function Oe(){const _0x3b67fd=_0x5c891b;return Math[_0x3b67fd(0x114)]()[_0x3b67fd(0x10c)](0x24)[_0x3b67fd(0xdf)](0x2,0x8);}k[_0x5c891b(0x12e)]=_0x5c891b(0xec);const we={'tag':'svg','attrs':{'xmlns':_0x5c891b(0x152),'fill':'none','viewBox':_0x5c891b(0x120),'width':_0x5c891b(0x134),'height':_0x5c891b(0x134)},'children':[{'tag':'path','attrs':{'fill':_0x5c891b(0xde),'d':_0x5c891b(0xee)}},{'tag':'path','attrs':{'fill':_0x5c891b(0xde),'d':_0x5c891b(0x17c),'fillRule':_0x5c891b(0x109),'clipRule':_0x5c891b(0x109)}}]},W=_0x2542a7(function(_0x38b9c4,_0x1007a9){const _0x55d74b=_0x5c891b;return _0x21df1f(k,Object[_0x55d74b(0x14f)]({},_0x38b9c4,{'id':_0x55d74b(0x121),'ref':_0x1007a9,'icon':we}));});W[_0x5c891b(0x12e)]=_0x5c891b(0x116);class L extends _0x431729{constructor(){const _0x4ac952=_0x5c891b;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x4ac952(0xf6),new Set());}['registerSharedOperation'](_0x20ac42){const _0x5c9715=_0x5c891b;return this[_0x5c9715(0x13c)][_0x5c9715(0x139)](_0x20ac42),_0x2a75a6(()=>this[_0x5c9715(0x13c)][_0x5c9715(0x135)](_0x20ac42));}[_0x5c891b(0x168)](_0x3fc39d){const _0x4383f1=_0x5c891b;return this[_0x4383f1(0xf6)][_0x4383f1(0x139)](_0x3fc39d),_0x2a75a6(()=>this[_0x4383f1(0xf6)]['delete'](_0x3fc39d));}['shouldShareOperation'](_0x49df9e){const _0x32be29=_0x5c891b;return this[_0x32be29(0x13c)][_0x32be29(0x166)](_0x49df9e);}['getInitialStates'](_0x3f85d0){const _0x1ff91f=_0x5c891b;return Array[_0x1ff91f(0x129)](this[_0x1ff91f(0xf6)])['map'](_0x25030f=>_0x25030f(_0x3f85d0));}}var Ne=Object[_0x5c891b(0x12a)],Y=(_0x364232,_0x59ffda,_0x4bc055,_0x1453d8)=>{const _0x396d74=_0x5c891b;for(var _0x4f0f3b=_0x1453d8>0x1?void 0x0:_0x1453d8?Ne(_0x59ffda,_0x4bc055):_0x59ffda,_0x371ee7=_0x364232[_0x396d74(0x11e)]-0x1,_0x26a79e;_0x371ee7>=0x0;_0x371ee7--)(_0x26a79e=_0x364232[_0x371ee7])&&(_0x4f0f3b=_0x26a79e(_0x4f0f3b)||_0x4f0f3b);return _0x4f0f3b;},_=(_0x3eec54,_0x2989b4)=>(_0x36ecad,_0x2d3a49)=>_0x2989b4(_0x36ecad,_0x2d3a49,_0x3eec54);let S=class extends _0x2994f4{constructor(_0x10ecb8,_0x274e6b,_0x7e5ae4){const _0x1de7a9=_0x5c891b;super(),u(this,_0x1de7a9(0x16e),new Map()),(this['_univerInstanceService']=_0x10ecb8,this[_0x1de7a9(0x15f)]=_0x274e6b,this[_0x1de7a9(0x10b)]=_0x7e5ae4,this[_0x1de7a9(0x142)]());}async['getLiveShareCoordinator'](_0x50c6ea){const _0x2f5d15=_0x5c891b;return this[_0x2f5d15(0x16e)][_0x2f5d15(0x166)](_0x50c6ea)||await this[_0x2f5d15(0xff)](_0x50c6ea),this[_0x2f5d15(0x16e)]['get'](_0x50c6ea);}[_0x5c891b(0x118)](_0x48b606){const _0x57ef09=_0x5c891b;var _0x38d21e;return(_0x38d21e=this[_0x57ef09(0x16e)][_0x57ef09(0xda)](_0x48b606))!=null?_0x38d21e:null;}[_0x5c891b(0x142)](){const _0x225e30=_0x5c891b;this['_univerInstanceService'][_0x225e30(0xe9)](_0x4e9761[_0x225e30(0xdb)])['pipe'](_0x2a74ec(this[_0x225e30(0x119)]))['subscribe'](async _0x4abc25=>{const _0x52a674=_0x225e30,_0x44d1de=_0x4abc25[_0x52a674(0x155)]();this[_0x52a674(0x16e)][_0x52a674(0x166)](_0x44d1de)||this['_startLiveShareCoordinator'](_0x44d1de);}),this[_0x225e30(0x173)][_0x225e30(0x146)](_0x4e9761[_0x225e30(0xdb)])['pipe'](_0x2a74ec(this[_0x225e30(0x119)]))['subscribe'](_0xdb90e7=>{const _0x5d5158=_0x225e30,_0x1991ba=_0xdb90e7[_0x5d5158(0x155)](),_0x3d1f6b=this[_0x5d5158(0x16e)][_0x5d5158(0xda)](_0x1991ba);_0x3d1f6b==null||_0x3d1f6b[_0x5d5158(0x15c)]();});}async['_startLiveShareCoordinator'](_0x550255){const _0x3ca347=_0x5c891b,_0x3e6164=await this['_collabSessionService'][_0x3ca347(0x10a)](_0x550255),_0x428235=this[_0x3ca347(0x15f)][_0x3ca347(0x156)](N,_0x550255,_0x3e6164);return _0x428235[_0x3ca347(0x11d)](),this['_entities'][_0x3ca347(0x13e)](_0x550255,_0x428235),_0x428235;}};S=Y([_(0x0,_0xb62e9f),_(0x1,_0x5c0b1a(_0x122406)),_(0x2,_0x5c0b1a(_0x1ee3d1))],S);var c=(_0x3621f8=>(_0x3621f8['OFFLINE']=_0x5c891b(0x14a),_0x3621f8[_0x5c891b(0x127)]=_0x5c891b(0x158),_0x3621f8[_0x5c891b(0x122)]=_0x5c891b(0x160),_0x3621f8[_0x5c891b(0x13f)]=_0x5c891b(0x111),_0x3621f8[_0x5c891b(0x13a)]=_0x5c891b(0xe8),_0x3621f8))(c||{});const Ce=_0x5c891b(0x107),De=0xc8;let N=class extends _0x2994f4{constructor(_0x145cd3,_0x59756e,_0x1daa51,_0xcd7384,_0x19eb6e){const _0x56fde6=_0x5c891b;super(),u(this,_0x56fde6(0xe5),new _0x5f2c0e(_0x56fde6(0x158))),u(this,_0x56fde6(0x174),this[_0x56fde6(0xe5)][_0x56fde6(0x104)]()),u(this,_0x56fde6(0x142),!0x1),u(this,'_commandDisposable',null),u(this,_0x56fde6(0x145),null),(this[_0x56fde6(0x16f)]=_0x145cd3,this[_0x56fde6(0x117)]=_0x59756e,this[_0x56fde6(0x14b)]=_0x1daa51,this[_0x56fde6(0x143)]=_0xcd7384,this[_0x56fde6(0x11a)]=_0x19eb6e);}get[_0x5c891b(0x101)](){const _0x3f6c9d=_0x5c891b;return this[_0x3f6c9d(0xe5)][_0x3f6c9d(0x15e)]();}[_0x5c891b(0x15c)](){const _0x35cd45=_0x5c891b;var _0x2c8268;(_0x2c8268=this['_commandDisposable'])==null||_0x2c8268[_0x35cd45(0x15c)](),this[_0x35cd45(0xe5)][_0x35cd45(0xf3)]('idle'),this[_0x35cd45(0xe5)][_0x35cd45(0xfe)]();}[_0x5c891b(0x10d)](){return this['_status'];}[_0x5c891b(0x11d)](){const _0x48eb97=_0x5c891b;this[_0x48eb97(0x142)]||(this[_0x48eb97(0x142)]=!0x0,this['_collabSession']['sessionStatus$'][_0x48eb97(0x167)](_0x2a74ec(this[_0x48eb97(0x119)]))[_0x48eb97(0x140)](_0x356bdd=>{const _0x459eb7=_0x48eb97;switch(_0x356bdd){case _0x4b1079[_0x459eb7(0x165)]:this['_handleOffline']();break;case _0x4b1079[_0x459eb7(0x133)]:this['_handleOnline']();break;}}),this[_0x48eb97(0x117)]['event$']['pipe'](_0x2a74ec(this[_0x48eb97(0x119)]))[_0x48eb97(0x140)](_0x3163d5=>{const _0x9b9a40=_0x48eb97,{eventID:_0x29ffc5}=_0x3163d5;switch(_0x29ffc5){case _0x5b0c32[_0x9b9a40(0x151)]:this[_0x9b9a40(0x10e)](_0x3163d5);break;case _0x5b0c32[_0x9b9a40(0x175)]:this['_handleOperation'](_0x3163d5);break;case _0x5b0c32[_0x9b9a40(0xea)]:this[_0x9b9a40(0xfb)]();break;case _0x5b0c32['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x3163d5);break;}}));}['tryStartPresenting'](){const _0x115a56=_0x5c891b;this[_0x115a56(0x117)][_0x115a56(0xfc)]({'eventID':_0x5b0c32[_0x115a56(0xdc)],'data':{'unitID':this['_unitID'],'userID':this[_0x115a56(0x117)][_0x115a56(0x13b)]()}},this[_0x115a56(0x16f)]);}[_0x5c891b(0x16a)](){const _0x3a4e92=_0x5c891b;this[_0x3a4e92(0x101)]===_0x3a4e92(0xe8)&&(this[_0x3a4e92(0xe5)][_0x3a4e92(0xf3)]('idle'),this[_0x3a4e92(0x117)][_0x3a4e92(0xfc)]({'eventID':_0x5b0c32['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x3a4e92(0x16f)]}},this[_0x3a4e92(0x16f)]));}[_0x5c891b(0xe1)](){const _0xae92a2=_0x5c891b;this[_0xae92a2(0x101)]===_0xae92a2(0x111)&&(this[_0xae92a2(0xe5)][_0xae92a2(0xf3)](_0xae92a2(0x160)),this[_0xae92a2(0x12c)]());}['stopFollowing'](){const _0x2d5d90=_0x5c891b;this['_status']===_0x2d5d90(0x160)&&this[_0x2d5d90(0xe4)]();}[_0x5c891b(0x10e)](_0x433812){const _0x17e494=_0x5c891b,{presenter:_0x40ddbf}=_0x433812[_0x17e494(0x17d)],_0x242d4a=this[_0x17e494(0x117)][_0x17e494(0x13b)]();this[_0x17e494(0x145)]=_0x40ddbf,_0x40ddbf===_0x242d4a?(this[_0x17e494(0xe4)](),this[_0x17e494(0x153)]()):this[_0x17e494(0x101)]!==_0x17e494(0x111)&&(this['_stopPresenting'](),this[_0x17e494(0x12c)]());}[_0x5c891b(0x12b)](){const _0x5a4cd1=_0x5c891b,_0x18ffe8={'eventID':_0x5b0c32['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x5a4cd1(0xfc)](_0x18ffe8,this[_0x5a4cd1(0x16f)]);}[_0x5c891b(0xfb)](){const _0xe4fbcc=_0x5c891b;this[_0xe4fbcc(0x145)]=null,this[_0xe4fbcc(0x101)]!=='presenting'&&this[_0xe4fbcc(0xf4)]();}[_0x5c891b(0xfd)](_0x38a7fc){const _0xcb3dce=_0x5c891b;if(this[_0xcb3dce(0x101)]===_0xcb3dce(0x160)&&this[_0xcb3dce(0x145)]===_0x38a7fc['data'][_0xcb3dce(0x115)]){const _0x35ce9f=_0x37c054(_0x38a7fc[_0xcb3dce(0x17d)])[_0xcb3dce(0x15a)]['reverse']()['find'](_0x53fda1=>_0x53fda1['id']===_0x36d1bf['id']);if(_0x35ce9f){const _0x2b5f3b=_0x35ce9f[_0xcb3dce(0x16c)][_0xcb3dce(0x162)],_0x4213be=_0x35ce9f[_0xcb3dce(0x16c)][_0xcb3dce(0x124)]['id'];setTimeout(()=>{const _0xf3faf9=_0xcb3dce;this['_commandService'][_0xf3faf9(0x161)](_0x5564c8['id'],{'unitId':_0x2b5f3b,'subUnitId':_0x4213be},{'fromCollab':!0x0});});}}}[_0x5c891b(0x153)](){const _0x392112=_0x5c891b;this[_0x392112(0xe5)]['next'](_0x392112(0xe8));const _0x76b929=new Map(),_0x207b17=this[_0x392112(0xf9)]=new _0x35b926();_0x207b17[_0x392112(0x139)](_0x2a75a6(()=>{const _0x425e0f=_0x392112;_0x76b929[_0x425e0f(0x128)](_0x47a59a=>_0x47a59a['complete']()),_0x76b929[_0x425e0f(0x17b)]();})),_0x207b17[_0x392112(0x139)](this[_0x392112(0x11a)][_0x392112(0x14c)](_0x35a3c8=>{const _0x4b7eee=_0x392112;var _0x1de7b7;if(_0x35a3c8[_0x4b7eee(0x163)]!==_0x419595[_0x4b7eee(0x178)]||!this[_0x4b7eee(0x143)]['shouldShareOperation'](_0x35a3c8['id']))return;const {id:_0x252f25}=_0x35a3c8;let _0x2fc419;_0x76b929[_0x4b7eee(0x166)](_0x252f25)?_0x2fc419=_0x76b929[_0x4b7eee(0xda)](_0x252f25):(_0x2fc419=new _0x4d0e55(),_0x76b929[_0x4b7eee(0x13e)](_0x252f25,_0x2fc419),_0x2fc419[_0x4b7eee(0x167)](_0x3d3727((_0x1de7b7=this['_configService'][_0x4b7eee(0x15b)](Ce))!=null?_0x1de7b7:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4b7eee(0x140)](_0x35a763=>{const _0x2a9baa=_0x4b7eee;this[_0x2a9baa(0x117)][_0x2a9baa(0xfc)]({'eventID':_0x5b0c32[_0x2a9baa(0x175)],'data':{'unitID':this[_0x2a9baa(0x16f)],'operations':{[_0x35a763['id']]:{'id':_0x35a763['id'],'params':JSON[_0x2a9baa(0x137)](_0x35a763['params'])}}}},this['_unitID']);})),_0x2fc419['next'](_0x35a3c8);})),this[_0x392112(0x143)][_0x392112(0x103)](this['_unitID'])['forEach'](_0x151742=>this[_0x392112(0x117)][_0x392112(0xfc)]({'eventID':_0x5b0c32[_0x392112(0x175)],'data':{'unitID':this['_unitID'],'operations':{[_0x151742['id']]:{'id':_0x151742['id'],'params':JSON[_0x392112(0x137)](_0x151742['params'])}}}},this[_0x392112(0x16f)]));}[_0x5c891b(0x172)](){const _0x399bee=_0x5c891b;var _0x278625;this[_0x399bee(0xe5)][_0x399bee(0xf3)](_0x399bee(0x158)),(_0x278625=this[_0x399bee(0xf9)])==null||_0x278625[_0x399bee(0x15c)](),this[_0x399bee(0xf9)]=null;}[_0x5c891b(0x12c)](){const _0xd0efcb=_0x5c891b;var _0x512c79;(_0x512c79=this[_0xd0efcb(0xf9)])==null||_0x512c79['dispose'](),this[_0xd0efcb(0xe5)][_0xd0efcb(0xf3)](_0xd0efcb(0x160));}[_0x5c891b(0xf4)](){const _0x3b9709=_0x5c891b;var _0xe1931b;this[_0x3b9709(0xe5)][_0x3b9709(0xf3)](_0x3b9709(0x158)),(_0xe1931b=this[_0x3b9709(0xf9)])==null||_0xe1931b[_0x3b9709(0x15c)](),this['_commandDisposable']=null;}[_0x5c891b(0xe4)](){const _0x2b35fc=_0x5c891b;var _0x88a924;this[_0x2b35fc(0xe5)][_0x2b35fc(0xf3)]('not-following'),(_0x88a924=this[_0x2b35fc(0xf9)])==null||_0x88a924[_0x2b35fc(0x15c)]();}[_0x5c891b(0xf7)](_0x537ffc){const _0x5a41e4=_0x5c891b;if(['presenting','not-following','offline'][_0x5a41e4(0x15d)](this[_0x5a41e4(0x101)])||!_0x537ffc[_0x5a41e4(0x17d)]['presenter']||_0x537ffc[_0x5a41e4(0x17d)][_0x5a41e4(0x157)]===this[_0x5a41e4(0x117)][_0x5a41e4(0x13b)]())return;this[_0x5a41e4(0x101)]===_0x5a41e4(0x158)&&this[_0x5a41e4(0x12c)]();const _0x358c8d=_0x537ffc[_0x5a41e4(0x17d)]['operations'];Object[_0x5a41e4(0xef)](_0x358c8d)['forEach'](_0x4b87d3=>{const _0x546da0=_0x5a41e4;this[_0x546da0(0x11a)][_0x546da0(0x161)](_0x4b87d3['id'],_0x4b87d3['params']?JSON[_0x546da0(0x164)](_0x4b87d3[_0x546da0(0x16c)]):null,{'fromCollab':!0x0});});}[_0x5c891b(0x112)](){const _0x7712fe=_0x5c891b;var _0x5e6997;this['_status$'][_0x7712fe(0xf3)](_0x7712fe(0x14a)),(_0x5e6997=this['_commandDisposable'])==null||_0x5e6997[_0x7712fe(0x15c)]();}[_0x5c891b(0x110)](){const _0x24ed7c=_0x5c891b;this[_0x24ed7c(0xe5)][_0x24ed7c(0xf3)]('idle'),this[_0x24ed7c(0x12b)]();}};N=Y([_(0x2,_0x3ef321),_(0x3,_0x5c0b1a(L)),_(0x4,_0x113a75)],N);function Le(){const _0x2e8662=_0x5c891b,_0x46846f=_0x59cba9(S),_0x29bfb9=_0x59cba9(_0xb62e9f),_0xb80694=_0x172d74(()=>_0x29bfb9[_0x2e8662(0x130)](_0x4e9761[_0x2e8662(0xdb)]),void 0x0,!0x1,[]),[_0x107360,_0x17d935]=_0x8acbe5(null),[_0x11ea72,_0x5b4511]=_0x8acbe5(c[_0x2e8662(0x127)]),_0x57db96=_0x567279(null);return _0xb9123a(()=>(_0xb80694&&_0x46846f[_0x2e8662(0x159)](_0xb80694[_0x2e8662(0x155)]())[_0x2e8662(0x144)](_0x27adf9=>{const _0x25b66e=_0x2e8662;_0x17d935(_0x27adf9),_0x57db96[_0x25b66e(0xf5)]=_0x27adf9[_0x25b66e(0x174)][_0x25b66e(0x140)](_0x299c41=>{_0x5b4511(_0x299c41);});}),()=>{const _0x370c58=_0x2e8662;var _0x41841c;(_0x41841c=_0x57db96[_0x370c58(0xf5)])==null||_0x41841c[_0x370c58(0x136)](),_0x57db96['current']=null;}),[_0xb80694,_0x46846f]),_0x107360?_0x22293e(_0x55a60a,{'align':'end','disabled':_0x11ea72===c[_0x2e8662(0x165)],'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':_0x22293e(Re,{'status':_0x11ea72,'coordinator':_0x107360}),'children':_0x22293e(_0x2e8662(0x12f),{'className':_0x391744(_0x2e8662(0x177),{'univer-cursor-not-allowed':_0x11ea72===c[_0x2e8662(0x165)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x11ea72!==c['OFFLINE']}),'type':_0x2e8662(0x12f),'children':_0x22293e(W,{'className':'univer-size-4'})})}):null;}function Re(_0xebe6b7){const _0x59a0ca=_0x5c891b,{status:_0x4adc9d,coordinator:_0x30e75e}=_0xebe6b7;switch(_0x4adc9d){case c['IDLE']:return _0x22293e($e,{'coordinator':_0x30e75e});case c[_0x59a0ca(0x122)]:return _0x22293e(xe,{'coordinator':_0x30e75e});case c['NOT_FOLLOWING']:return _0x22293e(Pe,{'coordinator':_0x30e75e});case c['OFFLINE']:return _0x22293e(Te,{});case c['PRESENTING']:return _0x22293e(Ae,{'coordinator':_0x30e75e});default:return null;}}function $e(_0x2c1586){const _0x311269=_0x5c891b,{coordinator:_0x326fa0}=_0x2c1586;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e(_0x311269(0x108),{'className':_0x311269(0xe6),'children':_0x311269(0x138)}),_0x22293e(_0x5aedf4,{'onClick':()=>_0x326fa0['tryStartPresenting'](),'children':_0x311269(0x13d)})]});}function xe(_0x2b5d49){const _0x397ca3=_0x5c891b,{coordinator:_0x3eaa1b}=_0x2b5d49;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e(_0x397ca3(0x108),{'className':_0x397ca3(0xe6),'children':_0x397ca3(0x123)}),_0x22293e(_0x5aedf4,{'onClick':()=>_0x3eaa1b['stopFollowing'](),'children':_0x397ca3(0x170)})]});}function Pe(_0x6ace70){const _0x2b278a=_0x5c891b,{coordinator:_0x5aeaf1}=_0x6ace70;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e('div',{'className':_0x2b278a(0xe6),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x22293e(_0x5aedf4,{'variant':_0x2b278a(0x100),'onClick':()=>_0x5aeaf1[_0x2b278a(0xe1)](),'children':_0x2b278a(0x141)})]});}function Ae(_0x3c7a47){const _0x2aabc7=_0x5c891b,{coordinator:_0x393d4d}=_0x3c7a47;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x22293e(_0x5aedf4,{'variant':_0x2aabc7(0xf0),'onClick':()=>_0x393d4d[_0x2aabc7(0x16a)](),'children':_0x2aabc7(0x17a)})]});}function Te(){return _0x22293e(_0x4ad7d5,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x5c891b(0x12a)],He=(_0xe70890,_0x1b3670,_0x59da49,_0x179e3e)=>{for(var _0x240718=_0x179e3e>0x1?void 0x0:_0x179e3e?Fe(_0x1b3670,_0x59da49):_0x1b3670,_0x7cdc85=_0xe70890['length']-0x1,_0x2723ac;_0x7cdc85>=0x0;_0x7cdc85--)(_0x2723ac=_0xe70890[_0x7cdc85])&&(_0x240718=_0x2723ac(_0x240718)||_0x240718);return _0x240718;},A=(_0x38e13f,_0x3bff8e)=>(_0x2e8fc0,_0x53adac)=>_0x3bff8e(_0x2e8fc0,_0x53adac,_0x38e13f);let m=class extends _0x431729{constructor(_0xd2e111,_0x308dba){const _0x4e99bd=_0x5c891b;super(),this[_0x4e99bd(0x15f)]=_0xd2e111,this[_0x4e99bd(0x176)]=_0x308dba,this[_0x4e99bd(0x131)]();}[_0x5c891b(0x131)](){const _0x2574bc=_0x5c891b;this[_0x2574bc(0xe2)](this['_uiPartsService']['registerComponent'](_0x348417[_0x2574bc(0x10f)],()=>_0x6df76e(Le,this[_0x2574bc(0x15f)])));}};m=He([A(0x0,_0x5c0b1a(_0x122406)),A(0x1,_0x150b13)],m);const ye=_0x5c891b(0x169),T={};var Ue=Object[_0x5c891b(0x12a)],Ve=(_0xc6d32e,_0x4f3166,_0x433df3,_0x349a72)=>{const _0x1c69eb=_0x5c891b;for(var _0x4fbdc7=_0x349a72>0x1?void 0x0:_0x349a72?Ue(_0x4f3166,_0x433df3):_0x4f3166,_0x1781d9=_0xc6d32e[_0x1c69eb(0x11e)]-0x1,_0x1c4824;_0x1781d9>=0x0;_0x1781d9--)(_0x1c4824=_0xc6d32e[_0x1781d9])&&(_0x4fbdc7=_0x1c4824(_0x4fbdc7)||_0x4fbdc7);return _0x4fbdc7;},je=(_0x529ed1,_0x185e52)=>(_0x46e878,_0x32c45e)=>_0x185e52(_0x46e878,_0x32c45e,_0x529ed1);function _0x13cf(){const _0x481ce6=['LIVESHARE_NEW_HOST','http://www.w3.org/2000/svg','_startPresenting','fill','getUnitId','createInstance','presenter','idle','getLiveShareCoordinator','mutations','getConfig','dispose','includes','getValue','_injector','following','executeCommand','unitId','type','parse','OFFLINE','has','pipe','registerInitialStateReporter','live-share.config','stopPresenting','722994BLrhHq','params','1523720ADbKLF','_entities','_unitID','Stop\x20following','map','_stopPresenting','_univerInstanceService','status$','LIVESHARE_OPERATION','_uiPartsService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','OPERATION','tag','Stop\x20presenting','clear','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','data','get','UNIVER_SHEET','LIVESHARE_REQUEST_HOST','onRendered','currentColor','substring','5046CHcPnD','startFollowing','disposeWithMe','16412740CkJGqN','_stopFollowing','_status$','univer-mb-3\x20univer-w-full\x20univer-text-sm','2831227ugnzHi','presenting','getTypeOfUnitAdded$','LIVESHARE_TERMINATE','mask','UniverIcon','4965129REChjX','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','values','default','url(#$1','entries','next','_beIdle','current','_reporters','_handleOperation','UNIVER_UNKNOWN','_commandDisposable','_config','_handleTerminate','send','_handleNewChangeSets','complete','_startLiveShareCoordinator','text','_status','children','getInitialStates','asObservable','pluginName','override','SAME_OPERATION_SHARE_INTERVAL','div','evenodd','requireSession','_collabSessionService','toString','getStatus','_handleNewHost','HEADER_MENU','_handleOnline','not-following','_handleOffline','registerSharedOperation','random','memberID','LiveShareIcon','_collabSession','getLiveShareCoordinatorSync','dispose$','_commandService','4985NQHVnM','defineProperty','init','length','16iaKIew','0\x200\x2017\x2017','live-share-icon','FOLLOWING','You\x27re\x20following\x20the\x20presenter','sheet','4343208HekjOn','string','IDLE','forEach','from','getOwnPropertyDescriptor','_fetchOperations','_startFollowing','xlink:href','displayName','button','getCurrentTypeOfUnit$','_mountLiveShare','6NMAWMA','ONLINE','1em','delete','unsubscribe','stringify','Present\x20this\x20document','add','PRESENTING','getMemberID','_sharedOperations','Start','set','NOT_FOLLOWING','subscribe','Start\x20following','_init','_liveShareService','then','_presenter','getTypeOfUnitDisposed$','trim','attrs','symbol','offline','_configService','onCommandExecuted','idSuffix','UNIVER_LIVE_SHARE_PLUGIN','assign','defs'];_0x13cf=function(){return _0x481ce6;};return _0x13cf();}let I=class extends _0x431729{constructor(_0xbe3fa){const _0x3c9f89=_0x5c891b;super(),this[_0x3c9f89(0x143)]=_0xbe3fa,this[_0x3c9f89(0x142)]();}['_init'](){[_0x10142f['id'],_0x57bc22['id'],_0x5564c8['id']]['forEach'](_0x3ce2d9=>{const _0x1b1c6f=_0x3f41;this[_0x1b1c6f(0xe2)](this['_liveShareService'][_0x1b1c6f(0x113)](_0x3ce2d9));});}};I=Ve([je(0x0,_0x5c0b1a(L))],I);var Me=Object[_0x5c891b(0x11c)],ke=Object[_0x5c891b(0x12a)],Ge=(_0x5d2e44,_0x275dde,_0x2f2818)=>_0x275dde in _0x5d2e44?Me(_0x5d2e44,_0x275dde,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f2818}):_0x5d2e44[_0x275dde]=_0x2f2818,We=(_0x2dfcb7,_0x454f5a,_0x2e9536,_0x3d1ffe)=>{const _0x2b6635=_0x5c891b;for(var _0x35aaa5=_0x3d1ffe>0x1?void 0x0:_0x3d1ffe?ke(_0x454f5a,_0x2e9536):_0x454f5a,_0x1f534c=_0x2dfcb7[_0x2b6635(0x11e)]-0x1,_0x49886c;_0x1f534c>=0x0;_0x1f534c--)(_0x49886c=_0x2dfcb7[_0x1f534c])&&(_0x35aaa5=_0x49886c(_0x35aaa5)||_0x35aaa5);return _0x35aaa5;},F=(_0x3c9d73,_0x483a82)=>(_0x2ff063,_0x1d551f)=>_0x483a82(_0x2ff063,_0x1d551f,_0x3c9d73),B=(_0x85ab9b,_0x27f8db,_0x157175)=>Ge(_0x85ab9b,typeof _0x27f8db!='symbol'?_0x27f8db+'':_0x27f8db,_0x157175);const Ye=_0x5c891b(0x14e);let b=class extends _0x3414a0{constructor(_0x4ee1fe=T,_0x3869cf,_0x1432a1){const _0x1f5ce2=_0x5c891b;super(),this[_0x1f5ce2(0xfa)]=_0x4ee1fe,this['_injector']=_0x3869cf,this[_0x1f5ce2(0x14b)]=_0x1432a1;const {..._0x2fd983}=_0x13e6df({},T,this[_0x1f5ce2(0xfa)]);this['_configService']['setConfig'](ye,_0x2fd983);}['onStarting'](){const _0x4b77d5=_0x5c891b;_0x12f174(this[_0x4b77d5(0x15f)],_0x3ea2c1([[L],[S],[I],[m]],this[_0x4b77d5(0xfa)][_0x4b77d5(0x106)])),_0x299450(this[_0x4b77d5(0x15f)],[[I]]);}[_0x5c891b(0xdd)](){const _0x58e9f7=_0x5c891b;_0x299450(this[_0x58e9f7(0x15f)],[[m]]);}};B(b,_0x5c891b(0x163),_0x4e9761[_0x5c891b(0xf8)]),B(b,_0x5c891b(0x105),Ye),b=We([_0x42d09e(_0x5c81aa),F(0x1,_0x5c0b1a(_0x122406)),F(0x2,_0x3ef321)],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
|
-
|
|
1
|
+
(function(_0x2e90fc,_0x19e8a8){const _0x35e946=_0x3fbc,_0x4950de=_0x2e90fc();while(!![]){try{const _0x1b9d9d=parseInt(_0x35e946(0x103))/0x1+-parseInt(_0x35e946(0x106))/0x2*(-parseInt(_0x35e946(0x11b))/0x3)+parseInt(_0x35e946(0x100))/0x4*(parseInt(_0x35e946(0x109))/0x5)+-parseInt(_0x35e946(0xf9))/0x6*(-parseInt(_0x35e946(0x10f))/0x7)+parseInt(_0x35e946(0xef))/0x8*(parseInt(_0x35e946(0x110))/0x9)+-parseInt(_0x35e946(0x119))/0xa+parseInt(_0x35e946(0x11c))/0xb*(-parseInt(_0x35e946(0xfd))/0xc);if(_0x1b9d9d===_0x19e8a8)break;else _0x4950de['push'](_0x4950de['shift']());}catch(_0x330b23){_0x4950de['push'](_0x4950de['shift']());}}}(_0x1398,0x85082),function(_0x53c492,_0x4a8019){const _0x5b6c39=_0x3fbc;typeof exports==_0x5b6c39(0x11a)&&typeof module<'u'?_0x4a8019(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==_0x5b6c39(0xfc)&&define[_0x5b6c39(0x11d)]?define([_0x5b6c39(0x105),_0x5b6c39(0x114),_0x5b6c39(0x112),'@univerjs/sheets-ui','@univerjs/sheets/facade',_0x5b6c39(0x115)],_0x4a8019):(_0x53c492=typeof globalThis<'u'?globalThis:_0x53c492||self,_0x4a8019(_0x53c492['UniverProLiveShare'],_0x53c492[_0x5b6c39(0xf4)],_0x53c492[_0x5b6c39(0x10a)],_0x53c492[_0x5b6c39(0xfb)],_0x53c492[_0x5b6c39(0xf6)],_0x53c492['UniverCoreFacade']));}(this,function(_0x518b79,_0x20ca34,_0x4540d5,_0x4d8163,_0x2f62ef,_0x1f3491){'use strict';const _0x4196d9=_0x3fbc;class _0x241ac3 extends _0x2f62ef['FRange']{[_0x4196d9(0x10c)](_0x20b4a8,_0x560968,_0x35c420,_0x127d72,_0x3dcaba){const _0x53a9ec=_0x4196d9,_0x3deb09=_0x20b4a8[_0x53a9ec(0x101)](_0x518b79['LiveShareController']),_0x47c45f=_0x20b4a8[_0x53a9ec(0x101)](_0x20ca34['IRenderManagerService']),_0x322d64=_0x560968[_0x53a9ec(0xf8)](),_0x1abf3c=_0x560968['getActiveSheet'](),_0x544d56=_0x3deb09[_0x53a9ec(0x11f)](_0x322d64);(_0x544d56==null?void 0x0:_0x544d56[_0x53a9ec(0xfe)]())!==_0x518b79[_0x53a9ec(0x121)][_0x53a9ec(0x10b)]||(_0x35c420[_0x53a9ec(0x120)]()!==_0x1abf3c[_0x53a9ec(0x120)]()&&this['_commandService'][_0x53a9ec(0x10e)](_0x4540d5[_0x53a9ec(0x11e)]['id'],{'unitId':_0x322d64,'subUnitId':_0x35c420['getSheetId']()}),!_0x47c45f[_0x53a9ec(0x111)](_0x322d64))||_0x3dcaba[_0x53a9ec(0x104)](_0x4d8163['SetScrollOperation']['id'],{'unitId':_0x560968[_0x53a9ec(0xf8)](),'sheetId':_0x35c420[_0x53a9ec(0x120)](),'sheetViewStartRow':_0x127d72[_0x53a9ec(0x10d)],'sheetViewStartColumn':_0x127d72[_0x53a9ec(0x117)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x2f62ef['FRange']['extend'](_0x241ac3);class _0x11cfd7 extends _0x1f3491[_0x4196d9(0x116)]{[_0x4196d9(0xf2)](){const _0xc0ba28=_0x4196d9;var _0xf86ee2,_0x45ed93;const _0x5208f7=this[_0xc0ba28(0xff)]['get'](_0x518b79[_0xc0ba28(0x108)]),_0x555980=(_0xf86ee2=this[_0xc0ba28(0xf1)]())==null?void 0x0:_0xf86ee2[_0xc0ba28(0xf7)]();if(!_0x555980)throw new Error('No\x20active\x20workbook\x20found.');const _0x314018=_0x5208f7[_0xc0ba28(0x11f)](_0x555980);return(_0x45ed93=_0x314018==null?void 0x0:_0x314018[_0xc0ba28(0xfe)]())!=null?_0x45ed93:_0x518b79[_0xc0ba28(0x121)][_0xc0ba28(0xf0)];}[_0x4196d9(0x102)](){const _0x19a611=_0x4196d9;var _0x37e413;const _0x5c2c6e=this['_injector']['get'](_0x518b79[_0x19a611(0x108)]),_0x25a6c6=(_0x37e413=this[_0x19a611(0xf1)]())==null?void 0x0:_0x37e413[_0x19a611(0xf7)]();if(!_0x25a6c6)throw new Error('No\x20active\x20workbook\x20found.');const _0x2f4b0f=_0x5c2c6e[_0x19a611(0x11f)](_0x25a6c6);if(!_0x2f4b0f)throw new Error(_0x19a611(0x113));_0x2f4b0f[_0x19a611(0x102)]();}['stopFollowing'](){const _0x4d48ea=_0x4196d9;var _0x5e246d;const _0x1ad9a1=this['_injector'][_0x4d48ea(0x101)](_0x518b79[_0x4d48ea(0x108)]),_0x277dc7=(_0x5e246d=this[_0x4d48ea(0xf1)]())==null?void 0x0:_0x5e246d[_0x4d48ea(0xf7)]();if(!_0x277dc7)throw new Error(_0x4d48ea(0xf3));const _0x295d0f=_0x1ad9a1['getLiveShareCoordinatorSync'](_0x277dc7);if(!_0x295d0f)throw new Error(_0x4d48ea(0x113));_0x295d0f['stopFollowing']();}[_0x4196d9(0xfa)](){const _0x3e8a3c=_0x4196d9;var _0x307bf4;const _0x245c7f=this[_0x3e8a3c(0xff)][_0x3e8a3c(0x101)](_0x518b79['LiveShareController']),_0x47bd3e=(_0x307bf4=this[_0x3e8a3c(0xf1)]())==null?void 0x0:_0x307bf4['getId']();if(!_0x47bd3e)throw new Error(_0x3e8a3c(0xf3));const _0x3b326a=_0x245c7f[_0x3e8a3c(0x11f)](_0x47bd3e);if(!_0x3b326a)throw new Error(_0x3e8a3c(0x113));_0x3b326a['tryStartPresenting']();}['stopPresenting'](){const _0x11ee8f=_0x4196d9;var _0xb3ed51;const _0x5188b4=this['_injector']['get'](_0x518b79['LiveShareController']),_0x555490=(_0xb3ed51=this['getActiveWorkbook']())==null?void 0x0:_0xb3ed51['getId']();if(!_0x555490)throw new Error('No\x20active\x20workbook\x20found.');const _0x5ee789=_0x5188b4[_0x11ee8f(0x11f)](_0x555490);if(!_0x5ee789)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5ee789[_0x11ee8f(0xf5)]();}}_0x1f3491[_0x4196d9(0x116)][_0x4196d9(0x107)](_0x11cfd7);class _0x12dccb extends _0x1f3491[_0x4196d9(0x118)]{get['LiveShareStatusEnum'](){const _0x4fbbe4=_0x4196d9;return _0x518b79[_0x4fbbe4(0x121)];}}_0x1f3491[_0x4196d9(0x118)][_0x4196d9(0x107)](_0x12dccb);}));function _0x3fbc(_0x1a6881,_0x3d7a71){_0x1a6881=_0x1a6881-0xef;const _0x1398ab=_0x1398();let _0x3fbc7f=_0x1398ab[_0x1a6881];return _0x3fbc7f;}function _0x1398(){const _0x2f2bde=['No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','@univerjs/engine-render','@univerjs/core/facade','FUniver','startColumn','FEnum','311820REIhsS','object','3ifjUpL','1507TcmlKe','amd','SetWorksheetActiveOperation','getLiveShareCoordinatorSync','getSheetId','LiveShareStatus','5752OsUxEA','IDLE','getActiveWorkbook','getLiveShareStatus','No\x20active\x20workbook\x20found.','UniverEngineRender','stopPresenting','UniverSheetsFacade','getId','getUnitId','6CMBiwd','startPresenting','UniverSheetsUi','function','95964AOMmSR','getStatus','_injector','4hRyYAT','get','startFollowing','405421vAsIPY','syncExecuteCommand','@univerjs-pro/live-share','1303482sVNqpE','extend','LiveShareController','1853905KbXlVA','UniverSheets','PRESENTING','_initialize','startRow','executeCommand','654185Yojprh','1881TDvLOG','getRenderById','@univerjs/sheets'];_0x1398=function(){return _0x2f2bde;};return _0x1398();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x4254(_0x358cd3,_0x5dde13){_0x358cd3=_0x358cd3-0x1a2;const _0x44a1d7=_0x44a1();let _0x425494=_0x44a1d7[_0x358cd3];return _0x425494;}function _0x44a1(){const _0x307f2b=['@univerjs/design','OPERATION','_presenter','toStringTag','tag','_fetchOperations','_injector','getOwnPropertyDescriptor','path','useEffect','_handleTerminate','defIds','univer-mb-3\x20univer-w-full\x20univer-text-sm','evenodd','use','_univerInstanceService','58003xZfGhG','Present\x20this\x20document','UniverInstanceType','fill','SAME_OPERATION_SHARE_INTERVAL','2980269NMVlRG','LIVESHARE_OPERATION','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','map','substring','executeCommand','UniverIcon','_collabSession','6SjHKJM','@univerjs/sheets-ui','IConfigService','button','init','sessionStatus$','subscribe','onRendered','data','UNIVER_UNKNOWN','_handleNewHost','IUniverInstanceService','useObservable','UniverSheets','send','You\x27are\x20offline.','_handleOffline','FOLLOWING','jsxs','Fragment','_beIdle','LiveShareService','You\x27re\x20presenting\x20the\x20document','find','getUnitId','LiveShareCoordinator','RxDisposable','SessionStatus','defs','replace','override','stopPresenting','displayName','object','next','CollaborationEvent','InsertSheetMutation','following','operations','startFollowing','Button','22337yStnnN','stopFollowing','current','useRef','attrs','UniverUi','tryStartPresenting','pipe','_mountLiveShare','_config','registerDependencies','toDisposable','getLiveShareCoordinator','_handleNewChangeSets','live-share.config','OFFLINE','memberID','clear','reverse','complete','clsx','@univerjs-pro/collaboration','has','_init','http://www.w3.org/2000/svg','idle','Module','React','mask','not-following','Disposable','_status$','UniverDesign','forEach','onStarting','LIVESHARE_FETCH_OPERATIONS','pluginName','params','touchDependencies','_configService','offline','dispose','idSuffix','LiveShareController','xlink:href','get','Start','UniverLiveSharePlugin','registerSharedOperation','_sharedOperations','1496wbtWdR','useState','values','@univerjs/ui','trim','length','unitId','setConfig','SetWorksheetActiveOperation','@univerjs/sheets','react','1651520zdeWmR','presenter','DesktopLiveShareController','_handleOperation','_commandService','NEW_CHANGESETS','Inject','event$','rxjs','You\x27re\x20not\x20following\x20the\x20presenter','univer-size-4','HEADER_MENU','95uozeQX','UNIVER_LIVE_SHARE_PLUGIN','Stop\x20following','DependentOn','delete','NOT_FOLLOWING','useDependency','presenting','LiveShareIcon','entries','shouldShareOperation','_stopFollowing','_stopPresenting','getMemberID','2uUCNCb','Plugin','_commandDisposable','string','amd','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','includes','connectInjector','throttleTime','symbol','@univerjs-pro/collaboration-client','LiveShareStatus','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','children','toString','SetScrollOperation','UniverProCollaboration','204cwNnbE','_status','asObservable','parse','takeUntil','_entities','IDLE','getLiveShareCoordinatorSync','LIVESHARE_TERMINATE','getCurrentTypeOfUnit$','_liveShareService','ICommandService','UniverCollaborationClientPlugin','operators','_reporters','merge','CollaborationSessionService','stringify','PRESENTING','status$','UNIVER_SHEET','_startFollowing','dispose$','jsx','_uiPartsService','1em','LIVESHARE_NEW_HOST','add','exports','colorChannel1','end','_handleOnline','set','getTypeOfUnitDisposed$','defineProperty','_startPresenting','UniverSheetsUi','getValue','LiveShare','377188ndyAJb','529118mpFrCJ','@univerjs/core','Injector','currentColor','208752mdYccc','rxjs/operators','type','disposeWithMe','default','url(#$1','react/jsx-runtime','_collabSessionService','from','ONLINE','createElement','Stop\x20presenting','registerComponent','_unitID','UniverCore','div','svg','_startLiveShareCoordinator'];_0x44a1=function(){return _0x307f2b;};return _0x44a1();}(function(_0x362ebf,_0xaf3a3f){const _0x499057=_0x4254,_0x4780f2=_0x362ebf();while(!![]){try{const _0x4855e6=-parseInt(_0x499057(0x255))/0x1*(-parseInt(_0x499057(0x21c))/0x2)+parseInt(_0x499057(0x288))/0x3*(parseInt(_0x499057(0x254))/0x4)+-parseInt(_0x499057(0x20e))/0x5*(parseInt(_0x499057(0x259))/0x6)+-parseInt(_0x499057(0x1c5))/0x7*(-parseInt(_0x499057(0x1f7))/0x8)+-parseInt(_0x499057(0x280))/0x9+parseInt(_0x499057(0x202))/0xa+parseInt(_0x499057(0x27b))/0xb*(-parseInt(_0x499057(0x22d))/0xc);if(_0x4855e6===_0xaf3a3f)break;else _0x4780f2['push'](_0x4780f2['shift']());}catch(_0x6123e4){_0x4780f2['push'](_0x4780f2['shift']());}}}(_0x44a1,0x611b7),function(_0x549dc5,_0x308692){const _0x2a8cdb=_0x4254;typeof exports==_0x2a8cdb(0x1bd)&&typeof module<'u'?_0x308692(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x2a8cdb(0x220)]?define([_0x2a8cdb(0x249),_0x2a8cdb(0x256),_0x2a8cdb(0x1fa),_0x2a8cdb(0x25f),_0x2a8cdb(0x26b),_0x2a8cdb(0x201),_0x2a8cdb(0x1da),_0x2a8cdb(0x226),_0x2a8cdb(0x200),'rxjs',_0x2a8cdb(0x25a),_0x2a8cdb(0x289)],_0x308692):(_0x549dc5=typeof globalThis<'u'?globalThis:_0x549dc5||self,_0x308692(_0x549dc5['UniverProLiveShare']={},_0x549dc5[_0x2a8cdb(0x267)],_0x549dc5[_0x2a8cdb(0x1ca)],_0x549dc5[_0x2a8cdb(0x1e0)],_0x549dc5[_0x2a8cdb(0x1e5)],_0x549dc5['React'],_0x549dc5[_0x2a8cdb(0x22c)],_0x549dc5['UniverProCollaborationClient'],_0x549dc5[_0x2a8cdb(0x1a9)],_0x549dc5[_0x2a8cdb(0x20a)],_0x549dc5['rxjs'][_0x2a8cdb(0x23a)],_0x549dc5[_0x2a8cdb(0x251)]));}(this,function(_0xd8e6ab,_0x18a95a,_0x45db12,_0x32404e,_0x507dbe,_0x6f3e18,_0x43dba0,_0x1ae231,_0x924280,_0x36c49a,_0x43edb4,_0x206882){'use strict';const _0x40e147=_0x4254;var _0x4920da=Object[_0x40e147(0x24f)],_0x55cb22=(_0xae40b3,_0x586a90,_0x58240d)=>_0x586a90 in _0xae40b3?_0x4920da(_0xae40b3,_0x586a90,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58240d}):_0xae40b3[_0x586a90]=_0x58240d,_0x186f03=(_0x41f9f3,_0x28ebc3,_0x363778)=>_0x55cb22(_0x41f9f3,typeof _0x28ebc3!=_0x40e147(0x225)?_0x28ebc3+'':_0x28ebc3,_0x363778);function _0x4b8c6e({ref:_0x4d87ce,..._0x2df380}){const _0xaa7b38=_0x40e147,{icon:_0x4c120e,id:_0x3c623a,className:_0x384c31,extend:_0x2d68a0,..._0xc43c66}=_0x2df380,_0x422fa4=('univerjs-icon\x20univerjs-icon-'+_0x3c623a+'\x20'+(_0x384c31||''))[_0xaa7b38(0x1fb)](),_0x113a10=_0x6f3e18[_0xaa7b38(0x1c8)]('_'+_0x437eac());return _0x1b4c5e(_0x4c120e,''+_0x3c623a,{'defIds':_0x4c120e[_0xaa7b38(0x276)],'idSuffix':_0x113a10[_0xaa7b38(0x1c7)]},{'ref':_0x4d87ce,'className':_0x422fa4,..._0xc43c66},_0x2d68a0);}function _0x1b4c5e(_0x30c273,_0x458113,_0x5e2f61,_0x335d25,_0x5a8499){const _0x19a4df=_0x40e147;return _0x6f3e18['createElement'](_0x30c273[_0x19a4df(0x26f)],{'key':_0x458113,..._0x383667(_0x30c273,_0x5e2f61,_0x5a8499),..._0x335d25},(_0x1102dd(_0x30c273,_0x5e2f61)['children']||[])[_0x19a4df(0x283)]((_0x46967e,_0x25fb53)=>_0x1b4c5e(_0x46967e,_0x458113+'-'+_0x30c273['tag']+'-'+_0x25fb53,_0x5e2f61,void 0x0,_0x5a8499)));}function _0x383667(_0x9b1fa7,_0x273149,_0x58708a){const _0x20c268=_0x40e147,_0x168785={..._0x9b1fa7[_0x20c268(0x1c9)]};_0x58708a!=null&&_0x58708a[_0x20c268(0x24a)]&&_0x168785[_0x20c268(0x27e)]===_0x20c268(0x24a)&&(_0x168785[_0x20c268(0x27e)]=_0x58708a[_0x20c268(0x24a)]),_0x9b1fa7[_0x20c268(0x26f)]==='mask'&&_0x168785['id']&&(_0x168785['id']=_0x168785['id']+_0x273149[_0x20c268(0x1ef)]),Object[_0x20c268(0x217)](_0x168785)[_0x20c268(0x1e6)](([_0x2a8c46,_0x4fa5b4])=>{const _0x430ab5=_0x20c268;_0x2a8c46===_0x430ab5(0x1e1)&&typeof _0x4fa5b4==_0x430ab5(0x21f)&&(_0x168785[_0x2a8c46]=_0x4fa5b4[_0x430ab5(0x1b9)](/url\(#(.*)\)/,_0x430ab5(0x25e)+_0x273149[_0x430ab5(0x1ef)]+')'));});const {defIds:_0x125d33}=_0x273149;return!_0x125d33||_0x125d33[_0x20c268(0x1fc)]===0x0||(_0x9b1fa7['tag']===_0x20c268(0x279)&&_0x168785[_0x20c268(0x1f1)]&&(_0x168785[_0x20c268(0x1f1)]=_0x168785[_0x20c268(0x1f1)]+_0x273149[_0x20c268(0x1ef)]),Object[_0x20c268(0x217)](_0x168785)[_0x20c268(0x1e6)](([_0x2469bc,_0x35e1cf])=>{const _0x39be40=_0x20c268;typeof _0x35e1cf==_0x39be40(0x21f)&&(_0x168785[_0x2469bc]=_0x35e1cf[_0x39be40(0x1b9)](/url\(#(.*)\)/,_0x39be40(0x25e)+_0x273149[_0x39be40(0x1ef)]+')'));})),_0x168785;}function _0x1102dd(_0x489530,_0x20a6da){const _0x84fb8=_0x40e147;var _0x5bb615;const {defIds:_0x531cdc}=_0x20a6da;return!_0x531cdc||_0x531cdc[_0x84fb8(0x1fc)]===0x0?_0x489530:_0x489530['tag']===_0x84fb8(0x1b8)&&((_0x5bb615=_0x489530[_0x84fb8(0x229)])!=null&&_0x5bb615[_0x84fb8(0x1fc)])?{..._0x489530,'children':_0x489530[_0x84fb8(0x229)][_0x84fb8(0x283)](_0x26af6a=>typeof _0x26af6a[_0x84fb8(0x1c9)]['id']==_0x84fb8(0x21f)&&_0x531cdc&&_0x531cdc[_0x84fb8(0x222)](_0x26af6a[_0x84fb8(0x1c9)]['id'])?{..._0x26af6a,'attrs':{..._0x26af6a['attrs'],'id':_0x26af6a[_0x84fb8(0x1c9)]['id']+_0x20a6da['idSuffix']}}:_0x26af6a)}:_0x489530;}function _0x437eac(){const _0x5831b6=_0x40e147;return Math['random']()[_0x5831b6(0x22a)](0x24)[_0x5831b6(0x284)](0x2,0x8);}_0x4b8c6e[_0x40e147(0x1bc)]=_0x40e147(0x286);const _0x2f7327={'tag':_0x40e147(0x269),'attrs':{'xmlns':_0x40e147(0x1dd),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x40e147(0x246),'height':'1em'},'children':[{'tag':_0x40e147(0x273),'attrs':{'fill':_0x40e147(0x258),'d':_0x40e147(0x228)}},{'tag':_0x40e147(0x273),'attrs':{'fill':_0x40e147(0x258),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0x40e147(0x278)}}]},_0x169732=_0x6f3e18['forwardRef'](function(_0xcb2712,_0x55ff66){const _0x9c7fcc=_0x40e147;return _0x6f3e18[_0x9c7fcc(0x263)](_0x4b8c6e,Object['assign']({},_0xcb2712,{'id':'live-share-icon','ref':_0x55ff66,'icon':_0x2f7327}));});_0x169732[_0x40e147(0x1bc)]=_0x40e147(0x216);class _0x24715f extends _0x18a95a[_0x40e147(0x1e3)]{constructor(){const _0x29b5b5=_0x40e147;super(...arguments),_0x186f03(this,_0x29b5b5(0x1f6),new Set()),_0x186f03(this,_0x29b5b5(0x23b),new Set());}[_0x40e147(0x1f5)](_0x4e094b){const _0x3f0401=_0x40e147;return this[_0x3f0401(0x1f6)][_0x3f0401(0x248)](_0x4e094b),_0x18a95a[_0x3f0401(0x1d0)](()=>this['_sharedOperations'][_0x3f0401(0x212)](_0x4e094b));}['registerInitialStateReporter'](_0xad9b7d){const _0x583b1d=_0x40e147;return this['_reporters'][_0x583b1d(0x248)](_0xad9b7d),_0x18a95a[_0x583b1d(0x1d0)](()=>this[_0x583b1d(0x23b)][_0x583b1d(0x212)](_0xad9b7d));}['shouldShareOperation'](_0x432be4){const _0xcc1dbc=_0x40e147;return this[_0xcc1dbc(0x1f6)][_0xcc1dbc(0x1db)](_0x432be4);}['getInitialStates'](_0xbe5bb7){const _0x4651eb=_0x40e147;return Array[_0x4651eb(0x261)](this[_0x4651eb(0x23b)])[_0x4651eb(0x283)](_0x48f30a=>_0x48f30a(_0xbe5bb7));}}var _0x352d4d=Object[_0x40e147(0x272)],_0x38f53e=(_0x3f4e60,_0x48d372,_0x12ec93,_0x1b0c8d)=>{const _0x327d9f=_0x40e147;for(var _0x3e918d=_0x1b0c8d>0x1?void 0x0:_0x1b0c8d?_0x352d4d(_0x48d372,_0x12ec93):_0x48d372,_0x177a9a=_0x3f4e60[_0x327d9f(0x1fc)]-0x1,_0x1515db;_0x177a9a>=0x0;_0x177a9a--)(_0x1515db=_0x3f4e60[_0x177a9a])&&(_0x3e918d=_0x1515db(_0x3e918d)||_0x3e918d);return _0x3e918d;},_0x2d1d1f=(_0x172bbb,_0x36e7ee)=>(_0x5c86d7,_0x536cce)=>_0x36e7ee(_0x5c86d7,_0x536cce,_0x172bbb);_0xd8e6ab[_0x40e147(0x1f0)]=class extends _0x18a95a[_0x40e147(0x1b6)]{constructor(_0x1173ea,_0x54bb89,_0x53af79){const _0x13d42b=_0x40e147;super(),_0x186f03(this,_0x13d42b(0x232),new Map()),(this[_0x13d42b(0x27a)]=_0x1173ea,this[_0x13d42b(0x271)]=_0x54bb89,this[_0x13d42b(0x260)]=_0x53af79,this[_0x13d42b(0x1dc)]());}async[_0x40e147(0x1d1)](_0x4172ec){const _0x3b25db=_0x40e147;return this[_0x3b25db(0x232)][_0x3b25db(0x1db)](_0x4172ec)||await this[_0x3b25db(0x26a)](_0x4172ec),this[_0x3b25db(0x232)][_0x3b25db(0x1f2)](_0x4172ec);}[_0x40e147(0x234)](_0x239a90){var _0x43f00a;return(_0x43f00a=this['_entities']['get'](_0x239a90))!=null?_0x43f00a:null;}['_init'](){const _0x4ecfe5=_0x40e147;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x18a95a[_0x4ecfe5(0x27d)][_0x4ecfe5(0x241)])[_0x4ecfe5(0x1cc)](_0x43edb4['takeUntil'](this[_0x4ecfe5(0x243)]))[_0x4ecfe5(0x1a2)](async _0x501e1d=>{const _0x3330fc=_0x4ecfe5,_0x56dc63=_0x501e1d[_0x3330fc(0x1b4)]();this[_0x3330fc(0x232)][_0x3330fc(0x1db)](_0x56dc63)||this['_startLiveShareCoordinator'](_0x56dc63);}),this[_0x4ecfe5(0x27a)][_0x4ecfe5(0x24e)](_0x18a95a[_0x4ecfe5(0x27d)]['UNIVER_SHEET'])[_0x4ecfe5(0x1cc)](_0x43edb4['takeUntil'](this[_0x4ecfe5(0x243)]))[_0x4ecfe5(0x1a2)](_0x5545fa=>{const _0x393167=_0x4ecfe5,_0x1dbd5e=_0x5545fa[_0x393167(0x1b4)](),_0x1d9a3e=this[_0x393167(0x232)]['get'](_0x1dbd5e);_0x1d9a3e==null||_0x1d9a3e['dispose']();});}async['_startLiveShareCoordinator'](_0x5b1b8b){const _0x4de7b5=_0x40e147,_0x360bfd=await this[_0x4de7b5(0x260)]['requireSession'](_0x5b1b8b),_0x3449ad=this['_injector']['createInstance'](_0xd8e6ab[_0x4de7b5(0x1b5)],_0x5b1b8b,_0x360bfd);return _0x3449ad[_0x4de7b5(0x28c)](),this[_0x4de7b5(0x232)][_0x4de7b5(0x24d)](_0x5b1b8b,_0x3449ad),_0x3449ad;}},_0xd8e6ab[_0x40e147(0x1f0)]=_0x38f53e([_0x2d1d1f(0x0,_0x18a95a[_0x40e147(0x1a7)]),_0x2d1d1f(0x1,_0x18a95a[_0x40e147(0x208)](_0x18a95a[_0x40e147(0x257)])),_0x2d1d1f(0x2,_0x18a95a['Inject'](_0x1ae231[_0x40e147(0x23d)]))],_0xd8e6ab[_0x40e147(0x1f0)]);var _0x4b4d4a=(_0x33b539=>(_0x33b539[_0x40e147(0x1d4)]=_0x40e147(0x1ed),_0x33b539[_0x40e147(0x233)]=_0x40e147(0x1de),_0x33b539['FOLLOWING']=_0x40e147(0x1c1),_0x33b539['NOT_FOLLOWING']=_0x40e147(0x1e2),_0x33b539[_0x40e147(0x23f)]=_0x40e147(0x215),_0x33b539))(_0x4b4d4a||{});const _0x4b4e92=_0x40e147(0x27f),_0x193319=0xc8;_0xd8e6ab[_0x40e147(0x1b5)]=class extends _0x18a95a[_0x40e147(0x1b6)]{constructor(_0xb39e82,_0x346c4d,_0x2ee6fa,_0x21b220,_0x1fb841){const _0x2b2070=_0x40e147;super(),_0x186f03(this,'_status$',new _0x36c49a['BehaviorSubject'](_0x2b2070(0x1de))),_0x186f03(this,_0x2b2070(0x240),this[_0x2b2070(0x1e4)][_0x2b2070(0x22f)]()),_0x186f03(this,_0x2b2070(0x1dc),!0x1),_0x186f03(this,'_commandDisposable',null),_0x186f03(this,_0x2b2070(0x26d),null),(this[_0x2b2070(0x266)]=_0xb39e82,this['_collabSession']=_0x346c4d,this[_0x2b2070(0x1ec)]=_0x2ee6fa,this[_0x2b2070(0x237)]=_0x21b220,this[_0x2b2070(0x206)]=_0x1fb841);}get['_status'](){const _0x51a587=_0x40e147;return this['_status$'][_0x51a587(0x252)]();}['dispose'](){const _0x56c499=_0x40e147;var _0xc067c7;(_0xc067c7=this[_0x56c499(0x21e)])==null||_0xc067c7['dispose'](),this['_status$'][_0x56c499(0x1be)](_0x56c499(0x1de)),this[_0x56c499(0x1e4)]['complete']();}['getStatus'](){return this['_status'];}[_0x40e147(0x28c)](){const _0x328eda=_0x40e147;this['_init']||(this[_0x328eda(0x1dc)]=!0x0,this[_0x328eda(0x287)][_0x328eda(0x28d)][_0x328eda(0x1cc)](_0x43edb4[_0x328eda(0x231)](this['dispose$']))[_0x328eda(0x1a2)](_0x57fe94=>{const _0x2ec67a=_0x328eda;switch(_0x57fe94){case _0x1ae231[_0x2ec67a(0x1b7)][_0x2ec67a(0x1d4)]:this[_0x2ec67a(0x1ac)]();break;case _0x1ae231[_0x2ec67a(0x1b7)][_0x2ec67a(0x262)]:this[_0x2ec67a(0x24c)]();break;}}),this['_collabSession'][_0x328eda(0x209)][_0x328eda(0x1cc)](_0x43edb4[_0x328eda(0x231)](this['dispose$']))[_0x328eda(0x1a2)](_0x154923=>{const _0x2615f9=_0x328eda,{eventID:_0x4f96f0}=_0x154923;switch(_0x4f96f0){case _0x43dba0[_0x2615f9(0x1bf)][_0x2615f9(0x247)]:this[_0x2615f9(0x1a6)](_0x154923);break;case _0x43dba0['CollaborationEvent'][_0x2615f9(0x281)]:this[_0x2615f9(0x205)](_0x154923);break;case _0x43dba0[_0x2615f9(0x1bf)][_0x2615f9(0x235)]:this['_handleTerminate']();break;case _0x43dba0[_0x2615f9(0x1bf)][_0x2615f9(0x207)]:this[_0x2615f9(0x1d2)](_0x154923);break;}}));}[_0x40e147(0x1cb)](){const _0x103e17=_0x40e147;this['_collabSession']['send']({'eventID':_0x43dba0[_0x103e17(0x1bf)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x103e17(0x266)],'userID':this[_0x103e17(0x287)][_0x103e17(0x21b)]()}},this[_0x103e17(0x266)]);}[_0x40e147(0x1bb)](){const _0x3416f3=_0x40e147;this['_status']===_0x3416f3(0x215)&&(this[_0x3416f3(0x1e4)][_0x3416f3(0x1be)](_0x3416f3(0x1de)),this[_0x3416f3(0x287)][_0x3416f3(0x1aa)]({'eventID':_0x43dba0[_0x3416f3(0x1bf)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x3416f3(0x266)]}},this['_unitID']));}[_0x40e147(0x1c3)](){const _0x39ac82=_0x40e147;this[_0x39ac82(0x22e)]===_0x39ac82(0x1e2)&&(this[_0x39ac82(0x1e4)][_0x39ac82(0x1be)](_0x39ac82(0x1c1)),this[_0x39ac82(0x242)]());}[_0x40e147(0x1c6)](){const _0x51115a=_0x40e147;this[_0x51115a(0x22e)]===_0x51115a(0x1c1)&&this[_0x51115a(0x219)]();}[_0x40e147(0x1a6)](_0x1e7471){const _0x18adbd=_0x40e147,{presenter:_0x152dfd}=_0x1e7471[_0x18adbd(0x1a4)],_0xaa0998=this['_collabSession']['getMemberID']();this[_0x18adbd(0x26d)]=_0x152dfd,_0x152dfd===_0xaa0998?(this[_0x18adbd(0x219)](),this[_0x18adbd(0x250)]()):this[_0x18adbd(0x22e)]!==_0x18adbd(0x1e2)&&(this[_0x18adbd(0x21a)](),this['_startFollowing']());}[_0x40e147(0x270)](){const _0x348352=_0x40e147,_0x2e2cea={'eventID':_0x43dba0['CollaborationEvent'][_0x348352(0x1e8)]};this[_0x348352(0x287)]['send'](_0x2e2cea,this[_0x348352(0x266)]);}[_0x40e147(0x275)](){const _0x454abb=_0x40e147;this[_0x454abb(0x26d)]=null,this[_0x454abb(0x22e)]!==_0x454abb(0x215)&&this[_0x454abb(0x1b0)]();}[_0x40e147(0x1d2)](_0x2bd63c){const _0x51c0ec=_0x40e147;if(this[_0x51c0ec(0x22e)]===_0x51c0ec(0x1c1)&&this[_0x51c0ec(0x26d)]===_0x2bd63c[_0x51c0ec(0x1a4)][_0x51c0ec(0x1d5)]){const _0x5bee2c=_0x43dba0['parseProtocolChangeset'](_0x2bd63c[_0x51c0ec(0x1a4)])['mutations'][_0x51c0ec(0x1d7)]()[_0x51c0ec(0x1b3)](_0x1b2740=>_0x1b2740['id']===_0x924280[_0x51c0ec(0x1c0)]['id']);if(_0x5bee2c){const _0x41b740=_0x5bee2c['params'][_0x51c0ec(0x1fd)],_0x3d13a5=_0x5bee2c[_0x51c0ec(0x1ea)]['sheet']['id'];setTimeout(()=>{const _0x5ce9e2=_0x51c0ec;this[_0x5ce9e2(0x206)][_0x5ce9e2(0x285)](_0x924280['SetWorksheetActiveOperation']['id'],{'unitId':_0x41b740,'subUnitId':_0x3d13a5},{'fromCollab':!0x0});});}}}[_0x40e147(0x250)](){const _0x5a4b17=_0x40e147;this[_0x5a4b17(0x1e4)][_0x5a4b17(0x1be)]('presenting');const _0x37a205=new Map(),_0x15e125=this['_commandDisposable']=new _0x18a95a['DisposableCollection']();_0x15e125[_0x5a4b17(0x248)](_0x18a95a[_0x5a4b17(0x1d0)](()=>{const _0x143514=_0x5a4b17;_0x37a205['forEach'](_0x26a4e6=>_0x26a4e6[_0x143514(0x1d8)]()),_0x37a205[_0x143514(0x1d6)]();})),_0x15e125[_0x5a4b17(0x248)](this[_0x5a4b17(0x206)]['onCommandExecuted'](_0x2f7f63=>{const _0x5c47cd=_0x5a4b17;var _0x1e8f99;if(_0x2f7f63[_0x5c47cd(0x25b)]!==_0x18a95a['CommandType'][_0x5c47cd(0x26c)]||!this[_0x5c47cd(0x237)][_0x5c47cd(0x218)](_0x2f7f63['id']))return;const {id:_0x148c86}=_0x2f7f63;let _0x208795;_0x37a205['has'](_0x148c86)?_0x208795=_0x37a205[_0x5c47cd(0x1f2)](_0x148c86):(_0x208795=new _0x36c49a['Subject'](),_0x37a205[_0x5c47cd(0x24d)](_0x148c86,_0x208795),_0x208795[_0x5c47cd(0x1cc)](_0x43edb4[_0x5c47cd(0x224)]((_0x1e8f99=this['_configService']['getConfig'](_0x4b4e92))!=null?_0x1e8f99:_0x193319,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x233e7f=>{const _0x1296fc=_0x5c47cd;this[_0x1296fc(0x287)]['send']({'eventID':_0x43dba0[_0x1296fc(0x1bf)][_0x1296fc(0x281)],'data':{'unitID':this['_unitID'],'operations':{[_0x233e7f['id']]:{'id':_0x233e7f['id'],'params':JSON[_0x1296fc(0x23e)](_0x233e7f[_0x1296fc(0x1ea)])}}}},this[_0x1296fc(0x266)]);})),_0x208795[_0x5c47cd(0x1be)](_0x2f7f63);})),this[_0x5a4b17(0x237)]['getInitialStates'](this[_0x5a4b17(0x266)])[_0x5a4b17(0x1e6)](_0x5b9c6a=>this[_0x5a4b17(0x287)][_0x5a4b17(0x1aa)]({'eventID':_0x43dba0['CollaborationEvent'][_0x5a4b17(0x281)],'data':{'unitID':this[_0x5a4b17(0x266)],'operations':{[_0x5b9c6a['id']]:{'id':_0x5b9c6a['id'],'params':JSON[_0x5a4b17(0x23e)](_0x5b9c6a[_0x5a4b17(0x1ea)])}}}},this['_unitID']));}[_0x40e147(0x21a)](){const _0x14b7b4=_0x40e147;var _0xe0ef1c;this[_0x14b7b4(0x1e4)]['next'](_0x14b7b4(0x1de)),(_0xe0ef1c=this[_0x14b7b4(0x21e)])==null||_0xe0ef1c[_0x14b7b4(0x1ee)](),this[_0x14b7b4(0x21e)]=null;}[_0x40e147(0x242)](){const _0x3e69ea=_0x40e147;var _0x23f964;(_0x23f964=this['_commandDisposable'])==null||_0x23f964[_0x3e69ea(0x1ee)](),this[_0x3e69ea(0x1e4)][_0x3e69ea(0x1be)](_0x3e69ea(0x1c1));}[_0x40e147(0x1b0)](){const _0x49fdcd=_0x40e147;var _0x4ad768;this['_status$'][_0x49fdcd(0x1be)](_0x49fdcd(0x1de)),(_0x4ad768=this['_commandDisposable'])==null||_0x4ad768[_0x49fdcd(0x1ee)](),this[_0x49fdcd(0x21e)]=null;}[_0x40e147(0x219)](){const _0x28fadd=_0x40e147;var _0x5f373f;this[_0x28fadd(0x1e4)][_0x28fadd(0x1be)](_0x28fadd(0x1e2)),(_0x5f373f=this[_0x28fadd(0x21e)])==null||_0x5f373f[_0x28fadd(0x1ee)]();}[_0x40e147(0x205)](_0x17dc37){const _0x413fc2=_0x40e147;if(['presenting',_0x413fc2(0x1e2),_0x413fc2(0x1ed)][_0x413fc2(0x222)](this[_0x413fc2(0x22e)])||!_0x17dc37['data'][_0x413fc2(0x203)]||_0x17dc37['data'][_0x413fc2(0x203)]===this[_0x413fc2(0x287)][_0x413fc2(0x21b)]())return;this[_0x413fc2(0x22e)]===_0x413fc2(0x1de)&&this[_0x413fc2(0x242)]();const _0x2023cd=_0x17dc37[_0x413fc2(0x1a4)][_0x413fc2(0x1c2)];Object[_0x413fc2(0x1f9)](_0x2023cd)['forEach'](_0x292530=>{const _0x5eed32=_0x413fc2;this['_commandService'][_0x5eed32(0x285)](_0x292530['id'],_0x292530['params']?JSON[_0x5eed32(0x230)](_0x292530[_0x5eed32(0x1ea)]):null,{'fromCollab':!0x0});});}[_0x40e147(0x1ac)](){const _0x3782ca=_0x40e147;var _0xe8e3b7;this[_0x3782ca(0x1e4)][_0x3782ca(0x1be)]('offline'),(_0xe8e3b7=this[_0x3782ca(0x21e)])==null||_0xe8e3b7[_0x3782ca(0x1ee)]();}[_0x40e147(0x24c)](){const _0x1fbaff=_0x40e147;this[_0x1fbaff(0x1e4)][_0x1fbaff(0x1be)](_0x1fbaff(0x1de)),this[_0x1fbaff(0x270)]();}},_0xd8e6ab[_0x40e147(0x1b5)]=_0x38f53e([_0x2d1d1f(0x2,_0x18a95a[_0x40e147(0x28a)]),_0x2d1d1f(0x3,_0x18a95a[_0x40e147(0x208)](_0x24715f)),_0x2d1d1f(0x4,_0x18a95a[_0x40e147(0x238)])],_0xd8e6ab[_0x40e147(0x1b5)]);function _0xa04d20(){const _0x30c57c=_0x40e147,_0x4a2493=_0x45db12[_0x30c57c(0x214)](_0xd8e6ab[_0x30c57c(0x1f0)]),_0x2fee7f=_0x45db12[_0x30c57c(0x214)](_0x18a95a[_0x30c57c(0x1a7)]),_0x1d52fe=_0x45db12[_0x30c57c(0x1a8)](()=>_0x2fee7f[_0x30c57c(0x236)](_0x18a95a[_0x30c57c(0x27d)][_0x30c57c(0x241)]),void 0x0,!0x1,[]),[_0x443a2b,_0x12f27b]=_0x6f3e18[_0x30c57c(0x1f8)](null),[_0x51b624,_0x3107fb]=_0x6f3e18[_0x30c57c(0x1f8)](_0x4b4d4a[_0x30c57c(0x233)]),_0x1bca26=_0x6f3e18['useRef'](null);return _0x6f3e18[_0x30c57c(0x274)](()=>(_0x1d52fe&&_0x4a2493[_0x30c57c(0x1d1)](_0x1d52fe[_0x30c57c(0x1b4)]())['then'](_0x51befb=>{const _0x1ef7d3=_0x30c57c;_0x12f27b(_0x51befb),_0x1bca26[_0x1ef7d3(0x1c7)]=_0x51befb[_0x1ef7d3(0x240)]['subscribe'](_0x13d228=>{_0x3107fb(_0x13d228);});}),()=>{const _0x344e60=_0x30c57c;var _0x415dde;(_0x415dde=_0x1bca26[_0x344e60(0x1c7)])==null||_0x415dde['unsubscribe'](),_0x1bca26[_0x344e60(0x1c7)]=null;}),[_0x1d52fe,_0x4a2493]),_0x443a2b?_0x32404e[_0x30c57c(0x244)](_0x507dbe['Dropdown'],{'align':_0x30c57c(0x24b),'disabled':_0x51b624===_0x4b4d4a[_0x30c57c(0x1d4)],'className':_0x30c57c(0x221),'overlay':_0x32404e[_0x30c57c(0x244)](_0x524597,{'status':_0x51b624,'coordinator':_0x443a2b}),'children':_0x32404e[_0x30c57c(0x244)]('button',{'className':_0x507dbe[_0x30c57c(0x1d9)](_0x30c57c(0x282),{'univer-cursor-not-allowed':_0x51b624===_0x4b4d4a[_0x30c57c(0x1d4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x51b624!==_0x4b4d4a[_0x30c57c(0x1d4)]}),'type':_0x30c57c(0x28b),'children':_0x32404e['jsx'](_0x169732,{'className':_0x30c57c(0x20c)})})}):null;}function _0x524597(_0x574011){const _0x1eb0cc=_0x40e147,{status:_0x334ad5,coordinator:_0x1706b0}=_0x574011;switch(_0x334ad5){case _0x4b4d4a[_0x1eb0cc(0x233)]:return _0x32404e[_0x1eb0cc(0x244)](_0x31a0a7,{'coordinator':_0x1706b0});case _0x4b4d4a[_0x1eb0cc(0x1ad)]:return _0x32404e[_0x1eb0cc(0x244)](_0x43a602,{'coordinator':_0x1706b0});case _0x4b4d4a[_0x1eb0cc(0x213)]:return _0x32404e[_0x1eb0cc(0x244)](_0x30c3af,{'coordinator':_0x1706b0});case _0x4b4d4a['OFFLINE']:return _0x32404e['jsx'](_0x4e2cc8,{});case _0x4b4d4a[_0x1eb0cc(0x23f)]:return _0x32404e['jsx'](_0x317608,{'coordinator':_0x1706b0});default:return null;}}function _0x31a0a7(_0x2c3998){const _0x1eb483=_0x40e147,{coordinator:_0x399535}=_0x2c3998;return _0x32404e[_0x1eb483(0x1ae)](_0x32404e[_0x1eb483(0x1af)],{'children':[_0x32404e[_0x1eb483(0x244)](_0x1eb483(0x268),{'className':_0x1eb483(0x277),'children':_0x1eb483(0x27c)}),_0x32404e[_0x1eb483(0x244)](_0x507dbe[_0x1eb483(0x1c4)],{'onClick':()=>_0x399535[_0x1eb483(0x1cb)](),'children':_0x1eb483(0x1f3)})]});}function _0x43a602(_0x4ef149){const _0x4ed01c=_0x40e147,{coordinator:_0x29207e}=_0x4ef149;return _0x32404e[_0x4ed01c(0x1ae)](_0x32404e[_0x4ed01c(0x1af)],{'children':[_0x32404e[_0x4ed01c(0x244)](_0x4ed01c(0x268),{'className':_0x4ed01c(0x277),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x32404e[_0x4ed01c(0x244)](_0x507dbe[_0x4ed01c(0x1c4)],{'onClick':()=>_0x29207e[_0x4ed01c(0x1c6)](),'children':_0x4ed01c(0x210)})]});}function _0x30c3af(_0x2ee7fb){const _0x482320=_0x40e147,{coordinator:_0x380cef}=_0x2ee7fb;return _0x32404e[_0x482320(0x1ae)](_0x32404e[_0x482320(0x1af)],{'children':[_0x32404e[_0x482320(0x244)]('div',{'className':_0x482320(0x277),'children':_0x482320(0x20b)}),_0x32404e[_0x482320(0x244)](_0x507dbe[_0x482320(0x1c4)],{'variant':'text','onClick':()=>_0x380cef[_0x482320(0x1c3)](),'children':'Start\x20following'})]});}function _0x317608(_0xd6eb9e){const _0x1170e4=_0x40e147,{coordinator:_0x17444f}=_0xd6eb9e;return _0x32404e['jsxs'](_0x32404e['Fragment'],{'children':[_0x32404e[_0x1170e4(0x244)](_0x1170e4(0x268),{'className':_0x1170e4(0x277),'children':_0x1170e4(0x1b2)}),_0x32404e[_0x1170e4(0x244)](_0x507dbe[_0x1170e4(0x1c4)],{'variant':_0x1170e4(0x25d),'onClick':()=>_0x17444f[_0x1170e4(0x1bb)](),'children':_0x1170e4(0x264)})]});}function _0x4e2cc8(){const _0x3a6ad1=_0x40e147;return _0x32404e[_0x3a6ad1(0x244)](_0x32404e[_0x3a6ad1(0x1af)],{'children':_0x3a6ad1(0x1ab)});}var _0x362084=Object[_0x40e147(0x272)],_0x1ebec5=(_0x486ea4,_0x4f42ee,_0x11dba3,_0x53a139)=>{for(var _0x1d1541=_0x53a139>0x1?void 0x0:_0x53a139?_0x362084(_0x4f42ee,_0x11dba3):_0x4f42ee,_0x1b93d3=_0x486ea4['length']-0x1,_0x506cc9;_0x1b93d3>=0x0;_0x1b93d3--)(_0x506cc9=_0x486ea4[_0x1b93d3])&&(_0x1d1541=_0x506cc9(_0x1d1541)||_0x1d1541);return _0x1d1541;},_0x59eab2=(_0x5ad2a3,_0xd3b5fb)=>(_0x28b6e6,_0x1bf7bd)=>_0xd3b5fb(_0x28b6e6,_0x1bf7bd,_0x5ad2a3);_0xd8e6ab[_0x40e147(0x204)]=class extends _0x18a95a[_0x40e147(0x1e3)]{constructor(_0xfad1c,_0x483d3c){const _0x2568c5=_0x40e147;super(),this[_0x2568c5(0x271)]=_0xfad1c,this[_0x2568c5(0x245)]=_0x483d3c,this['_mountLiveShare']();}[_0x40e147(0x1cd)](){const _0x33f4ef=_0x40e147;this[_0x33f4ef(0x25c)](this[_0x33f4ef(0x245)][_0x33f4ef(0x265)](_0x45db12['BuiltInUIPart'][_0x33f4ef(0x20d)],()=>_0x45db12[_0x33f4ef(0x223)](_0xa04d20,this['_injector'])));}},_0xd8e6ab[_0x40e147(0x204)]=_0x1ebec5([_0x59eab2(0x0,_0x18a95a[_0x40e147(0x208)](_0x18a95a[_0x40e147(0x257)])),_0x59eab2(0x1,_0x45db12['IUIPartsService'])],_0xd8e6ab[_0x40e147(0x204)]);const _0x54cc77=_0x40e147(0x1d3),_0x456cf0={};var _0x3644e1=Object[_0x40e147(0x272)],_0x532821=(_0x1c24c8,_0x52b868,_0x314747,_0x43c7b9)=>{const _0x4caade=_0x40e147;for(var _0x22bea3=_0x43c7b9>0x1?void 0x0:_0x43c7b9?_0x3644e1(_0x52b868,_0x314747):_0x52b868,_0x37d2c2=_0x1c24c8[_0x4caade(0x1fc)]-0x1,_0x59a37f;_0x37d2c2>=0x0;_0x37d2c2--)(_0x59a37f=_0x1c24c8[_0x37d2c2])&&(_0x22bea3=_0x59a37f(_0x22bea3)||_0x22bea3);return _0x22bea3;},_0x4700a2=(_0x49eb35,_0x201c5a)=>(_0x246d2d,_0x14382d)=>_0x201c5a(_0x246d2d,_0x14382d,_0x49eb35);let _0x5cdd98=class extends _0x18a95a[_0x40e147(0x1e3)]{constructor(_0x27372f){const _0x134b5e=_0x40e147;super(),this[_0x134b5e(0x237)]=_0x27372f,this['_init']();}[_0x40e147(0x1dc)](){const _0x38f2ee=_0x40e147;[_0x206882['SetZoomRatioOperation']['id'],_0x206882[_0x38f2ee(0x22b)]['id'],_0x924280[_0x38f2ee(0x1ff)]['id']][_0x38f2ee(0x1e6)](_0x50977d=>{const _0x6be9f9=_0x38f2ee;this[_0x6be9f9(0x25c)](this['_liveShareService'][_0x6be9f9(0x1f5)](_0x50977d));});}};_0x5cdd98=_0x532821([_0x4700a2(0x0,_0x18a95a[_0x40e147(0x208)](_0x24715f))],_0x5cdd98);var _0x66d82d=Object[_0x40e147(0x24f)],_0x114b96=Object['getOwnPropertyDescriptor'],_0x7e0037=(_0x5dc46e,_0x40cdf2,_0x2f8d0a)=>_0x40cdf2 in _0x5dc46e?_0x66d82d(_0x5dc46e,_0x40cdf2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f8d0a}):_0x5dc46e[_0x40cdf2]=_0x2f8d0a,_0x938cbe=(_0x5cd218,_0x23f2bd,_0xeaa431,_0x19a832)=>{const _0x1274ad=_0x40e147;for(var _0x30ee0a=_0x19a832>0x1?void 0x0:_0x19a832?_0x114b96(_0x23f2bd,_0xeaa431):_0x23f2bd,_0x34388a=_0x5cd218[_0x1274ad(0x1fc)]-0x1,_0x1be9c5;_0x34388a>=0x0;_0x34388a--)(_0x1be9c5=_0x5cd218[_0x34388a])&&(_0x30ee0a=_0x1be9c5(_0x30ee0a)||_0x30ee0a);return _0x30ee0a;},_0x4df22a=(_0x30abc4,_0x52b353)=>(_0x34397e,_0x2dee02)=>_0x52b353(_0x34397e,_0x2dee02,_0x30abc4),_0x93a8e1=(_0x40e188,_0x3f81d2,_0x1360a6)=>_0x7e0037(_0x40e188,typeof _0x3f81d2!='symbol'?_0x3f81d2+'':_0x3f81d2,_0x1360a6);const _0x45d39c=_0x40e147(0x20f);_0xd8e6ab['UniverLiveSharePlugin']=class extends _0x18a95a[_0x40e147(0x21d)]{constructor(_0x3a3352=_0x456cf0,_0x21626d,_0x5f91da){const _0x2c3db0=_0x40e147;super(),this[_0x2c3db0(0x1ce)]=_0x3a3352,this[_0x2c3db0(0x271)]=_0x21626d,this[_0x2c3db0(0x1ec)]=_0x5f91da;const {..._0x512f0a}=_0x18a95a[_0x2c3db0(0x23c)]({},_0x456cf0,this[_0x2c3db0(0x1ce)]);this[_0x2c3db0(0x1ec)][_0x2c3db0(0x1fe)](_0x54cc77,_0x512f0a);}[_0x40e147(0x1e7)](){const _0x2f0d71=_0x40e147;_0x18a95a[_0x2f0d71(0x1cf)](this[_0x2f0d71(0x271)],_0x18a95a['mergeOverrideWithDependencies']([[_0x24715f],[_0xd8e6ab[_0x2f0d71(0x1f0)]],[_0x5cdd98],[_0xd8e6ab['DesktopLiveShareController']]],this['_config'][_0x2f0d71(0x1ba)])),_0x18a95a['touchDependencies'](this[_0x2f0d71(0x271)],[[_0x5cdd98]]);}[_0x40e147(0x1a3)](){const _0x2533f5=_0x40e147;_0x18a95a[_0x2533f5(0x1eb)](this[_0x2533f5(0x271)],[[_0xd8e6ab[_0x2533f5(0x204)]]]);}},_0x93a8e1(_0xd8e6ab[_0x40e147(0x1f4)],_0x40e147(0x25b),_0x18a95a['UniverInstanceType'][_0x40e147(0x1a5)]),_0x93a8e1(_0xd8e6ab['UniverLiveSharePlugin'],_0x40e147(0x1e9),_0x45d39c),_0xd8e6ab['UniverLiveSharePlugin']=_0x938cbe([_0x18a95a[_0x40e147(0x211)](_0x1ae231[_0x40e147(0x239)]),_0x4df22a(0x1,_0x18a95a[_0x40e147(0x208)](_0x18a95a[_0x40e147(0x257)])),_0x4df22a(0x2,_0x18a95a[_0x40e147(0x28a)])],_0xd8e6ab[_0x40e147(0x1f4)]),_0xd8e6ab[_0x40e147(0x253)]=_0xa04d20,_0xd8e6ab[_0x40e147(0x1b1)]=_0x24715f,_0xd8e6ab[_0x40e147(0x227)]=_0x4b4d4a,Object[_0x40e147(0x24f)](_0xd8e6ab,Symbol[_0x40e147(0x26e)],{'value':_0x40e147(0x1df)});}));
|
|
1
|
+
function _0x24c2(_0xff1e91,_0x2dbe21){_0xff1e91=_0xff1e91-0x75;const _0xe5a62b=_0xe5a6();let _0x24c2d7=_0xe5a62b[_0xff1e91];return _0x24c2d7;}(function(_0x1df038,_0x1441f4){const _0x5a2158=_0x24c2,_0x1c4ad7=_0x1df038();while(!![]){try{const _0x38b80b=-parseInt(_0x5a2158(0x87))/0x1*(-parseInt(_0x5a2158(0xa5))/0x2)+parseInt(_0x5a2158(0x141))/0x3*(-parseInt(_0x5a2158(0xbe))/0x4)+-parseInt(_0x5a2158(0x160))/0x5+parseInt(_0x5a2158(0x93))/0x6*(parseInt(_0x5a2158(0x14c))/0x7)+-parseInt(_0x5a2158(0x99))/0x8*(parseInt(_0x5a2158(0x13c))/0x9)+-parseInt(_0x5a2158(0xe3))/0xa+parseInt(_0x5a2158(0xb4))/0xb;if(_0x38b80b===_0x1441f4)break;else _0x1c4ad7['push'](_0x1c4ad7['shift']());}catch(_0xfc58a0){_0x1c4ad7['push'](_0x1c4ad7['shift']());}}}(_0xe5a6,0x30ebf),function(_0x5a0afb,_0x414369){const _0x219e91=_0x24c2;typeof exports==_0x219e91(0xf6)&&typeof module<'u'?_0x414369(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==_0x219e91(0xdc)&&define[_0x219e91(0x111)]?define([_0x219e91(0x118),_0x219e91(0x162),_0x219e91(0xa8),_0x219e91(0x15d),_0x219e91(0x121),_0x219e91(0x116),_0x219e91(0x8d),_0x219e91(0x131),'@univerjs/sheets',_0x219e91(0xc2),_0x219e91(0xeb),_0x219e91(0x140)],_0x414369):(_0x5a0afb=typeof globalThis<'u'?globalThis:_0x5a0afb||self,_0x414369(_0x5a0afb[_0x219e91(0x78)]={},_0x5a0afb[_0x219e91(0x11f)],_0x5a0afb[_0x219e91(0x132)],_0x5a0afb[_0x219e91(0x7a)],_0x5a0afb[_0x219e91(0xf7)],_0x5a0afb['React'],_0x5a0afb[_0x219e91(0xd1)],_0x5a0afb[_0x219e91(0x158)],_0x5a0afb[_0x219e91(0xd8)],_0x5a0afb[_0x219e91(0xc2)],_0x5a0afb[_0x219e91(0xc2)][_0x219e91(0x8a)],_0x5a0afb[_0x219e91(0x137)]));}(this,function(_0x3d5254,_0x1383de,_0x47bd3b,_0x561cf3,_0x47ac77,_0xeb3c95,_0x332357,_0x435296,_0x504be1,_0x1520bf,_0x4263b7,_0x256bc6){'use strict';const _0x10fbf1=_0x24c2;var _0x3c369a=Object[_0x10fbf1(0x85)],_0x17473d=(_0x3d4628,_0x4dbc57,_0x53382c)=>_0x4dbc57 in _0x3d4628?_0x3c369a(_0x3d4628,_0x4dbc57,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53382c}):_0x3d4628[_0x4dbc57]=_0x53382c,_0x6b6d25=(_0x2ca5e3,_0x3db082,_0xe3e363)=>_0x17473d(_0x2ca5e3,typeof _0x3db082!=_0x10fbf1(0x105)?_0x3db082+'':_0x3db082,_0xe3e363);function _0x455f6b({ref:_0x1eef72,..._0x4cae7e}){const _0x765ec2=_0x10fbf1,{icon:_0x2be092,id:_0x3f18c2,className:_0x1f2328,extend:_0x56ecbe,..._0x457111}=_0x4cae7e,_0x26cc07=('univerjs-icon\x20univerjs-icon-'+_0x3f18c2+'\x20'+(_0x1f2328||''))['trim'](),_0x52259b=_0xeb3c95[_0x765ec2(0x11d)]('_'+_0x26db05());return _0x371763(_0x2be092,''+_0x3f18c2,{'defIds':_0x2be092[_0x765ec2(0x81)],'idSuffix':_0x52259b[_0x765ec2(0xe4)]},{'ref':_0x1eef72,'className':_0x26cc07,..._0x457111},_0x56ecbe);}function _0x371763(_0x3529fd,_0x4cbf33,_0x51982b,_0x21e744,_0x12ca7e){const _0x16081d=_0x10fbf1;return _0xeb3c95[_0x16081d(0x9d)](_0x3529fd['tag'],{'key':_0x4cbf33,..._0x20e07d(_0x3529fd,_0x51982b,_0x12ca7e),..._0x21e744},(_0x483ff5(_0x3529fd,_0x51982b)[_0x16081d(0xf5)]||[])['map']((_0x254227,_0x472efa)=>_0x371763(_0x254227,_0x4cbf33+'-'+_0x3529fd[_0x16081d(0x129)]+'-'+_0x472efa,_0x51982b,void 0x0,_0x12ca7e)));}function _0x20e07d(_0x4909bc,_0x48c10e,_0x15592c){const _0x344875=_0x10fbf1,_0x30fdde={..._0x4909bc['attrs']};_0x15592c!=null&&_0x15592c[_0x344875(0x125)]&&_0x30fdde[_0x344875(0x112)]==='colorChannel1'&&(_0x30fdde[_0x344875(0x112)]=_0x15592c[_0x344875(0x125)]),_0x4909bc[_0x344875(0x129)]===_0x344875(0x126)&&_0x30fdde['id']&&(_0x30fdde['id']=_0x30fdde['id']+_0x48c10e[_0x344875(0xf4)]),Object[_0x344875(0x9b)](_0x30fdde)[_0x344875(0x90)](([_0x406fc5,_0xc9f6c6])=>{const _0x55147d=_0x344875;_0x406fc5===_0x55147d(0x126)&&typeof _0xc9f6c6==_0x55147d(0xe1)&&(_0x30fdde[_0x406fc5]=_0xc9f6c6[_0x55147d(0x103)](/url\(#(.*)\)/,_0x55147d(0x152)+_0x48c10e['idSuffix']+')'));});const {defIds:_0x31941c}=_0x48c10e;return!_0x31941c||_0x31941c[_0x344875(0x143)]===0x0||(_0x4909bc['tag']==='use'&&_0x30fdde[_0x344875(0x80)]&&(_0x30fdde[_0x344875(0x80)]=_0x30fdde[_0x344875(0x80)]+_0x48c10e[_0x344875(0xf4)]),Object['entries'](_0x30fdde)[_0x344875(0x90)](([_0x4d2320,_0xcceb91])=>{const _0x5b312d=_0x344875;typeof _0xcceb91==_0x5b312d(0xe1)&&(_0x30fdde[_0x4d2320]=_0xcceb91[_0x5b312d(0x103)](/url\(#(.*)\)/,_0x5b312d(0x152)+_0x48c10e[_0x5b312d(0xf4)]+')'));})),_0x30fdde;}function _0x483ff5(_0x396101,_0x254fe7){const _0x4703e1=_0x10fbf1;var _0x5b4bd8;const {defIds:_0x366c9f}=_0x254fe7;return!_0x366c9f||_0x366c9f[_0x4703e1(0x143)]===0x0?_0x396101:_0x396101['tag']===_0x4703e1(0x130)&&((_0x5b4bd8=_0x396101[_0x4703e1(0xf5)])!=null&&_0x5b4bd8[_0x4703e1(0x143)])?{..._0x396101,'children':_0x396101[_0x4703e1(0xf5)]['map'](_0xc3efcf=>typeof _0xc3efcf[_0x4703e1(0x96)]['id']==_0x4703e1(0xe1)&&_0x366c9f&&_0x366c9f[_0x4703e1(0x146)](_0xc3efcf[_0x4703e1(0x96)]['id'])?{..._0xc3efcf,'attrs':{..._0xc3efcf['attrs'],'id':_0xc3efcf[_0x4703e1(0x96)]['id']+_0x254fe7['idSuffix']}}:_0xc3efcf)}:_0x396101;}function _0x26db05(){const _0xd53aec=_0x10fbf1;return Math[_0xd53aec(0x9a)]()[_0xd53aec(0x14d)](0x24)[_0xd53aec(0x9e)](0x2,0x8);}_0x455f6b[_0x10fbf1(0xd7)]=_0x10fbf1(0x10a);const _0x2a3266={'tag':_0x10fbf1(0x79),'attrs':{'xmlns':_0x10fbf1(0x7f),'fill':_0x10fbf1(0xe9),'viewBox':_0x10fbf1(0xba),'width':'1em','height':_0x10fbf1(0xce)},'children':[{'tag':_0x10fbf1(0x11c),'attrs':{'fill':_0x10fbf1(0xc9),'d':_0x10fbf1(0xc5)}},{'tag':_0x10fbf1(0x11c),'attrs':{'fill':_0x10fbf1(0xc9),'d':_0x10fbf1(0x88),'fillRule':_0x10fbf1(0xbc),'clipRule':_0x10fbf1(0xbc)}}]},_0x2ad1f1=_0xeb3c95[_0x10fbf1(0x100)](function(_0x128338,_0x36543a){const _0x2f34be=_0x10fbf1;return _0xeb3c95[_0x2f34be(0x9d)](_0x455f6b,Object[_0x2f34be(0x13b)]({},_0x128338,{'id':'live-share-icon','ref':_0x36543a,'icon':_0x2a3266}));});_0x2ad1f1[_0x10fbf1(0xd7)]=_0x10fbf1(0xd6);class _0x37da54 extends _0x1383de[_0x10fbf1(0x104)]{constructor(){const _0x32d5d7=_0x10fbf1;super(...arguments),_0x6b6d25(this,_0x32d5d7(0x8b),new Set()),_0x6b6d25(this,'_reporters',new Set());}['registerSharedOperation'](_0x4bac15){const _0xb409bb=_0x10fbf1;return this[_0xb409bb(0x8b)][_0xb409bb(0x163)](_0x4bac15),_0x1383de['toDisposable'](()=>this[_0xb409bb(0x8b)][_0xb409bb(0x7d)](_0x4bac15));}['registerInitialStateReporter'](_0x3e1a81){const _0x3d73e7=_0x10fbf1;return this[_0x3d73e7(0xdd)][_0x3d73e7(0x163)](_0x3e1a81),_0x1383de[_0x3d73e7(0x12c)](()=>this[_0x3d73e7(0xdd)][_0x3d73e7(0x7d)](_0x3e1a81));}[_0x10fbf1(0xfd)](_0x36e9fe){const _0x535a6a=_0x10fbf1;return this[_0x535a6a(0x8b)][_0x535a6a(0xa3)](_0x36e9fe);}[_0x10fbf1(0x156)](_0xeb5b77){const _0x27438c=_0x10fbf1;return Array['from'](this[_0x27438c(0xdd)])[_0x27438c(0xe7)](_0x491077=>_0x491077(_0xeb5b77));}}var _0x47f808=Object['getOwnPropertyDescriptor'],_0xccc100=(_0x5c1b24,_0xff65ac,_0x15593b,_0x43352d)=>{const _0x4a8063=_0x10fbf1;for(var _0x2b88c7=_0x43352d>0x1?void 0x0:_0x43352d?_0x47f808(_0xff65ac,_0x15593b):_0xff65ac,_0x21841f=_0x5c1b24[_0x4a8063(0x143)]-0x1,_0x190616;_0x21841f>=0x0;_0x21841f--)(_0x190616=_0x5c1b24[_0x21841f])&&(_0x2b88c7=_0x190616(_0x2b88c7)||_0x2b88c7);return _0x2b88c7;},_0x338e90=(_0x1acd69,_0x39f337)=>(_0xcfd42b,_0x299478)=>_0x39f337(_0xcfd42b,_0x299478,_0x1acd69);_0x3d5254[_0x10fbf1(0x84)]=class extends _0x1383de[_0x10fbf1(0x13f)]{constructor(_0xe6694f,_0x430605,_0x8df159){const _0x3558f0=_0x10fbf1;super(),_0x6b6d25(this,'_entities',new Map()),(this['_univerInstanceService']=_0xe6694f,this['_injector']=_0x430605,this[_0x3558f0(0xc3)]=_0x8df159,this[_0x3558f0(0x12b)]());}async[_0x10fbf1(0x12d)](_0x15729f){const _0x2171fc=_0x10fbf1;return this[_0x2171fc(0x110)][_0x2171fc(0xa3)](_0x15729f)||await this[_0x2171fc(0x13a)](_0x15729f),this[_0x2171fc(0x110)][_0x2171fc(0x133)](_0x15729f);}['getLiveShareCoordinatorSync'](_0x361963){const _0x206a11=_0x10fbf1;var _0x3f2d1e;return(_0x3f2d1e=this[_0x206a11(0x110)]['get'](_0x361963))!=null?_0x3f2d1e:null;}[_0x10fbf1(0x12b)](){const _0x56849e=_0x10fbf1;this[_0x56849e(0x75)][_0x56849e(0x108)](_0x1383de['UniverInstanceType'][_0x56849e(0xd3)])[_0x56849e(0xb9)](_0x4263b7[_0x56849e(0xb7)](this[_0x56849e(0x15c)]))['subscribe'](async _0x29539d=>{const _0x669f41=_0x56849e,_0xdc2b3c=_0x29539d['getUnitId']();this[_0x669f41(0x110)][_0x669f41(0xa3)](_0xdc2b3c)||this['_startLiveShareCoordinator'](_0xdc2b3c);}),this[_0x56849e(0x75)]['getTypeOfUnitDisposed$'](_0x1383de['UniverInstanceType'][_0x56849e(0xd3)])[_0x56849e(0xb9)](_0x4263b7[_0x56849e(0xb7)](this[_0x56849e(0x15c)]))['subscribe'](_0x4d1ba6=>{const _0x498ec9=_0x56849e,_0x1048d8=_0x4d1ba6[_0x498ec9(0xa2)](),_0x3deede=this[_0x498ec9(0x110)][_0x498ec9(0x133)](_0x1048d8);_0x3deede==null||_0x3deede[_0x498ec9(0xaa)]();});}async[_0x10fbf1(0x13a)](_0x379446){const _0x3aab8f=_0x10fbf1,_0x596ccf=await this[_0x3aab8f(0xc3)][_0x3aab8f(0xbd)](_0x379446),_0x1b4598=this[_0x3aab8f(0xf3)][_0x3aab8f(0xb5)](_0x3d5254[_0x3aab8f(0xfc)],_0x379446,_0x596ccf);return _0x1b4598[_0x3aab8f(0x136)](),this['_entities'][_0x3aab8f(0x10d)](_0x379446,_0x1b4598),_0x1b4598;}},_0x3d5254[_0x10fbf1(0x84)]=_0xccc100([_0x338e90(0x0,_0x1383de['IUniverInstanceService']),_0x338e90(0x1,_0x1383de[_0x10fbf1(0x82)](_0x1383de[_0x10fbf1(0xda)])),_0x338e90(0x2,_0x1383de[_0x10fbf1(0x82)](_0x435296['CollaborationSessionService']))],_0x3d5254[_0x10fbf1(0x84)]);var _0x4e654a=(_0x260ba0=>(_0x260ba0['OFFLINE']=_0x10fbf1(0x101),_0x260ba0['IDLE']=_0x10fbf1(0xa7),_0x260ba0['FOLLOWING']=_0x10fbf1(0x120),_0x260ba0[_0x10fbf1(0x12f)]=_0x10fbf1(0x11b),_0x260ba0['PRESENTING']='presenting',_0x260ba0))(_0x4e654a||{});const _0xfe396a=_0x10fbf1(0x149),_0xc048b4=0xc8;_0x3d5254[_0x10fbf1(0xfc)]=class extends _0x1383de[_0x10fbf1(0x13f)]{constructor(_0x2c29a8,_0xf6461c,_0x27cba0,_0x185de9,_0x13dbd9){const _0x371803=_0x10fbf1;super(),_0x6b6d25(this,_0x371803(0x145),new _0x1520bf[(_0x371803(0x154))](_0x371803(0xa7))),_0x6b6d25(this,'status$',this[_0x371803(0x145)][_0x371803(0xa6)]()),_0x6b6d25(this,_0x371803(0x12b),!0x1),_0x6b6d25(this,_0x371803(0xab),null),_0x6b6d25(this,_0x371803(0x8f),null),(this[_0x371803(0x94)]=_0x2c29a8,this[_0x371803(0x14a)]=_0xf6461c,this['_configService']=_0x27cba0,this[_0x371803(0xe2)]=_0x185de9,this[_0x371803(0xb1)]=_0x13dbd9);}get[_0x10fbf1(0x7b)](){const _0x114d5b=_0x10fbf1;return this[_0x114d5b(0x145)][_0x114d5b(0x83)]();}[_0x10fbf1(0xaa)](){const _0x5ebace=_0x10fbf1;var _0x2331ec;(_0x2331ec=this['_commandDisposable'])==null||_0x2331ec[_0x5ebace(0xaa)](),this[_0x5ebace(0x145)][_0x5ebace(0x128)](_0x5ebace(0xa7)),this[_0x5ebace(0x145)][_0x5ebace(0xd5)]();}[_0x10fbf1(0xea)](){return this['_status'];}[_0x10fbf1(0x136)](){const _0x10ab22=_0x10fbf1;this[_0x10ab22(0x12b)]||(this['_init']=!0x0,this['_collabSession'][_0x10ab22(0xbb)][_0x10ab22(0xb9)](_0x4263b7[_0x10ab22(0xb7)](this[_0x10ab22(0x15c)]))['subscribe'](_0x2bf4a2=>{const _0x5326e1=_0x10ab22;switch(_0x2bf4a2){case _0x435296[_0x5326e1(0x155)][_0x5326e1(0x76)]:this[_0x5326e1(0xc7)]();break;case _0x435296[_0x5326e1(0x155)]['ONLINE']:this[_0x5326e1(0x119)]();break;}}),this[_0x10ab22(0x14a)][_0x10ab22(0x151)]['pipe'](_0x4263b7[_0x10ab22(0xb7)](this[_0x10ab22(0x15c)]))['subscribe'](_0xc57a24=>{const _0x561188=_0x10ab22,{eventID:_0xf31e45}=_0xc57a24;switch(_0xf31e45){case _0x332357[_0x561188(0xd0)][_0x561188(0xa1)]:this['_handleNewHost'](_0xc57a24);break;case _0x332357['CollaborationEvent'][_0x561188(0x122)]:this[_0x561188(0x107)](_0xc57a24);break;case _0x332357['CollaborationEvent'][_0x561188(0x92)]:this[_0x561188(0x9f)]();break;case _0x332357[_0x561188(0xd0)]['NEW_CHANGESETS']:this[_0x561188(0x14f)](_0xc57a24);break;}}));}[_0x10fbf1(0x7c)](){const _0x5a7fbb=_0x10fbf1;this[_0x5a7fbb(0x14a)]['send']({'eventID':_0x332357[_0x5a7fbb(0xd0)][_0x5a7fbb(0x138)],'data':{'unitID':this[_0x5a7fbb(0x94)],'userID':this[_0x5a7fbb(0x14a)][_0x5a7fbb(0x157)]()}},this[_0x5a7fbb(0x94)]);}[_0x10fbf1(0xd2)](){const _0x5a23d7=_0x10fbf1;this['_status']===_0x5a23d7(0x115)&&(this[_0x5a23d7(0x145)][_0x5a23d7(0x128)](_0x5a23d7(0xa7)),this[_0x5a23d7(0x14a)][_0x5a23d7(0xae)]({'eventID':_0x332357[_0x5a23d7(0xd0)][_0x5a23d7(0x92)],'data':{'unitID':this[_0x5a23d7(0x94)]}},this[_0x5a23d7(0x94)]));}['startFollowing'](){const _0x4d27f7=_0x10fbf1;this[_0x4d27f7(0x7b)]===_0x4d27f7(0x11b)&&(this[_0x4d27f7(0x145)][_0x4d27f7(0x128)]('following'),this[_0x4d27f7(0x15f)]());}['stopFollowing'](){const _0x3ac408=_0x10fbf1;this[_0x3ac408(0x7b)]==='following'&&this[_0x3ac408(0x123)]();}[_0x10fbf1(0xbf)](_0x36b0b2){const _0x14d97d=_0x10fbf1,{presenter:_0x3fad88}=_0x36b0b2[_0x14d97d(0x11e)],_0x3b0229=this[_0x14d97d(0x14a)][_0x14d97d(0x157)]();this['_presenter']=_0x3fad88,_0x3fad88===_0x3b0229?(this[_0x14d97d(0x123)](),this['_startPresenting']()):this[_0x14d97d(0x7b)]!=='not-following'&&(this[_0x14d97d(0x12a)](),this[_0x14d97d(0x15f)]());}[_0x10fbf1(0xaf)](){const _0xd3d68d=_0x10fbf1,_0x44a6fc={'eventID':_0x332357[_0xd3d68d(0xd0)][_0xd3d68d(0x91)]};this[_0xd3d68d(0x14a)][_0xd3d68d(0xae)](_0x44a6fc,this[_0xd3d68d(0x94)]);}[_0x10fbf1(0x9f)](){const _0x117e33=_0x10fbf1;this[_0x117e33(0x8f)]=null,this['_status']!==_0x117e33(0x115)&&this[_0x117e33(0xc0)]();}['_handleNewChangeSets'](_0x16f481){const _0x128ce4=_0x10fbf1;if(this[_0x128ce4(0x7b)]===_0x128ce4(0x120)&&this['_presenter']===_0x16f481['data'][_0x128ce4(0xdf)]){const _0x3773f1=_0x332357[_0x128ce4(0x135)](_0x16f481[_0x128ce4(0x11e)])[_0x128ce4(0xfb)][_0x128ce4(0x144)]()[_0x128ce4(0x12e)](_0x1268d7=>_0x1268d7['id']===_0x504be1['InsertSheetMutation']['id']);if(_0x3773f1){const _0x4ee5d7=_0x3773f1[_0x128ce4(0x13e)]['unitId'],_0x1e74cd=_0x3773f1[_0x128ce4(0x13e)]['sheet']['id'];setTimeout(()=>{const _0x2c0a2d=_0x128ce4;this[_0x2c0a2d(0xb1)][_0x2c0a2d(0xe8)](_0x504be1[_0x2c0a2d(0x13d)]['id'],{'unitId':_0x4ee5d7,'subUnitId':_0x1e74cd},{'fromCollab':!0x0});});}}}[_0x10fbf1(0xb8)](){const _0x29341d=_0x10fbf1;this[_0x29341d(0x145)][_0x29341d(0x128)]('presenting');const _0x28a418=new Map(),_0x30142d=this[_0x29341d(0xab)]=new _0x1383de[(_0x29341d(0xa0))]();_0x30142d['add'](_0x1383de['toDisposable'](()=>{const _0x2b05fa=_0x29341d;_0x28a418[_0x2b05fa(0x90)](_0x6a5a5a=>_0x6a5a5a[_0x2b05fa(0xd5)]()),_0x28a418[_0x2b05fa(0xac)]();})),_0x30142d[_0x29341d(0x163)](this[_0x29341d(0xb1)]['onCommandExecuted'](_0x1b05c6=>{const _0x4a3bf8=_0x29341d;var _0x24e682;if(_0x1b05c6[_0x4a3bf8(0xee)]!==_0x1383de[_0x4a3bf8(0x147)]['OPERATION']||!this['_liveShareService'][_0x4a3bf8(0xfd)](_0x1b05c6['id']))return;const {id:_0x1f62c6}=_0x1b05c6;let _0x33ada1;_0x28a418[_0x4a3bf8(0xa3)](_0x1f62c6)?_0x33ada1=_0x28a418['get'](_0x1f62c6):(_0x33ada1=new _0x1520bf[(_0x4a3bf8(0x161))](),_0x28a418[_0x4a3bf8(0x10d)](_0x1f62c6,_0x33ada1),_0x33ada1[_0x4a3bf8(0xb9)](_0x4263b7['throttleTime']((_0x24e682=this[_0x4a3bf8(0xf1)][_0x4a3bf8(0x89)](_0xfe396a))!=null?_0x24e682:_0xc048b4,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x286a8b=>{const _0x5d5314=_0x4a3bf8;this[_0x5d5314(0x14a)][_0x5d5314(0xae)]({'eventID':_0x332357[_0x5d5314(0xd0)][_0x5d5314(0x122)],'data':{'unitID':this['_unitID'],'operations':{[_0x286a8b['id']]:{'id':_0x286a8b['id'],'params':JSON[_0x5d5314(0x106)](_0x286a8b['params'])}}}},this[_0x5d5314(0x94)]);})),_0x33ada1[_0x4a3bf8(0x128)](_0x1b05c6);})),this[_0x29341d(0xe2)]['getInitialStates'](this[_0x29341d(0x94)])[_0x29341d(0x90)](_0x407d6b=>this[_0x29341d(0x14a)][_0x29341d(0xae)]({'eventID':_0x332357[_0x29341d(0xd0)][_0x29341d(0x122)],'data':{'unitID':this[_0x29341d(0x94)],'operations':{[_0x407d6b['id']]:{'id':_0x407d6b['id'],'params':JSON[_0x29341d(0x106)](_0x407d6b[_0x29341d(0x13e)])}}}},this[_0x29341d(0x94)]));}[_0x10fbf1(0x12a)](){const _0x54d788=_0x10fbf1;var _0x5eaa7c;this[_0x54d788(0x145)]['next'](_0x54d788(0xa7)),(_0x5eaa7c=this[_0x54d788(0xab)])==null||_0x5eaa7c[_0x54d788(0xaa)](),this[_0x54d788(0xab)]=null;}[_0x10fbf1(0x15f)](){const _0xb59898=_0x10fbf1;var _0x26edb2;(_0x26edb2=this['_commandDisposable'])==null||_0x26edb2[_0xb59898(0xaa)](),this[_0xb59898(0x145)][_0xb59898(0x128)](_0xb59898(0x120));}[_0x10fbf1(0xc0)](){const _0x1bbf6e=_0x10fbf1;var _0x5d706f;this['_status$']['next'](_0x1bbf6e(0xa7)),(_0x5d706f=this['_commandDisposable'])==null||_0x5d706f[_0x1bbf6e(0xaa)](),this[_0x1bbf6e(0xab)]=null;}[_0x10fbf1(0x123)](){const _0x3ef57b=_0x10fbf1;var _0xbe5bdc;this['_status$']['next'](_0x3ef57b(0x11b)),(_0xbe5bdc=this['_commandDisposable'])==null||_0xbe5bdc[_0x3ef57b(0xaa)]();}['_handleOperation'](_0x556878){const _0x55f743=_0x10fbf1;if([_0x55f743(0x115),'not-following',_0x55f743(0x101)]['includes'](this[_0x55f743(0x7b)])||!_0x556878[_0x55f743(0x11e)][_0x55f743(0xca)]||_0x556878['data'][_0x55f743(0xca)]===this[_0x55f743(0x14a)]['getMemberID']())return;this[_0x55f743(0x7b)]===_0x55f743(0xa7)&&this[_0x55f743(0x15f)]();const _0x56fd5d=_0x556878['data'][_0x55f743(0x15b)];Object[_0x55f743(0x95)](_0x56fd5d)['forEach'](_0x51e1ed=>{const _0x13e501=_0x55f743;this[_0x13e501(0xb1)]['executeCommand'](_0x51e1ed['id'],_0x51e1ed[_0x13e501(0x13e)]?JSON[_0x13e501(0xef)](_0x51e1ed[_0x13e501(0x13e)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x2a73b1=_0x10fbf1;var _0x5970b6;this[_0x2a73b1(0x145)]['next']('offline'),(_0x5970b6=this[_0x2a73b1(0xab)])==null||_0x5970b6[_0x2a73b1(0xaa)]();}[_0x10fbf1(0x119)](){this['_status$']['next']('idle'),this['_fetchOperations']();}},_0x3d5254[_0x10fbf1(0xfc)]=_0xccc100([_0x338e90(0x2,_0x1383de['IConfigService']),_0x338e90(0x3,_0x1383de[_0x10fbf1(0x82)](_0x37da54)),_0x338e90(0x4,_0x1383de['ICommandService'])],_0x3d5254[_0x10fbf1(0xfc)]);function _0x6a3888(){const _0x3971cb=_0x10fbf1,_0x3f34e1=_0x47bd3b[_0x3971cb(0x114)](_0x3d5254[_0x3971cb(0x84)]),_0x11d539=_0x47bd3b[_0x3971cb(0x114)](_0x1383de[_0x3971cb(0x9c)]),_0x5d47ca=_0x47bd3b[_0x3971cb(0xe6)](()=>_0x11d539[_0x3971cb(0x11a)](_0x1383de['UniverInstanceType'][_0x3971cb(0xd3)]),void 0x0,!0x1,[]),[_0x17078b,_0x9f9d75]=_0xeb3c95['useState'](null),[_0x11568e,_0x33a63a]=_0xeb3c95[_0x3971cb(0x109)](_0x4e654a[_0x3971cb(0xcd)]),_0xb35f19=_0xeb3c95[_0x3971cb(0x11d)](null);return _0xeb3c95[_0x3971cb(0xa4)](()=>(_0x5d47ca&&_0x3f34e1[_0x3971cb(0x12d)](_0x5d47ca[_0x3971cb(0xa2)]())[_0x3971cb(0x10b)](_0xe88a01=>{const _0x559fc8=_0x3971cb;_0x9f9d75(_0xe88a01),_0xb35f19[_0x559fc8(0xe4)]=_0xe88a01['status$'][_0x559fc8(0xf8)](_0x53e9a1=>{_0x33a63a(_0x53e9a1);});}),()=>{const _0x370d0c=_0x3971cb;var _0x7bde8e;(_0x7bde8e=_0xb35f19[_0x370d0c(0xe4)])==null||_0x7bde8e[_0x370d0c(0x153)](),_0xb35f19[_0x370d0c(0xe4)]=null;}),[_0x5d47ca,_0x3f34e1]),_0x17078b?_0x561cf3['jsx'](_0x47ac77[_0x3971cb(0xec)],{'align':_0x3971cb(0xc1),'disabled':_0x11568e===_0x4e654a[_0x3971cb(0x76)],'className':_0x3971cb(0x139),'overlay':_0x561cf3['jsx'](_0x1c3ed5,{'status':_0x11568e,'coordinator':_0x17078b}),'children':_0x561cf3[_0x3971cb(0x127)](_0x3971cb(0xdb),{'className':_0x47ac77[_0x3971cb(0xff)](_0x3971cb(0xd9),{'univer-cursor-not-allowed':_0x11568e===_0x4e654a[_0x3971cb(0x76)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x11568e!==_0x4e654a[_0x3971cb(0x76)]}),'type':_0x3971cb(0xdb),'children':_0x561cf3[_0x3971cb(0x127)](_0x2ad1f1,{'className':_0x3971cb(0x124)})})}):null;}function _0x1c3ed5(_0x384fa2){const _0x38db66=_0x10fbf1,{status:_0x571363,coordinator:_0x324110}=_0x384fa2;switch(_0x571363){case _0x4e654a[_0x38db66(0xcd)]:return _0x561cf3[_0x38db66(0x127)](_0x4e09ec,{'coordinator':_0x324110});case _0x4e654a[_0x38db66(0x14e)]:return _0x561cf3['jsx'](_0xd1b2fd,{'coordinator':_0x324110});case _0x4e654a[_0x38db66(0x12f)]:return _0x561cf3[_0x38db66(0x127)](_0x157a33,{'coordinator':_0x324110});case _0x4e654a[_0x38db66(0x76)]:return _0x561cf3[_0x38db66(0x127)](_0x288bdb,{});case _0x4e654a[_0x38db66(0xc8)]:return _0x561cf3[_0x38db66(0x127)](_0x129eee,{'coordinator':_0x324110});default:return null;}}function _0x4e09ec(_0x121565){const _0x66e1b7=_0x10fbf1,{coordinator:_0x4dea3d}=_0x121565;return _0x561cf3[_0x66e1b7(0xf0)](_0x561cf3[_0x66e1b7(0xcc)],{'children':[_0x561cf3[_0x66e1b7(0x127)]('div',{'className':_0x66e1b7(0x15e),'children':_0x66e1b7(0xfe)}),_0x561cf3[_0x66e1b7(0x127)](_0x47ac77[_0x66e1b7(0x159)],{'onClick':()=>_0x4dea3d[_0x66e1b7(0x7c)](),'children':_0x66e1b7(0xed)})]});}function _0xd1b2fd(_0x389539){const _0x28a682=_0x10fbf1,{coordinator:_0x2266da}=_0x389539;return _0x561cf3[_0x28a682(0xf0)](_0x561cf3['Fragment'],{'children':[_0x561cf3[_0x28a682(0x127)](_0x28a682(0x148),{'className':_0x28a682(0x15e),'children':_0x28a682(0x86)}),_0x561cf3[_0x28a682(0x127)](_0x47ac77[_0x28a682(0x159)],{'onClick':()=>_0x2266da[_0x28a682(0x8e)](),'children':_0x28a682(0xe0)})]});}function _0x157a33(_0x10be12){const _0x5b58a1=_0x10fbf1,{coordinator:_0x2260c2}=_0x10be12;return _0x561cf3[_0x5b58a1(0xf0)](_0x561cf3[_0x5b58a1(0xcc)],{'children':[_0x561cf3[_0x5b58a1(0x127)](_0x5b58a1(0x148),{'className':_0x5b58a1(0x15e),'children':_0x5b58a1(0xde)}),_0x561cf3['jsx'](_0x47ac77[_0x5b58a1(0x159)],{'variant':'text','onClick':()=>_0x2260c2[_0x5b58a1(0x102)](),'children':_0x5b58a1(0xf2)})]});}function _0x129eee(_0x43ee50){const _0xe48db6=_0x10fbf1,{coordinator:_0x8812a7}=_0x43ee50;return _0x561cf3['jsxs'](_0x561cf3[_0xe48db6(0xcc)],{'children':[_0x561cf3['jsx']('div',{'className':_0xe48db6(0x15e),'children':_0xe48db6(0xcb)}),_0x561cf3['jsx'](_0x47ac77[_0xe48db6(0x159)],{'variant':_0xe48db6(0x164),'onClick':()=>_0x8812a7[_0xe48db6(0xd2)](),'children':_0xe48db6(0x8c)})]});}function _0x288bdb(){const _0x48d0cb=_0x10fbf1;return _0x561cf3['jsx'](_0x561cf3[_0x48d0cb(0xcc)],{'children':_0x48d0cb(0x134)});}var _0x263357=Object['getOwnPropertyDescriptor'],_0x42b12b=(_0xa0f798,_0x36b549,_0x54b497,_0x137d58)=>{const _0x4e83a0=_0x10fbf1;for(var _0x504a48=_0x137d58>0x1?void 0x0:_0x137d58?_0x263357(_0x36b549,_0x54b497):_0x36b549,_0x47bff6=_0xa0f798[_0x4e83a0(0x143)]-0x1,_0x36c24e;_0x47bff6>=0x0;_0x47bff6--)(_0x36c24e=_0xa0f798[_0x47bff6])&&(_0x504a48=_0x36c24e(_0x504a48)||_0x504a48);return _0x504a48;},_0x4a4cea=(_0xbd7568,_0x2ddc60)=>(_0x3731e0,_0x312d33)=>_0x2ddc60(_0x3731e0,_0x312d33,_0xbd7568);_0x3d5254['DesktopLiveShareController']=class extends _0x1383de[_0x10fbf1(0x104)]{constructor(_0x1fef07,_0x53e8af){const _0x3c3d1f=_0x10fbf1;super(),this[_0x3c3d1f(0xf3)]=_0x1fef07,this[_0x3c3d1f(0xb3)]=_0x53e8af,this[_0x3c3d1f(0xd4)]();}['_mountLiveShare'](){const _0x560b77=_0x10fbf1;this['disposeWithMe'](this[_0x560b77(0xb3)][_0x560b77(0xb2)](_0x47bd3b[_0x560b77(0xb0)]['HEADER_MENU'],()=>_0x47bd3b[_0x560b77(0x117)](_0x6a3888,this[_0x560b77(0xf3)])));}},_0x3d5254[_0x10fbf1(0xad)]=_0x42b12b([_0x4a4cea(0x0,_0x1383de[_0x10fbf1(0x82)](_0x1383de[_0x10fbf1(0xda)])),_0x4a4cea(0x1,_0x47bd3b[_0x10fbf1(0x10f)])],_0x3d5254[_0x10fbf1(0xad)]);const _0xc3ce09=_0x10fbf1(0x10c),_0xaad317={};var _0x4f2e8d=Object[_0x10fbf1(0xc6)],_0x174a59=(_0x5d3281,_0x5c2a6e,_0x592081,_0x1ea5c0)=>{for(var _0x37850d=_0x1ea5c0>0x1?void 0x0:_0x1ea5c0?_0x4f2e8d(_0x5c2a6e,_0x592081):_0x5c2a6e,_0x57cb5b=_0x5d3281['length']-0x1,_0x3371da;_0x57cb5b>=0x0;_0x57cb5b--)(_0x3371da=_0x5d3281[_0x57cb5b])&&(_0x37850d=_0x3371da(_0x37850d)||_0x37850d);return _0x37850d;},_0x27dbee=(_0x475cd4,_0x55cb05)=>(_0x3fc119,_0x507a09)=>_0x55cb05(_0x3fc119,_0x507a09,_0x475cd4);let _0x131f24=class extends _0x1383de[_0x10fbf1(0x104)]{constructor(_0x442e8c){const _0x4cfab9=_0x10fbf1;super(),this[_0x4cfab9(0xe2)]=_0x442e8c,this[_0x4cfab9(0x12b)]();}['_init'](){const _0x4f043a=_0x10fbf1;[_0x256bc6['SetZoomRatioOperation']['id'],_0x256bc6[_0x4f043a(0x77)]['id'],_0x504be1[_0x4f043a(0x13d)]['id']][_0x4f043a(0x90)](_0x5d25ca=>{const _0xdb5534=_0x4f043a;this[_0xdb5534(0xc4)](this[_0xdb5534(0xe2)][_0xdb5534(0xb6)](_0x5d25ca));});}};_0x131f24=_0x174a59([_0x27dbee(0x0,_0x1383de[_0x10fbf1(0x82)](_0x37da54))],_0x131f24);var _0x403cb2=Object[_0x10fbf1(0x85)],_0x557c18=Object['getOwnPropertyDescriptor'],_0x14edd4=(_0x24ee40,_0x1eee8b,_0x23d19d)=>_0x1eee8b in _0x24ee40?_0x403cb2(_0x24ee40,_0x1eee8b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23d19d}):_0x24ee40[_0x1eee8b]=_0x23d19d,_0x14153d=(_0x57334e,_0x12f2a0,_0x23ab9d,_0x2c8a43)=>{for(var _0xb036f5=_0x2c8a43>0x1?void 0x0:_0x2c8a43?_0x557c18(_0x12f2a0,_0x23ab9d):_0x12f2a0,_0x3f716a=_0x57334e['length']-0x1,_0x370d3e;_0x3f716a>=0x0;_0x3f716a--)(_0x370d3e=_0x57334e[_0x3f716a])&&(_0xb036f5=_0x370d3e(_0xb036f5)||_0xb036f5);return _0xb036f5;},_0x422854=(_0x5f5b0f,_0x38983a)=>(_0x105904,_0x5413e5)=>_0x38983a(_0x105904,_0x5413e5,_0x5f5b0f),_0x5d00d3=(_0x30736d,_0xbf716a,_0x47b962)=>_0x14edd4(_0x30736d,typeof _0xbf716a!=_0x10fbf1(0x105)?_0xbf716a+'':_0xbf716a,_0x47b962);const _0xc63d4e=_0x10fbf1(0xf9);_0x3d5254[_0x10fbf1(0x150)]=class extends _0x1383de['Plugin']{constructor(_0x26091b=_0xaad317,_0x2aae26,_0x4ee9a8){const _0x560ab9=_0x10fbf1;super(),this['_config']=_0x26091b,this[_0x560ab9(0xf3)]=_0x2aae26,this[_0x560ab9(0xf1)]=_0x4ee9a8;const {..._0xd75433}=_0x1383de[_0x560ab9(0x113)]({},_0xaad317,this[_0x560ab9(0xe5)]);this[_0x560ab9(0xf1)][_0x560ab9(0xfa)](_0xc3ce09,_0xd75433);}[_0x10fbf1(0x10e)](){const _0x4491=_0x10fbf1;_0x1383de['registerDependencies'](this['_injector'],_0x1383de[_0x4491(0x15a)]([[_0x37da54],[_0x3d5254['LiveShareController']],[_0x131f24],[_0x3d5254['DesktopLiveShareController']]],this[_0x4491(0xe5)]['override'])),_0x1383de[_0x4491(0x98)](this[_0x4491(0xf3)],[[_0x131f24]]);}['onRendered'](){const _0x580f8b=_0x10fbf1;_0x1383de['touchDependencies'](this[_0x580f8b(0xf3)],[[_0x3d5254[_0x580f8b(0xad)]]]);}},_0x5d00d3(_0x3d5254[_0x10fbf1(0x150)],_0x10fbf1(0xee),_0x1383de[_0x10fbf1(0xa9)][_0x10fbf1(0x7e)]),_0x5d00d3(_0x3d5254['UniverLiveSharePlugin'],'pluginName',_0xc63d4e),_0x3d5254['UniverLiveSharePlugin']=_0x14153d([_0x1383de['DependentOn'](_0x435296['UniverCollaborationClientPlugin']),_0x422854(0x1,_0x1383de[_0x10fbf1(0x82)](_0x1383de[_0x10fbf1(0xda)])),_0x422854(0x2,_0x1383de[_0x10fbf1(0x142)])],_0x3d5254[_0x10fbf1(0x150)]),_0x3d5254[_0x10fbf1(0x14b)]=_0x6a3888,_0x3d5254[_0x10fbf1(0x97)]=_0x37da54,_0x3d5254['LiveShareStatus']=_0x4e654a,Object[_0x10fbf1(0x85)](_0x3d5254,Symbol[_0x10fbf1(0xcf)],{'value':'Module'});}));function _0xe5a6(){const _0x2f85ac=['_config','useObservable','map','executeCommand','none','getStatus','rxjs/operators','Dropdown','Start','type','parse','jsxs','_configService','Start\x20following','_injector','idSuffix','children','object','UniverDesign','subscribe','UNIVER_LIVE_SHARE_PLUGIN','setConfig','mutations','LiveShareCoordinator','shouldShareOperation','Present\x20this\x20document','clsx','forwardRef','offline','startFollowing','replace','Disposable','symbol','stringify','_handleOperation','getTypeOfUnitAdded$','useState','UniverIcon','then','live-share.config','set','onStarting','IUIPartsService','_entities','amd','fill','merge','useDependency','presenting','react','connectInjector','exports','_handleOnline','getCurrentTypeOfUnit$','not-following','path','useRef','data','UniverCore','following','@univerjs/design','LIVESHARE_OPERATION','_stopFollowing','univer-size-4','colorChannel1','mask','jsx','next','tag','_stopPresenting','_init','toDisposable','getLiveShareCoordinator','find','NOT_FOLLOWING','defs','@univerjs-pro/collaboration-client','UniverUi','get','You\x27are\x20offline.','parseProtocolChangeset','init','UniverSheetsUi','LIVESHARE_REQUEST_HOST','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','_startLiveShareCoordinator','assign','99BtUDvH','SetWorksheetActiveOperation','params','RxDisposable','@univerjs/sheets-ui','30azyaxO','IConfigService','length','reverse','_status$','includes','CommandType','div','SAME_OPERATION_SHARE_INTERVAL','_collabSession','LiveShare','21OZAsUy','toString','FOLLOWING','_handleNewChangeSets','UniverLiveSharePlugin','event$','url(#$1','unsubscribe','BehaviorSubject','SessionStatus','getInitialStates','getMemberID','UniverProCollaborationClient','Button','mergeOverrideWithDependencies','operations','dispose$','react/jsx-runtime','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startFollowing','657975LYrvpg','Subject','@univerjs/core','add','default','_univerInstanceService','OFFLINE','SetScrollOperation','UniverProLiveShare','svg','React','_status','tryStartPresenting','delete','UNIVER_UNKNOWN','http://www.w3.org/2000/svg','xlink:href','defIds','Inject','getValue','LiveShareController','defineProperty','You\x27re\x20following\x20the\x20presenter','1EmDFFA','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','getConfig','operators','_sharedOperations','Stop\x20presenting','@univerjs-pro/collaboration','stopFollowing','_presenter','forEach','LIVESHARE_FETCH_OPERATIONS','LIVESHARE_TERMINATE','48570ojrGjz','_unitID','values','attrs','LiveShareService','touchDependencies','219160hrOBms','random','entries','IUniverInstanceService','createElement','substring','_handleTerminate','DisposableCollection','LIVESHARE_NEW_HOST','getUnitId','has','useEffect','87730ADQPNX','asObservable','idle','@univerjs/ui','UniverInstanceType','dispose','_commandDisposable','clear','DesktopLiveShareController','send','_fetchOperations','BuiltInUIPart','_commandService','registerComponent','_uiPartsService','9429156SIJoFH','createInstance','registerSharedOperation','takeUntil','_startPresenting','pipe','0\x200\x2017\x2017','sessionStatus$','evenodd','requireSession','72272widTdw','_handleNewHost','_beIdle','end','rxjs','_collabSessionService','disposeWithMe','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','getOwnPropertyDescriptor','_handleOffline','PRESENTING','currentColor','presenter','You\x27re\x20presenting\x20the\x20document','Fragment','IDLE','1em','toStringTag','CollaborationEvent','UniverProCollaboration','stopPresenting','UNIVER_SHEET','_mountLiveShare','complete','LiveShareIcon','displayName','UniverSheets','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Injector','button','function','_reporters','You\x27re\x20not\x20following\x20the\x20presenter','memberID','Stop\x20following','string','_liveShareService','1113430FQIxXc','current'];_0xe5a6=function(){return _0x2f85ac;};return _0xe5a6();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.12.4-experimental.20251210-
|
|
3
|
+
"version": "0.12.4-experimental.20251210-29c379a",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@univerjs/icons": "^1.0.2",
|
|
60
|
-
"@univerjs-pro/collaboration": "0.12.4-experimental.20251210-
|
|
61
|
-
"@univerjs
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs/sheets": "0.12.4-experimental.20251210-
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs/
|
|
60
|
+
"@univerjs-pro/collaboration": "0.12.4-experimental.20251210-29c379a",
|
|
61
|
+
"@univerjs/design": "0.12.4-experimental.20251210-29c379a",
|
|
62
|
+
"@univerjs-pro/collaboration-client": "0.12.4-experimental.20251210-29c379a",
|
|
63
|
+
"@univerjs/sheets-ui": "0.12.4-experimental.20251210-29c379a",
|
|
64
|
+
"@univerjs/core": "0.12.4-experimental.20251210-29c379a",
|
|
65
|
+
"@univerjs/engine-render": "0.12.4-experimental.20251210-29c379a",
|
|
66
|
+
"@univerjs/ui": "0.12.4-experimental.20251210-29c379a",
|
|
67
|
+
"@univerjs/sheets": "0.12.4-experimental.20251210-29c379a"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"typescript": "^5.9.3",
|
|
75
75
|
"vite": "^7.2.6",
|
|
76
76
|
"vitest": "^4.0.15",
|
|
77
|
-
"@univerjs/
|
|
78
|
-
"@univerjs
|
|
77
|
+
"@univerjs-infra/shared": "0.12.4",
|
|
78
|
+
"@univerjs/protocol": "0.1.47"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"test": "vitest run",
|