@univerjs-pro/live-share 0.12.2 → 0.12.3

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 CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x206163=_0x17f9;(function(_0x239d34,_0x5fb800){const _0x288322=_0x17f9,_0x26e7b1=_0x239d34();while(!![]){try{const _0x2300a4=-parseInt(_0x288322(0x98))/0x1+parseInt(_0x288322(0x8e))/0x2*(parseInt(_0x288322(0x9b))/0x3)+parseInt(_0x288322(0xad))/0x4*(-parseInt(_0x288322(0x9c))/0x5)+-parseInt(_0x288322(0xab))/0x6*(parseInt(_0x288322(0x9f))/0x7)+parseInt(_0x288322(0x92))/0x8+parseInt(_0x288322(0x94))/0x9+parseInt(_0x288322(0xa6))/0xa;if(_0x2300a4===_0x5fb800)break;else _0x26e7b1['push'](_0x26e7b1['shift']());}catch(_0x20c9b6){_0x26e7b1['push'](_0x26e7b1['shift']());}}}(_0x3615,0xea9a2));function _0x17f9(_0x10d357,_0x14ca3b){const _0x361567=_0x3615();return _0x17f9=function(_0x17f934,_0x15f5ce){_0x17f934=_0x17f934-0x8b;let _0x3348c8=_0x361567[_0x17f934];return _0x3348c8;},_0x17f9(_0x10d357,_0x14ca3b);}const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');class w extends d['FRange']{[_0x206163(0x8c)](_0x35ab73,_0x524fe4,_0x299fd3,_0x5428b1,_0x5887a9){const _0x5a008e=_0x206163,_0x56f872=_0x35ab73[_0x5a008e(0x96)](n[_0x5a008e(0xa9)]),_0x8181c2=_0x35ab73[_0x5a008e(0x96)](g[_0x5a008e(0xac)]),_0x2eeced=_0x524fe4[_0x5a008e(0x9a)](),_0x53043c=_0x524fe4['getActiveSheet'](),_0x1bb8e3=_0x56f872[_0x5a008e(0xa8)](_0x2eeced);(_0x1bb8e3==null?void 0x0:_0x1bb8e3[_0x5a008e(0xa0)]())!==n[_0x5a008e(0x99)][_0x5a008e(0xa7)]||(_0x299fd3[_0x5a008e(0xb2)]()!==_0x53043c[_0x5a008e(0xb2)]()&&this[_0x5a008e(0x9d)]['executeCommand'](u[_0x5a008e(0x8d)]['id'],{'unitId':_0x2eeced,'subUnitId':_0x299fd3[_0x5a008e(0xb2)]()}),!_0x8181c2[_0x5a008e(0x8f)](_0x2eeced))||_0x5887a9['syncExecuteCommand'](f['SetScrollOperation']['id'],{'unitId':_0x524fe4['getUnitId'](),'sheetId':_0x299fd3[_0x5a008e(0xb2)](),'sheetViewStartRow':_0x5428b1[_0x5a008e(0x8b)],'sheetViewStartColumn':_0x5428b1['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x206163(0x9e)][_0x206163(0x91)](w);class C extends a[_0x206163(0xae)]{['getLiveShareStatus'](){const _0x343a69=_0x206163;var _0x3bbc9b,_0x7fe582;const _0x52028f=this[_0x343a69(0xaa)]['get'](n[_0x343a69(0xa9)]),_0x18c00e=(_0x3bbc9b=this[_0x343a69(0xa2)]())==null?void 0x0:_0x3bbc9b[_0x343a69(0xaf)]();if(!_0x18c00e)throw new Error('No\x20active\x20workbook\x20found.');const _0x17dc9a=_0x52028f[_0x343a69(0xa8)](_0x18c00e);return(_0x7fe582=_0x17dc9a==null?void 0x0:_0x17dc9a['getStatus']())!=null?_0x7fe582:n['LiveShareStatus'][_0x343a69(0xb1)];}['startFollowing'](){const _0x314834=_0x206163;var _0x40353b;const _0x3eded0=this[_0x314834(0xaa)]['get'](n[_0x314834(0xa9)]),_0xfe079d=(_0x40353b=this[_0x314834(0xa2)]())==null?void 0x0:_0x40353b[_0x314834(0xaf)]();if(!_0xfe079d)throw new Error('No\x20active\x20workbook\x20found.');const _0x4272fb=_0x3eded0[_0x314834(0xa8)](_0xfe079d);if(!_0x4272fb)throw new Error(_0x314834(0xa1));_0x4272fb[_0x314834(0xa3)]();}[_0x206163(0x95)](){const _0x4e83d6=_0x206163;var _0x56ef6e;const _0x5fff16=this['_injector'][_0x4e83d6(0x96)](n[_0x4e83d6(0xa9)]),_0x2d4ab7=(_0x56ef6e=this[_0x4e83d6(0xa2)]())==null?void 0x0:_0x56ef6e[_0x4e83d6(0xaf)]();if(!_0x2d4ab7)throw new Error(_0x4e83d6(0x93));const _0x7db04a=_0x5fff16[_0x4e83d6(0xa8)](_0x2d4ab7);if(!_0x7db04a)throw new Error(_0x4e83d6(0xa1));_0x7db04a[_0x4e83d6(0x95)]();}[_0x206163(0xb0)](){const _0x3d344d=_0x206163;var _0x25ce63;const _0x104cd7=this[_0x3d344d(0xaa)]['get'](n[_0x3d344d(0xa9)]),_0x3cd9b3=(_0x25ce63=this[_0x3d344d(0xa2)]())==null?void 0x0:_0x25ce63[_0x3d344d(0xaf)]();if(!_0x3cd9b3)throw new Error(_0x3d344d(0x93));const _0x3e4434=_0x104cd7[_0x3d344d(0xa8)](_0x3cd9b3);if(!_0x3e4434)throw new Error(_0x3d344d(0xa1));_0x3e4434[_0x3d344d(0xa4)]();}[_0x206163(0x97)](){const _0x402451=_0x206163;var _0x4c60c2;const _0x343b51=this[_0x402451(0xaa)][_0x402451(0x96)](n[_0x402451(0xa9)]),_0xf5d6dc=(_0x4c60c2=this[_0x402451(0xa2)]())==null?void 0x0:_0x4c60c2['getId']();if(!_0xf5d6dc)throw new Error(_0x402451(0x93));const _0x4e63eb=_0x343b51[_0x402451(0xa8)](_0xf5d6dc);if(!_0x4e63eb)throw new Error(_0x402451(0xa1));_0x4e63eb[_0x402451(0x97)]();}}a[_0x206163(0xae)]['extend'](C);class L extends a[_0x206163(0xa5)]{get[_0x206163(0x90)](){const _0x1def81=_0x206163;return n[_0x1def81(0x99)];}}a[_0x206163(0xa5)][_0x206163(0x91)](L);function _0x3615(){const _0x343477=['stopFollowing','get','stopPresenting','699660fGQcOj','LiveShareStatus','getUnitId','3jGmORq','4856415dRxKxm','_commandService','FRange','658MHoOnZ','getStatus','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getActiveWorkbook','startFollowing','tryStartPresenting','FEnum','25928410CdOWPZ','PRESENTING','getLiveShareCoordinatorSync','LiveShareController','_injector','65982yhrbOL','IRenderManagerService','4QwOyqp','FUniver','getId','startPresenting','IDLE','getSheetId','startRow','_initialize','SetWorksheetActiveOperation','242510kiLyYO','getRenderById','LiveShareStatusEnum','extend','5300176lYYtxV','No\x20active\x20workbook\x20found.','2600757rgDtfx'];_0x3615=function(){return _0x343477;};return _0x3615();}
1
+ 'use strict';const _0x47354e=_0x8875;(function(_0x178ac8,_0x1d141a){const _0xb9bbdc=_0x8875,_0x3fcf83=_0x178ac8();while(!![]){try{const _0x29af32=-parseInt(_0xb9bbdc(0x117))/0x1+-parseInt(_0xb9bbdc(0x107))/0x2*(parseInt(_0xb9bbdc(0x108))/0x3)+-parseInt(_0xb9bbdc(0xfa))/0x4+parseInt(_0xb9bbdc(0x10b))/0x5*(parseInt(_0xb9bbdc(0x10e))/0x6)+parseInt(_0xb9bbdc(0xff))/0x7+-parseInt(_0xb9bbdc(0xfe))/0x8*(parseInt(_0xb9bbdc(0xf4))/0x9)+parseInt(_0xb9bbdc(0x11d))/0xa;if(_0x29af32===_0x1d141a)break;else _0x3fcf83['push'](_0x3fcf83['shift']());}catch(_0x17b3eb){_0x3fcf83['push'](_0x3fcf83['shift']());}}}(_0xf733,0xc34d5));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 _0x8875(_0x150136,_0x2dff40){const _0xf73324=_0xf733();return _0x8875=function(_0x8875e3,_0x21429f){_0x8875e3=_0x8875e3-0xf4;let _0x3c6a26=_0xf73324[_0x8875e3];return _0x3c6a26;},_0x8875(_0x150136,_0x2dff40);}function _0xf733(){const _0x4bfe31=['2220085XYRjlT','getLiveShareCoordinatorSync','FRange','FEnum','getSheetId','_injector','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getStatus','4LGxEOw','103446qKOSxn','_commandService','PRESENTING','235jLkzGc','getId','IRenderManagerService','19872sXkHbR','startRow','LiveShareController','No\x20active\x20workbook\x20found.','FUniver','syncExecuteCommand','get','IDLE','LiveShareStatusEnum','806100oCXzIu','getRenderById','_initialize','SetWorksheetActiveOperation','SetScrollOperation','getActiveWorkbook','28943780lkpxOG','getActiveSheet','extend','4320LdfSLy','getUnitId','executeCommand','stopFollowing','LiveShareStatus','startFollowing','597824FCzUqU','startColumn','startPresenting','stopPresenting','25712eKkbAv'];_0xf733=function(){return _0x4bfe31;};return _0xf733();}class w extends d[_0x47354e(0x101)]{[_0x47354e(0x119)](_0x51507e,_0x275786,_0x51107a,_0xb3c59f,_0x32e93c){const _0x28e44a=_0x47354e,_0x7d8517=_0x51507e[_0x28e44a(0x114)](n[_0x28e44a(0x110)]),_0x4cc330=_0x51507e[_0x28e44a(0x114)](g[_0x28e44a(0x10d)]),_0x17a2fb=_0x275786[_0x28e44a(0xf5)](),_0x35062a=_0x275786[_0x28e44a(0x11e)](),_0x1ed17e=_0x7d8517['getLiveShareCoordinatorSync'](_0x17a2fb);(_0x1ed17e==null?void 0x0:_0x1ed17e['getStatus']())!==n[_0x28e44a(0xf8)][_0x28e44a(0x10a)]||(_0x51107a[_0x28e44a(0x103)]()!==_0x35062a[_0x28e44a(0x103)]()&&this[_0x28e44a(0x109)][_0x28e44a(0xf6)](u[_0x28e44a(0x11a)]['id'],{'unitId':_0x17a2fb,'subUnitId':_0x51107a[_0x28e44a(0x103)]()}),!_0x4cc330[_0x28e44a(0x118)](_0x17a2fb))||_0x32e93c[_0x28e44a(0x113)](f[_0x28e44a(0x11b)]['id'],{'unitId':_0x275786['getUnitId'](),'sheetId':_0x51107a[_0x28e44a(0x103)](),'sheetViewStartRow':_0xb3c59f[_0x28e44a(0x10f)],'sheetViewStartColumn':_0xb3c59f[_0x28e44a(0xfb)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x47354e(0x101)][_0x47354e(0x11f)](w);class C extends a[_0x47354e(0x112)]{['getLiveShareStatus'](){const _0x263bbb=_0x47354e;var _0x3f02b4,_0x39a637;const _0x53ce99=this['_injector'][_0x263bbb(0x114)](n[_0x263bbb(0x110)]),_0xea4120=(_0x3f02b4=this[_0x263bbb(0x11c)]())==null?void 0x0:_0x3f02b4['getId']();if(!_0xea4120)throw new Error(_0x263bbb(0x111));const _0x11f1d5=_0x53ce99[_0x263bbb(0x100)](_0xea4120);return(_0x39a637=_0x11f1d5==null?void 0x0:_0x11f1d5[_0x263bbb(0x106)]())!=null?_0x39a637:n['LiveShareStatus'][_0x263bbb(0x115)];}[_0x47354e(0xf9)](){const _0x29e6c=_0x47354e;var _0x4e6896;const _0x4ff013=this['_injector']['get'](n['LiveShareController']),_0x4c23da=(_0x4e6896=this['getActiveWorkbook']())==null?void 0x0:_0x4e6896[_0x29e6c(0x10c)]();if(!_0x4c23da)throw new Error('No\x20active\x20workbook\x20found.');const _0x5ec4cf=_0x4ff013[_0x29e6c(0x100)](_0x4c23da);if(!_0x5ec4cf)throw new Error(_0x29e6c(0x105));_0x5ec4cf[_0x29e6c(0xf9)]();}[_0x47354e(0xf7)](){const _0x35780c=_0x47354e;var _0xcc67a7;const _0x3eed94=this['_injector'][_0x35780c(0x114)](n['LiveShareController']),_0x43746b=(_0xcc67a7=this[_0x35780c(0x11c)]())==null?void 0x0:_0xcc67a7[_0x35780c(0x10c)]();if(!_0x43746b)throw new Error(_0x35780c(0x111));const _0x298df7=_0x3eed94[_0x35780c(0x100)](_0x43746b);if(!_0x298df7)throw new Error(_0x35780c(0x105));_0x298df7['stopFollowing']();}[_0x47354e(0xfc)](){const _0x2dfdb5=_0x47354e;var _0x369090;const _0x218ea4=this[_0x2dfdb5(0x104)][_0x2dfdb5(0x114)](n[_0x2dfdb5(0x110)]),_0x1fbcc6=(_0x369090=this['getActiveWorkbook']())==null?void 0x0:_0x369090[_0x2dfdb5(0x10c)]();if(!_0x1fbcc6)throw new Error(_0x2dfdb5(0x111));const _0x17ad4a=_0x218ea4[_0x2dfdb5(0x100)](_0x1fbcc6);if(!_0x17ad4a)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x17ad4a['tryStartPresenting']();}[_0x47354e(0xfd)](){const _0x1f9c56=_0x47354e;var _0x190379;const _0x24dd64=this[_0x1f9c56(0x104)][_0x1f9c56(0x114)](n['LiveShareController']),_0x17bdbb=(_0x190379=this[_0x1f9c56(0x11c)]())==null?void 0x0:_0x190379[_0x1f9c56(0x10c)]();if(!_0x17bdbb)throw new Error('No\x20active\x20workbook\x20found.');const _0x5a714d=_0x24dd64[_0x1f9c56(0x100)](_0x17bdbb);if(!_0x5a714d)throw new Error(_0x1f9c56(0x105));_0x5a714d['stopPresenting']();}}a['FUniver'][_0x47354e(0x11f)](C);class L extends a[_0x47354e(0x102)]{get[_0x47354e(0x116)](){const _0x44046c=_0x47354e;return n[_0x44046c(0xf8)];}}a['FEnum'][_0x47354e(0x11f)](L);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x19c1ed=_0x2ce0;(function(_0x10082b,_0x577159){const _0x48a7c1=_0x2ce0,_0xd61210=_0x10082b();while(!![]){try{const _0x25f4cb=-parseInt(_0x48a7c1(0x1b1))/0x1+parseInt(_0x48a7c1(0x139))/0x2*(-parseInt(_0x48a7c1(0x13d))/0x3)+parseInt(_0x48a7c1(0x128))/0x4+-parseInt(_0x48a7c1(0x170))/0x5+-parseInt(_0x48a7c1(0x132))/0x6+-parseInt(_0x48a7c1(0xfb))/0x7+-parseInt(_0x48a7c1(0x138))/0x8*(-parseInt(_0x48a7c1(0xe7))/0x9);if(_0x25f4cb===_0x577159)break;else _0xd61210['push'](_0xd61210['shift']());}catch(_0x559769){_0xd61210['push'](_0xd61210['shift']());}}}(_0xe665,0xb9821));var T=Object['defineProperty'],U=(_0x4e3101,_0x4aa736,_0x283580)=>_0x4aa736 in _0x4e3101?T(_0x4e3101,_0x4aa736,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x283580}):_0x4e3101[_0x4aa736]=_0x283580,_=(_0x2e598,_0x58f20d,_0xbd3373)=>U(_0x2e598,typeof _0x58f20d!='symbol'?_0x58f20d+'':_0x58f20d,_0xbd3373);function _0xe665(){const _0x1d1b79=['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','operations','next','currentColor','useObservable','_status','status$','sessionStatus$','IUIPartsService','SetZoomRatioOperation','_handleTerminate','set','LiveShareCoordinator','BuiltInUIPart','getCurrentTypeOfUnit$','subscribe','PRESENTING','1205332PsxHpi','getTypeOfUnitDisposed$','get','touchDependencies','_collabSessionService','Start\x20following','_startFollowing','createElement','_reporters','OPERATION','4396872anwzRA','_configService','toString','dispose','presenting','_handleOperation','5336QjeTsz','219618ZypTBI','symbol','NOT_FOLLOWING','registerComponent','12eymAEz','stopPresenting','entries','Subject','not-following','path','_univerInstanceService','IUniverInstanceService','Disposable','LiveShareStatus','delete','current','mergeOverrideWithDependencies','HEADER_MENU','LIVESHARE_TERMINATE','LIVESHARE_NEW_HOST','DependentOn','pipe','_startPresenting','univer-size-4','http://www.w3.org/2000/svg','_handleOffline','_stopPresenting','Button','length','executeCommand','none','string','_commandService','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','clsx','getConfig','getTypeOfUnitAdded$','parseProtocolChangeset','button','getStatus','replace','trim','IDLE','add','defs','url(#$1','tryStartPresenting','_init','colorChannel1','_stopFollowing','DesktopLiveShareController','toDisposable','following','offline','SetScrollOperation','5396920OZahyH','getMemberID','useRef','mutations','stringify','params','idSuffix','createInstance','complete','includes','find','div','FOLLOWING','pluginName','toStringTag','evenodd','CollaborationEvent','asObservable','Dropdown','_mountLiveShare','live-share-icon','CollaborationSessionService','Present\x20this\x20document','getLiveShareCoordinator','_commandDisposable','then','has','onRendered','idle','jsxs','Plugin','text','_beIdle','children','svg','UNIVER_LIVE_SHARE_PLUGIN','registerSharedOperation','sheet','You\x27are\x20offline.','displayName','defIds','type','dispose$','data','mask','memberID','Injector','UniverCollaborationClientPlugin','UNIVER_UNKNOWN','SetWorksheetActiveOperation','UniverLiveSharePlugin','_collabSession','map','_startLiveShareCoordinator','setConfig','jsx','Start','getOwnPropertyDescriptor','_handleNewHost','IConfigService','univer-mb-3\x20univer-w-full\x20univer-text-sm','OFFLINE','event$','end','takeUntil','77825iYvRIT','forwardRef','SessionStatus','1em','_fetchOperations','InsertSheetMutation','Stop\x20following','getInitialStates','requireSession','UniverInstanceType','CommandType','LiveShareIcon','startFollowing','live-share.config','_config','_presenter','forEach','DisposableCollection','_unitID','55863lrUVRr','SAME_OPERATION_SHARE_INTERVAL','values','presenter','assign','override','RxDisposable','You\x27re\x20following\x20the\x20presenter','tag','Module','useDependency','_status$','unitId','random','LIVESHARE_OPERATION','from','getValue','stopFollowing','_handleNewChangeSets','disposeWithMe','9466128aPPxXL','useState','fill','LiveShareController','UNIVER_SHEET','_handleOnline','parse','getUnitId','default','clear','You\x27re\x20not\x20following\x20the\x20presenter','reverse','_uiPartsService','NEW_CHANGESETS','LIVESHARE_REQUEST_HOST','send','Inject','_injector','UniverIcon','attrs','_liveShareService','Fragment','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_sharedOperations','_entities','xlink:href','LIVESHARE_FETCH_OPERATIONS','shouldShareOperation'];_0xe665=function(){return _0x1d1b79;};return _0xe665();}Object['defineProperty'](exports,Symbol[_0x19c1ed(0x17e)],{'value':_0x19c1ed(0xf0)});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:_0x21e1bd,..._0x18c60f}){const _0x1b9d3d=_0x19c1ed,{icon:_0x1518b7,id:_0x1cdd82,className:_0x559fc0,extend:_0x2e96e9,..._0x1b551a}=_0x18c60f,_0x42d1e1=('univerjs-icon\x20univerjs-icon-'+_0x1cdd82+'\x20'+(_0x559fc0||''))[_0x1b9d3d(0x162)](),_0xb40d1c=v[_0x1b9d3d(0x172)]('_'+H());return j(_0x1518b7,''+_0x1cdd82,{'defIds':_0x1518b7[_0x1b9d3d(0x198)],'idSuffix':_0xb40d1c[_0x1b9d3d(0x148)]},{'ref':_0x21e1bd,'className':_0x42d1e1,..._0x1b551a},_0x2e96e9);}function j(_0x4c4af5,_0x2a1c47,_0x3018e8,_0x465182,_0x16ccbf){const _0x258294=_0x19c1ed;return v['createElement'](_0x4c4af5[_0x258294(0xef)],{'key':_0x2a1c47,...y(_0x4c4af5,_0x3018e8,_0x16ccbf),..._0x465182},(F(_0x4c4af5,_0x3018e8)[_0x258294(0x191)]||[])['map']((_0x3c8720,_0x594d0d)=>j(_0x3c8720,_0x2a1c47+'-'+_0x4c4af5[_0x258294(0xef)]+'-'+_0x594d0d,_0x3018e8,void 0x0,_0x16ccbf)));}function y(_0x46b8e6,_0x438a4c,_0xdb6ed9){const _0x4b9f8b=_0x19c1ed,_0x14db85={..._0x46b8e6[_0x4b9f8b(0x10e)]};_0xdb6ed9!=null&&_0xdb6ed9[_0x4b9f8b(0x169)]&&_0x14db85[_0x4b9f8b(0xfd)]===_0x4b9f8b(0x169)&&(_0x14db85[_0x4b9f8b(0xfd)]=_0xdb6ed9[_0x4b9f8b(0x169)]),_0x46b8e6[_0x4b9f8b(0xef)]===_0x4b9f8b(0x19c)&&_0x14db85['id']&&(_0x14db85['id']=_0x14db85['id']+_0x438a4c[_0x4b9f8b(0x176)]),Object[_0x4b9f8b(0x13f)](_0x14db85)[_0x4b9f8b(0xe4)](([_0x6df35f,_0xf2e27d])=>{const _0x9d8d3f=_0x4b9f8b;_0x6df35f===_0x9d8d3f(0x19c)&&typeof _0xf2e27d==_0x9d8d3f(0x158)&&(_0x14db85[_0x6df35f]=_0xf2e27d[_0x9d8d3f(0x161)](/url\(#(.*)\)/,_0x9d8d3f(0x166)+_0x438a4c[_0x9d8d3f(0x176)]+')'));});const {defIds:_0x51081c}=_0x438a4c;return!_0x51081c||_0x51081c['length']===0x0||(_0x46b8e6[_0x4b9f8b(0xef)]==='use'&&_0x14db85['xlink:href']&&(_0x14db85[_0x4b9f8b(0x114)]=_0x14db85[_0x4b9f8b(0x114)]+_0x438a4c[_0x4b9f8b(0x176)]),Object[_0x4b9f8b(0x13f)](_0x14db85)[_0x4b9f8b(0xe4)](([_0x17da11,_0x12497f])=>{const _0x2ce099=_0x4b9f8b;typeof _0x12497f==_0x2ce099(0x158)&&(_0x14db85[_0x17da11]=_0x12497f[_0x2ce099(0x161)](/url\(#(.*)\)/,_0x2ce099(0x166)+_0x438a4c['idSuffix']+')'));})),_0x14db85;}function F(_0x2371d4,_0xe95394){const _0x37d473=_0x19c1ed;var _0x99d3a;const {defIds:_0x1a64ec}=_0xe95394;return!_0x1a64ec||_0x1a64ec[_0x37d473(0x155)]===0x0?_0x2371d4:_0x2371d4[_0x37d473(0xef)]===_0x37d473(0x165)&&((_0x99d3a=_0x2371d4[_0x37d473(0x191)])!=null&&_0x99d3a[_0x37d473(0x155)])?{..._0x2371d4,'children':_0x2371d4[_0x37d473(0x191)]['map'](_0x1e8835=>typeof _0x1e8835['attrs']['id']==_0x37d473(0x158)&&_0x1a64ec&&_0x1a64ec[_0x37d473(0x179)](_0x1e8835[_0x37d473(0x10e)]['id'])?{..._0x1e8835,'attrs':{..._0x1e8835[_0x37d473(0x10e)],'id':_0x1e8835['attrs']['id']+_0xe95394[_0x37d473(0x176)]}}:_0x1e8835)}:_0x2371d4;}function H(){const _0x67e9c1=_0x19c1ed;return Math[_0x67e9c1(0xf4)]()[_0x67e9c1(0x134)](0x24)['substring'](0x2,0x8);}x['displayName']=_0x19c1ed(0x10d);const V={'tag':_0x19c1ed(0x192),'attrs':{'xmlns':_0x19c1ed(0x151),'fill':_0x19c1ed(0x157),'viewBox':'0\x200\x2017\x2017','width':_0x19c1ed(0x1b4),'height':_0x19c1ed(0x1b4)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x19c1ed(0x142),'attrs':{'fill':_0x19c1ed(0x11a),'d':_0x19c1ed(0x117),'fillRule':_0x19c1ed(0x17f),'clipRule':'evenodd'}}]},R=v[_0x19c1ed(0x1b2)](function(_0x8e8ffa,_0x1e02ef){const _0x169dbc=_0x19c1ed;return v[_0x169dbc(0x12f)](x,Object[_0x169dbc(0xeb)]({},_0x8e8ffa,{'id':_0x169dbc(0x184),'ref':_0x1e02ef,'icon':V}));});R[_0x19c1ed(0x197)]=_0x19c1ed(0xdf);class E extends o[_0x19c1ed(0x145)]{constructor(){const _0x4c96ba=_0x19c1ed;super(...arguments),_(this,'_sharedOperations',new Set()),_(this,_0x4c96ba(0x130),new Set());}[_0x19c1ed(0x194)](_0x47a896){const _0x10fa41=_0x19c1ed;return this['_sharedOperations'][_0x10fa41(0x164)](_0x47a896),o['toDisposable'](()=>this[_0x10fa41(0x112)][_0x10fa41(0x147)](_0x47a896));}['registerInitialStateReporter'](_0xaa77ac){const _0x285af7=_0x19c1ed;return this[_0x285af7(0x130)][_0x285af7(0x164)](_0xaa77ac),o[_0x285af7(0x16c)](()=>this[_0x285af7(0x130)][_0x285af7(0x147)](_0xaa77ac));}[_0x19c1ed(0x116)](_0x911cdb){const _0x49967a=_0x19c1ed;return this[_0x49967a(0x112)][_0x49967a(0x18a)](_0x911cdb);}[_0x19c1ed(0x1b8)](_0x4c2ebb){const _0x24c047=_0x19c1ed;return Array[_0x24c047(0xf6)](this[_0x24c047(0x130)])[_0x24c047(0x1a4)](_0x282feb=>_0x282feb(_0x4c2ebb));}}var M=Object[_0x19c1ed(0x1a9)],P=(_0x9d9e20,_0xd7bb20,_0x5e28e8,_0x52bd18)=>{const _0xb10128=_0x19c1ed;for(var _0x5504c3=_0x52bd18>0x1?void 0x0:_0x52bd18?M(_0xd7bb20,_0x5e28e8):_0xd7bb20,_0x190f03=_0x9d9e20[_0xb10128(0x155)]-0x1,_0x2c99b9;_0x190f03>=0x0;_0x190f03--)(_0x2c99b9=_0x9d9e20[_0x190f03])&&(_0x5504c3=_0x2c99b9(_0x5504c3)||_0x5504c3);return _0x5504c3;},S=(_0x197ee3,_0x3e8a1a)=>(_0xf5f769,_0x4948ef)=>_0x3e8a1a(_0xf5f769,_0x4948ef,_0x197ee3);exports[_0x19c1ed(0xfe)]=class extends o[_0x19c1ed(0xed)]{constructor(_0x37cb9c,_0x2c3ea0,_0x33e671){const _0x34f550=_0x19c1ed;super(),_(this,_0x34f550(0x113),new Map()),(this['_univerInstanceService']=_0x37cb9c,this[_0x34f550(0x10c)]=_0x2c3ea0,this[_0x34f550(0x12c)]=_0x33e671,this[_0x34f550(0x168)]());}async['getLiveShareCoordinator'](_0x1af079){const _0x182571=_0x19c1ed;return this[_0x182571(0x113)][_0x182571(0x18a)](_0x1af079)||await this['_startLiveShareCoordinator'](_0x1af079),this[_0x182571(0x113)][_0x182571(0x12a)](_0x1af079);}['getLiveShareCoordinatorSync'](_0x1914f0){const _0x319beb=_0x19c1ed;var _0x4d1638;return(_0x4d1638=this[_0x319beb(0x113)][_0x319beb(0x12a)](_0x1914f0))!=null?_0x4d1638:null;}[_0x19c1ed(0x168)](){const _0x4b5ec0=_0x19c1ed;this[_0x4b5ec0(0x143)][_0x4b5ec0(0x15d)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x4b5ec0(0x14e)](I[_0x4b5ec0(0x1b0)](this[_0x4b5ec0(0x19a)]))[_0x4b5ec0(0x126)](async _0xfc6849=>{const _0x4a8f21=_0x4b5ec0,_0x164d8b=_0xfc6849[_0x4a8f21(0x102)]();this['_entities']['has'](_0x164d8b)||this['_startLiveShareCoordinator'](_0x164d8b);}),this['_univerInstanceService'][_0x4b5ec0(0x129)](o['UniverInstanceType'][_0x4b5ec0(0xff)])[_0x4b5ec0(0x14e)](I[_0x4b5ec0(0x1b0)](this[_0x4b5ec0(0x19a)]))[_0x4b5ec0(0x126)](_0x311758=>{const _0x27e6de=_0x4b5ec0,_0x29d3bb=_0x311758[_0x27e6de(0x102)](),_0x1a41c1=this[_0x27e6de(0x113)][_0x27e6de(0x12a)](_0x29d3bb);_0x1a41c1==null||_0x1a41c1[_0x27e6de(0x135)]();});}async[_0x19c1ed(0x1a5)](_0x500af9){const _0x292b83=_0x19c1ed,_0x306a6f=await this[_0x292b83(0x12c)][_0x292b83(0x1b9)](_0x500af9),_0x1c18a1=this[_0x292b83(0x10c)][_0x292b83(0x177)](exports['LiveShareCoordinator'],_0x500af9,_0x306a6f);return _0x1c18a1['init'](),this[_0x292b83(0x113)]['set'](_0x500af9,_0x1c18a1),_0x1c18a1;}},exports[_0x19c1ed(0xfe)]=P([S(0x0,o[_0x19c1ed(0x144)]),S(0x1,o[_0x19c1ed(0x10b)](o[_0x19c1ed(0x19e)])),S(0x2,o[_0x19c1ed(0x10b)](b[_0x19c1ed(0x185)]))],exports['LiveShareController']);var u=(_0x1a0e5e=>(_0x1a0e5e[_0x19c1ed(0x1ad)]=_0x19c1ed(0x16e),_0x1a0e5e[_0x19c1ed(0x163)]='idle',_0x1a0e5e[_0x19c1ed(0x17c)]='following',_0x1a0e5e[_0x19c1ed(0x13b)]=_0x19c1ed(0x141),_0x1a0e5e[_0x19c1ed(0x127)]='presenting',_0x1a0e5e))(u||{});const k=_0x19c1ed(0xe8),q=0xc8;exports[_0x19c1ed(0x123)]=class extends o[_0x19c1ed(0xed)]{constructor(_0x5270b1,_0x45305f,_0x1a03cc,_0x10144a,_0x4b059d){const _0x70d380=_0x19c1ed;super(),_(this,_0x70d380(0xf2),new O['BehaviorSubject']('idle')),_(this,_0x70d380(0x11d),this[_0x70d380(0xf2)][_0x70d380(0x181)]()),_(this,'_init',!0x1),_(this,_0x70d380(0x188),null),_(this,_0x70d380(0xe3),null),(this[_0x70d380(0xe6)]=_0x5270b1,this[_0x70d380(0x1a3)]=_0x45305f,this[_0x70d380(0x133)]=_0x1a03cc,this[_0x70d380(0x10f)]=_0x10144a,this['_commandService']=_0x4b059d);}get[_0x19c1ed(0x11c)](){const _0x25ca0f=_0x19c1ed;return this[_0x25ca0f(0xf2)][_0x25ca0f(0xf7)]();}[_0x19c1ed(0x135)](){const _0x1eeebe=_0x19c1ed;var _0x476fde;(_0x476fde=this[_0x1eeebe(0x188)])==null||_0x476fde[_0x1eeebe(0x135)](),this[_0x1eeebe(0xf2)][_0x1eeebe(0x119)](_0x1eeebe(0x18c)),this[_0x1eeebe(0xf2)][_0x1eeebe(0x178)]();}[_0x19c1ed(0x160)](){const _0x581dac=_0x19c1ed;return this[_0x581dac(0x11c)];}['init'](){const _0x21790=_0x19c1ed;this[_0x21790(0x168)]||(this[_0x21790(0x168)]=!0x0,this[_0x21790(0x1a3)][_0x21790(0x11e)][_0x21790(0x14e)](I[_0x21790(0x1b0)](this[_0x21790(0x19a)]))['subscribe'](_0x1bd03b=>{const _0x3d9d66=_0x21790;switch(_0x1bd03b){case b[_0x3d9d66(0x1b3)][_0x3d9d66(0x1ad)]:this[_0x3d9d66(0x152)]();break;case b[_0x3d9d66(0x1b3)]['ONLINE']:this[_0x3d9d66(0x100)]();break;}}),this[_0x21790(0x1a3)][_0x21790(0x1ae)][_0x21790(0x14e)](I[_0x21790(0x1b0)](this['dispose$']))[_0x21790(0x126)](_0x2bec0d=>{const _0x5b2282=_0x21790,{eventID:_0x58fb28}=_0x2bec0d;switch(_0x58fb28){case d[_0x5b2282(0x180)][_0x5b2282(0x14c)]:this[_0x5b2282(0x1aa)](_0x2bec0d);break;case d[_0x5b2282(0x180)][_0x5b2282(0xf5)]:this[_0x5b2282(0x137)](_0x2bec0d);break;case d[_0x5b2282(0x180)][_0x5b2282(0x14b)]:this[_0x5b2282(0x121)]();break;case d['CollaborationEvent'][_0x5b2282(0x108)]:this['_handleNewChangeSets'](_0x2bec0d);break;}}));}[_0x19c1ed(0x167)](){const _0x1a6f0a=_0x19c1ed;this[_0x1a6f0a(0x1a3)][_0x1a6f0a(0x10a)]({'eventID':d[_0x1a6f0a(0x180)][_0x1a6f0a(0x109)],'data':{'unitID':this[_0x1a6f0a(0xe6)],'userID':this[_0x1a6f0a(0x1a3)][_0x1a6f0a(0x171)]()}},this[_0x1a6f0a(0xe6)]);}[_0x19c1ed(0x13e)](){const _0x559b52=_0x19c1ed;this[_0x559b52(0x11c)]==='presenting'&&(this['_status$'][_0x559b52(0x119)]('idle'),this[_0x559b52(0x1a3)]['send']({'eventID':d[_0x559b52(0x180)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x559b52(0xe6)]}},this['_unitID']));}['startFollowing'](){const _0x1662d9=_0x19c1ed;this[_0x1662d9(0x11c)]==='not-following'&&(this[_0x1662d9(0xf2)][_0x1662d9(0x119)](_0x1662d9(0x16d)),this['_startFollowing']());}[_0x19c1ed(0xf8)](){const _0x258c9f=_0x19c1ed;this['_status']===_0x258c9f(0x16d)&&this['_stopFollowing']();}[_0x19c1ed(0x1aa)](_0x1d86da){const _0x37af0c=_0x19c1ed,{presenter:_0x574773}=_0x1d86da['data'],_0x51493b=this[_0x37af0c(0x1a3)]['getMemberID']();this[_0x37af0c(0xe3)]=_0x574773,_0x574773===_0x51493b?(this[_0x37af0c(0x16a)](),this[_0x37af0c(0x14f)]()):this[_0x37af0c(0x11c)]!==_0x37af0c(0x141)&&(this[_0x37af0c(0x153)](),this[_0x37af0c(0x12e)]());}[_0x19c1ed(0x1b5)](){const _0xc94ba1=_0x19c1ed,_0x6669fa={'eventID':d['CollaborationEvent'][_0xc94ba1(0x115)]};this['_collabSession']['send'](_0x6669fa,this[_0xc94ba1(0xe6)]);}[_0x19c1ed(0x121)](){const _0x323bf7=_0x19c1ed;this[_0x323bf7(0xe3)]=null,this[_0x323bf7(0x11c)]!==_0x323bf7(0x136)&&this['_beIdle']();}[_0x19c1ed(0xf9)](_0x5e2d18){const _0x14c498=_0x19c1ed;if(this['_status']===_0x14c498(0x16d)&&this['_presenter']===_0x5e2d18[_0x14c498(0x19b)][_0x14c498(0x19d)]){const _0x36271c=d[_0x14c498(0x15e)](_0x5e2d18[_0x14c498(0x19b)])[_0x14c498(0x173)][_0x14c498(0x106)]()[_0x14c498(0x17a)](_0x46cc3f=>_0x46cc3f['id']===C[_0x14c498(0x1b6)]['id']);if(_0x36271c){const _0x400001=_0x36271c[_0x14c498(0x175)][_0x14c498(0xf3)],_0x48d857=_0x36271c[_0x14c498(0x175)][_0x14c498(0x195)]['id'];setTimeout(()=>{const _0x195a94=_0x14c498;this[_0x195a94(0x159)]['executeCommand'](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x400001,'subUnitId':_0x48d857},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x2d14b3=_0x19c1ed;this[_0x2d14b3(0xf2)][_0x2d14b3(0x119)](_0x2d14b3(0x136));const _0x281921=new Map(),_0x537264=this[_0x2d14b3(0x188)]=new o[(_0x2d14b3(0xe5))]();_0x537264['add'](o['toDisposable'](()=>{const _0x121b54=_0x2d14b3;_0x281921[_0x121b54(0xe4)](_0x45348b=>_0x45348b[_0x121b54(0x178)]()),_0x281921[_0x121b54(0x104)]();})),_0x537264[_0x2d14b3(0x164)](this[_0x2d14b3(0x159)]['onCommandExecuted'](_0xa3349a=>{const _0x2e6ea0=_0x2d14b3;var _0x456b14;if(_0xa3349a['type']!==o[_0x2e6ea0(0xde)][_0x2e6ea0(0x131)]||!this[_0x2e6ea0(0x10f)][_0x2e6ea0(0x116)](_0xa3349a['id']))return;const {id:_0x227312}=_0xa3349a;let _0x3df9c8;_0x281921[_0x2e6ea0(0x18a)](_0x227312)?_0x3df9c8=_0x281921[_0x2e6ea0(0x12a)](_0x227312):(_0x3df9c8=new O[(_0x2e6ea0(0x140))](),_0x281921[_0x2e6ea0(0x122)](_0x227312,_0x3df9c8),_0x3df9c8['pipe'](I['throttleTime']((_0x456b14=this[_0x2e6ea0(0x133)][_0x2e6ea0(0x15c)](k))!=null?_0x456b14:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2e6ea0(0x126)](_0x1a3759=>{const _0x116689=_0x2e6ea0;this[_0x116689(0x1a3)][_0x116689(0x10a)]({'eventID':d[_0x116689(0x180)][_0x116689(0xf5)],'data':{'unitID':this['_unitID'],'operations':{[_0x1a3759['id']]:{'id':_0x1a3759['id'],'params':JSON[_0x116689(0x174)](_0x1a3759['params'])}}}},this['_unitID']);})),_0x3df9c8[_0x2e6ea0(0x119)](_0xa3349a);})),this[_0x2d14b3(0x10f)]['getInitialStates'](this['_unitID'])[_0x2d14b3(0xe4)](_0x4a60c4=>this[_0x2d14b3(0x1a3)][_0x2d14b3(0x10a)]({'eventID':d[_0x2d14b3(0x180)][_0x2d14b3(0xf5)],'data':{'unitID':this[_0x2d14b3(0xe6)],'operations':{[_0x4a60c4['id']]:{'id':_0x4a60c4['id'],'params':JSON[_0x2d14b3(0x174)](_0x4a60c4[_0x2d14b3(0x175)])}}}},this[_0x2d14b3(0xe6)]));}[_0x19c1ed(0x153)](){const _0x541660=_0x19c1ed;var _0x2ba16e;this[_0x541660(0xf2)][_0x541660(0x119)](_0x541660(0x18c)),(_0x2ba16e=this[_0x541660(0x188)])==null||_0x2ba16e[_0x541660(0x135)](),this[_0x541660(0x188)]=null;}[_0x19c1ed(0x12e)](){const _0x4b8816=_0x19c1ed;var _0x308751;(_0x308751=this[_0x4b8816(0x188)])==null||_0x308751[_0x4b8816(0x135)](),this['_status$'][_0x4b8816(0x119)](_0x4b8816(0x16d));}[_0x19c1ed(0x190)](){const _0x1d193c=_0x19c1ed;var _0x34a9c8;this[_0x1d193c(0xf2)]['next']('idle'),(_0x34a9c8=this['_commandDisposable'])==null||_0x34a9c8[_0x1d193c(0x135)](),this[_0x1d193c(0x188)]=null;}[_0x19c1ed(0x16a)](){const _0xe62904=_0x19c1ed;var _0x4a0541;this[_0xe62904(0xf2)][_0xe62904(0x119)](_0xe62904(0x141)),(_0x4a0541=this[_0xe62904(0x188)])==null||_0x4a0541[_0xe62904(0x135)]();}['_handleOperation'](_0x5e588c){const _0x169833=_0x19c1ed;if(['presenting',_0x169833(0x141),'offline']['includes'](this[_0x169833(0x11c)])||!_0x5e588c[_0x169833(0x19b)][_0x169833(0xea)]||_0x5e588c['data'][_0x169833(0xea)]===this[_0x169833(0x1a3)][_0x169833(0x171)]())return;this[_0x169833(0x11c)]===_0x169833(0x18c)&&this[_0x169833(0x12e)]();const _0x2eb00e=_0x5e588c[_0x169833(0x19b)][_0x169833(0x118)];Object[_0x169833(0xe9)](_0x2eb00e)[_0x169833(0xe4)](_0x258eb8=>{const _0x5c950a=_0x169833;this[_0x5c950a(0x159)][_0x5c950a(0x156)](_0x258eb8['id'],_0x258eb8['params']?JSON[_0x5c950a(0x101)](_0x258eb8[_0x5c950a(0x175)]):null,{'fromCollab':!0x0});});}[_0x19c1ed(0x152)](){const _0xd7bd35=_0x19c1ed;var _0x18217e;this[_0xd7bd35(0xf2)][_0xd7bd35(0x119)](_0xd7bd35(0x16e)),(_0x18217e=this[_0xd7bd35(0x188)])==null||_0x18217e['dispose']();}[_0x19c1ed(0x100)](){const _0x1b5195=_0x19c1ed;this[_0x1b5195(0xf2)][_0x1b5195(0x119)](_0x1b5195(0x18c)),this[_0x1b5195(0x1b5)]();}},exports[_0x19c1ed(0x123)]=P([S(0x2,o[_0x19c1ed(0x1ab)]),S(0x3,o['Inject'](E)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function $(){const _0x8fe406=_0x19c1ed,_0xa30536=p['useDependency'](exports[_0x8fe406(0xfe)]),_0x4b9e33=p[_0x8fe406(0xf1)](o[_0x8fe406(0x144)]),_0x1e301b=p[_0x8fe406(0x11b)](()=>_0x4b9e33[_0x8fe406(0x125)](o[_0x8fe406(0xdd)][_0x8fe406(0xff)]),void 0x0,!0x1,[]),[_0x126d3c,_0x3b5c09]=v[_0x8fe406(0xfc)](null),[_0x1d814f,_0x28e255]=v[_0x8fe406(0xfc)](u['IDLE']),_0x4e7c14=v[_0x8fe406(0x172)](null);return v['useEffect'](()=>(_0x1e301b&&_0xa30536[_0x8fe406(0x187)](_0x1e301b['getUnitId']())[_0x8fe406(0x189)](_0x431c78=>{const _0x425734=_0x8fe406;_0x3b5c09(_0x431c78),_0x4e7c14[_0x425734(0x148)]=_0x431c78[_0x425734(0x11d)][_0x425734(0x126)](_0x37c84a=>{_0x28e255(_0x37c84a);});}),()=>{const _0x3cde62=_0x8fe406;var _0x677732;(_0x677732=_0x4e7c14[_0x3cde62(0x148)])==null||_0x677732['unsubscribe'](),_0x4e7c14['current']=null;}),[_0x1e301b,_0xa30536]),_0x126d3c?l[_0x8fe406(0x1a7)](f[_0x8fe406(0x182)],{'align':_0x8fe406(0x1af),'disabled':_0x1d814f===u[_0x8fe406(0x1ad)],'className':_0x8fe406(0x15a),'overlay':l[_0x8fe406(0x1a7)](W,{'status':_0x1d814f,'coordinator':_0x126d3c}),'children':l[_0x8fe406(0x1a7)](_0x8fe406(0x15f),{'className':f[_0x8fe406(0x15b)](_0x8fe406(0x111),{'univer-cursor-not-allowed':_0x1d814f===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1d814f!==u[_0x8fe406(0x1ad)]}),'type':_0x8fe406(0x15f),'children':l[_0x8fe406(0x1a7)](R,{'className':_0x8fe406(0x150)})})}):null;}function _0x2ce0(_0x1f6ce6,_0x366f0a){const _0xe6656a=_0xe665();return _0x2ce0=function(_0x2ce08,_0x197117){_0x2ce08=_0x2ce08-0xdd;let _0x31bc7e=_0xe6656a[_0x2ce08];return _0x31bc7e;},_0x2ce0(_0x1f6ce6,_0x366f0a);}function W(_0x511dd6){const _0x3948e1=_0x19c1ed,{status:_0x244d98,coordinator:_0x2e2e55}=_0x511dd6;switch(_0x244d98){case u[_0x3948e1(0x163)]:return l['jsx'](G,{'coordinator':_0x2e2e55});case u['FOLLOWING']:return l[_0x3948e1(0x1a7)](B,{'coordinator':_0x2e2e55});case u[_0x3948e1(0x13b)]:return l[_0x3948e1(0x1a7)](Y,{'coordinator':_0x2e2e55});case u[_0x3948e1(0x1ad)]:return l[_0x3948e1(0x1a7)](J,{});case u[_0x3948e1(0x127)]:return l[_0x3948e1(0x1a7)](Z,{'coordinator':_0x2e2e55});default:return null;}}function G(_0x275bab){const _0x6f195a=_0x19c1ed,{coordinator:_0x13b9ef}=_0x275bab;return l[_0x6f195a(0x18d)](l['Fragment'],{'children':[l[_0x6f195a(0x1a7)](_0x6f195a(0x17b),{'className':_0x6f195a(0x1ac),'children':_0x6f195a(0x186)}),l[_0x6f195a(0x1a7)](f[_0x6f195a(0x154)],{'onClick':()=>_0x13b9ef[_0x6f195a(0x167)](),'children':_0x6f195a(0x1a8)})]});}function B(_0x583598){const _0x3baf0e=_0x19c1ed,{coordinator:_0x35e97f}=_0x583598;return l['jsxs'](l[_0x3baf0e(0x110)],{'children':[l[_0x3baf0e(0x1a7)](_0x3baf0e(0x17b),{'className':_0x3baf0e(0x1ac),'children':_0x3baf0e(0xee)}),l['jsx'](f[_0x3baf0e(0x154)],{'onClick':()=>_0x35e97f[_0x3baf0e(0xf8)](),'children':_0x3baf0e(0x1b7)})]});}function Y(_0x5c7774){const _0x554094=_0x19c1ed,{coordinator:_0x2bc7e9}=_0x5c7774;return l[_0x554094(0x18d)](l[_0x554094(0x110)],{'children':[l[_0x554094(0x1a7)](_0x554094(0x17b),{'className':_0x554094(0x1ac),'children':_0x554094(0x105)}),l['jsx'](f[_0x554094(0x154)],{'variant':_0x554094(0x18f),'onClick':()=>_0x2bc7e9[_0x554094(0xe0)](),'children':_0x554094(0x12d)})]});}function Z(_0xce33a6){const _0x65fba=_0x19c1ed,{coordinator:_0x4c6e3f}=_0xce33a6;return l[_0x65fba(0x18d)](l[_0x65fba(0x110)],{'children':[l[_0x65fba(0x1a7)]('div',{'className':_0x65fba(0x1ac),'children':'You\x27re\x20presenting\x20the\x20document'}),l['jsx'](f[_0x65fba(0x154)],{'variant':_0x65fba(0x103),'onClick':()=>_0x4c6e3f[_0x65fba(0x13e)](),'children':'Stop\x20presenting'})]});}function J(){const _0x6494aa=_0x19c1ed;return l['jsx'](l[_0x6494aa(0x110)],{'children':_0x6494aa(0x196)});}var K=Object[_0x19c1ed(0x1a9)],z=(_0x2dda87,_0x48a72f,_0x5cfcfc,_0x524a16)=>{const _0x53ab04=_0x19c1ed;for(var _0x4f6ce3=_0x524a16>0x1?void 0x0:_0x524a16?K(_0x48a72f,_0x5cfcfc):_0x48a72f,_0x172061=_0x2dda87[_0x53ab04(0x155)]-0x1,_0x2a3b2a;_0x172061>=0x0;_0x172061--)(_0x2a3b2a=_0x2dda87[_0x172061])&&(_0x4f6ce3=_0x2a3b2a(_0x4f6ce3)||_0x4f6ce3);return _0x4f6ce3;},L=(_0x47ecd7,_0x11766c)=>(_0x171ed4,_0x55ee6f)=>_0x11766c(_0x171ed4,_0x55ee6f,_0x47ecd7);exports['DesktopLiveShareController']=class extends o[_0x19c1ed(0x145)]{constructor(_0x3a0753,_0x2d6a1b){const _0xac6bcc=_0x19c1ed;super(),this[_0xac6bcc(0x10c)]=_0x3a0753,this[_0xac6bcc(0x107)]=_0x2d6a1b,this[_0xac6bcc(0x183)]();}[_0x19c1ed(0x183)](){const _0x1ddd1f=_0x19c1ed;this[_0x1ddd1f(0xfa)](this[_0x1ddd1f(0x107)][_0x1ddd1f(0x13c)](p[_0x1ddd1f(0x124)][_0x1ddd1f(0x14a)],()=>p['connectInjector']($,this['_injector'])));}},exports['DesktopLiveShareController']=z([L(0x0,o[_0x19c1ed(0x10b)](o['Injector'])),L(0x1,p[_0x19c1ed(0x11f)])],exports[_0x19c1ed(0x16b)]);const Q=_0x19c1ed(0xe1),w={};var X=Object[_0x19c1ed(0x1a9)],ee=(_0x1098f0,_0x227e5f,_0x4fd060,_0x10b824)=>{for(var _0x3bb3ec=_0x10b824>0x1?void 0x0:_0x10b824?X(_0x227e5f,_0x4fd060):_0x227e5f,_0x5cc1aa=_0x1098f0['length']-0x1,_0x3469d1;_0x5cc1aa>=0x0;_0x5cc1aa--)(_0x3469d1=_0x1098f0[_0x5cc1aa])&&(_0x3bb3ec=_0x3469d1(_0x3bb3ec)||_0x3bb3ec);return _0x3bb3ec;},te=(_0x28a81d,_0x2acb12)=>(_0x138cdd,_0x3c62da)=>_0x2acb12(_0x138cdd,_0x3c62da,_0x28a81d);let m=class extends o['Disposable']{constructor(_0x47d964){const _0x42fe72=_0x19c1ed;super(),this[_0x42fe72(0x10f)]=_0x47d964,this['_init']();}[_0x19c1ed(0x168)](){const _0x5e5a80=_0x19c1ed;[D[_0x5e5a80(0x120)]['id'],D[_0x5e5a80(0x16f)]['id'],C[_0x5e5a80(0x1a1)]['id']][_0x5e5a80(0xe4)](_0x304690=>{const _0x2acb1d=_0x5e5a80;this[_0x2acb1d(0xfa)](this[_0x2acb1d(0x10f)][_0x2acb1d(0x194)](_0x304690));});}};m=ee([te(0x0,o[_0x19c1ed(0x10b)](E))],m);var ie=Object['defineProperty'],se=Object[_0x19c1ed(0x1a9)],ne=(_0xfdabc1,_0x33a01e,_0x5179aa)=>_0x33a01e in _0xfdabc1?ie(_0xfdabc1,_0x33a01e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5179aa}):_0xfdabc1[_0x33a01e]=_0x5179aa,re=(_0x11b0e4,_0x1832b7,_0x3d6842,_0x36f2e8)=>{const _0x1e6c73=_0x19c1ed;for(var _0x4e10e1=_0x36f2e8>0x1?void 0x0:_0x36f2e8?se(_0x1832b7,_0x3d6842):_0x1832b7,_0x217aed=_0x11b0e4[_0x1e6c73(0x155)]-0x1,_0x49acb2;_0x217aed>=0x0;_0x217aed--)(_0x49acb2=_0x11b0e4[_0x217aed])&&(_0x4e10e1=_0x49acb2(_0x4e10e1)||_0x4e10e1);return _0x4e10e1;},N=(_0x2178a0,_0x5175a9)=>(_0x3b8a2f,_0x351f5f)=>_0x5175a9(_0x3b8a2f,_0x351f5f,_0x2178a0),A=(_0x8e6e9,_0x24d46f,_0x5aec50)=>ne(_0x8e6e9,typeof _0x24d46f!=_0x19c1ed(0x13a)?_0x24d46f+'':_0x24d46f,_0x5aec50);const oe=_0x19c1ed(0x193);exports[_0x19c1ed(0x1a2)]=class extends o[_0x19c1ed(0x18e)]{constructor(_0x245f2c=w,_0x5eef7f,_0x4e0bf0){const _0x4f71fc=_0x19c1ed;super(),this[_0x4f71fc(0xe2)]=_0x245f2c,this[_0x4f71fc(0x10c)]=_0x5eef7f,this[_0x4f71fc(0x133)]=_0x4e0bf0;const {..._0x1f58c1}=o['merge']({},w,this[_0x4f71fc(0xe2)]);this[_0x4f71fc(0x133)][_0x4f71fc(0x1a6)](Q,_0x1f58c1);}['onStarting'](){const _0x4697b9=_0x19c1ed;o['registerDependencies'](this['_injector'],o[_0x4697b9(0x149)]([[E],[exports[_0x4697b9(0xfe)]],[m],[exports[_0x4697b9(0x16b)]]],this[_0x4697b9(0xe2)][_0x4697b9(0xec)])),o[_0x4697b9(0x12b)](this[_0x4697b9(0x10c)],[[m]]);}[_0x19c1ed(0x18b)](){const _0x12eab6=_0x19c1ed;o[_0x12eab6(0x12b)](this[_0x12eab6(0x10c)],[[exports[_0x12eab6(0x16b)]]]);}},A(exports[_0x19c1ed(0x1a2)],_0x19c1ed(0x199),o['UniverInstanceType'][_0x19c1ed(0x1a0)]),A(exports[_0x19c1ed(0x1a2)],_0x19c1ed(0x17d),oe),exports[_0x19c1ed(0x1a2)]=re([o[_0x19c1ed(0x14d)](b[_0x19c1ed(0x19f)]),N(0x1,o[_0x19c1ed(0x10b)](o[_0x19c1ed(0x19e)])),N(0x2,o[_0x19c1ed(0x1ab)])],exports['UniverLiveSharePlugin']),exports['LiveShare']=$,exports['LiveShareService']=E,exports[_0x19c1ed(0x146)]=u;
1
+ 'use strict';const _0x557c04=_0x2d86;function _0x5f2a(){const _0x83b2f6=['7cIrqEL','Injector','_entities','0\x200\x2017\x2017','UniverIcon','_config','getLiveShareCoordinator','clear','SetZoomRatioOperation','live-share-icon','SetScrollOperation','subscribe','PRESENTING','stopFollowing','LiveShareController','map','LiveShareStatus','getValue','get','_startFollowing','following','url(#$1','LIVESHARE_FETCH_OPERATIONS','_unitID','text','toDisposable','useDependency','9uZliwp','use','Start\x20following','clsx','children','div','Dropdown','1em','Inject','status$','ONLINE','getStatus','24YqoJfL','colorChannel1','event$','Module','then','getUnitId','372xyeksX','startFollowing','stopPresenting','HEADER_MENU','tryStartPresenting','disposeWithMe','_liveShareService','toString','values','getCurrentTypeOfUnit$','live-share.config','http://www.w3.org/2000/svg','parse','_commandDisposable','IConfigService','getOwnPropertyDescriptor','Fragment','memberID','requireSession','_stopFollowing','UniverCollaborationClientPlugin','not-following','OPERATION','1398cYnRUY','getConfig','_uiPartsService','sheet','LiveShareCoordinator','idSuffix','set','init','BuiltInUIPart','substring','evenodd','OFFLINE','delete','useState','_univerInstanceService','forwardRef','jsxs','_commandService','_handleOperation','FOLLOWING','LiveShareService','presenter','displayName','replace','SetWorksheetActiveOperation','offline','trim','LIVESHARE_TERMINATE','Present\x20this\x20document','defIds','includes','path','_init','LIVESHARE_OPERATION','Plugin','string','CommandType','_sharedOperations','button','type','current','useObservable','setConfig','send','DesktopLiveShareController','Subject','sessionStatus$','_beIdle','UniverLiveSharePlugin','has','dispose','touchDependencies','_collabSession','currentColor','BehaviorSubject','515585IWxFhc','You\x27re\x20not\x20following\x20the\x20presenter','params','_collabSessionService','complete','You\x27re\x20following\x20the\x20presenter','IUniverInstanceService','mutations','fill','onCommandExecuted','forEach','takeUntil','5473490PdsrRh','connectInjector','Stop\x20following','You\x27re\x20presenting\x20the\x20document','SessionStatus','onStarting','UniverInstanceType','random','_handleOnline','_startPresenting','symbol','Start','shouldShareOperation','registerSharedOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','_injector','assign','IUIPartsService','xlink:href','CollaborationEvent','IDLE','_fetchOperations','pipe','svg','add','getMemberID','unitId','defineProperty','_handleTerminate','attrs','entries','UNIVER_UNKNOWN','getTypeOfUnitDisposed$','jsx','univerjs-icon\x20univerjs-icon-','_status','next','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','mergeOverrideWithDependencies','LIVESHARE_NEW_HOST','executeCommand','UNIVER_LIVE_SHARE_PLUGIN','_startLiveShareCoordinator','data','presenting','reverse','_handleNewChangeSets','_presenter','override','pluginName','useRef','getLiveShareCoordinatorSync','dispose$','LiveShare','_handleNewHost','parseProtocolChangeset','operations','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_handleOffline','length','2161672wprdhK','773796ivZNoq','stringify','6035359piJZcy','_reporters','registerInitialStateReporter','RxDisposable','_status$','getTypeOfUnitAdded$','27076CCOFDc','_configService','tag','registerDependencies','InsertSheetMutation','getInitialStates','Button','Disposable','_stopPresenting','mask','idle','UNIVER_SHEET','_mountLiveShare'];_0x5f2a=function(){return _0x83b2f6;};return _0x5f2a();}(function(_0x28ed11,_0x474c59){const _0x11cc48=_0x2d86,_0x73b1a2=_0x28ed11();while(!![]){try{const _0x88a8f8=-parseInt(_0x11cc48(0x95))/0x1*(parseInt(_0x11cc48(0xac))/0x2)+parseInt(_0x11cc48(0x12c))/0x3+-parseInt(_0x11cc48(0x134))/0x4+parseInt(_0x11cc48(0xe3))/0x5*(-parseInt(_0x11cc48(0x8f))/0x6)+-parseInt(_0x11cc48(0x141))/0x7*(parseInt(_0x11cc48(0x12b))/0x8)+parseInt(_0x11cc48(0x83))/0x9*(parseInt(_0x11cc48(0xef))/0xa)+parseInt(_0x11cc48(0x12e))/0xb;if(_0x88a8f8===_0x474c59)break;else _0x73b1a2['push'](_0x73b1a2['shift']());}catch(_0x4157fe){_0x73b1a2['push'](_0x73b1a2['shift']());}}}(_0x5f2a,0x62bfc));var T=Object[_0x557c04(0x10a)],U=(_0x4c8d3f,_0x22130b,_0x34ba3a)=>_0x22130b in _0x4c8d3f?T(_0x4c8d3f,_0x22130b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34ba3a}):_0x4c8d3f[_0x22130b]=_0x34ba3a,_=(_0x3d8d19,_0x29d1f6,_0x3f4419)=>U(_0x3d8d19,typeof _0x29d1f6!=_0x557c04(0xf9)?_0x29d1f6+'':_0x29d1f6,_0x3f4419);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x557c04(0x92)});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:_0x481058,..._0xf693c9}){const _0x5c6d29=_0x557c04,{icon:_0xe6b45,id:_0x419053,className:_0x46227b,extend:_0x1f0a76,..._0x5dda74}=_0xf693c9,_0x2e5209=(_0x5c6d29(0x111)+_0x419053+'\x20'+(_0x46227b||''))[_0x5c6d29(0xc6)](),_0x5010aa=v[_0x5c6d29(0x121)]('_'+H());return j(_0xe6b45,''+_0x419053,{'defIds':_0xe6b45[_0x5c6d29(0xc9)],'idSuffix':_0x5010aa[_0x5c6d29(0xd4)]},{'ref':_0x481058,'className':_0x2e5209,..._0x5dda74},_0x1f0a76);}function j(_0x3ad838,_0x35e57b,_0x2f13ef,_0x2ba3e5,_0x30cdd0){const _0x16f21a=_0x557c04;return v['createElement'](_0x3ad838[_0x16f21a(0x136)],{'key':_0x35e57b,...y(_0x3ad838,_0x2f13ef,_0x30cdd0),..._0x2ba3e5},(F(_0x3ad838,_0x2f13ef)[_0x16f21a(0x87)]||[])[_0x16f21a(0x150)]((_0x41f3fd,_0x14c8b0)=>j(_0x41f3fd,_0x35e57b+'-'+_0x3ad838[_0x16f21a(0x136)]+'-'+_0x14c8b0,_0x2f13ef,void 0x0,_0x30cdd0)));}function y(_0x490e9f,_0x582790,_0x3ce4d5){const _0x4ab3dd=_0x557c04,_0xf927b6={..._0x490e9f[_0x4ab3dd(0x10c)]};_0x3ce4d5!=null&&_0x3ce4d5[_0x4ab3dd(0x90)]&&_0xf927b6[_0x4ab3dd(0xeb)]===_0x4ab3dd(0x90)&&(_0xf927b6[_0x4ab3dd(0xeb)]=_0x3ce4d5[_0x4ab3dd(0x90)]),_0x490e9f['tag']===_0x4ab3dd(0x13d)&&_0xf927b6['id']&&(_0xf927b6['id']=_0xf927b6['id']+_0x582790[_0x4ab3dd(0xb1)]),Object[_0x4ab3dd(0x10d)](_0xf927b6)[_0x4ab3dd(0xed)](([_0xaa5a2a,_0x4807e3])=>{const _0x14a344=_0x4ab3dd;_0xaa5a2a==='mask'&&typeof _0x4807e3==_0x14a344(0xcf)&&(_0xf927b6[_0xaa5a2a]=_0x4807e3['replace'](/url\(#(.*)\)/,_0x14a344(0x156)+_0x582790[_0x14a344(0xb1)]+')'));});const {defIds:_0x164eb9}=_0x582790;return!_0x164eb9||_0x164eb9[_0x4ab3dd(0x12a)]===0x0||(_0x490e9f[_0x4ab3dd(0x136)]===_0x4ab3dd(0x84)&&_0xf927b6[_0x4ab3dd(0x101)]&&(_0xf927b6[_0x4ab3dd(0x101)]=_0xf927b6[_0x4ab3dd(0x101)]+_0x582790['idSuffix']),Object[_0x4ab3dd(0x10d)](_0xf927b6)[_0x4ab3dd(0xed)](([_0x2e8fb2,_0x4e411f])=>{const _0x352f0b=_0x4ab3dd;typeof _0x4e411f==_0x352f0b(0xcf)&&(_0xf927b6[_0x2e8fb2]=_0x4e411f[_0x352f0b(0xc3)](/url\(#(.*)\)/,_0x352f0b(0x156)+_0x582790[_0x352f0b(0xb1)]+')'));})),_0xf927b6;}function F(_0x566f3c,_0x32c11d){const _0x64eb45=_0x557c04;var _0x1bdd5e;const {defIds:_0x187045}=_0x32c11d;return!_0x187045||_0x187045[_0x64eb45(0x12a)]===0x0?_0x566f3c:_0x566f3c[_0x64eb45(0x136)]==='defs'&&((_0x1bdd5e=_0x566f3c[_0x64eb45(0x87)])!=null&&_0x1bdd5e['length'])?{..._0x566f3c,'children':_0x566f3c['children'][_0x64eb45(0x150)](_0x1cbfb7=>typeof _0x1cbfb7['attrs']['id']==_0x64eb45(0xcf)&&_0x187045&&_0x187045[_0x64eb45(0xca)](_0x1cbfb7['attrs']['id'])?{..._0x1cbfb7,'attrs':{..._0x1cbfb7[_0x64eb45(0x10c)],'id':_0x1cbfb7[_0x64eb45(0x10c)]['id']+_0x32c11d[_0x64eb45(0xb1)]}}:_0x1cbfb7)}:_0x566f3c;}function H(){const _0x1ae4c1=_0x557c04;return Math[_0x1ae4c1(0xf6)]()[_0x1ae4c1(0x9c)](0x24)[_0x1ae4c1(0xb5)](0x2,0x8);}x[_0x557c04(0xc2)]=_0x557c04(0x145);const V={'tag':_0x557c04(0x106),'attrs':{'xmlns':_0x557c04(0xa0),'fill':'none','viewBox':_0x557c04(0x144),'width':_0x557c04(0x8a),'height':_0x557c04(0x8a)},'children':[{'tag':'path','attrs':{'fill':_0x557c04(0xe1),'d':_0x557c04(0x114)}},{'tag':_0x557c04(0xcb),'attrs':{'fill':_0x557c04(0xe1),'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':_0x557c04(0xb6)}}]},R=v[_0x557c04(0xbb)](function(_0x1a5504,_0x1be0dd){const _0x36798c=_0x557c04;return v['createElement'](x,Object[_0x36798c(0xff)]({},_0x1a5504,{'id':_0x36798c(0x14a),'ref':_0x1be0dd,'icon':V}));});R[_0x557c04(0xc2)]='LiveShareIcon';class E extends o[_0x557c04(0x13b)]{constructor(){const _0x4899cb=_0x557c04;super(...arguments),_(this,'_sharedOperations',new Set()),_(this,_0x4899cb(0x12f),new Set());}[_0x557c04(0xfc)](_0x4580bb){const _0x55c87d=_0x557c04;return this[_0x55c87d(0xd1)][_0x55c87d(0x107)](_0x4580bb),o[_0x55c87d(0x81)](()=>this[_0x55c87d(0xd1)][_0x55c87d(0xb8)](_0x4580bb));}[_0x557c04(0x130)](_0x55dbd9){const _0x24015b=_0x557c04;return this['_reporters'][_0x24015b(0x107)](_0x55dbd9),o[_0x24015b(0x81)](()=>this[_0x24015b(0x12f)][_0x24015b(0xb8)](_0x55dbd9));}[_0x557c04(0xfb)](_0x27a063){const _0x7556c=_0x557c04;return this[_0x7556c(0xd1)][_0x7556c(0xdd)](_0x27a063);}[_0x557c04(0x139)](_0x275e2b){const _0x5e96bc=_0x557c04;return Array['from'](this[_0x5e96bc(0x12f)])[_0x5e96bc(0x150)](_0x53a005=>_0x53a005(_0x275e2b));}}var M=Object[_0x557c04(0xa4)],P=(_0x3492ce,_0x1c9ccc,_0x539c95,_0x28d77b)=>{const _0x18a5ba=_0x557c04;for(var _0x1551b6=_0x28d77b>0x1?void 0x0:_0x28d77b?M(_0x1c9ccc,_0x539c95):_0x1c9ccc,_0x520510=_0x3492ce[_0x18a5ba(0x12a)]-0x1,_0x5868e9;_0x520510>=0x0;_0x520510--)(_0x5868e9=_0x3492ce[_0x520510])&&(_0x1551b6=_0x5868e9(_0x1551b6)||_0x1551b6);return _0x1551b6;},S=(_0x2347c1,_0x29a25e)=>(_0x1e491c,_0x4b2591)=>_0x29a25e(_0x1e491c,_0x4b2591,_0x2347c1);exports['LiveShareController']=class extends o[_0x557c04(0x131)]{constructor(_0x409dde,_0x23b490,_0x1a2800){const _0x474852=_0x557c04;super(),_(this,_0x474852(0x143),new Map()),(this['_univerInstanceService']=_0x409dde,this[_0x474852(0xfe)]=_0x23b490,this[_0x474852(0xe6)]=_0x1a2800,this[_0x474852(0xcc)]());}async[_0x557c04(0x147)](_0x4940a4){const _0x4b9d60=_0x557c04;return this['_entities'][_0x4b9d60(0xdd)](_0x4940a4)||await this[_0x4b9d60(0x119)](_0x4940a4),this[_0x4b9d60(0x143)][_0x4b9d60(0x153)](_0x4940a4);}[_0x557c04(0x122)](_0x1bd06b){const _0x493815=_0x557c04;var _0x36191d;return(_0x36191d=this[_0x493815(0x143)][_0x493815(0x153)](_0x1bd06b))!=null?_0x36191d:null;}[_0x557c04(0xcc)](){const _0x45f1fd=_0x557c04;this['_univerInstanceService'][_0x45f1fd(0x133)](o['UniverInstanceType'][_0x45f1fd(0x13f)])['pipe'](I[_0x45f1fd(0xee)](this[_0x45f1fd(0x123)]))['subscribe'](async _0x43fef2=>{const _0x5ce727=_0x45f1fd,_0x805857=_0x43fef2['getUnitId']();this[_0x5ce727(0x143)]['has'](_0x805857)||this[_0x5ce727(0x119)](_0x805857);}),this[_0x45f1fd(0xba)][_0x45f1fd(0x10f)](o['UniverInstanceType'][_0x45f1fd(0x13f)])[_0x45f1fd(0x105)](I[_0x45f1fd(0xee)](this[_0x45f1fd(0x123)]))[_0x45f1fd(0x14c)](_0x2076c6=>{const _0x42e88b=_0x45f1fd,_0x4c3e48=_0x2076c6[_0x42e88b(0x94)](),_0x197b1f=this[_0x42e88b(0x143)][_0x42e88b(0x153)](_0x4c3e48);_0x197b1f==null||_0x197b1f[_0x42e88b(0xde)]();});}async[_0x557c04(0x119)](_0xd485c7){const _0x39907a=_0x557c04,_0x5971a2=await this['_collabSessionService'][_0x39907a(0xa7)](_0xd485c7),_0x5d00d4=this['_injector']['createInstance'](exports[_0x39907a(0xb0)],_0xd485c7,_0x5971a2);return _0x5d00d4['init'](),this[_0x39907a(0x143)][_0x39907a(0xb2)](_0xd485c7,_0x5d00d4),_0x5d00d4;}},exports[_0x557c04(0x14f)]=P([S(0x0,o[_0x557c04(0xe9)]),S(0x1,o[_0x557c04(0x8b)](o[_0x557c04(0x142)])),S(0x2,o[_0x557c04(0x8b)](b['CollaborationSessionService']))],exports[_0x557c04(0x14f)]);var u=(_0x13b0af=>(_0x13b0af['OFFLINE']=_0x557c04(0xc5),_0x13b0af[_0x557c04(0x103)]=_0x557c04(0x13e),_0x13b0af[_0x557c04(0xbf)]=_0x557c04(0x155),_0x13b0af['NOT_FOLLOWING']=_0x557c04(0xaa),_0x13b0af[_0x557c04(0x14d)]='presenting',_0x13b0af))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports[_0x557c04(0xb0)]=class extends o[_0x557c04(0x131)]{constructor(_0x5656d9,_0xb069e,_0x2bdef9,_0x4407e0,_0x32cfbd){const _0x1aaafb=_0x557c04;super(),_(this,_0x1aaafb(0x132),new O[(_0x1aaafb(0xe2))](_0x1aaafb(0x13e))),_(this,_0x1aaafb(0x8c),this[_0x1aaafb(0x132)]['asObservable']()),_(this,_0x1aaafb(0xcc),!0x1),_(this,'_commandDisposable',null),_(this,_0x1aaafb(0x11e),null),(this[_0x1aaafb(0x158)]=_0x5656d9,this[_0x1aaafb(0xe0)]=_0xb069e,this[_0x1aaafb(0x135)]=_0x2bdef9,this[_0x1aaafb(0x9b)]=_0x4407e0,this[_0x1aaafb(0xbd)]=_0x32cfbd);}get[_0x557c04(0x112)](){const _0x1178ca=_0x557c04;return this[_0x1178ca(0x132)][_0x1178ca(0x152)]();}[_0x557c04(0xde)](){const _0x45c26f=_0x557c04;var _0xabf614;(_0xabf614=this[_0x45c26f(0xa2)])==null||_0xabf614[_0x45c26f(0xde)](),this[_0x45c26f(0x132)]['next'](_0x45c26f(0x13e)),this['_status$'][_0x45c26f(0xe7)]();}[_0x557c04(0x8e)](){const _0x5ee812=_0x557c04;return this[_0x5ee812(0x112)];}[_0x557c04(0xb3)](){const _0x40c836=_0x557c04;this[_0x40c836(0xcc)]||(this[_0x40c836(0xcc)]=!0x0,this[_0x40c836(0xe0)][_0x40c836(0xda)][_0x40c836(0x105)](I[_0x40c836(0xee)](this[_0x40c836(0x123)]))[_0x40c836(0x14c)](_0x520ddc=>{const _0xdcc801=_0x40c836;switch(_0x520ddc){case b[_0xdcc801(0xf3)][_0xdcc801(0xb7)]:this[_0xdcc801(0x129)]();break;case b[_0xdcc801(0xf3)][_0xdcc801(0x8d)]:this[_0xdcc801(0xf7)]();break;}}),this[_0x40c836(0xe0)][_0x40c836(0x91)][_0x40c836(0x105)](I[_0x40c836(0xee)](this[_0x40c836(0x123)]))[_0x40c836(0x14c)](_0x58dfdd=>{const _0x57c581=_0x40c836,{eventID:_0x3e58fb}=_0x58dfdd;switch(_0x3e58fb){case d[_0x57c581(0x102)][_0x57c581(0x116)]:this[_0x57c581(0x125)](_0x58dfdd);break;case d['CollaborationEvent'][_0x57c581(0xcd)]:this[_0x57c581(0xbe)](_0x58dfdd);break;case d[_0x57c581(0x102)][_0x57c581(0xc7)]:this[_0x57c581(0x10b)]();break;case d[_0x57c581(0x102)]['NEW_CHANGESETS']:this[_0x57c581(0x11d)](_0x58dfdd);break;}}));}['tryStartPresenting'](){const _0x564479=_0x557c04;this[_0x564479(0xe0)][_0x564479(0xd7)]({'eventID':d[_0x564479(0x102)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x564479(0x158)],'userID':this[_0x564479(0xe0)][_0x564479(0x108)]()}},this[_0x564479(0x158)]);}[_0x557c04(0x97)](){const _0x5237e4=_0x557c04;this[_0x5237e4(0x112)]===_0x5237e4(0x11b)&&(this[_0x5237e4(0x132)][_0x5237e4(0x113)](_0x5237e4(0x13e)),this[_0x5237e4(0xe0)][_0x5237e4(0xd7)]({'eventID':d[_0x5237e4(0x102)][_0x5237e4(0xc7)],'data':{'unitID':this[_0x5237e4(0x158)]}},this[_0x5237e4(0x158)]));}[_0x557c04(0x96)](){const _0x54c3a6=_0x557c04;this[_0x54c3a6(0x112)]===_0x54c3a6(0xaa)&&(this[_0x54c3a6(0x132)][_0x54c3a6(0x113)](_0x54c3a6(0x155)),this[_0x54c3a6(0x154)]());}[_0x557c04(0x14e)](){const _0x3a5e1b=_0x557c04;this[_0x3a5e1b(0x112)]===_0x3a5e1b(0x155)&&this['_stopFollowing']();}[_0x557c04(0x125)](_0x3b0fc4){const _0x55075f=_0x557c04,{presenter:_0x51740d}=_0x3b0fc4[_0x55075f(0x11a)],_0x25f918=this['_collabSession'][_0x55075f(0x108)]();this['_presenter']=_0x51740d,_0x51740d===_0x25f918?(this[_0x55075f(0xa8)](),this[_0x55075f(0xf8)]()):this[_0x55075f(0x112)]!==_0x55075f(0xaa)&&(this[_0x55075f(0x13c)](),this['_startFollowing']());}['_fetchOperations'](){const _0x6d3563=_0x557c04,_0x3ca65f={'eventID':d['CollaborationEvent'][_0x6d3563(0x157)]};this['_collabSession']['send'](_0x3ca65f,this[_0x6d3563(0x158)]);}[_0x557c04(0x10b)](){const _0x482b3a=_0x557c04;this[_0x482b3a(0x11e)]=null,this[_0x482b3a(0x112)]!==_0x482b3a(0x11b)&&this[_0x482b3a(0xdb)]();}[_0x557c04(0x11d)](_0x31f2e8){const _0x3e3db1=_0x557c04;if(this[_0x3e3db1(0x112)]===_0x3e3db1(0x155)&&this[_0x3e3db1(0x11e)]===_0x31f2e8[_0x3e3db1(0x11a)][_0x3e3db1(0xa6)]){const _0x31ee40=d[_0x3e3db1(0x126)](_0x31f2e8[_0x3e3db1(0x11a)])[_0x3e3db1(0xea)][_0x3e3db1(0x11c)]()['find'](_0x224009=>_0x224009['id']===C[_0x3e3db1(0x138)]['id']);if(_0x31ee40){const _0x32e4ea=_0x31ee40['params'][_0x3e3db1(0x109)],_0x1c977c=_0x31ee40['params'][_0x3e3db1(0xaf)]['id'];setTimeout(()=>{const _0x1fbb53=_0x3e3db1;this[_0x1fbb53(0xbd)][_0x1fbb53(0x117)](C[_0x1fbb53(0xc4)]['id'],{'unitId':_0x32e4ea,'subUnitId':_0x1c977c},{'fromCollab':!0x0});});}}}[_0x557c04(0xf8)](){const _0x1b7c32=_0x557c04;this['_status$'][_0x1b7c32(0x113)](_0x1b7c32(0x11b));const _0x191cf9=new Map(),_0x16155c=this['_commandDisposable']=new o['DisposableCollection']();_0x16155c['add'](o[_0x1b7c32(0x81)](()=>{const _0x1dbaa6=_0x1b7c32;_0x191cf9['forEach'](_0x2bddc3=>_0x2bddc3[_0x1dbaa6(0xe7)]()),_0x191cf9[_0x1dbaa6(0x148)]();})),_0x16155c['add'](this[_0x1b7c32(0xbd)][_0x1b7c32(0xec)](_0x19c7c1=>{const _0x297319=_0x1b7c32;var _0x5ae1ca;if(_0x19c7c1[_0x297319(0xd3)]!==o[_0x297319(0xd0)][_0x297319(0xab)]||!this['_liveShareService'][_0x297319(0xfb)](_0x19c7c1['id']))return;const {id:_0x3a577f}=_0x19c7c1;let _0x4fa0b8;_0x191cf9[_0x297319(0xdd)](_0x3a577f)?_0x4fa0b8=_0x191cf9[_0x297319(0x153)](_0x3a577f):(_0x4fa0b8=new O[(_0x297319(0xd9))](),_0x191cf9['set'](_0x3a577f,_0x4fa0b8),_0x4fa0b8[_0x297319(0x105)](I['throttleTime']((_0x5ae1ca=this[_0x297319(0x135)][_0x297319(0xad)](k))!=null?_0x5ae1ca:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x297319(0x14c)](_0x3b5ead=>{const _0x29015a=_0x297319;this[_0x29015a(0xe0)][_0x29015a(0xd7)]({'eventID':d[_0x29015a(0x102)][_0x29015a(0xcd)],'data':{'unitID':this['_unitID'],'operations':{[_0x3b5ead['id']]:{'id':_0x3b5ead['id'],'params':JSON[_0x29015a(0x12d)](_0x3b5ead[_0x29015a(0xe5)])}}}},this[_0x29015a(0x158)]);})),_0x4fa0b8[_0x297319(0x113)](_0x19c7c1);})),this[_0x1b7c32(0x9b)][_0x1b7c32(0x139)](this['_unitID'])['forEach'](_0x2b1b42=>this['_collabSession'][_0x1b7c32(0xd7)]({'eventID':d[_0x1b7c32(0x102)][_0x1b7c32(0xcd)],'data':{'unitID':this[_0x1b7c32(0x158)],'operations':{[_0x2b1b42['id']]:{'id':_0x2b1b42['id'],'params':JSON['stringify'](_0x2b1b42[_0x1b7c32(0xe5)])}}}},this['_unitID']));}[_0x557c04(0x13c)](){const _0x25509d=_0x557c04;var _0x391b4a;this[_0x25509d(0x132)]['next']('idle'),(_0x391b4a=this[_0x25509d(0xa2)])==null||_0x391b4a[_0x25509d(0xde)](),this[_0x25509d(0xa2)]=null;}[_0x557c04(0x154)](){const _0x21db10=_0x557c04;var _0x310a01;(_0x310a01=this[_0x21db10(0xa2)])==null||_0x310a01[_0x21db10(0xde)](),this['_status$'][_0x21db10(0x113)]('following');}[_0x557c04(0xdb)](){const _0x3a5433=_0x557c04;var _0x26c5a5;this['_status$'][_0x3a5433(0x113)](_0x3a5433(0x13e)),(_0x26c5a5=this['_commandDisposable'])==null||_0x26c5a5[_0x3a5433(0xde)](),this[_0x3a5433(0xa2)]=null;}[_0x557c04(0xa8)](){const _0x541930=_0x557c04;var _0x308874;this[_0x541930(0x132)][_0x541930(0x113)](_0x541930(0xaa)),(_0x308874=this[_0x541930(0xa2)])==null||_0x308874['dispose']();}['_handleOperation'](_0x5e5712){const _0x54d7cd=_0x557c04;if([_0x54d7cd(0x11b),'not-following',_0x54d7cd(0xc5)][_0x54d7cd(0xca)](this['_status'])||!_0x5e5712[_0x54d7cd(0x11a)][_0x54d7cd(0xc1)]||_0x5e5712[_0x54d7cd(0x11a)][_0x54d7cd(0xc1)]===this[_0x54d7cd(0xe0)][_0x54d7cd(0x108)]())return;this[_0x54d7cd(0x112)]===_0x54d7cd(0x13e)&&this[_0x54d7cd(0x154)]();const _0xcdb119=_0x5e5712[_0x54d7cd(0x11a)][_0x54d7cd(0x127)];Object[_0x54d7cd(0x9d)](_0xcdb119)[_0x54d7cd(0xed)](_0x37b4a1=>{const _0x30f53c=_0x54d7cd;this[_0x30f53c(0xbd)]['executeCommand'](_0x37b4a1['id'],_0x37b4a1['params']?JSON[_0x30f53c(0xa1)](_0x37b4a1[_0x30f53c(0xe5)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x5cc0b5=_0x557c04;var _0x32d29c;this[_0x5cc0b5(0x132)]['next']('offline'),(_0x32d29c=this[_0x5cc0b5(0xa2)])==null||_0x32d29c[_0x5cc0b5(0xde)]();}['_handleOnline'](){const _0x2f080a=_0x557c04;this[_0x2f080a(0x132)][_0x2f080a(0x113)](_0x2f080a(0x13e)),this[_0x2f080a(0x104)]();}},exports[_0x557c04(0xb0)]=P([S(0x2,o[_0x557c04(0xa3)]),S(0x3,o[_0x557c04(0x8b)](E)),S(0x4,o['ICommandService'])],exports[_0x557c04(0xb0)]);function $(){const _0x4fac57=_0x557c04,_0x4365ba=p['useDependency'](exports[_0x4fac57(0x14f)]),_0x5d418f=p[_0x4fac57(0x82)](o[_0x4fac57(0xe9)]),_0x22a218=p[_0x4fac57(0xd5)](()=>_0x5d418f[_0x4fac57(0x9e)](o[_0x4fac57(0xf5)][_0x4fac57(0x13f)]),void 0x0,!0x1,[]),[_0x389557,_0x358234]=v['useState'](null),[_0x5773b1,_0x2bf206]=v[_0x4fac57(0xb9)](u[_0x4fac57(0x103)]),_0x40eaea=v[_0x4fac57(0x121)](null);return v['useEffect'](()=>(_0x22a218&&_0x4365ba[_0x4fac57(0x147)](_0x22a218[_0x4fac57(0x94)]())[_0x4fac57(0x93)](_0x4f0585=>{const _0x173eb9=_0x4fac57;_0x358234(_0x4f0585),_0x40eaea[_0x173eb9(0xd4)]=_0x4f0585[_0x173eb9(0x8c)][_0x173eb9(0x14c)](_0x1d01fc=>{_0x2bf206(_0x1d01fc);});}),()=>{const _0x1dcdd4=_0x4fac57;var _0x108a70;(_0x108a70=_0x40eaea[_0x1dcdd4(0xd4)])==null||_0x108a70['unsubscribe'](),_0x40eaea[_0x1dcdd4(0xd4)]=null;}),[_0x22a218,_0x4365ba]),_0x389557?l[_0x4fac57(0x110)](f[_0x4fac57(0x89)],{'align':'end','disabled':_0x5773b1===u[_0x4fac57(0xb7)],'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[_0x4fac57(0x110)](W,{'status':_0x5773b1,'coordinator':_0x389557}),'children':l[_0x4fac57(0x110)](_0x4fac57(0xd2),{'className':f[_0x4fac57(0x86)](_0x4fac57(0x128),{'univer-cursor-not-allowed':_0x5773b1===u[_0x4fac57(0xb7)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5773b1!==u['OFFLINE']}),'type':_0x4fac57(0xd2),'children':l[_0x4fac57(0x110)](R,{'className':'univer-size-4'})})}):null;}function W(_0x372b2a){const _0x51e667=_0x557c04,{status:_0x186919,coordinator:_0x9aaf65}=_0x372b2a;switch(_0x186919){case u[_0x51e667(0x103)]:return l[_0x51e667(0x110)](G,{'coordinator':_0x9aaf65});case u[_0x51e667(0xbf)]:return l[_0x51e667(0x110)](B,{'coordinator':_0x9aaf65});case u['NOT_FOLLOWING']:return l[_0x51e667(0x110)](Y,{'coordinator':_0x9aaf65});case u[_0x51e667(0xb7)]:return l[_0x51e667(0x110)](J,{});case u[_0x51e667(0x14d)]:return l[_0x51e667(0x110)](Z,{'coordinator':_0x9aaf65});default:return null;}}function G(_0x2eb49a){const _0xaeecce=_0x557c04,{coordinator:_0x8449e8}=_0x2eb49a;return l[_0xaeecce(0xbc)](l['Fragment'],{'children':[l[_0xaeecce(0x110)](_0xaeecce(0x88),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xaeecce(0xc8)}),l[_0xaeecce(0x110)](f['Button'],{'onClick':()=>_0x8449e8[_0xaeecce(0x99)](),'children':_0xaeecce(0xfa)})]});}function B(_0x521dd0){const _0x4e11e9=_0x557c04,{coordinator:_0x141958}=_0x521dd0;return l['jsxs'](l[_0x4e11e9(0xa5)],{'children':[l['jsx'](_0x4e11e9(0x88),{'className':_0x4e11e9(0xfd),'children':_0x4e11e9(0xe8)}),l[_0x4e11e9(0x110)](f[_0x4e11e9(0x13a)],{'onClick':()=>_0x141958[_0x4e11e9(0x14e)](),'children':_0x4e11e9(0xf1)})]});}function Y(_0x1608aa){const _0x1b4172=_0x557c04,{coordinator:_0x570682}=_0x1608aa;return l[_0x1b4172(0xbc)](l[_0x1b4172(0xa5)],{'children':[l['jsx'](_0x1b4172(0x88),{'className':_0x1b4172(0xfd),'children':_0x1b4172(0xe4)}),l['jsx'](f[_0x1b4172(0x13a)],{'variant':_0x1b4172(0x159),'onClick':()=>_0x570682[_0x1b4172(0x96)](),'children':_0x1b4172(0x85)})]});}function Z(_0x4c6eb7){const _0x33c166=_0x557c04,{coordinator:_0x722e0c}=_0x4c6eb7;return l['jsxs'](l[_0x33c166(0xa5)],{'children':[l['jsx'](_0x33c166(0x88),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x33c166(0xf2)}),l[_0x33c166(0x110)](f[_0x33c166(0x13a)],{'variant':'default','onClick':()=>_0x722e0c['stopPresenting'](),'children':'Stop\x20presenting'})]});}function J(){const _0x53a325=_0x557c04;return l['jsx'](l[_0x53a325(0xa5)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x557c04(0xa4)],z=(_0xa96d7,_0xa25f9d,_0x11df96,_0x30c6e0)=>{const _0x5acf53=_0x557c04;for(var _0x5602b3=_0x30c6e0>0x1?void 0x0:_0x30c6e0?K(_0xa25f9d,_0x11df96):_0xa25f9d,_0x429005=_0xa96d7[_0x5acf53(0x12a)]-0x1,_0x44a84f;_0x429005>=0x0;_0x429005--)(_0x44a84f=_0xa96d7[_0x429005])&&(_0x5602b3=_0x44a84f(_0x5602b3)||_0x5602b3);return _0x5602b3;},L=(_0x166a4b,_0x59170c)=>(_0x17ae95,_0x4af04a)=>_0x59170c(_0x17ae95,_0x4af04a,_0x166a4b);exports['DesktopLiveShareController']=class extends o[_0x557c04(0x13b)]{constructor(_0x2ee938,_0x4eb44b){const _0xeaa2a5=_0x557c04;super(),this[_0xeaa2a5(0xfe)]=_0x2ee938,this[_0xeaa2a5(0xae)]=_0x4eb44b,this[_0xeaa2a5(0x140)]();}['_mountLiveShare'](){const _0x69504b=_0x557c04;this[_0x69504b(0x9a)](this['_uiPartsService']['registerComponent'](p[_0x69504b(0xb4)][_0x69504b(0x98)],()=>p[_0x69504b(0xf0)]($,this[_0x69504b(0xfe)])));}},exports[_0x557c04(0xd8)]=z([L(0x0,o['Inject'](o['Injector'])),L(0x1,p[_0x557c04(0x100)])],exports['DesktopLiveShareController']);const Q=_0x557c04(0x9f),w={};var X=Object[_0x557c04(0xa4)],ee=(_0x55e75c,_0x4da847,_0x211ebc,_0x3a0c64)=>{const _0x3a0b65=_0x557c04;for(var _0x1be8f3=_0x3a0c64>0x1?void 0x0:_0x3a0c64?X(_0x4da847,_0x211ebc):_0x4da847,_0x573f91=_0x55e75c[_0x3a0b65(0x12a)]-0x1,_0x43f0de;_0x573f91>=0x0;_0x573f91--)(_0x43f0de=_0x55e75c[_0x573f91])&&(_0x1be8f3=_0x43f0de(_0x1be8f3)||_0x1be8f3);return _0x1be8f3;},te=(_0x14fe0b,_0x467eb6)=>(_0x49e61a,_0x515c89)=>_0x467eb6(_0x49e61a,_0x515c89,_0x14fe0b);let m=class extends o['Disposable']{constructor(_0x217b21){super(),this['_liveShareService']=_0x217b21,this['_init']();}['_init'](){const _0x1d8809=_0x557c04;[D[_0x1d8809(0x149)]['id'],D[_0x1d8809(0x14b)]['id'],C['SetWorksheetActiveOperation']['id']][_0x1d8809(0xed)](_0x419d65=>{const _0x33f67e=_0x1d8809;this['disposeWithMe'](this[_0x33f67e(0x9b)][_0x33f67e(0xfc)](_0x419d65));});}};function _0x2d86(_0x2bf38a,_0x25e813){const _0x5f2a71=_0x5f2a();return _0x2d86=function(_0x2d8665,_0x100b11){_0x2d8665=_0x2d8665-0x81;let _0x18ba7e=_0x5f2a71[_0x2d8665];return _0x18ba7e;},_0x2d86(_0x2bf38a,_0x25e813);}m=ee([te(0x0,o[_0x557c04(0x8b)](E))],m);var ie=Object[_0x557c04(0x10a)],se=Object[_0x557c04(0xa4)],ne=(_0x16f97b,_0x39ea79,_0x556d9a)=>_0x39ea79 in _0x16f97b?ie(_0x16f97b,_0x39ea79,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x556d9a}):_0x16f97b[_0x39ea79]=_0x556d9a,re=(_0x2f756e,_0x2012eb,_0x213b93,_0x3c5b21)=>{const _0x5a3ac8=_0x557c04;for(var _0x42c8f8=_0x3c5b21>0x1?void 0x0:_0x3c5b21?se(_0x2012eb,_0x213b93):_0x2012eb,_0x455004=_0x2f756e[_0x5a3ac8(0x12a)]-0x1,_0x2bd81b;_0x455004>=0x0;_0x455004--)(_0x2bd81b=_0x2f756e[_0x455004])&&(_0x42c8f8=_0x2bd81b(_0x42c8f8)||_0x42c8f8);return _0x42c8f8;},N=(_0x420b67,_0x11382e)=>(_0x1c445d,_0x26c38f)=>_0x11382e(_0x1c445d,_0x26c38f,_0x420b67),A=(_0x463c57,_0x2814d1,_0x2e1fb0)=>ne(_0x463c57,typeof _0x2814d1!=_0x557c04(0xf9)?_0x2814d1+'':_0x2814d1,_0x2e1fb0);const oe=_0x557c04(0x118);exports['UniverLiveSharePlugin']=class extends o[_0x557c04(0xce)]{constructor(_0x66c09=w,_0xb4579a,_0x42eff8){const _0x5ad6ec=_0x557c04;super(),this[_0x5ad6ec(0x146)]=_0x66c09,this[_0x5ad6ec(0xfe)]=_0xb4579a,this[_0x5ad6ec(0x135)]=_0x42eff8;const {..._0x18de49}=o['merge']({},w,this['_config']);this['_configService'][_0x5ad6ec(0xd6)](Q,_0x18de49);}[_0x557c04(0xf4)](){const _0xe790b9=_0x557c04;o[_0xe790b9(0x137)](this[_0xe790b9(0xfe)],o[_0xe790b9(0x115)]([[E],[exports[_0xe790b9(0x14f)]],[m],[exports[_0xe790b9(0xd8)]]],this[_0xe790b9(0x146)][_0xe790b9(0x11f)])),o[_0xe790b9(0xdf)](this[_0xe790b9(0xfe)],[[m]]);}['onRendered'](){const _0x1fd30c=_0x557c04;o['touchDependencies'](this['_injector'],[[exports[_0x1fd30c(0xd8)]]]);}},A(exports[_0x557c04(0xdc)],_0x557c04(0xd3),o['UniverInstanceType'][_0x557c04(0x10e)]),A(exports[_0x557c04(0xdc)],_0x557c04(0x120),oe),exports[_0x557c04(0xdc)]=re([o['DependentOn'](b[_0x557c04(0xa9)]),N(0x1,o[_0x557c04(0x8b)](o[_0x557c04(0x142)])),N(0x2,o[_0x557c04(0xa3)])],exports[_0x557c04(0xdc)]),exports[_0x557c04(0x124)]=$,exports[_0x557c04(0xc0)]=E,exports[_0x557c04(0x151)]=u;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x4648f1=_0x325e;function _0x3468(){const _0x5d59c1=['getStatus','15921TwnmZe','executeCommand','extend','1942548LrGSwn','92244lUIfED','6930ffQmpO','No\x20active\x20workbook\x20found.','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','syncExecuteCommand','get','_injector','getLiveShareCoordinatorSync','_initialize','tryStartPresenting','stopPresenting','getSheetId','getId','56zIqtGB','4184068wamPvx','getUnitId','37wUMELC','startRow','getRenderById','60hbomvd','startColumn','getActiveWorkbook','43943086AuZxJZ','getLiveShareStatus','stopFollowing','IDLE','_commandService','1512096zwowwR','LiveShareStatusEnum','634870xcinpU'];_0x3468=function(){return _0x5d59c1;};return _0x3468();}(function(_0x309c34,_0x20e27a){const _0x321ed6=_0x325e,_0x3269ea=_0x309c34();while(!![]){try{const _0x308032=-parseInt(_0x321ed6(0x17d))/0x1*(-parseInt(_0x321ed6(0x190))/0x2)+parseInt(_0x321ed6(0x18f))/0x3+parseInt(_0x321ed6(0x17b))/0x4+-parseInt(_0x321ed6(0x18a))/0x5*(parseInt(_0x321ed6(0x180))/0x6)+parseInt(_0x321ed6(0x17a))/0x7*(parseInt(_0x321ed6(0x188))/0x8)+parseInt(_0x321ed6(0x18c))/0x9*(parseInt(_0x321ed6(0x16e))/0xa)+-parseInt(_0x321ed6(0x183))/0xb;if(_0x308032===_0x20e27a)break;else _0x3269ea['push'](_0x3269ea['shift']());}catch(_0x303288){_0x3269ea['push'](_0x3269ea['shift']());}}}(_0x3468,0xd5416));import{LiveShareController as _0x351dda,LiveShareStatus as _0x65b6a5}from'@univerjs-pro/live-share';function _0x325e(_0x486581,_0x3beec4){const _0x34681c=_0x3468();return _0x325e=function(_0x325e8b,_0x20cc05){_0x325e8b=_0x325e8b-0x16e;let _0x412165=_0x34681c[_0x325e8b];return _0x412165;},_0x325e(_0x486581,_0x3beec4);}import{IRenderManagerService as _0x56edfb}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x128df4}from'@univerjs/sheets';import{SetScrollOperation as _0x4c9be2}from'@univerjs/sheets-ui';import{FRange as _0x5a02c4}from'@univerjs/sheets/facade';import{FUniver as _0x2ca598,FEnum as _0xacc36f}from'@univerjs/core/facade';class I extends _0x5a02c4{[_0x4648f1(0x175)](_0x140018,_0x2c4b30,_0x25b7cf,_0x2cb8a4,_0x5b5921){const _0x1ff392=_0x4648f1,_0xec7c3a=_0x140018['get'](_0x351dda),_0x183a38=_0x140018['get'](_0x56edfb),_0x2aeef1=_0x2c4b30[_0x1ff392(0x17c)](),_0x3ed51c=_0x2c4b30['getActiveSheet'](),_0x2f151b=_0xec7c3a[_0x1ff392(0x174)](_0x2aeef1);(_0x2f151b==null?void 0x0:_0x2f151b['getStatus']())!==_0x65b6a5['PRESENTING']||(_0x25b7cf[_0x1ff392(0x178)]()!==_0x3ed51c[_0x1ff392(0x178)]()&&this[_0x1ff392(0x187)][_0x1ff392(0x18d)](_0x128df4['id'],{'unitId':_0x2aeef1,'subUnitId':_0x25b7cf[_0x1ff392(0x178)]()}),!_0x183a38[_0x1ff392(0x17f)](_0x2aeef1))||_0x5b5921[_0x1ff392(0x171)](_0x4c9be2['id'],{'unitId':_0x2c4b30[_0x1ff392(0x17c)](),'sheetId':_0x25b7cf['getSheetId'](),'sheetViewStartRow':_0x2cb8a4[_0x1ff392(0x17e)],'sheetViewStartColumn':_0x2cb8a4[_0x1ff392(0x181)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x5a02c4['extend'](I);class m extends _0x2ca598{[_0x4648f1(0x184)](){const _0x2b552c=_0x4648f1;var _0x5187b5,_0xa4b566;const _0x49b250=this[_0x2b552c(0x173)][_0x2b552c(0x172)](_0x351dda),_0x2ce986=(_0x5187b5=this[_0x2b552c(0x182)]())==null?void 0x0:_0x5187b5[_0x2b552c(0x179)]();if(!_0x2ce986)throw new Error(_0x2b552c(0x16f));const _0x4132b1=_0x49b250[_0x2b552c(0x174)](_0x2ce986);return(_0xa4b566=_0x4132b1==null?void 0x0:_0x4132b1[_0x2b552c(0x18b)]())!=null?_0xa4b566:_0x65b6a5[_0x2b552c(0x186)];}['startFollowing'](){const _0x559ab7=_0x4648f1;var _0x54f8cf;const _0x6bc560=this[_0x559ab7(0x173)][_0x559ab7(0x172)](_0x351dda),_0x4c8c91=(_0x54f8cf=this[_0x559ab7(0x182)]())==null?void 0x0:_0x54f8cf[_0x559ab7(0x179)]();if(!_0x4c8c91)throw new Error(_0x559ab7(0x16f));const _0x529394=_0x6bc560[_0x559ab7(0x174)](_0x4c8c91);if(!_0x529394)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x529394['startFollowing']();}[_0x4648f1(0x185)](){const _0x178efe=_0x4648f1;var _0x555bdc;const _0x5dd584=this['_injector']['get'](_0x351dda),_0x1b5981=(_0x555bdc=this[_0x178efe(0x182)]())==null?void 0x0:_0x555bdc[_0x178efe(0x179)]();if(!_0x1b5981)throw new Error('No\x20active\x20workbook\x20found.');const _0x1672b7=_0x5dd584[_0x178efe(0x174)](_0x1b5981);if(!_0x1672b7)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1672b7[_0x178efe(0x185)]();}['startPresenting'](){const _0x5c4feb=_0x4648f1;var _0x1fd458;const _0x1585b0=this['_injector'][_0x5c4feb(0x172)](_0x351dda),_0x1af546=(_0x1fd458=this[_0x5c4feb(0x182)]())==null?void 0x0:_0x1fd458[_0x5c4feb(0x179)]();if(!_0x1af546)throw new Error(_0x5c4feb(0x16f));const _0x7cf0e9=_0x1585b0[_0x5c4feb(0x174)](_0x1af546);if(!_0x7cf0e9)throw new Error(_0x5c4feb(0x170));_0x7cf0e9[_0x5c4feb(0x176)]();}[_0x4648f1(0x177)](){const _0x2e59f5=_0x4648f1;var _0x30d458;const _0x451aae=this[_0x2e59f5(0x173)][_0x2e59f5(0x172)](_0x351dda),_0xfb6b00=(_0x30d458=this[_0x2e59f5(0x182)]())==null?void 0x0:_0x30d458[_0x2e59f5(0x179)]();if(!_0xfb6b00)throw new Error(_0x2e59f5(0x16f));const _0x3d456a=_0x451aae['getLiveShareCoordinatorSync'](_0xfb6b00);if(!_0x3d456a)throw new Error(_0x2e59f5(0x170));_0x3d456a[_0x2e59f5(0x177)]();}}_0x2ca598[_0x4648f1(0x18e)](m);class C extends _0xacc36f{get[_0x4648f1(0x189)](){return _0x65b6a5;}}_0xacc36f[_0x4648f1(0x18e)](C);
1
+ const _0x364c8a=_0x285d;(function(_0x3a2731,_0x53b725){const _0x474556=_0x285d,_0x1f4bde=_0x3a2731();while(!![]){try{const _0x4e0e74=-parseInt(_0x474556(0x197))/0x1+-parseInt(_0x474556(0x19c))/0x2+parseInt(_0x474556(0x1ae))/0x3*(parseInt(_0x474556(0x1a4))/0x4)+parseInt(_0x474556(0x1a8))/0x5*(parseInt(_0x474556(0x1a3))/0x6)+-parseInt(_0x474556(0x1ad))/0x7+parseInt(_0x474556(0x1a9))/0x8*(-parseInt(_0x474556(0x190))/0x9)+parseInt(_0x474556(0x19b))/0xa*(parseInt(_0x474556(0x1a5))/0xb);if(_0x4e0e74===_0x53b725)break;else _0x1f4bde['push'](_0x1f4bde['shift']());}catch(_0x8a1861){_0x1f4bde['push'](_0x1f4bde['shift']());}}}(_0x13c5,0xb97a8));import{LiveShareController as _0xe6e695,LiveShareStatus as _0xf99993}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x92f1ce}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x40cefd}from'@univerjs/sheets';function _0x13c5(){const _0x52bc73=['_commandService','startPresenting','1479122hfvyjx','getActiveWorkbook','startRow','startColumn','34633120MmCEiI','2231776SXnyFI','_injector','getLiveShareCoordinatorSync','getSheetId','_initialize','tryStartPresenting','startFollowing','6LTxvPj','8kxbQqu','11azWisD','executeCommand','extend','1447085msFrZn','8uzGRea','No\x20active\x20workbook\x20found.','PRESENTING','getId','1914388aJYKFM','269949uthRqI','IDLE','syncExecuteCommand','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','2740329GgyCSA','getUnitId','get','stopFollowing','getStatus'];_0x13c5=function(){return _0x52bc73;};return _0x13c5();}import{SetScrollOperation as _0x5a7a7f}from'@univerjs/sheets-ui';import{FRange as _0x13d6fc}from'@univerjs/sheets/facade';import{FUniver as _0x99dee3,FEnum as _0x42d318}from'@univerjs/core/facade';class I extends _0x13d6fc{[_0x364c8a(0x1a0)](_0x3b3707,_0x2646a4,_0x2ba177,_0x3a902f,_0x5435b2){const _0x18614c=_0x364c8a,_0x29fcb8=_0x3b3707[_0x18614c(0x192)](_0xe6e695),_0x25d58d=_0x3b3707[_0x18614c(0x192)](_0x92f1ce),_0x4b0d1a=_0x2646a4[_0x18614c(0x191)](),_0x2a2c09=_0x2646a4['getActiveSheet'](),_0x4ae63a=_0x29fcb8[_0x18614c(0x19e)](_0x4b0d1a);(_0x4ae63a==null?void 0x0:_0x4ae63a[_0x18614c(0x194)]())!==_0xf99993[_0x18614c(0x1ab)]||(_0x2ba177['getSheetId']()!==_0x2a2c09[_0x18614c(0x19f)]()&&this[_0x18614c(0x195)][_0x18614c(0x1a6)](_0x40cefd['id'],{'unitId':_0x4b0d1a,'subUnitId':_0x2ba177[_0x18614c(0x19f)]()}),!_0x25d58d['getRenderById'](_0x4b0d1a))||_0x5435b2[_0x18614c(0x18e)](_0x5a7a7f['id'],{'unitId':_0x2646a4[_0x18614c(0x191)](),'sheetId':_0x2ba177['getSheetId'](),'sheetViewStartRow':_0x3a902f[_0x18614c(0x199)],'sheetViewStartColumn':_0x3a902f[_0x18614c(0x19a)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x285d(_0x20ccda,_0x35090f){const _0x13c51b=_0x13c5();return _0x285d=function(_0x285d40,_0x580952){_0x285d40=_0x285d40-0x18e;let _0x18db7d=_0x13c51b[_0x285d40];return _0x18db7d;},_0x285d(_0x20ccda,_0x35090f);}_0x13d6fc['extend'](I);class m extends _0x99dee3{['getLiveShareStatus'](){const _0x5579db=_0x364c8a;var _0x3ab854,_0x1b6d4f;const _0x1aae08=this['_injector'][_0x5579db(0x192)](_0xe6e695),_0x18f085=(_0x3ab854=this['getActiveWorkbook']())==null?void 0x0:_0x3ab854[_0x5579db(0x1ac)]();if(!_0x18f085)throw new Error(_0x5579db(0x1aa));const _0x502600=_0x1aae08[_0x5579db(0x19e)](_0x18f085);return(_0x1b6d4f=_0x502600==null?void 0x0:_0x502600[_0x5579db(0x194)]())!=null?_0x1b6d4f:_0xf99993[_0x5579db(0x1af)];}['startFollowing'](){const _0x3a754f=_0x364c8a;var _0x136cfc;const _0xdfa234=this[_0x3a754f(0x19d)][_0x3a754f(0x192)](_0xe6e695),_0x16c4b1=(_0x136cfc=this['getActiveWorkbook']())==null?void 0x0:_0x136cfc[_0x3a754f(0x1ac)]();if(!_0x16c4b1)throw new Error('No\x20active\x20workbook\x20found.');const _0x382c78=_0xdfa234[_0x3a754f(0x19e)](_0x16c4b1);if(!_0x382c78)throw new Error(_0x3a754f(0x18f));_0x382c78[_0x3a754f(0x1a2)]();}[_0x364c8a(0x193)](){const _0x1746c2=_0x364c8a;var _0x35c55c;const _0x1658cf=this[_0x1746c2(0x19d)][_0x1746c2(0x192)](_0xe6e695),_0x383f30=(_0x35c55c=this[_0x1746c2(0x198)]())==null?void 0x0:_0x35c55c[_0x1746c2(0x1ac)]();if(!_0x383f30)throw new Error(_0x1746c2(0x1aa));const _0x15f529=_0x1658cf[_0x1746c2(0x19e)](_0x383f30);if(!_0x15f529)throw new Error(_0x1746c2(0x18f));_0x15f529['stopFollowing']();}[_0x364c8a(0x196)](){const _0x4ea349=_0x364c8a;var _0x3ef428;const _0x20e6d8=this[_0x4ea349(0x19d)][_0x4ea349(0x192)](_0xe6e695),_0x30e6b8=(_0x3ef428=this[_0x4ea349(0x198)]())==null?void 0x0:_0x3ef428[_0x4ea349(0x1ac)]();if(!_0x30e6b8)throw new Error(_0x4ea349(0x1aa));const _0x5689d1=_0x20e6d8[_0x4ea349(0x19e)](_0x30e6b8);if(!_0x5689d1)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5689d1[_0x4ea349(0x1a1)]();}['stopPresenting'](){const _0x4af348=_0x364c8a;var _0x399ada;const _0x9934ad=this[_0x4af348(0x19d)]['get'](_0xe6e695),_0x739f32=(_0x399ada=this[_0x4af348(0x198)]())==null?void 0x0:_0x399ada[_0x4af348(0x1ac)]();if(!_0x739f32)throw new Error('No\x20active\x20workbook\x20found.');const _0xb71475=_0x9934ad['getLiveShareCoordinatorSync'](_0x739f32);if(!_0xb71475)throw new Error(_0x4af348(0x18f));_0xb71475['stopPresenting']();}}_0x99dee3[_0x364c8a(0x1a7)](m);class C extends _0x42d318{get['LiveShareStatusEnum'](){return _0xf99993;}}_0x42d318[_0x364c8a(0x1a7)](C);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x480de2=_0x3214;(function(_0x5b4f45,_0x275d27){const _0x10c06c=_0x3214,_0x4efa24=_0x5b4f45();while(!![]){try{const _0x31c00a=-parseInt(_0x10c06c(0xbb))/0x1*(-parseInt(_0x10c06c(0x10f))/0x2)+-parseInt(_0x10c06c(0xda))/0x3+-parseInt(_0x10c06c(0xbd))/0x4+-parseInt(_0x10c06c(0x117))/0x5*(-parseInt(_0x10c06c(0xfc))/0x6)+parseInt(_0x10c06c(0x8c))/0x7*(-parseInt(_0x10c06c(0x84))/0x8)+-parseInt(_0x10c06c(0x121))/0x9+parseInt(_0x10c06c(0x92))/0xa*(parseInt(_0x10c06c(0xae))/0xb);if(_0x31c00a===_0x275d27)break;else _0x4efa24['push'](_0x4efa24['shift']());}catch(_0x37728f){_0x4efa24['push'](_0x4efa24['shift']());}}}(_0x4f88,0x81f47));var J=Object['defineProperty'],K=(_0x461ca2,_0x4fd856,_0x413d35)=>_0x4fd856 in _0x461ca2?J(_0x461ca2,_0x4fd856,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x413d35}):_0x461ca2[_0x4fd856]=_0x413d35,u=(_0x5b1943,_0x3e3b9e,_0x253d78)=>K(_0x5b1943,typeof _0x3e3b9e!=_0x480de2(0x106)?_0x3e3b9e+'':_0x3e3b9e,_0x253d78);import{Disposable as _0x445766,toDisposable as _0x5b0e28,IUniverInstanceService as _0x59e319,Inject as _0x31d8e9,Injector as _0x4d1ef7,IConfigService as _0xea2396,ICommandService as _0x358f4b,RxDisposable as _0x22ff37,UniverInstanceType as _0x1e0e7d,DisposableCollection as _0xb8bf1f,CommandType as _0x2baff1,DependentOn as _0x2532bd,Plugin as _0x218f1f,merge as _0x477aae,registerDependencies as _0xaed711,mergeOverrideWithDependencies as _0xb0235f,touchDependencies as _0xd465dc}from'@univerjs/core';import{useDependency as _0x5b95cb,useObservable as _0x477adc,IUIPartsService as _0x1618ae,BuiltInUIPart as _0x589e20,connectInjector as _0x2bfcca}from'@univerjs/ui';import{jsx as _0x4f48f3,jsxs as _0x4070ad,Fragment as _0x5480f9}from'react/jsx-runtime';import{Dropdown as _0x43303b,clsx as _0x219d87,Button as _0x5f10a4}from'@univerjs/design';import{useRef as _0x2d1821,createElement as _0x4e41ac,forwardRef as _0x46ea63,useState as _0x3126fc,useEffect as _0x42fb54}from'react';import{CollaborationEvent as _0x5cbca8,parseProtocolChangeset as _0x432e75}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x23bc86,SessionStatus as _0x1d465d,UniverCollaborationClientPlugin as _0x1e0ea8}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x29dcc9,SetWorksheetActiveOperation as _0x42d600}from'@univerjs/sheets';import{BehaviorSubject as _0x2d7f44,Subject as _0x35191d}from'rxjs';import{takeUntil as _0x227b42,throttleTime as _0x55381b}from'rxjs/operators';import{SetZoomRatioOperation as _0xee7cd,SetScrollOperation as _0x504137}from'@univerjs/sheets-ui';function k({ref:_0x1f377f,..._0x2b47fb}){const _0x59af70=_0x480de2,{icon:_0x39cd92,id:_0xa0f525,className:_0x4aa8ae,extend:_0x336fd9,..._0x504ac5}=_0x2b47fb,_0xbc87d8=(_0x59af70(0xa0)+_0xa0f525+'\x20'+(_0x4aa8ae||''))[_0x59af70(0xc9)](),_0x3ecab3=_0x2d1821('_'+Oe());return G(_0x39cd92,''+_0xa0f525,{'defIds':_0x39cd92['defIds'],'idSuffix':_0x3ecab3[_0x59af70(0x107)]},{'ref':_0x1f377f,'className':_0xbc87d8,..._0x504ac5},_0x336fd9);}function G(_0x8e1b9e,_0x4d9c84,_0x12c0b1,_0x4d9bee,_0x2a75a1){const _0x33094c=_0x480de2;return _0x4e41ac(_0x8e1b9e['tag'],{'key':_0x4d9c84,...be(_0x8e1b9e,_0x12c0b1,_0x2a75a1),..._0x4d9bee},(Ee(_0x8e1b9e,_0x12c0b1)[_0x33094c(0xb8)]||[])[_0x33094c(0x119)]((_0x451e06,_0x4c8de1)=>G(_0x451e06,_0x4d9c84+'-'+_0x8e1b9e[_0x33094c(0xf2)]+'-'+_0x4c8de1,_0x12c0b1,void 0x0,_0x2a75a1)));}function be(_0x16dc26,_0x2470f7,_0x4b0b64){const _0x37b053=_0x480de2,_0x3ba049={..._0x16dc26[_0x37b053(0xc5)]};_0x4b0b64!=null&&_0x4b0b64[_0x37b053(0xd9)]&&_0x3ba049[_0x37b053(0x112)]===_0x37b053(0xd9)&&(_0x3ba049['fill']=_0x4b0b64[_0x37b053(0xd9)]),_0x16dc26[_0x37b053(0xf2)]===_0x37b053(0xbe)&&_0x3ba049['id']&&(_0x3ba049['id']=_0x3ba049['id']+_0x2470f7['idSuffix']),Object[_0x37b053(0x11b)](_0x3ba049)[_0x37b053(0x11d)](([_0x5e987c,_0x16d5a5])=>{const _0x4f4e2b=_0x37b053;_0x5e987c==='mask'&&typeof _0x16d5a5==_0x4f4e2b(0x8f)&&(_0x3ba049[_0x5e987c]=_0x16d5a5[_0x4f4e2b(0xc4)](/url\(#(.*)\)/,_0x4f4e2b(0xaa)+_0x2470f7[_0x4f4e2b(0xef)]+')'));});const {defIds:_0x288fc2}=_0x2470f7;return!_0x288fc2||_0x288fc2[_0x37b053(0xbf)]===0x0||(_0x16dc26['tag']==='use'&&_0x3ba049[_0x37b053(0xab)]&&(_0x3ba049['xlink:href']=_0x3ba049['xlink:href']+_0x2470f7[_0x37b053(0xef)]),Object[_0x37b053(0x11b)](_0x3ba049)[_0x37b053(0x11d)](([_0x52a9f0,_0x2196f9])=>{const _0x2e47d9=_0x37b053;typeof _0x2196f9==_0x2e47d9(0x8f)&&(_0x3ba049[_0x52a9f0]=_0x2196f9[_0x2e47d9(0xc4)](/url\(#(.*)\)/,_0x2e47d9(0xaa)+_0x2470f7['idSuffix']+')'));})),_0x3ba049;}function _0x4f88(){const _0x44b2af=['univer-size-4','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','_fetchOperations','_commandService','pipe','getInitialStates','currentColor','end','LIVESHARE_NEW_HOST','registerComponent','_handleOnline','colorChannel1','2916078oYCONN','_status','Stop\x20following','_stopPresenting','You\x27re\x20presenting\x20the\x20document','path','_unitID','disposeWithMe','div','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','LIVESHARE_OPERATION','_status$','_liveShareService','Present\x20this\x20document','shouldShareOperation','has','Stop\x20presenting','UNIVER_SHEET','dispose$','PRESENTING','_startFollowing','idSuffix','UniverIcon','NEW_CHANGESETS','tag','LIVESHARE_TERMINATE','getLiveShareCoordinator','requireSession','_startPresenting','OFFLINE','LiveShareIcon','You\x27are\x20offline.','_configService','_univerInstanceService','28746NtXJEV','dispose','delete','idle','sessionStatus$','event$','_injector','getOwnPropertyDescriptor','none','IDLE','symbol','current','defineProperty','stopFollowing','HEADER_MENU','_handleOperation','setConfig','1em','_reporters','2638JazVTb','assign','defs','fill','type','subscribe','LIVESHARE_REQUEST_HOST','stringify','435lgdCCJ','_handleOffline','map','includes','entries','live-share-icon','forEach','_stopFollowing','_commandDisposable','following','8406279PXjokW','_startLiveShareCoordinator','getUnitId','executeCommand','toString','_uiPartsService','startFollowing','_init','37096NHKPto','init','onStarting','evenodd','_entities','presenting','_collabSessionService','univer-mb-3\x20univer-w-full\x20univer-text-sm','287bLhYqU','OPERATION','live-share.config','string','Start\x20following','FOLLOWING','6230bZgPbI','_config','svg','send','_beIdle','Start','params','tryStartPresenting','not-following','getTypeOfUnitDisposed$','getConfig','getTypeOfUnitAdded$','sheet','data','univerjs-icon\x20univerjs-icon-','UNIVER_UNKNOWN','pluginName','onCommandExecuted','get','next','_mountLiveShare','getLiveShareCoordinatorSync','complete','offline','url(#$1','xlink:href','_presenter','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','40304BMcGXR','reverse','stopPresenting','add','NOT_FOLLOWING','displayName','_handleNewHost','unitId','registerSharedOperation','_handleTerminate','children','getMemberID','from','31pQmyzD','_sharedOperations','447636cnNcDg','mask','length','getValue','set','onRendered','asObservable','replace','attrs','presenter','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','getCurrentTypeOfUnit$','trim','SAME_OPERATION_SHARE_INTERVAL','override','_collabSession','status$'];_0x4f88=function(){return _0x44b2af;};return _0x4f88();}function Ee(_0x3b253d,_0x1a020c){const _0xb4951d=_0x480de2;var _0x253c02;const {defIds:_0x210575}=_0x1a020c;return!_0x210575||_0x210575['length']===0x0?_0x3b253d:_0x3b253d['tag']===_0xb4951d(0x111)&&((_0x253c02=_0x3b253d[_0xb4951d(0xb8)])!=null&&_0x253c02['length'])?{..._0x3b253d,'children':_0x3b253d[_0xb4951d(0xb8)][_0xb4951d(0x119)](_0xbea93e=>typeof _0xbea93e[_0xb4951d(0xc5)]['id']==_0xb4951d(0x8f)&&_0x210575&&_0x210575[_0xb4951d(0x11a)](_0xbea93e['attrs']['id'])?{..._0xbea93e,'attrs':{..._0xbea93e[_0xb4951d(0xc5)],'id':_0xbea93e[_0xb4951d(0xc5)]['id']+_0x1a020c[_0xb4951d(0xef)]}}:_0xbea93e)}:_0x3b253d;}function Oe(){const _0x18f0fe=_0x480de2;return Math['random']()[_0x18f0fe(0x80)](0x24)['substring'](0x2,0x8);}k['displayName']=_0x480de2(0xf0);const we={'tag':_0x480de2(0x94),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x480de2(0x104),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x480de2(0x10d)},'children':[{'tag':_0x480de2(0xdf),'attrs':{'fill':_0x480de2(0xd4),'d':_0x480de2(0xcf)}},{'tag':'path','attrs':{'fill':_0x480de2(0xd4),'d':_0x480de2(0xe3),'fillRule':'evenodd','clipRule':_0x480de2(0x87)}}]},W=_0x46ea63(function(_0x3df12e,_0x413554){const _0x4cba78=_0x480de2;return _0x4e41ac(k,Object[_0x4cba78(0x110)]({},_0x3df12e,{'id':_0x4cba78(0x11c),'ref':_0x413554,'icon':we}));});W[_0x480de2(0xb3)]=_0x480de2(0xf8);class L extends _0x445766{constructor(){const _0x2f1256=_0x480de2;super(...arguments),u(this,_0x2f1256(0xbc),new Set()),u(this,_0x2f1256(0x10e),new Set());}['registerSharedOperation'](_0x9e9e4d){const _0x10aa7c=_0x480de2;return this['_sharedOperations'][_0x10aa7c(0xb1)](_0x9e9e4d),_0x5b0e28(()=>this[_0x10aa7c(0xbc)]['delete'](_0x9e9e4d));}['registerInitialStateReporter'](_0x260e19){const _0x2aecc4=_0x480de2;return this['_reporters'][_0x2aecc4(0xb1)](_0x260e19),_0x5b0e28(()=>this[_0x2aecc4(0x10e)][_0x2aecc4(0xfe)](_0x260e19));}['shouldShareOperation'](_0x2c5c2a){const _0x442917=_0x480de2;return this['_sharedOperations'][_0x442917(0xe9)](_0x2c5c2a);}['getInitialStates'](_0x1c0749){const _0x233238=_0x480de2;return Array[_0x233238(0xba)](this['_reporters'])[_0x233238(0x119)](_0x352188=>_0x352188(_0x1c0749));}}var Ne=Object[_0x480de2(0x103)],Y=(_0x478bc7,_0x580242,_0x5199e8,_0x1b7626)=>{const _0x58404b=_0x480de2;for(var _0x2b03cb=_0x1b7626>0x1?void 0x0:_0x1b7626?Ne(_0x580242,_0x5199e8):_0x580242,_0x49e4fc=_0x478bc7[_0x58404b(0xbf)]-0x1,_0x2a0e1e;_0x49e4fc>=0x0;_0x49e4fc--)(_0x2a0e1e=_0x478bc7[_0x49e4fc])&&(_0x2b03cb=_0x2a0e1e(_0x2b03cb)||_0x2b03cb);return _0x2b03cb;},_=(_0x1ee860,_0x48db45)=>(_0xa68f8c,_0x30646c)=>_0x48db45(_0xa68f8c,_0x30646c,_0x1ee860);let S=class extends _0x22ff37{constructor(_0x53007f,_0x36da91,_0x3de8a0){const _0x3824a1=_0x480de2;super(),u(this,_0x3824a1(0x88),new Map()),(this['_univerInstanceService']=_0x53007f,this['_injector']=_0x36da91,this[_0x3824a1(0x8a)]=_0x3de8a0,this['_init']());}async[_0x480de2(0xf4)](_0xdeef36){const _0x42f639=_0x480de2;return this[_0x42f639(0x88)][_0x42f639(0xe9)](_0xdeef36)||await this[_0x42f639(0x7d)](_0xdeef36),this[_0x42f639(0x88)][_0x42f639(0xa4)](_0xdeef36);}[_0x480de2(0xa7)](_0x3f6404){const _0x23f827=_0x480de2;var _0x1f01d4;return(_0x1f01d4=this['_entities'][_0x23f827(0xa4)](_0x3f6404))!=null?_0x1f01d4:null;}[_0x480de2(0x83)](){const _0x404733=_0x480de2;this[_0x404733(0xfb)][_0x404733(0x9d)](_0x1e0e7d[_0x404733(0xeb)])[_0x404733(0xd2)](_0x227b42(this['dispose$']))[_0x404733(0x114)](async _0x14f98f=>{const _0x25cae0=_0x404733,_0x5a31d4=_0x14f98f[_0x25cae0(0x7e)]();this['_entities'][_0x25cae0(0xe9)](_0x5a31d4)||this[_0x25cae0(0x7d)](_0x5a31d4);}),this['_univerInstanceService'][_0x404733(0x9b)](_0x1e0e7d[_0x404733(0xeb)])['pipe'](_0x227b42(this[_0x404733(0xec)]))[_0x404733(0x114)](_0x4d2dba=>{const _0x423f18=_0x404733,_0x66f1aa=_0x4d2dba[_0x423f18(0x7e)](),_0x1cc2c8=this[_0x423f18(0x88)]['get'](_0x66f1aa);_0x1cc2c8==null||_0x1cc2c8[_0x423f18(0xfd)]();});}async[_0x480de2(0x7d)](_0x23d24e){const _0x492e3a=_0x480de2,_0x56c05a=await this['_collabSessionService'][_0x492e3a(0xf5)](_0x23d24e),_0x1a44db=this[_0x492e3a(0x102)]['createInstance'](N,_0x23d24e,_0x56c05a);return _0x1a44db[_0x492e3a(0x85)](),this['_entities'][_0x492e3a(0xc1)](_0x23d24e,_0x1a44db),_0x1a44db;}};S=Y([_(0x0,_0x59e319),_(0x1,_0x31d8e9(_0x4d1ef7)),_(0x2,_0x31d8e9(_0x23bc86))],S);function _0x3214(_0x429c19,_0x580096){const _0x4f88eb=_0x4f88();return _0x3214=function(_0x32142e,_0x5e2814){_0x32142e=_0x32142e-0x7d;let _0x29b6e5=_0x4f88eb[_0x32142e];return _0x29b6e5;},_0x3214(_0x429c19,_0x580096);}var c=(_0x2250b0=>(_0x2250b0[_0x480de2(0xf7)]=_0x480de2(0xa9),_0x2250b0[_0x480de2(0x105)]=_0x480de2(0xff),_0x2250b0[_0x480de2(0x91)]=_0x480de2(0x120),_0x2250b0[_0x480de2(0xb2)]=_0x480de2(0x9a),_0x2250b0[_0x480de2(0xed)]='presenting',_0x2250b0))(c||{});const Ce=_0x480de2(0xca),De=0xc8;let N=class extends _0x22ff37{constructor(_0x3b1a1f,_0x17a899,_0x2677f2,_0x3f583b,_0x14b480){const _0x28d07f=_0x480de2;super(),u(this,'_status$',new _0x2d7f44('idle')),u(this,_0x28d07f(0xcd),this['_status$'][_0x28d07f(0xc3)]()),u(this,_0x28d07f(0x83),!0x1),u(this,_0x28d07f(0x11f),null),u(this,_0x28d07f(0xac),null),(this['_unitID']=_0x3b1a1f,this['_collabSession']=_0x17a899,this['_configService']=_0x2677f2,this[_0x28d07f(0xe6)]=_0x3f583b,this[_0x28d07f(0xd1)]=_0x14b480);}get['_status'](){const _0x1ac7d3=_0x480de2;return this[_0x1ac7d3(0xe5)][_0x1ac7d3(0xc0)]();}['dispose'](){const _0x5e09fc=_0x480de2;var _0x27a031;(_0x27a031=this['_commandDisposable'])==null||_0x27a031['dispose'](),this[_0x5e09fc(0xe5)][_0x5e09fc(0xa5)](_0x5e09fc(0xff)),this[_0x5e09fc(0xe5)][_0x5e09fc(0xa8)]();}['getStatus'](){const _0x5cdc36=_0x480de2;return this[_0x5cdc36(0xdb)];}[_0x480de2(0x85)](){const _0x4ed8f1=_0x480de2;this[_0x4ed8f1(0x83)]||(this[_0x4ed8f1(0x83)]=!0x0,this['_collabSession'][_0x4ed8f1(0x100)][_0x4ed8f1(0xd2)](_0x227b42(this[_0x4ed8f1(0xec)]))[_0x4ed8f1(0x114)](_0x55d50c=>{const _0x385180=_0x4ed8f1;switch(_0x55d50c){case _0x1d465d['OFFLINE']:this['_handleOffline']();break;case _0x1d465d['ONLINE']:this[_0x385180(0xd8)]();break;}}),this[_0x4ed8f1(0xcc)][_0x4ed8f1(0x101)][_0x4ed8f1(0xd2)](_0x227b42(this[_0x4ed8f1(0xec)]))[_0x4ed8f1(0x114)](_0x1de0f2=>{const _0x217b39=_0x4ed8f1,{eventID:_0x1bf5a4}=_0x1de0f2;switch(_0x1bf5a4){case _0x5cbca8[_0x217b39(0xd6)]:this[_0x217b39(0xb4)](_0x1de0f2);break;case _0x5cbca8[_0x217b39(0xe4)]:this[_0x217b39(0x10b)](_0x1de0f2);break;case _0x5cbca8[_0x217b39(0xf3)]:this[_0x217b39(0xb7)]();break;case _0x5cbca8[_0x217b39(0xf1)]:this['_handleNewChangeSets'](_0x1de0f2);break;}}));}[_0x480de2(0x99)](){const _0x1361b4=_0x480de2;this[_0x1361b4(0xcc)]['send']({'eventID':_0x5cbca8[_0x1361b4(0x115)],'data':{'unitID':this[_0x1361b4(0xe0)],'userID':this[_0x1361b4(0xcc)][_0x1361b4(0xb9)]()}},this['_unitID']);}[_0x480de2(0xb0)](){const _0x372e5c=_0x480de2;this[_0x372e5c(0xdb)]==='presenting'&&(this[_0x372e5c(0xe5)][_0x372e5c(0xa5)]('idle'),this[_0x372e5c(0xcc)][_0x372e5c(0x95)]({'eventID':_0x5cbca8[_0x372e5c(0xf3)],'data':{'unitID':this[_0x372e5c(0xe0)]}},this[_0x372e5c(0xe0)]));}[_0x480de2(0x82)](){const _0xc43a56=_0x480de2;this[_0xc43a56(0xdb)]===_0xc43a56(0x9a)&&(this[_0xc43a56(0xe5)]['next'](_0xc43a56(0x120)),this[_0xc43a56(0xee)]());}[_0x480de2(0x109)](){const _0x244dc1=_0x480de2;this['_status']===_0x244dc1(0x120)&&this[_0x244dc1(0x11e)]();}[_0x480de2(0xb4)](_0x5a0ec2){const _0x140271=_0x480de2,{presenter:_0x3208f0}=_0x5a0ec2['data'],_0x5bc018=this[_0x140271(0xcc)][_0x140271(0xb9)]();this[_0x140271(0xac)]=_0x3208f0,_0x3208f0===_0x5bc018?(this[_0x140271(0x11e)](),this[_0x140271(0xf6)]()):this[_0x140271(0xdb)]!==_0x140271(0x9a)&&(this[_0x140271(0xdd)](),this[_0x140271(0xee)]());}[_0x480de2(0xd0)](){const _0x5f54f6=_0x480de2,_0x4995df={'eventID':_0x5cbca8['LIVESHARE_FETCH_OPERATIONS']};this[_0x5f54f6(0xcc)][_0x5f54f6(0x95)](_0x4995df,this[_0x5f54f6(0xe0)]);}[_0x480de2(0xb7)](){const _0x49b11b=_0x480de2;this[_0x49b11b(0xac)]=null,this[_0x49b11b(0xdb)]!==_0x49b11b(0x89)&&this[_0x49b11b(0x96)]();}['_handleNewChangeSets'](_0x1b7096){const _0x153f42=_0x480de2;if(this[_0x153f42(0xdb)]===_0x153f42(0x120)&&this[_0x153f42(0xac)]===_0x1b7096['data']['memberID']){const _0x34503f=_0x432e75(_0x1b7096[_0x153f42(0x9f)])['mutations'][_0x153f42(0xaf)]()['find'](_0x7afcd8=>_0x7afcd8['id']===_0x29dcc9['id']);if(_0x34503f){const _0x4ba76b=_0x34503f[_0x153f42(0x98)][_0x153f42(0xb5)],_0x15dba1=_0x34503f[_0x153f42(0x98)][_0x153f42(0x9e)]['id'];setTimeout(()=>{const _0x2ecaf5=_0x153f42;this['_commandService'][_0x2ecaf5(0x7f)](_0x42d600['id'],{'unitId':_0x4ba76b,'subUnitId':_0x15dba1},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x177141=_0x480de2;this['_status$']['next'](_0x177141(0x89));const _0x39f6be=new Map(),_0x3ff90b=this['_commandDisposable']=new _0xb8bf1f();_0x3ff90b[_0x177141(0xb1)](_0x5b0e28(()=>{_0x39f6be['forEach'](_0x293cd6=>_0x293cd6['complete']()),_0x39f6be['clear']();})),_0x3ff90b[_0x177141(0xb1)](this[_0x177141(0xd1)][_0x177141(0xa3)](_0x381eea=>{const _0x4a017b=_0x177141;var _0x4c0798;if(_0x381eea[_0x4a017b(0x113)]!==_0x2baff1[_0x4a017b(0x8d)]||!this['_liveShareService'][_0x4a017b(0xe8)](_0x381eea['id']))return;const {id:_0x520a4d}=_0x381eea;let _0x4f3b76;_0x39f6be['has'](_0x520a4d)?_0x4f3b76=_0x39f6be[_0x4a017b(0xa4)](_0x520a4d):(_0x4f3b76=new _0x35191d(),_0x39f6be[_0x4a017b(0xc1)](_0x520a4d,_0x4f3b76),_0x4f3b76[_0x4a017b(0xd2)](_0x55381b((_0x4c0798=this['_configService'][_0x4a017b(0x9c)](Ce))!=null?_0x4c0798:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4a017b(0x114)](_0x26fda9=>{const _0x3bd224=_0x4a017b;this[_0x3bd224(0xcc)]['send']({'eventID':_0x5cbca8[_0x3bd224(0xe4)],'data':{'unitID':this[_0x3bd224(0xe0)],'operations':{[_0x26fda9['id']]:{'id':_0x26fda9['id'],'params':JSON[_0x3bd224(0x116)](_0x26fda9[_0x3bd224(0x98)])}}}},this[_0x3bd224(0xe0)]);})),_0x4f3b76['next'](_0x381eea);})),this[_0x177141(0xe6)][_0x177141(0xd3)](this[_0x177141(0xe0)])[_0x177141(0x11d)](_0x21f65b=>this[_0x177141(0xcc)][_0x177141(0x95)]({'eventID':_0x5cbca8[_0x177141(0xe4)],'data':{'unitID':this[_0x177141(0xe0)],'operations':{[_0x21f65b['id']]:{'id':_0x21f65b['id'],'params':JSON[_0x177141(0x116)](_0x21f65b['params'])}}}},this[_0x177141(0xe0)]));}[_0x480de2(0xdd)](){const _0x4cf352=_0x480de2;var _0xbf5732;this[_0x4cf352(0xe5)][_0x4cf352(0xa5)](_0x4cf352(0xff)),(_0xbf5732=this[_0x4cf352(0x11f)])==null||_0xbf5732[_0x4cf352(0xfd)](),this['_commandDisposable']=null;}[_0x480de2(0xee)](){const _0x21eac1=_0x480de2;var _0x50bcac;(_0x50bcac=this['_commandDisposable'])==null||_0x50bcac[_0x21eac1(0xfd)](),this[_0x21eac1(0xe5)][_0x21eac1(0xa5)](_0x21eac1(0x120));}['_beIdle'](){const _0x2a0fd7=_0x480de2;var _0x24cd7a;this[_0x2a0fd7(0xe5)][_0x2a0fd7(0xa5)]('idle'),(_0x24cd7a=this[_0x2a0fd7(0x11f)])==null||_0x24cd7a[_0x2a0fd7(0xfd)](),this[_0x2a0fd7(0x11f)]=null;}[_0x480de2(0x11e)](){const _0x98543e=_0x480de2;var _0x4bf86b;this[_0x98543e(0xe5)][_0x98543e(0xa5)](_0x98543e(0x9a)),(_0x4bf86b=this[_0x98543e(0x11f)])==null||_0x4bf86b[_0x98543e(0xfd)]();}[_0x480de2(0x10b)](_0x58c3f4){const _0x3a4f0c=_0x480de2;if(['presenting',_0x3a4f0c(0x9a),_0x3a4f0c(0xa9)][_0x3a4f0c(0x11a)](this[_0x3a4f0c(0xdb)])||!_0x58c3f4[_0x3a4f0c(0x9f)][_0x3a4f0c(0xc6)]||_0x58c3f4[_0x3a4f0c(0x9f)][_0x3a4f0c(0xc6)]===this[_0x3a4f0c(0xcc)][_0x3a4f0c(0xb9)]())return;this[_0x3a4f0c(0xdb)]===_0x3a4f0c(0xff)&&this[_0x3a4f0c(0xee)]();const _0x2d886e=_0x58c3f4[_0x3a4f0c(0x9f)]['operations'];Object['values'](_0x2d886e)[_0x3a4f0c(0x11d)](_0x16922f=>{const _0x23ed7c=_0x3a4f0c;this['_commandService']['executeCommand'](_0x16922f['id'],_0x16922f[_0x23ed7c(0x98)]?JSON['parse'](_0x16922f[_0x23ed7c(0x98)]):null,{'fromCollab':!0x0});});}[_0x480de2(0x118)](){const _0x2a63a5=_0x480de2;var _0x5e25ed;this[_0x2a63a5(0xe5)][_0x2a63a5(0xa5)](_0x2a63a5(0xa9)),(_0x5e25ed=this[_0x2a63a5(0x11f)])==null||_0x5e25ed[_0x2a63a5(0xfd)]();}[_0x480de2(0xd8)](){const _0xc83cf5=_0x480de2;this[_0xc83cf5(0xe5)][_0xc83cf5(0xa5)](_0xc83cf5(0xff)),this[_0xc83cf5(0xd0)]();}};N=Y([_(0x2,_0xea2396),_(0x3,_0x31d8e9(L)),_(0x4,_0x358f4b)],N);function Le(){const _0xca5cec=_0x480de2,_0x15a293=_0x5b95cb(S),_0x4c337b=_0x5b95cb(_0x59e319),_0x3ab8b0=_0x477adc(()=>_0x4c337b[_0xca5cec(0xc8)](_0x1e0e7d['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x43c7fc,_0x493cc2]=_0x3126fc(null),[_0x52d3b0,_0x34bd49]=_0x3126fc(c[_0xca5cec(0x105)]),_0x3e6863=_0x2d1821(null);return _0x42fb54(()=>(_0x3ab8b0&&_0x15a293[_0xca5cec(0xf4)](_0x3ab8b0[_0xca5cec(0x7e)]())['then'](_0x142b4d=>{const _0x55dda4=_0xca5cec;_0x493cc2(_0x142b4d),_0x3e6863[_0x55dda4(0x107)]=_0x142b4d[_0x55dda4(0xcd)][_0x55dda4(0x114)](_0x1375d4=>{_0x34bd49(_0x1375d4);});}),()=>{const _0x436328=_0xca5cec;var _0x4ea08b;(_0x4ea08b=_0x3e6863[_0x436328(0x107)])==null||_0x4ea08b['unsubscribe'](),_0x3e6863[_0x436328(0x107)]=null;}),[_0x3ab8b0,_0x15a293]),_0x43c7fc?_0x4f48f3(_0x43303b,{'align':_0xca5cec(0xd5),'disabled':_0x52d3b0===c[_0xca5cec(0xf7)],'className':_0xca5cec(0xc7),'overlay':_0x4f48f3(Re,{'status':_0x52d3b0,'coordinator':_0x43c7fc}),'children':_0x4f48f3('button',{'className':_0x219d87(_0xca5cec(0xad),{'univer-cursor-not-allowed':_0x52d3b0===c[_0xca5cec(0xf7)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x52d3b0!==c[_0xca5cec(0xf7)]}),'type':'button','children':_0x4f48f3(W,{'className':_0xca5cec(0xce)})})}):null;}function Re(_0x2ef174){const _0x277700=_0x480de2,{status:_0x2430bb,coordinator:_0x338fed}=_0x2ef174;switch(_0x2430bb){case c[_0x277700(0x105)]:return _0x4f48f3($e,{'coordinator':_0x338fed});case c[_0x277700(0x91)]:return _0x4f48f3(xe,{'coordinator':_0x338fed});case c[_0x277700(0xb2)]:return _0x4f48f3(Pe,{'coordinator':_0x338fed});case c[_0x277700(0xf7)]:return _0x4f48f3(Te,{});case c['PRESENTING']:return _0x4f48f3(Ae,{'coordinator':_0x338fed});default:return null;}}function $e(_0xfad782){const _0x5995a0=_0x480de2,{coordinator:_0x5ee935}=_0xfad782;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5995a0(0xe7)}),_0x4f48f3(_0x5f10a4,{'onClick':()=>_0x5ee935['tryStartPresenting'](),'children':_0x5995a0(0x97)})]});}function xe(_0x4a7620){const _0x13e27f=_0x480de2,{coordinator:_0x541788}=_0x4a7620;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3(_0x13e27f(0xe2),{'className':_0x13e27f(0x8b),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x4f48f3(_0x5f10a4,{'onClick':()=>_0x541788['stopFollowing'](),'children':_0x13e27f(0xdc)})]});}function Pe(_0x185a58){const _0x400cfa=_0x480de2,{coordinator:_0xa38fab}=_0x185a58;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3(_0x400cfa(0xe2),{'className':_0x400cfa(0x8b),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4f48f3(_0x5f10a4,{'variant':'text','onClick':()=>_0xa38fab[_0x400cfa(0x82)](),'children':_0x400cfa(0x90)})]});}function Ae(_0x14e769){const _0x49059d=_0x480de2,{coordinator:_0x393521}=_0x14e769;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3(_0x49059d(0xe2),{'className':_0x49059d(0x8b),'children':_0x49059d(0xde)}),_0x4f48f3(_0x5f10a4,{'variant':'default','onClick':()=>_0x393521[_0x49059d(0xb0)](),'children':_0x49059d(0xea)})]});}function Te(){const _0x35fc15=_0x480de2;return _0x4f48f3(_0x5480f9,{'children':_0x35fc15(0xf9)});}var Fe=Object[_0x480de2(0x103)],He=(_0xc389b6,_0x47ae8a,_0x4a2f48,_0x244129)=>{for(var _0x5e3960=_0x244129>0x1?void 0x0:_0x244129?Fe(_0x47ae8a,_0x4a2f48):_0x47ae8a,_0x54a047=_0xc389b6['length']-0x1,_0x19907b;_0x54a047>=0x0;_0x54a047--)(_0x19907b=_0xc389b6[_0x54a047])&&(_0x5e3960=_0x19907b(_0x5e3960)||_0x5e3960);return _0x5e3960;},A=(_0x12cc2f,_0x2cada1)=>(_0x41e21f,_0x613bb1)=>_0x2cada1(_0x41e21f,_0x613bb1,_0x12cc2f);let m=class extends _0x445766{constructor(_0x172e53,_0x4f79ea){const _0x1a884a=_0x480de2;super(),this[_0x1a884a(0x102)]=_0x172e53,this['_uiPartsService']=_0x4f79ea,this['_mountLiveShare']();}[_0x480de2(0xa6)](){const _0x5ae6c7=_0x480de2;this['disposeWithMe'](this[_0x5ae6c7(0x81)][_0x5ae6c7(0xd7)](_0x589e20[_0x5ae6c7(0x10a)],()=>_0x2bfcca(Le,this[_0x5ae6c7(0x102)])));}};m=He([A(0x0,_0x31d8e9(_0x4d1ef7)),A(0x1,_0x1618ae)],m);const ye=_0x480de2(0x8e),T={};var Ue=Object[_0x480de2(0x103)],Ve=(_0x249b57,_0x4669ab,_0x3ceaa9,_0xa47879)=>{const _0x14820b=_0x480de2;for(var _0x5a1957=_0xa47879>0x1?void 0x0:_0xa47879?Ue(_0x4669ab,_0x3ceaa9):_0x4669ab,_0xd5a94d=_0x249b57[_0x14820b(0xbf)]-0x1,_0x261a0a;_0xd5a94d>=0x0;_0xd5a94d--)(_0x261a0a=_0x249b57[_0xd5a94d])&&(_0x5a1957=_0x261a0a(_0x5a1957)||_0x5a1957);return _0x5a1957;},je=(_0x12cfd5,_0x4e7413)=>(_0x56a754,_0x9be823)=>_0x4e7413(_0x56a754,_0x9be823,_0x12cfd5);let I=class extends _0x445766{constructor(_0x3ba195){const _0x3b4077=_0x480de2;super(),this[_0x3b4077(0xe6)]=_0x3ba195,this[_0x3b4077(0x83)]();}[_0x480de2(0x83)](){const _0x146712=_0x480de2;[_0xee7cd['id'],_0x504137['id'],_0x42d600['id']][_0x146712(0x11d)](_0x4a77ef=>{const _0x505cfc=_0x146712;this[_0x505cfc(0xe1)](this[_0x505cfc(0xe6)][_0x505cfc(0xb6)](_0x4a77ef));});}};I=Ve([je(0x0,_0x31d8e9(L))],I);var Me=Object[_0x480de2(0x108)],ke=Object[_0x480de2(0x103)],Ge=(_0x3f3f64,_0x21c44a,_0x49d929)=>_0x21c44a in _0x3f3f64?Me(_0x3f3f64,_0x21c44a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49d929}):_0x3f3f64[_0x21c44a]=_0x49d929,We=(_0x77c05d,_0x551572,_0x1732b4,_0x2c59c5)=>{const _0x170ee9=_0x480de2;for(var _0x1a3120=_0x2c59c5>0x1?void 0x0:_0x2c59c5?ke(_0x551572,_0x1732b4):_0x551572,_0xd600ef=_0x77c05d[_0x170ee9(0xbf)]-0x1,_0x500c05;_0xd600ef>=0x0;_0xd600ef--)(_0x500c05=_0x77c05d[_0xd600ef])&&(_0x1a3120=_0x500c05(_0x1a3120)||_0x1a3120);return _0x1a3120;},F=(_0x2901fb,_0x49a302)=>(_0x3613d9,_0x164f78)=>_0x49a302(_0x3613d9,_0x164f78,_0x2901fb),B=(_0x3a68c3,_0x176827,_0xb3ba0f)=>Ge(_0x3a68c3,typeof _0x176827!=_0x480de2(0x106)?_0x176827+'':_0x176827,_0xb3ba0f);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x218f1f{constructor(_0x1d5e66=T,_0x5d5c39,_0xc484d4){const _0x2d2aa6=_0x480de2;super(),this[_0x2d2aa6(0x93)]=_0x1d5e66,this[_0x2d2aa6(0x102)]=_0x5d5c39,this[_0x2d2aa6(0xfa)]=_0xc484d4;const {..._0x40ad25}=_0x477aae({},T,this[_0x2d2aa6(0x93)]);this[_0x2d2aa6(0xfa)][_0x2d2aa6(0x10c)](ye,_0x40ad25);}[_0x480de2(0x86)](){const _0x170149=_0x480de2;_0xaed711(this[_0x170149(0x102)],_0xb0235f([[L],[S],[I],[m]],this[_0x170149(0x93)][_0x170149(0xcb)])),_0xd465dc(this[_0x170149(0x102)],[[I]]);}[_0x480de2(0xc2)](){const _0x14c429=_0x480de2;_0xd465dc(this[_0x14c429(0x102)],[[m]]);}};B(b,'type',_0x1e0e7d[_0x480de2(0xa1)]),B(b,_0x480de2(0xa2),Ye),b=We([_0x2532bd(_0x1e0ea8),F(0x1,_0x31d8e9(_0x4d1ef7)),F(0x2,_0xea2396)],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 _0x33f3a0=_0x2e44;(function(_0x5ad21f,_0x3dc78a){const _0x5d7d3f=_0x2e44,_0x18ce42=_0x5ad21f();while(!![]){try{const _0x20d940=-parseInt(_0x5d7d3f(0x225))/0x1*(-parseInt(_0x5d7d3f(0x1f2))/0x2)+-parseInt(_0x5d7d3f(0x25c))/0x3*(parseInt(_0x5d7d3f(0x274))/0x4)+parseInt(_0x5d7d3f(0x23f))/0x5+-parseInt(_0x5d7d3f(0x203))/0x6+-parseInt(_0x5d7d3f(0x249))/0x7*(-parseInt(_0x5d7d3f(0x264))/0x8)+parseInt(_0x5d7d3f(0x22b))/0x9*(parseInt(_0x5d7d3f(0x239))/0xa)+-parseInt(_0x5d7d3f(0x21f))/0xb*(parseInt(_0x5d7d3f(0x1ce))/0xc);if(_0x20d940===_0x3dc78a)break;else _0x18ce42['push'](_0x18ce42['shift']());}catch(_0x4c97a6){_0x18ce42['push'](_0x18ce42['shift']());}}}(_0x459e,0xad3af));var J=Object[_0x33f3a0(0x236)],K=(_0xc79036,_0x4e3ecf,_0xd7d539)=>_0x4e3ecf in _0xc79036?J(_0xc79036,_0x4e3ecf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd7d539}):_0xc79036[_0x4e3ecf]=_0xd7d539,u=(_0x4422ad,_0x345867,_0x3f3468)=>K(_0x4422ad,typeof _0x345867!='symbol'?_0x345867+'':_0x345867,_0x3f3468);import{Disposable as _0x123ebc,toDisposable as _0x31e46f,IUniverInstanceService as _0x56e919,Inject as _0x4770f0,Injector as _0x52080b,IConfigService as _0x404a20,ICommandService as _0x3d793e,RxDisposable as _0x17838a,UniverInstanceType as _0x1afb45,DisposableCollection as _0x5321e8,CommandType as _0x4795cf,DependentOn as _0x83a676,Plugin as _0x14031e,merge as _0x2fd27e,registerDependencies as _0x293650,mergeOverrideWithDependencies as _0x57eb35,touchDependencies as _0x19de09}from'@univerjs/core';import{useDependency as _0x26c8a9,useObservable as _0x4c2a85,IUIPartsService as _0x510518,BuiltInUIPart as _0x221148,connectInjector as _0x1211a}from'@univerjs/ui';import{jsx as _0x2d6d1e,jsxs as _0x4bfea3,Fragment as _0x4d5d84}from'react/jsx-runtime';import{Dropdown as _0x2eaec2,clsx as _0xf2d602,Button as _0x5c367e}from'@univerjs/design';import{useRef as _0x278b84,createElement as _0x3b10f6,forwardRef as _0x10402b,useState as _0x575f52,useEffect as _0x1a5f41}from'react';import{CollaborationEvent as _0xb16a85,parseProtocolChangeset as _0xcaafe2}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x58b373,SessionStatus as _0x178ef0,UniverCollaborationClientPlugin as _0x5984b3}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x10d1bf,SetWorksheetActiveOperation as _0x46858f}from'@univerjs/sheets';import{BehaviorSubject as _0x176527,Subject as _0x3a662b}from'rxjs';import{takeUntil as _0x37843a,throttleTime as _0x5f4e61}from'rxjs/operators';import{SetZoomRatioOperation as _0x57d381,SetScrollOperation as _0x23a13f}from'@univerjs/sheets-ui';function k({ref:_0x5b4cea,..._0x38787f}){const _0x3aa2f8=_0x33f3a0,{icon:_0x35d148,id:_0x19eaf2,className:_0x2a3884,extend:_0x303024,..._0x53100e}=_0x38787f,_0x15fd1b=(_0x3aa2f8(0x270)+_0x19eaf2+'\x20'+(_0x2a3884||''))[_0x3aa2f8(0x251)](),_0x50b4e7=_0x278b84('_'+Oe());return G(_0x35d148,''+_0x19eaf2,{'defIds':_0x35d148['defIds'],'idSuffix':_0x50b4e7['current']},{'ref':_0x5b4cea,'className':_0x15fd1b,..._0x53100e},_0x303024);}function G(_0x556d60,_0x9df4d4,_0x4fb525,_0xdf95c,_0x29ec95){const _0x46d3d6=_0x33f3a0;return _0x3b10f6(_0x556d60[_0x46d3d6(0x241)],{'key':_0x9df4d4,...be(_0x556d60,_0x4fb525,_0x29ec95),..._0xdf95c},(Ee(_0x556d60,_0x4fb525)[_0x46d3d6(0x1db)]||[])[_0x46d3d6(0x208)]((_0x401c42,_0x2cd970)=>G(_0x401c42,_0x9df4d4+'-'+_0x556d60[_0x46d3d6(0x241)]+'-'+_0x2cd970,_0x4fb525,void 0x0,_0x29ec95)));}function be(_0x3fc3ee,_0x278250,_0x114b3d){const _0x1be6fd=_0x33f3a0,_0x5e231b={..._0x3fc3ee['attrs']};_0x114b3d!=null&&_0x114b3d[_0x1be6fd(0x1f8)]&&_0x5e231b['fill']===_0x1be6fd(0x1f8)&&(_0x5e231b['fill']=_0x114b3d['colorChannel1']),_0x3fc3ee[_0x1be6fd(0x241)]===_0x1be6fd(0x1e0)&&_0x5e231b['id']&&(_0x5e231b['id']=_0x5e231b['id']+_0x278250[_0x1be6fd(0x245)]),Object[_0x1be6fd(0x23c)](_0x5e231b)[_0x1be6fd(0x228)](([_0x1cff51,_0x396038])=>{const _0x55f7d7=_0x1be6fd;_0x1cff51===_0x55f7d7(0x1e0)&&typeof _0x396038==_0x55f7d7(0x224)&&(_0x5e231b[_0x1cff51]=_0x396038[_0x55f7d7(0x1d6)](/url\(#(.*)\)/,'url(#$1'+_0x278250[_0x55f7d7(0x245)]+')'));});const {defIds:_0xdade56}=_0x278250;return!_0xdade56||_0xdade56[_0x1be6fd(0x21b)]===0x0||(_0x3fc3ee[_0x1be6fd(0x241)]===_0x1be6fd(0x258)&&_0x5e231b['xlink:href']&&(_0x5e231b[_0x1be6fd(0x1e2)]=_0x5e231b[_0x1be6fd(0x1e2)]+_0x278250[_0x1be6fd(0x245)]),Object[_0x1be6fd(0x23c)](_0x5e231b)[_0x1be6fd(0x228)](([_0x3d541b,_0x515e38])=>{const _0x350485=_0x1be6fd;typeof _0x515e38==_0x350485(0x224)&&(_0x5e231b[_0x3d541b]=_0x515e38[_0x350485(0x1d6)](/url\(#(.*)\)/,'url(#$1'+_0x278250[_0x350485(0x245)]+')'));})),_0x5e231b;}function Ee(_0x42c0ef,_0xd6ce40){const _0x230fdd=_0x33f3a0;var _0x3f6687;const {defIds:_0x1768f8}=_0xd6ce40;return!_0x1768f8||_0x1768f8['length']===0x0?_0x42c0ef:_0x42c0ef['tag']===_0x230fdd(0x1de)&&((_0x3f6687=_0x42c0ef['children'])!=null&&_0x3f6687[_0x230fdd(0x21b)])?{..._0x42c0ef,'children':_0x42c0ef['children'][_0x230fdd(0x208)](_0x1e6bad=>typeof _0x1e6bad[_0x230fdd(0x247)]['id']=='string'&&_0x1768f8&&_0x1768f8['includes'](_0x1e6bad[_0x230fdd(0x247)]['id'])?{..._0x1e6bad,'attrs':{..._0x1e6bad[_0x230fdd(0x247)],'id':_0x1e6bad[_0x230fdd(0x247)]['id']+_0xd6ce40[_0x230fdd(0x245)]}}:_0x1e6bad)}:_0x42c0ef;}function Oe(){const _0x39159b=_0x33f3a0;return Math[_0x39159b(0x237)]()[_0x39159b(0x1e6)](0x24)[_0x39159b(0x206)](0x2,0x8);}k[_0x33f3a0(0x20a)]=_0x33f3a0(0x25a);const we={'tag':'svg','attrs':{'xmlns':_0x33f3a0(0x1e5),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x33f3a0(0x23d),'height':'1em'},'children':[{'tag':_0x33f3a0(0x254),'attrs':{'fill':_0x33f3a0(0x21c),'d':_0x33f3a0(0x1f0)}},{'tag':_0x33f3a0(0x254),'attrs':{'fill':'currentColor','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':_0x33f3a0(0x1f4),'clipRule':_0x33f3a0(0x1f4)}}]},W=_0x10402b(function(_0x1133f4,_0x52c04b){const _0x4d89e6=_0x33f3a0;return _0x3b10f6(k,Object[_0x4d89e6(0x1d9)]({},_0x1133f4,{'id':_0x4d89e6(0x207),'ref':_0x52c04b,'icon':we}));});W[_0x33f3a0(0x20a)]='LiveShareIcon';class L extends _0x123ebc{constructor(){const _0x34dc27=_0x33f3a0;super(...arguments),u(this,_0x34dc27(0x1d0),new Set()),u(this,_0x34dc27(0x229),new Set());}['registerSharedOperation'](_0x914821){const _0x403db7=_0x33f3a0;return this['_sharedOperations'][_0x403db7(0x25b)](_0x914821),_0x31e46f(()=>this[_0x403db7(0x1d0)]['delete'](_0x914821));}['registerInitialStateReporter'](_0xb43a22){const _0x5385b1=_0x33f3a0;return this[_0x5385b1(0x229)][_0x5385b1(0x25b)](_0xb43a22),_0x31e46f(()=>this[_0x5385b1(0x229)]['delete'](_0xb43a22));}[_0x33f3a0(0x26d)](_0x1c1763){const _0x503683=_0x33f3a0;return this['_sharedOperations'][_0x503683(0x244)](_0x1c1763);}[_0x33f3a0(0x1fd)](_0x1267ab){const _0x24e62b=_0x33f3a0;return Array['from'](this[_0x24e62b(0x229)])[_0x24e62b(0x208)](_0x4fafe4=>_0x4fafe4(_0x1267ab));}}var Ne=Object[_0x33f3a0(0x24d)],Y=(_0x3ea768,_0x58f61a,_0xe93ef6,_0x51aebd)=>{const _0x67f94d=_0x33f3a0;for(var _0x4426c3=_0x51aebd>0x1?void 0x0:_0x51aebd?Ne(_0x58f61a,_0xe93ef6):_0x58f61a,_0x48ce84=_0x3ea768[_0x67f94d(0x21b)]-0x1,_0xdd11bf;_0x48ce84>=0x0;_0x48ce84--)(_0xdd11bf=_0x3ea768[_0x48ce84])&&(_0x4426c3=_0xdd11bf(_0x4426c3)||_0x4426c3);return _0x4426c3;},_=(_0x513a9f,_0x4ba8f1)=>(_0xfc4201,_0x4eb585)=>_0x4ba8f1(_0xfc4201,_0x4eb585,_0x513a9f);let S=class extends _0x17838a{constructor(_0x3758db,_0x4933f8,_0x5bf668){const _0x1894cf=_0x33f3a0;super(),u(this,'_entities',new Map()),(this['_univerInstanceService']=_0x3758db,this[_0x1894cf(0x1f9)]=_0x4933f8,this[_0x1894cf(0x1e4)]=_0x5bf668,this[_0x1894cf(0x23e)]());}async[_0x33f3a0(0x218)](_0x57f0fb){const _0x454f11=_0x33f3a0;return this[_0x454f11(0x275)]['has'](_0x57f0fb)||await this['_startLiveShareCoordinator'](_0x57f0fb),this[_0x454f11(0x275)][_0x454f11(0x20b)](_0x57f0fb);}[_0x33f3a0(0x22d)](_0x58cc5d){const _0x23bc19=_0x33f3a0;var _0x48ad61;return(_0x48ad61=this[_0x23bc19(0x275)][_0x23bc19(0x20b)](_0x58cc5d))!=null?_0x48ad61:null;}['_init'](){const _0x214d50=_0x33f3a0;this[_0x214d50(0x1d1)][_0x214d50(0x20c)](_0x1afb45[_0x214d50(0x1e1)])[_0x214d50(0x256)](_0x37843a(this['dispose$']))[_0x214d50(0x25e)](async _0x12f3c4=>{const _0x132751=_0x214d50,_0x454f48=_0x12f3c4[_0x132751(0x1f5)]();this[_0x132751(0x275)]['has'](_0x454f48)||this[_0x132751(0x1ee)](_0x454f48);}),this[_0x214d50(0x1d1)][_0x214d50(0x1da)](_0x1afb45[_0x214d50(0x1e1)])[_0x214d50(0x256)](_0x37843a(this['dispose$']))[_0x214d50(0x25e)](_0x3c7707=>{const _0x17a399=_0x214d50,_0x459a59=_0x3c7707[_0x17a399(0x1f5)](),_0xef1edc=this[_0x17a399(0x275)]['get'](_0x459a59);_0xef1edc==null||_0xef1edc[_0x17a399(0x26c)]();});}async[_0x33f3a0(0x1ee)](_0x674802){const _0x4402a1=_0x33f3a0,_0x2dc03b=await this[_0x4402a1(0x1e4)][_0x4402a1(0x243)](_0x674802),_0x4a00c3=this[_0x4402a1(0x1f9)][_0x4402a1(0x234)](N,_0x674802,_0x2dc03b);return _0x4a00c3[_0x4402a1(0x205)](),this[_0x4402a1(0x275)][_0x4402a1(0x1d2)](_0x674802,_0x4a00c3),_0x4a00c3;}};S=Y([_(0x0,_0x56e919),_(0x1,_0x4770f0(_0x52080b)),_(0x2,_0x4770f0(_0x58b373))],S);var c=(_0x27bf23=>(_0x27bf23[_0x33f3a0(0x24c)]='offline',_0x27bf23[_0x33f3a0(0x260)]=_0x33f3a0(0x1eb),_0x27bf23['FOLLOWING']='following',_0x27bf23['NOT_FOLLOWING']=_0x33f3a0(0x238),_0x27bf23['PRESENTING']=_0x33f3a0(0x255),_0x27bf23))(c||{});const Ce=_0x33f3a0(0x1df),De=0xc8;let N=class extends _0x17838a{constructor(_0x1d22cf,_0x92e78,_0x22e8c4,_0x52fee2,_0x1db30a){const _0x51c258=_0x33f3a0;super(),u(this,'_status$',new _0x176527('idle')),u(this,_0x51c258(0x1dd),this[_0x51c258(0x230)][_0x51c258(0x1dc)]()),u(this,'_init',!0x1),u(this,_0x51c258(0x268),null),u(this,'_presenter',null),(this[_0x51c258(0x263)]=_0x1d22cf,this[_0x51c258(0x1f1)]=_0x92e78,this[_0x51c258(0x23a)]=_0x22e8c4,this[_0x51c258(0x215)]=_0x52fee2,this[_0x51c258(0x1d4)]=_0x1db30a);}get['_status'](){const _0x438f46=_0x33f3a0;return this['_status$'][_0x438f46(0x1e3)]();}[_0x33f3a0(0x26c)](){const _0x27ec2c=_0x33f3a0;var _0x72d230;(_0x72d230=this[_0x27ec2c(0x268)])==null||_0x72d230['dispose'](),this['_status$'][_0x27ec2c(0x24b)](_0x27ec2c(0x1eb)),this[_0x27ec2c(0x230)][_0x27ec2c(0x220)]();}[_0x33f3a0(0x252)](){const _0x11edac=_0x33f3a0;return this[_0x11edac(0x25d)];}[_0x33f3a0(0x205)](){const _0x102587=_0x33f3a0;this['_init']||(this[_0x102587(0x23e)]=!0x0,this['_collabSession'][_0x102587(0x20f)][_0x102587(0x256)](_0x37843a(this['dispose$']))[_0x102587(0x25e)](_0x5ef95c=>{const _0x443f08=_0x102587;switch(_0x5ef95c){case _0x178ef0[_0x443f08(0x24c)]:this['_handleOffline']();break;case _0x178ef0[_0x443f08(0x257)]:this['_handleOnline']();break;}}),this[_0x102587(0x1f1)][_0x102587(0x222)][_0x102587(0x256)](_0x37843a(this[_0x102587(0x250)]))['subscribe'](_0x1be2fe=>{const _0x1fcfc9=_0x102587,{eventID:_0x1d0554}=_0x1be2fe;switch(_0x1d0554){case _0xb16a85[_0x1fcfc9(0x227)]:this[_0x1fcfc9(0x202)](_0x1be2fe);break;case _0xb16a85[_0x1fcfc9(0x1cf)]:this[_0x1fcfc9(0x232)](_0x1be2fe);break;case _0xb16a85[_0x1fcfc9(0x272)]:this['_handleTerminate']();break;case _0xb16a85[_0x1fcfc9(0x22f)]:this[_0x1fcfc9(0x200)](_0x1be2fe);break;}}));}['tryStartPresenting'](){const _0x25bb1b=_0x33f3a0;this[_0x25bb1b(0x1f1)][_0x25bb1b(0x253)]({'eventID':_0xb16a85['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x25bb1b(0x263)],'userID':this[_0x25bb1b(0x1f1)]['getMemberID']()}},this['_unitID']);}[_0x33f3a0(0x265)](){const _0x2f25aa=_0x33f3a0;this[_0x2f25aa(0x25d)]===_0x2f25aa(0x255)&&(this[_0x2f25aa(0x230)][_0x2f25aa(0x24b)](_0x2f25aa(0x1eb)),this[_0x2f25aa(0x1f1)][_0x2f25aa(0x253)]({'eventID':_0xb16a85[_0x2f25aa(0x272)],'data':{'unitID':this[_0x2f25aa(0x263)]}},this[_0x2f25aa(0x263)]));}['startFollowing'](){const _0x1316ad=_0x33f3a0;this['_status']===_0x1316ad(0x238)&&(this[_0x1316ad(0x230)]['next'](_0x1316ad(0x20e)),this['_startFollowing']());}[_0x33f3a0(0x248)](){const _0x4f16b7=_0x33f3a0;this[_0x4f16b7(0x25d)]===_0x4f16b7(0x20e)&&this[_0x4f16b7(0x26e)]();}[_0x33f3a0(0x202)](_0xbe7f27){const _0x592550=_0x33f3a0,{presenter:_0x1eb49d}=_0xbe7f27[_0x592550(0x214)],_0x16cf76=this[_0x592550(0x1f1)][_0x592550(0x216)]();this['_presenter']=_0x1eb49d,_0x1eb49d===_0x16cf76?(this['_stopFollowing'](),this[_0x592550(0x231)]()):this['_status']!==_0x592550(0x238)&&(this['_stopPresenting'](),this[_0x592550(0x211)]());}[_0x33f3a0(0x266)](){const _0x2e5bfd=_0x33f3a0,_0x4b6f72={'eventID':_0xb16a85['LIVESHARE_FETCH_OPERATIONS']};this[_0x2e5bfd(0x1f1)]['send'](_0x4b6f72,this[_0x2e5bfd(0x263)]);}[_0x33f3a0(0x1ef)](){const _0x40b8ab=_0x33f3a0;this[_0x40b8ab(0x1d7)]=null,this['_status']!==_0x40b8ab(0x255)&&this[_0x40b8ab(0x26a)]();}['_handleNewChangeSets'](_0x4801c3){const _0x4a918b=_0x33f3a0;if(this[_0x4a918b(0x25d)]===_0x4a918b(0x20e)&&this[_0x4a918b(0x1d7)]===_0x4801c3[_0x4a918b(0x214)]['memberID']){const _0x17c52d=_0xcaafe2(_0x4801c3[_0x4a918b(0x214)])[_0x4a918b(0x1ed)]['reverse']()[_0x4a918b(0x1e9)](_0x11313d=>_0x11313d['id']===_0x10d1bf['id']);if(_0x17c52d){const _0x327873=_0x17c52d[_0x4a918b(0x273)][_0x4a918b(0x267)],_0x432f38=_0x17c52d[_0x4a918b(0x273)][_0x4a918b(0x242)]['id'];setTimeout(()=>{const _0x1dfce2=_0x4a918b;this['_commandService'][_0x1dfce2(0x235)](_0x46858f['id'],{'unitId':_0x327873,'subUnitId':_0x432f38},{'fromCollab':!0x0});});}}}[_0x33f3a0(0x231)](){const _0x1f510d=_0x33f3a0;this[_0x1f510d(0x230)]['next'](_0x1f510d(0x255));const _0x2cd3f8=new Map(),_0x124d72=this[_0x1f510d(0x268)]=new _0x5321e8();_0x124d72[_0x1f510d(0x25b)](_0x31e46f(()=>{const _0x6feaf5=_0x1f510d;_0x2cd3f8[_0x6feaf5(0x228)](_0x3d00fa=>_0x3d00fa[_0x6feaf5(0x220)]()),_0x2cd3f8[_0x6feaf5(0x1ec)]();})),_0x124d72[_0x1f510d(0x25b)](this[_0x1f510d(0x1d4)]['onCommandExecuted'](_0xc6c9aa=>{const _0x41c79a=_0x1f510d;var _0x4fbf23;if(_0xc6c9aa[_0x41c79a(0x1fa)]!==_0x4795cf[_0x41c79a(0x21e)]||!this[_0x41c79a(0x215)][_0x41c79a(0x26d)](_0xc6c9aa['id']))return;const {id:_0x4cbfb6}=_0xc6c9aa;let _0x40e576;_0x2cd3f8[_0x41c79a(0x244)](_0x4cbfb6)?_0x40e576=_0x2cd3f8[_0x41c79a(0x20b)](_0x4cbfb6):(_0x40e576=new _0x3a662b(),_0x2cd3f8[_0x41c79a(0x1d2)](_0x4cbfb6,_0x40e576),_0x40e576[_0x41c79a(0x256)](_0x5f4e61((_0x4fbf23=this[_0x41c79a(0x23a)][_0x41c79a(0x22c)](Ce))!=null?_0x4fbf23:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x215ed=>{const _0x5ceb31=_0x41c79a;this['_collabSession']['send']({'eventID':_0xb16a85[_0x5ceb31(0x1cf)],'data':{'unitID':this[_0x5ceb31(0x263)],'operations':{[_0x215ed['id']]:{'id':_0x215ed['id'],'params':JSON[_0x5ceb31(0x1d5)](_0x215ed[_0x5ceb31(0x273)])}}}},this[_0x5ceb31(0x263)]);})),_0x40e576[_0x41c79a(0x24b)](_0xc6c9aa);})),this[_0x1f510d(0x215)][_0x1f510d(0x1fd)](this[_0x1f510d(0x263)])['forEach'](_0x144ee2=>this[_0x1f510d(0x1f1)][_0x1f510d(0x253)]({'eventID':_0xb16a85[_0x1f510d(0x1cf)],'data':{'unitID':this['_unitID'],'operations':{[_0x144ee2['id']]:{'id':_0x144ee2['id'],'params':JSON[_0x1f510d(0x1d5)](_0x144ee2[_0x1f510d(0x273)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x30eb79=_0x33f3a0;var _0xf112d3;this[_0x30eb79(0x230)]['next'](_0x30eb79(0x1eb)),(_0xf112d3=this['_commandDisposable'])==null||_0xf112d3[_0x30eb79(0x26c)](),this[_0x30eb79(0x268)]=null;}[_0x33f3a0(0x211)](){const _0x10ccbf=_0x33f3a0;var _0xae736d;(_0xae736d=this[_0x10ccbf(0x268)])==null||_0xae736d[_0x10ccbf(0x26c)](),this[_0x10ccbf(0x230)][_0x10ccbf(0x24b)](_0x10ccbf(0x20e));}[_0x33f3a0(0x26a)](){const _0x2139e5=_0x33f3a0;var _0x2fcef5;this['_status$'][_0x2139e5(0x24b)](_0x2139e5(0x1eb)),(_0x2fcef5=this['_commandDisposable'])==null||_0x2fcef5[_0x2139e5(0x26c)](),this['_commandDisposable']=null;}[_0x33f3a0(0x26e)](){const _0x179e36=_0x33f3a0;var _0x3cbe93;this[_0x179e36(0x230)][_0x179e36(0x24b)](_0x179e36(0x238)),(_0x3cbe93=this['_commandDisposable'])==null||_0x3cbe93['dispose']();}[_0x33f3a0(0x232)](_0x2de9b2){const _0x13c3c3=_0x33f3a0;if(['presenting','not-following',_0x13c3c3(0x1f3)]['includes'](this[_0x13c3c3(0x25d)])||!_0x2de9b2['data'][_0x13c3c3(0x221)]||_0x2de9b2[_0x13c3c3(0x214)][_0x13c3c3(0x221)]===this[_0x13c3c3(0x1f1)]['getMemberID']())return;this['_status']===_0x13c3c3(0x1eb)&&this[_0x13c3c3(0x211)]();const _0x59baa4=_0x2de9b2[_0x13c3c3(0x214)]['operations'];Object[_0x13c3c3(0x226)](_0x59baa4)[_0x13c3c3(0x228)](_0x9dbcdf=>{const _0x50be95=_0x13c3c3;this[_0x50be95(0x1d4)]['executeCommand'](_0x9dbcdf['id'],_0x9dbcdf[_0x50be95(0x273)]?JSON['parse'](_0x9dbcdf['params']):null,{'fromCollab':!0x0});});}[_0x33f3a0(0x1f6)](){const _0x488d37=_0x33f3a0;var _0x3eb656;this[_0x488d37(0x230)][_0x488d37(0x24b)](_0x488d37(0x1f3)),(_0x3eb656=this['_commandDisposable'])==null||_0x3eb656['dispose']();}[_0x33f3a0(0x209)](){const _0xeccbed=_0x33f3a0;this[_0xeccbed(0x230)][_0xeccbed(0x24b)](_0xeccbed(0x1eb)),this['_fetchOperations']();}};N=Y([_(0x2,_0x404a20),_(0x3,_0x4770f0(L)),_(0x4,_0x3d793e)],N);function Le(){const _0x103675=_0x33f3a0,_0x47e73a=_0x26c8a9(S),_0xa11217=_0x26c8a9(_0x56e919),_0x481d3a=_0x4c2a85(()=>_0xa11217[_0x103675(0x261)](_0x1afb45[_0x103675(0x1e1)]),void 0x0,!0x1,[]),[_0x691107,_0x505fb3]=_0x575f52(null),[_0x21ed23,_0x35588a]=_0x575f52(c[_0x103675(0x260)]),_0x48e1ff=_0x278b84(null);return _0x1a5f41(()=>(_0x481d3a&&_0x47e73a[_0x103675(0x218)](_0x481d3a[_0x103675(0x1f5)]())[_0x103675(0x1e8)](_0x2b0487=>{const _0x120805=_0x103675;_0x505fb3(_0x2b0487),_0x48e1ff[_0x120805(0x204)]=_0x2b0487[_0x120805(0x1dd)]['subscribe'](_0x5cace3=>{_0x35588a(_0x5cace3);});}),()=>{const _0x1a4c97=_0x103675;var _0x8285d4;(_0x8285d4=_0x48e1ff[_0x1a4c97(0x204)])==null||_0x8285d4[_0x1a4c97(0x25f)](),_0x48e1ff[_0x1a4c97(0x204)]=null;}),[_0x481d3a,_0x47e73a]),_0x691107?_0x2d6d1e(_0x2eaec2,{'align':'end','disabled':_0x21ed23===c[_0x103675(0x24c)],'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':_0x2d6d1e(Re,{'status':_0x21ed23,'coordinator':_0x691107}),'children':_0x2d6d1e(_0x103675(0x246),{'className':_0xf2d602(_0x103675(0x240),{'univer-cursor-not-allowed':_0x21ed23===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x21ed23!==c[_0x103675(0x24c)]}),'type':'button','children':_0x2d6d1e(W,{'className':_0x103675(0x24a)})})}):null;}function Re(_0x3d0acf){const _0x450982=_0x33f3a0,{status:_0x797ae3,coordinator:_0x262bff}=_0x3d0acf;switch(_0x797ae3){case c[_0x450982(0x260)]:return _0x2d6d1e($e,{'coordinator':_0x262bff});case c[_0x450982(0x219)]:return _0x2d6d1e(xe,{'coordinator':_0x262bff});case c[_0x450982(0x217)]:return _0x2d6d1e(Pe,{'coordinator':_0x262bff});case c[_0x450982(0x24c)]:return _0x2d6d1e(Te,{});case c[_0x450982(0x22e)]:return _0x2d6d1e(Ae,{'coordinator':_0x262bff});default:return null;}}function $e(_0x2c0556){const _0xb39eb6=_0x33f3a0,{coordinator:_0x5438de}=_0x2c0556;return _0x4bfea3(_0x4d5d84,{'children':[_0x2d6d1e(_0xb39eb6(0x1d8),{'className':_0xb39eb6(0x201),'children':_0xb39eb6(0x20d)}),_0x2d6d1e(_0x5c367e,{'onClick':()=>_0x5438de[_0xb39eb6(0x1fc)](),'children':_0xb39eb6(0x1fe)})]});}function xe(_0x3ca096){const _0x570720=_0x33f3a0,{coordinator:_0x270136}=_0x3ca096;return _0x4bfea3(_0x4d5d84,{'children':[_0x2d6d1e(_0x570720(0x1d8),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x570720(0x21a)}),_0x2d6d1e(_0x5c367e,{'onClick':()=>_0x270136[_0x570720(0x248)](),'children':_0x570720(0x271)})]});}function Pe(_0x2814d4){const _0x4b4f9f=_0x33f3a0,{coordinator:_0x9c82ea}=_0x2814d4;return _0x4bfea3(_0x4d5d84,{'children':[_0x2d6d1e(_0x4b4f9f(0x1d8),{'className':_0x4b4f9f(0x201),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2d6d1e(_0x5c367e,{'variant':_0x4b4f9f(0x1e7),'onClick':()=>_0x9c82ea[_0x4b4f9f(0x26f)](),'children':_0x4b4f9f(0x23b)})]});}function _0x2e44(_0x3092a4,_0x401c74){const _0x459eeb=_0x459e();return _0x2e44=function(_0x2e445d,_0x53bdb7){_0x2e445d=_0x2e445d-0x1cd;let _0x228b44=_0x459eeb[_0x2e445d];return _0x228b44;},_0x2e44(_0x3092a4,_0x401c74);}function Ae(_0x18efe1){const _0x1bd3fa=_0x33f3a0,{coordinator:_0x36bfab}=_0x18efe1;return _0x4bfea3(_0x4d5d84,{'children':[_0x2d6d1e(_0x1bd3fa(0x1d8),{'className':_0x1bd3fa(0x201),'children':_0x1bd3fa(0x223)}),_0x2d6d1e(_0x5c367e,{'variant':_0x1bd3fa(0x1d3),'onClick':()=>_0x36bfab[_0x1bd3fa(0x265)](),'children':_0x1bd3fa(0x24f)})]});}function Te(){const _0x1d19e6=_0x33f3a0;return _0x2d6d1e(_0x4d5d84,{'children':_0x1d19e6(0x262)});}function _0x459e(){const _0x319f14=['then','find','UNIVER_LIVE_SHARE_PLUGIN','idle','clear','mutations','_startLiveShareCoordinator','_handleTerminate','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','_collabSession','6548cYaHGT','offline','evenodd','getUnitId','_handleOffline','onStarting','colorChannel1','_injector','type','_config','tryStartPresenting','getInitialStates','Start','UNIVER_UNKNOWN','_handleNewChangeSets','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleNewHost','3897354pFxpWA','current','init','substring','live-share-icon','map','_handleOnline','displayName','get','getTypeOfUnitAdded$','Present\x20this\x20document','following','sessionStatus$','registerComponent','_startFollowing','_mountLiveShare','symbol','data','_liveShareService','getMemberID','NOT_FOLLOWING','getLiveShareCoordinator','FOLLOWING','You\x27re\x20following\x20the\x20presenter','length','currentColor','onRendered','OPERATION','154pAdmzt','complete','presenter','event$','You\x27re\x20presenting\x20the\x20document','string','403bpgUFw','values','LIVESHARE_NEW_HOST','forEach','_reporters','_uiPartsService','4840578mXqWdu','getConfig','getLiveShareCoordinatorSync','PRESENTING','NEW_CHANGESETS','_status$','_startPresenting','_handleOperation','live-share.config','createInstance','executeCommand','defineProperty','random','not-following','20rJFGbN','_configService','Start\x20following','entries','1em','_init','1538675bIhIiP','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','tag','sheet','requireSession','has','idSuffix','button','attrs','stopFollowing','7zJipyD','univer-size-4','next','OFFLINE','getOwnPropertyDescriptor','pluginName','Stop\x20presenting','dispose$','trim','getStatus','send','path','presenting','pipe','ONLINE','use','setConfig','UniverIcon','add','1449531jcXMMh','_status','subscribe','unsubscribe','IDLE','getCurrentTypeOfUnit$','You\x27are\x20offline.','_unitID','9970856joVBuC','stopPresenting','_fetchOperations','unitId','_commandDisposable','registerSharedOperation','_beIdle','HEADER_MENU','dispose','shouldShareOperation','_stopFollowing','startFollowing','univerjs-icon\x20univerjs-icon-','Stop\x20following','LIVESHARE_TERMINATE','params','8CKhPyB','_entities','disposeWithMe','1391772jUAKCs','LIVESHARE_OPERATION','_sharedOperations','_univerInstanceService','set','default','_commandService','stringify','replace','_presenter','div','assign','getTypeOfUnitDisposed$','children','asObservable','status$','defs','SAME_OPERATION_SHARE_INTERVAL','mask','UNIVER_SHEET','xlink:href','getValue','_collabSessionService','http://www.w3.org/2000/svg','toString','text'];_0x459e=function(){return _0x319f14;};return _0x459e();}var Fe=Object[_0x33f3a0(0x24d)],He=(_0x535aa1,_0x2cfb62,_0x20c910,_0x221642)=>{const _0x2e46f8=_0x33f3a0;for(var _0x3eab47=_0x221642>0x1?void 0x0:_0x221642?Fe(_0x2cfb62,_0x20c910):_0x2cfb62,_0x6843ee=_0x535aa1[_0x2e46f8(0x21b)]-0x1,_0x5d6e07;_0x6843ee>=0x0;_0x6843ee--)(_0x5d6e07=_0x535aa1[_0x6843ee])&&(_0x3eab47=_0x5d6e07(_0x3eab47)||_0x3eab47);return _0x3eab47;},A=(_0x2082db,_0x1c9007)=>(_0x3a82e9,_0x5a5420)=>_0x1c9007(_0x3a82e9,_0x5a5420,_0x2082db);let m=class extends _0x123ebc{constructor(_0x155636,_0x29070b){const _0x218fd6=_0x33f3a0;super(),this[_0x218fd6(0x1f9)]=_0x155636,this[_0x218fd6(0x22a)]=_0x29070b,this[_0x218fd6(0x212)]();}['_mountLiveShare'](){const _0x4fd0a9=_0x33f3a0;this[_0x4fd0a9(0x1cd)](this[_0x4fd0a9(0x22a)][_0x4fd0a9(0x210)](_0x221148[_0x4fd0a9(0x26b)],()=>_0x1211a(Le,this[_0x4fd0a9(0x1f9)])));}};m=He([A(0x0,_0x4770f0(_0x52080b)),A(0x1,_0x510518)],m);const ye=_0x33f3a0(0x233),T={};var Ue=Object[_0x33f3a0(0x24d)],Ve=(_0x18732e,_0x239b6f,_0x4a5423,_0x530734)=>{for(var _0x59246b=_0x530734>0x1?void 0x0:_0x530734?Ue(_0x239b6f,_0x4a5423):_0x239b6f,_0x470036=_0x18732e['length']-0x1,_0x4992ab;_0x470036>=0x0;_0x470036--)(_0x4992ab=_0x18732e[_0x470036])&&(_0x59246b=_0x4992ab(_0x59246b)||_0x59246b);return _0x59246b;},je=(_0x139394,_0x19e9e5)=>(_0x3ce7e5,_0x1ae217)=>_0x19e9e5(_0x3ce7e5,_0x1ae217,_0x139394);let I=class extends _0x123ebc{constructor(_0x40e231){super(),this['_liveShareService']=_0x40e231,this['_init']();}[_0x33f3a0(0x23e)](){const _0x225112=_0x33f3a0;[_0x57d381['id'],_0x23a13f['id'],_0x46858f['id']][_0x225112(0x228)](_0x19bbd2=>{const _0x3e5e75=_0x225112;this[_0x3e5e75(0x1cd)](this[_0x3e5e75(0x215)][_0x3e5e75(0x269)](_0x19bbd2));});}};I=Ve([je(0x0,_0x4770f0(L))],I);var Me=Object[_0x33f3a0(0x236)],ke=Object[_0x33f3a0(0x24d)],Ge=(_0x36770f,_0x38d812,_0x45f783)=>_0x38d812 in _0x36770f?Me(_0x36770f,_0x38d812,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x45f783}):_0x36770f[_0x38d812]=_0x45f783,We=(_0x5d40fc,_0x1bb5c9,_0x5a2148,_0x279338)=>{const _0x54a75e=_0x33f3a0;for(var _0x3d6b82=_0x279338>0x1?void 0x0:_0x279338?ke(_0x1bb5c9,_0x5a2148):_0x1bb5c9,_0x205263=_0x5d40fc[_0x54a75e(0x21b)]-0x1,_0x428e3b;_0x205263>=0x0;_0x205263--)(_0x428e3b=_0x5d40fc[_0x205263])&&(_0x3d6b82=_0x428e3b(_0x3d6b82)||_0x3d6b82);return _0x3d6b82;},F=(_0x32706a,_0x4d4ec2)=>(_0x3c8d7c,_0x3af40d)=>_0x4d4ec2(_0x3c8d7c,_0x3af40d,_0x32706a),B=(_0x4d41b7,_0x110354,_0x4ca6b3)=>Ge(_0x4d41b7,typeof _0x110354!=_0x33f3a0(0x213)?_0x110354+'':_0x110354,_0x4ca6b3);const Ye=_0x33f3a0(0x1ea);let b=class extends _0x14031e{constructor(_0x229764=T,_0x10c5e9,_0x1f9e0e){const _0x41a4b8=_0x33f3a0;super(),this[_0x41a4b8(0x1fb)]=_0x229764,this[_0x41a4b8(0x1f9)]=_0x10c5e9,this[_0x41a4b8(0x23a)]=_0x1f9e0e;const {..._0x24f8e6}=_0x2fd27e({},T,this[_0x41a4b8(0x1fb)]);this[_0x41a4b8(0x23a)][_0x41a4b8(0x259)](ye,_0x24f8e6);}[_0x33f3a0(0x1f7)](){const _0x2eeb34=_0x33f3a0;_0x293650(this[_0x2eeb34(0x1f9)],_0x57eb35([[L],[S],[I],[m]],this['_config']['override'])),_0x19de09(this[_0x2eeb34(0x1f9)],[[I]]);}[_0x33f3a0(0x21d)](){_0x19de09(this['_injector'],[[m]]);}};B(b,'type',_0x1afb45[_0x33f3a0(0x1ff)]),B(b,_0x33f3a0(0x24e),Ye),b=We([_0x83a676(_0x5984b3),F(0x1,_0x4770f0(_0x52080b)),F(0x2,_0x404a20)],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 _0x4648f1=_0x325e;function _0x3468(){const _0x5d59c1=['getStatus','15921TwnmZe','executeCommand','extend','1942548LrGSwn','92244lUIfED','6930ffQmpO','No\x20active\x20workbook\x20found.','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','syncExecuteCommand','get','_injector','getLiveShareCoordinatorSync','_initialize','tryStartPresenting','stopPresenting','getSheetId','getId','56zIqtGB','4184068wamPvx','getUnitId','37wUMELC','startRow','getRenderById','60hbomvd','startColumn','getActiveWorkbook','43943086AuZxJZ','getLiveShareStatus','stopFollowing','IDLE','_commandService','1512096zwowwR','LiveShareStatusEnum','634870xcinpU'];_0x3468=function(){return _0x5d59c1;};return _0x3468();}(function(_0x309c34,_0x20e27a){const _0x321ed6=_0x325e,_0x3269ea=_0x309c34();while(!![]){try{const _0x308032=-parseInt(_0x321ed6(0x17d))/0x1*(-parseInt(_0x321ed6(0x190))/0x2)+parseInt(_0x321ed6(0x18f))/0x3+parseInt(_0x321ed6(0x17b))/0x4+-parseInt(_0x321ed6(0x18a))/0x5*(parseInt(_0x321ed6(0x180))/0x6)+parseInt(_0x321ed6(0x17a))/0x7*(parseInt(_0x321ed6(0x188))/0x8)+parseInt(_0x321ed6(0x18c))/0x9*(parseInt(_0x321ed6(0x16e))/0xa)+-parseInt(_0x321ed6(0x183))/0xb;if(_0x308032===_0x20e27a)break;else _0x3269ea['push'](_0x3269ea['shift']());}catch(_0x303288){_0x3269ea['push'](_0x3269ea['shift']());}}}(_0x3468,0xd5416));import{LiveShareController as _0x351dda,LiveShareStatus as _0x65b6a5}from'@univerjs-pro/live-share';function _0x325e(_0x486581,_0x3beec4){const _0x34681c=_0x3468();return _0x325e=function(_0x325e8b,_0x20cc05){_0x325e8b=_0x325e8b-0x16e;let _0x412165=_0x34681c[_0x325e8b];return _0x412165;},_0x325e(_0x486581,_0x3beec4);}import{IRenderManagerService as _0x56edfb}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x128df4}from'@univerjs/sheets';import{SetScrollOperation as _0x4c9be2}from'@univerjs/sheets-ui';import{FRange as _0x5a02c4}from'@univerjs/sheets/facade';import{FUniver as _0x2ca598,FEnum as _0xacc36f}from'@univerjs/core/facade';class I extends _0x5a02c4{[_0x4648f1(0x175)](_0x140018,_0x2c4b30,_0x25b7cf,_0x2cb8a4,_0x5b5921){const _0x1ff392=_0x4648f1,_0xec7c3a=_0x140018['get'](_0x351dda),_0x183a38=_0x140018['get'](_0x56edfb),_0x2aeef1=_0x2c4b30[_0x1ff392(0x17c)](),_0x3ed51c=_0x2c4b30['getActiveSheet'](),_0x2f151b=_0xec7c3a[_0x1ff392(0x174)](_0x2aeef1);(_0x2f151b==null?void 0x0:_0x2f151b['getStatus']())!==_0x65b6a5['PRESENTING']||(_0x25b7cf[_0x1ff392(0x178)]()!==_0x3ed51c[_0x1ff392(0x178)]()&&this[_0x1ff392(0x187)][_0x1ff392(0x18d)](_0x128df4['id'],{'unitId':_0x2aeef1,'subUnitId':_0x25b7cf[_0x1ff392(0x178)]()}),!_0x183a38[_0x1ff392(0x17f)](_0x2aeef1))||_0x5b5921[_0x1ff392(0x171)](_0x4c9be2['id'],{'unitId':_0x2c4b30[_0x1ff392(0x17c)](),'sheetId':_0x25b7cf['getSheetId'](),'sheetViewStartRow':_0x2cb8a4[_0x1ff392(0x17e)],'sheetViewStartColumn':_0x2cb8a4[_0x1ff392(0x181)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x5a02c4['extend'](I);class m extends _0x2ca598{[_0x4648f1(0x184)](){const _0x2b552c=_0x4648f1;var _0x5187b5,_0xa4b566;const _0x49b250=this[_0x2b552c(0x173)][_0x2b552c(0x172)](_0x351dda),_0x2ce986=(_0x5187b5=this[_0x2b552c(0x182)]())==null?void 0x0:_0x5187b5[_0x2b552c(0x179)]();if(!_0x2ce986)throw new Error(_0x2b552c(0x16f));const _0x4132b1=_0x49b250[_0x2b552c(0x174)](_0x2ce986);return(_0xa4b566=_0x4132b1==null?void 0x0:_0x4132b1[_0x2b552c(0x18b)]())!=null?_0xa4b566:_0x65b6a5[_0x2b552c(0x186)];}['startFollowing'](){const _0x559ab7=_0x4648f1;var _0x54f8cf;const _0x6bc560=this[_0x559ab7(0x173)][_0x559ab7(0x172)](_0x351dda),_0x4c8c91=(_0x54f8cf=this[_0x559ab7(0x182)]())==null?void 0x0:_0x54f8cf[_0x559ab7(0x179)]();if(!_0x4c8c91)throw new Error(_0x559ab7(0x16f));const _0x529394=_0x6bc560[_0x559ab7(0x174)](_0x4c8c91);if(!_0x529394)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x529394['startFollowing']();}[_0x4648f1(0x185)](){const _0x178efe=_0x4648f1;var _0x555bdc;const _0x5dd584=this['_injector']['get'](_0x351dda),_0x1b5981=(_0x555bdc=this[_0x178efe(0x182)]())==null?void 0x0:_0x555bdc[_0x178efe(0x179)]();if(!_0x1b5981)throw new Error('No\x20active\x20workbook\x20found.');const _0x1672b7=_0x5dd584[_0x178efe(0x174)](_0x1b5981);if(!_0x1672b7)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1672b7[_0x178efe(0x185)]();}['startPresenting'](){const _0x5c4feb=_0x4648f1;var _0x1fd458;const _0x1585b0=this['_injector'][_0x5c4feb(0x172)](_0x351dda),_0x1af546=(_0x1fd458=this[_0x5c4feb(0x182)]())==null?void 0x0:_0x1fd458[_0x5c4feb(0x179)]();if(!_0x1af546)throw new Error(_0x5c4feb(0x16f));const _0x7cf0e9=_0x1585b0[_0x5c4feb(0x174)](_0x1af546);if(!_0x7cf0e9)throw new Error(_0x5c4feb(0x170));_0x7cf0e9[_0x5c4feb(0x176)]();}[_0x4648f1(0x177)](){const _0x2e59f5=_0x4648f1;var _0x30d458;const _0x451aae=this[_0x2e59f5(0x173)][_0x2e59f5(0x172)](_0x351dda),_0xfb6b00=(_0x30d458=this[_0x2e59f5(0x182)]())==null?void 0x0:_0x30d458[_0x2e59f5(0x179)]();if(!_0xfb6b00)throw new Error(_0x2e59f5(0x16f));const _0x3d456a=_0x451aae['getLiveShareCoordinatorSync'](_0xfb6b00);if(!_0x3d456a)throw new Error(_0x2e59f5(0x170));_0x3d456a[_0x2e59f5(0x177)]();}}_0x2ca598[_0x4648f1(0x18e)](m);class C extends _0xacc36f{get[_0x4648f1(0x189)](){return _0x65b6a5;}}_0xacc36f[_0x4648f1(0x18e)](C);
1
+ const _0x364c8a=_0x285d;(function(_0x3a2731,_0x53b725){const _0x474556=_0x285d,_0x1f4bde=_0x3a2731();while(!![]){try{const _0x4e0e74=-parseInt(_0x474556(0x197))/0x1+-parseInt(_0x474556(0x19c))/0x2+parseInt(_0x474556(0x1ae))/0x3*(parseInt(_0x474556(0x1a4))/0x4)+parseInt(_0x474556(0x1a8))/0x5*(parseInt(_0x474556(0x1a3))/0x6)+-parseInt(_0x474556(0x1ad))/0x7+parseInt(_0x474556(0x1a9))/0x8*(-parseInt(_0x474556(0x190))/0x9)+parseInt(_0x474556(0x19b))/0xa*(parseInt(_0x474556(0x1a5))/0xb);if(_0x4e0e74===_0x53b725)break;else _0x1f4bde['push'](_0x1f4bde['shift']());}catch(_0x8a1861){_0x1f4bde['push'](_0x1f4bde['shift']());}}}(_0x13c5,0xb97a8));import{LiveShareController as _0xe6e695,LiveShareStatus as _0xf99993}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x92f1ce}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x40cefd}from'@univerjs/sheets';function _0x13c5(){const _0x52bc73=['_commandService','startPresenting','1479122hfvyjx','getActiveWorkbook','startRow','startColumn','34633120MmCEiI','2231776SXnyFI','_injector','getLiveShareCoordinatorSync','getSheetId','_initialize','tryStartPresenting','startFollowing','6LTxvPj','8kxbQqu','11azWisD','executeCommand','extend','1447085msFrZn','8uzGRea','No\x20active\x20workbook\x20found.','PRESENTING','getId','1914388aJYKFM','269949uthRqI','IDLE','syncExecuteCommand','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','2740329GgyCSA','getUnitId','get','stopFollowing','getStatus'];_0x13c5=function(){return _0x52bc73;};return _0x13c5();}import{SetScrollOperation as _0x5a7a7f}from'@univerjs/sheets-ui';import{FRange as _0x13d6fc}from'@univerjs/sheets/facade';import{FUniver as _0x99dee3,FEnum as _0x42d318}from'@univerjs/core/facade';class I extends _0x13d6fc{[_0x364c8a(0x1a0)](_0x3b3707,_0x2646a4,_0x2ba177,_0x3a902f,_0x5435b2){const _0x18614c=_0x364c8a,_0x29fcb8=_0x3b3707[_0x18614c(0x192)](_0xe6e695),_0x25d58d=_0x3b3707[_0x18614c(0x192)](_0x92f1ce),_0x4b0d1a=_0x2646a4[_0x18614c(0x191)](),_0x2a2c09=_0x2646a4['getActiveSheet'](),_0x4ae63a=_0x29fcb8[_0x18614c(0x19e)](_0x4b0d1a);(_0x4ae63a==null?void 0x0:_0x4ae63a[_0x18614c(0x194)]())!==_0xf99993[_0x18614c(0x1ab)]||(_0x2ba177['getSheetId']()!==_0x2a2c09[_0x18614c(0x19f)]()&&this[_0x18614c(0x195)][_0x18614c(0x1a6)](_0x40cefd['id'],{'unitId':_0x4b0d1a,'subUnitId':_0x2ba177[_0x18614c(0x19f)]()}),!_0x25d58d['getRenderById'](_0x4b0d1a))||_0x5435b2[_0x18614c(0x18e)](_0x5a7a7f['id'],{'unitId':_0x2646a4[_0x18614c(0x191)](),'sheetId':_0x2ba177['getSheetId'](),'sheetViewStartRow':_0x3a902f[_0x18614c(0x199)],'sheetViewStartColumn':_0x3a902f[_0x18614c(0x19a)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x285d(_0x20ccda,_0x35090f){const _0x13c51b=_0x13c5();return _0x285d=function(_0x285d40,_0x580952){_0x285d40=_0x285d40-0x18e;let _0x18db7d=_0x13c51b[_0x285d40];return _0x18db7d;},_0x285d(_0x20ccda,_0x35090f);}_0x13d6fc['extend'](I);class m extends _0x99dee3{['getLiveShareStatus'](){const _0x5579db=_0x364c8a;var _0x3ab854,_0x1b6d4f;const _0x1aae08=this['_injector'][_0x5579db(0x192)](_0xe6e695),_0x18f085=(_0x3ab854=this['getActiveWorkbook']())==null?void 0x0:_0x3ab854[_0x5579db(0x1ac)]();if(!_0x18f085)throw new Error(_0x5579db(0x1aa));const _0x502600=_0x1aae08[_0x5579db(0x19e)](_0x18f085);return(_0x1b6d4f=_0x502600==null?void 0x0:_0x502600[_0x5579db(0x194)]())!=null?_0x1b6d4f:_0xf99993[_0x5579db(0x1af)];}['startFollowing'](){const _0x3a754f=_0x364c8a;var _0x136cfc;const _0xdfa234=this[_0x3a754f(0x19d)][_0x3a754f(0x192)](_0xe6e695),_0x16c4b1=(_0x136cfc=this['getActiveWorkbook']())==null?void 0x0:_0x136cfc[_0x3a754f(0x1ac)]();if(!_0x16c4b1)throw new Error('No\x20active\x20workbook\x20found.');const _0x382c78=_0xdfa234[_0x3a754f(0x19e)](_0x16c4b1);if(!_0x382c78)throw new Error(_0x3a754f(0x18f));_0x382c78[_0x3a754f(0x1a2)]();}[_0x364c8a(0x193)](){const _0x1746c2=_0x364c8a;var _0x35c55c;const _0x1658cf=this[_0x1746c2(0x19d)][_0x1746c2(0x192)](_0xe6e695),_0x383f30=(_0x35c55c=this[_0x1746c2(0x198)]())==null?void 0x0:_0x35c55c[_0x1746c2(0x1ac)]();if(!_0x383f30)throw new Error(_0x1746c2(0x1aa));const _0x15f529=_0x1658cf[_0x1746c2(0x19e)](_0x383f30);if(!_0x15f529)throw new Error(_0x1746c2(0x18f));_0x15f529['stopFollowing']();}[_0x364c8a(0x196)](){const _0x4ea349=_0x364c8a;var _0x3ef428;const _0x20e6d8=this[_0x4ea349(0x19d)][_0x4ea349(0x192)](_0xe6e695),_0x30e6b8=(_0x3ef428=this[_0x4ea349(0x198)]())==null?void 0x0:_0x3ef428[_0x4ea349(0x1ac)]();if(!_0x30e6b8)throw new Error(_0x4ea349(0x1aa));const _0x5689d1=_0x20e6d8[_0x4ea349(0x19e)](_0x30e6b8);if(!_0x5689d1)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5689d1[_0x4ea349(0x1a1)]();}['stopPresenting'](){const _0x4af348=_0x364c8a;var _0x399ada;const _0x9934ad=this[_0x4af348(0x19d)]['get'](_0xe6e695),_0x739f32=(_0x399ada=this[_0x4af348(0x198)]())==null?void 0x0:_0x399ada[_0x4af348(0x1ac)]();if(!_0x739f32)throw new Error('No\x20active\x20workbook\x20found.');const _0xb71475=_0x9934ad['getLiveShareCoordinatorSync'](_0x739f32);if(!_0xb71475)throw new Error(_0x4af348(0x18f));_0xb71475['stopPresenting']();}}_0x99dee3[_0x364c8a(0x1a7)](m);class C extends _0x42d318{get['LiveShareStatusEnum'](){return _0xf99993;}}_0x42d318[_0x364c8a(0x1a7)](C);
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x480de2=_0x3214;(function(_0x5b4f45,_0x275d27){const _0x10c06c=_0x3214,_0x4efa24=_0x5b4f45();while(!![]){try{const _0x31c00a=-parseInt(_0x10c06c(0xbb))/0x1*(-parseInt(_0x10c06c(0x10f))/0x2)+-parseInt(_0x10c06c(0xda))/0x3+-parseInt(_0x10c06c(0xbd))/0x4+-parseInt(_0x10c06c(0x117))/0x5*(-parseInt(_0x10c06c(0xfc))/0x6)+parseInt(_0x10c06c(0x8c))/0x7*(-parseInt(_0x10c06c(0x84))/0x8)+-parseInt(_0x10c06c(0x121))/0x9+parseInt(_0x10c06c(0x92))/0xa*(parseInt(_0x10c06c(0xae))/0xb);if(_0x31c00a===_0x275d27)break;else _0x4efa24['push'](_0x4efa24['shift']());}catch(_0x37728f){_0x4efa24['push'](_0x4efa24['shift']());}}}(_0x4f88,0x81f47));var J=Object['defineProperty'],K=(_0x461ca2,_0x4fd856,_0x413d35)=>_0x4fd856 in _0x461ca2?J(_0x461ca2,_0x4fd856,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x413d35}):_0x461ca2[_0x4fd856]=_0x413d35,u=(_0x5b1943,_0x3e3b9e,_0x253d78)=>K(_0x5b1943,typeof _0x3e3b9e!=_0x480de2(0x106)?_0x3e3b9e+'':_0x3e3b9e,_0x253d78);import{Disposable as _0x445766,toDisposable as _0x5b0e28,IUniverInstanceService as _0x59e319,Inject as _0x31d8e9,Injector as _0x4d1ef7,IConfigService as _0xea2396,ICommandService as _0x358f4b,RxDisposable as _0x22ff37,UniverInstanceType as _0x1e0e7d,DisposableCollection as _0xb8bf1f,CommandType as _0x2baff1,DependentOn as _0x2532bd,Plugin as _0x218f1f,merge as _0x477aae,registerDependencies as _0xaed711,mergeOverrideWithDependencies as _0xb0235f,touchDependencies as _0xd465dc}from'@univerjs/core';import{useDependency as _0x5b95cb,useObservable as _0x477adc,IUIPartsService as _0x1618ae,BuiltInUIPart as _0x589e20,connectInjector as _0x2bfcca}from'@univerjs/ui';import{jsx as _0x4f48f3,jsxs as _0x4070ad,Fragment as _0x5480f9}from'react/jsx-runtime';import{Dropdown as _0x43303b,clsx as _0x219d87,Button as _0x5f10a4}from'@univerjs/design';import{useRef as _0x2d1821,createElement as _0x4e41ac,forwardRef as _0x46ea63,useState as _0x3126fc,useEffect as _0x42fb54}from'react';import{CollaborationEvent as _0x5cbca8,parseProtocolChangeset as _0x432e75}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x23bc86,SessionStatus as _0x1d465d,UniverCollaborationClientPlugin as _0x1e0ea8}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x29dcc9,SetWorksheetActiveOperation as _0x42d600}from'@univerjs/sheets';import{BehaviorSubject as _0x2d7f44,Subject as _0x35191d}from'rxjs';import{takeUntil as _0x227b42,throttleTime as _0x55381b}from'rxjs/operators';import{SetZoomRatioOperation as _0xee7cd,SetScrollOperation as _0x504137}from'@univerjs/sheets-ui';function k({ref:_0x1f377f,..._0x2b47fb}){const _0x59af70=_0x480de2,{icon:_0x39cd92,id:_0xa0f525,className:_0x4aa8ae,extend:_0x336fd9,..._0x504ac5}=_0x2b47fb,_0xbc87d8=(_0x59af70(0xa0)+_0xa0f525+'\x20'+(_0x4aa8ae||''))[_0x59af70(0xc9)](),_0x3ecab3=_0x2d1821('_'+Oe());return G(_0x39cd92,''+_0xa0f525,{'defIds':_0x39cd92['defIds'],'idSuffix':_0x3ecab3[_0x59af70(0x107)]},{'ref':_0x1f377f,'className':_0xbc87d8,..._0x504ac5},_0x336fd9);}function G(_0x8e1b9e,_0x4d9c84,_0x12c0b1,_0x4d9bee,_0x2a75a1){const _0x33094c=_0x480de2;return _0x4e41ac(_0x8e1b9e['tag'],{'key':_0x4d9c84,...be(_0x8e1b9e,_0x12c0b1,_0x2a75a1),..._0x4d9bee},(Ee(_0x8e1b9e,_0x12c0b1)[_0x33094c(0xb8)]||[])[_0x33094c(0x119)]((_0x451e06,_0x4c8de1)=>G(_0x451e06,_0x4d9c84+'-'+_0x8e1b9e[_0x33094c(0xf2)]+'-'+_0x4c8de1,_0x12c0b1,void 0x0,_0x2a75a1)));}function be(_0x16dc26,_0x2470f7,_0x4b0b64){const _0x37b053=_0x480de2,_0x3ba049={..._0x16dc26[_0x37b053(0xc5)]};_0x4b0b64!=null&&_0x4b0b64[_0x37b053(0xd9)]&&_0x3ba049[_0x37b053(0x112)]===_0x37b053(0xd9)&&(_0x3ba049['fill']=_0x4b0b64[_0x37b053(0xd9)]),_0x16dc26[_0x37b053(0xf2)]===_0x37b053(0xbe)&&_0x3ba049['id']&&(_0x3ba049['id']=_0x3ba049['id']+_0x2470f7['idSuffix']),Object[_0x37b053(0x11b)](_0x3ba049)[_0x37b053(0x11d)](([_0x5e987c,_0x16d5a5])=>{const _0x4f4e2b=_0x37b053;_0x5e987c==='mask'&&typeof _0x16d5a5==_0x4f4e2b(0x8f)&&(_0x3ba049[_0x5e987c]=_0x16d5a5[_0x4f4e2b(0xc4)](/url\(#(.*)\)/,_0x4f4e2b(0xaa)+_0x2470f7[_0x4f4e2b(0xef)]+')'));});const {defIds:_0x288fc2}=_0x2470f7;return!_0x288fc2||_0x288fc2[_0x37b053(0xbf)]===0x0||(_0x16dc26['tag']==='use'&&_0x3ba049[_0x37b053(0xab)]&&(_0x3ba049['xlink:href']=_0x3ba049['xlink:href']+_0x2470f7[_0x37b053(0xef)]),Object[_0x37b053(0x11b)](_0x3ba049)[_0x37b053(0x11d)](([_0x52a9f0,_0x2196f9])=>{const _0x2e47d9=_0x37b053;typeof _0x2196f9==_0x2e47d9(0x8f)&&(_0x3ba049[_0x52a9f0]=_0x2196f9[_0x2e47d9(0xc4)](/url\(#(.*)\)/,_0x2e47d9(0xaa)+_0x2470f7['idSuffix']+')'));})),_0x3ba049;}function _0x4f88(){const _0x44b2af=['univer-size-4','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','_fetchOperations','_commandService','pipe','getInitialStates','currentColor','end','LIVESHARE_NEW_HOST','registerComponent','_handleOnline','colorChannel1','2916078oYCONN','_status','Stop\x20following','_stopPresenting','You\x27re\x20presenting\x20the\x20document','path','_unitID','disposeWithMe','div','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','LIVESHARE_OPERATION','_status$','_liveShareService','Present\x20this\x20document','shouldShareOperation','has','Stop\x20presenting','UNIVER_SHEET','dispose$','PRESENTING','_startFollowing','idSuffix','UniverIcon','NEW_CHANGESETS','tag','LIVESHARE_TERMINATE','getLiveShareCoordinator','requireSession','_startPresenting','OFFLINE','LiveShareIcon','You\x27are\x20offline.','_configService','_univerInstanceService','28746NtXJEV','dispose','delete','idle','sessionStatus$','event$','_injector','getOwnPropertyDescriptor','none','IDLE','symbol','current','defineProperty','stopFollowing','HEADER_MENU','_handleOperation','setConfig','1em','_reporters','2638JazVTb','assign','defs','fill','type','subscribe','LIVESHARE_REQUEST_HOST','stringify','435lgdCCJ','_handleOffline','map','includes','entries','live-share-icon','forEach','_stopFollowing','_commandDisposable','following','8406279PXjokW','_startLiveShareCoordinator','getUnitId','executeCommand','toString','_uiPartsService','startFollowing','_init','37096NHKPto','init','onStarting','evenodd','_entities','presenting','_collabSessionService','univer-mb-3\x20univer-w-full\x20univer-text-sm','287bLhYqU','OPERATION','live-share.config','string','Start\x20following','FOLLOWING','6230bZgPbI','_config','svg','send','_beIdle','Start','params','tryStartPresenting','not-following','getTypeOfUnitDisposed$','getConfig','getTypeOfUnitAdded$','sheet','data','univerjs-icon\x20univerjs-icon-','UNIVER_UNKNOWN','pluginName','onCommandExecuted','get','next','_mountLiveShare','getLiveShareCoordinatorSync','complete','offline','url(#$1','xlink:href','_presenter','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','40304BMcGXR','reverse','stopPresenting','add','NOT_FOLLOWING','displayName','_handleNewHost','unitId','registerSharedOperation','_handleTerminate','children','getMemberID','from','31pQmyzD','_sharedOperations','447636cnNcDg','mask','length','getValue','set','onRendered','asObservable','replace','attrs','presenter','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','getCurrentTypeOfUnit$','trim','SAME_OPERATION_SHARE_INTERVAL','override','_collabSession','status$'];_0x4f88=function(){return _0x44b2af;};return _0x4f88();}function Ee(_0x3b253d,_0x1a020c){const _0xb4951d=_0x480de2;var _0x253c02;const {defIds:_0x210575}=_0x1a020c;return!_0x210575||_0x210575['length']===0x0?_0x3b253d:_0x3b253d['tag']===_0xb4951d(0x111)&&((_0x253c02=_0x3b253d[_0xb4951d(0xb8)])!=null&&_0x253c02['length'])?{..._0x3b253d,'children':_0x3b253d[_0xb4951d(0xb8)][_0xb4951d(0x119)](_0xbea93e=>typeof _0xbea93e[_0xb4951d(0xc5)]['id']==_0xb4951d(0x8f)&&_0x210575&&_0x210575[_0xb4951d(0x11a)](_0xbea93e['attrs']['id'])?{..._0xbea93e,'attrs':{..._0xbea93e[_0xb4951d(0xc5)],'id':_0xbea93e[_0xb4951d(0xc5)]['id']+_0x1a020c[_0xb4951d(0xef)]}}:_0xbea93e)}:_0x3b253d;}function Oe(){const _0x18f0fe=_0x480de2;return Math['random']()[_0x18f0fe(0x80)](0x24)['substring'](0x2,0x8);}k['displayName']=_0x480de2(0xf0);const we={'tag':_0x480de2(0x94),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x480de2(0x104),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x480de2(0x10d)},'children':[{'tag':_0x480de2(0xdf),'attrs':{'fill':_0x480de2(0xd4),'d':_0x480de2(0xcf)}},{'tag':'path','attrs':{'fill':_0x480de2(0xd4),'d':_0x480de2(0xe3),'fillRule':'evenodd','clipRule':_0x480de2(0x87)}}]},W=_0x46ea63(function(_0x3df12e,_0x413554){const _0x4cba78=_0x480de2;return _0x4e41ac(k,Object[_0x4cba78(0x110)]({},_0x3df12e,{'id':_0x4cba78(0x11c),'ref':_0x413554,'icon':we}));});W[_0x480de2(0xb3)]=_0x480de2(0xf8);class L extends _0x445766{constructor(){const _0x2f1256=_0x480de2;super(...arguments),u(this,_0x2f1256(0xbc),new Set()),u(this,_0x2f1256(0x10e),new Set());}['registerSharedOperation'](_0x9e9e4d){const _0x10aa7c=_0x480de2;return this['_sharedOperations'][_0x10aa7c(0xb1)](_0x9e9e4d),_0x5b0e28(()=>this[_0x10aa7c(0xbc)]['delete'](_0x9e9e4d));}['registerInitialStateReporter'](_0x260e19){const _0x2aecc4=_0x480de2;return this['_reporters'][_0x2aecc4(0xb1)](_0x260e19),_0x5b0e28(()=>this[_0x2aecc4(0x10e)][_0x2aecc4(0xfe)](_0x260e19));}['shouldShareOperation'](_0x2c5c2a){const _0x442917=_0x480de2;return this['_sharedOperations'][_0x442917(0xe9)](_0x2c5c2a);}['getInitialStates'](_0x1c0749){const _0x233238=_0x480de2;return Array[_0x233238(0xba)](this['_reporters'])[_0x233238(0x119)](_0x352188=>_0x352188(_0x1c0749));}}var Ne=Object[_0x480de2(0x103)],Y=(_0x478bc7,_0x580242,_0x5199e8,_0x1b7626)=>{const _0x58404b=_0x480de2;for(var _0x2b03cb=_0x1b7626>0x1?void 0x0:_0x1b7626?Ne(_0x580242,_0x5199e8):_0x580242,_0x49e4fc=_0x478bc7[_0x58404b(0xbf)]-0x1,_0x2a0e1e;_0x49e4fc>=0x0;_0x49e4fc--)(_0x2a0e1e=_0x478bc7[_0x49e4fc])&&(_0x2b03cb=_0x2a0e1e(_0x2b03cb)||_0x2b03cb);return _0x2b03cb;},_=(_0x1ee860,_0x48db45)=>(_0xa68f8c,_0x30646c)=>_0x48db45(_0xa68f8c,_0x30646c,_0x1ee860);let S=class extends _0x22ff37{constructor(_0x53007f,_0x36da91,_0x3de8a0){const _0x3824a1=_0x480de2;super(),u(this,_0x3824a1(0x88),new Map()),(this['_univerInstanceService']=_0x53007f,this['_injector']=_0x36da91,this[_0x3824a1(0x8a)]=_0x3de8a0,this['_init']());}async[_0x480de2(0xf4)](_0xdeef36){const _0x42f639=_0x480de2;return this[_0x42f639(0x88)][_0x42f639(0xe9)](_0xdeef36)||await this[_0x42f639(0x7d)](_0xdeef36),this[_0x42f639(0x88)][_0x42f639(0xa4)](_0xdeef36);}[_0x480de2(0xa7)](_0x3f6404){const _0x23f827=_0x480de2;var _0x1f01d4;return(_0x1f01d4=this['_entities'][_0x23f827(0xa4)](_0x3f6404))!=null?_0x1f01d4:null;}[_0x480de2(0x83)](){const _0x404733=_0x480de2;this[_0x404733(0xfb)][_0x404733(0x9d)](_0x1e0e7d[_0x404733(0xeb)])[_0x404733(0xd2)](_0x227b42(this['dispose$']))[_0x404733(0x114)](async _0x14f98f=>{const _0x25cae0=_0x404733,_0x5a31d4=_0x14f98f[_0x25cae0(0x7e)]();this['_entities'][_0x25cae0(0xe9)](_0x5a31d4)||this[_0x25cae0(0x7d)](_0x5a31d4);}),this['_univerInstanceService'][_0x404733(0x9b)](_0x1e0e7d[_0x404733(0xeb)])['pipe'](_0x227b42(this[_0x404733(0xec)]))[_0x404733(0x114)](_0x4d2dba=>{const _0x423f18=_0x404733,_0x66f1aa=_0x4d2dba[_0x423f18(0x7e)](),_0x1cc2c8=this[_0x423f18(0x88)]['get'](_0x66f1aa);_0x1cc2c8==null||_0x1cc2c8[_0x423f18(0xfd)]();});}async[_0x480de2(0x7d)](_0x23d24e){const _0x492e3a=_0x480de2,_0x56c05a=await this['_collabSessionService'][_0x492e3a(0xf5)](_0x23d24e),_0x1a44db=this[_0x492e3a(0x102)]['createInstance'](N,_0x23d24e,_0x56c05a);return _0x1a44db[_0x492e3a(0x85)](),this['_entities'][_0x492e3a(0xc1)](_0x23d24e,_0x1a44db),_0x1a44db;}};S=Y([_(0x0,_0x59e319),_(0x1,_0x31d8e9(_0x4d1ef7)),_(0x2,_0x31d8e9(_0x23bc86))],S);function _0x3214(_0x429c19,_0x580096){const _0x4f88eb=_0x4f88();return _0x3214=function(_0x32142e,_0x5e2814){_0x32142e=_0x32142e-0x7d;let _0x29b6e5=_0x4f88eb[_0x32142e];return _0x29b6e5;},_0x3214(_0x429c19,_0x580096);}var c=(_0x2250b0=>(_0x2250b0[_0x480de2(0xf7)]=_0x480de2(0xa9),_0x2250b0[_0x480de2(0x105)]=_0x480de2(0xff),_0x2250b0[_0x480de2(0x91)]=_0x480de2(0x120),_0x2250b0[_0x480de2(0xb2)]=_0x480de2(0x9a),_0x2250b0[_0x480de2(0xed)]='presenting',_0x2250b0))(c||{});const Ce=_0x480de2(0xca),De=0xc8;let N=class extends _0x22ff37{constructor(_0x3b1a1f,_0x17a899,_0x2677f2,_0x3f583b,_0x14b480){const _0x28d07f=_0x480de2;super(),u(this,'_status$',new _0x2d7f44('idle')),u(this,_0x28d07f(0xcd),this['_status$'][_0x28d07f(0xc3)]()),u(this,_0x28d07f(0x83),!0x1),u(this,_0x28d07f(0x11f),null),u(this,_0x28d07f(0xac),null),(this['_unitID']=_0x3b1a1f,this['_collabSession']=_0x17a899,this['_configService']=_0x2677f2,this[_0x28d07f(0xe6)]=_0x3f583b,this[_0x28d07f(0xd1)]=_0x14b480);}get['_status'](){const _0x1ac7d3=_0x480de2;return this[_0x1ac7d3(0xe5)][_0x1ac7d3(0xc0)]();}['dispose'](){const _0x5e09fc=_0x480de2;var _0x27a031;(_0x27a031=this['_commandDisposable'])==null||_0x27a031['dispose'](),this[_0x5e09fc(0xe5)][_0x5e09fc(0xa5)](_0x5e09fc(0xff)),this[_0x5e09fc(0xe5)][_0x5e09fc(0xa8)]();}['getStatus'](){const _0x5cdc36=_0x480de2;return this[_0x5cdc36(0xdb)];}[_0x480de2(0x85)](){const _0x4ed8f1=_0x480de2;this[_0x4ed8f1(0x83)]||(this[_0x4ed8f1(0x83)]=!0x0,this['_collabSession'][_0x4ed8f1(0x100)][_0x4ed8f1(0xd2)](_0x227b42(this[_0x4ed8f1(0xec)]))[_0x4ed8f1(0x114)](_0x55d50c=>{const _0x385180=_0x4ed8f1;switch(_0x55d50c){case _0x1d465d['OFFLINE']:this['_handleOffline']();break;case _0x1d465d['ONLINE']:this[_0x385180(0xd8)]();break;}}),this[_0x4ed8f1(0xcc)][_0x4ed8f1(0x101)][_0x4ed8f1(0xd2)](_0x227b42(this[_0x4ed8f1(0xec)]))[_0x4ed8f1(0x114)](_0x1de0f2=>{const _0x217b39=_0x4ed8f1,{eventID:_0x1bf5a4}=_0x1de0f2;switch(_0x1bf5a4){case _0x5cbca8[_0x217b39(0xd6)]:this[_0x217b39(0xb4)](_0x1de0f2);break;case _0x5cbca8[_0x217b39(0xe4)]:this[_0x217b39(0x10b)](_0x1de0f2);break;case _0x5cbca8[_0x217b39(0xf3)]:this[_0x217b39(0xb7)]();break;case _0x5cbca8[_0x217b39(0xf1)]:this['_handleNewChangeSets'](_0x1de0f2);break;}}));}[_0x480de2(0x99)](){const _0x1361b4=_0x480de2;this[_0x1361b4(0xcc)]['send']({'eventID':_0x5cbca8[_0x1361b4(0x115)],'data':{'unitID':this[_0x1361b4(0xe0)],'userID':this[_0x1361b4(0xcc)][_0x1361b4(0xb9)]()}},this['_unitID']);}[_0x480de2(0xb0)](){const _0x372e5c=_0x480de2;this[_0x372e5c(0xdb)]==='presenting'&&(this[_0x372e5c(0xe5)][_0x372e5c(0xa5)]('idle'),this[_0x372e5c(0xcc)][_0x372e5c(0x95)]({'eventID':_0x5cbca8[_0x372e5c(0xf3)],'data':{'unitID':this[_0x372e5c(0xe0)]}},this[_0x372e5c(0xe0)]));}[_0x480de2(0x82)](){const _0xc43a56=_0x480de2;this[_0xc43a56(0xdb)]===_0xc43a56(0x9a)&&(this[_0xc43a56(0xe5)]['next'](_0xc43a56(0x120)),this[_0xc43a56(0xee)]());}[_0x480de2(0x109)](){const _0x244dc1=_0x480de2;this['_status']===_0x244dc1(0x120)&&this[_0x244dc1(0x11e)]();}[_0x480de2(0xb4)](_0x5a0ec2){const _0x140271=_0x480de2,{presenter:_0x3208f0}=_0x5a0ec2['data'],_0x5bc018=this[_0x140271(0xcc)][_0x140271(0xb9)]();this[_0x140271(0xac)]=_0x3208f0,_0x3208f0===_0x5bc018?(this[_0x140271(0x11e)](),this[_0x140271(0xf6)]()):this[_0x140271(0xdb)]!==_0x140271(0x9a)&&(this[_0x140271(0xdd)](),this[_0x140271(0xee)]());}[_0x480de2(0xd0)](){const _0x5f54f6=_0x480de2,_0x4995df={'eventID':_0x5cbca8['LIVESHARE_FETCH_OPERATIONS']};this[_0x5f54f6(0xcc)][_0x5f54f6(0x95)](_0x4995df,this[_0x5f54f6(0xe0)]);}[_0x480de2(0xb7)](){const _0x49b11b=_0x480de2;this[_0x49b11b(0xac)]=null,this[_0x49b11b(0xdb)]!==_0x49b11b(0x89)&&this[_0x49b11b(0x96)]();}['_handleNewChangeSets'](_0x1b7096){const _0x153f42=_0x480de2;if(this[_0x153f42(0xdb)]===_0x153f42(0x120)&&this[_0x153f42(0xac)]===_0x1b7096['data']['memberID']){const _0x34503f=_0x432e75(_0x1b7096[_0x153f42(0x9f)])['mutations'][_0x153f42(0xaf)]()['find'](_0x7afcd8=>_0x7afcd8['id']===_0x29dcc9['id']);if(_0x34503f){const _0x4ba76b=_0x34503f[_0x153f42(0x98)][_0x153f42(0xb5)],_0x15dba1=_0x34503f[_0x153f42(0x98)][_0x153f42(0x9e)]['id'];setTimeout(()=>{const _0x2ecaf5=_0x153f42;this['_commandService'][_0x2ecaf5(0x7f)](_0x42d600['id'],{'unitId':_0x4ba76b,'subUnitId':_0x15dba1},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x177141=_0x480de2;this['_status$']['next'](_0x177141(0x89));const _0x39f6be=new Map(),_0x3ff90b=this['_commandDisposable']=new _0xb8bf1f();_0x3ff90b[_0x177141(0xb1)](_0x5b0e28(()=>{_0x39f6be['forEach'](_0x293cd6=>_0x293cd6['complete']()),_0x39f6be['clear']();})),_0x3ff90b[_0x177141(0xb1)](this[_0x177141(0xd1)][_0x177141(0xa3)](_0x381eea=>{const _0x4a017b=_0x177141;var _0x4c0798;if(_0x381eea[_0x4a017b(0x113)]!==_0x2baff1[_0x4a017b(0x8d)]||!this['_liveShareService'][_0x4a017b(0xe8)](_0x381eea['id']))return;const {id:_0x520a4d}=_0x381eea;let _0x4f3b76;_0x39f6be['has'](_0x520a4d)?_0x4f3b76=_0x39f6be[_0x4a017b(0xa4)](_0x520a4d):(_0x4f3b76=new _0x35191d(),_0x39f6be[_0x4a017b(0xc1)](_0x520a4d,_0x4f3b76),_0x4f3b76[_0x4a017b(0xd2)](_0x55381b((_0x4c0798=this['_configService'][_0x4a017b(0x9c)](Ce))!=null?_0x4c0798:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4a017b(0x114)](_0x26fda9=>{const _0x3bd224=_0x4a017b;this[_0x3bd224(0xcc)]['send']({'eventID':_0x5cbca8[_0x3bd224(0xe4)],'data':{'unitID':this[_0x3bd224(0xe0)],'operations':{[_0x26fda9['id']]:{'id':_0x26fda9['id'],'params':JSON[_0x3bd224(0x116)](_0x26fda9[_0x3bd224(0x98)])}}}},this[_0x3bd224(0xe0)]);})),_0x4f3b76['next'](_0x381eea);})),this[_0x177141(0xe6)][_0x177141(0xd3)](this[_0x177141(0xe0)])[_0x177141(0x11d)](_0x21f65b=>this[_0x177141(0xcc)][_0x177141(0x95)]({'eventID':_0x5cbca8[_0x177141(0xe4)],'data':{'unitID':this[_0x177141(0xe0)],'operations':{[_0x21f65b['id']]:{'id':_0x21f65b['id'],'params':JSON[_0x177141(0x116)](_0x21f65b['params'])}}}},this[_0x177141(0xe0)]));}[_0x480de2(0xdd)](){const _0x4cf352=_0x480de2;var _0xbf5732;this[_0x4cf352(0xe5)][_0x4cf352(0xa5)](_0x4cf352(0xff)),(_0xbf5732=this[_0x4cf352(0x11f)])==null||_0xbf5732[_0x4cf352(0xfd)](),this['_commandDisposable']=null;}[_0x480de2(0xee)](){const _0x21eac1=_0x480de2;var _0x50bcac;(_0x50bcac=this['_commandDisposable'])==null||_0x50bcac[_0x21eac1(0xfd)](),this[_0x21eac1(0xe5)][_0x21eac1(0xa5)](_0x21eac1(0x120));}['_beIdle'](){const _0x2a0fd7=_0x480de2;var _0x24cd7a;this[_0x2a0fd7(0xe5)][_0x2a0fd7(0xa5)]('idle'),(_0x24cd7a=this[_0x2a0fd7(0x11f)])==null||_0x24cd7a[_0x2a0fd7(0xfd)](),this[_0x2a0fd7(0x11f)]=null;}[_0x480de2(0x11e)](){const _0x98543e=_0x480de2;var _0x4bf86b;this[_0x98543e(0xe5)][_0x98543e(0xa5)](_0x98543e(0x9a)),(_0x4bf86b=this[_0x98543e(0x11f)])==null||_0x4bf86b[_0x98543e(0xfd)]();}[_0x480de2(0x10b)](_0x58c3f4){const _0x3a4f0c=_0x480de2;if(['presenting',_0x3a4f0c(0x9a),_0x3a4f0c(0xa9)][_0x3a4f0c(0x11a)](this[_0x3a4f0c(0xdb)])||!_0x58c3f4[_0x3a4f0c(0x9f)][_0x3a4f0c(0xc6)]||_0x58c3f4[_0x3a4f0c(0x9f)][_0x3a4f0c(0xc6)]===this[_0x3a4f0c(0xcc)][_0x3a4f0c(0xb9)]())return;this[_0x3a4f0c(0xdb)]===_0x3a4f0c(0xff)&&this[_0x3a4f0c(0xee)]();const _0x2d886e=_0x58c3f4[_0x3a4f0c(0x9f)]['operations'];Object['values'](_0x2d886e)[_0x3a4f0c(0x11d)](_0x16922f=>{const _0x23ed7c=_0x3a4f0c;this['_commandService']['executeCommand'](_0x16922f['id'],_0x16922f[_0x23ed7c(0x98)]?JSON['parse'](_0x16922f[_0x23ed7c(0x98)]):null,{'fromCollab':!0x0});});}[_0x480de2(0x118)](){const _0x2a63a5=_0x480de2;var _0x5e25ed;this[_0x2a63a5(0xe5)][_0x2a63a5(0xa5)](_0x2a63a5(0xa9)),(_0x5e25ed=this[_0x2a63a5(0x11f)])==null||_0x5e25ed[_0x2a63a5(0xfd)]();}[_0x480de2(0xd8)](){const _0xc83cf5=_0x480de2;this[_0xc83cf5(0xe5)][_0xc83cf5(0xa5)](_0xc83cf5(0xff)),this[_0xc83cf5(0xd0)]();}};N=Y([_(0x2,_0xea2396),_(0x3,_0x31d8e9(L)),_(0x4,_0x358f4b)],N);function Le(){const _0xca5cec=_0x480de2,_0x15a293=_0x5b95cb(S),_0x4c337b=_0x5b95cb(_0x59e319),_0x3ab8b0=_0x477adc(()=>_0x4c337b[_0xca5cec(0xc8)](_0x1e0e7d['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x43c7fc,_0x493cc2]=_0x3126fc(null),[_0x52d3b0,_0x34bd49]=_0x3126fc(c[_0xca5cec(0x105)]),_0x3e6863=_0x2d1821(null);return _0x42fb54(()=>(_0x3ab8b0&&_0x15a293[_0xca5cec(0xf4)](_0x3ab8b0[_0xca5cec(0x7e)]())['then'](_0x142b4d=>{const _0x55dda4=_0xca5cec;_0x493cc2(_0x142b4d),_0x3e6863[_0x55dda4(0x107)]=_0x142b4d[_0x55dda4(0xcd)][_0x55dda4(0x114)](_0x1375d4=>{_0x34bd49(_0x1375d4);});}),()=>{const _0x436328=_0xca5cec;var _0x4ea08b;(_0x4ea08b=_0x3e6863[_0x436328(0x107)])==null||_0x4ea08b['unsubscribe'](),_0x3e6863[_0x436328(0x107)]=null;}),[_0x3ab8b0,_0x15a293]),_0x43c7fc?_0x4f48f3(_0x43303b,{'align':_0xca5cec(0xd5),'disabled':_0x52d3b0===c[_0xca5cec(0xf7)],'className':_0xca5cec(0xc7),'overlay':_0x4f48f3(Re,{'status':_0x52d3b0,'coordinator':_0x43c7fc}),'children':_0x4f48f3('button',{'className':_0x219d87(_0xca5cec(0xad),{'univer-cursor-not-allowed':_0x52d3b0===c[_0xca5cec(0xf7)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x52d3b0!==c[_0xca5cec(0xf7)]}),'type':'button','children':_0x4f48f3(W,{'className':_0xca5cec(0xce)})})}):null;}function Re(_0x2ef174){const _0x277700=_0x480de2,{status:_0x2430bb,coordinator:_0x338fed}=_0x2ef174;switch(_0x2430bb){case c[_0x277700(0x105)]:return _0x4f48f3($e,{'coordinator':_0x338fed});case c[_0x277700(0x91)]:return _0x4f48f3(xe,{'coordinator':_0x338fed});case c[_0x277700(0xb2)]:return _0x4f48f3(Pe,{'coordinator':_0x338fed});case c[_0x277700(0xf7)]:return _0x4f48f3(Te,{});case c['PRESENTING']:return _0x4f48f3(Ae,{'coordinator':_0x338fed});default:return null;}}function $e(_0xfad782){const _0x5995a0=_0x480de2,{coordinator:_0x5ee935}=_0xfad782;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5995a0(0xe7)}),_0x4f48f3(_0x5f10a4,{'onClick':()=>_0x5ee935['tryStartPresenting'](),'children':_0x5995a0(0x97)})]});}function xe(_0x4a7620){const _0x13e27f=_0x480de2,{coordinator:_0x541788}=_0x4a7620;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3(_0x13e27f(0xe2),{'className':_0x13e27f(0x8b),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x4f48f3(_0x5f10a4,{'onClick':()=>_0x541788['stopFollowing'](),'children':_0x13e27f(0xdc)})]});}function Pe(_0x185a58){const _0x400cfa=_0x480de2,{coordinator:_0xa38fab}=_0x185a58;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3(_0x400cfa(0xe2),{'className':_0x400cfa(0x8b),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4f48f3(_0x5f10a4,{'variant':'text','onClick':()=>_0xa38fab[_0x400cfa(0x82)](),'children':_0x400cfa(0x90)})]});}function Ae(_0x14e769){const _0x49059d=_0x480de2,{coordinator:_0x393521}=_0x14e769;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3(_0x49059d(0xe2),{'className':_0x49059d(0x8b),'children':_0x49059d(0xde)}),_0x4f48f3(_0x5f10a4,{'variant':'default','onClick':()=>_0x393521[_0x49059d(0xb0)](),'children':_0x49059d(0xea)})]});}function Te(){const _0x35fc15=_0x480de2;return _0x4f48f3(_0x5480f9,{'children':_0x35fc15(0xf9)});}var Fe=Object[_0x480de2(0x103)],He=(_0xc389b6,_0x47ae8a,_0x4a2f48,_0x244129)=>{for(var _0x5e3960=_0x244129>0x1?void 0x0:_0x244129?Fe(_0x47ae8a,_0x4a2f48):_0x47ae8a,_0x54a047=_0xc389b6['length']-0x1,_0x19907b;_0x54a047>=0x0;_0x54a047--)(_0x19907b=_0xc389b6[_0x54a047])&&(_0x5e3960=_0x19907b(_0x5e3960)||_0x5e3960);return _0x5e3960;},A=(_0x12cc2f,_0x2cada1)=>(_0x41e21f,_0x613bb1)=>_0x2cada1(_0x41e21f,_0x613bb1,_0x12cc2f);let m=class extends _0x445766{constructor(_0x172e53,_0x4f79ea){const _0x1a884a=_0x480de2;super(),this[_0x1a884a(0x102)]=_0x172e53,this['_uiPartsService']=_0x4f79ea,this['_mountLiveShare']();}[_0x480de2(0xa6)](){const _0x5ae6c7=_0x480de2;this['disposeWithMe'](this[_0x5ae6c7(0x81)][_0x5ae6c7(0xd7)](_0x589e20[_0x5ae6c7(0x10a)],()=>_0x2bfcca(Le,this[_0x5ae6c7(0x102)])));}};m=He([A(0x0,_0x31d8e9(_0x4d1ef7)),A(0x1,_0x1618ae)],m);const ye=_0x480de2(0x8e),T={};var Ue=Object[_0x480de2(0x103)],Ve=(_0x249b57,_0x4669ab,_0x3ceaa9,_0xa47879)=>{const _0x14820b=_0x480de2;for(var _0x5a1957=_0xa47879>0x1?void 0x0:_0xa47879?Ue(_0x4669ab,_0x3ceaa9):_0x4669ab,_0xd5a94d=_0x249b57[_0x14820b(0xbf)]-0x1,_0x261a0a;_0xd5a94d>=0x0;_0xd5a94d--)(_0x261a0a=_0x249b57[_0xd5a94d])&&(_0x5a1957=_0x261a0a(_0x5a1957)||_0x5a1957);return _0x5a1957;},je=(_0x12cfd5,_0x4e7413)=>(_0x56a754,_0x9be823)=>_0x4e7413(_0x56a754,_0x9be823,_0x12cfd5);let I=class extends _0x445766{constructor(_0x3ba195){const _0x3b4077=_0x480de2;super(),this[_0x3b4077(0xe6)]=_0x3ba195,this[_0x3b4077(0x83)]();}[_0x480de2(0x83)](){const _0x146712=_0x480de2;[_0xee7cd['id'],_0x504137['id'],_0x42d600['id']][_0x146712(0x11d)](_0x4a77ef=>{const _0x505cfc=_0x146712;this[_0x505cfc(0xe1)](this[_0x505cfc(0xe6)][_0x505cfc(0xb6)](_0x4a77ef));});}};I=Ve([je(0x0,_0x31d8e9(L))],I);var Me=Object[_0x480de2(0x108)],ke=Object[_0x480de2(0x103)],Ge=(_0x3f3f64,_0x21c44a,_0x49d929)=>_0x21c44a in _0x3f3f64?Me(_0x3f3f64,_0x21c44a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49d929}):_0x3f3f64[_0x21c44a]=_0x49d929,We=(_0x77c05d,_0x551572,_0x1732b4,_0x2c59c5)=>{const _0x170ee9=_0x480de2;for(var _0x1a3120=_0x2c59c5>0x1?void 0x0:_0x2c59c5?ke(_0x551572,_0x1732b4):_0x551572,_0xd600ef=_0x77c05d[_0x170ee9(0xbf)]-0x1,_0x500c05;_0xd600ef>=0x0;_0xd600ef--)(_0x500c05=_0x77c05d[_0xd600ef])&&(_0x1a3120=_0x500c05(_0x1a3120)||_0x1a3120);return _0x1a3120;},F=(_0x2901fb,_0x49a302)=>(_0x3613d9,_0x164f78)=>_0x49a302(_0x3613d9,_0x164f78,_0x2901fb),B=(_0x3a68c3,_0x176827,_0xb3ba0f)=>Ge(_0x3a68c3,typeof _0x176827!=_0x480de2(0x106)?_0x176827+'':_0x176827,_0xb3ba0f);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x218f1f{constructor(_0x1d5e66=T,_0x5d5c39,_0xc484d4){const _0x2d2aa6=_0x480de2;super(),this[_0x2d2aa6(0x93)]=_0x1d5e66,this[_0x2d2aa6(0x102)]=_0x5d5c39,this[_0x2d2aa6(0xfa)]=_0xc484d4;const {..._0x40ad25}=_0x477aae({},T,this[_0x2d2aa6(0x93)]);this[_0x2d2aa6(0xfa)][_0x2d2aa6(0x10c)](ye,_0x40ad25);}[_0x480de2(0x86)](){const _0x170149=_0x480de2;_0xaed711(this[_0x170149(0x102)],_0xb0235f([[L],[S],[I],[m]],this[_0x170149(0x93)][_0x170149(0xcb)])),_0xd465dc(this[_0x170149(0x102)],[[I]]);}[_0x480de2(0xc2)](){const _0x14c429=_0x480de2;_0xd465dc(this[_0x14c429(0x102)],[[m]]);}};B(b,'type',_0x1e0e7d[_0x480de2(0xa1)]),B(b,_0x480de2(0xa2),Ye),b=We([_0x2532bd(_0x1e0ea8),F(0x1,_0x31d8e9(_0x4d1ef7)),F(0x2,_0xea2396)],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 _0x33f3a0=_0x2e44;(function(_0x5ad21f,_0x3dc78a){const _0x5d7d3f=_0x2e44,_0x18ce42=_0x5ad21f();while(!![]){try{const _0x20d940=-parseInt(_0x5d7d3f(0x225))/0x1*(-parseInt(_0x5d7d3f(0x1f2))/0x2)+-parseInt(_0x5d7d3f(0x25c))/0x3*(parseInt(_0x5d7d3f(0x274))/0x4)+parseInt(_0x5d7d3f(0x23f))/0x5+-parseInt(_0x5d7d3f(0x203))/0x6+-parseInt(_0x5d7d3f(0x249))/0x7*(-parseInt(_0x5d7d3f(0x264))/0x8)+parseInt(_0x5d7d3f(0x22b))/0x9*(parseInt(_0x5d7d3f(0x239))/0xa)+-parseInt(_0x5d7d3f(0x21f))/0xb*(parseInt(_0x5d7d3f(0x1ce))/0xc);if(_0x20d940===_0x3dc78a)break;else _0x18ce42['push'](_0x18ce42['shift']());}catch(_0x4c97a6){_0x18ce42['push'](_0x18ce42['shift']());}}}(_0x459e,0xad3af));var J=Object[_0x33f3a0(0x236)],K=(_0xc79036,_0x4e3ecf,_0xd7d539)=>_0x4e3ecf in _0xc79036?J(_0xc79036,_0x4e3ecf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd7d539}):_0xc79036[_0x4e3ecf]=_0xd7d539,u=(_0x4422ad,_0x345867,_0x3f3468)=>K(_0x4422ad,typeof _0x345867!='symbol'?_0x345867+'':_0x345867,_0x3f3468);import{Disposable as _0x123ebc,toDisposable as _0x31e46f,IUniverInstanceService as _0x56e919,Inject as _0x4770f0,Injector as _0x52080b,IConfigService as _0x404a20,ICommandService as _0x3d793e,RxDisposable as _0x17838a,UniverInstanceType as _0x1afb45,DisposableCollection as _0x5321e8,CommandType as _0x4795cf,DependentOn as _0x83a676,Plugin as _0x14031e,merge as _0x2fd27e,registerDependencies as _0x293650,mergeOverrideWithDependencies as _0x57eb35,touchDependencies as _0x19de09}from'@univerjs/core';import{useDependency as _0x26c8a9,useObservable as _0x4c2a85,IUIPartsService as _0x510518,BuiltInUIPart as _0x221148,connectInjector as _0x1211a}from'@univerjs/ui';import{jsx as _0x2d6d1e,jsxs as _0x4bfea3,Fragment as _0x4d5d84}from'react/jsx-runtime';import{Dropdown as _0x2eaec2,clsx as _0xf2d602,Button as _0x5c367e}from'@univerjs/design';import{useRef as _0x278b84,createElement as _0x3b10f6,forwardRef as _0x10402b,useState as _0x575f52,useEffect as _0x1a5f41}from'react';import{CollaborationEvent as _0xb16a85,parseProtocolChangeset as _0xcaafe2}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x58b373,SessionStatus as _0x178ef0,UniverCollaborationClientPlugin as _0x5984b3}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x10d1bf,SetWorksheetActiveOperation as _0x46858f}from'@univerjs/sheets';import{BehaviorSubject as _0x176527,Subject as _0x3a662b}from'rxjs';import{takeUntil as _0x37843a,throttleTime as _0x5f4e61}from'rxjs/operators';import{SetZoomRatioOperation as _0x57d381,SetScrollOperation as _0x23a13f}from'@univerjs/sheets-ui';function k({ref:_0x5b4cea,..._0x38787f}){const _0x3aa2f8=_0x33f3a0,{icon:_0x35d148,id:_0x19eaf2,className:_0x2a3884,extend:_0x303024,..._0x53100e}=_0x38787f,_0x15fd1b=(_0x3aa2f8(0x270)+_0x19eaf2+'\x20'+(_0x2a3884||''))[_0x3aa2f8(0x251)](),_0x50b4e7=_0x278b84('_'+Oe());return G(_0x35d148,''+_0x19eaf2,{'defIds':_0x35d148['defIds'],'idSuffix':_0x50b4e7['current']},{'ref':_0x5b4cea,'className':_0x15fd1b,..._0x53100e},_0x303024);}function G(_0x556d60,_0x9df4d4,_0x4fb525,_0xdf95c,_0x29ec95){const _0x46d3d6=_0x33f3a0;return _0x3b10f6(_0x556d60[_0x46d3d6(0x241)],{'key':_0x9df4d4,...be(_0x556d60,_0x4fb525,_0x29ec95),..._0xdf95c},(Ee(_0x556d60,_0x4fb525)[_0x46d3d6(0x1db)]||[])[_0x46d3d6(0x208)]((_0x401c42,_0x2cd970)=>G(_0x401c42,_0x9df4d4+'-'+_0x556d60[_0x46d3d6(0x241)]+'-'+_0x2cd970,_0x4fb525,void 0x0,_0x29ec95)));}function be(_0x3fc3ee,_0x278250,_0x114b3d){const _0x1be6fd=_0x33f3a0,_0x5e231b={..._0x3fc3ee['attrs']};_0x114b3d!=null&&_0x114b3d[_0x1be6fd(0x1f8)]&&_0x5e231b['fill']===_0x1be6fd(0x1f8)&&(_0x5e231b['fill']=_0x114b3d['colorChannel1']),_0x3fc3ee[_0x1be6fd(0x241)]===_0x1be6fd(0x1e0)&&_0x5e231b['id']&&(_0x5e231b['id']=_0x5e231b['id']+_0x278250[_0x1be6fd(0x245)]),Object[_0x1be6fd(0x23c)](_0x5e231b)[_0x1be6fd(0x228)](([_0x1cff51,_0x396038])=>{const _0x55f7d7=_0x1be6fd;_0x1cff51===_0x55f7d7(0x1e0)&&typeof _0x396038==_0x55f7d7(0x224)&&(_0x5e231b[_0x1cff51]=_0x396038[_0x55f7d7(0x1d6)](/url\(#(.*)\)/,'url(#$1'+_0x278250[_0x55f7d7(0x245)]+')'));});const {defIds:_0xdade56}=_0x278250;return!_0xdade56||_0xdade56[_0x1be6fd(0x21b)]===0x0||(_0x3fc3ee[_0x1be6fd(0x241)]===_0x1be6fd(0x258)&&_0x5e231b['xlink:href']&&(_0x5e231b[_0x1be6fd(0x1e2)]=_0x5e231b[_0x1be6fd(0x1e2)]+_0x278250[_0x1be6fd(0x245)]),Object[_0x1be6fd(0x23c)](_0x5e231b)[_0x1be6fd(0x228)](([_0x3d541b,_0x515e38])=>{const _0x350485=_0x1be6fd;typeof _0x515e38==_0x350485(0x224)&&(_0x5e231b[_0x3d541b]=_0x515e38[_0x350485(0x1d6)](/url\(#(.*)\)/,'url(#$1'+_0x278250[_0x350485(0x245)]+')'));})),_0x5e231b;}function Ee(_0x42c0ef,_0xd6ce40){const _0x230fdd=_0x33f3a0;var _0x3f6687;const {defIds:_0x1768f8}=_0xd6ce40;return!_0x1768f8||_0x1768f8['length']===0x0?_0x42c0ef:_0x42c0ef['tag']===_0x230fdd(0x1de)&&((_0x3f6687=_0x42c0ef['children'])!=null&&_0x3f6687[_0x230fdd(0x21b)])?{..._0x42c0ef,'children':_0x42c0ef['children'][_0x230fdd(0x208)](_0x1e6bad=>typeof _0x1e6bad[_0x230fdd(0x247)]['id']=='string'&&_0x1768f8&&_0x1768f8['includes'](_0x1e6bad[_0x230fdd(0x247)]['id'])?{..._0x1e6bad,'attrs':{..._0x1e6bad[_0x230fdd(0x247)],'id':_0x1e6bad[_0x230fdd(0x247)]['id']+_0xd6ce40[_0x230fdd(0x245)]}}:_0x1e6bad)}:_0x42c0ef;}function Oe(){const _0x39159b=_0x33f3a0;return Math[_0x39159b(0x237)]()[_0x39159b(0x1e6)](0x24)[_0x39159b(0x206)](0x2,0x8);}k[_0x33f3a0(0x20a)]=_0x33f3a0(0x25a);const we={'tag':'svg','attrs':{'xmlns':_0x33f3a0(0x1e5),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x33f3a0(0x23d),'height':'1em'},'children':[{'tag':_0x33f3a0(0x254),'attrs':{'fill':_0x33f3a0(0x21c),'d':_0x33f3a0(0x1f0)}},{'tag':_0x33f3a0(0x254),'attrs':{'fill':'currentColor','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':_0x33f3a0(0x1f4),'clipRule':_0x33f3a0(0x1f4)}}]},W=_0x10402b(function(_0x1133f4,_0x52c04b){const _0x4d89e6=_0x33f3a0;return _0x3b10f6(k,Object[_0x4d89e6(0x1d9)]({},_0x1133f4,{'id':_0x4d89e6(0x207),'ref':_0x52c04b,'icon':we}));});W[_0x33f3a0(0x20a)]='LiveShareIcon';class L extends _0x123ebc{constructor(){const _0x34dc27=_0x33f3a0;super(...arguments),u(this,_0x34dc27(0x1d0),new Set()),u(this,_0x34dc27(0x229),new Set());}['registerSharedOperation'](_0x914821){const _0x403db7=_0x33f3a0;return this['_sharedOperations'][_0x403db7(0x25b)](_0x914821),_0x31e46f(()=>this[_0x403db7(0x1d0)]['delete'](_0x914821));}['registerInitialStateReporter'](_0xb43a22){const _0x5385b1=_0x33f3a0;return this[_0x5385b1(0x229)][_0x5385b1(0x25b)](_0xb43a22),_0x31e46f(()=>this[_0x5385b1(0x229)]['delete'](_0xb43a22));}[_0x33f3a0(0x26d)](_0x1c1763){const _0x503683=_0x33f3a0;return this['_sharedOperations'][_0x503683(0x244)](_0x1c1763);}[_0x33f3a0(0x1fd)](_0x1267ab){const _0x24e62b=_0x33f3a0;return Array['from'](this[_0x24e62b(0x229)])[_0x24e62b(0x208)](_0x4fafe4=>_0x4fafe4(_0x1267ab));}}var Ne=Object[_0x33f3a0(0x24d)],Y=(_0x3ea768,_0x58f61a,_0xe93ef6,_0x51aebd)=>{const _0x67f94d=_0x33f3a0;for(var _0x4426c3=_0x51aebd>0x1?void 0x0:_0x51aebd?Ne(_0x58f61a,_0xe93ef6):_0x58f61a,_0x48ce84=_0x3ea768[_0x67f94d(0x21b)]-0x1,_0xdd11bf;_0x48ce84>=0x0;_0x48ce84--)(_0xdd11bf=_0x3ea768[_0x48ce84])&&(_0x4426c3=_0xdd11bf(_0x4426c3)||_0x4426c3);return _0x4426c3;},_=(_0x513a9f,_0x4ba8f1)=>(_0xfc4201,_0x4eb585)=>_0x4ba8f1(_0xfc4201,_0x4eb585,_0x513a9f);let S=class extends _0x17838a{constructor(_0x3758db,_0x4933f8,_0x5bf668){const _0x1894cf=_0x33f3a0;super(),u(this,'_entities',new Map()),(this['_univerInstanceService']=_0x3758db,this[_0x1894cf(0x1f9)]=_0x4933f8,this[_0x1894cf(0x1e4)]=_0x5bf668,this[_0x1894cf(0x23e)]());}async[_0x33f3a0(0x218)](_0x57f0fb){const _0x454f11=_0x33f3a0;return this[_0x454f11(0x275)]['has'](_0x57f0fb)||await this['_startLiveShareCoordinator'](_0x57f0fb),this[_0x454f11(0x275)][_0x454f11(0x20b)](_0x57f0fb);}[_0x33f3a0(0x22d)](_0x58cc5d){const _0x23bc19=_0x33f3a0;var _0x48ad61;return(_0x48ad61=this[_0x23bc19(0x275)][_0x23bc19(0x20b)](_0x58cc5d))!=null?_0x48ad61:null;}['_init'](){const _0x214d50=_0x33f3a0;this[_0x214d50(0x1d1)][_0x214d50(0x20c)](_0x1afb45[_0x214d50(0x1e1)])[_0x214d50(0x256)](_0x37843a(this['dispose$']))[_0x214d50(0x25e)](async _0x12f3c4=>{const _0x132751=_0x214d50,_0x454f48=_0x12f3c4[_0x132751(0x1f5)]();this[_0x132751(0x275)]['has'](_0x454f48)||this[_0x132751(0x1ee)](_0x454f48);}),this[_0x214d50(0x1d1)][_0x214d50(0x1da)](_0x1afb45[_0x214d50(0x1e1)])[_0x214d50(0x256)](_0x37843a(this['dispose$']))[_0x214d50(0x25e)](_0x3c7707=>{const _0x17a399=_0x214d50,_0x459a59=_0x3c7707[_0x17a399(0x1f5)](),_0xef1edc=this[_0x17a399(0x275)]['get'](_0x459a59);_0xef1edc==null||_0xef1edc[_0x17a399(0x26c)]();});}async[_0x33f3a0(0x1ee)](_0x674802){const _0x4402a1=_0x33f3a0,_0x2dc03b=await this[_0x4402a1(0x1e4)][_0x4402a1(0x243)](_0x674802),_0x4a00c3=this[_0x4402a1(0x1f9)][_0x4402a1(0x234)](N,_0x674802,_0x2dc03b);return _0x4a00c3[_0x4402a1(0x205)](),this[_0x4402a1(0x275)][_0x4402a1(0x1d2)](_0x674802,_0x4a00c3),_0x4a00c3;}};S=Y([_(0x0,_0x56e919),_(0x1,_0x4770f0(_0x52080b)),_(0x2,_0x4770f0(_0x58b373))],S);var c=(_0x27bf23=>(_0x27bf23[_0x33f3a0(0x24c)]='offline',_0x27bf23[_0x33f3a0(0x260)]=_0x33f3a0(0x1eb),_0x27bf23['FOLLOWING']='following',_0x27bf23['NOT_FOLLOWING']=_0x33f3a0(0x238),_0x27bf23['PRESENTING']=_0x33f3a0(0x255),_0x27bf23))(c||{});const Ce=_0x33f3a0(0x1df),De=0xc8;let N=class extends _0x17838a{constructor(_0x1d22cf,_0x92e78,_0x22e8c4,_0x52fee2,_0x1db30a){const _0x51c258=_0x33f3a0;super(),u(this,'_status$',new _0x176527('idle')),u(this,_0x51c258(0x1dd),this[_0x51c258(0x230)][_0x51c258(0x1dc)]()),u(this,'_init',!0x1),u(this,_0x51c258(0x268),null),u(this,'_presenter',null),(this[_0x51c258(0x263)]=_0x1d22cf,this[_0x51c258(0x1f1)]=_0x92e78,this[_0x51c258(0x23a)]=_0x22e8c4,this[_0x51c258(0x215)]=_0x52fee2,this[_0x51c258(0x1d4)]=_0x1db30a);}get['_status'](){const _0x438f46=_0x33f3a0;return this['_status$'][_0x438f46(0x1e3)]();}[_0x33f3a0(0x26c)](){const _0x27ec2c=_0x33f3a0;var _0x72d230;(_0x72d230=this[_0x27ec2c(0x268)])==null||_0x72d230['dispose'](),this['_status$'][_0x27ec2c(0x24b)](_0x27ec2c(0x1eb)),this[_0x27ec2c(0x230)][_0x27ec2c(0x220)]();}[_0x33f3a0(0x252)](){const _0x11edac=_0x33f3a0;return this[_0x11edac(0x25d)];}[_0x33f3a0(0x205)](){const _0x102587=_0x33f3a0;this['_init']||(this[_0x102587(0x23e)]=!0x0,this['_collabSession'][_0x102587(0x20f)][_0x102587(0x256)](_0x37843a(this['dispose$']))[_0x102587(0x25e)](_0x5ef95c=>{const _0x443f08=_0x102587;switch(_0x5ef95c){case _0x178ef0[_0x443f08(0x24c)]:this['_handleOffline']();break;case _0x178ef0[_0x443f08(0x257)]:this['_handleOnline']();break;}}),this[_0x102587(0x1f1)][_0x102587(0x222)][_0x102587(0x256)](_0x37843a(this[_0x102587(0x250)]))['subscribe'](_0x1be2fe=>{const _0x1fcfc9=_0x102587,{eventID:_0x1d0554}=_0x1be2fe;switch(_0x1d0554){case _0xb16a85[_0x1fcfc9(0x227)]:this[_0x1fcfc9(0x202)](_0x1be2fe);break;case _0xb16a85[_0x1fcfc9(0x1cf)]:this[_0x1fcfc9(0x232)](_0x1be2fe);break;case _0xb16a85[_0x1fcfc9(0x272)]:this['_handleTerminate']();break;case _0xb16a85[_0x1fcfc9(0x22f)]:this[_0x1fcfc9(0x200)](_0x1be2fe);break;}}));}['tryStartPresenting'](){const _0x25bb1b=_0x33f3a0;this[_0x25bb1b(0x1f1)][_0x25bb1b(0x253)]({'eventID':_0xb16a85['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x25bb1b(0x263)],'userID':this[_0x25bb1b(0x1f1)]['getMemberID']()}},this['_unitID']);}[_0x33f3a0(0x265)](){const _0x2f25aa=_0x33f3a0;this[_0x2f25aa(0x25d)]===_0x2f25aa(0x255)&&(this[_0x2f25aa(0x230)][_0x2f25aa(0x24b)](_0x2f25aa(0x1eb)),this[_0x2f25aa(0x1f1)][_0x2f25aa(0x253)]({'eventID':_0xb16a85[_0x2f25aa(0x272)],'data':{'unitID':this[_0x2f25aa(0x263)]}},this[_0x2f25aa(0x263)]));}['startFollowing'](){const _0x1316ad=_0x33f3a0;this['_status']===_0x1316ad(0x238)&&(this[_0x1316ad(0x230)]['next'](_0x1316ad(0x20e)),this['_startFollowing']());}[_0x33f3a0(0x248)](){const _0x4f16b7=_0x33f3a0;this[_0x4f16b7(0x25d)]===_0x4f16b7(0x20e)&&this[_0x4f16b7(0x26e)]();}[_0x33f3a0(0x202)](_0xbe7f27){const _0x592550=_0x33f3a0,{presenter:_0x1eb49d}=_0xbe7f27[_0x592550(0x214)],_0x16cf76=this[_0x592550(0x1f1)][_0x592550(0x216)]();this['_presenter']=_0x1eb49d,_0x1eb49d===_0x16cf76?(this['_stopFollowing'](),this[_0x592550(0x231)]()):this['_status']!==_0x592550(0x238)&&(this['_stopPresenting'](),this[_0x592550(0x211)]());}[_0x33f3a0(0x266)](){const _0x2e5bfd=_0x33f3a0,_0x4b6f72={'eventID':_0xb16a85['LIVESHARE_FETCH_OPERATIONS']};this[_0x2e5bfd(0x1f1)]['send'](_0x4b6f72,this[_0x2e5bfd(0x263)]);}[_0x33f3a0(0x1ef)](){const _0x40b8ab=_0x33f3a0;this[_0x40b8ab(0x1d7)]=null,this['_status']!==_0x40b8ab(0x255)&&this[_0x40b8ab(0x26a)]();}['_handleNewChangeSets'](_0x4801c3){const _0x4a918b=_0x33f3a0;if(this[_0x4a918b(0x25d)]===_0x4a918b(0x20e)&&this[_0x4a918b(0x1d7)]===_0x4801c3[_0x4a918b(0x214)]['memberID']){const _0x17c52d=_0xcaafe2(_0x4801c3[_0x4a918b(0x214)])[_0x4a918b(0x1ed)]['reverse']()[_0x4a918b(0x1e9)](_0x11313d=>_0x11313d['id']===_0x10d1bf['id']);if(_0x17c52d){const _0x327873=_0x17c52d[_0x4a918b(0x273)][_0x4a918b(0x267)],_0x432f38=_0x17c52d[_0x4a918b(0x273)][_0x4a918b(0x242)]['id'];setTimeout(()=>{const _0x1dfce2=_0x4a918b;this['_commandService'][_0x1dfce2(0x235)](_0x46858f['id'],{'unitId':_0x327873,'subUnitId':_0x432f38},{'fromCollab':!0x0});});}}}[_0x33f3a0(0x231)](){const _0x1f510d=_0x33f3a0;this[_0x1f510d(0x230)]['next'](_0x1f510d(0x255));const _0x2cd3f8=new Map(),_0x124d72=this[_0x1f510d(0x268)]=new _0x5321e8();_0x124d72[_0x1f510d(0x25b)](_0x31e46f(()=>{const _0x6feaf5=_0x1f510d;_0x2cd3f8[_0x6feaf5(0x228)](_0x3d00fa=>_0x3d00fa[_0x6feaf5(0x220)]()),_0x2cd3f8[_0x6feaf5(0x1ec)]();})),_0x124d72[_0x1f510d(0x25b)](this[_0x1f510d(0x1d4)]['onCommandExecuted'](_0xc6c9aa=>{const _0x41c79a=_0x1f510d;var _0x4fbf23;if(_0xc6c9aa[_0x41c79a(0x1fa)]!==_0x4795cf[_0x41c79a(0x21e)]||!this[_0x41c79a(0x215)][_0x41c79a(0x26d)](_0xc6c9aa['id']))return;const {id:_0x4cbfb6}=_0xc6c9aa;let _0x40e576;_0x2cd3f8[_0x41c79a(0x244)](_0x4cbfb6)?_0x40e576=_0x2cd3f8[_0x41c79a(0x20b)](_0x4cbfb6):(_0x40e576=new _0x3a662b(),_0x2cd3f8[_0x41c79a(0x1d2)](_0x4cbfb6,_0x40e576),_0x40e576[_0x41c79a(0x256)](_0x5f4e61((_0x4fbf23=this[_0x41c79a(0x23a)][_0x41c79a(0x22c)](Ce))!=null?_0x4fbf23:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x215ed=>{const _0x5ceb31=_0x41c79a;this['_collabSession']['send']({'eventID':_0xb16a85[_0x5ceb31(0x1cf)],'data':{'unitID':this[_0x5ceb31(0x263)],'operations':{[_0x215ed['id']]:{'id':_0x215ed['id'],'params':JSON[_0x5ceb31(0x1d5)](_0x215ed[_0x5ceb31(0x273)])}}}},this[_0x5ceb31(0x263)]);})),_0x40e576[_0x41c79a(0x24b)](_0xc6c9aa);})),this[_0x1f510d(0x215)][_0x1f510d(0x1fd)](this[_0x1f510d(0x263)])['forEach'](_0x144ee2=>this[_0x1f510d(0x1f1)][_0x1f510d(0x253)]({'eventID':_0xb16a85[_0x1f510d(0x1cf)],'data':{'unitID':this['_unitID'],'operations':{[_0x144ee2['id']]:{'id':_0x144ee2['id'],'params':JSON[_0x1f510d(0x1d5)](_0x144ee2[_0x1f510d(0x273)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x30eb79=_0x33f3a0;var _0xf112d3;this[_0x30eb79(0x230)]['next'](_0x30eb79(0x1eb)),(_0xf112d3=this['_commandDisposable'])==null||_0xf112d3[_0x30eb79(0x26c)](),this[_0x30eb79(0x268)]=null;}[_0x33f3a0(0x211)](){const _0x10ccbf=_0x33f3a0;var _0xae736d;(_0xae736d=this[_0x10ccbf(0x268)])==null||_0xae736d[_0x10ccbf(0x26c)](),this[_0x10ccbf(0x230)][_0x10ccbf(0x24b)](_0x10ccbf(0x20e));}[_0x33f3a0(0x26a)](){const _0x2139e5=_0x33f3a0;var _0x2fcef5;this['_status$'][_0x2139e5(0x24b)](_0x2139e5(0x1eb)),(_0x2fcef5=this['_commandDisposable'])==null||_0x2fcef5[_0x2139e5(0x26c)](),this['_commandDisposable']=null;}[_0x33f3a0(0x26e)](){const _0x179e36=_0x33f3a0;var _0x3cbe93;this[_0x179e36(0x230)][_0x179e36(0x24b)](_0x179e36(0x238)),(_0x3cbe93=this['_commandDisposable'])==null||_0x3cbe93['dispose']();}[_0x33f3a0(0x232)](_0x2de9b2){const _0x13c3c3=_0x33f3a0;if(['presenting','not-following',_0x13c3c3(0x1f3)]['includes'](this[_0x13c3c3(0x25d)])||!_0x2de9b2['data'][_0x13c3c3(0x221)]||_0x2de9b2[_0x13c3c3(0x214)][_0x13c3c3(0x221)]===this[_0x13c3c3(0x1f1)]['getMemberID']())return;this['_status']===_0x13c3c3(0x1eb)&&this[_0x13c3c3(0x211)]();const _0x59baa4=_0x2de9b2[_0x13c3c3(0x214)]['operations'];Object[_0x13c3c3(0x226)](_0x59baa4)[_0x13c3c3(0x228)](_0x9dbcdf=>{const _0x50be95=_0x13c3c3;this[_0x50be95(0x1d4)]['executeCommand'](_0x9dbcdf['id'],_0x9dbcdf[_0x50be95(0x273)]?JSON['parse'](_0x9dbcdf['params']):null,{'fromCollab':!0x0});});}[_0x33f3a0(0x1f6)](){const _0x488d37=_0x33f3a0;var _0x3eb656;this[_0x488d37(0x230)][_0x488d37(0x24b)](_0x488d37(0x1f3)),(_0x3eb656=this['_commandDisposable'])==null||_0x3eb656['dispose']();}[_0x33f3a0(0x209)](){const _0xeccbed=_0x33f3a0;this[_0xeccbed(0x230)][_0xeccbed(0x24b)](_0xeccbed(0x1eb)),this['_fetchOperations']();}};N=Y([_(0x2,_0x404a20),_(0x3,_0x4770f0(L)),_(0x4,_0x3d793e)],N);function Le(){const _0x103675=_0x33f3a0,_0x47e73a=_0x26c8a9(S),_0xa11217=_0x26c8a9(_0x56e919),_0x481d3a=_0x4c2a85(()=>_0xa11217[_0x103675(0x261)](_0x1afb45[_0x103675(0x1e1)]),void 0x0,!0x1,[]),[_0x691107,_0x505fb3]=_0x575f52(null),[_0x21ed23,_0x35588a]=_0x575f52(c[_0x103675(0x260)]),_0x48e1ff=_0x278b84(null);return _0x1a5f41(()=>(_0x481d3a&&_0x47e73a[_0x103675(0x218)](_0x481d3a[_0x103675(0x1f5)]())[_0x103675(0x1e8)](_0x2b0487=>{const _0x120805=_0x103675;_0x505fb3(_0x2b0487),_0x48e1ff[_0x120805(0x204)]=_0x2b0487[_0x120805(0x1dd)]['subscribe'](_0x5cace3=>{_0x35588a(_0x5cace3);});}),()=>{const _0x1a4c97=_0x103675;var _0x8285d4;(_0x8285d4=_0x48e1ff[_0x1a4c97(0x204)])==null||_0x8285d4[_0x1a4c97(0x25f)](),_0x48e1ff[_0x1a4c97(0x204)]=null;}),[_0x481d3a,_0x47e73a]),_0x691107?_0x2d6d1e(_0x2eaec2,{'align':'end','disabled':_0x21ed23===c[_0x103675(0x24c)],'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':_0x2d6d1e(Re,{'status':_0x21ed23,'coordinator':_0x691107}),'children':_0x2d6d1e(_0x103675(0x246),{'className':_0xf2d602(_0x103675(0x240),{'univer-cursor-not-allowed':_0x21ed23===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x21ed23!==c[_0x103675(0x24c)]}),'type':'button','children':_0x2d6d1e(W,{'className':_0x103675(0x24a)})})}):null;}function Re(_0x3d0acf){const _0x450982=_0x33f3a0,{status:_0x797ae3,coordinator:_0x262bff}=_0x3d0acf;switch(_0x797ae3){case c[_0x450982(0x260)]:return _0x2d6d1e($e,{'coordinator':_0x262bff});case c[_0x450982(0x219)]:return _0x2d6d1e(xe,{'coordinator':_0x262bff});case c[_0x450982(0x217)]:return _0x2d6d1e(Pe,{'coordinator':_0x262bff});case c[_0x450982(0x24c)]:return _0x2d6d1e(Te,{});case c[_0x450982(0x22e)]:return _0x2d6d1e(Ae,{'coordinator':_0x262bff});default:return null;}}function $e(_0x2c0556){const _0xb39eb6=_0x33f3a0,{coordinator:_0x5438de}=_0x2c0556;return _0x4bfea3(_0x4d5d84,{'children':[_0x2d6d1e(_0xb39eb6(0x1d8),{'className':_0xb39eb6(0x201),'children':_0xb39eb6(0x20d)}),_0x2d6d1e(_0x5c367e,{'onClick':()=>_0x5438de[_0xb39eb6(0x1fc)](),'children':_0xb39eb6(0x1fe)})]});}function xe(_0x3ca096){const _0x570720=_0x33f3a0,{coordinator:_0x270136}=_0x3ca096;return _0x4bfea3(_0x4d5d84,{'children':[_0x2d6d1e(_0x570720(0x1d8),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x570720(0x21a)}),_0x2d6d1e(_0x5c367e,{'onClick':()=>_0x270136[_0x570720(0x248)](),'children':_0x570720(0x271)})]});}function Pe(_0x2814d4){const _0x4b4f9f=_0x33f3a0,{coordinator:_0x9c82ea}=_0x2814d4;return _0x4bfea3(_0x4d5d84,{'children':[_0x2d6d1e(_0x4b4f9f(0x1d8),{'className':_0x4b4f9f(0x201),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2d6d1e(_0x5c367e,{'variant':_0x4b4f9f(0x1e7),'onClick':()=>_0x9c82ea[_0x4b4f9f(0x26f)](),'children':_0x4b4f9f(0x23b)})]});}function _0x2e44(_0x3092a4,_0x401c74){const _0x459eeb=_0x459e();return _0x2e44=function(_0x2e445d,_0x53bdb7){_0x2e445d=_0x2e445d-0x1cd;let _0x228b44=_0x459eeb[_0x2e445d];return _0x228b44;},_0x2e44(_0x3092a4,_0x401c74);}function Ae(_0x18efe1){const _0x1bd3fa=_0x33f3a0,{coordinator:_0x36bfab}=_0x18efe1;return _0x4bfea3(_0x4d5d84,{'children':[_0x2d6d1e(_0x1bd3fa(0x1d8),{'className':_0x1bd3fa(0x201),'children':_0x1bd3fa(0x223)}),_0x2d6d1e(_0x5c367e,{'variant':_0x1bd3fa(0x1d3),'onClick':()=>_0x36bfab[_0x1bd3fa(0x265)](),'children':_0x1bd3fa(0x24f)})]});}function Te(){const _0x1d19e6=_0x33f3a0;return _0x2d6d1e(_0x4d5d84,{'children':_0x1d19e6(0x262)});}function _0x459e(){const _0x319f14=['then','find','UNIVER_LIVE_SHARE_PLUGIN','idle','clear','mutations','_startLiveShareCoordinator','_handleTerminate','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','_collabSession','6548cYaHGT','offline','evenodd','getUnitId','_handleOffline','onStarting','colorChannel1','_injector','type','_config','tryStartPresenting','getInitialStates','Start','UNIVER_UNKNOWN','_handleNewChangeSets','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleNewHost','3897354pFxpWA','current','init','substring','live-share-icon','map','_handleOnline','displayName','get','getTypeOfUnitAdded$','Present\x20this\x20document','following','sessionStatus$','registerComponent','_startFollowing','_mountLiveShare','symbol','data','_liveShareService','getMemberID','NOT_FOLLOWING','getLiveShareCoordinator','FOLLOWING','You\x27re\x20following\x20the\x20presenter','length','currentColor','onRendered','OPERATION','154pAdmzt','complete','presenter','event$','You\x27re\x20presenting\x20the\x20document','string','403bpgUFw','values','LIVESHARE_NEW_HOST','forEach','_reporters','_uiPartsService','4840578mXqWdu','getConfig','getLiveShareCoordinatorSync','PRESENTING','NEW_CHANGESETS','_status$','_startPresenting','_handleOperation','live-share.config','createInstance','executeCommand','defineProperty','random','not-following','20rJFGbN','_configService','Start\x20following','entries','1em','_init','1538675bIhIiP','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','tag','sheet','requireSession','has','idSuffix','button','attrs','stopFollowing','7zJipyD','univer-size-4','next','OFFLINE','getOwnPropertyDescriptor','pluginName','Stop\x20presenting','dispose$','trim','getStatus','send','path','presenting','pipe','ONLINE','use','setConfig','UniverIcon','add','1449531jcXMMh','_status','subscribe','unsubscribe','IDLE','getCurrentTypeOfUnit$','You\x27are\x20offline.','_unitID','9970856joVBuC','stopPresenting','_fetchOperations','unitId','_commandDisposable','registerSharedOperation','_beIdle','HEADER_MENU','dispose','shouldShareOperation','_stopFollowing','startFollowing','univerjs-icon\x20univerjs-icon-','Stop\x20following','LIVESHARE_TERMINATE','params','8CKhPyB','_entities','disposeWithMe','1391772jUAKCs','LIVESHARE_OPERATION','_sharedOperations','_univerInstanceService','set','default','_commandService','stringify','replace','_presenter','div','assign','getTypeOfUnitDisposed$','children','asObservable','status$','defs','SAME_OPERATION_SHARE_INTERVAL','mask','UNIVER_SHEET','xlink:href','getValue','_collabSessionService','http://www.w3.org/2000/svg','toString','text'];_0x459e=function(){return _0x319f14;};return _0x459e();}var Fe=Object[_0x33f3a0(0x24d)],He=(_0x535aa1,_0x2cfb62,_0x20c910,_0x221642)=>{const _0x2e46f8=_0x33f3a0;for(var _0x3eab47=_0x221642>0x1?void 0x0:_0x221642?Fe(_0x2cfb62,_0x20c910):_0x2cfb62,_0x6843ee=_0x535aa1[_0x2e46f8(0x21b)]-0x1,_0x5d6e07;_0x6843ee>=0x0;_0x6843ee--)(_0x5d6e07=_0x535aa1[_0x6843ee])&&(_0x3eab47=_0x5d6e07(_0x3eab47)||_0x3eab47);return _0x3eab47;},A=(_0x2082db,_0x1c9007)=>(_0x3a82e9,_0x5a5420)=>_0x1c9007(_0x3a82e9,_0x5a5420,_0x2082db);let m=class extends _0x123ebc{constructor(_0x155636,_0x29070b){const _0x218fd6=_0x33f3a0;super(),this[_0x218fd6(0x1f9)]=_0x155636,this[_0x218fd6(0x22a)]=_0x29070b,this[_0x218fd6(0x212)]();}['_mountLiveShare'](){const _0x4fd0a9=_0x33f3a0;this[_0x4fd0a9(0x1cd)](this[_0x4fd0a9(0x22a)][_0x4fd0a9(0x210)](_0x221148[_0x4fd0a9(0x26b)],()=>_0x1211a(Le,this[_0x4fd0a9(0x1f9)])));}};m=He([A(0x0,_0x4770f0(_0x52080b)),A(0x1,_0x510518)],m);const ye=_0x33f3a0(0x233),T={};var Ue=Object[_0x33f3a0(0x24d)],Ve=(_0x18732e,_0x239b6f,_0x4a5423,_0x530734)=>{for(var _0x59246b=_0x530734>0x1?void 0x0:_0x530734?Ue(_0x239b6f,_0x4a5423):_0x239b6f,_0x470036=_0x18732e['length']-0x1,_0x4992ab;_0x470036>=0x0;_0x470036--)(_0x4992ab=_0x18732e[_0x470036])&&(_0x59246b=_0x4992ab(_0x59246b)||_0x59246b);return _0x59246b;},je=(_0x139394,_0x19e9e5)=>(_0x3ce7e5,_0x1ae217)=>_0x19e9e5(_0x3ce7e5,_0x1ae217,_0x139394);let I=class extends _0x123ebc{constructor(_0x40e231){super(),this['_liveShareService']=_0x40e231,this['_init']();}[_0x33f3a0(0x23e)](){const _0x225112=_0x33f3a0;[_0x57d381['id'],_0x23a13f['id'],_0x46858f['id']][_0x225112(0x228)](_0x19bbd2=>{const _0x3e5e75=_0x225112;this[_0x3e5e75(0x1cd)](this[_0x3e5e75(0x215)][_0x3e5e75(0x269)](_0x19bbd2));});}};I=Ve([je(0x0,_0x4770f0(L))],I);var Me=Object[_0x33f3a0(0x236)],ke=Object[_0x33f3a0(0x24d)],Ge=(_0x36770f,_0x38d812,_0x45f783)=>_0x38d812 in _0x36770f?Me(_0x36770f,_0x38d812,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x45f783}):_0x36770f[_0x38d812]=_0x45f783,We=(_0x5d40fc,_0x1bb5c9,_0x5a2148,_0x279338)=>{const _0x54a75e=_0x33f3a0;for(var _0x3d6b82=_0x279338>0x1?void 0x0:_0x279338?ke(_0x1bb5c9,_0x5a2148):_0x1bb5c9,_0x205263=_0x5d40fc[_0x54a75e(0x21b)]-0x1,_0x428e3b;_0x205263>=0x0;_0x205263--)(_0x428e3b=_0x5d40fc[_0x205263])&&(_0x3d6b82=_0x428e3b(_0x3d6b82)||_0x3d6b82);return _0x3d6b82;},F=(_0x32706a,_0x4d4ec2)=>(_0x3c8d7c,_0x3af40d)=>_0x4d4ec2(_0x3c8d7c,_0x3af40d,_0x32706a),B=(_0x4d41b7,_0x110354,_0x4ca6b3)=>Ge(_0x4d41b7,typeof _0x110354!=_0x33f3a0(0x213)?_0x110354+'':_0x110354,_0x4ca6b3);const Ye=_0x33f3a0(0x1ea);let b=class extends _0x14031e{constructor(_0x229764=T,_0x10c5e9,_0x1f9e0e){const _0x41a4b8=_0x33f3a0;super(),this[_0x41a4b8(0x1fb)]=_0x229764,this[_0x41a4b8(0x1f9)]=_0x10c5e9,this[_0x41a4b8(0x23a)]=_0x1f9e0e;const {..._0x24f8e6}=_0x2fd27e({},T,this[_0x41a4b8(0x1fb)]);this[_0x41a4b8(0x23a)][_0x41a4b8(0x259)](ye,_0x24f8e6);}[_0x33f3a0(0x1f7)](){const _0x2eeb34=_0x33f3a0;_0x293650(this[_0x2eeb34(0x1f9)],_0x57eb35([[L],[S],[I],[m]],this['_config']['override'])),_0x19de09(this[_0x2eeb34(0x1f9)],[[I]]);}[_0x33f3a0(0x21d)](){_0x19de09(this['_injector'],[[m]]);}};B(b,'type',_0x1afb45[_0x33f3a0(0x1ff)]),B(b,_0x33f3a0(0x24e),Ye),b=We([_0x83a676(_0x5984b3),F(0x1,_0x4770f0(_0x52080b)),F(0x2,_0x404a20)],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 _0x1505(_0x7e48c9,_0x2f959d){const _0x525681=_0x5256();return _0x1505=function(_0x150598,_0x3b4891){_0x150598=_0x150598-0x6b;let _0x231736=_0x525681[_0x150598];return _0x231736;},_0x1505(_0x7e48c9,_0x2f959d);}(function(_0x4c313f,_0x3ebdf3){const _0x4de8b8=_0x1505,_0x4fa056=_0x4c313f();while(!![]){try{const _0x25e228=-parseInt(_0x4de8b8(0x70))/0x1*(parseInt(_0x4de8b8(0x8d))/0x2)+-parseInt(_0x4de8b8(0x8a))/0x3*(parseInt(_0x4de8b8(0x80))/0x4)+-parseInt(_0x4de8b8(0x9c))/0x5*(-parseInt(_0x4de8b8(0x75))/0x6)+parseInt(_0x4de8b8(0x90))/0x7*(parseInt(_0x4de8b8(0x74))/0x8)+-parseInt(_0x4de8b8(0x97))/0x9+-parseInt(_0x4de8b8(0x96))/0xa*(-parseInt(_0x4de8b8(0x7d))/0xb)+parseInt(_0x4de8b8(0x7c))/0xc;if(_0x25e228===_0x3ebdf3)break;else _0x4fa056['push'](_0x4fa056['shift']());}catch(_0x545814){_0x4fa056['push'](_0x4fa056['shift']());}}}(_0x5256,0x629ad),function(_0x3196d4,_0x1c5a76){const _0x5b5d2f=_0x1505;typeof exports=='object'&&typeof module<'u'?_0x1c5a76(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[_0x5b5d2f(0x9b)]?define([_0x5b5d2f(0x86),'@univerjs/engine-render',_0x5b5d2f(0x8e),'@univerjs/sheets-ui',_0x5b5d2f(0x92),_0x5b5d2f(0x78)],_0x1c5a76):(_0x3196d4=typeof globalThis<'u'?globalThis:_0x3196d4||self,_0x1c5a76(_0x3196d4['UniverProLiveShare'],_0x3196d4[_0x5b5d2f(0x99)],_0x3196d4[_0x5b5d2f(0x81)],_0x3196d4[_0x5b5d2f(0x85)],_0x3196d4[_0x5b5d2f(0x89)],_0x3196d4['UniverCoreFacade']));}(this,function(_0x4c7ada,_0xbaf66b,_0x3e32a1,_0x3bdca8,_0x573904,_0xbe53ab){'use strict';const _0x7322ba=_0x1505;class _0x2d17d6 extends _0x573904[_0x7322ba(0x7e)]{['_initialize'](_0x3b9b4e,_0x31fdf0,_0x22252e,_0x32c199,_0x402875){const _0x99362d=_0x7322ba,_0x196e82=_0x3b9b4e[_0x99362d(0x7a)](_0x4c7ada[_0x99362d(0x7b)]),_0x388ba6=_0x3b9b4e[_0x99362d(0x7a)](_0xbaf66b[_0x99362d(0x6c)]),_0x4982d9=_0x31fdf0[_0x99362d(0x91)](),_0x40b362=_0x31fdf0['getActiveSheet'](),_0x4a0ced=_0x196e82['getLiveShareCoordinatorSync'](_0x4982d9);(_0x4a0ced==null?void 0x0:_0x4a0ced[_0x99362d(0x98)]())!==_0x4c7ada[_0x99362d(0x76)]['PRESENTING']||(_0x22252e['getSheetId']()!==_0x40b362[_0x99362d(0x6e)]()&&this[_0x99362d(0x7f)][_0x99362d(0x93)](_0x3e32a1[_0x99362d(0x79)]['id'],{'unitId':_0x4982d9,'subUnitId':_0x22252e['getSheetId']()}),!_0x388ba6['getRenderById'](_0x4982d9))||_0x402875[_0x99362d(0x71)](_0x3bdca8[_0x99362d(0x6f)]['id'],{'unitId':_0x31fdf0[_0x99362d(0x91)](),'sheetId':_0x22252e[_0x99362d(0x6e)](),'sheetViewStartRow':_0x32c199[_0x99362d(0x73)],'sheetViewStartColumn':_0x32c199['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x573904[_0x7322ba(0x7e)]['extend'](_0x2d17d6);class _0x37d2b7 extends _0xbe53ab[_0x7322ba(0x72)]{['getLiveShareStatus'](){const _0x314f00=_0x7322ba;var _0x397264,_0x1df74e;const _0x19285f=this[_0x314f00(0x84)][_0x314f00(0x7a)](_0x4c7ada[_0x314f00(0x7b)]),_0x4692d6=(_0x397264=this[_0x314f00(0x94)]())==null?void 0x0:_0x397264[_0x314f00(0x95)]();if(!_0x4692d6)throw new Error(_0x314f00(0x8f));const _0x24293d=_0x19285f[_0x314f00(0x9a)](_0x4692d6);return(_0x1df74e=_0x24293d==null?void 0x0:_0x24293d[_0x314f00(0x98)]())!=null?_0x1df74e:_0x4c7ada[_0x314f00(0x76)][_0x314f00(0x88)];}[_0x7322ba(0x6d)](){const _0x10319e=_0x7322ba;var _0x83dc02;const _0x48740f=this[_0x10319e(0x84)]['get'](_0x4c7ada['LiveShareController']),_0x2c6f32=(_0x83dc02=this[_0x10319e(0x94)]())==null?void 0x0:_0x83dc02['getId']();if(!_0x2c6f32)throw new Error(_0x10319e(0x8f));const _0x4c5aa5=_0x48740f['getLiveShareCoordinatorSync'](_0x2c6f32);if(!_0x4c5aa5)throw new Error(_0x10319e(0x77));_0x4c5aa5[_0x10319e(0x6d)]();}['stopFollowing'](){const _0x46248=_0x7322ba;var _0x2d222e;const _0x223a2c=this[_0x46248(0x84)]['get'](_0x4c7ada[_0x46248(0x7b)]),_0xbfc6c5=(_0x2d222e=this[_0x46248(0x94)]())==null?void 0x0:_0x2d222e['getId']();if(!_0xbfc6c5)throw new Error('No\x20active\x20workbook\x20found.');const _0x546f4e=_0x223a2c[_0x46248(0x9a)](_0xbfc6c5);if(!_0x546f4e)throw new Error(_0x46248(0x77));_0x546f4e[_0x46248(0x83)]();}[_0x7322ba(0x8b)](){const _0x3d0e64=_0x7322ba;var _0xf90ca6;const _0x115ec5=this[_0x3d0e64(0x84)][_0x3d0e64(0x7a)](_0x4c7ada[_0x3d0e64(0x7b)]),_0x2247be=(_0xf90ca6=this['getActiveWorkbook']())==null?void 0x0:_0xf90ca6[_0x3d0e64(0x95)]();if(!_0x2247be)throw new Error(_0x3d0e64(0x8f));const _0x5dc336=_0x115ec5[_0x3d0e64(0x9a)](_0x2247be);if(!_0x5dc336)throw new Error(_0x3d0e64(0x77));_0x5dc336[_0x3d0e64(0x6b)]();}[_0x7322ba(0x82)](){const _0x57d09b=_0x7322ba;var _0x2e7123;const _0x186c27=this[_0x57d09b(0x84)][_0x57d09b(0x7a)](_0x4c7ada[_0x57d09b(0x7b)]),_0x4ee31e=(_0x2e7123=this[_0x57d09b(0x94)]())==null?void 0x0:_0x2e7123[_0x57d09b(0x95)]();if(!_0x4ee31e)throw new Error(_0x57d09b(0x8f));const _0x289bd6=_0x186c27[_0x57d09b(0x9a)](_0x4ee31e);if(!_0x289bd6)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x289bd6[_0x57d09b(0x82)]();}}_0xbe53ab[_0x7322ba(0x72)][_0x7322ba(0x8c)](_0x37d2b7);class _0x7e78d2 extends _0xbe53ab[_0x7322ba(0x87)]{get['LiveShareStatusEnum'](){return _0x4c7ada['LiveShareStatus'];}}_0xbe53ab[_0x7322ba(0x87)]['extend'](_0x7e78d2);}));function _0x5256(){const _0x3eaf3b=['3472vojQQw','getUnitId','@univerjs/sheets/facade','executeCommand','getActiveWorkbook','getId','20yZMBmP','3938319tNrRiC','getStatus','UniverEngineRender','getLiveShareCoordinatorSync','amd','6755eZixsc','tryStartPresenting','IRenderManagerService','startFollowing','getSheetId','SetScrollOperation','435545LeoKju','syncExecuteCommand','FUniver','startRow','1208SsVUBS','3570INxdIZ','LiveShareStatus','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','@univerjs/core/facade','SetWorksheetActiveOperation','get','LiveShareController','1347816ivjZKy','3936361wVCLkG','FRange','_commandService','4iTXJus','UniverSheets','stopPresenting','stopFollowing','_injector','UniverSheetsUi','@univerjs-pro/live-share','FEnum','IDLE','UniverSheetsFacade','1289220wLmTAM','startPresenting','extend','2ktWznM','@univerjs/sheets','No\x20active\x20workbook\x20found.'];_0x5256=function(){return _0x3eaf3b;};return _0x5256();}
1
+ (function(_0x39019b,_0x243225){const _0x1fbe3a=_0x4a7b,_0x5c76ae=_0x39019b();while(!![]){try{const _0x4c4483=parseInt(_0x1fbe3a(0x1e8))/0x1*(parseInt(_0x1fbe3a(0x1de))/0x2)+-parseInt(_0x1fbe3a(0x1d0))/0x3+-parseInt(_0x1fbe3a(0x1dd))/0x4+-parseInt(_0x1fbe3a(0x1c1))/0x5*(parseInt(_0x1fbe3a(0x1d4))/0x6)+parseInt(_0x1fbe3a(0x1cf))/0x7*(parseInt(_0x1fbe3a(0x1be))/0x8)+-parseInt(_0x1fbe3a(0x1e5))/0x9+parseInt(_0x1fbe3a(0x1bf))/0xa;if(_0x4c4483===_0x243225)break;else _0x5c76ae['push'](_0x5c76ae['shift']());}catch(_0x5b9eb4){_0x5c76ae['push'](_0x5c76ae['shift']());}}}(_0x4078,0x764dd),function(_0x3bc4d0,_0x3be743){const _0x1b5f7e=_0x4a7b;typeof exports=='object'&&typeof module<'u'?_0x3be743(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[_0x1b5f7e(0x1ea)]?define([_0x1b5f7e(0x1e1),_0x1b5f7e(0x1d3),_0x1b5f7e(0x1d7),'@univerjs/sheets-ui','@univerjs/sheets/facade',_0x1b5f7e(0x1e7)],_0x3be743):(_0x3bc4d0=typeof globalThis<'u'?globalThis:_0x3bc4d0||self,_0x3be743(_0x3bc4d0[_0x1b5f7e(0x1bb)],_0x3bc4d0[_0x1b5f7e(0x1c4)],_0x3bc4d0[_0x1b5f7e(0x1c3)],_0x3bc4d0['UniverSheetsUi'],_0x3bc4d0[_0x1b5f7e(0x1c2)],_0x3bc4d0[_0x1b5f7e(0x1e9)]));}(this,function(_0x1c30b5,_0x75bc3c,_0x3d4fed,_0x4c877b,_0x4d5e29,_0x174b03){'use strict';const _0x15db05=_0x4a7b;class _0x7c440b extends _0x4d5e29[_0x15db05(0x1dc)]{[_0x15db05(0x1d6)](_0x209466,_0xb9af2e,_0x5575a2,_0x21bdee,_0x3cfc4b){const _0x57ef1f=_0x15db05,_0x42659a=_0x209466[_0x57ef1f(0x1c6)](_0x1c30b5[_0x57ef1f(0x1df)]),_0x371899=_0x209466['get'](_0x75bc3c['IRenderManagerService']),_0x44f332=_0xb9af2e[_0x57ef1f(0x1c0)](),_0x420767=_0xb9af2e[_0x57ef1f(0x1e3)](),_0xd7c482=_0x42659a[_0x57ef1f(0x1c8)](_0x44f332);(_0xd7c482==null?void 0x0:_0xd7c482[_0x57ef1f(0x1ca)]())!==_0x1c30b5['LiveShareStatus'][_0x57ef1f(0x1d9)]||(_0x5575a2[_0x57ef1f(0x1c5)]()!==_0x420767['getSheetId']()&&this[_0x57ef1f(0x1e6)]['executeCommand'](_0x3d4fed['SetWorksheetActiveOperation']['id'],{'unitId':_0x44f332,'subUnitId':_0x5575a2[_0x57ef1f(0x1c5)]()}),!_0x371899['getRenderById'](_0x44f332))||_0x3cfc4b[_0x57ef1f(0x1bc)](_0x4c877b[_0x57ef1f(0x1bd)]['id'],{'unitId':_0xb9af2e[_0x57ef1f(0x1c0)](),'sheetId':_0x5575a2[_0x57ef1f(0x1c5)](),'sheetViewStartRow':_0x21bdee[_0x57ef1f(0x1e4)],'sheetViewStartColumn':_0x21bdee['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4d5e29[_0x15db05(0x1dc)][_0x15db05(0x1ce)](_0x7c440b);class _0x543892 extends _0x174b03[_0x15db05(0x1ba)]{[_0x15db05(0x1cd)](){const _0xa3d31a=_0x15db05;var _0x38e417,_0x47fe33;const _0x453dac=this[_0xa3d31a(0x1cc)][_0xa3d31a(0x1c6)](_0x1c30b5[_0xa3d31a(0x1df)]),_0x4020e7=(_0x38e417=this['getActiveWorkbook']())==null?void 0x0:_0x38e417[_0xa3d31a(0x1db)]();if(!_0x4020e7)throw new Error(_0xa3d31a(0x1da));const _0x2b3ac8=_0x453dac[_0xa3d31a(0x1c8)](_0x4020e7);return(_0x47fe33=_0x2b3ac8==null?void 0x0:_0x2b3ac8[_0xa3d31a(0x1ca)]())!=null?_0x47fe33:_0x1c30b5[_0xa3d31a(0x1e0)][_0xa3d31a(0x1c9)];}[_0x15db05(0x1cb)](){const _0x5180a7=_0x15db05;var _0x55007c;const _0x3644e3=this[_0x5180a7(0x1cc)]['get'](_0x1c30b5[_0x5180a7(0x1df)]),_0x18cd26=(_0x55007c=this[_0x5180a7(0x1d8)]())==null?void 0x0:_0x55007c[_0x5180a7(0x1db)]();if(!_0x18cd26)throw new Error(_0x5180a7(0x1da));const _0x4b6903=_0x3644e3[_0x5180a7(0x1c8)](_0x18cd26);if(!_0x4b6903)throw new Error(_0x5180a7(0x1c7));_0x4b6903[_0x5180a7(0x1cb)]();}[_0x15db05(0x1d5)](){const _0x2c8a2c=_0x15db05;var _0x492808;const _0x1baef1=this[_0x2c8a2c(0x1cc)][_0x2c8a2c(0x1c6)](_0x1c30b5[_0x2c8a2c(0x1df)]),_0x31ea0a=(_0x492808=this['getActiveWorkbook']())==null?void 0x0:_0x492808[_0x2c8a2c(0x1db)]();if(!_0x31ea0a)throw new Error(_0x2c8a2c(0x1da));const _0x2b40c4=_0x1baef1[_0x2c8a2c(0x1c8)](_0x31ea0a);if(!_0x2b40c4)throw new Error(_0x2c8a2c(0x1c7));_0x2b40c4[_0x2c8a2c(0x1d5)]();}[_0x15db05(0x1e2)](){const _0x57607f=_0x15db05;var _0x1f1e6d;const _0x8b86=this[_0x57607f(0x1cc)][_0x57607f(0x1c6)](_0x1c30b5[_0x57607f(0x1df)]),_0x273d0c=(_0x1f1e6d=this[_0x57607f(0x1d8)]())==null?void 0x0:_0x1f1e6d[_0x57607f(0x1db)]();if(!_0x273d0c)throw new Error(_0x57607f(0x1da));const _0x26fdbc=_0x8b86[_0x57607f(0x1c8)](_0x273d0c);if(!_0x26fdbc)throw new Error(_0x57607f(0x1c7));_0x26fdbc[_0x57607f(0x1ec)]();}[_0x15db05(0x1d2)](){const _0x45623b=_0x15db05;var _0x3d1088;const _0x39877a=this['_injector'][_0x45623b(0x1c6)](_0x1c30b5[_0x45623b(0x1df)]),_0x5cbcf4=(_0x3d1088=this['getActiveWorkbook']())==null?void 0x0:_0x3d1088[_0x45623b(0x1db)]();if(!_0x5cbcf4)throw new Error(_0x45623b(0x1da));const _0x99a03e=_0x39877a['getLiveShareCoordinatorSync'](_0x5cbcf4);if(!_0x99a03e)throw new Error(_0x45623b(0x1c7));_0x99a03e[_0x45623b(0x1d2)]();}}_0x174b03[_0x15db05(0x1ba)][_0x15db05(0x1ce)](_0x543892);class _0x428b36 extends _0x174b03[_0x15db05(0x1d1)]{get[_0x15db05(0x1eb)](){const _0x2205bc=_0x15db05;return _0x1c30b5[_0x2205bc(0x1e0)];}}_0x174b03[_0x15db05(0x1d1)][_0x15db05(0x1ce)](_0x428b36);}));function _0x4a7b(_0x189c78,_0x23d669){const _0x407864=_0x4078();return _0x4a7b=function(_0x4a7b16,_0x55b8c9){_0x4a7b16=_0x4a7b16-0x1ba;let _0x1b0867=_0x407864[_0x4a7b16];return _0x1b0867;},_0x4a7b(_0x189c78,_0x23d669);}function _0x4078(){const _0x384898=['getSheetId','get','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getLiveShareCoordinatorSync','IDLE','getStatus','startFollowing','_injector','getLiveShareStatus','extend','3674671RutETk','2164872mTVVjP','FEnum','stopPresenting','@univerjs/engine-render','17412rayTkN','stopFollowing','_initialize','@univerjs/sheets','getActiveWorkbook','PRESENTING','No\x20active\x20workbook\x20found.','getId','FRange','1326552TmVaEv','18huNRrT','LiveShareController','LiveShareStatus','@univerjs-pro/live-share','startPresenting','getActiveSheet','startRow','6452325CyiclR','_commandService','@univerjs/core/facade','91167mNqMzk','UniverCoreFacade','amd','LiveShareStatusEnum','tryStartPresenting','FUniver','UniverProLiveShare','syncExecuteCommand','SetScrollOperation','8byxLrc','13329960NvltVN','getUnitId','730rEcRjN','UniverSheetsFacade','UniverSheets','UniverEngineRender'];_0x4078=function(){return _0x384898;};return _0x4078();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x1699(){const _0x4f9b76=['live-share-icon','registerComponent','substring','getConfig','LiveShareController','getCurrentTypeOfUnit$','map','unsubscribe','_startFollowing','CollaborationSessionService','_collabSessionService','forEach','ICommandService','_mountLiveShare','Start','SetZoomRatioOperation','LIVESHARE_NEW_HOST','Disposable','data','UniverDesign','_liveShareService','toStringTag','_injector','requireSession','getMemberID','1563890DkvwZo','string','colorChannel1','exports','React','tryStartPresenting','default','SetWorksheetActiveOperation','Start\x20following','You\x27are\x20offline.','Module','symbol','presenter','getInitialStates','div','_handleOperation','3156904usvbgF','4594820YNIOAm','next','BehaviorSubject','_commandDisposable','reverse','UNIVER_SHEET','_handleNewHost','FOLLOWING','set','Injector','end','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','IUniverInstanceService','IUIPartsService','5420130PASSIb','includes','_handleOnline','InsertSheetMutation','_startPresenting','tag','asObservable','init','2489247OuMgsA','use','memberID','none','get','useRef','You\x27re\x20following\x20the\x20presenter','RxDisposable','sessionStatus$','jsx','parse','DesktopLiveShareController','@univerjs-pro/collaboration-client','svg','_config','connectInjector','Present\x20this\x20document','displayName','Button','subscribe','amd','_stopPresenting','toDisposable','add','You\x27re\x20not\x20following\x20the\x20presenter','UniverCore','_entities','idSuffix','_reporters','Plugin','assign','LiveShare','toString','path','stopFollowing','UniverProLiveShare','send','6393443WnWlRp','current','clear','pipe','merge','touchDependencies','SAME_OPERATION_SHARE_INTERVAL','setConfig','LiveShareIcon','react/jsx-runtime','stringify','registerInitialStateReporter','LIVESHARE_OPERATION','following','currentColor','sheet','UniverCollaborationClientPlugin','_handleOffline','CollaborationEvent','evenodd','fill','_startLiveShareCoordinator','IConfigService','react','_configService','_unitID','event$','rxjs/operators','defineProperty','@univerjs/core','@univerjs/design','idle','LIVESHARE_FETCH_OPERATIONS','You\x27re\x20presenting\x20the\x20document','parseProtocolChangeset','not-following','ONLINE','dispose','length','NOT_FOLLOWING','_collabSession','UniverSheetsUi','SessionStatus','_stopFollowing','getStatus','NEW_CHANGESETS','univer-size-4','getUnitId','Stop\x20presenting','override','_fetchOperations','startFollowing','getLiveShareCoordinatorSync','_presenter','mergeOverrideWithDependencies','replace','_handleTerminate','values','button','stopPresenting','random','getValue','find','_status$','defs','onCommandExecuted','delete','_beIdle','_handleNewChangeSets','attrs','UNIVER_LIVE_SHARE_PLUGIN','SetScrollOperation','1em','getLiveShareCoordinator','@univerjs-pro/collaboration','presenting','UniverInstanceType','Fragment','takeUntil','url(#$1','Dropdown','getTypeOfUnitAdded$','params','1vGMaQF','LIVESHARE_REQUEST_HOST','pluginName','univer-mb-3\x20univer-w-full\x20univer-text-sm','IDLE','object','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','type','registerDependencies','UniverIcon','throttleTime','OFFLINE','jsxs','@univerjs/ui','createInstance','OPERATION','UniverProCollaboration','_init','clsx','LIVESHARE_TERMINATE','status$','0\x200\x2017\x2017','createElement','LiveShareCoordinator','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','Inject','_commandService','_uiPartsService','useState','getOwnPropertyDescriptor','unitId','UniverSheets','http://www.w3.org/2000/svg','3307608TksVAb','operations','dispose$','from','children','useDependency','@univerjs/sheets','has','UniverLiveSharePlugin','_sharedOperations','UniverUi','xlink:href','PRESENTING','defIds','_univerInstanceService','_status','disposeWithMe','mask','UNIVER_UNKNOWN','onStarting','useObservable','offline','registerSharedOperation'];_0x1699=function(){return _0x4f9b76;};return _0x1699();}function _0x321c(_0x2398bc,_0x18cfbc){const _0x1699bc=_0x1699();return _0x321c=function(_0x321cb5,_0x44ccad){_0x321cb5=_0x321cb5-0xef;let _0x19672b=_0x1699bc[_0x321cb5];return _0x19672b;},_0x321c(_0x2398bc,_0x18cfbc);}(function(_0xc33571,_0x5f5c61){const _0x45abd3=_0x321c,_0x39d4ad=_0xc33571();while(!![]){try{const _0x51613f=-parseInt(_0x45abd3(0x101))/0x1*(parseInt(_0x45abd3(0x152))/0x2)+parseInt(_0x45abd3(0x179))/0x3+-parseInt(_0x45abd3(0x122))/0x4+-parseInt(_0x45abd3(0x163))/0x5+parseInt(_0x45abd3(0x171))/0x6+parseInt(_0x45abd3(0x19e))/0x7+parseInt(_0x45abd3(0x162))/0x8;if(_0x51613f===_0x5f5c61)break;else _0x39d4ad['push'](_0x39d4ad['shift']());}catch(_0x253bec){_0x39d4ad['push'](_0x39d4ad['shift']());}}}(_0x1699,0x7d4e7),function(_0x28542b,_0x436aa3){const _0x47c37d=_0x321c;typeof exports==_0x47c37d(0x106)&&typeof module<'u'?_0x436aa3(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x47c37d(0x18d)]?define([_0x47c37d(0x155),_0x47c37d(0x1bb),_0x47c37d(0x10e),_0x47c37d(0x1a7),_0x47c37d(0x1bc),_0x47c37d(0x1b5),_0x47c37d(0xf8),_0x47c37d(0x185),_0x47c37d(0x128),'rxjs',_0x47c37d(0x1b9),'@univerjs/sheets-ui'],_0x436aa3):(_0x28542b=typeof globalThis<'u'?globalThis:_0x28542b||self,_0x436aa3(_0x28542b[_0x47c37d(0x19c)]={},_0x28542b[_0x47c37d(0x192)],_0x28542b[_0x47c37d(0x12c)],_0x28542b[_0x47c37d(0x156)],_0x28542b[_0x47c37d(0x14c)],_0x28542b[_0x47c37d(0x156)],_0x28542b[_0x47c37d(0x111)],_0x28542b['UniverProCollaborationClient'],_0x28542b[_0x47c37d(0x120)],_0x28542b['rxjs'],_0x28542b['rxjs']['operators'],_0x28542b[_0x47c37d(0x1c7)]));}(this,function(_0x1aa668,_0x544c92,_0x4e5103,_0x135a27,_0x2666de,_0x51f070,_0x403454,_0x1171e0,_0x336bc0,_0x498c12,_0x3c3415,_0x4f2758){'use strict';const _0x27edfa=_0x321c;var _0x9ac266=Object[_0x27edfa(0x1ba)],_0x20f232=(_0x501b9c,_0x176e36,_0x34e5d4)=>_0x176e36 in _0x501b9c?_0x9ac266(_0x501b9c,_0x176e36,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34e5d4}):_0x501b9c[_0x176e36]=_0x34e5d4,_0x428aec=(_0x300461,_0x4579cd,_0x3eb66d)=>_0x20f232(_0x300461,typeof _0x4579cd!='symbol'?_0x4579cd+'':_0x4579cd,_0x3eb66d);function _0xa2edf3({ref:_0x5aa3d2,..._0xa5d6c0}){const _0x5126d9=_0x27edfa,{icon:_0x1c6eee,id:_0xc58cec,className:_0x19bf42,extend:_0x277072,..._0x19f01e}=_0xa5d6c0,_0x1d037f=('univerjs-icon\x20univerjs-icon-'+_0xc58cec+'\x20'+(_0x19bf42||''))['trim'](),_0x434069=_0x51f070['useRef']('_'+_0x318637());return _0x2f6013(_0x1c6eee,''+_0xc58cec,{'defIds':_0x1c6eee[_0x5126d9(0x12f)],'idSuffix':_0x434069[_0x5126d9(0x19f)]},{'ref':_0x5aa3d2,'className':_0x1d037f,..._0x19f01e},_0x277072);}function _0x2f6013(_0x499117,_0x416309,_0x5505e3,_0x63a168,_0x3a1ef0){const _0x7c4b8=_0x27edfa;return _0x51f070[_0x7c4b8(0x117)](_0x499117[_0x7c4b8(0x176)],{'key':_0x416309,..._0x5dcaeb(_0x499117,_0x5505e3,_0x3a1ef0),..._0x63a168},(_0x375833(_0x499117,_0x5505e3)[_0x7c4b8(0x126)]||[])[_0x7c4b8(0x13f)]((_0x5efd08,_0x3d631d)=>_0x2f6013(_0x5efd08,_0x416309+'-'+_0x499117[_0x7c4b8(0x176)]+'-'+_0x3d631d,_0x5505e3,void 0x0,_0x3a1ef0)));}function _0x5dcaeb(_0xcd5580,_0x31f1f0,_0xd3d6eb){const _0x450198=_0x27edfa,_0x2e8c66={..._0xcd5580[_0x450198(0xf3)]};_0xd3d6eb!=null&&_0xd3d6eb[_0x450198(0x154)]&&_0x2e8c66[_0x450198(0x1b2)]===_0x450198(0x154)&&(_0x2e8c66[_0x450198(0x1b2)]=_0xd3d6eb[_0x450198(0x154)]),_0xcd5580[_0x450198(0x176)]===_0x450198(0x133)&&_0x2e8c66['id']&&(_0x2e8c66['id']=_0x2e8c66['id']+_0x31f1f0[_0x450198(0x194)]),Object['entries'](_0x2e8c66)[_0x450198(0x144)](([_0x482bfc,_0xa54c37])=>{const _0x45992f=_0x450198;_0x482bfc==='mask'&&typeof _0xa54c37==_0x45992f(0x153)&&(_0x2e8c66[_0x482bfc]=_0xa54c37['replace'](/url\(#(.*)\)/,_0x45992f(0xfd)+_0x31f1f0['idSuffix']+')'));});const {defIds:_0x1a01e9}=_0x31f1f0;return!_0x1a01e9||_0x1a01e9[_0x450198(0x1c4)]===0x0||(_0xcd5580[_0x450198(0x176)]===_0x450198(0x17a)&&_0x2e8c66[_0x450198(0x12d)]&&(_0x2e8c66[_0x450198(0x12d)]=_0x2e8c66[_0x450198(0x12d)]+_0x31f1f0[_0x450198(0x194)]),Object['entries'](_0x2e8c66)[_0x450198(0x144)](([_0x392525,_0x3b226f])=>{const _0x4ab063=_0x450198;typeof _0x3b226f==_0x4ab063(0x153)&&(_0x2e8c66[_0x392525]=_0x3b226f[_0x4ab063(0x1d5)](/url\(#(.*)\)/,_0x4ab063(0xfd)+_0x31f1f0[_0x4ab063(0x194)]+')'));})),_0x2e8c66;}function _0x375833(_0x126225,_0x2a3473){const _0x323f84=_0x27edfa;var _0x3f8467;const {defIds:_0x32421c}=_0x2a3473;return!_0x32421c||_0x32421c[_0x323f84(0x1c4)]===0x0?_0x126225:_0x126225[_0x323f84(0x176)]===_0x323f84(0x1de)&&((_0x3f8467=_0x126225[_0x323f84(0x126)])!=null&&_0x3f8467[_0x323f84(0x1c4)])?{..._0x126225,'children':_0x126225[_0x323f84(0x126)]['map'](_0x263281=>typeof _0x263281[_0x323f84(0xf3)]['id']==_0x323f84(0x153)&&_0x32421c&&_0x32421c[_0x323f84(0x172)](_0x263281[_0x323f84(0xf3)]['id'])?{..._0x263281,'attrs':{..._0x263281[_0x323f84(0xf3)],'id':_0x263281[_0x323f84(0xf3)]['id']+_0x2a3473[_0x323f84(0x194)]}}:_0x263281)}:_0x126225;}function _0x318637(){const _0x47db3d=_0x27edfa;return Math[_0x47db3d(0x1da)]()[_0x47db3d(0x199)](0x24)[_0x47db3d(0x13b)](0x2,0x8);}_0xa2edf3[_0x27edfa(0x18a)]=_0x27edfa(0x10a);const _0x2b3782={'tag':_0x27edfa(0x186),'attrs':{'xmlns':_0x27edfa(0x121),'fill':_0x27edfa(0x17c),'viewBox':_0x27edfa(0x116),'width':_0x27edfa(0xf6),'height':_0x27edfa(0xf6)},'children':[{'tag':_0x27edfa(0x19a),'attrs':{'fill':'currentColor','d':_0x27edfa(0x119)}},{'tag':_0x27edfa(0x19a),'attrs':{'fill':_0x27edfa(0x1ac),'d':_0x27edfa(0x107),'fillRule':_0x27edfa(0x1b1),'clipRule':_0x27edfa(0x1b1)}}]},_0x45b447=_0x51f070['forwardRef'](function(_0x3272e3,_0xe5e913){const _0x31e93e=_0x27edfa;return _0x51f070[_0x31e93e(0x117)](_0xa2edf3,Object[_0x31e93e(0x197)]({},_0x3272e3,{'id':_0x31e93e(0x139),'ref':_0xe5e913,'icon':_0x2b3782}));});_0x45b447[_0x27edfa(0x18a)]=_0x27edfa(0x1a6);class _0x181d67 extends _0x544c92[_0x27edfa(0x14a)]{constructor(){const _0x4c87a5=_0x27edfa;super(...arguments),_0x428aec(this,_0x4c87a5(0x12b),new Set()),_0x428aec(this,'_reporters',new Set());}['registerSharedOperation'](_0x584e88){const _0x3e3136=_0x27edfa;return this[_0x3e3136(0x12b)]['add'](_0x584e88),_0x544c92['toDisposable'](()=>this[_0x3e3136(0x12b)]['delete'](_0x584e88));}[_0x27edfa(0x1a9)](_0x5990f4){const _0x554765=_0x27edfa;return this['_reporters'][_0x554765(0x190)](_0x5990f4),_0x544c92[_0x554765(0x18f)](()=>this[_0x554765(0x195)][_0x554765(0xf0)](_0x5990f4));}['shouldShareOperation'](_0x32ff90){const _0x3c65a4=_0x27edfa;return this[_0x3c65a4(0x12b)][_0x3c65a4(0x129)](_0x32ff90);}[_0x27edfa(0x15f)](_0x4a7688){const _0x35625b=_0x27edfa;return Array[_0x35625b(0x125)](this[_0x35625b(0x195)])[_0x35625b(0x13f)](_0xc4eec6=>_0xc4eec6(_0x4a7688));}}var _0x12e594=Object[_0x27edfa(0x11e)],_0x2ebb4d=(_0x14dc1b,_0xae6aeb,_0x30ca5a,_0x464ec5)=>{const _0x100ab5=_0x27edfa;for(var _0x1fb579=_0x464ec5>0x1?void 0x0:_0x464ec5?_0x12e594(_0xae6aeb,_0x30ca5a):_0xae6aeb,_0x4362fb=_0x14dc1b[_0x100ab5(0x1c4)]-0x1,_0x41ecfb;_0x4362fb>=0x0;_0x4362fb--)(_0x41ecfb=_0x14dc1b[_0x4362fb])&&(_0x1fb579=_0x41ecfb(_0x1fb579)||_0x1fb579);return _0x1fb579;},_0x446061=(_0x10025f,_0x20abc4)=>(_0x56a4a1,_0x1b94a1)=>_0x20abc4(_0x56a4a1,_0x1b94a1,_0x10025f);_0x1aa668[_0x27edfa(0x13d)]=class extends _0x544c92[_0x27edfa(0x180)]{constructor(_0x4eaa3b,_0x294106,_0x343ab1){const _0xcfd275=_0x27edfa;super(),_0x428aec(this,_0xcfd275(0x193),new Map()),(this['_univerInstanceService']=_0x4eaa3b,this['_injector']=_0x294106,this[_0xcfd275(0x143)]=_0x343ab1,this[_0xcfd275(0x112)]());}async[_0x27edfa(0xf7)](_0x9cda37){const _0x558e32=_0x27edfa;return this[_0x558e32(0x193)][_0x558e32(0x129)](_0x9cda37)||await this['_startLiveShareCoordinator'](_0x9cda37),this[_0x558e32(0x193)][_0x558e32(0x17d)](_0x9cda37);}[_0x27edfa(0x1d2)](_0x1e2d5e){var _0x5afb7e;return(_0x5afb7e=this['_entities']['get'](_0x1e2d5e))!=null?_0x5afb7e:null;}[_0x27edfa(0x112)](){const _0xe385b=_0x27edfa;this[_0xe385b(0x130)][_0xe385b(0xff)](_0x544c92[_0xe385b(0xfa)][_0xe385b(0x168)])['pipe'](_0x3c3415[_0xe385b(0xfc)](this['dispose$']))[_0xe385b(0x18c)](async _0x27cf3b=>{const _0x46ca29=_0xe385b,_0x360390=_0x27cf3b[_0x46ca29(0x1cd)]();this[_0x46ca29(0x193)][_0x46ca29(0x129)](_0x360390)||this[_0x46ca29(0x1b3)](_0x360390);}),this[_0xe385b(0x130)]['getTypeOfUnitDisposed$'](_0x544c92[_0xe385b(0xfa)]['UNIVER_SHEET'])['pipe'](_0x3c3415['takeUntil'](this[_0xe385b(0x124)]))[_0xe385b(0x18c)](_0x50b3d7=>{const _0x2c4b5a=_0xe385b,_0x1fcb28=_0x50b3d7[_0x2c4b5a(0x1cd)](),_0x5d8692=this[_0x2c4b5a(0x193)][_0x2c4b5a(0x17d)](_0x1fcb28);_0x5d8692==null||_0x5d8692[_0x2c4b5a(0x1c3)]();});}async[_0x27edfa(0x1b3)](_0x2672bc){const _0xeabb24=_0x27edfa,_0x5dcfa8=await this[_0xeabb24(0x143)][_0xeabb24(0x150)](_0x2672bc),_0x559eeb=this['_injector'][_0xeabb24(0x10f)](_0x1aa668[_0xeabb24(0x118)],_0x2672bc,_0x5dcfa8);return _0x559eeb[_0xeabb24(0x178)](),this[_0xeabb24(0x193)][_0xeabb24(0x16b)](_0x2672bc,_0x559eeb),_0x559eeb;}},_0x1aa668[_0x27edfa(0x13d)]=_0x2ebb4d([_0x446061(0x0,_0x544c92[_0x27edfa(0x16f)]),_0x446061(0x1,_0x544c92['Inject'](_0x544c92[_0x27edfa(0x16c)])),_0x446061(0x2,_0x544c92[_0x27edfa(0x11a)](_0x1171e0[_0x27edfa(0x142)]))],_0x1aa668['LiveShareController']);var _0x345d0f=(_0x588301=>(_0x588301[_0x27edfa(0x10c)]=_0x27edfa(0x137),_0x588301[_0x27edfa(0x105)]='idle',_0x588301['FOLLOWING']='following',_0x588301['NOT_FOLLOWING']=_0x27edfa(0x1c1),_0x588301[_0x27edfa(0x12e)]=_0x27edfa(0xf9),_0x588301))(_0x345d0f||{});const _0x3b4949=_0x27edfa(0x1a4),_0x38a0b5=0xc8;_0x1aa668[_0x27edfa(0x118)]=class extends _0x544c92[_0x27edfa(0x180)]{constructor(_0x18f15a,_0x2c1d72,_0x36f581,_0x510df3,_0x36465a){const _0x2900fe=_0x27edfa;super(),_0x428aec(this,'_status$',new _0x498c12[(_0x2900fe(0x165))](_0x2900fe(0x1bd))),_0x428aec(this,_0x2900fe(0x115),this[_0x2900fe(0x1dd)][_0x2900fe(0x177)]()),_0x428aec(this,_0x2900fe(0x112),!0x1),_0x428aec(this,_0x2900fe(0x166),null),_0x428aec(this,'_presenter',null),(this[_0x2900fe(0x1b7)]=_0x18f15a,this['_collabSession']=_0x2c1d72,this['_configService']=_0x36f581,this[_0x2900fe(0x14d)]=_0x510df3,this[_0x2900fe(0x11b)]=_0x36465a);}get[_0x27edfa(0x131)](){const _0x593451=_0x27edfa;return this[_0x593451(0x1dd)][_0x593451(0x1db)]();}['dispose'](){const _0x47cab3=_0x27edfa;var _0x3faef4;(_0x3faef4=this[_0x47cab3(0x166)])==null||_0x3faef4[_0x47cab3(0x1c3)](),this[_0x47cab3(0x1dd)][_0x47cab3(0x164)](_0x47cab3(0x1bd)),this[_0x47cab3(0x1dd)]['complete']();}[_0x27edfa(0x1ca)](){const _0xfd218f=_0x27edfa;return this[_0xfd218f(0x131)];}[_0x27edfa(0x178)](){const _0x110003=_0x27edfa;this['_init']||(this[_0x110003(0x112)]=!0x0,this['_collabSession'][_0x110003(0x181)][_0x110003(0x1a1)](_0x3c3415['takeUntil'](this['dispose$']))[_0x110003(0x18c)](_0x28453f=>{const _0x27d048=_0x110003;switch(_0x28453f){case _0x1171e0['SessionStatus'][_0x27d048(0x10c)]:this['_handleOffline']();break;case _0x1171e0[_0x27d048(0x1c8)][_0x27d048(0x1c2)]:this[_0x27d048(0x173)]();break;}}),this[_0x110003(0x1c6)][_0x110003(0x1b8)][_0x110003(0x1a1)](_0x3c3415[_0x110003(0xfc)](this['dispose$']))[_0x110003(0x18c)](_0x4502c2=>{const _0x452553=_0x110003,{eventID:_0x8ae176}=_0x4502c2;switch(_0x8ae176){case _0x403454[_0x452553(0x1b0)][_0x452553(0x149)]:this[_0x452553(0x169)](_0x4502c2);break;case _0x403454[_0x452553(0x1b0)][_0x452553(0x1aa)]:this[_0x452553(0x161)](_0x4502c2);break;case _0x403454[_0x452553(0x1b0)]['LIVESHARE_TERMINATE']:this[_0x452553(0x1d6)]();break;case _0x403454['CollaborationEvent'][_0x452553(0x1cb)]:this['_handleNewChangeSets'](_0x4502c2);break;}}));}[_0x27edfa(0x157)](){const _0x25e2b5=_0x27edfa;this[_0x25e2b5(0x1c6)][_0x25e2b5(0x19d)]({'eventID':_0x403454['CollaborationEvent'][_0x25e2b5(0x102)],'data':{'unitID':this[_0x25e2b5(0x1b7)],'userID':this[_0x25e2b5(0x1c6)][_0x25e2b5(0x151)]()}},this[_0x25e2b5(0x1b7)]);}[_0x27edfa(0x1d9)](){const _0x3e5cae=_0x27edfa;this[_0x3e5cae(0x131)]==='presenting'&&(this[_0x3e5cae(0x1dd)]['next'](_0x3e5cae(0x1bd)),this['_collabSession'][_0x3e5cae(0x19d)]({'eventID':_0x403454[_0x3e5cae(0x1b0)][_0x3e5cae(0x114)],'data':{'unitID':this[_0x3e5cae(0x1b7)]}},this[_0x3e5cae(0x1b7)]));}[_0x27edfa(0x1d1)](){const _0x57881b=_0x27edfa;this[_0x57881b(0x131)]===_0x57881b(0x1c1)&&(this[_0x57881b(0x1dd)][_0x57881b(0x164)](_0x57881b(0x1ab)),this[_0x57881b(0x141)]());}[_0x27edfa(0x19b)](){const _0x27a977=_0x27edfa;this['_status']===_0x27a977(0x1ab)&&this[_0x27a977(0x1c9)]();}['_handleNewHost'](_0x4504c9){const _0x274b3e=_0x27edfa,{presenter:_0x5d2b12}=_0x4504c9[_0x274b3e(0x14b)],_0x11a346=this[_0x274b3e(0x1c6)]['getMemberID']();this[_0x274b3e(0x1d3)]=_0x5d2b12,_0x5d2b12===_0x11a346?(this[_0x274b3e(0x1c9)](),this[_0x274b3e(0x175)]()):this[_0x274b3e(0x131)]!==_0x274b3e(0x1c1)&&(this[_0x274b3e(0x18e)](),this['_startFollowing']());}[_0x27edfa(0x1d0)](){const _0xf420c7=_0x27edfa,_0x2de098={'eventID':_0x403454['CollaborationEvent'][_0xf420c7(0x1be)]};this[_0xf420c7(0x1c6)][_0xf420c7(0x19d)](_0x2de098,this[_0xf420c7(0x1b7)]);}[_0x27edfa(0x1d6)](){const _0x20f3a3=_0x27edfa;this[_0x20f3a3(0x1d3)]=null,this[_0x20f3a3(0x131)]!==_0x20f3a3(0xf9)&&this[_0x20f3a3(0xf1)]();}[_0x27edfa(0xf2)](_0x57d427){const _0x44d802=_0x27edfa;if(this[_0x44d802(0x131)]==='following'&&this[_0x44d802(0x1d3)]===_0x57d427[_0x44d802(0x14b)][_0x44d802(0x17b)]){const _0x4fc7b6=_0x403454[_0x44d802(0x1c0)](_0x57d427[_0x44d802(0x14b)])['mutations'][_0x44d802(0x167)]()[_0x44d802(0x1dc)](_0x40974d=>_0x40974d['id']===_0x336bc0[_0x44d802(0x174)]['id']);if(_0x4fc7b6){const _0x6708a=_0x4fc7b6[_0x44d802(0x100)][_0x44d802(0x11f)],_0x2d1793=_0x4fc7b6[_0x44d802(0x100)][_0x44d802(0x1ad)]['id'];setTimeout(()=>{const _0x2c4f68=_0x44d802;this[_0x2c4f68(0x11b)]['executeCommand'](_0x336bc0[_0x2c4f68(0x159)]['id'],{'unitId':_0x6708a,'subUnitId':_0x2d1793},{'fromCollab':!0x0});});}}}[_0x27edfa(0x175)](){const _0x1051fc=_0x27edfa;this[_0x1051fc(0x1dd)][_0x1051fc(0x164)](_0x1051fc(0xf9));const _0x19479a=new Map(),_0x358efe=this['_commandDisposable']=new _0x544c92['DisposableCollection']();_0x358efe[_0x1051fc(0x190)](_0x544c92[_0x1051fc(0x18f)](()=>{const _0x314c29=_0x1051fc;_0x19479a['forEach'](_0x5ee99d=>_0x5ee99d['complete']()),_0x19479a[_0x314c29(0x1a0)]();})),_0x358efe[_0x1051fc(0x190)](this[_0x1051fc(0x11b)][_0x1051fc(0xef)](_0x48e4f2=>{const _0x5967c4=_0x1051fc;var _0x676635;if(_0x48e4f2[_0x5967c4(0x108)]!==_0x544c92['CommandType'][_0x5967c4(0x110)]||!this[_0x5967c4(0x14d)]['shouldShareOperation'](_0x48e4f2['id']))return;const {id:_0x3cfced}=_0x48e4f2;let _0x524a8d;_0x19479a[_0x5967c4(0x129)](_0x3cfced)?_0x524a8d=_0x19479a[_0x5967c4(0x17d)](_0x3cfced):(_0x524a8d=new _0x498c12['Subject'](),_0x19479a['set'](_0x3cfced,_0x524a8d),_0x524a8d[_0x5967c4(0x1a1)](_0x3c3415[_0x5967c4(0x10b)]((_0x676635=this[_0x5967c4(0x1b6)][_0x5967c4(0x13c)](_0x3b4949))!=null?_0x676635:_0x38a0b5,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5967c4(0x18c)](_0x243cd3=>{const _0x3377c3=_0x5967c4;this[_0x3377c3(0x1c6)][_0x3377c3(0x19d)]({'eventID':_0x403454[_0x3377c3(0x1b0)][_0x3377c3(0x1aa)],'data':{'unitID':this[_0x3377c3(0x1b7)],'operations':{[_0x243cd3['id']]:{'id':_0x243cd3['id'],'params':JSON['stringify'](_0x243cd3[_0x3377c3(0x100)])}}}},this[_0x3377c3(0x1b7)]);})),_0x524a8d[_0x5967c4(0x164)](_0x48e4f2);})),this[_0x1051fc(0x14d)][_0x1051fc(0x15f)](this[_0x1051fc(0x1b7)])['forEach'](_0x4bf67a=>this['_collabSession']['send']({'eventID':_0x403454[_0x1051fc(0x1b0)][_0x1051fc(0x1aa)],'data':{'unitID':this[_0x1051fc(0x1b7)],'operations':{[_0x4bf67a['id']]:{'id':_0x4bf67a['id'],'params':JSON[_0x1051fc(0x1a8)](_0x4bf67a[_0x1051fc(0x100)])}}}},this[_0x1051fc(0x1b7)]));}['_stopPresenting'](){const _0x4d49e6=_0x27edfa;var _0x4e1c66;this[_0x4d49e6(0x1dd)]['next'](_0x4d49e6(0x1bd)),(_0x4e1c66=this[_0x4d49e6(0x166)])==null||_0x4e1c66['dispose'](),this[_0x4d49e6(0x166)]=null;}['_startFollowing'](){const _0x522ac0=_0x27edfa;var _0x23323f;(_0x23323f=this[_0x522ac0(0x166)])==null||_0x23323f[_0x522ac0(0x1c3)](),this[_0x522ac0(0x1dd)][_0x522ac0(0x164)](_0x522ac0(0x1ab));}[_0x27edfa(0xf1)](){const _0x224715=_0x27edfa;var _0x2112e9;this['_status$'][_0x224715(0x164)](_0x224715(0x1bd)),(_0x2112e9=this[_0x224715(0x166)])==null||_0x2112e9[_0x224715(0x1c3)](),this[_0x224715(0x166)]=null;}[_0x27edfa(0x1c9)](){const _0x2e4b95=_0x27edfa;var _0x507191;this[_0x2e4b95(0x1dd)][_0x2e4b95(0x164)](_0x2e4b95(0x1c1)),(_0x507191=this[_0x2e4b95(0x166)])==null||_0x507191['dispose']();}['_handleOperation'](_0x79ad69){const _0x3b73e5=_0x27edfa;if([_0x3b73e5(0xf9),_0x3b73e5(0x1c1),_0x3b73e5(0x137)]['includes'](this[_0x3b73e5(0x131)])||!_0x79ad69[_0x3b73e5(0x14b)][_0x3b73e5(0x15e)]||_0x79ad69['data'][_0x3b73e5(0x15e)]===this[_0x3b73e5(0x1c6)]['getMemberID']())return;this[_0x3b73e5(0x131)]===_0x3b73e5(0x1bd)&&this[_0x3b73e5(0x141)]();const _0x50de90=_0x79ad69['data'][_0x3b73e5(0x123)];Object[_0x3b73e5(0x1d7)](_0x50de90)['forEach'](_0x557862=>{const _0x40aa40=_0x3b73e5;this[_0x40aa40(0x11b)]['executeCommand'](_0x557862['id'],_0x557862[_0x40aa40(0x100)]?JSON[_0x40aa40(0x183)](_0x557862['params']):null,{'fromCollab':!0x0});});}[_0x27edfa(0x1af)](){const _0x50f722=_0x27edfa;var _0x57a45e;this[_0x50f722(0x1dd)]['next'](_0x50f722(0x137)),(_0x57a45e=this[_0x50f722(0x166)])==null||_0x57a45e['dispose']();}[_0x27edfa(0x173)](){const _0x30d865=_0x27edfa;this[_0x30d865(0x1dd)][_0x30d865(0x164)](_0x30d865(0x1bd)),this[_0x30d865(0x1d0)]();}},_0x1aa668[_0x27edfa(0x118)]=_0x2ebb4d([_0x446061(0x2,_0x544c92[_0x27edfa(0x1b4)]),_0x446061(0x3,_0x544c92['Inject'](_0x181d67)),_0x446061(0x4,_0x544c92[_0x27edfa(0x145)])],_0x1aa668[_0x27edfa(0x118)]);function _0x8c856f(){const _0xd4f43c=_0x27edfa,_0x526359=_0x4e5103[_0xd4f43c(0x127)](_0x1aa668[_0xd4f43c(0x13d)]),_0x1ea60e=_0x4e5103[_0xd4f43c(0x127)](_0x544c92[_0xd4f43c(0x16f)]),_0x461c7b=_0x4e5103[_0xd4f43c(0x136)](()=>_0x1ea60e[_0xd4f43c(0x13e)](_0x544c92['UniverInstanceType'][_0xd4f43c(0x168)]),void 0x0,!0x1,[]),[_0x1a6d44,_0x1d5566]=_0x51f070[_0xd4f43c(0x11d)](null),[_0x226fe9,_0x5dcb82]=_0x51f070[_0xd4f43c(0x11d)](_0x345d0f[_0xd4f43c(0x105)]),_0x5e8201=_0x51f070[_0xd4f43c(0x17e)](null);return _0x51f070['useEffect'](()=>(_0x461c7b&&_0x526359[_0xd4f43c(0xf7)](_0x461c7b[_0xd4f43c(0x1cd)]())['then'](_0x47a5b5=>{const _0x112bca=_0xd4f43c;_0x1d5566(_0x47a5b5),_0x5e8201[_0x112bca(0x19f)]=_0x47a5b5['status$'][_0x112bca(0x18c)](_0x3617dd=>{_0x5dcb82(_0x3617dd);});}),()=>{const _0x44d054=_0xd4f43c;var _0x1ddf02;(_0x1ddf02=_0x5e8201[_0x44d054(0x19f)])==null||_0x1ddf02[_0x44d054(0x140)](),_0x5e8201[_0x44d054(0x19f)]=null;}),[_0x461c7b,_0x526359]),_0x1a6d44?_0x135a27[_0xd4f43c(0x182)](_0x2666de[_0xd4f43c(0xfe)],{'align':_0xd4f43c(0x16d),'disabled':_0x226fe9===_0x345d0f['OFFLINE'],'className':_0xd4f43c(0x16e),'overlay':_0x135a27[_0xd4f43c(0x182)](_0x6677ff,{'status':_0x226fe9,'coordinator':_0x1a6d44}),'children':_0x135a27[_0xd4f43c(0x182)](_0xd4f43c(0x1d8),{'className':_0x2666de[_0xd4f43c(0x113)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x226fe9===_0x345d0f[_0xd4f43c(0x10c)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x226fe9!==_0x345d0f[_0xd4f43c(0x10c)]}),'type':'button','children':_0x135a27[_0xd4f43c(0x182)](_0x45b447,{'className':_0xd4f43c(0x1cc)})})}):null;}function _0x6677ff(_0x3c40e1){const _0x5ba83b=_0x27edfa,{status:_0x1697e2,coordinator:_0x18610e}=_0x3c40e1;switch(_0x1697e2){case _0x345d0f[_0x5ba83b(0x105)]:return _0x135a27['jsx'](_0x4d4086,{'coordinator':_0x18610e});case _0x345d0f[_0x5ba83b(0x16a)]:return _0x135a27['jsx'](_0x1eb5c2,{'coordinator':_0x18610e});case _0x345d0f[_0x5ba83b(0x1c5)]:return _0x135a27[_0x5ba83b(0x182)](_0x310870,{'coordinator':_0x18610e});case _0x345d0f[_0x5ba83b(0x10c)]:return _0x135a27[_0x5ba83b(0x182)](_0x50b4dc,{});case _0x345d0f[_0x5ba83b(0x12e)]:return _0x135a27[_0x5ba83b(0x182)](_0x35127b,{'coordinator':_0x18610e});default:return null;}}function _0x4d4086(_0x4b7c6d){const _0xf4ea4f=_0x27edfa,{coordinator:_0x3123ca}=_0x4b7c6d;return _0x135a27[_0xf4ea4f(0x10d)](_0x135a27['Fragment'],{'children':[_0x135a27[_0xf4ea4f(0x182)](_0xf4ea4f(0x160),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xf4ea4f(0x189)}),_0x135a27[_0xf4ea4f(0x182)](_0x2666de[_0xf4ea4f(0x18b)],{'onClick':()=>_0x3123ca['tryStartPresenting'](),'children':_0xf4ea4f(0x147)})]});}function _0x1eb5c2(_0x3b0a7c){const _0x10120f=_0x27edfa,{coordinator:_0x47f664}=_0x3b0a7c;return _0x135a27[_0x10120f(0x10d)](_0x135a27['Fragment'],{'children':[_0x135a27[_0x10120f(0x182)](_0x10120f(0x160),{'className':_0x10120f(0x104),'children':_0x10120f(0x17f)}),_0x135a27[_0x10120f(0x182)](_0x2666de['Button'],{'onClick':()=>_0x47f664[_0x10120f(0x19b)](),'children':'Stop\x20following'})]});}function _0x310870(_0xf9c159){const _0x3aa904=_0x27edfa,{coordinator:_0x36cead}=_0xf9c159;return _0x135a27[_0x3aa904(0x10d)](_0x135a27[_0x3aa904(0xfb)],{'children':[_0x135a27['jsx'](_0x3aa904(0x160),{'className':_0x3aa904(0x104),'children':_0x3aa904(0x191)}),_0x135a27['jsx'](_0x2666de[_0x3aa904(0x18b)],{'variant':'text','onClick':()=>_0x36cead[_0x3aa904(0x1d1)](),'children':_0x3aa904(0x15a)})]});}function _0x35127b(_0x27889a){const _0x1e0292=_0x27edfa,{coordinator:_0x497251}=_0x27889a;return _0x135a27['jsxs'](_0x135a27['Fragment'],{'children':[_0x135a27[_0x1e0292(0x182)](_0x1e0292(0x160),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1e0292(0x1bf)}),_0x135a27[_0x1e0292(0x182)](_0x2666de['Button'],{'variant':_0x1e0292(0x158),'onClick':()=>_0x497251[_0x1e0292(0x1d9)](),'children':_0x1e0292(0x1ce)})]});}function _0x50b4dc(){const _0x3e5e89=_0x27edfa;return _0x135a27[_0x3e5e89(0x182)](_0x135a27['Fragment'],{'children':_0x3e5e89(0x15b)});}var _0x557bf8=Object[_0x27edfa(0x11e)],_0x5cf6d3=(_0x4a00c1,_0xd1c378,_0x558e3e,_0x33ffa4)=>{const _0x3b37a0=_0x27edfa;for(var _0x5769a1=_0x33ffa4>0x1?void 0x0:_0x33ffa4?_0x557bf8(_0xd1c378,_0x558e3e):_0xd1c378,_0x3af4b6=_0x4a00c1[_0x3b37a0(0x1c4)]-0x1,_0x326b51;_0x3af4b6>=0x0;_0x3af4b6--)(_0x326b51=_0x4a00c1[_0x3af4b6])&&(_0x5769a1=_0x326b51(_0x5769a1)||_0x5769a1);return _0x5769a1;},_0x19f417=(_0x16063b,_0x1b3057)=>(_0x4f69ad,_0x35867a)=>_0x1b3057(_0x4f69ad,_0x35867a,_0x16063b);_0x1aa668['DesktopLiveShareController']=class extends _0x544c92[_0x27edfa(0x14a)]{constructor(_0x34668d,_0x5c718a){const _0x36a761=_0x27edfa;super(),this[_0x36a761(0x14f)]=_0x34668d,this[_0x36a761(0x11c)]=_0x5c718a,this[_0x36a761(0x146)]();}[_0x27edfa(0x146)](){const _0x3deaf1=_0x27edfa;this[_0x3deaf1(0x132)](this[_0x3deaf1(0x11c)][_0x3deaf1(0x13a)](_0x4e5103['BuiltInUIPart']['HEADER_MENU'],()=>_0x4e5103[_0x3deaf1(0x188)](_0x8c856f,this[_0x3deaf1(0x14f)])));}},_0x1aa668[_0x27edfa(0x184)]=_0x5cf6d3([_0x19f417(0x0,_0x544c92[_0x27edfa(0x11a)](_0x544c92[_0x27edfa(0x16c)])),_0x19f417(0x1,_0x4e5103[_0x27edfa(0x170)])],_0x1aa668[_0x27edfa(0x184)]);const _0x28dbf1='live-share.config',_0x4e0a9f={};var _0x2d9fb7=Object['getOwnPropertyDescriptor'],_0x42bd93=(_0x22c882,_0x829d1f,_0x2ceaf4,_0x31da85)=>{const _0x29be32=_0x27edfa;for(var _0xc480a7=_0x31da85>0x1?void 0x0:_0x31da85?_0x2d9fb7(_0x829d1f,_0x2ceaf4):_0x829d1f,_0x49afd4=_0x22c882[_0x29be32(0x1c4)]-0x1,_0x375e9d;_0x49afd4>=0x0;_0x49afd4--)(_0x375e9d=_0x22c882[_0x49afd4])&&(_0xc480a7=_0x375e9d(_0xc480a7)||_0xc480a7);return _0xc480a7;},_0x40fdb6=(_0x338ecb,_0x3b2b59)=>(_0x8f10ab,_0x41f795)=>_0x3b2b59(_0x8f10ab,_0x41f795,_0x338ecb);let _0x963f67=class extends _0x544c92[_0x27edfa(0x14a)]{constructor(_0x3a7dac){const _0x50bb06=_0x27edfa;super(),this[_0x50bb06(0x14d)]=_0x3a7dac,this[_0x50bb06(0x112)]();}[_0x27edfa(0x112)](){const _0x5cd289=_0x27edfa;[_0x4f2758[_0x5cd289(0x148)]['id'],_0x4f2758[_0x5cd289(0xf5)]['id'],_0x336bc0['SetWorksheetActiveOperation']['id']][_0x5cd289(0x144)](_0x345b4d=>{const _0xcef1cb=_0x5cd289;this[_0xcef1cb(0x132)](this[_0xcef1cb(0x14d)][_0xcef1cb(0x138)](_0x345b4d));});}};_0x963f67=_0x42bd93([_0x40fdb6(0x0,_0x544c92[_0x27edfa(0x11a)](_0x181d67))],_0x963f67);var _0x27a270=Object[_0x27edfa(0x1ba)],_0x5e476d=Object['getOwnPropertyDescriptor'],_0xa8ddab=(_0x42d122,_0x1d8274,_0x392d)=>_0x1d8274 in _0x42d122?_0x27a270(_0x42d122,_0x1d8274,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x392d}):_0x42d122[_0x1d8274]=_0x392d,_0xa3be9d=(_0x35f93e,_0x3f27b8,_0x31231a,_0x1c2588)=>{for(var _0x4ccd04=_0x1c2588>0x1?void 0x0:_0x1c2588?_0x5e476d(_0x3f27b8,_0x31231a):_0x3f27b8,_0x4ff977=_0x35f93e['length']-0x1,_0xea8e72;_0x4ff977>=0x0;_0x4ff977--)(_0xea8e72=_0x35f93e[_0x4ff977])&&(_0x4ccd04=_0xea8e72(_0x4ccd04)||_0x4ccd04);return _0x4ccd04;},_0x2c5e26=(_0x32aa1e,_0x41ac8a)=>(_0x4eb229,_0x240e67)=>_0x41ac8a(_0x4eb229,_0x240e67,_0x32aa1e),_0x4ea8dc=(_0x1eceef,_0x10f88a,_0x125d7b)=>_0xa8ddab(_0x1eceef,typeof _0x10f88a!=_0x27edfa(0x15d)?_0x10f88a+'':_0x10f88a,_0x125d7b);const _0x502067=_0x27edfa(0xf4);_0x1aa668['UniverLiveSharePlugin']=class extends _0x544c92[_0x27edfa(0x196)]{constructor(_0x34dbfa=_0x4e0a9f,_0x1f4a8a,_0x121ce7){const _0xa06059=_0x27edfa;super(),this['_config']=_0x34dbfa,this[_0xa06059(0x14f)]=_0x1f4a8a,this[_0xa06059(0x1b6)]=_0x121ce7;const {..._0x256ebb}=_0x544c92[_0xa06059(0x1a2)]({},_0x4e0a9f,this[_0xa06059(0x187)]);this[_0xa06059(0x1b6)][_0xa06059(0x1a5)](_0x28dbf1,_0x256ebb);}[_0x27edfa(0x135)](){const _0x5e7707=_0x27edfa;_0x544c92[_0x5e7707(0x109)](this[_0x5e7707(0x14f)],_0x544c92[_0x5e7707(0x1d4)]([[_0x181d67],[_0x1aa668['LiveShareController']],[_0x963f67],[_0x1aa668[_0x5e7707(0x184)]]],this[_0x5e7707(0x187)][_0x5e7707(0x1cf)])),_0x544c92[_0x5e7707(0x1a3)](this[_0x5e7707(0x14f)],[[_0x963f67]]);}['onRendered'](){const _0x519d67=_0x27edfa;_0x544c92[_0x519d67(0x1a3)](this['_injector'],[[_0x1aa668[_0x519d67(0x184)]]]);}},_0x4ea8dc(_0x1aa668['UniverLiveSharePlugin'],_0x27edfa(0x108),_0x544c92['UniverInstanceType'][_0x27edfa(0x134)]),_0x4ea8dc(_0x1aa668[_0x27edfa(0x12a)],_0x27edfa(0x103),_0x502067),_0x1aa668[_0x27edfa(0x12a)]=_0xa3be9d([_0x544c92['DependentOn'](_0x1171e0[_0x27edfa(0x1ae)]),_0x2c5e26(0x1,_0x544c92[_0x27edfa(0x11a)](_0x544c92['Injector'])),_0x2c5e26(0x2,_0x544c92[_0x27edfa(0x1b4)])],_0x1aa668[_0x27edfa(0x12a)]),_0x1aa668[_0x27edfa(0x198)]=_0x8c856f,_0x1aa668['LiveShareService']=_0x181d67,_0x1aa668['LiveShareStatus']=_0x345d0f,Object[_0x27edfa(0x1ba)](_0x1aa668,Symbol[_0x27edfa(0x14e)],{'value':_0x27edfa(0x15c)});}));
1
+ (function(_0x4f5f9e,_0x41caf6){const _0x4dd168=_0x3b74,_0x2ef464=_0x4f5f9e();while(!![]){try{const _0x162b7d=parseInt(_0x4dd168(0x18b))/0x1+parseInt(_0x4dd168(0x1cf))/0x2+parseInt(_0x4dd168(0x236))/0x3+-parseInt(_0x4dd168(0x1cd))/0x4+-parseInt(_0x4dd168(0x1a4))/0x5+parseInt(_0x4dd168(0x23f))/0x6+-parseInt(_0x4dd168(0x21d))/0x7;if(_0x162b7d===_0x41caf6)break;else _0x2ef464['push'](_0x2ef464['shift']());}catch(_0x1a58ef){_0x2ef464['push'](_0x2ef464['shift']());}}}(_0x34c6,0x62d21),function(_0x35d8b7,_0x56ac8b){const _0x182ac3=_0x3b74;typeof exports==_0x182ac3(0x1ac)&&typeof module<'u'?_0x56ac8b(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==_0x182ac3(0x24c)&&define[_0x182ac3(0x1b3)]?define([_0x182ac3(0x1d5),'@univerjs/core',_0x182ac3(0x22a),_0x182ac3(0x1c6),'@univerjs/design',_0x182ac3(0x1f8),_0x182ac3(0x25f),_0x182ac3(0x23a),_0x182ac3(0x24f),_0x182ac3(0x195),_0x182ac3(0x21f),_0x182ac3(0x1b2)],_0x56ac8b):(_0x35d8b7=typeof globalThis<'u'?globalThis:_0x35d8b7||self,_0x56ac8b(_0x35d8b7[_0x182ac3(0x18c)]={},_0x35d8b7[_0x182ac3(0x211)],_0x35d8b7[_0x182ac3(0x250)],_0x35d8b7[_0x182ac3(0x218)],_0x35d8b7[_0x182ac3(0x192)],_0x35d8b7[_0x182ac3(0x218)],_0x35d8b7['UniverProCollaboration'],_0x35d8b7[_0x182ac3(0x238)],_0x35d8b7[_0x182ac3(0x1b7)],_0x35d8b7['rxjs'],_0x35d8b7[_0x182ac3(0x195)]['operators'],_0x35d8b7[_0x182ac3(0x1e3)]));}(this,function(_0x2b074c,_0xf7e530,_0x2e0b21,_0x535191,_0x5c0ad8,_0x35919f,_0x239d0a,_0x53c83b,_0x40af1c,_0x5b9003,_0x2bb546,_0x40b946){'use strict';const _0x540c4d=_0x3b74;var _0x22e27d=Object['defineProperty'],_0x5a8659=(_0x2aa5fa,_0x3ce4cd,_0xf3f509)=>_0x3ce4cd in _0x2aa5fa?_0x22e27d(_0x2aa5fa,_0x3ce4cd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf3f509}):_0x2aa5fa[_0x3ce4cd]=_0xf3f509,_0x566ec3=(_0x338157,_0x4e1428,_0x511224)=>_0x5a8659(_0x338157,typeof _0x4e1428!=_0x540c4d(0x17d)?_0x4e1428+'':_0x4e1428,_0x511224);function _0x18be59({ref:_0x134fc0,..._0x34ca32}){const _0x3e75b2=_0x540c4d,{icon:_0x192185,id:_0x2bf6fd,className:_0x2fcd81,extend:_0x47e195,..._0xae5fda}=_0x34ca32,_0x2d736b=(_0x3e75b2(0x239)+_0x2bf6fd+'\x20'+(_0x2fcd81||''))[_0x3e75b2(0x204)](),_0x4773f2=_0x35919f[_0x3e75b2(0x232)]('_'+_0x3194f1());return _0x3c7861(_0x192185,''+_0x2bf6fd,{'defIds':_0x192185['defIds'],'idSuffix':_0x4773f2['current']},{'ref':_0x134fc0,'className':_0x2d736b,..._0xae5fda},_0x47e195);}function _0x3c7861(_0x3677e0,_0x1c4fb4,_0x3d8775,_0x38f180,_0x111481){const _0x3427d2=_0x540c4d;return _0x35919f[_0x3427d2(0x1c7)](_0x3677e0['tag'],{'key':_0x1c4fb4,..._0x892fd3(_0x3677e0,_0x3d8775,_0x111481),..._0x38f180},(_0x2529d8(_0x3677e0,_0x3d8775)[_0x3427d2(0x1d6)]||[])['map']((_0x2d869a,_0x184b04)=>_0x3c7861(_0x2d869a,_0x1c4fb4+'-'+_0x3677e0[_0x3427d2(0x21a)]+'-'+_0x184b04,_0x3d8775,void 0x0,_0x111481)));}function _0x892fd3(_0x20db63,_0x36bc5c,_0x38402b){const _0x256295=_0x540c4d,_0x1b8e46={..._0x20db63[_0x256295(0x21c)]};_0x38402b!=null&&_0x38402b['colorChannel1']&&_0x1b8e46[_0x256295(0x248)]===_0x256295(0x185)&&(_0x1b8e46[_0x256295(0x248)]=_0x38402b[_0x256295(0x185)]),_0x20db63[_0x256295(0x21a)]===_0x256295(0x1c4)&&_0x1b8e46['id']&&(_0x1b8e46['id']=_0x1b8e46['id']+_0x36bc5c[_0x256295(0x214)]),Object[_0x256295(0x258)](_0x1b8e46)[_0x256295(0x1f1)](([_0x374e2c,_0x526aa2])=>{const _0x1a4525=_0x256295;_0x374e2c===_0x1a4525(0x1c4)&&typeof _0x526aa2==_0x1a4525(0x201)&&(_0x1b8e46[_0x374e2c]=_0x526aa2['replace'](/url\(#(.*)\)/,'url(#$1'+_0x36bc5c[_0x1a4525(0x214)]+')'));});const {defIds:_0x18fec3}=_0x36bc5c;return!_0x18fec3||_0x18fec3[_0x256295(0x1cb)]===0x0||(_0x20db63[_0x256295(0x21a)]===_0x256295(0x230)&&_0x1b8e46[_0x256295(0x19f)]&&(_0x1b8e46[_0x256295(0x19f)]=_0x1b8e46[_0x256295(0x19f)]+_0x36bc5c[_0x256295(0x214)]),Object['entries'](_0x1b8e46)[_0x256295(0x1f1)](([_0x529caf,_0x1b0f85])=>{const _0xb2e0b6=_0x256295;typeof _0x1b0f85==_0xb2e0b6(0x201)&&(_0x1b8e46[_0x529caf]=_0x1b0f85[_0xb2e0b6(0x20a)](/url\(#(.*)\)/,_0xb2e0b6(0x23d)+_0x36bc5c['idSuffix']+')'));})),_0x1b8e46;}function _0x2529d8(_0x1c9b08,_0x996b1e){const _0x1d504d=_0x540c4d;var _0x316b11;const {defIds:_0x54b301}=_0x996b1e;return!_0x54b301||_0x54b301['length']===0x0?_0x1c9b08:_0x1c9b08[_0x1d504d(0x21a)]===_0x1d504d(0x1a0)&&((_0x316b11=_0x1c9b08[_0x1d504d(0x1d6)])!=null&&_0x316b11[_0x1d504d(0x1cb)])?{..._0x1c9b08,'children':_0x1c9b08[_0x1d504d(0x1d6)][_0x1d504d(0x25a)](_0x3904a1=>typeof _0x3904a1[_0x1d504d(0x21c)]['id']==_0x1d504d(0x201)&&_0x54b301&&_0x54b301[_0x1d504d(0x1f4)](_0x3904a1[_0x1d504d(0x21c)]['id'])?{..._0x3904a1,'attrs':{..._0x3904a1[_0x1d504d(0x21c)],'id':_0x3904a1[_0x1d504d(0x21c)]['id']+_0x996b1e[_0x1d504d(0x214)]}}:_0x3904a1)}:_0x1c9b08;}function _0x3194f1(){const _0x2ec129=_0x540c4d;return Math[_0x2ec129(0x25e)]()[_0x2ec129(0x180)](0x24)[_0x2ec129(0x1be)](0x2,0x8);}_0x18be59['displayName']=_0x540c4d(0x1c9);const _0x160485={'tag':'svg','attrs':{'xmlns':_0x540c4d(0x188),'fill':'none','viewBox':_0x540c4d(0x22b),'width':'1em','height':_0x540c4d(0x231)},'children':[{'tag':_0x540c4d(0x183),'attrs':{'fill':_0x540c4d(0x233),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x540c4d(0x183),'attrs':{'fill':_0x540c4d(0x233),'d':_0x540c4d(0x1e0),'fillRule':'evenodd','clipRule':_0x540c4d(0x1f7)}}]},_0x1a3f78=_0x35919f['forwardRef'](function(_0x57944c,_0x2f9fde){const _0x160f62=_0x540c4d;return _0x35919f[_0x160f62(0x1c7)](_0x18be59,Object[_0x160f62(0x182)]({},_0x57944c,{'id':'live-share-icon','ref':_0x2f9fde,'icon':_0x160485}));});_0x1a3f78['displayName']='LiveShareIcon';class _0x26f884 extends _0xf7e530[_0x540c4d(0x1a3)]{constructor(){const _0x2f6a4f=_0x540c4d;super(...arguments),_0x566ec3(this,_0x2f6a4f(0x259),new Set()),_0x566ec3(this,_0x2f6a4f(0x181),new Set());}[_0x540c4d(0x224)](_0x304008){const _0x4d96fe=_0x540c4d;return this[_0x4d96fe(0x259)][_0x4d96fe(0x23c)](_0x304008),_0xf7e530['toDisposable'](()=>this[_0x4d96fe(0x259)][_0x4d96fe(0x19c)](_0x304008));}['registerInitialStateReporter'](_0x4ee020){const _0x572b04=_0x540c4d;return this['_reporters'][_0x572b04(0x23c)](_0x4ee020),_0xf7e530[_0x572b04(0x22f)](()=>this['_reporters']['delete'](_0x4ee020));}[_0x540c4d(0x20c)](_0x5005ae){const _0x42462f=_0x540c4d;return this[_0x42462f(0x259)]['has'](_0x5005ae);}[_0x540c4d(0x1e5)](_0x4685e0){const _0x904beb=_0x540c4d;return Array['from'](this[_0x904beb(0x181)])[_0x904beb(0x25a)](_0x17d5be=>_0x17d5be(_0x4685e0));}}var _0x5f4a01=Object[_0x540c4d(0x221)],_0x4a3f82=(_0x46d70b,_0x2e1fa8,_0x4e80b2,_0x102f08)=>{const _0x4329f5=_0x540c4d;for(var _0x50bad5=_0x102f08>0x1?void 0x0:_0x102f08?_0x5f4a01(_0x2e1fa8,_0x4e80b2):_0x2e1fa8,_0x588b16=_0x46d70b[_0x4329f5(0x1cb)]-0x1,_0x2eeb50;_0x588b16>=0x0;_0x588b16--)(_0x2eeb50=_0x46d70b[_0x588b16])&&(_0x50bad5=_0x2eeb50(_0x50bad5)||_0x50bad5);return _0x50bad5;},_0x193f45=(_0x48483a,_0x3e4159)=>(_0x3a5979,_0x556c26)=>_0x3e4159(_0x3a5979,_0x556c26,_0x48483a);_0x2b074c[_0x540c4d(0x200)]=class extends _0xf7e530[_0x540c4d(0x205)]{constructor(_0x382152,_0x1788da,_0x46968e){const _0x38298f=_0x540c4d;super(),_0x566ec3(this,_0x38298f(0x20e),new Map()),(this[_0x38298f(0x1c8)]=_0x382152,this[_0x38298f(0x251)]=_0x1788da,this['_collabSessionService']=_0x46968e,this[_0x38298f(0x1e9)]());}async[_0x540c4d(0x186)](_0x1e759e){const _0x1b249b=_0x540c4d;return this[_0x1b249b(0x20e)][_0x1b249b(0x18d)](_0x1e759e)||await this[_0x1b249b(0x252)](_0x1e759e),this[_0x1b249b(0x20e)][_0x1b249b(0x1fd)](_0x1e759e);}[_0x540c4d(0x1b5)](_0x93fb91){const _0x908408=_0x540c4d;var _0x308cf4;return(_0x308cf4=this[_0x908408(0x20e)][_0x908408(0x1fd)](_0x93fb91))!=null?_0x308cf4:null;}['_init'](){const _0x3d7808=_0x540c4d;this['_univerInstanceService'][_0x3d7808(0x184)](_0xf7e530['UniverInstanceType'][_0x3d7808(0x1a1)])['pipe'](_0x2bb546[_0x3d7808(0x1f0)](this[_0x3d7808(0x1c2)]))[_0x3d7808(0x187)](async _0x1f03b7=>{const _0x471231=_0x3d7808,_0x4c2a9a=_0x1f03b7[_0x471231(0x1fe)]();this[_0x471231(0x20e)]['has'](_0x4c2a9a)||this['_startLiveShareCoordinator'](_0x4c2a9a);}),this[_0x3d7808(0x1c8)]['getTypeOfUnitDisposed$'](_0xf7e530['UniverInstanceType']['UNIVER_SHEET'])[_0x3d7808(0x1aa)](_0x2bb546[_0x3d7808(0x1f0)](this[_0x3d7808(0x1c2)]))['subscribe'](_0x436cef=>{const _0x5204e8=_0x3d7808,_0x2d02af=_0x436cef['getUnitId'](),_0x269d1c=this[_0x5204e8(0x20e)][_0x5204e8(0x1fd)](_0x2d02af);_0x269d1c==null||_0x269d1c[_0x5204e8(0x19e)]();});}async['_startLiveShareCoordinator'](_0x411efe){const _0x48d448=_0x540c4d,_0x2dc49a=await this['_collabSessionService'][_0x48d448(0x1b9)](_0x411efe),_0x52a69b=this[_0x48d448(0x251)][_0x48d448(0x1dc)](_0x2b074c[_0x48d448(0x213)],_0x411efe,_0x2dc49a);return _0x52a69b[_0x48d448(0x1d7)](),this[_0x48d448(0x20e)][_0x48d448(0x1a9)](_0x411efe,_0x52a69b),_0x52a69b;}},_0x2b074c[_0x540c4d(0x200)]=_0x4a3f82([_0x193f45(0x0,_0xf7e530[_0x540c4d(0x24b)]),_0x193f45(0x1,_0xf7e530['Inject'](_0xf7e530[_0x540c4d(0x23b)])),_0x193f45(0x2,_0xf7e530['Inject'](_0x53c83b[_0x540c4d(0x1a2)]))],_0x2b074c[_0x540c4d(0x200)]);var _0x12cd74=(_0x33afb9=>(_0x33afb9[_0x540c4d(0x1f2)]=_0x540c4d(0x1e8),_0x33afb9['IDLE']=_0x540c4d(0x1ef),_0x33afb9[_0x540c4d(0x20f)]=_0x540c4d(0x17f),_0x33afb9['NOT_FOLLOWING']=_0x540c4d(0x1bc),_0x33afb9[_0x540c4d(0x203)]=_0x540c4d(0x1eb),_0x33afb9))(_0x12cd74||{});const _0x128531=_0x540c4d(0x209),_0x29eb16=0xc8;_0x2b074c[_0x540c4d(0x213)]=class extends _0xf7e530[_0x540c4d(0x205)]{constructor(_0x12e2b8,_0x254f21,_0x2ab6ed,_0x538488,_0x3a2965){const _0x28a53b=_0x540c4d;super(),_0x566ec3(this,_0x28a53b(0x220),new _0x5b9003['BehaviorSubject'](_0x28a53b(0x1ef))),_0x566ec3(this,_0x28a53b(0x242),this[_0x28a53b(0x220)][_0x28a53b(0x1ed)]()),_0x566ec3(this,_0x28a53b(0x1e9),!0x1),_0x566ec3(this,_0x28a53b(0x194),null),_0x566ec3(this,_0x28a53b(0x243),null),(this[_0x28a53b(0x17e)]=_0x12e2b8,this[_0x28a53b(0x215)]=_0x254f21,this[_0x28a53b(0x1cc)]=_0x2ab6ed,this[_0x28a53b(0x208)]=_0x538488,this['_commandService']=_0x3a2965);}get[_0x540c4d(0x1c3)](){const _0x2cc2e1=_0x540c4d;return this[_0x2cc2e1(0x220)][_0x2cc2e1(0x1da)]();}[_0x540c4d(0x19e)](){const _0x27c210=_0x540c4d;var _0x3f2c54;(_0x3f2c54=this['_commandDisposable'])==null||_0x3f2c54['dispose'](),this[_0x27c210(0x220)][_0x27c210(0x1bf)]('idle'),this['_status$'][_0x27c210(0x217)]();}[_0x540c4d(0x1e4)](){const _0x14366d=_0x540c4d;return this[_0x14366d(0x1c3)];}['init'](){const _0x1adcc5=_0x540c4d;this[_0x1adcc5(0x1e9)]||(this[_0x1adcc5(0x1e9)]=!0x0,this['_collabSession'][_0x1adcc5(0x241)]['pipe'](_0x2bb546['takeUntil'](this[_0x1adcc5(0x1c2)]))[_0x1adcc5(0x187)](_0x207a8e=>{const _0x21e7b7=_0x1adcc5;switch(_0x207a8e){case _0x53c83b[_0x21e7b7(0x226)][_0x21e7b7(0x1f2)]:this[_0x21e7b7(0x189)]();break;case _0x53c83b[_0x21e7b7(0x226)]['ONLINE']:this[_0x21e7b7(0x24e)]();break;}}),this[_0x1adcc5(0x215)][_0x1adcc5(0x1bd)][_0x1adcc5(0x1aa)](_0x2bb546[_0x1adcc5(0x1f0)](this[_0x1adcc5(0x1c2)]))[_0x1adcc5(0x187)](_0x128928=>{const _0x40b7d2=_0x1adcc5,{eventID:_0x195f4c}=_0x128928;switch(_0x195f4c){case _0x239d0a[_0x40b7d2(0x1d1)]['LIVESHARE_NEW_HOST']:this[_0x40b7d2(0x1ca)](_0x128928);break;case _0x239d0a[_0x40b7d2(0x1d1)][_0x40b7d2(0x19d)]:this[_0x40b7d2(0x1ec)](_0x128928);break;case _0x239d0a[_0x40b7d2(0x1d1)][_0x40b7d2(0x199)]:this[_0x40b7d2(0x25d)]();break;case _0x239d0a[_0x40b7d2(0x1d1)][_0x40b7d2(0x237)]:this['_handleNewChangeSets'](_0x128928);break;}}));}[_0x540c4d(0x216)](){const _0x21deb1=_0x540c4d;this[_0x21deb1(0x215)][_0x21deb1(0x249)]({'eventID':_0x239d0a['CollaborationEvent'][_0x21deb1(0x18f)],'data':{'unitID':this[_0x21deb1(0x17e)],'userID':this[_0x21deb1(0x215)][_0x21deb1(0x25b)]()}},this['_unitID']);}['stopPresenting'](){const _0x4a8a81=_0x540c4d;this[_0x4a8a81(0x1c3)]===_0x4a8a81(0x1eb)&&(this['_status$'][_0x4a8a81(0x1bf)](_0x4a8a81(0x1ef)),this[_0x4a8a81(0x215)][_0x4a8a81(0x249)]({'eventID':_0x239d0a[_0x4a8a81(0x1d1)][_0x4a8a81(0x199)],'data':{'unitID':this[_0x4a8a81(0x17e)]}},this[_0x4a8a81(0x17e)]));}['startFollowing'](){const _0x3a7928=_0x540c4d;this[_0x3a7928(0x1c3)]===_0x3a7928(0x1bc)&&(this[_0x3a7928(0x220)]['next'](_0x3a7928(0x17f)),this[_0x3a7928(0x219)]());}[_0x540c4d(0x253)](){const _0x5ceb6f=_0x540c4d;this['_status']===_0x5ceb6f(0x17f)&&this['_stopFollowing']();}[_0x540c4d(0x1ca)](_0xcf48af){const _0x323c49=_0x540c4d,{presenter:_0x5b3861}=_0xcf48af[_0x323c49(0x24d)],_0x579574=this['_collabSession'][_0x323c49(0x25b)]();this[_0x323c49(0x243)]=_0x5b3861,_0x5b3861===_0x579574?(this[_0x323c49(0x197)](),this[_0x323c49(0x1a5)]()):this[_0x323c49(0x1c3)]!==_0x323c49(0x1bc)&&(this['_stopPresenting'](),this[_0x323c49(0x219)]());}[_0x540c4d(0x1c0)](){const _0x19e2ae=_0x540c4d,_0x58abce={'eventID':_0x239d0a[_0x19e2ae(0x1d1)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x19e2ae(0x249)](_0x58abce,this[_0x19e2ae(0x17e)]);}[_0x540c4d(0x25d)](){const _0x3bbe9d=_0x540c4d;this['_presenter']=null,this['_status']!==_0x3bbe9d(0x1eb)&&this[_0x3bbe9d(0x18a)]();}[_0x540c4d(0x1a7)](_0x43a57e){const _0x1f392c=_0x540c4d;if(this[_0x1f392c(0x1c3)]==='following'&&this[_0x1f392c(0x243)]===_0x43a57e[_0x1f392c(0x24d)][_0x1f392c(0x247)]){const _0x181961=_0x239d0a['parseProtocolChangeset'](_0x43a57e[_0x1f392c(0x24d)])[_0x1f392c(0x179)][_0x1f392c(0x207)]()[_0x1f392c(0x25c)](_0x5f51ad=>_0x5f51ad['id']===_0x40af1c[_0x1f392c(0x17c)]['id']);if(_0x181961){const _0x3101be=_0x181961[_0x1f392c(0x191)][_0x1f392c(0x22e)],_0x423b75=_0x181961[_0x1f392c(0x191)]['sheet']['id'];setTimeout(()=>{const _0x51cca0=_0x1f392c;this[_0x51cca0(0x229)][_0x51cca0(0x1f6)](_0x40af1c[_0x51cca0(0x228)]['id'],{'unitId':_0x3101be,'subUnitId':_0x423b75},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x1bf3e0=_0x540c4d;this[_0x1bf3e0(0x220)][_0x1bf3e0(0x1bf)](_0x1bf3e0(0x1eb));const _0x327dbb=new Map(),_0x201e14=this[_0x1bf3e0(0x194)]=new _0xf7e530[(_0x1bf3e0(0x1df))]();_0x201e14[_0x1bf3e0(0x23c)](_0xf7e530[_0x1bf3e0(0x22f)](()=>{const _0x2dc779=_0x1bf3e0;_0x327dbb['forEach'](_0x4f1eaa=>_0x4f1eaa['complete']()),_0x327dbb[_0x2dc779(0x1ff)]();})),_0x201e14[_0x1bf3e0(0x23c)](this[_0x1bf3e0(0x229)][_0x1bf3e0(0x1b4)](_0x461806=>{const _0x36b7d4=_0x1bf3e0;var _0x1bb7df;if(_0x461806[_0x36b7d4(0x24a)]!==_0xf7e530[_0x36b7d4(0x17b)][_0x36b7d4(0x1d9)]||!this[_0x36b7d4(0x208)][_0x36b7d4(0x20c)](_0x461806['id']))return;const {id:_0x311a21}=_0x461806;let _0x421296;_0x327dbb[_0x36b7d4(0x18d)](_0x311a21)?_0x421296=_0x327dbb[_0x36b7d4(0x1fd)](_0x311a21):(_0x421296=new _0x5b9003[(_0x36b7d4(0x1ba))](),_0x327dbb[_0x36b7d4(0x1a9)](_0x311a21,_0x421296),_0x421296['pipe'](_0x2bb546[_0x36b7d4(0x23e)]((_0x1bb7df=this[_0x36b7d4(0x1cc)]['getConfig'](_0x128531))!=null?_0x1bb7df:_0x29eb16,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x385e15=>{const _0x4279f2=_0x36b7d4;this[_0x4279f2(0x215)][_0x4279f2(0x249)]({'eventID':_0x239d0a['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x385e15['id']]:{'id':_0x385e15['id'],'params':JSON[_0x4279f2(0x1c5)](_0x385e15[_0x4279f2(0x191)])}}}},this[_0x4279f2(0x17e)]);})),_0x421296[_0x36b7d4(0x1bf)](_0x461806);})),this[_0x1bf3e0(0x208)][_0x1bf3e0(0x1e5)](this[_0x1bf3e0(0x17e)])['forEach'](_0x4b4184=>this[_0x1bf3e0(0x215)]['send']({'eventID':_0x239d0a[_0x1bf3e0(0x1d1)][_0x1bf3e0(0x19d)],'data':{'unitID':this[_0x1bf3e0(0x17e)],'operations':{[_0x4b4184['id']]:{'id':_0x4b4184['id'],'params':JSON['stringify'](_0x4b4184[_0x1bf3e0(0x191)])}}}},this[_0x1bf3e0(0x17e)]));}[_0x540c4d(0x1fa)](){const _0x52dee0=_0x540c4d;var _0x4f2507;this[_0x52dee0(0x220)][_0x52dee0(0x1bf)](_0x52dee0(0x1ef)),(_0x4f2507=this[_0x52dee0(0x194)])==null||_0x4f2507['dispose'](),this[_0x52dee0(0x194)]=null;}['_startFollowing'](){const _0x345d32=_0x540c4d;var _0x396228;(_0x396228=this[_0x345d32(0x194)])==null||_0x396228[_0x345d32(0x19e)](),this['_status$'][_0x345d32(0x1bf)](_0x345d32(0x17f));}[_0x540c4d(0x18a)](){const _0x446ca6=_0x540c4d;var _0x945edc;this['_status$']['next'](_0x446ca6(0x1ef)),(_0x945edc=this['_commandDisposable'])==null||_0x945edc[_0x446ca6(0x19e)](),this[_0x446ca6(0x194)]=null;}[_0x540c4d(0x197)](){const _0x23d5fb=_0x540c4d;var _0x42f7c1;this[_0x23d5fb(0x220)][_0x23d5fb(0x1bf)]('not-following'),(_0x42f7c1=this['_commandDisposable'])==null||_0x42f7c1['dispose']();}[_0x540c4d(0x1ec)](_0x2a50a6){const _0x3f6d23=_0x540c4d;if([_0x3f6d23(0x1eb),_0x3f6d23(0x1bc),_0x3f6d23(0x1e8)][_0x3f6d23(0x1f4)](this[_0x3f6d23(0x1c3)])||!_0x2a50a6[_0x3f6d23(0x24d)]['presenter']||_0x2a50a6[_0x3f6d23(0x24d)][_0x3f6d23(0x240)]===this[_0x3f6d23(0x215)][_0x3f6d23(0x25b)]())return;this[_0x3f6d23(0x1c3)]===_0x3f6d23(0x1ef)&&this[_0x3f6d23(0x219)]();const _0x24dc0f=_0x2a50a6[_0x3f6d23(0x24d)][_0x3f6d23(0x1e6)];Object['values'](_0x24dc0f)['forEach'](_0x54188a=>{const _0x3e9d11=_0x3f6d23;this[_0x3e9d11(0x229)][_0x3e9d11(0x1f6)](_0x54188a['id'],_0x54188a[_0x3e9d11(0x191)]?JSON[_0x3e9d11(0x1bb)](_0x54188a[_0x3e9d11(0x191)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x514442=_0x540c4d;var _0x4001f0;this[_0x514442(0x220)]['next'](_0x514442(0x1e8)),(_0x4001f0=this[_0x514442(0x194)])==null||_0x4001f0['dispose']();}['_handleOnline'](){const _0x111fde=_0x540c4d;this[_0x111fde(0x220)][_0x111fde(0x1bf)](_0x111fde(0x1ef)),this[_0x111fde(0x1c0)]();}},_0x2b074c[_0x540c4d(0x213)]=_0x4a3f82([_0x193f45(0x2,_0xf7e530[_0x540c4d(0x198)]),_0x193f45(0x3,_0xf7e530[_0x540c4d(0x1fc)](_0x26f884)),_0x193f45(0x4,_0xf7e530[_0x540c4d(0x256)])],_0x2b074c['LiveShareCoordinator']);function _0x22f5cf(){const _0x5b6449=_0x540c4d,_0x3bb70f=_0x2e0b21['useDependency'](_0x2b074c[_0x5b6449(0x200)]),_0x9f80f6=_0x2e0b21[_0x5b6449(0x18e)](_0xf7e530[_0x5b6449(0x24b)]),_0x4ab8a8=_0x2e0b21[_0x5b6449(0x246)](()=>_0x9f80f6[_0x5b6449(0x1dd)](_0xf7e530[_0x5b6449(0x255)][_0x5b6449(0x1a1)]),void 0x0,!0x1,[]),[_0x4d885b,_0x1b7ed8]=_0x35919f[_0x5b6449(0x1f5)](null),[_0x5f4149,_0x37104b]=_0x35919f[_0x5b6449(0x1f5)](_0x12cd74[_0x5b6449(0x196)]),_0x4a0191=_0x35919f[_0x5b6449(0x232)](null);return _0x35919f['useEffect'](()=>(_0x4ab8a8&&_0x3bb70f[_0x5b6449(0x186)](_0x4ab8a8[_0x5b6449(0x1fe)]())[_0x5b6449(0x22c)](_0x1a7569=>{const _0x3aa893=_0x5b6449;_0x1b7ed8(_0x1a7569),_0x4a0191['current']=_0x1a7569[_0x3aa893(0x242)]['subscribe'](_0x5cef14=>{_0x37104b(_0x5cef14);});}),()=>{const _0x2169b2=_0x5b6449;var _0x403207;(_0x403207=_0x4a0191['current'])==null||_0x403207[_0x2169b2(0x22d)](),_0x4a0191[_0x2169b2(0x1ce)]=null;}),[_0x4ab8a8,_0x3bb70f]),_0x4d885b?_0x535191['jsx'](_0x5c0ad8['Dropdown'],{'align':_0x5b6449(0x20d),'disabled':_0x5f4149===_0x12cd74['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':_0x535191[_0x5b6449(0x245)](_0xfa31d6,{'status':_0x5f4149,'coordinator':_0x4d885b}),'children':_0x535191[_0x5b6449(0x245)]('button',{'className':_0x5c0ad8[_0x5b6449(0x1d8)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x5f4149===_0x12cd74[_0x5b6449(0x1f2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5f4149!==_0x12cd74['OFFLINE']}),'type':_0x5b6449(0x21e),'children':_0x535191['jsx'](_0x1a3f78,{'className':_0x5b6449(0x1e2)})})}):null;}function _0xfa31d6(_0x14b3d1){const _0xe26a74=_0x540c4d,{status:_0x2b6b58,coordinator:_0x1f02f4}=_0x14b3d1;switch(_0x2b6b58){case _0x12cd74['IDLE']:return _0x535191[_0xe26a74(0x245)](_0x460e5f,{'coordinator':_0x1f02f4});case _0x12cd74[_0xe26a74(0x20f)]:return _0x535191['jsx'](_0xebc7ad,{'coordinator':_0x1f02f4});case _0x12cd74[_0xe26a74(0x254)]:return _0x535191['jsx'](_0x841f29,{'coordinator':_0x1f02f4});case _0x12cd74[_0xe26a74(0x1f2)]:return _0x535191[_0xe26a74(0x245)](_0x1ee286,{});case _0x12cd74[_0xe26a74(0x203)]:return _0x535191[_0xe26a74(0x245)](_0x2b080f,{'coordinator':_0x1f02f4});default:return null;}}function _0x460e5f(_0x5c8e49){const _0x218a48=_0x540c4d,{coordinator:_0x12e583}=_0x5c8e49;return _0x535191[_0x218a48(0x1d0)](_0x535191[_0x218a48(0x1ae)],{'children':[_0x535191[_0x218a48(0x245)](_0x218a48(0x190),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x218a48(0x227)}),_0x535191[_0x218a48(0x245)](_0x5c0ad8[_0x218a48(0x1ea)],{'onClick':()=>_0x12e583[_0x218a48(0x216)](),'children':'Start'})]});}function _0xebc7ad(_0x3a528b){const _0x2cf738=_0x540c4d,{coordinator:_0x33abc6}=_0x3a528b;return _0x535191[_0x2cf738(0x1d0)](_0x535191[_0x2cf738(0x1ae)],{'children':[_0x535191[_0x2cf738(0x245)]('div',{'className':_0x2cf738(0x1c1),'children':_0x2cf738(0x1d3)}),_0x535191['jsx'](_0x5c0ad8['Button'],{'onClick':()=>_0x33abc6['stopFollowing'](),'children':_0x2cf738(0x257)})]});}function _0x841f29(_0x980149){const _0x4c1118=_0x540c4d,{coordinator:_0x1210b4}=_0x980149;return _0x535191[_0x4c1118(0x1d0)](_0x535191[_0x4c1118(0x1ae)],{'children':[_0x535191[_0x4c1118(0x245)](_0x4c1118(0x190),{'className':_0x4c1118(0x1c1),'children':_0x4c1118(0x1a6)}),_0x535191[_0x4c1118(0x245)](_0x5c0ad8[_0x4c1118(0x1ea)],{'variant':_0x4c1118(0x19b),'onClick':()=>_0x1210b4[_0x4c1118(0x1ab)](),'children':_0x4c1118(0x1e1)})]});}function _0x2b080f(_0x4e12a7){const _0x3f28ec=_0x540c4d,{coordinator:_0x531a8c}=_0x4e12a7;return _0x535191[_0x3f28ec(0x1d0)](_0x535191[_0x3f28ec(0x1ae)],{'children':[_0x535191[_0x3f28ec(0x245)](_0x3f28ec(0x190),{'className':_0x3f28ec(0x1c1),'children':_0x3f28ec(0x1f3)}),_0x535191[_0x3f28ec(0x245)](_0x5c0ad8[_0x3f28ec(0x1ea)],{'variant':_0x3f28ec(0x210),'onClick':()=>_0x531a8c[_0x3f28ec(0x212)](),'children':_0x3f28ec(0x223)})]});}function _0x1ee286(){const _0x496cc6=_0x540c4d;return _0x535191[_0x496cc6(0x245)](_0x535191['Fragment'],{'children':'You\x27are\x20offline.'});}var _0x3a3904=Object[_0x540c4d(0x221)],_0x559f44=(_0x443e9a,_0x508251,_0x5c51b5,_0xb9bda1)=>{const _0x68ccd8=_0x540c4d;for(var _0x1072a7=_0xb9bda1>0x1?void 0x0:_0xb9bda1?_0x3a3904(_0x508251,_0x5c51b5):_0x508251,_0x9cfa4f=_0x443e9a[_0x68ccd8(0x1cb)]-0x1,_0x1c995f;_0x9cfa4f>=0x0;_0x9cfa4f--)(_0x1c995f=_0x443e9a[_0x9cfa4f])&&(_0x1072a7=_0x1c995f(_0x1072a7)||_0x1072a7);return _0x1072a7;},_0x28aa96=(_0x3e888e,_0x26cd0a)=>(_0x49814f,_0x18290a)=>_0x26cd0a(_0x49814f,_0x18290a,_0x3e888e);_0x2b074c['DesktopLiveShareController']=class extends _0xf7e530[_0x540c4d(0x1a3)]{constructor(_0x45905d,_0x5f47c0){const _0x3cacda=_0x540c4d;super(),this[_0x3cacda(0x251)]=_0x45905d,this[_0x3cacda(0x202)]=_0x5f47c0,this[_0x3cacda(0x244)]();}[_0x540c4d(0x244)](){const _0x3a4b8e=_0x540c4d;this[_0x3a4b8e(0x1a8)](this[_0x3a4b8e(0x202)][_0x3a4b8e(0x1ee)](_0x2e0b21[_0x3a4b8e(0x1e7)]['HEADER_MENU'],()=>_0x2e0b21[_0x3a4b8e(0x1db)](_0x22f5cf,this[_0x3a4b8e(0x251)])));}},_0x2b074c['DesktopLiveShareController']=_0x559f44([_0x28aa96(0x0,_0xf7e530[_0x540c4d(0x1fc)](_0xf7e530[_0x540c4d(0x23b)])),_0x28aa96(0x1,_0x2e0b21[_0x540c4d(0x222)])],_0x2b074c[_0x540c4d(0x1b6)]);const _0x9753b=_0x540c4d(0x235),_0x1b4c71={};var _0x2ae4f3=Object['getOwnPropertyDescriptor'],_0x154f7b=(_0x12703a,_0x395407,_0x3dce37,_0x1dc5bc)=>{const _0x2fcf28=_0x540c4d;for(var _0x466c77=_0x1dc5bc>0x1?void 0x0:_0x1dc5bc?_0x2ae4f3(_0x395407,_0x3dce37):_0x395407,_0x5cfe7a=_0x12703a[_0x2fcf28(0x1cb)]-0x1,_0x2e8586;_0x5cfe7a>=0x0;_0x5cfe7a--)(_0x2e8586=_0x12703a[_0x5cfe7a])&&(_0x466c77=_0x2e8586(_0x466c77)||_0x466c77);return _0x466c77;},_0x2ade5b=(_0x4fbc05,_0x146c8f)=>(_0x4171cd,_0x57a9fb)=>_0x146c8f(_0x4171cd,_0x57a9fb,_0x4fbc05);let _0x4c9acf=class extends _0xf7e530[_0x540c4d(0x1a3)]{constructor(_0x39e0b2){const _0x511f05=_0x540c4d;super(),this['_liveShareService']=_0x39e0b2,this[_0x511f05(0x1e9)]();}[_0x540c4d(0x1e9)](){const _0x33b509=_0x540c4d;[_0x40b946[_0x33b509(0x1f9)]['id'],_0x40b946['SetScrollOperation']['id'],_0x40af1c[_0x33b509(0x228)]['id']][_0x33b509(0x1f1)](_0x2a5899=>{const _0x3e291e=_0x33b509;this[_0x3e291e(0x1a8)](this['_liveShareService'][_0x3e291e(0x224)](_0x2a5899));});}};_0x4c9acf=_0x154f7b([_0x2ade5b(0x0,_0xf7e530[_0x540c4d(0x1fc)](_0x26f884))],_0x4c9acf);var _0x56d05b=Object['defineProperty'],_0x2ab3af=Object[_0x540c4d(0x221)],_0x119484=(_0x471295,_0x5d75d6,_0xd6ef30)=>_0x5d75d6 in _0x471295?_0x56d05b(_0x471295,_0x5d75d6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd6ef30}):_0x471295[_0x5d75d6]=_0xd6ef30,_0x292e34=(_0xd366a8,_0x181f2b,_0x4e0bcd,_0x5684ae)=>{const _0x128a9d=_0x540c4d;for(var _0x28d2a=_0x5684ae>0x1?void 0x0:_0x5684ae?_0x2ab3af(_0x181f2b,_0x4e0bcd):_0x181f2b,_0x4dedb5=_0xd366a8[_0x128a9d(0x1cb)]-0x1,_0x1d3d17;_0x4dedb5>=0x0;_0x4dedb5--)(_0x1d3d17=_0xd366a8[_0x4dedb5])&&(_0x28d2a=_0x1d3d17(_0x28d2a)||_0x28d2a);return _0x28d2a;},_0x2e1fbd=(_0x309946,_0x1665b6)=>(_0x2c3e57,_0x29b0bc)=>_0x1665b6(_0x2c3e57,_0x29b0bc,_0x309946),_0xe78de6=(_0x4f26c4,_0x3e1213,_0x3423bd)=>_0x119484(_0x4f26c4,typeof _0x3e1213!='symbol'?_0x3e1213+'':_0x3e1213,_0x3423bd);const _0x274b51=_0x540c4d(0x1b1);_0x2b074c['UniverLiveSharePlugin']=class extends _0xf7e530['Plugin']{constructor(_0xca3255=_0x1b4c71,_0x15980f,_0x5c2a52){const _0x23990f=_0x540c4d;super(),this[_0x23990f(0x1de)]=_0xca3255,this[_0x23990f(0x251)]=_0x15980f,this[_0x23990f(0x1cc)]=_0x5c2a52;const {..._0x12cc6b}=_0xf7e530[_0x23990f(0x193)]({},_0x1b4c71,this[_0x23990f(0x1de)]);this['_configService'][_0x23990f(0x20b)](_0x9753b,_0x12cc6b);}['onStarting'](){const _0x461c20=_0x540c4d;_0xf7e530['registerDependencies'](this['_injector'],_0xf7e530['mergeOverrideWithDependencies']([[_0x26f884],[_0x2b074c['LiveShareController']],[_0x4c9acf],[_0x2b074c[_0x461c20(0x1b6)]]],this[_0x461c20(0x1de)]['override'])),_0xf7e530[_0x461c20(0x1b0)](this[_0x461c20(0x251)],[[_0x4c9acf]]);}[_0x540c4d(0x234)](){const _0x37d390=_0x540c4d;_0xf7e530['touchDependencies'](this[_0x37d390(0x251)],[[_0x2b074c[_0x37d390(0x1b6)]]]);}},_0xe78de6(_0x2b074c[_0x540c4d(0x19a)],'type',_0xf7e530['UniverInstanceType'][_0x540c4d(0x1d2)]),_0xe78de6(_0x2b074c['UniverLiveSharePlugin'],_0x540c4d(0x21b),_0x274b51),_0x2b074c[_0x540c4d(0x19a)]=_0x292e34([_0xf7e530[_0x540c4d(0x1af)](_0x53c83b[_0x540c4d(0x1b8)]),_0x2e1fbd(0x1,_0xf7e530['Inject'](_0xf7e530[_0x540c4d(0x23b)])),_0x2e1fbd(0x2,_0xf7e530['IConfigService'])],_0x2b074c[_0x540c4d(0x19a)]),_0x2b074c[_0x540c4d(0x1fb)]=_0x22f5cf,_0x2b074c[_0x540c4d(0x206)]=_0x26f884,_0x2b074c[_0x540c4d(0x1ad)]=_0x12cd74,Object[_0x540c4d(0x17a)](_0x2b074c,Symbol[_0x540c4d(0x225)],{'value':_0x540c4d(0x1d4)});}));function _0x3b74(_0x190f56,_0x58065d){const _0x34c65d=_0x34c6();return _0x3b74=function(_0x3b74d6,_0x5e8b56){_0x3b74d6=_0x3b74d6-0x179;let _0x5f44fc=_0x34c65d[_0x3b74d6];return _0x5f44fc;},_0x3b74(_0x190f56,_0x58065d);}function _0x34c6(){const _0x40fa36=['UniverCollaborationClientPlugin','requireSession','Subject','parse','not-following','event$','substring','next','_fetchOperations','univer-mb-3\x20univer-w-full\x20univer-text-sm','dispose$','_status','mask','stringify','react/jsx-runtime','createElement','_univerInstanceService','UniverIcon','_handleNewHost','length','_configService','880468ffXMKI','current','162044sYUecU','jsxs','CollaborationEvent','UNIVER_UNKNOWN','You\x27re\x20following\x20the\x20presenter','Module','exports','children','init','clsx','OPERATION','getValue','connectInjector','createInstance','getCurrentTypeOfUnit$','_config','DisposableCollection','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','Start\x20following','univer-size-4','UniverSheetsUi','getStatus','getInitialStates','operations','BuiltInUIPart','offline','_init','Button','presenting','_handleOperation','asObservable','registerComponent','idle','takeUntil','forEach','OFFLINE','You\x27re\x20presenting\x20the\x20document','includes','useState','executeCommand','evenodd','react','SetZoomRatioOperation','_stopPresenting','LiveShare','Inject','get','getUnitId','clear','LiveShareController','string','_uiPartsService','PRESENTING','trim','RxDisposable','LiveShareService','reverse','_liveShareService','SAME_OPERATION_SHARE_INTERVAL','replace','setConfig','shouldShareOperation','end','_entities','FOLLOWING','default','UniverCore','stopPresenting','LiveShareCoordinator','idSuffix','_collabSession','tryStartPresenting','complete','React','_startFollowing','tag','pluginName','attrs','1221591efPQlb','button','rxjs/operators','_status$','getOwnPropertyDescriptor','IUIPartsService','Stop\x20presenting','registerSharedOperation','toStringTag','SessionStatus','Present\x20this\x20document','SetWorksheetActiveOperation','_commandService','@univerjs/ui','0\x200\x2017\x2017','then','unsubscribe','unitId','toDisposable','use','1em','useRef','currentColor','onRendered','live-share.config','1149225FIuSol','NEW_CHANGESETS','UniverProCollaborationClient','univerjs-icon\x20univerjs-icon-','@univerjs-pro/collaboration-client','Injector','add','url(#$1','throttleTime','2998710xypFMc','presenter','sessionStatus$','status$','_presenter','_mountLiveShare','jsx','useObservable','memberID','fill','send','type','IUniverInstanceService','function','data','_handleOnline','@univerjs/sheets','UniverUi','_injector','_startLiveShareCoordinator','stopFollowing','NOT_FOLLOWING','UniverInstanceType','ICommandService','Stop\x20following','entries','_sharedOperations','map','getMemberID','find','_handleTerminate','random','@univerjs-pro/collaboration','mutations','defineProperty','CommandType','InsertSheetMutation','symbol','_unitID','following','toString','_reporters','assign','path','getTypeOfUnitAdded$','colorChannel1','getLiveShareCoordinator','subscribe','http://www.w3.org/2000/svg','_handleOffline','_beIdle','440206KQYZBh','UniverProLiveShare','has','useDependency','LIVESHARE_REQUEST_HOST','div','params','UniverDesign','merge','_commandDisposable','rxjs','IDLE','_stopFollowing','IConfigService','LIVESHARE_TERMINATE','UniverLiveSharePlugin','text','delete','LIVESHARE_OPERATION','dispose','xlink:href','defs','UNIVER_SHEET','CollaborationSessionService','Disposable','3023445nzHDJY','_startPresenting','You\x27re\x20not\x20following\x20the\x20presenter','_handleNewChangeSets','disposeWithMe','set','pipe','startFollowing','object','LiveShareStatus','Fragment','DependentOn','touchDependencies','UNIVER_LIVE_SHARE_PLUGIN','@univerjs/sheets-ui','amd','onCommandExecuted','getLiveShareCoordinatorSync','DesktopLiveShareController','UniverSheets'];_0x34c6=function(){return _0x40fa36;};return _0x34c6();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.12.2",
3
+ "version": "0.12.3",
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.2",
61
- "@univerjs-pro/collaboration-client": "0.12.2",
62
- "@univerjs/design": "0.12.2",
63
- "@univerjs/core": "0.12.2",
64
- "@univerjs/engine-render": "0.12.2",
65
- "@univerjs/sheets": "0.12.2",
66
- "@univerjs/sheets-ui": "0.12.2",
67
- "@univerjs/ui": "0.12.2"
60
+ "@univerjs-pro/collaboration-client": "0.12.3",
61
+ "@univerjs/core": "0.12.3",
62
+ "@univerjs-pro/collaboration": "0.12.3",
63
+ "@univerjs/engine-render": "0.12.3",
64
+ "@univerjs/design": "0.12.3",
65
+ "@univerjs/sheets": "0.12.3",
66
+ "@univerjs/sheets-ui": "0.12.3",
67
+ "@univerjs/ui": "0.12.3"
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.2",
76
- "vitest": "^3.2.4",
77
- "@univerjs-infra/shared": "0.12.2",
75
+ "vite": "^7.2.4",
76
+ "vitest": "^4.0.14",
77
+ "@univerjs-infra/shared": "0.12.3",
78
78
  "@univerjs/protocol": "0.1.47"
79
79
  },
80
80
  "scripts": {