@univerjs-pro/live-share 0.10.6-experimental.20250904-9591d16 → 0.10.6-nightly.202509060724

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';var _0x425c47=_0x2e23;(function(_0x3e2e45,_0x522ce4){var _0x1adf9e=_0x2e23,_0x1a1a90=_0x3e2e45();while(!![]){try{var _0x2ab7a0=parseInt(_0x1adf9e(0x14d))/0x1*(parseInt(_0x1adf9e(0xd3))/0x2)+parseInt(_0x1adf9e(0x91))/0x3+parseInt(_0x1adf9e(0x7a))/0x4+parseInt(_0x1adf9e(0x125))/0x5*(-parseInt(_0x1adf9e(0x77))/0x6)+parseInt(_0x1adf9e(0x122))/0x7*(-parseInt(_0x1adf9e(0xd1))/0x8)+-parseInt(_0x1adf9e(0x10f))/0x9*(parseInt(_0x1adf9e(0xc9))/0xa)+-parseInt(_0x1adf9e(0xa2))/0xb*(-parseInt(_0x1adf9e(0xe4))/0xc);if(_0x2ab7a0===_0x522ce4)break;else _0x1a1a90['push'](_0x1a1a90['shift']());}catch(_0x5c7126){_0x1a1a90['push'](_0x1a1a90['shift']());}}}(_0x1bf4,0x8a4f4));var U=Object[_0x425c47(0x104)],F=(_0x4f124b,_0x31633a,_0x1aee27)=>_0x31633a in _0x4f124b?U(_0x4f124b,_0x31633a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1aee27}):_0x4f124b[_0x31633a]=_0x1aee27,v=(_0x3b509e,_0x54374b,_0x16d243)=>F(_0x3b509e,typeof _0x54374b!=_0x425c47(0x11b)?_0x54374b+'':_0x54374b,_0x16d243);Object[_0x425c47(0x104)](exports,Symbol['toStringTag'],{'value':_0x425c47(0x132)});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 _0x3338f6=_0x425c47;return u=Object['assign']||function(_0x128f16){var _0x38cba1=_0x2e23;for(var _0xd7659c,_0x5e1e83=0x1,_0x3a2536=arguments[_0x38cba1(0xb7)];_0x5e1e83<_0x3a2536;_0x5e1e83++){_0xd7659c=arguments[_0x5e1e83];for(var _0x1cd2ec in _0xd7659c)Object[_0x38cba1(0xa7)][_0x38cba1(0x72)]['call'](_0xd7659c,_0x1cd2ec)&&(_0x128f16[_0x1cd2ec]=_0xd7659c[_0x1cd2ec]);}return _0x128f16;},u[_0x3338f6(0x10c)](this,arguments);},$=function(_0x3816fe,_0xcfa45b){var _0x40d2f1=_0x425c47,_0xe24188={};for(var _0x52822b in _0x3816fe)Object[_0x40d2f1(0xa7)][_0x40d2f1(0x72)][_0x40d2f1(0x85)](_0x3816fe,_0x52822b)&&_0xcfa45b[_0x40d2f1(0x88)](_0x52822b)<0x0&&(_0xe24188[_0x52822b]=_0x3816fe[_0x52822b]);if(_0x3816fe!=null&&typeof Object[_0x40d2f1(0x143)]==_0x40d2f1(0xda)){for(var _0x3b92ad=0x0,_0x52822b=Object[_0x40d2f1(0x143)](_0x3816fe);_0x3b92ad<_0x52822b['length'];_0x3b92ad++)_0xcfa45b[_0x40d2f1(0x88)](_0x52822b[_0x3b92ad])<0x0&&Object[_0x40d2f1(0xa7)][_0x40d2f1(0x10a)][_0x40d2f1(0x85)](_0x3816fe,_0x52822b[_0x3b92ad])&&(_0xe24188[_0x52822b[_0x3b92ad]]=_0x3816fe[_0x52822b[_0x3b92ad]]);}return _0xe24188;},j=f[_0x425c47(0x81)](function(_0xb56a6e,_0x3a6aef){var _0x36c091=_0x425c47,_0x193e49=_0xb56a6e[_0x36c091(0xf0)],_0x1e7dc6=_0xb56a6e['id'],_0x4e28bb=_0xb56a6e[_0x36c091(0x13f)],_0x5b34a8=_0xb56a6e[_0x36c091(0x107)],_0x59181e=$(_0xb56a6e,['icon','id',_0x36c091(0x13f),_0x36c091(0x107)]),_0xbcc370=_0x36c091(0xd6)[_0x36c091(0xed)](_0x1e7dc6,'\x20')['concat'](_0x4e28bb||'')[_0x36c091(0xa0)](),_0x2ac73a=f[_0x36c091(0xbd)]('_'['concat'](k()));return y(_0x193e49,''['concat'](_0x1e7dc6),{'defIds':_0x193e49[_0x36c091(0xfd)],'idSuffix':_0x2ac73a[_0x36c091(0x118)]},u({'ref':_0x3a6aef,'className':_0xbcc370},_0x59181e),_0x5b34a8);});function y(_0x3a2a49,_0x2f5f8b,_0x2cfa50,_0x670c9f,_0x21d87b){var _0x13bb0e=_0x425c47;return f[_0x13bb0e(0xc1)](_0x3a2a49[_0x13bb0e(0x113)],u(u({'key':_0x2f5f8b},H(_0x3a2a49,_0x2cfa50,_0x21d87b)),_0x670c9f),(V(_0x3a2a49,_0x2cfa50)[_0x13bb0e(0x9c)]||[])['map'](function(_0xcb858e,_0x51dc3f){var _0x1a2c53=_0x13bb0e;return y(_0xcb858e,''[_0x1a2c53(0xed)](_0x2f5f8b,'-')[_0x1a2c53(0xed)](_0x3a2a49[_0x1a2c53(0x113)],'-')['concat'](_0x51dc3f),_0x2cfa50,void 0x0,_0x21d87b);}));}function H(_0x57e888,_0x43ba74,_0x35e6bb){var _0x17dd29=_0x425c47,_0x281342=u({},_0x57e888[_0x17dd29(0x139)]);_0x35e6bb!=null&&_0x35e6bb['colorChannel1']&&_0x281342[_0x17dd29(0xff)]===_0x17dd29(0x97)&&(_0x281342['fill']=_0x35e6bb[_0x17dd29(0x97)]),_0x57e888[_0x17dd29(0x113)]==='mask'&&_0x281342['id']&&(_0x281342['id']=_0x281342['id']+_0x43ba74[_0x17dd29(0xd8)]),Object['entries'](_0x281342)[_0x17dd29(0x82)](function(_0x595a01){var _0x551fab=_0x17dd29,_0x4c5be4=_0x595a01[0x0],_0x1a897f=_0x595a01[0x1];_0x4c5be4===_0x551fab(0x124)&&typeof _0x1a897f==_0x551fab(0xfe)&&(_0x281342[_0x4c5be4]=_0x1a897f[_0x551fab(0x135)](/url\(#(.*)\)/,'url(#$1'[_0x551fab(0xed)](_0x43ba74[_0x551fab(0xd8)],')')));});var _0x10a47c=_0x43ba74[_0x17dd29(0xfd)];return!_0x10a47c||_0x10a47c[_0x17dd29(0xb7)]===0x0||(_0x57e888[_0x17dd29(0x113)]==='use'&&_0x281342[_0x17dd29(0x126)]&&(_0x281342[_0x17dd29(0x126)]=_0x281342[_0x17dd29(0x126)]+_0x43ba74['idSuffix']),Object[_0x17dd29(0x76)](_0x281342)[_0x17dd29(0x82)](function(_0x35e4e7){var _0x2ec14c=_0x17dd29,_0x5c5b30=_0x35e4e7[0x0],_0x3debd5=_0x35e4e7[0x1];typeof _0x3debd5==_0x2ec14c(0xfe)&&(_0x281342[_0x5c5b30]=_0x3debd5[_0x2ec14c(0x135)](/url\(#(.*)\)/,_0x2ec14c(0x100)['concat'](_0x43ba74[_0x2ec14c(0xd8)],')')));})),_0x281342;}function V(_0x336ab9,_0x52df54){var _0x3fc2b8=_0x425c47,_0x20eb0c,_0x410e4d=_0x52df54[_0x3fc2b8(0xfd)];return!_0x410e4d||_0x410e4d[_0x3fc2b8(0xb7)]===0x0?_0x336ab9:_0x336ab9['tag']===_0x3fc2b8(0xfa)&&(!((_0x20eb0c=_0x336ab9[_0x3fc2b8(0x9c)])===null||_0x20eb0c===void 0x0)&&_0x20eb0c[_0x3fc2b8(0xb7)])?u(u({},_0x336ab9),{'children':_0x336ab9[_0x3fc2b8(0x9c)]['map'](function(_0x2be993){var _0x429177=_0x3fc2b8;return typeof _0x2be993[_0x429177(0x139)]['id']==_0x429177(0xfe)&&_0x410e4d&&_0x410e4d[_0x429177(0x12c)](_0x2be993[_0x429177(0x139)]['id'])?u(u({},_0x2be993),{'attrs':u(u({},_0x2be993[_0x429177(0x139)]),{'id':_0x2be993['attrs']['id']+_0x52df54['idSuffix']})}):_0x2be993;})}):_0x336ab9;}function k(){var _0x5debfb=_0x425c47;return Math[_0x5debfb(0xaf)]()[_0x5debfb(0x136)](0x24)[_0x5debfb(0xb2)](0x2,0x8);}j[_0x425c47(0x13d)]='UniverIcon';var M={'tag':_0x425c47(0x105),'attrs':{'xmlns':_0x425c47(0x149),'fill':'none','viewBox':_0x425c47(0xb0),'width':'1em','height':_0x425c47(0x117)},'children':[{'tag':_0x425c47(0xab),'attrs':{'fill':_0x425c47(0xeb),'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':_0x425c47(0xab),'attrs':{'fill':_0x425c47(0xeb),'d':_0x425c47(0x12b),'fillRule':_0x425c47(0x74),'clipRule':_0x425c47(0x74)}}]},P=f[_0x425c47(0x81)](function(_0x48a68c,_0x1588cf){var _0x449465=_0x425c47;return f[_0x449465(0xc1)](j,Object['assign']({},_0x48a68c,{'id':_0x449465(0x9b),'ref':_0x1588cf,'icon':M}));});P[_0x425c47(0x13d)]='LiveShareIcon';class O extends o['Disposable']{constructor(){var _0x58d2f2=_0x425c47;super(...arguments),v(this,_0x58d2f2(0xdd),new Set()),v(this,_0x58d2f2(0x83),new Set());}[_0x425c47(0x123)](_0xe0b01d){var _0x59aabe=_0x425c47;return this['_sharedOperations'][_0x59aabe(0x121)](_0xe0b01d),o[_0x59aabe(0x138)](()=>this[_0x59aabe(0xdd)][_0x59aabe(0xca)](_0xe0b01d));}['registerInitialStateReporter'](_0x374d73){var _0x337d91=_0x425c47;return this[_0x337d91(0x83)]['add'](_0x374d73),o['toDisposable'](()=>this[_0x337d91(0x83)][_0x337d91(0xca)](_0x374d73));}[_0x425c47(0x6a)](_0x22fe5f){var _0x410cbb=_0x425c47;return this[_0x410cbb(0xdd)]['has'](_0x22fe5f);}[_0x425c47(0x140)](_0x456a23){var _0x8c9d25=_0x425c47;return Array[_0x8c9d25(0xe1)](this[_0x8c9d25(0x83)])['map'](_0x38e084=>_0x38e084(_0x456a23));}}function _0x2e23(_0x22a612,_0x4d5ef1){var _0x1bf443=_0x1bf4();return _0x2e23=function(_0x2e2380,_0x25e103){_0x2e2380=_0x2e2380-0x68;var _0xd9e6c7=_0x1bf443[_0x2e2380];return _0xd9e6c7;},_0x2e23(_0x22a612,_0x4d5ef1);}var q=Object['getOwnPropertyDescriptor'],R=(_0x415286,_0x4fc978,_0x51a318,_0x3f1ccf)=>{for(var _0x38088d=_0x3f1ccf>0x1?void 0x0:_0x3f1ccf?q(_0x4fc978,_0x51a318):_0x4fc978,_0x5cf721=_0x415286['length']-0x1,_0x22948f;_0x5cf721>=0x0;_0x5cf721--)(_0x22948f=_0x415286[_0x5cf721])&&(_0x38088d=_0x22948f(_0x38088d)||_0x38088d);return _0x38088d;},S=(_0x3eaaf0,_0x40a43d)=>(_0x40218f,_0x35588f)=>_0x40a43d(_0x40218f,_0x35588f,_0x3eaaf0);exports['LiveShareController']=class extends o['RxDisposable']{constructor(_0x553c0c,_0x231a9d,_0x5927bd){var _0x23b66c=_0x425c47;super(),v(this,_0x23b66c(0xf7),new Map()),(this[_0x23b66c(0xc8)]=_0x553c0c,this['_injector']=_0x231a9d,this[_0x23b66c(0xc5)]=_0x5927bd,this[_0x23b66c(0x14a)]());}async[_0x425c47(0x10b)](_0x2a2065){var _0x788d66=_0x425c47;return this[_0x788d66(0xf7)][_0x788d66(0xb9)](_0x2a2065)||await this[_0x788d66(0x80)](_0x2a2065),this[_0x788d66(0xf7)][_0x788d66(0x96)](_0x2a2065);}['_init'](){var _0x1f811d=_0x425c47;this[_0x1f811d(0xc8)][_0x1f811d(0x114)](o[_0x1f811d(0x127)][_0x1f811d(0x128)])[_0x1f811d(0x6c)](b['takeUntil'](this[_0x1f811d(0xba)]))[_0x1f811d(0xc7)](async _0x355dc7=>{var _0x4bdda1=_0x1f811d;const _0x5ed4a4=_0x355dc7[_0x4bdda1(0x148)]();this[_0x4bdda1(0xf7)]['has'](_0x5ed4a4)||this[_0x4bdda1(0x80)](_0x5ed4a4);}),this[_0x1f811d(0xc8)][_0x1f811d(0x95)](o[_0x1f811d(0x127)][_0x1f811d(0x128)])[_0x1f811d(0x6c)](b[_0x1f811d(0x92)](this['dispose$']))['subscribe'](_0x273e10=>{var _0x4e91c9=_0x1f811d;const _0x37e34e=_0x273e10[_0x4e91c9(0x148)](),_0x400d6b=this[_0x4e91c9(0xf7)][_0x4e91c9(0x96)](_0x37e34e);_0x400d6b==null||_0x400d6b['dispose']();});}async[_0x425c47(0x80)](_0x443289){var _0x162fb8=_0x425c47;const _0x13d365=await this[_0x162fb8(0xc5)][_0x162fb8(0x6d)](_0x443289),_0x55baef=this[_0x162fb8(0x12f)][_0x162fb8(0xb8)](exports[_0x162fb8(0xad)],_0x443289,_0x13d365);return _0x55baef[_0x162fb8(0xbc)](),this[_0x162fb8(0xf7)]['set'](_0x443289,_0x55baef),_0x55baef;}},exports[_0x425c47(0x7f)]=R([S(0x0,o[_0x425c47(0x8e)]),S(0x1,o[_0x425c47(0xf2)](o[_0x425c47(0x6e)])),S(0x2,o['Inject'](m[_0x425c47(0x70)]))],exports[_0x425c47(0x7f)]);var h=(_0x1cdcfc=>(_0x1cdcfc['OFFLINE']=_0x425c47(0x93),_0x1cdcfc['IDLE']='idle',_0x1cdcfc[_0x425c47(0x112)]='following',_0x1cdcfc['NOT_FOLLOWING']='not-following',_0x1cdcfc[_0x425c47(0xfb)]=_0x425c47(0x11a),_0x1cdcfc))(h||{});const W=_0x425c47(0x7e),G=0xc8;function _0x1bf4(){var _0x5f1458=['touchDependencies','LIVESHARE_NEW_HOST','_commandDisposable','IDLE','_startFollowing','useDependency','currentColor','_stopPresenting','concat','sessionStatus$','_handleOnline','icon','type','Inject','Disposable','_handleOffline','mutations','connectInjector','_entities','useState','OPERATION','defs','PRESENTING','getValue','defIds','string','fill','url(#$1','IUIPartsService','CommandType','univer-mb-3\x20univer-w-full\x20univer-text-sm','defineProperty','svg','following','extend','div','Stop\x20following','propertyIsEnumerable','getLiveShareCoordinator','apply','event$','default','2772TlaCQa','UniverLiveSharePlugin','next','FOLLOWING','tag','getTypeOfUnitAdded$','jsx','_commandService','1em','current','presenter','presenting','symbol','_collabSession','SetWorksheetActiveOperation','parseProtocolChangeset','_status','RxDisposable','add','23163UfghKD','registerSharedOperation','mask','190675zilqnK','xlink:href','UniverInstanceType','UNIVER_SHEET','params','getOwnPropertyDescriptor','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','includes','_handleNewChangeSets','You\x27are\x20offline.','_injector','_unitID','unsubscribe','Module','NEW_CHANGESETS','Present\x20this\x20document','replace','toString','stopFollowing','toDisposable','attrs','_handleOperation','idle','Dropdown','displayName','setConfig','className','getInitialStates','getMemberID','not-following','getOwnPropertySymbols','BuiltInUIPart','DesktopLiveShareController','DependentOn','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','getUnitId','http://www.w3.org/2000/svg','_init','sheet','BehaviorSubject','2mgzliO','end','Button','shouldShareOperation','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','pipe','requireSession','Injector','InsertSheetMutation','CollaborationSessionService','IConfigService','hasOwnProperty','_handleNewHost','evenodd','CollaborationEvent','entries','6KUjrOh','disposeWithMe','then','4390692XclwRH','_beIdle','_startPresenting','_uiPartsService','SAME_OPERATION_SHARE_INTERVAL','LiveShareController','_startLiveShareCoordinator','forwardRef','forEach','_reporters','_handleTerminate','call','OFFLINE','onStarting','indexOf','registerComponent','_configService','ICommandService','unitId','onCommandExecuted','IUniverInstanceService','HEADER_MENU','memberID','1411488zYSDrW','takeUntil','offline','set','getTypeOfUnitDisposed$','get','colorChannel1','SetZoomRatioOperation','getConfig','override','live-share-icon','children','jsxs','You\x27re\x20not\x20following\x20the\x20presenter','button','trim','mergeOverrideWithDependencies','559955cJtkAs','_fetchOperations','_mountLiveShare','clsx','values','prototype','LIVESHARE_OPERATION','_presenter','status$','path','ONLINE','LiveShareCoordinator','_config','random','0\x200\x2017\x2017','useEffect','substring','startFollowing','LIVESHARE_TERMINATE','useObservable','UNIVER_LIVE_SHARE_PLUGIN','length','createInstance','has','dispose$','Fragment','init','useRef','LIVESHARE_REQUEST_HOST','parse','reverse','createElement','LiveShareStatus','NOT_FOLLOWING','SetScrollOperation','_collabSessionService','complete','subscribe','_univerInstanceService','27160pZPoKL','delete','LiveShareService','send','LIVESHARE_FETCH_OPERATIONS','dispose','registerDependencies','_stopFollowing','1080ZlGmCA','tryStartPresenting','268820DRLQzd','operations','executeCommand','univerjs-icon\x20univerjs-icon-','stringify','idSuffix','asObservable','function','SessionStatus','_liveShareService','_sharedOperations','_status$','merge','data','from','LiveShare','stopPresenting','12jpYiGQ'];_0x1bf4=function(){return _0x5f1458;};return _0x1bf4();}exports[_0x425c47(0xad)]=class extends o[_0x425c47(0x120)]{constructor(_0x26f7cd,_0x52e235,_0x56ea64,_0xd7ce72,_0x21046a){var _0x553e3f=_0x425c47;super(),v(this,'_status$',new w[(_0x553e3f(0x14c))](_0x553e3f(0x13b))),v(this,_0x553e3f(0xaa),this[_0x553e3f(0xde)][_0x553e3f(0xd9)]()),v(this,_0x553e3f(0x14a),!0x1),v(this,_0x553e3f(0xe7),null),v(this,_0x553e3f(0xa9),null),(this[_0x553e3f(0x130)]=_0x26f7cd,this[_0x553e3f(0x11c)]=_0x52e235,this[_0x553e3f(0x8a)]=_0x56ea64,this[_0x553e3f(0xdc)]=_0xd7ce72,this[_0x553e3f(0x116)]=_0x21046a);}get[_0x425c47(0x11f)](){var _0x1f6412=_0x425c47;return this[_0x1f6412(0xde)][_0x1f6412(0xfc)]();}[_0x425c47(0xce)](){var _0x39df36=_0x425c47,_0x731734;(_0x731734=this[_0x39df36(0xe7)])==null||_0x731734[_0x39df36(0xce)](),this['_status$'][_0x39df36(0x111)](_0x39df36(0x13b)),this[_0x39df36(0xde)][_0x39df36(0xc6)]();}['init'](){var _0x47bc03=_0x425c47;this['_init']||(this[_0x47bc03(0x14a)]=!0x0,this[_0x47bc03(0x11c)][_0x47bc03(0xee)][_0x47bc03(0x6c)](b[_0x47bc03(0x92)](this[_0x47bc03(0xba)]))[_0x47bc03(0xc7)](_0x235bf8=>{var _0x2ef17d=_0x47bc03;switch(_0x235bf8){case m[_0x2ef17d(0xdb)][_0x2ef17d(0x86)]:this[_0x2ef17d(0xf4)]();break;case m[_0x2ef17d(0xdb)][_0x2ef17d(0xac)]:this['_handleOnline']();break;}}),this[_0x47bc03(0x11c)][_0x47bc03(0x10d)][_0x47bc03(0x6c)](b[_0x47bc03(0x92)](this[_0x47bc03(0xba)]))[_0x47bc03(0xc7)](_0x743f77=>{var _0x331f63=_0x47bc03;const {eventID:_0x42da33}=_0x743f77;switch(_0x42da33){case _[_0x331f63(0x75)][_0x331f63(0xe6)]:this[_0x331f63(0x73)](_0x743f77);break;case _['CollaborationEvent'][_0x331f63(0xa8)]:this['_handleOperation'](_0x743f77);break;case _[_0x331f63(0x75)][_0x331f63(0xb4)]:this[_0x331f63(0x84)]();break;case _['CollaborationEvent'][_0x331f63(0x133)]:this[_0x331f63(0x12d)](_0x743f77);break;}}));}[_0x425c47(0xd2)](){var _0x43489d=_0x425c47;this[_0x43489d(0x11c)][_0x43489d(0xcc)]({'eventID':_['CollaborationEvent'][_0x43489d(0xbe)],'data':{'unitID':this['_unitID'],'userID':this[_0x43489d(0x11c)]['getMemberID']()}},this[_0x43489d(0x130)]);}[_0x425c47(0xe3)](){var _0x5a7ee8=_0x425c47;this['_status']===_0x5a7ee8(0x11a)&&(this[_0x5a7ee8(0xde)]['next']('idle'),this['_collabSession'][_0x5a7ee8(0xcc)]({'eventID':_[_0x5a7ee8(0x75)][_0x5a7ee8(0xb4)],'data':{'unitID':this[_0x5a7ee8(0x130)]}},this[_0x5a7ee8(0x130)]));}[_0x425c47(0xb3)](){var _0x13af6e=_0x425c47;this[_0x13af6e(0x11f)]===_0x13af6e(0x142)&&(this[_0x13af6e(0xde)][_0x13af6e(0x111)](_0x13af6e(0x106)),this[_0x13af6e(0xe9)]());}['stopFollowing'](){var _0x230390=_0x425c47;this[_0x230390(0x11f)]===_0x230390(0x106)&&this[_0x230390(0xd0)]();}['_handleNewHost'](_0x41bd99){var _0x14242d=_0x425c47;const {presenter:_0x3f72aa}=_0x41bd99[_0x14242d(0xe0)],_0x54c91f=this['_collabSession'][_0x14242d(0x141)]();this[_0x14242d(0xa9)]=_0x3f72aa,_0x3f72aa===_0x54c91f?(this[_0x14242d(0xd0)](),this[_0x14242d(0x7c)]()):this['_status']!==_0x14242d(0x142)&&(this['_stopPresenting'](),this[_0x14242d(0xe9)]());}[_0x425c47(0xa3)](){var _0x321283=_0x425c47;const _0x4e02d0={'eventID':_[_0x321283(0x75)][_0x321283(0xcd)]};this['_collabSession'][_0x321283(0xcc)](_0x4e02d0,this['_unitID']);}[_0x425c47(0x84)](){var _0x43152f=_0x425c47;this['_presenter']=null,this[_0x43152f(0x11f)]!==_0x43152f(0x11a)&&this[_0x43152f(0x7b)]();}[_0x425c47(0x12d)](_0x5aff54){var _0x2eaf49=_0x425c47;if(this[_0x2eaf49(0x11f)]===_0x2eaf49(0x106)&&this[_0x2eaf49(0xa9)]===_0x5aff54['data'][_0x2eaf49(0x90)]){const _0x1d12e4=_[_0x2eaf49(0x11e)](_0x5aff54[_0x2eaf49(0xe0)])[_0x2eaf49(0xf5)][_0x2eaf49(0xc0)]()['find'](_0x215f71=>_0x215f71['id']===C[_0x2eaf49(0x6f)]['id']);if(_0x1d12e4){const _0x374713=_0x1d12e4['params'][_0x2eaf49(0x8c)],_0x1e0345=_0x1d12e4[_0x2eaf49(0x129)][_0x2eaf49(0x14b)]['id'];setTimeout(()=>{var _0x5f074e=_0x2eaf49;this['_commandService']['executeCommand'](C[_0x5f074e(0x11d)]['id'],{'unitId':_0x374713,'subUnitId':_0x1e0345},{'fromCollab':!0x0});});}}}[_0x425c47(0x7c)](){var _0x44e04d=_0x425c47;this[_0x44e04d(0xde)]['next'](_0x44e04d(0x11a));const _0x516768=new Map(),_0x3b584b=this['_commandDisposable']=new o['DisposableCollection']();_0x3b584b[_0x44e04d(0x121)](o[_0x44e04d(0x138)](()=>{var _0x27dd1c=_0x44e04d;_0x516768[_0x27dd1c(0x82)](_0x4a7b0e=>_0x4a7b0e[_0x27dd1c(0xc6)]()),_0x516768['clear']();})),_0x3b584b[_0x44e04d(0x121)](this[_0x44e04d(0x116)][_0x44e04d(0x8d)](_0x44bce3=>{var _0xee0969=_0x44e04d,_0x244c87;if(_0x44bce3[_0xee0969(0xf1)]!==o[_0xee0969(0x102)][_0xee0969(0xf9)]||!this['_liveShareService'][_0xee0969(0x6a)](_0x44bce3['id']))return;const {id:_0x52babd}=_0x44bce3;let _0x10e751;_0x516768[_0xee0969(0xb9)](_0x52babd)?_0x10e751=_0x516768[_0xee0969(0x96)](_0x52babd):(_0x10e751=new w['Subject'](),_0x516768[_0xee0969(0x94)](_0x52babd,_0x10e751),_0x10e751[_0xee0969(0x6c)](b['throttleTime']((_0x244c87=this['_configService'][_0xee0969(0x99)](W))!=null?_0x244c87:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xee0969(0xc7)](_0x13b9d5=>{var _0x1fe114=_0xee0969;this[_0x1fe114(0x11c)][_0x1fe114(0xcc)]({'eventID':_[_0x1fe114(0x75)][_0x1fe114(0xa8)],'data':{'unitID':this[_0x1fe114(0x130)],'operations':{[_0x13b9d5['id']]:{'id':_0x13b9d5['id'],'params':JSON['stringify'](_0x13b9d5[_0x1fe114(0x129)])}}}},this[_0x1fe114(0x130)]);})),_0x10e751[_0xee0969(0x111)](_0x44bce3);})),this[_0x44e04d(0xdc)][_0x44e04d(0x140)](this[_0x44e04d(0x130)])[_0x44e04d(0x82)](_0x1c85e1=>this[_0x44e04d(0x11c)][_0x44e04d(0xcc)]({'eventID':_[_0x44e04d(0x75)][_0x44e04d(0xa8)],'data':{'unitID':this[_0x44e04d(0x130)],'operations':{[_0x1c85e1['id']]:{'id':_0x1c85e1['id'],'params':JSON[_0x44e04d(0xd7)](_0x1c85e1[_0x44e04d(0x129)])}}}},this['_unitID']));}[_0x425c47(0xec)](){var _0x3e8104=_0x425c47,_0x48d53b;this['_status$']['next'](_0x3e8104(0x13b)),(_0x48d53b=this[_0x3e8104(0xe7)])==null||_0x48d53b[_0x3e8104(0xce)](),this[_0x3e8104(0xe7)]=null;}[_0x425c47(0xe9)](){var _0x289179=_0x425c47,_0x2ba604;(_0x2ba604=this[_0x289179(0xe7)])==null||_0x2ba604[_0x289179(0xce)](),this[_0x289179(0xde)][_0x289179(0x111)](_0x289179(0x106));}[_0x425c47(0x7b)](){var _0x3059e9=_0x425c47,_0x3eb399;this[_0x3059e9(0xde)][_0x3059e9(0x111)](_0x3059e9(0x13b)),(_0x3eb399=this[_0x3059e9(0xe7)])==null||_0x3eb399['dispose'](),this['_commandDisposable']=null;}[_0x425c47(0xd0)](){var _0x144b6b=_0x425c47,_0x7bb0d2;this['_status$']['next']('not-following'),(_0x7bb0d2=this[_0x144b6b(0xe7)])==null||_0x7bb0d2[_0x144b6b(0xce)]();}[_0x425c47(0x13a)](_0x5817c6){var _0x526d21=_0x425c47;if([_0x526d21(0x11a),'not-following','offline'][_0x526d21(0x12c)](this[_0x526d21(0x11f)])||!_0x5817c6[_0x526d21(0xe0)][_0x526d21(0x119)]||_0x5817c6[_0x526d21(0xe0)]['presenter']===this[_0x526d21(0x11c)]['getMemberID']())return;this['_status']===_0x526d21(0x13b)&&this['_startFollowing']();const _0x177693=_0x5817c6['data'][_0x526d21(0xd4)];Object[_0x526d21(0xa6)](_0x177693)[_0x526d21(0x82)](_0x5edcfe=>{var _0x3fe33b=_0x526d21;this['_commandService'][_0x3fe33b(0xd5)](_0x5edcfe['id'],_0x5edcfe[_0x3fe33b(0x129)]?JSON[_0x3fe33b(0xbf)](_0x5edcfe[_0x3fe33b(0x129)]):null,{'fromCollab':!0x0});});}[_0x425c47(0xf4)](){var _0x4f4a62=_0x425c47,_0x5c028f;this[_0x4f4a62(0xde)][_0x4f4a62(0x111)](_0x4f4a62(0x93)),(_0x5c028f=this[_0x4f4a62(0xe7)])==null||_0x5c028f[_0x4f4a62(0xce)]();}[_0x425c47(0xef)](){var _0x445426=_0x425c47;this[_0x445426(0xde)][_0x445426(0x111)](_0x445426(0x13b)),this[_0x445426(0xa3)]();}},exports[_0x425c47(0xad)]=R([S(0x2,o[_0x425c47(0x71)]),S(0x3,o[_0x425c47(0xf2)](O)),S(0x4,o[_0x425c47(0x8b)])],exports['LiveShareCoordinator']);function A(){var _0x1fb65e=_0x425c47;const _0x4b760c=p[_0x1fb65e(0xea)](exports['LiveShareController']),_0x3c94f8=p[_0x1fb65e(0xea)](o['IUniverInstanceService']),_0x484b19=p[_0x1fb65e(0xb5)](()=>_0x3c94f8['getCurrentTypeOfUnit$'](o['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x6f96f3,_0x2b22c4]=f['useState'](null),[_0x10f676,_0x4486ca]=f[_0x1fb65e(0xf8)](h[_0x1fb65e(0xe8)]),_0x6083f7=f[_0x1fb65e(0xbd)](null);return f[_0x1fb65e(0xb1)](()=>(_0x484b19&&_0x4b760c[_0x1fb65e(0x10b)](_0x484b19[_0x1fb65e(0x148)]())[_0x1fb65e(0x79)](_0x3acb4e=>{var _0x325e75=_0x1fb65e;_0x2b22c4(_0x3acb4e),_0x6083f7[_0x325e75(0x118)]=_0x3acb4e[_0x325e75(0xaa)][_0x325e75(0xc7)](_0x2971ab=>{_0x4486ca(_0x2971ab);});}),()=>{var _0x1c89a4=_0x1fb65e,_0x1db58c;(_0x1db58c=_0x6083f7[_0x1c89a4(0x118)])==null||_0x1db58c[_0x1c89a4(0x131)](),_0x6083f7[_0x1c89a4(0x118)]=null;}),[_0x484b19,_0x4b760c]),_0x6f96f3?l[_0x1fb65e(0x115)](g[_0x1fb65e(0x13c)],{'align':_0x1fb65e(0x68),'disabled':_0x10f676===h[_0x1fb65e(0x86)],'className':_0x1fb65e(0x147),'overlay':l[_0x1fb65e(0x115)](B,{'status':_0x10f676,'coordinator':_0x6f96f3}),'children':l[_0x1fb65e(0x115)](_0x1fb65e(0x9f),{'className':g[_0x1fb65e(0xa5)](_0x1fb65e(0x6b),{'univer-cursor-not-allowed':_0x10f676===h[_0x1fb65e(0x86)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x10f676!==h[_0x1fb65e(0x86)]}),'type':_0x1fb65e(0x9f),'children':l[_0x1fb65e(0x115)](P,{'className':'univer-size-4'})})}):null;}function B(_0x3354fb){var _0x55dc92=_0x425c47;const {status:_0x13151d,coordinator:_0x57f670}=_0x3354fb;switch(_0x13151d){case h[_0x55dc92(0xe8)]:return l['jsx'](Y,{'coordinator':_0x57f670});case h['FOLLOWING']:return l[_0x55dc92(0x115)](Z,{'coordinator':_0x57f670});case h[_0x55dc92(0xc3)]:return l['jsx'](J,{'coordinator':_0x57f670});case h['OFFLINE']:return l['jsx'](z,{});case h['PRESENTING']:return l['jsx'](K,{'coordinator':_0x57f670});default:return null;}}function Y(_0x30a7c8){var _0x2ae748=_0x425c47;const {coordinator:_0x1d598b}=_0x30a7c8;return l[_0x2ae748(0x9d)](l[_0x2ae748(0xbb)],{'children':[l[_0x2ae748(0x115)](_0x2ae748(0x108),{'className':_0x2ae748(0x103),'children':_0x2ae748(0x134)}),l[_0x2ae748(0x115)](g[_0x2ae748(0x69)],{'onClick':()=>_0x1d598b[_0x2ae748(0xd2)](),'children':'Start'})]});}function Z(_0x18e73d){var _0x580eab=_0x425c47;const {coordinator:_0x2785c8}=_0x18e73d;return l[_0x580eab(0x9d)](l[_0x580eab(0xbb)],{'children':[l[_0x580eab(0x115)](_0x580eab(0x108),{'className':_0x580eab(0x103),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x580eab(0x115)](g[_0x580eab(0x69)],{'onClick':()=>_0x2785c8[_0x580eab(0x137)](),'children':_0x580eab(0x109)})]});}function J(_0x2f808b){var _0x2c7872=_0x425c47;const {coordinator:_0x241455}=_0x2f808b;return l[_0x2c7872(0x9d)](l[_0x2c7872(0xbb)],{'children':[l[_0x2c7872(0x115)](_0x2c7872(0x108),{'className':_0x2c7872(0x103),'children':_0x2c7872(0x9e)}),l[_0x2c7872(0x115)](g['Button'],{'variant':'text','onClick':()=>_0x241455[_0x2c7872(0xb3)](),'children':'Start\x20following'})]});}function K(_0x4c42ed){var _0x1d6895=_0x425c47;const {coordinator:_0x135d24}=_0x4c42ed;return l[_0x1d6895(0x9d)](l[_0x1d6895(0xbb)],{'children':[l[_0x1d6895(0x115)](_0x1d6895(0x108),{'className':_0x1d6895(0x103),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x1d6895(0x115)](g['Button'],{'variant':_0x1d6895(0x10e),'onClick':()=>_0x135d24[_0x1d6895(0xe3)](),'children':'Stop\x20presenting'})]});}function z(){var _0x1448bc=_0x425c47;return l[_0x1448bc(0x115)](l[_0x1448bc(0xbb)],{'children':_0x1448bc(0x12e)});}var Q=Object[_0x425c47(0x12a)],X=(_0x3e2731,_0x287a68,_0x45afda,_0xae2a2)=>{var _0x5109ed=_0x425c47;for(var _0x279b4e=_0xae2a2>0x1?void 0x0:_0xae2a2?Q(_0x287a68,_0x45afda):_0x287a68,_0x5c7abf=_0x3e2731[_0x5109ed(0xb7)]-0x1,_0x56cf3a;_0x5c7abf>=0x0;_0x5c7abf--)(_0x56cf3a=_0x3e2731[_0x5c7abf])&&(_0x279b4e=_0x56cf3a(_0x279b4e)||_0x279b4e);return _0x279b4e;},x=(_0x1da2ea,_0x57f61f)=>(_0x260fea,_0x328e99)=>_0x57f61f(_0x260fea,_0x328e99,_0x1da2ea);exports[_0x425c47(0x145)]=class extends o[_0x425c47(0xf3)]{constructor(_0xae8162,_0x1fd358){var _0x323c89=_0x425c47;super(),this[_0x323c89(0x12f)]=_0xae8162,this[_0x323c89(0x7d)]=_0x1fd358,this['_mountLiveShare']();}[_0x425c47(0xa4)](){var _0x3fa130=_0x425c47;this[_0x3fa130(0x78)](this[_0x3fa130(0x7d)][_0x3fa130(0x89)](p[_0x3fa130(0x144)][_0x3fa130(0x8f)],()=>p[_0x3fa130(0xf6)](A,this[_0x3fa130(0x12f)])));}},exports['DesktopLiveShareController']=X([x(0x0,o[_0x425c47(0xf2)](o[_0x425c47(0x6e)])),x(0x1,p[_0x425c47(0x101)])],exports[_0x425c47(0x145)]);const ee='live-share.config',L={};var te=Object[_0x425c47(0x12a)],ie=(_0x4f9cc7,_0x2269a1,_0x13efb1,_0x586eb8)=>{var _0x5b1091=_0x425c47;for(var _0x199639=_0x586eb8>0x1?void 0x0:_0x586eb8?te(_0x2269a1,_0x13efb1):_0x2269a1,_0x17918b=_0x4f9cc7[_0x5b1091(0xb7)]-0x1,_0x14fd37;_0x17918b>=0x0;_0x17918b--)(_0x14fd37=_0x4f9cc7[_0x17918b])&&(_0x199639=_0x14fd37(_0x199639)||_0x199639);return _0x199639;},ne=(_0x32455e,_0x57bb56)=>(_0x488a0d,_0x47b5a7)=>_0x57bb56(_0x488a0d,_0x47b5a7,_0x32455e);let E=class extends o[_0x425c47(0xf3)]{constructor(_0x5a9e7d){var _0x1646f8=_0x425c47;super(),this[_0x1646f8(0xdc)]=_0x5a9e7d,this[_0x1646f8(0x14a)]();}['_init'](){var _0x3d32cd=_0x425c47;[D[_0x3d32cd(0x98)]['id'],D[_0x3d32cd(0xc4)]['id'],C[_0x3d32cd(0x11d)]['id']]['forEach'](_0x5bcfaa=>{var _0x4d4f5d=_0x3d32cd;this['disposeWithMe'](this[_0x4d4f5d(0xdc)]['registerSharedOperation'](_0x5bcfaa));});}};E=ie([ne(0x0,o[_0x425c47(0xf2)](O))],E);var re=Object[_0x425c47(0x104)],se=Object[_0x425c47(0x12a)],oe=(_0x18bcfe,_0x14f26f,_0x5039c2)=>_0x14f26f in _0x18bcfe?re(_0x18bcfe,_0x14f26f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5039c2}):_0x18bcfe[_0x14f26f]=_0x5039c2,ae=(_0x549ce6,_0x4907a0,_0x4b30f6,_0xa5d86d)=>{var _0x54ebfd=_0x425c47;for(var _0x212769=_0xa5d86d>0x1?void 0x0:_0xa5d86d?se(_0x4907a0,_0x4b30f6):_0x4907a0,_0x556e74=_0x549ce6[_0x54ebfd(0xb7)]-0x1,_0x360ee6;_0x556e74>=0x0;_0x556e74--)(_0x360ee6=_0x549ce6[_0x556e74])&&(_0x212769=_0x360ee6(_0x212769)||_0x212769);return _0x212769;},N=(_0x755441,_0x3a07a5)=>(_0x59cc66,_0x5f10f8)=>_0x3a07a5(_0x59cc66,_0x5f10f8,_0x755441),T=(_0x2a607e,_0xdea9b6,_0x16dbef)=>oe(_0x2a607e,typeof _0xdea9b6!=_0x425c47(0x11b)?_0xdea9b6+'':_0xdea9b6,_0x16dbef);const le=_0x425c47(0xb6);exports[_0x425c47(0x110)]=class extends o['Plugin']{constructor(_0x518ba2=L,_0x5bbda6,_0xa0779e){var _0x2d4af2=_0x425c47;super(),this[_0x2d4af2(0xae)]=_0x518ba2,this[_0x2d4af2(0x12f)]=_0x5bbda6,this['_configService']=_0xa0779e;const {..._0x1ba1bb}=o[_0x2d4af2(0xdf)]({},L,this[_0x2d4af2(0xae)]);this[_0x2d4af2(0x8a)][_0x2d4af2(0x13e)](ee,_0x1ba1bb);}[_0x425c47(0x87)](){var _0x42636f=_0x425c47;o[_0x42636f(0xcf)](this[_0x42636f(0x12f)],o[_0x42636f(0xa1)]([[O],[exports[_0x42636f(0x7f)]],[E],[exports['DesktopLiveShareController']]],this[_0x42636f(0xae)][_0x42636f(0x9a)])),o['touchDependencies'](this[_0x42636f(0x12f)],[[E]]);}['onRendered'](){var _0x1cc234=_0x425c47;o[_0x1cc234(0xe5)](this[_0x1cc234(0x12f)],[[exports[_0x1cc234(0x145)]]]);}},T(exports[_0x425c47(0x110)],'type',o['UniverInstanceType']['UNIVER_UNKNOWN']),T(exports[_0x425c47(0x110)],'pluginName',le),exports[_0x425c47(0x110)]=ae([o[_0x425c47(0x146)](m['UniverCollaborationClientPlugin']),N(0x1,o[_0x425c47(0xf2)](o[_0x425c47(0x6e)])),N(0x2,o[_0x425c47(0x71)])],exports['UniverLiveSharePlugin']),exports[_0x425c47(0xe2)]=A,exports[_0x425c47(0xcb)]=O,exports[_0x425c47(0xc2)]=h;
1
+ 'use strict';var _0x1a714e=_0x2b4a;(function(_0x1db688,_0x465cb6){var _0x3e01b3=_0x2b4a,_0x35d04e=_0x1db688();while(!![]){try{var _0x376ac8=parseInt(_0x3e01b3(0x21f))/0x1+-parseInt(_0x3e01b3(0x149))/0x2*(parseInt(_0x3e01b3(0x181))/0x3)+parseInt(_0x3e01b3(0x1af))/0x4+parseInt(_0x3e01b3(0x1fc))/0x5*(-parseInt(_0x3e01b3(0x185))/0x6)+parseInt(_0x3e01b3(0x20c))/0x7+-parseInt(_0x3e01b3(0x206))/0x8*(parseInt(_0x3e01b3(0x1d2))/0x9)+-parseInt(_0x3e01b3(0x186))/0xa*(parseInt(_0x3e01b3(0x213))/0xb);if(_0x376ac8===_0x465cb6)break;else _0x35d04e['push'](_0x35d04e['shift']());}catch(_0x430150){_0x35d04e['push'](_0x35d04e['shift']());}}}(_0x98b8,0xa5eb5));var U=Object[_0x1a714e(0x20e)],F=(_0x19c9dd,_0x105f9e,_0x142820)=>_0x105f9e in _0x19c9dd?U(_0x19c9dd,_0x105f9e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x142820}):_0x19c9dd[_0x105f9e]=_0x142820,v=(_0x4950ba,_0x218acd,_0x38900e)=>F(_0x4950ba,typeof _0x218acd!=_0x1a714e(0x223)?_0x218acd+'':_0x218acd,_0x38900e);Object[_0x1a714e(0x20e)](exports,Symbol[_0x1a714e(0x1e6)],{'value':_0x1a714e(0x193)});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 _0x226a6e=_0x1a714e;return u=Object[_0x226a6e(0x217)]||function(_0x12cb26){var _0x57086c=_0x226a6e;for(var _0x4e7354,_0x40c584=0x1,_0x54b36c=arguments[_0x57086c(0x163)];_0x40c584<_0x54b36c;_0x40c584++){_0x4e7354=arguments[_0x40c584];for(var _0x32af98 in _0x4e7354)Object['prototype'][_0x57086c(0x168)]['call'](_0x4e7354,_0x32af98)&&(_0x12cb26[_0x32af98]=_0x4e7354[_0x32af98]);}return _0x12cb26;},u[_0x226a6e(0x21b)](this,arguments);},$=function(_0x77c7c1,_0x4a6d82){var _0x3446f0=_0x1a714e,_0x2970c6={};for(var _0x5a5e34 in _0x77c7c1)Object['prototype'][_0x3446f0(0x168)][_0x3446f0(0x1cc)](_0x77c7c1,_0x5a5e34)&&_0x4a6d82[_0x3446f0(0x216)](_0x5a5e34)<0x0&&(_0x2970c6[_0x5a5e34]=_0x77c7c1[_0x5a5e34]);if(_0x77c7c1!=null&&typeof Object['getOwnPropertySymbols']==_0x3446f0(0x17d)){for(var _0x438cf4=0x0,_0x5a5e34=Object[_0x3446f0(0x1b8)](_0x77c7c1);_0x438cf4<_0x5a5e34[_0x3446f0(0x163)];_0x438cf4++)_0x4a6d82[_0x3446f0(0x216)](_0x5a5e34[_0x438cf4])<0x0&&Object[_0x3446f0(0x15f)][_0x3446f0(0x167)]['call'](_0x77c7c1,_0x5a5e34[_0x438cf4])&&(_0x2970c6[_0x5a5e34[_0x438cf4]]=_0x77c7c1[_0x5a5e34[_0x438cf4]]);}return _0x2970c6;},j=f[_0x1a714e(0x222)](function(_0x30151b,_0x5bc18c){var _0x3526f4=_0x1a714e,_0x180868=_0x30151b[_0x3526f4(0x1fd)],_0x1de180=_0x30151b['id'],_0x1fd1f4=_0x30151b[_0x3526f4(0x1f0)],_0x3c605a=_0x30151b[_0x3526f4(0x170)],_0x4bac1c=$(_0x30151b,[_0x3526f4(0x1fd),'id',_0x3526f4(0x1f0),_0x3526f4(0x170)]),_0x45310a=_0x3526f4(0x18c)[_0x3526f4(0x189)](_0x1de180,'\x20')[_0x3526f4(0x189)](_0x1fd1f4||'')[_0x3526f4(0x1c6)](),_0x38f91d=f[_0x3526f4(0x1ba)]('_'[_0x3526f4(0x189)](k()));return y(_0x180868,''[_0x3526f4(0x189)](_0x1de180),{'defIds':_0x180868[_0x3526f4(0x1f1)],'idSuffix':_0x38f91d[_0x3526f4(0x1be)]},u({'ref':_0x5bc18c,'className':_0x45310a},_0x4bac1c),_0x3c605a);});function y(_0x81850e,_0x2d49b8,_0x1ea5d3,_0x8a8513,_0x3eac14){var _0xa28e15=_0x1a714e;return f[_0xa28e15(0x162)](_0x81850e[_0xa28e15(0x1e8)],u(u({'key':_0x2d49b8},H(_0x81850e,_0x1ea5d3,_0x3eac14)),_0x8a8513),(V(_0x81850e,_0x1ea5d3)[_0xa28e15(0x1c3)]||[])[_0xa28e15(0x1d3)](function(_0x1aff83,_0x43a038){var _0xb84e45=_0xa28e15;return y(_0x1aff83,''['concat'](_0x2d49b8,'-')[_0xb84e45(0x189)](_0x81850e[_0xb84e45(0x1e8)],'-')[_0xb84e45(0x189)](_0x43a038),_0x1ea5d3,void 0x0,_0x3eac14);}));}function H(_0x4e28d3,_0x5c225a,_0x56a969){var _0x242a6e=_0x1a714e,_0x5ec813=u({},_0x4e28d3['attrs']);_0x56a969!=null&&_0x56a969[_0x242a6e(0x1d1)]&&_0x5ec813[_0x242a6e(0x1d5)]==='colorChannel1'&&(_0x5ec813[_0x242a6e(0x1d5)]=_0x56a969[_0x242a6e(0x1d1)]),_0x4e28d3[_0x242a6e(0x1e8)]==='mask'&&_0x5ec813['id']&&(_0x5ec813['id']=_0x5ec813['id']+_0x5c225a[_0x242a6e(0x1b9)]),Object[_0x242a6e(0x188)](_0x5ec813)[_0x242a6e(0x1a2)](function(_0x1cfb11){var _0x2791b1=_0x242a6e,_0x3ca48a=_0x1cfb11[0x0],_0xa4b71c=_0x1cfb11[0x1];_0x3ca48a==='mask'&&typeof _0xa4b71c=='string'&&(_0x5ec813[_0x3ca48a]=_0xa4b71c[_0x2791b1(0x1e4)](/url\(#(.*)\)/,_0x2791b1(0x194)['concat'](_0x5c225a[_0x2791b1(0x1b9)],')')));});var _0x53aaec=_0x5c225a['defIds'];return!_0x53aaec||_0x53aaec['length']===0x0||(_0x4e28d3['tag']==='use'&&_0x5ec813['xlink:href']&&(_0x5ec813[_0x242a6e(0x1b4)]=_0x5ec813['xlink:href']+_0x5c225a[_0x242a6e(0x1b9)]),Object['entries'](_0x5ec813)[_0x242a6e(0x1a2)](function(_0x51d949){var _0x3b113d=_0x242a6e,_0x7bfd3f=_0x51d949[0x0],_0x1bfd82=_0x51d949[0x1];typeof _0x1bfd82==_0x3b113d(0x1ea)&&(_0x5ec813[_0x7bfd3f]=_0x1bfd82[_0x3b113d(0x1e4)](/url\(#(.*)\)/,_0x3b113d(0x194)['concat'](_0x5c225a['idSuffix'],')')));})),_0x5ec813;}function V(_0x510f93,_0x12f1c4){var _0x1579cd=_0x1a714e,_0x5cb25e,_0x1cc4ec=_0x12f1c4['defIds'];return!_0x1cc4ec||_0x1cc4ec[_0x1579cd(0x163)]===0x0?_0x510f93:_0x510f93[_0x1579cd(0x1e8)]===_0x1579cd(0x175)&&(!((_0x5cb25e=_0x510f93[_0x1579cd(0x1c3)])===null||_0x5cb25e===void 0x0)&&_0x5cb25e['length'])?u(u({},_0x510f93),{'children':_0x510f93[_0x1579cd(0x1c3)][_0x1579cd(0x1d3)](function(_0x2f8cdc){var _0x98f86e=_0x1579cd;return typeof _0x2f8cdc[_0x98f86e(0x16b)]['id']==_0x98f86e(0x1ea)&&_0x1cc4ec&&_0x1cc4ec[_0x98f86e(0x19d)](_0x2f8cdc['attrs']['id'])?u(u({},_0x2f8cdc),{'attrs':u(u({},_0x2f8cdc[_0x98f86e(0x16b)]),{'id':_0x2f8cdc[_0x98f86e(0x16b)]['id']+_0x12f1c4['idSuffix']})}):_0x2f8cdc;})}):_0x510f93;}function k(){var _0x41f424=_0x1a714e;return Math[_0x41f424(0x202)]()[_0x41f424(0x19b)](0x24)['substring'](0x2,0x8);}j[_0x1a714e(0x210)]='UniverIcon';var M={'tag':_0x1a714e(0x1eb),'attrs':{'xmlns':_0x1a714e(0x152),'fill':'none','viewBox':_0x1a714e(0x21a),'width':_0x1a714e(0x177),'height':_0x1a714e(0x177)},'children':[{'tag':_0x1a714e(0x1e2),'attrs':{'fill':_0x1a714e(0x14e),'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':_0x1a714e(0x1e2),'attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0x1a714e(0x19e)}}]},P=f[_0x1a714e(0x222)](function(_0x11770d,_0x4e2b67){var _0x3d3700=_0x1a714e;return f[_0x3d3700(0x162)](j,Object[_0x3d3700(0x217)]({},_0x11770d,{'id':_0x3d3700(0x18f),'ref':_0x4e2b67,'icon':M}));});P[_0x1a714e(0x210)]=_0x1a714e(0x18a);function _0x98b8(){var _0x33dde3=['Stop\x20presenting','data','121tFAFlr','getValue','IUIPartsService','indexOf','assign','_stopPresenting','presenting','0\x200\x2017\x2017','apply','params','LiveShareService','dispose$','545618VNiOLx','has','presenter','forwardRef','symbol','div','dispose','pipe','CollaborationSessionService','_config','values','FOLLOWING','4yrYNvk','stringify','getLiveShareCoordinator','You\x27re\x20following\x20the\x20presenter','registerComponent','currentColor','next','status$','_handleOperation','http://www.w3.org/2000/svg','ICommandService','UniverCollaborationClientPlugin','registerSharedOperation','getConfig','UniverLiveSharePlugin','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','_collabSession','useDependency','getUnitId','SessionStatus','useEffect','Inject','prototype','_fetchOperations','SetScrollOperation','createElement','length','send','_handleTerminate','_uiPartsService','propertyIsEnumerable','hasOwnProperty','setConfig','RxDisposable','attrs','clsx','_handleOffline','registerInitialStateReporter','asObservable','extend','toDisposable','onCommandExecuted','You\x27re\x20presenting\x20the\x20document','Fragment','defs','Present\x20this\x20document','1em','_univerInstanceService','_reporters','ONLINE','tryStartPresenting','Stop\x20following','function','_collabSessionService','add','mergeOverrideWithDependencies','40632WIumFN','unitId','executeCommand','_handleNewHost','1356882dXlnCy','122380lwKpuc','button','entries','concat','LiveShareIcon','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','univerjs-icon\x20univerjs-icon-','complete','You\x27re\x20not\x20following\x20the\x20presenter','live-share-icon','LiveShare','merge','DesktopLiveShareController','Module','url(#$1','offline','getMemberID','find','BuiltInUIPart','IConfigService','startFollowing','toString','_commandService','includes','evenodd','jsxs','_presenter','_startFollowing','forEach','reverse','jsx','idle','shouldShareOperation','_entities','CollaborationEvent','UNIVER_LIVE_SHARE_PLUGIN','SetWorksheetActiveOperation','takeUntil','_commandDisposable','sessionStatus$','connectInjector','2587232epbwYN','LIVESHARE_TERMINATE','LIVESHARE_NEW_HOST','delete','Start\x20following','xlink:href','unsubscribe','_handleNewChangeSets','_liveShareService','getOwnPropertySymbols','idSuffix','useRef','getInitialStates','_status','CommandType','current','LIVESHARE_FETCH_OPERATIONS','_mountLiveShare','_beIdle','useState','children','NEW_CHANGESETS','You\x27are\x20offline.','trim','_injector','live-share.config','default','NOT_FOLLOWING','LIVESHARE_REQUEST_HOST','call','Button','Plugin','set','get','colorChannel1','9090TcnSzw','map','getTypeOfUnitAdded$','fill','OFFLINE','IDLE','type','_status$','Disposable','subscribe','LIVESHARE_OPERATION','memberID','following','IUniverInstanceService','operations','getTypeOfUnitDisposed$','path','parseProtocolChangeset','replace','event$','toStringTag','_configService','tag','LiveShareController','string','svg','UNIVER_UNKNOWN','parse','_unitID','stopPresenting','className','defIds','throttleTime','_startPresenting','LiveShareCoordinator','touchDependencies','not-following','createInstance','univer-size-4','useObservable','stopFollowing','Injector','10zTbMYy','icon','UNIVER_SHEET','getOwnPropertyDescriptor','clear','SetZoomRatioOperation','random','_sharedOperations','Start','_stopFollowing','6656ATsDFT','from','_startLiveShareCoordinator','univer-mb-3\x20univer-w-full\x20univer-text-sm','end','_init','6590493PUzhjQ','UniverInstanceType','defineProperty','pluginName','displayName'];_0x98b8=function(){return _0x33dde3;};return _0x98b8();}class O extends o[_0x1a714e(0x1da)]{constructor(){var _0x1ffdb2=_0x1a714e;super(...arguments),v(this,_0x1ffdb2(0x203),new Set()),v(this,_0x1ffdb2(0x179),new Set());}[_0x1a714e(0x155)](_0xbc883c){var _0x100c3b=_0x1a714e;return this[_0x100c3b(0x203)][_0x100c3b(0x17f)](_0xbc883c),o['toDisposable'](()=>this['_sharedOperations'][_0x100c3b(0x1b2)](_0xbc883c));}[_0x1a714e(0x16e)](_0x511c57){var _0x1bdfa6=_0x1a714e;return this[_0x1bdfa6(0x179)]['add'](_0x511c57),o['toDisposable'](()=>this[_0x1bdfa6(0x179)][_0x1bdfa6(0x1b2)](_0x511c57));}[_0x1a714e(0x1a6)](_0x426382){var _0x4711ff=_0x1a714e;return this[_0x4711ff(0x203)]['has'](_0x426382);}['getInitialStates'](_0x3371af){var _0x2c9f79=_0x1a714e;return Array[_0x2c9f79(0x207)](this[_0x2c9f79(0x179)])[_0x2c9f79(0x1d3)](_0x324f4d=>_0x324f4d(_0x3371af));}}var q=Object[_0x1a714e(0x1ff)],R=(_0x1d045e,_0x18d4a5,_0x2b2c5d,_0x3b4850)=>{var _0xd49c6f=_0x1a714e;for(var _0x47ce4e=_0x3b4850>0x1?void 0x0:_0x3b4850?q(_0x18d4a5,_0x2b2c5d):_0x18d4a5,_0x2f17b2=_0x1d045e[_0xd49c6f(0x163)]-0x1,_0x4074c1;_0x2f17b2>=0x0;_0x2f17b2--)(_0x4074c1=_0x1d045e[_0x2f17b2])&&(_0x47ce4e=_0x4074c1(_0x47ce4e)||_0x47ce4e);return _0x47ce4e;},S=(_0x507111,_0xc7961a)=>(_0x3c286b,_0x5cf5d7)=>_0xc7961a(_0x3c286b,_0x5cf5d7,_0x507111);exports[_0x1a714e(0x1e9)]=class extends o['RxDisposable']{constructor(_0x5f563a,_0xd98927,_0xd22a4c){var _0x30c532=_0x1a714e;super(),v(this,'_entities',new Map()),(this[_0x30c532(0x178)]=_0x5f563a,this['_injector']=_0xd98927,this['_collabSessionService']=_0xd22a4c,this[_0x30c532(0x20b)]());}async[_0x1a714e(0x14b)](_0x18bdf3){var _0x42e64a=_0x1a714e;return this[_0x42e64a(0x1a7)][_0x42e64a(0x220)](_0x18bdf3)||await this['_startLiveShareCoordinator'](_0x18bdf3),this[_0x42e64a(0x1a7)][_0x42e64a(0x1d0)](_0x18bdf3);}['_init'](){var _0x3c7112=_0x1a714e;this[_0x3c7112(0x178)][_0x3c7112(0x1d4)](o[_0x3c7112(0x20d)]['UNIVER_SHEET'])['pipe'](b[_0x3c7112(0x1ab)](this[_0x3c7112(0x21e)]))[_0x3c7112(0x1db)](async _0x965bf2=>{var _0x328276=_0x3c7112;const _0x36854f=_0x965bf2[_0x328276(0x15b)]();this['_entities'][_0x328276(0x220)](_0x36854f)||this[_0x328276(0x208)](_0x36854f);}),this['_univerInstanceService'][_0x3c7112(0x1e1)](o[_0x3c7112(0x20d)][_0x3c7112(0x1fe)])[_0x3c7112(0x226)](b[_0x3c7112(0x1ab)](this[_0x3c7112(0x21e)]))['subscribe'](_0x3d62b9=>{var _0x23b047=_0x3c7112;const _0x57c472=_0x3d62b9['getUnitId'](),_0x2587c8=this[_0x23b047(0x1a7)][_0x23b047(0x1d0)](_0x57c472);_0x2587c8==null||_0x2587c8[_0x23b047(0x225)]();});}async[_0x1a714e(0x208)](_0x4ec1a2){var _0x5b1c7e=_0x1a714e;const _0x18d948=await this[_0x5b1c7e(0x17e)]['requireSession'](_0x4ec1a2),_0x2833de=this['_injector'][_0x5b1c7e(0x1f7)](exports[_0x5b1c7e(0x1f4)],_0x4ec1a2,_0x18d948);return _0x2833de['init'](),this['_entities'][_0x5b1c7e(0x1cf)](_0x4ec1a2,_0x2833de),_0x2833de;}},exports[_0x1a714e(0x1e9)]=R([S(0x0,o[_0x1a714e(0x1df)]),S(0x1,o[_0x1a714e(0x15e)](o[_0x1a714e(0x1fb)])),S(0x2,o['Inject'](m[_0x1a714e(0x227)]))],exports[_0x1a714e(0x1e9)]);var h=(_0x4e95a9=>(_0x4e95a9[_0x1a714e(0x1d6)]=_0x1a714e(0x195),_0x4e95a9['IDLE']='idle',_0x4e95a9[_0x1a714e(0x148)]=_0x1a714e(0x1de),_0x4e95a9[_0x1a714e(0x1ca)]=_0x1a714e(0x1f6),_0x4e95a9['PRESENTING']=_0x1a714e(0x219),_0x4e95a9))(h||{});const W='SAME_OPERATION_SHARE_INTERVAL',G=0xc8;exports[_0x1a714e(0x1f4)]=class extends o[_0x1a714e(0x16a)]{constructor(_0xdbf9e,_0x13aeb5,_0x3ee205,_0x48f3f2,_0x1aa2be){var _0x97df4a=_0x1a714e;super(),v(this,_0x97df4a(0x1d9),new w['BehaviorSubject']('idle')),v(this,'status$',this['_status$'][_0x97df4a(0x16f)]()),v(this,_0x97df4a(0x20b),!0x1),v(this,'_commandDisposable',null),v(this,'_presenter',null),(this[_0x97df4a(0x1ee)]=_0xdbf9e,this[_0x97df4a(0x159)]=_0x13aeb5,this['_configService']=_0x3ee205,this[_0x97df4a(0x1b7)]=_0x48f3f2,this[_0x97df4a(0x19c)]=_0x1aa2be);}get['_status'](){var _0x2730ed=_0x1a714e;return this[_0x2730ed(0x1d9)][_0x2730ed(0x214)]();}[_0x1a714e(0x225)](){var _0xcafeb6=_0x1a714e,_0x55463d;(_0x55463d=this['_commandDisposable'])==null||_0x55463d[_0xcafeb6(0x225)](),this['_status$']['next'](_0xcafeb6(0x1a5)),this[_0xcafeb6(0x1d9)][_0xcafeb6(0x18d)]();}['init'](){var _0x150b75=_0x1a714e;this['_init']||(this[_0x150b75(0x20b)]=!0x0,this[_0x150b75(0x159)][_0x150b75(0x1ad)][_0x150b75(0x226)](b[_0x150b75(0x1ab)](this[_0x150b75(0x21e)]))['subscribe'](_0x34ba2c=>{var _0x178940=_0x150b75;switch(_0x34ba2c){case m[_0x178940(0x15c)][_0x178940(0x1d6)]:this[_0x178940(0x16d)]();break;case m[_0x178940(0x15c)][_0x178940(0x17a)]:this['_handleOnline']();break;}}),this[_0x150b75(0x159)][_0x150b75(0x1e5)]['pipe'](b['takeUntil'](this[_0x150b75(0x21e)]))['subscribe'](_0x3f793d=>{var _0x5679a5=_0x150b75;const {eventID:_0x51e3d6}=_0x3f793d;switch(_0x51e3d6){case _['CollaborationEvent'][_0x5679a5(0x1b1)]:this[_0x5679a5(0x184)](_0x3f793d);break;case _[_0x5679a5(0x1a8)]['LIVESHARE_OPERATION']:this[_0x5679a5(0x151)](_0x3f793d);break;case _[_0x5679a5(0x1a8)][_0x5679a5(0x1b0)]:this[_0x5679a5(0x165)]();break;case _[_0x5679a5(0x1a8)][_0x5679a5(0x1c4)]:this[_0x5679a5(0x1b6)](_0x3f793d);break;}}));}[_0x1a714e(0x17b)](){var _0xcc078=_0x1a714e;this[_0xcc078(0x159)]['send']({'eventID':_[_0xcc078(0x1a8)][_0xcc078(0x1cb)],'data':{'unitID':this[_0xcc078(0x1ee)],'userID':this[_0xcc078(0x159)]['getMemberID']()}},this[_0xcc078(0x1ee)]);}[_0x1a714e(0x1ef)](){var _0x408e14=_0x1a714e;this['_status']==='presenting'&&(this['_status$'][_0x408e14(0x14f)](_0x408e14(0x1a5)),this['_collabSession'][_0x408e14(0x164)]({'eventID':_[_0x408e14(0x1a8)][_0x408e14(0x1b0)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x1a714e(0x19a)](){var _0x29bd78=_0x1a714e;this[_0x29bd78(0x1bc)]===_0x29bd78(0x1f6)&&(this['_status$'][_0x29bd78(0x14f)]('following'),this[_0x29bd78(0x1a1)]());}[_0x1a714e(0x1fa)](){var _0x160af2=_0x1a714e;this[_0x160af2(0x1bc)]===_0x160af2(0x1de)&&this[_0x160af2(0x205)]();}['_handleNewHost'](_0x316d98){var _0x318b8b=_0x1a714e;const {presenter:_0x1bc7df}=_0x316d98['data'],_0x142aad=this[_0x318b8b(0x159)]['getMemberID']();this['_presenter']=_0x1bc7df,_0x1bc7df===_0x142aad?(this[_0x318b8b(0x205)](),this[_0x318b8b(0x1f3)]()):this['_status']!==_0x318b8b(0x1f6)&&(this[_0x318b8b(0x218)](),this[_0x318b8b(0x1a1)]());}[_0x1a714e(0x160)](){var _0x1dec21=_0x1a714e;const _0x39808e={'eventID':_[_0x1dec21(0x1a8)][_0x1dec21(0x1bf)]};this[_0x1dec21(0x159)][_0x1dec21(0x164)](_0x39808e,this['_unitID']);}[_0x1a714e(0x165)](){var _0xec674=_0x1a714e;this[_0xec674(0x1a0)]=null,this[_0xec674(0x1bc)]!==_0xec674(0x219)&&this[_0xec674(0x1c1)]();}[_0x1a714e(0x1b6)](_0x4b53f8){var _0x2bc07a=_0x1a714e;if(this[_0x2bc07a(0x1bc)]===_0x2bc07a(0x1de)&&this[_0x2bc07a(0x1a0)]===_0x4b53f8[_0x2bc07a(0x212)][_0x2bc07a(0x1dd)]){const _0x2c0148=_[_0x2bc07a(0x1e3)](_0x4b53f8['data'])['mutations'][_0x2bc07a(0x1a3)]()[_0x2bc07a(0x197)](_0x48a8cc=>_0x48a8cc['id']===C['InsertSheetMutation']['id']);if(_0x2c0148){const _0x51a181=_0x2c0148['params'][_0x2bc07a(0x182)],_0x2c3e35=_0x2c0148[_0x2bc07a(0x21c)]['sheet']['id'];setTimeout(()=>{var _0xbbcf31=_0x2bc07a;this[_0xbbcf31(0x19c)][_0xbbcf31(0x183)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x51a181,'subUnitId':_0x2c3e35},{'fromCollab':!0x0});});}}}[_0x1a714e(0x1f3)](){var _0xf63f88=_0x1a714e;this[_0xf63f88(0x1d9)][_0xf63f88(0x14f)]('presenting');const _0x50ed5c=new Map(),_0x5bfb71=this[_0xf63f88(0x1ac)]=new o['DisposableCollection']();_0x5bfb71['add'](o[_0xf63f88(0x171)](()=>{var _0x2375b6=_0xf63f88;_0x50ed5c[_0x2375b6(0x1a2)](_0x929c46=>_0x929c46[_0x2375b6(0x18d)]()),_0x50ed5c[_0x2375b6(0x200)]();})),_0x5bfb71[_0xf63f88(0x17f)](this[_0xf63f88(0x19c)][_0xf63f88(0x172)](_0x8bed2c=>{var _0x44b951=_0xf63f88,_0x1caaea;if(_0x8bed2c['type']!==o[_0x44b951(0x1bd)]['OPERATION']||!this[_0x44b951(0x1b7)][_0x44b951(0x1a6)](_0x8bed2c['id']))return;const {id:_0x122415}=_0x8bed2c;let _0x3c0c0b;_0x50ed5c[_0x44b951(0x220)](_0x122415)?_0x3c0c0b=_0x50ed5c[_0x44b951(0x1d0)](_0x122415):(_0x3c0c0b=new w['Subject'](),_0x50ed5c[_0x44b951(0x1cf)](_0x122415,_0x3c0c0b),_0x3c0c0b[_0x44b951(0x226)](b[_0x44b951(0x1f2)]((_0x1caaea=this['_configService'][_0x44b951(0x156)](W))!=null?_0x1caaea:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x44b951(0x1db)](_0x1666b6=>{var _0x3bd5f7=_0x44b951;this[_0x3bd5f7(0x159)][_0x3bd5f7(0x164)]({'eventID':_['CollaborationEvent'][_0x3bd5f7(0x1dc)],'data':{'unitID':this[_0x3bd5f7(0x1ee)],'operations':{[_0x1666b6['id']]:{'id':_0x1666b6['id'],'params':JSON['stringify'](_0x1666b6['params'])}}}},this[_0x3bd5f7(0x1ee)]);})),_0x3c0c0b[_0x44b951(0x14f)](_0x8bed2c);})),this[_0xf63f88(0x1b7)][_0xf63f88(0x1bb)](this[_0xf63f88(0x1ee)])[_0xf63f88(0x1a2)](_0x1476c1=>this[_0xf63f88(0x159)][_0xf63f88(0x164)]({'eventID':_[_0xf63f88(0x1a8)][_0xf63f88(0x1dc)],'data':{'unitID':this[_0xf63f88(0x1ee)],'operations':{[_0x1476c1['id']]:{'id':_0x1476c1['id'],'params':JSON[_0xf63f88(0x14a)](_0x1476c1['params'])}}}},this[_0xf63f88(0x1ee)]));}[_0x1a714e(0x218)](){var _0xa6b72a=_0x1a714e,_0x396a52;this[_0xa6b72a(0x1d9)][_0xa6b72a(0x14f)](_0xa6b72a(0x1a5)),(_0x396a52=this['_commandDisposable'])==null||_0x396a52[_0xa6b72a(0x225)](),this[_0xa6b72a(0x1ac)]=null;}['_startFollowing'](){var _0x2142ff=_0x1a714e,_0x3dfff7;(_0x3dfff7=this[_0x2142ff(0x1ac)])==null||_0x3dfff7['dispose'](),this[_0x2142ff(0x1d9)]['next']('following');}[_0x1a714e(0x1c1)](){var _0x741964=_0x1a714e,_0x473bf1;this['_status$'][_0x741964(0x14f)](_0x741964(0x1a5)),(_0x473bf1=this['_commandDisposable'])==null||_0x473bf1[_0x741964(0x225)](),this['_commandDisposable']=null;}[_0x1a714e(0x205)](){var _0x121a67=_0x1a714e,_0x3d4a0;this[_0x121a67(0x1d9)][_0x121a67(0x14f)](_0x121a67(0x1f6)),(_0x3d4a0=this[_0x121a67(0x1ac)])==null||_0x3d4a0[_0x121a67(0x225)]();}['_handleOperation'](_0x54ec52){var _0x2994b9=_0x1a714e;if([_0x2994b9(0x219),_0x2994b9(0x1f6),'offline']['includes'](this['_status'])||!_0x54ec52[_0x2994b9(0x212)][_0x2994b9(0x221)]||_0x54ec52[_0x2994b9(0x212)][_0x2994b9(0x221)]===this[_0x2994b9(0x159)][_0x2994b9(0x196)]())return;this['_status']===_0x2994b9(0x1a5)&&this[_0x2994b9(0x1a1)]();const _0x31d316=_0x54ec52[_0x2994b9(0x212)][_0x2994b9(0x1e0)];Object[_0x2994b9(0x147)](_0x31d316)['forEach'](_0x4df526=>{var _0x504f51=_0x2994b9;this[_0x504f51(0x19c)][_0x504f51(0x183)](_0x4df526['id'],_0x4df526[_0x504f51(0x21c)]?JSON[_0x504f51(0x1ed)](_0x4df526['params']):null,{'fromCollab':!0x0});});}[_0x1a714e(0x16d)](){var _0x1ef510=_0x1a714e,_0x596ae7;this[_0x1ef510(0x1d9)][_0x1ef510(0x14f)](_0x1ef510(0x195)),(_0x596ae7=this[_0x1ef510(0x1ac)])==null||_0x596ae7[_0x1ef510(0x225)]();}['_handleOnline'](){var _0x5d3dbd=_0x1a714e;this['_status$'][_0x5d3dbd(0x14f)](_0x5d3dbd(0x1a5)),this[_0x5d3dbd(0x160)]();}},exports[_0x1a714e(0x1f4)]=R([S(0x2,o[_0x1a714e(0x199)]),S(0x3,o[_0x1a714e(0x15e)](O)),S(0x4,o[_0x1a714e(0x153)])],exports[_0x1a714e(0x1f4)]);function A(){var _0x539154=_0x1a714e;const _0x1ce604=p[_0x539154(0x15a)](exports[_0x539154(0x1e9)]),_0x423429=p[_0x539154(0x15a)](o[_0x539154(0x1df)]),_0x15f701=p[_0x539154(0x1f9)](()=>_0x423429['getCurrentTypeOfUnit$'](o['UniverInstanceType'][_0x539154(0x1fe)]),void 0x0,!0x1,[]),[_0x596d22,_0x29c233]=f[_0x539154(0x1c2)](null),[_0x5c3250,_0x18d098]=f[_0x539154(0x1c2)](h[_0x539154(0x1d7)]),_0xdd099a=f[_0x539154(0x1ba)](null);return f[_0x539154(0x15d)](()=>(_0x15f701&&_0x1ce604[_0x539154(0x14b)](_0x15f701[_0x539154(0x15b)]())['then'](_0x5772da=>{var _0xd2987c=_0x539154;_0x29c233(_0x5772da),_0xdd099a[_0xd2987c(0x1be)]=_0x5772da[_0xd2987c(0x150)][_0xd2987c(0x1db)](_0x2b7d84=>{_0x18d098(_0x2b7d84);});}),()=>{var _0x6e5e2e=_0x539154,_0x28b2f1;(_0x28b2f1=_0xdd099a[_0x6e5e2e(0x1be)])==null||_0x28b2f1[_0x6e5e2e(0x1b5)](),_0xdd099a['current']=null;}),[_0x15f701,_0x1ce604]),_0x596d22?l['jsx'](g['Dropdown'],{'align':_0x539154(0x20a),'disabled':_0x5c3250===h[_0x539154(0x1d6)],'className':_0x539154(0x158),'overlay':l[_0x539154(0x1a4)](B,{'status':_0x5c3250,'coordinator':_0x596d22}),'children':l[_0x539154(0x1a4)]('button',{'className':g[_0x539154(0x16c)](_0x539154(0x18b),{'univer-cursor-not-allowed':_0x5c3250===h[_0x539154(0x1d6)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5c3250!==h[_0x539154(0x1d6)]}),'type':_0x539154(0x187),'children':l[_0x539154(0x1a4)](P,{'className':_0x539154(0x1f8)})})}):null;}function B(_0x3fa6ff){var _0x12c331=_0x1a714e;const {status:_0x2ffe3d,coordinator:_0x573cfc}=_0x3fa6ff;switch(_0x2ffe3d){case h[_0x12c331(0x1d7)]:return l[_0x12c331(0x1a4)](Y,{'coordinator':_0x573cfc});case h[_0x12c331(0x148)]:return l[_0x12c331(0x1a4)](Z,{'coordinator':_0x573cfc});case h[_0x12c331(0x1ca)]:return l[_0x12c331(0x1a4)](J,{'coordinator':_0x573cfc});case h['OFFLINE']:return l['jsx'](z,{});case h['PRESENTING']:return l[_0x12c331(0x1a4)](K,{'coordinator':_0x573cfc});default:return null;}}function Y(_0x43434b){var _0xd0d49a=_0x1a714e;const {coordinator:_0x5421b4}=_0x43434b;return l[_0xd0d49a(0x19f)](l[_0xd0d49a(0x174)],{'children':[l[_0xd0d49a(0x1a4)](_0xd0d49a(0x224),{'className':_0xd0d49a(0x209),'children':_0xd0d49a(0x176)}),l['jsx'](g[_0xd0d49a(0x1cd)],{'onClick':()=>_0x5421b4[_0xd0d49a(0x17b)](),'children':_0xd0d49a(0x204)})]});}function Z(_0x14a1c2){var _0x45d1aa=_0x1a714e;const {coordinator:_0x15d1db}=_0x14a1c2;return l[_0x45d1aa(0x19f)](l[_0x45d1aa(0x174)],{'children':[l[_0x45d1aa(0x1a4)](_0x45d1aa(0x224),{'className':_0x45d1aa(0x209),'children':_0x45d1aa(0x14c)}),l[_0x45d1aa(0x1a4)](g[_0x45d1aa(0x1cd)],{'onClick':()=>_0x15d1db[_0x45d1aa(0x1fa)](),'children':_0x45d1aa(0x17c)})]});}function J(_0x4beefa){var _0x3589a0=_0x1a714e;const {coordinator:_0x51e1b4}=_0x4beefa;return l[_0x3589a0(0x19f)](l[_0x3589a0(0x174)],{'children':[l[_0x3589a0(0x1a4)]('div',{'className':_0x3589a0(0x209),'children':_0x3589a0(0x18e)}),l['jsx'](g['Button'],{'variant':'text','onClick':()=>_0x51e1b4[_0x3589a0(0x19a)](),'children':_0x3589a0(0x1b3)})]});}function K(_0xf36525){var _0x4ec623=_0x1a714e;const {coordinator:_0x4fae61}=_0xf36525;return l[_0x4ec623(0x19f)](l[_0x4ec623(0x174)],{'children':[l['jsx'](_0x4ec623(0x224),{'className':_0x4ec623(0x209),'children':_0x4ec623(0x173)}),l[_0x4ec623(0x1a4)](g[_0x4ec623(0x1cd)],{'variant':_0x4ec623(0x1c9),'onClick':()=>_0x4fae61['stopPresenting'](),'children':_0x4ec623(0x211)})]});}function z(){var _0x3d3b61=_0x1a714e;return l['jsx'](l[_0x3d3b61(0x174)],{'children':_0x3d3b61(0x1c5)});}var Q=Object['getOwnPropertyDescriptor'],X=(_0x22d696,_0x516d86,_0x379e9b,_0x1a4789)=>{for(var _0x43251d=_0x1a4789>0x1?void 0x0:_0x1a4789?Q(_0x516d86,_0x379e9b):_0x516d86,_0x21243a=_0x22d696['length']-0x1,_0x5dab82;_0x21243a>=0x0;_0x21243a--)(_0x5dab82=_0x22d696[_0x21243a])&&(_0x43251d=_0x5dab82(_0x43251d)||_0x43251d);return _0x43251d;},x=(_0x4d638b,_0x4b73ab)=>(_0x1f3c58,_0x515260)=>_0x4b73ab(_0x1f3c58,_0x515260,_0x4d638b);exports['DesktopLiveShareController']=class extends o[_0x1a714e(0x1da)]{constructor(_0x35bfa6,_0x2d826e){var _0x1db6c4=_0x1a714e;super(),this[_0x1db6c4(0x1c7)]=_0x35bfa6,this['_uiPartsService']=_0x2d826e,this[_0x1db6c4(0x1c0)]();}[_0x1a714e(0x1c0)](){var _0x60e080=_0x1a714e;this['disposeWithMe'](this[_0x60e080(0x166)][_0x60e080(0x14d)](p[_0x60e080(0x198)]['HEADER_MENU'],()=>p[_0x60e080(0x1ae)](A,this[_0x60e080(0x1c7)])));}},exports['DesktopLiveShareController']=X([x(0x0,o[_0x1a714e(0x15e)](o['Injector'])),x(0x1,p[_0x1a714e(0x215)])],exports['DesktopLiveShareController']);const ee=_0x1a714e(0x1c8),L={};var te=Object[_0x1a714e(0x1ff)],ie=(_0x3e487d,_0x541e5a,_0x4b9678,_0x16c36a)=>{for(var _0x5cbec3=_0x16c36a>0x1?void 0x0:_0x16c36a?te(_0x541e5a,_0x4b9678):_0x541e5a,_0x1cbe2c=_0x3e487d['length']-0x1,_0x55076b;_0x1cbe2c>=0x0;_0x1cbe2c--)(_0x55076b=_0x3e487d[_0x1cbe2c])&&(_0x5cbec3=_0x55076b(_0x5cbec3)||_0x5cbec3);return _0x5cbec3;},ne=(_0x5f3daf,_0x5b5166)=>(_0x6a9cba,_0x282899)=>_0x5b5166(_0x6a9cba,_0x282899,_0x5f3daf);let E=class extends o[_0x1a714e(0x1da)]{constructor(_0x3cdaad){var _0x9a4353=_0x1a714e;super(),this[_0x9a4353(0x1b7)]=_0x3cdaad,this[_0x9a4353(0x20b)]();}[_0x1a714e(0x20b)](){var _0x511169=_0x1a714e;[D[_0x511169(0x201)]['id'],D[_0x511169(0x161)]['id'],C[_0x511169(0x1aa)]['id']]['forEach'](_0x767d88=>{var _0x535823=_0x511169;this['disposeWithMe'](this[_0x535823(0x1b7)][_0x535823(0x155)](_0x767d88));});}};E=ie([ne(0x0,o[_0x1a714e(0x15e)](O))],E);var re=Object[_0x1a714e(0x20e)],se=Object[_0x1a714e(0x1ff)],oe=(_0x300db0,_0x2a357f,_0x594b50)=>_0x2a357f in _0x300db0?re(_0x300db0,_0x2a357f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x594b50}):_0x300db0[_0x2a357f]=_0x594b50,ae=(_0x2efc94,_0xe50185,_0xc02aed,_0x227249)=>{var _0x38cf51=_0x1a714e;for(var _0xf863f2=_0x227249>0x1?void 0x0:_0x227249?se(_0xe50185,_0xc02aed):_0xe50185,_0x4dd7ec=_0x2efc94[_0x38cf51(0x163)]-0x1,_0x407cd9;_0x4dd7ec>=0x0;_0x4dd7ec--)(_0x407cd9=_0x2efc94[_0x4dd7ec])&&(_0xf863f2=_0x407cd9(_0xf863f2)||_0xf863f2);return _0xf863f2;},N=(_0x2ca6e0,_0x9b20a4)=>(_0x35bd65,_0x4c8053)=>_0x9b20a4(_0x35bd65,_0x4c8053,_0x2ca6e0),T=(_0x2495ec,_0x3ec111,_0x2878ea)=>oe(_0x2495ec,typeof _0x3ec111!=_0x1a714e(0x223)?_0x3ec111+'':_0x3ec111,_0x2878ea);const le=_0x1a714e(0x1a9);function _0x2b4a(_0x16fbf4,_0xff0051){var _0x98b82b=_0x98b8();return _0x2b4a=function(_0x2b4a86,_0x5af9c0){_0x2b4a86=_0x2b4a86-0x147;var _0x5578a8=_0x98b82b[_0x2b4a86];return _0x5578a8;},_0x2b4a(_0x16fbf4,_0xff0051);}exports[_0x1a714e(0x157)]=class extends o[_0x1a714e(0x1ce)]{constructor(_0x5b6eee=L,_0xdf2330,_0x968d41){var _0x25dd2a=_0x1a714e;super(),this['_config']=_0x5b6eee,this[_0x25dd2a(0x1c7)]=_0xdf2330,this[_0x25dd2a(0x1e7)]=_0x968d41;const {..._0x136bdf}=o[_0x25dd2a(0x191)]({},L,this[_0x25dd2a(0x228)]);this[_0x25dd2a(0x1e7)][_0x25dd2a(0x169)](ee,_0x136bdf);}['onStarting'](){var _0x2d3df5=_0x1a714e;o['registerDependencies'](this[_0x2d3df5(0x1c7)],o[_0x2d3df5(0x180)]([[O],[exports[_0x2d3df5(0x1e9)]],[E],[exports['DesktopLiveShareController']]],this[_0x2d3df5(0x228)]['override'])),o[_0x2d3df5(0x1f5)](this[_0x2d3df5(0x1c7)],[[E]]);}['onRendered'](){var _0x4f5841=_0x1a714e;o[_0x4f5841(0x1f5)](this[_0x4f5841(0x1c7)],[[exports[_0x4f5841(0x192)]]]);}},T(exports[_0x1a714e(0x157)],_0x1a714e(0x1d8),o['UniverInstanceType'][_0x1a714e(0x1ec)]),T(exports[_0x1a714e(0x157)],_0x1a714e(0x20f),le),exports[_0x1a714e(0x157)]=ae([o['DependentOn'](m[_0x1a714e(0x154)]),N(0x1,o['Inject'](o[_0x1a714e(0x1fb)])),N(0x2,o['IConfigService'])],exports[_0x1a714e(0x157)]),exports[_0x1a714e(0x190)]=A,exports[_0x1a714e(0x21d)]=O,exports['LiveShareStatus']=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x3a3ab5=_0x3eae;(function(_0x260bae,_0x2c6ce9){var _0x55465a=_0x3eae,_0xdf58b1=_0x260bae();while(!![]){try{var _0x5793bb=parseInt(_0x55465a(0x264))/0x1+parseInt(_0x55465a(0x269))/0x2*(-parseInt(_0x55465a(0x275))/0x3)+parseInt(_0x55465a(0x27b))/0x4+parseInt(_0x55465a(0x1f8))/0x5*(-parseInt(_0x55465a(0x262))/0x6)+parseInt(_0x55465a(0x22b))/0x7+parseInt(_0x55465a(0x243))/0x8+-parseInt(_0x55465a(0x1fc))/0x9*(parseInt(_0x55465a(0x209))/0xa);if(_0x5793bb===_0x2c6ce9)break;else _0xdf58b1['push'](_0xdf58b1['shift']());}catch(_0x49690a){_0xdf58b1['push'](_0xdf58b1['shift']());}}}(_0x169c,0xa1479));var q=Object[_0x3a3ab5(0x287)],z=(_0x1629f5,_0x475dd1,_0x19b6df)=>_0x475dd1 in _0x1629f5?q(_0x1629f5,_0x475dd1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x19b6df}):_0x1629f5[_0x475dd1]=_0x19b6df,d=(_0x7f965c,_0x1665be,_0x4b62fe)=>z(_0x7f965c,typeof _0x1665be!=_0x3a3ab5(0x1ed)?_0x1665be+'':_0x1665be,_0x4b62fe);import{Disposable as _0x455fad,toDisposable as _0x436294,IUniverInstanceService as _0x1d8bf3,Inject as _0x31e0bc,Injector as _0x4954bf,IConfigService as _0x20a225,ICommandService as _0xe4004e,RxDisposable as _0x16d957,UniverInstanceType as _0x448959,DisposableCollection as _0x1b6a9c,CommandType as _0x2e5ba9,DependentOn as _0x3d5d54,Plugin as _0x9a98d2,merge as _0x19d8b5,registerDependencies as _0x204a17,mergeOverrideWithDependencies as _0x24b91d,touchDependencies as _0x8d2874}from'@univerjs/core';import{useDependency as _0x22f7b4,useObservable as _0x333831,IUIPartsService as _0x1a74a9,BuiltInUIPart as _0x491a32,connectInjector as _0xfdf7a5}from'@univerjs/ui';import{jsx as _0x48343b,jsxs as _0x17d1e3,Fragment as _0x564f17}from'react/jsx-runtime';import{Dropdown as _0x48a603,clsx as _0x292a6e,Button as _0x45739e}from'@univerjs/design';import{forwardRef as _0x5a28b7,useRef as _0x527ac8,createElement as _0x471b24,useState as _0x35c6be,useEffect as _0x307e8c}from'react';import{CollaborationEvent as _0x397dcb,parseProtocolChangeset as _0x500977}from'@univerjs-pro/collaboration';function _0x3eae(_0x5c13ae,_0xd8685f){var _0x169c24=_0x169c();return _0x3eae=function(_0x3eae3b,_0x302d70){_0x3eae3b=_0x3eae3b-0x1e5;var _0x3f291e=_0x169c24[_0x3eae3b];return _0x3f291e;},_0x3eae(_0x5c13ae,_0xd8685f);}import{CollaborationSessionService as _0x31967c,SessionStatus as _0x1e54cd,UniverCollaborationClientPlugin as _0x2bd614}from'@univerjs-pro/collaboration-client';function _0x169c(){var _0x1ed96a=['svg','offline','_handleNewHost','map','Stop\x20following','end','getOwnPropertySymbols','status$','toString','idSuffix','You\x27re\x20presenting\x20the\x20document','set','40DoJgjb','path','none','mask','tryStartPresenting','http://www.w3.org/2000/svg','from','LiveShareIcon','hasOwnProperty','_status$','string','following','pipe','attrs','_handleTerminate','random','NEW_CHANGESETS','extend','IDLE','propertyIsEnumerable','_handleNewChangeSets','getValue','data','currentColor','children','xlink:href','replace','startFollowing','registerComponent','executeCommand','getLiveShareCoordinator','UNIVER_SHEET','get','url(#$1','4109987GCNSLh','presenter','_collabSession','entries','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','_unitID','1em','_beIdle','Start','trim','assign','univer-mb-3\x20univer-w-full\x20univer-text-sm','find','_presenter','LIVESHARE_OPERATION','registerInitialStateReporter','event$','idle','defs','substring','getTypeOfUnitDisposed$','sheet','LIVESHARE_NEW_HOST','pluginName','3124176EgxFBW','0\x200\x2017\x2017','_config','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','_liveShareService','colorChannel1','getCurrentTypeOfUnit$','_startPresenting','Stop\x20presenting','stringify','type','params','dispose','_commandService','onStarting','evenodd','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_startFollowing','displayName','has','override','UniverIcon','memberID','send','SAME_OPERATION_SHARE_INTERVAL','shouldShareOperation','includes','getUnitId','text','PRESENTING','button','15306BjNupr','values','494836weFHjl','_fetchOperations','_startLiveShareCoordinator','setConfig','className','194oBejQW','_univerInstanceService','next','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_FETCH_OPERATIONS','OFFLINE','live-share.config','parse','_stopFollowing','length','defIds','You\x27are\x20offline.','29781TiEYzx','UNIVER_UNKNOWN','NOT_FOLLOWING','subscribe','concat','onCommandExecuted','5166176OHrYkY','add','You\x27re\x20following\x20the\x20presenter','complete','_configService','getMemberID','FOLLOWING','reverse','LIVESHARE_REQUEST_HOST','getOwnPropertyDescriptor','indexOf','_reporters','defineProperty','getTypeOfUnitAdded$','presenting','dispose$','function','Present\x20this\x20document','requireSession','_stopPresenting','icon','disposeWithMe','asObservable','getInitialStates','call','_uiPartsService','live-share-icon','_injector','prototype','_entities','mutations','init','_handleOnline','_mountLiveShare','delete','_commandDisposable','univerjs-icon\x20univerjs-icon-','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','apply','_sharedOperations','LIVESHARE_TERMINATE','then','forEach','current','clear','getConfig','_handleOffline','symbol','_init','default','Start\x20following','stopFollowing','fill','_handleOperation','stopPresenting','ONLINE','_collabSessionService','not-following','285LSSnIm','_status','onRendered','tag','2239011FDneDG'];_0x169c=function(){return _0x1ed96a;};return _0x169c();}import{InsertSheetMutation as _0x32057a,SetWorksheetActiveOperation as _0x29613a}from'@univerjs/sheets';import{BehaviorSubject as _0x56668a,Subject as _0xc074b3}from'rxjs';import{takeUntil as _0x594e24,throttleTime as _0x4350b5}from'rxjs/operators';import{SetZoomRatioOperation as _0x1f7b0d,SetScrollOperation as _0x18a32e}from'@univerjs/sheets-ui';var c=function(){var _0x360896=_0x3a3ab5;return c=Object[_0x360896(0x235)]||function(_0x12fd74){var _0x22b9b8=_0x360896;for(var _0x530c62,_0x2213ef=0x1,_0x44c771=arguments[_0x22b9b8(0x272)];_0x2213ef<_0x44c771;_0x2213ef++){_0x530c62=arguments[_0x2213ef];for(var _0x572ca3 in _0x530c62)Object[_0x22b9b8(0x297)][_0x22b9b8(0x211)]['call'](_0x530c62,_0x572ca3)&&(_0x12fd74[_0x572ca3]=_0x530c62[_0x572ca3]);}return _0x12fd74;},c[_0x360896(0x2a1)](this,arguments);},Oe=function(_0x4fc45a,_0x202c43){var _0xf80c5f=_0x3a3ab5,_0x461891={};for(var _0x2c903c in _0x4fc45a)Object[_0xf80c5f(0x297)][_0xf80c5f(0x211)][_0xf80c5f(0x293)](_0x4fc45a,_0x2c903c)&&_0x202c43[_0xf80c5f(0x285)](_0x2c903c)<0x0&&(_0x461891[_0x2c903c]=_0x4fc45a[_0x2c903c]);if(_0x4fc45a!=null&&typeof Object[_0xf80c5f(0x203)]==_0xf80c5f(0x28b)){for(var _0x1f41fe=0x0,_0x2c903c=Object[_0xf80c5f(0x203)](_0x4fc45a);_0x1f41fe<_0x2c903c[_0xf80c5f(0x272)];_0x1f41fe++)_0x202c43['indexOf'](_0x2c903c[_0x1f41fe])<0x0&&Object[_0xf80c5f(0x297)][_0xf80c5f(0x21c)]['call'](_0x4fc45a,_0x2c903c[_0x1f41fe])&&(_0x461891[_0x2c903c[_0x1f41fe]]=_0x4fc45a[_0x2c903c[_0x1f41fe]]);}return _0x461891;},W=_0x5a28b7(function(_0x5c6e75,_0x3905bf){var _0x2b8dfe=_0x3a3ab5,_0x3bba64=_0x5c6e75['icon'],_0x3b64ca=_0x5c6e75['id'],_0x4171eb=_0x5c6e75['className'],_0x4e3f24=_0x5c6e75[_0x2b8dfe(0x21a)],_0x970013=Oe(_0x5c6e75,[_0x2b8dfe(0x28f),'id',_0x2b8dfe(0x268),_0x2b8dfe(0x21a)]),_0x48bac9=_0x2b8dfe(0x29f)[_0x2b8dfe(0x279)](_0x3b64ca,'\x20')[_0x2b8dfe(0x279)](_0x4171eb||'')[_0x2b8dfe(0x234)](),_0x272a93=_0x527ac8('_'[_0x2b8dfe(0x279)](Ne()));return Y(_0x3bba64,''[_0x2b8dfe(0x279)](_0x3b64ca),{'defIds':_0x3bba64[_0x2b8dfe(0x273)],'idSuffix':_0x272a93[_0x2b8dfe(0x1e9)]},c({'ref':_0x3905bf,'className':_0x48bac9},_0x970013),_0x4e3f24);});function Y(_0x2dd433,_0x5ad4c5,_0x1f95ba,_0x222eaa,_0x230dff){var _0x1e1db2=_0x3a3ab5;return _0x471b24(_0x2dd433[_0x1e1db2(0x1fb)],c(c({'key':_0x5ad4c5},Ee(_0x2dd433,_0x1f95ba,_0x230dff)),_0x222eaa),(we(_0x2dd433,_0x1f95ba)[_0x1e1db2(0x221)]||[])[_0x1e1db2(0x200)](function(_0x23c0e8,_0x2e0e53){var _0x26fa1d=_0x1e1db2;return Y(_0x23c0e8,''['concat'](_0x5ad4c5,'-')[_0x26fa1d(0x279)](_0x2dd433[_0x26fa1d(0x1fb)],'-')[_0x26fa1d(0x279)](_0x2e0e53),_0x1f95ba,void 0x0,_0x230dff);}));}function Ee(_0x4dc983,_0x58224b,_0x294ec7){var _0x2dc398=_0x3a3ab5,_0x4f7339=c({},_0x4dc983[_0x2dc398(0x216)]);_0x294ec7!=null&&_0x294ec7[_0x2dc398(0x248)]&&_0x4f7339[_0x2dc398(0x1f2)]==='colorChannel1'&&(_0x4f7339[_0x2dc398(0x1f2)]=_0x294ec7[_0x2dc398(0x248)]),_0x4dc983[_0x2dc398(0x1fb)]===_0x2dc398(0x20c)&&_0x4f7339['id']&&(_0x4f7339['id']=_0x4f7339['id']+_0x58224b[_0x2dc398(0x206)]),Object[_0x2dc398(0x22e)](_0x4f7339)[_0x2dc398(0x1e8)](function(_0x2113d5){var _0x358484=_0x2dc398,_0x1101ad=_0x2113d5[0x0],_0x122ad4=_0x2113d5[0x1];_0x1101ad===_0x358484(0x20c)&&typeof _0x122ad4==_0x358484(0x213)&&(_0x4f7339[_0x1101ad]=_0x122ad4[_0x358484(0x223)](/url\(#(.*)\)/,_0x358484(0x22a)[_0x358484(0x279)](_0x58224b[_0x358484(0x206)],')')));});var _0x592c4e=_0x58224b[_0x2dc398(0x273)];return!_0x592c4e||_0x592c4e[_0x2dc398(0x272)]===0x0||(_0x4dc983[_0x2dc398(0x1fb)]==='use'&&_0x4f7339[_0x2dc398(0x222)]&&(_0x4f7339[_0x2dc398(0x222)]=_0x4f7339['xlink:href']+_0x58224b['idSuffix']),Object[_0x2dc398(0x22e)](_0x4f7339)['forEach'](function(_0x481fd8){var _0x2d6080=_0x2dc398,_0x5909a5=_0x481fd8[0x0],_0x22a88b=_0x481fd8[0x1];typeof _0x22a88b=='string'&&(_0x4f7339[_0x5909a5]=_0x22a88b[_0x2d6080(0x223)](/url\(#(.*)\)/,_0x2d6080(0x22a)[_0x2d6080(0x279)](_0x58224b[_0x2d6080(0x206)],')')));})),_0x4f7339;}function we(_0x263791,_0x5a0c71){var _0x24c1b9=_0x3a3ab5,_0x6e96c6,_0x5d2ef3=_0x5a0c71['defIds'];return!_0x5d2ef3||_0x5d2ef3[_0x24c1b9(0x272)]===0x0?_0x263791:_0x263791[_0x24c1b9(0x1fb)]===_0x24c1b9(0x23d)&&(!((_0x6e96c6=_0x263791[_0x24c1b9(0x221)])===null||_0x6e96c6===void 0x0)&&_0x6e96c6[_0x24c1b9(0x272)])?c(c({},_0x263791),{'children':_0x263791['children'][_0x24c1b9(0x200)](function(_0xf3ae08){var _0xe2de6f=_0x24c1b9;return typeof _0xf3ae08[_0xe2de6f(0x216)]['id']==_0xe2de6f(0x213)&&_0x5d2ef3&&_0x5d2ef3['includes'](_0xf3ae08['attrs']['id'])?c(c({},_0xf3ae08),{'attrs':c(c({},_0xf3ae08[_0xe2de6f(0x216)]),{'id':_0xf3ae08['attrs']['id']+_0x5a0c71[_0xe2de6f(0x206)]})}):_0xf3ae08;})}):_0x263791;}function Ne(){var _0x548c78=_0x3a3ab5;return Math[_0x548c78(0x218)]()[_0x548c78(0x205)](0x24)[_0x548c78(0x23e)](0x2,0x8);}W['displayName']=_0x3a3ab5(0x258);var Ce={'tag':_0x3a3ab5(0x1fd),'attrs':{'xmlns':_0x3a3ab5(0x20e),'fill':_0x3a3ab5(0x20b),'viewBox':_0x3a3ab5(0x244),'width':_0x3a3ab5(0x231),'height':_0x3a3ab5(0x231)},'children':[{'tag':_0x3a3ab5(0x20a),'attrs':{'fill':_0x3a3ab5(0x220),'d':_0x3a3ab5(0x22f)}},{'tag':_0x3a3ab5(0x20a),'attrs':{'fill':_0x3a3ab5(0x220),'d':_0x3a3ab5(0x246),'fillRule':'evenodd','clipRule':_0x3a3ab5(0x252)}}]},B=_0x5a28b7(function(_0x4cb8df,_0x277472){var _0x25a95d=_0x3a3ab5;return _0x471b24(W,Object[_0x25a95d(0x235)]({},_0x4cb8df,{'id':_0x25a95d(0x295),'ref':_0x277472,'icon':Ce}));});B[_0x3a3ab5(0x255)]=_0x3a3ab5(0x210);class L extends _0x455fad{constructor(){var _0x4076e1=_0x3a3ab5;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x4076e1(0x286),new Set());}['registerSharedOperation'](_0x58875b){var _0x471743=_0x3a3ab5;return this[_0x471743(0x1e5)][_0x471743(0x27c)](_0x58875b),_0x436294(()=>this[_0x471743(0x1e5)][_0x471743(0x29d)](_0x58875b));}[_0x3a3ab5(0x23a)](_0x31a844){var _0x579766=_0x3a3ab5;return this[_0x579766(0x286)][_0x579766(0x27c)](_0x31a844),_0x436294(()=>this[_0x579766(0x286)][_0x579766(0x29d)](_0x31a844));}[_0x3a3ab5(0x25c)](_0x9886e1){var _0x49655d=_0x3a3ab5;return this['_sharedOperations'][_0x49655d(0x256)](_0x9886e1);}['getInitialStates'](_0x19bee7){var _0x2f7cc4=_0x3a3ab5;return Array[_0x2f7cc4(0x20f)](this[_0x2f7cc4(0x286)])['map'](_0xf8756=>_0xf8756(_0x19bee7));}}var De=Object[_0x3a3ab5(0x284)],Z=(_0x41b9fb,_0x523ad5,_0x553623,_0x5615b1)=>{var _0x4d4b13=_0x3a3ab5;for(var _0x1c320c=_0x5615b1>0x1?void 0x0:_0x5615b1?De(_0x523ad5,_0x553623):_0x523ad5,_0x1c0d9d=_0x41b9fb[_0x4d4b13(0x272)]-0x1,_0x3f7a3b;_0x1c0d9d>=0x0;_0x1c0d9d--)(_0x3f7a3b=_0x41b9fb[_0x1c0d9d])&&(_0x1c320c=_0x3f7a3b(_0x1c320c)||_0x1c320c);return _0x1c320c;},f=(_0x3deda5,_0x953a0d)=>(_0x203131,_0x1dae6c)=>_0x953a0d(_0x203131,_0x1dae6c,_0x3deda5);let m=class extends _0x16d957{constructor(_0x5b441d,_0x571e62,_0x536de3){var _0x41474f=_0x3a3ab5;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x5b441d,this[_0x41474f(0x296)]=_0x571e62,this['_collabSessionService']=_0x536de3,this[_0x41474f(0x1ee)]());}async['getLiveShareCoordinator'](_0x222b05){var _0x3586db=_0x3a3ab5;return this[_0x3586db(0x298)]['has'](_0x222b05)||await this[_0x3586db(0x266)](_0x222b05),this['_entities'][_0x3586db(0x229)](_0x222b05);}['_init'](){var _0x435591=_0x3a3ab5;this['_univerInstanceService'][_0x435591(0x288)](_0x448959['UNIVER_SHEET'])[_0x435591(0x215)](_0x594e24(this[_0x435591(0x28a)]))[_0x435591(0x278)](async _0x3b98ed=>{var _0x5a6f5e=_0x435591;const _0x413d05=_0x3b98ed[_0x5a6f5e(0x25e)]();this['_entities'][_0x5a6f5e(0x256)](_0x413d05)||this['_startLiveShareCoordinator'](_0x413d05);}),this[_0x435591(0x26a)][_0x435591(0x23f)](_0x448959[_0x435591(0x228)])['pipe'](_0x594e24(this['dispose$']))[_0x435591(0x278)](_0x6af18=>{var _0x2d0a65=_0x435591;const _0x3d0651=_0x6af18[_0x2d0a65(0x25e)](),_0x3ad74a=this[_0x2d0a65(0x298)][_0x2d0a65(0x229)](_0x3d0651);_0x3ad74a==null||_0x3ad74a[_0x2d0a65(0x24f)]();});}async[_0x3a3ab5(0x266)](_0x2b50b6){var _0x4dc1e2=_0x3a3ab5;const _0x2d6d8b=await this[_0x4dc1e2(0x1f6)][_0x4dc1e2(0x28d)](_0x2b50b6),_0x19947e=this[_0x4dc1e2(0x296)]['createInstance'](C,_0x2b50b6,_0x2d6d8b);return _0x19947e['init'](),this[_0x4dc1e2(0x298)][_0x4dc1e2(0x208)](_0x2b50b6,_0x19947e),_0x19947e;}};m=Z([f(0x0,_0x1d8bf3),f(0x1,_0x31e0bc(_0x4954bf)),f(0x2,_0x31e0bc(_0x31967c))],m);var h=(_0x102292=>(_0x102292[_0x3a3ab5(0x26e)]=_0x3a3ab5(0x1fe),_0x102292[_0x3a3ab5(0x21b)]='idle',_0x102292['FOLLOWING']='following',_0x102292[_0x3a3ab5(0x277)]='not-following',_0x102292['PRESENTING']=_0x3a3ab5(0x289),_0x102292))(h||{});const xe=_0x3a3ab5(0x25b),Le=0xc8;let C=class extends _0x16d957{constructor(_0x31ab3e,_0x7287f5,_0x46160f,_0x5a9428,_0x49b6d0){var _0xfa78f0=_0x3a3ab5;super(),d(this,_0xfa78f0(0x212),new _0x56668a('idle')),d(this,_0xfa78f0(0x204),this[_0xfa78f0(0x212)][_0xfa78f0(0x291)]()),d(this,_0xfa78f0(0x1ee),!0x1),d(this,'_commandDisposable',null),d(this,_0xfa78f0(0x238),null),(this[_0xfa78f0(0x230)]=_0x31ab3e,this[_0xfa78f0(0x22d)]=_0x7287f5,this[_0xfa78f0(0x27f)]=_0x46160f,this[_0xfa78f0(0x247)]=_0x5a9428,this['_commandService']=_0x49b6d0);}get[_0x3a3ab5(0x1f9)](){var _0x37401a=_0x3a3ab5;return this['_status$'][_0x37401a(0x21e)]();}['dispose'](){var _0x219c58=_0x3a3ab5,_0x5dd352;(_0x5dd352=this[_0x219c58(0x29e)])==null||_0x5dd352[_0x219c58(0x24f)](),this[_0x219c58(0x212)][_0x219c58(0x26b)](_0x219c58(0x23c)),this[_0x219c58(0x212)][_0x219c58(0x27e)]();}[_0x3a3ab5(0x29a)](){var _0x13bcca=_0x3a3ab5;this[_0x13bcca(0x1ee)]||(this[_0x13bcca(0x1ee)]=!0x0,this[_0x13bcca(0x22d)]['sessionStatus$'][_0x13bcca(0x215)](_0x594e24(this[_0x13bcca(0x28a)]))['subscribe'](_0xdd2848=>{var _0xf1ca0a=_0x13bcca;switch(_0xdd2848){case _0x1e54cd[_0xf1ca0a(0x26e)]:this[_0xf1ca0a(0x1ec)]();break;case _0x1e54cd[_0xf1ca0a(0x1f5)]:this[_0xf1ca0a(0x29b)]();break;}}),this[_0x13bcca(0x22d)][_0x13bcca(0x23b)][_0x13bcca(0x215)](_0x594e24(this[_0x13bcca(0x28a)]))['subscribe'](_0x18391f=>{var _0x517d56=_0x13bcca;const {eventID:_0x579c1b}=_0x18391f;switch(_0x579c1b){case _0x397dcb[_0x517d56(0x241)]:this[_0x517d56(0x1ff)](_0x18391f);break;case _0x397dcb[_0x517d56(0x239)]:this[_0x517d56(0x1f3)](_0x18391f);break;case _0x397dcb[_0x517d56(0x1e6)]:this[_0x517d56(0x217)]();break;case _0x397dcb[_0x517d56(0x219)]:this[_0x517d56(0x21d)](_0x18391f);break;}}));}[_0x3a3ab5(0x20d)](){var _0x5aeb41=_0x3a3ab5;this['_collabSession'][_0x5aeb41(0x25a)]({'eventID':_0x397dcb[_0x5aeb41(0x283)],'data':{'unitID':this[_0x5aeb41(0x230)],'userID':this['_collabSession'][_0x5aeb41(0x280)]()}},this['_unitID']);}[_0x3a3ab5(0x1f4)](){var _0x2547a8=_0x3a3ab5;this['_status']==='presenting'&&(this[_0x2547a8(0x212)][_0x2547a8(0x26b)](_0x2547a8(0x23c)),this[_0x2547a8(0x22d)]['send']({'eventID':_0x397dcb[_0x2547a8(0x1e6)],'data':{'unitID':this['_unitID']}},this[_0x2547a8(0x230)]));}[_0x3a3ab5(0x224)](){var _0x353f7c=_0x3a3ab5;this[_0x353f7c(0x1f9)]===_0x353f7c(0x1f7)&&(this[_0x353f7c(0x212)]['next'](_0x353f7c(0x214)),this['_startFollowing']());}[_0x3a3ab5(0x1f1)](){var _0x5d3ba3=_0x3a3ab5;this['_status']==='following'&&this[_0x5d3ba3(0x271)]();}[_0x3a3ab5(0x1ff)](_0x590947){var _0x1b8c8b=_0x3a3ab5;const {presenter:_0x55ff53}=_0x590947[_0x1b8c8b(0x21f)],_0xe38f46=this[_0x1b8c8b(0x22d)][_0x1b8c8b(0x280)]();this[_0x1b8c8b(0x238)]=_0x55ff53,_0x55ff53===_0xe38f46?(this['_stopFollowing'](),this[_0x1b8c8b(0x24a)]()):this[_0x1b8c8b(0x1f9)]!==_0x1b8c8b(0x1f7)&&(this[_0x1b8c8b(0x28e)](),this[_0x1b8c8b(0x254)]());}['_fetchOperations'](){var _0x14c6a1=_0x3a3ab5;const _0x56236f={'eventID':_0x397dcb[_0x14c6a1(0x26d)]};this[_0x14c6a1(0x22d)]['send'](_0x56236f,this[_0x14c6a1(0x230)]);}[_0x3a3ab5(0x217)](){var _0x5791cb=_0x3a3ab5;this[_0x5791cb(0x238)]=null,this[_0x5791cb(0x1f9)]!==_0x5791cb(0x289)&&this[_0x5791cb(0x232)]();}[_0x3a3ab5(0x21d)](_0x5dcf0f){var _0x3fe6ef=_0x3a3ab5;if(this[_0x3fe6ef(0x1f9)]==='following'&&this[_0x3fe6ef(0x238)]===_0x5dcf0f[_0x3fe6ef(0x21f)][_0x3fe6ef(0x259)]){const _0x5ae449=_0x500977(_0x5dcf0f['data'])[_0x3fe6ef(0x299)][_0x3fe6ef(0x282)]()[_0x3fe6ef(0x237)](_0x4b2f18=>_0x4b2f18['id']===_0x32057a['id']);if(_0x5ae449){const _0x40e08d=_0x5ae449[_0x3fe6ef(0x24e)]['unitId'],_0x1c573f=_0x5ae449[_0x3fe6ef(0x24e)][_0x3fe6ef(0x240)]['id'];setTimeout(()=>{var _0x19b6f2=_0x3fe6ef;this[_0x19b6f2(0x250)][_0x19b6f2(0x226)](_0x29613a['id'],{'unitId':_0x40e08d,'subUnitId':_0x1c573f},{'fromCollab':!0x0});});}}}[_0x3a3ab5(0x24a)](){var _0x3fa163=_0x3a3ab5;this['_status$'][_0x3fa163(0x26b)]('presenting');const _0x2c80e0=new Map(),_0x6569af=this[_0x3fa163(0x29e)]=new _0x1b6a9c();_0x6569af['add'](_0x436294(()=>{var _0x2fe162=_0x3fa163;_0x2c80e0['forEach'](_0xf35148=>_0xf35148[_0x2fe162(0x27e)]()),_0x2c80e0[_0x2fe162(0x1ea)]();})),_0x6569af[_0x3fa163(0x27c)](this[_0x3fa163(0x250)][_0x3fa163(0x27a)](_0x1931f8=>{var _0x4664c7=_0x3fa163,_0x2532a1;if(_0x1931f8[_0x4664c7(0x24d)]!==_0x2e5ba9['OPERATION']||!this['_liveShareService'][_0x4664c7(0x25c)](_0x1931f8['id']))return;const {id:_0x50ea04}=_0x1931f8;let _0x49d83f;_0x2c80e0[_0x4664c7(0x256)](_0x50ea04)?_0x49d83f=_0x2c80e0['get'](_0x50ea04):(_0x49d83f=new _0xc074b3(),_0x2c80e0[_0x4664c7(0x208)](_0x50ea04,_0x49d83f),_0x49d83f[_0x4664c7(0x215)](_0x4350b5((_0x2532a1=this[_0x4664c7(0x27f)][_0x4664c7(0x1eb)](xe))!=null?_0x2532a1:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4664c7(0x278)](_0x189798=>{var _0x52fcaa=_0x4664c7;this[_0x52fcaa(0x22d)][_0x52fcaa(0x25a)]({'eventID':_0x397dcb[_0x52fcaa(0x239)],'data':{'unitID':this[_0x52fcaa(0x230)],'operations':{[_0x189798['id']]:{'id':_0x189798['id'],'params':JSON[_0x52fcaa(0x24c)](_0x189798[_0x52fcaa(0x24e)])}}}},this['_unitID']);})),_0x49d83f['next'](_0x1931f8);})),this[_0x3fa163(0x247)][_0x3fa163(0x292)](this['_unitID'])['forEach'](_0x5442e1=>this[_0x3fa163(0x22d)]['send']({'eventID':_0x397dcb[_0x3fa163(0x239)],'data':{'unitID':this['_unitID'],'operations':{[_0x5442e1['id']]:{'id':_0x5442e1['id'],'params':JSON[_0x3fa163(0x24c)](_0x5442e1['params'])}}}},this[_0x3fa163(0x230)]));}['_stopPresenting'](){var _0x45c8d5=_0x3a3ab5,_0x3256fa;this['_status$'][_0x45c8d5(0x26b)](_0x45c8d5(0x23c)),(_0x3256fa=this[_0x45c8d5(0x29e)])==null||_0x3256fa[_0x45c8d5(0x24f)](),this[_0x45c8d5(0x29e)]=null;}['_startFollowing'](){var _0x1b5479=_0x3a3ab5,_0xf0cd5f;(_0xf0cd5f=this[_0x1b5479(0x29e)])==null||_0xf0cd5f[_0x1b5479(0x24f)](),this[_0x1b5479(0x212)][_0x1b5479(0x26b)]('following');}['_beIdle'](){var _0x5ef0cb=_0x3a3ab5,_0x24090e;this[_0x5ef0cb(0x212)][_0x5ef0cb(0x26b)](_0x5ef0cb(0x23c)),(_0x24090e=this['_commandDisposable'])==null||_0x24090e['dispose'](),this[_0x5ef0cb(0x29e)]=null;}[_0x3a3ab5(0x271)](){var _0x33fdef=_0x3a3ab5,_0x24110e;this[_0x33fdef(0x212)][_0x33fdef(0x26b)]('not-following'),(_0x24110e=this[_0x33fdef(0x29e)])==null||_0x24110e['dispose']();}['_handleOperation'](_0x152427){var _0x533f00=_0x3a3ab5;if([_0x533f00(0x289),_0x533f00(0x1f7),_0x533f00(0x1fe)][_0x533f00(0x25d)](this[_0x533f00(0x1f9)])||!_0x152427[_0x533f00(0x21f)]['presenter']||_0x152427[_0x533f00(0x21f)][_0x533f00(0x22c)]===this[_0x533f00(0x22d)][_0x533f00(0x280)]())return;this[_0x533f00(0x1f9)]===_0x533f00(0x23c)&&this['_startFollowing']();const _0x1bbebe=_0x152427[_0x533f00(0x21f)]['operations'];Object[_0x533f00(0x263)](_0x1bbebe)['forEach'](_0x53d45e=>{var _0x106819=_0x533f00;this[_0x106819(0x250)]['executeCommand'](_0x53d45e['id'],_0x53d45e[_0x106819(0x24e)]?JSON[_0x106819(0x270)](_0x53d45e[_0x106819(0x24e)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1974c0=_0x3a3ab5,_0x1a1f30;this['_status$'][_0x1974c0(0x26b)]('offline'),(_0x1a1f30=this['_commandDisposable'])==null||_0x1a1f30['dispose']();}['_handleOnline'](){var _0x4a8cdf=_0x3a3ab5;this[_0x4a8cdf(0x212)][_0x4a8cdf(0x26b)](_0x4a8cdf(0x23c)),this[_0x4a8cdf(0x265)]();}};C=Z([f(0x2,_0x20a225),f(0x3,_0x31e0bc(L)),f(0x4,_0xe4004e)],C);function ye(){var _0x2602b2=_0x3a3ab5;const _0x4f6605=_0x22f7b4(m),_0x4b75a9=_0x22f7b4(_0x1d8bf3),_0x14a563=_0x333831(()=>_0x4b75a9[_0x2602b2(0x249)](_0x448959[_0x2602b2(0x228)]),void 0x0,!0x1,[]),[_0x311711,_0x1c1275]=_0x35c6be(null),[_0xe1c506,_0x4b5b2d]=_0x35c6be(h[_0x2602b2(0x21b)]),_0x5208e5=_0x527ac8(null);return _0x307e8c(()=>(_0x14a563&&_0x4f6605[_0x2602b2(0x227)](_0x14a563[_0x2602b2(0x25e)]())[_0x2602b2(0x1e7)](_0x3c2390=>{var _0x22c91e=_0x2602b2;_0x1c1275(_0x3c2390),_0x5208e5[_0x22c91e(0x1e9)]=_0x3c2390[_0x22c91e(0x204)][_0x22c91e(0x278)](_0x135f93=>{_0x4b5b2d(_0x135f93);});}),()=>{var _0xcba6a0=_0x2602b2,_0x3f607e;(_0x3f607e=_0x5208e5['current'])==null||_0x3f607e['unsubscribe'](),_0x5208e5[_0xcba6a0(0x1e9)]=null;}),[_0x14a563,_0x4f6605]),_0x311711?_0x48343b(_0x48a603,{'align':_0x2602b2(0x202),'disabled':_0xe1c506===h[_0x2602b2(0x26e)],'className':_0x2602b2(0x2a0),'overlay':_0x48343b(Re,{'status':_0xe1c506,'coordinator':_0x311711}),'children':_0x48343b(_0x2602b2(0x261),{'className':_0x292a6e(_0x2602b2(0x253),{'univer-cursor-not-allowed':_0xe1c506===h[_0x2602b2(0x26e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xe1c506!==h[_0x2602b2(0x26e)]}),'type':_0x2602b2(0x261),'children':_0x48343b(B,{'className':'univer-size-4'})})}):null;}function Re(_0x523801){var _0x3ddf91=_0x3a3ab5;const {status:_0x46ea59,coordinator:_0x392981}=_0x523801;switch(_0x46ea59){case h[_0x3ddf91(0x21b)]:return _0x48343b(Pe,{'coordinator':_0x392981});case h[_0x3ddf91(0x281)]:return _0x48343b(Ae,{'coordinator':_0x392981});case h[_0x3ddf91(0x277)]:return _0x48343b(Te,{'coordinator':_0x392981});case h[_0x3ddf91(0x26e)]:return _0x48343b(Fe,{});case h[_0x3ddf91(0x260)]:return _0x48343b($e,{'coordinator':_0x392981});default:return null;}}function Pe(_0x1958b7){var _0x444df7=_0x3a3ab5;const {coordinator:_0x3b161c}=_0x1958b7;return _0x17d1e3(_0x564f17,{'children':[_0x48343b('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x444df7(0x28c)}),_0x48343b(_0x45739e,{'onClick':()=>_0x3b161c[_0x444df7(0x20d)](),'children':_0x444df7(0x233)})]});}function Ae(_0x3fe351){var _0x3d5330=_0x3a3ab5;const {coordinator:_0x536b50}=_0x3fe351;return _0x17d1e3(_0x564f17,{'children':[_0x48343b('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3d5330(0x27d)}),_0x48343b(_0x45739e,{'onClick':()=>_0x536b50['stopFollowing'](),'children':_0x3d5330(0x201)})]});}function Te(_0x18cba6){var _0x40d2b6=_0x3a3ab5;const {coordinator:_0x42a55a}=_0x18cba6;return _0x17d1e3(_0x564f17,{'children':[_0x48343b('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x48343b(_0x45739e,{'variant':_0x40d2b6(0x25f),'onClick':()=>_0x42a55a['startFollowing'](),'children':_0x40d2b6(0x1f0)})]});}function $e(_0x459ce4){var _0x3c9e2a=_0x3a3ab5;const {coordinator:_0x2dd625}=_0x459ce4;return _0x17d1e3(_0x564f17,{'children':[_0x48343b('div',{'className':_0x3c9e2a(0x236),'children':_0x3c9e2a(0x207)}),_0x48343b(_0x45739e,{'variant':_0x3c9e2a(0x1ef),'onClick':()=>_0x2dd625['stopPresenting'](),'children':_0x3c9e2a(0x24b)})]});}function Fe(){var _0x3da785=_0x3a3ab5;return _0x48343b(_0x564f17,{'children':_0x3da785(0x274)});}var He=Object['getOwnPropertyDescriptor'],je=(_0x45c1e0,_0x37cc54,_0xd47077,_0x45a740)=>{var _0x2e5ca8=_0x3a3ab5;for(var _0x27164b=_0x45a740>0x1?void 0x0:_0x45a740?He(_0x37cc54,_0xd47077):_0x37cc54,_0x39e300=_0x45c1e0[_0x2e5ca8(0x272)]-0x1,_0x2dc9c8;_0x39e300>=0x0;_0x39e300--)(_0x2dc9c8=_0x45c1e0[_0x39e300])&&(_0x27164b=_0x2dc9c8(_0x27164b)||_0x27164b);return _0x27164b;},T=(_0x985ef6,_0x13f95d)=>(_0x5bbd04,_0x4434de)=>_0x13f95d(_0x5bbd04,_0x4434de,_0x985ef6);let I=class extends _0x455fad{constructor(_0xe26504,_0x3e5707){var _0xef99f=_0x3a3ab5;super(),this[_0xef99f(0x296)]=_0xe26504,this[_0xef99f(0x294)]=_0x3e5707,this[_0xef99f(0x29c)]();}['_mountLiveShare'](){var _0x5eb341=_0x3a3ab5;this[_0x5eb341(0x290)](this['_uiPartsService'][_0x5eb341(0x225)](_0x491a32['HEADER_MENU'],()=>_0xfdf7a5(ye,this['_injector'])));}};I=je([T(0x0,_0x31e0bc(_0x4954bf)),T(0x1,_0x1a74a9)],I);const Ue=_0x3a3ab5(0x26f),$={};var Ve=Object[_0x3a3ab5(0x284)],Me=(_0x1edb73,_0x128dd4,_0x177edb,_0x5e684a)=>{var _0x10c76a=_0x3a3ab5;for(var _0x1620a3=_0x5e684a>0x1?void 0x0:_0x5e684a?Ve(_0x128dd4,_0x177edb):_0x128dd4,_0x3417ab=_0x1edb73[_0x10c76a(0x272)]-0x1,_0xa2df41;_0x3417ab>=0x0;_0x3417ab--)(_0xa2df41=_0x1edb73[_0x3417ab])&&(_0x1620a3=_0xa2df41(_0x1620a3)||_0x1620a3);return _0x1620a3;},ke=(_0x3e46ab,_0x26b1d0)=>(_0x978ea,_0x41c934)=>_0x26b1d0(_0x978ea,_0x41c934,_0x3e46ab);let b=class extends _0x455fad{constructor(_0x583213){var _0x61a4f2=_0x3a3ab5;super(),this[_0x61a4f2(0x247)]=_0x583213,this[_0x61a4f2(0x1ee)]();}[_0x3a3ab5(0x1ee)](){var _0x2bcd32=_0x3a3ab5;[_0x1f7b0d['id'],_0x18a32e['id'],_0x29613a['id']][_0x2bcd32(0x1e8)](_0x2b0cfb=>{var _0x37061a=_0x2bcd32;this['disposeWithMe'](this[_0x37061a(0x247)]['registerSharedOperation'](_0x2b0cfb));});}};b=Me([ke(0x0,_0x31e0bc(L))],b);var Ge=Object[_0x3a3ab5(0x287)],We=Object[_0x3a3ab5(0x284)],Ye=(_0x20f025,_0x3e8010,_0x3d806c)=>_0x3e8010 in _0x20f025?Ge(_0x20f025,_0x3e8010,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d806c}):_0x20f025[_0x3e8010]=_0x3d806c,Be=(_0x37a70b,_0x56f9cb,_0x21a264,_0x52977c)=>{var _0xe51feb=_0x3a3ab5;for(var _0x47f871=_0x52977c>0x1?void 0x0:_0x52977c?We(_0x56f9cb,_0x21a264):_0x56f9cb,_0x9e4f24=_0x37a70b[_0xe51feb(0x272)]-0x1,_0x163104;_0x9e4f24>=0x0;_0x9e4f24--)(_0x163104=_0x37a70b[_0x9e4f24])&&(_0x47f871=_0x163104(_0x47f871)||_0x47f871);return _0x47f871;},F=(_0x2776d2,_0x57c24c)=>(_0x35a774,_0x3778e9)=>_0x57c24c(_0x35a774,_0x3778e9,_0x2776d2),J=(_0x374172,_0x24ee68,_0x3d2041)=>Ye(_0x374172,typeof _0x24ee68!='symbol'?_0x24ee68+'':_0x24ee68,_0x3d2041);const Ze=_0x3a3ab5(0x26c);let O=class extends _0x9a98d2{constructor(_0x41e339=$,_0x21a247,_0x434bf0){var _0x30f619=_0x3a3ab5;super(),this[_0x30f619(0x245)]=_0x41e339,this['_injector']=_0x21a247,this[_0x30f619(0x27f)]=_0x434bf0;const {..._0x4a4811}=_0x19d8b5({},$,this['_config']);this[_0x30f619(0x27f)][_0x30f619(0x267)](Ue,_0x4a4811);}[_0x3a3ab5(0x251)](){var _0x246281=_0x3a3ab5;_0x204a17(this[_0x246281(0x296)],_0x24b91d([[L],[m],[b],[I]],this[_0x246281(0x245)][_0x246281(0x257)])),_0x8d2874(this['_injector'],[[b]]);}[_0x3a3ab5(0x1fa)](){var _0x106169=_0x3a3ab5;_0x8d2874(this[_0x106169(0x296)],[[I]]);}};J(O,_0x3a3ab5(0x24d),_0x448959[_0x3a3ab5(0x276)]),J(O,_0x3a3ab5(0x242),Ze),O=Be([_0x3d5d54(_0x2bd614),F(0x1,_0x31e0bc(_0x4954bf)),F(0x2,_0x20a225)],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 _0x46038d=_0x56cc;(function(_0x32b835,_0x310c8e){var _0x30b7c8=_0x56cc,_0x11dcfe=_0x32b835();while(!![]){try{var _0x10079b=parseInt(_0x30b7c8(0x1a6))/0x1*(parseInt(_0x30b7c8(0x14b))/0x2)+parseInt(_0x30b7c8(0x136))/0x3*(-parseInt(_0x30b7c8(0x1ce))/0x4)+-parseInt(_0x30b7c8(0x1cb))/0x5+-parseInt(_0x30b7c8(0x16c))/0x6+parseInt(_0x30b7c8(0x157))/0x7*(parseInt(_0x30b7c8(0x1ac))/0x8)+-parseInt(_0x30b7c8(0x1ab))/0x9*(parseInt(_0x30b7c8(0x15f))/0xa)+-parseInt(_0x30b7c8(0x18f))/0xb*(-parseInt(_0x30b7c8(0x1b8))/0xc);if(_0x10079b===_0x310c8e)break;else _0x11dcfe['push'](_0x11dcfe['shift']());}catch(_0x525e4e){_0x11dcfe['push'](_0x11dcfe['shift']());}}}(_0x59ee,0x7ad8f));var q=Object[_0x46038d(0x14a)],z=(_0xa4193b,_0x11705e,_0x5d77fd)=>_0x11705e in _0xa4193b?q(_0xa4193b,_0x11705e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d77fd}):_0xa4193b[_0x11705e]=_0x5d77fd,d=(_0x1579fd,_0x243f1f,_0x5a510f)=>z(_0x1579fd,typeof _0x243f1f!='symbol'?_0x243f1f+'':_0x243f1f,_0x5a510f);import{Disposable as _0x5297a8,toDisposable as _0x21eeda,IUniverInstanceService as _0x264824,Inject as _0x5141d7,Injector as _0x500633,IConfigService as _0x56bcd6,ICommandService as _0x4e241a,RxDisposable as _0x37cda6,UniverInstanceType as _0x2ea0be,DisposableCollection as _0x2f9baf,CommandType as _0x3d2a92,DependentOn as _0x2a7516,Plugin as _0x32264a,merge as _0x5bd737,registerDependencies as _0x80e3e1,mergeOverrideWithDependencies as _0x591948,touchDependencies as _0x1eb964}from'@univerjs/core';import{useDependency as _0x1ed5e9,useObservable as _0x1b6edd,IUIPartsService as _0x116204,BuiltInUIPart as _0x3c4546,connectInjector as _0x1faee5}from'@univerjs/ui';import{jsx as _0x4d3611,jsxs as _0x544f05,Fragment as _0x53709c}from'react/jsx-runtime';import{Dropdown as _0x14dc85,clsx as _0x274478,Button as _0xba967a}from'@univerjs/design';import{forwardRef as _0x3a6c03,useRef as _0x2512ed,createElement as _0x2927ca,useState as _0x5c6e4a,useEffect as _0x38ba63}from'react';import{CollaborationEvent as _0x15f1f2,parseProtocolChangeset as _0x35ac29}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x328019,SessionStatus as _0x30d669,UniverCollaborationClientPlugin as _0x575a8b}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xa031f1,SetWorksheetActiveOperation as _0x3f58e7}from'@univerjs/sheets';import{BehaviorSubject as _0x281e24,Subject as _0x19e619}from'rxjs';import{takeUntil as _0x206055,throttleTime as _0x4e9454}from'rxjs/operators';import{SetZoomRatioOperation as _0x20574e,SetScrollOperation as _0x281353}from'@univerjs/sheets-ui';var c=function(){var _0x40a35c=_0x46038d;return c=Object[_0x40a35c(0x145)]||function(_0x5f2f20){var _0x34ba31=_0x40a35c;for(var _0x77fb2e,_0xf5f163=0x1,_0x251072=arguments[_0x34ba31(0x140)];_0xf5f163<_0x251072;_0xf5f163++){_0x77fb2e=arguments[_0xf5f163];for(var _0x405e39 in _0x77fb2e)Object[_0x34ba31(0x146)]['hasOwnProperty'][_0x34ba31(0x12a)](_0x77fb2e,_0x405e39)&&(_0x5f2f20[_0x405e39]=_0x77fb2e[_0x405e39]);}return _0x5f2f20;},c[_0x40a35c(0x169)](this,arguments);},Oe=function(_0xc563a4,_0x12c147){var _0x368d86=_0x46038d,_0x9a4fa1={};for(var _0x22e239 in _0xc563a4)Object[_0x368d86(0x146)][_0x368d86(0x1af)][_0x368d86(0x12a)](_0xc563a4,_0x22e239)&&_0x12c147[_0x368d86(0x14c)](_0x22e239)<0x0&&(_0x9a4fa1[_0x22e239]=_0xc563a4[_0x22e239]);if(_0xc563a4!=null&&typeof Object[_0x368d86(0x154)]==_0x368d86(0x1b6)){for(var _0x3f996a=0x0,_0x22e239=Object['getOwnPropertySymbols'](_0xc563a4);_0x3f996a<_0x22e239[_0x368d86(0x140)];_0x3f996a++)_0x12c147['indexOf'](_0x22e239[_0x3f996a])<0x0&&Object[_0x368d86(0x146)][_0x368d86(0x1b7)][_0x368d86(0x12a)](_0xc563a4,_0x22e239[_0x3f996a])&&(_0x9a4fa1[_0x22e239[_0x3f996a]]=_0xc563a4[_0x22e239[_0x3f996a]]);}return _0x9a4fa1;},W=_0x3a6c03(function(_0x198e11,_0x3fb0fa){var _0x560f95=_0x46038d,_0x1f9d01=_0x198e11[_0x560f95(0x176)],_0x18676b=_0x198e11['id'],_0x13e9fa=_0x198e11[_0x560f95(0x14d)],_0x4c7267=_0x198e11[_0x560f95(0x18e)],_0x447453=Oe(_0x198e11,[_0x560f95(0x176),'id',_0x560f95(0x14d),'extend']),_0x319aac=_0x560f95(0x1c6)['concat'](_0x18676b,'\x20')[_0x560f95(0x1c7)](_0x13e9fa||'')[_0x560f95(0x1a8)](),_0x1f309a=_0x2512ed('_'[_0x560f95(0x1c7)](Ne()));return Y(_0x1f9d01,''[_0x560f95(0x1c7)](_0x18676b),{'defIds':_0x1f9d01[_0x560f95(0x1b5)],'idSuffix':_0x1f309a[_0x560f95(0x150)]},c({'ref':_0x3fb0fa,'className':_0x319aac},_0x447453),_0x4c7267);});function Y(_0x5bc17c,_0x19b47d,_0x20f332,_0x21ff9d,_0x3de247){var _0x57397a=_0x46038d;return _0x2927ca(_0x5bc17c[_0x57397a(0x18c)],c(c({'key':_0x19b47d},Ee(_0x5bc17c,_0x20f332,_0x3de247)),_0x21ff9d),(we(_0x5bc17c,_0x20f332)['children']||[])['map'](function(_0x3657f9,_0x467312){var _0x58639e=_0x57397a;return Y(_0x3657f9,''['concat'](_0x19b47d,'-')[_0x58639e(0x1c7)](_0x5bc17c[_0x58639e(0x18c)],'-')[_0x58639e(0x1c7)](_0x467312),_0x20f332,void 0x0,_0x3de247);}));}function Ee(_0x173a97,_0x1ebce8,_0x26532c){var _0x450367=_0x46038d,_0x290e22=c({},_0x173a97[_0x450367(0x14f)]);_0x26532c!=null&&_0x26532c[_0x450367(0x1a3)]&&_0x290e22[_0x450367(0x135)]==='colorChannel1'&&(_0x290e22['fill']=_0x26532c[_0x450367(0x1a3)]),_0x173a97['tag']===_0x450367(0x178)&&_0x290e22['id']&&(_0x290e22['id']=_0x290e22['id']+_0x1ebce8[_0x450367(0x1d5)]),Object[_0x450367(0x131)](_0x290e22)[_0x450367(0x1a5)](function(_0x3ba12f){var _0x5cbe16=_0x450367,_0x53d528=_0x3ba12f[0x0],_0x2913e5=_0x3ba12f[0x1];_0x53d528===_0x5cbe16(0x178)&&typeof _0x2913e5==_0x5cbe16(0x148)&&(_0x290e22[_0x53d528]=_0x2913e5['replace'](/url\(#(.*)\)/,_0x5cbe16(0x1ca)[_0x5cbe16(0x1c7)](_0x1ebce8[_0x5cbe16(0x1d5)],')')));});var _0x568a3d=_0x1ebce8['defIds'];return!_0x568a3d||_0x568a3d[_0x450367(0x140)]===0x0||(_0x173a97[_0x450367(0x18c)]===_0x450367(0x16b)&&_0x290e22[_0x450367(0x124)]&&(_0x290e22['xlink:href']=_0x290e22['xlink:href']+_0x1ebce8[_0x450367(0x1d5)]),Object[_0x450367(0x131)](_0x290e22)[_0x450367(0x1a5)](function(_0x5a1818){var _0x22d9f8=_0x450367,_0x4bf852=_0x5a1818[0x0],_0x274556=_0x5a1818[0x1];typeof _0x274556==_0x22d9f8(0x148)&&(_0x290e22[_0x4bf852]=_0x274556[_0x22d9f8(0x170)](/url\(#(.*)\)/,_0x22d9f8(0x1ca)[_0x22d9f8(0x1c7)](_0x1ebce8['idSuffix'],')')));})),_0x290e22;}function we(_0x54f6d0,_0x3f0cb9){var _0x5ae850=_0x46038d,_0x43b148,_0x1cf113=_0x3f0cb9['defIds'];return!_0x1cf113||_0x1cf113['length']===0x0?_0x54f6d0:_0x54f6d0[_0x5ae850(0x18c)]===_0x5ae850(0x142)&&(!((_0x43b148=_0x54f6d0[_0x5ae850(0x1c1)])===null||_0x43b148===void 0x0)&&_0x43b148['length'])?c(c({},_0x54f6d0),{'children':_0x54f6d0[_0x5ae850(0x1c1)][_0x5ae850(0x1bc)](function(_0x499a41){var _0x4e2e54=_0x5ae850;return typeof _0x499a41['attrs']['id']==_0x4e2e54(0x148)&&_0x1cf113&&_0x1cf113[_0x4e2e54(0x147)](_0x499a41['attrs']['id'])?c(c({},_0x499a41),{'attrs':c(c({},_0x499a41['attrs']),{'id':_0x499a41[_0x4e2e54(0x14f)]['id']+_0x3f0cb9[_0x4e2e54(0x1d5)]})}):_0x499a41;})}):_0x54f6d0;}function Ne(){var _0x51d0de=_0x46038d;return Math[_0x51d0de(0x189)]()[_0x51d0de(0x196)](0x24)[_0x51d0de(0x1d3)](0x2,0x8);}W[_0x46038d(0x188)]=_0x46038d(0x1a4);var Ce={'tag':_0x46038d(0x195),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x46038d(0x137),'viewBox':_0x46038d(0x1bf),'width':_0x46038d(0x185),'height':_0x46038d(0x185)},'children':[{'tag':_0x46038d(0x1be),'attrs':{'fill':'currentColor','d':_0x46038d(0x16a)}},{'tag':_0x46038d(0x1be),'attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x46038d(0x164),'clipRule':_0x46038d(0x164)}}]},B=_0x3a6c03(function(_0x66a223,_0x32891f){var _0x4d7623=_0x46038d;return _0x2927ca(W,Object[_0x4d7623(0x145)]({},_0x66a223,{'id':_0x4d7623(0x130),'ref':_0x32891f,'icon':Ce}));});B[_0x46038d(0x188)]=_0x46038d(0x177);class L extends _0x5297a8{constructor(){var _0x5bf7a6=_0x46038d;super(...arguments),d(this,_0x5bf7a6(0x172),new Set()),d(this,_0x5bf7a6(0x18b),new Set());}[_0x46038d(0x1c9)](_0x55d3a3){var _0x4c3213=_0x46038d;return this['_sharedOperations'][_0x4c3213(0x1ad)](_0x55d3a3),_0x21eeda(()=>this[_0x4c3213(0x172)][_0x4c3213(0x199)](_0x55d3a3));}[_0x46038d(0x17c)](_0x4136d3){var _0x4ecb62=_0x46038d;return this[_0x4ecb62(0x18b)]['add'](_0x4136d3),_0x21eeda(()=>this[_0x4ecb62(0x18b)]['delete'](_0x4136d3));}[_0x46038d(0x163)](_0x514979){var _0x37998f=_0x46038d;return this['_sharedOperations'][_0x37998f(0x159)](_0x514979);}['getInitialStates'](_0x441067){var _0x2a97fb=_0x46038d;return Array['from'](this[_0x2a97fb(0x18b)])[_0x2a97fb(0x1bc)](_0x467ac5=>_0x467ac5(_0x441067));}}var De=Object[_0x46038d(0x1c2)],Z=(_0x30d8c5,_0x5cf7dc,_0x4098cf,_0x1eeaa2)=>{var _0x478fcf=_0x46038d;for(var _0x3e23d7=_0x1eeaa2>0x1?void 0x0:_0x1eeaa2?De(_0x5cf7dc,_0x4098cf):_0x5cf7dc,_0x54de7e=_0x30d8c5[_0x478fcf(0x140)]-0x1,_0x5f51fd;_0x54de7e>=0x0;_0x54de7e--)(_0x5f51fd=_0x30d8c5[_0x54de7e])&&(_0x3e23d7=_0x5f51fd(_0x3e23d7)||_0x3e23d7);return _0x3e23d7;},f=(_0x38f8ee,_0x35053a)=>(_0x5895ef,_0x4c1e91)=>_0x35053a(_0x5895ef,_0x4c1e91,_0x38f8ee);let m=class extends _0x37cda6{constructor(_0x4cd44b,_0x317003,_0x3af16c){var _0x538078=_0x46038d;super(),d(this,_0x538078(0x1d2),new Map()),(this[_0x538078(0x181)]=_0x4cd44b,this[_0x538078(0x1c3)]=_0x317003,this[_0x538078(0x160)]=_0x3af16c,this[_0x538078(0x16d)]());}async['getLiveShareCoordinator'](_0x17de10){var _0x47d58e=_0x46038d;return this[_0x47d58e(0x1d2)][_0x47d58e(0x159)](_0x17de10)||await this['_startLiveShareCoordinator'](_0x17de10),this['_entities'][_0x47d58e(0x190)](_0x17de10);}[_0x46038d(0x16d)](){var _0x275bbd=_0x46038d;this[_0x275bbd(0x181)][_0x275bbd(0x149)](_0x2ea0be[_0x275bbd(0x18d)])['pipe'](_0x206055(this[_0x275bbd(0x1a9)]))['subscribe'](async _0x36538a=>{var _0x15fbc8=_0x275bbd;const _0x3e17c7=_0x36538a[_0x15fbc8(0x17a)]();this['_entities'][_0x15fbc8(0x159)](_0x3e17c7)||this[_0x15fbc8(0x187)](_0x3e17c7);}),this[_0x275bbd(0x181)][_0x275bbd(0x153)](_0x2ea0be[_0x275bbd(0x18d)])['pipe'](_0x206055(this[_0x275bbd(0x1a9)]))[_0x275bbd(0x174)](_0x44f37f=>{var _0x8d98ae=_0x275bbd;const _0x10b37a=_0x44f37f[_0x8d98ae(0x17a)](),_0x5cd06c=this['_entities'][_0x8d98ae(0x190)](_0x10b37a);_0x5cd06c==null||_0x5cd06c[_0x8d98ae(0x17e)]();});}async[_0x46038d(0x187)](_0x166989){var _0x13855c=_0x46038d;const _0x1100c3=await this[_0x13855c(0x160)][_0x13855c(0x198)](_0x166989),_0x311efe=this[_0x13855c(0x1c3)][_0x13855c(0x125)](C,_0x166989,_0x1100c3);return _0x311efe['init'](),this[_0x13855c(0x1d2)][_0x13855c(0x1b4)](_0x166989,_0x311efe),_0x311efe;}};m=Z([f(0x0,_0x264824),f(0x1,_0x5141d7(_0x500633)),f(0x2,_0x5141d7(_0x328019))],m);var h=(_0x49cb43=>(_0x49cb43[_0x46038d(0x132)]=_0x46038d(0x138),_0x49cb43[_0x46038d(0x1c0)]='idle',_0x49cb43[_0x46038d(0x141)]=_0x46038d(0x1b9),_0x49cb43[_0x46038d(0x12c)]=_0x46038d(0x17b),_0x49cb43['PRESENTING']='presenting',_0x49cb43))(h||{});const xe=_0x46038d(0x13d),Le=0xc8;let C=class extends _0x37cda6{constructor(_0x38e739,_0x20fdf5,_0x47633b,_0x387e7e,_0x4c558c){var _0x13d13e=_0x46038d;super(),d(this,'_status$',new _0x281e24(_0x13d13e(0x14e))),d(this,_0x13d13e(0x12f),this['_status$'][_0x13d13e(0x1d1)]()),d(this,_0x13d13e(0x16d),!0x1),d(this,_0x13d13e(0x12d),null),d(this,_0x13d13e(0x15a),null),(this[_0x13d13e(0x1c4)]=_0x38e739,this['_collabSession']=_0x20fdf5,this['_configService']=_0x47633b,this['_liveShareService']=_0x387e7e,this['_commandService']=_0x4c558c);}get[_0x46038d(0x139)](){var _0x1974b7=_0x46038d;return this['_status$'][_0x1974b7(0x15d)]();}[_0x46038d(0x17e)](){var _0x563ace=_0x46038d,_0x13b46b;(_0x13b46b=this[_0x563ace(0x12d)])==null||_0x13b46b[_0x563ace(0x17e)](),this[_0x563ace(0x13c)][_0x563ace(0x19e)](_0x563ace(0x14e)),this[_0x563ace(0x13c)][_0x563ace(0x179)]();}[_0x46038d(0x134)](){var _0x3f5163=_0x46038d;this['_init']||(this[_0x3f5163(0x16d)]=!0x0,this['_collabSession'][_0x3f5163(0x12e)][_0x3f5163(0x133)](_0x206055(this[_0x3f5163(0x1a9)]))[_0x3f5163(0x174)](_0x5b0c56=>{var _0x2af5a1=_0x3f5163;switch(_0x5b0c56){case _0x30d669[_0x2af5a1(0x132)]:this[_0x2af5a1(0x167)]();break;case _0x30d669[_0x2af5a1(0x184)]:this[_0x2af5a1(0x15c)]();break;}}),this[_0x3f5163(0x182)][_0x3f5163(0x19d)]['pipe'](_0x206055(this[_0x3f5163(0x1a9)]))[_0x3f5163(0x174)](_0x165939=>{var _0x6ec32c=_0x3f5163;const {eventID:_0x521b08}=_0x165939;switch(_0x521b08){case _0x15f1f2['LIVESHARE_NEW_HOST']:this[_0x6ec32c(0x143)](_0x165939);break;case _0x15f1f2[_0x6ec32c(0x19b)]:this[_0x6ec32c(0x13f)](_0x165939);break;case _0x15f1f2[_0x6ec32c(0x186)]:this['_handleTerminate']();break;case _0x15f1f2['NEW_CHANGESETS']:this[_0x6ec32c(0x155)](_0x165939);break;}}));}['tryStartPresenting'](){var _0x517e0c=_0x46038d;this[_0x517e0c(0x182)]['send']({'eventID':_0x15f1f2[_0x517e0c(0x197)],'data':{'unitID':this[_0x517e0c(0x1c4)],'userID':this[_0x517e0c(0x182)][_0x517e0c(0x161)]()}},this[_0x517e0c(0x1c4)]);}[_0x46038d(0x175)](){var _0x2d4888=_0x46038d;this[_0x2d4888(0x139)]===_0x2d4888(0x1cc)&&(this[_0x2d4888(0x13c)][_0x2d4888(0x19e)](_0x2d4888(0x14e)),this[_0x2d4888(0x182)][_0x2d4888(0x1ba)]({'eventID':_0x15f1f2[_0x2d4888(0x186)],'data':{'unitID':this['_unitID']}},this[_0x2d4888(0x1c4)]));}[_0x46038d(0x13b)](){var _0x79c3e2=_0x46038d;this['_status']===_0x79c3e2(0x17b)&&(this['_status$'][_0x79c3e2(0x19e)](_0x79c3e2(0x1b9)),this[_0x79c3e2(0x15b)]());}[_0x46038d(0x19a)](){var _0x3ecb06=_0x46038d;this[_0x3ecb06(0x139)]==='following'&&this[_0x3ecb06(0x166)]();}['_handleNewHost'](_0x244377){var _0x49eb3a=_0x46038d;const {presenter:_0x4e3d66}=_0x244377[_0x49eb3a(0x127)],_0x39b927=this[_0x49eb3a(0x182)][_0x49eb3a(0x161)]();this[_0x49eb3a(0x15a)]=_0x4e3d66,_0x4e3d66===_0x39b927?(this[_0x49eb3a(0x166)](),this[_0x49eb3a(0x18a)]()):this['_status']!==_0x49eb3a(0x17b)&&(this[_0x49eb3a(0x168)](),this[_0x49eb3a(0x15b)]());}[_0x46038d(0x1bd)](){var _0x36fe75=_0x46038d;const _0x35574f={'eventID':_0x15f1f2[_0x36fe75(0x193)]};this['_collabSession'][_0x36fe75(0x1ba)](_0x35574f,this['_unitID']);}['_handleTerminate'](){var _0x168dfc=_0x46038d;this[_0x168dfc(0x15a)]=null,this[_0x168dfc(0x139)]!==_0x168dfc(0x1cc)&&this[_0x168dfc(0x191)]();}[_0x46038d(0x155)](_0x4de4d0){var _0x57a245=_0x46038d;if(this[_0x57a245(0x139)]===_0x57a245(0x1b9)&&this['_presenter']===_0x4de4d0['data'][_0x57a245(0x129)]){const _0x518d24=_0x35ac29(_0x4de4d0['data'])['mutations']['reverse']()[_0x57a245(0x192)](_0x46cb11=>_0x46cb11['id']===_0xa031f1['id']);if(_0x518d24){const _0x967673=_0x518d24[_0x57a245(0x183)]['unitId'],_0x230633=_0x518d24[_0x57a245(0x183)]['sheet']['id'];setTimeout(()=>{var _0xb91d39=_0x57a245;this[_0xb91d39(0x151)][_0xb91d39(0x1aa)](_0x3f58e7['id'],{'unitId':_0x967673,'subUnitId':_0x230633},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x597cfb=_0x46038d;this['_status$'][_0x597cfb(0x19e)](_0x597cfb(0x1cc));const _0xe1ea9d=new Map(),_0x2175f0=this[_0x597cfb(0x12d)]=new _0x2f9baf();_0x2175f0[_0x597cfb(0x1ad)](_0x21eeda(()=>{var _0x43b1f3=_0x597cfb;_0xe1ea9d['forEach'](_0xd07928=>_0xd07928[_0x43b1f3(0x179)]()),_0xe1ea9d['clear']();})),_0x2175f0[_0x597cfb(0x1ad)](this[_0x597cfb(0x151)][_0x597cfb(0x15e)](_0x51e261=>{var _0x3933b9=_0x597cfb,_0xd459ed;if(_0x51e261[_0x3933b9(0x165)]!==_0x3d2a92[_0x3933b9(0x17d)]||!this[_0x3933b9(0x1cd)]['shouldShareOperation'](_0x51e261['id']))return;const {id:_0x43ff61}=_0x51e261;let _0x379e34;_0xe1ea9d[_0x3933b9(0x159)](_0x43ff61)?_0x379e34=_0xe1ea9d[_0x3933b9(0x190)](_0x43ff61):(_0x379e34=new _0x19e619(),_0xe1ea9d['set'](_0x43ff61,_0x379e34),_0x379e34[_0x3933b9(0x133)](_0x4e9454((_0xd459ed=this['_configService'][_0x3933b9(0x126)](xe))!=null?_0xd459ed:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3933b9(0x174)](_0x2d0b7d=>{var _0x3d29c5=_0x3933b9;this[_0x3d29c5(0x182)][_0x3d29c5(0x1ba)]({'eventID':_0x15f1f2[_0x3d29c5(0x19b)],'data':{'unitID':this['_unitID'],'operations':{[_0x2d0b7d['id']]:{'id':_0x2d0b7d['id'],'params':JSON[_0x3d29c5(0x1c5)](_0x2d0b7d['params'])}}}},this[_0x3d29c5(0x1c4)]);})),_0x379e34[_0x3933b9(0x19e)](_0x51e261);})),this[_0x597cfb(0x1cd)]['getInitialStates'](this[_0x597cfb(0x1c4)])['forEach'](_0x1a93e0=>this[_0x597cfb(0x182)]['send']({'eventID':_0x15f1f2[_0x597cfb(0x19b)],'data':{'unitID':this['_unitID'],'operations':{[_0x1a93e0['id']]:{'id':_0x1a93e0['id'],'params':JSON[_0x597cfb(0x1c5)](_0x1a93e0['params'])}}}},this[_0x597cfb(0x1c4)]));}['_stopPresenting'](){var _0xda884b=_0x46038d,_0x71221;this[_0xda884b(0x13c)][_0xda884b(0x19e)](_0xda884b(0x14e)),(_0x71221=this['_commandDisposable'])==null||_0x71221[_0xda884b(0x17e)](),this[_0xda884b(0x12d)]=null;}[_0x46038d(0x15b)](){var _0x1023bb=_0x46038d,_0x3aaa06;(_0x3aaa06=this[_0x1023bb(0x12d)])==null||_0x3aaa06[_0x1023bb(0x17e)](),this[_0x1023bb(0x13c)][_0x1023bb(0x19e)](_0x1023bb(0x1b9));}[_0x46038d(0x191)](){var _0x2c352f=_0x46038d,_0x4f5752;this['_status$'][_0x2c352f(0x19e)](_0x2c352f(0x14e)),(_0x4f5752=this[_0x2c352f(0x12d)])==null||_0x4f5752[_0x2c352f(0x17e)](),this[_0x2c352f(0x12d)]=null;}['_stopFollowing'](){var _0x36a258=_0x46038d,_0x4e8025;this[_0x36a258(0x13c)][_0x36a258(0x19e)](_0x36a258(0x17b)),(_0x4e8025=this[_0x36a258(0x12d)])==null||_0x4e8025['dispose']();}[_0x46038d(0x13f)](_0x12e47d){var _0x39b841=_0x46038d;if(['presenting',_0x39b841(0x17b),_0x39b841(0x138)][_0x39b841(0x147)](this[_0x39b841(0x139)])||!_0x12e47d[_0x39b841(0x127)][_0x39b841(0x162)]||_0x12e47d['data'][_0x39b841(0x162)]===this['_collabSession'][_0x39b841(0x161)]())return;this['_status']===_0x39b841(0x14e)&&this['_startFollowing']();const _0x112384=_0x12e47d['data']['operations'];Object['values'](_0x112384)[_0x39b841(0x1a5)](_0x57935d=>{var _0x373fe3=_0x39b841;this[_0x373fe3(0x151)]['executeCommand'](_0x57935d['id'],_0x57935d[_0x373fe3(0x183)]?JSON[_0x373fe3(0x156)](_0x57935d[_0x373fe3(0x183)]):null,{'fromCollab':!0x0});});}[_0x46038d(0x167)](){var _0x5fd377=_0x46038d,_0x39db63;this[_0x5fd377(0x13c)][_0x5fd377(0x19e)](_0x5fd377(0x138)),(_0x39db63=this[_0x5fd377(0x12d)])==null||_0x39db63[_0x5fd377(0x17e)]();}[_0x46038d(0x15c)](){var _0x15fbfc=_0x46038d;this[_0x15fbfc(0x13c)][_0x15fbfc(0x19e)](_0x15fbfc(0x14e)),this[_0x15fbfc(0x1bd)]();}};C=Z([f(0x2,_0x56bcd6),f(0x3,_0x5141d7(L)),f(0x4,_0x4e241a)],C);function ye(){var _0x391051=_0x46038d;const _0x251bd3=_0x1ed5e9(m),_0x93ba4=_0x1ed5e9(_0x264824),_0xca3fa6=_0x1b6edd(()=>_0x93ba4[_0x391051(0x13e)](_0x2ea0be[_0x391051(0x18d)]),void 0x0,!0x1,[]),[_0x462480,_0x2f057c]=_0x5c6e4a(null),[_0x203e72,_0x2eeb67]=_0x5c6e4a(h['IDLE']),_0x2ebb6c=_0x2512ed(null);return _0x38ba63(()=>(_0xca3fa6&&_0x251bd3[_0x391051(0x1c8)](_0xca3fa6[_0x391051(0x17a)]())['then'](_0x499646=>{var _0x308294=_0x391051;_0x2f057c(_0x499646),_0x2ebb6c[_0x308294(0x150)]=_0x499646[_0x308294(0x12f)]['subscribe'](_0x20bba9=>{_0x2eeb67(_0x20bba9);});}),()=>{var _0x397577=_0x391051,_0x2dc427;(_0x2dc427=_0x2ebb6c[_0x397577(0x150)])==null||_0x2dc427[_0x397577(0x16e)](),_0x2ebb6c[_0x397577(0x150)]=null;}),[_0xca3fa6,_0x251bd3]),_0x462480?_0x4d3611(_0x14dc85,{'align':_0x391051(0x13a),'disabled':_0x203e72===h[_0x391051(0x132)],'className':_0x391051(0x1bb),'overlay':_0x4d3611(Re,{'status':_0x203e72,'coordinator':_0x462480}),'children':_0x4d3611(_0x391051(0x173),{'className':_0x274478(_0x391051(0x17f),{'univer-cursor-not-allowed':_0x203e72===h[_0x391051(0x132)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x203e72!==h[_0x391051(0x132)]}),'type':_0x391051(0x173),'children':_0x4d3611(B,{'className':_0x391051(0x1b1)})})}):null;}function Re(_0x332dd0){var _0x28c29a=_0x46038d;const {status:_0x38be21,coordinator:_0x3b1d39}=_0x332dd0;switch(_0x38be21){case h[_0x28c29a(0x1c0)]:return _0x4d3611(Pe,{'coordinator':_0x3b1d39});case h[_0x28c29a(0x141)]:return _0x4d3611(Ae,{'coordinator':_0x3b1d39});case h['NOT_FOLLOWING']:return _0x4d3611(Te,{'coordinator':_0x3b1d39});case h[_0x28c29a(0x132)]:return _0x4d3611(Fe,{});case h[_0x28c29a(0x1a7)]:return _0x4d3611($e,{'coordinator':_0x3b1d39});default:return null;}}function Pe(_0x29d89f){var _0x5ded49=_0x46038d;const {coordinator:_0x326da3}=_0x29d89f;return _0x544f05(_0x53709c,{'children':[_0x4d3611(_0x5ded49(0x171),{'className':_0x5ded49(0x19c),'children':_0x5ded49(0x128)}),_0x4d3611(_0xba967a,{'onClick':()=>_0x326da3[_0x5ded49(0x1a2)](),'children':_0x5ded49(0x1a1)})]});}function Ae(_0x336ae7){var _0x19f26b=_0x46038d;const {coordinator:_0x110720}=_0x336ae7;return _0x544f05(_0x53709c,{'children':[_0x4d3611(_0x19f26b(0x171),{'className':_0x19f26b(0x19c),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x4d3611(_0xba967a,{'onClick':()=>_0x110720['stopFollowing'](),'children':_0x19f26b(0x19f)})]});}function Te(_0x69595e){var _0x58f049=_0x46038d;const {coordinator:_0x3c241a}=_0x69595e;return _0x544f05(_0x53709c,{'children':[_0x4d3611(_0x58f049(0x171),{'className':_0x58f049(0x19c),'children':_0x58f049(0x1cf)}),_0x4d3611(_0xba967a,{'variant':_0x58f049(0x194),'onClick':()=>_0x3c241a['startFollowing'](),'children':'Start\x20following'})]});}function $e(_0x1ad982){var _0x47f3ab=_0x46038d;const {coordinator:_0x3bae81}=_0x1ad982;return _0x544f05(_0x53709c,{'children':[_0x4d3611('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x47f3ab(0x12b)}),_0x4d3611(_0xba967a,{'variant':_0x47f3ab(0x1a0),'onClick':()=>_0x3bae81[_0x47f3ab(0x175)](),'children':_0x47f3ab(0x1d0)})]});}function Fe(){var _0x13b171=_0x46038d;return _0x4d3611(_0x53709c,{'children':_0x13b171(0x1b0)});}var He=Object[_0x46038d(0x1c2)],je=(_0x41ea6f,_0x3bffc9,_0x198666,_0x3a32b6)=>{var _0x44f147=_0x46038d;for(var _0x15845a=_0x3a32b6>0x1?void 0x0:_0x3a32b6?He(_0x3bffc9,_0x198666):_0x3bffc9,_0xa79990=_0x41ea6f[_0x44f147(0x140)]-0x1,_0x47873f;_0xa79990>=0x0;_0xa79990--)(_0x47873f=_0x41ea6f[_0xa79990])&&(_0x15845a=_0x47873f(_0x15845a)||_0x15845a);return _0x15845a;},T=(_0x5de6a0,_0x16b9d2)=>(_0x2ca8d3,_0x2200d3)=>_0x16b9d2(_0x2ca8d3,_0x2200d3,_0x5de6a0);let I=class extends _0x5297a8{constructor(_0x544cce,_0x48f9fa){var _0x46b47b=_0x46038d;super(),this[_0x46b47b(0x1c3)]=_0x544cce,this[_0x46b47b(0x1d4)]=_0x48f9fa,this[_0x46b47b(0x1ae)]();}[_0x46038d(0x1ae)](){var _0x75cc06=_0x46038d;this[_0x75cc06(0x1b2)](this[_0x75cc06(0x1d4)]['registerComponent'](_0x3c4546['HEADER_MENU'],()=>_0x1faee5(ye,this[_0x75cc06(0x1c3)])));}};I=je([T(0x0,_0x5141d7(_0x500633)),T(0x1,_0x116204)],I);const Ue=_0x46038d(0x158),$={};var Ve=Object[_0x46038d(0x1c2)],Me=(_0x2fd11b,_0x59c885,_0x47f082,_0x161e4f)=>{for(var _0x12d86b=_0x161e4f>0x1?void 0x0:_0x161e4f?Ve(_0x59c885,_0x47f082):_0x59c885,_0x2355cb=_0x2fd11b['length']-0x1,_0x4ac0f4;_0x2355cb>=0x0;_0x2355cb--)(_0x4ac0f4=_0x2fd11b[_0x2355cb])&&(_0x12d86b=_0x4ac0f4(_0x12d86b)||_0x12d86b);return _0x12d86b;},ke=(_0x429334,_0x594bb5)=>(_0x553f06,_0x34dd66)=>_0x594bb5(_0x553f06,_0x34dd66,_0x429334);function _0x59ee(){var _0x42c55e=['_startPresenting','_reporters','tag','UNIVER_SHEET','extend','4599133xSpqIs','get','_beIdle','find','LIVESHARE_FETCH_OPERATIONS','text','svg','toString','LIVESHARE_REQUEST_HOST','requireSession','delete','stopFollowing','LIVESHARE_OPERATION','univer-mb-3\x20univer-w-full\x20univer-text-sm','event$','next','Stop\x20following','default','Start','tryStartPresenting','colorChannel1','UniverIcon','forEach','441677FnIviB','PRESENTING','trim','dispose$','executeCommand','7093377EOxQmD','5211376fvFWHA','add','_mountLiveShare','hasOwnProperty','You\x27are\x20offline.','univer-size-4','disposeWithMe','_configService','set','defIds','function','propertyIsEnumerable','36HAswJE','following','send','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','map','_fetchOperations','path','0\x200\x2017\x2017','IDLE','children','getOwnPropertyDescriptor','_injector','_unitID','stringify','univerjs-icon\x20univerjs-icon-','concat','getLiveShareCoordinator','registerSharedOperation','url(#$1','99920Tormje','presenting','_liveShareService','1992hRtmsC','You\x27re\x20not\x20following\x20the\x20presenter','Stop\x20presenting','asObservable','_entities','substring','_uiPartsService','idSuffix','xlink:href','createInstance','getConfig','data','Present\x20this\x20document','memberID','call','You\x27re\x20presenting\x20the\x20document','NOT_FOLLOWING','_commandDisposable','sessionStatus$','status$','live-share-icon','entries','OFFLINE','pipe','init','fill','4314XBlwbk','none','offline','_status','end','startFollowing','_status$','SAME_OPERATION_SHARE_INTERVAL','getCurrentTypeOfUnit$','_handleOperation','length','FOLLOWING','defs','_handleNewHost','pluginName','assign','prototype','includes','string','getTypeOfUnitAdded$','defineProperty','2UMhPem','indexOf','className','idle','attrs','current','_commandService','UNIVER_UNKNOWN','getTypeOfUnitDisposed$','getOwnPropertySymbols','_handleNewChangeSets','parse','7LZhWWL','live-share.config','has','_presenter','_startFollowing','_handleOnline','getValue','onCommandExecuted','10hSkXEQ','_collabSessionService','getMemberID','presenter','shouldShareOperation','evenodd','type','_stopFollowing','_handleOffline','_stopPresenting','apply','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','use','1919784vbdOkJ','_init','unsubscribe','setConfig','replace','div','_sharedOperations','button','subscribe','stopPresenting','icon','LiveShareIcon','mask','complete','getUnitId','not-following','registerInitialStateReporter','OPERATION','dispose','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_config','_univerInstanceService','_collabSession','params','ONLINE','1em','LIVESHARE_TERMINATE','_startLiveShareCoordinator','displayName','random'];_0x59ee=function(){return _0x42c55e;};return _0x59ee();}let b=class extends _0x5297a8{constructor(_0x34d1ad){var _0x5cace1=_0x46038d;super(),this['_liveShareService']=_0x34d1ad,this[_0x5cace1(0x16d)]();}['_init'](){var _0x3fe095=_0x46038d;[_0x20574e['id'],_0x281353['id'],_0x3f58e7['id']][_0x3fe095(0x1a5)](_0x1fb6e7=>{var _0x1006c3=_0x3fe095;this[_0x1006c3(0x1b2)](this[_0x1006c3(0x1cd)][_0x1006c3(0x1c9)](_0x1fb6e7));});}};b=Me([ke(0x0,_0x5141d7(L))],b);function _0x56cc(_0x23a263,_0x408a72){var _0x59ee10=_0x59ee();return _0x56cc=function(_0x56cc71,_0x43ab3e){_0x56cc71=_0x56cc71-0x124;var _0x4c5536=_0x59ee10[_0x56cc71];return _0x4c5536;},_0x56cc(_0x23a263,_0x408a72);}var Ge=Object['defineProperty'],We=Object[_0x46038d(0x1c2)],Ye=(_0x25814f,_0x5b852a,_0x335f16)=>_0x5b852a in _0x25814f?Ge(_0x25814f,_0x5b852a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x335f16}):_0x25814f[_0x5b852a]=_0x335f16,Be=(_0x155586,_0xe00643,_0x1cb9fa,_0x30f0a3)=>{var _0x3e5fbf=_0x46038d;for(var _0x5a51f3=_0x30f0a3>0x1?void 0x0:_0x30f0a3?We(_0xe00643,_0x1cb9fa):_0xe00643,_0x544515=_0x155586[_0x3e5fbf(0x140)]-0x1,_0x2b0af4;_0x544515>=0x0;_0x544515--)(_0x2b0af4=_0x155586[_0x544515])&&(_0x5a51f3=_0x2b0af4(_0x5a51f3)||_0x5a51f3);return _0x5a51f3;},F=(_0x349710,_0x37072c)=>(_0x4f09f0,_0xc3a217)=>_0x37072c(_0x4f09f0,_0xc3a217,_0x349710),J=(_0x524f45,_0x301754,_0xf62d3)=>Ye(_0x524f45,typeof _0x301754!='symbol'?_0x301754+'':_0x301754,_0xf62d3);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x32264a{constructor(_0x261f46=$,_0x4d5411,_0x50109f){var _0x13d26f=_0x46038d;super(),this[_0x13d26f(0x180)]=_0x261f46,this[_0x13d26f(0x1c3)]=_0x4d5411,this[_0x13d26f(0x1b3)]=_0x50109f;const {..._0xad9ccc}=_0x5bd737({},$,this[_0x13d26f(0x180)]);this[_0x13d26f(0x1b3)][_0x13d26f(0x16f)](Ue,_0xad9ccc);}['onStarting'](){var _0x1130a4=_0x46038d;_0x80e3e1(this['_injector'],_0x591948([[L],[m],[b],[I]],this[_0x1130a4(0x180)]['override'])),_0x1eb964(this['_injector'],[[b]]);}['onRendered'](){var _0x310a7c=_0x46038d;_0x1eb964(this[_0x310a7c(0x1c3)],[[I]]);}};J(O,_0x46038d(0x165),_0x2ea0be[_0x46038d(0x152)]),J(O,_0x46038d(0x144),Ze),O=Be([_0x2a7516(_0x575a8b),F(0x1,_0x5141d7(_0x500633)),F(0x2,_0x56bcd6)],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 _0x3a3ab5=_0x3eae;(function(_0x260bae,_0x2c6ce9){var _0x55465a=_0x3eae,_0xdf58b1=_0x260bae();while(!![]){try{var _0x5793bb=parseInt(_0x55465a(0x264))/0x1+parseInt(_0x55465a(0x269))/0x2*(-parseInt(_0x55465a(0x275))/0x3)+parseInt(_0x55465a(0x27b))/0x4+parseInt(_0x55465a(0x1f8))/0x5*(-parseInt(_0x55465a(0x262))/0x6)+parseInt(_0x55465a(0x22b))/0x7+parseInt(_0x55465a(0x243))/0x8+-parseInt(_0x55465a(0x1fc))/0x9*(parseInt(_0x55465a(0x209))/0xa);if(_0x5793bb===_0x2c6ce9)break;else _0xdf58b1['push'](_0xdf58b1['shift']());}catch(_0x49690a){_0xdf58b1['push'](_0xdf58b1['shift']());}}}(_0x169c,0xa1479));var q=Object[_0x3a3ab5(0x287)],z=(_0x1629f5,_0x475dd1,_0x19b6df)=>_0x475dd1 in _0x1629f5?q(_0x1629f5,_0x475dd1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x19b6df}):_0x1629f5[_0x475dd1]=_0x19b6df,d=(_0x7f965c,_0x1665be,_0x4b62fe)=>z(_0x7f965c,typeof _0x1665be!=_0x3a3ab5(0x1ed)?_0x1665be+'':_0x1665be,_0x4b62fe);import{Disposable as _0x455fad,toDisposable as _0x436294,IUniverInstanceService as _0x1d8bf3,Inject as _0x31e0bc,Injector as _0x4954bf,IConfigService as _0x20a225,ICommandService as _0xe4004e,RxDisposable as _0x16d957,UniverInstanceType as _0x448959,DisposableCollection as _0x1b6a9c,CommandType as _0x2e5ba9,DependentOn as _0x3d5d54,Plugin as _0x9a98d2,merge as _0x19d8b5,registerDependencies as _0x204a17,mergeOverrideWithDependencies as _0x24b91d,touchDependencies as _0x8d2874}from'@univerjs/core';import{useDependency as _0x22f7b4,useObservable as _0x333831,IUIPartsService as _0x1a74a9,BuiltInUIPart as _0x491a32,connectInjector as _0xfdf7a5}from'@univerjs/ui';import{jsx as _0x48343b,jsxs as _0x17d1e3,Fragment as _0x564f17}from'react/jsx-runtime';import{Dropdown as _0x48a603,clsx as _0x292a6e,Button as _0x45739e}from'@univerjs/design';import{forwardRef as _0x5a28b7,useRef as _0x527ac8,createElement as _0x471b24,useState as _0x35c6be,useEffect as _0x307e8c}from'react';import{CollaborationEvent as _0x397dcb,parseProtocolChangeset as _0x500977}from'@univerjs-pro/collaboration';function _0x3eae(_0x5c13ae,_0xd8685f){var _0x169c24=_0x169c();return _0x3eae=function(_0x3eae3b,_0x302d70){_0x3eae3b=_0x3eae3b-0x1e5;var _0x3f291e=_0x169c24[_0x3eae3b];return _0x3f291e;},_0x3eae(_0x5c13ae,_0xd8685f);}import{CollaborationSessionService as _0x31967c,SessionStatus as _0x1e54cd,UniverCollaborationClientPlugin as _0x2bd614}from'@univerjs-pro/collaboration-client';function _0x169c(){var _0x1ed96a=['svg','offline','_handleNewHost','map','Stop\x20following','end','getOwnPropertySymbols','status$','toString','idSuffix','You\x27re\x20presenting\x20the\x20document','set','40DoJgjb','path','none','mask','tryStartPresenting','http://www.w3.org/2000/svg','from','LiveShareIcon','hasOwnProperty','_status$','string','following','pipe','attrs','_handleTerminate','random','NEW_CHANGESETS','extend','IDLE','propertyIsEnumerable','_handleNewChangeSets','getValue','data','currentColor','children','xlink:href','replace','startFollowing','registerComponent','executeCommand','getLiveShareCoordinator','UNIVER_SHEET','get','url(#$1','4109987GCNSLh','presenter','_collabSession','entries','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','_unitID','1em','_beIdle','Start','trim','assign','univer-mb-3\x20univer-w-full\x20univer-text-sm','find','_presenter','LIVESHARE_OPERATION','registerInitialStateReporter','event$','idle','defs','substring','getTypeOfUnitDisposed$','sheet','LIVESHARE_NEW_HOST','pluginName','3124176EgxFBW','0\x200\x2017\x2017','_config','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','_liveShareService','colorChannel1','getCurrentTypeOfUnit$','_startPresenting','Stop\x20presenting','stringify','type','params','dispose','_commandService','onStarting','evenodd','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_startFollowing','displayName','has','override','UniverIcon','memberID','send','SAME_OPERATION_SHARE_INTERVAL','shouldShareOperation','includes','getUnitId','text','PRESENTING','button','15306BjNupr','values','494836weFHjl','_fetchOperations','_startLiveShareCoordinator','setConfig','className','194oBejQW','_univerInstanceService','next','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_FETCH_OPERATIONS','OFFLINE','live-share.config','parse','_stopFollowing','length','defIds','You\x27are\x20offline.','29781TiEYzx','UNIVER_UNKNOWN','NOT_FOLLOWING','subscribe','concat','onCommandExecuted','5166176OHrYkY','add','You\x27re\x20following\x20the\x20presenter','complete','_configService','getMemberID','FOLLOWING','reverse','LIVESHARE_REQUEST_HOST','getOwnPropertyDescriptor','indexOf','_reporters','defineProperty','getTypeOfUnitAdded$','presenting','dispose$','function','Present\x20this\x20document','requireSession','_stopPresenting','icon','disposeWithMe','asObservable','getInitialStates','call','_uiPartsService','live-share-icon','_injector','prototype','_entities','mutations','init','_handleOnline','_mountLiveShare','delete','_commandDisposable','univerjs-icon\x20univerjs-icon-','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','apply','_sharedOperations','LIVESHARE_TERMINATE','then','forEach','current','clear','getConfig','_handleOffline','symbol','_init','default','Start\x20following','stopFollowing','fill','_handleOperation','stopPresenting','ONLINE','_collabSessionService','not-following','285LSSnIm','_status','onRendered','tag','2239011FDneDG'];_0x169c=function(){return _0x1ed96a;};return _0x169c();}import{InsertSheetMutation as _0x32057a,SetWorksheetActiveOperation as _0x29613a}from'@univerjs/sheets';import{BehaviorSubject as _0x56668a,Subject as _0xc074b3}from'rxjs';import{takeUntil as _0x594e24,throttleTime as _0x4350b5}from'rxjs/operators';import{SetZoomRatioOperation as _0x1f7b0d,SetScrollOperation as _0x18a32e}from'@univerjs/sheets-ui';var c=function(){var _0x360896=_0x3a3ab5;return c=Object[_0x360896(0x235)]||function(_0x12fd74){var _0x22b9b8=_0x360896;for(var _0x530c62,_0x2213ef=0x1,_0x44c771=arguments[_0x22b9b8(0x272)];_0x2213ef<_0x44c771;_0x2213ef++){_0x530c62=arguments[_0x2213ef];for(var _0x572ca3 in _0x530c62)Object[_0x22b9b8(0x297)][_0x22b9b8(0x211)]['call'](_0x530c62,_0x572ca3)&&(_0x12fd74[_0x572ca3]=_0x530c62[_0x572ca3]);}return _0x12fd74;},c[_0x360896(0x2a1)](this,arguments);},Oe=function(_0x4fc45a,_0x202c43){var _0xf80c5f=_0x3a3ab5,_0x461891={};for(var _0x2c903c in _0x4fc45a)Object[_0xf80c5f(0x297)][_0xf80c5f(0x211)][_0xf80c5f(0x293)](_0x4fc45a,_0x2c903c)&&_0x202c43[_0xf80c5f(0x285)](_0x2c903c)<0x0&&(_0x461891[_0x2c903c]=_0x4fc45a[_0x2c903c]);if(_0x4fc45a!=null&&typeof Object[_0xf80c5f(0x203)]==_0xf80c5f(0x28b)){for(var _0x1f41fe=0x0,_0x2c903c=Object[_0xf80c5f(0x203)](_0x4fc45a);_0x1f41fe<_0x2c903c[_0xf80c5f(0x272)];_0x1f41fe++)_0x202c43['indexOf'](_0x2c903c[_0x1f41fe])<0x0&&Object[_0xf80c5f(0x297)][_0xf80c5f(0x21c)]['call'](_0x4fc45a,_0x2c903c[_0x1f41fe])&&(_0x461891[_0x2c903c[_0x1f41fe]]=_0x4fc45a[_0x2c903c[_0x1f41fe]]);}return _0x461891;},W=_0x5a28b7(function(_0x5c6e75,_0x3905bf){var _0x2b8dfe=_0x3a3ab5,_0x3bba64=_0x5c6e75['icon'],_0x3b64ca=_0x5c6e75['id'],_0x4171eb=_0x5c6e75['className'],_0x4e3f24=_0x5c6e75[_0x2b8dfe(0x21a)],_0x970013=Oe(_0x5c6e75,[_0x2b8dfe(0x28f),'id',_0x2b8dfe(0x268),_0x2b8dfe(0x21a)]),_0x48bac9=_0x2b8dfe(0x29f)[_0x2b8dfe(0x279)](_0x3b64ca,'\x20')[_0x2b8dfe(0x279)](_0x4171eb||'')[_0x2b8dfe(0x234)](),_0x272a93=_0x527ac8('_'[_0x2b8dfe(0x279)](Ne()));return Y(_0x3bba64,''[_0x2b8dfe(0x279)](_0x3b64ca),{'defIds':_0x3bba64[_0x2b8dfe(0x273)],'idSuffix':_0x272a93[_0x2b8dfe(0x1e9)]},c({'ref':_0x3905bf,'className':_0x48bac9},_0x970013),_0x4e3f24);});function Y(_0x2dd433,_0x5ad4c5,_0x1f95ba,_0x222eaa,_0x230dff){var _0x1e1db2=_0x3a3ab5;return _0x471b24(_0x2dd433[_0x1e1db2(0x1fb)],c(c({'key':_0x5ad4c5},Ee(_0x2dd433,_0x1f95ba,_0x230dff)),_0x222eaa),(we(_0x2dd433,_0x1f95ba)[_0x1e1db2(0x221)]||[])[_0x1e1db2(0x200)](function(_0x23c0e8,_0x2e0e53){var _0x26fa1d=_0x1e1db2;return Y(_0x23c0e8,''['concat'](_0x5ad4c5,'-')[_0x26fa1d(0x279)](_0x2dd433[_0x26fa1d(0x1fb)],'-')[_0x26fa1d(0x279)](_0x2e0e53),_0x1f95ba,void 0x0,_0x230dff);}));}function Ee(_0x4dc983,_0x58224b,_0x294ec7){var _0x2dc398=_0x3a3ab5,_0x4f7339=c({},_0x4dc983[_0x2dc398(0x216)]);_0x294ec7!=null&&_0x294ec7[_0x2dc398(0x248)]&&_0x4f7339[_0x2dc398(0x1f2)]==='colorChannel1'&&(_0x4f7339[_0x2dc398(0x1f2)]=_0x294ec7[_0x2dc398(0x248)]),_0x4dc983[_0x2dc398(0x1fb)]===_0x2dc398(0x20c)&&_0x4f7339['id']&&(_0x4f7339['id']=_0x4f7339['id']+_0x58224b[_0x2dc398(0x206)]),Object[_0x2dc398(0x22e)](_0x4f7339)[_0x2dc398(0x1e8)](function(_0x2113d5){var _0x358484=_0x2dc398,_0x1101ad=_0x2113d5[0x0],_0x122ad4=_0x2113d5[0x1];_0x1101ad===_0x358484(0x20c)&&typeof _0x122ad4==_0x358484(0x213)&&(_0x4f7339[_0x1101ad]=_0x122ad4[_0x358484(0x223)](/url\(#(.*)\)/,_0x358484(0x22a)[_0x358484(0x279)](_0x58224b[_0x358484(0x206)],')')));});var _0x592c4e=_0x58224b[_0x2dc398(0x273)];return!_0x592c4e||_0x592c4e[_0x2dc398(0x272)]===0x0||(_0x4dc983[_0x2dc398(0x1fb)]==='use'&&_0x4f7339[_0x2dc398(0x222)]&&(_0x4f7339[_0x2dc398(0x222)]=_0x4f7339['xlink:href']+_0x58224b['idSuffix']),Object[_0x2dc398(0x22e)](_0x4f7339)['forEach'](function(_0x481fd8){var _0x2d6080=_0x2dc398,_0x5909a5=_0x481fd8[0x0],_0x22a88b=_0x481fd8[0x1];typeof _0x22a88b=='string'&&(_0x4f7339[_0x5909a5]=_0x22a88b[_0x2d6080(0x223)](/url\(#(.*)\)/,_0x2d6080(0x22a)[_0x2d6080(0x279)](_0x58224b[_0x2d6080(0x206)],')')));})),_0x4f7339;}function we(_0x263791,_0x5a0c71){var _0x24c1b9=_0x3a3ab5,_0x6e96c6,_0x5d2ef3=_0x5a0c71['defIds'];return!_0x5d2ef3||_0x5d2ef3[_0x24c1b9(0x272)]===0x0?_0x263791:_0x263791[_0x24c1b9(0x1fb)]===_0x24c1b9(0x23d)&&(!((_0x6e96c6=_0x263791[_0x24c1b9(0x221)])===null||_0x6e96c6===void 0x0)&&_0x6e96c6[_0x24c1b9(0x272)])?c(c({},_0x263791),{'children':_0x263791['children'][_0x24c1b9(0x200)](function(_0xf3ae08){var _0xe2de6f=_0x24c1b9;return typeof _0xf3ae08[_0xe2de6f(0x216)]['id']==_0xe2de6f(0x213)&&_0x5d2ef3&&_0x5d2ef3['includes'](_0xf3ae08['attrs']['id'])?c(c({},_0xf3ae08),{'attrs':c(c({},_0xf3ae08[_0xe2de6f(0x216)]),{'id':_0xf3ae08['attrs']['id']+_0x5a0c71[_0xe2de6f(0x206)]})}):_0xf3ae08;})}):_0x263791;}function Ne(){var _0x548c78=_0x3a3ab5;return Math[_0x548c78(0x218)]()[_0x548c78(0x205)](0x24)[_0x548c78(0x23e)](0x2,0x8);}W['displayName']=_0x3a3ab5(0x258);var Ce={'tag':_0x3a3ab5(0x1fd),'attrs':{'xmlns':_0x3a3ab5(0x20e),'fill':_0x3a3ab5(0x20b),'viewBox':_0x3a3ab5(0x244),'width':_0x3a3ab5(0x231),'height':_0x3a3ab5(0x231)},'children':[{'tag':_0x3a3ab5(0x20a),'attrs':{'fill':_0x3a3ab5(0x220),'d':_0x3a3ab5(0x22f)}},{'tag':_0x3a3ab5(0x20a),'attrs':{'fill':_0x3a3ab5(0x220),'d':_0x3a3ab5(0x246),'fillRule':'evenodd','clipRule':_0x3a3ab5(0x252)}}]},B=_0x5a28b7(function(_0x4cb8df,_0x277472){var _0x25a95d=_0x3a3ab5;return _0x471b24(W,Object[_0x25a95d(0x235)]({},_0x4cb8df,{'id':_0x25a95d(0x295),'ref':_0x277472,'icon':Ce}));});B[_0x3a3ab5(0x255)]=_0x3a3ab5(0x210);class L extends _0x455fad{constructor(){var _0x4076e1=_0x3a3ab5;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x4076e1(0x286),new Set());}['registerSharedOperation'](_0x58875b){var _0x471743=_0x3a3ab5;return this[_0x471743(0x1e5)][_0x471743(0x27c)](_0x58875b),_0x436294(()=>this[_0x471743(0x1e5)][_0x471743(0x29d)](_0x58875b));}[_0x3a3ab5(0x23a)](_0x31a844){var _0x579766=_0x3a3ab5;return this[_0x579766(0x286)][_0x579766(0x27c)](_0x31a844),_0x436294(()=>this[_0x579766(0x286)][_0x579766(0x29d)](_0x31a844));}[_0x3a3ab5(0x25c)](_0x9886e1){var _0x49655d=_0x3a3ab5;return this['_sharedOperations'][_0x49655d(0x256)](_0x9886e1);}['getInitialStates'](_0x19bee7){var _0x2f7cc4=_0x3a3ab5;return Array[_0x2f7cc4(0x20f)](this[_0x2f7cc4(0x286)])['map'](_0xf8756=>_0xf8756(_0x19bee7));}}var De=Object[_0x3a3ab5(0x284)],Z=(_0x41b9fb,_0x523ad5,_0x553623,_0x5615b1)=>{var _0x4d4b13=_0x3a3ab5;for(var _0x1c320c=_0x5615b1>0x1?void 0x0:_0x5615b1?De(_0x523ad5,_0x553623):_0x523ad5,_0x1c0d9d=_0x41b9fb[_0x4d4b13(0x272)]-0x1,_0x3f7a3b;_0x1c0d9d>=0x0;_0x1c0d9d--)(_0x3f7a3b=_0x41b9fb[_0x1c0d9d])&&(_0x1c320c=_0x3f7a3b(_0x1c320c)||_0x1c320c);return _0x1c320c;},f=(_0x3deda5,_0x953a0d)=>(_0x203131,_0x1dae6c)=>_0x953a0d(_0x203131,_0x1dae6c,_0x3deda5);let m=class extends _0x16d957{constructor(_0x5b441d,_0x571e62,_0x536de3){var _0x41474f=_0x3a3ab5;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x5b441d,this[_0x41474f(0x296)]=_0x571e62,this['_collabSessionService']=_0x536de3,this[_0x41474f(0x1ee)]());}async['getLiveShareCoordinator'](_0x222b05){var _0x3586db=_0x3a3ab5;return this[_0x3586db(0x298)]['has'](_0x222b05)||await this[_0x3586db(0x266)](_0x222b05),this['_entities'][_0x3586db(0x229)](_0x222b05);}['_init'](){var _0x435591=_0x3a3ab5;this['_univerInstanceService'][_0x435591(0x288)](_0x448959['UNIVER_SHEET'])[_0x435591(0x215)](_0x594e24(this[_0x435591(0x28a)]))[_0x435591(0x278)](async _0x3b98ed=>{var _0x5a6f5e=_0x435591;const _0x413d05=_0x3b98ed[_0x5a6f5e(0x25e)]();this['_entities'][_0x5a6f5e(0x256)](_0x413d05)||this['_startLiveShareCoordinator'](_0x413d05);}),this[_0x435591(0x26a)][_0x435591(0x23f)](_0x448959[_0x435591(0x228)])['pipe'](_0x594e24(this['dispose$']))[_0x435591(0x278)](_0x6af18=>{var _0x2d0a65=_0x435591;const _0x3d0651=_0x6af18[_0x2d0a65(0x25e)](),_0x3ad74a=this[_0x2d0a65(0x298)][_0x2d0a65(0x229)](_0x3d0651);_0x3ad74a==null||_0x3ad74a[_0x2d0a65(0x24f)]();});}async[_0x3a3ab5(0x266)](_0x2b50b6){var _0x4dc1e2=_0x3a3ab5;const _0x2d6d8b=await this[_0x4dc1e2(0x1f6)][_0x4dc1e2(0x28d)](_0x2b50b6),_0x19947e=this[_0x4dc1e2(0x296)]['createInstance'](C,_0x2b50b6,_0x2d6d8b);return _0x19947e['init'](),this[_0x4dc1e2(0x298)][_0x4dc1e2(0x208)](_0x2b50b6,_0x19947e),_0x19947e;}};m=Z([f(0x0,_0x1d8bf3),f(0x1,_0x31e0bc(_0x4954bf)),f(0x2,_0x31e0bc(_0x31967c))],m);var h=(_0x102292=>(_0x102292[_0x3a3ab5(0x26e)]=_0x3a3ab5(0x1fe),_0x102292[_0x3a3ab5(0x21b)]='idle',_0x102292['FOLLOWING']='following',_0x102292[_0x3a3ab5(0x277)]='not-following',_0x102292['PRESENTING']=_0x3a3ab5(0x289),_0x102292))(h||{});const xe=_0x3a3ab5(0x25b),Le=0xc8;let C=class extends _0x16d957{constructor(_0x31ab3e,_0x7287f5,_0x46160f,_0x5a9428,_0x49b6d0){var _0xfa78f0=_0x3a3ab5;super(),d(this,_0xfa78f0(0x212),new _0x56668a('idle')),d(this,_0xfa78f0(0x204),this[_0xfa78f0(0x212)][_0xfa78f0(0x291)]()),d(this,_0xfa78f0(0x1ee),!0x1),d(this,'_commandDisposable',null),d(this,_0xfa78f0(0x238),null),(this[_0xfa78f0(0x230)]=_0x31ab3e,this[_0xfa78f0(0x22d)]=_0x7287f5,this[_0xfa78f0(0x27f)]=_0x46160f,this[_0xfa78f0(0x247)]=_0x5a9428,this['_commandService']=_0x49b6d0);}get[_0x3a3ab5(0x1f9)](){var _0x37401a=_0x3a3ab5;return this['_status$'][_0x37401a(0x21e)]();}['dispose'](){var _0x219c58=_0x3a3ab5,_0x5dd352;(_0x5dd352=this[_0x219c58(0x29e)])==null||_0x5dd352[_0x219c58(0x24f)](),this[_0x219c58(0x212)][_0x219c58(0x26b)](_0x219c58(0x23c)),this[_0x219c58(0x212)][_0x219c58(0x27e)]();}[_0x3a3ab5(0x29a)](){var _0x13bcca=_0x3a3ab5;this[_0x13bcca(0x1ee)]||(this[_0x13bcca(0x1ee)]=!0x0,this[_0x13bcca(0x22d)]['sessionStatus$'][_0x13bcca(0x215)](_0x594e24(this[_0x13bcca(0x28a)]))['subscribe'](_0xdd2848=>{var _0xf1ca0a=_0x13bcca;switch(_0xdd2848){case _0x1e54cd[_0xf1ca0a(0x26e)]:this[_0xf1ca0a(0x1ec)]();break;case _0x1e54cd[_0xf1ca0a(0x1f5)]:this[_0xf1ca0a(0x29b)]();break;}}),this[_0x13bcca(0x22d)][_0x13bcca(0x23b)][_0x13bcca(0x215)](_0x594e24(this[_0x13bcca(0x28a)]))['subscribe'](_0x18391f=>{var _0x517d56=_0x13bcca;const {eventID:_0x579c1b}=_0x18391f;switch(_0x579c1b){case _0x397dcb[_0x517d56(0x241)]:this[_0x517d56(0x1ff)](_0x18391f);break;case _0x397dcb[_0x517d56(0x239)]:this[_0x517d56(0x1f3)](_0x18391f);break;case _0x397dcb[_0x517d56(0x1e6)]:this[_0x517d56(0x217)]();break;case _0x397dcb[_0x517d56(0x219)]:this[_0x517d56(0x21d)](_0x18391f);break;}}));}[_0x3a3ab5(0x20d)](){var _0x5aeb41=_0x3a3ab5;this['_collabSession'][_0x5aeb41(0x25a)]({'eventID':_0x397dcb[_0x5aeb41(0x283)],'data':{'unitID':this[_0x5aeb41(0x230)],'userID':this['_collabSession'][_0x5aeb41(0x280)]()}},this['_unitID']);}[_0x3a3ab5(0x1f4)](){var _0x2547a8=_0x3a3ab5;this['_status']==='presenting'&&(this[_0x2547a8(0x212)][_0x2547a8(0x26b)](_0x2547a8(0x23c)),this[_0x2547a8(0x22d)]['send']({'eventID':_0x397dcb[_0x2547a8(0x1e6)],'data':{'unitID':this['_unitID']}},this[_0x2547a8(0x230)]));}[_0x3a3ab5(0x224)](){var _0x353f7c=_0x3a3ab5;this[_0x353f7c(0x1f9)]===_0x353f7c(0x1f7)&&(this[_0x353f7c(0x212)]['next'](_0x353f7c(0x214)),this['_startFollowing']());}[_0x3a3ab5(0x1f1)](){var _0x5d3ba3=_0x3a3ab5;this['_status']==='following'&&this[_0x5d3ba3(0x271)]();}[_0x3a3ab5(0x1ff)](_0x590947){var _0x1b8c8b=_0x3a3ab5;const {presenter:_0x55ff53}=_0x590947[_0x1b8c8b(0x21f)],_0xe38f46=this[_0x1b8c8b(0x22d)][_0x1b8c8b(0x280)]();this[_0x1b8c8b(0x238)]=_0x55ff53,_0x55ff53===_0xe38f46?(this['_stopFollowing'](),this[_0x1b8c8b(0x24a)]()):this[_0x1b8c8b(0x1f9)]!==_0x1b8c8b(0x1f7)&&(this[_0x1b8c8b(0x28e)](),this[_0x1b8c8b(0x254)]());}['_fetchOperations'](){var _0x14c6a1=_0x3a3ab5;const _0x56236f={'eventID':_0x397dcb[_0x14c6a1(0x26d)]};this[_0x14c6a1(0x22d)]['send'](_0x56236f,this[_0x14c6a1(0x230)]);}[_0x3a3ab5(0x217)](){var _0x5791cb=_0x3a3ab5;this[_0x5791cb(0x238)]=null,this[_0x5791cb(0x1f9)]!==_0x5791cb(0x289)&&this[_0x5791cb(0x232)]();}[_0x3a3ab5(0x21d)](_0x5dcf0f){var _0x3fe6ef=_0x3a3ab5;if(this[_0x3fe6ef(0x1f9)]==='following'&&this[_0x3fe6ef(0x238)]===_0x5dcf0f[_0x3fe6ef(0x21f)][_0x3fe6ef(0x259)]){const _0x5ae449=_0x500977(_0x5dcf0f['data'])[_0x3fe6ef(0x299)][_0x3fe6ef(0x282)]()[_0x3fe6ef(0x237)](_0x4b2f18=>_0x4b2f18['id']===_0x32057a['id']);if(_0x5ae449){const _0x40e08d=_0x5ae449[_0x3fe6ef(0x24e)]['unitId'],_0x1c573f=_0x5ae449[_0x3fe6ef(0x24e)][_0x3fe6ef(0x240)]['id'];setTimeout(()=>{var _0x19b6f2=_0x3fe6ef;this[_0x19b6f2(0x250)][_0x19b6f2(0x226)](_0x29613a['id'],{'unitId':_0x40e08d,'subUnitId':_0x1c573f},{'fromCollab':!0x0});});}}}[_0x3a3ab5(0x24a)](){var _0x3fa163=_0x3a3ab5;this['_status$'][_0x3fa163(0x26b)]('presenting');const _0x2c80e0=new Map(),_0x6569af=this[_0x3fa163(0x29e)]=new _0x1b6a9c();_0x6569af['add'](_0x436294(()=>{var _0x2fe162=_0x3fa163;_0x2c80e0['forEach'](_0xf35148=>_0xf35148[_0x2fe162(0x27e)]()),_0x2c80e0[_0x2fe162(0x1ea)]();})),_0x6569af[_0x3fa163(0x27c)](this[_0x3fa163(0x250)][_0x3fa163(0x27a)](_0x1931f8=>{var _0x4664c7=_0x3fa163,_0x2532a1;if(_0x1931f8[_0x4664c7(0x24d)]!==_0x2e5ba9['OPERATION']||!this['_liveShareService'][_0x4664c7(0x25c)](_0x1931f8['id']))return;const {id:_0x50ea04}=_0x1931f8;let _0x49d83f;_0x2c80e0[_0x4664c7(0x256)](_0x50ea04)?_0x49d83f=_0x2c80e0['get'](_0x50ea04):(_0x49d83f=new _0xc074b3(),_0x2c80e0[_0x4664c7(0x208)](_0x50ea04,_0x49d83f),_0x49d83f[_0x4664c7(0x215)](_0x4350b5((_0x2532a1=this[_0x4664c7(0x27f)][_0x4664c7(0x1eb)](xe))!=null?_0x2532a1:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4664c7(0x278)](_0x189798=>{var _0x52fcaa=_0x4664c7;this[_0x52fcaa(0x22d)][_0x52fcaa(0x25a)]({'eventID':_0x397dcb[_0x52fcaa(0x239)],'data':{'unitID':this[_0x52fcaa(0x230)],'operations':{[_0x189798['id']]:{'id':_0x189798['id'],'params':JSON[_0x52fcaa(0x24c)](_0x189798[_0x52fcaa(0x24e)])}}}},this['_unitID']);})),_0x49d83f['next'](_0x1931f8);})),this[_0x3fa163(0x247)][_0x3fa163(0x292)](this['_unitID'])['forEach'](_0x5442e1=>this[_0x3fa163(0x22d)]['send']({'eventID':_0x397dcb[_0x3fa163(0x239)],'data':{'unitID':this['_unitID'],'operations':{[_0x5442e1['id']]:{'id':_0x5442e1['id'],'params':JSON[_0x3fa163(0x24c)](_0x5442e1['params'])}}}},this[_0x3fa163(0x230)]));}['_stopPresenting'](){var _0x45c8d5=_0x3a3ab5,_0x3256fa;this['_status$'][_0x45c8d5(0x26b)](_0x45c8d5(0x23c)),(_0x3256fa=this[_0x45c8d5(0x29e)])==null||_0x3256fa[_0x45c8d5(0x24f)](),this[_0x45c8d5(0x29e)]=null;}['_startFollowing'](){var _0x1b5479=_0x3a3ab5,_0xf0cd5f;(_0xf0cd5f=this[_0x1b5479(0x29e)])==null||_0xf0cd5f[_0x1b5479(0x24f)](),this[_0x1b5479(0x212)][_0x1b5479(0x26b)]('following');}['_beIdle'](){var _0x5ef0cb=_0x3a3ab5,_0x24090e;this[_0x5ef0cb(0x212)][_0x5ef0cb(0x26b)](_0x5ef0cb(0x23c)),(_0x24090e=this['_commandDisposable'])==null||_0x24090e['dispose'](),this[_0x5ef0cb(0x29e)]=null;}[_0x3a3ab5(0x271)](){var _0x33fdef=_0x3a3ab5,_0x24110e;this[_0x33fdef(0x212)][_0x33fdef(0x26b)]('not-following'),(_0x24110e=this[_0x33fdef(0x29e)])==null||_0x24110e['dispose']();}['_handleOperation'](_0x152427){var _0x533f00=_0x3a3ab5;if([_0x533f00(0x289),_0x533f00(0x1f7),_0x533f00(0x1fe)][_0x533f00(0x25d)](this[_0x533f00(0x1f9)])||!_0x152427[_0x533f00(0x21f)]['presenter']||_0x152427[_0x533f00(0x21f)][_0x533f00(0x22c)]===this[_0x533f00(0x22d)][_0x533f00(0x280)]())return;this[_0x533f00(0x1f9)]===_0x533f00(0x23c)&&this['_startFollowing']();const _0x1bbebe=_0x152427[_0x533f00(0x21f)]['operations'];Object[_0x533f00(0x263)](_0x1bbebe)['forEach'](_0x53d45e=>{var _0x106819=_0x533f00;this[_0x106819(0x250)]['executeCommand'](_0x53d45e['id'],_0x53d45e[_0x106819(0x24e)]?JSON[_0x106819(0x270)](_0x53d45e[_0x106819(0x24e)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1974c0=_0x3a3ab5,_0x1a1f30;this['_status$'][_0x1974c0(0x26b)]('offline'),(_0x1a1f30=this['_commandDisposable'])==null||_0x1a1f30['dispose']();}['_handleOnline'](){var _0x4a8cdf=_0x3a3ab5;this[_0x4a8cdf(0x212)][_0x4a8cdf(0x26b)](_0x4a8cdf(0x23c)),this[_0x4a8cdf(0x265)]();}};C=Z([f(0x2,_0x20a225),f(0x3,_0x31e0bc(L)),f(0x4,_0xe4004e)],C);function ye(){var _0x2602b2=_0x3a3ab5;const _0x4f6605=_0x22f7b4(m),_0x4b75a9=_0x22f7b4(_0x1d8bf3),_0x14a563=_0x333831(()=>_0x4b75a9[_0x2602b2(0x249)](_0x448959[_0x2602b2(0x228)]),void 0x0,!0x1,[]),[_0x311711,_0x1c1275]=_0x35c6be(null),[_0xe1c506,_0x4b5b2d]=_0x35c6be(h[_0x2602b2(0x21b)]),_0x5208e5=_0x527ac8(null);return _0x307e8c(()=>(_0x14a563&&_0x4f6605[_0x2602b2(0x227)](_0x14a563[_0x2602b2(0x25e)]())[_0x2602b2(0x1e7)](_0x3c2390=>{var _0x22c91e=_0x2602b2;_0x1c1275(_0x3c2390),_0x5208e5[_0x22c91e(0x1e9)]=_0x3c2390[_0x22c91e(0x204)][_0x22c91e(0x278)](_0x135f93=>{_0x4b5b2d(_0x135f93);});}),()=>{var _0xcba6a0=_0x2602b2,_0x3f607e;(_0x3f607e=_0x5208e5['current'])==null||_0x3f607e['unsubscribe'](),_0x5208e5[_0xcba6a0(0x1e9)]=null;}),[_0x14a563,_0x4f6605]),_0x311711?_0x48343b(_0x48a603,{'align':_0x2602b2(0x202),'disabled':_0xe1c506===h[_0x2602b2(0x26e)],'className':_0x2602b2(0x2a0),'overlay':_0x48343b(Re,{'status':_0xe1c506,'coordinator':_0x311711}),'children':_0x48343b(_0x2602b2(0x261),{'className':_0x292a6e(_0x2602b2(0x253),{'univer-cursor-not-allowed':_0xe1c506===h[_0x2602b2(0x26e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xe1c506!==h[_0x2602b2(0x26e)]}),'type':_0x2602b2(0x261),'children':_0x48343b(B,{'className':'univer-size-4'})})}):null;}function Re(_0x523801){var _0x3ddf91=_0x3a3ab5;const {status:_0x46ea59,coordinator:_0x392981}=_0x523801;switch(_0x46ea59){case h[_0x3ddf91(0x21b)]:return _0x48343b(Pe,{'coordinator':_0x392981});case h[_0x3ddf91(0x281)]:return _0x48343b(Ae,{'coordinator':_0x392981});case h[_0x3ddf91(0x277)]:return _0x48343b(Te,{'coordinator':_0x392981});case h[_0x3ddf91(0x26e)]:return _0x48343b(Fe,{});case h[_0x3ddf91(0x260)]:return _0x48343b($e,{'coordinator':_0x392981});default:return null;}}function Pe(_0x1958b7){var _0x444df7=_0x3a3ab5;const {coordinator:_0x3b161c}=_0x1958b7;return _0x17d1e3(_0x564f17,{'children':[_0x48343b('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x444df7(0x28c)}),_0x48343b(_0x45739e,{'onClick':()=>_0x3b161c[_0x444df7(0x20d)](),'children':_0x444df7(0x233)})]});}function Ae(_0x3fe351){var _0x3d5330=_0x3a3ab5;const {coordinator:_0x536b50}=_0x3fe351;return _0x17d1e3(_0x564f17,{'children':[_0x48343b('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3d5330(0x27d)}),_0x48343b(_0x45739e,{'onClick':()=>_0x536b50['stopFollowing'](),'children':_0x3d5330(0x201)})]});}function Te(_0x18cba6){var _0x40d2b6=_0x3a3ab5;const {coordinator:_0x42a55a}=_0x18cba6;return _0x17d1e3(_0x564f17,{'children':[_0x48343b('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x48343b(_0x45739e,{'variant':_0x40d2b6(0x25f),'onClick':()=>_0x42a55a['startFollowing'](),'children':_0x40d2b6(0x1f0)})]});}function $e(_0x459ce4){var _0x3c9e2a=_0x3a3ab5;const {coordinator:_0x2dd625}=_0x459ce4;return _0x17d1e3(_0x564f17,{'children':[_0x48343b('div',{'className':_0x3c9e2a(0x236),'children':_0x3c9e2a(0x207)}),_0x48343b(_0x45739e,{'variant':_0x3c9e2a(0x1ef),'onClick':()=>_0x2dd625['stopPresenting'](),'children':_0x3c9e2a(0x24b)})]});}function Fe(){var _0x3da785=_0x3a3ab5;return _0x48343b(_0x564f17,{'children':_0x3da785(0x274)});}var He=Object['getOwnPropertyDescriptor'],je=(_0x45c1e0,_0x37cc54,_0xd47077,_0x45a740)=>{var _0x2e5ca8=_0x3a3ab5;for(var _0x27164b=_0x45a740>0x1?void 0x0:_0x45a740?He(_0x37cc54,_0xd47077):_0x37cc54,_0x39e300=_0x45c1e0[_0x2e5ca8(0x272)]-0x1,_0x2dc9c8;_0x39e300>=0x0;_0x39e300--)(_0x2dc9c8=_0x45c1e0[_0x39e300])&&(_0x27164b=_0x2dc9c8(_0x27164b)||_0x27164b);return _0x27164b;},T=(_0x985ef6,_0x13f95d)=>(_0x5bbd04,_0x4434de)=>_0x13f95d(_0x5bbd04,_0x4434de,_0x985ef6);let I=class extends _0x455fad{constructor(_0xe26504,_0x3e5707){var _0xef99f=_0x3a3ab5;super(),this[_0xef99f(0x296)]=_0xe26504,this[_0xef99f(0x294)]=_0x3e5707,this[_0xef99f(0x29c)]();}['_mountLiveShare'](){var _0x5eb341=_0x3a3ab5;this[_0x5eb341(0x290)](this['_uiPartsService'][_0x5eb341(0x225)](_0x491a32['HEADER_MENU'],()=>_0xfdf7a5(ye,this['_injector'])));}};I=je([T(0x0,_0x31e0bc(_0x4954bf)),T(0x1,_0x1a74a9)],I);const Ue=_0x3a3ab5(0x26f),$={};var Ve=Object[_0x3a3ab5(0x284)],Me=(_0x1edb73,_0x128dd4,_0x177edb,_0x5e684a)=>{var _0x10c76a=_0x3a3ab5;for(var _0x1620a3=_0x5e684a>0x1?void 0x0:_0x5e684a?Ve(_0x128dd4,_0x177edb):_0x128dd4,_0x3417ab=_0x1edb73[_0x10c76a(0x272)]-0x1,_0xa2df41;_0x3417ab>=0x0;_0x3417ab--)(_0xa2df41=_0x1edb73[_0x3417ab])&&(_0x1620a3=_0xa2df41(_0x1620a3)||_0x1620a3);return _0x1620a3;},ke=(_0x3e46ab,_0x26b1d0)=>(_0x978ea,_0x41c934)=>_0x26b1d0(_0x978ea,_0x41c934,_0x3e46ab);let b=class extends _0x455fad{constructor(_0x583213){var _0x61a4f2=_0x3a3ab5;super(),this[_0x61a4f2(0x247)]=_0x583213,this[_0x61a4f2(0x1ee)]();}[_0x3a3ab5(0x1ee)](){var _0x2bcd32=_0x3a3ab5;[_0x1f7b0d['id'],_0x18a32e['id'],_0x29613a['id']][_0x2bcd32(0x1e8)](_0x2b0cfb=>{var _0x37061a=_0x2bcd32;this['disposeWithMe'](this[_0x37061a(0x247)]['registerSharedOperation'](_0x2b0cfb));});}};b=Me([ke(0x0,_0x31e0bc(L))],b);var Ge=Object[_0x3a3ab5(0x287)],We=Object[_0x3a3ab5(0x284)],Ye=(_0x20f025,_0x3e8010,_0x3d806c)=>_0x3e8010 in _0x20f025?Ge(_0x20f025,_0x3e8010,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d806c}):_0x20f025[_0x3e8010]=_0x3d806c,Be=(_0x37a70b,_0x56f9cb,_0x21a264,_0x52977c)=>{var _0xe51feb=_0x3a3ab5;for(var _0x47f871=_0x52977c>0x1?void 0x0:_0x52977c?We(_0x56f9cb,_0x21a264):_0x56f9cb,_0x9e4f24=_0x37a70b[_0xe51feb(0x272)]-0x1,_0x163104;_0x9e4f24>=0x0;_0x9e4f24--)(_0x163104=_0x37a70b[_0x9e4f24])&&(_0x47f871=_0x163104(_0x47f871)||_0x47f871);return _0x47f871;},F=(_0x2776d2,_0x57c24c)=>(_0x35a774,_0x3778e9)=>_0x57c24c(_0x35a774,_0x3778e9,_0x2776d2),J=(_0x374172,_0x24ee68,_0x3d2041)=>Ye(_0x374172,typeof _0x24ee68!='symbol'?_0x24ee68+'':_0x24ee68,_0x3d2041);const Ze=_0x3a3ab5(0x26c);let O=class extends _0x9a98d2{constructor(_0x41e339=$,_0x21a247,_0x434bf0){var _0x30f619=_0x3a3ab5;super(),this[_0x30f619(0x245)]=_0x41e339,this['_injector']=_0x21a247,this[_0x30f619(0x27f)]=_0x434bf0;const {..._0x4a4811}=_0x19d8b5({},$,this['_config']);this[_0x30f619(0x27f)][_0x30f619(0x267)](Ue,_0x4a4811);}[_0x3a3ab5(0x251)](){var _0x246281=_0x3a3ab5;_0x204a17(this[_0x246281(0x296)],_0x24b91d([[L],[m],[b],[I]],this[_0x246281(0x245)][_0x246281(0x257)])),_0x8d2874(this['_injector'],[[b]]);}[_0x3a3ab5(0x1fa)](){var _0x106169=_0x3a3ab5;_0x8d2874(this[_0x106169(0x296)],[[I]]);}};J(O,_0x3a3ab5(0x24d),_0x448959[_0x3a3ab5(0x276)]),J(O,_0x3a3ab5(0x242),Ze),O=Be([_0x3d5d54(_0x2bd614),F(0x1,_0x31e0bc(_0x4954bf)),F(0x2,_0x20a225)],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 _0x46038d=_0x56cc;(function(_0x32b835,_0x310c8e){var _0x30b7c8=_0x56cc,_0x11dcfe=_0x32b835();while(!![]){try{var _0x10079b=parseInt(_0x30b7c8(0x1a6))/0x1*(parseInt(_0x30b7c8(0x14b))/0x2)+parseInt(_0x30b7c8(0x136))/0x3*(-parseInt(_0x30b7c8(0x1ce))/0x4)+-parseInt(_0x30b7c8(0x1cb))/0x5+-parseInt(_0x30b7c8(0x16c))/0x6+parseInt(_0x30b7c8(0x157))/0x7*(parseInt(_0x30b7c8(0x1ac))/0x8)+-parseInt(_0x30b7c8(0x1ab))/0x9*(parseInt(_0x30b7c8(0x15f))/0xa)+-parseInt(_0x30b7c8(0x18f))/0xb*(-parseInt(_0x30b7c8(0x1b8))/0xc);if(_0x10079b===_0x310c8e)break;else _0x11dcfe['push'](_0x11dcfe['shift']());}catch(_0x525e4e){_0x11dcfe['push'](_0x11dcfe['shift']());}}}(_0x59ee,0x7ad8f));var q=Object[_0x46038d(0x14a)],z=(_0xa4193b,_0x11705e,_0x5d77fd)=>_0x11705e in _0xa4193b?q(_0xa4193b,_0x11705e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d77fd}):_0xa4193b[_0x11705e]=_0x5d77fd,d=(_0x1579fd,_0x243f1f,_0x5a510f)=>z(_0x1579fd,typeof _0x243f1f!='symbol'?_0x243f1f+'':_0x243f1f,_0x5a510f);import{Disposable as _0x5297a8,toDisposable as _0x21eeda,IUniverInstanceService as _0x264824,Inject as _0x5141d7,Injector as _0x500633,IConfigService as _0x56bcd6,ICommandService as _0x4e241a,RxDisposable as _0x37cda6,UniverInstanceType as _0x2ea0be,DisposableCollection as _0x2f9baf,CommandType as _0x3d2a92,DependentOn as _0x2a7516,Plugin as _0x32264a,merge as _0x5bd737,registerDependencies as _0x80e3e1,mergeOverrideWithDependencies as _0x591948,touchDependencies as _0x1eb964}from'@univerjs/core';import{useDependency as _0x1ed5e9,useObservable as _0x1b6edd,IUIPartsService as _0x116204,BuiltInUIPart as _0x3c4546,connectInjector as _0x1faee5}from'@univerjs/ui';import{jsx as _0x4d3611,jsxs as _0x544f05,Fragment as _0x53709c}from'react/jsx-runtime';import{Dropdown as _0x14dc85,clsx as _0x274478,Button as _0xba967a}from'@univerjs/design';import{forwardRef as _0x3a6c03,useRef as _0x2512ed,createElement as _0x2927ca,useState as _0x5c6e4a,useEffect as _0x38ba63}from'react';import{CollaborationEvent as _0x15f1f2,parseProtocolChangeset as _0x35ac29}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x328019,SessionStatus as _0x30d669,UniverCollaborationClientPlugin as _0x575a8b}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0xa031f1,SetWorksheetActiveOperation as _0x3f58e7}from'@univerjs/sheets';import{BehaviorSubject as _0x281e24,Subject as _0x19e619}from'rxjs';import{takeUntil as _0x206055,throttleTime as _0x4e9454}from'rxjs/operators';import{SetZoomRatioOperation as _0x20574e,SetScrollOperation as _0x281353}from'@univerjs/sheets-ui';var c=function(){var _0x40a35c=_0x46038d;return c=Object[_0x40a35c(0x145)]||function(_0x5f2f20){var _0x34ba31=_0x40a35c;for(var _0x77fb2e,_0xf5f163=0x1,_0x251072=arguments[_0x34ba31(0x140)];_0xf5f163<_0x251072;_0xf5f163++){_0x77fb2e=arguments[_0xf5f163];for(var _0x405e39 in _0x77fb2e)Object[_0x34ba31(0x146)]['hasOwnProperty'][_0x34ba31(0x12a)](_0x77fb2e,_0x405e39)&&(_0x5f2f20[_0x405e39]=_0x77fb2e[_0x405e39]);}return _0x5f2f20;},c[_0x40a35c(0x169)](this,arguments);},Oe=function(_0xc563a4,_0x12c147){var _0x368d86=_0x46038d,_0x9a4fa1={};for(var _0x22e239 in _0xc563a4)Object[_0x368d86(0x146)][_0x368d86(0x1af)][_0x368d86(0x12a)](_0xc563a4,_0x22e239)&&_0x12c147[_0x368d86(0x14c)](_0x22e239)<0x0&&(_0x9a4fa1[_0x22e239]=_0xc563a4[_0x22e239]);if(_0xc563a4!=null&&typeof Object[_0x368d86(0x154)]==_0x368d86(0x1b6)){for(var _0x3f996a=0x0,_0x22e239=Object['getOwnPropertySymbols'](_0xc563a4);_0x3f996a<_0x22e239[_0x368d86(0x140)];_0x3f996a++)_0x12c147['indexOf'](_0x22e239[_0x3f996a])<0x0&&Object[_0x368d86(0x146)][_0x368d86(0x1b7)][_0x368d86(0x12a)](_0xc563a4,_0x22e239[_0x3f996a])&&(_0x9a4fa1[_0x22e239[_0x3f996a]]=_0xc563a4[_0x22e239[_0x3f996a]]);}return _0x9a4fa1;},W=_0x3a6c03(function(_0x198e11,_0x3fb0fa){var _0x560f95=_0x46038d,_0x1f9d01=_0x198e11[_0x560f95(0x176)],_0x18676b=_0x198e11['id'],_0x13e9fa=_0x198e11[_0x560f95(0x14d)],_0x4c7267=_0x198e11[_0x560f95(0x18e)],_0x447453=Oe(_0x198e11,[_0x560f95(0x176),'id',_0x560f95(0x14d),'extend']),_0x319aac=_0x560f95(0x1c6)['concat'](_0x18676b,'\x20')[_0x560f95(0x1c7)](_0x13e9fa||'')[_0x560f95(0x1a8)](),_0x1f309a=_0x2512ed('_'[_0x560f95(0x1c7)](Ne()));return Y(_0x1f9d01,''[_0x560f95(0x1c7)](_0x18676b),{'defIds':_0x1f9d01[_0x560f95(0x1b5)],'idSuffix':_0x1f309a[_0x560f95(0x150)]},c({'ref':_0x3fb0fa,'className':_0x319aac},_0x447453),_0x4c7267);});function Y(_0x5bc17c,_0x19b47d,_0x20f332,_0x21ff9d,_0x3de247){var _0x57397a=_0x46038d;return _0x2927ca(_0x5bc17c[_0x57397a(0x18c)],c(c({'key':_0x19b47d},Ee(_0x5bc17c,_0x20f332,_0x3de247)),_0x21ff9d),(we(_0x5bc17c,_0x20f332)['children']||[])['map'](function(_0x3657f9,_0x467312){var _0x58639e=_0x57397a;return Y(_0x3657f9,''['concat'](_0x19b47d,'-')[_0x58639e(0x1c7)](_0x5bc17c[_0x58639e(0x18c)],'-')[_0x58639e(0x1c7)](_0x467312),_0x20f332,void 0x0,_0x3de247);}));}function Ee(_0x173a97,_0x1ebce8,_0x26532c){var _0x450367=_0x46038d,_0x290e22=c({},_0x173a97[_0x450367(0x14f)]);_0x26532c!=null&&_0x26532c[_0x450367(0x1a3)]&&_0x290e22[_0x450367(0x135)]==='colorChannel1'&&(_0x290e22['fill']=_0x26532c[_0x450367(0x1a3)]),_0x173a97['tag']===_0x450367(0x178)&&_0x290e22['id']&&(_0x290e22['id']=_0x290e22['id']+_0x1ebce8[_0x450367(0x1d5)]),Object[_0x450367(0x131)](_0x290e22)[_0x450367(0x1a5)](function(_0x3ba12f){var _0x5cbe16=_0x450367,_0x53d528=_0x3ba12f[0x0],_0x2913e5=_0x3ba12f[0x1];_0x53d528===_0x5cbe16(0x178)&&typeof _0x2913e5==_0x5cbe16(0x148)&&(_0x290e22[_0x53d528]=_0x2913e5['replace'](/url\(#(.*)\)/,_0x5cbe16(0x1ca)[_0x5cbe16(0x1c7)](_0x1ebce8[_0x5cbe16(0x1d5)],')')));});var _0x568a3d=_0x1ebce8['defIds'];return!_0x568a3d||_0x568a3d[_0x450367(0x140)]===0x0||(_0x173a97[_0x450367(0x18c)]===_0x450367(0x16b)&&_0x290e22[_0x450367(0x124)]&&(_0x290e22['xlink:href']=_0x290e22['xlink:href']+_0x1ebce8[_0x450367(0x1d5)]),Object[_0x450367(0x131)](_0x290e22)[_0x450367(0x1a5)](function(_0x5a1818){var _0x22d9f8=_0x450367,_0x4bf852=_0x5a1818[0x0],_0x274556=_0x5a1818[0x1];typeof _0x274556==_0x22d9f8(0x148)&&(_0x290e22[_0x4bf852]=_0x274556[_0x22d9f8(0x170)](/url\(#(.*)\)/,_0x22d9f8(0x1ca)[_0x22d9f8(0x1c7)](_0x1ebce8['idSuffix'],')')));})),_0x290e22;}function we(_0x54f6d0,_0x3f0cb9){var _0x5ae850=_0x46038d,_0x43b148,_0x1cf113=_0x3f0cb9['defIds'];return!_0x1cf113||_0x1cf113['length']===0x0?_0x54f6d0:_0x54f6d0[_0x5ae850(0x18c)]===_0x5ae850(0x142)&&(!((_0x43b148=_0x54f6d0[_0x5ae850(0x1c1)])===null||_0x43b148===void 0x0)&&_0x43b148['length'])?c(c({},_0x54f6d0),{'children':_0x54f6d0[_0x5ae850(0x1c1)][_0x5ae850(0x1bc)](function(_0x499a41){var _0x4e2e54=_0x5ae850;return typeof _0x499a41['attrs']['id']==_0x4e2e54(0x148)&&_0x1cf113&&_0x1cf113[_0x4e2e54(0x147)](_0x499a41['attrs']['id'])?c(c({},_0x499a41),{'attrs':c(c({},_0x499a41['attrs']),{'id':_0x499a41[_0x4e2e54(0x14f)]['id']+_0x3f0cb9[_0x4e2e54(0x1d5)]})}):_0x499a41;})}):_0x54f6d0;}function Ne(){var _0x51d0de=_0x46038d;return Math[_0x51d0de(0x189)]()[_0x51d0de(0x196)](0x24)[_0x51d0de(0x1d3)](0x2,0x8);}W[_0x46038d(0x188)]=_0x46038d(0x1a4);var Ce={'tag':_0x46038d(0x195),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x46038d(0x137),'viewBox':_0x46038d(0x1bf),'width':_0x46038d(0x185),'height':_0x46038d(0x185)},'children':[{'tag':_0x46038d(0x1be),'attrs':{'fill':'currentColor','d':_0x46038d(0x16a)}},{'tag':_0x46038d(0x1be),'attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x46038d(0x164),'clipRule':_0x46038d(0x164)}}]},B=_0x3a6c03(function(_0x66a223,_0x32891f){var _0x4d7623=_0x46038d;return _0x2927ca(W,Object[_0x4d7623(0x145)]({},_0x66a223,{'id':_0x4d7623(0x130),'ref':_0x32891f,'icon':Ce}));});B[_0x46038d(0x188)]=_0x46038d(0x177);class L extends _0x5297a8{constructor(){var _0x5bf7a6=_0x46038d;super(...arguments),d(this,_0x5bf7a6(0x172),new Set()),d(this,_0x5bf7a6(0x18b),new Set());}[_0x46038d(0x1c9)](_0x55d3a3){var _0x4c3213=_0x46038d;return this['_sharedOperations'][_0x4c3213(0x1ad)](_0x55d3a3),_0x21eeda(()=>this[_0x4c3213(0x172)][_0x4c3213(0x199)](_0x55d3a3));}[_0x46038d(0x17c)](_0x4136d3){var _0x4ecb62=_0x46038d;return this[_0x4ecb62(0x18b)]['add'](_0x4136d3),_0x21eeda(()=>this[_0x4ecb62(0x18b)]['delete'](_0x4136d3));}[_0x46038d(0x163)](_0x514979){var _0x37998f=_0x46038d;return this['_sharedOperations'][_0x37998f(0x159)](_0x514979);}['getInitialStates'](_0x441067){var _0x2a97fb=_0x46038d;return Array['from'](this[_0x2a97fb(0x18b)])[_0x2a97fb(0x1bc)](_0x467ac5=>_0x467ac5(_0x441067));}}var De=Object[_0x46038d(0x1c2)],Z=(_0x30d8c5,_0x5cf7dc,_0x4098cf,_0x1eeaa2)=>{var _0x478fcf=_0x46038d;for(var _0x3e23d7=_0x1eeaa2>0x1?void 0x0:_0x1eeaa2?De(_0x5cf7dc,_0x4098cf):_0x5cf7dc,_0x54de7e=_0x30d8c5[_0x478fcf(0x140)]-0x1,_0x5f51fd;_0x54de7e>=0x0;_0x54de7e--)(_0x5f51fd=_0x30d8c5[_0x54de7e])&&(_0x3e23d7=_0x5f51fd(_0x3e23d7)||_0x3e23d7);return _0x3e23d7;},f=(_0x38f8ee,_0x35053a)=>(_0x5895ef,_0x4c1e91)=>_0x35053a(_0x5895ef,_0x4c1e91,_0x38f8ee);let m=class extends _0x37cda6{constructor(_0x4cd44b,_0x317003,_0x3af16c){var _0x538078=_0x46038d;super(),d(this,_0x538078(0x1d2),new Map()),(this[_0x538078(0x181)]=_0x4cd44b,this[_0x538078(0x1c3)]=_0x317003,this[_0x538078(0x160)]=_0x3af16c,this[_0x538078(0x16d)]());}async['getLiveShareCoordinator'](_0x17de10){var _0x47d58e=_0x46038d;return this[_0x47d58e(0x1d2)][_0x47d58e(0x159)](_0x17de10)||await this['_startLiveShareCoordinator'](_0x17de10),this['_entities'][_0x47d58e(0x190)](_0x17de10);}[_0x46038d(0x16d)](){var _0x275bbd=_0x46038d;this[_0x275bbd(0x181)][_0x275bbd(0x149)](_0x2ea0be[_0x275bbd(0x18d)])['pipe'](_0x206055(this[_0x275bbd(0x1a9)]))['subscribe'](async _0x36538a=>{var _0x15fbc8=_0x275bbd;const _0x3e17c7=_0x36538a[_0x15fbc8(0x17a)]();this['_entities'][_0x15fbc8(0x159)](_0x3e17c7)||this[_0x15fbc8(0x187)](_0x3e17c7);}),this[_0x275bbd(0x181)][_0x275bbd(0x153)](_0x2ea0be[_0x275bbd(0x18d)])['pipe'](_0x206055(this[_0x275bbd(0x1a9)]))[_0x275bbd(0x174)](_0x44f37f=>{var _0x8d98ae=_0x275bbd;const _0x10b37a=_0x44f37f[_0x8d98ae(0x17a)](),_0x5cd06c=this['_entities'][_0x8d98ae(0x190)](_0x10b37a);_0x5cd06c==null||_0x5cd06c[_0x8d98ae(0x17e)]();});}async[_0x46038d(0x187)](_0x166989){var _0x13855c=_0x46038d;const _0x1100c3=await this[_0x13855c(0x160)][_0x13855c(0x198)](_0x166989),_0x311efe=this[_0x13855c(0x1c3)][_0x13855c(0x125)](C,_0x166989,_0x1100c3);return _0x311efe['init'](),this[_0x13855c(0x1d2)][_0x13855c(0x1b4)](_0x166989,_0x311efe),_0x311efe;}};m=Z([f(0x0,_0x264824),f(0x1,_0x5141d7(_0x500633)),f(0x2,_0x5141d7(_0x328019))],m);var h=(_0x49cb43=>(_0x49cb43[_0x46038d(0x132)]=_0x46038d(0x138),_0x49cb43[_0x46038d(0x1c0)]='idle',_0x49cb43[_0x46038d(0x141)]=_0x46038d(0x1b9),_0x49cb43[_0x46038d(0x12c)]=_0x46038d(0x17b),_0x49cb43['PRESENTING']='presenting',_0x49cb43))(h||{});const xe=_0x46038d(0x13d),Le=0xc8;let C=class extends _0x37cda6{constructor(_0x38e739,_0x20fdf5,_0x47633b,_0x387e7e,_0x4c558c){var _0x13d13e=_0x46038d;super(),d(this,'_status$',new _0x281e24(_0x13d13e(0x14e))),d(this,_0x13d13e(0x12f),this['_status$'][_0x13d13e(0x1d1)]()),d(this,_0x13d13e(0x16d),!0x1),d(this,_0x13d13e(0x12d),null),d(this,_0x13d13e(0x15a),null),(this[_0x13d13e(0x1c4)]=_0x38e739,this['_collabSession']=_0x20fdf5,this['_configService']=_0x47633b,this['_liveShareService']=_0x387e7e,this['_commandService']=_0x4c558c);}get[_0x46038d(0x139)](){var _0x1974b7=_0x46038d;return this['_status$'][_0x1974b7(0x15d)]();}[_0x46038d(0x17e)](){var _0x563ace=_0x46038d,_0x13b46b;(_0x13b46b=this[_0x563ace(0x12d)])==null||_0x13b46b[_0x563ace(0x17e)](),this[_0x563ace(0x13c)][_0x563ace(0x19e)](_0x563ace(0x14e)),this[_0x563ace(0x13c)][_0x563ace(0x179)]();}[_0x46038d(0x134)](){var _0x3f5163=_0x46038d;this['_init']||(this[_0x3f5163(0x16d)]=!0x0,this['_collabSession'][_0x3f5163(0x12e)][_0x3f5163(0x133)](_0x206055(this[_0x3f5163(0x1a9)]))[_0x3f5163(0x174)](_0x5b0c56=>{var _0x2af5a1=_0x3f5163;switch(_0x5b0c56){case _0x30d669[_0x2af5a1(0x132)]:this[_0x2af5a1(0x167)]();break;case _0x30d669[_0x2af5a1(0x184)]:this[_0x2af5a1(0x15c)]();break;}}),this[_0x3f5163(0x182)][_0x3f5163(0x19d)]['pipe'](_0x206055(this[_0x3f5163(0x1a9)]))[_0x3f5163(0x174)](_0x165939=>{var _0x6ec32c=_0x3f5163;const {eventID:_0x521b08}=_0x165939;switch(_0x521b08){case _0x15f1f2['LIVESHARE_NEW_HOST']:this[_0x6ec32c(0x143)](_0x165939);break;case _0x15f1f2[_0x6ec32c(0x19b)]:this[_0x6ec32c(0x13f)](_0x165939);break;case _0x15f1f2[_0x6ec32c(0x186)]:this['_handleTerminate']();break;case _0x15f1f2['NEW_CHANGESETS']:this[_0x6ec32c(0x155)](_0x165939);break;}}));}['tryStartPresenting'](){var _0x517e0c=_0x46038d;this[_0x517e0c(0x182)]['send']({'eventID':_0x15f1f2[_0x517e0c(0x197)],'data':{'unitID':this[_0x517e0c(0x1c4)],'userID':this[_0x517e0c(0x182)][_0x517e0c(0x161)]()}},this[_0x517e0c(0x1c4)]);}[_0x46038d(0x175)](){var _0x2d4888=_0x46038d;this[_0x2d4888(0x139)]===_0x2d4888(0x1cc)&&(this[_0x2d4888(0x13c)][_0x2d4888(0x19e)](_0x2d4888(0x14e)),this[_0x2d4888(0x182)][_0x2d4888(0x1ba)]({'eventID':_0x15f1f2[_0x2d4888(0x186)],'data':{'unitID':this['_unitID']}},this[_0x2d4888(0x1c4)]));}[_0x46038d(0x13b)](){var _0x79c3e2=_0x46038d;this['_status']===_0x79c3e2(0x17b)&&(this['_status$'][_0x79c3e2(0x19e)](_0x79c3e2(0x1b9)),this[_0x79c3e2(0x15b)]());}[_0x46038d(0x19a)](){var _0x3ecb06=_0x46038d;this[_0x3ecb06(0x139)]==='following'&&this[_0x3ecb06(0x166)]();}['_handleNewHost'](_0x244377){var _0x49eb3a=_0x46038d;const {presenter:_0x4e3d66}=_0x244377[_0x49eb3a(0x127)],_0x39b927=this[_0x49eb3a(0x182)][_0x49eb3a(0x161)]();this[_0x49eb3a(0x15a)]=_0x4e3d66,_0x4e3d66===_0x39b927?(this[_0x49eb3a(0x166)](),this[_0x49eb3a(0x18a)]()):this['_status']!==_0x49eb3a(0x17b)&&(this[_0x49eb3a(0x168)](),this[_0x49eb3a(0x15b)]());}[_0x46038d(0x1bd)](){var _0x36fe75=_0x46038d;const _0x35574f={'eventID':_0x15f1f2[_0x36fe75(0x193)]};this['_collabSession'][_0x36fe75(0x1ba)](_0x35574f,this['_unitID']);}['_handleTerminate'](){var _0x168dfc=_0x46038d;this[_0x168dfc(0x15a)]=null,this[_0x168dfc(0x139)]!==_0x168dfc(0x1cc)&&this[_0x168dfc(0x191)]();}[_0x46038d(0x155)](_0x4de4d0){var _0x57a245=_0x46038d;if(this[_0x57a245(0x139)]===_0x57a245(0x1b9)&&this['_presenter']===_0x4de4d0['data'][_0x57a245(0x129)]){const _0x518d24=_0x35ac29(_0x4de4d0['data'])['mutations']['reverse']()[_0x57a245(0x192)](_0x46cb11=>_0x46cb11['id']===_0xa031f1['id']);if(_0x518d24){const _0x967673=_0x518d24[_0x57a245(0x183)]['unitId'],_0x230633=_0x518d24[_0x57a245(0x183)]['sheet']['id'];setTimeout(()=>{var _0xb91d39=_0x57a245;this[_0xb91d39(0x151)][_0xb91d39(0x1aa)](_0x3f58e7['id'],{'unitId':_0x967673,'subUnitId':_0x230633},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x597cfb=_0x46038d;this['_status$'][_0x597cfb(0x19e)](_0x597cfb(0x1cc));const _0xe1ea9d=new Map(),_0x2175f0=this[_0x597cfb(0x12d)]=new _0x2f9baf();_0x2175f0[_0x597cfb(0x1ad)](_0x21eeda(()=>{var _0x43b1f3=_0x597cfb;_0xe1ea9d['forEach'](_0xd07928=>_0xd07928[_0x43b1f3(0x179)]()),_0xe1ea9d['clear']();})),_0x2175f0[_0x597cfb(0x1ad)](this[_0x597cfb(0x151)][_0x597cfb(0x15e)](_0x51e261=>{var _0x3933b9=_0x597cfb,_0xd459ed;if(_0x51e261[_0x3933b9(0x165)]!==_0x3d2a92[_0x3933b9(0x17d)]||!this[_0x3933b9(0x1cd)]['shouldShareOperation'](_0x51e261['id']))return;const {id:_0x43ff61}=_0x51e261;let _0x379e34;_0xe1ea9d[_0x3933b9(0x159)](_0x43ff61)?_0x379e34=_0xe1ea9d[_0x3933b9(0x190)](_0x43ff61):(_0x379e34=new _0x19e619(),_0xe1ea9d['set'](_0x43ff61,_0x379e34),_0x379e34[_0x3933b9(0x133)](_0x4e9454((_0xd459ed=this['_configService'][_0x3933b9(0x126)](xe))!=null?_0xd459ed:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3933b9(0x174)](_0x2d0b7d=>{var _0x3d29c5=_0x3933b9;this[_0x3d29c5(0x182)][_0x3d29c5(0x1ba)]({'eventID':_0x15f1f2[_0x3d29c5(0x19b)],'data':{'unitID':this['_unitID'],'operations':{[_0x2d0b7d['id']]:{'id':_0x2d0b7d['id'],'params':JSON[_0x3d29c5(0x1c5)](_0x2d0b7d['params'])}}}},this[_0x3d29c5(0x1c4)]);})),_0x379e34[_0x3933b9(0x19e)](_0x51e261);})),this[_0x597cfb(0x1cd)]['getInitialStates'](this[_0x597cfb(0x1c4)])['forEach'](_0x1a93e0=>this[_0x597cfb(0x182)]['send']({'eventID':_0x15f1f2[_0x597cfb(0x19b)],'data':{'unitID':this['_unitID'],'operations':{[_0x1a93e0['id']]:{'id':_0x1a93e0['id'],'params':JSON[_0x597cfb(0x1c5)](_0x1a93e0['params'])}}}},this[_0x597cfb(0x1c4)]));}['_stopPresenting'](){var _0xda884b=_0x46038d,_0x71221;this[_0xda884b(0x13c)][_0xda884b(0x19e)](_0xda884b(0x14e)),(_0x71221=this['_commandDisposable'])==null||_0x71221[_0xda884b(0x17e)](),this[_0xda884b(0x12d)]=null;}[_0x46038d(0x15b)](){var _0x1023bb=_0x46038d,_0x3aaa06;(_0x3aaa06=this[_0x1023bb(0x12d)])==null||_0x3aaa06[_0x1023bb(0x17e)](),this[_0x1023bb(0x13c)][_0x1023bb(0x19e)](_0x1023bb(0x1b9));}[_0x46038d(0x191)](){var _0x2c352f=_0x46038d,_0x4f5752;this['_status$'][_0x2c352f(0x19e)](_0x2c352f(0x14e)),(_0x4f5752=this[_0x2c352f(0x12d)])==null||_0x4f5752[_0x2c352f(0x17e)](),this[_0x2c352f(0x12d)]=null;}['_stopFollowing'](){var _0x36a258=_0x46038d,_0x4e8025;this[_0x36a258(0x13c)][_0x36a258(0x19e)](_0x36a258(0x17b)),(_0x4e8025=this[_0x36a258(0x12d)])==null||_0x4e8025['dispose']();}[_0x46038d(0x13f)](_0x12e47d){var _0x39b841=_0x46038d;if(['presenting',_0x39b841(0x17b),_0x39b841(0x138)][_0x39b841(0x147)](this[_0x39b841(0x139)])||!_0x12e47d[_0x39b841(0x127)][_0x39b841(0x162)]||_0x12e47d['data'][_0x39b841(0x162)]===this['_collabSession'][_0x39b841(0x161)]())return;this['_status']===_0x39b841(0x14e)&&this['_startFollowing']();const _0x112384=_0x12e47d['data']['operations'];Object['values'](_0x112384)[_0x39b841(0x1a5)](_0x57935d=>{var _0x373fe3=_0x39b841;this[_0x373fe3(0x151)]['executeCommand'](_0x57935d['id'],_0x57935d[_0x373fe3(0x183)]?JSON[_0x373fe3(0x156)](_0x57935d[_0x373fe3(0x183)]):null,{'fromCollab':!0x0});});}[_0x46038d(0x167)](){var _0x5fd377=_0x46038d,_0x39db63;this[_0x5fd377(0x13c)][_0x5fd377(0x19e)](_0x5fd377(0x138)),(_0x39db63=this[_0x5fd377(0x12d)])==null||_0x39db63[_0x5fd377(0x17e)]();}[_0x46038d(0x15c)](){var _0x15fbfc=_0x46038d;this[_0x15fbfc(0x13c)][_0x15fbfc(0x19e)](_0x15fbfc(0x14e)),this[_0x15fbfc(0x1bd)]();}};C=Z([f(0x2,_0x56bcd6),f(0x3,_0x5141d7(L)),f(0x4,_0x4e241a)],C);function ye(){var _0x391051=_0x46038d;const _0x251bd3=_0x1ed5e9(m),_0x93ba4=_0x1ed5e9(_0x264824),_0xca3fa6=_0x1b6edd(()=>_0x93ba4[_0x391051(0x13e)](_0x2ea0be[_0x391051(0x18d)]),void 0x0,!0x1,[]),[_0x462480,_0x2f057c]=_0x5c6e4a(null),[_0x203e72,_0x2eeb67]=_0x5c6e4a(h['IDLE']),_0x2ebb6c=_0x2512ed(null);return _0x38ba63(()=>(_0xca3fa6&&_0x251bd3[_0x391051(0x1c8)](_0xca3fa6[_0x391051(0x17a)]())['then'](_0x499646=>{var _0x308294=_0x391051;_0x2f057c(_0x499646),_0x2ebb6c[_0x308294(0x150)]=_0x499646[_0x308294(0x12f)]['subscribe'](_0x20bba9=>{_0x2eeb67(_0x20bba9);});}),()=>{var _0x397577=_0x391051,_0x2dc427;(_0x2dc427=_0x2ebb6c[_0x397577(0x150)])==null||_0x2dc427[_0x397577(0x16e)](),_0x2ebb6c[_0x397577(0x150)]=null;}),[_0xca3fa6,_0x251bd3]),_0x462480?_0x4d3611(_0x14dc85,{'align':_0x391051(0x13a),'disabled':_0x203e72===h[_0x391051(0x132)],'className':_0x391051(0x1bb),'overlay':_0x4d3611(Re,{'status':_0x203e72,'coordinator':_0x462480}),'children':_0x4d3611(_0x391051(0x173),{'className':_0x274478(_0x391051(0x17f),{'univer-cursor-not-allowed':_0x203e72===h[_0x391051(0x132)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x203e72!==h[_0x391051(0x132)]}),'type':_0x391051(0x173),'children':_0x4d3611(B,{'className':_0x391051(0x1b1)})})}):null;}function Re(_0x332dd0){var _0x28c29a=_0x46038d;const {status:_0x38be21,coordinator:_0x3b1d39}=_0x332dd0;switch(_0x38be21){case h[_0x28c29a(0x1c0)]:return _0x4d3611(Pe,{'coordinator':_0x3b1d39});case h[_0x28c29a(0x141)]:return _0x4d3611(Ae,{'coordinator':_0x3b1d39});case h['NOT_FOLLOWING']:return _0x4d3611(Te,{'coordinator':_0x3b1d39});case h[_0x28c29a(0x132)]:return _0x4d3611(Fe,{});case h[_0x28c29a(0x1a7)]:return _0x4d3611($e,{'coordinator':_0x3b1d39});default:return null;}}function Pe(_0x29d89f){var _0x5ded49=_0x46038d;const {coordinator:_0x326da3}=_0x29d89f;return _0x544f05(_0x53709c,{'children':[_0x4d3611(_0x5ded49(0x171),{'className':_0x5ded49(0x19c),'children':_0x5ded49(0x128)}),_0x4d3611(_0xba967a,{'onClick':()=>_0x326da3[_0x5ded49(0x1a2)](),'children':_0x5ded49(0x1a1)})]});}function Ae(_0x336ae7){var _0x19f26b=_0x46038d;const {coordinator:_0x110720}=_0x336ae7;return _0x544f05(_0x53709c,{'children':[_0x4d3611(_0x19f26b(0x171),{'className':_0x19f26b(0x19c),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x4d3611(_0xba967a,{'onClick':()=>_0x110720['stopFollowing'](),'children':_0x19f26b(0x19f)})]});}function Te(_0x69595e){var _0x58f049=_0x46038d;const {coordinator:_0x3c241a}=_0x69595e;return _0x544f05(_0x53709c,{'children':[_0x4d3611(_0x58f049(0x171),{'className':_0x58f049(0x19c),'children':_0x58f049(0x1cf)}),_0x4d3611(_0xba967a,{'variant':_0x58f049(0x194),'onClick':()=>_0x3c241a['startFollowing'](),'children':'Start\x20following'})]});}function $e(_0x1ad982){var _0x47f3ab=_0x46038d;const {coordinator:_0x3bae81}=_0x1ad982;return _0x544f05(_0x53709c,{'children':[_0x4d3611('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x47f3ab(0x12b)}),_0x4d3611(_0xba967a,{'variant':_0x47f3ab(0x1a0),'onClick':()=>_0x3bae81[_0x47f3ab(0x175)](),'children':_0x47f3ab(0x1d0)})]});}function Fe(){var _0x13b171=_0x46038d;return _0x4d3611(_0x53709c,{'children':_0x13b171(0x1b0)});}var He=Object[_0x46038d(0x1c2)],je=(_0x41ea6f,_0x3bffc9,_0x198666,_0x3a32b6)=>{var _0x44f147=_0x46038d;for(var _0x15845a=_0x3a32b6>0x1?void 0x0:_0x3a32b6?He(_0x3bffc9,_0x198666):_0x3bffc9,_0xa79990=_0x41ea6f[_0x44f147(0x140)]-0x1,_0x47873f;_0xa79990>=0x0;_0xa79990--)(_0x47873f=_0x41ea6f[_0xa79990])&&(_0x15845a=_0x47873f(_0x15845a)||_0x15845a);return _0x15845a;},T=(_0x5de6a0,_0x16b9d2)=>(_0x2ca8d3,_0x2200d3)=>_0x16b9d2(_0x2ca8d3,_0x2200d3,_0x5de6a0);let I=class extends _0x5297a8{constructor(_0x544cce,_0x48f9fa){var _0x46b47b=_0x46038d;super(),this[_0x46b47b(0x1c3)]=_0x544cce,this[_0x46b47b(0x1d4)]=_0x48f9fa,this[_0x46b47b(0x1ae)]();}[_0x46038d(0x1ae)](){var _0x75cc06=_0x46038d;this[_0x75cc06(0x1b2)](this[_0x75cc06(0x1d4)]['registerComponent'](_0x3c4546['HEADER_MENU'],()=>_0x1faee5(ye,this[_0x75cc06(0x1c3)])));}};I=je([T(0x0,_0x5141d7(_0x500633)),T(0x1,_0x116204)],I);const Ue=_0x46038d(0x158),$={};var Ve=Object[_0x46038d(0x1c2)],Me=(_0x2fd11b,_0x59c885,_0x47f082,_0x161e4f)=>{for(var _0x12d86b=_0x161e4f>0x1?void 0x0:_0x161e4f?Ve(_0x59c885,_0x47f082):_0x59c885,_0x2355cb=_0x2fd11b['length']-0x1,_0x4ac0f4;_0x2355cb>=0x0;_0x2355cb--)(_0x4ac0f4=_0x2fd11b[_0x2355cb])&&(_0x12d86b=_0x4ac0f4(_0x12d86b)||_0x12d86b);return _0x12d86b;},ke=(_0x429334,_0x594bb5)=>(_0x553f06,_0x34dd66)=>_0x594bb5(_0x553f06,_0x34dd66,_0x429334);function _0x59ee(){var _0x42c55e=['_startPresenting','_reporters','tag','UNIVER_SHEET','extend','4599133xSpqIs','get','_beIdle','find','LIVESHARE_FETCH_OPERATIONS','text','svg','toString','LIVESHARE_REQUEST_HOST','requireSession','delete','stopFollowing','LIVESHARE_OPERATION','univer-mb-3\x20univer-w-full\x20univer-text-sm','event$','next','Stop\x20following','default','Start','tryStartPresenting','colorChannel1','UniverIcon','forEach','441677FnIviB','PRESENTING','trim','dispose$','executeCommand','7093377EOxQmD','5211376fvFWHA','add','_mountLiveShare','hasOwnProperty','You\x27are\x20offline.','univer-size-4','disposeWithMe','_configService','set','defIds','function','propertyIsEnumerable','36HAswJE','following','send','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','map','_fetchOperations','path','0\x200\x2017\x2017','IDLE','children','getOwnPropertyDescriptor','_injector','_unitID','stringify','univerjs-icon\x20univerjs-icon-','concat','getLiveShareCoordinator','registerSharedOperation','url(#$1','99920Tormje','presenting','_liveShareService','1992hRtmsC','You\x27re\x20not\x20following\x20the\x20presenter','Stop\x20presenting','asObservable','_entities','substring','_uiPartsService','idSuffix','xlink:href','createInstance','getConfig','data','Present\x20this\x20document','memberID','call','You\x27re\x20presenting\x20the\x20document','NOT_FOLLOWING','_commandDisposable','sessionStatus$','status$','live-share-icon','entries','OFFLINE','pipe','init','fill','4314XBlwbk','none','offline','_status','end','startFollowing','_status$','SAME_OPERATION_SHARE_INTERVAL','getCurrentTypeOfUnit$','_handleOperation','length','FOLLOWING','defs','_handleNewHost','pluginName','assign','prototype','includes','string','getTypeOfUnitAdded$','defineProperty','2UMhPem','indexOf','className','idle','attrs','current','_commandService','UNIVER_UNKNOWN','getTypeOfUnitDisposed$','getOwnPropertySymbols','_handleNewChangeSets','parse','7LZhWWL','live-share.config','has','_presenter','_startFollowing','_handleOnline','getValue','onCommandExecuted','10hSkXEQ','_collabSessionService','getMemberID','presenter','shouldShareOperation','evenodd','type','_stopFollowing','_handleOffline','_stopPresenting','apply','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','use','1919784vbdOkJ','_init','unsubscribe','setConfig','replace','div','_sharedOperations','button','subscribe','stopPresenting','icon','LiveShareIcon','mask','complete','getUnitId','not-following','registerInitialStateReporter','OPERATION','dispose','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_config','_univerInstanceService','_collabSession','params','ONLINE','1em','LIVESHARE_TERMINATE','_startLiveShareCoordinator','displayName','random'];_0x59ee=function(){return _0x42c55e;};return _0x59ee();}let b=class extends _0x5297a8{constructor(_0x34d1ad){var _0x5cace1=_0x46038d;super(),this['_liveShareService']=_0x34d1ad,this[_0x5cace1(0x16d)]();}['_init'](){var _0x3fe095=_0x46038d;[_0x20574e['id'],_0x281353['id'],_0x3f58e7['id']][_0x3fe095(0x1a5)](_0x1fb6e7=>{var _0x1006c3=_0x3fe095;this[_0x1006c3(0x1b2)](this[_0x1006c3(0x1cd)][_0x1006c3(0x1c9)](_0x1fb6e7));});}};b=Me([ke(0x0,_0x5141d7(L))],b);function _0x56cc(_0x23a263,_0x408a72){var _0x59ee10=_0x59ee();return _0x56cc=function(_0x56cc71,_0x43ab3e){_0x56cc71=_0x56cc71-0x124;var _0x4c5536=_0x59ee10[_0x56cc71];return _0x4c5536;},_0x56cc(_0x23a263,_0x408a72);}var Ge=Object['defineProperty'],We=Object[_0x46038d(0x1c2)],Ye=(_0x25814f,_0x5b852a,_0x335f16)=>_0x5b852a in _0x25814f?Ge(_0x25814f,_0x5b852a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x335f16}):_0x25814f[_0x5b852a]=_0x335f16,Be=(_0x155586,_0xe00643,_0x1cb9fa,_0x30f0a3)=>{var _0x3e5fbf=_0x46038d;for(var _0x5a51f3=_0x30f0a3>0x1?void 0x0:_0x30f0a3?We(_0xe00643,_0x1cb9fa):_0xe00643,_0x544515=_0x155586[_0x3e5fbf(0x140)]-0x1,_0x2b0af4;_0x544515>=0x0;_0x544515--)(_0x2b0af4=_0x155586[_0x544515])&&(_0x5a51f3=_0x2b0af4(_0x5a51f3)||_0x5a51f3);return _0x5a51f3;},F=(_0x349710,_0x37072c)=>(_0x4f09f0,_0xc3a217)=>_0x37072c(_0x4f09f0,_0xc3a217,_0x349710),J=(_0x524f45,_0x301754,_0xf62d3)=>Ye(_0x524f45,typeof _0x301754!='symbol'?_0x301754+'':_0x301754,_0xf62d3);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x32264a{constructor(_0x261f46=$,_0x4d5411,_0x50109f){var _0x13d26f=_0x46038d;super(),this[_0x13d26f(0x180)]=_0x261f46,this[_0x13d26f(0x1c3)]=_0x4d5411,this[_0x13d26f(0x1b3)]=_0x50109f;const {..._0xad9ccc}=_0x5bd737({},$,this[_0x13d26f(0x180)]);this[_0x13d26f(0x1b3)][_0x13d26f(0x16f)](Ue,_0xad9ccc);}['onStarting'](){var _0x1130a4=_0x46038d;_0x80e3e1(this['_injector'],_0x591948([[L],[m],[b],[I]],this[_0x1130a4(0x180)]['override'])),_0x1eb964(this['_injector'],[[b]]);}['onRendered'](){var _0x310a7c=_0x46038d;_0x1eb964(this[_0x310a7c(0x1c3)],[[I]]);}};J(O,_0x46038d(0x165),_0x2ea0be[_0x46038d(0x152)]),J(O,_0x46038d(0x144),Ze),O=Be([_0x2a7516(_0x575a8b),F(0x1,_0x5141d7(_0x500633)),F(0x2,_0x56bcd6)],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 _0x3b95(_0xe30e3,_0x257a0b){var _0x9d36f9=_0x9d36();return _0x3b95=function(_0x3b9598,_0x273867){_0x3b9598=_0x3b9598-0x1ae;var _0x42a35a=_0x9d36f9[_0x3b9598];return _0x42a35a;},_0x3b95(_0xe30e3,_0x257a0b);}(function(_0x3025c3,_0x49ed5d){var _0x37b16a=_0x3b95,_0x1acede=_0x3025c3();while(!![]){try{var _0x675039=-parseInt(_0x37b16a(0x1ee))/0x1*(-parseInt(_0x37b16a(0x278))/0x2)+-parseInt(_0x37b16a(0x259))/0x3*(parseInt(_0x37b16a(0x240))/0x4)+-parseInt(_0x37b16a(0x268))/0x5*(parseInt(_0x37b16a(0x1fc))/0x6)+-parseInt(_0x37b16a(0x231))/0x7+-parseInt(_0x37b16a(0x2a4))/0x8+parseInt(_0x37b16a(0x23e))/0x9*(parseInt(_0x37b16a(0x21e))/0xa)+-parseInt(_0x37b16a(0x270))/0xb*(-parseInt(_0x37b16a(0x1c2))/0xc);if(_0x675039===_0x49ed5d)break;else _0x1acede['push'](_0x1acede['shift']());}catch(_0xe1534f){_0x1acede['push'](_0x1acede['shift']());}}}(_0x9d36,0x70cad),function(_0x9b32e,_0x415979){var _0x3a6281=_0x3b95;typeof exports==_0x3a6281(0x217)&&typeof module<'u'?_0x415979(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==_0x3a6281(0x241)&&define[_0x3a6281(0x1fa)]?define([_0x3a6281(0x1f2),_0x3a6281(0x229),'@univerjs/ui','react/jsx-runtime',_0x3a6281(0x265),'react',_0x3a6281(0x235),_0x3a6281(0x24f),_0x3a6281(0x27d),'rxjs','rxjs/operators',_0x3a6281(0x1f9)],_0x415979):(_0x9b32e=typeof globalThis<'u'?globalThis:_0x9b32e||self,_0x415979(_0x9b32e['UniverProLiveShare']={},_0x9b32e[_0x3a6281(0x28f)],_0x9b32e[_0x3a6281(0x296)],_0x9b32e[_0x3a6281(0x2a1)],_0x9b32e[_0x3a6281(0x288)],_0x9b32e[_0x3a6281(0x2a1)],_0x9b32e[_0x3a6281(0x274)],_0x9b32e[_0x3a6281(0x22d)],_0x9b32e[_0x3a6281(0x246)],_0x9b32e[_0x3a6281(0x260)],_0x9b32e[_0x3a6281(0x260)][_0x3a6281(0x239)],_0x9b32e[_0x3a6281(0x280)]));}(this,function(_0x3c21f6,_0x23cc24,_0x2efcc8,_0x1b69d3,_0x2187b7,_0x5d9010,_0x2cbf96,_0x5cc39f,_0x3f165a,_0xfdc195,_0x204190,_0x5d1820){'use strict';var _0x24ebc1=_0x3b95;var _0x2cff48=Object[_0x24ebc1(0x257)],_0x22e08=(_0x13a80b,_0xddfd1e,_0x5a87e1)=>_0xddfd1e in _0x13a80b?_0x2cff48(_0x13a80b,_0xddfd1e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a87e1}):_0x13a80b[_0xddfd1e]=_0x5a87e1,_0x54ade9=(_0x238d6e,_0x370e20,_0xf506b8)=>_0x22e08(_0x238d6e,typeof _0x370e20!=_0x24ebc1(0x21b)?_0x370e20+'':_0x370e20,_0xf506b8),_0x309fa4=function(){var _0x49b50d=_0x24ebc1;return _0x309fa4=Object['assign']||function(_0x5920cc){var _0x5e75bd=_0x3b95;for(var _0x8f05cb,_0x4346b1=0x1,_0x36bcdf=arguments[_0x5e75bd(0x2a7)];_0x4346b1<_0x36bcdf;_0x4346b1++){_0x8f05cb=arguments[_0x4346b1];for(var _0x10ed5b in _0x8f05cb)Object['prototype'][_0x5e75bd(0x1f1)][_0x5e75bd(0x1e7)](_0x8f05cb,_0x10ed5b)&&(_0x5920cc[_0x10ed5b]=_0x8f05cb[_0x10ed5b]);}return _0x5920cc;},_0x309fa4[_0x49b50d(0x1be)](this,arguments);},_0x18e9a8=function(_0x5d91ab,_0x3a2f76){var _0x2b2b64=_0x24ebc1,_0x4f551b={};for(var _0x27b407 in _0x5d91ab)Object[_0x2b2b64(0x1de)]['hasOwnProperty'][_0x2b2b64(0x1e7)](_0x5d91ab,_0x27b407)&&_0x3a2f76[_0x2b2b64(0x221)](_0x27b407)<0x0&&(_0x4f551b[_0x27b407]=_0x5d91ab[_0x27b407]);if(_0x5d91ab!=null&&typeof Object[_0x2b2b64(0x1bf)]==_0x2b2b64(0x241)){for(var _0x357f43=0x0,_0x27b407=Object[_0x2b2b64(0x1bf)](_0x5d91ab);_0x357f43<_0x27b407[_0x2b2b64(0x2a7)];_0x357f43++)_0x3a2f76[_0x2b2b64(0x221)](_0x27b407[_0x357f43])<0x0&&Object['prototype'][_0x2b2b64(0x273)][_0x2b2b64(0x1e7)](_0x5d91ab,_0x27b407[_0x357f43])&&(_0x4f551b[_0x27b407[_0x357f43]]=_0x5d91ab[_0x27b407[_0x357f43]]);}return _0x4f551b;},_0x55cb36=_0x5d9010['forwardRef'](function(_0x3d84f4,_0x2d0c37){var _0x15f610=_0x24ebc1,_0x42348a=_0x3d84f4['icon'],_0x13d99e=_0x3d84f4['id'],_0x32e496=_0x3d84f4[_0x15f610(0x271)],_0x5740de=_0x3d84f4[_0x15f610(0x1f5)],_0x45d8d6=_0x18e9a8(_0x3d84f4,[_0x15f610(0x1b9),'id',_0x15f610(0x271),_0x15f610(0x1f5)]),_0x2ddbd2=_0x15f610(0x1e1)[_0x15f610(0x1db)](_0x13d99e,'\x20')['concat'](_0x32e496||'')[_0x15f610(0x282)](),_0x4c7c8a=_0x5d9010[_0x15f610(0x25d)]('_'['concat'](_0x1d98ac()));return _0x2c187f(_0x42348a,''[_0x15f610(0x1db)](_0x13d99e),{'defIds':_0x42348a['defIds'],'idSuffix':_0x4c7c8a[_0x15f610(0x1ae)]},_0x309fa4({'ref':_0x2d0c37,'className':_0x2ddbd2},_0x45d8d6),_0x5740de);});function _0x2c187f(_0x3aa941,_0x310a43,_0x2409b2,_0x53a77e,_0x3cf3e7){var _0x236bf6=_0x24ebc1;return _0x5d9010[_0x236bf6(0x1c1)](_0x3aa941[_0x236bf6(0x1d6)],_0x309fa4(_0x309fa4({'key':_0x310a43},_0x412819(_0x3aa941,_0x2409b2,_0x3cf3e7)),_0x53a77e),(_0x5f1526(_0x3aa941,_0x2409b2)[_0x236bf6(0x1e9)]||[])['map'](function(_0x19aecf,_0x5503a7){var _0x41df44=_0x236bf6;return _0x2c187f(_0x19aecf,''['concat'](_0x310a43,'-')[_0x41df44(0x1db)](_0x3aa941[_0x41df44(0x1d6)],'-')[_0x41df44(0x1db)](_0x5503a7),_0x2409b2,void 0x0,_0x3cf3e7);}));}function _0x412819(_0x20ac1c,_0xa6f462,_0x249746){var _0x4a13cd=_0x24ebc1,_0x211c87=_0x309fa4({},_0x20ac1c[_0x4a13cd(0x21d)]);_0x249746!=null&&_0x249746['colorChannel1']&&_0x211c87['fill']==='colorChannel1'&&(_0x211c87[_0x4a13cd(0x242)]=_0x249746['colorChannel1']),_0x20ac1c[_0x4a13cd(0x1d6)]===_0x4a13cd(0x1e8)&&_0x211c87['id']&&(_0x211c87['id']=_0x211c87['id']+_0xa6f462[_0x4a13cd(0x204)]),Object[_0x4a13cd(0x1cc)](_0x211c87)[_0x4a13cd(0x28a)](function(_0xcf8ec2){var _0x5cf7fb=_0x4a13cd,_0x3ae4e8=_0xcf8ec2[0x0],_0xb96412=_0xcf8ec2[0x1];_0x3ae4e8==='mask'&&typeof _0xb96412==_0x5cf7fb(0x228)&&(_0x211c87[_0x3ae4e8]=_0xb96412[_0x5cf7fb(0x262)](/url\(#(.*)\)/,_0x5cf7fb(0x243)[_0x5cf7fb(0x1db)](_0xa6f462['idSuffix'],')')));});var _0x1d01f7=_0xa6f462['defIds'];return!_0x1d01f7||_0x1d01f7['length']===0x0||(_0x20ac1c['tag']===_0x4a13cd(0x29e)&&_0x211c87[_0x4a13cd(0x20f)]&&(_0x211c87['xlink:href']=_0x211c87['xlink:href']+_0xa6f462[_0x4a13cd(0x204)]),Object[_0x4a13cd(0x1cc)](_0x211c87)[_0x4a13cd(0x28a)](function(_0x2c478b){var _0x8ec5ba=_0x4a13cd,_0x5b9618=_0x2c478b[0x0],_0x517fdd=_0x2c478b[0x1];typeof _0x517fdd==_0x8ec5ba(0x228)&&(_0x211c87[_0x5b9618]=_0x517fdd[_0x8ec5ba(0x262)](/url\(#(.*)\)/,_0x8ec5ba(0x243)[_0x8ec5ba(0x1db)](_0xa6f462[_0x8ec5ba(0x204)],')')));})),_0x211c87;}function _0x5f1526(_0x1cdb63,_0x1dc79f){var _0x523483=_0x24ebc1,_0x236d18,_0x47e52f=_0x1dc79f[_0x523483(0x250)];return!_0x47e52f||_0x47e52f[_0x523483(0x2a7)]===0x0?_0x1cdb63:_0x1cdb63[_0x523483(0x1d6)]===_0x523483(0x298)&&(!((_0x236d18=_0x1cdb63['children'])===null||_0x236d18===void 0x0)&&_0x236d18[_0x523483(0x2a7)])?_0x309fa4(_0x309fa4({},_0x1cdb63),{'children':_0x1cdb63[_0x523483(0x1e9)][_0x523483(0x22b)](function(_0x348a0b){var _0x5a119d=_0x523483;return typeof _0x348a0b[_0x5a119d(0x21d)]['id']=='string'&&_0x47e52f&&_0x47e52f[_0x5a119d(0x227)](_0x348a0b[_0x5a119d(0x21d)]['id'])?_0x309fa4(_0x309fa4({},_0x348a0b),{'attrs':_0x309fa4(_0x309fa4({},_0x348a0b[_0x5a119d(0x21d)]),{'id':_0x348a0b[_0x5a119d(0x21d)]['id']+_0x1dc79f[_0x5a119d(0x204)]})}):_0x348a0b;})}):_0x1cdb63;}function _0x1d98ac(){var _0xe6412d=_0x24ebc1;return Math['random']()[_0xe6412d(0x1f3)](0x24)['substring'](0x2,0x8);}_0x55cb36['displayName']=_0x24ebc1(0x1bd);var _0x42e5ec={'tag':_0x24ebc1(0x1c5),'attrs':{'xmlns':_0x24ebc1(0x218),'fill':_0x24ebc1(0x1bb),'viewBox':_0x24ebc1(0x1f6),'width':'1em','height':_0x24ebc1(0x1f4)},'children':[{'tag':_0x24ebc1(0x24d),'attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x24ebc1(0x24d),'attrs':{'fill':_0x24ebc1(0x292),'d':_0x24ebc1(0x28d),'fillRule':_0x24ebc1(0x26b),'clipRule':'evenodd'}}]},_0x2285c8=_0x5d9010[_0x24ebc1(0x1c6)](function(_0xcbfc39,_0x4f2ddd){var _0x4a3ecc=_0x24ebc1;return _0x5d9010['createElement'](_0x55cb36,Object['assign']({},_0xcbfc39,{'id':_0x4a3ecc(0x214),'ref':_0x4f2ddd,'icon':_0x42e5ec}));});_0x2285c8[_0x24ebc1(0x1d8)]=_0x24ebc1(0x25a);class _0x2e9741 extends _0x23cc24[_0x24ebc1(0x1d2)]{constructor(){var _0x55c05b=_0x24ebc1;super(...arguments),_0x54ade9(this,'_sharedOperations',new Set()),_0x54ade9(this,_0x55c05b(0x1d7),new Set());}['registerSharedOperation'](_0x2295c3){var _0x269402=_0x24ebc1;return this[_0x269402(0x24c)][_0x269402(0x276)](_0x2295c3),_0x23cc24[_0x269402(0x209)](()=>this['_sharedOperations'][_0x269402(0x252)](_0x2295c3));}['registerInitialStateReporter'](_0x3c3eab){var _0x2110ec=_0x24ebc1;return this[_0x2110ec(0x1d7)][_0x2110ec(0x276)](_0x3c3eab),_0x23cc24[_0x2110ec(0x209)](()=>this[_0x2110ec(0x1d7)][_0x2110ec(0x252)](_0x3c3eab));}[_0x24ebc1(0x294)](_0x3dbced){var _0x302e50=_0x24ebc1;return this[_0x302e50(0x24c)][_0x302e50(0x1ef)](_0x3dbced);}[_0x24ebc1(0x281)](_0x2d122e){var _0x3aa3d5=_0x24ebc1;return Array[_0x3aa3d5(0x220)](this[_0x3aa3d5(0x1d7)])['map'](_0x374332=>_0x374332(_0x2d122e));}}var _0x3d9c59=Object[_0x24ebc1(0x20a)],_0x4a36f2=(_0x14d58c,_0x5b8e93,_0xc72605,_0x3a7199)=>{for(var _0x14d9e1=_0x3a7199>0x1?void 0x0:_0x3a7199?_0x3d9c59(_0x5b8e93,_0xc72605):_0x5b8e93,_0x297681=_0x14d58c['length']-0x1,_0x5dc79c;_0x297681>=0x0;_0x297681--)(_0x5dc79c=_0x14d58c[_0x297681])&&(_0x14d9e1=_0x5dc79c(_0x14d9e1)||_0x14d9e1);return _0x14d9e1;},_0x4b8f30=(_0x19ade9,_0x4500af)=>(_0x4aa625,_0x13f36a)=>_0x4500af(_0x4aa625,_0x13f36a,_0x19ade9);_0x3c21f6[_0x24ebc1(0x26f)]=class extends _0x23cc24[_0x24ebc1(0x225)]{constructor(_0x14b71c,_0x2d453b,_0x327b43){var _0x23ecf2=_0x24ebc1;super(),_0x54ade9(this,_0x23ecf2(0x27c),new Map()),(this[_0x23ecf2(0x1e2)]=_0x14b71c,this[_0x23ecf2(0x2a6)]=_0x2d453b,this[_0x23ecf2(0x289)]=_0x327b43,this[_0x23ecf2(0x247)]());}async[_0x24ebc1(0x254)](_0xf0f976){var _0x4afb05=_0x24ebc1;return this[_0x4afb05(0x27c)][_0x4afb05(0x1ef)](_0xf0f976)||await this[_0x4afb05(0x222)](_0xf0f976),this['_entities']['get'](_0xf0f976);}[_0x24ebc1(0x247)](){var _0x589fc4=_0x24ebc1;this['_univerInstanceService'][_0x589fc4(0x1bc)](_0x23cc24[_0x589fc4(0x2a3)][_0x589fc4(0x264)])[_0x589fc4(0x1b2)](_0x204190[_0x589fc4(0x275)](this[_0x589fc4(0x1f0)]))[_0x589fc4(0x284)](async _0x1c4304=>{var _0x794221=_0x589fc4;const _0x3f727d=_0x1c4304[_0x794221(0x283)]();this[_0x794221(0x27c)]['has'](_0x3f727d)||this['_startLiveShareCoordinator'](_0x3f727d);}),this[_0x589fc4(0x1e2)][_0x589fc4(0x1c7)](_0x23cc24[_0x589fc4(0x2a3)][_0x589fc4(0x264)])[_0x589fc4(0x1b2)](_0x204190[_0x589fc4(0x275)](this[_0x589fc4(0x1f0)]))[_0x589fc4(0x284)](_0x16d553=>{var _0x19b51c=_0x589fc4;const _0x3301d2=_0x16d553['getUnitId'](),_0x3af6cb=this[_0x19b51c(0x27c)][_0x19b51c(0x212)](_0x3301d2);_0x3af6cb==null||_0x3af6cb['dispose']();});}async['_startLiveShareCoordinator'](_0x1f888d){var _0x3a93f9=_0x24ebc1;const _0x31defe=await this[_0x3a93f9(0x289)][_0x3a93f9(0x26e)](_0x1f888d),_0x470543=this[_0x3a93f9(0x2a6)][_0x3a93f9(0x232)](_0x3c21f6[_0x3a93f9(0x277)],_0x1f888d,_0x31defe);return _0x470543[_0x3a93f9(0x1fe)](),this[_0x3a93f9(0x27c)][_0x3a93f9(0x23c)](_0x1f888d,_0x470543),_0x470543;}},_0x3c21f6[_0x24ebc1(0x26f)]=_0x4a36f2([_0x4b8f30(0x0,_0x23cc24[_0x24ebc1(0x269)]),_0x4b8f30(0x1,_0x23cc24[_0x24ebc1(0x28c)](_0x23cc24[_0x24ebc1(0x223)])),_0x4b8f30(0x2,_0x23cc24[_0x24ebc1(0x28c)](_0x5cc39f[_0x24ebc1(0x205)]))],_0x3c21f6[_0x24ebc1(0x26f)]);var _0x177cb1=(_0xa63906=>(_0xa63906[_0x24ebc1(0x23b)]=_0x24ebc1(0x22c),_0xa63906[_0x24ebc1(0x244)]=_0x24ebc1(0x1b0),_0xa63906['FOLLOWING']=_0x24ebc1(0x248),_0xa63906[_0x24ebc1(0x27a)]=_0x24ebc1(0x253),_0xa63906[_0x24ebc1(0x206)]='presenting',_0xa63906))(_0x177cb1||{});const _0x1a7290=_0x24ebc1(0x1dd),_0x5e61d3=0xc8;_0x3c21f6[_0x24ebc1(0x277)]=class extends _0x23cc24['RxDisposable']{constructor(_0x2f5eac,_0x2a1533,_0x2a3fad,_0x3bce0c,_0x17742f){var _0x1a5f79=_0x24ebc1;super(),_0x54ade9(this,_0x1a5f79(0x203),new _0xfdc195[(_0x1a5f79(0x210))](_0x1a5f79(0x1b0))),_0x54ade9(this,_0x1a5f79(0x216),this['_status$']['asObservable']()),_0x54ade9(this,'_init',!0x1),_0x54ade9(this,'_commandDisposable',null),_0x54ade9(this,_0x1a5f79(0x291),null),(this[_0x1a5f79(0x24a)]=_0x2f5eac,this[_0x1a5f79(0x272)]=_0x2a1533,this[_0x1a5f79(0x1ec)]=_0x2a3fad,this[_0x1a5f79(0x1f7)]=_0x3bce0c,this[_0x1a5f79(0x1b3)]=_0x17742f);}get[_0x24ebc1(0x1b8)](){var _0x1ec484=_0x24ebc1;return this[_0x1ec484(0x203)]['getValue']();}[_0x24ebc1(0x297)](){var _0x52669d=_0x24ebc1,_0x40f098;(_0x40f098=this[_0x52669d(0x22a)])==null||_0x40f098[_0x52669d(0x297)](),this[_0x52669d(0x203)][_0x52669d(0x25b)](_0x52669d(0x1b0)),this[_0x52669d(0x203)][_0x52669d(0x1ba)]();}[_0x24ebc1(0x1fe)](){var _0x30bbe1=_0x24ebc1;this['_init']||(this['_init']=!0x0,this['_collabSession'][_0x30bbe1(0x219)][_0x30bbe1(0x1b2)](_0x204190[_0x30bbe1(0x275)](this[_0x30bbe1(0x1f0)]))[_0x30bbe1(0x284)](_0x3b62db=>{var _0x540178=_0x30bbe1;switch(_0x3b62db){case _0x5cc39f[_0x540178(0x1ed)][_0x540178(0x23b)]:this['_handleOffline']();break;case _0x5cc39f[_0x540178(0x1ed)][_0x540178(0x26a)]:this[_0x540178(0x237)]();break;}}),this[_0x30bbe1(0x272)][_0x30bbe1(0x1dc)][_0x30bbe1(0x1b2)](_0x204190[_0x30bbe1(0x275)](this['dispose$']))[_0x30bbe1(0x284)](_0x10e66a=>{var _0x4415d2=_0x30bbe1;const {eventID:_0x2978a2}=_0x10e66a;switch(_0x2978a2){case _0x2cbf96[_0x4415d2(0x28b)][_0x4415d2(0x1af)]:this[_0x4415d2(0x293)](_0x10e66a);break;case _0x2cbf96[_0x4415d2(0x28b)][_0x4415d2(0x29a)]:this['_handleOperation'](_0x10e66a);break;case _0x2cbf96[_0x4415d2(0x28b)]['LIVESHARE_TERMINATE']:this[_0x4415d2(0x2a2)]();break;case _0x2cbf96[_0x4415d2(0x28b)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x10e66a);break;}}));}['tryStartPresenting'](){var _0x412774=_0x24ebc1;this[_0x412774(0x272)][_0x412774(0x25e)]({'eventID':_0x2cbf96['CollaborationEvent'][_0x412774(0x21c)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x412774(0x1c4)]()}},this[_0x412774(0x24a)]);}[_0x24ebc1(0x290)](){var _0x273a94=_0x24ebc1;this[_0x273a94(0x1b8)]===_0x273a94(0x20e)&&(this[_0x273a94(0x203)][_0x273a94(0x25b)]('idle'),this['_collabSession']['send']({'eventID':_0x2cbf96['CollaborationEvent'][_0x273a94(0x245)],'data':{'unitID':this[_0x273a94(0x24a)]}},this[_0x273a94(0x24a)]));}[_0x24ebc1(0x21a)](){var _0xf28760=_0x24ebc1;this['_status']==='not-following'&&(this['_status$'][_0xf28760(0x25b)](_0xf28760(0x248)),this[_0xf28760(0x1b5)]());}['stopFollowing'](){var _0x4531d1=_0x24ebc1;this[_0x4531d1(0x1b8)]===_0x4531d1(0x248)&&this['_stopFollowing']();}[_0x24ebc1(0x293)](_0x273725){var _0x2ceaa2=_0x24ebc1;const {presenter:_0x34b356}=_0x273725[_0x2ceaa2(0x234)],_0x4df546=this['_collabSession'][_0x2ceaa2(0x1c4)]();this[_0x2ceaa2(0x291)]=_0x34b356,_0x34b356===_0x4df546?(this[_0x2ceaa2(0x1c9)](),this[_0x2ceaa2(0x1e6)]()):this[_0x2ceaa2(0x1b8)]!==_0x2ceaa2(0x253)&&(this[_0x2ceaa2(0x295)](),this[_0x2ceaa2(0x1b5)]());}[_0x24ebc1(0x1fb)](){var _0x53bece=_0x24ebc1;const _0x102437={'eventID':_0x2cbf96[_0x53bece(0x28b)][_0x53bece(0x266)]};this['_collabSession'][_0x53bece(0x25e)](_0x102437,this[_0x53bece(0x24a)]);}[_0x24ebc1(0x2a2)](){var _0x4987f5=_0x24ebc1;this[_0x4987f5(0x291)]=null,this['_status']!==_0x4987f5(0x20e)&&this[_0x4987f5(0x26c)]();}[_0x24ebc1(0x24b)](_0x418ccb){var _0x931004=_0x24ebc1;if(this[_0x931004(0x1b8)]===_0x931004(0x248)&&this[_0x931004(0x291)]===_0x418ccb[_0x931004(0x234)][_0x931004(0x22f)]){const _0x44853b=_0x2cbf96[_0x931004(0x29d)](_0x418ccb[_0x931004(0x234)])['mutations'][_0x931004(0x233)]()[_0x931004(0x27b)](_0x2f09f3=>_0x2f09f3['id']===_0x3f165a['InsertSheetMutation']['id']);if(_0x44853b){const _0x3de490=_0x44853b[_0x931004(0x1b1)]['unitId'],_0x358f74=_0x44853b[_0x931004(0x1b1)][_0x931004(0x230)]['id'];setTimeout(()=>{var _0x2919c6=_0x931004;this[_0x2919c6(0x1b3)]['executeCommand'](_0x3f165a[_0x2919c6(0x207)]['id'],{'unitId':_0x3de490,'subUnitId':_0x358f74},{'fromCollab':!0x0});});}}}[_0x24ebc1(0x1e6)](){var _0x50e8d7=_0x24ebc1;this[_0x50e8d7(0x203)][_0x50e8d7(0x25b)]('presenting');const _0x2f962e=new Map(),_0x307fbd=this[_0x50e8d7(0x22a)]=new _0x23cc24[(_0x50e8d7(0x1df))]();_0x307fbd['add'](_0x23cc24['toDisposable'](()=>{var _0x38ac61=_0x50e8d7;_0x2f962e[_0x38ac61(0x28a)](_0xbd8e7d=>_0xbd8e7d[_0x38ac61(0x1ba)]()),_0x2f962e[_0x38ac61(0x1ea)]();})),_0x307fbd[_0x50e8d7(0x276)](this[_0x50e8d7(0x1b3)][_0x50e8d7(0x1c3)](_0x266c61=>{var _0x13fbfc=_0x50e8d7,_0x58b159;if(_0x266c61[_0x13fbfc(0x24e)]!==_0x23cc24['CommandType']['OPERATION']||!this[_0x13fbfc(0x1f7)]['shouldShareOperation'](_0x266c61['id']))return;const {id:_0x289961}=_0x266c61;let _0xb716ef;_0x2f962e[_0x13fbfc(0x1ef)](_0x289961)?_0xb716ef=_0x2f962e[_0x13fbfc(0x212)](_0x289961):(_0xb716ef=new _0xfdc195['Subject'](),_0x2f962e[_0x13fbfc(0x23c)](_0x289961,_0xb716ef),_0xb716ef[_0x13fbfc(0x1b2)](_0x204190[_0x13fbfc(0x211)]((_0x58b159=this[_0x13fbfc(0x1ec)][_0x13fbfc(0x20d)](_0x1a7290))!=null?_0x58b159:_0x5e61d3,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x432a8b=>{var _0x4bc39e=_0x13fbfc;this[_0x4bc39e(0x272)][_0x4bc39e(0x25e)]({'eventID':_0x2cbf96[_0x4bc39e(0x28b)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x432a8b['id']]:{'id':_0x432a8b['id'],'params':JSON[_0x4bc39e(0x299)](_0x432a8b[_0x4bc39e(0x1b1)])}}}},this[_0x4bc39e(0x24a)]);})),_0xb716ef[_0x13fbfc(0x25b)](_0x266c61);})),this['_liveShareService'][_0x50e8d7(0x281)](this[_0x50e8d7(0x24a)])[_0x50e8d7(0x28a)](_0x2d4186=>this[_0x50e8d7(0x272)]['send']({'eventID':_0x2cbf96[_0x50e8d7(0x28b)][_0x50e8d7(0x29a)],'data':{'unitID':this['_unitID'],'operations':{[_0x2d4186['id']]:{'id':_0x2d4186['id'],'params':JSON[_0x50e8d7(0x299)](_0x2d4186['params'])}}}},this[_0x50e8d7(0x24a)]));}['_stopPresenting'](){var _0x44e4c1=_0x24ebc1,_0x3f717f;this[_0x44e4c1(0x203)][_0x44e4c1(0x25b)](_0x44e4c1(0x1b0)),(_0x3f717f=this[_0x44e4c1(0x22a)])==null||_0x3f717f[_0x44e4c1(0x297)](),this[_0x44e4c1(0x22a)]=null;}[_0x24ebc1(0x1b5)](){var _0x347fbf=_0x24ebc1,_0x5b410c;(_0x5b410c=this['_commandDisposable'])==null||_0x5b410c['dispose'](),this[_0x347fbf(0x203)][_0x347fbf(0x25b)]('following');}['_beIdle'](){var _0x5f4356=_0x24ebc1,_0x48d6b1;this['_status$'][_0x5f4356(0x25b)](_0x5f4356(0x1b0)),(_0x48d6b1=this[_0x5f4356(0x22a)])==null||_0x48d6b1[_0x5f4356(0x297)](),this[_0x5f4356(0x22a)]=null;}[_0x24ebc1(0x1c9)](){var _0x169491=_0x24ebc1,_0x341cba;this['_status$'][_0x169491(0x25b)](_0x169491(0x253)),(_0x341cba=this[_0x169491(0x22a)])==null||_0x341cba['dispose']();}['_handleOperation'](_0x3baa03){var _0x40cf01=_0x24ebc1;if([_0x40cf01(0x20e),_0x40cf01(0x253),_0x40cf01(0x22c)][_0x40cf01(0x227)](this[_0x40cf01(0x1b8)])||!_0x3baa03['data'][_0x40cf01(0x1fd)]||_0x3baa03['data'][_0x40cf01(0x1fd)]===this[_0x40cf01(0x272)]['getMemberID']())return;this[_0x40cf01(0x1b8)]===_0x40cf01(0x1b0)&&this[_0x40cf01(0x1b5)]();const _0x32e40c=_0x3baa03[_0x40cf01(0x234)][_0x40cf01(0x23d)];Object[_0x40cf01(0x1d1)](_0x32e40c)[_0x40cf01(0x28a)](_0x2b0549=>{var _0x10fe02=_0x40cf01;this['_commandService'][_0x10fe02(0x1cf)](_0x2b0549['id'],_0x2b0549[_0x10fe02(0x1b1)]?JSON[_0x10fe02(0x226)](_0x2b0549[_0x10fe02(0x1b1)]):null,{'fromCollab':!0x0});});}[_0x24ebc1(0x279)](){var _0x285fda=_0x24ebc1,_0x2ad980;this[_0x285fda(0x203)][_0x285fda(0x25b)](_0x285fda(0x22c)),(_0x2ad980=this['_commandDisposable'])==null||_0x2ad980[_0x285fda(0x297)]();}['_handleOnline'](){var _0x28db5f=_0x24ebc1;this[_0x28db5f(0x203)][_0x28db5f(0x25b)]('idle'),this['_fetchOperations']();}},_0x3c21f6[_0x24ebc1(0x277)]=_0x4a36f2([_0x4b8f30(0x2,_0x23cc24[_0x24ebc1(0x23a)]),_0x4b8f30(0x3,_0x23cc24['Inject'](_0x2e9741)),_0x4b8f30(0x4,_0x23cc24[_0x24ebc1(0x29f)])],_0x3c21f6[_0x24ebc1(0x277)]);function _0x48ca6d(){var _0x3d3bd2=_0x24ebc1;const _0x320831=_0x2efcc8[_0x3d3bd2(0x27e)](_0x3c21f6[_0x3d3bd2(0x26f)]),_0x18d2ab=_0x2efcc8[_0x3d3bd2(0x27e)](_0x23cc24[_0x3d3bd2(0x269)]),_0x4bb70e=_0x2efcc8[_0x3d3bd2(0x255)](()=>_0x18d2ab[_0x3d3bd2(0x20c)](_0x23cc24[_0x3d3bd2(0x2a3)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x10e79b,_0x397a8a]=_0x5d9010[_0x3d3bd2(0x20b)](null),[_0x53f832,_0x3a5e2c]=_0x5d9010[_0x3d3bd2(0x20b)](_0x177cb1[_0x3d3bd2(0x244)]),_0x101581=_0x5d9010['useRef'](null);return _0x5d9010[_0x3d3bd2(0x2a5)](()=>(_0x4bb70e&&_0x320831['getLiveShareCoordinator'](_0x4bb70e[_0x3d3bd2(0x283)]())[_0x3d3bd2(0x286)](_0x28e30d=>{var _0x3b6296=_0x3d3bd2;_0x397a8a(_0x28e30d),_0x101581['current']=_0x28e30d[_0x3b6296(0x216)][_0x3b6296(0x284)](_0x439118=>{_0x3a5e2c(_0x439118);});}),()=>{var _0x27ecc9=_0x3d3bd2,_0x918283;(_0x918283=_0x101581['current'])==null||_0x918283[_0x27ecc9(0x29c)](),_0x101581[_0x27ecc9(0x1ae)]=null;}),[_0x4bb70e,_0x320831]),_0x10e79b?_0x1b69d3[_0x3d3bd2(0x1eb)](_0x2187b7[_0x3d3bd2(0x1cd)],{'align':_0x3d3bd2(0x1b7),'disabled':_0x53f832===_0x177cb1['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':_0x1b69d3[_0x3d3bd2(0x1eb)](_0x492257,{'status':_0x53f832,'coordinator':_0x10e79b}),'children':_0x1b69d3['jsx'](_0x3d3bd2(0x2a0),{'className':_0x2187b7[_0x3d3bd2(0x1d3)](_0x3d3bd2(0x22e),{'univer-cursor-not-allowed':_0x53f832===_0x177cb1[_0x3d3bd2(0x23b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x53f832!==_0x177cb1[_0x3d3bd2(0x23b)]}),'type':'button','children':_0x1b69d3[_0x3d3bd2(0x1eb)](_0x2285c8,{'className':_0x3d3bd2(0x1cb)})})}):null;}function _0x492257(_0x3381a2){var _0x4a7b17=_0x24ebc1;const {status:_0x3e5e8a,coordinator:_0x2b0fb4}=_0x3381a2;switch(_0x3e5e8a){case _0x177cb1['IDLE']:return _0x1b69d3[_0x4a7b17(0x1eb)](_0x319e2b,{'coordinator':_0x2b0fb4});case _0x177cb1[_0x4a7b17(0x256)]:return _0x1b69d3[_0x4a7b17(0x1eb)](_0x3c4d39,{'coordinator':_0x2b0fb4});case _0x177cb1[_0x4a7b17(0x27a)]:return _0x1b69d3['jsx'](_0x26b75d,{'coordinator':_0x2b0fb4});case _0x177cb1[_0x4a7b17(0x23b)]:return _0x1b69d3['jsx'](_0x36162a,{});case _0x177cb1[_0x4a7b17(0x206)]:return _0x1b69d3[_0x4a7b17(0x1eb)](_0x2140f2,{'coordinator':_0x2b0fb4});default:return null;}}function _0x319e2b(_0x2fc69d){var _0x5dba98=_0x24ebc1;const {coordinator:_0x56da2b}=_0x2fc69d;return _0x1b69d3['jsxs'](_0x1b69d3[_0x5dba98(0x224)],{'children':[_0x1b69d3[_0x5dba98(0x1eb)]('div',{'className':_0x5dba98(0x258),'children':_0x5dba98(0x1e5)}),_0x1b69d3[_0x5dba98(0x1eb)](_0x2187b7['Button'],{'onClick':()=>_0x56da2b[_0x5dba98(0x263)](),'children':_0x5dba98(0x285)})]});}function _0x3c4d39(_0x31912c){var _0x2db537=_0x24ebc1;const {coordinator:_0x2446f2}=_0x31912c;return _0x1b69d3[_0x2db537(0x1b4)](_0x1b69d3[_0x2db537(0x224)],{'children':[_0x1b69d3[_0x2db537(0x1eb)]('div',{'className':_0x2db537(0x258),'children':_0x2db537(0x1b6)}),_0x1b69d3[_0x2db537(0x1eb)](_0x2187b7[_0x2db537(0x23f)],{'onClick':()=>_0x2446f2[_0x2db537(0x215)](),'children':_0x2db537(0x208)})]});}function _0x26b75d(_0x45d2f5){var _0x2729e3=_0x24ebc1;const {coordinator:_0x569408}=_0x45d2f5;return _0x1b69d3[_0x2729e3(0x1b4)](_0x1b69d3['Fragment'],{'children':[_0x1b69d3['jsx'](_0x2729e3(0x249),{'className':_0x2729e3(0x258),'children':_0x2729e3(0x238)}),_0x1b69d3[_0x2729e3(0x1eb)](_0x2187b7[_0x2729e3(0x23f)],{'variant':_0x2729e3(0x21f),'onClick':()=>_0x569408[_0x2729e3(0x21a)](),'children':'Start\x20following'})]});}function _0x2140f2(_0x190e56){var _0x1d2de9=_0x24ebc1;const {coordinator:_0x4681a0}=_0x190e56;return _0x1b69d3[_0x1d2de9(0x1b4)](_0x1b69d3['Fragment'],{'children':[_0x1b69d3['jsx'](_0x1d2de9(0x249),{'className':_0x1d2de9(0x258),'children':_0x1d2de9(0x201)}),_0x1b69d3['jsx'](_0x2187b7[_0x1d2de9(0x23f)],{'variant':_0x1d2de9(0x287),'onClick':()=>_0x4681a0['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x36162a(){var _0x5a9915=_0x24ebc1;return _0x1b69d3[_0x5a9915(0x1eb)](_0x1b69d3[_0x5a9915(0x224)],{'children':_0x5a9915(0x1d5)});}var _0x565773=Object[_0x24ebc1(0x20a)],_0x327e90=(_0xe9cde2,_0x210cd4,_0x20a643,_0x25fcb3)=>{var _0x144f2e=_0x24ebc1;for(var _0x560a8f=_0x25fcb3>0x1?void 0x0:_0x25fcb3?_0x565773(_0x210cd4,_0x20a643):_0x210cd4,_0x5d185e=_0xe9cde2[_0x144f2e(0x2a7)]-0x1,_0x2c9d6d;_0x5d185e>=0x0;_0x5d185e--)(_0x2c9d6d=_0xe9cde2[_0x5d185e])&&(_0x560a8f=_0x2c9d6d(_0x560a8f)||_0x560a8f);return _0x560a8f;},_0x379236=(_0x3fc939,_0x409bd7)=>(_0x377e0b,_0x143519)=>_0x409bd7(_0x377e0b,_0x143519,_0x3fc939);_0x3c21f6['DesktopLiveShareController']=class extends _0x23cc24[_0x24ebc1(0x1d2)]{constructor(_0x1087df,_0x20c660){var _0x2c2873=_0x24ebc1;super(),this[_0x2c2873(0x2a6)]=_0x1087df,this[_0x2c2873(0x27f)]=_0x20c660,this[_0x2c2873(0x28e)]();}[_0x24ebc1(0x28e)](){var _0x388920=_0x24ebc1;this[_0x388920(0x25f)](this[_0x388920(0x27f)]['registerComponent'](_0x2efcc8[_0x388920(0x202)][_0x388920(0x1e3)],()=>_0x2efcc8[_0x388920(0x200)](_0x48ca6d,this['_injector'])));}},_0x3c21f6[_0x24ebc1(0x26d)]=_0x327e90([_0x379236(0x0,_0x23cc24[_0x24ebc1(0x28c)](_0x23cc24[_0x24ebc1(0x223)])),_0x379236(0x1,_0x2efcc8['IUIPartsService'])],_0x3c21f6[_0x24ebc1(0x26d)]);const _0x2caad9=_0x24ebc1(0x1ff),_0x470112={};var _0x327b69=Object[_0x24ebc1(0x20a)],_0x4ee11c=(_0x2055b6,_0x275094,_0x2e20ac,_0x478382)=>{var _0x2d99c9=_0x24ebc1;for(var _0xb5d950=_0x478382>0x1?void 0x0:_0x478382?_0x327b69(_0x275094,_0x2e20ac):_0x275094,_0xa6faca=_0x2055b6[_0x2d99c9(0x2a7)]-0x1,_0x853bf8;_0xa6faca>=0x0;_0xa6faca--)(_0x853bf8=_0x2055b6[_0xa6faca])&&(_0xb5d950=_0x853bf8(_0xb5d950)||_0xb5d950);return _0xb5d950;},_0x5f1115=(_0x118847,_0x1ef671)=>(_0x2a0c67,_0x1c73ba)=>_0x1ef671(_0x2a0c67,_0x1c73ba,_0x118847);let _0x53ccd0=class extends _0x23cc24['Disposable']{constructor(_0xaef9a4){var _0x1dc186=_0x24ebc1;super(),this[_0x1dc186(0x1f7)]=_0xaef9a4,this[_0x1dc186(0x247)]();}[_0x24ebc1(0x247)](){var _0x22c1e6=_0x24ebc1;[_0x5d1820[_0x22c1e6(0x25c)]['id'],_0x5d1820[_0x22c1e6(0x1da)]['id'],_0x3f165a[_0x22c1e6(0x207)]['id']][_0x22c1e6(0x28a)](_0x25aa12=>{var _0x1f6515=_0x22c1e6;this['disposeWithMe'](this[_0x1f6515(0x1f7)][_0x1f6515(0x261)](_0x25aa12));});}};_0x53ccd0=_0x4ee11c([_0x5f1115(0x0,_0x23cc24[_0x24ebc1(0x28c)](_0x2e9741))],_0x53ccd0);var _0x573fda=Object['defineProperty'],_0x460c53=Object[_0x24ebc1(0x20a)],_0x1b714d=(_0x5543f3,_0x79aaf0,_0xf486c6)=>_0x79aaf0 in _0x5543f3?_0x573fda(_0x5543f3,_0x79aaf0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf486c6}):_0x5543f3[_0x79aaf0]=_0xf486c6,_0x479f85=(_0xb53b6a,_0x4aaa52,_0x43a6c7,_0x44b3ba)=>{for(var _0x5a8ed3=_0x44b3ba>0x1?void 0x0:_0x44b3ba?_0x460c53(_0x4aaa52,_0x43a6c7):_0x4aaa52,_0x578eb9=_0xb53b6a['length']-0x1,_0x20735a;_0x578eb9>=0x0;_0x578eb9--)(_0x20735a=_0xb53b6a[_0x578eb9])&&(_0x5a8ed3=_0x20735a(_0x5a8ed3)||_0x5a8ed3);return _0x5a8ed3;},_0xa28853=(_0x499bc2,_0x12f557)=>(_0x45cfa4,_0x558806)=>_0x12f557(_0x45cfa4,_0x558806,_0x499bc2),_0x5f21f7=(_0x40e406,_0x3bb333,_0x324447)=>_0x1b714d(_0x40e406,typeof _0x3bb333!=_0x24ebc1(0x21b)?_0x3bb333+'':_0x3bb333,_0x324447);const _0x12317f='UNIVER_LIVE_SHARE_PLUGIN';_0x3c21f6['UniverLiveSharePlugin']=class extends _0x23cc24[_0x24ebc1(0x1d4)]{constructor(_0x29ee12=_0x470112,_0x156771,_0x2108b7){var _0x1df5f4=_0x24ebc1;super(),this['_config']=_0x29ee12,this['_injector']=_0x156771,this[_0x1df5f4(0x1ec)]=_0x2108b7;const {..._0x427879}=_0x23cc24[_0x1df5f4(0x1ce)]({},_0x470112,this[_0x1df5f4(0x29b)]);this['_configService'][_0x1df5f4(0x1e4)](_0x2caad9,_0x427879);}[_0x24ebc1(0x1f8)](){var _0x1d0e8d=_0x24ebc1;_0x23cc24[_0x1d0e8d(0x267)](this[_0x1d0e8d(0x2a6)],_0x23cc24[_0x1d0e8d(0x1c0)]([[_0x2e9741],[_0x3c21f6[_0x1d0e8d(0x26f)]],[_0x53ccd0],[_0x3c21f6[_0x1d0e8d(0x26d)]]],this[_0x1d0e8d(0x29b)]['override'])),_0x23cc24[_0x1d0e8d(0x1e0)](this[_0x1d0e8d(0x2a6)],[[_0x53ccd0]]);}[_0x24ebc1(0x213)](){var _0x1ac5ba=_0x24ebc1;_0x23cc24['touchDependencies'](this['_injector'],[[_0x3c21f6[_0x1ac5ba(0x26d)]]]);}},_0x5f21f7(_0x3c21f6[_0x24ebc1(0x1d0)],_0x24ebc1(0x24e),_0x23cc24[_0x24ebc1(0x2a3)][_0x24ebc1(0x251)]),_0x5f21f7(_0x3c21f6[_0x24ebc1(0x1d0)],_0x24ebc1(0x236),_0x12317f),_0x3c21f6[_0x24ebc1(0x1d0)]=_0x479f85([_0x23cc24['DependentOn'](_0x5cc39f['UniverCollaborationClientPlugin']),_0xa28853(0x1,_0x23cc24[_0x24ebc1(0x28c)](_0x23cc24['Injector'])),_0xa28853(0x2,_0x23cc24[_0x24ebc1(0x23a)])],_0x3c21f6['UniverLiveSharePlugin']),_0x3c21f6['LiveShare']=_0x48ca6d,_0x3c21f6['LiveShareService']=_0x2e9741,_0x3c21f6[_0x24ebc1(0x1c8)]=_0x177cb1,Object[_0x24ebc1(0x257)](_0x3c21f6,Symbol[_0x24ebc1(0x1ca)],{'value':_0x24ebc1(0x1d9)});}));function _0x9d36(){var _0x3e2011=['_sharedOperations','path','type','@univerjs-pro/collaboration-client','defIds','UNIVER_UNKNOWN','delete','not-following','getLiveShareCoordinator','useObservable','FOLLOWING','defineProperty','univer-mb-3\x20univer-w-full\x20univer-text-sm','3FvEnvm','LiveShareIcon','next','SetZoomRatioOperation','useRef','send','disposeWithMe','rxjs','registerSharedOperation','replace','tryStartPresenting','UNIVER_SHEET','@univerjs/design','LIVESHARE_FETCH_OPERATIONS','registerDependencies','13805ZmEZAA','IUniverInstanceService','ONLINE','evenodd','_beIdle','DesktopLiveShareController','requireSession','LiveShareController','5199062OgjyIn','className','_collabSession','propertyIsEnumerable','UniverProCollaboration','takeUntil','add','LiveShareCoordinator','44274OJfGev','_handleOffline','NOT_FOLLOWING','find','_entities','@univerjs/sheets','useDependency','_uiPartsService','UniverSheetsUi','getInitialStates','trim','getUnitId','subscribe','Start','then','default','UniverDesign','_collabSessionService','forEach','CollaborationEvent','Inject','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','_mountLiveShare','UniverCore','stopPresenting','_presenter','currentColor','_handleNewHost','shouldShareOperation','_stopPresenting','UniverUi','dispose','defs','stringify','LIVESHARE_OPERATION','_config','unsubscribe','parseProtocolChangeset','use','ICommandService','button','React','_handleTerminate','UniverInstanceType','4726480svKfyw','useEffect','_injector','length','current','LIVESHARE_NEW_HOST','idle','params','pipe','_commandService','jsxs','_startFollowing','You\x27re\x20following\x20the\x20presenter','end','_status','icon','complete','none','getTypeOfUnitAdded$','UniverIcon','apply','getOwnPropertySymbols','mergeOverrideWithDependencies','createElement','36nEBjdN','onCommandExecuted','getMemberID','svg','forwardRef','getTypeOfUnitDisposed$','LiveShareStatus','_stopFollowing','toStringTag','univer-size-4','entries','Dropdown','merge','executeCommand','UniverLiveSharePlugin','values','Disposable','clsx','Plugin','You\x27are\x20offline.','tag','_reporters','displayName','Module','SetScrollOperation','concat','event$','SAME_OPERATION_SHARE_INTERVAL','prototype','DisposableCollection','touchDependencies','univerjs-icon\x20univerjs-icon-','_univerInstanceService','HEADER_MENU','setConfig','Present\x20this\x20document','_startPresenting','call','mask','children','clear','jsx','_configService','SessionStatus','1ArwJDI','has','dispose$','hasOwnProperty','exports','toString','1em','extend','0\x200\x2017\x2017','_liveShareService','onStarting','@univerjs/sheets-ui','amd','_fetchOperations','1326ysqgsb','presenter','init','live-share.config','connectInjector','You\x27re\x20presenting\x20the\x20document','BuiltInUIPart','_status$','idSuffix','CollaborationSessionService','PRESENTING','SetWorksheetActiveOperation','Stop\x20following','toDisposable','getOwnPropertyDescriptor','useState','getCurrentTypeOfUnit$','getConfig','presenting','xlink:href','BehaviorSubject','throttleTime','get','onRendered','live-share-icon','stopFollowing','status$','object','http://www.w3.org/2000/svg','sessionStatus$','startFollowing','symbol','LIVESHARE_REQUEST_HOST','attrs','90YuvwTa','text','from','indexOf','_startLiveShareCoordinator','Injector','Fragment','RxDisposable','parse','includes','string','@univerjs/core','_commandDisposable','map','offline','UniverProCollaborationClient','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','memberID','sheet','2526139kEKOGj','createInstance','reverse','data','@univerjs-pro/collaboration','pluginName','_handleOnline','You\x27re\x20not\x20following\x20the\x20presenter','operators','IConfigService','OFFLINE','set','operations','616509AWoOnj','Button','130828AghUGe','function','fill','url(#$1','IDLE','LIVESHARE_TERMINATE','UniverSheets','_init','following','div','_unitID','_handleNewChangeSets'];_0x9d36=function(){return _0x3e2011;};return _0x9d36();}
1
+ function _0x3164(_0x18330a,_0x36a077){var _0x20805c=_0x2080();return _0x3164=function(_0x316497,_0x4d48e1){_0x316497=_0x316497-0x1b2;var _0x4c1464=_0x20805c[_0x316497];return _0x4c1464;},_0x3164(_0x18330a,_0x36a077);}(function(_0xe45386,_0x193564){var _0x4fa26e=_0x3164,_0x228a91=_0xe45386();while(!![]){try{var _0x3899c6=-parseInt(_0x4fa26e(0x293))/0x1+parseInt(_0x4fa26e(0x286))/0x2+-parseInt(_0x4fa26e(0x283))/0x3*(-parseInt(_0x4fa26e(0x209))/0x4)+parseInt(_0x4fa26e(0x1f9))/0x5*(parseInt(_0x4fa26e(0x20b))/0x6)+-parseInt(_0x4fa26e(0x1f3))/0x7+-parseInt(_0x4fa26e(0x288))/0x8+-parseInt(_0x4fa26e(0x280))/0x9;if(_0x3899c6===_0x193564)break;else _0x228a91['push'](_0x228a91['shift']());}catch(_0x322693){_0x228a91['push'](_0x228a91['shift']());}}}(_0x2080,0x5288e),function(_0x5964ac,_0x3a0608){var _0x35b0b3=_0x3164;typeof exports==_0x35b0b3(0x1e1)&&typeof module<'u'?_0x3a0608(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==_0x35b0b3(0x255)&&define[_0x35b0b3(0x1fa)]?define(['exports',_0x35b0b3(0x1b9),_0x35b0b3(0x272),_0x35b0b3(0x26b),_0x35b0b3(0x215),_0x35b0b3(0x268),'@univerjs-pro/collaboration',_0x35b0b3(0x281),_0x35b0b3(0x269),_0x35b0b3(0x27e),_0x35b0b3(0x1f8),_0x35b0b3(0x28c)],_0x3a0608):(_0x5964ac=typeof globalThis<'u'?globalThis:_0x5964ac||self,_0x3a0608(_0x5964ac[_0x35b0b3(0x225)]={},_0x5964ac['UniverCore'],_0x5964ac[_0x35b0b3(0x24f)],_0x5964ac[_0x35b0b3(0x28a)],_0x5964ac['UniverDesign'],_0x5964ac[_0x35b0b3(0x28a)],_0x5964ac[_0x35b0b3(0x284)],_0x5964ac[_0x35b0b3(0x1f0)],_0x5964ac[_0x35b0b3(0x211)],_0x5964ac[_0x35b0b3(0x27e)],_0x5964ac[_0x35b0b3(0x27e)][_0x35b0b3(0x1ed)],_0x5964ac['UniverSheetsUi']));}(this,function(_0x44077e,_0x51474e,_0x280c5b,_0x4a46f7,_0x7b2ff1,_0x1796a7,_0xee3dd6,_0x31ec28,_0x249ad7,_0x3586ba,_0x2e3c35,_0x5cda5f){'use strict';var _0x555ec1=_0x3164;var _0x1ed461=Object['defineProperty'],_0x5c8143=(_0x4cb13b,_0x38cb65,_0x398e44)=>_0x38cb65 in _0x4cb13b?_0x1ed461(_0x4cb13b,_0x38cb65,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x398e44}):_0x4cb13b[_0x38cb65]=_0x398e44,_0x1654bd=(_0xdd878c,_0x436112,_0x3ec1bb)=>_0x5c8143(_0xdd878c,typeof _0x436112!=_0x555ec1(0x253)?_0x436112+'':_0x436112,_0x3ec1bb),_0x1ce3cc=function(){var _0x79021d=_0x555ec1;return _0x1ce3cc=Object['assign']||function(_0x1a5412){var _0x2b68b2=_0x3164;for(var _0x234b45,_0x2c294b=0x1,_0x424920=arguments[_0x2b68b2(0x23e)];_0x2c294b<_0x424920;_0x2c294b++){_0x234b45=arguments[_0x2c294b];for(var _0x7813d7 in _0x234b45)Object['prototype'][_0x2b68b2(0x267)]['call'](_0x234b45,_0x7813d7)&&(_0x1a5412[_0x7813d7]=_0x234b45[_0x7813d7]);}return _0x1a5412;},_0x1ce3cc[_0x79021d(0x29a)](this,arguments);},_0x45c503=function(_0x457e5f,_0x34ee45){var _0x3fad35=_0x555ec1,_0x2d0c58={};for(var _0x1b85b0 in _0x457e5f)Object[_0x3fad35(0x2a9)]['hasOwnProperty'][_0x3fad35(0x271)](_0x457e5f,_0x1b85b0)&&_0x34ee45[_0x3fad35(0x1bb)](_0x1b85b0)<0x0&&(_0x2d0c58[_0x1b85b0]=_0x457e5f[_0x1b85b0]);if(_0x457e5f!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x580a80=0x0,_0x1b85b0=Object[_0x3fad35(0x2ab)](_0x457e5f);_0x580a80<_0x1b85b0['length'];_0x580a80++)_0x34ee45[_0x3fad35(0x1bb)](_0x1b85b0[_0x580a80])<0x0&&Object[_0x3fad35(0x2a9)][_0x3fad35(0x25c)][_0x3fad35(0x271)](_0x457e5f,_0x1b85b0[_0x580a80])&&(_0x2d0c58[_0x1b85b0[_0x580a80]]=_0x457e5f[_0x1b85b0[_0x580a80]]);}return _0x2d0c58;},_0x3e732f=_0x1796a7[_0x555ec1(0x1b2)](function(_0x7703b8,_0x3a28b8){var _0x5cb754=_0x555ec1,_0x4ab508=_0x7703b8[_0x5cb754(0x1df)],_0x40b4c2=_0x7703b8['id'],_0xd934c6=_0x7703b8[_0x5cb754(0x1d2)],_0x4534bb=_0x7703b8[_0x5cb754(0x1db)],_0x3e0598=_0x45c503(_0x7703b8,[_0x5cb754(0x1df),'id',_0x5cb754(0x1d2),_0x5cb754(0x1db)]),_0x1dd7e6=_0x5cb754(0x219)[_0x5cb754(0x1c3)](_0x40b4c2,'\x20')['concat'](_0xd934c6||'')[_0x5cb754(0x297)](),_0x1a3ee4=_0x1796a7[_0x5cb754(0x1ee)]('_'[_0x5cb754(0x1c3)](_0x421703()));return _0x577f3c(_0x4ab508,''[_0x5cb754(0x1c3)](_0x40b4c2),{'defIds':_0x4ab508['defIds'],'idSuffix':_0x1a3ee4[_0x5cb754(0x1ce)]},_0x1ce3cc({'ref':_0x3a28b8,'className':_0x1dd7e6},_0x3e0598),_0x4534bb);});function _0x577f3c(_0x2ef92e,_0x5950b1,_0x491ca9,_0x394cf2,_0x5a77b0){var _0x2b30b0=_0x555ec1;return _0x1796a7[_0x2b30b0(0x21e)](_0x2ef92e['tag'],_0x1ce3cc(_0x1ce3cc({'key':_0x5950b1},_0x26bf9c(_0x2ef92e,_0x491ca9,_0x5a77b0)),_0x394cf2),(_0x413181(_0x2ef92e,_0x491ca9)[_0x2b30b0(0x22f)]||[])[_0x2b30b0(0x1d9)](function(_0x30fc3e,_0x55543f){var _0x171a8a=_0x2b30b0;return _0x577f3c(_0x30fc3e,''['concat'](_0x5950b1,'-')[_0x171a8a(0x1c3)](_0x2ef92e['tag'],'-')[_0x171a8a(0x1c3)](_0x55543f),_0x491ca9,void 0x0,_0x5a77b0);}));}function _0x26bf9c(_0x2fbcec,_0x46bf94,_0x20a7fb){var _0xa6d733=_0x555ec1,_0x33cc23=_0x1ce3cc({},_0x2fbcec[_0xa6d733(0x24a)]);_0x20a7fb!=null&&_0x20a7fb[_0xa6d733(0x25a)]&&_0x33cc23['fill']===_0xa6d733(0x25a)&&(_0x33cc23[_0xa6d733(0x1e4)]=_0x20a7fb['colorChannel1']),_0x2fbcec[_0xa6d733(0x25d)]===_0xa6d733(0x22b)&&_0x33cc23['id']&&(_0x33cc23['id']=_0x33cc23['id']+_0x46bf94['idSuffix']),Object[_0xa6d733(0x238)](_0x33cc23)[_0xa6d733(0x1d0)](function(_0xed0008){var _0x482356=_0xa6d733,_0x1156a0=_0xed0008[0x0],_0x56182e=_0xed0008[0x1];_0x1156a0===_0x482356(0x22b)&&typeof _0x56182e==_0x482356(0x1c0)&&(_0x33cc23[_0x1156a0]=_0x56182e[_0x482356(0x235)](/url\(#(.*)\)/,_0x482356(0x1b5)['concat'](_0x46bf94['idSuffix'],')')));});var _0x4177cf=_0x46bf94[_0xa6d733(0x1ff)];return!_0x4177cf||_0x4177cf['length']===0x0||(_0x2fbcec[_0xa6d733(0x25d)]===_0xa6d733(0x23d)&&_0x33cc23[_0xa6d733(0x1c1)]&&(_0x33cc23[_0xa6d733(0x1c1)]=_0x33cc23[_0xa6d733(0x1c1)]+_0x46bf94[_0xa6d733(0x220)]),Object['entries'](_0x33cc23)[_0xa6d733(0x1d0)](function(_0x55b7eb){var _0x2613d9=_0xa6d733,_0x290bfa=_0x55b7eb[0x0],_0x7d2883=_0x55b7eb[0x1];typeof _0x7d2883==_0x2613d9(0x1c0)&&(_0x33cc23[_0x290bfa]=_0x7d2883['replace'](/url\(#(.*)\)/,_0x2613d9(0x1b5)[_0x2613d9(0x1c3)](_0x46bf94['idSuffix'],')')));})),_0x33cc23;}function _0x413181(_0x43e07b,_0x17208b){var _0x2e09f1=_0x555ec1,_0x2a93f7,_0x18ff48=_0x17208b[_0x2e09f1(0x1ff)];return!_0x18ff48||_0x18ff48['length']===0x0?_0x43e07b:_0x43e07b[_0x2e09f1(0x25d)]===_0x2e09f1(0x1cc)&&(!((_0x2a93f7=_0x43e07b[_0x2e09f1(0x22f)])===null||_0x2a93f7===void 0x0)&&_0x2a93f7[_0x2e09f1(0x23e)])?_0x1ce3cc(_0x1ce3cc({},_0x43e07b),{'children':_0x43e07b['children'][_0x2e09f1(0x1d9)](function(_0x4ff821){var _0x1211e0=_0x2e09f1;return typeof _0x4ff821[_0x1211e0(0x24a)]['id']==_0x1211e0(0x1c0)&&_0x18ff48&&_0x18ff48[_0x1211e0(0x266)](_0x4ff821['attrs']['id'])?_0x1ce3cc(_0x1ce3cc({},_0x4ff821),{'attrs':_0x1ce3cc(_0x1ce3cc({},_0x4ff821[_0x1211e0(0x24a)]),{'id':_0x4ff821[_0x1211e0(0x24a)]['id']+_0x17208b[_0x1211e0(0x220)]})}):_0x4ff821;})}):_0x43e07b;}function _0x421703(){var _0x8179b5=_0x555ec1;return Math[_0x8179b5(0x258)]()[_0x8179b5(0x279)](0x24)[_0x8179b5(0x1f4)](0x2,0x8);}_0x3e732f[_0x555ec1(0x201)]=_0x555ec1(0x264);var _0x388310={'tag':_0x555ec1(0x214),'attrs':{'xmlns':_0x555ec1(0x273),'fill':_0x555ec1(0x21d),'viewBox':_0x555ec1(0x21a),'width':_0x555ec1(0x1ca),'height':_0x555ec1(0x1ca)},'children':[{'tag':_0x555ec1(0x23c),'attrs':{'fill':_0x555ec1(0x226),'d':_0x555ec1(0x26e)}},{'tag':_0x555ec1(0x23c),'attrs':{'fill':_0x555ec1(0x226),'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':_0x555ec1(0x233),'clipRule':_0x555ec1(0x233)}}]},_0x290086=_0x1796a7[_0x555ec1(0x1b2)](function(_0x5c01a8,_0x8542cf){var _0x569a05=_0x555ec1;return _0x1796a7['createElement'](_0x3e732f,Object[_0x569a05(0x1be)]({},_0x5c01a8,{'id':_0x569a05(0x29d),'ref':_0x8542cf,'icon':_0x388310}));});_0x290086['displayName']=_0x555ec1(0x27d);class _0x581686 extends _0x51474e[_0x555ec1(0x27b)]{constructor(){var _0x43f00a=_0x555ec1;super(...arguments),_0x1654bd(this,_0x43f00a(0x277),new Set()),_0x1654bd(this,_0x43f00a(0x21b),new Set());}['registerSharedOperation'](_0x3f23ce){var _0xca8acc=_0x555ec1;return this[_0xca8acc(0x277)]['add'](_0x3f23ce),_0x51474e[_0xca8acc(0x23f)](()=>this[_0xca8acc(0x277)][_0xca8acc(0x1b8)](_0x3f23ce));}[_0x555ec1(0x1e8)](_0x4283d7){var _0xe5d78b=_0x555ec1;return this[_0xe5d78b(0x21b)][_0xe5d78b(0x295)](_0x4283d7),_0x51474e[_0xe5d78b(0x23f)](()=>this['_reporters'][_0xe5d78b(0x1b8)](_0x4283d7));}[_0x555ec1(0x29f)](_0x5989a8){var _0x1169b1=_0x555ec1;return this[_0x1169b1(0x277)][_0x1169b1(0x230)](_0x5989a8);}[_0x555ec1(0x1d6)](_0x18de13){var _0x51e88a=_0x555ec1;return Array[_0x51e88a(0x250)](this[_0x51e88a(0x21b)])[_0x51e88a(0x1d9)](_0x45b5de=>_0x45b5de(_0x18de13));}}var _0x52fea4=Object[_0x555ec1(0x221)],_0x398df2=(_0x4a27b7,_0x189f7c,_0x2ba8d5,_0x33f8a6)=>{var _0xa9d1ff=_0x555ec1;for(var _0x7fe693=_0x33f8a6>0x1?void 0x0:_0x33f8a6?_0x52fea4(_0x189f7c,_0x2ba8d5):_0x189f7c,_0x521ab0=_0x4a27b7[_0xa9d1ff(0x23e)]-0x1,_0x2bda32;_0x521ab0>=0x0;_0x521ab0--)(_0x2bda32=_0x4a27b7[_0x521ab0])&&(_0x7fe693=_0x2bda32(_0x7fe693)||_0x7fe693);return _0x7fe693;},_0x5e2d47=(_0x1851cd,_0x85099a)=>(_0x1e026e,_0x196d09)=>_0x85099a(_0x1e026e,_0x196d09,_0x1851cd);_0x44077e[_0x555ec1(0x1ec)]=class extends _0x51474e['RxDisposable']{constructor(_0x14a7cd,_0x305405,_0xa4b05b){var _0x5218b7=_0x555ec1;super(),_0x1654bd(this,_0x5218b7(0x2ac),new Map()),(this[_0x5218b7(0x251)]=_0x14a7cd,this['_injector']=_0x305405,this['_collabSessionService']=_0xa4b05b,this['_init']());}async[_0x555ec1(0x299)](_0x5ddbf9){var _0x4d2377=_0x555ec1;return this[_0x4d2377(0x2ac)][_0x4d2377(0x230)](_0x5ddbf9)||await this['_startLiveShareCoordinator'](_0x5ddbf9),this[_0x4d2377(0x2ac)][_0x4d2377(0x26a)](_0x5ddbf9);}[_0x555ec1(0x21f)](){var _0x3206f6=_0x555ec1;this[_0x3206f6(0x251)]['getTypeOfUnitAdded$'](_0x51474e[_0x3206f6(0x24d)]['UNIVER_SHEET'])['pipe'](_0x2e3c35[_0x3206f6(0x1e5)](this[_0x3206f6(0x1c5)]))['subscribe'](async _0x15a4f1=>{var _0x3ed59b=_0x3206f6;const _0x3bf9f6=_0x15a4f1[_0x3ed59b(0x1d3)]();this[_0x3ed59b(0x2ac)][_0x3ed59b(0x230)](_0x3bf9f6)||this['_startLiveShareCoordinator'](_0x3bf9f6);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x51474e['UniverInstanceType'][_0x3206f6(0x26f)])['pipe'](_0x2e3c35['takeUntil'](this[_0x3206f6(0x1c5)]))[_0x3206f6(0x1e9)](_0x3fd234=>{var _0x1279be=_0x3206f6;const _0x5975fd=_0x3fd234[_0x1279be(0x1d3)](),_0x2ba574=this['_entities'][_0x1279be(0x26a)](_0x5975fd);_0x2ba574==null||_0x2ba574['dispose']();});}async[_0x555ec1(0x1eb)](_0x2f4aae){var _0x554bd2=_0x555ec1;const _0x4ea331=await this[_0x554bd2(0x1b7)][_0x554bd2(0x2a7)](_0x2f4aae),_0x272f3b=this[_0x554bd2(0x1bf)][_0x554bd2(0x206)](_0x44077e[_0x554bd2(0x20f)],_0x2f4aae,_0x4ea331);return _0x272f3b[_0x554bd2(0x294)](),this[_0x554bd2(0x2ac)][_0x554bd2(0x1c6)](_0x2f4aae,_0x272f3b),_0x272f3b;}},_0x44077e[_0x555ec1(0x1ec)]=_0x398df2([_0x5e2d47(0x0,_0x51474e[_0x555ec1(0x1f5)]),_0x5e2d47(0x1,_0x51474e[_0x555ec1(0x231)](_0x51474e['Injector'])),_0x5e2d47(0x2,_0x51474e[_0x555ec1(0x231)](_0x31ec28[_0x555ec1(0x234)]))],_0x44077e['LiveShareController']);var _0xd09807=(_0x20ff88=>(_0x20ff88[_0x555ec1(0x2a2)]='offline',_0x20ff88[_0x555ec1(0x216)]=_0x555ec1(0x202),_0x20ff88[_0x555ec1(0x24c)]=_0x555ec1(0x278),_0x20ff88[_0x555ec1(0x247)]=_0x555ec1(0x1de),_0x20ff88[_0x555ec1(0x29e)]='presenting',_0x20ff88))(_0xd09807||{});const _0x5d68d5=_0x555ec1(0x25f),_0x596944=0xc8;_0x44077e['LiveShareCoordinator']=class extends _0x51474e[_0x555ec1(0x22c)]{constructor(_0x1aa907,_0x53a8c9,_0x3f9217,_0x296391,_0x380a79){var _0x157ffc=_0x555ec1;super(),_0x1654bd(this,_0x157ffc(0x252),new _0x3586ba[(_0x157ffc(0x1c7))](_0x157ffc(0x202))),_0x1654bd(this,_0x157ffc(0x1c4),this['_status$'][_0x157ffc(0x217)]()),_0x1654bd(this,_0x157ffc(0x21f),!0x1),_0x1654bd(this,_0x157ffc(0x296),null),_0x1654bd(this,_0x157ffc(0x1c8),null),(this[_0x157ffc(0x28e)]=_0x1aa907,this[_0x157ffc(0x2aa)]=_0x53a8c9,this[_0x157ffc(0x1f7)]=_0x3f9217,this[_0x157ffc(0x1ea)]=_0x296391,this[_0x157ffc(0x2a8)]=_0x380a79);}get[_0x555ec1(0x1bd)](){return this['_status$']['getValue']();}[_0x555ec1(0x227)](){var _0x36b155=_0x555ec1,_0x322828;(_0x322828=this[_0x36b155(0x296)])==null||_0x322828[_0x36b155(0x227)](),this['_status$']['next']('idle'),this[_0x36b155(0x252)][_0x36b155(0x2a0)]();}[_0x555ec1(0x294)](){var _0x3d4cde=_0x555ec1;this['_init']||(this[_0x3d4cde(0x21f)]=!0x0,this[_0x3d4cde(0x2aa)]['sessionStatus$'][_0x3d4cde(0x1f2)](_0x2e3c35['takeUntil'](this['dispose$']))[_0x3d4cde(0x1e9)](_0x20474c=>{var _0x4fc572=_0x3d4cde;switch(_0x20474c){case _0x31ec28[_0x4fc572(0x2a5)][_0x4fc572(0x2a2)]:this[_0x4fc572(0x22d)]();break;case _0x31ec28[_0x4fc572(0x2a5)][_0x4fc572(0x1e2)]:this[_0x4fc572(0x239)]();break;}}),this[_0x3d4cde(0x2aa)][_0x3d4cde(0x245)][_0x3d4cde(0x1f2)](_0x2e3c35[_0x3d4cde(0x1e5)](this[_0x3d4cde(0x1c5)]))[_0x3d4cde(0x1e9)](_0x3df371=>{var _0x2ebec7=_0x3d4cde;const {eventID:_0x2016a0}=_0x3df371;switch(_0x2016a0){case _0xee3dd6[_0x2ebec7(0x2a3)][_0x2ebec7(0x200)]:this[_0x2ebec7(0x1dd)](_0x3df371);break;case _0xee3dd6[_0x2ebec7(0x2a3)][_0x2ebec7(0x1d1)]:this[_0x2ebec7(0x232)](_0x3df371);break;case _0xee3dd6['CollaborationEvent'][_0x2ebec7(0x287)]:this['_handleTerminate']();break;case _0xee3dd6['CollaborationEvent']['NEW_CHANGESETS']:this[_0x2ebec7(0x27f)](_0x3df371);break;}}));}[_0x555ec1(0x29c)](){var _0x340caf=_0x555ec1;this[_0x340caf(0x2aa)][_0x340caf(0x1d5)]({'eventID':_0xee3dd6[_0x340caf(0x2a3)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession']['getMemberID']()}},this['_unitID']);}[_0x555ec1(0x246)](){var _0x54bbf8=_0x555ec1;this[_0x54bbf8(0x1bd)]===_0x54bbf8(0x290)&&(this[_0x54bbf8(0x252)][_0x54bbf8(0x260)](_0x54bbf8(0x202)),this['_collabSession'][_0x54bbf8(0x1d5)]({'eventID':_0xee3dd6[_0x54bbf8(0x2a3)][_0x54bbf8(0x287)],'data':{'unitID':this[_0x54bbf8(0x28e)]}},this['_unitID']));}[_0x555ec1(0x1cb)](){var _0x13d30a=_0x555ec1;this[_0x13d30a(0x1bd)]===_0x13d30a(0x1de)&&(this['_status$'][_0x13d30a(0x260)](_0x13d30a(0x278)),this['_startFollowing']());}[_0x555ec1(0x1bc)](){var _0x53bf97=_0x555ec1;this[_0x53bf97(0x1bd)]===_0x53bf97(0x278)&&this[_0x53bf97(0x270)]();}[_0x555ec1(0x1dd)](_0x2dda10){var _0x3cd8b2=_0x555ec1;const {presenter:_0x3335a6}=_0x2dda10['data'],_0x387795=this[_0x3cd8b2(0x2aa)][_0x3cd8b2(0x1cf)]();this[_0x3cd8b2(0x1c8)]=_0x3335a6,_0x3335a6===_0x387795?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x3cd8b2(0x1bd)]!==_0x3cd8b2(0x1de)&&(this[_0x3cd8b2(0x1f6)](),this[_0x3cd8b2(0x26c)]());}[_0x555ec1(0x212)](){var _0x458c43=_0x555ec1;const _0x141742={'eventID':_0xee3dd6[_0x458c43(0x2a3)][_0x458c43(0x1b4)]};this[_0x458c43(0x2aa)][_0x458c43(0x1d5)](_0x141742,this[_0x458c43(0x28e)]);}[_0x555ec1(0x1f1)](){var _0x99c9d5=_0x555ec1;this[_0x99c9d5(0x1c8)]=null,this[_0x99c9d5(0x1bd)]!==_0x99c9d5(0x290)&&this[_0x99c9d5(0x1b6)]();}[_0x555ec1(0x27f)](_0x5cc5ca){var _0x598c8d=_0x555ec1;if(this[_0x598c8d(0x1bd)]==='following'&&this[_0x598c8d(0x1c8)]===_0x5cc5ca[_0x598c8d(0x228)]['memberID']){const _0x2396de=_0xee3dd6[_0x598c8d(0x244)](_0x5cc5ca[_0x598c8d(0x228)])[_0x598c8d(0x1e3)]['reverse']()[_0x598c8d(0x298)](_0x10970d=>_0x10970d['id']===_0x249ad7[_0x598c8d(0x249)]['id']);if(_0x2396de){const _0x207f3b=_0x2396de[_0x598c8d(0x205)][_0x598c8d(0x203)],_0x556e12=_0x2396de[_0x598c8d(0x205)][_0x598c8d(0x2a6)]['id'];setTimeout(()=>{var _0x1cbeca=_0x598c8d;this[_0x1cbeca(0x2a8)][_0x1cbeca(0x204)](_0x249ad7[_0x1cbeca(0x1e7)]['id'],{'unitId':_0x207f3b,'subUnitId':_0x556e12},{'fromCollab':!0x0});});}}}[_0x555ec1(0x1cd)](){var _0x468583=_0x555ec1;this['_status$']['next'](_0x468583(0x290));const _0xede5a0=new Map(),_0x35540e=this[_0x468583(0x296)]=new _0x51474e[(_0x468583(0x276))]();_0x35540e[_0x468583(0x295)](_0x51474e[_0x468583(0x23f)](()=>{var _0x28569a=_0x468583;_0xede5a0[_0x28569a(0x1d0)](_0x713393=>_0x713393[_0x28569a(0x2a0)]()),_0xede5a0[_0x28569a(0x213)]();})),_0x35540e[_0x468583(0x295)](this['_commandService'][_0x468583(0x241)](_0x3073f2=>{var _0x2ce6ea=_0x468583,_0xed1830;if(_0x3073f2[_0x2ce6ea(0x2a1)]!==_0x51474e[_0x2ce6ea(0x1d4)][_0x2ce6ea(0x2a4)]||!this[_0x2ce6ea(0x1ea)][_0x2ce6ea(0x29f)](_0x3073f2['id']))return;const {id:_0x6d18ba}=_0x3073f2;let _0x2e409b;_0xede5a0[_0x2ce6ea(0x230)](_0x6d18ba)?_0x2e409b=_0xede5a0[_0x2ce6ea(0x26a)](_0x6d18ba):(_0x2e409b=new _0x3586ba[(_0x2ce6ea(0x27a))](),_0xede5a0[_0x2ce6ea(0x1c6)](_0x6d18ba,_0x2e409b),_0x2e409b['pipe'](_0x2e3c35['throttleTime']((_0xed1830=this[_0x2ce6ea(0x1f7)]['getConfig'](_0x5d68d5))!=null?_0xed1830:_0x596944,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2ce6ea(0x1e9)](_0x3e16f2=>{var _0x33f381=_0x2ce6ea;this[_0x33f381(0x2aa)]['send']({'eventID':_0xee3dd6[_0x33f381(0x2a3)][_0x33f381(0x1d1)],'data':{'unitID':this[_0x33f381(0x28e)],'operations':{[_0x3e16f2['id']]:{'id':_0x3e16f2['id'],'params':JSON['stringify'](_0x3e16f2['params'])}}}},this['_unitID']);})),_0x2e409b[_0x2ce6ea(0x260)](_0x3073f2);})),this[_0x468583(0x1ea)]['getInitialStates'](this['_unitID'])[_0x468583(0x1d0)](_0x4ca89a=>this[_0x468583(0x2aa)]['send']({'eventID':_0xee3dd6[_0x468583(0x2a3)][_0x468583(0x1d1)],'data':{'unitID':this[_0x468583(0x28e)],'operations':{[_0x4ca89a['id']]:{'id':_0x4ca89a['id'],'params':JSON['stringify'](_0x4ca89a[_0x468583(0x205)])}}}},this[_0x468583(0x28e)]));}[_0x555ec1(0x1f6)](){var _0x79472e=_0x555ec1,_0x5e1977;this[_0x79472e(0x252)][_0x79472e(0x260)]('idle'),(_0x5e1977=this[_0x79472e(0x296)])==null||_0x5e1977[_0x79472e(0x227)](),this[_0x79472e(0x296)]=null;}[_0x555ec1(0x26c)](){var _0x35d6e5=_0x555ec1,_0xb90f2d;(_0xb90f2d=this['_commandDisposable'])==null||_0xb90f2d[_0x35d6e5(0x227)](),this[_0x35d6e5(0x252)][_0x35d6e5(0x260)](_0x35d6e5(0x278));}[_0x555ec1(0x1b6)](){var _0x569a41=_0x555ec1,_0x2428f8;this[_0x569a41(0x252)]['next'](_0x569a41(0x202)),(_0x2428f8=this['_commandDisposable'])==null||_0x2428f8[_0x569a41(0x227)](),this[_0x569a41(0x296)]=null;}[_0x555ec1(0x270)](){var _0x50acc3=_0x555ec1,_0x3be20a;this[_0x50acc3(0x252)][_0x50acc3(0x260)](_0x50acc3(0x1de)),(_0x3be20a=this[_0x50acc3(0x296)])==null||_0x3be20a[_0x50acc3(0x227)]();}[_0x555ec1(0x232)](_0x2ae4d4){var _0x1d7aa8=_0x555ec1;if([_0x1d7aa8(0x290),_0x1d7aa8(0x1de),_0x1d7aa8(0x289)]['includes'](this[_0x1d7aa8(0x1bd)])||!_0x2ae4d4[_0x1d7aa8(0x228)][_0x1d7aa8(0x23a)]||_0x2ae4d4[_0x1d7aa8(0x228)]['presenter']===this[_0x1d7aa8(0x2aa)][_0x1d7aa8(0x1cf)]())return;this[_0x1d7aa8(0x1bd)]==='idle'&&this[_0x1d7aa8(0x26c)]();const _0x362bef=_0x2ae4d4[_0x1d7aa8(0x228)][_0x1d7aa8(0x248)];Object[_0x1d7aa8(0x22e)](_0x362bef)[_0x1d7aa8(0x1d0)](_0x317f01=>{var _0x20f3db=_0x1d7aa8;this['_commandService']['executeCommand'](_0x317f01['id'],_0x317f01[_0x20f3db(0x205)]?JSON['parse'](_0x317f01[_0x20f3db(0x205)]):null,{'fromCollab':!0x0});});}[_0x555ec1(0x22d)](){var _0xb8cb26=_0x555ec1,_0x803551;this['_status$']['next']('offline'),(_0x803551=this['_commandDisposable'])==null||_0x803551[_0xb8cb26(0x227)]();}[_0x555ec1(0x239)](){var _0xe4b67e=_0x555ec1;this[_0xe4b67e(0x252)][_0xe4b67e(0x260)]('idle'),this[_0xe4b67e(0x212)]();}},_0x44077e['LiveShareCoordinator']=_0x398df2([_0x5e2d47(0x2,_0x51474e[_0x555ec1(0x292)]),_0x5e2d47(0x3,_0x51474e[_0x555ec1(0x231)](_0x581686)),_0x5e2d47(0x4,_0x51474e[_0x555ec1(0x1e6)])],_0x44077e[_0x555ec1(0x20f)]);function _0x5215f4(){var _0x1936e7=_0x555ec1;const _0x38c8d6=_0x280c5b[_0x1936e7(0x20e)](_0x44077e[_0x1936e7(0x1ec)]),_0x2c5744=_0x280c5b[_0x1936e7(0x20e)](_0x51474e[_0x1936e7(0x1f5)]),_0x4c3795=_0x280c5b[_0x1936e7(0x261)](()=>_0x2c5744['getCurrentTypeOfUnit$'](_0x51474e[_0x1936e7(0x24d)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x2e7bc6,_0x1dd81e]=_0x1796a7[_0x1936e7(0x22a)](null),[_0x48833c,_0xc3012a]=_0x1796a7[_0x1936e7(0x22a)](_0xd09807['IDLE']),_0x2697be=_0x1796a7[_0x1936e7(0x1ee)](null);return _0x1796a7[_0x1936e7(0x1fc)](()=>(_0x4c3795&&_0x38c8d6[_0x1936e7(0x299)](_0x4c3795[_0x1936e7(0x1d3)]())[_0x1936e7(0x262)](_0x6b829d=>{var _0x54451d=_0x1936e7;_0x1dd81e(_0x6b829d),_0x2697be['current']=_0x6b829d[_0x54451d(0x1c4)][_0x54451d(0x1e9)](_0x20b563=>{_0xc3012a(_0x20b563);});}),()=>{var _0x8d1a0=_0x1936e7,_0xf203a6;(_0xf203a6=_0x2697be[_0x8d1a0(0x1ce)])==null||_0xf203a6[_0x8d1a0(0x1dc)](),_0x2697be[_0x8d1a0(0x1ce)]=null;}),[_0x4c3795,_0x38c8d6]),_0x2e7bc6?_0x4a46f7[_0x1936e7(0x274)](_0x7b2ff1[_0x1936e7(0x229)],{'align':_0x1936e7(0x236),'disabled':_0x48833c===_0xd09807[_0x1936e7(0x2a2)],'className':_0x1936e7(0x20d),'overlay':_0x4a46f7[_0x1936e7(0x274)](_0x113a58,{'status':_0x48833c,'coordinator':_0x2e7bc6}),'children':_0x4a46f7[_0x1936e7(0x274)](_0x1936e7(0x285),{'className':_0x7b2ff1[_0x1936e7(0x291)](_0x1936e7(0x1c9),{'univer-cursor-not-allowed':_0x48833c===_0xd09807[_0x1936e7(0x2a2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x48833c!==_0xd09807[_0x1936e7(0x2a2)]}),'type':_0x1936e7(0x285),'children':_0x4a46f7['jsx'](_0x290086,{'className':_0x1936e7(0x210)})})}):null;}function _0x113a58(_0x5730b7){var _0x2f5ec4=_0x555ec1;const {status:_0x140c52,coordinator:_0x3b9cc6}=_0x5730b7;switch(_0x140c52){case _0xd09807[_0x2f5ec4(0x216)]:return _0x4a46f7[_0x2f5ec4(0x274)](_0x405d1e,{'coordinator':_0x3b9cc6});case _0xd09807['FOLLOWING']:return _0x4a46f7[_0x2f5ec4(0x274)](_0x2d1099,{'coordinator':_0x3b9cc6});case _0xd09807[_0x2f5ec4(0x247)]:return _0x4a46f7[_0x2f5ec4(0x274)](_0x419592,{'coordinator':_0x3b9cc6});case _0xd09807[_0x2f5ec4(0x2a2)]:return _0x4a46f7[_0x2f5ec4(0x274)](_0x26cbd1,{});case _0xd09807[_0x2f5ec4(0x29e)]:return _0x4a46f7[_0x2f5ec4(0x274)](_0x3f0a3e,{'coordinator':_0x3b9cc6});default:return null;}}function _0x405d1e(_0x262979){var _0x5f0f36=_0x555ec1;const {coordinator:_0x47a5ed}=_0x262979;return _0x4a46f7[_0x5f0f36(0x24e)](_0x4a46f7[_0x5f0f36(0x257)],{'children':[_0x4a46f7[_0x5f0f36(0x274)](_0x5f0f36(0x1c2),{'className':_0x5f0f36(0x259),'children':_0x5f0f36(0x1da)}),_0x4a46f7[_0x5f0f36(0x274)](_0x7b2ff1['Button'],{'onClick':()=>_0x47a5ed['tryStartPresenting'](),'children':_0x5f0f36(0x263)})]});}function _0x2d1099(_0x3e8ed4){var _0x51e7cf=_0x555ec1;const {coordinator:_0x24a880}=_0x3e8ed4;return _0x4a46f7[_0x51e7cf(0x24e)](_0x4a46f7[_0x51e7cf(0x257)],{'children':[_0x4a46f7[_0x51e7cf(0x274)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x51e7cf(0x1e0)}),_0x4a46f7['jsx'](_0x7b2ff1[_0x51e7cf(0x27c)],{'onClick':()=>_0x24a880[_0x51e7cf(0x1bc)](),'children':_0x51e7cf(0x25e)})]});}function _0x419592(_0x417e1b){var _0x591d11=_0x555ec1;const {coordinator:_0x22fb86}=_0x417e1b;return _0x4a46f7[_0x591d11(0x24e)](_0x4a46f7[_0x591d11(0x257)],{'children':[_0x4a46f7['jsx'](_0x591d11(0x1c2),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4a46f7[_0x591d11(0x274)](_0x7b2ff1['Button'],{'variant':_0x591d11(0x1d7),'onClick':()=>_0x22fb86[_0x591d11(0x1cb)](),'children':'Start\x20following'})]});}function _0x3f0a3e(_0x54c8b4){var _0x1cab68=_0x555ec1;const {coordinator:_0x5a864e}=_0x54c8b4;return _0x4a46f7['jsxs'](_0x4a46f7['Fragment'],{'children':[_0x4a46f7[_0x1cab68(0x274)](_0x1cab68(0x1c2),{'className':_0x1cab68(0x259),'children':_0x1cab68(0x208)}),_0x4a46f7['jsx'](_0x7b2ff1[_0x1cab68(0x27c)],{'variant':_0x1cab68(0x1ef),'onClick':()=>_0x5a864e[_0x1cab68(0x246)](),'children':_0x1cab68(0x21c)})]});}function _0x26cbd1(){var _0x5e4180=_0x555ec1;return _0x4a46f7[_0x5e4180(0x274)](_0x4a46f7['Fragment'],{'children':_0x5e4180(0x222)});}var _0x46a3cf=Object[_0x555ec1(0x221)],_0x992182=(_0x4e9e72,_0x13a38e,_0x211aff,_0x2d4dd2)=>{var _0x4a5649=_0x555ec1;for(var _0x2d35fa=_0x2d4dd2>0x1?void 0x0:_0x2d4dd2?_0x46a3cf(_0x13a38e,_0x211aff):_0x13a38e,_0xcdf4a4=_0x4e9e72[_0x4a5649(0x23e)]-0x1,_0x2dd61a;_0xcdf4a4>=0x0;_0xcdf4a4--)(_0x2dd61a=_0x4e9e72[_0xcdf4a4])&&(_0x2d35fa=_0x2dd61a(_0x2d35fa)||_0x2d35fa);return _0x2d35fa;},_0x38e399=(_0xa1fd09,_0x134db9)=>(_0x455fc6,_0x5b3697)=>_0x134db9(_0x455fc6,_0x5b3697,_0xa1fd09);_0x44077e['DesktopLiveShareController']=class extends _0x51474e['Disposable']{constructor(_0x19b974,_0x2fd799){var _0x1c7c27=_0x555ec1;super(),this[_0x1c7c27(0x1bf)]=_0x19b974,this[_0x1c7c27(0x275)]=_0x2fd799,this[_0x1c7c27(0x240)]();}[_0x555ec1(0x240)](){var _0x21af36=_0x555ec1;this[_0x21af36(0x1fe)](this[_0x21af36(0x275)][_0x21af36(0x282)](_0x280c5b[_0x21af36(0x20a)][_0x21af36(0x237)],()=>_0x280c5b[_0x21af36(0x23b)](_0x5215f4,this[_0x21af36(0x1bf)])));}},_0x44077e[_0x555ec1(0x223)]=_0x992182([_0x38e399(0x0,_0x51474e[_0x555ec1(0x231)](_0x51474e[_0x555ec1(0x20c)])),_0x38e399(0x1,_0x280c5b[_0x555ec1(0x24b)])],_0x44077e['DesktopLiveShareController']);const _0x5f1270='live-share.config',_0x866bd={};var _0x4ef706=Object[_0x555ec1(0x221)],_0x5c87cf=(_0x39028f,_0x11bfce,_0x2b6da9,_0xce324d)=>{for(var _0x55543a=_0xce324d>0x1?void 0x0:_0xce324d?_0x4ef706(_0x11bfce,_0x2b6da9):_0x11bfce,_0x162128=_0x39028f['length']-0x1,_0x543e8f;_0x162128>=0x0;_0x162128--)(_0x543e8f=_0x39028f[_0x162128])&&(_0x55543a=_0x543e8f(_0x55543a)||_0x55543a);return _0x55543a;},_0x25b941=(_0x2542a6,_0x2c4ccf)=>(_0x31b06c,_0x2a294d)=>_0x2c4ccf(_0x31b06c,_0x2a294d,_0x2542a6);let _0x391889=class extends _0x51474e[_0x555ec1(0x27b)]{constructor(_0x58fd1a){var _0x5846ac=_0x555ec1;super(),this[_0x5846ac(0x1ea)]=_0x58fd1a,this['_init']();}['_init'](){var _0x4b397b=_0x555ec1;[_0x5cda5f[_0x4b397b(0x2ad)]['id'],_0x5cda5f[_0x4b397b(0x1fd)]['id'],_0x249ad7[_0x4b397b(0x1e7)]['id']]['forEach'](_0x19c4cb=>{var _0x5cbb9b=_0x4b397b;this[_0x5cbb9b(0x1fe)](this[_0x5cbb9b(0x1ea)][_0x5cbb9b(0x243)](_0x19c4cb));});}};_0x391889=_0x5c87cf([_0x25b941(0x0,_0x51474e[_0x555ec1(0x231)](_0x581686))],_0x391889);var _0x5f689e=Object['defineProperty'],_0x3c3a0b=Object[_0x555ec1(0x221)],_0x4dd460=(_0x1a97f9,_0x4b9d40,_0x1452ca)=>_0x4b9d40 in _0x1a97f9?_0x5f689e(_0x1a97f9,_0x4b9d40,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1452ca}):_0x1a97f9[_0x4b9d40]=_0x1452ca,_0x59ff44=(_0x26a8e1,_0x36b59c,_0x394b14,_0x476f2b)=>{var _0x1702e6=_0x555ec1;for(var _0x418b62=_0x476f2b>0x1?void 0x0:_0x476f2b?_0x3c3a0b(_0x36b59c,_0x394b14):_0x36b59c,_0x37041d=_0x26a8e1[_0x1702e6(0x23e)]-0x1,_0x378285;_0x37041d>=0x0;_0x37041d--)(_0x378285=_0x26a8e1[_0x37041d])&&(_0x418b62=_0x378285(_0x418b62)||_0x418b62);return _0x418b62;},_0x1d561f=(_0x2c5fc1,_0x549c38)=>(_0x4f7f4c,_0x18ebd2)=>_0x549c38(_0x4f7f4c,_0x18ebd2,_0x2c5fc1),_0x7819be=(_0x4c0809,_0x8c5fe0,_0x388ba4)=>_0x4dd460(_0x4c0809,typeof _0x8c5fe0!=_0x555ec1(0x253)?_0x8c5fe0+'':_0x8c5fe0,_0x388ba4);const _0x132459='UNIVER_LIVE_SHARE_PLUGIN';_0x44077e[_0x555ec1(0x26d)]=class extends _0x51474e['Plugin']{constructor(_0x3758a9=_0x866bd,_0x3c8e1e,_0x17a9b9){var _0x2eb774=_0x555ec1;super(),this[_0x2eb774(0x1fb)]=_0x3758a9,this[_0x2eb774(0x1bf)]=_0x3c8e1e,this[_0x2eb774(0x1f7)]=_0x17a9b9;const {..._0x118062}=_0x51474e[_0x2eb774(0x1d8)]({},_0x866bd,this[_0x2eb774(0x1fb)]);this[_0x2eb774(0x1f7)][_0x2eb774(0x254)](_0x5f1270,_0x118062);}[_0x555ec1(0x28d)](){var _0x565feb=_0x555ec1;_0x51474e[_0x565feb(0x256)](this[_0x565feb(0x1bf)],_0x51474e['mergeOverrideWithDependencies']([[_0x581686],[_0x44077e[_0x565feb(0x1ec)]],[_0x391889],[_0x44077e['DesktopLiveShareController']]],this[_0x565feb(0x1fb)][_0x565feb(0x242)])),_0x51474e['touchDependencies'](this['_injector'],[[_0x391889]]);}[_0x555ec1(0x28f)](){var _0x2b6581=_0x555ec1;_0x51474e[_0x2b6581(0x1ba)](this[_0x2b6581(0x1bf)],[[_0x44077e['DesktopLiveShareController']]]);}},_0x7819be(_0x44077e[_0x555ec1(0x26d)],'type',_0x51474e[_0x555ec1(0x24d)][_0x555ec1(0x29b)]),_0x7819be(_0x44077e[_0x555ec1(0x26d)],_0x555ec1(0x28b),_0x132459),_0x44077e[_0x555ec1(0x26d)]=_0x59ff44([_0x51474e[_0x555ec1(0x207)](_0x31ec28['UniverCollaborationClientPlugin']),_0x1d561f(0x1,_0x51474e['Inject'](_0x51474e[_0x555ec1(0x20c)])),_0x1d561f(0x2,_0x51474e[_0x555ec1(0x292)])],_0x44077e[_0x555ec1(0x26d)]),_0x44077e[_0x555ec1(0x224)]=_0x5215f4,_0x44077e['LiveShareService']=_0x581686,_0x44077e[_0x555ec1(0x218)]=_0xd09807,Object[_0x555ec1(0x1b3)](_0x44077e,Symbol[_0x555ec1(0x25b)],{'value':_0x555ec1(0x265)});}));function _0x2080(){var _0x2a9323=['assign','_injector','string','xlink:href','div','concat','status$','dispose$','set','BehaviorSubject','_presenter','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','1em','startFollowing','defs','_startPresenting','current','getMemberID','forEach','LIVESHARE_OPERATION','className','getUnitId','CommandType','send','getInitialStates','text','merge','map','Present\x20this\x20document','extend','unsubscribe','_handleNewHost','not-following','icon','You\x27re\x20following\x20the\x20presenter','object','ONLINE','mutations','fill','takeUntil','ICommandService','SetWorksheetActiveOperation','registerInitialStateReporter','subscribe','_liveShareService','_startLiveShareCoordinator','LiveShareController','operators','useRef','default','UniverProCollaborationClient','_handleTerminate','pipe','3703245TbFFBH','substring','IUniverInstanceService','_stopPresenting','_configService','rxjs/operators','15605ARYbQV','amd','_config','useEffect','SetScrollOperation','disposeWithMe','defIds','LIVESHARE_NEW_HOST','displayName','idle','unitId','executeCommand','params','createInstance','DependentOn','You\x27re\x20presenting\x20the\x20document','2066352tdgCKm','BuiltInUIPart','1074aJCepG','Injector','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','useDependency','LiveShareCoordinator','univer-size-4','UniverSheets','_fetchOperations','clear','svg','@univerjs/design','IDLE','asObservable','LiveShareStatus','univerjs-icon\x20univerjs-icon-','0\x200\x2017\x2017','_reporters','Stop\x20presenting','none','createElement','_init','idSuffix','getOwnPropertyDescriptor','You\x27are\x20offline.','DesktopLiveShareController','LiveShare','UniverProLiveShare','currentColor','dispose','data','Dropdown','useState','mask','RxDisposable','_handleOffline','values','children','has','Inject','_handleOperation','evenodd','CollaborationSessionService','replace','end','HEADER_MENU','entries','_handleOnline','presenter','connectInjector','path','use','length','toDisposable','_mountLiveShare','onCommandExecuted','override','registerSharedOperation','parseProtocolChangeset','event$','stopPresenting','NOT_FOLLOWING','operations','InsertSheetMutation','attrs','IUIPartsService','FOLLOWING','UniverInstanceType','jsxs','UniverUi','from','_univerInstanceService','_status$','symbol','setConfig','function','registerDependencies','Fragment','random','univer-mb-3\x20univer-w-full\x20univer-text-sm','colorChannel1','toStringTag','propertyIsEnumerable','tag','Stop\x20following','SAME_OPERATION_SHARE_INTERVAL','next','useObservable','then','Start','UniverIcon','Module','includes','hasOwnProperty','react','@univerjs/sheets','get','react/jsx-runtime','_startFollowing','UniverLiveSharePlugin','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_SHEET','_stopFollowing','call','@univerjs/ui','http://www.w3.org/2000/svg','jsx','_uiPartsService','DisposableCollection','_sharedOperations','following','toString','Subject','Disposable','Button','LiveShareIcon','rxjs','_handleNewChangeSets','2727810apvFwJ','@univerjs-pro/collaboration-client','registerComponent','3BRzSJx','UniverProCollaboration','button','1306006SLZaAy','LIVESHARE_TERMINATE','1037752AqLqgI','offline','React','pluginName','@univerjs/sheets-ui','onStarting','_unitID','onRendered','presenting','clsx','IConfigService','428344AdrPZr','init','add','_commandDisposable','trim','find','getLiveShareCoordinator','apply','UNIVER_UNKNOWN','tryStartPresenting','live-share-icon','PRESENTING','shouldShareOperation','complete','type','OFFLINE','CollaborationEvent','OPERATION','SessionStatus','sheet','requireSession','_commandService','prototype','_collabSession','getOwnPropertySymbols','_entities','SetZoomRatioOperation','forwardRef','defineProperty','LIVESHARE_FETCH_OPERATIONS','url(#$1','_beIdle','_collabSessionService','delete','@univerjs/core','touchDependencies','indexOf','stopFollowing','_status'];_0x2080=function(){return _0x2a9323;};return _0x2080();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.10.6-experimental.20250904-9591d16",
3
+ "version": "0.10.6-nightly.202509060724",
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.6",
50
- "@univerjs-pro/collaboration": "0.10.6-experimental.20250904-9591d16",
51
- "@univerjs/core": "0.10.6-experimental.20250904-9591d16",
52
- "@univerjs/design": "0.10.6-experimental.20250904-9591d16",
53
- "@univerjs/sheets": "0.10.6-experimental.20250904-9591d16",
54
- "@univerjs/sheets-ui": "0.10.6-experimental.20250904-9591d16",
55
- "@univerjs-pro/collaboration-client": "0.10.6-experimental.20250904-9591d16",
56
- "@univerjs/ui": "0.10.6-experimental.20250904-9591d16"
49
+ "@univerjs/icons": "^0.4.7",
50
+ "@univerjs-pro/collaboration": "0.10.6-nightly.202509060724",
51
+ "@univerjs-pro/collaboration-client": "0.10.6-nightly.202509060724",
52
+ "@univerjs/core": "0.10.6-nightly.202509060724",
53
+ "@univerjs/design": "0.10.6-nightly.202509060724",
54
+ "@univerjs/sheets": "0.10.6-nightly.202509060724",
55
+ "@univerjs/sheets-ui": "0.10.6-nightly.202509060724",
56
+ "@univerjs/ui": "0.10.6-nightly.202509060724"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.6",