@univerjs-pro/live-share 0.12.1 → 0.12.2-nightly.202511290732
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 +12 -12
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x5eceda=_0x2fd8;(function(_0x5c9550,_0xa8dae){const _0x423094=_0x2fd8,_0x35d7c4=_0x5c9550();while(!![]){try{const _0x203246=parseInt(_0x423094(0xe2))/0x1*(parseInt(_0x423094(0xca))/0x2)+-parseInt(_0x423094(0xc8))/0x3*(parseInt(_0x423094(0xcd))/0x4)+parseInt(_0x423094(0xe0))/0x5+parseInt(_0x423094(0xd9))/0x6*(-parseInt(_0x423094(0xdd))/0x7)+parseInt(_0x423094(0xc9))/0x8*(-parseInt(_0x423094(0xda))/0x9)+-parseInt(_0x423094(0xe9))/0xa*(parseInt(_0x423094(0xcf))/0xb)+-parseInt(_0x423094(0xc1))/0xc*(-parseInt(_0x423094(0xe8))/0xd);if(_0x203246===_0xa8dae)break;else _0x35d7c4['push'](_0x35d7c4['shift']());}catch(_0x55552e){_0x35d7c4['push'](_0x35d7c4['shift']());}}}(_0x45fb,0x623f9));const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');function _0x45fb(){const _0x73b38e=['getId','FRange','IDLE','6138kqWgKS','446373IzUWuq','SetWorksheetActiveOperation','tryStartPresenting','665fglPMG','extend','No\x20active\x20workbook\x20found.','124225caxnPH','getUnitId','206459UlBsHr','executeCommand','getLiveShareCoordinatorSync','stopPresenting','IRenderManagerService','_injector','13SXxVWY','358180aboOsp','getActiveSheet','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','LiveShareController','15454788NdXvWV','LiveShareStatus','getLiveShareStatus','getActiveWorkbook','getStatus','startFollowing','FEnum','15OSzCFu','8aPBOaV','2XKpRhw','startRow','get','288872Fplfpw','FUniver','187JFSHMc','PRESENTING','getRenderById','stopFollowing','startColumn','getSheetId','startPresenting'];_0x45fb=function(){return _0x73b38e;};return _0x45fb();}function _0x2fd8(_0x37f58c,_0x5c5f97){const _0x45fbcd=_0x45fb();return _0x2fd8=function(_0x2fd8cb,_0x38e6c9){_0x2fd8cb=_0x2fd8cb-0xc1;let _0x383785=_0x45fbcd[_0x2fd8cb];return _0x383785;},_0x2fd8(_0x37f58c,_0x5c5f97);}class w extends d[_0x5eceda(0xd7)]{['_initialize'](_0x2ffa23,_0x44e4f9,_0x5142bb,_0x33f506,_0x572ff6){const _0x2a787f=_0x5eceda,_0x35a2f9=_0x2ffa23[_0x2a787f(0xcc)](n['LiveShareController']),_0x2f0851=_0x2ffa23['get'](g[_0x2a787f(0xe6)]),_0x448272=_0x44e4f9[_0x2a787f(0xe1)](),_0x3617b2=_0x44e4f9[_0x2a787f(0xea)](),_0x1bdd4f=_0x35a2f9[_0x2a787f(0xe4)](_0x448272);(_0x1bdd4f==null?void 0x0:_0x1bdd4f[_0x2a787f(0xc5)]())!==n[_0x2a787f(0xc2)][_0x2a787f(0xd0)]||(_0x5142bb[_0x2a787f(0xd4)]()!==_0x3617b2['getSheetId']()&&this['_commandService'][_0x2a787f(0xe3)](u[_0x2a787f(0xdb)]['id'],{'unitId':_0x448272,'subUnitId':_0x5142bb['getSheetId']()}),!_0x2f0851[_0x2a787f(0xd1)](_0x448272))||_0x572ff6['syncExecuteCommand'](f['SetScrollOperation']['id'],{'unitId':_0x44e4f9[_0x2a787f(0xe1)](),'sheetId':_0x5142bb[_0x2a787f(0xd4)](),'sheetViewStartRow':_0x33f506[_0x2a787f(0xcb)],'sheetViewStartColumn':_0x33f506[_0x2a787f(0xd3)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x5eceda(0xd7)][_0x5eceda(0xde)](w);class C extends a[_0x5eceda(0xce)]{[_0x5eceda(0xc3)](){const _0x231b4e=_0x5eceda;var _0x1dcb7e,_0xfac89c;const _0x10b577=this[_0x231b4e(0xe7)][_0x231b4e(0xcc)](n[_0x231b4e(0xec)]),_0x58562b=(_0x1dcb7e=this[_0x231b4e(0xc4)]())==null?void 0x0:_0x1dcb7e[_0x231b4e(0xd6)]();if(!_0x58562b)throw new Error(_0x231b4e(0xdf));const _0x21bc2d=_0x10b577[_0x231b4e(0xe4)](_0x58562b);return(_0xfac89c=_0x21bc2d==null?void 0x0:_0x21bc2d['getStatus']())!=null?_0xfac89c:n['LiveShareStatus'][_0x231b4e(0xd8)];}[_0x5eceda(0xc6)](){const _0x2abcec=_0x5eceda;var _0x59a951;const _0x4366db=this['_injector']['get'](n['LiveShareController']),_0x27edc0=(_0x59a951=this['getActiveWorkbook']())==null?void 0x0:_0x59a951[_0x2abcec(0xd6)]();if(!_0x27edc0)throw new Error('No\x20active\x20workbook\x20found.');const _0x140d5c=_0x4366db[_0x2abcec(0xe4)](_0x27edc0);if(!_0x140d5c)throw new Error(_0x2abcec(0xeb));_0x140d5c['startFollowing']();}[_0x5eceda(0xd2)](){const _0x29810f=_0x5eceda;var _0x45e697;const _0x2262c0=this[_0x29810f(0xe7)][_0x29810f(0xcc)](n[_0x29810f(0xec)]),_0x568288=(_0x45e697=this[_0x29810f(0xc4)]())==null?void 0x0:_0x45e697[_0x29810f(0xd6)]();if(!_0x568288)throw new Error('No\x20active\x20workbook\x20found.');const _0xba1f46=_0x2262c0[_0x29810f(0xe4)](_0x568288);if(!_0xba1f46)throw new Error(_0x29810f(0xeb));_0xba1f46[_0x29810f(0xd2)]();}[_0x5eceda(0xd5)](){const _0xc7becb=_0x5eceda;var _0x3d560b;const _0x4618cc=this[_0xc7becb(0xe7)][_0xc7becb(0xcc)](n['LiveShareController']),_0x43efd1=(_0x3d560b=this[_0xc7becb(0xc4)]())==null?void 0x0:_0x3d560b[_0xc7becb(0xd6)]();if(!_0x43efd1)throw new Error(_0xc7becb(0xdf));const _0x1bcfd6=_0x4618cc[_0xc7becb(0xe4)](_0x43efd1);if(!_0x1bcfd6)throw new Error(_0xc7becb(0xeb));_0x1bcfd6[_0xc7becb(0xdc)]();}[_0x5eceda(0xe5)](){const _0x3a2d02=_0x5eceda;var _0x95ab70;const _0x4a0e8c=this[_0x3a2d02(0xe7)][_0x3a2d02(0xcc)](n[_0x3a2d02(0xec)]),_0x31f9c5=(_0x95ab70=this[_0x3a2d02(0xc4)]())==null?void 0x0:_0x95ab70[_0x3a2d02(0xd6)]();if(!_0x31f9c5)throw new Error(_0x3a2d02(0xdf));const _0x21d81a=_0x4a0e8c[_0x3a2d02(0xe4)](_0x31f9c5);if(!_0x21d81a)throw new Error(_0x3a2d02(0xeb));_0x21d81a[_0x3a2d02(0xe5)]();}}a['FUniver'][_0x5eceda(0xde)](C);class L extends a[_0x5eceda(0xc7)]{get['LiveShareStatusEnum'](){const _0x2cbf36=_0x5eceda;return n[_0x2cbf36(0xc2)];}}a[_0x5eceda(0xc7)][_0x5eceda(0xde)](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0xdd045d=_0x17f2;(function(_0x48b512,_0x57cc41){const _0x2a169b=_0x17f2,_0x5144ca=_0x48b512();while(!![]){try{const _0x3c059e=parseInt(_0x2a169b(0x146))/0x1+-parseInt(_0x2a169b(0x129))/0x2*(parseInt(_0x2a169b(0x1b5))/0x3)+-parseInt(_0x2a169b(0x1ad))/0x4+-parseInt(_0x2a169b(0x19f))/0x5+parseInt(_0x2a169b(0x109))/0x6*(-parseInt(_0x2a169b(0x16d))/0x7)+parseInt(_0x2a169b(0x18f))/0x8+parseInt(_0x2a169b(0x147))/0x9;if(_0x3c059e===_0x57cc41)break;else _0x5144ca['push'](_0x5144ca['shift']());}catch(_0x577c3d){_0x5144ca['push'](_0x5144ca['shift']());}}}(_0x58ee,0x6c893));var T=Object[_0xdd045d(0x121)],U=(_0x5c29e5,_0x559ae7,_0x17dd05)=>_0x559ae7 in _0x5c29e5?T(_0x5c29e5,_0x559ae7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x17dd05}):_0x5c29e5[_0x559ae7]=_0x17dd05,_=(_0x6e6423,_0x120440,_0x311de0)=>U(_0x6e6423,typeof _0x120440!='symbol'?_0x120440+'':_0x120440,_0x311de0);Object[_0xdd045d(0x121)](exports,Symbol[_0xdd045d(0x194)],{'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:_0xdb21c0,..._0x50564c}){const _0xb371f3=_0xdd045d,{icon:_0x46eaf1,id:_0x2f1d36,className:_0xfa7a5c,extend:_0x276aeb,..._0xa545d5}=_0x50564c,_0x509099=(_0xb371f3(0x107)+_0x2f1d36+'\x20'+(_0xfa7a5c||''))[_0xb371f3(0x192)](),_0x38c30e=v[_0xb371f3(0x153)]('_'+H());return j(_0x46eaf1,''+_0x2f1d36,{'defIds':_0x46eaf1[_0xb371f3(0x14d)],'idSuffix':_0x38c30e['current']},{'ref':_0xdb21c0,'className':_0x509099,..._0xa545d5},_0x276aeb);}function _0x58ee(){const _0xab138f=['status$','override','useRef','getStatus','Disposable','OPERATION','displayName','_collabSession','getConfig','RxDisposable','replace','_univerInstanceService','CollaborationEvent','length','symbol','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_commandDisposable','_mountLiveShare','tag','UniverCollaborationClientPlugin','_beIdle','live-share-icon','presenting','OFFLINE','LIVESHARE_TERMINATE','forEach','stopPresenting','SetWorksheetActiveOperation','80437WLkeNQ','find','setConfig','useEffect','presenter','Button','idle','event$','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','univer-mb-3\x20univer-w-full\x20univer-text-sm','subscribe','mutations','from','includes','colorChannel1','data','SetScrollOperation','1em','path','getUnitId','LiveShare','reverse','_startLiveShareCoordinator','Fragment','useState','unsubscribe','xlink:href','ONLINE','default','Subject','toDisposable','send','fill','pipe','6472048NzteiM','complete','startFollowing','trim','UNIVER_LIVE_SHARE_PLUGIN','toStringTag','executeCommand','idSuffix','UNIVER_SHEET','registerSharedOperation','IDLE','Start\x20following','ICommandService','_presenter','Present\x20this\x20document','text','4183835WCPrEV','stringify','_injector','_init','You\x27are\x20offline.','UniverInstanceType','assign','_uiPartsService','_liveShareService','mask','current','DesktopLiveShareController','sheet','LiveShareIcon','1524376wKBlXG','HEADER_MENU','svg','get','_handleOnline','DependentOn','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','_startPresenting','126798cOxQDr','shouldShareOperation','mergeOverrideWithDependencies','LiveShareStatus','LIVESHARE_NEW_HOST','_sharedOperations','div','createInstance','LiveShareController','disposeWithMe','forwardRef','map','clear','_fetchOperations','onStarting','parseProtocolChangeset','LIVESHARE_REQUEST_HOST','_stopPresenting','getOwnPropertyDescriptor','http://www.w3.org/2000/svg','NOT_FOLLOWING','LIVESHARE_OPERATION','next','operations','_entities','merge','toString','random','_configService','Start','_reporters','string','following','IConfigService','entries','sessionStatus$','attrs','onCommandExecuted','_stopFollowing','use','_handleOffline','substring','has','univerjs-icon\x20univerjs-icon-','FOLLOWING','228BofnpB','getInitialStates','jsxs','univer-size-4','currentColor','You\x27re\x20presenting\x20the\x20document','tryStartPresenting','_config','dispose','Inject','none','UNIVER_UNKNOWN','PRESENTING','dispose$','0\x200\x2017\x2017','add','throttleTime','defs','NEW_CHANGESETS','memberID','requireSession','Injector','SessionStatus','offline','defineProperty','button','url(#$1','touchDependencies','_status','You\x27re\x20not\x20following\x20the\x20presenter','type','stopFollowing','6SwoNvj','_collabSessionService','_handleNewHost','takeUntil','SAME_OPERATION_SHARE_INTERVAL','evenodd','not-following','_unitID','useDependency','unitId','_status$','getValue','UniverIcon','CommandType','IUIPartsService','SetZoomRatioOperation','LiveShareCoordinator','LIVESHARE_FETCH_OPERATIONS','createElement','_startFollowing','Plugin','jsx','registerInitialStateReporter','getLiveShareCoordinator','_handleTerminate','end','UniverLiveSharePlugin','_commandService','children','635409srnScS','7033185kRkjPv','set','IUniverInstanceService','params','useObservable','getCurrentTypeOfUnit$','defIds','CollaborationSessionService','DisposableCollection','getMemberID'];_0x58ee=function(){return _0xab138f;};return _0x58ee();}function j(_0x42b12c,_0x1d08a0,_0x3eb1e1,_0x268038,_0x5c2936){const _0x36457f=_0xdd045d;return v[_0x36457f(0x13b)](_0x42b12c[_0x36457f(0x163)],{'key':_0x1d08a0,...y(_0x42b12c,_0x3eb1e1,_0x5c2936),..._0x268038},(F(_0x42b12c,_0x3eb1e1)[_0x36457f(0x145)]||[])[_0x36457f(0x1c0)]((_0x3d7e66,_0x74cbc5)=>j(_0x3d7e66,_0x1d08a0+'-'+_0x42b12c[_0x36457f(0x163)]+'-'+_0x74cbc5,_0x3eb1e1,void 0x0,_0x5c2936)));}function y(_0x1f98b2,_0x4adbed,_0x48a558){const _0x2b5e9b=_0xdd045d,_0x484182={..._0x1f98b2[_0x2b5e9b(0x100)]};_0x48a558!=null&&_0x48a558[_0x2b5e9b(0x17b)]&&_0x484182[_0x2b5e9b(0x18d)]===_0x2b5e9b(0x17b)&&(_0x484182[_0x2b5e9b(0x18d)]=_0x48a558['colorChannel1']),_0x1f98b2[_0x2b5e9b(0x163)]===_0x2b5e9b(0x1a8)&&_0x484182['id']&&(_0x484182['id']=_0x484182['id']+_0x4adbed['idSuffix']),Object[_0x2b5e9b(0xfe)](_0x484182)[_0x2b5e9b(0x16a)](([_0x57fe19,_0x2c9df9])=>{const _0x36cd94=_0x2b5e9b;_0x57fe19===_0x36cd94(0x1a8)&&typeof _0x2c9df9==_0x36cd94(0xfb)&&(_0x484182[_0x57fe19]=_0x2c9df9[_0x36cd94(0x15b)](/url\(#(.*)\)/,_0x36cd94(0x123)+_0x4adbed[_0x36cd94(0x196)]+')'));});const {defIds:_0x234592}=_0x4adbed;return!_0x234592||_0x234592['length']===0x0||(_0x1f98b2[_0x2b5e9b(0x163)]===_0x2b5e9b(0x103)&&_0x484182['xlink:href']&&(_0x484182[_0x2b5e9b(0x187)]=_0x484182[_0x2b5e9b(0x187)]+_0x4adbed['idSuffix']),Object['entries'](_0x484182)[_0x2b5e9b(0x16a)](([_0x42294f,_0x2e1f5f])=>{const _0xd503b0=_0x2b5e9b;typeof _0x2e1f5f==_0xd503b0(0xfb)&&(_0x484182[_0x42294f]=_0x2e1f5f[_0xd503b0(0x15b)](/url\(#(.*)\)/,_0xd503b0(0x123)+_0x4adbed[_0xd503b0(0x196)]+')'));})),_0x484182;}function _0x17f2(_0xa49f2,_0x45e98d){const _0x58ee65=_0x58ee();return _0x17f2=function(_0x17f2f9,_0x412b88){_0x17f2f9=_0x17f2f9-0xf9;let _0x71b0aa=_0x58ee65[_0x17f2f9];return _0x71b0aa;},_0x17f2(_0xa49f2,_0x45e98d);}function F(_0x780198,_0x950c65){const _0x48f9c6=_0xdd045d;var _0x488a3d;const {defIds:_0x3ffd56}=_0x950c65;return!_0x3ffd56||_0x3ffd56['length']===0x0?_0x780198:_0x780198['tag']===_0x48f9c6(0x11a)&&((_0x488a3d=_0x780198[_0x48f9c6(0x145)])!=null&&_0x488a3d['length'])?{..._0x780198,'children':_0x780198[_0x48f9c6(0x145)][_0x48f9c6(0x1c0)](_0xe58702=>typeof _0xe58702[_0x48f9c6(0x100)]['id']==_0x48f9c6(0xfb)&&_0x3ffd56&&_0x3ffd56[_0x48f9c6(0x17a)](_0xe58702[_0x48f9c6(0x100)]['id'])?{..._0xe58702,'attrs':{..._0xe58702[_0x48f9c6(0x100)],'id':_0xe58702[_0x48f9c6(0x100)]['id']+_0x950c65['idSuffix']}}:_0xe58702)}:_0x780198;}function H(){const _0x52a6a3=_0xdd045d;return Math[_0x52a6a3(0x1d0)]()[_0x52a6a3(0x1cf)](0x24)[_0x52a6a3(0x105)](0x2,0x8);}x[_0xdd045d(0x157)]=_0xdd045d(0x135);const V={'tag':_0xdd045d(0x1af),'attrs':{'xmlns':_0xdd045d(0x1c8),'fill':_0xdd045d(0x113),'viewBox':_0xdd045d(0x117),'width':_0xdd045d(0x17e),'height':'1em'},'children':[{'tag':_0xdd045d(0x17f),'attrs':{'fill':'currentColor','d':_0xdd045d(0x175)}},{'tag':_0xdd045d(0x17f),'attrs':{'fill':_0xdd045d(0x10d),'d':_0xdd045d(0x1b3),'fillRule':_0xdd045d(0x12e),'clipRule':_0xdd045d(0x12e)}}]},R=v[_0xdd045d(0x1bf)](function(_0xa2ac72,_0x2ae11b){const _0x212e53=_0xdd045d;return v[_0x212e53(0x13b)](x,Object[_0x212e53(0x1a5)]({},_0xa2ac72,{'id':_0x212e53(0x166),'ref':_0x2ae11b,'icon':V}));});R['displayName']=_0xdd045d(0x1ac);class E extends o[_0xdd045d(0x155)]{constructor(){const _0x55b65a=_0xdd045d;super(...arguments),_(this,_0x55b65a(0x1ba),new Set()),_(this,_0x55b65a(0xfa),new Set());}['registerSharedOperation'](_0x3af51b){const _0x36c35d=_0xdd045d;return this['_sharedOperations']['add'](_0x3af51b),o[_0x36c35d(0x18b)](()=>this[_0x36c35d(0x1ba)]['delete'](_0x3af51b));}[_0xdd045d(0x13f)](_0x24cfa4){const _0x32f59d=_0xdd045d;return this[_0x32f59d(0xfa)][_0x32f59d(0x118)](_0x24cfa4),o['toDisposable'](()=>this['_reporters']['delete'](_0x24cfa4));}[_0xdd045d(0x1b6)](_0x13e2e4){const _0xa5abf=_0xdd045d;return this[_0xa5abf(0x1ba)][_0xa5abf(0x106)](_0x13e2e4);}[_0xdd045d(0x10a)](_0x46e2d8){const _0xe7f6db=_0xdd045d;return Array[_0xe7f6db(0x179)](this['_reporters'])[_0xe7f6db(0x1c0)](_0x83f7f7=>_0x83f7f7(_0x46e2d8));}}var M=Object[_0xdd045d(0x1c7)],P=(_0x5d1334,_0x21071e,_0xdd3216,_0x195f1d)=>{for(var _0x331750=_0x195f1d>0x1?void 0x0:_0x195f1d?M(_0x21071e,_0xdd3216):_0x21071e,_0x4350b8=_0x5d1334['length']-0x1,_0x362a7b;_0x4350b8>=0x0;_0x4350b8--)(_0x362a7b=_0x5d1334[_0x4350b8])&&(_0x331750=_0x362a7b(_0x331750)||_0x331750);return _0x331750;},S=(_0x2fce75,_0x57d25b)=>(_0x1ab775,_0x114b3c)=>_0x57d25b(_0x1ab775,_0x114b3c,_0x2fce75);exports['LiveShareController']=class extends o[_0xdd045d(0x15a)]{constructor(_0x422fc9,_0x3ea1ae,_0x2de0b8){const _0xa4badf=_0xdd045d;super(),_(this,_0xa4badf(0x1cd),new Map()),(this[_0xa4badf(0x15c)]=_0x422fc9,this[_0xa4badf(0x1a1)]=_0x3ea1ae,this[_0xa4badf(0x12a)]=_0x2de0b8,this[_0xa4badf(0x1a2)]());}async['getLiveShareCoordinator'](_0x3738b7){const _0x27c0e3=_0xdd045d;return this[_0x27c0e3(0x1cd)][_0x27c0e3(0x106)](_0x3738b7)||await this['_startLiveShareCoordinator'](_0x3738b7),this[_0x27c0e3(0x1cd)][_0x27c0e3(0x1b0)](_0x3738b7);}['getLiveShareCoordinatorSync'](_0x2fbe3e){const _0x179407=_0xdd045d;var _0x2937bc;return(_0x2937bc=this[_0x179407(0x1cd)][_0x179407(0x1b0)](_0x2fbe3e))!=null?_0x2937bc:null;}['_init'](){const _0x1ef661=_0xdd045d;this[_0x1ef661(0x15c)]['getTypeOfUnitAdded$'](o[_0x1ef661(0x1a4)][_0x1ef661(0x197)])[_0x1ef661(0x18e)](I[_0x1ef661(0x12c)](this[_0x1ef661(0x116)]))[_0x1ef661(0x177)](async _0x3e6857=>{const _0x3b97b5=_0x1ef661,_0x4f24e=_0x3e6857[_0x3b97b5(0x180)]();this[_0x3b97b5(0x1cd)][_0x3b97b5(0x106)](_0x4f24e)||this[_0x3b97b5(0x183)](_0x4f24e);}),this[_0x1ef661(0x15c)]['getTypeOfUnitDisposed$'](o['UniverInstanceType'][_0x1ef661(0x197)])['pipe'](I[_0x1ef661(0x12c)](this[_0x1ef661(0x116)]))[_0x1ef661(0x177)](_0x6e1046=>{const _0x1fe2a6=_0x1ef661,_0x486c6b=_0x6e1046['getUnitId'](),_0x21f61f=this[_0x1fe2a6(0x1cd)]['get'](_0x486c6b);_0x21f61f==null||_0x21f61f[_0x1fe2a6(0x111)]();});}async[_0xdd045d(0x183)](_0x1048a4){const _0x49af57=_0xdd045d,_0x5b8812=await this[_0x49af57(0x12a)][_0x49af57(0x11d)](_0x1048a4),_0x5ccb41=this[_0x49af57(0x1a1)][_0x49af57(0x1bc)](exports[_0x49af57(0x139)],_0x1048a4,_0x5b8812);return _0x5ccb41['init'](),this[_0x49af57(0x1cd)][_0x49af57(0x148)](_0x1048a4,_0x5ccb41),_0x5ccb41;}},exports[_0xdd045d(0x1bd)]=P([S(0x0,o[_0xdd045d(0x149)]),S(0x1,o[_0xdd045d(0x112)](o['Injector'])),S(0x2,o['Inject'](b[_0xdd045d(0x14e)]))],exports[_0xdd045d(0x1bd)]);var u=(_0x310e5b=>(_0x310e5b[_0xdd045d(0x168)]=_0xdd045d(0x120),_0x310e5b[_0xdd045d(0x199)]=_0xdd045d(0x173),_0x310e5b['FOLLOWING']=_0xdd045d(0xfc),_0x310e5b[_0xdd045d(0x1c9)]=_0xdd045d(0x12f),_0x310e5b[_0xdd045d(0x115)]=_0xdd045d(0x167),_0x310e5b))(u||{});const k=_0xdd045d(0x12d),q=0xc8;exports[_0xdd045d(0x139)]=class extends o[_0xdd045d(0x15a)]{constructor(_0x39bfc9,_0x4ecfd2,_0x3e23f9,_0x4096ce,_0x5a75f){const _0x31e6f9=_0xdd045d;super(),_(this,_0x31e6f9(0x133),new O['BehaviorSubject'](_0x31e6f9(0x173))),_(this,_0x31e6f9(0x151),this[_0x31e6f9(0x133)]['asObservable']()),_(this,_0x31e6f9(0x1a2),!0x1),_(this,_0x31e6f9(0x161),null),_(this,_0x31e6f9(0x19c),null),(this[_0x31e6f9(0x130)]=_0x39bfc9,this[_0x31e6f9(0x158)]=_0x4ecfd2,this[_0x31e6f9(0x1d1)]=_0x3e23f9,this[_0x31e6f9(0x1a7)]=_0x4096ce,this[_0x31e6f9(0x144)]=_0x5a75f);}get[_0xdd045d(0x125)](){const _0x1e859e=_0xdd045d;return this[_0x1e859e(0x133)][_0x1e859e(0x134)]();}[_0xdd045d(0x111)](){const _0x3b1792=_0xdd045d;var _0x492506;(_0x492506=this[_0x3b1792(0x161)])==null||_0x492506['dispose'](),this[_0x3b1792(0x133)][_0x3b1792(0x1cb)](_0x3b1792(0x173)),this[_0x3b1792(0x133)][_0x3b1792(0x190)]();}[_0xdd045d(0x154)](){const _0x6e1d55=_0xdd045d;return this[_0x6e1d55(0x125)];}['init'](){const _0xb713e0=_0xdd045d;this[_0xb713e0(0x1a2)]||(this[_0xb713e0(0x1a2)]=!0x0,this[_0xb713e0(0x158)][_0xb713e0(0xff)][_0xb713e0(0x18e)](I[_0xb713e0(0x12c)](this['dispose$']))[_0xb713e0(0x177)](_0x25bb06=>{const _0x533e4d=_0xb713e0;switch(_0x25bb06){case b[_0x533e4d(0x11f)][_0x533e4d(0x168)]:this[_0x533e4d(0x104)]();break;case b[_0x533e4d(0x11f)][_0x533e4d(0x188)]:this[_0x533e4d(0x1b1)]();break;}}),this[_0xb713e0(0x158)][_0xb713e0(0x174)][_0xb713e0(0x18e)](I[_0xb713e0(0x12c)](this[_0xb713e0(0x116)]))[_0xb713e0(0x177)](_0x228d70=>{const _0x30e4b7=_0xb713e0,{eventID:_0x23b07a}=_0x228d70;switch(_0x23b07a){case d[_0x30e4b7(0x15d)][_0x30e4b7(0x1b9)]:this['_handleNewHost'](_0x228d70);break;case d[_0x30e4b7(0x15d)][_0x30e4b7(0x1ca)]:this['_handleOperation'](_0x228d70);break;case d[_0x30e4b7(0x15d)]['LIVESHARE_TERMINATE']:this[_0x30e4b7(0x141)]();break;case d['CollaborationEvent'][_0x30e4b7(0x11b)]:this['_handleNewChangeSets'](_0x228d70);break;}}));}[_0xdd045d(0x10f)](){const _0x1c509b=_0xdd045d;this[_0x1c509b(0x158)]['send']({'eventID':d[_0x1c509b(0x15d)][_0x1c509b(0x1c5)],'data':{'unitID':this[_0x1c509b(0x130)],'userID':this['_collabSession'][_0x1c509b(0x150)]()}},this[_0x1c509b(0x130)]);}[_0xdd045d(0x16b)](){const _0x72959f=_0xdd045d;this[_0x72959f(0x125)]===_0x72959f(0x167)&&(this[_0x72959f(0x133)][_0x72959f(0x1cb)](_0x72959f(0x173)),this[_0x72959f(0x158)][_0x72959f(0x18c)]({'eventID':d['CollaborationEvent'][_0x72959f(0x169)],'data':{'unitID':this['_unitID']}},this[_0x72959f(0x130)]));}['startFollowing'](){const _0x3eb1ef=_0xdd045d;this[_0x3eb1ef(0x125)]===_0x3eb1ef(0x12f)&&(this['_status$'][_0x3eb1ef(0x1cb)](_0x3eb1ef(0xfc)),this[_0x3eb1ef(0x13c)]());}[_0xdd045d(0x128)](){const _0x37be2f=_0xdd045d;this['_status']===_0x37be2f(0xfc)&&this[_0x37be2f(0x102)]();}[_0xdd045d(0x12b)](_0x44250c){const _0x5b55f6=_0xdd045d,{presenter:_0x20537b}=_0x44250c['data'],_0x431ebb=this['_collabSession'][_0x5b55f6(0x150)]();this[_0x5b55f6(0x19c)]=_0x20537b,_0x20537b===_0x431ebb?(this[_0x5b55f6(0x102)](),this[_0x5b55f6(0x1b4)]()):this[_0x5b55f6(0x125)]!==_0x5b55f6(0x12f)&&(this['_stopPresenting'](),this[_0x5b55f6(0x13c)]());}[_0xdd045d(0x1c2)](){const _0x474e5d=_0xdd045d,_0x56949f={'eventID':d['CollaborationEvent'][_0x474e5d(0x13a)]};this[_0x474e5d(0x158)][_0x474e5d(0x18c)](_0x56949f,this['_unitID']);}[_0xdd045d(0x141)](){const _0x425fd2=_0xdd045d;this[_0x425fd2(0x19c)]=null,this[_0x425fd2(0x125)]!=='presenting'&&this[_0x425fd2(0x165)]();}['_handleNewChangeSets'](_0xbddfad){const _0x4e648b=_0xdd045d;if(this[_0x4e648b(0x125)]===_0x4e648b(0xfc)&&this['_presenter']===_0xbddfad[_0x4e648b(0x17c)][_0x4e648b(0x11c)]){const _0x15511f=d[_0x4e648b(0x1c4)](_0xbddfad[_0x4e648b(0x17c)])[_0x4e648b(0x178)][_0x4e648b(0x182)]()[_0x4e648b(0x16e)](_0x8864ee=>_0x8864ee['id']===C['InsertSheetMutation']['id']);if(_0x15511f){const _0x447862=_0x15511f[_0x4e648b(0x14a)][_0x4e648b(0x132)],_0x4d151c=_0x15511f[_0x4e648b(0x14a)][_0x4e648b(0x1ab)]['id'];setTimeout(()=>{const _0x28bbde=_0x4e648b;this['_commandService'][_0x28bbde(0x195)](C[_0x28bbde(0x16c)]['id'],{'unitId':_0x447862,'subUnitId':_0x4d151c},{'fromCollab':!0x0});});}}}[_0xdd045d(0x1b4)](){const _0x1c6b73=_0xdd045d;this[_0x1c6b73(0x133)]['next'](_0x1c6b73(0x167));const _0x4379b1=new Map(),_0x488216=this[_0x1c6b73(0x161)]=new o[(_0x1c6b73(0x14f))]();_0x488216[_0x1c6b73(0x118)](o[_0x1c6b73(0x18b)](()=>{const _0x116990=_0x1c6b73;_0x4379b1['forEach'](_0x18f74a=>_0x18f74a['complete']()),_0x4379b1[_0x116990(0x1c1)]();})),_0x488216[_0x1c6b73(0x118)](this[_0x1c6b73(0x144)][_0x1c6b73(0x101)](_0x24bdef=>{const _0x30fce3=_0x1c6b73;var _0x1e8612;if(_0x24bdef['type']!==o[_0x30fce3(0x136)][_0x30fce3(0x156)]||!this['_liveShareService'][_0x30fce3(0x1b6)](_0x24bdef['id']))return;const {id:_0xe8b643}=_0x24bdef;let _0x41c5e6;_0x4379b1[_0x30fce3(0x106)](_0xe8b643)?_0x41c5e6=_0x4379b1[_0x30fce3(0x1b0)](_0xe8b643):(_0x41c5e6=new O[(_0x30fce3(0x18a))](),_0x4379b1[_0x30fce3(0x148)](_0xe8b643,_0x41c5e6),_0x41c5e6[_0x30fce3(0x18e)](I[_0x30fce3(0x119)]((_0x1e8612=this[_0x30fce3(0x1d1)][_0x30fce3(0x159)](k))!=null?_0x1e8612:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x30fce3(0x177)](_0x4cf5fa=>{const _0x8835e7=_0x30fce3;this['_collabSession'][_0x8835e7(0x18c)]({'eventID':d['CollaborationEvent'][_0x8835e7(0x1ca)],'data':{'unitID':this['_unitID'],'operations':{[_0x4cf5fa['id']]:{'id':_0x4cf5fa['id'],'params':JSON[_0x8835e7(0x1a0)](_0x4cf5fa[_0x8835e7(0x14a)])}}}},this[_0x8835e7(0x130)]);})),_0x41c5e6[_0x30fce3(0x1cb)](_0x24bdef);})),this[_0x1c6b73(0x1a7)][_0x1c6b73(0x10a)](this[_0x1c6b73(0x130)])[_0x1c6b73(0x16a)](_0x32f964=>this['_collabSession'][_0x1c6b73(0x18c)]({'eventID':d[_0x1c6b73(0x15d)][_0x1c6b73(0x1ca)],'data':{'unitID':this[_0x1c6b73(0x130)],'operations':{[_0x32f964['id']]:{'id':_0x32f964['id'],'params':JSON[_0x1c6b73(0x1a0)](_0x32f964[_0x1c6b73(0x14a)])}}}},this[_0x1c6b73(0x130)]));}[_0xdd045d(0x1c6)](){const _0x251e98=_0xdd045d;var _0xf2c528;this['_status$'][_0x251e98(0x1cb)](_0x251e98(0x173)),(_0xf2c528=this['_commandDisposable'])==null||_0xf2c528['dispose'](),this['_commandDisposable']=null;}[_0xdd045d(0x13c)](){const _0x4328eb=_0xdd045d;var _0xe9bd3a;(_0xe9bd3a=this['_commandDisposable'])==null||_0xe9bd3a[_0x4328eb(0x111)](),this[_0x4328eb(0x133)][_0x4328eb(0x1cb)]('following');}['_beIdle'](){const _0x8f1ede=_0xdd045d;var _0x476ef6;this[_0x8f1ede(0x133)][_0x8f1ede(0x1cb)](_0x8f1ede(0x173)),(_0x476ef6=this[_0x8f1ede(0x161)])==null||_0x476ef6[_0x8f1ede(0x111)](),this[_0x8f1ede(0x161)]=null;}['_stopFollowing'](){const _0x220cd3=_0xdd045d;var _0x5421cb;this['_status$'][_0x220cd3(0x1cb)](_0x220cd3(0x12f)),(_0x5421cb=this['_commandDisposable'])==null||_0x5421cb[_0x220cd3(0x111)]();}['_handleOperation'](_0x21c058){const _0x3db315=_0xdd045d;if([_0x3db315(0x167),'not-following',_0x3db315(0x120)][_0x3db315(0x17a)](this[_0x3db315(0x125)])||!_0x21c058[_0x3db315(0x17c)][_0x3db315(0x171)]||_0x21c058[_0x3db315(0x17c)]['presenter']===this['_collabSession'][_0x3db315(0x150)]())return;this[_0x3db315(0x125)]===_0x3db315(0x173)&&this['_startFollowing']();const _0x4fbe39=_0x21c058[_0x3db315(0x17c)][_0x3db315(0x1cc)];Object['values'](_0x4fbe39)[_0x3db315(0x16a)](_0x3a9c15=>{const _0x4b38d4=_0x3db315;this[_0x4b38d4(0x144)][_0x4b38d4(0x195)](_0x3a9c15['id'],_0x3a9c15[_0x4b38d4(0x14a)]?JSON['parse'](_0x3a9c15[_0x4b38d4(0x14a)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0xbf6def=_0xdd045d;var _0x207da3;this[_0xbf6def(0x133)][_0xbf6def(0x1cb)]('offline'),(_0x207da3=this[_0xbf6def(0x161)])==null||_0x207da3[_0xbf6def(0x111)]();}[_0xdd045d(0x1b1)](){const _0x459df2=_0xdd045d;this[_0x459df2(0x133)][_0x459df2(0x1cb)](_0x459df2(0x173)),this['_fetchOperations']();}},exports[_0xdd045d(0x139)]=P([S(0x2,o[_0xdd045d(0xfd)]),S(0x3,o['Inject'](E)),S(0x4,o[_0xdd045d(0x19b)])],exports[_0xdd045d(0x139)]);function $(){const _0x4fb7d8=_0xdd045d,_0x5aa036=p[_0x4fb7d8(0x131)](exports[_0x4fb7d8(0x1bd)]),_0x1037a4=p[_0x4fb7d8(0x131)](o[_0x4fb7d8(0x149)]),_0x39bc6a=p[_0x4fb7d8(0x14b)](()=>_0x1037a4[_0x4fb7d8(0x14c)](o[_0x4fb7d8(0x1a4)][_0x4fb7d8(0x197)]),void 0x0,!0x1,[]),[_0x592da5,_0x262fc2]=v[_0x4fb7d8(0x185)](null),[_0x560eb8,_0x4295d5]=v['useState'](u[_0x4fb7d8(0x199)]),_0x4964e6=v[_0x4fb7d8(0x153)](null);return v[_0x4fb7d8(0x170)](()=>(_0x39bc6a&&_0x5aa036[_0x4fb7d8(0x140)](_0x39bc6a[_0x4fb7d8(0x180)]())['then'](_0x4ee993=>{const _0x570d7c=_0x4fb7d8;_0x262fc2(_0x4ee993),_0x4964e6[_0x570d7c(0x1a9)]=_0x4ee993[_0x570d7c(0x151)]['subscribe'](_0x472a56=>{_0x4295d5(_0x472a56);});}),()=>{const _0x2a052e=_0x4fb7d8;var _0x560db7;(_0x560db7=_0x4964e6[_0x2a052e(0x1a9)])==null||_0x560db7[_0x2a052e(0x186)](),_0x4964e6['current']=null;}),[_0x39bc6a,_0x5aa036]),_0x592da5?l[_0x4fb7d8(0x13e)](f['Dropdown'],{'align':_0x4fb7d8(0x142),'disabled':_0x560eb8===u['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x4fb7d8(0x13e)](W,{'status':_0x560eb8,'coordinator':_0x592da5}),'children':l[_0x4fb7d8(0x13e)](_0x4fb7d8(0x122),{'className':f['clsx'](_0x4fb7d8(0x160),{'univer-cursor-not-allowed':_0x560eb8===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x560eb8!==u[_0x4fb7d8(0x168)]}),'type':_0x4fb7d8(0x122),'children':l['jsx'](R,{'className':_0x4fb7d8(0x10c)})})}):null;}function W(_0x2fd63c){const _0x85882a=_0xdd045d,{status:_0x54ab49,coordinator:_0x4a8ebe}=_0x2fd63c;switch(_0x54ab49){case u['IDLE']:return l['jsx'](G,{'coordinator':_0x4a8ebe});case u[_0x85882a(0x108)]:return l[_0x85882a(0x13e)](B,{'coordinator':_0x4a8ebe});case u[_0x85882a(0x1c9)]:return l[_0x85882a(0x13e)](Y,{'coordinator':_0x4a8ebe});case u[_0x85882a(0x168)]:return l['jsx'](J,{});case u[_0x85882a(0x115)]:return l['jsx'](Z,{'coordinator':_0x4a8ebe});default:return null;}}function G(_0x48a5a9){const _0x192179=_0xdd045d,{coordinator:_0x98d15f}=_0x48a5a9;return l[_0x192179(0x10b)](l['Fragment'],{'children':[l[_0x192179(0x13e)](_0x192179(0x1bb),{'className':_0x192179(0x176),'children':_0x192179(0x19d)}),l[_0x192179(0x13e)](f[_0x192179(0x172)],{'onClick':()=>_0x98d15f[_0x192179(0x10f)](),'children':_0x192179(0xf9)})]});}function B(_0xa278ab){const _0x57aab6=_0xdd045d,{coordinator:_0x101e6f}=_0xa278ab;return l[_0x57aab6(0x10b)](l[_0x57aab6(0x184)],{'children':[l[_0x57aab6(0x13e)](_0x57aab6(0x1bb),{'className':_0x57aab6(0x176),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x57aab6(0x13e)](f[_0x57aab6(0x172)],{'onClick':()=>_0x101e6f[_0x57aab6(0x128)](),'children':'Stop\x20following'})]});}function Y(_0x2e31da){const _0x2a8f0e=_0xdd045d,{coordinator:_0x4f16e2}=_0x2e31da;return l[_0x2a8f0e(0x10b)](l['Fragment'],{'children':[l[_0x2a8f0e(0x13e)](_0x2a8f0e(0x1bb),{'className':_0x2a8f0e(0x176),'children':_0x2a8f0e(0x126)}),l[_0x2a8f0e(0x13e)](f[_0x2a8f0e(0x172)],{'variant':_0x2a8f0e(0x19e),'onClick':()=>_0x4f16e2[_0x2a8f0e(0x191)](),'children':_0x2a8f0e(0x19a)})]});}function Z(_0x36acbf){const _0x232485=_0xdd045d,{coordinator:_0x7c610}=_0x36acbf;return l['jsxs'](l[_0x232485(0x184)],{'children':[l['jsx'](_0x232485(0x1bb),{'className':_0x232485(0x176),'children':_0x232485(0x10e)}),l[_0x232485(0x13e)](f[_0x232485(0x172)],{'variant':_0x232485(0x189),'onClick':()=>_0x7c610[_0x232485(0x16b)](),'children':'Stop\x20presenting'})]});}function J(){const _0xf56682=_0xdd045d;return l[_0xf56682(0x13e)](l[_0xf56682(0x184)],{'children':_0xf56682(0x1a3)});}var K=Object['getOwnPropertyDescriptor'],z=(_0x3fafda,_0x337b7c,_0xdb1a82,_0x2523bb)=>{const _0x18065a=_0xdd045d;for(var _0xac1312=_0x2523bb>0x1?void 0x0:_0x2523bb?K(_0x337b7c,_0xdb1a82):_0x337b7c,_0x1ec31b=_0x3fafda[_0x18065a(0x15e)]-0x1,_0x4f6c42;_0x1ec31b>=0x0;_0x1ec31b--)(_0x4f6c42=_0x3fafda[_0x1ec31b])&&(_0xac1312=_0x4f6c42(_0xac1312)||_0xac1312);return _0xac1312;},L=(_0x41d613,_0x53d675)=>(_0x520e1a,_0x3a1455)=>_0x53d675(_0x520e1a,_0x3a1455,_0x41d613);exports[_0xdd045d(0x1aa)]=class extends o['Disposable']{constructor(_0x255bde,_0x478d88){const _0x2e401b=_0xdd045d;super(),this[_0x2e401b(0x1a1)]=_0x255bde,this['_uiPartsService']=_0x478d88,this['_mountLiveShare']();}[_0xdd045d(0x162)](){const _0x2e83ce=_0xdd045d;this[_0x2e83ce(0x1be)](this[_0x2e83ce(0x1a6)]['registerComponent'](p['BuiltInUIPart'][_0x2e83ce(0x1ae)],()=>p['connectInjector']($,this[_0x2e83ce(0x1a1)])));}},exports[_0xdd045d(0x1aa)]=z([L(0x0,o[_0xdd045d(0x112)](o[_0xdd045d(0x11e)])),L(0x1,p[_0xdd045d(0x137)])],exports[_0xdd045d(0x1aa)]);const Q='live-share.config',w={};var X=Object[_0xdd045d(0x1c7)],ee=(_0x148b90,_0x48f981,_0x3ac92f,_0x1f41e4)=>{const _0x44adda=_0xdd045d;for(var _0x558cba=_0x1f41e4>0x1?void 0x0:_0x1f41e4?X(_0x48f981,_0x3ac92f):_0x48f981,_0x1bd54a=_0x148b90[_0x44adda(0x15e)]-0x1,_0x1ecf7b;_0x1bd54a>=0x0;_0x1bd54a--)(_0x1ecf7b=_0x148b90[_0x1bd54a])&&(_0x558cba=_0x1ecf7b(_0x558cba)||_0x558cba);return _0x558cba;},te=(_0x34fdd0,_0x39b19c)=>(_0x41395f,_0x392a16)=>_0x39b19c(_0x41395f,_0x392a16,_0x34fdd0);let m=class extends o[_0xdd045d(0x155)]{constructor(_0x43c89f){const _0x514a86=_0xdd045d;super(),this[_0x514a86(0x1a7)]=_0x43c89f,this[_0x514a86(0x1a2)]();}[_0xdd045d(0x1a2)](){const _0x289d6d=_0xdd045d;[D[_0x289d6d(0x138)]['id'],D[_0x289d6d(0x17d)]['id'],C[_0x289d6d(0x16c)]['id']]['forEach'](_0xad5a71=>{const _0x3728b0=_0x289d6d;this[_0x3728b0(0x1be)](this[_0x3728b0(0x1a7)][_0x3728b0(0x198)](_0xad5a71));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object['defineProperty'],se=Object[_0xdd045d(0x1c7)],ne=(_0x2cda22,_0xff991e,_0x27744f)=>_0xff991e in _0x2cda22?ie(_0x2cda22,_0xff991e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x27744f}):_0x2cda22[_0xff991e]=_0x27744f,re=(_0x522290,_0x2bc755,_0x5b1b72,_0x30634a)=>{for(var _0x55cec2=_0x30634a>0x1?void 0x0:_0x30634a?se(_0x2bc755,_0x5b1b72):_0x2bc755,_0x2c2f6c=_0x522290['length']-0x1,_0x1061e0;_0x2c2f6c>=0x0;_0x2c2f6c--)(_0x1061e0=_0x522290[_0x2c2f6c])&&(_0x55cec2=_0x1061e0(_0x55cec2)||_0x55cec2);return _0x55cec2;},N=(_0x549834,_0x5b3452)=>(_0x110895,_0x42a828)=>_0x5b3452(_0x110895,_0x42a828,_0x549834),A=(_0x32ec45,_0x279aa1,_0x2492fc)=>ne(_0x32ec45,typeof _0x279aa1!=_0xdd045d(0x15f)?_0x279aa1+'':_0x279aa1,_0x2492fc);const oe=_0xdd045d(0x193);exports[_0xdd045d(0x143)]=class extends o[_0xdd045d(0x13d)]{constructor(_0x35867a=w,_0x2be720,_0x1a07f5){const _0x34786a=_0xdd045d;super(),this[_0x34786a(0x110)]=_0x35867a,this[_0x34786a(0x1a1)]=_0x2be720,this[_0x34786a(0x1d1)]=_0x1a07f5;const {..._0x198a7b}=o[_0x34786a(0x1ce)]({},w,this[_0x34786a(0x110)]);this['_configService'][_0x34786a(0x16f)](Q,_0x198a7b);}[_0xdd045d(0x1c3)](){const _0x303cd8=_0xdd045d;o['registerDependencies'](this[_0x303cd8(0x1a1)],o[_0x303cd8(0x1b7)]([[E],[exports[_0x303cd8(0x1bd)]],[m],[exports[_0x303cd8(0x1aa)]]],this['_config'][_0x303cd8(0x152)])),o[_0x303cd8(0x124)](this[_0x303cd8(0x1a1)],[[m]]);}['onRendered'](){const _0x37f82b=_0xdd045d;o[_0x37f82b(0x124)](this[_0x37f82b(0x1a1)],[[exports['DesktopLiveShareController']]]);}},A(exports[_0xdd045d(0x143)],_0xdd045d(0x127),o['UniverInstanceType'][_0xdd045d(0x114)]),A(exports[_0xdd045d(0x143)],'pluginName',oe),exports[_0xdd045d(0x143)]=re([o[_0xdd045d(0x1b2)](b[_0xdd045d(0x164)]),N(0x1,o[_0xdd045d(0x112)](o[_0xdd045d(0x11e)])),N(0x2,o[_0xdd045d(0xfd)])],exports[_0xdd045d(0x143)]),exports[_0xdd045d(0x181)]=$,exports['LiveShareService']=E,exports[_0xdd045d(0x1b8)]=u;
|
|
1
|
+
'use strict';const _0x232304=_0xb6a3;(function(_0x9070a7,_0xc9adb9){const _0x127215=_0xb6a3,_0x5c82c8=_0x9070a7();while(!![]){try{const _0x5f0a1e=-parseInt(_0x127215(0x11e))/0x1+-parseInt(_0x127215(0x177))/0x2+-parseInt(_0x127215(0x175))/0x3+-parseInt(_0x127215(0x1cb))/0x4*(-parseInt(_0x127215(0x1b4))/0x5)+-parseInt(_0x127215(0x1c9))/0x6+parseInt(_0x127215(0x19e))/0x7*(parseInt(_0x127215(0xf9))/0x8)+-parseInt(_0x127215(0x11f))/0x9*(-parseInt(_0x127215(0x129))/0xa);if(_0x5f0a1e===_0xc9adb9)break;else _0x5c82c8['push'](_0x5c82c8['shift']());}catch(_0x5e99ac){_0x5c82c8['push'](_0x5c82c8['shift']());}}}(_0x2072,0xc45cf));var T=Object['defineProperty'],U=(_0x19b852,_0x3adfb7,_0x19ef79)=>_0x3adfb7 in _0x19b852?T(_0x19b852,_0x3adfb7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x19ef79}):_0x19b852[_0x3adfb7]=_0x19ef79,_=(_0xfa532c,_0x448c20,_0x36e46b)=>U(_0xfa532c,typeof _0x448c20!=_0x232304(0x12f)?_0x448c20+'':_0x448c20,_0x36e46b);Object[_0x232304(0x130)](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:_0x5eb6ba,..._0x40bc54}){const _0x483691=_0x232304,{icon:_0x316566,id:_0x4ed1bd,className:_0x2c8a0b,extend:_0x2e7a1a,..._0xfb9bde}=_0x40bc54,_0x228d67=(_0x483691(0x124)+_0x4ed1bd+'\x20'+(_0x2c8a0b||''))[_0x483691(0x191)](),_0x505a11=v[_0x483691(0x162)]('_'+H());return j(_0x316566,''+_0x4ed1bd,{'defIds':_0x316566[_0x483691(0x122)],'idSuffix':_0x505a11['current']},{'ref':_0x5eb6ba,'className':_0x228d67,..._0xfb9bde},_0x2e7a1a);}function j(_0x406dd5,_0x5a6172,_0x4193b5,_0x5320a7,_0x267950){const _0x2115fe=_0x232304;return v[_0x2115fe(0x164)](_0x406dd5['tag'],{'key':_0x5a6172,...y(_0x406dd5,_0x4193b5,_0x267950),..._0x5320a7},(F(_0x406dd5,_0x4193b5)[_0x2115fe(0xfd)]||[])['map']((_0x317b47,_0x125f98)=>j(_0x317b47,_0x5a6172+'-'+_0x406dd5[_0x2115fe(0x119)]+'-'+_0x125f98,_0x4193b5,void 0x0,_0x267950)));}function y(_0x34caff,_0x26f524,_0x260572){const _0xeadbbf=_0x232304,_0x264884={..._0x34caff[_0xeadbbf(0x13b)]};_0x260572!=null&&_0x260572[_0xeadbbf(0x125)]&&_0x264884[_0xeadbbf(0x166)]===_0xeadbbf(0x125)&&(_0x264884['fill']=_0x260572[_0xeadbbf(0x125)]),_0x34caff[_0xeadbbf(0x119)]===_0xeadbbf(0x120)&&_0x264884['id']&&(_0x264884['id']=_0x264884['id']+_0x26f524[_0xeadbbf(0x149)]),Object[_0xeadbbf(0x14e)](_0x264884)[_0xeadbbf(0x1c2)](([_0x41f090,_0x3b5089])=>{const _0x23c8a3=_0xeadbbf;_0x41f090==='mask'&&typeof _0x3b5089==_0x23c8a3(0x128)&&(_0x264884[_0x41f090]=_0x3b5089['replace'](/url\(#(.*)\)/,_0x23c8a3(0x15b)+_0x26f524['idSuffix']+')'));});const {defIds:_0x1139a7}=_0x26f524;return!_0x1139a7||_0x1139a7[_0xeadbbf(0x1c3)]===0x0||(_0x34caff[_0xeadbbf(0x119)]===_0xeadbbf(0x148)&&_0x264884[_0xeadbbf(0x176)]&&(_0x264884[_0xeadbbf(0x176)]=_0x264884['xlink:href']+_0x26f524[_0xeadbbf(0x149)]),Object[_0xeadbbf(0x14e)](_0x264884)[_0xeadbbf(0x1c2)](([_0x34e7d8,_0x1933b9])=>{const _0x30ae8d=_0xeadbbf;typeof _0x1933b9==_0x30ae8d(0x128)&&(_0x264884[_0x34e7d8]=_0x1933b9[_0x30ae8d(0x123)](/url\(#(.*)\)/,_0x30ae8d(0x15b)+_0x26f524['idSuffix']+')'));})),_0x264884;}function _0x2072(){const _0x2da97f=['LIVESHARE_TERMINATE','parseProtocolChangeset','_handleOnline','sessionStatus$','UNIVER_SHEET','presenter','status$','startFollowing','map','tag','LiveShareController','registerSharedOperation','FOLLOWING','UNIVER_UNKNOWN','683369FccSNQ','18548586UkhpLd','mask','init','defIds','replace','univerjs-icon\x20univerjs-icon-','colorChannel1','DependentOn','HEADER_MENU','string','20ilpTnU','UniverCollaborationClientPlugin','RxDisposable','IUIPartsService','memberID','_uiPartsService','symbol','defineProperty','univer-size-4','delete','offline','stopFollowing','assign','univer-mb-3\x20univer-w-full\x20univer-text-sm','0\x200\x2017\x2017','connectInjector','onCommandExecuted','_configService','attrs','LiveShareStatus','_init','has','_liveShareService','SAME_OPERATION_SHARE_INTERVAL','data','button','getOwnPropertyDescriptor','throttleTime','1em','Button','ONLINE','use','idSuffix','_status','stringify','_sharedOperations','useEffect','entries','useDependency','subscribe','stopPresenting','getConfig','getLiveShareCoordinator','NOT_FOLLOWING','DisposableCollection','_reporters','_entities','BehaviorSubject','params','substring','url(#$1','following','_beIdle','InsertSheetMutation','_fetchOperations','get','DesktopLiveShareController','useRef','complete','createElement','getCurrentTypeOfUnit$','fill','getInitialStates','_handleNewHost','_stopPresenting','none','_handleTerminate','_startLiveShareCoordinator','BuiltInUIPart','set','_handleOffline','Stop\x20presenting','Disposable','dispose$','send','LIVESHARE_NEW_HOST','4132719gkhGrz','xlink:href','2038494OoVlli','onRendered','NEW_CHANGESETS','_injector','CollaborationSessionService','_presenter','includes','OFFLINE','setConfig','event$','_collabSessionService','Inject','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','merge','IUniverInstanceService','_startFollowing','createInstance','CommandType','Dropdown','CollaborationEvent','UniverIcon','type','pipe','_univerInstanceService','getTypeOfUnitDisposed$','then','trim','div','_collabSession','_commandDisposable','Subject','SetWorksheetActiveOperation','dispose','_handleOperation','PRESENTING','UniverLiveSharePlugin','toString','svg','_config','7LjZUxp','_handleNewChangeSets','parse','Start\x20following','find','SessionStatus','live-share.config','unsubscribe','live-share-icon','override','pluginName','toDisposable','http://www.w3.org/2000/svg','Fragment','getMemberID','touchDependencies','clear','_status$','Plugin','disposeWithMe','path','current','1174685CETOFY','useState','sheet','random','UniverInstanceType','You\x27re\x20following\x20the\x20presenter','IConfigService','requireSession','_mountLiveShare','not-following','_commandService','mergeOverrideWithDependencies','getUnitId','getValue','forEach','length','LiveShareService','SetScrollOperation','Present\x20this\x20document','end','_startPresenting','9228918MKHbfb','mutations','8lDSNTP','getStatus','LiveShare','_stopFollowing','currentColor','add','LIVESHARE_OPERATION','tryStartPresenting','6646904OlRnQG','next','idle','SetZoomRatioOperation','children','You\x27are\x20offline.','Injector','executeCommand','jsxs','getTypeOfUnitAdded$','LiveShareCoordinator','ICommandService','jsx','from','evenodd','clsx','_unitID','reverse','shouldShareOperation','Start','takeUntil','presenting','registerInitialStateReporter'];_0x2072=function(){return _0x2da97f;};return _0x2072();}function F(_0x474474,_0x57619c){const _0x55bca1=_0x232304;var _0x17d010;const {defIds:_0x5e5bf7}=_0x57619c;return!_0x5e5bf7||_0x5e5bf7[_0x55bca1(0x1c3)]===0x0?_0x474474:_0x474474[_0x55bca1(0x119)]==='defs'&&((_0x17d010=_0x474474['children'])!=null&&_0x17d010[_0x55bca1(0x1c3)])?{..._0x474474,'children':_0x474474[_0x55bca1(0xfd)][_0x55bca1(0x118)](_0x106a13=>typeof _0x106a13[_0x55bca1(0x13b)]['id']=='string'&&_0x5e5bf7&&_0x5e5bf7[_0x55bca1(0x17d)](_0x106a13[_0x55bca1(0x13b)]['id'])?{..._0x106a13,'attrs':{..._0x106a13[_0x55bca1(0x13b)],'id':_0x106a13[_0x55bca1(0x13b)]['id']+_0x57619c[_0x55bca1(0x149)]}}:_0x106a13)}:_0x474474;}function H(){const _0x198ee1=_0x232304;return Math[_0x198ee1(0x1b7)]()[_0x198ee1(0x19b)](0x24)[_0x198ee1(0x15a)](0x2,0x8);}x['displayName']=_0x232304(0x18b);function _0xb6a3(_0x295bad,_0x42290f){const _0x2072fc=_0x2072();return _0xb6a3=function(_0xb6a32f,_0x2eb0b1){_0xb6a32f=_0xb6a32f-0xf3;let _0x2737f9=_0x2072fc[_0xb6a32f];return _0x2737f9;},_0xb6a3(_0x295bad,_0x42290f);}const V={'tag':_0x232304(0x19c),'attrs':{'xmlns':_0x232304(0x1aa),'fill':_0x232304(0x16a),'viewBox':_0x232304(0x137),'width':_0x232304(0x145),'height':_0x232304(0x145)},'children':[{'tag':_0x232304(0x1b2),'attrs':{'fill':_0x232304(0xf5),'d':_0x232304(0x183)}},{'tag':_0x232304(0x1b2),'attrs':{'fill':_0x232304(0xf5),'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':_0x232304(0x107)}}]},R=v['forwardRef'](function(_0xf0d1c9,_0x3fa697){const _0x4a82c5=_0x232304;return v['createElement'](x,Object[_0x4a82c5(0x135)]({},_0xf0d1c9,{'id':_0x4a82c5(0x1a6),'ref':_0x3fa697,'icon':V}));});R['displayName']='LiveShareIcon';class E extends o[_0x232304(0x171)]{constructor(){const _0x33b19d=_0x232304;super(...arguments),_(this,'_sharedOperations',new Set()),_(this,_0x33b19d(0x156),new Set());}[_0x232304(0x11b)](_0x22a9d6){const _0x378b6d=_0x232304;return this[_0x378b6d(0x14c)][_0x378b6d(0xf6)](_0x22a9d6),o['toDisposable'](()=>this[_0x378b6d(0x14c)][_0x378b6d(0x132)](_0x22a9d6));}[_0x232304(0x10f)](_0x14fb7d){const _0x1297c0=_0x232304;return this[_0x1297c0(0x156)][_0x1297c0(0xf6)](_0x14fb7d),o[_0x1297c0(0x1a9)](()=>this[_0x1297c0(0x156)][_0x1297c0(0x132)](_0x14fb7d));}[_0x232304(0x10b)](_0x3516c2){const _0x54930e=_0x232304;return this['_sharedOperations'][_0x54930e(0x13e)](_0x3516c2);}[_0x232304(0x167)](_0x18f85c){const _0x1bdeab=_0x232304;return Array[_0x1bdeab(0x106)](this['_reporters'])[_0x1bdeab(0x118)](_0x1906f0=>_0x1906f0(_0x18f85c));}}var M=Object[_0x232304(0x143)],P=(_0x12e02d,_0xe12161,_0x41840a,_0x55daef)=>{const _0x596d0c=_0x232304;for(var _0x4fd20e=_0x55daef>0x1?void 0x0:_0x55daef?M(_0xe12161,_0x41840a):_0xe12161,_0x26dcd7=_0x12e02d[_0x596d0c(0x1c3)]-0x1,_0x1b226b;_0x26dcd7>=0x0;_0x26dcd7--)(_0x1b226b=_0x12e02d[_0x26dcd7])&&(_0x4fd20e=_0x1b226b(_0x4fd20e)||_0x4fd20e);return _0x4fd20e;},S=(_0x411cf1,_0x21a0e3)=>(_0x56cbd6,_0x5c5337)=>_0x21a0e3(_0x56cbd6,_0x5c5337,_0x411cf1);exports['LiveShareController']=class extends o['RxDisposable']{constructor(_0x221eab,_0x4c27d2,_0x402f5f){const _0x5648ca=_0x232304;super(),_(this,_0x5648ca(0x157),new Map()),(this['_univerInstanceService']=_0x221eab,this[_0x5648ca(0x17a)]=_0x4c27d2,this[_0x5648ca(0x181)]=_0x402f5f,this[_0x5648ca(0x13d)]());}async[_0x232304(0x153)](_0x12d664){const _0x33e17e=_0x232304;return this[_0x33e17e(0x157)][_0x33e17e(0x13e)](_0x12d664)||await this['_startLiveShareCoordinator'](_0x12d664),this[_0x33e17e(0x157)]['get'](_0x12d664);}['getLiveShareCoordinatorSync'](_0x52e7af){const _0x130905=_0x232304;var _0x5e9453;return(_0x5e9453=this['_entities'][_0x130905(0x160)](_0x52e7af))!=null?_0x5e9453:null;}[_0x232304(0x13d)](){const _0x12fef5=_0x232304;this[_0x12fef5(0x18e)][_0x12fef5(0x102)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x12fef5(0x18d)](I[_0x12fef5(0x10d)](this[_0x12fef5(0x172)]))[_0x12fef5(0x150)](async _0xa501c4=>{const _0x4de248=_0x12fef5,_0x4a540c=_0xa501c4[_0x4de248(0x1c0)]();this[_0x4de248(0x157)]['has'](_0x4a540c)||this['_startLiveShareCoordinator'](_0x4a540c);}),this[_0x12fef5(0x18e)][_0x12fef5(0x18f)](o['UniverInstanceType'][_0x12fef5(0x114)])[_0x12fef5(0x18d)](I[_0x12fef5(0x10d)](this[_0x12fef5(0x172)]))[_0x12fef5(0x150)](_0x1ea6e7=>{const _0x19b930=_0x12fef5,_0x2f56c2=_0x1ea6e7[_0x19b930(0x1c0)](),_0x2956f7=this[_0x19b930(0x157)][_0x19b930(0x160)](_0x2f56c2);_0x2956f7==null||_0x2956f7['dispose']();});}async[_0x232304(0x16c)](_0x2a65ca){const _0x58c908=_0x232304,_0x178d6a=await this['_collabSessionService'][_0x58c908(0x1bb)](_0x2a65ca),_0x422ff9=this[_0x58c908(0x17a)][_0x58c908(0x187)](exports[_0x58c908(0x103)],_0x2a65ca,_0x178d6a);return _0x422ff9[_0x58c908(0x121)](),this['_entities'][_0x58c908(0x16e)](_0x2a65ca,_0x422ff9),_0x422ff9;}},exports[_0x232304(0x11a)]=P([S(0x0,o[_0x232304(0x185)]),S(0x1,o[_0x232304(0x182)](o[_0x232304(0xff)])),S(0x2,o['Inject'](b[_0x232304(0x17b)]))],exports['LiveShareController']);var u=(_0x4c7ee8=>(_0x4c7ee8['OFFLINE']=_0x232304(0x133),_0x4c7ee8['IDLE']=_0x232304(0xfb),_0x4c7ee8[_0x232304(0x11c)]=_0x232304(0x15c),_0x4c7ee8[_0x232304(0x154)]=_0x232304(0x1bd),_0x4c7ee8[_0x232304(0x199)]=_0x232304(0x10e),_0x4c7ee8))(u||{});const k=_0x232304(0x140),q=0xc8;exports[_0x232304(0x103)]=class extends o[_0x232304(0x12b)]{constructor(_0x4d0302,_0x3b1bc1,_0x2b58f0,_0x29cced,_0x2b1099){const _0x528e41=_0x232304;super(),_(this,_0x528e41(0x1af),new O[(_0x528e41(0x158))](_0x528e41(0xfb))),_(this,_0x528e41(0x116),this[_0x528e41(0x1af)]['asObservable']()),_(this,_0x528e41(0x13d),!0x1),_(this,_0x528e41(0x194),null),_(this,_0x528e41(0x17c),null),(this[_0x528e41(0x109)]=_0x4d0302,this[_0x528e41(0x193)]=_0x3b1bc1,this[_0x528e41(0x13a)]=_0x2b58f0,this['_liveShareService']=_0x29cced,this[_0x528e41(0x1be)]=_0x2b1099);}get['_status'](){const _0xe74b0=_0x232304;return this[_0xe74b0(0x1af)][_0xe74b0(0x1c1)]();}[_0x232304(0x197)](){const _0x536d3d=_0x232304;var _0x294994;(_0x294994=this[_0x536d3d(0x194)])==null||_0x294994[_0x536d3d(0x197)](),this['_status$'][_0x536d3d(0xfa)]('idle'),this['_status$'][_0x536d3d(0x163)]();}[_0x232304(0x1cc)](){return this['_status'];}[_0x232304(0x121)](){const _0x59efdc=_0x232304;this[_0x59efdc(0x13d)]||(this['_init']=!0x0,this[_0x59efdc(0x193)][_0x59efdc(0x113)][_0x59efdc(0x18d)](I[_0x59efdc(0x10d)](this[_0x59efdc(0x172)]))['subscribe'](_0x29f4a0=>{const _0xbf56b8=_0x59efdc;switch(_0x29f4a0){case b[_0xbf56b8(0x1a3)][_0xbf56b8(0x17e)]:this[_0xbf56b8(0x16f)]();break;case b[_0xbf56b8(0x1a3)][_0xbf56b8(0x147)]:this[_0xbf56b8(0x112)]();break;}}),this[_0x59efdc(0x193)][_0x59efdc(0x180)][_0x59efdc(0x18d)](I[_0x59efdc(0x10d)](this[_0x59efdc(0x172)]))['subscribe'](_0x3fcb9c=>{const _0x43345b=_0x59efdc,{eventID:_0x35478f}=_0x3fcb9c;switch(_0x35478f){case d['CollaborationEvent'][_0x43345b(0x174)]:this[_0x43345b(0x168)](_0x3fcb9c);break;case d[_0x43345b(0x18a)][_0x43345b(0xf7)]:this[_0x43345b(0x198)](_0x3fcb9c);break;case d[_0x43345b(0x18a)][_0x43345b(0x110)]:this[_0x43345b(0x16b)]();break;case d[_0x43345b(0x18a)][_0x43345b(0x179)]:this[_0x43345b(0x19f)](_0x3fcb9c);break;}}));}['tryStartPresenting'](){const _0x3bfa7c=_0x232304;this[_0x3bfa7c(0x193)][_0x3bfa7c(0x173)]({'eventID':d[_0x3bfa7c(0x18a)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x3bfa7c(0x193)][_0x3bfa7c(0x1ac)]()}},this[_0x3bfa7c(0x109)]);}[_0x232304(0x151)](){const _0x3006f9=_0x232304;this['_status']==='presenting'&&(this[_0x3006f9(0x1af)][_0x3006f9(0xfa)](_0x3006f9(0xfb)),this['_collabSession'][_0x3006f9(0x173)]({'eventID':d[_0x3006f9(0x18a)][_0x3006f9(0x110)],'data':{'unitID':this[_0x3006f9(0x109)]}},this['_unitID']));}['startFollowing'](){const _0x39bfd8=_0x232304;this[_0x39bfd8(0x14a)]===_0x39bfd8(0x1bd)&&(this[_0x39bfd8(0x1af)][_0x39bfd8(0xfa)]('following'),this[_0x39bfd8(0x186)]());}[_0x232304(0x134)](){const _0x325002=_0x232304;this[_0x325002(0x14a)]===_0x325002(0x15c)&&this['_stopFollowing']();}[_0x232304(0x168)](_0x31f55f){const _0x4d7c12=_0x232304,{presenter:_0x586e5a}=_0x31f55f[_0x4d7c12(0x141)],_0x48ecc1=this[_0x4d7c12(0x193)][_0x4d7c12(0x1ac)]();this[_0x4d7c12(0x17c)]=_0x586e5a,_0x586e5a===_0x48ecc1?(this[_0x4d7c12(0xf4)](),this[_0x4d7c12(0x1c8)]()):this[_0x4d7c12(0x14a)]!==_0x4d7c12(0x1bd)&&(this[_0x4d7c12(0x169)](),this[_0x4d7c12(0x186)]());}[_0x232304(0x15f)](){const _0x34cd9c=_0x232304,_0x19aad4={'eventID':d[_0x34cd9c(0x18a)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x34cd9c(0x173)](_0x19aad4,this[_0x34cd9c(0x109)]);}[_0x232304(0x16b)](){const _0x31646a=_0x232304;this[_0x31646a(0x17c)]=null,this[_0x31646a(0x14a)]!==_0x31646a(0x10e)&&this[_0x31646a(0x15d)]();}[_0x232304(0x19f)](_0x2d4174){const _0x522a3b=_0x232304;if(this['_status']===_0x522a3b(0x15c)&&this[_0x522a3b(0x17c)]===_0x2d4174[_0x522a3b(0x141)][_0x522a3b(0x12d)]){const _0x5404cb=d[_0x522a3b(0x111)](_0x2d4174[_0x522a3b(0x141)])[_0x522a3b(0x1ca)][_0x522a3b(0x10a)]()[_0x522a3b(0x1a2)](_0xce49db=>_0xce49db['id']===C[_0x522a3b(0x15e)]['id']);if(_0x5404cb){const _0x2658c1=_0x5404cb[_0x522a3b(0x159)]['unitId'],_0xdacb6a=_0x5404cb[_0x522a3b(0x159)][_0x522a3b(0x1b6)]['id'];setTimeout(()=>{const _0x1d904a=_0x522a3b;this[_0x1d904a(0x1be)][_0x1d904a(0x100)](C[_0x1d904a(0x196)]['id'],{'unitId':_0x2658c1,'subUnitId':_0xdacb6a},{'fromCollab':!0x0});});}}}[_0x232304(0x1c8)](){const _0x718dbc=_0x232304;this[_0x718dbc(0x1af)]['next']('presenting');const _0x5480cf=new Map(),_0x3766bc=this[_0x718dbc(0x194)]=new o[(_0x718dbc(0x155))]();_0x3766bc[_0x718dbc(0xf6)](o[_0x718dbc(0x1a9)](()=>{const _0x41275b=_0x718dbc;_0x5480cf[_0x41275b(0x1c2)](_0x22dbd8=>_0x22dbd8[_0x41275b(0x163)]()),_0x5480cf[_0x41275b(0x1ae)]();})),_0x3766bc[_0x718dbc(0xf6)](this[_0x718dbc(0x1be)][_0x718dbc(0x139)](_0x4b8bba=>{const _0x17f184=_0x718dbc;var _0x5b9c74;if(_0x4b8bba['type']!==o[_0x17f184(0x188)]['OPERATION']||!this[_0x17f184(0x13f)][_0x17f184(0x10b)](_0x4b8bba['id']))return;const {id:_0x1376b0}=_0x4b8bba;let _0x4ee7ae;_0x5480cf[_0x17f184(0x13e)](_0x1376b0)?_0x4ee7ae=_0x5480cf['get'](_0x1376b0):(_0x4ee7ae=new O[(_0x17f184(0x195))](),_0x5480cf['set'](_0x1376b0,_0x4ee7ae),_0x4ee7ae[_0x17f184(0x18d)](I[_0x17f184(0x144)]((_0x5b9c74=this[_0x17f184(0x13a)][_0x17f184(0x152)](k))!=null?_0x5b9c74:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x17f184(0x150)](_0x3a47ec=>{const _0x220add=_0x17f184;this[_0x220add(0x193)]['send']({'eventID':d[_0x220add(0x18a)][_0x220add(0xf7)],'data':{'unitID':this[_0x220add(0x109)],'operations':{[_0x3a47ec['id']]:{'id':_0x3a47ec['id'],'params':JSON[_0x220add(0x14b)](_0x3a47ec[_0x220add(0x159)])}}}},this['_unitID']);})),_0x4ee7ae[_0x17f184(0xfa)](_0x4b8bba);})),this['_liveShareService'][_0x718dbc(0x167)](this[_0x718dbc(0x109)])[_0x718dbc(0x1c2)](_0x41fd2f=>this[_0x718dbc(0x193)]['send']({'eventID':d['CollaborationEvent'][_0x718dbc(0xf7)],'data':{'unitID':this[_0x718dbc(0x109)],'operations':{[_0x41fd2f['id']]:{'id':_0x41fd2f['id'],'params':JSON[_0x718dbc(0x14b)](_0x41fd2f[_0x718dbc(0x159)])}}}},this['_unitID']));}[_0x232304(0x169)](){const _0x12de9e=_0x232304;var _0xe0774e;this[_0x12de9e(0x1af)][_0x12de9e(0xfa)](_0x12de9e(0xfb)),(_0xe0774e=this[_0x12de9e(0x194)])==null||_0xe0774e[_0x12de9e(0x197)](),this['_commandDisposable']=null;}[_0x232304(0x186)](){const _0x3a4697=_0x232304;var _0x595c7c;(_0x595c7c=this[_0x3a4697(0x194)])==null||_0x595c7c[_0x3a4697(0x197)](),this['_status$'][_0x3a4697(0xfa)](_0x3a4697(0x15c));}[_0x232304(0x15d)](){const _0x3c0497=_0x232304;var _0x1b3dcb;this[_0x3c0497(0x1af)][_0x3c0497(0xfa)](_0x3c0497(0xfb)),(_0x1b3dcb=this[_0x3c0497(0x194)])==null||_0x1b3dcb['dispose'](),this['_commandDisposable']=null;}[_0x232304(0xf4)](){const _0x3f2ce5=_0x232304;var _0x3a5c5f;this[_0x3f2ce5(0x1af)][_0x3f2ce5(0xfa)](_0x3f2ce5(0x1bd)),(_0x3a5c5f=this['_commandDisposable'])==null||_0x3a5c5f[_0x3f2ce5(0x197)]();}[_0x232304(0x198)](_0x38b000){const _0x9edc6d=_0x232304;if([_0x9edc6d(0x10e),_0x9edc6d(0x1bd),_0x9edc6d(0x133)][_0x9edc6d(0x17d)](this[_0x9edc6d(0x14a)])||!_0x38b000[_0x9edc6d(0x141)][_0x9edc6d(0x115)]||_0x38b000[_0x9edc6d(0x141)][_0x9edc6d(0x115)]===this['_collabSession']['getMemberID']())return;this[_0x9edc6d(0x14a)]==='idle'&&this[_0x9edc6d(0x186)]();const _0x1919ea=_0x38b000['data']['operations'];Object['values'](_0x1919ea)[_0x9edc6d(0x1c2)](_0x471407=>{const _0x12714d=_0x9edc6d;this['_commandService']['executeCommand'](_0x471407['id'],_0x471407[_0x12714d(0x159)]?JSON[_0x12714d(0x1a0)](_0x471407[_0x12714d(0x159)]):null,{'fromCollab':!0x0});});}[_0x232304(0x16f)](){const _0x5a20c0=_0x232304;var _0x456432;this['_status$'][_0x5a20c0(0xfa)](_0x5a20c0(0x133)),(_0x456432=this[_0x5a20c0(0x194)])==null||_0x456432[_0x5a20c0(0x197)]();}[_0x232304(0x112)](){const _0x41a52c=_0x232304;this['_status$'][_0x41a52c(0xfa)]('idle'),this[_0x41a52c(0x15f)]();}},exports[_0x232304(0x103)]=P([S(0x2,o[_0x232304(0x1ba)]),S(0x3,o[_0x232304(0x182)](E)),S(0x4,o[_0x232304(0x104)])],exports['LiveShareCoordinator']);function $(){const _0x1bf6da=_0x232304,_0x532c2a=p[_0x1bf6da(0x14f)](exports['LiveShareController']),_0x10c4d2=p[_0x1bf6da(0x14f)](o[_0x1bf6da(0x185)]),_0x4427c2=p['useObservable'](()=>_0x10c4d2[_0x1bf6da(0x165)](o['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0xa8b7a,_0x275377]=v[_0x1bf6da(0x1b5)](null),[_0xa3f4e6,_0x338346]=v[_0x1bf6da(0x1b5)](u['IDLE']),_0x6fe844=v[_0x1bf6da(0x162)](null);return v[_0x1bf6da(0x14d)](()=>(_0x4427c2&&_0x532c2a[_0x1bf6da(0x153)](_0x4427c2[_0x1bf6da(0x1c0)]())[_0x1bf6da(0x190)](_0x3aa7cb=>{const _0x46943b=_0x1bf6da;_0x275377(_0x3aa7cb),_0x6fe844['current']=_0x3aa7cb[_0x46943b(0x116)]['subscribe'](_0x2f6eea=>{_0x338346(_0x2f6eea);});}),()=>{const _0x271bca=_0x1bf6da;var _0x1c6f58;(_0x1c6f58=_0x6fe844['current'])==null||_0x1c6f58[_0x271bca(0x1a5)](),_0x6fe844[_0x271bca(0x1b3)]=null;}),[_0x4427c2,_0x532c2a]),_0xa8b7a?l[_0x1bf6da(0x105)](f[_0x1bf6da(0x189)],{'align':_0x1bf6da(0x1c7),'disabled':_0xa3f4e6===u[_0x1bf6da(0x17e)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l['jsx'](W,{'status':_0xa3f4e6,'coordinator':_0xa8b7a}),'children':l[_0x1bf6da(0x105)]('button',{'className':f[_0x1bf6da(0x108)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xa3f4e6===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xa3f4e6!==u['OFFLINE']}),'type':_0x1bf6da(0x142),'children':l[_0x1bf6da(0x105)](R,{'className':_0x1bf6da(0x131)})})}):null;}function W(_0x542fdb){const _0x727165=_0x232304,{status:_0x584776,coordinator:_0x5a03f8}=_0x542fdb;switch(_0x584776){case u['IDLE']:return l[_0x727165(0x105)](G,{'coordinator':_0x5a03f8});case u['FOLLOWING']:return l[_0x727165(0x105)](B,{'coordinator':_0x5a03f8});case u[_0x727165(0x154)]:return l[_0x727165(0x105)](Y,{'coordinator':_0x5a03f8});case u[_0x727165(0x17e)]:return l['jsx'](J,{});case u[_0x727165(0x199)]:return l[_0x727165(0x105)](Z,{'coordinator':_0x5a03f8});default:return null;}}function G(_0x3183ea){const _0x340a43=_0x232304,{coordinator:_0x4f1b97}=_0x3183ea;return l['jsxs'](l['Fragment'],{'children':[l['jsx'](_0x340a43(0x192),{'className':_0x340a43(0x136),'children':_0x340a43(0x1c6)}),l['jsx'](f[_0x340a43(0x146)],{'onClick':()=>_0x4f1b97[_0x340a43(0xf8)](),'children':_0x340a43(0x10c)})]});}function B(_0x20f344){const _0x17b0a0=_0x232304,{coordinator:_0x4a2dd5}=_0x20f344;return l[_0x17b0a0(0x101)](l[_0x17b0a0(0x1ab)],{'children':[l[_0x17b0a0(0x105)](_0x17b0a0(0x192),{'className':_0x17b0a0(0x136),'children':_0x17b0a0(0x1b9)}),l[_0x17b0a0(0x105)](f[_0x17b0a0(0x146)],{'onClick':()=>_0x4a2dd5[_0x17b0a0(0x134)](),'children':'Stop\x20following'})]});}function Y(_0x4363cf){const _0x4ac7f9=_0x232304,{coordinator:_0x5c07be}=_0x4363cf;return l[_0x4ac7f9(0x101)](l[_0x4ac7f9(0x1ab)],{'children':[l[_0x4ac7f9(0x105)](_0x4ac7f9(0x192),{'className':_0x4ac7f9(0x136),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x4ac7f9(0x105)](f[_0x4ac7f9(0x146)],{'variant':'text','onClick':()=>_0x5c07be[_0x4ac7f9(0x117)](),'children':_0x4ac7f9(0x1a1)})]});}function Z(_0x2e5620){const _0x414281=_0x232304,{coordinator:_0x346346}=_0x2e5620;return l[_0x414281(0x101)](l[_0x414281(0x1ab)],{'children':[l[_0x414281(0x105)](_0x414281(0x192),{'className':_0x414281(0x136),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x414281(0x105)](f[_0x414281(0x146)],{'variant':'default','onClick':()=>_0x346346[_0x414281(0x151)](),'children':_0x414281(0x170)})]});}function J(){const _0x3e7966=_0x232304;return l[_0x3e7966(0x105)](l[_0x3e7966(0x1ab)],{'children':_0x3e7966(0xfe)});}var K=Object['getOwnPropertyDescriptor'],z=(_0x3fe5e3,_0x4dc42b,_0x3c8082,_0x22ba9e)=>{const _0x4fc2e8=_0x232304;for(var _0x4bd88f=_0x22ba9e>0x1?void 0x0:_0x22ba9e?K(_0x4dc42b,_0x3c8082):_0x4dc42b,_0x479160=_0x3fe5e3[_0x4fc2e8(0x1c3)]-0x1,_0x2305dc;_0x479160>=0x0;_0x479160--)(_0x2305dc=_0x3fe5e3[_0x479160])&&(_0x4bd88f=_0x2305dc(_0x4bd88f)||_0x4bd88f);return _0x4bd88f;},L=(_0x2ff787,_0x44f860)=>(_0x21e00f,_0x488c61)=>_0x44f860(_0x21e00f,_0x488c61,_0x2ff787);exports[_0x232304(0x161)]=class extends o[_0x232304(0x171)]{constructor(_0x1229cf,_0xa4779e){const _0x5304e1=_0x232304;super(),this[_0x5304e1(0x17a)]=_0x1229cf,this[_0x5304e1(0x12e)]=_0xa4779e,this['_mountLiveShare']();}[_0x232304(0x1bc)](){const _0x1a34c3=_0x232304;this[_0x1a34c3(0x1b1)](this['_uiPartsService']['registerComponent'](p[_0x1a34c3(0x16d)][_0x1a34c3(0x127)],()=>p[_0x1a34c3(0x138)]($,this[_0x1a34c3(0x17a)])));}},exports[_0x232304(0x161)]=z([L(0x0,o[_0x232304(0x182)](o[_0x232304(0xff)])),L(0x1,p[_0x232304(0x12c)])],exports[_0x232304(0x161)]);const Q=_0x232304(0x1a4),w={};var X=Object[_0x232304(0x143)],ee=(_0x3d9f42,_0x1622a5,_0x5e2dbf,_0x4225e0)=>{const _0x1304e9=_0x232304;for(var _0x5036fa=_0x4225e0>0x1?void 0x0:_0x4225e0?X(_0x1622a5,_0x5e2dbf):_0x1622a5,_0x5ae351=_0x3d9f42[_0x1304e9(0x1c3)]-0x1,_0x37f6e4;_0x5ae351>=0x0;_0x5ae351--)(_0x37f6e4=_0x3d9f42[_0x5ae351])&&(_0x5036fa=_0x37f6e4(_0x5036fa)||_0x5036fa);return _0x5036fa;},te=(_0x1f514e,_0x1442ab)=>(_0x8a8da1,_0x10466b)=>_0x1442ab(_0x8a8da1,_0x10466b,_0x1f514e);let m=class extends o['Disposable']{constructor(_0x203362){super(),this['_liveShareService']=_0x203362,this['_init']();}[_0x232304(0x13d)](){const _0x4c562a=_0x232304;[D[_0x4c562a(0xfc)]['id'],D[_0x4c562a(0x1c5)]['id'],C[_0x4c562a(0x196)]['id']]['forEach'](_0x22b2f4=>{const _0x4ae604=_0x4c562a;this[_0x4ae604(0x1b1)](this[_0x4ae604(0x13f)]['registerSharedOperation'](_0x22b2f4));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object['defineProperty'],se=Object[_0x232304(0x143)],ne=(_0x592a9c,_0x36bee7,_0xfa4f66)=>_0x36bee7 in _0x592a9c?ie(_0x592a9c,_0x36bee7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xfa4f66}):_0x592a9c[_0x36bee7]=_0xfa4f66,re=(_0x556ce2,_0x4d400f,_0x53d4fc,_0x19cc28)=>{const _0x2aaff6=_0x232304;for(var _0x88963c=_0x19cc28>0x1?void 0x0:_0x19cc28?se(_0x4d400f,_0x53d4fc):_0x4d400f,_0x18e306=_0x556ce2[_0x2aaff6(0x1c3)]-0x1,_0x2125d0;_0x18e306>=0x0;_0x18e306--)(_0x2125d0=_0x556ce2[_0x18e306])&&(_0x88963c=_0x2125d0(_0x88963c)||_0x88963c);return _0x88963c;},N=(_0x389191,_0x2e4814)=>(_0x399acc,_0x41d998)=>_0x2e4814(_0x399acc,_0x41d998,_0x389191),A=(_0x4713a0,_0x59075b,_0x36a895)=>ne(_0x4713a0,typeof _0x59075b!=_0x232304(0x12f)?_0x59075b+'':_0x59075b,_0x36a895);const oe='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x232304(0x19a)]=class extends o[_0x232304(0x1b0)]{constructor(_0x58e7f8=w,_0x2cb719,_0x51a32e){const _0x26aef2=_0x232304;super(),this[_0x26aef2(0x19d)]=_0x58e7f8,this[_0x26aef2(0x17a)]=_0x2cb719,this[_0x26aef2(0x13a)]=_0x51a32e;const {..._0x4b6603}=o[_0x26aef2(0x184)]({},w,this[_0x26aef2(0x19d)]);this[_0x26aef2(0x13a)][_0x26aef2(0x17f)](Q,_0x4b6603);}['onStarting'](){const _0x4d034f=_0x232304;o['registerDependencies'](this[_0x4d034f(0x17a)],o[_0x4d034f(0x1bf)]([[E],[exports[_0x4d034f(0x11a)]],[m],[exports[_0x4d034f(0x161)]]],this[_0x4d034f(0x19d)][_0x4d034f(0x1a7)])),o[_0x4d034f(0x1ad)](this[_0x4d034f(0x17a)],[[m]]);}[_0x232304(0x178)](){const _0x248e07=_0x232304;o[_0x248e07(0x1ad)](this[_0x248e07(0x17a)],[[exports[_0x248e07(0x161)]]]);}},A(exports[_0x232304(0x19a)],_0x232304(0x18c),o[_0x232304(0x1b8)][_0x232304(0x11d)]),A(exports['UniverLiveSharePlugin'],_0x232304(0x1a8),oe),exports['UniverLiveSharePlugin']=re([o[_0x232304(0x126)](b[_0x232304(0x12a)]),N(0x1,o['Inject'](o[_0x232304(0xff)])),N(0x2,o[_0x232304(0x1ba)])],exports[_0x232304(0x19a)]),exports[_0x232304(0xf3)]=$,exports[_0x232304(0x1c4)]=E,exports[_0x232304(0x13c)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5e9210=_0x3b6a;(function(_0x52d011,_0x191e05){const _0x4e276a=_0x3b6a,_0xc5dfe8=_0x52d011();while(!![]){try{const _0x4a7dfd=parseInt(_0x4e276a(0x1ec))/0x1+-parseInt(_0x4e276a(0x1eb))/0x2+-parseInt(_0x4e276a(0x1d4))/0x3+-parseInt(_0x4e276a(0x1e9))/0x4+-parseInt(_0x4e276a(0x1e0))/0x5+parseInt(_0x4e276a(0x1de))/0x6+-parseInt(_0x4e276a(0x1d9))/0x7*(-parseInt(_0x4e276a(0x1d1))/0x8);if(_0x4a7dfd===_0x191e05)break;else _0xc5dfe8['push'](_0xc5dfe8['shift']());}catch(_0x59bd65){_0xc5dfe8['push'](_0xc5dfe8['shift']());}}}(_0x1d5f,0x7d18e));function _0x3b6a(_0x2f38cb,_0x525b7d){const _0x1d5f9a=_0x1d5f();return _0x3b6a=function(_0x3b6a99,_0x17af90){_0x3b6a99=_0x3b6a99-0x1d1;let _0x4d83d8=_0x1d5f9a[_0x3b6a99];return _0x4d83d8;},_0x3b6a(_0x2f38cb,_0x525b7d);}import{LiveShareController as _0x2aff66,LiveShareStatus as _0x33a686}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x3a59c2}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x30e55d}from'@univerjs/sheets';import{SetScrollOperation as _0x351684}from'@univerjs/sheets-ui';import{FRange as _0x1bbd65}from'@univerjs/sheets/facade';import{FUniver as _0x5a8d0f,FEnum as _0xb38c6b}from'@univerjs/core/facade';function _0x1d5f(){const _0x2438a7=['No\x20active\x20workbook\x20found.','getLiveShareStatus','_injector','PRESENTING','startRow','1271720QMrMuR','stopFollowing','1911038LVDlyE','418063VliVNQ','getId','get','LiveShareStatusEnum','getStatus','3078616msMHJp','getActiveSheet','getUnitId','2226408gYRxKP','getActiveWorkbook','tryStartPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','extend','35MxvGKL','stopPresenting','_initialize','getLiveShareCoordinatorSync','startFollowing','2393772JTSWQU','getSheetId','1065885PZBVFc','IDLE','syncExecuteCommand','_commandService'];_0x1d5f=function(){return _0x2438a7;};return _0x1d5f();}class I extends _0x1bbd65{[_0x5e9210(0x1db)](_0x2ac189,_0x593de2,_0x319006,_0x70a6a,_0x43fc8d){const _0x59dad7=_0x5e9210,_0x464693=_0x2ac189[_0x59dad7(0x1ee)](_0x2aff66),_0x12da71=_0x2ac189[_0x59dad7(0x1ee)](_0x3a59c2),_0x18cc20=_0x593de2[_0x59dad7(0x1d3)](),_0x5edb58=_0x593de2[_0x59dad7(0x1d2)](),_0x117e08=_0x464693[_0x59dad7(0x1dc)](_0x18cc20);(_0x117e08==null?void 0x0:_0x117e08['getStatus']())!==_0x33a686[_0x59dad7(0x1e7)]||(_0x319006[_0x59dad7(0x1df)]()!==_0x5edb58['getSheetId']()&&this[_0x59dad7(0x1e3)]['executeCommand'](_0x30e55d['id'],{'unitId':_0x18cc20,'subUnitId':_0x319006[_0x59dad7(0x1df)]()}),!_0x12da71['getRenderById'](_0x18cc20))||_0x43fc8d[_0x59dad7(0x1e2)](_0x351684['id'],{'unitId':_0x593de2[_0x59dad7(0x1d3)](),'sheetId':_0x319006['getSheetId'](),'sheetViewStartRow':_0x70a6a[_0x59dad7(0x1e8)],'sheetViewStartColumn':_0x70a6a['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x1bbd65[_0x5e9210(0x1d8)](I);class m extends _0x5a8d0f{[_0x5e9210(0x1e5)](){const _0x4ad0b4=_0x5e9210;var _0x2caf4d,_0x167e8e;const _0x3a24a2=this['_injector'][_0x4ad0b4(0x1ee)](_0x2aff66),_0x355560=(_0x2caf4d=this['getActiveWorkbook']())==null?void 0x0:_0x2caf4d[_0x4ad0b4(0x1ed)]();if(!_0x355560)throw new Error(_0x4ad0b4(0x1e4));const _0x2b683d=_0x3a24a2[_0x4ad0b4(0x1dc)](_0x355560);return(_0x167e8e=_0x2b683d==null?void 0x0:_0x2b683d[_0x4ad0b4(0x1f0)]())!=null?_0x167e8e:_0x33a686[_0x4ad0b4(0x1e1)];}[_0x5e9210(0x1dd)](){const _0x3afcf8=_0x5e9210;var _0x1a9d3f;const _0xfa0c66=this[_0x3afcf8(0x1e6)][_0x3afcf8(0x1ee)](_0x2aff66),_0x422017=(_0x1a9d3f=this[_0x3afcf8(0x1d5)]())==null?void 0x0:_0x1a9d3f['getId']();if(!_0x422017)throw new Error(_0x3afcf8(0x1e4));const _0xdc4a98=_0xfa0c66[_0x3afcf8(0x1dc)](_0x422017);if(!_0xdc4a98)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xdc4a98[_0x3afcf8(0x1dd)]();}[_0x5e9210(0x1ea)](){const _0x39a81a=_0x5e9210;var _0x26708a;const _0x1b94a0=this['_injector'][_0x39a81a(0x1ee)](_0x2aff66),_0x141235=(_0x26708a=this[_0x39a81a(0x1d5)]())==null?void 0x0:_0x26708a[_0x39a81a(0x1ed)]();if(!_0x141235)throw new Error(_0x39a81a(0x1e4));const _0xa0e72e=_0x1b94a0[_0x39a81a(0x1dc)](_0x141235);if(!_0xa0e72e)throw new Error(_0x39a81a(0x1d7));_0xa0e72e[_0x39a81a(0x1ea)]();}['startPresenting'](){const _0xbb30c=_0x5e9210;var _0x26e6c4;const _0x67140f=this[_0xbb30c(0x1e6)][_0xbb30c(0x1ee)](_0x2aff66),_0x3c333d=(_0x26e6c4=this[_0xbb30c(0x1d5)]())==null?void 0x0:_0x26e6c4[_0xbb30c(0x1ed)]();if(!_0x3c333d)throw new Error(_0xbb30c(0x1e4));const _0x38d729=_0x67140f[_0xbb30c(0x1dc)](_0x3c333d);if(!_0x38d729)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x38d729[_0xbb30c(0x1d6)]();}[_0x5e9210(0x1da)](){const _0x114dde=_0x5e9210;var _0x458ea7;const _0x2e9eb8=this[_0x114dde(0x1e6)]['get'](_0x2aff66),_0x5f0601=(_0x458ea7=this[_0x114dde(0x1d5)]())==null?void 0x0:_0x458ea7[_0x114dde(0x1ed)]();if(!_0x5f0601)throw new Error(_0x114dde(0x1e4));const _0x49b3fc=_0x2e9eb8['getLiveShareCoordinatorSync'](_0x5f0601);if(!_0x49b3fc)throw new Error(_0x114dde(0x1d7));_0x49b3fc[_0x114dde(0x1da)]();}}_0x5a8d0f[_0x5e9210(0x1d8)](m);class C extends _0xb38c6b{get[_0x5e9210(0x1ef)](){return _0x33a686;}}_0xb38c6b[_0x5e9210(0x1d8)](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x31e0fe=_0x2156;(function(_0x790349,_0x474d36){const _0x1fc443=_0x2156,_0x42c72b=_0x790349();while(!![]){try{const _0x2d8182=-parseInt(_0x1fc443(0x122))/0x1+-parseInt(_0x1fc443(0x159))/0x2*(parseInt(_0x1fc443(0x14a))/0x3)+parseInt(_0x1fc443(0x110))/0x4*(parseInt(_0x1fc443(0xf1))/0x5)+parseInt(_0x1fc443(0x103))/0x6*(parseInt(_0x1fc443(0xc1))/0x7)+-parseInt(_0x1fc443(0x106))/0x8+-parseInt(_0x1fc443(0x11b))/0x9+parseInt(_0x1fc443(0x157))/0xa;if(_0x2d8182===_0x474d36)break;else _0x42c72b['push'](_0x42c72b['shift']());}catch(_0x1d3f65){_0x42c72b['push'](_0x42c72b['shift']());}}}(_0x5b50,0x699ec));var J=Object[_0x31e0fe(0x11e)],K=(_0x3db337,_0x2b126c,_0x131200)=>_0x2b126c in _0x3db337?J(_0x3db337,_0x2b126c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x131200}):_0x3db337[_0x2b126c]=_0x131200,u=(_0x2520db,_0x21a086,_0x52a2b9)=>K(_0x2520db,typeof _0x21a086!=_0x31e0fe(0x114)?_0x21a086+'':_0x21a086,_0x52a2b9);import{Disposable as _0x228b43,toDisposable as _0x5ef63b,IUniverInstanceService as _0x317c62,Inject as _0x3458e3,Injector as _0x5618b7,IConfigService as _0x1c3f63,ICommandService as _0x1e5b71,RxDisposable as _0x2500e7,UniverInstanceType as _0x43d276,DisposableCollection as _0x24f9a5,CommandType as _0x2a21f4,DependentOn as _0x34be54,Plugin as _0x4e1973,merge as _0x50ef25,registerDependencies as _0x484001,mergeOverrideWithDependencies as _0x3f0d95,touchDependencies as _0x24c6ea}from'@univerjs/core';import{useDependency as _0x28b1d7,useObservable as _0x20ed0a,IUIPartsService as _0x584a6b,BuiltInUIPart as _0x3c0cfc,connectInjector as _0x18b5ed}from'@univerjs/ui';import{jsx as _0x17901e,jsxs as _0x19be63,Fragment as _0x30f380}from'react/jsx-runtime';import{Dropdown as _0x24d95f,clsx as _0x4bc289,Button as _0x22044f}from'@univerjs/design';function _0x5b50(){const _0x403622=['complete','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','attrs','string','idle','HEADER_MENU','ONLINE','unsubscribe','data','reverse','random','following','1em','registerSharedOperation','NEW_CHANGESETS','0\x200\x2017\x2017','onCommandExecuted','replace','_handleNewHost','defIds','LIVESHARE_OPERATION','getLiveShareCoordinatorSync','evenodd','NOT_FOLLOWING','mask','getCurrentTypeOfUnit$','getLiveShareCoordinator','UNIVER_UNKNOWN','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','SAME_OPERATION_SHARE_INTERVAL','memberID','_status$','disposeWithMe','getValue','_commandDisposable','480295qHdBbQ','setConfig','LIVESHARE_TERMINATE','_handleOperation','xlink:href','dispose','next','_beIdle','delete','getTypeOfUnitDisposed$','colorChannel1','has','You\x27re\x20following\x20the\x20presenter','entries','_fetchOperations','_unitID','_config','_uiPartsService','92898KiFgFq','_startFollowing','_handleTerminate','323048AUHuog','stopPresenting','_stopFollowing','_liveShareService','add','end','stopFollowing','_reporters','fill','includes','4mTxtLu','FOLLOWING','_sharedOperations','tag','symbol','_collabSessionService','_init','path','_status','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','status$','4246020rGffZR','_presenter','_handleNewChangeSets','defineProperty','LiveShareIcon','UNIVER_LIVE_SHARE_PLUGIN','_handleOffline','637803ciwrbA','shouldShareOperation','asObservable','div','presenter','then','IDLE','createInstance','parse','none','get','_configService','live-share.config','currentColor','sheet','type','sessionStatus$','onRendered','assign','map','params','Start\x20following','_univerInstanceService','_injector','substring','UNIVER_SHEET','getStatus','UniverIcon','_entities','OFFLINE','getOwnPropertyDescriptor','LIVESHARE_REQUEST_HOST','getInitialStates','Stop\x20following','idSuffix','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','children','subscribe','send','_stopPresenting','186702lzSbsx','executeCommand','stringify','_startLiveShareCoordinator','univerjs-icon\x20univerjs-icon-','forEach','dispose$','set','univer-mb-3\x20univer-w-full\x20univer-text-sm','PRESENTING','_startPresenting','toString','length','13802580beKSVg','requireSession','14eUSTeb','text','You\x27re\x20not\x20following\x20the\x20presenter','getUnitId','not-following','button','_handleOnline','unitId','startFollowing','displayName','getConfig','values','event$','Stop\x20presenting','245EOypGV','current','LIVESHARE_NEW_HOST','offline','pipe','_collabSession','url(#$1','_commandService','presenting','getMemberID','You\x27are\x20offline.','onStarting','Present\x20this\x20document'];_0x5b50=function(){return _0x403622;};return _0x5b50();}import{useRef as _0x58a2f7,createElement as _0x2db518,forwardRef as _0x42a9a1,useState as _0x5e4848,useEffect as _0x5a2871}from'react';import{CollaborationEvent as _0x51229d,parseProtocolChangeset as _0x18e355}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x537dba,SessionStatus as _0x41a8e6,UniverCollaborationClientPlugin as _0xe5cc13}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x20a015,SetWorksheetActiveOperation as _0x51cc86}from'@univerjs/sheets';import{BehaviorSubject as _0x3363c0,Subject as _0x412524}from'rxjs';import{takeUntil as _0xf2e89d,throttleTime as _0x2c8eeb}from'rxjs/operators';import{SetZoomRatioOperation as _0x516bb6,SetScrollOperation as _0x4ac1aa}from'@univerjs/sheets-ui';function k({ref:_0x1bd7a8,..._0x2e1589}){const _0x5a18c2=_0x31e0fe,{icon:_0x40c36a,id:_0x166bb7,className:_0x3775b2,extend:_0x27651e,..._0x97945c}=_0x2e1589,_0x5348b6=(_0x5a18c2(0x14e)+_0x166bb7+'\x20'+(_0x3775b2||''))['trim'](),_0x6c74a7=_0x58a2f7('_'+Oe());return G(_0x40c36a,''+_0x166bb7,{'defIds':_0x40c36a[_0x5a18c2(0xe1)],'idSuffix':_0x6c74a7[_0x5a18c2(0xc2)]},{'ref':_0x1bd7a8,'className':_0x5348b6,..._0x97945c},_0x27651e);}function G(_0x44b7a0,_0x8b3723,_0x512f4d,_0x18cfe5,_0x2e6872){const _0x33b159=_0x31e0fe;return _0x2db518(_0x44b7a0['tag'],{'key':_0x8b3723,...be(_0x44b7a0,_0x512f4d,_0x2e6872),..._0x18cfe5},(Ee(_0x44b7a0,_0x512f4d)[_0x33b159(0x146)]||[])[_0x33b159(0x135)]((_0x44d82a,_0x195b36)=>G(_0x44d82a,_0x8b3723+'-'+_0x44b7a0['tag']+'-'+_0x195b36,_0x512f4d,void 0x0,_0x2e6872)));}function be(_0x50d6a7,_0xb55631,_0x53c9b4){const _0x36e0e3=_0x31e0fe,_0x52e9f7={..._0x50d6a7['attrs']};_0x53c9b4!=null&&_0x53c9b4[_0x36e0e3(0xfb)]&&_0x52e9f7[_0x36e0e3(0x10e)]==='colorChannel1'&&(_0x52e9f7[_0x36e0e3(0x10e)]=_0x53c9b4['colorChannel1']),_0x50d6a7[_0x36e0e3(0x113)]===_0x36e0e3(0xe6)&&_0x52e9f7['id']&&(_0x52e9f7['id']=_0x52e9f7['id']+_0xb55631[_0x36e0e3(0x144)]),Object['entries'](_0x52e9f7)[_0x36e0e3(0x14f)](([_0x2ed913,_0x1b370f])=>{const _0x233cc7=_0x36e0e3;_0x2ed913===_0x233cc7(0xe6)&&typeof _0x1b370f=='string'&&(_0x52e9f7[_0x2ed913]=_0x1b370f[_0x233cc7(0xdf)](/url\(#(.*)\)/,_0x233cc7(0xc7)+_0xb55631[_0x233cc7(0x144)]+')'));});const {defIds:_0x3854fb}=_0xb55631;return!_0x3854fb||_0x3854fb[_0x36e0e3(0x156)]===0x0||(_0x50d6a7[_0x36e0e3(0x113)]==='use'&&_0x52e9f7['xlink:href']&&(_0x52e9f7['xlink:href']=_0x52e9f7[_0x36e0e3(0xf5)]+_0xb55631[_0x36e0e3(0x144)]),Object[_0x36e0e3(0xfe)](_0x52e9f7)[_0x36e0e3(0x14f)](([_0x1c5354,_0x11f227])=>{const _0x3666a3=_0x36e0e3;typeof _0x11f227==_0x3666a3(0xd1)&&(_0x52e9f7[_0x1c5354]=_0x11f227['replace'](/url\(#(.*)\)/,_0x3666a3(0xc7)+_0xb55631[_0x3666a3(0x144)]+')'));})),_0x52e9f7;}function Ee(_0x55b46f,_0x8f397){const _0x3f08c6=_0x31e0fe;var _0x41eb48;const {defIds:_0x4dffc6}=_0x8f397;return!_0x4dffc6||_0x4dffc6['length']===0x0?_0x55b46f:_0x55b46f['tag']==='defs'&&((_0x41eb48=_0x55b46f[_0x3f08c6(0x146)])!=null&&_0x41eb48[_0x3f08c6(0x156)])?{..._0x55b46f,'children':_0x55b46f['children'][_0x3f08c6(0x135)](_0x26a332=>typeof _0x26a332[_0x3f08c6(0xd0)]['id']==_0x3f08c6(0xd1)&&_0x4dffc6&&_0x4dffc6['includes'](_0x26a332[_0x3f08c6(0xd0)]['id'])?{..._0x26a332,'attrs':{..._0x26a332[_0x3f08c6(0xd0)],'id':_0x26a332[_0x3f08c6(0xd0)]['id']+_0x8f397['idSuffix']}}:_0x26a332)}:_0x55b46f;}function Oe(){const _0x2c1d6a=_0x31e0fe;return Math[_0x2c1d6a(0xd8)]()[_0x2c1d6a(0x155)](0x24)[_0x2c1d6a(0x13a)](0x2,0x8);}k[_0x31e0fe(0xbc)]=_0x31e0fe(0x13d);const we={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x31e0fe(0x12b),'viewBox':_0x31e0fe(0xdd),'width':_0x31e0fe(0xda),'height':_0x31e0fe(0xda)},'children':[{'tag':_0x31e0fe(0x117),'attrs':{'fill':'currentColor','d':_0x31e0fe(0xcf)}},{'tag':_0x31e0fe(0x117),'attrs':{'fill':_0x31e0fe(0x12f),'d':_0x31e0fe(0xea),'fillRule':_0x31e0fe(0xe4),'clipRule':_0x31e0fe(0xe4)}}]},W=_0x42a9a1(function(_0x493e85,_0x258d8f){const _0x1efa15=_0x31e0fe;return _0x2db518(k,Object[_0x1efa15(0x134)]({},_0x493e85,{'id':'live-share-icon','ref':_0x258d8f,'icon':we}));});W['displayName']=_0x31e0fe(0x11f);class L extends _0x228b43{constructor(){const _0x4533b7=_0x31e0fe;super(...arguments),u(this,_0x4533b7(0x112),new Set()),u(this,_0x4533b7(0x10d),new Set());}[_0x31e0fe(0xdb)](_0x15536a){const _0x56d8f9=_0x31e0fe;return this[_0x56d8f9(0x112)][_0x56d8f9(0x10a)](_0x15536a),_0x5ef63b(()=>this[_0x56d8f9(0x112)]['delete'](_0x15536a));}['registerInitialStateReporter'](_0x316e22){const _0x5d38e1=_0x31e0fe;return this[_0x5d38e1(0x10d)]['add'](_0x316e22),_0x5ef63b(()=>this['_reporters'][_0x5d38e1(0xf9)](_0x316e22));}[_0x31e0fe(0x123)](_0x46da99){const _0x1724a1=_0x31e0fe;return this[_0x1724a1(0x112)][_0x1724a1(0xfc)](_0x46da99);}[_0x31e0fe(0x142)](_0xeedf09){const _0x25bba2=_0x31e0fe;return Array['from'](this[_0x25bba2(0x10d)])[_0x25bba2(0x135)](_0x29dc5d=>_0x29dc5d(_0xeedf09));}}var Ne=Object[_0x31e0fe(0x140)],Y=(_0x45d860,_0x73ba24,_0x1579c0,_0xf72ddc)=>{for(var _0xaba4a=_0xf72ddc>0x1?void 0x0:_0xf72ddc?Ne(_0x73ba24,_0x1579c0):_0x73ba24,_0x1001e9=_0x45d860['length']-0x1,_0x3aba27;_0x1001e9>=0x0;_0x1001e9--)(_0x3aba27=_0x45d860[_0x1001e9])&&(_0xaba4a=_0x3aba27(_0xaba4a)||_0xaba4a);return _0xaba4a;},_=(_0x18447b,_0x497803)=>(_0x314039,_0x593479)=>_0x497803(_0x314039,_0x593479,_0x18447b);let S=class extends _0x2500e7{constructor(_0x55eb58,_0x4da080,_0x171ff1){const _0x22c51f=_0x31e0fe;super(),u(this,'_entities',new Map()),(this[_0x22c51f(0x138)]=_0x55eb58,this[_0x22c51f(0x139)]=_0x4da080,this[_0x22c51f(0x115)]=_0x171ff1,this['_init']());}async[_0x31e0fe(0xe8)](_0xa6ccb7){const _0x43ebec=_0x31e0fe;return this['_entities'][_0x43ebec(0xfc)](_0xa6ccb7)||await this[_0x43ebec(0x14d)](_0xa6ccb7),this['_entities']['get'](_0xa6ccb7);}[_0x31e0fe(0xe3)](_0x1a3558){const _0x608d02=_0x31e0fe;var _0x5a03cb;return(_0x5a03cb=this[_0x608d02(0x13e)][_0x608d02(0x12c)](_0x1a3558))!=null?_0x5a03cb:null;}['_init'](){const _0x217b4e=_0x31e0fe;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x43d276[_0x217b4e(0x13b)])[_0x217b4e(0xc5)](_0xf2e89d(this[_0x217b4e(0x150)]))[_0x217b4e(0x147)](async _0x251488=>{const _0x1751d0=_0x217b4e,_0x52792f=_0x251488['getUnitId']();this[_0x1751d0(0x13e)][_0x1751d0(0xfc)](_0x52792f)||this[_0x1751d0(0x14d)](_0x52792f);}),this[_0x217b4e(0x138)][_0x217b4e(0xfa)](_0x43d276[_0x217b4e(0x13b)])[_0x217b4e(0xc5)](_0xf2e89d(this[_0x217b4e(0x150)]))['subscribe'](_0x1eb536=>{const _0x436c8d=_0x217b4e,_0x208fcd=_0x1eb536[_0x436c8d(0x15c)](),_0x3d33dd=this[_0x436c8d(0x13e)][_0x436c8d(0x12c)](_0x208fcd);_0x3d33dd==null||_0x3d33dd[_0x436c8d(0xf6)]();});}async[_0x31e0fe(0x14d)](_0x14b2bc){const _0x2c26b4=_0x31e0fe,_0x14256a=await this[_0x2c26b4(0x115)][_0x2c26b4(0x158)](_0x14b2bc),_0x14cf32=this['_injector'][_0x2c26b4(0x129)](N,_0x14b2bc,_0x14256a);return _0x14cf32['init'](),this[_0x2c26b4(0x13e)][_0x2c26b4(0x151)](_0x14b2bc,_0x14cf32),_0x14cf32;}};S=Y([_(0x0,_0x317c62),_(0x1,_0x3458e3(_0x5618b7)),_(0x2,_0x3458e3(_0x537dba))],S);var c=(_0x10b00f=>(_0x10b00f[_0x31e0fe(0x13f)]=_0x31e0fe(0xc4),_0x10b00f[_0x31e0fe(0x128)]=_0x31e0fe(0xd2),_0x10b00f[_0x31e0fe(0x111)]=_0x31e0fe(0xd9),_0x10b00f[_0x31e0fe(0xe5)]='not-following',_0x10b00f[_0x31e0fe(0x153)]='presenting',_0x10b00f))(c||{});function _0x2156(_0x4ecbaf,_0x3af9de){const _0x5b5021=_0x5b50();return _0x2156=function(_0x2156f0,_0x2560e0){_0x2156f0=_0x2156f0-0xb7;let _0x46e9c7=_0x5b5021[_0x2156f0];return _0x46e9c7;},_0x2156(_0x4ecbaf,_0x3af9de);}const Ce=_0x31e0fe(0xeb),De=0xc8;let N=class extends _0x2500e7{constructor(_0x474d6c,_0x408502,_0x392c54,_0x546258,_0x38825d){const _0x56aa39=_0x31e0fe;super(),u(this,'_status$',new _0x3363c0(_0x56aa39(0xd2))),u(this,'status$',this[_0x56aa39(0xed)][_0x56aa39(0x124)]()),u(this,_0x56aa39(0x116),!0x1),u(this,'_commandDisposable',null),u(this,_0x56aa39(0x11c),null),(this[_0x56aa39(0x100)]=_0x474d6c,this[_0x56aa39(0xc6)]=_0x408502,this['_configService']=_0x392c54,this[_0x56aa39(0x109)]=_0x546258,this[_0x56aa39(0xc8)]=_0x38825d);}get[_0x31e0fe(0x118)](){const _0x5a207f=_0x31e0fe;return this['_status$'][_0x5a207f(0xef)]();}['dispose'](){const _0xc64f10=_0x31e0fe;var _0x7e83e8;(_0x7e83e8=this[_0xc64f10(0xf0)])==null||_0x7e83e8[_0xc64f10(0xf6)](),this[_0xc64f10(0xed)]['next'](_0xc64f10(0xd2)),this['_status$']['complete']();}[_0x31e0fe(0x13c)](){return this['_status'];}['init'](){const _0x15fd65=_0x31e0fe;this['_init']||(this[_0x15fd65(0x116)]=!0x0,this[_0x15fd65(0xc6)][_0x15fd65(0x132)][_0x15fd65(0xc5)](_0xf2e89d(this[_0x15fd65(0x150)]))[_0x15fd65(0x147)](_0xc51298=>{const _0x4b90fe=_0x15fd65;switch(_0xc51298){case _0x41a8e6[_0x4b90fe(0x13f)]:this[_0x4b90fe(0x121)]();break;case _0x41a8e6[_0x4b90fe(0xd4)]:this[_0x4b90fe(0xb9)]();break;}}),this[_0x15fd65(0xc6)][_0x15fd65(0xbf)][_0x15fd65(0xc5)](_0xf2e89d(this[_0x15fd65(0x150)]))[_0x15fd65(0x147)](_0x3b9818=>{const _0x50fbd7=_0x15fd65,{eventID:_0x5f0a81}=_0x3b9818;switch(_0x5f0a81){case _0x51229d[_0x50fbd7(0xc3)]:this[_0x50fbd7(0xe0)](_0x3b9818);break;case _0x51229d[_0x50fbd7(0xe2)]:this[_0x50fbd7(0xf4)](_0x3b9818);break;case _0x51229d['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x51229d[_0x50fbd7(0xdc)]:this['_handleNewChangeSets'](_0x3b9818);break;}}));}['tryStartPresenting'](){const _0xfb5af4=_0x31e0fe;this[_0xfb5af4(0xc6)][_0xfb5af4(0x148)]({'eventID':_0x51229d[_0xfb5af4(0x141)],'data':{'unitID':this[_0xfb5af4(0x100)],'userID':this[_0xfb5af4(0xc6)]['getMemberID']()}},this[_0xfb5af4(0x100)]);}[_0x31e0fe(0x107)](){const _0x3c0ab5=_0x31e0fe;this[_0x3c0ab5(0x118)]===_0x3c0ab5(0xc9)&&(this[_0x3c0ab5(0xed)][_0x3c0ab5(0xf7)]('idle'),this[_0x3c0ab5(0xc6)][_0x3c0ab5(0x148)]({'eventID':_0x51229d[_0x3c0ab5(0xf3)],'data':{'unitID':this[_0x3c0ab5(0x100)]}},this[_0x3c0ab5(0x100)]));}[_0x31e0fe(0xbb)](){const _0x1f4608=_0x31e0fe;this[_0x1f4608(0x118)]==='not-following'&&(this[_0x1f4608(0xed)][_0x1f4608(0xf7)]('following'),this[_0x1f4608(0x104)]());}[_0x31e0fe(0x10c)](){const _0x59d6c8=_0x31e0fe;this['_status']===_0x59d6c8(0xd9)&&this['_stopFollowing']();}[_0x31e0fe(0xe0)](_0x4d09bb){const _0x37cb3a=_0x31e0fe,{presenter:_0x1b3a1f}=_0x4d09bb['data'],_0x560ad5=this[_0x37cb3a(0xc6)][_0x37cb3a(0xca)]();this['_presenter']=_0x1b3a1f,_0x1b3a1f===_0x560ad5?(this[_0x37cb3a(0x108)](),this['_startPresenting']()):this[_0x37cb3a(0x118)]!=='not-following'&&(this[_0x37cb3a(0x149)](),this['_startFollowing']());}[_0x31e0fe(0xff)](){const _0xaa4ebe=_0x31e0fe,_0x3a4a34={'eventID':_0x51229d['LIVESHARE_FETCH_OPERATIONS']};this[_0xaa4ebe(0xc6)][_0xaa4ebe(0x148)](_0x3a4a34,this[_0xaa4ebe(0x100)]);}[_0x31e0fe(0x105)](){const _0x497cdb=_0x31e0fe;this['_presenter']=null,this[_0x497cdb(0x118)]!=='presenting'&&this[_0x497cdb(0xf8)]();}[_0x31e0fe(0x11d)](_0x4065a4){const _0x163a88=_0x31e0fe;if(this['_status']===_0x163a88(0xd9)&&this['_presenter']===_0x4065a4['data'][_0x163a88(0xec)]){const _0x46ad8c=_0x18e355(_0x4065a4[_0x163a88(0xd6)])['mutations'][_0x163a88(0xd7)]()['find'](_0x13a32c=>_0x13a32c['id']===_0x20a015['id']);if(_0x46ad8c){const _0x5f0172=_0x46ad8c['params'][_0x163a88(0xba)],_0x2252cb=_0x46ad8c['params'][_0x163a88(0x130)]['id'];setTimeout(()=>{const _0x4cedcc=_0x163a88;this['_commandService'][_0x4cedcc(0x14b)](_0x51cc86['id'],{'unitId':_0x5f0172,'subUnitId':_0x2252cb},{'fromCollab':!0x0});});}}}[_0x31e0fe(0x154)](){const _0x4d1d5b=_0x31e0fe;this['_status$']['next'](_0x4d1d5b(0xc9));const _0x3b8b1a=new Map(),_0x458268=this[_0x4d1d5b(0xf0)]=new _0x24f9a5();_0x458268[_0x4d1d5b(0x10a)](_0x5ef63b(()=>{const _0x190f1a=_0x4d1d5b;_0x3b8b1a[_0x190f1a(0x14f)](_0x77114b=>_0x77114b[_0x190f1a(0xce)]()),_0x3b8b1a['clear']();})),_0x458268[_0x4d1d5b(0x10a)](this[_0x4d1d5b(0xc8)][_0x4d1d5b(0xde)](_0x4bd36b=>{const _0x339294=_0x4d1d5b;var _0xdbc029;if(_0x4bd36b['type']!==_0x2a21f4['OPERATION']||!this[_0x339294(0x109)]['shouldShareOperation'](_0x4bd36b['id']))return;const {id:_0x200d1f}=_0x4bd36b;let _0x2c9bd6;_0x3b8b1a['has'](_0x200d1f)?_0x2c9bd6=_0x3b8b1a[_0x339294(0x12c)](_0x200d1f):(_0x2c9bd6=new _0x412524(),_0x3b8b1a[_0x339294(0x151)](_0x200d1f,_0x2c9bd6),_0x2c9bd6[_0x339294(0xc5)](_0x2c8eeb((_0xdbc029=this[_0x339294(0x12d)][_0x339294(0xbd)](Ce))!=null?_0xdbc029:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1e493d=>{const _0x528b64=_0x339294;this[_0x528b64(0xc6)][_0x528b64(0x148)]({'eventID':_0x51229d[_0x528b64(0xe2)],'data':{'unitID':this[_0x528b64(0x100)],'operations':{[_0x1e493d['id']]:{'id':_0x1e493d['id'],'params':JSON[_0x528b64(0x14c)](_0x1e493d['params'])}}}},this[_0x528b64(0x100)]);})),_0x2c9bd6[_0x339294(0xf7)](_0x4bd36b);})),this['_liveShareService']['getInitialStates'](this[_0x4d1d5b(0x100)])['forEach'](_0x4defc1=>this[_0x4d1d5b(0xc6)][_0x4d1d5b(0x148)]({'eventID':_0x51229d['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4d1d5b(0x100)],'operations':{[_0x4defc1['id']]:{'id':_0x4defc1['id'],'params':JSON[_0x4d1d5b(0x14c)](_0x4defc1[_0x4d1d5b(0x136)])}}}},this['_unitID']));}[_0x31e0fe(0x149)](){const _0x12d733=_0x31e0fe;var _0x2cd6f0;this[_0x12d733(0xed)][_0x12d733(0xf7)](_0x12d733(0xd2)),(_0x2cd6f0=this[_0x12d733(0xf0)])==null||_0x2cd6f0['dispose'](),this[_0x12d733(0xf0)]=null;}[_0x31e0fe(0x104)](){const _0x149a61=_0x31e0fe;var _0x471c96;(_0x471c96=this[_0x149a61(0xf0)])==null||_0x471c96[_0x149a61(0xf6)](),this[_0x149a61(0xed)][_0x149a61(0xf7)](_0x149a61(0xd9));}[_0x31e0fe(0xf8)](){const _0x1da58a=_0x31e0fe;var _0x521932;this[_0x1da58a(0xed)][_0x1da58a(0xf7)](_0x1da58a(0xd2)),(_0x521932=this[_0x1da58a(0xf0)])==null||_0x521932[_0x1da58a(0xf6)](),this[_0x1da58a(0xf0)]=null;}[_0x31e0fe(0x108)](){const _0x1a38f5=_0x31e0fe;var _0x4ae33f;this[_0x1a38f5(0xed)][_0x1a38f5(0xf7)]('not-following'),(_0x4ae33f=this[_0x1a38f5(0xf0)])==null||_0x4ae33f[_0x1a38f5(0xf6)]();}[_0x31e0fe(0xf4)](_0xda7a5a){const _0x145449=_0x31e0fe;if([_0x145449(0xc9),_0x145449(0xb7),_0x145449(0xc4)][_0x145449(0x10f)](this[_0x145449(0x118)])||!_0xda7a5a[_0x145449(0xd6)][_0x145449(0x126)]||_0xda7a5a[_0x145449(0xd6)][_0x145449(0x126)]===this[_0x145449(0xc6)][_0x145449(0xca)]())return;this[_0x145449(0x118)]===_0x145449(0xd2)&&this[_0x145449(0x104)]();const _0x4930dd=_0xda7a5a[_0x145449(0xd6)]['operations'];Object[_0x145449(0xbe)](_0x4930dd)['forEach'](_0xfc945=>{const _0xf918b1=_0x145449;this[_0xf918b1(0xc8)][_0xf918b1(0x14b)](_0xfc945['id'],_0xfc945[_0xf918b1(0x136)]?JSON[_0xf918b1(0x12a)](_0xfc945[_0xf918b1(0x136)]):null,{'fromCollab':!0x0});});}[_0x31e0fe(0x121)](){const _0x38c0f0=_0x31e0fe;var _0xd55dec;this['_status$'][_0x38c0f0(0xf7)](_0x38c0f0(0xc4)),(_0xd55dec=this[_0x38c0f0(0xf0)])==null||_0xd55dec['dispose']();}['_handleOnline'](){const _0x159811=_0x31e0fe;this['_status$']['next'](_0x159811(0xd2)),this[_0x159811(0xff)]();}};N=Y([_(0x2,_0x1c3f63),_(0x3,_0x3458e3(L)),_(0x4,_0x1e5b71)],N);function Le(){const _0x1d7bef=_0x31e0fe,_0x55bb7a=_0x28b1d7(S),_0x40b6c7=_0x28b1d7(_0x317c62),_0x5bc88a=_0x20ed0a(()=>_0x40b6c7[_0x1d7bef(0xe7)](_0x43d276[_0x1d7bef(0x13b)]),void 0x0,!0x1,[]),[_0x37f89d,_0x544345]=_0x5e4848(null),[_0x3f6ab9,_0x595009]=_0x5e4848(c[_0x1d7bef(0x128)]),_0x30e7be=_0x58a2f7(null);return _0x5a2871(()=>(_0x5bc88a&&_0x55bb7a[_0x1d7bef(0xe8)](_0x5bc88a[_0x1d7bef(0x15c)]())[_0x1d7bef(0x127)](_0x43ca4f=>{const _0x8db60f=_0x1d7bef;_0x544345(_0x43ca4f),_0x30e7be[_0x8db60f(0xc2)]=_0x43ca4f[_0x8db60f(0x11a)][_0x8db60f(0x147)](_0x4c868e=>{_0x595009(_0x4c868e);});}),()=>{const _0x106c21=_0x1d7bef;var _0x4d2e76;(_0x4d2e76=_0x30e7be['current'])==null||_0x4d2e76[_0x106c21(0xd5)](),_0x30e7be['current']=null;}),[_0x5bc88a,_0x55bb7a]),_0x37f89d?_0x17901e(_0x24d95f,{'align':_0x1d7bef(0x10b),'disabled':_0x3f6ab9===c['OFFLINE'],'className':_0x1d7bef(0x119),'overlay':_0x17901e(Re,{'status':_0x3f6ab9,'coordinator':_0x37f89d}),'children':_0x17901e('button',{'className':_0x4bc289(_0x1d7bef(0x145),{'univer-cursor-not-allowed':_0x3f6ab9===c[_0x1d7bef(0x13f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3f6ab9!==c[_0x1d7bef(0x13f)]}),'type':_0x1d7bef(0xb8),'children':_0x17901e(W,{'className':'univer-size-4'})})}):null;}function Re(_0x217568){const _0xe8d60a=_0x31e0fe,{status:_0x4d87ca,coordinator:_0x1e0159}=_0x217568;switch(_0x4d87ca){case c[_0xe8d60a(0x128)]:return _0x17901e($e,{'coordinator':_0x1e0159});case c['FOLLOWING']:return _0x17901e(xe,{'coordinator':_0x1e0159});case c[_0xe8d60a(0xe5)]:return _0x17901e(Pe,{'coordinator':_0x1e0159});case c[_0xe8d60a(0x13f)]:return _0x17901e(Te,{});case c['PRESENTING']:return _0x17901e(Ae,{'coordinator':_0x1e0159});default:return null;}}function $e(_0x5d46c7){const _0x592148=_0x31e0fe,{coordinator:_0x4ca482}=_0x5d46c7;return _0x19be63(_0x30f380,{'children':[_0x17901e('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x592148(0xcd)}),_0x17901e(_0x22044f,{'onClick':()=>_0x4ca482['tryStartPresenting'](),'children':'Start'})]});}function xe(_0x5a0919){const _0x49176b=_0x31e0fe,{coordinator:_0x98d896}=_0x5a0919;return _0x19be63(_0x30f380,{'children':[_0x17901e('div',{'className':_0x49176b(0x152),'children':_0x49176b(0xfd)}),_0x17901e(_0x22044f,{'onClick':()=>_0x98d896[_0x49176b(0x10c)](),'children':_0x49176b(0x143)})]});}function Pe(_0x5d82a4){const _0x3f5c57=_0x31e0fe,{coordinator:_0x1fb1b6}=_0x5d82a4;return _0x19be63(_0x30f380,{'children':[_0x17901e(_0x3f5c57(0x125),{'className':_0x3f5c57(0x152),'children':_0x3f5c57(0x15b)}),_0x17901e(_0x22044f,{'variant':_0x3f5c57(0x15a),'onClick':()=>_0x1fb1b6[_0x3f5c57(0xbb)](),'children':_0x3f5c57(0x137)})]});}function Ae(_0x1d8cfb){const _0x35f30c=_0x31e0fe,{coordinator:_0x65e032}=_0x1d8cfb;return _0x19be63(_0x30f380,{'children':[_0x17901e('div',{'className':_0x35f30c(0x152),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x17901e(_0x22044f,{'variant':'default','onClick':()=>_0x65e032[_0x35f30c(0x107)](),'children':_0x35f30c(0xc0)})]});}function Te(){const _0x3befb6=_0x31e0fe;return _0x17901e(_0x30f380,{'children':_0x3befb6(0xcb)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x12526f,_0x116b0f,_0x148ba8,_0x23038f)=>{const _0x296034=_0x31e0fe;for(var _0x3f349f=_0x23038f>0x1?void 0x0:_0x23038f?Fe(_0x116b0f,_0x148ba8):_0x116b0f,_0x421f4b=_0x12526f[_0x296034(0x156)]-0x1,_0x531aae;_0x421f4b>=0x0;_0x421f4b--)(_0x531aae=_0x12526f[_0x421f4b])&&(_0x3f349f=_0x531aae(_0x3f349f)||_0x3f349f);return _0x3f349f;},A=(_0x17ec15,_0x1051bf)=>(_0x133fe3,_0x3d1ef2)=>_0x1051bf(_0x133fe3,_0x3d1ef2,_0x17ec15);let m=class extends _0x228b43{constructor(_0x254e22,_0x28b170){const _0x22554b=_0x31e0fe;super(),this[_0x22554b(0x139)]=_0x254e22,this[_0x22554b(0x102)]=_0x28b170,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x3e11fb=_0x31e0fe;this[_0x3e11fb(0xee)](this[_0x3e11fb(0x102)]['registerComponent'](_0x3c0cfc[_0x3e11fb(0xd3)],()=>_0x18b5ed(Le,this[_0x3e11fb(0x139)])));}};m=He([A(0x0,_0x3458e3(_0x5618b7)),A(0x1,_0x584a6b)],m);const ye=_0x31e0fe(0x12e),T={};var Ue=Object[_0x31e0fe(0x140)],Ve=(_0x51c540,_0x307ead,_0x126981,_0x318a33)=>{const _0x4edf03=_0x31e0fe;for(var _0x557686=_0x318a33>0x1?void 0x0:_0x318a33?Ue(_0x307ead,_0x126981):_0x307ead,_0x35138d=_0x51c540[_0x4edf03(0x156)]-0x1,_0x32df21;_0x35138d>=0x0;_0x35138d--)(_0x32df21=_0x51c540[_0x35138d])&&(_0x557686=_0x32df21(_0x557686)||_0x557686);return _0x557686;},je=(_0x3d62d6,_0x59c896)=>(_0x3eb9ab,_0x53e26a)=>_0x59c896(_0x3eb9ab,_0x53e26a,_0x3d62d6);let I=class extends _0x228b43{constructor(_0x588829){const _0x20e3dd=_0x31e0fe;super(),this[_0x20e3dd(0x109)]=_0x588829,this[_0x20e3dd(0x116)]();}[_0x31e0fe(0x116)](){const _0x1b5618=_0x31e0fe;[_0x516bb6['id'],_0x4ac1aa['id'],_0x51cc86['id']][_0x1b5618(0x14f)](_0x5560eb=>{const _0x33ee34=_0x1b5618;this[_0x33ee34(0xee)](this[_0x33ee34(0x109)][_0x33ee34(0xdb)](_0x5560eb));});}};I=Ve([je(0x0,_0x3458e3(L))],I);var Me=Object[_0x31e0fe(0x11e)],ke=Object[_0x31e0fe(0x140)],Ge=(_0x562f13,_0x12fc5f,_0x5dc6bb)=>_0x12fc5f in _0x562f13?Me(_0x562f13,_0x12fc5f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5dc6bb}):_0x562f13[_0x12fc5f]=_0x5dc6bb,We=(_0x1d86c1,_0x5061d3,_0x55cacd,_0x4d63df)=>{const _0xc46480=_0x31e0fe;for(var _0x55d2eb=_0x4d63df>0x1?void 0x0:_0x4d63df?ke(_0x5061d3,_0x55cacd):_0x5061d3,_0x34690e=_0x1d86c1[_0xc46480(0x156)]-0x1,_0xca3e05;_0x34690e>=0x0;_0x34690e--)(_0xca3e05=_0x1d86c1[_0x34690e])&&(_0x55d2eb=_0xca3e05(_0x55d2eb)||_0x55d2eb);return _0x55d2eb;},F=(_0x428281,_0x3d99cf)=>(_0x1847a3,_0x26043a)=>_0x3d99cf(_0x1847a3,_0x26043a,_0x428281),B=(_0x5b44af,_0x1140a1,_0x4b85f9)=>Ge(_0x5b44af,typeof _0x1140a1!='symbol'?_0x1140a1+'':_0x1140a1,_0x4b85f9);const Ye=_0x31e0fe(0x120);let b=class extends _0x4e1973{constructor(_0x11d1b1=T,_0x462d12,_0x39cb0c){const _0x2c0459=_0x31e0fe;super(),this[_0x2c0459(0x101)]=_0x11d1b1,this[_0x2c0459(0x139)]=_0x462d12,this[_0x2c0459(0x12d)]=_0x39cb0c;const {..._0x20c96b}=_0x50ef25({},T,this['_config']);this[_0x2c0459(0x12d)][_0x2c0459(0xf2)](ye,_0x20c96b);}[_0x31e0fe(0xcc)](){const _0x5aeb0f=_0x31e0fe;_0x484001(this[_0x5aeb0f(0x139)],_0x3f0d95([[L],[S],[I],[m]],this['_config']['override'])),_0x24c6ea(this['_injector'],[[I]]);}[_0x31e0fe(0x133)](){const _0x49dcbf=_0x31e0fe;_0x24c6ea(this[_0x49dcbf(0x139)],[[m]]);}};B(b,_0x31e0fe(0x131),_0x43d276[_0x31e0fe(0xe9)]),B(b,'pluginName',Ye),b=We([_0x34be54(_0xe5cc13),F(0x1,_0x3458e3(_0x5618b7)),F(0x2,_0x1c3f63)],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 _0x4a1364=_0x1611;(function(_0x174384,_0x2ba426){const _0xb005ce=_0x1611,_0x39109e=_0x174384();while(!![]){try{const _0x398363=parseInt(_0xb005ce(0x1e5))/0x1+parseInt(_0xb005ce(0x1c2))/0x2*(-parseInt(_0xb005ce(0x1d1))/0x3)+parseInt(_0xb005ce(0x198))/0x4*(-parseInt(_0xb005ce(0x1a5))/0x5)+-parseInt(_0xb005ce(0x231))/0x6*(parseInt(_0xb005ce(0x1c8))/0x7)+-parseInt(_0xb005ce(0x1a9))/0x8+-parseInt(_0xb005ce(0x1e9))/0x9*(parseInt(_0xb005ce(0x21a))/0xa)+parseInt(_0xb005ce(0x1ff))/0xb;if(_0x398363===_0x2ba426)break;else _0x39109e['push'](_0x39109e['shift']());}catch(_0x20bedc){_0x39109e['push'](_0x39109e['shift']());}}}(_0x329e,0xea4cf));var J=Object[_0x4a1364(0x1d2)],K=(_0x7347fd,_0xe27ffd,_0x2cca53)=>_0xe27ffd in _0x7347fd?J(_0x7347fd,_0xe27ffd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2cca53}):_0x7347fd[_0xe27ffd]=_0x2cca53,u=(_0x387170,_0x59add2,_0xeb2374)=>K(_0x387170,typeof _0x59add2!=_0x4a1364(0x1c5)?_0x59add2+'':_0x59add2,_0xeb2374);import{Disposable as _0x269b11,toDisposable as _0x6f7e3f,IUniverInstanceService as _0x48ed98,Inject as _0x391d1f,Injector as _0x5d0bf7,IConfigService as _0x3cea69,ICommandService as _0x3a554d,RxDisposable as _0x583e52,UniverInstanceType as _0x24a343,DisposableCollection as _0x9be91c,CommandType as _0x23329a,DependentOn as _0x16d28c,Plugin as _0x41f754,merge as _0x35aa33,registerDependencies as _0x2356c0,mergeOverrideWithDependencies as _0x2a3169,touchDependencies as _0x400195}from'@univerjs/core';import{useDependency as _0x21c95c,useObservable as _0x1fe6f7,IUIPartsService as _0x2d6132,BuiltInUIPart as _0x492383,connectInjector as _0x150e4f}from'@univerjs/ui';import{jsx as _0x25c8f2,jsxs as _0x229141,Fragment as _0x3b7e96}from'react/jsx-runtime';import{Dropdown as _0x3072c6,clsx as _0x3dc8ae,Button as _0x41e64b}from'@univerjs/design';import{useRef as _0x5e24b6,createElement as _0x358175,forwardRef as _0x3269f0,useState as _0x3a7f61,useEffect as _0x3aabb1}from'react';import{CollaborationEvent as _0x39403f,parseProtocolChangeset as _0x46c9bc}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x4c6691,SessionStatus as _0x448deb,UniverCollaborationClientPlugin as _0x4ff535}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4b0d4a,SetWorksheetActiveOperation as _0x83e219}from'@univerjs/sheets';import{BehaviorSubject as _0x463108,Subject as _0x4c1c0a}from'rxjs';import{takeUntil as _0x21c14a,throttleTime as _0x1fb19d}from'rxjs/operators';import{SetZoomRatioOperation as _0x1f96a7,SetScrollOperation as _0x38ce2c}from'@univerjs/sheets-ui';function k({ref:_0x11b518,..._0xe53fab}){const _0x147176=_0x4a1364,{icon:_0x58cff9,id:_0xb87d55,className:_0x2f0bb3,extend:_0x4054c8,..._0x285c2b}=_0xe53fab,_0x1e6495=(_0x147176(0x192)+_0xb87d55+'\x20'+(_0x2f0bb3||''))['trim'](),_0x19f5b6=_0x5e24b6('_'+Oe());return G(_0x58cff9,''+_0xb87d55,{'defIds':_0x58cff9[_0x147176(0x1dd)],'idSuffix':_0x19f5b6[_0x147176(0x217)]},{'ref':_0x11b518,'className':_0x1e6495,..._0x285c2b},_0x4054c8);}function G(_0x37432a,_0xf158a7,_0x26a6c9,_0x26f84a,_0x504310){const _0x4056c0=_0x4a1364;return _0x358175(_0x37432a['tag'],{'key':_0xf158a7,...be(_0x37432a,_0x26a6c9,_0x504310),..._0x26f84a},(Ee(_0x37432a,_0x26a6c9)[_0x4056c0(0x224)]||[])[_0x4056c0(0x1d9)]((_0x3aac5f,_0x3fd02f)=>G(_0x3aac5f,_0xf158a7+'-'+_0x37432a[_0x4056c0(0x219)]+'-'+_0x3fd02f,_0x26a6c9,void 0x0,_0x504310)));}function be(_0x1a9a38,_0x497626,_0x5ea99e){const _0x259e70=_0x4a1364,_0x2a5dd6={..._0x1a9a38[_0x259e70(0x1c0)]};_0x5ea99e!=null&&_0x5ea99e['colorChannel1']&&_0x2a5dd6[_0x259e70(0x206)]===_0x259e70(0x1bf)&&(_0x2a5dd6[_0x259e70(0x206)]=_0x5ea99e[_0x259e70(0x1bf)]),_0x1a9a38['tag']===_0x259e70(0x1b0)&&_0x2a5dd6['id']&&(_0x2a5dd6['id']=_0x2a5dd6['id']+_0x497626[_0x259e70(0x21c)]),Object[_0x259e70(0x1aa)](_0x2a5dd6)[_0x259e70(0x21e)](([_0x4ff8ee,_0x574169])=>{const _0x6522fa=_0x259e70;_0x4ff8ee==='mask'&&typeof _0x574169==_0x6522fa(0x1ea)&&(_0x2a5dd6[_0x4ff8ee]=_0x574169[_0x6522fa(0x1f8)](/url\(#(.*)\)/,_0x6522fa(0x197)+_0x497626[_0x6522fa(0x21c)]+')'));});const {defIds:_0x1f6eae}=_0x497626;return!_0x1f6eae||_0x1f6eae['length']===0x0||(_0x1a9a38[_0x259e70(0x219)]==='use'&&_0x2a5dd6['xlink:href']&&(_0x2a5dd6[_0x259e70(0x21b)]=_0x2a5dd6['xlink:href']+_0x497626['idSuffix']),Object[_0x259e70(0x1aa)](_0x2a5dd6)[_0x259e70(0x21e)](([_0x3a44a4,_0x423b78])=>{const _0x32a6b4=_0x259e70;typeof _0x423b78=='string'&&(_0x2a5dd6[_0x3a44a4]=_0x423b78[_0x32a6b4(0x1f8)](/url\(#(.*)\)/,'url(#$1'+_0x497626[_0x32a6b4(0x21c)]+')'));})),_0x2a5dd6;}function Ee(_0x46abe6,_0x56ee94){const _0x415979=_0x4a1364;var _0x391b35;const {defIds:_0x357879}=_0x56ee94;return!_0x357879||_0x357879[_0x415979(0x22e)]===0x0?_0x46abe6:_0x46abe6[_0x415979(0x219)]===_0x415979(0x193)&&((_0x391b35=_0x46abe6[_0x415979(0x224)])!=null&&_0x391b35[_0x415979(0x22e)])?{..._0x46abe6,'children':_0x46abe6[_0x415979(0x224)][_0x415979(0x1d9)](_0x8140c0=>typeof _0x8140c0[_0x415979(0x1c0)]['id']=='string'&&_0x357879&&_0x357879[_0x415979(0x1d5)](_0x8140c0[_0x415979(0x1c0)]['id'])?{..._0x8140c0,'attrs':{..._0x8140c0[_0x415979(0x1c0)],'id':_0x8140c0[_0x415979(0x1c0)]['id']+_0x56ee94[_0x415979(0x21c)]}}:_0x8140c0)}:_0x46abe6;}function Oe(){const _0x3d2c56=_0x4a1364;return Math[_0x3d2c56(0x1f2)]()[_0x3d2c56(0x21d)](0x24)[_0x3d2c56(0x20e)](0x2,0x8);}function _0x329e(){const _0x2b8411=['add','length','stringify','_configService','1268970cGQxiG','getCurrentTypeOfUnit$','FOLLOWING','_commandService','You\x27re\x20following\x20the\x20presenter','data','_config','then','delete','getMemberID','univerjs-icon\x20univerjs-icon-','defs','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','You\x27re\x20presenting\x20the\x20document','UNIVER_SHEET','url(#$1','524716UFZtFm','_injector','_liveShareService','_presenter','complete','path','stopFollowing','univer-mb-3\x20univer-w-full\x20univer-text-sm','sessionStatus$','subscribe','_mountLiveShare','send','_handleNewChangeSets','65KkfRkR','_collabSessionService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','sheet','7609992IwnssG','entries','OFFLINE','default','stopPresenting','asObservable','UNIVER_LIVE_SHARE_PLUGIN','mask','Present\x20this\x20document','tryStartPresenting','_handleOffline','ONLINE','text','Stop\x20presenting','unsubscribe','_handleOnline','_sharedOperations','PRESENTING','_uiPartsService','univer-size-4','presenting','LIVESHARE_TERMINATE','colorChannel1','attrs','1em','16nLyiHk','set','NEW_CHANGESETS','symbol','requireSession','_reporters','14KoGwsw','get','div','_univerInstanceService','onStarting','startFollowing','getTypeOfUnitDisposed$','_status$','Stop\x20following','296364aPqIth','defineProperty','_startLiveShareCoordinator','has','includes','mutations','status$','registerComponent','map','onRendered','getStatus','getInitialStates','defIds','LIVESHARE_OPERATION','override','dispose$','_commandDisposable','memberID','0\x200\x2017\x2017','disposeWithMe','831137kCWCLx','params','none','getLiveShareCoordinatorSync','76581OfVKUw','string','find','getTypeOfUnitAdded$','_stopFollowing','createInstance','executeCommand','currentColor','type','random','setConfig','dispose','UNIVER_UNKNOWN','end','_init','replace','getLiveShareCoordinator','http://www.w3.org/2000/svg','presenter','onCommandExecuted','parse','_handleOperation','51377029iMLhNs','_stopPresenting','evenodd','next','_startPresenting','LiveShareIcon','displayName','fill','offline','getOwnPropertyDescriptor','getUnitId','_collabSession','assign','not-following','button','substring','IDLE','following','event$','_unitID','shouldShareOperation','_entities','idle','pipe','current','registerSharedOperation','tag','790ViCxUt','xlink:href','idSuffix','toString','forEach','getValue','clear','OPERATION','_fetchOperations','_beIdle','children','_handleNewHost','operations','init','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','NOT_FOLLOWING','_status','You\x27re\x20not\x20following\x20the\x20presenter','_startFollowing'];_0x329e=function(){return _0x2b8411;};return _0x329e();}k[_0x4a1364(0x205)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0x4a1364(0x1fa),'fill':_0x4a1364(0x1e7),'viewBox':_0x4a1364(0x1e3),'width':_0x4a1364(0x1c1),'height':'1em'},'children':[{'tag':_0x4a1364(0x19d),'attrs':{'fill':_0x4a1364(0x1f0),'d':_0x4a1364(0x228)}},{'tag':_0x4a1364(0x19d),'attrs':{'fill':'currentColor','d':_0x4a1364(0x194),'fillRule':_0x4a1364(0x201),'clipRule':'evenodd'}}]},W=_0x3269f0(function(_0x19591a,_0x3ca980){const _0x2c2f82=_0x4a1364;return _0x358175(k,Object[_0x2c2f82(0x20b)]({},_0x19591a,{'id':'live-share-icon','ref':_0x3ca980,'icon':we}));});W[_0x4a1364(0x205)]=_0x4a1364(0x204);class L extends _0x269b11{constructor(){const _0x3c98b1=_0x4a1364;super(...arguments),u(this,_0x3c98b1(0x1b9),new Set()),u(this,'_reporters',new Set());}[_0x4a1364(0x218)](_0x19e4e0){const _0x4b9cd9=_0x4a1364;return this['_sharedOperations'][_0x4b9cd9(0x22d)](_0x19e4e0),_0x6f7e3f(()=>this['_sharedOperations'][_0x4b9cd9(0x190)](_0x19e4e0));}['registerInitialStateReporter'](_0x162e14){const _0x111f09=_0x4a1364;return this[_0x111f09(0x1c7)][_0x111f09(0x22d)](_0x162e14),_0x6f7e3f(()=>this[_0x111f09(0x1c7)][_0x111f09(0x190)](_0x162e14));}['shouldShareOperation'](_0x53e193){const _0x48ddbd=_0x4a1364;return this['_sharedOperations'][_0x48ddbd(0x1d4)](_0x53e193);}[_0x4a1364(0x1dc)](_0x2c0941){return Array['from'](this['_reporters'])['map'](_0x2a81a6=>_0x2a81a6(_0x2c0941));}}var Ne=Object[_0x4a1364(0x208)],Y=(_0x3c60e6,_0x341eec,_0x68f3b7,_0x555f08)=>{const _0xf795ae=_0x4a1364;for(var _0x877a26=_0x555f08>0x1?void 0x0:_0x555f08?Ne(_0x341eec,_0x68f3b7):_0x341eec,_0x47ea4c=_0x3c60e6[_0xf795ae(0x22e)]-0x1,_0x3a00ec;_0x47ea4c>=0x0;_0x47ea4c--)(_0x3a00ec=_0x3c60e6[_0x47ea4c])&&(_0x877a26=_0x3a00ec(_0x877a26)||_0x877a26);return _0x877a26;},_=(_0x52a135,_0x2f331f)=>(_0x313dcb,_0x134332)=>_0x2f331f(_0x313dcb,_0x134332,_0x52a135);let S=class extends _0x583e52{constructor(_0x5349b0,_0x4785ed,_0x1fbfc0){const _0x1585ef=_0x4a1364;super(),u(this,_0x1585ef(0x214),new Map()),(this[_0x1585ef(0x1cb)]=_0x5349b0,this[_0x1585ef(0x199)]=_0x4785ed,this[_0x1585ef(0x1a6)]=_0x1fbfc0,this[_0x1585ef(0x1f7)]());}async[_0x4a1364(0x1f9)](_0xadc588){const _0x228bfa=_0x4a1364;return this[_0x228bfa(0x214)][_0x228bfa(0x1d4)](_0xadc588)||await this[_0x228bfa(0x1d3)](_0xadc588),this[_0x228bfa(0x214)]['get'](_0xadc588);}[_0x4a1364(0x1e8)](_0x45b797){const _0x4815ed=_0x4a1364;var _0x40c3c3;return(_0x40c3c3=this['_entities'][_0x4815ed(0x1c9)](_0x45b797))!=null?_0x40c3c3:null;}[_0x4a1364(0x1f7)](){const _0x23ec58=_0x4a1364;this[_0x23ec58(0x1cb)][_0x23ec58(0x1ec)](_0x24a343[_0x23ec58(0x196)])[_0x23ec58(0x216)](_0x21c14a(this[_0x23ec58(0x1e0)]))['subscribe'](async _0x22090d=>{const _0x1c52d0=_0x23ec58,_0x582e95=_0x22090d['getUnitId']();this[_0x1c52d0(0x214)][_0x1c52d0(0x1d4)](_0x582e95)||this[_0x1c52d0(0x1d3)](_0x582e95);}),this[_0x23ec58(0x1cb)][_0x23ec58(0x1ce)](_0x24a343[_0x23ec58(0x196)])['pipe'](_0x21c14a(this[_0x23ec58(0x1e0)]))[_0x23ec58(0x1a1)](_0x21635f=>{const _0x440987=_0x23ec58,_0x14e61a=_0x21635f[_0x440987(0x209)](),_0x4452ce=this[_0x440987(0x214)][_0x440987(0x1c9)](_0x14e61a);_0x4452ce==null||_0x4452ce[_0x440987(0x1f4)]();});}async[_0x4a1364(0x1d3)](_0x5e840e){const _0x25a4f3=_0x4a1364,_0x2eed40=await this['_collabSessionService'][_0x25a4f3(0x1c6)](_0x5e840e),_0x3c304a=this[_0x25a4f3(0x199)][_0x25a4f3(0x1ee)](N,_0x5e840e,_0x2eed40);return _0x3c304a['init'](),this[_0x25a4f3(0x214)][_0x25a4f3(0x1c3)](_0x5e840e,_0x3c304a),_0x3c304a;}};S=Y([_(0x0,_0x48ed98),_(0x1,_0x391d1f(_0x5d0bf7)),_(0x2,_0x391d1f(_0x4c6691))],S);var c=(_0x1d8f98=>(_0x1d8f98['OFFLINE']=_0x4a1364(0x207),_0x1d8f98[_0x4a1364(0x20f)]=_0x4a1364(0x215),_0x1d8f98[_0x4a1364(0x18a)]=_0x4a1364(0x210),_0x1d8f98[_0x4a1364(0x229)]=_0x4a1364(0x20c),_0x1d8f98[_0x4a1364(0x1ba)]=_0x4a1364(0x1bd),_0x1d8f98))(c||{});function _0x1611(_0x25bd96,_0x48339c){const _0x329e95=_0x329e();return _0x1611=function(_0x16111a,_0x34de7a){_0x16111a=_0x16111a-0x18a;let _0xd6b5cf=_0x329e95[_0x16111a];return _0xd6b5cf;},_0x1611(_0x25bd96,_0x48339c);}const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x583e52{constructor(_0x2e0f9c,_0x859f,_0x3f554d,_0x4f8d9a,_0x53dee7){const _0x5ab9b9=_0x4a1364;super(),u(this,_0x5ab9b9(0x1cf),new _0x463108(_0x5ab9b9(0x215))),u(this,_0x5ab9b9(0x1d7),this[_0x5ab9b9(0x1cf)][_0x5ab9b9(0x1ae)]()),u(this,_0x5ab9b9(0x1f7),!0x1),u(this,_0x5ab9b9(0x1e1),null),u(this,_0x5ab9b9(0x19b),null),(this[_0x5ab9b9(0x212)]=_0x2e0f9c,this['_collabSession']=_0x859f,this['_configService']=_0x3f554d,this[_0x5ab9b9(0x19a)]=_0x4f8d9a,this[_0x5ab9b9(0x18b)]=_0x53dee7);}get[_0x4a1364(0x22a)](){const _0x727b40=_0x4a1364;return this['_status$'][_0x727b40(0x21f)]();}['dispose'](){const _0x2e40b8=_0x4a1364;var _0x576a55;(_0x576a55=this[_0x2e40b8(0x1e1)])==null||_0x576a55[_0x2e40b8(0x1f4)](),this[_0x2e40b8(0x1cf)][_0x2e40b8(0x202)](_0x2e40b8(0x215)),this[_0x2e40b8(0x1cf)][_0x2e40b8(0x19c)]();}[_0x4a1364(0x1db)](){return this['_status'];}[_0x4a1364(0x227)](){const _0x59dbbf=_0x4a1364;this[_0x59dbbf(0x1f7)]||(this['_init']=!0x0,this[_0x59dbbf(0x20a)][_0x59dbbf(0x1a0)][_0x59dbbf(0x216)](_0x21c14a(this['dispose$']))[_0x59dbbf(0x1a1)](_0x3471f4=>{const _0x153ee6=_0x59dbbf;switch(_0x3471f4){case _0x448deb[_0x153ee6(0x1ab)]:this['_handleOffline']();break;case _0x448deb[_0x153ee6(0x1b4)]:this[_0x153ee6(0x1b8)]();break;}}),this[_0x59dbbf(0x20a)][_0x59dbbf(0x211)][_0x59dbbf(0x216)](_0x21c14a(this[_0x59dbbf(0x1e0)]))[_0x59dbbf(0x1a1)](_0x48a747=>{const _0x496fb9=_0x59dbbf,{eventID:_0x49bda0}=_0x48a747;switch(_0x49bda0){case _0x39403f['LIVESHARE_NEW_HOST']:this[_0x496fb9(0x225)](_0x48a747);break;case _0x39403f[_0x496fb9(0x1de)]:this[_0x496fb9(0x1fe)](_0x48a747);break;case _0x39403f[_0x496fb9(0x1be)]:this['_handleTerminate']();break;case _0x39403f[_0x496fb9(0x1c4)]:this[_0x496fb9(0x1a4)](_0x48a747);break;}}));}[_0x4a1364(0x1b2)](){const _0x6f022b=_0x4a1364;this['_collabSession'][_0x6f022b(0x1a3)]({'eventID':_0x39403f['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x6f022b(0x212)],'userID':this[_0x6f022b(0x20a)][_0x6f022b(0x191)]()}},this[_0x6f022b(0x212)]);}[_0x4a1364(0x1ad)](){const _0xf5ba2d=_0x4a1364;this['_status']==='presenting'&&(this[_0xf5ba2d(0x1cf)][_0xf5ba2d(0x202)](_0xf5ba2d(0x215)),this[_0xf5ba2d(0x20a)][_0xf5ba2d(0x1a3)]({'eventID':_0x39403f[_0xf5ba2d(0x1be)],'data':{'unitID':this[_0xf5ba2d(0x212)]}},this[_0xf5ba2d(0x212)]));}[_0x4a1364(0x1cd)](){const _0x264f3b=_0x4a1364;this[_0x264f3b(0x22a)]===_0x264f3b(0x20c)&&(this[_0x264f3b(0x1cf)][_0x264f3b(0x202)](_0x264f3b(0x210)),this[_0x264f3b(0x22c)]());}[_0x4a1364(0x19e)](){const _0x294f38=_0x4a1364;this['_status']===_0x294f38(0x210)&&this['_stopFollowing']();}[_0x4a1364(0x225)](_0x2cee37){const _0x2c74cb=_0x4a1364,{presenter:_0x13514a}=_0x2cee37[_0x2c74cb(0x18d)],_0x377636=this[_0x2c74cb(0x20a)]['getMemberID']();this[_0x2c74cb(0x19b)]=_0x13514a,_0x13514a===_0x377636?(this[_0x2c74cb(0x1ed)](),this[_0x2c74cb(0x203)]()):this[_0x2c74cb(0x22a)]!==_0x2c74cb(0x20c)&&(this[_0x2c74cb(0x200)](),this[_0x2c74cb(0x22c)]());}['_fetchOperations'](){const _0x1a9b51=_0x4a1364,_0x4b98fb={'eventID':_0x39403f['LIVESHARE_FETCH_OPERATIONS']};this[_0x1a9b51(0x20a)][_0x1a9b51(0x1a3)](_0x4b98fb,this['_unitID']);}['_handleTerminate'](){const _0x45354a=_0x4a1364;this[_0x45354a(0x19b)]=null,this[_0x45354a(0x22a)]!=='presenting'&&this[_0x45354a(0x223)]();}['_handleNewChangeSets'](_0x20ea5b){const _0x516727=_0x4a1364;if(this[_0x516727(0x22a)]===_0x516727(0x210)&&this[_0x516727(0x19b)]===_0x20ea5b[_0x516727(0x18d)][_0x516727(0x1e2)]){const _0x59de3a=_0x46c9bc(_0x20ea5b[_0x516727(0x18d)])[_0x516727(0x1d6)]['reverse']()[_0x516727(0x1eb)](_0x3bca26=>_0x3bca26['id']===_0x4b0d4a['id']);if(_0x59de3a){const _0x1ea336=_0x59de3a['params']['unitId'],_0x131f4c=_0x59de3a[_0x516727(0x1e6)][_0x516727(0x1a8)]['id'];setTimeout(()=>{const _0x572a6e=_0x516727;this['_commandService'][_0x572a6e(0x1ef)](_0x83e219['id'],{'unitId':_0x1ea336,'subUnitId':_0x131f4c},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x4180eb=_0x4a1364;this['_status$'][_0x4180eb(0x202)](_0x4180eb(0x1bd));const _0x339336=new Map(),_0x27258d=this[_0x4180eb(0x1e1)]=new _0x9be91c();_0x27258d[_0x4180eb(0x22d)](_0x6f7e3f(()=>{const _0x528660=_0x4180eb;_0x339336[_0x528660(0x21e)](_0x4b2699=>_0x4b2699[_0x528660(0x19c)]()),_0x339336[_0x528660(0x220)]();})),_0x27258d[_0x4180eb(0x22d)](this[_0x4180eb(0x18b)][_0x4180eb(0x1fc)](_0x1084d2=>{const _0x18947c=_0x4180eb;var _0x32f81a;if(_0x1084d2[_0x18947c(0x1f1)]!==_0x23329a[_0x18947c(0x221)]||!this[_0x18947c(0x19a)][_0x18947c(0x213)](_0x1084d2['id']))return;const {id:_0x5f2283}=_0x1084d2;let _0x2d5943;_0x339336[_0x18947c(0x1d4)](_0x5f2283)?_0x2d5943=_0x339336['get'](_0x5f2283):(_0x2d5943=new _0x4c1c0a(),_0x339336[_0x18947c(0x1c3)](_0x5f2283,_0x2d5943),_0x2d5943[_0x18947c(0x216)](_0x1fb19d((_0x32f81a=this[_0x18947c(0x230)]['getConfig'](Ce))!=null?_0x32f81a:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1fcfd5=>{const _0x82bd2d=_0x18947c;this[_0x82bd2d(0x20a)][_0x82bd2d(0x1a3)]({'eventID':_0x39403f['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x82bd2d(0x212)],'operations':{[_0x1fcfd5['id']]:{'id':_0x1fcfd5['id'],'params':JSON[_0x82bd2d(0x22f)](_0x1fcfd5[_0x82bd2d(0x1e6)])}}}},this[_0x82bd2d(0x212)]);})),_0x2d5943[_0x18947c(0x202)](_0x1084d2);})),this[_0x4180eb(0x19a)][_0x4180eb(0x1dc)](this['_unitID'])[_0x4180eb(0x21e)](_0xe28612=>this[_0x4180eb(0x20a)][_0x4180eb(0x1a3)]({'eventID':_0x39403f[_0x4180eb(0x1de)],'data':{'unitID':this[_0x4180eb(0x212)],'operations':{[_0xe28612['id']]:{'id':_0xe28612['id'],'params':JSON[_0x4180eb(0x22f)](_0xe28612[_0x4180eb(0x1e6)])}}}},this[_0x4180eb(0x212)]));}[_0x4a1364(0x200)](){const _0x1706d2=_0x4a1364;var _0x53deeb;this[_0x1706d2(0x1cf)][_0x1706d2(0x202)](_0x1706d2(0x215)),(_0x53deeb=this['_commandDisposable'])==null||_0x53deeb['dispose'](),this[_0x1706d2(0x1e1)]=null;}[_0x4a1364(0x22c)](){const _0x19d4b8=_0x4a1364;var _0x29965a;(_0x29965a=this[_0x19d4b8(0x1e1)])==null||_0x29965a[_0x19d4b8(0x1f4)](),this[_0x19d4b8(0x1cf)][_0x19d4b8(0x202)](_0x19d4b8(0x210));}[_0x4a1364(0x223)](){const _0x1c159a=_0x4a1364;var _0x126653;this[_0x1c159a(0x1cf)]['next'](_0x1c159a(0x215)),(_0x126653=this[_0x1c159a(0x1e1)])==null||_0x126653['dispose'](),this[_0x1c159a(0x1e1)]=null;}['_stopFollowing'](){const _0x195821=_0x4a1364;var _0x2a811b;this['_status$'][_0x195821(0x202)](_0x195821(0x20c)),(_0x2a811b=this[_0x195821(0x1e1)])==null||_0x2a811b[_0x195821(0x1f4)]();}[_0x4a1364(0x1fe)](_0x50f8a3){const _0x2beabc=_0x4a1364;if([_0x2beabc(0x1bd),_0x2beabc(0x20c),_0x2beabc(0x207)]['includes'](this[_0x2beabc(0x22a)])||!_0x50f8a3['data'][_0x2beabc(0x1fb)]||_0x50f8a3[_0x2beabc(0x18d)][_0x2beabc(0x1fb)]===this['_collabSession'][_0x2beabc(0x191)]())return;this[_0x2beabc(0x22a)]===_0x2beabc(0x215)&&this[_0x2beabc(0x22c)]();const _0x33a183=_0x50f8a3['data'][_0x2beabc(0x226)];Object['values'](_0x33a183)[_0x2beabc(0x21e)](_0x14ea17=>{const _0x1e1f64=_0x2beabc;this[_0x1e1f64(0x18b)][_0x1e1f64(0x1ef)](_0x14ea17['id'],_0x14ea17[_0x1e1f64(0x1e6)]?JSON[_0x1e1f64(0x1fd)](_0x14ea17[_0x1e1f64(0x1e6)]):null,{'fromCollab':!0x0});});}[_0x4a1364(0x1b3)](){const _0x21cfca=_0x4a1364;var _0xb41aa7;this[_0x21cfca(0x1cf)][_0x21cfca(0x202)](_0x21cfca(0x207)),(_0xb41aa7=this[_0x21cfca(0x1e1)])==null||_0xb41aa7[_0x21cfca(0x1f4)]();}[_0x4a1364(0x1b8)](){const _0x1a68d2=_0x4a1364;this[_0x1a68d2(0x1cf)][_0x1a68d2(0x202)]('idle'),this[_0x1a68d2(0x222)]();}};N=Y([_(0x2,_0x3cea69),_(0x3,_0x391d1f(L)),_(0x4,_0x3a554d)],N);function Le(){const _0x1ee2a3=_0x4a1364,_0x5630a7=_0x21c95c(S),_0x12fd41=_0x21c95c(_0x48ed98),_0x4aea01=_0x1fe6f7(()=>_0x12fd41[_0x1ee2a3(0x232)](_0x24a343[_0x1ee2a3(0x196)]),void 0x0,!0x1,[]),[_0x34b76b,_0x18de53]=_0x3a7f61(null),[_0x2b9966,_0x1fc563]=_0x3a7f61(c[_0x1ee2a3(0x20f)]),_0x534fe2=_0x5e24b6(null);return _0x3aabb1(()=>(_0x4aea01&&_0x5630a7[_0x1ee2a3(0x1f9)](_0x4aea01[_0x1ee2a3(0x209)]())[_0x1ee2a3(0x18f)](_0x3e2065=>{const _0x4d28ee=_0x1ee2a3;_0x18de53(_0x3e2065),_0x534fe2[_0x4d28ee(0x217)]=_0x3e2065[_0x4d28ee(0x1d7)]['subscribe'](_0x44447b=>{_0x1fc563(_0x44447b);});}),()=>{const _0x27b7fe=_0x1ee2a3;var _0x6ad716;(_0x6ad716=_0x534fe2[_0x27b7fe(0x217)])==null||_0x6ad716[_0x27b7fe(0x1b7)](),_0x534fe2[_0x27b7fe(0x217)]=null;}),[_0x4aea01,_0x5630a7]),_0x34b76b?_0x25c8f2(_0x3072c6,{'align':_0x1ee2a3(0x1f6),'disabled':_0x2b9966===c['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x25c8f2(Re,{'status':_0x2b9966,'coordinator':_0x34b76b}),'children':_0x25c8f2(_0x1ee2a3(0x20d),{'className':_0x3dc8ae(_0x1ee2a3(0x1a7),{'univer-cursor-not-allowed':_0x2b9966===c[_0x1ee2a3(0x1ab)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2b9966!==c[_0x1ee2a3(0x1ab)]}),'type':_0x1ee2a3(0x20d),'children':_0x25c8f2(W,{'className':_0x1ee2a3(0x1bc)})})}):null;}function Re(_0x5657cc){const _0x7a9140=_0x4a1364,{status:_0x57ab7d,coordinator:_0x59bcef}=_0x5657cc;switch(_0x57ab7d){case c[_0x7a9140(0x20f)]:return _0x25c8f2($e,{'coordinator':_0x59bcef});case c[_0x7a9140(0x18a)]:return _0x25c8f2(xe,{'coordinator':_0x59bcef});case c['NOT_FOLLOWING']:return _0x25c8f2(Pe,{'coordinator':_0x59bcef});case c['OFFLINE']:return _0x25c8f2(Te,{});case c[_0x7a9140(0x1ba)]:return _0x25c8f2(Ae,{'coordinator':_0x59bcef});default:return null;}}function $e(_0x3eb15e){const _0x44fd23=_0x4a1364,{coordinator:_0x2ee302}=_0x3eb15e;return _0x229141(_0x3b7e96,{'children':[_0x25c8f2(_0x44fd23(0x1ca),{'className':_0x44fd23(0x19f),'children':_0x44fd23(0x1b1)}),_0x25c8f2(_0x41e64b,{'onClick':()=>_0x2ee302[_0x44fd23(0x1b2)](),'children':'Start'})]});}function xe(_0x3bfd54){const _0xd1fe50=_0x4a1364,{coordinator:_0x88eaf5}=_0x3bfd54;return _0x229141(_0x3b7e96,{'children':[_0x25c8f2('div',{'className':_0xd1fe50(0x19f),'children':_0xd1fe50(0x18c)}),_0x25c8f2(_0x41e64b,{'onClick':()=>_0x88eaf5[_0xd1fe50(0x19e)](),'children':_0xd1fe50(0x1d0)})]});}function Pe(_0x15324a){const _0x1341a9=_0x4a1364,{coordinator:_0x12f83a}=_0x15324a;return _0x229141(_0x3b7e96,{'children':[_0x25c8f2('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1341a9(0x22b)}),_0x25c8f2(_0x41e64b,{'variant':_0x1341a9(0x1b5),'onClick':()=>_0x12f83a[_0x1341a9(0x1cd)](),'children':'Start\x20following'})]});}function Ae(_0x1cf29d){const _0x578d05=_0x4a1364,{coordinator:_0x5b5739}=_0x1cf29d;return _0x229141(_0x3b7e96,{'children':[_0x25c8f2(_0x578d05(0x1ca),{'className':_0x578d05(0x19f),'children':_0x578d05(0x195)}),_0x25c8f2(_0x41e64b,{'variant':_0x578d05(0x1ac),'onClick':()=>_0x5b5739[_0x578d05(0x1ad)](),'children':_0x578d05(0x1b6)})]});}function Te(){return _0x25c8f2(_0x3b7e96,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x4a1364(0x208)],He=(_0x41f6ee,_0x30e6cd,_0x1b6aaf,_0x1e9dde)=>{const _0x5e7846=_0x4a1364;for(var _0x3238a9=_0x1e9dde>0x1?void 0x0:_0x1e9dde?Fe(_0x30e6cd,_0x1b6aaf):_0x30e6cd,_0x23f23d=_0x41f6ee[_0x5e7846(0x22e)]-0x1,_0x2e869e;_0x23f23d>=0x0;_0x23f23d--)(_0x2e869e=_0x41f6ee[_0x23f23d])&&(_0x3238a9=_0x2e869e(_0x3238a9)||_0x3238a9);return _0x3238a9;},A=(_0x5aacd9,_0x570b5e)=>(_0x15b69f,_0x610f05)=>_0x570b5e(_0x15b69f,_0x610f05,_0x5aacd9);let m=class extends _0x269b11{constructor(_0x189e8d,_0x1d5ead){const _0x553b74=_0x4a1364;super(),this[_0x553b74(0x199)]=_0x189e8d,this[_0x553b74(0x1bb)]=_0x1d5ead,this[_0x553b74(0x1a2)]();}[_0x4a1364(0x1a2)](){const _0x5b3bc1=_0x4a1364;this['disposeWithMe'](this['_uiPartsService'][_0x5b3bc1(0x1d8)](_0x492383['HEADER_MENU'],()=>_0x150e4f(Le,this[_0x5b3bc1(0x199)])));}};m=He([A(0x0,_0x391d1f(_0x5d0bf7)),A(0x1,_0x2d6132)],m);const ye='live-share.config',T={};var Ue=Object[_0x4a1364(0x208)],Ve=(_0xb2bf3e,_0x5262d1,_0x1c86e2,_0x4c10da)=>{const _0x1b7728=_0x4a1364;for(var _0x4e96a6=_0x4c10da>0x1?void 0x0:_0x4c10da?Ue(_0x5262d1,_0x1c86e2):_0x5262d1,_0x55295e=_0xb2bf3e[_0x1b7728(0x22e)]-0x1,_0x478ada;_0x55295e>=0x0;_0x55295e--)(_0x478ada=_0xb2bf3e[_0x55295e])&&(_0x4e96a6=_0x478ada(_0x4e96a6)||_0x4e96a6);return _0x4e96a6;},je=(_0x54fe47,_0x395db4)=>(_0xf5d5ee,_0x2c26cd)=>_0x395db4(_0xf5d5ee,_0x2c26cd,_0x54fe47);let I=class extends _0x269b11{constructor(_0x28fdf3){const _0x180e55=_0x4a1364;super(),this[_0x180e55(0x19a)]=_0x28fdf3,this[_0x180e55(0x1f7)]();}['_init'](){[_0x1f96a7['id'],_0x38ce2c['id'],_0x83e219['id']]['forEach'](_0x205fc1=>{const _0x2537da=_0x1611;this[_0x2537da(0x1e4)](this[_0x2537da(0x19a)][_0x2537da(0x218)](_0x205fc1));});}};I=Ve([je(0x0,_0x391d1f(L))],I);var Me=Object[_0x4a1364(0x1d2)],ke=Object[_0x4a1364(0x208)],Ge=(_0x346105,_0x374df4,_0x1c394b)=>_0x374df4 in _0x346105?Me(_0x346105,_0x374df4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c394b}):_0x346105[_0x374df4]=_0x1c394b,We=(_0x30fb47,_0x3307ad,_0x1e750c,_0x8f27ac)=>{for(var _0x44c5a6=_0x8f27ac>0x1?void 0x0:_0x8f27ac?ke(_0x3307ad,_0x1e750c):_0x3307ad,_0x155441=_0x30fb47['length']-0x1,_0x44a8d2;_0x155441>=0x0;_0x155441--)(_0x44a8d2=_0x30fb47[_0x155441])&&(_0x44c5a6=_0x44a8d2(_0x44c5a6)||_0x44c5a6);return _0x44c5a6;},F=(_0x3c54c7,_0x1c603d)=>(_0x5c615f,_0x4d7cb2)=>_0x1c603d(_0x5c615f,_0x4d7cb2,_0x3c54c7),B=(_0x6e0631,_0x4e86ef,_0x485130)=>Ge(_0x6e0631,typeof _0x4e86ef!=_0x4a1364(0x1c5)?_0x4e86ef+'':_0x4e86ef,_0x485130);const Ye=_0x4a1364(0x1af);let b=class extends _0x41f754{constructor(_0x2e0d8e=T,_0x3bf968,_0x507d7c){const _0x3d68d2=_0x4a1364;super(),this[_0x3d68d2(0x18e)]=_0x2e0d8e,this[_0x3d68d2(0x199)]=_0x3bf968,this[_0x3d68d2(0x230)]=_0x507d7c;const {..._0x3671be}=_0x35aa33({},T,this[_0x3d68d2(0x18e)]);this['_configService'][_0x3d68d2(0x1f3)](ye,_0x3671be);}[_0x4a1364(0x1cc)](){const _0x1ff96c=_0x4a1364;_0x2356c0(this[_0x1ff96c(0x199)],_0x2a3169([[L],[S],[I],[m]],this[_0x1ff96c(0x18e)][_0x1ff96c(0x1df)])),_0x400195(this[_0x1ff96c(0x199)],[[I]]);}[_0x4a1364(0x1da)](){const _0x5ba252=_0x4a1364;_0x400195(this[_0x5ba252(0x199)],[[m]]);}};B(b,_0x4a1364(0x1f1),_0x24a343[_0x4a1364(0x1f5)]),B(b,'pluginName',Ye),b=We([_0x16d28c(_0x4ff535),F(0x1,_0x391d1f(_0x5d0bf7)),F(0x2,_0x3cea69)],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 _0x5e9210=_0x3b6a;(function(_0x52d011,_0x191e05){const _0x4e276a=_0x3b6a,_0xc5dfe8=_0x52d011();while(!![]){try{const _0x4a7dfd=parseInt(_0x4e276a(0x1ec))/0x1+-parseInt(_0x4e276a(0x1eb))/0x2+-parseInt(_0x4e276a(0x1d4))/0x3+-parseInt(_0x4e276a(0x1e9))/0x4+-parseInt(_0x4e276a(0x1e0))/0x5+parseInt(_0x4e276a(0x1de))/0x6+-parseInt(_0x4e276a(0x1d9))/0x7*(-parseInt(_0x4e276a(0x1d1))/0x8);if(_0x4a7dfd===_0x191e05)break;else _0xc5dfe8['push'](_0xc5dfe8['shift']());}catch(_0x59bd65){_0xc5dfe8['push'](_0xc5dfe8['shift']());}}}(_0x1d5f,0x7d18e));function _0x3b6a(_0x2f38cb,_0x525b7d){const _0x1d5f9a=_0x1d5f();return _0x3b6a=function(_0x3b6a99,_0x17af90){_0x3b6a99=_0x3b6a99-0x1d1;let _0x4d83d8=_0x1d5f9a[_0x3b6a99];return _0x4d83d8;},_0x3b6a(_0x2f38cb,_0x525b7d);}import{LiveShareController as _0x2aff66,LiveShareStatus as _0x33a686}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x3a59c2}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x30e55d}from'@univerjs/sheets';import{SetScrollOperation as _0x351684}from'@univerjs/sheets-ui';import{FRange as _0x1bbd65}from'@univerjs/sheets/facade';import{FUniver as _0x5a8d0f,FEnum as _0xb38c6b}from'@univerjs/core/facade';function _0x1d5f(){const _0x2438a7=['No\x20active\x20workbook\x20found.','getLiveShareStatus','_injector','PRESENTING','startRow','1271720QMrMuR','stopFollowing','1911038LVDlyE','418063VliVNQ','getId','get','LiveShareStatusEnum','getStatus','3078616msMHJp','getActiveSheet','getUnitId','2226408gYRxKP','getActiveWorkbook','tryStartPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','extend','35MxvGKL','stopPresenting','_initialize','getLiveShareCoordinatorSync','startFollowing','2393772JTSWQU','getSheetId','1065885PZBVFc','IDLE','syncExecuteCommand','_commandService'];_0x1d5f=function(){return _0x2438a7;};return _0x1d5f();}class I extends _0x1bbd65{[_0x5e9210(0x1db)](_0x2ac189,_0x593de2,_0x319006,_0x70a6a,_0x43fc8d){const _0x59dad7=_0x5e9210,_0x464693=_0x2ac189[_0x59dad7(0x1ee)](_0x2aff66),_0x12da71=_0x2ac189[_0x59dad7(0x1ee)](_0x3a59c2),_0x18cc20=_0x593de2[_0x59dad7(0x1d3)](),_0x5edb58=_0x593de2[_0x59dad7(0x1d2)](),_0x117e08=_0x464693[_0x59dad7(0x1dc)](_0x18cc20);(_0x117e08==null?void 0x0:_0x117e08['getStatus']())!==_0x33a686[_0x59dad7(0x1e7)]||(_0x319006[_0x59dad7(0x1df)]()!==_0x5edb58['getSheetId']()&&this[_0x59dad7(0x1e3)]['executeCommand'](_0x30e55d['id'],{'unitId':_0x18cc20,'subUnitId':_0x319006[_0x59dad7(0x1df)]()}),!_0x12da71['getRenderById'](_0x18cc20))||_0x43fc8d[_0x59dad7(0x1e2)](_0x351684['id'],{'unitId':_0x593de2[_0x59dad7(0x1d3)](),'sheetId':_0x319006['getSheetId'](),'sheetViewStartRow':_0x70a6a[_0x59dad7(0x1e8)],'sheetViewStartColumn':_0x70a6a['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x1bbd65[_0x5e9210(0x1d8)](I);class m extends _0x5a8d0f{[_0x5e9210(0x1e5)](){const _0x4ad0b4=_0x5e9210;var _0x2caf4d,_0x167e8e;const _0x3a24a2=this['_injector'][_0x4ad0b4(0x1ee)](_0x2aff66),_0x355560=(_0x2caf4d=this['getActiveWorkbook']())==null?void 0x0:_0x2caf4d[_0x4ad0b4(0x1ed)]();if(!_0x355560)throw new Error(_0x4ad0b4(0x1e4));const _0x2b683d=_0x3a24a2[_0x4ad0b4(0x1dc)](_0x355560);return(_0x167e8e=_0x2b683d==null?void 0x0:_0x2b683d[_0x4ad0b4(0x1f0)]())!=null?_0x167e8e:_0x33a686[_0x4ad0b4(0x1e1)];}[_0x5e9210(0x1dd)](){const _0x3afcf8=_0x5e9210;var _0x1a9d3f;const _0xfa0c66=this[_0x3afcf8(0x1e6)][_0x3afcf8(0x1ee)](_0x2aff66),_0x422017=(_0x1a9d3f=this[_0x3afcf8(0x1d5)]())==null?void 0x0:_0x1a9d3f['getId']();if(!_0x422017)throw new Error(_0x3afcf8(0x1e4));const _0xdc4a98=_0xfa0c66[_0x3afcf8(0x1dc)](_0x422017);if(!_0xdc4a98)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xdc4a98[_0x3afcf8(0x1dd)]();}[_0x5e9210(0x1ea)](){const _0x39a81a=_0x5e9210;var _0x26708a;const _0x1b94a0=this['_injector'][_0x39a81a(0x1ee)](_0x2aff66),_0x141235=(_0x26708a=this[_0x39a81a(0x1d5)]())==null?void 0x0:_0x26708a[_0x39a81a(0x1ed)]();if(!_0x141235)throw new Error(_0x39a81a(0x1e4));const _0xa0e72e=_0x1b94a0[_0x39a81a(0x1dc)](_0x141235);if(!_0xa0e72e)throw new Error(_0x39a81a(0x1d7));_0xa0e72e[_0x39a81a(0x1ea)]();}['startPresenting'](){const _0xbb30c=_0x5e9210;var _0x26e6c4;const _0x67140f=this[_0xbb30c(0x1e6)][_0xbb30c(0x1ee)](_0x2aff66),_0x3c333d=(_0x26e6c4=this[_0xbb30c(0x1d5)]())==null?void 0x0:_0x26e6c4[_0xbb30c(0x1ed)]();if(!_0x3c333d)throw new Error(_0xbb30c(0x1e4));const _0x38d729=_0x67140f[_0xbb30c(0x1dc)](_0x3c333d);if(!_0x38d729)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x38d729[_0xbb30c(0x1d6)]();}[_0x5e9210(0x1da)](){const _0x114dde=_0x5e9210;var _0x458ea7;const _0x2e9eb8=this[_0x114dde(0x1e6)]['get'](_0x2aff66),_0x5f0601=(_0x458ea7=this[_0x114dde(0x1d5)]())==null?void 0x0:_0x458ea7[_0x114dde(0x1ed)]();if(!_0x5f0601)throw new Error(_0x114dde(0x1e4));const _0x49b3fc=_0x2e9eb8['getLiveShareCoordinatorSync'](_0x5f0601);if(!_0x49b3fc)throw new Error(_0x114dde(0x1d7));_0x49b3fc[_0x114dde(0x1da)]();}}_0x5a8d0f[_0x5e9210(0x1d8)](m);class C extends _0xb38c6b{get[_0x5e9210(0x1ef)](){return _0x33a686;}}_0xb38c6b[_0x5e9210(0x1d8)](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x31e0fe=_0x2156;(function(_0x790349,_0x474d36){const _0x1fc443=_0x2156,_0x42c72b=_0x790349();while(!![]){try{const _0x2d8182=-parseInt(_0x1fc443(0x122))/0x1+-parseInt(_0x1fc443(0x159))/0x2*(parseInt(_0x1fc443(0x14a))/0x3)+parseInt(_0x1fc443(0x110))/0x4*(parseInt(_0x1fc443(0xf1))/0x5)+parseInt(_0x1fc443(0x103))/0x6*(parseInt(_0x1fc443(0xc1))/0x7)+-parseInt(_0x1fc443(0x106))/0x8+-parseInt(_0x1fc443(0x11b))/0x9+parseInt(_0x1fc443(0x157))/0xa;if(_0x2d8182===_0x474d36)break;else _0x42c72b['push'](_0x42c72b['shift']());}catch(_0x1d3f65){_0x42c72b['push'](_0x42c72b['shift']());}}}(_0x5b50,0x699ec));var J=Object[_0x31e0fe(0x11e)],K=(_0x3db337,_0x2b126c,_0x131200)=>_0x2b126c in _0x3db337?J(_0x3db337,_0x2b126c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x131200}):_0x3db337[_0x2b126c]=_0x131200,u=(_0x2520db,_0x21a086,_0x52a2b9)=>K(_0x2520db,typeof _0x21a086!=_0x31e0fe(0x114)?_0x21a086+'':_0x21a086,_0x52a2b9);import{Disposable as _0x228b43,toDisposable as _0x5ef63b,IUniverInstanceService as _0x317c62,Inject as _0x3458e3,Injector as _0x5618b7,IConfigService as _0x1c3f63,ICommandService as _0x1e5b71,RxDisposable as _0x2500e7,UniverInstanceType as _0x43d276,DisposableCollection as _0x24f9a5,CommandType as _0x2a21f4,DependentOn as _0x34be54,Plugin as _0x4e1973,merge as _0x50ef25,registerDependencies as _0x484001,mergeOverrideWithDependencies as _0x3f0d95,touchDependencies as _0x24c6ea}from'@univerjs/core';import{useDependency as _0x28b1d7,useObservable as _0x20ed0a,IUIPartsService as _0x584a6b,BuiltInUIPart as _0x3c0cfc,connectInjector as _0x18b5ed}from'@univerjs/ui';import{jsx as _0x17901e,jsxs as _0x19be63,Fragment as _0x30f380}from'react/jsx-runtime';import{Dropdown as _0x24d95f,clsx as _0x4bc289,Button as _0x22044f}from'@univerjs/design';function _0x5b50(){const _0x403622=['complete','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','attrs','string','idle','HEADER_MENU','ONLINE','unsubscribe','data','reverse','random','following','1em','registerSharedOperation','NEW_CHANGESETS','0\x200\x2017\x2017','onCommandExecuted','replace','_handleNewHost','defIds','LIVESHARE_OPERATION','getLiveShareCoordinatorSync','evenodd','NOT_FOLLOWING','mask','getCurrentTypeOfUnit$','getLiveShareCoordinator','UNIVER_UNKNOWN','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','SAME_OPERATION_SHARE_INTERVAL','memberID','_status$','disposeWithMe','getValue','_commandDisposable','480295qHdBbQ','setConfig','LIVESHARE_TERMINATE','_handleOperation','xlink:href','dispose','next','_beIdle','delete','getTypeOfUnitDisposed$','colorChannel1','has','You\x27re\x20following\x20the\x20presenter','entries','_fetchOperations','_unitID','_config','_uiPartsService','92898KiFgFq','_startFollowing','_handleTerminate','323048AUHuog','stopPresenting','_stopFollowing','_liveShareService','add','end','stopFollowing','_reporters','fill','includes','4mTxtLu','FOLLOWING','_sharedOperations','tag','symbol','_collabSessionService','_init','path','_status','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','status$','4246020rGffZR','_presenter','_handleNewChangeSets','defineProperty','LiveShareIcon','UNIVER_LIVE_SHARE_PLUGIN','_handleOffline','637803ciwrbA','shouldShareOperation','asObservable','div','presenter','then','IDLE','createInstance','parse','none','get','_configService','live-share.config','currentColor','sheet','type','sessionStatus$','onRendered','assign','map','params','Start\x20following','_univerInstanceService','_injector','substring','UNIVER_SHEET','getStatus','UniverIcon','_entities','OFFLINE','getOwnPropertyDescriptor','LIVESHARE_REQUEST_HOST','getInitialStates','Stop\x20following','idSuffix','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','children','subscribe','send','_stopPresenting','186702lzSbsx','executeCommand','stringify','_startLiveShareCoordinator','univerjs-icon\x20univerjs-icon-','forEach','dispose$','set','univer-mb-3\x20univer-w-full\x20univer-text-sm','PRESENTING','_startPresenting','toString','length','13802580beKSVg','requireSession','14eUSTeb','text','You\x27re\x20not\x20following\x20the\x20presenter','getUnitId','not-following','button','_handleOnline','unitId','startFollowing','displayName','getConfig','values','event$','Stop\x20presenting','245EOypGV','current','LIVESHARE_NEW_HOST','offline','pipe','_collabSession','url(#$1','_commandService','presenting','getMemberID','You\x27are\x20offline.','onStarting','Present\x20this\x20document'];_0x5b50=function(){return _0x403622;};return _0x5b50();}import{useRef as _0x58a2f7,createElement as _0x2db518,forwardRef as _0x42a9a1,useState as _0x5e4848,useEffect as _0x5a2871}from'react';import{CollaborationEvent as _0x51229d,parseProtocolChangeset as _0x18e355}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x537dba,SessionStatus as _0x41a8e6,UniverCollaborationClientPlugin as _0xe5cc13}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x20a015,SetWorksheetActiveOperation as _0x51cc86}from'@univerjs/sheets';import{BehaviorSubject as _0x3363c0,Subject as _0x412524}from'rxjs';import{takeUntil as _0xf2e89d,throttleTime as _0x2c8eeb}from'rxjs/operators';import{SetZoomRatioOperation as _0x516bb6,SetScrollOperation as _0x4ac1aa}from'@univerjs/sheets-ui';function k({ref:_0x1bd7a8,..._0x2e1589}){const _0x5a18c2=_0x31e0fe,{icon:_0x40c36a,id:_0x166bb7,className:_0x3775b2,extend:_0x27651e,..._0x97945c}=_0x2e1589,_0x5348b6=(_0x5a18c2(0x14e)+_0x166bb7+'\x20'+(_0x3775b2||''))['trim'](),_0x6c74a7=_0x58a2f7('_'+Oe());return G(_0x40c36a,''+_0x166bb7,{'defIds':_0x40c36a[_0x5a18c2(0xe1)],'idSuffix':_0x6c74a7[_0x5a18c2(0xc2)]},{'ref':_0x1bd7a8,'className':_0x5348b6,..._0x97945c},_0x27651e);}function G(_0x44b7a0,_0x8b3723,_0x512f4d,_0x18cfe5,_0x2e6872){const _0x33b159=_0x31e0fe;return _0x2db518(_0x44b7a0['tag'],{'key':_0x8b3723,...be(_0x44b7a0,_0x512f4d,_0x2e6872),..._0x18cfe5},(Ee(_0x44b7a0,_0x512f4d)[_0x33b159(0x146)]||[])[_0x33b159(0x135)]((_0x44d82a,_0x195b36)=>G(_0x44d82a,_0x8b3723+'-'+_0x44b7a0['tag']+'-'+_0x195b36,_0x512f4d,void 0x0,_0x2e6872)));}function be(_0x50d6a7,_0xb55631,_0x53c9b4){const _0x36e0e3=_0x31e0fe,_0x52e9f7={..._0x50d6a7['attrs']};_0x53c9b4!=null&&_0x53c9b4[_0x36e0e3(0xfb)]&&_0x52e9f7[_0x36e0e3(0x10e)]==='colorChannel1'&&(_0x52e9f7[_0x36e0e3(0x10e)]=_0x53c9b4['colorChannel1']),_0x50d6a7[_0x36e0e3(0x113)]===_0x36e0e3(0xe6)&&_0x52e9f7['id']&&(_0x52e9f7['id']=_0x52e9f7['id']+_0xb55631[_0x36e0e3(0x144)]),Object['entries'](_0x52e9f7)[_0x36e0e3(0x14f)](([_0x2ed913,_0x1b370f])=>{const _0x233cc7=_0x36e0e3;_0x2ed913===_0x233cc7(0xe6)&&typeof _0x1b370f=='string'&&(_0x52e9f7[_0x2ed913]=_0x1b370f[_0x233cc7(0xdf)](/url\(#(.*)\)/,_0x233cc7(0xc7)+_0xb55631[_0x233cc7(0x144)]+')'));});const {defIds:_0x3854fb}=_0xb55631;return!_0x3854fb||_0x3854fb[_0x36e0e3(0x156)]===0x0||(_0x50d6a7[_0x36e0e3(0x113)]==='use'&&_0x52e9f7['xlink:href']&&(_0x52e9f7['xlink:href']=_0x52e9f7[_0x36e0e3(0xf5)]+_0xb55631[_0x36e0e3(0x144)]),Object[_0x36e0e3(0xfe)](_0x52e9f7)[_0x36e0e3(0x14f)](([_0x1c5354,_0x11f227])=>{const _0x3666a3=_0x36e0e3;typeof _0x11f227==_0x3666a3(0xd1)&&(_0x52e9f7[_0x1c5354]=_0x11f227['replace'](/url\(#(.*)\)/,_0x3666a3(0xc7)+_0xb55631[_0x3666a3(0x144)]+')'));})),_0x52e9f7;}function Ee(_0x55b46f,_0x8f397){const _0x3f08c6=_0x31e0fe;var _0x41eb48;const {defIds:_0x4dffc6}=_0x8f397;return!_0x4dffc6||_0x4dffc6['length']===0x0?_0x55b46f:_0x55b46f['tag']==='defs'&&((_0x41eb48=_0x55b46f[_0x3f08c6(0x146)])!=null&&_0x41eb48[_0x3f08c6(0x156)])?{..._0x55b46f,'children':_0x55b46f['children'][_0x3f08c6(0x135)](_0x26a332=>typeof _0x26a332[_0x3f08c6(0xd0)]['id']==_0x3f08c6(0xd1)&&_0x4dffc6&&_0x4dffc6['includes'](_0x26a332[_0x3f08c6(0xd0)]['id'])?{..._0x26a332,'attrs':{..._0x26a332[_0x3f08c6(0xd0)],'id':_0x26a332[_0x3f08c6(0xd0)]['id']+_0x8f397['idSuffix']}}:_0x26a332)}:_0x55b46f;}function Oe(){const _0x2c1d6a=_0x31e0fe;return Math[_0x2c1d6a(0xd8)]()[_0x2c1d6a(0x155)](0x24)[_0x2c1d6a(0x13a)](0x2,0x8);}k[_0x31e0fe(0xbc)]=_0x31e0fe(0x13d);const we={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x31e0fe(0x12b),'viewBox':_0x31e0fe(0xdd),'width':_0x31e0fe(0xda),'height':_0x31e0fe(0xda)},'children':[{'tag':_0x31e0fe(0x117),'attrs':{'fill':'currentColor','d':_0x31e0fe(0xcf)}},{'tag':_0x31e0fe(0x117),'attrs':{'fill':_0x31e0fe(0x12f),'d':_0x31e0fe(0xea),'fillRule':_0x31e0fe(0xe4),'clipRule':_0x31e0fe(0xe4)}}]},W=_0x42a9a1(function(_0x493e85,_0x258d8f){const _0x1efa15=_0x31e0fe;return _0x2db518(k,Object[_0x1efa15(0x134)]({},_0x493e85,{'id':'live-share-icon','ref':_0x258d8f,'icon':we}));});W['displayName']=_0x31e0fe(0x11f);class L extends _0x228b43{constructor(){const _0x4533b7=_0x31e0fe;super(...arguments),u(this,_0x4533b7(0x112),new Set()),u(this,_0x4533b7(0x10d),new Set());}[_0x31e0fe(0xdb)](_0x15536a){const _0x56d8f9=_0x31e0fe;return this[_0x56d8f9(0x112)][_0x56d8f9(0x10a)](_0x15536a),_0x5ef63b(()=>this[_0x56d8f9(0x112)]['delete'](_0x15536a));}['registerInitialStateReporter'](_0x316e22){const _0x5d38e1=_0x31e0fe;return this[_0x5d38e1(0x10d)]['add'](_0x316e22),_0x5ef63b(()=>this['_reporters'][_0x5d38e1(0xf9)](_0x316e22));}[_0x31e0fe(0x123)](_0x46da99){const _0x1724a1=_0x31e0fe;return this[_0x1724a1(0x112)][_0x1724a1(0xfc)](_0x46da99);}[_0x31e0fe(0x142)](_0xeedf09){const _0x25bba2=_0x31e0fe;return Array['from'](this[_0x25bba2(0x10d)])[_0x25bba2(0x135)](_0x29dc5d=>_0x29dc5d(_0xeedf09));}}var Ne=Object[_0x31e0fe(0x140)],Y=(_0x45d860,_0x73ba24,_0x1579c0,_0xf72ddc)=>{for(var _0xaba4a=_0xf72ddc>0x1?void 0x0:_0xf72ddc?Ne(_0x73ba24,_0x1579c0):_0x73ba24,_0x1001e9=_0x45d860['length']-0x1,_0x3aba27;_0x1001e9>=0x0;_0x1001e9--)(_0x3aba27=_0x45d860[_0x1001e9])&&(_0xaba4a=_0x3aba27(_0xaba4a)||_0xaba4a);return _0xaba4a;},_=(_0x18447b,_0x497803)=>(_0x314039,_0x593479)=>_0x497803(_0x314039,_0x593479,_0x18447b);let S=class extends _0x2500e7{constructor(_0x55eb58,_0x4da080,_0x171ff1){const _0x22c51f=_0x31e0fe;super(),u(this,'_entities',new Map()),(this[_0x22c51f(0x138)]=_0x55eb58,this[_0x22c51f(0x139)]=_0x4da080,this[_0x22c51f(0x115)]=_0x171ff1,this['_init']());}async[_0x31e0fe(0xe8)](_0xa6ccb7){const _0x43ebec=_0x31e0fe;return this['_entities'][_0x43ebec(0xfc)](_0xa6ccb7)||await this[_0x43ebec(0x14d)](_0xa6ccb7),this['_entities']['get'](_0xa6ccb7);}[_0x31e0fe(0xe3)](_0x1a3558){const _0x608d02=_0x31e0fe;var _0x5a03cb;return(_0x5a03cb=this[_0x608d02(0x13e)][_0x608d02(0x12c)](_0x1a3558))!=null?_0x5a03cb:null;}['_init'](){const _0x217b4e=_0x31e0fe;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x43d276[_0x217b4e(0x13b)])[_0x217b4e(0xc5)](_0xf2e89d(this[_0x217b4e(0x150)]))[_0x217b4e(0x147)](async _0x251488=>{const _0x1751d0=_0x217b4e,_0x52792f=_0x251488['getUnitId']();this[_0x1751d0(0x13e)][_0x1751d0(0xfc)](_0x52792f)||this[_0x1751d0(0x14d)](_0x52792f);}),this[_0x217b4e(0x138)][_0x217b4e(0xfa)](_0x43d276[_0x217b4e(0x13b)])[_0x217b4e(0xc5)](_0xf2e89d(this[_0x217b4e(0x150)]))['subscribe'](_0x1eb536=>{const _0x436c8d=_0x217b4e,_0x208fcd=_0x1eb536[_0x436c8d(0x15c)](),_0x3d33dd=this[_0x436c8d(0x13e)][_0x436c8d(0x12c)](_0x208fcd);_0x3d33dd==null||_0x3d33dd[_0x436c8d(0xf6)]();});}async[_0x31e0fe(0x14d)](_0x14b2bc){const _0x2c26b4=_0x31e0fe,_0x14256a=await this[_0x2c26b4(0x115)][_0x2c26b4(0x158)](_0x14b2bc),_0x14cf32=this['_injector'][_0x2c26b4(0x129)](N,_0x14b2bc,_0x14256a);return _0x14cf32['init'](),this[_0x2c26b4(0x13e)][_0x2c26b4(0x151)](_0x14b2bc,_0x14cf32),_0x14cf32;}};S=Y([_(0x0,_0x317c62),_(0x1,_0x3458e3(_0x5618b7)),_(0x2,_0x3458e3(_0x537dba))],S);var c=(_0x10b00f=>(_0x10b00f[_0x31e0fe(0x13f)]=_0x31e0fe(0xc4),_0x10b00f[_0x31e0fe(0x128)]=_0x31e0fe(0xd2),_0x10b00f[_0x31e0fe(0x111)]=_0x31e0fe(0xd9),_0x10b00f[_0x31e0fe(0xe5)]='not-following',_0x10b00f[_0x31e0fe(0x153)]='presenting',_0x10b00f))(c||{});function _0x2156(_0x4ecbaf,_0x3af9de){const _0x5b5021=_0x5b50();return _0x2156=function(_0x2156f0,_0x2560e0){_0x2156f0=_0x2156f0-0xb7;let _0x46e9c7=_0x5b5021[_0x2156f0];return _0x46e9c7;},_0x2156(_0x4ecbaf,_0x3af9de);}const Ce=_0x31e0fe(0xeb),De=0xc8;let N=class extends _0x2500e7{constructor(_0x474d6c,_0x408502,_0x392c54,_0x546258,_0x38825d){const _0x56aa39=_0x31e0fe;super(),u(this,'_status$',new _0x3363c0(_0x56aa39(0xd2))),u(this,'status$',this[_0x56aa39(0xed)][_0x56aa39(0x124)]()),u(this,_0x56aa39(0x116),!0x1),u(this,'_commandDisposable',null),u(this,_0x56aa39(0x11c),null),(this[_0x56aa39(0x100)]=_0x474d6c,this[_0x56aa39(0xc6)]=_0x408502,this['_configService']=_0x392c54,this[_0x56aa39(0x109)]=_0x546258,this[_0x56aa39(0xc8)]=_0x38825d);}get[_0x31e0fe(0x118)](){const _0x5a207f=_0x31e0fe;return this['_status$'][_0x5a207f(0xef)]();}['dispose'](){const _0xc64f10=_0x31e0fe;var _0x7e83e8;(_0x7e83e8=this[_0xc64f10(0xf0)])==null||_0x7e83e8[_0xc64f10(0xf6)](),this[_0xc64f10(0xed)]['next'](_0xc64f10(0xd2)),this['_status$']['complete']();}[_0x31e0fe(0x13c)](){return this['_status'];}['init'](){const _0x15fd65=_0x31e0fe;this['_init']||(this[_0x15fd65(0x116)]=!0x0,this[_0x15fd65(0xc6)][_0x15fd65(0x132)][_0x15fd65(0xc5)](_0xf2e89d(this[_0x15fd65(0x150)]))[_0x15fd65(0x147)](_0xc51298=>{const _0x4b90fe=_0x15fd65;switch(_0xc51298){case _0x41a8e6[_0x4b90fe(0x13f)]:this[_0x4b90fe(0x121)]();break;case _0x41a8e6[_0x4b90fe(0xd4)]:this[_0x4b90fe(0xb9)]();break;}}),this[_0x15fd65(0xc6)][_0x15fd65(0xbf)][_0x15fd65(0xc5)](_0xf2e89d(this[_0x15fd65(0x150)]))[_0x15fd65(0x147)](_0x3b9818=>{const _0x50fbd7=_0x15fd65,{eventID:_0x5f0a81}=_0x3b9818;switch(_0x5f0a81){case _0x51229d[_0x50fbd7(0xc3)]:this[_0x50fbd7(0xe0)](_0x3b9818);break;case _0x51229d[_0x50fbd7(0xe2)]:this[_0x50fbd7(0xf4)](_0x3b9818);break;case _0x51229d['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x51229d[_0x50fbd7(0xdc)]:this['_handleNewChangeSets'](_0x3b9818);break;}}));}['tryStartPresenting'](){const _0xfb5af4=_0x31e0fe;this[_0xfb5af4(0xc6)][_0xfb5af4(0x148)]({'eventID':_0x51229d[_0xfb5af4(0x141)],'data':{'unitID':this[_0xfb5af4(0x100)],'userID':this[_0xfb5af4(0xc6)]['getMemberID']()}},this[_0xfb5af4(0x100)]);}[_0x31e0fe(0x107)](){const _0x3c0ab5=_0x31e0fe;this[_0x3c0ab5(0x118)]===_0x3c0ab5(0xc9)&&(this[_0x3c0ab5(0xed)][_0x3c0ab5(0xf7)]('idle'),this[_0x3c0ab5(0xc6)][_0x3c0ab5(0x148)]({'eventID':_0x51229d[_0x3c0ab5(0xf3)],'data':{'unitID':this[_0x3c0ab5(0x100)]}},this[_0x3c0ab5(0x100)]));}[_0x31e0fe(0xbb)](){const _0x1f4608=_0x31e0fe;this[_0x1f4608(0x118)]==='not-following'&&(this[_0x1f4608(0xed)][_0x1f4608(0xf7)]('following'),this[_0x1f4608(0x104)]());}[_0x31e0fe(0x10c)](){const _0x59d6c8=_0x31e0fe;this['_status']===_0x59d6c8(0xd9)&&this['_stopFollowing']();}[_0x31e0fe(0xe0)](_0x4d09bb){const _0x37cb3a=_0x31e0fe,{presenter:_0x1b3a1f}=_0x4d09bb['data'],_0x560ad5=this[_0x37cb3a(0xc6)][_0x37cb3a(0xca)]();this['_presenter']=_0x1b3a1f,_0x1b3a1f===_0x560ad5?(this[_0x37cb3a(0x108)](),this['_startPresenting']()):this[_0x37cb3a(0x118)]!=='not-following'&&(this[_0x37cb3a(0x149)](),this['_startFollowing']());}[_0x31e0fe(0xff)](){const _0xaa4ebe=_0x31e0fe,_0x3a4a34={'eventID':_0x51229d['LIVESHARE_FETCH_OPERATIONS']};this[_0xaa4ebe(0xc6)][_0xaa4ebe(0x148)](_0x3a4a34,this[_0xaa4ebe(0x100)]);}[_0x31e0fe(0x105)](){const _0x497cdb=_0x31e0fe;this['_presenter']=null,this[_0x497cdb(0x118)]!=='presenting'&&this[_0x497cdb(0xf8)]();}[_0x31e0fe(0x11d)](_0x4065a4){const _0x163a88=_0x31e0fe;if(this['_status']===_0x163a88(0xd9)&&this['_presenter']===_0x4065a4['data'][_0x163a88(0xec)]){const _0x46ad8c=_0x18e355(_0x4065a4[_0x163a88(0xd6)])['mutations'][_0x163a88(0xd7)]()['find'](_0x13a32c=>_0x13a32c['id']===_0x20a015['id']);if(_0x46ad8c){const _0x5f0172=_0x46ad8c['params'][_0x163a88(0xba)],_0x2252cb=_0x46ad8c['params'][_0x163a88(0x130)]['id'];setTimeout(()=>{const _0x4cedcc=_0x163a88;this['_commandService'][_0x4cedcc(0x14b)](_0x51cc86['id'],{'unitId':_0x5f0172,'subUnitId':_0x2252cb},{'fromCollab':!0x0});});}}}[_0x31e0fe(0x154)](){const _0x4d1d5b=_0x31e0fe;this['_status$']['next'](_0x4d1d5b(0xc9));const _0x3b8b1a=new Map(),_0x458268=this[_0x4d1d5b(0xf0)]=new _0x24f9a5();_0x458268[_0x4d1d5b(0x10a)](_0x5ef63b(()=>{const _0x190f1a=_0x4d1d5b;_0x3b8b1a[_0x190f1a(0x14f)](_0x77114b=>_0x77114b[_0x190f1a(0xce)]()),_0x3b8b1a['clear']();})),_0x458268[_0x4d1d5b(0x10a)](this[_0x4d1d5b(0xc8)][_0x4d1d5b(0xde)](_0x4bd36b=>{const _0x339294=_0x4d1d5b;var _0xdbc029;if(_0x4bd36b['type']!==_0x2a21f4['OPERATION']||!this[_0x339294(0x109)]['shouldShareOperation'](_0x4bd36b['id']))return;const {id:_0x200d1f}=_0x4bd36b;let _0x2c9bd6;_0x3b8b1a['has'](_0x200d1f)?_0x2c9bd6=_0x3b8b1a[_0x339294(0x12c)](_0x200d1f):(_0x2c9bd6=new _0x412524(),_0x3b8b1a[_0x339294(0x151)](_0x200d1f,_0x2c9bd6),_0x2c9bd6[_0x339294(0xc5)](_0x2c8eeb((_0xdbc029=this[_0x339294(0x12d)][_0x339294(0xbd)](Ce))!=null?_0xdbc029:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1e493d=>{const _0x528b64=_0x339294;this[_0x528b64(0xc6)][_0x528b64(0x148)]({'eventID':_0x51229d[_0x528b64(0xe2)],'data':{'unitID':this[_0x528b64(0x100)],'operations':{[_0x1e493d['id']]:{'id':_0x1e493d['id'],'params':JSON[_0x528b64(0x14c)](_0x1e493d['params'])}}}},this[_0x528b64(0x100)]);})),_0x2c9bd6[_0x339294(0xf7)](_0x4bd36b);})),this['_liveShareService']['getInitialStates'](this[_0x4d1d5b(0x100)])['forEach'](_0x4defc1=>this[_0x4d1d5b(0xc6)][_0x4d1d5b(0x148)]({'eventID':_0x51229d['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4d1d5b(0x100)],'operations':{[_0x4defc1['id']]:{'id':_0x4defc1['id'],'params':JSON[_0x4d1d5b(0x14c)](_0x4defc1[_0x4d1d5b(0x136)])}}}},this['_unitID']));}[_0x31e0fe(0x149)](){const _0x12d733=_0x31e0fe;var _0x2cd6f0;this[_0x12d733(0xed)][_0x12d733(0xf7)](_0x12d733(0xd2)),(_0x2cd6f0=this[_0x12d733(0xf0)])==null||_0x2cd6f0['dispose'](),this[_0x12d733(0xf0)]=null;}[_0x31e0fe(0x104)](){const _0x149a61=_0x31e0fe;var _0x471c96;(_0x471c96=this[_0x149a61(0xf0)])==null||_0x471c96[_0x149a61(0xf6)](),this[_0x149a61(0xed)][_0x149a61(0xf7)](_0x149a61(0xd9));}[_0x31e0fe(0xf8)](){const _0x1da58a=_0x31e0fe;var _0x521932;this[_0x1da58a(0xed)][_0x1da58a(0xf7)](_0x1da58a(0xd2)),(_0x521932=this[_0x1da58a(0xf0)])==null||_0x521932[_0x1da58a(0xf6)](),this[_0x1da58a(0xf0)]=null;}[_0x31e0fe(0x108)](){const _0x1a38f5=_0x31e0fe;var _0x4ae33f;this[_0x1a38f5(0xed)][_0x1a38f5(0xf7)]('not-following'),(_0x4ae33f=this[_0x1a38f5(0xf0)])==null||_0x4ae33f[_0x1a38f5(0xf6)]();}[_0x31e0fe(0xf4)](_0xda7a5a){const _0x145449=_0x31e0fe;if([_0x145449(0xc9),_0x145449(0xb7),_0x145449(0xc4)][_0x145449(0x10f)](this[_0x145449(0x118)])||!_0xda7a5a[_0x145449(0xd6)][_0x145449(0x126)]||_0xda7a5a[_0x145449(0xd6)][_0x145449(0x126)]===this[_0x145449(0xc6)][_0x145449(0xca)]())return;this[_0x145449(0x118)]===_0x145449(0xd2)&&this[_0x145449(0x104)]();const _0x4930dd=_0xda7a5a[_0x145449(0xd6)]['operations'];Object[_0x145449(0xbe)](_0x4930dd)['forEach'](_0xfc945=>{const _0xf918b1=_0x145449;this[_0xf918b1(0xc8)][_0xf918b1(0x14b)](_0xfc945['id'],_0xfc945[_0xf918b1(0x136)]?JSON[_0xf918b1(0x12a)](_0xfc945[_0xf918b1(0x136)]):null,{'fromCollab':!0x0});});}[_0x31e0fe(0x121)](){const _0x38c0f0=_0x31e0fe;var _0xd55dec;this['_status$'][_0x38c0f0(0xf7)](_0x38c0f0(0xc4)),(_0xd55dec=this[_0x38c0f0(0xf0)])==null||_0xd55dec['dispose']();}['_handleOnline'](){const _0x159811=_0x31e0fe;this['_status$']['next'](_0x159811(0xd2)),this[_0x159811(0xff)]();}};N=Y([_(0x2,_0x1c3f63),_(0x3,_0x3458e3(L)),_(0x4,_0x1e5b71)],N);function Le(){const _0x1d7bef=_0x31e0fe,_0x55bb7a=_0x28b1d7(S),_0x40b6c7=_0x28b1d7(_0x317c62),_0x5bc88a=_0x20ed0a(()=>_0x40b6c7[_0x1d7bef(0xe7)](_0x43d276[_0x1d7bef(0x13b)]),void 0x0,!0x1,[]),[_0x37f89d,_0x544345]=_0x5e4848(null),[_0x3f6ab9,_0x595009]=_0x5e4848(c[_0x1d7bef(0x128)]),_0x30e7be=_0x58a2f7(null);return _0x5a2871(()=>(_0x5bc88a&&_0x55bb7a[_0x1d7bef(0xe8)](_0x5bc88a[_0x1d7bef(0x15c)]())[_0x1d7bef(0x127)](_0x43ca4f=>{const _0x8db60f=_0x1d7bef;_0x544345(_0x43ca4f),_0x30e7be[_0x8db60f(0xc2)]=_0x43ca4f[_0x8db60f(0x11a)][_0x8db60f(0x147)](_0x4c868e=>{_0x595009(_0x4c868e);});}),()=>{const _0x106c21=_0x1d7bef;var _0x4d2e76;(_0x4d2e76=_0x30e7be['current'])==null||_0x4d2e76[_0x106c21(0xd5)](),_0x30e7be['current']=null;}),[_0x5bc88a,_0x55bb7a]),_0x37f89d?_0x17901e(_0x24d95f,{'align':_0x1d7bef(0x10b),'disabled':_0x3f6ab9===c['OFFLINE'],'className':_0x1d7bef(0x119),'overlay':_0x17901e(Re,{'status':_0x3f6ab9,'coordinator':_0x37f89d}),'children':_0x17901e('button',{'className':_0x4bc289(_0x1d7bef(0x145),{'univer-cursor-not-allowed':_0x3f6ab9===c[_0x1d7bef(0x13f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3f6ab9!==c[_0x1d7bef(0x13f)]}),'type':_0x1d7bef(0xb8),'children':_0x17901e(W,{'className':'univer-size-4'})})}):null;}function Re(_0x217568){const _0xe8d60a=_0x31e0fe,{status:_0x4d87ca,coordinator:_0x1e0159}=_0x217568;switch(_0x4d87ca){case c[_0xe8d60a(0x128)]:return _0x17901e($e,{'coordinator':_0x1e0159});case c['FOLLOWING']:return _0x17901e(xe,{'coordinator':_0x1e0159});case c[_0xe8d60a(0xe5)]:return _0x17901e(Pe,{'coordinator':_0x1e0159});case c[_0xe8d60a(0x13f)]:return _0x17901e(Te,{});case c['PRESENTING']:return _0x17901e(Ae,{'coordinator':_0x1e0159});default:return null;}}function $e(_0x5d46c7){const _0x592148=_0x31e0fe,{coordinator:_0x4ca482}=_0x5d46c7;return _0x19be63(_0x30f380,{'children':[_0x17901e('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x592148(0xcd)}),_0x17901e(_0x22044f,{'onClick':()=>_0x4ca482['tryStartPresenting'](),'children':'Start'})]});}function xe(_0x5a0919){const _0x49176b=_0x31e0fe,{coordinator:_0x98d896}=_0x5a0919;return _0x19be63(_0x30f380,{'children':[_0x17901e('div',{'className':_0x49176b(0x152),'children':_0x49176b(0xfd)}),_0x17901e(_0x22044f,{'onClick':()=>_0x98d896[_0x49176b(0x10c)](),'children':_0x49176b(0x143)})]});}function Pe(_0x5d82a4){const _0x3f5c57=_0x31e0fe,{coordinator:_0x1fb1b6}=_0x5d82a4;return _0x19be63(_0x30f380,{'children':[_0x17901e(_0x3f5c57(0x125),{'className':_0x3f5c57(0x152),'children':_0x3f5c57(0x15b)}),_0x17901e(_0x22044f,{'variant':_0x3f5c57(0x15a),'onClick':()=>_0x1fb1b6[_0x3f5c57(0xbb)](),'children':_0x3f5c57(0x137)})]});}function Ae(_0x1d8cfb){const _0x35f30c=_0x31e0fe,{coordinator:_0x65e032}=_0x1d8cfb;return _0x19be63(_0x30f380,{'children':[_0x17901e('div',{'className':_0x35f30c(0x152),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x17901e(_0x22044f,{'variant':'default','onClick':()=>_0x65e032[_0x35f30c(0x107)](),'children':_0x35f30c(0xc0)})]});}function Te(){const _0x3befb6=_0x31e0fe;return _0x17901e(_0x30f380,{'children':_0x3befb6(0xcb)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x12526f,_0x116b0f,_0x148ba8,_0x23038f)=>{const _0x296034=_0x31e0fe;for(var _0x3f349f=_0x23038f>0x1?void 0x0:_0x23038f?Fe(_0x116b0f,_0x148ba8):_0x116b0f,_0x421f4b=_0x12526f[_0x296034(0x156)]-0x1,_0x531aae;_0x421f4b>=0x0;_0x421f4b--)(_0x531aae=_0x12526f[_0x421f4b])&&(_0x3f349f=_0x531aae(_0x3f349f)||_0x3f349f);return _0x3f349f;},A=(_0x17ec15,_0x1051bf)=>(_0x133fe3,_0x3d1ef2)=>_0x1051bf(_0x133fe3,_0x3d1ef2,_0x17ec15);let m=class extends _0x228b43{constructor(_0x254e22,_0x28b170){const _0x22554b=_0x31e0fe;super(),this[_0x22554b(0x139)]=_0x254e22,this[_0x22554b(0x102)]=_0x28b170,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x3e11fb=_0x31e0fe;this[_0x3e11fb(0xee)](this[_0x3e11fb(0x102)]['registerComponent'](_0x3c0cfc[_0x3e11fb(0xd3)],()=>_0x18b5ed(Le,this[_0x3e11fb(0x139)])));}};m=He([A(0x0,_0x3458e3(_0x5618b7)),A(0x1,_0x584a6b)],m);const ye=_0x31e0fe(0x12e),T={};var Ue=Object[_0x31e0fe(0x140)],Ve=(_0x51c540,_0x307ead,_0x126981,_0x318a33)=>{const _0x4edf03=_0x31e0fe;for(var _0x557686=_0x318a33>0x1?void 0x0:_0x318a33?Ue(_0x307ead,_0x126981):_0x307ead,_0x35138d=_0x51c540[_0x4edf03(0x156)]-0x1,_0x32df21;_0x35138d>=0x0;_0x35138d--)(_0x32df21=_0x51c540[_0x35138d])&&(_0x557686=_0x32df21(_0x557686)||_0x557686);return _0x557686;},je=(_0x3d62d6,_0x59c896)=>(_0x3eb9ab,_0x53e26a)=>_0x59c896(_0x3eb9ab,_0x53e26a,_0x3d62d6);let I=class extends _0x228b43{constructor(_0x588829){const _0x20e3dd=_0x31e0fe;super(),this[_0x20e3dd(0x109)]=_0x588829,this[_0x20e3dd(0x116)]();}[_0x31e0fe(0x116)](){const _0x1b5618=_0x31e0fe;[_0x516bb6['id'],_0x4ac1aa['id'],_0x51cc86['id']][_0x1b5618(0x14f)](_0x5560eb=>{const _0x33ee34=_0x1b5618;this[_0x33ee34(0xee)](this[_0x33ee34(0x109)][_0x33ee34(0xdb)](_0x5560eb));});}};I=Ve([je(0x0,_0x3458e3(L))],I);var Me=Object[_0x31e0fe(0x11e)],ke=Object[_0x31e0fe(0x140)],Ge=(_0x562f13,_0x12fc5f,_0x5dc6bb)=>_0x12fc5f in _0x562f13?Me(_0x562f13,_0x12fc5f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5dc6bb}):_0x562f13[_0x12fc5f]=_0x5dc6bb,We=(_0x1d86c1,_0x5061d3,_0x55cacd,_0x4d63df)=>{const _0xc46480=_0x31e0fe;for(var _0x55d2eb=_0x4d63df>0x1?void 0x0:_0x4d63df?ke(_0x5061d3,_0x55cacd):_0x5061d3,_0x34690e=_0x1d86c1[_0xc46480(0x156)]-0x1,_0xca3e05;_0x34690e>=0x0;_0x34690e--)(_0xca3e05=_0x1d86c1[_0x34690e])&&(_0x55d2eb=_0xca3e05(_0x55d2eb)||_0x55d2eb);return _0x55d2eb;},F=(_0x428281,_0x3d99cf)=>(_0x1847a3,_0x26043a)=>_0x3d99cf(_0x1847a3,_0x26043a,_0x428281),B=(_0x5b44af,_0x1140a1,_0x4b85f9)=>Ge(_0x5b44af,typeof _0x1140a1!='symbol'?_0x1140a1+'':_0x1140a1,_0x4b85f9);const Ye=_0x31e0fe(0x120);let b=class extends _0x4e1973{constructor(_0x11d1b1=T,_0x462d12,_0x39cb0c){const _0x2c0459=_0x31e0fe;super(),this[_0x2c0459(0x101)]=_0x11d1b1,this[_0x2c0459(0x139)]=_0x462d12,this[_0x2c0459(0x12d)]=_0x39cb0c;const {..._0x20c96b}=_0x50ef25({},T,this['_config']);this[_0x2c0459(0x12d)][_0x2c0459(0xf2)](ye,_0x20c96b);}[_0x31e0fe(0xcc)](){const _0x5aeb0f=_0x31e0fe;_0x484001(this[_0x5aeb0f(0x139)],_0x3f0d95([[L],[S],[I],[m]],this['_config']['override'])),_0x24c6ea(this['_injector'],[[I]]);}[_0x31e0fe(0x133)](){const _0x49dcbf=_0x31e0fe;_0x24c6ea(this[_0x49dcbf(0x139)],[[m]]);}};B(b,_0x31e0fe(0x131),_0x43d276[_0x31e0fe(0xe9)]),B(b,'pluginName',Ye),b=We([_0x34be54(_0xe5cc13),F(0x1,_0x3458e3(_0x5618b7)),F(0x2,_0x1c3f63)],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 _0x4a1364=_0x1611;(function(_0x174384,_0x2ba426){const _0xb005ce=_0x1611,_0x39109e=_0x174384();while(!![]){try{const _0x398363=parseInt(_0xb005ce(0x1e5))/0x1+parseInt(_0xb005ce(0x1c2))/0x2*(-parseInt(_0xb005ce(0x1d1))/0x3)+parseInt(_0xb005ce(0x198))/0x4*(-parseInt(_0xb005ce(0x1a5))/0x5)+-parseInt(_0xb005ce(0x231))/0x6*(parseInt(_0xb005ce(0x1c8))/0x7)+-parseInt(_0xb005ce(0x1a9))/0x8+-parseInt(_0xb005ce(0x1e9))/0x9*(parseInt(_0xb005ce(0x21a))/0xa)+parseInt(_0xb005ce(0x1ff))/0xb;if(_0x398363===_0x2ba426)break;else _0x39109e['push'](_0x39109e['shift']());}catch(_0x20bedc){_0x39109e['push'](_0x39109e['shift']());}}}(_0x329e,0xea4cf));var J=Object[_0x4a1364(0x1d2)],K=(_0x7347fd,_0xe27ffd,_0x2cca53)=>_0xe27ffd in _0x7347fd?J(_0x7347fd,_0xe27ffd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2cca53}):_0x7347fd[_0xe27ffd]=_0x2cca53,u=(_0x387170,_0x59add2,_0xeb2374)=>K(_0x387170,typeof _0x59add2!=_0x4a1364(0x1c5)?_0x59add2+'':_0x59add2,_0xeb2374);import{Disposable as _0x269b11,toDisposable as _0x6f7e3f,IUniverInstanceService as _0x48ed98,Inject as _0x391d1f,Injector as _0x5d0bf7,IConfigService as _0x3cea69,ICommandService as _0x3a554d,RxDisposable as _0x583e52,UniverInstanceType as _0x24a343,DisposableCollection as _0x9be91c,CommandType as _0x23329a,DependentOn as _0x16d28c,Plugin as _0x41f754,merge as _0x35aa33,registerDependencies as _0x2356c0,mergeOverrideWithDependencies as _0x2a3169,touchDependencies as _0x400195}from'@univerjs/core';import{useDependency as _0x21c95c,useObservable as _0x1fe6f7,IUIPartsService as _0x2d6132,BuiltInUIPart as _0x492383,connectInjector as _0x150e4f}from'@univerjs/ui';import{jsx as _0x25c8f2,jsxs as _0x229141,Fragment as _0x3b7e96}from'react/jsx-runtime';import{Dropdown as _0x3072c6,clsx as _0x3dc8ae,Button as _0x41e64b}from'@univerjs/design';import{useRef as _0x5e24b6,createElement as _0x358175,forwardRef as _0x3269f0,useState as _0x3a7f61,useEffect as _0x3aabb1}from'react';import{CollaborationEvent as _0x39403f,parseProtocolChangeset as _0x46c9bc}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x4c6691,SessionStatus as _0x448deb,UniverCollaborationClientPlugin as _0x4ff535}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4b0d4a,SetWorksheetActiveOperation as _0x83e219}from'@univerjs/sheets';import{BehaviorSubject as _0x463108,Subject as _0x4c1c0a}from'rxjs';import{takeUntil as _0x21c14a,throttleTime as _0x1fb19d}from'rxjs/operators';import{SetZoomRatioOperation as _0x1f96a7,SetScrollOperation as _0x38ce2c}from'@univerjs/sheets-ui';function k({ref:_0x11b518,..._0xe53fab}){const _0x147176=_0x4a1364,{icon:_0x58cff9,id:_0xb87d55,className:_0x2f0bb3,extend:_0x4054c8,..._0x285c2b}=_0xe53fab,_0x1e6495=(_0x147176(0x192)+_0xb87d55+'\x20'+(_0x2f0bb3||''))['trim'](),_0x19f5b6=_0x5e24b6('_'+Oe());return G(_0x58cff9,''+_0xb87d55,{'defIds':_0x58cff9[_0x147176(0x1dd)],'idSuffix':_0x19f5b6[_0x147176(0x217)]},{'ref':_0x11b518,'className':_0x1e6495,..._0x285c2b},_0x4054c8);}function G(_0x37432a,_0xf158a7,_0x26a6c9,_0x26f84a,_0x504310){const _0x4056c0=_0x4a1364;return _0x358175(_0x37432a['tag'],{'key':_0xf158a7,...be(_0x37432a,_0x26a6c9,_0x504310),..._0x26f84a},(Ee(_0x37432a,_0x26a6c9)[_0x4056c0(0x224)]||[])[_0x4056c0(0x1d9)]((_0x3aac5f,_0x3fd02f)=>G(_0x3aac5f,_0xf158a7+'-'+_0x37432a[_0x4056c0(0x219)]+'-'+_0x3fd02f,_0x26a6c9,void 0x0,_0x504310)));}function be(_0x1a9a38,_0x497626,_0x5ea99e){const _0x259e70=_0x4a1364,_0x2a5dd6={..._0x1a9a38[_0x259e70(0x1c0)]};_0x5ea99e!=null&&_0x5ea99e['colorChannel1']&&_0x2a5dd6[_0x259e70(0x206)]===_0x259e70(0x1bf)&&(_0x2a5dd6[_0x259e70(0x206)]=_0x5ea99e[_0x259e70(0x1bf)]),_0x1a9a38['tag']===_0x259e70(0x1b0)&&_0x2a5dd6['id']&&(_0x2a5dd6['id']=_0x2a5dd6['id']+_0x497626[_0x259e70(0x21c)]),Object[_0x259e70(0x1aa)](_0x2a5dd6)[_0x259e70(0x21e)](([_0x4ff8ee,_0x574169])=>{const _0x6522fa=_0x259e70;_0x4ff8ee==='mask'&&typeof _0x574169==_0x6522fa(0x1ea)&&(_0x2a5dd6[_0x4ff8ee]=_0x574169[_0x6522fa(0x1f8)](/url\(#(.*)\)/,_0x6522fa(0x197)+_0x497626[_0x6522fa(0x21c)]+')'));});const {defIds:_0x1f6eae}=_0x497626;return!_0x1f6eae||_0x1f6eae['length']===0x0||(_0x1a9a38[_0x259e70(0x219)]==='use'&&_0x2a5dd6['xlink:href']&&(_0x2a5dd6[_0x259e70(0x21b)]=_0x2a5dd6['xlink:href']+_0x497626['idSuffix']),Object[_0x259e70(0x1aa)](_0x2a5dd6)[_0x259e70(0x21e)](([_0x3a44a4,_0x423b78])=>{const _0x32a6b4=_0x259e70;typeof _0x423b78=='string'&&(_0x2a5dd6[_0x3a44a4]=_0x423b78[_0x32a6b4(0x1f8)](/url\(#(.*)\)/,'url(#$1'+_0x497626[_0x32a6b4(0x21c)]+')'));})),_0x2a5dd6;}function Ee(_0x46abe6,_0x56ee94){const _0x415979=_0x4a1364;var _0x391b35;const {defIds:_0x357879}=_0x56ee94;return!_0x357879||_0x357879[_0x415979(0x22e)]===0x0?_0x46abe6:_0x46abe6[_0x415979(0x219)]===_0x415979(0x193)&&((_0x391b35=_0x46abe6[_0x415979(0x224)])!=null&&_0x391b35[_0x415979(0x22e)])?{..._0x46abe6,'children':_0x46abe6[_0x415979(0x224)][_0x415979(0x1d9)](_0x8140c0=>typeof _0x8140c0[_0x415979(0x1c0)]['id']=='string'&&_0x357879&&_0x357879[_0x415979(0x1d5)](_0x8140c0[_0x415979(0x1c0)]['id'])?{..._0x8140c0,'attrs':{..._0x8140c0[_0x415979(0x1c0)],'id':_0x8140c0[_0x415979(0x1c0)]['id']+_0x56ee94[_0x415979(0x21c)]}}:_0x8140c0)}:_0x46abe6;}function Oe(){const _0x3d2c56=_0x4a1364;return Math[_0x3d2c56(0x1f2)]()[_0x3d2c56(0x21d)](0x24)[_0x3d2c56(0x20e)](0x2,0x8);}function _0x329e(){const _0x2b8411=['add','length','stringify','_configService','1268970cGQxiG','getCurrentTypeOfUnit$','FOLLOWING','_commandService','You\x27re\x20following\x20the\x20presenter','data','_config','then','delete','getMemberID','univerjs-icon\x20univerjs-icon-','defs','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','You\x27re\x20presenting\x20the\x20document','UNIVER_SHEET','url(#$1','524716UFZtFm','_injector','_liveShareService','_presenter','complete','path','stopFollowing','univer-mb-3\x20univer-w-full\x20univer-text-sm','sessionStatus$','subscribe','_mountLiveShare','send','_handleNewChangeSets','65KkfRkR','_collabSessionService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','sheet','7609992IwnssG','entries','OFFLINE','default','stopPresenting','asObservable','UNIVER_LIVE_SHARE_PLUGIN','mask','Present\x20this\x20document','tryStartPresenting','_handleOffline','ONLINE','text','Stop\x20presenting','unsubscribe','_handleOnline','_sharedOperations','PRESENTING','_uiPartsService','univer-size-4','presenting','LIVESHARE_TERMINATE','colorChannel1','attrs','1em','16nLyiHk','set','NEW_CHANGESETS','symbol','requireSession','_reporters','14KoGwsw','get','div','_univerInstanceService','onStarting','startFollowing','getTypeOfUnitDisposed$','_status$','Stop\x20following','296364aPqIth','defineProperty','_startLiveShareCoordinator','has','includes','mutations','status$','registerComponent','map','onRendered','getStatus','getInitialStates','defIds','LIVESHARE_OPERATION','override','dispose$','_commandDisposable','memberID','0\x200\x2017\x2017','disposeWithMe','831137kCWCLx','params','none','getLiveShareCoordinatorSync','76581OfVKUw','string','find','getTypeOfUnitAdded$','_stopFollowing','createInstance','executeCommand','currentColor','type','random','setConfig','dispose','UNIVER_UNKNOWN','end','_init','replace','getLiveShareCoordinator','http://www.w3.org/2000/svg','presenter','onCommandExecuted','parse','_handleOperation','51377029iMLhNs','_stopPresenting','evenodd','next','_startPresenting','LiveShareIcon','displayName','fill','offline','getOwnPropertyDescriptor','getUnitId','_collabSession','assign','not-following','button','substring','IDLE','following','event$','_unitID','shouldShareOperation','_entities','idle','pipe','current','registerSharedOperation','tag','790ViCxUt','xlink:href','idSuffix','toString','forEach','getValue','clear','OPERATION','_fetchOperations','_beIdle','children','_handleNewHost','operations','init','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','NOT_FOLLOWING','_status','You\x27re\x20not\x20following\x20the\x20presenter','_startFollowing'];_0x329e=function(){return _0x2b8411;};return _0x329e();}k[_0x4a1364(0x205)]='UniverIcon';const we={'tag':'svg','attrs':{'xmlns':_0x4a1364(0x1fa),'fill':_0x4a1364(0x1e7),'viewBox':_0x4a1364(0x1e3),'width':_0x4a1364(0x1c1),'height':'1em'},'children':[{'tag':_0x4a1364(0x19d),'attrs':{'fill':_0x4a1364(0x1f0),'d':_0x4a1364(0x228)}},{'tag':_0x4a1364(0x19d),'attrs':{'fill':'currentColor','d':_0x4a1364(0x194),'fillRule':_0x4a1364(0x201),'clipRule':'evenodd'}}]},W=_0x3269f0(function(_0x19591a,_0x3ca980){const _0x2c2f82=_0x4a1364;return _0x358175(k,Object[_0x2c2f82(0x20b)]({},_0x19591a,{'id':'live-share-icon','ref':_0x3ca980,'icon':we}));});W[_0x4a1364(0x205)]=_0x4a1364(0x204);class L extends _0x269b11{constructor(){const _0x3c98b1=_0x4a1364;super(...arguments),u(this,_0x3c98b1(0x1b9),new Set()),u(this,'_reporters',new Set());}[_0x4a1364(0x218)](_0x19e4e0){const _0x4b9cd9=_0x4a1364;return this['_sharedOperations'][_0x4b9cd9(0x22d)](_0x19e4e0),_0x6f7e3f(()=>this['_sharedOperations'][_0x4b9cd9(0x190)](_0x19e4e0));}['registerInitialStateReporter'](_0x162e14){const _0x111f09=_0x4a1364;return this[_0x111f09(0x1c7)][_0x111f09(0x22d)](_0x162e14),_0x6f7e3f(()=>this[_0x111f09(0x1c7)][_0x111f09(0x190)](_0x162e14));}['shouldShareOperation'](_0x53e193){const _0x48ddbd=_0x4a1364;return this['_sharedOperations'][_0x48ddbd(0x1d4)](_0x53e193);}[_0x4a1364(0x1dc)](_0x2c0941){return Array['from'](this['_reporters'])['map'](_0x2a81a6=>_0x2a81a6(_0x2c0941));}}var Ne=Object[_0x4a1364(0x208)],Y=(_0x3c60e6,_0x341eec,_0x68f3b7,_0x555f08)=>{const _0xf795ae=_0x4a1364;for(var _0x877a26=_0x555f08>0x1?void 0x0:_0x555f08?Ne(_0x341eec,_0x68f3b7):_0x341eec,_0x47ea4c=_0x3c60e6[_0xf795ae(0x22e)]-0x1,_0x3a00ec;_0x47ea4c>=0x0;_0x47ea4c--)(_0x3a00ec=_0x3c60e6[_0x47ea4c])&&(_0x877a26=_0x3a00ec(_0x877a26)||_0x877a26);return _0x877a26;},_=(_0x52a135,_0x2f331f)=>(_0x313dcb,_0x134332)=>_0x2f331f(_0x313dcb,_0x134332,_0x52a135);let S=class extends _0x583e52{constructor(_0x5349b0,_0x4785ed,_0x1fbfc0){const _0x1585ef=_0x4a1364;super(),u(this,_0x1585ef(0x214),new Map()),(this[_0x1585ef(0x1cb)]=_0x5349b0,this[_0x1585ef(0x199)]=_0x4785ed,this[_0x1585ef(0x1a6)]=_0x1fbfc0,this[_0x1585ef(0x1f7)]());}async[_0x4a1364(0x1f9)](_0xadc588){const _0x228bfa=_0x4a1364;return this[_0x228bfa(0x214)][_0x228bfa(0x1d4)](_0xadc588)||await this[_0x228bfa(0x1d3)](_0xadc588),this[_0x228bfa(0x214)]['get'](_0xadc588);}[_0x4a1364(0x1e8)](_0x45b797){const _0x4815ed=_0x4a1364;var _0x40c3c3;return(_0x40c3c3=this['_entities'][_0x4815ed(0x1c9)](_0x45b797))!=null?_0x40c3c3:null;}[_0x4a1364(0x1f7)](){const _0x23ec58=_0x4a1364;this[_0x23ec58(0x1cb)][_0x23ec58(0x1ec)](_0x24a343[_0x23ec58(0x196)])[_0x23ec58(0x216)](_0x21c14a(this[_0x23ec58(0x1e0)]))['subscribe'](async _0x22090d=>{const _0x1c52d0=_0x23ec58,_0x582e95=_0x22090d['getUnitId']();this[_0x1c52d0(0x214)][_0x1c52d0(0x1d4)](_0x582e95)||this[_0x1c52d0(0x1d3)](_0x582e95);}),this[_0x23ec58(0x1cb)][_0x23ec58(0x1ce)](_0x24a343[_0x23ec58(0x196)])['pipe'](_0x21c14a(this[_0x23ec58(0x1e0)]))[_0x23ec58(0x1a1)](_0x21635f=>{const _0x440987=_0x23ec58,_0x14e61a=_0x21635f[_0x440987(0x209)](),_0x4452ce=this[_0x440987(0x214)][_0x440987(0x1c9)](_0x14e61a);_0x4452ce==null||_0x4452ce[_0x440987(0x1f4)]();});}async[_0x4a1364(0x1d3)](_0x5e840e){const _0x25a4f3=_0x4a1364,_0x2eed40=await this['_collabSessionService'][_0x25a4f3(0x1c6)](_0x5e840e),_0x3c304a=this[_0x25a4f3(0x199)][_0x25a4f3(0x1ee)](N,_0x5e840e,_0x2eed40);return _0x3c304a['init'](),this[_0x25a4f3(0x214)][_0x25a4f3(0x1c3)](_0x5e840e,_0x3c304a),_0x3c304a;}};S=Y([_(0x0,_0x48ed98),_(0x1,_0x391d1f(_0x5d0bf7)),_(0x2,_0x391d1f(_0x4c6691))],S);var c=(_0x1d8f98=>(_0x1d8f98['OFFLINE']=_0x4a1364(0x207),_0x1d8f98[_0x4a1364(0x20f)]=_0x4a1364(0x215),_0x1d8f98[_0x4a1364(0x18a)]=_0x4a1364(0x210),_0x1d8f98[_0x4a1364(0x229)]=_0x4a1364(0x20c),_0x1d8f98[_0x4a1364(0x1ba)]=_0x4a1364(0x1bd),_0x1d8f98))(c||{});function _0x1611(_0x25bd96,_0x48339c){const _0x329e95=_0x329e();return _0x1611=function(_0x16111a,_0x34de7a){_0x16111a=_0x16111a-0x18a;let _0xd6b5cf=_0x329e95[_0x16111a];return _0xd6b5cf;},_0x1611(_0x25bd96,_0x48339c);}const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x583e52{constructor(_0x2e0f9c,_0x859f,_0x3f554d,_0x4f8d9a,_0x53dee7){const _0x5ab9b9=_0x4a1364;super(),u(this,_0x5ab9b9(0x1cf),new _0x463108(_0x5ab9b9(0x215))),u(this,_0x5ab9b9(0x1d7),this[_0x5ab9b9(0x1cf)][_0x5ab9b9(0x1ae)]()),u(this,_0x5ab9b9(0x1f7),!0x1),u(this,_0x5ab9b9(0x1e1),null),u(this,_0x5ab9b9(0x19b),null),(this[_0x5ab9b9(0x212)]=_0x2e0f9c,this['_collabSession']=_0x859f,this['_configService']=_0x3f554d,this[_0x5ab9b9(0x19a)]=_0x4f8d9a,this[_0x5ab9b9(0x18b)]=_0x53dee7);}get[_0x4a1364(0x22a)](){const _0x727b40=_0x4a1364;return this['_status$'][_0x727b40(0x21f)]();}['dispose'](){const _0x2e40b8=_0x4a1364;var _0x576a55;(_0x576a55=this[_0x2e40b8(0x1e1)])==null||_0x576a55[_0x2e40b8(0x1f4)](),this[_0x2e40b8(0x1cf)][_0x2e40b8(0x202)](_0x2e40b8(0x215)),this[_0x2e40b8(0x1cf)][_0x2e40b8(0x19c)]();}[_0x4a1364(0x1db)](){return this['_status'];}[_0x4a1364(0x227)](){const _0x59dbbf=_0x4a1364;this[_0x59dbbf(0x1f7)]||(this['_init']=!0x0,this[_0x59dbbf(0x20a)][_0x59dbbf(0x1a0)][_0x59dbbf(0x216)](_0x21c14a(this['dispose$']))[_0x59dbbf(0x1a1)](_0x3471f4=>{const _0x153ee6=_0x59dbbf;switch(_0x3471f4){case _0x448deb[_0x153ee6(0x1ab)]:this['_handleOffline']();break;case _0x448deb[_0x153ee6(0x1b4)]:this[_0x153ee6(0x1b8)]();break;}}),this[_0x59dbbf(0x20a)][_0x59dbbf(0x211)][_0x59dbbf(0x216)](_0x21c14a(this[_0x59dbbf(0x1e0)]))[_0x59dbbf(0x1a1)](_0x48a747=>{const _0x496fb9=_0x59dbbf,{eventID:_0x49bda0}=_0x48a747;switch(_0x49bda0){case _0x39403f['LIVESHARE_NEW_HOST']:this[_0x496fb9(0x225)](_0x48a747);break;case _0x39403f[_0x496fb9(0x1de)]:this[_0x496fb9(0x1fe)](_0x48a747);break;case _0x39403f[_0x496fb9(0x1be)]:this['_handleTerminate']();break;case _0x39403f[_0x496fb9(0x1c4)]:this[_0x496fb9(0x1a4)](_0x48a747);break;}}));}[_0x4a1364(0x1b2)](){const _0x6f022b=_0x4a1364;this['_collabSession'][_0x6f022b(0x1a3)]({'eventID':_0x39403f['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x6f022b(0x212)],'userID':this[_0x6f022b(0x20a)][_0x6f022b(0x191)]()}},this[_0x6f022b(0x212)]);}[_0x4a1364(0x1ad)](){const _0xf5ba2d=_0x4a1364;this['_status']==='presenting'&&(this[_0xf5ba2d(0x1cf)][_0xf5ba2d(0x202)](_0xf5ba2d(0x215)),this[_0xf5ba2d(0x20a)][_0xf5ba2d(0x1a3)]({'eventID':_0x39403f[_0xf5ba2d(0x1be)],'data':{'unitID':this[_0xf5ba2d(0x212)]}},this[_0xf5ba2d(0x212)]));}[_0x4a1364(0x1cd)](){const _0x264f3b=_0x4a1364;this[_0x264f3b(0x22a)]===_0x264f3b(0x20c)&&(this[_0x264f3b(0x1cf)][_0x264f3b(0x202)](_0x264f3b(0x210)),this[_0x264f3b(0x22c)]());}[_0x4a1364(0x19e)](){const _0x294f38=_0x4a1364;this['_status']===_0x294f38(0x210)&&this['_stopFollowing']();}[_0x4a1364(0x225)](_0x2cee37){const _0x2c74cb=_0x4a1364,{presenter:_0x13514a}=_0x2cee37[_0x2c74cb(0x18d)],_0x377636=this[_0x2c74cb(0x20a)]['getMemberID']();this[_0x2c74cb(0x19b)]=_0x13514a,_0x13514a===_0x377636?(this[_0x2c74cb(0x1ed)](),this[_0x2c74cb(0x203)]()):this[_0x2c74cb(0x22a)]!==_0x2c74cb(0x20c)&&(this[_0x2c74cb(0x200)](),this[_0x2c74cb(0x22c)]());}['_fetchOperations'](){const _0x1a9b51=_0x4a1364,_0x4b98fb={'eventID':_0x39403f['LIVESHARE_FETCH_OPERATIONS']};this[_0x1a9b51(0x20a)][_0x1a9b51(0x1a3)](_0x4b98fb,this['_unitID']);}['_handleTerminate'](){const _0x45354a=_0x4a1364;this[_0x45354a(0x19b)]=null,this[_0x45354a(0x22a)]!=='presenting'&&this[_0x45354a(0x223)]();}['_handleNewChangeSets'](_0x20ea5b){const _0x516727=_0x4a1364;if(this[_0x516727(0x22a)]===_0x516727(0x210)&&this[_0x516727(0x19b)]===_0x20ea5b[_0x516727(0x18d)][_0x516727(0x1e2)]){const _0x59de3a=_0x46c9bc(_0x20ea5b[_0x516727(0x18d)])[_0x516727(0x1d6)]['reverse']()[_0x516727(0x1eb)](_0x3bca26=>_0x3bca26['id']===_0x4b0d4a['id']);if(_0x59de3a){const _0x1ea336=_0x59de3a['params']['unitId'],_0x131f4c=_0x59de3a[_0x516727(0x1e6)][_0x516727(0x1a8)]['id'];setTimeout(()=>{const _0x572a6e=_0x516727;this['_commandService'][_0x572a6e(0x1ef)](_0x83e219['id'],{'unitId':_0x1ea336,'subUnitId':_0x131f4c},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x4180eb=_0x4a1364;this['_status$'][_0x4180eb(0x202)](_0x4180eb(0x1bd));const _0x339336=new Map(),_0x27258d=this[_0x4180eb(0x1e1)]=new _0x9be91c();_0x27258d[_0x4180eb(0x22d)](_0x6f7e3f(()=>{const _0x528660=_0x4180eb;_0x339336[_0x528660(0x21e)](_0x4b2699=>_0x4b2699[_0x528660(0x19c)]()),_0x339336[_0x528660(0x220)]();})),_0x27258d[_0x4180eb(0x22d)](this[_0x4180eb(0x18b)][_0x4180eb(0x1fc)](_0x1084d2=>{const _0x18947c=_0x4180eb;var _0x32f81a;if(_0x1084d2[_0x18947c(0x1f1)]!==_0x23329a[_0x18947c(0x221)]||!this[_0x18947c(0x19a)][_0x18947c(0x213)](_0x1084d2['id']))return;const {id:_0x5f2283}=_0x1084d2;let _0x2d5943;_0x339336[_0x18947c(0x1d4)](_0x5f2283)?_0x2d5943=_0x339336['get'](_0x5f2283):(_0x2d5943=new _0x4c1c0a(),_0x339336[_0x18947c(0x1c3)](_0x5f2283,_0x2d5943),_0x2d5943[_0x18947c(0x216)](_0x1fb19d((_0x32f81a=this[_0x18947c(0x230)]['getConfig'](Ce))!=null?_0x32f81a:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1fcfd5=>{const _0x82bd2d=_0x18947c;this[_0x82bd2d(0x20a)][_0x82bd2d(0x1a3)]({'eventID':_0x39403f['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x82bd2d(0x212)],'operations':{[_0x1fcfd5['id']]:{'id':_0x1fcfd5['id'],'params':JSON[_0x82bd2d(0x22f)](_0x1fcfd5[_0x82bd2d(0x1e6)])}}}},this[_0x82bd2d(0x212)]);})),_0x2d5943[_0x18947c(0x202)](_0x1084d2);})),this[_0x4180eb(0x19a)][_0x4180eb(0x1dc)](this['_unitID'])[_0x4180eb(0x21e)](_0xe28612=>this[_0x4180eb(0x20a)][_0x4180eb(0x1a3)]({'eventID':_0x39403f[_0x4180eb(0x1de)],'data':{'unitID':this[_0x4180eb(0x212)],'operations':{[_0xe28612['id']]:{'id':_0xe28612['id'],'params':JSON[_0x4180eb(0x22f)](_0xe28612[_0x4180eb(0x1e6)])}}}},this[_0x4180eb(0x212)]));}[_0x4a1364(0x200)](){const _0x1706d2=_0x4a1364;var _0x53deeb;this[_0x1706d2(0x1cf)][_0x1706d2(0x202)](_0x1706d2(0x215)),(_0x53deeb=this['_commandDisposable'])==null||_0x53deeb['dispose'](),this[_0x1706d2(0x1e1)]=null;}[_0x4a1364(0x22c)](){const _0x19d4b8=_0x4a1364;var _0x29965a;(_0x29965a=this[_0x19d4b8(0x1e1)])==null||_0x29965a[_0x19d4b8(0x1f4)](),this[_0x19d4b8(0x1cf)][_0x19d4b8(0x202)](_0x19d4b8(0x210));}[_0x4a1364(0x223)](){const _0x1c159a=_0x4a1364;var _0x126653;this[_0x1c159a(0x1cf)]['next'](_0x1c159a(0x215)),(_0x126653=this[_0x1c159a(0x1e1)])==null||_0x126653['dispose'](),this[_0x1c159a(0x1e1)]=null;}['_stopFollowing'](){const _0x195821=_0x4a1364;var _0x2a811b;this['_status$'][_0x195821(0x202)](_0x195821(0x20c)),(_0x2a811b=this[_0x195821(0x1e1)])==null||_0x2a811b[_0x195821(0x1f4)]();}[_0x4a1364(0x1fe)](_0x50f8a3){const _0x2beabc=_0x4a1364;if([_0x2beabc(0x1bd),_0x2beabc(0x20c),_0x2beabc(0x207)]['includes'](this[_0x2beabc(0x22a)])||!_0x50f8a3['data'][_0x2beabc(0x1fb)]||_0x50f8a3[_0x2beabc(0x18d)][_0x2beabc(0x1fb)]===this['_collabSession'][_0x2beabc(0x191)]())return;this[_0x2beabc(0x22a)]===_0x2beabc(0x215)&&this[_0x2beabc(0x22c)]();const _0x33a183=_0x50f8a3['data'][_0x2beabc(0x226)];Object['values'](_0x33a183)[_0x2beabc(0x21e)](_0x14ea17=>{const _0x1e1f64=_0x2beabc;this[_0x1e1f64(0x18b)][_0x1e1f64(0x1ef)](_0x14ea17['id'],_0x14ea17[_0x1e1f64(0x1e6)]?JSON[_0x1e1f64(0x1fd)](_0x14ea17[_0x1e1f64(0x1e6)]):null,{'fromCollab':!0x0});});}[_0x4a1364(0x1b3)](){const _0x21cfca=_0x4a1364;var _0xb41aa7;this[_0x21cfca(0x1cf)][_0x21cfca(0x202)](_0x21cfca(0x207)),(_0xb41aa7=this[_0x21cfca(0x1e1)])==null||_0xb41aa7[_0x21cfca(0x1f4)]();}[_0x4a1364(0x1b8)](){const _0x1a68d2=_0x4a1364;this[_0x1a68d2(0x1cf)][_0x1a68d2(0x202)]('idle'),this[_0x1a68d2(0x222)]();}};N=Y([_(0x2,_0x3cea69),_(0x3,_0x391d1f(L)),_(0x4,_0x3a554d)],N);function Le(){const _0x1ee2a3=_0x4a1364,_0x5630a7=_0x21c95c(S),_0x12fd41=_0x21c95c(_0x48ed98),_0x4aea01=_0x1fe6f7(()=>_0x12fd41[_0x1ee2a3(0x232)](_0x24a343[_0x1ee2a3(0x196)]),void 0x0,!0x1,[]),[_0x34b76b,_0x18de53]=_0x3a7f61(null),[_0x2b9966,_0x1fc563]=_0x3a7f61(c[_0x1ee2a3(0x20f)]),_0x534fe2=_0x5e24b6(null);return _0x3aabb1(()=>(_0x4aea01&&_0x5630a7[_0x1ee2a3(0x1f9)](_0x4aea01[_0x1ee2a3(0x209)]())[_0x1ee2a3(0x18f)](_0x3e2065=>{const _0x4d28ee=_0x1ee2a3;_0x18de53(_0x3e2065),_0x534fe2[_0x4d28ee(0x217)]=_0x3e2065[_0x4d28ee(0x1d7)]['subscribe'](_0x44447b=>{_0x1fc563(_0x44447b);});}),()=>{const _0x27b7fe=_0x1ee2a3;var _0x6ad716;(_0x6ad716=_0x534fe2[_0x27b7fe(0x217)])==null||_0x6ad716[_0x27b7fe(0x1b7)](),_0x534fe2[_0x27b7fe(0x217)]=null;}),[_0x4aea01,_0x5630a7]),_0x34b76b?_0x25c8f2(_0x3072c6,{'align':_0x1ee2a3(0x1f6),'disabled':_0x2b9966===c['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x25c8f2(Re,{'status':_0x2b9966,'coordinator':_0x34b76b}),'children':_0x25c8f2(_0x1ee2a3(0x20d),{'className':_0x3dc8ae(_0x1ee2a3(0x1a7),{'univer-cursor-not-allowed':_0x2b9966===c[_0x1ee2a3(0x1ab)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2b9966!==c[_0x1ee2a3(0x1ab)]}),'type':_0x1ee2a3(0x20d),'children':_0x25c8f2(W,{'className':_0x1ee2a3(0x1bc)})})}):null;}function Re(_0x5657cc){const _0x7a9140=_0x4a1364,{status:_0x57ab7d,coordinator:_0x59bcef}=_0x5657cc;switch(_0x57ab7d){case c[_0x7a9140(0x20f)]:return _0x25c8f2($e,{'coordinator':_0x59bcef});case c[_0x7a9140(0x18a)]:return _0x25c8f2(xe,{'coordinator':_0x59bcef});case c['NOT_FOLLOWING']:return _0x25c8f2(Pe,{'coordinator':_0x59bcef});case c['OFFLINE']:return _0x25c8f2(Te,{});case c[_0x7a9140(0x1ba)]:return _0x25c8f2(Ae,{'coordinator':_0x59bcef});default:return null;}}function $e(_0x3eb15e){const _0x44fd23=_0x4a1364,{coordinator:_0x2ee302}=_0x3eb15e;return _0x229141(_0x3b7e96,{'children':[_0x25c8f2(_0x44fd23(0x1ca),{'className':_0x44fd23(0x19f),'children':_0x44fd23(0x1b1)}),_0x25c8f2(_0x41e64b,{'onClick':()=>_0x2ee302[_0x44fd23(0x1b2)](),'children':'Start'})]});}function xe(_0x3bfd54){const _0xd1fe50=_0x4a1364,{coordinator:_0x88eaf5}=_0x3bfd54;return _0x229141(_0x3b7e96,{'children':[_0x25c8f2('div',{'className':_0xd1fe50(0x19f),'children':_0xd1fe50(0x18c)}),_0x25c8f2(_0x41e64b,{'onClick':()=>_0x88eaf5[_0xd1fe50(0x19e)](),'children':_0xd1fe50(0x1d0)})]});}function Pe(_0x15324a){const _0x1341a9=_0x4a1364,{coordinator:_0x12f83a}=_0x15324a;return _0x229141(_0x3b7e96,{'children':[_0x25c8f2('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1341a9(0x22b)}),_0x25c8f2(_0x41e64b,{'variant':_0x1341a9(0x1b5),'onClick':()=>_0x12f83a[_0x1341a9(0x1cd)](),'children':'Start\x20following'})]});}function Ae(_0x1cf29d){const _0x578d05=_0x4a1364,{coordinator:_0x5b5739}=_0x1cf29d;return _0x229141(_0x3b7e96,{'children':[_0x25c8f2(_0x578d05(0x1ca),{'className':_0x578d05(0x19f),'children':_0x578d05(0x195)}),_0x25c8f2(_0x41e64b,{'variant':_0x578d05(0x1ac),'onClick':()=>_0x5b5739[_0x578d05(0x1ad)](),'children':_0x578d05(0x1b6)})]});}function Te(){return _0x25c8f2(_0x3b7e96,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x4a1364(0x208)],He=(_0x41f6ee,_0x30e6cd,_0x1b6aaf,_0x1e9dde)=>{const _0x5e7846=_0x4a1364;for(var _0x3238a9=_0x1e9dde>0x1?void 0x0:_0x1e9dde?Fe(_0x30e6cd,_0x1b6aaf):_0x30e6cd,_0x23f23d=_0x41f6ee[_0x5e7846(0x22e)]-0x1,_0x2e869e;_0x23f23d>=0x0;_0x23f23d--)(_0x2e869e=_0x41f6ee[_0x23f23d])&&(_0x3238a9=_0x2e869e(_0x3238a9)||_0x3238a9);return _0x3238a9;},A=(_0x5aacd9,_0x570b5e)=>(_0x15b69f,_0x610f05)=>_0x570b5e(_0x15b69f,_0x610f05,_0x5aacd9);let m=class extends _0x269b11{constructor(_0x189e8d,_0x1d5ead){const _0x553b74=_0x4a1364;super(),this[_0x553b74(0x199)]=_0x189e8d,this[_0x553b74(0x1bb)]=_0x1d5ead,this[_0x553b74(0x1a2)]();}[_0x4a1364(0x1a2)](){const _0x5b3bc1=_0x4a1364;this['disposeWithMe'](this['_uiPartsService'][_0x5b3bc1(0x1d8)](_0x492383['HEADER_MENU'],()=>_0x150e4f(Le,this[_0x5b3bc1(0x199)])));}};m=He([A(0x0,_0x391d1f(_0x5d0bf7)),A(0x1,_0x2d6132)],m);const ye='live-share.config',T={};var Ue=Object[_0x4a1364(0x208)],Ve=(_0xb2bf3e,_0x5262d1,_0x1c86e2,_0x4c10da)=>{const _0x1b7728=_0x4a1364;for(var _0x4e96a6=_0x4c10da>0x1?void 0x0:_0x4c10da?Ue(_0x5262d1,_0x1c86e2):_0x5262d1,_0x55295e=_0xb2bf3e[_0x1b7728(0x22e)]-0x1,_0x478ada;_0x55295e>=0x0;_0x55295e--)(_0x478ada=_0xb2bf3e[_0x55295e])&&(_0x4e96a6=_0x478ada(_0x4e96a6)||_0x4e96a6);return _0x4e96a6;},je=(_0x54fe47,_0x395db4)=>(_0xf5d5ee,_0x2c26cd)=>_0x395db4(_0xf5d5ee,_0x2c26cd,_0x54fe47);let I=class extends _0x269b11{constructor(_0x28fdf3){const _0x180e55=_0x4a1364;super(),this[_0x180e55(0x19a)]=_0x28fdf3,this[_0x180e55(0x1f7)]();}['_init'](){[_0x1f96a7['id'],_0x38ce2c['id'],_0x83e219['id']]['forEach'](_0x205fc1=>{const _0x2537da=_0x1611;this[_0x2537da(0x1e4)](this[_0x2537da(0x19a)][_0x2537da(0x218)](_0x205fc1));});}};I=Ve([je(0x0,_0x391d1f(L))],I);var Me=Object[_0x4a1364(0x1d2)],ke=Object[_0x4a1364(0x208)],Ge=(_0x346105,_0x374df4,_0x1c394b)=>_0x374df4 in _0x346105?Me(_0x346105,_0x374df4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c394b}):_0x346105[_0x374df4]=_0x1c394b,We=(_0x30fb47,_0x3307ad,_0x1e750c,_0x8f27ac)=>{for(var _0x44c5a6=_0x8f27ac>0x1?void 0x0:_0x8f27ac?ke(_0x3307ad,_0x1e750c):_0x3307ad,_0x155441=_0x30fb47['length']-0x1,_0x44a8d2;_0x155441>=0x0;_0x155441--)(_0x44a8d2=_0x30fb47[_0x155441])&&(_0x44c5a6=_0x44a8d2(_0x44c5a6)||_0x44c5a6);return _0x44c5a6;},F=(_0x3c54c7,_0x1c603d)=>(_0x5c615f,_0x4d7cb2)=>_0x1c603d(_0x5c615f,_0x4d7cb2,_0x3c54c7),B=(_0x6e0631,_0x4e86ef,_0x485130)=>Ge(_0x6e0631,typeof _0x4e86ef!=_0x4a1364(0x1c5)?_0x4e86ef+'':_0x4e86ef,_0x485130);const Ye=_0x4a1364(0x1af);let b=class extends _0x41f754{constructor(_0x2e0d8e=T,_0x3bf968,_0x507d7c){const _0x3d68d2=_0x4a1364;super(),this[_0x3d68d2(0x18e)]=_0x2e0d8e,this[_0x3d68d2(0x199)]=_0x3bf968,this[_0x3d68d2(0x230)]=_0x507d7c;const {..._0x3671be}=_0x35aa33({},T,this[_0x3d68d2(0x18e)]);this['_configService'][_0x3d68d2(0x1f3)](ye,_0x3671be);}[_0x4a1364(0x1cc)](){const _0x1ff96c=_0x4a1364;_0x2356c0(this[_0x1ff96c(0x199)],_0x2a3169([[L],[S],[I],[m]],this[_0x1ff96c(0x18e)][_0x1ff96c(0x1df)])),_0x400195(this[_0x1ff96c(0x199)],[[I]]);}[_0x4a1364(0x1da)](){const _0x5ba252=_0x4a1364;_0x400195(this[_0x5ba252(0x199)],[[m]]);}};B(b,_0x4a1364(0x1f1),_0x24a343[_0x4a1364(0x1f5)]),B(b,'pluginName',Ye),b=We([_0x16d28c(_0x4ff535),F(0x1,_0x391d1f(_0x5d0bf7)),F(0x2,_0x3cea69)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0xd575(){const _0x5f8633=['@univerjs/engine-render','LiveShareStatusEnum','getActiveSheet','FEnum','startColumn','@univerjs/sheets/facade','getActiveWorkbook','_injector','startFollowing','@univerjs/core/facade','extend','tryStartPresenting','stopFollowing','IRenderManagerService','PRESENTING','1164288DAOzRD','startRow','get','10avYvJp','9827730ljPFSa','_initialize','7IRRnoX','UniverSheetsFacade','SetScrollOperation','getId','SetWorksheetActiveOperation','getUnitId','getRenderById','@univerjs-pro/live-share','2914696pJdMzJ','@univerjs/sheets-ui','stopPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','3800289Kpgvhz','5581448OyMLwK','@univerjs/sheets','UniverProLiveShare','4122NznJxp','object','UniverCoreFacade','2558xJIpNl','FRange','117Fzsbyc','IDLE','FUniver','LiveShareController','UniverSheets','getLiveShareStatus','getLiveShareCoordinatorSync','No\x20active\x20workbook\x20found.','executeCommand','getSheetId','590fTGgBm','syncExecuteCommand'];_0xd575=function(){return _0x5f8633;};return _0xd575();}function _0x4246(_0x42f0ce,_0x477208){const _0xd57541=_0xd575();return _0x4246=function(_0x424652,_0x496975){_0x424652=_0x424652-0x138;let _0x1bb907=_0xd57541[_0x424652];return _0x1bb907;},_0x4246(_0x42f0ce,_0x477208);}(function(_0x369c9c,_0x161652){const _0x10cb0d=_0x4246,_0x476fc9=_0x369c9c();while(!![]){try{const _0x5193f0=parseInt(_0x10cb0d(0x15c))/0x1*(-parseInt(_0x10cb0d(0x15a))/0x2)+parseInt(_0x10cb0d(0x153))/0x3+parseInt(_0x10cb0d(0x14f))/0x4+-parseInt(_0x10cb0d(0x144))/0x5*(-parseInt(_0x10cb0d(0x141))/0x6)+-parseInt(_0x10cb0d(0x147))/0x7*(parseInt(_0x10cb0d(0x154))/0x8)+parseInt(_0x10cb0d(0x157))/0x9*(parseInt(_0x10cb0d(0x166))/0xa)+-parseInt(_0x10cb0d(0x145))/0xb;if(_0x5193f0===_0x161652)break;else _0x476fc9['push'](_0x476fc9['shift']());}catch(_0x499470){_0x476fc9['push'](_0x476fc9['shift']());}}}(_0xd575,0xa3869),function(_0x4267d9,_0xe9a07){const _0x51579a=_0x4246;typeof exports==_0x51579a(0x158)&&typeof module<'u'?_0xe9a07(require('@univerjs-pro/live-share'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define=='function'&&define['amd']?define([_0x51579a(0x14e),_0x51579a(0x168),_0x51579a(0x155),_0x51579a(0x150),_0x51579a(0x16d),_0x51579a(0x13b)],_0xe9a07):(_0x4267d9=typeof globalThis<'u'?globalThis:_0x4267d9||self,_0xe9a07(_0x4267d9[_0x51579a(0x156)],_0x4267d9['UniverEngineRender'],_0x4267d9[_0x51579a(0x160)],_0x4267d9['UniverSheetsUi'],_0x4267d9[_0x51579a(0x148)],_0x4267d9[_0x51579a(0x159)]));}(this,function(_0x345ae6,_0xad9788,_0x192735,_0x4854c4,_0x366adf,_0xa4c8b3){'use strict';const _0x232e2b=_0x4246;class _0x5a68ff extends _0x366adf['FRange']{[_0x232e2b(0x146)](_0x3f7f97,_0x3364f1,_0x4f37bb,_0x2a7604,_0x33cdab){const _0x23871c=_0x232e2b,_0x1a1b90=_0x3f7f97[_0x23871c(0x143)](_0x345ae6[_0x23871c(0x15f)]),_0x18af78=_0x3f7f97[_0x23871c(0x143)](_0xad9788[_0x23871c(0x13f)]),_0x27c133=_0x3364f1[_0x23871c(0x14c)](),_0x1200f3=_0x3364f1[_0x23871c(0x16a)](),_0x44c0d2=_0x1a1b90[_0x23871c(0x162)](_0x27c133);(_0x44c0d2==null?void 0x0:_0x44c0d2['getStatus']())!==_0x345ae6['LiveShareStatus'][_0x23871c(0x140)]||(_0x4f37bb[_0x23871c(0x165)]()!==_0x1200f3[_0x23871c(0x165)]()&&this['_commandService'][_0x23871c(0x164)](_0x192735[_0x23871c(0x14b)]['id'],{'unitId':_0x27c133,'subUnitId':_0x4f37bb[_0x23871c(0x165)]()}),!_0x18af78[_0x23871c(0x14d)](_0x27c133))||_0x33cdab[_0x23871c(0x167)](_0x4854c4[_0x23871c(0x149)]['id'],{'unitId':_0x3364f1[_0x23871c(0x14c)](),'sheetId':_0x4f37bb['getSheetId'](),'sheetViewStartRow':_0x2a7604[_0x23871c(0x142)],'sheetViewStartColumn':_0x2a7604[_0x23871c(0x16c)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x366adf[_0x232e2b(0x15b)][_0x232e2b(0x13c)](_0x5a68ff);class _0x5383ce extends _0xa4c8b3[_0x232e2b(0x15e)]{[_0x232e2b(0x161)](){const _0x484307=_0x232e2b;var _0x29512c,_0x36b7c5;const _0xa719c1=this[_0x484307(0x139)]['get'](_0x345ae6[_0x484307(0x15f)]),_0x2b6d38=(_0x29512c=this[_0x484307(0x138)]())==null?void 0x0:_0x29512c['getId']();if(!_0x2b6d38)throw new Error(_0x484307(0x163));const _0x1f54bc=_0xa719c1['getLiveShareCoordinatorSync'](_0x2b6d38);return(_0x36b7c5=_0x1f54bc==null?void 0x0:_0x1f54bc['getStatus']())!=null?_0x36b7c5:_0x345ae6['LiveShareStatus'][_0x484307(0x15d)];}[_0x232e2b(0x13a)](){const _0x510a81=_0x232e2b;var _0x483f4c;const _0x5ed0e2=this[_0x510a81(0x139)][_0x510a81(0x143)](_0x345ae6['LiveShareController']),_0x1a8377=(_0x483f4c=this[_0x510a81(0x138)]())==null?void 0x0:_0x483f4c['getId']();if(!_0x1a8377)throw new Error('No\x20active\x20workbook\x20found.');const _0x266091=_0x5ed0e2[_0x510a81(0x162)](_0x1a8377);if(!_0x266091)throw new Error(_0x510a81(0x152));_0x266091[_0x510a81(0x13a)]();}[_0x232e2b(0x13e)](){const _0x3a30b9=_0x232e2b;var _0x501777;const _0x5e17bf=this['_injector'][_0x3a30b9(0x143)](_0x345ae6[_0x3a30b9(0x15f)]),_0x41afdc=(_0x501777=this[_0x3a30b9(0x138)]())==null?void 0x0:_0x501777[_0x3a30b9(0x14a)]();if(!_0x41afdc)throw new Error(_0x3a30b9(0x163));const _0x1f92bd=_0x5e17bf['getLiveShareCoordinatorSync'](_0x41afdc);if(!_0x1f92bd)throw new Error(_0x3a30b9(0x152));_0x1f92bd['stopFollowing']();}['startPresenting'](){const _0x333d7f=_0x232e2b;var _0x4c0891;const _0x337bf8=this['_injector'][_0x333d7f(0x143)](_0x345ae6[_0x333d7f(0x15f)]),_0x1be00f=(_0x4c0891=this[_0x333d7f(0x138)]())==null?void 0x0:_0x4c0891[_0x333d7f(0x14a)]();if(!_0x1be00f)throw new Error(_0x333d7f(0x163));const _0x4e9b8a=_0x337bf8[_0x333d7f(0x162)](_0x1be00f);if(!_0x4e9b8a)throw new Error(_0x333d7f(0x152));_0x4e9b8a[_0x333d7f(0x13d)]();}[_0x232e2b(0x151)](){const _0x4a6d7b=_0x232e2b;var _0x545bda;const _0x918f01=this[_0x4a6d7b(0x139)]['get'](_0x345ae6['LiveShareController']),_0x115227=(_0x545bda=this[_0x4a6d7b(0x138)]())==null?void 0x0:_0x545bda[_0x4a6d7b(0x14a)]();if(!_0x115227)throw new Error(_0x4a6d7b(0x163));const _0x2684ff=_0x918f01[_0x4a6d7b(0x162)](_0x115227);if(!_0x2684ff)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2684ff[_0x4a6d7b(0x151)]();}}_0xa4c8b3[_0x232e2b(0x15e)]['extend'](_0x5383ce);class _0x55a156 extends _0xa4c8b3['FEnum']{get[_0x232e2b(0x169)](){return _0x345ae6['LiveShareStatus'];}}_0xa4c8b3[_0x232e2b(0x16b)][_0x232e2b(0x13c)](_0x55a156);}));
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0xb79d8b,_0x45253f){const _0x13fb2a=_0x12a5,_0x165408=_0xb79d8b();while(!![]){try{const _0x5dbc95=parseInt(_0x13fb2a(0x188))/0x1+parseInt(_0x13fb2a(0x158))/0x2+-parseInt(_0x13fb2a(0x1b3))/0x3*(parseInt(_0x13fb2a(0xd8))/0x4)+parseInt(_0x13fb2a(0x138))/0x5+parseInt(_0x13fb2a(0xdd))/0x6*(parseInt(_0x13fb2a(0x1a5))/0x7)+-parseInt(_0x13fb2a(0x186))/0x8+parseInt(_0x13fb2a(0x18e))/0x9*(parseInt(_0x13fb2a(0x12a))/0xa);if(_0x5dbc95===_0x45253f)break;else _0x165408['push'](_0x165408['shift']());}catch(_0x3a2648){_0x165408['push'](_0x165408['shift']());}}}(_0x90d5,0xc58e5),function(_0x9118e9,_0xe16f32){const _0x750200=_0x12a5;typeof exports==_0x750200(0x10d)&&typeof module<'u'?_0xe16f32(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==_0x750200(0xf4)&&define[_0x750200(0x195)]?define([_0x750200(0xff),'@univerjs/core','@univerjs/ui',_0x750200(0x18d),'@univerjs/design','react',_0x750200(0x168),_0x750200(0x106),_0x750200(0x144),_0x750200(0xe4),'rxjs/operators',_0x750200(0xfc)],_0xe16f32):(_0x9118e9=typeof globalThis<'u'?globalThis:_0x9118e9||self,_0xe16f32(_0x9118e9[_0x750200(0x123)]={},_0x9118e9[_0x750200(0x139)],_0x9118e9['UniverUi'],_0x9118e9[_0x750200(0x1a0)],_0x9118e9[_0x750200(0x121)],_0x9118e9['React'],_0x9118e9[_0x750200(0x194)],_0x9118e9[_0x750200(0xf8)],_0x9118e9[_0x750200(0x16e)],_0x9118e9[_0x750200(0xe4)],_0x9118e9['rxjs'][_0x750200(0xe6)],_0x9118e9[_0x750200(0xfe)]));}(this,function(_0x32170d,_0x34c7db,_0x3b604b,_0x21b20a,_0x24d65f,_0x1f913f,_0xe01c5b,_0xe0833,_0xac9784,_0x317d5e,_0x5088b7,_0x2c9719){'use strict';const _0x3d9623=_0x12a5;var _0x2fde6e=Object['defineProperty'],_0x55ba4d=(_0x1ad1fa,_0x796674,_0x2222e2)=>_0x796674 in _0x1ad1fa?_0x2fde6e(_0x1ad1fa,_0x796674,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2222e2}):_0x1ad1fa[_0x796674]=_0x2222e2,_0x4c5777=(_0x59625c,_0x17cb71,_0x335c94)=>_0x55ba4d(_0x59625c,typeof _0x17cb71!=_0x3d9623(0x115)?_0x17cb71+'':_0x17cb71,_0x335c94);function _0x11517f({ref:_0x5bd072,..._0x921763}){const _0x578243=_0x3d9623,{icon:_0x115f72,id:_0x17b0c0,className:_0x4aaf56,extend:_0x526d62,..._0x2a71af}=_0x921763,_0x384f14=(_0x578243(0x173)+_0x17b0c0+'\x20'+(_0x4aaf56||''))[_0x578243(0x1be)](),_0x4b8938=_0x1f913f[_0x578243(0x18b)]('_'+_0x2f541d());return _0x111c75(_0x115f72,''+_0x17b0c0,{'defIds':_0x115f72['defIds'],'idSuffix':_0x4b8938[_0x578243(0x156)]},{'ref':_0x5bd072,'className':_0x384f14,..._0x2a71af},_0x526d62);}function _0x111c75(_0x23e1f9,_0x105723,_0x2a17fd,_0x150119,_0x1bfc92){const _0xb3b821=_0x3d9623;return _0x1f913f[_0xb3b821(0x17b)](_0x23e1f9[_0xb3b821(0x152)],{'key':_0x105723,..._0x477789(_0x23e1f9,_0x2a17fd,_0x1bfc92),..._0x150119},(_0x4533f1(_0x23e1f9,_0x2a17fd)[_0xb3b821(0x114)]||[])['map']((_0x1344f3,_0x3118c3)=>_0x111c75(_0x1344f3,_0x105723+'-'+_0x23e1f9[_0xb3b821(0x152)]+'-'+_0x3118c3,_0x2a17fd,void 0x0,_0x1bfc92)));}function _0x477789(_0x1e6744,_0x5de9e7,_0x4e51bc){const _0x4b37c4=_0x3d9623,_0xd39dda={..._0x1e6744['attrs']};_0x4e51bc!=null&&_0x4e51bc[_0x4b37c4(0xf6)]&&_0xd39dda['fill']===_0x4b37c4(0xf6)&&(_0xd39dda['fill']=_0x4e51bc[_0x4b37c4(0xf6)]),_0x1e6744[_0x4b37c4(0x152)]===_0x4b37c4(0x13f)&&_0xd39dda['id']&&(_0xd39dda['id']=_0xd39dda['id']+_0x5de9e7[_0x4b37c4(0x12f)]),Object[_0x4b37c4(0x13c)](_0xd39dda)[_0x4b37c4(0x19e)](([_0x5dff59,_0x1e6872])=>{const _0x201c9e=_0x4b37c4;_0x5dff59===_0x201c9e(0x13f)&&typeof _0x1e6872==_0x201c9e(0x1b6)&&(_0xd39dda[_0x5dff59]=_0x1e6872['replace'](/url\(#(.*)\)/,_0x201c9e(0x128)+_0x5de9e7[_0x201c9e(0x12f)]+')'));});const {defIds:_0x57d794}=_0x5de9e7;return!_0x57d794||_0x57d794[_0x4b37c4(0x11a)]===0x0||(_0x1e6744[_0x4b37c4(0x152)]===_0x4b37c4(0x124)&&_0xd39dda['xlink:href']&&(_0xd39dda[_0x4b37c4(0x1bd)]=_0xd39dda[_0x4b37c4(0x1bd)]+_0x5de9e7['idSuffix']),Object['entries'](_0xd39dda)['forEach'](([_0x3ae729,_0x4ee97b])=>{const _0x15e102=_0x4b37c4;typeof _0x4ee97b=='string'&&(_0xd39dda[_0x3ae729]=_0x4ee97b['replace'](/url\(#(.*)\)/,'url(#$1'+_0x5de9e7[_0x15e102(0x12f)]+')'));})),_0xd39dda;}function _0x4533f1(_0x530eb7,_0x4c48bd){const _0x4dd73d=_0x3d9623;var _0x2f3f93;const {defIds:_0x38140d}=_0x4c48bd;return!_0x38140d||_0x38140d[_0x4dd73d(0x11a)]===0x0?_0x530eb7:_0x530eb7[_0x4dd73d(0x152)]===_0x4dd73d(0x171)&&((_0x2f3f93=_0x530eb7[_0x4dd73d(0x114)])!=null&&_0x2f3f93[_0x4dd73d(0x11a)])?{..._0x530eb7,'children':_0x530eb7[_0x4dd73d(0x114)]['map'](_0x27b246=>typeof _0x27b246[_0x4dd73d(0x105)]['id']==_0x4dd73d(0x1b6)&&_0x38140d&&_0x38140d['includes'](_0x27b246[_0x4dd73d(0x105)]['id'])?{..._0x27b246,'attrs':{..._0x27b246['attrs'],'id':_0x27b246[_0x4dd73d(0x105)]['id']+_0x4c48bd[_0x4dd73d(0x12f)]}}:_0x27b246)}:_0x530eb7;}function _0x2f541d(){const _0x58a2f5=_0x3d9623;return Math[_0x58a2f5(0x112)]()[_0x58a2f5(0x10a)](0x24)[_0x58a2f5(0x150)](0x2,0x8);}_0x11517f[_0x3d9623(0x137)]=_0x3d9623(0x16f);const _0x28a462={'tag':_0x3d9623(0x133),'attrs':{'xmlns':_0x3d9623(0x1ab),'fill':_0x3d9623(0xda),'viewBox':_0x3d9623(0x172),'width':_0x3d9623(0x14e),'height':_0x3d9623(0x14e)},'children':[{'tag':_0x3d9623(0x15c),'attrs':{'fill':'currentColor','d':_0x3d9623(0x134)}},{'tag':_0x3d9623(0x15c),'attrs':{'fill':_0x3d9623(0x153),'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':_0x3d9623(0x13e),'clipRule':'evenodd'}}]},_0xc131=_0x1f913f[_0x3d9623(0x189)](function(_0xcadb01,_0x2ecedc){const _0x43cf55=_0x3d9623;return _0x1f913f['createElement'](_0x11517f,Object[_0x43cf55(0x12e)]({},_0xcadb01,{'id':_0x43cf55(0x1ba),'ref':_0x2ecedc,'icon':_0x28a462}));});_0xc131[_0x3d9623(0x137)]='LiveShareIcon';class _0x423aa1 extends _0x34c7db[_0x3d9623(0x163)]{constructor(){const _0x1f66c7=_0x3d9623;super(...arguments),_0x4c5777(this,_0x1f66c7(0x1ae),new Set()),_0x4c5777(this,_0x1f66c7(0x1ad),new Set());}[_0x3d9623(0x16d)](_0x32776a){const _0x5ea55c=_0x3d9623;return this[_0x5ea55c(0x1ae)][_0x5ea55c(0x15a)](_0x32776a),_0x34c7db[_0x5ea55c(0x1bc)](()=>this[_0x5ea55c(0x1ae)]['delete'](_0x32776a));}[_0x3d9623(0x126)](_0x373a22){const _0x39c312=_0x3d9623;return this['_reporters'][_0x39c312(0x15a)](_0x373a22),_0x34c7db[_0x39c312(0x1bc)](()=>this[_0x39c312(0x1ad)][_0x39c312(0x167)](_0x373a22));}[_0x3d9623(0x157)](_0x4ab51f){const _0x3ac747=_0x3d9623;return this[_0x3ac747(0x1ae)][_0x3ac747(0x11f)](_0x4ab51f);}['getInitialStates'](_0x2968e8){const _0x4235b1=_0x3d9623;return Array[_0x4235b1(0xd9)](this[_0x4235b1(0x1ad)])[_0x4235b1(0x165)](_0x456e5d=>_0x456e5d(_0x2968e8));}}var _0x2e282=Object[_0x3d9623(0x135)],_0x28330e=(_0x505420,_0x132e6d,_0x5303ca,_0x41c371)=>{const _0x277455=_0x3d9623;for(var _0x502ca1=_0x41c371>0x1?void 0x0:_0x41c371?_0x2e282(_0x132e6d,_0x5303ca):_0x132e6d,_0x58779a=_0x505420[_0x277455(0x11a)]-0x1,_0x355754;_0x58779a>=0x0;_0x58779a--)(_0x355754=_0x505420[_0x58779a])&&(_0x502ca1=_0x355754(_0x502ca1)||_0x502ca1);return _0x502ca1;},_0x3b782a=(_0x486652,_0x2b5c74)=>(_0x5af75e,_0x3b5d2a)=>_0x2b5c74(_0x5af75e,_0x3b5d2a,_0x486652);_0x32170d['LiveShareController']=class extends _0x34c7db['RxDisposable']{constructor(_0xefaaa6,_0x3c194b,_0x409ac4){const _0x386a04=_0x3d9623;super(),_0x4c5777(this,_0x386a04(0x19c),new Map()),(this['_univerInstanceService']=_0xefaaa6,this[_0x386a04(0xdb)]=_0x3c194b,this[_0x386a04(0xdc)]=_0x409ac4,this[_0x386a04(0x1b7)]());}async['getLiveShareCoordinator'](_0x4fc31e){const _0x4075c3=_0x3d9623;return this[_0x4075c3(0x19c)][_0x4075c3(0x11f)](_0x4fc31e)||await this[_0x4075c3(0x159)](_0x4fc31e),this['_entities'][_0x4075c3(0x1bb)](_0x4fc31e);}['getLiveShareCoordinatorSync'](_0x330349){var _0x4f9542;return(_0x4f9542=this['_entities']['get'](_0x330349))!=null?_0x4f9542:null;}[_0x3d9623(0x1b7)](){const _0x15e53c=_0x3d9623;this[_0x15e53c(0x110)][_0x15e53c(0x182)](_0x34c7db[_0x15e53c(0x13b)]['UNIVER_SHEET'])[_0x15e53c(0x17a)](_0x5088b7[_0x15e53c(0x15f)](this[_0x15e53c(0x1a7)]))['subscribe'](async _0x332eb0=>{const _0x265cc=_0x15e53c,_0x19e31a=_0x332eb0[_0x265cc(0x14a)]();this[_0x265cc(0x19c)][_0x265cc(0x11f)](_0x19e31a)||this['_startLiveShareCoordinator'](_0x19e31a);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x34c7db[_0x15e53c(0x13b)][_0x15e53c(0xf1)])['pipe'](_0x5088b7[_0x15e53c(0x15f)](this['dispose$']))[_0x15e53c(0x147)](_0x450704=>{const _0x509a9c=_0x15e53c,_0x28a762=_0x450704[_0x509a9c(0x14a)](),_0x199270=this['_entities']['get'](_0x28a762);_0x199270==null||_0x199270[_0x509a9c(0x1a6)]();});}async['_startLiveShareCoordinator'](_0x566120){const _0xb613cb=_0x3d9623,_0x889607=await this[_0xb613cb(0xdc)]['requireSession'](_0x566120),_0x29f7ad=this[_0xb613cb(0xdb)]['createInstance'](_0x32170d[_0xb613cb(0x179)],_0x566120,_0x889607);return _0x29f7ad['init'](),this[_0xb613cb(0x19c)][_0xb613cb(0x1b5)](_0x566120,_0x29f7ad),_0x29f7ad;}},_0x32170d[_0x3d9623(0x187)]=_0x28330e([_0x3b782a(0x0,_0x34c7db[_0x3d9623(0xd7)]),_0x3b782a(0x1,_0x34c7db[_0x3d9623(0x16c)](_0x34c7db[_0x3d9623(0x151)])),_0x3b782a(0x2,_0x34c7db[_0x3d9623(0x16c)](_0xe0833[_0x3d9623(0x143)]))],_0x32170d[_0x3d9623(0x187)]);var _0x4fec94=(_0xa39b1=>(_0xa39b1[_0x3d9623(0x15d)]=_0x3d9623(0x10c),_0xa39b1[_0x3d9623(0xfd)]=_0x3d9623(0x155),_0xa39b1[_0x3d9623(0x193)]=_0x3d9623(0x18f),_0xa39b1['NOT_FOLLOWING']='not-following',_0xa39b1[_0x3d9623(0xeb)]=_0x3d9623(0x17f),_0xa39b1))(_0x4fec94||{});const _0x2450f3=_0x3d9623(0xed),_0x3e3925=0xc8;_0x32170d[_0x3d9623(0x179)]=class extends _0x34c7db[_0x3d9623(0x197)]{constructor(_0x204b66,_0x670f46,_0x43b13c,_0x5683c9,_0x2b3947){const _0x169ee8=_0x3d9623;super(),_0x4c5777(this,_0x169ee8(0x11b),new _0x317d5e[(_0x169ee8(0x1b8))]('idle')),_0x4c5777(this,_0x169ee8(0x199),this['_status$'][_0x169ee8(0x1b9)]()),_0x4c5777(this,_0x169ee8(0x1b7),!0x1),_0x4c5777(this,_0x169ee8(0x15e),null),_0x4c5777(this,_0x169ee8(0x117),null),(this[_0x169ee8(0x169)]=_0x204b66,this[_0x169ee8(0x14b)]=_0x670f46,this[_0x169ee8(0x101)]=_0x43b13c,this[_0x169ee8(0x14d)]=_0x5683c9,this[_0x169ee8(0x17d)]=_0x2b3947);}get[_0x3d9623(0xec)](){const _0x209465=_0x3d9623;return this[_0x209465(0x11b)][_0x209465(0x10b)]();}[_0x3d9623(0x1a6)](){const _0x4e72f3=_0x3d9623;var _0x3c1874;(_0x3c1874=this['_commandDisposable'])==null||_0x3c1874[_0x4e72f3(0x1a6)](),this[_0x4e72f3(0x11b)]['next'](_0x4e72f3(0x155)),this[_0x4e72f3(0x11b)]['complete']();}[_0x3d9623(0xfb)](){const _0x1976a5=_0x3d9623;return this[_0x1976a5(0xec)];}[_0x3d9623(0x141)](){const _0x3da1e6=_0x3d9623;this[_0x3da1e6(0x1b7)]||(this['_init']=!0x0,this['_collabSession'][_0x3da1e6(0xf0)][_0x3da1e6(0x17a)](_0x5088b7['takeUntil'](this[_0x3da1e6(0x1a7)]))[_0x3da1e6(0x147)](_0x5d3e45=>{const _0x5259a1=_0x3da1e6;switch(_0x5d3e45){case _0xe0833[_0x5259a1(0x19d)]['OFFLINE']:this[_0x5259a1(0x103)]();break;case _0xe0833[_0x5259a1(0x19d)]['ONLINE']:this[_0x5259a1(0x111)]();break;}}),this[_0x3da1e6(0x14b)][_0x3da1e6(0x127)]['pipe'](_0x5088b7[_0x3da1e6(0x15f)](this[_0x3da1e6(0x1a7)]))[_0x3da1e6(0x147)](_0x4dd799=>{const _0x38a494=_0x3da1e6,{eventID:_0x596925}=_0x4dd799;switch(_0x596925){case _0xe01c5b[_0x38a494(0x12b)][_0x38a494(0x119)]:this[_0x38a494(0x12d)](_0x4dd799);break;case _0xe01c5b[_0x38a494(0x12b)][_0x38a494(0x1a3)]:this[_0x38a494(0xf7)](_0x4dd799);break;case _0xe01c5b[_0x38a494(0x12b)][_0x38a494(0xfa)]:this[_0x38a494(0x14f)]();break;case _0xe01c5b['CollaborationEvent'][_0x38a494(0x192)]:this[_0x38a494(0xe0)](_0x4dd799);break;}}));}[_0x3d9623(0xdf)](){const _0x22f1cc=_0x3d9623;this[_0x22f1cc(0x14b)][_0x22f1cc(0x162)]({'eventID':_0xe01c5b[_0x22f1cc(0x12b)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x22f1cc(0x14b)][_0x22f1cc(0x191)]()}},this[_0x22f1cc(0x169)]);}['stopPresenting'](){const _0x5baf62=_0x3d9623;this[_0x5baf62(0xec)]==='presenting'&&(this['_status$']['next'](_0x5baf62(0x155)),this['_collabSession']['send']({'eventID':_0xe01c5b[_0x5baf62(0x12b)][_0x5baf62(0xfa)],'data':{'unitID':this[_0x5baf62(0x169)]}},this['_unitID']));}['startFollowing'](){const _0x296613=_0x3d9623;this[_0x296613(0xec)]===_0x296613(0x184)&&(this[_0x296613(0x11b)][_0x296613(0x145)](_0x296613(0x18f)),this['_startFollowing']());}[_0x3d9623(0x164)](){const _0x58706e=_0x3d9623;this['_status']===_0x58706e(0x18f)&&this[_0x58706e(0xf3)]();}[_0x3d9623(0x12d)](_0x5ec037){const _0x65c0fa=_0x3d9623,{presenter:_0x5a5c07}=_0x5ec037[_0x65c0fa(0x196)],_0x2ae567=this[_0x65c0fa(0x14b)][_0x65c0fa(0x191)]();this['_presenter']=_0x5a5c07,_0x5a5c07===_0x2ae567?(this[_0x65c0fa(0xf3)](),this[_0x65c0fa(0x125)]()):this[_0x65c0fa(0xec)]!==_0x65c0fa(0x184)&&(this[_0x65c0fa(0xe5)](),this[_0x65c0fa(0x19f)]());}['_fetchOperations'](){const _0x1c9340=_0x3d9623,_0x40acdc={'eventID':_0xe01c5b['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x1c9340(0x14b)][_0x1c9340(0x162)](_0x40acdc,this[_0x1c9340(0x169)]);}[_0x3d9623(0x14f)](){const _0x14a14a=_0x3d9623;this[_0x14a14a(0x117)]=null,this[_0x14a14a(0xec)]!==_0x14a14a(0x17f)&&this['_beIdle']();}[_0x3d9623(0xe0)](_0x56c5f5){const _0xc35f4e=_0x3d9623;if(this[_0xc35f4e(0xec)]===_0xc35f4e(0x18f)&&this[_0xc35f4e(0x117)]===_0x56c5f5[_0xc35f4e(0x196)][_0xc35f4e(0x170)]){const _0x53ab4a=_0xe01c5b[_0xc35f4e(0xe9)](_0x56c5f5[_0xc35f4e(0x196)])[_0xc35f4e(0x118)][_0xc35f4e(0x10f)]()[_0xc35f4e(0x122)](_0x2c5470=>_0x2c5470['id']===_0xac9784['InsertSheetMutation']['id']);if(_0x53ab4a){const _0x4a8bed=_0x53ab4a['params'][_0xc35f4e(0x11c)],_0x305398=_0x53ab4a[_0xc35f4e(0x107)][_0xc35f4e(0x1b1)]['id'];setTimeout(()=>{const _0x3e6c0a=_0xc35f4e;this[_0x3e6c0a(0x17d)][_0x3e6c0a(0xf2)](_0xac9784[_0x3e6c0a(0x198)]['id'],{'unitId':_0x4a8bed,'subUnitId':_0x305398},{'fromCollab':!0x0});});}}}[_0x3d9623(0x125)](){const _0x3c6597=_0x3d9623;this[_0x3c6597(0x11b)]['next'](_0x3c6597(0x17f));const _0x54e445=new Map(),_0x41f5ad=this[_0x3c6597(0x15e)]=new _0x34c7db[(_0x3c6597(0xe8))]();_0x41f5ad[_0x3c6597(0x15a)](_0x34c7db['toDisposable'](()=>{const _0x19e9df=_0x3c6597;_0x54e445[_0x19e9df(0x19e)](_0x557a5f=>_0x557a5f[_0x19e9df(0x14c)]()),_0x54e445[_0x19e9df(0x180)]();})),_0x41f5ad['add'](this[_0x3c6597(0x17d)][_0x3c6597(0xde)](_0x2b0cc8=>{const _0x3fb9a9=_0x3c6597;var _0x3168c0;if(_0x2b0cc8[_0x3fb9a9(0x1af)]!==_0x34c7db[_0x3fb9a9(0x149)]['OPERATION']||!this[_0x3fb9a9(0x14d)][_0x3fb9a9(0x157)](_0x2b0cc8['id']))return;const {id:_0x47b788}=_0x2b0cc8;let _0x2d4c26;_0x54e445['has'](_0x47b788)?_0x2d4c26=_0x54e445['get'](_0x47b788):(_0x2d4c26=new _0x317d5e[(_0x3fb9a9(0x183))](),_0x54e445['set'](_0x47b788,_0x2d4c26),_0x2d4c26[_0x3fb9a9(0x17a)](_0x5088b7[_0x3fb9a9(0x1aa)]((_0x3168c0=this[_0x3fb9a9(0x101)][_0x3fb9a9(0x1a9)](_0x2450f3))!=null?_0x3168c0:_0x3e3925,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1cce25=>{const _0x358a7e=_0x3fb9a9;this[_0x358a7e(0x14b)][_0x358a7e(0x162)]({'eventID':_0xe01c5b['CollaborationEvent'][_0x358a7e(0x1a3)],'data':{'unitID':this['_unitID'],'operations':{[_0x1cce25['id']]:{'id':_0x1cce25['id'],'params':JSON[_0x358a7e(0x16b)](_0x1cce25['params'])}}}},this[_0x358a7e(0x169)]);})),_0x2d4c26[_0x3fb9a9(0x145)](_0x2b0cc8);})),this[_0x3c6597(0x14d)][_0x3c6597(0x1a4)](this[_0x3c6597(0x169)])[_0x3c6597(0x19e)](_0x75d463=>this[_0x3c6597(0x14b)]['send']({'eventID':_0xe01c5b[_0x3c6597(0x12b)][_0x3c6597(0x1a3)],'data':{'unitID':this[_0x3c6597(0x169)],'operations':{[_0x75d463['id']]:{'id':_0x75d463['id'],'params':JSON[_0x3c6597(0x16b)](_0x75d463['params'])}}}},this[_0x3c6597(0x169)]));}[_0x3d9623(0xe5)](){const _0x1290a5=_0x3d9623;var _0x40d932;this['_status$'][_0x1290a5(0x145)](_0x1290a5(0x155)),(_0x40d932=this[_0x1290a5(0x15e)])==null||_0x40d932[_0x1290a5(0x1a6)](),this[_0x1290a5(0x15e)]=null;}['_startFollowing'](){const _0x107fca=_0x3d9623;var _0x3c47a3;(_0x3c47a3=this['_commandDisposable'])==null||_0x3c47a3[_0x107fca(0x1a6)](),this[_0x107fca(0x11b)][_0x107fca(0x145)](_0x107fca(0x18f));}[_0x3d9623(0x132)](){const _0x5f27cc=_0x3d9623;var _0x72b3c;this[_0x5f27cc(0x11b)][_0x5f27cc(0x145)](_0x5f27cc(0x155)),(_0x72b3c=this[_0x5f27cc(0x15e)])==null||_0x72b3c[_0x5f27cc(0x1a6)](),this['_commandDisposable']=null;}[_0x3d9623(0xf3)](){const _0x3a2651=_0x3d9623;var _0x525d1e;this['_status$'][_0x3a2651(0x145)](_0x3a2651(0x184)),(_0x525d1e=this[_0x3a2651(0x15e)])==null||_0x525d1e['dispose']();}[_0x3d9623(0xf7)](_0x426086){const _0x157aa3=_0x3d9623;if([_0x157aa3(0x17f),_0x157aa3(0x184),_0x157aa3(0x10c)][_0x157aa3(0x129)](this['_status'])||!_0x426086[_0x157aa3(0x196)][_0x157aa3(0x102)]||_0x426086['data']['presenter']===this[_0x157aa3(0x14b)]['getMemberID']())return;this['_status']===_0x157aa3(0x155)&&this['_startFollowing']();const _0xb2cfb1=_0x426086[_0x157aa3(0x196)][_0x157aa3(0xe2)];Object['values'](_0xb2cfb1)['forEach'](_0x14afd8=>{const _0x2a45af=_0x157aa3;this[_0x2a45af(0x17d)][_0x2a45af(0xf2)](_0x14afd8['id'],_0x14afd8[_0x2a45af(0x107)]?JSON[_0x2a45af(0x146)](_0x14afd8[_0x2a45af(0x107)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x3a7d4e=_0x3d9623;var _0x36dc77;this[_0x3a7d4e(0x11b)][_0x3a7d4e(0x145)]('offline'),(_0x36dc77=this[_0x3a7d4e(0x15e)])==null||_0x36dc77[_0x3a7d4e(0x1a6)]();}[_0x3d9623(0x111)](){const _0x161ab1=_0x3d9623;this['_status$'][_0x161ab1(0x145)]('idle'),this[_0x161ab1(0x19a)]();}},_0x32170d['LiveShareCoordinator']=_0x28330e([_0x3b782a(0x2,_0x34c7db[_0x3d9623(0x190)]),_0x3b782a(0x3,_0x34c7db[_0x3d9623(0x16c)](_0x423aa1)),_0x3b782a(0x4,_0x34c7db['ICommandService'])],_0x32170d['LiveShareCoordinator']);function _0x6d5d22(){const _0x1b1db3=_0x3d9623,_0xc987e=_0x3b604b[_0x1b1db3(0x18c)](_0x32170d[_0x1b1db3(0x187)]),_0x386675=_0x3b604b[_0x1b1db3(0x18c)](_0x34c7db['IUniverInstanceService']),_0x3baa8c=_0x3b604b[_0x1b1db3(0x113)](()=>_0x386675[_0x1b1db3(0x175)](_0x34c7db[_0x1b1db3(0x13b)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3f3f24,_0x1898e9]=_0x1f913f['useState'](null),[_0x1a895a,_0x3b5598]=_0x1f913f['useState'](_0x4fec94['IDLE']),_0x7e8433=_0x1f913f['useRef'](null);return _0x1f913f[_0x1b1db3(0xe7)](()=>(_0x3baa8c&&_0xc987e[_0x1b1db3(0xf9)](_0x3baa8c[_0x1b1db3(0x14a)]())[_0x1b1db3(0x131)](_0x4be215=>{const _0x3b061c=_0x1b1db3;_0x1898e9(_0x4be215),_0x7e8433[_0x3b061c(0x156)]=_0x4be215[_0x3b061c(0x199)][_0x3b061c(0x147)](_0xb5915b=>{_0x3b5598(_0xb5915b);});}),()=>{const _0x5c1280=_0x1b1db3;var _0x2212ff;(_0x2212ff=_0x7e8433[_0x5c1280(0x156)])==null||_0x2212ff[_0x5c1280(0x13a)](),_0x7e8433['current']=null;}),[_0x3baa8c,_0xc987e]),_0x3f3f24?_0x21b20a[_0x1b1db3(0x109)](_0x24d65f[_0x1b1db3(0x140)],{'align':_0x1b1db3(0x18a),'disabled':_0x1a895a===_0x4fec94[_0x1b1db3(0x15d)],'className':_0x1b1db3(0x148),'overlay':_0x21b20a[_0x1b1db3(0x109)](_0x558758,{'status':_0x1a895a,'coordinator':_0x3f3f24}),'children':_0x21b20a[_0x1b1db3(0x109)](_0x1b1db3(0xf5),{'className':_0x24d65f[_0x1b1db3(0x100)](_0x1b1db3(0xea),{'univer-cursor-not-allowed':_0x1a895a===_0x4fec94[_0x1b1db3(0x15d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1a895a!==_0x4fec94[_0x1b1db3(0x15d)]}),'type':_0x1b1db3(0xf5),'children':_0x21b20a[_0x1b1db3(0x109)](_0xc131,{'className':'univer-size-4'})})}):null;}function _0x558758(_0x3155e2){const _0x3f9160=_0x3d9623,{status:_0x30c4f2,coordinator:_0x3774d6}=_0x3155e2;switch(_0x30c4f2){case _0x4fec94['IDLE']:return _0x21b20a['jsx'](_0x4ac4f9,{'coordinator':_0x3774d6});case _0x4fec94[_0x3f9160(0x193)]:return _0x21b20a[_0x3f9160(0x109)](_0x46ea45,{'coordinator':_0x3774d6});case _0x4fec94[_0x3f9160(0x178)]:return _0x21b20a['jsx'](_0x81e4d3,{'coordinator':_0x3774d6});case _0x4fec94[_0x3f9160(0x15d)]:return _0x21b20a[_0x3f9160(0x109)](_0x34b943,{});case _0x4fec94[_0x3f9160(0xeb)]:return _0x21b20a[_0x3f9160(0x109)](_0x355e4b,{'coordinator':_0x3774d6});default:return null;}}function _0x4ac4f9(_0x6e60cc){const _0x5f25c0=_0x3d9623,{coordinator:_0x58126c}=_0x6e60cc;return _0x21b20a['jsxs'](_0x21b20a[_0x5f25c0(0x154)],{'children':[_0x21b20a[_0x5f25c0(0x109)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5f25c0(0x19b)}),_0x21b20a['jsx'](_0x24d65f[_0x5f25c0(0x1b0)],{'onClick':()=>_0x58126c[_0x5f25c0(0xdf)](),'children':'Start'})]});}function _0x46ea45(_0x4266e2){const _0x416302=_0x3d9623,{coordinator:_0x5be1ea}=_0x4266e2;return _0x21b20a[_0x416302(0x116)](_0x21b20a['Fragment'],{'children':[_0x21b20a[_0x416302(0x109)](_0x416302(0x12c),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x416302(0xe1)}),_0x21b20a['jsx'](_0x24d65f[_0x416302(0x1b0)],{'onClick':()=>_0x5be1ea[_0x416302(0x164)](),'children':_0x416302(0x142)})]});}function _0x81e4d3(_0x4e404f){const _0xc6f6f8=_0x3d9623,{coordinator:_0x175a17}=_0x4e404f;return _0x21b20a[_0xc6f6f8(0x116)](_0x21b20a[_0xc6f6f8(0x154)],{'children':[_0x21b20a['jsx'](_0xc6f6f8(0x12c),{'className':_0xc6f6f8(0x181),'children':_0xc6f6f8(0x166)}),_0x21b20a[_0xc6f6f8(0x109)](_0x24d65f[_0xc6f6f8(0x1b0)],{'variant':_0xc6f6f8(0x176),'onClick':()=>_0x175a17['startFollowing'](),'children':'Start\x20following'})]});}function _0x355e4b(_0x15ee7d){const _0xa73f32=_0x3d9623,{coordinator:_0x536e37}=_0x15ee7d;return _0x21b20a[_0xa73f32(0x116)](_0x21b20a[_0xa73f32(0x154)],{'children':[_0x21b20a[_0xa73f32(0x109)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xa73f32(0x1a2)}),_0x21b20a[_0xa73f32(0x109)](_0x24d65f[_0xa73f32(0x1b0)],{'variant':'default','onClick':()=>_0x536e37[_0xa73f32(0x177)](),'children':'Stop\x20presenting'})]});}function _0x34b943(){const _0x4da438=_0x3d9623;return _0x21b20a[_0x4da438(0x109)](_0x21b20a[_0x4da438(0x154)],{'children':_0x4da438(0xee)});}var _0x53eccd=Object[_0x3d9623(0x135)],_0x17e549=(_0x30b2f2,_0x239c4d,_0x1ebaa6,_0x42fcf4)=>{const _0x558e44=_0x3d9623;for(var _0x10aee3=_0x42fcf4>0x1?void 0x0:_0x42fcf4?_0x53eccd(_0x239c4d,_0x1ebaa6):_0x239c4d,_0x4c7678=_0x30b2f2[_0x558e44(0x11a)]-0x1,_0xf711dc;_0x4c7678>=0x0;_0x4c7678--)(_0xf711dc=_0x30b2f2[_0x4c7678])&&(_0x10aee3=_0xf711dc(_0x10aee3)||_0x10aee3);return _0x10aee3;},_0x487e5c=(_0x8aef26,_0xb36d73)=>(_0x5de36c,_0x5c9a6a)=>_0xb36d73(_0x5de36c,_0x5c9a6a,_0x8aef26);_0x32170d['DesktopLiveShareController']=class extends _0x34c7db[_0x3d9623(0x163)]{constructor(_0x15f1ad,_0x41ad41){const _0xe196c1=_0x3d9623;super(),this[_0xe196c1(0xdb)]=_0x15f1ad,this['_uiPartsService']=_0x41ad41,this[_0xe196c1(0x160)]();}['_mountLiveShare'](){const _0x1340d1=_0x3d9623;this[_0x1340d1(0x185)](this[_0x1340d1(0x1a1)][_0x1340d1(0x130)](_0x3b604b[_0x1340d1(0x1b4)]['HEADER_MENU'],()=>_0x3b604b[_0x1340d1(0x10e)](_0x6d5d22,this['_injector'])));}},_0x32170d['DesktopLiveShareController']=_0x17e549([_0x487e5c(0x0,_0x34c7db[_0x3d9623(0x16c)](_0x34c7db[_0x3d9623(0x151)])),_0x487e5c(0x1,_0x3b604b[_0x3d9623(0x11e)])],_0x32170d[_0x3d9623(0x1a8)]);const _0x814035=_0x3d9623(0xef),_0x2c36e1={};var _0x1b5c13=Object[_0x3d9623(0x135)],_0x101aa4=(_0x5c2d3b,_0x395518,_0x26e2ff,_0x43b694)=>{const _0x16ba23=_0x3d9623;for(var _0x3097eb=_0x43b694>0x1?void 0x0:_0x43b694?_0x1b5c13(_0x395518,_0x26e2ff):_0x395518,_0x203b49=_0x5c2d3b[_0x16ba23(0x11a)]-0x1,_0x407fd9;_0x203b49>=0x0;_0x203b49--)(_0x407fd9=_0x5c2d3b[_0x203b49])&&(_0x3097eb=_0x407fd9(_0x3097eb)||_0x3097eb);return _0x3097eb;},_0x4d30e8=(_0x136594,_0x48832e)=>(_0xf1a786,_0x31e2d0)=>_0x48832e(_0xf1a786,_0x31e2d0,_0x136594);let _0x5eba6f=class extends _0x34c7db[_0x3d9623(0x163)]{constructor(_0x3fde02){const _0x338c3f=_0x3d9623;super(),this[_0x338c3f(0x14d)]=_0x3fde02,this[_0x338c3f(0x1b7)]();}[_0x3d9623(0x1b7)](){const _0x200957=_0x3d9623;[_0x2c9719[_0x200957(0x174)]['id'],_0x2c9719[_0x200957(0x13d)]['id'],_0xac9784[_0x200957(0x198)]['id']][_0x200957(0x19e)](_0x4ff794=>{const _0x35bbc8=_0x200957;this['disposeWithMe'](this[_0x35bbc8(0x14d)][_0x35bbc8(0x16d)](_0x4ff794));});}};_0x5eba6f=_0x101aa4([_0x4d30e8(0x0,_0x34c7db[_0x3d9623(0x16c)](_0x423aa1))],_0x5eba6f);var _0x1cedba=Object[_0x3d9623(0x104)],_0x189d89=Object[_0x3d9623(0x135)],_0x597f5e=(_0x53ec30,_0x31e816,_0x553fa3)=>_0x31e816 in _0x53ec30?_0x1cedba(_0x53ec30,_0x31e816,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x553fa3}):_0x53ec30[_0x31e816]=_0x553fa3,_0x139bc2=(_0x4619da,_0x26a3c5,_0x255720,_0x4cbaeb)=>{const _0x57da35=_0x3d9623;for(var _0x51bbf0=_0x4cbaeb>0x1?void 0x0:_0x4cbaeb?_0x189d89(_0x26a3c5,_0x255720):_0x26a3c5,_0x57c097=_0x4619da[_0x57da35(0x11a)]-0x1,_0x400442;_0x57c097>=0x0;_0x57c097--)(_0x400442=_0x4619da[_0x57c097])&&(_0x51bbf0=_0x400442(_0x51bbf0)||_0x51bbf0);return _0x51bbf0;},_0x174138=(_0x43cd5e,_0x153234)=>(_0x5784ea,_0x2899a8)=>_0x153234(_0x5784ea,_0x2899a8,_0x43cd5e),_0x11f5f6=(_0x551acf,_0x38fea4,_0x1ca358)=>_0x597f5e(_0x551acf,typeof _0x38fea4!=_0x3d9623(0x115)?_0x38fea4+'':_0x38fea4,_0x1ca358);const _0x3dbe92='UNIVER_LIVE_SHARE_PLUGIN';_0x32170d[_0x3d9623(0x120)]=class extends _0x34c7db['Plugin']{constructor(_0x5a8625=_0x2c36e1,_0x1b4ade,_0xfbefcc){const _0x2e7aca=_0x3d9623;super(),this['_config']=_0x5a8625,this[_0x2e7aca(0xdb)]=_0x1b4ade,this[_0x2e7aca(0x101)]=_0xfbefcc;const {..._0x2aab0b}=_0x34c7db[_0x2e7aca(0x1b2)]({},_0x2c36e1,this[_0x2e7aca(0xe3)]);this[_0x2e7aca(0x101)]['setConfig'](_0x814035,_0x2aab0b);}['onStarting'](){const _0x56973a=_0x3d9623;_0x34c7db[_0x56973a(0x17e)](this[_0x56973a(0xdb)],_0x34c7db['mergeOverrideWithDependencies']([[_0x423aa1],[_0x32170d[_0x56973a(0x187)]],[_0x5eba6f],[_0x32170d['DesktopLiveShareController']]],this['_config'][_0x56973a(0x11d)])),_0x34c7db[_0x56973a(0x17c)](this[_0x56973a(0xdb)],[[_0x5eba6f]]);}[_0x3d9623(0x16a)](){const _0x43c643=_0x3d9623;_0x34c7db[_0x43c643(0x17c)](this['_injector'],[[_0x32170d[_0x43c643(0x1a8)]]]);}},_0x11f5f6(_0x32170d[_0x3d9623(0x120)],_0x3d9623(0x1af),_0x34c7db[_0x3d9623(0x13b)][_0x3d9623(0x108)]),_0x11f5f6(_0x32170d[_0x3d9623(0x120)],_0x3d9623(0x161),_0x3dbe92),_0x32170d[_0x3d9623(0x120)]=_0x139bc2([_0x34c7db[_0x3d9623(0x136)](_0xe0833['UniverCollaborationClientPlugin']),_0x174138(0x1,_0x34c7db[_0x3d9623(0x16c)](_0x34c7db[_0x3d9623(0x151)])),_0x174138(0x2,_0x34c7db['IConfigService'])],_0x32170d['UniverLiveSharePlugin']),_0x32170d[_0x3d9623(0x1ac)]=_0x6d5d22,_0x32170d['LiveShareService']=_0x423aa1,_0x32170d['LiveShareStatus']=_0x4fec94,Object[_0x3d9623(0x104)](_0x32170d,Symbol[_0x3d9623(0x15b)],{'value':'Module'});}));function _0x12a5(_0x396398,_0xf5f9d6){const _0x90d588=_0x90d5();return _0x12a5=function(_0x12a515,_0x50acfd){_0x12a515=_0x12a515-0xd7;let _0x504f38=_0x90d588[_0x12a515];return _0x504f38;},_0x12a5(_0x396398,_0xf5f9d6);}function _0x90d5(){const _0x494d5d=['_univerInstanceService','_handleOnline','random','useObservable','children','symbol','jsxs','_presenter','mutations','LIVESHARE_NEW_HOST','length','_status$','unitId','override','IUIPartsService','has','UniverLiveSharePlugin','UniverDesign','find','UniverProLiveShare','use','_startPresenting','registerInitialStateReporter','event$','url(#$1','includes','3060eNCwEh','CollaborationEvent','div','_handleNewHost','assign','idSuffix','registerComponent','then','_beIdle','svg','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','DependentOn','displayName','4024205XeZroL','UniverCore','unsubscribe','UniverInstanceType','entries','SetScrollOperation','evenodd','mask','Dropdown','init','Stop\x20following','CollaborationSessionService','@univerjs/sheets','next','parse','subscribe','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','CommandType','getUnitId','_collabSession','complete','_liveShareService','1em','_handleTerminate','substring','Injector','tag','currentColor','Fragment','idle','current','shouldShareOperation','3073010rUAJRC','_startLiveShareCoordinator','add','toStringTag','path','OFFLINE','_commandDisposable','takeUntil','_mountLiveShare','pluginName','send','Disposable','stopFollowing','map','You\x27re\x20not\x20following\x20the\x20presenter','delete','@univerjs-pro/collaboration','_unitID','onRendered','stringify','Inject','registerSharedOperation','UniverSheets','UniverIcon','memberID','defs','0\x200\x2017\x2017','univerjs-icon\x20univerjs-icon-','SetZoomRatioOperation','getCurrentTypeOfUnit$','text','stopPresenting','NOT_FOLLOWING','LiveShareCoordinator','pipe','createElement','touchDependencies','_commandService','registerDependencies','presenting','clear','univer-mb-3\x20univer-w-full\x20univer-text-sm','getTypeOfUnitAdded$','Subject','not-following','disposeWithMe','6621576wcFoSR','LiveShareController','181954qvyiar','forwardRef','end','useRef','useDependency','react/jsx-runtime','7236ZYVgZO','following','IConfigService','getMemberID','NEW_CHANGESETS','FOLLOWING','UniverProCollaboration','amd','data','RxDisposable','SetWorksheetActiveOperation','status$','_fetchOperations','Present\x20this\x20document','_entities','SessionStatus','forEach','_startFollowing','React','_uiPartsService','You\x27re\x20presenting\x20the\x20document','LIVESHARE_OPERATION','getInitialStates','129297nfaqXD','dispose','dispose$','DesktopLiveShareController','getConfig','throttleTime','http://www.w3.org/2000/svg','LiveShare','_reporters','_sharedOperations','type','Button','sheet','merge','161097jzTCEo','BuiltInUIPart','set','string','_init','BehaviorSubject','asObservable','live-share-icon','get','toDisposable','xlink:href','trim','IUniverInstanceService','116IgWFVq','from','none','_injector','_collabSessionService','138JMAfED','onCommandExecuted','tryStartPresenting','_handleNewChangeSets','You\x27re\x20following\x20the\x20presenter','operations','_config','rxjs','_stopPresenting','operators','useEffect','DisposableCollection','parseProtocolChangeset','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','PRESENTING','_status','SAME_OPERATION_SHARE_INTERVAL','You\x27are\x20offline.','live-share.config','sessionStatus$','UNIVER_SHEET','executeCommand','_stopFollowing','function','button','colorChannel1','_handleOperation','UniverProCollaborationClient','getLiveShareCoordinator','LIVESHARE_TERMINATE','getStatus','@univerjs/sheets-ui','IDLE','UniverSheetsUi','exports','clsx','_configService','presenter','_handleOffline','defineProperty','attrs','@univerjs-pro/collaboration-client','params','UNIVER_UNKNOWN','jsx','toString','getValue','offline','object','connectInjector','reverse'];_0x90d5=function(){return _0x494d5d;};return _0x90d5();}
|
|
1
|
+
function _0x176b(_0x1ae1ad,_0x1024c1){const _0x7222e4=_0x7222();return _0x176b=function(_0x176beb,_0x5e3f27){_0x176beb=_0x176beb-0x1d1;let _0x2c06fb=_0x7222e4[_0x176beb];return _0x2c06fb;},_0x176b(_0x1ae1ad,_0x1024c1);}(function(_0x5b50e1,_0x46be11){const _0x11175c=_0x176b,_0x17eebd=_0x5b50e1();while(!![]){try{const _0x406fd5=-parseInt(_0x11175c(0x29f))/0x1+parseInt(_0x11175c(0x1ef))/0x2*(parseInt(_0x11175c(0x2b2))/0x3)+parseInt(_0x11175c(0x271))/0x4+parseInt(_0x11175c(0x1fc))/0x5+parseInt(_0x11175c(0x235))/0x6+-parseInt(_0x11175c(0x1db))/0x7+parseInt(_0x11175c(0x21c))/0x8;if(_0x406fd5===_0x46be11)break;else _0x17eebd['push'](_0x17eebd['shift']());}catch(_0x5cabc5){_0x17eebd['push'](_0x17eebd['shift']());}}}(_0x7222,0x80a47),function(_0x5b3f3b,_0xc3efa3){const _0x10148c=_0x176b;typeof exports==_0x10148c(0x1d2)&&typeof module<'u'?_0xc3efa3(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==_0x10148c(0x289)&&define[_0x10148c(0x252)]?define([_0x10148c(0x1dc),_0x10148c(0x299),'@univerjs/ui',_0x10148c(0x284),_0x10148c(0x253),_0x10148c(0x210),_0x10148c(0x1e1),_0x10148c(0x261),'@univerjs/sheets',_0x10148c(0x1fa),_0x10148c(0x2a6),'@univerjs/sheets-ui'],_0xc3efa3):(_0x5b3f3b=typeof globalThis<'u'?globalThis:_0x5b3f3b||self,_0xc3efa3(_0x5b3f3b[_0x10148c(0x2a0)]={},_0x5b3f3b[_0x10148c(0x248)],_0x5b3f3b[_0x10148c(0x290)],_0x5b3f3b[_0x10148c(0x297)],_0x5b3f3b['UniverDesign'],_0x5b3f3b[_0x10148c(0x297)],_0x5b3f3b[_0x10148c(0x2ad)],_0x5b3f3b[_0x10148c(0x246)],_0x5b3f3b[_0x10148c(0x1f0)],_0x5b3f3b[_0x10148c(0x1fa)],_0x5b3f3b[_0x10148c(0x1fa)]['operators'],_0x5b3f3b[_0x10148c(0x208)]));}(this,function(_0x3d4e36,_0x1aa014,_0x54460b,_0x571fa4,_0x3e1546,_0x132881,_0x5d8b63,_0x46834b,_0xabc481,_0x47d38e,_0x318159,_0x4ded26){'use strict';const _0x3e7570=_0x176b;var _0x4e023f=Object[_0x3e7570(0x206)],_0x219330=(_0x18dfc3,_0x251473,_0xa088b8)=>_0x251473 in _0x18dfc3?_0x4e023f(_0x18dfc3,_0x251473,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa088b8}):_0x18dfc3[_0x251473]=_0xa088b8,_0xae7f3=(_0xebd6a9,_0x15d7aa,_0x2d7353)=>_0x219330(_0xebd6a9,typeof _0x15d7aa!=_0x3e7570(0x247)?_0x15d7aa+'':_0x15d7aa,_0x2d7353);function _0x4d7eba({ref:_0x6f7fea,..._0x236d9e}){const _0x35bd4d=_0x3e7570,{icon:_0x5ab0dc,id:_0x59b919,className:_0x5416f9,extend:_0x339c84,..._0xc14f6e}=_0x236d9e,_0x592da6=(_0x35bd4d(0x226)+_0x59b919+'\x20'+(_0x5416f9||''))[_0x35bd4d(0x1d9)](),_0x4aa698=_0x132881[_0x35bd4d(0x2a8)]('_'+_0x1a2b64());return _0x57bf27(_0x5ab0dc,''+_0x59b919,{'defIds':_0x5ab0dc[_0x35bd4d(0x217)],'idSuffix':_0x4aa698[_0x35bd4d(0x28f)]},{'ref':_0x6f7fea,'className':_0x592da6,..._0xc14f6e},_0x339c84);}function _0x57bf27(_0x5b5e96,_0x17ee6e,_0x2bbd23,_0x491575,_0x295188){const _0x3043d2=_0x3e7570;return _0x132881[_0x3043d2(0x2a3)](_0x5b5e96[_0x3043d2(0x25b)],{'key':_0x17ee6e,..._0x308d61(_0x5b5e96,_0x2bbd23,_0x295188),..._0x491575},(_0x1b38c4(_0x5b5e96,_0x2bbd23)['children']||[])['map']((_0x2dcea2,_0x1d5623)=>_0x57bf27(_0x2dcea2,_0x17ee6e+'-'+_0x5b5e96[_0x3043d2(0x25b)]+'-'+_0x1d5623,_0x2bbd23,void 0x0,_0x295188)));}function _0x308d61(_0x43cbe8,_0x2f1c4a,_0xad2d6b){const _0x2706b0=_0x3e7570,_0x2a42b8={..._0x43cbe8[_0x2706b0(0x27d)]};_0xad2d6b!=null&&_0xad2d6b[_0x2706b0(0x26c)]&&_0x2a42b8[_0x2706b0(0x25d)]===_0x2706b0(0x26c)&&(_0x2a42b8[_0x2706b0(0x25d)]=_0xad2d6b['colorChannel1']),_0x43cbe8[_0x2706b0(0x25b)]===_0x2706b0(0x264)&&_0x2a42b8['id']&&(_0x2a42b8['id']=_0x2a42b8['id']+_0x2f1c4a[_0x2706b0(0x250)]),Object[_0x2706b0(0x215)](_0x2a42b8)[_0x2706b0(0x1de)](([_0x40f219,_0x320378])=>{const _0x29713d=_0x2706b0;_0x40f219===_0x29713d(0x264)&&typeof _0x320378==_0x29713d(0x20c)&&(_0x2a42b8[_0x40f219]=_0x320378['replace'](/url\(#(.*)\)/,_0x29713d(0x2a4)+_0x2f1c4a[_0x29713d(0x250)]+')'));});const {defIds:_0x551d55}=_0x2f1c4a;return!_0x551d55||_0x551d55[_0x2706b0(0x21f)]===0x0||(_0x43cbe8[_0x2706b0(0x25b)]===_0x2706b0(0x245)&&_0x2a42b8[_0x2706b0(0x23e)]&&(_0x2a42b8[_0x2706b0(0x23e)]=_0x2a42b8[_0x2706b0(0x23e)]+_0x2f1c4a[_0x2706b0(0x250)]),Object[_0x2706b0(0x215)](_0x2a42b8)[_0x2706b0(0x1de)](([_0x1cc1a6,_0x3609f6])=>{const _0x46fa8d=_0x2706b0;typeof _0x3609f6==_0x46fa8d(0x20c)&&(_0x2a42b8[_0x1cc1a6]=_0x3609f6[_0x46fa8d(0x2ba)](/url\(#(.*)\)/,_0x46fa8d(0x2a4)+_0x2f1c4a[_0x46fa8d(0x250)]+')'));})),_0x2a42b8;}function _0x1b38c4(_0x4380f1,_0x1b97c0){const _0x4bc304=_0x3e7570;var _0xd8c3b8;const {defIds:_0x3ebf6c}=_0x1b97c0;return!_0x3ebf6c||_0x3ebf6c[_0x4bc304(0x21f)]===0x0?_0x4380f1:_0x4380f1[_0x4bc304(0x25b)]===_0x4bc304(0x281)&&((_0xd8c3b8=_0x4380f1[_0x4bc304(0x203)])!=null&&_0xd8c3b8['length'])?{..._0x4380f1,'children':_0x4380f1['children'][_0x4bc304(0x280)](_0x73f313=>typeof _0x73f313[_0x4bc304(0x27d)]['id']==_0x4bc304(0x20c)&&_0x3ebf6c&&_0x3ebf6c[_0x4bc304(0x1ec)](_0x73f313[_0x4bc304(0x27d)]['id'])?{..._0x73f313,'attrs':{..._0x73f313[_0x4bc304(0x27d)],'id':_0x73f313[_0x4bc304(0x27d)]['id']+_0x1b97c0['idSuffix']}}:_0x73f313)}:_0x4380f1;}function _0x1a2b64(){const _0x15a805=_0x3e7570;return Math[_0x15a805(0x254)]()[_0x15a805(0x259)](0x24)[_0x15a805(0x218)](0x2,0x8);}_0x4d7eba[_0x3e7570(0x1f6)]=_0x3e7570(0x233);const _0x42118f={'tag':_0x3e7570(0x237),'attrs':{'xmlns':_0x3e7570(0x27e),'fill':'none','viewBox':_0x3e7570(0x244),'width':_0x3e7570(0x21d),'height':_0x3e7570(0x21d)},'children':[{'tag':_0x3e7570(0x24b),'attrs':{'fill':_0x3e7570(0x2b4),'d':_0x3e7570(0x229)}},{'tag':_0x3e7570(0x24b),'attrs':{'fill':_0x3e7570(0x2b4),'d':_0x3e7570(0x1d1),'fillRule':_0x3e7570(0x1e5),'clipRule':'evenodd'}}]},_0x3bf756=_0x132881[_0x3e7570(0x28b)](function(_0x222041,_0x47530d){const _0x294592=_0x3e7570;return _0x132881[_0x294592(0x2a3)](_0x4d7eba,Object[_0x294592(0x212)]({},_0x222041,{'id':'live-share-icon','ref':_0x47530d,'icon':_0x42118f}));});_0x3bf756['displayName']=_0x3e7570(0x222);class _0x1e373a extends _0x1aa014[_0x3e7570(0x251)]{constructor(){const _0x417f86=_0x3e7570;super(...arguments),_0xae7f3(this,_0x417f86(0x200),new Set()),_0xae7f3(this,'_reporters',new Set());}['registerSharedOperation'](_0xa7c78e){const _0x5d5d9f=_0x3e7570;return this[_0x5d5d9f(0x200)][_0x5d5d9f(0x1fd)](_0xa7c78e),_0x1aa014[_0x5d5d9f(0x1f4)](()=>this['_sharedOperations'][_0x5d5d9f(0x1ee)](_0xa7c78e));}[_0x3e7570(0x236)](_0x2c86ad){const _0x2efb63=_0x3e7570;return this[_0x2efb63(0x238)][_0x2efb63(0x1fd)](_0x2c86ad),_0x1aa014[_0x2efb63(0x1f4)](()=>this[_0x2efb63(0x238)][_0x2efb63(0x1ee)](_0x2c86ad));}[_0x3e7570(0x25a)](_0x1b6aa2){const _0x334aec=_0x3e7570;return this[_0x334aec(0x200)]['has'](_0x1b6aa2);}[_0x3e7570(0x285)](_0x394754){const _0x598ec5=_0x3e7570;return Array['from'](this[_0x598ec5(0x238)])['map'](_0x1da113=>_0x1da113(_0x394754));}}var _0x2520d3=Object['getOwnPropertyDescriptor'],_0x67c9f7=(_0x4334e2,_0x314d35,_0x56c7f6,_0x8cae05)=>{for(var _0x1c6fc5=_0x8cae05>0x1?void 0x0:_0x8cae05?_0x2520d3(_0x314d35,_0x56c7f6):_0x314d35,_0x5da97c=_0x4334e2['length']-0x1,_0x5e938c;_0x5da97c>=0x0;_0x5da97c--)(_0x5e938c=_0x4334e2[_0x5da97c])&&(_0x1c6fc5=_0x5e938c(_0x1c6fc5)||_0x1c6fc5);return _0x1c6fc5;},_0x3e8bb8=(_0x571673,_0x5df6e4)=>(_0x93cba2,_0x4b0a27)=>_0x5df6e4(_0x93cba2,_0x4b0a27,_0x571673);_0x3d4e36[_0x3e7570(0x216)]=class extends _0x1aa014[_0x3e7570(0x27b)]{constructor(_0x26b18c,_0x31706b,_0x3e9fd7){const _0x49ded0=_0x3e7570;super(),_0xae7f3(this,'_entities',new Map()),(this[_0x49ded0(0x1eb)]=_0x26b18c,this['_injector']=_0x31706b,this[_0x49ded0(0x22b)]=_0x3e9fd7,this[_0x49ded0(0x2af)]());}async['getLiveShareCoordinator'](_0x38145b){const _0x41d8b5=_0x3e7570;return this[_0x41d8b5(0x1ea)][_0x41d8b5(0x295)](_0x38145b)||await this[_0x41d8b5(0x1e6)](_0x38145b),this[_0x41d8b5(0x1ea)]['get'](_0x38145b);}[_0x3e7570(0x23c)](_0x1314c7){const _0x3ab98b=_0x3e7570;var _0x256d82;return(_0x256d82=this['_entities'][_0x3ab98b(0x1f5)](_0x1314c7))!=null?_0x256d82:null;}[_0x3e7570(0x2af)](){const _0x372eab=_0x3e7570;this[_0x372eab(0x1eb)][_0x372eab(0x20d)](_0x1aa014[_0x372eab(0x277)][_0x372eab(0x287)])[_0x372eab(0x1df)](_0x318159['takeUntil'](this[_0x372eab(0x230)]))[_0x372eab(0x1e8)](async _0x5cd7ce=>{const _0x2c4e32=_0x372eab,_0x5c1f11=_0x5cd7ce[_0x2c4e32(0x232)]();this[_0x2c4e32(0x1ea)][_0x2c4e32(0x295)](_0x5c1f11)||this[_0x2c4e32(0x1e6)](_0x5c1f11);}),this[_0x372eab(0x1eb)]['getTypeOfUnitDisposed$'](_0x1aa014['UniverInstanceType'][_0x372eab(0x287)])[_0x372eab(0x1df)](_0x318159[_0x372eab(0x255)](this[_0x372eab(0x230)]))[_0x372eab(0x1e8)](_0x5e4327=>{const _0x5c377c=_0x372eab,_0x347234=_0x5e4327[_0x5c377c(0x232)](),_0x449c5a=this[_0x5c377c(0x1ea)][_0x5c377c(0x1f5)](_0x347234);_0x449c5a==null||_0x449c5a[_0x5c377c(0x23f)]();});}async[_0x3e7570(0x1e6)](_0x1ced04){const _0x18b0a1=_0x3e7570,_0x303dce=await this['_collabSessionService'][_0x18b0a1(0x220)](_0x1ced04),_0x5da60b=this[_0x18b0a1(0x267)][_0x18b0a1(0x22e)](_0x3d4e36['LiveShareCoordinator'],_0x1ced04,_0x303dce);return _0x5da60b[_0x18b0a1(0x263)](),this[_0x18b0a1(0x1ea)]['set'](_0x1ced04,_0x5da60b),_0x5da60b;}},_0x3d4e36['LiveShareController']=_0x67c9f7([_0x3e8bb8(0x0,_0x1aa014[_0x3e7570(0x293)]),_0x3e8bb8(0x1,_0x1aa014[_0x3e7570(0x24d)](_0x1aa014[_0x3e7570(0x25c)])),_0x3e8bb8(0x2,_0x1aa014[_0x3e7570(0x24d)](_0x46834b[_0x3e7570(0x2b0)]))],_0x3d4e36[_0x3e7570(0x216)]);var _0x50cd7f=(_0x3506a2=>(_0x3506a2[_0x3e7570(0x1f9)]=_0x3e7570(0x24a),_0x3506a2['IDLE']='idle',_0x3506a2[_0x3e7570(0x1ed)]=_0x3e7570(0x213),_0x3506a2[_0x3e7570(0x242)]=_0x3e7570(0x29c),_0x3506a2['PRESENTING']=_0x3e7570(0x207),_0x3506a2))(_0x50cd7f||{});const _0x569762=_0x3e7570(0x21a),_0x465765=0xc8;_0x3d4e36[_0x3e7570(0x296)]=class extends _0x1aa014[_0x3e7570(0x27b)]{constructor(_0x1b556e,_0x1b23ed,_0x2ded9f,_0x1ed6a1,_0x5bb112){const _0x5b9d53=_0x3e7570;super(),_0xae7f3(this,_0x5b9d53(0x2a7),new _0x47d38e[(_0x5b9d53(0x26a))](_0x5b9d53(0x224))),_0xae7f3(this,_0x5b9d53(0x260),this[_0x5b9d53(0x2a7)][_0x5b9d53(0x257)]()),_0xae7f3(this,'_init',!0x1),_0xae7f3(this,'_commandDisposable',null),_0xae7f3(this,_0x5b9d53(0x22d),null),(this[_0x5b9d53(0x21b)]=_0x1b556e,this['_collabSession']=_0x1b23ed,this[_0x5b9d53(0x266)]=_0x2ded9f,this['_liveShareService']=_0x1ed6a1,this[_0x5b9d53(0x2a5)]=_0x5bb112);}get[_0x3e7570(0x265)](){const _0x43db26=_0x3e7570;return this[_0x43db26(0x2a7)]['getValue']();}[_0x3e7570(0x23f)](){const _0x5201ec=_0x3e7570;var _0x490d32;(_0x490d32=this[_0x5201ec(0x2b5)])==null||_0x490d32[_0x5201ec(0x23f)](),this[_0x5201ec(0x2a7)][_0x5201ec(0x28d)]('idle'),this[_0x5201ec(0x2a7)][_0x5201ec(0x292)]();}['getStatus'](){const _0x449b9f=_0x3e7570;return this[_0x449b9f(0x265)];}[_0x3e7570(0x263)](){const _0x1f0ace=_0x3e7570;this[_0x1f0ace(0x2af)]||(this[_0x1f0ace(0x2af)]=!0x0,this['_collabSession'][_0x1f0ace(0x272)]['pipe'](_0x318159[_0x1f0ace(0x255)](this[_0x1f0ace(0x230)]))[_0x1f0ace(0x1e8)](_0x4a0ab4=>{const _0x5aa673=_0x1f0ace;switch(_0x4a0ab4){case _0x46834b[_0x5aa673(0x234)][_0x5aa673(0x1f9)]:this[_0x5aa673(0x23a)]();break;case _0x46834b[_0x5aa673(0x234)][_0x5aa673(0x22c)]:this[_0x5aa673(0x283)]();break;}}),this[_0x1f0ace(0x269)]['event$'][_0x1f0ace(0x1df)](_0x318159['takeUntil'](this['dispose$']))['subscribe'](_0x35b10d=>{const _0x55e333=_0x1f0ace,{eventID:_0x4c9ce5}=_0x35b10d;switch(_0x4c9ce5){case _0x5d8b63['CollaborationEvent'][_0x55e333(0x1e0)]:this[_0x55e333(0x22a)](_0x35b10d);break;case _0x5d8b63[_0x55e333(0x28e)]['LIVESHARE_OPERATION']:this[_0x55e333(0x273)](_0x35b10d);break;case _0x5d8b63[_0x55e333(0x28e)][_0x55e333(0x291)]:this[_0x55e333(0x209)]();break;case _0x5d8b63['CollaborationEvent'][_0x55e333(0x2ab)]:this[_0x55e333(0x276)](_0x35b10d);break;}}));}[_0x3e7570(0x225)](){const _0x39f6c5=_0x3e7570;this[_0x39f6c5(0x269)][_0x39f6c5(0x2a2)]({'eventID':_0x5d8b63[_0x39f6c5(0x28e)][_0x39f6c5(0x2ac)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x39f6c5(0x270)]()}},this[_0x39f6c5(0x21b)]);}[_0x3e7570(0x231)](){const _0x480811=_0x3e7570;this['_status']===_0x480811(0x207)&&(this['_status$'][_0x480811(0x28d)](_0x480811(0x224)),this[_0x480811(0x269)]['send']({'eventID':_0x5d8b63[_0x480811(0x28e)][_0x480811(0x291)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x3e7570(0x1f3)](){const _0x141b41=_0x3e7570;this['_status']==='not-following'&&(this[_0x141b41(0x2a7)][_0x141b41(0x28d)]('following'),this[_0x141b41(0x2b9)]());}['stopFollowing'](){const _0x45da91=_0x3e7570;this[_0x45da91(0x265)]==='following'&&this[_0x45da91(0x278)]();}[_0x3e7570(0x22a)](_0x8a369e){const _0x5132a8=_0x3e7570,{presenter:_0x36cc36}=_0x8a369e[_0x5132a8(0x288)],_0x1c1a57=this[_0x5132a8(0x269)][_0x5132a8(0x270)]();this[_0x5132a8(0x22d)]=_0x36cc36,_0x36cc36===_0x1c1a57?(this['_stopFollowing'](),this[_0x5132a8(0x227)]()):this[_0x5132a8(0x265)]!==_0x5132a8(0x29c)&&(this[_0x5132a8(0x2aa)](),this[_0x5132a8(0x2b9)]());}[_0x3e7570(0x29b)](){const _0x29e199=_0x3e7570,_0x52501b={'eventID':_0x5d8b63[_0x29e199(0x28e)][_0x29e199(0x1e4)]};this[_0x29e199(0x269)][_0x29e199(0x2a2)](_0x52501b,this[_0x29e199(0x21b)]);}[_0x3e7570(0x209)](){const _0xeaaeff=_0x3e7570;this['_presenter']=null,this[_0xeaaeff(0x265)]!==_0xeaaeff(0x207)&&this[_0xeaaeff(0x219)]();}[_0x3e7570(0x276)](_0x29df13){const _0x40ff0c=_0x3e7570;if(this[_0x40ff0c(0x265)]==='following'&&this[_0x40ff0c(0x22d)]===_0x29df13['data'][_0x40ff0c(0x268)]){const _0x54ab7c=_0x5d8b63[_0x40ff0c(0x2b8)](_0x29df13[_0x40ff0c(0x288)])[_0x40ff0c(0x26b)][_0x40ff0c(0x221)]()['find'](_0x444f58=>_0x444f58['id']===_0xabc481[_0x40ff0c(0x279)]['id']);if(_0x54ab7c){const _0x14d3ef=_0x54ab7c[_0x40ff0c(0x262)]['unitId'],_0x3aedd1=_0x54ab7c[_0x40ff0c(0x262)]['sheet']['id'];setTimeout(()=>{const _0x1e307f=_0x40ff0c;this[_0x1e307f(0x2a5)][_0x1e307f(0x1f2)](_0xabc481[_0x1e307f(0x21e)]['id'],{'unitId':_0x14d3ef,'subUnitId':_0x3aedd1},{'fromCollab':!0x0});});}}}[_0x3e7570(0x227)](){const _0x4fb43d=_0x3e7570;this[_0x4fb43d(0x2a7)]['next']('presenting');const _0x3f02dc=new Map(),_0x1c5ebb=this['_commandDisposable']=new _0x1aa014['DisposableCollection']();_0x1c5ebb[_0x4fb43d(0x1fd)](_0x1aa014[_0x4fb43d(0x1f4)](()=>{const _0x4007be=_0x4fb43d;_0x3f02dc[_0x4007be(0x1de)](_0x1ca8f5=>_0x1ca8f5[_0x4007be(0x292)]()),_0x3f02dc[_0x4007be(0x228)]();})),_0x1c5ebb[_0x4fb43d(0x1fd)](this['_commandService'][_0x4fb43d(0x1d4)](_0x204cf9=>{const _0x59d79f=_0x4fb43d;var _0x2e1a00;if(_0x204cf9[_0x59d79f(0x1d6)]!==_0x1aa014[_0x59d79f(0x26f)][_0x59d79f(0x27f)]||!this[_0x59d79f(0x20e)][_0x59d79f(0x25a)](_0x204cf9['id']))return;const {id:_0x340477}=_0x204cf9;let _0x47ab3e;_0x3f02dc[_0x59d79f(0x295)](_0x340477)?_0x47ab3e=_0x3f02dc[_0x59d79f(0x1f5)](_0x340477):(_0x47ab3e=new _0x47d38e[(_0x59d79f(0x2b6))](),_0x3f02dc['set'](_0x340477,_0x47ab3e),_0x47ab3e['pipe'](_0x318159[_0x59d79f(0x2a9)]((_0x2e1a00=this[_0x59d79f(0x266)][_0x59d79f(0x1fe)](_0x569762))!=null?_0x2e1a00:_0x465765,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x59d79f(0x1e8)](_0x3c3e06=>{const _0x5e0055=_0x59d79f;this[_0x5e0055(0x269)][_0x5e0055(0x2a2)]({'eventID':_0x5d8b63[_0x5e0055(0x28e)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5e0055(0x21b)],'operations':{[_0x3c3e06['id']]:{'id':_0x3c3e06['id'],'params':JSON[_0x5e0055(0x2a1)](_0x3c3e06[_0x5e0055(0x262)])}}}},this[_0x5e0055(0x21b)]);})),_0x47ab3e[_0x59d79f(0x28d)](_0x204cf9);})),this['_liveShareService'][_0x4fb43d(0x285)](this[_0x4fb43d(0x21b)])[_0x4fb43d(0x1de)](_0x1cd9ee=>this[_0x4fb43d(0x269)][_0x4fb43d(0x2a2)]({'eventID':_0x5d8b63[_0x4fb43d(0x28e)][_0x4fb43d(0x202)],'data':{'unitID':this[_0x4fb43d(0x21b)],'operations':{[_0x1cd9ee['id']]:{'id':_0x1cd9ee['id'],'params':JSON[_0x4fb43d(0x2a1)](_0x1cd9ee['params'])}}}},this[_0x4fb43d(0x21b)]));}[_0x3e7570(0x2aa)](){const _0x2ddd17=_0x3e7570;var _0x52c312;this[_0x2ddd17(0x2a7)]['next'](_0x2ddd17(0x224)),(_0x52c312=this[_0x2ddd17(0x2b5)])==null||_0x52c312['dispose'](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x4178b9=_0x3e7570;var _0x2bd18f;(_0x2bd18f=this[_0x4178b9(0x2b5)])==null||_0x2bd18f['dispose'](),this[_0x4178b9(0x2a7)]['next']('following');}['_beIdle'](){const _0x136030=_0x3e7570;var _0x511fe0;this[_0x136030(0x2a7)][_0x136030(0x28d)]('idle'),(_0x511fe0=this[_0x136030(0x2b5)])==null||_0x511fe0[_0x136030(0x23f)](),this['_commandDisposable']=null;}[_0x3e7570(0x278)](){const _0x31304e=_0x3e7570;var _0x260394;this[_0x31304e(0x2a7)][_0x31304e(0x28d)](_0x31304e(0x29c)),(_0x260394=this[_0x31304e(0x2b5)])==null||_0x260394[_0x31304e(0x23f)]();}[_0x3e7570(0x273)](_0x5d5f11){const _0x578b6f=_0x3e7570;if([_0x578b6f(0x207),'not-following',_0x578b6f(0x24a)]['includes'](this[_0x578b6f(0x265)])||!_0x5d5f11[_0x578b6f(0x288)][_0x578b6f(0x23b)]||_0x5d5f11['data']['presenter']===this[_0x578b6f(0x269)][_0x578b6f(0x270)]())return;this[_0x578b6f(0x265)]===_0x578b6f(0x224)&&this[_0x578b6f(0x2b9)]();const _0xa251e3=_0x5d5f11[_0x578b6f(0x288)][_0x578b6f(0x24f)];Object['values'](_0xa251e3)[_0x578b6f(0x1de)](_0x4b84d5=>{const _0x4cb1d2=_0x578b6f;this[_0x4cb1d2(0x2a5)][_0x4cb1d2(0x1f2)](_0x4b84d5['id'],_0x4b84d5['params']?JSON[_0x4cb1d2(0x275)](_0x4b84d5[_0x4cb1d2(0x262)]):null,{'fromCollab':!0x0});});}[_0x3e7570(0x23a)](){const _0x351405=_0x3e7570;var _0x471959;this[_0x351405(0x2a7)][_0x351405(0x28d)](_0x351405(0x24a)),(_0x471959=this[_0x351405(0x2b5)])==null||_0x471959[_0x351405(0x23f)]();}[_0x3e7570(0x283)](){const _0x68f485=_0x3e7570;this[_0x68f485(0x2a7)][_0x68f485(0x28d)](_0x68f485(0x224)),this[_0x68f485(0x29b)]();}},_0x3d4e36[_0x3e7570(0x296)]=_0x67c9f7([_0x3e8bb8(0x2,_0x1aa014['IConfigService']),_0x3e8bb8(0x3,_0x1aa014[_0x3e7570(0x24d)](_0x1e373a)),_0x3e8bb8(0x4,_0x1aa014[_0x3e7570(0x298)])],_0x3d4e36[_0x3e7570(0x296)]);function _0x5b7145(){const _0x7e88b8=_0x3e7570,_0x39efbd=_0x54460b[_0x7e88b8(0x205)](_0x3d4e36[_0x7e88b8(0x216)]),_0x5aec69=_0x54460b['useDependency'](_0x1aa014[_0x7e88b8(0x293)]),_0x317ccc=_0x54460b[_0x7e88b8(0x243)](()=>_0x5aec69[_0x7e88b8(0x25f)](_0x1aa014[_0x7e88b8(0x277)][_0x7e88b8(0x287)]),void 0x0,!0x1,[]),[_0x320179,_0x1c01d4]=_0x132881[_0x7e88b8(0x1f8)](null),[_0x55b7f9,_0x1287ad]=_0x132881[_0x7e88b8(0x1f8)](_0x50cd7f[_0x7e88b8(0x26d)]),_0x1484e0=_0x132881['useRef'](null);return _0x132881[_0x7e88b8(0x2b3)](()=>(_0x317ccc&&_0x39efbd[_0x7e88b8(0x256)](_0x317ccc[_0x7e88b8(0x232)]())[_0x7e88b8(0x1e7)](_0x50198c=>{const _0x2894fb=_0x7e88b8;_0x1c01d4(_0x50198c),_0x1484e0[_0x2894fb(0x28f)]=_0x50198c[_0x2894fb(0x260)][_0x2894fb(0x1e8)](_0x48126a=>{_0x1287ad(_0x48126a);});}),()=>{const _0x1cb05c=_0x7e88b8;var _0x5b4899;(_0x5b4899=_0x1484e0[_0x1cb05c(0x28f)])==null||_0x5b4899[_0x1cb05c(0x241)](),_0x1484e0[_0x1cb05c(0x28f)]=null;}),[_0x317ccc,_0x39efbd]),_0x320179?_0x571fa4[_0x7e88b8(0x1e3)](_0x3e1546[_0x7e88b8(0x20b)],{'align':_0x7e88b8(0x223),'disabled':_0x55b7f9===_0x50cd7f['OFFLINE'],'className':_0x7e88b8(0x1d5),'overlay':_0x571fa4[_0x7e88b8(0x1e3)](_0xd3d223,{'status':_0x55b7f9,'coordinator':_0x320179}),'children':_0x571fa4[_0x7e88b8(0x1e3)](_0x7e88b8(0x28a),{'className':_0x3e1546[_0x7e88b8(0x2bb)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x55b7f9===_0x50cd7f['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x55b7f9!==_0x50cd7f[_0x7e88b8(0x1f9)]}),'type':'button','children':_0x571fa4[_0x7e88b8(0x1e3)](_0x3bf756,{'className':_0x7e88b8(0x26e)})})}):null;}function _0xd3d223(_0x1dca6a){const _0xacec4d=_0x3e7570,{status:_0x10365a,coordinator:_0x162041}=_0x1dca6a;switch(_0x10365a){case _0x50cd7f['IDLE']:return _0x571fa4[_0xacec4d(0x1e3)](_0x56144d,{'coordinator':_0x162041});case _0x50cd7f[_0xacec4d(0x1ed)]:return _0x571fa4['jsx'](_0x23f26f,{'coordinator':_0x162041});case _0x50cd7f[_0xacec4d(0x242)]:return _0x571fa4[_0xacec4d(0x1e3)](_0x537317,{'coordinator':_0x162041});case _0x50cd7f[_0xacec4d(0x1f9)]:return _0x571fa4[_0xacec4d(0x1e3)](_0x17ba12,{});case _0x50cd7f[_0xacec4d(0x274)]:return _0x571fa4[_0xacec4d(0x1e3)](_0x53a721,{'coordinator':_0x162041});default:return null;}}function _0x56144d(_0x2ab1bb){const _0x85f57=_0x3e7570,{coordinator:_0x2a72f8}=_0x2ab1bb;return _0x571fa4[_0x85f57(0x201)](_0x571fa4[_0x85f57(0x1e2)],{'children':[_0x571fa4[_0x85f57(0x1e3)](_0x85f57(0x22f),{'className':_0x85f57(0x1f7),'children':_0x85f57(0x25e)}),_0x571fa4[_0x85f57(0x1e3)](_0x3e1546['Button'],{'onClick':()=>_0x2a72f8[_0x85f57(0x225)](),'children':_0x85f57(0x28c)})]});}function _0x23f26f(_0x3d0cbe){const _0x41859c=_0x3e7570,{coordinator:_0x49cc48}=_0x3d0cbe;return _0x571fa4[_0x41859c(0x201)](_0x571fa4[_0x41859c(0x1e2)],{'children':[_0x571fa4[_0x41859c(0x1e3)](_0x41859c(0x22f),{'className':_0x41859c(0x1f7),'children':_0x41859c(0x29e)}),_0x571fa4[_0x41859c(0x1e3)](_0x3e1546[_0x41859c(0x29a)],{'onClick':()=>_0x49cc48[_0x41859c(0x1d7)](),'children':_0x41859c(0x23d)})]});}function _0x537317(_0x2ebc19){const _0x4c9d38=_0x3e7570,{coordinator:_0x5340b7}=_0x2ebc19;return _0x571fa4['jsxs'](_0x571fa4[_0x4c9d38(0x1e2)],{'children':[_0x571fa4[_0x4c9d38(0x1e3)](_0x4c9d38(0x22f),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x571fa4['jsx'](_0x3e1546[_0x4c9d38(0x29a)],{'variant':_0x4c9d38(0x249),'onClick':()=>_0x5340b7[_0x4c9d38(0x1f3)](),'children':'Start\x20following'})]});}function _0x53a721(_0x3c90a4){const _0x264532=_0x3e7570,{coordinator:_0x57fa1b}=_0x3c90a4;return _0x571fa4[_0x264532(0x201)](_0x571fa4['Fragment'],{'children':[_0x571fa4['jsx']('div',{'className':_0x264532(0x1f7),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x571fa4[_0x264532(0x1e3)](_0x3e1546[_0x264532(0x29a)],{'variant':_0x264532(0x1ff),'onClick':()=>_0x57fa1b['stopPresenting'](),'children':_0x264532(0x1da)})]});}function _0x17ba12(){const _0x42a82e=_0x3e7570;return _0x571fa4['jsx'](_0x571fa4[_0x42a82e(0x1e2)],{'children':_0x42a82e(0x20a)});}var _0x4067f1=Object[_0x3e7570(0x1e9)],_0x15a893=(_0x30e014,_0x19350f,_0x289f3a,_0x4c956c)=>{const _0x4dcffa=_0x3e7570;for(var _0x18b30d=_0x4c956c>0x1?void 0x0:_0x4c956c?_0x4067f1(_0x19350f,_0x289f3a):_0x19350f,_0x30dd14=_0x30e014[_0x4dcffa(0x21f)]-0x1,_0xc31a8d;_0x30dd14>=0x0;_0x30dd14--)(_0xc31a8d=_0x30e014[_0x30dd14])&&(_0x18b30d=_0xc31a8d(_0x18b30d)||_0x18b30d);return _0x18b30d;},_0x2e27da=(_0x1e4d81,_0x3e58d3)=>(_0x47fc76,_0x330617)=>_0x3e58d3(_0x47fc76,_0x330617,_0x1e4d81);_0x3d4e36['DesktopLiveShareController']=class extends _0x1aa014[_0x3e7570(0x251)]{constructor(_0x4a25af,_0x1d041f){const _0x39805c=_0x3e7570;super(),this[_0x39805c(0x267)]=_0x4a25af,this[_0x39805c(0x29d)]=_0x1d041f,this[_0x39805c(0x24c)]();}[_0x3e7570(0x24c)](){const _0x4ca42c=_0x3e7570;this[_0x4ca42c(0x27c)](this['_uiPartsService'][_0x4ca42c(0x258)](_0x54460b[_0x4ca42c(0x294)][_0x4ca42c(0x2ae)],()=>_0x54460b[_0x4ca42c(0x20f)](_0x5b7145,this[_0x4ca42c(0x267)])));}},_0x3d4e36['DesktopLiveShareController']=_0x15a893([_0x2e27da(0x0,_0x1aa014['Inject'](_0x1aa014[_0x3e7570(0x25c)])),_0x2e27da(0x1,_0x54460b[_0x3e7570(0x2b7)])],_0x3d4e36[_0x3e7570(0x204)]);const _0x5d60ed='live-share.config',_0x9ae3da={};var _0x220a99=Object[_0x3e7570(0x1e9)],_0x2d9f64=(_0xbde750,_0x1b9584,_0x30d1ab,_0x57c9a0)=>{for(var _0x224690=_0x57c9a0>0x1?void 0x0:_0x57c9a0?_0x220a99(_0x1b9584,_0x30d1ab):_0x1b9584,_0xf746b8=_0xbde750['length']-0x1,_0x597960;_0xf746b8>=0x0;_0xf746b8--)(_0x597960=_0xbde750[_0xf746b8])&&(_0x224690=_0x597960(_0x224690)||_0x224690);return _0x224690;},_0x312648=(_0x5262b2,_0x4aa4b2)=>(_0x3678a4,_0x3f3e4e)=>_0x4aa4b2(_0x3678a4,_0x3f3e4e,_0x5262b2);let _0x2c75cb=class extends _0x1aa014[_0x3e7570(0x251)]{constructor(_0x328e07){const _0x555693=_0x3e7570;super(),this['_liveShareService']=_0x328e07,this[_0x555693(0x2af)]();}[_0x3e7570(0x2af)](){const _0x41c396=_0x3e7570;[_0x4ded26['SetZoomRatioOperation']['id'],_0x4ded26[_0x41c396(0x27a)]['id'],_0xabc481[_0x41c396(0x21e)]['id']][_0x41c396(0x1de)](_0x2ce5f2=>{const _0x5c3735=_0x41c396;this[_0x5c3735(0x27c)](this['_liveShareService'][_0x5c3735(0x1d8)](_0x2ce5f2));});}};_0x2c75cb=_0x2d9f64([_0x312648(0x0,_0x1aa014[_0x3e7570(0x24d)](_0x1e373a))],_0x2c75cb);var _0x5a623c=Object[_0x3e7570(0x206)],_0x5b88cf=Object['getOwnPropertyDescriptor'],_0x13d552=(_0x12ef54,_0x56a3b8,_0x291529)=>_0x56a3b8 in _0x12ef54?_0x5a623c(_0x12ef54,_0x56a3b8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x291529}):_0x12ef54[_0x56a3b8]=_0x291529,_0x571c3d=(_0x7545d,_0x2a1e41,_0x36e382,_0x1abb49)=>{const _0x29c846=_0x3e7570;for(var _0xa94fa9=_0x1abb49>0x1?void 0x0:_0x1abb49?_0x5b88cf(_0x2a1e41,_0x36e382):_0x2a1e41,_0x1f6c01=_0x7545d[_0x29c846(0x21f)]-0x1,_0x2cc8bc;_0x1f6c01>=0x0;_0x1f6c01--)(_0x2cc8bc=_0x7545d[_0x1f6c01])&&(_0xa94fa9=_0x2cc8bc(_0xa94fa9)||_0xa94fa9);return _0xa94fa9;},_0x2ca102=(_0x20a44c,_0x2d7207)=>(_0x2db06e,_0x3ac3e9)=>_0x2d7207(_0x2db06e,_0x3ac3e9,_0x20a44c),_0x626601=(_0xadbc65,_0x4b6f32,_0x141858)=>_0x13d552(_0xadbc65,typeof _0x4b6f32!=_0x3e7570(0x247)?_0x4b6f32+'':_0x4b6f32,_0x141858);const _0x74003a=_0x3e7570(0x211);_0x3d4e36['UniverLiveSharePlugin']=class extends _0x1aa014['Plugin']{constructor(_0x107a3f=_0x9ae3da,_0xfd535a,_0x500f96){const _0x4dec3f=_0x3e7570;super(),this[_0x4dec3f(0x1d3)]=_0x107a3f,this['_injector']=_0xfd535a,this[_0x4dec3f(0x266)]=_0x500f96;const {..._0x4a16df}=_0x1aa014[_0x4dec3f(0x2b1)]({},_0x9ae3da,this[_0x4dec3f(0x1d3)]);this[_0x4dec3f(0x266)][_0x4dec3f(0x282)](_0x5d60ed,_0x4a16df);}['onStarting'](){const _0x47d546=_0x3e7570;_0x1aa014['registerDependencies'](this[_0x47d546(0x267)],_0x1aa014['mergeOverrideWithDependencies']([[_0x1e373a],[_0x3d4e36[_0x47d546(0x216)]],[_0x2c75cb],[_0x3d4e36[_0x47d546(0x204)]]],this[_0x47d546(0x1d3)][_0x47d546(0x214)])),_0x1aa014['touchDependencies'](this['_injector'],[[_0x2c75cb]]);}[_0x3e7570(0x1dd)](){const _0x18840c=_0x3e7570;_0x1aa014['touchDependencies'](this[_0x18840c(0x267)],[[_0x3d4e36[_0x18840c(0x204)]]]);}},_0x626601(_0x3d4e36[_0x3e7570(0x286)],_0x3e7570(0x1d6),_0x1aa014['UniverInstanceType'][_0x3e7570(0x240)]),_0x626601(_0x3d4e36[_0x3e7570(0x286)],_0x3e7570(0x1f1),_0x74003a),_0x3d4e36[_0x3e7570(0x286)]=_0x571c3d([_0x1aa014['DependentOn'](_0x46834b[_0x3e7570(0x24e)]),_0x2ca102(0x1,_0x1aa014[_0x3e7570(0x24d)](_0x1aa014[_0x3e7570(0x25c)])),_0x2ca102(0x2,_0x1aa014[_0x3e7570(0x1fb)])],_0x3d4e36['UniverLiveSharePlugin']),_0x3d4e36['LiveShare']=_0x5b7145,_0x3d4e36[_0x3e7570(0x239)]=_0x1e373a,_0x3d4e36['LiveShareStatus']=_0x50cd7f,Object[_0x3e7570(0x206)](_0x3d4e36,Symbol['toStringTag'],{'value':'Module'});}));function _0x7222(){const _0x14c1c9=['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','type','stopFollowing','registerSharedOperation','trim','Stop\x20presenting','5982620FGbvue','exports','onRendered','forEach','pipe','LIVESHARE_NEW_HOST','@univerjs-pro/collaboration','Fragment','jsx','LIVESHARE_FETCH_OPERATIONS','evenodd','_startLiveShareCoordinator','then','subscribe','getOwnPropertyDescriptor','_entities','_univerInstanceService','includes','FOLLOWING','delete','5498FBPokb','UniverSheets','pluginName','executeCommand','startFollowing','toDisposable','get','displayName','univer-mb-3\x20univer-w-full\x20univer-text-sm','useState','OFFLINE','rxjs','IConfigService','2810850MsmCrP','add','getConfig','default','_sharedOperations','jsxs','LIVESHARE_OPERATION','children','DesktopLiveShareController','useDependency','defineProperty','presenting','UniverSheetsUi','_handleTerminate','You\x27are\x20offline.','Dropdown','string','getTypeOfUnitAdded$','_liveShareService','connectInjector','react','UNIVER_LIVE_SHARE_PLUGIN','assign','following','override','entries','LiveShareController','defIds','substring','_beIdle','SAME_OPERATION_SHARE_INTERVAL','_unitID','2944072JuuJer','1em','SetWorksheetActiveOperation','length','requireSession','reverse','LiveShareIcon','end','idle','tryStartPresenting','univerjs-icon\x20univerjs-icon-','_startPresenting','clear','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','_handleNewHost','_collabSessionService','ONLINE','_presenter','createInstance','div','dispose$','stopPresenting','getUnitId','UniverIcon','SessionStatus','693768EXpUWp','registerInitialStateReporter','svg','_reporters','LiveShareService','_handleOffline','presenter','getLiveShareCoordinatorSync','Stop\x20following','xlink:href','dispose','UNIVER_UNKNOWN','unsubscribe','NOT_FOLLOWING','useObservable','0\x200\x2017\x2017','use','UniverProCollaborationClient','symbol','UniverCore','text','offline','path','_mountLiveShare','Inject','UniverCollaborationClientPlugin','operations','idSuffix','Disposable','amd','@univerjs/design','random','takeUntil','getLiveShareCoordinator','asObservable','registerComponent','toString','shouldShareOperation','tag','Injector','fill','Present\x20this\x20document','getCurrentTypeOfUnit$','status$','@univerjs-pro/collaboration-client','params','init','mask','_status','_configService','_injector','memberID','_collabSession','BehaviorSubject','mutations','colorChannel1','IDLE','univer-size-4','CommandType','getMemberID','254892QOnMpV','sessionStatus$','_handleOperation','PRESENTING','parse','_handleNewChangeSets','UniverInstanceType','_stopFollowing','InsertSheetMutation','SetScrollOperation','RxDisposable','disposeWithMe','attrs','http://www.w3.org/2000/svg','OPERATION','map','defs','setConfig','_handleOnline','react/jsx-runtime','getInitialStates','UniverLiveSharePlugin','UNIVER_SHEET','data','function','button','forwardRef','Start','next','CollaborationEvent','current','UniverUi','LIVESHARE_TERMINATE','complete','IUniverInstanceService','BuiltInUIPart','has','LiveShareCoordinator','React','ICommandService','@univerjs/core','Button','_fetchOperations','not-following','_uiPartsService','You\x27re\x20following\x20the\x20presenter','505918MTqZmZ','UniverProLiveShare','stringify','send','createElement','url(#$1','_commandService','rxjs/operators','_status$','useRef','throttleTime','_stopPresenting','NEW_CHANGESETS','LIVESHARE_REQUEST_HOST','UniverProCollaboration','HEADER_MENU','_init','CollaborationSessionService','merge','849TdbXjp','useEffect','currentColor','_commandDisposable','Subject','IUIPartsService','parseProtocolChangeset','_startFollowing','replace','clsx','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','object','_config','onCommandExecuted'];_0x7222=function(){return _0x14c1c9;};return _0x7222();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.2-nightly.202511290732",
|
|
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.
|
|
61
|
-
"@univerjs-pro/collaboration-client": "0.12.
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/sheets-ui": "0.12.
|
|
67
|
-
"@univerjs/ui": "0.12.
|
|
60
|
+
"@univerjs-pro/collaboration": "0.12.2-nightly.202511290732",
|
|
61
|
+
"@univerjs-pro/collaboration-client": "0.12.2-nightly.202511290732",
|
|
62
|
+
"@univerjs/design": "0.12.2-nightly.202511290732",
|
|
63
|
+
"@univerjs/core": "0.12.2-nightly.202511290732",
|
|
64
|
+
"@univerjs/engine-render": "0.12.2-nightly.202511290732",
|
|
65
|
+
"@univerjs/sheets": "0.12.2-nightly.202511290732",
|
|
66
|
+
"@univerjs/sheets-ui": "0.12.2-nightly.202511290732",
|
|
67
|
+
"@univerjs/ui": "0.12.2-nightly.202511290732"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|
|
@@ -72,9 +72,9 @@
|
|
|
72
72
|
"rxjs": "7.8.2",
|
|
73
73
|
"tailwindcss": "^3.4.17",
|
|
74
74
|
"typescript": "^5.9.3",
|
|
75
|
-
"vite": "^7.2.
|
|
76
|
-
"vitest": "^
|
|
77
|
-
"@univerjs-infra/shared": "0.12.
|
|
75
|
+
"vite": "^7.2.4",
|
|
76
|
+
"vitest": "^4.0.14",
|
|
77
|
+
"@univerjs-infra/shared": "0.12.2",
|
|
78
78
|
"@univerjs/protocol": "0.1.47"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|