@univerjs-pro/live-share 0.8.0-nightly.202506041607 → 0.8.0
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 +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x4af0c9=_0x46d3;(function(_0x39ac92,_0x593ae1){var _0x424d22=_0x46d3,_0x3f5df3=_0x39ac92();while(!![]){try{var _0x287b37=-parseInt(_0x424d22(0x103))/0x1+-parseInt(_0x424d22(0xea))/0x2*(-parseInt(_0x424d22(0x18e))/0x3)+-parseInt(_0x424d22(0xef))/0x4*(parseInt(_0x424d22(0x146))/0x5)+-parseInt(_0x424d22(0x114))/0x6*(parseInt(_0x424d22(0xca))/0x7)+-parseInt(_0x424d22(0x18a))/0x8*(parseInt(_0x424d22(0x115))/0x9)+parseInt(_0x424d22(0xcc))/0xa+-parseInt(_0x424d22(0xdb))/0xb*(-parseInt(_0x424d22(0xc5))/0xc);if(_0x287b37===_0x593ae1)break;else _0x3f5df3['push'](_0x3f5df3['shift']());}catch(_0x591052){_0x3f5df3['push'](_0x3f5df3['shift']());}}}(_0x245e,0xdde17));var U=Object[_0x4af0c9(0x148)],F=(_0xedd788,_0x49cc50,_0x5bad20)=>_0x49cc50 in _0xedd788?U(_0xedd788,_0x49cc50,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5bad20}):_0xedd788[_0x49cc50]=_0x5bad20,v=(_0x53bfd5,_0x104ec2,_0x80a753)=>F(_0x53bfd5,typeof _0x104ec2!='symbol'?_0x104ec2+'':_0x104ec2,_0x80a753);Object[_0x4af0c9(0x148)](exports,Symbol[_0x4af0c9(0x154)],{'value':_0x4af0c9(0x199)});const m=require(_0x4af0c9(0x191)),o=require(_0x4af0c9(0x179)),C=require('@univerjs/sheets'),w=require(_0x4af0c9(0xcb)),p=require(_0x4af0c9(0x189)),l=require('react/jsx-runtime'),g=require(_0x4af0c9(0x177)),f=require(_0x4af0c9(0x153)),_=require(_0x4af0c9(0x17f)),D=require('rxjs'),b=require(_0x4af0c9(0x164)),$=_0x4af0c9(0x196),x={};class O extends o[_0x4af0c9(0x13f)]{constructor(){var _0x4fbf94=_0x4af0c9;super(...arguments),v(this,_0x4fbf94(0x17e),new Set()),v(this,_0x4fbf94(0x16f),new Set());}['registerSharedOperation'](_0x563e56){var _0x18ef71=_0x4af0c9;return this['_sharedOperations'][_0x18ef71(0xc1)](_0x563e56),o[_0x18ef71(0x11f)](()=>this[_0x18ef71(0x17e)][_0x18ef71(0x11b)](_0x563e56));}[_0x4af0c9(0xfe)](_0x4fdcff){var _0x410011=_0x4af0c9;return this[_0x410011(0x16f)][_0x410011(0xc1)](_0x4fdcff),o[_0x410011(0x11f)](()=>this[_0x410011(0x16f)][_0x410011(0x11b)](_0x4fdcff));}[_0x4af0c9(0x151)](_0x474ac2){var _0xa4d9f=_0x4af0c9;return this[_0xa4d9f(0x17e)][_0xa4d9f(0xf4)](_0x474ac2);}[_0x4af0c9(0x188)](_0x54ee93){var _0x26211a=_0x4af0c9;return Array[_0x26211a(0x184)](this[_0x26211a(0x16f)])[_0x26211a(0x16a)](_0x3a565e=>_0x3a565e(_0x54ee93));}}var H=Object[_0x4af0c9(0x150)],V=(_0x3671a9,_0x3a920e,_0x3c34bc,_0x446118)=>{var _0x462207=_0x4af0c9;for(var _0x4b4df6=_0x446118>0x1?void 0x0:_0x446118?H(_0x3a920e,_0x3c34bc):_0x3a920e,_0x1c3117=_0x3671a9[_0x462207(0x14a)]-0x1,_0x3ca648;_0x1c3117>=0x0;_0x1c3117--)(_0x3ca648=_0x3671a9[_0x1c3117])&&(_0x4b4df6=_0x3ca648(_0x4b4df6)||_0x4b4df6);return _0x4b4df6;},k=(_0x22cd75,_0x30e3d4)=>(_0x597871,_0x15e35a)=>_0x30e3d4(_0x597871,_0x15e35a,_0x22cd75);let E=class extends o[_0x4af0c9(0x13f)]{constructor(_0x31315d){var _0x2323c2=_0x4af0c9;super(),this[_0x2323c2(0x194)]=_0x31315d,this['_init']();}[_0x4af0c9(0xe4)](){var _0x496cb8=_0x4af0c9;[w[_0x496cb8(0xc4)]['id'],w['SetScrollOperation']['id'],C[_0x496cb8(0xce)]['id']][_0x496cb8(0x152)](_0x3f5b53=>{var _0x182b9a=_0x496cb8;this['disposeWithMe'](this[_0x182b9a(0x194)][_0x182b9a(0xd8)](_0x3f5b53));});}};E=V([k(0x0,o[_0x4af0c9(0x168)](O))],E);var u=function(){var _0x431f4d=_0x4af0c9;return u=Object[_0x431f4d(0xf1)]||function(_0x319385){var _0x1d71d6=_0x431f4d;for(var _0xb5a566,_0x3d5d6b=0x1,_0x422b20=arguments[_0x1d71d6(0x14a)];_0x3d5d6b<_0x422b20;_0x3d5d6b++){_0xb5a566=arguments[_0x3d5d6b];for(var _0x4de631 in _0xb5a566)Object[_0x1d71d6(0xee)][_0x1d71d6(0x182)]['call'](_0xb5a566,_0x4de631)&&(_0x319385[_0x4de631]=_0xb5a566[_0x4de631]);}return _0x319385;},u[_0x431f4d(0xe5)](this,arguments);},M=function(_0x4b1276,_0xc4df70){var _0x1ff3ac=_0x4af0c9,_0x3b21de={};for(var _0x3df2a1 in _0x4b1276)Object[_0x1ff3ac(0xee)][_0x1ff3ac(0x182)][_0x1ff3ac(0x19f)](_0x4b1276,_0x3df2a1)&&_0xc4df70['indexOf'](_0x3df2a1)<0x0&&(_0x3b21de[_0x3df2a1]=_0x4b1276[_0x3df2a1]);if(_0x4b1276!=null&&typeof Object[_0x1ff3ac(0x12b)]==_0x1ff3ac(0x126)){for(var _0x283274=0x0,_0x3df2a1=Object[_0x1ff3ac(0x12b)](_0x4b1276);_0x283274<_0x3df2a1[_0x1ff3ac(0x14a)];_0x283274++)_0xc4df70[_0x1ff3ac(0xf9)](_0x3df2a1[_0x283274])<0x0&&Object[_0x1ff3ac(0xee)][_0x1ff3ac(0x105)][_0x1ff3ac(0x19f)](_0x4b1276,_0x3df2a1[_0x283274])&&(_0x3b21de[_0x3df2a1[_0x283274]]=_0x4b1276[_0x3df2a1[_0x283274]]);}return _0x3b21de;},j=f['forwardRef'](function(_0x117f9e,_0x22f4f9){var _0x285a71=_0x4af0c9,_0x22e1b0=_0x117f9e['icon'],_0x6c5723=_0x117f9e['id'],_0x1d7248=_0x117f9e['className'],_0x416fc0=_0x117f9e[_0x285a71(0x136)],_0x3c1fbb=M(_0x117f9e,[_0x285a71(0x10c),'id',_0x285a71(0x145),_0x285a71(0x136)]),_0x43b922='univerjs-icon\x20univerjs-icon-'['concat'](_0x6c5723,'\x20')['concat'](_0x1d7248||'')['trim'](),_0x567095=f[_0x285a71(0x106)]('_'['concat'](G()));return y(_0x22e1b0,''['concat'](_0x6c5723),{'defIds':_0x22e1b0[_0x285a71(0x101)],'idSuffix':_0x567095[_0x285a71(0x171)]},u({'ref':_0x22f4f9,'className':_0x43b922},_0x3c1fbb),_0x416fc0);});function y(_0x3bf2cd,_0x558f38,_0x3b1c93,_0x228d00,_0x5e1f1c){var _0xabddf6=_0x4af0c9;return f[_0xabddf6(0x17c)](_0x3bf2cd['tag'],u(u({'key':_0x558f38},q(_0x3bf2cd,_0x3b1c93,_0x5e1f1c)),_0x228d00),(W(_0x3bf2cd,_0x3b1c93)[_0xabddf6(0xdd)]||[])[_0xabddf6(0x16a)](function(_0x22156d,_0x3b47bc){var _0x1241c8=_0xabddf6;return y(_0x22156d,''[_0x1241c8(0x13a)](_0x558f38,'-')[_0x1241c8(0x13a)](_0x3bf2cd[_0x1241c8(0x166)],'-')[_0x1241c8(0x13a)](_0x3b47bc),_0x3b1c93,void 0x0,_0x5e1f1c);}));}function q(_0x50a24c,_0x45f609,_0x39f578){var _0x25c0f0=_0x4af0c9,_0x554069=u({},_0x50a24c[_0x25c0f0(0xfa)]);_0x39f578!=null&&_0x39f578['colorChannel1']&&_0x554069[_0x25c0f0(0xfb)]===_0x25c0f0(0x121)&&(_0x554069['fill']=_0x39f578[_0x25c0f0(0x121)]),_0x50a24c[_0x25c0f0(0x166)]===_0x25c0f0(0x195)&&_0x554069['id']&&(_0x554069['id']=_0x554069['id']+_0x45f609[_0x25c0f0(0x11d)]),Object['entries'](_0x554069)[_0x25c0f0(0x152)](function(_0x3f265d){var _0x26147d=_0x25c0f0,_0xff5e6c=_0x3f265d[0x0],_0x188ef7=_0x3f265d[0x1];_0xff5e6c==='mask'&&typeof _0x188ef7==_0x26147d(0x160)&&(_0x554069[_0xff5e6c]=_0x188ef7[_0x26147d(0x107)](/url\(#(.*)\)/,'url(#$1'[_0x26147d(0x13a)](_0x45f609[_0x26147d(0x11d)],')')));});var _0x471686=_0x45f609[_0x25c0f0(0x101)];return!_0x471686||_0x471686[_0x25c0f0(0x14a)]===0x0||(_0x50a24c[_0x25c0f0(0x166)]==='use'&&_0x554069['xlink:href']&&(_0x554069[_0x25c0f0(0x17b)]=_0x554069[_0x25c0f0(0x17b)]+_0x45f609[_0x25c0f0(0x11d)]),Object[_0x25c0f0(0x18c)](_0x554069)[_0x25c0f0(0x152)](function(_0x242b08){var _0x5cf374=_0x25c0f0,_0x160f04=_0x242b08[0x0],_0x4195bd=_0x242b08[0x1];typeof _0x4195bd==_0x5cf374(0x160)&&(_0x554069[_0x160f04]=_0x4195bd[_0x5cf374(0x107)](/url\(#(.*)\)/,_0x5cf374(0xe9)['concat'](_0x45f609[_0x5cf374(0x11d)],')')));})),_0x554069;}function W(_0x373ac5,_0x2a8fdf){var _0x199a6f=_0x4af0c9,_0x3131e0,_0x5a5550=_0x2a8fdf['defIds'];return!_0x5a5550||_0x5a5550[_0x199a6f(0x14a)]===0x0?_0x373ac5:_0x373ac5[_0x199a6f(0x166)]===_0x199a6f(0x130)&&(!((_0x3131e0=_0x373ac5[_0x199a6f(0xdd)])===null||_0x3131e0===void 0x0)&&_0x3131e0['length'])?u(u({},_0x373ac5),{'children':_0x373ac5[_0x199a6f(0xdd)][_0x199a6f(0x16a)](function(_0x452b78){var _0x385afb=_0x199a6f;return typeof _0x452b78[_0x385afb(0xfa)]['id']==_0x385afb(0x160)&&_0x5a5550&&_0x5a5550[_0x385afb(0x198)](_0x452b78[_0x385afb(0xfa)]['id'])?u(u({},_0x452b78),{'attrs':u(u({},_0x452b78[_0x385afb(0xfa)]),{'id':_0x452b78['attrs']['id']+_0x2a8fdf[_0x385afb(0x11d)]})}):_0x452b78;})}):_0x373ac5;}function _0x245e(){var _0x54f02e=['default','Inject','idle','map','throttleTime','_fetchOperations','_handleNewChangeSets','_startLiveShareCoordinator','_reporters','jsxs','current','reverse','status$','subscribe','useDependency','jsx','@univerjs/design','operations','@univerjs/core','pluginName','xlink:href','createElement','next','_sharedOperations','@univerjs-pro/collaboration','_beIdle','LIVESHARE_OPERATION','hasOwnProperty','DisposableCollection','from','get','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','CollaborationSessionService','getInitialStates','@univerjs/ui','2424EvvKua','_injector','entries','takeUntil','23361vcBzBJ','init','getLiveShareCoordinator','@univerjs-pro/collaboration-client','substring','Start\x20following','_liveShareService','mask','live-share.config','unsubscribe','includes','Module','1em','presenter','live-share-icon','set','stopPresenting','call','merge','div','currentColor','forwardRef','getMemberID','useState','_status','_unitID','not-following','Stop\x20following','add','http://www.w3.org/2000/svg','You\x27re\x20not\x20following\x20the\x20presenter','SetZoomRatioOperation','12vKjATd','ONLINE','IUniverInstanceService','NEW_CHANGESETS','none','889JEukGZ','@univerjs/sheets-ui','4105610rCigCA','_handleOperation','SetWorksheetActiveOperation','disposeWithMe','startFollowing','onRendered','complete','_univerInstanceService','UniverLiveSharePlugin','CollaborationEvent','_startFollowing','LiveShareController','registerSharedOperation','NOT_FOLLOWING','params','58440239pcirRR','univer-w-full\x20univer-mb-3\x20univer-text-sm','children','FOLLOWING','_handleOnline','displayName','getConfig','LiveShareStatus','LIVESHARE_FETCH_OPERATIONS','_init','apply','DesktopLiveShareController','univer-size-4','_configService','url(#$1','2DpRUZZ','Subject','parse','getCurrentTypeOfUnit$','prototype','28wbkDsy','send','assign','mergeOverrideWithDependencies','toString','has','clsx','UNIVER_UNKNOWN','LIVESHARE_NEW_HOST','createInstance','indexOf','attrs','fill','UniverInstanceType','UNIVER_SHEET','registerInitialStateReporter','LiveShareIcon','Stop\x20presenting','defIds','You\x27are\x20offline.','1613423bzSJby','getTypeOfUnitAdded$','propertyIsEnumerable','useRef','replace','_startPresenting','useEffect','getUnitId','useObservable','icon','HEADER_MENU','pipe','_handleNewHost','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','type','_collabSessionService','LiveShareService','82794PWPNia','34713qNbUuJ','_collabSession','setConfig','_uiPartsService','sessionStatus$','onCommandExecuted','delete','stopFollowing','idSuffix','_entities','toDisposable','button','colorChannel1','_config','IDLE','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','Fragment','function','parseProtocolChangeset','IUIPartsService','UniverIcon','offline','getOwnPropertySymbols','_commandDisposable','getTypeOfUnitDisposed$','_stopPresenting','LIVESHARE_REQUEST_HOST','defs','executeCommand','dispose$','_status$','SessionStatus','LiveShareCoordinator','extend','PRESENTING','ICommandService','getValue','concat','random','sheet','onStarting','following','Disposable','registerComponent','_handleOffline','UniverCollaborationClientPlugin','clear','evenodd','className','205505onTvLh','_commandService','defineProperty','_presenter','length','data','_handleTerminate','RxDisposable','You\x27re\x20presenting\x20the\x20document','DependentOn','getOwnPropertyDescriptor','shouldShareOperation','forEach','react','toStringTag','tryStartPresenting','_stopFollowing','You\x27re\x20following\x20the\x20presenter','Button','Injector','Start','svg','IConfigService','OPERATION','presenting','dispose','string','LIVESHARE_TERMINATE','BuiltInUIPart','OFFLINE','rxjs/operators','symbol','tag'];_0x245e=function(){return _0x54f02e;};return _0x245e();}function G(){var _0x138fe9=_0x4af0c9;return Math[_0x138fe9(0x13b)]()[_0x138fe9(0xf3)](0x24)[_0x138fe9(0x192)](0x2,0x8);}j['displayName']=_0x4af0c9(0x129);var B={'tag':_0x4af0c9(0x15b),'attrs':{'xmlns':_0x4af0c9(0xc2),'fill':_0x4af0c9(0xc9),'viewBox':'0\x200\x2017\x2017','width':_0x4af0c9(0x19a),'height':_0x4af0c9(0x19a)},'children':[{'tag':'path','attrs':{'fill':_0x4af0c9(0x1a2),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x4af0c9(0x1a2),'d':_0x4af0c9(0x110),'fillRule':_0x4af0c9(0x144),'clipRule':_0x4af0c9(0x144)}}]},P=f[_0x4af0c9(0x1a3)](function(_0x438008,_0x1b9e98){var _0x75625d=_0x4af0c9;return f[_0x75625d(0x17c)](j,Object[_0x75625d(0xf1)]({},_0x438008,{'id':_0x75625d(0x19c),'ref':_0x1b9e98,'icon':B}));});P[_0x4af0c9(0xe0)]=_0x4af0c9(0xff);var Y=Object['getOwnPropertyDescriptor'],R=(_0x2da32e,_0x241618,_0x231fca,_0xd19957)=>{for(var _0x1fc46c=_0xd19957>0x1?void 0x0:_0xd19957?Y(_0x241618,_0x231fca):_0x241618,_0x5c5ae8=_0x2da32e['length']-0x1,_0x302f0f;_0x5c5ae8>=0x0;_0x5c5ae8--)(_0x302f0f=_0x2da32e[_0x5c5ae8])&&(_0x1fc46c=_0x302f0f(_0x1fc46c)||_0x1fc46c);return _0x1fc46c;},S=(_0x53f51e,_0x515e8e)=>(_0x5f2b27,_0x17bee)=>_0x515e8e(_0x5f2b27,_0x17bee,_0x53f51e);exports['LiveShareController']=class extends o[_0x4af0c9(0x14d)]{constructor(_0x2767e4,_0x349ef2,_0x420f21){var _0x3f17e5=_0x4af0c9;super(),v(this,_0x3f17e5(0x11e),new Map()),(this[_0x3f17e5(0xd3)]=_0x2767e4,this[_0x3f17e5(0x18b)]=_0x349ef2,this[_0x3f17e5(0x112)]=_0x420f21,this['_init']());}async[_0x4af0c9(0x190)](_0x389955){var _0x2dcfba=_0x4af0c9;return this[_0x2dcfba(0x11e)][_0x2dcfba(0xf4)](_0x389955)||await this[_0x2dcfba(0x16e)](_0x389955),this['_entities'][_0x2dcfba(0x185)](_0x389955);}[_0x4af0c9(0xe4)](){var _0x2c9dd0=_0x4af0c9;this[_0x2c9dd0(0xd3)][_0x2c9dd0(0x104)](o[_0x2c9dd0(0xfc)][_0x2c9dd0(0xfd)])['pipe'](b['takeUntil'](this[_0x2c9dd0(0x132)]))[_0x2c9dd0(0x174)](async _0x4f3290=>{var _0x5e2b50=_0x2c9dd0;const _0x5be5d1=_0x4f3290[_0x5e2b50(0x10a)]();this[_0x5e2b50(0x11e)][_0x5e2b50(0xf4)](_0x5be5d1)||this[_0x5e2b50(0x16e)](_0x5be5d1);}),this['_univerInstanceService'][_0x2c9dd0(0x12d)](o[_0x2c9dd0(0xfc)]['UNIVER_SHEET'])[_0x2c9dd0(0x10e)](b[_0x2c9dd0(0x18d)](this[_0x2c9dd0(0x132)]))[_0x2c9dd0(0x174)](_0x4a47d3=>{var _0x31f647=_0x2c9dd0;const _0x4f8b22=_0x4a47d3[_0x31f647(0x10a)](),_0x1b510c=this['_entities'][_0x31f647(0x185)](_0x4f8b22);_0x1b510c==null||_0x1b510c[_0x31f647(0x15f)]();});}async[_0x4af0c9(0x16e)](_0x5512ad){var _0x5360c3=_0x4af0c9;const _0xbbd1=await this['_collabSessionService']['requireSession'](_0x5512ad),_0x36e266=this['_injector'][_0x5360c3(0xf8)](exports[_0x5360c3(0x135)],_0x5512ad,_0xbbd1);return _0x36e266[_0x5360c3(0x18f)](),this['_entities'][_0x5360c3(0x19d)](_0x5512ad,_0x36e266),_0x36e266;}},exports[_0x4af0c9(0xd7)]=R([S(0x0,o[_0x4af0c9(0xc7)]),S(0x1,o['Inject'](o[_0x4af0c9(0x159)])),S(0x2,o[_0x4af0c9(0x168)](m[_0x4af0c9(0x187)]))],exports[_0x4af0c9(0xd7)]);var h=(_0x31ce64=>(_0x31ce64[_0x4af0c9(0x163)]=_0x4af0c9(0x12a),_0x31ce64[_0x4af0c9(0x123)]='idle',_0x31ce64[_0x4af0c9(0xde)]='following',_0x31ce64[_0x4af0c9(0xd9)]=_0x4af0c9(0xbf),_0x31ce64[_0x4af0c9(0x137)]='presenting',_0x31ce64))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports[_0x4af0c9(0x135)]=class extends o[_0x4af0c9(0x14d)]{constructor(_0x54890c,_0x42c4f6,_0x4d1105,_0x2a07a8,_0x57f07d){var _0x19afd5=_0x4af0c9;super(),v(this,_0x19afd5(0x133),new D['BehaviorSubject'](_0x19afd5(0x169))),v(this,_0x19afd5(0x173),this[_0x19afd5(0x133)]['asObservable']()),v(this,_0x19afd5(0xe4),!0x1),v(this,_0x19afd5(0x12c),null),v(this,_0x19afd5(0x149),null),(this[_0x19afd5(0x1a7)]=_0x54890c,this[_0x19afd5(0x116)]=_0x42c4f6,this['_configService']=_0x4d1105,this[_0x19afd5(0x194)]=_0x2a07a8,this[_0x19afd5(0x147)]=_0x57f07d);}get['_status'](){var _0x3e49ab=_0x4af0c9;return this[_0x3e49ab(0x133)][_0x3e49ab(0x139)]();}[_0x4af0c9(0x15f)](){var _0x4e68df=_0x4af0c9,_0x51ee65;(_0x51ee65=this[_0x4e68df(0x12c)])==null||_0x51ee65['dispose'](),this[_0x4e68df(0x133)][_0x4e68df(0x17d)]('idle'),this[_0x4e68df(0x133)][_0x4e68df(0xd2)]();}[_0x4af0c9(0x18f)](){var _0x3edbe4=_0x4af0c9;this[_0x3edbe4(0xe4)]||(this[_0x3edbe4(0xe4)]=!0x0,this[_0x3edbe4(0x116)][_0x3edbe4(0x119)][_0x3edbe4(0x10e)](b[_0x3edbe4(0x18d)](this['dispose$']))[_0x3edbe4(0x174)](_0x169471=>{var _0xbcf49a=_0x3edbe4;switch(_0x169471){case m[_0xbcf49a(0x134)][_0xbcf49a(0x163)]:this[_0xbcf49a(0x141)]();break;case m[_0xbcf49a(0x134)][_0xbcf49a(0xc6)]:this[_0xbcf49a(0xdf)]();break;}}),this[_0x3edbe4(0x116)]['event$'][_0x3edbe4(0x10e)](b[_0x3edbe4(0x18d)](this[_0x3edbe4(0x132)]))['subscribe'](_0x4abdd2=>{var _0x5bf183=_0x3edbe4;const {eventID:_0x55aa5c}=_0x4abdd2;switch(_0x55aa5c){case _[_0x5bf183(0xd5)][_0x5bf183(0xf7)]:this[_0x5bf183(0x10f)](_0x4abdd2);break;case _['CollaborationEvent'][_0x5bf183(0x181)]:this['_handleOperation'](_0x4abdd2);break;case _[_0x5bf183(0xd5)][_0x5bf183(0x161)]:this[_0x5bf183(0x14c)]();break;case _['CollaborationEvent'][_0x5bf183(0xc8)]:this[_0x5bf183(0x16d)](_0x4abdd2);break;}}));}[_0x4af0c9(0x155)](){var _0x265c35=_0x4af0c9;this[_0x265c35(0x116)][_0x265c35(0xf0)]({'eventID':_[_0x265c35(0xd5)][_0x265c35(0x12f)],'data':{'unitID':this[_0x265c35(0x1a7)],'userID':this[_0x265c35(0x116)][_0x265c35(0x1a4)]()}},this[_0x265c35(0x1a7)]);}[_0x4af0c9(0x19e)](){var _0xec73d7=_0x4af0c9;this[_0xec73d7(0x1a6)]===_0xec73d7(0x15e)&&(this[_0xec73d7(0x133)][_0xec73d7(0x17d)](_0xec73d7(0x169)),this[_0xec73d7(0x116)][_0xec73d7(0xf0)]({'eventID':_['CollaborationEvent'][_0xec73d7(0x161)],'data':{'unitID':this[_0xec73d7(0x1a7)]}},this[_0xec73d7(0x1a7)]));}[_0x4af0c9(0xd0)](){var _0x3eb71f=_0x4af0c9;this[_0x3eb71f(0x1a6)]===_0x3eb71f(0xbf)&&(this[_0x3eb71f(0x133)][_0x3eb71f(0x17d)]('following'),this[_0x3eb71f(0xd6)]());}[_0x4af0c9(0x11c)](){var _0x58e848=_0x4af0c9;this[_0x58e848(0x1a6)]===_0x58e848(0x13e)&&this[_0x58e848(0x156)]();}[_0x4af0c9(0x10f)](_0x2bee33){var _0x574b00=_0x4af0c9;const {presenter:_0x346689}=_0x2bee33['data'],_0xb3d53b=this[_0x574b00(0x116)][_0x574b00(0x1a4)]();this[_0x574b00(0x149)]=_0x346689,_0x346689===_0xb3d53b?(this[_0x574b00(0x156)](),this[_0x574b00(0x108)]()):this[_0x574b00(0x1a6)]!==_0x574b00(0xbf)&&(this[_0x574b00(0x12e)](),this[_0x574b00(0xd6)]());}[_0x4af0c9(0x16c)](){var _0xf4b986=_0x4af0c9;const _0x1461e2={'eventID':_[_0xf4b986(0xd5)][_0xf4b986(0xe3)]};this['_collabSession'][_0xf4b986(0xf0)](_0x1461e2,this[_0xf4b986(0x1a7)]);}[_0x4af0c9(0x14c)](){var _0x38527c=_0x4af0c9;this[_0x38527c(0x149)]=null,this[_0x38527c(0x1a6)]!==_0x38527c(0x15e)&&this[_0x38527c(0x180)]();}[_0x4af0c9(0x16d)](_0x1e9cdc){var _0x453f51=_0x4af0c9;if(this[_0x453f51(0x1a6)]===_0x453f51(0x13e)&&this[_0x453f51(0x149)]===_0x1e9cdc['data']['memberID']){const _0x2dcae0=_[_0x453f51(0x127)](_0x1e9cdc[_0x453f51(0x14b)])['mutations'][_0x453f51(0x172)]()['find'](_0x2a937c=>_0x2a937c['id']===C['InsertSheetMutation']['id']);if(_0x2dcae0){const _0x1980cb=_0x2dcae0[_0x453f51(0xda)]['unitId'],_0x1dbd1d=_0x2dcae0[_0x453f51(0xda)][_0x453f51(0x13c)]['id'];setTimeout(()=>{var _0x344f7c=_0x453f51;this[_0x344f7c(0x147)][_0x344f7c(0x131)](C[_0x344f7c(0xce)]['id'],{'unitId':_0x1980cb,'subUnitId':_0x1dbd1d},{'fromCollab':!0x0});});}}}[_0x4af0c9(0x108)](){var _0x5210f7=_0x4af0c9;this[_0x5210f7(0x133)][_0x5210f7(0x17d)](_0x5210f7(0x15e));const _0x3df543=new Map(),_0x2b556e=this['_commandDisposable']=new o[(_0x5210f7(0x183))]();_0x2b556e['add'](o[_0x5210f7(0x11f)](()=>{var _0x451e01=_0x5210f7;_0x3df543['forEach'](_0x42fa09=>_0x42fa09[_0x451e01(0xd2)]()),_0x3df543[_0x451e01(0x143)]();})),_0x2b556e[_0x5210f7(0xc1)](this[_0x5210f7(0x147)][_0x5210f7(0x11a)](_0x2b2ad8=>{var _0x19cfbd=_0x5210f7,_0x4ac833;if(_0x2b2ad8[_0x19cfbd(0x111)]!==o['CommandType'][_0x19cfbd(0x15d)]||!this['_liveShareService'][_0x19cfbd(0x151)](_0x2b2ad8['id']))return;const {id:_0x45a1b2}=_0x2b2ad8;let _0x4bde92;_0x3df543['has'](_0x45a1b2)?_0x4bde92=_0x3df543[_0x19cfbd(0x185)](_0x45a1b2):(_0x4bde92=new D[(_0x19cfbd(0xeb))](),_0x3df543['set'](_0x45a1b2,_0x4bde92),_0x4bde92[_0x19cfbd(0x10e)](b[_0x19cfbd(0x16b)]((_0x4ac833=this['_configService'][_0x19cfbd(0xe1)](Z))!=null?_0x4ac833:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x19cfbd(0x174)](_0xc198b0=>{var _0x256e73=_0x19cfbd;this[_0x256e73(0x116)][_0x256e73(0xf0)]({'eventID':_[_0x256e73(0xd5)][_0x256e73(0x181)],'data':{'unitID':this['_unitID'],'operations':{[_0xc198b0['id']]:{'id':_0xc198b0['id'],'params':JSON['stringify'](_0xc198b0[_0x256e73(0xda)])}}}},this[_0x256e73(0x1a7)]);})),_0x4bde92[_0x19cfbd(0x17d)](_0x2b2ad8);})),this[_0x5210f7(0x194)]['getInitialStates'](this[_0x5210f7(0x1a7)])['forEach'](_0x3fd38a=>this[_0x5210f7(0x116)][_0x5210f7(0xf0)]({'eventID':_[_0x5210f7(0xd5)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x3fd38a['id']]:{'id':_0x3fd38a['id'],'params':JSON['stringify'](_0x3fd38a[_0x5210f7(0xda)])}}}},this[_0x5210f7(0x1a7)]));}[_0x4af0c9(0x12e)](){var _0x530a3f=_0x4af0c9,_0x2591a7;this[_0x530a3f(0x133)]['next']('idle'),(_0x2591a7=this[_0x530a3f(0x12c)])==null||_0x2591a7[_0x530a3f(0x15f)](),this[_0x530a3f(0x12c)]=null;}['_startFollowing'](){var _0x24ebd1=_0x4af0c9,_0x3ebe4a;(_0x3ebe4a=this[_0x24ebd1(0x12c)])==null||_0x3ebe4a['dispose'](),this['_status$'][_0x24ebd1(0x17d)](_0x24ebd1(0x13e));}[_0x4af0c9(0x180)](){var _0x35d90d=_0x4af0c9,_0x22f7e4;this[_0x35d90d(0x133)][_0x35d90d(0x17d)](_0x35d90d(0x169)),(_0x22f7e4=this[_0x35d90d(0x12c)])==null||_0x22f7e4[_0x35d90d(0x15f)](),this[_0x35d90d(0x12c)]=null;}[_0x4af0c9(0x156)](){var _0xb7f503=_0x4af0c9,_0x49bca2;this[_0xb7f503(0x133)][_0xb7f503(0x17d)](_0xb7f503(0xbf)),(_0x49bca2=this[_0xb7f503(0x12c)])==null||_0x49bca2[_0xb7f503(0x15f)]();}[_0x4af0c9(0xcd)](_0x4403bd){var _0xc36367=_0x4af0c9;if([_0xc36367(0x15e),_0xc36367(0xbf),'offline'][_0xc36367(0x198)](this['_status'])||!_0x4403bd[_0xc36367(0x14b)][_0xc36367(0x19b)]||_0x4403bd[_0xc36367(0x14b)][_0xc36367(0x19b)]===this[_0xc36367(0x116)][_0xc36367(0x1a4)]())return;this[_0xc36367(0x1a6)]===_0xc36367(0x169)&&this['_startFollowing']();const _0x3222df=_0x4403bd[_0xc36367(0x14b)][_0xc36367(0x178)];Object['values'](_0x3222df)[_0xc36367(0x152)](_0x5e17a8=>{var _0x35b6b0=_0xc36367;this[_0x35b6b0(0x147)][_0x35b6b0(0x131)](_0x5e17a8['id'],_0x5e17a8[_0x35b6b0(0xda)]?JSON[_0x35b6b0(0xec)](_0x5e17a8[_0x35b6b0(0xda)]):null,{'fromCollab':!0x0});});}[_0x4af0c9(0x141)](){var _0x55ffb4=_0x4af0c9,_0x4eaf3b;this[_0x55ffb4(0x133)][_0x55ffb4(0x17d)](_0x55ffb4(0x12a)),(_0x4eaf3b=this['_commandDisposable'])==null||_0x4eaf3b[_0x55ffb4(0x15f)]();}[_0x4af0c9(0xdf)](){var _0x288ea7=_0x4af0c9;this[_0x288ea7(0x133)]['next'](_0x288ea7(0x169)),this[_0x288ea7(0x16c)]();}},exports[_0x4af0c9(0x135)]=R([S(0x2,o[_0x4af0c9(0x15c)]),S(0x3,o[_0x4af0c9(0x168)](O)),S(0x4,o[_0x4af0c9(0x138)])],exports[_0x4af0c9(0x135)]);function A(){var _0x48c778=_0x4af0c9;const _0xb78643=p[_0x48c778(0x175)](exports['LiveShareController']),_0x15d815=p[_0x48c778(0x175)](o[_0x48c778(0xc7)]),_0x2c7074=p[_0x48c778(0x10b)](()=>_0x15d815[_0x48c778(0xed)](o['UniverInstanceType'][_0x48c778(0xfd)]),void 0x0,!0x1,[]),[_0xdc9271,_0x3bcba3]=f[_0x48c778(0x1a5)](null),[_0x22e74b,_0x144a53]=f[_0x48c778(0x1a5)](h['IDLE']),_0x152c21=f[_0x48c778(0x106)](null);return f[_0x48c778(0x109)](()=>(_0x2c7074&&_0xb78643['getLiveShareCoordinator'](_0x2c7074[_0x48c778(0x10a)]())['then'](_0x3206a7=>{var _0x4b109f=_0x48c778;_0x3bcba3(_0x3206a7),_0x152c21[_0x4b109f(0x171)]=_0x3206a7['status$'][_0x4b109f(0x174)](_0x81f8d2=>{_0x144a53(_0x81f8d2);});}),()=>{var _0x17f109=_0x48c778,_0x292350;(_0x292350=_0x152c21[_0x17f109(0x171)])==null||_0x292350[_0x17f109(0x197)](),_0x152c21[_0x17f109(0x171)]=null;}),[_0x2c7074,_0xb78643]),_0xdc9271?l[_0x48c778(0x176)](g['Dropdown'],{'align':'end','disabled':_0x22e74b===h[_0x48c778(0x163)],'className':_0x48c778(0x186),'overlay':l['jsx'](K,{'status':_0x22e74b,'coordinator':_0xdc9271}),'children':l[_0x48c778(0x176)](_0x48c778(0x120),{'className':g[_0x48c778(0xf5)](_0x48c778(0x124),{'univer-cursor-not-allowed':_0x22e74b===h[_0x48c778(0x163)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x22e74b!==h[_0x48c778(0x163)]}),'type':_0x48c778(0x120),'children':l[_0x48c778(0x176)](P,{'className':_0x48c778(0xe7)})})}):null;}function K(_0x3a2f33){var _0x45067e=_0x4af0c9;const {status:_0x227ff3,coordinator:_0x4f53c0}=_0x3a2f33;switch(_0x227ff3){case h['IDLE']:return l[_0x45067e(0x176)](z,{'coordinator':_0x4f53c0});case h[_0x45067e(0xde)]:return l[_0x45067e(0x176)](Q,{'coordinator':_0x4f53c0});case h['NOT_FOLLOWING']:return l[_0x45067e(0x176)](X,{'coordinator':_0x4f53c0});case h['OFFLINE']:return l[_0x45067e(0x176)](te,{});case h[_0x45067e(0x137)]:return l[_0x45067e(0x176)](ee,{'coordinator':_0x4f53c0});default:return null;}}function z(_0x505bce){var _0x345b99=_0x4af0c9;const {coordinator:_0xe70d89}=_0x505bce;return l['jsxs'](l['Fragment'],{'children':[l['jsx'](_0x345b99(0x1a1),{'className':_0x345b99(0xdc),'children':'Present\x20this\x20document'}),l['jsx'](g[_0x345b99(0x158)],{'onClick':()=>_0xe70d89['tryStartPresenting'](),'children':_0x345b99(0x15a)})]});}function Q(_0x1b9481){var _0x58fcfa=_0x4af0c9;const {coordinator:_0x32a8a9}=_0x1b9481;return l[_0x58fcfa(0x170)](l[_0x58fcfa(0x125)],{'children':[l['jsx']('div',{'className':_0x58fcfa(0xdc),'children':_0x58fcfa(0x157)}),l['jsx'](g[_0x58fcfa(0x158)],{'onClick':()=>_0x32a8a9[_0x58fcfa(0x11c)](),'children':_0x58fcfa(0xc0)})]});}function X(_0x4cd052){var _0xf875f6=_0x4af0c9;const {coordinator:_0x56a3e7}=_0x4cd052;return l[_0xf875f6(0x170)](l[_0xf875f6(0x125)],{'children':[l[_0xf875f6(0x176)](_0xf875f6(0x1a1),{'className':_0xf875f6(0xdc),'children':_0xf875f6(0xc3)}),l['jsx'](g[_0xf875f6(0x158)],{'variant':'text','onClick':()=>_0x56a3e7['startFollowing'](),'children':_0xf875f6(0x193)})]});}function ee(_0x1b121d){var _0x83e3ed=_0x4af0c9;const {coordinator:_0x45adf2}=_0x1b121d;return l[_0x83e3ed(0x170)](l['Fragment'],{'children':[l[_0x83e3ed(0x176)](_0x83e3ed(0x1a1),{'className':_0x83e3ed(0xdc),'children':_0x83e3ed(0x14e)}),l[_0x83e3ed(0x176)](g[_0x83e3ed(0x158)],{'variant':_0x83e3ed(0x167),'onClick':()=>_0x45adf2[_0x83e3ed(0x19e)](),'children':_0x83e3ed(0x100)})]});}function te(){var _0x205f23=_0x4af0c9;return l[_0x205f23(0x176)](l[_0x205f23(0x125)],{'children':_0x205f23(0x102)});}var ie=Object[_0x4af0c9(0x150)],ne=(_0x12c247,_0x5ce651,_0x2b53db,_0x54946d)=>{var _0x5a070b=_0x4af0c9;for(var _0x283bd0=_0x54946d>0x1?void 0x0:_0x54946d?ie(_0x5ce651,_0x2b53db):_0x5ce651,_0x1fa412=_0x12c247[_0x5a070b(0x14a)]-0x1,_0x3c332f;_0x1fa412>=0x0;_0x1fa412--)(_0x3c332f=_0x12c247[_0x1fa412])&&(_0x283bd0=_0x3c332f(_0x283bd0)||_0x283bd0);return _0x283bd0;},L=(_0xaac4d,_0xabea90)=>(_0xf5ff01,_0x14d47)=>_0xabea90(_0xf5ff01,_0x14d47,_0xaac4d);exports[_0x4af0c9(0xe6)]=class extends o[_0x4af0c9(0x13f)]{constructor(_0x551d5a,_0x457f47){var _0x59c34a=_0x4af0c9;super(),this[_0x59c34a(0x18b)]=_0x551d5a,this[_0x59c34a(0x118)]=_0x457f47,this['_mountLiveShare']();}['_mountLiveShare'](){var _0x3d8725=_0x4af0c9;this[_0x3d8725(0xcf)](this[_0x3d8725(0x118)][_0x3d8725(0x140)](p[_0x3d8725(0x162)][_0x3d8725(0x10d)],()=>p['connectInjector'](A,this['_injector'])));}},exports[_0x4af0c9(0xe6)]=ne([L(0x0,o['Inject'](o['Injector'])),L(0x1,p[_0x4af0c9(0x128)])],exports[_0x4af0c9(0xe6)]);function _0x46d3(_0x26fc40,_0x522d07){var _0x245e2f=_0x245e();return _0x46d3=function(_0x46d32a,_0x2ad886){_0x46d32a=_0x46d32a-0xbf;var _0x354af3=_0x245e2f[_0x46d32a];return _0x354af3;},_0x46d3(_0x26fc40,_0x522d07);}var re=Object[_0x4af0c9(0x148)],se=Object[_0x4af0c9(0x150)],oe=(_0x5bc504,_0x3fc4d6,_0x395f2a)=>_0x3fc4d6 in _0x5bc504?re(_0x5bc504,_0x3fc4d6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x395f2a}):_0x5bc504[_0x3fc4d6]=_0x395f2a,ae=(_0x289c72,_0x3e5804,_0x22317e,_0x12776a)=>{var _0x158f51=_0x4af0c9;for(var _0x56812c=_0x12776a>0x1?void 0x0:_0x12776a?se(_0x3e5804,_0x22317e):_0x3e5804,_0x298a52=_0x289c72[_0x158f51(0x14a)]-0x1,_0x21975c;_0x298a52>=0x0;_0x298a52--)(_0x21975c=_0x289c72[_0x298a52])&&(_0x56812c=_0x21975c(_0x56812c)||_0x56812c);return _0x56812c;},N=(_0x79e0cb,_0x4a762e)=>(_0x493aab,_0x35dc2d)=>_0x4a762e(_0x493aab,_0x35dc2d,_0x79e0cb),T=(_0x14e418,_0x527918,_0x2d202f)=>oe(_0x14e418,typeof _0x527918!=_0x4af0c9(0x165)?_0x527918+'':_0x527918,_0x2d202f);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x4af0c9(0xd4)]=class extends o['Plugin']{constructor(_0x3cb663=x,_0x33cd89,_0x49c591){var _0x23ea68=_0x4af0c9;super(),this['_config']=_0x3cb663,this[_0x23ea68(0x18b)]=_0x33cd89,this[_0x23ea68(0xe8)]=_0x49c591;const {..._0x34a223}=o[_0x23ea68(0x1a0)]({},x,this[_0x23ea68(0x122)]);this['_configService'][_0x23ea68(0x117)]($,_0x34a223);}[_0x4af0c9(0x13d)](){var _0x159529=_0x4af0c9;o['registerDependencies'](this[_0x159529(0x18b)],o[_0x159529(0xf2)]([[O],[exports[_0x159529(0xd7)]],[E],[exports['DesktopLiveShareController']]],this[_0x159529(0x122)]['override'])),o['touchDependencies'](this[_0x159529(0x18b)],[[E]]);}[_0x4af0c9(0xd1)](){var _0x46f280=_0x4af0c9;o['touchDependencies'](this[_0x46f280(0x18b)],[[exports[_0x46f280(0xe6)]]]);}},T(exports[_0x4af0c9(0xd4)],'type',o['UniverInstanceType'][_0x4af0c9(0xf6)]),T(exports[_0x4af0c9(0xd4)],_0x4af0c9(0x17a),le),exports[_0x4af0c9(0xd4)]=ae([o[_0x4af0c9(0x14f)](m[_0x4af0c9(0x142)]),N(0x1,o[_0x4af0c9(0x168)](o['Injector'])),N(0x2,o[_0x4af0c9(0x15c)])],exports[_0x4af0c9(0xd4)]),exports['LiveShare']=A,exports[_0x4af0c9(0x113)]=O,exports[_0x4af0c9(0xe2)]=h;
|
|
1
|
+
'use strict';var _0xb39da1=_0x52a9;(function(_0x3f99cd,_0x2b93ac){var _0x4bcd7f=_0x52a9,_0x22677e=_0x3f99cd();while(!![]){try{var _0x4854c0=-parseInt(_0x4bcd7f(0x1e3))/0x1*(-parseInt(_0x4bcd7f(0x22b))/0x2)+parseInt(_0x4bcd7f(0x203))/0x3*(-parseInt(_0x4bcd7f(0x1f6))/0x4)+parseInt(_0x4bcd7f(0x222))/0x5+parseInt(_0x4bcd7f(0x1dc))/0x6*(parseInt(_0x4bcd7f(0x19a))/0x7)+parseInt(_0x4bcd7f(0x234))/0x8*(parseInt(_0x4bcd7f(0x194))/0x9)+parseInt(_0x4bcd7f(0x25b))/0xa*(parseInt(_0x4bcd7f(0x25a))/0xb)+-parseInt(_0x4bcd7f(0x1cc))/0xc;if(_0x4854c0===_0x2b93ac)break;else _0x22677e['push'](_0x22677e['shift']());}catch(_0x36b310){_0x22677e['push'](_0x22677e['shift']());}}}(_0xf609,0x1dcd3));var U=Object[_0xb39da1(0x23e)],F=(_0x4fe75e,_0x4b1a39,_0x48ef63)=>_0x4b1a39 in _0x4fe75e?U(_0x4fe75e,_0x4b1a39,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48ef63}):_0x4fe75e[_0x4b1a39]=_0x48ef63,v=(_0x238fd0,_0x17a53b,_0xaac03f)=>F(_0x238fd0,typeof _0x17a53b!=_0xb39da1(0x24b)?_0x17a53b+'':_0x17a53b,_0xaac03f);Object[_0xb39da1(0x23e)](exports,Symbol['toStringTag'],{'value':_0xb39da1(0x1bd)});const m=require(_0xb39da1(0x1d4)),o=require('@univerjs/core'),C=require(_0xb39da1(0x204)),w=require(_0xb39da1(0x1a2)),p=require(_0xb39da1(0x243)),l=require(_0xb39da1(0x191)),g=require(_0xb39da1(0x1ce)),f=require('react'),_=require(_0xb39da1(0x202)),D=require(_0xb39da1(0x18d)),b=require(_0xb39da1(0x18c)),$=_0xb39da1(0x237),x={};class O extends o[_0xb39da1(0x196)]{constructor(){var _0x299a65=_0xb39da1;super(...arguments),v(this,'_sharedOperations',new Set()),v(this,_0x299a65(0x23d),new Set());}['registerSharedOperation'](_0x247f98){var _0x19ac22=_0xb39da1;return this[_0x19ac22(0x26f)][_0x19ac22(0x1ac)](_0x247f98),o['toDisposable'](()=>this[_0x19ac22(0x26f)]['delete'](_0x247f98));}[_0xb39da1(0x1ca)](_0x1ae4f7){var _0x3ceb0e=_0xb39da1;return this[_0x3ceb0e(0x23d)][_0x3ceb0e(0x1ac)](_0x1ae4f7),o['toDisposable'](()=>this['_reporters'][_0x3ceb0e(0x1af)](_0x1ae4f7));}[_0xb39da1(0x1d6)](_0x413c72){var _0x55c24c=_0xb39da1;return this[_0x55c24c(0x26f)][_0x55c24c(0x258)](_0x413c72);}[_0xb39da1(0x1d5)](_0x1a1c3e){var _0xa5a6a0=_0xb39da1;return Array[_0xa5a6a0(0x248)](this[_0xa5a6a0(0x23d)])[_0xa5a6a0(0x229)](_0x4757a2=>_0x4757a2(_0x1a1c3e));}}var H=Object[_0xb39da1(0x235)],V=(_0x6f48d2,_0x4b1b94,_0x2550bf,_0x2f933a)=>{var _0x226fb3=_0xb39da1;for(var _0x3d58b1=_0x2f933a>0x1?void 0x0:_0x2f933a?H(_0x4b1b94,_0x2550bf):_0x4b1b94,_0x1ec2f5=_0x6f48d2[_0x226fb3(0x1f4)]-0x1,_0x2add78;_0x1ec2f5>=0x0;_0x1ec2f5--)(_0x2add78=_0x6f48d2[_0x1ec2f5])&&(_0x3d58b1=_0x2add78(_0x3d58b1)||_0x3d58b1);return _0x3d58b1;},k=(_0x1d759a,_0x1c91fd)=>(_0x3b9aeb,_0x17a2df)=>_0x1c91fd(_0x3b9aeb,_0x17a2df,_0x1d759a);let E=class extends o[_0xb39da1(0x196)]{constructor(_0x1c9142){var _0x11bc46=_0xb39da1;super(),this[_0x11bc46(0x253)]=_0x1c9142,this[_0x11bc46(0x1be)]();}[_0xb39da1(0x1be)](){var _0xcf620e=_0xb39da1;[w[_0xcf620e(0x263)]['id'],w['SetScrollOperation']['id'],C[_0xcf620e(0x1fb)]['id']][_0xcf620e(0x1cd)](_0x728bd2=>{var _0x427e42=_0xcf620e;this[_0x427e42(0x195)](this[_0x427e42(0x253)]['registerSharedOperation'](_0x728bd2));});}};E=V([k(0x0,o[_0xb39da1(0x209)](O))],E);var u=function(){var _0x41907d=_0xb39da1;return u=Object[_0x41907d(0x1c8)]||function(_0x56084f){var _0x2e798a=_0x41907d;for(var _0x37f8b8,_0x3cfb18=0x1,_0x1f14d4=arguments[_0x2e798a(0x1f4)];_0x3cfb18<_0x1f14d4;_0x3cfb18++){_0x37f8b8=arguments[_0x3cfb18];for(var _0x3096f1 in _0x37f8b8)Object[_0x2e798a(0x19d)][_0x2e798a(0x21d)][_0x2e798a(0x1e7)](_0x37f8b8,_0x3096f1)&&(_0x56084f[_0x3096f1]=_0x37f8b8[_0x3096f1]);}return _0x56084f;},u[_0x41907d(0x26d)](this,arguments);},M=function(_0x2dbb43,_0x3b4591){var _0x2cdacf=_0xb39da1,_0x2eacce={};for(var _0xc731dd in _0x2dbb43)Object[_0x2cdacf(0x19d)][_0x2cdacf(0x21d)]['call'](_0x2dbb43,_0xc731dd)&&_0x3b4591[_0x2cdacf(0x1c1)](_0xc731dd)<0x0&&(_0x2eacce[_0xc731dd]=_0x2dbb43[_0xc731dd]);if(_0x2dbb43!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x1d6405=0x0,_0xc731dd=Object['getOwnPropertySymbols'](_0x2dbb43);_0x1d6405<_0xc731dd['length'];_0x1d6405++)_0x3b4591[_0x2cdacf(0x1c1)](_0xc731dd[_0x1d6405])<0x0&&Object[_0x2cdacf(0x19d)]['propertyIsEnumerable'][_0x2cdacf(0x1e7)](_0x2dbb43,_0xc731dd[_0x1d6405])&&(_0x2eacce[_0xc731dd[_0x1d6405]]=_0x2dbb43[_0xc731dd[_0x1d6405]]);}return _0x2eacce;},j=f[_0xb39da1(0x22d)](function(_0x132bbd,_0x3bd96f){var _0x2bc72e=_0xb39da1,_0x3d7d94=_0x132bbd[_0x2bc72e(0x1ba)],_0x5c8734=_0x132bbd['id'],_0x1672c4=_0x132bbd['className'],_0xfe52c=_0x132bbd[_0x2bc72e(0x22e)],_0x6935ab=M(_0x132bbd,[_0x2bc72e(0x1ba),'id',_0x2bc72e(0x1b7),'extend']),_0x1c4141=_0x2bc72e(0x1c2)[_0x2bc72e(0x1b0)](_0x5c8734,'\x20')['concat'](_0x1672c4||'')[_0x2bc72e(0x1a6)](),_0x4e88e2=f['useRef']('_'[_0x2bc72e(0x1b0)](G()));return y(_0x3d7d94,''['concat'](_0x5c8734),{'defIds':_0x3d7d94[_0x2bc72e(0x1d8)],'idSuffix':_0x4e88e2[_0x2bc72e(0x1bb)]},u({'ref':_0x3bd96f,'className':_0x1c4141},_0x6935ab),_0xfe52c);});function _0x52a9(_0x49813f,_0x698636){var _0xf6096d=_0xf609();return _0x52a9=function(_0x52a967,_0x4862f3){_0x52a967=_0x52a967-0x18b;var _0x1ac890=_0xf6096d[_0x52a967];return _0x1ac890;},_0x52a9(_0x49813f,_0x698636);}function _0xf609(){var _0x435e57=['You\x27re\x20following\x20the\x20presenter','IUniverInstanceService','use','@univerjs-pro/collaboration','3hsvpBN','@univerjs/sheets','_fetchOperations','find','OFFLINE','init','Inject','_configService','useObservable','Stop\x20presenting','_commandDisposable','dispose$','set','idle','LIVESHARE_TERMINATE','mutations','UniverLiveSharePlugin','LiveShareIcon','subscribe','get','data','button','reverse','_stopFollowing','LiveShareService','OPERATION','hasOwnProperty','_startLiveShareCoordinator','live-share-icon','registerDependencies','LIVESHARE_OPERATION','589270XhSBRG','stopPresenting','_commandService','UNIVER_LIVE_SHARE_PLUGIN','presenter','_unitID','getConfig','map','unitId','474686fBiIra','_collabSessionService','forwardRef','extend','sheet','merge','throttleTime','string','params','33944SnKNEl','getOwnPropertyDescriptor','IConfigService','live-share.config','registerComponent','useEffect','xlink:href','path','getCurrentTypeOfUnit$','_reporters','defineProperty','toDisposable','_beIdle','LIVESHARE_REQUEST_HOST','CollaborationEvent','@univerjs/ui','presenting','FOLLOWING','asObservable','_handleOffline','from','_handleNewChangeSets','replace','symbol','UniverInstanceType','_handleOnline','_stopPresenting','_entities','send','displayName','connectInjector','_liveShareService','Fragment','DesktopLiveShareController','defs','not-following','has','_univerInstanceService','286CabFXk','49370dAGiGI','_injector','useState','ICommandService','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','values','CollaborationSessionService','SAME_OPERATION_SHARE_INTERVAL','SetZoomRatioOperation','entries','executeCommand','event$','clsx','colorChannel1','toString','dispose','LIVESHARE_FETCH_OPERATIONS','_status$','apply','memberID','_sharedOperations','0\x200\x2017\x2017','getTypeOfUnitDisposed$','next','status$','rxjs/operators','rxjs','LIVESHARE_NEW_HOST','pipe','mask','react/jsx-runtime','following','random','396XlkaYF','disposeWithMe','Disposable','createInstance','touchDependencies','startFollowing','153363dHugLX','includes','Injector','prototype','_config','UniverCollaborationClientPlugin','jsx','evenodd','@univerjs/sheets-ui','1em','SessionStatus','ONLINE','trim','setConfig','IDLE','svg','_handleTerminate','LiveShareCoordinator','add','stopFollowing','getLiveShareCoordinator','delete','concat','override','_startFollowing','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','onStarting','fill','sessionStatus$','className','UNIVER_SHEET','attrs','icon','current','DependentOn','Module','_init','takeUntil','idSuffix','indexOf','univerjs-icon\x20univerjs-icon-','requireSession','Stop\x20following','univer-w-full\x20univer-mb-3\x20univer-text-sm','LiveShareController','parse','assign','NOT_FOLLOWING','registerInitialStateReporter','jsxs','6293304pkHaOi','forEach','@univerjs/design','Button','offline','div','DisposableCollection','BehaviorSubject','@univerjs-pro/collaboration-client','getInitialStates','shouldShareOperation','_mountLiveShare','defIds','getUnitId','tryStartPresenting','getMemberID','48otjEsL','currentColor','url(#$1','Start\x20following','unsubscribe','_handleNewHost','tag','1JruJiI','parseProtocolChangeset','_status','_handleOperation','call','end','Plugin','IUIPartsService','_uiPartsService','Subject','UNIVER_UNKNOWN','You\x27re\x20presenting\x20the\x20document','onCommandExecuted','Present\x20this\x20document','none','RxDisposable','children','length','_startPresenting','796056mZOhiI','UniverIcon','default','then','getValue','SetWorksheetActiveOperation','complete','_presenter','_collabSession'];_0xf609=function(){return _0x435e57;};return _0xf609();}function y(_0xe2192f,_0x27e8db,_0x112ad7,_0x19f867,_0x5a1d40){var _0x423766=_0xb39da1;return f['createElement'](_0xe2192f[_0x423766(0x1e2)],u(u({'key':_0x27e8db},q(_0xe2192f,_0x112ad7,_0x5a1d40)),_0x19f867),(W(_0xe2192f,_0x112ad7)[_0x423766(0x1f3)]||[])['map'](function(_0x31e4f5,_0x11f045){var _0x256323=_0x423766;return y(_0x31e4f5,''[_0x256323(0x1b0)](_0x27e8db,'-')[_0x256323(0x1b0)](_0xe2192f[_0x256323(0x1e2)],'-')[_0x256323(0x1b0)](_0x11f045),_0x112ad7,void 0x0,_0x5a1d40);}));}function q(_0x2a1f3e,_0x4d610c,_0x4a3be5){var _0x5b127d=_0xb39da1,_0x32c066=u({},_0x2a1f3e[_0x5b127d(0x1b9)]);_0x4a3be5!=null&&_0x4a3be5['colorChannel1']&&_0x32c066[_0x5b127d(0x1b5)]==='colorChannel1'&&(_0x32c066[_0x5b127d(0x1b5)]=_0x4a3be5[_0x5b127d(0x268)]),_0x2a1f3e[_0x5b127d(0x1e2)]===_0x5b127d(0x190)&&_0x32c066['id']&&(_0x32c066['id']=_0x32c066['id']+_0x4d610c[_0x5b127d(0x1c0)]),Object[_0x5b127d(0x264)](_0x32c066)[_0x5b127d(0x1cd)](function(_0x374579){var _0x33ac95=_0x5b127d,_0x3f2200=_0x374579[0x0],_0x2e2dce=_0x374579[0x1];_0x3f2200===_0x33ac95(0x190)&&typeof _0x2e2dce=='string'&&(_0x32c066[_0x3f2200]=_0x2e2dce[_0x33ac95(0x24a)](/url\(#(.*)\)/,_0x33ac95(0x1de)[_0x33ac95(0x1b0)](_0x4d610c[_0x33ac95(0x1c0)],')')));});var _0x1fe1c6=_0x4d610c[_0x5b127d(0x1d8)];return!_0x1fe1c6||_0x1fe1c6[_0x5b127d(0x1f4)]===0x0||(_0x2a1f3e[_0x5b127d(0x1e2)]===_0x5b127d(0x201)&&_0x32c066[_0x5b127d(0x23a)]&&(_0x32c066[_0x5b127d(0x23a)]=_0x32c066[_0x5b127d(0x23a)]+_0x4d610c[_0x5b127d(0x1c0)]),Object[_0x5b127d(0x264)](_0x32c066)[_0x5b127d(0x1cd)](function(_0x24651f){var _0x4d84a3=_0x5b127d,_0x3c4a66=_0x24651f[0x0],_0x4c49a3=_0x24651f[0x1];typeof _0x4c49a3==_0x4d84a3(0x232)&&(_0x32c066[_0x3c4a66]=_0x4c49a3[_0x4d84a3(0x24a)](/url\(#(.*)\)/,'url(#$1'[_0x4d84a3(0x1b0)](_0x4d610c[_0x4d84a3(0x1c0)],')')));})),_0x32c066;}function W(_0x16c26b,_0x3118d0){var _0x5367dc=_0xb39da1,_0x16a130,_0x104f41=_0x3118d0[_0x5367dc(0x1d8)];return!_0x104f41||_0x104f41[_0x5367dc(0x1f4)]===0x0?_0x16c26b:_0x16c26b[_0x5367dc(0x1e2)]===_0x5367dc(0x256)&&(!((_0x16a130=_0x16c26b[_0x5367dc(0x1f3)])===null||_0x16a130===void 0x0)&&_0x16a130[_0x5367dc(0x1f4)])?u(u({},_0x16c26b),{'children':_0x16c26b['children'][_0x5367dc(0x229)](function(_0x505280){var _0x50c275=_0x5367dc;return typeof _0x505280['attrs']['id']==_0x50c275(0x232)&&_0x104f41&&_0x104f41[_0x50c275(0x19b)](_0x505280[_0x50c275(0x1b9)]['id'])?u(u({},_0x505280),{'attrs':u(u({},_0x505280[_0x50c275(0x1b9)]),{'id':_0x505280[_0x50c275(0x1b9)]['id']+_0x3118d0[_0x50c275(0x1c0)]})}):_0x505280;})}):_0x16c26b;}function G(){var _0x7ea756=_0xb39da1;return Math[_0x7ea756(0x193)]()[_0x7ea756(0x269)](0x24)['substring'](0x2,0x8);}j[_0xb39da1(0x251)]=_0xb39da1(0x1f7);var B={'tag':_0xb39da1(0x1a9),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xb39da1(0x1f1),'viewBox':_0xb39da1(0x270),'width':'1em','height':_0xb39da1(0x1a3)},'children':[{'tag':_0xb39da1(0x23b),'attrs':{'fill':_0xb39da1(0x1dd),'d':_0xb39da1(0x25f)}},{'tag':_0xb39da1(0x23b),'attrs':{'fill':_0xb39da1(0x1dd),'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':_0xb39da1(0x1a1),'clipRule':_0xb39da1(0x1a1)}}]},P=f[_0xb39da1(0x22d)](function(_0x39cf12,_0x111093){var _0x2f5a0c=_0xb39da1;return f['createElement'](j,Object[_0x2f5a0c(0x1c8)]({},_0x39cf12,{'id':_0x2f5a0c(0x21f),'ref':_0x111093,'icon':B}));});P[_0xb39da1(0x251)]=_0xb39da1(0x214);var Y=Object[_0xb39da1(0x235)],R=(_0x5acabf,_0x19e6fd,_0x12f97d,_0xcfc1cf)=>{for(var _0x39ee0e=_0xcfc1cf>0x1?void 0x0:_0xcfc1cf?Y(_0x19e6fd,_0x12f97d):_0x19e6fd,_0x361557=_0x5acabf['length']-0x1,_0x3296ae;_0x361557>=0x0;_0x361557--)(_0x3296ae=_0x5acabf[_0x361557])&&(_0x39ee0e=_0x3296ae(_0x39ee0e)||_0x39ee0e);return _0x39ee0e;},S=(_0x16cdcb,_0x3e0406)=>(_0x5be149,_0x4de946)=>_0x3e0406(_0x5be149,_0x4de946,_0x16cdcb);exports[_0xb39da1(0x1c6)]=class extends o['RxDisposable']{constructor(_0x1fd163,_0x54634f,_0x5a6cbf){var _0x1a5d41=_0xb39da1;super(),v(this,'_entities',new Map()),(this[_0x1a5d41(0x259)]=_0x1fd163,this[_0x1a5d41(0x25c)]=_0x54634f,this['_collabSessionService']=_0x5a6cbf,this['_init']());}async['getLiveShareCoordinator'](_0x2f4618){var _0x47fe37=_0xb39da1;return this[_0x47fe37(0x24f)][_0x47fe37(0x258)](_0x2f4618)||await this[_0x47fe37(0x21e)](_0x2f4618),this[_0x47fe37(0x24f)][_0x47fe37(0x216)](_0x2f4618);}['_init'](){var _0x9ae764=_0xb39da1;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x9ae764(0x24c)][_0x9ae764(0x1b8)])[_0x9ae764(0x18f)](b[_0x9ae764(0x1bf)](this[_0x9ae764(0x20e)]))[_0x9ae764(0x215)](async _0x1e0f9c=>{var _0x179627=_0x9ae764;const _0x2aaf7d=_0x1e0f9c[_0x179627(0x1d9)]();this[_0x179627(0x24f)][_0x179627(0x258)](_0x2aaf7d)||this[_0x179627(0x21e)](_0x2aaf7d);}),this[_0x9ae764(0x259)][_0x9ae764(0x271)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x9ae764(0x18f)](b[_0x9ae764(0x1bf)](this[_0x9ae764(0x20e)]))['subscribe'](_0x480240=>{var _0x47a17c=_0x9ae764;const _0x120876=_0x480240[_0x47a17c(0x1d9)](),_0x2c1c1d=this['_entities'][_0x47a17c(0x216)](_0x120876);_0x2c1c1d==null||_0x2c1c1d[_0x47a17c(0x26a)]();});}async['_startLiveShareCoordinator'](_0x47ef39){var _0x4270a4=_0xb39da1;const _0x4bf744=await this[_0x4270a4(0x22c)][_0x4270a4(0x1c3)](_0x47ef39),_0x2b9732=this[_0x4270a4(0x25c)][_0x4270a4(0x197)](exports[_0x4270a4(0x1ab)],_0x47ef39,_0x4bf744);return _0x2b9732[_0x4270a4(0x208)](),this[_0x4270a4(0x24f)][_0x4270a4(0x20f)](_0x47ef39,_0x2b9732),_0x2b9732;}},exports['LiveShareController']=R([S(0x0,o[_0xb39da1(0x200)]),S(0x1,o[_0xb39da1(0x209)](o['Injector'])),S(0x2,o['Inject'](m[_0xb39da1(0x261)]))],exports[_0xb39da1(0x1c6)]);var h=(_0x402b64=>(_0x402b64['OFFLINE']=_0xb39da1(0x1d0),_0x402b64[_0xb39da1(0x1a8)]=_0xb39da1(0x210),_0x402b64['FOLLOWING']=_0xb39da1(0x192),_0x402b64[_0xb39da1(0x1c9)]=_0xb39da1(0x257),_0x402b64['PRESENTING']=_0xb39da1(0x244),_0x402b64))(h||{});const Z=_0xb39da1(0x262),J=0xc8;exports[_0xb39da1(0x1ab)]=class extends o[_0xb39da1(0x1f2)]{constructor(_0x59c4d5,_0x2dd9f7,_0x3a0d59,_0x1f1b61,_0x588fd4){var _0x46080e=_0xb39da1;super(),v(this,_0x46080e(0x26c),new D[(_0x46080e(0x1d3))](_0x46080e(0x210))),v(this,_0x46080e(0x18b),this[_0x46080e(0x26c)][_0x46080e(0x246)]()),v(this,'_init',!0x1),v(this,_0x46080e(0x20d),null),v(this,_0x46080e(0x1fd),null),(this[_0x46080e(0x227)]=_0x59c4d5,this['_collabSession']=_0x2dd9f7,this[_0x46080e(0x20a)]=_0x3a0d59,this[_0x46080e(0x253)]=_0x1f1b61,this['_commandService']=_0x588fd4);}get[_0xb39da1(0x1e5)](){var _0x3a12a3=_0xb39da1;return this[_0x3a12a3(0x26c)][_0x3a12a3(0x1fa)]();}[_0xb39da1(0x26a)](){var _0x37cc62=_0xb39da1,_0x3bc66c;(_0x3bc66c=this[_0x37cc62(0x20d)])==null||_0x3bc66c[_0x37cc62(0x26a)](),this[_0x37cc62(0x26c)]['next']('idle'),this['_status$'][_0x37cc62(0x1fc)]();}[_0xb39da1(0x208)](){var _0x421d45=_0xb39da1;this[_0x421d45(0x1be)]||(this['_init']=!0x0,this['_collabSession'][_0x421d45(0x1b6)]['pipe'](b[_0x421d45(0x1bf)](this['dispose$']))[_0x421d45(0x215)](_0x48b0ea=>{var _0x9c3953=_0x421d45;switch(_0x48b0ea){case m[_0x9c3953(0x1a4)][_0x9c3953(0x207)]:this[_0x9c3953(0x247)]();break;case m[_0x9c3953(0x1a4)][_0x9c3953(0x1a5)]:this[_0x9c3953(0x24d)]();break;}}),this[_0x421d45(0x1fe)][_0x421d45(0x266)][_0x421d45(0x18f)](b['takeUntil'](this[_0x421d45(0x20e)]))[_0x421d45(0x215)](_0x14c89b=>{var _0x3787cc=_0x421d45;const {eventID:_0x307a9b}=_0x14c89b;switch(_0x307a9b){case _[_0x3787cc(0x242)][_0x3787cc(0x18e)]:this[_0x3787cc(0x1e1)](_0x14c89b);break;case _['CollaborationEvent'][_0x3787cc(0x221)]:this[_0x3787cc(0x1e6)](_0x14c89b);break;case _[_0x3787cc(0x242)][_0x3787cc(0x211)]:this['_handleTerminate']();break;case _[_0x3787cc(0x242)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x14c89b);break;}}));}[_0xb39da1(0x1da)](){var _0x4840fb=_0xb39da1;this['_collabSession'][_0x4840fb(0x250)]({'eventID':_[_0x4840fb(0x242)][_0x4840fb(0x241)],'data':{'unitID':this['_unitID'],'userID':this[_0x4840fb(0x1fe)][_0x4840fb(0x1db)]()}},this[_0x4840fb(0x227)]);}[_0xb39da1(0x223)](){var _0x3d102c=_0xb39da1;this[_0x3d102c(0x1e5)]===_0x3d102c(0x244)&&(this[_0x3d102c(0x26c)][_0x3d102c(0x272)]('idle'),this['_collabSession']['send']({'eventID':_['CollaborationEvent'][_0x3d102c(0x211)],'data':{'unitID':this[_0x3d102c(0x227)]}},this[_0x3d102c(0x227)]));}[_0xb39da1(0x199)](){var _0x29657a=_0xb39da1;this[_0x29657a(0x1e5)]===_0x29657a(0x257)&&(this[_0x29657a(0x26c)][_0x29657a(0x272)](_0x29657a(0x192)),this[_0x29657a(0x1b2)]());}['stopFollowing'](){var _0xe783bc=_0xb39da1;this['_status']==='following'&&this[_0xe783bc(0x21a)]();}[_0xb39da1(0x1e1)](_0x1a5094){var _0x1dc58f=_0xb39da1;const {presenter:_0x584155}=_0x1a5094[_0x1dc58f(0x217)],_0x394890=this[_0x1dc58f(0x1fe)][_0x1dc58f(0x1db)]();this['_presenter']=_0x584155,_0x584155===_0x394890?(this[_0x1dc58f(0x21a)](),this[_0x1dc58f(0x1f5)]()):this[_0x1dc58f(0x1e5)]!==_0x1dc58f(0x257)&&(this[_0x1dc58f(0x24e)](),this[_0x1dc58f(0x1b2)]());}[_0xb39da1(0x205)](){var _0x51e623=_0xb39da1;const _0x3e30d3={'eventID':_[_0x51e623(0x242)][_0x51e623(0x26b)]};this[_0x51e623(0x1fe)]['send'](_0x3e30d3,this[_0x51e623(0x227)]);}[_0xb39da1(0x1aa)](){var _0x38e487=_0xb39da1;this[_0x38e487(0x1fd)]=null,this[_0x38e487(0x1e5)]!=='presenting'&&this[_0x38e487(0x240)]();}[_0xb39da1(0x249)](_0x378930){var _0x237bd2=_0xb39da1;if(this[_0x237bd2(0x1e5)]==='following'&&this[_0x237bd2(0x1fd)]===_0x378930[_0x237bd2(0x217)][_0x237bd2(0x26e)]){const _0xe68432=_[_0x237bd2(0x1e4)](_0x378930[_0x237bd2(0x217)])[_0x237bd2(0x212)][_0x237bd2(0x219)]()[_0x237bd2(0x206)](_0x213a3a=>_0x213a3a['id']===C['InsertSheetMutation']['id']);if(_0xe68432){const _0x405938=_0xe68432['params'][_0x237bd2(0x22a)],_0x34fcd1=_0xe68432[_0x237bd2(0x233)][_0x237bd2(0x22f)]['id'];setTimeout(()=>{var _0x24401a=_0x237bd2;this[_0x24401a(0x224)][_0x24401a(0x265)](C[_0x24401a(0x1fb)]['id'],{'unitId':_0x405938,'subUnitId':_0x34fcd1},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x57ea1a=_0xb39da1;this[_0x57ea1a(0x26c)][_0x57ea1a(0x272)](_0x57ea1a(0x244));const _0x4c86ce=new Map(),_0x1ae277=this[_0x57ea1a(0x20d)]=new o[(_0x57ea1a(0x1d2))]();_0x1ae277[_0x57ea1a(0x1ac)](o[_0x57ea1a(0x23f)](()=>{var _0x4829dc=_0x57ea1a;_0x4c86ce[_0x4829dc(0x1cd)](_0x5702d7=>_0x5702d7[_0x4829dc(0x1fc)]()),_0x4c86ce['clear']();})),_0x1ae277[_0x57ea1a(0x1ac)](this[_0x57ea1a(0x224)][_0x57ea1a(0x1ef)](_0x4fb79c=>{var _0x5a7719=_0x57ea1a,_0x54cfc3;if(_0x4fb79c['type']!==o['CommandType'][_0x5a7719(0x21c)]||!this['_liveShareService'][_0x5a7719(0x1d6)](_0x4fb79c['id']))return;const {id:_0x5143ce}=_0x4fb79c;let _0xe5d37a;_0x4c86ce[_0x5a7719(0x258)](_0x5143ce)?_0xe5d37a=_0x4c86ce[_0x5a7719(0x216)](_0x5143ce):(_0xe5d37a=new D[(_0x5a7719(0x1ec))](),_0x4c86ce[_0x5a7719(0x20f)](_0x5143ce,_0xe5d37a),_0xe5d37a['pipe'](b[_0x5a7719(0x231)]((_0x54cfc3=this[_0x5a7719(0x20a)][_0x5a7719(0x228)](Z))!=null?_0x54cfc3:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5a7719(0x215)](_0x3715c7=>{var _0x59e4d1=_0x5a7719;this[_0x59e4d1(0x1fe)][_0x59e4d1(0x250)]({'eventID':_[_0x59e4d1(0x242)][_0x59e4d1(0x221)],'data':{'unitID':this[_0x59e4d1(0x227)],'operations':{[_0x3715c7['id']]:{'id':_0x3715c7['id'],'params':JSON['stringify'](_0x3715c7[_0x59e4d1(0x233)])}}}},this[_0x59e4d1(0x227)]);})),_0xe5d37a[_0x5a7719(0x272)](_0x4fb79c);})),this[_0x57ea1a(0x253)][_0x57ea1a(0x1d5)](this['_unitID'])[_0x57ea1a(0x1cd)](_0x1efb54=>this[_0x57ea1a(0x1fe)][_0x57ea1a(0x250)]({'eventID':_[_0x57ea1a(0x242)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x57ea1a(0x227)],'operations':{[_0x1efb54['id']]:{'id':_0x1efb54['id'],'params':JSON['stringify'](_0x1efb54[_0x57ea1a(0x233)])}}}},this[_0x57ea1a(0x227)]));}['_stopPresenting'](){var _0x2bc273=_0xb39da1,_0x1b427a;this['_status$'][_0x2bc273(0x272)](_0x2bc273(0x210)),(_0x1b427a=this[_0x2bc273(0x20d)])==null||_0x1b427a[_0x2bc273(0x26a)](),this[_0x2bc273(0x20d)]=null;}[_0xb39da1(0x1b2)](){var _0x1cfeaa=_0xb39da1,_0x5f4435;(_0x5f4435=this['_commandDisposable'])==null||_0x5f4435[_0x1cfeaa(0x26a)](),this[_0x1cfeaa(0x26c)][_0x1cfeaa(0x272)](_0x1cfeaa(0x192));}[_0xb39da1(0x240)](){var _0x33ce9a=_0xb39da1,_0x5b39ba;this['_status$'][_0x33ce9a(0x272)](_0x33ce9a(0x210)),(_0x5b39ba=this['_commandDisposable'])==null||_0x5b39ba['dispose'](),this[_0x33ce9a(0x20d)]=null;}[_0xb39da1(0x21a)](){var _0x423f52=_0xb39da1,_0x4a55dd;this[_0x423f52(0x26c)][_0x423f52(0x272)](_0x423f52(0x257)),(_0x4a55dd=this[_0x423f52(0x20d)])==null||_0x4a55dd[_0x423f52(0x26a)]();}[_0xb39da1(0x1e6)](_0x30dee8){var _0x16eb8b=_0xb39da1;if([_0x16eb8b(0x244),'not-following','offline'][_0x16eb8b(0x19b)](this[_0x16eb8b(0x1e5)])||!_0x30dee8[_0x16eb8b(0x217)][_0x16eb8b(0x226)]||_0x30dee8['data'][_0x16eb8b(0x226)]===this[_0x16eb8b(0x1fe)][_0x16eb8b(0x1db)]())return;this[_0x16eb8b(0x1e5)]===_0x16eb8b(0x210)&&this['_startFollowing']();const _0x570ef3=_0x30dee8['data']['operations'];Object[_0x16eb8b(0x260)](_0x570ef3)['forEach'](_0x326486=>{var _0x5acc1f=_0x16eb8b;this['_commandService'][_0x5acc1f(0x265)](_0x326486['id'],_0x326486[_0x5acc1f(0x233)]?JSON[_0x5acc1f(0x1c7)](_0x326486[_0x5acc1f(0x233)]):null,{'fromCollab':!0x0});});}[_0xb39da1(0x247)](){var _0x473841=_0xb39da1,_0x69d24;this[_0x473841(0x26c)][_0x473841(0x272)](_0x473841(0x1d0)),(_0x69d24=this[_0x473841(0x20d)])==null||_0x69d24[_0x473841(0x26a)]();}[_0xb39da1(0x24d)](){var _0x163bf0=_0xb39da1;this['_status$']['next'](_0x163bf0(0x210)),this[_0x163bf0(0x205)]();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0xb39da1(0x236)]),S(0x3,o[_0xb39da1(0x209)](O)),S(0x4,o[_0xb39da1(0x25e)])],exports[_0xb39da1(0x1ab)]);function A(){var _0x2b6440=_0xb39da1;const _0x3ee3f8=p['useDependency'](exports[_0x2b6440(0x1c6)]),_0x5399f0=p['useDependency'](o[_0x2b6440(0x200)]),_0xec0f9a=p[_0x2b6440(0x20b)](()=>_0x5399f0[_0x2b6440(0x23c)](o[_0x2b6440(0x24c)][_0x2b6440(0x1b8)]),void 0x0,!0x1,[]),[_0x4ec4c1,_0x5c5c1e]=f[_0x2b6440(0x25d)](null),[_0x50e085,_0x4a8595]=f['useState'](h[_0x2b6440(0x1a8)]),_0x3ca9b7=f['useRef'](null);return f[_0x2b6440(0x239)](()=>(_0xec0f9a&&_0x3ee3f8[_0x2b6440(0x1ae)](_0xec0f9a['getUnitId']())[_0x2b6440(0x1f9)](_0x3ec1f9=>{var _0x5c962a=_0x2b6440;_0x5c5c1e(_0x3ec1f9),_0x3ca9b7[_0x5c962a(0x1bb)]=_0x3ec1f9['status$'][_0x5c962a(0x215)](_0x175538=>{_0x4a8595(_0x175538);});}),()=>{var _0x2de03c=_0x2b6440,_0x49f1ed;(_0x49f1ed=_0x3ca9b7[_0x2de03c(0x1bb)])==null||_0x49f1ed[_0x2de03c(0x1e0)](),_0x3ca9b7[_0x2de03c(0x1bb)]=null;}),[_0xec0f9a,_0x3ee3f8]),_0x4ec4c1?l['jsx'](g['Dropdown'],{'align':_0x2b6440(0x1e8),'disabled':_0x50e085===h['OFFLINE'],'className':_0x2b6440(0x1b3),'overlay':l[_0x2b6440(0x1a0)](K,{'status':_0x50e085,'coordinator':_0x4ec4c1}),'children':l['jsx'](_0x2b6440(0x218),{'className':g[_0x2b6440(0x267)]('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x50e085===h[_0x2b6440(0x207)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x50e085!==h[_0x2b6440(0x207)]}),'type':_0x2b6440(0x218),'children':l[_0x2b6440(0x1a0)](P,{'className':'univer-size-4'})})}):null;}function K(_0x2aadff){var _0x119466=_0xb39da1;const {status:_0x18685,coordinator:_0x43e12d}=_0x2aadff;switch(_0x18685){case h[_0x119466(0x1a8)]:return l['jsx'](z,{'coordinator':_0x43e12d});case h[_0x119466(0x245)]:return l[_0x119466(0x1a0)](Q,{'coordinator':_0x43e12d});case h[_0x119466(0x1c9)]:return l[_0x119466(0x1a0)](X,{'coordinator':_0x43e12d});case h[_0x119466(0x207)]:return l[_0x119466(0x1a0)](te,{});case h['PRESENTING']:return l[_0x119466(0x1a0)](ee,{'coordinator':_0x43e12d});default:return null;}}function z(_0x184a53){var _0x34b5c9=_0xb39da1;const {coordinator:_0x47fad4}=_0x184a53;return l['jsxs'](l[_0x34b5c9(0x254)],{'children':[l[_0x34b5c9(0x1a0)]('div',{'className':_0x34b5c9(0x1c5),'children':_0x34b5c9(0x1f0)}),l['jsx'](g['Button'],{'onClick':()=>_0x47fad4[_0x34b5c9(0x1da)](),'children':'Start'})]});}function Q(_0x3303cf){var _0x407658=_0xb39da1;const {coordinator:_0x3cca6c}=_0x3303cf;return l[_0x407658(0x1cb)](l[_0x407658(0x254)],{'children':[l[_0x407658(0x1a0)](_0x407658(0x1d1),{'className':_0x407658(0x1c5),'children':_0x407658(0x1ff)}),l[_0x407658(0x1a0)](g[_0x407658(0x1cf)],{'onClick':()=>_0x3cca6c[_0x407658(0x1ad)](),'children':_0x407658(0x1c4)})]});}function X(_0x1e9f12){var _0x3be18c=_0xb39da1;const {coordinator:_0x34193b}=_0x1e9f12;return l['jsxs'](l[_0x3be18c(0x254)],{'children':[l['jsx'](_0x3be18c(0x1d1),{'className':_0x3be18c(0x1c5),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x3be18c(0x1a0)](g['Button'],{'variant':'text','onClick':()=>_0x34193b[_0x3be18c(0x199)](),'children':_0x3be18c(0x1df)})]});}function ee(_0x2f57f7){var _0x1f45ae=_0xb39da1;const {coordinator:_0x56c615}=_0x2f57f7;return l[_0x1f45ae(0x1cb)](l[_0x1f45ae(0x254)],{'children':[l['jsx']('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x1f45ae(0x1ee)}),l['jsx'](g[_0x1f45ae(0x1cf)],{'variant':_0x1f45ae(0x1f8),'onClick':()=>_0x56c615[_0x1f45ae(0x223)](),'children':_0x1f45ae(0x20c)})]});}function te(){var _0x47af10=_0xb39da1;return l[_0x47af10(0x1a0)](l[_0x47af10(0x254)],{'children':'You\x27are\x20offline.'});}var ie=Object[_0xb39da1(0x235)],ne=(_0x49834e,_0x576617,_0x234c9a,_0x4f3137)=>{var _0x29c4c9=_0xb39da1;for(var _0x18fdde=_0x4f3137>0x1?void 0x0:_0x4f3137?ie(_0x576617,_0x234c9a):_0x576617,_0x25a18a=_0x49834e[_0x29c4c9(0x1f4)]-0x1,_0x5550ae;_0x25a18a>=0x0;_0x25a18a--)(_0x5550ae=_0x49834e[_0x25a18a])&&(_0x18fdde=_0x5550ae(_0x18fdde)||_0x18fdde);return _0x18fdde;},L=(_0x550651,_0x421829)=>(_0x2a504a,_0x1e24fc)=>_0x421829(_0x2a504a,_0x1e24fc,_0x550651);exports[_0xb39da1(0x255)]=class extends o[_0xb39da1(0x196)]{constructor(_0x44790f,_0x1078d6){var _0x4d0795=_0xb39da1;super(),this['_injector']=_0x44790f,this[_0x4d0795(0x1eb)]=_0x1078d6,this[_0x4d0795(0x1d7)]();}[_0xb39da1(0x1d7)](){var _0x1e9073=_0xb39da1;this[_0x1e9073(0x195)](this['_uiPartsService'][_0x1e9073(0x238)](p['BuiltInUIPart']['HEADER_MENU'],()=>p[_0x1e9073(0x252)](A,this['_injector'])));}},exports[_0xb39da1(0x255)]=ne([L(0x0,o[_0xb39da1(0x209)](o['Injector'])),L(0x1,p[_0xb39da1(0x1ea)])],exports[_0xb39da1(0x255)]);var re=Object[_0xb39da1(0x23e)],se=Object[_0xb39da1(0x235)],oe=(_0x524bdc,_0x4f24d5,_0x8fefc9)=>_0x4f24d5 in _0x524bdc?re(_0x524bdc,_0x4f24d5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x8fefc9}):_0x524bdc[_0x4f24d5]=_0x8fefc9,ae=(_0x560ecc,_0x45129b,_0x3483d1,_0x4ecbc3)=>{var _0xc5385c=_0xb39da1;for(var _0x3841b6=_0x4ecbc3>0x1?void 0x0:_0x4ecbc3?se(_0x45129b,_0x3483d1):_0x45129b,_0x2c0fe1=_0x560ecc[_0xc5385c(0x1f4)]-0x1,_0x32cc67;_0x2c0fe1>=0x0;_0x2c0fe1--)(_0x32cc67=_0x560ecc[_0x2c0fe1])&&(_0x3841b6=_0x32cc67(_0x3841b6)||_0x3841b6);return _0x3841b6;},N=(_0x15c216,_0x25f1e0)=>(_0x434fcf,_0x160e9a)=>_0x25f1e0(_0x434fcf,_0x160e9a,_0x15c216),T=(_0x2d5b76,_0x31b630,_0x1811d7)=>oe(_0x2d5b76,typeof _0x31b630!=_0xb39da1(0x24b)?_0x31b630+'':_0x31b630,_0x1811d7);const le=_0xb39da1(0x225);exports['UniverLiveSharePlugin']=class extends o[_0xb39da1(0x1e9)]{constructor(_0x54d86c=x,_0x5497be,_0x5bc1f3){var _0x289801=_0xb39da1;super(),this['_config']=_0x54d86c,this[_0x289801(0x25c)]=_0x5497be,this['_configService']=_0x5bc1f3;const {..._0x557f9f}=o[_0x289801(0x230)]({},x,this[_0x289801(0x19e)]);this[_0x289801(0x20a)][_0x289801(0x1a7)]($,_0x557f9f);}[_0xb39da1(0x1b4)](){var _0x1e76e9=_0xb39da1;o[_0x1e76e9(0x220)](this[_0x1e76e9(0x25c)],o['mergeOverrideWithDependencies']([[O],[exports['LiveShareController']],[E],[exports[_0x1e76e9(0x255)]]],this[_0x1e76e9(0x19e)][_0x1e76e9(0x1b1)])),o['touchDependencies'](this[_0x1e76e9(0x25c)],[[E]]);}['onRendered'](){var _0x1658e4=_0xb39da1;o[_0x1658e4(0x198)](this[_0x1658e4(0x25c)],[[exports[_0x1658e4(0x255)]]]);}},T(exports['UniverLiveSharePlugin'],'type',o[_0xb39da1(0x24c)][_0xb39da1(0x1ed)]),T(exports[_0xb39da1(0x213)],'pluginName',le),exports[_0xb39da1(0x213)]=ae([o[_0xb39da1(0x1bc)](m[_0xb39da1(0x19f)]),N(0x1,o[_0xb39da1(0x209)](o[_0xb39da1(0x19c)])),N(0x2,o[_0xb39da1(0x236)])],exports['UniverLiveSharePlugin']),exports['LiveShare']=A,exports[_0xb39da1(0x21b)]=O,exports['LiveShareStatus']=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x2886db=_0x695d;(function(_0x2703d9,_0x3b1564){var _0x42cf87=_0x695d,_0x447e39=_0x2703d9();while(!![]){try{var _0x16c535=parseInt(_0x42cf87(0x1a3))/0x1+-parseInt(_0x42cf87(0x1ea))/0x2+parseInt(_0x42cf87(0x1e2))/0x3+-parseInt(_0x42cf87(0x1c1))/0x4+parseInt(_0x42cf87(0x1a0))/0x5*(parseInt(_0x42cf87(0x1bb))/0x6)+parseInt(_0x42cf87(0x187))/0x7+parseInt(_0x42cf87(0x1c2))/0x8;if(_0x16c535===_0x3b1564)break;else _0x447e39['push'](_0x447e39['shift']());}catch(_0x21a2b3){_0x447e39['push'](_0x447e39['shift']());}}}(_0xe8c5,0xc1a67));var q=Object[_0x2886db(0x1fe)],z=(_0x6fd7f3,_0xf382dd,_0x4ef9e4)=>_0xf382dd in _0x6fd7f3?q(_0x6fd7f3,_0xf382dd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ef9e4}):_0x6fd7f3[_0xf382dd]=_0x4ef9e4,d=(_0x49ce15,_0x2e15bc,_0x366d9a)=>z(_0x49ce15,typeof _0x2e15bc!=_0x2886db(0x1c0)?_0x2e15bc+'':_0x2e15bc,_0x366d9a);import{CollaborationSessionService as _0x37b98,SessionStatus as _0x4e7aee,UniverCollaborationClientPlugin as _0x5a9880}from'@univerjs-pro/collaboration-client';import{Disposable as _0x172f34,toDisposable as _0x3a14b5,Inject as _0x10aaa1,IUniverInstanceService as _0x11d622,Injector as _0x2015d8,IConfigService as _0x37a6e8,ICommandService as _0x342266,RxDisposable as _0x6f1f15,UniverInstanceType as _0x4aff88,DisposableCollection as _0x274689,CommandType as _0x55a605,DependentOn as _0x35d3f7,Plugin as _0x3a7036,merge as _0x4c5a48,registerDependencies as _0x5c518a,mergeOverrideWithDependencies as _0x1d9838,touchDependencies as _0x1e2724}from'@univerjs/core';import{SetWorksheetActiveOperation as _0xcf814f,InsertSheetMutation as _0x1800b8}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x59a1e5,SetScrollOperation as _0x28ccdf}from'@univerjs/sheets-ui';import{useDependency as _0x5b3603,useObservable as _0x2d4df2,IUIPartsService as _0x125ac6,BuiltInUIPart as _0x2083b0,connectInjector as _0x1b45da}from'@univerjs/ui';function _0xe8c5(){var _0x5b08f7=['_commandDisposable','data','_uiPartsService','UNIVER_LIVE_SHARE_PLUGIN','_fetchOperations','status$','createInstance','not-following','_unitID','160GtGCon','displayName','_collabSession','672842RruRfX','clear','http://www.w3.org/2000/svg','_configService','_handleTerminate','pluginName','getTypeOfUnitAdded$','registerInitialStateReporter','NOT_FOLLOWING','svg','onCommandExecuted','button','path','unsubscribe','_univerInstanceService','substring','_liveShareService','getMemberID','init','Start\x20following','operations','end','mask','find','41682tSaQyj','_stopPresenting','sheet','startFollowing','SAME_OPERATION_SHARE_INTERVAL','symbol','5727132ibxYQW','5709768gAsUEh','pipe','send','subscribe','getTypeOfUnitDisposed$','OPERATION','univer-w-full\x20univer-mb-3\x20univer-text-sm','presenter','univerjs-icon\x20univerjs-icon-','indexOf','sessionStatus$','function','use','registerComponent','icon','set','add','LIVESHARE_TERMINATE','stopPresenting','Start','OFFLINE','currentColor','getUnitId','values','idle','UNIVER_SHEET','replace','map','asObservable','You\x27re\x20not\x20following\x20the\x20presenter','getOwnPropertyDescriptor','_handleNewChangeSets','2559432JKoicy','get','IDLE','_status$','stopFollowing','default','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','HEADER_MENU','2289478UaXRZi','extend','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','_startFollowing','params','getLiveShareCoordinator','_startLiveShareCoordinator','disposeWithMe','univer-size-4','You\x27re\x20presenting\x20the\x20document','unitId','text','url(#$1','memberID','1em','_status','current','getInitialStates','idSuffix','xlink:href','defineProperty','dispose','getConfig','onStarting','PRESENTING','shouldShareOperation','from','length','dispose$','_presenter','trim','_entities','string','_init','includes','LIVESHARE_REQUEST_HOST','Stop\x20following','prototype','stringify','_stopFollowing','forEach','registerSharedOperation','hasOwnProperty','colorChannel1','_sharedOperations','LIVESHARE_OPERATION','requireSession','_handleNewHost','_commandService','parse','LIVESHARE_FETCH_OPERATIONS','_config','defIds','_injector','Stop\x20presenting','type','_beIdle','mutations','UniverIcon','evenodd','live-share-icon','presenting','none','Present\x20this\x20document','_reporters','div','tag','apply','_handleOnline','_mountLiveShare','has','reverse','UNIVER_UNKNOWN','children','delete','_handleOperation','setConfig','6353914RfmbYB','tryStartPresenting','random','You\x27re\x20following\x20the\x20presenter','offline','getCurrentTypeOfUnit$','following','attrs','concat','next','FOLLOWING','assign','then','executeCommand','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','call'];_0xe8c5=function(){return _0x5b08f7;};return _0xe8c5();}import{jsx as _0x3a52ad,jsxs as _0x199030,Fragment as _0x1dbeda}from'react/jsx-runtime';import{Dropdown as _0x4dd19b,clsx as _0x2351ae,Button as _0x2dde90}from'@univerjs/design';import{forwardRef as _0x55f301,useRef as _0x2d195a,createElement as _0xc61559,useState as _0x11cb7c,useEffect as _0x548d7b}from'react';import{CollaborationEvent as _0x31f6e1,parseProtocolChangeset as _0xb1adb}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x1dc9f4,Subject as _0x5762}from'rxjs';import{takeUntil as _0x120c99,throttleTime as _0x2d347e}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x172f34{constructor(){var _0x530ca9=_0x2886db;super(...arguments),d(this,_0x530ca9(0x216),new Set()),d(this,_0x530ca9(0x17a),new Set());}[_0x2886db(0x213)](_0xa9a2eb){var _0x3ab327=_0x2886db;return this[_0x3ab327(0x216)]['add'](_0xa9a2eb),_0x3a14b5(()=>this[_0x3ab327(0x216)][_0x3ab327(0x184)](_0xa9a2eb));}[_0x2886db(0x1aa)](_0xd28cfd){var _0x43d297=_0x2886db;return this[_0x43d297(0x17a)]['add'](_0xd28cfd),_0x3a14b5(()=>this[_0x43d297(0x17a)][_0x43d297(0x184)](_0xd28cfd));}[_0x2886db(0x203)](_0x1be4db){var _0x40f7d5=_0x2886db;return this[_0x40f7d5(0x216)]['has'](_0x1be4db);}[_0x2886db(0x1fb)](_0x183b70){var _0x4fee2f=_0x2886db;return Array[_0x4fee2f(0x204)](this['_reporters'])[_0x4fee2f(0x1dd)](_0x50791d=>_0x50791d(_0x183b70));}}var Ee=Object[_0x2886db(0x1e0)],we=(_0x18011c,_0x10c997,_0x2ff8b6,_0x4c53c0)=>{var _0x35c24c=_0x2886db;for(var _0x5bccd3=_0x4c53c0>0x1?void 0x0:_0x4c53c0?Ee(_0x10c997,_0x2ff8b6):_0x10c997,_0x476d91=_0x18011c[_0x35c24c(0x205)]-0x1,_0xb2602c;_0x476d91>=0x0;_0x476d91--)(_0xb2602c=_0x18011c[_0x476d91])&&(_0x5bccd3=_0xb2602c(_0x5bccd3)||_0x5bccd3);return _0x5bccd3;},Ne=(_0xcb8e00,_0x1bdf91)=>(_0x27709c,_0x5d933b)=>_0x1bdf91(_0x27709c,_0x5d933b,_0xcb8e00);let m=class extends _0x172f34{constructor(_0x1c26df){var _0x27310a=_0x2886db;super(),this[_0x27310a(0x1b3)]=_0x1c26df,this[_0x27310a(0x20b)]();}['_init'](){[_0x59a1e5['id'],_0x28ccdf['id'],_0xcf814f['id']]['forEach'](_0x45fb27=>{var _0x338720=_0x695d;this[_0x338720(0x1f1)](this[_0x338720(0x1b3)][_0x338720(0x213)](_0x45fb27));});}};m=we([Ne(0x0,_0x10aaa1(L))],m);var c=function(){var _0x28ffd9=_0x2886db;return c=Object['assign']||function(_0x42fdd4){var _0xc4ae1b=_0x695d;for(var _0x4fbdf2,_0x1b24f6=0x1,_0x1c5fe9=arguments[_0xc4ae1b(0x205)];_0x1b24f6<_0x1c5fe9;_0x1b24f6++){_0x4fbdf2=arguments[_0x1b24f6];for(var _0x4f99a7 in _0x4fbdf2)Object[_0xc4ae1b(0x20f)]['hasOwnProperty'][_0xc4ae1b(0x196)](_0x4fbdf2,_0x4f99a7)&&(_0x42fdd4[_0x4f99a7]=_0x4fbdf2[_0x4f99a7]);}return _0x42fdd4;},c[_0x28ffd9(0x17d)](this,arguments);},Ce=function(_0x397068,_0x18e9a5){var _0x21b23c=_0x2886db,_0xbe4af8={};for(var _0x5791af in _0x397068)Object['prototype'][_0x21b23c(0x214)][_0x21b23c(0x196)](_0x397068,_0x5791af)&&_0x18e9a5['indexOf'](_0x5791af)<0x0&&(_0xbe4af8[_0x5791af]=_0x397068[_0x5791af]);if(_0x397068!=null&&typeof Object['getOwnPropertySymbols']==_0x21b23c(0x1cd)){for(var _0x365b14=0x0,_0x5791af=Object['getOwnPropertySymbols'](_0x397068);_0x365b14<_0x5791af[_0x21b23c(0x205)];_0x365b14++)_0x18e9a5[_0x21b23c(0x1cb)](_0x5791af[_0x365b14])<0x0&&Object[_0x21b23c(0x20f)]['propertyIsEnumerable'][_0x21b23c(0x196)](_0x397068,_0x5791af[_0x365b14])&&(_0xbe4af8[_0x5791af[_0x365b14]]=_0x397068[_0x5791af[_0x365b14]]);}return _0xbe4af8;},W=_0x55f301(function(_0x362ed2,_0x2ad381){var _0x393126=_0x2886db,_0x105cb4=_0x362ed2[_0x393126(0x1d0)],_0x32307a=_0x362ed2['id'],_0x30c563=_0x362ed2['className'],_0x5a4b4a=_0x362ed2['extend'],_0x4a13c3=Ce(_0x362ed2,[_0x393126(0x1d0),'id','className',_0x393126(0x1eb)]),_0xadbe55=_0x393126(0x1ca)[_0x393126(0x18f)](_0x32307a,'\x20')[_0x393126(0x18f)](_0x30c563||'')[_0x393126(0x208)](),_0x323407=_0x2d195a('_'['concat'](Le()));return Y(_0x105cb4,''[_0x393126(0x18f)](_0x32307a),{'defIds':_0x105cb4[_0x393126(0x21e)],'idSuffix':_0x323407[_0x393126(0x1fa)]},c({'ref':_0x2ad381,'className':_0xadbe55},_0x4a13c3),_0x5a4b4a);});function Y(_0x56ab80,_0x5478e5,_0x5ac3d4,_0x56c996,_0x55335c){var _0x399ce6=_0x2886db;return _0xc61559(_0x56ab80[_0x399ce6(0x17c)],c(c({'key':_0x5478e5},De(_0x56ab80,_0x5ac3d4,_0x55335c)),_0x56c996),(xe(_0x56ab80,_0x5ac3d4)['children']||[])[_0x399ce6(0x1dd)](function(_0x51dd99,_0x280f97){var _0x51b815=_0x399ce6;return Y(_0x51dd99,''['concat'](_0x5478e5,'-')[_0x51b815(0x18f)](_0x56ab80[_0x51b815(0x17c)],'-')[_0x51b815(0x18f)](_0x280f97),_0x5ac3d4,void 0x0,_0x55335c);}));}function De(_0x2d8e39,_0x358f41,_0x3e1612){var _0x502666=_0x2886db,_0x12043d=c({},_0x2d8e39[_0x502666(0x18e)]);_0x3e1612!=null&&_0x3e1612[_0x502666(0x215)]&&_0x12043d['fill']===_0x502666(0x215)&&(_0x12043d['fill']=_0x3e1612[_0x502666(0x215)]),_0x2d8e39[_0x502666(0x17c)]===_0x502666(0x1b9)&&_0x12043d['id']&&(_0x12043d['id']=_0x12043d['id']+_0x358f41[_0x502666(0x1fc)]),Object['entries'](_0x12043d)[_0x502666(0x212)](function(_0x36579d){var _0x36c549=_0x502666,_0x3e4d7d=_0x36579d[0x0],_0x37ffee=_0x36579d[0x1];_0x3e4d7d===_0x36c549(0x1b9)&&typeof _0x37ffee==_0x36c549(0x20a)&&(_0x12043d[_0x3e4d7d]=_0x37ffee[_0x36c549(0x1dc)](/url\(#(.*)\)/,_0x36c549(0x1f6)['concat'](_0x358f41[_0x36c549(0x1fc)],')')));});var _0x3cad34=_0x358f41[_0x502666(0x21e)];return!_0x3cad34||_0x3cad34[_0x502666(0x205)]===0x0||(_0x2d8e39[_0x502666(0x17c)]===_0x502666(0x1ce)&&_0x12043d[_0x502666(0x1fd)]&&(_0x12043d[_0x502666(0x1fd)]=_0x12043d[_0x502666(0x1fd)]+_0x358f41[_0x502666(0x1fc)]),Object['entries'](_0x12043d)[_0x502666(0x212)](function(_0x31012a){var _0x50d183=_0x502666,_0x662a59=_0x31012a[0x0],_0x516b0d=_0x31012a[0x1];typeof _0x516b0d==_0x50d183(0x20a)&&(_0x12043d[_0x662a59]=_0x516b0d[_0x50d183(0x1dc)](/url\(#(.*)\)/,'url(#$1'[_0x50d183(0x18f)](_0x358f41['idSuffix'],')')));})),_0x12043d;}function xe(_0x4e591f,_0x318086){var _0x2a4441=_0x2886db,_0x245494,_0x5db848=_0x318086['defIds'];return!_0x5db848||_0x5db848[_0x2a4441(0x205)]===0x0?_0x4e591f:_0x4e591f['tag']==='defs'&&(!((_0x245494=_0x4e591f['children'])===null||_0x245494===void 0x0)&&_0x245494[_0x2a4441(0x205)])?c(c({},_0x4e591f),{'children':_0x4e591f[_0x2a4441(0x183)][_0x2a4441(0x1dd)](function(_0x4d1368){var _0x552cac=_0x2a4441;return typeof _0x4d1368[_0x552cac(0x18e)]['id']==_0x552cac(0x20a)&&_0x5db848&&_0x5db848[_0x552cac(0x20c)](_0x4d1368[_0x552cac(0x18e)]['id'])?c(c({},_0x4d1368),{'attrs':c(c({},_0x4d1368[_0x552cac(0x18e)]),{'id':_0x4d1368['attrs']['id']+_0x318086[_0x552cac(0x1fc)]})}):_0x4d1368;})}):_0x4e591f;}function Le(){var _0x4e58f4=_0x2886db;return Math[_0x4e58f4(0x189)]()['toString'](0x24)[_0x4e58f4(0x1b2)](0x2,0x8);}W[_0x2886db(0x1a1)]=_0x2886db(0x174);var ye={'tag':_0x2886db(0x1ac),'attrs':{'xmlns':_0x2886db(0x1a5),'fill':_0x2886db(0x178),'viewBox':'0\x200\x2017\x2017','width':_0x2886db(0x1f8),'height':_0x2886db(0x1f8)},'children':[{'tag':_0x2886db(0x1af),'attrs':{'fill':_0x2886db(0x1d7),'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':_0x2886db(0x1af),'attrs':{'fill':_0x2886db(0x1d7),'d':_0x2886db(0x195),'fillRule':_0x2886db(0x175),'clipRule':_0x2886db(0x175)}}]},B=_0x55f301(function(_0x13781d,_0x349829){var _0x21bfbc=_0x2886db;return _0xc61559(W,Object[_0x21bfbc(0x192)]({},_0x13781d,{'id':_0x21bfbc(0x176),'ref':_0x349829,'icon':ye}));});B[_0x2886db(0x1a1)]='LiveShareIcon';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x2b7426,_0x5ba008,_0x59a7e8,_0x2492e9)=>{var _0x3c2bf7=_0x2886db;for(var _0x2e3c93=_0x2492e9>0x1?void 0x0:_0x2492e9?Re(_0x5ba008,_0x59a7e8):_0x5ba008,_0x79da07=_0x2b7426[_0x3c2bf7(0x205)]-0x1,_0xbd78e8;_0x79da07>=0x0;_0x79da07--)(_0xbd78e8=_0x2b7426[_0x79da07])&&(_0x2e3c93=_0xbd78e8(_0x2e3c93)||_0x2e3c93);return _0x2e3c93;},f=(_0x59200c,_0x596e39)=>(_0x406125,_0x52dd4b)=>_0x596e39(_0x406125,_0x52dd4b,_0x59200c);let I=class extends _0x6f1f15{constructor(_0x5107f1,_0x26a3f1,_0x3eee54){var _0x575e85=_0x2886db;super(),d(this,_0x575e85(0x209),new Map()),(this[_0x575e85(0x1b1)]=_0x5107f1,this[_0x575e85(0x21f)]=_0x26a3f1,this['_collabSessionService']=_0x3eee54,this[_0x575e85(0x20b)]());}async[_0x2886db(0x1ef)](_0x227b7b){var _0x4176c4=_0x2886db;return this[_0x4176c4(0x209)][_0x4176c4(0x180)](_0x227b7b)||await this[_0x4176c4(0x1f0)](_0x227b7b),this[_0x4176c4(0x209)][_0x4176c4(0x1e3)](_0x227b7b);}[_0x2886db(0x20b)](){var _0x4fd0dd=_0x2886db;this[_0x4fd0dd(0x1b1)][_0x4fd0dd(0x1a9)](_0x4aff88[_0x4fd0dd(0x1db)])['pipe'](_0x120c99(this[_0x4fd0dd(0x206)]))['subscribe'](async _0x55ce3e=>{var _0x3f9089=_0x4fd0dd;const _0x421d83=_0x55ce3e[_0x3f9089(0x1d8)]();this[_0x3f9089(0x209)][_0x3f9089(0x180)](_0x421d83)||this[_0x3f9089(0x1f0)](_0x421d83);}),this[_0x4fd0dd(0x1b1)][_0x4fd0dd(0x1c6)](_0x4aff88[_0x4fd0dd(0x1db)])[_0x4fd0dd(0x1c3)](_0x120c99(this[_0x4fd0dd(0x206)]))[_0x4fd0dd(0x1c5)](_0x584625=>{var _0x420a86=_0x4fd0dd;const _0x56f2c9=_0x584625[_0x420a86(0x1d8)](),_0x1150f6=this[_0x420a86(0x209)][_0x420a86(0x1e3)](_0x56f2c9);_0x1150f6==null||_0x1150f6['dispose']();});}async[_0x2886db(0x1f0)](_0x525019){var _0x54f5c7=_0x2886db;const _0x3c5d8e=await this['_collabSessionService'][_0x54f5c7(0x218)](_0x525019),_0x171e35=this[_0x54f5c7(0x21f)][_0x54f5c7(0x19d)](C,_0x525019,_0x3c5d8e);return _0x171e35[_0x54f5c7(0x1b5)](),this[_0x54f5c7(0x209)][_0x54f5c7(0x1d1)](_0x525019,_0x171e35),_0x171e35;}};I=Z([f(0x0,_0x11d622),f(0x1,_0x10aaa1(_0x2015d8)),f(0x2,_0x10aaa1(_0x37b98))],I);var h=(_0x27a6a2=>(_0x27a6a2['OFFLINE']='offline',_0x27a6a2[_0x2886db(0x1e4)]='idle',_0x27a6a2[_0x2886db(0x191)]=_0x2886db(0x18d),_0x27a6a2[_0x2886db(0x1ab)]=_0x2886db(0x19e),_0x27a6a2[_0x2886db(0x202)]=_0x2886db(0x177),_0x27a6a2))(h||{});function _0x695d(_0x28dd9a,_0x923fb0){var _0xe8c531=_0xe8c5();return _0x695d=function(_0x695db1,_0x5e4718){_0x695db1=_0x695db1-0x171;var _0x10bc6b=_0xe8c531[_0x695db1];return _0x10bc6b;},_0x695d(_0x28dd9a,_0x923fb0);}const Pe=_0x2886db(0x1bf),Ae=0xc8;let C=class extends _0x6f1f15{constructor(_0xecbae6,_0x11b829,_0x3e111e,_0x4e07d3,_0x19eaf2){var _0x126e77=_0x2886db;super(),d(this,'_status$',new _0x1dc9f4(_0x126e77(0x1da))),d(this,_0x126e77(0x19c),this[_0x126e77(0x1e5)][_0x126e77(0x1de)]()),d(this,_0x126e77(0x20b),!0x1),d(this,_0x126e77(0x197),null),d(this,'_presenter',null),(this[_0x126e77(0x19f)]=_0xecbae6,this[_0x126e77(0x1a2)]=_0x11b829,this[_0x126e77(0x1a6)]=_0x3e111e,this[_0x126e77(0x1b3)]=_0x4e07d3,this[_0x126e77(0x21a)]=_0x19eaf2);}get['_status'](){var _0x2a3b2a=_0x2886db;return this[_0x2a3b2a(0x1e5)]['getValue']();}[_0x2886db(0x1ff)](){var _0x53d1da=_0x2886db,_0x43a5f2;(_0x43a5f2=this['_commandDisposable'])==null||_0x43a5f2[_0x53d1da(0x1ff)](),this[_0x53d1da(0x1e5)]['next'](_0x53d1da(0x1da)),this[_0x53d1da(0x1e5)]['complete']();}[_0x2886db(0x1b5)](){var _0x30f21d=_0x2886db;this[_0x30f21d(0x20b)]||(this[_0x30f21d(0x20b)]=!0x0,this['_collabSession'][_0x30f21d(0x1cc)][_0x30f21d(0x1c3)](_0x120c99(this[_0x30f21d(0x206)]))[_0x30f21d(0x1c5)](_0x241dfb=>{var _0x1c8fa5=_0x30f21d;switch(_0x241dfb){case _0x4e7aee[_0x1c8fa5(0x1d6)]:this['_handleOffline']();break;case _0x4e7aee['ONLINE']:this[_0x1c8fa5(0x17e)]();break;}}),this['_collabSession']['event$'][_0x30f21d(0x1c3)](_0x120c99(this[_0x30f21d(0x206)]))[_0x30f21d(0x1c5)](_0x9c2bfb=>{var _0x4f988f=_0x30f21d;const {eventID:_0x5ce4dc}=_0x9c2bfb;switch(_0x5ce4dc){case _0x31f6e1['LIVESHARE_NEW_HOST']:this[_0x4f988f(0x219)](_0x9c2bfb);break;case _0x31f6e1['LIVESHARE_OPERATION']:this[_0x4f988f(0x185)](_0x9c2bfb);break;case _0x31f6e1[_0x4f988f(0x1d3)]:this[_0x4f988f(0x1a7)]();break;case _0x31f6e1['NEW_CHANGESETS']:this[_0x4f988f(0x1e1)](_0x9c2bfb);break;}}));}[_0x2886db(0x188)](){var _0x5be021=_0x2886db;this[_0x5be021(0x1a2)][_0x5be021(0x1c4)]({'eventID':_0x31f6e1[_0x5be021(0x20d)],'data':{'unitID':this[_0x5be021(0x19f)],'userID':this[_0x5be021(0x1a2)][_0x5be021(0x1b4)]()}},this['_unitID']);}[_0x2886db(0x1d4)](){var _0x366b91=_0x2886db;this[_0x366b91(0x1f9)]==='presenting'&&(this[_0x366b91(0x1e5)][_0x366b91(0x190)]('idle'),this[_0x366b91(0x1a2)]['send']({'eventID':_0x31f6e1[_0x366b91(0x1d3)],'data':{'unitID':this['_unitID']}},this[_0x366b91(0x19f)]));}[_0x2886db(0x1be)](){var _0x55ea58=_0x2886db;this[_0x55ea58(0x1f9)]===_0x55ea58(0x19e)&&(this[_0x55ea58(0x1e5)][_0x55ea58(0x190)](_0x55ea58(0x18d)),this['_startFollowing']());}[_0x2886db(0x1e6)](){var _0x3a58e3=_0x2886db;this[_0x3a58e3(0x1f9)]===_0x3a58e3(0x18d)&&this[_0x3a58e3(0x211)]();}[_0x2886db(0x219)](_0x4715bb){var _0x32700c=_0x2886db;const {presenter:_0x3ff6fc}=_0x4715bb[_0x32700c(0x198)],_0x36d41c=this[_0x32700c(0x1a2)][_0x32700c(0x1b4)]();this[_0x32700c(0x207)]=_0x3ff6fc,_0x3ff6fc===_0x36d41c?(this['_stopFollowing'](),this['_startPresenting']()):this['_status']!==_0x32700c(0x19e)&&(this[_0x32700c(0x1bc)](),this[_0x32700c(0x1ed)]());}[_0x2886db(0x19b)](){var _0x437216=_0x2886db;const _0x49b2e3={'eventID':_0x31f6e1[_0x437216(0x21c)]};this[_0x437216(0x1a2)][_0x437216(0x1c4)](_0x49b2e3,this[_0x437216(0x19f)]);}[_0x2886db(0x1a7)](){var _0x1df453=_0x2886db;this['_presenter']=null,this[_0x1df453(0x1f9)]!==_0x1df453(0x177)&&this[_0x1df453(0x172)]();}[_0x2886db(0x1e1)](_0x3879a2){var _0x73a500=_0x2886db;if(this['_status']==='following'&&this['_presenter']===_0x3879a2[_0x73a500(0x198)][_0x73a500(0x1f7)]){const _0x267bf4=_0xb1adb(_0x3879a2[_0x73a500(0x198)])[_0x73a500(0x173)][_0x73a500(0x181)]()[_0x73a500(0x1ba)](_0x477c52=>_0x477c52['id']===_0x1800b8['id']);if(_0x267bf4){const _0x5f1cc4=_0x267bf4[_0x73a500(0x1ee)][_0x73a500(0x1f4)],_0x3c4392=_0x267bf4['params'][_0x73a500(0x1bd)]['id'];setTimeout(()=>{var _0x39d4af=_0x73a500;this['_commandService'][_0x39d4af(0x194)](_0xcf814f['id'],{'unitId':_0x5f1cc4,'subUnitId':_0x3c4392},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x494428=_0x2886db;this[_0x494428(0x1e5)][_0x494428(0x190)]('presenting');const _0xdf4dbd=new Map(),_0x157f0e=this[_0x494428(0x197)]=new _0x274689();_0x157f0e[_0x494428(0x1d2)](_0x3a14b5(()=>{var _0x1b1005=_0x494428;_0xdf4dbd[_0x1b1005(0x212)](_0x380493=>_0x380493['complete']()),_0xdf4dbd[_0x1b1005(0x1a4)]();})),_0x157f0e[_0x494428(0x1d2)](this[_0x494428(0x21a)][_0x494428(0x1ad)](_0x5b85aa=>{var _0x29293f=_0x494428,_0x4b6d2f;if(_0x5b85aa['type']!==_0x55a605[_0x29293f(0x1c7)]||!this[_0x29293f(0x1b3)]['shouldShareOperation'](_0x5b85aa['id']))return;const {id:_0x3c96ff}=_0x5b85aa;let _0x1cb5a1;_0xdf4dbd[_0x29293f(0x180)](_0x3c96ff)?_0x1cb5a1=_0xdf4dbd[_0x29293f(0x1e3)](_0x3c96ff):(_0x1cb5a1=new _0x5762(),_0xdf4dbd[_0x29293f(0x1d1)](_0x3c96ff,_0x1cb5a1),_0x1cb5a1[_0x29293f(0x1c3)](_0x2d347e((_0x4b6d2f=this[_0x29293f(0x1a6)][_0x29293f(0x200)](Pe))!=null?_0x4b6d2f:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x29293f(0x1c5)](_0x1539ba=>{var _0x387b5e=_0x29293f;this[_0x387b5e(0x1a2)][_0x387b5e(0x1c4)]({'eventID':_0x31f6e1['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x387b5e(0x19f)],'operations':{[_0x1539ba['id']]:{'id':_0x1539ba['id'],'params':JSON[_0x387b5e(0x210)](_0x1539ba[_0x387b5e(0x1ee)])}}}},this['_unitID']);})),_0x1cb5a1[_0x29293f(0x190)](_0x5b85aa);})),this[_0x494428(0x1b3)]['getInitialStates'](this[_0x494428(0x19f)])['forEach'](_0x276b54=>this[_0x494428(0x1a2)][_0x494428(0x1c4)]({'eventID':_0x31f6e1[_0x494428(0x217)],'data':{'unitID':this['_unitID'],'operations':{[_0x276b54['id']]:{'id':_0x276b54['id'],'params':JSON[_0x494428(0x210)](_0x276b54[_0x494428(0x1ee)])}}}},this['_unitID']));}[_0x2886db(0x1bc)](){var _0x1ef019=_0x2886db,_0x1433cc;this[_0x1ef019(0x1e5)]['next'](_0x1ef019(0x1da)),(_0x1433cc=this[_0x1ef019(0x197)])==null||_0x1433cc[_0x1ef019(0x1ff)](),this['_commandDisposable']=null;}[_0x2886db(0x1ed)](){var _0xaf8ce6=_0x2886db,_0x7bc5a1;(_0x7bc5a1=this[_0xaf8ce6(0x197)])==null||_0x7bc5a1['dispose'](),this['_status$'][_0xaf8ce6(0x190)](_0xaf8ce6(0x18d));}[_0x2886db(0x172)](){var _0x239e80=_0x2886db,_0x5b73d6;this[_0x239e80(0x1e5)][_0x239e80(0x190)](_0x239e80(0x1da)),(_0x5b73d6=this[_0x239e80(0x197)])==null||_0x5b73d6[_0x239e80(0x1ff)](),this[_0x239e80(0x197)]=null;}[_0x2886db(0x211)](){var _0x2d0753=_0x2886db,_0x5e502;this[_0x2d0753(0x1e5)][_0x2d0753(0x190)]('not-following'),(_0x5e502=this[_0x2d0753(0x197)])==null||_0x5e502['dispose']();}[_0x2886db(0x185)](_0x3903bc){var _0x3e5926=_0x2886db;if([_0x3e5926(0x177),_0x3e5926(0x19e),_0x3e5926(0x18b)][_0x3e5926(0x20c)](this[_0x3e5926(0x1f9)])||!_0x3903bc['data'][_0x3e5926(0x1c9)]||_0x3903bc[_0x3e5926(0x198)]['presenter']===this['_collabSession']['getMemberID']())return;this[_0x3e5926(0x1f9)]===_0x3e5926(0x1da)&&this['_startFollowing']();const _0xd5dd65=_0x3903bc[_0x3e5926(0x198)][_0x3e5926(0x1b7)];Object[_0x3e5926(0x1d9)](_0xd5dd65)[_0x3e5926(0x212)](_0x1611bb=>{var _0x55d1d7=_0x3e5926;this['_commandService']['executeCommand'](_0x1611bb['id'],_0x1611bb[_0x55d1d7(0x1ee)]?JSON[_0x55d1d7(0x21b)](_0x1611bb[_0x55d1d7(0x1ee)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x56fdcd=_0x2886db,_0x5a95ba;this[_0x56fdcd(0x1e5)]['next'](_0x56fdcd(0x18b)),(_0x5a95ba=this['_commandDisposable'])==null||_0x5a95ba[_0x56fdcd(0x1ff)]();}['_handleOnline'](){var _0x42ab97=_0x2886db;this['_status$'][_0x42ab97(0x190)](_0x42ab97(0x1da)),this[_0x42ab97(0x19b)]();}};C=Z([f(0x2,_0x37a6e8),f(0x3,_0x10aaa1(L)),f(0x4,_0x342266)],C);function Te(){var _0x5a44c8=_0x2886db;const _0x3531ca=_0x5b3603(I),_0x30ee38=_0x5b3603(_0x11d622),_0x28d50a=_0x2d4df2(()=>_0x30ee38[_0x5a44c8(0x18c)](_0x4aff88[_0x5a44c8(0x1db)]),void 0x0,!0x1,[]),[_0x48eea2,_0x4b0e40]=_0x11cb7c(null),[_0x38d9a1,_0x3d45b4]=_0x11cb7c(h['IDLE']),_0x5182d6=_0x2d195a(null);return _0x548d7b(()=>(_0x28d50a&&_0x3531ca[_0x5a44c8(0x1ef)](_0x28d50a[_0x5a44c8(0x1d8)]())[_0x5a44c8(0x193)](_0x56afa1=>{var _0x5d6a49=_0x5a44c8;_0x4b0e40(_0x56afa1),_0x5182d6[_0x5d6a49(0x1fa)]=_0x56afa1[_0x5d6a49(0x19c)][_0x5d6a49(0x1c5)](_0xf35f7c=>{_0x3d45b4(_0xf35f7c);});}),()=>{var _0x7a9b3=_0x5a44c8,_0x25c32e;(_0x25c32e=_0x5182d6[_0x7a9b3(0x1fa)])==null||_0x25c32e[_0x7a9b3(0x1b0)](),_0x5182d6[_0x7a9b3(0x1fa)]=null;}),[_0x28d50a,_0x3531ca]),_0x48eea2?_0x3a52ad(_0x4dd19b,{'align':_0x5a44c8(0x1b8),'disabled':_0x38d9a1===h[_0x5a44c8(0x1d6)],'className':_0x5a44c8(0x1e8),'overlay':_0x3a52ad($e,{'status':_0x38d9a1,'coordinator':_0x48eea2}),'children':_0x3a52ad(_0x5a44c8(0x1ae),{'className':_0x2351ae(_0x5a44c8(0x1ec),{'univer-cursor-not-allowed':_0x38d9a1===h[_0x5a44c8(0x1d6)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x38d9a1!==h[_0x5a44c8(0x1d6)]}),'type':_0x5a44c8(0x1ae),'children':_0x3a52ad(B,{'className':_0x5a44c8(0x1f2)})})}):null;}function $e(_0x5ef130){var _0x556fcb=_0x2886db;const {status:_0x1bcafa,coordinator:_0x179ae0}=_0x5ef130;switch(_0x1bcafa){case h[_0x556fcb(0x1e4)]:return _0x3a52ad(Fe,{'coordinator':_0x179ae0});case h[_0x556fcb(0x191)]:return _0x3a52ad(He,{'coordinator':_0x179ae0});case h['NOT_FOLLOWING']:return _0x3a52ad(je,{'coordinator':_0x179ae0});case h[_0x556fcb(0x1d6)]:return _0x3a52ad(Ve,{});case h[_0x556fcb(0x202)]:return _0x3a52ad(Ue,{'coordinator':_0x179ae0});default:return null;}}function Fe(_0x11ba29){var _0x9421a5=_0x2886db;const {coordinator:_0x4c4bb1}=_0x11ba29;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad(_0x9421a5(0x17b),{'className':_0x9421a5(0x1c8),'children':_0x9421a5(0x179)}),_0x3a52ad(_0x2dde90,{'onClick':()=>_0x4c4bb1[_0x9421a5(0x188)](),'children':_0x9421a5(0x1d5)})]});}function He(_0x3f9821){var _0x1841a5=_0x2886db;const {coordinator:_0x44175f}=_0x3f9821;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad('div',{'className':_0x1841a5(0x1c8),'children':_0x1841a5(0x18a)}),_0x3a52ad(_0x2dde90,{'onClick':()=>_0x44175f[_0x1841a5(0x1e6)](),'children':_0x1841a5(0x20e)})]});}function je(_0x198f94){var _0x3986e8=_0x2886db;const {coordinator:_0x4fac19}=_0x198f94;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad(_0x3986e8(0x17b),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x3986e8(0x1df)}),_0x3a52ad(_0x2dde90,{'variant':_0x3986e8(0x1f5),'onClick':()=>_0x4fac19[_0x3986e8(0x1be)](),'children':_0x3986e8(0x1b6)})]});}function Ue(_0x302018){var _0x44ca58=_0x2886db;const {coordinator:_0x5b74c5}=_0x302018;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad(_0x44ca58(0x17b),{'className':_0x44ca58(0x1c8),'children':_0x44ca58(0x1f3)}),_0x3a52ad(_0x2dde90,{'variant':_0x44ca58(0x1e7),'onClick':()=>_0x5b74c5[_0x44ca58(0x1d4)](),'children':_0x44ca58(0x220)})]});}function Ve(){return _0x3a52ad(_0x1dbeda,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x2886db(0x1e0)],ke=(_0x2e7ded,_0x58b8e7,_0x2ee39d,_0x4fa189)=>{var _0x50eb0b=_0x2886db;for(var _0x1ab85f=_0x4fa189>0x1?void 0x0:_0x4fa189?Me(_0x58b8e7,_0x2ee39d):_0x58b8e7,_0x30950c=_0x2e7ded[_0x50eb0b(0x205)]-0x1,_0x7ac355;_0x30950c>=0x0;_0x30950c--)(_0x7ac355=_0x2e7ded[_0x30950c])&&(_0x1ab85f=_0x7ac355(_0x1ab85f)||_0x1ab85f);return _0x1ab85f;},$=(_0x2cc36e,_0x268480)=>(_0x32d3fe,_0x57be99)=>_0x268480(_0x32d3fe,_0x57be99,_0x2cc36e);let b=class extends _0x172f34{constructor(_0x4e7ce1,_0x4dc55c){var _0x3cbe25=_0x2886db;super(),this[_0x3cbe25(0x21f)]=_0x4e7ce1,this[_0x3cbe25(0x199)]=_0x4dc55c,this[_0x3cbe25(0x17f)]();}[_0x2886db(0x17f)](){var _0x10f90d=_0x2886db;this[_0x10f90d(0x1f1)](this['_uiPartsService'][_0x10f90d(0x1cf)](_0x2083b0[_0x10f90d(0x1e9)],()=>_0x1b45da(Te,this['_injector'])));}};b=ke([$(0x0,_0x10aaa1(_0x2015d8)),$(0x1,_0x125ac6)],b);var Ge=Object[_0x2886db(0x1fe)],We=Object[_0x2886db(0x1e0)],Ye=(_0x13b7e2,_0x2ddc74,_0x1fee3c)=>_0x2ddc74 in _0x13b7e2?Ge(_0x13b7e2,_0x2ddc74,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1fee3c}):_0x13b7e2[_0x2ddc74]=_0x1fee3c,Be=(_0x5d8761,_0x1708fc,_0x2e1570,_0xc8308b)=>{var _0x269401=_0x2886db;for(var _0x17f8ee=_0xc8308b>0x1?void 0x0:_0xc8308b?We(_0x1708fc,_0x2e1570):_0x1708fc,_0x111bf3=_0x5d8761[_0x269401(0x205)]-0x1,_0x396966;_0x111bf3>=0x0;_0x111bf3--)(_0x396966=_0x5d8761[_0x111bf3])&&(_0x17f8ee=_0x396966(_0x17f8ee)||_0x17f8ee);return _0x17f8ee;},F=(_0x40f86e,_0x599b00)=>(_0xea2eb0,_0x4b4696)=>_0x599b00(_0xea2eb0,_0x4b4696,_0x40f86e),J=(_0x121364,_0x3d93f3,_0x4a838f)=>Ye(_0x121364,typeof _0x3d93f3!=_0x2886db(0x1c0)?_0x3d93f3+'':_0x3d93f3,_0x4a838f);const Ze=_0x2886db(0x19a);let O=class extends _0x3a7036{constructor(_0x3ba33d=T,_0x22916c,_0x45972d){var _0x50a1be=_0x2886db;super(),this['_config']=_0x3ba33d,this[_0x50a1be(0x21f)]=_0x22916c,this[_0x50a1be(0x1a6)]=_0x45972d;const {..._0x356fb4}=_0x4c5a48({},T,this[_0x50a1be(0x21d)]);this[_0x50a1be(0x1a6)][_0x50a1be(0x186)](Oe,_0x356fb4);}[_0x2886db(0x201)](){var _0x42f15d=_0x2886db;_0x5c518a(this['_injector'],_0x1d9838([[L],[I],[m],[b]],this[_0x42f15d(0x21d)]['override'])),_0x1e2724(this['_injector'],[[m]]);}['onRendered'](){_0x1e2724(this['_injector'],[[b]]);}};J(O,_0x2886db(0x171),_0x4aff88[_0x2886db(0x182)]),J(O,_0x2886db(0x1a8),Ze),O=Be([_0x35d3f7(_0x5a9880),F(0x1,_0x10aaa1(_0x2015d8)),F(0x2,_0x37a6e8)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x2ae16c=_0x2506;(function(_0x3fd78d,_0x29fb1c){var _0x2fcd18=_0x2506,_0x26cd98=_0x3fd78d();while(!![]){try{var _0x4e9bd7=parseInt(_0x2fcd18(0x1bf))/0x1+parseInt(_0x2fcd18(0x190))/0x2+-parseInt(_0x2fcd18(0x1b6))/0x3+parseInt(_0x2fcd18(0x1b2))/0x4+-parseInt(_0x2fcd18(0x1e4))/0x5*(parseInt(_0x2fcd18(0x1d6))/0x6)+-parseInt(_0x2fcd18(0x1bc))/0x7+parseInt(_0x2fcd18(0x1fb))/0x8*(parseInt(_0x2fcd18(0x21f))/0x9);if(_0x4e9bd7===_0x29fb1c)break;else _0x26cd98['push'](_0x26cd98['shift']());}catch(_0x1f489d){_0x26cd98['push'](_0x26cd98['shift']());}}}(_0x5400,0x51358));var q=Object[_0x2ae16c(0x1a6)],z=(_0x22255e,_0x548d99,_0x376ca9)=>_0x548d99 in _0x22255e?q(_0x22255e,_0x548d99,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x376ca9}):_0x22255e[_0x548d99]=_0x376ca9,d=(_0x4467b5,_0x5b9072,_0x4fd19f)=>z(_0x4467b5,typeof _0x5b9072!='symbol'?_0x5b9072+'':_0x5b9072,_0x4fd19f);import{CollaborationSessionService as _0x4f5af2,SessionStatus as _0x4d71b3,UniverCollaborationClientPlugin as _0x27f278}from'@univerjs-pro/collaboration-client';import{Disposable as _0x2ccbb9,toDisposable as _0x38901e,Inject as _0x593737,IUniverInstanceService as _0x1a7ea1,Injector as _0xe7680d,IConfigService as _0x1ad72f,ICommandService as _0x560e7e,RxDisposable as _0x55e2fc,UniverInstanceType as _0x42ee76,DisposableCollection as _0x2221d0,CommandType as _0x25c528,DependentOn as _0x46cf58,Plugin as _0x463199,merge as _0x54fc87,registerDependencies as _0x3f2cd6,mergeOverrideWithDependencies as _0x43b81e,touchDependencies as _0x5144c9}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x156019,InsertSheetMutation as _0x2adb2e}from'@univerjs/sheets';import{SetZoomRatioOperation as _0xc12c9e,SetScrollOperation as _0x21e91d}from'@univerjs/sheets-ui';import{useDependency as _0x1d89de,useObservable as _0x19ab69,IUIPartsService as _0x5f57dd,BuiltInUIPart as _0x596006,connectInjector as _0x9eed15}from'@univerjs/ui';import{jsx as _0xa8e486,jsxs as _0x1f8228,Fragment as _0xa79dd}from'react/jsx-runtime';import{Dropdown as _0x524d08,clsx as _0x4589dc,Button as _0x2cd243}from'@univerjs/design';import{forwardRef as _0x53f5e8,useRef as _0x19b438,createElement as _0x43b2f6,useState as _0x2c2ba0,useEffect as _0x5d5c39}from'react';import{CollaborationEvent as _0x3d2fa7,parseProtocolChangeset as _0x5e0ea2}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x1f3e9c,Subject as _0x26d562}from'rxjs';import{takeUntil as _0x4dbea4,throttleTime as _0xa3d9ff}from'rxjs/operators';const Oe=_0x2ae16c(0x1c3),T={};class L extends _0x2ccbb9{constructor(){var _0x21b4b5=_0x2ae16c;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x21b4b5(0x1ea),new Set());}[_0x2ae16c(0x222)](_0x3cb7f1){var _0x296ce5=_0x2ae16c;return this[_0x296ce5(0x218)][_0x296ce5(0x1cb)](_0x3cb7f1),_0x38901e(()=>this['_sharedOperations'][_0x296ce5(0x1d0)](_0x3cb7f1));}['registerInitialStateReporter'](_0x3dd980){var _0x51358e=_0x2ae16c;return this[_0x51358e(0x1ea)][_0x51358e(0x1cb)](_0x3dd980),_0x38901e(()=>this[_0x51358e(0x1ea)]['delete'](_0x3dd980));}['shouldShareOperation'](_0x1d4a24){var _0x1d4501=_0x2ae16c;return this[_0x1d4501(0x218)][_0x1d4501(0x19b)](_0x1d4a24);}[_0x2ae16c(0x1c9)](_0x266566){var _0x264bc4=_0x2ae16c;return Array[_0x264bc4(0x229)](this[_0x264bc4(0x1ea)])[_0x264bc4(0x214)](_0x3989aa=>_0x3989aa(_0x266566));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x1426e2,_0x488f93,_0x415448,_0x58260e)=>{var _0x32aac6=_0x2ae16c;for(var _0x2a9642=_0x58260e>0x1?void 0x0:_0x58260e?Ee(_0x488f93,_0x415448):_0x488f93,_0xe27a18=_0x1426e2[_0x32aac6(0x1d1)]-0x1,_0x1ab13d;_0xe27a18>=0x0;_0xe27a18--)(_0x1ab13d=_0x1426e2[_0xe27a18])&&(_0x2a9642=_0x1ab13d(_0x2a9642)||_0x2a9642);return _0x2a9642;},Ne=(_0x4d4418,_0x4ed351)=>(_0x52cc34,_0x4dd922)=>_0x4ed351(_0x52cc34,_0x4dd922,_0x4d4418);let m=class extends _0x2ccbb9{constructor(_0x40181d){var _0x35a70b=_0x2ae16c;super(),this['_liveShareService']=_0x40181d,this[_0x35a70b(0x22e)]();}['_init'](){var _0x20d9e0=_0x2ae16c;[_0xc12c9e['id'],_0x21e91d['id'],_0x156019['id']][_0x20d9e0(0x226)](_0x3209c5=>{var _0x145342=_0x20d9e0;this[_0x145342(0x199)](this['_liveShareService'][_0x145342(0x222)](_0x3209c5));});}};m=we([Ne(0x0,_0x593737(L))],m);var c=function(){var _0x1e67d5=_0x2ae16c;return c=Object[_0x1e67d5(0x1fd)]||function(_0x3e3853){var _0x242cbe=_0x1e67d5;for(var _0x7c648f,_0x4588ea=0x1,_0x4de5de=arguments['length'];_0x4588ea<_0x4de5de;_0x4588ea++){_0x7c648f=arguments[_0x4588ea];for(var _0x1cf573 in _0x7c648f)Object[_0x242cbe(0x1c4)][_0x242cbe(0x1a7)][_0x242cbe(0x1dc)](_0x7c648f,_0x1cf573)&&(_0x3e3853[_0x1cf573]=_0x7c648f[_0x1cf573]);}return _0x3e3853;},c[_0x1e67d5(0x1b1)](this,arguments);},Ce=function(_0x43a552,_0x593e36){var _0x31a51e=_0x2ae16c,_0x18593e={};for(var _0x58f84e in _0x43a552)Object['prototype']['hasOwnProperty']['call'](_0x43a552,_0x58f84e)&&_0x593e36[_0x31a51e(0x211)](_0x58f84e)<0x0&&(_0x18593e[_0x58f84e]=_0x43a552[_0x58f84e]);if(_0x43a552!=null&&typeof Object['getOwnPropertySymbols']==_0x31a51e(0x1ad)){for(var _0x2c35f2=0x0,_0x58f84e=Object[_0x31a51e(0x1ba)](_0x43a552);_0x2c35f2<_0x58f84e[_0x31a51e(0x1d1)];_0x2c35f2++)_0x593e36[_0x31a51e(0x211)](_0x58f84e[_0x2c35f2])<0x0&&Object[_0x31a51e(0x1c4)][_0x31a51e(0x198)][_0x31a51e(0x1dc)](_0x43a552,_0x58f84e[_0x2c35f2])&&(_0x18593e[_0x58f84e[_0x2c35f2]]=_0x43a552[_0x58f84e[_0x2c35f2]]);}return _0x18593e;},W=_0x53f5e8(function(_0x3fda35,_0x380b7){var _0x59fc05=_0x2ae16c,_0x29aab6=_0x3fda35[_0x59fc05(0x1bb)],_0x57cb8b=_0x3fda35['id'],_0x3f393e=_0x3fda35[_0x59fc05(0x20c)],_0x3abd3a=_0x3fda35[_0x59fc05(0x232)],_0x5a9bc8=Ce(_0x3fda35,['icon','id',_0x59fc05(0x20c),_0x59fc05(0x232)]),_0x1b4bc5=_0x59fc05(0x1b9)[_0x59fc05(0x1f6)](_0x57cb8b,'\x20')['concat'](_0x3f393e||'')['trim'](),_0x2aa5bd=_0x19b438('_'[_0x59fc05(0x1f6)](Le()));return Y(_0x29aab6,''[_0x59fc05(0x1f6)](_0x57cb8b),{'defIds':_0x29aab6[_0x59fc05(0x20a)],'idSuffix':_0x2aa5bd[_0x59fc05(0x1d7)]},c({'ref':_0x380b7,'className':_0x1b4bc5},_0x5a9bc8),_0x3abd3a);});function Y(_0x15273c,_0x1bd5a4,_0x3baaa2,_0x1ff2ef,_0x1b03a8){var _0x3232e5=_0x2ae16c;return _0x43b2f6(_0x15273c[_0x3232e5(0x21e)],c(c({'key':_0x1bd5a4},De(_0x15273c,_0x3baaa2,_0x1b03a8)),_0x1ff2ef),(xe(_0x15273c,_0x3baaa2)[_0x3232e5(0x1d5)]||[])[_0x3232e5(0x214)](function(_0x3846c5,_0x3f7044){var _0x328c22=_0x3232e5;return Y(_0x3846c5,''[_0x328c22(0x1f6)](_0x1bd5a4,'-')[_0x328c22(0x1f6)](_0x15273c['tag'],'-')[_0x328c22(0x1f6)](_0x3f7044),_0x3baaa2,void 0x0,_0x1b03a8);}));}function De(_0x4f1345,_0x57b3b9,_0x22f553){var _0x3bb106=_0x2ae16c,_0x3a70f2=c({},_0x4f1345[_0x3bb106(0x213)]);_0x22f553!=null&&_0x22f553[_0x3bb106(0x212)]&&_0x3a70f2[_0x3bb106(0x1c2)]==='colorChannel1'&&(_0x3a70f2[_0x3bb106(0x1c2)]=_0x22f553['colorChannel1']),_0x4f1345[_0x3bb106(0x21e)]===_0x3bb106(0x1db)&&_0x3a70f2['id']&&(_0x3a70f2['id']=_0x3a70f2['id']+_0x57b3b9['idSuffix']),Object['entries'](_0x3a70f2)[_0x3bb106(0x226)](function(_0x4cd719){var _0x2399f3=_0x3bb106,_0x263fd5=_0x4cd719[0x0],_0xee1a3f=_0x4cd719[0x1];_0x263fd5==='mask'&&typeof _0xee1a3f==_0x2399f3(0x1d9)&&(_0x3a70f2[_0x263fd5]=_0xee1a3f[_0x2399f3(0x1ae)](/url\(#(.*)\)/,_0x2399f3(0x1c0)[_0x2399f3(0x1f6)](_0x57b3b9[_0x2399f3(0x1e0)],')')));});var _0x51b928=_0x57b3b9[_0x3bb106(0x20a)];return!_0x51b928||_0x51b928[_0x3bb106(0x1d1)]===0x0||(_0x4f1345['tag']===_0x3bb106(0x223)&&_0x3a70f2[_0x3bb106(0x239)]&&(_0x3a70f2[_0x3bb106(0x239)]=_0x3a70f2['xlink:href']+_0x57b3b9['idSuffix']),Object[_0x3bb106(0x19a)](_0x3a70f2)[_0x3bb106(0x226)](function(_0xf98fa5){var _0x203526=_0x3bb106,_0x5e486b=_0xf98fa5[0x0],_0x3ec3fe=_0xf98fa5[0x1];typeof _0x3ec3fe=='string'&&(_0x3a70f2[_0x5e486b]=_0x3ec3fe[_0x203526(0x1ae)](/url\(#(.*)\)/,_0x203526(0x1c0)[_0x203526(0x1f6)](_0x57b3b9[_0x203526(0x1e0)],')')));})),_0x3a70f2;}function xe(_0x41ab13,_0xf1e4e8){var _0x47adb4=_0x2ae16c,_0x53cdf0,_0x2a08b4=_0xf1e4e8[_0x47adb4(0x20a)];return!_0x2a08b4||_0x2a08b4['length']===0x0?_0x41ab13:_0x41ab13[_0x47adb4(0x21e)]==='defs'&&(!((_0x53cdf0=_0x41ab13['children'])===null||_0x53cdf0===void 0x0)&&_0x53cdf0[_0x47adb4(0x1d1)])?c(c({},_0x41ab13),{'children':_0x41ab13[_0x47adb4(0x1d5)]['map'](function(_0x5d5dff){var _0x241b32=_0x47adb4;return typeof _0x5d5dff[_0x241b32(0x213)]['id']==_0x241b32(0x1d9)&&_0x2a08b4&&_0x2a08b4[_0x241b32(0x1b3)](_0x5d5dff[_0x241b32(0x213)]['id'])?c(c({},_0x5d5dff),{'attrs':c(c({},_0x5d5dff[_0x241b32(0x213)]),{'id':_0x5d5dff['attrs']['id']+_0xf1e4e8['idSuffix']})}):_0x5d5dff;})}):_0x41ab13;}function _0x2506(_0xa70875,_0x1422bf){var _0x5400d7=_0x5400();return _0x2506=function(_0x250617,_0x3e3126){_0x250617=_0x250617-0x188;var _0x5bf819=_0x5400d7[_0x250617];return _0x5bf819;},_0x2506(_0xa70875,_0x1422bf);}function Le(){var _0x273f1b=_0x2ae16c;return Math['random']()[_0x273f1b(0x1e7)](0x24)[_0x273f1b(0x231)](0x2,0x8);}W[_0x2ae16c(0x1ce)]='UniverIcon';var ye={'tag':'svg','attrs':{'xmlns':_0x2ae16c(0x1cc),'fill':_0x2ae16c(0x236),'viewBox':_0x2ae16c(0x1e3),'width':_0x2ae16c(0x1e8),'height':_0x2ae16c(0x1e8)},'children':[{'tag':_0x2ae16c(0x1e1),'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':_0x2ae16c(0x1e1),'attrs':{'fill':_0x2ae16c(0x234),'d':_0x2ae16c(0x1a1),'fillRule':'evenodd','clipRule':_0x2ae16c(0x20f)}}]},B=_0x53f5e8(function(_0x1c22f7,_0x31c8ef){var _0x3f488a=_0x2ae16c;return _0x43b2f6(W,Object[_0x3f488a(0x1fd)]({},_0x1c22f7,{'id':_0x3f488a(0x1fc),'ref':_0x31c8ef,'icon':ye}));});B[_0x2ae16c(0x1ce)]=_0x2ae16c(0x1fa);var Re=Object[_0x2ae16c(0x1c7)],Z=(_0x12f08a,_0x3517cf,_0x227c81,_0x48dac0)=>{var _0x3e37b1=_0x2ae16c;for(var _0x1ac48a=_0x48dac0>0x1?void 0x0:_0x48dac0?Re(_0x3517cf,_0x227c81):_0x3517cf,_0x299efa=_0x12f08a[_0x3e37b1(0x1d1)]-0x1,_0x162a83;_0x299efa>=0x0;_0x299efa--)(_0x162a83=_0x12f08a[_0x299efa])&&(_0x1ac48a=_0x162a83(_0x1ac48a)||_0x1ac48a);return _0x1ac48a;},f=(_0x310962,_0x2a6a15)=>(_0x3fc43e,_0x225e2e)=>_0x2a6a15(_0x3fc43e,_0x225e2e,_0x310962);let I=class extends _0x55e2fc{constructor(_0x5a4353,_0x442e13,_0x5c0453){var _0x1c2fbd=_0x2ae16c;super(),d(this,_0x1c2fbd(0x18f),new Map()),(this[_0x1c2fbd(0x18a)]=_0x5a4353,this[_0x1c2fbd(0x23a)]=_0x442e13,this[_0x1c2fbd(0x1f7)]=_0x5c0453,this[_0x1c2fbd(0x22e)]());}async[_0x2ae16c(0x1a3)](_0x4d6da2){var _0x3011ca=_0x2ae16c;return this[_0x3011ca(0x18f)][_0x3011ca(0x19b)](_0x4d6da2)||await this[_0x3011ca(0x1af)](_0x4d6da2),this[_0x3011ca(0x18f)][_0x3011ca(0x1eb)](_0x4d6da2);}[_0x2ae16c(0x22e)](){var _0x931116=_0x2ae16c;this[_0x931116(0x18a)][_0x931116(0x20e)](_0x42ee76[_0x931116(0x18b)])[_0x931116(0x200)](_0x4dbea4(this[_0x931116(0x227)]))[_0x931116(0x1a9)](async _0x3b7f34=>{var _0x7d3742=_0x931116;const _0x3afd5b=_0x3b7f34[_0x7d3742(0x1f9)]();this[_0x7d3742(0x18f)][_0x7d3742(0x19b)](_0x3afd5b)||this[_0x7d3742(0x1af)](_0x3afd5b);}),this[_0x931116(0x18a)][_0x931116(0x1dd)](_0x42ee76[_0x931116(0x18b)])[_0x931116(0x200)](_0x4dbea4(this[_0x931116(0x227)]))[_0x931116(0x1a9)](_0xb1d7d1=>{var _0xebfefe=_0x931116;const _0x3b6c80=_0xb1d7d1[_0xebfefe(0x1f9)](),_0x168387=this['_entities'][_0xebfefe(0x1eb)](_0x3b6c80);_0x168387==null||_0x168387[_0xebfefe(0x1b8)]();});}async[_0x2ae16c(0x1af)](_0xf9367b){var _0x51af54=_0x2ae16c;const _0x320c63=await this[_0x51af54(0x1f7)][_0x51af54(0x237)](_0xf9367b),_0x3addea=this[_0x51af54(0x23a)][_0x51af54(0x195)](C,_0xf9367b,_0x320c63);return _0x3addea[_0x51af54(0x1b0)](),this['_entities'][_0x51af54(0x202)](_0xf9367b,_0x3addea),_0x3addea;}};I=Z([f(0x0,_0x1a7ea1),f(0x1,_0x593737(_0xe7680d)),f(0x2,_0x593737(_0x4f5af2))],I);var h=(_0x34d445=>(_0x34d445[_0x2ae16c(0x1f1)]='offline',_0x34d445[_0x2ae16c(0x1de)]=_0x2ae16c(0x1df),_0x34d445[_0x2ae16c(0x1c1)]=_0x2ae16c(0x1bd),_0x34d445[_0x2ae16c(0x1d4)]=_0x2ae16c(0x225),_0x34d445[_0x2ae16c(0x19e)]=_0x2ae16c(0x220),_0x34d445))(h||{});const Pe=_0x2ae16c(0x217),Ae=0xc8;let C=class extends _0x55e2fc{constructor(_0xe7ff09,_0xbef96,_0x4fe943,_0x4827c4,_0x16b26d){var _0x2d0e2c=_0x2ae16c;super(),d(this,_0x2d0e2c(0x1f0),new _0x1f3e9c(_0x2d0e2c(0x1df))),d(this,_0x2d0e2c(0x18d),this['_status$'][_0x2d0e2c(0x1a0)]()),d(this,_0x2d0e2c(0x22e),!0x1),d(this,_0x2d0e2c(0x1be),null),d(this,_0x2d0e2c(0x1d8),null),(this[_0x2d0e2c(0x191)]=_0xe7ff09,this['_collabSession']=_0xbef96,this[_0x2d0e2c(0x205)]=_0x4fe943,this[_0x2d0e2c(0x1f2)]=_0x4827c4,this[_0x2d0e2c(0x1ca)]=_0x16b26d);}get[_0x2ae16c(0x189)](){var _0x246a13=_0x2ae16c;return this[_0x246a13(0x1f0)]['getValue']();}[_0x2ae16c(0x1b8)](){var _0x44b047=_0x2ae16c,_0x4fd831;(_0x4fd831=this[_0x44b047(0x1be)])==null||_0x4fd831[_0x44b047(0x1b8)](),this[_0x44b047(0x1f0)][_0x44b047(0x228)](_0x44b047(0x1df)),this[_0x44b047(0x1f0)][_0x44b047(0x235)]();}[_0x2ae16c(0x1b0)](){var _0x1ba29d=_0x2ae16c;this[_0x1ba29d(0x22e)]||(this[_0x1ba29d(0x22e)]=!0x0,this['_collabSession'][_0x1ba29d(0x19c)]['pipe'](_0x4dbea4(this['dispose$']))[_0x1ba29d(0x1a9)](_0x468637=>{var _0x1351be=_0x1ba29d;switch(_0x468637){case _0x4d71b3[_0x1351be(0x1f1)]:this[_0x1351be(0x1da)]();break;case _0x4d71b3['ONLINE']:this[_0x1351be(0x21b)]();break;}}),this[_0x1ba29d(0x208)][_0x1ba29d(0x209)][_0x1ba29d(0x200)](_0x4dbea4(this[_0x1ba29d(0x227)]))[_0x1ba29d(0x1a9)](_0x15ff75=>{var _0x30dc3a=_0x1ba29d;const {eventID:_0x3da848}=_0x15ff75;switch(_0x3da848){case _0x3d2fa7[_0x30dc3a(0x188)]:this[_0x30dc3a(0x192)](_0x15ff75);break;case _0x3d2fa7[_0x30dc3a(0x20b)]:this[_0x30dc3a(0x1ee)](_0x15ff75);break;case _0x3d2fa7[_0x30dc3a(0x193)]:this[_0x30dc3a(0x1f3)]();break;case _0x3d2fa7[_0x30dc3a(0x1c6)]:this[_0x30dc3a(0x203)](_0x15ff75);break;}}));}[_0x2ae16c(0x1c5)](){var _0x4f4765=_0x2ae16c;this['_collabSession'][_0x4f4765(0x196)]({'eventID':_0x3d2fa7['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4f4765(0x191)],'userID':this['_collabSession'][_0x4f4765(0x215)]()}},this[_0x4f4765(0x191)]);}[_0x2ae16c(0x201)](){var _0x13fdf9=_0x2ae16c;this['_status']===_0x13fdf9(0x220)&&(this[_0x13fdf9(0x1f0)][_0x13fdf9(0x228)](_0x13fdf9(0x1df)),this[_0x13fdf9(0x208)][_0x13fdf9(0x196)]({'eventID':_0x3d2fa7[_0x13fdf9(0x193)],'data':{'unitID':this[_0x13fdf9(0x191)]}},this['_unitID']));}[_0x2ae16c(0x1ec)](){var _0x21d8c5=_0x2ae16c;this[_0x21d8c5(0x189)]===_0x21d8c5(0x225)&&(this[_0x21d8c5(0x1f0)]['next'](_0x21d8c5(0x1bd)),this[_0x21d8c5(0x1e9)]());}[_0x2ae16c(0x230)](){var _0x3914cf=_0x2ae16c;this[_0x3914cf(0x189)]==='following'&&this[_0x3914cf(0x1aa)]();}[_0x2ae16c(0x192)](_0x6ebcf2){var _0xcb5cc6=_0x2ae16c;const {presenter:_0x546c64}=_0x6ebcf2['data'],_0x2eaf73=this[_0xcb5cc6(0x208)][_0xcb5cc6(0x215)]();this[_0xcb5cc6(0x1d8)]=_0x546c64,_0x546c64===_0x2eaf73?(this['_stopFollowing'](),this[_0xcb5cc6(0x1e5)]()):this[_0xcb5cc6(0x189)]!==_0xcb5cc6(0x225)&&(this[_0xcb5cc6(0x18e)](),this[_0xcb5cc6(0x1e9)]());}[_0x2ae16c(0x1e6)](){var _0x1258b2=_0x2ae16c;const _0x4a09e8={'eventID':_0x3d2fa7[_0x1258b2(0x1d3)]};this['_collabSession'][_0x1258b2(0x196)](_0x4a09e8,this[_0x1258b2(0x191)]);}[_0x2ae16c(0x1f3)](){var _0x17ceee=_0x2ae16c;this['_presenter']=null,this['_status']!==_0x17ceee(0x220)&&this['_beIdle']();}['_handleNewChangeSets'](_0x597ce8){var _0x451583=_0x2ae16c;if(this[_0x451583(0x189)]===_0x451583(0x1bd)&&this[_0x451583(0x1d8)]===_0x597ce8[_0x451583(0x1f5)]['memberID']){const _0x508eea=_0x5e0ea2(_0x597ce8[_0x451583(0x1f5)])['mutations'][_0x451583(0x197)]()[_0x451583(0x1f4)](_0x39dbb9=>_0x39dbb9['id']===_0x2adb2e['id']);if(_0x508eea){const _0xb111ea=_0x508eea[_0x451583(0x224)][_0x451583(0x219)],_0x107f59=_0x508eea[_0x451583(0x224)]['sheet']['id'];setTimeout(()=>{var _0x3fb99e=_0x451583;this['_commandService'][_0x3fb99e(0x18c)](_0x156019['id'],{'unitId':_0xb111ea,'subUnitId':_0x107f59},{'fromCollab':!0x0});});}}}[_0x2ae16c(0x1e5)](){var _0x2bae0c=_0x2ae16c;this['_status$'][_0x2bae0c(0x228)]('presenting');const _0x8158f=new Map(),_0x49a61b=this[_0x2bae0c(0x1be)]=new _0x2221d0();_0x49a61b['add'](_0x38901e(()=>{var _0x2217bb=_0x2bae0c;_0x8158f[_0x2217bb(0x226)](_0xf9f025=>_0xf9f025[_0x2217bb(0x235)]()),_0x8158f[_0x2217bb(0x20d)]();})),_0x49a61b['add'](this[_0x2bae0c(0x1ca)][_0x2bae0c(0x22c)](_0x340898=>{var _0xcc711e=_0x2bae0c,_0xa3aac9;if(_0x340898['type']!==_0x25c528[_0xcc711e(0x1a2)]||!this[_0xcc711e(0x1f2)][_0xcc711e(0x1a8)](_0x340898['id']))return;const {id:_0x1aeed9}=_0x340898;let _0x749247;_0x8158f[_0xcc711e(0x19b)](_0x1aeed9)?_0x749247=_0x8158f[_0xcc711e(0x1eb)](_0x1aeed9):(_0x749247=new _0x26d562(),_0x8158f[_0xcc711e(0x202)](_0x1aeed9,_0x749247),_0x749247[_0xcc711e(0x200)](_0xa3d9ff((_0xa3aac9=this[_0xcc711e(0x205)][_0xcc711e(0x1cf)](Pe))!=null?_0xa3aac9:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x37d15e=>{var _0x5be08d=_0xcc711e;this['_collabSession'][_0x5be08d(0x196)]({'eventID':_0x3d2fa7['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5be08d(0x191)],'operations':{[_0x37d15e['id']]:{'id':_0x37d15e['id'],'params':JSON['stringify'](_0x37d15e['params'])}}}},this['_unitID']);})),_0x749247[_0xcc711e(0x228)](_0x340898);})),this['_liveShareService'][_0x2bae0c(0x1c9)](this[_0x2bae0c(0x191)])[_0x2bae0c(0x226)](_0x79848b=>this[_0x2bae0c(0x208)][_0x2bae0c(0x196)]({'eventID':_0x3d2fa7[_0x2bae0c(0x20b)],'data':{'unitID':this[_0x2bae0c(0x191)],'operations':{[_0x79848b['id']]:{'id':_0x79848b['id'],'params':JSON['stringify'](_0x79848b[_0x2bae0c(0x224)])}}}},this[_0x2bae0c(0x191)]));}[_0x2ae16c(0x18e)](){var _0x2b9b0a=_0x2ae16c,_0x5472d0;this[_0x2b9b0a(0x1f0)]['next'](_0x2b9b0a(0x1df)),(_0x5472d0=this[_0x2b9b0a(0x1be)])==null||_0x5472d0['dispose'](),this[_0x2b9b0a(0x1be)]=null;}[_0x2ae16c(0x1e9)](){var _0x5e1154=_0x2ae16c,_0x3b39ce;(_0x3b39ce=this[_0x5e1154(0x1be)])==null||_0x3b39ce[_0x5e1154(0x1b8)](),this[_0x5e1154(0x1f0)][_0x5e1154(0x228)]('following');}[_0x2ae16c(0x1d2)](){var _0x344364=_0x2ae16c,_0x3afb1c;this['_status$'][_0x344364(0x228)]('idle'),(_0x3afb1c=this['_commandDisposable'])==null||_0x3afb1c[_0x344364(0x1b8)](),this[_0x344364(0x1be)]=null;}[_0x2ae16c(0x1aa)](){var _0x133a84=_0x2ae16c,_0xcf13b2;this[_0x133a84(0x1f0)][_0x133a84(0x228)](_0x133a84(0x225)),(_0xcf13b2=this[_0x133a84(0x1be)])==null||_0xcf13b2[_0x133a84(0x1b8)]();}[_0x2ae16c(0x1ee)](_0x31dd84){var _0x280522=_0x2ae16c;if([_0x280522(0x220),'not-following',_0x280522(0x233)][_0x280522(0x1b3)](this[_0x280522(0x189)])||!_0x31dd84[_0x280522(0x1f5)][_0x280522(0x21d)]||_0x31dd84['data']['presenter']===this['_collabSession'][_0x280522(0x215)]())return;this['_status']===_0x280522(0x1df)&&this[_0x280522(0x1e9)]();const _0x1c588e=_0x31dd84[_0x280522(0x1f5)][_0x280522(0x1ac)];Object[_0x280522(0x1ff)](_0x1c588e)[_0x280522(0x226)](_0x4bad81=>{var _0x27d4e6=_0x280522;this['_commandService'][_0x27d4e6(0x18c)](_0x4bad81['id'],_0x4bad81['params']?JSON['parse'](_0x4bad81[_0x27d4e6(0x224)]):null,{'fromCollab':!0x0});});}[_0x2ae16c(0x1da)](){var _0x38479d=_0x2ae16c,_0x5827fc;this[_0x38479d(0x1f0)][_0x38479d(0x228)](_0x38479d(0x233)),(_0x5827fc=this[_0x38479d(0x1be)])==null||_0x5827fc[_0x38479d(0x1b8)]();}['_handleOnline'](){var _0x4ef888=_0x2ae16c;this['_status$'][_0x4ef888(0x228)](_0x4ef888(0x1df)),this['_fetchOperations']();}};C=Z([f(0x2,_0x1ad72f),f(0x3,_0x593737(L)),f(0x4,_0x560e7e)],C);function Te(){var _0x270f9c=_0x2ae16c;const _0x366ceb=_0x1d89de(I),_0x1db121=_0x1d89de(_0x1a7ea1),_0x111726=_0x19ab69(()=>_0x1db121[_0x270f9c(0x21c)](_0x42ee76[_0x270f9c(0x18b)]),void 0x0,!0x1,[]),[_0x1a154d,_0x27e377]=_0x2c2ba0(null),[_0x32735b,_0x4a9be2]=_0x2c2ba0(h[_0x270f9c(0x1de)]),_0x473a86=_0x19b438(null);return _0x5d5c39(()=>(_0x111726&&_0x366ceb[_0x270f9c(0x1a3)](_0x111726[_0x270f9c(0x1f9)]())[_0x270f9c(0x206)](_0x4c87e0=>{var _0x510372=_0x270f9c;_0x27e377(_0x4c87e0),_0x473a86[_0x510372(0x1d7)]=_0x4c87e0[_0x510372(0x18d)][_0x510372(0x1a9)](_0x5bbbcc=>{_0x4a9be2(_0x5bbbcc);});}),()=>{var _0x12611d=_0x270f9c,_0x382f64;(_0x382f64=_0x473a86['current'])==null||_0x382f64[_0x12611d(0x1ed)](),_0x473a86[_0x12611d(0x1d7)]=null;}),[_0x111726,_0x366ceb]),_0x1a154d?_0xa8e486(_0x524d08,{'align':_0x270f9c(0x1cd),'disabled':_0x32735b===h[_0x270f9c(0x1f1)],'className':_0x270f9c(0x1a5),'overlay':_0xa8e486($e,{'status':_0x32735b,'coordinator':_0x1a154d}),'children':_0xa8e486(_0x270f9c(0x1fe),{'className':_0x4589dc(_0x270f9c(0x216),{'univer-cursor-not-allowed':_0x32735b===h[_0x270f9c(0x1f1)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x32735b!==h['OFFLINE']}),'type':_0x270f9c(0x1fe),'children':_0xa8e486(B,{'className':'univer-size-4'})})}):null;}function $e(_0x4361de){var _0x188f47=_0x2ae16c;const {status:_0xe43e89,coordinator:_0x415664}=_0x4361de;switch(_0xe43e89){case h[_0x188f47(0x1de)]:return _0xa8e486(Fe,{'coordinator':_0x415664});case h['FOLLOWING']:return _0xa8e486(He,{'coordinator':_0x415664});case h[_0x188f47(0x1d4)]:return _0xa8e486(je,{'coordinator':_0x415664});case h['OFFLINE']:return _0xa8e486(Ve,{});case h[_0x188f47(0x19e)]:return _0xa8e486(Ue,{'coordinator':_0x415664});default:return null;}}function Fe(_0x1e3967){var _0x3be6d6=_0x2ae16c;const {coordinator:_0x32f419}=_0x1e3967;return _0x1f8228(_0xa79dd,{'children':[_0xa8e486(_0x3be6d6(0x238),{'className':_0x3be6d6(0x210),'children':'Present\x20this\x20document'}),_0xa8e486(_0x2cd243,{'onClick':()=>_0x32f419[_0x3be6d6(0x1c5)](),'children':_0x3be6d6(0x22a)})]});}function He(_0x1b6d8c){var _0x24e68c=_0x2ae16c;const {coordinator:_0x3eadb2}=_0x1b6d8c;return _0x1f8228(_0xa79dd,{'children':[_0xa8e486('div',{'className':_0x24e68c(0x210),'children':_0x24e68c(0x22f)}),_0xa8e486(_0x2cd243,{'onClick':()=>_0x3eadb2[_0x24e68c(0x230)](),'children':_0x24e68c(0x19f)})]});}function je(_0x18c8d3){var _0x25dade=_0x2ae16c;const {coordinator:_0x543bc4}=_0x18c8d3;return _0x1f8228(_0xa79dd,{'children':[_0xa8e486(_0x25dade(0x238),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0xa8e486(_0x2cd243,{'variant':_0x25dade(0x1f8),'onClick':()=>_0x543bc4[_0x25dade(0x1ec)](),'children':_0x25dade(0x221)})]});}function Ue(_0x278160){var _0x35ca53=_0x2ae16c;const {coordinator:_0xb102b2}=_0x278160;return _0x1f8228(_0xa79dd,{'children':[_0xa8e486(_0x35ca53(0x238),{'className':_0x35ca53(0x210),'children':'You\x27re\x20presenting\x20the\x20document'}),_0xa8e486(_0x2cd243,{'variant':_0x35ca53(0x1b7),'onClick':()=>_0xb102b2['stopPresenting'](),'children':_0x35ca53(0x204)})]});}function Ve(){var _0x6db873=_0x2ae16c;return _0xa8e486(_0xa79dd,{'children':_0x6db873(0x1ef)});}var Me=Object[_0x2ae16c(0x1c7)],ke=(_0x578e67,_0x32fb8a,_0x4671da,_0x255013)=>{var _0x4a4485=_0x2ae16c;for(var _0xb9955f=_0x255013>0x1?void 0x0:_0x255013?Me(_0x32fb8a,_0x4671da):_0x32fb8a,_0x2ecdd8=_0x578e67[_0x4a4485(0x1d1)]-0x1,_0x266d4a;_0x2ecdd8>=0x0;_0x2ecdd8--)(_0x266d4a=_0x578e67[_0x2ecdd8])&&(_0xb9955f=_0x266d4a(_0xb9955f)||_0xb9955f);return _0xb9955f;},$=(_0x464c7c,_0x3518fd)=>(_0xe7439e,_0x5b6234)=>_0x3518fd(_0xe7439e,_0x5b6234,_0x464c7c);let b=class extends _0x2ccbb9{constructor(_0x2ef606,_0x397593){var _0x28636e=_0x2ae16c;super(),this['_injector']=_0x2ef606,this['_uiPartsService']=_0x397593,this[_0x28636e(0x1e2)]();}[_0x2ae16c(0x1e2)](){var _0x2cfd3e=_0x2ae16c;this[_0x2cfd3e(0x199)](this[_0x2cfd3e(0x1b5)][_0x2cfd3e(0x207)](_0x596006['HEADER_MENU'],()=>_0x9eed15(Te,this[_0x2cfd3e(0x23a)])));}};b=ke([$(0x0,_0x593737(_0xe7680d)),$(0x1,_0x5f57dd)],b);var Ge=Object[_0x2ae16c(0x1a6)],We=Object[_0x2ae16c(0x1c7)],Ye=(_0x166beb,_0x3e1a19,_0x166ed0)=>_0x3e1a19 in _0x166beb?Ge(_0x166beb,_0x3e1a19,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x166ed0}):_0x166beb[_0x3e1a19]=_0x166ed0,Be=(_0x4c07a7,_0x294604,_0x57ddd7,_0x4cf621)=>{var _0x3adfa0=_0x2ae16c;for(var _0x2fcda0=_0x4cf621>0x1?void 0x0:_0x4cf621?We(_0x294604,_0x57ddd7):_0x294604,_0x4fd524=_0x4c07a7[_0x3adfa0(0x1d1)]-0x1,_0x5d60c9;_0x4fd524>=0x0;_0x4fd524--)(_0x5d60c9=_0x4c07a7[_0x4fd524])&&(_0x2fcda0=_0x5d60c9(_0x2fcda0)||_0x2fcda0);return _0x2fcda0;},F=(_0x10f85c,_0x4f97cd)=>(_0x2035bb,_0x50b9d2)=>_0x4f97cd(_0x2035bb,_0x50b9d2,_0x10f85c),J=(_0xfc3a84,_0x4ec3e0,_0x1b3036)=>Ye(_0xfc3a84,typeof _0x4ec3e0!=_0x2ae16c(0x1b4)?_0x4ec3e0+'':_0x4ec3e0,_0x1b3036);const Ze=_0x2ae16c(0x194);let O=class extends _0x463199{constructor(_0xf2db2d=T,_0x1daa97,_0x4f9231){var _0x3b06d9=_0x2ae16c;super(),this[_0x3b06d9(0x22d)]=_0xf2db2d,this[_0x3b06d9(0x23a)]=_0x1daa97,this[_0x3b06d9(0x205)]=_0x4f9231;const {..._0x47819c}=_0x54fc87({},T,this[_0x3b06d9(0x22d)]);this['_configService'][_0x3b06d9(0x19d)](Oe,_0x47819c);}[_0x2ae16c(0x22b)](){var _0x446671=_0x2ae16c;_0x3f2cd6(this['_injector'],_0x43b81e([[L],[I],[m],[b]],this['_config'][_0x446671(0x1a4)])),_0x5144c9(this[_0x446671(0x23a)],[[m]]);}[_0x2ae16c(0x21a)](){var _0x49194e=_0x2ae16c;_0x5144c9(this[_0x49194e(0x23a)],[[b]]);}};J(O,'type',_0x42ee76[_0x2ae16c(0x1c8)]),J(O,_0x2ae16c(0x1ab),Ze),O=Be([_0x46cf58(_0x27f278),F(0x1,_0x593737(_0xe7680d)),F(0x2,_0x1ad72f)],O);function _0x5400(){var _0x307fac=['live-share-icon','assign','button','values','pipe','stopPresenting','set','_handleNewChangeSets','Stop\x20presenting','_configService','then','registerComponent','_collabSession','event$','defIds','LIVESHARE_OPERATION','className','clear','getTypeOfUnitAdded$','evenodd','univer-w-full\x20univer-mb-3\x20univer-text-sm','indexOf','colorChannel1','attrs','map','getMemberID','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','SAME_OPERATION_SHARE_INTERVAL','_sharedOperations','unitId','onRendered','_handleOnline','getCurrentTypeOfUnit$','presenter','tag','700092xupCNK','presenting','Start\x20following','registerSharedOperation','use','params','not-following','forEach','dispose$','next','from','Start','onStarting','onCommandExecuted','_config','_init','You\x27re\x20following\x20the\x20presenter','stopFollowing','substring','extend','offline','currentColor','complete','none','requireSession','div','xlink:href','_injector','LIVESHARE_NEW_HOST','_status','_univerInstanceService','UNIVER_SHEET','executeCommand','status$','_stopPresenting','_entities','1128128xROgEQ','_unitID','_handleNewHost','LIVESHARE_TERMINATE','UNIVER_LIVE_SHARE_PLUGIN','createInstance','send','reverse','propertyIsEnumerable','disposeWithMe','entries','has','sessionStatus$','setConfig','PRESENTING','Stop\x20following','asObservable','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','OPERATION','getLiveShareCoordinator','override','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','defineProperty','hasOwnProperty','shouldShareOperation','subscribe','_stopFollowing','pluginName','operations','function','replace','_startLiveShareCoordinator','init','apply','834608QrcUCx','includes','symbol','_uiPartsService','1512696knbjby','default','dispose','univerjs-icon\x20univerjs-icon-','getOwnPropertySymbols','icon','156177zJwaFO','following','_commandDisposable','128567tMYgxT','url(#$1','FOLLOWING','fill','live-share.config','prototype','tryStartPresenting','NEW_CHANGESETS','getOwnPropertyDescriptor','UNIVER_UNKNOWN','getInitialStates','_commandService','add','http://www.w3.org/2000/svg','end','displayName','getConfig','delete','length','_beIdle','LIVESHARE_FETCH_OPERATIONS','NOT_FOLLOWING','children','109992AXBiPy','current','_presenter','string','_handleOffline','mask','call','getTypeOfUnitDisposed$','IDLE','idle','idSuffix','path','_mountLiveShare','0\x200\x2017\x2017','160qfxzIe','_startPresenting','_fetchOperations','toString','1em','_startFollowing','_reporters','get','startFollowing','unsubscribe','_handleOperation','You\x27are\x20offline.','_status$','OFFLINE','_liveShareService','_handleTerminate','find','data','concat','_collabSessionService','text','getUnitId','LiveShareIcon','56RRufVu'];_0x5400=function(){return _0x307fac;};return _0x5400();}export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x2886db=_0x695d;(function(_0x2703d9,_0x3b1564){var _0x42cf87=_0x695d,_0x447e39=_0x2703d9();while(!![]){try{var _0x16c535=parseInt(_0x42cf87(0x1a3))/0x1+-parseInt(_0x42cf87(0x1ea))/0x2+parseInt(_0x42cf87(0x1e2))/0x3+-parseInt(_0x42cf87(0x1c1))/0x4+parseInt(_0x42cf87(0x1a0))/0x5*(parseInt(_0x42cf87(0x1bb))/0x6)+parseInt(_0x42cf87(0x187))/0x7+parseInt(_0x42cf87(0x1c2))/0x8;if(_0x16c535===_0x3b1564)break;else _0x447e39['push'](_0x447e39['shift']());}catch(_0x21a2b3){_0x447e39['push'](_0x447e39['shift']());}}}(_0xe8c5,0xc1a67));var q=Object[_0x2886db(0x1fe)],z=(_0x6fd7f3,_0xf382dd,_0x4ef9e4)=>_0xf382dd in _0x6fd7f3?q(_0x6fd7f3,_0xf382dd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ef9e4}):_0x6fd7f3[_0xf382dd]=_0x4ef9e4,d=(_0x49ce15,_0x2e15bc,_0x366d9a)=>z(_0x49ce15,typeof _0x2e15bc!=_0x2886db(0x1c0)?_0x2e15bc+'':_0x2e15bc,_0x366d9a);import{CollaborationSessionService as _0x37b98,SessionStatus as _0x4e7aee,UniverCollaborationClientPlugin as _0x5a9880}from'@univerjs-pro/collaboration-client';import{Disposable as _0x172f34,toDisposable as _0x3a14b5,Inject as _0x10aaa1,IUniverInstanceService as _0x11d622,Injector as _0x2015d8,IConfigService as _0x37a6e8,ICommandService as _0x342266,RxDisposable as _0x6f1f15,UniverInstanceType as _0x4aff88,DisposableCollection as _0x274689,CommandType as _0x55a605,DependentOn as _0x35d3f7,Plugin as _0x3a7036,merge as _0x4c5a48,registerDependencies as _0x5c518a,mergeOverrideWithDependencies as _0x1d9838,touchDependencies as _0x1e2724}from'@univerjs/core';import{SetWorksheetActiveOperation as _0xcf814f,InsertSheetMutation as _0x1800b8}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x59a1e5,SetScrollOperation as _0x28ccdf}from'@univerjs/sheets-ui';import{useDependency as _0x5b3603,useObservable as _0x2d4df2,IUIPartsService as _0x125ac6,BuiltInUIPart as _0x2083b0,connectInjector as _0x1b45da}from'@univerjs/ui';function _0xe8c5(){var _0x5b08f7=['_commandDisposable','data','_uiPartsService','UNIVER_LIVE_SHARE_PLUGIN','_fetchOperations','status$','createInstance','not-following','_unitID','160GtGCon','displayName','_collabSession','672842RruRfX','clear','http://www.w3.org/2000/svg','_configService','_handleTerminate','pluginName','getTypeOfUnitAdded$','registerInitialStateReporter','NOT_FOLLOWING','svg','onCommandExecuted','button','path','unsubscribe','_univerInstanceService','substring','_liveShareService','getMemberID','init','Start\x20following','operations','end','mask','find','41682tSaQyj','_stopPresenting','sheet','startFollowing','SAME_OPERATION_SHARE_INTERVAL','symbol','5727132ibxYQW','5709768gAsUEh','pipe','send','subscribe','getTypeOfUnitDisposed$','OPERATION','univer-w-full\x20univer-mb-3\x20univer-text-sm','presenter','univerjs-icon\x20univerjs-icon-','indexOf','sessionStatus$','function','use','registerComponent','icon','set','add','LIVESHARE_TERMINATE','stopPresenting','Start','OFFLINE','currentColor','getUnitId','values','idle','UNIVER_SHEET','replace','map','asObservable','You\x27re\x20not\x20following\x20the\x20presenter','getOwnPropertyDescriptor','_handleNewChangeSets','2559432JKoicy','get','IDLE','_status$','stopFollowing','default','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','HEADER_MENU','2289478UaXRZi','extend','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','_startFollowing','params','getLiveShareCoordinator','_startLiveShareCoordinator','disposeWithMe','univer-size-4','You\x27re\x20presenting\x20the\x20document','unitId','text','url(#$1','memberID','1em','_status','current','getInitialStates','idSuffix','xlink:href','defineProperty','dispose','getConfig','onStarting','PRESENTING','shouldShareOperation','from','length','dispose$','_presenter','trim','_entities','string','_init','includes','LIVESHARE_REQUEST_HOST','Stop\x20following','prototype','stringify','_stopFollowing','forEach','registerSharedOperation','hasOwnProperty','colorChannel1','_sharedOperations','LIVESHARE_OPERATION','requireSession','_handleNewHost','_commandService','parse','LIVESHARE_FETCH_OPERATIONS','_config','defIds','_injector','Stop\x20presenting','type','_beIdle','mutations','UniverIcon','evenodd','live-share-icon','presenting','none','Present\x20this\x20document','_reporters','div','tag','apply','_handleOnline','_mountLiveShare','has','reverse','UNIVER_UNKNOWN','children','delete','_handleOperation','setConfig','6353914RfmbYB','tryStartPresenting','random','You\x27re\x20following\x20the\x20presenter','offline','getCurrentTypeOfUnit$','following','attrs','concat','next','FOLLOWING','assign','then','executeCommand','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','call'];_0xe8c5=function(){return _0x5b08f7;};return _0xe8c5();}import{jsx as _0x3a52ad,jsxs as _0x199030,Fragment as _0x1dbeda}from'react/jsx-runtime';import{Dropdown as _0x4dd19b,clsx as _0x2351ae,Button as _0x2dde90}from'@univerjs/design';import{forwardRef as _0x55f301,useRef as _0x2d195a,createElement as _0xc61559,useState as _0x11cb7c,useEffect as _0x548d7b}from'react';import{CollaborationEvent as _0x31f6e1,parseProtocolChangeset as _0xb1adb}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x1dc9f4,Subject as _0x5762}from'rxjs';import{takeUntil as _0x120c99,throttleTime as _0x2d347e}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x172f34{constructor(){var _0x530ca9=_0x2886db;super(...arguments),d(this,_0x530ca9(0x216),new Set()),d(this,_0x530ca9(0x17a),new Set());}[_0x2886db(0x213)](_0xa9a2eb){var _0x3ab327=_0x2886db;return this[_0x3ab327(0x216)]['add'](_0xa9a2eb),_0x3a14b5(()=>this[_0x3ab327(0x216)][_0x3ab327(0x184)](_0xa9a2eb));}[_0x2886db(0x1aa)](_0xd28cfd){var _0x43d297=_0x2886db;return this[_0x43d297(0x17a)]['add'](_0xd28cfd),_0x3a14b5(()=>this[_0x43d297(0x17a)][_0x43d297(0x184)](_0xd28cfd));}[_0x2886db(0x203)](_0x1be4db){var _0x40f7d5=_0x2886db;return this[_0x40f7d5(0x216)]['has'](_0x1be4db);}[_0x2886db(0x1fb)](_0x183b70){var _0x4fee2f=_0x2886db;return Array[_0x4fee2f(0x204)](this['_reporters'])[_0x4fee2f(0x1dd)](_0x50791d=>_0x50791d(_0x183b70));}}var Ee=Object[_0x2886db(0x1e0)],we=(_0x18011c,_0x10c997,_0x2ff8b6,_0x4c53c0)=>{var _0x35c24c=_0x2886db;for(var _0x5bccd3=_0x4c53c0>0x1?void 0x0:_0x4c53c0?Ee(_0x10c997,_0x2ff8b6):_0x10c997,_0x476d91=_0x18011c[_0x35c24c(0x205)]-0x1,_0xb2602c;_0x476d91>=0x0;_0x476d91--)(_0xb2602c=_0x18011c[_0x476d91])&&(_0x5bccd3=_0xb2602c(_0x5bccd3)||_0x5bccd3);return _0x5bccd3;},Ne=(_0xcb8e00,_0x1bdf91)=>(_0x27709c,_0x5d933b)=>_0x1bdf91(_0x27709c,_0x5d933b,_0xcb8e00);let m=class extends _0x172f34{constructor(_0x1c26df){var _0x27310a=_0x2886db;super(),this[_0x27310a(0x1b3)]=_0x1c26df,this[_0x27310a(0x20b)]();}['_init'](){[_0x59a1e5['id'],_0x28ccdf['id'],_0xcf814f['id']]['forEach'](_0x45fb27=>{var _0x338720=_0x695d;this[_0x338720(0x1f1)](this[_0x338720(0x1b3)][_0x338720(0x213)](_0x45fb27));});}};m=we([Ne(0x0,_0x10aaa1(L))],m);var c=function(){var _0x28ffd9=_0x2886db;return c=Object['assign']||function(_0x42fdd4){var _0xc4ae1b=_0x695d;for(var _0x4fbdf2,_0x1b24f6=0x1,_0x1c5fe9=arguments[_0xc4ae1b(0x205)];_0x1b24f6<_0x1c5fe9;_0x1b24f6++){_0x4fbdf2=arguments[_0x1b24f6];for(var _0x4f99a7 in _0x4fbdf2)Object[_0xc4ae1b(0x20f)]['hasOwnProperty'][_0xc4ae1b(0x196)](_0x4fbdf2,_0x4f99a7)&&(_0x42fdd4[_0x4f99a7]=_0x4fbdf2[_0x4f99a7]);}return _0x42fdd4;},c[_0x28ffd9(0x17d)](this,arguments);},Ce=function(_0x397068,_0x18e9a5){var _0x21b23c=_0x2886db,_0xbe4af8={};for(var _0x5791af in _0x397068)Object['prototype'][_0x21b23c(0x214)][_0x21b23c(0x196)](_0x397068,_0x5791af)&&_0x18e9a5['indexOf'](_0x5791af)<0x0&&(_0xbe4af8[_0x5791af]=_0x397068[_0x5791af]);if(_0x397068!=null&&typeof Object['getOwnPropertySymbols']==_0x21b23c(0x1cd)){for(var _0x365b14=0x0,_0x5791af=Object['getOwnPropertySymbols'](_0x397068);_0x365b14<_0x5791af[_0x21b23c(0x205)];_0x365b14++)_0x18e9a5[_0x21b23c(0x1cb)](_0x5791af[_0x365b14])<0x0&&Object[_0x21b23c(0x20f)]['propertyIsEnumerable'][_0x21b23c(0x196)](_0x397068,_0x5791af[_0x365b14])&&(_0xbe4af8[_0x5791af[_0x365b14]]=_0x397068[_0x5791af[_0x365b14]]);}return _0xbe4af8;},W=_0x55f301(function(_0x362ed2,_0x2ad381){var _0x393126=_0x2886db,_0x105cb4=_0x362ed2[_0x393126(0x1d0)],_0x32307a=_0x362ed2['id'],_0x30c563=_0x362ed2['className'],_0x5a4b4a=_0x362ed2['extend'],_0x4a13c3=Ce(_0x362ed2,[_0x393126(0x1d0),'id','className',_0x393126(0x1eb)]),_0xadbe55=_0x393126(0x1ca)[_0x393126(0x18f)](_0x32307a,'\x20')[_0x393126(0x18f)](_0x30c563||'')[_0x393126(0x208)](),_0x323407=_0x2d195a('_'['concat'](Le()));return Y(_0x105cb4,''[_0x393126(0x18f)](_0x32307a),{'defIds':_0x105cb4[_0x393126(0x21e)],'idSuffix':_0x323407[_0x393126(0x1fa)]},c({'ref':_0x2ad381,'className':_0xadbe55},_0x4a13c3),_0x5a4b4a);});function Y(_0x56ab80,_0x5478e5,_0x5ac3d4,_0x56c996,_0x55335c){var _0x399ce6=_0x2886db;return _0xc61559(_0x56ab80[_0x399ce6(0x17c)],c(c({'key':_0x5478e5},De(_0x56ab80,_0x5ac3d4,_0x55335c)),_0x56c996),(xe(_0x56ab80,_0x5ac3d4)['children']||[])[_0x399ce6(0x1dd)](function(_0x51dd99,_0x280f97){var _0x51b815=_0x399ce6;return Y(_0x51dd99,''['concat'](_0x5478e5,'-')[_0x51b815(0x18f)](_0x56ab80[_0x51b815(0x17c)],'-')[_0x51b815(0x18f)](_0x280f97),_0x5ac3d4,void 0x0,_0x55335c);}));}function De(_0x2d8e39,_0x358f41,_0x3e1612){var _0x502666=_0x2886db,_0x12043d=c({},_0x2d8e39[_0x502666(0x18e)]);_0x3e1612!=null&&_0x3e1612[_0x502666(0x215)]&&_0x12043d['fill']===_0x502666(0x215)&&(_0x12043d['fill']=_0x3e1612[_0x502666(0x215)]),_0x2d8e39[_0x502666(0x17c)]===_0x502666(0x1b9)&&_0x12043d['id']&&(_0x12043d['id']=_0x12043d['id']+_0x358f41[_0x502666(0x1fc)]),Object['entries'](_0x12043d)[_0x502666(0x212)](function(_0x36579d){var _0x36c549=_0x502666,_0x3e4d7d=_0x36579d[0x0],_0x37ffee=_0x36579d[0x1];_0x3e4d7d===_0x36c549(0x1b9)&&typeof _0x37ffee==_0x36c549(0x20a)&&(_0x12043d[_0x3e4d7d]=_0x37ffee[_0x36c549(0x1dc)](/url\(#(.*)\)/,_0x36c549(0x1f6)['concat'](_0x358f41[_0x36c549(0x1fc)],')')));});var _0x3cad34=_0x358f41[_0x502666(0x21e)];return!_0x3cad34||_0x3cad34[_0x502666(0x205)]===0x0||(_0x2d8e39[_0x502666(0x17c)]===_0x502666(0x1ce)&&_0x12043d[_0x502666(0x1fd)]&&(_0x12043d[_0x502666(0x1fd)]=_0x12043d[_0x502666(0x1fd)]+_0x358f41[_0x502666(0x1fc)]),Object['entries'](_0x12043d)[_0x502666(0x212)](function(_0x31012a){var _0x50d183=_0x502666,_0x662a59=_0x31012a[0x0],_0x516b0d=_0x31012a[0x1];typeof _0x516b0d==_0x50d183(0x20a)&&(_0x12043d[_0x662a59]=_0x516b0d[_0x50d183(0x1dc)](/url\(#(.*)\)/,'url(#$1'[_0x50d183(0x18f)](_0x358f41['idSuffix'],')')));})),_0x12043d;}function xe(_0x4e591f,_0x318086){var _0x2a4441=_0x2886db,_0x245494,_0x5db848=_0x318086['defIds'];return!_0x5db848||_0x5db848[_0x2a4441(0x205)]===0x0?_0x4e591f:_0x4e591f['tag']==='defs'&&(!((_0x245494=_0x4e591f['children'])===null||_0x245494===void 0x0)&&_0x245494[_0x2a4441(0x205)])?c(c({},_0x4e591f),{'children':_0x4e591f[_0x2a4441(0x183)][_0x2a4441(0x1dd)](function(_0x4d1368){var _0x552cac=_0x2a4441;return typeof _0x4d1368[_0x552cac(0x18e)]['id']==_0x552cac(0x20a)&&_0x5db848&&_0x5db848[_0x552cac(0x20c)](_0x4d1368[_0x552cac(0x18e)]['id'])?c(c({},_0x4d1368),{'attrs':c(c({},_0x4d1368[_0x552cac(0x18e)]),{'id':_0x4d1368['attrs']['id']+_0x318086[_0x552cac(0x1fc)]})}):_0x4d1368;})}):_0x4e591f;}function Le(){var _0x4e58f4=_0x2886db;return Math[_0x4e58f4(0x189)]()['toString'](0x24)[_0x4e58f4(0x1b2)](0x2,0x8);}W[_0x2886db(0x1a1)]=_0x2886db(0x174);var ye={'tag':_0x2886db(0x1ac),'attrs':{'xmlns':_0x2886db(0x1a5),'fill':_0x2886db(0x178),'viewBox':'0\x200\x2017\x2017','width':_0x2886db(0x1f8),'height':_0x2886db(0x1f8)},'children':[{'tag':_0x2886db(0x1af),'attrs':{'fill':_0x2886db(0x1d7),'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':_0x2886db(0x1af),'attrs':{'fill':_0x2886db(0x1d7),'d':_0x2886db(0x195),'fillRule':_0x2886db(0x175),'clipRule':_0x2886db(0x175)}}]},B=_0x55f301(function(_0x13781d,_0x349829){var _0x21bfbc=_0x2886db;return _0xc61559(W,Object[_0x21bfbc(0x192)]({},_0x13781d,{'id':_0x21bfbc(0x176),'ref':_0x349829,'icon':ye}));});B[_0x2886db(0x1a1)]='LiveShareIcon';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x2b7426,_0x5ba008,_0x59a7e8,_0x2492e9)=>{var _0x3c2bf7=_0x2886db;for(var _0x2e3c93=_0x2492e9>0x1?void 0x0:_0x2492e9?Re(_0x5ba008,_0x59a7e8):_0x5ba008,_0x79da07=_0x2b7426[_0x3c2bf7(0x205)]-0x1,_0xbd78e8;_0x79da07>=0x0;_0x79da07--)(_0xbd78e8=_0x2b7426[_0x79da07])&&(_0x2e3c93=_0xbd78e8(_0x2e3c93)||_0x2e3c93);return _0x2e3c93;},f=(_0x59200c,_0x596e39)=>(_0x406125,_0x52dd4b)=>_0x596e39(_0x406125,_0x52dd4b,_0x59200c);let I=class extends _0x6f1f15{constructor(_0x5107f1,_0x26a3f1,_0x3eee54){var _0x575e85=_0x2886db;super(),d(this,_0x575e85(0x209),new Map()),(this[_0x575e85(0x1b1)]=_0x5107f1,this[_0x575e85(0x21f)]=_0x26a3f1,this['_collabSessionService']=_0x3eee54,this[_0x575e85(0x20b)]());}async[_0x2886db(0x1ef)](_0x227b7b){var _0x4176c4=_0x2886db;return this[_0x4176c4(0x209)][_0x4176c4(0x180)](_0x227b7b)||await this[_0x4176c4(0x1f0)](_0x227b7b),this[_0x4176c4(0x209)][_0x4176c4(0x1e3)](_0x227b7b);}[_0x2886db(0x20b)](){var _0x4fd0dd=_0x2886db;this[_0x4fd0dd(0x1b1)][_0x4fd0dd(0x1a9)](_0x4aff88[_0x4fd0dd(0x1db)])['pipe'](_0x120c99(this[_0x4fd0dd(0x206)]))['subscribe'](async _0x55ce3e=>{var _0x3f9089=_0x4fd0dd;const _0x421d83=_0x55ce3e[_0x3f9089(0x1d8)]();this[_0x3f9089(0x209)][_0x3f9089(0x180)](_0x421d83)||this[_0x3f9089(0x1f0)](_0x421d83);}),this[_0x4fd0dd(0x1b1)][_0x4fd0dd(0x1c6)](_0x4aff88[_0x4fd0dd(0x1db)])[_0x4fd0dd(0x1c3)](_0x120c99(this[_0x4fd0dd(0x206)]))[_0x4fd0dd(0x1c5)](_0x584625=>{var _0x420a86=_0x4fd0dd;const _0x56f2c9=_0x584625[_0x420a86(0x1d8)](),_0x1150f6=this[_0x420a86(0x209)][_0x420a86(0x1e3)](_0x56f2c9);_0x1150f6==null||_0x1150f6['dispose']();});}async[_0x2886db(0x1f0)](_0x525019){var _0x54f5c7=_0x2886db;const _0x3c5d8e=await this['_collabSessionService'][_0x54f5c7(0x218)](_0x525019),_0x171e35=this[_0x54f5c7(0x21f)][_0x54f5c7(0x19d)](C,_0x525019,_0x3c5d8e);return _0x171e35[_0x54f5c7(0x1b5)](),this[_0x54f5c7(0x209)][_0x54f5c7(0x1d1)](_0x525019,_0x171e35),_0x171e35;}};I=Z([f(0x0,_0x11d622),f(0x1,_0x10aaa1(_0x2015d8)),f(0x2,_0x10aaa1(_0x37b98))],I);var h=(_0x27a6a2=>(_0x27a6a2['OFFLINE']='offline',_0x27a6a2[_0x2886db(0x1e4)]='idle',_0x27a6a2[_0x2886db(0x191)]=_0x2886db(0x18d),_0x27a6a2[_0x2886db(0x1ab)]=_0x2886db(0x19e),_0x27a6a2[_0x2886db(0x202)]=_0x2886db(0x177),_0x27a6a2))(h||{});function _0x695d(_0x28dd9a,_0x923fb0){var _0xe8c531=_0xe8c5();return _0x695d=function(_0x695db1,_0x5e4718){_0x695db1=_0x695db1-0x171;var _0x10bc6b=_0xe8c531[_0x695db1];return _0x10bc6b;},_0x695d(_0x28dd9a,_0x923fb0);}const Pe=_0x2886db(0x1bf),Ae=0xc8;let C=class extends _0x6f1f15{constructor(_0xecbae6,_0x11b829,_0x3e111e,_0x4e07d3,_0x19eaf2){var _0x126e77=_0x2886db;super(),d(this,'_status$',new _0x1dc9f4(_0x126e77(0x1da))),d(this,_0x126e77(0x19c),this[_0x126e77(0x1e5)][_0x126e77(0x1de)]()),d(this,_0x126e77(0x20b),!0x1),d(this,_0x126e77(0x197),null),d(this,'_presenter',null),(this[_0x126e77(0x19f)]=_0xecbae6,this[_0x126e77(0x1a2)]=_0x11b829,this[_0x126e77(0x1a6)]=_0x3e111e,this[_0x126e77(0x1b3)]=_0x4e07d3,this[_0x126e77(0x21a)]=_0x19eaf2);}get['_status'](){var _0x2a3b2a=_0x2886db;return this[_0x2a3b2a(0x1e5)]['getValue']();}[_0x2886db(0x1ff)](){var _0x53d1da=_0x2886db,_0x43a5f2;(_0x43a5f2=this['_commandDisposable'])==null||_0x43a5f2[_0x53d1da(0x1ff)](),this[_0x53d1da(0x1e5)]['next'](_0x53d1da(0x1da)),this[_0x53d1da(0x1e5)]['complete']();}[_0x2886db(0x1b5)](){var _0x30f21d=_0x2886db;this[_0x30f21d(0x20b)]||(this[_0x30f21d(0x20b)]=!0x0,this['_collabSession'][_0x30f21d(0x1cc)][_0x30f21d(0x1c3)](_0x120c99(this[_0x30f21d(0x206)]))[_0x30f21d(0x1c5)](_0x241dfb=>{var _0x1c8fa5=_0x30f21d;switch(_0x241dfb){case _0x4e7aee[_0x1c8fa5(0x1d6)]:this['_handleOffline']();break;case _0x4e7aee['ONLINE']:this[_0x1c8fa5(0x17e)]();break;}}),this['_collabSession']['event$'][_0x30f21d(0x1c3)](_0x120c99(this[_0x30f21d(0x206)]))[_0x30f21d(0x1c5)](_0x9c2bfb=>{var _0x4f988f=_0x30f21d;const {eventID:_0x5ce4dc}=_0x9c2bfb;switch(_0x5ce4dc){case _0x31f6e1['LIVESHARE_NEW_HOST']:this[_0x4f988f(0x219)](_0x9c2bfb);break;case _0x31f6e1['LIVESHARE_OPERATION']:this[_0x4f988f(0x185)](_0x9c2bfb);break;case _0x31f6e1[_0x4f988f(0x1d3)]:this[_0x4f988f(0x1a7)]();break;case _0x31f6e1['NEW_CHANGESETS']:this[_0x4f988f(0x1e1)](_0x9c2bfb);break;}}));}[_0x2886db(0x188)](){var _0x5be021=_0x2886db;this[_0x5be021(0x1a2)][_0x5be021(0x1c4)]({'eventID':_0x31f6e1[_0x5be021(0x20d)],'data':{'unitID':this[_0x5be021(0x19f)],'userID':this[_0x5be021(0x1a2)][_0x5be021(0x1b4)]()}},this['_unitID']);}[_0x2886db(0x1d4)](){var _0x366b91=_0x2886db;this[_0x366b91(0x1f9)]==='presenting'&&(this[_0x366b91(0x1e5)][_0x366b91(0x190)]('idle'),this[_0x366b91(0x1a2)]['send']({'eventID':_0x31f6e1[_0x366b91(0x1d3)],'data':{'unitID':this['_unitID']}},this[_0x366b91(0x19f)]));}[_0x2886db(0x1be)](){var _0x55ea58=_0x2886db;this[_0x55ea58(0x1f9)]===_0x55ea58(0x19e)&&(this[_0x55ea58(0x1e5)][_0x55ea58(0x190)](_0x55ea58(0x18d)),this['_startFollowing']());}[_0x2886db(0x1e6)](){var _0x3a58e3=_0x2886db;this[_0x3a58e3(0x1f9)]===_0x3a58e3(0x18d)&&this[_0x3a58e3(0x211)]();}[_0x2886db(0x219)](_0x4715bb){var _0x32700c=_0x2886db;const {presenter:_0x3ff6fc}=_0x4715bb[_0x32700c(0x198)],_0x36d41c=this[_0x32700c(0x1a2)][_0x32700c(0x1b4)]();this[_0x32700c(0x207)]=_0x3ff6fc,_0x3ff6fc===_0x36d41c?(this['_stopFollowing'](),this['_startPresenting']()):this['_status']!==_0x32700c(0x19e)&&(this[_0x32700c(0x1bc)](),this[_0x32700c(0x1ed)]());}[_0x2886db(0x19b)](){var _0x437216=_0x2886db;const _0x49b2e3={'eventID':_0x31f6e1[_0x437216(0x21c)]};this[_0x437216(0x1a2)][_0x437216(0x1c4)](_0x49b2e3,this[_0x437216(0x19f)]);}[_0x2886db(0x1a7)](){var _0x1df453=_0x2886db;this['_presenter']=null,this[_0x1df453(0x1f9)]!==_0x1df453(0x177)&&this[_0x1df453(0x172)]();}[_0x2886db(0x1e1)](_0x3879a2){var _0x73a500=_0x2886db;if(this['_status']==='following'&&this['_presenter']===_0x3879a2[_0x73a500(0x198)][_0x73a500(0x1f7)]){const _0x267bf4=_0xb1adb(_0x3879a2[_0x73a500(0x198)])[_0x73a500(0x173)][_0x73a500(0x181)]()[_0x73a500(0x1ba)](_0x477c52=>_0x477c52['id']===_0x1800b8['id']);if(_0x267bf4){const _0x5f1cc4=_0x267bf4[_0x73a500(0x1ee)][_0x73a500(0x1f4)],_0x3c4392=_0x267bf4['params'][_0x73a500(0x1bd)]['id'];setTimeout(()=>{var _0x39d4af=_0x73a500;this['_commandService'][_0x39d4af(0x194)](_0xcf814f['id'],{'unitId':_0x5f1cc4,'subUnitId':_0x3c4392},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x494428=_0x2886db;this[_0x494428(0x1e5)][_0x494428(0x190)]('presenting');const _0xdf4dbd=new Map(),_0x157f0e=this[_0x494428(0x197)]=new _0x274689();_0x157f0e[_0x494428(0x1d2)](_0x3a14b5(()=>{var _0x1b1005=_0x494428;_0xdf4dbd[_0x1b1005(0x212)](_0x380493=>_0x380493['complete']()),_0xdf4dbd[_0x1b1005(0x1a4)]();})),_0x157f0e[_0x494428(0x1d2)](this[_0x494428(0x21a)][_0x494428(0x1ad)](_0x5b85aa=>{var _0x29293f=_0x494428,_0x4b6d2f;if(_0x5b85aa['type']!==_0x55a605[_0x29293f(0x1c7)]||!this[_0x29293f(0x1b3)]['shouldShareOperation'](_0x5b85aa['id']))return;const {id:_0x3c96ff}=_0x5b85aa;let _0x1cb5a1;_0xdf4dbd[_0x29293f(0x180)](_0x3c96ff)?_0x1cb5a1=_0xdf4dbd[_0x29293f(0x1e3)](_0x3c96ff):(_0x1cb5a1=new _0x5762(),_0xdf4dbd[_0x29293f(0x1d1)](_0x3c96ff,_0x1cb5a1),_0x1cb5a1[_0x29293f(0x1c3)](_0x2d347e((_0x4b6d2f=this[_0x29293f(0x1a6)][_0x29293f(0x200)](Pe))!=null?_0x4b6d2f:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x29293f(0x1c5)](_0x1539ba=>{var _0x387b5e=_0x29293f;this[_0x387b5e(0x1a2)][_0x387b5e(0x1c4)]({'eventID':_0x31f6e1['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x387b5e(0x19f)],'operations':{[_0x1539ba['id']]:{'id':_0x1539ba['id'],'params':JSON[_0x387b5e(0x210)](_0x1539ba[_0x387b5e(0x1ee)])}}}},this['_unitID']);})),_0x1cb5a1[_0x29293f(0x190)](_0x5b85aa);})),this[_0x494428(0x1b3)]['getInitialStates'](this[_0x494428(0x19f)])['forEach'](_0x276b54=>this[_0x494428(0x1a2)][_0x494428(0x1c4)]({'eventID':_0x31f6e1[_0x494428(0x217)],'data':{'unitID':this['_unitID'],'operations':{[_0x276b54['id']]:{'id':_0x276b54['id'],'params':JSON[_0x494428(0x210)](_0x276b54[_0x494428(0x1ee)])}}}},this['_unitID']));}[_0x2886db(0x1bc)](){var _0x1ef019=_0x2886db,_0x1433cc;this[_0x1ef019(0x1e5)]['next'](_0x1ef019(0x1da)),(_0x1433cc=this[_0x1ef019(0x197)])==null||_0x1433cc[_0x1ef019(0x1ff)](),this['_commandDisposable']=null;}[_0x2886db(0x1ed)](){var _0xaf8ce6=_0x2886db,_0x7bc5a1;(_0x7bc5a1=this[_0xaf8ce6(0x197)])==null||_0x7bc5a1['dispose'](),this['_status$'][_0xaf8ce6(0x190)](_0xaf8ce6(0x18d));}[_0x2886db(0x172)](){var _0x239e80=_0x2886db,_0x5b73d6;this[_0x239e80(0x1e5)][_0x239e80(0x190)](_0x239e80(0x1da)),(_0x5b73d6=this[_0x239e80(0x197)])==null||_0x5b73d6[_0x239e80(0x1ff)](),this[_0x239e80(0x197)]=null;}[_0x2886db(0x211)](){var _0x2d0753=_0x2886db,_0x5e502;this[_0x2d0753(0x1e5)][_0x2d0753(0x190)]('not-following'),(_0x5e502=this[_0x2d0753(0x197)])==null||_0x5e502['dispose']();}[_0x2886db(0x185)](_0x3903bc){var _0x3e5926=_0x2886db;if([_0x3e5926(0x177),_0x3e5926(0x19e),_0x3e5926(0x18b)][_0x3e5926(0x20c)](this[_0x3e5926(0x1f9)])||!_0x3903bc['data'][_0x3e5926(0x1c9)]||_0x3903bc[_0x3e5926(0x198)]['presenter']===this['_collabSession']['getMemberID']())return;this[_0x3e5926(0x1f9)]===_0x3e5926(0x1da)&&this['_startFollowing']();const _0xd5dd65=_0x3903bc[_0x3e5926(0x198)][_0x3e5926(0x1b7)];Object[_0x3e5926(0x1d9)](_0xd5dd65)[_0x3e5926(0x212)](_0x1611bb=>{var _0x55d1d7=_0x3e5926;this['_commandService']['executeCommand'](_0x1611bb['id'],_0x1611bb[_0x55d1d7(0x1ee)]?JSON[_0x55d1d7(0x21b)](_0x1611bb[_0x55d1d7(0x1ee)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x56fdcd=_0x2886db,_0x5a95ba;this[_0x56fdcd(0x1e5)]['next'](_0x56fdcd(0x18b)),(_0x5a95ba=this['_commandDisposable'])==null||_0x5a95ba[_0x56fdcd(0x1ff)]();}['_handleOnline'](){var _0x42ab97=_0x2886db;this['_status$'][_0x42ab97(0x190)](_0x42ab97(0x1da)),this[_0x42ab97(0x19b)]();}};C=Z([f(0x2,_0x37a6e8),f(0x3,_0x10aaa1(L)),f(0x4,_0x342266)],C);function Te(){var _0x5a44c8=_0x2886db;const _0x3531ca=_0x5b3603(I),_0x30ee38=_0x5b3603(_0x11d622),_0x28d50a=_0x2d4df2(()=>_0x30ee38[_0x5a44c8(0x18c)](_0x4aff88[_0x5a44c8(0x1db)]),void 0x0,!0x1,[]),[_0x48eea2,_0x4b0e40]=_0x11cb7c(null),[_0x38d9a1,_0x3d45b4]=_0x11cb7c(h['IDLE']),_0x5182d6=_0x2d195a(null);return _0x548d7b(()=>(_0x28d50a&&_0x3531ca[_0x5a44c8(0x1ef)](_0x28d50a[_0x5a44c8(0x1d8)]())[_0x5a44c8(0x193)](_0x56afa1=>{var _0x5d6a49=_0x5a44c8;_0x4b0e40(_0x56afa1),_0x5182d6[_0x5d6a49(0x1fa)]=_0x56afa1[_0x5d6a49(0x19c)][_0x5d6a49(0x1c5)](_0xf35f7c=>{_0x3d45b4(_0xf35f7c);});}),()=>{var _0x7a9b3=_0x5a44c8,_0x25c32e;(_0x25c32e=_0x5182d6[_0x7a9b3(0x1fa)])==null||_0x25c32e[_0x7a9b3(0x1b0)](),_0x5182d6[_0x7a9b3(0x1fa)]=null;}),[_0x28d50a,_0x3531ca]),_0x48eea2?_0x3a52ad(_0x4dd19b,{'align':_0x5a44c8(0x1b8),'disabled':_0x38d9a1===h[_0x5a44c8(0x1d6)],'className':_0x5a44c8(0x1e8),'overlay':_0x3a52ad($e,{'status':_0x38d9a1,'coordinator':_0x48eea2}),'children':_0x3a52ad(_0x5a44c8(0x1ae),{'className':_0x2351ae(_0x5a44c8(0x1ec),{'univer-cursor-not-allowed':_0x38d9a1===h[_0x5a44c8(0x1d6)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x38d9a1!==h[_0x5a44c8(0x1d6)]}),'type':_0x5a44c8(0x1ae),'children':_0x3a52ad(B,{'className':_0x5a44c8(0x1f2)})})}):null;}function $e(_0x5ef130){var _0x556fcb=_0x2886db;const {status:_0x1bcafa,coordinator:_0x179ae0}=_0x5ef130;switch(_0x1bcafa){case h[_0x556fcb(0x1e4)]:return _0x3a52ad(Fe,{'coordinator':_0x179ae0});case h[_0x556fcb(0x191)]:return _0x3a52ad(He,{'coordinator':_0x179ae0});case h['NOT_FOLLOWING']:return _0x3a52ad(je,{'coordinator':_0x179ae0});case h[_0x556fcb(0x1d6)]:return _0x3a52ad(Ve,{});case h[_0x556fcb(0x202)]:return _0x3a52ad(Ue,{'coordinator':_0x179ae0});default:return null;}}function Fe(_0x11ba29){var _0x9421a5=_0x2886db;const {coordinator:_0x4c4bb1}=_0x11ba29;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad(_0x9421a5(0x17b),{'className':_0x9421a5(0x1c8),'children':_0x9421a5(0x179)}),_0x3a52ad(_0x2dde90,{'onClick':()=>_0x4c4bb1[_0x9421a5(0x188)](),'children':_0x9421a5(0x1d5)})]});}function He(_0x3f9821){var _0x1841a5=_0x2886db;const {coordinator:_0x44175f}=_0x3f9821;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad('div',{'className':_0x1841a5(0x1c8),'children':_0x1841a5(0x18a)}),_0x3a52ad(_0x2dde90,{'onClick':()=>_0x44175f[_0x1841a5(0x1e6)](),'children':_0x1841a5(0x20e)})]});}function je(_0x198f94){var _0x3986e8=_0x2886db;const {coordinator:_0x4fac19}=_0x198f94;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad(_0x3986e8(0x17b),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x3986e8(0x1df)}),_0x3a52ad(_0x2dde90,{'variant':_0x3986e8(0x1f5),'onClick':()=>_0x4fac19[_0x3986e8(0x1be)](),'children':_0x3986e8(0x1b6)})]});}function Ue(_0x302018){var _0x44ca58=_0x2886db;const {coordinator:_0x5b74c5}=_0x302018;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad(_0x44ca58(0x17b),{'className':_0x44ca58(0x1c8),'children':_0x44ca58(0x1f3)}),_0x3a52ad(_0x2dde90,{'variant':_0x44ca58(0x1e7),'onClick':()=>_0x5b74c5[_0x44ca58(0x1d4)](),'children':_0x44ca58(0x220)})]});}function Ve(){return _0x3a52ad(_0x1dbeda,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x2886db(0x1e0)],ke=(_0x2e7ded,_0x58b8e7,_0x2ee39d,_0x4fa189)=>{var _0x50eb0b=_0x2886db;for(var _0x1ab85f=_0x4fa189>0x1?void 0x0:_0x4fa189?Me(_0x58b8e7,_0x2ee39d):_0x58b8e7,_0x30950c=_0x2e7ded[_0x50eb0b(0x205)]-0x1,_0x7ac355;_0x30950c>=0x0;_0x30950c--)(_0x7ac355=_0x2e7ded[_0x30950c])&&(_0x1ab85f=_0x7ac355(_0x1ab85f)||_0x1ab85f);return _0x1ab85f;},$=(_0x2cc36e,_0x268480)=>(_0x32d3fe,_0x57be99)=>_0x268480(_0x32d3fe,_0x57be99,_0x2cc36e);let b=class extends _0x172f34{constructor(_0x4e7ce1,_0x4dc55c){var _0x3cbe25=_0x2886db;super(),this[_0x3cbe25(0x21f)]=_0x4e7ce1,this[_0x3cbe25(0x199)]=_0x4dc55c,this[_0x3cbe25(0x17f)]();}[_0x2886db(0x17f)](){var _0x10f90d=_0x2886db;this[_0x10f90d(0x1f1)](this['_uiPartsService'][_0x10f90d(0x1cf)](_0x2083b0[_0x10f90d(0x1e9)],()=>_0x1b45da(Te,this['_injector'])));}};b=ke([$(0x0,_0x10aaa1(_0x2015d8)),$(0x1,_0x125ac6)],b);var Ge=Object[_0x2886db(0x1fe)],We=Object[_0x2886db(0x1e0)],Ye=(_0x13b7e2,_0x2ddc74,_0x1fee3c)=>_0x2ddc74 in _0x13b7e2?Ge(_0x13b7e2,_0x2ddc74,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1fee3c}):_0x13b7e2[_0x2ddc74]=_0x1fee3c,Be=(_0x5d8761,_0x1708fc,_0x2e1570,_0xc8308b)=>{var _0x269401=_0x2886db;for(var _0x17f8ee=_0xc8308b>0x1?void 0x0:_0xc8308b?We(_0x1708fc,_0x2e1570):_0x1708fc,_0x111bf3=_0x5d8761[_0x269401(0x205)]-0x1,_0x396966;_0x111bf3>=0x0;_0x111bf3--)(_0x396966=_0x5d8761[_0x111bf3])&&(_0x17f8ee=_0x396966(_0x17f8ee)||_0x17f8ee);return _0x17f8ee;},F=(_0x40f86e,_0x599b00)=>(_0xea2eb0,_0x4b4696)=>_0x599b00(_0xea2eb0,_0x4b4696,_0x40f86e),J=(_0x121364,_0x3d93f3,_0x4a838f)=>Ye(_0x121364,typeof _0x3d93f3!=_0x2886db(0x1c0)?_0x3d93f3+'':_0x3d93f3,_0x4a838f);const Ze=_0x2886db(0x19a);let O=class extends _0x3a7036{constructor(_0x3ba33d=T,_0x22916c,_0x45972d){var _0x50a1be=_0x2886db;super(),this['_config']=_0x3ba33d,this[_0x50a1be(0x21f)]=_0x22916c,this[_0x50a1be(0x1a6)]=_0x45972d;const {..._0x356fb4}=_0x4c5a48({},T,this[_0x50a1be(0x21d)]);this[_0x50a1be(0x1a6)][_0x50a1be(0x186)](Oe,_0x356fb4);}[_0x2886db(0x201)](){var _0x42f15d=_0x2886db;_0x5c518a(this['_injector'],_0x1d9838([[L],[I],[m],[b]],this[_0x42f15d(0x21d)]['override'])),_0x1e2724(this['_injector'],[[m]]);}['onRendered'](){_0x1e2724(this['_injector'],[[b]]);}};J(O,_0x2886db(0x171),_0x4aff88[_0x2886db(0x182)]),J(O,_0x2886db(0x1a8),Ze),O=Be([_0x35d3f7(_0x5a9880),F(0x1,_0x10aaa1(_0x2015d8)),F(0x2,_0x37a6e8)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x2ae16c=_0x2506;(function(_0x3fd78d,_0x29fb1c){var _0x2fcd18=_0x2506,_0x26cd98=_0x3fd78d();while(!![]){try{var _0x4e9bd7=parseInt(_0x2fcd18(0x1bf))/0x1+parseInt(_0x2fcd18(0x190))/0x2+-parseInt(_0x2fcd18(0x1b6))/0x3+parseInt(_0x2fcd18(0x1b2))/0x4+-parseInt(_0x2fcd18(0x1e4))/0x5*(parseInt(_0x2fcd18(0x1d6))/0x6)+-parseInt(_0x2fcd18(0x1bc))/0x7+parseInt(_0x2fcd18(0x1fb))/0x8*(parseInt(_0x2fcd18(0x21f))/0x9);if(_0x4e9bd7===_0x29fb1c)break;else _0x26cd98['push'](_0x26cd98['shift']());}catch(_0x1f489d){_0x26cd98['push'](_0x26cd98['shift']());}}}(_0x5400,0x51358));var q=Object[_0x2ae16c(0x1a6)],z=(_0x22255e,_0x548d99,_0x376ca9)=>_0x548d99 in _0x22255e?q(_0x22255e,_0x548d99,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x376ca9}):_0x22255e[_0x548d99]=_0x376ca9,d=(_0x4467b5,_0x5b9072,_0x4fd19f)=>z(_0x4467b5,typeof _0x5b9072!='symbol'?_0x5b9072+'':_0x5b9072,_0x4fd19f);import{CollaborationSessionService as _0x4f5af2,SessionStatus as _0x4d71b3,UniverCollaborationClientPlugin as _0x27f278}from'@univerjs-pro/collaboration-client';import{Disposable as _0x2ccbb9,toDisposable as _0x38901e,Inject as _0x593737,IUniverInstanceService as _0x1a7ea1,Injector as _0xe7680d,IConfigService as _0x1ad72f,ICommandService as _0x560e7e,RxDisposable as _0x55e2fc,UniverInstanceType as _0x42ee76,DisposableCollection as _0x2221d0,CommandType as _0x25c528,DependentOn as _0x46cf58,Plugin as _0x463199,merge as _0x54fc87,registerDependencies as _0x3f2cd6,mergeOverrideWithDependencies as _0x43b81e,touchDependencies as _0x5144c9}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x156019,InsertSheetMutation as _0x2adb2e}from'@univerjs/sheets';import{SetZoomRatioOperation as _0xc12c9e,SetScrollOperation as _0x21e91d}from'@univerjs/sheets-ui';import{useDependency as _0x1d89de,useObservable as _0x19ab69,IUIPartsService as _0x5f57dd,BuiltInUIPart as _0x596006,connectInjector as _0x9eed15}from'@univerjs/ui';import{jsx as _0xa8e486,jsxs as _0x1f8228,Fragment as _0xa79dd}from'react/jsx-runtime';import{Dropdown as _0x524d08,clsx as _0x4589dc,Button as _0x2cd243}from'@univerjs/design';import{forwardRef as _0x53f5e8,useRef as _0x19b438,createElement as _0x43b2f6,useState as _0x2c2ba0,useEffect as _0x5d5c39}from'react';import{CollaborationEvent as _0x3d2fa7,parseProtocolChangeset as _0x5e0ea2}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x1f3e9c,Subject as _0x26d562}from'rxjs';import{takeUntil as _0x4dbea4,throttleTime as _0xa3d9ff}from'rxjs/operators';const Oe=_0x2ae16c(0x1c3),T={};class L extends _0x2ccbb9{constructor(){var _0x21b4b5=_0x2ae16c;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x21b4b5(0x1ea),new Set());}[_0x2ae16c(0x222)](_0x3cb7f1){var _0x296ce5=_0x2ae16c;return this[_0x296ce5(0x218)][_0x296ce5(0x1cb)](_0x3cb7f1),_0x38901e(()=>this['_sharedOperations'][_0x296ce5(0x1d0)](_0x3cb7f1));}['registerInitialStateReporter'](_0x3dd980){var _0x51358e=_0x2ae16c;return this[_0x51358e(0x1ea)][_0x51358e(0x1cb)](_0x3dd980),_0x38901e(()=>this[_0x51358e(0x1ea)]['delete'](_0x3dd980));}['shouldShareOperation'](_0x1d4a24){var _0x1d4501=_0x2ae16c;return this[_0x1d4501(0x218)][_0x1d4501(0x19b)](_0x1d4a24);}[_0x2ae16c(0x1c9)](_0x266566){var _0x264bc4=_0x2ae16c;return Array[_0x264bc4(0x229)](this[_0x264bc4(0x1ea)])[_0x264bc4(0x214)](_0x3989aa=>_0x3989aa(_0x266566));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x1426e2,_0x488f93,_0x415448,_0x58260e)=>{var _0x32aac6=_0x2ae16c;for(var _0x2a9642=_0x58260e>0x1?void 0x0:_0x58260e?Ee(_0x488f93,_0x415448):_0x488f93,_0xe27a18=_0x1426e2[_0x32aac6(0x1d1)]-0x1,_0x1ab13d;_0xe27a18>=0x0;_0xe27a18--)(_0x1ab13d=_0x1426e2[_0xe27a18])&&(_0x2a9642=_0x1ab13d(_0x2a9642)||_0x2a9642);return _0x2a9642;},Ne=(_0x4d4418,_0x4ed351)=>(_0x52cc34,_0x4dd922)=>_0x4ed351(_0x52cc34,_0x4dd922,_0x4d4418);let m=class extends _0x2ccbb9{constructor(_0x40181d){var _0x35a70b=_0x2ae16c;super(),this['_liveShareService']=_0x40181d,this[_0x35a70b(0x22e)]();}['_init'](){var _0x20d9e0=_0x2ae16c;[_0xc12c9e['id'],_0x21e91d['id'],_0x156019['id']][_0x20d9e0(0x226)](_0x3209c5=>{var _0x145342=_0x20d9e0;this[_0x145342(0x199)](this['_liveShareService'][_0x145342(0x222)](_0x3209c5));});}};m=we([Ne(0x0,_0x593737(L))],m);var c=function(){var _0x1e67d5=_0x2ae16c;return c=Object[_0x1e67d5(0x1fd)]||function(_0x3e3853){var _0x242cbe=_0x1e67d5;for(var _0x7c648f,_0x4588ea=0x1,_0x4de5de=arguments['length'];_0x4588ea<_0x4de5de;_0x4588ea++){_0x7c648f=arguments[_0x4588ea];for(var _0x1cf573 in _0x7c648f)Object[_0x242cbe(0x1c4)][_0x242cbe(0x1a7)][_0x242cbe(0x1dc)](_0x7c648f,_0x1cf573)&&(_0x3e3853[_0x1cf573]=_0x7c648f[_0x1cf573]);}return _0x3e3853;},c[_0x1e67d5(0x1b1)](this,arguments);},Ce=function(_0x43a552,_0x593e36){var _0x31a51e=_0x2ae16c,_0x18593e={};for(var _0x58f84e in _0x43a552)Object['prototype']['hasOwnProperty']['call'](_0x43a552,_0x58f84e)&&_0x593e36[_0x31a51e(0x211)](_0x58f84e)<0x0&&(_0x18593e[_0x58f84e]=_0x43a552[_0x58f84e]);if(_0x43a552!=null&&typeof Object['getOwnPropertySymbols']==_0x31a51e(0x1ad)){for(var _0x2c35f2=0x0,_0x58f84e=Object[_0x31a51e(0x1ba)](_0x43a552);_0x2c35f2<_0x58f84e[_0x31a51e(0x1d1)];_0x2c35f2++)_0x593e36[_0x31a51e(0x211)](_0x58f84e[_0x2c35f2])<0x0&&Object[_0x31a51e(0x1c4)][_0x31a51e(0x198)][_0x31a51e(0x1dc)](_0x43a552,_0x58f84e[_0x2c35f2])&&(_0x18593e[_0x58f84e[_0x2c35f2]]=_0x43a552[_0x58f84e[_0x2c35f2]]);}return _0x18593e;},W=_0x53f5e8(function(_0x3fda35,_0x380b7){var _0x59fc05=_0x2ae16c,_0x29aab6=_0x3fda35[_0x59fc05(0x1bb)],_0x57cb8b=_0x3fda35['id'],_0x3f393e=_0x3fda35[_0x59fc05(0x20c)],_0x3abd3a=_0x3fda35[_0x59fc05(0x232)],_0x5a9bc8=Ce(_0x3fda35,['icon','id',_0x59fc05(0x20c),_0x59fc05(0x232)]),_0x1b4bc5=_0x59fc05(0x1b9)[_0x59fc05(0x1f6)](_0x57cb8b,'\x20')['concat'](_0x3f393e||'')['trim'](),_0x2aa5bd=_0x19b438('_'[_0x59fc05(0x1f6)](Le()));return Y(_0x29aab6,''[_0x59fc05(0x1f6)](_0x57cb8b),{'defIds':_0x29aab6[_0x59fc05(0x20a)],'idSuffix':_0x2aa5bd[_0x59fc05(0x1d7)]},c({'ref':_0x380b7,'className':_0x1b4bc5},_0x5a9bc8),_0x3abd3a);});function Y(_0x15273c,_0x1bd5a4,_0x3baaa2,_0x1ff2ef,_0x1b03a8){var _0x3232e5=_0x2ae16c;return _0x43b2f6(_0x15273c[_0x3232e5(0x21e)],c(c({'key':_0x1bd5a4},De(_0x15273c,_0x3baaa2,_0x1b03a8)),_0x1ff2ef),(xe(_0x15273c,_0x3baaa2)[_0x3232e5(0x1d5)]||[])[_0x3232e5(0x214)](function(_0x3846c5,_0x3f7044){var _0x328c22=_0x3232e5;return Y(_0x3846c5,''[_0x328c22(0x1f6)](_0x1bd5a4,'-')[_0x328c22(0x1f6)](_0x15273c['tag'],'-')[_0x328c22(0x1f6)](_0x3f7044),_0x3baaa2,void 0x0,_0x1b03a8);}));}function De(_0x4f1345,_0x57b3b9,_0x22f553){var _0x3bb106=_0x2ae16c,_0x3a70f2=c({},_0x4f1345[_0x3bb106(0x213)]);_0x22f553!=null&&_0x22f553[_0x3bb106(0x212)]&&_0x3a70f2[_0x3bb106(0x1c2)]==='colorChannel1'&&(_0x3a70f2[_0x3bb106(0x1c2)]=_0x22f553['colorChannel1']),_0x4f1345[_0x3bb106(0x21e)]===_0x3bb106(0x1db)&&_0x3a70f2['id']&&(_0x3a70f2['id']=_0x3a70f2['id']+_0x57b3b9['idSuffix']),Object['entries'](_0x3a70f2)[_0x3bb106(0x226)](function(_0x4cd719){var _0x2399f3=_0x3bb106,_0x263fd5=_0x4cd719[0x0],_0xee1a3f=_0x4cd719[0x1];_0x263fd5==='mask'&&typeof _0xee1a3f==_0x2399f3(0x1d9)&&(_0x3a70f2[_0x263fd5]=_0xee1a3f[_0x2399f3(0x1ae)](/url\(#(.*)\)/,_0x2399f3(0x1c0)[_0x2399f3(0x1f6)](_0x57b3b9[_0x2399f3(0x1e0)],')')));});var _0x51b928=_0x57b3b9[_0x3bb106(0x20a)];return!_0x51b928||_0x51b928[_0x3bb106(0x1d1)]===0x0||(_0x4f1345['tag']===_0x3bb106(0x223)&&_0x3a70f2[_0x3bb106(0x239)]&&(_0x3a70f2[_0x3bb106(0x239)]=_0x3a70f2['xlink:href']+_0x57b3b9['idSuffix']),Object[_0x3bb106(0x19a)](_0x3a70f2)[_0x3bb106(0x226)](function(_0xf98fa5){var _0x203526=_0x3bb106,_0x5e486b=_0xf98fa5[0x0],_0x3ec3fe=_0xf98fa5[0x1];typeof _0x3ec3fe=='string'&&(_0x3a70f2[_0x5e486b]=_0x3ec3fe[_0x203526(0x1ae)](/url\(#(.*)\)/,_0x203526(0x1c0)[_0x203526(0x1f6)](_0x57b3b9[_0x203526(0x1e0)],')')));})),_0x3a70f2;}function xe(_0x41ab13,_0xf1e4e8){var _0x47adb4=_0x2ae16c,_0x53cdf0,_0x2a08b4=_0xf1e4e8[_0x47adb4(0x20a)];return!_0x2a08b4||_0x2a08b4['length']===0x0?_0x41ab13:_0x41ab13[_0x47adb4(0x21e)]==='defs'&&(!((_0x53cdf0=_0x41ab13['children'])===null||_0x53cdf0===void 0x0)&&_0x53cdf0[_0x47adb4(0x1d1)])?c(c({},_0x41ab13),{'children':_0x41ab13[_0x47adb4(0x1d5)]['map'](function(_0x5d5dff){var _0x241b32=_0x47adb4;return typeof _0x5d5dff[_0x241b32(0x213)]['id']==_0x241b32(0x1d9)&&_0x2a08b4&&_0x2a08b4[_0x241b32(0x1b3)](_0x5d5dff[_0x241b32(0x213)]['id'])?c(c({},_0x5d5dff),{'attrs':c(c({},_0x5d5dff[_0x241b32(0x213)]),{'id':_0x5d5dff['attrs']['id']+_0xf1e4e8['idSuffix']})}):_0x5d5dff;})}):_0x41ab13;}function _0x2506(_0xa70875,_0x1422bf){var _0x5400d7=_0x5400();return _0x2506=function(_0x250617,_0x3e3126){_0x250617=_0x250617-0x188;var _0x5bf819=_0x5400d7[_0x250617];return _0x5bf819;},_0x2506(_0xa70875,_0x1422bf);}function Le(){var _0x273f1b=_0x2ae16c;return Math['random']()[_0x273f1b(0x1e7)](0x24)[_0x273f1b(0x231)](0x2,0x8);}W[_0x2ae16c(0x1ce)]='UniverIcon';var ye={'tag':'svg','attrs':{'xmlns':_0x2ae16c(0x1cc),'fill':_0x2ae16c(0x236),'viewBox':_0x2ae16c(0x1e3),'width':_0x2ae16c(0x1e8),'height':_0x2ae16c(0x1e8)},'children':[{'tag':_0x2ae16c(0x1e1),'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':_0x2ae16c(0x1e1),'attrs':{'fill':_0x2ae16c(0x234),'d':_0x2ae16c(0x1a1),'fillRule':'evenodd','clipRule':_0x2ae16c(0x20f)}}]},B=_0x53f5e8(function(_0x1c22f7,_0x31c8ef){var _0x3f488a=_0x2ae16c;return _0x43b2f6(W,Object[_0x3f488a(0x1fd)]({},_0x1c22f7,{'id':_0x3f488a(0x1fc),'ref':_0x31c8ef,'icon':ye}));});B[_0x2ae16c(0x1ce)]=_0x2ae16c(0x1fa);var Re=Object[_0x2ae16c(0x1c7)],Z=(_0x12f08a,_0x3517cf,_0x227c81,_0x48dac0)=>{var _0x3e37b1=_0x2ae16c;for(var _0x1ac48a=_0x48dac0>0x1?void 0x0:_0x48dac0?Re(_0x3517cf,_0x227c81):_0x3517cf,_0x299efa=_0x12f08a[_0x3e37b1(0x1d1)]-0x1,_0x162a83;_0x299efa>=0x0;_0x299efa--)(_0x162a83=_0x12f08a[_0x299efa])&&(_0x1ac48a=_0x162a83(_0x1ac48a)||_0x1ac48a);return _0x1ac48a;},f=(_0x310962,_0x2a6a15)=>(_0x3fc43e,_0x225e2e)=>_0x2a6a15(_0x3fc43e,_0x225e2e,_0x310962);let I=class extends _0x55e2fc{constructor(_0x5a4353,_0x442e13,_0x5c0453){var _0x1c2fbd=_0x2ae16c;super(),d(this,_0x1c2fbd(0x18f),new Map()),(this[_0x1c2fbd(0x18a)]=_0x5a4353,this[_0x1c2fbd(0x23a)]=_0x442e13,this[_0x1c2fbd(0x1f7)]=_0x5c0453,this[_0x1c2fbd(0x22e)]());}async[_0x2ae16c(0x1a3)](_0x4d6da2){var _0x3011ca=_0x2ae16c;return this[_0x3011ca(0x18f)][_0x3011ca(0x19b)](_0x4d6da2)||await this[_0x3011ca(0x1af)](_0x4d6da2),this[_0x3011ca(0x18f)][_0x3011ca(0x1eb)](_0x4d6da2);}[_0x2ae16c(0x22e)](){var _0x931116=_0x2ae16c;this[_0x931116(0x18a)][_0x931116(0x20e)](_0x42ee76[_0x931116(0x18b)])[_0x931116(0x200)](_0x4dbea4(this[_0x931116(0x227)]))[_0x931116(0x1a9)](async _0x3b7f34=>{var _0x7d3742=_0x931116;const _0x3afd5b=_0x3b7f34[_0x7d3742(0x1f9)]();this[_0x7d3742(0x18f)][_0x7d3742(0x19b)](_0x3afd5b)||this[_0x7d3742(0x1af)](_0x3afd5b);}),this[_0x931116(0x18a)][_0x931116(0x1dd)](_0x42ee76[_0x931116(0x18b)])[_0x931116(0x200)](_0x4dbea4(this[_0x931116(0x227)]))[_0x931116(0x1a9)](_0xb1d7d1=>{var _0xebfefe=_0x931116;const _0x3b6c80=_0xb1d7d1[_0xebfefe(0x1f9)](),_0x168387=this['_entities'][_0xebfefe(0x1eb)](_0x3b6c80);_0x168387==null||_0x168387[_0xebfefe(0x1b8)]();});}async[_0x2ae16c(0x1af)](_0xf9367b){var _0x51af54=_0x2ae16c;const _0x320c63=await this[_0x51af54(0x1f7)][_0x51af54(0x237)](_0xf9367b),_0x3addea=this[_0x51af54(0x23a)][_0x51af54(0x195)](C,_0xf9367b,_0x320c63);return _0x3addea[_0x51af54(0x1b0)](),this['_entities'][_0x51af54(0x202)](_0xf9367b,_0x3addea),_0x3addea;}};I=Z([f(0x0,_0x1a7ea1),f(0x1,_0x593737(_0xe7680d)),f(0x2,_0x593737(_0x4f5af2))],I);var h=(_0x34d445=>(_0x34d445[_0x2ae16c(0x1f1)]='offline',_0x34d445[_0x2ae16c(0x1de)]=_0x2ae16c(0x1df),_0x34d445[_0x2ae16c(0x1c1)]=_0x2ae16c(0x1bd),_0x34d445[_0x2ae16c(0x1d4)]=_0x2ae16c(0x225),_0x34d445[_0x2ae16c(0x19e)]=_0x2ae16c(0x220),_0x34d445))(h||{});const Pe=_0x2ae16c(0x217),Ae=0xc8;let C=class extends _0x55e2fc{constructor(_0xe7ff09,_0xbef96,_0x4fe943,_0x4827c4,_0x16b26d){var _0x2d0e2c=_0x2ae16c;super(),d(this,_0x2d0e2c(0x1f0),new _0x1f3e9c(_0x2d0e2c(0x1df))),d(this,_0x2d0e2c(0x18d),this['_status$'][_0x2d0e2c(0x1a0)]()),d(this,_0x2d0e2c(0x22e),!0x1),d(this,_0x2d0e2c(0x1be),null),d(this,_0x2d0e2c(0x1d8),null),(this[_0x2d0e2c(0x191)]=_0xe7ff09,this['_collabSession']=_0xbef96,this[_0x2d0e2c(0x205)]=_0x4fe943,this[_0x2d0e2c(0x1f2)]=_0x4827c4,this[_0x2d0e2c(0x1ca)]=_0x16b26d);}get[_0x2ae16c(0x189)](){var _0x246a13=_0x2ae16c;return this[_0x246a13(0x1f0)]['getValue']();}[_0x2ae16c(0x1b8)](){var _0x44b047=_0x2ae16c,_0x4fd831;(_0x4fd831=this[_0x44b047(0x1be)])==null||_0x4fd831[_0x44b047(0x1b8)](),this[_0x44b047(0x1f0)][_0x44b047(0x228)](_0x44b047(0x1df)),this[_0x44b047(0x1f0)][_0x44b047(0x235)]();}[_0x2ae16c(0x1b0)](){var _0x1ba29d=_0x2ae16c;this[_0x1ba29d(0x22e)]||(this[_0x1ba29d(0x22e)]=!0x0,this['_collabSession'][_0x1ba29d(0x19c)]['pipe'](_0x4dbea4(this['dispose$']))[_0x1ba29d(0x1a9)](_0x468637=>{var _0x1351be=_0x1ba29d;switch(_0x468637){case _0x4d71b3[_0x1351be(0x1f1)]:this[_0x1351be(0x1da)]();break;case _0x4d71b3['ONLINE']:this[_0x1351be(0x21b)]();break;}}),this[_0x1ba29d(0x208)][_0x1ba29d(0x209)][_0x1ba29d(0x200)](_0x4dbea4(this[_0x1ba29d(0x227)]))[_0x1ba29d(0x1a9)](_0x15ff75=>{var _0x30dc3a=_0x1ba29d;const {eventID:_0x3da848}=_0x15ff75;switch(_0x3da848){case _0x3d2fa7[_0x30dc3a(0x188)]:this[_0x30dc3a(0x192)](_0x15ff75);break;case _0x3d2fa7[_0x30dc3a(0x20b)]:this[_0x30dc3a(0x1ee)](_0x15ff75);break;case _0x3d2fa7[_0x30dc3a(0x193)]:this[_0x30dc3a(0x1f3)]();break;case _0x3d2fa7[_0x30dc3a(0x1c6)]:this[_0x30dc3a(0x203)](_0x15ff75);break;}}));}[_0x2ae16c(0x1c5)](){var _0x4f4765=_0x2ae16c;this['_collabSession'][_0x4f4765(0x196)]({'eventID':_0x3d2fa7['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4f4765(0x191)],'userID':this['_collabSession'][_0x4f4765(0x215)]()}},this[_0x4f4765(0x191)]);}[_0x2ae16c(0x201)](){var _0x13fdf9=_0x2ae16c;this['_status']===_0x13fdf9(0x220)&&(this[_0x13fdf9(0x1f0)][_0x13fdf9(0x228)](_0x13fdf9(0x1df)),this[_0x13fdf9(0x208)][_0x13fdf9(0x196)]({'eventID':_0x3d2fa7[_0x13fdf9(0x193)],'data':{'unitID':this[_0x13fdf9(0x191)]}},this['_unitID']));}[_0x2ae16c(0x1ec)](){var _0x21d8c5=_0x2ae16c;this[_0x21d8c5(0x189)]===_0x21d8c5(0x225)&&(this[_0x21d8c5(0x1f0)]['next'](_0x21d8c5(0x1bd)),this[_0x21d8c5(0x1e9)]());}[_0x2ae16c(0x230)](){var _0x3914cf=_0x2ae16c;this[_0x3914cf(0x189)]==='following'&&this[_0x3914cf(0x1aa)]();}[_0x2ae16c(0x192)](_0x6ebcf2){var _0xcb5cc6=_0x2ae16c;const {presenter:_0x546c64}=_0x6ebcf2['data'],_0x2eaf73=this[_0xcb5cc6(0x208)][_0xcb5cc6(0x215)]();this[_0xcb5cc6(0x1d8)]=_0x546c64,_0x546c64===_0x2eaf73?(this['_stopFollowing'](),this[_0xcb5cc6(0x1e5)]()):this[_0xcb5cc6(0x189)]!==_0xcb5cc6(0x225)&&(this[_0xcb5cc6(0x18e)](),this[_0xcb5cc6(0x1e9)]());}[_0x2ae16c(0x1e6)](){var _0x1258b2=_0x2ae16c;const _0x4a09e8={'eventID':_0x3d2fa7[_0x1258b2(0x1d3)]};this['_collabSession'][_0x1258b2(0x196)](_0x4a09e8,this[_0x1258b2(0x191)]);}[_0x2ae16c(0x1f3)](){var _0x17ceee=_0x2ae16c;this['_presenter']=null,this['_status']!==_0x17ceee(0x220)&&this['_beIdle']();}['_handleNewChangeSets'](_0x597ce8){var _0x451583=_0x2ae16c;if(this[_0x451583(0x189)]===_0x451583(0x1bd)&&this[_0x451583(0x1d8)]===_0x597ce8[_0x451583(0x1f5)]['memberID']){const _0x508eea=_0x5e0ea2(_0x597ce8[_0x451583(0x1f5)])['mutations'][_0x451583(0x197)]()[_0x451583(0x1f4)](_0x39dbb9=>_0x39dbb9['id']===_0x2adb2e['id']);if(_0x508eea){const _0xb111ea=_0x508eea[_0x451583(0x224)][_0x451583(0x219)],_0x107f59=_0x508eea[_0x451583(0x224)]['sheet']['id'];setTimeout(()=>{var _0x3fb99e=_0x451583;this['_commandService'][_0x3fb99e(0x18c)](_0x156019['id'],{'unitId':_0xb111ea,'subUnitId':_0x107f59},{'fromCollab':!0x0});});}}}[_0x2ae16c(0x1e5)](){var _0x2bae0c=_0x2ae16c;this['_status$'][_0x2bae0c(0x228)]('presenting');const _0x8158f=new Map(),_0x49a61b=this[_0x2bae0c(0x1be)]=new _0x2221d0();_0x49a61b['add'](_0x38901e(()=>{var _0x2217bb=_0x2bae0c;_0x8158f[_0x2217bb(0x226)](_0xf9f025=>_0xf9f025[_0x2217bb(0x235)]()),_0x8158f[_0x2217bb(0x20d)]();})),_0x49a61b['add'](this[_0x2bae0c(0x1ca)][_0x2bae0c(0x22c)](_0x340898=>{var _0xcc711e=_0x2bae0c,_0xa3aac9;if(_0x340898['type']!==_0x25c528[_0xcc711e(0x1a2)]||!this[_0xcc711e(0x1f2)][_0xcc711e(0x1a8)](_0x340898['id']))return;const {id:_0x1aeed9}=_0x340898;let _0x749247;_0x8158f[_0xcc711e(0x19b)](_0x1aeed9)?_0x749247=_0x8158f[_0xcc711e(0x1eb)](_0x1aeed9):(_0x749247=new _0x26d562(),_0x8158f[_0xcc711e(0x202)](_0x1aeed9,_0x749247),_0x749247[_0xcc711e(0x200)](_0xa3d9ff((_0xa3aac9=this[_0xcc711e(0x205)][_0xcc711e(0x1cf)](Pe))!=null?_0xa3aac9:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x37d15e=>{var _0x5be08d=_0xcc711e;this['_collabSession'][_0x5be08d(0x196)]({'eventID':_0x3d2fa7['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5be08d(0x191)],'operations':{[_0x37d15e['id']]:{'id':_0x37d15e['id'],'params':JSON['stringify'](_0x37d15e['params'])}}}},this['_unitID']);})),_0x749247[_0xcc711e(0x228)](_0x340898);})),this['_liveShareService'][_0x2bae0c(0x1c9)](this[_0x2bae0c(0x191)])[_0x2bae0c(0x226)](_0x79848b=>this[_0x2bae0c(0x208)][_0x2bae0c(0x196)]({'eventID':_0x3d2fa7[_0x2bae0c(0x20b)],'data':{'unitID':this[_0x2bae0c(0x191)],'operations':{[_0x79848b['id']]:{'id':_0x79848b['id'],'params':JSON['stringify'](_0x79848b[_0x2bae0c(0x224)])}}}},this[_0x2bae0c(0x191)]));}[_0x2ae16c(0x18e)](){var _0x2b9b0a=_0x2ae16c,_0x5472d0;this[_0x2b9b0a(0x1f0)]['next'](_0x2b9b0a(0x1df)),(_0x5472d0=this[_0x2b9b0a(0x1be)])==null||_0x5472d0['dispose'](),this[_0x2b9b0a(0x1be)]=null;}[_0x2ae16c(0x1e9)](){var _0x5e1154=_0x2ae16c,_0x3b39ce;(_0x3b39ce=this[_0x5e1154(0x1be)])==null||_0x3b39ce[_0x5e1154(0x1b8)](),this[_0x5e1154(0x1f0)][_0x5e1154(0x228)]('following');}[_0x2ae16c(0x1d2)](){var _0x344364=_0x2ae16c,_0x3afb1c;this['_status$'][_0x344364(0x228)]('idle'),(_0x3afb1c=this['_commandDisposable'])==null||_0x3afb1c[_0x344364(0x1b8)](),this[_0x344364(0x1be)]=null;}[_0x2ae16c(0x1aa)](){var _0x133a84=_0x2ae16c,_0xcf13b2;this[_0x133a84(0x1f0)][_0x133a84(0x228)](_0x133a84(0x225)),(_0xcf13b2=this[_0x133a84(0x1be)])==null||_0xcf13b2[_0x133a84(0x1b8)]();}[_0x2ae16c(0x1ee)](_0x31dd84){var _0x280522=_0x2ae16c;if([_0x280522(0x220),'not-following',_0x280522(0x233)][_0x280522(0x1b3)](this[_0x280522(0x189)])||!_0x31dd84[_0x280522(0x1f5)][_0x280522(0x21d)]||_0x31dd84['data']['presenter']===this['_collabSession'][_0x280522(0x215)]())return;this['_status']===_0x280522(0x1df)&&this[_0x280522(0x1e9)]();const _0x1c588e=_0x31dd84[_0x280522(0x1f5)][_0x280522(0x1ac)];Object[_0x280522(0x1ff)](_0x1c588e)[_0x280522(0x226)](_0x4bad81=>{var _0x27d4e6=_0x280522;this['_commandService'][_0x27d4e6(0x18c)](_0x4bad81['id'],_0x4bad81['params']?JSON['parse'](_0x4bad81[_0x27d4e6(0x224)]):null,{'fromCollab':!0x0});});}[_0x2ae16c(0x1da)](){var _0x38479d=_0x2ae16c,_0x5827fc;this[_0x38479d(0x1f0)][_0x38479d(0x228)](_0x38479d(0x233)),(_0x5827fc=this[_0x38479d(0x1be)])==null||_0x5827fc[_0x38479d(0x1b8)]();}['_handleOnline'](){var _0x4ef888=_0x2ae16c;this['_status$'][_0x4ef888(0x228)](_0x4ef888(0x1df)),this['_fetchOperations']();}};C=Z([f(0x2,_0x1ad72f),f(0x3,_0x593737(L)),f(0x4,_0x560e7e)],C);function Te(){var _0x270f9c=_0x2ae16c;const _0x366ceb=_0x1d89de(I),_0x1db121=_0x1d89de(_0x1a7ea1),_0x111726=_0x19ab69(()=>_0x1db121[_0x270f9c(0x21c)](_0x42ee76[_0x270f9c(0x18b)]),void 0x0,!0x1,[]),[_0x1a154d,_0x27e377]=_0x2c2ba0(null),[_0x32735b,_0x4a9be2]=_0x2c2ba0(h[_0x270f9c(0x1de)]),_0x473a86=_0x19b438(null);return _0x5d5c39(()=>(_0x111726&&_0x366ceb[_0x270f9c(0x1a3)](_0x111726[_0x270f9c(0x1f9)]())[_0x270f9c(0x206)](_0x4c87e0=>{var _0x510372=_0x270f9c;_0x27e377(_0x4c87e0),_0x473a86[_0x510372(0x1d7)]=_0x4c87e0[_0x510372(0x18d)][_0x510372(0x1a9)](_0x5bbbcc=>{_0x4a9be2(_0x5bbbcc);});}),()=>{var _0x12611d=_0x270f9c,_0x382f64;(_0x382f64=_0x473a86['current'])==null||_0x382f64[_0x12611d(0x1ed)](),_0x473a86[_0x12611d(0x1d7)]=null;}),[_0x111726,_0x366ceb]),_0x1a154d?_0xa8e486(_0x524d08,{'align':_0x270f9c(0x1cd),'disabled':_0x32735b===h[_0x270f9c(0x1f1)],'className':_0x270f9c(0x1a5),'overlay':_0xa8e486($e,{'status':_0x32735b,'coordinator':_0x1a154d}),'children':_0xa8e486(_0x270f9c(0x1fe),{'className':_0x4589dc(_0x270f9c(0x216),{'univer-cursor-not-allowed':_0x32735b===h[_0x270f9c(0x1f1)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x32735b!==h['OFFLINE']}),'type':_0x270f9c(0x1fe),'children':_0xa8e486(B,{'className':'univer-size-4'})})}):null;}function $e(_0x4361de){var _0x188f47=_0x2ae16c;const {status:_0xe43e89,coordinator:_0x415664}=_0x4361de;switch(_0xe43e89){case h[_0x188f47(0x1de)]:return _0xa8e486(Fe,{'coordinator':_0x415664});case h['FOLLOWING']:return _0xa8e486(He,{'coordinator':_0x415664});case h[_0x188f47(0x1d4)]:return _0xa8e486(je,{'coordinator':_0x415664});case h['OFFLINE']:return _0xa8e486(Ve,{});case h[_0x188f47(0x19e)]:return _0xa8e486(Ue,{'coordinator':_0x415664});default:return null;}}function Fe(_0x1e3967){var _0x3be6d6=_0x2ae16c;const {coordinator:_0x32f419}=_0x1e3967;return _0x1f8228(_0xa79dd,{'children':[_0xa8e486(_0x3be6d6(0x238),{'className':_0x3be6d6(0x210),'children':'Present\x20this\x20document'}),_0xa8e486(_0x2cd243,{'onClick':()=>_0x32f419[_0x3be6d6(0x1c5)](),'children':_0x3be6d6(0x22a)})]});}function He(_0x1b6d8c){var _0x24e68c=_0x2ae16c;const {coordinator:_0x3eadb2}=_0x1b6d8c;return _0x1f8228(_0xa79dd,{'children':[_0xa8e486('div',{'className':_0x24e68c(0x210),'children':_0x24e68c(0x22f)}),_0xa8e486(_0x2cd243,{'onClick':()=>_0x3eadb2[_0x24e68c(0x230)](),'children':_0x24e68c(0x19f)})]});}function je(_0x18c8d3){var _0x25dade=_0x2ae16c;const {coordinator:_0x543bc4}=_0x18c8d3;return _0x1f8228(_0xa79dd,{'children':[_0xa8e486(_0x25dade(0x238),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0xa8e486(_0x2cd243,{'variant':_0x25dade(0x1f8),'onClick':()=>_0x543bc4[_0x25dade(0x1ec)](),'children':_0x25dade(0x221)})]});}function Ue(_0x278160){var _0x35ca53=_0x2ae16c;const {coordinator:_0xb102b2}=_0x278160;return _0x1f8228(_0xa79dd,{'children':[_0xa8e486(_0x35ca53(0x238),{'className':_0x35ca53(0x210),'children':'You\x27re\x20presenting\x20the\x20document'}),_0xa8e486(_0x2cd243,{'variant':_0x35ca53(0x1b7),'onClick':()=>_0xb102b2['stopPresenting'](),'children':_0x35ca53(0x204)})]});}function Ve(){var _0x6db873=_0x2ae16c;return _0xa8e486(_0xa79dd,{'children':_0x6db873(0x1ef)});}var Me=Object[_0x2ae16c(0x1c7)],ke=(_0x578e67,_0x32fb8a,_0x4671da,_0x255013)=>{var _0x4a4485=_0x2ae16c;for(var _0xb9955f=_0x255013>0x1?void 0x0:_0x255013?Me(_0x32fb8a,_0x4671da):_0x32fb8a,_0x2ecdd8=_0x578e67[_0x4a4485(0x1d1)]-0x1,_0x266d4a;_0x2ecdd8>=0x0;_0x2ecdd8--)(_0x266d4a=_0x578e67[_0x2ecdd8])&&(_0xb9955f=_0x266d4a(_0xb9955f)||_0xb9955f);return _0xb9955f;},$=(_0x464c7c,_0x3518fd)=>(_0xe7439e,_0x5b6234)=>_0x3518fd(_0xe7439e,_0x5b6234,_0x464c7c);let b=class extends _0x2ccbb9{constructor(_0x2ef606,_0x397593){var _0x28636e=_0x2ae16c;super(),this['_injector']=_0x2ef606,this['_uiPartsService']=_0x397593,this[_0x28636e(0x1e2)]();}[_0x2ae16c(0x1e2)](){var _0x2cfd3e=_0x2ae16c;this[_0x2cfd3e(0x199)](this[_0x2cfd3e(0x1b5)][_0x2cfd3e(0x207)](_0x596006['HEADER_MENU'],()=>_0x9eed15(Te,this[_0x2cfd3e(0x23a)])));}};b=ke([$(0x0,_0x593737(_0xe7680d)),$(0x1,_0x5f57dd)],b);var Ge=Object[_0x2ae16c(0x1a6)],We=Object[_0x2ae16c(0x1c7)],Ye=(_0x166beb,_0x3e1a19,_0x166ed0)=>_0x3e1a19 in _0x166beb?Ge(_0x166beb,_0x3e1a19,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x166ed0}):_0x166beb[_0x3e1a19]=_0x166ed0,Be=(_0x4c07a7,_0x294604,_0x57ddd7,_0x4cf621)=>{var _0x3adfa0=_0x2ae16c;for(var _0x2fcda0=_0x4cf621>0x1?void 0x0:_0x4cf621?We(_0x294604,_0x57ddd7):_0x294604,_0x4fd524=_0x4c07a7[_0x3adfa0(0x1d1)]-0x1,_0x5d60c9;_0x4fd524>=0x0;_0x4fd524--)(_0x5d60c9=_0x4c07a7[_0x4fd524])&&(_0x2fcda0=_0x5d60c9(_0x2fcda0)||_0x2fcda0);return _0x2fcda0;},F=(_0x10f85c,_0x4f97cd)=>(_0x2035bb,_0x50b9d2)=>_0x4f97cd(_0x2035bb,_0x50b9d2,_0x10f85c),J=(_0xfc3a84,_0x4ec3e0,_0x1b3036)=>Ye(_0xfc3a84,typeof _0x4ec3e0!=_0x2ae16c(0x1b4)?_0x4ec3e0+'':_0x4ec3e0,_0x1b3036);const Ze=_0x2ae16c(0x194);let O=class extends _0x463199{constructor(_0xf2db2d=T,_0x1daa97,_0x4f9231){var _0x3b06d9=_0x2ae16c;super(),this[_0x3b06d9(0x22d)]=_0xf2db2d,this[_0x3b06d9(0x23a)]=_0x1daa97,this[_0x3b06d9(0x205)]=_0x4f9231;const {..._0x47819c}=_0x54fc87({},T,this[_0x3b06d9(0x22d)]);this['_configService'][_0x3b06d9(0x19d)](Oe,_0x47819c);}[_0x2ae16c(0x22b)](){var _0x446671=_0x2ae16c;_0x3f2cd6(this['_injector'],_0x43b81e([[L],[I],[m],[b]],this['_config'][_0x446671(0x1a4)])),_0x5144c9(this[_0x446671(0x23a)],[[m]]);}[_0x2ae16c(0x21a)](){var _0x49194e=_0x2ae16c;_0x5144c9(this[_0x49194e(0x23a)],[[b]]);}};J(O,'type',_0x42ee76[_0x2ae16c(0x1c8)]),J(O,_0x2ae16c(0x1ab),Ze),O=Be([_0x46cf58(_0x27f278),F(0x1,_0x593737(_0xe7680d)),F(0x2,_0x1ad72f)],O);function _0x5400(){var _0x307fac=['live-share-icon','assign','button','values','pipe','stopPresenting','set','_handleNewChangeSets','Stop\x20presenting','_configService','then','registerComponent','_collabSession','event$','defIds','LIVESHARE_OPERATION','className','clear','getTypeOfUnitAdded$','evenodd','univer-w-full\x20univer-mb-3\x20univer-text-sm','indexOf','colorChannel1','attrs','map','getMemberID','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','SAME_OPERATION_SHARE_INTERVAL','_sharedOperations','unitId','onRendered','_handleOnline','getCurrentTypeOfUnit$','presenter','tag','700092xupCNK','presenting','Start\x20following','registerSharedOperation','use','params','not-following','forEach','dispose$','next','from','Start','onStarting','onCommandExecuted','_config','_init','You\x27re\x20following\x20the\x20presenter','stopFollowing','substring','extend','offline','currentColor','complete','none','requireSession','div','xlink:href','_injector','LIVESHARE_NEW_HOST','_status','_univerInstanceService','UNIVER_SHEET','executeCommand','status$','_stopPresenting','_entities','1128128xROgEQ','_unitID','_handleNewHost','LIVESHARE_TERMINATE','UNIVER_LIVE_SHARE_PLUGIN','createInstance','send','reverse','propertyIsEnumerable','disposeWithMe','entries','has','sessionStatus$','setConfig','PRESENTING','Stop\x20following','asObservable','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','OPERATION','getLiveShareCoordinator','override','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','defineProperty','hasOwnProperty','shouldShareOperation','subscribe','_stopFollowing','pluginName','operations','function','replace','_startLiveShareCoordinator','init','apply','834608QrcUCx','includes','symbol','_uiPartsService','1512696knbjby','default','dispose','univerjs-icon\x20univerjs-icon-','getOwnPropertySymbols','icon','156177zJwaFO','following','_commandDisposable','128567tMYgxT','url(#$1','FOLLOWING','fill','live-share.config','prototype','tryStartPresenting','NEW_CHANGESETS','getOwnPropertyDescriptor','UNIVER_UNKNOWN','getInitialStates','_commandService','add','http://www.w3.org/2000/svg','end','displayName','getConfig','delete','length','_beIdle','LIVESHARE_FETCH_OPERATIONS','NOT_FOLLOWING','children','109992AXBiPy','current','_presenter','string','_handleOffline','mask','call','getTypeOfUnitDisposed$','IDLE','idle','idSuffix','path','_mountLiveShare','0\x200\x2017\x2017','160qfxzIe','_startPresenting','_fetchOperations','toString','1em','_startFollowing','_reporters','get','startFollowing','unsubscribe','_handleOperation','You\x27are\x20offline.','_status$','OFFLINE','_liveShareService','_handleTerminate','find','data','concat','_collabSessionService','text','getUnitId','LiveShareIcon','56RRufVu'];_0x5400=function(){return _0x307fac;};return _0x5400();}export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x3a0295,_0xa96d5f){var _0x147a03=_0x551c,_0x3f15a0=_0x3a0295();while(!![]){try{var _0x33a802=-parseInt(_0x147a03(0xcd))/0x1*(-parseInt(_0x147a03(0x135))/0x2)+parseInt(_0x147a03(0x107))/0x3+parseInt(_0x147a03(0xd9))/0x4+parseInt(_0x147a03(0xc5))/0x5*(parseInt(_0x147a03(0x96))/0x6)+-parseInt(_0x147a03(0x11e))/0x7+-parseInt(_0x147a03(0x113))/0x8+parseInt(_0x147a03(0x120))/0x9;if(_0x33a802===_0xa96d5f)break;else _0x3f15a0['push'](_0x3f15a0['shift']());}catch(_0x3b0385){_0x3f15a0['push'](_0x3f15a0['shift']());}}}(_0x2e9b,0x5dd44),function(_0x53ed2e,_0x2cd35d){var _0xec5b5c=_0x551c;typeof exports==_0xec5b5c(0x16b)&&typeof module<'u'?_0x2cd35d(exports,require(_0xec5b5c(0xf1)),require('@univerjs/core'),require(_0xec5b5c(0x169)),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require(_0xec5b5c(0x14b)),require(_0xec5b5c(0xe1)),require(_0xec5b5c(0xeb)),require(_0xec5b5c(0x131)),require(_0xec5b5c(0x164)),require(_0xec5b5c(0xe7))):typeof define==_0xec5b5c(0x106)&&define[_0xec5b5c(0x15a)]?define([_0xec5b5c(0x89),'@univerjs-pro/collaboration-client',_0xec5b5c(0xff),_0xec5b5c(0x169),_0xec5b5c(0x124),_0xec5b5c(0xca),_0xec5b5c(0x14b),'@univerjs/design',_0xec5b5c(0xeb),'@univerjs-pro/collaboration','rxjs','rxjs/operators'],_0x2cd35d):(_0x53ed2e=typeof globalThis<'u'?globalThis:_0x53ed2e||self,_0x2cd35d(_0x53ed2e['UniverProLiveShare']={},_0x53ed2e[_0xec5b5c(0x155)],_0x53ed2e[_0xec5b5c(0x11d)],_0x53ed2e[_0xec5b5c(0x9f)],_0x53ed2e[_0xec5b5c(0xb5)],_0x53ed2e[_0xec5b5c(0xda)],_0x53ed2e[_0xec5b5c(0x12a)],_0x53ed2e[_0xec5b5c(0x14d)],_0x53ed2e['React'],_0x53ed2e['UniverProCollaboration'],_0x53ed2e[_0xec5b5c(0x164)],_0x53ed2e[_0xec5b5c(0x164)]['operators']));}(this,function(_0x1ad529,_0x86777e,_0x68649f,_0x29cc2f,_0x1d2bd8,_0x467c60,_0x252371,_0x22cbab,_0x1adffa,_0x2e7c2c,_0x2afcdd,_0x2844f8){'use strict';var _0x3abdb7=_0x551c;var _0x3a4666=Object[_0x3abdb7(0xa7)],_0x23664f=(_0x21c623,_0x2ab4de,_0x1cd2cf)=>_0x2ab4de in _0x21c623?_0x3a4666(_0x21c623,_0x2ab4de,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1cd2cf}):_0x21c623[_0x2ab4de]=_0x1cd2cf,_0x39c852=(_0x4e4741,_0x354f39,_0x5450e1)=>_0x23664f(_0x4e4741,typeof _0x354f39!=_0x3abdb7(0x153)?_0x354f39+'':_0x354f39,_0x5450e1);const _0x5a5348=_0x3abdb7(0x14f),_0x2fd119={};class _0x262dcf extends _0x68649f[_0x3abdb7(0xef)]{constructor(){var _0x183068=_0x3abdb7;super(...arguments),_0x39c852(this,_0x183068(0x157),new Set()),_0x39c852(this,_0x183068(0xfb),new Set());}[_0x3abdb7(0xf5)](_0x28ea65){var _0x24f771=_0x3abdb7;return this[_0x24f771(0x157)][_0x24f771(0x148)](_0x28ea65),_0x68649f[_0x24f771(0x138)](()=>this['_sharedOperations'][_0x24f771(0xa0)](_0x28ea65));}['registerInitialStateReporter'](_0x1c2250){var _0x41f5ee=_0x3abdb7;return this['_reporters'][_0x41f5ee(0x148)](_0x1c2250),_0x68649f[_0x41f5ee(0x138)](()=>this[_0x41f5ee(0xfb)][_0x41f5ee(0xa0)](_0x1c2250));}[_0x3abdb7(0x166)](_0xcdff1e){return this['_sharedOperations']['has'](_0xcdff1e);}['getInitialStates'](_0x2b4897){var _0x2f11e2=_0x3abdb7;return Array[_0x2f11e2(0xe3)](this['_reporters'])['map'](_0x542593=>_0x542593(_0x2b4897));}}var _0xe5bade=Object[_0x3abdb7(0x13d)],_0x17bc3c=(_0x7e8dc8,_0x367aee,_0x5db184,_0x17a1b2)=>{var _0x374ab7=_0x3abdb7;for(var _0x4a3f63=_0x17a1b2>0x1?void 0x0:_0x17a1b2?_0xe5bade(_0x367aee,_0x5db184):_0x367aee,_0x431e52=_0x7e8dc8[_0x374ab7(0xac)]-0x1,_0xdfbcfa;_0x431e52>=0x0;_0x431e52--)(_0xdfbcfa=_0x7e8dc8[_0x431e52])&&(_0x4a3f63=_0xdfbcfa(_0x4a3f63)||_0x4a3f63);return _0x4a3f63;},_0x5829a0=(_0x4d9428,_0x34b8b9)=>(_0x537cc5,_0x46b404)=>_0x34b8b9(_0x537cc5,_0x46b404,_0x4d9428);let _0x3b0a36=class extends _0x68649f['Disposable']{constructor(_0x412701){var _0x1d054e=_0x3abdb7;super(),this[_0x1d054e(0x137)]=_0x412701,this[_0x1d054e(0xd5)]();}[_0x3abdb7(0xd5)](){var _0x4ff5b7=_0x3abdb7;[_0x1d2bd8['SetZoomRatioOperation']['id'],_0x1d2bd8[_0x4ff5b7(0x159)]['id'],_0x29cc2f[_0x4ff5b7(0xb1)]['id']][_0x4ff5b7(0x168)](_0x10b7e1=>{var _0x5712fb=_0x4ff5b7;this[_0x5712fb(0xae)](this[_0x5712fb(0x137)]['registerSharedOperation'](_0x10b7e1));});}};_0x3b0a36=_0x17bc3c([_0x5829a0(0x0,_0x68649f[_0x3abdb7(0xdf)](_0x262dcf))],_0x3b0a36);var _0x5dd2ef=function(){var _0x314868=_0x3abdb7;return _0x5dd2ef=Object[_0x314868(0xb4)]||function(_0x2dafc8){var _0x37e4d9=_0x314868;for(var _0x2d9965,_0x39c07d=0x1,_0x4ef927=arguments[_0x37e4d9(0xac)];_0x39c07d<_0x4ef927;_0x39c07d++){_0x2d9965=arguments[_0x39c07d];for(var _0x30f01a in _0x2d9965)Object['prototype'][_0x37e4d9(0x9b)][_0x37e4d9(0x116)](_0x2d9965,_0x30f01a)&&(_0x2dafc8[_0x30f01a]=_0x2d9965[_0x30f01a]);}return _0x2dafc8;},_0x5dd2ef[_0x314868(0x12f)](this,arguments);},_0x24d504=function(_0x53be78,_0x3b4596){var _0xa93b01=_0x3abdb7,_0x2f95f0={};for(var _0x22c18d in _0x53be78)Object['prototype'][_0xa93b01(0x9b)][_0xa93b01(0x116)](_0x53be78,_0x22c18d)&&_0x3b4596[_0xa93b01(0xfe)](_0x22c18d)<0x0&&(_0x2f95f0[_0x22c18d]=_0x53be78[_0x22c18d]);if(_0x53be78!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x5c6626=0x0,_0x22c18d=Object['getOwnPropertySymbols'](_0x53be78);_0x5c6626<_0x22c18d[_0xa93b01(0xac)];_0x5c6626++)_0x3b4596[_0xa93b01(0xfe)](_0x22c18d[_0x5c6626])<0x0&&Object['prototype'][_0xa93b01(0x109)]['call'](_0x53be78,_0x22c18d[_0x5c6626])&&(_0x2f95f0[_0x22c18d[_0x5c6626]]=_0x53be78[_0x22c18d[_0x5c6626]]);}return _0x2f95f0;},_0x4ef3c0=_0x1adffa[_0x3abdb7(0x127)](function(_0x3703ad,_0x54a929){var _0x13f839=_0x3abdb7,_0x5eefcd=_0x3703ad[_0x13f839(0x15f)],_0x51afba=_0x3703ad['id'],_0x306906=_0x3703ad[_0x13f839(0x94)],_0x423e90=_0x3703ad[_0x13f839(0x12d)],_0x37b51c=_0x24d504(_0x3703ad,['icon','id',_0x13f839(0x94),_0x13f839(0x12d)]),_0x315fb8='univerjs-icon\x20univerjs-icon-'['concat'](_0x51afba,'\x20')['concat'](_0x306906||'')[_0x13f839(0x10f)](),_0x364617=_0x1adffa[_0x13f839(0xb2)]('_'[_0x13f839(0x10e)](_0x5edde5()));return _0x26ab52(_0x5eefcd,''[_0x13f839(0x10e)](_0x51afba),{'defIds':_0x5eefcd[_0x13f839(0x14a)],'idSuffix':_0x364617[_0x13f839(0xc9)]},_0x5dd2ef({'ref':_0x54a929,'className':_0x315fb8},_0x37b51c),_0x423e90);});function _0x26ab52(_0x180c91,_0x572c93,_0x31c597,_0x3a7f29,_0x27f07d){var _0x24ae7c=_0x3abdb7;return _0x1adffa[_0x24ae7c(0x88)](_0x180c91[_0x24ae7c(0xb3)],_0x5dd2ef(_0x5dd2ef({'key':_0x572c93},_0x5aaeb7(_0x180c91,_0x31c597,_0x27f07d)),_0x3a7f29),(_0x375566(_0x180c91,_0x31c597)[_0x24ae7c(0x93)]||[])['map'](function(_0x4c33c0,_0x3e1168){var _0x2b31ed=_0x24ae7c;return _0x26ab52(_0x4c33c0,''[_0x2b31ed(0x10e)](_0x572c93,'-')[_0x2b31ed(0x10e)](_0x180c91[_0x2b31ed(0xb3)],'-')['concat'](_0x3e1168),_0x31c597,void 0x0,_0x27f07d);}));}function _0x5aaeb7(_0x1a25bc,_0x26e47f,_0x51ede3){var _0x41354f=_0x3abdb7,_0x5cd5c8=_0x5dd2ef({},_0x1a25bc['attrs']);_0x51ede3!=null&&_0x51ede3[_0x41354f(0x111)]&&_0x5cd5c8[_0x41354f(0x9d)]===_0x41354f(0x111)&&(_0x5cd5c8[_0x41354f(0x9d)]=_0x51ede3[_0x41354f(0x111)]),_0x1a25bc[_0x41354f(0xb3)]===_0x41354f(0xa9)&&_0x5cd5c8['id']&&(_0x5cd5c8['id']=_0x5cd5c8['id']+_0x26e47f[_0x41354f(0xcc)]),Object[_0x41354f(0xbb)](_0x5cd5c8)[_0x41354f(0x168)](function(_0x25cb5b){var _0x2f8568=_0x41354f,_0x22c9c9=_0x25cb5b[0x0],_0x5921e4=_0x25cb5b[0x1];_0x22c9c9===_0x2f8568(0xa9)&&typeof _0x5921e4==_0x2f8568(0x12c)&&(_0x5cd5c8[_0x22c9c9]=_0x5921e4[_0x2f8568(0xab)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x26e47f[_0x2f8568(0xcc)],')')));});var _0x2303d3=_0x26e47f[_0x41354f(0x14a)];return!_0x2303d3||_0x2303d3[_0x41354f(0xac)]===0x0||(_0x1a25bc[_0x41354f(0xb3)]===_0x41354f(0x161)&&_0x5cd5c8[_0x41354f(0xa8)]&&(_0x5cd5c8[_0x41354f(0xa8)]=_0x5cd5c8[_0x41354f(0xa8)]+_0x26e47f[_0x41354f(0xcc)]),Object['entries'](_0x5cd5c8)[_0x41354f(0x168)](function(_0x2ba5eb){var _0x488e33=_0x41354f,_0x1ff48e=_0x2ba5eb[0x0],_0x1fffd4=_0x2ba5eb[0x1];typeof _0x1fffd4==_0x488e33(0x12c)&&(_0x5cd5c8[_0x1ff48e]=_0x1fffd4[_0x488e33(0xab)](/url\(#(.*)\)/,_0x488e33(0xb9)['concat'](_0x26e47f[_0x488e33(0xcc)],')')));})),_0x5cd5c8;}function _0x375566(_0x2ad3c9,_0xf8ae26){var _0x9e980c=_0x3abdb7,_0x4f3a23,_0x12ab14=_0xf8ae26[_0x9e980c(0x14a)];return!_0x12ab14||_0x12ab14[_0x9e980c(0xac)]===0x0?_0x2ad3c9:_0x2ad3c9['tag']==='defs'&&(!((_0x4f3a23=_0x2ad3c9[_0x9e980c(0x93)])===null||_0x4f3a23===void 0x0)&&_0x4f3a23[_0x9e980c(0xac)])?_0x5dd2ef(_0x5dd2ef({},_0x2ad3c9),{'children':_0x2ad3c9['children'][_0x9e980c(0x139)](function(_0xadb1ab){var _0x1cb318=_0x9e980c;return typeof _0xadb1ab[_0x1cb318(0x83)]['id']==_0x1cb318(0x12c)&&_0x12ab14&&_0x12ab14[_0x1cb318(0x102)](_0xadb1ab[_0x1cb318(0x83)]['id'])?_0x5dd2ef(_0x5dd2ef({},_0xadb1ab),{'attrs':_0x5dd2ef(_0x5dd2ef({},_0xadb1ab['attrs']),{'id':_0xadb1ab[_0x1cb318(0x83)]['id']+_0xf8ae26[_0x1cb318(0xcc)]})}):_0xadb1ab;})}):_0x2ad3c9;}function _0x5edde5(){var _0x2e8545=_0x3abdb7;return Math['random']()[_0x2e8545(0xcf)](0x24)[_0x2e8545(0x144)](0x2,0x8);}_0x4ef3c0[_0x3abdb7(0xa4)]=_0x3abdb7(0xf3);var _0x589cf3={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3abdb7(0x90),'viewBox':_0x3abdb7(0x86),'width':'1em','height':_0x3abdb7(0x149)},'children':[{'tag':_0x3abdb7(0x146),'attrs':{'fill':'currentColor','d':_0x3abdb7(0x92)}},{'tag':_0x3abdb7(0x146),'attrs':{'fill':_0x3abdb7(0x98),'d':_0x3abdb7(0xa6),'fillRule':_0x3abdb7(0x130),'clipRule':_0x3abdb7(0x130)}}]},_0x34924a=_0x1adffa[_0x3abdb7(0x127)](function(_0x4df344,_0x5adcc){var _0x2398f1=_0x3abdb7;return _0x1adffa[_0x2398f1(0x88)](_0x4ef3c0,Object['assign']({},_0x4df344,{'id':_0x2398f1(0xe2),'ref':_0x5adcc,'icon':_0x589cf3}));});_0x34924a[_0x3abdb7(0xa4)]='LiveShareIcon';var _0x22e6d5=Object[_0x3abdb7(0x13d)],_0x4e5da2=(_0x14c557,_0x33a6ae,_0x457b09,_0x1d305f)=>{var _0x42b3df=_0x3abdb7;for(var _0x1a02f9=_0x1d305f>0x1?void 0x0:_0x1d305f?_0x22e6d5(_0x33a6ae,_0x457b09):_0x33a6ae,_0x32b637=_0x14c557[_0x42b3df(0xac)]-0x1,_0x311be9;_0x32b637>=0x0;_0x32b637--)(_0x311be9=_0x14c557[_0x32b637])&&(_0x1a02f9=_0x311be9(_0x1a02f9)||_0x1a02f9);return _0x1a02f9;},_0x57492a=(_0x2cde5a,_0x281868)=>(_0x32aa6c,_0x30cafa)=>_0x281868(_0x32aa6c,_0x30cafa,_0x2cde5a);_0x1ad529['LiveShareController']=class extends _0x68649f[_0x3abdb7(0x119)]{constructor(_0x19cdad,_0x234a54,_0x555a74){var _0x38075a=_0x3abdb7;super(),_0x39c852(this,_0x38075a(0xa3),new Map()),(this['_univerInstanceService']=_0x19cdad,this[_0x38075a(0xde)]=_0x234a54,this[_0x38075a(0x165)]=_0x555a74,this[_0x38075a(0xd5)]());}async[_0x3abdb7(0x16c)](_0x509716){var _0x38dc23=_0x3abdb7;return this[_0x38dc23(0xa3)][_0x38dc23(0xcb)](_0x509716)||await this[_0x38dc23(0x150)](_0x509716),this[_0x38dc23(0xa3)][_0x38dc23(0x10a)](_0x509716);}['_init'](){var _0x1480d8=_0x3abdb7;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x68649f[_0x1480d8(0x16a)]['UNIVER_SHEET'])['pipe'](_0x2844f8[_0x1480d8(0xfd)](this['dispose$']))[_0x1480d8(0x122)](async _0x491c0f=>{var _0x298f1c=_0x1480d8;const _0x562311=_0x491c0f[_0x298f1c(0xbc)]();this['_entities']['has'](_0x562311)||this[_0x298f1c(0x150)](_0x562311);}),this[_0x1480d8(0x16e)]['getTypeOfUnitDisposed$'](_0x68649f[_0x1480d8(0x16a)][_0x1480d8(0xbd)])[_0x1480d8(0x8f)](_0x2844f8[_0x1480d8(0xfd)](this[_0x1480d8(0x84)]))[_0x1480d8(0x122)](_0x59938c=>{var _0x30f1b8=_0x1480d8;const _0x109575=_0x59938c[_0x30f1b8(0xbc)](),_0x2cff9f=this['_entities'][_0x30f1b8(0x10a)](_0x109575);_0x2cff9f==null||_0x2cff9f[_0x30f1b8(0x11c)]();});}async[_0x3abdb7(0x150)](_0x1e8276){var _0x584df3=_0x3abdb7;const _0x46eccf=await this[_0x584df3(0x165)][_0x584df3(0x118)](_0x1e8276),_0x3cf11f=this[_0x584df3(0xde)]['createInstance'](_0x1ad529[_0x584df3(0xc1)],_0x1e8276,_0x46eccf);return _0x3cf11f['init'](),this[_0x584df3(0xa3)][_0x584df3(0xba)](_0x1e8276,_0x3cf11f),_0x3cf11f;}},_0x1ad529['LiveShareController']=_0x4e5da2([_0x57492a(0x0,_0x68649f[_0x3abdb7(0x15b)]),_0x57492a(0x1,_0x68649f[_0x3abdb7(0xdf)](_0x68649f['Injector'])),_0x57492a(0x2,_0x68649f[_0x3abdb7(0xdf)](_0x86777e['CollaborationSessionService']))],_0x1ad529[_0x3abdb7(0xdd)]);var _0x5587fe=(_0x266981=>(_0x266981['OFFLINE']=_0x3abdb7(0xea),_0x266981[_0x3abdb7(0x154)]='idle',_0x266981['FOLLOWING']=_0x3abdb7(0x121),_0x266981[_0x3abdb7(0x167)]=_0x3abdb7(0x145),_0x266981[_0x3abdb7(0x117)]=_0x3abdb7(0x125),_0x266981))(_0x5587fe||{});const _0x4614fb=_0x3abdb7(0xb0),_0x27a8fb=0xc8;_0x1ad529[_0x3abdb7(0xc1)]=class extends _0x68649f[_0x3abdb7(0x119)]{constructor(_0x560980,_0x2db9ca,_0x4e937b,_0x2bcd4e,_0x41fcda){var _0x5a7971=_0x3abdb7;super(),_0x39c852(this,'_status$',new _0x2afcdd['BehaviorSubject'](_0x5a7971(0xd2))),_0x39c852(this,_0x5a7971(0x11f),this[_0x5a7971(0xf2)][_0x5a7971(0x13c)]()),_0x39c852(this,_0x5a7971(0xd5),!0x1),_0x39c852(this,_0x5a7971(0xf9),null),_0x39c852(this,_0x5a7971(0x142),null),(this[_0x5a7971(0xc0)]=_0x560980,this[_0x5a7971(0x13e)]=_0x2db9ca,this['_configService']=_0x4e937b,this[_0x5a7971(0x137)]=_0x2bcd4e,this[_0x5a7971(0xe4)]=_0x41fcda);}get[_0x3abdb7(0xfc)](){var _0x1827f3=_0x3abdb7;return this[_0x1827f3(0xf2)][_0x1827f3(0xdb)]();}[_0x3abdb7(0x11c)](){var _0x9ed934=_0x3abdb7,_0x3dd468;(_0x3dd468=this[_0x9ed934(0xf9)])==null||_0x3dd468[_0x9ed934(0x11c)](),this['_status$'][_0x9ed934(0x108)](_0x9ed934(0xd2)),this[_0x9ed934(0xf2)][_0x9ed934(0xfa)]();}[_0x3abdb7(0x85)](){var _0x802d81=_0x3abdb7;this[_0x802d81(0xd5)]||(this[_0x802d81(0xd5)]=!0x0,this[_0x802d81(0x13e)][_0x802d81(0x16d)]['pipe'](_0x2844f8[_0x802d81(0xfd)](this[_0x802d81(0x84)]))[_0x802d81(0x122)](_0x179999=>{var _0x187e28=_0x802d81;switch(_0x179999){case _0x86777e['SessionStatus']['OFFLINE']:this[_0x187e28(0x112)]();break;case _0x86777e['SessionStatus'][_0x187e28(0xd7)]:this[_0x187e28(0x13f)]();break;}}),this['_collabSession'][_0x802d81(0x136)]['pipe'](_0x2844f8[_0x802d81(0xfd)](this[_0x802d81(0x84)]))[_0x802d81(0x122)](_0x4f675b=>{var _0xa422a5=_0x802d81;const {eventID:_0x30835c}=_0x4f675b;switch(_0x30835c){case _0x2e7c2c[_0xa422a5(0xaa)][_0xa422a5(0x10d)]:this[_0xa422a5(0xc3)](_0x4f675b);break;case _0x2e7c2c[_0xa422a5(0xaa)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x4f675b);break;case _0x2e7c2c[_0xa422a5(0xaa)][_0xa422a5(0xe8)]:this[_0xa422a5(0x129)]();break;case _0x2e7c2c[_0xa422a5(0xaa)]['NEW_CHANGESETS']:this[_0xa422a5(0x13b)](_0x4f675b);break;}}));}[_0x3abdb7(0x160)](){var _0x76a1b0=_0x3abdb7;this[_0x76a1b0(0x13e)][_0x76a1b0(0xa1)]({'eventID':_0x2e7c2c[_0x76a1b0(0xaa)][_0x76a1b0(0x87)],'data':{'unitID':this['_unitID'],'userID':this[_0x76a1b0(0x13e)]['getMemberID']()}},this['_unitID']);}[_0x3abdb7(0x156)](){var _0x1cb989=_0x3abdb7;this[_0x1cb989(0xfc)]===_0x1cb989(0x125)&&(this[_0x1cb989(0xf2)][_0x1cb989(0x108)](_0x1cb989(0xd2)),this['_collabSession']['send']({'eventID':_0x2e7c2c[_0x1cb989(0xaa)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x1cb989(0xc0)]}},this['_unitID']));}['startFollowing'](){var _0x4c3082=_0x3abdb7;this[_0x4c3082(0xfc)]===_0x4c3082(0x145)&&(this[_0x4c3082(0xf2)][_0x4c3082(0x108)](_0x4c3082(0x121)),this[_0x4c3082(0xe6)]());}[_0x3abdb7(0x133)](){var _0x503490=_0x3abdb7;this[_0x503490(0xfc)]===_0x503490(0x121)&&this[_0x503490(0xe5)]();}['_handleNewHost'](_0x21190b){var _0x3862ce=_0x3abdb7;const {presenter:_0x54f01b}=_0x21190b[_0x3862ce(0x11a)],_0x51cdf8=this[_0x3862ce(0x13e)]['getMemberID']();this['_presenter']=_0x54f01b,_0x54f01b===_0x51cdf8?(this['_stopFollowing'](),this[_0x3862ce(0xb8)]()):this[_0x3862ce(0xfc)]!==_0x3862ce(0x145)&&(this['_stopPresenting'](),this[_0x3862ce(0xe6)]());}['_fetchOperations'](){var _0x1ef479=_0x3abdb7;const _0x36afa7={'eventID':_0x2e7c2c[_0x1ef479(0xaa)][_0x1ef479(0x163)]};this[_0x1ef479(0x13e)]['send'](_0x36afa7,this[_0x1ef479(0xc0)]);}['_handleTerminate'](){var _0x5169e0=_0x3abdb7;this[_0x5169e0(0x142)]=null,this['_status']!==_0x5169e0(0x125)&&this[_0x5169e0(0xc8)]();}[_0x3abdb7(0x13b)](_0x9ea404){var _0x128736=_0x3abdb7;if(this[_0x128736(0xfc)]===_0x128736(0x121)&&this[_0x128736(0x142)]===_0x9ea404['data'][_0x128736(0x103)]){const _0x2b1a6d=_0x2e7c2c[_0x128736(0x134)](_0x9ea404[_0x128736(0x11a)])[_0x128736(0xd0)][_0x128736(0x126)]()['find'](_0x753083=>_0x753083['id']===_0x29cc2f[_0x128736(0x151)]['id']);if(_0x2b1a6d){const _0x203bae=_0x2b1a6d[_0x128736(0xf8)][_0x128736(0x104)],_0x1470e=_0x2b1a6d[_0x128736(0xf8)][_0x128736(0x158)]['id'];setTimeout(()=>{var _0x4c132c=_0x128736;this[_0x4c132c(0xe4)][_0x4c132c(0xe9)](_0x29cc2f[_0x4c132c(0xb1)]['id'],{'unitId':_0x203bae,'subUnitId':_0x1470e},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x43c192=_0x3abdb7;this[_0x43c192(0xf2)][_0x43c192(0x108)](_0x43c192(0x125));const _0x47758e=new Map(),_0x84e65f=this[_0x43c192(0xf9)]=new _0x68649f['DisposableCollection']();_0x84e65f[_0x43c192(0x148)](_0x68649f['toDisposable'](()=>{var _0x203f00=_0x43c192;_0x47758e[_0x203f00(0x168)](_0x3d6de3=>_0x3d6de3[_0x203f00(0xfa)]()),_0x47758e['clear']();})),_0x84e65f[_0x43c192(0x148)](this['_commandService'][_0x43c192(0xec)](_0x420847=>{var _0x21f97e=_0x43c192,_0x214793;if(_0x420847['type']!==_0x68649f[_0x21f97e(0xc6)][_0x21f97e(0x10c)]||!this['_liveShareService'][_0x21f97e(0x166)](_0x420847['id']))return;const {id:_0x1e9054}=_0x420847;let _0x25b458;_0x47758e[_0x21f97e(0xcb)](_0x1e9054)?_0x25b458=_0x47758e[_0x21f97e(0x10a)](_0x1e9054):(_0x25b458=new _0x2afcdd[(_0x21f97e(0x128))](),_0x47758e[_0x21f97e(0xba)](_0x1e9054,_0x25b458),_0x25b458[_0x21f97e(0x8f)](_0x2844f8[_0x21f97e(0xd6)]((_0x214793=this[_0x21f97e(0xc2)][_0x21f97e(0x15e)](_0x4614fb))!=null?_0x214793:_0x27a8fb,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x21f97e(0x122)](_0x1fea0c=>{var _0x3bbf98=_0x21f97e;this[_0x3bbf98(0x13e)][_0x3bbf98(0xa1)]({'eventID':_0x2e7c2c[_0x3bbf98(0xaa)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x1fea0c['id']]:{'id':_0x1fea0c['id'],'params':JSON[_0x3bbf98(0xbe)](_0x1fea0c[_0x3bbf98(0xf8)])}}}},this[_0x3bbf98(0xc0)]);})),_0x25b458[_0x21f97e(0x108)](_0x420847);})),this[_0x43c192(0x137)][_0x43c192(0x100)](this['_unitID'])[_0x43c192(0x168)](_0x58af98=>this[_0x43c192(0x13e)]['send']({'eventID':_0x2e7c2c[_0x43c192(0xaa)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x43c192(0xc0)],'operations':{[_0x58af98['id']]:{'id':_0x58af98['id'],'params':JSON['stringify'](_0x58af98[_0x43c192(0xf8)])}}}},this[_0x43c192(0xc0)]));}[_0x3abdb7(0x95)](){var _0xbecdcf=_0x3abdb7,_0x23d906;this[_0xbecdcf(0xf2)][_0xbecdcf(0x108)]('idle'),(_0x23d906=this[_0xbecdcf(0xf9)])==null||_0x23d906[_0xbecdcf(0x11c)](),this[_0xbecdcf(0xf9)]=null;}[_0x3abdb7(0xe6)](){var _0x2d108f=_0x3abdb7,_0x3fcc05;(_0x3fcc05=this[_0x2d108f(0xf9)])==null||_0x3fcc05[_0x2d108f(0x11c)](),this[_0x2d108f(0xf2)]['next'](_0x2d108f(0x121));}['_beIdle'](){var _0x3ab93b=_0x3abdb7,_0x32ccf9;this[_0x3ab93b(0xf2)]['next'](_0x3ab93b(0xd2)),(_0x32ccf9=this[_0x3ab93b(0xf9)])==null||_0x32ccf9[_0x3ab93b(0x11c)](),this[_0x3ab93b(0xf9)]=null;}[_0x3abdb7(0xe5)](){var _0x1a7cc4=_0x3abdb7,_0x8e67e0;this['_status$']['next']('not-following'),(_0x8e67e0=this[_0x1a7cc4(0xf9)])==null||_0x8e67e0[_0x1a7cc4(0x11c)]();}['_handleOperation'](_0x4c828a){var _0x5e24b6=_0x3abdb7;if(['presenting',_0x5e24b6(0x145),_0x5e24b6(0xea)]['includes'](this[_0x5e24b6(0xfc)])||!_0x4c828a['data'][_0x5e24b6(0x9a)]||_0x4c828a[_0x5e24b6(0x11a)][_0x5e24b6(0x9a)]===this[_0x5e24b6(0x13e)][_0x5e24b6(0x14e)]())return;this[_0x5e24b6(0xfc)]===_0x5e24b6(0xd2)&&this[_0x5e24b6(0xe6)]();const _0x28e682=_0x4c828a[_0x5e24b6(0x11a)][_0x5e24b6(0x8e)];Object['values'](_0x28e682)[_0x5e24b6(0x168)](_0x4040ee=>{var _0x2d94f3=_0x5e24b6;this[_0x2d94f3(0xe4)][_0x2d94f3(0xe9)](_0x4040ee['id'],_0x4040ee[_0x2d94f3(0xf8)]?JSON[_0x2d94f3(0x132)](_0x4040ee['params']):null,{'fromCollab':!0x0});});}[_0x3abdb7(0x112)](){var _0x681334=_0x3abdb7,_0x49e3f0;this[_0x681334(0xf2)]['next'](_0x681334(0xea)),(_0x49e3f0=this[_0x681334(0xf9)])==null||_0x49e3f0[_0x681334(0x11c)]();}['_handleOnline'](){var _0x104a4a=_0x3abdb7;this['_status$'][_0x104a4a(0x108)](_0x104a4a(0xd2)),this[_0x104a4a(0x141)]();}},_0x1ad529[_0x3abdb7(0xc1)]=_0x4e5da2([_0x57492a(0x2,_0x68649f[_0x3abdb7(0xf7)]),_0x57492a(0x3,_0x68649f[_0x3abdb7(0xdf)](_0x262dcf)),_0x57492a(0x4,_0x68649f['ICommandService'])],_0x1ad529[_0x3abdb7(0xc1)]);function _0x19d771(){var _0xc629f9=_0x3abdb7;const _0x4c75c6=_0x467c60[_0xc629f9(0x9c)](_0x1ad529[_0xc629f9(0xdd)]),_0x56acee=_0x467c60['useDependency'](_0x68649f[_0xc629f9(0x15b)]),_0x66f85b=_0x467c60[_0xc629f9(0xd8)](()=>_0x56acee['getCurrentTypeOfUnit$'](_0x68649f[_0xc629f9(0x16a)][_0xc629f9(0xbd)]),void 0x0,!0x1,[]),[_0x1086f7,_0x3ae709]=_0x1adffa['useState'](null),[_0x487438,_0x1ca65f]=_0x1adffa['useState'](_0x5587fe[_0xc629f9(0x154)]),_0x456577=_0x1adffa[_0xc629f9(0xb2)](null);return _0x1adffa[_0xc629f9(0x9e)](()=>(_0x66f85b&&_0x4c75c6[_0xc629f9(0x16c)](_0x66f85b['getUnitId']())[_0xc629f9(0xa2)](_0x42c691=>{var _0x10967b=_0xc629f9;_0x3ae709(_0x42c691),_0x456577[_0x10967b(0xc9)]=_0x42c691[_0x10967b(0x11f)]['subscribe'](_0x16d813=>{_0x1ca65f(_0x16d813);});}),()=>{var _0x2ba12a=_0xc629f9,_0x1731cf;(_0x1731cf=_0x456577['current'])==null||_0x1731cf[_0x2ba12a(0x114)](),_0x456577[_0x2ba12a(0xc9)]=null;}),[_0x66f85b,_0x4c75c6]),_0x1086f7?_0x252371[_0xc629f9(0xe0)](_0x22cbab['Dropdown'],{'align':_0xc629f9(0x15d),'disabled':_0x487438===_0x5587fe[_0xc629f9(0x10b)],'className':_0xc629f9(0x105),'overlay':_0x252371[_0xc629f9(0xe0)](_0xac50fb,{'status':_0x487438,'coordinator':_0x1086f7}),'children':_0x252371[_0xc629f9(0xe0)](_0xc629f9(0xbf),{'className':_0x22cbab['clsx'](_0xc629f9(0xc4),{'univer-cursor-not-allowed':_0x487438===_0x5587fe[_0xc629f9(0x10b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x487438!==_0x5587fe[_0xc629f9(0x10b)]}),'type':'button','children':_0x252371['jsx'](_0x34924a,{'className':_0xc629f9(0x162)})})}):null;}function _0xac50fb(_0x16111f){var _0x1f3949=_0x3abdb7;const {status:_0x3ca647,coordinator:_0x213a7f}=_0x16111f;switch(_0x3ca647){case _0x5587fe['IDLE']:return _0x252371[_0x1f3949(0xe0)](_0x127724,{'coordinator':_0x213a7f});case _0x5587fe[_0x1f3949(0xd1)]:return _0x252371[_0x1f3949(0xe0)](_0x241155,{'coordinator':_0x213a7f});case _0x5587fe[_0x1f3949(0x167)]:return _0x252371['jsx'](_0x4beec6,{'coordinator':_0x213a7f});case _0x5587fe[_0x1f3949(0x10b)]:return _0x252371[_0x1f3949(0xe0)](_0x4b8ad4,{});case _0x5587fe[_0x1f3949(0x117)]:return _0x252371[_0x1f3949(0xe0)](_0x3ff057,{'coordinator':_0x213a7f});default:return null;}}function _0x127724(_0x20b49b){var _0x128fcc=_0x3abdb7;const {coordinator:_0x7c83b4}=_0x20b49b;return _0x252371[_0x128fcc(0xd3)](_0x252371[_0x128fcc(0xb6)],{'children':[_0x252371[_0x128fcc(0xe0)](_0x128fcc(0xf4),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x128fcc(0x8a)}),_0x252371['jsx'](_0x22cbab[_0x128fcc(0xdc)],{'onClick':()=>_0x7c83b4[_0x128fcc(0x160)](),'children':_0x128fcc(0xce)})]});}function _0x241155(_0x197d4d){var _0x267516=_0x3abdb7;const {coordinator:_0x4d8c90}=_0x197d4d;return _0x252371['jsxs'](_0x252371[_0x267516(0xb6)],{'children':[_0x252371[_0x267516(0xe0)](_0x267516(0xf4),{'className':_0x267516(0x8b),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x252371[_0x267516(0xe0)](_0x22cbab[_0x267516(0xdc)],{'onClick':()=>_0x4d8c90['stopFollowing'](),'children':_0x267516(0x101)})]});}function _0x4beec6(_0xdeab03){var _0x5d8175=_0x3abdb7;const {coordinator:_0x3eca0b}=_0xdeab03;return _0x252371[_0x5d8175(0xd3)](_0x252371['Fragment'],{'children':[_0x252371['jsx'](_0x5d8175(0xf4),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5d8175(0x143)}),_0x252371[_0x5d8175(0xe0)](_0x22cbab[_0x5d8175(0xdc)],{'variant':'text','onClick':()=>_0x3eca0b['startFollowing'](),'children':_0x5d8175(0x11b)})]});}function _0x3ff057(_0x476159){var _0x356c1b=_0x3abdb7;const {coordinator:_0x421178}=_0x476159;return _0x252371[_0x356c1b(0xd3)](_0x252371[_0x356c1b(0xb6)],{'children':[_0x252371[_0x356c1b(0xe0)]('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x356c1b(0x12e)}),_0x252371[_0x356c1b(0xe0)](_0x22cbab[_0x356c1b(0xdc)],{'variant':'default','onClick':()=>_0x421178[_0x356c1b(0x156)](),'children':_0x356c1b(0x13a)})]});}function _0x4b8ad4(){var _0xbc714a=_0x3abdb7;return _0x252371[_0xbc714a(0xe0)](_0x252371[_0xbc714a(0xb6)],{'children':_0xbc714a(0xed)});}var _0x3d176f=Object[_0x3abdb7(0x13d)],_0x24ba94=(_0x550223,_0x554118,_0x5d297d,_0xc30318)=>{var _0x76b13f=_0x3abdb7;for(var _0x36bf25=_0xc30318>0x1?void 0x0:_0xc30318?_0x3d176f(_0x554118,_0x5d297d):_0x554118,_0x3ad2cf=_0x550223[_0x76b13f(0xac)]-0x1,_0x442a0c;_0x3ad2cf>=0x0;_0x3ad2cf--)(_0x442a0c=_0x550223[_0x3ad2cf])&&(_0x36bf25=_0x442a0c(_0x36bf25)||_0x36bf25);return _0x36bf25;},_0x2d6260=(_0x41ffbe,_0x36c970)=>(_0x2f3c94,_0x46eff7)=>_0x36c970(_0x2f3c94,_0x46eff7,_0x41ffbe);_0x1ad529[_0x3abdb7(0x8d)]=class extends _0x68649f[_0x3abdb7(0xef)]{constructor(_0x37c81e,_0xdc5fb1){var _0x16eb80=_0x3abdb7;super(),this[_0x16eb80(0xde)]=_0x37c81e,this[_0x16eb80(0xee)]=_0xdc5fb1,this[_0x16eb80(0x115)]();}[_0x3abdb7(0x115)](){var _0x84b311=_0x3abdb7;this[_0x84b311(0xae)](this['_uiPartsService'][_0x84b311(0x140)](_0x467c60[_0x84b311(0x123)]['HEADER_MENU'],()=>_0x467c60['connectInjector'](_0x19d771,this[_0x84b311(0xde)])));}},_0x1ad529[_0x3abdb7(0x8d)]=_0x24ba94([_0x2d6260(0x0,_0x68649f['Inject'](_0x68649f['Injector'])),_0x2d6260(0x1,_0x467c60[_0x3abdb7(0xd4)])],_0x1ad529['DesktopLiveShareController']);var _0x4020c5=Object['defineProperty'],_0x96fd49=Object[_0x3abdb7(0x13d)],_0x5af732=(_0x766171,_0x21daf4,_0x48c1ee)=>_0x21daf4 in _0x766171?_0x4020c5(_0x766171,_0x21daf4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48c1ee}):_0x766171[_0x21daf4]=_0x48c1ee,_0x59de7c=(_0x12b4ce,_0x5d5ec2,_0x48e362,_0x499300)=>{var _0x4d753a=_0x3abdb7;for(var _0x31b768=_0x499300>0x1?void 0x0:_0x499300?_0x96fd49(_0x5d5ec2,_0x48e362):_0x5d5ec2,_0x576f1e=_0x12b4ce[_0x4d753a(0xac)]-0x1,_0x4fd68e;_0x576f1e>=0x0;_0x576f1e--)(_0x4fd68e=_0x12b4ce[_0x576f1e])&&(_0x31b768=_0x4fd68e(_0x31b768)||_0x31b768);return _0x31b768;},_0x24aa96=(_0xed7196,_0x51a7eb)=>(_0x3c7d8e,_0x190064)=>_0x51a7eb(_0x3c7d8e,_0x190064,_0xed7196),_0xa1a6be=(_0x2070d6,_0x157fe8,_0x1f1257)=>_0x5af732(_0x2070d6,typeof _0x157fe8!='symbol'?_0x157fe8+'':_0x157fe8,_0x1f1257);const _0x39dfae='UNIVER_LIVE_SHARE_PLUGIN';_0x1ad529[_0x3abdb7(0xad)]=class extends _0x68649f[_0x3abdb7(0x152)]{constructor(_0x1fca22=_0x2fd119,_0x2e0555,_0x4b8123){var _0xebe7f5=_0x3abdb7;super(),this['_config']=_0x1fca22,this['_injector']=_0x2e0555,this['_configService']=_0x4b8123;const {..._0x4db055}=_0x68649f['merge']({},_0x2fd119,this['_config']);this[_0xebe7f5(0xc2)][_0xebe7f5(0xf0)](_0x5a5348,_0x4db055);}[_0x3abdb7(0x91)](){var _0x29d28f=_0x3abdb7;_0x68649f[_0x29d28f(0x99)](this[_0x29d28f(0xde)],_0x68649f[_0x29d28f(0x15c)]([[_0x262dcf],[_0x1ad529[_0x29d28f(0xdd)]],[_0x3b0a36],[_0x1ad529[_0x29d28f(0x8d)]]],this[_0x29d28f(0xaf)][_0x29d28f(0xf6)])),_0x68649f[_0x29d28f(0xc7)](this[_0x29d28f(0xde)],[[_0x3b0a36]]);}[_0x3abdb7(0xa5)](){var _0x4be9f1=_0x3abdb7;_0x68649f[_0x4be9f1(0xc7)](this[_0x4be9f1(0xde)],[[_0x1ad529[_0x4be9f1(0x8d)]]]);}},_0xa1a6be(_0x1ad529[_0x3abdb7(0xad)],_0x3abdb7(0x147),_0x68649f['UniverInstanceType'][_0x3abdb7(0x110)]),_0xa1a6be(_0x1ad529[_0x3abdb7(0xad)],'pluginName',_0x39dfae),_0x1ad529[_0x3abdb7(0xad)]=_0x59de7c([_0x68649f[_0x3abdb7(0x14c)](_0x86777e[_0x3abdb7(0x8c)]),_0x24aa96(0x1,_0x68649f[_0x3abdb7(0xdf)](_0x68649f[_0x3abdb7(0x12b)])),_0x24aa96(0x2,_0x68649f[_0x3abdb7(0xf7)])],_0x1ad529['UniverLiveSharePlugin']),_0x1ad529[_0x3abdb7(0x82)]=_0x19d771,_0x1ad529[_0x3abdb7(0x97)]=_0x262dcf,_0x1ad529[_0x3abdb7(0xb7)]=_0x5587fe,Object[_0x3abdb7(0xa7)](_0x1ad529,Symbol['toStringTag'],{'value':'Module'});}));function _0x551c(_0x32ec8e,_0x7ec9e4){var _0x2e9b76=_0x2e9b();return _0x551c=function(_0x551ce8,_0x474b5d){_0x551ce8=_0x551ce8-0x82;var _0x1cec10=_0x2e9b76[_0x551ce8];return _0x1cec10;},_0x551c(_0x32ec8e,_0x7ec9e4);}function _0x2e9b(){var _0x528ad1=['has','idSuffix','1ZSPfBo','Start','toString','mutations','FOLLOWING','idle','jsxs','IUIPartsService','_init','throttleTime','ONLINE','useObservable','851908Cfpvkz','UniverUi','getValue','Button','LiveShareController','_injector','Inject','jsx','@univerjs/design','live-share-icon','from','_commandService','_stopFollowing','_startFollowing','rxjs/operators','LIVESHARE_TERMINATE','executeCommand','offline','react','onCommandExecuted','You\x27are\x20offline.','_uiPartsService','Disposable','setConfig','@univerjs-pro/collaboration-client','_status$','UniverIcon','div','registerSharedOperation','override','IConfigService','params','_commandDisposable','complete','_reporters','_status','takeUntil','indexOf','@univerjs/core','getInitialStates','Stop\x20following','includes','memberID','unitId','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','function','882531TTKlYB','next','propertyIsEnumerable','get','OFFLINE','OPERATION','LIVESHARE_NEW_HOST','concat','trim','UNIVER_UNKNOWN','colorChannel1','_handleOffline','5466696dXHJVM','unsubscribe','_mountLiveShare','call','PRESENTING','requireSession','RxDisposable','data','Start\x20following','dispose','UniverCore','4237114nEZwnK','status$','3171186zblydC','following','subscribe','BuiltInUIPart','@univerjs/sheets-ui','presenting','reverse','forwardRef','Subject','_handleTerminate','React','Injector','string','extend','You\x27re\x20presenting\x20the\x20document','apply','evenodd','@univerjs-pro/collaboration','parse','stopFollowing','parseProtocolChangeset','722218FNMXiW','event$','_liveShareService','toDisposable','map','Stop\x20presenting','_handleNewChangeSets','asObservable','getOwnPropertyDescriptor','_collabSession','_handleOnline','registerComponent','_fetchOperations','_presenter','You\x27re\x20not\x20following\x20the\x20presenter','substring','not-following','path','type','add','1em','defIds','react/jsx-runtime','DependentOn','UniverDesign','getMemberID','live-share.config','_startLiveShareCoordinator','InsertSheetMutation','Plugin','symbol','IDLE','UniverProCollaborationClient','stopPresenting','_sharedOperations','sheet','SetScrollOperation','amd','IUniverInstanceService','mergeOverrideWithDependencies','end','getConfig','icon','tryStartPresenting','use','univer-size-4','LIVESHARE_FETCH_OPERATIONS','rxjs','_collabSessionService','shouldShareOperation','NOT_FOLLOWING','forEach','@univerjs/sheets','UniverInstanceType','object','getLiveShareCoordinator','sessionStatus$','_univerInstanceService','LiveShare','attrs','dispose$','init','0\x200\x2017\x2017','LIVESHARE_REQUEST_HOST','createElement','exports','Present\x20this\x20document','univer-w-full\x20univer-mb-3\x20univer-text-sm','UniverCollaborationClientPlugin','DesktopLiveShareController','operations','pipe','none','onStarting','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','children','className','_stopPresenting','36mUnZqi','LiveShareService','currentColor','registerDependencies','presenter','hasOwnProperty','useDependency','fill','useEffect','UniverSheets','delete','send','then','_entities','displayName','onRendered','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','defineProperty','xlink:href','mask','CollaborationEvent','replace','length','UniverLiveSharePlugin','disposeWithMe','_config','SAME_OPERATION_SHARE_INTERVAL','SetWorksheetActiveOperation','useRef','tag','assign','UniverSheetsUi','Fragment','LiveShareStatus','_startPresenting','url(#$1','set','entries','getUnitId','UNIVER_SHEET','stringify','button','_unitID','LiveShareCoordinator','_configService','_handleNewHost','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','376955AoHwNs','CommandType','touchDependencies','_beIdle','current','@univerjs/ui'];_0x2e9b=function(){return _0x528ad1;};return _0x2e9b();}
|
|
1
|
+
function _0x1156(_0x47a9d7,_0x47a509){var _0x3f69c8=_0x3f69();return _0x1156=function(_0x1156c0,_0x2e217f){_0x1156c0=_0x1156c0-0x1e1;var _0x40b0f5=_0x3f69c8[_0x1156c0];return _0x40b0f5;},_0x1156(_0x47a9d7,_0x47a509);}function _0x3f69(){var _0x17c4d9=['requireSession','ONLINE','UniverCollaborationClientPlugin','Start\x20following','useRef','Inject','You\x27re\x20presenting\x20the\x20document','asObservable','_startLiveShareCoordinator','stopPresenting','univer-size-4','NEW_CHANGESETS','createInstance','offline','_commandService','UniverCore','NOT_FOLLOWING','parseProtocolChangeset','useEffect','_collabSessionService','unitId','Start','getInitialStates','url(#$1','init','rxjs/operators','SessionStatus','defs','mutations','useDependency','DesktopLiveShareController','Plugin','LIVESHARE_NEW_HOST','live-share-icon','call','HEADER_MENU','extend','params','2217582KtOoRM','_stopPresenting','univerjs-icon\x20univerjs-icon-','clsx','current','356senjOD','dispose','rxjs','forEach','7543249oOAwnQ','UniverProLiveShare','tryStartPresenting','then','LiveShareCoordinator','React','1152QcXzXN','mergeOverrideWithDependencies','getOwnPropertySymbols','FOLLOWING','stopFollowing','_handleNewHost','jsxs','LiveShareIcon','_injector','_mountLiveShare','amd','IUniverInstanceService','_fetchOperations','Dropdown','@univerjs/sheets-ui','xlink:href','LIVESHARE_OPERATION','6231985dVJmaN','LiveShare','pluginName','add','sheet','_uiPartsService','_startPresenting','length','useObservable','getLiveShareCoordinator','substring','1765520rRfyKB','delete','status$','getUnitId','toString','@univerjs/design','univer-w-full\x20univer-mb-3\x20univer-text-sm','_liveShareService','UniverInstanceType','318HpNcID','toStringTag','indexOf','UniverProCollaborationClient','propertyIsEnumerable','div','children','LiveShareService','getTypeOfUnitDisposed$','_handleOnline','prototype','complete','tag','function','startFollowing','getMemberID','_commandDisposable','getOwnPropertyDescriptor','getConfig','type','end','Injector','executeCommand','reverse','_status$','registerSharedOperation','symbol','_stopFollowing','map','string','presenter','_configService','_univerInstanceService','idSuffix','PRESENTING','memberID','react','next','@univerjs-pro/collaboration-client','UNIVER_LIVE_SHARE_PLUGIN','_config','InsertSheetMutation','CommandType','pipe','none','exports','toDisposable','SetWorksheetActiveOperation','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','forwardRef','useState','data','@univerjs/core','operations','random','use','OPERATION','_reporters','_startFollowing','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','setConfig','getCurrentTypeOfUnit$','icon','defIds','takeUntil','onCommandExecuted','currentColor','presenting','Subject','LIVESHARE_TERMINATE','LIVESHARE_FETCH_OPERATIONS','shouldShareOperation','UniverLiveSharePlugin','hasOwnProperty','_presenter','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','Module','not-following','SAME_OPERATION_SHARE_INTERVAL','colorChannel1','touchDependencies','replace','path','56268Otvuzg','Stop\x20following','Button','idle','default','CollaborationSessionService','concat','react/jsx-runtime','LiveShareController','dispose$','BehaviorSubject','jsx','set','UNIVER_SHEET','UniverProCollaboration','object','IDLE','assign','svg','UNIVER_UNKNOWN','defineProperty','entries','has','OFFLINE','getTypeOfUnitAdded$','registerInitialStateReporter','registerDependencies','operators','UniverSheetsUi','828333nuwJrs','stringify','unsubscribe','RxDisposable','merge','You\x27are\x20offline.','CollaborationEvent','_sharedOperations','disposeWithMe','connectInjector','Fragment','sessionStatus$','fill','Stop\x20presenting','send','clear','0\x200\x2017\x2017','Disposable','displayName','_status','subscribe','_init','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','1em','@univerjs/sheets','UniverDesign','get','ICommandService','registerComponent','live-share.config','LIVESHARE_REQUEST_HOST','BuiltInUIPart','onStarting','UniverSheets','@univerjs-pro/collaboration','className','following','@univerjs/ui','_entities','attrs','DependentOn','_handleTerminate','_collabSession','from','getValue','createElement','_beIdle','_unitID','override','_handleOffline','_handleOperation'];_0x3f69=function(){return _0x17c4d9;};return _0x3f69();}(function(_0x485388,_0x31a5b5){var _0x3f14e0=_0x1156,_0x4e2704=_0x485388();while(!![]){try{var _0x4e963d=parseInt(_0x3f14e0(0x2bc))/0x1+parseInt(_0x3f14e0(0x243))/0x2+-parseInt(_0x3f14e0(0x24c))/0x3*(parseInt(_0x3f14e0(0x21d))/0x4)+-parseInt(_0x3f14e0(0x238))/0x5+parseInt(_0x3f14e0(0x218))/0x6+-parseInt(_0x3f14e0(0x221))/0x7+-parseInt(_0x3f14e0(0x227))/0x8*(-parseInt(_0x3f14e0(0x29f))/0x9);if(_0x4e963d===_0x31a5b5)break;else _0x4e2704['push'](_0x4e2704['shift']());}catch(_0x1b72d5){_0x4e2704['push'](_0x4e2704['shift']());}}}(_0x3f69,0x9e174),function(_0x3449bd,_0x27be52){var _0x544972=_0x1156;typeof exports==_0x544972(0x2ae)&&typeof module<'u'?_0x27be52(exports,require(_0x544972(0x272)),require('@univerjs/core'),require('@univerjs/sheets'),require(_0x544972(0x235)),require(_0x544972(0x1e4)),require(_0x544972(0x2a6)),require(_0x544972(0x248)),require(_0x544972(0x270)),require(_0x544972(0x1e1)),require(_0x544972(0x21f)),require(_0x544972(0x20b))):typeof define==_0x544972(0x259)&&define[_0x544972(0x231)]?define([_0x544972(0x279),'@univerjs-pro/collaboration-client',_0x544972(0x280),_0x544972(0x2d4),_0x544972(0x235),_0x544972(0x1e4),_0x544972(0x2a6),'@univerjs/design','react',_0x544972(0x1e1),_0x544972(0x21f),_0x544972(0x20b)],_0x27be52):(_0x3449bd=typeof globalThis<'u'?globalThis:_0x3449bd||self,_0x27be52(_0x3449bd[_0x544972(0x222)]={},_0x3449bd[_0x544972(0x24f)],_0x3449bd[_0x544972(0x201)],_0x3449bd[_0x544972(0x2dd)],_0x3449bd[_0x544972(0x2bb)],_0x3449bd['UniverUi'],_0x3449bd['React'],_0x3449bd[_0x544972(0x2d5)],_0x3449bd[_0x544972(0x226)],_0x3449bd[_0x544972(0x2ad)],_0x3449bd[_0x544972(0x21f)],_0x3449bd[_0x544972(0x21f)][_0x544972(0x2ba)]));}(this,function(_0x3922ba,_0x4b448c,_0x51fddc,_0x330718,_0xce2c7b,_0x1e0431,_0x49be1,_0xa1bc07,_0x5eeba2,_0x5aeed6,_0x151af6,_0x2e3af3){'use strict';var _0xa030a2=_0x1156;var _0x41db5c=Object[_0xa030a2(0x2b3)],_0x1a7c00=(_0x1c892a,_0x4392ee,_0x1ff203)=>_0x4392ee in _0x1c892a?_0x41db5c(_0x1c892a,_0x4392ee,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ff203}):_0x1c892a[_0x4392ee]=_0x1ff203,_0x1b5e5f=(_0x64b7d0,_0xf1e7cc,_0x4d0e69)=>_0x1a7c00(_0x64b7d0,typeof _0xf1e7cc!=_0xa030a2(0x266)?_0xf1e7cc+'':_0xf1e7cc,_0x4d0e69);const _0x138e46=_0xa030a2(0x2d9),_0x30e877={};class _0x3c4b2c extends _0x51fddc['Disposable']{constructor(){var _0x123a58=_0xa030a2;super(...arguments),_0x1b5e5f(this,_0x123a58(0x2c3),new Set()),_0x1b5e5f(this,_0x123a58(0x285),new Set());}['registerSharedOperation'](_0x585d89){var _0x1174f8=_0xa030a2;return this[_0x1174f8(0x2c3)][_0x1174f8(0x23b)](_0x585d89),_0x51fddc[_0x1174f8(0x27a)](()=>this[_0x1174f8(0x2c3)][_0x1174f8(0x244)](_0x585d89));}[_0xa030a2(0x2b8)](_0x36a28c){var _0x1106a7=_0xa030a2;return this[_0x1106a7(0x285)]['add'](_0x36a28c),_0x51fddc['toDisposable'](()=>this[_0x1106a7(0x285)][_0x1106a7(0x244)](_0x36a28c));}[_0xa030a2(0x293)](_0x47d65d){var _0x971239=_0xa030a2;return this[_0x971239(0x2c3)]['has'](_0x47d65d);}[_0xa030a2(0x208)](_0x434908){var _0x34a085=_0xa030a2;return Array[_0x34a085(0x1ea)](this[_0x34a085(0x285)])[_0x34a085(0x268)](_0x3d5077=>_0x3d5077(_0x434908));}}var _0x44a93f=Object[_0xa030a2(0x25d)],_0xed1ad7=(_0x37cb14,_0xbcdc88,_0x3199f4,_0xddcb29)=>{var _0x2cf455=_0xa030a2;for(var _0x21c32c=_0xddcb29>0x1?void 0x0:_0xddcb29?_0x44a93f(_0xbcdc88,_0x3199f4):_0xbcdc88,_0x340094=_0x37cb14[_0x2cf455(0x23f)]-0x1,_0x1bb236;_0x340094>=0x0;_0x340094--)(_0x1bb236=_0x37cb14[_0x340094])&&(_0x21c32c=_0x1bb236(_0x21c32c)||_0x21c32c);return _0x21c32c;},_0x19217f=(_0x14c5e8,_0x41bb88)=>(_0x248d9e,_0x5bf18f)=>_0x41bb88(_0x248d9e,_0x5bf18f,_0x14c5e8);let _0x522c4f=class extends _0x51fddc[_0xa030a2(0x2cd)]{constructor(_0xf5d92b){super(),this['_liveShareService']=_0xf5d92b,this['_init']();}[_0xa030a2(0x2d1)](){var _0x35f7f6=_0xa030a2;[_0xce2c7b['SetZoomRatioOperation']['id'],_0xce2c7b['SetScrollOperation']['id'],_0x330718[_0x35f7f6(0x27b)]['id']][_0x35f7f6(0x220)](_0x26dd1a=>{var _0xdb92b3=_0x35f7f6;this[_0xdb92b3(0x2c4)](this['_liveShareService'][_0xdb92b3(0x265)](_0x26dd1a));});}};_0x522c4f=_0xed1ad7([_0x19217f(0x0,_0x51fddc[_0xa030a2(0x1f7)](_0x3c4b2c))],_0x522c4f);var _0x43b018=function(){return _0x43b018=Object['assign']||function(_0x4d71c6){var _0x1ca64f=_0x1156;for(var _0xa6a44c,_0xb7e31a=0x1,_0x570756=arguments[_0x1ca64f(0x23f)];_0xb7e31a<_0x570756;_0xb7e31a++){_0xa6a44c=arguments[_0xb7e31a];for(var _0x5a9e1d in _0xa6a44c)Object[_0x1ca64f(0x256)][_0x1ca64f(0x295)][_0x1ca64f(0x214)](_0xa6a44c,_0x5a9e1d)&&(_0x4d71c6[_0x5a9e1d]=_0xa6a44c[_0x5a9e1d]);}return _0x4d71c6;},_0x43b018['apply'](this,arguments);},_0x21f2ea=function(_0xf4c7c8,_0xafab29){var _0x21fbbe=_0xa030a2,_0x47c386={};for(var _0x77c6f2 in _0xf4c7c8)Object['prototype'][_0x21fbbe(0x295)][_0x21fbbe(0x214)](_0xf4c7c8,_0x77c6f2)&&_0xafab29[_0x21fbbe(0x24e)](_0x77c6f2)<0x0&&(_0x47c386[_0x77c6f2]=_0xf4c7c8[_0x77c6f2]);if(_0xf4c7c8!=null&&typeof Object['getOwnPropertySymbols']==_0x21fbbe(0x259)){for(var _0x594d5d=0x0,_0x77c6f2=Object[_0x21fbbe(0x229)](_0xf4c7c8);_0x594d5d<_0x77c6f2['length'];_0x594d5d++)_0xafab29['indexOf'](_0x77c6f2[_0x594d5d])<0x0&&Object[_0x21fbbe(0x256)][_0x21fbbe(0x250)]['call'](_0xf4c7c8,_0x77c6f2[_0x594d5d])&&(_0x47c386[_0x77c6f2[_0x594d5d]]=_0xf4c7c8[_0x77c6f2[_0x594d5d]]);}return _0x47c386;},_0x3f56b3=_0x5eeba2[_0xa030a2(0x27d)](function(_0x1666a6,_0x4a6128){var _0x3d8ddd=_0xa030a2,_0x16c1ce=_0x1666a6['icon'],_0x350af2=_0x1666a6['id'],_0x3f3064=_0x1666a6['className'],_0x367b60=_0x1666a6[_0x3d8ddd(0x216)],_0x554c73=_0x21f2ea(_0x1666a6,[_0x3d8ddd(0x28a),'id',_0x3d8ddd(0x1e2),_0x3d8ddd(0x216)]),_0x49d4f9=_0x3d8ddd(0x21a)['concat'](_0x350af2,'\x20')[_0x3d8ddd(0x2a5)](_0x3f3064||'')['trim'](),_0x24364d=_0x5eeba2['useRef']('_'['concat'](_0xab142d()));return _0x161fd3(_0x16c1ce,''[_0x3d8ddd(0x2a5)](_0x350af2),{'defIds':_0x16c1ce['defIds'],'idSuffix':_0x24364d[_0x3d8ddd(0x21c)]},_0x43b018({'ref':_0x4a6128,'className':_0x49d4f9},_0x554c73),_0x367b60);});function _0x161fd3(_0x42d35e,_0x2ac973,_0x5e7169,_0x4eecb6,_0x51af8f){var _0x1dc5da=_0xa030a2;return _0x5eeba2[_0x1dc5da(0x1ec)](_0x42d35e[_0x1dc5da(0x258)],_0x43b018(_0x43b018({'key':_0x2ac973},_0x524264(_0x42d35e,_0x5e7169,_0x51af8f)),_0x4eecb6),(_0x14b769(_0x42d35e,_0x5e7169)['children']||[])['map'](function(_0x53472b,_0x5809a8){var _0x1a9083=_0x1dc5da;return _0x161fd3(_0x53472b,''[_0x1a9083(0x2a5)](_0x2ac973,'-')['concat'](_0x42d35e['tag'],'-')[_0x1a9083(0x2a5)](_0x5809a8),_0x5e7169,void 0x0,_0x51af8f);}));}function _0x524264(_0x272a2f,_0x103df8,_0x117338){var _0x8e4a6b=_0xa030a2,_0x172bd7=_0x43b018({},_0x272a2f[_0x8e4a6b(0x1e6)]);_0x117338!=null&&_0x117338[_0x8e4a6b(0x29b)]&&_0x172bd7['fill']===_0x8e4a6b(0x29b)&&(_0x172bd7[_0x8e4a6b(0x2c8)]=_0x117338['colorChannel1']),_0x272a2f[_0x8e4a6b(0x258)]==='mask'&&_0x172bd7['id']&&(_0x172bd7['id']=_0x172bd7['id']+_0x103df8[_0x8e4a6b(0x26d)]),Object[_0x8e4a6b(0x2b4)](_0x172bd7)['forEach'](function(_0x3dda15){var _0x391f0a=_0x8e4a6b,_0x5931af=_0x3dda15[0x0],_0x527577=_0x3dda15[0x1];_0x5931af==='mask'&&typeof _0x527577==_0x391f0a(0x269)&&(_0x172bd7[_0x5931af]=_0x527577[_0x391f0a(0x29d)](/url\(#(.*)\)/,_0x391f0a(0x209)['concat'](_0x103df8[_0x391f0a(0x26d)],')')));});var _0xd3c40c=_0x103df8[_0x8e4a6b(0x28b)];return!_0xd3c40c||_0xd3c40c[_0x8e4a6b(0x23f)]===0x0||(_0x272a2f[_0x8e4a6b(0x258)]===_0x8e4a6b(0x283)&&_0x172bd7[_0x8e4a6b(0x236)]&&(_0x172bd7['xlink:href']=_0x172bd7[_0x8e4a6b(0x236)]+_0x103df8[_0x8e4a6b(0x26d)]),Object[_0x8e4a6b(0x2b4)](_0x172bd7)[_0x8e4a6b(0x220)](function(_0x5250f7){var _0x2941bd=_0x8e4a6b,_0x5adadd=_0x5250f7[0x0],_0x483009=_0x5250f7[0x1];typeof _0x483009==_0x2941bd(0x269)&&(_0x172bd7[_0x5adadd]=_0x483009[_0x2941bd(0x29d)](/url\(#(.*)\)/,_0x2941bd(0x209)[_0x2941bd(0x2a5)](_0x103df8[_0x2941bd(0x26d)],')')));})),_0x172bd7;}function _0x14b769(_0x384daa,_0x1f0dd5){var _0x59dea4=_0xa030a2,_0xbbcfdd,_0x2d8082=_0x1f0dd5[_0x59dea4(0x28b)];return!_0x2d8082||_0x2d8082[_0x59dea4(0x23f)]===0x0?_0x384daa:_0x384daa[_0x59dea4(0x258)]===_0x59dea4(0x20d)&&(!((_0xbbcfdd=_0x384daa['children'])===null||_0xbbcfdd===void 0x0)&&_0xbbcfdd[_0x59dea4(0x23f)])?_0x43b018(_0x43b018({},_0x384daa),{'children':_0x384daa[_0x59dea4(0x252)][_0x59dea4(0x268)](function(_0x4852b0){var _0x55ba3d=_0x59dea4;return typeof _0x4852b0['attrs']['id']==_0x55ba3d(0x269)&&_0x2d8082&&_0x2d8082['includes'](_0x4852b0[_0x55ba3d(0x1e6)]['id'])?_0x43b018(_0x43b018({},_0x4852b0),{'attrs':_0x43b018(_0x43b018({},_0x4852b0[_0x55ba3d(0x1e6)]),{'id':_0x4852b0[_0x55ba3d(0x1e6)]['id']+_0x1f0dd5[_0x55ba3d(0x26d)]})}):_0x4852b0;})}):_0x384daa;}function _0xab142d(){var _0x22fa4d=_0xa030a2;return Math[_0x22fa4d(0x282)]()[_0x22fa4d(0x247)](0x24)[_0x22fa4d(0x242)](0x2,0x8);}_0x3f56b3[_0xa030a2(0x2ce)]='UniverIcon';var _0x1c1999={'tag':_0xa030a2(0x2b1),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xa030a2(0x278),'viewBox':_0xa030a2(0x2cc),'width':_0xa030a2(0x2d3),'height':'1em'},'children':[{'tag':_0xa030a2(0x29e),'attrs':{'fill':_0xa030a2(0x28e),'d':_0xa030a2(0x2d2)}},{'tag':'path','attrs':{'fill':_0xa030a2(0x28e),'d':_0xa030a2(0x27c),'fillRule':'evenodd','clipRule':'evenodd'}}]},_0x24a436=_0x5eeba2[_0xa030a2(0x27d)](function(_0x8e0dc0,_0x4fc6b1){var _0x268428=_0xa030a2;return _0x5eeba2[_0x268428(0x1ec)](_0x3f56b3,Object[_0x268428(0x2b0)]({},_0x8e0dc0,{'id':_0x268428(0x213),'ref':_0x4fc6b1,'icon':_0x1c1999}));});_0x24a436[_0xa030a2(0x2ce)]=_0xa030a2(0x22e);var _0x1c9444=Object[_0xa030a2(0x25d)],_0x17d714=(_0x2919a5,_0x2ef8e6,_0x93d052,_0x3682b2)=>{var _0x4ff075=_0xa030a2;for(var _0x2e806c=_0x3682b2>0x1?void 0x0:_0x3682b2?_0x1c9444(_0x2ef8e6,_0x93d052):_0x2ef8e6,_0x2824cb=_0x2919a5[_0x4ff075(0x23f)]-0x1,_0x5bf966;_0x2824cb>=0x0;_0x2824cb--)(_0x5bf966=_0x2919a5[_0x2824cb])&&(_0x2e806c=_0x5bf966(_0x2e806c)||_0x2e806c);return _0x2e806c;},_0xb36e7b=(_0x3e8a67,_0x3bc130)=>(_0x3b7bea,_0x26a137)=>_0x3bc130(_0x3b7bea,_0x26a137,_0x3e8a67);_0x3922ba[_0xa030a2(0x2a7)]=class extends _0x51fddc['RxDisposable']{constructor(_0x3552f3,_0x566749,_0x12ff12){var _0x41145e=_0xa030a2;super(),_0x1b5e5f(this,'_entities',new Map()),(this[_0x41145e(0x26c)]=_0x3552f3,this[_0x41145e(0x22f)]=_0x566749,this[_0x41145e(0x205)]=_0x12ff12,this[_0x41145e(0x2d1)]());}async['getLiveShareCoordinator'](_0x145668){var _0x275cd7=_0xa030a2;return this[_0x275cd7(0x1e5)][_0x275cd7(0x2b5)](_0x145668)||await this[_0x275cd7(0x1fa)](_0x145668),this['_entities'][_0x275cd7(0x2d6)](_0x145668);}['_init'](){var _0x5292c2=_0xa030a2;this[_0x5292c2(0x26c)][_0x5292c2(0x2b7)](_0x51fddc['UniverInstanceType'][_0x5292c2(0x2ac)])[_0x5292c2(0x277)](_0x2e3af3[_0x5292c2(0x28c)](this[_0x5292c2(0x2a8)]))[_0x5292c2(0x2d0)](async _0x29e8e9=>{var _0x20a383=_0x5292c2;const _0x23c5e8=_0x29e8e9['getUnitId']();this[_0x20a383(0x1e5)][_0x20a383(0x2b5)](_0x23c5e8)||this[_0x20a383(0x1fa)](_0x23c5e8);}),this[_0x5292c2(0x26c)][_0x5292c2(0x254)](_0x51fddc[_0x5292c2(0x24b)][_0x5292c2(0x2ac)])[_0x5292c2(0x277)](_0x2e3af3[_0x5292c2(0x28c)](this[_0x5292c2(0x2a8)]))['subscribe'](_0x2e70e6=>{var _0x4003ac=_0x5292c2;const _0x946aca=_0x2e70e6['getUnitId'](),_0x4c961f=this[_0x4003ac(0x1e5)][_0x4003ac(0x2d6)](_0x946aca);_0x4c961f==null||_0x4c961f[_0x4003ac(0x21e)]();});}async[_0xa030a2(0x1fa)](_0xf86e4e){var _0x29c05e=_0xa030a2;const _0x55ff31=await this['_collabSessionService'][_0x29c05e(0x1f2)](_0xf86e4e),_0x40c505=this['_injector'][_0x29c05e(0x1fe)](_0x3922ba[_0x29c05e(0x225)],_0xf86e4e,_0x55ff31);return _0x40c505['init'](),this[_0x29c05e(0x1e5)][_0x29c05e(0x2ab)](_0xf86e4e,_0x40c505),_0x40c505;}},_0x3922ba[_0xa030a2(0x2a7)]=_0x17d714([_0xb36e7b(0x0,_0x51fddc[_0xa030a2(0x232)]),_0xb36e7b(0x1,_0x51fddc[_0xa030a2(0x1f7)](_0x51fddc[_0xa030a2(0x261)])),_0xb36e7b(0x2,_0x51fddc[_0xa030a2(0x1f7)](_0x4b448c[_0xa030a2(0x2a4)]))],_0x3922ba[_0xa030a2(0x2a7)]);var _0x46fa93=(_0x266c86=>(_0x266c86[_0xa030a2(0x2b6)]='offline',_0x266c86[_0xa030a2(0x2af)]=_0xa030a2(0x2a2),_0x266c86[_0xa030a2(0x22a)]=_0xa030a2(0x1e3),_0x266c86[_0xa030a2(0x202)]='not-following',_0x266c86['PRESENTING']='presenting',_0x266c86))(_0x46fa93||{});const _0x21e3af=_0xa030a2(0x29a),_0x2cb8f8=0xc8;_0x3922ba[_0xa030a2(0x225)]=class extends _0x51fddc[_0xa030a2(0x2bf)]{constructor(_0x2d5aff,_0x5a4b11,_0x3e09db,_0xce1dba,_0x1b3a5c){var _0x18a866=_0xa030a2;super(),_0x1b5e5f(this,_0x18a866(0x264),new _0x151af6[(_0x18a866(0x2a9))](_0x18a866(0x2a2))),_0x1b5e5f(this,_0x18a866(0x245),this['_status$'][_0x18a866(0x1f9)]()),_0x1b5e5f(this,_0x18a866(0x2d1),!0x1),_0x1b5e5f(this,_0x18a866(0x25c),null),_0x1b5e5f(this,_0x18a866(0x296),null),(this[_0x18a866(0x1ee)]=_0x2d5aff,this['_collabSession']=_0x5a4b11,this['_configService']=_0x3e09db,this[_0x18a866(0x24a)]=_0xce1dba,this[_0x18a866(0x200)]=_0x1b3a5c);}get[_0xa030a2(0x2cf)](){var _0x3c72f7=_0xa030a2;return this[_0x3c72f7(0x264)][_0x3c72f7(0x1eb)]();}[_0xa030a2(0x21e)](){var _0x55e57c=_0xa030a2,_0x498fc8;(_0x498fc8=this[_0x55e57c(0x25c)])==null||_0x498fc8['dispose'](),this[_0x55e57c(0x264)][_0x55e57c(0x271)](_0x55e57c(0x2a2)),this[_0x55e57c(0x264)][_0x55e57c(0x257)]();}[_0xa030a2(0x20a)](){var _0x1a513c=_0xa030a2;this[_0x1a513c(0x2d1)]||(this[_0x1a513c(0x2d1)]=!0x0,this[_0x1a513c(0x1e9)][_0x1a513c(0x2c7)][_0x1a513c(0x277)](_0x2e3af3['takeUntil'](this['dispose$']))[_0x1a513c(0x2d0)](_0x31e3ce=>{var _0x426762=_0x1a513c;switch(_0x31e3ce){case _0x4b448c[_0x426762(0x20c)][_0x426762(0x2b6)]:this[_0x426762(0x1f0)]();break;case _0x4b448c['SessionStatus'][_0x426762(0x1f3)]:this[_0x426762(0x255)]();break;}}),this[_0x1a513c(0x1e9)]['event$'][_0x1a513c(0x277)](_0x2e3af3[_0x1a513c(0x28c)](this['dispose$']))[_0x1a513c(0x2d0)](_0x1ee22c=>{var _0x5543f6=_0x1a513c;const {eventID:_0x2cb058}=_0x1ee22c;switch(_0x2cb058){case _0x5aeed6['CollaborationEvent'][_0x5543f6(0x212)]:this[_0x5543f6(0x22c)](_0x1ee22c);break;case _0x5aeed6[_0x5543f6(0x2c2)][_0x5543f6(0x237)]:this['_handleOperation'](_0x1ee22c);break;case _0x5aeed6[_0x5543f6(0x2c2)][_0x5543f6(0x291)]:this[_0x5543f6(0x1e8)]();break;case _0x5aeed6['CollaborationEvent'][_0x5543f6(0x1fd)]:this['_handleNewChangeSets'](_0x1ee22c);break;}}));}[_0xa030a2(0x223)](){var _0x1e2c01=_0xa030a2;this[_0x1e2c01(0x1e9)]['send']({'eventID':_0x5aeed6[_0x1e2c01(0x2c2)][_0x1e2c01(0x2da)],'data':{'unitID':this[_0x1e2c01(0x1ee)],'userID':this[_0x1e2c01(0x1e9)][_0x1e2c01(0x25b)]()}},this['_unitID']);}['stopPresenting'](){var _0x480c0b=_0xa030a2;this['_status']===_0x480c0b(0x28f)&&(this[_0x480c0b(0x264)][_0x480c0b(0x271)](_0x480c0b(0x2a2)),this[_0x480c0b(0x1e9)]['send']({'eventID':_0x5aeed6[_0x480c0b(0x2c2)][_0x480c0b(0x291)],'data':{'unitID':this[_0x480c0b(0x1ee)]}},this[_0x480c0b(0x1ee)]));}['startFollowing'](){var _0x2083a7=_0xa030a2;this[_0x2083a7(0x2cf)]==='not-following'&&(this['_status$'][_0x2083a7(0x271)](_0x2083a7(0x1e3)),this['_startFollowing']());}['stopFollowing'](){var _0x4fba23=_0xa030a2;this[_0x4fba23(0x2cf)]===_0x4fba23(0x1e3)&&this['_stopFollowing']();}['_handleNewHost'](_0x3962a3){var _0x3ce82a=_0xa030a2;const {presenter:_0x2105fe}=_0x3962a3[_0x3ce82a(0x27f)],_0xd78d71=this[_0x3ce82a(0x1e9)][_0x3ce82a(0x25b)]();this['_presenter']=_0x2105fe,_0x2105fe===_0xd78d71?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x3ce82a(0x2cf)]!==_0x3ce82a(0x299)&&(this[_0x3ce82a(0x219)](),this[_0x3ce82a(0x286)]());}[_0xa030a2(0x233)](){var _0x4fda41=_0xa030a2;const _0x259e6d={'eventID':_0x5aeed6[_0x4fda41(0x2c2)][_0x4fda41(0x292)]};this[_0x4fda41(0x1e9)][_0x4fda41(0x2ca)](_0x259e6d,this[_0x4fda41(0x1ee)]);}[_0xa030a2(0x1e8)](){var _0x471564=_0xa030a2;this['_presenter']=null,this[_0x471564(0x2cf)]!==_0x471564(0x28f)&&this['_beIdle']();}['_handleNewChangeSets'](_0x4ba616){var _0x5e740b=_0xa030a2;if(this[_0x5e740b(0x2cf)]===_0x5e740b(0x1e3)&&this[_0x5e740b(0x296)]===_0x4ba616[_0x5e740b(0x27f)][_0x5e740b(0x26f)]){const _0x2d5205=_0x5aeed6[_0x5e740b(0x203)](_0x4ba616[_0x5e740b(0x27f)])[_0x5e740b(0x20e)][_0x5e740b(0x263)]()['find'](_0x4f9bff=>_0x4f9bff['id']===_0x330718[_0x5e740b(0x275)]['id']);if(_0x2d5205){const _0x269407=_0x2d5205[_0x5e740b(0x217)][_0x5e740b(0x206)],_0x24753b=_0x2d5205['params'][_0x5e740b(0x23c)]['id'];setTimeout(()=>{var _0x6ca938=_0x5e740b;this[_0x6ca938(0x200)][_0x6ca938(0x262)](_0x330718[_0x6ca938(0x27b)]['id'],{'unitId':_0x269407,'subUnitId':_0x24753b},{'fromCollab':!0x0});});}}}[_0xa030a2(0x23e)](){var _0x193dfd=_0xa030a2;this[_0x193dfd(0x264)][_0x193dfd(0x271)](_0x193dfd(0x28f));const _0x470063=new Map(),_0x255f49=this['_commandDisposable']=new _0x51fddc['DisposableCollection']();_0x255f49[_0x193dfd(0x23b)](_0x51fddc[_0x193dfd(0x27a)](()=>{var _0x352ad6=_0x193dfd;_0x470063['forEach'](_0x5bd713=>_0x5bd713['complete']()),_0x470063[_0x352ad6(0x2cb)]();})),_0x255f49[_0x193dfd(0x23b)](this[_0x193dfd(0x200)][_0x193dfd(0x28d)](_0x420756=>{var _0x4c2302=_0x193dfd,_0x23c88d;if(_0x420756['type']!==_0x51fddc[_0x4c2302(0x276)][_0x4c2302(0x284)]||!this[_0x4c2302(0x24a)]['shouldShareOperation'](_0x420756['id']))return;const {id:_0x48766d}=_0x420756;let _0x1fdb66;_0x470063['has'](_0x48766d)?_0x1fdb66=_0x470063[_0x4c2302(0x2d6)](_0x48766d):(_0x1fdb66=new _0x151af6[(_0x4c2302(0x290))](),_0x470063[_0x4c2302(0x2ab)](_0x48766d,_0x1fdb66),_0x1fdb66[_0x4c2302(0x277)](_0x2e3af3['throttleTime']((_0x23c88d=this[_0x4c2302(0x26b)][_0x4c2302(0x25e)](_0x21e3af))!=null?_0x23c88d:_0x2cb8f8,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4c2302(0x2d0)](_0x1d25df=>{var _0x1e78ec=_0x4c2302;this['_collabSession'][_0x1e78ec(0x2ca)]({'eventID':_0x5aeed6[_0x1e78ec(0x2c2)][_0x1e78ec(0x237)],'data':{'unitID':this[_0x1e78ec(0x1ee)],'operations':{[_0x1d25df['id']]:{'id':_0x1d25df['id'],'params':JSON[_0x1e78ec(0x2bd)](_0x1d25df[_0x1e78ec(0x217)])}}}},this[_0x1e78ec(0x1ee)]);})),_0x1fdb66[_0x4c2302(0x271)](_0x420756);})),this['_liveShareService'][_0x193dfd(0x208)](this[_0x193dfd(0x1ee)])[_0x193dfd(0x220)](_0x15e8da=>this['_collabSession'][_0x193dfd(0x2ca)]({'eventID':_0x5aeed6[_0x193dfd(0x2c2)][_0x193dfd(0x237)],'data':{'unitID':this[_0x193dfd(0x1ee)],'operations':{[_0x15e8da['id']]:{'id':_0x15e8da['id'],'params':JSON['stringify'](_0x15e8da[_0x193dfd(0x217)])}}}},this[_0x193dfd(0x1ee)]));}[_0xa030a2(0x219)](){var _0x3676f2=_0xa030a2,_0x81dbc7;this['_status$']['next'](_0x3676f2(0x2a2)),(_0x81dbc7=this[_0x3676f2(0x25c)])==null||_0x81dbc7['dispose'](),this[_0x3676f2(0x25c)]=null;}[_0xa030a2(0x286)](){var _0x12daae=_0xa030a2,_0x55a393;(_0x55a393=this[_0x12daae(0x25c)])==null||_0x55a393[_0x12daae(0x21e)](),this[_0x12daae(0x264)][_0x12daae(0x271)](_0x12daae(0x1e3));}[_0xa030a2(0x1ed)](){var _0x379c03=_0xa030a2,_0x24e18a;this[_0x379c03(0x264)]['next'](_0x379c03(0x2a2)),(_0x24e18a=this[_0x379c03(0x25c)])==null||_0x24e18a[_0x379c03(0x21e)](),this['_commandDisposable']=null;}[_0xa030a2(0x267)](){var _0xc5b6a1=_0xa030a2,_0x4928b8;this['_status$'][_0xc5b6a1(0x271)](_0xc5b6a1(0x299)),(_0x4928b8=this[_0xc5b6a1(0x25c)])==null||_0x4928b8[_0xc5b6a1(0x21e)]();}[_0xa030a2(0x1f1)](_0x5aa5b3){var _0x4cf27b=_0xa030a2;if(['presenting','not-following',_0x4cf27b(0x1ff)]['includes'](this['_status'])||!_0x5aa5b3[_0x4cf27b(0x27f)][_0x4cf27b(0x26a)]||_0x5aa5b3['data'][_0x4cf27b(0x26a)]===this[_0x4cf27b(0x1e9)]['getMemberID']())return;this['_status']==='idle'&&this[_0x4cf27b(0x286)]();const _0x46875c=_0x5aa5b3[_0x4cf27b(0x27f)][_0x4cf27b(0x281)];Object['values'](_0x46875c)[_0x4cf27b(0x220)](_0x405c08=>{var _0x4f3437=_0x4cf27b;this[_0x4f3437(0x200)]['executeCommand'](_0x405c08['id'],_0x405c08[_0x4f3437(0x217)]?JSON['parse'](_0x405c08[_0x4f3437(0x217)]):null,{'fromCollab':!0x0});});}[_0xa030a2(0x1f0)](){var _0x15d9e0=_0xa030a2,_0x3fb92b;this[_0x15d9e0(0x264)][_0x15d9e0(0x271)](_0x15d9e0(0x1ff)),(_0x3fb92b=this[_0x15d9e0(0x25c)])==null||_0x3fb92b[_0x15d9e0(0x21e)]();}[_0xa030a2(0x255)](){var _0xddb4be=_0xa030a2;this[_0xddb4be(0x264)][_0xddb4be(0x271)](_0xddb4be(0x2a2)),this['_fetchOperations']();}},_0x3922ba[_0xa030a2(0x225)]=_0x17d714([_0xb36e7b(0x2,_0x51fddc['IConfigService']),_0xb36e7b(0x3,_0x51fddc[_0xa030a2(0x1f7)](_0x3c4b2c)),_0xb36e7b(0x4,_0x51fddc[_0xa030a2(0x2d7)])],_0x3922ba[_0xa030a2(0x225)]);function _0x23e6a7(){var _0x24f505=_0xa030a2;const _0x9f062c=_0x1e0431[_0x24f505(0x20f)](_0x3922ba[_0x24f505(0x2a7)]),_0x47bf3d=_0x1e0431[_0x24f505(0x20f)](_0x51fddc[_0x24f505(0x232)]),_0x43f56b=_0x1e0431[_0x24f505(0x240)](()=>_0x47bf3d[_0x24f505(0x289)](_0x51fddc[_0x24f505(0x24b)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x118166,_0x3aba9d]=_0x5eeba2['useState'](null),[_0xce011a,_0x31fefe]=_0x5eeba2[_0x24f505(0x27e)](_0x46fa93[_0x24f505(0x2af)]),_0x237c51=_0x5eeba2[_0x24f505(0x1f6)](null);return _0x5eeba2[_0x24f505(0x204)](()=>(_0x43f56b&&_0x9f062c[_0x24f505(0x241)](_0x43f56b[_0x24f505(0x246)]())[_0x24f505(0x224)](_0x30973c=>{var _0x2fcabf=_0x24f505;_0x3aba9d(_0x30973c),_0x237c51['current']=_0x30973c[_0x2fcabf(0x245)][_0x2fcabf(0x2d0)](_0x3cbe7e=>{_0x31fefe(_0x3cbe7e);});}),()=>{var _0x1fa6e9=_0x24f505,_0xe32a93;(_0xe32a93=_0x237c51[_0x1fa6e9(0x21c)])==null||_0xe32a93[_0x1fa6e9(0x2be)](),_0x237c51[_0x1fa6e9(0x21c)]=null;}),[_0x43f56b,_0x9f062c]),_0x118166?_0x49be1[_0x24f505(0x2aa)](_0xa1bc07[_0x24f505(0x234)],{'align':_0x24f505(0x260),'disabled':_0xce011a===_0x46fa93[_0x24f505(0x2b6)],'className':_0x24f505(0x297),'overlay':_0x49be1[_0x24f505(0x2aa)](_0x3b10ef,{'status':_0xce011a,'coordinator':_0x118166}),'children':_0x49be1[_0x24f505(0x2aa)]('button',{'className':_0xa1bc07[_0x24f505(0x21b)](_0x24f505(0x287),{'univer-cursor-not-allowed':_0xce011a===_0x46fa93['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xce011a!==_0x46fa93[_0x24f505(0x2b6)]}),'type':'button','children':_0x49be1[_0x24f505(0x2aa)](_0x24a436,{'className':_0x24f505(0x1fc)})})}):null;}function _0x3b10ef(_0x507818){var _0x335538=_0xa030a2;const {status:_0x1d5dc6,coordinator:_0xee4631}=_0x507818;switch(_0x1d5dc6){case _0x46fa93[_0x335538(0x2af)]:return _0x49be1[_0x335538(0x2aa)](_0x5bdb0a,{'coordinator':_0xee4631});case _0x46fa93[_0x335538(0x22a)]:return _0x49be1[_0x335538(0x2aa)](_0x54b6a8,{'coordinator':_0xee4631});case _0x46fa93[_0x335538(0x202)]:return _0x49be1[_0x335538(0x2aa)](_0x56388e,{'coordinator':_0xee4631});case _0x46fa93[_0x335538(0x2b6)]:return _0x49be1[_0x335538(0x2aa)](_0x15ea7f,{});case _0x46fa93[_0x335538(0x26e)]:return _0x49be1[_0x335538(0x2aa)](_0x58e22a,{'coordinator':_0xee4631});default:return null;}}function _0x5bdb0a(_0x3024a9){var _0x1047d5=_0xa030a2;const {coordinator:_0x295e58}=_0x3024a9;return _0x49be1[_0x1047d5(0x22d)](_0x49be1[_0x1047d5(0x2c6)],{'children':[_0x49be1[_0x1047d5(0x2aa)](_0x1047d5(0x251),{'className':_0x1047d5(0x249),'children':'Present\x20this\x20document'}),_0x49be1[_0x1047d5(0x2aa)](_0xa1bc07[_0x1047d5(0x2a1)],{'onClick':()=>_0x295e58[_0x1047d5(0x223)](),'children':_0x1047d5(0x207)})]});}function _0x54b6a8(_0x4d3c20){var _0x1a3044=_0xa030a2;const {coordinator:_0x467ec5}=_0x4d3c20;return _0x49be1[_0x1a3044(0x22d)](_0x49be1['Fragment'],{'children':[_0x49be1[_0x1a3044(0x2aa)](_0x1a3044(0x251),{'className':_0x1a3044(0x249),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x49be1[_0x1a3044(0x2aa)](_0xa1bc07[_0x1a3044(0x2a1)],{'onClick':()=>_0x467ec5[_0x1a3044(0x22b)](),'children':_0x1a3044(0x2a0)})]});}function _0x56388e(_0x37ec7a){var _0x38bc96=_0xa030a2;const {coordinator:_0x484944}=_0x37ec7a;return _0x49be1[_0x38bc96(0x22d)](_0x49be1['Fragment'],{'children':[_0x49be1[_0x38bc96(0x2aa)](_0x38bc96(0x251),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x49be1[_0x38bc96(0x2aa)](_0xa1bc07[_0x38bc96(0x2a1)],{'variant':'text','onClick':()=>_0x484944[_0x38bc96(0x25a)](),'children':_0x38bc96(0x1f5)})]});}function _0x58e22a(_0x195b2f){var _0x2e25c2=_0xa030a2;const {coordinator:_0xfd6f3c}=_0x195b2f;return _0x49be1['jsxs'](_0x49be1['Fragment'],{'children':[_0x49be1[_0x2e25c2(0x2aa)](_0x2e25c2(0x251),{'className':_0x2e25c2(0x249),'children':_0x2e25c2(0x1f8)}),_0x49be1[_0x2e25c2(0x2aa)](_0xa1bc07[_0x2e25c2(0x2a1)],{'variant':_0x2e25c2(0x2a3),'onClick':()=>_0xfd6f3c[_0x2e25c2(0x1fb)](),'children':_0x2e25c2(0x2c9)})]});}function _0x15ea7f(){var _0x3c3f49=_0xa030a2;return _0x49be1[_0x3c3f49(0x2aa)](_0x49be1[_0x3c3f49(0x2c6)],{'children':_0x3c3f49(0x2c1)});}var _0x2e2326=Object[_0xa030a2(0x25d)],_0x21254d=(_0x505582,_0x158bc6,_0x47568c,_0x1589b6)=>{var _0x5db27b=_0xa030a2;for(var _0x339b6a=_0x1589b6>0x1?void 0x0:_0x1589b6?_0x2e2326(_0x158bc6,_0x47568c):_0x158bc6,_0x171ef2=_0x505582[_0x5db27b(0x23f)]-0x1,_0x4a0668;_0x171ef2>=0x0;_0x171ef2--)(_0x4a0668=_0x505582[_0x171ef2])&&(_0x339b6a=_0x4a0668(_0x339b6a)||_0x339b6a);return _0x339b6a;},_0x2ce1a0=(_0x42162f,_0x51d228)=>(_0x4f92ce,_0x1535d0)=>_0x51d228(_0x4f92ce,_0x1535d0,_0x42162f);_0x3922ba[_0xa030a2(0x210)]=class extends _0x51fddc['Disposable']{constructor(_0x58d3b0,_0x100d16){var _0x1611a9=_0xa030a2;super(),this[_0x1611a9(0x22f)]=_0x58d3b0,this[_0x1611a9(0x23d)]=_0x100d16,this[_0x1611a9(0x230)]();}['_mountLiveShare'](){var _0x9d2f85=_0xa030a2;this[_0x9d2f85(0x2c4)](this[_0x9d2f85(0x23d)][_0x9d2f85(0x2d8)](_0x1e0431[_0x9d2f85(0x2db)][_0x9d2f85(0x215)],()=>_0x1e0431[_0x9d2f85(0x2c5)](_0x23e6a7,this[_0x9d2f85(0x22f)])));}},_0x3922ba[_0xa030a2(0x210)]=_0x21254d([_0x2ce1a0(0x0,_0x51fddc[_0xa030a2(0x1f7)](_0x51fddc['Injector'])),_0x2ce1a0(0x1,_0x1e0431['IUIPartsService'])],_0x3922ba[_0xa030a2(0x210)]);var _0x12c798=Object[_0xa030a2(0x2b3)],_0x4e1f41=Object[_0xa030a2(0x25d)],_0x5ce1a6=(_0x31a056,_0x317fd6,_0x36d02f)=>_0x317fd6 in _0x31a056?_0x12c798(_0x31a056,_0x317fd6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x36d02f}):_0x31a056[_0x317fd6]=_0x36d02f,_0x5bfc1d=(_0x4c1f48,_0x2e1ebd,_0x19f599,_0x558a27)=>{var _0x3c9ad2=_0xa030a2;for(var _0x2fa8e6=_0x558a27>0x1?void 0x0:_0x558a27?_0x4e1f41(_0x2e1ebd,_0x19f599):_0x2e1ebd,_0x25d2a6=_0x4c1f48[_0x3c9ad2(0x23f)]-0x1,_0x526ec8;_0x25d2a6>=0x0;_0x25d2a6--)(_0x526ec8=_0x4c1f48[_0x25d2a6])&&(_0x2fa8e6=_0x526ec8(_0x2fa8e6)||_0x2fa8e6);return _0x2fa8e6;},_0x16329f=(_0x3c465b,_0x179904)=>(_0x8bf296,_0x1de457)=>_0x179904(_0x8bf296,_0x1de457,_0x3c465b),_0x4a1db3=(_0x26b489,_0x5c5a89,_0x3b6ff2)=>_0x5ce1a6(_0x26b489,typeof _0x5c5a89!='symbol'?_0x5c5a89+'':_0x5c5a89,_0x3b6ff2);const _0x3e9a91=_0xa030a2(0x273);_0x3922ba['UniverLiveSharePlugin']=class extends _0x51fddc[_0xa030a2(0x211)]{constructor(_0x2514c3=_0x30e877,_0x3fc502,_0x37dfe4){var _0x3cad14=_0xa030a2;super(),this[_0x3cad14(0x274)]=_0x2514c3,this[_0x3cad14(0x22f)]=_0x3fc502,this[_0x3cad14(0x26b)]=_0x37dfe4;const {..._0x26c62f}=_0x51fddc[_0x3cad14(0x2c0)]({},_0x30e877,this['_config']);this[_0x3cad14(0x26b)][_0x3cad14(0x288)](_0x138e46,_0x26c62f);}[_0xa030a2(0x2dc)](){var _0x204082=_0xa030a2;_0x51fddc[_0x204082(0x2b9)](this[_0x204082(0x22f)],_0x51fddc[_0x204082(0x228)]([[_0x3c4b2c],[_0x3922ba[_0x204082(0x2a7)]],[_0x522c4f],[_0x3922ba[_0x204082(0x210)]]],this[_0x204082(0x274)][_0x204082(0x1ef)])),_0x51fddc[_0x204082(0x29c)](this[_0x204082(0x22f)],[[_0x522c4f]]);}['onRendered'](){var _0x15ecc9=_0xa030a2;_0x51fddc[_0x15ecc9(0x29c)](this[_0x15ecc9(0x22f)],[[_0x3922ba[_0x15ecc9(0x210)]]]);}},_0x4a1db3(_0x3922ba['UniverLiveSharePlugin'],_0xa030a2(0x25f),_0x51fddc[_0xa030a2(0x24b)][_0xa030a2(0x2b2)]),_0x4a1db3(_0x3922ba[_0xa030a2(0x294)],_0xa030a2(0x23a),_0x3e9a91),_0x3922ba['UniverLiveSharePlugin']=_0x5bfc1d([_0x51fddc[_0xa030a2(0x1e7)](_0x4b448c[_0xa030a2(0x1f4)]),_0x16329f(0x1,_0x51fddc[_0xa030a2(0x1f7)](_0x51fddc[_0xa030a2(0x261)])),_0x16329f(0x2,_0x51fddc['IConfigService'])],_0x3922ba[_0xa030a2(0x294)]),_0x3922ba[_0xa030a2(0x239)]=_0x23e6a7,_0x3922ba[_0xa030a2(0x253)]=_0x3c4b2c,_0x3922ba['LiveShareStatus']=_0x46fa93,Object[_0xa030a2(0x2b3)](_0x3922ba,Symbol[_0xa030a2(0x24d)],{'value':_0xa030a2(0x298)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.8.0
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^0.4.4",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.8.0
|
|
51
|
-
"@univerjs-pro/collaboration-client": "0.8.0
|
|
52
|
-
"@univerjs/
|
|
53
|
-
"@univerjs/sheets": "0.8.0
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs/ui": "0.8.0
|
|
56
|
-
"@univerjs/
|
|
50
|
+
"@univerjs-pro/collaboration": "0.8.0",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.8.0",
|
|
52
|
+
"@univerjs/core": "0.8.0",
|
|
53
|
+
"@univerjs/sheets": "0.8.0",
|
|
54
|
+
"@univerjs/sheets-ui": "0.8.0",
|
|
55
|
+
"@univerjs/ui": "0.8.0",
|
|
56
|
+
"@univerjs/design": "0.8.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.4",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"typescript": "^5.8.3",
|
|
64
64
|
"vite": "^6.3.5",
|
|
65
65
|
"vitest": "^3.2.0",
|
|
66
|
-
"@univerjs-infra/shared": "0.8.0
|
|
66
|
+
"@univerjs-infra/shared": "0.8.0",
|
|
67
67
|
"@univerjs/protocol": "0.1.47-alpha.0"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|