@univerjs-pro/live-share 0.13.0-insiders.20251218-2062647 → 0.13.0-insiders.20251223-857805c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x166946=_0x562d;function _0x3438(){const _0x207534=['538924WYGxkk','LiveShareController','IRenderManagerService','getActiveWorkbook','FUniver','getId','stopPresenting','LiveShareStatus','getLiveShareStatus','getSheetId','194152KoNwCL','startPresenting','executeCommand','_initialize','extend','getRenderById','FRange','_injector','4478210FmdcqM','startColumn','FEnum','49848zFIaaZ','26645229LpqxRA','24XrqDdb','76vTYIrF','getUnitId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getStatus','stopFollowing','_commandService','3634482wwOnpx','SetWorksheetActiveOperation','getLiveShareCoordinatorSync','startFollowing','tryStartPresenting','No\x20active\x20workbook\x20found.','get','PRESENTING','2847803HyXRMk','IDLE'];_0x3438=function(){return _0x207534;};return _0x3438();}(function(_0x3b8b87,_0x49dc2b){const _0x2c4c75=_0x562d,_0x10d266=_0x3b8b87();while(!![]){try{const _0x21da63=-parseInt(_0x2c4c75(0x1d6))/0x1+parseInt(_0x2c4c75(0x1f4))/0x2+parseInt(_0x2c4c75(0x1e1))/0x3*(parseInt(_0x2c4c75(0x1e4))/0x4)+-parseInt(_0x2c4c75(0x1de))/0x5+-parseInt(_0x2c4c75(0x1ea))/0x6+parseInt(_0x2c4c75(0x1f2))/0x7*(-parseInt(_0x2c4c75(0x1e3))/0x8)+parseInt(_0x2c4c75(0x1e2))/0x9;if(_0x21da63===_0x49dc2b)break;else _0x10d266['push'](_0x10d266['shift']());}catch(_0x3c56bd){_0x10d266['push'](_0x10d266['shift']());}}}(_0x3438,0x99bd7));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[_0x166946(0x1dc)]{[_0x166946(0x1d9)](_0x44f3e6,_0x3826ec,_0x41628d,_0x598288,_0x2b5e8b){const _0x3f3d86=_0x166946,_0x1027de=_0x44f3e6[_0x3f3d86(0x1f0)](n[_0x3f3d86(0x1f5)]),_0x3747f0=_0x44f3e6[_0x3f3d86(0x1f0)](g[_0x3f3d86(0x1f6)]),_0x30c907=_0x3826ec['getUnitId'](),_0x2e60a3=_0x3826ec['getActiveSheet'](),_0x5da0b5=_0x1027de['getLiveShareCoordinatorSync'](_0x30c907);(_0x5da0b5==null?void 0x0:_0x5da0b5[_0x3f3d86(0x1e7)]())!==n[_0x3f3d86(0x1d3)][_0x3f3d86(0x1f1)]||(_0x41628d['getSheetId']()!==_0x2e60a3[_0x3f3d86(0x1d5)]()&&this[_0x3f3d86(0x1e9)][_0x3f3d86(0x1d8)](u[_0x3f3d86(0x1eb)]['id'],{'unitId':_0x30c907,'subUnitId':_0x41628d[_0x3f3d86(0x1d5)]()}),!_0x3747f0[_0x3f3d86(0x1db)](_0x30c907))||_0x2b5e8b['syncExecuteCommand'](f['SetScrollOperation']['id'],{'unitId':_0x3826ec[_0x3f3d86(0x1e5)](),'sheetId':_0x41628d[_0x3f3d86(0x1d5)](),'sheetViewStartRow':_0x598288['startRow'],'sheetViewStartColumn':_0x598288[_0x3f3d86(0x1df)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d['FRange'][_0x166946(0x1da)](w);function _0x562d(_0xfb7fa7,_0x112384){_0xfb7fa7=_0xfb7fa7-0x1d2;const _0x3438ad=_0x3438();let _0x562da4=_0x3438ad[_0xfb7fa7];return _0x562da4;}class C extends a[_0x166946(0x1f8)]{[_0x166946(0x1d4)](){const _0x44bf4b=_0x166946;var _0x31d6cd,_0x57f03d;const _0x130554=this[_0x44bf4b(0x1dd)][_0x44bf4b(0x1f0)](n['LiveShareController']),_0x1a5bc0=(_0x31d6cd=this[_0x44bf4b(0x1f7)]())==null?void 0x0:_0x31d6cd[_0x44bf4b(0x1f9)]();if(!_0x1a5bc0)throw new Error(_0x44bf4b(0x1ef));const _0x1cfa69=_0x130554['getLiveShareCoordinatorSync'](_0x1a5bc0);return(_0x57f03d=_0x1cfa69==null?void 0x0:_0x1cfa69[_0x44bf4b(0x1e7)]())!=null?_0x57f03d:n[_0x44bf4b(0x1d3)][_0x44bf4b(0x1f3)];}[_0x166946(0x1ed)](){const _0xb28ca2=_0x166946;var _0x5621c8;const _0x298c0b=this['_injector'][_0xb28ca2(0x1f0)](n['LiveShareController']),_0x222e47=(_0x5621c8=this[_0xb28ca2(0x1f7)]())==null?void 0x0:_0x5621c8[_0xb28ca2(0x1f9)]();if(!_0x222e47)throw new Error('No\x20active\x20workbook\x20found.');const _0x4dfa1c=_0x298c0b[_0xb28ca2(0x1ec)](_0x222e47);if(!_0x4dfa1c)throw new Error(_0xb28ca2(0x1e6));_0x4dfa1c[_0xb28ca2(0x1ed)]();}[_0x166946(0x1e8)](){const _0x9599b6=_0x166946;var _0xd3716d;const _0x42511b=this['_injector'][_0x9599b6(0x1f0)](n['LiveShareController']),_0x4adb7c=(_0xd3716d=this[_0x9599b6(0x1f7)]())==null?void 0x0:_0xd3716d['getId']();if(!_0x4adb7c)throw new Error('No\x20active\x20workbook\x20found.');const _0x351df1=_0x42511b[_0x9599b6(0x1ec)](_0x4adb7c);if(!_0x351df1)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x351df1['stopFollowing']();}[_0x166946(0x1d7)](){const _0x325489=_0x166946;var _0x2c05ba;const _0x1e19a0=this['_injector'][_0x325489(0x1f0)](n[_0x325489(0x1f5)]),_0x40487b=(_0x2c05ba=this['getActiveWorkbook']())==null?void 0x0:_0x2c05ba[_0x325489(0x1f9)]();if(!_0x40487b)throw new Error(_0x325489(0x1ef));const _0x2e433c=_0x1e19a0[_0x325489(0x1ec)](_0x40487b);if(!_0x2e433c)throw new Error(_0x325489(0x1e6));_0x2e433c[_0x325489(0x1ee)]();}[_0x166946(0x1d2)](){const _0x260958=_0x166946;var _0x17d63a;const _0x25d6c5=this['_injector'][_0x260958(0x1f0)](n['LiveShareController']),_0x33fd66=(_0x17d63a=this[_0x260958(0x1f7)]())==null?void 0x0:_0x17d63a[_0x260958(0x1f9)]();if(!_0x33fd66)throw new Error(_0x260958(0x1ef));const _0x2ac45f=_0x25d6c5['getLiveShareCoordinatorSync'](_0x33fd66);if(!_0x2ac45f)throw new Error(_0x260958(0x1e6));_0x2ac45f[_0x260958(0x1d2)]();}}a[_0x166946(0x1f8)]['extend'](C);class L extends a['FEnum']{get['LiveShareStatusEnum'](){const _0x596520=_0x166946;return n[_0x596520(0x1d3)];}}a[_0x166946(0x1e0)][_0x166946(0x1da)](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x53d800=_0x1ed1;(function(_0x4b3ac7,_0x26894c){const _0x437a78=_0x1ed1,_0x4d1610=_0x4b3ac7();while(!![]){try{const _0x243759=parseInt(_0x437a78(0xc1))/0x1+parseInt(_0x437a78(0x136))/0x2*(-parseInt(_0x437a78(0x167))/0x3)+-parseInt(_0x437a78(0x17d))/0x4*(parseInt(_0x437a78(0xdf))/0x5)+-parseInt(_0x437a78(0x165))/0x6+parseInt(_0x437a78(0x11f))/0x7+parseInt(_0x437a78(0x13a))/0x8*(-parseInt(_0x437a78(0xd9))/0x9)+parseInt(_0x437a78(0xef))/0xa*(parseInt(_0x437a78(0x16c))/0xb);if(_0x243759===_0x26894c)break;else _0x4d1610['push'](_0x4d1610['shift']());}catch(_0x4491ae){_0x4d1610['push'](_0x4d1610['shift']());}}}(_0x149e,0x79814));var T=Object[_0x53d800(0x115)],U=(_0x5a5819,_0x2d26a8,_0x308be8)=>_0x2d26a8 in _0x5a5819?T(_0x5a5819,_0x2d26a8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x308be8}):_0x5a5819[_0x2d26a8]=_0x308be8,_=(_0x181179,_0x5b0744,_0x1416b0)=>U(_0x181179,typeof _0x5b0744!=_0x53d800(0xd4)?_0x5b0744+'':_0x5b0744,_0x1416b0);Object['defineProperty'](exports,Symbol[_0x53d800(0x117)],{'value':_0x53d800(0x13f)});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:_0x4e3a97,..._0xab5389}){const _0x320cd6=_0x53d800,{icon:_0x4152c5,id:_0x2f1996,className:_0x410df5,extend:_0x42ce78,..._0x11d15d}=_0xab5389,_0x41ceac=(_0x320cd6(0xb7)+_0x2f1996+'\x20'+(_0x410df5||''))['trim'](),_0x57f510=v[_0x320cd6(0x155)]('_'+H());return j(_0x4152c5,''+_0x2f1996,{'defIds':_0x4152c5[_0x320cd6(0xea)],'idSuffix':_0x57f510[_0x320cd6(0x149)]},{'ref':_0x4e3a97,'className':_0x41ceac,..._0x11d15d},_0x42ce78);}function j(_0x210e46,_0x3ef6c1,_0x446ce9,_0x45a350,_0x10c722){const _0x80b22a=_0x53d800;return v[_0x80b22a(0xce)](_0x210e46[_0x80b22a(0x143)],{'key':_0x3ef6c1,...y(_0x210e46,_0x446ce9,_0x10c722),..._0x45a350},(F(_0x210e46,_0x446ce9)['children']||[])[_0x80b22a(0x173)]((_0x4d1a97,_0x3947ab)=>j(_0x4d1a97,_0x3ef6c1+'-'+_0x210e46['tag']+'-'+_0x3947ab,_0x446ce9,void 0x0,_0x10c722)));}function y(_0x48436b,_0x3e3ea7,_0x26695e){const _0x2ac555=_0x53d800,_0x24ebd9={..._0x48436b['attrs']};_0x26695e!=null&&_0x26695e[_0x2ac555(0xe2)]&&_0x24ebd9[_0x2ac555(0x16f)]===_0x2ac555(0xe2)&&(_0x24ebd9[_0x2ac555(0x16f)]=_0x26695e[_0x2ac555(0xe2)]),_0x48436b['tag']===_0x2ac555(0x113)&&_0x24ebd9['id']&&(_0x24ebd9['id']=_0x24ebd9['id']+_0x3e3ea7['idSuffix']),Object[_0x2ac555(0x100)](_0x24ebd9)[_0x2ac555(0xee)](([_0x3fa298,_0x3ed6d4])=>{const _0x218b07=_0x2ac555;_0x3fa298===_0x218b07(0x113)&&typeof _0x3ed6d4==_0x218b07(0xf0)&&(_0x24ebd9[_0x3fa298]=_0x3ed6d4[_0x218b07(0x171)](/url\(#(.*)\)/,'url(#$1'+_0x3e3ea7['idSuffix']+')'));});const {defIds:_0x5d5015}=_0x3e3ea7;return!_0x5d5015||_0x5d5015['length']===0x0||(_0x48436b[_0x2ac555(0x143)]===_0x2ac555(0xe6)&&_0x24ebd9[_0x2ac555(0x141)]&&(_0x24ebd9[_0x2ac555(0x141)]=_0x24ebd9[_0x2ac555(0x141)]+_0x3e3ea7[_0x2ac555(0xbf)]),Object[_0x2ac555(0x100)](_0x24ebd9)[_0x2ac555(0xee)](([_0x238eef,_0x436b0c])=>{const _0x558a97=_0x2ac555;typeof _0x436b0c==_0x558a97(0xf0)&&(_0x24ebd9[_0x238eef]=_0x436b0c[_0x558a97(0x171)](/url\(#(.*)\)/,'url(#$1'+_0x3e3ea7[_0x558a97(0xbf)]+')'));})),_0x24ebd9;}function F(_0x4cabc7,_0x2a6120){const _0x2bd424=_0x53d800;var _0x246f31;const {defIds:_0x2c4865}=_0x2a6120;return!_0x2c4865||_0x2c4865[_0x2bd424(0x151)]===0x0?_0x4cabc7:_0x4cabc7['tag']==='defs'&&((_0x246f31=_0x4cabc7['children'])!=null&&_0x246f31[_0x2bd424(0x151)])?{..._0x4cabc7,'children':_0x4cabc7[_0x2bd424(0xf2)]['map'](_0xcf0f0e=>typeof _0xcf0f0e[_0x2bd424(0x104)]['id']=='string'&&_0x2c4865&&_0x2c4865[_0x2bd424(0x114)](_0xcf0f0e[_0x2bd424(0x104)]['id'])?{..._0xcf0f0e,'attrs':{..._0xcf0f0e[_0x2bd424(0x104)],'id':_0xcf0f0e[_0x2bd424(0x104)]['id']+_0x2a6120['idSuffix']}}:_0xcf0f0e)}:_0x4cabc7;}function _0x1ed1(_0x4a433d,_0x3623b6){_0x4a433d=_0x4a433d-0xaa;const _0x149e75=_0x149e();let _0x1ed1bc=_0x149e75[_0x4a433d];return _0x1ed1bc;}function H(){const _0xa5f5fe=_0x53d800;return Math['random']()['toString'](0x24)[_0xa5f5fe(0xba)](0x2,0x8);}function _0x149e(){const _0x445442=['idSuffix','LiveShareService','393688OeoOZJ','_handleOnline','displayName','sheet','status$','svg','dispose$','send','Inject','unitId','delete','_handleOffline','find','createElement','unsubscribe','registerInitialStateReporter','pluginName','OFFLINE','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','symbol','DisposableCollection','getUnitId','none','LIVESHARE_FETCH_OPERATIONS','45kSuhXY','shouldShareOperation','_status$','then','live-share.config','parseProtocolChangeset','15LkJhSW','DesktopLiveShareController','CollaborationEvent','colorChannel1','UNIVER_LIVE_SHARE_PLUGIN','reverse','clsx','use','UniverLiveSharePlugin','_collabSession','SessionStatus','defIds','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','following','event$','forEach','15524090GEyMsU','string','getStatus','children','You\x27re\x20presenting\x20the\x20document','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','CollaborationSessionService','set','forwardRef','evenodd','LiveShareCoordinator','IConfigService','_handleNewHost','LiveShare','currentColor','_startLiveShareCoordinator','LIVESHARE_NEW_HOST','entries','setConfig','presenter','dispose','attrs','LIVESHARE_OPERATION','executeCommand','toDisposable','_sharedOperations','getValue','_stopPresenting','useState','_liveShareService','clear','_unitID','presenting','createInstance','onCommandExecuted','_commandDisposable','mask','includes','defineProperty','FOLLOWING','toStringTag','ONLINE','_univerInstanceService','LiveShareIcon','registerDependencies','jsx','Stop\x20following','InsertSheetMutation','6649972AXSuEb','not-following','_stopFollowing','_reporters','getLiveShareCoordinator','IDLE','_init','UniverIcon','You\x27re\x20not\x20following\x20the\x20presenter','complete','LiveShareStatus','0\x200\x2017\x2017','_presenter','from','useDependency','getInitialStates','useObservable','Plugin','has','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','UniverInstanceType','_injector','getConfig','6BuTxbu','next','_handleNewChangeSets','requireSession','373096PWoNuW','SAME_OPERATION_SHARE_INTERVAL','_commandService','registerSharedOperation','getOwnPropertyDescriptor','Module','takeUntil','xlink:href','UNIVER_SHEET','tag','startFollowing','_collabSessionService','DependentOn','univer-size-4','offline','current','Disposable','_uiPartsService','PRESENTING','RxDisposable','http://www.w3.org/2000/svg','_beIdle','registerComponent','length','_fetchOperations','UniverCollaborationClientPlugin','onStarting','useRef','OPERATION','IUIPartsService','univer-mb-3\x20univer-w-full\x20univer-text-sm','LiveShareController','stopFollowing','disposeWithMe','button','params','_mountLiveShare','jsxs','path','pipe','stopPresenting','useEffect','_configService','5966430xYGZQc','BuiltInUIPart','990543aAWkvP','Dropdown','type','add','CommandType','11StwxqX','sessionStatus$','_handleTerminate','fill','getTypeOfUnitDisposed$','replace','tryStartPresenting','map','end','_startPresenting','UNIVER_UNKNOWN','asObservable','NEW_CHANGESETS','div','_config','throttleTime','subscribe','240368PUhUeq','_startFollowing','connectInjector','Button','IUniverInstanceService','HEADER_MENU','stringify','Fragment','get','1em','Injector','data','LIVESHARE_TERMINATE','parse','getMemberID','Subject','univerjs-icon\x20univerjs-icon-','LIVESHARE_REQUEST_HOST','_entities','substring','idle','_status','onRendered','override'];_0x149e=function(){return _0x445442;};return _0x149e();}x['displayName']=_0x53d800(0x126);const V={'tag':_0x53d800(0xc6),'attrs':{'xmlns':_0x53d800(0x14e),'fill':_0x53d800(0xd7),'viewBox':_0x53d800(0x12a),'width':'1em','height':_0x53d800(0xb0)},'children':[{'tag':_0x53d800(0x160),'attrs':{'fill':_0x53d800(0xfd),'d':_0x53d800(0xd3)}},{'tag':_0x53d800(0x160),'attrs':{'fill':'currentColor','d':_0x53d800(0x132),'fillRule':_0x53d800(0xf8),'clipRule':_0x53d800(0xf8)}}]},R=v[_0x53d800(0xf7)](function(_0x465246,_0x4d2cf3){const _0x24ecc3=_0x53d800;return v[_0x24ecc3(0xce)](x,Object['assign']({},_0x465246,{'id':'live-share-icon','ref':_0x4d2cf3,'icon':V}));});R[_0x53d800(0xc3)]=_0x53d800(0x11a);class E extends o[_0x53d800(0x14a)]{constructor(){const _0x4a280a=_0x53d800;super(...arguments),_(this,_0x4a280a(0x108),new Set()),_(this,_0x4a280a(0x122),new Set());}[_0x53d800(0x13d)](_0x575f57){const _0x3deb30=_0x53d800;return this[_0x3deb30(0x108)][_0x3deb30(0x16a)](_0x575f57),o['toDisposable'](()=>this[_0x3deb30(0x108)][_0x3deb30(0xcb)](_0x575f57));}[_0x53d800(0xd0)](_0x37cd95){const _0x4a42f2=_0x53d800;return this[_0x4a42f2(0x122)]['add'](_0x37cd95),o['toDisposable'](()=>this[_0x4a42f2(0x122)][_0x4a42f2(0xcb)](_0x37cd95));}[_0x53d800(0xda)](_0x21f4bb){const _0x5a51eb=_0x53d800;return this[_0x5a51eb(0x108)][_0x5a51eb(0x131)](_0x21f4bb);}[_0x53d800(0x12e)](_0x290206){const _0x3e1aca=_0x53d800;return Array[_0x3e1aca(0x12c)](this['_reporters'])[_0x3e1aca(0x173)](_0x441d81=>_0x441d81(_0x290206));}}var M=Object[_0x53d800(0x13e)],P=(_0x35998b,_0x57326d,_0x2a9de9,_0x103fbb)=>{const _0x257d2d=_0x53d800;for(var _0x51245b=_0x103fbb>0x1?void 0x0:_0x103fbb?M(_0x57326d,_0x2a9de9):_0x57326d,_0x50d714=_0x35998b[_0x257d2d(0x151)]-0x1,_0x1fbef5;_0x50d714>=0x0;_0x50d714--)(_0x1fbef5=_0x35998b[_0x50d714])&&(_0x51245b=_0x1fbef5(_0x51245b)||_0x51245b);return _0x51245b;},S=(_0x341870,_0x276fe3)=>(_0x11777c,_0x6ffe90)=>_0x276fe3(_0x11777c,_0x6ffe90,_0x341870);exports[_0x53d800(0x159)]=class extends o['RxDisposable']{constructor(_0xd651ec,_0x19811b,_0x4b32a7){const _0x1e7d1b=_0x53d800;super(),_(this,_0x1e7d1b(0xb9),new Map()),(this[_0x1e7d1b(0x119)]=_0xd651ec,this[_0x1e7d1b(0x134)]=_0x19811b,this[_0x1e7d1b(0x145)]=_0x4b32a7,this[_0x1e7d1b(0x125)]());}async['getLiveShareCoordinator'](_0x29b94f){const _0x2f32eb=_0x53d800;return this[_0x2f32eb(0xb9)][_0x2f32eb(0x131)](_0x29b94f)||await this[_0x2f32eb(0xfe)](_0x29b94f),this['_entities'][_0x2f32eb(0xaf)](_0x29b94f);}['getLiveShareCoordinatorSync'](_0x49793d){const _0x21f71c=_0x53d800;var _0x109f0a;return(_0x109f0a=this[_0x21f71c(0xb9)][_0x21f71c(0xaf)](_0x49793d))!=null?_0x109f0a:null;}[_0x53d800(0x125)](){const _0x464095=_0x53d800;this[_0x464095(0x119)]['getTypeOfUnitAdded$'](o['UniverInstanceType'][_0x464095(0x142)])[_0x464095(0x161)](I[_0x464095(0x140)](this[_0x464095(0xc7)]))[_0x464095(0x17c)](async _0x55c71f=>{const _0xeb16d=_0x464095,_0x35730a=_0x55c71f[_0xeb16d(0xd6)]();this[_0xeb16d(0xb9)][_0xeb16d(0x131)](_0x35730a)||this[_0xeb16d(0xfe)](_0x35730a);}),this[_0x464095(0x119)][_0x464095(0x170)](o[_0x464095(0x133)][_0x464095(0x142)])[_0x464095(0x161)](I['takeUntil'](this[_0x464095(0xc7)]))[_0x464095(0x17c)](_0x29a788=>{const _0x3fdce4=_0x464095,_0x532a1b=_0x29a788[_0x3fdce4(0xd6)](),_0x263db7=this[_0x3fdce4(0xb9)][_0x3fdce4(0xaf)](_0x532a1b);_0x263db7==null||_0x263db7['dispose']();});}async[_0x53d800(0xfe)](_0x5032bc){const _0x7bf5fb=_0x53d800,_0x1b7965=await this['_collabSessionService'][_0x7bf5fb(0x139)](_0x5032bc),_0x5efbba=this[_0x7bf5fb(0x134)][_0x7bf5fb(0x110)](exports[_0x7bf5fb(0xf9)],_0x5032bc,_0x1b7965);return _0x5efbba['init'](),this[_0x7bf5fb(0xb9)]['set'](_0x5032bc,_0x5efbba),_0x5efbba;}},exports['LiveShareController']=P([S(0x0,o[_0x53d800(0xab)]),S(0x1,o[_0x53d800(0xc9)](o[_0x53d800(0xb1)])),S(0x2,o[_0x53d800(0xc9)](b[_0x53d800(0xf5)]))],exports[_0x53d800(0x159)]);var u=(_0x35bad1=>(_0x35bad1[_0x53d800(0xd2)]='offline',_0x35bad1[_0x53d800(0x124)]='idle',_0x35bad1[_0x53d800(0x116)]='following',_0x35bad1['NOT_FOLLOWING']=_0x53d800(0x120),_0x35bad1['PRESENTING']=_0x53d800(0x10f),_0x35bad1))(u||{});const k=_0x53d800(0x13b),q=0xc8;exports[_0x53d800(0xf9)]=class extends o[_0x53d800(0x14d)]{constructor(_0x2e5643,_0x39ecd7,_0x21c875,_0x30888d,_0x252b9a){const _0x1a4bcf=_0x53d800;super(),_(this,'_status$',new O['BehaviorSubject'](_0x1a4bcf(0xbb))),_(this,'status$',this[_0x1a4bcf(0xdb)][_0x1a4bcf(0x177)]()),_(this,_0x1a4bcf(0x125),!0x1),_(this,'_commandDisposable',null),_(this,_0x1a4bcf(0x12b),null),(this['_unitID']=_0x2e5643,this[_0x1a4bcf(0xe8)]=_0x39ecd7,this[_0x1a4bcf(0x164)]=_0x21c875,this[_0x1a4bcf(0x10c)]=_0x30888d,this['_commandService']=_0x252b9a);}get[_0x53d800(0xbc)](){const _0x1b19c7=_0x53d800;return this['_status$'][_0x1b19c7(0x109)]();}[_0x53d800(0x103)](){const _0x2d20f4=_0x53d800;var _0x4f843b;(_0x4f843b=this['_commandDisposable'])==null||_0x4f843b[_0x2d20f4(0x103)](),this['_status$']['next']('idle'),this[_0x2d20f4(0xdb)][_0x2d20f4(0x128)]();}[_0x53d800(0xf1)](){return this['_status'];}['init'](){const _0x3be1b5=_0x53d800;this[_0x3be1b5(0x125)]||(this[_0x3be1b5(0x125)]=!0x0,this[_0x3be1b5(0xe8)][_0x3be1b5(0x16d)]['pipe'](I['takeUntil'](this['dispose$']))[_0x3be1b5(0x17c)](_0x5ca2b4=>{const _0xe9fbe=_0x3be1b5;switch(_0x5ca2b4){case b[_0xe9fbe(0xe9)][_0xe9fbe(0xd2)]:this['_handleOffline']();break;case b[_0xe9fbe(0xe9)][_0xe9fbe(0x118)]:this['_handleOnline']();break;}}),this[_0x3be1b5(0xe8)][_0x3be1b5(0xed)][_0x3be1b5(0x161)](I['takeUntil'](this[_0x3be1b5(0xc7)]))[_0x3be1b5(0x17c)](_0x657e21=>{const _0x301312=_0x3be1b5,{eventID:_0x28f76a}=_0x657e21;switch(_0x28f76a){case d[_0x301312(0xe1)][_0x301312(0xff)]:this[_0x301312(0xfb)](_0x657e21);break;case d[_0x301312(0xe1)][_0x301312(0x105)]:this['_handleOperation'](_0x657e21);break;case d[_0x301312(0xe1)][_0x301312(0xb3)]:this['_handleTerminate']();break;case d[_0x301312(0xe1)][_0x301312(0x178)]:this[_0x301312(0x138)](_0x657e21);break;}}));}[_0x53d800(0x172)](){const _0x12aaf3=_0x53d800;this[_0x12aaf3(0xe8)][_0x12aaf3(0xc8)]({'eventID':d[_0x12aaf3(0xe1)][_0x12aaf3(0xb8)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x12aaf3(0xb5)]()}},this['_unitID']);}['stopPresenting'](){const _0x3076cd=_0x53d800;this[_0x3076cd(0xbc)]===_0x3076cd(0x10f)&&(this['_status$'][_0x3076cd(0x137)](_0x3076cd(0xbb)),this[_0x3076cd(0xe8)][_0x3076cd(0xc8)]({'eventID':d[_0x3076cd(0xe1)][_0x3076cd(0xb3)],'data':{'unitID':this[_0x3076cd(0x10e)]}},this[_0x3076cd(0x10e)]));}['startFollowing'](){const _0x190ce7=_0x53d800;this['_status']===_0x190ce7(0x120)&&(this[_0x190ce7(0xdb)][_0x190ce7(0x137)](_0x190ce7(0xec)),this[_0x190ce7(0x17e)]());}[_0x53d800(0x15a)](){const _0x45e318=_0x53d800;this['_status']===_0x45e318(0xec)&&this[_0x45e318(0x121)]();}[_0x53d800(0xfb)](_0x26bb11){const _0x135aa1=_0x53d800,{presenter:_0x5f01a0}=_0x26bb11[_0x135aa1(0xb2)],_0x2f5c46=this[_0x135aa1(0xe8)][_0x135aa1(0xb5)]();this['_presenter']=_0x5f01a0,_0x5f01a0===_0x2f5c46?(this['_stopFollowing'](),this[_0x135aa1(0x175)]()):this[_0x135aa1(0xbc)]!==_0x135aa1(0x120)&&(this['_stopPresenting'](),this[_0x135aa1(0x17e)]());}[_0x53d800(0x152)](){const _0x55abb5=_0x53d800,_0x25180a={'eventID':d[_0x55abb5(0xe1)][_0x55abb5(0xd8)]};this['_collabSession'][_0x55abb5(0xc8)](_0x25180a,this['_unitID']);}[_0x53d800(0x16e)](){const _0x964ff7=_0x53d800;this['_presenter']=null,this[_0x964ff7(0xbc)]!==_0x964ff7(0x10f)&&this['_beIdle']();}['_handleNewChangeSets'](_0x87fca4){const _0x43478d=_0x53d800;if(this[_0x43478d(0xbc)]===_0x43478d(0xec)&&this['_presenter']===_0x87fca4[_0x43478d(0xb2)]['memberID']){const _0x919fb=d[_0x43478d(0xde)](_0x87fca4[_0x43478d(0xb2)])['mutations'][_0x43478d(0xe4)]()[_0x43478d(0xcd)](_0x3efdcb=>_0x3efdcb['id']===C[_0x43478d(0x11e)]['id']);if(_0x919fb){const _0x5657cc=_0x919fb[_0x43478d(0x15d)][_0x43478d(0xca)],_0x4c59ca=_0x919fb[_0x43478d(0x15d)][_0x43478d(0xc4)]['id'];setTimeout(()=>{const _0x23d4a3=_0x43478d;this[_0x23d4a3(0x13c)][_0x23d4a3(0x106)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x5657cc,'subUnitId':_0x4c59ca},{'fromCollab':!0x0});});}}}[_0x53d800(0x175)](){const _0x1f2962=_0x53d800;this[_0x1f2962(0xdb)][_0x1f2962(0x137)]('presenting');const _0x33edbc=new Map(),_0x46e4a1=this['_commandDisposable']=new o[(_0x1f2962(0xd5))]();_0x46e4a1[_0x1f2962(0x16a)](o[_0x1f2962(0x107)](()=>{const _0x5cac43=_0x1f2962;_0x33edbc[_0x5cac43(0xee)](_0x5798bb=>_0x5798bb[_0x5cac43(0x128)]()),_0x33edbc[_0x5cac43(0x10d)]();})),_0x46e4a1['add'](this[_0x1f2962(0x13c)][_0x1f2962(0x111)](_0x121cca=>{const _0x5e0f88=_0x1f2962;var _0x470805;if(_0x121cca[_0x5e0f88(0x169)]!==o[_0x5e0f88(0x16b)][_0x5e0f88(0x156)]||!this['_liveShareService'][_0x5e0f88(0xda)](_0x121cca['id']))return;const {id:_0x1d6e6e}=_0x121cca;let _0x1cf9e3;_0x33edbc[_0x5e0f88(0x131)](_0x1d6e6e)?_0x1cf9e3=_0x33edbc['get'](_0x1d6e6e):(_0x1cf9e3=new O[(_0x5e0f88(0xb6))](),_0x33edbc[_0x5e0f88(0xf6)](_0x1d6e6e,_0x1cf9e3),_0x1cf9e3['pipe'](I[_0x5e0f88(0x17b)]((_0x470805=this[_0x5e0f88(0x164)][_0x5e0f88(0x135)](k))!=null?_0x470805:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5e0f88(0x17c)](_0x5c206f=>{const _0x208594=_0x5e0f88;this['_collabSession'][_0x208594(0xc8)]({'eventID':d[_0x208594(0xe1)][_0x208594(0x105)],'data':{'unitID':this[_0x208594(0x10e)],'operations':{[_0x5c206f['id']]:{'id':_0x5c206f['id'],'params':JSON[_0x208594(0xad)](_0x5c206f[_0x208594(0x15d)])}}}},this['_unitID']);})),_0x1cf9e3['next'](_0x121cca);})),this[_0x1f2962(0x10c)]['getInitialStates'](this[_0x1f2962(0x10e)])[_0x1f2962(0xee)](_0x3f7f10=>this[_0x1f2962(0xe8)][_0x1f2962(0xc8)]({'eventID':d[_0x1f2962(0xe1)][_0x1f2962(0x105)],'data':{'unitID':this['_unitID'],'operations':{[_0x3f7f10['id']]:{'id':_0x3f7f10['id'],'params':JSON[_0x1f2962(0xad)](_0x3f7f10[_0x1f2962(0x15d)])}}}},this['_unitID']));}[_0x53d800(0x10a)](){const _0x5ea517=_0x53d800;var _0x5562f1;this[_0x5ea517(0xdb)][_0x5ea517(0x137)](_0x5ea517(0xbb)),(_0x5562f1=this[_0x5ea517(0x112)])==null||_0x5562f1[_0x5ea517(0x103)](),this['_commandDisposable']=null;}[_0x53d800(0x17e)](){const _0xaec8eb=_0x53d800;var _0x273af2;(_0x273af2=this[_0xaec8eb(0x112)])==null||_0x273af2[_0xaec8eb(0x103)](),this[_0xaec8eb(0xdb)]['next'](_0xaec8eb(0xec));}[_0x53d800(0x14f)](){const _0xdd5660=_0x53d800;var _0x4b56c5;this[_0xdd5660(0xdb)]['next'](_0xdd5660(0xbb)),(_0x4b56c5=this[_0xdd5660(0x112)])==null||_0x4b56c5[_0xdd5660(0x103)](),this['_commandDisposable']=null;}[_0x53d800(0x121)](){const _0x1a30e6=_0x53d800;var _0x19aeb9;this['_status$'][_0x1a30e6(0x137)](_0x1a30e6(0x120)),(_0x19aeb9=this[_0x1a30e6(0x112)])==null||_0x19aeb9['dispose']();}['_handleOperation'](_0x18ffc9){const _0x177719=_0x53d800;if([_0x177719(0x10f),'not-following',_0x177719(0x148)][_0x177719(0x114)](this['_status'])||!_0x18ffc9[_0x177719(0xb2)][_0x177719(0x102)]||_0x18ffc9[_0x177719(0xb2)][_0x177719(0x102)]===this[_0x177719(0xe8)]['getMemberID']())return;this['_status']===_0x177719(0xbb)&&this['_startFollowing']();const _0x2bb335=_0x18ffc9['data']['operations'];Object['values'](_0x2bb335)[_0x177719(0xee)](_0x151c2c=>{const _0x3f858=_0x177719;this[_0x3f858(0x13c)][_0x3f858(0x106)](_0x151c2c['id'],_0x151c2c[_0x3f858(0x15d)]?JSON[_0x3f858(0xb4)](_0x151c2c[_0x3f858(0x15d)]):null,{'fromCollab':!0x0});});}[_0x53d800(0xcc)](){const _0x574d22=_0x53d800;var _0x2b28c8;this['_status$'][_0x574d22(0x137)]('offline'),(_0x2b28c8=this[_0x574d22(0x112)])==null||_0x2b28c8[_0x574d22(0x103)]();}[_0x53d800(0xc2)](){const _0x58c7cc=_0x53d800;this[_0x58c7cc(0xdb)]['next']('idle'),this[_0x58c7cc(0x152)]();}},exports['LiveShareCoordinator']=P([S(0x2,o['IConfigService']),S(0x3,o[_0x53d800(0xc9)](E)),S(0x4,o['ICommandService'])],exports[_0x53d800(0xf9)]);function $(){const _0x2d6354=_0x53d800,_0x266fad=p[_0x2d6354(0x12d)](exports[_0x2d6354(0x159)]),_0x11abec=p[_0x2d6354(0x12d)](o[_0x2d6354(0xab)]),_0x2fcbe2=p[_0x2d6354(0x12f)](()=>_0x11abec['getCurrentTypeOfUnit$'](o[_0x2d6354(0x133)][_0x2d6354(0x142)]),void 0x0,!0x1,[]),[_0x51e734,_0x383cf1]=v[_0x2d6354(0x10b)](null),[_0x41986b,_0x4e22dc]=v['useState'](u[_0x2d6354(0x124)]),_0x4ee0df=v['useRef'](null);return v[_0x2d6354(0x163)](()=>(_0x2fcbe2&&_0x266fad[_0x2d6354(0x123)](_0x2fcbe2[_0x2d6354(0xd6)]())[_0x2d6354(0xdc)](_0x23253f=>{const _0x1e21f0=_0x2d6354;_0x383cf1(_0x23253f),_0x4ee0df[_0x1e21f0(0x149)]=_0x23253f[_0x1e21f0(0xc5)][_0x1e21f0(0x17c)](_0x2197b9=>{_0x4e22dc(_0x2197b9);});}),()=>{const _0x170163=_0x2d6354;var _0x56b6d8;(_0x56b6d8=_0x4ee0df[_0x170163(0x149)])==null||_0x56b6d8[_0x170163(0xcf)](),_0x4ee0df['current']=null;}),[_0x2fcbe2,_0x266fad]),_0x51e734?l[_0x2d6354(0x11c)](f[_0x2d6354(0x168)],{'align':_0x2d6354(0x174),'disabled':_0x41986b===u['OFFLINE'],'className':_0x2d6354(0xeb),'overlay':l[_0x2d6354(0x11c)](W,{'status':_0x41986b,'coordinator':_0x51e734}),'children':l[_0x2d6354(0x11c)](_0x2d6354(0x15c),{'className':f[_0x2d6354(0xe5)](_0x2d6354(0xf4),{'univer-cursor-not-allowed':_0x41986b===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x41986b!==u[_0x2d6354(0xd2)]}),'type':_0x2d6354(0x15c),'children':l[_0x2d6354(0x11c)](R,{'className':_0x2d6354(0x147)})})}):null;}function W(_0x4878d8){const _0x111648=_0x53d800,{status:_0x8bfba3,coordinator:_0x4750f7}=_0x4878d8;switch(_0x8bfba3){case u['IDLE']:return l[_0x111648(0x11c)](G,{'coordinator':_0x4750f7});case u[_0x111648(0x116)]:return l[_0x111648(0x11c)](B,{'coordinator':_0x4750f7});case u['NOT_FOLLOWING']:return l[_0x111648(0x11c)](Y,{'coordinator':_0x4750f7});case u['OFFLINE']:return l['jsx'](J,{});case u[_0x111648(0x14c)]:return l[_0x111648(0x11c)](Z,{'coordinator':_0x4750f7});default:return null;}}function G(_0x477312){const _0x9d4442=_0x53d800,{coordinator:_0x14467b}=_0x477312;return l['jsxs'](l['Fragment'],{'children':[l[_0x9d4442(0x11c)]('div',{'className':_0x9d4442(0x158),'children':'Present\x20this\x20document'}),l[_0x9d4442(0x11c)](f[_0x9d4442(0xaa)],{'onClick':()=>_0x14467b[_0x9d4442(0x172)](),'children':'Start'})]});}function B(_0x38c420){const _0x114eb8=_0x53d800,{coordinator:_0x5bd7ba}=_0x38c420;return l[_0x114eb8(0x15f)](l[_0x114eb8(0xae)],{'children':[l['jsx'](_0x114eb8(0x179),{'className':_0x114eb8(0x158),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x114eb8(0x11c)](f[_0x114eb8(0xaa)],{'onClick':()=>_0x5bd7ba['stopFollowing'](),'children':_0x114eb8(0x11d)})]});}function Y(_0x22f918){const _0x5dba0b=_0x53d800,{coordinator:_0xa09aae}=_0x22f918;return l['jsxs'](l['Fragment'],{'children':[l[_0x5dba0b(0x11c)](_0x5dba0b(0x179),{'className':_0x5dba0b(0x158),'children':_0x5dba0b(0x127)}),l[_0x5dba0b(0x11c)](f['Button'],{'variant':'text','onClick':()=>_0xa09aae[_0x5dba0b(0x144)](),'children':'Start\x20following'})]});}function Z(_0x20a04d){const _0x43ebe7=_0x53d800,{coordinator:_0x1a20dc}=_0x20a04d;return l['jsxs'](l[_0x43ebe7(0xae)],{'children':[l[_0x43ebe7(0x11c)](_0x43ebe7(0x179),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x43ebe7(0xf3)}),l[_0x43ebe7(0x11c)](f[_0x43ebe7(0xaa)],{'variant':'default','onClick':()=>_0x1a20dc[_0x43ebe7(0x162)](),'children':'Stop\x20presenting'})]});}function J(){const _0x32bb4e=_0x53d800;return l['jsx'](l[_0x32bb4e(0xae)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x53d800(0x13e)],z=(_0xed61c3,_0x50f675,_0x46422b,_0x4b1622)=>{const _0x4fa45a=_0x53d800;for(var _0x44ff7a=_0x4b1622>0x1?void 0x0:_0x4b1622?K(_0x50f675,_0x46422b):_0x50f675,_0x546e7e=_0xed61c3[_0x4fa45a(0x151)]-0x1,_0x3e4033;_0x546e7e>=0x0;_0x546e7e--)(_0x3e4033=_0xed61c3[_0x546e7e])&&(_0x44ff7a=_0x3e4033(_0x44ff7a)||_0x44ff7a);return _0x44ff7a;},L=(_0x215ce9,_0x1841e4)=>(_0x463021,_0x4a174e)=>_0x1841e4(_0x463021,_0x4a174e,_0x215ce9);exports['DesktopLiveShareController']=class extends o[_0x53d800(0x14a)]{constructor(_0x35eb73,_0x15efdc){const _0x142003=_0x53d800;super(),this[_0x142003(0x134)]=_0x35eb73,this['_uiPartsService']=_0x15efdc,this[_0x142003(0x15e)]();}[_0x53d800(0x15e)](){const _0x2cd32a=_0x53d800;this[_0x2cd32a(0x15b)](this[_0x2cd32a(0x14b)][_0x2cd32a(0x150)](p[_0x2cd32a(0x166)][_0x2cd32a(0xac)],()=>p[_0x2cd32a(0x17f)]($,this[_0x2cd32a(0x134)])));}},exports[_0x53d800(0xe0)]=z([L(0x0,o[_0x53d800(0xc9)](o[_0x53d800(0xb1)])),L(0x1,p[_0x53d800(0x157)])],exports[_0x53d800(0xe0)]);const Q=_0x53d800(0xdd),w={};var X=Object[_0x53d800(0x13e)],ee=(_0x3460d2,_0x1bad2f,_0x126d75,_0x2a25b5)=>{const _0xd3d99a=_0x53d800;for(var _0x26fe63=_0x2a25b5>0x1?void 0x0:_0x2a25b5?X(_0x1bad2f,_0x126d75):_0x1bad2f,_0x11627b=_0x3460d2[_0xd3d99a(0x151)]-0x1,_0x206296;_0x11627b>=0x0;_0x11627b--)(_0x206296=_0x3460d2[_0x11627b])&&(_0x26fe63=_0x206296(_0x26fe63)||_0x26fe63);return _0x26fe63;},te=(_0x4ed0c6,_0x10668c)=>(_0x37ac08,_0x4e2073)=>_0x10668c(_0x37ac08,_0x4e2073,_0x4ed0c6);let m=class extends o[_0x53d800(0x14a)]{constructor(_0x418e6a){const _0x1df2db=_0x53d800;super(),this[_0x1df2db(0x10c)]=_0x418e6a,this[_0x1df2db(0x125)]();}[_0x53d800(0x125)](){const _0x2d5463=_0x53d800;[D['SetZoomRatioOperation']['id'],D['SetScrollOperation']['id'],C['SetWorksheetActiveOperation']['id']][_0x2d5463(0xee)](_0x1be9ed=>{const _0x23dc29=_0x2d5463;this['disposeWithMe'](this['_liveShareService'][_0x23dc29(0x13d)](_0x1be9ed));});}};m=ee([te(0x0,o[_0x53d800(0xc9)](E))],m);var ie=Object['defineProperty'],se=Object[_0x53d800(0x13e)],ne=(_0x1d6dd1,_0x44b953,_0x5521ed)=>_0x44b953 in _0x1d6dd1?ie(_0x1d6dd1,_0x44b953,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5521ed}):_0x1d6dd1[_0x44b953]=_0x5521ed,re=(_0x15cd97,_0x4a73de,_0x4e6871,_0x1ee201)=>{for(var _0x35c6c8=_0x1ee201>0x1?void 0x0:_0x1ee201?se(_0x4a73de,_0x4e6871):_0x4a73de,_0x2cac12=_0x15cd97['length']-0x1,_0xbb60e9;_0x2cac12>=0x0;_0x2cac12--)(_0xbb60e9=_0x15cd97[_0x2cac12])&&(_0x35c6c8=_0xbb60e9(_0x35c6c8)||_0x35c6c8);return _0x35c6c8;},N=(_0x35f3be,_0x46a5b4)=>(_0x4e6d96,_0x45f216)=>_0x46a5b4(_0x4e6d96,_0x45f216,_0x35f3be),A=(_0x3ae76f,_0x2ff204,_0x74e9ae)=>ne(_0x3ae76f,typeof _0x2ff204!=_0x53d800(0xd4)?_0x2ff204+'':_0x2ff204,_0x74e9ae);const oe=_0x53d800(0xe3);exports[_0x53d800(0xe7)]=class extends o[_0x53d800(0x130)]{constructor(_0x35697f=w,_0x834be9,_0x364e88){const _0x1342d0=_0x53d800;super(),this[_0x1342d0(0x17a)]=_0x35697f,this[_0x1342d0(0x134)]=_0x834be9,this[_0x1342d0(0x164)]=_0x364e88;const {..._0x42f1c1}=o['merge']({},w,this[_0x1342d0(0x17a)]);this[_0x1342d0(0x164)][_0x1342d0(0x101)](Q,_0x42f1c1);}[_0x53d800(0x154)](){const _0x2ba5e9=_0x53d800;o[_0x2ba5e9(0x11b)](this[_0x2ba5e9(0x134)],o['mergeOverrideWithDependencies']([[E],[exports[_0x2ba5e9(0x159)]],[m],[exports[_0x2ba5e9(0xe0)]]],this[_0x2ba5e9(0x17a)][_0x2ba5e9(0xbe)])),o['touchDependencies'](this['_injector'],[[m]]);}[_0x53d800(0xbd)](){const _0x5c60d0=_0x53d800;o['touchDependencies'](this['_injector'],[[exports[_0x5c60d0(0xe0)]]]);}},A(exports[_0x53d800(0xe7)],'type',o['UniverInstanceType'][_0x53d800(0x176)]),A(exports[_0x53d800(0xe7)],_0x53d800(0xd1),oe),exports[_0x53d800(0xe7)]=re([o[_0x53d800(0x146)](b[_0x53d800(0x153)]),N(0x1,o[_0x53d800(0xc9)](o[_0x53d800(0xb1)])),N(0x2,o[_0x53d800(0xfa)])],exports[_0x53d800(0xe7)]),exports[_0x53d800(0xfc)]=$,exports[_0x53d800(0xc0)]=E,exports[_0x53d800(0x129)]=u;
|
|
1
|
+
'use strict';const _0x325fc6=_0x2704;(function(_0xb9d387,_0x40e7f4){const _0x4e6180=_0x2704,_0x21b4d7=_0xb9d387();while(!![]){try{const _0xccc9a5=parseInt(_0x4e6180(0x19c))/0x1+parseInt(_0x4e6180(0x1fd))/0x2+parseInt(_0x4e6180(0x1eb))/0x3*(parseInt(_0x4e6180(0x16b))/0x4)+-parseInt(_0x4e6180(0x199))/0x5*(parseInt(_0x4e6180(0x1d6))/0x6)+parseInt(_0x4e6180(0x1f8))/0x7*(-parseInt(_0x4e6180(0x220))/0x8)+parseInt(_0x4e6180(0x204))/0x9+-parseInt(_0x4e6180(0x1a6))/0xa*(parseInt(_0x4e6180(0x1e4))/0xb);if(_0xccc9a5===_0x40e7f4)break;else _0x21b4d7['push'](_0x21b4d7['shift']());}catch(_0x1085a0){_0x21b4d7['push'](_0x21b4d7['shift']());}}}(_0x16a2,0xb29d4));var T=Object[_0x325fc6(0x1d4)],U=(_0x2dc5cd,_0x46bf8d,_0x36d195)=>_0x46bf8d in _0x2dc5cd?T(_0x2dc5cd,_0x46bf8d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x36d195}):_0x2dc5cd[_0x46bf8d]=_0x36d195,_=(_0x230384,_0x3f71ab,_0x299554)=>U(_0x230384,typeof _0x3f71ab!=_0x325fc6(0x1fb)?_0x3f71ab+'':_0x3f71ab,_0x299554);Object[_0x325fc6(0x1d4)](exports,Symbol[_0x325fc6(0x1e0)],{'value':'Module'});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function _0x2704(_0x1272ec,_0x408240){_0x1272ec=_0x1272ec-0x160;const _0x16a2d0=_0x16a2();let _0x2704ff=_0x16a2d0[_0x1272ec];return _0x2704ff;}function x({ref:_0x4b4e19,..._0x1b68a8}){const _0x154aa9=_0x325fc6,{icon:_0x1a4400,id:_0x2d1bdc,className:_0x917c7,extend:_0x72c047,..._0x167dde}=_0x1b68a8,_0x2e6850=(_0x154aa9(0x1b7)+_0x2d1bdc+'\x20'+(_0x917c7||''))[_0x154aa9(0x1ef)](),_0x401512=v[_0x154aa9(0x19f)]('_'+H());return j(_0x1a4400,''+_0x2d1bdc,{'defIds':_0x1a4400[_0x154aa9(0x1c9)],'idSuffix':_0x401512[_0x154aa9(0x183)]},{'ref':_0x4b4e19,'className':_0x2e6850,..._0x167dde},_0x72c047);}function j(_0x3093ce,_0x5b43ec,_0x22ca4b,_0x59e527,_0x4c01a1){const _0x5d55e6=_0x325fc6;return v[_0x5d55e6(0x1e9)](_0x3093ce[_0x5d55e6(0x186)],{'key':_0x5b43ec,...y(_0x3093ce,_0x22ca4b,_0x4c01a1),..._0x59e527},(F(_0x3093ce,_0x22ca4b)[_0x5d55e6(0x227)]||[])['map']((_0x2a5262,_0x3ef249)=>j(_0x2a5262,_0x5b43ec+'-'+_0x3093ce[_0x5d55e6(0x186)]+'-'+_0x3ef249,_0x22ca4b,void 0x0,_0x4c01a1)));}function y(_0x2a4fdb,_0x47bfbc,_0x924f08){const _0x14008e=_0x325fc6,_0x5e4132={..._0x2a4fdb[_0x14008e(0x1ed)]};_0x924f08!=null&&_0x924f08['colorChannel1']&&_0x5e4132[_0x14008e(0x228)]===_0x14008e(0x1b2)&&(_0x5e4132[_0x14008e(0x228)]=_0x924f08['colorChannel1']),_0x2a4fdb[_0x14008e(0x186)]===_0x14008e(0x18f)&&_0x5e4132['id']&&(_0x5e4132['id']=_0x5e4132['id']+_0x47bfbc['idSuffix']),Object['entries'](_0x5e4132)[_0x14008e(0x1c6)](([_0x33cfca,_0x496a86])=>{const _0xc1d885=_0x14008e;_0x33cfca==='mask'&&typeof _0x496a86==_0xc1d885(0x20f)&&(_0x5e4132[_0x33cfca]=_0x496a86[_0xc1d885(0x1cc)](/url\(#(.*)\)/,_0xc1d885(0x161)+_0x47bfbc[_0xc1d885(0x180)]+')'));});const {defIds:_0x1807e3}=_0x47bfbc;return!_0x1807e3||_0x1807e3['length']===0x0||(_0x2a4fdb[_0x14008e(0x186)]===_0x14008e(0x1c0)&&_0x5e4132[_0x14008e(0x1d7)]&&(_0x5e4132['xlink:href']=_0x5e4132[_0x14008e(0x1d7)]+_0x47bfbc[_0x14008e(0x180)]),Object[_0x14008e(0x19a)](_0x5e4132)[_0x14008e(0x1c6)](([_0x3e8c63,_0x296aa8])=>{const _0x37401a=_0x14008e;typeof _0x296aa8==_0x37401a(0x20f)&&(_0x5e4132[_0x3e8c63]=_0x296aa8[_0x37401a(0x1cc)](/url\(#(.*)\)/,'url(#$1'+_0x47bfbc[_0x37401a(0x180)]+')'));})),_0x5e4132;}function F(_0x105f8f,_0x521665){const _0x45ba36=_0x325fc6;var _0x472961;const {defIds:_0xe452bb}=_0x521665;return!_0xe452bb||_0xe452bb[_0x45ba36(0x1da)]===0x0?_0x105f8f:_0x105f8f[_0x45ba36(0x186)]===_0x45ba36(0x1a4)&&((_0x472961=_0x105f8f[_0x45ba36(0x227)])!=null&&_0x472961[_0x45ba36(0x1da)])?{..._0x105f8f,'children':_0x105f8f[_0x45ba36(0x227)][_0x45ba36(0x17d)](_0x4c7816=>typeof _0x4c7816[_0x45ba36(0x1ed)]['id']==_0x45ba36(0x20f)&&_0xe452bb&&_0xe452bb['includes'](_0x4c7816[_0x45ba36(0x1ed)]['id'])?{..._0x4c7816,'attrs':{..._0x4c7816[_0x45ba36(0x1ed)],'id':_0x4c7816[_0x45ba36(0x1ed)]['id']+_0x521665[_0x45ba36(0x180)]}}:_0x4c7816)}:_0x105f8f;}function H(){const _0x19754d=_0x325fc6;return Math[_0x19754d(0x167)]()[_0x19754d(0x212)](0x24)[_0x19754d(0x182)](0x2,0x8);}x[_0x325fc6(0x192)]=_0x325fc6(0x16a);const V={'tag':_0x325fc6(0x1e8),'attrs':{'xmlns':_0x325fc6(0x1ca),'fill':_0x325fc6(0x176),'viewBox':_0x325fc6(0x16f),'width':_0x325fc6(0x18e),'height':_0x325fc6(0x18e)},'children':[{'tag':_0x325fc6(0x1e7),'attrs':{'fill':_0x325fc6(0x17a),'d':_0x325fc6(0x209)}},{'tag':_0x325fc6(0x1e7),'attrs':{'fill':_0x325fc6(0x17a),'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':_0x325fc6(0x1ad),'clipRule':_0x325fc6(0x1ad)}}]},R=v[_0x325fc6(0x170)](function(_0x4c1584,_0x4e6fc9){const _0x3745fc=_0x325fc6;return v[_0x3745fc(0x1e9)](x,Object[_0x3745fc(0x216)]({},_0x4c1584,{'id':'live-share-icon','ref':_0x4e6fc9,'icon':V}));});R[_0x325fc6(0x192)]=_0x325fc6(0x163);class E extends o['Disposable']{constructor(){const _0x1a00a6=_0x325fc6;super(...arguments),_(this,_0x1a00a6(0x21d),new Set()),_(this,_0x1a00a6(0x1d0),new Set());}['registerSharedOperation'](_0x535ca8){const _0x34b1c2=_0x325fc6;return this['_sharedOperations']['add'](_0x535ca8),o[_0x34b1c2(0x202)](()=>this['_sharedOperations']['delete'](_0x535ca8));}['registerInitialStateReporter'](_0x54b0ab){const _0x14baf0=_0x325fc6;return this['_reporters'][_0x14baf0(0x1b6)](_0x54b0ab),o[_0x14baf0(0x202)](()=>this[_0x14baf0(0x1d0)]['delete'](_0x54b0ab));}[_0x325fc6(0x21f)](_0x587c19){const _0x311d1b=_0x325fc6;return this[_0x311d1b(0x21d)][_0x311d1b(0x185)](_0x587c19);}[_0x325fc6(0x223)](_0xb2bfbe){const _0x46a13d=_0x325fc6;return Array['from'](this[_0x46a13d(0x1d0)])['map'](_0x2a18b4=>_0x2a18b4(_0xb2bfbe));}}var M=Object[_0x325fc6(0x203)],P=(_0x378624,_0x42e6f0,_0x46e0b4,_0x5e1fbc)=>{const _0x5b8d8d=_0x325fc6;for(var _0x1b4b32=_0x5e1fbc>0x1?void 0x0:_0x5e1fbc?M(_0x42e6f0,_0x46e0b4):_0x42e6f0,_0x2236cf=_0x378624[_0x5b8d8d(0x1da)]-0x1,_0x23d6e7;_0x2236cf>=0x0;_0x2236cf--)(_0x23d6e7=_0x378624[_0x2236cf])&&(_0x1b4b32=_0x23d6e7(_0x1b4b32)||_0x1b4b32);return _0x1b4b32;},S=(_0x22e12f,_0x20bf22)=>(_0x479c2f,_0x2cfc8d)=>_0x20bf22(_0x479c2f,_0x2cfc8d,_0x22e12f);exports[_0x325fc6(0x1cb)]=class extends o['RxDisposable']{constructor(_0x5259b9,_0x324f8b,_0x1bddcc){const _0x16b81a=_0x325fc6;super(),_(this,_0x16b81a(0x1fe),new Map()),(this[_0x16b81a(0x1ec)]=_0x5259b9,this[_0x16b81a(0x1ba)]=_0x324f8b,this['_collabSessionService']=_0x1bddcc,this[_0x16b81a(0x211)]());}async[_0x325fc6(0x1ce)](_0x2ed5c1){const _0x22852c=_0x325fc6;return this[_0x22852c(0x1fe)][_0x22852c(0x185)](_0x2ed5c1)||await this[_0x22852c(0x177)](_0x2ed5c1),this[_0x22852c(0x1fe)]['get'](_0x2ed5c1);}[_0x325fc6(0x19b)](_0x25ed0f){const _0x2b5a07=_0x325fc6;var _0x4b7eb3;return(_0x4b7eb3=this[_0x2b5a07(0x1fe)][_0x2b5a07(0x201)](_0x25ed0f))!=null?_0x4b7eb3:null;}[_0x325fc6(0x211)](){const _0x287849=_0x325fc6;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x287849(0x207)][_0x287849(0x1a1)])[_0x287849(0x214)](I[_0x287849(0x1b9)](this[_0x287849(0x1ab)]))[_0x287849(0x171)](async _0x47a9a8=>{const _0x39c34f=_0x287849,_0x1fa910=_0x47a9a8[_0x39c34f(0x17b)]();this[_0x39c34f(0x1fe)][_0x39c34f(0x185)](_0x1fa910)||this[_0x39c34f(0x177)](_0x1fa910);}),this[_0x287849(0x1ec)][_0x287849(0x17e)](o[_0x287849(0x207)][_0x287849(0x1a1)])[_0x287849(0x214)](I[_0x287849(0x1b9)](this[_0x287849(0x1ab)]))[_0x287849(0x171)](_0xda1e9d=>{const _0x551c48=_0x287849,_0x1da041=_0xda1e9d[_0x551c48(0x17b)](),_0x429537=this[_0x551c48(0x1fe)]['get'](_0x1da041);_0x429537==null||_0x429537[_0x551c48(0x1d2)]();});}async['_startLiveShareCoordinator'](_0x3d6b1b){const _0x1fbcb9=_0x325fc6,_0x2b7cee=await this[_0x1fbcb9(0x1f6)][_0x1fbcb9(0x18b)](_0x3d6b1b),_0x524314=this[_0x1fbcb9(0x1ba)][_0x1fbcb9(0x1fa)](exports['LiveShareCoordinator'],_0x3d6b1b,_0x2b7cee);return _0x524314['init'](),this[_0x1fbcb9(0x1fe)][_0x1fbcb9(0x1ff)](_0x3d6b1b,_0x524314),_0x524314;}},exports[_0x325fc6(0x1cb)]=P([S(0x0,o[_0x325fc6(0x1b5)]),S(0x1,o['Inject'](o[_0x325fc6(0x206)])),S(0x2,o[_0x325fc6(0x218)](b[_0x325fc6(0x22c)]))],exports[_0x325fc6(0x1cb)]);var u=(_0x32c39d=>(_0x32c39d['OFFLINE']=_0x325fc6(0x225),_0x32c39d['IDLE']=_0x325fc6(0x22b),_0x32c39d[_0x325fc6(0x1bb)]='following',_0x32c39d[_0x325fc6(0x1e3)]='not-following',_0x32c39d[_0x325fc6(0x1bd)]=_0x325fc6(0x1c3),_0x32c39d))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports[_0x325fc6(0x1c1)]=class extends o[_0x325fc6(0x210)]{constructor(_0x4da3a9,_0x9fc0fe,_0x1332ce,_0x1a387b,_0x1161e9){const _0x1e9007=_0x325fc6;super(),_(this,_0x1e9007(0x1fc),new O[(_0x1e9007(0x1a8))](_0x1e9007(0x22b))),_(this,_0x1e9007(0x22a),this['_status$']['asObservable']()),_(this,_0x1e9007(0x211),!0x1),_(this,_0x1e9007(0x196),null),_(this,'_presenter',null),(this[_0x1e9007(0x1db)]=_0x4da3a9,this[_0x1e9007(0x172)]=_0x9fc0fe,this[_0x1e9007(0x1ac)]=_0x1332ce,this[_0x1e9007(0x1b3)]=_0x1a387b,this[_0x1e9007(0x1e2)]=_0x1161e9);}get[_0x325fc6(0x169)](){const _0x4010c5=_0x325fc6;return this[_0x4010c5(0x1fc)][_0x4010c5(0x19e)]();}[_0x325fc6(0x1d2)](){const _0x2edd3e=_0x325fc6;var _0x188dbd;(_0x188dbd=this[_0x2edd3e(0x196)])==null||_0x188dbd['dispose'](),this[_0x2edd3e(0x1fc)]['next'](_0x2edd3e(0x22b)),this['_status$']['complete']();}['getStatus'](){const _0x4fe67a=_0x325fc6;return this[_0x4fe67a(0x169)];}['init'](){const _0x33d8b6=_0x325fc6;this[_0x33d8b6(0x211)]||(this[_0x33d8b6(0x211)]=!0x0,this[_0x33d8b6(0x172)][_0x33d8b6(0x1a7)]['pipe'](I[_0x33d8b6(0x1b9)](this[_0x33d8b6(0x1ab)]))[_0x33d8b6(0x171)](_0x4aafd5=>{const _0x340cb2=_0x33d8b6;switch(_0x4aafd5){case b[_0x340cb2(0x1d3)][_0x340cb2(0x17f)]:this['_handleOffline']();break;case b[_0x340cb2(0x1d3)][_0x340cb2(0x1d9)]:this['_handleOnline']();break;}}),this[_0x33d8b6(0x172)]['event$'][_0x33d8b6(0x214)](I[_0x33d8b6(0x1b9)](this[_0x33d8b6(0x1ab)]))[_0x33d8b6(0x171)](_0x14a5ac=>{const _0x4a7a6a=_0x33d8b6,{eventID:_0x10f72d}=_0x14a5ac;switch(_0x10f72d){case d[_0x4a7a6a(0x164)][_0x4a7a6a(0x1ae)]:this[_0x4a7a6a(0x188)](_0x14a5ac);break;case d[_0x4a7a6a(0x164)][_0x4a7a6a(0x1e6)]:this[_0x4a7a6a(0x1b0)](_0x14a5ac);break;case d[_0x4a7a6a(0x164)][_0x4a7a6a(0x195)]:this[_0x4a7a6a(0x1f7)]();break;case d[_0x4a7a6a(0x164)][_0x4a7a6a(0x1cf)]:this[_0x4a7a6a(0x1a0)](_0x14a5ac);break;}}));}[_0x325fc6(0x16e)](){const _0x239c0a=_0x325fc6;this[_0x239c0a(0x172)][_0x239c0a(0x1c8)]({'eventID':d[_0x239c0a(0x164)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x239c0a(0x1db)],'userID':this['_collabSession'][_0x239c0a(0x1f9)]()}},this[_0x239c0a(0x1db)]);}[_0x325fc6(0x1f3)](){const _0x4d8011=_0x325fc6;this[_0x4d8011(0x169)]===_0x4d8011(0x1c3)&&(this['_status$']['next'](_0x4d8011(0x22b)),this[_0x4d8011(0x172)][_0x4d8011(0x1c8)]({'eventID':d[_0x4d8011(0x164)][_0x4d8011(0x195)],'data':{'unitID':this[_0x4d8011(0x1db)]}},this[_0x4d8011(0x1db)]));}[_0x325fc6(0x1f2)](){const _0x196c4d=_0x325fc6;this['_status']===_0x196c4d(0x160)&&(this[_0x196c4d(0x1fc)][_0x196c4d(0x1aa)](_0x196c4d(0x194)),this[_0x196c4d(0x1c2)]());}[_0x325fc6(0x168)](){const _0x5bbdba=_0x325fc6;this[_0x5bbdba(0x169)]===_0x5bbdba(0x194)&&this[_0x5bbdba(0x215)]();}[_0x325fc6(0x188)](_0x26cfd8){const _0x1cf1c3=_0x325fc6,{presenter:_0x59627d}=_0x26cfd8[_0x1cf1c3(0x1f1)],_0x703a57=this[_0x1cf1c3(0x172)][_0x1cf1c3(0x1f9)]();this[_0x1cf1c3(0x187)]=_0x59627d,_0x59627d===_0x703a57?(this[_0x1cf1c3(0x215)](),this[_0x1cf1c3(0x21c)]()):this['_status']!==_0x1cf1c3(0x160)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x325fc6(0x1be)](){const _0x485718=_0x325fc6,_0x38ca0b={'eventID':d[_0x485718(0x164)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x485718(0x172)]['send'](_0x38ca0b,this['_unitID']);}['_handleTerminate'](){const _0x34dc9f=_0x325fc6;this[_0x34dc9f(0x187)]=null,this[_0x34dc9f(0x169)]!=='presenting'&&this['_beIdle']();}[_0x325fc6(0x1a0)](_0x39b237){const _0xf1f63a=_0x325fc6;if(this[_0xf1f63a(0x169)]===_0xf1f63a(0x194)&&this[_0xf1f63a(0x187)]===_0x39b237[_0xf1f63a(0x1f1)]['memberID']){const _0x3e42a1=d[_0xf1f63a(0x1a2)](_0x39b237[_0xf1f63a(0x1f1)])[_0xf1f63a(0x18d)][_0xf1f63a(0x1d5)]()[_0xf1f63a(0x197)](_0x3d75b4=>_0x3d75b4['id']===C[_0xf1f63a(0x193)]['id']);if(_0x3e42a1){const _0x46d441=_0x3e42a1[_0xf1f63a(0x166)][_0xf1f63a(0x1a3)],_0x4738ed=_0x3e42a1[_0xf1f63a(0x166)]['sheet']['id'];setTimeout(()=>{const _0x3bd665=_0xf1f63a;this[_0x3bd665(0x1e2)][_0x3bd665(0x1f5)](C[_0x3bd665(0x208)]['id'],{'unitId':_0x46d441,'subUnitId':_0x4738ed},{'fromCollab':!0x0});});}}}[_0x325fc6(0x21c)](){const _0x39fa46=_0x325fc6;this[_0x39fa46(0x1fc)][_0x39fa46(0x1aa)](_0x39fa46(0x1c3));const _0x218e3b=new Map(),_0x187d69=this['_commandDisposable']=new o['DisposableCollection']();_0x187d69[_0x39fa46(0x1b6)](o[_0x39fa46(0x202)](()=>{const _0x4d87c4=_0x39fa46;_0x218e3b['forEach'](_0x596200=>_0x596200['complete']()),_0x218e3b[_0x4d87c4(0x175)]();})),_0x187d69[_0x39fa46(0x1b6)](this[_0x39fa46(0x1e2)][_0x39fa46(0x18c)](_0xb57961=>{const _0x25df51=_0x39fa46;var _0x18a9a6;if(_0xb57961[_0x25df51(0x1de)]!==o['CommandType'][_0x25df51(0x198)]||!this[_0x25df51(0x1b3)][_0x25df51(0x21f)](_0xb57961['id']))return;const {id:_0x59a417}=_0xb57961;let _0x3994a9;_0x218e3b[_0x25df51(0x185)](_0x59a417)?_0x3994a9=_0x218e3b[_0x25df51(0x201)](_0x59a417):(_0x3994a9=new O['Subject'](),_0x218e3b[_0x25df51(0x1ff)](_0x59a417,_0x3994a9),_0x3994a9[_0x25df51(0x214)](I[_0x25df51(0x222)]((_0x18a9a6=this[_0x25df51(0x1ac)]['getConfig'](k))!=null?_0x18a9a6:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x25df51(0x171)](_0x59e940=>{const _0x4ccecd=_0x25df51;this['_collabSession'][_0x4ccecd(0x1c8)]({'eventID':d[_0x4ccecd(0x164)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4ccecd(0x1db)],'operations':{[_0x59e940['id']]:{'id':_0x59e940['id'],'params':JSON[_0x4ccecd(0x18a)](_0x59e940[_0x4ccecd(0x166)])}}}},this['_unitID']);})),_0x3994a9[_0x25df51(0x1aa)](_0xb57961);})),this[_0x39fa46(0x1b3)][_0x39fa46(0x223)](this[_0x39fa46(0x1db)])[_0x39fa46(0x1c6)](_0x473c26=>this['_collabSession'][_0x39fa46(0x1c8)]({'eventID':d[_0x39fa46(0x164)][_0x39fa46(0x1e6)],'data':{'unitID':this['_unitID'],'operations':{[_0x473c26['id']]:{'id':_0x473c26['id'],'params':JSON['stringify'](_0x473c26[_0x39fa46(0x166)])}}}},this[_0x39fa46(0x1db)]));}['_stopPresenting'](){const _0x3141e4=_0x325fc6;var _0x677219;this[_0x3141e4(0x1fc)]['next'](_0x3141e4(0x22b)),(_0x677219=this['_commandDisposable'])==null||_0x677219['dispose'](),this[_0x3141e4(0x196)]=null;}[_0x325fc6(0x1c2)](){const _0x301a0b=_0x325fc6;var _0x2a340a;(_0x2a340a=this['_commandDisposable'])==null||_0x2a340a[_0x301a0b(0x1d2)](),this[_0x301a0b(0x1fc)][_0x301a0b(0x1aa)](_0x301a0b(0x194));}[_0x325fc6(0x1cd)](){const _0x198c3f=_0x325fc6;var _0x1a8f85;this[_0x198c3f(0x1fc)]['next']('idle'),(_0x1a8f85=this['_commandDisposable'])==null||_0x1a8f85[_0x198c3f(0x1d2)](),this[_0x198c3f(0x196)]=null;}[_0x325fc6(0x215)](){const _0x24e36f=_0x325fc6;var _0x2ff9c9;this[_0x24e36f(0x1fc)][_0x24e36f(0x1aa)](_0x24e36f(0x160)),(_0x2ff9c9=this[_0x24e36f(0x196)])==null||_0x2ff9c9[_0x24e36f(0x1d2)]();}[_0x325fc6(0x1b0)](_0x1c6f35){const _0x140363=_0x325fc6;if(['presenting',_0x140363(0x160),_0x140363(0x225)]['includes'](this[_0x140363(0x169)])||!_0x1c6f35[_0x140363(0x1f1)][_0x140363(0x1a5)]||_0x1c6f35['data'][_0x140363(0x1a5)]===this[_0x140363(0x172)][_0x140363(0x1f9)]())return;this[_0x140363(0x169)]===_0x140363(0x22b)&&this[_0x140363(0x1c2)]();const _0x504fbb=_0x1c6f35[_0x140363(0x1f1)][_0x140363(0x21e)];Object[_0x140363(0x174)](_0x504fbb)['forEach'](_0x32bf97=>{const _0x4e769a=_0x140363;this['_commandService'][_0x4e769a(0x1f5)](_0x32bf97['id'],_0x32bf97[_0x4e769a(0x166)]?JSON['parse'](_0x32bf97[_0x4e769a(0x166)]):null,{'fromCollab':!0x0});});}[_0x325fc6(0x1c7)](){const _0x399ac5=_0x325fc6;var _0x41763;this['_status$'][_0x399ac5(0x1aa)](_0x399ac5(0x225)),(_0x41763=this[_0x399ac5(0x196)])==null||_0x41763[_0x399ac5(0x1d2)]();}['_handleOnline'](){const _0x42d5f4=_0x325fc6;this[_0x42d5f4(0x1fc)][_0x42d5f4(0x1aa)](_0x42d5f4(0x22b)),this[_0x42d5f4(0x1be)]();}},exports[_0x325fc6(0x1c1)]=P([S(0x2,o['IConfigService']),S(0x3,o[_0x325fc6(0x218)](E)),S(0x4,o[_0x325fc6(0x219)])],exports['LiveShareCoordinator']);function $(){const _0x5785b6=_0x325fc6,_0x54763e=p[_0x5785b6(0x1ee)](exports[_0x5785b6(0x1cb)]),_0x374102=p[_0x5785b6(0x1ee)](o[_0x5785b6(0x1b5)]),_0x43c170=p[_0x5785b6(0x189)](()=>_0x374102[_0x5785b6(0x1bf)](o[_0x5785b6(0x207)][_0x5785b6(0x1a1)]),void 0x0,!0x1,[]),[_0x2b2362,_0x4814f5]=v['useState'](null),[_0x2383e9,_0x41ba7a]=v[_0x5785b6(0x1e5)](u[_0x5785b6(0x1ea)]),_0x318384=v[_0x5785b6(0x19f)](null);return v['useEffect'](()=>(_0x43c170&&_0x54763e[_0x5785b6(0x1ce)](_0x43c170[_0x5785b6(0x17b)]())[_0x5785b6(0x173)](_0x547fb4=>{const _0x4e6cbc=_0x5785b6;_0x4814f5(_0x547fb4),_0x318384[_0x4e6cbc(0x183)]=_0x547fb4[_0x4e6cbc(0x22a)]['subscribe'](_0x2ce193=>{_0x41ba7a(_0x2ce193);});}),()=>{const _0x39385d=_0x5785b6;var _0x1e839f;(_0x1e839f=_0x318384[_0x39385d(0x183)])==null||_0x1e839f['unsubscribe'](),_0x318384[_0x39385d(0x183)]=null;}),[_0x43c170,_0x54763e]),_0x2b2362?l[_0x5785b6(0x179)](f[_0x5785b6(0x224)],{'align':_0x5785b6(0x1af),'disabled':_0x2383e9===u[_0x5785b6(0x17f)],'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[_0x5785b6(0x179)](W,{'status':_0x2383e9,'coordinator':_0x2b2362}),'children':l['jsx']('button',{'className':f['clsx'](_0x5785b6(0x1d8),{'univer-cursor-not-allowed':_0x2383e9===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2383e9!==u[_0x5785b6(0x17f)]}),'type':'button','children':l[_0x5785b6(0x179)](R,{'className':_0x5785b6(0x20b)})})}):null;}function W(_0x298f70){const _0xf39574=_0x325fc6,{status:_0x480251,coordinator:_0x1db805}=_0x298f70;switch(_0x480251){case u[_0xf39574(0x1ea)]:return l[_0xf39574(0x179)](G,{'coordinator':_0x1db805});case u[_0xf39574(0x1bb)]:return l[_0xf39574(0x179)](B,{'coordinator':_0x1db805});case u[_0xf39574(0x1e3)]:return l[_0xf39574(0x179)](Y,{'coordinator':_0x1db805});case u[_0xf39574(0x17f)]:return l[_0xf39574(0x179)](J,{});case u[_0xf39574(0x1bd)]:return l['jsx'](Z,{'coordinator':_0x1db805});default:return null;}}function G(_0x5f2165){const _0x47beb9=_0x325fc6,{coordinator:_0x4ba123}=_0x5f2165;return l[_0x47beb9(0x1f0)](l[_0x47beb9(0x1a9)],{'children':[l['jsx'](_0x47beb9(0x213),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x47beb9(0x1bc)}),l[_0x47beb9(0x179)](f[_0x47beb9(0x1dc)],{'onClick':()=>_0x4ba123[_0x47beb9(0x16e)](),'children':_0x47beb9(0x191)})]});}function B(_0x532aa6){const _0xadf7a5=_0x325fc6,{coordinator:_0x2301d8}=_0x532aa6;return l[_0xadf7a5(0x1f0)](l[_0xadf7a5(0x1a9)],{'children':[l[_0xadf7a5(0x179)](_0xadf7a5(0x213),{'className':_0xadf7a5(0x1d1),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0xadf7a5(0x179)](f['Button'],{'onClick':()=>_0x2301d8['stopFollowing'](),'children':_0xadf7a5(0x181)})]});}function _0x16a2(){const _0x17b50f=['378044DlGbfD','touchDependencies','live-share.config','tryStartPresenting','0\x200\x2017\x2017','forwardRef','subscribe','_collabSession','then','values','clear','none','_startLiveShareCoordinator','Disposable','jsx','currentColor','getUnitId','LiveShareStatus','map','getTypeOfUnitDisposed$','OFFLINE','idSuffix','Stop\x20following','substring','current','Start\x20following','has','tag','_presenter','_handleNewHost','useObservable','stringify','requireSession','onCommandExecuted','mutations','1em','mask','SetZoomRatioOperation','Start','displayName','InsertSheetMutation','following','LIVESHARE_TERMINATE','_commandDisposable','find','OPERATION','644745qaQaDg','entries','getLiveShareCoordinatorSync','696160wmVtwz','disposeWithMe','getValue','useRef','_handleNewChangeSets','UNIVER_SHEET','parseProtocolChangeset','unitId','defs','presenter','10YQYziR','sessionStatus$','BehaviorSubject','Fragment','next','dispose$','_configService','evenodd','LIVESHARE_NEW_HOST','end','_handleOperation','UNIVER_UNKNOWN','colorChannel1','_liveShareService','You\x27re\x20presenting\x20the\x20document','IUniverInstanceService','add','univerjs-icon\x20univerjs-icon-','pluginName','takeUntil','_injector','FOLLOWING','Present\x20this\x20document','PRESENTING','_fetchOperations','getCurrentTypeOfUnit$','use','LiveShareCoordinator','_startFollowing','presenting','text','registerComponent','forEach','_handleOffline','send','defIds','http://www.w3.org/2000/svg','LiveShareController','replace','_beIdle','getLiveShareCoordinator','NEW_CHANGESETS','_reporters','univer-mb-3\x20univer-w-full\x20univer-text-sm','dispose','SessionStatus','defineProperty','reverse','6xzzaKm','xlink:href','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','ONLINE','length','_unitID','Button','_uiPartsService','type','onStarting','toStringTag','UNIVER_LIVE_SHARE_PLUGIN','_commandService','NOT_FOLLOWING','16386623YMihYw','useState','LIVESHARE_OPERATION','path','svg','createElement','IDLE','21XgWaNa','_univerInstanceService','attrs','useDependency','trim','jsxs','data','startFollowing','stopPresenting','merge','executeCommand','_collabSessionService','_handleTerminate','9484993YgdamM','getMemberID','createInstance','symbol','_status$','1775174rryEDi','_entities','set','You\x27re\x20not\x20following\x20the\x20presenter','get','toDisposable','getOwnPropertyDescriptor','13139289gIwdER','default','Injector','UniverInstanceType','SetWorksheetActiveOperation','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','Stop\x20presenting','univer-size-4','IUIPartsService','registerDependencies','UniverLiveSharePlugin','string','RxDisposable','_init','toString','div','pipe','_stopFollowing','assign','UniverCollaborationClientPlugin','Inject','ICommandService','BuiltInUIPart','IConfigService','_startPresenting','_sharedOperations','operations','shouldShareOperation','8tcXsmb','_mountLiveShare','throttleTime','getInitialStates','Dropdown','offline','DesktopLiveShareController','children','fill','_config','status$','idle','CollaborationSessionService','LiveShare','not-following','url(#$1','connectInjector','LiveShareIcon','CollaborationEvent','SetScrollOperation','params','random','stopFollowing','_status','UniverIcon'];_0x16a2=function(){return _0x17b50f;};return _0x16a2();}function Y(_0x29eec8){const _0x357b6d=_0x325fc6,{coordinator:_0x5a3145}=_0x29eec8;return l['jsxs'](l[_0x357b6d(0x1a9)],{'children':[l[_0x357b6d(0x179)](_0x357b6d(0x213),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x357b6d(0x200)}),l[_0x357b6d(0x179)](f['Button'],{'variant':_0x357b6d(0x1c4),'onClick':()=>_0x5a3145[_0x357b6d(0x1f2)](),'children':_0x357b6d(0x184)})]});}function Z(_0x30e7cc){const _0x1d9511=_0x325fc6,{coordinator:_0x42102b}=_0x30e7cc;return l[_0x1d9511(0x1f0)](l[_0x1d9511(0x1a9)],{'children':[l[_0x1d9511(0x179)](_0x1d9511(0x213),{'className':_0x1d9511(0x1d1),'children':_0x1d9511(0x1b4)}),l[_0x1d9511(0x179)](f['Button'],{'variant':_0x1d9511(0x205),'onClick':()=>_0x42102b[_0x1d9511(0x1f3)](),'children':_0x1d9511(0x20a)})]});}function J(){const _0xebac58=_0x325fc6;return l[_0xebac58(0x179)](l[_0xebac58(0x1a9)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x325fc6(0x203)],z=(_0x173b82,_0x4b9133,_0x225adb,_0x2a8cc8)=>{const _0x431f01=_0x325fc6;for(var _0x2a55a3=_0x2a8cc8>0x1?void 0x0:_0x2a8cc8?K(_0x4b9133,_0x225adb):_0x4b9133,_0x557b32=_0x173b82[_0x431f01(0x1da)]-0x1,_0x5a9ebc;_0x557b32>=0x0;_0x557b32--)(_0x5a9ebc=_0x173b82[_0x557b32])&&(_0x2a55a3=_0x5a9ebc(_0x2a55a3)||_0x2a55a3);return _0x2a55a3;},L=(_0x3e5574,_0x16fd86)=>(_0x19d6f8,_0x4631e5)=>_0x16fd86(_0x19d6f8,_0x4631e5,_0x3e5574);exports[_0x325fc6(0x226)]=class extends o[_0x325fc6(0x178)]{constructor(_0x236334,_0x278f6d){const _0x248968=_0x325fc6;super(),this['_injector']=_0x236334,this[_0x248968(0x1dd)]=_0x278f6d,this[_0x248968(0x221)]();}['_mountLiveShare'](){const _0x508379=_0x325fc6;this['disposeWithMe'](this[_0x508379(0x1dd)][_0x508379(0x1c5)](p[_0x508379(0x21a)]['HEADER_MENU'],()=>p[_0x508379(0x162)]($,this[_0x508379(0x1ba)])));}},exports[_0x325fc6(0x226)]=z([L(0x0,o[_0x325fc6(0x218)](o[_0x325fc6(0x206)])),L(0x1,p[_0x325fc6(0x20c)])],exports[_0x325fc6(0x226)]);const Q=_0x325fc6(0x16d),w={};var X=Object[_0x325fc6(0x203)],ee=(_0x2a2e49,_0x1cf7ff,_0x4630d1,_0x547ff4)=>{const _0x39f559=_0x325fc6;for(var _0x43b8f1=_0x547ff4>0x1?void 0x0:_0x547ff4?X(_0x1cf7ff,_0x4630d1):_0x1cf7ff,_0x219508=_0x2a2e49[_0x39f559(0x1da)]-0x1,_0x2b7875;_0x219508>=0x0;_0x219508--)(_0x2b7875=_0x2a2e49[_0x219508])&&(_0x43b8f1=_0x2b7875(_0x43b8f1)||_0x43b8f1);return _0x43b8f1;},te=(_0x393d09,_0xfbf321)=>(_0xf7e40c,_0xf9b71a)=>_0xfbf321(_0xf7e40c,_0xf9b71a,_0x393d09);let m=class extends o[_0x325fc6(0x178)]{constructor(_0x3fe226){const _0x4392ec=_0x325fc6;super(),this[_0x4392ec(0x1b3)]=_0x3fe226,this[_0x4392ec(0x211)]();}[_0x325fc6(0x211)](){const _0x2d9ea6=_0x325fc6;[D[_0x2d9ea6(0x190)]['id'],D[_0x2d9ea6(0x165)]['id'],C[_0x2d9ea6(0x208)]['id']]['forEach'](_0x2d0702=>{const _0x414386=_0x2d9ea6;this[_0x414386(0x19d)](this[_0x414386(0x1b3)]['registerSharedOperation'](_0x2d0702));});}};m=ee([te(0x0,o[_0x325fc6(0x218)](E))],m);var ie=Object[_0x325fc6(0x1d4)],se=Object[_0x325fc6(0x203)],ne=(_0x149d3c,_0x175ca0,_0x405f97)=>_0x175ca0 in _0x149d3c?ie(_0x149d3c,_0x175ca0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x405f97}):_0x149d3c[_0x175ca0]=_0x405f97,re=(_0x264688,_0x875cc0,_0x197221,_0x46ad13)=>{const _0xdc3753=_0x325fc6;for(var _0x351c92=_0x46ad13>0x1?void 0x0:_0x46ad13?se(_0x875cc0,_0x197221):_0x875cc0,_0xb6ab5e=_0x264688[_0xdc3753(0x1da)]-0x1,_0x18f09f;_0xb6ab5e>=0x0;_0xb6ab5e--)(_0x18f09f=_0x264688[_0xb6ab5e])&&(_0x351c92=_0x18f09f(_0x351c92)||_0x351c92);return _0x351c92;},N=(_0x4e0112,_0x7153be)=>(_0x117b27,_0x1be4e0)=>_0x7153be(_0x117b27,_0x1be4e0,_0x4e0112),A=(_0x78c04e,_0x2b62c3,_0x44f225)=>ne(_0x78c04e,typeof _0x2b62c3!=_0x325fc6(0x1fb)?_0x2b62c3+'':_0x2b62c3,_0x44f225);const oe=_0x325fc6(0x1e1);exports[_0x325fc6(0x20e)]=class extends o['Plugin']{constructor(_0x271dfe=w,_0x496796,_0x5f15b1){const _0xb0f441=_0x325fc6;super(),this[_0xb0f441(0x229)]=_0x271dfe,this[_0xb0f441(0x1ba)]=_0x496796,this['_configService']=_0x5f15b1;const {..._0x482600}=o[_0xb0f441(0x1f4)]({},w,this[_0xb0f441(0x229)]);this['_configService']['setConfig'](Q,_0x482600);}[_0x325fc6(0x1df)](){const _0x36063f=_0x325fc6;o[_0x36063f(0x20d)](this['_injector'],o['mergeOverrideWithDependencies']([[E],[exports[_0x36063f(0x1cb)]],[m],[exports[_0x36063f(0x226)]]],this[_0x36063f(0x229)]['override'])),o[_0x36063f(0x16c)](this[_0x36063f(0x1ba)],[[m]]);}['onRendered'](){const _0x3cfdd3=_0x325fc6;o[_0x3cfdd3(0x16c)](this[_0x3cfdd3(0x1ba)],[[exports[_0x3cfdd3(0x226)]]]);}},A(exports['UniverLiveSharePlugin'],_0x325fc6(0x1de),o[_0x325fc6(0x207)][_0x325fc6(0x1b1)]),A(exports['UniverLiveSharePlugin'],_0x325fc6(0x1b8),oe),exports[_0x325fc6(0x20e)]=re([o['DependentOn'](b[_0x325fc6(0x217)]),N(0x1,o[_0x325fc6(0x218)](o['Injector'])),N(0x2,o[_0x325fc6(0x21b)])],exports['UniverLiveSharePlugin']),exports[_0x325fc6(0x22d)]=$,exports['LiveShareService']=E,exports[_0x325fc6(0x17c)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5bfd09=_0x2449;(function(_0x2cdbe4,_0x2ab260){const _0x41d99f=_0x2449,_0x5b26fc=_0x2cdbe4();while(!![]){try{const _0x5c80e4=parseInt(_0x41d99f(0x1cf))/0x1*(-parseInt(_0x41d99f(0x1d6))/0x2)+-parseInt(_0x41d99f(0x1e8))/0x3*(-parseInt(_0x41d99f(0x1dd))/0x4)+parseInt(_0x41d99f(0x1e2))/0x5+-parseInt(_0x41d99f(0x1d8))/0x6+-parseInt(_0x41d99f(0x1eb))/0x7*(parseInt(_0x41d99f(0x1e4))/0x8)+parseInt(_0x41d99f(0x1db))/0x9+parseInt(_0x41d99f(0x1d5))/0xa;if(_0x5c80e4===_0x2ab260)break;else _0x5b26fc['push'](_0x5b26fc['shift']());}catch(_0x3bebd2){_0x5b26fc['push'](_0x5b26fc['shift']());}}}(_0x37cb,0xa6dfb));import{LiveShareController as _0x5abd77,LiveShareStatus as _0x5cf689}from'@univerjs-pro/live-share';function _0x2449(_0x380fd3,_0x1bc9fe){_0x380fd3=_0x380fd3-0x1cf;const _0x37cb9b=_0x37cb();let _0x2449b7=_0x37cb9b[_0x380fd3];return _0x2449b7;}import{IRenderManagerService as _0x4993a1}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x3438cd}from'@univerjs/sheets';import{SetScrollOperation as _0x4445e5}from'@univerjs/sheets-ui';import{FRange as _0x33be52}from'@univerjs/sheets/facade';import{FUniver as _0x395cca,FEnum as _0x967069}from'@univerjs/core/facade';class I extends _0x33be52{[_0x5bfd09(0x1df)](_0x16a596,_0x5796a9,_0x18ac9a,_0x1cf434,_0x48e2fe){const _0x5b28b2=_0x5bfd09,_0x3beb50=_0x16a596[_0x5b28b2(0x1d2)](_0x5abd77),_0x52d019=_0x16a596['get'](_0x4993a1),_0x2b07f9=_0x5796a9['getUnitId'](),_0x422009=_0x5796a9[_0x5b28b2(0x1d7)](),_0x211591=_0x3beb50[_0x5b28b2(0x1e1)](_0x2b07f9);(_0x211591==null?void 0x0:_0x211591['getStatus']())!==_0x5cf689['PRESENTING']||(_0x18ac9a['getSheetId']()!==_0x422009[_0x5b28b2(0x1ec)]()&&this[_0x5b28b2(0x1e6)][_0x5b28b2(0x1e3)](_0x3438cd['id'],{'unitId':_0x2b07f9,'subUnitId':_0x18ac9a[_0x5b28b2(0x1ec)]()}),!_0x52d019['getRenderById'](_0x2b07f9))||_0x48e2fe['syncExecuteCommand'](_0x4445e5['id'],{'unitId':_0x5796a9[_0x5b28b2(0x1e0)](),'sheetId':_0x18ac9a[_0x5b28b2(0x1ec)](),'sheetViewStartRow':_0x1cf434[_0x5b28b2(0x1d3)],'sheetViewStartColumn':_0x1cf434[_0x5b28b2(0x1d4)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x33be52['extend'](I);function _0x37cb(){const _0x3ad315=['3APzsRB','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startFollowing','42tIALwJ','getSheetId','getActiveWorkbook','stopFollowing','IDLE','1hQOHiT','tryStartPresenting','getId','get','startRow','startColumn','20491100TzjArv','2051834hFtBDa','getActiveSheet','4954392EMCOUS','No\x20active\x20workbook\x20found.','LiveShareStatusEnum','11264067lNXzHE','stopPresenting','1262116zWUsym','startPresenting','_initialize','getUnitId','getLiveShareCoordinatorSync','180540xxVgsO','executeCommand','1489528wcquIe','getLiveShareStatus','_commandService','_injector'];_0x37cb=function(){return _0x3ad315;};return _0x37cb();}class m extends _0x395cca{[_0x5bfd09(0x1e5)](){const _0x3e8982=_0x5bfd09;var _0x2d8454,_0x59fc11;const _0x5b276b=this['_injector'][_0x3e8982(0x1d2)](_0x5abd77),_0x194465=(_0x2d8454=this[_0x3e8982(0x1ed)]())==null?void 0x0:_0x2d8454['getId']();if(!_0x194465)throw new Error(_0x3e8982(0x1d9));const _0x48620e=_0x5b276b['getLiveShareCoordinatorSync'](_0x194465);return(_0x59fc11=_0x48620e==null?void 0x0:_0x48620e['getStatus']())!=null?_0x59fc11:_0x5cf689[_0x3e8982(0x1ef)];}[_0x5bfd09(0x1ea)](){const _0x6a1739=_0x5bfd09;var _0x4f4999;const _0x335a46=this[_0x6a1739(0x1e7)][_0x6a1739(0x1d2)](_0x5abd77),_0x575511=(_0x4f4999=this[_0x6a1739(0x1ed)]())==null?void 0x0:_0x4f4999[_0x6a1739(0x1d1)]();if(!_0x575511)throw new Error(_0x6a1739(0x1d9));const _0x46a05e=_0x335a46[_0x6a1739(0x1e1)](_0x575511);if(!_0x46a05e)throw new Error(_0x6a1739(0x1e9));_0x46a05e[_0x6a1739(0x1ea)]();}[_0x5bfd09(0x1ee)](){const _0x583634=_0x5bfd09;var _0x3ce0da;const _0x2d1f3e=this[_0x583634(0x1e7)]['get'](_0x5abd77),_0x474408=(_0x3ce0da=this['getActiveWorkbook']())==null?void 0x0:_0x3ce0da[_0x583634(0x1d1)]();if(!_0x474408)throw new Error('No\x20active\x20workbook\x20found.');const _0x86da03=_0x2d1f3e[_0x583634(0x1e1)](_0x474408);if(!_0x86da03)throw new Error(_0x583634(0x1e9));_0x86da03[_0x583634(0x1ee)]();}[_0x5bfd09(0x1de)](){const _0xa37057=_0x5bfd09;var _0x75eb90;const _0x5381fd=this['_injector'][_0xa37057(0x1d2)](_0x5abd77),_0x3df261=(_0x75eb90=this['getActiveWorkbook']())==null?void 0x0:_0x75eb90[_0xa37057(0x1d1)]();if(!_0x3df261)throw new Error('No\x20active\x20workbook\x20found.');const _0x201dc1=_0x5381fd['getLiveShareCoordinatorSync'](_0x3df261);if(!_0x201dc1)throw new Error(_0xa37057(0x1e9));_0x201dc1[_0xa37057(0x1d0)]();}[_0x5bfd09(0x1dc)](){const _0x121def=_0x5bfd09;var _0x1b671c;const _0x28d64e=this[_0x121def(0x1e7)][_0x121def(0x1d2)](_0x5abd77),_0x8563ca=(_0x1b671c=this[_0x121def(0x1ed)]())==null?void 0x0:_0x1b671c[_0x121def(0x1d1)]();if(!_0x8563ca)throw new Error('No\x20active\x20workbook\x20found.');const _0x51c61a=_0x28d64e['getLiveShareCoordinatorSync'](_0x8563ca);if(!_0x51c61a)throw new Error(_0x121def(0x1e9));_0x51c61a[_0x121def(0x1dc)]();}}_0x395cca['extend'](m);class C extends _0x967069{get[_0x5bfd09(0x1da)](){return _0x5cf689;}}_0x967069['extend'](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x457e80=_0x2812;(function(_0x2c63ea,_0x62541b){const _0x21b1b7=_0x2812,_0x59ae53=_0x2c63ea();while(!![]){try{const _0x5dfd38=parseInt(_0x21b1b7(0x12c))/0x1*(-parseInt(_0x21b1b7(0x14f))/0x2)+-parseInt(_0x21b1b7(0x1c3))/0x3*(parseInt(_0x21b1b7(0x1bf))/0x4)+parseInt(_0x21b1b7(0x147))/0x5*(parseInt(_0x21b1b7(0x177))/0x6)+parseInt(_0x21b1b7(0x12a))/0x7+parseInt(_0x21b1b7(0x158))/0x8+-parseInt(_0x21b1b7(0x1b1))/0x9+parseInt(_0x21b1b7(0x1b9))/0xa;if(_0x5dfd38===_0x62541b)break;else _0x59ae53['push'](_0x59ae53['shift']());}catch(_0x17e0da){_0x59ae53['push'](_0x59ae53['shift']());}}}(_0x4fed,0x5dcb0));var J=Object[_0x457e80(0x196)],K=(_0x4bbf97,_0x2dbdb7,_0x53c3db)=>_0x2dbdb7 in _0x4bbf97?J(_0x4bbf97,_0x2dbdb7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53c3db}):_0x4bbf97[_0x2dbdb7]=_0x53c3db,u=(_0x2ac2e6,_0x10b15a,_0x2b9414)=>K(_0x2ac2e6,typeof _0x10b15a!=_0x457e80(0x12e)?_0x10b15a+'':_0x10b15a,_0x2b9414);import{Disposable as _0x1dbba8,toDisposable as _0x2b7383,IUniverInstanceService as _0x409e69,Inject as _0x2cb216,Injector as _0x1ed2ca,IConfigService as _0x33b07b,ICommandService as _0x1849e6,RxDisposable as _0x123426,UniverInstanceType as _0x49fe72,DisposableCollection as _0x452cb9,CommandType as _0x16215c,DependentOn as _0x26a88b,Plugin as _0x36cb3f,merge as _0x3205c5,registerDependencies as _0x531e72,mergeOverrideWithDependencies as _0x5d731b,touchDependencies as _0x230ca3}from'@univerjs/core';import{useDependency as _0x10658c,useObservable as _0x464b8d,IUIPartsService as _0x5cd8c2,BuiltInUIPart as _0x57f012,connectInjector as _0x3cfc29}from'@univerjs/ui';function _0x4fed(){const _0x41e0a3=['send','Start\x20following','attrs','registerSharedOperation','clear','div','mask','then','string','executeCommand','Stop\x20following','delete','type','_fetchOperations','idle','includes','LIVESHARE_TERMINATE','_mountLiveShare','_presenter','currentColor','_handleNewChangeSets','ONLINE','IDLE','end','LIVESHARE_REQUEST_HOST','6tWaOfg','has','_configService','dispose','evenodd','registerComponent','xlink:href','_entities','createInstance','UNIVER_LIVE_SHARE_PLUGIN','pluginName','live-share.config','pipe','_injector','_status$','requireSession','override','assign','values','getUnitId','operations','tryStartPresenting','_collabSession','unitId','_liveShareService','_commandDisposable','tag','next','OFFLINE','following','length','defineProperty','Present\x20this\x20document','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','toString','UNIVER_UNKNOWN','_startPresenting','stopPresenting','_handleOperation','forEach','sheet','univerjs-icon\x20univerjs-icon-','get','button','UniverIcon','_startFollowing','colorChannel1','OPERATION','dispose$','SAME_OPERATION_SHARE_INTERVAL','_sharedOperations','replace','presenter','url(#$1','data','default','_handleOffline','getLiveShareCoordinator','3261258eTdobT','event$','You\x27re\x20presenting\x20the\x20document','LiveShareIcon','univer-size-4','_status','FOLLOWING','_uiPartsService','317930XQyvAs','getOwnPropertyDescriptor','You\x27are\x20offline.','parse','0\x200\x2017\x2017','http://www.w3.org/2000/svg','1004tWAbaf','LIVESHARE_FETCH_OPERATIONS','children','asObservable','3867aFzMeo','memberID','sessionStatus$','_reporters','status$','_unitID','use','5126814ZaiiOU','onCommandExecuted','7606AeYrnj','params','symbol','_univerInstanceService','current','stopFollowing','startFollowing','univer-mb-3\x20univer-w-full\x20univer-text-sm','disposeWithMe','complete','defs','add','_handleTerminate','shouldShareOperation','getMemberID','map','path','_config','_commandService','_stopFollowing','unsubscribe','_handleOnline','init','reverse','random','getLiveShareCoordinatorSync','defIds','3056245ynkjcx','entries','LIVESHARE_OPERATION','_init','_stopPresenting','presenting','not-following','displayName','118CUvrQb','UNIVER_SHEET','getInitialStates','idSuffix','onRendered','set','_handleNewHost','fill','PRESENTING','1147096VvkULi','Start','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','_collabSessionService','_startLiveShareCoordinator','subscribe'];_0x4fed=function(){return _0x41e0a3;};return _0x4fed();}import{jsx as _0x20f1bf,jsxs as _0x7c6f4a,Fragment as _0x4ea446}from'react/jsx-runtime';import{Dropdown as _0x453919,clsx as _0x40f0b2,Button as _0x588942}from'@univerjs/design';import{useRef as _0x1cdb79,createElement as _0x1a7b27,forwardRef as _0x15364b,useState as _0x408c56,useEffect as _0x14ee1d}from'react';import{CollaborationEvent as _0x40f9b1,parseProtocolChangeset as _0x55d15c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x379963,SessionStatus as _0x3602b9,UniverCollaborationClientPlugin as _0x4cf46e}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x17b5b6,SetWorksheetActiveOperation as _0x5d7627}from'@univerjs/sheets';import{BehaviorSubject as _0x2d4397,Subject as _0x45a108}from'rxjs';import{takeUntil as _0x1446cd,throttleTime as _0x36d9d3}from'rxjs/operators';import{SetZoomRatioOperation as _0x592b93,SetScrollOperation as _0x593fcd}from'@univerjs/sheets-ui';function k({ref:_0x11d235,..._0x5e4dcb}){const _0x5b6dd3=_0x457e80,{icon:_0x48ac9e,id:_0x5f2dae,className:_0x460634,extend:_0x4d0ee7,..._0x338891}=_0x5e4dcb,_0x59f2a5=(_0x5b6dd3(0x1a0)+_0x5f2dae+'\x20'+(_0x460634||''))['trim'](),_0x5d8957=_0x1cdb79('_'+Oe());return G(_0x48ac9e,''+_0x5f2dae,{'defIds':_0x48ac9e[_0x5b6dd3(0x146)],'idSuffix':_0x5d8957[_0x5b6dd3(0x130)]},{'ref':_0x11d235,'className':_0x59f2a5,..._0x338891},_0x4d0ee7);}function G(_0x23b7a8,_0x730401,_0x34c77a,_0x30b007,_0x292573){const _0x2a6d4f=_0x457e80;return _0x1a7b27(_0x23b7a8[_0x2a6d4f(0x191)],{'key':_0x730401,...be(_0x23b7a8,_0x34c77a,_0x292573),..._0x30b007},(Ee(_0x23b7a8,_0x34c77a)[_0x2a6d4f(0x1c1)]||[])[_0x2a6d4f(0x13b)]((_0x1ecb25,_0x1874ba)=>G(_0x1ecb25,_0x730401+'-'+_0x23b7a8['tag']+'-'+_0x1874ba,_0x34c77a,void 0x0,_0x292573)));}function be(_0x3a45cb,_0x3365b1,_0x3369d8){const _0x410a69=_0x457e80,_0x3bf41e={..._0x3a45cb[_0x410a69(0x160)]};_0x3369d8!=null&&_0x3369d8[_0x410a69(0x1a5)]&&_0x3bf41e[_0x410a69(0x156)]==='colorChannel1'&&(_0x3bf41e['fill']=_0x3369d8[_0x410a69(0x1a5)]),_0x3a45cb[_0x410a69(0x191)]===_0x410a69(0x164)&&_0x3bf41e['id']&&(_0x3bf41e['id']=_0x3bf41e['id']+_0x3365b1[_0x410a69(0x152)]),Object[_0x410a69(0x148)](_0x3bf41e)[_0x410a69(0x19e)](([_0xa65e1c,_0x2ea8d8])=>{const _0x37d730=_0x410a69;_0xa65e1c===_0x37d730(0x164)&&typeof _0x2ea8d8==_0x37d730(0x166)&&(_0x3bf41e[_0xa65e1c]=_0x2ea8d8[_0x37d730(0x1aa)](/url\(#(.*)\)/,_0x37d730(0x1ac)+_0x3365b1['idSuffix']+')'));});const {defIds:_0x4782f6}=_0x3365b1;return!_0x4782f6||_0x4782f6[_0x410a69(0x195)]===0x0||(_0x3a45cb[_0x410a69(0x191)]===_0x410a69(0x129)&&_0x3bf41e[_0x410a69(0x17d)]&&(_0x3bf41e[_0x410a69(0x17d)]=_0x3bf41e['xlink:href']+_0x3365b1[_0x410a69(0x152)]),Object[_0x410a69(0x148)](_0x3bf41e)[_0x410a69(0x19e)](([_0x1dc1c9,_0x1b4aa4])=>{const _0x5916e1=_0x410a69;typeof _0x1b4aa4==_0x5916e1(0x166)&&(_0x3bf41e[_0x1dc1c9]=_0x1b4aa4['replace'](/url\(#(.*)\)/,'url(#$1'+_0x3365b1['idSuffix']+')'));})),_0x3bf41e;}function Ee(_0x3363d9,_0x14428d){const _0x4c3def=_0x457e80;var _0x2d784e;const {defIds:_0x422d84}=_0x14428d;return!_0x422d84||_0x422d84[_0x4c3def(0x195)]===0x0?_0x3363d9:_0x3363d9[_0x4c3def(0x191)]===_0x4c3def(0x136)&&((_0x2d784e=_0x3363d9[_0x4c3def(0x1c1)])!=null&&_0x2d784e[_0x4c3def(0x195)])?{..._0x3363d9,'children':_0x3363d9[_0x4c3def(0x1c1)][_0x4c3def(0x13b)](_0x46d4d6=>typeof _0x46d4d6[_0x4c3def(0x160)]['id']=='string'&&_0x422d84&&_0x422d84[_0x4c3def(0x16d)](_0x46d4d6[_0x4c3def(0x160)]['id'])?{..._0x46d4d6,'attrs':{..._0x46d4d6['attrs'],'id':_0x46d4d6[_0x4c3def(0x160)]['id']+_0x14428d[_0x4c3def(0x152)]}}:_0x46d4d6)}:_0x3363d9;}function Oe(){const _0x27b388=_0x457e80;return Math[_0x27b388(0x144)]()[_0x27b388(0x199)](0x24)['substring'](0x2,0x8);}k[_0x457e80(0x14e)]=_0x457e80(0x1a3);const we={'tag':'svg','attrs':{'xmlns':_0x457e80(0x1be),'fill':'none','viewBox':_0x457e80(0x1bd),'width':'1em','height':'1em'},'children':[{'tag':_0x457e80(0x13c),'attrs':{'fill':_0x457e80(0x171),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x457e80(0x171),'d':_0x457e80(0x15a),'fillRule':_0x457e80(0x17b),'clipRule':_0x457e80(0x17b)}}]},W=_0x15364b(function(_0x4aef97,_0x1428d6){const _0x57f284=_0x457e80;return _0x1a7b27(k,Object[_0x57f284(0x188)]({},_0x4aef97,{'id':'live-share-icon','ref':_0x1428d6,'icon':we}));});W[_0x457e80(0x14e)]=_0x457e80(0x1b4);class L extends _0x1dbba8{constructor(){const _0x81ba0f=_0x457e80;super(...arguments),u(this,_0x81ba0f(0x1a9),new Set()),u(this,_0x81ba0f(0x126),new Set());}[_0x457e80(0x161)](_0x3a580f){const _0x7c62e3=_0x457e80;return this['_sharedOperations'][_0x7c62e3(0x137)](_0x3a580f),_0x2b7383(()=>this[_0x7c62e3(0x1a9)][_0x7c62e3(0x169)](_0x3a580f));}['registerInitialStateReporter'](_0x33d605){const _0xe7c985=_0x457e80;return this[_0xe7c985(0x126)][_0xe7c985(0x137)](_0x33d605),_0x2b7383(()=>this[_0xe7c985(0x126)][_0xe7c985(0x169)](_0x33d605));}[_0x457e80(0x139)](_0x4f07cf){const _0x5bf4fa=_0x457e80;return this[_0x5bf4fa(0x1a9)][_0x5bf4fa(0x178)](_0x4f07cf);}[_0x457e80(0x151)](_0x10fe1b){const _0x54fa1c=_0x457e80;return Array['from'](this[_0x54fa1c(0x126)])[_0x54fa1c(0x13b)](_0x29ba04=>_0x29ba04(_0x10fe1b));}}var Ne=Object[_0x457e80(0x1ba)],Y=(_0x4df76c,_0x49e790,_0x31d5bf,_0x4e94dd)=>{for(var _0x555ea4=_0x4e94dd>0x1?void 0x0:_0x4e94dd?Ne(_0x49e790,_0x31d5bf):_0x49e790,_0x2c0c87=_0x4df76c['length']-0x1,_0x169401;_0x2c0c87>=0x0;_0x2c0c87--)(_0x169401=_0x4df76c[_0x2c0c87])&&(_0x555ea4=_0x169401(_0x555ea4)||_0x555ea4);return _0x555ea4;},_=(_0x34426f,_0x3a6871)=>(_0x216ecf,_0x1dd872)=>_0x3a6871(_0x216ecf,_0x1dd872,_0x34426f);let S=class extends _0x123426{constructor(_0x5d080b,_0xe865da,_0x5b2303){const _0x3e47cc=_0x457e80;super(),u(this,'_entities',new Map()),(this[_0x3e47cc(0x12f)]=_0x5d080b,this['_injector']=_0xe865da,this['_collabSessionService']=_0x5b2303,this[_0x3e47cc(0x14a)]());}async[_0x457e80(0x1b0)](_0x3331f9){const _0x33f4e0=_0x457e80;return this[_0x33f4e0(0x17e)][_0x33f4e0(0x178)](_0x3331f9)||await this[_0x33f4e0(0x15c)](_0x3331f9),this[_0x33f4e0(0x17e)][_0x33f4e0(0x1a1)](_0x3331f9);}[_0x457e80(0x145)](_0x44173e){const _0x487ce2=_0x457e80;var _0x553328;return(_0x553328=this[_0x487ce2(0x17e)]['get'](_0x44173e))!=null?_0x553328:null;}[_0x457e80(0x14a)](){const _0x253937=_0x457e80;this[_0x253937(0x12f)]['getTypeOfUnitAdded$'](_0x49fe72[_0x253937(0x150)])[_0x253937(0x183)](_0x1446cd(this[_0x253937(0x1a7)]))['subscribe'](async _0xacd81e=>{const _0xbcc795=_0x253937,_0x2f7b99=_0xacd81e[_0xbcc795(0x18a)]();this[_0xbcc795(0x17e)][_0xbcc795(0x178)](_0x2f7b99)||this['_startLiveShareCoordinator'](_0x2f7b99);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x49fe72['UNIVER_SHEET'])[_0x253937(0x183)](_0x1446cd(this[_0x253937(0x1a7)]))['subscribe'](_0x5111fe=>{const _0x4b2891=_0x253937,_0xea04c2=_0x5111fe[_0x4b2891(0x18a)](),_0x1286e9=this['_entities'][_0x4b2891(0x1a1)](_0xea04c2);_0x1286e9==null||_0x1286e9[_0x4b2891(0x17a)]();});}async[_0x457e80(0x15c)](_0x16fa01){const _0x4f530f=_0x457e80,_0x459156=await this[_0x4f530f(0x15b)][_0x4f530f(0x186)](_0x16fa01),_0x294852=this[_0x4f530f(0x184)][_0x4f530f(0x17f)](N,_0x16fa01,_0x459156);return _0x294852[_0x4f530f(0x142)](),this[_0x4f530f(0x17e)]['set'](_0x16fa01,_0x294852),_0x294852;}};S=Y([_(0x0,_0x409e69),_(0x1,_0x2cb216(_0x1ed2ca)),_(0x2,_0x2cb216(_0x379963))],S);var c=(_0x4a21b9=>(_0x4a21b9['OFFLINE']='offline',_0x4a21b9['IDLE']=_0x457e80(0x16c),_0x4a21b9[_0x457e80(0x1b7)]=_0x457e80(0x194),_0x4a21b9['NOT_FOLLOWING']='not-following',_0x4a21b9[_0x457e80(0x157)]=_0x457e80(0x14c),_0x4a21b9))(c||{});const Ce=_0x457e80(0x1a8),De=0xc8;let N=class extends _0x123426{constructor(_0x2811d3,_0x47b018,_0x2cf313,_0x34d67a,_0x2b5476){const _0x306d49=_0x457e80;super(),u(this,'_status$',new _0x2d4397(_0x306d49(0x16c))),u(this,_0x306d49(0x127),this[_0x306d49(0x185)][_0x306d49(0x1c2)]()),u(this,_0x306d49(0x14a),!0x1),u(this,_0x306d49(0x190),null),u(this,_0x306d49(0x170),null),(this[_0x306d49(0x128)]=_0x2811d3,this[_0x306d49(0x18d)]=_0x47b018,this[_0x306d49(0x179)]=_0x2cf313,this[_0x306d49(0x18f)]=_0x34d67a,this['_commandService']=_0x2b5476);}get[_0x457e80(0x1b6)](){return this['_status$']['getValue']();}[_0x457e80(0x17a)](){const _0x215005=_0x457e80;var _0xfa1b51;(_0xfa1b51=this['_commandDisposable'])==null||_0xfa1b51[_0x215005(0x17a)](),this[_0x215005(0x185)]['next'](_0x215005(0x16c)),this[_0x215005(0x185)][_0x215005(0x135)]();}['getStatus'](){const _0x3ade07=_0x457e80;return this[_0x3ade07(0x1b6)];}['init'](){const _0x45cc04=_0x457e80;this[_0x45cc04(0x14a)]||(this[_0x45cc04(0x14a)]=!0x0,this[_0x45cc04(0x18d)][_0x45cc04(0x125)][_0x45cc04(0x183)](_0x1446cd(this[_0x45cc04(0x1a7)]))['subscribe'](_0x2247ee=>{const _0x34a297=_0x45cc04;switch(_0x2247ee){case _0x3602b9[_0x34a297(0x193)]:this[_0x34a297(0x1af)]();break;case _0x3602b9[_0x34a297(0x173)]:this[_0x34a297(0x141)]();break;}}),this[_0x45cc04(0x18d)][_0x45cc04(0x1b2)][_0x45cc04(0x183)](_0x1446cd(this['dispose$']))[_0x45cc04(0x15d)](_0x1161b3=>{const _0x4291c1=_0x45cc04,{eventID:_0x50fd1e}=_0x1161b3;switch(_0x50fd1e){case _0x40f9b1['LIVESHARE_NEW_HOST']:this[_0x4291c1(0x155)](_0x1161b3);break;case _0x40f9b1[_0x4291c1(0x149)]:this[_0x4291c1(0x19d)](_0x1161b3);break;case _0x40f9b1[_0x4291c1(0x16e)]:this[_0x4291c1(0x138)]();break;case _0x40f9b1['NEW_CHANGESETS']:this[_0x4291c1(0x172)](_0x1161b3);break;}}));}[_0x457e80(0x18c)](){const _0x31dc7f=_0x457e80;this['_collabSession'][_0x31dc7f(0x15e)]({'eventID':_0x40f9b1[_0x31dc7f(0x176)],'data':{'unitID':this[_0x31dc7f(0x128)],'userID':this['_collabSession'][_0x31dc7f(0x13a)]()}},this[_0x31dc7f(0x128)]);}[_0x457e80(0x19c)](){const _0x5addb4=_0x457e80;this['_status']==='presenting'&&(this['_status$'][_0x5addb4(0x192)](_0x5addb4(0x16c)),this[_0x5addb4(0x18d)]['send']({'eventID':_0x40f9b1[_0x5addb4(0x16e)],'data':{'unitID':this[_0x5addb4(0x128)]}},this[_0x5addb4(0x128)]));}[_0x457e80(0x132)](){const _0x578c75=_0x457e80;this[_0x578c75(0x1b6)]===_0x578c75(0x14d)&&(this['_status$']['next'](_0x578c75(0x194)),this[_0x578c75(0x1a4)]());}[_0x457e80(0x131)](){const _0x3d5bc0=_0x457e80;this[_0x3d5bc0(0x1b6)]==='following'&&this[_0x3d5bc0(0x13f)]();}[_0x457e80(0x155)](_0x29bea4){const _0x3a4ff9=_0x457e80,{presenter:_0x10be51}=_0x29bea4[_0x3a4ff9(0x1ad)],_0x2a8737=this[_0x3a4ff9(0x18d)]['getMemberID']();this[_0x3a4ff9(0x170)]=_0x10be51,_0x10be51===_0x2a8737?(this['_stopFollowing'](),this['_startPresenting']()):this['_status']!==_0x3a4ff9(0x14d)&&(this[_0x3a4ff9(0x14b)](),this['_startFollowing']());}[_0x457e80(0x16b)](){const _0x309c15=_0x457e80,_0x29d7b2={'eventID':_0x40f9b1[_0x309c15(0x1c0)]};this[_0x309c15(0x18d)][_0x309c15(0x15e)](_0x29d7b2,this['_unitID']);}[_0x457e80(0x138)](){const _0x57c423=_0x457e80;this[_0x57c423(0x170)]=null,this[_0x57c423(0x1b6)]!==_0x57c423(0x14c)&&this['_beIdle']();}[_0x457e80(0x172)](_0x492282){const _0x23fa2b=_0x457e80;if(this[_0x23fa2b(0x1b6)]===_0x23fa2b(0x194)&&this[_0x23fa2b(0x170)]===_0x492282['data'][_0x23fa2b(0x124)]){const _0x11f75c=_0x55d15c(_0x492282['data'])['mutations'][_0x23fa2b(0x143)]()['find'](_0xc5df71=>_0xc5df71['id']===_0x17b5b6['id']);if(_0x11f75c){const _0x44fc3c=_0x11f75c[_0x23fa2b(0x12d)][_0x23fa2b(0x18e)],_0xa94a49=_0x11f75c['params'][_0x23fa2b(0x19f)]['id'];setTimeout(()=>{const _0x1e6f39=_0x23fa2b;this[_0x1e6f39(0x13e)][_0x1e6f39(0x167)](_0x5d7627['id'],{'unitId':_0x44fc3c,'subUnitId':_0xa94a49},{'fromCollab':!0x0});});}}}[_0x457e80(0x19b)](){const _0x5d160d=_0x457e80;this[_0x5d160d(0x185)][_0x5d160d(0x192)]('presenting');const _0x489eb8=new Map(),_0x485d88=this[_0x5d160d(0x190)]=new _0x452cb9();_0x485d88[_0x5d160d(0x137)](_0x2b7383(()=>{const _0x114852=_0x5d160d;_0x489eb8[_0x114852(0x19e)](_0x336bff=>_0x336bff[_0x114852(0x135)]()),_0x489eb8[_0x114852(0x162)]();})),_0x485d88['add'](this[_0x5d160d(0x13e)][_0x5d160d(0x12b)](_0x3ed3bf=>{const _0x102fb3=_0x5d160d;var _0x4382f3;if(_0x3ed3bf['type']!==_0x16215c[_0x102fb3(0x1a6)]||!this[_0x102fb3(0x18f)][_0x102fb3(0x139)](_0x3ed3bf['id']))return;const {id:_0x57bdf0}=_0x3ed3bf;let _0xbdfd93;_0x489eb8['has'](_0x57bdf0)?_0xbdfd93=_0x489eb8[_0x102fb3(0x1a1)](_0x57bdf0):(_0xbdfd93=new _0x45a108(),_0x489eb8[_0x102fb3(0x154)](_0x57bdf0,_0xbdfd93),_0xbdfd93['pipe'](_0x36d9d3((_0x4382f3=this[_0x102fb3(0x179)]['getConfig'](Ce))!=null?_0x4382f3:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x102fb3(0x15d)](_0xabba34=>{const _0x28447a=_0x102fb3;this['_collabSession']['send']({'eventID':_0x40f9b1[_0x28447a(0x149)],'data':{'unitID':this[_0x28447a(0x128)],'operations':{[_0xabba34['id']]:{'id':_0xabba34['id'],'params':JSON['stringify'](_0xabba34[_0x28447a(0x12d)])}}}},this[_0x28447a(0x128)]);})),_0xbdfd93[_0x102fb3(0x192)](_0x3ed3bf);})),this[_0x5d160d(0x18f)][_0x5d160d(0x151)](this[_0x5d160d(0x128)])[_0x5d160d(0x19e)](_0x18b1e7=>this[_0x5d160d(0x18d)][_0x5d160d(0x15e)]({'eventID':_0x40f9b1[_0x5d160d(0x149)],'data':{'unitID':this['_unitID'],'operations':{[_0x18b1e7['id']]:{'id':_0x18b1e7['id'],'params':JSON['stringify'](_0x18b1e7[_0x5d160d(0x12d)])}}}},this[_0x5d160d(0x128)]));}[_0x457e80(0x14b)](){const _0x151cc9=_0x457e80;var _0x2ecc0c;this[_0x151cc9(0x185)][_0x151cc9(0x192)](_0x151cc9(0x16c)),(_0x2ecc0c=this[_0x151cc9(0x190)])==null||_0x2ecc0c[_0x151cc9(0x17a)](),this[_0x151cc9(0x190)]=null;}[_0x457e80(0x1a4)](){const _0x386a14=_0x457e80;var _0x739216;(_0x739216=this[_0x386a14(0x190)])==null||_0x739216[_0x386a14(0x17a)](),this[_0x386a14(0x185)]['next'](_0x386a14(0x194));}['_beIdle'](){const _0x12fb00=_0x457e80;var _0x1da624;this[_0x12fb00(0x185)][_0x12fb00(0x192)]('idle'),(_0x1da624=this[_0x12fb00(0x190)])==null||_0x1da624[_0x12fb00(0x17a)](),this[_0x12fb00(0x190)]=null;}['_stopFollowing'](){const _0x52c12e=_0x457e80;var _0x335060;this['_status$'][_0x52c12e(0x192)](_0x52c12e(0x14d)),(_0x335060=this[_0x52c12e(0x190)])==null||_0x335060[_0x52c12e(0x17a)]();}['_handleOperation'](_0x3edf9e){const _0x371b5f=_0x457e80;if(['presenting',_0x371b5f(0x14d),'offline'][_0x371b5f(0x16d)](this['_status'])||!_0x3edf9e[_0x371b5f(0x1ad)][_0x371b5f(0x1ab)]||_0x3edf9e['data'][_0x371b5f(0x1ab)]===this[_0x371b5f(0x18d)][_0x371b5f(0x13a)]())return;this[_0x371b5f(0x1b6)]==='idle'&&this['_startFollowing']();const _0x414c88=_0x3edf9e[_0x371b5f(0x1ad)][_0x371b5f(0x18b)];Object[_0x371b5f(0x189)](_0x414c88)[_0x371b5f(0x19e)](_0x365b98=>{const _0x26a95b=_0x371b5f;this[_0x26a95b(0x13e)][_0x26a95b(0x167)](_0x365b98['id'],_0x365b98[_0x26a95b(0x12d)]?JSON[_0x26a95b(0x1bc)](_0x365b98['params']):null,{'fromCollab':!0x0});});}[_0x457e80(0x1af)](){const _0x146ac7=_0x457e80;var _0x23cf12;this[_0x146ac7(0x185)][_0x146ac7(0x192)]('offline'),(_0x23cf12=this[_0x146ac7(0x190)])==null||_0x23cf12['dispose']();}[_0x457e80(0x141)](){const _0x356063=_0x457e80;this[_0x356063(0x185)]['next'](_0x356063(0x16c)),this[_0x356063(0x16b)]();}};function _0x2812(_0x5b61e4,_0x52a625){_0x5b61e4=_0x5b61e4-0x124;const _0x4fed2f=_0x4fed();let _0x281277=_0x4fed2f[_0x5b61e4];return _0x281277;}N=Y([_(0x2,_0x33b07b),_(0x3,_0x2cb216(L)),_(0x4,_0x1849e6)],N);function Le(){const _0x169dcc=_0x457e80,_0x276fc6=_0x10658c(S),_0x55660b=_0x10658c(_0x409e69),_0x43ac06=_0x464b8d(()=>_0x55660b['getCurrentTypeOfUnit$'](_0x49fe72[_0x169dcc(0x150)]),void 0x0,!0x1,[]),[_0x4b9bda,_0x455b1f]=_0x408c56(null),[_0xbd5ed6,_0x23eff9]=_0x408c56(c[_0x169dcc(0x174)]),_0x311c4c=_0x1cdb79(null);return _0x14ee1d(()=>(_0x43ac06&&_0x276fc6[_0x169dcc(0x1b0)](_0x43ac06[_0x169dcc(0x18a)]())[_0x169dcc(0x165)](_0x476acd=>{const _0x2d4ee6=_0x169dcc;_0x455b1f(_0x476acd),_0x311c4c[_0x2d4ee6(0x130)]=_0x476acd[_0x2d4ee6(0x127)][_0x2d4ee6(0x15d)](_0x315042=>{_0x23eff9(_0x315042);});}),()=>{const _0x5a344f=_0x169dcc;var _0x445c01;(_0x445c01=_0x311c4c[_0x5a344f(0x130)])==null||_0x445c01[_0x5a344f(0x140)](),_0x311c4c['current']=null;}),[_0x43ac06,_0x276fc6]),_0x4b9bda?_0x20f1bf(_0x453919,{'align':_0x169dcc(0x175),'disabled':_0xbd5ed6===c[_0x169dcc(0x193)],'className':_0x169dcc(0x198),'overlay':_0x20f1bf(Re,{'status':_0xbd5ed6,'coordinator':_0x4b9bda}),'children':_0x20f1bf('button',{'className':_0x40f0b2('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xbd5ed6===c[_0x169dcc(0x193)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xbd5ed6!==c[_0x169dcc(0x193)]}),'type':_0x169dcc(0x1a2),'children':_0x20f1bf(W,{'className':_0x169dcc(0x1b5)})})}):null;}function Re(_0x90ce32){const _0x37b8e3=_0x457e80,{status:_0x1f8983,coordinator:_0x2bc9f9}=_0x90ce32;switch(_0x1f8983){case c[_0x37b8e3(0x174)]:return _0x20f1bf($e,{'coordinator':_0x2bc9f9});case c[_0x37b8e3(0x1b7)]:return _0x20f1bf(xe,{'coordinator':_0x2bc9f9});case c['NOT_FOLLOWING']:return _0x20f1bf(Pe,{'coordinator':_0x2bc9f9});case c[_0x37b8e3(0x193)]:return _0x20f1bf(Te,{});case c['PRESENTING']:return _0x20f1bf(Ae,{'coordinator':_0x2bc9f9});default:return null;}}function $e(_0x1e099c){const _0x82d8c5=_0x457e80,{coordinator:_0x1d52d3}=_0x1e099c;return _0x7c6f4a(_0x4ea446,{'children':[_0x20f1bf(_0x82d8c5(0x163),{'className':_0x82d8c5(0x133),'children':_0x82d8c5(0x197)}),_0x20f1bf(_0x588942,{'onClick':()=>_0x1d52d3['tryStartPresenting'](),'children':_0x82d8c5(0x159)})]});}function xe(_0x56576c){const _0x3dcf61=_0x457e80,{coordinator:_0x3a4b3f}=_0x56576c;return _0x7c6f4a(_0x4ea446,{'children':[_0x20f1bf(_0x3dcf61(0x163),{'className':_0x3dcf61(0x133),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x20f1bf(_0x588942,{'onClick':()=>_0x3a4b3f[_0x3dcf61(0x131)](),'children':_0x3dcf61(0x168)})]});}function Pe(_0x53fc7d){const _0x2ab574=_0x457e80,{coordinator:_0x481262}=_0x53fc7d;return _0x7c6f4a(_0x4ea446,{'children':[_0x20f1bf(_0x2ab574(0x163),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x20f1bf(_0x588942,{'variant':'text','onClick':()=>_0x481262['startFollowing'](),'children':_0x2ab574(0x15f)})]});}function Ae(_0x8d314c){const _0x5e1447=_0x457e80,{coordinator:_0x31cad4}=_0x8d314c;return _0x7c6f4a(_0x4ea446,{'children':[_0x20f1bf(_0x5e1447(0x163),{'className':_0x5e1447(0x133),'children':_0x5e1447(0x1b3)}),_0x20f1bf(_0x588942,{'variant':_0x5e1447(0x1ae),'onClick':()=>_0x31cad4[_0x5e1447(0x19c)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x4d1053=_0x457e80;return _0x20f1bf(_0x4ea446,{'children':_0x4d1053(0x1bb)});}var Fe=Object[_0x457e80(0x1ba)],He=(_0x3c79b8,_0x5bc4c7,_0x26f9be,_0x47cac2)=>{const _0x254bbd=_0x457e80;for(var _0x2698cb=_0x47cac2>0x1?void 0x0:_0x47cac2?Fe(_0x5bc4c7,_0x26f9be):_0x5bc4c7,_0x7e204=_0x3c79b8[_0x254bbd(0x195)]-0x1,_0x9d5e49;_0x7e204>=0x0;_0x7e204--)(_0x9d5e49=_0x3c79b8[_0x7e204])&&(_0x2698cb=_0x9d5e49(_0x2698cb)||_0x2698cb);return _0x2698cb;},A=(_0x17e6c7,_0x5beab7)=>(_0x5b61d3,_0x23efac)=>_0x5beab7(_0x5b61d3,_0x23efac,_0x17e6c7);let m=class extends _0x1dbba8{constructor(_0x4bf02c,_0x1c3892){const _0x32ff85=_0x457e80;super(),this[_0x32ff85(0x184)]=_0x4bf02c,this[_0x32ff85(0x1b8)]=_0x1c3892,this['_mountLiveShare']();}[_0x457e80(0x16f)](){const _0x26f0c7=_0x457e80;this[_0x26f0c7(0x134)](this[_0x26f0c7(0x1b8)][_0x26f0c7(0x17c)](_0x57f012['HEADER_MENU'],()=>_0x3cfc29(Le,this[_0x26f0c7(0x184)])));}};m=He([A(0x0,_0x2cb216(_0x1ed2ca)),A(0x1,_0x5cd8c2)],m);const ye=_0x457e80(0x182),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x22d05f,_0x320e47,_0x46a071,_0x276b61)=>{const _0x30290e=_0x457e80;for(var _0xe0bb6b=_0x276b61>0x1?void 0x0:_0x276b61?Ue(_0x320e47,_0x46a071):_0x320e47,_0x59f01b=_0x22d05f[_0x30290e(0x195)]-0x1,_0x44621a;_0x59f01b>=0x0;_0x59f01b--)(_0x44621a=_0x22d05f[_0x59f01b])&&(_0xe0bb6b=_0x44621a(_0xe0bb6b)||_0xe0bb6b);return _0xe0bb6b;},je=(_0x3ee1a6,_0x3bb214)=>(_0x4b8a39,_0x4c77bb)=>_0x3bb214(_0x4b8a39,_0x4c77bb,_0x3ee1a6);let I=class extends _0x1dbba8{constructor(_0x23f1dc){const _0x693e7b=_0x457e80;super(),this[_0x693e7b(0x18f)]=_0x23f1dc,this[_0x693e7b(0x14a)]();}[_0x457e80(0x14a)](){const _0xa4d33=_0x457e80;[_0x592b93['id'],_0x593fcd['id'],_0x5d7627['id']][_0xa4d33(0x19e)](_0x1351b7=>{const _0x3f2d76=_0xa4d33;this[_0x3f2d76(0x134)](this[_0x3f2d76(0x18f)][_0x3f2d76(0x161)](_0x1351b7));});}};I=Ve([je(0x0,_0x2cb216(L))],I);var Me=Object['defineProperty'],ke=Object[_0x457e80(0x1ba)],Ge=(_0x4ad364,_0x1235fa,_0x1f0753)=>_0x1235fa in _0x4ad364?Me(_0x4ad364,_0x1235fa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f0753}):_0x4ad364[_0x1235fa]=_0x1f0753,We=(_0x57d8ca,_0x15e738,_0x40559a,_0x48317c)=>{const _0x6af07f=_0x457e80;for(var _0x342a08=_0x48317c>0x1?void 0x0:_0x48317c?ke(_0x15e738,_0x40559a):_0x15e738,_0xb880df=_0x57d8ca[_0x6af07f(0x195)]-0x1,_0x2cd3ea;_0xb880df>=0x0;_0xb880df--)(_0x2cd3ea=_0x57d8ca[_0xb880df])&&(_0x342a08=_0x2cd3ea(_0x342a08)||_0x342a08);return _0x342a08;},F=(_0x21cded,_0x19966a)=>(_0xbe5631,_0x28ac02)=>_0x19966a(_0xbe5631,_0x28ac02,_0x21cded),B=(_0x3aa81a,_0x57997c,_0x250b1e)=>Ge(_0x3aa81a,typeof _0x57997c!='symbol'?_0x57997c+'':_0x57997c,_0x250b1e);const Ye=_0x457e80(0x180);let b=class extends _0x36cb3f{constructor(_0x314415=T,_0x536963,_0xb37936){const _0x4414a5=_0x457e80;super(),this['_config']=_0x314415,this[_0x4414a5(0x184)]=_0x536963,this[_0x4414a5(0x179)]=_0xb37936;const {..._0x24d08d}=_0x3205c5({},T,this[_0x4414a5(0x13d)]);this[_0x4414a5(0x179)]['setConfig'](ye,_0x24d08d);}['onStarting'](){const _0x47826f=_0x457e80;_0x531e72(this[_0x47826f(0x184)],_0x5d731b([[L],[S],[I],[m]],this[_0x47826f(0x13d)][_0x47826f(0x187)])),_0x230ca3(this[_0x47826f(0x184)],[[I]]);}[_0x457e80(0x153)](){const _0x54b688=_0x457e80;_0x230ca3(this[_0x54b688(0x184)],[[m]]);}};B(b,_0x457e80(0x16a),_0x49fe72[_0x457e80(0x19a)]),B(b,_0x457e80(0x181),Ye),b=We([_0x26a88b(_0x4cf46e),F(0x1,_0x2cb216(_0x1ed2ca)),F(0x2,_0x33b07b)],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 _0x677c62=_0x3808;(function(_0x57d1fc,_0xc70091){const _0x1475ea=_0x3808,_0x568fa7=_0x57d1fc();while(!![]){try{const _0x59a119=-parseInt(_0x1475ea(0x12b))/0x1+parseInt(_0x1475ea(0x127))/0x2*(parseInt(_0x1475ea(0x126))/0x3)+parseInt(_0x1475ea(0x162))/0x4*(parseInt(_0x1475ea(0x15a))/0x5)+-parseInt(_0x1475ea(0x106))/0x6+parseInt(_0x1475ea(0xed))/0x7+-parseInt(_0x1475ea(0xeb))/0x8*(-parseInt(_0x1475ea(0x134))/0x9)+-parseInt(_0x1475ea(0x188))/0xa*(-parseInt(_0x1475ea(0x13b))/0xb);if(_0x59a119===_0xc70091)break;else _0x568fa7['push'](_0x568fa7['shift']());}catch(_0x4031af){_0x568fa7['push'](_0x568fa7['shift']());}}}(_0xbfe4,0x52c7f));var J=Object[_0x677c62(0x169)],K=(_0x55687a,_0x5804c5,_0x161a4c)=>_0x5804c5 in _0x55687a?J(_0x55687a,_0x5804c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x161a4c}):_0x55687a[_0x5804c5]=_0x161a4c,u=(_0x5a4fcb,_0x187dea,_0x195a09)=>K(_0x5a4fcb,typeof _0x187dea!=_0x677c62(0x10e)?_0x187dea+'':_0x187dea,_0x195a09);import{Disposable as _0x2da4ee,toDisposable as _0x35bb2c,IUniverInstanceService as _0x462a13,Inject as _0x417a9f,Injector as _0x3b9c73,IConfigService as _0x290042,ICommandService as _0x394fbd,RxDisposable as _0x45ebde,UniverInstanceType as _0x59bb3d,DisposableCollection as _0x3103b8,CommandType as _0xd9ac1c,DependentOn as _0x165c63,Plugin as _0x2600c1,merge as _0x275afa,registerDependencies as _0x557937,mergeOverrideWithDependencies as _0x410c61,touchDependencies as _0x5aa4a8}from'@univerjs/core';import{useDependency as _0x8ff637,useObservable as _0x31a57b,IUIPartsService as _0x383d75,BuiltInUIPart as _0x4d48d8,connectInjector as _0x2e3eb5}from'@univerjs/ui';import{jsx as _0x1ba63a,jsxs as _0x499084,Fragment as _0x5e2a02}from'react/jsx-runtime';import{Dropdown as _0x390534,clsx as _0x56ce27,Button as _0x180649}from'@univerjs/design';import{useRef as _0x5debc3,createElement as _0x555d7a,forwardRef as _0x396100,useState as _0x15fd52,useEffect as _0x3ef286}from'react';function _0xbfe4(){const _0x414fc4=['children','idSuffix','_handleOperation','UNIVER_UNKNOWN','stopPresenting','default','ONLINE','onStarting','mutations','UNIVER_SHEET','onCommandExecuted','memberID','Stop\x20following','getUnitId','getTypeOfUnitAdded$','then','string','presenting','9645HpuqMt','current','univer-size-4','You\x27re\x20following\x20the\x20presenter','NEW_CHANGESETS','map','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','length','148mUUYlV','unsubscribe','LIVESHARE_FETCH_OPERATIONS','url(#$1','getValue','requireSession','_startLiveShareCoordinator','defineProperty','_commandService','send','getLiveShareCoordinatorSync','getCurrentTypeOfUnit$','init','set','Start\x20following','onRendered','override','shouldShareOperation','values','OFFLINE','delete','get','SAME_OPERATION_SHARE_INTERVAL','_unitID','mask','1em','status$','_presenter','reverse','_univerInstanceService','getLiveShareCoordinator','xlink:href','LiveShareIcon','svg','complete','HEADER_MENU','UniverIcon','_uiPartsService','170QkbSdM','next','_collabSessionService','You\x27are\x20offline.','dispose$','tag','includes','has','_commandDisposable','univer-mb-3\x20univer-w-full\x20univer-text-sm','forEach','_beIdle','_configService','488sYpCWp','_stopPresenting','214382ByHKra','_reporters','stringify','_init','_startFollowing','LIVESHARE_NEW_HOST','_handleNewHost','dispose','pipe','_config','event$','evenodd','live-share-icon','_liveShareService','substring','data','NOT_FOLLOWING','following','startFollowing','text','path','LIVESHARE_TERMINATE','displayName','sheet','end','1227822ESyKSW','_mountLiveShare','_sharedOperations','univerjs-icon\x20univerjs-icon-','_handleTerminate','entries','parse','none','symbol','use','asObservable','replace','_startPresenting','setConfig','offline','_entities','toString','_injector','getTypeOfUnitDisposed$','disposeWithMe','getMemberID','currentColor','add','div','unitId','_status$','live-share.config','colorChannel1','FOLLOWING','from','operations','tryStartPresenting','3APhzQx','325594qEkxEO','PRESENTING','registerSharedOperation','type','60181SffTdi','LIVESHARE_REQUEST_HOST','_status','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LIVESHARE_OPERATION','Start','idle','subscribe','not-following','8838OBorUQ','fill','pluginName','button','presenter','attrs','UNIVER_LIVE_SHARE_PLUGIN','180653bfrMQD','getStatus','_handleOffline','find','executeCommand','_stopFollowing','params','_collabSession','You\x27re\x20not\x20following\x20the\x20presenter','getOwnPropertyDescriptor','registerInitialStateReporter','_handleOnline','_handleNewChangeSets'];_0xbfe4=function(){return _0x414fc4;};return _0xbfe4();}import{CollaborationEvent as _0xce98bf,parseProtocolChangeset as _0x521a7f}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x2f8236,SessionStatus as _0xdd466f,UniverCollaborationClientPlugin as _0x2a81a9}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3ecc17,SetWorksheetActiveOperation as _0x525cbd}from'@univerjs/sheets';import{BehaviorSubject as _0x5c595d,Subject as _0x39103d}from'rxjs';import{takeUntil as _0x25db84,throttleTime as _0x1d50d9}from'rxjs/operators';import{SetZoomRatioOperation as _0x490dee,SetScrollOperation as _0x446e48}from'@univerjs/sheets-ui';function k({ref:_0x1e31b7,..._0x48ed95}){const _0x6c75a2=_0x677c62,{icon:_0x189453,id:_0x226654,className:_0x35cc22,extend:_0x5bb3a1,..._0x2a1472}=_0x48ed95,_0x332fb2=(_0x6c75a2(0x109)+_0x226654+'\x20'+(_0x35cc22||''))['trim'](),_0x436f28=_0x5debc3('_'+Oe());return G(_0x189453,''+_0x226654,{'defIds':_0x189453['defIds'],'idSuffix':_0x436f28[_0x6c75a2(0x15b)]},{'ref':_0x1e31b7,'className':_0x332fb2,..._0x2a1472},_0x5bb3a1);}function G(_0x3bee38,_0xd2e421,_0x55bc48,_0x59b240,_0x2950cc){const _0x16ee50=_0x677c62;return _0x555d7a(_0x3bee38[_0x16ee50(0x18d)],{'key':_0xd2e421,...be(_0x3bee38,_0x55bc48,_0x2950cc),..._0x59b240},(Ee(_0x3bee38,_0x55bc48)['children']||[])[_0x16ee50(0x15f)]((_0x4d9faf,_0x28d194)=>G(_0x4d9faf,_0xd2e421+'-'+_0x3bee38['tag']+'-'+_0x28d194,_0x55bc48,void 0x0,_0x2950cc)));}function be(_0x4e786c,_0x2123f7,_0xabe97f){const _0x4047ac=_0x677c62,_0x122e94={..._0x4e786c[_0x4047ac(0x139)]};_0xabe97f!=null&&_0xabe97f[_0x4047ac(0x121)]&&_0x122e94[_0x4047ac(0x135)]==='colorChannel1'&&(_0x122e94[_0x4047ac(0x135)]=_0xabe97f['colorChannel1']),_0x4e786c[_0x4047ac(0x18d)]===_0x4047ac(0x17a)&&_0x122e94['id']&&(_0x122e94['id']=_0x122e94['id']+_0x2123f7[_0x4047ac(0x149)]),Object[_0x4047ac(0x10b)](_0x122e94)[_0x4047ac(0x192)](([_0x282326,_0x3c672c])=>{const _0x4a10ee=_0x4047ac;_0x282326===_0x4a10ee(0x17a)&&typeof _0x3c672c==_0x4a10ee(0x158)&&(_0x122e94[_0x282326]=_0x3c672c[_0x4a10ee(0x111)](/url\(#(.*)\)/,_0x4a10ee(0x165)+_0x2123f7['idSuffix']+')'));});const {defIds:_0x201e0b}=_0x2123f7;return!_0x201e0b||_0x201e0b[_0x4047ac(0x161)]===0x0||(_0x4e786c[_0x4047ac(0x18d)]===_0x4047ac(0x10f)&&_0x122e94[_0x4047ac(0x181)]&&(_0x122e94[_0x4047ac(0x181)]=_0x122e94[_0x4047ac(0x181)]+_0x2123f7['idSuffix']),Object['entries'](_0x122e94)[_0x4047ac(0x192)](([_0x25e0ee,_0x3a05ce])=>{const _0x5a9d80=_0x4047ac;typeof _0x3a05ce==_0x5a9d80(0x158)&&(_0x122e94[_0x25e0ee]=_0x3a05ce[_0x5a9d80(0x111)](/url\(#(.*)\)/,_0x5a9d80(0x165)+_0x2123f7[_0x5a9d80(0x149)]+')'));})),_0x122e94;}function Ee(_0x11da27,_0x3796e6){const _0xb22449=_0x677c62;var _0x3a62c1;const {defIds:_0xe78da0}=_0x3796e6;return!_0xe78da0||_0xe78da0['length']===0x0?_0x11da27:_0x11da27[_0xb22449(0x18d)]==='defs'&&((_0x3a62c1=_0x11da27['children'])!=null&&_0x3a62c1[_0xb22449(0x161)])?{..._0x11da27,'children':_0x11da27[_0xb22449(0x148)][_0xb22449(0x15f)](_0x58e46a=>typeof _0x58e46a[_0xb22449(0x139)]['id']==_0xb22449(0x158)&&_0xe78da0&&_0xe78da0[_0xb22449(0x18e)](_0x58e46a[_0xb22449(0x139)]['id'])?{..._0x58e46a,'attrs':{..._0x58e46a['attrs'],'id':_0x58e46a[_0xb22449(0x139)]['id']+_0x3796e6[_0xb22449(0x149)]}}:_0x58e46a)}:_0x11da27;}function Oe(){const _0x47cc51=_0x677c62;return Math['random']()[_0x47cc51(0x116)](0x24)[_0x47cc51(0xfb)](0x2,0x8);}k['displayName']=_0x677c62(0x186);const we={'tag':_0x677c62(0x183),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x677c62(0x10d),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x677c62(0x17b)},'children':[{'tag':_0x677c62(0x101),'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':_0x677c62(0x101),'attrs':{'fill':_0x677c62(0x11b),'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':_0x677c62(0xf8),'clipRule':_0x677c62(0xf8)}}]},W=_0x396100(function(_0x41b3c0,_0x291177){const _0x345734=_0x677c62;return _0x555d7a(k,Object['assign']({},_0x41b3c0,{'id':_0x345734(0xf9),'ref':_0x291177,'icon':we}));});W[_0x677c62(0x103)]=_0x677c62(0x182);class L extends _0x2da4ee{constructor(){const _0x437c96=_0x677c62;super(...arguments),u(this,_0x437c96(0x108),new Set()),u(this,_0x437c96(0xee),new Set());}[_0x677c62(0x129)](_0x397af7){const _0x458e1d=_0x677c62;return this[_0x458e1d(0x108)]['add'](_0x397af7),_0x35bb2c(()=>this[_0x458e1d(0x108)]['delete'](_0x397af7));}[_0x677c62(0x145)](_0x5ada77){const _0x55d330=_0x677c62;return this['_reporters'][_0x55d330(0x11c)](_0x5ada77),_0x35bb2c(()=>this[_0x55d330(0xee)][_0x55d330(0x176)](_0x5ada77));}[_0x677c62(0x173)](_0x542cbe){const _0x5c54a1=_0x677c62;return this[_0x5c54a1(0x108)]['has'](_0x542cbe);}['getInitialStates'](_0x29b050){const _0x4fde82=_0x677c62;return Array[_0x4fde82(0x123)](this['_reporters'])[_0x4fde82(0x15f)](_0x3722eb=>_0x3722eb(_0x29b050));}}var Ne=Object[_0x677c62(0x144)],Y=(_0x4f6fec,_0x4525bf,_0x5d2b69,_0x2dd585)=>{for(var _0x340b6b=_0x2dd585>0x1?void 0x0:_0x2dd585?Ne(_0x4525bf,_0x5d2b69):_0x4525bf,_0x1d45de=_0x4f6fec['length']-0x1,_0x53350c;_0x1d45de>=0x0;_0x1d45de--)(_0x53350c=_0x4f6fec[_0x1d45de])&&(_0x340b6b=_0x53350c(_0x340b6b)||_0x340b6b);return _0x340b6b;},_=(_0x34cc23,_0x2b527c)=>(_0x3e9db0,_0x20799b)=>_0x2b527c(_0x3e9db0,_0x20799b,_0x34cc23);let S=class extends _0x45ebde{constructor(_0x39ea48,_0x5194b0,_0xbcf7bb){const _0x3bafd4=_0x677c62;super(),u(this,_0x3bafd4(0x115),new Map()),(this[_0x3bafd4(0x17f)]=_0x39ea48,this[_0x3bafd4(0x117)]=_0x5194b0,this['_collabSessionService']=_0xbcf7bb,this[_0x3bafd4(0xf0)]());}async[_0x677c62(0x180)](_0x346913){const _0x1a147f=_0x677c62;return this[_0x1a147f(0x115)][_0x1a147f(0x18f)](_0x346913)||await this['_startLiveShareCoordinator'](_0x346913),this[_0x1a147f(0x115)][_0x1a147f(0x177)](_0x346913);}[_0x677c62(0x16c)](_0x4d5ed1){const _0x147d15=_0x677c62;var _0x60949c;return(_0x60949c=this[_0x147d15(0x115)][_0x147d15(0x177)](_0x4d5ed1))!=null?_0x60949c:null;}[_0x677c62(0xf0)](){const _0x3f67ff=_0x677c62;this[_0x3f67ff(0x17f)][_0x3f67ff(0x156)](_0x59bb3d[_0x3f67ff(0x151)])['pipe'](_0x25db84(this[_0x3f67ff(0x18c)]))[_0x3f67ff(0x132)](async _0x39fcd2=>{const _0x2ea1b8=_0x3f67ff,_0x315eef=_0x39fcd2[_0x2ea1b8(0x155)]();this[_0x2ea1b8(0x115)]['has'](_0x315eef)||this[_0x2ea1b8(0x168)](_0x315eef);}),this[_0x3f67ff(0x17f)][_0x3f67ff(0x118)](_0x59bb3d[_0x3f67ff(0x151)])['pipe'](_0x25db84(this[_0x3f67ff(0x18c)]))['subscribe'](_0x47611a=>{const _0x127c93=_0x3f67ff,_0x2d547a=_0x47611a[_0x127c93(0x155)](),_0x4a8625=this['_entities'][_0x127c93(0x177)](_0x2d547a);_0x4a8625==null||_0x4a8625[_0x127c93(0xf4)]();});}async[_0x677c62(0x168)](_0x3c88e8){const _0x419b24=_0x677c62,_0x5aa624=await this[_0x419b24(0x18a)][_0x419b24(0x167)](_0x3c88e8),_0x3736b4=this[_0x419b24(0x117)]['createInstance'](N,_0x3c88e8,_0x5aa624);return _0x3736b4[_0x419b24(0x16e)](),this['_entities'][_0x419b24(0x16f)](_0x3c88e8,_0x3736b4),_0x3736b4;}};S=Y([_(0x0,_0x462a13),_(0x1,_0x417a9f(_0x3b9c73)),_(0x2,_0x417a9f(_0x2f8236))],S);var c=(_0xc2aec2=>(_0xc2aec2[_0x677c62(0x175)]=_0x677c62(0x114),_0xc2aec2['IDLE']=_0x677c62(0x131),_0xc2aec2[_0x677c62(0x122)]=_0x677c62(0xfe),_0xc2aec2[_0x677c62(0xfd)]='not-following',_0xc2aec2[_0x677c62(0x128)]='presenting',_0xc2aec2))(c||{});function _0x3808(_0x54abed,_0x361f76){_0x54abed=_0x54abed-0xe9;const _0xbfe495=_0xbfe4();let _0x3808f4=_0xbfe495[_0x54abed];return _0x3808f4;}const Ce=_0x677c62(0x178),De=0xc8;let N=class extends _0x45ebde{constructor(_0x4287cd,_0x14022b,_0x50398e,_0x129c92,_0x1a3692){const _0x20be58=_0x677c62;super(),u(this,_0x20be58(0x11f),new _0x5c595d('idle')),u(this,_0x20be58(0x17c),this[_0x20be58(0x11f)][_0x20be58(0x110)]()),u(this,_0x20be58(0xf0),!0x1),u(this,_0x20be58(0x190),null),u(this,_0x20be58(0x17d),null),(this[_0x20be58(0x179)]=_0x4287cd,this[_0x20be58(0x142)]=_0x14022b,this['_configService']=_0x50398e,this[_0x20be58(0xfa)]=_0x129c92,this[_0x20be58(0x16a)]=_0x1a3692);}get[_0x677c62(0x12d)](){const _0x121cab=_0x677c62;return this[_0x121cab(0x11f)][_0x121cab(0x166)]();}['dispose'](){const _0x2e54ad=_0x677c62;var _0x2f6852;(_0x2f6852=this[_0x2e54ad(0x190)])==null||_0x2f6852[_0x2e54ad(0xf4)](),this[_0x2e54ad(0x11f)][_0x2e54ad(0x189)]('idle'),this['_status$'][_0x2e54ad(0x184)]();}[_0x677c62(0x13c)](){const _0x22797e=_0x677c62;return this[_0x22797e(0x12d)];}[_0x677c62(0x16e)](){const _0x58480e=_0x677c62;this[_0x58480e(0xf0)]||(this[_0x58480e(0xf0)]=!0x0,this[_0x58480e(0x142)]['sessionStatus$'][_0x58480e(0xf5)](_0x25db84(this[_0x58480e(0x18c)]))[_0x58480e(0x132)](_0x409c26=>{const _0x41d48c=_0x58480e;switch(_0x409c26){case _0xdd466f[_0x41d48c(0x175)]:this[_0x41d48c(0x13d)]();break;case _0xdd466f[_0x41d48c(0x14e)]:this[_0x41d48c(0x146)]();break;}}),this['_collabSession'][_0x58480e(0xf7)][_0x58480e(0xf5)](_0x25db84(this[_0x58480e(0x18c)]))[_0x58480e(0x132)](_0x1552f2=>{const _0x1fffc6=_0x58480e,{eventID:_0x488e51}=_0x1552f2;switch(_0x488e51){case _0xce98bf[_0x1fffc6(0xf2)]:this[_0x1fffc6(0xf3)](_0x1552f2);break;case _0xce98bf[_0x1fffc6(0x12f)]:this[_0x1fffc6(0x14a)](_0x1552f2);break;case _0xce98bf[_0x1fffc6(0x102)]:this[_0x1fffc6(0x10a)]();break;case _0xce98bf[_0x1fffc6(0x15e)]:this[_0x1fffc6(0x147)](_0x1552f2);break;}}));}[_0x677c62(0x125)](){const _0x58f653=_0x677c62;this[_0x58f653(0x142)]['send']({'eventID':_0xce98bf[_0x58f653(0x12c)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x58f653(0x11a)]()}},this[_0x58f653(0x179)]);}[_0x677c62(0x14c)](){const _0x4c85ab=_0x677c62;this['_status']===_0x4c85ab(0x159)&&(this[_0x4c85ab(0x11f)][_0x4c85ab(0x189)](_0x4c85ab(0x131)),this['_collabSession']['send']({'eventID':_0xce98bf[_0x4c85ab(0x102)],'data':{'unitID':this[_0x4c85ab(0x179)]}},this['_unitID']));}[_0x677c62(0xff)](){const _0x4cb936=_0x677c62;this[_0x4cb936(0x12d)]===_0x4cb936(0x133)&&(this[_0x4cb936(0x11f)][_0x4cb936(0x189)](_0x4cb936(0xfe)),this['_startFollowing']());}['stopFollowing'](){const _0x3dde90=_0x677c62;this['_status']==='following'&&this[_0x3dde90(0x140)]();}[_0x677c62(0xf3)](_0xf5c76a){const _0xaf302d=_0x677c62,{presenter:_0x231298}=_0xf5c76a[_0xaf302d(0xfc)],_0x33b77a=this['_collabSession'][_0xaf302d(0x11a)]();this[_0xaf302d(0x17d)]=_0x231298,_0x231298===_0x33b77a?(this[_0xaf302d(0x140)](),this[_0xaf302d(0x112)]()):this[_0xaf302d(0x12d)]!==_0xaf302d(0x133)&&(this['_stopPresenting'](),this[_0xaf302d(0xf1)]());}['_fetchOperations'](){const _0x174e38=_0x677c62,_0x5a0198={'eventID':_0xce98bf[_0x174e38(0x164)]};this[_0x174e38(0x142)][_0x174e38(0x16b)](_0x5a0198,this['_unitID']);}[_0x677c62(0x10a)](){const _0x2be791=_0x677c62;this['_presenter']=null,this[_0x2be791(0x12d)]!==_0x2be791(0x159)&&this['_beIdle']();}[_0x677c62(0x147)](_0x2321c2){const _0x105b2b=_0x677c62;if(this[_0x105b2b(0x12d)]===_0x105b2b(0xfe)&&this[_0x105b2b(0x17d)]===_0x2321c2['data'][_0x105b2b(0x153)]){const _0x157263=_0x521a7f(_0x2321c2[_0x105b2b(0xfc)])[_0x105b2b(0x150)][_0x105b2b(0x17e)]()[_0x105b2b(0x13e)](_0x20490f=>_0x20490f['id']===_0x3ecc17['id']);if(_0x157263){const _0x26c201=_0x157263['params'][_0x105b2b(0x11e)],_0x5eac64=_0x157263[_0x105b2b(0x141)][_0x105b2b(0x104)]['id'];setTimeout(()=>{const _0xa1f714=_0x105b2b;this[_0xa1f714(0x16a)]['executeCommand'](_0x525cbd['id'],{'unitId':_0x26c201,'subUnitId':_0x5eac64},{'fromCollab':!0x0});});}}}[_0x677c62(0x112)](){const _0x386fba=_0x677c62;this[_0x386fba(0x11f)]['next']('presenting');const _0x2486e9=new Map(),_0x4a5187=this['_commandDisposable']=new _0x3103b8();_0x4a5187[_0x386fba(0x11c)](_0x35bb2c(()=>{const _0x3a8350=_0x386fba;_0x2486e9[_0x3a8350(0x192)](_0x44b6ff=>_0x44b6ff[_0x3a8350(0x184)]()),_0x2486e9['clear']();})),_0x4a5187[_0x386fba(0x11c)](this[_0x386fba(0x16a)][_0x386fba(0x152)](_0x514924=>{const _0x478059=_0x386fba;var _0x34fecc;if(_0x514924[_0x478059(0x12a)]!==_0xd9ac1c['OPERATION']||!this[_0x478059(0xfa)][_0x478059(0x173)](_0x514924['id']))return;const {id:_0x461e20}=_0x514924;let _0x239974;_0x2486e9[_0x478059(0x18f)](_0x461e20)?_0x239974=_0x2486e9['get'](_0x461e20):(_0x239974=new _0x39103d(),_0x2486e9['set'](_0x461e20,_0x239974),_0x239974[_0x478059(0xf5)](_0x1d50d9((_0x34fecc=this[_0x478059(0xea)]['getConfig'](Ce))!=null?_0x34fecc:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x478059(0x132)](_0x5b2b75=>{const _0x15bbaf=_0x478059;this[_0x15bbaf(0x142)][_0x15bbaf(0x16b)]({'eventID':_0xce98bf['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x15bbaf(0x179)],'operations':{[_0x5b2b75['id']]:{'id':_0x5b2b75['id'],'params':JSON[_0x15bbaf(0xef)](_0x5b2b75['params'])}}}},this[_0x15bbaf(0x179)]);})),_0x239974[_0x478059(0x189)](_0x514924);})),this[_0x386fba(0xfa)]['getInitialStates'](this[_0x386fba(0x179)])[_0x386fba(0x192)](_0x579bf1=>this['_collabSession'][_0x386fba(0x16b)]({'eventID':_0xce98bf[_0x386fba(0x12f)],'data':{'unitID':this[_0x386fba(0x179)],'operations':{[_0x579bf1['id']]:{'id':_0x579bf1['id'],'params':JSON['stringify'](_0x579bf1['params'])}}}},this[_0x386fba(0x179)]));}[_0x677c62(0xec)](){const _0x784670=_0x677c62;var _0x102a01;this[_0x784670(0x11f)][_0x784670(0x189)](_0x784670(0x131)),(_0x102a01=this[_0x784670(0x190)])==null||_0x102a01[_0x784670(0xf4)](),this[_0x784670(0x190)]=null;}['_startFollowing'](){const _0x5e1a59=_0x677c62;var _0x18fbb1;(_0x18fbb1=this[_0x5e1a59(0x190)])==null||_0x18fbb1[_0x5e1a59(0xf4)](),this['_status$'][_0x5e1a59(0x189)]('following');}[_0x677c62(0xe9)](){const _0x3c9a60=_0x677c62;var _0x55da4c;this[_0x3c9a60(0x11f)][_0x3c9a60(0x189)](_0x3c9a60(0x131)),(_0x55da4c=this['_commandDisposable'])==null||_0x55da4c['dispose'](),this[_0x3c9a60(0x190)]=null;}[_0x677c62(0x140)](){const _0x3b2598=_0x677c62;var _0x47f79a;this['_status$'][_0x3b2598(0x189)](_0x3b2598(0x133)),(_0x47f79a=this[_0x3b2598(0x190)])==null||_0x47f79a[_0x3b2598(0xf4)]();}[_0x677c62(0x14a)](_0x53ae76){const _0x44e00f=_0x677c62;if([_0x44e00f(0x159),'not-following','offline']['includes'](this['_status'])||!_0x53ae76['data']['presenter']||_0x53ae76['data'][_0x44e00f(0x138)]===this[_0x44e00f(0x142)][_0x44e00f(0x11a)]())return;this['_status']===_0x44e00f(0x131)&&this[_0x44e00f(0xf1)]();const _0x273b61=_0x53ae76['data'][_0x44e00f(0x124)];Object[_0x44e00f(0x174)](_0x273b61)[_0x44e00f(0x192)](_0x210396=>{const _0x1f3a63=_0x44e00f;this[_0x1f3a63(0x16a)][_0x1f3a63(0x13f)](_0x210396['id'],_0x210396['params']?JSON[_0x1f3a63(0x10c)](_0x210396[_0x1f3a63(0x141)]):null,{'fromCollab':!0x0});});}[_0x677c62(0x13d)](){const _0x12dcad=_0x677c62;var _0x52e959;this['_status$'][_0x12dcad(0x189)]('offline'),(_0x52e959=this[_0x12dcad(0x190)])==null||_0x52e959[_0x12dcad(0xf4)]();}[_0x677c62(0x146)](){const _0x57b420=_0x677c62;this[_0x57b420(0x11f)][_0x57b420(0x189)](_0x57b420(0x131)),this['_fetchOperations']();}};N=Y([_(0x2,_0x290042),_(0x3,_0x417a9f(L)),_(0x4,_0x394fbd)],N);function Le(){const _0x1bab48=_0x677c62,_0x27fe9f=_0x8ff637(S),_0x5902fd=_0x8ff637(_0x462a13),_0x1e2452=_0x31a57b(()=>_0x5902fd[_0x1bab48(0x16d)](_0x59bb3d[_0x1bab48(0x151)]),void 0x0,!0x1,[]),[_0x5add20,_0x18d091]=_0x15fd52(null),[_0x1aecf7,_0x1be6fa]=_0x15fd52(c['IDLE']),_0x169071=_0x5debc3(null);return _0x3ef286(()=>(_0x1e2452&&_0x27fe9f[_0x1bab48(0x180)](_0x1e2452['getUnitId']())[_0x1bab48(0x157)](_0x4fdae2=>{const _0x223994=_0x1bab48;_0x18d091(_0x4fdae2),_0x169071['current']=_0x4fdae2[_0x223994(0x17c)]['subscribe'](_0x5b5613=>{_0x1be6fa(_0x5b5613);});}),()=>{const _0x23be3e=_0x1bab48;var _0x56f23f;(_0x56f23f=_0x169071[_0x23be3e(0x15b)])==null||_0x56f23f[_0x23be3e(0x163)](),_0x169071['current']=null;}),[_0x1e2452,_0x27fe9f]),_0x5add20?_0x1ba63a(_0x390534,{'align':_0x1bab48(0x105),'disabled':_0x1aecf7===c[_0x1bab48(0x175)],'className':_0x1bab48(0x160),'overlay':_0x1ba63a(Re,{'status':_0x1aecf7,'coordinator':_0x5add20}),'children':_0x1ba63a(_0x1bab48(0x137),{'className':_0x56ce27(_0x1bab48(0x12e),{'univer-cursor-not-allowed':_0x1aecf7===c[_0x1bab48(0x175)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1aecf7!==c[_0x1bab48(0x175)]}),'type':_0x1bab48(0x137),'children':_0x1ba63a(W,{'className':_0x1bab48(0x15c)})})}):null;}function Re(_0x4c5826){const _0x278480=_0x677c62,{status:_0x231f23,coordinator:_0x35b071}=_0x4c5826;switch(_0x231f23){case c['IDLE']:return _0x1ba63a($e,{'coordinator':_0x35b071});case c[_0x278480(0x122)]:return _0x1ba63a(xe,{'coordinator':_0x35b071});case c[_0x278480(0xfd)]:return _0x1ba63a(Pe,{'coordinator':_0x35b071});case c['OFFLINE']:return _0x1ba63a(Te,{});case c['PRESENTING']:return _0x1ba63a(Ae,{'coordinator':_0x35b071});default:return null;}}function $e(_0x5f3fb7){const _0x1d8140=_0x677c62,{coordinator:_0x3c5e8a}=_0x5f3fb7;return _0x499084(_0x5e2a02,{'children':[_0x1ba63a(_0x1d8140(0x11d),{'className':_0x1d8140(0x191),'children':'Present\x20this\x20document'}),_0x1ba63a(_0x180649,{'onClick':()=>_0x3c5e8a[_0x1d8140(0x125)](),'children':_0x1d8140(0x130)})]});}function xe(_0x47f3d6){const _0x2c17f7=_0x677c62,{coordinator:_0x5c621d}=_0x47f3d6;return _0x499084(_0x5e2a02,{'children':[_0x1ba63a(_0x2c17f7(0x11d),{'className':_0x2c17f7(0x191),'children':_0x2c17f7(0x15d)}),_0x1ba63a(_0x180649,{'onClick':()=>_0x5c621d['stopFollowing'](),'children':_0x2c17f7(0x154)})]});}function Pe(_0x801605){const _0x5b93c6=_0x677c62,{coordinator:_0x56afb6}=_0x801605;return _0x499084(_0x5e2a02,{'children':[_0x1ba63a(_0x5b93c6(0x11d),{'className':_0x5b93c6(0x191),'children':_0x5b93c6(0x143)}),_0x1ba63a(_0x180649,{'variant':_0x5b93c6(0x100),'onClick':()=>_0x56afb6['startFollowing'](),'children':_0x5b93c6(0x170)})]});}function Ae(_0x361e8c){const _0x37c70a=_0x677c62,{coordinator:_0x58f302}=_0x361e8c;return _0x499084(_0x5e2a02,{'children':[_0x1ba63a(_0x37c70a(0x11d),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x1ba63a(_0x180649,{'variant':_0x37c70a(0x14d),'onClick':()=>_0x58f302['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Te(){const _0x3cf1ce=_0x677c62;return _0x1ba63a(_0x5e2a02,{'children':_0x3cf1ce(0x18b)});}var Fe=Object[_0x677c62(0x144)],He=(_0x514d62,_0x4c100f,_0x56753e,_0x53ecca)=>{const _0xc550b3=_0x677c62;for(var _0x36d3de=_0x53ecca>0x1?void 0x0:_0x53ecca?Fe(_0x4c100f,_0x56753e):_0x4c100f,_0x136886=_0x514d62[_0xc550b3(0x161)]-0x1,_0x20ec51;_0x136886>=0x0;_0x136886--)(_0x20ec51=_0x514d62[_0x136886])&&(_0x36d3de=_0x20ec51(_0x36d3de)||_0x36d3de);return _0x36d3de;},A=(_0x1e8fd0,_0x52ab63)=>(_0x4b2ada,_0x54faf5)=>_0x52ab63(_0x4b2ada,_0x54faf5,_0x1e8fd0);let m=class extends _0x2da4ee{constructor(_0x2ca09e,_0x54031a){const _0x5029e5=_0x677c62;super(),this['_injector']=_0x2ca09e,this[_0x5029e5(0x187)]=_0x54031a,this[_0x5029e5(0x107)]();}[_0x677c62(0x107)](){const _0x5eaebc=_0x677c62;this[_0x5eaebc(0x119)](this[_0x5eaebc(0x187)]['registerComponent'](_0x4d48d8[_0x5eaebc(0x185)],()=>_0x2e3eb5(Le,this[_0x5eaebc(0x117)])));}};m=He([A(0x0,_0x417a9f(_0x3b9c73)),A(0x1,_0x383d75)],m);const ye=_0x677c62(0x120),T={};var Ue=Object[_0x677c62(0x144)],Ve=(_0x3d3ea9,_0x472bf4,_0x143834,_0x2f6015)=>{const _0x436ada=_0x677c62;for(var _0x2f890a=_0x2f6015>0x1?void 0x0:_0x2f6015?Ue(_0x472bf4,_0x143834):_0x472bf4,_0x465d19=_0x3d3ea9[_0x436ada(0x161)]-0x1,_0x31c12f;_0x465d19>=0x0;_0x465d19--)(_0x31c12f=_0x3d3ea9[_0x465d19])&&(_0x2f890a=_0x31c12f(_0x2f890a)||_0x2f890a);return _0x2f890a;},je=(_0x38b2b1,_0x2e5e3a)=>(_0x515d43,_0x7bd3f9)=>_0x2e5e3a(_0x515d43,_0x7bd3f9,_0x38b2b1);let I=class extends _0x2da4ee{constructor(_0x4986ba){const _0x2e3600=_0x677c62;super(),this['_liveShareService']=_0x4986ba,this[_0x2e3600(0xf0)]();}[_0x677c62(0xf0)](){const _0x5aa2f8=_0x677c62;[_0x490dee['id'],_0x446e48['id'],_0x525cbd['id']][_0x5aa2f8(0x192)](_0x12b891=>{const _0x8ba955=_0x5aa2f8;this[_0x8ba955(0x119)](this['_liveShareService'][_0x8ba955(0x129)](_0x12b891));});}};I=Ve([je(0x0,_0x417a9f(L))],I);var Me=Object[_0x677c62(0x169)],ke=Object[_0x677c62(0x144)],Ge=(_0x5e418f,_0x4115a1,_0x1f93c6)=>_0x4115a1 in _0x5e418f?Me(_0x5e418f,_0x4115a1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f93c6}):_0x5e418f[_0x4115a1]=_0x1f93c6,We=(_0x5c8fc9,_0x5ef787,_0x2e3b1a,_0x307e46)=>{const _0x1b1ff6=_0x677c62;for(var _0x289e74=_0x307e46>0x1?void 0x0:_0x307e46?ke(_0x5ef787,_0x2e3b1a):_0x5ef787,_0x5dd4bd=_0x5c8fc9[_0x1b1ff6(0x161)]-0x1,_0x25f818;_0x5dd4bd>=0x0;_0x5dd4bd--)(_0x25f818=_0x5c8fc9[_0x5dd4bd])&&(_0x289e74=_0x25f818(_0x289e74)||_0x289e74);return _0x289e74;},F=(_0x242f12,_0x4f84a5)=>(_0x4e3d4e,_0x1e2fd4)=>_0x4f84a5(_0x4e3d4e,_0x1e2fd4,_0x242f12),B=(_0x4c5f46,_0x4c15ab,_0x400464)=>Ge(_0x4c5f46,typeof _0x4c15ab!=_0x677c62(0x10e)?_0x4c15ab+'':_0x4c15ab,_0x400464);const Ye=_0x677c62(0x13a);let b=class extends _0x2600c1{constructor(_0x2898ca=T,_0x3a688e,_0x226322){const _0x2d738f=_0x677c62;super(),this[_0x2d738f(0xf6)]=_0x2898ca,this[_0x2d738f(0x117)]=_0x3a688e,this['_configService']=_0x226322;const {..._0x4458c1}=_0x275afa({},T,this[_0x2d738f(0xf6)]);this[_0x2d738f(0xea)][_0x2d738f(0x113)](ye,_0x4458c1);}[_0x677c62(0x14f)](){const _0x15cdb2=_0x677c62;_0x557937(this[_0x15cdb2(0x117)],_0x410c61([[L],[S],[I],[m]],this[_0x15cdb2(0xf6)][_0x15cdb2(0x172)])),_0x5aa4a8(this[_0x15cdb2(0x117)],[[I]]);}[_0x677c62(0x171)](){const _0x2a6351=_0x677c62;_0x5aa4a8(this[_0x2a6351(0x117)],[[m]]);}};B(b,_0x677c62(0x12a),_0x59bb3d[_0x677c62(0x14b)]),B(b,_0x677c62(0x136),Ye),b=We([_0x165c63(_0x2a81a9),F(0x1,_0x417a9f(_0x3b9c73)),F(0x2,_0x290042)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5bfd09=_0x2449;(function(_0x2cdbe4,_0x2ab260){const _0x41d99f=_0x2449,_0x5b26fc=_0x2cdbe4();while(!![]){try{const _0x5c80e4=parseInt(_0x41d99f(0x1cf))/0x1*(-parseInt(_0x41d99f(0x1d6))/0x2)+-parseInt(_0x41d99f(0x1e8))/0x3*(-parseInt(_0x41d99f(0x1dd))/0x4)+parseInt(_0x41d99f(0x1e2))/0x5+-parseInt(_0x41d99f(0x1d8))/0x6+-parseInt(_0x41d99f(0x1eb))/0x7*(parseInt(_0x41d99f(0x1e4))/0x8)+parseInt(_0x41d99f(0x1db))/0x9+parseInt(_0x41d99f(0x1d5))/0xa;if(_0x5c80e4===_0x2ab260)break;else _0x5b26fc['push'](_0x5b26fc['shift']());}catch(_0x3bebd2){_0x5b26fc['push'](_0x5b26fc['shift']());}}}(_0x37cb,0xa6dfb));import{LiveShareController as _0x5abd77,LiveShareStatus as _0x5cf689}from'@univerjs-pro/live-share';function _0x2449(_0x380fd3,_0x1bc9fe){_0x380fd3=_0x380fd3-0x1cf;const _0x37cb9b=_0x37cb();let _0x2449b7=_0x37cb9b[_0x380fd3];return _0x2449b7;}import{IRenderManagerService as _0x4993a1}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x3438cd}from'@univerjs/sheets';import{SetScrollOperation as _0x4445e5}from'@univerjs/sheets-ui';import{FRange as _0x33be52}from'@univerjs/sheets/facade';import{FUniver as _0x395cca,FEnum as _0x967069}from'@univerjs/core/facade';class I extends _0x33be52{[_0x5bfd09(0x1df)](_0x16a596,_0x5796a9,_0x18ac9a,_0x1cf434,_0x48e2fe){const _0x5b28b2=_0x5bfd09,_0x3beb50=_0x16a596[_0x5b28b2(0x1d2)](_0x5abd77),_0x52d019=_0x16a596['get'](_0x4993a1),_0x2b07f9=_0x5796a9['getUnitId'](),_0x422009=_0x5796a9[_0x5b28b2(0x1d7)](),_0x211591=_0x3beb50[_0x5b28b2(0x1e1)](_0x2b07f9);(_0x211591==null?void 0x0:_0x211591['getStatus']())!==_0x5cf689['PRESENTING']||(_0x18ac9a['getSheetId']()!==_0x422009[_0x5b28b2(0x1ec)]()&&this[_0x5b28b2(0x1e6)][_0x5b28b2(0x1e3)](_0x3438cd['id'],{'unitId':_0x2b07f9,'subUnitId':_0x18ac9a[_0x5b28b2(0x1ec)]()}),!_0x52d019['getRenderById'](_0x2b07f9))||_0x48e2fe['syncExecuteCommand'](_0x4445e5['id'],{'unitId':_0x5796a9[_0x5b28b2(0x1e0)](),'sheetId':_0x18ac9a[_0x5b28b2(0x1ec)](),'sheetViewStartRow':_0x1cf434[_0x5b28b2(0x1d3)],'sheetViewStartColumn':_0x1cf434[_0x5b28b2(0x1d4)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x33be52['extend'](I);function _0x37cb(){const _0x3ad315=['3APzsRB','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startFollowing','42tIALwJ','getSheetId','getActiveWorkbook','stopFollowing','IDLE','1hQOHiT','tryStartPresenting','getId','get','startRow','startColumn','20491100TzjArv','2051834hFtBDa','getActiveSheet','4954392EMCOUS','No\x20active\x20workbook\x20found.','LiveShareStatusEnum','11264067lNXzHE','stopPresenting','1262116zWUsym','startPresenting','_initialize','getUnitId','getLiveShareCoordinatorSync','180540xxVgsO','executeCommand','1489528wcquIe','getLiveShareStatus','_commandService','_injector'];_0x37cb=function(){return _0x3ad315;};return _0x37cb();}class m extends _0x395cca{[_0x5bfd09(0x1e5)](){const _0x3e8982=_0x5bfd09;var _0x2d8454,_0x59fc11;const _0x5b276b=this['_injector'][_0x3e8982(0x1d2)](_0x5abd77),_0x194465=(_0x2d8454=this[_0x3e8982(0x1ed)]())==null?void 0x0:_0x2d8454['getId']();if(!_0x194465)throw new Error(_0x3e8982(0x1d9));const _0x48620e=_0x5b276b['getLiveShareCoordinatorSync'](_0x194465);return(_0x59fc11=_0x48620e==null?void 0x0:_0x48620e['getStatus']())!=null?_0x59fc11:_0x5cf689[_0x3e8982(0x1ef)];}[_0x5bfd09(0x1ea)](){const _0x6a1739=_0x5bfd09;var _0x4f4999;const _0x335a46=this[_0x6a1739(0x1e7)][_0x6a1739(0x1d2)](_0x5abd77),_0x575511=(_0x4f4999=this[_0x6a1739(0x1ed)]())==null?void 0x0:_0x4f4999[_0x6a1739(0x1d1)]();if(!_0x575511)throw new Error(_0x6a1739(0x1d9));const _0x46a05e=_0x335a46[_0x6a1739(0x1e1)](_0x575511);if(!_0x46a05e)throw new Error(_0x6a1739(0x1e9));_0x46a05e[_0x6a1739(0x1ea)]();}[_0x5bfd09(0x1ee)](){const _0x583634=_0x5bfd09;var _0x3ce0da;const _0x2d1f3e=this[_0x583634(0x1e7)]['get'](_0x5abd77),_0x474408=(_0x3ce0da=this['getActiveWorkbook']())==null?void 0x0:_0x3ce0da[_0x583634(0x1d1)]();if(!_0x474408)throw new Error('No\x20active\x20workbook\x20found.');const _0x86da03=_0x2d1f3e[_0x583634(0x1e1)](_0x474408);if(!_0x86da03)throw new Error(_0x583634(0x1e9));_0x86da03[_0x583634(0x1ee)]();}[_0x5bfd09(0x1de)](){const _0xa37057=_0x5bfd09;var _0x75eb90;const _0x5381fd=this['_injector'][_0xa37057(0x1d2)](_0x5abd77),_0x3df261=(_0x75eb90=this['getActiveWorkbook']())==null?void 0x0:_0x75eb90[_0xa37057(0x1d1)]();if(!_0x3df261)throw new Error('No\x20active\x20workbook\x20found.');const _0x201dc1=_0x5381fd['getLiveShareCoordinatorSync'](_0x3df261);if(!_0x201dc1)throw new Error(_0xa37057(0x1e9));_0x201dc1[_0xa37057(0x1d0)]();}[_0x5bfd09(0x1dc)](){const _0x121def=_0x5bfd09;var _0x1b671c;const _0x28d64e=this[_0x121def(0x1e7)][_0x121def(0x1d2)](_0x5abd77),_0x8563ca=(_0x1b671c=this[_0x121def(0x1ed)]())==null?void 0x0:_0x1b671c[_0x121def(0x1d1)]();if(!_0x8563ca)throw new Error('No\x20active\x20workbook\x20found.');const _0x51c61a=_0x28d64e['getLiveShareCoordinatorSync'](_0x8563ca);if(!_0x51c61a)throw new Error(_0x121def(0x1e9));_0x51c61a[_0x121def(0x1dc)]();}}_0x395cca['extend'](m);class C extends _0x967069{get[_0x5bfd09(0x1da)](){return _0x5cf689;}}_0x967069['extend'](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x457e80=_0x2812;(function(_0x2c63ea,_0x62541b){const _0x21b1b7=_0x2812,_0x59ae53=_0x2c63ea();while(!![]){try{const _0x5dfd38=parseInt(_0x21b1b7(0x12c))/0x1*(-parseInt(_0x21b1b7(0x14f))/0x2)+-parseInt(_0x21b1b7(0x1c3))/0x3*(parseInt(_0x21b1b7(0x1bf))/0x4)+parseInt(_0x21b1b7(0x147))/0x5*(parseInt(_0x21b1b7(0x177))/0x6)+parseInt(_0x21b1b7(0x12a))/0x7+parseInt(_0x21b1b7(0x158))/0x8+-parseInt(_0x21b1b7(0x1b1))/0x9+parseInt(_0x21b1b7(0x1b9))/0xa;if(_0x5dfd38===_0x62541b)break;else _0x59ae53['push'](_0x59ae53['shift']());}catch(_0x17e0da){_0x59ae53['push'](_0x59ae53['shift']());}}}(_0x4fed,0x5dcb0));var J=Object[_0x457e80(0x196)],K=(_0x4bbf97,_0x2dbdb7,_0x53c3db)=>_0x2dbdb7 in _0x4bbf97?J(_0x4bbf97,_0x2dbdb7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53c3db}):_0x4bbf97[_0x2dbdb7]=_0x53c3db,u=(_0x2ac2e6,_0x10b15a,_0x2b9414)=>K(_0x2ac2e6,typeof _0x10b15a!=_0x457e80(0x12e)?_0x10b15a+'':_0x10b15a,_0x2b9414);import{Disposable as _0x1dbba8,toDisposable as _0x2b7383,IUniverInstanceService as _0x409e69,Inject as _0x2cb216,Injector as _0x1ed2ca,IConfigService as _0x33b07b,ICommandService as _0x1849e6,RxDisposable as _0x123426,UniverInstanceType as _0x49fe72,DisposableCollection as _0x452cb9,CommandType as _0x16215c,DependentOn as _0x26a88b,Plugin as _0x36cb3f,merge as _0x3205c5,registerDependencies as _0x531e72,mergeOverrideWithDependencies as _0x5d731b,touchDependencies as _0x230ca3}from'@univerjs/core';import{useDependency as _0x10658c,useObservable as _0x464b8d,IUIPartsService as _0x5cd8c2,BuiltInUIPart as _0x57f012,connectInjector as _0x3cfc29}from'@univerjs/ui';function _0x4fed(){const _0x41e0a3=['send','Start\x20following','attrs','registerSharedOperation','clear','div','mask','then','string','executeCommand','Stop\x20following','delete','type','_fetchOperations','idle','includes','LIVESHARE_TERMINATE','_mountLiveShare','_presenter','currentColor','_handleNewChangeSets','ONLINE','IDLE','end','LIVESHARE_REQUEST_HOST','6tWaOfg','has','_configService','dispose','evenodd','registerComponent','xlink:href','_entities','createInstance','UNIVER_LIVE_SHARE_PLUGIN','pluginName','live-share.config','pipe','_injector','_status$','requireSession','override','assign','values','getUnitId','operations','tryStartPresenting','_collabSession','unitId','_liveShareService','_commandDisposable','tag','next','OFFLINE','following','length','defineProperty','Present\x20this\x20document','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','toString','UNIVER_UNKNOWN','_startPresenting','stopPresenting','_handleOperation','forEach','sheet','univerjs-icon\x20univerjs-icon-','get','button','UniverIcon','_startFollowing','colorChannel1','OPERATION','dispose$','SAME_OPERATION_SHARE_INTERVAL','_sharedOperations','replace','presenter','url(#$1','data','default','_handleOffline','getLiveShareCoordinator','3261258eTdobT','event$','You\x27re\x20presenting\x20the\x20document','LiveShareIcon','univer-size-4','_status','FOLLOWING','_uiPartsService','317930XQyvAs','getOwnPropertyDescriptor','You\x27are\x20offline.','parse','0\x200\x2017\x2017','http://www.w3.org/2000/svg','1004tWAbaf','LIVESHARE_FETCH_OPERATIONS','children','asObservable','3867aFzMeo','memberID','sessionStatus$','_reporters','status$','_unitID','use','5126814ZaiiOU','onCommandExecuted','7606AeYrnj','params','symbol','_univerInstanceService','current','stopFollowing','startFollowing','univer-mb-3\x20univer-w-full\x20univer-text-sm','disposeWithMe','complete','defs','add','_handleTerminate','shouldShareOperation','getMemberID','map','path','_config','_commandService','_stopFollowing','unsubscribe','_handleOnline','init','reverse','random','getLiveShareCoordinatorSync','defIds','3056245ynkjcx','entries','LIVESHARE_OPERATION','_init','_stopPresenting','presenting','not-following','displayName','118CUvrQb','UNIVER_SHEET','getInitialStates','idSuffix','onRendered','set','_handleNewHost','fill','PRESENTING','1147096VvkULi','Start','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','_collabSessionService','_startLiveShareCoordinator','subscribe'];_0x4fed=function(){return _0x41e0a3;};return _0x4fed();}import{jsx as _0x20f1bf,jsxs as _0x7c6f4a,Fragment as _0x4ea446}from'react/jsx-runtime';import{Dropdown as _0x453919,clsx as _0x40f0b2,Button as _0x588942}from'@univerjs/design';import{useRef as _0x1cdb79,createElement as _0x1a7b27,forwardRef as _0x15364b,useState as _0x408c56,useEffect as _0x14ee1d}from'react';import{CollaborationEvent as _0x40f9b1,parseProtocolChangeset as _0x55d15c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x379963,SessionStatus as _0x3602b9,UniverCollaborationClientPlugin as _0x4cf46e}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x17b5b6,SetWorksheetActiveOperation as _0x5d7627}from'@univerjs/sheets';import{BehaviorSubject as _0x2d4397,Subject as _0x45a108}from'rxjs';import{takeUntil as _0x1446cd,throttleTime as _0x36d9d3}from'rxjs/operators';import{SetZoomRatioOperation as _0x592b93,SetScrollOperation as _0x593fcd}from'@univerjs/sheets-ui';function k({ref:_0x11d235,..._0x5e4dcb}){const _0x5b6dd3=_0x457e80,{icon:_0x48ac9e,id:_0x5f2dae,className:_0x460634,extend:_0x4d0ee7,..._0x338891}=_0x5e4dcb,_0x59f2a5=(_0x5b6dd3(0x1a0)+_0x5f2dae+'\x20'+(_0x460634||''))['trim'](),_0x5d8957=_0x1cdb79('_'+Oe());return G(_0x48ac9e,''+_0x5f2dae,{'defIds':_0x48ac9e[_0x5b6dd3(0x146)],'idSuffix':_0x5d8957[_0x5b6dd3(0x130)]},{'ref':_0x11d235,'className':_0x59f2a5,..._0x338891},_0x4d0ee7);}function G(_0x23b7a8,_0x730401,_0x34c77a,_0x30b007,_0x292573){const _0x2a6d4f=_0x457e80;return _0x1a7b27(_0x23b7a8[_0x2a6d4f(0x191)],{'key':_0x730401,...be(_0x23b7a8,_0x34c77a,_0x292573),..._0x30b007},(Ee(_0x23b7a8,_0x34c77a)[_0x2a6d4f(0x1c1)]||[])[_0x2a6d4f(0x13b)]((_0x1ecb25,_0x1874ba)=>G(_0x1ecb25,_0x730401+'-'+_0x23b7a8['tag']+'-'+_0x1874ba,_0x34c77a,void 0x0,_0x292573)));}function be(_0x3a45cb,_0x3365b1,_0x3369d8){const _0x410a69=_0x457e80,_0x3bf41e={..._0x3a45cb[_0x410a69(0x160)]};_0x3369d8!=null&&_0x3369d8[_0x410a69(0x1a5)]&&_0x3bf41e[_0x410a69(0x156)]==='colorChannel1'&&(_0x3bf41e['fill']=_0x3369d8[_0x410a69(0x1a5)]),_0x3a45cb[_0x410a69(0x191)]===_0x410a69(0x164)&&_0x3bf41e['id']&&(_0x3bf41e['id']=_0x3bf41e['id']+_0x3365b1[_0x410a69(0x152)]),Object[_0x410a69(0x148)](_0x3bf41e)[_0x410a69(0x19e)](([_0xa65e1c,_0x2ea8d8])=>{const _0x37d730=_0x410a69;_0xa65e1c===_0x37d730(0x164)&&typeof _0x2ea8d8==_0x37d730(0x166)&&(_0x3bf41e[_0xa65e1c]=_0x2ea8d8[_0x37d730(0x1aa)](/url\(#(.*)\)/,_0x37d730(0x1ac)+_0x3365b1['idSuffix']+')'));});const {defIds:_0x4782f6}=_0x3365b1;return!_0x4782f6||_0x4782f6[_0x410a69(0x195)]===0x0||(_0x3a45cb[_0x410a69(0x191)]===_0x410a69(0x129)&&_0x3bf41e[_0x410a69(0x17d)]&&(_0x3bf41e[_0x410a69(0x17d)]=_0x3bf41e['xlink:href']+_0x3365b1[_0x410a69(0x152)]),Object[_0x410a69(0x148)](_0x3bf41e)[_0x410a69(0x19e)](([_0x1dc1c9,_0x1b4aa4])=>{const _0x5916e1=_0x410a69;typeof _0x1b4aa4==_0x5916e1(0x166)&&(_0x3bf41e[_0x1dc1c9]=_0x1b4aa4['replace'](/url\(#(.*)\)/,'url(#$1'+_0x3365b1['idSuffix']+')'));})),_0x3bf41e;}function Ee(_0x3363d9,_0x14428d){const _0x4c3def=_0x457e80;var _0x2d784e;const {defIds:_0x422d84}=_0x14428d;return!_0x422d84||_0x422d84[_0x4c3def(0x195)]===0x0?_0x3363d9:_0x3363d9[_0x4c3def(0x191)]===_0x4c3def(0x136)&&((_0x2d784e=_0x3363d9[_0x4c3def(0x1c1)])!=null&&_0x2d784e[_0x4c3def(0x195)])?{..._0x3363d9,'children':_0x3363d9[_0x4c3def(0x1c1)][_0x4c3def(0x13b)](_0x46d4d6=>typeof _0x46d4d6[_0x4c3def(0x160)]['id']=='string'&&_0x422d84&&_0x422d84[_0x4c3def(0x16d)](_0x46d4d6[_0x4c3def(0x160)]['id'])?{..._0x46d4d6,'attrs':{..._0x46d4d6['attrs'],'id':_0x46d4d6[_0x4c3def(0x160)]['id']+_0x14428d[_0x4c3def(0x152)]}}:_0x46d4d6)}:_0x3363d9;}function Oe(){const _0x27b388=_0x457e80;return Math[_0x27b388(0x144)]()[_0x27b388(0x199)](0x24)['substring'](0x2,0x8);}k[_0x457e80(0x14e)]=_0x457e80(0x1a3);const we={'tag':'svg','attrs':{'xmlns':_0x457e80(0x1be),'fill':'none','viewBox':_0x457e80(0x1bd),'width':'1em','height':'1em'},'children':[{'tag':_0x457e80(0x13c),'attrs':{'fill':_0x457e80(0x171),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x457e80(0x171),'d':_0x457e80(0x15a),'fillRule':_0x457e80(0x17b),'clipRule':_0x457e80(0x17b)}}]},W=_0x15364b(function(_0x4aef97,_0x1428d6){const _0x57f284=_0x457e80;return _0x1a7b27(k,Object[_0x57f284(0x188)]({},_0x4aef97,{'id':'live-share-icon','ref':_0x1428d6,'icon':we}));});W[_0x457e80(0x14e)]=_0x457e80(0x1b4);class L extends _0x1dbba8{constructor(){const _0x81ba0f=_0x457e80;super(...arguments),u(this,_0x81ba0f(0x1a9),new Set()),u(this,_0x81ba0f(0x126),new Set());}[_0x457e80(0x161)](_0x3a580f){const _0x7c62e3=_0x457e80;return this['_sharedOperations'][_0x7c62e3(0x137)](_0x3a580f),_0x2b7383(()=>this[_0x7c62e3(0x1a9)][_0x7c62e3(0x169)](_0x3a580f));}['registerInitialStateReporter'](_0x33d605){const _0xe7c985=_0x457e80;return this[_0xe7c985(0x126)][_0xe7c985(0x137)](_0x33d605),_0x2b7383(()=>this[_0xe7c985(0x126)][_0xe7c985(0x169)](_0x33d605));}[_0x457e80(0x139)](_0x4f07cf){const _0x5bf4fa=_0x457e80;return this[_0x5bf4fa(0x1a9)][_0x5bf4fa(0x178)](_0x4f07cf);}[_0x457e80(0x151)](_0x10fe1b){const _0x54fa1c=_0x457e80;return Array['from'](this[_0x54fa1c(0x126)])[_0x54fa1c(0x13b)](_0x29ba04=>_0x29ba04(_0x10fe1b));}}var Ne=Object[_0x457e80(0x1ba)],Y=(_0x4df76c,_0x49e790,_0x31d5bf,_0x4e94dd)=>{for(var _0x555ea4=_0x4e94dd>0x1?void 0x0:_0x4e94dd?Ne(_0x49e790,_0x31d5bf):_0x49e790,_0x2c0c87=_0x4df76c['length']-0x1,_0x169401;_0x2c0c87>=0x0;_0x2c0c87--)(_0x169401=_0x4df76c[_0x2c0c87])&&(_0x555ea4=_0x169401(_0x555ea4)||_0x555ea4);return _0x555ea4;},_=(_0x34426f,_0x3a6871)=>(_0x216ecf,_0x1dd872)=>_0x3a6871(_0x216ecf,_0x1dd872,_0x34426f);let S=class extends _0x123426{constructor(_0x5d080b,_0xe865da,_0x5b2303){const _0x3e47cc=_0x457e80;super(),u(this,'_entities',new Map()),(this[_0x3e47cc(0x12f)]=_0x5d080b,this['_injector']=_0xe865da,this['_collabSessionService']=_0x5b2303,this[_0x3e47cc(0x14a)]());}async[_0x457e80(0x1b0)](_0x3331f9){const _0x33f4e0=_0x457e80;return this[_0x33f4e0(0x17e)][_0x33f4e0(0x178)](_0x3331f9)||await this[_0x33f4e0(0x15c)](_0x3331f9),this[_0x33f4e0(0x17e)][_0x33f4e0(0x1a1)](_0x3331f9);}[_0x457e80(0x145)](_0x44173e){const _0x487ce2=_0x457e80;var _0x553328;return(_0x553328=this[_0x487ce2(0x17e)]['get'](_0x44173e))!=null?_0x553328:null;}[_0x457e80(0x14a)](){const _0x253937=_0x457e80;this[_0x253937(0x12f)]['getTypeOfUnitAdded$'](_0x49fe72[_0x253937(0x150)])[_0x253937(0x183)](_0x1446cd(this[_0x253937(0x1a7)]))['subscribe'](async _0xacd81e=>{const _0xbcc795=_0x253937,_0x2f7b99=_0xacd81e[_0xbcc795(0x18a)]();this[_0xbcc795(0x17e)][_0xbcc795(0x178)](_0x2f7b99)||this['_startLiveShareCoordinator'](_0x2f7b99);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x49fe72['UNIVER_SHEET'])[_0x253937(0x183)](_0x1446cd(this[_0x253937(0x1a7)]))['subscribe'](_0x5111fe=>{const _0x4b2891=_0x253937,_0xea04c2=_0x5111fe[_0x4b2891(0x18a)](),_0x1286e9=this['_entities'][_0x4b2891(0x1a1)](_0xea04c2);_0x1286e9==null||_0x1286e9[_0x4b2891(0x17a)]();});}async[_0x457e80(0x15c)](_0x16fa01){const _0x4f530f=_0x457e80,_0x459156=await this[_0x4f530f(0x15b)][_0x4f530f(0x186)](_0x16fa01),_0x294852=this[_0x4f530f(0x184)][_0x4f530f(0x17f)](N,_0x16fa01,_0x459156);return _0x294852[_0x4f530f(0x142)](),this[_0x4f530f(0x17e)]['set'](_0x16fa01,_0x294852),_0x294852;}};S=Y([_(0x0,_0x409e69),_(0x1,_0x2cb216(_0x1ed2ca)),_(0x2,_0x2cb216(_0x379963))],S);var c=(_0x4a21b9=>(_0x4a21b9['OFFLINE']='offline',_0x4a21b9['IDLE']=_0x457e80(0x16c),_0x4a21b9[_0x457e80(0x1b7)]=_0x457e80(0x194),_0x4a21b9['NOT_FOLLOWING']='not-following',_0x4a21b9[_0x457e80(0x157)]=_0x457e80(0x14c),_0x4a21b9))(c||{});const Ce=_0x457e80(0x1a8),De=0xc8;let N=class extends _0x123426{constructor(_0x2811d3,_0x47b018,_0x2cf313,_0x34d67a,_0x2b5476){const _0x306d49=_0x457e80;super(),u(this,'_status$',new _0x2d4397(_0x306d49(0x16c))),u(this,_0x306d49(0x127),this[_0x306d49(0x185)][_0x306d49(0x1c2)]()),u(this,_0x306d49(0x14a),!0x1),u(this,_0x306d49(0x190),null),u(this,_0x306d49(0x170),null),(this[_0x306d49(0x128)]=_0x2811d3,this[_0x306d49(0x18d)]=_0x47b018,this[_0x306d49(0x179)]=_0x2cf313,this[_0x306d49(0x18f)]=_0x34d67a,this['_commandService']=_0x2b5476);}get[_0x457e80(0x1b6)](){return this['_status$']['getValue']();}[_0x457e80(0x17a)](){const _0x215005=_0x457e80;var _0xfa1b51;(_0xfa1b51=this['_commandDisposable'])==null||_0xfa1b51[_0x215005(0x17a)](),this[_0x215005(0x185)]['next'](_0x215005(0x16c)),this[_0x215005(0x185)][_0x215005(0x135)]();}['getStatus'](){const _0x3ade07=_0x457e80;return this[_0x3ade07(0x1b6)];}['init'](){const _0x45cc04=_0x457e80;this[_0x45cc04(0x14a)]||(this[_0x45cc04(0x14a)]=!0x0,this[_0x45cc04(0x18d)][_0x45cc04(0x125)][_0x45cc04(0x183)](_0x1446cd(this[_0x45cc04(0x1a7)]))['subscribe'](_0x2247ee=>{const _0x34a297=_0x45cc04;switch(_0x2247ee){case _0x3602b9[_0x34a297(0x193)]:this[_0x34a297(0x1af)]();break;case _0x3602b9[_0x34a297(0x173)]:this[_0x34a297(0x141)]();break;}}),this[_0x45cc04(0x18d)][_0x45cc04(0x1b2)][_0x45cc04(0x183)](_0x1446cd(this['dispose$']))[_0x45cc04(0x15d)](_0x1161b3=>{const _0x4291c1=_0x45cc04,{eventID:_0x50fd1e}=_0x1161b3;switch(_0x50fd1e){case _0x40f9b1['LIVESHARE_NEW_HOST']:this[_0x4291c1(0x155)](_0x1161b3);break;case _0x40f9b1[_0x4291c1(0x149)]:this[_0x4291c1(0x19d)](_0x1161b3);break;case _0x40f9b1[_0x4291c1(0x16e)]:this[_0x4291c1(0x138)]();break;case _0x40f9b1['NEW_CHANGESETS']:this[_0x4291c1(0x172)](_0x1161b3);break;}}));}[_0x457e80(0x18c)](){const _0x31dc7f=_0x457e80;this['_collabSession'][_0x31dc7f(0x15e)]({'eventID':_0x40f9b1[_0x31dc7f(0x176)],'data':{'unitID':this[_0x31dc7f(0x128)],'userID':this['_collabSession'][_0x31dc7f(0x13a)]()}},this[_0x31dc7f(0x128)]);}[_0x457e80(0x19c)](){const _0x5addb4=_0x457e80;this['_status']==='presenting'&&(this['_status$'][_0x5addb4(0x192)](_0x5addb4(0x16c)),this[_0x5addb4(0x18d)]['send']({'eventID':_0x40f9b1[_0x5addb4(0x16e)],'data':{'unitID':this[_0x5addb4(0x128)]}},this[_0x5addb4(0x128)]));}[_0x457e80(0x132)](){const _0x578c75=_0x457e80;this[_0x578c75(0x1b6)]===_0x578c75(0x14d)&&(this['_status$']['next'](_0x578c75(0x194)),this[_0x578c75(0x1a4)]());}[_0x457e80(0x131)](){const _0x3d5bc0=_0x457e80;this[_0x3d5bc0(0x1b6)]==='following'&&this[_0x3d5bc0(0x13f)]();}[_0x457e80(0x155)](_0x29bea4){const _0x3a4ff9=_0x457e80,{presenter:_0x10be51}=_0x29bea4[_0x3a4ff9(0x1ad)],_0x2a8737=this[_0x3a4ff9(0x18d)]['getMemberID']();this[_0x3a4ff9(0x170)]=_0x10be51,_0x10be51===_0x2a8737?(this['_stopFollowing'](),this['_startPresenting']()):this['_status']!==_0x3a4ff9(0x14d)&&(this[_0x3a4ff9(0x14b)](),this['_startFollowing']());}[_0x457e80(0x16b)](){const _0x309c15=_0x457e80,_0x29d7b2={'eventID':_0x40f9b1[_0x309c15(0x1c0)]};this[_0x309c15(0x18d)][_0x309c15(0x15e)](_0x29d7b2,this['_unitID']);}[_0x457e80(0x138)](){const _0x57c423=_0x457e80;this[_0x57c423(0x170)]=null,this[_0x57c423(0x1b6)]!==_0x57c423(0x14c)&&this['_beIdle']();}[_0x457e80(0x172)](_0x492282){const _0x23fa2b=_0x457e80;if(this[_0x23fa2b(0x1b6)]===_0x23fa2b(0x194)&&this[_0x23fa2b(0x170)]===_0x492282['data'][_0x23fa2b(0x124)]){const _0x11f75c=_0x55d15c(_0x492282['data'])['mutations'][_0x23fa2b(0x143)]()['find'](_0xc5df71=>_0xc5df71['id']===_0x17b5b6['id']);if(_0x11f75c){const _0x44fc3c=_0x11f75c[_0x23fa2b(0x12d)][_0x23fa2b(0x18e)],_0xa94a49=_0x11f75c['params'][_0x23fa2b(0x19f)]['id'];setTimeout(()=>{const _0x1e6f39=_0x23fa2b;this[_0x1e6f39(0x13e)][_0x1e6f39(0x167)](_0x5d7627['id'],{'unitId':_0x44fc3c,'subUnitId':_0xa94a49},{'fromCollab':!0x0});});}}}[_0x457e80(0x19b)](){const _0x5d160d=_0x457e80;this[_0x5d160d(0x185)][_0x5d160d(0x192)]('presenting');const _0x489eb8=new Map(),_0x485d88=this[_0x5d160d(0x190)]=new _0x452cb9();_0x485d88[_0x5d160d(0x137)](_0x2b7383(()=>{const _0x114852=_0x5d160d;_0x489eb8[_0x114852(0x19e)](_0x336bff=>_0x336bff[_0x114852(0x135)]()),_0x489eb8[_0x114852(0x162)]();})),_0x485d88['add'](this[_0x5d160d(0x13e)][_0x5d160d(0x12b)](_0x3ed3bf=>{const _0x102fb3=_0x5d160d;var _0x4382f3;if(_0x3ed3bf['type']!==_0x16215c[_0x102fb3(0x1a6)]||!this[_0x102fb3(0x18f)][_0x102fb3(0x139)](_0x3ed3bf['id']))return;const {id:_0x57bdf0}=_0x3ed3bf;let _0xbdfd93;_0x489eb8['has'](_0x57bdf0)?_0xbdfd93=_0x489eb8[_0x102fb3(0x1a1)](_0x57bdf0):(_0xbdfd93=new _0x45a108(),_0x489eb8[_0x102fb3(0x154)](_0x57bdf0,_0xbdfd93),_0xbdfd93['pipe'](_0x36d9d3((_0x4382f3=this[_0x102fb3(0x179)]['getConfig'](Ce))!=null?_0x4382f3:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x102fb3(0x15d)](_0xabba34=>{const _0x28447a=_0x102fb3;this['_collabSession']['send']({'eventID':_0x40f9b1[_0x28447a(0x149)],'data':{'unitID':this[_0x28447a(0x128)],'operations':{[_0xabba34['id']]:{'id':_0xabba34['id'],'params':JSON['stringify'](_0xabba34[_0x28447a(0x12d)])}}}},this[_0x28447a(0x128)]);})),_0xbdfd93[_0x102fb3(0x192)](_0x3ed3bf);})),this[_0x5d160d(0x18f)][_0x5d160d(0x151)](this[_0x5d160d(0x128)])[_0x5d160d(0x19e)](_0x18b1e7=>this[_0x5d160d(0x18d)][_0x5d160d(0x15e)]({'eventID':_0x40f9b1[_0x5d160d(0x149)],'data':{'unitID':this['_unitID'],'operations':{[_0x18b1e7['id']]:{'id':_0x18b1e7['id'],'params':JSON['stringify'](_0x18b1e7[_0x5d160d(0x12d)])}}}},this[_0x5d160d(0x128)]));}[_0x457e80(0x14b)](){const _0x151cc9=_0x457e80;var _0x2ecc0c;this[_0x151cc9(0x185)][_0x151cc9(0x192)](_0x151cc9(0x16c)),(_0x2ecc0c=this[_0x151cc9(0x190)])==null||_0x2ecc0c[_0x151cc9(0x17a)](),this[_0x151cc9(0x190)]=null;}[_0x457e80(0x1a4)](){const _0x386a14=_0x457e80;var _0x739216;(_0x739216=this[_0x386a14(0x190)])==null||_0x739216[_0x386a14(0x17a)](),this[_0x386a14(0x185)]['next'](_0x386a14(0x194));}['_beIdle'](){const _0x12fb00=_0x457e80;var _0x1da624;this[_0x12fb00(0x185)][_0x12fb00(0x192)]('idle'),(_0x1da624=this[_0x12fb00(0x190)])==null||_0x1da624[_0x12fb00(0x17a)](),this[_0x12fb00(0x190)]=null;}['_stopFollowing'](){const _0x52c12e=_0x457e80;var _0x335060;this['_status$'][_0x52c12e(0x192)](_0x52c12e(0x14d)),(_0x335060=this[_0x52c12e(0x190)])==null||_0x335060[_0x52c12e(0x17a)]();}['_handleOperation'](_0x3edf9e){const _0x371b5f=_0x457e80;if(['presenting',_0x371b5f(0x14d),'offline'][_0x371b5f(0x16d)](this['_status'])||!_0x3edf9e[_0x371b5f(0x1ad)][_0x371b5f(0x1ab)]||_0x3edf9e['data'][_0x371b5f(0x1ab)]===this[_0x371b5f(0x18d)][_0x371b5f(0x13a)]())return;this[_0x371b5f(0x1b6)]==='idle'&&this['_startFollowing']();const _0x414c88=_0x3edf9e[_0x371b5f(0x1ad)][_0x371b5f(0x18b)];Object[_0x371b5f(0x189)](_0x414c88)[_0x371b5f(0x19e)](_0x365b98=>{const _0x26a95b=_0x371b5f;this[_0x26a95b(0x13e)][_0x26a95b(0x167)](_0x365b98['id'],_0x365b98[_0x26a95b(0x12d)]?JSON[_0x26a95b(0x1bc)](_0x365b98['params']):null,{'fromCollab':!0x0});});}[_0x457e80(0x1af)](){const _0x146ac7=_0x457e80;var _0x23cf12;this[_0x146ac7(0x185)][_0x146ac7(0x192)]('offline'),(_0x23cf12=this[_0x146ac7(0x190)])==null||_0x23cf12['dispose']();}[_0x457e80(0x141)](){const _0x356063=_0x457e80;this[_0x356063(0x185)]['next'](_0x356063(0x16c)),this[_0x356063(0x16b)]();}};function _0x2812(_0x5b61e4,_0x52a625){_0x5b61e4=_0x5b61e4-0x124;const _0x4fed2f=_0x4fed();let _0x281277=_0x4fed2f[_0x5b61e4];return _0x281277;}N=Y([_(0x2,_0x33b07b),_(0x3,_0x2cb216(L)),_(0x4,_0x1849e6)],N);function Le(){const _0x169dcc=_0x457e80,_0x276fc6=_0x10658c(S),_0x55660b=_0x10658c(_0x409e69),_0x43ac06=_0x464b8d(()=>_0x55660b['getCurrentTypeOfUnit$'](_0x49fe72[_0x169dcc(0x150)]),void 0x0,!0x1,[]),[_0x4b9bda,_0x455b1f]=_0x408c56(null),[_0xbd5ed6,_0x23eff9]=_0x408c56(c[_0x169dcc(0x174)]),_0x311c4c=_0x1cdb79(null);return _0x14ee1d(()=>(_0x43ac06&&_0x276fc6[_0x169dcc(0x1b0)](_0x43ac06[_0x169dcc(0x18a)]())[_0x169dcc(0x165)](_0x476acd=>{const _0x2d4ee6=_0x169dcc;_0x455b1f(_0x476acd),_0x311c4c[_0x2d4ee6(0x130)]=_0x476acd[_0x2d4ee6(0x127)][_0x2d4ee6(0x15d)](_0x315042=>{_0x23eff9(_0x315042);});}),()=>{const _0x5a344f=_0x169dcc;var _0x445c01;(_0x445c01=_0x311c4c[_0x5a344f(0x130)])==null||_0x445c01[_0x5a344f(0x140)](),_0x311c4c['current']=null;}),[_0x43ac06,_0x276fc6]),_0x4b9bda?_0x20f1bf(_0x453919,{'align':_0x169dcc(0x175),'disabled':_0xbd5ed6===c[_0x169dcc(0x193)],'className':_0x169dcc(0x198),'overlay':_0x20f1bf(Re,{'status':_0xbd5ed6,'coordinator':_0x4b9bda}),'children':_0x20f1bf('button',{'className':_0x40f0b2('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xbd5ed6===c[_0x169dcc(0x193)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xbd5ed6!==c[_0x169dcc(0x193)]}),'type':_0x169dcc(0x1a2),'children':_0x20f1bf(W,{'className':_0x169dcc(0x1b5)})})}):null;}function Re(_0x90ce32){const _0x37b8e3=_0x457e80,{status:_0x1f8983,coordinator:_0x2bc9f9}=_0x90ce32;switch(_0x1f8983){case c[_0x37b8e3(0x174)]:return _0x20f1bf($e,{'coordinator':_0x2bc9f9});case c[_0x37b8e3(0x1b7)]:return _0x20f1bf(xe,{'coordinator':_0x2bc9f9});case c['NOT_FOLLOWING']:return _0x20f1bf(Pe,{'coordinator':_0x2bc9f9});case c[_0x37b8e3(0x193)]:return _0x20f1bf(Te,{});case c['PRESENTING']:return _0x20f1bf(Ae,{'coordinator':_0x2bc9f9});default:return null;}}function $e(_0x1e099c){const _0x82d8c5=_0x457e80,{coordinator:_0x1d52d3}=_0x1e099c;return _0x7c6f4a(_0x4ea446,{'children':[_0x20f1bf(_0x82d8c5(0x163),{'className':_0x82d8c5(0x133),'children':_0x82d8c5(0x197)}),_0x20f1bf(_0x588942,{'onClick':()=>_0x1d52d3['tryStartPresenting'](),'children':_0x82d8c5(0x159)})]});}function xe(_0x56576c){const _0x3dcf61=_0x457e80,{coordinator:_0x3a4b3f}=_0x56576c;return _0x7c6f4a(_0x4ea446,{'children':[_0x20f1bf(_0x3dcf61(0x163),{'className':_0x3dcf61(0x133),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x20f1bf(_0x588942,{'onClick':()=>_0x3a4b3f[_0x3dcf61(0x131)](),'children':_0x3dcf61(0x168)})]});}function Pe(_0x53fc7d){const _0x2ab574=_0x457e80,{coordinator:_0x481262}=_0x53fc7d;return _0x7c6f4a(_0x4ea446,{'children':[_0x20f1bf(_0x2ab574(0x163),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x20f1bf(_0x588942,{'variant':'text','onClick':()=>_0x481262['startFollowing'](),'children':_0x2ab574(0x15f)})]});}function Ae(_0x8d314c){const _0x5e1447=_0x457e80,{coordinator:_0x31cad4}=_0x8d314c;return _0x7c6f4a(_0x4ea446,{'children':[_0x20f1bf(_0x5e1447(0x163),{'className':_0x5e1447(0x133),'children':_0x5e1447(0x1b3)}),_0x20f1bf(_0x588942,{'variant':_0x5e1447(0x1ae),'onClick':()=>_0x31cad4[_0x5e1447(0x19c)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x4d1053=_0x457e80;return _0x20f1bf(_0x4ea446,{'children':_0x4d1053(0x1bb)});}var Fe=Object[_0x457e80(0x1ba)],He=(_0x3c79b8,_0x5bc4c7,_0x26f9be,_0x47cac2)=>{const _0x254bbd=_0x457e80;for(var _0x2698cb=_0x47cac2>0x1?void 0x0:_0x47cac2?Fe(_0x5bc4c7,_0x26f9be):_0x5bc4c7,_0x7e204=_0x3c79b8[_0x254bbd(0x195)]-0x1,_0x9d5e49;_0x7e204>=0x0;_0x7e204--)(_0x9d5e49=_0x3c79b8[_0x7e204])&&(_0x2698cb=_0x9d5e49(_0x2698cb)||_0x2698cb);return _0x2698cb;},A=(_0x17e6c7,_0x5beab7)=>(_0x5b61d3,_0x23efac)=>_0x5beab7(_0x5b61d3,_0x23efac,_0x17e6c7);let m=class extends _0x1dbba8{constructor(_0x4bf02c,_0x1c3892){const _0x32ff85=_0x457e80;super(),this[_0x32ff85(0x184)]=_0x4bf02c,this[_0x32ff85(0x1b8)]=_0x1c3892,this['_mountLiveShare']();}[_0x457e80(0x16f)](){const _0x26f0c7=_0x457e80;this[_0x26f0c7(0x134)](this[_0x26f0c7(0x1b8)][_0x26f0c7(0x17c)](_0x57f012['HEADER_MENU'],()=>_0x3cfc29(Le,this[_0x26f0c7(0x184)])));}};m=He([A(0x0,_0x2cb216(_0x1ed2ca)),A(0x1,_0x5cd8c2)],m);const ye=_0x457e80(0x182),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x22d05f,_0x320e47,_0x46a071,_0x276b61)=>{const _0x30290e=_0x457e80;for(var _0xe0bb6b=_0x276b61>0x1?void 0x0:_0x276b61?Ue(_0x320e47,_0x46a071):_0x320e47,_0x59f01b=_0x22d05f[_0x30290e(0x195)]-0x1,_0x44621a;_0x59f01b>=0x0;_0x59f01b--)(_0x44621a=_0x22d05f[_0x59f01b])&&(_0xe0bb6b=_0x44621a(_0xe0bb6b)||_0xe0bb6b);return _0xe0bb6b;},je=(_0x3ee1a6,_0x3bb214)=>(_0x4b8a39,_0x4c77bb)=>_0x3bb214(_0x4b8a39,_0x4c77bb,_0x3ee1a6);let I=class extends _0x1dbba8{constructor(_0x23f1dc){const _0x693e7b=_0x457e80;super(),this[_0x693e7b(0x18f)]=_0x23f1dc,this[_0x693e7b(0x14a)]();}[_0x457e80(0x14a)](){const _0xa4d33=_0x457e80;[_0x592b93['id'],_0x593fcd['id'],_0x5d7627['id']][_0xa4d33(0x19e)](_0x1351b7=>{const _0x3f2d76=_0xa4d33;this[_0x3f2d76(0x134)](this[_0x3f2d76(0x18f)][_0x3f2d76(0x161)](_0x1351b7));});}};I=Ve([je(0x0,_0x2cb216(L))],I);var Me=Object['defineProperty'],ke=Object[_0x457e80(0x1ba)],Ge=(_0x4ad364,_0x1235fa,_0x1f0753)=>_0x1235fa in _0x4ad364?Me(_0x4ad364,_0x1235fa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f0753}):_0x4ad364[_0x1235fa]=_0x1f0753,We=(_0x57d8ca,_0x15e738,_0x40559a,_0x48317c)=>{const _0x6af07f=_0x457e80;for(var _0x342a08=_0x48317c>0x1?void 0x0:_0x48317c?ke(_0x15e738,_0x40559a):_0x15e738,_0xb880df=_0x57d8ca[_0x6af07f(0x195)]-0x1,_0x2cd3ea;_0xb880df>=0x0;_0xb880df--)(_0x2cd3ea=_0x57d8ca[_0xb880df])&&(_0x342a08=_0x2cd3ea(_0x342a08)||_0x342a08);return _0x342a08;},F=(_0x21cded,_0x19966a)=>(_0xbe5631,_0x28ac02)=>_0x19966a(_0xbe5631,_0x28ac02,_0x21cded),B=(_0x3aa81a,_0x57997c,_0x250b1e)=>Ge(_0x3aa81a,typeof _0x57997c!='symbol'?_0x57997c+'':_0x57997c,_0x250b1e);const Ye=_0x457e80(0x180);let b=class extends _0x36cb3f{constructor(_0x314415=T,_0x536963,_0xb37936){const _0x4414a5=_0x457e80;super(),this['_config']=_0x314415,this[_0x4414a5(0x184)]=_0x536963,this[_0x4414a5(0x179)]=_0xb37936;const {..._0x24d08d}=_0x3205c5({},T,this[_0x4414a5(0x13d)]);this[_0x4414a5(0x179)]['setConfig'](ye,_0x24d08d);}['onStarting'](){const _0x47826f=_0x457e80;_0x531e72(this[_0x47826f(0x184)],_0x5d731b([[L],[S],[I],[m]],this[_0x47826f(0x13d)][_0x47826f(0x187)])),_0x230ca3(this[_0x47826f(0x184)],[[I]]);}[_0x457e80(0x153)](){const _0x54b688=_0x457e80;_0x230ca3(this[_0x54b688(0x184)],[[m]]);}};B(b,_0x457e80(0x16a),_0x49fe72[_0x457e80(0x19a)]),B(b,_0x457e80(0x181),Ye),b=We([_0x26a88b(_0x4cf46e),F(0x1,_0x2cb216(_0x1ed2ca)),F(0x2,_0x33b07b)],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 _0x677c62=_0x3808;(function(_0x57d1fc,_0xc70091){const _0x1475ea=_0x3808,_0x568fa7=_0x57d1fc();while(!![]){try{const _0x59a119=-parseInt(_0x1475ea(0x12b))/0x1+parseInt(_0x1475ea(0x127))/0x2*(parseInt(_0x1475ea(0x126))/0x3)+parseInt(_0x1475ea(0x162))/0x4*(parseInt(_0x1475ea(0x15a))/0x5)+-parseInt(_0x1475ea(0x106))/0x6+parseInt(_0x1475ea(0xed))/0x7+-parseInt(_0x1475ea(0xeb))/0x8*(-parseInt(_0x1475ea(0x134))/0x9)+-parseInt(_0x1475ea(0x188))/0xa*(-parseInt(_0x1475ea(0x13b))/0xb);if(_0x59a119===_0xc70091)break;else _0x568fa7['push'](_0x568fa7['shift']());}catch(_0x4031af){_0x568fa7['push'](_0x568fa7['shift']());}}}(_0xbfe4,0x52c7f));var J=Object[_0x677c62(0x169)],K=(_0x55687a,_0x5804c5,_0x161a4c)=>_0x5804c5 in _0x55687a?J(_0x55687a,_0x5804c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x161a4c}):_0x55687a[_0x5804c5]=_0x161a4c,u=(_0x5a4fcb,_0x187dea,_0x195a09)=>K(_0x5a4fcb,typeof _0x187dea!=_0x677c62(0x10e)?_0x187dea+'':_0x187dea,_0x195a09);import{Disposable as _0x2da4ee,toDisposable as _0x35bb2c,IUniverInstanceService as _0x462a13,Inject as _0x417a9f,Injector as _0x3b9c73,IConfigService as _0x290042,ICommandService as _0x394fbd,RxDisposable as _0x45ebde,UniverInstanceType as _0x59bb3d,DisposableCollection as _0x3103b8,CommandType as _0xd9ac1c,DependentOn as _0x165c63,Plugin as _0x2600c1,merge as _0x275afa,registerDependencies as _0x557937,mergeOverrideWithDependencies as _0x410c61,touchDependencies as _0x5aa4a8}from'@univerjs/core';import{useDependency as _0x8ff637,useObservable as _0x31a57b,IUIPartsService as _0x383d75,BuiltInUIPart as _0x4d48d8,connectInjector as _0x2e3eb5}from'@univerjs/ui';import{jsx as _0x1ba63a,jsxs as _0x499084,Fragment as _0x5e2a02}from'react/jsx-runtime';import{Dropdown as _0x390534,clsx as _0x56ce27,Button as _0x180649}from'@univerjs/design';import{useRef as _0x5debc3,createElement as _0x555d7a,forwardRef as _0x396100,useState as _0x15fd52,useEffect as _0x3ef286}from'react';function _0xbfe4(){const _0x414fc4=['children','idSuffix','_handleOperation','UNIVER_UNKNOWN','stopPresenting','default','ONLINE','onStarting','mutations','UNIVER_SHEET','onCommandExecuted','memberID','Stop\x20following','getUnitId','getTypeOfUnitAdded$','then','string','presenting','9645HpuqMt','current','univer-size-4','You\x27re\x20following\x20the\x20presenter','NEW_CHANGESETS','map','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','length','148mUUYlV','unsubscribe','LIVESHARE_FETCH_OPERATIONS','url(#$1','getValue','requireSession','_startLiveShareCoordinator','defineProperty','_commandService','send','getLiveShareCoordinatorSync','getCurrentTypeOfUnit$','init','set','Start\x20following','onRendered','override','shouldShareOperation','values','OFFLINE','delete','get','SAME_OPERATION_SHARE_INTERVAL','_unitID','mask','1em','status$','_presenter','reverse','_univerInstanceService','getLiveShareCoordinator','xlink:href','LiveShareIcon','svg','complete','HEADER_MENU','UniverIcon','_uiPartsService','170QkbSdM','next','_collabSessionService','You\x27are\x20offline.','dispose$','tag','includes','has','_commandDisposable','univer-mb-3\x20univer-w-full\x20univer-text-sm','forEach','_beIdle','_configService','488sYpCWp','_stopPresenting','214382ByHKra','_reporters','stringify','_init','_startFollowing','LIVESHARE_NEW_HOST','_handleNewHost','dispose','pipe','_config','event$','evenodd','live-share-icon','_liveShareService','substring','data','NOT_FOLLOWING','following','startFollowing','text','path','LIVESHARE_TERMINATE','displayName','sheet','end','1227822ESyKSW','_mountLiveShare','_sharedOperations','univerjs-icon\x20univerjs-icon-','_handleTerminate','entries','parse','none','symbol','use','asObservable','replace','_startPresenting','setConfig','offline','_entities','toString','_injector','getTypeOfUnitDisposed$','disposeWithMe','getMemberID','currentColor','add','div','unitId','_status$','live-share.config','colorChannel1','FOLLOWING','from','operations','tryStartPresenting','3APhzQx','325594qEkxEO','PRESENTING','registerSharedOperation','type','60181SffTdi','LIVESHARE_REQUEST_HOST','_status','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LIVESHARE_OPERATION','Start','idle','subscribe','not-following','8838OBorUQ','fill','pluginName','button','presenter','attrs','UNIVER_LIVE_SHARE_PLUGIN','180653bfrMQD','getStatus','_handleOffline','find','executeCommand','_stopFollowing','params','_collabSession','You\x27re\x20not\x20following\x20the\x20presenter','getOwnPropertyDescriptor','registerInitialStateReporter','_handleOnline','_handleNewChangeSets'];_0xbfe4=function(){return _0x414fc4;};return _0xbfe4();}import{CollaborationEvent as _0xce98bf,parseProtocolChangeset as _0x521a7f}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x2f8236,SessionStatus as _0xdd466f,UniverCollaborationClientPlugin as _0x2a81a9}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3ecc17,SetWorksheetActiveOperation as _0x525cbd}from'@univerjs/sheets';import{BehaviorSubject as _0x5c595d,Subject as _0x39103d}from'rxjs';import{takeUntil as _0x25db84,throttleTime as _0x1d50d9}from'rxjs/operators';import{SetZoomRatioOperation as _0x490dee,SetScrollOperation as _0x446e48}from'@univerjs/sheets-ui';function k({ref:_0x1e31b7,..._0x48ed95}){const _0x6c75a2=_0x677c62,{icon:_0x189453,id:_0x226654,className:_0x35cc22,extend:_0x5bb3a1,..._0x2a1472}=_0x48ed95,_0x332fb2=(_0x6c75a2(0x109)+_0x226654+'\x20'+(_0x35cc22||''))['trim'](),_0x436f28=_0x5debc3('_'+Oe());return G(_0x189453,''+_0x226654,{'defIds':_0x189453['defIds'],'idSuffix':_0x436f28[_0x6c75a2(0x15b)]},{'ref':_0x1e31b7,'className':_0x332fb2,..._0x2a1472},_0x5bb3a1);}function G(_0x3bee38,_0xd2e421,_0x55bc48,_0x59b240,_0x2950cc){const _0x16ee50=_0x677c62;return _0x555d7a(_0x3bee38[_0x16ee50(0x18d)],{'key':_0xd2e421,...be(_0x3bee38,_0x55bc48,_0x2950cc),..._0x59b240},(Ee(_0x3bee38,_0x55bc48)['children']||[])[_0x16ee50(0x15f)]((_0x4d9faf,_0x28d194)=>G(_0x4d9faf,_0xd2e421+'-'+_0x3bee38['tag']+'-'+_0x28d194,_0x55bc48,void 0x0,_0x2950cc)));}function be(_0x4e786c,_0x2123f7,_0xabe97f){const _0x4047ac=_0x677c62,_0x122e94={..._0x4e786c[_0x4047ac(0x139)]};_0xabe97f!=null&&_0xabe97f[_0x4047ac(0x121)]&&_0x122e94[_0x4047ac(0x135)]==='colorChannel1'&&(_0x122e94[_0x4047ac(0x135)]=_0xabe97f['colorChannel1']),_0x4e786c[_0x4047ac(0x18d)]===_0x4047ac(0x17a)&&_0x122e94['id']&&(_0x122e94['id']=_0x122e94['id']+_0x2123f7[_0x4047ac(0x149)]),Object[_0x4047ac(0x10b)](_0x122e94)[_0x4047ac(0x192)](([_0x282326,_0x3c672c])=>{const _0x4a10ee=_0x4047ac;_0x282326===_0x4a10ee(0x17a)&&typeof _0x3c672c==_0x4a10ee(0x158)&&(_0x122e94[_0x282326]=_0x3c672c[_0x4a10ee(0x111)](/url\(#(.*)\)/,_0x4a10ee(0x165)+_0x2123f7['idSuffix']+')'));});const {defIds:_0x201e0b}=_0x2123f7;return!_0x201e0b||_0x201e0b[_0x4047ac(0x161)]===0x0||(_0x4e786c[_0x4047ac(0x18d)]===_0x4047ac(0x10f)&&_0x122e94[_0x4047ac(0x181)]&&(_0x122e94[_0x4047ac(0x181)]=_0x122e94[_0x4047ac(0x181)]+_0x2123f7['idSuffix']),Object['entries'](_0x122e94)[_0x4047ac(0x192)](([_0x25e0ee,_0x3a05ce])=>{const _0x5a9d80=_0x4047ac;typeof _0x3a05ce==_0x5a9d80(0x158)&&(_0x122e94[_0x25e0ee]=_0x3a05ce[_0x5a9d80(0x111)](/url\(#(.*)\)/,_0x5a9d80(0x165)+_0x2123f7[_0x5a9d80(0x149)]+')'));})),_0x122e94;}function Ee(_0x11da27,_0x3796e6){const _0xb22449=_0x677c62;var _0x3a62c1;const {defIds:_0xe78da0}=_0x3796e6;return!_0xe78da0||_0xe78da0['length']===0x0?_0x11da27:_0x11da27[_0xb22449(0x18d)]==='defs'&&((_0x3a62c1=_0x11da27['children'])!=null&&_0x3a62c1[_0xb22449(0x161)])?{..._0x11da27,'children':_0x11da27[_0xb22449(0x148)][_0xb22449(0x15f)](_0x58e46a=>typeof _0x58e46a[_0xb22449(0x139)]['id']==_0xb22449(0x158)&&_0xe78da0&&_0xe78da0[_0xb22449(0x18e)](_0x58e46a[_0xb22449(0x139)]['id'])?{..._0x58e46a,'attrs':{..._0x58e46a['attrs'],'id':_0x58e46a[_0xb22449(0x139)]['id']+_0x3796e6[_0xb22449(0x149)]}}:_0x58e46a)}:_0x11da27;}function Oe(){const _0x47cc51=_0x677c62;return Math['random']()[_0x47cc51(0x116)](0x24)[_0x47cc51(0xfb)](0x2,0x8);}k['displayName']=_0x677c62(0x186);const we={'tag':_0x677c62(0x183),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x677c62(0x10d),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x677c62(0x17b)},'children':[{'tag':_0x677c62(0x101),'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':_0x677c62(0x101),'attrs':{'fill':_0x677c62(0x11b),'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':_0x677c62(0xf8),'clipRule':_0x677c62(0xf8)}}]},W=_0x396100(function(_0x41b3c0,_0x291177){const _0x345734=_0x677c62;return _0x555d7a(k,Object['assign']({},_0x41b3c0,{'id':_0x345734(0xf9),'ref':_0x291177,'icon':we}));});W[_0x677c62(0x103)]=_0x677c62(0x182);class L extends _0x2da4ee{constructor(){const _0x437c96=_0x677c62;super(...arguments),u(this,_0x437c96(0x108),new Set()),u(this,_0x437c96(0xee),new Set());}[_0x677c62(0x129)](_0x397af7){const _0x458e1d=_0x677c62;return this[_0x458e1d(0x108)]['add'](_0x397af7),_0x35bb2c(()=>this[_0x458e1d(0x108)]['delete'](_0x397af7));}[_0x677c62(0x145)](_0x5ada77){const _0x55d330=_0x677c62;return this['_reporters'][_0x55d330(0x11c)](_0x5ada77),_0x35bb2c(()=>this[_0x55d330(0xee)][_0x55d330(0x176)](_0x5ada77));}[_0x677c62(0x173)](_0x542cbe){const _0x5c54a1=_0x677c62;return this[_0x5c54a1(0x108)]['has'](_0x542cbe);}['getInitialStates'](_0x29b050){const _0x4fde82=_0x677c62;return Array[_0x4fde82(0x123)](this['_reporters'])[_0x4fde82(0x15f)](_0x3722eb=>_0x3722eb(_0x29b050));}}var Ne=Object[_0x677c62(0x144)],Y=(_0x4f6fec,_0x4525bf,_0x5d2b69,_0x2dd585)=>{for(var _0x340b6b=_0x2dd585>0x1?void 0x0:_0x2dd585?Ne(_0x4525bf,_0x5d2b69):_0x4525bf,_0x1d45de=_0x4f6fec['length']-0x1,_0x53350c;_0x1d45de>=0x0;_0x1d45de--)(_0x53350c=_0x4f6fec[_0x1d45de])&&(_0x340b6b=_0x53350c(_0x340b6b)||_0x340b6b);return _0x340b6b;},_=(_0x34cc23,_0x2b527c)=>(_0x3e9db0,_0x20799b)=>_0x2b527c(_0x3e9db0,_0x20799b,_0x34cc23);let S=class extends _0x45ebde{constructor(_0x39ea48,_0x5194b0,_0xbcf7bb){const _0x3bafd4=_0x677c62;super(),u(this,_0x3bafd4(0x115),new Map()),(this[_0x3bafd4(0x17f)]=_0x39ea48,this[_0x3bafd4(0x117)]=_0x5194b0,this['_collabSessionService']=_0xbcf7bb,this[_0x3bafd4(0xf0)]());}async[_0x677c62(0x180)](_0x346913){const _0x1a147f=_0x677c62;return this[_0x1a147f(0x115)][_0x1a147f(0x18f)](_0x346913)||await this['_startLiveShareCoordinator'](_0x346913),this[_0x1a147f(0x115)][_0x1a147f(0x177)](_0x346913);}[_0x677c62(0x16c)](_0x4d5ed1){const _0x147d15=_0x677c62;var _0x60949c;return(_0x60949c=this[_0x147d15(0x115)][_0x147d15(0x177)](_0x4d5ed1))!=null?_0x60949c:null;}[_0x677c62(0xf0)](){const _0x3f67ff=_0x677c62;this[_0x3f67ff(0x17f)][_0x3f67ff(0x156)](_0x59bb3d[_0x3f67ff(0x151)])['pipe'](_0x25db84(this[_0x3f67ff(0x18c)]))[_0x3f67ff(0x132)](async _0x39fcd2=>{const _0x2ea1b8=_0x3f67ff,_0x315eef=_0x39fcd2[_0x2ea1b8(0x155)]();this[_0x2ea1b8(0x115)]['has'](_0x315eef)||this[_0x2ea1b8(0x168)](_0x315eef);}),this[_0x3f67ff(0x17f)][_0x3f67ff(0x118)](_0x59bb3d[_0x3f67ff(0x151)])['pipe'](_0x25db84(this[_0x3f67ff(0x18c)]))['subscribe'](_0x47611a=>{const _0x127c93=_0x3f67ff,_0x2d547a=_0x47611a[_0x127c93(0x155)](),_0x4a8625=this['_entities'][_0x127c93(0x177)](_0x2d547a);_0x4a8625==null||_0x4a8625[_0x127c93(0xf4)]();});}async[_0x677c62(0x168)](_0x3c88e8){const _0x419b24=_0x677c62,_0x5aa624=await this[_0x419b24(0x18a)][_0x419b24(0x167)](_0x3c88e8),_0x3736b4=this[_0x419b24(0x117)]['createInstance'](N,_0x3c88e8,_0x5aa624);return _0x3736b4[_0x419b24(0x16e)](),this['_entities'][_0x419b24(0x16f)](_0x3c88e8,_0x3736b4),_0x3736b4;}};S=Y([_(0x0,_0x462a13),_(0x1,_0x417a9f(_0x3b9c73)),_(0x2,_0x417a9f(_0x2f8236))],S);var c=(_0xc2aec2=>(_0xc2aec2[_0x677c62(0x175)]=_0x677c62(0x114),_0xc2aec2['IDLE']=_0x677c62(0x131),_0xc2aec2[_0x677c62(0x122)]=_0x677c62(0xfe),_0xc2aec2[_0x677c62(0xfd)]='not-following',_0xc2aec2[_0x677c62(0x128)]='presenting',_0xc2aec2))(c||{});function _0x3808(_0x54abed,_0x361f76){_0x54abed=_0x54abed-0xe9;const _0xbfe495=_0xbfe4();let _0x3808f4=_0xbfe495[_0x54abed];return _0x3808f4;}const Ce=_0x677c62(0x178),De=0xc8;let N=class extends _0x45ebde{constructor(_0x4287cd,_0x14022b,_0x50398e,_0x129c92,_0x1a3692){const _0x20be58=_0x677c62;super(),u(this,_0x20be58(0x11f),new _0x5c595d('idle')),u(this,_0x20be58(0x17c),this[_0x20be58(0x11f)][_0x20be58(0x110)]()),u(this,_0x20be58(0xf0),!0x1),u(this,_0x20be58(0x190),null),u(this,_0x20be58(0x17d),null),(this[_0x20be58(0x179)]=_0x4287cd,this[_0x20be58(0x142)]=_0x14022b,this['_configService']=_0x50398e,this[_0x20be58(0xfa)]=_0x129c92,this[_0x20be58(0x16a)]=_0x1a3692);}get[_0x677c62(0x12d)](){const _0x121cab=_0x677c62;return this[_0x121cab(0x11f)][_0x121cab(0x166)]();}['dispose'](){const _0x2e54ad=_0x677c62;var _0x2f6852;(_0x2f6852=this[_0x2e54ad(0x190)])==null||_0x2f6852[_0x2e54ad(0xf4)](),this[_0x2e54ad(0x11f)][_0x2e54ad(0x189)]('idle'),this['_status$'][_0x2e54ad(0x184)]();}[_0x677c62(0x13c)](){const _0x22797e=_0x677c62;return this[_0x22797e(0x12d)];}[_0x677c62(0x16e)](){const _0x58480e=_0x677c62;this[_0x58480e(0xf0)]||(this[_0x58480e(0xf0)]=!0x0,this[_0x58480e(0x142)]['sessionStatus$'][_0x58480e(0xf5)](_0x25db84(this[_0x58480e(0x18c)]))[_0x58480e(0x132)](_0x409c26=>{const _0x41d48c=_0x58480e;switch(_0x409c26){case _0xdd466f[_0x41d48c(0x175)]:this[_0x41d48c(0x13d)]();break;case _0xdd466f[_0x41d48c(0x14e)]:this[_0x41d48c(0x146)]();break;}}),this['_collabSession'][_0x58480e(0xf7)][_0x58480e(0xf5)](_0x25db84(this[_0x58480e(0x18c)]))[_0x58480e(0x132)](_0x1552f2=>{const _0x1fffc6=_0x58480e,{eventID:_0x488e51}=_0x1552f2;switch(_0x488e51){case _0xce98bf[_0x1fffc6(0xf2)]:this[_0x1fffc6(0xf3)](_0x1552f2);break;case _0xce98bf[_0x1fffc6(0x12f)]:this[_0x1fffc6(0x14a)](_0x1552f2);break;case _0xce98bf[_0x1fffc6(0x102)]:this[_0x1fffc6(0x10a)]();break;case _0xce98bf[_0x1fffc6(0x15e)]:this[_0x1fffc6(0x147)](_0x1552f2);break;}}));}[_0x677c62(0x125)](){const _0x58f653=_0x677c62;this[_0x58f653(0x142)]['send']({'eventID':_0xce98bf[_0x58f653(0x12c)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x58f653(0x11a)]()}},this[_0x58f653(0x179)]);}[_0x677c62(0x14c)](){const _0x4c85ab=_0x677c62;this['_status']===_0x4c85ab(0x159)&&(this[_0x4c85ab(0x11f)][_0x4c85ab(0x189)](_0x4c85ab(0x131)),this['_collabSession']['send']({'eventID':_0xce98bf[_0x4c85ab(0x102)],'data':{'unitID':this[_0x4c85ab(0x179)]}},this['_unitID']));}[_0x677c62(0xff)](){const _0x4cb936=_0x677c62;this[_0x4cb936(0x12d)]===_0x4cb936(0x133)&&(this[_0x4cb936(0x11f)][_0x4cb936(0x189)](_0x4cb936(0xfe)),this['_startFollowing']());}['stopFollowing'](){const _0x3dde90=_0x677c62;this['_status']==='following'&&this[_0x3dde90(0x140)]();}[_0x677c62(0xf3)](_0xf5c76a){const _0xaf302d=_0x677c62,{presenter:_0x231298}=_0xf5c76a[_0xaf302d(0xfc)],_0x33b77a=this['_collabSession'][_0xaf302d(0x11a)]();this[_0xaf302d(0x17d)]=_0x231298,_0x231298===_0x33b77a?(this[_0xaf302d(0x140)](),this[_0xaf302d(0x112)]()):this[_0xaf302d(0x12d)]!==_0xaf302d(0x133)&&(this['_stopPresenting'](),this[_0xaf302d(0xf1)]());}['_fetchOperations'](){const _0x174e38=_0x677c62,_0x5a0198={'eventID':_0xce98bf[_0x174e38(0x164)]};this[_0x174e38(0x142)][_0x174e38(0x16b)](_0x5a0198,this['_unitID']);}[_0x677c62(0x10a)](){const _0x2be791=_0x677c62;this['_presenter']=null,this[_0x2be791(0x12d)]!==_0x2be791(0x159)&&this['_beIdle']();}[_0x677c62(0x147)](_0x2321c2){const _0x105b2b=_0x677c62;if(this[_0x105b2b(0x12d)]===_0x105b2b(0xfe)&&this[_0x105b2b(0x17d)]===_0x2321c2['data'][_0x105b2b(0x153)]){const _0x157263=_0x521a7f(_0x2321c2[_0x105b2b(0xfc)])[_0x105b2b(0x150)][_0x105b2b(0x17e)]()[_0x105b2b(0x13e)](_0x20490f=>_0x20490f['id']===_0x3ecc17['id']);if(_0x157263){const _0x26c201=_0x157263['params'][_0x105b2b(0x11e)],_0x5eac64=_0x157263[_0x105b2b(0x141)][_0x105b2b(0x104)]['id'];setTimeout(()=>{const _0xa1f714=_0x105b2b;this[_0xa1f714(0x16a)]['executeCommand'](_0x525cbd['id'],{'unitId':_0x26c201,'subUnitId':_0x5eac64},{'fromCollab':!0x0});});}}}[_0x677c62(0x112)](){const _0x386fba=_0x677c62;this[_0x386fba(0x11f)]['next']('presenting');const _0x2486e9=new Map(),_0x4a5187=this['_commandDisposable']=new _0x3103b8();_0x4a5187[_0x386fba(0x11c)](_0x35bb2c(()=>{const _0x3a8350=_0x386fba;_0x2486e9[_0x3a8350(0x192)](_0x44b6ff=>_0x44b6ff[_0x3a8350(0x184)]()),_0x2486e9['clear']();})),_0x4a5187[_0x386fba(0x11c)](this[_0x386fba(0x16a)][_0x386fba(0x152)](_0x514924=>{const _0x478059=_0x386fba;var _0x34fecc;if(_0x514924[_0x478059(0x12a)]!==_0xd9ac1c['OPERATION']||!this[_0x478059(0xfa)][_0x478059(0x173)](_0x514924['id']))return;const {id:_0x461e20}=_0x514924;let _0x239974;_0x2486e9[_0x478059(0x18f)](_0x461e20)?_0x239974=_0x2486e9['get'](_0x461e20):(_0x239974=new _0x39103d(),_0x2486e9['set'](_0x461e20,_0x239974),_0x239974[_0x478059(0xf5)](_0x1d50d9((_0x34fecc=this[_0x478059(0xea)]['getConfig'](Ce))!=null?_0x34fecc:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x478059(0x132)](_0x5b2b75=>{const _0x15bbaf=_0x478059;this[_0x15bbaf(0x142)][_0x15bbaf(0x16b)]({'eventID':_0xce98bf['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x15bbaf(0x179)],'operations':{[_0x5b2b75['id']]:{'id':_0x5b2b75['id'],'params':JSON[_0x15bbaf(0xef)](_0x5b2b75['params'])}}}},this[_0x15bbaf(0x179)]);})),_0x239974[_0x478059(0x189)](_0x514924);})),this[_0x386fba(0xfa)]['getInitialStates'](this[_0x386fba(0x179)])[_0x386fba(0x192)](_0x579bf1=>this['_collabSession'][_0x386fba(0x16b)]({'eventID':_0xce98bf[_0x386fba(0x12f)],'data':{'unitID':this[_0x386fba(0x179)],'operations':{[_0x579bf1['id']]:{'id':_0x579bf1['id'],'params':JSON['stringify'](_0x579bf1['params'])}}}},this[_0x386fba(0x179)]));}[_0x677c62(0xec)](){const _0x784670=_0x677c62;var _0x102a01;this[_0x784670(0x11f)][_0x784670(0x189)](_0x784670(0x131)),(_0x102a01=this[_0x784670(0x190)])==null||_0x102a01[_0x784670(0xf4)](),this[_0x784670(0x190)]=null;}['_startFollowing'](){const _0x5e1a59=_0x677c62;var _0x18fbb1;(_0x18fbb1=this[_0x5e1a59(0x190)])==null||_0x18fbb1[_0x5e1a59(0xf4)](),this['_status$'][_0x5e1a59(0x189)]('following');}[_0x677c62(0xe9)](){const _0x3c9a60=_0x677c62;var _0x55da4c;this[_0x3c9a60(0x11f)][_0x3c9a60(0x189)](_0x3c9a60(0x131)),(_0x55da4c=this['_commandDisposable'])==null||_0x55da4c['dispose'](),this[_0x3c9a60(0x190)]=null;}[_0x677c62(0x140)](){const _0x3b2598=_0x677c62;var _0x47f79a;this['_status$'][_0x3b2598(0x189)](_0x3b2598(0x133)),(_0x47f79a=this[_0x3b2598(0x190)])==null||_0x47f79a[_0x3b2598(0xf4)]();}[_0x677c62(0x14a)](_0x53ae76){const _0x44e00f=_0x677c62;if([_0x44e00f(0x159),'not-following','offline']['includes'](this['_status'])||!_0x53ae76['data']['presenter']||_0x53ae76['data'][_0x44e00f(0x138)]===this[_0x44e00f(0x142)][_0x44e00f(0x11a)]())return;this['_status']===_0x44e00f(0x131)&&this[_0x44e00f(0xf1)]();const _0x273b61=_0x53ae76['data'][_0x44e00f(0x124)];Object[_0x44e00f(0x174)](_0x273b61)[_0x44e00f(0x192)](_0x210396=>{const _0x1f3a63=_0x44e00f;this[_0x1f3a63(0x16a)][_0x1f3a63(0x13f)](_0x210396['id'],_0x210396['params']?JSON[_0x1f3a63(0x10c)](_0x210396[_0x1f3a63(0x141)]):null,{'fromCollab':!0x0});});}[_0x677c62(0x13d)](){const _0x12dcad=_0x677c62;var _0x52e959;this['_status$'][_0x12dcad(0x189)]('offline'),(_0x52e959=this[_0x12dcad(0x190)])==null||_0x52e959[_0x12dcad(0xf4)]();}[_0x677c62(0x146)](){const _0x57b420=_0x677c62;this[_0x57b420(0x11f)][_0x57b420(0x189)](_0x57b420(0x131)),this['_fetchOperations']();}};N=Y([_(0x2,_0x290042),_(0x3,_0x417a9f(L)),_(0x4,_0x394fbd)],N);function Le(){const _0x1bab48=_0x677c62,_0x27fe9f=_0x8ff637(S),_0x5902fd=_0x8ff637(_0x462a13),_0x1e2452=_0x31a57b(()=>_0x5902fd[_0x1bab48(0x16d)](_0x59bb3d[_0x1bab48(0x151)]),void 0x0,!0x1,[]),[_0x5add20,_0x18d091]=_0x15fd52(null),[_0x1aecf7,_0x1be6fa]=_0x15fd52(c['IDLE']),_0x169071=_0x5debc3(null);return _0x3ef286(()=>(_0x1e2452&&_0x27fe9f[_0x1bab48(0x180)](_0x1e2452['getUnitId']())[_0x1bab48(0x157)](_0x4fdae2=>{const _0x223994=_0x1bab48;_0x18d091(_0x4fdae2),_0x169071['current']=_0x4fdae2[_0x223994(0x17c)]['subscribe'](_0x5b5613=>{_0x1be6fa(_0x5b5613);});}),()=>{const _0x23be3e=_0x1bab48;var _0x56f23f;(_0x56f23f=_0x169071[_0x23be3e(0x15b)])==null||_0x56f23f[_0x23be3e(0x163)](),_0x169071['current']=null;}),[_0x1e2452,_0x27fe9f]),_0x5add20?_0x1ba63a(_0x390534,{'align':_0x1bab48(0x105),'disabled':_0x1aecf7===c[_0x1bab48(0x175)],'className':_0x1bab48(0x160),'overlay':_0x1ba63a(Re,{'status':_0x1aecf7,'coordinator':_0x5add20}),'children':_0x1ba63a(_0x1bab48(0x137),{'className':_0x56ce27(_0x1bab48(0x12e),{'univer-cursor-not-allowed':_0x1aecf7===c[_0x1bab48(0x175)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1aecf7!==c[_0x1bab48(0x175)]}),'type':_0x1bab48(0x137),'children':_0x1ba63a(W,{'className':_0x1bab48(0x15c)})})}):null;}function Re(_0x4c5826){const _0x278480=_0x677c62,{status:_0x231f23,coordinator:_0x35b071}=_0x4c5826;switch(_0x231f23){case c['IDLE']:return _0x1ba63a($e,{'coordinator':_0x35b071});case c[_0x278480(0x122)]:return _0x1ba63a(xe,{'coordinator':_0x35b071});case c[_0x278480(0xfd)]:return _0x1ba63a(Pe,{'coordinator':_0x35b071});case c['OFFLINE']:return _0x1ba63a(Te,{});case c['PRESENTING']:return _0x1ba63a(Ae,{'coordinator':_0x35b071});default:return null;}}function $e(_0x5f3fb7){const _0x1d8140=_0x677c62,{coordinator:_0x3c5e8a}=_0x5f3fb7;return _0x499084(_0x5e2a02,{'children':[_0x1ba63a(_0x1d8140(0x11d),{'className':_0x1d8140(0x191),'children':'Present\x20this\x20document'}),_0x1ba63a(_0x180649,{'onClick':()=>_0x3c5e8a[_0x1d8140(0x125)](),'children':_0x1d8140(0x130)})]});}function xe(_0x47f3d6){const _0x2c17f7=_0x677c62,{coordinator:_0x5c621d}=_0x47f3d6;return _0x499084(_0x5e2a02,{'children':[_0x1ba63a(_0x2c17f7(0x11d),{'className':_0x2c17f7(0x191),'children':_0x2c17f7(0x15d)}),_0x1ba63a(_0x180649,{'onClick':()=>_0x5c621d['stopFollowing'](),'children':_0x2c17f7(0x154)})]});}function Pe(_0x801605){const _0x5b93c6=_0x677c62,{coordinator:_0x56afb6}=_0x801605;return _0x499084(_0x5e2a02,{'children':[_0x1ba63a(_0x5b93c6(0x11d),{'className':_0x5b93c6(0x191),'children':_0x5b93c6(0x143)}),_0x1ba63a(_0x180649,{'variant':_0x5b93c6(0x100),'onClick':()=>_0x56afb6['startFollowing'](),'children':_0x5b93c6(0x170)})]});}function Ae(_0x361e8c){const _0x37c70a=_0x677c62,{coordinator:_0x58f302}=_0x361e8c;return _0x499084(_0x5e2a02,{'children':[_0x1ba63a(_0x37c70a(0x11d),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x1ba63a(_0x180649,{'variant':_0x37c70a(0x14d),'onClick':()=>_0x58f302['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Te(){const _0x3cf1ce=_0x677c62;return _0x1ba63a(_0x5e2a02,{'children':_0x3cf1ce(0x18b)});}var Fe=Object[_0x677c62(0x144)],He=(_0x514d62,_0x4c100f,_0x56753e,_0x53ecca)=>{const _0xc550b3=_0x677c62;for(var _0x36d3de=_0x53ecca>0x1?void 0x0:_0x53ecca?Fe(_0x4c100f,_0x56753e):_0x4c100f,_0x136886=_0x514d62[_0xc550b3(0x161)]-0x1,_0x20ec51;_0x136886>=0x0;_0x136886--)(_0x20ec51=_0x514d62[_0x136886])&&(_0x36d3de=_0x20ec51(_0x36d3de)||_0x36d3de);return _0x36d3de;},A=(_0x1e8fd0,_0x52ab63)=>(_0x4b2ada,_0x54faf5)=>_0x52ab63(_0x4b2ada,_0x54faf5,_0x1e8fd0);let m=class extends _0x2da4ee{constructor(_0x2ca09e,_0x54031a){const _0x5029e5=_0x677c62;super(),this['_injector']=_0x2ca09e,this[_0x5029e5(0x187)]=_0x54031a,this[_0x5029e5(0x107)]();}[_0x677c62(0x107)](){const _0x5eaebc=_0x677c62;this[_0x5eaebc(0x119)](this[_0x5eaebc(0x187)]['registerComponent'](_0x4d48d8[_0x5eaebc(0x185)],()=>_0x2e3eb5(Le,this[_0x5eaebc(0x117)])));}};m=He([A(0x0,_0x417a9f(_0x3b9c73)),A(0x1,_0x383d75)],m);const ye=_0x677c62(0x120),T={};var Ue=Object[_0x677c62(0x144)],Ve=(_0x3d3ea9,_0x472bf4,_0x143834,_0x2f6015)=>{const _0x436ada=_0x677c62;for(var _0x2f890a=_0x2f6015>0x1?void 0x0:_0x2f6015?Ue(_0x472bf4,_0x143834):_0x472bf4,_0x465d19=_0x3d3ea9[_0x436ada(0x161)]-0x1,_0x31c12f;_0x465d19>=0x0;_0x465d19--)(_0x31c12f=_0x3d3ea9[_0x465d19])&&(_0x2f890a=_0x31c12f(_0x2f890a)||_0x2f890a);return _0x2f890a;},je=(_0x38b2b1,_0x2e5e3a)=>(_0x515d43,_0x7bd3f9)=>_0x2e5e3a(_0x515d43,_0x7bd3f9,_0x38b2b1);let I=class extends _0x2da4ee{constructor(_0x4986ba){const _0x2e3600=_0x677c62;super(),this['_liveShareService']=_0x4986ba,this[_0x2e3600(0xf0)]();}[_0x677c62(0xf0)](){const _0x5aa2f8=_0x677c62;[_0x490dee['id'],_0x446e48['id'],_0x525cbd['id']][_0x5aa2f8(0x192)](_0x12b891=>{const _0x8ba955=_0x5aa2f8;this[_0x8ba955(0x119)](this['_liveShareService'][_0x8ba955(0x129)](_0x12b891));});}};I=Ve([je(0x0,_0x417a9f(L))],I);var Me=Object[_0x677c62(0x169)],ke=Object[_0x677c62(0x144)],Ge=(_0x5e418f,_0x4115a1,_0x1f93c6)=>_0x4115a1 in _0x5e418f?Me(_0x5e418f,_0x4115a1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f93c6}):_0x5e418f[_0x4115a1]=_0x1f93c6,We=(_0x5c8fc9,_0x5ef787,_0x2e3b1a,_0x307e46)=>{const _0x1b1ff6=_0x677c62;for(var _0x289e74=_0x307e46>0x1?void 0x0:_0x307e46?ke(_0x5ef787,_0x2e3b1a):_0x5ef787,_0x5dd4bd=_0x5c8fc9[_0x1b1ff6(0x161)]-0x1,_0x25f818;_0x5dd4bd>=0x0;_0x5dd4bd--)(_0x25f818=_0x5c8fc9[_0x5dd4bd])&&(_0x289e74=_0x25f818(_0x289e74)||_0x289e74);return _0x289e74;},F=(_0x242f12,_0x4f84a5)=>(_0x4e3d4e,_0x1e2fd4)=>_0x4f84a5(_0x4e3d4e,_0x1e2fd4,_0x242f12),B=(_0x4c5f46,_0x4c15ab,_0x400464)=>Ge(_0x4c5f46,typeof _0x4c15ab!=_0x677c62(0x10e)?_0x4c15ab+'':_0x4c15ab,_0x400464);const Ye=_0x677c62(0x13a);let b=class extends _0x2600c1{constructor(_0x2898ca=T,_0x3a688e,_0x226322){const _0x2d738f=_0x677c62;super(),this[_0x2d738f(0xf6)]=_0x2898ca,this[_0x2d738f(0x117)]=_0x3a688e,this['_configService']=_0x226322;const {..._0x4458c1}=_0x275afa({},T,this[_0x2d738f(0xf6)]);this[_0x2d738f(0xea)][_0x2d738f(0x113)](ye,_0x4458c1);}[_0x677c62(0x14f)](){const _0x15cdb2=_0x677c62;_0x557937(this[_0x15cdb2(0x117)],_0x410c61([[L],[S],[I],[m]],this[_0x15cdb2(0xf6)][_0x15cdb2(0x172)])),_0x5aa4a8(this[_0x15cdb2(0x117)],[[I]]);}[_0x677c62(0x171)](){const _0x2a6351=_0x677c62;_0x5aa4a8(this[_0x2a6351(0x117)],[[m]]);}};B(b,_0x677c62(0x12a),_0x59bb3d[_0x677c62(0x14b)]),B(b,_0x677c62(0x136),Ye),b=We([_0x165c63(_0x2a81a9),F(0x1,_0x417a9f(_0x3b9c73)),F(0x2,_0x290042)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x25ef6e,_0x1c13cf){const _0x8201a6=_0x39ee,_0x58270f=_0x25ef6e();while(!![]){try{const _0x59750d=-parseInt(_0x8201a6(0x1b5))/0x1+parseInt(_0x8201a6(0x1aa))/0x2*(-parseInt(_0x8201a6(0x1ad))/0x3)+parseInt(_0x8201a6(0x1be))/0x4+-parseInt(_0x8201a6(0x1b2))/0x5+-parseInt(_0x8201a6(0x19a))/0x6+parseInt(_0x8201a6(0x1b0))/0x7+parseInt(_0x8201a6(0x1a0))/0x8*(parseInt(_0x8201a6(0x18f))/0x9);if(_0x59750d===_0x1c13cf)break;else _0x58270f['push'](_0x58270f['shift']());}catch(_0x22e90c){_0x58270f['push'](_0x58270f['shift']());}}}(_0x5813,0xddbf8),function(_0x3d908c,_0x52137e){const _0x339dd6=_0x39ee;typeof exports==_0x339dd6(0x1b8)&&typeof module<'u'?_0x52137e(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[_0x339dd6(0x1a3)]?define([_0x339dd6(0x1a6),_0x339dd6(0x192),_0x339dd6(0x1bf),_0x339dd6(0x1a5),'@univerjs/sheets/facade',_0x339dd6(0x1ac)],_0x52137e):(_0x3d908c=typeof globalThis<'u'?globalThis:_0x3d908c||self,_0x52137e(_0x3d908c[_0x339dd6(0x191)],_0x3d908c[_0x339dd6(0x1ba)],_0x3d908c['UniverSheets'],_0x3d908c['UniverSheetsUi'],_0x3d908c[_0x339dd6(0x1b7)],_0x3d908c[_0x339dd6(0x19c)]));}(this,function(_0x3e892e,_0xe0bb41,_0x2bba6d,_0x76aeda,_0x1a4c0a,_0x96d79e){'use strict';const _0x31611e=_0x39ee;class _0xf05a7a extends _0x1a4c0a[_0x31611e(0x1a7)]{['_initialize'](_0x263a67,_0x2360ea,_0x77d4c6,_0x121fde,_0x5b1731){const _0x241496=_0x31611e,_0x195309=_0x263a67[_0x241496(0x19b)](_0x3e892e[_0x241496(0x197)]),_0x1d2237=_0x263a67['get'](_0xe0bb41['IRenderManagerService']),_0x3fa941=_0x2360ea['getUnitId'](),_0x535d57=_0x2360ea[_0x241496(0x1a4)](),_0x399383=_0x195309['getLiveShareCoordinatorSync'](_0x3fa941);(_0x399383==null?void 0x0:_0x399383[_0x241496(0x1af)]())!==_0x3e892e[_0x241496(0x194)]['PRESENTING']||(_0x77d4c6[_0x241496(0x1b1)]()!==_0x535d57[_0x241496(0x1b1)]()&&this[_0x241496(0x1ae)][_0x241496(0x199)](_0x2bba6d[_0x241496(0x1bb)]['id'],{'unitId':_0x3fa941,'subUnitId':_0x77d4c6['getSheetId']()}),!_0x1d2237['getRenderById'](_0x3fa941))||_0x5b1731[_0x241496(0x1b4)](_0x76aeda['SetScrollOperation']['id'],{'unitId':_0x2360ea[_0x241496(0x198)](),'sheetId':_0x77d4c6['getSheetId'](),'sheetViewStartRow':_0x121fde[_0x241496(0x1c1)],'sheetViewStartColumn':_0x121fde[_0x241496(0x1a8)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x1a4c0a[_0x31611e(0x1a7)]['extend'](_0xf05a7a);class _0x5cb8ea extends _0x96d79e[_0x31611e(0x19d)]{[_0x31611e(0x193)](){const _0x5388f9=_0x31611e;var _0x1f4c69,_0x1dfd20;const _0x41c215=this[_0x5388f9(0x1b9)][_0x5388f9(0x19b)](_0x3e892e[_0x5388f9(0x197)]),_0x2385f9=(_0x1f4c69=this[_0x5388f9(0x1b3)]())==null?void 0x0:_0x1f4c69[_0x5388f9(0x1bc)]();if(!_0x2385f9)throw new Error(_0x5388f9(0x1b6));const _0x10170f=_0x41c215['getLiveShareCoordinatorSync'](_0x2385f9);return(_0x1dfd20=_0x10170f==null?void 0x0:_0x10170f[_0x5388f9(0x1af)]())!=null?_0x1dfd20:_0x3e892e[_0x5388f9(0x194)][_0x5388f9(0x1c0)];}['startFollowing'](){const _0x31429f=_0x31611e;var _0x546937;const _0x3685af=this[_0x31429f(0x1b9)][_0x31429f(0x19b)](_0x3e892e[_0x31429f(0x197)]),_0x57f7c4=(_0x546937=this[_0x31429f(0x1b3)]())==null?void 0x0:_0x546937['getId']();if(!_0x57f7c4)throw new Error(_0x31429f(0x1b6));const _0xebdef9=_0x3685af[_0x31429f(0x190)](_0x57f7c4);if(!_0xebdef9)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xebdef9[_0x31429f(0x19e)]();}[_0x31611e(0x196)](){const _0x3a5149=_0x31611e;var _0x45aebf;const _0x605034=this[_0x3a5149(0x1b9)]['get'](_0x3e892e[_0x3a5149(0x197)]),_0x5cd1ad=(_0x45aebf=this['getActiveWorkbook']())==null?void 0x0:_0x45aebf['getId']();if(!_0x5cd1ad)throw new Error(_0x3a5149(0x1b6));const _0x54be36=_0x605034[_0x3a5149(0x190)](_0x5cd1ad);if(!_0x54be36)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x54be36['stopFollowing']();}[_0x31611e(0x195)](){const _0xf1f806=_0x31611e;var _0x4b44c7;const _0x5eb7f7=this['_injector']['get'](_0x3e892e['LiveShareController']),_0x488f2f=(_0x4b44c7=this[_0xf1f806(0x1b3)]())==null?void 0x0:_0x4b44c7['getId']();if(!_0x488f2f)throw new Error(_0xf1f806(0x1b6));const _0x2279d2=_0x5eb7f7[_0xf1f806(0x190)](_0x488f2f);if(!_0x2279d2)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2279d2[_0xf1f806(0x1a9)]();}['stopPresenting'](){const _0x419322=_0x31611e;var _0x25d9d5;const _0xdcf761=this[_0x419322(0x1b9)]['get'](_0x3e892e[_0x419322(0x197)]),_0x4c6950=(_0x25d9d5=this['getActiveWorkbook']())==null?void 0x0:_0x25d9d5[_0x419322(0x1bc)]();if(!_0x4c6950)throw new Error(_0x419322(0x1b6));const _0x55c5c7=_0xdcf761[_0x419322(0x190)](_0x4c6950);if(!_0x55c5c7)throw new Error(_0x419322(0x1bd));_0x55c5c7[_0x419322(0x1a2)]();}}_0x96d79e[_0x31611e(0x19d)][_0x31611e(0x1ab)](_0x5cb8ea);class _0x137889 extends _0x96d79e[_0x31611e(0x1a1)]{get[_0x31611e(0x19f)](){const _0x5cdc82=_0x31611e;return _0x3e892e[_0x5cdc82(0x194)];}}_0x96d79e[_0x31611e(0x1a1)][_0x31611e(0x1ab)](_0x137889);}));function _0x39ee(_0x190a74,_0x1388cb){_0x190a74=_0x190a74-0x18f;const _0x58132b=_0x5813();let _0x39ee12=_0x58132b[_0x190a74];return _0x39ee12;}function _0x5813(){const _0x18e618=['startFollowing','LiveShareStatusEnum','30187952RHVbNn','FEnum','stopPresenting','amd','getActiveSheet','@univerjs/sheets-ui','@univerjs-pro/live-share','FRange','startColumn','tryStartPresenting','466258XkMkKz','extend','@univerjs/core/facade','3WNZhFg','_commandService','getStatus','4281564fhDfsX','getSheetId','1646330gEUZVC','getActiveWorkbook','syncExecuteCommand','1398991FLDmtv','No\x20active\x20workbook\x20found.','UniverSheetsFacade','object','_injector','UniverEngineRender','SetWorksheetActiveOperation','getId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','567792vTTRFw','@univerjs/sheets','IDLE','startRow','9qOjrOZ','getLiveShareCoordinatorSync','UniverProLiveShare','@univerjs/engine-render','getLiveShareStatus','LiveShareStatus','startPresenting','stopFollowing','LiveShareController','getUnitId','executeCommand','9944568flbjUQ','get','UniverCoreFacade','FUniver'];_0x5813=function(){return _0x18e618;};return _0x5813();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x14e5(_0x1be68d,_0x3a12b0){_0x1be68d=_0x1be68d-0x83;const _0x2c2f2b=_0x2c2f();let _0x14e57a=_0x2c2f2b[_0x1be68d];return _0x14e57a;}(function(_0x486d35,_0x12ef3a){const _0x2bf71b=_0x14e5,_0x149e6c=_0x486d35();while(!![]){try{const _0x5591f0=-parseInt(_0x2bf71b(0x92))/0x1*(-parseInt(_0x2bf71b(0xb9))/0x2)+parseInt(_0x2bf71b(0x160))/0x3+-parseInt(_0x2bf71b(0x140))/0x4+-parseInt(_0x2bf71b(0x15e))/0x5*(-parseInt(_0x2bf71b(0x136))/0x6)+-parseInt(_0x2bf71b(0x159))/0x7*(parseInt(_0x2bf71b(0x9d))/0x8)+-parseInt(_0x2bf71b(0x132))/0x9+parseInt(_0x2bf71b(0xc4))/0xa;if(_0x5591f0===_0x12ef3a)break;else _0x149e6c['push'](_0x149e6c['shift']());}catch(_0x18281d){_0x149e6c['push'](_0x149e6c['shift']());}}}(_0x2c2f,0xd6678),function(_0x5775f4,_0x1ff39f){const _0xd4a7eb=_0x14e5;typeof exports==_0xd4a7eb(0x127)&&typeof module<'u'?_0x1ff39f(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==_0xd4a7eb(0xd6)&&define[_0xd4a7eb(0x163)]?define([_0xd4a7eb(0xde),_0xd4a7eb(0xca),_0xd4a7eb(0x9a),'react/jsx-runtime',_0xd4a7eb(0xce),'react',_0xd4a7eb(0x83),'@univerjs-pro/collaboration-client',_0xd4a7eb(0x12c),_0xd4a7eb(0x8e),_0xd4a7eb(0x15f),'@univerjs/sheets-ui'],_0x1ff39f):(_0x5775f4=typeof globalThis<'u'?globalThis:_0x5775f4||self,_0x1ff39f(_0x5775f4[_0xd4a7eb(0x152)]={},_0x5775f4[_0xd4a7eb(0xae)],_0x5775f4[_0xd4a7eb(0x158)],_0x5775f4[_0xd4a7eb(0xa7)],_0x5775f4[_0xd4a7eb(0x10d)],_0x5775f4['React'],_0x5775f4[_0xd4a7eb(0xaa)],_0x5775f4[_0xd4a7eb(0xcd)],_0x5775f4['UniverSheets'],_0x5775f4[_0xd4a7eb(0x8e)],_0x5775f4[_0xd4a7eb(0x8e)][_0xd4a7eb(0xb6)],_0x5775f4[_0xd4a7eb(0xf3)]));}(this,function(_0xaa855f,_0x31596f,_0x190706,_0x441506,_0x45a328,_0x5d948a,_0x14f43,_0x478ddb,_0x1f2f51,_0x3114d2,_0x44ee62,_0x3ec2d6){'use strict';const _0x1e6e09=_0x14e5;var _0xf7430d=Object['defineProperty'],_0x4436d2=(_0x9e308c,_0x23a047,_0x41b1f1)=>_0x23a047 in _0x9e308c?_0xf7430d(_0x9e308c,_0x23a047,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x41b1f1}):_0x9e308c[_0x23a047]=_0x41b1f1,_0x2ac35f=(_0x44da4d,_0x2eaa58,_0x4af4d3)=>_0x4436d2(_0x44da4d,typeof _0x2eaa58!=_0x1e6e09(0x126)?_0x2eaa58+'':_0x2eaa58,_0x4af4d3);function _0x31e126({ref:_0x50b125,..._0x31eb82}){const _0x2820fe=_0x1e6e09,{icon:_0x15b556,id:_0x12893b,className:_0x24c020,extend:_0xf290bf,..._0x47e4bc}=_0x31eb82,_0x33fb47=(_0x2820fe(0xa9)+_0x12893b+'\x20'+(_0x24c020||''))[_0x2820fe(0xfa)](),_0x5b2d73=_0x5d948a['useRef']('_'+_0x345cb6());return _0x2ff279(_0x15b556,''+_0x12893b,{'defIds':_0x15b556[_0x2820fe(0x15c)],'idSuffix':_0x5b2d73[_0x2820fe(0xfe)]},{'ref':_0x50b125,'className':_0x33fb47,..._0x47e4bc},_0xf290bf);}function _0x2ff279(_0x2e405f,_0x5c6190,_0x2df72f,_0x58935c,_0x547441){const _0xc00296=_0x1e6e09;return _0x5d948a[_0xc00296(0x13a)](_0x2e405f[_0xc00296(0x96)],{'key':_0x5c6190,..._0xd37b74(_0x2e405f,_0x2df72f,_0x547441),..._0x58935c},(_0x319daf(_0x2e405f,_0x2df72f)[_0xc00296(0x84)]||[])[_0xc00296(0xa6)]((_0x3c27b1,_0x3b2093)=>_0x2ff279(_0x3c27b1,_0x5c6190+'-'+_0x2e405f[_0xc00296(0x96)]+'-'+_0x3b2093,_0x2df72f,void 0x0,_0x547441)));}function _0xd37b74(_0x4af4b7,_0x1aac5e,_0x50ab61){const _0x40b5c8=_0x1e6e09,_0x7875b={..._0x4af4b7[_0x40b5c8(0x13f)]};_0x50ab61!=null&&_0x50ab61[_0x40b5c8(0x12f)]&&_0x7875b[_0x40b5c8(0x110)]===_0x40b5c8(0x12f)&&(_0x7875b[_0x40b5c8(0x110)]=_0x50ab61['colorChannel1']),_0x4af4b7['tag']==='mask'&&_0x7875b['id']&&(_0x7875b['id']=_0x7875b['id']+_0x1aac5e[_0x40b5c8(0x97)]),Object[_0x40b5c8(0x138)](_0x7875b)[_0x40b5c8(0x14f)](([_0x3407bd,_0x340b7d])=>{const _0x39a677=_0x40b5c8;_0x3407bd==='mask'&&typeof _0x340b7d==_0x39a677(0xea)&&(_0x7875b[_0x3407bd]=_0x340b7d['replace'](/url\(#(.*)\)/,_0x39a677(0xd1)+_0x1aac5e[_0x39a677(0x97)]+')'));});const {defIds:_0x15706d}=_0x1aac5e;return!_0x15706d||_0x15706d[_0x40b5c8(0xad)]===0x0||(_0x4af4b7[_0x40b5c8(0x96)]===_0x40b5c8(0xac)&&_0x7875b[_0x40b5c8(0xe1)]&&(_0x7875b[_0x40b5c8(0xe1)]=_0x7875b[_0x40b5c8(0xe1)]+_0x1aac5e[_0x40b5c8(0x97)]),Object[_0x40b5c8(0x138)](_0x7875b)['forEach'](([_0x2c3d9b,_0x1d2659])=>{const _0x6fd595=_0x40b5c8;typeof _0x1d2659=='string'&&(_0x7875b[_0x2c3d9b]=_0x1d2659[_0x6fd595(0x125)](/url\(#(.*)\)/,_0x6fd595(0xd1)+_0x1aac5e[_0x6fd595(0x97)]+')'));})),_0x7875b;}function _0x319daf(_0x570f7e,_0x3e93a7){const _0x5c4d68=_0x1e6e09;var _0x434367;const {defIds:_0x22fbfc}=_0x3e93a7;return!_0x22fbfc||_0x22fbfc['length']===0x0?_0x570f7e:_0x570f7e['tag']===_0x5c4d68(0x117)&&((_0x434367=_0x570f7e[_0x5c4d68(0x84)])!=null&&_0x434367[_0x5c4d68(0xad)])?{..._0x570f7e,'children':_0x570f7e[_0x5c4d68(0x84)]['map'](_0x82be87=>typeof _0x82be87[_0x5c4d68(0x13f)]['id']==_0x5c4d68(0xea)&&_0x22fbfc&&_0x22fbfc[_0x5c4d68(0x8d)](_0x82be87[_0x5c4d68(0x13f)]['id'])?{..._0x82be87,'attrs':{..._0x82be87['attrs'],'id':_0x82be87[_0x5c4d68(0x13f)]['id']+_0x3e93a7[_0x5c4d68(0x97)]}}:_0x82be87)}:_0x570f7e;}function _0x345cb6(){const _0x42e272=_0x1e6e09;return Math[_0x42e272(0xa0)]()[_0x42e272(0x10b)](0x24)['substring'](0x2,0x8);}_0x31e126[_0x1e6e09(0x11f)]=_0x1e6e09(0xed);const _0x4e5985={'tag':_0x1e6e09(0x142),'attrs':{'xmlns':_0x1e6e09(0xe8),'fill':_0x1e6e09(0x147),'viewBox':'0\x200\x2017\x2017','width':'1em','height':'1em'},'children':[{'tag':_0x1e6e09(0x124),'attrs':{'fill':_0x1e6e09(0xb0),'d':_0x1e6e09(0x109)}},{'tag':_0x1e6e09(0x124),'attrs':{'fill':'currentColor','d':_0x1e6e09(0x11d),'fillRule':_0x1e6e09(0xcb),'clipRule':_0x1e6e09(0xcb)}}]},_0x460c01=_0x5d948a[_0x1e6e09(0xb3)](function(_0x3b90f5,_0x40490f){const _0x98fe4d=_0x1e6e09;return _0x5d948a[_0x98fe4d(0x13a)](_0x31e126,Object['assign']({},_0x3b90f5,{'id':'live-share-icon','ref':_0x40490f,'icon':_0x4e5985}));});_0x460c01[_0x1e6e09(0x11f)]=_0x1e6e09(0x113);class _0x3230ab extends _0x31596f['Disposable']{constructor(){const _0xaf3e78=_0x1e6e09;super(...arguments),_0x2ac35f(this,_0xaf3e78(0xc5),new Set()),_0x2ac35f(this,_0xaf3e78(0x145),new Set());}[_0x1e6e09(0xbd)](_0x52271b){const _0x8f635e=_0x1e6e09;return this['_sharedOperations']['add'](_0x52271b),_0x31596f[_0x8f635e(0x128)](()=>this[_0x8f635e(0xc5)]['delete'](_0x52271b));}[_0x1e6e09(0xdd)](_0x507b8b){const _0x16cd24=_0x1e6e09;return this[_0x16cd24(0x145)][_0x16cd24(0xd0)](_0x507b8b),_0x31596f['toDisposable'](()=>this['_reporters'][_0x16cd24(0x15b)](_0x507b8b));}['shouldShareOperation'](_0x207c13){const _0x4f778a=_0x1e6e09;return this[_0x4f778a(0xc5)][_0x4f778a(0x9b)](_0x207c13);}[_0x1e6e09(0xa3)](_0x3c3699){const _0x5ffe2a=_0x1e6e09;return Array[_0x5ffe2a(0xbf)](this[_0x5ffe2a(0x145)])['map'](_0x2b4241=>_0x2b4241(_0x3c3699));}}var _0x2043ed=Object[_0x1e6e09(0xaf)],_0x4653dc=(_0x5809c5,_0x4b6cba,_0x5ed0cb,_0x17ee5a)=>{const _0x37daad=_0x1e6e09;for(var _0x329b14=_0x17ee5a>0x1?void 0x0:_0x17ee5a?_0x2043ed(_0x4b6cba,_0x5ed0cb):_0x4b6cba,_0x5e9f06=_0x5809c5[_0x37daad(0xad)]-0x1,_0x407d6c;_0x5e9f06>=0x0;_0x5e9f06--)(_0x407d6c=_0x5809c5[_0x5e9f06])&&(_0x329b14=_0x407d6c(_0x329b14)||_0x329b14);return _0x329b14;},_0x18a4a5=(_0x4a1608,_0x2a8aac)=>(_0x201fc5,_0x57f780)=>_0x2a8aac(_0x201fc5,_0x57f780,_0x4a1608);_0xaa855f[_0x1e6e09(0xc6)]=class extends _0x31596f['RxDisposable']{constructor(_0x53525c,_0x3ef091,_0x563c3f){const _0x3048bd=_0x1e6e09;super(),_0x2ac35f(this,_0x3048bd(0xd3),new Map()),(this[_0x3048bd(0x123)]=_0x53525c,this['_injector']=_0x3ef091,this[_0x3048bd(0x89)]=_0x563c3f,this[_0x3048bd(0xf2)]());}async['getLiveShareCoordinator'](_0x29d11a){const _0x123072=_0x1e6e09;return this[_0x123072(0xd3)]['has'](_0x29d11a)||await this[_0x123072(0x8b)](_0x29d11a),this['_entities'][_0x123072(0x12b)](_0x29d11a);}[_0x1e6e09(0xbb)](_0x117c53){const _0x47391c=_0x1e6e09;var _0x14726d;return(_0x14726d=this[_0x47391c(0xd3)]['get'](_0x117c53))!=null?_0x14726d:null;}[_0x1e6e09(0xf2)](){const _0x4d700f=_0x1e6e09;this['_univerInstanceService'][_0x4d700f(0x87)](_0x31596f[_0x4d700f(0xcf)]['UNIVER_SHEET'])['pipe'](_0x44ee62[_0x4d700f(0x139)](this[_0x4d700f(0xec)]))[_0x4d700f(0x107)](async _0x32dd13=>{const _0x2c0a31=_0x4d700f,_0x4d38e7=_0x32dd13[_0x2c0a31(0x135)]();this[_0x2c0a31(0xd3)][_0x2c0a31(0x9b)](_0x4d38e7)||this[_0x2c0a31(0x8b)](_0x4d38e7);}),this['_univerInstanceService'][_0x4d700f(0x150)](_0x31596f[_0x4d700f(0xcf)][_0x4d700f(0x15a)])[_0x4d700f(0x86)](_0x44ee62['takeUntil'](this[_0x4d700f(0xec)]))[_0x4d700f(0x107)](_0x50d0c1=>{const _0x23d552=_0x4d700f,_0x5445fc=_0x50d0c1['getUnitId'](),_0x43bb67=this[_0x23d552(0xd3)][_0x23d552(0x12b)](_0x5445fc);_0x43bb67==null||_0x43bb67['dispose']();});}async[_0x1e6e09(0x8b)](_0x300a0a){const _0x15f11b=_0x1e6e09,_0x4a8d46=await this[_0x15f11b(0x89)]['requireSession'](_0x300a0a),_0x2a7693=this[_0x15f11b(0xd7)][_0x15f11b(0x102)](_0xaa855f[_0x15f11b(0xeb)],_0x300a0a,_0x4a8d46);return _0x2a7693[_0x15f11b(0x101)](),this['_entities'][_0x15f11b(0xc1)](_0x300a0a,_0x2a7693),_0x2a7693;}},_0xaa855f['LiveShareController']=_0x4653dc([_0x18a4a5(0x0,_0x31596f[_0x1e6e09(0x12a)]),_0x18a4a5(0x1,_0x31596f[_0x1e6e09(0xbe)](_0x31596f['Injector'])),_0x18a4a5(0x2,_0x31596f['Inject'](_0x478ddb[_0x1e6e09(0xa4)]))],_0xaa855f[_0x1e6e09(0xc6)]);var _0xdda2d4=(_0x3a978b=>(_0x3a978b[_0x1e6e09(0x100)]=_0x1e6e09(0x11b),_0x3a978b[_0x1e6e09(0xa8)]=_0x1e6e09(0xf8),_0x3a978b[_0x1e6e09(0x114)]=_0x1e6e09(0x105),_0x3a978b[_0x1e6e09(0x11a)]='not-following',_0x3a978b['PRESENTING']=_0x1e6e09(0xe9),_0x3a978b))(_0xdda2d4||{});const _0x12f3aa=_0x1e6e09(0x130),_0xe51124=0xc8;_0xaa855f['LiveShareCoordinator']=class extends _0x31596f[_0x1e6e09(0x8f)]{constructor(_0x4df589,_0x59f436,_0x58c508,_0x5021e5,_0x37df80){const _0xa20c6c=_0x1e6e09;super(),_0x2ac35f(this,'_status$',new _0x3114d2['BehaviorSubject']('idle')),_0x2ac35f(this,'status$',this['_status$'][_0xa20c6c(0xd2)]()),_0x2ac35f(this,_0xa20c6c(0xf2),!0x1),_0x2ac35f(this,_0xa20c6c(0x104),null),_0x2ac35f(this,_0xa20c6c(0xe7),null),(this[_0xa20c6c(0x133)]=_0x4df589,this[_0xa20c6c(0x90)]=_0x59f436,this[_0xa20c6c(0xab)]=_0x58c508,this[_0xa20c6c(0xb1)]=_0x5021e5,this[_0xa20c6c(0x141)]=_0x37df80);}get['_status'](){return this['_status$']['getValue']();}[_0x1e6e09(0x134)](){const _0x1f1be9=_0x1e6e09;var _0x18c99b;(_0x18c99b=this[_0x1f1be9(0x104)])==null||_0x18c99b[_0x1f1be9(0x134)](),this[_0x1f1be9(0x98)][_0x1f1be9(0xb7)](_0x1f1be9(0xf8)),this[_0x1f1be9(0x98)][_0x1f1be9(0x12e)]();}[_0x1e6e09(0xf0)](){const _0x23c343=_0x1e6e09;return this[_0x23c343(0x13d)];}[_0x1e6e09(0x101)](){const _0x690b24=_0x1e6e09;this[_0x690b24(0xf2)]||(this[_0x690b24(0xf2)]=!0x0,this[_0x690b24(0x90)][_0x690b24(0xd5)]['pipe'](_0x44ee62[_0x690b24(0x139)](this['dispose$']))[_0x690b24(0x107)](_0x13f1f6=>{const _0x4ef24f=_0x690b24;switch(_0x13f1f6){case _0x478ddb[_0x4ef24f(0x14c)][_0x4ef24f(0x100)]:this['_handleOffline']();break;case _0x478ddb['SessionStatus'][_0x4ef24f(0xc7)]:this[_0x4ef24f(0x121)]();break;}}),this[_0x690b24(0x90)][_0x690b24(0x161)][_0x690b24(0x86)](_0x44ee62[_0x690b24(0x139)](this['dispose$']))[_0x690b24(0x107)](_0x341a7e=>{const _0x43bf62=_0x690b24,{eventID:_0x3d837f}=_0x341a7e;switch(_0x3d837f){case _0x14f43['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x43bf62(0x8a)](_0x341a7e);break;case _0x14f43[_0x43bf62(0x14e)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x341a7e);break;case _0x14f43[_0x43bf62(0x14e)][_0x43bf62(0xc8)]:this[_0x43bf62(0x13b)]();break;case _0x14f43[_0x43bf62(0x14e)]['NEW_CHANGESETS']:this[_0x43bf62(0x108)](_0x341a7e);break;}}));}[_0x1e6e09(0xf6)](){const _0x4710ee=_0x1e6e09;this[_0x4710ee(0x90)][_0x4710ee(0xc3)]({'eventID':_0x14f43['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4710ee(0x133)],'userID':this[_0x4710ee(0x90)][_0x4710ee(0x10c)]()}},this[_0x4710ee(0x133)]);}['stopPresenting'](){const _0x1867af=_0x1e6e09;this['_status']===_0x1867af(0xe9)&&(this['_status$'][_0x1867af(0xb7)](_0x1867af(0xf8)),this['_collabSession'][_0x1867af(0xc3)]({'eventID':_0x14f43[_0x1867af(0x14e)][_0x1867af(0xc8)],'data':{'unitID':this[_0x1867af(0x133)]}},this[_0x1867af(0x133)]));}[_0x1e6e09(0x156)](){const _0x2ee9e2=_0x1e6e09;this['_status']===_0x2ee9e2(0xe6)&&(this['_status$']['next'](_0x2ee9e2(0x105)),this['_startFollowing']());}[_0x1e6e09(0xe4)](){const _0x463fad=_0x1e6e09;this[_0x463fad(0x13d)]===_0x463fad(0x105)&&this[_0x463fad(0x154)]();}['_handleNewHost'](_0x1c5044){const _0x8dd41b=_0x1e6e09,{presenter:_0x5bc2be}=_0x1c5044[_0x8dd41b(0x131)],_0x214bf9=this['_collabSession']['getMemberID']();this['_presenter']=_0x5bc2be,_0x5bc2be===_0x214bf9?(this[_0x8dd41b(0x154)](),this[_0x8dd41b(0xff)]()):this[_0x8dd41b(0x13d)]!==_0x8dd41b(0xe6)&&(this[_0x8dd41b(0x120)](),this[_0x8dd41b(0x144)]());}[_0x1e6e09(0xa1)](){const _0x982f3d=_0x1e6e09,_0x96e692={'eventID':_0x14f43[_0x982f3d(0x14e)][_0x982f3d(0xbc)]};this[_0x982f3d(0x90)][_0x982f3d(0xc3)](_0x96e692,this[_0x982f3d(0x133)]);}['_handleTerminate'](){const _0x1dda6e=_0x1e6e09;this[_0x1dda6e(0xe7)]=null,this['_status']!==_0x1dda6e(0xe9)&&this['_beIdle']();}[_0x1e6e09(0x108)](_0x14702b){const _0x6ce2ac=_0x1e6e09;if(this[_0x6ce2ac(0x13d)]===_0x6ce2ac(0x105)&&this['_presenter']===_0x14702b[_0x6ce2ac(0x131)]['memberID']){const _0x4b40f9=_0x14f43[_0x6ce2ac(0x146)](_0x14702b['data'])[_0x6ce2ac(0x99)][_0x6ce2ac(0x106)]()['find'](_0x3ddecc=>_0x3ddecc['id']===_0x1f2f51[_0x6ce2ac(0xf7)]['id']);if(_0x4b40f9){const _0x477aa3=_0x4b40f9['params']['unitId'],_0x196012=_0x4b40f9[_0x6ce2ac(0x112)][_0x6ce2ac(0xb4)]['id'];setTimeout(()=>{const _0x4d4c85=_0x6ce2ac;this[_0x4d4c85(0x141)]['executeCommand'](_0x1f2f51['SetWorksheetActiveOperation']['id'],{'unitId':_0x477aa3,'subUnitId':_0x196012},{'fromCollab':!0x0});});}}}[_0x1e6e09(0xff)](){const _0x15bd9b=_0x1e6e09;this[_0x15bd9b(0x98)][_0x15bd9b(0xb7)](_0x15bd9b(0xe9));const _0x1c1175=new Map(),_0x9ebdee=this[_0x15bd9b(0x104)]=new _0x31596f['DisposableCollection']();_0x9ebdee['add'](_0x31596f[_0x15bd9b(0x128)](()=>{const _0x263325=_0x15bd9b;_0x1c1175['forEach'](_0x1cb831=>_0x1cb831[_0x263325(0x12e)]()),_0x1c1175[_0x263325(0xc0)]();})),_0x9ebdee[_0x15bd9b(0xd0)](this[_0x15bd9b(0x141)][_0x15bd9b(0xdc)](_0x474270=>{const _0x298d0c=_0x15bd9b;var _0x4e2070;if(_0x474270[_0x298d0c(0x91)]!==_0x31596f[_0x298d0c(0x11c)][_0x298d0c(0x13e)]||!this[_0x298d0c(0xb1)]['shouldShareOperation'](_0x474270['id']))return;const {id:_0x7c3a1b}=_0x474270;let _0x252fff;_0x1c1175[_0x298d0c(0x9b)](_0x7c3a1b)?_0x252fff=_0x1c1175[_0x298d0c(0x12b)](_0x7c3a1b):(_0x252fff=new _0x3114d2[(_0x298d0c(0xb5))](),_0x1c1175[_0x298d0c(0xc1)](_0x7c3a1b,_0x252fff),_0x252fff[_0x298d0c(0x86)](_0x44ee62[_0x298d0c(0xba)]((_0x4e2070=this['_configService']['getConfig'](_0x12f3aa))!=null?_0x4e2070:_0xe51124,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x298d0c(0x107)](_0x22e910=>{const _0x5cbfe6=_0x298d0c;this[_0x5cbfe6(0x90)]['send']({'eventID':_0x14f43['CollaborationEvent'][_0x5cbfe6(0xd8)],'data':{'unitID':this['_unitID'],'operations':{[_0x22e910['id']]:{'id':_0x22e910['id'],'params':JSON[_0x5cbfe6(0xda)](_0x22e910[_0x5cbfe6(0x112)])}}}},this[_0x5cbfe6(0x133)]);})),_0x252fff[_0x298d0c(0xb7)](_0x474270);})),this[_0x15bd9b(0xb1)]['getInitialStates'](this[_0x15bd9b(0x133)])[_0x15bd9b(0x14f)](_0x42b323=>this[_0x15bd9b(0x90)][_0x15bd9b(0xc3)]({'eventID':_0x14f43['CollaborationEvent'][_0x15bd9b(0xd8)],'data':{'unitID':this[_0x15bd9b(0x133)],'operations':{[_0x42b323['id']]:{'id':_0x42b323['id'],'params':JSON[_0x15bd9b(0xda)](_0x42b323[_0x15bd9b(0x112)])}}}},this[_0x15bd9b(0x133)]));}[_0x1e6e09(0x120)](){const _0x4338ac=_0x1e6e09;var _0x1cfd36;this[_0x4338ac(0x98)][_0x4338ac(0xb7)]('idle'),(_0x1cfd36=this[_0x4338ac(0x104)])==null||_0x1cfd36['dispose'](),this[_0x4338ac(0x104)]=null;}['_startFollowing'](){const _0x40e000=_0x1e6e09;var _0x3b69f8;(_0x3b69f8=this['_commandDisposable'])==null||_0x3b69f8[_0x40e000(0x134)](),this[_0x40e000(0x98)][_0x40e000(0xb7)](_0x40e000(0x105));}['_beIdle'](){const _0x370530=_0x1e6e09;var _0x4b06c1;this[_0x370530(0x98)][_0x370530(0xb7)](_0x370530(0xf8)),(_0x4b06c1=this[_0x370530(0x104)])==null||_0x4b06c1[_0x370530(0x134)](),this['_commandDisposable']=null;}[_0x1e6e09(0x154)](){const _0x1b7d27=_0x1e6e09;var _0x44fbdf;this[_0x1b7d27(0x98)][_0x1b7d27(0xb7)](_0x1b7d27(0xe6)),(_0x44fbdf=this[_0x1b7d27(0x104)])==null||_0x44fbdf[_0x1b7d27(0x134)]();}[_0x1e6e09(0xee)](_0x4f0b21){const _0x5e7473=_0x1e6e09;if([_0x5e7473(0xe9),_0x5e7473(0xe6),_0x5e7473(0x11b)][_0x5e7473(0x8d)](this[_0x5e7473(0x13d)])||!_0x4f0b21[_0x5e7473(0x131)][_0x5e7473(0xe2)]||_0x4f0b21['data'][_0x5e7473(0xe2)]===this[_0x5e7473(0x90)]['getMemberID']())return;this['_status']===_0x5e7473(0xf8)&&this[_0x5e7473(0x144)]();const _0x2e4360=_0x4f0b21[_0x5e7473(0x131)][_0x5e7473(0x153)];Object[_0x5e7473(0x15d)](_0x2e4360)[_0x5e7473(0x14f)](_0x183a29=>{const _0xdbc42c=_0x5e7473;this[_0xdbc42c(0x141)]['executeCommand'](_0x183a29['id'],_0x183a29[_0xdbc42c(0x112)]?JSON['parse'](_0x183a29[_0xdbc42c(0x112)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0xc799d6=_0x1e6e09;var _0x44f048;this[_0xc799d6(0x98)][_0xc799d6(0xb7)]('offline'),(_0x44f048=this['_commandDisposable'])==null||_0x44f048[_0xc799d6(0x134)]();}[_0x1e6e09(0x121)](){const _0x377e68=_0x1e6e09;this['_status$'][_0x377e68(0xb7)](_0x377e68(0xf8)),this[_0x377e68(0xa1)]();}},_0xaa855f['LiveShareCoordinator']=_0x4653dc([_0x18a4a5(0x2,_0x31596f['IConfigService']),_0x18a4a5(0x3,_0x31596f[_0x1e6e09(0xbe)](_0x3230ab)),_0x18a4a5(0x4,_0x31596f['ICommandService'])],_0xaa855f[_0x1e6e09(0xeb)]);function _0x108e79(){const _0x20533e=_0x1e6e09,_0x5b5a34=_0x190706[_0x20533e(0xb2)](_0xaa855f[_0x20533e(0xc6)]),_0x6dce5b=_0x190706[_0x20533e(0xb2)](_0x31596f[_0x20533e(0x12a)]),_0x309b4a=_0x190706[_0x20533e(0x11e)](()=>_0x6dce5b[_0x20533e(0xe5)](_0x31596f[_0x20533e(0xcf)][_0x20533e(0x15a)]),void 0x0,!0x1,[]),[_0x4eb1d1,_0xf5b3db]=_0x5d948a[_0x20533e(0xf5)](null),[_0x430b06,_0x3b8d4e]=_0x5d948a['useState'](_0xdda2d4['IDLE']),_0x15e254=_0x5d948a[_0x20533e(0xdb)](null);return _0x5d948a['useEffect'](()=>(_0x309b4a&&_0x5b5a34['getLiveShareCoordinator'](_0x309b4a[_0x20533e(0x135)]())[_0x20533e(0x13c)](_0x5db5aa=>{_0xf5b3db(_0x5db5aa),_0x15e254['current']=_0x5db5aa['status$']['subscribe'](_0x51ba1a=>{_0x3b8d4e(_0x51ba1a);});}),()=>{const _0x4dbc02=_0x20533e;var _0x8c9744;(_0x8c9744=_0x15e254['current'])==null||_0x8c9744[_0x4dbc02(0xe3)](),_0x15e254['current']=null;}),[_0x309b4a,_0x5b5a34]),_0x4eb1d1?_0x441506[_0x20533e(0xf1)](_0x45a328[_0x20533e(0xc2)],{'align':'end','disabled':_0x430b06===_0xdda2d4['OFFLINE'],'className':_0x20533e(0x143),'overlay':_0x441506['jsx'](_0x3a996c,{'status':_0x430b06,'coordinator':_0x4eb1d1}),'children':_0x441506[_0x20533e(0xf1)](_0x20533e(0xf4),{'className':_0x45a328[_0x20533e(0xe0)](_0x20533e(0x88),{'univer-cursor-not-allowed':_0x430b06===_0xdda2d4[_0x20533e(0x100)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x430b06!==_0xdda2d4[_0x20533e(0x100)]}),'type':_0x20533e(0xf4),'children':_0x441506[_0x20533e(0xf1)](_0x460c01,{'className':_0x20533e(0x9c)})})}):null;}function _0x3a996c(_0x5db9d8){const _0x2fcfa7=_0x1e6e09,{status:_0x27faa4,coordinator:_0x10d828}=_0x5db9d8;switch(_0x27faa4){case _0xdda2d4[_0x2fcfa7(0xa8)]:return _0x441506[_0x2fcfa7(0xf1)](_0x3d79e8,{'coordinator':_0x10d828});case _0xdda2d4['FOLLOWING']:return _0x441506[_0x2fcfa7(0xf1)](_0x1eda7a,{'coordinator':_0x10d828});case _0xdda2d4['NOT_FOLLOWING']:return _0x441506[_0x2fcfa7(0xf1)](_0x54301c,{'coordinator':_0x10d828});case _0xdda2d4[_0x2fcfa7(0x100)]:return _0x441506[_0x2fcfa7(0xf1)](_0x4f51d5,{});case _0xdda2d4[_0x2fcfa7(0x9f)]:return _0x441506[_0x2fcfa7(0xf1)](_0x1aac89,{'coordinator':_0x10d828});default:return null;}}function _0x3d79e8(_0x12116a){const _0x2cdc0a=_0x1e6e09,{coordinator:_0x1c868c}=_0x12116a;return _0x441506[_0x2cdc0a(0xb8)](_0x441506['Fragment'],{'children':[_0x441506['jsx'](_0x2cdc0a(0xf9),{'className':_0x2cdc0a(0x149),'children':_0x2cdc0a(0x148)}),_0x441506[_0x2cdc0a(0xf1)](_0x45a328[_0x2cdc0a(0xfb)],{'onClick':()=>_0x1c868c[_0x2cdc0a(0xf6)](),'children':'Start'})]});}function _0x1eda7a(_0x1948da){const _0x11f579=_0x1e6e09,{coordinator:_0x3e393b}=_0x1948da;return _0x441506[_0x11f579(0xb8)](_0x441506[_0x11f579(0x137)],{'children':[_0x441506['jsx'](_0x11f579(0xf9),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x11f579(0x95)}),_0x441506[_0x11f579(0xf1)](_0x45a328[_0x11f579(0xfb)],{'onClick':()=>_0x3e393b[_0x11f579(0xe4)](),'children':_0x11f579(0x14b)})]});}function _0x54301c(_0x228525){const _0x3568c6=_0x1e6e09,{coordinator:_0x580526}=_0x228525;return _0x441506[_0x3568c6(0xb8)](_0x441506['Fragment'],{'children':[_0x441506[_0x3568c6(0xf1)](_0x3568c6(0xf9),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3568c6(0x8c)}),_0x441506[_0x3568c6(0xf1)](_0x45a328[_0x3568c6(0xfb)],{'variant':_0x3568c6(0x14d),'onClick':()=>_0x580526[_0x3568c6(0x156)](),'children':_0x3568c6(0x10a)})]});}function _0x1aac89(_0x5da429){const _0x47c6b6=_0x1e6e09,{coordinator:_0x405af8}=_0x5da429;return _0x441506['jsxs'](_0x441506['Fragment'],{'children':[_0x441506[_0x47c6b6(0xf1)](_0x47c6b6(0xf9),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x47c6b6(0x118)}),_0x441506[_0x47c6b6(0xf1)](_0x45a328[_0x47c6b6(0xfb)],{'variant':_0x47c6b6(0x157),'onClick':()=>_0x405af8['stopPresenting'](),'children':_0x47c6b6(0xd9)})]});}function _0x4f51d5(){const _0xa4555a=_0x1e6e09;return _0x441506[_0xa4555a(0xf1)](_0x441506[_0xa4555a(0x137)],{'children':_0xa4555a(0x94)});}var _0x589705=Object['getOwnPropertyDescriptor'],_0xbc4111=(_0x58cade,_0x13b282,_0x368d86,_0x8bba4e)=>{const _0x16c9c5=_0x1e6e09;for(var _0x928fcd=_0x8bba4e>0x1?void 0x0:_0x8bba4e?_0x589705(_0x13b282,_0x368d86):_0x13b282,_0x3b66b7=_0x58cade[_0x16c9c5(0xad)]-0x1,_0x10b96a;_0x3b66b7>=0x0;_0x3b66b7--)(_0x10b96a=_0x58cade[_0x3b66b7])&&(_0x928fcd=_0x10b96a(_0x928fcd)||_0x928fcd);return _0x928fcd;},_0x28c010=(_0x50cc6d,_0x405c9b)=>(_0x1708c6,_0x32f342)=>_0x405c9b(_0x1708c6,_0x32f342,_0x50cc6d);_0xaa855f[_0x1e6e09(0x151)]=class extends _0x31596f['Disposable']{constructor(_0x2a85e5,_0x1a4b60){const _0x206e3a=_0x1e6e09;super(),this[_0x206e3a(0xd7)]=_0x2a85e5,this[_0x206e3a(0x103)]=_0x1a4b60,this[_0x206e3a(0xdf)]();}[_0x1e6e09(0xdf)](){const _0x456483=_0x1e6e09;this[_0x456483(0x155)](this['_uiPartsService'][_0x456483(0xef)](_0x190706['BuiltInUIPart']['HEADER_MENU'],()=>_0x190706['connectInjector'](_0x108e79,this[_0x456483(0xd7)])));}},_0xaa855f['DesktopLiveShareController']=_0xbc4111([_0x28c010(0x0,_0x31596f[_0x1e6e09(0xbe)](_0x31596f[_0x1e6e09(0xfc)])),_0x28c010(0x1,_0x190706[_0x1e6e09(0x119)])],_0xaa855f['DesktopLiveShareController']);const _0x473afb=_0x1e6e09(0xfd),_0x319bf8={};var _0x23a1f8=Object['getOwnPropertyDescriptor'],_0x4d650b=(_0x1a97e0,_0xd1ea1b,_0x37d524,_0x48b9f5)=>{const _0x350eea=_0x1e6e09;for(var _0x4e48f9=_0x48b9f5>0x1?void 0x0:_0x48b9f5?_0x23a1f8(_0xd1ea1b,_0x37d524):_0xd1ea1b,_0x33a824=_0x1a97e0[_0x350eea(0xad)]-0x1,_0x1c98e1;_0x33a824>=0x0;_0x33a824--)(_0x1c98e1=_0x1a97e0[_0x33a824])&&(_0x4e48f9=_0x1c98e1(_0x4e48f9)||_0x4e48f9);return _0x4e48f9;},_0x30488a=(_0x354435,_0x471cf2)=>(_0x2cd102,_0x3cac87)=>_0x471cf2(_0x2cd102,_0x3cac87,_0x354435);let _0x5d442e=class extends _0x31596f[_0x1e6e09(0xc9)]{constructor(_0xdfc1a9){const _0x353752=_0x1e6e09;super(),this['_liveShareService']=_0xdfc1a9,this[_0x353752(0xf2)]();}['_init'](){const _0xfe2f71=_0x1e6e09;[_0x3ec2d6['SetZoomRatioOperation']['id'],_0x3ec2d6[_0xfe2f71(0x122)]['id'],_0x1f2f51['SetWorksheetActiveOperation']['id']]['forEach'](_0x1e5869=>{const _0x40ec37=_0xfe2f71;this[_0x40ec37(0x155)](this['_liveShareService'][_0x40ec37(0xbd)](_0x1e5869));});}};_0x5d442e=_0x4d650b([_0x30488a(0x0,_0x31596f['Inject'](_0x3230ab))],_0x5d442e);var _0x3c3a34=Object['defineProperty'],_0x597340=Object[_0x1e6e09(0xaf)],_0x47aec0=(_0x3956ea,_0x47ef1a,_0x338ea3)=>_0x47ef1a in _0x3956ea?_0x3c3a34(_0x3956ea,_0x47ef1a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x338ea3}):_0x3956ea[_0x47ef1a]=_0x338ea3,_0x2de01a=(_0x32aa00,_0x34a382,_0x371f1d,_0x347025)=>{const _0x14b72a=_0x1e6e09;for(var _0x170cdf=_0x347025>0x1?void 0x0:_0x347025?_0x597340(_0x34a382,_0x371f1d):_0x34a382,_0xc10a4c=_0x32aa00[_0x14b72a(0xad)]-0x1,_0x46cfa8;_0xc10a4c>=0x0;_0xc10a4c--)(_0x46cfa8=_0x32aa00[_0xc10a4c])&&(_0x170cdf=_0x46cfa8(_0x170cdf)||_0x170cdf);return _0x170cdf;},_0x4b8151=(_0x34ba16,_0x2d1ab7)=>(_0x1d35a2,_0x560cb4)=>_0x2d1ab7(_0x1d35a2,_0x560cb4,_0x34ba16),_0x198097=(_0xd7b4f6,_0x179260,_0x67c804)=>_0x47aec0(_0xd7b4f6,typeof _0x179260!=_0x1e6e09(0x126)?_0x179260+'':_0x179260,_0x67c804);const _0x5bdd6c=_0x1e6e09(0x14a);_0xaa855f['UniverLiveSharePlugin']=class extends _0x31596f['Plugin']{constructor(_0x532d6a=_0x319bf8,_0x31865a,_0x43f47c){const _0x8dade1=_0x1e6e09;super(),this[_0x8dade1(0x115)]=_0x532d6a,this[_0x8dade1(0xd7)]=_0x31865a,this['_configService']=_0x43f47c;const {..._0x2e366d}=_0x31596f[_0x8dade1(0x162)]({},_0x319bf8,this[_0x8dade1(0x115)]);this[_0x8dade1(0xab)][_0x8dade1(0x10f)](_0x473afb,_0x2e366d);}['onStarting'](){const _0x10f897=_0x1e6e09;_0x31596f[_0x10f897(0xcc)](this['_injector'],_0x31596f[_0x10f897(0xa5)]([[_0x3230ab],[_0xaa855f[_0x10f897(0xc6)]],[_0x5d442e],[_0xaa855f['DesktopLiveShareController']]],this[_0x10f897(0x115)][_0x10f897(0x129)])),_0x31596f[_0x10f897(0x10e)](this[_0x10f897(0xd7)],[[_0x5d442e]]);}[_0x1e6e09(0x9e)](){const _0x393442=_0x1e6e09;_0x31596f[_0x393442(0x10e)](this['_injector'],[[_0xaa855f['DesktopLiveShareController']]]);}},_0x198097(_0xaa855f[_0x1e6e09(0x111)],_0x1e6e09(0x91),_0x31596f[_0x1e6e09(0xcf)][_0x1e6e09(0x85)]),_0x198097(_0xaa855f['UniverLiveSharePlugin'],'pluginName',_0x5bdd6c),_0xaa855f[_0x1e6e09(0x111)]=_0x2de01a([_0x31596f[_0x1e6e09(0x93)](_0x478ddb['UniverCollaborationClientPlugin']),_0x4b8151(0x1,_0x31596f[_0x1e6e09(0xbe)](_0x31596f[_0x1e6e09(0xfc)])),_0x4b8151(0x2,_0x31596f[_0x1e6e09(0xd4)])],_0xaa855f[_0x1e6e09(0x111)]),_0xaa855f['LiveShare']=_0x108e79,_0xaa855f[_0x1e6e09(0x12d)]=_0x3230ab,_0xaa855f['LiveShareStatus']=_0xdda2d4,Object[_0x1e6e09(0xa2)](_0xaa855f,Symbol[_0x1e6e09(0x116)],{'value':'Module'});}));function _0x2c2f(){const _0x22c2e1=['takeUntil','createElement','_handleTerminate','then','_status','OPERATION','attrs','6178948TniGlm','_commandService','svg','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','_startFollowing','_reporters','parseProtocolChangeset','none','Present\x20this\x20document','univer-mb-3\x20univer-w-full\x20univer-text-sm','UNIVER_LIVE_SHARE_PLUGIN','Stop\x20following','SessionStatus','text','CollaborationEvent','forEach','getTypeOfUnitDisposed$','DesktopLiveShareController','UniverProLiveShare','operations','_stopFollowing','disposeWithMe','startFollowing','default','UniverUi','35YUlTZu','UNIVER_SHEET','delete','defIds','values','10775nuCdZz','rxjs/operators','1302135SgCfnO','event$','merge','amd','@univerjs-pro/collaboration','children','UNIVER_UNKNOWN','pipe','getTypeOfUnitAdded$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_collabSessionService','_handleNewHost','_startLiveShareCoordinator','You\x27re\x20not\x20following\x20the\x20presenter','includes','rxjs','RxDisposable','_collabSession','type','1RKnWoJ','DependentOn','You\x27are\x20offline.','You\x27re\x20following\x20the\x20presenter','tag','idSuffix','_status$','mutations','@univerjs/ui','has','univer-size-4','2607240aTHeiP','onRendered','PRESENTING','random','_fetchOperations','defineProperty','getInitialStates','CollaborationSessionService','mergeOverrideWithDependencies','map','React','IDLE','univerjs-icon\x20univerjs-icon-','UniverProCollaboration','_configService','use','length','UniverCore','getOwnPropertyDescriptor','currentColor','_liveShareService','useDependency','forwardRef','sheet','Subject','operators','next','jsxs','91446ziBqyU','throttleTime','getLiveShareCoordinatorSync','LIVESHARE_FETCH_OPERATIONS','registerSharedOperation','Inject','from','clear','set','Dropdown','send','46079690GQauUx','_sharedOperations','LiveShareController','ONLINE','LIVESHARE_TERMINATE','Disposable','@univerjs/core','evenodd','registerDependencies','UniverProCollaborationClient','@univerjs/design','UniverInstanceType','add','url(#$1','asObservable','_entities','IConfigService','sessionStatus$','function','_injector','LIVESHARE_OPERATION','Stop\x20presenting','stringify','useRef','onCommandExecuted','registerInitialStateReporter','exports','_mountLiveShare','clsx','xlink:href','presenter','unsubscribe','stopFollowing','getCurrentTypeOfUnit$','not-following','_presenter','http://www.w3.org/2000/svg','presenting','string','LiveShareCoordinator','dispose$','UniverIcon','_handleOperation','registerComponent','getStatus','jsx','_init','UniverSheetsUi','button','useState','tryStartPresenting','InsertSheetMutation','idle','div','trim','Button','Injector','live-share.config','current','_startPresenting','OFFLINE','init','createInstance','_uiPartsService','_commandDisposable','following','reverse','subscribe','_handleNewChangeSets','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','Start\x20following','toString','getMemberID','UniverDesign','touchDependencies','setConfig','fill','UniverLiveSharePlugin','params','LiveShareIcon','FOLLOWING','_config','toStringTag','defs','You\x27re\x20presenting\x20the\x20document','IUIPartsService','NOT_FOLLOWING','offline','CommandType','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','useObservable','displayName','_stopPresenting','_handleOnline','SetScrollOperation','_univerInstanceService','path','replace','symbol','object','toDisposable','override','IUniverInstanceService','get','@univerjs/sheets','LiveShareService','complete','colorChannel1','SAME_OPERATION_SHARE_INTERVAL','data','12672810NgYCfH','_unitID','dispose','getUnitId','1038rGGzwf','Fragment','entries'];_0x2c2f=function(){return _0x22c2e1;};return _0x2c2f();}
|
|
1
|
+
function _0x41e0(_0x5d2a00,_0x2659fd){_0x5d2a00=_0x5d2a00-0x136;const _0x481193=_0x4811();let _0x41e083=_0x481193[_0x5d2a00];return _0x41e083;}function _0x4811(){const _0x542749=['takeUntil','You\x27are\x20offline.','9pnOmKL','data','SetWorksheetActiveOperation','init','Plugin','useObservable','type','NOT_FOLLOWING','UNIVER_LIVE_SHARE_PLUGIN','_presenter','object','onCommandExecuted','defIds','toString','@univerjs-pro/collaboration-client','div','IUIPartsService','children','stopPresenting','pipe','default','@univerjs-pro/collaboration','10iTKoKx','following','http://www.w3.org/2000/svg','string','Start','toStringTag','clsx','ICommandService','onStarting','xlink:href','3162520VaMngT','pluginName','Inject','univer-size-4','mergeOverrideWithDependencies','symbol','LIVESHARE_REQUEST_HOST','length','getConfig','registerSharedOperation','Subject','displayName','Disposable','_startFollowing','univer-mb-3\x20univer-w-full\x20univer-text-sm','2478430fzCADG','map','_handleOnline','_handleOffline','jsxs','LiveShareCoordinator','7aroXXM','dispose','useRef','SessionStatus','startFollowing','@univerjs/design','getMemberID','colorChannel1','has','stopFollowing','@univerjs/sheets-ui','_handleOperation','InsertSheetMutation','Injector','_handleNewHost','8163221WeoCGC','get','defineProperty','IConfigService','button','UniverDesign','operations','exports','UniverInstanceType','rxjs','includes','UniverLiveSharePlugin','SetZoomRatioOperation','merge','setConfig','getOwnPropertyDescriptor','_beIdle','IUniverInstanceService','@univerjs/core','DesktopLiveShareController','mask','_mountLiveShare','useEffect','_handleNewChangeSets','add','current','send','LIVESHARE_TERMINATE','NEW_CHANGESETS','getCurrentTypeOfUnit$','function','LiveShareStatus','subscribe','clear','RxDisposable','_fetchOperations','memberID','103656ZDbcRH','695754SeyRDy','registerComponent','SetScrollOperation','_commandDisposable','dispose$','UniverProLiveShare','executeCommand','LiveShareService','registerInitialStateReporter','_config','CommandType','CollaborationEvent','LIVESHARE_NEW_HOST','ONLINE','set','UniverProCollaborationClient','substring','BuiltInUIPart','Present\x20this\x20document','_unitID','HEADER_MENU','_entities','_sharedOperations','_reporters','evenodd','forEach','not-following','createElement','defs','getLiveShareCoordinator','amd','_liveShareService','You\x27re\x20following\x20the\x20presenter','find','UniverUi','createInstance','unsubscribe','forwardRef','getUnitId','0\x200\x2017\x2017','sessionStatus$','jsx','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','FOLLOWING','58gkClUn','delete','entries','UniverCore','presenting','UNIVER_SHEET','_stopFollowing','disposeWithMe','getInitialStates','status$','replace','getTypeOfUnitAdded$','_status','useDependency','then','stringify','React','reverse','Stop\x20following','offline','throttleTime','idle','_injector','IDLE','UNIVER_UNKNOWN','1230480pDSKFF','react/jsx-runtime','LIVESHARE_FETCH_OPERATIONS','1em','Button','_handleTerminate','currentColor','getValue','DependentOn','UniverSheets','Module','_uiPartsService','presenter','DisposableCollection','_commandService','parseProtocolChangeset','LiveShareController','none','@univerjs/ui','LIVESHARE_OPERATION','params','unitId','toDisposable','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_startPresenting','_status$','SAME_OPERATION_SHARE_INTERVAL','getLiveShareCoordinatorSync','_configService','touchDependencies','url(#$1','next','useState','sheet','12PJQcSr','Fragment','values','path','2700BrRayR','BehaviorSubject','idSuffix','UniverSheetsUi','attrs','_collabSessionService','tag','PRESENTING','rxjs/operators','live-share-icon','parse','_startLiveShareCoordinator','_init','_stopPresenting','trim','random','svg','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','react','use','OFFLINE','getStatus','Dropdown','complete','_collabSession','_univerInstanceService','shouldShareOperation','You\x27re\x20not\x20following\x20the\x20presenter'];_0x4811=function(){return _0x542749;};return _0x4811();}(function(_0x483c93,_0x2ac554){const _0x8b4e19=_0x41e0,_0x498427=_0x483c93();while(!![]){try{const _0x52de34=-parseInt(_0x8b4e19(0x1eb))/0x1*(-parseInt(_0x8b4e19(0x137))/0x2)+-parseInt(_0x8b4e19(0x1be))/0x3+parseInt(_0x8b4e19(0x204))/0x4+parseInt(_0x8b4e19(0x16b))/0x5*(-parseInt(_0x8b4e19(0x1bf))/0x6)+parseInt(_0x8b4e19(0x18a))/0x7*(-parseInt(_0x8b4e19(0x175))/0x8)+parseInt(_0x8b4e19(0x155))/0x9*(-parseInt(_0x8b4e19(0x184))/0xa)+-parseInt(_0x8b4e19(0x199))/0xb*(-parseInt(_0x8b4e19(0x226))/0xc);if(_0x52de34===_0x2ac554)break;else _0x498427['push'](_0x498427['shift']());}catch(_0x28071c){_0x498427['push'](_0x498427['shift']());}}}(_0x4811,0x35523),function(_0x3aee2e,_0x408b28){const _0x57bc09=_0x41e0;typeof exports==_0x57bc09(0x15f)&&typeof module<'u'?_0x408b28(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==_0x57bc09(0x1b7)&&define[_0x57bc09(0x1dd)]?define([_0x57bc09(0x1a0),_0x57bc09(0x1ab),_0x57bc09(0x216),_0x57bc09(0x205),_0x57bc09(0x18f),_0x57bc09(0x149),_0x57bc09(0x16a),_0x57bc09(0x163),'@univerjs/sheets','rxjs',_0x57bc09(0x13f),_0x57bc09(0x194)],_0x408b28):(_0x3aee2e=typeof globalThis<'u'?globalThis:_0x3aee2e||self,_0x408b28(_0x3aee2e[_0x57bc09(0x1c4)]={},_0x3aee2e[_0x57bc09(0x1ee)],_0x3aee2e[_0x57bc09(0x1e1)],_0x3aee2e['React'],_0x3aee2e[_0x57bc09(0x19e)],_0x3aee2e[_0x57bc09(0x1fb)],_0x3aee2e['UniverProCollaboration'],_0x3aee2e[_0x57bc09(0x1ce)],_0x3aee2e[_0x57bc09(0x20d)],_0x3aee2e[_0x57bc09(0x1a2)],_0x3aee2e['rxjs']['operators'],_0x3aee2e[_0x57bc09(0x13a)]));}(this,function(_0xcb6eb3,_0x2fb189,_0x3254bb,_0x1e92d8,_0x36abbf,_0x31c8bc,_0x1163d7,_0x461dcf,_0x5f1355,_0x28bb0c,_0x8537c8,_0x54d190){'use strict';const _0x4b7f0a=_0x41e0;var _0x3c3f8c=Object[_0x4b7f0a(0x19b)],_0x1d6abb=(_0x4df3c7,_0x5a8e4c,_0x93ab1f)=>_0x5a8e4c in _0x4df3c7?_0x3c3f8c(_0x4df3c7,_0x5a8e4c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x93ab1f}):_0x4df3c7[_0x5a8e4c]=_0x93ab1f,_0x150d0b=(_0x593610,_0x52a478,_0x25eedb)=>_0x1d6abb(_0x593610,typeof _0x52a478!=_0x4b7f0a(0x17a)?_0x52a478+'':_0x52a478,_0x25eedb);function _0x238469({ref:_0x280e1c,..._0x1e736c}){const _0x394d37=_0x4b7f0a,{icon:_0x43df0d,id:_0x151dc1,className:_0x4eea01,extend:_0x29b1f4,..._0x3d6b65}=_0x1e736c,_0x382943=('univerjs-icon\x20univerjs-icon-'+_0x151dc1+'\x20'+(_0x4eea01||''))[_0x394d37(0x145)](),_0x4ee11f=_0x31c8bc[_0x394d37(0x18c)]('_'+_0xf1116d());return _0x296492(_0x43df0d,''+_0x151dc1,{'defIds':_0x43df0d[_0x394d37(0x161)],'idSuffix':_0x4ee11f[_0x394d37(0x1b2)]},{'ref':_0x280e1c,'className':_0x382943,..._0x3d6b65},_0x29b1f4);}function _0x296492(_0x43e811,_0x342a10,_0x145123,_0x455aac,_0xefb5){const _0x52f282=_0x4b7f0a;return _0x31c8bc[_0x52f282(0x1da)](_0x43e811[_0x52f282(0x13d)],{'key':_0x342a10,..._0x4b6b76(_0x43e811,_0x145123,_0xefb5),..._0x455aac},(_0x8fd176(_0x43e811,_0x145123)[_0x52f282(0x166)]||[])['map']((_0x1150eb,_0x32891e)=>_0x296492(_0x1150eb,_0x342a10+'-'+_0x43e811[_0x52f282(0x13d)]+'-'+_0x32891e,_0x145123,void 0x0,_0xefb5)));}function _0x4b6b76(_0x539340,_0x3068e6,_0xec3960){const _0x52bb3e=_0x4b7f0a,_0x4bf635={..._0x539340[_0x52bb3e(0x13b)]};_0xec3960!=null&&_0xec3960['colorChannel1']&&_0x4bf635['fill']===_0x52bb3e(0x191)&&(_0x4bf635['fill']=_0xec3960[_0x52bb3e(0x191)]),_0x539340[_0x52bb3e(0x13d)]===_0x52bb3e(0x1ad)&&_0x4bf635['id']&&(_0x4bf635['id']=_0x4bf635['id']+_0x3068e6['idSuffix']),Object[_0x52bb3e(0x1ed)](_0x4bf635)['forEach'](([_0x321e19,_0x5a49ab])=>{const _0x28979c=_0x52bb3e;_0x321e19===_0x28979c(0x1ad)&&typeof _0x5a49ab==_0x28979c(0x16e)&&(_0x4bf635[_0x321e19]=_0x5a49ab[_0x28979c(0x1f5)](/url\(#(.*)\)/,'url(#$1'+_0x3068e6[_0x28979c(0x139)]+')'));});const {defIds:_0x5086d5}=_0x3068e6;return!_0x5086d5||_0x5086d5[_0x52bb3e(0x17c)]===0x0||(_0x539340[_0x52bb3e(0x13d)]===_0x52bb3e(0x14a)&&_0x4bf635[_0x52bb3e(0x174)]&&(_0x4bf635[_0x52bb3e(0x174)]=_0x4bf635[_0x52bb3e(0x174)]+_0x3068e6[_0x52bb3e(0x139)]),Object['entries'](_0x4bf635)[_0x52bb3e(0x1d8)](([_0x11fcf2,_0x47fb54])=>{const _0x1aec8=_0x52bb3e;typeof _0x47fb54==_0x1aec8(0x16e)&&(_0x4bf635[_0x11fcf2]=_0x47fb54[_0x1aec8(0x1f5)](/url\(#(.*)\)/,_0x1aec8(0x222)+_0x3068e6[_0x1aec8(0x139)]+')'));})),_0x4bf635;}function _0x8fd176(_0x3fd274,_0x18aa0f){const _0x28bbca=_0x4b7f0a;var _0x45ba59;const {defIds:_0x24930d}=_0x18aa0f;return!_0x24930d||_0x24930d[_0x28bbca(0x17c)]===0x0?_0x3fd274:_0x3fd274[_0x28bbca(0x13d)]===_0x28bbca(0x1db)&&((_0x45ba59=_0x3fd274[_0x28bbca(0x166)])!=null&&_0x45ba59['length'])?{..._0x3fd274,'children':_0x3fd274[_0x28bbca(0x166)][_0x28bbca(0x185)](_0x3231d0=>typeof _0x3231d0['attrs']['id']==_0x28bbca(0x16e)&&_0x24930d&&_0x24930d['includes'](_0x3231d0[_0x28bbca(0x13b)]['id'])?{..._0x3231d0,'attrs':{..._0x3231d0[_0x28bbca(0x13b)],'id':_0x3231d0[_0x28bbca(0x13b)]['id']+_0x18aa0f[_0x28bbca(0x139)]}}:_0x3231d0)}:_0x3fd274;}function _0xf1116d(){const _0x1e4b82=_0x4b7f0a;return Math[_0x1e4b82(0x146)]()[_0x1e4b82(0x162)](0x24)[_0x1e4b82(0x1cf)](0x2,0x8);}_0x238469[_0x4b7f0a(0x180)]='UniverIcon';const _0x19743a={'tag':_0x4b7f0a(0x147),'attrs':{'xmlns':_0x4b7f0a(0x16d),'fill':_0x4b7f0a(0x215),'viewBox':_0x4b7f0a(0x1e6),'width':_0x4b7f0a(0x207),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x4b7f0a(0x20a),'d':_0x4b7f0a(0x1e9)}},{'tag':_0x4b7f0a(0x136),'attrs':{'fill':_0x4b7f0a(0x20a),'d':_0x4b7f0a(0x148),'fillRule':_0x4b7f0a(0x1d7),'clipRule':_0x4b7f0a(0x1d7)}}]},_0x46538d=_0x31c8bc[_0x4b7f0a(0x1e4)](function(_0x58df60,_0x4295c1){const _0x4fac57=_0x4b7f0a;return _0x31c8bc[_0x4fac57(0x1da)](_0x238469,Object['assign']({},_0x58df60,{'id':_0x4fac57(0x140),'ref':_0x4295c1,'icon':_0x19743a}));});_0x46538d[_0x4b7f0a(0x180)]='LiveShareIcon';class _0x2a462c extends _0x2fb189[_0x4b7f0a(0x181)]{constructor(){const _0x112f58=_0x4b7f0a;super(...arguments),_0x150d0b(this,_0x112f58(0x1d5),new Set()),_0x150d0b(this,_0x112f58(0x1d6),new Set());}['registerSharedOperation'](_0x213ac2){const _0x178c3c=_0x4b7f0a;return this[_0x178c3c(0x1d5)]['add'](_0x213ac2),_0x2fb189['toDisposable'](()=>this[_0x178c3c(0x1d5)][_0x178c3c(0x1ec)](_0x213ac2));}[_0x4b7f0a(0x1c7)](_0x4dbe56){const _0x566a4e=_0x4b7f0a;return this[_0x566a4e(0x1d6)][_0x566a4e(0x1b1)](_0x4dbe56),_0x2fb189[_0x566a4e(0x21a)](()=>this[_0x566a4e(0x1d6)]['delete'](_0x4dbe56));}['shouldShareOperation'](_0x4dfc5c){const _0x1be043=_0x4b7f0a;return this[_0x1be043(0x1d5)][_0x1be043(0x192)](_0x4dfc5c);}['getInitialStates'](_0xeba103){const _0x137560=_0x4b7f0a;return Array['from'](this[_0x137560(0x1d6)])['map'](_0x141d1e=>_0x141d1e(_0xeba103));}}var _0x55f7bf=Object[_0x4b7f0a(0x1a8)],_0x22b0dd=(_0x3e821f,_0x45ee3c,_0x1e9b20,_0x575b13)=>{const _0x228802=_0x4b7f0a;for(var _0x11909e=_0x575b13>0x1?void 0x0:_0x575b13?_0x55f7bf(_0x45ee3c,_0x1e9b20):_0x45ee3c,_0x4f0964=_0x3e821f[_0x228802(0x17c)]-0x1,_0x15fd72;_0x4f0964>=0x0;_0x4f0964--)(_0x15fd72=_0x3e821f[_0x4f0964])&&(_0x11909e=_0x15fd72(_0x11909e)||_0x11909e);return _0x11909e;},_0x3ecf1d=(_0xd85ebd,_0x4e7bef)=>(_0x3287ce,_0x183d12)=>_0x4e7bef(_0x3287ce,_0x183d12,_0xd85ebd);_0xcb6eb3[_0x4b7f0a(0x214)]=class extends _0x2fb189['RxDisposable']{constructor(_0x554eec,_0x55e89a,_0x52c7cb){const _0x347ae3=_0x4b7f0a;super(),_0x150d0b(this,_0x347ae3(0x1d4),new Map()),(this[_0x347ae3(0x150)]=_0x554eec,this['_injector']=_0x55e89a,this[_0x347ae3(0x13c)]=_0x52c7cb,this[_0x347ae3(0x143)]());}async[_0x4b7f0a(0x1dc)](_0x16bfa0){const _0x20c3c4=_0x4b7f0a;return this[_0x20c3c4(0x1d4)][_0x20c3c4(0x192)](_0x16bfa0)||await this[_0x20c3c4(0x142)](_0x16bfa0),this['_entities'][_0x20c3c4(0x19a)](_0x16bfa0);}[_0x4b7f0a(0x21f)](_0x35d19a){const _0x3f3b2c=_0x4b7f0a;var _0x1d612f;return(_0x1d612f=this[_0x3f3b2c(0x1d4)][_0x3f3b2c(0x19a)](_0x35d19a))!=null?_0x1d612f:null;}[_0x4b7f0a(0x143)](){const _0x4c1d26=_0x4b7f0a;this['_univerInstanceService'][_0x4c1d26(0x1f6)](_0x2fb189[_0x4c1d26(0x1a1)]['UNIVER_SHEET'])[_0x4c1d26(0x168)](_0x8537c8['takeUntil'](this[_0x4c1d26(0x1c3)]))[_0x4c1d26(0x1b9)](async _0x34aaab=>{const _0x19167d=_0x4c1d26,_0x31b2fe=_0x34aaab[_0x19167d(0x1e5)]();this[_0x19167d(0x1d4)][_0x19167d(0x192)](_0x31b2fe)||this['_startLiveShareCoordinator'](_0x31b2fe);}),this[_0x4c1d26(0x150)]['getTypeOfUnitDisposed$'](_0x2fb189['UniverInstanceType'][_0x4c1d26(0x1f0)])[_0x4c1d26(0x168)](_0x8537c8[_0x4c1d26(0x153)](this[_0x4c1d26(0x1c3)]))[_0x4c1d26(0x1b9)](_0x3ef80f=>{const _0x2c08fe=_0x4c1d26,_0x371eac=_0x3ef80f[_0x2c08fe(0x1e5)](),_0x7b10ae=this[_0x2c08fe(0x1d4)][_0x2c08fe(0x19a)](_0x371eac);_0x7b10ae==null||_0x7b10ae[_0x2c08fe(0x18b)]();});}async[_0x4b7f0a(0x142)](_0x4de2aa){const _0x933b47=_0x4b7f0a,_0x221fd2=await this[_0x933b47(0x13c)]['requireSession'](_0x4de2aa),_0x112d1d=this[_0x933b47(0x201)][_0x933b47(0x1e2)](_0xcb6eb3[_0x933b47(0x189)],_0x4de2aa,_0x221fd2);return _0x112d1d[_0x933b47(0x158)](),this[_0x933b47(0x1d4)][_0x933b47(0x1cd)](_0x4de2aa,_0x112d1d),_0x112d1d;}},_0xcb6eb3['LiveShareController']=_0x22b0dd([_0x3ecf1d(0x0,_0x2fb189[_0x4b7f0a(0x1aa)]),_0x3ecf1d(0x1,_0x2fb189[_0x4b7f0a(0x177)](_0x2fb189[_0x4b7f0a(0x197)])),_0x3ecf1d(0x2,_0x2fb189[_0x4b7f0a(0x177)](_0x461dcf['CollaborationSessionService']))],_0xcb6eb3[_0x4b7f0a(0x214)]);var _0x335447=(_0x1c1f2b=>(_0x1c1f2b[_0x4b7f0a(0x14b)]=_0x4b7f0a(0x1fe),_0x1c1f2b[_0x4b7f0a(0x202)]=_0x4b7f0a(0x200),_0x1c1f2b['FOLLOWING']=_0x4b7f0a(0x16c),_0x1c1f2b[_0x4b7f0a(0x15c)]=_0x4b7f0a(0x1d9),_0x1c1f2b[_0x4b7f0a(0x13e)]=_0x4b7f0a(0x1ef),_0x1c1f2b))(_0x335447||{});const _0x476263=_0x4b7f0a(0x21e),_0x418a00=0xc8;_0xcb6eb3[_0x4b7f0a(0x189)]=class extends _0x2fb189[_0x4b7f0a(0x1bb)]{constructor(_0x30e93c,_0x17f998,_0x36cdfb,_0x4c7232,_0x179f45){const _0x48813c=_0x4b7f0a;super(),_0x150d0b(this,'_status$',new _0x28bb0c[(_0x48813c(0x138))]('idle')),_0x150d0b(this,'status$',this[_0x48813c(0x21d)]['asObservable']()),_0x150d0b(this,_0x48813c(0x143),!0x1),_0x150d0b(this,_0x48813c(0x1c2),null),_0x150d0b(this,_0x48813c(0x15e),null),(this[_0x48813c(0x1d2)]=_0x30e93c,this['_collabSession']=_0x17f998,this['_configService']=_0x36cdfb,this[_0x48813c(0x1de)]=_0x4c7232,this['_commandService']=_0x179f45);}get[_0x4b7f0a(0x1f7)](){const _0x2d30c5=_0x4b7f0a;return this[_0x2d30c5(0x21d)][_0x2d30c5(0x20b)]();}['dispose'](){const _0x34fd1e=_0x4b7f0a;var _0xde9b52;(_0xde9b52=this[_0x34fd1e(0x1c2)])==null||_0xde9b52[_0x34fd1e(0x18b)](),this[_0x34fd1e(0x21d)][_0x34fd1e(0x223)](_0x34fd1e(0x200)),this[_0x34fd1e(0x21d)]['complete']();}[_0x4b7f0a(0x14c)](){const _0x593def=_0x4b7f0a;return this[_0x593def(0x1f7)];}[_0x4b7f0a(0x158)](){const _0x5d5569=_0x4b7f0a;this[_0x5d5569(0x143)]||(this[_0x5d5569(0x143)]=!0x0,this[_0x5d5569(0x14f)][_0x5d5569(0x1e7)][_0x5d5569(0x168)](_0x8537c8[_0x5d5569(0x153)](this[_0x5d5569(0x1c3)]))[_0x5d5569(0x1b9)](_0x37c014=>{const _0x2ffe12=_0x5d5569;switch(_0x37c014){case _0x461dcf[_0x2ffe12(0x18d)]['OFFLINE']:this[_0x2ffe12(0x187)]();break;case _0x461dcf[_0x2ffe12(0x18d)][_0x2ffe12(0x1cc)]:this[_0x2ffe12(0x186)]();break;}}),this[_0x5d5569(0x14f)]['event$']['pipe'](_0x8537c8['takeUntil'](this[_0x5d5569(0x1c3)]))[_0x5d5569(0x1b9)](_0x4355ae=>{const _0x594949=_0x5d5569,{eventID:_0x4182f2}=_0x4355ae;switch(_0x4182f2){case _0x1163d7[_0x594949(0x1ca)][_0x594949(0x1cb)]:this['_handleNewHost'](_0x4355ae);break;case _0x1163d7[_0x594949(0x1ca)][_0x594949(0x217)]:this[_0x594949(0x195)](_0x4355ae);break;case _0x1163d7[_0x594949(0x1ca)][_0x594949(0x1b4)]:this[_0x594949(0x209)]();break;case _0x1163d7[_0x594949(0x1ca)][_0x594949(0x1b5)]:this['_handleNewChangeSets'](_0x4355ae);break;}}));}['tryStartPresenting'](){const _0x295d2c=_0x4b7f0a;this['_collabSession']['send']({'eventID':_0x1163d7[_0x295d2c(0x1ca)][_0x295d2c(0x17b)],'data':{'unitID':this[_0x295d2c(0x1d2)],'userID':this[_0x295d2c(0x14f)][_0x295d2c(0x190)]()}},this[_0x295d2c(0x1d2)]);}[_0x4b7f0a(0x167)](){const _0x3bc495=_0x4b7f0a;this[_0x3bc495(0x1f7)]===_0x3bc495(0x1ef)&&(this['_status$'][_0x3bc495(0x223)](_0x3bc495(0x200)),this[_0x3bc495(0x14f)]['send']({'eventID':_0x1163d7[_0x3bc495(0x1ca)][_0x3bc495(0x1b4)],'data':{'unitID':this['_unitID']}},this[_0x3bc495(0x1d2)]));}[_0x4b7f0a(0x18e)](){const _0x457877=_0x4b7f0a;this['_status']==='not-following'&&(this[_0x457877(0x21d)][_0x457877(0x223)]('following'),this[_0x457877(0x182)]());}[_0x4b7f0a(0x193)](){const _0x45bde4=_0x4b7f0a;this['_status']===_0x45bde4(0x16c)&&this[_0x45bde4(0x1f1)]();}[_0x4b7f0a(0x198)](_0x3becf4){const _0x3c2aef=_0x4b7f0a,{presenter:_0xafa3af}=_0x3becf4[_0x3c2aef(0x156)],_0x3cb0a9=this[_0x3c2aef(0x14f)][_0x3c2aef(0x190)]();this[_0x3c2aef(0x15e)]=_0xafa3af,_0xafa3af===_0x3cb0a9?(this['_stopFollowing'](),this[_0x3c2aef(0x21c)]()):this['_status']!==_0x3c2aef(0x1d9)&&(this['_stopPresenting'](),this[_0x3c2aef(0x182)]());}[_0x4b7f0a(0x1bc)](){const _0x5017bd=_0x4b7f0a,_0x48a645={'eventID':_0x1163d7['CollaborationEvent'][_0x5017bd(0x206)]};this[_0x5017bd(0x14f)][_0x5017bd(0x1b3)](_0x48a645,this[_0x5017bd(0x1d2)]);}[_0x4b7f0a(0x209)](){const _0x1c00be=_0x4b7f0a;this[_0x1c00be(0x15e)]=null,this[_0x1c00be(0x1f7)]!==_0x1c00be(0x1ef)&&this[_0x1c00be(0x1a9)]();}[_0x4b7f0a(0x1b0)](_0x27c8fe){const _0x9b37b9=_0x4b7f0a;if(this[_0x9b37b9(0x1f7)]===_0x9b37b9(0x16c)&&this[_0x9b37b9(0x15e)]===_0x27c8fe[_0x9b37b9(0x156)][_0x9b37b9(0x1bd)]){const _0x319541=_0x1163d7[_0x9b37b9(0x213)](_0x27c8fe[_0x9b37b9(0x156)])['mutations'][_0x9b37b9(0x1fc)]()[_0x9b37b9(0x1e0)](_0x4ef72e=>_0x4ef72e['id']===_0x5f1355[_0x9b37b9(0x196)]['id']);if(_0x319541){const _0x3773eb=_0x319541[_0x9b37b9(0x218)][_0x9b37b9(0x219)],_0x5121fc=_0x319541[_0x9b37b9(0x218)][_0x9b37b9(0x225)]['id'];setTimeout(()=>{const _0x1fca33=_0x9b37b9;this['_commandService'][_0x1fca33(0x1c5)](_0x5f1355['SetWorksheetActiveOperation']['id'],{'unitId':_0x3773eb,'subUnitId':_0x5121fc},{'fromCollab':!0x0});});}}}[_0x4b7f0a(0x21c)](){const _0x4a476b=_0x4b7f0a;this[_0x4a476b(0x21d)][_0x4a476b(0x223)](_0x4a476b(0x1ef));const _0x2b07f9=new Map(),_0x2d3e4d=this['_commandDisposable']=new _0x2fb189[(_0x4a476b(0x211))]();_0x2d3e4d[_0x4a476b(0x1b1)](_0x2fb189['toDisposable'](()=>{const _0x491b77=_0x4a476b;_0x2b07f9[_0x491b77(0x1d8)](_0x3b3a9a=>_0x3b3a9a[_0x491b77(0x14e)]()),_0x2b07f9[_0x491b77(0x1ba)]();})),_0x2d3e4d[_0x4a476b(0x1b1)](this[_0x4a476b(0x212)][_0x4a476b(0x160)](_0x410f3c=>{const _0x4a1fc4=_0x4a476b;var _0x2255d2;if(_0x410f3c['type']!==_0x2fb189[_0x4a1fc4(0x1c9)]['OPERATION']||!this[_0x4a1fc4(0x1de)][_0x4a1fc4(0x151)](_0x410f3c['id']))return;const {id:_0x14e6e0}=_0x410f3c;let _0x1892ac;_0x2b07f9['has'](_0x14e6e0)?_0x1892ac=_0x2b07f9[_0x4a1fc4(0x19a)](_0x14e6e0):(_0x1892ac=new _0x28bb0c[(_0x4a1fc4(0x17f))](),_0x2b07f9[_0x4a1fc4(0x1cd)](_0x14e6e0,_0x1892ac),_0x1892ac[_0x4a1fc4(0x168)](_0x8537c8[_0x4a1fc4(0x1ff)]((_0x2255d2=this[_0x4a1fc4(0x220)][_0x4a1fc4(0x17d)](_0x476263))!=null?_0x2255d2:_0x418a00,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4a1fc4(0x1b9)](_0xfd8e56=>{const _0x28a3b4=_0x4a1fc4;this['_collabSession'][_0x28a3b4(0x1b3)]({'eventID':_0x1163d7[_0x28a3b4(0x1ca)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x28a3b4(0x1d2)],'operations':{[_0xfd8e56['id']]:{'id':_0xfd8e56['id'],'params':JSON[_0x28a3b4(0x1fa)](_0xfd8e56[_0x28a3b4(0x218)])}}}},this[_0x28a3b4(0x1d2)]);})),_0x1892ac[_0x4a1fc4(0x223)](_0x410f3c);})),this['_liveShareService'][_0x4a476b(0x1f3)](this['_unitID'])[_0x4a476b(0x1d8)](_0x4ee371=>this[_0x4a476b(0x14f)]['send']({'eventID':_0x1163d7['CollaborationEvent'][_0x4a476b(0x217)],'data':{'unitID':this['_unitID'],'operations':{[_0x4ee371['id']]:{'id':_0x4ee371['id'],'params':JSON['stringify'](_0x4ee371[_0x4a476b(0x218)])}}}},this[_0x4a476b(0x1d2)]));}[_0x4b7f0a(0x144)](){const _0x2dacec=_0x4b7f0a;var _0x8e0b80;this[_0x2dacec(0x21d)][_0x2dacec(0x223)](_0x2dacec(0x200)),(_0x8e0b80=this[_0x2dacec(0x1c2)])==null||_0x8e0b80[_0x2dacec(0x18b)](),this[_0x2dacec(0x1c2)]=null;}[_0x4b7f0a(0x182)](){const _0x4dc4ea=_0x4b7f0a;var _0x1d249f;(_0x1d249f=this['_commandDisposable'])==null||_0x1d249f[_0x4dc4ea(0x18b)](),this['_status$'][_0x4dc4ea(0x223)](_0x4dc4ea(0x16c));}[_0x4b7f0a(0x1a9)](){const _0x224b8b=_0x4b7f0a;var _0x49ec6e;this[_0x224b8b(0x21d)][_0x224b8b(0x223)]('idle'),(_0x49ec6e=this[_0x224b8b(0x1c2)])==null||_0x49ec6e[_0x224b8b(0x18b)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0xb49b53=_0x4b7f0a;var _0x1edb80;this[_0xb49b53(0x21d)][_0xb49b53(0x223)](_0xb49b53(0x1d9)),(_0x1edb80=this['_commandDisposable'])==null||_0x1edb80['dispose']();}[_0x4b7f0a(0x195)](_0x46c0db){const _0x3cf5b8=_0x4b7f0a;if([_0x3cf5b8(0x1ef),_0x3cf5b8(0x1d9),_0x3cf5b8(0x1fe)][_0x3cf5b8(0x1a3)](this[_0x3cf5b8(0x1f7)])||!_0x46c0db[_0x3cf5b8(0x156)]['presenter']||_0x46c0db['data'][_0x3cf5b8(0x210)]===this[_0x3cf5b8(0x14f)]['getMemberID']())return;this['_status']===_0x3cf5b8(0x200)&&this[_0x3cf5b8(0x182)]();const _0xedda23=_0x46c0db[_0x3cf5b8(0x156)][_0x3cf5b8(0x19f)];Object[_0x3cf5b8(0x228)](_0xedda23)['forEach'](_0x1b82e0=>{const _0x5e386b=_0x3cf5b8;this[_0x5e386b(0x212)][_0x5e386b(0x1c5)](_0x1b82e0['id'],_0x1b82e0[_0x5e386b(0x218)]?JSON[_0x5e386b(0x141)](_0x1b82e0[_0x5e386b(0x218)]):null,{'fromCollab':!0x0});});}[_0x4b7f0a(0x187)](){const _0x8faa40=_0x4b7f0a;var _0x334c78;this['_status$'][_0x8faa40(0x223)]('offline'),(_0x334c78=this[_0x8faa40(0x1c2)])==null||_0x334c78[_0x8faa40(0x18b)]();}[_0x4b7f0a(0x186)](){const _0x5c85ba=_0x4b7f0a;this[_0x5c85ba(0x21d)][_0x5c85ba(0x223)](_0x5c85ba(0x200)),this[_0x5c85ba(0x1bc)]();}},_0xcb6eb3[_0x4b7f0a(0x189)]=_0x22b0dd([_0x3ecf1d(0x2,_0x2fb189[_0x4b7f0a(0x19c)]),_0x3ecf1d(0x3,_0x2fb189['Inject'](_0x2a462c)),_0x3ecf1d(0x4,_0x2fb189[_0x4b7f0a(0x172)])],_0xcb6eb3[_0x4b7f0a(0x189)]);function _0x19643f(){const _0x1dc607=_0x4b7f0a,_0x2582d6=_0x3254bb[_0x1dc607(0x1f8)](_0xcb6eb3['LiveShareController']),_0x423ad5=_0x3254bb[_0x1dc607(0x1f8)](_0x2fb189[_0x1dc607(0x1aa)]),_0x34b768=_0x3254bb[_0x1dc607(0x15a)](()=>_0x423ad5[_0x1dc607(0x1b6)](_0x2fb189[_0x1dc607(0x1a1)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x547851,_0x1d5e40]=_0x31c8bc[_0x1dc607(0x224)](null),[_0x565457,_0x5983a3]=_0x31c8bc[_0x1dc607(0x224)](_0x335447[_0x1dc607(0x202)]),_0x30e8ea=_0x31c8bc[_0x1dc607(0x18c)](null);return _0x31c8bc[_0x1dc607(0x1af)](()=>(_0x34b768&&_0x2582d6[_0x1dc607(0x1dc)](_0x34b768['getUnitId']())[_0x1dc607(0x1f9)](_0x3969ad=>{const _0x562816=_0x1dc607;_0x1d5e40(_0x3969ad),_0x30e8ea['current']=_0x3969ad[_0x562816(0x1f4)][_0x562816(0x1b9)](_0x355c7e=>{_0x5983a3(_0x355c7e);});}),()=>{const _0x416973=_0x1dc607;var _0x3f260b;(_0x3f260b=_0x30e8ea['current'])==null||_0x3f260b[_0x416973(0x1e3)](),_0x30e8ea['current']=null;}),[_0x34b768,_0x2582d6]),_0x547851?_0x1e92d8[_0x1dc607(0x1e8)](_0x36abbf[_0x1dc607(0x14d)],{'align':'end','disabled':_0x565457===_0x335447['OFFLINE'],'className':_0x1dc607(0x21b),'overlay':_0x1e92d8[_0x1dc607(0x1e8)](_0x547fdf,{'status':_0x565457,'coordinator':_0x547851}),'children':_0x1e92d8[_0x1dc607(0x1e8)](_0x1dc607(0x19d),{'className':_0x36abbf[_0x1dc607(0x171)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x565457===_0x335447[_0x1dc607(0x14b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x565457!==_0x335447['OFFLINE']}),'type':_0x1dc607(0x19d),'children':_0x1e92d8['jsx'](_0x46538d,{'className':_0x1dc607(0x178)})})}):null;}function _0x547fdf(_0x1aae44){const _0xf90922=_0x4b7f0a,{status:_0x4d6ca7,coordinator:_0x1064a1}=_0x1aae44;switch(_0x4d6ca7){case _0x335447[_0xf90922(0x202)]:return _0x1e92d8[_0xf90922(0x1e8)](_0x231ddd,{'coordinator':_0x1064a1});case _0x335447[_0xf90922(0x1ea)]:return _0x1e92d8['jsx'](_0x417652,{'coordinator':_0x1064a1});case _0x335447[_0xf90922(0x15c)]:return _0x1e92d8['jsx'](_0x4d0abf,{'coordinator':_0x1064a1});case _0x335447['OFFLINE']:return _0x1e92d8[_0xf90922(0x1e8)](_0x5b6509,{});case _0x335447[_0xf90922(0x13e)]:return _0x1e92d8[_0xf90922(0x1e8)](_0x198a16,{'coordinator':_0x1064a1});default:return null;}}function _0x231ddd(_0x52e4f2){const _0x149d5f=_0x4b7f0a,{coordinator:_0x15260d}=_0x52e4f2;return _0x1e92d8['jsxs'](_0x1e92d8['Fragment'],{'children':[_0x1e92d8[_0x149d5f(0x1e8)](_0x149d5f(0x164),{'className':_0x149d5f(0x183),'children':_0x149d5f(0x1d1)}),_0x1e92d8['jsx'](_0x36abbf['Button'],{'onClick':()=>_0x15260d['tryStartPresenting'](),'children':_0x149d5f(0x16f)})]});}function _0x417652(_0x4114e6){const _0x1691e1=_0x4b7f0a,{coordinator:_0x2a116e}=_0x4114e6;return _0x1e92d8[_0x1691e1(0x188)](_0x1e92d8[_0x1691e1(0x227)],{'children':[_0x1e92d8[_0x1691e1(0x1e8)](_0x1691e1(0x164),{'className':_0x1691e1(0x183),'children':_0x1691e1(0x1df)}),_0x1e92d8['jsx'](_0x36abbf[_0x1691e1(0x208)],{'onClick':()=>_0x2a116e[_0x1691e1(0x193)](),'children':_0x1691e1(0x1fd)})]});}function _0x4d0abf(_0x5f003d){const _0x233a30=_0x4b7f0a,{coordinator:_0x53d669}=_0x5f003d;return _0x1e92d8[_0x233a30(0x188)](_0x1e92d8[_0x233a30(0x227)],{'children':[_0x1e92d8[_0x233a30(0x1e8)](_0x233a30(0x164),{'className':_0x233a30(0x183),'children':_0x233a30(0x152)}),_0x1e92d8[_0x233a30(0x1e8)](_0x36abbf['Button'],{'variant':'text','onClick':()=>_0x53d669[_0x233a30(0x18e)](),'children':'Start\x20following'})]});}function _0x198a16(_0x1481bb){const _0x2b0ab2=_0x4b7f0a,{coordinator:_0x1afd2f}=_0x1481bb;return _0x1e92d8[_0x2b0ab2(0x188)](_0x1e92d8['Fragment'],{'children':[_0x1e92d8[_0x2b0ab2(0x1e8)](_0x2b0ab2(0x164),{'className':_0x2b0ab2(0x183),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x1e92d8[_0x2b0ab2(0x1e8)](_0x36abbf[_0x2b0ab2(0x208)],{'variant':_0x2b0ab2(0x169),'onClick':()=>_0x1afd2f['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x5b6509(){const _0x410774=_0x4b7f0a;return _0x1e92d8[_0x410774(0x1e8)](_0x1e92d8[_0x410774(0x227)],{'children':_0x410774(0x154)});}var _0x10e34f=Object[_0x4b7f0a(0x1a8)],_0x4255c7=(_0x1d7270,_0x160754,_0x3764e3,_0x354d0f)=>{const _0x44854c=_0x4b7f0a;for(var _0x25cb69=_0x354d0f>0x1?void 0x0:_0x354d0f?_0x10e34f(_0x160754,_0x3764e3):_0x160754,_0xeed159=_0x1d7270[_0x44854c(0x17c)]-0x1,_0x97b2c7;_0xeed159>=0x0;_0xeed159--)(_0x97b2c7=_0x1d7270[_0xeed159])&&(_0x25cb69=_0x97b2c7(_0x25cb69)||_0x25cb69);return _0x25cb69;},_0x47dd44=(_0x1aa74f,_0x5729b8)=>(_0x1576d0,_0xfc7655)=>_0x5729b8(_0x1576d0,_0xfc7655,_0x1aa74f);_0xcb6eb3[_0x4b7f0a(0x1ac)]=class extends _0x2fb189[_0x4b7f0a(0x181)]{constructor(_0x14ff61,_0x10a47d){const _0xf294de=_0x4b7f0a;super(),this[_0xf294de(0x201)]=_0x14ff61,this['_uiPartsService']=_0x10a47d,this[_0xf294de(0x1ae)]();}[_0x4b7f0a(0x1ae)](){const _0x4e9ea1=_0x4b7f0a;this[_0x4e9ea1(0x1f2)](this[_0x4e9ea1(0x20f)][_0x4e9ea1(0x1c0)](_0x3254bb[_0x4e9ea1(0x1d0)][_0x4e9ea1(0x1d3)],()=>_0x3254bb['connectInjector'](_0x19643f,this[_0x4e9ea1(0x201)])));}},_0xcb6eb3[_0x4b7f0a(0x1ac)]=_0x4255c7([_0x47dd44(0x0,_0x2fb189[_0x4b7f0a(0x177)](_0x2fb189[_0x4b7f0a(0x197)])),_0x47dd44(0x1,_0x3254bb[_0x4b7f0a(0x165)])],_0xcb6eb3[_0x4b7f0a(0x1ac)]);const _0x61305f='live-share.config',_0xbff4aa={};var _0x5e230b=Object['getOwnPropertyDescriptor'],_0x4c1ff1=(_0x11ad2f,_0x6754c6,_0x31a030,_0x2ea320)=>{const _0x4d3ca4=_0x4b7f0a;for(var _0xa4df51=_0x2ea320>0x1?void 0x0:_0x2ea320?_0x5e230b(_0x6754c6,_0x31a030):_0x6754c6,_0x38f617=_0x11ad2f[_0x4d3ca4(0x17c)]-0x1,_0x3580c7;_0x38f617>=0x0;_0x38f617--)(_0x3580c7=_0x11ad2f[_0x38f617])&&(_0xa4df51=_0x3580c7(_0xa4df51)||_0xa4df51);return _0xa4df51;},_0x21dbc8=(_0x5cf117,_0x436215)=>(_0x3ce4f3,_0x346dae)=>_0x436215(_0x3ce4f3,_0x346dae,_0x5cf117);let _0x56d428=class extends _0x2fb189[_0x4b7f0a(0x181)]{constructor(_0x3585e2){const _0x146109=_0x4b7f0a;super(),this[_0x146109(0x1de)]=_0x3585e2,this['_init']();}['_init'](){const _0x5a8695=_0x4b7f0a;[_0x54d190[_0x5a8695(0x1a5)]['id'],_0x54d190[_0x5a8695(0x1c1)]['id'],_0x5f1355[_0x5a8695(0x157)]['id']][_0x5a8695(0x1d8)](_0x154b98=>{const _0x539585=_0x5a8695;this[_0x539585(0x1f2)](this[_0x539585(0x1de)][_0x539585(0x17e)](_0x154b98));});}};_0x56d428=_0x4c1ff1([_0x21dbc8(0x0,_0x2fb189[_0x4b7f0a(0x177)](_0x2a462c))],_0x56d428);var _0x482aae=Object[_0x4b7f0a(0x19b)],_0x54d6cf=Object[_0x4b7f0a(0x1a8)],_0x4beccc=(_0x50ccf9,_0x4d7d93,_0x19f539)=>_0x4d7d93 in _0x50ccf9?_0x482aae(_0x50ccf9,_0x4d7d93,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x19f539}):_0x50ccf9[_0x4d7d93]=_0x19f539,_0x518054=(_0x3b8b29,_0xb33ba6,_0x4d4efe,_0x366540)=>{const _0x3dbd92=_0x4b7f0a;for(var _0x2edce3=_0x366540>0x1?void 0x0:_0x366540?_0x54d6cf(_0xb33ba6,_0x4d4efe):_0xb33ba6,_0x23fd8e=_0x3b8b29[_0x3dbd92(0x17c)]-0x1,_0xb05cf4;_0x23fd8e>=0x0;_0x23fd8e--)(_0xb05cf4=_0x3b8b29[_0x23fd8e])&&(_0x2edce3=_0xb05cf4(_0x2edce3)||_0x2edce3);return _0x2edce3;},_0x11541=(_0x2906cb,_0x74fc4f)=>(_0x1753fe,_0x2ef04d)=>_0x74fc4f(_0x1753fe,_0x2ef04d,_0x2906cb),_0x5b401f=(_0x1eecea,_0x5f28b6,_0x30411e)=>_0x4beccc(_0x1eecea,typeof _0x5f28b6!=_0x4b7f0a(0x17a)?_0x5f28b6+'':_0x5f28b6,_0x30411e);const _0x230059=_0x4b7f0a(0x15d);_0xcb6eb3[_0x4b7f0a(0x1a4)]=class extends _0x2fb189[_0x4b7f0a(0x159)]{constructor(_0x210a21=_0xbff4aa,_0x59baba,_0x37f5ce){const _0x5783c4=_0x4b7f0a;super(),this[_0x5783c4(0x1c8)]=_0x210a21,this[_0x5783c4(0x201)]=_0x59baba,this[_0x5783c4(0x220)]=_0x37f5ce;const {..._0x41ac8a}=_0x2fb189[_0x5783c4(0x1a6)]({},_0xbff4aa,this['_config']);this['_configService'][_0x5783c4(0x1a7)](_0x61305f,_0x41ac8a);}[_0x4b7f0a(0x173)](){const _0x26089c=_0x4b7f0a;_0x2fb189['registerDependencies'](this[_0x26089c(0x201)],_0x2fb189[_0x26089c(0x179)]([[_0x2a462c],[_0xcb6eb3['LiveShareController']],[_0x56d428],[_0xcb6eb3[_0x26089c(0x1ac)]]],this[_0x26089c(0x1c8)]['override'])),_0x2fb189[_0x26089c(0x221)](this[_0x26089c(0x201)],[[_0x56d428]]);}['onRendered'](){const _0x431fd2=_0x4b7f0a;_0x2fb189['touchDependencies'](this[_0x431fd2(0x201)],[[_0xcb6eb3[_0x431fd2(0x1ac)]]]);}},_0x5b401f(_0xcb6eb3[_0x4b7f0a(0x1a4)],_0x4b7f0a(0x15b),_0x2fb189[_0x4b7f0a(0x1a1)][_0x4b7f0a(0x203)]),_0x5b401f(_0xcb6eb3['UniverLiveSharePlugin'],_0x4b7f0a(0x176),_0x230059),_0xcb6eb3[_0x4b7f0a(0x1a4)]=_0x518054([_0x2fb189[_0x4b7f0a(0x20c)](_0x461dcf['UniverCollaborationClientPlugin']),_0x11541(0x1,_0x2fb189['Inject'](_0x2fb189['Injector'])),_0x11541(0x2,_0x2fb189[_0x4b7f0a(0x19c)])],_0xcb6eb3[_0x4b7f0a(0x1a4)]),_0xcb6eb3['LiveShare']=_0x19643f,_0xcb6eb3[_0x4b7f0a(0x1c6)]=_0x2a462c,_0xcb6eb3[_0x4b7f0a(0x1b8)]=_0x335447,Object[_0x4b7f0a(0x19b)](_0xcb6eb3,Symbol[_0x4b7f0a(0x170)],{'value':_0x4b7f0a(0x20e)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.13.0-insiders.
|
|
3
|
+
"version": "0.13.0-insiders.20251223-857805c",
|
|
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.13.0-insiders.
|
|
61
|
-
"@univerjs/
|
|
62
|
-
"@univerjs-pro/collaboration
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/sheets": "0.13.0-insiders.
|
|
65
|
-
"@univerjs/ui": "0.13.0-insiders.
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs/
|
|
60
|
+
"@univerjs-pro/collaboration-client": "0.13.0-insiders.20251223-857805c",
|
|
61
|
+
"@univerjs/design": "0.13.0-insiders.20251223-857805c",
|
|
62
|
+
"@univerjs-pro/collaboration": "0.13.0-insiders.20251223-857805c",
|
|
63
|
+
"@univerjs/engine-render": "0.13.0-insiders.20251223-857805c",
|
|
64
|
+
"@univerjs/sheets": "0.13.0-insiders.20251223-857805c",
|
|
65
|
+
"@univerjs/sheets-ui": "0.13.0-insiders.20251223-857805c",
|
|
66
|
+
"@univerjs/core": "0.13.0-insiders.20251223-857805c",
|
|
67
|
+
"@univerjs/ui": "0.13.0-insiders.20251223-857805c"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|