@univerjs-pro/live-share 0.10.9-nightly.202509260614 → 0.10.10-experimental.20251010-3f807c5

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/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';function _0x4ac0(){var _0x14a0f5=['useRef','className','Module','SAME_OPERATION_SHARE_INTERVAL','substring','then','not-following','propertyIsEnumerable','delete','47869lMNNAp','next','add','send','getInitialStates','_collabSession','getCurrentTypeOfUnit$','text','132444NQAaCZ','mask','toString','BuiltInUIPart','IUIPartsService','symbol','merge','_init','evenodd','icon','call','Start','throttleTime','url(#$1','apply','getTypeOfUnitDisposed$','indexOf','operations','SessionStatus','memberID','LiveShareIcon','concat','presenter','includes','Stop\x20following','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','155352yXnPKD','assign','random','_configService','values','onRendered','_uiPartsService','_reporters','IUniverInstanceService','parse','NOT_FOLLOWING','data','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','_unitID','pluginName','SetZoomRatioOperation','replace','toDisposable','setConfig','svg','890mNpSXy','IConfigService','forwardRef','dispose','from','status$','onCommandExecuted','RxDisposable','LiveShareService','stringify','_collabSessionService','attrs','_handleOnline','function','length','dispose$','defineProperty','LiveShareController','6uYWTMU','registerComponent','_liveShareService','ONLINE','subscribe','You\x27re\x20not\x20following\x20the\x20presenter','_presenter','_handleOperation','_beIdle','clear','UniverIcon','UNIVER_UNKNOWN','2713172piRnUz','registerSharedOperation','useDependency','getConfig','trim','_startFollowing','Fragment','useState','NEW_CHANGESETS','_commandService','_status','pipe','DesktopLiveShareController','_config','prototype','live-share.config','params','getUnitId','registerDependencies','defIds','You\x27re\x20presenting\x20the\x20document','Inject','init','ICommandService','_commandDisposable','following','univer-mb-3\x20univer-w-full\x20univer-text-sm','Button','Stop\x20presenting','_stopPresenting','tag','clsx','mergeOverrideWithDependencies','_univerInstanceService','onStarting','1983030xTHQqk','idSuffix','CollaborationEvent','You\x27re\x20following\x20the\x20presenter','disposeWithMe','univer-size-4','_startLiveShareCoordinator','jsx','Plugin','getValue','event$','idle','InsertSheetMutation','string','unsubscribe','getOwnPropertyDescriptor','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','2326376WcnLSl','_fetchOperations','_mountLiveShare','_handleOffline','UniverInstanceType','takeUntil','displayName','FOLLOWING','Injector','asObservable','CollaborationSessionService','PRESENTING','_stopFollowing','stopPresenting','_handleTerminate','1844470WHPLSn','startFollowing','LiveShareStatus','getLiveShareCoordinator','current','has','_status$','children','LIVESHARE_REQUEST_HOST','DisposableCollection','HEADER_MENU','path','UNIVER_SHEET','1em','useObservable','_sharedOperations','touchDependencies','div','8CJOmAf','SetWorksheetActiveOperation','Disposable','_startPresenting','stopFollowing','end','_injector','useEffect','offline','executeCommand','LIVESHARE_NEW_HOST','getOwnPropertySymbols','CommandType','IDLE','colorChannel1','presenting','Dropdown','OFFLINE','parseProtocolChangeset','reverse','forEach','jsxs','UniverLiveSharePlugin','fill','_entities','SetScrollOperation','requireSession','createInstance','map','currentColor','override','BehaviorSubject','get','default','0\x200\x2017\x2017','connectInjector','LiveShareCoordinator','shouldShareOperation','hasOwnProperty','LIVESHARE_TERMINATE','tryStartPresenting','toStringTag','createElement','xlink:href','LIVESHARE_OPERATION'];_0x4ac0=function(){return _0x14a0f5;};return _0x4ac0();}var _0xf84885=_0x4667;(function(_0x1f199c,_0x3d0d52){var _0x1ffdf4=_0x4667,_0x6f0b3e=_0x1f199c();while(!![]){try{var _0x3fe5cd=-parseInt(_0x1ffdf4(0x1f4))/0x1*(parseInt(_0x1ffdf4(0x23c))/0x2)+parseInt(_0x1ffdf4(0x216))/0x3*(-parseInt(_0x1ffdf4(0x1be))/0x4)+-parseInt(_0x1ffdf4(0x1ac))/0x5+-parseInt(_0x1ffdf4(0x18c))/0x6+-parseInt(_0x1ffdf4(0x248))/0x7+parseInt(_0x1ffdf4(0x19d))/0x8+-parseInt(_0x1ffdf4(0x1fc))/0x9*(-parseInt(_0x1ffdf4(0x22a))/0xa);if(_0x3fe5cd===_0x3d0d52)break;else _0x6f0b3e['push'](_0x6f0b3e['shift']());}catch(_0x56fe62){_0x6f0b3e['push'](_0x6f0b3e['shift']());}}}(_0x4ac0,0x4106f));var U=Object[_0xf84885(0x23a)],F=(_0x3d0f9d,_0x355a93,_0x3290b2)=>_0x355a93 in _0x3d0f9d?U(_0x3d0f9d,_0x355a93,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3290b2}):_0x3d0f9d[_0x355a93]=_0x3290b2,v=(_0x1a1dff,_0x4ad229,_0xf283d4)=>F(_0x1a1dff,typeof _0x4ad229!=_0xf84885(0x201)?_0x4ad229+'':_0x4ad229,_0xf283d4);Object[_0xf84885(0x23a)](exports,Symbol[_0xf84885(0x1e7)],{'value':_0xf84885(0x1ed)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');var u=function(){var _0x21fd81=_0xf84885;return u=Object['assign']||function(_0x11c6b2){var _0x21e598=_0x4667;for(var _0x420751,_0x1cb06f=0x1,_0x3d2826=arguments[_0x21e598(0x238)];_0x1cb06f<_0x3d2826;_0x1cb06f++){_0x420751=arguments[_0x1cb06f];for(var _0x1e2a01 in _0x420751)Object['prototype'][_0x21e598(0x1e4)][_0x21e598(0x206)](_0x420751,_0x1e2a01)&&(_0x11c6b2[_0x1e2a01]=_0x420751[_0x1e2a01]);}return _0x11c6b2;},u[_0x21fd81(0x20a)](this,arguments);},$=function(_0x48134f,_0x416295){var _0x405224=_0xf84885,_0x21b7ad={};for(var _0x521531 in _0x48134f)Object[_0x405224(0x256)][_0x405224(0x1e4)][_0x405224(0x206)](_0x48134f,_0x521531)&&_0x416295[_0x405224(0x20c)](_0x521531)<0x0&&(_0x21b7ad[_0x521531]=_0x48134f[_0x521531]);if(_0x48134f!=null&&typeof Object[_0x405224(0x1c9)]==_0x405224(0x237)){for(var _0x1c650a=0x0,_0x521531=Object[_0x405224(0x1c9)](_0x48134f);_0x1c650a<_0x521531['length'];_0x1c650a++)_0x416295[_0x405224(0x20c)](_0x521531[_0x1c650a])<0x0&&Object[_0x405224(0x256)][_0x405224(0x1f2)]['call'](_0x48134f,_0x521531[_0x1c650a])&&(_0x21b7ad[_0x521531[_0x1c650a]]=_0x48134f[_0x521531[_0x1c650a]]);}return _0x21b7ad;},j=f['forwardRef'](function(_0x4a7288,_0x565f0a){var _0x16ba9a=_0xf84885,_0x4dd202=_0x4a7288[_0x16ba9a(0x205)],_0x35af30=_0x4a7288['id'],_0x45c6d5=_0x4a7288[_0x16ba9a(0x1ec)],_0x95e99a=_0x4a7288['extend'],_0x13446=$(_0x4a7288,[_0x16ba9a(0x205),'id',_0x16ba9a(0x1ec),'extend']),_0x92993f='univerjs-icon\x20univerjs-icon-'[_0x16ba9a(0x211)](_0x35af30,'\x20')[_0x16ba9a(0x211)](_0x45c6d5||'')[_0x16ba9a(0x24c)](),_0x17b55a=f[_0x16ba9a(0x1eb)]('_'[_0x16ba9a(0x211)](k()));return y(_0x4dd202,''[_0x16ba9a(0x211)](_0x35af30),{'defIds':_0x4dd202[_0x16ba9a(0x25b)],'idSuffix':_0x17b55a['current']},u({'ref':_0x565f0a,'className':_0x92993f},_0x13446),_0x95e99a);});function y(_0x1353a1,_0x3c4d81,_0x3dd3c2,_0xa58752,_0x5b0727){var _0x2af0a3=_0xf84885;return f[_0x2af0a3(0x1e8)](_0x1353a1[_0x2af0a3(0x187)],u(u({'key':_0x3c4d81},H(_0x1353a1,_0x3dd3c2,_0x5b0727)),_0xa58752),(V(_0x1353a1,_0x3dd3c2)['children']||[])[_0x2af0a3(0x1da)](function(_0x5e34d7,_0x37c639){var _0x57b47f=_0x2af0a3;return y(_0x5e34d7,''[_0x57b47f(0x211)](_0x3c4d81,'-')[_0x57b47f(0x211)](_0x1353a1[_0x57b47f(0x187)],'-')[_0x57b47f(0x211)](_0x37c639),_0x3dd3c2,void 0x0,_0x5b0727);}));}function H(_0x22f894,_0x2b44ba,_0x2f912b){var _0x808b05=_0xf84885,_0x16ee4a=u({},_0x22f894[_0x808b05(0x235)]);_0x2f912b!=null&&_0x2f912b[_0x808b05(0x1cc)]&&_0x16ee4a[_0x808b05(0x1d5)]==='colorChannel1'&&(_0x16ee4a[_0x808b05(0x1d5)]=_0x2f912b[_0x808b05(0x1cc)]),_0x22f894[_0x808b05(0x187)]==='mask'&&_0x16ee4a['id']&&(_0x16ee4a['id']=_0x16ee4a['id']+_0x2b44ba['idSuffix']),Object['entries'](_0x16ee4a)[_0x808b05(0x1d2)](function(_0x17725f){var _0xa37a26=_0x808b05,_0x4adfb7=_0x17725f[0x0],_0xbdd908=_0x17725f[0x1];_0x4adfb7===_0xa37a26(0x1fd)&&typeof _0xbdd908==_0xa37a26(0x199)&&(_0x16ee4a[_0x4adfb7]=_0xbdd908[_0xa37a26(0x226)](/url\(#(.*)\)/,_0xa37a26(0x209)[_0xa37a26(0x211)](_0x2b44ba[_0xa37a26(0x18d)],')')));});var _0x5eccb0=_0x2b44ba[_0x808b05(0x25b)];return!_0x5eccb0||_0x5eccb0[_0x808b05(0x238)]===0x0||(_0x22f894[_0x808b05(0x187)]==='use'&&_0x16ee4a[_0x808b05(0x1e9)]&&(_0x16ee4a['xlink:href']=_0x16ee4a[_0x808b05(0x1e9)]+_0x2b44ba[_0x808b05(0x18d)]),Object['entries'](_0x16ee4a)[_0x808b05(0x1d2)](function(_0x2b41d3){var _0x1d5d98=_0x808b05,_0x18dc2f=_0x2b41d3[0x0],_0x348e36=_0x2b41d3[0x1];typeof _0x348e36==_0x1d5d98(0x199)&&(_0x16ee4a[_0x18dc2f]=_0x348e36[_0x1d5d98(0x226)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x2b44ba['idSuffix'],')')));})),_0x16ee4a;}function V(_0x200073,_0x5c54f4){var _0x5e1b2f=_0xf84885,_0x472c06,_0x1a8d3a=_0x5c54f4[_0x5e1b2f(0x25b)];return!_0x1a8d3a||_0x1a8d3a['length']===0x0?_0x200073:_0x200073[_0x5e1b2f(0x187)]==='defs'&&(!((_0x472c06=_0x200073['children'])===null||_0x472c06===void 0x0)&&_0x472c06['length'])?u(u({},_0x200073),{'children':_0x200073[_0x5e1b2f(0x1b3)][_0x5e1b2f(0x1da)](function(_0x414575){var _0x1bda78=_0x5e1b2f;return typeof _0x414575[_0x1bda78(0x235)]['id']==_0x1bda78(0x199)&&_0x1a8d3a&&_0x1a8d3a[_0x1bda78(0x213)](_0x414575[_0x1bda78(0x235)]['id'])?u(u({},_0x414575),{'attrs':u(u({},_0x414575['attrs']),{'id':_0x414575[_0x1bda78(0x235)]['id']+_0x5c54f4[_0x1bda78(0x18d)]})}):_0x414575;})}):_0x200073;}function k(){var _0x474768=_0xf84885;return Math[_0x474768(0x218)]()[_0x474768(0x1fe)](0x24)[_0x474768(0x1ef)](0x2,0x8);}j['displayName']=_0xf84885(0x246);var M={'tag':_0xf84885(0x229),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0xf84885(0x1e0),'width':_0xf84885(0x1b9),'height':_0xf84885(0x1b9)},'children':[{'tag':_0xf84885(0x1b7),'attrs':{'fill':_0xf84885(0x1db),'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':_0xf84885(0x1b7),'attrs':{'fill':_0xf84885(0x1db),'d':_0xf84885(0x215),'fillRule':_0xf84885(0x204),'clipRule':'evenodd'}}]},P=f[_0xf84885(0x22c)](function(_0x5bb17f,_0x2189b1){var _0x40044f=_0xf84885;return f[_0x40044f(0x1e8)](j,Object[_0x40044f(0x217)]({},_0x5bb17f,{'id':'live-share-icon','ref':_0x2189b1,'icon':M}));});P[_0xf84885(0x1a3)]=_0xf84885(0x210);class O extends o[_0xf84885(0x1c0)]{constructor(){var _0x30c28d=_0xf84885;super(...arguments),v(this,_0x30c28d(0x1bb),new Set()),v(this,_0x30c28d(0x21d),new Set());}[_0xf84885(0x249)](_0x428788){var _0xfd6b84=_0xf84885;return this[_0xfd6b84(0x1bb)][_0xfd6b84(0x1f6)](_0x428788),o[_0xfd6b84(0x227)](()=>this[_0xfd6b84(0x1bb)][_0xfd6b84(0x1f3)](_0x428788));}['registerInitialStateReporter'](_0x4c91ee){var _0xd1867a=_0xf84885;return this[_0xd1867a(0x21d)][_0xd1867a(0x1f6)](_0x4c91ee),o['toDisposable'](()=>this[_0xd1867a(0x21d)][_0xd1867a(0x1f3)](_0x4c91ee));}[_0xf84885(0x1e3)](_0x389710){var _0x7e869c=_0xf84885;return this[_0x7e869c(0x1bb)][_0x7e869c(0x1b1)](_0x389710);}[_0xf84885(0x1f8)](_0x16418f){var _0x1e89d9=_0xf84885;return Array[_0x1e89d9(0x22e)](this[_0x1e89d9(0x21d)])[_0x1e89d9(0x1da)](_0x17e750=>_0x17e750(_0x16418f));}}var q=Object[_0xf84885(0x19b)],R=(_0x2410a2,_0x26ff2f,_0xc16a17,_0x2c6915)=>{var _0x817d2d=_0xf84885;for(var _0x287c0d=_0x2c6915>0x1?void 0x0:_0x2c6915?q(_0x26ff2f,_0xc16a17):_0x26ff2f,_0x4a9d00=_0x2410a2[_0x817d2d(0x238)]-0x1,_0x3f5717;_0x4a9d00>=0x0;_0x4a9d00--)(_0x3f5717=_0x2410a2[_0x4a9d00])&&(_0x287c0d=_0x3f5717(_0x287c0d)||_0x287c0d);return _0x287c0d;},S=(_0x122687,_0x1044cc)=>(_0x53399b,_0x1e71e5)=>_0x1044cc(_0x53399b,_0x1e71e5,_0x122687);exports['LiveShareController']=class extends o[_0xf84885(0x231)]{constructor(_0x124f2d,_0x36f88e,_0x9d1f37){var _0x57c847=_0xf84885;super(),v(this,'_entities',new Map()),(this['_univerInstanceService']=_0x124f2d,this[_0x57c847(0x1c4)]=_0x36f88e,this[_0x57c847(0x234)]=_0x9d1f37,this[_0x57c847(0x203)]());}async[_0xf84885(0x1af)](_0xf3bcc7){var _0x470d51=_0xf84885;return this[_0x470d51(0x1d6)][_0x470d51(0x1b1)](_0xf3bcc7)||await this[_0x470d51(0x192)](_0xf3bcc7),this[_0x470d51(0x1d6)][_0x470d51(0x1de)](_0xf3bcc7);}[_0xf84885(0x203)](){var _0x10ea59=_0xf84885;this['_univerInstanceService']['getTypeOfUnitAdded$'](o['UniverInstanceType'][_0x10ea59(0x1b8)])['pipe'](b[_0x10ea59(0x1a2)](this[_0x10ea59(0x239)]))['subscribe'](async _0x48f3ad=>{var _0x28afa5=_0x10ea59;const _0xb8a3b5=_0x48f3ad[_0x28afa5(0x259)]();this['_entities'][_0x28afa5(0x1b1)](_0xb8a3b5)||this[_0x28afa5(0x192)](_0xb8a3b5);}),this[_0x10ea59(0x18a)][_0x10ea59(0x20b)](o[_0x10ea59(0x1a1)]['UNIVER_SHEET'])[_0x10ea59(0x253)](b['takeUntil'](this[_0x10ea59(0x239)]))[_0x10ea59(0x240)](_0x29e472=>{var _0x5cb30c=_0x10ea59;const _0x153523=_0x29e472[_0x5cb30c(0x259)](),_0x296ae7=this[_0x5cb30c(0x1d6)][_0x5cb30c(0x1de)](_0x153523);_0x296ae7==null||_0x296ae7[_0x5cb30c(0x22d)]();});}async['_startLiveShareCoordinator'](_0x53b3d1){var _0x3aa09a=_0xf84885;const _0x46eb38=await this[_0x3aa09a(0x234)][_0x3aa09a(0x1d8)](_0x53b3d1),_0x174f0a=this[_0x3aa09a(0x1c4)][_0x3aa09a(0x1d9)](exports['LiveShareCoordinator'],_0x53b3d1,_0x46eb38);return _0x174f0a[_0x3aa09a(0x25e)](),this['_entities']['set'](_0x53b3d1,_0x174f0a),_0x174f0a;}},exports[_0xf84885(0x23b)]=R([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0xf84885(0x25d)](o['Injector'])),S(0x2,o[_0xf84885(0x25d)](m[_0xf84885(0x1a7)]))],exports[_0xf84885(0x23b)]);var h=(_0x30af4a=>(_0x30af4a[_0xf84885(0x1cf)]=_0xf84885(0x1c6),_0x30af4a['IDLE']=_0xf84885(0x197),_0x30af4a[_0xf84885(0x1a4)]=_0xf84885(0x182),_0x30af4a['NOT_FOLLOWING']='not-following',_0x30af4a['PRESENTING']=_0xf84885(0x1cd),_0x30af4a))(h||{});const W=_0xf84885(0x1ee),G=0xc8;exports[_0xf84885(0x1e2)]=class extends o[_0xf84885(0x231)]{constructor(_0x6682f6,_0xb01278,_0x258e02,_0x5236cb,_0x1c8eb1){var _0x640ea1=_0xf84885;super(),v(this,_0x640ea1(0x1b2),new w[(_0x640ea1(0x1dd))](_0x640ea1(0x197))),v(this,'status$',this[_0x640ea1(0x1b2)][_0x640ea1(0x1a6)]()),v(this,_0x640ea1(0x203),!0x1),v(this,_0x640ea1(0x181),null),v(this,_0x640ea1(0x242),null),(this[_0x640ea1(0x223)]=_0x6682f6,this[_0x640ea1(0x1f9)]=_0xb01278,this[_0x640ea1(0x219)]=_0x258e02,this[_0x640ea1(0x23e)]=_0x5236cb,this[_0x640ea1(0x251)]=_0x1c8eb1);}get[_0xf84885(0x252)](){var _0x162783=_0xf84885;return this[_0x162783(0x1b2)][_0x162783(0x195)]();}[_0xf84885(0x22d)](){var _0x58a2b1=_0xf84885,_0x4949fa;(_0x4949fa=this['_commandDisposable'])==null||_0x4949fa[_0x58a2b1(0x22d)](),this[_0x58a2b1(0x1b2)][_0x58a2b1(0x1f5)](_0x58a2b1(0x197)),this['_status$']['complete']();}[_0xf84885(0x25e)](){var _0x4b9ffe=_0xf84885;this['_init']||(this[_0x4b9ffe(0x203)]=!0x0,this[_0x4b9ffe(0x1f9)]['sessionStatus$'][_0x4b9ffe(0x253)](b[_0x4b9ffe(0x1a2)](this[_0x4b9ffe(0x239)]))[_0x4b9ffe(0x240)](_0x3fd182=>{var _0x2e1b0f=_0x4b9ffe;switch(_0x3fd182){case m[_0x2e1b0f(0x20e)][_0x2e1b0f(0x1cf)]:this[_0x2e1b0f(0x1a0)]();break;case m[_0x2e1b0f(0x20e)][_0x2e1b0f(0x23f)]:this['_handleOnline']();break;}}),this[_0x4b9ffe(0x1f9)][_0x4b9ffe(0x196)][_0x4b9ffe(0x253)](b[_0x4b9ffe(0x1a2)](this[_0x4b9ffe(0x239)]))[_0x4b9ffe(0x240)](_0x1f94a1=>{var _0x525732=_0x4b9ffe;const {eventID:_0x234f81}=_0x1f94a1;switch(_0x234f81){case _['CollaborationEvent'][_0x525732(0x1c8)]:this['_handleNewHost'](_0x1f94a1);break;case _['CollaborationEvent'][_0x525732(0x1ea)]:this[_0x525732(0x243)](_0x1f94a1);break;case _['CollaborationEvent'][_0x525732(0x1e5)]:this[_0x525732(0x1ab)]();break;case _['CollaborationEvent'][_0x525732(0x250)]:this['_handleNewChangeSets'](_0x1f94a1);break;}}));}[_0xf84885(0x1e6)](){var _0xfa521a=_0xf84885;this[_0xfa521a(0x1f9)][_0xfa521a(0x1f7)]({'eventID':_[_0xfa521a(0x18e)][_0xfa521a(0x1b4)],'data':{'unitID':this[_0xfa521a(0x223)],'userID':this['_collabSession']['getMemberID']()}},this[_0xfa521a(0x223)]);}[_0xf84885(0x1aa)](){var _0x113d82=_0xf84885;this[_0x113d82(0x252)]===_0x113d82(0x1cd)&&(this[_0x113d82(0x1b2)][_0x113d82(0x1f5)]('idle'),this[_0x113d82(0x1f9)][_0x113d82(0x1f7)]({'eventID':_[_0x113d82(0x18e)][_0x113d82(0x1e5)],'data':{'unitID':this['_unitID']}},this[_0x113d82(0x223)]));}[_0xf84885(0x1ad)](){var _0x27006a=_0xf84885;this[_0x27006a(0x252)]==='not-following'&&(this[_0x27006a(0x1b2)]['next']('following'),this['_startFollowing']());}[_0xf84885(0x1c2)](){var _0x4c28af=_0xf84885;this[_0x4c28af(0x252)]===_0x4c28af(0x182)&&this[_0x4c28af(0x1a9)]();}['_handleNewHost'](_0x3cee08){var _0x3b1f5b=_0xf84885;const {presenter:_0x2f2cfa}=_0x3cee08[_0x3b1f5b(0x221)],_0x3c2f33=this[_0x3b1f5b(0x1f9)]['getMemberID']();this[_0x3b1f5b(0x242)]=_0x2f2cfa,_0x2f2cfa===_0x3c2f33?(this['_stopFollowing'](),this[_0x3b1f5b(0x1c1)]()):this[_0x3b1f5b(0x252)]!==_0x3b1f5b(0x1f1)&&(this[_0x3b1f5b(0x186)](),this[_0x3b1f5b(0x24d)]());}[_0xf84885(0x19e)](){var _0x124c75=_0xf84885;const _0x198826={'eventID':_[_0x124c75(0x18e)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession']['send'](_0x198826,this[_0x124c75(0x223)]);}[_0xf84885(0x1ab)](){var _0x118d85=_0xf84885;this[_0x118d85(0x242)]=null,this['_status']!==_0x118d85(0x1cd)&&this[_0x118d85(0x244)]();}['_handleNewChangeSets'](_0x2f8de7){var _0x3747f7=_0xf84885;if(this['_status']===_0x3747f7(0x182)&&this[_0x3747f7(0x242)]===_0x2f8de7['data'][_0x3747f7(0x20f)]){const _0x466243=_[_0x3747f7(0x1d0)](_0x2f8de7[_0x3747f7(0x221)])['mutations'][_0x3747f7(0x1d1)]()['find'](_0x3c7897=>_0x3c7897['id']===C[_0x3747f7(0x198)]['id']);if(_0x466243){const _0x546b29=_0x466243[_0x3747f7(0x258)]['unitId'],_0x3ad1b7=_0x466243[_0x3747f7(0x258)]['sheet']['id'];setTimeout(()=>{var _0xe520d=_0x3747f7;this[_0xe520d(0x251)][_0xe520d(0x1c7)](C[_0xe520d(0x1bf)]['id'],{'unitId':_0x546b29,'subUnitId':_0x3ad1b7},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0xdfd6d=_0xf84885;this[_0xdfd6d(0x1b2)][_0xdfd6d(0x1f5)]('presenting');const _0x1766fd=new Map(),_0x440ae5=this['_commandDisposable']=new o[(_0xdfd6d(0x1b5))]();_0x440ae5['add'](o[_0xdfd6d(0x227)](()=>{var _0xb852a6=_0xdfd6d;_0x1766fd['forEach'](_0x5c6ba6=>_0x5c6ba6['complete']()),_0x1766fd[_0xb852a6(0x245)]();})),_0x440ae5[_0xdfd6d(0x1f6)](this['_commandService'][_0xdfd6d(0x230)](_0x118b33=>{var _0x1213be=_0xdfd6d,_0x3a147d;if(_0x118b33['type']!==o[_0x1213be(0x1ca)]['OPERATION']||!this[_0x1213be(0x23e)][_0x1213be(0x1e3)](_0x118b33['id']))return;const {id:_0x8a29d3}=_0x118b33;let _0x851465;_0x1766fd[_0x1213be(0x1b1)](_0x8a29d3)?_0x851465=_0x1766fd['get'](_0x8a29d3):(_0x851465=new w['Subject'](),_0x1766fd['set'](_0x8a29d3,_0x851465),_0x851465[_0x1213be(0x253)](b[_0x1213be(0x208)]((_0x3a147d=this['_configService'][_0x1213be(0x24b)](W))!=null?_0x3a147d:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x52adc8=>{var _0x3258a9=_0x1213be;this['_collabSession'][_0x3258a9(0x1f7)]({'eventID':_[_0x3258a9(0x18e)][_0x3258a9(0x1ea)],'data':{'unitID':this[_0x3258a9(0x223)],'operations':{[_0x52adc8['id']]:{'id':_0x52adc8['id'],'params':JSON[_0x3258a9(0x233)](_0x52adc8[_0x3258a9(0x258)])}}}},this[_0x3258a9(0x223)]);})),_0x851465['next'](_0x118b33);})),this[_0xdfd6d(0x23e)]['getInitialStates'](this[_0xdfd6d(0x223)])['forEach'](_0xa2f423=>this[_0xdfd6d(0x1f9)][_0xdfd6d(0x1f7)]({'eventID':_['CollaborationEvent'][_0xdfd6d(0x1ea)],'data':{'unitID':this[_0xdfd6d(0x223)],'operations':{[_0xa2f423['id']]:{'id':_0xa2f423['id'],'params':JSON[_0xdfd6d(0x233)](_0xa2f423[_0xdfd6d(0x258)])}}}},this['_unitID']));}[_0xf84885(0x186)](){var _0x42de7f=_0xf84885,_0x314f9d;this[_0x42de7f(0x1b2)]['next'](_0x42de7f(0x197)),(_0x314f9d=this['_commandDisposable'])==null||_0x314f9d[_0x42de7f(0x22d)](),this[_0x42de7f(0x181)]=null;}['_startFollowing'](){var _0x10803e=_0xf84885,_0x12e902;(_0x12e902=this[_0x10803e(0x181)])==null||_0x12e902[_0x10803e(0x22d)](),this['_status$'][_0x10803e(0x1f5)]('following');}['_beIdle'](){var _0x28e7ac=_0xf84885,_0x5a2bf2;this[_0x28e7ac(0x1b2)][_0x28e7ac(0x1f5)](_0x28e7ac(0x197)),(_0x5a2bf2=this[_0x28e7ac(0x181)])==null||_0x5a2bf2[_0x28e7ac(0x22d)](),this[_0x28e7ac(0x181)]=null;}[_0xf84885(0x1a9)](){var _0x296238=_0xf84885,_0x5c2a79;this[_0x296238(0x1b2)][_0x296238(0x1f5)](_0x296238(0x1f1)),(_0x5c2a79=this[_0x296238(0x181)])==null||_0x5c2a79[_0x296238(0x22d)]();}[_0xf84885(0x243)](_0x25afe4){var _0x43324f=_0xf84885;if([_0x43324f(0x1cd),_0x43324f(0x1f1),_0x43324f(0x1c6)][_0x43324f(0x213)](this['_status'])||!_0x25afe4[_0x43324f(0x221)][_0x43324f(0x212)]||_0x25afe4['data'][_0x43324f(0x212)]===this[_0x43324f(0x1f9)]['getMemberID']())return;this[_0x43324f(0x252)]==='idle'&&this[_0x43324f(0x24d)]();const _0x2a2964=_0x25afe4[_0x43324f(0x221)][_0x43324f(0x20d)];Object[_0x43324f(0x21a)](_0x2a2964)[_0x43324f(0x1d2)](_0x1fecbf=>{var _0x27c725=_0x43324f;this[_0x27c725(0x251)]['executeCommand'](_0x1fecbf['id'],_0x1fecbf[_0x27c725(0x258)]?JSON[_0x27c725(0x21f)](_0x1fecbf['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x3f36d5=_0xf84885,_0x578f6e;this['_status$']['next'](_0x3f36d5(0x1c6)),(_0x578f6e=this[_0x3f36d5(0x181)])==null||_0x578f6e[_0x3f36d5(0x22d)]();}[_0xf84885(0x236)](){var _0x4e78d1=_0xf84885;this['_status$'][_0x4e78d1(0x1f5)](_0x4e78d1(0x197)),this[_0x4e78d1(0x19e)]();}},exports[_0xf84885(0x1e2)]=R([S(0x2,o['IConfigService']),S(0x3,o[_0xf84885(0x25d)](O)),S(0x4,o[_0xf84885(0x25f)])],exports[_0xf84885(0x1e2)]);function A(){var _0x58b100=_0xf84885;const _0x165ff2=p[_0x58b100(0x24a)](exports[_0x58b100(0x23b)]),_0x119e9a=p[_0x58b100(0x24a)](o[_0x58b100(0x21e)]),_0x24d1d3=p[_0x58b100(0x1ba)](()=>_0x119e9a[_0x58b100(0x1fa)](o[_0x58b100(0x1a1)][_0x58b100(0x1b8)]),void 0x0,!0x1,[]),[_0x23c052,_0x4e6905]=f[_0x58b100(0x24f)](null),[_0x3b579b,_0x4685bc]=f['useState'](h['IDLE']),_0x45e7e9=f[_0x58b100(0x1eb)](null);return f[_0x58b100(0x1c5)](()=>(_0x24d1d3&&_0x165ff2[_0x58b100(0x1af)](_0x24d1d3[_0x58b100(0x259)]())[_0x58b100(0x1f0)](_0x5b5145=>{var _0x58a3a1=_0x58b100;_0x4e6905(_0x5b5145),_0x45e7e9[_0x58a3a1(0x1b0)]=_0x5b5145[_0x58a3a1(0x22f)][_0x58a3a1(0x240)](_0x518bc1=>{_0x4685bc(_0x518bc1);});}),()=>{var _0x335a1d=_0x58b100,_0x4c4323;(_0x4c4323=_0x45e7e9['current'])==null||_0x4c4323[_0x335a1d(0x19a)](),_0x45e7e9[_0x335a1d(0x1b0)]=null;}),[_0x24d1d3,_0x165ff2]),_0x23c052?l[_0x58b100(0x193)](g[_0x58b100(0x1ce)],{'align':_0x58b100(0x1c3),'disabled':_0x3b579b===h[_0x58b100(0x1cf)],'className':_0x58b100(0x222),'overlay':l['jsx'](B,{'status':_0x3b579b,'coordinator':_0x23c052}),'children':l[_0x58b100(0x193)]('button',{'className':g[_0x58b100(0x188)](_0x58b100(0x19c),{'univer-cursor-not-allowed':_0x3b579b===h[_0x58b100(0x1cf)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3b579b!==h[_0x58b100(0x1cf)]}),'type':'button','children':l[_0x58b100(0x193)](P,{'className':_0x58b100(0x191)})})}):null;}function B(_0x44b226){var _0x9b007=_0xf84885;const {status:_0x738e0b,coordinator:_0x58f577}=_0x44b226;switch(_0x738e0b){case h[_0x9b007(0x1cb)]:return l[_0x9b007(0x193)](Y,{'coordinator':_0x58f577});case h[_0x9b007(0x1a4)]:return l[_0x9b007(0x193)](Z,{'coordinator':_0x58f577});case h[_0x9b007(0x220)]:return l['jsx'](J,{'coordinator':_0x58f577});case h['OFFLINE']:return l['jsx'](z,{});case h[_0x9b007(0x1a8)]:return l[_0x9b007(0x193)](K,{'coordinator':_0x58f577});default:return null;}}function Y(_0x7744f7){var _0x377259=_0xf84885;const {coordinator:_0x35b89f}=_0x7744f7;return l[_0x377259(0x1d3)](l[_0x377259(0x24e)],{'children':[l[_0x377259(0x193)](_0x377259(0x1bd),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),l['jsx'](g[_0x377259(0x184)],{'onClick':()=>_0x35b89f['tryStartPresenting'](),'children':_0x377259(0x207)})]});}function Z(_0x584dd7){var _0x1ff399=_0xf84885;const {coordinator:_0x4dba4c}=_0x584dd7;return l[_0x1ff399(0x1d3)](l[_0x1ff399(0x24e)],{'children':[l[_0x1ff399(0x193)](_0x1ff399(0x1bd),{'className':_0x1ff399(0x183),'children':_0x1ff399(0x18f)}),l[_0x1ff399(0x193)](g['Button'],{'onClick':()=>_0x4dba4c[_0x1ff399(0x1c2)](),'children':_0x1ff399(0x214)})]});}function J(_0x22138c){var _0x221fb8=_0xf84885;const {coordinator:_0x148fe7}=_0x22138c;return l[_0x221fb8(0x1d3)](l['Fragment'],{'children':[l[_0x221fb8(0x193)](_0x221fb8(0x1bd),{'className':_0x221fb8(0x183),'children':_0x221fb8(0x241)}),l[_0x221fb8(0x193)](g['Button'],{'variant':_0x221fb8(0x1fb),'onClick':()=>_0x148fe7['startFollowing'](),'children':'Start\x20following'})]});}function K(_0x499997){var _0x3d351c=_0xf84885;const {coordinator:_0x1174de}=_0x499997;return l['jsxs'](l[_0x3d351c(0x24e)],{'children':[l[_0x3d351c(0x193)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3d351c(0x25c)}),l['jsx'](g[_0x3d351c(0x184)],{'variant':_0x3d351c(0x1df),'onClick':()=>_0x1174de[_0x3d351c(0x1aa)](),'children':_0x3d351c(0x185)})]});}function z(){return l['jsx'](l['Fragment'],{'children':'You\x27are\x20offline.'});}var Q=Object[_0xf84885(0x19b)],X=(_0x1bc7cf,_0x51d810,_0x106f1e,_0x5681eb)=>{for(var _0x2a135a=_0x5681eb>0x1?void 0x0:_0x5681eb?Q(_0x51d810,_0x106f1e):_0x51d810,_0x4e509b=_0x1bc7cf['length']-0x1,_0x38e9eb;_0x4e509b>=0x0;_0x4e509b--)(_0x38e9eb=_0x1bc7cf[_0x4e509b])&&(_0x2a135a=_0x38e9eb(_0x2a135a)||_0x2a135a);return _0x2a135a;},x=(_0x2bee7d,_0x450830)=>(_0x3f4c6f,_0x1a4feb)=>_0x450830(_0x3f4c6f,_0x1a4feb,_0x2bee7d);exports[_0xf84885(0x254)]=class extends o[_0xf84885(0x1c0)]{constructor(_0x17c157,_0x23f4dd){var _0x57d1c4=_0xf84885;super(),this['_injector']=_0x17c157,this[_0x57d1c4(0x21c)]=_0x23f4dd,this[_0x57d1c4(0x19f)]();}[_0xf84885(0x19f)](){var _0x2b1833=_0xf84885;this[_0x2b1833(0x190)](this[_0x2b1833(0x21c)][_0x2b1833(0x23d)](p[_0x2b1833(0x1ff)][_0x2b1833(0x1b6)],()=>p[_0x2b1833(0x1e1)](A,this[_0x2b1833(0x1c4)])));}},exports['DesktopLiveShareController']=X([x(0x0,o['Inject'](o['Injector'])),x(0x1,p[_0xf84885(0x200)])],exports[_0xf84885(0x254)]);function _0x4667(_0x33dd7f,_0x339d9e){var _0x4ac01f=_0x4ac0();return _0x4667=function(_0x466776,_0x4e7fef){_0x466776=_0x466776-0x181;var _0x392ffd=_0x4ac01f[_0x466776];return _0x392ffd;},_0x4667(_0x33dd7f,_0x339d9e);}const ee=_0xf84885(0x257),L={};var te=Object[_0xf84885(0x19b)],ie=(_0x40e4d9,_0x1c4bda,_0x86134,_0x1e9a66)=>{var _0x2db270=_0xf84885;for(var _0xccc074=_0x1e9a66>0x1?void 0x0:_0x1e9a66?te(_0x1c4bda,_0x86134):_0x1c4bda,_0x44297b=_0x40e4d9[_0x2db270(0x238)]-0x1,_0x37996c;_0x44297b>=0x0;_0x44297b--)(_0x37996c=_0x40e4d9[_0x44297b])&&(_0xccc074=_0x37996c(_0xccc074)||_0xccc074);return _0xccc074;},ne=(_0x4c221a,_0x1e42cb)=>(_0x385f9a,_0x1043f0)=>_0x1e42cb(_0x385f9a,_0x1043f0,_0x4c221a);let E=class extends o[_0xf84885(0x1c0)]{constructor(_0x155558){var _0x1f00a2=_0xf84885;super(),this[_0x1f00a2(0x23e)]=_0x155558,this['_init']();}[_0xf84885(0x203)](){var _0x138c6c=_0xf84885;[D[_0x138c6c(0x225)]['id'],D[_0x138c6c(0x1d7)]['id'],C[_0x138c6c(0x1bf)]['id']]['forEach'](_0x3b1840=>{var _0x212cab=_0x138c6c;this[_0x212cab(0x190)](this[_0x212cab(0x23e)][_0x212cab(0x249)](_0x3b1840));});}};E=ie([ne(0x0,o[_0xf84885(0x25d)](O))],E);var re=Object[_0xf84885(0x23a)],se=Object[_0xf84885(0x19b)],oe=(_0x26a6b4,_0x258a45,_0x531035)=>_0x258a45 in _0x26a6b4?re(_0x26a6b4,_0x258a45,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x531035}):_0x26a6b4[_0x258a45]=_0x531035,ae=(_0x1818e7,_0x1c93a1,_0x327dbf,_0x503a8f)=>{var _0x61d33f=_0xf84885;for(var _0x10c774=_0x503a8f>0x1?void 0x0:_0x503a8f?se(_0x1c93a1,_0x327dbf):_0x1c93a1,_0x464489=_0x1818e7[_0x61d33f(0x238)]-0x1,_0x15f29b;_0x464489>=0x0;_0x464489--)(_0x15f29b=_0x1818e7[_0x464489])&&(_0x10c774=_0x15f29b(_0x10c774)||_0x10c774);return _0x10c774;},N=(_0x24b90b,_0x18af8e)=>(_0x22daa6,_0x1cba3a)=>_0x18af8e(_0x22daa6,_0x1cba3a,_0x24b90b),T=(_0x4ac954,_0x22045c,_0x5164ad)=>oe(_0x4ac954,typeof _0x22045c!=_0xf84885(0x201)?_0x22045c+'':_0x22045c,_0x5164ad);const le='UNIVER_LIVE_SHARE_PLUGIN';exports['UniverLiveSharePlugin']=class extends o[_0xf84885(0x194)]{constructor(_0xfbb4b5=L,_0x15d5f4,_0x499a4a){var _0x44ef37=_0xf84885;super(),this[_0x44ef37(0x255)]=_0xfbb4b5,this['_injector']=_0x15d5f4,this[_0x44ef37(0x219)]=_0x499a4a;const {..._0x37fd4f}=o[_0x44ef37(0x202)]({},L,this['_config']);this[_0x44ef37(0x219)][_0x44ef37(0x228)](ee,_0x37fd4f);}[_0xf84885(0x18b)](){var _0x148d76=_0xf84885;o[_0x148d76(0x25a)](this[_0x148d76(0x1c4)],o[_0x148d76(0x189)]([[O],[exports[_0x148d76(0x23b)]],[E],[exports[_0x148d76(0x254)]]],this[_0x148d76(0x255)][_0x148d76(0x1dc)])),o[_0x148d76(0x1bc)](this[_0x148d76(0x1c4)],[[E]]);}[_0xf84885(0x21b)](){var _0x1226f8=_0xf84885;o[_0x1226f8(0x1bc)](this['_injector'],[[exports['DesktopLiveShareController']]]);}},T(exports[_0xf84885(0x1d4)],'type',o[_0xf84885(0x1a1)][_0xf84885(0x247)]),T(exports['UniverLiveSharePlugin'],_0xf84885(0x224),le),exports[_0xf84885(0x1d4)]=ae([o['DependentOn'](m['UniverCollaborationClientPlugin']),N(0x1,o[_0xf84885(0x25d)](o[_0xf84885(0x1a5)])),N(0x2,o[_0xf84885(0x22b)])],exports[_0xf84885(0x1d4)]),exports['LiveShare']=A,exports[_0xf84885(0x232)]=O,exports[_0xf84885(0x1ae)]=h;
1
+ 'use strict';var _0x58510e=_0x31de;(function(_0x5a9fd0,_0x4bef4c){var _0x116eee=_0x31de,_0x5bf384=_0x5a9fd0();while(!![]){try{var _0x58821d=-parseInt(_0x116eee(0x155))/0x1+-parseInt(_0x116eee(0x19f))/0x2+-parseInt(_0x116eee(0x152))/0x3*(parseInt(_0x116eee(0x171))/0x4)+-parseInt(_0x116eee(0x120))/0x5+parseInt(_0x116eee(0x16a))/0x6+-parseInt(_0x116eee(0x12c))/0x7+-parseInt(_0x116eee(0x1b1))/0x8*(-parseInt(_0x116eee(0x187))/0x9);if(_0x58821d===_0x4bef4c)break;else _0x5bf384['push'](_0x5bf384['shift']());}catch(_0x20b0be){_0x5bf384['push'](_0x5bf384['shift']());}}}(_0x2097,0xbe11c));var U=Object[_0x58510e(0x12d)],F=(_0x5826a0,_0x170bfe,_0xc5c999)=>_0x170bfe in _0x5826a0?U(_0x5826a0,_0x170bfe,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc5c999}):_0x5826a0[_0x170bfe]=_0xc5c999,v=(_0x972eda,_0x5e289b,_0x21abc7)=>F(_0x972eda,typeof _0x5e289b!='symbol'?_0x5e289b+'':_0x5e289b,_0x21abc7);Object[_0x58510e(0x12d)](exports,Symbol['toStringTag'],{'value':'Module'});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function _0x2097(){var _0x4f9f25=['Stop\x20presenting','_stopPresenting','_status','_handleOnline','PRESENTING','OPERATION','send','jsxs','delete','Disposable','LiveShare','UNIVER_SHEET','UniverLiveSharePlugin','replace','forwardRef','useObservable','getInitialStates','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','SAME_OPERATION_SHARE_INTERVAL','OFFLINE','UniverInstanceType','dispose','Start\x20following','Plugin','_handleNewChangeSets','_fetchOperations','pluginName','useRef','3yltJIJ','LIVESHARE_NEW_HOST','function','1362382mFCtsn','entries','end','div','HEADER_MENU','0\x200\x2017\x2017','following','_injector','sheet','disposeWithMe','attrs','init','_commandService','getOwnPropertyDescriptor','_reporters','type','jsx','getCurrentTypeOfUnit$','touchDependencies','reverse','You\x27are\x20offline.','6840420hWwmHX','not-following','CollaborationEvent','useDependency','1em','_handleTerminate','UNIVER_LIVE_SHARE_PLUGIN','5745876OLGNRR','http://www.w3.org/2000/svg','_beIdle','mask','InsertSheetMutation','_configService','_unitID','executeCommand','sessionStatus$','ICommandService','currentColor','DependentOn','idle','LiveShareController','map','DesktopLiveShareController','univer-mb-3\x20univer-w-full\x20univer-text-sm','_init','_handleNewHost','stopPresenting','_handleOffline','tag','63wcDjFU','unitId','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','defs','xlink:href','_config','subscribe','params','displayName','concat','useEffect','defIds','_entities','_liveShareService','Fragment','assign','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_commandDisposable','connectInjector','_startLiveShareCoordinator','hasOwnProperty','IUniverInstanceService','You\x27re\x20not\x20following\x20the\x20presenter','SessionStatus','1897630tDowGU','toDisposable','Injector','IUIPartsService','LiveShareCoordinator','presenter','SetZoomRatioOperation','Button','univerjs-icon\x20univerjs-icon-','_startFollowing','className','colorChannel1','Subject','svg','_sharedOperations','getConfig','data','string','4659696eKlbji','_status$','ONLINE','startFollowing','_univerInstanceService','_collabSession','useState','length','_presenter','getMemberID','univer-size-4','takeUntil','IDLE','BehaviorSubject','RxDisposable','_startPresenting','indexOf','prototype','FOLLOWING','getLiveShareCoordinator','values','call','use','add','pipe','live-share.config','next','from','stringify','IConfigService','registerDependencies','icon','NEW_CHANGESETS','_handleOperation','registerSharedOperation','evenodd','children','LiveShareIcon','url(#$1','getValue','dispose$','event$','offline','LIVESHARE_REQUEST_HOST','status$','_stopFollowing','registerComponent','DisposableCollection','throttleTime','stopFollowing','includes','asObservable','UNIVER_UNKNOWN','LiveShareStatus','has','requireSession','find','presenting','text','LIVESHARE_FETCH_OPERATIONS','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','getUnitId','_uiPartsService','toString','2810150QPnTNK','idSuffix','LIVESHARE_TERMINATE','registerInitialStateReporter','forEach','SetWorksheetActiveOperation','Inject','trim','NOT_FOLLOWING','setConfig','current','override','903588aJvMoz','defineProperty','tryStartPresenting','Present\x20this\x20document','extend','none','onRendered','merge','mergeOverrideWithDependencies','button'];_0x2097=function(){return _0x4f9f25;};return _0x2097();}var u=function(){var _0x586190=_0x58510e;return u=Object[_0x586190(0x196)]||function(_0x5ab37a){var _0x3811bd=_0x586190;for(var _0x4d9345,_0x4244c8=0x1,_0xdd53b6=arguments[_0x3811bd(0x1b8)];_0x4244c8<_0xdd53b6;_0x4244c8++){_0x4d9345=arguments[_0x4244c8];for(var _0x3ba631 in _0x4d9345)Object[_0x3811bd(0x1c2)][_0x3811bd(0x19b)]['call'](_0x4d9345,_0x3ba631)&&(_0x5ab37a[_0x3ba631]=_0x4d9345[_0x3ba631]);}return _0x5ab37a;},u['apply'](this,arguments);},$=function(_0x5289ae,_0x234d48){var _0xd026a1=_0x58510e,_0x5839ef={};for(var _0x3d4395 in _0x5289ae)Object['prototype'][_0xd026a1(0x19b)][_0xd026a1(0x1c6)](_0x5289ae,_0x3d4395)&&_0x234d48[_0xd026a1(0x1c1)](_0x3d4395)<0x0&&(_0x5839ef[_0x3d4395]=_0x5289ae[_0x3d4395]);if(_0x5289ae!=null&&typeof Object['getOwnPropertySymbols']==_0xd026a1(0x154)){for(var _0x5678a6=0x0,_0x3d4395=Object['getOwnPropertySymbols'](_0x5289ae);_0x5678a6<_0x3d4395[_0xd026a1(0x1b8)];_0x5678a6++)_0x234d48[_0xd026a1(0x1c1)](_0x3d4395[_0x5678a6])<0x0&&Object[_0xd026a1(0x1c2)]['propertyIsEnumerable'][_0xd026a1(0x1c6)](_0x5289ae,_0x3d4395[_0x5678a6])&&(_0x5839ef[_0x3d4395[_0x5678a6]]=_0x5289ae[_0x3d4395[_0x5678a6]]);}return _0x5839ef;},j=f[_0x58510e(0x144)](function(_0x1de2e1,_0x4bc73b){var _0x3cece5=_0x58510e,_0x2bd21e=_0x1de2e1[_0x3cece5(0x1d0)],_0x27016e=_0x1de2e1['id'],_0x2dcfbd=_0x1de2e1[_0x3cece5(0x1a9)],_0x5ef1d3=_0x1de2e1['extend'],_0x15e5f7=$(_0x1de2e1,[_0x3cece5(0x1d0),'id',_0x3cece5(0x1a9),_0x3cece5(0x130)]),_0x40f8dd=_0x3cece5(0x1a7)['concat'](_0x27016e,'\x20')[_0x3cece5(0x190)](_0x2dcfbd||'')[_0x3cece5(0x127)](),_0x5a22dd=f[_0x3cece5(0x151)]('_'[_0x3cece5(0x190)](k()));return y(_0x2bd21e,''[_0x3cece5(0x190)](_0x27016e),{'defIds':_0x2bd21e[_0x3cece5(0x192)],'idSuffix':_0x5a22dd[_0x3cece5(0x12a)]},u({'ref':_0x4bc73b,'className':_0x40f8dd},_0x15e5f7),_0x5ef1d3);});function y(_0x58dbcb,_0xc73a7e,_0x53f75d,_0x3eb29a,_0x1a35df){var _0x5d3c4d=_0x58510e;return f['createElement'](_0x58dbcb[_0x5d3c4d(0x186)],u(u({'key':_0xc73a7e},H(_0x58dbcb,_0x53f75d,_0x1a35df)),_0x3eb29a),(V(_0x58dbcb,_0x53f75d)[_0x5d3c4d(0x1d5)]||[])['map'](function(_0x19f4aa,_0x3d69f7){var _0x37ecaf=_0x5d3c4d;return y(_0x19f4aa,''['concat'](_0xc73a7e,'-')['concat'](_0x58dbcb[_0x37ecaf(0x186)],'-')[_0x37ecaf(0x190)](_0x3d69f7),_0x53f75d,void 0x0,_0x1a35df);}));}function H(_0x35174d,_0x4fee31,_0x246f8a){var _0x444d49=_0x58510e,_0x12f677=u({},_0x35174d[_0x444d49(0x15f)]);_0x246f8a!=null&&_0x246f8a[_0x444d49(0x1aa)]&&_0x12f677['fill']===_0x444d49(0x1aa)&&(_0x12f677['fill']=_0x246f8a['colorChannel1']),_0x35174d[_0x444d49(0x186)]===_0x444d49(0x174)&&_0x12f677['id']&&(_0x12f677['id']=_0x12f677['id']+_0x4fee31[_0x444d49(0x121)]),Object[_0x444d49(0x156)](_0x12f677)[_0x444d49(0x124)](function(_0x9a4aea){var _0x1aa33a=_0x444d49,_0x250ba6=_0x9a4aea[0x0],_0x479d2d=_0x9a4aea[0x1];_0x250ba6===_0x1aa33a(0x174)&&typeof _0x479d2d==_0x1aa33a(0x1b0)&&(_0x12f677[_0x250ba6]=_0x479d2d['replace'](/url\(#(.*)\)/,_0x1aa33a(0x1d7)[_0x1aa33a(0x190)](_0x4fee31[_0x1aa33a(0x121)],')')));});var _0x27e460=_0x4fee31[_0x444d49(0x192)];return!_0x27e460||_0x27e460[_0x444d49(0x1b8)]===0x0||(_0x35174d[_0x444d49(0x186)]===_0x444d49(0x1c7)&&_0x12f677[_0x444d49(0x18b)]&&(_0x12f677['xlink:href']=_0x12f677[_0x444d49(0x18b)]+_0x4fee31[_0x444d49(0x121)]),Object[_0x444d49(0x156)](_0x12f677)['forEach'](function(_0x2bcc7c){var _0x36401f=_0x444d49,_0x352461=_0x2bcc7c[0x0],_0x1ca7c7=_0x2bcc7c[0x1];typeof _0x1ca7c7==_0x36401f(0x1b0)&&(_0x12f677[_0x352461]=_0x1ca7c7[_0x36401f(0x143)](/url\(#(.*)\)/,_0x36401f(0x1d7)[_0x36401f(0x190)](_0x4fee31[_0x36401f(0x121)],')')));})),_0x12f677;}function V(_0x1cec05,_0x495402){var _0x15d402=_0x58510e,_0xa5e706,_0xc0cbba=_0x495402['defIds'];return!_0xc0cbba||_0xc0cbba[_0x15d402(0x1b8)]===0x0?_0x1cec05:_0x1cec05[_0x15d402(0x186)]===_0x15d402(0x18a)&&(!((_0xa5e706=_0x1cec05[_0x15d402(0x1d5)])===null||_0xa5e706===void 0x0)&&_0xa5e706[_0x15d402(0x1b8)])?u(u({},_0x1cec05),{'children':_0x1cec05['children'][_0x15d402(0x17f)](function(_0x34f427){var _0x2328e0=_0x15d402;return typeof _0x34f427[_0x2328e0(0x15f)]['id']==_0x2328e0(0x1b0)&&_0xc0cbba&&_0xc0cbba['includes'](_0x34f427[_0x2328e0(0x15f)]['id'])?u(u({},_0x34f427),{'attrs':u(u({},_0x34f427[_0x2328e0(0x15f)]),{'id':_0x34f427[_0x2328e0(0x15f)]['id']+_0x495402[_0x2328e0(0x121)]})}):_0x34f427;})}):_0x1cec05;}function k(){var _0x26d0ba=_0x58510e;return Math['random']()[_0x26d0ba(0x11f)](0x24)['substring'](0x2,0x8);}j['displayName']='UniverIcon';var M={'tag':_0x58510e(0x1ac),'attrs':{'xmlns':_0x58510e(0x172),'fill':_0x58510e(0x131),'viewBox':_0x58510e(0x15a),'width':_0x58510e(0x16e),'height':_0x58510e(0x16e)},'children':[{'tag':'path','attrs':{'fill':_0x58510e(0x17b),'d':_0x58510e(0x11c)}},{'tag':'path','attrs':{'fill':_0x58510e(0x17b),'d':_0x58510e(0x189),'fillRule':_0x58510e(0x1d4),'clipRule':_0x58510e(0x1d4)}}]},P=f['forwardRef'](function(_0x2b0310,_0x4ccab3){var _0x2a8104=_0x58510e;return f['createElement'](j,Object[_0x2a8104(0x196)]({},_0x2b0310,{'id':'live-share-icon','ref':_0x4ccab3,'icon':M}));});P[_0x58510e(0x18f)]=_0x58510e(0x1d6);class O extends o['Disposable']{constructor(){var _0x4b282d=_0x58510e;super(...arguments),v(this,_0x4b282d(0x1ad),new Set()),v(this,'_reporters',new Set());}[_0x58510e(0x1d3)](_0x2f7a38){var _0x175cf9=_0x58510e;return this[_0x175cf9(0x1ad)][_0x175cf9(0x1c8)](_0x2f7a38),o['toDisposable'](()=>this['_sharedOperations'][_0x175cf9(0x13e)](_0x2f7a38));}[_0x58510e(0x123)](_0x534854){var _0x478b61=_0x58510e;return this[_0x478b61(0x163)][_0x478b61(0x1c8)](_0x534854),o['toDisposable'](()=>this[_0x478b61(0x163)][_0x478b61(0x13e)](_0x534854));}['shouldShareOperation'](_0x392a3d){var _0x25d3f2=_0x58510e;return this[_0x25d3f2(0x1ad)]['has'](_0x392a3d);}[_0x58510e(0x146)](_0x592b50){var _0x556e62=_0x58510e;return Array[_0x556e62(0x1cc)](this[_0x556e62(0x163)])['map'](_0x2dc3e7=>_0x2dc3e7(_0x592b50));}}var q=Object['getOwnPropertyDescriptor'],R=(_0x38f0c9,_0x54289d,_0x19b9b7,_0x5e0221)=>{var _0x4b9e25=_0x58510e;for(var _0x13d733=_0x5e0221>0x1?void 0x0:_0x5e0221?q(_0x54289d,_0x19b9b7):_0x54289d,_0x197aaa=_0x38f0c9[_0x4b9e25(0x1b8)]-0x1,_0x2d1380;_0x197aaa>=0x0;_0x197aaa--)(_0x2d1380=_0x38f0c9[_0x197aaa])&&(_0x13d733=_0x2d1380(_0x13d733)||_0x13d733);return _0x13d733;},S=(_0x40ac08,_0x5ad646)=>(_0xf8a84c,_0x3e436a)=>_0x5ad646(_0xf8a84c,_0x3e436a,_0x40ac08);function _0x31de(_0x40de0b,_0xbd15b7){var _0x209784=_0x2097();return _0x31de=function(_0x31de76,_0x9d2ce4){_0x31de76=_0x31de76-0x115;var _0x1b89d7=_0x209784[_0x31de76];return _0x1b89d7;},_0x31de(_0x40de0b,_0xbd15b7);}exports['LiveShareController']=class extends o['RxDisposable']{constructor(_0x38c9e9,_0x11e419,_0x309327){var _0x2eaa14=_0x58510e;super(),v(this,'_entities',new Map()),(this[_0x2eaa14(0x1b5)]=_0x38c9e9,this[_0x2eaa14(0x15c)]=_0x11e419,this['_collabSessionService']=_0x309327,this[_0x2eaa14(0x182)]());}async['getLiveShareCoordinator'](_0x235cf5){var _0x2fcccf=_0x58510e;return this[_0x2fcccf(0x193)][_0x2fcccf(0x116)](_0x235cf5)||await this[_0x2fcccf(0x19a)](_0x235cf5),this[_0x2fcccf(0x193)]['get'](_0x235cf5);}['_init'](){var _0x4062d9=_0x58510e;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x4062d9(0x14a)][_0x4062d9(0x141)])['pipe'](b[_0x4062d9(0x1bc)](this['dispose$']))['subscribe'](async _0x91b11c=>{var _0x10b9b8=_0x4062d9;const _0x59d999=_0x91b11c['getUnitId']();this['_entities'][_0x10b9b8(0x116)](_0x59d999)||this[_0x10b9b8(0x19a)](_0x59d999);}),this[_0x4062d9(0x1b5)]['getTypeOfUnitDisposed$'](o['UniverInstanceType'][_0x4062d9(0x141)])['pipe'](b['takeUntil'](this[_0x4062d9(0x1d9)]))['subscribe'](_0x4d761a=>{var _0x2a28ec=_0x4062d9;const _0x2a8512=_0x4d761a['getUnitId'](),_0x41a0dc=this[_0x2a28ec(0x193)]['get'](_0x2a8512);_0x41a0dc==null||_0x41a0dc[_0x2a28ec(0x14b)]();});}async[_0x58510e(0x19a)](_0xab81ac){var _0x5a41b2=_0x58510e;const _0x27da5f=await this['_collabSessionService'][_0x5a41b2(0x117)](_0xab81ac),_0x214fa9=this[_0x5a41b2(0x15c)]['createInstance'](exports[_0x5a41b2(0x1a3)],_0xab81ac,_0x27da5f);return _0x214fa9['init'](),this[_0x5a41b2(0x193)]['set'](_0xab81ac,_0x214fa9),_0x214fa9;}},exports['LiveShareController']=R([S(0x0,o['IUniverInstanceService']),S(0x1,o['Inject'](o[_0x58510e(0x1a1)])),S(0x2,o[_0x58510e(0x126)](m['CollaborationSessionService']))],exports['LiveShareController']);var h=(_0xa1180a=>(_0xa1180a[_0x58510e(0x149)]='offline',_0xa1180a[_0x58510e(0x1bd)]=_0x58510e(0x17d),_0xa1180a[_0x58510e(0x1c3)]=_0x58510e(0x15b),_0xa1180a[_0x58510e(0x128)]=_0x58510e(0x16b),_0xa1180a['PRESENTING']=_0x58510e(0x119),_0xa1180a))(h||{});const W=_0x58510e(0x148),G=0xc8;exports[_0x58510e(0x1a3)]=class extends o[_0x58510e(0x1bf)]{constructor(_0x4d72cf,_0x4bc174,_0x37a8ef,_0x3f9f58,_0xe89f2a){var _0x1381fb=_0x58510e;super(),v(this,_0x1381fb(0x1b2),new w[(_0x1381fb(0x1be))](_0x1381fb(0x17d))),v(this,_0x1381fb(0x1dd),this[_0x1381fb(0x1b2)][_0x1381fb(0x1e4)]()),v(this,_0x1381fb(0x182),!0x1),v(this,_0x1381fb(0x198),null),v(this,_0x1381fb(0x1b9),null),(this[_0x1381fb(0x177)]=_0x4d72cf,this[_0x1381fb(0x1b6)]=_0x4bc174,this[_0x1381fb(0x176)]=_0x37a8ef,this[_0x1381fb(0x194)]=_0x3f9f58,this['_commandService']=_0xe89f2a);}get[_0x58510e(0x138)](){var _0x3351dc=_0x58510e;return this[_0x3351dc(0x1b2)][_0x3351dc(0x1d8)]();}[_0x58510e(0x14b)](){var _0x212a76=_0x58510e,_0xce2cdb;(_0xce2cdb=this[_0x212a76(0x198)])==null||_0xce2cdb[_0x212a76(0x14b)](),this[_0x212a76(0x1b2)]['next'](_0x212a76(0x17d)),this[_0x212a76(0x1b2)]['complete']();}[_0x58510e(0x160)](){var _0x105836=_0x58510e;this[_0x105836(0x182)]||(this['_init']=!0x0,this[_0x105836(0x1b6)][_0x105836(0x179)][_0x105836(0x1c9)](b[_0x105836(0x1bc)](this['dispose$']))[_0x105836(0x18d)](_0x1f8f25=>{var _0x568e26=_0x105836;switch(_0x1f8f25){case m[_0x568e26(0x19e)][_0x568e26(0x149)]:this['_handleOffline']();break;case m[_0x568e26(0x19e)][_0x568e26(0x1b3)]:this['_handleOnline']();break;}}),this[_0x105836(0x1b6)][_0x105836(0x1da)][_0x105836(0x1c9)](b[_0x105836(0x1bc)](this['dispose$']))[_0x105836(0x18d)](_0x2e2b79=>{var _0x48ed85=_0x105836;const {eventID:_0x30c83}=_0x2e2b79;switch(_0x30c83){case _[_0x48ed85(0x16c)][_0x48ed85(0x153)]:this[_0x48ed85(0x183)](_0x2e2b79);break;case _['CollaborationEvent']['LIVESHARE_OPERATION']:this[_0x48ed85(0x1d2)](_0x2e2b79);break;case _[_0x48ed85(0x16c)][_0x48ed85(0x122)]:this[_0x48ed85(0x16f)]();break;case _[_0x48ed85(0x16c)][_0x48ed85(0x1d1)]:this[_0x48ed85(0x14e)](_0x2e2b79);break;}}));}['tryStartPresenting'](){var _0x1a8dbd=_0x58510e;this[_0x1a8dbd(0x1b6)]['send']({'eventID':_[_0x1a8dbd(0x16c)][_0x1a8dbd(0x1dc)],'data':{'unitID':this[_0x1a8dbd(0x177)],'userID':this[_0x1a8dbd(0x1b6)][_0x1a8dbd(0x1ba)]()}},this[_0x1a8dbd(0x177)]);}[_0x58510e(0x184)](){var _0x33e8f6=_0x58510e;this[_0x33e8f6(0x138)]===_0x33e8f6(0x119)&&(this[_0x33e8f6(0x1b2)]['next'](_0x33e8f6(0x17d)),this[_0x33e8f6(0x1b6)]['send']({'eventID':_[_0x33e8f6(0x16c)][_0x33e8f6(0x122)],'data':{'unitID':this[_0x33e8f6(0x177)]}},this['_unitID']));}['startFollowing'](){var _0x207703=_0x58510e;this[_0x207703(0x138)]===_0x207703(0x16b)&&(this[_0x207703(0x1b2)][_0x207703(0x1cb)]('following'),this['_startFollowing']());}[_0x58510e(0x1e2)](){var _0x4417d6=_0x58510e;this[_0x4417d6(0x138)]===_0x4417d6(0x15b)&&this['_stopFollowing']();}[_0x58510e(0x183)](_0x31f93a){var _0x38e970=_0x58510e;const {presenter:_0x5490a0}=_0x31f93a[_0x38e970(0x1af)],_0x53ab4c=this[_0x38e970(0x1b6)]['getMemberID']();this['_presenter']=_0x5490a0,_0x5490a0===_0x53ab4c?(this[_0x38e970(0x1de)](),this[_0x38e970(0x1c0)]()):this[_0x38e970(0x138)]!==_0x38e970(0x16b)&&(this[_0x38e970(0x137)](),this[_0x38e970(0x1a8)]());}['_fetchOperations'](){var _0x292175=_0x58510e;const _0x29a301={'eventID':_[_0x292175(0x16c)][_0x292175(0x11b)]};this[_0x292175(0x1b6)][_0x292175(0x13c)](_0x29a301,this[_0x292175(0x177)]);}['_handleTerminate'](){var _0x5c62a2=_0x58510e;this[_0x5c62a2(0x1b9)]=null,this['_status']!==_0x5c62a2(0x119)&&this[_0x5c62a2(0x173)]();}['_handleNewChangeSets'](_0x3d13b5){var _0x3d9d0d=_0x58510e;if(this[_0x3d9d0d(0x138)]===_0x3d9d0d(0x15b)&&this['_presenter']===_0x3d13b5[_0x3d9d0d(0x1af)]['memberID']){const _0x5709b6=_['parseProtocolChangeset'](_0x3d13b5[_0x3d9d0d(0x1af)])['mutations'][_0x3d9d0d(0x168)]()[_0x3d9d0d(0x118)](_0x1a40d4=>_0x1a40d4['id']===C[_0x3d9d0d(0x175)]['id']);if(_0x5709b6){const _0xa3c8ca=_0x5709b6[_0x3d9d0d(0x18e)][_0x3d9d0d(0x188)],_0x56d43e=_0x5709b6[_0x3d9d0d(0x18e)][_0x3d9d0d(0x15d)]['id'];setTimeout(()=>{var _0x6a9ee0=_0x3d9d0d;this[_0x6a9ee0(0x161)]['executeCommand'](C['SetWorksheetActiveOperation']['id'],{'unitId':_0xa3c8ca,'subUnitId':_0x56d43e},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x1bd8fe=_0x58510e;this[_0x1bd8fe(0x1b2)][_0x1bd8fe(0x1cb)](_0x1bd8fe(0x119));const _0x199d54=new Map(),_0x5c48e3=this[_0x1bd8fe(0x198)]=new o[(_0x1bd8fe(0x1e0))]();_0x5c48e3[_0x1bd8fe(0x1c8)](o[_0x1bd8fe(0x1a0)](()=>{var _0x138d16=_0x1bd8fe;_0x199d54[_0x138d16(0x124)](_0x47bd7a=>_0x47bd7a['complete']()),_0x199d54['clear']();})),_0x5c48e3[_0x1bd8fe(0x1c8)](this[_0x1bd8fe(0x161)]['onCommandExecuted'](_0x57563e=>{var _0x411dda=_0x1bd8fe,_0x6ae07f;if(_0x57563e[_0x411dda(0x164)]!==o['CommandType'][_0x411dda(0x13b)]||!this[_0x411dda(0x194)]['shouldShareOperation'](_0x57563e['id']))return;const {id:_0x35bfeb}=_0x57563e;let _0x9606a7;_0x199d54[_0x411dda(0x116)](_0x35bfeb)?_0x9606a7=_0x199d54['get'](_0x35bfeb):(_0x9606a7=new w[(_0x411dda(0x1ab))](),_0x199d54['set'](_0x35bfeb,_0x9606a7),_0x9606a7[_0x411dda(0x1c9)](b[_0x411dda(0x1e1)]((_0x6ae07f=this['_configService'][_0x411dda(0x1ae)](W))!=null?_0x6ae07f:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x411dda(0x18d)](_0x5bfa72=>{var _0x1e4e91=_0x411dda;this[_0x1e4e91(0x1b6)][_0x1e4e91(0x13c)]({'eventID':_[_0x1e4e91(0x16c)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1e4e91(0x177)],'operations':{[_0x5bfa72['id']]:{'id':_0x5bfa72['id'],'params':JSON[_0x1e4e91(0x1cd)](_0x5bfa72[_0x1e4e91(0x18e)])}}}},this['_unitID']);})),_0x9606a7[_0x411dda(0x1cb)](_0x57563e);})),this[_0x1bd8fe(0x194)][_0x1bd8fe(0x146)](this[_0x1bd8fe(0x177)])[_0x1bd8fe(0x124)](_0x3f7428=>this[_0x1bd8fe(0x1b6)][_0x1bd8fe(0x13c)]({'eventID':_[_0x1bd8fe(0x16c)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1bd8fe(0x177)],'operations':{[_0x3f7428['id']]:{'id':_0x3f7428['id'],'params':JSON['stringify'](_0x3f7428[_0x1bd8fe(0x18e)])}}}},this[_0x1bd8fe(0x177)]));}[_0x58510e(0x137)](){var _0xa7f623=_0x58510e,_0x19b1ef;this[_0xa7f623(0x1b2)][_0xa7f623(0x1cb)](_0xa7f623(0x17d)),(_0x19b1ef=this[_0xa7f623(0x198)])==null||_0x19b1ef[_0xa7f623(0x14b)](),this[_0xa7f623(0x198)]=null;}['_startFollowing'](){var _0x56d53f=_0x58510e,_0x2967c9;(_0x2967c9=this[_0x56d53f(0x198)])==null||_0x2967c9[_0x56d53f(0x14b)](),this['_status$'][_0x56d53f(0x1cb)](_0x56d53f(0x15b));}[_0x58510e(0x173)](){var _0x2afb7c=_0x58510e,_0x4fe353;this[_0x2afb7c(0x1b2)][_0x2afb7c(0x1cb)]('idle'),(_0x4fe353=this['_commandDisposable'])==null||_0x4fe353[_0x2afb7c(0x14b)](),this[_0x2afb7c(0x198)]=null;}[_0x58510e(0x1de)](){var _0x2e9040=_0x58510e,_0x39de81;this[_0x2e9040(0x1b2)][_0x2e9040(0x1cb)](_0x2e9040(0x16b)),(_0x39de81=this['_commandDisposable'])==null||_0x39de81['dispose']();}[_0x58510e(0x1d2)](_0x14bfca){var _0x226a05=_0x58510e;if([_0x226a05(0x119),'not-following',_0x226a05(0x1db)][_0x226a05(0x1e3)](this[_0x226a05(0x138)])||!_0x14bfca[_0x226a05(0x1af)][_0x226a05(0x1a4)]||_0x14bfca['data'][_0x226a05(0x1a4)]===this[_0x226a05(0x1b6)]['getMemberID']())return;this[_0x226a05(0x138)]===_0x226a05(0x17d)&&this[_0x226a05(0x1a8)]();const _0x56a838=_0x14bfca[_0x226a05(0x1af)]['operations'];Object[_0x226a05(0x1c5)](_0x56a838)['forEach'](_0xb891d2=>{var _0x2bffc6=_0x226a05;this[_0x2bffc6(0x161)][_0x2bffc6(0x178)](_0xb891d2['id'],_0xb891d2['params']?JSON['parse'](_0xb891d2[_0x2bffc6(0x18e)]):null,{'fromCollab':!0x0});});}[_0x58510e(0x185)](){var _0xdfa476=_0x58510e,_0x6a7c7d;this[_0xdfa476(0x1b2)][_0xdfa476(0x1cb)](_0xdfa476(0x1db)),(_0x6a7c7d=this[_0xdfa476(0x198)])==null||_0x6a7c7d[_0xdfa476(0x14b)]();}[_0x58510e(0x139)](){var _0x142264=_0x58510e;this['_status$'][_0x142264(0x1cb)](_0x142264(0x17d)),this[_0x142264(0x14f)]();}},exports[_0x58510e(0x1a3)]=R([S(0x2,o[_0x58510e(0x1ce)]),S(0x3,o[_0x58510e(0x126)](O)),S(0x4,o[_0x58510e(0x17a)])],exports['LiveShareCoordinator']);function A(){var _0x5722ab=_0x58510e;const _0x4789ab=p[_0x5722ab(0x16d)](exports[_0x5722ab(0x17e)]),_0x1d2d97=p[_0x5722ab(0x16d)](o[_0x5722ab(0x19c)]),_0x538b14=p[_0x5722ab(0x145)](()=>_0x1d2d97[_0x5722ab(0x166)](o[_0x5722ab(0x14a)][_0x5722ab(0x141)]),void 0x0,!0x1,[]),[_0x4820ff,_0xa6880d]=f[_0x5722ab(0x1b7)](null),[_0x57c909,_0xe26a1e]=f['useState'](h['IDLE']),_0x39081d=f[_0x5722ab(0x151)](null);return f[_0x5722ab(0x191)](()=>(_0x538b14&&_0x4789ab[_0x5722ab(0x1c4)](_0x538b14[_0x5722ab(0x11d)]())['then'](_0x5513b4=>{var _0x1cfc75=_0x5722ab;_0xa6880d(_0x5513b4),_0x39081d[_0x1cfc75(0x12a)]=_0x5513b4[_0x1cfc75(0x1dd)]['subscribe'](_0x451e64=>{_0xe26a1e(_0x451e64);});}),()=>{var _0x536036=_0x5722ab,_0x570f3f;(_0x570f3f=_0x39081d[_0x536036(0x12a)])==null||_0x570f3f['unsubscribe'](),_0x39081d[_0x536036(0x12a)]=null;}),[_0x538b14,_0x4789ab]),_0x4820ff?l[_0x5722ab(0x165)](g['Dropdown'],{'align':_0x5722ab(0x157),'disabled':_0x57c909===h[_0x5722ab(0x149)],'className':_0x5722ab(0x147),'overlay':l[_0x5722ab(0x165)](B,{'status':_0x57c909,'coordinator':_0x4820ff}),'children':l[_0x5722ab(0x165)]('button',{'className':g['clsx'](_0x5722ab(0x197),{'univer-cursor-not-allowed':_0x57c909===h[_0x5722ab(0x149)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x57c909!==h[_0x5722ab(0x149)]}),'type':_0x5722ab(0x135),'children':l[_0x5722ab(0x165)](P,{'className':_0x5722ab(0x1bb)})})}):null;}function B(_0x5a7bcb){var _0x169f6e=_0x58510e;const {status:_0x5858bc,coordinator:_0x3e3bbb}=_0x5a7bcb;switch(_0x5858bc){case h[_0x169f6e(0x1bd)]:return l[_0x169f6e(0x165)](Y,{'coordinator':_0x3e3bbb});case h[_0x169f6e(0x1c3)]:return l[_0x169f6e(0x165)](Z,{'coordinator':_0x3e3bbb});case h[_0x169f6e(0x128)]:return l[_0x169f6e(0x165)](J,{'coordinator':_0x3e3bbb});case h['OFFLINE']:return l[_0x169f6e(0x165)](z,{});case h[_0x169f6e(0x13a)]:return l['jsx'](K,{'coordinator':_0x3e3bbb});default:return null;}}function Y(_0x1e3c3d){var _0x4e76a5=_0x58510e;const {coordinator:_0xf2daa1}=_0x1e3c3d;return l[_0x4e76a5(0x13d)](l[_0x4e76a5(0x195)],{'children':[l[_0x4e76a5(0x165)](_0x4e76a5(0x158),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4e76a5(0x12f)}),l[_0x4e76a5(0x165)](g[_0x4e76a5(0x1a6)],{'onClick':()=>_0xf2daa1[_0x4e76a5(0x12e)](),'children':'Start'})]});}function Z(_0x1e0d15){var _0x34649d=_0x58510e;const {coordinator:_0x41c45e}=_0x1e0d15;return l[_0x34649d(0x13d)](l['Fragment'],{'children':[l['jsx'](_0x34649d(0x158),{'className':_0x34649d(0x181),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x34649d(0x165)](g[_0x34649d(0x1a6)],{'onClick':()=>_0x41c45e[_0x34649d(0x1e2)](),'children':'Stop\x20following'})]});}function J(_0x3a55ee){var _0x574acf=_0x58510e;const {coordinator:_0x5d4ef6}=_0x3a55ee;return l[_0x574acf(0x13d)](l['Fragment'],{'children':[l[_0x574acf(0x165)]('div',{'className':_0x574acf(0x181),'children':_0x574acf(0x19d)}),l['jsx'](g[_0x574acf(0x1a6)],{'variant':_0x574acf(0x11a),'onClick':()=>_0x5d4ef6[_0x574acf(0x1b4)](),'children':_0x574acf(0x14c)})]});}function K(_0x1b2825){var _0x5a1bf6=_0x58510e;const {coordinator:_0x3d6730}=_0x1b2825;return l[_0x5a1bf6(0x13d)](l[_0x5a1bf6(0x195)],{'children':[l[_0x5a1bf6(0x165)](_0x5a1bf6(0x158),{'className':_0x5a1bf6(0x181),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x5a1bf6(0x165)](g['Button'],{'variant':'default','onClick':()=>_0x3d6730['stopPresenting'](),'children':_0x5a1bf6(0x136)})]});}function z(){var _0x86a5e5=_0x58510e;return l[_0x86a5e5(0x165)](l[_0x86a5e5(0x195)],{'children':_0x86a5e5(0x169)});}var Q=Object[_0x58510e(0x162)],X=(_0x202028,_0x51e1d3,_0x18d54f,_0x45f55e)=>{var _0x262e7d=_0x58510e;for(var _0x24cb72=_0x45f55e>0x1?void 0x0:_0x45f55e?Q(_0x51e1d3,_0x18d54f):_0x51e1d3,_0x580360=_0x202028[_0x262e7d(0x1b8)]-0x1,_0x4d3abc;_0x580360>=0x0;_0x580360--)(_0x4d3abc=_0x202028[_0x580360])&&(_0x24cb72=_0x4d3abc(_0x24cb72)||_0x24cb72);return _0x24cb72;},x=(_0x1915ad,_0x570e78)=>(_0x360841,_0x41a887)=>_0x570e78(_0x360841,_0x41a887,_0x1915ad);exports[_0x58510e(0x180)]=class extends o[_0x58510e(0x13f)]{constructor(_0x4c5411,_0x1d6555){var _0x5bee7c=_0x58510e;super(),this['_injector']=_0x4c5411,this[_0x5bee7c(0x11e)]=_0x1d6555,this['_mountLiveShare']();}['_mountLiveShare'](){var _0x59e65a=_0x58510e;this[_0x59e65a(0x15e)](this['_uiPartsService'][_0x59e65a(0x1df)](p['BuiltInUIPart'][_0x59e65a(0x159)],()=>p[_0x59e65a(0x199)](A,this[_0x59e65a(0x15c)])));}},exports[_0x58510e(0x180)]=X([x(0x0,o[_0x58510e(0x126)](o[_0x58510e(0x1a1)])),x(0x1,p[_0x58510e(0x1a2)])],exports[_0x58510e(0x180)]);const ee=_0x58510e(0x1ca),L={};var te=Object[_0x58510e(0x162)],ie=(_0x14a59a,_0x1c5e88,_0x5cc70e,_0x211e12)=>{for(var _0x214c82=_0x211e12>0x1?void 0x0:_0x211e12?te(_0x1c5e88,_0x5cc70e):_0x1c5e88,_0x55ff43=_0x14a59a['length']-0x1,_0x3c6409;_0x55ff43>=0x0;_0x55ff43--)(_0x3c6409=_0x14a59a[_0x55ff43])&&(_0x214c82=_0x3c6409(_0x214c82)||_0x214c82);return _0x214c82;},ne=(_0x533af7,_0x3ce48c)=>(_0x30b145,_0x281603)=>_0x3ce48c(_0x30b145,_0x281603,_0x533af7);let E=class extends o['Disposable']{constructor(_0x54a7ca){var _0x2cebad=_0x58510e;super(),this[_0x2cebad(0x194)]=_0x54a7ca,this[_0x2cebad(0x182)]();}[_0x58510e(0x182)](){var _0x474319=_0x58510e;[D[_0x474319(0x1a5)]['id'],D['SetScrollOperation']['id'],C[_0x474319(0x125)]['id']]['forEach'](_0x200b57=>{var _0x415eaf=_0x474319;this['disposeWithMe'](this[_0x415eaf(0x194)][_0x415eaf(0x1d3)](_0x200b57));});}};E=ie([ne(0x0,o[_0x58510e(0x126)](O))],E);var re=Object[_0x58510e(0x12d)],se=Object[_0x58510e(0x162)],oe=(_0x5601da,_0x58c8a5,_0x511737)=>_0x58c8a5 in _0x5601da?re(_0x5601da,_0x58c8a5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x511737}):_0x5601da[_0x58c8a5]=_0x511737,ae=(_0x1f5a69,_0x3ac679,_0x4d57d0,_0x292a8a)=>{for(var _0x19b5ec=_0x292a8a>0x1?void 0x0:_0x292a8a?se(_0x3ac679,_0x4d57d0):_0x3ac679,_0xade5f4=_0x1f5a69['length']-0x1,_0x1fd21f;_0xade5f4>=0x0;_0xade5f4--)(_0x1fd21f=_0x1f5a69[_0xade5f4])&&(_0x19b5ec=_0x1fd21f(_0x19b5ec)||_0x19b5ec);return _0x19b5ec;},N=(_0x276748,_0x4e1570)=>(_0x1b2c58,_0x4d1dfe)=>_0x4e1570(_0x1b2c58,_0x4d1dfe,_0x276748),T=(_0x3ead64,_0x1507cb,_0x279d32)=>oe(_0x3ead64,typeof _0x1507cb!='symbol'?_0x1507cb+'':_0x1507cb,_0x279d32);const le=_0x58510e(0x170);exports[_0x58510e(0x142)]=class extends o[_0x58510e(0x14d)]{constructor(_0x19b724=L,_0x3bd66b,_0x5893fd){var _0x4f13ff=_0x58510e;super(),this[_0x4f13ff(0x18c)]=_0x19b724,this[_0x4f13ff(0x15c)]=_0x3bd66b,this[_0x4f13ff(0x176)]=_0x5893fd;const {..._0x217109}=o[_0x4f13ff(0x133)]({},L,this[_0x4f13ff(0x18c)]);this['_configService'][_0x4f13ff(0x129)](ee,_0x217109);}['onStarting'](){var _0x27df14=_0x58510e;o[_0x27df14(0x1cf)](this[_0x27df14(0x15c)],o[_0x27df14(0x134)]([[O],[exports[_0x27df14(0x17e)]],[E],[exports[_0x27df14(0x180)]]],this[_0x27df14(0x18c)][_0x27df14(0x12b)])),o[_0x27df14(0x167)](this[_0x27df14(0x15c)],[[E]]);}[_0x58510e(0x132)](){var _0x2b5872=_0x58510e;o[_0x2b5872(0x167)](this[_0x2b5872(0x15c)],[[exports[_0x2b5872(0x180)]]]);}},T(exports[_0x58510e(0x142)],_0x58510e(0x164),o['UniverInstanceType'][_0x58510e(0x1e5)]),T(exports[_0x58510e(0x142)],_0x58510e(0x150),le),exports[_0x58510e(0x142)]=ae([o[_0x58510e(0x17c)](m['UniverCollaborationClientPlugin']),N(0x1,o[_0x58510e(0x126)](o['Injector'])),N(0x2,o[_0x58510e(0x1ce)])],exports[_0x58510e(0x142)]),exports[_0x58510e(0x140)]=A,exports['LiveShareService']=O,exports[_0x58510e(0x115)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x36f017=_0xde17;(function(_0xcac48b,_0x172d45){var _0x289873=_0xde17,_0x41bf4f=_0xcac48b();while(!![]){try{var _0x338b47=parseInt(_0x289873(0x22e))/0x1+parseInt(_0x289873(0x26b))/0x2*(-parseInt(_0x289873(0x1df))/0x3)+parseInt(_0x289873(0x1da))/0x4+-parseInt(_0x289873(0x1bd))/0x5+parseInt(_0x289873(0x1d0))/0x6*(-parseInt(_0x289873(0x245))/0x7)+parseInt(_0x289873(0x240))/0x8*(parseInt(_0x289873(0x1c7))/0x9)+-parseInt(_0x289873(0x1dc))/0xa;if(_0x338b47===_0x172d45)break;else _0x41bf4f['push'](_0x41bf4f['shift']());}catch(_0x1d81f4){_0x41bf4f['push'](_0x41bf4f['shift']());}}}(_0x237f,0xac0db));var q=Object[_0x36f017(0x1d5)],z=(_0x4bf46c,_0xb1213e,_0x2aff38)=>_0xb1213e in _0x4bf46c?q(_0x4bf46c,_0xb1213e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2aff38}):_0x4bf46c[_0xb1213e]=_0x2aff38,d=(_0x38a0e8,_0x299499,_0x9e8ed5)=>z(_0x38a0e8,typeof _0x299499!=_0x36f017(0x1f6)?_0x299499+'':_0x299499,_0x9e8ed5);import{Disposable as _0x1921d4,toDisposable as _0x363c38,IUniverInstanceService as _0x3f3fb4,Inject as _0x3b82a6,Injector as _0x11e997,IConfigService as _0x2ade0c,ICommandService as _0x5b1a08,RxDisposable as _0xdfd2c9,UniverInstanceType as _0x3488c4,DisposableCollection as _0x432129,CommandType as _0x55283a,DependentOn as _0x3c9495,Plugin as _0x1c42d2,merge as _0x3fdcd0,registerDependencies as _0x29e73f,mergeOverrideWithDependencies as _0x5e60eb,touchDependencies as _0x184d91}from'@univerjs/core';import{useDependency as _0x57a76c,useObservable as _0x28c88f,IUIPartsService as _0x3c6a2e,BuiltInUIPart as _0x4db87a,connectInjector as _0x518bf9}from'@univerjs/ui';import{jsx as _0x36e838,jsxs as _0x5ddc08,Fragment as _0x10e248}from'react/jsx-runtime';import{Dropdown as _0x1eee21,clsx as _0x28accc,Button as _0x564e8c}from'@univerjs/design';import{forwardRef as _0x49863e,useRef as _0xeec105,createElement as _0xb83fdd,useState as _0x49d219,useEffect as _0x2e558b}from'react';import{CollaborationEvent as _0x33da1b,parseProtocolChangeset as _0x35401c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x28485c,SessionStatus as _0x593165,UniverCollaborationClientPlugin as _0x2e766a}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xdd3b8d,SetWorksheetActiveOperation as _0x541ec2}from'@univerjs/sheets';import{BehaviorSubject as _0x34eac5,Subject as _0x9375f3}from'rxjs';import{takeUntil as _0xc1bed8,throttleTime as _0x4b7434}from'rxjs/operators';import{SetZoomRatioOperation as _0x17d0cb,SetScrollOperation as _0x43d03b}from'@univerjs/sheets-ui';var c=function(){var _0x1adb03=_0x36f017;return c=Object[_0x1adb03(0x1d2)]||function(_0x2e490c){var _0xb6bce9=_0x1adb03;for(var _0x5ed74c,_0x545095=0x1,_0x2cdad7=arguments['length'];_0x545095<_0x2cdad7;_0x545095++){_0x5ed74c=arguments[_0x545095];for(var _0x227c8f in _0x5ed74c)Object[_0xb6bce9(0x20b)]['hasOwnProperty'][_0xb6bce9(0x232)](_0x5ed74c,_0x227c8f)&&(_0x2e490c[_0x227c8f]=_0x5ed74c[_0x227c8f]);}return _0x2e490c;},c['apply'](this,arguments);},Oe=function(_0x285852,_0x4be77d){var _0x43b9d7=_0x36f017,_0x4cf2a8={};for(var _0x5d3a62 in _0x285852)Object[_0x43b9d7(0x20b)][_0x43b9d7(0x1fb)][_0x43b9d7(0x232)](_0x285852,_0x5d3a62)&&_0x4be77d['indexOf'](_0x5d3a62)<0x0&&(_0x4cf2a8[_0x5d3a62]=_0x285852[_0x5d3a62]);if(_0x285852!=null&&typeof Object[_0x43b9d7(0x210)]==_0x43b9d7(0x1cf)){for(var _0x58bcf8=0x0,_0x5d3a62=Object[_0x43b9d7(0x210)](_0x285852);_0x58bcf8<_0x5d3a62[_0x43b9d7(0x211)];_0x58bcf8++)_0x4be77d[_0x43b9d7(0x200)](_0x5d3a62[_0x58bcf8])<0x0&&Object[_0x43b9d7(0x20b)][_0x43b9d7(0x258)][_0x43b9d7(0x232)](_0x285852,_0x5d3a62[_0x58bcf8])&&(_0x4cf2a8[_0x5d3a62[_0x58bcf8]]=_0x285852[_0x5d3a62[_0x58bcf8]]);}return _0x4cf2a8;},W=_0x49863e(function(_0x140002,_0x29b62c){var _0x1f316a=_0x36f017,_0x3f0948=_0x140002['icon'],_0x16ffee=_0x140002['id'],_0x3be45d=_0x140002[_0x1f316a(0x231)],_0x4ce05d=_0x140002[_0x1f316a(0x1eb)],_0x19e407=Oe(_0x140002,[_0x1f316a(0x1e4),'id',_0x1f316a(0x231),_0x1f316a(0x1eb)]),_0x5d6c39=_0x1f316a(0x25c)[_0x1f316a(0x1b9)](_0x16ffee,'\x20')[_0x1f316a(0x1b9)](_0x3be45d||'')[_0x1f316a(0x25f)](),_0x6daf92=_0xeec105('_'['concat'](Ne()));return Y(_0x3f0948,''['concat'](_0x16ffee),{'defIds':_0x3f0948['defIds'],'idSuffix':_0x6daf92['current']},c({'ref':_0x29b62c,'className':_0x5d6c39},_0x19e407),_0x4ce05d);});function Y(_0x3b16cf,_0x1bbdb3,_0x5844dd,_0x476478,_0x4c9543){var _0x250ff0=_0x36f017;return _0xb83fdd(_0x3b16cf['tag'],c(c({'key':_0x1bbdb3},Ee(_0x3b16cf,_0x5844dd,_0x4c9543)),_0x476478),(we(_0x3b16cf,_0x5844dd)[_0x250ff0(0x264)]||[])['map'](function(_0x128f71,_0x5a417d){var _0x345d98=_0x250ff0;return Y(_0x128f71,''[_0x345d98(0x1b9)](_0x1bbdb3,'-')[_0x345d98(0x1b9)](_0x3b16cf['tag'],'-')['concat'](_0x5a417d),_0x5844dd,void 0x0,_0x4c9543);}));}function Ee(_0x3aa95f,_0x56f229,_0x48e478){var _0x3484e3=_0x36f017,_0x16e0d6=c({},_0x3aa95f[_0x3484e3(0x218)]);_0x48e478!=null&&_0x48e478[_0x3484e3(0x23c)]&&_0x16e0d6['fill']===_0x3484e3(0x23c)&&(_0x16e0d6[_0x3484e3(0x255)]=_0x48e478['colorChannel1']),_0x3aa95f[_0x3484e3(0x1cb)]===_0x3484e3(0x252)&&_0x16e0d6['id']&&(_0x16e0d6['id']=_0x16e0d6['id']+_0x56f229[_0x3484e3(0x249)]),Object[_0x3484e3(0x1c8)](_0x16e0d6)[_0x3484e3(0x22a)](function(_0x3f28e3){var _0x38e353=_0x3484e3,_0x3ccf23=_0x3f28e3[0x0],_0x15e967=_0x3f28e3[0x1];_0x3ccf23===_0x38e353(0x252)&&typeof _0x15e967==_0x38e353(0x241)&&(_0x16e0d6[_0x3ccf23]=_0x15e967[_0x38e353(0x217)](/url\(#(.*)\)/,'url(#$1'[_0x38e353(0x1b9)](_0x56f229[_0x38e353(0x249)],')')));});var _0x1e2cf7=_0x56f229[_0x3484e3(0x1c5)];return!_0x1e2cf7||_0x1e2cf7['length']===0x0||(_0x3aa95f[_0x3484e3(0x1cb)]===_0x3484e3(0x259)&&_0x16e0d6[_0x3484e3(0x205)]&&(_0x16e0d6[_0x3484e3(0x205)]=_0x16e0d6[_0x3484e3(0x205)]+_0x56f229[_0x3484e3(0x249)]),Object[_0x3484e3(0x1c8)](_0x16e0d6)[_0x3484e3(0x22a)](function(_0x3f7d54){var _0x1686a0=_0x3484e3,_0x5a02e4=_0x3f7d54[0x0],_0x4c247b=_0x3f7d54[0x1];typeof _0x4c247b==_0x1686a0(0x241)&&(_0x16e0d6[_0x5a02e4]=_0x4c247b['replace'](/url\(#(.*)\)/,_0x1686a0(0x1c3)['concat'](_0x56f229['idSuffix'],')')));})),_0x16e0d6;}function we(_0x16b127,_0x1522ad){var _0x252079=_0x36f017,_0x4d6756,_0x6111ef=_0x1522ad['defIds'];return!_0x6111ef||_0x6111ef[_0x252079(0x211)]===0x0?_0x16b127:_0x16b127[_0x252079(0x1cb)]===_0x252079(0x221)&&(!((_0x4d6756=_0x16b127['children'])===null||_0x4d6756===void 0x0)&&_0x4d6756['length'])?c(c({},_0x16b127),{'children':_0x16b127[_0x252079(0x264)][_0x252079(0x1d9)](function(_0x52287a){var _0x2b7973=_0x252079;return typeof _0x52287a[_0x2b7973(0x218)]['id']=='string'&&_0x6111ef&&_0x6111ef[_0x2b7973(0x21e)](_0x52287a[_0x2b7973(0x218)]['id'])?c(c({},_0x52287a),{'attrs':c(c({},_0x52287a[_0x2b7973(0x218)]),{'id':_0x52287a[_0x2b7973(0x218)]['id']+_0x1522ad[_0x2b7973(0x249)]})}):_0x52287a;})}):_0x16b127;}function Ne(){var _0x5e6acc=_0x36f017;return Math['random']()[_0x5e6acc(0x247)](0x24)[_0x5e6acc(0x1c1)](0x2,0x8);}W[_0x36f017(0x1d1)]='UniverIcon';var Ce={'tag':_0x36f017(0x254),'attrs':{'xmlns':_0x36f017(0x1bf),'fill':_0x36f017(0x1cc),'viewBox':_0x36f017(0x1f5),'width':_0x36f017(0x1b7),'height':_0x36f017(0x1b7)},'children':[{'tag':_0x36f017(0x251),'attrs':{'fill':_0x36f017(0x1d3),'d':_0x36f017(0x203)}},{'tag':'path','attrs':{'fill':_0x36f017(0x1d3),'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':_0x36f017(0x268),'clipRule':'evenodd'}}]},B=_0x49863e(function(_0xd3acb0,_0x3c2a13){var _0x12eb01=_0x36f017;return _0xb83fdd(W,Object[_0x12eb01(0x1d2)]({},_0xd3acb0,{'id':'live-share-icon','ref':_0x3c2a13,'icon':Ce}));});B['displayName']=_0x36f017(0x213);class L extends _0x1921d4{constructor(){var _0x472517=_0x36f017;super(...arguments),d(this,_0x472517(0x25a),new Set()),d(this,_0x472517(0x269),new Set());}[_0x36f017(0x1ba)](_0x2df393){var _0x2f8243=_0x36f017;return this[_0x2f8243(0x25a)][_0x2f8243(0x23d)](_0x2df393),_0x363c38(()=>this[_0x2f8243(0x25a)][_0x2f8243(0x1bb)](_0x2df393));}[_0x36f017(0x23f)](_0x195f86){var _0x2420a9=_0x36f017;return this['_reporters'][_0x2420a9(0x23d)](_0x195f86),_0x363c38(()=>this[_0x2420a9(0x269)][_0x2420a9(0x1bb)](_0x195f86));}[_0x36f017(0x23b)](_0x51df3a){var _0x3e410b=_0x36f017;return this[_0x3e410b(0x25a)]['has'](_0x51df3a);}[_0x36f017(0x1cd)](_0xf827d9){var _0x16202c=_0x36f017;return Array[_0x16202c(0x21f)](this[_0x16202c(0x269)])[_0x16202c(0x1d9)](_0x444bb9=>_0x444bb9(_0xf827d9));}}var De=Object[_0x36f017(0x20c)],Z=(_0xa9bc40,_0x298351,_0x249e54,_0x26d69e)=>{var _0x538142=_0x36f017;for(var _0x4af965=_0x26d69e>0x1?void 0x0:_0x26d69e?De(_0x298351,_0x249e54):_0x298351,_0x3adbe4=_0xa9bc40[_0x538142(0x211)]-0x1,_0x55b2c9;_0x3adbe4>=0x0;_0x3adbe4--)(_0x55b2c9=_0xa9bc40[_0x3adbe4])&&(_0x4af965=_0x55b2c9(_0x4af965)||_0x4af965);return _0x4af965;},f=(_0x316b48,_0x16d6cd)=>(_0x165a57,_0x6e667d)=>_0x16d6cd(_0x165a57,_0x6e667d,_0x316b48);function _0x237f(){var _0x52d027=['presenter','xlink:href','ONLINE','type','PRESENTING','IDLE','button','prototype','getOwnPropertyDescriptor','Stop\x20following','_handleNewChangeSets','init','getOwnPropertySymbols','length','_beIdle','LiveShareIcon','onCommandExecuted','live-share.config','_unitID','replace','attrs','default','_presenter','OPERATION','_liveShareService','unitId','includes','from','setConfig','defs','end','has','executeCommand','stringify','parse','_univerInstanceService','dispose','onRendered','forEach','params','override','You\x27are\x20offline.','590919cKpoQM','send','_commandService','className','call','_fetchOperations','asObservable','You\x27re\x20following\x20the\x20presenter','NOT_FOLLOWING','_commandDisposable','Stop\x20presenting','You\x27re\x20not\x20following\x20the\x20presenter','div','shouldShareOperation','colorChannel1','add','idle','registerInitialStateReporter','4400ByQvPR','string','NEW_CHANGESETS','_handleTerminate','get','177457OwesLY','_status','toString','pluginName','idSuffix','following','complete','offline','stopPresenting','dispose$','_stopFollowing','LIVESHARE_TERMINATE','path','mask','status$','svg','fill','You\x27re\x20presenting\x20the\x20document','_stopPresenting','propertyIsEnumerable','use','_sharedOperations','_collabSession','univerjs-icon\x20univerjs-icon-','LIVESHARE_OPERATION','presenting','trim','subscribe','next','OFFLINE','mutations','children','_handleOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','values','evenodd','_reporters','disposeWithMe','134pknacZ','1em','event$','concat','registerSharedOperation','delete','not-following','684730RbGSvS','text','http://www.w3.org/2000/svg','current','substring','clear','url(#$1','getTypeOfUnitAdded$','defIds','_uiPartsService','20250hKPpCu','entries','_status$','registerComponent','tag','none','getInitialStates','then','function','114LfraSY','displayName','assign','currentColor','getTypeOfUnitDisposed$','defineProperty','_injector','_configService','LIVESHARE_FETCH_OPERATIONS','map','3522632lkOwvs','Start','6600540VmDRYr','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','set','32493wDhdvG','getUnitId','UNIVER_SHEET','pipe','onStarting','icon','Present\x20this\x20document','tryStartPresenting','sheet','data','_startFollowing','getMemberID','extend','_handleNewHost','getLiveShareCoordinator','_handleOnline','LIVESHARE_NEW_HOST','_mountLiveShare','_entities','memberID','LIVESHARE_REQUEST_HOST','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','0\x200\x2017\x2017','symbol','univer-size-4','_startLiveShareCoordinator','_config','startFollowing','hasOwnProperty','SAME_OPERATION_SHARE_INTERVAL','UNIVER_UNKNOWN','_init','FOLLOWING','indexOf','HEADER_MENU','getCurrentTypeOfUnit$','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'];_0x237f=function(){return _0x52d027;};return _0x237f();}let m=class extends _0xdfd2c9{constructor(_0x54836d,_0x56e546,_0x306dbe){var _0x14ed57=_0x36f017;super(),d(this,_0x14ed57(0x1f1),new Map()),(this[_0x14ed57(0x227)]=_0x54836d,this['_injector']=_0x56e546,this['_collabSessionService']=_0x306dbe,this[_0x14ed57(0x1fe)]());}async[_0x36f017(0x1ed)](_0x4c8b1a){var _0x2b5ff3=_0x36f017;return this[_0x2b5ff3(0x1f1)][_0x2b5ff3(0x223)](_0x4c8b1a)||await this[_0x2b5ff3(0x1f8)](_0x4c8b1a),this[_0x2b5ff3(0x1f1)][_0x2b5ff3(0x244)](_0x4c8b1a);}[_0x36f017(0x1fe)](){var _0x4d075c=_0x36f017;this[_0x4d075c(0x227)][_0x4d075c(0x1c4)](_0x3488c4['UNIVER_SHEET'])[_0x4d075c(0x1e2)](_0xc1bed8(this[_0x4d075c(0x24e)]))[_0x4d075c(0x260)](async _0x19b151=>{var _0x4ecd04=_0x4d075c;const _0x5b2b43=_0x19b151[_0x4ecd04(0x1e0)]();this[_0x4ecd04(0x1f1)][_0x4ecd04(0x223)](_0x5b2b43)||this[_0x4ecd04(0x1f8)](_0x5b2b43);}),this['_univerInstanceService'][_0x4d075c(0x1d4)](_0x3488c4[_0x4d075c(0x1e1)])[_0x4d075c(0x1e2)](_0xc1bed8(this[_0x4d075c(0x24e)]))[_0x4d075c(0x260)](_0x22d5f7=>{var _0x58a968=_0x4d075c;const _0x169255=_0x22d5f7[_0x58a968(0x1e0)](),_0x3fe5bd=this[_0x58a968(0x1f1)][_0x58a968(0x244)](_0x169255);_0x3fe5bd==null||_0x3fe5bd[_0x58a968(0x228)]();});}async[_0x36f017(0x1f8)](_0xdb4d1b){var _0x1d039c=_0x36f017;const _0x17fcda=await this['_collabSessionService']['requireSession'](_0xdb4d1b),_0x11cf26=this[_0x1d039c(0x1d6)]['createInstance'](C,_0xdb4d1b,_0x17fcda);return _0x11cf26[_0x1d039c(0x20f)](),this[_0x1d039c(0x1f1)][_0x1d039c(0x1de)](_0xdb4d1b,_0x11cf26),_0x11cf26;}};m=Z([f(0x0,_0x3f3fb4),f(0x1,_0x3b82a6(_0x11e997)),f(0x2,_0x3b82a6(_0x28485c))],m);var h=(_0x26ccc0=>(_0x26ccc0[_0x36f017(0x262)]='offline',_0x26ccc0[_0x36f017(0x209)]=_0x36f017(0x23e),_0x26ccc0[_0x36f017(0x1ff)]=_0x36f017(0x24a),_0x26ccc0[_0x36f017(0x236)]=_0x36f017(0x1bc),_0x26ccc0['PRESENTING']=_0x36f017(0x25e),_0x26ccc0))(h||{});const xe=_0x36f017(0x1fc),Le=0xc8;let C=class extends _0xdfd2c9{constructor(_0x4a4d2e,_0x2c1aa0,_0x1dfa73,_0x325da8,_0x14c4f4){var _0x1e1eb5=_0x36f017;super(),d(this,_0x1e1eb5(0x1c9),new _0x34eac5(_0x1e1eb5(0x23e))),d(this,_0x1e1eb5(0x253),this[_0x1e1eb5(0x1c9)][_0x1e1eb5(0x234)]()),d(this,'_init',!0x1),d(this,_0x1e1eb5(0x237),null),d(this,_0x1e1eb5(0x21a),null),(this['_unitID']=_0x4a4d2e,this[_0x1e1eb5(0x25b)]=_0x2c1aa0,this[_0x1e1eb5(0x1d7)]=_0x1dfa73,this[_0x1e1eb5(0x21c)]=_0x325da8,this[_0x1e1eb5(0x230)]=_0x14c4f4);}get[_0x36f017(0x246)](){return this['_status$']['getValue']();}['dispose'](){var _0x27192a=_0x36f017,_0x4c5a36;(_0x4c5a36=this[_0x27192a(0x237)])==null||_0x4c5a36[_0x27192a(0x228)](),this[_0x27192a(0x1c9)][_0x27192a(0x261)](_0x27192a(0x23e)),this[_0x27192a(0x1c9)][_0x27192a(0x24b)]();}[_0x36f017(0x20f)](){var _0x1e040b=_0x36f017;this[_0x1e040b(0x1fe)]||(this['_init']=!0x0,this['_collabSession']['sessionStatus$']['pipe'](_0xc1bed8(this[_0x1e040b(0x24e)]))[_0x1e040b(0x260)](_0x4f4e4c=>{var _0x443822=_0x1e040b;switch(_0x4f4e4c){case _0x593165[_0x443822(0x262)]:this['_handleOffline']();break;case _0x593165[_0x443822(0x206)]:this[_0x443822(0x1ee)]();break;}}),this['_collabSession'][_0x1e040b(0x1b8)][_0x1e040b(0x1e2)](_0xc1bed8(this[_0x1e040b(0x24e)]))['subscribe'](_0x177773=>{var _0x42f088=_0x1e040b;const {eventID:_0x4323e4}=_0x177773;switch(_0x4323e4){case _0x33da1b[_0x42f088(0x1ef)]:this[_0x42f088(0x1ec)](_0x177773);break;case _0x33da1b[_0x42f088(0x25d)]:this['_handleOperation'](_0x177773);break;case _0x33da1b[_0x42f088(0x250)]:this[_0x42f088(0x243)]();break;case _0x33da1b[_0x42f088(0x242)]:this[_0x42f088(0x20e)](_0x177773);break;}}));}['tryStartPresenting'](){var _0x2471d2=_0x36f017;this[_0x2471d2(0x25b)][_0x2471d2(0x22f)]({'eventID':_0x33da1b[_0x2471d2(0x1f3)],'data':{'unitID':this[_0x2471d2(0x216)],'userID':this[_0x2471d2(0x25b)][_0x2471d2(0x1ea)]()}},this[_0x2471d2(0x216)]);}[_0x36f017(0x24d)](){var _0x1238ee=_0x36f017;this[_0x1238ee(0x246)]===_0x1238ee(0x25e)&&(this['_status$'][_0x1238ee(0x261)](_0x1238ee(0x23e)),this[_0x1238ee(0x25b)][_0x1238ee(0x22f)]({'eventID':_0x33da1b['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x1238ee(0x216)]}},this[_0x1238ee(0x216)]));}[_0x36f017(0x1fa)](){var _0x46066f=_0x36f017;this[_0x46066f(0x246)]===_0x46066f(0x1bc)&&(this[_0x46066f(0x1c9)]['next']('following'),this['_startFollowing']());}['stopFollowing'](){var _0x493f87=_0x36f017;this[_0x493f87(0x246)]===_0x493f87(0x24a)&&this[_0x493f87(0x24f)]();}['_handleNewHost'](_0x1d1022){var _0x21e974=_0x36f017;const {presenter:_0x588e21}=_0x1d1022[_0x21e974(0x1e8)],_0x3114ad=this[_0x21e974(0x25b)][_0x21e974(0x1ea)]();this[_0x21e974(0x21a)]=_0x588e21,_0x588e21===_0x3114ad?(this[_0x21e974(0x24f)](),this['_startPresenting']()):this[_0x21e974(0x246)]!=='not-following'&&(this[_0x21e974(0x257)](),this['_startFollowing']());}['_fetchOperations'](){var _0xb4962b=_0x36f017;const _0x4eb71a={'eventID':_0x33da1b[_0xb4962b(0x1d8)]};this[_0xb4962b(0x25b)][_0xb4962b(0x22f)](_0x4eb71a,this[_0xb4962b(0x216)]);}[_0x36f017(0x243)](){var _0x1a391e=_0x36f017;this['_presenter']=null,this['_status']!==_0x1a391e(0x25e)&&this[_0x1a391e(0x212)]();}[_0x36f017(0x20e)](_0x33a4c8){var _0x2b0abf=_0x36f017;if(this[_0x2b0abf(0x246)]===_0x2b0abf(0x24a)&&this[_0x2b0abf(0x21a)]===_0x33a4c8['data'][_0x2b0abf(0x1f2)]){const _0x147bd7=_0x35401c(_0x33a4c8[_0x2b0abf(0x1e8)])[_0x2b0abf(0x263)]['reverse']()['find'](_0x4e130c=>_0x4e130c['id']===_0xdd3b8d['id']);if(_0x147bd7){const _0x159c1a=_0x147bd7['params'][_0x2b0abf(0x21d)],_0xd73be7=_0x147bd7[_0x2b0abf(0x22b)][_0x2b0abf(0x1e7)]['id'];setTimeout(()=>{var _0x4abac8=_0x2b0abf;this[_0x4abac8(0x230)][_0x4abac8(0x224)](_0x541ec2['id'],{'unitId':_0x159c1a,'subUnitId':_0xd73be7},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x5f92b2=_0x36f017;this[_0x5f92b2(0x1c9)]['next'](_0x5f92b2(0x25e));const _0x7c7424=new Map(),_0x587980=this[_0x5f92b2(0x237)]=new _0x432129();_0x587980['add'](_0x363c38(()=>{var _0x9e7eda=_0x5f92b2;_0x7c7424['forEach'](_0x38f085=>_0x38f085[_0x9e7eda(0x24b)]()),_0x7c7424[_0x9e7eda(0x1c2)]();})),_0x587980['add'](this[_0x5f92b2(0x230)][_0x5f92b2(0x214)](_0x273122=>{var _0x421400=_0x5f92b2,_0x1bf6e5;if(_0x273122[_0x421400(0x207)]!==_0x55283a[_0x421400(0x21b)]||!this[_0x421400(0x21c)][_0x421400(0x23b)](_0x273122['id']))return;const {id:_0x1dbf36}=_0x273122;let _0x1867d9;_0x7c7424[_0x421400(0x223)](_0x1dbf36)?_0x1867d9=_0x7c7424[_0x421400(0x244)](_0x1dbf36):(_0x1867d9=new _0x9375f3(),_0x7c7424[_0x421400(0x1de)](_0x1dbf36,_0x1867d9),_0x1867d9['pipe'](_0x4b7434((_0x1bf6e5=this['_configService']['getConfig'](xe))!=null?_0x1bf6e5:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x421400(0x260)](_0x2796c9=>{var _0x2fa187=_0x421400;this[_0x2fa187(0x25b)][_0x2fa187(0x22f)]({'eventID':_0x33da1b['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2fa187(0x216)],'operations':{[_0x2796c9['id']]:{'id':_0x2796c9['id'],'params':JSON[_0x2fa187(0x225)](_0x2796c9['params'])}}}},this[_0x2fa187(0x216)]);})),_0x1867d9[_0x421400(0x261)](_0x273122);})),this['_liveShareService'][_0x5f92b2(0x1cd)](this['_unitID'])[_0x5f92b2(0x22a)](_0x5c3aa3=>this[_0x5f92b2(0x25b)]['send']({'eventID':_0x33da1b[_0x5f92b2(0x25d)],'data':{'unitID':this[_0x5f92b2(0x216)],'operations':{[_0x5c3aa3['id']]:{'id':_0x5c3aa3['id'],'params':JSON[_0x5f92b2(0x225)](_0x5c3aa3[_0x5f92b2(0x22b)])}}}},this[_0x5f92b2(0x216)]));}[_0x36f017(0x257)](){var _0x538659=_0x36f017,_0x338918;this[_0x538659(0x1c9)][_0x538659(0x261)](_0x538659(0x23e)),(_0x338918=this[_0x538659(0x237)])==null||_0x338918[_0x538659(0x228)](),this['_commandDisposable']=null;}[_0x36f017(0x1e9)](){var _0x318f74=_0x36f017,_0x520939;(_0x520939=this['_commandDisposable'])==null||_0x520939[_0x318f74(0x228)](),this[_0x318f74(0x1c9)][_0x318f74(0x261)](_0x318f74(0x24a));}[_0x36f017(0x212)](){var _0x4088bd=_0x36f017,_0x307b78;this[_0x4088bd(0x1c9)][_0x4088bd(0x261)](_0x4088bd(0x23e)),(_0x307b78=this[_0x4088bd(0x237)])==null||_0x307b78[_0x4088bd(0x228)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x5dd3ee=_0x36f017,_0x3062cd;this['_status$'][_0x5dd3ee(0x261)]('not-following'),(_0x3062cd=this[_0x5dd3ee(0x237)])==null||_0x3062cd[_0x5dd3ee(0x228)]();}[_0x36f017(0x265)](_0x229996){var _0x8aa3b=_0x36f017;if([_0x8aa3b(0x25e),_0x8aa3b(0x1bc),_0x8aa3b(0x24c)][_0x8aa3b(0x21e)](this[_0x8aa3b(0x246)])||!_0x229996[_0x8aa3b(0x1e8)][_0x8aa3b(0x204)]||_0x229996['data'][_0x8aa3b(0x204)]===this['_collabSession'][_0x8aa3b(0x1ea)]())return;this['_status']===_0x8aa3b(0x23e)&&this[_0x8aa3b(0x1e9)]();const _0x26b22a=_0x229996['data']['operations'];Object[_0x8aa3b(0x267)](_0x26b22a)[_0x8aa3b(0x22a)](_0x41b2e5=>{var _0x58138c=_0x8aa3b;this[_0x58138c(0x230)][_0x58138c(0x224)](_0x41b2e5['id'],_0x41b2e5['params']?JSON[_0x58138c(0x226)](_0x41b2e5[_0x58138c(0x22b)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x674581=_0x36f017,_0x1c721b;this[_0x674581(0x1c9)]['next'](_0x674581(0x24c)),(_0x1c721b=this[_0x674581(0x237)])==null||_0x1c721b[_0x674581(0x228)]();}[_0x36f017(0x1ee)](){var _0x2e3b5c=_0x36f017;this[_0x2e3b5c(0x1c9)][_0x2e3b5c(0x261)](_0x2e3b5c(0x23e)),this[_0x2e3b5c(0x233)]();}};function _0xde17(_0x321364,_0x57333e){var _0x237f96=_0x237f();return _0xde17=function(_0xde17d,_0xf28e72){_0xde17d=_0xde17d-0x1b7;var _0x4406a2=_0x237f96[_0xde17d];return _0x4406a2;},_0xde17(_0x321364,_0x57333e);}C=Z([f(0x2,_0x2ade0c),f(0x3,_0x3b82a6(L)),f(0x4,_0x5b1a08)],C);function ye(){var _0x49446f=_0x36f017;const _0x7597a9=_0x57a76c(m),_0x3a5aaf=_0x57a76c(_0x3f3fb4),_0x413b7a=_0x28c88f(()=>_0x3a5aaf[_0x49446f(0x202)](_0x3488c4[_0x49446f(0x1e1)]),void 0x0,!0x1,[]),[_0x47c4c7,_0x1922a1]=_0x49d219(null),[_0x15d68f,_0x1e6260]=_0x49d219(h[_0x49446f(0x209)]),_0x1bf422=_0xeec105(null);return _0x2e558b(()=>(_0x413b7a&&_0x7597a9[_0x49446f(0x1ed)](_0x413b7a['getUnitId']())[_0x49446f(0x1ce)](_0x1e8e88=>{var _0x25ecbf=_0x49446f;_0x1922a1(_0x1e8e88),_0x1bf422[_0x25ecbf(0x1c0)]=_0x1e8e88[_0x25ecbf(0x253)]['subscribe'](_0x24b5e2=>{_0x1e6260(_0x24b5e2);});}),()=>{var _0xebf658=_0x49446f,_0x30f78b;(_0x30f78b=_0x1bf422[_0xebf658(0x1c0)])==null||_0x30f78b['unsubscribe'](),_0x1bf422[_0xebf658(0x1c0)]=null;}),[_0x413b7a,_0x7597a9]),_0x47c4c7?_0x36e838(_0x1eee21,{'align':_0x49446f(0x222),'disabled':_0x15d68f===h[_0x49446f(0x262)],'className':_0x49446f(0x1dd),'overlay':_0x36e838(Re,{'status':_0x15d68f,'coordinator':_0x47c4c7}),'children':_0x36e838(_0x49446f(0x20a),{'className':_0x28accc(_0x49446f(0x1f4),{'univer-cursor-not-allowed':_0x15d68f===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x15d68f!==h['OFFLINE']}),'type':'button','children':_0x36e838(B,{'className':_0x49446f(0x1f7)})})}):null;}function Re(_0x142e45){var _0x1f880a=_0x36f017;const {status:_0x3626be,coordinator:_0x1fcb92}=_0x142e45;switch(_0x3626be){case h['IDLE']:return _0x36e838(Pe,{'coordinator':_0x1fcb92});case h[_0x1f880a(0x1ff)]:return _0x36e838(Ae,{'coordinator':_0x1fcb92});case h[_0x1f880a(0x236)]:return _0x36e838(Te,{'coordinator':_0x1fcb92});case h[_0x1f880a(0x262)]:return _0x36e838(Fe,{});case h[_0x1f880a(0x208)]:return _0x36e838($e,{'coordinator':_0x1fcb92});default:return null;}}function Pe(_0x4fab17){var _0x49e46f=_0x36f017;const {coordinator:_0x2cdd39}=_0x4fab17;return _0x5ddc08(_0x10e248,{'children':[_0x36e838('div',{'className':_0x49e46f(0x266),'children':_0x49e46f(0x1e5)}),_0x36e838(_0x564e8c,{'onClick':()=>_0x2cdd39[_0x49e46f(0x1e6)](),'children':_0x49e46f(0x1db)})]});}function Ae(_0x89f442){var _0x2170e4=_0x36f017;const {coordinator:_0x48390b}=_0x89f442;return _0x5ddc08(_0x10e248,{'children':[_0x36e838(_0x2170e4(0x23a),{'className':_0x2170e4(0x266),'children':_0x2170e4(0x235)}),_0x36e838(_0x564e8c,{'onClick':()=>_0x48390b['stopFollowing'](),'children':_0x2170e4(0x20d)})]});}function Te(_0x29f184){var _0x2d6a4a=_0x36f017;const {coordinator:_0x1b70a0}=_0x29f184;return _0x5ddc08(_0x10e248,{'children':[_0x36e838(_0x2d6a4a(0x23a),{'className':_0x2d6a4a(0x266),'children':_0x2d6a4a(0x239)}),_0x36e838(_0x564e8c,{'variant':_0x2d6a4a(0x1be),'onClick':()=>_0x1b70a0[_0x2d6a4a(0x1fa)](),'children':'Start\x20following'})]});}function $e(_0x47991e){var _0x4a4bdb=_0x36f017;const {coordinator:_0x1e5ec1}=_0x47991e;return _0x5ddc08(_0x10e248,{'children':[_0x36e838(_0x4a4bdb(0x23a),{'className':_0x4a4bdb(0x266),'children':_0x4a4bdb(0x256)}),_0x36e838(_0x564e8c,{'variant':_0x4a4bdb(0x219),'onClick':()=>_0x1e5ec1[_0x4a4bdb(0x24d)](),'children':_0x4a4bdb(0x238)})]});}function Fe(){var _0x5685cf=_0x36f017;return _0x36e838(_0x10e248,{'children':_0x5685cf(0x22d)});}var He=Object[_0x36f017(0x20c)],je=(_0x564edb,_0x4c8839,_0x2db3c0,_0x5bff78)=>{for(var _0x4491a2=_0x5bff78>0x1?void 0x0:_0x5bff78?He(_0x4c8839,_0x2db3c0):_0x4c8839,_0x30d74a=_0x564edb['length']-0x1,_0x349018;_0x30d74a>=0x0;_0x30d74a--)(_0x349018=_0x564edb[_0x30d74a])&&(_0x4491a2=_0x349018(_0x4491a2)||_0x4491a2);return _0x4491a2;},T=(_0x4ee606,_0x55ee6c)=>(_0x5f022d,_0x2e0e92)=>_0x55ee6c(_0x5f022d,_0x2e0e92,_0x4ee606);let I=class extends _0x1921d4{constructor(_0x3f9f5f,_0x2c7932){var _0x13c02f=_0x36f017;super(),this[_0x13c02f(0x1d6)]=_0x3f9f5f,this[_0x13c02f(0x1c6)]=_0x2c7932,this[_0x13c02f(0x1f0)]();}[_0x36f017(0x1f0)](){var _0x3f47ee=_0x36f017;this['disposeWithMe'](this[_0x3f47ee(0x1c6)][_0x3f47ee(0x1ca)](_0x4db87a[_0x3f47ee(0x201)],()=>_0x518bf9(ye,this[_0x3f47ee(0x1d6)])));}};I=je([T(0x0,_0x3b82a6(_0x11e997)),T(0x1,_0x3c6a2e)],I);const Ue=_0x36f017(0x215),$={};var Ve=Object['getOwnPropertyDescriptor'],Me=(_0x514688,_0x36d2be,_0x4223c8,_0x540ba4)=>{var _0xdb5efb=_0x36f017;for(var _0x4e489a=_0x540ba4>0x1?void 0x0:_0x540ba4?Ve(_0x36d2be,_0x4223c8):_0x36d2be,_0x513e1f=_0x514688[_0xdb5efb(0x211)]-0x1,_0x4ca992;_0x513e1f>=0x0;_0x513e1f--)(_0x4ca992=_0x514688[_0x513e1f])&&(_0x4e489a=_0x4ca992(_0x4e489a)||_0x4e489a);return _0x4e489a;},ke=(_0x40b66d,_0xd0b1b9)=>(_0x4724d7,_0x10ed8d)=>_0xd0b1b9(_0x4724d7,_0x10ed8d,_0x40b66d);let b=class extends _0x1921d4{constructor(_0x25c18f){var _0x18875a=_0x36f017;super(),this[_0x18875a(0x21c)]=_0x25c18f,this['_init']();}['_init'](){[_0x17d0cb['id'],_0x43d03b['id'],_0x541ec2['id']]['forEach'](_0x9f46d7=>{var _0x21b0fa=_0xde17;this[_0x21b0fa(0x26a)](this[_0x21b0fa(0x21c)]['registerSharedOperation'](_0x9f46d7));});}};b=Me([ke(0x0,_0x3b82a6(L))],b);var Ge=Object[_0x36f017(0x1d5)],We=Object[_0x36f017(0x20c)],Ye=(_0x23d052,_0x18803a,_0x1ae5c9)=>_0x18803a in _0x23d052?Ge(_0x23d052,_0x18803a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ae5c9}):_0x23d052[_0x18803a]=_0x1ae5c9,Be=(_0xece216,_0x45f951,_0x59ab6f,_0x2b89ac)=>{var _0x27d4b4=_0x36f017;for(var _0x428ec4=_0x2b89ac>0x1?void 0x0:_0x2b89ac?We(_0x45f951,_0x59ab6f):_0x45f951,_0x100709=_0xece216[_0x27d4b4(0x211)]-0x1,_0x482983;_0x100709>=0x0;_0x100709--)(_0x482983=_0xece216[_0x100709])&&(_0x428ec4=_0x482983(_0x428ec4)||_0x428ec4);return _0x428ec4;},F=(_0x17dbcc,_0x15d582)=>(_0x5639c8,_0x4f64fe)=>_0x15d582(_0x5639c8,_0x4f64fe,_0x17dbcc),J=(_0x186778,_0x2e2554,_0x4cea52)=>Ye(_0x186778,typeof _0x2e2554!=_0x36f017(0x1f6)?_0x2e2554+'':_0x2e2554,_0x4cea52);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x1c42d2{constructor(_0x3a181e=$,_0x41e95f,_0xf09914){var _0x356bbe=_0x36f017;super(),this[_0x356bbe(0x1f9)]=_0x3a181e,this[_0x356bbe(0x1d6)]=_0x41e95f,this['_configService']=_0xf09914;const {..._0x531b46}=_0x3fdcd0({},$,this['_config']);this[_0x356bbe(0x1d7)][_0x356bbe(0x220)](Ue,_0x531b46);}[_0x36f017(0x1e3)](){var _0x170eda=_0x36f017;_0x29e73f(this['_injector'],_0x5e60eb([[L],[m],[b],[I]],this['_config'][_0x170eda(0x22c)])),_0x184d91(this[_0x170eda(0x1d6)],[[b]]);}[_0x36f017(0x229)](){var _0x4a7004=_0x36f017;_0x184d91(this[_0x4a7004(0x1d6)],[[I]]);}};J(O,_0x36f017(0x207),_0x3488c4[_0x36f017(0x1fd)]),J(O,_0x36f017(0x248),Ze),O=Be([_0x3c9495(_0x2e766a),F(0x1,_0x3b82a6(_0x11e997)),F(0x2,_0x2ade0c)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x20ffcd=_0x2eb9;(function(_0x2b75fc,_0x27b805){var _0x3d8cbe=_0x2eb9,_0x51e224=_0x2b75fc();while(!![]){try{var _0x3de8ba=parseInt(_0x3d8cbe(0xc1))/0x1*(parseInt(_0x3d8cbe(0xb3))/0x2)+-parseInt(_0x3d8cbe(0x124))/0x3*(-parseInt(_0x3d8cbe(0x131))/0x4)+-parseInt(_0x3d8cbe(0x91))/0x5+parseInt(_0x3d8cbe(0xf0))/0x6+-parseInt(_0x3d8cbe(0xc3))/0x7*(-parseInt(_0x3d8cbe(0xef))/0x8)+parseInt(_0x3d8cbe(0xd8))/0x9*(parseInt(_0x3d8cbe(0x116))/0xa)+-parseInt(_0x3d8cbe(0xa6))/0xb*(parseInt(_0x3d8cbe(0x12e))/0xc);if(_0x3de8ba===_0x27b805)break;else _0x51e224['push'](_0x51e224['shift']());}catch(_0x251c97){_0x51e224['push'](_0x51e224['shift']());}}}(_0x9300,0x4beb2));var q=Object[_0x20ffcd(0x121)],z=(_0x36d883,_0x37b2e7,_0x1d3ce6)=>_0x37b2e7 in _0x36d883?q(_0x36d883,_0x37b2e7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d3ce6}):_0x36d883[_0x37b2e7]=_0x1d3ce6,d=(_0x2a1788,_0x4628c7,_0x1b4fc7)=>z(_0x2a1788,typeof _0x4628c7!=_0x20ffcd(0x12f)?_0x4628c7+'':_0x4628c7,_0x1b4fc7);import{Disposable as _0x539b1d,toDisposable as _0x6f4b16,IUniverInstanceService as _0x43cc96,Inject as _0x42b534,Injector as _0x59a932,IConfigService as _0x54be48,ICommandService as _0x53f3c0,RxDisposable as _0x483a0a,UniverInstanceType as _0x38c32e,DisposableCollection as _0x1c0ac7,CommandType as _0x406405,DependentOn as _0x50aa05,Plugin as _0x574128,merge as _0x78447b,registerDependencies as _0x3e2832,mergeOverrideWithDependencies as _0x360b36,touchDependencies as _0x5b4f9e}from'@univerjs/core';import{useDependency as _0x26c555,useObservable as _0x45febd,IUIPartsService as _0x4f299e,BuiltInUIPart as _0x1b50ea,connectInjector as _0x5bf79f}from'@univerjs/ui';function _0x9300(){var _0x23791d=['http://www.w3.org/2000/svg','type','current','_presenter','event$','next','createInstance','_injector','97176KcQeIh','3568134HIkJGi','_beIdle','idSuffix','PRESENTING','params','children','onCommandExecuted','length','send','LIVESHARE_OPERATION','init','className','getInitialStates','onRendered','entries','_status','fill','defIds','status$','values','_status$','_sharedOperations','unitId','subscribe','_collabSessionService','_startFollowing','_handleOnline','Stop\x20following','string','hasOwnProperty','has','icon','_handleOperation','operations','ONLINE','includes','live-share-icon','_univerInstanceService','131320zMqAaY','UNIVER_SHEET','onStarting','registerSharedOperation','_reporters','sheet','reverse','text','getMemberID','_uiPartsService','startFollowing','defineProperty','path','_startPresenting','474795KuCpja','propertyIsEnumerable','extend','UNIVER_UNKNOWN','indexOf','presenter','univer-mb-3\x20univer-w-full\x20univer-text-sm','map','setConfig','_handleOffline','24jqwAfF','symbol','Start','12wFKvpI','_entities','FOLLOWING','univerjs-icon\x20univerjs-icon-','stopFollowing','LIVESHARE_FETCH_OPERATIONS','from','data','_fetchOperations','override','getValue','_config','tryStartPresenting','toString','unsubscribe','_liveShareService','_handleNewChangeSets','You\x27re\x20presenting\x20the\x20document','concat','currentColor','dispose','1422970oPwGrh','_commandService','offline','none','You\x27are\x20offline.','idle','UniverIcon','_unitID','add','You\x27re\x20not\x20following\x20the\x20presenter','following','getCurrentTypeOfUnit$','_commandDisposable','getOwnPropertySymbols','apply','getTypeOfUnitAdded$','shouldShareOperation','requireSession','disposeWithMe','live-share.config','evenodd','6671423BhVXNS','presenting','registerInitialStateReporter','LIVESHARE_REQUEST_HOST','getUnitId','_configService','LIVESHARE_TERMINATE','You\x27re\x20following\x20the\x20presenter','defs','getTypeOfUnitDisposed$','forEach','NOT_FOLLOWING','assign','2ZxhInW','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','Present\x20this\x20document','call','dispose$','set','NEW_CHANGESETS','_mountLiveShare','executeCommand','div','memberID','delete','_stopPresenting','not-following','203605TvScnc','stopPresenting','301MPArvr','getConfig','prototype','getOwnPropertyDescriptor','colorChannel1','_startLiveShareCoordinator','mutations','_handleTerminate','find','IDLE','_init','displayName','_stopFollowing','mask','LiveShareIcon','svg','default','xlink:href','registerComponent','SAME_OPERATION_SHARE_INTERVAL','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','9XvnfAd','clear','attrs','use','pipe','OFFLINE','url(#$1','stringify','button','tag','getLiveShareCoordinator','_collabSession','_handleNewHost','replace','get'];_0x9300=function(){return _0x23791d;};return _0x9300();}import{jsx as _0x157b9a,jsxs as _0x473891,Fragment as _0x55b1a3}from'react/jsx-runtime';import{Dropdown as _0xb7599b,clsx as _0x400561,Button as _0x28c9ca}from'@univerjs/design';import{forwardRef as _0x7a472b,useRef as _0x4928e4,createElement as _0x23f67a,useState as _0x3d360d,useEffect as _0x752798}from'react';import{CollaborationEvent as _0x2abc7e,parseProtocolChangeset as _0x5d4330}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x4f9f70,SessionStatus as _0x1cf2a1,UniverCollaborationClientPlugin as _0x2f65a8}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3240f5,SetWorksheetActiveOperation as _0x208319}from'@univerjs/sheets';import{BehaviorSubject as _0x1e4a81,Subject as _0x396bc7}from'rxjs';import{takeUntil as _0x5b2945,throttleTime as _0x5c2331}from'rxjs/operators';import{SetZoomRatioOperation as _0x5deda2,SetScrollOperation as _0x5abaaa}from'@univerjs/sheets-ui';var c=function(){var _0xf16334=_0x20ffcd;return c=Object[_0xf16334(0xb2)]||function(_0x5eb54e){var _0x33d02a=_0xf16334;for(var _0x3a9f7b,_0x4af609=0x1,_0x9e4e20=arguments[_0x33d02a(0xf7)];_0x4af609<_0x9e4e20;_0x4af609++){_0x3a9f7b=arguments[_0x4af609];for(var _0x24a116 in _0x3a9f7b)Object[_0x33d02a(0xc5)]['hasOwnProperty'][_0x33d02a(0xb6)](_0x3a9f7b,_0x24a116)&&(_0x5eb54e[_0x24a116]=_0x3a9f7b[_0x24a116]);}return _0x5eb54e;},c[_0xf16334(0x9f)](this,arguments);},Oe=function(_0x3942af,_0x4422c1){var _0xe8340f=_0x20ffcd,_0x4d91ae={};for(var _0x481cf8 in _0x3942af)Object['prototype'][_0xe8340f(0x10d)]['call'](_0x3942af,_0x481cf8)&&_0x4422c1[_0xe8340f(0x128)](_0x481cf8)<0x0&&(_0x4d91ae[_0x481cf8]=_0x3942af[_0x481cf8]);if(_0x3942af!=null&&typeof Object[_0xe8340f(0x9e)]=='function'){for(var _0x36f605=0x0,_0x481cf8=Object['getOwnPropertySymbols'](_0x3942af);_0x36f605<_0x481cf8['length'];_0x36f605++)_0x4422c1['indexOf'](_0x481cf8[_0x36f605])<0x0&&Object[_0xe8340f(0xc5)][_0xe8340f(0x125)][_0xe8340f(0xb6)](_0x3942af,_0x481cf8[_0x36f605])&&(_0x4d91ae[_0x481cf8[_0x36f605]]=_0x3942af[_0x481cf8[_0x36f605]]);}return _0x4d91ae;},W=_0x7a472b(function(_0x20cb53,_0x8e1fe0){var _0x10ac0b=_0x20ffcd,_0x1b2cce=_0x20cb53['icon'],_0x9d6e3e=_0x20cb53['id'],_0x473ed6=_0x20cb53[_0x10ac0b(0xfb)],_0x290904=_0x20cb53[_0x10ac0b(0x126)],_0x4fa4f4=Oe(_0x20cb53,[_0x10ac0b(0x10f),'id',_0x10ac0b(0xfb),'extend']),_0x260855=_0x10ac0b(0x134)[_0x10ac0b(0x8e)](_0x9d6e3e,'\x20')[_0x10ac0b(0x8e)](_0x473ed6||'')['trim'](),_0x418b50=_0x4928e4('_'[_0x10ac0b(0x8e)](Ne()));return Y(_0x1b2cce,''[_0x10ac0b(0x8e)](_0x9d6e3e),{'defIds':_0x1b2cce[_0x10ac0b(0x101)],'idSuffix':_0x418b50['current']},c({'ref':_0x8e1fe0,'className':_0x260855},_0x4fa4f4),_0x290904);});function Y(_0x4332a8,_0x53ab35,_0xacdba,_0x1444da,_0x19d1da){var _0x54b9c9=_0x20ffcd;return _0x23f67a(_0x4332a8[_0x54b9c9(0xe1)],c(c({'key':_0x53ab35},Ee(_0x4332a8,_0xacdba,_0x19d1da)),_0x1444da),(we(_0x4332a8,_0xacdba)[_0x54b9c9(0xf5)]||[])[_0x54b9c9(0x12b)](function(_0x176e99,_0x210eb2){var _0x1c88de=_0x54b9c9;return Y(_0x176e99,''['concat'](_0x53ab35,'-')['concat'](_0x4332a8['tag'],'-')[_0x1c88de(0x8e)](_0x210eb2),_0xacdba,void 0x0,_0x19d1da);}));}function Ee(_0x8203fc,_0x232873,_0x146f8e){var _0x320c35=_0x20ffcd,_0x132089=c({},_0x8203fc['attrs']);_0x146f8e!=null&&_0x146f8e['colorChannel1']&&_0x132089[_0x320c35(0x100)]===_0x320c35(0xc7)&&(_0x132089[_0x320c35(0x100)]=_0x146f8e[_0x320c35(0xc7)]),_0x8203fc[_0x320c35(0xe1)]==='mask'&&_0x132089['id']&&(_0x132089['id']=_0x132089['id']+_0x232873[_0x320c35(0xf2)]),Object['entries'](_0x132089)[_0x320c35(0xb0)](function(_0x4bd1a8){var _0x4ca582=_0x320c35,_0x1ef676=_0x4bd1a8[0x0],_0x2068e0=_0x4bd1a8[0x1];_0x1ef676===_0x4ca582(0xd0)&&typeof _0x2068e0==_0x4ca582(0x10c)&&(_0x132089[_0x1ef676]=_0x2068e0[_0x4ca582(0xe5)](/url\(#(.*)\)/,_0x4ca582(0xde)['concat'](_0x232873[_0x4ca582(0xf2)],')')));});var _0x4f0b36=_0x232873[_0x320c35(0x101)];return!_0x4f0b36||_0x4f0b36[_0x320c35(0xf7)]===0x0||(_0x8203fc[_0x320c35(0xe1)]===_0x320c35(0xdb)&&_0x132089[_0x320c35(0xd4)]&&(_0x132089[_0x320c35(0xd4)]=_0x132089[_0x320c35(0xd4)]+_0x232873[_0x320c35(0xf2)]),Object[_0x320c35(0xfe)](_0x132089)['forEach'](function(_0x2a0c26){var _0x3f65b4=_0x320c35,_0x4983e2=_0x2a0c26[0x0],_0x39ddfc=_0x2a0c26[0x1];typeof _0x39ddfc=='string'&&(_0x132089[_0x4983e2]=_0x39ddfc[_0x3f65b4(0xe5)](/url\(#(.*)\)/,_0x3f65b4(0xde)[_0x3f65b4(0x8e)](_0x232873['idSuffix'],')')));})),_0x132089;}function we(_0x1b0d58,_0x1002f7){var _0x43d901=_0x20ffcd,_0x123073,_0x2e0fae=_0x1002f7[_0x43d901(0x101)];return!_0x2e0fae||_0x2e0fae[_0x43d901(0xf7)]===0x0?_0x1b0d58:_0x1b0d58[_0x43d901(0xe1)]===_0x43d901(0xae)&&(!((_0x123073=_0x1b0d58[_0x43d901(0xf5)])===null||_0x123073===void 0x0)&&_0x123073[_0x43d901(0xf7)])?c(c({},_0x1b0d58),{'children':_0x1b0d58[_0x43d901(0xf5)][_0x43d901(0x12b)](function(_0x32f4b3){var _0x1df102=_0x43d901;return typeof _0x32f4b3['attrs']['id']==_0x1df102(0x10c)&&_0x2e0fae&&_0x2e0fae[_0x1df102(0x113)](_0x32f4b3['attrs']['id'])?c(c({},_0x32f4b3),{'attrs':c(c({},_0x32f4b3[_0x1df102(0xda)]),{'id':_0x32f4b3[_0x1df102(0xda)]['id']+_0x1002f7['idSuffix']})}):_0x32f4b3;})}):_0x1b0d58;}function Ne(){var _0x474e05=_0x20ffcd;return Math['random']()[_0x474e05(0x89)](0x24)['substring'](0x2,0x8);}W[_0x20ffcd(0xce)]=_0x20ffcd(0x97);var Ce={'tag':_0x20ffcd(0xd2),'attrs':{'xmlns':_0x20ffcd(0xe7),'fill':_0x20ffcd(0x94),'viewBox':'0\x200\x2017\x2017','width':'1em','height':'1em'},'children':[{'tag':_0x20ffcd(0x122),'attrs':{'fill':_0x20ffcd(0x8f),'d':_0x20ffcd(0xb4)}},{'tag':'path','attrs':{'fill':_0x20ffcd(0x8f),'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':_0x20ffcd(0xa5),'clipRule':_0x20ffcd(0xa5)}}]},B=_0x7a472b(function(_0x434678,_0x1f52f2){var _0x302b39=_0x20ffcd;return _0x23f67a(W,Object['assign']({},_0x434678,{'id':_0x302b39(0x114),'ref':_0x1f52f2,'icon':Ce}));});function _0x2eb9(_0x5dfbc0,_0x4ef128){var _0x9300a0=_0x9300();return _0x2eb9=function(_0x2eb90b,_0x2124eb){_0x2eb90b=_0x2eb90b-0x85;var _0x1c9c27=_0x9300a0[_0x2eb90b];return _0x1c9c27;},_0x2eb9(_0x5dfbc0,_0x4ef128);}B[_0x20ffcd(0xce)]=_0x20ffcd(0xd1);class L extends _0x539b1d{constructor(){var _0x35854c=_0x20ffcd;super(...arguments),d(this,_0x35854c(0x105),new Set()),d(this,_0x35854c(0x11a),new Set());}[_0x20ffcd(0x119)](_0x398132){var _0x448957=_0x20ffcd;return this[_0x448957(0x105)][_0x448957(0x99)](_0x398132),_0x6f4b16(()=>this[_0x448957(0x105)][_0x448957(0xbe)](_0x398132));}[_0x20ffcd(0xa8)](_0x5c8e56){var _0x39a15a=_0x20ffcd;return this[_0x39a15a(0x11a)][_0x39a15a(0x99)](_0x5c8e56),_0x6f4b16(()=>this[_0x39a15a(0x11a)]['delete'](_0x5c8e56));}[_0x20ffcd(0xa1)](_0xcd336b){var _0x4c4bbb=_0x20ffcd;return this['_sharedOperations'][_0x4c4bbb(0x10e)](_0xcd336b);}[_0x20ffcd(0xfc)](_0x3f02a8){var _0x31e215=_0x20ffcd;return Array[_0x31e215(0x137)](this[_0x31e215(0x11a)])[_0x31e215(0x12b)](_0x38ff09=>_0x38ff09(_0x3f02a8));}}var De=Object[_0x20ffcd(0xc6)],Z=(_0x2867b1,_0x11cd36,_0x2a2236,_0x45b7b0)=>{var _0x192486=_0x20ffcd;for(var _0x140dc1=_0x45b7b0>0x1?void 0x0:_0x45b7b0?De(_0x11cd36,_0x2a2236):_0x11cd36,_0x39601a=_0x2867b1[_0x192486(0xf7)]-0x1,_0x5975a7;_0x39601a>=0x0;_0x39601a--)(_0x5975a7=_0x2867b1[_0x39601a])&&(_0x140dc1=_0x5975a7(_0x140dc1)||_0x140dc1);return _0x140dc1;},f=(_0x309e57,_0x795664)=>(_0xe5c25a,_0x49b8d3)=>_0x795664(_0xe5c25a,_0x49b8d3,_0x309e57);let m=class extends _0x483a0a{constructor(_0x49be32,_0x1f22e6,_0x5d3ae9){var _0x45eb05=_0x20ffcd;super(),d(this,_0x45eb05(0x132),new Map()),(this[_0x45eb05(0x115)]=_0x49be32,this['_injector']=_0x1f22e6,this['_collabSessionService']=_0x5d3ae9,this[_0x45eb05(0xcd)]());}async[_0x20ffcd(0xe2)](_0x4fc6eb){var _0x493172=_0x20ffcd;return this[_0x493172(0x132)]['has'](_0x4fc6eb)||await this['_startLiveShareCoordinator'](_0x4fc6eb),this[_0x493172(0x132)]['get'](_0x4fc6eb);}[_0x20ffcd(0xcd)](){var _0x21acef=_0x20ffcd;this[_0x21acef(0x115)][_0x21acef(0xa0)](_0x38c32e[_0x21acef(0x117)])['pipe'](_0x5b2945(this[_0x21acef(0xb7)]))[_0x21acef(0x107)](async _0x4f9ae6=>{var _0x589536=_0x21acef;const _0x40b3fe=_0x4f9ae6[_0x589536(0xaa)]();this[_0x589536(0x132)][_0x589536(0x10e)](_0x40b3fe)||this[_0x589536(0xc8)](_0x40b3fe);}),this[_0x21acef(0x115)][_0x21acef(0xaf)](_0x38c32e[_0x21acef(0x117)])['pipe'](_0x5b2945(this[_0x21acef(0xb7)]))[_0x21acef(0x107)](_0x527482=>{var _0x1618de=_0x21acef;const _0x5b5dd1=_0x527482[_0x1618de(0xaa)](),_0xc9b338=this[_0x1618de(0x132)][_0x1618de(0xe6)](_0x5b5dd1);_0xc9b338==null||_0xc9b338[_0x1618de(0x90)]();});}async[_0x20ffcd(0xc8)](_0x5e6fa6){var _0x27b1a0=_0x20ffcd;const _0x1d6e57=await this[_0x27b1a0(0x108)][_0x27b1a0(0xa2)](_0x5e6fa6),_0x3823e4=this[_0x27b1a0(0xee)][_0x27b1a0(0xed)](C,_0x5e6fa6,_0x1d6e57);return _0x3823e4[_0x27b1a0(0xfa)](),this[_0x27b1a0(0x132)][_0x27b1a0(0xb8)](_0x5e6fa6,_0x3823e4),_0x3823e4;}};m=Z([f(0x0,_0x43cc96),f(0x1,_0x42b534(_0x59a932)),f(0x2,_0x42b534(_0x4f9f70))],m);var h=(_0x3dcbf5=>(_0x3dcbf5['OFFLINE']=_0x20ffcd(0x93),_0x3dcbf5[_0x20ffcd(0xcc)]=_0x20ffcd(0x96),_0x3dcbf5['FOLLOWING']=_0x20ffcd(0x9b),_0x3dcbf5['NOT_FOLLOWING']='not-following',_0x3dcbf5[_0x20ffcd(0xf3)]=_0x20ffcd(0xa7),_0x3dcbf5))(h||{});const xe=_0x20ffcd(0xd6),Le=0xc8;let C=class extends _0x483a0a{constructor(_0x309cbc,_0x4cabe9,_0x8e41c7,_0x4c01f4,_0x160d03){var _0x33d594=_0x20ffcd;super(),d(this,'_status$',new _0x1e4a81(_0x33d594(0x96))),d(this,_0x33d594(0x102),this['_status$']['asObservable']()),d(this,'_init',!0x1),d(this,_0x33d594(0x9d),null),d(this,_0x33d594(0xea),null),(this[_0x33d594(0x98)]=_0x309cbc,this[_0x33d594(0xe3)]=_0x4cabe9,this['_configService']=_0x8e41c7,this[_0x33d594(0x8b)]=_0x4c01f4,this[_0x33d594(0x92)]=_0x160d03);}get['_status'](){var _0xed1284=_0x20ffcd;return this[_0xed1284(0x104)][_0xed1284(0x86)]();}[_0x20ffcd(0x90)](){var _0xfeab79=_0x20ffcd,_0xe95d63;(_0xe95d63=this[_0xfeab79(0x9d)])==null||_0xe95d63[_0xfeab79(0x90)](),this[_0xfeab79(0x104)][_0xfeab79(0xec)](_0xfeab79(0x96)),this['_status$']['complete']();}['init'](){var _0x164c56=_0x20ffcd;this['_init']||(this['_init']=!0x0,this[_0x164c56(0xe3)]['sessionStatus$'][_0x164c56(0xdc)](_0x5b2945(this[_0x164c56(0xb7)]))[_0x164c56(0x107)](_0x4f2f8e=>{var _0x5ebdc3=_0x164c56;switch(_0x4f2f8e){case _0x1cf2a1['OFFLINE']:this[_0x5ebdc3(0x12d)]();break;case _0x1cf2a1[_0x5ebdc3(0x112)]:this[_0x5ebdc3(0x10a)]();break;}}),this[_0x164c56(0xe3)][_0x164c56(0xeb)][_0x164c56(0xdc)](_0x5b2945(this[_0x164c56(0xb7)]))[_0x164c56(0x107)](_0x582462=>{var _0x3aa487=_0x164c56;const {eventID:_0x57758a}=_0x582462;switch(_0x57758a){case _0x2abc7e['LIVESHARE_NEW_HOST']:this[_0x3aa487(0xe4)](_0x582462);break;case _0x2abc7e[_0x3aa487(0xf9)]:this['_handleOperation'](_0x582462);break;case _0x2abc7e[_0x3aa487(0xac)]:this[_0x3aa487(0xca)]();break;case _0x2abc7e[_0x3aa487(0xb9)]:this[_0x3aa487(0x8c)](_0x582462);break;}}));}[_0x20ffcd(0x88)](){var _0x4260bf=_0x20ffcd;this[_0x4260bf(0xe3)][_0x4260bf(0xf8)]({'eventID':_0x2abc7e[_0x4260bf(0xa9)],'data':{'unitID':this[_0x4260bf(0x98)],'userID':this['_collabSession'][_0x4260bf(0x11e)]()}},this['_unitID']);}[_0x20ffcd(0xc2)](){var _0x29cc31=_0x20ffcd;this[_0x29cc31(0xff)]==='presenting'&&(this[_0x29cc31(0x104)][_0x29cc31(0xec)]('idle'),this[_0x29cc31(0xe3)][_0x29cc31(0xf8)]({'eventID':_0x2abc7e[_0x29cc31(0xac)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x20ffcd(0x120)](){var _0x36dbf3=_0x20ffcd;this[_0x36dbf3(0xff)]===_0x36dbf3(0xc0)&&(this[_0x36dbf3(0x104)][_0x36dbf3(0xec)](_0x36dbf3(0x9b)),this[_0x36dbf3(0x109)]());}[_0x20ffcd(0x135)](){var _0x22cd64=_0x20ffcd;this[_0x22cd64(0xff)]===_0x22cd64(0x9b)&&this[_0x22cd64(0xcf)]();}[_0x20ffcd(0xe4)](_0x197f32){var _0x39a9b5=_0x20ffcd;const {presenter:_0x1c969e}=_0x197f32[_0x39a9b5(0x138)],_0x8702b3=this[_0x39a9b5(0xe3)][_0x39a9b5(0x11e)]();this[_0x39a9b5(0xea)]=_0x1c969e,_0x1c969e===_0x8702b3?(this[_0x39a9b5(0xcf)](),this[_0x39a9b5(0x123)]()):this[_0x39a9b5(0xff)]!==_0x39a9b5(0xc0)&&(this[_0x39a9b5(0xbf)](),this['_startFollowing']());}[_0x20ffcd(0x139)](){var _0x2b7ab1=_0x20ffcd;const _0x4aad35={'eventID':_0x2abc7e[_0x2b7ab1(0x136)]};this[_0x2b7ab1(0xe3)][_0x2b7ab1(0xf8)](_0x4aad35,this['_unitID']);}['_handleTerminate'](){var _0x338ba1=_0x20ffcd;this[_0x338ba1(0xea)]=null,this[_0x338ba1(0xff)]!=='presenting'&&this[_0x338ba1(0xf1)]();}[_0x20ffcd(0x8c)](_0x1e407d){var _0x15de91=_0x20ffcd;if(this[_0x15de91(0xff)]===_0x15de91(0x9b)&&this['_presenter']===_0x1e407d[_0x15de91(0x138)][_0x15de91(0xbd)]){const _0xb04db0=_0x5d4330(_0x1e407d[_0x15de91(0x138)])[_0x15de91(0xc9)][_0x15de91(0x11c)]()[_0x15de91(0xcb)](_0x1fc8b9=>_0x1fc8b9['id']===_0x3240f5['id']);if(_0xb04db0){const _0x2d5386=_0xb04db0[_0x15de91(0xf4)][_0x15de91(0x106)],_0x2e3c61=_0xb04db0[_0x15de91(0xf4)][_0x15de91(0x11b)]['id'];setTimeout(()=>{var _0x1ecf1b=_0x15de91;this[_0x1ecf1b(0x92)][_0x1ecf1b(0xbb)](_0x208319['id'],{'unitId':_0x2d5386,'subUnitId':_0x2e3c61},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0xc76bac=_0x20ffcd;this[_0xc76bac(0x104)]['next'](_0xc76bac(0xa7));const _0xd3dee4=new Map(),_0x529bd5=this[_0xc76bac(0x9d)]=new _0x1c0ac7();_0x529bd5[_0xc76bac(0x99)](_0x6f4b16(()=>{var _0xc4795=_0xc76bac;_0xd3dee4[_0xc4795(0xb0)](_0x26eca9=>_0x26eca9['complete']()),_0xd3dee4[_0xc4795(0xd9)]();})),_0x529bd5[_0xc76bac(0x99)](this[_0xc76bac(0x92)][_0xc76bac(0xf6)](_0xb0c0a3=>{var _0x3f4e5c=_0xc76bac,_0x23b1a6;if(_0xb0c0a3[_0x3f4e5c(0xe8)]!==_0x406405['OPERATION']||!this[_0x3f4e5c(0x8b)][_0x3f4e5c(0xa1)](_0xb0c0a3['id']))return;const {id:_0x1b43d1}=_0xb0c0a3;let _0x4d2385;_0xd3dee4['has'](_0x1b43d1)?_0x4d2385=_0xd3dee4[_0x3f4e5c(0xe6)](_0x1b43d1):(_0x4d2385=new _0x396bc7(),_0xd3dee4[_0x3f4e5c(0xb8)](_0x1b43d1,_0x4d2385),_0x4d2385[_0x3f4e5c(0xdc)](_0x5c2331((_0x23b1a6=this[_0x3f4e5c(0xab)][_0x3f4e5c(0xc4)](xe))!=null?_0x23b1a6:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3f4e5c(0x107)](_0x4d89d3=>{var _0x1a35b2=_0x3f4e5c;this[_0x1a35b2(0xe3)]['send']({'eventID':_0x2abc7e[_0x1a35b2(0xf9)],'data':{'unitID':this['_unitID'],'operations':{[_0x4d89d3['id']]:{'id':_0x4d89d3['id'],'params':JSON[_0x1a35b2(0xdf)](_0x4d89d3[_0x1a35b2(0xf4)])}}}},this[_0x1a35b2(0x98)]);})),_0x4d2385[_0x3f4e5c(0xec)](_0xb0c0a3);})),this['_liveShareService'][_0xc76bac(0xfc)](this[_0xc76bac(0x98)])[_0xc76bac(0xb0)](_0x128ef1=>this[_0xc76bac(0xe3)]['send']({'eventID':_0x2abc7e[_0xc76bac(0xf9)],'data':{'unitID':this['_unitID'],'operations':{[_0x128ef1['id']]:{'id':_0x128ef1['id'],'params':JSON['stringify'](_0x128ef1[_0xc76bac(0xf4)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x5ae72b=_0x20ffcd,_0x6ce1c7;this['_status$'][_0x5ae72b(0xec)](_0x5ae72b(0x96)),(_0x6ce1c7=this['_commandDisposable'])==null||_0x6ce1c7[_0x5ae72b(0x90)](),this[_0x5ae72b(0x9d)]=null;}['_startFollowing'](){var _0x5dbe43=_0x20ffcd,_0x501234;(_0x501234=this[_0x5dbe43(0x9d)])==null||_0x501234[_0x5dbe43(0x90)](),this[_0x5dbe43(0x104)][_0x5dbe43(0xec)](_0x5dbe43(0x9b));}[_0x20ffcd(0xf1)](){var _0x50f650=_0x20ffcd,_0xd6ff21;this['_status$'][_0x50f650(0xec)](_0x50f650(0x96)),(_0xd6ff21=this[_0x50f650(0x9d)])==null||_0xd6ff21['dispose'](),this[_0x50f650(0x9d)]=null;}[_0x20ffcd(0xcf)](){var _0xa90780=_0x20ffcd,_0x16663b;this['_status$'][_0xa90780(0xec)](_0xa90780(0xc0)),(_0x16663b=this[_0xa90780(0x9d)])==null||_0x16663b[_0xa90780(0x90)]();}[_0x20ffcd(0x110)](_0x2e7910){var _0x2eb80d=_0x20ffcd;if(['presenting',_0x2eb80d(0xc0),'offline'][_0x2eb80d(0x113)](this[_0x2eb80d(0xff)])||!_0x2e7910['data'][_0x2eb80d(0x129)]||_0x2e7910[_0x2eb80d(0x138)]['presenter']===this[_0x2eb80d(0xe3)]['getMemberID']())return;this[_0x2eb80d(0xff)]===_0x2eb80d(0x96)&&this[_0x2eb80d(0x109)]();const _0x260277=_0x2e7910['data'][_0x2eb80d(0x111)];Object[_0x2eb80d(0x103)](_0x260277)[_0x2eb80d(0xb0)](_0x3ac204=>{var _0x25c849=_0x2eb80d;this['_commandService']['executeCommand'](_0x3ac204['id'],_0x3ac204[_0x25c849(0xf4)]?JSON['parse'](_0x3ac204['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1754a8=_0x20ffcd,_0x1a8c5a;this[_0x1754a8(0x104)][_0x1754a8(0xec)](_0x1754a8(0x93)),(_0x1a8c5a=this[_0x1754a8(0x9d)])==null||_0x1a8c5a['dispose']();}[_0x20ffcd(0x10a)](){var _0x1dd754=_0x20ffcd;this[_0x1dd754(0x104)]['next'](_0x1dd754(0x96)),this['_fetchOperations']();}};C=Z([f(0x2,_0x54be48),f(0x3,_0x42b534(L)),f(0x4,_0x53f3c0)],C);function ye(){var _0x2885bf=_0x20ffcd;const _0x52abed=_0x26c555(m),_0x1eee02=_0x26c555(_0x43cc96),_0x1e7bdd=_0x45febd(()=>_0x1eee02[_0x2885bf(0x9c)](_0x38c32e['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0xb49b80,_0x3998c2]=_0x3d360d(null),[_0x552f57,_0x85b75a]=_0x3d360d(h[_0x2885bf(0xcc)]),_0x4a8976=_0x4928e4(null);return _0x752798(()=>(_0x1e7bdd&&_0x52abed[_0x2885bf(0xe2)](_0x1e7bdd[_0x2885bf(0xaa)]())['then'](_0x188a24=>{_0x3998c2(_0x188a24),_0x4a8976['current']=_0x188a24['status$']['subscribe'](_0x3a23f4=>{_0x85b75a(_0x3a23f4);});}),()=>{var _0x178ad4=_0x2885bf,_0x50dfb9;(_0x50dfb9=_0x4a8976['current'])==null||_0x50dfb9[_0x178ad4(0x8a)](),_0x4a8976[_0x178ad4(0xe9)]=null;}),[_0x1e7bdd,_0x52abed]),_0xb49b80?_0x157b9a(_0xb7599b,{'align':'end','disabled':_0x552f57===h[_0x2885bf(0xdd)],'className':_0x2885bf(0xd7),'overlay':_0x157b9a(Re,{'status':_0x552f57,'coordinator':_0xb49b80}),'children':_0x157b9a(_0x2885bf(0xe0),{'className':_0x400561('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x552f57===h[_0x2885bf(0xdd)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x552f57!==h['OFFLINE']}),'type':'button','children':_0x157b9a(B,{'className':'univer-size-4'})})}):null;}function Re(_0x1068e6){var _0x18633d=_0x20ffcd;const {status:_0x3a9292,coordinator:_0xc82d20}=_0x1068e6;switch(_0x3a9292){case h[_0x18633d(0xcc)]:return _0x157b9a(Pe,{'coordinator':_0xc82d20});case h[_0x18633d(0x133)]:return _0x157b9a(Ae,{'coordinator':_0xc82d20});case h[_0x18633d(0xb1)]:return _0x157b9a(Te,{'coordinator':_0xc82d20});case h[_0x18633d(0xdd)]:return _0x157b9a(Fe,{});case h[_0x18633d(0xf3)]:return _0x157b9a($e,{'coordinator':_0xc82d20});default:return null;}}function Pe(_0x24d3d8){var _0x1e31b7=_0x20ffcd;const {coordinator:_0x557f16}=_0x24d3d8;return _0x473891(_0x55b1a3,{'children':[_0x157b9a(_0x1e31b7(0xbc),{'className':_0x1e31b7(0x12a),'children':_0x1e31b7(0xb5)}),_0x157b9a(_0x28c9ca,{'onClick':()=>_0x557f16[_0x1e31b7(0x88)](),'children':_0x1e31b7(0x130)})]});}function Ae(_0x3359cd){var _0x87f096=_0x20ffcd;const {coordinator:_0x514ce6}=_0x3359cd;return _0x473891(_0x55b1a3,{'children':[_0x157b9a(_0x87f096(0xbc),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x87f096(0xad)}),_0x157b9a(_0x28c9ca,{'onClick':()=>_0x514ce6[_0x87f096(0x135)](),'children':_0x87f096(0x10b)})]});}function Te(_0x282133){var _0x3563bf=_0x20ffcd;const {coordinator:_0x2f9c0f}=_0x282133;return _0x473891(_0x55b1a3,{'children':[_0x157b9a(_0x3563bf(0xbc),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3563bf(0x9a)}),_0x157b9a(_0x28c9ca,{'variant':_0x3563bf(0x11d),'onClick':()=>_0x2f9c0f['startFollowing'](),'children':'Start\x20following'})]});}function $e(_0x3d8f5b){var _0x237ffe=_0x20ffcd;const {coordinator:_0x5e3865}=_0x3d8f5b;return _0x473891(_0x55b1a3,{'children':[_0x157b9a(_0x237ffe(0xbc),{'className':_0x237ffe(0x12a),'children':_0x237ffe(0x8d)}),_0x157b9a(_0x28c9ca,{'variant':_0x237ffe(0xd3),'onClick':()=>_0x5e3865[_0x237ffe(0xc2)](),'children':'Stop\x20presenting'})]});}function Fe(){var _0x5172e2=_0x20ffcd;return _0x157b9a(_0x55b1a3,{'children':_0x5172e2(0x95)});}var He=Object[_0x20ffcd(0xc6)],je=(_0x2591b1,_0x395329,_0x5b527a,_0x4a2a75)=>{var _0x705bae=_0x20ffcd;for(var _0x29f307=_0x4a2a75>0x1?void 0x0:_0x4a2a75?He(_0x395329,_0x5b527a):_0x395329,_0x2ce23b=_0x2591b1[_0x705bae(0xf7)]-0x1,_0x3381a6;_0x2ce23b>=0x0;_0x2ce23b--)(_0x3381a6=_0x2591b1[_0x2ce23b])&&(_0x29f307=_0x3381a6(_0x29f307)||_0x29f307);return _0x29f307;},T=(_0x1bd158,_0x4869a7)=>(_0x4f7c8f,_0x4224c2)=>_0x4869a7(_0x4f7c8f,_0x4224c2,_0x1bd158);let I=class extends _0x539b1d{constructor(_0x1b71fa,_0x4b1cd2){var _0x114ab5=_0x20ffcd;super(),this[_0x114ab5(0xee)]=_0x1b71fa,this['_uiPartsService']=_0x4b1cd2,this[_0x114ab5(0xba)]();}[_0x20ffcd(0xba)](){var _0x4da0f4=_0x20ffcd;this[_0x4da0f4(0xa3)](this[_0x4da0f4(0x11f)][_0x4da0f4(0xd5)](_0x1b50ea['HEADER_MENU'],()=>_0x5bf79f(ye,this[_0x4da0f4(0xee)])));}};I=je([T(0x0,_0x42b534(_0x59a932)),T(0x1,_0x4f299e)],I);const Ue=_0x20ffcd(0xa4),$={};var Ve=Object[_0x20ffcd(0xc6)],Me=(_0x518de8,_0x176f5e,_0x9a33e8,_0x2e4233)=>{var _0x4c149b=_0x20ffcd;for(var _0x18043=_0x2e4233>0x1?void 0x0:_0x2e4233?Ve(_0x176f5e,_0x9a33e8):_0x176f5e,_0x686b38=_0x518de8[_0x4c149b(0xf7)]-0x1,_0x9ac174;_0x686b38>=0x0;_0x686b38--)(_0x9ac174=_0x518de8[_0x686b38])&&(_0x18043=_0x9ac174(_0x18043)||_0x18043);return _0x18043;},ke=(_0x65203f,_0x380946)=>(_0x5a2139,_0x4a9346)=>_0x380946(_0x5a2139,_0x4a9346,_0x65203f);let b=class extends _0x539b1d{constructor(_0x56f409){var _0x3514e9=_0x20ffcd;super(),this['_liveShareService']=_0x56f409,this[_0x3514e9(0xcd)]();}[_0x20ffcd(0xcd)](){var _0x117401=_0x20ffcd;[_0x5deda2['id'],_0x5abaaa['id'],_0x208319['id']][_0x117401(0xb0)](_0x2cfc1c=>{var _0x3f2511=_0x117401;this[_0x3f2511(0xa3)](this['_liveShareService'][_0x3f2511(0x119)](_0x2cfc1c));});}};b=Me([ke(0x0,_0x42b534(L))],b);var Ge=Object[_0x20ffcd(0x121)],We=Object[_0x20ffcd(0xc6)],Ye=(_0x145a97,_0x3782a8,_0x3dd16e)=>_0x3782a8 in _0x145a97?Ge(_0x145a97,_0x3782a8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3dd16e}):_0x145a97[_0x3782a8]=_0x3dd16e,Be=(_0x85c55e,_0x430f0f,_0x58ffe3,_0x4f5d8e)=>{var _0x36bee9=_0x20ffcd;for(var _0x1c6c40=_0x4f5d8e>0x1?void 0x0:_0x4f5d8e?We(_0x430f0f,_0x58ffe3):_0x430f0f,_0x1fd99e=_0x85c55e[_0x36bee9(0xf7)]-0x1,_0x524603;_0x1fd99e>=0x0;_0x1fd99e--)(_0x524603=_0x85c55e[_0x1fd99e])&&(_0x1c6c40=_0x524603(_0x1c6c40)||_0x1c6c40);return _0x1c6c40;},F=(_0x3e04e3,_0x2ab29d)=>(_0x503331,_0x34cd77)=>_0x2ab29d(_0x503331,_0x34cd77,_0x3e04e3),J=(_0x5c5914,_0x234b6c,_0x53e3bd)=>Ye(_0x5c5914,typeof _0x234b6c!=_0x20ffcd(0x12f)?_0x234b6c+'':_0x234b6c,_0x53e3bd);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x574128{constructor(_0x2b7eee=$,_0x56e332,_0x5da0a3){var _0x4bce4d=_0x20ffcd;super(),this[_0x4bce4d(0x87)]=_0x2b7eee,this[_0x4bce4d(0xee)]=_0x56e332,this[_0x4bce4d(0xab)]=_0x5da0a3;const {..._0x52a454}=_0x78447b({},$,this['_config']);this['_configService'][_0x4bce4d(0x12c)](Ue,_0x52a454);}[_0x20ffcd(0x118)](){var _0x541d34=_0x20ffcd;_0x3e2832(this[_0x541d34(0xee)],_0x360b36([[L],[m],[b],[I]],this[_0x541d34(0x87)][_0x541d34(0x85)])),_0x5b4f9e(this['_injector'],[[b]]);}[_0x20ffcd(0xfd)](){var _0x361f59=_0x20ffcd;_0x5b4f9e(this[_0x361f59(0xee)],[[I]]);}};J(O,'type',_0x38c32e[_0x20ffcd(0x127)]),J(O,'pluginName',Ze),O=Be([_0x50aa05(_0x2f65a8),F(0x1,_0x42b534(_0x59a932)),F(0x2,_0x54be48)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0x36f017=_0xde17;(function(_0xcac48b,_0x172d45){var _0x289873=_0xde17,_0x41bf4f=_0xcac48b();while(!![]){try{var _0x338b47=parseInt(_0x289873(0x22e))/0x1+parseInt(_0x289873(0x26b))/0x2*(-parseInt(_0x289873(0x1df))/0x3)+parseInt(_0x289873(0x1da))/0x4+-parseInt(_0x289873(0x1bd))/0x5+parseInt(_0x289873(0x1d0))/0x6*(-parseInt(_0x289873(0x245))/0x7)+parseInt(_0x289873(0x240))/0x8*(parseInt(_0x289873(0x1c7))/0x9)+-parseInt(_0x289873(0x1dc))/0xa;if(_0x338b47===_0x172d45)break;else _0x41bf4f['push'](_0x41bf4f['shift']());}catch(_0x1d81f4){_0x41bf4f['push'](_0x41bf4f['shift']());}}}(_0x237f,0xac0db));var q=Object[_0x36f017(0x1d5)],z=(_0x4bf46c,_0xb1213e,_0x2aff38)=>_0xb1213e in _0x4bf46c?q(_0x4bf46c,_0xb1213e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2aff38}):_0x4bf46c[_0xb1213e]=_0x2aff38,d=(_0x38a0e8,_0x299499,_0x9e8ed5)=>z(_0x38a0e8,typeof _0x299499!=_0x36f017(0x1f6)?_0x299499+'':_0x299499,_0x9e8ed5);import{Disposable as _0x1921d4,toDisposable as _0x363c38,IUniverInstanceService as _0x3f3fb4,Inject as _0x3b82a6,Injector as _0x11e997,IConfigService as _0x2ade0c,ICommandService as _0x5b1a08,RxDisposable as _0xdfd2c9,UniverInstanceType as _0x3488c4,DisposableCollection as _0x432129,CommandType as _0x55283a,DependentOn as _0x3c9495,Plugin as _0x1c42d2,merge as _0x3fdcd0,registerDependencies as _0x29e73f,mergeOverrideWithDependencies as _0x5e60eb,touchDependencies as _0x184d91}from'@univerjs/core';import{useDependency as _0x57a76c,useObservable as _0x28c88f,IUIPartsService as _0x3c6a2e,BuiltInUIPart as _0x4db87a,connectInjector as _0x518bf9}from'@univerjs/ui';import{jsx as _0x36e838,jsxs as _0x5ddc08,Fragment as _0x10e248}from'react/jsx-runtime';import{Dropdown as _0x1eee21,clsx as _0x28accc,Button as _0x564e8c}from'@univerjs/design';import{forwardRef as _0x49863e,useRef as _0xeec105,createElement as _0xb83fdd,useState as _0x49d219,useEffect as _0x2e558b}from'react';import{CollaborationEvent as _0x33da1b,parseProtocolChangeset as _0x35401c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x28485c,SessionStatus as _0x593165,UniverCollaborationClientPlugin as _0x2e766a}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xdd3b8d,SetWorksheetActiveOperation as _0x541ec2}from'@univerjs/sheets';import{BehaviorSubject as _0x34eac5,Subject as _0x9375f3}from'rxjs';import{takeUntil as _0xc1bed8,throttleTime as _0x4b7434}from'rxjs/operators';import{SetZoomRatioOperation as _0x17d0cb,SetScrollOperation as _0x43d03b}from'@univerjs/sheets-ui';var c=function(){var _0x1adb03=_0x36f017;return c=Object[_0x1adb03(0x1d2)]||function(_0x2e490c){var _0xb6bce9=_0x1adb03;for(var _0x5ed74c,_0x545095=0x1,_0x2cdad7=arguments['length'];_0x545095<_0x2cdad7;_0x545095++){_0x5ed74c=arguments[_0x545095];for(var _0x227c8f in _0x5ed74c)Object[_0xb6bce9(0x20b)]['hasOwnProperty'][_0xb6bce9(0x232)](_0x5ed74c,_0x227c8f)&&(_0x2e490c[_0x227c8f]=_0x5ed74c[_0x227c8f]);}return _0x2e490c;},c['apply'](this,arguments);},Oe=function(_0x285852,_0x4be77d){var _0x43b9d7=_0x36f017,_0x4cf2a8={};for(var _0x5d3a62 in _0x285852)Object[_0x43b9d7(0x20b)][_0x43b9d7(0x1fb)][_0x43b9d7(0x232)](_0x285852,_0x5d3a62)&&_0x4be77d['indexOf'](_0x5d3a62)<0x0&&(_0x4cf2a8[_0x5d3a62]=_0x285852[_0x5d3a62]);if(_0x285852!=null&&typeof Object[_0x43b9d7(0x210)]==_0x43b9d7(0x1cf)){for(var _0x58bcf8=0x0,_0x5d3a62=Object[_0x43b9d7(0x210)](_0x285852);_0x58bcf8<_0x5d3a62[_0x43b9d7(0x211)];_0x58bcf8++)_0x4be77d[_0x43b9d7(0x200)](_0x5d3a62[_0x58bcf8])<0x0&&Object[_0x43b9d7(0x20b)][_0x43b9d7(0x258)][_0x43b9d7(0x232)](_0x285852,_0x5d3a62[_0x58bcf8])&&(_0x4cf2a8[_0x5d3a62[_0x58bcf8]]=_0x285852[_0x5d3a62[_0x58bcf8]]);}return _0x4cf2a8;},W=_0x49863e(function(_0x140002,_0x29b62c){var _0x1f316a=_0x36f017,_0x3f0948=_0x140002['icon'],_0x16ffee=_0x140002['id'],_0x3be45d=_0x140002[_0x1f316a(0x231)],_0x4ce05d=_0x140002[_0x1f316a(0x1eb)],_0x19e407=Oe(_0x140002,[_0x1f316a(0x1e4),'id',_0x1f316a(0x231),_0x1f316a(0x1eb)]),_0x5d6c39=_0x1f316a(0x25c)[_0x1f316a(0x1b9)](_0x16ffee,'\x20')[_0x1f316a(0x1b9)](_0x3be45d||'')[_0x1f316a(0x25f)](),_0x6daf92=_0xeec105('_'['concat'](Ne()));return Y(_0x3f0948,''['concat'](_0x16ffee),{'defIds':_0x3f0948['defIds'],'idSuffix':_0x6daf92['current']},c({'ref':_0x29b62c,'className':_0x5d6c39},_0x19e407),_0x4ce05d);});function Y(_0x3b16cf,_0x1bbdb3,_0x5844dd,_0x476478,_0x4c9543){var _0x250ff0=_0x36f017;return _0xb83fdd(_0x3b16cf['tag'],c(c({'key':_0x1bbdb3},Ee(_0x3b16cf,_0x5844dd,_0x4c9543)),_0x476478),(we(_0x3b16cf,_0x5844dd)[_0x250ff0(0x264)]||[])['map'](function(_0x128f71,_0x5a417d){var _0x345d98=_0x250ff0;return Y(_0x128f71,''[_0x345d98(0x1b9)](_0x1bbdb3,'-')[_0x345d98(0x1b9)](_0x3b16cf['tag'],'-')['concat'](_0x5a417d),_0x5844dd,void 0x0,_0x4c9543);}));}function Ee(_0x3aa95f,_0x56f229,_0x48e478){var _0x3484e3=_0x36f017,_0x16e0d6=c({},_0x3aa95f[_0x3484e3(0x218)]);_0x48e478!=null&&_0x48e478[_0x3484e3(0x23c)]&&_0x16e0d6['fill']===_0x3484e3(0x23c)&&(_0x16e0d6[_0x3484e3(0x255)]=_0x48e478['colorChannel1']),_0x3aa95f[_0x3484e3(0x1cb)]===_0x3484e3(0x252)&&_0x16e0d6['id']&&(_0x16e0d6['id']=_0x16e0d6['id']+_0x56f229[_0x3484e3(0x249)]),Object[_0x3484e3(0x1c8)](_0x16e0d6)[_0x3484e3(0x22a)](function(_0x3f28e3){var _0x38e353=_0x3484e3,_0x3ccf23=_0x3f28e3[0x0],_0x15e967=_0x3f28e3[0x1];_0x3ccf23===_0x38e353(0x252)&&typeof _0x15e967==_0x38e353(0x241)&&(_0x16e0d6[_0x3ccf23]=_0x15e967[_0x38e353(0x217)](/url\(#(.*)\)/,'url(#$1'[_0x38e353(0x1b9)](_0x56f229[_0x38e353(0x249)],')')));});var _0x1e2cf7=_0x56f229[_0x3484e3(0x1c5)];return!_0x1e2cf7||_0x1e2cf7['length']===0x0||(_0x3aa95f[_0x3484e3(0x1cb)]===_0x3484e3(0x259)&&_0x16e0d6[_0x3484e3(0x205)]&&(_0x16e0d6[_0x3484e3(0x205)]=_0x16e0d6[_0x3484e3(0x205)]+_0x56f229[_0x3484e3(0x249)]),Object[_0x3484e3(0x1c8)](_0x16e0d6)[_0x3484e3(0x22a)](function(_0x3f7d54){var _0x1686a0=_0x3484e3,_0x5a02e4=_0x3f7d54[0x0],_0x4c247b=_0x3f7d54[0x1];typeof _0x4c247b==_0x1686a0(0x241)&&(_0x16e0d6[_0x5a02e4]=_0x4c247b['replace'](/url\(#(.*)\)/,_0x1686a0(0x1c3)['concat'](_0x56f229['idSuffix'],')')));})),_0x16e0d6;}function we(_0x16b127,_0x1522ad){var _0x252079=_0x36f017,_0x4d6756,_0x6111ef=_0x1522ad['defIds'];return!_0x6111ef||_0x6111ef[_0x252079(0x211)]===0x0?_0x16b127:_0x16b127[_0x252079(0x1cb)]===_0x252079(0x221)&&(!((_0x4d6756=_0x16b127['children'])===null||_0x4d6756===void 0x0)&&_0x4d6756['length'])?c(c({},_0x16b127),{'children':_0x16b127[_0x252079(0x264)][_0x252079(0x1d9)](function(_0x52287a){var _0x2b7973=_0x252079;return typeof _0x52287a[_0x2b7973(0x218)]['id']=='string'&&_0x6111ef&&_0x6111ef[_0x2b7973(0x21e)](_0x52287a[_0x2b7973(0x218)]['id'])?c(c({},_0x52287a),{'attrs':c(c({},_0x52287a[_0x2b7973(0x218)]),{'id':_0x52287a[_0x2b7973(0x218)]['id']+_0x1522ad[_0x2b7973(0x249)]})}):_0x52287a;})}):_0x16b127;}function Ne(){var _0x5e6acc=_0x36f017;return Math['random']()[_0x5e6acc(0x247)](0x24)[_0x5e6acc(0x1c1)](0x2,0x8);}W[_0x36f017(0x1d1)]='UniverIcon';var Ce={'tag':_0x36f017(0x254),'attrs':{'xmlns':_0x36f017(0x1bf),'fill':_0x36f017(0x1cc),'viewBox':_0x36f017(0x1f5),'width':_0x36f017(0x1b7),'height':_0x36f017(0x1b7)},'children':[{'tag':_0x36f017(0x251),'attrs':{'fill':_0x36f017(0x1d3),'d':_0x36f017(0x203)}},{'tag':'path','attrs':{'fill':_0x36f017(0x1d3),'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':_0x36f017(0x268),'clipRule':'evenodd'}}]},B=_0x49863e(function(_0xd3acb0,_0x3c2a13){var _0x12eb01=_0x36f017;return _0xb83fdd(W,Object[_0x12eb01(0x1d2)]({},_0xd3acb0,{'id':'live-share-icon','ref':_0x3c2a13,'icon':Ce}));});B['displayName']=_0x36f017(0x213);class L extends _0x1921d4{constructor(){var _0x472517=_0x36f017;super(...arguments),d(this,_0x472517(0x25a),new Set()),d(this,_0x472517(0x269),new Set());}[_0x36f017(0x1ba)](_0x2df393){var _0x2f8243=_0x36f017;return this[_0x2f8243(0x25a)][_0x2f8243(0x23d)](_0x2df393),_0x363c38(()=>this[_0x2f8243(0x25a)][_0x2f8243(0x1bb)](_0x2df393));}[_0x36f017(0x23f)](_0x195f86){var _0x2420a9=_0x36f017;return this['_reporters'][_0x2420a9(0x23d)](_0x195f86),_0x363c38(()=>this[_0x2420a9(0x269)][_0x2420a9(0x1bb)](_0x195f86));}[_0x36f017(0x23b)](_0x51df3a){var _0x3e410b=_0x36f017;return this[_0x3e410b(0x25a)]['has'](_0x51df3a);}[_0x36f017(0x1cd)](_0xf827d9){var _0x16202c=_0x36f017;return Array[_0x16202c(0x21f)](this[_0x16202c(0x269)])[_0x16202c(0x1d9)](_0x444bb9=>_0x444bb9(_0xf827d9));}}var De=Object[_0x36f017(0x20c)],Z=(_0xa9bc40,_0x298351,_0x249e54,_0x26d69e)=>{var _0x538142=_0x36f017;for(var _0x4af965=_0x26d69e>0x1?void 0x0:_0x26d69e?De(_0x298351,_0x249e54):_0x298351,_0x3adbe4=_0xa9bc40[_0x538142(0x211)]-0x1,_0x55b2c9;_0x3adbe4>=0x0;_0x3adbe4--)(_0x55b2c9=_0xa9bc40[_0x3adbe4])&&(_0x4af965=_0x55b2c9(_0x4af965)||_0x4af965);return _0x4af965;},f=(_0x316b48,_0x16d6cd)=>(_0x165a57,_0x6e667d)=>_0x16d6cd(_0x165a57,_0x6e667d,_0x316b48);function _0x237f(){var _0x52d027=['presenter','xlink:href','ONLINE','type','PRESENTING','IDLE','button','prototype','getOwnPropertyDescriptor','Stop\x20following','_handleNewChangeSets','init','getOwnPropertySymbols','length','_beIdle','LiveShareIcon','onCommandExecuted','live-share.config','_unitID','replace','attrs','default','_presenter','OPERATION','_liveShareService','unitId','includes','from','setConfig','defs','end','has','executeCommand','stringify','parse','_univerInstanceService','dispose','onRendered','forEach','params','override','You\x27are\x20offline.','590919cKpoQM','send','_commandService','className','call','_fetchOperations','asObservable','You\x27re\x20following\x20the\x20presenter','NOT_FOLLOWING','_commandDisposable','Stop\x20presenting','You\x27re\x20not\x20following\x20the\x20presenter','div','shouldShareOperation','colorChannel1','add','idle','registerInitialStateReporter','4400ByQvPR','string','NEW_CHANGESETS','_handleTerminate','get','177457OwesLY','_status','toString','pluginName','idSuffix','following','complete','offline','stopPresenting','dispose$','_stopFollowing','LIVESHARE_TERMINATE','path','mask','status$','svg','fill','You\x27re\x20presenting\x20the\x20document','_stopPresenting','propertyIsEnumerable','use','_sharedOperations','_collabSession','univerjs-icon\x20univerjs-icon-','LIVESHARE_OPERATION','presenting','trim','subscribe','next','OFFLINE','mutations','children','_handleOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','values','evenodd','_reporters','disposeWithMe','134pknacZ','1em','event$','concat','registerSharedOperation','delete','not-following','684730RbGSvS','text','http://www.w3.org/2000/svg','current','substring','clear','url(#$1','getTypeOfUnitAdded$','defIds','_uiPartsService','20250hKPpCu','entries','_status$','registerComponent','tag','none','getInitialStates','then','function','114LfraSY','displayName','assign','currentColor','getTypeOfUnitDisposed$','defineProperty','_injector','_configService','LIVESHARE_FETCH_OPERATIONS','map','3522632lkOwvs','Start','6600540VmDRYr','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','set','32493wDhdvG','getUnitId','UNIVER_SHEET','pipe','onStarting','icon','Present\x20this\x20document','tryStartPresenting','sheet','data','_startFollowing','getMemberID','extend','_handleNewHost','getLiveShareCoordinator','_handleOnline','LIVESHARE_NEW_HOST','_mountLiveShare','_entities','memberID','LIVESHARE_REQUEST_HOST','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','0\x200\x2017\x2017','symbol','univer-size-4','_startLiveShareCoordinator','_config','startFollowing','hasOwnProperty','SAME_OPERATION_SHARE_INTERVAL','UNIVER_UNKNOWN','_init','FOLLOWING','indexOf','HEADER_MENU','getCurrentTypeOfUnit$','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'];_0x237f=function(){return _0x52d027;};return _0x237f();}let m=class extends _0xdfd2c9{constructor(_0x54836d,_0x56e546,_0x306dbe){var _0x14ed57=_0x36f017;super(),d(this,_0x14ed57(0x1f1),new Map()),(this[_0x14ed57(0x227)]=_0x54836d,this['_injector']=_0x56e546,this['_collabSessionService']=_0x306dbe,this[_0x14ed57(0x1fe)]());}async[_0x36f017(0x1ed)](_0x4c8b1a){var _0x2b5ff3=_0x36f017;return this[_0x2b5ff3(0x1f1)][_0x2b5ff3(0x223)](_0x4c8b1a)||await this[_0x2b5ff3(0x1f8)](_0x4c8b1a),this[_0x2b5ff3(0x1f1)][_0x2b5ff3(0x244)](_0x4c8b1a);}[_0x36f017(0x1fe)](){var _0x4d075c=_0x36f017;this[_0x4d075c(0x227)][_0x4d075c(0x1c4)](_0x3488c4['UNIVER_SHEET'])[_0x4d075c(0x1e2)](_0xc1bed8(this[_0x4d075c(0x24e)]))[_0x4d075c(0x260)](async _0x19b151=>{var _0x4ecd04=_0x4d075c;const _0x5b2b43=_0x19b151[_0x4ecd04(0x1e0)]();this[_0x4ecd04(0x1f1)][_0x4ecd04(0x223)](_0x5b2b43)||this[_0x4ecd04(0x1f8)](_0x5b2b43);}),this['_univerInstanceService'][_0x4d075c(0x1d4)](_0x3488c4[_0x4d075c(0x1e1)])[_0x4d075c(0x1e2)](_0xc1bed8(this[_0x4d075c(0x24e)]))[_0x4d075c(0x260)](_0x22d5f7=>{var _0x58a968=_0x4d075c;const _0x169255=_0x22d5f7[_0x58a968(0x1e0)](),_0x3fe5bd=this[_0x58a968(0x1f1)][_0x58a968(0x244)](_0x169255);_0x3fe5bd==null||_0x3fe5bd[_0x58a968(0x228)]();});}async[_0x36f017(0x1f8)](_0xdb4d1b){var _0x1d039c=_0x36f017;const _0x17fcda=await this['_collabSessionService']['requireSession'](_0xdb4d1b),_0x11cf26=this[_0x1d039c(0x1d6)]['createInstance'](C,_0xdb4d1b,_0x17fcda);return _0x11cf26[_0x1d039c(0x20f)](),this[_0x1d039c(0x1f1)][_0x1d039c(0x1de)](_0xdb4d1b,_0x11cf26),_0x11cf26;}};m=Z([f(0x0,_0x3f3fb4),f(0x1,_0x3b82a6(_0x11e997)),f(0x2,_0x3b82a6(_0x28485c))],m);var h=(_0x26ccc0=>(_0x26ccc0[_0x36f017(0x262)]='offline',_0x26ccc0[_0x36f017(0x209)]=_0x36f017(0x23e),_0x26ccc0[_0x36f017(0x1ff)]=_0x36f017(0x24a),_0x26ccc0[_0x36f017(0x236)]=_0x36f017(0x1bc),_0x26ccc0['PRESENTING']=_0x36f017(0x25e),_0x26ccc0))(h||{});const xe=_0x36f017(0x1fc),Le=0xc8;let C=class extends _0xdfd2c9{constructor(_0x4a4d2e,_0x2c1aa0,_0x1dfa73,_0x325da8,_0x14c4f4){var _0x1e1eb5=_0x36f017;super(),d(this,_0x1e1eb5(0x1c9),new _0x34eac5(_0x1e1eb5(0x23e))),d(this,_0x1e1eb5(0x253),this[_0x1e1eb5(0x1c9)][_0x1e1eb5(0x234)]()),d(this,'_init',!0x1),d(this,_0x1e1eb5(0x237),null),d(this,_0x1e1eb5(0x21a),null),(this['_unitID']=_0x4a4d2e,this[_0x1e1eb5(0x25b)]=_0x2c1aa0,this[_0x1e1eb5(0x1d7)]=_0x1dfa73,this[_0x1e1eb5(0x21c)]=_0x325da8,this[_0x1e1eb5(0x230)]=_0x14c4f4);}get[_0x36f017(0x246)](){return this['_status$']['getValue']();}['dispose'](){var _0x27192a=_0x36f017,_0x4c5a36;(_0x4c5a36=this[_0x27192a(0x237)])==null||_0x4c5a36[_0x27192a(0x228)](),this[_0x27192a(0x1c9)][_0x27192a(0x261)](_0x27192a(0x23e)),this[_0x27192a(0x1c9)][_0x27192a(0x24b)]();}[_0x36f017(0x20f)](){var _0x1e040b=_0x36f017;this[_0x1e040b(0x1fe)]||(this['_init']=!0x0,this['_collabSession']['sessionStatus$']['pipe'](_0xc1bed8(this[_0x1e040b(0x24e)]))[_0x1e040b(0x260)](_0x4f4e4c=>{var _0x443822=_0x1e040b;switch(_0x4f4e4c){case _0x593165[_0x443822(0x262)]:this['_handleOffline']();break;case _0x593165[_0x443822(0x206)]:this[_0x443822(0x1ee)]();break;}}),this['_collabSession'][_0x1e040b(0x1b8)][_0x1e040b(0x1e2)](_0xc1bed8(this[_0x1e040b(0x24e)]))['subscribe'](_0x177773=>{var _0x42f088=_0x1e040b;const {eventID:_0x4323e4}=_0x177773;switch(_0x4323e4){case _0x33da1b[_0x42f088(0x1ef)]:this[_0x42f088(0x1ec)](_0x177773);break;case _0x33da1b[_0x42f088(0x25d)]:this['_handleOperation'](_0x177773);break;case _0x33da1b[_0x42f088(0x250)]:this[_0x42f088(0x243)]();break;case _0x33da1b[_0x42f088(0x242)]:this[_0x42f088(0x20e)](_0x177773);break;}}));}['tryStartPresenting'](){var _0x2471d2=_0x36f017;this[_0x2471d2(0x25b)][_0x2471d2(0x22f)]({'eventID':_0x33da1b[_0x2471d2(0x1f3)],'data':{'unitID':this[_0x2471d2(0x216)],'userID':this[_0x2471d2(0x25b)][_0x2471d2(0x1ea)]()}},this[_0x2471d2(0x216)]);}[_0x36f017(0x24d)](){var _0x1238ee=_0x36f017;this[_0x1238ee(0x246)]===_0x1238ee(0x25e)&&(this['_status$'][_0x1238ee(0x261)](_0x1238ee(0x23e)),this[_0x1238ee(0x25b)][_0x1238ee(0x22f)]({'eventID':_0x33da1b['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x1238ee(0x216)]}},this[_0x1238ee(0x216)]));}[_0x36f017(0x1fa)](){var _0x46066f=_0x36f017;this[_0x46066f(0x246)]===_0x46066f(0x1bc)&&(this[_0x46066f(0x1c9)]['next']('following'),this['_startFollowing']());}['stopFollowing'](){var _0x493f87=_0x36f017;this[_0x493f87(0x246)]===_0x493f87(0x24a)&&this[_0x493f87(0x24f)]();}['_handleNewHost'](_0x1d1022){var _0x21e974=_0x36f017;const {presenter:_0x588e21}=_0x1d1022[_0x21e974(0x1e8)],_0x3114ad=this[_0x21e974(0x25b)][_0x21e974(0x1ea)]();this[_0x21e974(0x21a)]=_0x588e21,_0x588e21===_0x3114ad?(this[_0x21e974(0x24f)](),this['_startPresenting']()):this[_0x21e974(0x246)]!=='not-following'&&(this[_0x21e974(0x257)](),this['_startFollowing']());}['_fetchOperations'](){var _0xb4962b=_0x36f017;const _0x4eb71a={'eventID':_0x33da1b[_0xb4962b(0x1d8)]};this[_0xb4962b(0x25b)][_0xb4962b(0x22f)](_0x4eb71a,this[_0xb4962b(0x216)]);}[_0x36f017(0x243)](){var _0x1a391e=_0x36f017;this['_presenter']=null,this['_status']!==_0x1a391e(0x25e)&&this[_0x1a391e(0x212)]();}[_0x36f017(0x20e)](_0x33a4c8){var _0x2b0abf=_0x36f017;if(this[_0x2b0abf(0x246)]===_0x2b0abf(0x24a)&&this[_0x2b0abf(0x21a)]===_0x33a4c8['data'][_0x2b0abf(0x1f2)]){const _0x147bd7=_0x35401c(_0x33a4c8[_0x2b0abf(0x1e8)])[_0x2b0abf(0x263)]['reverse']()['find'](_0x4e130c=>_0x4e130c['id']===_0xdd3b8d['id']);if(_0x147bd7){const _0x159c1a=_0x147bd7['params'][_0x2b0abf(0x21d)],_0xd73be7=_0x147bd7[_0x2b0abf(0x22b)][_0x2b0abf(0x1e7)]['id'];setTimeout(()=>{var _0x4abac8=_0x2b0abf;this[_0x4abac8(0x230)][_0x4abac8(0x224)](_0x541ec2['id'],{'unitId':_0x159c1a,'subUnitId':_0xd73be7},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x5f92b2=_0x36f017;this[_0x5f92b2(0x1c9)]['next'](_0x5f92b2(0x25e));const _0x7c7424=new Map(),_0x587980=this[_0x5f92b2(0x237)]=new _0x432129();_0x587980['add'](_0x363c38(()=>{var _0x9e7eda=_0x5f92b2;_0x7c7424['forEach'](_0x38f085=>_0x38f085[_0x9e7eda(0x24b)]()),_0x7c7424[_0x9e7eda(0x1c2)]();})),_0x587980['add'](this[_0x5f92b2(0x230)][_0x5f92b2(0x214)](_0x273122=>{var _0x421400=_0x5f92b2,_0x1bf6e5;if(_0x273122[_0x421400(0x207)]!==_0x55283a[_0x421400(0x21b)]||!this[_0x421400(0x21c)][_0x421400(0x23b)](_0x273122['id']))return;const {id:_0x1dbf36}=_0x273122;let _0x1867d9;_0x7c7424[_0x421400(0x223)](_0x1dbf36)?_0x1867d9=_0x7c7424[_0x421400(0x244)](_0x1dbf36):(_0x1867d9=new _0x9375f3(),_0x7c7424[_0x421400(0x1de)](_0x1dbf36,_0x1867d9),_0x1867d9['pipe'](_0x4b7434((_0x1bf6e5=this['_configService']['getConfig'](xe))!=null?_0x1bf6e5:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x421400(0x260)](_0x2796c9=>{var _0x2fa187=_0x421400;this[_0x2fa187(0x25b)][_0x2fa187(0x22f)]({'eventID':_0x33da1b['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2fa187(0x216)],'operations':{[_0x2796c9['id']]:{'id':_0x2796c9['id'],'params':JSON[_0x2fa187(0x225)](_0x2796c9['params'])}}}},this[_0x2fa187(0x216)]);})),_0x1867d9[_0x421400(0x261)](_0x273122);})),this['_liveShareService'][_0x5f92b2(0x1cd)](this['_unitID'])[_0x5f92b2(0x22a)](_0x5c3aa3=>this[_0x5f92b2(0x25b)]['send']({'eventID':_0x33da1b[_0x5f92b2(0x25d)],'data':{'unitID':this[_0x5f92b2(0x216)],'operations':{[_0x5c3aa3['id']]:{'id':_0x5c3aa3['id'],'params':JSON[_0x5f92b2(0x225)](_0x5c3aa3[_0x5f92b2(0x22b)])}}}},this[_0x5f92b2(0x216)]));}[_0x36f017(0x257)](){var _0x538659=_0x36f017,_0x338918;this[_0x538659(0x1c9)][_0x538659(0x261)](_0x538659(0x23e)),(_0x338918=this[_0x538659(0x237)])==null||_0x338918[_0x538659(0x228)](),this['_commandDisposable']=null;}[_0x36f017(0x1e9)](){var _0x318f74=_0x36f017,_0x520939;(_0x520939=this['_commandDisposable'])==null||_0x520939[_0x318f74(0x228)](),this[_0x318f74(0x1c9)][_0x318f74(0x261)](_0x318f74(0x24a));}[_0x36f017(0x212)](){var _0x4088bd=_0x36f017,_0x307b78;this[_0x4088bd(0x1c9)][_0x4088bd(0x261)](_0x4088bd(0x23e)),(_0x307b78=this[_0x4088bd(0x237)])==null||_0x307b78[_0x4088bd(0x228)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x5dd3ee=_0x36f017,_0x3062cd;this['_status$'][_0x5dd3ee(0x261)]('not-following'),(_0x3062cd=this[_0x5dd3ee(0x237)])==null||_0x3062cd[_0x5dd3ee(0x228)]();}[_0x36f017(0x265)](_0x229996){var _0x8aa3b=_0x36f017;if([_0x8aa3b(0x25e),_0x8aa3b(0x1bc),_0x8aa3b(0x24c)][_0x8aa3b(0x21e)](this[_0x8aa3b(0x246)])||!_0x229996[_0x8aa3b(0x1e8)][_0x8aa3b(0x204)]||_0x229996['data'][_0x8aa3b(0x204)]===this['_collabSession'][_0x8aa3b(0x1ea)]())return;this['_status']===_0x8aa3b(0x23e)&&this[_0x8aa3b(0x1e9)]();const _0x26b22a=_0x229996['data']['operations'];Object[_0x8aa3b(0x267)](_0x26b22a)[_0x8aa3b(0x22a)](_0x41b2e5=>{var _0x58138c=_0x8aa3b;this[_0x58138c(0x230)][_0x58138c(0x224)](_0x41b2e5['id'],_0x41b2e5['params']?JSON[_0x58138c(0x226)](_0x41b2e5[_0x58138c(0x22b)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x674581=_0x36f017,_0x1c721b;this[_0x674581(0x1c9)]['next'](_0x674581(0x24c)),(_0x1c721b=this[_0x674581(0x237)])==null||_0x1c721b[_0x674581(0x228)]();}[_0x36f017(0x1ee)](){var _0x2e3b5c=_0x36f017;this[_0x2e3b5c(0x1c9)][_0x2e3b5c(0x261)](_0x2e3b5c(0x23e)),this[_0x2e3b5c(0x233)]();}};function _0xde17(_0x321364,_0x57333e){var _0x237f96=_0x237f();return _0xde17=function(_0xde17d,_0xf28e72){_0xde17d=_0xde17d-0x1b7;var _0x4406a2=_0x237f96[_0xde17d];return _0x4406a2;},_0xde17(_0x321364,_0x57333e);}C=Z([f(0x2,_0x2ade0c),f(0x3,_0x3b82a6(L)),f(0x4,_0x5b1a08)],C);function ye(){var _0x49446f=_0x36f017;const _0x7597a9=_0x57a76c(m),_0x3a5aaf=_0x57a76c(_0x3f3fb4),_0x413b7a=_0x28c88f(()=>_0x3a5aaf[_0x49446f(0x202)](_0x3488c4[_0x49446f(0x1e1)]),void 0x0,!0x1,[]),[_0x47c4c7,_0x1922a1]=_0x49d219(null),[_0x15d68f,_0x1e6260]=_0x49d219(h[_0x49446f(0x209)]),_0x1bf422=_0xeec105(null);return _0x2e558b(()=>(_0x413b7a&&_0x7597a9[_0x49446f(0x1ed)](_0x413b7a['getUnitId']())[_0x49446f(0x1ce)](_0x1e8e88=>{var _0x25ecbf=_0x49446f;_0x1922a1(_0x1e8e88),_0x1bf422[_0x25ecbf(0x1c0)]=_0x1e8e88[_0x25ecbf(0x253)]['subscribe'](_0x24b5e2=>{_0x1e6260(_0x24b5e2);});}),()=>{var _0xebf658=_0x49446f,_0x30f78b;(_0x30f78b=_0x1bf422[_0xebf658(0x1c0)])==null||_0x30f78b['unsubscribe'](),_0x1bf422[_0xebf658(0x1c0)]=null;}),[_0x413b7a,_0x7597a9]),_0x47c4c7?_0x36e838(_0x1eee21,{'align':_0x49446f(0x222),'disabled':_0x15d68f===h[_0x49446f(0x262)],'className':_0x49446f(0x1dd),'overlay':_0x36e838(Re,{'status':_0x15d68f,'coordinator':_0x47c4c7}),'children':_0x36e838(_0x49446f(0x20a),{'className':_0x28accc(_0x49446f(0x1f4),{'univer-cursor-not-allowed':_0x15d68f===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x15d68f!==h['OFFLINE']}),'type':'button','children':_0x36e838(B,{'className':_0x49446f(0x1f7)})})}):null;}function Re(_0x142e45){var _0x1f880a=_0x36f017;const {status:_0x3626be,coordinator:_0x1fcb92}=_0x142e45;switch(_0x3626be){case h['IDLE']:return _0x36e838(Pe,{'coordinator':_0x1fcb92});case h[_0x1f880a(0x1ff)]:return _0x36e838(Ae,{'coordinator':_0x1fcb92});case h[_0x1f880a(0x236)]:return _0x36e838(Te,{'coordinator':_0x1fcb92});case h[_0x1f880a(0x262)]:return _0x36e838(Fe,{});case h[_0x1f880a(0x208)]:return _0x36e838($e,{'coordinator':_0x1fcb92});default:return null;}}function Pe(_0x4fab17){var _0x49e46f=_0x36f017;const {coordinator:_0x2cdd39}=_0x4fab17;return _0x5ddc08(_0x10e248,{'children':[_0x36e838('div',{'className':_0x49e46f(0x266),'children':_0x49e46f(0x1e5)}),_0x36e838(_0x564e8c,{'onClick':()=>_0x2cdd39[_0x49e46f(0x1e6)](),'children':_0x49e46f(0x1db)})]});}function Ae(_0x89f442){var _0x2170e4=_0x36f017;const {coordinator:_0x48390b}=_0x89f442;return _0x5ddc08(_0x10e248,{'children':[_0x36e838(_0x2170e4(0x23a),{'className':_0x2170e4(0x266),'children':_0x2170e4(0x235)}),_0x36e838(_0x564e8c,{'onClick':()=>_0x48390b['stopFollowing'](),'children':_0x2170e4(0x20d)})]});}function Te(_0x29f184){var _0x2d6a4a=_0x36f017;const {coordinator:_0x1b70a0}=_0x29f184;return _0x5ddc08(_0x10e248,{'children':[_0x36e838(_0x2d6a4a(0x23a),{'className':_0x2d6a4a(0x266),'children':_0x2d6a4a(0x239)}),_0x36e838(_0x564e8c,{'variant':_0x2d6a4a(0x1be),'onClick':()=>_0x1b70a0[_0x2d6a4a(0x1fa)](),'children':'Start\x20following'})]});}function $e(_0x47991e){var _0x4a4bdb=_0x36f017;const {coordinator:_0x1e5ec1}=_0x47991e;return _0x5ddc08(_0x10e248,{'children':[_0x36e838(_0x4a4bdb(0x23a),{'className':_0x4a4bdb(0x266),'children':_0x4a4bdb(0x256)}),_0x36e838(_0x564e8c,{'variant':_0x4a4bdb(0x219),'onClick':()=>_0x1e5ec1[_0x4a4bdb(0x24d)](),'children':_0x4a4bdb(0x238)})]});}function Fe(){var _0x5685cf=_0x36f017;return _0x36e838(_0x10e248,{'children':_0x5685cf(0x22d)});}var He=Object[_0x36f017(0x20c)],je=(_0x564edb,_0x4c8839,_0x2db3c0,_0x5bff78)=>{for(var _0x4491a2=_0x5bff78>0x1?void 0x0:_0x5bff78?He(_0x4c8839,_0x2db3c0):_0x4c8839,_0x30d74a=_0x564edb['length']-0x1,_0x349018;_0x30d74a>=0x0;_0x30d74a--)(_0x349018=_0x564edb[_0x30d74a])&&(_0x4491a2=_0x349018(_0x4491a2)||_0x4491a2);return _0x4491a2;},T=(_0x4ee606,_0x55ee6c)=>(_0x5f022d,_0x2e0e92)=>_0x55ee6c(_0x5f022d,_0x2e0e92,_0x4ee606);let I=class extends _0x1921d4{constructor(_0x3f9f5f,_0x2c7932){var _0x13c02f=_0x36f017;super(),this[_0x13c02f(0x1d6)]=_0x3f9f5f,this[_0x13c02f(0x1c6)]=_0x2c7932,this[_0x13c02f(0x1f0)]();}[_0x36f017(0x1f0)](){var _0x3f47ee=_0x36f017;this['disposeWithMe'](this[_0x3f47ee(0x1c6)][_0x3f47ee(0x1ca)](_0x4db87a[_0x3f47ee(0x201)],()=>_0x518bf9(ye,this[_0x3f47ee(0x1d6)])));}};I=je([T(0x0,_0x3b82a6(_0x11e997)),T(0x1,_0x3c6a2e)],I);const Ue=_0x36f017(0x215),$={};var Ve=Object['getOwnPropertyDescriptor'],Me=(_0x514688,_0x36d2be,_0x4223c8,_0x540ba4)=>{var _0xdb5efb=_0x36f017;for(var _0x4e489a=_0x540ba4>0x1?void 0x0:_0x540ba4?Ve(_0x36d2be,_0x4223c8):_0x36d2be,_0x513e1f=_0x514688[_0xdb5efb(0x211)]-0x1,_0x4ca992;_0x513e1f>=0x0;_0x513e1f--)(_0x4ca992=_0x514688[_0x513e1f])&&(_0x4e489a=_0x4ca992(_0x4e489a)||_0x4e489a);return _0x4e489a;},ke=(_0x40b66d,_0xd0b1b9)=>(_0x4724d7,_0x10ed8d)=>_0xd0b1b9(_0x4724d7,_0x10ed8d,_0x40b66d);let b=class extends _0x1921d4{constructor(_0x25c18f){var _0x18875a=_0x36f017;super(),this[_0x18875a(0x21c)]=_0x25c18f,this['_init']();}['_init'](){[_0x17d0cb['id'],_0x43d03b['id'],_0x541ec2['id']]['forEach'](_0x9f46d7=>{var _0x21b0fa=_0xde17;this[_0x21b0fa(0x26a)](this[_0x21b0fa(0x21c)]['registerSharedOperation'](_0x9f46d7));});}};b=Me([ke(0x0,_0x3b82a6(L))],b);var Ge=Object[_0x36f017(0x1d5)],We=Object[_0x36f017(0x20c)],Ye=(_0x23d052,_0x18803a,_0x1ae5c9)=>_0x18803a in _0x23d052?Ge(_0x23d052,_0x18803a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ae5c9}):_0x23d052[_0x18803a]=_0x1ae5c9,Be=(_0xece216,_0x45f951,_0x59ab6f,_0x2b89ac)=>{var _0x27d4b4=_0x36f017;for(var _0x428ec4=_0x2b89ac>0x1?void 0x0:_0x2b89ac?We(_0x45f951,_0x59ab6f):_0x45f951,_0x100709=_0xece216[_0x27d4b4(0x211)]-0x1,_0x482983;_0x100709>=0x0;_0x100709--)(_0x482983=_0xece216[_0x100709])&&(_0x428ec4=_0x482983(_0x428ec4)||_0x428ec4);return _0x428ec4;},F=(_0x17dbcc,_0x15d582)=>(_0x5639c8,_0x4f64fe)=>_0x15d582(_0x5639c8,_0x4f64fe,_0x17dbcc),J=(_0x186778,_0x2e2554,_0x4cea52)=>Ye(_0x186778,typeof _0x2e2554!=_0x36f017(0x1f6)?_0x2e2554+'':_0x2e2554,_0x4cea52);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x1c42d2{constructor(_0x3a181e=$,_0x41e95f,_0xf09914){var _0x356bbe=_0x36f017;super(),this[_0x356bbe(0x1f9)]=_0x3a181e,this[_0x356bbe(0x1d6)]=_0x41e95f,this['_configService']=_0xf09914;const {..._0x531b46}=_0x3fdcd0({},$,this['_config']);this[_0x356bbe(0x1d7)][_0x356bbe(0x220)](Ue,_0x531b46);}[_0x36f017(0x1e3)](){var _0x170eda=_0x36f017;_0x29e73f(this['_injector'],_0x5e60eb([[L],[m],[b],[I]],this['_config'][_0x170eda(0x22c)])),_0x184d91(this[_0x170eda(0x1d6)],[[b]]);}[_0x36f017(0x229)](){var _0x4a7004=_0x36f017;_0x184d91(this[_0x4a7004(0x1d6)],[[I]]);}};J(O,_0x36f017(0x207),_0x3488c4[_0x36f017(0x1fd)]),J(O,_0x36f017(0x248),Ze),O=Be([_0x3c9495(_0x2e766a),F(0x1,_0x3b82a6(_0x11e997)),F(0x2,_0x2ade0c)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x20ffcd=_0x2eb9;(function(_0x2b75fc,_0x27b805){var _0x3d8cbe=_0x2eb9,_0x51e224=_0x2b75fc();while(!![]){try{var _0x3de8ba=parseInt(_0x3d8cbe(0xc1))/0x1*(parseInt(_0x3d8cbe(0xb3))/0x2)+-parseInt(_0x3d8cbe(0x124))/0x3*(-parseInt(_0x3d8cbe(0x131))/0x4)+-parseInt(_0x3d8cbe(0x91))/0x5+parseInt(_0x3d8cbe(0xf0))/0x6+-parseInt(_0x3d8cbe(0xc3))/0x7*(-parseInt(_0x3d8cbe(0xef))/0x8)+parseInt(_0x3d8cbe(0xd8))/0x9*(parseInt(_0x3d8cbe(0x116))/0xa)+-parseInt(_0x3d8cbe(0xa6))/0xb*(parseInt(_0x3d8cbe(0x12e))/0xc);if(_0x3de8ba===_0x27b805)break;else _0x51e224['push'](_0x51e224['shift']());}catch(_0x251c97){_0x51e224['push'](_0x51e224['shift']());}}}(_0x9300,0x4beb2));var q=Object[_0x20ffcd(0x121)],z=(_0x36d883,_0x37b2e7,_0x1d3ce6)=>_0x37b2e7 in _0x36d883?q(_0x36d883,_0x37b2e7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d3ce6}):_0x36d883[_0x37b2e7]=_0x1d3ce6,d=(_0x2a1788,_0x4628c7,_0x1b4fc7)=>z(_0x2a1788,typeof _0x4628c7!=_0x20ffcd(0x12f)?_0x4628c7+'':_0x4628c7,_0x1b4fc7);import{Disposable as _0x539b1d,toDisposable as _0x6f4b16,IUniverInstanceService as _0x43cc96,Inject as _0x42b534,Injector as _0x59a932,IConfigService as _0x54be48,ICommandService as _0x53f3c0,RxDisposable as _0x483a0a,UniverInstanceType as _0x38c32e,DisposableCollection as _0x1c0ac7,CommandType as _0x406405,DependentOn as _0x50aa05,Plugin as _0x574128,merge as _0x78447b,registerDependencies as _0x3e2832,mergeOverrideWithDependencies as _0x360b36,touchDependencies as _0x5b4f9e}from'@univerjs/core';import{useDependency as _0x26c555,useObservable as _0x45febd,IUIPartsService as _0x4f299e,BuiltInUIPart as _0x1b50ea,connectInjector as _0x5bf79f}from'@univerjs/ui';function _0x9300(){var _0x23791d=['http://www.w3.org/2000/svg','type','current','_presenter','event$','next','createInstance','_injector','97176KcQeIh','3568134HIkJGi','_beIdle','idSuffix','PRESENTING','params','children','onCommandExecuted','length','send','LIVESHARE_OPERATION','init','className','getInitialStates','onRendered','entries','_status','fill','defIds','status$','values','_status$','_sharedOperations','unitId','subscribe','_collabSessionService','_startFollowing','_handleOnline','Stop\x20following','string','hasOwnProperty','has','icon','_handleOperation','operations','ONLINE','includes','live-share-icon','_univerInstanceService','131320zMqAaY','UNIVER_SHEET','onStarting','registerSharedOperation','_reporters','sheet','reverse','text','getMemberID','_uiPartsService','startFollowing','defineProperty','path','_startPresenting','474795KuCpja','propertyIsEnumerable','extend','UNIVER_UNKNOWN','indexOf','presenter','univer-mb-3\x20univer-w-full\x20univer-text-sm','map','setConfig','_handleOffline','24jqwAfF','symbol','Start','12wFKvpI','_entities','FOLLOWING','univerjs-icon\x20univerjs-icon-','stopFollowing','LIVESHARE_FETCH_OPERATIONS','from','data','_fetchOperations','override','getValue','_config','tryStartPresenting','toString','unsubscribe','_liveShareService','_handleNewChangeSets','You\x27re\x20presenting\x20the\x20document','concat','currentColor','dispose','1422970oPwGrh','_commandService','offline','none','You\x27are\x20offline.','idle','UniverIcon','_unitID','add','You\x27re\x20not\x20following\x20the\x20presenter','following','getCurrentTypeOfUnit$','_commandDisposable','getOwnPropertySymbols','apply','getTypeOfUnitAdded$','shouldShareOperation','requireSession','disposeWithMe','live-share.config','evenodd','6671423BhVXNS','presenting','registerInitialStateReporter','LIVESHARE_REQUEST_HOST','getUnitId','_configService','LIVESHARE_TERMINATE','You\x27re\x20following\x20the\x20presenter','defs','getTypeOfUnitDisposed$','forEach','NOT_FOLLOWING','assign','2ZxhInW','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','Present\x20this\x20document','call','dispose$','set','NEW_CHANGESETS','_mountLiveShare','executeCommand','div','memberID','delete','_stopPresenting','not-following','203605TvScnc','stopPresenting','301MPArvr','getConfig','prototype','getOwnPropertyDescriptor','colorChannel1','_startLiveShareCoordinator','mutations','_handleTerminate','find','IDLE','_init','displayName','_stopFollowing','mask','LiveShareIcon','svg','default','xlink:href','registerComponent','SAME_OPERATION_SHARE_INTERVAL','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','9XvnfAd','clear','attrs','use','pipe','OFFLINE','url(#$1','stringify','button','tag','getLiveShareCoordinator','_collabSession','_handleNewHost','replace','get'];_0x9300=function(){return _0x23791d;};return _0x9300();}import{jsx as _0x157b9a,jsxs as _0x473891,Fragment as _0x55b1a3}from'react/jsx-runtime';import{Dropdown as _0xb7599b,clsx as _0x400561,Button as _0x28c9ca}from'@univerjs/design';import{forwardRef as _0x7a472b,useRef as _0x4928e4,createElement as _0x23f67a,useState as _0x3d360d,useEffect as _0x752798}from'react';import{CollaborationEvent as _0x2abc7e,parseProtocolChangeset as _0x5d4330}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x4f9f70,SessionStatus as _0x1cf2a1,UniverCollaborationClientPlugin as _0x2f65a8}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x3240f5,SetWorksheetActiveOperation as _0x208319}from'@univerjs/sheets';import{BehaviorSubject as _0x1e4a81,Subject as _0x396bc7}from'rxjs';import{takeUntil as _0x5b2945,throttleTime as _0x5c2331}from'rxjs/operators';import{SetZoomRatioOperation as _0x5deda2,SetScrollOperation as _0x5abaaa}from'@univerjs/sheets-ui';var c=function(){var _0xf16334=_0x20ffcd;return c=Object[_0xf16334(0xb2)]||function(_0x5eb54e){var _0x33d02a=_0xf16334;for(var _0x3a9f7b,_0x4af609=0x1,_0x9e4e20=arguments[_0x33d02a(0xf7)];_0x4af609<_0x9e4e20;_0x4af609++){_0x3a9f7b=arguments[_0x4af609];for(var _0x24a116 in _0x3a9f7b)Object[_0x33d02a(0xc5)]['hasOwnProperty'][_0x33d02a(0xb6)](_0x3a9f7b,_0x24a116)&&(_0x5eb54e[_0x24a116]=_0x3a9f7b[_0x24a116]);}return _0x5eb54e;},c[_0xf16334(0x9f)](this,arguments);},Oe=function(_0x3942af,_0x4422c1){var _0xe8340f=_0x20ffcd,_0x4d91ae={};for(var _0x481cf8 in _0x3942af)Object['prototype'][_0xe8340f(0x10d)]['call'](_0x3942af,_0x481cf8)&&_0x4422c1[_0xe8340f(0x128)](_0x481cf8)<0x0&&(_0x4d91ae[_0x481cf8]=_0x3942af[_0x481cf8]);if(_0x3942af!=null&&typeof Object[_0xe8340f(0x9e)]=='function'){for(var _0x36f605=0x0,_0x481cf8=Object['getOwnPropertySymbols'](_0x3942af);_0x36f605<_0x481cf8['length'];_0x36f605++)_0x4422c1['indexOf'](_0x481cf8[_0x36f605])<0x0&&Object[_0xe8340f(0xc5)][_0xe8340f(0x125)][_0xe8340f(0xb6)](_0x3942af,_0x481cf8[_0x36f605])&&(_0x4d91ae[_0x481cf8[_0x36f605]]=_0x3942af[_0x481cf8[_0x36f605]]);}return _0x4d91ae;},W=_0x7a472b(function(_0x20cb53,_0x8e1fe0){var _0x10ac0b=_0x20ffcd,_0x1b2cce=_0x20cb53['icon'],_0x9d6e3e=_0x20cb53['id'],_0x473ed6=_0x20cb53[_0x10ac0b(0xfb)],_0x290904=_0x20cb53[_0x10ac0b(0x126)],_0x4fa4f4=Oe(_0x20cb53,[_0x10ac0b(0x10f),'id',_0x10ac0b(0xfb),'extend']),_0x260855=_0x10ac0b(0x134)[_0x10ac0b(0x8e)](_0x9d6e3e,'\x20')[_0x10ac0b(0x8e)](_0x473ed6||'')['trim'](),_0x418b50=_0x4928e4('_'[_0x10ac0b(0x8e)](Ne()));return Y(_0x1b2cce,''[_0x10ac0b(0x8e)](_0x9d6e3e),{'defIds':_0x1b2cce[_0x10ac0b(0x101)],'idSuffix':_0x418b50['current']},c({'ref':_0x8e1fe0,'className':_0x260855},_0x4fa4f4),_0x290904);});function Y(_0x4332a8,_0x53ab35,_0xacdba,_0x1444da,_0x19d1da){var _0x54b9c9=_0x20ffcd;return _0x23f67a(_0x4332a8[_0x54b9c9(0xe1)],c(c({'key':_0x53ab35},Ee(_0x4332a8,_0xacdba,_0x19d1da)),_0x1444da),(we(_0x4332a8,_0xacdba)[_0x54b9c9(0xf5)]||[])[_0x54b9c9(0x12b)](function(_0x176e99,_0x210eb2){var _0x1c88de=_0x54b9c9;return Y(_0x176e99,''['concat'](_0x53ab35,'-')['concat'](_0x4332a8['tag'],'-')[_0x1c88de(0x8e)](_0x210eb2),_0xacdba,void 0x0,_0x19d1da);}));}function Ee(_0x8203fc,_0x232873,_0x146f8e){var _0x320c35=_0x20ffcd,_0x132089=c({},_0x8203fc['attrs']);_0x146f8e!=null&&_0x146f8e['colorChannel1']&&_0x132089[_0x320c35(0x100)]===_0x320c35(0xc7)&&(_0x132089[_0x320c35(0x100)]=_0x146f8e[_0x320c35(0xc7)]),_0x8203fc[_0x320c35(0xe1)]==='mask'&&_0x132089['id']&&(_0x132089['id']=_0x132089['id']+_0x232873[_0x320c35(0xf2)]),Object['entries'](_0x132089)[_0x320c35(0xb0)](function(_0x4bd1a8){var _0x4ca582=_0x320c35,_0x1ef676=_0x4bd1a8[0x0],_0x2068e0=_0x4bd1a8[0x1];_0x1ef676===_0x4ca582(0xd0)&&typeof _0x2068e0==_0x4ca582(0x10c)&&(_0x132089[_0x1ef676]=_0x2068e0[_0x4ca582(0xe5)](/url\(#(.*)\)/,_0x4ca582(0xde)['concat'](_0x232873[_0x4ca582(0xf2)],')')));});var _0x4f0b36=_0x232873[_0x320c35(0x101)];return!_0x4f0b36||_0x4f0b36[_0x320c35(0xf7)]===0x0||(_0x8203fc[_0x320c35(0xe1)]===_0x320c35(0xdb)&&_0x132089[_0x320c35(0xd4)]&&(_0x132089[_0x320c35(0xd4)]=_0x132089[_0x320c35(0xd4)]+_0x232873[_0x320c35(0xf2)]),Object[_0x320c35(0xfe)](_0x132089)['forEach'](function(_0x2a0c26){var _0x3f65b4=_0x320c35,_0x4983e2=_0x2a0c26[0x0],_0x39ddfc=_0x2a0c26[0x1];typeof _0x39ddfc=='string'&&(_0x132089[_0x4983e2]=_0x39ddfc[_0x3f65b4(0xe5)](/url\(#(.*)\)/,_0x3f65b4(0xde)[_0x3f65b4(0x8e)](_0x232873['idSuffix'],')')));})),_0x132089;}function we(_0x1b0d58,_0x1002f7){var _0x43d901=_0x20ffcd,_0x123073,_0x2e0fae=_0x1002f7[_0x43d901(0x101)];return!_0x2e0fae||_0x2e0fae[_0x43d901(0xf7)]===0x0?_0x1b0d58:_0x1b0d58[_0x43d901(0xe1)]===_0x43d901(0xae)&&(!((_0x123073=_0x1b0d58[_0x43d901(0xf5)])===null||_0x123073===void 0x0)&&_0x123073[_0x43d901(0xf7)])?c(c({},_0x1b0d58),{'children':_0x1b0d58[_0x43d901(0xf5)][_0x43d901(0x12b)](function(_0x32f4b3){var _0x1df102=_0x43d901;return typeof _0x32f4b3['attrs']['id']==_0x1df102(0x10c)&&_0x2e0fae&&_0x2e0fae[_0x1df102(0x113)](_0x32f4b3['attrs']['id'])?c(c({},_0x32f4b3),{'attrs':c(c({},_0x32f4b3[_0x1df102(0xda)]),{'id':_0x32f4b3[_0x1df102(0xda)]['id']+_0x1002f7['idSuffix']})}):_0x32f4b3;})}):_0x1b0d58;}function Ne(){var _0x474e05=_0x20ffcd;return Math['random']()[_0x474e05(0x89)](0x24)['substring'](0x2,0x8);}W[_0x20ffcd(0xce)]=_0x20ffcd(0x97);var Ce={'tag':_0x20ffcd(0xd2),'attrs':{'xmlns':_0x20ffcd(0xe7),'fill':_0x20ffcd(0x94),'viewBox':'0\x200\x2017\x2017','width':'1em','height':'1em'},'children':[{'tag':_0x20ffcd(0x122),'attrs':{'fill':_0x20ffcd(0x8f),'d':_0x20ffcd(0xb4)}},{'tag':'path','attrs':{'fill':_0x20ffcd(0x8f),'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':_0x20ffcd(0xa5),'clipRule':_0x20ffcd(0xa5)}}]},B=_0x7a472b(function(_0x434678,_0x1f52f2){var _0x302b39=_0x20ffcd;return _0x23f67a(W,Object['assign']({},_0x434678,{'id':_0x302b39(0x114),'ref':_0x1f52f2,'icon':Ce}));});function _0x2eb9(_0x5dfbc0,_0x4ef128){var _0x9300a0=_0x9300();return _0x2eb9=function(_0x2eb90b,_0x2124eb){_0x2eb90b=_0x2eb90b-0x85;var _0x1c9c27=_0x9300a0[_0x2eb90b];return _0x1c9c27;},_0x2eb9(_0x5dfbc0,_0x4ef128);}B[_0x20ffcd(0xce)]=_0x20ffcd(0xd1);class L extends _0x539b1d{constructor(){var _0x35854c=_0x20ffcd;super(...arguments),d(this,_0x35854c(0x105),new Set()),d(this,_0x35854c(0x11a),new Set());}[_0x20ffcd(0x119)](_0x398132){var _0x448957=_0x20ffcd;return this[_0x448957(0x105)][_0x448957(0x99)](_0x398132),_0x6f4b16(()=>this[_0x448957(0x105)][_0x448957(0xbe)](_0x398132));}[_0x20ffcd(0xa8)](_0x5c8e56){var _0x39a15a=_0x20ffcd;return this[_0x39a15a(0x11a)][_0x39a15a(0x99)](_0x5c8e56),_0x6f4b16(()=>this[_0x39a15a(0x11a)]['delete'](_0x5c8e56));}[_0x20ffcd(0xa1)](_0xcd336b){var _0x4c4bbb=_0x20ffcd;return this['_sharedOperations'][_0x4c4bbb(0x10e)](_0xcd336b);}[_0x20ffcd(0xfc)](_0x3f02a8){var _0x31e215=_0x20ffcd;return Array[_0x31e215(0x137)](this[_0x31e215(0x11a)])[_0x31e215(0x12b)](_0x38ff09=>_0x38ff09(_0x3f02a8));}}var De=Object[_0x20ffcd(0xc6)],Z=(_0x2867b1,_0x11cd36,_0x2a2236,_0x45b7b0)=>{var _0x192486=_0x20ffcd;for(var _0x140dc1=_0x45b7b0>0x1?void 0x0:_0x45b7b0?De(_0x11cd36,_0x2a2236):_0x11cd36,_0x39601a=_0x2867b1[_0x192486(0xf7)]-0x1,_0x5975a7;_0x39601a>=0x0;_0x39601a--)(_0x5975a7=_0x2867b1[_0x39601a])&&(_0x140dc1=_0x5975a7(_0x140dc1)||_0x140dc1);return _0x140dc1;},f=(_0x309e57,_0x795664)=>(_0xe5c25a,_0x49b8d3)=>_0x795664(_0xe5c25a,_0x49b8d3,_0x309e57);let m=class extends _0x483a0a{constructor(_0x49be32,_0x1f22e6,_0x5d3ae9){var _0x45eb05=_0x20ffcd;super(),d(this,_0x45eb05(0x132),new Map()),(this[_0x45eb05(0x115)]=_0x49be32,this['_injector']=_0x1f22e6,this['_collabSessionService']=_0x5d3ae9,this[_0x45eb05(0xcd)]());}async[_0x20ffcd(0xe2)](_0x4fc6eb){var _0x493172=_0x20ffcd;return this[_0x493172(0x132)]['has'](_0x4fc6eb)||await this['_startLiveShareCoordinator'](_0x4fc6eb),this[_0x493172(0x132)]['get'](_0x4fc6eb);}[_0x20ffcd(0xcd)](){var _0x21acef=_0x20ffcd;this[_0x21acef(0x115)][_0x21acef(0xa0)](_0x38c32e[_0x21acef(0x117)])['pipe'](_0x5b2945(this[_0x21acef(0xb7)]))[_0x21acef(0x107)](async _0x4f9ae6=>{var _0x589536=_0x21acef;const _0x40b3fe=_0x4f9ae6[_0x589536(0xaa)]();this[_0x589536(0x132)][_0x589536(0x10e)](_0x40b3fe)||this[_0x589536(0xc8)](_0x40b3fe);}),this[_0x21acef(0x115)][_0x21acef(0xaf)](_0x38c32e[_0x21acef(0x117)])['pipe'](_0x5b2945(this[_0x21acef(0xb7)]))[_0x21acef(0x107)](_0x527482=>{var _0x1618de=_0x21acef;const _0x5b5dd1=_0x527482[_0x1618de(0xaa)](),_0xc9b338=this[_0x1618de(0x132)][_0x1618de(0xe6)](_0x5b5dd1);_0xc9b338==null||_0xc9b338[_0x1618de(0x90)]();});}async[_0x20ffcd(0xc8)](_0x5e6fa6){var _0x27b1a0=_0x20ffcd;const _0x1d6e57=await this[_0x27b1a0(0x108)][_0x27b1a0(0xa2)](_0x5e6fa6),_0x3823e4=this[_0x27b1a0(0xee)][_0x27b1a0(0xed)](C,_0x5e6fa6,_0x1d6e57);return _0x3823e4[_0x27b1a0(0xfa)](),this[_0x27b1a0(0x132)][_0x27b1a0(0xb8)](_0x5e6fa6,_0x3823e4),_0x3823e4;}};m=Z([f(0x0,_0x43cc96),f(0x1,_0x42b534(_0x59a932)),f(0x2,_0x42b534(_0x4f9f70))],m);var h=(_0x3dcbf5=>(_0x3dcbf5['OFFLINE']=_0x20ffcd(0x93),_0x3dcbf5[_0x20ffcd(0xcc)]=_0x20ffcd(0x96),_0x3dcbf5['FOLLOWING']=_0x20ffcd(0x9b),_0x3dcbf5['NOT_FOLLOWING']='not-following',_0x3dcbf5[_0x20ffcd(0xf3)]=_0x20ffcd(0xa7),_0x3dcbf5))(h||{});const xe=_0x20ffcd(0xd6),Le=0xc8;let C=class extends _0x483a0a{constructor(_0x309cbc,_0x4cabe9,_0x8e41c7,_0x4c01f4,_0x160d03){var _0x33d594=_0x20ffcd;super(),d(this,'_status$',new _0x1e4a81(_0x33d594(0x96))),d(this,_0x33d594(0x102),this['_status$']['asObservable']()),d(this,'_init',!0x1),d(this,_0x33d594(0x9d),null),d(this,_0x33d594(0xea),null),(this[_0x33d594(0x98)]=_0x309cbc,this[_0x33d594(0xe3)]=_0x4cabe9,this['_configService']=_0x8e41c7,this[_0x33d594(0x8b)]=_0x4c01f4,this[_0x33d594(0x92)]=_0x160d03);}get['_status'](){var _0xed1284=_0x20ffcd;return this[_0xed1284(0x104)][_0xed1284(0x86)]();}[_0x20ffcd(0x90)](){var _0xfeab79=_0x20ffcd,_0xe95d63;(_0xe95d63=this[_0xfeab79(0x9d)])==null||_0xe95d63[_0xfeab79(0x90)](),this[_0xfeab79(0x104)][_0xfeab79(0xec)](_0xfeab79(0x96)),this['_status$']['complete']();}['init'](){var _0x164c56=_0x20ffcd;this['_init']||(this['_init']=!0x0,this[_0x164c56(0xe3)]['sessionStatus$'][_0x164c56(0xdc)](_0x5b2945(this[_0x164c56(0xb7)]))[_0x164c56(0x107)](_0x4f2f8e=>{var _0x5ebdc3=_0x164c56;switch(_0x4f2f8e){case _0x1cf2a1['OFFLINE']:this[_0x5ebdc3(0x12d)]();break;case _0x1cf2a1[_0x5ebdc3(0x112)]:this[_0x5ebdc3(0x10a)]();break;}}),this[_0x164c56(0xe3)][_0x164c56(0xeb)][_0x164c56(0xdc)](_0x5b2945(this[_0x164c56(0xb7)]))[_0x164c56(0x107)](_0x582462=>{var _0x3aa487=_0x164c56;const {eventID:_0x57758a}=_0x582462;switch(_0x57758a){case _0x2abc7e['LIVESHARE_NEW_HOST']:this[_0x3aa487(0xe4)](_0x582462);break;case _0x2abc7e[_0x3aa487(0xf9)]:this['_handleOperation'](_0x582462);break;case _0x2abc7e[_0x3aa487(0xac)]:this[_0x3aa487(0xca)]();break;case _0x2abc7e[_0x3aa487(0xb9)]:this[_0x3aa487(0x8c)](_0x582462);break;}}));}[_0x20ffcd(0x88)](){var _0x4260bf=_0x20ffcd;this[_0x4260bf(0xe3)][_0x4260bf(0xf8)]({'eventID':_0x2abc7e[_0x4260bf(0xa9)],'data':{'unitID':this[_0x4260bf(0x98)],'userID':this['_collabSession'][_0x4260bf(0x11e)]()}},this['_unitID']);}[_0x20ffcd(0xc2)](){var _0x29cc31=_0x20ffcd;this[_0x29cc31(0xff)]==='presenting'&&(this[_0x29cc31(0x104)][_0x29cc31(0xec)]('idle'),this[_0x29cc31(0xe3)][_0x29cc31(0xf8)]({'eventID':_0x2abc7e[_0x29cc31(0xac)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x20ffcd(0x120)](){var _0x36dbf3=_0x20ffcd;this[_0x36dbf3(0xff)]===_0x36dbf3(0xc0)&&(this[_0x36dbf3(0x104)][_0x36dbf3(0xec)](_0x36dbf3(0x9b)),this[_0x36dbf3(0x109)]());}[_0x20ffcd(0x135)](){var _0x22cd64=_0x20ffcd;this[_0x22cd64(0xff)]===_0x22cd64(0x9b)&&this[_0x22cd64(0xcf)]();}[_0x20ffcd(0xe4)](_0x197f32){var _0x39a9b5=_0x20ffcd;const {presenter:_0x1c969e}=_0x197f32[_0x39a9b5(0x138)],_0x8702b3=this[_0x39a9b5(0xe3)][_0x39a9b5(0x11e)]();this[_0x39a9b5(0xea)]=_0x1c969e,_0x1c969e===_0x8702b3?(this[_0x39a9b5(0xcf)](),this[_0x39a9b5(0x123)]()):this[_0x39a9b5(0xff)]!==_0x39a9b5(0xc0)&&(this[_0x39a9b5(0xbf)](),this['_startFollowing']());}[_0x20ffcd(0x139)](){var _0x2b7ab1=_0x20ffcd;const _0x4aad35={'eventID':_0x2abc7e[_0x2b7ab1(0x136)]};this[_0x2b7ab1(0xe3)][_0x2b7ab1(0xf8)](_0x4aad35,this['_unitID']);}['_handleTerminate'](){var _0x338ba1=_0x20ffcd;this[_0x338ba1(0xea)]=null,this[_0x338ba1(0xff)]!=='presenting'&&this[_0x338ba1(0xf1)]();}[_0x20ffcd(0x8c)](_0x1e407d){var _0x15de91=_0x20ffcd;if(this[_0x15de91(0xff)]===_0x15de91(0x9b)&&this['_presenter']===_0x1e407d[_0x15de91(0x138)][_0x15de91(0xbd)]){const _0xb04db0=_0x5d4330(_0x1e407d[_0x15de91(0x138)])[_0x15de91(0xc9)][_0x15de91(0x11c)]()[_0x15de91(0xcb)](_0x1fc8b9=>_0x1fc8b9['id']===_0x3240f5['id']);if(_0xb04db0){const _0x2d5386=_0xb04db0[_0x15de91(0xf4)][_0x15de91(0x106)],_0x2e3c61=_0xb04db0[_0x15de91(0xf4)][_0x15de91(0x11b)]['id'];setTimeout(()=>{var _0x1ecf1b=_0x15de91;this[_0x1ecf1b(0x92)][_0x1ecf1b(0xbb)](_0x208319['id'],{'unitId':_0x2d5386,'subUnitId':_0x2e3c61},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0xc76bac=_0x20ffcd;this[_0xc76bac(0x104)]['next'](_0xc76bac(0xa7));const _0xd3dee4=new Map(),_0x529bd5=this[_0xc76bac(0x9d)]=new _0x1c0ac7();_0x529bd5[_0xc76bac(0x99)](_0x6f4b16(()=>{var _0xc4795=_0xc76bac;_0xd3dee4[_0xc4795(0xb0)](_0x26eca9=>_0x26eca9['complete']()),_0xd3dee4[_0xc4795(0xd9)]();})),_0x529bd5[_0xc76bac(0x99)](this[_0xc76bac(0x92)][_0xc76bac(0xf6)](_0xb0c0a3=>{var _0x3f4e5c=_0xc76bac,_0x23b1a6;if(_0xb0c0a3[_0x3f4e5c(0xe8)]!==_0x406405['OPERATION']||!this[_0x3f4e5c(0x8b)][_0x3f4e5c(0xa1)](_0xb0c0a3['id']))return;const {id:_0x1b43d1}=_0xb0c0a3;let _0x4d2385;_0xd3dee4['has'](_0x1b43d1)?_0x4d2385=_0xd3dee4[_0x3f4e5c(0xe6)](_0x1b43d1):(_0x4d2385=new _0x396bc7(),_0xd3dee4[_0x3f4e5c(0xb8)](_0x1b43d1,_0x4d2385),_0x4d2385[_0x3f4e5c(0xdc)](_0x5c2331((_0x23b1a6=this[_0x3f4e5c(0xab)][_0x3f4e5c(0xc4)](xe))!=null?_0x23b1a6:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3f4e5c(0x107)](_0x4d89d3=>{var _0x1a35b2=_0x3f4e5c;this[_0x1a35b2(0xe3)]['send']({'eventID':_0x2abc7e[_0x1a35b2(0xf9)],'data':{'unitID':this['_unitID'],'operations':{[_0x4d89d3['id']]:{'id':_0x4d89d3['id'],'params':JSON[_0x1a35b2(0xdf)](_0x4d89d3[_0x1a35b2(0xf4)])}}}},this[_0x1a35b2(0x98)]);})),_0x4d2385[_0x3f4e5c(0xec)](_0xb0c0a3);})),this['_liveShareService'][_0xc76bac(0xfc)](this[_0xc76bac(0x98)])[_0xc76bac(0xb0)](_0x128ef1=>this[_0xc76bac(0xe3)]['send']({'eventID':_0x2abc7e[_0xc76bac(0xf9)],'data':{'unitID':this['_unitID'],'operations':{[_0x128ef1['id']]:{'id':_0x128ef1['id'],'params':JSON['stringify'](_0x128ef1[_0xc76bac(0xf4)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x5ae72b=_0x20ffcd,_0x6ce1c7;this['_status$'][_0x5ae72b(0xec)](_0x5ae72b(0x96)),(_0x6ce1c7=this['_commandDisposable'])==null||_0x6ce1c7[_0x5ae72b(0x90)](),this[_0x5ae72b(0x9d)]=null;}['_startFollowing'](){var _0x5dbe43=_0x20ffcd,_0x501234;(_0x501234=this[_0x5dbe43(0x9d)])==null||_0x501234[_0x5dbe43(0x90)](),this[_0x5dbe43(0x104)][_0x5dbe43(0xec)](_0x5dbe43(0x9b));}[_0x20ffcd(0xf1)](){var _0x50f650=_0x20ffcd,_0xd6ff21;this['_status$'][_0x50f650(0xec)](_0x50f650(0x96)),(_0xd6ff21=this[_0x50f650(0x9d)])==null||_0xd6ff21['dispose'](),this[_0x50f650(0x9d)]=null;}[_0x20ffcd(0xcf)](){var _0xa90780=_0x20ffcd,_0x16663b;this['_status$'][_0xa90780(0xec)](_0xa90780(0xc0)),(_0x16663b=this[_0xa90780(0x9d)])==null||_0x16663b[_0xa90780(0x90)]();}[_0x20ffcd(0x110)](_0x2e7910){var _0x2eb80d=_0x20ffcd;if(['presenting',_0x2eb80d(0xc0),'offline'][_0x2eb80d(0x113)](this[_0x2eb80d(0xff)])||!_0x2e7910['data'][_0x2eb80d(0x129)]||_0x2e7910[_0x2eb80d(0x138)]['presenter']===this[_0x2eb80d(0xe3)]['getMemberID']())return;this[_0x2eb80d(0xff)]===_0x2eb80d(0x96)&&this[_0x2eb80d(0x109)]();const _0x260277=_0x2e7910['data'][_0x2eb80d(0x111)];Object[_0x2eb80d(0x103)](_0x260277)[_0x2eb80d(0xb0)](_0x3ac204=>{var _0x25c849=_0x2eb80d;this['_commandService']['executeCommand'](_0x3ac204['id'],_0x3ac204[_0x25c849(0xf4)]?JSON['parse'](_0x3ac204['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1754a8=_0x20ffcd,_0x1a8c5a;this[_0x1754a8(0x104)][_0x1754a8(0xec)](_0x1754a8(0x93)),(_0x1a8c5a=this[_0x1754a8(0x9d)])==null||_0x1a8c5a['dispose']();}[_0x20ffcd(0x10a)](){var _0x1dd754=_0x20ffcd;this[_0x1dd754(0x104)]['next'](_0x1dd754(0x96)),this['_fetchOperations']();}};C=Z([f(0x2,_0x54be48),f(0x3,_0x42b534(L)),f(0x4,_0x53f3c0)],C);function ye(){var _0x2885bf=_0x20ffcd;const _0x52abed=_0x26c555(m),_0x1eee02=_0x26c555(_0x43cc96),_0x1e7bdd=_0x45febd(()=>_0x1eee02[_0x2885bf(0x9c)](_0x38c32e['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0xb49b80,_0x3998c2]=_0x3d360d(null),[_0x552f57,_0x85b75a]=_0x3d360d(h[_0x2885bf(0xcc)]),_0x4a8976=_0x4928e4(null);return _0x752798(()=>(_0x1e7bdd&&_0x52abed[_0x2885bf(0xe2)](_0x1e7bdd[_0x2885bf(0xaa)]())['then'](_0x188a24=>{_0x3998c2(_0x188a24),_0x4a8976['current']=_0x188a24['status$']['subscribe'](_0x3a23f4=>{_0x85b75a(_0x3a23f4);});}),()=>{var _0x178ad4=_0x2885bf,_0x50dfb9;(_0x50dfb9=_0x4a8976['current'])==null||_0x50dfb9[_0x178ad4(0x8a)](),_0x4a8976[_0x178ad4(0xe9)]=null;}),[_0x1e7bdd,_0x52abed]),_0xb49b80?_0x157b9a(_0xb7599b,{'align':'end','disabled':_0x552f57===h[_0x2885bf(0xdd)],'className':_0x2885bf(0xd7),'overlay':_0x157b9a(Re,{'status':_0x552f57,'coordinator':_0xb49b80}),'children':_0x157b9a(_0x2885bf(0xe0),{'className':_0x400561('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x552f57===h[_0x2885bf(0xdd)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x552f57!==h['OFFLINE']}),'type':'button','children':_0x157b9a(B,{'className':'univer-size-4'})})}):null;}function Re(_0x1068e6){var _0x18633d=_0x20ffcd;const {status:_0x3a9292,coordinator:_0xc82d20}=_0x1068e6;switch(_0x3a9292){case h[_0x18633d(0xcc)]:return _0x157b9a(Pe,{'coordinator':_0xc82d20});case h[_0x18633d(0x133)]:return _0x157b9a(Ae,{'coordinator':_0xc82d20});case h[_0x18633d(0xb1)]:return _0x157b9a(Te,{'coordinator':_0xc82d20});case h[_0x18633d(0xdd)]:return _0x157b9a(Fe,{});case h[_0x18633d(0xf3)]:return _0x157b9a($e,{'coordinator':_0xc82d20});default:return null;}}function Pe(_0x24d3d8){var _0x1e31b7=_0x20ffcd;const {coordinator:_0x557f16}=_0x24d3d8;return _0x473891(_0x55b1a3,{'children':[_0x157b9a(_0x1e31b7(0xbc),{'className':_0x1e31b7(0x12a),'children':_0x1e31b7(0xb5)}),_0x157b9a(_0x28c9ca,{'onClick':()=>_0x557f16[_0x1e31b7(0x88)](),'children':_0x1e31b7(0x130)})]});}function Ae(_0x3359cd){var _0x87f096=_0x20ffcd;const {coordinator:_0x514ce6}=_0x3359cd;return _0x473891(_0x55b1a3,{'children':[_0x157b9a(_0x87f096(0xbc),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x87f096(0xad)}),_0x157b9a(_0x28c9ca,{'onClick':()=>_0x514ce6[_0x87f096(0x135)](),'children':_0x87f096(0x10b)})]});}function Te(_0x282133){var _0x3563bf=_0x20ffcd;const {coordinator:_0x2f9c0f}=_0x282133;return _0x473891(_0x55b1a3,{'children':[_0x157b9a(_0x3563bf(0xbc),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3563bf(0x9a)}),_0x157b9a(_0x28c9ca,{'variant':_0x3563bf(0x11d),'onClick':()=>_0x2f9c0f['startFollowing'](),'children':'Start\x20following'})]});}function $e(_0x3d8f5b){var _0x237ffe=_0x20ffcd;const {coordinator:_0x5e3865}=_0x3d8f5b;return _0x473891(_0x55b1a3,{'children':[_0x157b9a(_0x237ffe(0xbc),{'className':_0x237ffe(0x12a),'children':_0x237ffe(0x8d)}),_0x157b9a(_0x28c9ca,{'variant':_0x237ffe(0xd3),'onClick':()=>_0x5e3865[_0x237ffe(0xc2)](),'children':'Stop\x20presenting'})]});}function Fe(){var _0x5172e2=_0x20ffcd;return _0x157b9a(_0x55b1a3,{'children':_0x5172e2(0x95)});}var He=Object[_0x20ffcd(0xc6)],je=(_0x2591b1,_0x395329,_0x5b527a,_0x4a2a75)=>{var _0x705bae=_0x20ffcd;for(var _0x29f307=_0x4a2a75>0x1?void 0x0:_0x4a2a75?He(_0x395329,_0x5b527a):_0x395329,_0x2ce23b=_0x2591b1[_0x705bae(0xf7)]-0x1,_0x3381a6;_0x2ce23b>=0x0;_0x2ce23b--)(_0x3381a6=_0x2591b1[_0x2ce23b])&&(_0x29f307=_0x3381a6(_0x29f307)||_0x29f307);return _0x29f307;},T=(_0x1bd158,_0x4869a7)=>(_0x4f7c8f,_0x4224c2)=>_0x4869a7(_0x4f7c8f,_0x4224c2,_0x1bd158);let I=class extends _0x539b1d{constructor(_0x1b71fa,_0x4b1cd2){var _0x114ab5=_0x20ffcd;super(),this[_0x114ab5(0xee)]=_0x1b71fa,this['_uiPartsService']=_0x4b1cd2,this[_0x114ab5(0xba)]();}[_0x20ffcd(0xba)](){var _0x4da0f4=_0x20ffcd;this[_0x4da0f4(0xa3)](this[_0x4da0f4(0x11f)][_0x4da0f4(0xd5)](_0x1b50ea['HEADER_MENU'],()=>_0x5bf79f(ye,this[_0x4da0f4(0xee)])));}};I=je([T(0x0,_0x42b534(_0x59a932)),T(0x1,_0x4f299e)],I);const Ue=_0x20ffcd(0xa4),$={};var Ve=Object[_0x20ffcd(0xc6)],Me=(_0x518de8,_0x176f5e,_0x9a33e8,_0x2e4233)=>{var _0x4c149b=_0x20ffcd;for(var _0x18043=_0x2e4233>0x1?void 0x0:_0x2e4233?Ve(_0x176f5e,_0x9a33e8):_0x176f5e,_0x686b38=_0x518de8[_0x4c149b(0xf7)]-0x1,_0x9ac174;_0x686b38>=0x0;_0x686b38--)(_0x9ac174=_0x518de8[_0x686b38])&&(_0x18043=_0x9ac174(_0x18043)||_0x18043);return _0x18043;},ke=(_0x65203f,_0x380946)=>(_0x5a2139,_0x4a9346)=>_0x380946(_0x5a2139,_0x4a9346,_0x65203f);let b=class extends _0x539b1d{constructor(_0x56f409){var _0x3514e9=_0x20ffcd;super(),this['_liveShareService']=_0x56f409,this[_0x3514e9(0xcd)]();}[_0x20ffcd(0xcd)](){var _0x117401=_0x20ffcd;[_0x5deda2['id'],_0x5abaaa['id'],_0x208319['id']][_0x117401(0xb0)](_0x2cfc1c=>{var _0x3f2511=_0x117401;this[_0x3f2511(0xa3)](this['_liveShareService'][_0x3f2511(0x119)](_0x2cfc1c));});}};b=Me([ke(0x0,_0x42b534(L))],b);var Ge=Object[_0x20ffcd(0x121)],We=Object[_0x20ffcd(0xc6)],Ye=(_0x145a97,_0x3782a8,_0x3dd16e)=>_0x3782a8 in _0x145a97?Ge(_0x145a97,_0x3782a8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3dd16e}):_0x145a97[_0x3782a8]=_0x3dd16e,Be=(_0x85c55e,_0x430f0f,_0x58ffe3,_0x4f5d8e)=>{var _0x36bee9=_0x20ffcd;for(var _0x1c6c40=_0x4f5d8e>0x1?void 0x0:_0x4f5d8e?We(_0x430f0f,_0x58ffe3):_0x430f0f,_0x1fd99e=_0x85c55e[_0x36bee9(0xf7)]-0x1,_0x524603;_0x1fd99e>=0x0;_0x1fd99e--)(_0x524603=_0x85c55e[_0x1fd99e])&&(_0x1c6c40=_0x524603(_0x1c6c40)||_0x1c6c40);return _0x1c6c40;},F=(_0x3e04e3,_0x2ab29d)=>(_0x503331,_0x34cd77)=>_0x2ab29d(_0x503331,_0x34cd77,_0x3e04e3),J=(_0x5c5914,_0x234b6c,_0x53e3bd)=>Ye(_0x5c5914,typeof _0x234b6c!=_0x20ffcd(0x12f)?_0x234b6c+'':_0x234b6c,_0x53e3bd);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x574128{constructor(_0x2b7eee=$,_0x56e332,_0x5da0a3){var _0x4bce4d=_0x20ffcd;super(),this[_0x4bce4d(0x87)]=_0x2b7eee,this[_0x4bce4d(0xee)]=_0x56e332,this[_0x4bce4d(0xab)]=_0x5da0a3;const {..._0x52a454}=_0x78447b({},$,this['_config']);this['_configService'][_0x4bce4d(0x12c)](Ue,_0x52a454);}[_0x20ffcd(0x118)](){var _0x541d34=_0x20ffcd;_0x3e2832(this[_0x541d34(0xee)],_0x360b36([[L],[m],[b],[I]],this[_0x541d34(0x87)][_0x541d34(0x85)])),_0x5b4f9e(this['_injector'],[[b]]);}[_0x20ffcd(0xfd)](){var _0x361f59=_0x20ffcd;_0x5b4f9e(this[_0x361f59(0xee)],[[I]]);}};J(O,'type',_0x38c32e[_0x20ffcd(0x127)]),J(O,'pluginName',Ze),O=Be([_0x50aa05(_0x2f65a8),F(0x1,_0x42b534(_0x59a932)),F(0x2,_0x54be48)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x4550(){var _0x22b084=['registerDependencies','indexOf','registerInitialStateReporter','get','colorChannel1','1694YBbRbK','_startPresenting','path','_unitID','tryStartPresenting','has','_handleNewHost','type','LiveShareService','_beIdle','UNIVER_LIVE_SHARE_PLUGIN','dispose','_injector','_mountLiveShare','useState','UniverCollaborationClientPlugin','requireSession','getConfig','setConfig','CollaborationSessionService','UNIVER_SHEET','pipe','onRendered','parse','ICommandService','UniverLiveSharePlugin','2YYLKCd','defIds','xlink:href','button','_uiPartsService','registerComponent','mask','@univerjs/ui','currentColor','includes','stringify','idle','_collabSession','Button','LIVESHARE_FETCH_OPERATIONS','LIVESHARE_NEW_HOST','getTypeOfUnitAdded$','getOwnPropertyDescriptor','UniverSheets','_handleOffline','FOLLOWING','useEffect','stopPresenting','UniverProCollaborationClient','SetWorksheetActiveOperation','entries','DependentOn','jsx','idSuffix','571605BVclAA','live-share.config','1em','connectInjector','http://www.w3.org/2000/svg','none','_handleOnline','LiveShareCoordinator','current','forwardRef','set','assign','object','startFollowing','NOT_FOLLOWING','You\x27re\x20not\x20following\x20the\x20presenter','className','_status','LiveShare','CollaborationEvent','DisposableCollection','IDLE','LiveShareController','displayName','Subject','defineProperty','createInstance','_univerInstanceService','_handleTerminate','univerjs-icon\x20univerjs-icon-','3254031OInQLU','getCurrentTypeOfUnit$','@univerjs/sheets','toDisposable','_collabSessionService','618nXTKfu','UNIVER_UNKNOWN','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','from','0\x200\x2017\x2017','LIVESHARE_REQUEST_HOST','@univerjs/sheets-ui','evenodd','data','IConfigService','UniverIcon','_entities','getTypeOfUnitDisposed$','takeUntil','UniverInstanceType','function','forEach','1385984gdyLpz','children','SetZoomRatioOperation','send','icon','unsubscribe','prototype','attrs','sessionStatus$','_stopFollowing','_init','offline','React','Dropdown','exports','end','_fetchOperations','operators','CommandType','You\x27re\x20following\x20the\x20presenter','_presenter','SetScrollOperation','shouldShareOperation','symbol','reverse','BuiltInUIPart','following','div','107385pOYfjM','call','length','univer-size-4','registerSharedOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleNewChangeSets','getValue','getLiveShareCoordinator','not-following','922060TegIou','ONLINE','map','Plugin','touchDependencies','apply','@univerjs-pro/collaboration-client','Start','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','presenting','UniverProCollaboration','IUIPartsService','merge','replace','mergeOverrideWithDependencies','fill','LIVESHARE_TERMINATE','getInitialStates','getOwnPropertySymbols','toString','LIVESHARE_OPERATION','subscribe','Disposable','getMemberID','IUniverInstanceService','NEW_CHANGESETS','You\x27are\x20offline.','sheet','_sharedOperations','Inject','UniverCore','useDependency','_liveShareService','Start\x20following','Injector','dispose$','mutations','_configService','add','operations','react/jsx-runtime','substring','override','Stop\x20following','_status$','stopFollowing','_commandService','_startLiveShareCoordinator','hasOwnProperty','find','_commandDisposable','onCommandExecuted','LiveShareIcon','memberID','concat','tag','url(#$1','asObservable','DesktopLiveShareController','UniverUi','presenter','init','pluginName','You\x27re\x20presenting\x20the\x20document','extend','unitId','defs','use','clear','amd','svg','_stopPresenting','status$','PRESENTING','throttleTime','_reporters','complete','RxDisposable','useRef','_startFollowing','string','disposeWithMe','38685qZTEQM','jsxs','getUnitId','Fragment','next','rxjs','clsx','OFFLINE','values','SessionStatus','@univerjs-pro/collaboration','params','useObservable','SAME_OPERATION_SHARE_INTERVAL','LiveShareStatus'];_0x4550=function(){return _0x22b084;};return _0x4550();}function _0x3c46(_0x29024a,_0xfbd0dc){var _0x4550af=_0x4550();return _0x3c46=function(_0x3c46c7,_0x3d080e){_0x3c46c7=_0x3c46c7-0x161;var _0x364579=_0x4550af[_0x3c46c7];return _0x364579;},_0x3c46(_0x29024a,_0xfbd0dc);}(function(_0x20e880,_0x179150){var _0x2f0f6c=_0x3c46,_0x16ab48=_0x20e880();while(!![]){try{var _0x429f6c=parseInt(_0x2f0f6c(0x1d8))/0x1+parseInt(_0x2f0f6c(0x206))/0x2*(parseInt(_0x2f0f6c(0x17c))/0x3)+-parseInt(_0x2f0f6c(0x186))/0x4+parseInt(_0x2f0f6c(0x223))/0x5+-parseInt(_0x2f0f6c(0x246))/0x6*(parseInt(_0x2f0f6c(0x1ec))/0x7)+-parseInt(_0x2f0f6c(0x257))/0x8+parseInt(_0x2f0f6c(0x241))/0x9;if(_0x429f6c===_0x179150)break;else _0x16ab48['push'](_0x16ab48['shift']());}catch(_0xc2f830){_0x16ab48['push'](_0x16ab48['shift']());}}}(_0x4550,0x1db47),function(_0x23e4d0,_0x28cd0f){var _0x30aae4=_0x3c46;typeof exports==_0x30aae4(0x22f)&&typeof module<'u'?_0x28cd0f(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x30aae4(0x1cb)]?define([_0x30aae4(0x16e),'@univerjs/core',_0x30aae4(0x20d),_0x30aae4(0x1ae),'@univerjs/design','react',_0x30aae4(0x1e2),_0x30aae4(0x18c),_0x30aae4(0x243),_0x30aae4(0x1dd),'rxjs/operators',_0x30aae4(0x24c)],_0x28cd0f):(_0x23e4d0=typeof globalThis<'u'?globalThis:_0x23e4d0||self,_0x28cd0f(_0x23e4d0['UniverProLiveShare']={},_0x23e4d0[_0x30aae4(0x1a4)],_0x23e4d0[_0x30aae4(0x1c1)],_0x23e4d0[_0x30aae4(0x16c)],_0x23e4d0['UniverDesign'],_0x23e4d0[_0x30aae4(0x16c)],_0x23e4d0[_0x30aae4(0x190)],_0x23e4d0[_0x30aae4(0x21d)],_0x23e4d0[_0x30aae4(0x218)],_0x23e4d0[_0x30aae4(0x1dd)],_0x23e4d0[_0x30aae4(0x1dd)][_0x30aae4(0x171)],_0x23e4d0['UniverSheetsUi']));}(this,function(_0x32a878,_0x2c8af3,_0x4d4b38,_0x40ffe6,_0x5146f0,_0x23d454,_0x1eba64,_0x127d70,_0x1da1f3,_0xecde77,_0x3751a1,_0x333091){'use strict';var _0x2c2793=_0x3c46;var _0x511974=Object[_0x2c2793(0x23c)],_0xdfdd4e=(_0x22b6ba,_0x432bd8,_0x685ad4)=>_0x432bd8 in _0x22b6ba?_0x511974(_0x22b6ba,_0x432bd8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x685ad4}):_0x22b6ba[_0x432bd8]=_0x685ad4,_0x286e4a=(_0xe7151f,_0x1e954f,_0x56a9dc)=>_0xdfdd4e(_0xe7151f,typeof _0x1e954f!='symbol'?_0x1e954f+'':_0x1e954f,_0x56a9dc),_0x418ded=function(){var _0x30f905=_0x2c2793;return _0x418ded=Object[_0x30f905(0x22e)]||function(_0x15af9a){var _0x2fea05=_0x30f905;for(var _0x1bed8a,_0x3d7a56=0x1,_0x3343db=arguments[_0x2fea05(0x17e)];_0x3d7a56<_0x3343db;_0x3d7a56++){_0x1bed8a=arguments[_0x3d7a56];for(var _0x3144a5 in _0x1bed8a)Object[_0x2fea05(0x166)][_0x2fea05(0x1b6)][_0x2fea05(0x17d)](_0x1bed8a,_0x3144a5)&&(_0x15af9a[_0x3144a5]=_0x1bed8a[_0x3144a5]);}return _0x15af9a;},_0x418ded[_0x30f905(0x18b)](this,arguments);},_0x474e90=function(_0x10a1cd,_0x56e093){var _0x30cab0=_0x2c2793,_0x554730={};for(var _0xae10cc in _0x10a1cd)Object[_0x30cab0(0x166)][_0x30cab0(0x1b6)][_0x30cab0(0x17d)](_0x10a1cd,_0xae10cc)&&_0x56e093[_0x30cab0(0x1e8)](_0xae10cc)<0x0&&(_0x554730[_0xae10cc]=_0x10a1cd[_0xae10cc]);if(_0x10a1cd!=null&&typeof Object[_0x30cab0(0x198)]==_0x30cab0(0x255)){for(var _0x325ecc=0x0,_0xae10cc=Object[_0x30cab0(0x198)](_0x10a1cd);_0x325ecc<_0xae10cc[_0x30cab0(0x17e)];_0x325ecc++)_0x56e093[_0x30cab0(0x1e8)](_0xae10cc[_0x325ecc])<0x0&&Object[_0x30cab0(0x166)]['propertyIsEnumerable'][_0x30cab0(0x17d)](_0x10a1cd,_0xae10cc[_0x325ecc])&&(_0x554730[_0xae10cc[_0x325ecc]]=_0x10a1cd[_0xae10cc[_0x325ecc]]);}return _0x554730;},_0x161414=_0x23d454[_0x2c2793(0x22c)](function(_0x3de263,_0x4a788f){var _0x3033b0=_0x2c2793,_0x26d41a=_0x3de263['icon'],_0x410fd2=_0x3de263['id'],_0xe8b479=_0x3de263[_0x3033b0(0x233)],_0x597c40=_0x3de263['extend'],_0x2d8ec5=_0x474e90(_0x3de263,[_0x3033b0(0x164),'id',_0x3033b0(0x233),_0x3033b0(0x1c6)]),_0x587495=_0x3033b0(0x240)[_0x3033b0(0x1bc)](_0x410fd2,'\x20')['concat'](_0xe8b479||'')['trim'](),_0x29ffb6=_0x23d454[_0x3033b0(0x1d4)]('_'['concat'](_0x14dda9()));return _0xa79dd6(_0x26d41a,''[_0x3033b0(0x1bc)](_0x410fd2),{'defIds':_0x26d41a[_0x3033b0(0x207)],'idSuffix':_0x29ffb6['current']},_0x418ded({'ref':_0x4a788f,'className':_0x587495},_0x2d8ec5),_0x597c40);});function _0xa79dd6(_0x1c1d01,_0x1e62be,_0x2454b7,_0x6da599,_0x4fbe80){var _0x22ee19=_0x2c2793;return _0x23d454['createElement'](_0x1c1d01['tag'],_0x418ded(_0x418ded({'key':_0x1e62be},_0xff37b3(_0x1c1d01,_0x2454b7,_0x4fbe80)),_0x6da599),(_0xcea881(_0x1c1d01,_0x2454b7)[_0x22ee19(0x161)]||[])['map'](function(_0x5d02f2,_0x2f5b19){var _0x94309a=_0x22ee19;return _0xa79dd6(_0x5d02f2,''[_0x94309a(0x1bc)](_0x1e62be,'-')[_0x94309a(0x1bc)](_0x1c1d01[_0x94309a(0x1bd)],'-')[_0x94309a(0x1bc)](_0x2f5b19),_0x2454b7,void 0x0,_0x4fbe80);}));}function _0xff37b3(_0x33c1df,_0x3d1656,_0x884dff){var _0x431722=_0x2c2793,_0x44c86d=_0x418ded({},_0x33c1df[_0x431722(0x167)]);_0x884dff!=null&&_0x884dff['colorChannel1']&&_0x44c86d[_0x431722(0x195)]===_0x431722(0x1eb)&&(_0x44c86d[_0x431722(0x195)]=_0x884dff[_0x431722(0x1eb)]),_0x33c1df[_0x431722(0x1bd)]===_0x431722(0x20c)&&_0x44c86d['id']&&(_0x44c86d['id']=_0x44c86d['id']+_0x3d1656[_0x431722(0x222)]),Object['entries'](_0x44c86d)[_0x431722(0x256)](function(_0x4e78d4){var _0x49bd4e=_0x431722,_0x49a000=_0x4e78d4[0x0],_0x36a33b=_0x4e78d4[0x1];_0x49a000===_0x49bd4e(0x20c)&&typeof _0x36a33b=='string'&&(_0x44c86d[_0x49a000]=_0x36a33b[_0x49bd4e(0x193)](/url\(#(.*)\)/,_0x49bd4e(0x1be)[_0x49bd4e(0x1bc)](_0x3d1656[_0x49bd4e(0x222)],')')));});var _0x44aaf2=_0x3d1656['defIds'];return!_0x44aaf2||_0x44aaf2[_0x431722(0x17e)]===0x0||(_0x33c1df['tag']===_0x431722(0x1c9)&&_0x44c86d[_0x431722(0x208)]&&(_0x44c86d['xlink:href']=_0x44c86d[_0x431722(0x208)]+_0x3d1656[_0x431722(0x222)]),Object[_0x431722(0x21f)](_0x44c86d)[_0x431722(0x256)](function(_0x124f83){var _0x58c4bd=_0x431722,_0x51481b=_0x124f83[0x0],_0x32dc75=_0x124f83[0x1];typeof _0x32dc75=='string'&&(_0x44c86d[_0x51481b]=_0x32dc75[_0x58c4bd(0x193)](/url\(#(.*)\)/,_0x58c4bd(0x1be)['concat'](_0x3d1656['idSuffix'],')')));})),_0x44c86d;}function _0xcea881(_0x4c95fc,_0x51f806){var _0x54ced4=_0x2c2793,_0x13bc25,_0x2088b1=_0x51f806[_0x54ced4(0x207)];return!_0x2088b1||_0x2088b1[_0x54ced4(0x17e)]===0x0?_0x4c95fc:_0x4c95fc['tag']===_0x54ced4(0x1c8)&&(!((_0x13bc25=_0x4c95fc[_0x54ced4(0x161)])===null||_0x13bc25===void 0x0)&&_0x13bc25[_0x54ced4(0x17e)])?_0x418ded(_0x418ded({},_0x4c95fc),{'children':_0x4c95fc['children'][_0x54ced4(0x188)](function(_0x57a327){var _0x31cb79=_0x54ced4;return typeof _0x57a327[_0x31cb79(0x167)]['id']==_0x31cb79(0x1d6)&&_0x2088b1&&_0x2088b1[_0x31cb79(0x20f)](_0x57a327[_0x31cb79(0x167)]['id'])?_0x418ded(_0x418ded({},_0x57a327),{'attrs':_0x418ded(_0x418ded({},_0x57a327[_0x31cb79(0x167)]),{'id':_0x57a327['attrs']['id']+_0x51f806['idSuffix']})}):_0x57a327;})}):_0x4c95fc;}function _0x14dda9(){var _0x419d78=_0x2c2793;return Math['random']()[_0x419d78(0x199)](0x24)[_0x419d78(0x1af)](0x2,0x8);}_0x161414[_0x2c2793(0x23a)]=_0x2c2793(0x250);var _0x50952a={'tag':_0x2c2793(0x1cc),'attrs':{'xmlns':_0x2c2793(0x227),'fill':_0x2c2793(0x228),'viewBox':_0x2c2793(0x24a),'width':'1em','height':_0x2c2793(0x225)},'children':[{'tag':_0x2c2793(0x1ee),'attrs':{'fill':'currentColor','d':_0x2c2793(0x248)}},{'tag':_0x2c2793(0x1ee),'attrs':{'fill':_0x2c2793(0x20e),'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':_0x2c2793(0x24d),'clipRule':_0x2c2793(0x24d)}}]},_0x4badc6=_0x23d454[_0x2c2793(0x22c)](function(_0xd3daf1,_0x5985b4){var _0x51b084=_0x2c2793;return _0x23d454['createElement'](_0x161414,Object[_0x51b084(0x22e)]({},_0xd3daf1,{'id':'live-share-icon','ref':_0x5985b4,'icon':_0x50952a}));});_0x4badc6[_0x2c2793(0x23a)]=_0x2c2793(0x1ba);class _0x5d6275 extends _0x2c8af3['Disposable']{constructor(){super(...arguments),_0x286e4a(this,'_sharedOperations',new Set()),_0x286e4a(this,'_reporters',new Set());}[_0x2c2793(0x180)](_0x5d9f38){var _0x21c1e4=_0x2c2793;return this['_sharedOperations'][_0x21c1e4(0x1ac)](_0x5d9f38),_0x2c8af3['toDisposable'](()=>this[_0x21c1e4(0x1a2)]['delete'](_0x5d9f38));}[_0x2c2793(0x1e9)](_0xe63079){var _0x39b1d2=_0x2c2793;return this[_0x39b1d2(0x1d1)][_0x39b1d2(0x1ac)](_0xe63079),_0x2c8af3[_0x39b1d2(0x244)](()=>this[_0x39b1d2(0x1d1)]['delete'](_0xe63079));}['shouldShareOperation'](_0x166d1a){var _0x23a0e3=_0x2c2793;return this['_sharedOperations'][_0x23a0e3(0x1f1)](_0x166d1a);}['getInitialStates'](_0x29c4c3){var _0x1ea60c=_0x2c2793;return Array[_0x1ea60c(0x249)](this[_0x1ea60c(0x1d1)])[_0x1ea60c(0x188)](_0x58c84c=>_0x58c84c(_0x29c4c3));}}var _0x148477=Object[_0x2c2793(0x217)],_0x2f2cde=(_0x72ce62,_0x162207,_0xb54b50,_0x160be9)=>{var _0x3e4635=_0x2c2793;for(var _0x3036dd=_0x160be9>0x1?void 0x0:_0x160be9?_0x148477(_0x162207,_0xb54b50):_0x162207,_0x511779=_0x72ce62[_0x3e4635(0x17e)]-0x1,_0x1f3480;_0x511779>=0x0;_0x511779--)(_0x1f3480=_0x72ce62[_0x511779])&&(_0x3036dd=_0x1f3480(_0x3036dd)||_0x3036dd);return _0x3036dd;},_0x579d97=(_0x15d373,_0x5d83ad)=>(_0x411492,_0x4a0d57)=>_0x5d83ad(_0x411492,_0x4a0d57,_0x15d373);_0x32a878[_0x2c2793(0x239)]=class extends _0x2c8af3[_0x2c2793(0x1d3)]{constructor(_0x5af2d3,_0x261ca1,_0x1ea5d8){var _0x4f9126=_0x2c2793;super(),_0x286e4a(this,_0x4f9126(0x251),new Map()),(this['_univerInstanceService']=_0x5af2d3,this[_0x4f9126(0x1f8)]=_0x261ca1,this['_collabSessionService']=_0x1ea5d8,this[_0x4f9126(0x16a)]());}async[_0x2c2793(0x184)](_0x43714c){var _0x150afc=_0x2c2793;return this[_0x150afc(0x251)][_0x150afc(0x1f1)](_0x43714c)||await this[_0x150afc(0x1b5)](_0x43714c),this[_0x150afc(0x251)]['get'](_0x43714c);}['_init'](){var _0x41bd93=_0x2c2793;this[_0x41bd93(0x23e)][_0x41bd93(0x216)](_0x2c8af3['UniverInstanceType'][_0x41bd93(0x200)])['pipe'](_0x3751a1['takeUntil'](this['dispose$']))[_0x41bd93(0x19b)](async _0x157281=>{var _0xf677c9=_0x41bd93;const _0x34eefc=_0x157281[_0xf677c9(0x1da)]();this[_0xf677c9(0x251)]['has'](_0x34eefc)||this['_startLiveShareCoordinator'](_0x34eefc);}),this[_0x41bd93(0x23e)][_0x41bd93(0x252)](_0x2c8af3[_0x41bd93(0x254)][_0x41bd93(0x200)])[_0x41bd93(0x201)](_0x3751a1[_0x41bd93(0x253)](this[_0x41bd93(0x1a9)]))[_0x41bd93(0x19b)](_0x542700=>{var _0x5b0ed9=_0x41bd93;const _0x397f19=_0x542700[_0x5b0ed9(0x1da)](),_0x335670=this[_0x5b0ed9(0x251)][_0x5b0ed9(0x1ea)](_0x397f19);_0x335670==null||_0x335670[_0x5b0ed9(0x1f7)]();});}async[_0x2c2793(0x1b5)](_0x469024){var _0x136522=_0x2c2793;const _0x26e4e4=await this[_0x136522(0x245)][_0x136522(0x1fc)](_0x469024),_0x26bb5a=this['_injector'][_0x136522(0x23d)](_0x32a878[_0x136522(0x22a)],_0x469024,_0x26e4e4);return _0x26bb5a[_0x136522(0x1c3)](),this[_0x136522(0x251)]['set'](_0x469024,_0x26bb5a),_0x26bb5a;}},_0x32a878[_0x2c2793(0x239)]=_0x2f2cde([_0x579d97(0x0,_0x2c8af3[_0x2c2793(0x19e)]),_0x579d97(0x1,_0x2c8af3[_0x2c2793(0x1a3)](_0x2c8af3[_0x2c2793(0x1a8)])),_0x579d97(0x2,_0x2c8af3[_0x2c2793(0x1a3)](_0x127d70[_0x2c2793(0x1ff)]))],_0x32a878[_0x2c2793(0x239)]);var _0xaeaf5=(_0x1d0ef1=>(_0x1d0ef1[_0x2c2793(0x1df)]='offline',_0x1d0ef1[_0x2c2793(0x238)]=_0x2c2793(0x211),_0x1d0ef1['FOLLOWING']='following',_0x1d0ef1[_0x2c2793(0x231)]=_0x2c2793(0x185),_0x1d0ef1[_0x2c2793(0x1cf)]=_0x2c2793(0x18f),_0x1d0ef1))(_0xaeaf5||{});const _0x544074=_0x2c2793(0x1e5),_0x474865=0xc8;_0x32a878[_0x2c2793(0x22a)]=class extends _0x2c8af3[_0x2c2793(0x1d3)]{constructor(_0x46ed68,_0x1095ac,_0x3a6d7b,_0x1304b0,_0x1f96ff){var _0x2659e4=_0x2c2793;super(),_0x286e4a(this,_0x2659e4(0x1b2),new _0xecde77['BehaviorSubject'](_0x2659e4(0x211))),_0x286e4a(this,_0x2659e4(0x1ce),this['_status$'][_0x2659e4(0x1bf)]()),_0x286e4a(this,_0x2659e4(0x16a),!0x1),_0x286e4a(this,'_commandDisposable',null),_0x286e4a(this,_0x2659e4(0x174),null),(this[_0x2659e4(0x1ef)]=_0x46ed68,this[_0x2659e4(0x212)]=_0x1095ac,this[_0x2659e4(0x1ab)]=_0x3a6d7b,this[_0x2659e4(0x1a6)]=_0x1304b0,this[_0x2659e4(0x1b4)]=_0x1f96ff);}get[_0x2c2793(0x234)](){var _0x57adbf=_0x2c2793;return this[_0x57adbf(0x1b2)][_0x57adbf(0x183)]();}[_0x2c2793(0x1f7)](){var _0x29834d=_0x2c2793,_0x470570;(_0x470570=this[_0x29834d(0x1b8)])==null||_0x470570[_0x29834d(0x1f7)](),this['_status$'][_0x29834d(0x1dc)](_0x29834d(0x211)),this[_0x29834d(0x1b2)][_0x29834d(0x1d2)]();}[_0x2c2793(0x1c3)](){var _0x53840f=_0x2c2793;this[_0x53840f(0x16a)]||(this[_0x53840f(0x16a)]=!0x0,this[_0x53840f(0x212)][_0x53840f(0x168)][_0x53840f(0x201)](_0x3751a1[_0x53840f(0x253)](this[_0x53840f(0x1a9)]))['subscribe'](_0x23f916=>{var _0x467491=_0x53840f;switch(_0x23f916){case _0x127d70[_0x467491(0x1e1)]['OFFLINE']:this[_0x467491(0x219)]();break;case _0x127d70[_0x467491(0x1e1)][_0x467491(0x187)]:this[_0x467491(0x229)]();break;}}),this[_0x53840f(0x212)]['event$'][_0x53840f(0x201)](_0x3751a1[_0x53840f(0x253)](this[_0x53840f(0x1a9)]))['subscribe'](_0x43b1bd=>{var _0x24e50e=_0x53840f;const {eventID:_0x2b0d84}=_0x43b1bd;switch(_0x2b0d84){case _0x1eba64['CollaborationEvent'][_0x24e50e(0x215)]:this[_0x24e50e(0x1f2)](_0x43b1bd);break;case _0x1eba64[_0x24e50e(0x236)][_0x24e50e(0x19a)]:this['_handleOperation'](_0x43b1bd);break;case _0x1eba64['CollaborationEvent'][_0x24e50e(0x196)]:this[_0x24e50e(0x23f)]();break;case _0x1eba64[_0x24e50e(0x236)][_0x24e50e(0x19f)]:this[_0x24e50e(0x182)](_0x43b1bd);break;}}));}['tryStartPresenting'](){var _0x67d239=_0x2c2793;this[_0x67d239(0x212)][_0x67d239(0x163)]({'eventID':_0x1eba64[_0x67d239(0x236)][_0x67d239(0x24b)],'data':{'unitID':this[_0x67d239(0x1ef)],'userID':this[_0x67d239(0x212)][_0x67d239(0x19d)]()}},this[_0x67d239(0x1ef)]);}[_0x2c2793(0x21c)](){var _0x203f54=_0x2c2793;this['_status']===_0x203f54(0x18f)&&(this['_status$'][_0x203f54(0x1dc)](_0x203f54(0x211)),this[_0x203f54(0x212)][_0x203f54(0x163)]({'eventID':_0x1eba64['CollaborationEvent'][_0x203f54(0x196)],'data':{'unitID':this[_0x203f54(0x1ef)]}},this[_0x203f54(0x1ef)]));}[_0x2c2793(0x230)](){var _0x3317e5=_0x2c2793;this[_0x3317e5(0x234)]===_0x3317e5(0x185)&&(this[_0x3317e5(0x1b2)][_0x3317e5(0x1dc)](_0x3317e5(0x17a)),this[_0x3317e5(0x1d5)]());}[_0x2c2793(0x1b3)](){var _0x953c78=_0x2c2793;this[_0x953c78(0x234)]==='following'&&this[_0x953c78(0x169)]();}[_0x2c2793(0x1f2)](_0x54f52c){var _0x2e6174=_0x2c2793;const {presenter:_0x5640ca}=_0x54f52c['data'],_0x1607ba=this[_0x2e6174(0x212)][_0x2e6174(0x19d)]();this[_0x2e6174(0x174)]=_0x5640ca,_0x5640ca===_0x1607ba?(this[_0x2e6174(0x169)](),this['_startPresenting']()):this[_0x2e6174(0x234)]!=='not-following'&&(this[_0x2e6174(0x1cd)](),this[_0x2e6174(0x1d5)]());}[_0x2c2793(0x170)](){var _0x46f092=_0x2c2793;const _0x564e2a={'eventID':_0x1eba64[_0x46f092(0x236)][_0x46f092(0x214)]};this['_collabSession']['send'](_0x564e2a,this[_0x46f092(0x1ef)]);}['_handleTerminate'](){var _0x268359=_0x2c2793;this[_0x268359(0x174)]=null,this[_0x268359(0x234)]!==_0x268359(0x18f)&&this['_beIdle']();}[_0x2c2793(0x182)](_0xa6d6e1){var _0x355f40=_0x2c2793;if(this[_0x355f40(0x234)]===_0x355f40(0x17a)&&this[_0x355f40(0x174)]===_0xa6d6e1[_0x355f40(0x24e)][_0x355f40(0x1bb)]){const _0x3cdee9=_0x1eba64['parseProtocolChangeset'](_0xa6d6e1[_0x355f40(0x24e)])[_0x355f40(0x1aa)][_0x355f40(0x178)]()[_0x355f40(0x1b7)](_0x21ef5c=>_0x21ef5c['id']===_0x1da1f3['InsertSheetMutation']['id']);if(_0x3cdee9){const _0x4f619a=_0x3cdee9[_0x355f40(0x1e3)][_0x355f40(0x1c7)],_0x27ac91=_0x3cdee9[_0x355f40(0x1e3)][_0x355f40(0x1a1)]['id'];setTimeout(()=>{var _0x2bb284=_0x355f40;this[_0x2bb284(0x1b4)]['executeCommand'](_0x1da1f3[_0x2bb284(0x21e)]['id'],{'unitId':_0x4f619a,'subUnitId':_0x27ac91},{'fromCollab':!0x0});});}}}[_0x2c2793(0x1ed)](){var _0x2f40c4=_0x2c2793;this[_0x2f40c4(0x1b2)]['next'](_0x2f40c4(0x18f));const _0x355317=new Map(),_0x32d52a=this[_0x2f40c4(0x1b8)]=new _0x2c8af3[(_0x2f40c4(0x237))]();_0x32d52a[_0x2f40c4(0x1ac)](_0x2c8af3['toDisposable'](()=>{var _0x1d0d9a=_0x2f40c4;_0x355317[_0x1d0d9a(0x256)](_0x567c0b=>_0x567c0b['complete']()),_0x355317[_0x1d0d9a(0x1ca)]();})),_0x32d52a[_0x2f40c4(0x1ac)](this['_commandService'][_0x2f40c4(0x1b9)](_0x2f6f45=>{var _0x285799=_0x2f40c4,_0x2c3ddc;if(_0x2f6f45[_0x285799(0x1f3)]!==_0x2c8af3[_0x285799(0x172)]['OPERATION']||!this[_0x285799(0x1a6)][_0x285799(0x176)](_0x2f6f45['id']))return;const {id:_0x19d386}=_0x2f6f45;let _0x170b54;_0x355317[_0x285799(0x1f1)](_0x19d386)?_0x170b54=_0x355317[_0x285799(0x1ea)](_0x19d386):(_0x170b54=new _0xecde77[(_0x285799(0x23b))](),_0x355317[_0x285799(0x22d)](_0x19d386,_0x170b54),_0x170b54[_0x285799(0x201)](_0x3751a1[_0x285799(0x1d0)]((_0x2c3ddc=this[_0x285799(0x1ab)][_0x285799(0x1fd)](_0x544074))!=null?_0x2c3ddc:_0x474865,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x285799(0x19b)](_0xfeca05=>{var _0x39edc2=_0x285799;this[_0x39edc2(0x212)]['send']({'eventID':_0x1eba64['CollaborationEvent'][_0x39edc2(0x19a)],'data':{'unitID':this[_0x39edc2(0x1ef)],'operations':{[_0xfeca05['id']]:{'id':_0xfeca05['id'],'params':JSON[_0x39edc2(0x210)](_0xfeca05[_0x39edc2(0x1e3)])}}}},this['_unitID']);})),_0x170b54[_0x285799(0x1dc)](_0x2f6f45);})),this[_0x2f40c4(0x1a6)][_0x2f40c4(0x197)](this[_0x2f40c4(0x1ef)])['forEach'](_0x259f88=>this[_0x2f40c4(0x212)]['send']({'eventID':_0x1eba64[_0x2f40c4(0x236)][_0x2f40c4(0x19a)],'data':{'unitID':this[_0x2f40c4(0x1ef)],'operations':{[_0x259f88['id']]:{'id':_0x259f88['id'],'params':JSON[_0x2f40c4(0x210)](_0x259f88[_0x2f40c4(0x1e3)])}}}},this[_0x2f40c4(0x1ef)]));}['_stopPresenting'](){var _0x14b322=_0x2c2793,_0x400d8c;this[_0x14b322(0x1b2)][_0x14b322(0x1dc)](_0x14b322(0x211)),(_0x400d8c=this[_0x14b322(0x1b8)])==null||_0x400d8c[_0x14b322(0x1f7)](),this[_0x14b322(0x1b8)]=null;}[_0x2c2793(0x1d5)](){var _0x11147a=_0x2c2793,_0x387d30;(_0x387d30=this[_0x11147a(0x1b8)])==null||_0x387d30[_0x11147a(0x1f7)](),this[_0x11147a(0x1b2)]['next']('following');}[_0x2c2793(0x1f5)](){var _0x24ed81=_0x2c2793,_0x529961;this[_0x24ed81(0x1b2)]['next'](_0x24ed81(0x211)),(_0x529961=this['_commandDisposable'])==null||_0x529961['dispose'](),this[_0x24ed81(0x1b8)]=null;}['_stopFollowing'](){var _0x11261a=_0x2c2793,_0xa358;this['_status$'][_0x11261a(0x1dc)](_0x11261a(0x185)),(_0xa358=this[_0x11261a(0x1b8)])==null||_0xa358[_0x11261a(0x1f7)]();}['_handleOperation'](_0x23d5f3){var _0x340b0f=_0x2c2793;if([_0x340b0f(0x18f),_0x340b0f(0x185),'offline'][_0x340b0f(0x20f)](this[_0x340b0f(0x234)])||!_0x23d5f3[_0x340b0f(0x24e)][_0x340b0f(0x1c2)]||_0x23d5f3['data'][_0x340b0f(0x1c2)]===this[_0x340b0f(0x212)][_0x340b0f(0x19d)]())return;this[_0x340b0f(0x234)]==='idle'&&this[_0x340b0f(0x1d5)]();const _0x2087e0=_0x23d5f3['data'][_0x340b0f(0x1ad)];Object[_0x340b0f(0x1e0)](_0x2087e0)[_0x340b0f(0x256)](_0x442b85=>{var _0x48587f=_0x340b0f;this[_0x48587f(0x1b4)]['executeCommand'](_0x442b85['id'],_0x442b85[_0x48587f(0x1e3)]?JSON[_0x48587f(0x203)](_0x442b85[_0x48587f(0x1e3)]):null,{'fromCollab':!0x0});});}[_0x2c2793(0x219)](){var _0x56fda8=_0x2c2793,_0x3aaf0e;this[_0x56fda8(0x1b2)][_0x56fda8(0x1dc)](_0x56fda8(0x16b)),(_0x3aaf0e=this[_0x56fda8(0x1b8)])==null||_0x3aaf0e[_0x56fda8(0x1f7)]();}['_handleOnline'](){var _0x1f7485=_0x2c2793;this[_0x1f7485(0x1b2)][_0x1f7485(0x1dc)]('idle'),this[_0x1f7485(0x170)]();}},_0x32a878['LiveShareCoordinator']=_0x2f2cde([_0x579d97(0x2,_0x2c8af3['IConfigService']),_0x579d97(0x3,_0x2c8af3['Inject'](_0x5d6275)),_0x579d97(0x4,_0x2c8af3[_0x2c2793(0x204)])],_0x32a878[_0x2c2793(0x22a)]);function _0x37e2be(){var _0x3637b1=_0x2c2793;const _0x337136=_0x4d4b38[_0x3637b1(0x1a5)](_0x32a878[_0x3637b1(0x239)]),_0x1a1daa=_0x4d4b38[_0x3637b1(0x1a5)](_0x2c8af3[_0x3637b1(0x19e)]),_0x4c1de6=_0x4d4b38[_0x3637b1(0x1e4)](()=>_0x1a1daa[_0x3637b1(0x242)](_0x2c8af3[_0x3637b1(0x254)][_0x3637b1(0x200)]),void 0x0,!0x1,[]),[_0x38c30a,_0x3b32f6]=_0x23d454[_0x3637b1(0x1fa)](null),[_0x59850c,_0x3464e8]=_0x23d454['useState'](_0xaeaf5['IDLE']),_0x477489=_0x23d454[_0x3637b1(0x1d4)](null);return _0x23d454[_0x3637b1(0x21b)](()=>(_0x4c1de6&&_0x337136['getLiveShareCoordinator'](_0x4c1de6[_0x3637b1(0x1da)]())['then'](_0x21beef=>{var _0x49f329=_0x3637b1;_0x3b32f6(_0x21beef),_0x477489[_0x49f329(0x22b)]=_0x21beef[_0x49f329(0x1ce)][_0x49f329(0x19b)](_0x5eb205=>{_0x3464e8(_0x5eb205);});}),()=>{var _0x310c2f=_0x3637b1,_0x1bc307;(_0x1bc307=_0x477489['current'])==null||_0x1bc307[_0x310c2f(0x165)](),_0x477489[_0x310c2f(0x22b)]=null;}),[_0x4c1de6,_0x337136]),_0x38c30a?_0x40ffe6[_0x3637b1(0x221)](_0x5146f0[_0x3637b1(0x16d)],{'align':_0x3637b1(0x16f),'disabled':_0x59850c===_0xaeaf5['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x40ffe6['jsx'](_0x5c3011,{'status':_0x59850c,'coordinator':_0x38c30a}),'children':_0x40ffe6['jsx'](_0x3637b1(0x209),{'className':_0x5146f0[_0x3637b1(0x1de)](_0x3637b1(0x18e),{'univer-cursor-not-allowed':_0x59850c===_0xaeaf5[_0x3637b1(0x1df)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x59850c!==_0xaeaf5['OFFLINE']}),'type':'button','children':_0x40ffe6[_0x3637b1(0x221)](_0x4badc6,{'className':_0x3637b1(0x17f)})})}):null;}function _0x5c3011(_0x3fc40a){var _0x40f798=_0x2c2793;const {status:_0x3e8f71,coordinator:_0x19f620}=_0x3fc40a;switch(_0x3e8f71){case _0xaeaf5[_0x40f798(0x238)]:return _0x40ffe6['jsx'](_0x1c4365,{'coordinator':_0x19f620});case _0xaeaf5[_0x40f798(0x21a)]:return _0x40ffe6[_0x40f798(0x221)](_0xe47d35,{'coordinator':_0x19f620});case _0xaeaf5[_0x40f798(0x231)]:return _0x40ffe6[_0x40f798(0x221)](_0x33c3aa,{'coordinator':_0x19f620});case _0xaeaf5[_0x40f798(0x1df)]:return _0x40ffe6[_0x40f798(0x221)](_0x2602af,{});case _0xaeaf5['PRESENTING']:return _0x40ffe6['jsx'](_0x1d339b,{'coordinator':_0x19f620});default:return null;}}function _0x1c4365(_0x5c9618){var _0x25087a=_0x2c2793;const {coordinator:_0xf02bae}=_0x5c9618;return _0x40ffe6[_0x25087a(0x1d9)](_0x40ffe6[_0x25087a(0x1db)],{'children':[_0x40ffe6['jsx'](_0x25087a(0x17b),{'className':_0x25087a(0x181),'children':'Present\x20this\x20document'}),_0x40ffe6[_0x25087a(0x221)](_0x5146f0[_0x25087a(0x213)],{'onClick':()=>_0xf02bae[_0x25087a(0x1f0)](),'children':_0x25087a(0x18d)})]});}function _0xe47d35(_0x4cfea6){var _0x21a28d=_0x2c2793;const {coordinator:_0x4752c4}=_0x4cfea6;return _0x40ffe6[_0x21a28d(0x1d9)](_0x40ffe6[_0x21a28d(0x1db)],{'children':[_0x40ffe6['jsx']('div',{'className':_0x21a28d(0x181),'children':_0x21a28d(0x173)}),_0x40ffe6[_0x21a28d(0x221)](_0x5146f0[_0x21a28d(0x213)],{'onClick':()=>_0x4752c4['stopFollowing'](),'children':_0x21a28d(0x1b1)})]});}function _0x33c3aa(_0x2de73a){var _0x4150a0=_0x2c2793;const {coordinator:_0x41e509}=_0x2de73a;return _0x40ffe6['jsxs'](_0x40ffe6[_0x4150a0(0x1db)],{'children':[_0x40ffe6[_0x4150a0(0x221)](_0x4150a0(0x17b),{'className':_0x4150a0(0x181),'children':_0x4150a0(0x232)}),_0x40ffe6[_0x4150a0(0x221)](_0x5146f0[_0x4150a0(0x213)],{'variant':'text','onClick':()=>_0x41e509[_0x4150a0(0x230)](),'children':_0x4150a0(0x1a7)})]});}function _0x1d339b(_0x222bc0){var _0x75f8c8=_0x2c2793;const {coordinator:_0x11e6c3}=_0x222bc0;return _0x40ffe6[_0x75f8c8(0x1d9)](_0x40ffe6[_0x75f8c8(0x1db)],{'children':[_0x40ffe6[_0x75f8c8(0x221)]('div',{'className':_0x75f8c8(0x181),'children':_0x75f8c8(0x1c5)}),_0x40ffe6['jsx'](_0x5146f0[_0x75f8c8(0x213)],{'variant':'default','onClick':()=>_0x11e6c3[_0x75f8c8(0x21c)](),'children':'Stop\x20presenting'})]});}function _0x2602af(){var _0x32dcd9=_0x2c2793;return _0x40ffe6[_0x32dcd9(0x221)](_0x40ffe6[_0x32dcd9(0x1db)],{'children':_0x32dcd9(0x1a0)});}var _0x5aa230=Object[_0x2c2793(0x217)],_0x55be43=(_0x2ea555,_0x229a53,_0x1a87b2,_0x452041)=>{for(var _0x1ab57c=_0x452041>0x1?void 0x0:_0x452041?_0x5aa230(_0x229a53,_0x1a87b2):_0x229a53,_0x188007=_0x2ea555['length']-0x1,_0x38a135;_0x188007>=0x0;_0x188007--)(_0x38a135=_0x2ea555[_0x188007])&&(_0x1ab57c=_0x38a135(_0x1ab57c)||_0x1ab57c);return _0x1ab57c;},_0x4749f0=(_0x44cd9f,_0x408ce2)=>(_0x286e42,_0x280e14)=>_0x408ce2(_0x286e42,_0x280e14,_0x44cd9f);_0x32a878[_0x2c2793(0x1c0)]=class extends _0x2c8af3[_0x2c2793(0x19c)]{constructor(_0x58d333,_0x397945){var _0x45d5e1=_0x2c2793;super(),this[_0x45d5e1(0x1f8)]=_0x58d333,this[_0x45d5e1(0x20a)]=_0x397945,this[_0x45d5e1(0x1f9)]();}['_mountLiveShare'](){var _0x256bbe=_0x2c2793;this['disposeWithMe'](this['_uiPartsService'][_0x256bbe(0x20b)](_0x4d4b38[_0x256bbe(0x179)]['HEADER_MENU'],()=>_0x4d4b38[_0x256bbe(0x226)](_0x37e2be,this[_0x256bbe(0x1f8)])));}},_0x32a878[_0x2c2793(0x1c0)]=_0x55be43([_0x4749f0(0x0,_0x2c8af3[_0x2c2793(0x1a3)](_0x2c8af3['Injector'])),_0x4749f0(0x1,_0x4d4b38[_0x2c2793(0x191)])],_0x32a878[_0x2c2793(0x1c0)]);const _0xca509e=_0x2c2793(0x224),_0xd1f8cb={};var _0x3537e4=Object['getOwnPropertyDescriptor'],_0x229cfc=(_0x41e0ef,_0x238a83,_0x51d9b9,_0x3217ad)=>{var _0x54172d=_0x2c2793;for(var _0x14f191=_0x3217ad>0x1?void 0x0:_0x3217ad?_0x3537e4(_0x238a83,_0x51d9b9):_0x238a83,_0x43d9b3=_0x41e0ef[_0x54172d(0x17e)]-0x1,_0x485275;_0x43d9b3>=0x0;_0x43d9b3--)(_0x485275=_0x41e0ef[_0x43d9b3])&&(_0x14f191=_0x485275(_0x14f191)||_0x14f191);return _0x14f191;},_0x1c26b8=(_0x26258d,_0x58def9)=>(_0x432941,_0x3cc716)=>_0x58def9(_0x432941,_0x3cc716,_0x26258d);let _0x6ad54a=class extends _0x2c8af3[_0x2c2793(0x19c)]{constructor(_0x56f8fa){var _0x3d9cbe=_0x2c2793;super(),this['_liveShareService']=_0x56f8fa,this[_0x3d9cbe(0x16a)]();}[_0x2c2793(0x16a)](){var _0x38fb3b=_0x2c2793;[_0x333091[_0x38fb3b(0x162)]['id'],_0x333091[_0x38fb3b(0x175)]['id'],_0x1da1f3['SetWorksheetActiveOperation']['id']][_0x38fb3b(0x256)](_0x5f068e=>{var _0xb6879b=_0x38fb3b;this[_0xb6879b(0x1d7)](this[_0xb6879b(0x1a6)][_0xb6879b(0x180)](_0x5f068e));});}};_0x6ad54a=_0x229cfc([_0x1c26b8(0x0,_0x2c8af3[_0x2c2793(0x1a3)](_0x5d6275))],_0x6ad54a);var _0x1acc7e=Object[_0x2c2793(0x23c)],_0x1ed973=Object[_0x2c2793(0x217)],_0x1f13ad=(_0x3f6bf7,_0x47fab4,_0x252fc5)=>_0x47fab4 in _0x3f6bf7?_0x1acc7e(_0x3f6bf7,_0x47fab4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x252fc5}):_0x3f6bf7[_0x47fab4]=_0x252fc5,_0x476756=(_0x553e20,_0xae586,_0x1096fd,_0x563c14)=>{var _0x13d2c5=_0x2c2793;for(var _0x1c5a46=_0x563c14>0x1?void 0x0:_0x563c14?_0x1ed973(_0xae586,_0x1096fd):_0xae586,_0x33e0d6=_0x553e20[_0x13d2c5(0x17e)]-0x1,_0x3a6042;_0x33e0d6>=0x0;_0x33e0d6--)(_0x3a6042=_0x553e20[_0x33e0d6])&&(_0x1c5a46=_0x3a6042(_0x1c5a46)||_0x1c5a46);return _0x1c5a46;},_0x2a6d6a=(_0x30820e,_0x425147)=>(_0x49fea1,_0x21cae1)=>_0x425147(_0x49fea1,_0x21cae1,_0x30820e),_0x43ebd5=(_0x46aa04,_0x4f030b,_0x377098)=>_0x1f13ad(_0x46aa04,typeof _0x4f030b!=_0x2c2793(0x177)?_0x4f030b+'':_0x4f030b,_0x377098);const _0x570e7c=_0x2c2793(0x1f6);_0x32a878[_0x2c2793(0x205)]=class extends _0x2c8af3[_0x2c2793(0x189)]{constructor(_0x2e2ffc=_0xd1f8cb,_0x1ccefd,_0x1eda2c){var _0x275508=_0x2c2793;super(),this['_config']=_0x2e2ffc,this['_injector']=_0x1ccefd,this[_0x275508(0x1ab)]=_0x1eda2c;const {..._0x28e074}=_0x2c8af3[_0x275508(0x192)]({},_0xd1f8cb,this['_config']);this[_0x275508(0x1ab)][_0x275508(0x1fe)](_0xca509e,_0x28e074);}['onStarting'](){var _0x280b84=_0x2c2793;_0x2c8af3[_0x280b84(0x1e7)](this[_0x280b84(0x1f8)],_0x2c8af3[_0x280b84(0x194)]([[_0x5d6275],[_0x32a878[_0x280b84(0x239)]],[_0x6ad54a],[_0x32a878['DesktopLiveShareController']]],this['_config'][_0x280b84(0x1b0)])),_0x2c8af3[_0x280b84(0x18a)](this[_0x280b84(0x1f8)],[[_0x6ad54a]]);}[_0x2c2793(0x202)](){var _0x191e45=_0x2c2793;_0x2c8af3['touchDependencies'](this[_0x191e45(0x1f8)],[[_0x32a878['DesktopLiveShareController']]]);}},_0x43ebd5(_0x32a878['UniverLiveSharePlugin'],_0x2c2793(0x1f3),_0x2c8af3[_0x2c2793(0x254)][_0x2c2793(0x247)]),_0x43ebd5(_0x32a878[_0x2c2793(0x205)],_0x2c2793(0x1c4),_0x570e7c),_0x32a878[_0x2c2793(0x205)]=_0x476756([_0x2c8af3[_0x2c2793(0x220)](_0x127d70[_0x2c2793(0x1fb)]),_0x2a6d6a(0x1,_0x2c8af3[_0x2c2793(0x1a3)](_0x2c8af3[_0x2c2793(0x1a8)])),_0x2a6d6a(0x2,_0x2c8af3[_0x2c2793(0x24f)])],_0x32a878[_0x2c2793(0x205)]),_0x32a878[_0x2c2793(0x235)]=_0x37e2be,_0x32a878[_0x2c2793(0x1f4)]=_0x5d6275,_0x32a878[_0x2c2793(0x1e6)]=_0xaeaf5,Object[_0x2c2793(0x23c)](_0x32a878,Symbol['toStringTag'],{'value':'Module'});}));
1
+ function _0x38bd(){var _0x5a0406=['propertyIsEnumerable','idSuffix','DesktopLiveShareController','InsertSheetMutation','UniverUi','Inject','ONLINE','toStringTag','params','HEADER_MENU','1em','2503627PJoEXv','univerjs-icon\x20univerjs-icon-','DisposableCollection','following','send','useObservable','_startFollowing','LIVESHARE_NEW_HOST','defineProperty','LiveShareIcon','You\x27re\x20following\x20the\x20presenter','useRef','presenter','IUniverInstanceService','evenodd','currentColor','default','toDisposable','offline','IDLE','data','LIVESHARE_TERMINATE','concat','colorChannel1','createElement','complete','dispose','50841624jesVaJ','PRESENTING','@univerjs/sheets','setConfig','http://www.w3.org/2000/svg','getOwnPropertyDescriptor','LiveShareStatus','LiveShare','indexOf','react/jsx-runtime','_unitID','current','substring','You\x27re\x20presenting\x20the\x20document','DependentOn','useEffect','UniverProCollaborationClient','Plugin','function','xlink:href','event$','IUIPartsService','BuiltInUIPart','tag','add','mask','registerSharedOperation','_configService','LiveShareService','_liveShareService','React','from','find','assign','OFFLINE','clsx','_collabSessionService','SetZoomRatioOperation','2rCuiqS','throttleTime','_collabSession','icon','_startPresenting','@univerjs/core','_sharedOperations','_status$','_fetchOperations','symbol','pluginName','subscribe','operators','type','9zODHkG','stopFollowing','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverProLiveShare','getTypeOfUnitDisposed$','div','attrs','extend','not-following','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getOwnPropertySymbols','UniverLiveSharePlugin','pipe','LiveShareController','LiveShareCoordinator','Fragment','Subject','reverse','dispose$','stopPresenting','11bmnsod','Module','RxDisposable','_handleOnline','4ZJkEaV','idle','jsxs','connectInjector','has','Disposable','delete','_stopFollowing','_handleTerminate','requireSession','Start\x20following','@univerjs/ui','0\x200\x2017\x2017','stringify','_commandDisposable','_univerInstanceService','BehaviorSubject','forEach','UniverSheetsUi','250156TQSvgT','3852265pOyzmc','react','none','displayName','includes','_injector','_reporters','_mountLiveShare','startFollowing','UniverProCollaboration','ICommandService','toString','onCommandExecuted','_presenter','text','forwardRef','_beIdle','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','NOT_FOLLOWING','UNIVER_SHEET','asObservable','LIVESHARE_OPERATION','prototype','IConfigService','svg','amd','takeUntil','_config','path','rxjs','getConfig','getMemberID','next','createInstance','CommandType','registerInitialStateReporter','UNIVER_LIVE_SHARE_PLUGIN','trim','Button','then','CollaborationEvent','map','call','clear','entries','SessionStatus','merge','getTypeOfUnitAdded$','UniverInstanceType','string','3336730JMyZBn','@univerjs-pro/collaboration-client','hasOwnProperty','sheet','UniverIcon','7605336CjHLNy','useState','get','replace','object','status$','init','values','className','unitId','UniverSheets','live-share.config','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','rxjs/operators','You\x27re\x20not\x20following\x20the\x20presenter','jsx','6VzYWVz','@univerjs-pro/collaboration','getUnitId','OPERATION','LIVESHARE_REQUEST_HOST','_uiPartsService','exports','presenting','CollaborationSessionService','onRendered','UNIVER_UNKNOWN','live-share-icon','univer-size-4','_commandService','length','1774959YzPevq','parseProtocolChangeset','_stopPresenting','use','Present\x20this\x20document','apply','registerDependencies','Dropdown','_entities','url(#$1','set','useDependency','unsubscribe','Injector','_handleOffline','_status','defIds','getLiveShareCoordinator','FOLLOWING','_startLiveShareCoordinator','_handleNewChangeSets','tryStartPresenting','UniverCollaborationClientPlugin','_init','executeCommand','touchDependencies','disposeWithMe','children','_handleNewHost','SAME_OPERATION_SHARE_INTERVAL','UniverCore','SetScrollOperation'];_0x38bd=function(){return _0x5a0406;};return _0x38bd();}function _0x22a5(_0x28931e,_0x2a0cbd){var _0x38bd75=_0x38bd();return _0x22a5=function(_0x22a5e3,_0xb311d1){_0x22a5e3=_0x22a5e3-0xae;var _0x4d3ca9=_0x38bd75[_0x22a5e3];return _0x4d3ca9;},_0x22a5(_0x28931e,_0x2a0cbd);}(function(_0x520ed2,_0x125279){var _0x53cce2=_0x22a5,_0x96b417=_0x520ed2();while(!![]){try{var _0x56d97c=-parseInt(_0x53cce2(0x128))/0x1*(parseInt(_0x53cce2(0xef))/0x2)+-parseInt(_0x53cce2(0x180))/0x3*(parseInt(_0x53cce2(0x115))/0x4)+-parseInt(_0x53cce2(0x129))/0x5+parseInt(_0x53cce2(0x171))/0x6*(-parseInt(_0x53cce2(0xae))/0x7)+parseInt(_0x53cce2(0x160))/0x8*(-parseInt(_0x53cce2(0xfd))/0x9)+-parseInt(_0x53cce2(0x15b))/0xa*(parseInt(_0x53cce2(0x111))/0xb)+parseInt(_0x53cce2(0xc9))/0xc;if(_0x56d97c===_0x125279)break;else _0x96b417['push'](_0x96b417['shift']());}catch(_0x38a9a6){_0x96b417['push'](_0x96b417['shift']());}}}(_0x38bd,0xefe0b),function(_0x1694ae,_0x32b1b7){var _0xf0016b=_0x22a5;typeof exports==_0xf0016b(0x164)&&typeof module<'u'?_0x32b1b7(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==_0xf0016b(0xdb)&&define[_0xf0016b(0x142)]?define([_0xf0016b(0x177),_0xf0016b(0xf4),_0xf0016b(0x120),_0xf0016b(0xd2),'@univerjs/design',_0xf0016b(0x12a),_0xf0016b(0x172),_0xf0016b(0x15c),_0xf0016b(0xcb),_0xf0016b(0x146),_0xf0016b(0x16e),'@univerjs/sheets-ui'],_0x32b1b7):(_0x1694ae=typeof globalThis<'u'?globalThis:_0x1694ae||self,_0x32b1b7(_0x1694ae[_0xf0016b(0x100)]={},_0x1694ae[_0xf0016b(0x19e)],_0x1694ae[_0xf0016b(0x1a4)],_0x1694ae[_0xf0016b(0xe7)],_0x1694ae['UniverDesign'],_0x1694ae[_0xf0016b(0xe7)],_0x1694ae[_0xf0016b(0x132)],_0x1694ae[_0xf0016b(0xd9)],_0x1694ae[_0xf0016b(0x16a)],_0x1694ae[_0xf0016b(0x146)],_0x1694ae['rxjs'][_0xf0016b(0xfb)],_0x1694ae[_0xf0016b(0x127)]));}(this,function(_0x54bd70,_0x1f64cb,_0x39844e,_0x3ee384,_0x4f877f,_0x37b786,_0x366e80,_0x1a1baf,_0x41a359,_0x2d8f26,_0x3c0e89,_0x2dd262){'use strict';var _0x17e565=_0x22a5;var _0x44f874=Object[_0x17e565(0xb6)],_0x402d7a=(_0x22aa2d,_0x4b4b58,_0x3ff81e)=>_0x4b4b58 in _0x22aa2d?_0x44f874(_0x22aa2d,_0x4b4b58,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ff81e}):_0x22aa2d[_0x4b4b58]=_0x3ff81e,_0x6f703=(_0x5ed2cf,_0x582c3e,_0x3dbd21)=>_0x402d7a(_0x5ed2cf,typeof _0x582c3e!=_0x17e565(0xf8)?_0x582c3e+'':_0x582c3e,_0x3dbd21),_0x3035d5=function(){var _0x51b58c=_0x17e565;return _0x3035d5=Object[_0x51b58c(0xea)]||function(_0x4eb47a){var _0x4e8bd7=_0x51b58c;for(var _0x58da32,_0x681248=0x1,_0x430179=arguments[_0x4e8bd7(0x17f)];_0x681248<_0x430179;_0x681248++){_0x58da32=arguments[_0x681248];for(var _0x45f61a in _0x58da32)Object[_0x4e8bd7(0x13f)][_0x4e8bd7(0x15d)]['call'](_0x58da32,_0x45f61a)&&(_0x4eb47a[_0x45f61a]=_0x58da32[_0x45f61a]);}return _0x4eb47a;},_0x3035d5[_0x51b58c(0x185)](this,arguments);},_0x1105fa=function(_0x34c31,_0x2a85bd){var _0x25db34=_0x17e565,_0x294fa4={};for(var _0x5734a1 in _0x34c31)Object[_0x25db34(0x13f)]['hasOwnProperty'][_0x25db34(0x153)](_0x34c31,_0x5734a1)&&_0x2a85bd[_0x25db34(0xd1)](_0x5734a1)<0x0&&(_0x294fa4[_0x5734a1]=_0x34c31[_0x5734a1]);if(_0x34c31!=null&&typeof Object[_0x25db34(0x107)]==_0x25db34(0xdb)){for(var _0x25190b=0x0,_0x5734a1=Object['getOwnPropertySymbols'](_0x34c31);_0x25190b<_0x5734a1[_0x25db34(0x17f)];_0x25190b++)_0x2a85bd[_0x25db34(0xd1)](_0x5734a1[_0x25190b])<0x0&&Object[_0x25db34(0x13f)][_0x25db34(0x1a0)]['call'](_0x34c31,_0x5734a1[_0x25190b])&&(_0x294fa4[_0x5734a1[_0x25190b]]=_0x34c31[_0x5734a1[_0x25190b]]);}return _0x294fa4;},_0x42d6ee=_0x37b786[_0x17e565(0x138)](function(_0x3ab380,_0x3930ad){var _0x4ca214=_0x17e565,_0x112440=_0x3ab380[_0x4ca214(0xf2)],_0x30e5b1=_0x3ab380['id'],_0x3ebbf9=_0x3ab380['className'],_0x40f37e=_0x3ab380['extend'],_0x595dcb=_0x1105fa(_0x3ab380,[_0x4ca214(0xf2),'id',_0x4ca214(0x168),_0x4ca214(0x104)]),_0x183f4f=_0x4ca214(0xaf)[_0x4ca214(0xc4)](_0x30e5b1,'\x20')[_0x4ca214(0xc4)](_0x3ebbf9||'')[_0x4ca214(0x14e)](),_0x50b853=_0x37b786[_0x4ca214(0xb9)]('_'['concat'](_0x4c0f1c()));return _0x4dfa99(_0x112440,''[_0x4ca214(0xc4)](_0x30e5b1),{'defIds':_0x112440[_0x4ca214(0x190)],'idSuffix':_0x50b853[_0x4ca214(0xd4)]},_0x3035d5({'ref':_0x3930ad,'className':_0x183f4f},_0x595dcb),_0x40f37e);});function _0x4dfa99(_0x594828,_0x167db7,_0xe6661c,_0xee63b1,_0x5305bf){var _0x17c14e=_0x17e565;return _0x37b786[_0x17c14e(0xc6)](_0x594828[_0x17c14e(0xe0)],_0x3035d5(_0x3035d5({'key':_0x167db7},_0x48fd2c(_0x594828,_0xe6661c,_0x5305bf)),_0xee63b1),(_0x23f81e(_0x594828,_0xe6661c)[_0x17c14e(0x19b)]||[])['map'](function(_0x40641e,_0x244b9a){var _0x41a27d=_0x17c14e;return _0x4dfa99(_0x40641e,''['concat'](_0x167db7,'-')[_0x41a27d(0xc4)](_0x594828[_0x41a27d(0xe0)],'-')[_0x41a27d(0xc4)](_0x244b9a),_0xe6661c,void 0x0,_0x5305bf);}));}function _0x48fd2c(_0x1bb208,_0xf2646c,_0xb2158b){var _0x3b9833=_0x17e565,_0x24ba87=_0x3035d5({},_0x1bb208[_0x3b9833(0x103)]);_0xb2158b!=null&&_0xb2158b['colorChannel1']&&_0x24ba87['fill']===_0x3b9833(0xc5)&&(_0x24ba87['fill']=_0xb2158b[_0x3b9833(0xc5)]),_0x1bb208[_0x3b9833(0xe0)]===_0x3b9833(0xe2)&&_0x24ba87['id']&&(_0x24ba87['id']=_0x24ba87['id']+_0xf2646c['idSuffix']),Object[_0x3b9833(0x155)](_0x24ba87)[_0x3b9833(0x126)](function(_0x36bc1d){var _0x3cf458=_0x3b9833,_0x17d095=_0x36bc1d[0x0],_0x1032a2=_0x36bc1d[0x1];_0x17d095===_0x3cf458(0xe2)&&typeof _0x1032a2==_0x3cf458(0x15a)&&(_0x24ba87[_0x17d095]=_0x1032a2[_0x3cf458(0x163)](/url\(#(.*)\)/,_0x3cf458(0x189)[_0x3cf458(0xc4)](_0xf2646c[_0x3cf458(0x1a1)],')')));});var _0x465379=_0xf2646c['defIds'];return!_0x465379||_0x465379[_0x3b9833(0x17f)]===0x0||(_0x1bb208[_0x3b9833(0xe0)]===_0x3b9833(0x183)&&_0x24ba87[_0x3b9833(0xdc)]&&(_0x24ba87[_0x3b9833(0xdc)]=_0x24ba87[_0x3b9833(0xdc)]+_0xf2646c[_0x3b9833(0x1a1)]),Object[_0x3b9833(0x155)](_0x24ba87)['forEach'](function(_0x2e8dd9){var _0x54cbe4=_0x3b9833,_0x38a85b=_0x2e8dd9[0x0],_0x22c24c=_0x2e8dd9[0x1];typeof _0x22c24c==_0x54cbe4(0x15a)&&(_0x24ba87[_0x38a85b]=_0x22c24c['replace'](/url\(#(.*)\)/,_0x54cbe4(0x189)[_0x54cbe4(0xc4)](_0xf2646c[_0x54cbe4(0x1a1)],')')));})),_0x24ba87;}function _0x23f81e(_0x4cfce4,_0x12e090){var _0x4f5827=_0x17e565,_0x2652c0,_0x3622f5=_0x12e090['defIds'];return!_0x3622f5||_0x3622f5[_0x4f5827(0x17f)]===0x0?_0x4cfce4:_0x4cfce4['tag']==='defs'&&(!((_0x2652c0=_0x4cfce4[_0x4f5827(0x19b)])===null||_0x2652c0===void 0x0)&&_0x2652c0[_0x4f5827(0x17f)])?_0x3035d5(_0x3035d5({},_0x4cfce4),{'children':_0x4cfce4['children']['map'](function(_0x316229){var _0x429b57=_0x4f5827;return typeof _0x316229['attrs']['id']=='string'&&_0x3622f5&&_0x3622f5[_0x429b57(0x12d)](_0x316229[_0x429b57(0x103)]['id'])?_0x3035d5(_0x3035d5({},_0x316229),{'attrs':_0x3035d5(_0x3035d5({},_0x316229[_0x429b57(0x103)]),{'id':_0x316229[_0x429b57(0x103)]['id']+_0x12e090['idSuffix']})}):_0x316229;})}):_0x4cfce4;}function _0x4c0f1c(){var _0x46a876=_0x17e565;return Math['random']()[_0x46a876(0x134)](0x24)[_0x46a876(0xd5)](0x2,0x8);}_0x42d6ee[_0x17e565(0x12c)]=_0x17e565(0x15f);var _0x3131b0={'tag':_0x17e565(0x141),'attrs':{'xmlns':_0x17e565(0xcd),'fill':_0x17e565(0x12b),'viewBox':_0x17e565(0x121),'width':_0x17e565(0x1aa),'height':'1em'},'children':[{'tag':_0x17e565(0x145),'attrs':{'fill':_0x17e565(0xbd),'d':_0x17e565(0x16c)}},{'tag':_0x17e565(0x145),'attrs':{'fill':_0x17e565(0xbd),'d':_0x17e565(0x13a),'fillRule':_0x17e565(0xbc),'clipRule':_0x17e565(0xbc)}}]},_0x23fda8=_0x37b786[_0x17e565(0x138)](function(_0x47ffa8,_0x4ce370){var _0x3291c6=_0x17e565;return _0x37b786['createElement'](_0x42d6ee,Object[_0x3291c6(0xea)]({},_0x47ffa8,{'id':_0x3291c6(0x17c),'ref':_0x4ce370,'icon':_0x3131b0}));});_0x23fda8[_0x17e565(0x12c)]=_0x17e565(0xb7);class _0x30f6fa extends _0x1f64cb[_0x17e565(0x11a)]{constructor(){var _0x21d281=_0x17e565;super(...arguments),_0x6f703(this,_0x21d281(0xf5),new Set()),_0x6f703(this,_0x21d281(0x12f),new Set());}[_0x17e565(0xe3)](_0x3a1feb){var _0x50fa86=_0x17e565;return this['_sharedOperations']['add'](_0x3a1feb),_0x1f64cb[_0x50fa86(0xbf)](()=>this[_0x50fa86(0xf5)][_0x50fa86(0x11b)](_0x3a1feb));}[_0x17e565(0x14c)](_0x492acb){var _0x31d523=_0x17e565;return this[_0x31d523(0x12f)][_0x31d523(0xe1)](_0x492acb),_0x1f64cb['toDisposable'](()=>this['_reporters']['delete'](_0x492acb));}['shouldShareOperation'](_0x3e046f){return this['_sharedOperations']['has'](_0x3e046f);}['getInitialStates'](_0x124606){var _0x794bbe=_0x17e565;return Array[_0x794bbe(0xe8)](this['_reporters'])[_0x794bbe(0x152)](_0x2780ee=>_0x2780ee(_0x124606));}}var _0x5831e2=Object['getOwnPropertyDescriptor'],_0x1bd40c=(_0x12884c,_0x2d6c4b,_0x37e949,_0xe48d65)=>{var _0x2b6f2f=_0x17e565;for(var _0x9590b1=_0xe48d65>0x1?void 0x0:_0xe48d65?_0x5831e2(_0x2d6c4b,_0x37e949):_0x2d6c4b,_0x2d2582=_0x12884c[_0x2b6f2f(0x17f)]-0x1,_0x2ee7c5;_0x2d2582>=0x0;_0x2d2582--)(_0x2ee7c5=_0x12884c[_0x2d2582])&&(_0x9590b1=_0x2ee7c5(_0x9590b1)||_0x9590b1);return _0x9590b1;},_0x4da1e7=(_0x374a37,_0x5ed58e)=>(_0x545aea,_0x4ecaa2)=>_0x5ed58e(_0x545aea,_0x4ecaa2,_0x374a37);_0x54bd70[_0x17e565(0x10a)]=class extends _0x1f64cb[_0x17e565(0x113)]{constructor(_0x4588ae,_0xb96ac1,_0xab080c){var _0x5b024a=_0x17e565;super(),_0x6f703(this,_0x5b024a(0x188),new Map()),(this[_0x5b024a(0x124)]=_0x4588ae,this['_injector']=_0xb96ac1,this['_collabSessionService']=_0xab080c,this[_0x5b024a(0x197)]());}async['getLiveShareCoordinator'](_0x47a63e){var _0xf0c979=_0x17e565;return this['_entities'][_0xf0c979(0x119)](_0x47a63e)||await this[_0xf0c979(0x193)](_0x47a63e),this[_0xf0c979(0x188)]['get'](_0x47a63e);}[_0x17e565(0x197)](){var _0x46c925=_0x17e565;this['_univerInstanceService'][_0x46c925(0x158)](_0x1f64cb['UniverInstanceType'][_0x46c925(0x13c)])[_0x46c925(0x109)](_0x3c0e89['takeUntil'](this[_0x46c925(0x10f)]))[_0x46c925(0xfa)](async _0x93cee0=>{var _0x5afd8e=_0x46c925;const _0x5c1b53=_0x93cee0['getUnitId']();this['_entities'][_0x5afd8e(0x119)](_0x5c1b53)||this[_0x5afd8e(0x193)](_0x5c1b53);}),this['_univerInstanceService'][_0x46c925(0x101)](_0x1f64cb[_0x46c925(0x159)][_0x46c925(0x13c)])[_0x46c925(0x109)](_0x3c0e89[_0x46c925(0x143)](this['dispose$']))[_0x46c925(0xfa)](_0x353993=>{var _0x134d99=_0x46c925;const _0x5a36e9=_0x353993['getUnitId'](),_0x3cda37=this[_0x134d99(0x188)]['get'](_0x5a36e9);_0x3cda37==null||_0x3cda37[_0x134d99(0xc8)]();});}async[_0x17e565(0x193)](_0x1a31fc){var _0x1e1efb=_0x17e565;const _0x7977c6=await this[_0x1e1efb(0xed)][_0x1e1efb(0x11e)](_0x1a31fc),_0x266f0e=this[_0x1e1efb(0x12e)][_0x1e1efb(0x14a)](_0x54bd70[_0x1e1efb(0x10b)],_0x1a31fc,_0x7977c6);return _0x266f0e[_0x1e1efb(0x166)](),this[_0x1e1efb(0x188)][_0x1e1efb(0x18a)](_0x1a31fc,_0x266f0e),_0x266f0e;}},_0x54bd70[_0x17e565(0x10a)]=_0x1bd40c([_0x4da1e7(0x0,_0x1f64cb[_0x17e565(0xbb)]),_0x4da1e7(0x1,_0x1f64cb[_0x17e565(0x1a5)](_0x1f64cb['Injector'])),_0x4da1e7(0x2,_0x1f64cb['Inject'](_0x1a1baf[_0x17e565(0x179)]))],_0x54bd70[_0x17e565(0x10a)]);var _0x35134b=(_0x4ecefa=>(_0x4ecefa[_0x17e565(0xeb)]='offline',_0x4ecefa[_0x17e565(0xc1)]=_0x17e565(0x116),_0x4ecefa[_0x17e565(0x192)]=_0x17e565(0xb1),_0x4ecefa[_0x17e565(0x13b)]='not-following',_0x4ecefa[_0x17e565(0xca)]=_0x17e565(0x178),_0x4ecefa))(_0x35134b||{});const _0x1d76ab=_0x17e565(0x19d),_0xe6a8e6=0xc8;_0x54bd70[_0x17e565(0x10b)]=class extends _0x1f64cb[_0x17e565(0x113)]{constructor(_0x179177,_0x46be3,_0x5b63f7,_0xc13b2,_0x28e935){var _0x6fc45e=_0x17e565;super(),_0x6f703(this,_0x6fc45e(0xf6),new _0x2d8f26[(_0x6fc45e(0x125))](_0x6fc45e(0x116))),_0x6f703(this,_0x6fc45e(0x165),this[_0x6fc45e(0xf6)][_0x6fc45e(0x13d)]()),_0x6f703(this,_0x6fc45e(0x197),!0x1),_0x6f703(this,_0x6fc45e(0x123),null),_0x6f703(this,_0x6fc45e(0x136),null),(this[_0x6fc45e(0xd3)]=_0x179177,this['_collabSession']=_0x46be3,this[_0x6fc45e(0xe4)]=_0x5b63f7,this[_0x6fc45e(0xe6)]=_0xc13b2,this[_0x6fc45e(0x17e)]=_0x28e935);}get[_0x17e565(0x18f)](){return this['_status$']['getValue']();}[_0x17e565(0xc8)](){var _0x2804da=_0x17e565,_0xc96a;(_0xc96a=this[_0x2804da(0x123)])==null||_0xc96a[_0x2804da(0xc8)](),this[_0x2804da(0xf6)][_0x2804da(0x149)](_0x2804da(0x116)),this['_status$'][_0x2804da(0xc7)]();}['init'](){var _0xb44cda=_0x17e565;this[_0xb44cda(0x197)]||(this['_init']=!0x0,this[_0xb44cda(0xf1)]['sessionStatus$'][_0xb44cda(0x109)](_0x3c0e89[_0xb44cda(0x143)](this['dispose$']))[_0xb44cda(0xfa)](_0xf77b01=>{var _0xb7e79c=_0xb44cda;switch(_0xf77b01){case _0x1a1baf[_0xb7e79c(0x156)]['OFFLINE']:this[_0xb7e79c(0x18e)]();break;case _0x1a1baf[_0xb7e79c(0x156)][_0xb7e79c(0x1a6)]:this[_0xb7e79c(0x114)]();break;}}),this[_0xb44cda(0xf1)][_0xb44cda(0xdd)][_0xb44cda(0x109)](_0x3c0e89['takeUntil'](this[_0xb44cda(0x10f)]))[_0xb44cda(0xfa)](_0x4cb3b0=>{var _0x1765e2=_0xb44cda;const {eventID:_0x29e4aa}=_0x4cb3b0;switch(_0x29e4aa){case _0x366e80[_0x1765e2(0x151)][_0x1765e2(0xb5)]:this[_0x1765e2(0x19c)](_0x4cb3b0);break;case _0x366e80[_0x1765e2(0x151)][_0x1765e2(0x13e)]:this['_handleOperation'](_0x4cb3b0);break;case _0x366e80['CollaborationEvent']['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x366e80[_0x1765e2(0x151)]['NEW_CHANGESETS']:this[_0x1765e2(0x194)](_0x4cb3b0);break;}}));}['tryStartPresenting'](){var _0x4566f8=_0x17e565;this[_0x4566f8(0xf1)][_0x4566f8(0xb2)]({'eventID':_0x366e80[_0x4566f8(0x151)][_0x4566f8(0x175)],'data':{'unitID':this[_0x4566f8(0xd3)],'userID':this[_0x4566f8(0xf1)]['getMemberID']()}},this[_0x4566f8(0xd3)]);}[_0x17e565(0x110)](){var _0x5de397=_0x17e565;this['_status']===_0x5de397(0x178)&&(this[_0x5de397(0xf6)][_0x5de397(0x149)](_0x5de397(0x116)),this[_0x5de397(0xf1)][_0x5de397(0xb2)]({'eventID':_0x366e80[_0x5de397(0x151)][_0x5de397(0xc3)],'data':{'unitID':this[_0x5de397(0xd3)]}},this[_0x5de397(0xd3)]));}[_0x17e565(0x131)](){var _0x5ae601=_0x17e565;this[_0x5ae601(0x18f)]==='not-following'&&(this[_0x5ae601(0xf6)][_0x5ae601(0x149)]('following'),this['_startFollowing']());}[_0x17e565(0xfe)](){var _0x6a17fd=_0x17e565;this[_0x6a17fd(0x18f)]==='following'&&this[_0x6a17fd(0x11c)]();}[_0x17e565(0x19c)](_0x3f74e4){var _0x43b5c7=_0x17e565;const {presenter:_0x5b2239}=_0x3f74e4[_0x43b5c7(0xc2)],_0x2ea41b=this[_0x43b5c7(0xf1)][_0x43b5c7(0x148)]();this[_0x43b5c7(0x136)]=_0x5b2239,_0x5b2239===_0x2ea41b?(this[_0x43b5c7(0x11c)](),this[_0x43b5c7(0xf3)]()):this[_0x43b5c7(0x18f)]!==_0x43b5c7(0x105)&&(this[_0x43b5c7(0x182)](),this[_0x43b5c7(0xb4)]());}[_0x17e565(0xf7)](){var _0x48e1d8=_0x17e565;const _0xe0a8c4={'eventID':_0x366e80[_0x48e1d8(0x151)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x48e1d8(0xb2)](_0xe0a8c4,this['_unitID']);}[_0x17e565(0x11d)](){var _0x19fd2f=_0x17e565;this[_0x19fd2f(0x136)]=null,this[_0x19fd2f(0x18f)]!==_0x19fd2f(0x178)&&this[_0x19fd2f(0x139)]();}[_0x17e565(0x194)](_0x2a894b){var _0x101f6b=_0x17e565;if(this['_status']==='following'&&this[_0x101f6b(0x136)]===_0x2a894b[_0x101f6b(0xc2)]['memberID']){const _0x25ae23=_0x366e80[_0x101f6b(0x181)](_0x2a894b['data'])['mutations'][_0x101f6b(0x10e)]()[_0x101f6b(0xe9)](_0x6dd0=>_0x6dd0['id']===_0x41a359[_0x101f6b(0x1a3)]['id']);if(_0x25ae23){const _0x121e7f=_0x25ae23[_0x101f6b(0x1a8)][_0x101f6b(0x169)],_0x4be7b0=_0x25ae23['params'][_0x101f6b(0x15e)]['id'];setTimeout(()=>{var _0x2a6bf2=_0x101f6b;this[_0x2a6bf2(0x17e)][_0x2a6bf2(0x198)](_0x41a359['SetWorksheetActiveOperation']['id'],{'unitId':_0x121e7f,'subUnitId':_0x4be7b0},{'fromCollab':!0x0});});}}}[_0x17e565(0xf3)](){var _0x32d163=_0x17e565;this[_0x32d163(0xf6)][_0x32d163(0x149)](_0x32d163(0x178));const _0x56dc55=new Map(),_0x4dc550=this[_0x32d163(0x123)]=new _0x1f64cb[(_0x32d163(0xb0))]();_0x4dc550[_0x32d163(0xe1)](_0x1f64cb[_0x32d163(0xbf)](()=>{var _0x5dfb43=_0x32d163;_0x56dc55[_0x5dfb43(0x126)](_0x57c172=>_0x57c172['complete']()),_0x56dc55[_0x5dfb43(0x154)]();})),_0x4dc550[_0x32d163(0xe1)](this['_commandService'][_0x32d163(0x135)](_0x3294ea=>{var _0x534ed6=_0x32d163,_0x5baf5d;if(_0x3294ea[_0x534ed6(0xfc)]!==_0x1f64cb[_0x534ed6(0x14b)][_0x534ed6(0x174)]||!this[_0x534ed6(0xe6)]['shouldShareOperation'](_0x3294ea['id']))return;const {id:_0x3e5f16}=_0x3294ea;let _0x489277;_0x56dc55[_0x534ed6(0x119)](_0x3e5f16)?_0x489277=_0x56dc55[_0x534ed6(0x162)](_0x3e5f16):(_0x489277=new _0x2d8f26[(_0x534ed6(0x10d))](),_0x56dc55[_0x534ed6(0x18a)](_0x3e5f16,_0x489277),_0x489277[_0x534ed6(0x109)](_0x3c0e89[_0x534ed6(0xf0)]((_0x5baf5d=this[_0x534ed6(0xe4)][_0x534ed6(0x147)](_0x1d76ab))!=null?_0x5baf5d:_0xe6a8e6,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2a9e65=>{var _0x20abe0=_0x534ed6;this[_0x20abe0(0xf1)]['send']({'eventID':_0x366e80[_0x20abe0(0x151)][_0x20abe0(0x13e)],'data':{'unitID':this[_0x20abe0(0xd3)],'operations':{[_0x2a9e65['id']]:{'id':_0x2a9e65['id'],'params':JSON['stringify'](_0x2a9e65['params'])}}}},this[_0x20abe0(0xd3)]);})),_0x489277[_0x534ed6(0x149)](_0x3294ea);})),this[_0x32d163(0xe6)]['getInitialStates'](this[_0x32d163(0xd3)])[_0x32d163(0x126)](_0x180431=>this[_0x32d163(0xf1)][_0x32d163(0xb2)]({'eventID':_0x366e80[_0x32d163(0x151)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x32d163(0xd3)],'operations':{[_0x180431['id']]:{'id':_0x180431['id'],'params':JSON[_0x32d163(0x122)](_0x180431['params'])}}}},this['_unitID']));}['_stopPresenting'](){var _0x1c4916=_0x17e565,_0x3c2131;this[_0x1c4916(0xf6)][_0x1c4916(0x149)](_0x1c4916(0x116)),(_0x3c2131=this[_0x1c4916(0x123)])==null||_0x3c2131[_0x1c4916(0xc8)](),this[_0x1c4916(0x123)]=null;}[_0x17e565(0xb4)](){var _0x1c286d=_0x17e565,_0x1bc468;(_0x1bc468=this[_0x1c286d(0x123)])==null||_0x1bc468[_0x1c286d(0xc8)](),this[_0x1c286d(0xf6)][_0x1c286d(0x149)](_0x1c286d(0xb1));}[_0x17e565(0x139)](){var _0x15f9b3=_0x17e565,_0x4fc1da;this[_0x15f9b3(0xf6)][_0x15f9b3(0x149)](_0x15f9b3(0x116)),(_0x4fc1da=this[_0x15f9b3(0x123)])==null||_0x4fc1da[_0x15f9b3(0xc8)](),this['_commandDisposable']=null;}[_0x17e565(0x11c)](){var _0x3ebc24=_0x17e565,_0x44e163;this[_0x3ebc24(0xf6)][_0x3ebc24(0x149)](_0x3ebc24(0x105)),(_0x44e163=this[_0x3ebc24(0x123)])==null||_0x44e163['dispose']();}['_handleOperation'](_0x30809b){var _0x19e22c=_0x17e565;if([_0x19e22c(0x178),_0x19e22c(0x105),_0x19e22c(0xc0)]['includes'](this[_0x19e22c(0x18f)])||!_0x30809b[_0x19e22c(0xc2)]['presenter']||_0x30809b[_0x19e22c(0xc2)][_0x19e22c(0xba)]===this[_0x19e22c(0xf1)][_0x19e22c(0x148)]())return;this[_0x19e22c(0x18f)]===_0x19e22c(0x116)&&this['_startFollowing']();const _0x3e949c=_0x30809b[_0x19e22c(0xc2)]['operations'];Object[_0x19e22c(0x167)](_0x3e949c)[_0x19e22c(0x126)](_0x3fc860=>{var _0x574914=_0x19e22c;this[_0x574914(0x17e)]['executeCommand'](_0x3fc860['id'],_0x3fc860['params']?JSON['parse'](_0x3fc860['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x3a34ab=_0x17e565,_0xcd8de8;this[_0x3a34ab(0xf6)][_0x3a34ab(0x149)](_0x3a34ab(0xc0)),(_0xcd8de8=this[_0x3a34ab(0x123)])==null||_0xcd8de8[_0x3a34ab(0xc8)]();}['_handleOnline'](){var _0x44d5cd=_0x17e565;this[_0x44d5cd(0xf6)][_0x44d5cd(0x149)]('idle'),this['_fetchOperations']();}},_0x54bd70[_0x17e565(0x10b)]=_0x1bd40c([_0x4da1e7(0x2,_0x1f64cb[_0x17e565(0x140)]),_0x4da1e7(0x3,_0x1f64cb[_0x17e565(0x1a5)](_0x30f6fa)),_0x4da1e7(0x4,_0x1f64cb[_0x17e565(0x133)])],_0x54bd70[_0x17e565(0x10b)]);function _0x4c67b5(){var _0x1ef129=_0x17e565;const _0x1d08f0=_0x39844e[_0x1ef129(0x18b)](_0x54bd70[_0x1ef129(0x10a)]),_0x6585ee=_0x39844e[_0x1ef129(0x18b)](_0x1f64cb[_0x1ef129(0xbb)]),_0xc2dea=_0x39844e[_0x1ef129(0xb3)](()=>_0x6585ee['getCurrentTypeOfUnit$'](_0x1f64cb['UniverInstanceType'][_0x1ef129(0x13c)]),void 0x0,!0x1,[]),[_0x18b798,_0x252880]=_0x37b786[_0x1ef129(0x161)](null),[_0x182f42,_0x3c3346]=_0x37b786[_0x1ef129(0x161)](_0x35134b[_0x1ef129(0xc1)]),_0x354e82=_0x37b786[_0x1ef129(0xb9)](null);return _0x37b786[_0x1ef129(0xd8)](()=>(_0xc2dea&&_0x1d08f0[_0x1ef129(0x191)](_0xc2dea[_0x1ef129(0x173)]())[_0x1ef129(0x150)](_0x5b99a2=>{var _0x3300ff=_0x1ef129;_0x252880(_0x5b99a2),_0x354e82[_0x3300ff(0xd4)]=_0x5b99a2[_0x3300ff(0x165)][_0x3300ff(0xfa)](_0x26f7dc=>{_0x3c3346(_0x26f7dc);});}),()=>{var _0x16ec0e=_0x1ef129,_0x20a17b;(_0x20a17b=_0x354e82[_0x16ec0e(0xd4)])==null||_0x20a17b[_0x16ec0e(0x18c)](),_0x354e82['current']=null;}),[_0xc2dea,_0x1d08f0]),_0x18b798?_0x3ee384[_0x1ef129(0x170)](_0x4f877f[_0x1ef129(0x187)],{'align':'end','disabled':_0x182f42===_0x35134b['OFFLINE'],'className':_0x1ef129(0x16d),'overlay':_0x3ee384[_0x1ef129(0x170)](_0x36cac4,{'status':_0x182f42,'coordinator':_0x18b798}),'children':_0x3ee384[_0x1ef129(0x170)]('button',{'className':_0x4f877f[_0x1ef129(0xec)](_0x1ef129(0x106),{'univer-cursor-not-allowed':_0x182f42===_0x35134b[_0x1ef129(0xeb)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x182f42!==_0x35134b['OFFLINE']}),'type':'button','children':_0x3ee384['jsx'](_0x23fda8,{'className':_0x1ef129(0x17d)})})}):null;}function _0x36cac4(_0x3e5463){var _0x21c919=_0x17e565;const {status:_0x2dff97,coordinator:_0x836b1b}=_0x3e5463;switch(_0x2dff97){case _0x35134b[_0x21c919(0xc1)]:return _0x3ee384[_0x21c919(0x170)](_0x5b31e3,{'coordinator':_0x836b1b});case _0x35134b[_0x21c919(0x192)]:return _0x3ee384['jsx'](_0xba6fd4,{'coordinator':_0x836b1b});case _0x35134b['NOT_FOLLOWING']:return _0x3ee384[_0x21c919(0x170)](_0x32db31,{'coordinator':_0x836b1b});case _0x35134b['OFFLINE']:return _0x3ee384[_0x21c919(0x170)](_0x8fec72,{});case _0x35134b[_0x21c919(0xca)]:return _0x3ee384[_0x21c919(0x170)](_0x383ce6,{'coordinator':_0x836b1b});default:return null;}}function _0x5b31e3(_0x643f97){var _0xcffbbd=_0x17e565;const {coordinator:_0x30a3a2}=_0x643f97;return _0x3ee384['jsxs'](_0x3ee384[_0xcffbbd(0x10c)],{'children':[_0x3ee384['jsx'](_0xcffbbd(0x102),{'className':_0xcffbbd(0xff),'children':_0xcffbbd(0x184)}),_0x3ee384['jsx'](_0x4f877f[_0xcffbbd(0x14f)],{'onClick':()=>_0x30a3a2[_0xcffbbd(0x195)](),'children':'Start'})]});}function _0xba6fd4(_0x4f4150){var _0x41d2a1=_0x17e565;const {coordinator:_0x4df229}=_0x4f4150;return _0x3ee384[_0x41d2a1(0x117)](_0x3ee384[_0x41d2a1(0x10c)],{'children':[_0x3ee384[_0x41d2a1(0x170)](_0x41d2a1(0x102),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x41d2a1(0xb8)}),_0x3ee384[_0x41d2a1(0x170)](_0x4f877f['Button'],{'onClick':()=>_0x4df229[_0x41d2a1(0xfe)](),'children':'Stop\x20following'})]});}function _0x32db31(_0x4ce293){var _0x5dbe89=_0x17e565;const {coordinator:_0x35bf91}=_0x4ce293;return _0x3ee384[_0x5dbe89(0x117)](_0x3ee384[_0x5dbe89(0x10c)],{'children':[_0x3ee384[_0x5dbe89(0x170)](_0x5dbe89(0x102),{'className':_0x5dbe89(0xff),'children':_0x5dbe89(0x16f)}),_0x3ee384[_0x5dbe89(0x170)](_0x4f877f[_0x5dbe89(0x14f)],{'variant':_0x5dbe89(0x137),'onClick':()=>_0x35bf91[_0x5dbe89(0x131)](),'children':_0x5dbe89(0x11f)})]});}function _0x383ce6(_0x294d04){var _0x2ef71a=_0x17e565;const {coordinator:_0x3dcd2a}=_0x294d04;return _0x3ee384['jsxs'](_0x3ee384[_0x2ef71a(0x10c)],{'children':[_0x3ee384['jsx'](_0x2ef71a(0x102),{'className':_0x2ef71a(0xff),'children':_0x2ef71a(0xd6)}),_0x3ee384['jsx'](_0x4f877f[_0x2ef71a(0x14f)],{'variant':_0x2ef71a(0xbe),'onClick':()=>_0x3dcd2a[_0x2ef71a(0x110)](),'children':'Stop\x20presenting'})]});}function _0x8fec72(){var _0x321ccd=_0x17e565;return _0x3ee384[_0x321ccd(0x170)](_0x3ee384[_0x321ccd(0x10c)],{'children':'You\x27are\x20offline.'});}var _0x529344=Object[_0x17e565(0xce)],_0x45fb7f=(_0x30f6ba,_0x562f8c,_0x4618ce,_0x4447d8)=>{var _0x4bf15a=_0x17e565;for(var _0x605cae=_0x4447d8>0x1?void 0x0:_0x4447d8?_0x529344(_0x562f8c,_0x4618ce):_0x562f8c,_0x503efa=_0x30f6ba[_0x4bf15a(0x17f)]-0x1,_0x475ac5;_0x503efa>=0x0;_0x503efa--)(_0x475ac5=_0x30f6ba[_0x503efa])&&(_0x605cae=_0x475ac5(_0x605cae)||_0x605cae);return _0x605cae;},_0x2967cc=(_0x5a0865,_0x4a5b85)=>(_0xd82d57,_0x35e6f2)=>_0x4a5b85(_0xd82d57,_0x35e6f2,_0x5a0865);_0x54bd70[_0x17e565(0x1a2)]=class extends _0x1f64cb['Disposable']{constructor(_0x403934,_0x7869d3){var _0x75d70a=_0x17e565;super(),this[_0x75d70a(0x12e)]=_0x403934,this[_0x75d70a(0x176)]=_0x7869d3,this[_0x75d70a(0x130)]();}[_0x17e565(0x130)](){var _0xe80276=_0x17e565;this[_0xe80276(0x19a)](this[_0xe80276(0x176)]['registerComponent'](_0x39844e[_0xe80276(0xdf)][_0xe80276(0x1a9)],()=>_0x39844e[_0xe80276(0x118)](_0x4c67b5,this[_0xe80276(0x12e)])));}},_0x54bd70[_0x17e565(0x1a2)]=_0x45fb7f([_0x2967cc(0x0,_0x1f64cb[_0x17e565(0x1a5)](_0x1f64cb['Injector'])),_0x2967cc(0x1,_0x39844e[_0x17e565(0xde)])],_0x54bd70[_0x17e565(0x1a2)]);const _0x27cc42=_0x17e565(0x16b),_0x944190={};var _0x431728=Object[_0x17e565(0xce)],_0x34e1ef=(_0x27eea6,_0x5dcf6c,_0x113c38,_0x4e2fed)=>{var _0x22d5ec=_0x17e565;for(var _0x2c13bb=_0x4e2fed>0x1?void 0x0:_0x4e2fed?_0x431728(_0x5dcf6c,_0x113c38):_0x5dcf6c,_0x456ab4=_0x27eea6[_0x22d5ec(0x17f)]-0x1,_0x3e4c55;_0x456ab4>=0x0;_0x456ab4--)(_0x3e4c55=_0x27eea6[_0x456ab4])&&(_0x2c13bb=_0x3e4c55(_0x2c13bb)||_0x2c13bb);return _0x2c13bb;},_0x11868b=(_0x3d1a93,_0x352d26)=>(_0x2130bb,_0x5bfab0)=>_0x352d26(_0x2130bb,_0x5bfab0,_0x3d1a93);let _0x45868b=class extends _0x1f64cb[_0x17e565(0x11a)]{constructor(_0x1d022d){var _0x55eede=_0x17e565;super(),this[_0x55eede(0xe6)]=_0x1d022d,this['_init']();}[_0x17e565(0x197)](){var _0x25b16e=_0x17e565;[_0x2dd262[_0x25b16e(0xee)]['id'],_0x2dd262[_0x25b16e(0x19f)]['id'],_0x41a359['SetWorksheetActiveOperation']['id']][_0x25b16e(0x126)](_0x1a643c=>{var _0x24b531=_0x25b16e;this['disposeWithMe'](this[_0x24b531(0xe6)][_0x24b531(0xe3)](_0x1a643c));});}};_0x45868b=_0x34e1ef([_0x11868b(0x0,_0x1f64cb[_0x17e565(0x1a5)](_0x30f6fa))],_0x45868b);var _0x2da088=Object[_0x17e565(0xb6)],_0x25bac6=Object[_0x17e565(0xce)],_0x4db123=(_0x3db96f,_0x396236,_0x162ad9)=>_0x396236 in _0x3db96f?_0x2da088(_0x3db96f,_0x396236,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x162ad9}):_0x3db96f[_0x396236]=_0x162ad9,_0x4e40c6=(_0x9a4894,_0x2cd40e,_0x385c2d,_0x55bf24)=>{var _0x55782b=_0x17e565;for(var _0xa5471e=_0x55bf24>0x1?void 0x0:_0x55bf24?_0x25bac6(_0x2cd40e,_0x385c2d):_0x2cd40e,_0x44ebea=_0x9a4894[_0x55782b(0x17f)]-0x1,_0x41ef77;_0x44ebea>=0x0;_0x44ebea--)(_0x41ef77=_0x9a4894[_0x44ebea])&&(_0xa5471e=_0x41ef77(_0xa5471e)||_0xa5471e);return _0xa5471e;},_0x18f0bc=(_0x9f5c5f,_0x382a59)=>(_0x10b7f1,_0x4069b6)=>_0x382a59(_0x10b7f1,_0x4069b6,_0x9f5c5f),_0x516a8d=(_0x53ea37,_0x1070b8,_0x42a369)=>_0x4db123(_0x53ea37,typeof _0x1070b8!='symbol'?_0x1070b8+'':_0x1070b8,_0x42a369);const _0x544896=_0x17e565(0x14d);_0x54bd70['UniverLiveSharePlugin']=class extends _0x1f64cb[_0x17e565(0xda)]{constructor(_0x21e20e=_0x944190,_0x437712,_0x41e206){var _0x152d7f=_0x17e565;super(),this[_0x152d7f(0x144)]=_0x21e20e,this['_injector']=_0x437712,this['_configService']=_0x41e206;const {..._0x3aadfa}=_0x1f64cb[_0x152d7f(0x157)]({},_0x944190,this[_0x152d7f(0x144)]);this[_0x152d7f(0xe4)][_0x152d7f(0xcc)](_0x27cc42,_0x3aadfa);}['onStarting'](){var _0x20d3e9=_0x17e565;_0x1f64cb[_0x20d3e9(0x186)](this[_0x20d3e9(0x12e)],_0x1f64cb['mergeOverrideWithDependencies']([[_0x30f6fa],[_0x54bd70['LiveShareController']],[_0x45868b],[_0x54bd70['DesktopLiveShareController']]],this[_0x20d3e9(0x144)]['override'])),_0x1f64cb[_0x20d3e9(0x199)](this[_0x20d3e9(0x12e)],[[_0x45868b]]);}[_0x17e565(0x17a)](){var _0x4a302a=_0x17e565;_0x1f64cb[_0x4a302a(0x199)](this[_0x4a302a(0x12e)],[[_0x54bd70[_0x4a302a(0x1a2)]]]);}},_0x516a8d(_0x54bd70[_0x17e565(0x108)],'type',_0x1f64cb['UniverInstanceType'][_0x17e565(0x17b)]),_0x516a8d(_0x54bd70[_0x17e565(0x108)],_0x17e565(0xf9),_0x544896),_0x54bd70['UniverLiveSharePlugin']=_0x4e40c6([_0x1f64cb[_0x17e565(0xd7)](_0x1a1baf[_0x17e565(0x196)]),_0x18f0bc(0x1,_0x1f64cb[_0x17e565(0x1a5)](_0x1f64cb[_0x17e565(0x18d)])),_0x18f0bc(0x2,_0x1f64cb[_0x17e565(0x140)])],_0x54bd70['UniverLiveSharePlugin']),_0x54bd70[_0x17e565(0xd0)]=_0x4c67b5,_0x54bd70[_0x17e565(0xe5)]=_0x30f6fa,_0x54bd70[_0x17e565(0xcf)]=_0x35134b,Object['defineProperty'](_0x54bd70,Symbol[_0x17e565(0x1a7)],{'value':_0x17e565(0x112)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.10.9-nightly.202509260614",
3
+ "version": "0.10.10-experimental.20251010-3f807c5",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -46,14 +46,14 @@
46
46
  "rxjs": ">=7.0.0"
47
47
  },
48
48
  "dependencies": {
49
- "@univerjs/icons": "^0.4.8",
50
- "@univerjs-pro/collaboration": "0.10.9-nightly.202509260614",
51
- "@univerjs-pro/collaboration-client": "0.10.9-nightly.202509260614",
52
- "@univerjs/core": "0.10.9-nightly.202509260614",
53
- "@univerjs/design": "0.10.9-nightly.202509260614",
54
- "@univerjs/ui": "0.10.9-nightly.202509260614",
55
- "@univerjs/sheets-ui": "0.10.9-nightly.202509260614",
56
- "@univerjs/sheets": "0.10.9-nightly.202509260614"
49
+ "@univerjs/icons": "^0.4.9",
50
+ "@univerjs-pro/collaboration": "0.10.10-experimental.20251010-3f807c5",
51
+ "@univerjs/core": "0.10.10-experimental.20251010-3f807c5",
52
+ "@univerjs-pro/collaboration-client": "0.10.10-experimental.20251010-3f807c5",
53
+ "@univerjs/design": "0.10.10-experimental.20251010-3f807c5",
54
+ "@univerjs/sheets": "0.10.10-experimental.20251010-3f807c5",
55
+ "@univerjs/ui": "0.10.10-experimental.20251010-3f807c5",
56
+ "@univerjs/sheets-ui": "0.10.10-experimental.20251010-3f807c5"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.6",
@@ -61,9 +61,9 @@
61
61
  "rxjs": "7.8.2",
62
62
  "tailwindcss": "^3.4.17",
63
63
  "typescript": "^5.9.2",
64
- "vite": "^7.1.3",
64
+ "vite": "^7.1.7",
65
65
  "vitest": "^3.2.4",
66
- "@univerjs-infra/shared": "0.10.9",
66
+ "@univerjs-infra/shared": "0.10.10",
67
67
  "@univerjs/protocol": "0.1.47-alpha.0"
68
68
  },
69
69
  "scripts": {