@univerjs-pro/live-share 0.12.2-nightly.202511241159 → 0.12.2-nightly.202511290905
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 +13 -13
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x262195=_0x3d86;(function(_0x309d0a,_0x5533ea){const _0x3b0820=_0x3d86,_0x1480d1=_0x309d0a();while(!![]){try{const _0x13842b=parseInt(_0x3b0820(0x9a))/0x1*(-parseInt(_0x3b0820(0x9e))/0x2)+parseInt(_0x3b0820(0x86))/0x3+-parseInt(_0x3b0820(0x96))/0x4+-parseInt(_0x3b0820(0x8b))/0x5+-parseInt(_0x3b0820(0x89))/0x6+-parseInt(_0x3b0820(0x88))/0x7+-parseInt(_0x3b0820(0x92))/0x8*(-parseInt(_0x3b0820(0x87))/0x9);if(_0x13842b===_0x5533ea)break;else _0x1480d1['push'](_0x1480d1['shift']());}catch(_0x5385f2){_0x1480d1['push'](_0x1480d1['shift']());}}}(_0x185b,0xb1c92));function _0x3d86(_0x13bf42,_0x32e0af){const _0x185bec=_0x185b();return _0x3d86=function(_0x3d86b2,_0x14e87b){_0x3d86b2=_0x3d86b2-0x79;let _0x55e747=_0x185bec[_0x3d86b2];return _0x55e747;},_0x3d86(_0x13bf42,_0x32e0af);}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[_0x262195(0x85)]{[_0x262195(0x9c)](_0x18bfb7,_0x10c8e1,_0x3a4fc9,_0x30a398,_0x4bde90){const _0x57b872=_0x262195,_0x217a7e=_0x18bfb7[_0x57b872(0x98)](n[_0x57b872(0x7d)]),_0xff8825=_0x18bfb7['get'](g['IRenderManagerService']),_0x27eb73=_0x10c8e1[_0x57b872(0x91)](),_0x405d60=_0x10c8e1[_0x57b872(0x7a)](),_0x291777=_0x217a7e[_0x57b872(0x8f)](_0x27eb73);(_0x291777==null?void 0x0:_0x291777['getStatus']())!==n[_0x57b872(0x80)][_0x57b872(0x9f)]||(_0x3a4fc9[_0x57b872(0x7b)]()!==_0x405d60[_0x57b872(0x7b)]()&&this[_0x57b872(0xa0)][_0x57b872(0x8a)](u[_0x57b872(0x9b)]['id'],{'unitId':_0x27eb73,'subUnitId':_0x3a4fc9[_0x57b872(0x7b)]()}),!_0xff8825[_0x57b872(0x81)](_0x27eb73))||_0x4bde90[_0x57b872(0x97)](f['SetScrollOperation']['id'],{'unitId':_0x10c8e1[_0x57b872(0x91)](),'sheetId':_0x3a4fc9[_0x57b872(0x7b)](),'sheetViewStartRow':_0x30a398['startRow'],'sheetViewStartColumn':_0x30a398['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d['FRange'][_0x262195(0x8d)](w);function _0x185b(){const _0x17e400=['getLiveShareCoordinatorSync','getActiveWorkbook','getUnitId','3177752QcSRdJ','No\x20active\x20workbook\x20found.','stopFollowing','getStatus','5332680qzvUur','syncExecuteCommand','get','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','8kjHLvI','SetWorksheetActiveOperation','_initialize','startPresenting','42722rLWodb','PRESENTING','_commandService','FEnum','getLiveShareStatus','getActiveSheet','getSheetId','IDLE','LiveShareController','startFollowing','stopPresenting','LiveShareStatus','getRenderById','_injector','getId','LiveShareStatusEnum','FRange','233907mUqdIZ','117ULYKYS','7240898peoJaJ','6250494WlkTxJ','executeCommand','4666925zDvHWT','tryStartPresenting','extend','FUniver'];_0x185b=function(){return _0x17e400;};return _0x185b();}class C extends a[_0x262195(0x8e)]{[_0x262195(0x79)](){const _0x370e7b=_0x262195;var _0x717424,_0x45d0e7;const _0x1f57c9=this[_0x370e7b(0x82)][_0x370e7b(0x98)](n[_0x370e7b(0x7d)]),_0x3dc827=(_0x717424=this['getActiveWorkbook']())==null?void 0x0:_0x717424['getId']();if(!_0x3dc827)throw new Error('No\x20active\x20workbook\x20found.');const _0x28a5b2=_0x1f57c9[_0x370e7b(0x8f)](_0x3dc827);return(_0x45d0e7=_0x28a5b2==null?void 0x0:_0x28a5b2[_0x370e7b(0x95)]())!=null?_0x45d0e7:n['LiveShareStatus'][_0x370e7b(0x7c)];}[_0x262195(0x7e)](){const _0x5c4555=_0x262195;var _0xaa41e9;const _0x4f9e20=this[_0x5c4555(0x82)][_0x5c4555(0x98)](n[_0x5c4555(0x7d)]),_0x2904df=(_0xaa41e9=this['getActiveWorkbook']())==null?void 0x0:_0xaa41e9['getId']();if(!_0x2904df)throw new Error('No\x20active\x20workbook\x20found.');const _0x3f3528=_0x4f9e20[_0x5c4555(0x8f)](_0x2904df);if(!_0x3f3528)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3f3528[_0x5c4555(0x7e)]();}['stopFollowing'](){const _0x4a1c95=_0x262195;var _0x3ebab4;const _0x2352e3=this['_injector'][_0x4a1c95(0x98)](n[_0x4a1c95(0x7d)]),_0x26a104=(_0x3ebab4=this['getActiveWorkbook']())==null?void 0x0:_0x3ebab4['getId']();if(!_0x26a104)throw new Error(_0x4a1c95(0x93));const _0x102fff=_0x2352e3[_0x4a1c95(0x8f)](_0x26a104);if(!_0x102fff)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x102fff[_0x4a1c95(0x94)]();}[_0x262195(0x9d)](){const _0x117e13=_0x262195;var _0xcb030c;const _0x26d715=this['_injector']['get'](n[_0x117e13(0x7d)]),_0x5290e0=(_0xcb030c=this['getActiveWorkbook']())==null?void 0x0:_0xcb030c['getId']();if(!_0x5290e0)throw new Error(_0x117e13(0x93));const _0xfa21ae=_0x26d715[_0x117e13(0x8f)](_0x5290e0);if(!_0xfa21ae)throw new Error(_0x117e13(0x99));_0xfa21ae[_0x117e13(0x8c)]();}[_0x262195(0x7f)](){const _0x2ba42c=_0x262195;var _0x5bc5a1;const _0x51f411=this[_0x2ba42c(0x82)][_0x2ba42c(0x98)](n[_0x2ba42c(0x7d)]),_0x1641ed=(_0x5bc5a1=this[_0x2ba42c(0x90)]())==null?void 0x0:_0x5bc5a1[_0x2ba42c(0x83)]();if(!_0x1641ed)throw new Error(_0x2ba42c(0x93));const _0x51baf0=_0x51f411['getLiveShareCoordinatorSync'](_0x1641ed);if(!_0x51baf0)throw new Error(_0x2ba42c(0x99));_0x51baf0[_0x2ba42c(0x7f)]();}}a['FUniver'][_0x262195(0x8d)](C);class L extends a[_0x262195(0xa1)]{get[_0x262195(0x84)](){return n['LiveShareStatus'];}}a[_0x262195(0xa1)][_0x262195(0x8d)](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x5d632=_0x4e15;(function(_0x4a869e,_0x535617){const _0x2a22a=_0x4e15,_0x8c3e32=_0x4a869e();while(!![]){try{const _0x10398b=parseInt(_0x2a22a(0xf2))/0x1+parseInt(_0x2a22a(0x168))/0x2+parseInt(_0x2a22a(0x171))/0x3+parseInt(_0x2a22a(0xd0))/0x4*(-parseInt(_0x2a22a(0x157))/0x5)+-parseInt(_0x2a22a(0x136))/0x6*(-parseInt(_0x2a22a(0x120))/0x7)+-parseInt(_0x2a22a(0x172))/0x8*(-parseInt(_0x2a22a(0xe3))/0x9)+parseInt(_0x2a22a(0x165))/0xa*(-parseInt(_0x2a22a(0x125))/0xb);if(_0x10398b===_0x535617)break;else _0x8c3e32['push'](_0x8c3e32['shift']());}catch(_0xa71c0f){_0x8c3e32['push'](_0x8c3e32['shift']());}}}(_0x6ff1,0x4afc6));function _0x4e15(_0x4e773f,_0x51237d){const _0x6ff168=_0x6ff1();return _0x4e15=function(_0x4e1575,_0x595ab9){_0x4e1575=_0x4e1575-0xad;let _0xf66ef=_0x6ff168[_0x4e1575];return _0xf66ef;},_0x4e15(_0x4e773f,_0x51237d);}function _0x6ff1(){const _0x2b8942=['_handleOnline','dispose','UniverLiveSharePlugin','_startLiveShareCoordinator','createInstance','LiveShare','url(#$1','Stop\x20following','button','assign','UniverIcon','pipe','Button','2069193hhwiSr','NOT_FOLLOWING','presenter','getLiveShareCoordinator','getUnitId','945395rgCpqf','type','operations','throttleTime','_handleOffline','Subject','univer-mb-3\x20univer-w-full\x20univer-text-sm','reverse','useRef','add','jsxs','onStarting','_configService','Fragment','_handleNewChangeSets','data','_presenter','12OcwVre','useObservable','_status','LiveShareCoordinator','UNIVER_LIVE_SHARE_PLUGIN','getOwnPropertyDescriptor','live-share-icon','map','trim','find','getValue','FOLLOWING','_handleNewHost','parse','IConfigService','has','SetWorksheetActiveOperation','LIVESHARE_FETCH_OPERATIONS','xlink:href','LIVESHARE_OPERATION','SessionStatus','_unitID','next','CollaborationEvent','Start','subscribe','_commandService','values','status$','mask','_beIdle','toStringTag','univer-size-4','5VktbEn','requireSession','Inject','_collabSessionService','takeUntil','_injector','onRendered','path','init','LiveShareIcon','_startPresenting','startFollowing','touchDependencies','event$','130VNFEul','RxDisposable','displayName','249280Atwqfv','IDLE','getMemberID','LIVESHARE_REQUEST_HOST','complete','registerSharedOperation','_status$','registerComponent','_collabSession','1569048iwgaAh','944mWIdTB','stopPresenting','following','from','end','UNIVER_SHEET','entries','_fetchOperations','Dropdown','UniverInstanceType','_stopPresenting','_init','setConfig','default','PRESENTING','_handleOperation','attrs','SetScrollOperation','get','Disposable','BehaviorSubject','params','symbol','getInitialStates','Injector','div','getLiveShareCoordinatorSync','memberID','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','univerjs-icon\x20univerjs-icon-','tag','toString','colorChannel1','You\x27re\x20following\x20the\x20presenter','disposeWithMe','_reporters','_startFollowing','registerInitialStateReporter','forEach','You\x27are\x20offline.','replace','CommandType','tryStartPresenting','createElement','_mountLiveShare','string','_commandDisposable','evenodd','idSuffix','1956756HnEtjN','send','asObservable','You\x27re\x20not\x20following\x20the\x20presenter','stringify','_liveShareService','1em','defIds','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','getConfig','presenting','_entities','sheet','_config','useState','includes','offline','_handleTerminate','children','26901CkjxEg','DependentOn','getTypeOfUnitDisposed$','length','not-following','onCommandExecuted','useDependency','getStatus','stopFollowing','svg','_univerInstanceService','0\x200\x2017\x2017','NEW_CHANGESETS','shouldShareOperation','set','322060AesqzK','registerDependencies','clsx','jsx','live-share.config','_stopFollowing','parseProtocolChangeset','unsubscribe','UNIVER_UNKNOWN','DesktopLiveShareController','LiveShareStatus','idle','dispose$','IUIPartsService','executeCommand','toDisposable','Present\x20this\x20document','BuiltInUIPart','mergeOverrideWithDependencies','connectInjector','_sharedOperations','fill','substring','defs','current','ICommandService','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','defineProperty','delete','OFFLINE','text','random','LiveShareController'];_0x6ff1=function(){return _0x2b8942;};return _0x6ff1();}var T=Object['defineProperty'],U=(_0x1e3706,_0x4f0f74,_0x41f5ae)=>_0x4f0f74 in _0x1e3706?T(_0x1e3706,_0x4f0f74,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x41f5ae}):_0x1e3706[_0x4f0f74]=_0x41f5ae,_=(_0xd6e2a5,_0x3b1cce,_0x3011b5)=>U(_0xd6e2a5,typeof _0x3b1cce!=_0x5d632(0xb5)?_0x3b1cce+'':_0x3b1cce,_0x3011b5);Object[_0x5d632(0x10d)](exports,Symbol[_0x5d632(0x155)],{'value':'Module'});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x93a927,..._0x377e2e}){const _0x29433f=_0x5d632,{icon:_0x46fc40,id:_0x7dc6a8,className:_0x4f70fc,extend:_0x42317e,..._0x47c288}=_0x377e2e,_0xd4f847=(_0x29433f(0xbc)+_0x7dc6a8+'\x20'+(_0x4f70fc||''))[_0x29433f(0x13e)](),_0x5565e9=v[_0x29433f(0x12d)]('_'+H());return j(_0x46fc40,''+_0x7dc6a8,{'defIds':_0x46fc40[_0x29433f(0xd7)],'idSuffix':_0x5565e9[_0x29433f(0x10a)]},{'ref':_0x93a927,'className':_0xd4f847,..._0x47c288},_0x42317e);}function j(_0x38330b,_0x1bcd0c,_0x481cd6,_0x220dc5,_0x1f6ee9){const _0x25ea5a=_0x5d632;return v[_0x25ea5a(0xca)](_0x38330b[_0x25ea5a(0xbd)],{'key':_0x1bcd0c,...y(_0x38330b,_0x481cd6,_0x1f6ee9),..._0x220dc5},(F(_0x38330b,_0x481cd6)[_0x25ea5a(0xe2)]||[])[_0x25ea5a(0x13d)]((_0x296504,_0x3bba0c)=>j(_0x296504,_0x1bcd0c+'-'+_0x38330b['tag']+'-'+_0x3bba0c,_0x481cd6,void 0x0,_0x1f6ee9)));}function y(_0x1ba36e,_0x2237fb,_0x517390){const _0x3dad28=_0x5d632,_0x114350={..._0x1ba36e[_0x3dad28(0xaf)]};_0x517390!=null&&_0x517390[_0x3dad28(0xbf)]&&_0x114350['fill']===_0x3dad28(0xbf)&&(_0x114350[_0x3dad28(0x107)]=_0x517390[_0x3dad28(0xbf)]),_0x1ba36e[_0x3dad28(0xbd)]===_0x3dad28(0x153)&&_0x114350['id']&&(_0x114350['id']=_0x114350['id']+_0x2237fb[_0x3dad28(0xcf)]),Object[_0x3dad28(0x178)](_0x114350)[_0x3dad28(0xc5)](([_0x1b6905,_0x465ce1])=>{const _0x21371b=_0x3dad28;_0x1b6905===_0x21371b(0x153)&&typeof _0x465ce1==_0x21371b(0xcc)&&(_0x114350[_0x1b6905]=_0x465ce1[_0x21371b(0xc7)](/url\(#(.*)\)/,_0x21371b(0x119)+_0x2237fb[_0x21371b(0xcf)]+')'));});const {defIds:_0x1df3bb}=_0x2237fb;return!_0x1df3bb||_0x1df3bb[_0x3dad28(0xe6)]===0x0||(_0x1ba36e['tag']==='use'&&_0x114350[_0x3dad28(0x148)]&&(_0x114350[_0x3dad28(0x148)]=_0x114350[_0x3dad28(0x148)]+_0x2237fb['idSuffix']),Object['entries'](_0x114350)[_0x3dad28(0xc5)](([_0x2e61ea,_0x4fa66e])=>{const _0xf4a3d3=_0x3dad28;typeof _0x4fa66e=='string'&&(_0x114350[_0x2e61ea]=_0x4fa66e['replace'](/url\(#(.*)\)/,_0xf4a3d3(0x119)+_0x2237fb[_0xf4a3d3(0xcf)]+')'));})),_0x114350;}function F(_0x4934fa,_0x1ee709){const _0x1147dc=_0x5d632;var _0x486bfd;const {defIds:_0x54e33c}=_0x1ee709;return!_0x54e33c||_0x54e33c['length']===0x0?_0x4934fa:_0x4934fa['tag']===_0x1147dc(0x109)&&((_0x486bfd=_0x4934fa[_0x1147dc(0xe2)])!=null&&_0x486bfd['length'])?{..._0x4934fa,'children':_0x4934fa[_0x1147dc(0xe2)][_0x1147dc(0x13d)](_0x42f3ed=>typeof _0x42f3ed[_0x1147dc(0xaf)]['id']==_0x1147dc(0xcc)&&_0x54e33c&&_0x54e33c[_0x1147dc(0xdf)](_0x42f3ed[_0x1147dc(0xaf)]['id'])?{..._0x42f3ed,'attrs':{..._0x42f3ed[_0x1147dc(0xaf)],'id':_0x42f3ed[_0x1147dc(0xaf)]['id']+_0x1ee709['idSuffix']}}:_0x42f3ed)}:_0x4934fa;}function H(){const _0x3778b9=_0x5d632;return Math[_0x3778b9(0x111)]()[_0x3778b9(0xbe)](0x24)[_0x3778b9(0x108)](0x2,0x8);}x[_0x5d632(0x167)]=_0x5d632(0x11d);const V={'tag':_0x5d632(0xec),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x5d632(0xee),'width':'1em','height':_0x5d632(0xd6)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x5d632(0xd8)}},{'tag':_0x5d632(0x15e),'attrs':{'fill':'currentColor','d':_0x5d632(0x10c),'fillRule':_0x5d632(0xce),'clipRule':_0x5d632(0xce)}}]},R=v['forwardRef'](function(_0x1a62dc,_0xbefea2){const _0x5d2501=_0x5d632;return v[_0x5d2501(0xca)](x,Object[_0x5d2501(0x11c)]({},_0x1a62dc,{'id':_0x5d2501(0x13c),'ref':_0xbefea2,'icon':V}));});R['displayName']=_0x5d632(0x160);class E extends o[_0x5d632(0xb2)]{constructor(){const _0x5ca527=_0x5d632;super(...arguments),_(this,_0x5ca527(0x106),new Set()),_(this,_0x5ca527(0xc2),new Set());}[_0x5d632(0x16d)](_0x24d6ff){const _0x3d5b98=_0x5d632;return this[_0x3d5b98(0x106)][_0x3d5b98(0x12e)](_0x24d6ff),o[_0x3d5b98(0x101)](()=>this[_0x3d5b98(0x106)]['delete'](_0x24d6ff));}[_0x5d632(0xc4)](_0x51763c){const _0x2cde0c=_0x5d632;return this['_reporters'][_0x2cde0c(0x12e)](_0x51763c),o[_0x2cde0c(0x101)](()=>this[_0x2cde0c(0xc2)][_0x2cde0c(0x10e)](_0x51763c));}['shouldShareOperation'](_0x57adc4){const _0x51c196=_0x5d632;return this['_sharedOperations'][_0x51c196(0x145)](_0x57adc4);}[_0x5d632(0xb6)](_0x174198){const _0x3f01d6=_0x5d632;return Array[_0x3f01d6(0x175)](this[_0x3f01d6(0xc2)])[_0x3f01d6(0x13d)](_0x4ef0e6=>_0x4ef0e6(_0x174198));}}var M=Object[_0x5d632(0x13b)],P=(_0x30249f,_0x473e08,_0x44b014,_0x21f790)=>{const _0x290be4=_0x5d632;for(var _0xc8c8f5=_0x21f790>0x1?void 0x0:_0x21f790?M(_0x473e08,_0x44b014):_0x473e08,_0x51e46f=_0x30249f[_0x290be4(0xe6)]-0x1,_0x5d3a91;_0x51e46f>=0x0;_0x51e46f--)(_0x5d3a91=_0x30249f[_0x51e46f])&&(_0xc8c8f5=_0x5d3a91(_0xc8c8f5)||_0xc8c8f5);return _0xc8c8f5;},S=(_0x3f6ee4,_0x108232)=>(_0x3826f7,_0x167552)=>_0x108232(_0x3826f7,_0x167552,_0x3f6ee4);exports[_0x5d632(0x112)]=class extends o[_0x5d632(0x166)]{constructor(_0x57839a,_0x4b6a1a,_0x4ace6a){const _0x1e6b04=_0x5d632;super(),_(this,_0x1e6b04(0xdb),new Map()),(this['_univerInstanceService']=_0x57839a,this[_0x1e6b04(0x15c)]=_0x4b6a1a,this[_0x1e6b04(0x15a)]=_0x4ace6a,this[_0x1e6b04(0x17d)]());}async[_0x5d632(0x123)](_0x5b5d9b){const _0x3a8cfa=_0x5d632;return this[_0x3a8cfa(0xdb)][_0x3a8cfa(0x145)](_0x5b5d9b)||await this[_0x3a8cfa(0x116)](_0x5b5d9b),this[_0x3a8cfa(0xdb)][_0x3a8cfa(0xb1)](_0x5b5d9b);}[_0x5d632(0xb9)](_0x467b02){const _0x5a7bc2=_0x5d632;var _0x1de308;return(_0x1de308=this[_0x5a7bc2(0xdb)]['get'](_0x467b02))!=null?_0x1de308:null;}[_0x5d632(0x17d)](){const _0x3bbf46=_0x5d632;this['_univerInstanceService']['getTypeOfUnitAdded$'](o['UniverInstanceType']['UNIVER_SHEET'])['pipe'](I[_0x3bbf46(0x15b)](this[_0x3bbf46(0xfe)]))[_0x3bbf46(0x14f)](async _0x44f3fc=>{const _0x265860=_0x3bbf46,_0x5847de=_0x44f3fc[_0x265860(0x124)]();this['_entities'][_0x265860(0x145)](_0x5847de)||this[_0x265860(0x116)](_0x5847de);}),this[_0x3bbf46(0xed)][_0x3bbf46(0xe5)](o[_0x3bbf46(0x17b)][_0x3bbf46(0x177)])[_0x3bbf46(0x11e)](I['takeUntil'](this['dispose$']))['subscribe'](_0x501a00=>{const _0x14187c=_0x3bbf46,_0x1cd56c=_0x501a00[_0x14187c(0x124)](),_0xf3773b=this[_0x14187c(0xdb)]['get'](_0x1cd56c);_0xf3773b==null||_0xf3773b['dispose']();});}async[_0x5d632(0x116)](_0xf13fcb){const _0x13b6c8=_0x5d632,_0x4dbf8e=await this[_0x13b6c8(0x15a)][_0x13b6c8(0x158)](_0xf13fcb),_0x1db66e=this[_0x13b6c8(0x15c)][_0x13b6c8(0x117)](exports['LiveShareCoordinator'],_0xf13fcb,_0x4dbf8e);return _0x1db66e['init'](),this[_0x13b6c8(0xdb)]['set'](_0xf13fcb,_0x1db66e),_0x1db66e;}},exports[_0x5d632(0x112)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x5d632(0x159)](o['Injector'])),S(0x2,o[_0x5d632(0x159)](b['CollaborationSessionService']))],exports[_0x5d632(0x112)]);var u=(_0x4103ef=>(_0x4103ef[_0x5d632(0x10f)]=_0x5d632(0xe0),_0x4103ef['IDLE']=_0x5d632(0xfd),_0x4103ef['FOLLOWING']=_0x5d632(0x174),_0x4103ef[_0x5d632(0x121)]=_0x5d632(0xe7),_0x4103ef[_0x5d632(0xad)]=_0x5d632(0xda),_0x4103ef))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports[_0x5d632(0x139)]=class extends o['RxDisposable']{constructor(_0x3c180f,_0x3bf817,_0x36b5fe,_0x51d7ed,_0x13ce29){const _0x44d0d6=_0x5d632;super(),_(this,_0x44d0d6(0x16e),new O[(_0x44d0d6(0xb3))]('idle')),_(this,_0x44d0d6(0x152),this['_status$'][_0x44d0d6(0xd2)]()),_(this,_0x44d0d6(0x17d),!0x1),_(this,_0x44d0d6(0xcd),null),_(this,'_presenter',null),(this[_0x44d0d6(0x14b)]=_0x3c180f,this['_collabSession']=_0x3bf817,this[_0x44d0d6(0x131)]=_0x36b5fe,this[_0x44d0d6(0xd5)]=_0x51d7ed,this['_commandService']=_0x13ce29);}get['_status'](){const _0x453cc3=_0x5d632;return this[_0x453cc3(0x16e)][_0x453cc3(0x140)]();}[_0x5d632(0x114)](){const _0x2c5c8f=_0x5d632;var _0x43be1f;(_0x43be1f=this['_commandDisposable'])==null||_0x43be1f[_0x2c5c8f(0x114)](),this[_0x2c5c8f(0x16e)][_0x2c5c8f(0x14c)](_0x2c5c8f(0xfd)),this[_0x2c5c8f(0x16e)]['complete']();}[_0x5d632(0xea)](){const _0x50db5a=_0x5d632;return this[_0x50db5a(0x138)];}[_0x5d632(0x15f)](){const _0x1bece6=_0x5d632;this[_0x1bece6(0x17d)]||(this[_0x1bece6(0x17d)]=!0x0,this[_0x1bece6(0x170)]['sessionStatus$'][_0x1bece6(0x11e)](I[_0x1bece6(0x15b)](this[_0x1bece6(0xfe)]))[_0x1bece6(0x14f)](_0x3d7cdb=>{const _0x344b4b=_0x1bece6;switch(_0x3d7cdb){case b[_0x344b4b(0x14a)]['OFFLINE']:this['_handleOffline']();break;case b['SessionStatus']['ONLINE']:this[_0x344b4b(0x113)]();break;}}),this[_0x1bece6(0x170)][_0x1bece6(0x164)][_0x1bece6(0x11e)](I[_0x1bece6(0x15b)](this[_0x1bece6(0xfe)]))['subscribe'](_0x3bac09=>{const _0x1b956f=_0x1bece6,{eventID:_0x18801d}=_0x3bac09;switch(_0x18801d){case d[_0x1b956f(0x14d)]['LIVESHARE_NEW_HOST']:this[_0x1b956f(0x142)](_0x3bac09);break;case d[_0x1b956f(0x14d)]['LIVESHARE_OPERATION']:this[_0x1b956f(0xae)](_0x3bac09);break;case d['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x1b956f(0xe1)]();break;case d['CollaborationEvent'][_0x1b956f(0xef)]:this[_0x1b956f(0x133)](_0x3bac09);break;}}));}['tryStartPresenting'](){const _0x4f4abf=_0x5d632;this[_0x4f4abf(0x170)][_0x4f4abf(0xd1)]({'eventID':d[_0x4f4abf(0x14d)][_0x4f4abf(0x16b)],'data':{'unitID':this[_0x4f4abf(0x14b)],'userID':this[_0x4f4abf(0x170)][_0x4f4abf(0x16a)]()}},this[_0x4f4abf(0x14b)]);}[_0x5d632(0x173)](){const _0x1c3dbb=_0x5d632;this['_status']==='presenting'&&(this[_0x1c3dbb(0x16e)][_0x1c3dbb(0x14c)](_0x1c3dbb(0xfd)),this[_0x1c3dbb(0x170)]['send']({'eventID':d['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x1c3dbb(0x14b)]}},this['_unitID']));}[_0x5d632(0x162)](){const _0x21a837=_0x5d632;this[_0x21a837(0x138)]==='not-following'&&(this[_0x21a837(0x16e)][_0x21a837(0x14c)](_0x21a837(0x174)),this[_0x21a837(0xc3)]());}[_0x5d632(0xeb)](){const _0x50fb06=_0x5d632;this[_0x50fb06(0x138)]===_0x50fb06(0x174)&&this[_0x50fb06(0xf7)]();}['_handleNewHost'](_0x19ac48){const _0x110401=_0x5d632,{presenter:_0x264b0a}=_0x19ac48[_0x110401(0x134)],_0x99591b=this[_0x110401(0x170)][_0x110401(0x16a)]();this['_presenter']=_0x264b0a,_0x264b0a===_0x99591b?(this[_0x110401(0xf7)](),this[_0x110401(0x161)]()):this[_0x110401(0x138)]!==_0x110401(0xe7)&&(this[_0x110401(0x17c)](),this['_startFollowing']());}[_0x5d632(0x179)](){const _0x7f7d3b=_0x5d632,_0x589085={'eventID':d['CollaborationEvent'][_0x7f7d3b(0x147)]};this[_0x7f7d3b(0x170)][_0x7f7d3b(0xd1)](_0x589085,this['_unitID']);}[_0x5d632(0xe1)](){const _0x2b3e4b=_0x5d632;this[_0x2b3e4b(0x135)]=null,this['_status']!==_0x2b3e4b(0xda)&&this[_0x2b3e4b(0x154)]();}[_0x5d632(0x133)](_0x1a9746){const _0x160996=_0x5d632;if(this[_0x160996(0x138)]===_0x160996(0x174)&&this[_0x160996(0x135)]===_0x1a9746['data'][_0x160996(0xba)]){const _0xba2d29=d[_0x160996(0xf8)](_0x1a9746[_0x160996(0x134)])['mutations'][_0x160996(0x12c)]()[_0x160996(0x13f)](_0x5d317d=>_0x5d317d['id']===C['InsertSheetMutation']['id']);if(_0xba2d29){const _0x55d91a=_0xba2d29['params']['unitId'],_0x1dc0f9=_0xba2d29[_0x160996(0xb4)][_0x160996(0xdc)]['id'];setTimeout(()=>{const _0x23bca0=_0x160996;this['_commandService'][_0x23bca0(0x100)](C[_0x23bca0(0x146)]['id'],{'unitId':_0x55d91a,'subUnitId':_0x1dc0f9},{'fromCollab':!0x0});});}}}[_0x5d632(0x161)](){const _0x1728a3=_0x5d632;this['_status$']['next'](_0x1728a3(0xda));const _0x23c017=new Map(),_0x5373e2=this['_commandDisposable']=new o['DisposableCollection']();_0x5373e2['add'](o[_0x1728a3(0x101)](()=>{const _0x34dcb6=_0x1728a3;_0x23c017[_0x34dcb6(0xc5)](_0x1a25dd=>_0x1a25dd[_0x34dcb6(0x16c)]()),_0x23c017['clear']();})),_0x5373e2[_0x1728a3(0x12e)](this[_0x1728a3(0x150)][_0x1728a3(0xe8)](_0x30751a=>{const _0x4fb863=_0x1728a3;var _0x452d74;if(_0x30751a[_0x4fb863(0x126)]!==o[_0x4fb863(0xc8)]['OPERATION']||!this[_0x4fb863(0xd5)][_0x4fb863(0xf0)](_0x30751a['id']))return;const {id:_0x410491}=_0x30751a;let _0x2dc8fe;_0x23c017[_0x4fb863(0x145)](_0x410491)?_0x2dc8fe=_0x23c017[_0x4fb863(0xb1)](_0x410491):(_0x2dc8fe=new O[(_0x4fb863(0x12a))](),_0x23c017[_0x4fb863(0xf1)](_0x410491,_0x2dc8fe),_0x2dc8fe['pipe'](I[_0x4fb863(0x128)]((_0x452d74=this[_0x4fb863(0x131)][_0x4fb863(0xd9)](k))!=null?_0x452d74:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4fb863(0x14f)](_0x52f555=>{const _0x487c7f=_0x4fb863;this[_0x487c7f(0x170)]['send']({'eventID':d[_0x487c7f(0x14d)][_0x487c7f(0x149)],'data':{'unitID':this['_unitID'],'operations':{[_0x52f555['id']]:{'id':_0x52f555['id'],'params':JSON['stringify'](_0x52f555[_0x487c7f(0xb4)])}}}},this[_0x487c7f(0x14b)]);})),_0x2dc8fe[_0x4fb863(0x14c)](_0x30751a);})),this[_0x1728a3(0xd5)][_0x1728a3(0xb6)](this[_0x1728a3(0x14b)])['forEach'](_0x20a076=>this[_0x1728a3(0x170)]['send']({'eventID':d['CollaborationEvent'][_0x1728a3(0x149)],'data':{'unitID':this[_0x1728a3(0x14b)],'operations':{[_0x20a076['id']]:{'id':_0x20a076['id'],'params':JSON[_0x1728a3(0xd4)](_0x20a076[_0x1728a3(0xb4)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x20cc7f=_0x5d632;var _0x1f0594;this[_0x20cc7f(0x16e)][_0x20cc7f(0x14c)](_0x20cc7f(0xfd)),(_0x1f0594=this['_commandDisposable'])==null||_0x1f0594[_0x20cc7f(0x114)](),this[_0x20cc7f(0xcd)]=null;}[_0x5d632(0xc3)](){const _0x23a525=_0x5d632;var _0x43b416;(_0x43b416=this[_0x23a525(0xcd)])==null||_0x43b416[_0x23a525(0x114)](),this[_0x23a525(0x16e)][_0x23a525(0x14c)](_0x23a525(0x174));}[_0x5d632(0x154)](){const _0x135b61=_0x5d632;var _0x32aea0;this[_0x135b61(0x16e)][_0x135b61(0x14c)](_0x135b61(0xfd)),(_0x32aea0=this[_0x135b61(0xcd)])==null||_0x32aea0[_0x135b61(0x114)](),this['_commandDisposable']=null;}[_0x5d632(0xf7)](){const _0x4d82a5=_0x5d632;var _0xf6a89a;this[_0x4d82a5(0x16e)][_0x4d82a5(0x14c)](_0x4d82a5(0xe7)),(_0xf6a89a=this[_0x4d82a5(0xcd)])==null||_0xf6a89a[_0x4d82a5(0x114)]();}[_0x5d632(0xae)](_0x250d6d){const _0x4b8d1c=_0x5d632;if([_0x4b8d1c(0xda),_0x4b8d1c(0xe7),'offline']['includes'](this[_0x4b8d1c(0x138)])||!_0x250d6d[_0x4b8d1c(0x134)][_0x4b8d1c(0x122)]||_0x250d6d['data'][_0x4b8d1c(0x122)]===this[_0x4b8d1c(0x170)][_0x4b8d1c(0x16a)]())return;this[_0x4b8d1c(0x138)]===_0x4b8d1c(0xfd)&&this['_startFollowing']();const _0x879635=_0x250d6d['data'][_0x4b8d1c(0x127)];Object[_0x4b8d1c(0x151)](_0x879635)[_0x4b8d1c(0xc5)](_0x69d363=>{const _0x58e828=_0x4b8d1c;this[_0x58e828(0x150)][_0x58e828(0x100)](_0x69d363['id'],_0x69d363['params']?JSON[_0x58e828(0x143)](_0x69d363[_0x58e828(0xb4)]):null,{'fromCollab':!0x0});});}[_0x5d632(0x129)](){const _0x3fe4d0=_0x5d632;var _0x81eb20;this[_0x3fe4d0(0x16e)][_0x3fe4d0(0x14c)](_0x3fe4d0(0xe0)),(_0x81eb20=this[_0x3fe4d0(0xcd)])==null||_0x81eb20['dispose']();}[_0x5d632(0x113)](){const _0x27e717=_0x5d632;this[_0x27e717(0x16e)]['next'](_0x27e717(0xfd)),this[_0x27e717(0x179)]();}},exports[_0x5d632(0x139)]=P([S(0x2,o[_0x5d632(0x144)]),S(0x3,o[_0x5d632(0x159)](E)),S(0x4,o[_0x5d632(0x10b)])],exports[_0x5d632(0x139)]);function $(){const _0x229f9e=_0x5d632,_0xb4c72d=p[_0x229f9e(0xe9)](exports['LiveShareController']),_0x4b973a=p[_0x229f9e(0xe9)](o['IUniverInstanceService']),_0x3a190b=p[_0x229f9e(0x137)](()=>_0x4b973a['getCurrentTypeOfUnit$'](o['UniverInstanceType'][_0x229f9e(0x177)]),void 0x0,!0x1,[]),[_0x3ba6dc,_0xa67c7]=v[_0x229f9e(0xde)](null),[_0x1d72f1,_0x18a5aa]=v['useState'](u[_0x229f9e(0x169)]),_0x1b008b=v[_0x229f9e(0x12d)](null);return v['useEffect'](()=>(_0x3a190b&&_0xb4c72d[_0x229f9e(0x123)](_0x3a190b[_0x229f9e(0x124)]())['then'](_0x2ab376=>{const _0x2d9fc6=_0x229f9e;_0xa67c7(_0x2ab376),_0x1b008b[_0x2d9fc6(0x10a)]=_0x2ab376[_0x2d9fc6(0x152)][_0x2d9fc6(0x14f)](_0x5a9fd0=>{_0x18a5aa(_0x5a9fd0);});}),()=>{const _0x4a1fad=_0x229f9e;var _0x31bd2e;(_0x31bd2e=_0x1b008b[_0x4a1fad(0x10a)])==null||_0x31bd2e[_0x4a1fad(0xf9)](),_0x1b008b[_0x4a1fad(0x10a)]=null;}),[_0x3a190b,_0xb4c72d]),_0x3ba6dc?l['jsx'](f[_0x229f9e(0x17a)],{'align':_0x229f9e(0x176),'disabled':_0x1d72f1===u[_0x229f9e(0x10f)],'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[_0x229f9e(0xf5)](W,{'status':_0x1d72f1,'coordinator':_0x3ba6dc}),'children':l[_0x229f9e(0xf5)](_0x229f9e(0x11b),{'className':f[_0x229f9e(0xf4)](_0x229f9e(0xbb),{'univer-cursor-not-allowed':_0x1d72f1===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1d72f1!==u[_0x229f9e(0x10f)]}),'type':_0x229f9e(0x11b),'children':l[_0x229f9e(0xf5)](R,{'className':_0x229f9e(0x156)})})}):null;}function W(_0x3c1a15){const _0x83501f=_0x5d632,{status:_0x31bda8,coordinator:_0x459e6e}=_0x3c1a15;switch(_0x31bda8){case u['IDLE']:return l['jsx'](G,{'coordinator':_0x459e6e});case u[_0x83501f(0x141)]:return l[_0x83501f(0xf5)](B,{'coordinator':_0x459e6e});case u[_0x83501f(0x121)]:return l[_0x83501f(0xf5)](Y,{'coordinator':_0x459e6e});case u[_0x83501f(0x10f)]:return l[_0x83501f(0xf5)](J,{});case u[_0x83501f(0xad)]:return l[_0x83501f(0xf5)](Z,{'coordinator':_0x459e6e});default:return null;}}function G(_0x1b1fb9){const _0xc4f930=_0x5d632,{coordinator:_0x285f77}=_0x1b1fb9;return l[_0xc4f930(0x12f)](l[_0xc4f930(0x132)],{'children':[l[_0xc4f930(0xf5)](_0xc4f930(0xb8),{'className':_0xc4f930(0x12b),'children':_0xc4f930(0x102)}),l[_0xc4f930(0xf5)](f[_0xc4f930(0x11f)],{'onClick':()=>_0x285f77[_0xc4f930(0xc9)](),'children':_0xc4f930(0x14e)})]});}function B(_0x58d64a){const _0x39b031=_0x5d632,{coordinator:_0x12a676}=_0x58d64a;return l[_0x39b031(0x12f)](l[_0x39b031(0x132)],{'children':[l[_0x39b031(0xf5)](_0x39b031(0xb8),{'className':_0x39b031(0x12b),'children':_0x39b031(0xc0)}),l[_0x39b031(0xf5)](f['Button'],{'onClick':()=>_0x12a676[_0x39b031(0xeb)](),'children':_0x39b031(0x11a)})]});}function Y(_0x5067fd){const _0x2a1da0=_0x5d632,{coordinator:_0x3052c0}=_0x5067fd;return l[_0x2a1da0(0x12f)](l[_0x2a1da0(0x132)],{'children':[l[_0x2a1da0(0xf5)](_0x2a1da0(0xb8),{'className':_0x2a1da0(0x12b),'children':_0x2a1da0(0xd3)}),l['jsx'](f[_0x2a1da0(0x11f)],{'variant':_0x2a1da0(0x110),'onClick':()=>_0x3052c0[_0x2a1da0(0x162)](),'children':'Start\x20following'})]});}function Z(_0x1814cc){const _0x31ebf5=_0x5d632,{coordinator:_0x47769b}=_0x1814cc;return l['jsxs'](l[_0x31ebf5(0x132)],{'children':[l[_0x31ebf5(0xf5)](_0x31ebf5(0xb8),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x31ebf5(0xf5)](f[_0x31ebf5(0x11f)],{'variant':_0x31ebf5(0x17f),'onClick':()=>_0x47769b[_0x31ebf5(0x173)](),'children':'Stop\x20presenting'})]});}function J(){const _0x463afb=_0x5d632;return l[_0x463afb(0xf5)](l['Fragment'],{'children':_0x463afb(0xc6)});}var K=Object['getOwnPropertyDescriptor'],z=(_0x1a1b6a,_0x25da0a,_0x501be6,_0xe71d63)=>{const _0x188506=_0x5d632;for(var _0x575f7b=_0xe71d63>0x1?void 0x0:_0xe71d63?K(_0x25da0a,_0x501be6):_0x25da0a,_0x505683=_0x1a1b6a[_0x188506(0xe6)]-0x1,_0x1564b0;_0x505683>=0x0;_0x505683--)(_0x1564b0=_0x1a1b6a[_0x505683])&&(_0x575f7b=_0x1564b0(_0x575f7b)||_0x575f7b);return _0x575f7b;},L=(_0x22c298,_0x1b853a)=>(_0x4f096e,_0x2439be)=>_0x1b853a(_0x4f096e,_0x2439be,_0x22c298);exports[_0x5d632(0xfb)]=class extends o['Disposable']{constructor(_0x3f7490,_0x3b0b70){const _0x5c6726=_0x5d632;super(),this[_0x5c6726(0x15c)]=_0x3f7490,this['_uiPartsService']=_0x3b0b70,this[_0x5c6726(0xcb)]();}[_0x5d632(0xcb)](){const _0xa1e041=_0x5d632;this[_0xa1e041(0xc1)](this['_uiPartsService'][_0xa1e041(0x16f)](p[_0xa1e041(0x103)]['HEADER_MENU'],()=>p[_0xa1e041(0x105)]($,this[_0xa1e041(0x15c)])));}},exports[_0x5d632(0xfb)]=z([L(0x0,o[_0x5d632(0x159)](o[_0x5d632(0xb7)])),L(0x1,p[_0x5d632(0xff)])],exports['DesktopLiveShareController']);const Q=_0x5d632(0xf6),w={};var X=Object[_0x5d632(0x13b)],ee=(_0x4ec544,_0x1481b4,_0x485301,_0x3dd7f5)=>{const _0x21b0e6=_0x5d632;for(var _0x24734d=_0x3dd7f5>0x1?void 0x0:_0x3dd7f5?X(_0x1481b4,_0x485301):_0x1481b4,_0xa4275e=_0x4ec544[_0x21b0e6(0xe6)]-0x1,_0x3ee98c;_0xa4275e>=0x0;_0xa4275e--)(_0x3ee98c=_0x4ec544[_0xa4275e])&&(_0x24734d=_0x3ee98c(_0x24734d)||_0x24734d);return _0x24734d;},te=(_0x31b0b4,_0x233469)=>(_0x12311e,_0x597c4e)=>_0x233469(_0x12311e,_0x597c4e,_0x31b0b4);let m=class extends o[_0x5d632(0xb2)]{constructor(_0x6641e){const _0x47bbac=_0x5d632;super(),this[_0x47bbac(0xd5)]=_0x6641e,this[_0x47bbac(0x17d)]();}['_init'](){const _0x4f5aaa=_0x5d632;[D['SetZoomRatioOperation']['id'],D[_0x4f5aaa(0xb0)]['id'],C[_0x4f5aaa(0x146)]['id']]['forEach'](_0x3d3664=>{const _0x546bad=_0x4f5aaa;this[_0x546bad(0xc1)](this[_0x546bad(0xd5)]['registerSharedOperation'](_0x3d3664));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object['defineProperty'],se=Object[_0x5d632(0x13b)],ne=(_0x3e7dcd,_0x2449b6,_0x34c3e0)=>_0x2449b6 in _0x3e7dcd?ie(_0x3e7dcd,_0x2449b6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34c3e0}):_0x3e7dcd[_0x2449b6]=_0x34c3e0,re=(_0x21e2e2,_0x32575b,_0x458171,_0x1b9cc4)=>{for(var _0x10a078=_0x1b9cc4>0x1?void 0x0:_0x1b9cc4?se(_0x32575b,_0x458171):_0x32575b,_0x1b4a0f=_0x21e2e2['length']-0x1,_0x17943f;_0x1b4a0f>=0x0;_0x1b4a0f--)(_0x17943f=_0x21e2e2[_0x1b4a0f])&&(_0x10a078=_0x17943f(_0x10a078)||_0x10a078);return _0x10a078;},N=(_0xb1b940,_0x4c56a6)=>(_0x470974,_0x579020)=>_0x4c56a6(_0x470974,_0x579020,_0xb1b940),A=(_0x3ff1d5,_0xe96b00,_0x52de01)=>ne(_0x3ff1d5,typeof _0xe96b00!=_0x5d632(0xb5)?_0xe96b00+'':_0xe96b00,_0x52de01);const oe=_0x5d632(0x13a);exports[_0x5d632(0x115)]=class extends o['Plugin']{constructor(_0x48bf62=w,_0x5752d5,_0x40cf58){const _0x304764=_0x5d632;super(),this['_config']=_0x48bf62,this[_0x304764(0x15c)]=_0x5752d5,this[_0x304764(0x131)]=_0x40cf58;const {..._0x31043f}=o['merge']({},w,this[_0x304764(0xdd)]);this[_0x304764(0x131)][_0x304764(0x17e)](Q,_0x31043f);}[_0x5d632(0x130)](){const _0x330775=_0x5d632;o[_0x330775(0xf3)](this[_0x330775(0x15c)],o[_0x330775(0x104)]([[E],[exports[_0x330775(0x112)]],[m],[exports[_0x330775(0xfb)]]],this[_0x330775(0xdd)]['override'])),o[_0x330775(0x163)](this[_0x330775(0x15c)],[[m]]);}[_0x5d632(0x15d)](){const _0x3581b2=_0x5d632;o['touchDependencies'](this['_injector'],[[exports[_0x3581b2(0xfb)]]]);}},A(exports[_0x5d632(0x115)],_0x5d632(0x126),o[_0x5d632(0x17b)][_0x5d632(0xfa)]),A(exports['UniverLiveSharePlugin'],'pluginName',oe),exports[_0x5d632(0x115)]=re([o[_0x5d632(0xe4)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x5d632(0x159)](o[_0x5d632(0xb7)])),N(0x2,o[_0x5d632(0x144)])],exports[_0x5d632(0x115)]),exports[_0x5d632(0x118)]=$,exports['LiveShareService']=E,exports[_0x5d632(0xfc)]=u;
|
|
1
|
+
'use strict';const _0x22f433=_0x4c8d;(function(_0x1f07ba,_0x5ef76f){const _0xee615a=_0x4c8d,_0x466da4=_0x1f07ba();while(!![]){try{const _0x241bac=-parseInt(_0xee615a(0x1ac))/0x1*(parseInt(_0xee615a(0x163))/0x2)+parseInt(_0xee615a(0x196))/0x3*(-parseInt(_0xee615a(0x1ab))/0x4)+parseInt(_0xee615a(0x128))/0x5+parseInt(_0xee615a(0x140))/0x6*(-parseInt(_0xee615a(0xfd))/0x7)+-parseInt(_0xee615a(0x139))/0x8+parseInt(_0xee615a(0x186))/0x9+-parseInt(_0xee615a(0x17a))/0xa*(-parseInt(_0xee615a(0xf4))/0xb);if(_0x241bac===_0x5ef76f)break;else _0x466da4['push'](_0x466da4['shift']());}catch(_0x50cf2b){_0x466da4['push'](_0x466da4['shift']());}}}(_0x1e61,0x6bbfc));var T=Object[_0x22f433(0xe1)],U=(_0x44f1dd,_0x1a2695,_0xb40b50)=>_0x1a2695 in _0x44f1dd?T(_0x44f1dd,_0x1a2695,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb40b50}):_0x44f1dd[_0x1a2695]=_0xb40b50,_=(_0x3431c8,_0x581179,_0x5b23d1)=>U(_0x3431c8,typeof _0x581179!=_0x22f433(0x10e)?_0x581179+'':_0x581179,_0x5b23d1);Object[_0x22f433(0xe1)](exports,Symbol[_0x22f433(0x111)],{'value':_0x22f433(0x178)});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:_0x4caea4,..._0xe8cdcd}){const _0x575f1f=_0x22f433,{icon:_0x217c9b,id:_0x23a275,className:_0x1b14b7,extend:_0x4fb455,..._0xd3ac69}=_0xe8cdcd,_0x43bf8c=('univerjs-icon\x20univerjs-icon-'+_0x23a275+'\x20'+(_0x1b14b7||''))['trim'](),_0x3ba029=v['useRef']('_'+H());return j(_0x217c9b,''+_0x23a275,{'defIds':_0x217c9b[_0x575f1f(0x16c)],'idSuffix':_0x3ba029[_0x575f1f(0x1a8)]},{'ref':_0x4caea4,'className':_0x43bf8c,..._0xd3ac69},_0x4fb455);}function j(_0x2b1a49,_0x125dd4,_0x2521be,_0x12016d,_0x248b34){const _0x17ca36=_0x22f433;return v[_0x17ca36(0x11a)](_0x2b1a49[_0x17ca36(0x14d)],{'key':_0x125dd4,...y(_0x2b1a49,_0x2521be,_0x248b34),..._0x12016d},(F(_0x2b1a49,_0x2521be)[_0x17ca36(0x101)]||[])[_0x17ca36(0x11b)]((_0x180d11,_0xb54d77)=>j(_0x180d11,_0x125dd4+'-'+_0x2b1a49[_0x17ca36(0x14d)]+'-'+_0xb54d77,_0x2521be,void 0x0,_0x248b34)));}function _0x4c8d(_0x4201ed,_0x15d593){const _0x1e6132=_0x1e61();return _0x4c8d=function(_0x4c8d6b,_0x20ab3b){_0x4c8d6b=_0x4c8d6b-0xd5;let _0x49d727=_0x1e6132[_0x4c8d6b];return _0x49d727;},_0x4c8d(_0x4201ed,_0x15d593);}function y(_0x266da2,_0x3b1b19,_0x1d0f29){const _0x4720fa=_0x22f433,_0x4dfc87={..._0x266da2[_0x4720fa(0x131)]};_0x1d0f29!=null&&_0x1d0f29['colorChannel1']&&_0x4dfc87[_0x4720fa(0xde)]===_0x4720fa(0xf7)&&(_0x4dfc87[_0x4720fa(0xde)]=_0x1d0f29[_0x4720fa(0xf7)]),_0x266da2[_0x4720fa(0x14d)]===_0x4720fa(0x153)&&_0x4dfc87['id']&&(_0x4dfc87['id']=_0x4dfc87['id']+_0x3b1b19['idSuffix']),Object[_0x4720fa(0x1a0)](_0x4dfc87)[_0x4720fa(0x105)](([_0xd4effe,_0x578c55])=>{const _0x188457=_0x4720fa;_0xd4effe===_0x188457(0x153)&&typeof _0x578c55==_0x188457(0x170)&&(_0x4dfc87[_0xd4effe]=_0x578c55['replace'](/url\(#(.*)\)/,_0x188457(0x148)+_0x3b1b19[_0x188457(0xf5)]+')'));});const {defIds:_0x23863d}=_0x3b1b19;return!_0x23863d||_0x23863d[_0x4720fa(0x183)]===0x0||(_0x266da2[_0x4720fa(0x14d)]===_0x4720fa(0x110)&&_0x4dfc87[_0x4720fa(0x15d)]&&(_0x4dfc87['xlink:href']=_0x4dfc87[_0x4720fa(0x15d)]+_0x3b1b19[_0x4720fa(0xf5)]),Object[_0x4720fa(0x1a0)](_0x4dfc87)[_0x4720fa(0x105)](([_0x2d53ea,_0x259114])=>{const _0x3aee78=_0x4720fa;typeof _0x259114==_0x3aee78(0x170)&&(_0x4dfc87[_0x2d53ea]=_0x259114['replace'](/url\(#(.*)\)/,_0x3aee78(0x148)+_0x3b1b19['idSuffix']+')'));})),_0x4dfc87;}function F(_0x377e35,_0x1ea39e){const _0x5c80f9=_0x22f433;var _0x572b4c;const {defIds:_0x2684d3}=_0x1ea39e;return!_0x2684d3||_0x2684d3[_0x5c80f9(0x183)]===0x0?_0x377e35:_0x377e35[_0x5c80f9(0x14d)]===_0x5c80f9(0x173)&&((_0x572b4c=_0x377e35[_0x5c80f9(0x101)])!=null&&_0x572b4c[_0x5c80f9(0x183)])?{..._0x377e35,'children':_0x377e35[_0x5c80f9(0x101)][_0x5c80f9(0x11b)](_0x41d5c4=>typeof _0x41d5c4[_0x5c80f9(0x131)]['id']==_0x5c80f9(0x170)&&_0x2684d3&&_0x2684d3[_0x5c80f9(0x112)](_0x41d5c4[_0x5c80f9(0x131)]['id'])?{..._0x41d5c4,'attrs':{..._0x41d5c4[_0x5c80f9(0x131)],'id':_0x41d5c4['attrs']['id']+_0x1ea39e[_0x5c80f9(0xf5)]}}:_0x41d5c4)}:_0x377e35;}function H(){const _0x461c05=_0x22f433;return Math[_0x461c05(0x1a3)]()[_0x461c05(0x174)](0x24)[_0x461c05(0xe2)](0x2,0x8);}x[_0x22f433(0x184)]=_0x22f433(0x143);const V={'tag':_0x22f433(0x1ae),'attrs':{'xmlns':_0x22f433(0x126),'fill':_0x22f433(0x103),'viewBox':'0\x200\x2017\x2017','width':_0x22f433(0x12f),'height':'1em'},'children':[{'tag':_0x22f433(0xf3),'attrs':{'fill':_0x22f433(0x136),'d':_0x22f433(0x168)}},{'tag':_0x22f433(0xf3),'attrs':{'fill':_0x22f433(0x136),'d':_0x22f433(0xdd),'fillRule':_0x22f433(0x157),'clipRule':'evenodd'}}]},R=v[_0x22f433(0x144)](function(_0x8ed67b,_0x4b9648){const _0x3f469a=_0x22f433;return v[_0x3f469a(0x11a)](x,Object[_0x3f469a(0x199)]({},_0x8ed67b,{'id':_0x3f469a(0x1a5),'ref':_0x4b9648,'icon':V}));});R[_0x22f433(0x184)]=_0x22f433(0x141);class E extends o[_0x22f433(0x16d)]{constructor(){const _0x51f2b2=_0x22f433;super(...arguments),_(this,_0x51f2b2(0x109),new Set()),_(this,_0x51f2b2(0xe0),new Set());}[_0x22f433(0x185)](_0x2c888f){const _0x333b6f=_0x22f433;return this[_0x333b6f(0x109)][_0x333b6f(0x107)](_0x2c888f),o[_0x333b6f(0x1a4)](()=>this['_sharedOperations'][_0x333b6f(0x1b1)](_0x2c888f));}[_0x22f433(0x18d)](_0x3fcd62){const _0x17f0d6=_0x22f433;return this[_0x17f0d6(0xe0)][_0x17f0d6(0x107)](_0x3fcd62),o[_0x17f0d6(0x1a4)](()=>this['_reporters']['delete'](_0x3fcd62));}[_0x22f433(0x17d)](_0x9822e7){const _0x18c4da=_0x22f433;return this['_sharedOperations'][_0x18c4da(0x11e)](_0x9822e7);}['getInitialStates'](_0x38f300){const _0x18f542=_0x22f433;return Array['from'](this[_0x18f542(0xe0)])[_0x18f542(0x11b)](_0x483717=>_0x483717(_0x38f300));}}function _0x1e61(){const _0xf2bd8b=['none','stopFollowing','forEach','SessionStatus','add','unitId','_sharedOperations','set','requireSession','DesktopLiveShareController','mutations','symbol','button','use','toStringTag','includes','end','UNIVER_SHEET','LIVESHARE_NEW_HOST','_handleNewChangeSets','_handleOperation','useState','next','createElement','map','_univerInstanceService','Subject','has','Stop\x20presenting','LIVESHARE_FETCH_OPERATIONS','_handleNewHost','presenting','takeUntil','univer-mb-3\x20univer-w-full\x20univer-text-sm','throttleTime','http://www.w3.org/2000/svg','data','3141375QhnJZG','get','getLiveShareCoordinatorSync','_presenter','Present\x20this\x20document','getCurrentTypeOfUnit$','Stop\x20following','1em','DependentOn','attrs','following','Start\x20following','_mountLiveShare','useRef','currentColor','useObservable','dispose$','6747120QbBDcE','operations','SetWorksheetActiveOperation','Button','PRESENTING','_init','_fetchOperations','19638VGAdAT','LiveShareIcon','_configService','UniverIcon','forwardRef','getConfig','_stopPresenting','memberID','url(#$1','merge','univer-size-4','subscribe','_injector','tag','getMemberID','IDLE','LiveShareController','parse','IUniverInstanceService','mask','getTypeOfUnitDisposed$','send','div','evenodd','dispose','clsx','connectInjector','BuiltInUIPart','DisposableCollection','xlink:href','BehaviorSubject','getUnitId','InsertSheetMutation','Start','LIVESHARE_REQUEST_HOST','2oKHhsb','params','values','LiveShareStatus','CollaborationEvent','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','_startPresenting','LIVESHARE_TERMINATE','getStatus','defIds','Disposable','_config','createInstance','string','getInitialStates','UniverInstanceType','defs','toString','_startFollowing','Plugin','registerDependencies','Module','pipe','710AsEpSc','init','parseProtocolChangeset','shouldShareOperation','find','mergeOverrideWithDependencies','SetZoomRatioOperation','offline','Injector','length','displayName','registerSharedOperation','1120365LUPAAE','setConfig','SetScrollOperation','live-share.config','SAME_OPERATION_SHARE_INTERVAL','_startLiveShareCoordinator','getLiveShareCoordinator','registerInitialStateReporter','_commandDisposable','CollaborationSessionService','_liveShareService','stopPresenting','FOLLOWING','NEW_CHANGESETS','_commandService','registerComponent','16593rFDIvE','IConfigService','jsxs','assign','complete','unsubscribe','reverse','default','startFollowing','type','entries','Fragment','_collabSessionService','random','toDisposable','live-share-icon','pluginName','getTypeOfUnitAdded$','current','status$','_collabSession','444LLaLRQ','245161Blbbvy','LiveShareCoordinator','svg','touchDependencies','NOT_FOLLOWING','delete','text','_status$','onCommandExecuted','stringify','RxDisposable','Inject','_handleTerminate','_entities','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','fill','LIVESHARE_OPERATION','_reporters','defineProperty','substring','presenter','_unitID','executeCommand','sheet','You\x27re\x20following\x20the\x20presenter','_handleOnline','useEffect','clear','You\x27re\x20presenting\x20the\x20document','tryStartPresenting','ONLINE','_beIdle','disposeWithMe','Dropdown','_stopFollowing','jsx','path','346346KykvaG','idSuffix','_uiPartsService','colorChannel1','not-following','_status','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','idle','CommandType','1806LjcvTu','OFFLINE','getOwnPropertyDescriptor','UniverLiveSharePlugin','children','You\x27are\x20offline.'];_0x1e61=function(){return _0xf2bd8b;};return _0x1e61();}var M=Object[_0x22f433(0xff)],P=(_0x4146ff,_0x3070a9,_0x1ba225,_0x3a735c)=>{const _0x39df1c=_0x22f433;for(var _0xb1ae1a=_0x3a735c>0x1?void 0x0:_0x3a735c?M(_0x3070a9,_0x1ba225):_0x3070a9,_0xe99de4=_0x4146ff[_0x39df1c(0x183)]-0x1,_0x420b5c;_0xe99de4>=0x0;_0xe99de4--)(_0x420b5c=_0x4146ff[_0xe99de4])&&(_0xb1ae1a=_0x420b5c(_0xb1ae1a)||_0xb1ae1a);return _0xb1ae1a;},S=(_0x56ed28,_0x1afe48)=>(_0x5d19c5,_0x516ff5)=>_0x1afe48(_0x5d19c5,_0x516ff5,_0x56ed28);exports[_0x22f433(0x150)]=class extends o['RxDisposable']{constructor(_0x3ebf60,_0x4682ef,_0x4f21ab){const _0x2f03b0=_0x22f433;super(),_(this,'_entities',new Map()),(this[_0x2f03b0(0x11c)]=_0x3ebf60,this[_0x2f03b0(0x14c)]=_0x4682ef,this['_collabSessionService']=_0x4f21ab,this[_0x2f03b0(0x13e)]());}async[_0x22f433(0x18c)](_0x566d4a){const _0x21eb26=_0x22f433;return this['_entities'][_0x21eb26(0x11e)](_0x566d4a)||await this[_0x21eb26(0x18b)](_0x566d4a),this['_entities'][_0x21eb26(0x129)](_0x566d4a);}[_0x22f433(0x12a)](_0x22df74){const _0xb57ccb=_0x22f433;var _0x9f8e2a;return(_0x9f8e2a=this[_0xb57ccb(0xdc)][_0xb57ccb(0x129)](_0x22df74))!=null?_0x9f8e2a:null;}['_init'](){const _0x2682b5=_0x22f433;this[_0x2682b5(0x11c)][_0x2682b5(0x1a7)](o[_0x2682b5(0x172)][_0x2682b5(0x114)])[_0x2682b5(0x179)](I[_0x2682b5(0x123)](this[_0x2682b5(0x138)]))['subscribe'](async _0x23101d=>{const _0xea11d4=_0x2682b5,_0xf1e347=_0x23101d[_0xea11d4(0x15f)]();this[_0xea11d4(0xdc)][_0xea11d4(0x11e)](_0xf1e347)||this['_startLiveShareCoordinator'](_0xf1e347);}),this[_0x2682b5(0x11c)][_0x2682b5(0x154)](o[_0x2682b5(0x172)][_0x2682b5(0x114)])['pipe'](I['takeUntil'](this[_0x2682b5(0x138)]))[_0x2682b5(0x14b)](_0x5b9e66=>{const _0x4a1067=_0x2682b5,_0x2b2542=_0x5b9e66['getUnitId'](),_0x21b634=this[_0x4a1067(0xdc)][_0x4a1067(0x129)](_0x2b2542);_0x21b634==null||_0x21b634[_0x4a1067(0x158)]();});}async[_0x22f433(0x18b)](_0x3a0f31){const _0x23126e=_0x22f433,_0x2c4f2e=await this[_0x23126e(0x1a2)][_0x23126e(0x10b)](_0x3a0f31),_0x5c2f1e=this[_0x23126e(0x14c)][_0x23126e(0x16f)](exports[_0x23126e(0x1ad)],_0x3a0f31,_0x2c4f2e);return _0x5c2f1e[_0x23126e(0x17b)](),this[_0x23126e(0xdc)][_0x23126e(0x10a)](_0x3a0f31,_0x5c2f1e),_0x5c2f1e;}},exports['LiveShareController']=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x22f433(0xda)](o[_0x22f433(0x182)])),S(0x2,o['Inject'](b[_0x22f433(0x18f)]))],exports['LiveShareController']);var u=(_0x23d1be=>(_0x23d1be[_0x22f433(0xfe)]=_0x22f433(0x181),_0x23d1be['IDLE']=_0x22f433(0xfb),_0x23d1be['FOLLOWING']=_0x22f433(0x132),_0x23d1be[_0x22f433(0x1b0)]=_0x22f433(0xf8),_0x23d1be[_0x22f433(0x13d)]=_0x22f433(0x122),_0x23d1be))(u||{});const k=_0x22f433(0x18a),q=0xc8;exports[_0x22f433(0x1ad)]=class extends o[_0x22f433(0xd9)]{constructor(_0xc667ed,_0x63a08e,_0x1141c0,_0x348983,_0x1fffcd){const _0x3bb036=_0x22f433;super(),_(this,_0x3bb036(0xd6),new O[(_0x3bb036(0x15e))](_0x3bb036(0xfb))),_(this,_0x3bb036(0x1a9),this[_0x3bb036(0xd6)]['asObservable']()),_(this,_0x3bb036(0x13e),!0x1),_(this,_0x3bb036(0x18e),null),_(this,_0x3bb036(0x12b),null),(this['_unitID']=_0xc667ed,this['_collabSession']=_0x63a08e,this['_configService']=_0x1141c0,this[_0x3bb036(0x190)]=_0x348983,this[_0x3bb036(0x194)]=_0x1fffcd);}get[_0x22f433(0xf9)](){const _0x3fb755=_0x22f433;return this[_0x3fb755(0xd6)]['getValue']();}[_0x22f433(0x158)](){const _0x389e68=_0x22f433;var _0x1f36eb;(_0x1f36eb=this[_0x389e68(0x18e)])==null||_0x1f36eb['dispose'](),this[_0x389e68(0xd6)][_0x389e68(0x119)](_0x389e68(0xfb)),this[_0x389e68(0xd6)][_0x389e68(0x19a)]();}[_0x22f433(0x16b)](){const _0x5bd463=_0x22f433;return this[_0x5bd463(0xf9)];}[_0x22f433(0x17b)](){const _0x330b05=_0x22f433;this[_0x330b05(0x13e)]||(this['_init']=!0x0,this[_0x330b05(0x1aa)]['sessionStatus$'][_0x330b05(0x179)](I[_0x330b05(0x123)](this['dispose$']))[_0x330b05(0x14b)](_0x217659=>{const _0x4b9815=_0x330b05;switch(_0x217659){case b[_0x4b9815(0x106)][_0x4b9815(0xfe)]:this['_handleOffline']();break;case b['SessionStatus'][_0x4b9815(0xed)]:this['_handleOnline']();break;}}),this['_collabSession']['event$']['pipe'](I['takeUntil'](this['dispose$']))['subscribe'](_0x30d3f1=>{const _0x3a7e68=_0x330b05,{eventID:_0x425279}=_0x30d3f1;switch(_0x425279){case d[_0x3a7e68(0x167)][_0x3a7e68(0x115)]:this[_0x3a7e68(0x121)](_0x30d3f1);break;case d[_0x3a7e68(0x167)][_0x3a7e68(0xdf)]:this[_0x3a7e68(0x117)](_0x30d3f1);break;case d[_0x3a7e68(0x167)]['LIVESHARE_TERMINATE']:this[_0x3a7e68(0xdb)]();break;case d[_0x3a7e68(0x167)][_0x3a7e68(0x193)]:this[_0x3a7e68(0x116)](_0x30d3f1);break;}}));}[_0x22f433(0xec)](){const _0x85b34c=_0x22f433;this[_0x85b34c(0x1aa)]['send']({'eventID':d[_0x85b34c(0x167)][_0x85b34c(0x162)],'data':{'unitID':this[_0x85b34c(0xe4)],'userID':this[_0x85b34c(0x1aa)][_0x85b34c(0x14e)]()}},this['_unitID']);}[_0x22f433(0x191)](){const _0x362249=_0x22f433;this[_0x362249(0xf9)]===_0x362249(0x122)&&(this[_0x362249(0xd6)][_0x362249(0x119)](_0x362249(0xfb)),this[_0x362249(0x1aa)][_0x362249(0x155)]({'eventID':d['CollaborationEvent'][_0x362249(0x16a)],'data':{'unitID':this[_0x362249(0xe4)]}},this[_0x362249(0xe4)]));}[_0x22f433(0x19e)](){const _0x2ba570=_0x22f433;this[_0x2ba570(0xf9)]==='not-following'&&(this[_0x2ba570(0xd6)][_0x2ba570(0x119)]('following'),this[_0x2ba570(0x175)]());}[_0x22f433(0x104)](){const _0x30a29b=_0x22f433;this[_0x30a29b(0xf9)]==='following'&&this[_0x30a29b(0xf1)]();}[_0x22f433(0x121)](_0x255fcc){const _0x36357e=_0x22f433,{presenter:_0xdbcc76}=_0x255fcc[_0x36357e(0x127)],_0x524145=this[_0x36357e(0x1aa)]['getMemberID']();this['_presenter']=_0xdbcc76,_0xdbcc76===_0x524145?(this[_0x36357e(0xf1)](),this[_0x36357e(0x169)]()):this['_status']!==_0x36357e(0xf8)&&(this[_0x36357e(0x146)](),this[_0x36357e(0x175)]());}['_fetchOperations'](){const _0x42f604=_0x22f433,_0x3fccd8={'eventID':d[_0x42f604(0x167)][_0x42f604(0x120)]};this[_0x42f604(0x1aa)][_0x42f604(0x155)](_0x3fccd8,this[_0x42f604(0xe4)]);}['_handleTerminate'](){const _0x5af626=_0x22f433;this[_0x5af626(0x12b)]=null,this['_status']!==_0x5af626(0x122)&&this[_0x5af626(0xee)]();}[_0x22f433(0x116)](_0x533273){const _0x13ecbb=_0x22f433;if(this[_0x13ecbb(0xf9)]===_0x13ecbb(0x132)&&this[_0x13ecbb(0x12b)]===_0x533273['data'][_0x13ecbb(0x147)]){const _0x592d4a=d[_0x13ecbb(0x17c)](_0x533273[_0x13ecbb(0x127)])[_0x13ecbb(0x10d)][_0x13ecbb(0x19c)]()[_0x13ecbb(0x17e)](_0x36f918=>_0x36f918['id']===C[_0x13ecbb(0x160)]['id']);if(_0x592d4a){const _0x24cb3e=_0x592d4a[_0x13ecbb(0x164)][_0x13ecbb(0x108)],_0x3cd6aa=_0x592d4a[_0x13ecbb(0x164)][_0x13ecbb(0xe6)]['id'];setTimeout(()=>{const _0x8077ef=_0x13ecbb;this[_0x8077ef(0x194)][_0x8077ef(0xe5)](C[_0x8077ef(0x13b)]['id'],{'unitId':_0x24cb3e,'subUnitId':_0x3cd6aa},{'fromCollab':!0x0});});}}}[_0x22f433(0x169)](){const _0x37ebf4=_0x22f433;this[_0x37ebf4(0xd6)]['next'](_0x37ebf4(0x122));const _0x3991a5=new Map(),_0x3b961d=this[_0x37ebf4(0x18e)]=new o[(_0x37ebf4(0x15c))]();_0x3b961d[_0x37ebf4(0x107)](o['toDisposable'](()=>{const _0x393efe=_0x37ebf4;_0x3991a5[_0x393efe(0x105)](_0x107eb0=>_0x107eb0['complete']()),_0x3991a5[_0x393efe(0xea)]();})),_0x3b961d['add'](this[_0x37ebf4(0x194)][_0x37ebf4(0xd7)](_0x267b6c=>{const _0x4c61e0=_0x37ebf4;var _0x3c162c;if(_0x267b6c[_0x4c61e0(0x19f)]!==o[_0x4c61e0(0xfc)]['OPERATION']||!this['_liveShareService'][_0x4c61e0(0x17d)](_0x267b6c['id']))return;const {id:_0x351cfb}=_0x267b6c;let _0x4f8759;_0x3991a5[_0x4c61e0(0x11e)](_0x351cfb)?_0x4f8759=_0x3991a5[_0x4c61e0(0x129)](_0x351cfb):(_0x4f8759=new O[(_0x4c61e0(0x11d))](),_0x3991a5[_0x4c61e0(0x10a)](_0x351cfb,_0x4f8759),_0x4f8759['pipe'](I[_0x4c61e0(0x125)]((_0x3c162c=this['_configService'][_0x4c61e0(0x145)](k))!=null?_0x3c162c:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4c61e0(0x14b)](_0x1b7016=>{const _0x2d5c81=_0x4c61e0;this[_0x2d5c81(0x1aa)][_0x2d5c81(0x155)]({'eventID':d[_0x2d5c81(0x167)][_0x2d5c81(0xdf)],'data':{'unitID':this[_0x2d5c81(0xe4)],'operations':{[_0x1b7016['id']]:{'id':_0x1b7016['id'],'params':JSON[_0x2d5c81(0xd8)](_0x1b7016[_0x2d5c81(0x164)])}}}},this[_0x2d5c81(0xe4)]);})),_0x4f8759[_0x4c61e0(0x119)](_0x267b6c);})),this[_0x37ebf4(0x190)][_0x37ebf4(0x171)](this[_0x37ebf4(0xe4)])[_0x37ebf4(0x105)](_0x555a52=>this[_0x37ebf4(0x1aa)]['send']({'eventID':d[_0x37ebf4(0x167)][_0x37ebf4(0xdf)],'data':{'unitID':this[_0x37ebf4(0xe4)],'operations':{[_0x555a52['id']]:{'id':_0x555a52['id'],'params':JSON[_0x37ebf4(0xd8)](_0x555a52['params'])}}}},this[_0x37ebf4(0xe4)]));}[_0x22f433(0x146)](){const _0x42040c=_0x22f433;var _0x56b695;this[_0x42040c(0xd6)]['next'](_0x42040c(0xfb)),(_0x56b695=this[_0x42040c(0x18e)])==null||_0x56b695[_0x42040c(0x158)](),this[_0x42040c(0x18e)]=null;}[_0x22f433(0x175)](){const _0x4d8e33=_0x22f433;var _0x2d8ef6;(_0x2d8ef6=this[_0x4d8e33(0x18e)])==null||_0x2d8ef6[_0x4d8e33(0x158)](),this[_0x4d8e33(0xd6)][_0x4d8e33(0x119)](_0x4d8e33(0x132));}['_beIdle'](){const _0x4a73af=_0x22f433;var _0x1e263c;this[_0x4a73af(0xd6)]['next']('idle'),(_0x1e263c=this[_0x4a73af(0x18e)])==null||_0x1e263c[_0x4a73af(0x158)](),this[_0x4a73af(0x18e)]=null;}['_stopFollowing'](){const _0xb3f211=_0x22f433;var _0x4bfee7;this[_0xb3f211(0xd6)][_0xb3f211(0x119)](_0xb3f211(0xf8)),(_0x4bfee7=this[_0xb3f211(0x18e)])==null||_0x4bfee7[_0xb3f211(0x158)]();}[_0x22f433(0x117)](_0x579a22){const _0x21b586=_0x22f433;if([_0x21b586(0x122),_0x21b586(0xf8),_0x21b586(0x181)]['includes'](this[_0x21b586(0xf9)])||!_0x579a22[_0x21b586(0x127)][_0x21b586(0xe3)]||_0x579a22[_0x21b586(0x127)][_0x21b586(0xe3)]===this[_0x21b586(0x1aa)][_0x21b586(0x14e)]())return;this[_0x21b586(0xf9)]===_0x21b586(0xfb)&&this[_0x21b586(0x175)]();const _0x15c28e=_0x579a22[_0x21b586(0x127)][_0x21b586(0x13a)];Object[_0x21b586(0x165)](_0x15c28e)[_0x21b586(0x105)](_0x53556f=>{const _0x3ec568=_0x21b586;this[_0x3ec568(0x194)][_0x3ec568(0xe5)](_0x53556f['id'],_0x53556f['params']?JSON[_0x3ec568(0x151)](_0x53556f[_0x3ec568(0x164)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x37eb65=_0x22f433;var _0x10d7dc;this['_status$'][_0x37eb65(0x119)](_0x37eb65(0x181)),(_0x10d7dc=this[_0x37eb65(0x18e)])==null||_0x10d7dc['dispose']();}[_0x22f433(0xe8)](){const _0x4c9dff=_0x22f433;this[_0x4c9dff(0xd6)][_0x4c9dff(0x119)](_0x4c9dff(0xfb)),this[_0x4c9dff(0x13f)]();}},exports[_0x22f433(0x1ad)]=P([S(0x2,o[_0x22f433(0x197)]),S(0x3,o['Inject'](E)),S(0x4,o['ICommandService'])],exports[_0x22f433(0x1ad)]);function $(){const _0xa47aa8=_0x22f433,_0x2f9b01=p['useDependency'](exports[_0xa47aa8(0x150)]),_0x54869f=p['useDependency'](o[_0xa47aa8(0x152)]),_0xc3956a=p[_0xa47aa8(0x137)](()=>_0x54869f[_0xa47aa8(0x12d)](o[_0xa47aa8(0x172)][_0xa47aa8(0x114)]),void 0x0,!0x1,[]),[_0x121e77,_0x5adaac]=v['useState'](null),[_0xcee3a,_0x1c4cf0]=v[_0xa47aa8(0x118)](u['IDLE']),_0x4c4278=v[_0xa47aa8(0x135)](null);return v[_0xa47aa8(0xe9)](()=>(_0xc3956a&&_0x2f9b01[_0xa47aa8(0x18c)](_0xc3956a[_0xa47aa8(0x15f)]())['then'](_0x283387=>{const _0x1fb5f8=_0xa47aa8;_0x5adaac(_0x283387),_0x4c4278[_0x1fb5f8(0x1a8)]=_0x283387[_0x1fb5f8(0x1a9)][_0x1fb5f8(0x14b)](_0x469212=>{_0x1c4cf0(_0x469212);});}),()=>{const _0x5e01e4=_0xa47aa8;var _0x5edc1f;(_0x5edc1f=_0x4c4278[_0x5e01e4(0x1a8)])==null||_0x5edc1f[_0x5e01e4(0x19b)](),_0x4c4278['current']=null;}),[_0xc3956a,_0x2f9b01]),_0x121e77?l[_0xa47aa8(0xf2)](f[_0xa47aa8(0xf0)],{'align':_0xa47aa8(0x113),'disabled':_0xcee3a===u['OFFLINE'],'className':_0xa47aa8(0xfa),'overlay':l[_0xa47aa8(0xf2)](W,{'status':_0xcee3a,'coordinator':_0x121e77}),'children':l[_0xa47aa8(0xf2)](_0xa47aa8(0x10f),{'className':f[_0xa47aa8(0x159)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xcee3a===u[_0xa47aa8(0xfe)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xcee3a!==u['OFFLINE']}),'type':_0xa47aa8(0x10f),'children':l[_0xa47aa8(0xf2)](R,{'className':_0xa47aa8(0x14a)})})}):null;}function W(_0x5cc4bf){const _0x2c7c14=_0x22f433,{status:_0x37a905,coordinator:_0x37f82d}=_0x5cc4bf;switch(_0x37a905){case u[_0x2c7c14(0x14f)]:return l[_0x2c7c14(0xf2)](G,{'coordinator':_0x37f82d});case u[_0x2c7c14(0x192)]:return l[_0x2c7c14(0xf2)](B,{'coordinator':_0x37f82d});case u[_0x2c7c14(0x1b0)]:return l['jsx'](Y,{'coordinator':_0x37f82d});case u[_0x2c7c14(0xfe)]:return l['jsx'](J,{});case u['PRESENTING']:return l[_0x2c7c14(0xf2)](Z,{'coordinator':_0x37f82d});default:return null;}}function G(_0x59a914){const _0x5c6bdc=_0x22f433,{coordinator:_0x54aab9}=_0x59a914;return l[_0x5c6bdc(0x198)](l[_0x5c6bdc(0x1a1)],{'children':[l['jsx'](_0x5c6bdc(0x156),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5c6bdc(0x12c)}),l[_0x5c6bdc(0xf2)](f[_0x5c6bdc(0x13c)],{'onClick':()=>_0x54aab9[_0x5c6bdc(0xec)](),'children':_0x5c6bdc(0x161)})]});}function B(_0x3aea3d){const _0x4de878=_0x22f433,{coordinator:_0x161c68}=_0x3aea3d;return l[_0x4de878(0x198)](l[_0x4de878(0x1a1)],{'children':[l['jsx'](_0x4de878(0x156),{'className':_0x4de878(0x124),'children':_0x4de878(0xe7)}),l[_0x4de878(0xf2)](f[_0x4de878(0x13c)],{'onClick':()=>_0x161c68[_0x4de878(0x104)](),'children':_0x4de878(0x12e)})]});}function Y(_0x5913c3){const _0x19b9cd=_0x22f433,{coordinator:_0x1e840d}=_0x5913c3;return l['jsxs'](l[_0x19b9cd(0x1a1)],{'children':[l[_0x19b9cd(0xf2)](_0x19b9cd(0x156),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l['jsx'](f[_0x19b9cd(0x13c)],{'variant':_0x19b9cd(0xd5),'onClick':()=>_0x1e840d[_0x19b9cd(0x19e)](),'children':_0x19b9cd(0x133)})]});}function Z(_0x377ca6){const _0x331579=_0x22f433,{coordinator:_0x2358f2}=_0x377ca6;return l['jsxs'](l['Fragment'],{'children':[l[_0x331579(0xf2)]('div',{'className':_0x331579(0x124),'children':_0x331579(0xeb)}),l['jsx'](f[_0x331579(0x13c)],{'variant':_0x331579(0x19d),'onClick':()=>_0x2358f2['stopPresenting'](),'children':_0x331579(0x11f)})]});}function J(){const _0x1ac9d9=_0x22f433;return l[_0x1ac9d9(0xf2)](l['Fragment'],{'children':_0x1ac9d9(0x102)});}var K=Object[_0x22f433(0xff)],z=(_0xcb8d6f,_0x20cc99,_0x48160d,_0x481b01)=>{const _0x56f091=_0x22f433;for(var _0x3cf5be=_0x481b01>0x1?void 0x0:_0x481b01?K(_0x20cc99,_0x48160d):_0x20cc99,_0x41e2fe=_0xcb8d6f[_0x56f091(0x183)]-0x1,_0x505bab;_0x41e2fe>=0x0;_0x41e2fe--)(_0x505bab=_0xcb8d6f[_0x41e2fe])&&(_0x3cf5be=_0x505bab(_0x3cf5be)||_0x3cf5be);return _0x3cf5be;},L=(_0x4af112,_0xb540ee)=>(_0x5405e8,_0x53845b)=>_0xb540ee(_0x5405e8,_0x53845b,_0x4af112);exports[_0x22f433(0x10c)]=class extends o[_0x22f433(0x16d)]{constructor(_0x2cd46b,_0x5a32ad){const _0x352ece=_0x22f433;super(),this[_0x352ece(0x14c)]=_0x2cd46b,this[_0x352ece(0xf6)]=_0x5a32ad,this[_0x352ece(0x134)]();}[_0x22f433(0x134)](){const _0x1f597c=_0x22f433;this[_0x1f597c(0xef)](this[_0x1f597c(0xf6)][_0x1f597c(0x195)](p[_0x1f597c(0x15b)]['HEADER_MENU'],()=>p[_0x1f597c(0x15a)]($,this[_0x1f597c(0x14c)])));}},exports[_0x22f433(0x10c)]=z([L(0x0,o[_0x22f433(0xda)](o[_0x22f433(0x182)])),L(0x1,p['IUIPartsService'])],exports[_0x22f433(0x10c)]);const Q=_0x22f433(0x189),w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0x1ce0f0,_0x1235b3,_0x3c597a,_0x5a04fc)=>{for(var _0x276eea=_0x5a04fc>0x1?void 0x0:_0x5a04fc?X(_0x1235b3,_0x3c597a):_0x1235b3,_0x2b1683=_0x1ce0f0['length']-0x1,_0x1f5039;_0x2b1683>=0x0;_0x2b1683--)(_0x1f5039=_0x1ce0f0[_0x2b1683])&&(_0x276eea=_0x1f5039(_0x276eea)||_0x276eea);return _0x276eea;},te=(_0x41d586,_0x5c4aeb)=>(_0x165af6,_0xe334e0)=>_0x5c4aeb(_0x165af6,_0xe334e0,_0x41d586);let m=class extends o['Disposable']{constructor(_0x50cd6e){const _0x29a9a1=_0x22f433;super(),this[_0x29a9a1(0x190)]=_0x50cd6e,this['_init']();}[_0x22f433(0x13e)](){const _0xffb099=_0x22f433;[D[_0xffb099(0x180)]['id'],D[_0xffb099(0x188)]['id'],C[_0xffb099(0x13b)]['id']][_0xffb099(0x105)](_0x6adb2b=>{const _0x46c3c2=_0xffb099;this[_0x46c3c2(0xef)](this['_liveShareService']['registerSharedOperation'](_0x6adb2b));});}};m=ee([te(0x0,o[_0x22f433(0xda)](E))],m);var ie=Object[_0x22f433(0xe1)],se=Object['getOwnPropertyDescriptor'],ne=(_0x40fa0b,_0x4b8b69,_0x26c2f3)=>_0x4b8b69 in _0x40fa0b?ie(_0x40fa0b,_0x4b8b69,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26c2f3}):_0x40fa0b[_0x4b8b69]=_0x26c2f3,re=(_0x5a5f65,_0x2d6681,_0x5ae6ec,_0x99bc6e)=>{for(var _0x17700d=_0x99bc6e>0x1?void 0x0:_0x99bc6e?se(_0x2d6681,_0x5ae6ec):_0x2d6681,_0x2c99cd=_0x5a5f65['length']-0x1,_0x11d619;_0x2c99cd>=0x0;_0x2c99cd--)(_0x11d619=_0x5a5f65[_0x2c99cd])&&(_0x17700d=_0x11d619(_0x17700d)||_0x17700d);return _0x17700d;},N=(_0x43f3f8,_0x22fcc5)=>(_0xe9fa5c,_0x44b03e)=>_0x22fcc5(_0xe9fa5c,_0x44b03e,_0x43f3f8),A=(_0x13e566,_0x5d747c,_0x3017d7)=>ne(_0x13e566,typeof _0x5d747c!=_0x22f433(0x10e)?_0x5d747c+'':_0x5d747c,_0x3017d7);const oe='UNIVER_LIVE_SHARE_PLUGIN';exports['UniverLiveSharePlugin']=class extends o[_0x22f433(0x176)]{constructor(_0x1759ca=w,_0x4deea6,_0x2e71b5){const _0x3d1323=_0x22f433;super(),this[_0x3d1323(0x16e)]=_0x1759ca,this[_0x3d1323(0x14c)]=_0x4deea6,this[_0x3d1323(0x142)]=_0x2e71b5;const {..._0x106bb5}=o[_0x3d1323(0x149)]({},w,this[_0x3d1323(0x16e)]);this[_0x3d1323(0x142)][_0x3d1323(0x187)](Q,_0x106bb5);}['onStarting'](){const _0x3e6252=_0x22f433;o[_0x3e6252(0x177)](this[_0x3e6252(0x14c)],o[_0x3e6252(0x17f)]([[E],[exports[_0x3e6252(0x150)]],[m],[exports[_0x3e6252(0x10c)]]],this[_0x3e6252(0x16e)]['override'])),o[_0x3e6252(0x1af)](this['_injector'],[[m]]);}['onRendered'](){const _0x155cfb=_0x22f433;o[_0x155cfb(0x1af)](this[_0x155cfb(0x14c)],[[exports[_0x155cfb(0x10c)]]]);}},A(exports[_0x22f433(0x100)],_0x22f433(0x19f),o[_0x22f433(0x172)]['UNIVER_UNKNOWN']),A(exports[_0x22f433(0x100)],_0x22f433(0x1a6),oe),exports[_0x22f433(0x100)]=re([o[_0x22f433(0x130)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x22f433(0xda)](o[_0x22f433(0x182)])),N(0x2,o[_0x22f433(0x197)])],exports['UniverLiveSharePlugin']),exports['LiveShare']=$,exports['LiveShareService']=E,exports[_0x22f433(0x166)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x893b(){const _0x5442eb=['getId','startPresenting','tryStartPresenting','13602xdfEKb','getStatus','get','_initialize','PRESENTING','startFollowing','356488TmDuNK','52HwmZSB','stopPresenting','IDLE','No\x20active\x20workbook\x20found.','getUnitId','296632UiYmNE','_injector','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','syncExecuteCommand','getLiveShareCoordinatorSync','getSheetId','executeCommand','1534010iftwQd','81Lvwyti','1097180ZwCIiS','35371gLjiGC','6WkHDIH','getRenderById','getActiveWorkbook','startColumn','extend','356136umEtXu','_commandService'];_0x893b=function(){return _0x5442eb;};return _0x893b();}const _0x1cd90e=_0x4b76;(function(_0x418764,_0x43d3b7){const _0x44707d=_0x4b76,_0x13d69e=_0x418764();while(!![]){try{const _0x1c6c7b=parseInt(_0x44707d(0x85))/0x1+parseInt(_0x44707d(0x6a))/0x2+parseInt(_0x44707d(0x6f))/0x3*(-parseInt(_0x44707d(0x76))/0x4)+-parseInt(_0x44707d(0x84))/0x5+-parseInt(_0x44707d(0x86))/0x6*(-parseInt(_0x44707d(0x7b))/0x7)+-parseInt(_0x44707d(0x75))/0x8*(-parseInt(_0x44707d(0x83))/0x9)+-parseInt(_0x44707d(0x82))/0xa;if(_0x1c6c7b===_0x43d3b7)break;else _0x13d69e['push'](_0x13d69e['shift']());}catch(_0x3dfa0c){_0x13d69e['push'](_0x13d69e['shift']());}}}(_0x893b,0x36f3d));import{LiveShareController as _0x114022,LiveShareStatus as _0x874f35}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x402d33}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x3a8932}from'@univerjs/sheets';function _0x4b76(_0x38a863,_0x2c756f){const _0x893b11=_0x893b();return _0x4b76=function(_0x4b7681,_0x179bcb){_0x4b7681=_0x4b7681-0x6a;let _0x48b993=_0x893b11[_0x4b7681];return _0x48b993;},_0x4b76(_0x38a863,_0x2c756f);}import{SetScrollOperation as _0x14d169}from'@univerjs/sheets-ui';import{FRange as _0x18a92a}from'@univerjs/sheets/facade';import{FUniver as _0x5bce27,FEnum as _0x5b9547}from'@univerjs/core/facade';class I extends _0x18a92a{[_0x1cd90e(0x72)](_0x4cdce2,_0x4d988f,_0x3976f6,_0x252901,_0x34c163){const _0x484522=_0x1cd90e,_0x113862=_0x4cdce2['get'](_0x114022),_0x2d6f17=_0x4cdce2[_0x484522(0x71)](_0x402d33),_0x141fac=_0x4d988f[_0x484522(0x7a)](),_0x435107=_0x4d988f['getActiveSheet'](),_0x3c9427=_0x113862[_0x484522(0x7f)](_0x141fac);(_0x3c9427==null?void 0x0:_0x3c9427[_0x484522(0x70)]())!==_0x874f35[_0x484522(0x73)]||(_0x3976f6[_0x484522(0x80)]()!==_0x435107[_0x484522(0x80)]()&&this[_0x484522(0x6b)][_0x484522(0x81)](_0x3a8932['id'],{'unitId':_0x141fac,'subUnitId':_0x3976f6['getSheetId']()}),!_0x2d6f17[_0x484522(0x87)](_0x141fac))||_0x34c163[_0x484522(0x7e)](_0x14d169['id'],{'unitId':_0x4d988f[_0x484522(0x7a)](),'sheetId':_0x3976f6[_0x484522(0x80)](),'sheetViewStartRow':_0x252901['startRow'],'sheetViewStartColumn':_0x252901[_0x484522(0x89)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x18a92a[_0x1cd90e(0x8a)](I);class m extends _0x5bce27{['getLiveShareStatus'](){const _0x549607=_0x1cd90e;var _0x26b1f0,_0xb256;const _0x56531f=this[_0x549607(0x7c)][_0x549607(0x71)](_0x114022),_0x217c6e=(_0x26b1f0=this[_0x549607(0x88)]())==null?void 0x0:_0x26b1f0['getId']();if(!_0x217c6e)throw new Error(_0x549607(0x79));const _0x1dcfa5=_0x56531f[_0x549607(0x7f)](_0x217c6e);return(_0xb256=_0x1dcfa5==null?void 0x0:_0x1dcfa5[_0x549607(0x70)]())!=null?_0xb256:_0x874f35[_0x549607(0x78)];}['startFollowing'](){const _0x5e555b=_0x1cd90e;var _0xefbb3c;const _0x48638d=this[_0x5e555b(0x7c)][_0x5e555b(0x71)](_0x114022),_0x17fa6b=(_0xefbb3c=this[_0x5e555b(0x88)]())==null?void 0x0:_0xefbb3c['getId']();if(!_0x17fa6b)throw new Error('No\x20active\x20workbook\x20found.');const _0x49bf8e=_0x48638d['getLiveShareCoordinatorSync'](_0x17fa6b);if(!_0x49bf8e)throw new Error(_0x5e555b(0x7d));_0x49bf8e[_0x5e555b(0x74)]();}['stopFollowing'](){const _0x28f178=_0x1cd90e;var _0x459f21;const _0x48eacd=this[_0x28f178(0x7c)][_0x28f178(0x71)](_0x114022),_0x2198c5=(_0x459f21=this['getActiveWorkbook']())==null?void 0x0:_0x459f21['getId']();if(!_0x2198c5)throw new Error('No\x20active\x20workbook\x20found.');const _0x1ee793=_0x48eacd['getLiveShareCoordinatorSync'](_0x2198c5);if(!_0x1ee793)throw new Error(_0x28f178(0x7d));_0x1ee793['stopFollowing']();}[_0x1cd90e(0x6d)](){const _0x213c00=_0x1cd90e;var _0x4253ec;const _0x4e1fe1=this[_0x213c00(0x7c)][_0x213c00(0x71)](_0x114022),_0x21c4fd=(_0x4253ec=this[_0x213c00(0x88)]())==null?void 0x0:_0x4253ec[_0x213c00(0x6c)]();if(!_0x21c4fd)throw new Error(_0x213c00(0x79));const _0x10871e=_0x4e1fe1['getLiveShareCoordinatorSync'](_0x21c4fd);if(!_0x10871e)throw new Error(_0x213c00(0x7d));_0x10871e[_0x213c00(0x6e)]();}['stopPresenting'](){const _0x42ffe7=_0x1cd90e;var _0x60b379;const _0x1cbfe0=this[_0x42ffe7(0x7c)][_0x42ffe7(0x71)](_0x114022),_0x1578d5=(_0x60b379=this[_0x42ffe7(0x88)]())==null?void 0x0:_0x60b379[_0x42ffe7(0x6c)]();if(!_0x1578d5)throw new Error(_0x42ffe7(0x79));const _0x2d56c9=_0x1cbfe0[_0x42ffe7(0x7f)](_0x1578d5);if(!_0x2d56c9)throw new Error(_0x42ffe7(0x7d));_0x2d56c9[_0x42ffe7(0x77)]();}}_0x5bce27[_0x1cd90e(0x8a)](m);class C extends _0x5b9547{get['LiveShareStatusEnum'](){return _0x874f35;}}_0x5b9547[_0x1cd90e(0x8a)](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x57791f=_0x2c32;(function(_0x54fa82,_0x4973e7){const _0x23c84f=_0x2c32,_0x2e29d1=_0x54fa82();while(!![]){try{const _0x7b1c36=parseInt(_0x23c84f(0x24d))/0x1+parseInt(_0x23c84f(0x1e9))/0x2+-parseInt(_0x23c84f(0x23a))/0x3*(parseInt(_0x23c84f(0x235))/0x4)+-parseInt(_0x23c84f(0x273))/0x5*(parseInt(_0x23c84f(0x261))/0x6)+-parseInt(_0x23c84f(0x269))/0x7*(-parseInt(_0x23c84f(0x1e4))/0x8)+-parseInt(_0x23c84f(0x24a))/0x9+parseInt(_0x23c84f(0x21c))/0xa*(parseInt(_0x23c84f(0x25c))/0xb);if(_0x7b1c36===_0x4973e7)break;else _0x2e29d1['push'](_0x2e29d1['shift']());}catch(_0x2b7a86){_0x2e29d1['push'](_0x2e29d1['shift']());}}}(_0x47de,0xd96a9));var J=Object[_0x57791f(0x24b)],K=(_0x4825a5,_0x589424,_0x1483f6)=>_0x589424 in _0x4825a5?J(_0x4825a5,_0x589424,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1483f6}):_0x4825a5[_0x589424]=_0x1483f6,u=(_0x38b1f2,_0x30a8ff,_0x4903f4)=>K(_0x38b1f2,typeof _0x30a8ff!=_0x57791f(0x24f)?_0x30a8ff+'':_0x30a8ff,_0x4903f4);import{Disposable as _0x586517,toDisposable as _0x2b6ac2,IUniverInstanceService as _0x50f749,Inject as _0x58c47f,Injector as _0x337fab,IConfigService as _0x1a7034,ICommandService as _0x4ad104,RxDisposable as _0xaf6b52,UniverInstanceType as _0x469e4a,DisposableCollection as _0x3803ff,CommandType as _0x3018fa,DependentOn as _0x54389d,Plugin as _0x288486,merge as _0x2293ae,registerDependencies as _0x1849c5,mergeOverrideWithDependencies as _0x40e0b3,touchDependencies as _0x5b1334}from'@univerjs/core';import{useDependency as _0x173f99,useObservable as _0xa17243,IUIPartsService as _0x3ddec6,BuiltInUIPart as _0x4296f0,connectInjector as _0x2e917a}from'@univerjs/ui';import{jsx as _0x47899f,jsxs as _0x585bf4,Fragment as _0x1aad73}from'react/jsx-runtime';import{Dropdown as _0x4832fe,clsx as _0x183b25,Button as _0x16a64c}from'@univerjs/design';import{useRef as _0x1d2dfb,createElement as _0x3b748f,forwardRef as _0x26d85a,useState as _0x4faa64,useEffect as _0x4695ab}from'react';import{CollaborationEvent as _0x56ba98,parseProtocolChangeset as _0x2b0cec}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x208377,SessionStatus as _0x9d842f,UniverCollaborationClientPlugin as _0x28e03d}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3cb9ca,SetWorksheetActiveOperation as _0x2d9b0e}from'@univerjs/sheets';import{BehaviorSubject as _0x27311b,Subject as _0x1fa751}from'rxjs';import{takeUntil as _0x11a52f,throttleTime as _0x412eba}from'rxjs/operators';import{SetZoomRatioOperation as _0x5ce85d,SetScrollOperation as _0x4c3e16}from'@univerjs/sheets-ui';function k({ref:_0x59e281,..._0x1408d3}){const _0x35fcf1=_0x57791f,{icon:_0x28f6ef,id:_0xee3966,className:_0x3a9163,extend:_0x2dd190,..._0x16d565}=_0x1408d3,_0x945a90=('univerjs-icon\x20univerjs-icon-'+_0xee3966+'\x20'+(_0x3a9163||''))['trim'](),_0x37e69c=_0x1d2dfb('_'+Oe());return G(_0x28f6ef,''+_0xee3966,{'defIds':_0x28f6ef[_0x35fcf1(0x259)],'idSuffix':_0x37e69c[_0x35fcf1(0x228)]},{'ref':_0x59e281,'className':_0x945a90,..._0x16d565},_0x2dd190);}function G(_0xcdfd5e,_0x10971e,_0x314010,_0x396d54,_0x5eee10){const _0x2b13a7=_0x57791f;return _0x3b748f(_0xcdfd5e['tag'],{'key':_0x10971e,...be(_0xcdfd5e,_0x314010,_0x5eee10),..._0x396d54},(Ee(_0xcdfd5e,_0x314010)[_0x2b13a7(0x23d)]||[])['map']((_0x4dd1fb,_0x50196a)=>G(_0x4dd1fb,_0x10971e+'-'+_0xcdfd5e[_0x2b13a7(0x200)]+'-'+_0x50196a,_0x314010,void 0x0,_0x5eee10)));}function be(_0x387861,_0x1cfdbe,_0x1d8e1c){const _0x19205f=_0x57791f,_0x2cb95a={..._0x387861[_0x19205f(0x255)]};_0x1d8e1c!=null&&_0x1d8e1c[_0x19205f(0x230)]&&_0x2cb95a[_0x19205f(0x1eb)]===_0x19205f(0x230)&&(_0x2cb95a['fill']=_0x1d8e1c[_0x19205f(0x230)]),_0x387861[_0x19205f(0x200)]===_0x19205f(0x1e5)&&_0x2cb95a['id']&&(_0x2cb95a['id']=_0x2cb95a['id']+_0x1cfdbe['idSuffix']),Object[_0x19205f(0x1f7)](_0x2cb95a)[_0x19205f(0x24e)](([_0xb8308e,_0x10b6ab])=>{const _0x1c32d0=_0x19205f;_0xb8308e===_0x1c32d0(0x1e5)&&typeof _0x10b6ab=='string'&&(_0x2cb95a[_0xb8308e]=_0x10b6ab[_0x1c32d0(0x242)](/url\(#(.*)\)/,_0x1c32d0(0x1d3)+_0x1cfdbe[_0x1c32d0(0x1e2)]+')'));});const {defIds:_0x2a8bfc}=_0x1cfdbe;return!_0x2a8bfc||_0x2a8bfc[_0x19205f(0x1d7)]===0x0||(_0x387861[_0x19205f(0x200)]===_0x19205f(0x1fa)&&_0x2cb95a['xlink:href']&&(_0x2cb95a[_0x19205f(0x210)]=_0x2cb95a[_0x19205f(0x210)]+_0x1cfdbe[_0x19205f(0x1e2)]),Object['entries'](_0x2cb95a)[_0x19205f(0x24e)](([_0x8587fa,_0x56d0e6])=>{const _0x34937e=_0x19205f;typeof _0x56d0e6==_0x34937e(0x1f9)&&(_0x2cb95a[_0x8587fa]=_0x56d0e6[_0x34937e(0x242)](/url\(#(.*)\)/,_0x34937e(0x1d3)+_0x1cfdbe['idSuffix']+')'));})),_0x2cb95a;}function Ee(_0x105694,_0x3a99c0){const _0x3f4690=_0x57791f;var _0x409d84;const {defIds:_0xafe833}=_0x3a99c0;return!_0xafe833||_0xafe833[_0x3f4690(0x1d7)]===0x0?_0x105694:_0x105694['tag']===_0x3f4690(0x1ef)&&((_0x409d84=_0x105694[_0x3f4690(0x23d)])!=null&&_0x409d84['length'])?{..._0x105694,'children':_0x105694[_0x3f4690(0x23d)]['map'](_0x115808=>typeof _0x115808[_0x3f4690(0x255)]['id']==_0x3f4690(0x1f9)&&_0xafe833&&_0xafe833[_0x3f4690(0x21e)](_0x115808[_0x3f4690(0x255)]['id'])?{..._0x115808,'attrs':{..._0x115808['attrs'],'id':_0x115808[_0x3f4690(0x255)]['id']+_0x3a99c0['idSuffix']}}:_0x115808)}:_0x105694;}function Oe(){const _0x4b531c=_0x57791f;return Math[_0x4b531c(0x236)]()['toString'](0x24)[_0x4b531c(0x1ed)](0x2,0x8);}k[_0x57791f(0x224)]=_0x57791f(0x1f8);const we={'tag':_0x57791f(0x20d),'attrs':{'xmlns':_0x57791f(0x1e6),'fill':_0x57791f(0x1fd),'viewBox':_0x57791f(0x22e),'width':'1em','height':_0x57791f(0x249)},'children':[{'tag':'path','attrs':{'fill':_0x57791f(0x247),'d':_0x57791f(0x253)}},{'tag':_0x57791f(0x22d),'attrs':{'fill':'currentColor','d':_0x57791f(0x1f2),'fillRule':_0x57791f(0x260),'clipRule':_0x57791f(0x260)}}]},W=_0x26d85a(function(_0x26ab41,_0x4185bd){const _0x17c253=_0x57791f;return _0x3b748f(k,Object[_0x17c253(0x202)]({},_0x26ab41,{'id':_0x17c253(0x208),'ref':_0x4185bd,'icon':we}));});W['displayName']=_0x57791f(0x22a);class L extends _0x586517{constructor(){const _0x2d4bf6=_0x57791f;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x2d4bf6(0x209),new Set());}['registerSharedOperation'](_0x1b1067){const _0x43a568=_0x57791f;return this[_0x43a568(0x1df)][_0x43a568(0x1dd)](_0x1b1067),_0x2b6ac2(()=>this[_0x43a568(0x1df)][_0x43a568(0x1f4)](_0x1b1067));}[_0x57791f(0x25f)](_0x4d633f){const _0x226e87=_0x57791f;return this[_0x226e87(0x209)][_0x226e87(0x1dd)](_0x4d633f),_0x2b6ac2(()=>this['_reporters'][_0x226e87(0x1f4)](_0x4d633f));}[_0x57791f(0x216)](_0x3487d1){const _0x10a86d=_0x57791f;return this[_0x10a86d(0x1df)]['has'](_0x3487d1);}[_0x57791f(0x1d8)](_0x44d1b4){const _0xa84eab=_0x57791f;return Array['from'](this[_0xa84eab(0x209)])[_0xa84eab(0x1d4)](_0x9fe3ae=>_0x9fe3ae(_0x44d1b4));}}var Ne=Object[_0x57791f(0x1ee)],Y=(_0x501797,_0x580d94,_0x5c5604,_0x4e5ebe)=>{const _0x1ee547=_0x57791f;for(var _0x4b0b6b=_0x4e5ebe>0x1?void 0x0:_0x4e5ebe?Ne(_0x580d94,_0x5c5604):_0x580d94,_0x2c1293=_0x501797[_0x1ee547(0x1d7)]-0x1,_0x2ec4e9;_0x2c1293>=0x0;_0x2c1293--)(_0x2ec4e9=_0x501797[_0x2c1293])&&(_0x4b0b6b=_0x2ec4e9(_0x4b0b6b)||_0x4b0b6b);return _0x4b0b6b;},_=(_0x5859bc,_0x45dc7f)=>(_0xda0ba5,_0x2117ec)=>_0x45dc7f(_0xda0ba5,_0x2117ec,_0x5859bc);let S=class extends _0xaf6b52{constructor(_0x18071a,_0x562bab,_0x2ae5e7){const _0x48af8b=_0x57791f;super(),u(this,_0x48af8b(0x217),new Map()),(this[_0x48af8b(0x250)]=_0x18071a,this['_injector']=_0x562bab,this[_0x48af8b(0x213)]=_0x2ae5e7,this[_0x48af8b(0x1e8)]());}async[_0x57791f(0x1d9)](_0x3397ba){const _0x58e122=_0x57791f;return this[_0x58e122(0x217)][_0x58e122(0x274)](_0x3397ba)||await this[_0x58e122(0x1de)](_0x3397ba),this[_0x58e122(0x217)][_0x58e122(0x203)](_0x3397ba);}['getLiveShareCoordinatorSync'](_0x2c80ef){const _0x55bfad=_0x57791f;var _0x1800c3;return(_0x1800c3=this[_0x55bfad(0x217)][_0x55bfad(0x203)](_0x2c80ef))!=null?_0x1800c3:null;}[_0x57791f(0x1e8)](){const _0x471f78=_0x57791f;this[_0x471f78(0x250)][_0x471f78(0x23e)](_0x469e4a[_0x471f78(0x232)])[_0x471f78(0x1f3)](_0x11a52f(this[_0x471f78(0x20b)]))[_0x471f78(0x245)](async _0x53022b=>{const _0x587980=_0x471f78,_0x31fa8c=_0x53022b[_0x587980(0x244)]();this[_0x587980(0x217)][_0x587980(0x274)](_0x31fa8c)||this['_startLiveShareCoordinator'](_0x31fa8c);}),this[_0x471f78(0x250)][_0x471f78(0x20a)](_0x469e4a[_0x471f78(0x232)])[_0x471f78(0x1f3)](_0x11a52f(this['dispose$']))['subscribe'](_0x2a0573=>{const _0x31f758=_0x471f78,_0x47335f=_0x2a0573['getUnitId'](),_0x5bf655=this[_0x31f758(0x217)]['get'](_0x47335f);_0x5bf655==null||_0x5bf655[_0x31f758(0x25d)]();});}async[_0x57791f(0x1de)](_0x6158e6){const _0x4db9b7=_0x57791f,_0x52a323=await this['_collabSessionService']['requireSession'](_0x6158e6),_0x5d2325=this[_0x4db9b7(0x26b)][_0x4db9b7(0x20c)](N,_0x6158e6,_0x52a323);return _0x5d2325[_0x4db9b7(0x265)](),this[_0x4db9b7(0x217)]['set'](_0x6158e6,_0x5d2325),_0x5d2325;}};S=Y([_(0x0,_0x50f749),_(0x1,_0x58c47f(_0x337fab)),_(0x2,_0x58c47f(_0x208377))],S);var c=(_0x38cf86=>(_0x38cf86[_0x57791f(0x23b)]=_0x57791f(0x1fc),_0x38cf86[_0x57791f(0x1f0)]=_0x57791f(0x264),_0x38cf86[_0x57791f(0x26c)]=_0x57791f(0x227),_0x38cf86[_0x57791f(0x26a)]=_0x57791f(0x229),_0x38cf86['PRESENTING']='presenting',_0x38cf86))(c||{});const Ce=_0x57791f(0x24c),De=0xc8;let N=class extends _0xaf6b52{constructor(_0xb77f01,_0x43248f,_0x226202,_0x29b246,_0x58ba1d){const _0x155ea7=_0x57791f;super(),u(this,'_status$',new _0x27311b(_0x155ea7(0x264))),u(this,'status$',this[_0x155ea7(0x1d5)]['asObservable']()),u(this,_0x155ea7(0x1e8),!0x1),u(this,_0x155ea7(0x215),null),u(this,_0x155ea7(0x21f),null),(this[_0x155ea7(0x205)]=_0xb77f01,this[_0x155ea7(0x271)]=_0x43248f,this[_0x155ea7(0x211)]=_0x226202,this[_0x155ea7(0x251)]=_0x29b246,this['_commandService']=_0x58ba1d);}get[_0x57791f(0x222)](){const _0x500735=_0x57791f;return this[_0x500735(0x1d5)]['getValue']();}['dispose'](){const _0x3b6f09=_0x57791f;var _0x46f65e;(_0x46f65e=this[_0x3b6f09(0x215)])==null||_0x46f65e[_0x3b6f09(0x25d)](),this[_0x3b6f09(0x1d5)][_0x3b6f09(0x263)](_0x3b6f09(0x264)),this['_status$']['complete']();}[_0x57791f(0x272)](){const _0x460aa6=_0x57791f;return this[_0x460aa6(0x222)];}[_0x57791f(0x265)](){const _0x3a7500=_0x57791f;this[_0x3a7500(0x1e8)]||(this[_0x3a7500(0x1e8)]=!0x0,this[_0x3a7500(0x271)][_0x3a7500(0x21a)]['pipe'](_0x11a52f(this[_0x3a7500(0x20b)]))[_0x3a7500(0x245)](_0x4e0107=>{const _0x425eea=_0x3a7500;switch(_0x4e0107){case _0x9d842f[_0x425eea(0x23b)]:this[_0x425eea(0x234)]();break;case _0x9d842f[_0x425eea(0x206)]:this['_handleOnline']();break;}}),this[_0x3a7500(0x271)][_0x3a7500(0x1da)][_0x3a7500(0x1f3)](_0x11a52f(this['dispose$']))[_0x3a7500(0x245)](_0x5e777a=>{const _0x1cb0d7=_0x3a7500,{eventID:_0x4093a2}=_0x5e777a;switch(_0x4093a2){case _0x56ba98[_0x1cb0d7(0x258)]:this[_0x1cb0d7(0x252)](_0x5e777a);break;case _0x56ba98['LIVESHARE_OPERATION']:this[_0x1cb0d7(0x1e3)](_0x5e777a);break;case _0x56ba98[_0x1cb0d7(0x22c)]:this['_handleTerminate']();break;case _0x56ba98[_0x1cb0d7(0x1f5)]:this['_handleNewChangeSets'](_0x5e777a);break;}}));}[_0x57791f(0x201)](){const _0x1bf0b4=_0x57791f;this[_0x1bf0b4(0x271)][_0x1bf0b4(0x1d6)]({'eventID':_0x56ba98['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x1bf0b4(0x205)],'userID':this['_collabSession'][_0x1bf0b4(0x262)]()}},this[_0x1bf0b4(0x205)]);}[_0x57791f(0x22b)](){const _0x14a667=_0x57791f;this['_status']===_0x14a667(0x276)&&(this[_0x14a667(0x1d5)]['next'](_0x14a667(0x264)),this['_collabSession'][_0x14a667(0x1d6)]({'eventID':_0x56ba98['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x14a667(0x205)]}},this[_0x14a667(0x205)]));}[_0x57791f(0x248)](){const _0x36c2a0=_0x57791f;this['_status']==='not-following'&&(this[_0x36c2a0(0x1d5)]['next'](_0x36c2a0(0x227)),this[_0x36c2a0(0x214)]());}[_0x57791f(0x25a)](){const _0x2dcd80=_0x57791f;this[_0x2dcd80(0x222)]===_0x2dcd80(0x227)&&this[_0x2dcd80(0x1d2)]();}[_0x57791f(0x252)](_0x260329){const _0x59ca07=_0x57791f,{presenter:_0x17c45d}=_0x260329[_0x59ca07(0x1f6)],_0x3124c9=this[_0x59ca07(0x271)]['getMemberID']();this[_0x59ca07(0x21f)]=_0x17c45d,_0x17c45d===_0x3124c9?(this[_0x59ca07(0x1d2)](),this[_0x59ca07(0x20e)]()):this[_0x59ca07(0x222)]!=='not-following'&&(this[_0x59ca07(0x266)](),this[_0x59ca07(0x214)]());}['_fetchOperations'](){const _0x31b09a=_0x57791f,_0x46c789={'eventID':_0x56ba98['LIVESHARE_FETCH_OPERATIONS']};this[_0x31b09a(0x271)][_0x31b09a(0x1d6)](_0x46c789,this[_0x31b09a(0x205)]);}[_0x57791f(0x1ff)](){const _0x526e9e=_0x57791f;this[_0x526e9e(0x21f)]=null,this['_status']!==_0x526e9e(0x276)&&this[_0x526e9e(0x204)]();}[_0x57791f(0x225)](_0x7f7933){const _0x22493c=_0x57791f;if(this[_0x22493c(0x222)]===_0x22493c(0x227)&&this['_presenter']===_0x7f7933[_0x22493c(0x1f6)][_0x22493c(0x267)]){const _0x4be5be=_0x2b0cec(_0x7f7933['data'])['mutations']['reverse']()['find'](_0x5346ab=>_0x5346ab['id']===_0x3cb9ca['id']);if(_0x4be5be){const _0x500024=_0x4be5be[_0x22493c(0x240)][_0x22493c(0x246)],_0x443ae0=_0x4be5be['params'][_0x22493c(0x21b)]['id'];setTimeout(()=>{const _0xab352c=_0x22493c;this[_0xab352c(0x239)][_0xab352c(0x25b)](_0x2d9b0e['id'],{'unitId':_0x500024,'subUnitId':_0x443ae0},{'fromCollab':!0x0});});}}}[_0x57791f(0x20e)](){const _0x4615e5=_0x57791f;this['_status$']['next'](_0x4615e5(0x276));const _0x532596=new Map(),_0x6c75af=this['_commandDisposable']=new _0x3803ff();_0x6c75af[_0x4615e5(0x1dd)](_0x2b6ac2(()=>{const _0x537c25=_0x4615e5;_0x532596[_0x537c25(0x24e)](_0x2dc73d=>_0x2dc73d[_0x537c25(0x1ec)]()),_0x532596['clear']();})),_0x6c75af['add'](this['_commandService'][_0x4615e5(0x26f)](_0x8dad7e=>{const _0x55e78e=_0x4615e5;var _0x1be19a;if(_0x8dad7e['type']!==_0x3018fa['OPERATION']||!this[_0x55e78e(0x251)][_0x55e78e(0x216)](_0x8dad7e['id']))return;const {id:_0xa0e940}=_0x8dad7e;let _0x2ab0ee;_0x532596[_0x55e78e(0x274)](_0xa0e940)?_0x2ab0ee=_0x532596[_0x55e78e(0x203)](_0xa0e940):(_0x2ab0ee=new _0x1fa751(),_0x532596[_0x55e78e(0x23f)](_0xa0e940,_0x2ab0ee),_0x2ab0ee[_0x55e78e(0x1f3)](_0x412eba((_0x1be19a=this[_0x55e78e(0x211)][_0x55e78e(0x231)](Ce))!=null?_0x1be19a:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x55e78e(0x245)](_0x171e6c=>{const _0x5bfaef=_0x55e78e;this['_collabSession'][_0x5bfaef(0x1d6)]({'eventID':_0x56ba98[_0x5bfaef(0x226)],'data':{'unitID':this[_0x5bfaef(0x205)],'operations':{[_0x171e6c['id']]:{'id':_0x171e6c['id'],'params':JSON[_0x5bfaef(0x241)](_0x171e6c[_0x5bfaef(0x240)])}}}},this['_unitID']);})),_0x2ab0ee[_0x55e78e(0x263)](_0x8dad7e);})),this[_0x4615e5(0x251)][_0x4615e5(0x1d8)](this[_0x4615e5(0x205)])[_0x4615e5(0x24e)](_0x31ec34=>this[_0x4615e5(0x271)]['send']({'eventID':_0x56ba98['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x31ec34['id']]:{'id':_0x31ec34['id'],'params':JSON[_0x4615e5(0x241)](_0x31ec34['params'])}}}},this[_0x4615e5(0x205)]));}[_0x57791f(0x266)](){const _0x382ee7=_0x57791f;var _0xb7c9ca;this['_status$'][_0x382ee7(0x263)](_0x382ee7(0x264)),(_0xb7c9ca=this[_0x382ee7(0x215)])==null||_0xb7c9ca[_0x382ee7(0x25d)](),this[_0x382ee7(0x215)]=null;}[_0x57791f(0x214)](){const _0x1a772e=_0x57791f;var _0x11c4fe;(_0x11c4fe=this[_0x1a772e(0x215)])==null||_0x11c4fe['dispose'](),this[_0x1a772e(0x1d5)][_0x1a772e(0x263)]('following');}[_0x57791f(0x204)](){const _0x2fe777=_0x57791f;var _0x27c535;this['_status$']['next']('idle'),(_0x27c535=this[_0x2fe777(0x215)])==null||_0x27c535[_0x2fe777(0x25d)](),this[_0x2fe777(0x215)]=null;}[_0x57791f(0x1d2)](){const _0x127a30=_0x57791f;var _0x19c61a;this[_0x127a30(0x1d5)][_0x127a30(0x263)](_0x127a30(0x229)),(_0x19c61a=this['_commandDisposable'])==null||_0x19c61a[_0x127a30(0x25d)]();}[_0x57791f(0x1e3)](_0x8d7c5a){const _0x11204e=_0x57791f;if(['presenting',_0x11204e(0x229),_0x11204e(0x1fc)][_0x11204e(0x21e)](this[_0x11204e(0x222)])||!_0x8d7c5a[_0x11204e(0x1f6)]['presenter']||_0x8d7c5a[_0x11204e(0x1f6)]['presenter']===this[_0x11204e(0x271)][_0x11204e(0x262)]())return;this[_0x11204e(0x222)]===_0x11204e(0x264)&&this[_0x11204e(0x214)]();const _0x1da320=_0x8d7c5a[_0x11204e(0x1f6)][_0x11204e(0x1e0)];Object['values'](_0x1da320)[_0x11204e(0x24e)](_0xf184b6=>{const _0x6e66e5=_0x11204e;this[_0x6e66e5(0x239)][_0x6e66e5(0x25b)](_0xf184b6['id'],_0xf184b6[_0x6e66e5(0x240)]?JSON[_0x6e66e5(0x207)](_0xf184b6[_0x6e66e5(0x240)]):null,{'fromCollab':!0x0});});}[_0x57791f(0x234)](){const _0x58f265=_0x57791f;var _0x44ee50;this[_0x58f265(0x1d5)][_0x58f265(0x263)](_0x58f265(0x1fc)),(_0x44ee50=this[_0x58f265(0x215)])==null||_0x44ee50['dispose']();}[_0x57791f(0x1ea)](){const _0x26abbb=_0x57791f;this[_0x26abbb(0x1d5)]['next'](_0x26abbb(0x264)),this['_fetchOperations']();}};N=Y([_(0x2,_0x1a7034),_(0x3,_0x58c47f(L)),_(0x4,_0x4ad104)],N);function Le(){const _0x351e8d=_0x57791f,_0x4a41c9=_0x173f99(S),_0x528556=_0x173f99(_0x50f749),_0x59b61c=_0xa17243(()=>_0x528556[_0x351e8d(0x268)](_0x469e4a[_0x351e8d(0x232)]),void 0x0,!0x1,[]),[_0x55ed1f,_0x110e5a]=_0x4faa64(null),[_0x162232,_0x11f8a1]=_0x4faa64(c['IDLE']),_0x2a11de=_0x1d2dfb(null);return _0x4695ab(()=>(_0x59b61c&&_0x4a41c9['getLiveShareCoordinator'](_0x59b61c[_0x351e8d(0x244)]())[_0x351e8d(0x275)](_0x2b9a46=>{const _0x4fa037=_0x351e8d;_0x110e5a(_0x2b9a46),_0x2a11de[_0x4fa037(0x228)]=_0x2b9a46['status$'][_0x4fa037(0x245)](_0x2a3f3c=>{_0x11f8a1(_0x2a3f3c);});}),()=>{const _0x554cef=_0x351e8d;var _0xda6676;(_0xda6676=_0x2a11de[_0x554cef(0x228)])==null||_0xda6676['unsubscribe'](),_0x2a11de['current']=null;}),[_0x59b61c,_0x4a41c9]),_0x55ed1f?_0x47899f(_0x4832fe,{'align':_0x351e8d(0x238),'disabled':_0x162232===c['OFFLINE'],'className':_0x351e8d(0x254),'overlay':_0x47899f(Re,{'status':_0x162232,'coordinator':_0x55ed1f}),'children':_0x47899f(_0x351e8d(0x219),{'className':_0x183b25('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x162232===c[_0x351e8d(0x23b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x162232!==c['OFFLINE']}),'type':_0x351e8d(0x219),'children':_0x47899f(W,{'className':_0x351e8d(0x256)})})}):null;}function Re(_0x483c74){const _0x123a3b=_0x57791f,{status:_0x36e11f,coordinator:_0x40aa0e}=_0x483c74;switch(_0x36e11f){case c['IDLE']:return _0x47899f($e,{'coordinator':_0x40aa0e});case c[_0x123a3b(0x26c)]:return _0x47899f(xe,{'coordinator':_0x40aa0e});case c['NOT_FOLLOWING']:return _0x47899f(Pe,{'coordinator':_0x40aa0e});case c[_0x123a3b(0x23b)]:return _0x47899f(Te,{});case c[_0x123a3b(0x218)]:return _0x47899f(Ae,{'coordinator':_0x40aa0e});default:return null;}}function $e(_0x2ec0b7){const _0x592010=_0x57791f,{coordinator:_0x56743c}=_0x2ec0b7;return _0x585bf4(_0x1aad73,{'children':[_0x47899f(_0x592010(0x277),{'className':_0x592010(0x26e),'children':_0x592010(0x1e1)}),_0x47899f(_0x16a64c,{'onClick':()=>_0x56743c[_0x592010(0x201)](),'children':'Start'})]});}function xe(_0x1d41fb){const _0x1b673f=_0x57791f,{coordinator:_0x5a53bc}=_0x1d41fb;return _0x585bf4(_0x1aad73,{'children':[_0x47899f(_0x1b673f(0x277),{'className':_0x1b673f(0x26e),'children':_0x1b673f(0x1fe)}),_0x47899f(_0x16a64c,{'onClick':()=>_0x5a53bc['stopFollowing'](),'children':_0x1b673f(0x1e7)})]});}function _0x47de(){const _0x3c95d4=['override','_mountLiveShare','_status','live-share.config','displayName','_handleNewChangeSets','LIVESHARE_OPERATION','following','current','not-following','LiveShareIcon','stopPresenting','LIVESHARE_TERMINATE','path','0\x200\x2017\x2017','Stop\x20presenting','colorChannel1','getConfig','UNIVER_SHEET','disposeWithMe','_handleOffline','4TJLgok','random','registerComponent','end','_commandService','1008753GEvfoZ','OFFLINE','registerSharedOperation','children','getTypeOfUnitAdded$','set','params','stringify','replace','HEADER_MENU','getUnitId','subscribe','unitId','currentColor','startFollowing','1em','11090430IlUFYP','defineProperty','SAME_OPERATION_SHARE_INTERVAL','261441NQGPMk','forEach','symbol','_univerInstanceService','_liveShareService','_handleNewHost','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','univer-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','attrs','univer-size-4','You\x27are\x20offline.','LIVESHARE_NEW_HOST','defIds','stopFollowing','executeCommand','11VJSatq','dispose','UNIVER_UNKNOWN','registerInitialStateReporter','evenodd','12kKvitr','getMemberID','next','idle','init','_stopPresenting','memberID','getCurrentTypeOfUnit$','21161zGZjmg','NOT_FOLLOWING','_injector','FOLLOWING','text','univer-mb-3\x20univer-w-full\x20univer-text-sm','onCommandExecuted','_config','_collabSession','getStatus','515DXQZWA','has','then','presenting','div','_stopFollowing','url(#$1','map','_status$','send','length','getInitialStates','getLiveShareCoordinator','event$','_uiPartsService','onStarting','add','_startLiveShareCoordinator','_sharedOperations','operations','Present\x20this\x20document','idSuffix','_handleOperation','856IFfoTP','mask','http://www.w3.org/2000/svg','Stop\x20following','_init','1813200yMlxFR','_handleOnline','fill','complete','substring','getOwnPropertyDescriptor','defs','IDLE','You\x27re\x20not\x20following\x20the\x20presenter','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','pipe','delete','NEW_CHANGESETS','data','entries','UniverIcon','string','use','You\x27re\x20presenting\x20the\x20document','offline','none','You\x27re\x20following\x20the\x20presenter','_handleTerminate','tag','tryStartPresenting','assign','get','_beIdle','_unitID','ONLINE','parse','live-share-icon','_reporters','getTypeOfUnitDisposed$','dispose$','createInstance','svg','_startPresenting','type','xlink:href','_configService','onRendered','_collabSessionService','_startFollowing','_commandDisposable','shouldShareOperation','_entities','PRESENTING','button','sessionStatus$','sheet','9677620iQvyAZ','UNIVER_LIVE_SHARE_PLUGIN','includes','_presenter'];_0x47de=function(){return _0x3c95d4;};return _0x47de();}function Pe(_0x1a8d45){const _0x2352cf=_0x57791f,{coordinator:_0x5ee68d}=_0x1a8d45;return _0x585bf4(_0x1aad73,{'children':[_0x47899f('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2352cf(0x1f1)}),_0x47899f(_0x16a64c,{'variant':_0x2352cf(0x26d),'onClick':()=>_0x5ee68d['startFollowing'](),'children':'Start\x20following'})]});}function Ae(_0x1cf91f){const _0x17f26e=_0x57791f,{coordinator:_0x24d478}=_0x1cf91f;return _0x585bf4(_0x1aad73,{'children':[_0x47899f(_0x17f26e(0x277),{'className':_0x17f26e(0x26e),'children':_0x17f26e(0x1fb)}),_0x47899f(_0x16a64c,{'variant':'default','onClick':()=>_0x24d478[_0x17f26e(0x22b)](),'children':_0x17f26e(0x22f)})]});}function Te(){const _0x4a2696=_0x57791f;return _0x47899f(_0x1aad73,{'children':_0x4a2696(0x257)});}var Fe=Object[_0x57791f(0x1ee)],He=(_0x4635cd,_0x152307,_0x54cc90,_0x9b6397)=>{for(var _0x165b97=_0x9b6397>0x1?void 0x0:_0x9b6397?Fe(_0x152307,_0x54cc90):_0x152307,_0x246d8c=_0x4635cd['length']-0x1,_0x2cd7bb;_0x246d8c>=0x0;_0x246d8c--)(_0x2cd7bb=_0x4635cd[_0x246d8c])&&(_0x165b97=_0x2cd7bb(_0x165b97)||_0x165b97);return _0x165b97;},A=(_0x5e26b1,_0x32acd7)=>(_0x5d1e97,_0x46f03e)=>_0x32acd7(_0x5d1e97,_0x46f03e,_0x5e26b1);function _0x2c32(_0x5a0cf3,_0x4af835){const _0x47de18=_0x47de();return _0x2c32=function(_0x2c32c3,_0x475c70){_0x2c32c3=_0x2c32c3-0x1d2;let _0x2d8eb4=_0x47de18[_0x2c32c3];return _0x2d8eb4;},_0x2c32(_0x5a0cf3,_0x4af835);}let m=class extends _0x586517{constructor(_0x5bc29f,_0x669945){const _0x492f2f=_0x57791f;super(),this[_0x492f2f(0x26b)]=_0x5bc29f,this[_0x492f2f(0x1db)]=_0x669945,this[_0x492f2f(0x221)]();}[_0x57791f(0x221)](){const _0x1961b3=_0x57791f;this[_0x1961b3(0x233)](this['_uiPartsService'][_0x1961b3(0x237)](_0x4296f0[_0x1961b3(0x243)],()=>_0x2e917a(Le,this[_0x1961b3(0x26b)])));}};m=He([A(0x0,_0x58c47f(_0x337fab)),A(0x1,_0x3ddec6)],m);const ye=_0x57791f(0x223),T={};var Ue=Object[_0x57791f(0x1ee)],Ve=(_0x4c05fd,_0x521b7d,_0x24d422,_0x46ba0d)=>{for(var _0x1082e2=_0x46ba0d>0x1?void 0x0:_0x46ba0d?Ue(_0x521b7d,_0x24d422):_0x521b7d,_0x52066d=_0x4c05fd['length']-0x1,_0x50cd03;_0x52066d>=0x0;_0x52066d--)(_0x50cd03=_0x4c05fd[_0x52066d])&&(_0x1082e2=_0x50cd03(_0x1082e2)||_0x1082e2);return _0x1082e2;},je=(_0x41c6af,_0x58d3f1)=>(_0x264d1b,_0x5b1415)=>_0x58d3f1(_0x264d1b,_0x5b1415,_0x41c6af);let I=class extends _0x586517{constructor(_0x1b6709){const _0x4f5b89=_0x57791f;super(),this[_0x4f5b89(0x251)]=_0x1b6709,this[_0x4f5b89(0x1e8)]();}['_init'](){const _0x37f275=_0x57791f;[_0x5ce85d['id'],_0x4c3e16['id'],_0x2d9b0e['id']][_0x37f275(0x24e)](_0x52bd69=>{const _0x444305=_0x37f275;this['disposeWithMe'](this[_0x444305(0x251)][_0x444305(0x23c)](_0x52bd69));});}};I=Ve([je(0x0,_0x58c47f(L))],I);var Me=Object[_0x57791f(0x24b)],ke=Object[_0x57791f(0x1ee)],Ge=(_0x8be206,_0x43c5eb,_0x4b3116)=>_0x43c5eb in _0x8be206?Me(_0x8be206,_0x43c5eb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b3116}):_0x8be206[_0x43c5eb]=_0x4b3116,We=(_0x56d12d,_0x10fa63,_0x1e8bcd,_0xd101f)=>{const _0x24fe95=_0x57791f;for(var _0xc4593f=_0xd101f>0x1?void 0x0:_0xd101f?ke(_0x10fa63,_0x1e8bcd):_0x10fa63,_0x29ad42=_0x56d12d[_0x24fe95(0x1d7)]-0x1,_0x4b0411;_0x29ad42>=0x0;_0x29ad42--)(_0x4b0411=_0x56d12d[_0x29ad42])&&(_0xc4593f=_0x4b0411(_0xc4593f)||_0xc4593f);return _0xc4593f;},F=(_0x52cd2e,_0x205c08)=>(_0x2d47ea,_0xae9b2e)=>_0x205c08(_0x2d47ea,_0xae9b2e,_0x52cd2e),B=(_0x3a9419,_0x45ee8a,_0xe1e9ef)=>Ge(_0x3a9419,typeof _0x45ee8a!=_0x57791f(0x24f)?_0x45ee8a+'':_0x45ee8a,_0xe1e9ef);const Ye=_0x57791f(0x21d);let b=class extends _0x288486{constructor(_0x4e3053=T,_0x1c7d2b,_0x447449){const _0x5b6543=_0x57791f;super(),this[_0x5b6543(0x270)]=_0x4e3053,this[_0x5b6543(0x26b)]=_0x1c7d2b,this[_0x5b6543(0x211)]=_0x447449;const {..._0x2c33b4}=_0x2293ae({},T,this[_0x5b6543(0x270)]);this[_0x5b6543(0x211)]['setConfig'](ye,_0x2c33b4);}[_0x57791f(0x1dc)](){const _0x2ea31a=_0x57791f;_0x1849c5(this['_injector'],_0x40e0b3([[L],[S],[I],[m]],this['_config'][_0x2ea31a(0x220)])),_0x5b1334(this['_injector'],[[I]]);}[_0x57791f(0x212)](){const _0x7498d=_0x57791f;_0x5b1334(this[_0x7498d(0x26b)],[[m]]);}};B(b,_0x57791f(0x20f),_0x469e4a[_0x57791f(0x25e)]),B(b,'pluginName',Ye),b=We([_0x54389d(_0x28e03d),F(0x1,_0x58c47f(_0x337fab)),F(0x2,_0x1a7034)],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 _0x2ea6be=_0x49cd;(function(_0x58954a,_0x8a898d){const _0x333a9e=_0x49cd,_0x2f8dbb=_0x58954a();while(!![]){try{const _0x13ce3c=parseInt(_0x333a9e(0xcb))/0x1*(-parseInt(_0x333a9e(0xa6))/0x2)+parseInt(_0x333a9e(0x122))/0x3*(parseInt(_0x333a9e(0xc0))/0x4)+-parseInt(_0x333a9e(0xcd))/0x5+-parseInt(_0x333a9e(0x120))/0x6+parseInt(_0x333a9e(0xa9))/0x7*(parseInt(_0x333a9e(0x117))/0x8)+parseInt(_0x333a9e(0xa2))/0x9*(-parseInt(_0x333a9e(0x11d))/0xa)+parseInt(_0x333a9e(0x101))/0xb;if(_0x13ce3c===_0x8a898d)break;else _0x2f8dbb['push'](_0x2f8dbb['shift']());}catch(_0x37dbef){_0x2f8dbb['push'](_0x2f8dbb['shift']());}}}(_0x15fb,0x6155b));var J=Object[_0x2ea6be(0x13a)],K=(_0x2e11b6,_0x28a3df,_0x337b48)=>_0x28a3df in _0x2e11b6?J(_0x2e11b6,_0x28a3df,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x337b48}):_0x2e11b6[_0x28a3df]=_0x337b48,u=(_0x3b053b,_0x202f46,_0x5f44bf)=>K(_0x3b053b,typeof _0x202f46!=_0x2ea6be(0xc3)?_0x202f46+'':_0x202f46,_0x5f44bf);import{Disposable as _0x12c3fa,toDisposable as _0x584876,IUniverInstanceService as _0x3b7b43,Inject as _0x45fbec,Injector as _0x399810,IConfigService as _0x1df196,ICommandService as _0x3baf05,RxDisposable as _0x1dfc47,UniverInstanceType as _0x2e2d5f,DisposableCollection as _0x10d2f7,CommandType as _0x80b771,DependentOn as _0x13786b,Plugin as _0x2ba041,merge as _0x490103,registerDependencies as _0x1521f6,mergeOverrideWithDependencies as _0x22600f,touchDependencies as _0x8311ba}from'@univerjs/core';import{useDependency as _0x9da0e7,useObservable as _0x3c7d62,IUIPartsService as _0x375885,BuiltInUIPart as _0x2d447a,connectInjector as _0x349ec9}from'@univerjs/ui';import{jsx as _0x1bf9fb,jsxs as _0x37edb3,Fragment as _0x3e40e6}from'react/jsx-runtime';function _0x49cd(_0x2c8a31,_0x4a3f47){const _0x15fb22=_0x15fb();return _0x49cd=function(_0x49cd6b,_0xcfad4){_0x49cd6b=_0x49cd6b-0x98;let _0x39c34a=_0x15fb22[_0x49cd6b];return _0x39c34a;},_0x49cd(_0x2c8a31,_0x4a3f47);}import{Dropdown as _0x40b541,clsx as _0x27fdaa,Button as _0x2a847b}from'@univerjs/design';import{useRef as _0x1503e0,createElement as _0x11d6cb,forwardRef as _0x417636,useState as _0x1207e6,useEffect as _0x2cb5e3}from'react';import{CollaborationEvent as _0x42c5fe,parseProtocolChangeset as _0x1346fe}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xbc008d,SessionStatus as _0x1c20d9,UniverCollaborationClientPlugin as _0x3a5e2e}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4c5605,SetWorksheetActiveOperation as _0x3a2a1b}from'@univerjs/sheets';import{BehaviorSubject as _0x157a6a,Subject as _0x31dba2}from'rxjs';import{takeUntil as _0x1c8b29,throttleTime as _0x9876f1}from'rxjs/operators';import{SetZoomRatioOperation as _0x1aa70f,SetScrollOperation as _0x315c38}from'@univerjs/sheets-ui';function k({ref:_0x16f73a,..._0x8cdf57}){const _0x295e99=_0x2ea6be,{icon:_0x2cff5b,id:_0xfcee0f,className:_0x4af074,extend:_0x41c0d1,..._0x4bb730}=_0x8cdf57,_0xe13769=(_0x295e99(0xba)+_0xfcee0f+'\x20'+(_0x4af074||''))[_0x295e99(0x12c)](),_0x567818=_0x1503e0('_'+Oe());return G(_0x2cff5b,''+_0xfcee0f,{'defIds':_0x2cff5b['defIds'],'idSuffix':_0x567818[_0x295e99(0x111)]},{'ref':_0x16f73a,'className':_0xe13769,..._0x4bb730},_0x41c0d1);}function G(_0x39c9d5,_0x484751,_0xa2867e,_0x1afee0,_0xfbc5d2){const _0x397b7a=_0x2ea6be;return _0x11d6cb(_0x39c9d5['tag'],{'key':_0x484751,...be(_0x39c9d5,_0xa2867e,_0xfbc5d2),..._0x1afee0},(Ee(_0x39c9d5,_0xa2867e)['children']||[])['map']((_0x1d7125,_0x553b20)=>G(_0x1d7125,_0x484751+'-'+_0x39c9d5[_0x397b7a(0xb5)]+'-'+_0x553b20,_0xa2867e,void 0x0,_0xfbc5d2)));}function be(_0x505488,_0x58a222,_0xbe6184){const _0x4c9f0f=_0x2ea6be,_0x4a84fc={..._0x505488[_0x4c9f0f(0x9b)]};_0xbe6184!=null&&_0xbe6184[_0x4c9f0f(0x115)]&&_0x4a84fc[_0x4c9f0f(0xd2)]===_0x4c9f0f(0x115)&&(_0x4a84fc['fill']=_0xbe6184[_0x4c9f0f(0x115)]),_0x505488[_0x4c9f0f(0xb5)]===_0x4c9f0f(0x9d)&&_0x4a84fc['id']&&(_0x4a84fc['id']=_0x4a84fc['id']+_0x58a222[_0x4c9f0f(0xf9)]),Object['entries'](_0x4a84fc)[_0x4c9f0f(0x118)](([_0x3d9ea5,_0x5b15b0])=>{const _0x4850ae=_0x4c9f0f;_0x3d9ea5===_0x4850ae(0x9d)&&typeof _0x5b15b0=='string'&&(_0x4a84fc[_0x3d9ea5]=_0x5b15b0[_0x4850ae(0x131)](/url\(#(.*)\)/,_0x4850ae(0xe5)+_0x58a222[_0x4850ae(0xf9)]+')'));});const {defIds:_0x1d561a}=_0x58a222;return!_0x1d561a||_0x1d561a['length']===0x0||(_0x505488[_0x4c9f0f(0xb5)]===_0x4c9f0f(0xfd)&&_0x4a84fc[_0x4c9f0f(0xd7)]&&(_0x4a84fc['xlink:href']=_0x4a84fc['xlink:href']+_0x58a222[_0x4c9f0f(0xf9)]),Object[_0x4c9f0f(0x128)](_0x4a84fc)[_0x4c9f0f(0x118)](([_0x4b03e4,_0x2d0de4])=>{const _0x4118e7=_0x4c9f0f;typeof _0x2d0de4==_0x4118e7(0x103)&&(_0x4a84fc[_0x4b03e4]=_0x2d0de4[_0x4118e7(0x131)](/url\(#(.*)\)/,_0x4118e7(0xe5)+_0x58a222[_0x4118e7(0xf9)]+')'));})),_0x4a84fc;}function Ee(_0x28aa11,_0x7d675c){const _0x2bb155=_0x2ea6be;var _0x568ae0;const {defIds:_0x584821}=_0x7d675c;return!_0x584821||_0x584821['length']===0x0?_0x28aa11:_0x28aa11['tag']===_0x2bb155(0x124)&&((_0x568ae0=_0x28aa11[_0x2bb155(0xd1)])!=null&&_0x568ae0['length'])?{..._0x28aa11,'children':_0x28aa11[_0x2bb155(0xd1)][_0x2bb155(0x133)](_0x5131a0=>typeof _0x5131a0[_0x2bb155(0x9b)]['id']==_0x2bb155(0x103)&&_0x584821&&_0x584821[_0x2bb155(0xeb)](_0x5131a0[_0x2bb155(0x9b)]['id'])?{..._0x5131a0,'attrs':{..._0x5131a0['attrs'],'id':_0x5131a0[_0x2bb155(0x9b)]['id']+_0x7d675c[_0x2bb155(0xf9)]}}:_0x5131a0)}:_0x28aa11;}function Oe(){const _0xf612c8=_0x2ea6be;return Math[_0xf612c8(0x104)]()['toString'](0x24)[_0xf612c8(0xee)](0x2,0x8);}k['displayName']=_0x2ea6be(0x12b);const we={'tag':_0x2ea6be(0xc9),'attrs':{'xmlns':_0x2ea6be(0xec),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x2ea6be(0xae),'height':_0x2ea6be(0xae)},'children':[{'tag':_0x2ea6be(0xdc),'attrs':{'fill':_0x2ea6be(0x10b),'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':_0x2ea6be(0xdc),'attrs':{'fill':'currentColor','d':_0x2ea6be(0x116),'fillRule':_0x2ea6be(0xc5),'clipRule':_0x2ea6be(0xc5)}}]},W=_0x417636(function(_0x263c4b,_0x262eaa){const _0x178b76=_0x2ea6be;return _0x11d6cb(k,Object[_0x178b76(0xfa)]({},_0x263c4b,{'id':_0x178b76(0x11b),'ref':_0x262eaa,'icon':we}));});W[_0x2ea6be(0xa4)]=_0x2ea6be(0xb4);class L extends _0x12c3fa{constructor(){super(...arguments),u(this,'_sharedOperations',new Set()),u(this,'_reporters',new Set());}[_0x2ea6be(0x113)](_0x1e70b4){const _0x4de52b=_0x2ea6be;return this['_sharedOperations'][_0x4de52b(0xab)](_0x1e70b4),_0x584876(()=>this[_0x4de52b(0xa5)]['delete'](_0x1e70b4));}[_0x2ea6be(0x110)](_0x132600){const _0x56ceb6=_0x2ea6be;return this['_reporters'][_0x56ceb6(0xab)](_0x132600),_0x584876(()=>this[_0x56ceb6(0xc2)]['delete'](_0x132600));}[_0x2ea6be(0x12a)](_0x547380){const _0x3c05d2=_0x2ea6be;return this[_0x3c05d2(0xa5)]['has'](_0x547380);}[_0x2ea6be(0xad)](_0x340855){const _0x32fe0f=_0x2ea6be;return Array['from'](this[_0x32fe0f(0xc2)])[_0x32fe0f(0x133)](_0x48b049=>_0x48b049(_0x340855));}}var Ne=Object[_0x2ea6be(0xde)],Y=(_0x8273ec,_0x46a5f6,_0x383a4f,_0xd51d3d)=>{const _0x446ea0=_0x2ea6be;for(var _0x588e2e=_0xd51d3d>0x1?void 0x0:_0xd51d3d?Ne(_0x46a5f6,_0x383a4f):_0x46a5f6,_0x3d7daa=_0x8273ec[_0x446ea0(0x136)]-0x1,_0x16bc18;_0x3d7daa>=0x0;_0x3d7daa--)(_0x16bc18=_0x8273ec[_0x3d7daa])&&(_0x588e2e=_0x16bc18(_0x588e2e)||_0x588e2e);return _0x588e2e;},_=(_0x5cb4c2,_0x23b49f)=>(_0x37d02c,_0x89c3e0)=>_0x23b49f(_0x37d02c,_0x89c3e0,_0x5cb4c2);let S=class extends _0x1dfc47{constructor(_0x522ea0,_0x1ee33b,_0x274366){const _0x29ebfe=_0x2ea6be;super(),u(this,_0x29ebfe(0x119),new Map()),(this[_0x29ebfe(0x107)]=_0x522ea0,this[_0x29ebfe(0x109)]=_0x1ee33b,this[_0x29ebfe(0xf5)]=_0x274366,this[_0x29ebfe(0xa0)]());}async[_0x2ea6be(0xbe)](_0x51e03b){const _0x4dca50=_0x2ea6be;return this['_entities']['has'](_0x51e03b)||await this[_0x4dca50(0x123)](_0x51e03b),this[_0x4dca50(0x119)][_0x4dca50(0x106)](_0x51e03b);}[_0x2ea6be(0x129)](_0x5450b6){var _0x223061;return(_0x223061=this['_entities']['get'](_0x5450b6))!=null?_0x223061:null;}[_0x2ea6be(0xa0)](){const _0x3d460e=_0x2ea6be;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x2e2d5f[_0x3d460e(0x114)])[_0x3d460e(0xff)](_0x1c8b29(this[_0x3d460e(0x13d)]))['subscribe'](async _0xd278eb=>{const _0x404d07=_0x3d460e,_0x3a01eb=_0xd278eb[_0x404d07(0x12e)]();this[_0x404d07(0x119)][_0x404d07(0x11f)](_0x3a01eb)||this[_0x404d07(0x123)](_0x3a01eb);}),this[_0x3d460e(0x107)][_0x3d460e(0x100)](_0x2e2d5f[_0x3d460e(0x114)])[_0x3d460e(0xff)](_0x1c8b29(this[_0x3d460e(0x13d)]))['subscribe'](_0x585768=>{const _0x1d9d38=_0x3d460e,_0x5c0c3f=_0x585768[_0x1d9d38(0x12e)](),_0x5e5185=this[_0x1d9d38(0x119)][_0x1d9d38(0x106)](_0x5c0c3f);_0x5e5185==null||_0x5e5185['dispose']();});}async[_0x2ea6be(0x123)](_0x13ed16){const _0x43254b=_0x2ea6be,_0x5ddcc5=await this[_0x43254b(0xf5)][_0x43254b(0xe3)](_0x13ed16),_0x299acd=this[_0x43254b(0x109)]['createInstance'](N,_0x13ed16,_0x5ddcc5);return _0x299acd['init'](),this[_0x43254b(0x119)][_0x43254b(0xa3)](_0x13ed16,_0x299acd),_0x299acd;}};S=Y([_(0x0,_0x3b7b43),_(0x1,_0x45fbec(_0x399810)),_(0x2,_0x45fbec(_0xbc008d))],S);var c=(_0x1833e8=>(_0x1833e8[_0x2ea6be(0xe8)]=_0x2ea6be(0x121),_0x1833e8['IDLE']='idle',_0x1833e8['FOLLOWING']=_0x2ea6be(0xbb),_0x1833e8[_0x2ea6be(0xf2)]=_0x2ea6be(0xf6),_0x1833e8[_0x2ea6be(0xaa)]=_0x2ea6be(0xcf),_0x1833e8))(c||{});const Ce=_0x2ea6be(0xea),De=0xc8;let N=class extends _0x1dfc47{constructor(_0x5c3bbc,_0x216eb0,_0x4c2680,_0x477470,_0x3f6108){const _0x26a6f0=_0x2ea6be;super(),u(this,'_status$',new _0x157a6a(_0x26a6f0(0xe6))),u(this,_0x26a6f0(0x140),this[_0x26a6f0(0xb3)]['asObservable']()),u(this,_0x26a6f0(0xa0),!0x1),u(this,_0x26a6f0(0xe2),null),u(this,'_presenter',null),(this['_unitID']=_0x5c3bbc,this[_0x26a6f0(0xe9)]=_0x216eb0,this[_0x26a6f0(0xd4)]=_0x4c2680,this['_liveShareService']=_0x477470,this[_0x26a6f0(0xcc)]=_0x3f6108);}get[_0x2ea6be(0xb0)](){return this['_status$']['getValue']();}[_0x2ea6be(0xf4)](){const _0x4aaddf=_0x2ea6be;var _0x2e6f29;(_0x2e6f29=this[_0x4aaddf(0xe2)])==null||_0x2e6f29['dispose'](),this[_0x4aaddf(0xb3)][_0x4aaddf(0x13e)](_0x4aaddf(0xe6)),this[_0x4aaddf(0xb3)][_0x4aaddf(0xfb)]();}[_0x2ea6be(0xb6)](){const _0x4db9cc=_0x2ea6be;return this[_0x4db9cc(0xb0)];}[_0x2ea6be(0x137)](){const _0x4aab15=_0x2ea6be;this[_0x4aab15(0xa0)]||(this[_0x4aab15(0xa0)]=!0x0,this[_0x4aab15(0xe9)][_0x4aab15(0x139)][_0x4aab15(0xff)](_0x1c8b29(this[_0x4aab15(0x13d)]))['subscribe'](_0xb92fcb=>{const _0x115ca1=_0x4aab15;switch(_0xb92fcb){case _0x1c20d9[_0x115ca1(0xe8)]:this[_0x115ca1(0xf8)]();break;case _0x1c20d9[_0x115ca1(0xda)]:this[_0x115ca1(0x102)]();break;}}),this['_collabSession'][_0x4aab15(0xe4)][_0x4aab15(0xff)](_0x1c8b29(this[_0x4aab15(0x13d)]))['subscribe'](_0x9fa169=>{const _0x4b0b9d=_0x4aab15,{eventID:_0x34e6b0}=_0x9fa169;switch(_0x34e6b0){case _0x42c5fe['LIVESHARE_NEW_HOST']:this[_0x4b0b9d(0x10c)](_0x9fa169);break;case _0x42c5fe[_0x4b0b9d(0xf1)]:this[_0x4b0b9d(0xdf)](_0x9fa169);break;case _0x42c5fe[_0x4b0b9d(0x13b)]:this[_0x4b0b9d(0xb8)]();break;case _0x42c5fe[_0x4b0b9d(0x141)]:this['_handleNewChangeSets'](_0x9fa169);break;}}));}[_0x2ea6be(0x112)](){const _0x46ad1d=_0x2ea6be;this[_0x46ad1d(0xe9)][_0x46ad1d(0xbc)]({'eventID':_0x42c5fe[_0x46ad1d(0x10f)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession']['getMemberID']()}},this[_0x46ad1d(0x9c)]);}[_0x2ea6be(0x10a)](){const _0x212eca=_0x2ea6be;this[_0x212eca(0xb0)]===_0x212eca(0xcf)&&(this[_0x212eca(0xb3)]['next'](_0x212eca(0xe6)),this[_0x212eca(0xe9)][_0x212eca(0xbc)]({'eventID':_0x42c5fe['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x212eca(0x9c)]}},this[_0x212eca(0x9c)]));}[_0x2ea6be(0x9f)](){const _0x5a5a39=_0x2ea6be;this[_0x5a5a39(0xb0)]===_0x5a5a39(0xf6)&&(this[_0x5a5a39(0xb3)][_0x5a5a39(0x13e)](_0x5a5a39(0xbb)),this['_startFollowing']());}[_0x2ea6be(0xfe)](){const _0x3eefc1=_0x2ea6be;this[_0x3eefc1(0xb0)]===_0x3eefc1(0xbb)&&this[_0x3eefc1(0xb1)]();}['_handleNewHost'](_0xc39ef3){const _0xa85448=_0x2ea6be,{presenter:_0x9c3efb}=_0xc39ef3[_0xa85448(0x138)],_0x52d7ea=this['_collabSession'][_0xa85448(0x11e)]();this[_0xa85448(0xe7)]=_0x9c3efb,_0x9c3efb===_0x52d7ea?(this[_0xa85448(0xb1)](),this[_0xa85448(0xf3)]()):this[_0xa85448(0xb0)]!==_0xa85448(0xf6)&&(this[_0xa85448(0xe1)](),this[_0xa85448(0x9e)]());}[_0x2ea6be(0x127)](){const _0x436e6a=_0x2ea6be,_0xed2c31={'eventID':_0x42c5fe['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x436e6a(0xbc)](_0xed2c31,this['_unitID']);}[_0x2ea6be(0xb8)](){const _0x4da68b=_0x2ea6be;this[_0x4da68b(0xe7)]=null,this['_status']!=='presenting'&&this['_beIdle']();}[_0x2ea6be(0xd3)](_0x203295){const _0x97b91=_0x2ea6be;if(this['_status']==='following'&&this[_0x97b91(0xe7)]===_0x203295[_0x97b91(0x138)][_0x97b91(0xc1)]){const _0x4063e0=_0x1346fe(_0x203295[_0x97b91(0x138)])['mutations'][_0x97b91(0xca)]()[_0x97b91(0xef)](_0x23e9b7=>_0x23e9b7['id']===_0x4c5605['id']);if(_0x4063e0){const _0x33d668=_0x4063e0['params'][_0x97b91(0x12f)],_0x1e5c33=_0x4063e0[_0x97b91(0xdd)][_0x97b91(0x108)]['id'];setTimeout(()=>{const _0x531eac=_0x97b91;this[_0x531eac(0xcc)]['executeCommand'](_0x3a2a1b['id'],{'unitId':_0x33d668,'subUnitId':_0x1e5c33},{'fromCollab':!0x0});});}}}[_0x2ea6be(0xf3)](){const _0x324603=_0x2ea6be;this[_0x324603(0xb3)][_0x324603(0x13e)]('presenting');const _0x12d150=new Map(),_0x231160=this[_0x324603(0xe2)]=new _0x10d2f7();_0x231160[_0x324603(0xab)](_0x584876(()=>{const _0x27b589=_0x324603;_0x12d150[_0x27b589(0x118)](_0x55f907=>_0x55f907['complete']()),_0x12d150[_0x27b589(0xbd)]();})),_0x231160[_0x324603(0xab)](this['_commandService'][_0x324603(0xb7)](_0x242adf=>{const _0x2bdd48=_0x324603;var _0x1e769d;if(_0x242adf[_0x2bdd48(0x132)]!==_0x80b771['OPERATION']||!this['_liveShareService'][_0x2bdd48(0x12a)](_0x242adf['id']))return;const {id:_0x333d09}=_0x242adf;let _0x5b7b51;_0x12d150['has'](_0x333d09)?_0x5b7b51=_0x12d150['get'](_0x333d09):(_0x5b7b51=new _0x31dba2(),_0x12d150[_0x2bdd48(0xa3)](_0x333d09,_0x5b7b51),_0x5b7b51[_0x2bdd48(0xff)](_0x9876f1((_0x1e769d=this[_0x2bdd48(0xd4)]['getConfig'](Ce))!=null?_0x1e769d:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2bdd48(0x135)](_0x380db4=>{const _0x1acc1a=_0x2bdd48;this[_0x1acc1a(0xe9)][_0x1acc1a(0xbc)]({'eventID':_0x42c5fe['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1acc1a(0x9c)],'operations':{[_0x380db4['id']]:{'id':_0x380db4['id'],'params':JSON[_0x1acc1a(0xa8)](_0x380db4[_0x1acc1a(0xdd)])}}}},this[_0x1acc1a(0x9c)]);})),_0x5b7b51[_0x2bdd48(0x13e)](_0x242adf);})),this[_0x324603(0x10e)]['getInitialStates'](this[_0x324603(0x9c)])[_0x324603(0x118)](_0x551f18=>this[_0x324603(0xe9)][_0x324603(0xbc)]({'eventID':_0x42c5fe[_0x324603(0xf1)],'data':{'unitID':this[_0x324603(0x9c)],'operations':{[_0x551f18['id']]:{'id':_0x551f18['id'],'params':JSON['stringify'](_0x551f18['params'])}}}},this[_0x324603(0x9c)]));}[_0x2ea6be(0xe1)](){const _0x159538=_0x2ea6be;var _0x95769f;this[_0x159538(0xb3)][_0x159538(0x13e)](_0x159538(0xe6)),(_0x95769f=this['_commandDisposable'])==null||_0x95769f[_0x159538(0xf4)](),this[_0x159538(0xe2)]=null;}[_0x2ea6be(0x9e)](){const _0x3f1848=_0x2ea6be;var _0x4ab9e8;(_0x4ab9e8=this['_commandDisposable'])==null||_0x4ab9e8[_0x3f1848(0xf4)](),this['_status$'][_0x3f1848(0x13e)]('following');}[_0x2ea6be(0xc4)](){const _0x362e96=_0x2ea6be;var _0x31b924;this[_0x362e96(0xb3)][_0x362e96(0x13e)](_0x362e96(0xe6)),(_0x31b924=this[_0x362e96(0xe2)])==null||_0x31b924[_0x362e96(0xf4)](),this[_0x362e96(0xe2)]=null;}[_0x2ea6be(0xb1)](){const _0x2f60ff=_0x2ea6be;var _0x457dfd;this[_0x2f60ff(0xb3)][_0x2f60ff(0x13e)](_0x2f60ff(0xf6)),(_0x457dfd=this[_0x2f60ff(0xe2)])==null||_0x457dfd[_0x2f60ff(0xf4)]();}[_0x2ea6be(0xdf)](_0x4a1487){const _0x307e8e=_0x2ea6be;if([_0x307e8e(0xcf),'not-following',_0x307e8e(0x121)]['includes'](this[_0x307e8e(0xb0)])||!_0x4a1487[_0x307e8e(0x138)][_0x307e8e(0xb2)]||_0x4a1487[_0x307e8e(0x138)][_0x307e8e(0xb2)]===this[_0x307e8e(0xe9)]['getMemberID']())return;this['_status']===_0x307e8e(0xe6)&&this['_startFollowing']();const _0x325b4e=_0x4a1487[_0x307e8e(0x138)]['operations'];Object['values'](_0x325b4e)['forEach'](_0x27b723=>{const _0x7d2969=_0x307e8e;this[_0x7d2969(0xcc)][_0x7d2969(0xf0)](_0x27b723['id'],_0x27b723[_0x7d2969(0xdd)]?JSON[_0x7d2969(0xbf)](_0x27b723['params']):null,{'fromCollab':!0x0});});}[_0x2ea6be(0xf8)](){const _0x290b65=_0x2ea6be;var _0x20b23f;this[_0x290b65(0xb3)][_0x290b65(0x13e)]('offline'),(_0x20b23f=this[_0x290b65(0xe2)])==null||_0x20b23f[_0x290b65(0xf4)]();}[_0x2ea6be(0x102)](){const _0x5dc008=_0x2ea6be;this['_status$']['next']('idle'),this[_0x5dc008(0x127)]();}};N=Y([_(0x2,_0x1df196),_(0x3,_0x45fbec(L)),_(0x4,_0x3baf05)],N);function Le(){const _0x4770be=_0x2ea6be,_0x5b4dcf=_0x9da0e7(S),_0x2badab=_0x9da0e7(_0x3b7b43),_0x27b375=_0x3c7d62(()=>_0x2badab[_0x4770be(0xc6)](_0x2e2d5f[_0x4770be(0x114)]),void 0x0,!0x1,[]),[_0x1c7c73,_0x473b16]=_0x1207e6(null),[_0x1f3eee,_0x5ee717]=_0x1207e6(c[_0x4770be(0x99)]),_0x29264c=_0x1503e0(null);return _0x2cb5e3(()=>(_0x27b375&&_0x5b4dcf[_0x4770be(0xbe)](_0x27b375[_0x4770be(0x12e)]())[_0x4770be(0xb9)](_0x3e3bcc=>{const _0x369495=_0x4770be;_0x473b16(_0x3e3bcc),_0x29264c[_0x369495(0x111)]=_0x3e3bcc[_0x369495(0x140)]['subscribe'](_0x47d4bd=>{_0x5ee717(_0x47d4bd);});}),()=>{const _0x5edb92=_0x4770be;var _0x253e9f;(_0x253e9f=_0x29264c[_0x5edb92(0x111)])==null||_0x253e9f[_0x5edb92(0x10d)](),_0x29264c[_0x5edb92(0x111)]=null;}),[_0x27b375,_0x5b4dcf]),_0x1c7c73?_0x1bf9fb(_0x40b541,{'align':_0x4770be(0xe0),'disabled':_0x1f3eee===c['OFFLINE'],'className':_0x4770be(0xc7),'overlay':_0x1bf9fb(Re,{'status':_0x1f3eee,'coordinator':_0x1c7c73}),'children':_0x1bf9fb(_0x4770be(0xd8),{'className':_0x27fdaa(_0x4770be(0xac),{'univer-cursor-not-allowed':_0x1f3eee===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1f3eee!==c['OFFLINE']}),'type':_0x4770be(0xd8),'children':_0x1bf9fb(W,{'className':_0x4770be(0x130)})})}):null;}function Re(_0x3d886a){const _0x4b417e=_0x2ea6be,{status:_0x2bb387,coordinator:_0x3a1940}=_0x3d886a;switch(_0x2bb387){case c['IDLE']:return _0x1bf9fb($e,{'coordinator':_0x3a1940});case c[_0x4b417e(0x126)]:return _0x1bf9fb(xe,{'coordinator':_0x3a1940});case c[_0x4b417e(0xf2)]:return _0x1bf9fb(Pe,{'coordinator':_0x3a1940});case c[_0x4b417e(0xe8)]:return _0x1bf9fb(Te,{});case c[_0x4b417e(0xaa)]:return _0x1bf9fb(Ae,{'coordinator':_0x3a1940});default:return null;}}function $e(_0x5cab16){const _0x3bd49c=_0x2ea6be,{coordinator:_0x27f362}=_0x5cab16;return _0x37edb3(_0x3e40e6,{'children':[_0x1bf9fb(_0x3bd49c(0xdb),{'className':_0x3bd49c(0xf7),'children':_0x3bd49c(0x11c)}),_0x1bf9fb(_0x2a847b,{'onClick':()=>_0x27f362[_0x3bd49c(0x112)](),'children':_0x3bd49c(0x13f)})]});}function xe(_0x3c6765){const _0x4d985e=_0x2ea6be,{coordinator:_0x247d83}=_0x3c6765;return _0x37edb3(_0x3e40e6,{'children':[_0x1bf9fb(_0x4d985e(0xdb),{'className':_0x4d985e(0xf7),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x1bf9fb(_0x2a847b,{'onClick':()=>_0x247d83[_0x4d985e(0xfe)](),'children':_0x4d985e(0x13c)})]});}function Pe(_0x3e681a){const _0x285e8d=_0x2ea6be,{coordinator:_0x56c699}=_0x3e681a;return _0x37edb3(_0x3e40e6,{'children':[_0x1bf9fb(_0x285e8d(0xdb),{'className':_0x285e8d(0xf7),'children':_0x285e8d(0x125)}),_0x1bf9fb(_0x2a847b,{'variant':_0x285e8d(0xfc),'onClick':()=>_0x56c699['startFollowing'](),'children':_0x285e8d(0x105)})]});}function Ae(_0x27321f){const _0x30112f=_0x2ea6be,{coordinator:_0x25a605}=_0x27321f;return _0x37edb3(_0x3e40e6,{'children':[_0x1bf9fb('div',{'className':_0x30112f(0xf7),'children':_0x30112f(0xd5)}),_0x1bf9fb(_0x2a847b,{'variant':_0x30112f(0xd9),'onClick':()=>_0x25a605[_0x30112f(0x10a)](),'children':_0x30112f(0xa1)})]});}function Te(){return _0x1bf9fb(_0x3e40e6,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x2ea6be(0xde)],He=(_0x53a062,_0x5bf32b,_0x154013,_0x39bf97)=>{const _0x45f702=_0x2ea6be;for(var _0x42ddd3=_0x39bf97>0x1?void 0x0:_0x39bf97?Fe(_0x5bf32b,_0x154013):_0x5bf32b,_0x564a7a=_0x53a062[_0x45f702(0x136)]-0x1,_0x419558;_0x564a7a>=0x0;_0x564a7a--)(_0x419558=_0x53a062[_0x564a7a])&&(_0x42ddd3=_0x419558(_0x42ddd3)||_0x42ddd3);return _0x42ddd3;},A=(_0x3afd40,_0x39a568)=>(_0x141ea2,_0x29c96d)=>_0x39a568(_0x141ea2,_0x29c96d,_0x3afd40);let m=class extends _0x12c3fa{constructor(_0x4d6183,_0x363a8c){const _0xb45106=_0x2ea6be;super(),this[_0xb45106(0x109)]=_0x4d6183,this[_0xb45106(0xaf)]=_0x363a8c,this[_0xb45106(0x9a)]();}[_0x2ea6be(0x9a)](){const _0x4074f4=_0x2ea6be;this[_0x4074f4(0xa7)](this['_uiPartsService'][_0x4074f4(0x12d)](_0x2d447a['HEADER_MENU'],()=>_0x349ec9(Le,this[_0x4074f4(0x109)])));}};m=He([A(0x0,_0x45fbec(_0x399810)),A(0x1,_0x375885)],m);const ye=_0x2ea6be(0x98),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x289b16,_0x1b30b5,_0x2cac26,_0x29c1b8)=>{const _0x33c829=_0x2ea6be;for(var _0x7d1f05=_0x29c1b8>0x1?void 0x0:_0x29c1b8?Ue(_0x1b30b5,_0x2cac26):_0x1b30b5,_0x45b4bb=_0x289b16[_0x33c829(0x136)]-0x1,_0x311503;_0x45b4bb>=0x0;_0x45b4bb--)(_0x311503=_0x289b16[_0x45b4bb])&&(_0x7d1f05=_0x311503(_0x7d1f05)||_0x7d1f05);return _0x7d1f05;},je=(_0x1648aa,_0xe26d33)=>(_0x8cc354,_0x1e2640)=>_0xe26d33(_0x8cc354,_0x1e2640,_0x1648aa);let I=class extends _0x12c3fa{constructor(_0x232ffa){super(),this['_liveShareService']=_0x232ffa,this['_init']();}[_0x2ea6be(0xa0)](){const _0x3eb71f=_0x2ea6be;[_0x1aa70f['id'],_0x315c38['id'],_0x3a2a1b['id']][_0x3eb71f(0x118)](_0x1a730c=>{const _0x13e5ae=_0x3eb71f;this['disposeWithMe'](this[_0x13e5ae(0x10e)][_0x13e5ae(0x113)](_0x1a730c));});}};function _0x15fb(){const _0x426be7=['7430UkTDHW','getMemberID','has','2259186wyYFcL','offline','1211043mOKWXS','_startLiveShareCoordinator','defs','You\x27re\x20not\x20following\x20the\x20presenter','FOLLOWING','_fetchOperations','entries','getLiveShareCoordinatorSync','shouldShareOperation','UniverIcon','trim','registerComponent','getUnitId','unitId','univer-size-4','replace','type','map','onStarting','subscribe','length','init','data','sessionStatus$','defineProperty','LIVESHARE_TERMINATE','Stop\x20following','dispose$','next','Start','status$','NEW_CHANGESETS','live-share.config','IDLE','_mountLiveShare','attrs','_unitID','mask','_startFollowing','startFollowing','_init','Stop\x20presenting','5346aMKmRG','set','displayName','_sharedOperations','2JWtRNv','disposeWithMe','stringify','7EpPDJM','PRESENTING','add','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getInitialStates','1em','_uiPartsService','_status','_stopFollowing','presenter','_status$','LiveShareIcon','tag','getStatus','onCommandExecuted','_handleTerminate','then','univerjs-icon\x20univerjs-icon-','following','send','clear','getLiveShareCoordinator','parse','4jNVfMc','memberID','_reporters','symbol','_beIdle','evenodd','getCurrentTypeOfUnit$','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','UNIVER_UNKNOWN','svg','reverse','178501Yyhydf','_commandService','3224755avPCfs','override','presenting','_config','children','fill','_handleNewChangeSets','_configService','You\x27re\x20presenting\x20the\x20document','pluginName','xlink:href','button','default','ONLINE','div','path','params','getOwnPropertyDescriptor','_handleOperation','end','_stopPresenting','_commandDisposable','requireSession','event$','url(#$1','idle','_presenter','OFFLINE','_collabSession','SAME_OPERATION_SHARE_INTERVAL','includes','http://www.w3.org/2000/svg','setConfig','substring','find','executeCommand','LIVESHARE_OPERATION','NOT_FOLLOWING','_startPresenting','dispose','_collabSessionService','not-following','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleOffline','idSuffix','assign','complete','text','use','stopFollowing','pipe','getTypeOfUnitDisposed$','12873773OtAkzH','_handleOnline','string','random','Start\x20following','get','_univerInstanceService','sheet','_injector','stopPresenting','currentColor','_handleNewHost','unsubscribe','_liveShareService','LIVESHARE_REQUEST_HOST','registerInitialStateReporter','current','tryStartPresenting','registerSharedOperation','UNIVER_SHEET','colorChannel1','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','3727872uHVkbR','forEach','_entities','onRendered','live-share-icon','Present\x20this\x20document'];_0x15fb=function(){return _0x426be7;};return _0x15fb();}I=Ve([je(0x0,_0x45fbec(L))],I);var Me=Object[_0x2ea6be(0x13a)],ke=Object[_0x2ea6be(0xde)],Ge=(_0x46ec87,_0x43ca8b,_0x3b1ed3)=>_0x43ca8b in _0x46ec87?Me(_0x46ec87,_0x43ca8b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b1ed3}):_0x46ec87[_0x43ca8b]=_0x3b1ed3,We=(_0x532e34,_0x1f4d85,_0x4b5236,_0x2ba5d2)=>{for(var _0x15180d=_0x2ba5d2>0x1?void 0x0:_0x2ba5d2?ke(_0x1f4d85,_0x4b5236):_0x1f4d85,_0x352f29=_0x532e34['length']-0x1,_0x65a1e1;_0x352f29>=0x0;_0x352f29--)(_0x65a1e1=_0x532e34[_0x352f29])&&(_0x15180d=_0x65a1e1(_0x15180d)||_0x15180d);return _0x15180d;},F=(_0x393b3c,_0x5786a0)=>(_0x3a27d7,_0x2ce6b8)=>_0x5786a0(_0x3a27d7,_0x2ce6b8,_0x393b3c),B=(_0x573482,_0x529298,_0x3cf523)=>Ge(_0x573482,typeof _0x529298!=_0x2ea6be(0xc3)?_0x529298+'':_0x529298,_0x3cf523);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x2ba041{constructor(_0x5c865e=T,_0x21a6b4,_0x164fbb){const _0x5b82be=_0x2ea6be;super(),this[_0x5b82be(0xd0)]=_0x5c865e,this[_0x5b82be(0x109)]=_0x21a6b4,this['_configService']=_0x164fbb;const {..._0x2e041b}=_0x490103({},T,this[_0x5b82be(0xd0)]);this['_configService'][_0x5b82be(0xed)](ye,_0x2e041b);}[_0x2ea6be(0x134)](){const _0x536023=_0x2ea6be;_0x1521f6(this[_0x536023(0x109)],_0x22600f([[L],[S],[I],[m]],this[_0x536023(0xd0)][_0x536023(0xce)])),_0x8311ba(this[_0x536023(0x109)],[[I]]);}[_0x2ea6be(0x11a)](){_0x8311ba(this['_injector'],[[m]]);}};B(b,'type',_0x2e2d5f[_0x2ea6be(0xc8)]),B(b,_0x2ea6be(0xd6),Ye),b=We([_0x13786b(_0x3a5e2e),F(0x1,_0x45fbec(_0x399810)),F(0x2,_0x1df196)],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
|
-
function
|
|
1
|
+
function _0x893b(){const _0x5442eb=['getId','startPresenting','tryStartPresenting','13602xdfEKb','getStatus','get','_initialize','PRESENTING','startFollowing','356488TmDuNK','52HwmZSB','stopPresenting','IDLE','No\x20active\x20workbook\x20found.','getUnitId','296632UiYmNE','_injector','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','syncExecuteCommand','getLiveShareCoordinatorSync','getSheetId','executeCommand','1534010iftwQd','81Lvwyti','1097180ZwCIiS','35371gLjiGC','6WkHDIH','getRenderById','getActiveWorkbook','startColumn','extend','356136umEtXu','_commandService'];_0x893b=function(){return _0x5442eb;};return _0x893b();}const _0x1cd90e=_0x4b76;(function(_0x418764,_0x43d3b7){const _0x44707d=_0x4b76,_0x13d69e=_0x418764();while(!![]){try{const _0x1c6c7b=parseInt(_0x44707d(0x85))/0x1+parseInt(_0x44707d(0x6a))/0x2+parseInt(_0x44707d(0x6f))/0x3*(-parseInt(_0x44707d(0x76))/0x4)+-parseInt(_0x44707d(0x84))/0x5+-parseInt(_0x44707d(0x86))/0x6*(-parseInt(_0x44707d(0x7b))/0x7)+-parseInt(_0x44707d(0x75))/0x8*(-parseInt(_0x44707d(0x83))/0x9)+-parseInt(_0x44707d(0x82))/0xa;if(_0x1c6c7b===_0x43d3b7)break;else _0x13d69e['push'](_0x13d69e['shift']());}catch(_0x3dfa0c){_0x13d69e['push'](_0x13d69e['shift']());}}}(_0x893b,0x36f3d));import{LiveShareController as _0x114022,LiveShareStatus as _0x874f35}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x402d33}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x3a8932}from'@univerjs/sheets';function _0x4b76(_0x38a863,_0x2c756f){const _0x893b11=_0x893b();return _0x4b76=function(_0x4b7681,_0x179bcb){_0x4b7681=_0x4b7681-0x6a;let _0x48b993=_0x893b11[_0x4b7681];return _0x48b993;},_0x4b76(_0x38a863,_0x2c756f);}import{SetScrollOperation as _0x14d169}from'@univerjs/sheets-ui';import{FRange as _0x18a92a}from'@univerjs/sheets/facade';import{FUniver as _0x5bce27,FEnum as _0x5b9547}from'@univerjs/core/facade';class I extends _0x18a92a{[_0x1cd90e(0x72)](_0x4cdce2,_0x4d988f,_0x3976f6,_0x252901,_0x34c163){const _0x484522=_0x1cd90e,_0x113862=_0x4cdce2['get'](_0x114022),_0x2d6f17=_0x4cdce2[_0x484522(0x71)](_0x402d33),_0x141fac=_0x4d988f[_0x484522(0x7a)](),_0x435107=_0x4d988f['getActiveSheet'](),_0x3c9427=_0x113862[_0x484522(0x7f)](_0x141fac);(_0x3c9427==null?void 0x0:_0x3c9427[_0x484522(0x70)]())!==_0x874f35[_0x484522(0x73)]||(_0x3976f6[_0x484522(0x80)]()!==_0x435107[_0x484522(0x80)]()&&this[_0x484522(0x6b)][_0x484522(0x81)](_0x3a8932['id'],{'unitId':_0x141fac,'subUnitId':_0x3976f6['getSheetId']()}),!_0x2d6f17[_0x484522(0x87)](_0x141fac))||_0x34c163[_0x484522(0x7e)](_0x14d169['id'],{'unitId':_0x4d988f[_0x484522(0x7a)](),'sheetId':_0x3976f6[_0x484522(0x80)](),'sheetViewStartRow':_0x252901['startRow'],'sheetViewStartColumn':_0x252901[_0x484522(0x89)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x18a92a[_0x1cd90e(0x8a)](I);class m extends _0x5bce27{['getLiveShareStatus'](){const _0x549607=_0x1cd90e;var _0x26b1f0,_0xb256;const _0x56531f=this[_0x549607(0x7c)][_0x549607(0x71)](_0x114022),_0x217c6e=(_0x26b1f0=this[_0x549607(0x88)]())==null?void 0x0:_0x26b1f0['getId']();if(!_0x217c6e)throw new Error(_0x549607(0x79));const _0x1dcfa5=_0x56531f[_0x549607(0x7f)](_0x217c6e);return(_0xb256=_0x1dcfa5==null?void 0x0:_0x1dcfa5[_0x549607(0x70)]())!=null?_0xb256:_0x874f35[_0x549607(0x78)];}['startFollowing'](){const _0x5e555b=_0x1cd90e;var _0xefbb3c;const _0x48638d=this[_0x5e555b(0x7c)][_0x5e555b(0x71)](_0x114022),_0x17fa6b=(_0xefbb3c=this[_0x5e555b(0x88)]())==null?void 0x0:_0xefbb3c['getId']();if(!_0x17fa6b)throw new Error('No\x20active\x20workbook\x20found.');const _0x49bf8e=_0x48638d['getLiveShareCoordinatorSync'](_0x17fa6b);if(!_0x49bf8e)throw new Error(_0x5e555b(0x7d));_0x49bf8e[_0x5e555b(0x74)]();}['stopFollowing'](){const _0x28f178=_0x1cd90e;var _0x459f21;const _0x48eacd=this[_0x28f178(0x7c)][_0x28f178(0x71)](_0x114022),_0x2198c5=(_0x459f21=this['getActiveWorkbook']())==null?void 0x0:_0x459f21['getId']();if(!_0x2198c5)throw new Error('No\x20active\x20workbook\x20found.');const _0x1ee793=_0x48eacd['getLiveShareCoordinatorSync'](_0x2198c5);if(!_0x1ee793)throw new Error(_0x28f178(0x7d));_0x1ee793['stopFollowing']();}[_0x1cd90e(0x6d)](){const _0x213c00=_0x1cd90e;var _0x4253ec;const _0x4e1fe1=this[_0x213c00(0x7c)][_0x213c00(0x71)](_0x114022),_0x21c4fd=(_0x4253ec=this[_0x213c00(0x88)]())==null?void 0x0:_0x4253ec[_0x213c00(0x6c)]();if(!_0x21c4fd)throw new Error(_0x213c00(0x79));const _0x10871e=_0x4e1fe1['getLiveShareCoordinatorSync'](_0x21c4fd);if(!_0x10871e)throw new Error(_0x213c00(0x7d));_0x10871e[_0x213c00(0x6e)]();}['stopPresenting'](){const _0x42ffe7=_0x1cd90e;var _0x60b379;const _0x1cbfe0=this[_0x42ffe7(0x7c)][_0x42ffe7(0x71)](_0x114022),_0x1578d5=(_0x60b379=this[_0x42ffe7(0x88)]())==null?void 0x0:_0x60b379[_0x42ffe7(0x6c)]();if(!_0x1578d5)throw new Error(_0x42ffe7(0x79));const _0x2d56c9=_0x1cbfe0[_0x42ffe7(0x7f)](_0x1578d5);if(!_0x2d56c9)throw new Error(_0x42ffe7(0x7d));_0x2d56c9[_0x42ffe7(0x77)]();}}_0x5bce27[_0x1cd90e(0x8a)](m);class C extends _0x5b9547{get['LiveShareStatusEnum'](){return _0x874f35;}}_0x5b9547[_0x1cd90e(0x8a)](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x57791f=_0x2c32;(function(_0x54fa82,_0x4973e7){const _0x23c84f=_0x2c32,_0x2e29d1=_0x54fa82();while(!![]){try{const _0x7b1c36=parseInt(_0x23c84f(0x24d))/0x1+parseInt(_0x23c84f(0x1e9))/0x2+-parseInt(_0x23c84f(0x23a))/0x3*(parseInt(_0x23c84f(0x235))/0x4)+-parseInt(_0x23c84f(0x273))/0x5*(parseInt(_0x23c84f(0x261))/0x6)+-parseInt(_0x23c84f(0x269))/0x7*(-parseInt(_0x23c84f(0x1e4))/0x8)+-parseInt(_0x23c84f(0x24a))/0x9+parseInt(_0x23c84f(0x21c))/0xa*(parseInt(_0x23c84f(0x25c))/0xb);if(_0x7b1c36===_0x4973e7)break;else _0x2e29d1['push'](_0x2e29d1['shift']());}catch(_0x2b7a86){_0x2e29d1['push'](_0x2e29d1['shift']());}}}(_0x47de,0xd96a9));var J=Object[_0x57791f(0x24b)],K=(_0x4825a5,_0x589424,_0x1483f6)=>_0x589424 in _0x4825a5?J(_0x4825a5,_0x589424,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1483f6}):_0x4825a5[_0x589424]=_0x1483f6,u=(_0x38b1f2,_0x30a8ff,_0x4903f4)=>K(_0x38b1f2,typeof _0x30a8ff!=_0x57791f(0x24f)?_0x30a8ff+'':_0x30a8ff,_0x4903f4);import{Disposable as _0x586517,toDisposable as _0x2b6ac2,IUniverInstanceService as _0x50f749,Inject as _0x58c47f,Injector as _0x337fab,IConfigService as _0x1a7034,ICommandService as _0x4ad104,RxDisposable as _0xaf6b52,UniverInstanceType as _0x469e4a,DisposableCollection as _0x3803ff,CommandType as _0x3018fa,DependentOn as _0x54389d,Plugin as _0x288486,merge as _0x2293ae,registerDependencies as _0x1849c5,mergeOverrideWithDependencies as _0x40e0b3,touchDependencies as _0x5b1334}from'@univerjs/core';import{useDependency as _0x173f99,useObservable as _0xa17243,IUIPartsService as _0x3ddec6,BuiltInUIPart as _0x4296f0,connectInjector as _0x2e917a}from'@univerjs/ui';import{jsx as _0x47899f,jsxs as _0x585bf4,Fragment as _0x1aad73}from'react/jsx-runtime';import{Dropdown as _0x4832fe,clsx as _0x183b25,Button as _0x16a64c}from'@univerjs/design';import{useRef as _0x1d2dfb,createElement as _0x3b748f,forwardRef as _0x26d85a,useState as _0x4faa64,useEffect as _0x4695ab}from'react';import{CollaborationEvent as _0x56ba98,parseProtocolChangeset as _0x2b0cec}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x208377,SessionStatus as _0x9d842f,UniverCollaborationClientPlugin as _0x28e03d}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3cb9ca,SetWorksheetActiveOperation as _0x2d9b0e}from'@univerjs/sheets';import{BehaviorSubject as _0x27311b,Subject as _0x1fa751}from'rxjs';import{takeUntil as _0x11a52f,throttleTime as _0x412eba}from'rxjs/operators';import{SetZoomRatioOperation as _0x5ce85d,SetScrollOperation as _0x4c3e16}from'@univerjs/sheets-ui';function k({ref:_0x59e281,..._0x1408d3}){const _0x35fcf1=_0x57791f,{icon:_0x28f6ef,id:_0xee3966,className:_0x3a9163,extend:_0x2dd190,..._0x16d565}=_0x1408d3,_0x945a90=('univerjs-icon\x20univerjs-icon-'+_0xee3966+'\x20'+(_0x3a9163||''))['trim'](),_0x37e69c=_0x1d2dfb('_'+Oe());return G(_0x28f6ef,''+_0xee3966,{'defIds':_0x28f6ef[_0x35fcf1(0x259)],'idSuffix':_0x37e69c[_0x35fcf1(0x228)]},{'ref':_0x59e281,'className':_0x945a90,..._0x16d565},_0x2dd190);}function G(_0xcdfd5e,_0x10971e,_0x314010,_0x396d54,_0x5eee10){const _0x2b13a7=_0x57791f;return _0x3b748f(_0xcdfd5e['tag'],{'key':_0x10971e,...be(_0xcdfd5e,_0x314010,_0x5eee10),..._0x396d54},(Ee(_0xcdfd5e,_0x314010)[_0x2b13a7(0x23d)]||[])['map']((_0x4dd1fb,_0x50196a)=>G(_0x4dd1fb,_0x10971e+'-'+_0xcdfd5e[_0x2b13a7(0x200)]+'-'+_0x50196a,_0x314010,void 0x0,_0x5eee10)));}function be(_0x387861,_0x1cfdbe,_0x1d8e1c){const _0x19205f=_0x57791f,_0x2cb95a={..._0x387861[_0x19205f(0x255)]};_0x1d8e1c!=null&&_0x1d8e1c[_0x19205f(0x230)]&&_0x2cb95a[_0x19205f(0x1eb)]===_0x19205f(0x230)&&(_0x2cb95a['fill']=_0x1d8e1c[_0x19205f(0x230)]),_0x387861[_0x19205f(0x200)]===_0x19205f(0x1e5)&&_0x2cb95a['id']&&(_0x2cb95a['id']=_0x2cb95a['id']+_0x1cfdbe['idSuffix']),Object[_0x19205f(0x1f7)](_0x2cb95a)[_0x19205f(0x24e)](([_0xb8308e,_0x10b6ab])=>{const _0x1c32d0=_0x19205f;_0xb8308e===_0x1c32d0(0x1e5)&&typeof _0x10b6ab=='string'&&(_0x2cb95a[_0xb8308e]=_0x10b6ab[_0x1c32d0(0x242)](/url\(#(.*)\)/,_0x1c32d0(0x1d3)+_0x1cfdbe[_0x1c32d0(0x1e2)]+')'));});const {defIds:_0x2a8bfc}=_0x1cfdbe;return!_0x2a8bfc||_0x2a8bfc[_0x19205f(0x1d7)]===0x0||(_0x387861[_0x19205f(0x200)]===_0x19205f(0x1fa)&&_0x2cb95a['xlink:href']&&(_0x2cb95a[_0x19205f(0x210)]=_0x2cb95a[_0x19205f(0x210)]+_0x1cfdbe[_0x19205f(0x1e2)]),Object['entries'](_0x2cb95a)[_0x19205f(0x24e)](([_0x8587fa,_0x56d0e6])=>{const _0x34937e=_0x19205f;typeof _0x56d0e6==_0x34937e(0x1f9)&&(_0x2cb95a[_0x8587fa]=_0x56d0e6[_0x34937e(0x242)](/url\(#(.*)\)/,_0x34937e(0x1d3)+_0x1cfdbe['idSuffix']+')'));})),_0x2cb95a;}function Ee(_0x105694,_0x3a99c0){const _0x3f4690=_0x57791f;var _0x409d84;const {defIds:_0xafe833}=_0x3a99c0;return!_0xafe833||_0xafe833[_0x3f4690(0x1d7)]===0x0?_0x105694:_0x105694['tag']===_0x3f4690(0x1ef)&&((_0x409d84=_0x105694[_0x3f4690(0x23d)])!=null&&_0x409d84['length'])?{..._0x105694,'children':_0x105694[_0x3f4690(0x23d)]['map'](_0x115808=>typeof _0x115808[_0x3f4690(0x255)]['id']==_0x3f4690(0x1f9)&&_0xafe833&&_0xafe833[_0x3f4690(0x21e)](_0x115808[_0x3f4690(0x255)]['id'])?{..._0x115808,'attrs':{..._0x115808['attrs'],'id':_0x115808[_0x3f4690(0x255)]['id']+_0x3a99c0['idSuffix']}}:_0x115808)}:_0x105694;}function Oe(){const _0x4b531c=_0x57791f;return Math[_0x4b531c(0x236)]()['toString'](0x24)[_0x4b531c(0x1ed)](0x2,0x8);}k[_0x57791f(0x224)]=_0x57791f(0x1f8);const we={'tag':_0x57791f(0x20d),'attrs':{'xmlns':_0x57791f(0x1e6),'fill':_0x57791f(0x1fd),'viewBox':_0x57791f(0x22e),'width':'1em','height':_0x57791f(0x249)},'children':[{'tag':'path','attrs':{'fill':_0x57791f(0x247),'d':_0x57791f(0x253)}},{'tag':_0x57791f(0x22d),'attrs':{'fill':'currentColor','d':_0x57791f(0x1f2),'fillRule':_0x57791f(0x260),'clipRule':_0x57791f(0x260)}}]},W=_0x26d85a(function(_0x26ab41,_0x4185bd){const _0x17c253=_0x57791f;return _0x3b748f(k,Object[_0x17c253(0x202)]({},_0x26ab41,{'id':_0x17c253(0x208),'ref':_0x4185bd,'icon':we}));});W['displayName']=_0x57791f(0x22a);class L extends _0x586517{constructor(){const _0x2d4bf6=_0x57791f;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x2d4bf6(0x209),new Set());}['registerSharedOperation'](_0x1b1067){const _0x43a568=_0x57791f;return this[_0x43a568(0x1df)][_0x43a568(0x1dd)](_0x1b1067),_0x2b6ac2(()=>this[_0x43a568(0x1df)][_0x43a568(0x1f4)](_0x1b1067));}[_0x57791f(0x25f)](_0x4d633f){const _0x226e87=_0x57791f;return this[_0x226e87(0x209)][_0x226e87(0x1dd)](_0x4d633f),_0x2b6ac2(()=>this['_reporters'][_0x226e87(0x1f4)](_0x4d633f));}[_0x57791f(0x216)](_0x3487d1){const _0x10a86d=_0x57791f;return this[_0x10a86d(0x1df)]['has'](_0x3487d1);}[_0x57791f(0x1d8)](_0x44d1b4){const _0xa84eab=_0x57791f;return Array['from'](this[_0xa84eab(0x209)])[_0xa84eab(0x1d4)](_0x9fe3ae=>_0x9fe3ae(_0x44d1b4));}}var Ne=Object[_0x57791f(0x1ee)],Y=(_0x501797,_0x580d94,_0x5c5604,_0x4e5ebe)=>{const _0x1ee547=_0x57791f;for(var _0x4b0b6b=_0x4e5ebe>0x1?void 0x0:_0x4e5ebe?Ne(_0x580d94,_0x5c5604):_0x580d94,_0x2c1293=_0x501797[_0x1ee547(0x1d7)]-0x1,_0x2ec4e9;_0x2c1293>=0x0;_0x2c1293--)(_0x2ec4e9=_0x501797[_0x2c1293])&&(_0x4b0b6b=_0x2ec4e9(_0x4b0b6b)||_0x4b0b6b);return _0x4b0b6b;},_=(_0x5859bc,_0x45dc7f)=>(_0xda0ba5,_0x2117ec)=>_0x45dc7f(_0xda0ba5,_0x2117ec,_0x5859bc);let S=class extends _0xaf6b52{constructor(_0x18071a,_0x562bab,_0x2ae5e7){const _0x48af8b=_0x57791f;super(),u(this,_0x48af8b(0x217),new Map()),(this[_0x48af8b(0x250)]=_0x18071a,this['_injector']=_0x562bab,this[_0x48af8b(0x213)]=_0x2ae5e7,this[_0x48af8b(0x1e8)]());}async[_0x57791f(0x1d9)](_0x3397ba){const _0x58e122=_0x57791f;return this[_0x58e122(0x217)][_0x58e122(0x274)](_0x3397ba)||await this[_0x58e122(0x1de)](_0x3397ba),this[_0x58e122(0x217)][_0x58e122(0x203)](_0x3397ba);}['getLiveShareCoordinatorSync'](_0x2c80ef){const _0x55bfad=_0x57791f;var _0x1800c3;return(_0x1800c3=this[_0x55bfad(0x217)][_0x55bfad(0x203)](_0x2c80ef))!=null?_0x1800c3:null;}[_0x57791f(0x1e8)](){const _0x471f78=_0x57791f;this[_0x471f78(0x250)][_0x471f78(0x23e)](_0x469e4a[_0x471f78(0x232)])[_0x471f78(0x1f3)](_0x11a52f(this[_0x471f78(0x20b)]))[_0x471f78(0x245)](async _0x53022b=>{const _0x587980=_0x471f78,_0x31fa8c=_0x53022b[_0x587980(0x244)]();this[_0x587980(0x217)][_0x587980(0x274)](_0x31fa8c)||this['_startLiveShareCoordinator'](_0x31fa8c);}),this[_0x471f78(0x250)][_0x471f78(0x20a)](_0x469e4a[_0x471f78(0x232)])[_0x471f78(0x1f3)](_0x11a52f(this['dispose$']))['subscribe'](_0x2a0573=>{const _0x31f758=_0x471f78,_0x47335f=_0x2a0573['getUnitId'](),_0x5bf655=this[_0x31f758(0x217)]['get'](_0x47335f);_0x5bf655==null||_0x5bf655[_0x31f758(0x25d)]();});}async[_0x57791f(0x1de)](_0x6158e6){const _0x4db9b7=_0x57791f,_0x52a323=await this['_collabSessionService']['requireSession'](_0x6158e6),_0x5d2325=this[_0x4db9b7(0x26b)][_0x4db9b7(0x20c)](N,_0x6158e6,_0x52a323);return _0x5d2325[_0x4db9b7(0x265)](),this[_0x4db9b7(0x217)]['set'](_0x6158e6,_0x5d2325),_0x5d2325;}};S=Y([_(0x0,_0x50f749),_(0x1,_0x58c47f(_0x337fab)),_(0x2,_0x58c47f(_0x208377))],S);var c=(_0x38cf86=>(_0x38cf86[_0x57791f(0x23b)]=_0x57791f(0x1fc),_0x38cf86[_0x57791f(0x1f0)]=_0x57791f(0x264),_0x38cf86[_0x57791f(0x26c)]=_0x57791f(0x227),_0x38cf86[_0x57791f(0x26a)]=_0x57791f(0x229),_0x38cf86['PRESENTING']='presenting',_0x38cf86))(c||{});const Ce=_0x57791f(0x24c),De=0xc8;let N=class extends _0xaf6b52{constructor(_0xb77f01,_0x43248f,_0x226202,_0x29b246,_0x58ba1d){const _0x155ea7=_0x57791f;super(),u(this,'_status$',new _0x27311b(_0x155ea7(0x264))),u(this,'status$',this[_0x155ea7(0x1d5)]['asObservable']()),u(this,_0x155ea7(0x1e8),!0x1),u(this,_0x155ea7(0x215),null),u(this,_0x155ea7(0x21f),null),(this[_0x155ea7(0x205)]=_0xb77f01,this[_0x155ea7(0x271)]=_0x43248f,this[_0x155ea7(0x211)]=_0x226202,this[_0x155ea7(0x251)]=_0x29b246,this['_commandService']=_0x58ba1d);}get[_0x57791f(0x222)](){const _0x500735=_0x57791f;return this[_0x500735(0x1d5)]['getValue']();}['dispose'](){const _0x3b6f09=_0x57791f;var _0x46f65e;(_0x46f65e=this[_0x3b6f09(0x215)])==null||_0x46f65e[_0x3b6f09(0x25d)](),this[_0x3b6f09(0x1d5)][_0x3b6f09(0x263)](_0x3b6f09(0x264)),this['_status$']['complete']();}[_0x57791f(0x272)](){const _0x460aa6=_0x57791f;return this[_0x460aa6(0x222)];}[_0x57791f(0x265)](){const _0x3a7500=_0x57791f;this[_0x3a7500(0x1e8)]||(this[_0x3a7500(0x1e8)]=!0x0,this[_0x3a7500(0x271)][_0x3a7500(0x21a)]['pipe'](_0x11a52f(this[_0x3a7500(0x20b)]))[_0x3a7500(0x245)](_0x4e0107=>{const _0x425eea=_0x3a7500;switch(_0x4e0107){case _0x9d842f[_0x425eea(0x23b)]:this[_0x425eea(0x234)]();break;case _0x9d842f[_0x425eea(0x206)]:this['_handleOnline']();break;}}),this[_0x3a7500(0x271)][_0x3a7500(0x1da)][_0x3a7500(0x1f3)](_0x11a52f(this['dispose$']))[_0x3a7500(0x245)](_0x5e777a=>{const _0x1cb0d7=_0x3a7500,{eventID:_0x4093a2}=_0x5e777a;switch(_0x4093a2){case _0x56ba98[_0x1cb0d7(0x258)]:this[_0x1cb0d7(0x252)](_0x5e777a);break;case _0x56ba98['LIVESHARE_OPERATION']:this[_0x1cb0d7(0x1e3)](_0x5e777a);break;case _0x56ba98[_0x1cb0d7(0x22c)]:this['_handleTerminate']();break;case _0x56ba98[_0x1cb0d7(0x1f5)]:this['_handleNewChangeSets'](_0x5e777a);break;}}));}[_0x57791f(0x201)](){const _0x1bf0b4=_0x57791f;this[_0x1bf0b4(0x271)][_0x1bf0b4(0x1d6)]({'eventID':_0x56ba98['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x1bf0b4(0x205)],'userID':this['_collabSession'][_0x1bf0b4(0x262)]()}},this[_0x1bf0b4(0x205)]);}[_0x57791f(0x22b)](){const _0x14a667=_0x57791f;this['_status']===_0x14a667(0x276)&&(this[_0x14a667(0x1d5)]['next'](_0x14a667(0x264)),this['_collabSession'][_0x14a667(0x1d6)]({'eventID':_0x56ba98['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x14a667(0x205)]}},this[_0x14a667(0x205)]));}[_0x57791f(0x248)](){const _0x36c2a0=_0x57791f;this['_status']==='not-following'&&(this[_0x36c2a0(0x1d5)]['next'](_0x36c2a0(0x227)),this[_0x36c2a0(0x214)]());}[_0x57791f(0x25a)](){const _0x2dcd80=_0x57791f;this[_0x2dcd80(0x222)]===_0x2dcd80(0x227)&&this[_0x2dcd80(0x1d2)]();}[_0x57791f(0x252)](_0x260329){const _0x59ca07=_0x57791f,{presenter:_0x17c45d}=_0x260329[_0x59ca07(0x1f6)],_0x3124c9=this[_0x59ca07(0x271)]['getMemberID']();this[_0x59ca07(0x21f)]=_0x17c45d,_0x17c45d===_0x3124c9?(this[_0x59ca07(0x1d2)](),this[_0x59ca07(0x20e)]()):this[_0x59ca07(0x222)]!=='not-following'&&(this[_0x59ca07(0x266)](),this[_0x59ca07(0x214)]());}['_fetchOperations'](){const _0x31b09a=_0x57791f,_0x46c789={'eventID':_0x56ba98['LIVESHARE_FETCH_OPERATIONS']};this[_0x31b09a(0x271)][_0x31b09a(0x1d6)](_0x46c789,this[_0x31b09a(0x205)]);}[_0x57791f(0x1ff)](){const _0x526e9e=_0x57791f;this[_0x526e9e(0x21f)]=null,this['_status']!==_0x526e9e(0x276)&&this[_0x526e9e(0x204)]();}[_0x57791f(0x225)](_0x7f7933){const _0x22493c=_0x57791f;if(this[_0x22493c(0x222)]===_0x22493c(0x227)&&this['_presenter']===_0x7f7933[_0x22493c(0x1f6)][_0x22493c(0x267)]){const _0x4be5be=_0x2b0cec(_0x7f7933['data'])['mutations']['reverse']()['find'](_0x5346ab=>_0x5346ab['id']===_0x3cb9ca['id']);if(_0x4be5be){const _0x500024=_0x4be5be[_0x22493c(0x240)][_0x22493c(0x246)],_0x443ae0=_0x4be5be['params'][_0x22493c(0x21b)]['id'];setTimeout(()=>{const _0xab352c=_0x22493c;this[_0xab352c(0x239)][_0xab352c(0x25b)](_0x2d9b0e['id'],{'unitId':_0x500024,'subUnitId':_0x443ae0},{'fromCollab':!0x0});});}}}[_0x57791f(0x20e)](){const _0x4615e5=_0x57791f;this['_status$']['next'](_0x4615e5(0x276));const _0x532596=new Map(),_0x6c75af=this['_commandDisposable']=new _0x3803ff();_0x6c75af[_0x4615e5(0x1dd)](_0x2b6ac2(()=>{const _0x537c25=_0x4615e5;_0x532596[_0x537c25(0x24e)](_0x2dc73d=>_0x2dc73d[_0x537c25(0x1ec)]()),_0x532596['clear']();})),_0x6c75af['add'](this['_commandService'][_0x4615e5(0x26f)](_0x8dad7e=>{const _0x55e78e=_0x4615e5;var _0x1be19a;if(_0x8dad7e['type']!==_0x3018fa['OPERATION']||!this[_0x55e78e(0x251)][_0x55e78e(0x216)](_0x8dad7e['id']))return;const {id:_0xa0e940}=_0x8dad7e;let _0x2ab0ee;_0x532596[_0x55e78e(0x274)](_0xa0e940)?_0x2ab0ee=_0x532596[_0x55e78e(0x203)](_0xa0e940):(_0x2ab0ee=new _0x1fa751(),_0x532596[_0x55e78e(0x23f)](_0xa0e940,_0x2ab0ee),_0x2ab0ee[_0x55e78e(0x1f3)](_0x412eba((_0x1be19a=this[_0x55e78e(0x211)][_0x55e78e(0x231)](Ce))!=null?_0x1be19a:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x55e78e(0x245)](_0x171e6c=>{const _0x5bfaef=_0x55e78e;this['_collabSession'][_0x5bfaef(0x1d6)]({'eventID':_0x56ba98[_0x5bfaef(0x226)],'data':{'unitID':this[_0x5bfaef(0x205)],'operations':{[_0x171e6c['id']]:{'id':_0x171e6c['id'],'params':JSON[_0x5bfaef(0x241)](_0x171e6c[_0x5bfaef(0x240)])}}}},this['_unitID']);})),_0x2ab0ee[_0x55e78e(0x263)](_0x8dad7e);})),this[_0x4615e5(0x251)][_0x4615e5(0x1d8)](this[_0x4615e5(0x205)])[_0x4615e5(0x24e)](_0x31ec34=>this[_0x4615e5(0x271)]['send']({'eventID':_0x56ba98['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x31ec34['id']]:{'id':_0x31ec34['id'],'params':JSON[_0x4615e5(0x241)](_0x31ec34['params'])}}}},this[_0x4615e5(0x205)]));}[_0x57791f(0x266)](){const _0x382ee7=_0x57791f;var _0xb7c9ca;this['_status$'][_0x382ee7(0x263)](_0x382ee7(0x264)),(_0xb7c9ca=this[_0x382ee7(0x215)])==null||_0xb7c9ca[_0x382ee7(0x25d)](),this[_0x382ee7(0x215)]=null;}[_0x57791f(0x214)](){const _0x1a772e=_0x57791f;var _0x11c4fe;(_0x11c4fe=this[_0x1a772e(0x215)])==null||_0x11c4fe['dispose'](),this[_0x1a772e(0x1d5)][_0x1a772e(0x263)]('following');}[_0x57791f(0x204)](){const _0x2fe777=_0x57791f;var _0x27c535;this['_status$']['next']('idle'),(_0x27c535=this[_0x2fe777(0x215)])==null||_0x27c535[_0x2fe777(0x25d)](),this[_0x2fe777(0x215)]=null;}[_0x57791f(0x1d2)](){const _0x127a30=_0x57791f;var _0x19c61a;this[_0x127a30(0x1d5)][_0x127a30(0x263)](_0x127a30(0x229)),(_0x19c61a=this['_commandDisposable'])==null||_0x19c61a[_0x127a30(0x25d)]();}[_0x57791f(0x1e3)](_0x8d7c5a){const _0x11204e=_0x57791f;if(['presenting',_0x11204e(0x229),_0x11204e(0x1fc)][_0x11204e(0x21e)](this[_0x11204e(0x222)])||!_0x8d7c5a[_0x11204e(0x1f6)]['presenter']||_0x8d7c5a[_0x11204e(0x1f6)]['presenter']===this[_0x11204e(0x271)][_0x11204e(0x262)]())return;this[_0x11204e(0x222)]===_0x11204e(0x264)&&this[_0x11204e(0x214)]();const _0x1da320=_0x8d7c5a[_0x11204e(0x1f6)][_0x11204e(0x1e0)];Object['values'](_0x1da320)[_0x11204e(0x24e)](_0xf184b6=>{const _0x6e66e5=_0x11204e;this[_0x6e66e5(0x239)][_0x6e66e5(0x25b)](_0xf184b6['id'],_0xf184b6[_0x6e66e5(0x240)]?JSON[_0x6e66e5(0x207)](_0xf184b6[_0x6e66e5(0x240)]):null,{'fromCollab':!0x0});});}[_0x57791f(0x234)](){const _0x58f265=_0x57791f;var _0x44ee50;this[_0x58f265(0x1d5)][_0x58f265(0x263)](_0x58f265(0x1fc)),(_0x44ee50=this[_0x58f265(0x215)])==null||_0x44ee50['dispose']();}[_0x57791f(0x1ea)](){const _0x26abbb=_0x57791f;this[_0x26abbb(0x1d5)]['next'](_0x26abbb(0x264)),this['_fetchOperations']();}};N=Y([_(0x2,_0x1a7034),_(0x3,_0x58c47f(L)),_(0x4,_0x4ad104)],N);function Le(){const _0x351e8d=_0x57791f,_0x4a41c9=_0x173f99(S),_0x528556=_0x173f99(_0x50f749),_0x59b61c=_0xa17243(()=>_0x528556[_0x351e8d(0x268)](_0x469e4a[_0x351e8d(0x232)]),void 0x0,!0x1,[]),[_0x55ed1f,_0x110e5a]=_0x4faa64(null),[_0x162232,_0x11f8a1]=_0x4faa64(c['IDLE']),_0x2a11de=_0x1d2dfb(null);return _0x4695ab(()=>(_0x59b61c&&_0x4a41c9['getLiveShareCoordinator'](_0x59b61c[_0x351e8d(0x244)]())[_0x351e8d(0x275)](_0x2b9a46=>{const _0x4fa037=_0x351e8d;_0x110e5a(_0x2b9a46),_0x2a11de[_0x4fa037(0x228)]=_0x2b9a46['status$'][_0x4fa037(0x245)](_0x2a3f3c=>{_0x11f8a1(_0x2a3f3c);});}),()=>{const _0x554cef=_0x351e8d;var _0xda6676;(_0xda6676=_0x2a11de[_0x554cef(0x228)])==null||_0xda6676['unsubscribe'](),_0x2a11de['current']=null;}),[_0x59b61c,_0x4a41c9]),_0x55ed1f?_0x47899f(_0x4832fe,{'align':_0x351e8d(0x238),'disabled':_0x162232===c['OFFLINE'],'className':_0x351e8d(0x254),'overlay':_0x47899f(Re,{'status':_0x162232,'coordinator':_0x55ed1f}),'children':_0x47899f(_0x351e8d(0x219),{'className':_0x183b25('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x162232===c[_0x351e8d(0x23b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x162232!==c['OFFLINE']}),'type':_0x351e8d(0x219),'children':_0x47899f(W,{'className':_0x351e8d(0x256)})})}):null;}function Re(_0x483c74){const _0x123a3b=_0x57791f,{status:_0x36e11f,coordinator:_0x40aa0e}=_0x483c74;switch(_0x36e11f){case c['IDLE']:return _0x47899f($e,{'coordinator':_0x40aa0e});case c[_0x123a3b(0x26c)]:return _0x47899f(xe,{'coordinator':_0x40aa0e});case c['NOT_FOLLOWING']:return _0x47899f(Pe,{'coordinator':_0x40aa0e});case c[_0x123a3b(0x23b)]:return _0x47899f(Te,{});case c[_0x123a3b(0x218)]:return _0x47899f(Ae,{'coordinator':_0x40aa0e});default:return null;}}function $e(_0x2ec0b7){const _0x592010=_0x57791f,{coordinator:_0x56743c}=_0x2ec0b7;return _0x585bf4(_0x1aad73,{'children':[_0x47899f(_0x592010(0x277),{'className':_0x592010(0x26e),'children':_0x592010(0x1e1)}),_0x47899f(_0x16a64c,{'onClick':()=>_0x56743c[_0x592010(0x201)](),'children':'Start'})]});}function xe(_0x1d41fb){const _0x1b673f=_0x57791f,{coordinator:_0x5a53bc}=_0x1d41fb;return _0x585bf4(_0x1aad73,{'children':[_0x47899f(_0x1b673f(0x277),{'className':_0x1b673f(0x26e),'children':_0x1b673f(0x1fe)}),_0x47899f(_0x16a64c,{'onClick':()=>_0x5a53bc['stopFollowing'](),'children':_0x1b673f(0x1e7)})]});}function _0x47de(){const _0x3c95d4=['override','_mountLiveShare','_status','live-share.config','displayName','_handleNewChangeSets','LIVESHARE_OPERATION','following','current','not-following','LiveShareIcon','stopPresenting','LIVESHARE_TERMINATE','path','0\x200\x2017\x2017','Stop\x20presenting','colorChannel1','getConfig','UNIVER_SHEET','disposeWithMe','_handleOffline','4TJLgok','random','registerComponent','end','_commandService','1008753GEvfoZ','OFFLINE','registerSharedOperation','children','getTypeOfUnitAdded$','set','params','stringify','replace','HEADER_MENU','getUnitId','subscribe','unitId','currentColor','startFollowing','1em','11090430IlUFYP','defineProperty','SAME_OPERATION_SHARE_INTERVAL','261441NQGPMk','forEach','symbol','_univerInstanceService','_liveShareService','_handleNewHost','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','univer-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','attrs','univer-size-4','You\x27are\x20offline.','LIVESHARE_NEW_HOST','defIds','stopFollowing','executeCommand','11VJSatq','dispose','UNIVER_UNKNOWN','registerInitialStateReporter','evenodd','12kKvitr','getMemberID','next','idle','init','_stopPresenting','memberID','getCurrentTypeOfUnit$','21161zGZjmg','NOT_FOLLOWING','_injector','FOLLOWING','text','univer-mb-3\x20univer-w-full\x20univer-text-sm','onCommandExecuted','_config','_collabSession','getStatus','515DXQZWA','has','then','presenting','div','_stopFollowing','url(#$1','map','_status$','send','length','getInitialStates','getLiveShareCoordinator','event$','_uiPartsService','onStarting','add','_startLiveShareCoordinator','_sharedOperations','operations','Present\x20this\x20document','idSuffix','_handleOperation','856IFfoTP','mask','http://www.w3.org/2000/svg','Stop\x20following','_init','1813200yMlxFR','_handleOnline','fill','complete','substring','getOwnPropertyDescriptor','defs','IDLE','You\x27re\x20not\x20following\x20the\x20presenter','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','pipe','delete','NEW_CHANGESETS','data','entries','UniverIcon','string','use','You\x27re\x20presenting\x20the\x20document','offline','none','You\x27re\x20following\x20the\x20presenter','_handleTerminate','tag','tryStartPresenting','assign','get','_beIdle','_unitID','ONLINE','parse','live-share-icon','_reporters','getTypeOfUnitDisposed$','dispose$','createInstance','svg','_startPresenting','type','xlink:href','_configService','onRendered','_collabSessionService','_startFollowing','_commandDisposable','shouldShareOperation','_entities','PRESENTING','button','sessionStatus$','sheet','9677620iQvyAZ','UNIVER_LIVE_SHARE_PLUGIN','includes','_presenter'];_0x47de=function(){return _0x3c95d4;};return _0x47de();}function Pe(_0x1a8d45){const _0x2352cf=_0x57791f,{coordinator:_0x5ee68d}=_0x1a8d45;return _0x585bf4(_0x1aad73,{'children':[_0x47899f('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2352cf(0x1f1)}),_0x47899f(_0x16a64c,{'variant':_0x2352cf(0x26d),'onClick':()=>_0x5ee68d['startFollowing'](),'children':'Start\x20following'})]});}function Ae(_0x1cf91f){const _0x17f26e=_0x57791f,{coordinator:_0x24d478}=_0x1cf91f;return _0x585bf4(_0x1aad73,{'children':[_0x47899f(_0x17f26e(0x277),{'className':_0x17f26e(0x26e),'children':_0x17f26e(0x1fb)}),_0x47899f(_0x16a64c,{'variant':'default','onClick':()=>_0x24d478[_0x17f26e(0x22b)](),'children':_0x17f26e(0x22f)})]});}function Te(){const _0x4a2696=_0x57791f;return _0x47899f(_0x1aad73,{'children':_0x4a2696(0x257)});}var Fe=Object[_0x57791f(0x1ee)],He=(_0x4635cd,_0x152307,_0x54cc90,_0x9b6397)=>{for(var _0x165b97=_0x9b6397>0x1?void 0x0:_0x9b6397?Fe(_0x152307,_0x54cc90):_0x152307,_0x246d8c=_0x4635cd['length']-0x1,_0x2cd7bb;_0x246d8c>=0x0;_0x246d8c--)(_0x2cd7bb=_0x4635cd[_0x246d8c])&&(_0x165b97=_0x2cd7bb(_0x165b97)||_0x165b97);return _0x165b97;},A=(_0x5e26b1,_0x32acd7)=>(_0x5d1e97,_0x46f03e)=>_0x32acd7(_0x5d1e97,_0x46f03e,_0x5e26b1);function _0x2c32(_0x5a0cf3,_0x4af835){const _0x47de18=_0x47de();return _0x2c32=function(_0x2c32c3,_0x475c70){_0x2c32c3=_0x2c32c3-0x1d2;let _0x2d8eb4=_0x47de18[_0x2c32c3];return _0x2d8eb4;},_0x2c32(_0x5a0cf3,_0x4af835);}let m=class extends _0x586517{constructor(_0x5bc29f,_0x669945){const _0x492f2f=_0x57791f;super(),this[_0x492f2f(0x26b)]=_0x5bc29f,this[_0x492f2f(0x1db)]=_0x669945,this[_0x492f2f(0x221)]();}[_0x57791f(0x221)](){const _0x1961b3=_0x57791f;this[_0x1961b3(0x233)](this['_uiPartsService'][_0x1961b3(0x237)](_0x4296f0[_0x1961b3(0x243)],()=>_0x2e917a(Le,this[_0x1961b3(0x26b)])));}};m=He([A(0x0,_0x58c47f(_0x337fab)),A(0x1,_0x3ddec6)],m);const ye=_0x57791f(0x223),T={};var Ue=Object[_0x57791f(0x1ee)],Ve=(_0x4c05fd,_0x521b7d,_0x24d422,_0x46ba0d)=>{for(var _0x1082e2=_0x46ba0d>0x1?void 0x0:_0x46ba0d?Ue(_0x521b7d,_0x24d422):_0x521b7d,_0x52066d=_0x4c05fd['length']-0x1,_0x50cd03;_0x52066d>=0x0;_0x52066d--)(_0x50cd03=_0x4c05fd[_0x52066d])&&(_0x1082e2=_0x50cd03(_0x1082e2)||_0x1082e2);return _0x1082e2;},je=(_0x41c6af,_0x58d3f1)=>(_0x264d1b,_0x5b1415)=>_0x58d3f1(_0x264d1b,_0x5b1415,_0x41c6af);let I=class extends _0x586517{constructor(_0x1b6709){const _0x4f5b89=_0x57791f;super(),this[_0x4f5b89(0x251)]=_0x1b6709,this[_0x4f5b89(0x1e8)]();}['_init'](){const _0x37f275=_0x57791f;[_0x5ce85d['id'],_0x4c3e16['id'],_0x2d9b0e['id']][_0x37f275(0x24e)](_0x52bd69=>{const _0x444305=_0x37f275;this['disposeWithMe'](this[_0x444305(0x251)][_0x444305(0x23c)](_0x52bd69));});}};I=Ve([je(0x0,_0x58c47f(L))],I);var Me=Object[_0x57791f(0x24b)],ke=Object[_0x57791f(0x1ee)],Ge=(_0x8be206,_0x43c5eb,_0x4b3116)=>_0x43c5eb in _0x8be206?Me(_0x8be206,_0x43c5eb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b3116}):_0x8be206[_0x43c5eb]=_0x4b3116,We=(_0x56d12d,_0x10fa63,_0x1e8bcd,_0xd101f)=>{const _0x24fe95=_0x57791f;for(var _0xc4593f=_0xd101f>0x1?void 0x0:_0xd101f?ke(_0x10fa63,_0x1e8bcd):_0x10fa63,_0x29ad42=_0x56d12d[_0x24fe95(0x1d7)]-0x1,_0x4b0411;_0x29ad42>=0x0;_0x29ad42--)(_0x4b0411=_0x56d12d[_0x29ad42])&&(_0xc4593f=_0x4b0411(_0xc4593f)||_0xc4593f);return _0xc4593f;},F=(_0x52cd2e,_0x205c08)=>(_0x2d47ea,_0xae9b2e)=>_0x205c08(_0x2d47ea,_0xae9b2e,_0x52cd2e),B=(_0x3a9419,_0x45ee8a,_0xe1e9ef)=>Ge(_0x3a9419,typeof _0x45ee8a!=_0x57791f(0x24f)?_0x45ee8a+'':_0x45ee8a,_0xe1e9ef);const Ye=_0x57791f(0x21d);let b=class extends _0x288486{constructor(_0x4e3053=T,_0x1c7d2b,_0x447449){const _0x5b6543=_0x57791f;super(),this[_0x5b6543(0x270)]=_0x4e3053,this[_0x5b6543(0x26b)]=_0x1c7d2b,this[_0x5b6543(0x211)]=_0x447449;const {..._0x2c33b4}=_0x2293ae({},T,this[_0x5b6543(0x270)]);this[_0x5b6543(0x211)]['setConfig'](ye,_0x2c33b4);}[_0x57791f(0x1dc)](){const _0x2ea31a=_0x57791f;_0x1849c5(this['_injector'],_0x40e0b3([[L],[S],[I],[m]],this['_config'][_0x2ea31a(0x220)])),_0x5b1334(this['_injector'],[[I]]);}[_0x57791f(0x212)](){const _0x7498d=_0x57791f;_0x5b1334(this[_0x7498d(0x26b)],[[m]]);}};B(b,_0x57791f(0x20f),_0x469e4a[_0x57791f(0x25e)]),B(b,'pluginName',Ye),b=We([_0x54389d(_0x28e03d),F(0x1,_0x58c47f(_0x337fab)),F(0x2,_0x1a7034)],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 _0x2ea6be=_0x49cd;(function(_0x58954a,_0x8a898d){const _0x333a9e=_0x49cd,_0x2f8dbb=_0x58954a();while(!![]){try{const _0x13ce3c=parseInt(_0x333a9e(0xcb))/0x1*(-parseInt(_0x333a9e(0xa6))/0x2)+parseInt(_0x333a9e(0x122))/0x3*(parseInt(_0x333a9e(0xc0))/0x4)+-parseInt(_0x333a9e(0xcd))/0x5+-parseInt(_0x333a9e(0x120))/0x6+parseInt(_0x333a9e(0xa9))/0x7*(parseInt(_0x333a9e(0x117))/0x8)+parseInt(_0x333a9e(0xa2))/0x9*(-parseInt(_0x333a9e(0x11d))/0xa)+parseInt(_0x333a9e(0x101))/0xb;if(_0x13ce3c===_0x8a898d)break;else _0x2f8dbb['push'](_0x2f8dbb['shift']());}catch(_0x37dbef){_0x2f8dbb['push'](_0x2f8dbb['shift']());}}}(_0x15fb,0x6155b));var J=Object[_0x2ea6be(0x13a)],K=(_0x2e11b6,_0x28a3df,_0x337b48)=>_0x28a3df in _0x2e11b6?J(_0x2e11b6,_0x28a3df,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x337b48}):_0x2e11b6[_0x28a3df]=_0x337b48,u=(_0x3b053b,_0x202f46,_0x5f44bf)=>K(_0x3b053b,typeof _0x202f46!=_0x2ea6be(0xc3)?_0x202f46+'':_0x202f46,_0x5f44bf);import{Disposable as _0x12c3fa,toDisposable as _0x584876,IUniverInstanceService as _0x3b7b43,Inject as _0x45fbec,Injector as _0x399810,IConfigService as _0x1df196,ICommandService as _0x3baf05,RxDisposable as _0x1dfc47,UniverInstanceType as _0x2e2d5f,DisposableCollection as _0x10d2f7,CommandType as _0x80b771,DependentOn as _0x13786b,Plugin as _0x2ba041,merge as _0x490103,registerDependencies as _0x1521f6,mergeOverrideWithDependencies as _0x22600f,touchDependencies as _0x8311ba}from'@univerjs/core';import{useDependency as _0x9da0e7,useObservable as _0x3c7d62,IUIPartsService as _0x375885,BuiltInUIPart as _0x2d447a,connectInjector as _0x349ec9}from'@univerjs/ui';import{jsx as _0x1bf9fb,jsxs as _0x37edb3,Fragment as _0x3e40e6}from'react/jsx-runtime';function _0x49cd(_0x2c8a31,_0x4a3f47){const _0x15fb22=_0x15fb();return _0x49cd=function(_0x49cd6b,_0xcfad4){_0x49cd6b=_0x49cd6b-0x98;let _0x39c34a=_0x15fb22[_0x49cd6b];return _0x39c34a;},_0x49cd(_0x2c8a31,_0x4a3f47);}import{Dropdown as _0x40b541,clsx as _0x27fdaa,Button as _0x2a847b}from'@univerjs/design';import{useRef as _0x1503e0,createElement as _0x11d6cb,forwardRef as _0x417636,useState as _0x1207e6,useEffect as _0x2cb5e3}from'react';import{CollaborationEvent as _0x42c5fe,parseProtocolChangeset as _0x1346fe}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xbc008d,SessionStatus as _0x1c20d9,UniverCollaborationClientPlugin as _0x3a5e2e}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4c5605,SetWorksheetActiveOperation as _0x3a2a1b}from'@univerjs/sheets';import{BehaviorSubject as _0x157a6a,Subject as _0x31dba2}from'rxjs';import{takeUntil as _0x1c8b29,throttleTime as _0x9876f1}from'rxjs/operators';import{SetZoomRatioOperation as _0x1aa70f,SetScrollOperation as _0x315c38}from'@univerjs/sheets-ui';function k({ref:_0x16f73a,..._0x8cdf57}){const _0x295e99=_0x2ea6be,{icon:_0x2cff5b,id:_0xfcee0f,className:_0x4af074,extend:_0x41c0d1,..._0x4bb730}=_0x8cdf57,_0xe13769=(_0x295e99(0xba)+_0xfcee0f+'\x20'+(_0x4af074||''))[_0x295e99(0x12c)](),_0x567818=_0x1503e0('_'+Oe());return G(_0x2cff5b,''+_0xfcee0f,{'defIds':_0x2cff5b['defIds'],'idSuffix':_0x567818[_0x295e99(0x111)]},{'ref':_0x16f73a,'className':_0xe13769,..._0x4bb730},_0x41c0d1);}function G(_0x39c9d5,_0x484751,_0xa2867e,_0x1afee0,_0xfbc5d2){const _0x397b7a=_0x2ea6be;return _0x11d6cb(_0x39c9d5['tag'],{'key':_0x484751,...be(_0x39c9d5,_0xa2867e,_0xfbc5d2),..._0x1afee0},(Ee(_0x39c9d5,_0xa2867e)['children']||[])['map']((_0x1d7125,_0x553b20)=>G(_0x1d7125,_0x484751+'-'+_0x39c9d5[_0x397b7a(0xb5)]+'-'+_0x553b20,_0xa2867e,void 0x0,_0xfbc5d2)));}function be(_0x505488,_0x58a222,_0xbe6184){const _0x4c9f0f=_0x2ea6be,_0x4a84fc={..._0x505488[_0x4c9f0f(0x9b)]};_0xbe6184!=null&&_0xbe6184[_0x4c9f0f(0x115)]&&_0x4a84fc[_0x4c9f0f(0xd2)]===_0x4c9f0f(0x115)&&(_0x4a84fc['fill']=_0xbe6184[_0x4c9f0f(0x115)]),_0x505488[_0x4c9f0f(0xb5)]===_0x4c9f0f(0x9d)&&_0x4a84fc['id']&&(_0x4a84fc['id']=_0x4a84fc['id']+_0x58a222[_0x4c9f0f(0xf9)]),Object['entries'](_0x4a84fc)[_0x4c9f0f(0x118)](([_0x3d9ea5,_0x5b15b0])=>{const _0x4850ae=_0x4c9f0f;_0x3d9ea5===_0x4850ae(0x9d)&&typeof _0x5b15b0=='string'&&(_0x4a84fc[_0x3d9ea5]=_0x5b15b0[_0x4850ae(0x131)](/url\(#(.*)\)/,_0x4850ae(0xe5)+_0x58a222[_0x4850ae(0xf9)]+')'));});const {defIds:_0x1d561a}=_0x58a222;return!_0x1d561a||_0x1d561a['length']===0x0||(_0x505488[_0x4c9f0f(0xb5)]===_0x4c9f0f(0xfd)&&_0x4a84fc[_0x4c9f0f(0xd7)]&&(_0x4a84fc['xlink:href']=_0x4a84fc['xlink:href']+_0x58a222[_0x4c9f0f(0xf9)]),Object[_0x4c9f0f(0x128)](_0x4a84fc)[_0x4c9f0f(0x118)](([_0x4b03e4,_0x2d0de4])=>{const _0x4118e7=_0x4c9f0f;typeof _0x2d0de4==_0x4118e7(0x103)&&(_0x4a84fc[_0x4b03e4]=_0x2d0de4[_0x4118e7(0x131)](/url\(#(.*)\)/,_0x4118e7(0xe5)+_0x58a222[_0x4118e7(0xf9)]+')'));})),_0x4a84fc;}function Ee(_0x28aa11,_0x7d675c){const _0x2bb155=_0x2ea6be;var _0x568ae0;const {defIds:_0x584821}=_0x7d675c;return!_0x584821||_0x584821['length']===0x0?_0x28aa11:_0x28aa11['tag']===_0x2bb155(0x124)&&((_0x568ae0=_0x28aa11[_0x2bb155(0xd1)])!=null&&_0x568ae0['length'])?{..._0x28aa11,'children':_0x28aa11[_0x2bb155(0xd1)][_0x2bb155(0x133)](_0x5131a0=>typeof _0x5131a0[_0x2bb155(0x9b)]['id']==_0x2bb155(0x103)&&_0x584821&&_0x584821[_0x2bb155(0xeb)](_0x5131a0[_0x2bb155(0x9b)]['id'])?{..._0x5131a0,'attrs':{..._0x5131a0['attrs'],'id':_0x5131a0[_0x2bb155(0x9b)]['id']+_0x7d675c[_0x2bb155(0xf9)]}}:_0x5131a0)}:_0x28aa11;}function Oe(){const _0xf612c8=_0x2ea6be;return Math[_0xf612c8(0x104)]()['toString'](0x24)[_0xf612c8(0xee)](0x2,0x8);}k['displayName']=_0x2ea6be(0x12b);const we={'tag':_0x2ea6be(0xc9),'attrs':{'xmlns':_0x2ea6be(0xec),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x2ea6be(0xae),'height':_0x2ea6be(0xae)},'children':[{'tag':_0x2ea6be(0xdc),'attrs':{'fill':_0x2ea6be(0x10b),'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':_0x2ea6be(0xdc),'attrs':{'fill':'currentColor','d':_0x2ea6be(0x116),'fillRule':_0x2ea6be(0xc5),'clipRule':_0x2ea6be(0xc5)}}]},W=_0x417636(function(_0x263c4b,_0x262eaa){const _0x178b76=_0x2ea6be;return _0x11d6cb(k,Object[_0x178b76(0xfa)]({},_0x263c4b,{'id':_0x178b76(0x11b),'ref':_0x262eaa,'icon':we}));});W[_0x2ea6be(0xa4)]=_0x2ea6be(0xb4);class L extends _0x12c3fa{constructor(){super(...arguments),u(this,'_sharedOperations',new Set()),u(this,'_reporters',new Set());}[_0x2ea6be(0x113)](_0x1e70b4){const _0x4de52b=_0x2ea6be;return this['_sharedOperations'][_0x4de52b(0xab)](_0x1e70b4),_0x584876(()=>this[_0x4de52b(0xa5)]['delete'](_0x1e70b4));}[_0x2ea6be(0x110)](_0x132600){const _0x56ceb6=_0x2ea6be;return this['_reporters'][_0x56ceb6(0xab)](_0x132600),_0x584876(()=>this[_0x56ceb6(0xc2)]['delete'](_0x132600));}[_0x2ea6be(0x12a)](_0x547380){const _0x3c05d2=_0x2ea6be;return this[_0x3c05d2(0xa5)]['has'](_0x547380);}[_0x2ea6be(0xad)](_0x340855){const _0x32fe0f=_0x2ea6be;return Array['from'](this[_0x32fe0f(0xc2)])[_0x32fe0f(0x133)](_0x48b049=>_0x48b049(_0x340855));}}var Ne=Object[_0x2ea6be(0xde)],Y=(_0x8273ec,_0x46a5f6,_0x383a4f,_0xd51d3d)=>{const _0x446ea0=_0x2ea6be;for(var _0x588e2e=_0xd51d3d>0x1?void 0x0:_0xd51d3d?Ne(_0x46a5f6,_0x383a4f):_0x46a5f6,_0x3d7daa=_0x8273ec[_0x446ea0(0x136)]-0x1,_0x16bc18;_0x3d7daa>=0x0;_0x3d7daa--)(_0x16bc18=_0x8273ec[_0x3d7daa])&&(_0x588e2e=_0x16bc18(_0x588e2e)||_0x588e2e);return _0x588e2e;},_=(_0x5cb4c2,_0x23b49f)=>(_0x37d02c,_0x89c3e0)=>_0x23b49f(_0x37d02c,_0x89c3e0,_0x5cb4c2);let S=class extends _0x1dfc47{constructor(_0x522ea0,_0x1ee33b,_0x274366){const _0x29ebfe=_0x2ea6be;super(),u(this,_0x29ebfe(0x119),new Map()),(this[_0x29ebfe(0x107)]=_0x522ea0,this[_0x29ebfe(0x109)]=_0x1ee33b,this[_0x29ebfe(0xf5)]=_0x274366,this[_0x29ebfe(0xa0)]());}async[_0x2ea6be(0xbe)](_0x51e03b){const _0x4dca50=_0x2ea6be;return this['_entities']['has'](_0x51e03b)||await this[_0x4dca50(0x123)](_0x51e03b),this[_0x4dca50(0x119)][_0x4dca50(0x106)](_0x51e03b);}[_0x2ea6be(0x129)](_0x5450b6){var _0x223061;return(_0x223061=this['_entities']['get'](_0x5450b6))!=null?_0x223061:null;}[_0x2ea6be(0xa0)](){const _0x3d460e=_0x2ea6be;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x2e2d5f[_0x3d460e(0x114)])[_0x3d460e(0xff)](_0x1c8b29(this[_0x3d460e(0x13d)]))['subscribe'](async _0xd278eb=>{const _0x404d07=_0x3d460e,_0x3a01eb=_0xd278eb[_0x404d07(0x12e)]();this[_0x404d07(0x119)][_0x404d07(0x11f)](_0x3a01eb)||this[_0x404d07(0x123)](_0x3a01eb);}),this[_0x3d460e(0x107)][_0x3d460e(0x100)](_0x2e2d5f[_0x3d460e(0x114)])[_0x3d460e(0xff)](_0x1c8b29(this[_0x3d460e(0x13d)]))['subscribe'](_0x585768=>{const _0x1d9d38=_0x3d460e,_0x5c0c3f=_0x585768[_0x1d9d38(0x12e)](),_0x5e5185=this[_0x1d9d38(0x119)][_0x1d9d38(0x106)](_0x5c0c3f);_0x5e5185==null||_0x5e5185['dispose']();});}async[_0x2ea6be(0x123)](_0x13ed16){const _0x43254b=_0x2ea6be,_0x5ddcc5=await this[_0x43254b(0xf5)][_0x43254b(0xe3)](_0x13ed16),_0x299acd=this[_0x43254b(0x109)]['createInstance'](N,_0x13ed16,_0x5ddcc5);return _0x299acd['init'](),this[_0x43254b(0x119)][_0x43254b(0xa3)](_0x13ed16,_0x299acd),_0x299acd;}};S=Y([_(0x0,_0x3b7b43),_(0x1,_0x45fbec(_0x399810)),_(0x2,_0x45fbec(_0xbc008d))],S);var c=(_0x1833e8=>(_0x1833e8[_0x2ea6be(0xe8)]=_0x2ea6be(0x121),_0x1833e8['IDLE']='idle',_0x1833e8['FOLLOWING']=_0x2ea6be(0xbb),_0x1833e8[_0x2ea6be(0xf2)]=_0x2ea6be(0xf6),_0x1833e8[_0x2ea6be(0xaa)]=_0x2ea6be(0xcf),_0x1833e8))(c||{});const Ce=_0x2ea6be(0xea),De=0xc8;let N=class extends _0x1dfc47{constructor(_0x5c3bbc,_0x216eb0,_0x4c2680,_0x477470,_0x3f6108){const _0x26a6f0=_0x2ea6be;super(),u(this,'_status$',new _0x157a6a(_0x26a6f0(0xe6))),u(this,_0x26a6f0(0x140),this[_0x26a6f0(0xb3)]['asObservable']()),u(this,_0x26a6f0(0xa0),!0x1),u(this,_0x26a6f0(0xe2),null),u(this,'_presenter',null),(this['_unitID']=_0x5c3bbc,this[_0x26a6f0(0xe9)]=_0x216eb0,this[_0x26a6f0(0xd4)]=_0x4c2680,this['_liveShareService']=_0x477470,this[_0x26a6f0(0xcc)]=_0x3f6108);}get[_0x2ea6be(0xb0)](){return this['_status$']['getValue']();}[_0x2ea6be(0xf4)](){const _0x4aaddf=_0x2ea6be;var _0x2e6f29;(_0x2e6f29=this[_0x4aaddf(0xe2)])==null||_0x2e6f29['dispose'](),this[_0x4aaddf(0xb3)][_0x4aaddf(0x13e)](_0x4aaddf(0xe6)),this[_0x4aaddf(0xb3)][_0x4aaddf(0xfb)]();}[_0x2ea6be(0xb6)](){const _0x4db9cc=_0x2ea6be;return this[_0x4db9cc(0xb0)];}[_0x2ea6be(0x137)](){const _0x4aab15=_0x2ea6be;this[_0x4aab15(0xa0)]||(this[_0x4aab15(0xa0)]=!0x0,this[_0x4aab15(0xe9)][_0x4aab15(0x139)][_0x4aab15(0xff)](_0x1c8b29(this[_0x4aab15(0x13d)]))['subscribe'](_0xb92fcb=>{const _0x115ca1=_0x4aab15;switch(_0xb92fcb){case _0x1c20d9[_0x115ca1(0xe8)]:this[_0x115ca1(0xf8)]();break;case _0x1c20d9[_0x115ca1(0xda)]:this[_0x115ca1(0x102)]();break;}}),this['_collabSession'][_0x4aab15(0xe4)][_0x4aab15(0xff)](_0x1c8b29(this[_0x4aab15(0x13d)]))['subscribe'](_0x9fa169=>{const _0x4b0b9d=_0x4aab15,{eventID:_0x34e6b0}=_0x9fa169;switch(_0x34e6b0){case _0x42c5fe['LIVESHARE_NEW_HOST']:this[_0x4b0b9d(0x10c)](_0x9fa169);break;case _0x42c5fe[_0x4b0b9d(0xf1)]:this[_0x4b0b9d(0xdf)](_0x9fa169);break;case _0x42c5fe[_0x4b0b9d(0x13b)]:this[_0x4b0b9d(0xb8)]();break;case _0x42c5fe[_0x4b0b9d(0x141)]:this['_handleNewChangeSets'](_0x9fa169);break;}}));}[_0x2ea6be(0x112)](){const _0x46ad1d=_0x2ea6be;this[_0x46ad1d(0xe9)][_0x46ad1d(0xbc)]({'eventID':_0x42c5fe[_0x46ad1d(0x10f)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession']['getMemberID']()}},this[_0x46ad1d(0x9c)]);}[_0x2ea6be(0x10a)](){const _0x212eca=_0x2ea6be;this[_0x212eca(0xb0)]===_0x212eca(0xcf)&&(this[_0x212eca(0xb3)]['next'](_0x212eca(0xe6)),this[_0x212eca(0xe9)][_0x212eca(0xbc)]({'eventID':_0x42c5fe['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x212eca(0x9c)]}},this[_0x212eca(0x9c)]));}[_0x2ea6be(0x9f)](){const _0x5a5a39=_0x2ea6be;this[_0x5a5a39(0xb0)]===_0x5a5a39(0xf6)&&(this[_0x5a5a39(0xb3)][_0x5a5a39(0x13e)](_0x5a5a39(0xbb)),this['_startFollowing']());}[_0x2ea6be(0xfe)](){const _0x3eefc1=_0x2ea6be;this[_0x3eefc1(0xb0)]===_0x3eefc1(0xbb)&&this[_0x3eefc1(0xb1)]();}['_handleNewHost'](_0xc39ef3){const _0xa85448=_0x2ea6be,{presenter:_0x9c3efb}=_0xc39ef3[_0xa85448(0x138)],_0x52d7ea=this['_collabSession'][_0xa85448(0x11e)]();this[_0xa85448(0xe7)]=_0x9c3efb,_0x9c3efb===_0x52d7ea?(this[_0xa85448(0xb1)](),this[_0xa85448(0xf3)]()):this[_0xa85448(0xb0)]!==_0xa85448(0xf6)&&(this[_0xa85448(0xe1)](),this[_0xa85448(0x9e)]());}[_0x2ea6be(0x127)](){const _0x436e6a=_0x2ea6be,_0xed2c31={'eventID':_0x42c5fe['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x436e6a(0xbc)](_0xed2c31,this['_unitID']);}[_0x2ea6be(0xb8)](){const _0x4da68b=_0x2ea6be;this[_0x4da68b(0xe7)]=null,this['_status']!=='presenting'&&this['_beIdle']();}[_0x2ea6be(0xd3)](_0x203295){const _0x97b91=_0x2ea6be;if(this['_status']==='following'&&this[_0x97b91(0xe7)]===_0x203295[_0x97b91(0x138)][_0x97b91(0xc1)]){const _0x4063e0=_0x1346fe(_0x203295[_0x97b91(0x138)])['mutations'][_0x97b91(0xca)]()[_0x97b91(0xef)](_0x23e9b7=>_0x23e9b7['id']===_0x4c5605['id']);if(_0x4063e0){const _0x33d668=_0x4063e0['params'][_0x97b91(0x12f)],_0x1e5c33=_0x4063e0[_0x97b91(0xdd)][_0x97b91(0x108)]['id'];setTimeout(()=>{const _0x531eac=_0x97b91;this[_0x531eac(0xcc)]['executeCommand'](_0x3a2a1b['id'],{'unitId':_0x33d668,'subUnitId':_0x1e5c33},{'fromCollab':!0x0});});}}}[_0x2ea6be(0xf3)](){const _0x324603=_0x2ea6be;this[_0x324603(0xb3)][_0x324603(0x13e)]('presenting');const _0x12d150=new Map(),_0x231160=this[_0x324603(0xe2)]=new _0x10d2f7();_0x231160[_0x324603(0xab)](_0x584876(()=>{const _0x27b589=_0x324603;_0x12d150[_0x27b589(0x118)](_0x55f907=>_0x55f907['complete']()),_0x12d150[_0x27b589(0xbd)]();})),_0x231160[_0x324603(0xab)](this['_commandService'][_0x324603(0xb7)](_0x242adf=>{const _0x2bdd48=_0x324603;var _0x1e769d;if(_0x242adf[_0x2bdd48(0x132)]!==_0x80b771['OPERATION']||!this['_liveShareService'][_0x2bdd48(0x12a)](_0x242adf['id']))return;const {id:_0x333d09}=_0x242adf;let _0x5b7b51;_0x12d150['has'](_0x333d09)?_0x5b7b51=_0x12d150['get'](_0x333d09):(_0x5b7b51=new _0x31dba2(),_0x12d150[_0x2bdd48(0xa3)](_0x333d09,_0x5b7b51),_0x5b7b51[_0x2bdd48(0xff)](_0x9876f1((_0x1e769d=this[_0x2bdd48(0xd4)]['getConfig'](Ce))!=null?_0x1e769d:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2bdd48(0x135)](_0x380db4=>{const _0x1acc1a=_0x2bdd48;this[_0x1acc1a(0xe9)][_0x1acc1a(0xbc)]({'eventID':_0x42c5fe['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1acc1a(0x9c)],'operations':{[_0x380db4['id']]:{'id':_0x380db4['id'],'params':JSON[_0x1acc1a(0xa8)](_0x380db4[_0x1acc1a(0xdd)])}}}},this[_0x1acc1a(0x9c)]);})),_0x5b7b51[_0x2bdd48(0x13e)](_0x242adf);})),this[_0x324603(0x10e)]['getInitialStates'](this[_0x324603(0x9c)])[_0x324603(0x118)](_0x551f18=>this[_0x324603(0xe9)][_0x324603(0xbc)]({'eventID':_0x42c5fe[_0x324603(0xf1)],'data':{'unitID':this[_0x324603(0x9c)],'operations':{[_0x551f18['id']]:{'id':_0x551f18['id'],'params':JSON['stringify'](_0x551f18['params'])}}}},this[_0x324603(0x9c)]));}[_0x2ea6be(0xe1)](){const _0x159538=_0x2ea6be;var _0x95769f;this[_0x159538(0xb3)][_0x159538(0x13e)](_0x159538(0xe6)),(_0x95769f=this['_commandDisposable'])==null||_0x95769f[_0x159538(0xf4)](),this[_0x159538(0xe2)]=null;}[_0x2ea6be(0x9e)](){const _0x3f1848=_0x2ea6be;var _0x4ab9e8;(_0x4ab9e8=this['_commandDisposable'])==null||_0x4ab9e8[_0x3f1848(0xf4)](),this['_status$'][_0x3f1848(0x13e)]('following');}[_0x2ea6be(0xc4)](){const _0x362e96=_0x2ea6be;var _0x31b924;this[_0x362e96(0xb3)][_0x362e96(0x13e)](_0x362e96(0xe6)),(_0x31b924=this[_0x362e96(0xe2)])==null||_0x31b924[_0x362e96(0xf4)](),this[_0x362e96(0xe2)]=null;}[_0x2ea6be(0xb1)](){const _0x2f60ff=_0x2ea6be;var _0x457dfd;this[_0x2f60ff(0xb3)][_0x2f60ff(0x13e)](_0x2f60ff(0xf6)),(_0x457dfd=this[_0x2f60ff(0xe2)])==null||_0x457dfd[_0x2f60ff(0xf4)]();}[_0x2ea6be(0xdf)](_0x4a1487){const _0x307e8e=_0x2ea6be;if([_0x307e8e(0xcf),'not-following',_0x307e8e(0x121)]['includes'](this[_0x307e8e(0xb0)])||!_0x4a1487[_0x307e8e(0x138)][_0x307e8e(0xb2)]||_0x4a1487[_0x307e8e(0x138)][_0x307e8e(0xb2)]===this[_0x307e8e(0xe9)]['getMemberID']())return;this['_status']===_0x307e8e(0xe6)&&this['_startFollowing']();const _0x325b4e=_0x4a1487[_0x307e8e(0x138)]['operations'];Object['values'](_0x325b4e)['forEach'](_0x27b723=>{const _0x7d2969=_0x307e8e;this[_0x7d2969(0xcc)][_0x7d2969(0xf0)](_0x27b723['id'],_0x27b723[_0x7d2969(0xdd)]?JSON[_0x7d2969(0xbf)](_0x27b723['params']):null,{'fromCollab':!0x0});});}[_0x2ea6be(0xf8)](){const _0x290b65=_0x2ea6be;var _0x20b23f;this[_0x290b65(0xb3)][_0x290b65(0x13e)]('offline'),(_0x20b23f=this[_0x290b65(0xe2)])==null||_0x20b23f[_0x290b65(0xf4)]();}[_0x2ea6be(0x102)](){const _0x5dc008=_0x2ea6be;this['_status$']['next']('idle'),this[_0x5dc008(0x127)]();}};N=Y([_(0x2,_0x1df196),_(0x3,_0x45fbec(L)),_(0x4,_0x3baf05)],N);function Le(){const _0x4770be=_0x2ea6be,_0x5b4dcf=_0x9da0e7(S),_0x2badab=_0x9da0e7(_0x3b7b43),_0x27b375=_0x3c7d62(()=>_0x2badab[_0x4770be(0xc6)](_0x2e2d5f[_0x4770be(0x114)]),void 0x0,!0x1,[]),[_0x1c7c73,_0x473b16]=_0x1207e6(null),[_0x1f3eee,_0x5ee717]=_0x1207e6(c[_0x4770be(0x99)]),_0x29264c=_0x1503e0(null);return _0x2cb5e3(()=>(_0x27b375&&_0x5b4dcf[_0x4770be(0xbe)](_0x27b375[_0x4770be(0x12e)]())[_0x4770be(0xb9)](_0x3e3bcc=>{const _0x369495=_0x4770be;_0x473b16(_0x3e3bcc),_0x29264c[_0x369495(0x111)]=_0x3e3bcc[_0x369495(0x140)]['subscribe'](_0x47d4bd=>{_0x5ee717(_0x47d4bd);});}),()=>{const _0x5edb92=_0x4770be;var _0x253e9f;(_0x253e9f=_0x29264c[_0x5edb92(0x111)])==null||_0x253e9f[_0x5edb92(0x10d)](),_0x29264c[_0x5edb92(0x111)]=null;}),[_0x27b375,_0x5b4dcf]),_0x1c7c73?_0x1bf9fb(_0x40b541,{'align':_0x4770be(0xe0),'disabled':_0x1f3eee===c['OFFLINE'],'className':_0x4770be(0xc7),'overlay':_0x1bf9fb(Re,{'status':_0x1f3eee,'coordinator':_0x1c7c73}),'children':_0x1bf9fb(_0x4770be(0xd8),{'className':_0x27fdaa(_0x4770be(0xac),{'univer-cursor-not-allowed':_0x1f3eee===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1f3eee!==c['OFFLINE']}),'type':_0x4770be(0xd8),'children':_0x1bf9fb(W,{'className':_0x4770be(0x130)})})}):null;}function Re(_0x3d886a){const _0x4b417e=_0x2ea6be,{status:_0x2bb387,coordinator:_0x3a1940}=_0x3d886a;switch(_0x2bb387){case c['IDLE']:return _0x1bf9fb($e,{'coordinator':_0x3a1940});case c[_0x4b417e(0x126)]:return _0x1bf9fb(xe,{'coordinator':_0x3a1940});case c[_0x4b417e(0xf2)]:return _0x1bf9fb(Pe,{'coordinator':_0x3a1940});case c[_0x4b417e(0xe8)]:return _0x1bf9fb(Te,{});case c[_0x4b417e(0xaa)]:return _0x1bf9fb(Ae,{'coordinator':_0x3a1940});default:return null;}}function $e(_0x5cab16){const _0x3bd49c=_0x2ea6be,{coordinator:_0x27f362}=_0x5cab16;return _0x37edb3(_0x3e40e6,{'children':[_0x1bf9fb(_0x3bd49c(0xdb),{'className':_0x3bd49c(0xf7),'children':_0x3bd49c(0x11c)}),_0x1bf9fb(_0x2a847b,{'onClick':()=>_0x27f362[_0x3bd49c(0x112)](),'children':_0x3bd49c(0x13f)})]});}function xe(_0x3c6765){const _0x4d985e=_0x2ea6be,{coordinator:_0x247d83}=_0x3c6765;return _0x37edb3(_0x3e40e6,{'children':[_0x1bf9fb(_0x4d985e(0xdb),{'className':_0x4d985e(0xf7),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x1bf9fb(_0x2a847b,{'onClick':()=>_0x247d83[_0x4d985e(0xfe)](),'children':_0x4d985e(0x13c)})]});}function Pe(_0x3e681a){const _0x285e8d=_0x2ea6be,{coordinator:_0x56c699}=_0x3e681a;return _0x37edb3(_0x3e40e6,{'children':[_0x1bf9fb(_0x285e8d(0xdb),{'className':_0x285e8d(0xf7),'children':_0x285e8d(0x125)}),_0x1bf9fb(_0x2a847b,{'variant':_0x285e8d(0xfc),'onClick':()=>_0x56c699['startFollowing'](),'children':_0x285e8d(0x105)})]});}function Ae(_0x27321f){const _0x30112f=_0x2ea6be,{coordinator:_0x25a605}=_0x27321f;return _0x37edb3(_0x3e40e6,{'children':[_0x1bf9fb('div',{'className':_0x30112f(0xf7),'children':_0x30112f(0xd5)}),_0x1bf9fb(_0x2a847b,{'variant':_0x30112f(0xd9),'onClick':()=>_0x25a605[_0x30112f(0x10a)](),'children':_0x30112f(0xa1)})]});}function Te(){return _0x1bf9fb(_0x3e40e6,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x2ea6be(0xde)],He=(_0x53a062,_0x5bf32b,_0x154013,_0x39bf97)=>{const _0x45f702=_0x2ea6be;for(var _0x42ddd3=_0x39bf97>0x1?void 0x0:_0x39bf97?Fe(_0x5bf32b,_0x154013):_0x5bf32b,_0x564a7a=_0x53a062[_0x45f702(0x136)]-0x1,_0x419558;_0x564a7a>=0x0;_0x564a7a--)(_0x419558=_0x53a062[_0x564a7a])&&(_0x42ddd3=_0x419558(_0x42ddd3)||_0x42ddd3);return _0x42ddd3;},A=(_0x3afd40,_0x39a568)=>(_0x141ea2,_0x29c96d)=>_0x39a568(_0x141ea2,_0x29c96d,_0x3afd40);let m=class extends _0x12c3fa{constructor(_0x4d6183,_0x363a8c){const _0xb45106=_0x2ea6be;super(),this[_0xb45106(0x109)]=_0x4d6183,this[_0xb45106(0xaf)]=_0x363a8c,this[_0xb45106(0x9a)]();}[_0x2ea6be(0x9a)](){const _0x4074f4=_0x2ea6be;this[_0x4074f4(0xa7)](this['_uiPartsService'][_0x4074f4(0x12d)](_0x2d447a['HEADER_MENU'],()=>_0x349ec9(Le,this[_0x4074f4(0x109)])));}};m=He([A(0x0,_0x45fbec(_0x399810)),A(0x1,_0x375885)],m);const ye=_0x2ea6be(0x98),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x289b16,_0x1b30b5,_0x2cac26,_0x29c1b8)=>{const _0x33c829=_0x2ea6be;for(var _0x7d1f05=_0x29c1b8>0x1?void 0x0:_0x29c1b8?Ue(_0x1b30b5,_0x2cac26):_0x1b30b5,_0x45b4bb=_0x289b16[_0x33c829(0x136)]-0x1,_0x311503;_0x45b4bb>=0x0;_0x45b4bb--)(_0x311503=_0x289b16[_0x45b4bb])&&(_0x7d1f05=_0x311503(_0x7d1f05)||_0x7d1f05);return _0x7d1f05;},je=(_0x1648aa,_0xe26d33)=>(_0x8cc354,_0x1e2640)=>_0xe26d33(_0x8cc354,_0x1e2640,_0x1648aa);let I=class extends _0x12c3fa{constructor(_0x232ffa){super(),this['_liveShareService']=_0x232ffa,this['_init']();}[_0x2ea6be(0xa0)](){const _0x3eb71f=_0x2ea6be;[_0x1aa70f['id'],_0x315c38['id'],_0x3a2a1b['id']][_0x3eb71f(0x118)](_0x1a730c=>{const _0x13e5ae=_0x3eb71f;this['disposeWithMe'](this[_0x13e5ae(0x10e)][_0x13e5ae(0x113)](_0x1a730c));});}};function _0x15fb(){const _0x426be7=['7430UkTDHW','getMemberID','has','2259186wyYFcL','offline','1211043mOKWXS','_startLiveShareCoordinator','defs','You\x27re\x20not\x20following\x20the\x20presenter','FOLLOWING','_fetchOperations','entries','getLiveShareCoordinatorSync','shouldShareOperation','UniverIcon','trim','registerComponent','getUnitId','unitId','univer-size-4','replace','type','map','onStarting','subscribe','length','init','data','sessionStatus$','defineProperty','LIVESHARE_TERMINATE','Stop\x20following','dispose$','next','Start','status$','NEW_CHANGESETS','live-share.config','IDLE','_mountLiveShare','attrs','_unitID','mask','_startFollowing','startFollowing','_init','Stop\x20presenting','5346aMKmRG','set','displayName','_sharedOperations','2JWtRNv','disposeWithMe','stringify','7EpPDJM','PRESENTING','add','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getInitialStates','1em','_uiPartsService','_status','_stopFollowing','presenter','_status$','LiveShareIcon','tag','getStatus','onCommandExecuted','_handleTerminate','then','univerjs-icon\x20univerjs-icon-','following','send','clear','getLiveShareCoordinator','parse','4jNVfMc','memberID','_reporters','symbol','_beIdle','evenodd','getCurrentTypeOfUnit$','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','UNIVER_UNKNOWN','svg','reverse','178501Yyhydf','_commandService','3224755avPCfs','override','presenting','_config','children','fill','_handleNewChangeSets','_configService','You\x27re\x20presenting\x20the\x20document','pluginName','xlink:href','button','default','ONLINE','div','path','params','getOwnPropertyDescriptor','_handleOperation','end','_stopPresenting','_commandDisposable','requireSession','event$','url(#$1','idle','_presenter','OFFLINE','_collabSession','SAME_OPERATION_SHARE_INTERVAL','includes','http://www.w3.org/2000/svg','setConfig','substring','find','executeCommand','LIVESHARE_OPERATION','NOT_FOLLOWING','_startPresenting','dispose','_collabSessionService','not-following','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleOffline','idSuffix','assign','complete','text','use','stopFollowing','pipe','getTypeOfUnitDisposed$','12873773OtAkzH','_handleOnline','string','random','Start\x20following','get','_univerInstanceService','sheet','_injector','stopPresenting','currentColor','_handleNewHost','unsubscribe','_liveShareService','LIVESHARE_REQUEST_HOST','registerInitialStateReporter','current','tryStartPresenting','registerSharedOperation','UNIVER_SHEET','colorChannel1','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','3727872uHVkbR','forEach','_entities','onRendered','live-share-icon','Present\x20this\x20document'];_0x15fb=function(){return _0x426be7;};return _0x15fb();}I=Ve([je(0x0,_0x45fbec(L))],I);var Me=Object[_0x2ea6be(0x13a)],ke=Object[_0x2ea6be(0xde)],Ge=(_0x46ec87,_0x43ca8b,_0x3b1ed3)=>_0x43ca8b in _0x46ec87?Me(_0x46ec87,_0x43ca8b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b1ed3}):_0x46ec87[_0x43ca8b]=_0x3b1ed3,We=(_0x532e34,_0x1f4d85,_0x4b5236,_0x2ba5d2)=>{for(var _0x15180d=_0x2ba5d2>0x1?void 0x0:_0x2ba5d2?ke(_0x1f4d85,_0x4b5236):_0x1f4d85,_0x352f29=_0x532e34['length']-0x1,_0x65a1e1;_0x352f29>=0x0;_0x352f29--)(_0x65a1e1=_0x532e34[_0x352f29])&&(_0x15180d=_0x65a1e1(_0x15180d)||_0x15180d);return _0x15180d;},F=(_0x393b3c,_0x5786a0)=>(_0x3a27d7,_0x2ce6b8)=>_0x5786a0(_0x3a27d7,_0x2ce6b8,_0x393b3c),B=(_0x573482,_0x529298,_0x3cf523)=>Ge(_0x573482,typeof _0x529298!=_0x2ea6be(0xc3)?_0x529298+'':_0x529298,_0x3cf523);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x2ba041{constructor(_0x5c865e=T,_0x21a6b4,_0x164fbb){const _0x5b82be=_0x2ea6be;super(),this[_0x5b82be(0xd0)]=_0x5c865e,this[_0x5b82be(0x109)]=_0x21a6b4,this['_configService']=_0x164fbb;const {..._0x2e041b}=_0x490103({},T,this[_0x5b82be(0xd0)]);this['_configService'][_0x5b82be(0xed)](ye,_0x2e041b);}[_0x2ea6be(0x134)](){const _0x536023=_0x2ea6be;_0x1521f6(this[_0x536023(0x109)],_0x22600f([[L],[S],[I],[m]],this[_0x536023(0xd0)][_0x536023(0xce)])),_0x8311ba(this[_0x536023(0x109)],[[I]]);}[_0x2ea6be(0x11a)](){_0x8311ba(this['_injector'],[[m]]);}};B(b,'type',_0x2e2d5f[_0x2ea6be(0xc8)]),B(b,_0x2ea6be(0xd6),Ye),b=We([_0x13786b(_0x3a5e2e),F(0x1,_0x45fbec(_0x399810)),F(0x2,_0x1df196)],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(_0x2ecb24,_0x121c2b){const _0x273bac=_0x3d9f,_0x1f69fb=_0x2ecb24();while(!![]){try{const _0x18b647=parseInt(_0x273bac(0x138))/0x1*(-parseInt(_0x273bac(0x158))/0x2)+-parseInt(_0x273bac(0x15a))/0x3+parseInt(_0x273bac(0x13d))/0x4*(-parseInt(_0x273bac(0x15b))/0x5)+-parseInt(_0x273bac(0x155))/0x6*(parseInt(_0x273bac(0x142))/0x7)+-parseInt(_0x273bac(0x137))/0x8+parseInt(_0x273bac(0x140))/0x9*(-parseInt(_0x273bac(0x13e))/0xa)+-parseInt(_0x273bac(0x12d))/0xb*(-parseInt(_0x273bac(0x12c))/0xc);if(_0x18b647===_0x121c2b)break;else _0x1f69fb['push'](_0x1f69fb['shift']());}catch(_0x4681bf){_0x1f69fb['push'](_0x1f69fb['shift']());}}}(_0x7542,0x82dae),function(_0x242d95,_0x2fa55a){const _0x249a7b=_0x3d9f;typeof exports==_0x249a7b(0x14f)&&typeof module<'u'?_0x2fa55a(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==_0x249a7b(0x13c)&&define[_0x249a7b(0x15d)]?define(['@univerjs-pro/live-share',_0x249a7b(0x144),'@univerjs/sheets','@univerjs/sheets-ui',_0x249a7b(0x14a),_0x249a7b(0x159)],_0x2fa55a):(_0x242d95=typeof globalThis<'u'?globalThis:_0x242d95||self,_0x2fa55a(_0x242d95[_0x249a7b(0x152)],_0x242d95['UniverEngineRender'],_0x242d95[_0x249a7b(0x134)],_0x242d95[_0x249a7b(0x136)],_0x242d95[_0x249a7b(0x143)],_0x242d95[_0x249a7b(0x15e)]));}(this,function(_0x416d19,_0x238e4b,_0x388c82,_0x1b8b39,_0x4421b0,_0x4a3126){'use strict';const _0x58d34e=_0x3d9f;class _0x2913da extends _0x4421b0[_0x58d34e(0x141)]{[_0x58d34e(0x154)](_0x1119f2,_0x32e4b7,_0x52ea15,_0x5ddd91,_0x1dc777){const _0x4e0f40=_0x58d34e,_0xa18c64=_0x1119f2['get'](_0x416d19[_0x4e0f40(0x14b)]),_0x38c306=_0x1119f2[_0x4e0f40(0x132)](_0x238e4b[_0x4e0f40(0x13a)]),_0x28bde7=_0x32e4b7['getUnitId'](),_0x50f68d=_0x32e4b7[_0x4e0f40(0x13b)](),_0x51ec2c=_0xa18c64['getLiveShareCoordinatorSync'](_0x28bde7);(_0x51ec2c==null?void 0x0:_0x51ec2c[_0x4e0f40(0x145)]())!==_0x416d19[_0x4e0f40(0x131)][_0x4e0f40(0x150)]||(_0x52ea15[_0x4e0f40(0x12e)]()!==_0x50f68d[_0x4e0f40(0x12e)]()&&this['_commandService'][_0x4e0f40(0x153)](_0x388c82[_0x4e0f40(0x147)]['id'],{'unitId':_0x28bde7,'subUnitId':_0x52ea15['getSheetId']()}),!_0x38c306[_0x4e0f40(0x151)](_0x28bde7))||_0x1dc777[_0x4e0f40(0x15c)](_0x1b8b39[_0x4e0f40(0x130)]['id'],{'unitId':_0x32e4b7['getUnitId'](),'sheetId':_0x52ea15[_0x4e0f40(0x12e)](),'sheetViewStartRow':_0x5ddd91['startRow'],'sheetViewStartColumn':_0x5ddd91[_0x4e0f40(0x149)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4421b0[_0x58d34e(0x141)][_0x58d34e(0x14d)](_0x2913da);class _0x5aca43 extends _0x4a3126['FUniver']{[_0x58d34e(0x14e)](){const _0x281164=_0x58d34e;var _0x58d75e,_0x5dffd1;const _0x17f4d4=this[_0x281164(0x157)]['get'](_0x416d19[_0x281164(0x14b)]),_0x3a142f=(_0x58d75e=this[_0x281164(0x12f)]())==null?void 0x0:_0x58d75e[_0x281164(0x12b)]();if(!_0x3a142f)throw new Error(_0x281164(0x160));const _0x567453=_0x17f4d4['getLiveShareCoordinatorSync'](_0x3a142f);return(_0x5dffd1=_0x567453==null?void 0x0:_0x567453[_0x281164(0x145)]())!=null?_0x5dffd1:_0x416d19[_0x281164(0x131)]['IDLE'];}['startFollowing'](){const _0x4d1db6=_0x58d34e;var _0x2d635b;const _0x1d60af=this[_0x4d1db6(0x157)][_0x4d1db6(0x132)](_0x416d19[_0x4d1db6(0x14b)]),_0x130baa=(_0x2d635b=this['getActiveWorkbook']())==null?void 0x0:_0x2d635b[_0x4d1db6(0x12b)]();if(!_0x130baa)throw new Error(_0x4d1db6(0x160));const _0x4ccd03=_0x1d60af[_0x4d1db6(0x146)](_0x130baa);if(!_0x4ccd03)throw new Error(_0x4d1db6(0x133));_0x4ccd03[_0x4d1db6(0x139)]();}[_0x58d34e(0x135)](){const _0x57929e=_0x58d34e;var _0xb08a93;const _0x412cd2=this[_0x57929e(0x157)][_0x57929e(0x132)](_0x416d19[_0x57929e(0x14b)]),_0x56f100=(_0xb08a93=this[_0x57929e(0x12f)]())==null?void 0x0:_0xb08a93[_0x57929e(0x12b)]();if(!_0x56f100)throw new Error(_0x57929e(0x160));const _0x3d6952=_0x412cd2['getLiveShareCoordinatorSync'](_0x56f100);if(!_0x3d6952)throw new Error(_0x57929e(0x133));_0x3d6952['stopFollowing']();}[_0x58d34e(0x14c)](){const _0x129cc2=_0x58d34e;var _0x385f28;const _0x5a4747=this[_0x129cc2(0x157)]['get'](_0x416d19[_0x129cc2(0x14b)]),_0x4d679a=(_0x385f28=this[_0x129cc2(0x12f)]())==null?void 0x0:_0x385f28[_0x129cc2(0x12b)]();if(!_0x4d679a)throw new Error('No\x20active\x20workbook\x20found.');const _0x3fda72=_0x5a4747[_0x129cc2(0x146)](_0x4d679a);if(!_0x3fda72)throw new Error(_0x129cc2(0x133));_0x3fda72['tryStartPresenting']();}[_0x58d34e(0x148)](){const _0x5bc1be=_0x58d34e;var _0x4841eb;const _0x5f306a=this[_0x5bc1be(0x157)]['get'](_0x416d19[_0x5bc1be(0x14b)]),_0x2731c3=(_0x4841eb=this[_0x5bc1be(0x12f)]())==null?void 0x0:_0x4841eb[_0x5bc1be(0x12b)]();if(!_0x2731c3)throw new Error('No\x20active\x20workbook\x20found.');const _0x5f0622=_0x5f306a[_0x5bc1be(0x146)](_0x2731c3);if(!_0x5f0622)throw new Error(_0x5bc1be(0x133));_0x5f0622['stopPresenting']();}}_0x4a3126[_0x58d34e(0x13f)]['extend'](_0x5aca43);class _0x163b39 extends _0x4a3126[_0x58d34e(0x15f)]{get[_0x58d34e(0x156)](){const _0x12a779=_0x58d34e;return _0x416d19[_0x12a779(0x131)];}}_0x4a3126['FEnum']['extend'](_0x163b39);}));function _0x3d9f(_0x847f11,_0x1884d0){const _0x7542a1=_0x7542();return _0x3d9f=function(_0x3d9f36,_0x2a0a7f){_0x3d9f36=_0x3d9f36-0x12b;let _0x558630=_0x7542a1[_0x3d9f36];return _0x558630;},_0x3d9f(_0x847f11,_0x1884d0);}function _0x7542(){const _0x4d9c11=['amd','UniverCoreFacade','FEnum','No\x20active\x20workbook\x20found.','getId','12joVPSQ','34617913mMczwf','getSheetId','getActiveWorkbook','SetScrollOperation','LiveShareStatus','get','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','UniverSheets','stopFollowing','UniverSheetsUi','546944YCGBYD','367673NWMnWx','startFollowing','IRenderManagerService','getActiveSheet','function','13940WKTfSB','292760IxLtzC','FUniver','216czrozj','FRange','56wgFIyg','UniverSheetsFacade','@univerjs/engine-render','getStatus','getLiveShareCoordinatorSync','SetWorksheetActiveOperation','stopPresenting','startColumn','@univerjs/sheets/facade','LiveShareController','startPresenting','extend','getLiveShareStatus','object','PRESENTING','getRenderById','UniverProLiveShare','executeCommand','_initialize','110496yDiQCp','LiveShareStatusEnum','_injector','2AxQMtS','@univerjs/core/facade','1016559HIddBp','1415VllIqD','syncExecuteCommand'];_0x7542=function(){return _0x4d9c11;};return _0x7542();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x214c(_0x40d0d9,_0x16ef76){const _0x45630f=_0x4563();return _0x214c=function(_0x214c46,_0x5b7d0f){_0x214c46=_0x214c46-0x156;let _0x2ab39c=_0x45630f[_0x214c46];return _0x2ab39c;},_0x214c(_0x40d0d9,_0x16ef76);}function _0x4563(){const _0x1c375e=['SetWorksheetActiveOperation','use','UniverProCollaboration','path','RxDisposable','getCurrentTypeOfUnit$','includes','getConfig','LIVESHARE_FETCH_OPERATIONS','offline','url(#$1','getInitialStates','LiveShare','_init','_beIdle','clear','length','forwardRef','getTypeOfUnitAdded$','map','React','_startFollowing','UniverInstanceType','OFFLINE','getLiveShareCoordinatorSync','get','onRendered','setConfig','presenter','getStatus','_mountLiveShare','getMemberID','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','parse','_handleOperation','_fetchOperations','takeUntil','_liveShareService','registerDependencies','useDependency','_stopFollowing','FOLLOWING','registerSharedOperation','unsubscribe','tryStartPresenting','useEffect','OPERATION','text','defIds','none','values','UniverLiveSharePlugin','SetScrollOperation','_injector','button','@univerjs/ui','ICommandService','react','Disposable','_univerInstanceService','displayName','add','useState','PRESENTING','override','rxjs/operators','UniverSheetsUi','reverse','_reporters','CollaborationEvent','xlink:href','memberID','div','evenodd','Injector','UniverProCollaborationClient','_handleOnline','LIVESHARE_REQUEST_HOST','stringify','UniverCollaborationClientPlugin','UniverUi','startFollowing','asObservable','6HwBtnb','IUniverInstanceService','InsertSheetMutation','init','_status','_handleTerminate','executeCommand','function','Plugin','Start\x20following','next','DependentOn','shouldShareOperation','connectInjector','1em','not-following','_uiPartsService','Button','UNIVER_UNKNOWN','complete','symbol','touchDependencies','_collabSessionService','_collabSession','has','_configService','_presenter','assign','@univerjs/sheets','object','defineProperty','_commandService','Subject','@univerjs/core','react/jsx-runtime','876435FPMOeg','_status$','toString','stopPresenting','entries','substring','colorChannel1','stopFollowing','LIVESHARE_OPERATION','LiveShareIcon','UniverIcon','tag','send','@univerjs/design','useRef','UniverProLiveShare','end','dispose$','SAME_OPERATION_SHARE_INTERVAL','4EayoTn','http://www.w3.org/2000/svg','exports','_handleNewChangeSets','_handleOffline','toDisposable','6770979SMoplC','352358WBcIkb','_entities','trim','_handleNewHost','operations','@univerjs/sheets-ui','useObservable','jsxs','mutations','univerjs-icon\x20univerjs-icon-','2015944tqVCBE','DisposableCollection','then','unitId','dispose','currentColor','replace','subscribe','onCommandExecuted','_unitID','default','_commandDisposable','string','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','pluginName','1285755TqINRz','Module','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Present\x20this\x20document','random','following','presenting','_config','CommandType','attrs','_startLiveShareCoordinator','LiveShareCoordinator','getUnitId','disposeWithMe','svg','onStarting','IDLE','toStringTag','NOT_FOLLOWING','idSuffix','You\x27re\x20not\x20following\x20the\x20presenter','status$','Inject','univer-mb-3\x20univer-w-full\x20univer-text-sm','children','jsx','params','current','LIVESHARE_TERMINATE','mergeOverrideWithDependencies','HEADER_MENU','UniverDesign','IConfigService','type','clsx','Fragment','LiveShareStatus','getOwnPropertyDescriptor','You\x27are\x20offline.','set','Dropdown','data','throttleTime','registerInitialStateReporter','createElement','fill','10peiWCg','getLiveShareCoordinator','mask','_sharedOperations','DesktopLiveShareController','LIVESHARE_NEW_HOST','getTypeOfUnitDisposed$','forEach','LiveShareController','rxjs','LiveShareService','UNIVER_SHEET','414820xRpHDo','412587YOmpIh','createInstance','from','pipe','_startPresenting','idle'];_0x4563=function(){return _0x1c375e;};return _0x4563();}(function(_0x1a6a84,_0x4880b6){const _0x146052=_0x214c,_0x28b73d=_0x1a6a84();while(!![]){try{const _0x4d2283=-parseInt(_0x146052(0x1e1))/0x1+parseInt(_0x146052(0x234))/0x2+-parseInt(_0x146052(0x1c7))/0x3*(parseInt(_0x146052(0x1da))/0x4)+parseInt(_0x146052(0x1fa))/0x5*(parseInt(_0x146052(0x1a4))/0x6)+-parseInt(_0x146052(0x235))/0x7+-parseInt(_0x146052(0x1eb))/0x8+parseInt(_0x146052(0x1e0))/0x9*(parseInt(_0x146052(0x228))/0xa);if(_0x4d2283===_0x4880b6)break;else _0x28b73d['push'](_0x28b73d['shift']());}catch(_0x5c7a52){_0x28b73d['push'](_0x28b73d['shift']());}}}(_0x4563,0x3fd4f),function(_0x1d0958,_0x2b7693){const _0x144fe7=_0x214c;typeof exports==_0x144fe7(0x1c1)&&typeof module<'u'?_0x2b7693(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==_0x144fe7(0x1ab)&&define['amd']?define([_0x144fe7(0x1dc),_0x144fe7(0x1c5),_0x144fe7(0x188),_0x144fe7(0x1c6),_0x144fe7(0x1d4),_0x144fe7(0x18a),'@univerjs-pro/collaboration','@univerjs-pro/collaboration-client',_0x144fe7(0x1c0),'rxjs',_0x144fe7(0x192),_0x144fe7(0x1e6)],_0x2b7693):(_0x1d0958=typeof globalThis<'u'?globalThis:_0x1d0958||self,_0x2b7693(_0x1d0958[_0x144fe7(0x1d6)]={},_0x1d0958['UniverCore'],_0x1d0958[_0x144fe7(0x1a1)],_0x1d0958[_0x144fe7(0x165)],_0x1d0958[_0x144fe7(0x219)],_0x1d0958[_0x144fe7(0x165)],_0x1d0958[_0x144fe7(0x23d)],_0x1d0958[_0x144fe7(0x19c)],_0x1d0958['UniverSheets'],_0x1d0958['rxjs'],_0x1d0958[_0x144fe7(0x231)]['operators'],_0x1d0958[_0x144fe7(0x193)]));}(this,function(_0x2193f3,_0x43826d,_0x37dc43,_0x427a34,_0x2b0952,_0x4c2b51,_0x3ae46a,_0x4a4464,_0x240fa8,_0x267f4c,_0x2d5259,_0x5e9d1b){'use strict';const _0x2bc437=_0x214c;var _0x104be3=Object[_0x2bc437(0x1c2)],_0x4f37bd=(_0x367ec9,_0x5478a1,_0x5d09d3)=>_0x5478a1 in _0x367ec9?_0x104be3(_0x367ec9,_0x5478a1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d09d3}):_0x367ec9[_0x5478a1]=_0x5d09d3,_0x4cd0f7=(_0x144730,_0x4e2f8b,_0x5a4f0b)=>_0x4f37bd(_0x144730,typeof _0x4e2f8b!=_0x2bc437(0x1b8)?_0x4e2f8b+'':_0x4e2f8b,_0x5a4f0b);function _0x5dcb45({ref:_0x51f027,..._0x4192e6}){const _0x27ec0b=_0x2bc437,{icon:_0x4342cb,id:_0x47e8e5,className:_0x23a409,extend:_0x32dded,..._0x15d58c}=_0x4192e6,_0x57ab9=(_0x27ec0b(0x1ea)+_0x47e8e5+'\x20'+(_0x23a409||''))[_0x27ec0b(0x1e3)](),_0x5f39f2=_0x4c2b51[_0x27ec0b(0x1d5)]('_'+_0x1c0ffc());return _0xac9475(_0x4342cb,''+_0x47e8e5,{'defIds':_0x4342cb[_0x27ec0b(0x181)],'idSuffix':_0x5f39f2[_0x27ec0b(0x215)]},{'ref':_0x51f027,'className':_0x57ab9,..._0x15d58c},_0x32dded);}function _0xac9475(_0x2cc2df,_0x4a6bb7,_0x59bc78,_0x3f6497,_0x4d521f){const _0x28bb2a=_0x2bc437;return _0x4c2b51[_0x28bb2a(0x226)](_0x2cc2df[_0x28bb2a(0x1d2)],{'key':_0x4a6bb7,..._0x2005bb(_0x2cc2df,_0x59bc78,_0x4d521f),..._0x3f6497},(_0x3ae1cf(_0x2cc2df,_0x59bc78)[_0x28bb2a(0x212)]||[])[_0x28bb2a(0x164)]((_0x40c62b,_0x221e30)=>_0xac9475(_0x40c62b,_0x4a6bb7+'-'+_0x2cc2df['tag']+'-'+_0x221e30,_0x59bc78,void 0x0,_0x4d521f)));}function _0x2005bb(_0x553dee,_0x3ae4db,_0x42915f){const _0x3919a4=_0x2bc437,_0xf9879e={..._0x553dee['attrs']};_0x42915f!=null&&_0x42915f['colorChannel1']&&_0xf9879e[_0x3919a4(0x227)]===_0x3919a4(0x1cd)&&(_0xf9879e[_0x3919a4(0x227)]=_0x42915f[_0x3919a4(0x1cd)]),_0x553dee['tag']===_0x3919a4(0x22a)&&_0xf9879e['id']&&(_0xf9879e['id']=_0xf9879e['id']+_0x3ae4db[_0x3919a4(0x20d)]),Object[_0x3919a4(0x1cb)](_0xf9879e)['forEach'](([_0x373101,_0x4ab454])=>{const _0x15cb81=_0x3919a4;_0x373101===_0x15cb81(0x22a)&&typeof _0x4ab454==_0x15cb81(0x1f7)&&(_0xf9879e[_0x373101]=_0x4ab454[_0x15cb81(0x1f1)](/url\(#(.*)\)/,_0x15cb81(0x15b)+_0x3ae4db[_0x15cb81(0x20d)]+')'));});const {defIds:_0x33d1f9}=_0x3ae4db;return!_0x33d1f9||_0x33d1f9['length']===0x0||(_0x553dee[_0x3919a4(0x1d2)]===_0x3919a4(0x23c)&&_0xf9879e[_0x3919a4(0x197)]&&(_0xf9879e[_0x3919a4(0x197)]=_0xf9879e[_0x3919a4(0x197)]+_0x3ae4db[_0x3919a4(0x20d)]),Object[_0x3919a4(0x1cb)](_0xf9879e)[_0x3919a4(0x22f)](([_0x2a86cf,_0x5168b6])=>{const _0x1b883e=_0x3919a4;typeof _0x5168b6==_0x1b883e(0x1f7)&&(_0xf9879e[_0x2a86cf]=_0x5168b6['replace'](/url\(#(.*)\)/,_0x1b883e(0x15b)+_0x3ae4db[_0x1b883e(0x20d)]+')'));})),_0xf9879e;}function _0x3ae1cf(_0x362901,_0x1124a9){const _0x50e6f9=_0x2bc437;var _0x3e204b;const {defIds:_0x145018}=_0x1124a9;return!_0x145018||_0x145018['length']===0x0?_0x362901:_0x362901['tag']==='defs'&&((_0x3e204b=_0x362901['children'])!=null&&_0x3e204b[_0x50e6f9(0x161)])?{..._0x362901,'children':_0x362901['children'][_0x50e6f9(0x164)](_0x21bda4=>typeof _0x21bda4['attrs']['id']==_0x50e6f9(0x1f7)&&_0x145018&&_0x145018[_0x50e6f9(0x157)](_0x21bda4[_0x50e6f9(0x203)]['id'])?{..._0x21bda4,'attrs':{..._0x21bda4[_0x50e6f9(0x203)],'id':_0x21bda4['attrs']['id']+_0x1124a9['idSuffix']}}:_0x21bda4)}:_0x362901;}function _0x1c0ffc(){const _0x3a9988=_0x2bc437;return Math[_0x3a9988(0x1fe)]()[_0x3a9988(0x1c9)](0x24)[_0x3a9988(0x1cc)](0x2,0x8);}_0x5dcb45[_0x2bc437(0x18d)]=_0x2bc437(0x1d1);const _0x3ab132={'tag':_0x2bc437(0x208),'attrs':{'xmlns':_0x2bc437(0x1db),'fill':_0x2bc437(0x182),'viewBox':'0\x200\x2017\x2017','width':_0x2bc437(0x1b2),'height':_0x2bc437(0x1b2)},'children':[{'tag':_0x2bc437(0x23e),'attrs':{'fill':_0x2bc437(0x1f0),'d':_0x2bc437(0x1f8)}},{'tag':_0x2bc437(0x23e),'attrs':{'fill':_0x2bc437(0x1f0),'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':_0x2bc437(0x19a),'clipRule':_0x2bc437(0x19a)}}]},_0x24186c=_0x4c2b51[_0x2bc437(0x162)](function(_0x5c263a,_0x45e1ee){const _0x407af1=_0x2bc437;return _0x4c2b51['createElement'](_0x5dcb45,Object[_0x407af1(0x1bf)]({},_0x5c263a,{'id':'live-share-icon','ref':_0x45e1ee,'icon':_0x3ab132}));});_0x24186c['displayName']=_0x2bc437(0x1d0);class _0x3e8160 extends _0x43826d[_0x2bc437(0x18b)]{constructor(){const _0x322331=_0x2bc437;super(...arguments),_0x4cd0f7(this,_0x322331(0x22b),new Set()),_0x4cd0f7(this,_0x322331(0x195),new Set());}[_0x2bc437(0x17b)](_0x5ed18d){const _0x4687dc=_0x2bc437;return this['_sharedOperations'][_0x4687dc(0x18e)](_0x5ed18d),_0x43826d[_0x4687dc(0x1df)](()=>this[_0x4687dc(0x22b)]['delete'](_0x5ed18d));}[_0x2bc437(0x225)](_0x433275){const _0x4e6075=_0x2bc437;return this[_0x4e6075(0x195)][_0x4e6075(0x18e)](_0x433275),_0x43826d[_0x4e6075(0x1df)](()=>this['_reporters']['delete'](_0x433275));}[_0x2bc437(0x1b0)](_0x15339c){const _0x234097=_0x2bc437;return this[_0x234097(0x22b)][_0x234097(0x1bc)](_0x15339c);}[_0x2bc437(0x15c)](_0x1f0f07){const _0x2280c0=_0x2bc437;return Array[_0x2280c0(0x237)](this[_0x2280c0(0x195)])[_0x2280c0(0x164)](_0xbcece2=>_0xbcece2(_0x1f0f07));}}var _0x57386e=Object[_0x2bc437(0x21f)],_0x3cdba2=(_0x1d6ac9,_0x2d2816,_0x4d33b5,_0x3cc649)=>{const _0x595215=_0x2bc437;for(var _0x39ef3f=_0x3cc649>0x1?void 0x0:_0x3cc649?_0x57386e(_0x2d2816,_0x4d33b5):_0x2d2816,_0x13f3b8=_0x1d6ac9[_0x595215(0x161)]-0x1,_0x3623b0;_0x13f3b8>=0x0;_0x13f3b8--)(_0x3623b0=_0x1d6ac9[_0x13f3b8])&&(_0x39ef3f=_0x3623b0(_0x39ef3f)||_0x39ef3f);return _0x39ef3f;},_0x23ac5c=(_0x3098ca,_0x21b548)=>(_0x5554ae,_0x192e6c)=>_0x21b548(_0x5554ae,_0x192e6c,_0x3098ca);_0x2193f3[_0x2bc437(0x230)]=class extends _0x43826d[_0x2bc437(0x23f)]{constructor(_0x47def1,_0x2c0ae8,_0x592106){const _0x4952ed=_0x2bc437;super(),_0x4cd0f7(this,_0x4952ed(0x1e2),new Map()),(this[_0x4952ed(0x18c)]=_0x47def1,this[_0x4952ed(0x186)]=_0x2c0ae8,this['_collabSessionService']=_0x592106,this[_0x4952ed(0x15e)]());}async[_0x2bc437(0x229)](_0x10909f){const _0x379ea7=_0x2bc437;return this[_0x379ea7(0x1e2)]['has'](_0x10909f)||await this['_startLiveShareCoordinator'](_0x10909f),this['_entities']['get'](_0x10909f);}[_0x2bc437(0x169)](_0x94799){const _0x4455c1=_0x2bc437;var _0x21e9d2;return(_0x21e9d2=this[_0x4455c1(0x1e2)][_0x4455c1(0x16a)](_0x94799))!=null?_0x21e9d2:null;}[_0x2bc437(0x15e)](){const _0x35dc81=_0x2bc437;this[_0x35dc81(0x18c)][_0x35dc81(0x163)](_0x43826d[_0x35dc81(0x167)][_0x35dc81(0x233)])['pipe'](_0x2d5259[_0x35dc81(0x175)](this['dispose$']))['subscribe'](async _0x62b105=>{const _0x53e960=_0x35dc81,_0x390006=_0x62b105[_0x53e960(0x206)]();this[_0x53e960(0x1e2)][_0x53e960(0x1bc)](_0x390006)||this[_0x53e960(0x204)](_0x390006);}),this[_0x35dc81(0x18c)][_0x35dc81(0x22e)](_0x43826d[_0x35dc81(0x167)][_0x35dc81(0x233)])[_0x35dc81(0x238)](_0x2d5259[_0x35dc81(0x175)](this[_0x35dc81(0x1d8)]))[_0x35dc81(0x1f2)](_0x41de83=>{const _0x58b726=_0x35dc81,_0xa8267d=_0x41de83[_0x58b726(0x206)](),_0x524fc3=this[_0x58b726(0x1e2)][_0x58b726(0x16a)](_0xa8267d);_0x524fc3==null||_0x524fc3[_0x58b726(0x1ef)]();});}async[_0x2bc437(0x204)](_0x1c36cc){const _0x32e3dc=_0x2bc437,_0x6aab72=await this[_0x32e3dc(0x1ba)]['requireSession'](_0x1c36cc),_0x56c7ff=this[_0x32e3dc(0x186)][_0x32e3dc(0x236)](_0x2193f3['LiveShareCoordinator'],_0x1c36cc,_0x6aab72);return _0x56c7ff[_0x32e3dc(0x1a7)](),this[_0x32e3dc(0x1e2)][_0x32e3dc(0x221)](_0x1c36cc,_0x56c7ff),_0x56c7ff;}},_0x2193f3['LiveShareController']=_0x3cdba2([_0x23ac5c(0x0,_0x43826d[_0x2bc437(0x1a5)]),_0x23ac5c(0x1,_0x43826d[_0x2bc437(0x210)](_0x43826d[_0x2bc437(0x19b)])),_0x23ac5c(0x2,_0x43826d[_0x2bc437(0x210)](_0x4a4464['CollaborationSessionService']))],_0x2193f3['LiveShareController']);var _0x532c80=(_0x31222a=>(_0x31222a['OFFLINE']=_0x2bc437(0x15a),_0x31222a[_0x2bc437(0x20a)]=_0x2bc437(0x23a),_0x31222a[_0x2bc437(0x17a)]=_0x2bc437(0x1ff),_0x31222a[_0x2bc437(0x20c)]='not-following',_0x31222a[_0x2bc437(0x190)]=_0x2bc437(0x200),_0x31222a))(_0x532c80||{});const _0x2ff1fa=_0x2bc437(0x1d9),_0x224d19=0xc8;_0x2193f3['LiveShareCoordinator']=class extends _0x43826d[_0x2bc437(0x23f)]{constructor(_0x5c9ffc,_0x2a9e1f,_0xe17f27,_0x370bee,_0x426c9e){const _0x249ab1=_0x2bc437;super(),_0x4cd0f7(this,_0x249ab1(0x1c8),new _0x267f4c['BehaviorSubject']('idle')),_0x4cd0f7(this,_0x249ab1(0x20f),this['_status$'][_0x249ab1(0x1a3)]()),_0x4cd0f7(this,_0x249ab1(0x15e),!0x1),_0x4cd0f7(this,_0x249ab1(0x1f6),null),_0x4cd0f7(this,_0x249ab1(0x1be),null),(this['_unitID']=_0x5c9ffc,this['_collabSession']=_0x2a9e1f,this[_0x249ab1(0x1bd)]=_0xe17f27,this['_liveShareService']=_0x370bee,this[_0x249ab1(0x1c3)]=_0x426c9e);}get[_0x2bc437(0x1a8)](){return this['_status$']['getValue']();}[_0x2bc437(0x1ef)](){const _0x2bc1f1=_0x2bc437;var _0x505a85;(_0x505a85=this['_commandDisposable'])==null||_0x505a85[_0x2bc1f1(0x1ef)](),this[_0x2bc1f1(0x1c8)]['next'](_0x2bc1f1(0x23a)),this[_0x2bc1f1(0x1c8)][_0x2bc1f1(0x1b7)]();}[_0x2bc437(0x16e)](){const _0x3e5680=_0x2bc437;return this[_0x3e5680(0x1a8)];}[_0x2bc437(0x1a7)](){const _0x5323de=_0x2bc437;this[_0x5323de(0x15e)]||(this[_0x5323de(0x15e)]=!0x0,this[_0x5323de(0x1bb)]['sessionStatus$'][_0x5323de(0x238)](_0x2d5259[_0x5323de(0x175)](this['dispose$']))[_0x5323de(0x1f2)](_0x346bcd=>{const _0x2209e1=_0x5323de;switch(_0x346bcd){case _0x4a4464['SessionStatus']['OFFLINE']:this[_0x2209e1(0x1de)]();break;case _0x4a4464['SessionStatus']['ONLINE']:this[_0x2209e1(0x19d)]();break;}}),this[_0x5323de(0x1bb)]['event$']['pipe'](_0x2d5259[_0x5323de(0x175)](this[_0x5323de(0x1d8)]))['subscribe'](_0x1c7faf=>{const _0x4b7e96=_0x5323de,{eventID:_0xf598a3}=_0x1c7faf;switch(_0xf598a3){case _0x3ae46a[_0x4b7e96(0x196)][_0x4b7e96(0x22d)]:this['_handleNewHost'](_0x1c7faf);break;case _0x3ae46a['CollaborationEvent'][_0x4b7e96(0x1cf)]:this[_0x4b7e96(0x173)](_0x1c7faf);break;case _0x3ae46a[_0x4b7e96(0x196)][_0x4b7e96(0x216)]:this[_0x4b7e96(0x1a9)]();break;case _0x3ae46a['CollaborationEvent']['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x1c7faf);break;}}));}[_0x2bc437(0x17d)](){const _0xd91047=_0x2bc437;this[_0xd91047(0x1bb)][_0xd91047(0x1d3)]({'eventID':_0x3ae46a[_0xd91047(0x196)][_0xd91047(0x19e)],'data':{'unitID':this[_0xd91047(0x1f4)],'userID':this[_0xd91047(0x1bb)][_0xd91047(0x170)]()}},this[_0xd91047(0x1f4)]);}[_0x2bc437(0x1ca)](){const _0x5804b4=_0x2bc437;this[_0x5804b4(0x1a8)]===_0x5804b4(0x200)&&(this[_0x5804b4(0x1c8)][_0x5804b4(0x1ae)](_0x5804b4(0x23a)),this['_collabSession'][_0x5804b4(0x1d3)]({'eventID':_0x3ae46a[_0x5804b4(0x196)][_0x5804b4(0x216)],'data':{'unitID':this[_0x5804b4(0x1f4)]}},this[_0x5804b4(0x1f4)]));}[_0x2bc437(0x1a2)](){const _0x2ea726=_0x2bc437;this[_0x2ea726(0x1a8)]===_0x2ea726(0x1b3)&&(this[_0x2ea726(0x1c8)]['next'](_0x2ea726(0x1ff)),this['_startFollowing']());}['stopFollowing'](){const _0x377450=_0x2bc437;this[_0x377450(0x1a8)]===_0x377450(0x1ff)&&this['_stopFollowing']();}[_0x2bc437(0x1e4)](_0x5a6861){const _0x143644=_0x2bc437,{presenter:_0x37fe9e}=_0x5a6861[_0x143644(0x223)],_0x97b15=this['_collabSession'][_0x143644(0x170)]();this[_0x143644(0x1be)]=_0x37fe9e,_0x37fe9e===_0x97b15?(this[_0x143644(0x179)](),this['_startPresenting']()):this[_0x143644(0x1a8)]!==_0x143644(0x1b3)&&(this['_stopPresenting'](),this[_0x143644(0x166)]());}[_0x2bc437(0x174)](){const _0x38117c=_0x2bc437,_0x4589a4={'eventID':_0x3ae46a[_0x38117c(0x196)][_0x38117c(0x159)]};this[_0x38117c(0x1bb)][_0x38117c(0x1d3)](_0x4589a4,this[_0x38117c(0x1f4)]);}[_0x2bc437(0x1a9)](){const _0x352ccd=_0x2bc437;this[_0x352ccd(0x1be)]=null,this['_status']!==_0x352ccd(0x200)&&this[_0x352ccd(0x15f)]();}[_0x2bc437(0x1dd)](_0x3676c6){const _0x139aa2=_0x2bc437;if(this[_0x139aa2(0x1a8)]===_0x139aa2(0x1ff)&&this[_0x139aa2(0x1be)]===_0x3676c6['data'][_0x139aa2(0x198)]){const _0xc66a0a=_0x3ae46a['parseProtocolChangeset'](_0x3676c6[_0x139aa2(0x223)])[_0x139aa2(0x1e9)][_0x139aa2(0x194)]()['find'](_0x233686=>_0x233686['id']===_0x240fa8[_0x139aa2(0x1a6)]['id']);if(_0xc66a0a){const _0xd3eefa=_0xc66a0a[_0x139aa2(0x214)][_0x139aa2(0x1ee)],_0x1d9a23=_0xc66a0a[_0x139aa2(0x214)]['sheet']['id'];setTimeout(()=>{const _0x1a124b=_0x139aa2;this[_0x1a124b(0x1c3)][_0x1a124b(0x1aa)](_0x240fa8[_0x1a124b(0x23b)]['id'],{'unitId':_0xd3eefa,'subUnitId':_0x1d9a23},{'fromCollab':!0x0});});}}}[_0x2bc437(0x239)](){const _0x48df09=_0x2bc437;this[_0x48df09(0x1c8)][_0x48df09(0x1ae)](_0x48df09(0x200));const _0x2aaf75=new Map(),_0x360582=this[_0x48df09(0x1f6)]=new _0x43826d[(_0x48df09(0x1ec))]();_0x360582[_0x48df09(0x18e)](_0x43826d['toDisposable'](()=>{const _0x39b706=_0x48df09;_0x2aaf75[_0x39b706(0x22f)](_0x2d8ba8=>_0x2d8ba8[_0x39b706(0x1b7)]()),_0x2aaf75[_0x39b706(0x160)]();})),_0x360582[_0x48df09(0x18e)](this[_0x48df09(0x1c3)][_0x48df09(0x1f3)](_0x5dcc39=>{const _0x3cc3bb=_0x48df09;var _0xa1bbdc;if(_0x5dcc39[_0x3cc3bb(0x21b)]!==_0x43826d[_0x3cc3bb(0x202)][_0x3cc3bb(0x17f)]||!this['_liveShareService'][_0x3cc3bb(0x1b0)](_0x5dcc39['id']))return;const {id:_0x47eb21}=_0x5dcc39;let _0x1070ef;_0x2aaf75['has'](_0x47eb21)?_0x1070ef=_0x2aaf75[_0x3cc3bb(0x16a)](_0x47eb21):(_0x1070ef=new _0x267f4c[(_0x3cc3bb(0x1c4))](),_0x2aaf75['set'](_0x47eb21,_0x1070ef),_0x1070ef['pipe'](_0x2d5259[_0x3cc3bb(0x224)]((_0xa1bbdc=this[_0x3cc3bb(0x1bd)][_0x3cc3bb(0x158)](_0x2ff1fa))!=null?_0xa1bbdc:_0x224d19,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x3288cb=>{const _0x28c0da=_0x3cc3bb;this[_0x28c0da(0x1bb)][_0x28c0da(0x1d3)]({'eventID':_0x3ae46a[_0x28c0da(0x196)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x28c0da(0x1f4)],'operations':{[_0x3288cb['id']]:{'id':_0x3288cb['id'],'params':JSON[_0x28c0da(0x19f)](_0x3288cb[_0x28c0da(0x214)])}}}},this[_0x28c0da(0x1f4)]);})),_0x1070ef[_0x3cc3bb(0x1ae)](_0x5dcc39);})),this[_0x48df09(0x176)][_0x48df09(0x15c)](this['_unitID'])[_0x48df09(0x22f)](_0x36ae0a=>this['_collabSession'][_0x48df09(0x1d3)]({'eventID':_0x3ae46a[_0x48df09(0x196)][_0x48df09(0x1cf)],'data':{'unitID':this[_0x48df09(0x1f4)],'operations':{[_0x36ae0a['id']]:{'id':_0x36ae0a['id'],'params':JSON[_0x48df09(0x19f)](_0x36ae0a[_0x48df09(0x214)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x22289e=_0x2bc437;var _0x2891c2;this['_status$'][_0x22289e(0x1ae)](_0x22289e(0x23a)),(_0x2891c2=this[_0x22289e(0x1f6)])==null||_0x2891c2['dispose'](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x683517=_0x2bc437;var _0x30e9a0;(_0x30e9a0=this['_commandDisposable'])==null||_0x30e9a0[_0x683517(0x1ef)](),this['_status$'][_0x683517(0x1ae)](_0x683517(0x1ff));}[_0x2bc437(0x15f)](){const _0x55d391=_0x2bc437;var _0x187a77;this[_0x55d391(0x1c8)][_0x55d391(0x1ae)](_0x55d391(0x23a)),(_0x187a77=this['_commandDisposable'])==null||_0x187a77[_0x55d391(0x1ef)](),this['_commandDisposable']=null;}[_0x2bc437(0x179)](){const _0x1cb363=_0x2bc437;var _0x770e97;this[_0x1cb363(0x1c8)]['next'](_0x1cb363(0x1b3)),(_0x770e97=this['_commandDisposable'])==null||_0x770e97[_0x1cb363(0x1ef)]();}[_0x2bc437(0x173)](_0x5aa5a8){const _0x295415=_0x2bc437;if(['presenting',_0x295415(0x1b3),_0x295415(0x15a)][_0x295415(0x157)](this[_0x295415(0x1a8)])||!_0x5aa5a8[_0x295415(0x223)]['presenter']||_0x5aa5a8[_0x295415(0x223)][_0x295415(0x16d)]===this[_0x295415(0x1bb)][_0x295415(0x170)]())return;this[_0x295415(0x1a8)]===_0x295415(0x23a)&&this[_0x295415(0x166)]();const _0x55c789=_0x5aa5a8[_0x295415(0x223)][_0x295415(0x1e5)];Object[_0x295415(0x183)](_0x55c789)[_0x295415(0x22f)](_0x52f4be=>{const _0x196fdd=_0x295415;this[_0x196fdd(0x1c3)][_0x196fdd(0x1aa)](_0x52f4be['id'],_0x52f4be['params']?JSON[_0x196fdd(0x172)](_0x52f4be[_0x196fdd(0x214)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0xfd64b9=_0x2bc437;var _0x5bb555;this[_0xfd64b9(0x1c8)]['next'](_0xfd64b9(0x15a)),(_0x5bb555=this[_0xfd64b9(0x1f6)])==null||_0x5bb555[_0xfd64b9(0x1ef)]();}[_0x2bc437(0x19d)](){const _0x4ba4fd=_0x2bc437;this[_0x4ba4fd(0x1c8)][_0x4ba4fd(0x1ae)](_0x4ba4fd(0x23a)),this['_fetchOperations']();}},_0x2193f3['LiveShareCoordinator']=_0x3cdba2([_0x23ac5c(0x2,_0x43826d[_0x2bc437(0x21a)]),_0x23ac5c(0x3,_0x43826d[_0x2bc437(0x210)](_0x3e8160)),_0x23ac5c(0x4,_0x43826d[_0x2bc437(0x189)])],_0x2193f3[_0x2bc437(0x205)]);function _0x39b0f6(){const _0x53c9e8=_0x2bc437,_0x5ec72d=_0x37dc43['useDependency'](_0x2193f3[_0x53c9e8(0x230)]),_0x469994=_0x37dc43[_0x53c9e8(0x178)](_0x43826d[_0x53c9e8(0x1a5)]),_0x4e5415=_0x37dc43[_0x53c9e8(0x1e7)](()=>_0x469994[_0x53c9e8(0x156)](_0x43826d[_0x53c9e8(0x167)][_0x53c9e8(0x233)]),void 0x0,!0x1,[]),[_0x5de623,_0x1dee9f]=_0x4c2b51['useState'](null),[_0x5a05a0,_0x199da2]=_0x4c2b51[_0x53c9e8(0x18f)](_0x532c80[_0x53c9e8(0x20a)]),_0xe62e3e=_0x4c2b51[_0x53c9e8(0x1d5)](null);return _0x4c2b51[_0x53c9e8(0x17e)](()=>(_0x4e5415&&_0x5ec72d[_0x53c9e8(0x229)](_0x4e5415[_0x53c9e8(0x206)]())[_0x53c9e8(0x1ed)](_0x286de2=>{const _0xdacdd9=_0x53c9e8;_0x1dee9f(_0x286de2),_0xe62e3e[_0xdacdd9(0x215)]=_0x286de2[_0xdacdd9(0x20f)]['subscribe'](_0x27a32a=>{_0x199da2(_0x27a32a);});}),()=>{const _0x3de0a6=_0x53c9e8;var _0x14de6e;(_0x14de6e=_0xe62e3e[_0x3de0a6(0x215)])==null||_0x14de6e[_0x3de0a6(0x17c)](),_0xe62e3e['current']=null;}),[_0x4e5415,_0x5ec72d]),_0x5de623?_0x427a34[_0x53c9e8(0x213)](_0x2b0952[_0x53c9e8(0x222)],{'align':_0x53c9e8(0x1d7),'disabled':_0x5a05a0===_0x532c80[_0x53c9e8(0x168)],'className':_0x53c9e8(0x171),'overlay':_0x427a34[_0x53c9e8(0x213)](_0x291657,{'status':_0x5a05a0,'coordinator':_0x5de623}),'children':_0x427a34[_0x53c9e8(0x213)](_0x53c9e8(0x187),{'className':_0x2b0952[_0x53c9e8(0x21c)](_0x53c9e8(0x1fc),{'univer-cursor-not-allowed':_0x5a05a0===_0x532c80[_0x53c9e8(0x168)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5a05a0!==_0x532c80['OFFLINE']}),'type':_0x53c9e8(0x187),'children':_0x427a34[_0x53c9e8(0x213)](_0x24186c,{'className':'univer-size-4'})})}):null;}function _0x291657(_0xaeb580){const _0x2995ce=_0x2bc437,{status:_0x48bdfa,coordinator:_0x1d98f7}=_0xaeb580;switch(_0x48bdfa){case _0x532c80[_0x2995ce(0x20a)]:return _0x427a34['jsx'](_0x22a3a8,{'coordinator':_0x1d98f7});case _0x532c80[_0x2995ce(0x17a)]:return _0x427a34[_0x2995ce(0x213)](_0x37b79c,{'coordinator':_0x1d98f7});case _0x532c80[_0x2995ce(0x20c)]:return _0x427a34[_0x2995ce(0x213)](_0x3cc8e6,{'coordinator':_0x1d98f7});case _0x532c80['OFFLINE']:return _0x427a34[_0x2995ce(0x213)](_0xee4f8,{});case _0x532c80[_0x2995ce(0x190)]:return _0x427a34[_0x2995ce(0x213)](_0x356156,{'coordinator':_0x1d98f7});default:return null;}}function _0x22a3a8(_0x24cd1a){const _0x49ab45=_0x2bc437,{coordinator:_0x3283aa}=_0x24cd1a;return _0x427a34[_0x49ab45(0x1e8)](_0x427a34[_0x49ab45(0x21d)],{'children':[_0x427a34[_0x49ab45(0x213)](_0x49ab45(0x199),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x49ab45(0x1fd)}),_0x427a34[_0x49ab45(0x213)](_0x2b0952['Button'],{'onClick':()=>_0x3283aa[_0x49ab45(0x17d)](),'children':'Start'})]});}function _0x37b79c(_0x57bb7c){const _0x33dda7=_0x2bc437,{coordinator:_0x4a5d3f}=_0x57bb7c;return _0x427a34[_0x33dda7(0x1e8)](_0x427a34['Fragment'],{'children':[_0x427a34['jsx']('div',{'className':_0x33dda7(0x211),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x427a34[_0x33dda7(0x213)](_0x2b0952[_0x33dda7(0x1b5)],{'onClick':()=>_0x4a5d3f[_0x33dda7(0x1ce)](),'children':'Stop\x20following'})]});}function _0x3cc8e6(_0x2c2d0d){const _0x662bc4=_0x2bc437,{coordinator:_0xaf197b}=_0x2c2d0d;return _0x427a34[_0x662bc4(0x1e8)](_0x427a34[_0x662bc4(0x21d)],{'children':[_0x427a34[_0x662bc4(0x213)](_0x662bc4(0x199),{'className':_0x662bc4(0x211),'children':_0x662bc4(0x20e)}),_0x427a34[_0x662bc4(0x213)](_0x2b0952['Button'],{'variant':_0x662bc4(0x180),'onClick':()=>_0xaf197b[_0x662bc4(0x1a2)](),'children':_0x662bc4(0x1ad)})]});}function _0x356156(_0xd884e7){const _0x164b3b=_0x2bc437,{coordinator:_0x7d1ddf}=_0xd884e7;return _0x427a34[_0x164b3b(0x1e8)](_0x427a34[_0x164b3b(0x21d)],{'children':[_0x427a34[_0x164b3b(0x213)](_0x164b3b(0x199),{'className':_0x164b3b(0x211),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x427a34[_0x164b3b(0x213)](_0x2b0952['Button'],{'variant':_0x164b3b(0x1f5),'onClick':()=>_0x7d1ddf[_0x164b3b(0x1ca)](),'children':'Stop\x20presenting'})]});}function _0xee4f8(){const _0x29f98a=_0x2bc437;return _0x427a34[_0x29f98a(0x213)](_0x427a34[_0x29f98a(0x21d)],{'children':_0x29f98a(0x220)});}var _0x128aaf=Object['getOwnPropertyDescriptor'],_0x519d0c=(_0x23f9bb,_0x28d077,_0x314f34,_0x519939)=>{for(var _0x3e785b=_0x519939>0x1?void 0x0:_0x519939?_0x128aaf(_0x28d077,_0x314f34):_0x28d077,_0x4d9302=_0x23f9bb['length']-0x1,_0x28506d;_0x4d9302>=0x0;_0x4d9302--)(_0x28506d=_0x23f9bb[_0x4d9302])&&(_0x3e785b=_0x28506d(_0x3e785b)||_0x3e785b);return _0x3e785b;},_0xc5d368=(_0x3f66fa,_0xcea4a9)=>(_0x5f2620,_0x3b839e)=>_0xcea4a9(_0x5f2620,_0x3b839e,_0x3f66fa);_0x2193f3['DesktopLiveShareController']=class extends _0x43826d['Disposable']{constructor(_0x1b800c,_0x3d1202){const _0x4dcee6=_0x2bc437;super(),this[_0x4dcee6(0x186)]=_0x1b800c,this[_0x4dcee6(0x1b4)]=_0x3d1202,this[_0x4dcee6(0x16f)]();}[_0x2bc437(0x16f)](){const _0x2c9ebd=_0x2bc437;this[_0x2c9ebd(0x207)](this[_0x2c9ebd(0x1b4)]['registerComponent'](_0x37dc43['BuiltInUIPart'][_0x2c9ebd(0x218)],()=>_0x37dc43[_0x2c9ebd(0x1b1)](_0x39b0f6,this[_0x2c9ebd(0x186)])));}},_0x2193f3[_0x2bc437(0x22c)]=_0x519d0c([_0xc5d368(0x0,_0x43826d[_0x2bc437(0x210)](_0x43826d[_0x2bc437(0x19b)])),_0xc5d368(0x1,_0x37dc43['IUIPartsService'])],_0x2193f3[_0x2bc437(0x22c)]);const _0x5afe11='live-share.config',_0x4e584c={};var _0x4f4543=Object['getOwnPropertyDescriptor'],_0xfb3a51=(_0x231e99,_0x4f3a66,_0x22f783,_0x1e08ce)=>{for(var _0x4657cf=_0x1e08ce>0x1?void 0x0:_0x1e08ce?_0x4f4543(_0x4f3a66,_0x22f783):_0x4f3a66,_0x386056=_0x231e99['length']-0x1,_0x147b80;_0x386056>=0x0;_0x386056--)(_0x147b80=_0x231e99[_0x386056])&&(_0x4657cf=_0x147b80(_0x4657cf)||_0x4657cf);return _0x4657cf;},_0xeda233=(_0x448738,_0x4b9ba2)=>(_0x220b03,_0x101c9b)=>_0x4b9ba2(_0x220b03,_0x101c9b,_0x448738);let _0xee46ee=class extends _0x43826d['Disposable']{constructor(_0x3b8b02){const _0x5ddde1=_0x2bc437;super(),this[_0x5ddde1(0x176)]=_0x3b8b02,this[_0x5ddde1(0x15e)]();}[_0x2bc437(0x15e)](){const _0x39953e=_0x2bc437;[_0x5e9d1b['SetZoomRatioOperation']['id'],_0x5e9d1b[_0x39953e(0x185)]['id'],_0x240fa8[_0x39953e(0x23b)]['id']][_0x39953e(0x22f)](_0xf41f2a=>{const _0x1f35e2=_0x39953e;this[_0x1f35e2(0x207)](this['_liveShareService'][_0x1f35e2(0x17b)](_0xf41f2a));});}};_0xee46ee=_0xfb3a51([_0xeda233(0x0,_0x43826d[_0x2bc437(0x210)](_0x3e8160))],_0xee46ee);var _0x68697b=Object[_0x2bc437(0x1c2)],_0x5030a7=Object[_0x2bc437(0x21f)],_0x1422e8=(_0x497b79,_0x1ae711,_0x49b8a3)=>_0x1ae711 in _0x497b79?_0x68697b(_0x497b79,_0x1ae711,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49b8a3}):_0x497b79[_0x1ae711]=_0x49b8a3,_0x14c7de=(_0x1c0665,_0x4b5360,_0x194c65,_0xefb5c7)=>{const _0x180af3=_0x2bc437;for(var _0x33263c=_0xefb5c7>0x1?void 0x0:_0xefb5c7?_0x5030a7(_0x4b5360,_0x194c65):_0x4b5360,_0x43f417=_0x1c0665[_0x180af3(0x161)]-0x1,_0x4d53c0;_0x43f417>=0x0;_0x43f417--)(_0x4d53c0=_0x1c0665[_0x43f417])&&(_0x33263c=_0x4d53c0(_0x33263c)||_0x33263c);return _0x33263c;},_0x27c264=(_0x257ba8,_0x152035)=>(_0x47b9c9,_0x3f221b)=>_0x152035(_0x47b9c9,_0x3f221b,_0x257ba8),_0x116903=(_0x543854,_0x5009d9,_0x3f288f)=>_0x1422e8(_0x543854,typeof _0x5009d9!=_0x2bc437(0x1b8)?_0x5009d9+'':_0x5009d9,_0x3f288f);const _0x5de808='UNIVER_LIVE_SHARE_PLUGIN';_0x2193f3['UniverLiveSharePlugin']=class extends _0x43826d[_0x2bc437(0x1ac)]{constructor(_0x130749=_0x4e584c,_0x4cd1e9,_0x200227){const _0x3b07fc=_0x2bc437;super(),this[_0x3b07fc(0x201)]=_0x130749,this[_0x3b07fc(0x186)]=_0x4cd1e9,this[_0x3b07fc(0x1bd)]=_0x200227;const {..._0x66db4b}=_0x43826d['merge']({},_0x4e584c,this['_config']);this[_0x3b07fc(0x1bd)][_0x3b07fc(0x16c)](_0x5afe11,_0x66db4b);}[_0x2bc437(0x209)](){const _0x2e80ae=_0x2bc437;_0x43826d[_0x2e80ae(0x177)](this[_0x2e80ae(0x186)],_0x43826d[_0x2e80ae(0x217)]([[_0x3e8160],[_0x2193f3[_0x2e80ae(0x230)]],[_0xee46ee],[_0x2193f3[_0x2e80ae(0x22c)]]],this[_0x2e80ae(0x201)][_0x2e80ae(0x191)])),_0x43826d[_0x2e80ae(0x1b9)](this[_0x2e80ae(0x186)],[[_0xee46ee]]);}[_0x2bc437(0x16b)](){const _0xd63e93=_0x2bc437;_0x43826d[_0xd63e93(0x1b9)](this[_0xd63e93(0x186)],[[_0x2193f3[_0xd63e93(0x22c)]]]);}},_0x116903(_0x2193f3[_0x2bc437(0x184)],'type',_0x43826d[_0x2bc437(0x167)][_0x2bc437(0x1b6)]),_0x116903(_0x2193f3[_0x2bc437(0x184)],_0x2bc437(0x1f9),_0x5de808),_0x2193f3[_0x2bc437(0x184)]=_0x14c7de([_0x43826d[_0x2bc437(0x1af)](_0x4a4464[_0x2bc437(0x1a0)]),_0x27c264(0x1,_0x43826d[_0x2bc437(0x210)](_0x43826d[_0x2bc437(0x19b)])),_0x27c264(0x2,_0x43826d[_0x2bc437(0x21a)])],_0x2193f3[_0x2bc437(0x184)]),_0x2193f3[_0x2bc437(0x15d)]=_0x39b0f6,_0x2193f3[_0x2bc437(0x232)]=_0x3e8160,_0x2193f3[_0x2bc437(0x21e)]=_0x532c80,Object[_0x2bc437(0x1c2)](_0x2193f3,Symbol[_0x2bc437(0x20b)],{'value':_0x2bc437(0x1fb)});}));
|
|
1
|
+
function _0x50c8(_0x40f539,_0x589214){const _0x4b652a=_0x4b65();return _0x50c8=function(_0x50c8c3,_0x17446e){_0x50c8c3=_0x50c8c3-0xd1;let _0x230995=_0x4b652a[_0x50c8c3];return _0x230995;},_0x50c8(_0x40f539,_0x589214);}function _0x4b65(){const _0x1232ea=['_startLiveShareCoordinator','data','button','_status','_config','UniverSheetsUi','map','connectInjector','dispose','UniverProCollaboration','string','Injector','@univerjs-pro/collaboration','startFollowing','709140izwVKd','You\x27re\x20presenting\x20the\x20document','set','UniverUi','useRef','UniverCollaborationClientPlugin','div','registerSharedOperation','SetZoomRatioOperation','unitId','subscribe','SetWorksheetActiveOperation','NOT_FOLLOWING','@univerjs/sheets-ui','reverse','683810wWFjLt','symbol','React','@univerjs/ui','evenodd','DependentOn','_startFollowing','BehaviorSubject','http://www.w3.org/2000/svg','DisposableCollection','react','fill','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','complete','Disposable','_entities','_collabSession','setConfig','UniverLiveSharePlugin','text','LIVESHARE_NEW_HOST','Fragment','pipe','_handleTerminate','UniverCore','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','IConfigService','init','@univerjs/core','ONLINE','executeCommand','forEach','defs','onCommandExecuted','OFFLINE','CollaborationEvent','228198ruUkdB','UniverProLiveShare','defineProperty','LIVESHARE_TERMINATE','useObservable','_handleNewChangeSets','merge','univer-size-4','ICommandService','Button','takeUntil','@univerjs/sheets','10Pdewix','event$','registerComponent','createInstance','createElement','UniverSheets','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','dispose$','HEADER_MENU','parse','RxDisposable','end','UniverInstanceType','You\x27are\x20offline.','LiveShareStatus','touchDependencies','_handleOnline','getMemberID','LiveShare','933156ldKgSq','memberID','getCurrentTypeOfUnit$','univer-mb-3\x20univer-w-full\x20univer-text-sm','operators','find','_init','has','jsx','InsertSheetMutation','get','Module','@univerjs/design','use','IDLE','_stopPresenting','_fetchOperations','_uiPartsService','send','_presenter','substring','mask','svg','getLiveShareCoordinator','length','_collabSessionService','_stopFollowing','CommandType','params','_liveShareService','Subject','DesktopLiveShareController','_handleOperation','_status$','getUnitId','next','BuiltInUIPart','tryStartPresenting','IUniverInstanceService','stopFollowing','status$','Inject','UniverIcon','getOwnPropertyDescriptor','_injector','presenter','includes','LiveShareIcon','LIVESHARE_REQUEST_HOST','FOLLOWING','Present\x20this\x20document','add','delete','You\x27re\x20following\x20the\x20presenter','_reporters','idle','_commandService','getConfig','_handleOffline','stringify','react/jsx-runtime','Stop\x20following','object','_startPresenting','stopPresenting','LiveShareService','toStringTag','random','Start\x20following','_configService','1894584wYgjQj','_unitID','1690hTsTKr','OPERATION','clear','41561tWDjzg','_mountLiveShare','forwardRef','UniverProCollaborationClient','live-share.config','_univerInstanceService','LiveShareCoordinator','jsxs','colorChannel1','presenting','useEffect','operations','UNIVER_SHEET','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','currentColor','1em','useState','following','url(#$1','offline','SessionStatus','getTypeOfUnitAdded$','from','path','getTypeOfUnitDisposed$','xlink:href','tag','getStatus','toDisposable','attrs','Stop\x20presenting','mergeOverrideWithDependencies','rxjs','IUIPartsService','useDependency','getInitialStates','LIVESHARE_OPERATION','SetScrollOperation','_handleNewHost','LiveShareController','_commandDisposable','displayName','idSuffix','getValue','default','PRESENTING','3462ygreDh','onStarting','replace','_beIdle','current','children','type','registerInitialStateReporter','entries','then','LIVESHARE_FETCH_OPERATIONS','_sharedOperations','Start','override','function','0\x200\x2017\x2017','not-following','You\x27re\x20not\x20following\x20the\x20presenter','live-share-icon','@univerjs-pro/collaboration-client','36IVduMP','asObservable','values','shouldShareOperation'];_0x4b65=function(){return _0x1232ea;};return _0x4b65();}(function(_0x141201,_0x16c057){const _0x2de709=_0x50c8,_0x58ef4a=_0x141201();while(!![]){try{const _0x45a851=parseInt(_0x2de709(0xdc))/0x1*(parseInt(_0x2de709(0x16f))/0x2)+-parseInt(_0x2de709(0x163))/0x3+-parseInt(_0x2de709(0x130))/0x4+-parseInt(_0x2de709(0xd9))/0x5*(parseInt(_0x2de709(0x10a))/0x6)+-parseInt(_0x2de709(0x182))/0x7+parseInt(_0x2de709(0xd7))/0x8+parseInt(_0x2de709(0x11e))/0x9*(parseInt(_0x2de709(0x13f))/0xa);if(_0x45a851===_0x16c057)break;else _0x58ef4a['push'](_0x58ef4a['shift']());}catch(_0x10a5d5){_0x58ef4a['push'](_0x58ef4a['shift']());}}}(_0x4b65,0x21513),function(_0x2b0234,_0x49e7c7){const _0x2a16df=_0x50c8;typeof exports==_0x2a16df(0x1c0)&&typeof module<'u'?_0x49e7c7(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==_0x2a16df(0x118)&&define['amd']?define(['exports',_0x2a16df(0x15b),_0x2a16df(0x142),_0x2a16df(0x1be),_0x2a16df(0x18e),_0x2a16df(0x149),_0x2a16df(0x12e),_0x2a16df(0x11d),_0x2a16df(0x16e),_0x2a16df(0xfc),'rxjs/operators',_0x2a16df(0x13d)],_0x49e7c7):(_0x2b0234=typeof globalThis<'u'?globalThis:_0x2b0234||self,_0x49e7c7(_0x2b0234[_0x2a16df(0x164)]={},_0x2b0234[_0x2a16df(0x157)],_0x2b0234[_0x2a16df(0x133)],_0x2b0234[_0x2a16df(0x141)],_0x2b0234['UniverDesign'],_0x2b0234['React'],_0x2b0234[_0x2a16df(0x12b)],_0x2b0234[_0x2a16df(0xdf)],_0x2b0234[_0x2a16df(0x174)],_0x2b0234['rxjs'],_0x2b0234[_0x2a16df(0xfc)][_0x2a16df(0x186)],_0x2b0234[_0x2a16df(0x127)]));}(this,function(_0x4e3063,_0x40e527,_0x296916,_0x2bab04,_0x440e50,_0x28287e,_0x14c058,_0x2a3c77,_0x23df98,_0x29d244,_0x566e79,_0xa5d015){'use strict';const _0x157494=_0x50c8;var _0x563399=Object[_0x157494(0x165)],_0xa90e21=(_0x7e181a,_0x592f42,_0x1b7723)=>_0x592f42 in _0x7e181a?_0x563399(_0x7e181a,_0x592f42,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b7723}):_0x7e181a[_0x592f42]=_0x1b7723,_0x252ddf=(_0x361399,_0x33c28e,_0x26d9d0)=>_0xa90e21(_0x361399,typeof _0x33c28e!='symbol'?_0x33c28e+'':_0x33c28e,_0x26d9d0);function _0x54209b({ref:_0x39f9b9,..._0x1add72}){const _0x36fc94=_0x157494,{icon:_0x52cb53,id:_0x3ee9fd,className:_0x4ccdc8,extend:_0x2e81c1,..._0x12a695}=_0x1add72,_0x2fdeff=('univerjs-icon\x20univerjs-icon-'+_0x3ee9fd+'\x20'+(_0x4ccdc8||''))['trim'](),_0x54dfc5=_0x28287e[_0x36fc94(0x134)]('_'+_0x1496e1());return _0x4cb8f3(_0x52cb53,''+_0x3ee9fd,{'defIds':_0x52cb53['defIds'],'idSuffix':_0x54dfc5[_0x36fc94(0x10e)]},{'ref':_0x39f9b9,'className':_0x2fdeff,..._0x12a695},_0x2e81c1);}function _0x4cb8f3(_0x2f846a,_0x2b07f0,_0x443a37,_0x1b72b5,_0x566b05){const _0x3809f7=_0x157494;return _0x28287e[_0x3809f7(0x173)](_0x2f846a[_0x3809f7(0xf6)],{'key':_0x2b07f0,..._0x37be8e(_0x2f846a,_0x443a37,_0x566b05),..._0x1b72b5},(_0x1c9310(_0x2f846a,_0x443a37)[_0x3809f7(0x10f)]||[])[_0x3809f7(0x128)]((_0x1031ea,_0x877693)=>_0x4cb8f3(_0x1031ea,_0x2b07f0+'-'+_0x2f846a[_0x3809f7(0xf6)]+'-'+_0x877693,_0x443a37,void 0x0,_0x566b05)));}function _0x37be8e(_0xb15733,_0x528d6e,_0x2eaef8){const _0x245d3e=_0x157494,_0x5711e9={..._0xb15733[_0x245d3e(0xf9)]};_0x2eaef8!=null&&_0x2eaef8[_0x245d3e(0xe4)]&&_0x5711e9[_0x245d3e(0x14a)]==='colorChannel1'&&(_0x5711e9[_0x245d3e(0x14a)]=_0x2eaef8[_0x245d3e(0xe4)]),_0xb15733[_0x245d3e(0xf6)]===_0x245d3e(0x197)&&_0x5711e9['id']&&(_0x5711e9['id']=_0x5711e9['id']+_0x528d6e[_0x245d3e(0x106)]),Object[_0x245d3e(0x112)](_0x5711e9)[_0x245d3e(0x15e)](([_0x588d7d,_0x274420])=>{const _0x5acead=_0x245d3e;_0x588d7d==='mask'&&typeof _0x274420==_0x5acead(0x12c)&&(_0x5711e9[_0x588d7d]=_0x274420[_0x5acead(0x10c)](/url\(#(.*)\)/,_0x5acead(0xee)+_0x528d6e['idSuffix']+')'));});const {defIds:_0x4ef5bb}=_0x528d6e;return!_0x4ef5bb||_0x4ef5bb[_0x245d3e(0x19a)]===0x0||(_0xb15733[_0x245d3e(0xf6)]===_0x245d3e(0x18f)&&_0x5711e9[_0x245d3e(0xf5)]&&(_0x5711e9[_0x245d3e(0xf5)]=_0x5711e9[_0x245d3e(0xf5)]+_0x528d6e[_0x245d3e(0x106)]),Object[_0x245d3e(0x112)](_0x5711e9)['forEach'](([_0x3866cc,_0x1cda8c])=>{const _0x562ceb=_0x245d3e;typeof _0x1cda8c=='string'&&(_0x5711e9[_0x3866cc]=_0x1cda8c[_0x562ceb(0x10c)](/url\(#(.*)\)/,_0x562ceb(0xee)+_0x528d6e[_0x562ceb(0x106)]+')'));})),_0x5711e9;}function _0x1c9310(_0x261afc,_0xe16627){const _0x5eac49=_0x157494;var _0x297c1c;const {defIds:_0x12ce7f}=_0xe16627;return!_0x12ce7f||_0x12ce7f[_0x5eac49(0x19a)]===0x0?_0x261afc:_0x261afc[_0x5eac49(0xf6)]===_0x5eac49(0x15f)&&((_0x297c1c=_0x261afc[_0x5eac49(0x10f)])!=null&&_0x297c1c[_0x5eac49(0x19a)])?{..._0x261afc,'children':_0x261afc[_0x5eac49(0x10f)][_0x5eac49(0x128)](_0x178a75=>typeof _0x178a75['attrs']['id']==_0x5eac49(0x12c)&&_0x12ce7f&&_0x12ce7f['includes'](_0x178a75[_0x5eac49(0xf9)]['id'])?{..._0x178a75,'attrs':{..._0x178a75[_0x5eac49(0xf9)],'id':_0x178a75[_0x5eac49(0xf9)]['id']+_0xe16627[_0x5eac49(0x106)]}}:_0x178a75)}:_0x261afc;}function _0x1496e1(){const _0x48e42d=_0x157494;return Math[_0x48e42d(0xd4)]()['toString'](0x24)[_0x48e42d(0x196)](0x2,0x8);}_0x54209b[_0x157494(0x105)]=_0x157494(0x1ac);const _0x4550d5={'tag':_0x157494(0x198),'attrs':{'xmlns':_0x157494(0x147),'fill':'none','viewBox':_0x157494(0x119),'width':_0x157494(0xeb),'height':_0x157494(0xeb)},'children':[{'tag':'path','attrs':{'fill':_0x157494(0xea),'d':_0x157494(0x14b)}},{'tag':_0x157494(0xf3),'attrs':{'fill':_0x157494(0xea),'d':_0x157494(0xe9),'fillRule':_0x157494(0x143),'clipRule':'evenodd'}}]},_0x259ec3=_0x28287e[_0x157494(0xde)](function(_0x1b0142,_0x583ac7){const _0x4220ad=_0x157494;return _0x28287e[_0x4220ad(0x173)](_0x54209b,Object['assign']({},_0x1b0142,{'id':_0x4220ad(0x11c),'ref':_0x583ac7,'icon':_0x4550d5}));});_0x259ec3[_0x157494(0x105)]=_0x157494(0x1b1);class _0x5d73bc extends _0x40e527[_0x157494(0x14d)]{constructor(){const _0x295368=_0x157494;super(...arguments),_0x252ddf(this,'_sharedOperations',new Set()),_0x252ddf(this,_0x295368(0x1b8),new Set());}[_0x157494(0x137)](_0x182df3){const _0x3a2c01=_0x157494;return this[_0x3a2c01(0x115)]['add'](_0x182df3),_0x40e527['toDisposable'](()=>this[_0x3a2c01(0x115)][_0x3a2c01(0x1b6)](_0x182df3));}[_0x157494(0x111)](_0x1ac1f3){const _0xe7d3f5=_0x157494;return this[_0xe7d3f5(0x1b8)][_0xe7d3f5(0x1b5)](_0x1ac1f3),_0x40e527[_0xe7d3f5(0xf8)](()=>this[_0xe7d3f5(0x1b8)][_0xe7d3f5(0x1b6)](_0x1ac1f3));}[_0x157494(0x121)](_0x306e47){return this['_sharedOperations']['has'](_0x306e47);}[_0x157494(0xff)](_0x3a9489){const _0x18d716=_0x157494;return Array[_0x18d716(0xf2)](this['_reporters'])['map'](_0x232985=>_0x232985(_0x3a9489));}}var _0x5dc097=Object[_0x157494(0x1ad)],_0xd7994=(_0x16ccbf,_0x80368d,_0x380573,_0x1f6b07)=>{const _0x31939c=_0x157494;for(var _0x401952=_0x1f6b07>0x1?void 0x0:_0x1f6b07?_0x5dc097(_0x80368d,_0x380573):_0x80368d,_0xa222dc=_0x16ccbf[_0x31939c(0x19a)]-0x1,_0x5bd407;_0xa222dc>=0x0;_0xa222dc--)(_0x5bd407=_0x16ccbf[_0xa222dc])&&(_0x401952=_0x5bd407(_0x401952)||_0x401952);return _0x401952;},_0xdc52d5=(_0x2125ff,_0x20c400)=>(_0x5da4e8,_0x563477)=>_0x20c400(_0x5da4e8,_0x563477,_0x2125ff);_0x4e3063['LiveShareController']=class extends _0x40e527[_0x157494(0x179)]{constructor(_0x10c45d,_0x372beb,_0x5e893c){const _0x1bcb31=_0x157494;super(),_0x252ddf(this,_0x1bcb31(0x14e),new Map()),(this[_0x1bcb31(0xe1)]=_0x10c45d,this[_0x1bcb31(0x1ae)]=_0x372beb,this[_0x1bcb31(0x19b)]=_0x5e893c,this[_0x1bcb31(0x188)]());}async['getLiveShareCoordinator'](_0x1e8677){const _0x483ae4=_0x157494;return this[_0x483ae4(0x14e)]['has'](_0x1e8677)||await this[_0x483ae4(0x122)](_0x1e8677),this[_0x483ae4(0x14e)][_0x483ae4(0x18c)](_0x1e8677);}['getLiveShareCoordinatorSync'](_0x320777){const _0x47412b=_0x157494;var _0x397ab6;return(_0x397ab6=this[_0x47412b(0x14e)][_0x47412b(0x18c)](_0x320777))!=null?_0x397ab6:null;}[_0x157494(0x188)](){const _0x9e8459=_0x157494;this[_0x9e8459(0xe1)][_0x9e8459(0xf1)](_0x40e527['UniverInstanceType']['UNIVER_SHEET'])[_0x9e8459(0x155)](_0x566e79[_0x9e8459(0x16d)](this['dispose$']))[_0x9e8459(0x13a)](async _0x22f592=>{const _0x462b4f=_0x9e8459,_0x2e2802=_0x22f592[_0x462b4f(0x1a4)]();this[_0x462b4f(0x14e)][_0x462b4f(0x189)](_0x2e2802)||this[_0x462b4f(0x122)](_0x2e2802);}),this[_0x9e8459(0xe1)][_0x9e8459(0xf4)](_0x40e527[_0x9e8459(0x17b)][_0x9e8459(0xe8)])[_0x9e8459(0x155)](_0x566e79[_0x9e8459(0x16d)](this[_0x9e8459(0x176)]))[_0x9e8459(0x13a)](_0x4d49e6=>{const _0x16e32d=_0x9e8459,_0x24ae69=_0x4d49e6[_0x16e32d(0x1a4)](),_0x3d85b6=this[_0x16e32d(0x14e)][_0x16e32d(0x18c)](_0x24ae69);_0x3d85b6==null||_0x3d85b6[_0x16e32d(0x12a)]();});}async['_startLiveShareCoordinator'](_0x27e789){const _0x3c5618=_0x157494,_0x503127=await this[_0x3c5618(0x19b)]['requireSession'](_0x27e789),_0x379bd6=this[_0x3c5618(0x1ae)][_0x3c5618(0x172)](_0x4e3063[_0x3c5618(0xe2)],_0x27e789,_0x503127);return _0x379bd6[_0x3c5618(0x15a)](),this['_entities'][_0x3c5618(0x132)](_0x27e789,_0x379bd6),_0x379bd6;}},_0x4e3063[_0x157494(0x103)]=_0xd7994([_0xdc52d5(0x0,_0x40e527[_0x157494(0x1a8)]),_0xdc52d5(0x1,_0x40e527[_0x157494(0x1ab)](_0x40e527[_0x157494(0x12d)])),_0xdc52d5(0x2,_0x40e527[_0x157494(0x1ab)](_0x2a3c77['CollaborationSessionService']))],_0x4e3063[_0x157494(0x103)]);var _0xc2ddd1=(_0x54e62c=>(_0x54e62c['OFFLINE']='offline',_0x54e62c[_0x157494(0x190)]='idle',_0x54e62c[_0x157494(0x1b3)]='following',_0x54e62c[_0x157494(0x13c)]=_0x157494(0x11a),_0x54e62c['PRESENTING']=_0x157494(0xe5),_0x54e62c))(_0xc2ddd1||{});const _0x11cda7='SAME_OPERATION_SHARE_INTERVAL',_0xb5df1b=0xc8;_0x4e3063['LiveShareCoordinator']=class extends _0x40e527['RxDisposable']{constructor(_0x4a39cb,_0x3b2b6b,_0x11018f,_0x302035,_0x57bc0e){const _0xf29d04=_0x157494;super(),_0x252ddf(this,_0xf29d04(0x1a3),new _0x29d244[(_0xf29d04(0x146))](_0xf29d04(0x1b9))),_0x252ddf(this,_0xf29d04(0x1aa),this[_0xf29d04(0x1a3)][_0xf29d04(0x11f)]()),_0x252ddf(this,_0xf29d04(0x188),!0x1),_0x252ddf(this,'_commandDisposable',null),_0x252ddf(this,_0xf29d04(0x195),null),(this[_0xf29d04(0xd8)]=_0x4a39cb,this[_0xf29d04(0x14f)]=_0x3b2b6b,this[_0xf29d04(0xd6)]=_0x11018f,this['_liveShareService']=_0x302035,this[_0xf29d04(0x1ba)]=_0x57bc0e);}get[_0x157494(0x125)](){const _0x364873=_0x157494;return this[_0x364873(0x1a3)][_0x364873(0x107)]();}['dispose'](){const _0x120e61=_0x157494;var _0x375b48;(_0x375b48=this[_0x120e61(0x104)])==null||_0x375b48['dispose'](),this[_0x120e61(0x1a3)][_0x120e61(0x1a5)](_0x120e61(0x1b9)),this['_status$'][_0x120e61(0x14c)]();}[_0x157494(0xf7)](){const _0x47c919=_0x157494;return this[_0x47c919(0x125)];}[_0x157494(0x15a)](){const _0x34110d=_0x157494;this['_init']||(this[_0x34110d(0x188)]=!0x0,this[_0x34110d(0x14f)]['sessionStatus$'][_0x34110d(0x155)](_0x566e79[_0x34110d(0x16d)](this[_0x34110d(0x176)]))[_0x34110d(0x13a)](_0x122d9c=>{const _0x54a14a=_0x34110d;switch(_0x122d9c){case _0x2a3c77['SessionStatus'][_0x54a14a(0x161)]:this[_0x54a14a(0x1bc)]();break;case _0x2a3c77[_0x54a14a(0xf0)][_0x54a14a(0x15c)]:this[_0x54a14a(0x17f)]();break;}}),this[_0x34110d(0x14f)][_0x34110d(0x170)][_0x34110d(0x155)](_0x566e79[_0x34110d(0x16d)](this[_0x34110d(0x176)]))['subscribe'](_0x5174f4=>{const _0x387189=_0x34110d,{eventID:_0x5cdfe7}=_0x5174f4;switch(_0x5cdfe7){case _0x14c058[_0x387189(0x162)][_0x387189(0x153)]:this['_handleNewHost'](_0x5174f4);break;case _0x14c058[_0x387189(0x162)][_0x387189(0x100)]:this[_0x387189(0x1a2)](_0x5174f4);break;case _0x14c058[_0x387189(0x162)][_0x387189(0x166)]:this[_0x387189(0x156)]();break;case _0x14c058[_0x387189(0x162)]['NEW_CHANGESETS']:this[_0x387189(0x168)](_0x5174f4);break;}}));}['tryStartPresenting'](){const _0x470fd1=_0x157494;this[_0x470fd1(0x14f)][_0x470fd1(0x194)]({'eventID':_0x14c058[_0x470fd1(0x162)][_0x470fd1(0x1b2)],'data':{'unitID':this[_0x470fd1(0xd8)],'userID':this['_collabSession'][_0x470fd1(0x180)]()}},this[_0x470fd1(0xd8)]);}[_0x157494(0xd1)](){const _0x302bbc=_0x157494;this['_status']===_0x302bbc(0xe5)&&(this[_0x302bbc(0x1a3)]['next']('idle'),this[_0x302bbc(0x14f)][_0x302bbc(0x194)]({'eventID':_0x14c058[_0x302bbc(0x162)][_0x302bbc(0x166)],'data':{'unitID':this[_0x302bbc(0xd8)]}},this['_unitID']));}['startFollowing'](){const _0x17f155=_0x157494;this[_0x17f155(0x125)]===_0x17f155(0x11a)&&(this[_0x17f155(0x1a3)][_0x17f155(0x1a5)]('following'),this[_0x17f155(0x145)]());}[_0x157494(0x1a9)](){const _0x18a52e=_0x157494;this[_0x18a52e(0x125)]===_0x18a52e(0xed)&&this[_0x18a52e(0x19c)]();}[_0x157494(0x102)](_0x136721){const _0x4f1609=_0x157494,{presenter:_0x2f5041}=_0x136721['data'],_0x48390b=this[_0x4f1609(0x14f)][_0x4f1609(0x180)]();this[_0x4f1609(0x195)]=_0x2f5041,_0x2f5041===_0x48390b?(this[_0x4f1609(0x19c)](),this[_0x4f1609(0x1c1)]()):this[_0x4f1609(0x125)]!==_0x4f1609(0x11a)&&(this[_0x4f1609(0x191)](),this[_0x4f1609(0x145)]());}[_0x157494(0x192)](){const _0x67a7a7=_0x157494,_0x6a00e4={'eventID':_0x14c058[_0x67a7a7(0x162)][_0x67a7a7(0x114)]};this[_0x67a7a7(0x14f)][_0x67a7a7(0x194)](_0x6a00e4,this['_unitID']);}[_0x157494(0x156)](){const _0x4f7512=_0x157494;this[_0x4f7512(0x195)]=null,this[_0x4f7512(0x125)]!==_0x4f7512(0xe5)&&this[_0x4f7512(0x10d)]();}[_0x157494(0x168)](_0x30b683){const _0x450e53=_0x157494;if(this[_0x450e53(0x125)]===_0x450e53(0xed)&&this[_0x450e53(0x195)]===_0x30b683[_0x450e53(0x123)][_0x450e53(0x183)]){const _0x1a061e=_0x14c058['parseProtocolChangeset'](_0x30b683[_0x450e53(0x123)])['mutations'][_0x450e53(0x13e)]()[_0x450e53(0x187)](_0x1ae59e=>_0x1ae59e['id']===_0x23df98[_0x450e53(0x18b)]['id']);if(_0x1a061e){const _0x1eda6c=_0x1a061e[_0x450e53(0x19e)][_0x450e53(0x139)],_0x33c28f=_0x1a061e['params']['sheet']['id'];setTimeout(()=>{const _0x465947=_0x450e53;this[_0x465947(0x1ba)][_0x465947(0x15d)](_0x23df98[_0x465947(0x13b)]['id'],{'unitId':_0x1eda6c,'subUnitId':_0x33c28f},{'fromCollab':!0x0});});}}}[_0x157494(0x1c1)](){const _0x31fa3c=_0x157494;this[_0x31fa3c(0x1a3)]['next'](_0x31fa3c(0xe5));const _0x308d76=new Map(),_0x171964=this[_0x31fa3c(0x104)]=new _0x40e527[(_0x31fa3c(0x148))]();_0x171964['add'](_0x40e527[_0x31fa3c(0xf8)](()=>{const _0x246764=_0x31fa3c;_0x308d76['forEach'](_0x4e7bb0=>_0x4e7bb0[_0x246764(0x14c)]()),_0x308d76[_0x246764(0xdb)]();})),_0x171964[_0x31fa3c(0x1b5)](this[_0x31fa3c(0x1ba)][_0x31fa3c(0x160)](_0x1009bb=>{const _0x390db4=_0x31fa3c;var _0x465765;if(_0x1009bb['type']!==_0x40e527[_0x390db4(0x19d)][_0x390db4(0xda)]||!this['_liveShareService'][_0x390db4(0x121)](_0x1009bb['id']))return;const {id:_0x4ce7f8}=_0x1009bb;let _0x52d0ed;_0x308d76[_0x390db4(0x189)](_0x4ce7f8)?_0x52d0ed=_0x308d76[_0x390db4(0x18c)](_0x4ce7f8):(_0x52d0ed=new _0x29d244[(_0x390db4(0x1a0))](),_0x308d76[_0x390db4(0x132)](_0x4ce7f8,_0x52d0ed),_0x52d0ed[_0x390db4(0x155)](_0x566e79['throttleTime']((_0x465765=this[_0x390db4(0xd6)][_0x390db4(0x1bb)](_0x11cda7))!=null?_0x465765:_0xb5df1b,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0xb5dca6=>{const _0x4b310b=_0x390db4;this['_collabSession'][_0x4b310b(0x194)]({'eventID':_0x14c058[_0x4b310b(0x162)][_0x4b310b(0x100)],'data':{'unitID':this['_unitID'],'operations':{[_0xb5dca6['id']]:{'id':_0xb5dca6['id'],'params':JSON[_0x4b310b(0x1bd)](_0xb5dca6[_0x4b310b(0x19e)])}}}},this['_unitID']);})),_0x52d0ed[_0x390db4(0x1a5)](_0x1009bb);})),this['_liveShareService']['getInitialStates'](this['_unitID'])[_0x31fa3c(0x15e)](_0x1f4d4e=>this[_0x31fa3c(0x14f)][_0x31fa3c(0x194)]({'eventID':_0x14c058[_0x31fa3c(0x162)][_0x31fa3c(0x100)],'data':{'unitID':this[_0x31fa3c(0xd8)],'operations':{[_0x1f4d4e['id']]:{'id':_0x1f4d4e['id'],'params':JSON[_0x31fa3c(0x1bd)](_0x1f4d4e[_0x31fa3c(0x19e)])}}}},this[_0x31fa3c(0xd8)]));}[_0x157494(0x191)](){const _0x469095=_0x157494;var _0x2183fc;this[_0x469095(0x1a3)][_0x469095(0x1a5)]('idle'),(_0x2183fc=this[_0x469095(0x104)])==null||_0x2183fc['dispose'](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x3e6e01=_0x157494;var _0x484d65;(_0x484d65=this[_0x3e6e01(0x104)])==null||_0x484d65[_0x3e6e01(0x12a)](),this[_0x3e6e01(0x1a3)][_0x3e6e01(0x1a5)]('following');}[_0x157494(0x10d)](){const _0x445c12=_0x157494;var _0x7e3927;this[_0x445c12(0x1a3)]['next']('idle'),(_0x7e3927=this[_0x445c12(0x104)])==null||_0x7e3927[_0x445c12(0x12a)](),this[_0x445c12(0x104)]=null;}['_stopFollowing'](){const _0x5e9760=_0x157494;var _0xa2df6;this[_0x5e9760(0x1a3)][_0x5e9760(0x1a5)](_0x5e9760(0x11a)),(_0xa2df6=this[_0x5e9760(0x104)])==null||_0xa2df6[_0x5e9760(0x12a)]();}[_0x157494(0x1a2)](_0x51b753){const _0x47d2f9=_0x157494;if([_0x47d2f9(0xe5),_0x47d2f9(0x11a),'offline'][_0x47d2f9(0x1b0)](this['_status'])||!_0x51b753['data'][_0x47d2f9(0x1af)]||_0x51b753[_0x47d2f9(0x123)]['presenter']===this['_collabSession'][_0x47d2f9(0x180)]())return;this[_0x47d2f9(0x125)]===_0x47d2f9(0x1b9)&&this[_0x47d2f9(0x145)]();const _0xf35de4=_0x51b753[_0x47d2f9(0x123)][_0x47d2f9(0xe7)];Object[_0x47d2f9(0x120)](_0xf35de4)['forEach'](_0xcf8631=>{const _0x28f190=_0x47d2f9;this[_0x28f190(0x1ba)][_0x28f190(0x15d)](_0xcf8631['id'],_0xcf8631[_0x28f190(0x19e)]?JSON[_0x28f190(0x178)](_0xcf8631[_0x28f190(0x19e)]):null,{'fromCollab':!0x0});});}[_0x157494(0x1bc)](){const _0x224493=_0x157494;var _0x1aef84;this['_status$']['next'](_0x224493(0xef)),(_0x1aef84=this['_commandDisposable'])==null||_0x1aef84['dispose']();}[_0x157494(0x17f)](){const _0x3b9811=_0x157494;this[_0x3b9811(0x1a3)][_0x3b9811(0x1a5)](_0x3b9811(0x1b9)),this[_0x3b9811(0x192)]();}},_0x4e3063[_0x157494(0xe2)]=_0xd7994([_0xdc52d5(0x2,_0x40e527[_0x157494(0x159)]),_0xdc52d5(0x3,_0x40e527['Inject'](_0x5d73bc)),_0xdc52d5(0x4,_0x40e527[_0x157494(0x16b)])],_0x4e3063[_0x157494(0xe2)]);function _0x1048c8(){const _0x50027d=_0x157494,_0x47dbbd=_0x296916[_0x50027d(0xfe)](_0x4e3063[_0x50027d(0x103)]),_0x36ae56=_0x296916[_0x50027d(0xfe)](_0x40e527[_0x50027d(0x1a8)]),_0x2f5130=_0x296916[_0x50027d(0x167)](()=>_0x36ae56[_0x50027d(0x184)](_0x40e527[_0x50027d(0x17b)][_0x50027d(0xe8)]),void 0x0,!0x1,[]),[_0x5f444e,_0x7c2942]=_0x28287e['useState'](null),[_0x44db8f,_0x4d37ad]=_0x28287e[_0x50027d(0xec)](_0xc2ddd1[_0x50027d(0x190)]),_0x445def=_0x28287e['useRef'](null);return _0x28287e[_0x50027d(0xe6)](()=>(_0x2f5130&&_0x47dbbd[_0x50027d(0x199)](_0x2f5130['getUnitId']())[_0x50027d(0x113)](_0xd75c88=>{const _0x2324c2=_0x50027d;_0x7c2942(_0xd75c88),_0x445def[_0x2324c2(0x10e)]=_0xd75c88[_0x2324c2(0x1aa)][_0x2324c2(0x13a)](_0x3d5948=>{_0x4d37ad(_0x3d5948);});}),()=>{const _0x58ce5b=_0x50027d;var _0x27f81d;(_0x27f81d=_0x445def[_0x58ce5b(0x10e)])==null||_0x27f81d['unsubscribe'](),_0x445def[_0x58ce5b(0x10e)]=null;}),[_0x2f5130,_0x47dbbd]),_0x5f444e?_0x2bab04[_0x50027d(0x18a)](_0x440e50['Dropdown'],{'align':_0x50027d(0x17a),'disabled':_0x44db8f===_0xc2ddd1[_0x50027d(0x161)],'className':_0x50027d(0x175),'overlay':_0x2bab04[_0x50027d(0x18a)](_0x4d7b4b,{'status':_0x44db8f,'coordinator':_0x5f444e}),'children':_0x2bab04[_0x50027d(0x18a)](_0x50027d(0x124),{'className':_0x440e50['clsx'](_0x50027d(0x158),{'univer-cursor-not-allowed':_0x44db8f===_0xc2ddd1[_0x50027d(0x161)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x44db8f!==_0xc2ddd1[_0x50027d(0x161)]}),'type':'button','children':_0x2bab04[_0x50027d(0x18a)](_0x259ec3,{'className':_0x50027d(0x16a)})})}):null;}function _0x4d7b4b(_0xc6f0c2){const _0x15bdf7=_0x157494,{status:_0xf80ceb,coordinator:_0x1bdade}=_0xc6f0c2;switch(_0xf80ceb){case _0xc2ddd1['IDLE']:return _0x2bab04['jsx'](_0x5624d2,{'coordinator':_0x1bdade});case _0xc2ddd1['FOLLOWING']:return _0x2bab04[_0x15bdf7(0x18a)](_0x503d05,{'coordinator':_0x1bdade});case _0xc2ddd1['NOT_FOLLOWING']:return _0x2bab04[_0x15bdf7(0x18a)](_0x21e693,{'coordinator':_0x1bdade});case _0xc2ddd1['OFFLINE']:return _0x2bab04[_0x15bdf7(0x18a)](_0x1401ad,{});case _0xc2ddd1[_0x15bdf7(0x109)]:return _0x2bab04[_0x15bdf7(0x18a)](_0x5155b7,{'coordinator':_0x1bdade});default:return null;}}function _0x5624d2(_0xa55704){const _0x28e809=_0x157494,{coordinator:_0x20ace7}=_0xa55704;return _0x2bab04['jsxs'](_0x2bab04['Fragment'],{'children':[_0x2bab04[_0x28e809(0x18a)](_0x28e809(0x136),{'className':_0x28e809(0x185),'children':_0x28e809(0x1b4)}),_0x2bab04[_0x28e809(0x18a)](_0x440e50[_0x28e809(0x16c)],{'onClick':()=>_0x20ace7[_0x28e809(0x1a7)](),'children':_0x28e809(0x116)})]});}function _0x503d05(_0x4f29d6){const _0x512d5e=_0x157494,{coordinator:_0x3bf0fe}=_0x4f29d6;return _0x2bab04['jsxs'](_0x2bab04[_0x512d5e(0x154)],{'children':[_0x2bab04[_0x512d5e(0x18a)](_0x512d5e(0x136),{'className':_0x512d5e(0x185),'children':_0x512d5e(0x1b7)}),_0x2bab04['jsx'](_0x440e50[_0x512d5e(0x16c)],{'onClick':()=>_0x3bf0fe['stopFollowing'](),'children':_0x512d5e(0x1bf)})]});}function _0x21e693(_0x437d19){const _0x2b3fb5=_0x157494,{coordinator:_0x17bad}=_0x437d19;return _0x2bab04[_0x2b3fb5(0xe3)](_0x2bab04['Fragment'],{'children':[_0x2bab04[_0x2b3fb5(0x18a)](_0x2b3fb5(0x136),{'className':_0x2b3fb5(0x185),'children':_0x2b3fb5(0x11b)}),_0x2bab04[_0x2b3fb5(0x18a)](_0x440e50[_0x2b3fb5(0x16c)],{'variant':_0x2b3fb5(0x152),'onClick':()=>_0x17bad[_0x2b3fb5(0x12f)](),'children':_0x2b3fb5(0xd5)})]});}function _0x5155b7(_0x37e769){const _0x27e3f6=_0x157494,{coordinator:_0x57f08b}=_0x37e769;return _0x2bab04[_0x27e3f6(0xe3)](_0x2bab04[_0x27e3f6(0x154)],{'children':[_0x2bab04[_0x27e3f6(0x18a)](_0x27e3f6(0x136),{'className':_0x27e3f6(0x185),'children':_0x27e3f6(0x131)}),_0x2bab04[_0x27e3f6(0x18a)](_0x440e50['Button'],{'variant':_0x27e3f6(0x108),'onClick':()=>_0x57f08b[_0x27e3f6(0xd1)](),'children':_0x27e3f6(0xfa)})]});}function _0x1401ad(){const _0x50ec35=_0x157494;return _0x2bab04[_0x50ec35(0x18a)](_0x2bab04[_0x50ec35(0x154)],{'children':_0x50ec35(0x17c)});}var _0x3dd154=Object[_0x157494(0x1ad)],_0x2a3b5d=(_0x456a3d,_0x21fcb7,_0x449c18,_0x1457fe)=>{for(var _0x2a8e00=_0x1457fe>0x1?void 0x0:_0x1457fe?_0x3dd154(_0x21fcb7,_0x449c18):_0x21fcb7,_0x1b9787=_0x456a3d['length']-0x1,_0x43e918;_0x1b9787>=0x0;_0x1b9787--)(_0x43e918=_0x456a3d[_0x1b9787])&&(_0x2a8e00=_0x43e918(_0x2a8e00)||_0x2a8e00);return _0x2a8e00;},_0x1ab590=(_0x9d0c6a,_0x19a0c3)=>(_0x5531bb,_0x3cc635)=>_0x19a0c3(_0x5531bb,_0x3cc635,_0x9d0c6a);_0x4e3063['DesktopLiveShareController']=class extends _0x40e527['Disposable']{constructor(_0x132215,_0x103a6a){const _0x6f9462=_0x157494;super(),this['_injector']=_0x132215,this[_0x6f9462(0x193)]=_0x103a6a,this['_mountLiveShare']();}[_0x157494(0xdd)](){const _0x161ccf=_0x157494;this['disposeWithMe'](this[_0x161ccf(0x193)][_0x161ccf(0x171)](_0x296916[_0x161ccf(0x1a6)][_0x161ccf(0x177)],()=>_0x296916[_0x161ccf(0x129)](_0x1048c8,this[_0x161ccf(0x1ae)])));}},_0x4e3063['DesktopLiveShareController']=_0x2a3b5d([_0x1ab590(0x0,_0x40e527[_0x157494(0x1ab)](_0x40e527[_0x157494(0x12d)])),_0x1ab590(0x1,_0x296916[_0x157494(0xfd)])],_0x4e3063[_0x157494(0x1a1)]);const _0x33c82f=_0x157494(0xe0),_0xc3e9ed={};var _0x9c4914=Object['getOwnPropertyDescriptor'],_0x51409d=(_0x3cad37,_0x161c8e,_0x3166de,_0x2529d7)=>{const _0x19344e=_0x157494;for(var _0x3e70e5=_0x2529d7>0x1?void 0x0:_0x2529d7?_0x9c4914(_0x161c8e,_0x3166de):_0x161c8e,_0x44a411=_0x3cad37[_0x19344e(0x19a)]-0x1,_0x4b28e1;_0x44a411>=0x0;_0x44a411--)(_0x4b28e1=_0x3cad37[_0x44a411])&&(_0x3e70e5=_0x4b28e1(_0x3e70e5)||_0x3e70e5);return _0x3e70e5;},_0x41b404=(_0x4ecbea,_0x5676c1)=>(_0x57aad4,_0x42f63a)=>_0x5676c1(_0x57aad4,_0x42f63a,_0x4ecbea);let _0xd02212=class extends _0x40e527[_0x157494(0x14d)]{constructor(_0x55e2ba){const _0x338570=_0x157494;super(),this[_0x338570(0x19f)]=_0x55e2ba,this[_0x338570(0x188)]();}[_0x157494(0x188)](){const _0x2148f4=_0x157494;[_0xa5d015[_0x2148f4(0x138)]['id'],_0xa5d015[_0x2148f4(0x101)]['id'],_0x23df98[_0x2148f4(0x13b)]['id']][_0x2148f4(0x15e)](_0x207a9c=>{const _0x49fa88=_0x2148f4;this['disposeWithMe'](this[_0x49fa88(0x19f)][_0x49fa88(0x137)](_0x207a9c));});}};_0xd02212=_0x51409d([_0x41b404(0x0,_0x40e527[_0x157494(0x1ab)](_0x5d73bc))],_0xd02212);var _0xa546a5=Object[_0x157494(0x165)],_0x4eca01=Object[_0x157494(0x1ad)],_0x426625=(_0x5ab1c5,_0x30f739,_0x5eff8e)=>_0x30f739 in _0x5ab1c5?_0xa546a5(_0x5ab1c5,_0x30f739,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5eff8e}):_0x5ab1c5[_0x30f739]=_0x5eff8e,_0x517ed9=(_0x5a5428,_0x32e478,_0x94fa5e,_0x4dc22e)=>{const _0x45f56d=_0x157494;for(var _0xfcb0ec=_0x4dc22e>0x1?void 0x0:_0x4dc22e?_0x4eca01(_0x32e478,_0x94fa5e):_0x32e478,_0x2c1e00=_0x5a5428[_0x45f56d(0x19a)]-0x1,_0x235841;_0x2c1e00>=0x0;_0x2c1e00--)(_0x235841=_0x5a5428[_0x2c1e00])&&(_0xfcb0ec=_0x235841(_0xfcb0ec)||_0xfcb0ec);return _0xfcb0ec;},_0x5c285e=(_0x5690a4,_0x2b133e)=>(_0x38f770,_0x2bb8bc)=>_0x2b133e(_0x38f770,_0x2bb8bc,_0x5690a4),_0xab11d=(_0x22bd10,_0x199ef9,_0x3227e3)=>_0x426625(_0x22bd10,typeof _0x199ef9!=_0x157494(0x140)?_0x199ef9+'':_0x199ef9,_0x3227e3);const _0x20cb35='UNIVER_LIVE_SHARE_PLUGIN';_0x4e3063[_0x157494(0x151)]=class extends _0x40e527['Plugin']{constructor(_0x2a2eb2=_0xc3e9ed,_0x5af2ba,_0x3eba14){const _0x2e291f=_0x157494;super(),this[_0x2e291f(0x126)]=_0x2a2eb2,this[_0x2e291f(0x1ae)]=_0x5af2ba,this[_0x2e291f(0xd6)]=_0x3eba14;const {..._0x573b4b}=_0x40e527[_0x2e291f(0x169)]({},_0xc3e9ed,this[_0x2e291f(0x126)]);this['_configService'][_0x2e291f(0x150)](_0x33c82f,_0x573b4b);}[_0x157494(0x10b)](){const _0x5548d2=_0x157494;_0x40e527['registerDependencies'](this[_0x5548d2(0x1ae)],_0x40e527[_0x5548d2(0xfb)]([[_0x5d73bc],[_0x4e3063[_0x5548d2(0x103)]],[_0xd02212],[_0x4e3063[_0x5548d2(0x1a1)]]],this[_0x5548d2(0x126)][_0x5548d2(0x117)])),_0x40e527[_0x5548d2(0x17e)](this[_0x5548d2(0x1ae)],[[_0xd02212]]);}['onRendered'](){const _0x29d5e0=_0x157494;_0x40e527[_0x29d5e0(0x17e)](this[_0x29d5e0(0x1ae)],[[_0x4e3063['DesktopLiveShareController']]]);}},_0xab11d(_0x4e3063[_0x157494(0x151)],_0x157494(0x110),_0x40e527[_0x157494(0x17b)]['UNIVER_UNKNOWN']),_0xab11d(_0x4e3063[_0x157494(0x151)],'pluginName',_0x20cb35),_0x4e3063[_0x157494(0x151)]=_0x517ed9([_0x40e527[_0x157494(0x144)](_0x2a3c77[_0x157494(0x135)]),_0x5c285e(0x1,_0x40e527[_0x157494(0x1ab)](_0x40e527[_0x157494(0x12d)])),_0x5c285e(0x2,_0x40e527[_0x157494(0x159)])],_0x4e3063[_0x157494(0x151)]),_0x4e3063[_0x157494(0x181)]=_0x1048c8,_0x4e3063[_0x157494(0xd2)]=_0x5d73bc,_0x4e3063[_0x157494(0x17d)]=_0xc2ddd1,Object[_0x157494(0x165)](_0x4e3063,Symbol[_0x157494(0xd3)],{'value':_0x157494(0x18d)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.12.2-nightly.
|
|
3
|
+
"version": "0.12.2-nightly.202511290905",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@univerjs/icons": "^1.0.2",
|
|
60
|
-
"@univerjs-pro/collaboration": "0.12.2-nightly.
|
|
61
|
-
"@univerjs/
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs/sheets": "0.12.2-nightly.
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs
|
|
67
|
-
"@univerjs/
|
|
60
|
+
"@univerjs-pro/collaboration": "0.12.2-nightly.202511290905",
|
|
61
|
+
"@univerjs-pro/collaboration-client": "0.12.2-nightly.202511290905",
|
|
62
|
+
"@univerjs/engine-render": "0.12.2-nightly.202511290905",
|
|
63
|
+
"@univerjs/sheets-ui": "0.12.2-nightly.202511290905",
|
|
64
|
+
"@univerjs/sheets": "0.12.2-nightly.202511290905",
|
|
65
|
+
"@univerjs/core": "0.12.2-nightly.202511290905",
|
|
66
|
+
"@univerjs/ui": "0.12.2-nightly.202511290905",
|
|
67
|
+
"@univerjs/design": "0.12.2-nightly.202511290905"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|
|
@@ -72,10 +72,10 @@
|
|
|
72
72
|
"rxjs": "7.8.2",
|
|
73
73
|
"tailwindcss": "^3.4.17",
|
|
74
74
|
"typescript": "^5.9.3",
|
|
75
|
-
"vite": "^7.2.
|
|
76
|
-
"vitest": "^
|
|
77
|
-
"@univerjs
|
|
78
|
-
"@univerjs/
|
|
75
|
+
"vite": "^7.2.4",
|
|
76
|
+
"vitest": "^4.0.14",
|
|
77
|
+
"@univerjs/protocol": "0.1.47",
|
|
78
|
+
"@univerjs-infra/shared": "0.12.2"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"test": "vitest run",
|