@univerjs-pro/live-share 0.7.0-nightly.202505181606 → 0.7.0-nightly.202505201607
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 +10 -10
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x270e92=_0x535b;(function(_0x38f262,_0x330a10){var _0x18e394=_0x535b,_0xf9bdfb=_0x38f262();while(!![]){try{var _0x3142b3=parseInt(_0x18e394(0x16e))/0x1+-parseInt(_0x18e394(0xac))/0x2+parseInt(_0x18e394(0xa2))/0x3*(-parseInt(_0x18e394(0xb7))/0x4)+-parseInt(_0x18e394(0xbb))/0x5*(parseInt(_0x18e394(0x15d))/0x6)+-parseInt(_0x18e394(0xa5))/0x7*(-parseInt(_0x18e394(0x153))/0x8)+parseInt(_0x18e394(0x146))/0x9+parseInt(_0x18e394(0x112))/0xa*(parseInt(_0x18e394(0xb2))/0xb);if(_0x3142b3===_0x330a10)break;else _0xf9bdfb['push'](_0xf9bdfb['shift']());}catch(_0x172890){_0xf9bdfb['push'](_0xf9bdfb['shift']());}}}(_0x4d82,0x672ab));var U=Object[_0x270e92(0x119)],F=(_0x325f94,_0x240dcf,_0x1e92a5)=>_0x240dcf in _0x325f94?U(_0x325f94,_0x240dcf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e92a5}):_0x325f94[_0x240dcf]=_0x1e92a5,v=(_0x1ccc8e,_0x2b4e33,_0x557338)=>F(_0x1ccc8e,typeof _0x2b4e33!=_0x270e92(0x93)?_0x2b4e33+'':_0x2b4e33,_0x557338);Object[_0x270e92(0x119)](exports,Symbol[_0x270e92(0x109)],{'value':_0x270e92(0xd5)});const m=require(_0x270e92(0xcb)),o=require(_0x270e92(0x13c)),C=require('@univerjs/sheets'),D=require(_0x270e92(0xb6)),p=require(_0x270e92(0xc9)),l=require(_0x270e92(0xc4)),g=require(_0x270e92(0xf3)),f=require(_0x270e92(0xbe)),_=require(_0x270e92(0xad)),x=require('rxjs'),b=require(_0x270e92(0xfd)),$=_0x270e92(0x97),L={};class E extends o[_0x270e92(0x159)]{constructor(){var _0x3d9ed2=_0x270e92;super(...arguments),v(this,_0x3d9ed2(0xc1),new Set()),v(this,_0x3d9ed2(0x94),new Set());}[_0x270e92(0x8d)](_0x24d37f){var _0x990075=_0x270e92;return this[_0x990075(0xc1)]['add'](_0x24d37f),o[_0x990075(0x12c)](()=>this['_sharedOperations'][_0x990075(0xc2)](_0x24d37f));}[_0x270e92(0x134)](_0x229ac3){var _0x5f16f6=_0x270e92;return this[_0x5f16f6(0x94)]['add'](_0x229ac3),o['toDisposable'](()=>this[_0x5f16f6(0x94)][_0x5f16f6(0xc2)](_0x229ac3));}[_0x270e92(0xfb)](_0x3fbb45){var _0x196ffd=_0x270e92;return this[_0x196ffd(0xc1)][_0x196ffd(0x157)](_0x3fbb45);}[_0x270e92(0xc0)](_0x5e3a76){var _0x20c483=_0x270e92;return Array[_0x20c483(0x133)](this[_0x20c483(0x94)])[_0x20c483(0xa7)](_0xaa012f=>_0xaa012f(_0x5e3a76));}}var H=Object['getOwnPropertyDescriptor'],V=(_0x1fb1ae,_0x51e190,_0x457ec0,_0x58c351)=>{var _0x3b9aad=_0x270e92;for(var _0x591cee=_0x58c351>0x1?void 0x0:_0x58c351?H(_0x51e190,_0x457ec0):_0x51e190,_0x414972=_0x1fb1ae[_0x3b9aad(0x108)]-0x1,_0x222248;_0x414972>=0x0;_0x414972--)(_0x222248=_0x1fb1ae[_0x414972])&&(_0x591cee=_0x222248(_0x591cee)||_0x591cee);return _0x591cee;},k=(_0x597a30,_0x59b142)=>(_0x14eb9b,_0x1f454b)=>_0x59b142(_0x14eb9b,_0x1f454b,_0x597a30);let O=class extends o[_0x270e92(0x159)]{constructor(_0x409a80){var _0x2b7701=_0x270e92;super(),this['_liveShareService']=_0x409a80,this[_0x2b7701(0x11f)]();}[_0x270e92(0x11f)](){var _0x56a878=_0x270e92;[D[_0x56a878(0x14e)]['id'],D[_0x56a878(0xaf)]['id'],C[_0x56a878(0x89)]['id']]['forEach'](_0x2eef8=>{var _0x51228d=_0x56a878;this[_0x51228d(0x103)](this[_0x51228d(0x140)]['registerSharedOperation'](_0x2eef8));});}};O=V([k(0x0,o['Inject'](E))],O);var u=function(){var _0x508511=_0x270e92;return u=Object[_0x508511(0x8b)]||function(_0x530fff){var _0x5373f5=_0x508511;for(var _0x3ffea8,_0x520472=0x1,_0x192f33=arguments[_0x5373f5(0x108)];_0x520472<_0x192f33;_0x520472++){_0x3ffea8=arguments[_0x520472];for(var _0x11c015 in _0x3ffea8)Object['prototype'][_0x5373f5(0xbd)][_0x5373f5(0x105)](_0x3ffea8,_0x11c015)&&(_0x530fff[_0x11c015]=_0x3ffea8[_0x11c015]);}return _0x530fff;},u[_0x508511(0xeb)](this,arguments);},M=function(_0x246ca0,_0x3d73bd){var _0xeedb14=_0x270e92,_0x4a2e9c={};for(var _0x4cd63b in _0x246ca0)Object['prototype'][_0xeedb14(0xbd)][_0xeedb14(0x105)](_0x246ca0,_0x4cd63b)&&_0x3d73bd[_0xeedb14(0x107)](_0x4cd63b)<0x0&&(_0x4a2e9c[_0x4cd63b]=_0x246ca0[_0x4cd63b]);if(_0x246ca0!=null&&typeof Object[_0xeedb14(0x8f)]==_0xeedb14(0x168)){for(var _0x330687=0x0,_0x4cd63b=Object[_0xeedb14(0x8f)](_0x246ca0);_0x330687<_0x4cd63b[_0xeedb14(0x108)];_0x330687++)_0x3d73bd['indexOf'](_0x4cd63b[_0x330687])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x246ca0,_0x4cd63b[_0x330687])&&(_0x4a2e9c[_0x4cd63b[_0x330687]]=_0x246ca0[_0x4cd63b[_0x330687]]);}return _0x4a2e9c;},j=f[_0x270e92(0x14f)](function(_0x165117,_0x1cf7ad){var _0x552396=_0x270e92,_0xfada6b=_0x165117[_0x552396(0xf9)],_0x5f8768=_0x165117['id'],_0x4532af=_0x165117[_0x552396(0xb0)],_0xea734a=_0x165117[_0x552396(0x136)],_0x2ea860=M(_0x165117,['icon','id',_0x552396(0xb0),_0x552396(0x136)]),_0x5df82f=_0x552396(0x141)['concat'](_0x5f8768,'\x20')[_0x552396(0x14c)](_0x4532af||'')['trim'](),_0x4c5cc6=f[_0x552396(0x9d)]('_'['concat'](G()));return y(_0xfada6b,''['concat'](_0x5f8768),{'defIds':_0xfada6b[_0x552396(0xa1)],'idSuffix':_0x4c5cc6['current']},u({'ref':_0x1cf7ad,'className':_0x5df82f},_0x2ea860),_0xea734a);});function y(_0x420228,_0x30f43,_0x2886d6,_0x187b57,_0x43034b){var _0x804699=_0x270e92;return f[_0x804699(0x8a)](_0x420228['tag'],u(u({'key':_0x30f43},q(_0x420228,_0x2886d6,_0x43034b)),_0x187b57),(W(_0x420228,_0x2886d6)[_0x804699(0xa8)]||[])[_0x804699(0xa7)](function(_0x35be3d,_0x3132d5){var _0x6ea566=_0x804699;return y(_0x35be3d,''[_0x6ea566(0x14c)](_0x30f43,'-')[_0x6ea566(0x14c)](_0x420228[_0x6ea566(0x13d)],'-')[_0x6ea566(0x14c)](_0x3132d5),_0x2886d6,void 0x0,_0x43034b);}));}function q(_0x5cf044,_0x15f5c1,_0x4c2c9f){var _0x3ea68a=_0x270e92,_0x22373f=u({},_0x5cf044[_0x3ea68a(0x15e)]);_0x4c2c9f!=null&&_0x4c2c9f[_0x3ea68a(0xc6)]&&_0x22373f[_0x3ea68a(0x125)]===_0x3ea68a(0xc6)&&(_0x22373f[_0x3ea68a(0x125)]=_0x4c2c9f[_0x3ea68a(0xc6)]),_0x5cf044[_0x3ea68a(0x13d)]===_0x3ea68a(0x106)&&_0x22373f['id']&&(_0x22373f['id']=_0x22373f['id']+_0x15f5c1[_0x3ea68a(0xc7)]),Object[_0x3ea68a(0xcf)](_0x22373f)[_0x3ea68a(0x11e)](function(_0x50971b){var _0x34b23c=_0x3ea68a,_0x1d618e=_0x50971b[0x0],_0x2c8446=_0x50971b[0x1];_0x1d618e==='mask'&&typeof _0x2c8446=='string'&&(_0x22373f[_0x1d618e]=_0x2c8446[_0x34b23c(0x88)](/url\(#(.*)\)/,_0x34b23c(0x161)[_0x34b23c(0x14c)](_0x15f5c1[_0x34b23c(0xc7)],')')));});var _0x27a027=_0x15f5c1[_0x3ea68a(0xa1)];return!_0x27a027||_0x27a027['length']===0x0||(_0x5cf044[_0x3ea68a(0x13d)]===_0x3ea68a(0x10b)&&_0x22373f['xlink:href']&&(_0x22373f[_0x3ea68a(0x115)]=_0x22373f[_0x3ea68a(0x115)]+_0x15f5c1[_0x3ea68a(0xc7)]),Object[_0x3ea68a(0xcf)](_0x22373f)[_0x3ea68a(0x11e)](function(_0x53fce3){var _0x49ff3f=_0x3ea68a,_0x280d24=_0x53fce3[0x0],_0x52e180=_0x53fce3[0x1];typeof _0x52e180==_0x49ff3f(0x117)&&(_0x22373f[_0x280d24]=_0x52e180[_0x49ff3f(0x88)](/url\(#(.*)\)/,_0x49ff3f(0x161)[_0x49ff3f(0x14c)](_0x15f5c1[_0x49ff3f(0xc7)],')')));})),_0x22373f;}function W(_0x540e7f,_0x20e864){var _0x116056=_0x270e92,_0x5c6035,_0x2fba6b=_0x20e864[_0x116056(0xa1)];return!_0x2fba6b||_0x2fba6b[_0x116056(0x108)]===0x0?_0x540e7f:_0x540e7f['tag']===_0x116056(0x127)&&(!((_0x5c6035=_0x540e7f['children'])===null||_0x5c6035===void 0x0)&&_0x5c6035['length'])?u(u({},_0x540e7f),{'children':_0x540e7f['children'][_0x116056(0xa7)](function(_0x3dad52){var _0x1c6c85=_0x116056;return typeof _0x3dad52[_0x1c6c85(0x15e)]['id']=='string'&&_0x2fba6b&&_0x2fba6b[_0x1c6c85(0x107)](_0x3dad52[_0x1c6c85(0x15e)]['id'])>-0x1?u(u({},_0x3dad52),{'attrs':u(u({},_0x3dad52['attrs']),{'id':_0x3dad52[_0x1c6c85(0x15e)]['id']+_0x20e864[_0x1c6c85(0xc7)]})}):_0x3dad52;})}):_0x540e7f;}function G(){var _0x208c5d=_0x270e92;return Math[_0x208c5d(0x14b)]()[_0x208c5d(0xf7)](0x24)['substring'](0x2,0x8);}j[_0x270e92(0xf6)]=_0x270e92(0xd6);var B={'tag':_0x270e92(0x87),'attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x270e92(0x123),'height':'1em'},'children':[{'tag':_0x270e92(0xf4),'attrs':{'fill':_0x270e92(0xe5),'d':_0x270e92(0xe1)}},{'tag':_0x270e92(0xf4),'attrs':{'fill':_0x270e92(0xe5),'d':_0x270e92(0x129),'fillRule':_0x270e92(0xef),'clipRule':_0x270e92(0xef)}}]},P=f['forwardRef'](function(_0x4b99c8,_0x188b26){var _0x2be421=_0x270e92;return f[_0x2be421(0x8a)](j,Object['assign']({},_0x4b99c8,{'id':_0x2be421(0xe6),'ref':_0x188b26,'icon':B}));});P[_0x270e92(0xf6)]=_0x270e92(0x120);function _0x4d82(){var _0x499294=['useObservable','xlink:href','dispose','string','Button','defineProperty','LiveShareController','Subject','touchDependencies','_handleNewHost','forEach','_init','LiveShareSingle','end','includes','1em','UniverLiveSharePlugin','fill','override','defs','getUnitId','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','jsxs','NEW_CHANGESETS','toDisposable','getOwnPropertyDescriptor','init','get','You\x27re\x20following\x20the\x20presenter','set','_handleOperation','from','registerInitialStateReporter','type','extend','_mountLiveShare','_stopPresenting','LIVESHARE_REQUEST_HOST','ICommandService','_status$','@univerjs/core','tag','LiveShare','mutations','_liveShareService','univerjs-icon\x20univerjs-icon-','DesktopLiveShareController','_handleOffline','InsertSheetMutation','params','983088ARGgSk','idle','UNIVER_UNKNOWN','stopPresenting','jsx','random','concat','useState','SetZoomRatioOperation','forwardRef','setConfig','following','_univerInstanceService','433248KHErKV','getMemberID','NOT_FOLLOWING','requireSession','has','_stopFollowing','Disposable','useDependency','onCommandExecuted','You\x27re\x20presenting\x20the\x20document','7356qOQPhq','attrs','registerDependencies','_fetchOperations','url(#$1','div','parseProtocolChangeset','UNIVER_LIVE_SHARE_PLUGIN','find','unitId','BuiltInUIPart','function','getValue','next','presenting','_collabSessionService','complete','357560UqlkSQ','LiveShareService','Dropdown','CollaborationSessionService','createInstance','svg','replace','SetWorksheetActiveOperation','createElement','assign','Stop\x20presenting','registerSharedOperation','Fragment','getOwnPropertySymbols','_config','RxDisposable','Stop\x20following','symbol','_reporters','_handleOnline','LIVESHARE_TERMINATE','live-share.config','default','FOLLOWING','_startPresenting','LIVESHARE_OPERATION','throttleTime','useRef','then','pipe','IUIPartsService','defIds','1053285RvRkFb','_beIdle','data','105KotKmf','IConfigService','map','children','_startLiveShareCoordinator','_uiPartsService','tryStartPresenting','1408148EOCNmB','@univerjs-pro/collaboration','getTypeOfUnitAdded$','SetScrollOperation','className','values','11RKaeaT','getCurrentTypeOfUnit$','_commandDisposable','subscribe','@univerjs/sheets-ui','8SphTwz','_entities','_unitID','getTypeOfUnitDisposed$','3005gzwKiH','stopFollowing','hasOwnProperty','react','presenter','getInitialStates','_sharedOperations','delete','text','react/jsx-runtime','LiveShareCoordinator','colorChannel1','idSuffix','connectInjector','@univerjs/ui','IDLE','@univerjs-pro/collaboration-client','getConfig','UNIVER_SHEET','stringify','entries','_configService','asObservable','Inject','mergeOverrideWithDependencies','not-following','Module','UniverIcon','LIVESHARE_NEW_HOST','reverse','univer-w-full\x20univer-mb-3\x20univer-text-sm','status$','PRESENTING','Injector','parse','useEffect','_collabSession','_injector','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','LIVESHARE_FETCH_OPERATIONS','registerComponent','send','currentColor','live-share-single','_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','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','_handleNewChangeSets','apply','current','CollaborationEvent','clsx','evenodd','takeUntil','SAME_OPERATION_SHARE_INTERVAL','UniverInstanceType','@univerjs/design','path','univer-size-4','displayName','toString','button','icon','SessionStatus','shouldShareOperation','_commandService','rxjs/operators','BehaviorSubject','merge','getLiveShareCoordinator','OPERATION','clear','disposeWithMe','ONLINE','call','mask','indexOf','length','toStringTag','CommandType','use','OFFLINE','dispose$','_startFollowing','startFollowing','_status','executeCommand','12865290PbuAIi','offline'];_0x4d82=function(){return _0x499294;};return _0x4d82();}function _0x535b(_0x7caa26,_0x3e976c){var _0x4d82f5=_0x4d82();return _0x535b=function(_0x535b7e,_0x9e8f86){_0x535b7e=_0x535b7e-0x87;var _0x368a07=_0x4d82f5[_0x535b7e];return _0x368a07;},_0x535b(_0x7caa26,_0x3e976c);}var Y=Object['getOwnPropertyDescriptor'],R=(_0x139fe0,_0x1c56f,_0x47e209,_0x52055e)=>{for(var _0x35b1e6=_0x52055e>0x1?void 0x0:_0x52055e?Y(_0x1c56f,_0x47e209):_0x1c56f,_0x2a07a8=_0x139fe0['length']-0x1,_0x570650;_0x2a07a8>=0x0;_0x2a07a8--)(_0x570650=_0x139fe0[_0x2a07a8])&&(_0x35b1e6=_0x570650(_0x35b1e6)||_0x35b1e6);return _0x35b1e6;},S=(_0x396d4a,_0x475fd0)=>(_0x520e41,_0x53e9d1)=>_0x475fd0(_0x520e41,_0x53e9d1,_0x396d4a);exports['LiveShareController']=class extends o[_0x270e92(0x91)]{constructor(_0x5e91ed,_0x5a8bfc,_0x4b9233){var _0x5828f5=_0x270e92;super(),v(this,'_entities',new Map()),(this[_0x5828f5(0x152)]=_0x5e91ed,this[_0x5828f5(0xe0)]=_0x5a8bfc,this[_0x5828f5(0x16c)]=_0x4b9233,this[_0x5828f5(0x11f)]());}async['getLiveShareCoordinator'](_0x35543b){var _0x1ca9d8=_0x270e92;return this[_0x1ca9d8(0xb8)][_0x1ca9d8(0x157)](_0x35543b)||await this[_0x1ca9d8(0xa9)](_0x35543b),this[_0x1ca9d8(0xb8)][_0x1ca9d8(0x12f)](_0x35543b);}['_init'](){var _0x3030ca=_0x270e92;this[_0x3030ca(0x152)][_0x3030ca(0xae)](o['UniverInstanceType'][_0x3030ca(0xcd)])[_0x3030ca(0x9f)](b[_0x3030ca(0xf0)](this['dispose$']))[_0x3030ca(0xb5)](async _0x2f5bf7=>{var _0x59b1e5=_0x3030ca;const _0x47235f=_0x2f5bf7[_0x59b1e5(0x128)]();this[_0x59b1e5(0xb8)][_0x59b1e5(0x157)](_0x47235f)||this['_startLiveShareCoordinator'](_0x47235f);}),this[_0x3030ca(0x152)][_0x3030ca(0xba)](o[_0x3030ca(0xf2)]['UNIVER_SHEET'])[_0x3030ca(0x9f)](b[_0x3030ca(0xf0)](this[_0x3030ca(0x10d)]))[_0x3030ca(0xb5)](_0x58ddb3=>{var _0x58519b=_0x3030ca;const _0x24ef49=_0x58ddb3['getUnitId'](),_0xef076a=this[_0x58519b(0xb8)]['get'](_0x24ef49);_0xef076a==null||_0xef076a[_0x58519b(0x116)]();});}async[_0x270e92(0xa9)](_0x5dbbaf){var _0x4059bc=_0x270e92;const _0x339802=await this[_0x4059bc(0x16c)][_0x4059bc(0x156)](_0x5dbbaf),_0x11c6c1=this[_0x4059bc(0xe0)][_0x4059bc(0x172)](exports[_0x4059bc(0xc5)],_0x5dbbaf,_0x339802);return _0x11c6c1[_0x4059bc(0x12e)](),this[_0x4059bc(0xb8)][_0x4059bc(0x131)](_0x5dbbaf,_0x11c6c1),_0x11c6c1;}},exports[_0x270e92(0x11a)]=R([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x270e92(0xd2)](o[_0x270e92(0xdc)])),S(0x2,o[_0x270e92(0xd2)](m[_0x270e92(0x171)]))],exports[_0x270e92(0x11a)]);var h=(_0x2dee9f=>(_0x2dee9f[_0x270e92(0x10c)]=_0x270e92(0x113),_0x2dee9f[_0x270e92(0xca)]=_0x270e92(0x147),_0x2dee9f[_0x270e92(0x99)]='following',_0x2dee9f[_0x270e92(0x155)]=_0x270e92(0xd4),_0x2dee9f[_0x270e92(0xdb)]='presenting',_0x2dee9f))(h||{});const Z=_0x270e92(0xf1),J=0xc8;exports[_0x270e92(0xc5)]=class extends o[_0x270e92(0x91)]{constructor(_0x5984b1,_0x3b8c34,_0xc0072f,_0x2fcd80,_0x45cf8e){var _0x306c1b=_0x270e92;super(),v(this,'_status$',new x[(_0x306c1b(0xfe))]('idle')),v(this,_0x306c1b(0xda),this[_0x306c1b(0x13b)][_0x306c1b(0xd1)]()),v(this,_0x306c1b(0x11f),!0x1),v(this,_0x306c1b(0xb4),null),v(this,'_presenter',null),(this[_0x306c1b(0xb9)]=_0x5984b1,this[_0x306c1b(0xdf)]=_0x3b8c34,this[_0x306c1b(0xd0)]=_0xc0072f,this['_liveShareService']=_0x2fcd80,this['_commandService']=_0x45cf8e);}get[_0x270e92(0x110)](){var _0x5a4451=_0x270e92;return this[_0x5a4451(0x13b)][_0x5a4451(0x169)]();}[_0x270e92(0x116)](){var _0x416381=_0x270e92,_0x422f3b;(_0x422f3b=this[_0x416381(0xb4)])==null||_0x422f3b[_0x416381(0x116)](),this['_status$']['next'](_0x416381(0x147)),this[_0x416381(0x13b)][_0x416381(0x16d)]();}[_0x270e92(0x12e)](){var _0x8bdb52=_0x270e92;this[_0x8bdb52(0x11f)]||(this[_0x8bdb52(0x11f)]=!0x0,this['_collabSession']['sessionStatus$'][_0x8bdb52(0x9f)](b['takeUntil'](this[_0x8bdb52(0x10d)]))[_0x8bdb52(0xb5)](_0xfde998=>{var _0x1fef4e=_0x8bdb52;switch(_0xfde998){case m['SessionStatus']['OFFLINE']:this[_0x1fef4e(0x143)]();break;case m[_0x1fef4e(0xfa)][_0x1fef4e(0x104)]:this['_handleOnline']();break;}}),this['_collabSession']['event$'][_0x8bdb52(0x9f)](b[_0x8bdb52(0xf0)](this['dispose$']))['subscribe'](_0x2f3692=>{var _0x2ee2fa=_0x8bdb52;const {eventID:_0x41359a}=_0x2f3692;switch(_0x41359a){case _[_0x2ee2fa(0xed)][_0x2ee2fa(0xd7)]:this[_0x2ee2fa(0x11d)](_0x2f3692);break;case _[_0x2ee2fa(0xed)][_0x2ee2fa(0x9b)]:this[_0x2ee2fa(0x132)](_0x2f3692);break;case _['CollaborationEvent'][_0x2ee2fa(0x96)]:this['_handleTerminate']();break;case _[_0x2ee2fa(0xed)][_0x2ee2fa(0x12b)]:this['_handleNewChangeSets'](_0x2f3692);break;}}));}[_0x270e92(0xab)](){var _0x4d2ca8=_0x270e92;this[_0x4d2ca8(0xdf)][_0x4d2ca8(0xe4)]({'eventID':_['CollaborationEvent'][_0x4d2ca8(0x139)],'data':{'unitID':this[_0x4d2ca8(0xb9)],'userID':this['_collabSession'][_0x4d2ca8(0x154)]()}},this['_unitID']);}[_0x270e92(0x149)](){var _0x4d4b25=_0x270e92;this[_0x4d4b25(0x110)]==='presenting'&&(this[_0x4d4b25(0x13b)][_0x4d4b25(0x16a)]('idle'),this['_collabSession']['send']({'eventID':_[_0x4d4b25(0xed)][_0x4d4b25(0x96)],'data':{'unitID':this[_0x4d4b25(0xb9)]}},this[_0x4d4b25(0xb9)]));}[_0x270e92(0x10f)](){var _0x229a46=_0x270e92;this[_0x229a46(0x110)]===_0x229a46(0xd4)&&(this[_0x229a46(0x13b)][_0x229a46(0x16a)](_0x229a46(0x151)),this[_0x229a46(0x10e)]());}[_0x270e92(0xbc)](){var _0x2e5e8f=_0x270e92;this[_0x2e5e8f(0x110)]===_0x2e5e8f(0x151)&&this[_0x2e5e8f(0x158)]();}['_handleNewHost'](_0x2d957e){var _0x6e94c1=_0x270e92;const {presenter:_0x181e29}=_0x2d957e[_0x6e94c1(0xa4)],_0x252a4f=this[_0x6e94c1(0xdf)]['getMemberID']();this[_0x6e94c1(0xe7)]=_0x181e29,_0x181e29===_0x252a4f?(this[_0x6e94c1(0x158)](),this[_0x6e94c1(0x9a)]()):this['_status']!==_0x6e94c1(0xd4)&&(this[_0x6e94c1(0x138)](),this['_startFollowing']());}[_0x270e92(0x160)](){var _0x36cfa4=_0x270e92;const _0x2b50d4={'eventID':_[_0x36cfa4(0xed)][_0x36cfa4(0xe2)]};this[_0x36cfa4(0xdf)][_0x36cfa4(0xe4)](_0x2b50d4,this[_0x36cfa4(0xb9)]);}['_handleTerminate'](){var _0x1579d5=_0x270e92;this[_0x1579d5(0xe7)]=null,this[_0x1579d5(0x110)]!=='presenting'&&this[_0x1579d5(0xa3)]();}[_0x270e92(0xea)](_0x37c0fd){var _0x461535=_0x270e92;if(this[_0x461535(0x110)]===_0x461535(0x151)&&this[_0x461535(0xe7)]===_0x37c0fd[_0x461535(0xa4)]['memberID']){const _0x18c903=_[_0x461535(0x163)](_0x37c0fd[_0x461535(0xa4)])[_0x461535(0x13f)][_0x461535(0xd8)]()[_0x461535(0x165)](_0x43ea08=>_0x43ea08['id']===C[_0x461535(0x144)]['id']);if(_0x18c903){const _0x33e86d=_0x18c903['params'][_0x461535(0x166)],_0x59d00b=_0x18c903['params']['sheet']['id'];setTimeout(()=>{var _0x3611c6=_0x461535;this['_commandService'][_0x3611c6(0x111)](C[_0x3611c6(0x89)]['id'],{'unitId':_0x33e86d,'subUnitId':_0x59d00b},{'fromCollab':!0x0});});}}}[_0x270e92(0x9a)](){var _0x1c750d=_0x270e92;this[_0x1c750d(0x13b)][_0x1c750d(0x16a)]('presenting');const _0x220960=new Map(),_0x5a5721=this[_0x1c750d(0xb4)]=new o['DisposableCollection']();_0x5a5721['add'](o[_0x1c750d(0x12c)](()=>{var _0x4894b9=_0x1c750d;_0x220960['forEach'](_0x3701b4=>_0x3701b4[_0x4894b9(0x16d)]()),_0x220960[_0x4894b9(0x102)]();})),_0x5a5721['add'](this[_0x1c750d(0xfc)][_0x1c750d(0x15b)](_0x842c7=>{var _0x3d8b3b=_0x1c750d,_0x53bfae;if(_0x842c7[_0x3d8b3b(0x135)]!==o[_0x3d8b3b(0x10a)][_0x3d8b3b(0x101)]||!this[_0x3d8b3b(0x140)][_0x3d8b3b(0xfb)](_0x842c7['id']))return;const {id:_0x71bf2d}=_0x842c7;let _0x487908;_0x220960[_0x3d8b3b(0x157)](_0x71bf2d)?_0x487908=_0x220960['get'](_0x71bf2d):(_0x487908=new x[(_0x3d8b3b(0x11b))](),_0x220960[_0x3d8b3b(0x131)](_0x71bf2d,_0x487908),_0x487908[_0x3d8b3b(0x9f)](b[_0x3d8b3b(0x9c)]((_0x53bfae=this['_configService'][_0x3d8b3b(0xcc)](Z))!=null?_0x53bfae:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x22c676=>{var _0x40c7a6=_0x3d8b3b;this['_collabSession']['send']({'eventID':_[_0x40c7a6(0xed)][_0x40c7a6(0x9b)],'data':{'unitID':this[_0x40c7a6(0xb9)],'operations':{[_0x22c676['id']]:{'id':_0x22c676['id'],'params':JSON[_0x40c7a6(0xce)](_0x22c676[_0x40c7a6(0x145)])}}}},this[_0x40c7a6(0xb9)]);})),_0x487908[_0x3d8b3b(0x16a)](_0x842c7);})),this[_0x1c750d(0x140)][_0x1c750d(0xc0)](this[_0x1c750d(0xb9)])['forEach'](_0x262278=>this[_0x1c750d(0xdf)][_0x1c750d(0xe4)]({'eventID':_['CollaborationEvent'][_0x1c750d(0x9b)],'data':{'unitID':this[_0x1c750d(0xb9)],'operations':{[_0x262278['id']]:{'id':_0x262278['id'],'params':JSON['stringify'](_0x262278[_0x1c750d(0x145)])}}}},this[_0x1c750d(0xb9)]));}['_stopPresenting'](){var _0x2421ed=_0x270e92,_0x2675af;this[_0x2421ed(0x13b)][_0x2421ed(0x16a)](_0x2421ed(0x147)),(_0x2675af=this[_0x2421ed(0xb4)])==null||_0x2675af['dispose'](),this['_commandDisposable']=null;}[_0x270e92(0x10e)](){var _0x550110=_0x270e92,_0x3ab06c;(_0x3ab06c=this[_0x550110(0xb4)])==null||_0x3ab06c['dispose'](),this[_0x550110(0x13b)][_0x550110(0x16a)](_0x550110(0x151));}[_0x270e92(0xa3)](){var _0x474ff9=_0x270e92,_0x48d66b;this[_0x474ff9(0x13b)][_0x474ff9(0x16a)]('idle'),(_0x48d66b=this[_0x474ff9(0xb4)])==null||_0x48d66b['dispose'](),this[_0x474ff9(0xb4)]=null;}['_stopFollowing'](){var _0x4689e4=_0x270e92,_0x42265c;this['_status$'][_0x4689e4(0x16a)](_0x4689e4(0xd4)),(_0x42265c=this[_0x4689e4(0xb4)])==null||_0x42265c['dispose']();}[_0x270e92(0x132)](_0x3a91fe){var _0x390248=_0x270e92;if([_0x390248(0x16b),_0x390248(0xd4),_0x390248(0x113)][_0x390248(0x122)](this[_0x390248(0x110)])||!_0x3a91fe[_0x390248(0xa4)][_0x390248(0xbf)]||_0x3a91fe[_0x390248(0xa4)][_0x390248(0xbf)]===this[_0x390248(0xdf)][_0x390248(0x154)]())return;this[_0x390248(0x110)]===_0x390248(0x147)&&this[_0x390248(0x10e)]();const _0x18f850=_0x3a91fe[_0x390248(0xa4)]['operations'];Object[_0x390248(0xb1)](_0x18f850)[_0x390248(0x11e)](_0x29771f=>{var _0x4978d8=_0x390248;this['_commandService']['executeCommand'](_0x29771f['id'],_0x29771f[_0x4978d8(0x145)]?JSON[_0x4978d8(0xdd)](_0x29771f[_0x4978d8(0x145)]):null,{'fromCollab':!0x0});});}[_0x270e92(0x143)](){var _0x3bc8ee=_0x270e92,_0x4277e7;this[_0x3bc8ee(0x13b)][_0x3bc8ee(0x16a)](_0x3bc8ee(0x113)),(_0x4277e7=this['_commandDisposable'])==null||_0x4277e7['dispose']();}[_0x270e92(0x95)](){var _0x3dde14=_0x270e92;this['_status$'][_0x3dde14(0x16a)](_0x3dde14(0x147)),this[_0x3dde14(0x160)]();}},exports['LiveShareCoordinator']=R([S(0x2,o['IConfigService']),S(0x3,o['Inject'](E)),S(0x4,o[_0x270e92(0x13a)])],exports[_0x270e92(0xc5)]);function A(){var _0x1ae74f=_0x270e92;const _0xa31e7c=p['useDependency'](exports[_0x1ae74f(0x11a)]),_0x2c9d50=p[_0x1ae74f(0x15a)](o['IUniverInstanceService']),_0x4d3323=p[_0x1ae74f(0x114)](()=>_0x2c9d50[_0x1ae74f(0xb3)](o[_0x1ae74f(0xf2)][_0x1ae74f(0xcd)]),void 0x0,!0x1,[]),[_0x21d5dd,_0x7379e8]=f[_0x1ae74f(0x14d)](null),[_0x229c77,_0x55ac2b]=f[_0x1ae74f(0x14d)](h['IDLE']),_0x18b660=f[_0x1ae74f(0x9d)](null);return f[_0x1ae74f(0xde)](()=>(_0x4d3323&&_0xa31e7c[_0x1ae74f(0x100)](_0x4d3323[_0x1ae74f(0x128)]())[_0x1ae74f(0x9e)](_0x1f410d=>{var _0x27dfa3=_0x1ae74f;_0x7379e8(_0x1f410d),_0x18b660[_0x27dfa3(0xec)]=_0x1f410d['status$'][_0x27dfa3(0xb5)](_0x135677=>{_0x55ac2b(_0x135677);});}),()=>{var _0x2d5d77;(_0x2d5d77=_0x18b660['current'])==null||_0x2d5d77['unsubscribe'](),_0x18b660['current']=null;}),[_0x4d3323,_0xa31e7c]),_0x21d5dd?l[_0x1ae74f(0x14a)](g[_0x1ae74f(0x170)],{'align':_0x1ae74f(0x121),'disabled':_0x229c77===h[_0x1ae74f(0x10c)],'className':_0x1ae74f(0xe8),'overlay':l[_0x1ae74f(0x14a)](K,{'status':_0x229c77,'coordinator':_0x21d5dd}),'children':l[_0x1ae74f(0x14a)]('button',{'className':g[_0x1ae74f(0xee)](_0x1ae74f(0xe9),{'univer-cursor-not-allowed':_0x229c77===h[_0x1ae74f(0x10c)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x229c77!==h[_0x1ae74f(0x10c)]}),'type':_0x1ae74f(0xf8),'children':l[_0x1ae74f(0x14a)](P,{'className':_0x1ae74f(0xf5)})})}):null;}function K(_0x47e8d0){var _0x5c735e=_0x270e92;const {status:_0x506bc2,coordinator:_0x1e5251}=_0x47e8d0;switch(_0x506bc2){case h['IDLE']:return l['jsx'](z,{'coordinator':_0x1e5251});case h[_0x5c735e(0x99)]:return l[_0x5c735e(0x14a)](Q,{'coordinator':_0x1e5251});case h['NOT_FOLLOWING']:return l[_0x5c735e(0x14a)](X,{'coordinator':_0x1e5251});case h[_0x5c735e(0x10c)]:return l[_0x5c735e(0x14a)](te,{});case h[_0x5c735e(0xdb)]:return l[_0x5c735e(0x14a)](ee,{'coordinator':_0x1e5251});default:return null;}}function z(_0x169195){var _0x2a9992=_0x270e92;const {coordinator:_0x56242b}=_0x169195;return l[_0x2a9992(0x12a)](l['Fragment'],{'children':[l[_0x2a9992(0x14a)](_0x2a9992(0x162),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'Present\x20this\x20document'}),l[_0x2a9992(0x14a)](g[_0x2a9992(0x118)],{'onClick':()=>_0x56242b['tryStartPresenting'](),'children':'Start'})]});}function Q(_0x6119){var _0x5915c6=_0x270e92;const {coordinator:_0x5e4d94}=_0x6119;return l[_0x5915c6(0x12a)](l['Fragment'],{'children':[l[_0x5915c6(0x14a)](_0x5915c6(0x162),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5915c6(0x130)}),l[_0x5915c6(0x14a)](g[_0x5915c6(0x118)],{'onClick':()=>_0x5e4d94['stopFollowing'](),'children':_0x5915c6(0x92)})]});}function X(_0x54216c){var _0x1a3647=_0x270e92;const {coordinator:_0x18cba1}=_0x54216c;return l['jsxs'](l[_0x1a3647(0x8e)],{'children':[l[_0x1a3647(0x14a)](_0x1a3647(0x162),{'className':_0x1a3647(0xd9),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l['jsx'](g[_0x1a3647(0x118)],{'variant':_0x1a3647(0xc3),'onClick':()=>_0x18cba1[_0x1a3647(0x10f)](),'children':'Start\x20following'})]});}function ee(_0x262990){var _0x2e291e=_0x270e92;const {coordinator:_0x1eb70f}=_0x262990;return l[_0x2e291e(0x12a)](l[_0x2e291e(0x8e)],{'children':[l[_0x2e291e(0x14a)]('div',{'className':_0x2e291e(0xd9),'children':_0x2e291e(0x15c)}),l[_0x2e291e(0x14a)](g[_0x2e291e(0x118)],{'variant':_0x2e291e(0x98),'onClick':()=>_0x1eb70f[_0x2e291e(0x149)](),'children':_0x2e291e(0x8c)})]});}function te(){var _0x1f305a=_0x270e92;return l[_0x1f305a(0x14a)](l[_0x1f305a(0x8e)],{'children':'You\x27are\x20offline.'});}var ie=Object[_0x270e92(0x12d)],ne=(_0x32e4fd,_0xb5de80,_0x8874ef,_0xa22e37)=>{var _0x461d76=_0x270e92;for(var _0x1cf0ce=_0xa22e37>0x1?void 0x0:_0xa22e37?ie(_0xb5de80,_0x8874ef):_0xb5de80,_0x3bac63=_0x32e4fd[_0x461d76(0x108)]-0x1,_0xe6cb4c;_0x3bac63>=0x0;_0x3bac63--)(_0xe6cb4c=_0x32e4fd[_0x3bac63])&&(_0x1cf0ce=_0xe6cb4c(_0x1cf0ce)||_0x1cf0ce);return _0x1cf0ce;},N=(_0x16490d,_0x1f0f15)=>(_0xb9b905,_0x342ab4)=>_0x1f0f15(_0xb9b905,_0x342ab4,_0x16490d);exports['DesktopLiveShareController']=class extends o['Disposable']{constructor(_0xa917cf,_0x18cb8e){var _0x35168d=_0x270e92;super(),this[_0x35168d(0xe0)]=_0xa917cf,this[_0x35168d(0xaa)]=_0x18cb8e,this['_mountLiveShare']();}[_0x270e92(0x137)](){var _0x1c690f=_0x270e92;this['disposeWithMe'](this[_0x1c690f(0xaa)][_0x1c690f(0xe3)](p[_0x1c690f(0x167)]['HEADER_MENU'],()=>p[_0x1c690f(0xc8)](A,this[_0x1c690f(0xe0)])));}},exports[_0x270e92(0x142)]=ne([N(0x0,o[_0x270e92(0xd2)](o[_0x270e92(0xdc)])),N(0x1,p[_0x270e92(0xa0)])],exports['DesktopLiveShareController']);var re=Object[_0x270e92(0x119)],se=Object['getOwnPropertyDescriptor'],oe=(_0x3a6740,_0x5a31bf,_0x40dda0)=>_0x5a31bf in _0x3a6740?re(_0x3a6740,_0x5a31bf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x40dda0}):_0x3a6740[_0x5a31bf]=_0x40dda0,ae=(_0x2a44a8,_0x4070c0,_0x16149e,_0x18a5e8)=>{for(var _0x5da523=_0x18a5e8>0x1?void 0x0:_0x18a5e8?se(_0x4070c0,_0x16149e):_0x4070c0,_0x310d2b=_0x2a44a8['length']-0x1,_0x346b87;_0x310d2b>=0x0;_0x310d2b--)(_0x346b87=_0x2a44a8[_0x310d2b])&&(_0x5da523=_0x346b87(_0x5da523)||_0x5da523);return _0x5da523;},w=(_0x798357,_0x1a1bc4)=>(_0x448993,_0x55521f)=>_0x1a1bc4(_0x448993,_0x55521f,_0x798357),T=(_0x3746d2,_0x38d85a,_0x5d48f5)=>oe(_0x3746d2,typeof _0x38d85a!=_0x270e92(0x93)?_0x38d85a+'':_0x38d85a,_0x5d48f5);const le=_0x270e92(0x164);exports[_0x270e92(0x124)]=class extends o['Plugin']{constructor(_0x3087b2=L,_0x4aa2cf,_0x5436eb){var _0x1c6297=_0x270e92;super(),this[_0x1c6297(0x90)]=_0x3087b2,this[_0x1c6297(0xe0)]=_0x4aa2cf,this[_0x1c6297(0xd0)]=_0x5436eb;const {..._0x7a3dcb}=o[_0x1c6297(0xff)]({},L,this[_0x1c6297(0x90)]);this[_0x1c6297(0xd0)][_0x1c6297(0x150)]($,_0x7a3dcb);}['onStarting'](){var _0x601419=_0x270e92;o[_0x601419(0x15f)](this[_0x601419(0xe0)],o[_0x601419(0xd3)]([[E],[exports[_0x601419(0x11a)]],[O],[exports[_0x601419(0x142)]]],this[_0x601419(0x90)][_0x601419(0x126)])),o[_0x601419(0x11c)](this[_0x601419(0xe0)],[[O]]);}['onRendered'](){var _0x1f2a13=_0x270e92;o[_0x1f2a13(0x11c)](this['_injector'],[[exports[_0x1f2a13(0x142)]]]);}},T(exports[_0x270e92(0x124)],'type',o['UniverInstanceType'][_0x270e92(0x148)]),T(exports[_0x270e92(0x124)],'pluginName',le),exports['UniverLiveSharePlugin']=ae([o['DependentOn'](m['UniverCollaborationClientPlugin']),w(0x1,o[_0x270e92(0xd2)](o[_0x270e92(0xdc)])),w(0x2,o[_0x270e92(0xa6)])],exports['UniverLiveSharePlugin']),exports[_0x270e92(0x13e)]=A,exports[_0x270e92(0x16f)]=E,exports['LiveShareStatus']=h;
|
|
1
|
+
'use strict';var _0x577bce=_0x4d8b;(function(_0x34f480,_0x3ccf1d){var _0x34204a=_0x4d8b,_0x224633=_0x34f480();while(!![]){try{var _0x5ea4b2=-parseInt(_0x34204a(0x24c))/0x1*(parseInt(_0x34204a(0x258))/0x2)+parseInt(_0x34204a(0x1e0))/0x3*(-parseInt(_0x34204a(0x2ae))/0x4)+-parseInt(_0x34204a(0x29a))/0x5+parseInt(_0x34204a(0x1f2))/0x6+parseInt(_0x34204a(0x2a8))/0x7*(parseInt(_0x34204a(0x233))/0x8)+parseInt(_0x34204a(0x261))/0x9*(-parseInt(_0x34204a(0x1db))/0xa)+parseInt(_0x34204a(0x280))/0xb;if(_0x5ea4b2===_0x3ccf1d)break;else _0x224633['push'](_0x224633['shift']());}catch(_0x17c728){_0x224633['push'](_0x224633['shift']());}}}(_0x1c40,0x96e69));var U=Object[_0x577bce(0x29f)],F=(_0x384dfc,_0x1b312a,_0x27d067)=>_0x1b312a in _0x384dfc?U(_0x384dfc,_0x1b312a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x27d067}):_0x384dfc[_0x1b312a]=_0x27d067,v=(_0x22cb18,_0x3f5da1,_0x33c823)=>F(_0x22cb18,typeof _0x3f5da1!='symbol'?_0x3f5da1+'':_0x3f5da1,_0x33c823);Object[_0x577bce(0x29f)](exports,Symbol['toStringTag'],{'value':_0x577bce(0x28c)});function _0x1c40(){var _0x25eeb7=['LIVESHARE_TERMINATE','1929893VSLKzp','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','hasOwnProperty','IUniverInstanceService','has','_collabSessionService','92QDMtha','ICommandService','next','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','You\x27re\x20not\x20following\x20the\x20presenter','_mountLiveShare','status$','sessionStatus$','ONLINE','init','SetScrollOperation','@univerjs-pro/collaboration-client','type','_startFollowing','executeCommand','concat','3830XPbvNV','_config','throttleTime','LiveShareController','pluginName','79773UboNKm','getUnitId','stopPresenting','clear','_handleOffline','xlink:href','_presenter','registerSharedOperation','path','clsx','RxDisposable','PRESENTING','fill','getConfig','takeUntil','getLiveShareCoordinator','_sharedOperations','IConfigService','4110222oWYrlw','toString','add','LiveShareCoordinator','trim','dispose$','Fragment','presenter','assign','SessionStatus','live-share.config','params','rxjs','url(#$1','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','getMemberID','CommandType','setConfig','useState','includes','shouldShareOperation','stringify','Present\x20this\x20document','OFFLINE','onRendered','_status','stopFollowing','IDLE','_handleOperation','touchDependencies','evenodd','univer-size-4','LiveShareStatus','operations','parse','LIVESHARE_REQUEST_HOST','DisposableCollection','getTypeOfUnitDisposed$','event$','pipe','not-following','Button','length','icon','UniverInstanceType','_injector','get','CollaborationSessionService','jsx','symbol','_reporters','UNIVER_LIVE_SHARE_PLUGIN','dispose','displayName','mask','Disposable','find','disposeWithMe','useDependency','apply','defs','You\x27are\x20offline.','registerDependencies','NEW_CHANGESETS','offline','8BBtjDX','SetWorksheetActiveOperation','_configService','Inject','_liveShareService','jsxs','parseProtocolChangeset','values','_stopPresenting','DependentOn','data','tag','UniverCollaborationClientPlugin','Injector','presenting','tryStartPresenting','_handleNewHost','entries','InsertSheetMutation','unsubscribe','indexOf','_status$','toDisposable','call','LiveShare','1IQAYwI','_beIdle','_startLiveShareCoordinator','replace','currentColor','react','getInitialStates','_fetchOperations','CollaborationEvent','attrs','delete','set','980862otohut','idSuffix','unitId','LiveShareSingle','Subject','map','complete','mergeOverrideWithDependencies','onCommandExecuted','9567ErqfqT','univer-w-full\x20univer-mb-3\x20univer-text-sm','getCurrentTypeOfUnit$','colorChannel1','_uiPartsService','button','forEach','@univerjs-pro/collaboration','UniverLiveSharePlugin','string','defIds','_univerInstanceService','1em','BehaviorSubject','extend','subscribe','You\x27re\x20presenting\x20the\x20document','className','UniverIcon','children','@univerjs/sheets-ui','Dropdown','current','_handleNewChangeSets','createElement','_stopFollowing','following','sheet','IUIPartsService','prototype','from','22365684sqFmSA','_entities','send','DesktopLiveShareController','random','registerComponent','onStarting','OPERATION','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','text','_collabSession','idle','Module','forwardRef','_init','getOwnPropertyDescriptor','getOwnPropertySymbols','override','useRef','LIVESHARE_OPERATION','_handleOnline','startFollowing','LIVESHARE_FETCH_OPERATIONS','use','@univerjs/design','_unitID','4333690xJivdM','UNIVER_SHEET','getValue','div','LiveShareService','defineProperty','LIVESHARE_NEW_HOST','FOLLOWING','_commandDisposable','You\x27re\x20following\x20the\x20presenter','_startPresenting','_commandService','Start\x20following'];_0x1c40=function(){return _0x25eeb7;};return _0x1c40();}const m=require(_0x577bce(0x1d6)),o=require('@univerjs/core'),C=require('@univerjs/sheets'),D=require(_0x577bce(0x275)),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require(_0x577bce(0x298)),f=require(_0x577bce(0x251)),_=require(_0x577bce(0x268)),x=require(_0x577bce(0x1fe)),b=require('rxjs/operators'),$=_0x577bce(0x1fc),L={};function _0x4d8b(_0x50f57c,_0x309bb7){var _0x1c404b=_0x1c40();return _0x4d8b=function(_0x4d8b3e,_0x1c2450){_0x4d8b3e=_0x4d8b3e-0x1d6;var _0x25d448=_0x1c404b[_0x4d8b3e];return _0x25d448;},_0x4d8b(_0x50f57c,_0x309bb7);}class E extends o[_0x577bce(0x229)]{constructor(){var _0x29e8f8=_0x577bce;super(...arguments),v(this,'_sharedOperations',new Set()),v(this,_0x29e8f8(0x224),new Set());}[_0x577bce(0x1e7)](_0x1916f7){var _0x2ad752=_0x577bce;return this['_sharedOperations'][_0x2ad752(0x1f4)](_0x1916f7),o[_0x2ad752(0x249)](()=>this['_sharedOperations'][_0x2ad752(0x256)](_0x1916f7));}['registerInitialStateReporter'](_0x594aba){var _0x1a59d9=_0x577bce;return this[_0x1a59d9(0x224)][_0x1a59d9(0x1f4)](_0x594aba),o[_0x1a59d9(0x249)](()=>this[_0x1a59d9(0x224)][_0x1a59d9(0x256)](_0x594aba));}[_0x577bce(0x206)](_0x2f3d5b){var _0x4ed7b6=_0x577bce;return this[_0x4ed7b6(0x1f0)]['has'](_0x2f3d5b);}[_0x577bce(0x252)](_0x2fd8d7){var _0x3f2457=_0x577bce;return Array[_0x3f2457(0x27f)](this[_0x3f2457(0x224)])[_0x3f2457(0x25d)](_0x24e5c0=>_0x24e5c0(_0x2fd8d7));}}var H=Object[_0x577bce(0x28f)],V=(_0x6d9ef8,_0x3eb8ca,_0x2dbd6d,_0x21f0d5)=>{for(var _0x56d5ed=_0x21f0d5>0x1?void 0x0:_0x21f0d5?H(_0x3eb8ca,_0x2dbd6d):_0x3eb8ca,_0x3177d6=_0x6d9ef8['length']-0x1,_0x4bbde3;_0x3177d6>=0x0;_0x3177d6--)(_0x4bbde3=_0x6d9ef8[_0x3177d6])&&(_0x56d5ed=_0x4bbde3(_0x56d5ed)||_0x56d5ed);return _0x56d5ed;},k=(_0x1f1d26,_0x1f1bee)=>(_0x14ff41,_0x199493)=>_0x1f1bee(_0x14ff41,_0x199493,_0x1f1d26);let O=class extends o[_0x577bce(0x229)]{constructor(_0x1a7d09){var _0x51926d=_0x577bce;super(),this['_liveShareService']=_0x1a7d09,this[_0x51926d(0x28e)]();}[_0x577bce(0x28e)](){var _0x521230=_0x577bce;[D['SetZoomRatioOperation']['id'],D[_0x521230(0x2b8)]['id'],C[_0x521230(0x234)]['id']][_0x521230(0x267)](_0x591df5=>{var _0x1d2d0d=_0x521230;this[_0x1d2d0d(0x22b)](this[_0x1d2d0d(0x237)][_0x1d2d0d(0x1e7)](_0x591df5));});}};O=V([k(0x0,o[_0x577bce(0x236)](E))],O);var u=function(){var _0x1cd308=_0x577bce;return u=Object[_0x1cd308(0x1fa)]||function(_0x53b154){var _0xd5c743=_0x1cd308;for(var _0x3db778,_0x1c7ff7=0x1,_0x5cf502=arguments[_0xd5c743(0x21c)];_0x1c7ff7<_0x5cf502;_0x1c7ff7++){_0x3db778=arguments[_0x1c7ff7];for(var _0xef8ffa in _0x3db778)Object[_0xd5c743(0x27e)]['hasOwnProperty']['call'](_0x3db778,_0xef8ffa)&&(_0x53b154[_0xef8ffa]=_0x3db778[_0xef8ffa]);}return _0x53b154;},u[_0x1cd308(0x22d)](this,arguments);},M=function(_0x25dfe3,_0x13d443){var _0x1c8dc2=_0x577bce,_0x255887={};for(var _0x4574ad in _0x25dfe3)Object[_0x1c8dc2(0x27e)][_0x1c8dc2(0x2aa)][_0x1c8dc2(0x24a)](_0x25dfe3,_0x4574ad)&&_0x13d443[_0x1c8dc2(0x247)](_0x4574ad)<0x0&&(_0x255887[_0x4574ad]=_0x25dfe3[_0x4574ad]);if(_0x25dfe3!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x36b1e3=0x0,_0x4574ad=Object[_0x1c8dc2(0x290)](_0x25dfe3);_0x36b1e3<_0x4574ad[_0x1c8dc2(0x21c)];_0x36b1e3++)_0x13d443[_0x1c8dc2(0x247)](_0x4574ad[_0x36b1e3])<0x0&&Object[_0x1c8dc2(0x27e)]['propertyIsEnumerable']['call'](_0x25dfe3,_0x4574ad[_0x36b1e3])&&(_0x255887[_0x4574ad[_0x36b1e3]]=_0x25dfe3[_0x4574ad[_0x36b1e3]]);}return _0x255887;},j=f[_0x577bce(0x28d)](function(_0x3a49d4,_0xee68d7){var _0x57a759=_0x577bce,_0x533dfa=_0x3a49d4[_0x57a759(0x21d)],_0x280a12=_0x3a49d4['id'],_0x399c92=_0x3a49d4[_0x57a759(0x272)],_0xe7914a=_0x3a49d4[_0x57a759(0x26f)],_0x3a1a79=M(_0x3a49d4,[_0x57a759(0x21d),'id',_0x57a759(0x272),_0x57a759(0x26f)]),_0x14e062='univerjs-icon\x20univerjs-icon-'[_0x57a759(0x1da)](_0x280a12,'\x20')[_0x57a759(0x1da)](_0x399c92||'')[_0x57a759(0x1f6)](),_0x1a4bfa=f[_0x57a759(0x292)]('_'['concat'](G()));return y(_0x533dfa,''[_0x57a759(0x1da)](_0x280a12),{'defIds':_0x533dfa[_0x57a759(0x26b)],'idSuffix':_0x1a4bfa[_0x57a759(0x277)]},u({'ref':_0xee68d7,'className':_0x14e062},_0x3a1a79),_0xe7914a);});function y(_0x358d45,_0x503663,_0x3ef27e,_0x50c80f,_0x22d74f){var _0x1f928c=_0x577bce;return f[_0x1f928c(0x279)](_0x358d45[_0x1f928c(0x23e)],u(u({'key':_0x503663},q(_0x358d45,_0x3ef27e,_0x22d74f)),_0x50c80f),(W(_0x358d45,_0x3ef27e)[_0x1f928c(0x274)]||[])['map'](function(_0x1da7d6,_0x199497){var _0x1abcb2=_0x1f928c;return y(_0x1da7d6,''[_0x1abcb2(0x1da)](_0x503663,'-')['concat'](_0x358d45['tag'],'-')[_0x1abcb2(0x1da)](_0x199497),_0x3ef27e,void 0x0,_0x22d74f);}));}function q(_0x21daa4,_0x4bd056,_0xc4d16b){var _0x377c68=_0x577bce,_0x17be9a=u({},_0x21daa4[_0x377c68(0x255)]);_0xc4d16b!=null&&_0xc4d16b[_0x377c68(0x264)]&&_0x17be9a[_0x377c68(0x1ec)]===_0x377c68(0x264)&&(_0x17be9a['fill']=_0xc4d16b[_0x377c68(0x264)]),_0x21daa4[_0x377c68(0x23e)]===_0x377c68(0x228)&&_0x17be9a['id']&&(_0x17be9a['id']=_0x17be9a['id']+_0x4bd056['idSuffix']),Object[_0x377c68(0x244)](_0x17be9a)['forEach'](function(_0x4edf01){var _0x21402a=_0x377c68,_0x4e2398=_0x4edf01[0x0],_0x37227b=_0x4edf01[0x1];_0x4e2398===_0x21402a(0x228)&&typeof _0x37227b==_0x21402a(0x26a)&&(_0x17be9a[_0x4e2398]=_0x37227b[_0x21402a(0x24f)](/url\(#(.*)\)/,_0x21402a(0x1ff)['concat'](_0x4bd056['idSuffix'],')')));});var _0xb2fdc=_0x4bd056[_0x377c68(0x26b)];return!_0xb2fdc||_0xb2fdc[_0x377c68(0x21c)]===0x0||(_0x21daa4[_0x377c68(0x23e)]===_0x377c68(0x297)&&_0x17be9a['xlink:href']&&(_0x17be9a[_0x377c68(0x1e5)]=_0x17be9a[_0x377c68(0x1e5)]+_0x4bd056[_0x377c68(0x259)]),Object[_0x377c68(0x244)](_0x17be9a)[_0x377c68(0x267)](function(_0x45663a){var _0x5113bc=_0x377c68,_0x9e47da=_0x45663a[0x0],_0x45181a=_0x45663a[0x1];typeof _0x45181a=='string'&&(_0x17be9a[_0x9e47da]=_0x45181a['replace'](/url\(#(.*)\)/,_0x5113bc(0x1ff)[_0x5113bc(0x1da)](_0x4bd056[_0x5113bc(0x259)],')')));})),_0x17be9a;}function W(_0x1ce4db,_0x2669fc){var _0x57b232=_0x577bce,_0x46508b,_0x3faa32=_0x2669fc[_0x57b232(0x26b)];return!_0x3faa32||_0x3faa32[_0x57b232(0x21c)]===0x0?_0x1ce4db:_0x1ce4db[_0x57b232(0x23e)]===_0x57b232(0x22e)&&(!((_0x46508b=_0x1ce4db[_0x57b232(0x274)])===null||_0x46508b===void 0x0)&&_0x46508b[_0x57b232(0x21c)])?u(u({},_0x1ce4db),{'children':_0x1ce4db[_0x57b232(0x274)]['map'](function(_0x1c63ba){var _0x2c1fe3=_0x57b232;return typeof _0x1c63ba[_0x2c1fe3(0x255)]['id']==_0x2c1fe3(0x26a)&&_0x3faa32&&_0x3faa32[_0x2c1fe3(0x247)](_0x1c63ba[_0x2c1fe3(0x255)]['id'])>-0x1?u(u({},_0x1c63ba),{'attrs':u(u({},_0x1c63ba['attrs']),{'id':_0x1c63ba[_0x2c1fe3(0x255)]['id']+_0x2669fc[_0x2c1fe3(0x259)]})}):_0x1c63ba;})}):_0x1ce4db;}function G(){var _0xeaa0b0=_0x577bce;return Math[_0xeaa0b0(0x284)]()[_0xeaa0b0(0x1f3)](0x24)['substring'](0x2,0x8);}j[_0x577bce(0x227)]=_0x577bce(0x273);var B={'tag':'svg','attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x577bce(0x26d),'height':_0x577bce(0x26d)},'children':[{'tag':'path','attrs':{'fill':_0x577bce(0x250),'d':_0x577bce(0x288)}},{'tag':_0x577bce(0x1e8),'attrs':{'fill':_0x577bce(0x250),'d':_0x577bce(0x2b1),'fillRule':_0x577bce(0x210),'clipRule':_0x577bce(0x210)}}]},P=f[_0x577bce(0x28d)](function(_0x1c14e3,_0x45379a){return f['createElement'](j,Object['assign']({},_0x1c14e3,{'id':'live-share-single','ref':_0x45379a,'icon':B}));});P['displayName']=_0x577bce(0x25b);var Y=Object[_0x577bce(0x28f)],R=(_0x454271,_0x4df6f6,_0x7b6bc,_0xebcbd1)=>{for(var _0x241819=_0xebcbd1>0x1?void 0x0:_0xebcbd1?Y(_0x4df6f6,_0x7b6bc):_0x4df6f6,_0x2ef97b=_0x454271['length']-0x1,_0x4e029f;_0x2ef97b>=0x0;_0x2ef97b--)(_0x4e029f=_0x454271[_0x2ef97b])&&(_0x241819=_0x4e029f(_0x241819)||_0x241819);return _0x241819;},S=(_0x2114be,_0x32bfa6)=>(_0x4d2628,_0x41875c)=>_0x32bfa6(_0x4d2628,_0x41875c,_0x2114be);exports[_0x577bce(0x1de)]=class extends o[_0x577bce(0x1ea)]{constructor(_0x1abfd8,_0x19874e,_0x17eb78){var _0xa96862=_0x577bce;super(),v(this,_0xa96862(0x281),new Map()),(this[_0xa96862(0x26c)]=_0x1abfd8,this[_0xa96862(0x21f)]=_0x19874e,this[_0xa96862(0x2ad)]=_0x17eb78,this[_0xa96862(0x28e)]());}async[_0x577bce(0x1ef)](_0x3d74ba){var _0x32d3f9=_0x577bce;return this[_0x32d3f9(0x281)][_0x32d3f9(0x2ac)](_0x3d74ba)||await this[_0x32d3f9(0x24e)](_0x3d74ba),this[_0x32d3f9(0x281)][_0x32d3f9(0x220)](_0x3d74ba);}[_0x577bce(0x28e)](){var _0x1cb265=_0x577bce;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x1cb265(0x21e)]['UNIVER_SHEET'])[_0x1cb265(0x219)](b['takeUntil'](this[_0x1cb265(0x1f7)]))['subscribe'](async _0x45f602=>{var _0x449743=_0x1cb265;const _0x445749=_0x45f602[_0x449743(0x1e1)]();this['_entities'][_0x449743(0x2ac)](_0x445749)||this[_0x449743(0x24e)](_0x445749);}),this['_univerInstanceService'][_0x1cb265(0x217)](o[_0x1cb265(0x21e)][_0x1cb265(0x29b)])[_0x1cb265(0x219)](b[_0x1cb265(0x1ee)](this[_0x1cb265(0x1f7)]))[_0x1cb265(0x270)](_0x224fe7=>{var _0x21720c=_0x1cb265;const _0x55e58e=_0x224fe7['getUnitId'](),_0x4b0463=this[_0x21720c(0x281)]['get'](_0x55e58e);_0x4b0463==null||_0x4b0463[_0x21720c(0x226)]();});}async[_0x577bce(0x24e)](_0x3b114f){var _0x42282c=_0x577bce;const _0x4e55c8=await this['_collabSessionService']['requireSession'](_0x3b114f),_0x549204=this[_0x42282c(0x21f)]['createInstance'](exports[_0x42282c(0x1f5)],_0x3b114f,_0x4e55c8);return _0x549204['init'](),this['_entities'][_0x42282c(0x257)](_0x3b114f,_0x549204),_0x549204;}},exports[_0x577bce(0x1de)]=R([S(0x0,o[_0x577bce(0x2ab)]),S(0x1,o['Inject'](o[_0x577bce(0x240)])),S(0x2,o[_0x577bce(0x236)](m[_0x577bce(0x221)]))],exports[_0x577bce(0x1de)]);var h=(_0x3842be=>(_0x3842be[_0x577bce(0x209)]=_0x577bce(0x232),_0x3842be[_0x577bce(0x20d)]=_0x577bce(0x28b),_0x3842be[_0x577bce(0x2a1)]=_0x577bce(0x27b),_0x3842be['NOT_FOLLOWING']='not-following',_0x3842be['PRESENTING']=_0x577bce(0x241),_0x3842be))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports[_0x577bce(0x1f5)]=class extends o[_0x577bce(0x1ea)]{constructor(_0x4c8df6,_0x5dc6e1,_0x516759,_0x473ea8,_0x9d0ec4){var _0x58bada=_0x577bce;super(),v(this,_0x58bada(0x248),new x[(_0x58bada(0x26e))](_0x58bada(0x28b))),v(this,_0x58bada(0x2b4),this['_status$']['asObservable']()),v(this,_0x58bada(0x28e),!0x1),v(this,_0x58bada(0x2a2),null),v(this,'_presenter',null),(this['_unitID']=_0x4c8df6,this['_collabSession']=_0x5dc6e1,this['_configService']=_0x516759,this[_0x58bada(0x237)]=_0x473ea8,this[_0x58bada(0x2a5)]=_0x9d0ec4);}get[_0x577bce(0x20b)](){var _0xf88061=_0x577bce;return this[_0xf88061(0x248)][_0xf88061(0x29c)]();}[_0x577bce(0x226)](){var _0x213fec=_0x577bce,_0x515543;(_0x515543=this[_0x213fec(0x2a2)])==null||_0x515543[_0x213fec(0x226)](),this[_0x213fec(0x248)][_0x213fec(0x2b0)]('idle'),this['_status$'][_0x213fec(0x25e)]();}[_0x577bce(0x2b7)](){var _0x433522=_0x577bce;this['_init']||(this['_init']=!0x0,this[_0x433522(0x28a)][_0x433522(0x2b5)][_0x433522(0x219)](b[_0x433522(0x1ee)](this['dispose$']))[_0x433522(0x270)](_0x519ef9=>{var _0x36473a=_0x433522;switch(_0x519ef9){case m['SessionStatus'][_0x36473a(0x209)]:this[_0x36473a(0x1e4)]();break;case m[_0x36473a(0x1fb)][_0x36473a(0x2b6)]:this[_0x36473a(0x294)]();break;}}),this['_collabSession'][_0x433522(0x218)][_0x433522(0x219)](b[_0x433522(0x1ee)](this['dispose$']))[_0x433522(0x270)](_0x54ec97=>{var _0x3f42ea=_0x433522;const {eventID:_0x4b04be}=_0x54ec97;switch(_0x4b04be){case _[_0x3f42ea(0x254)][_0x3f42ea(0x2a0)]:this[_0x3f42ea(0x243)](_0x54ec97);break;case _[_0x3f42ea(0x254)][_0x3f42ea(0x293)]:this[_0x3f42ea(0x20e)](_0x54ec97);break;case _[_0x3f42ea(0x254)][_0x3f42ea(0x2a7)]:this['_handleTerminate']();break;case _[_0x3f42ea(0x254)][_0x3f42ea(0x231)]:this[_0x3f42ea(0x278)](_0x54ec97);break;}}));}[_0x577bce(0x242)](){var _0x34a645=_0x577bce;this[_0x34a645(0x28a)][_0x34a645(0x282)]({'eventID':_[_0x34a645(0x254)][_0x34a645(0x215)],'data':{'unitID':this[_0x34a645(0x299)],'userID':this[_0x34a645(0x28a)][_0x34a645(0x201)]()}},this[_0x34a645(0x299)]);}['stopPresenting'](){var _0x38dca1=_0x577bce;this[_0x38dca1(0x20b)]==='presenting'&&(this[_0x38dca1(0x248)]['next']('idle'),this[_0x38dca1(0x28a)][_0x38dca1(0x282)]({'eventID':_[_0x38dca1(0x254)][_0x38dca1(0x2a7)],'data':{'unitID':this[_0x38dca1(0x299)]}},this['_unitID']));}[_0x577bce(0x295)](){var _0x3594ff=_0x577bce;this['_status']===_0x3594ff(0x21a)&&(this[_0x3594ff(0x248)][_0x3594ff(0x2b0)]('following'),this['_startFollowing']());}['stopFollowing'](){var _0x291c13=_0x577bce;this[_0x291c13(0x20b)]==='following'&&this[_0x291c13(0x27a)]();}[_0x577bce(0x243)](_0x2c7182){var _0x518cde=_0x577bce;const {presenter:_0x2d1262}=_0x2c7182['data'],_0x2ee3c5=this[_0x518cde(0x28a)][_0x518cde(0x201)]();this[_0x518cde(0x1e6)]=_0x2d1262,_0x2d1262===_0x2ee3c5?(this[_0x518cde(0x27a)](),this['_startPresenting']()):this[_0x518cde(0x20b)]!==_0x518cde(0x21a)&&(this[_0x518cde(0x23b)](),this[_0x518cde(0x1d8)]());}[_0x577bce(0x253)](){var _0x15beea=_0x577bce;const _0x4d5a76={'eventID':_[_0x15beea(0x254)][_0x15beea(0x296)]};this[_0x15beea(0x28a)][_0x15beea(0x282)](_0x4d5a76,this[_0x15beea(0x299)]);}['_handleTerminate'](){var _0xe0d27c=_0x577bce;this[_0xe0d27c(0x1e6)]=null,this[_0xe0d27c(0x20b)]!==_0xe0d27c(0x241)&&this[_0xe0d27c(0x24d)]();}[_0x577bce(0x278)](_0x2eb435){var _0x5af4f5=_0x577bce;if(this['_status']===_0x5af4f5(0x27b)&&this[_0x5af4f5(0x1e6)]===_0x2eb435[_0x5af4f5(0x23d)]['memberID']){const _0x21f31f=_[_0x5af4f5(0x239)](_0x2eb435['data'])['mutations']['reverse']()[_0x5af4f5(0x22a)](_0x29d43e=>_0x29d43e['id']===C[_0x5af4f5(0x245)]['id']);if(_0x21f31f){const _0x4cedc3=_0x21f31f[_0x5af4f5(0x1fd)][_0x5af4f5(0x25a)],_0x195651=_0x21f31f['params'][_0x5af4f5(0x27c)]['id'];setTimeout(()=>{var _0x26e3bf=_0x5af4f5;this[_0x26e3bf(0x2a5)][_0x26e3bf(0x1d9)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x4cedc3,'subUnitId':_0x195651},{'fromCollab':!0x0});});}}}[_0x577bce(0x2a4)](){var _0x173da4=_0x577bce;this['_status$'][_0x173da4(0x2b0)](_0x173da4(0x241));const _0x24f0d0=new Map(),_0x324e5b=this[_0x173da4(0x2a2)]=new o[(_0x173da4(0x216))]();_0x324e5b[_0x173da4(0x1f4)](o[_0x173da4(0x249)](()=>{var _0x28f2ba=_0x173da4;_0x24f0d0[_0x28f2ba(0x267)](_0x1857a0=>_0x1857a0[_0x28f2ba(0x25e)]()),_0x24f0d0[_0x28f2ba(0x1e3)]();})),_0x324e5b[_0x173da4(0x1f4)](this[_0x173da4(0x2a5)][_0x173da4(0x260)](_0x294ff9=>{var _0x59d178=_0x173da4,_0x3b00f5;if(_0x294ff9[_0x59d178(0x1d7)]!==o[_0x59d178(0x202)][_0x59d178(0x287)]||!this['_liveShareService'][_0x59d178(0x206)](_0x294ff9['id']))return;const {id:_0x1cacab}=_0x294ff9;let _0x4f667f;_0x24f0d0[_0x59d178(0x2ac)](_0x1cacab)?_0x4f667f=_0x24f0d0[_0x59d178(0x220)](_0x1cacab):(_0x4f667f=new x[(_0x59d178(0x25c))](),_0x24f0d0[_0x59d178(0x257)](_0x1cacab,_0x4f667f),_0x4f667f[_0x59d178(0x219)](b[_0x59d178(0x1dd)]((_0x3b00f5=this[_0x59d178(0x235)][_0x59d178(0x1ed)](Z))!=null?_0x3b00f5:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2d483d=>{var _0x45c18a=_0x59d178;this[_0x45c18a(0x28a)][_0x45c18a(0x282)]({'eventID':_[_0x45c18a(0x254)][_0x45c18a(0x293)],'data':{'unitID':this[_0x45c18a(0x299)],'operations':{[_0x2d483d['id']]:{'id':_0x2d483d['id'],'params':JSON[_0x45c18a(0x207)](_0x2d483d[_0x45c18a(0x1fd)])}}}},this[_0x45c18a(0x299)]);})),_0x4f667f[_0x59d178(0x2b0)](_0x294ff9);})),this[_0x173da4(0x237)][_0x173da4(0x252)](this[_0x173da4(0x299)])[_0x173da4(0x267)](_0x105af3=>this[_0x173da4(0x28a)][_0x173da4(0x282)]({'eventID':_[_0x173da4(0x254)][_0x173da4(0x293)],'data':{'unitID':this[_0x173da4(0x299)],'operations':{[_0x105af3['id']]:{'id':_0x105af3['id'],'params':JSON[_0x173da4(0x207)](_0x105af3[_0x173da4(0x1fd)])}}}},this[_0x173da4(0x299)]));}[_0x577bce(0x23b)](){var _0x14f293=_0x577bce,_0x230956;this[_0x14f293(0x248)][_0x14f293(0x2b0)]('idle'),(_0x230956=this['_commandDisposable'])==null||_0x230956[_0x14f293(0x226)](),this[_0x14f293(0x2a2)]=null;}[_0x577bce(0x1d8)](){var _0x5efbc7=_0x577bce,_0x14db7b;(_0x14db7b=this[_0x5efbc7(0x2a2)])==null||_0x14db7b[_0x5efbc7(0x226)](),this[_0x5efbc7(0x248)]['next'](_0x5efbc7(0x27b));}['_beIdle'](){var _0xaa08a0=_0x577bce,_0x499aeb;this[_0xaa08a0(0x248)]['next'](_0xaa08a0(0x28b)),(_0x499aeb=this['_commandDisposable'])==null||_0x499aeb['dispose'](),this[_0xaa08a0(0x2a2)]=null;}[_0x577bce(0x27a)](){var _0x3e4d92=_0x577bce,_0x3b3b0b;this[_0x3e4d92(0x248)][_0x3e4d92(0x2b0)](_0x3e4d92(0x21a)),(_0x3b3b0b=this[_0x3e4d92(0x2a2)])==null||_0x3b3b0b[_0x3e4d92(0x226)]();}[_0x577bce(0x20e)](_0x22e533){var _0x4a4bbe=_0x577bce;if([_0x4a4bbe(0x241),_0x4a4bbe(0x21a),_0x4a4bbe(0x232)][_0x4a4bbe(0x205)](this[_0x4a4bbe(0x20b)])||!_0x22e533['data']['presenter']||_0x22e533[_0x4a4bbe(0x23d)][_0x4a4bbe(0x1f9)]===this[_0x4a4bbe(0x28a)]['getMemberID']())return;this['_status']===_0x4a4bbe(0x28b)&&this[_0x4a4bbe(0x1d8)]();const _0x4c0387=_0x22e533[_0x4a4bbe(0x23d)][_0x4a4bbe(0x213)];Object[_0x4a4bbe(0x23a)](_0x4c0387)['forEach'](_0x5e1ceb=>{var _0x17e142=_0x4a4bbe;this[_0x17e142(0x2a5)]['executeCommand'](_0x5e1ceb['id'],_0x5e1ceb[_0x17e142(0x1fd)]?JSON[_0x17e142(0x214)](_0x5e1ceb['params']):null,{'fromCollab':!0x0});});}[_0x577bce(0x1e4)](){var _0x22c98f=_0x577bce,_0x266a13;this[_0x22c98f(0x248)]['next'](_0x22c98f(0x232)),(_0x266a13=this[_0x22c98f(0x2a2)])==null||_0x266a13[_0x22c98f(0x226)]();}[_0x577bce(0x294)](){var _0x2ae22f=_0x577bce;this[_0x2ae22f(0x248)]['next'](_0x2ae22f(0x28b)),this[_0x2ae22f(0x253)]();}},exports[_0x577bce(0x1f5)]=R([S(0x2,o[_0x577bce(0x1f1)]),S(0x3,o[_0x577bce(0x236)](E)),S(0x4,o[_0x577bce(0x2af)])],exports[_0x577bce(0x1f5)]);function A(){var _0x36db84=_0x577bce;const _0x3bfcf3=p[_0x36db84(0x22c)](exports[_0x36db84(0x1de)]),_0x5bd4a3=p['useDependency'](o['IUniverInstanceService']),_0xdf70c1=p['useObservable'](()=>_0x5bd4a3[_0x36db84(0x263)](o[_0x36db84(0x21e)][_0x36db84(0x29b)]),void 0x0,!0x1,[]),[_0x262def,_0x5ca774]=f['useState'](null),[_0x5c34f2,_0x28e20a]=f[_0x36db84(0x204)](h['IDLE']),_0x448019=f['useRef'](null);return f['useEffect'](()=>(_0xdf70c1&&_0x3bfcf3['getLiveShareCoordinator'](_0xdf70c1[_0x36db84(0x1e1)]())['then'](_0x2acaaa=>{var _0x17a8ea=_0x36db84;_0x5ca774(_0x2acaaa),_0x448019[_0x17a8ea(0x277)]=_0x2acaaa['status$']['subscribe'](_0x5512d5=>{_0x28e20a(_0x5512d5);});}),()=>{var _0xf68cae=_0x36db84,_0x5d6abc;(_0x5d6abc=_0x448019[_0xf68cae(0x277)])==null||_0x5d6abc[_0xf68cae(0x246)](),_0x448019[_0xf68cae(0x277)]=null;}),[_0xdf70c1,_0x3bfcf3]),_0x262def?l['jsx'](g[_0x36db84(0x276)],{'align':'end','disabled':_0x5c34f2===h['OFFLINE'],'className':_0x36db84(0x2a9),'overlay':l[_0x36db84(0x222)](K,{'status':_0x5c34f2,'coordinator':_0x262def}),'children':l['jsx']('button',{'className':g[_0x36db84(0x1e9)](_0x36db84(0x200),{'univer-cursor-not-allowed':_0x5c34f2===h[_0x36db84(0x209)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5c34f2!==h[_0x36db84(0x209)]}),'type':_0x36db84(0x266),'children':l['jsx'](P,{'className':_0x36db84(0x211)})})}):null;}function K(_0x17ee7f){var _0x458108=_0x577bce;const {status:_0x154333,coordinator:_0x42557b}=_0x17ee7f;switch(_0x154333){case h[_0x458108(0x20d)]:return l[_0x458108(0x222)](z,{'coordinator':_0x42557b});case h['FOLLOWING']:return l[_0x458108(0x222)](Q,{'coordinator':_0x42557b});case h['NOT_FOLLOWING']:return l[_0x458108(0x222)](X,{'coordinator':_0x42557b});case h[_0x458108(0x209)]:return l[_0x458108(0x222)](te,{});case h[_0x458108(0x1eb)]:return l['jsx'](ee,{'coordinator':_0x42557b});default:return null;}}function z(_0xf53260){var _0x53fe1d=_0x577bce;const {coordinator:_0x172836}=_0xf53260;return l[_0x53fe1d(0x238)](l[_0x53fe1d(0x1f8)],{'children':[l[_0x53fe1d(0x222)](_0x53fe1d(0x29d),{'className':_0x53fe1d(0x262),'children':_0x53fe1d(0x208)}),l[_0x53fe1d(0x222)](g['Button'],{'onClick':()=>_0x172836[_0x53fe1d(0x242)](),'children':'Start'})]});}function Q(_0x484992){var _0x113280=_0x577bce;const {coordinator:_0x3614ba}=_0x484992;return l[_0x113280(0x238)](l[_0x113280(0x1f8)],{'children':[l[_0x113280(0x222)]('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x113280(0x2a3)}),l[_0x113280(0x222)](g[_0x113280(0x21b)],{'onClick':()=>_0x3614ba[_0x113280(0x20c)](),'children':'Stop\x20following'})]});}function X(_0x26775c){var _0x6b70a7=_0x577bce;const {coordinator:_0x370bff}=_0x26775c;return l[_0x6b70a7(0x238)](l[_0x6b70a7(0x1f8)],{'children':[l[_0x6b70a7(0x222)]('div',{'className':_0x6b70a7(0x262),'children':_0x6b70a7(0x2b2)}),l[_0x6b70a7(0x222)](g[_0x6b70a7(0x21b)],{'variant':_0x6b70a7(0x289),'onClick':()=>_0x370bff[_0x6b70a7(0x295)](),'children':_0x6b70a7(0x2a6)})]});}function ee(_0x19b6e9){var _0x458f66=_0x577bce;const {coordinator:_0xc908e}=_0x19b6e9;return l[_0x458f66(0x238)](l[_0x458f66(0x1f8)],{'children':[l[_0x458f66(0x222)]('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x458f66(0x271)}),l[_0x458f66(0x222)](g[_0x458f66(0x21b)],{'variant':'default','onClick':()=>_0xc908e[_0x458f66(0x1e2)](),'children':'Stop\x20presenting'})]});}function te(){var _0x7e7546=_0x577bce;return l[_0x7e7546(0x222)](l[_0x7e7546(0x1f8)],{'children':_0x7e7546(0x22f)});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x48428b,_0x50b3bf,_0x3581b1,_0x49689f)=>{var _0x27dc9c=_0x577bce;for(var _0x51d825=_0x49689f>0x1?void 0x0:_0x49689f?ie(_0x50b3bf,_0x3581b1):_0x50b3bf,_0x2ef7d1=_0x48428b[_0x27dc9c(0x21c)]-0x1,_0x2060be;_0x2ef7d1>=0x0;_0x2ef7d1--)(_0x2060be=_0x48428b[_0x2ef7d1])&&(_0x51d825=_0x2060be(_0x51d825)||_0x51d825);return _0x51d825;},N=(_0x4ca091,_0x698f3e)=>(_0x4d86a6,_0x500aa3)=>_0x698f3e(_0x4d86a6,_0x500aa3,_0x4ca091);exports[_0x577bce(0x283)]=class extends o[_0x577bce(0x229)]{constructor(_0x5ec964,_0x12fc34){var _0x142d89=_0x577bce;super(),this[_0x142d89(0x21f)]=_0x5ec964,this['_uiPartsService']=_0x12fc34,this[_0x142d89(0x2b3)]();}[_0x577bce(0x2b3)](){var _0x26966c=_0x577bce;this['disposeWithMe'](this[_0x26966c(0x265)][_0x26966c(0x285)](p['BuiltInUIPart']['HEADER_MENU'],()=>p['connectInjector'](A,this['_injector'])));}},exports['DesktopLiveShareController']=ne([N(0x0,o[_0x577bce(0x236)](o[_0x577bce(0x240)])),N(0x1,p[_0x577bce(0x27d)])],exports[_0x577bce(0x283)]);var re=Object[_0x577bce(0x29f)],se=Object[_0x577bce(0x28f)],oe=(_0x4c40ad,_0x1b9acc,_0x4b0f45)=>_0x1b9acc in _0x4c40ad?re(_0x4c40ad,_0x1b9acc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b0f45}):_0x4c40ad[_0x1b9acc]=_0x4b0f45,ae=(_0x4b795c,_0xb3edb1,_0x523893,_0x4e8c)=>{var _0x454fc9=_0x577bce;for(var _0x2d55f5=_0x4e8c>0x1?void 0x0:_0x4e8c?se(_0xb3edb1,_0x523893):_0xb3edb1,_0x59b3b0=_0x4b795c[_0x454fc9(0x21c)]-0x1,_0x4860d2;_0x59b3b0>=0x0;_0x59b3b0--)(_0x4860d2=_0x4b795c[_0x59b3b0])&&(_0x2d55f5=_0x4860d2(_0x2d55f5)||_0x2d55f5);return _0x2d55f5;},w=(_0x3f4dd5,_0x32ab6b)=>(_0x5c4ee2,_0x2546bc)=>_0x32ab6b(_0x5c4ee2,_0x2546bc,_0x3f4dd5),T=(_0x43d395,_0x125084,_0x256768)=>oe(_0x43d395,typeof _0x125084!=_0x577bce(0x223)?_0x125084+'':_0x125084,_0x256768);const le=_0x577bce(0x225);exports[_0x577bce(0x269)]=class extends o['Plugin']{constructor(_0x2d8723=L,_0x56e9ac,_0x5c3f95){var _0x596476=_0x577bce;super(),this['_config']=_0x2d8723,this[_0x596476(0x21f)]=_0x56e9ac,this[_0x596476(0x235)]=_0x5c3f95;const {..._0x142baa}=o['merge']({},L,this['_config']);this[_0x596476(0x235)][_0x596476(0x203)]($,_0x142baa);}[_0x577bce(0x286)](){var _0x47cc01=_0x577bce;o[_0x47cc01(0x230)](this[_0x47cc01(0x21f)],o[_0x47cc01(0x25f)]([[E],[exports[_0x47cc01(0x1de)]],[O],[exports[_0x47cc01(0x283)]]],this[_0x47cc01(0x1dc)][_0x47cc01(0x291)])),o[_0x47cc01(0x20f)](this[_0x47cc01(0x21f)],[[O]]);}[_0x577bce(0x20a)](){var _0x3d8d64=_0x577bce;o[_0x3d8d64(0x20f)](this[_0x3d8d64(0x21f)],[[exports[_0x3d8d64(0x283)]]]);}},T(exports[_0x577bce(0x269)],_0x577bce(0x1d7),o['UniverInstanceType']['UNIVER_UNKNOWN']),T(exports[_0x577bce(0x269)],_0x577bce(0x1df),le),exports['UniverLiveSharePlugin']=ae([o[_0x577bce(0x23c)](m[_0x577bce(0x23f)]),w(0x1,o['Inject'](o[_0x577bce(0x240)])),w(0x2,o[_0x577bce(0x1f1)])],exports['UniverLiveSharePlugin']),exports[_0x577bce(0x24b)]=A,exports[_0x577bce(0x29e)]=E,exports[_0x577bce(0x212)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x29f20e=_0x3e7e;(function(_0xbbc8bb,_0x4addb4){var _0x4ffd02=_0x3e7e,_0x45aa8d=_0xbbc8bb();while(!![]){try{var _0x45e212=-parseInt(_0x4ffd02(0x12b))/0x1+-parseInt(_0x4ffd02(0xa6))/0x2*(-parseInt(_0x4ffd02(0xc3))/0x3)+-parseInt(_0x4ffd02(0xf8))/0x4+-parseInt(_0x4ffd02(0x148))/0x5*(-parseInt(_0x4ffd02(0xa3))/0x6)+parseInt(_0x4ffd02(0xdf))/0x7+parseInt(_0x4ffd02(0x100))/0x8+-parseInt(_0x4ffd02(0x12f))/0x9*(parseInt(_0x4ffd02(0xa2))/0xa);if(_0x45e212===_0x4addb4)break;else _0x45aa8d['push'](_0x45aa8d['shift']());}catch(_0x458de7){_0x45aa8d['push'](_0x45aa8d['shift']());}}}(_0x32e9,0xf0d76));var q=Object[_0x29f20e(0xaf)],z=(_0x1bbf9d,_0x583fcf,_0x144850)=>_0x583fcf in _0x1bbf9d?q(_0x1bbf9d,_0x583fcf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x144850}):_0x1bbf9d[_0x583fcf]=_0x144850,d=(_0x281175,_0x4845b4,_0x4cfcb1)=>z(_0x281175,typeof _0x4845b4!=_0x29f20e(0xe5)?_0x4845b4+'':_0x4845b4,_0x4cfcb1);import{CollaborationSessionService as _0x22c5ad,SessionStatus as _0x1486b6,UniverCollaborationClientPlugin as _0x2b8f23}from'@univerjs-pro/collaboration-client';import{Disposable as _0x3375e6,toDisposable as _0x5e39ab,Inject as _0x2b27e5,IUniverInstanceService as _0x2a2850,Injector as _0x88f3f5,IConfigService as _0x35e166,ICommandService as _0x2043b7,RxDisposable as _0x416d0b,UniverInstanceType as _0x70eb56,DisposableCollection as _0x259978,CommandType as _0xfdb75e,DependentOn as _0x35339f,Plugin as _0xba14a,merge as _0x2f1e0d,registerDependencies as _0x4fada3,mergeOverrideWithDependencies as _0x32112a,touchDependencies as _0x132bf9}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x348477,InsertSheetMutation as _0x18faeb}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x4b7127,SetScrollOperation as _0x24fc28}from'@univerjs/sheets-ui';function _0x32e9(){var _0x3d1af5=['shouldShareOperation','map','default','_commandDisposable','replace','_handleTerminate','presenting','defineProperty','onStarting','_status','className','LIVESHARE_NEW_HOST','complete','set','_configService','fill','evenodd','displayName','NEW_CHANGESETS','concat','event$','OFFLINE','toString','svg','_entities','data','override','3bOHIpy','_startFollowing','ONLINE','propertyIsEnumerable','UNIVER_SHEET','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','_handleNewChangeSets','startFollowing','trim','LIVESHARE_OPERATION','getUnitId','text','string','find','_startPresenting','reverse','indexOf','_stopPresenting','memberID','UniverIcon','unitId','add','registerComponent','getTypeOfUnitDisposed$','_stopFollowing','_univerInstanceService','end','stopPresenting','6203043HuGZIu','tag','getTypeOfUnitAdded$','SAME_OPERATION_SHARE_INTERVAL','current','pluginName','symbol','sessionStatus$','send','LIVESHARE_REQUEST_HOST','dispose$','You\x27re\x20following\x20the\x20presenter','pipe','UNIVER_UNKNOWN','unsubscribe','_handleOnline','You\x27are\x20offline.','onRendered','icon','createInstance','You\x27re\x20not\x20following\x20the\x20presenter','getCurrentTypeOfUnit$','_presenter','params','get','530136upujkN','_uiPartsService','xlink:href','div','NOT_FOLLOWING','disposeWithMe','colorChannel1','Start\x20following','9535368dsbhoe','LiveShareSingle','button','idle','_handleNewHost','assign','getMemberID','call','_status$','offline','subscribe','type','includes','_handleOffline','getOwnPropertyDescriptor','prototype','_collabSessionService','forEach','setConfig','hasOwnProperty','_reporters','onCommandExecuted','_liveShareService','UNIVER_LIVE_SHARE_PLUGIN','OPERATION','entries','attrs','extend','PRESENTING','IDLE','init','_sharedOperations','substring','then','live-share-single','presenter','_init','_collabSession','You\x27re\x20presenting\x20the\x20document','delete','stringify','univer-w-full\x20univer-mb-3\x20univer-text-sm','following','1538026xNQGSm','LIVESHARE_FETCH_OPERATIONS','has','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','9OOKwud','LIVESHARE_TERMINATE','_handleOperation','tryStartPresenting','_injector','_mountLiveShare','univer-size-4','asObservable','getValue','next','1em','status$','random','FOLLOWING','_beIdle','registerSharedOperation','_startLiveShareCoordinator','not-following','_commandService','path','mask','defIds','_unitID','length','Start','1471770OrtZux','currentColor','idSuffix','getInitialStates','requireSession','17058030yHTUtV','18BiAmVi','_config','stopFollowing','2803434owVJao','dispose'];_0x32e9=function(){return _0x3d1af5;};return _0x32e9();}import{useDependency as _0x493516,useObservable as _0x21980c,IUIPartsService as _0x1735f8,BuiltInUIPart as _0x29a15b,connectInjector as _0x52be52}from'@univerjs/ui';import{jsx as _0x4aa79a,jsxs as _0x1dee4f,Fragment as _0x2ff6ca}from'react/jsx-runtime';import{Dropdown as _0x552500,clsx as _0x4f9fb3,Button as _0x55d525}from'@univerjs/design';import{forwardRef as _0x2d11e8,useRef as _0x411e20,createElement as _0x5c2114,useState as _0x5cc44c,useEffect as _0x3c174d}from'react';import{CollaborationEvent as _0x5b1231,parseProtocolChangeset as _0x300461}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x54c3b0,Subject as _0xae6176}from'rxjs';import{takeUntil as _0xb3ad8b,throttleTime as _0x1882fd}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x3375e6{constructor(){var _0x34a04f=_0x29f20e;super(...arguments),d(this,_0x34a04f(0x11f),new Set()),d(this,_0x34a04f(0x114),new Set());}[_0x29f20e(0x13e)](_0x4a98de){var _0x59af30=_0x29f20e;return this[_0x59af30(0x11f)][_0x59af30(0xd8)](_0x4a98de),_0x5e39ab(()=>this['_sharedOperations'][_0x59af30(0x127)](_0x4a98de));}['registerInitialStateReporter'](_0x19c770){var _0x181ccf=_0x29f20e;return this[_0x181ccf(0x114)][_0x181ccf(0xd8)](_0x19c770),_0x5e39ab(()=>this[_0x181ccf(0x114)][_0x181ccf(0x127)](_0x19c770));}[_0x29f20e(0xa8)](_0x4c4510){var _0x27ed0f=_0x29f20e;return this[_0x27ed0f(0x11f)]['has'](_0x4c4510);}[_0x29f20e(0xa0)](_0x8e4a27){var _0x2836c0=_0x29f20e;return Array['from'](this['_reporters'])[_0x2836c0(0xa9)](_0x1d3e28=>_0x1d3e28(_0x8e4a27));}}var Ee=Object[_0x29f20e(0x10e)],Ce=(_0x181595,_0x42d046,_0x1aaaae,_0x242b48)=>{var _0x184949=_0x29f20e;for(var _0x54b189=_0x242b48>0x1?void 0x0:_0x242b48?Ee(_0x42d046,_0x1aaaae):_0x42d046,_0xb435a3=_0x181595[_0x184949(0x146)]-0x1,_0x4c44ef;_0xb435a3>=0x0;_0xb435a3--)(_0x4c44ef=_0x181595[_0xb435a3])&&(_0x54b189=_0x4c44ef(_0x54b189)||_0x54b189);return _0x54b189;},Ne=(_0xcaf197,_0x1b61ef)=>(_0x21d294,_0x50301d)=>_0x1b61ef(_0x21d294,_0x50301d,_0xcaf197);let m=class extends _0x3375e6{constructor(_0xa26c92){var _0x1a9422=_0x29f20e;super(),this[_0x1a9422(0x116)]=_0xa26c92,this[_0x1a9422(0x124)]();}['_init'](){var _0x1ba6b0=_0x29f20e;[_0x4b7127['id'],_0x24fc28['id'],_0x348477['id']][_0x1ba6b0(0x111)](_0x47d700=>{this['disposeWithMe'](this['_liveShareService']['registerSharedOperation'](_0x47d700));});}};m=Ce([Ne(0x0,_0x2b27e5(L))],m);function _0x3e7e(_0x571ba1,_0x5e7e23){var _0x32e927=_0x32e9();return _0x3e7e=function(_0x3e7ea3,_0x54abd5){_0x3e7ea3=_0x3e7ea3-0xa0;var _0x3c2208=_0x32e927[_0x3e7ea3];return _0x3c2208;},_0x3e7e(_0x571ba1,_0x5e7e23);}var c=function(){var _0xb7e04f=_0x29f20e;return c=Object[_0xb7e04f(0x105)]||function(_0x49385a){var _0x53d489=_0xb7e04f;for(var _0x143c46,_0x2a82a5=0x1,_0x33b4fd=arguments[_0x53d489(0x146)];_0x2a82a5<_0x33b4fd;_0x2a82a5++){_0x143c46=arguments[_0x2a82a5];for(var _0x2269da in _0x143c46)Object[_0x53d489(0x10f)][_0x53d489(0x113)]['call'](_0x143c46,_0x2269da)&&(_0x49385a[_0x2269da]=_0x143c46[_0x2269da]);}return _0x49385a;},c['apply'](this,arguments);},we=function(_0x3821d1,_0x153e3b){var _0x5221cf=_0x29f20e,_0x3e9841={};for(var _0x953335 in _0x3821d1)Object[_0x5221cf(0x10f)]['hasOwnProperty'][_0x5221cf(0x107)](_0x3821d1,_0x953335)&&_0x153e3b['indexOf'](_0x953335)<0x0&&(_0x3e9841[_0x953335]=_0x3821d1[_0x953335]);if(_0x3821d1!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0xe1ec79=0x0,_0x953335=Object['getOwnPropertySymbols'](_0x3821d1);_0xe1ec79<_0x953335[_0x5221cf(0x146)];_0xe1ec79++)_0x153e3b[_0x5221cf(0xd3)](_0x953335[_0xe1ec79])<0x0&&Object[_0x5221cf(0x10f)][_0x5221cf(0xc6)][_0x5221cf(0x107)](_0x3821d1,_0x953335[_0xe1ec79])&&(_0x3e9841[_0x953335[_0xe1ec79]]=_0x3821d1[_0x953335[_0xe1ec79]]);}return _0x3e9841;},W=_0x2d11e8(function(_0x11946a,_0x3dbd75){var _0x5300ea=_0x29f20e,_0x122971=_0x11946a[_0x5300ea(0xf1)],_0xebcf01=_0x11946a['id'],_0x2293bb=_0x11946a['className'],_0x4fcb82=_0x11946a[_0x5300ea(0x11b)],_0x563fed=we(_0x11946a,[_0x5300ea(0xf1),'id',_0x5300ea(0xb2),_0x5300ea(0x11b)]),_0x33922c='univerjs-icon\x20univerjs-icon-'[_0x5300ea(0xbb)](_0xebcf01,'\x20')[_0x5300ea(0xbb)](_0x2293bb||'')[_0x5300ea(0xcb)](),_0xe73f3d=_0x411e20('_'[_0x5300ea(0xbb)](Le()));return Y(_0x122971,''[_0x5300ea(0xbb)](_0xebcf01),{'defIds':_0x122971[_0x5300ea(0x144)],'idSuffix':_0xe73f3d[_0x5300ea(0xe3)]},c({'ref':_0x3dbd75,'className':_0x33922c},_0x563fed),_0x4fcb82);});function Y(_0x428209,_0x5d95b4,_0x3b8755,_0x2d78b3,_0x5c7d14){var _0x55c7f8=_0x29f20e;return _0x5c2114(_0x428209[_0x55c7f8(0xe0)],c(c({'key':_0x5d95b4},De(_0x428209,_0x3b8755,_0x5c7d14)),_0x2d78b3),(xe(_0x428209,_0x3b8755)['children']||[])[_0x55c7f8(0xa9)](function(_0x44d0ac,_0x41d37d){var _0x33197a=_0x55c7f8;return Y(_0x44d0ac,''[_0x33197a(0xbb)](_0x5d95b4,'-')[_0x33197a(0xbb)](_0x428209[_0x33197a(0xe0)],'-')['concat'](_0x41d37d),_0x3b8755,void 0x0,_0x5c7d14);}));}function De(_0xe81a6e,_0x231813,_0xa37675){var _0x1121ea=_0x29f20e,_0x111e80=c({},_0xe81a6e['attrs']);_0xa37675!=null&&_0xa37675[_0x1121ea(0xfe)]&&_0x111e80[_0x1121ea(0xb7)]===_0x1121ea(0xfe)&&(_0x111e80[_0x1121ea(0xb7)]=_0xa37675[_0x1121ea(0xfe)]),_0xe81a6e[_0x1121ea(0xe0)]==='mask'&&_0x111e80['id']&&(_0x111e80['id']=_0x111e80['id']+_0x231813[_0x1121ea(0x14a)]),Object[_0x1121ea(0x119)](_0x111e80)[_0x1121ea(0x111)](function(_0x3c88c1){var _0x26092a=_0x1121ea,_0x53c830=_0x3c88c1[0x0],_0x51b003=_0x3c88c1[0x1];_0x53c830===_0x26092a(0x143)&&typeof _0x51b003==_0x26092a(0xcf)&&(_0x111e80[_0x53c830]=_0x51b003['replace'](/url\(#(.*)\)/,'url(#$1'[_0x26092a(0xbb)](_0x231813['idSuffix'],')')));});var _0xc48e3f=_0x231813[_0x1121ea(0x144)];return!_0xc48e3f||_0xc48e3f[_0x1121ea(0x146)]===0x0||(_0xe81a6e['tag']==='use'&&_0x111e80[_0x1121ea(0xfa)]&&(_0x111e80[_0x1121ea(0xfa)]=_0x111e80[_0x1121ea(0xfa)]+_0x231813[_0x1121ea(0x14a)]),Object[_0x1121ea(0x119)](_0x111e80)[_0x1121ea(0x111)](function(_0x5b1d03){var _0x592b97=_0x1121ea,_0xf432c1=_0x5b1d03[0x0],_0x20c791=_0x5b1d03[0x1];typeof _0x20c791==_0x592b97(0xcf)&&(_0x111e80[_0xf432c1]=_0x20c791[_0x592b97(0xac)](/url\(#(.*)\)/,'url(#$1'[_0x592b97(0xbb)](_0x231813[_0x592b97(0x14a)],')')));})),_0x111e80;}function xe(_0x4f0bde,_0x125a48){var _0x42a3bf=_0x29f20e,_0x292803,_0x544a0e=_0x125a48[_0x42a3bf(0x144)];return!_0x544a0e||_0x544a0e[_0x42a3bf(0x146)]===0x0?_0x4f0bde:_0x4f0bde[_0x42a3bf(0xe0)]==='defs'&&(!((_0x292803=_0x4f0bde['children'])===null||_0x292803===void 0x0)&&_0x292803[_0x42a3bf(0x146)])?c(c({},_0x4f0bde),{'children':_0x4f0bde['children']['map'](function(_0x331f7c){var _0x71f051=_0x42a3bf;return typeof _0x331f7c['attrs']['id']==_0x71f051(0xcf)&&_0x544a0e&&_0x544a0e[_0x71f051(0xd3)](_0x331f7c[_0x71f051(0x11a)]['id'])>-0x1?c(c({},_0x331f7c),{'attrs':c(c({},_0x331f7c[_0x71f051(0x11a)]),{'id':_0x331f7c[_0x71f051(0x11a)]['id']+_0x125a48[_0x71f051(0x14a)]})}):_0x331f7c;})}):_0x4f0bde;}function Le(){var _0x5c1770=_0x29f20e;return Math[_0x5c1770(0x13b)]()[_0x5c1770(0xbe)](0x24)[_0x5c1770(0x120)](0x2,0x8);}W[_0x29f20e(0xb9)]=_0x29f20e(0xd6);var ye={'tag':_0x29f20e(0xbf),'attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x29f20e(0x139),'height':_0x29f20e(0x139)},'children':[{'tag':'path','attrs':{'fill':_0x29f20e(0x149),'d':_0x29f20e(0x12e)}},{'tag':_0x29f20e(0x142),'attrs':{'fill':'currentColor','d':'M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fillRule':_0x29f20e(0xb8),'clipRule':_0x29f20e(0xb8)}}]},B=_0x2d11e8(function(_0x1911a7,_0x59eb7b){var _0x9484a6=_0x29f20e;return _0x5c2114(W,Object[_0x9484a6(0x105)]({},_0x1911a7,{'id':_0x9484a6(0x122),'ref':_0x59eb7b,'icon':ye}));});B[_0x29f20e(0xb9)]=_0x29f20e(0x101);var Re=Object[_0x29f20e(0x10e)],Z=(_0x4ae1c7,_0x2f4b64,_0x2ad537,_0x4d8e39)=>{var _0x1e03d9=_0x29f20e;for(var _0x252275=_0x4d8e39>0x1?void 0x0:_0x4d8e39?Re(_0x2f4b64,_0x2ad537):_0x2f4b64,_0x398f80=_0x4ae1c7[_0x1e03d9(0x146)]-0x1,_0x5deb64;_0x398f80>=0x0;_0x398f80--)(_0x5deb64=_0x4ae1c7[_0x398f80])&&(_0x252275=_0x5deb64(_0x252275)||_0x252275);return _0x252275;},f=(_0x48b477,_0x2f2180)=>(_0x5b6b75,_0xf709e4)=>_0x2f2180(_0x5b6b75,_0xf709e4,_0x48b477);let I=class extends _0x416d0b{constructor(_0x22083a,_0x2d457e,_0x823d75){var _0x6d52c1=_0x29f20e;super(),d(this,_0x6d52c1(0xc0),new Map()),(this[_0x6d52c1(0xdc)]=_0x22083a,this[_0x6d52c1(0x133)]=_0x2d457e,this[_0x6d52c1(0x110)]=_0x823d75,this[_0x6d52c1(0x124)]());}async['getLiveShareCoordinator'](_0x54d5f4){var _0x56fbdb=_0x29f20e;return this[_0x56fbdb(0xc0)][_0x56fbdb(0x12d)](_0x54d5f4)||await this[_0x56fbdb(0x13f)](_0x54d5f4),this[_0x56fbdb(0xc0)][_0x56fbdb(0xf7)](_0x54d5f4);}[_0x29f20e(0x124)](){var _0x4f77b9=_0x29f20e;this[_0x4f77b9(0xdc)][_0x4f77b9(0xe1)](_0x70eb56[_0x4f77b9(0xc7)])[_0x4f77b9(0xeb)](_0xb3ad8b(this['dispose$']))['subscribe'](async _0x4ff23b=>{var _0x1f0103=_0x4f77b9;const _0x50b10b=_0x4ff23b[_0x1f0103(0xcd)]();this[_0x1f0103(0xc0)]['has'](_0x50b10b)||this[_0x1f0103(0x13f)](_0x50b10b);}),this[_0x4f77b9(0xdc)][_0x4f77b9(0xda)](_0x70eb56[_0x4f77b9(0xc7)])[_0x4f77b9(0xeb)](_0xb3ad8b(this['dispose$']))[_0x4f77b9(0x10a)](_0x5ec8d1=>{var _0x4c87dc=_0x4f77b9;const _0x351821=_0x5ec8d1[_0x4c87dc(0xcd)](),_0xc28426=this[_0x4c87dc(0xc0)][_0x4c87dc(0xf7)](_0x351821);_0xc28426==null||_0xc28426['dispose']();});}async['_startLiveShareCoordinator'](_0x4cb88c){var _0x5c9f04=_0x29f20e;const _0x3de859=await this[_0x5c9f04(0x110)][_0x5c9f04(0xa1)](_0x4cb88c),_0x43f93b=this[_0x5c9f04(0x133)][_0x5c9f04(0xf2)](w,_0x4cb88c,_0x3de859);return _0x43f93b[_0x5c9f04(0x11e)](),this['_entities']['set'](_0x4cb88c,_0x43f93b),_0x43f93b;}};I=Z([f(0x0,_0x2a2850),f(0x1,_0x2b27e5(_0x88f3f5)),f(0x2,_0x2b27e5(_0x22c5ad))],I);var h=(_0x4a7842=>(_0x4a7842[_0x29f20e(0xbd)]=_0x29f20e(0x109),_0x4a7842[_0x29f20e(0x11d)]=_0x29f20e(0x103),_0x4a7842[_0x29f20e(0x13c)]=_0x29f20e(0x12a),_0x4a7842[_0x29f20e(0xfc)]=_0x29f20e(0x140),_0x4a7842['PRESENTING']=_0x29f20e(0xae),_0x4a7842))(h||{});const Pe=_0x29f20e(0xe2),Ae=0xc8;let w=class extends _0x416d0b{constructor(_0x1d9ec9,_0x58f57e,_0x13d5a2,_0x1c945a,_0x5571c3){var _0x12d2df=_0x29f20e;super(),d(this,_0x12d2df(0x108),new _0x54c3b0(_0x12d2df(0x103))),d(this,_0x12d2df(0x13a),this[_0x12d2df(0x108)][_0x12d2df(0x136)]()),d(this,'_init',!0x1),d(this,_0x12d2df(0xab),null),d(this,_0x12d2df(0xf5),null),(this[_0x12d2df(0x145)]=_0x1d9ec9,this[_0x12d2df(0x125)]=_0x58f57e,this[_0x12d2df(0xb6)]=_0x13d5a2,this['_liveShareService']=_0x1c945a,this[_0x12d2df(0x141)]=_0x5571c3);}get[_0x29f20e(0xb1)](){var _0x1bba9e=_0x29f20e;return this['_status$'][_0x1bba9e(0x137)]();}[_0x29f20e(0xa7)](){var _0xb78ea4=_0x29f20e,_0x3a2d57;(_0x3a2d57=this[_0xb78ea4(0xab)])==null||_0x3a2d57[_0xb78ea4(0xa7)](),this[_0xb78ea4(0x108)][_0xb78ea4(0x138)](_0xb78ea4(0x103)),this[_0xb78ea4(0x108)][_0xb78ea4(0xb4)]();}['init'](){var _0x4e819f=_0x29f20e;this[_0x4e819f(0x124)]||(this[_0x4e819f(0x124)]=!0x0,this[_0x4e819f(0x125)][_0x4e819f(0xe6)][_0x4e819f(0xeb)](_0xb3ad8b(this[_0x4e819f(0xe9)]))[_0x4e819f(0x10a)](_0x174750=>{var _0xfb102c=_0x4e819f;switch(_0x174750){case _0x1486b6[_0xfb102c(0xbd)]:this[_0xfb102c(0x10d)]();break;case _0x1486b6[_0xfb102c(0xc5)]:this[_0xfb102c(0xee)]();break;}}),this[_0x4e819f(0x125)][_0x4e819f(0xbc)][_0x4e819f(0xeb)](_0xb3ad8b(this['dispose$']))[_0x4e819f(0x10a)](_0x54a86a=>{var _0x1a7cae=_0x4e819f;const {eventID:_0x61666f}=_0x54a86a;switch(_0x61666f){case _0x5b1231[_0x1a7cae(0xb3)]:this[_0x1a7cae(0x104)](_0x54a86a);break;case _0x5b1231[_0x1a7cae(0xcc)]:this[_0x1a7cae(0x131)](_0x54a86a);break;case _0x5b1231['LIVESHARE_TERMINATE']:this[_0x1a7cae(0xad)]();break;case _0x5b1231[_0x1a7cae(0xba)]:this['_handleNewChangeSets'](_0x54a86a);break;}}));}[_0x29f20e(0x132)](){var _0x2e9a9f=_0x29f20e;this['_collabSession'][_0x2e9a9f(0xe7)]({'eventID':_0x5b1231[_0x2e9a9f(0xe8)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x2e9a9f(0x106)]()}},this['_unitID']);}[_0x29f20e(0xde)](){var _0x2f64a8=_0x29f20e;this[_0x2f64a8(0xb1)]==='presenting'&&(this[_0x2f64a8(0x108)]['next'](_0x2f64a8(0x103)),this[_0x2f64a8(0x125)][_0x2f64a8(0xe7)]({'eventID':_0x5b1231[_0x2f64a8(0x130)],'data':{'unitID':this['_unitID']}},this[_0x2f64a8(0x145)]));}[_0x29f20e(0xca)](){var _0x42fe94=_0x29f20e;this[_0x42fe94(0xb1)]===_0x42fe94(0x140)&&(this[_0x42fe94(0x108)][_0x42fe94(0x138)](_0x42fe94(0x12a)),this[_0x42fe94(0xc4)]());}[_0x29f20e(0xa5)](){var _0x1ba63f=_0x29f20e;this[_0x1ba63f(0xb1)]==='following'&&this[_0x1ba63f(0xdb)]();}[_0x29f20e(0x104)](_0x20147f){var _0x516f92=_0x29f20e;const {presenter:_0x41b3e6}=_0x20147f['data'],_0x43cff7=this[_0x516f92(0x125)][_0x516f92(0x106)]();this[_0x516f92(0xf5)]=_0x41b3e6,_0x41b3e6===_0x43cff7?(this[_0x516f92(0xdb)](),this['_startPresenting']()):this['_status']!==_0x516f92(0x140)&&(this['_stopPresenting'](),this[_0x516f92(0xc4)]());}['_fetchOperations'](){var _0x3595f=_0x29f20e;const _0x3b9013={'eventID':_0x5b1231[_0x3595f(0x12c)]};this[_0x3595f(0x125)]['send'](_0x3b9013,this[_0x3595f(0x145)]);}[_0x29f20e(0xad)](){var _0xc3f262=_0x29f20e;this[_0xc3f262(0xf5)]=null,this[_0xc3f262(0xb1)]!==_0xc3f262(0xae)&&this[_0xc3f262(0x13d)]();}[_0x29f20e(0xc9)](_0xe32600){var _0x2f3ff7=_0x29f20e;if(this['_status']==='following'&&this[_0x2f3ff7(0xf5)]===_0xe32600[_0x2f3ff7(0xc1)][_0x2f3ff7(0xd5)]){const _0x35e994=_0x300461(_0xe32600['data'])['mutations'][_0x2f3ff7(0xd2)]()[_0x2f3ff7(0xd0)](_0x15d6ba=>_0x15d6ba['id']===_0x18faeb['id']);if(_0x35e994){const _0x1dec01=_0x35e994[_0x2f3ff7(0xf6)][_0x2f3ff7(0xd7)],_0x4bf220=_0x35e994[_0x2f3ff7(0xf6)]['sheet']['id'];setTimeout(()=>{var _0x251910=_0x2f3ff7;this[_0x251910(0x141)]['executeCommand'](_0x348477['id'],{'unitId':_0x1dec01,'subUnitId':_0x4bf220},{'fromCollab':!0x0});});}}}[_0x29f20e(0xd1)](){var _0x1c8505=_0x29f20e;this[_0x1c8505(0x108)][_0x1c8505(0x138)](_0x1c8505(0xae));const _0x13b34b=new Map(),_0x200177=this['_commandDisposable']=new _0x259978();_0x200177[_0x1c8505(0xd8)](_0x5e39ab(()=>{_0x13b34b['forEach'](_0x536f25=>_0x536f25['complete']()),_0x13b34b['clear']();})),_0x200177[_0x1c8505(0xd8)](this[_0x1c8505(0x141)][_0x1c8505(0x115)](_0x2534a5=>{var _0x2fe2f0=_0x1c8505,_0x40d3ab;if(_0x2534a5[_0x2fe2f0(0x10b)]!==_0xfdb75e[_0x2fe2f0(0x118)]||!this[_0x2fe2f0(0x116)][_0x2fe2f0(0xa8)](_0x2534a5['id']))return;const {id:_0x1e95e9}=_0x2534a5;let _0xdecc85;_0x13b34b[_0x2fe2f0(0x12d)](_0x1e95e9)?_0xdecc85=_0x13b34b[_0x2fe2f0(0xf7)](_0x1e95e9):(_0xdecc85=new _0xae6176(),_0x13b34b[_0x2fe2f0(0xb5)](_0x1e95e9,_0xdecc85),_0xdecc85['pipe'](_0x1882fd((_0x40d3ab=this['_configService']['getConfig'](Pe))!=null?_0x40d3ab:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x55e73e=>{var _0x540b79=_0x2fe2f0;this[_0x540b79(0x125)]['send']({'eventID':_0x5b1231[_0x540b79(0xcc)],'data':{'unitID':this[_0x540b79(0x145)],'operations':{[_0x55e73e['id']]:{'id':_0x55e73e['id'],'params':JSON[_0x540b79(0x128)](_0x55e73e[_0x540b79(0xf6)])}}}},this[_0x540b79(0x145)]);})),_0xdecc85[_0x2fe2f0(0x138)](_0x2534a5);})),this[_0x1c8505(0x116)][_0x1c8505(0xa0)](this[_0x1c8505(0x145)])[_0x1c8505(0x111)](_0x6329e5=>this[_0x1c8505(0x125)]['send']({'eventID':_0x5b1231[_0x1c8505(0xcc)],'data':{'unitID':this[_0x1c8505(0x145)],'operations':{[_0x6329e5['id']]:{'id':_0x6329e5['id'],'params':JSON[_0x1c8505(0x128)](_0x6329e5[_0x1c8505(0xf6)])}}}},this[_0x1c8505(0x145)]));}[_0x29f20e(0xd4)](){var _0x4e52d6=_0x29f20e,_0xa417d0;this[_0x4e52d6(0x108)][_0x4e52d6(0x138)](_0x4e52d6(0x103)),(_0xa417d0=this['_commandDisposable'])==null||_0xa417d0['dispose'](),this['_commandDisposable']=null;}['_startFollowing'](){var _0x6708c9=_0x29f20e,_0x48de0f;(_0x48de0f=this[_0x6708c9(0xab)])==null||_0x48de0f[_0x6708c9(0xa7)](),this[_0x6708c9(0x108)][_0x6708c9(0x138)](_0x6708c9(0x12a));}[_0x29f20e(0x13d)](){var _0x29f1d7=_0x29f20e,_0x11be02;this[_0x29f1d7(0x108)]['next'](_0x29f1d7(0x103)),(_0x11be02=this[_0x29f1d7(0xab)])==null||_0x11be02[_0x29f1d7(0xa7)](),this[_0x29f1d7(0xab)]=null;}[_0x29f20e(0xdb)](){var _0x33427f=_0x29f20e,_0x1c9ed4;this[_0x33427f(0x108)][_0x33427f(0x138)](_0x33427f(0x140)),(_0x1c9ed4=this['_commandDisposable'])==null||_0x1c9ed4[_0x33427f(0xa7)]();}['_handleOperation'](_0x77dea5){var _0x30c30c=_0x29f20e;if([_0x30c30c(0xae),_0x30c30c(0x140),_0x30c30c(0x109)][_0x30c30c(0x10c)](this[_0x30c30c(0xb1)])||!_0x77dea5[_0x30c30c(0xc1)][_0x30c30c(0x123)]||_0x77dea5[_0x30c30c(0xc1)][_0x30c30c(0x123)]===this[_0x30c30c(0x125)][_0x30c30c(0x106)]())return;this[_0x30c30c(0xb1)]==='idle'&&this['_startFollowing']();const _0x4548f0=_0x77dea5[_0x30c30c(0xc1)]['operations'];Object['values'](_0x4548f0)[_0x30c30c(0x111)](_0x6d80bc=>{var _0x162d5c=_0x30c30c;this[_0x162d5c(0x141)]['executeCommand'](_0x6d80bc['id'],_0x6d80bc[_0x162d5c(0xf6)]?JSON['parse'](_0x6d80bc['params']):null,{'fromCollab':!0x0});});}[_0x29f20e(0x10d)](){var _0x19a82c=_0x29f20e,_0x58387c;this['_status$'][_0x19a82c(0x138)]('offline'),(_0x58387c=this[_0x19a82c(0xab)])==null||_0x58387c['dispose']();}[_0x29f20e(0xee)](){var _0x149aa5=_0x29f20e;this[_0x149aa5(0x108)][_0x149aa5(0x138)](_0x149aa5(0x103)),this['_fetchOperations']();}};w=Z([f(0x2,_0x35e166),f(0x3,_0x2b27e5(L)),f(0x4,_0x2043b7)],w);function Te(){var _0x2df0f5=_0x29f20e;const _0xbbbec0=_0x493516(I),_0x46e373=_0x493516(_0x2a2850),_0x3c8ff1=_0x21980c(()=>_0x46e373[_0x2df0f5(0xf4)](_0x70eb56['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x55ef6e,_0x3ef171]=_0x5cc44c(null),[_0x47f646,_0x51f219]=_0x5cc44c(h['IDLE']),_0x20c893=_0x411e20(null);return _0x3c174d(()=>(_0x3c8ff1&&_0xbbbec0['getLiveShareCoordinator'](_0x3c8ff1[_0x2df0f5(0xcd)]())[_0x2df0f5(0x121)](_0x185992=>{var _0x1bfd11=_0x2df0f5;_0x3ef171(_0x185992),_0x20c893[_0x1bfd11(0xe3)]=_0x185992[_0x1bfd11(0x13a)][_0x1bfd11(0x10a)](_0x5f3169=>{_0x51f219(_0x5f3169);});}),()=>{var _0x5ed03a=_0x2df0f5,_0x305773;(_0x305773=_0x20c893[_0x5ed03a(0xe3)])==null||_0x305773[_0x5ed03a(0xed)](),_0x20c893[_0x5ed03a(0xe3)]=null;}),[_0x3c8ff1,_0xbbbec0]),_0x55ef6e?_0x4aa79a(_0x552500,{'align':_0x2df0f5(0xdd),'disabled':_0x47f646===h[_0x2df0f5(0xbd)],'className':_0x2df0f5(0xc8),'overlay':_0x4aa79a($e,{'status':_0x47f646,'coordinator':_0x55ef6e}),'children':_0x4aa79a('button',{'className':_0x4f9fb3('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x47f646===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x47f646!==h[_0x2df0f5(0xbd)]}),'type':_0x2df0f5(0x102),'children':_0x4aa79a(B,{'className':_0x2df0f5(0x135)})})}):null;}function $e(_0x572603){var _0x116ce2=_0x29f20e;const {status:_0x45b008,coordinator:_0x33d0df}=_0x572603;switch(_0x45b008){case h[_0x116ce2(0x11d)]:return _0x4aa79a(Fe,{'coordinator':_0x33d0df});case h['FOLLOWING']:return _0x4aa79a(He,{'coordinator':_0x33d0df});case h['NOT_FOLLOWING']:return _0x4aa79a(je,{'coordinator':_0x33d0df});case h['OFFLINE']:return _0x4aa79a(Ve,{});case h[_0x116ce2(0x11c)]:return _0x4aa79a(Ue,{'coordinator':_0x33d0df});default:return null;}}function Fe(_0x4cfd29){var _0x39513c=_0x29f20e;const {coordinator:_0x394c90}=_0x4cfd29;return _0x1dee4f(_0x2ff6ca,{'children':[_0x4aa79a(_0x39513c(0xfb),{'className':_0x39513c(0x129),'children':'Present\x20this\x20document'}),_0x4aa79a(_0x55d525,{'onClick':()=>_0x394c90['tryStartPresenting'](),'children':_0x39513c(0x147)})]});}function He(_0x1f9c85){var _0x522da6=_0x29f20e;const {coordinator:_0x1b384a}=_0x1f9c85;return _0x1dee4f(_0x2ff6ca,{'children':[_0x4aa79a(_0x522da6(0xfb),{'className':_0x522da6(0x129),'children':_0x522da6(0xea)}),_0x4aa79a(_0x55d525,{'onClick':()=>_0x1b384a[_0x522da6(0xa5)](),'children':'Stop\x20following'})]});}function je(_0x176ebc){var _0x5edf72=_0x29f20e;const {coordinator:_0x334fe8}=_0x176ebc;return _0x1dee4f(_0x2ff6ca,{'children':[_0x4aa79a('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5edf72(0xf3)}),_0x4aa79a(_0x55d525,{'variant':_0x5edf72(0xce),'onClick':()=>_0x334fe8[_0x5edf72(0xca)](),'children':_0x5edf72(0xff)})]});}function Ue(_0x1939fd){var _0x6aad7c=_0x29f20e;const {coordinator:_0x5de474}=_0x1939fd;return _0x1dee4f(_0x2ff6ca,{'children':[_0x4aa79a(_0x6aad7c(0xfb),{'className':_0x6aad7c(0x129),'children':_0x6aad7c(0x126)}),_0x4aa79a(_0x55d525,{'variant':_0x6aad7c(0xaa),'onClick':()=>_0x5de474[_0x6aad7c(0xde)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x2555fd=_0x29f20e;return _0x4aa79a(_0x2ff6ca,{'children':_0x2555fd(0xef)});}var Me=Object[_0x29f20e(0x10e)],ke=(_0x419ba8,_0x7ccd25,_0x4638d1,_0x17ce96)=>{for(var _0x18fa1e=_0x17ce96>0x1?void 0x0:_0x17ce96?Me(_0x7ccd25,_0x4638d1):_0x7ccd25,_0x48cdd7=_0x419ba8['length']-0x1,_0x2b2198;_0x48cdd7>=0x0;_0x48cdd7--)(_0x2b2198=_0x419ba8[_0x48cdd7])&&(_0x18fa1e=_0x2b2198(_0x18fa1e)||_0x18fa1e);return _0x18fa1e;},$=(_0xbec4c1,_0x4d5397)=>(_0x114b90,_0x32dc85)=>_0x4d5397(_0x114b90,_0x32dc85,_0xbec4c1);let b=class extends _0x3375e6{constructor(_0x3e3c48,_0x420b4a){var _0x47061f=_0x29f20e;super(),this[_0x47061f(0x133)]=_0x3e3c48,this[_0x47061f(0xf9)]=_0x420b4a,this[_0x47061f(0x134)]();}[_0x29f20e(0x134)](){var _0x1ca1d4=_0x29f20e;this[_0x1ca1d4(0xfd)](this[_0x1ca1d4(0xf9)][_0x1ca1d4(0xd9)](_0x29a15b['HEADER_MENU'],()=>_0x52be52(Te,this['_injector'])));}};b=ke([$(0x0,_0x2b27e5(_0x88f3f5)),$(0x1,_0x1735f8)],b);var Ge=Object[_0x29f20e(0xaf)],We=Object[_0x29f20e(0x10e)],Ye=(_0x2e6ed8,_0x3b3da4,_0x4a35ba)=>_0x3b3da4 in _0x2e6ed8?Ge(_0x2e6ed8,_0x3b3da4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a35ba}):_0x2e6ed8[_0x3b3da4]=_0x4a35ba,Be=(_0x10dfec,_0x4158ac,_0x5f54c9,_0x45798f)=>{var _0x19c3f9=_0x29f20e;for(var _0x16ed35=_0x45798f>0x1?void 0x0:_0x45798f?We(_0x4158ac,_0x5f54c9):_0x4158ac,_0x4fd026=_0x10dfec[_0x19c3f9(0x146)]-0x1,_0x169a3c;_0x4fd026>=0x0;_0x4fd026--)(_0x169a3c=_0x10dfec[_0x4fd026])&&(_0x16ed35=_0x169a3c(_0x16ed35)||_0x16ed35);return _0x16ed35;},F=(_0xf2c91c,_0x78b9f)=>(_0x198689,_0x13bb7f)=>_0x78b9f(_0x198689,_0x13bb7f,_0xf2c91c),J=(_0x2d8010,_0x1e4ff7,_0x54d086)=>Ye(_0x2d8010,typeof _0x1e4ff7!=_0x29f20e(0xe5)?_0x1e4ff7+'':_0x1e4ff7,_0x54d086);const Ze=_0x29f20e(0x117);let O=class extends _0xba14a{constructor(_0x1208c3=T,_0x545ad6,_0x488554){var _0x345d10=_0x29f20e;super(),this[_0x345d10(0xa4)]=_0x1208c3,this['_injector']=_0x545ad6,this['_configService']=_0x488554;const {..._0x274ee4}=_0x2f1e0d({},T,this[_0x345d10(0xa4)]);this['_configService'][_0x345d10(0x112)](Oe,_0x274ee4);}[_0x29f20e(0xb0)](){var _0x2e19a9=_0x29f20e;_0x4fada3(this['_injector'],_0x32112a([[L],[I],[m],[b]],this[_0x2e19a9(0xa4)][_0x2e19a9(0xc2)])),_0x132bf9(this[_0x2e19a9(0x133)],[[m]]);}[_0x29f20e(0xf0)](){_0x132bf9(this['_injector'],[[b]]);}};J(O,'type',_0x70eb56[_0x29f20e(0xec)]),J(O,_0x29f20e(0xe4),Ze),O=Be([_0x35339f(_0x2b8f23),F(0x1,_0x2b27e5(_0x88f3f5)),F(0x2,_0x35e166)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x2a0f2a=_0x1c4f;(function(_0x5f0a4e,_0xddb148){var _0x469746=_0x1c4f,_0x1bfa3d=_0x5f0a4e();while(!![]){try{var _0x88fdf4=-parseInt(_0x469746(0x186))/0x1+parseInt(_0x469746(0x223))/0x2+parseInt(_0x469746(0x1bc))/0x3+-parseInt(_0x469746(0x216))/0x4+parseInt(_0x469746(0x21c))/0x5*(-parseInt(_0x469746(0x178))/0x6)+parseInt(_0x469746(0x1ce))/0x7+parseInt(_0x469746(0x1fb))/0x8;if(_0x88fdf4===_0xddb148)break;else _0x1bfa3d['push'](_0x1bfa3d['shift']());}catch(_0x1ab257){_0x1bfa3d['push'](_0x1bfa3d['shift']());}}}(_0x2677,0x9e744));var q=Object['defineProperty'],z=(_0x71726f,_0x613047,_0x47626e)=>_0x613047 in _0x71726f?q(_0x71726f,_0x613047,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x47626e}):_0x71726f[_0x613047]=_0x47626e,d=(_0x35722d,_0x3eb878,_0x405534)=>z(_0x35722d,typeof _0x3eb878!=_0x2a0f2a(0x1e6)?_0x3eb878+'':_0x3eb878,_0x405534);import{CollaborationSessionService as _0x139eaf,SessionStatus as _0x511ef6,UniverCollaborationClientPlugin as _0x2cf583}from'@univerjs-pro/collaboration-client';import{Disposable as _0x56d91a,toDisposable as _0x3ea5b0,Inject as _0x459502,IUniverInstanceService as _0x560e40,Injector as _0x511763,IConfigService as _0x2e77bf,ICommandService as _0x22ff36,RxDisposable as _0x2773af,UniverInstanceType as _0x43f478,DisposableCollection as _0x31b05b,CommandType as _0x53a8fc,DependentOn as _0x2ecbb5,Plugin as _0x36cf9c,merge as _0x2a8c98,registerDependencies as _0x123d95,mergeOverrideWithDependencies as _0x4f628e,touchDependencies as _0x2d4a9e}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x56cadf,InsertSheetMutation as _0x18edf1}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x236b5e,SetScrollOperation as _0x4e40a1}from'@univerjs/sheets-ui';import{useDependency as _0x3e135f,useObservable as _0x1d56b5,IUIPartsService as _0xf8ae92,BuiltInUIPart as _0xba4be9,connectInjector as _0x57f19d}from'@univerjs/ui';import{jsx as _0x430726,jsxs as _0x2b0221,Fragment as _0x114633}from'react/jsx-runtime';import{Dropdown as _0x1f1fbe,clsx as _0x285d7d,Button as _0x46f48e}from'@univerjs/design';import{forwardRef as _0x4e0fc8,useRef as _0xba99eb,createElement as _0x216e9d,useState as _0x216df8,useEffect as _0x245dda}from'react';import{CollaborationEvent as _0x4c2295,parseProtocolChangeset as _0x5217ed}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x4f5984,Subject as _0x5ef0c0}from'rxjs';import{takeUntil as _0x31d1f6,throttleTime as _0x2ea41b}from'rxjs/operators';const Oe=_0x2a0f2a(0x205),T={};class L extends _0x56d91a{constructor(){var _0x33d36e=_0x2a0f2a;super(...arguments),d(this,_0x33d36e(0x184),new Set()),d(this,_0x33d36e(0x187),new Set());}[_0x2a0f2a(0x1ed)](_0x215604){var _0x356f00=_0x2a0f2a;return this[_0x356f00(0x184)][_0x356f00(0x196)](_0x215604),_0x3ea5b0(()=>this['_sharedOperations'][_0x356f00(0x1ad)](_0x215604));}['registerInitialStateReporter'](_0x2b751f){return this['_reporters']['add'](_0x2b751f),_0x3ea5b0(()=>this['_reporters']['delete'](_0x2b751f));}[_0x2a0f2a(0x1b9)](_0x53b27c){var _0x4a3a32=_0x2a0f2a;return this[_0x4a3a32(0x184)][_0x4a3a32(0x18b)](_0x53b27c);}['getInitialStates'](_0x4d27f3){var _0x3ad593=_0x2a0f2a;return Array[_0x3ad593(0x183)](this['_reporters'])['map'](_0x5477ac=>_0x5477ac(_0x4d27f3));}}var Ee=Object[_0x2a0f2a(0x1ef)],Ce=(_0x4001dd,_0x42eb55,_0x1eebd0,_0xf7aeeb)=>{var _0x17af7b=_0x2a0f2a;for(var _0x2f99d4=_0xf7aeeb>0x1?void 0x0:_0xf7aeeb?Ee(_0x42eb55,_0x1eebd0):_0x42eb55,_0x3a22af=_0x4001dd[_0x17af7b(0x1e2)]-0x1,_0x490658;_0x3a22af>=0x0;_0x3a22af--)(_0x490658=_0x4001dd[_0x3a22af])&&(_0x2f99d4=_0x490658(_0x2f99d4)||_0x2f99d4);return _0x2f99d4;},Ne=(_0xf5d60e,_0x20bce6)=>(_0x1d54fa,_0x230642)=>_0x20bce6(_0x1d54fa,_0x230642,_0xf5d60e);let m=class extends _0x56d91a{constructor(_0x2e9499){var _0x71e7e5=_0x2a0f2a;super(),this['_liveShareService']=_0x2e9499,this[_0x71e7e5(0x1b6)]();}[_0x2a0f2a(0x1b6)](){[_0x236b5e['id'],_0x4e40a1['id'],_0x56cadf['id']]['forEach'](_0x39d97e=>{var _0x16ebaf=_0x1c4f;this['disposeWithMe'](this[_0x16ebaf(0x19f)][_0x16ebaf(0x1ed)](_0x39d97e));});}};m=Ce([Ne(0x0,_0x459502(L))],m);var c=function(){var _0x691001=_0x2a0f2a;return c=Object[_0x691001(0x21d)]||function(_0x5e32e4){var _0x4cdf4a=_0x691001;for(var _0xdaa6f3,_0x1caf9d=0x1,_0x59d549=arguments[_0x4cdf4a(0x1e2)];_0x1caf9d<_0x59d549;_0x1caf9d++){_0xdaa6f3=arguments[_0x1caf9d];for(var _0x189455 in _0xdaa6f3)Object[_0x4cdf4a(0x1a0)]['hasOwnProperty'][_0x4cdf4a(0x175)](_0xdaa6f3,_0x189455)&&(_0x5e32e4[_0x189455]=_0xdaa6f3[_0x189455]);}return _0x5e32e4;},c[_0x691001(0x1e8)](this,arguments);},we=function(_0x10c2c8,_0x3f7e1a){var _0x437ecd=_0x2a0f2a,_0x39fc14={};for(var _0x4720c3 in _0x10c2c8)Object[_0x437ecd(0x1a0)][_0x437ecd(0x18d)][_0x437ecd(0x175)](_0x10c2c8,_0x4720c3)&&_0x3f7e1a[_0x437ecd(0x18a)](_0x4720c3)<0x0&&(_0x39fc14[_0x4720c3]=_0x10c2c8[_0x4720c3]);if(_0x10c2c8!=null&&typeof Object[_0x437ecd(0x1cb)]=='function'){for(var _0x134b13=0x0,_0x4720c3=Object['getOwnPropertySymbols'](_0x10c2c8);_0x134b13<_0x4720c3[_0x437ecd(0x1e2)];_0x134b13++)_0x3f7e1a[_0x437ecd(0x18a)](_0x4720c3[_0x134b13])<0x0&&Object[_0x437ecd(0x1a0)][_0x437ecd(0x1e9)][_0x437ecd(0x175)](_0x10c2c8,_0x4720c3[_0x134b13])&&(_0x39fc14[_0x4720c3[_0x134b13]]=_0x10c2c8[_0x4720c3[_0x134b13]]);}return _0x39fc14;},W=_0x4e0fc8(function(_0x380565,_0x224b02){var _0x394fb5=_0x2a0f2a,_0x40daa6=_0x380565[_0x394fb5(0x1ec)],_0x243046=_0x380565['id'],_0x31ed57=_0x380565[_0x394fb5(0x1dc)],_0x2211ab=_0x380565[_0x394fb5(0x1f8)],_0x17b0db=we(_0x380565,[_0x394fb5(0x1ec),'id',_0x394fb5(0x1dc),_0x394fb5(0x1f8)]),_0x203233=_0x394fb5(0x1d9)[_0x394fb5(0x208)](_0x243046,'\x20')[_0x394fb5(0x208)](_0x31ed57||'')[_0x394fb5(0x17a)](),_0x366822=_0xba99eb('_'[_0x394fb5(0x208)](Le()));return Y(_0x40daa6,''[_0x394fb5(0x208)](_0x243046),{'defIds':_0x40daa6[_0x394fb5(0x20d)],'idSuffix':_0x366822['current']},c({'ref':_0x224b02,'className':_0x203233},_0x17b0db),_0x2211ab);});function Y(_0x4e3849,_0xc6506,_0x5da265,_0x187970,_0x4deec8){var _0x327db8=_0x2a0f2a;return _0x216e9d(_0x4e3849[_0x327db8(0x1a8)],c(c({'key':_0xc6506},De(_0x4e3849,_0x5da265,_0x4deec8)),_0x187970),(xe(_0x4e3849,_0x5da265)[_0x327db8(0x1b0)]||[])['map'](function(_0x1372b5,_0x48514a){var _0x119d1e=_0x327db8;return Y(_0x1372b5,''[_0x119d1e(0x208)](_0xc6506,'-')[_0x119d1e(0x208)](_0x4e3849['tag'],'-')[_0x119d1e(0x208)](_0x48514a),_0x5da265,void 0x0,_0x4deec8);}));}function De(_0x4f6fa1,_0x1dbbfd,_0x4cab33){var _0x5a51bf=_0x2a0f2a,_0x3f8a37=c({},_0x4f6fa1[_0x5a51bf(0x1b4)]);_0x4cab33!=null&&_0x4cab33[_0x5a51bf(0x1d3)]&&_0x3f8a37[_0x5a51bf(0x218)]===_0x5a51bf(0x1d3)&&(_0x3f8a37[_0x5a51bf(0x218)]=_0x4cab33[_0x5a51bf(0x1d3)]),_0x4f6fa1['tag']===_0x5a51bf(0x181)&&_0x3f8a37['id']&&(_0x3f8a37['id']=_0x3f8a37['id']+_0x1dbbfd[_0x5a51bf(0x1b1)]),Object[_0x5a51bf(0x1a3)](_0x3f8a37)[_0x5a51bf(0x20f)](function(_0x23d6ee){var _0x5c8e7b=_0x5a51bf,_0x1a0220=_0x23d6ee[0x0],_0x489556=_0x23d6ee[0x1];_0x1a0220===_0x5c8e7b(0x181)&&typeof _0x489556=='string'&&(_0x3f8a37[_0x1a0220]=_0x489556[_0x5c8e7b(0x1f4)](/url\(#(.*)\)/,'url(#$1'[_0x5c8e7b(0x208)](_0x1dbbfd[_0x5c8e7b(0x1b1)],')')));});var _0x23c14=_0x1dbbfd[_0x5a51bf(0x20d)];return!_0x23c14||_0x23c14['length']===0x0||(_0x4f6fa1[_0x5a51bf(0x1a8)]===_0x5a51bf(0x174)&&_0x3f8a37['xlink:href']&&(_0x3f8a37['xlink:href']=_0x3f8a37[_0x5a51bf(0x1a5)]+_0x1dbbfd[_0x5a51bf(0x1b1)]),Object[_0x5a51bf(0x1a3)](_0x3f8a37)[_0x5a51bf(0x20f)](function(_0x4aeb54){var _0x12b600=_0x5a51bf,_0x2543d2=_0x4aeb54[0x0],_0x43488c=_0x4aeb54[0x1];typeof _0x43488c==_0x12b600(0x1dd)&&(_0x3f8a37[_0x2543d2]=_0x43488c[_0x12b600(0x1f4)](/url\(#(.*)\)/,_0x12b600(0x1b5)[_0x12b600(0x208)](_0x1dbbfd[_0x12b600(0x1b1)],')')));})),_0x3f8a37;}function xe(_0x29a139,_0x5052f5){var _0x3e8e57=_0x2a0f2a,_0x17b817,_0x46a30d=_0x5052f5[_0x3e8e57(0x20d)];return!_0x46a30d||_0x46a30d[_0x3e8e57(0x1e2)]===0x0?_0x29a139:_0x29a139[_0x3e8e57(0x1a8)]===_0x3e8e57(0x18c)&&(!((_0x17b817=_0x29a139[_0x3e8e57(0x1b0)])===null||_0x17b817===void 0x0)&&_0x17b817['length'])?c(c({},_0x29a139),{'children':_0x29a139[_0x3e8e57(0x1b0)]['map'](function(_0xce47ed){var _0x3a2a29=_0x3e8e57;return typeof _0xce47ed[_0x3a2a29(0x1b4)]['id']==_0x3a2a29(0x1dd)&&_0x46a30d&&_0x46a30d[_0x3a2a29(0x18a)](_0xce47ed[_0x3a2a29(0x1b4)]['id'])>-0x1?c(c({},_0xce47ed),{'attrs':c(c({},_0xce47ed[_0x3a2a29(0x1b4)]),{'id':_0xce47ed[_0x3a2a29(0x1b4)]['id']+_0x5052f5[_0x3a2a29(0x1b1)]})}):_0xce47ed;})}):_0x29a139;}function Le(){var _0x2a9c00=_0x2a0f2a;return Math[_0x2a9c00(0x1ac)]()[_0x2a9c00(0x1d4)](0x24)[_0x2a9c00(0x215)](0x2,0x8);}W[_0x2a0f2a(0x1e4)]=_0x2a0f2a(0x1d1);var ye={'tag':_0x2a0f2a(0x1d6),'attrs':{'fill':_0x2a0f2a(0x1e0),'viewBox':_0x2a0f2a(0x1c3),'width':'1em','height':_0x2a0f2a(0x190)},'children':[{'tag':_0x2a0f2a(0x1cc),'attrs':{'fill':_0x2a0f2a(0x1f9),'d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':'path','attrs':{'fill':_0x2a0f2a(0x1f9),'d':_0x2a0f2a(0x189),'fillRule':_0x2a0f2a(0x21f),'clipRule':_0x2a0f2a(0x21f)}}]},B=_0x4e0fc8(function(_0x1d6b22,_0x193f10){var _0x43ac9d=_0x2a0f2a;return _0x216e9d(W,Object[_0x43ac9d(0x21d)]({},_0x1d6b22,{'id':_0x43ac9d(0x1ff),'ref':_0x193f10,'icon':ye}));});B['displayName']='LiveShareSingle';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x4ebed0,_0x2a5db7,_0x138018,_0x1605d5)=>{var _0x39caec=_0x2a0f2a;for(var _0x3dbed8=_0x1605d5>0x1?void 0x0:_0x1605d5?Re(_0x2a5db7,_0x138018):_0x2a5db7,_0x1af66d=_0x4ebed0[_0x39caec(0x1e2)]-0x1,_0x3a2c18;_0x1af66d>=0x0;_0x1af66d--)(_0x3a2c18=_0x4ebed0[_0x1af66d])&&(_0x3dbed8=_0x3a2c18(_0x3dbed8)||_0x3dbed8);return _0x3dbed8;},f=(_0x4d06cc,_0x46eae0)=>(_0x4206a4,_0x2e663b)=>_0x46eae0(_0x4206a4,_0x2e663b,_0x4d06cc);let I=class extends _0x2773af{constructor(_0x3270dd,_0x433c2b,_0x3ab648){var _0x5ca8be=_0x2a0f2a;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x3270dd,this[_0x5ca8be(0x201)]=_0x433c2b,this[_0x5ca8be(0x1fc)]=_0x3ab648,this[_0x5ca8be(0x1b6)]());}async['getLiveShareCoordinator'](_0x41c42d){var _0x40a477=_0x2a0f2a;return this[_0x40a477(0x192)][_0x40a477(0x18b)](_0x41c42d)||await this[_0x40a477(0x1fd)](_0x41c42d),this[_0x40a477(0x192)][_0x40a477(0x222)](_0x41c42d);}[_0x2a0f2a(0x1b6)](){var _0x2423a0=_0x2a0f2a;this[_0x2423a0(0x191)][_0x2423a0(0x1d5)](_0x43f478[_0x2423a0(0x1a9)])[_0x2423a0(0x204)](_0x31d1f6(this[_0x2423a0(0x1d0)]))['subscribe'](async _0x115fc8=>{var _0x1a6f31=_0x2423a0;const _0x1c1e12=_0x115fc8[_0x1a6f31(0x176)]();this[_0x1a6f31(0x192)]['has'](_0x1c1e12)||this[_0x1a6f31(0x1fd)](_0x1c1e12);}),this['_univerInstanceService'][_0x2423a0(0x1e5)](_0x43f478[_0x2423a0(0x1a9)])['pipe'](_0x31d1f6(this[_0x2423a0(0x1d0)]))[_0x2423a0(0x1c8)](_0x41085c=>{var _0xb336f2=_0x2423a0;const _0x104a96=_0x41085c['getUnitId'](),_0x829d45=this[_0xb336f2(0x192)][_0xb336f2(0x222)](_0x104a96);_0x829d45==null||_0x829d45[_0xb336f2(0x17c)]();});}async[_0x2a0f2a(0x1fd)](_0x527381){var _0x3705c8=_0x2a0f2a;const _0x5b53a0=await this['_collabSessionService']['requireSession'](_0x527381),_0x125e20=this[_0x3705c8(0x201)]['createInstance'](w,_0x527381,_0x5b53a0);return _0x125e20[_0x3705c8(0x1c5)](),this['_entities'][_0x3705c8(0x20c)](_0x527381,_0x125e20),_0x125e20;}};I=Z([f(0x0,_0x560e40),f(0x1,_0x459502(_0x511763)),f(0x2,_0x459502(_0x139eaf))],I);var h=(_0x108c59=>(_0x108c59[_0x2a0f2a(0x1bb)]=_0x2a0f2a(0x180),_0x108c59['IDLE']=_0x2a0f2a(0x1a1),_0x108c59[_0x2a0f2a(0x1be)]=_0x2a0f2a(0x1ba),_0x108c59['NOT_FOLLOWING']=_0x2a0f2a(0x1b7),_0x108c59[_0x2a0f2a(0x1ee)]=_0x2a0f2a(0x1f5),_0x108c59))(h||{});const Pe=_0x2a0f2a(0x18f),Ae=0xc8;let w=class extends _0x2773af{constructor(_0x4a70b2,_0x1cd2d6,_0x38f627,_0x6747b9,_0x42f5a5){var _0x356b61=_0x2a0f2a;super(),d(this,_0x356b61(0x224),new _0x4f5984(_0x356b61(0x1a1))),d(this,'status$',this['_status$'][_0x356b61(0x193)]()),d(this,_0x356b61(0x1b6),!0x1),d(this,'_commandDisposable',null),d(this,_0x356b61(0x19b),null),(this['_unitID']=_0x4a70b2,this['_collabSession']=_0x1cd2d6,this['_configService']=_0x38f627,this[_0x356b61(0x19f)]=_0x6747b9,this[_0x356b61(0x1c0)]=_0x42f5a5);}get[_0x2a0f2a(0x203)](){var _0x367dca=_0x2a0f2a;return this[_0x367dca(0x224)][_0x367dca(0x1da)]();}[_0x2a0f2a(0x17c)](){var _0x55fdf5=_0x2a0f2a,_0x55b3c9;(_0x55b3c9=this[_0x55fdf5(0x1cf)])==null||_0x55b3c9[_0x55fdf5(0x17c)](),this[_0x55fdf5(0x224)]['next']('idle'),this[_0x55fdf5(0x224)][_0x55fdf5(0x1fa)]();}['init'](){var _0x15d87a=_0x2a0f2a;this['_init']||(this[_0x15d87a(0x1b6)]=!0x0,this[_0x15d87a(0x1cd)][_0x15d87a(0x17e)][_0x15d87a(0x204)](_0x31d1f6(this[_0x15d87a(0x1d0)]))['subscribe'](_0x305799=>{var _0x166441=_0x15d87a;switch(_0x305799){case _0x511ef6[_0x166441(0x1bb)]:this[_0x166441(0x188)]();break;case _0x511ef6['ONLINE']:this[_0x166441(0x1af)]();break;}}),this['_collabSession'][_0x15d87a(0x195)][_0x15d87a(0x204)](_0x31d1f6(this[_0x15d87a(0x1d0)]))[_0x15d87a(0x1c8)](_0x2fc1f7=>{var _0x2a22b7=_0x15d87a;const {eventID:_0x3517c0}=_0x2fc1f7;switch(_0x3517c0){case _0x4c2295[_0x2a22b7(0x182)]:this[_0x2a22b7(0x212)](_0x2fc1f7);break;case _0x4c2295['LIVESHARE_OPERATION']:this[_0x2a22b7(0x1c7)](_0x2fc1f7);break;case _0x4c2295['LIVESHARE_TERMINATE']:this[_0x2a22b7(0x1a7)]();break;case _0x4c2295[_0x2a22b7(0x21e)]:this[_0x2a22b7(0x185)](_0x2fc1f7);break;}}));}[_0x2a0f2a(0x19a)](){var _0x1ed016=_0x2a0f2a;this['_collabSession'][_0x1ed016(0x173)]({'eventID':_0x4c2295[_0x1ed016(0x19e)],'data':{'unitID':this[_0x1ed016(0x179)],'userID':this[_0x1ed016(0x1cd)][_0x1ed016(0x17b)]()}},this[_0x1ed016(0x179)]);}[_0x2a0f2a(0x20e)](){var _0x480d6b=_0x2a0f2a;this[_0x480d6b(0x203)]==='presenting'&&(this[_0x480d6b(0x224)][_0x480d6b(0x1a2)](_0x480d6b(0x1a1)),this[_0x480d6b(0x1cd)]['send']({'eventID':_0x4c2295[_0x480d6b(0x1e3)],'data':{'unitID':this[_0x480d6b(0x179)]}},this['_unitID']));}[_0x2a0f2a(0x199)](){var _0x18b58d=_0x2a0f2a;this['_status']===_0x18b58d(0x1b7)&&(this[_0x18b58d(0x224)][_0x18b58d(0x1a2)](_0x18b58d(0x1ba)),this[_0x18b58d(0x1c1)]());}[_0x2a0f2a(0x210)](){var _0x346a6f=_0x2a0f2a;this[_0x346a6f(0x203)]===_0x346a6f(0x1ba)&&this[_0x346a6f(0x1f0)]();}[_0x2a0f2a(0x212)](_0xdec379){var _0x52bea8=_0x2a0f2a;const {presenter:_0x4608f7}=_0xdec379[_0x52bea8(0x1f1)],_0x430298=this[_0x52bea8(0x1cd)][_0x52bea8(0x17b)]();this[_0x52bea8(0x19b)]=_0x4608f7,_0x4608f7===_0x430298?(this['_stopFollowing'](),this[_0x52bea8(0x18e)]()):this[_0x52bea8(0x203)]!==_0x52bea8(0x1b7)&&(this[_0x52bea8(0x21a)](),this[_0x52bea8(0x1c1)]());}[_0x2a0f2a(0x209)](){var _0x21296b=_0x2a0f2a;const _0x10e00c={'eventID':_0x4c2295[_0x21296b(0x1d8)]};this[_0x21296b(0x1cd)][_0x21296b(0x173)](_0x10e00c,this[_0x21296b(0x179)]);}['_handleTerminate'](){var _0x4002fa=_0x2a0f2a;this[_0x4002fa(0x19b)]=null,this[_0x4002fa(0x203)]!==_0x4002fa(0x1f5)&&this['_beIdle']();}[_0x2a0f2a(0x185)](_0x3af917){var _0x34fd8a=_0x2a0f2a;if(this[_0x34fd8a(0x203)]===_0x34fd8a(0x1ba)&&this[_0x34fd8a(0x19b)]===_0x3af917[_0x34fd8a(0x1f1)][_0x34fd8a(0x17d)]){const _0x3e82f9=_0x5217ed(_0x3af917[_0x34fd8a(0x1f1)])[_0x34fd8a(0x206)][_0x34fd8a(0x219)]()[_0x34fd8a(0x1df)](_0x321758=>_0x321758['id']===_0x18edf1['id']);if(_0x3e82f9){const _0x48c6ad=_0x3e82f9[_0x34fd8a(0x221)][_0x34fd8a(0x1b2)],_0x139d7e=_0x3e82f9[_0x34fd8a(0x221)][_0x34fd8a(0x1b3)]['id'];setTimeout(()=>{var _0x490019=_0x34fd8a;this[_0x490019(0x1c0)]['executeCommand'](_0x56cadf['id'],{'unitId':_0x48c6ad,'subUnitId':_0x139d7e},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x36e74f=_0x2a0f2a;this[_0x36e74f(0x224)][_0x36e74f(0x1a2)](_0x36e74f(0x1f5));const _0xd51831=new Map(),_0x2cd56=this[_0x36e74f(0x1cf)]=new _0x31b05b();_0x2cd56[_0x36e74f(0x196)](_0x3ea5b0(()=>{var _0x4bf972=_0x36e74f;_0xd51831['forEach'](_0x423f73=>_0x423f73['complete']()),_0xd51831[_0x4bf972(0x1e7)]();})),_0x2cd56[_0x36e74f(0x196)](this[_0x36e74f(0x1c0)][_0x36e74f(0x1ea)](_0x98a794=>{var _0x2ecaf6=_0x36e74f,_0x2907b4;if(_0x98a794[_0x2ecaf6(0x1c2)]!==_0x53a8fc[_0x2ecaf6(0x213)]||!this[_0x2ecaf6(0x19f)][_0x2ecaf6(0x1b9)](_0x98a794['id']))return;const {id:_0x5419d3}=_0x98a794;let _0x26991d;_0xd51831['has'](_0x5419d3)?_0x26991d=_0xd51831[_0x2ecaf6(0x222)](_0x5419d3):(_0x26991d=new _0x5ef0c0(),_0xd51831['set'](_0x5419d3,_0x26991d),_0x26991d[_0x2ecaf6(0x204)](_0x2ea41b((_0x2907b4=this['_configService'][_0x2ecaf6(0x1ca)](Pe))!=null?_0x2907b4:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2ecaf6(0x1c8)](_0x2cc61e=>{var _0x241d8d=_0x2ecaf6;this[_0x241d8d(0x1cd)][_0x241d8d(0x173)]({'eventID':_0x4c2295['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x2cc61e['id']]:{'id':_0x2cc61e['id'],'params':JSON['stringify'](_0x2cc61e['params'])}}}},this['_unitID']);})),_0x26991d[_0x2ecaf6(0x1a2)](_0x98a794);})),this[_0x36e74f(0x19f)]['getInitialStates'](this[_0x36e74f(0x179)])['forEach'](_0x55d07e=>this[_0x36e74f(0x1cd)][_0x36e74f(0x173)]({'eventID':_0x4c2295['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x36e74f(0x179)],'operations':{[_0x55d07e['id']]:{'id':_0x55d07e['id'],'params':JSON[_0x36e74f(0x200)](_0x55d07e[_0x36e74f(0x221)])}}}},this[_0x36e74f(0x179)]));}['_stopPresenting'](){var _0x4cba9d=_0x2a0f2a,_0x16510d;this[_0x4cba9d(0x224)]['next']('idle'),(_0x16510d=this['_commandDisposable'])==null||_0x16510d[_0x4cba9d(0x17c)](),this[_0x4cba9d(0x1cf)]=null;}[_0x2a0f2a(0x1c1)](){var _0x578337=_0x2a0f2a,_0x404f1b;(_0x404f1b=this[_0x578337(0x1cf)])==null||_0x404f1b[_0x578337(0x17c)](),this['_status$'][_0x578337(0x1a2)]('following');}[_0x2a0f2a(0x1ab)](){var _0x576e7e=_0x2a0f2a,_0x36a142;this[_0x576e7e(0x224)][_0x576e7e(0x1a2)](_0x576e7e(0x1a1)),(_0x36a142=this['_commandDisposable'])==null||_0x36a142[_0x576e7e(0x17c)](),this[_0x576e7e(0x1cf)]=null;}[_0x2a0f2a(0x1f0)](){var _0x384008=_0x2a0f2a,_0x22abe2;this[_0x384008(0x224)][_0x384008(0x1a2)](_0x384008(0x1b7)),(_0x22abe2=this[_0x384008(0x1cf)])==null||_0x22abe2['dispose']();}[_0x2a0f2a(0x1c7)](_0x4aceee){var _0x4d2112=_0x2a0f2a;if([_0x4d2112(0x1f5),'not-following',_0x4d2112(0x180)][_0x4d2112(0x211)](this['_status'])||!_0x4aceee['data'][_0x4d2112(0x220)]||_0x4aceee['data'][_0x4d2112(0x220)]===this['_collabSession'][_0x4d2112(0x17b)]())return;this[_0x4d2112(0x203)]===_0x4d2112(0x1a1)&&this[_0x4d2112(0x1c1)]();const _0x3e813a=_0x4aceee['data'][_0x4d2112(0x198)];Object[_0x4d2112(0x1f7)](_0x3e813a)[_0x4d2112(0x20f)](_0x235fe2=>{var _0x2caec8=_0x4d2112;this[_0x2caec8(0x1c0)][_0x2caec8(0x1e1)](_0x235fe2['id'],_0x235fe2[_0x2caec8(0x221)]?JSON[_0x2caec8(0x1de)](_0x235fe2[_0x2caec8(0x221)]):null,{'fromCollab':!0x0});});}[_0x2a0f2a(0x188)](){var _0x16eb4c=_0x2a0f2a,_0x37d952;this[_0x16eb4c(0x224)][_0x16eb4c(0x1a2)](_0x16eb4c(0x180)),(_0x37d952=this['_commandDisposable'])==null||_0x37d952[_0x16eb4c(0x17c)]();}['_handleOnline'](){var _0x1c46b4=_0x2a0f2a;this['_status$'][_0x1c46b4(0x1a2)](_0x1c46b4(0x1a1)),this[_0x1c46b4(0x209)]();}};w=Z([f(0x2,_0x2e77bf),f(0x3,_0x459502(L)),f(0x4,_0x22ff36)],w);function Te(){var _0x3c223e=_0x2a0f2a;const _0x1b5ea0=_0x3e135f(I),_0x30e351=_0x3e135f(_0x560e40),_0x1afbe5=_0x1d56b5(()=>_0x30e351[_0x3c223e(0x217)](_0x43f478[_0x3c223e(0x1a9)]),void 0x0,!0x1,[]),[_0x64641,_0x2f18dd]=_0x216df8(null),[_0x51f2ae,_0x390ba0]=_0x216df8(h[_0x3c223e(0x1b8)]),_0x4cbef8=_0xba99eb(null);return _0x245dda(()=>(_0x1afbe5&&_0x1b5ea0[_0x3c223e(0x1f3)](_0x1afbe5[_0x3c223e(0x176)]())['then'](_0x427b54=>{var _0x5a4541=_0x3c223e;_0x2f18dd(_0x427b54),_0x4cbef8[_0x5a4541(0x202)]=_0x427b54[_0x5a4541(0x19d)]['subscribe'](_0x495bfe=>{_0x390ba0(_0x495bfe);});}),()=>{var _0x30de99=_0x3c223e,_0x31c493;(_0x31c493=_0x4cbef8[_0x30de99(0x202)])==null||_0x31c493[_0x30de99(0x1db)](),_0x4cbef8['current']=null;}),[_0x1afbe5,_0x1b5ea0]),_0x64641?_0x430726(_0x1f1fbe,{'align':_0x3c223e(0x1f2),'disabled':_0x51f2ae===h[_0x3c223e(0x1bb)],'className':_0x3c223e(0x20a),'overlay':_0x430726($e,{'status':_0x51f2ae,'coordinator':_0x64641}),'children':_0x430726(_0x3c223e(0x1fe),{'className':_0x285d7d('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x51f2ae===h[_0x3c223e(0x1bb)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x51f2ae!==h[_0x3c223e(0x1bb)]}),'type':_0x3c223e(0x1fe),'children':_0x430726(B,{'className':'univer-size-4'})})}):null;}function $e(_0xde28d2){var _0xbd4cbf=_0x2a0f2a;const {status:_0x41ec08,coordinator:_0x331241}=_0xde28d2;switch(_0x41ec08){case h[_0xbd4cbf(0x1b8)]:return _0x430726(Fe,{'coordinator':_0x331241});case h[_0xbd4cbf(0x1be)]:return _0x430726(He,{'coordinator':_0x331241});case h[_0xbd4cbf(0x1eb)]:return _0x430726(je,{'coordinator':_0x331241});case h['OFFLINE']:return _0x430726(Ve,{});case h[_0xbd4cbf(0x1ee)]:return _0x430726(Ue,{'coordinator':_0x331241});default:return null;}}function Fe(_0xbe1a3a){var _0x5cea33=_0x2a0f2a;const {coordinator:_0x341f93}=_0xbe1a3a;return _0x2b0221(_0x114633,{'children':[_0x430726(_0x5cea33(0x1ae),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5cea33(0x1f6)}),_0x430726(_0x46f48e,{'onClick':()=>_0x341f93[_0x5cea33(0x19a)](),'children':'Start'})]});}function _0x2677(){var _0x28e176=['subscribe','UNIVER_LIVE_SHARE_PLUGIN','getConfig','getOwnPropertySymbols','path','_collabSession','8756034LhQmzS','_commandDisposable','dispose$','UniverIcon','disposeWithMe','colorChannel1','toString','getTypeOfUnitAdded$','svg','univer-w-full\x20univer-mb-3\x20univer-text-sm','LIVESHARE_FETCH_OPERATIONS','univerjs-icon\x20univerjs-icon-','getValue','unsubscribe','className','string','parse','find','none','executeCommand','length','LIVESHARE_TERMINATE','displayName','getTypeOfUnitDisposed$','symbol','clear','apply','propertyIsEnumerable','onCommandExecuted','NOT_FOLLOWING','icon','registerSharedOperation','PRESENTING','getOwnPropertyDescriptor','_stopFollowing','data','end','getLiveShareCoordinator','replace','presenting','Present\x20this\x20document','values','extend','currentColor','complete','8362632WbMHtM','_collabSessionService','_startLiveShareCoordinator','button','live-share-single','stringify','_injector','current','_status','pipe','live-share.config','mutations','_mountLiveShare','concat','_fetchOperations','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','_config','set','defIds','stopPresenting','forEach','stopFollowing','includes','_handleNewHost','OPERATION','Stop\x20following','substring','3412748hbhvVq','getCurrentTypeOfUnit$','fill','reverse','_stopPresenting','UNIVER_UNKNOWN','995orkHYv','assign','NEW_CHANGESETS','evenodd','presenter','params','get','1101588NTzCoG','_status$','send','use','call','getUnitId','_configService','33738wltFtl','_unitID','trim','getMemberID','dispose','memberID','sessionStatus$','Start\x20following','offline','mask','LIVESHARE_NEW_HOST','from','_sharedOperations','_handleNewChangeSets','1011316hVYsZR','_reporters','_handleOffline','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','indexOf','has','defs','hasOwnProperty','_startPresenting','SAME_OPERATION_SHARE_INTERVAL','1em','_univerInstanceService','_entities','asObservable','You\x27re\x20following\x20the\x20presenter','event$','add','pluginName','operations','startFollowing','tryStartPresenting','_presenter','You\x27re\x20not\x20following\x20the\x20presenter','status$','LIVESHARE_REQUEST_HOST','_liveShareService','prototype','idle','next','entries','You\x27are\x20offline.','xlink:href','default','_handleTerminate','tag','UNIVER_SHEET','_uiPartsService','_beIdle','random','delete','div','_handleOnline','children','idSuffix','unitId','sheet','attrs','url(#$1','_init','not-following','IDLE','shouldShareOperation','following','OFFLINE','2356569zMlhsi','HEADER_MENU','FOLLOWING','override','_commandService','_startFollowing','type','0\x200\x2016\x2016','text','init','setConfig','_handleOperation'];_0x2677=function(){return _0x28e176;};return _0x2677();}function He(_0x51eb33){var _0x259bf8=_0x2a0f2a;const {coordinator:_0x1875cb}=_0x51eb33;return _0x2b0221(_0x114633,{'children':[_0x430726(_0x259bf8(0x1ae),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x259bf8(0x194)}),_0x430726(_0x46f48e,{'onClick':()=>_0x1875cb['stopFollowing'](),'children':_0x259bf8(0x214)})]});}function je(_0x39db73){var _0x2ba218=_0x2a0f2a;const {coordinator:_0x434681}=_0x39db73;return _0x2b0221(_0x114633,{'children':[_0x430726('div',{'className':_0x2ba218(0x1d7),'children':_0x2ba218(0x19c)}),_0x430726(_0x46f48e,{'variant':_0x2ba218(0x1c4),'onClick':()=>_0x434681[_0x2ba218(0x199)](),'children':_0x2ba218(0x17f)})]});}function Ue(_0x832789){var _0x40306e=_0x2a0f2a;const {coordinator:_0x14dfd1}=_0x832789;return _0x2b0221(_0x114633,{'children':[_0x430726(_0x40306e(0x1ae),{'className':_0x40306e(0x1d7),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x430726(_0x46f48e,{'variant':_0x40306e(0x1a6),'onClick':()=>_0x14dfd1['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x51e6c5=_0x2a0f2a;return _0x430726(_0x114633,{'children':_0x51e6c5(0x1a4)});}var Me=Object[_0x2a0f2a(0x1ef)],ke=(_0x1434f2,_0x4b0a39,_0x26271d,_0x113b22)=>{for(var _0x105e87=_0x113b22>0x1?void 0x0:_0x113b22?Me(_0x4b0a39,_0x26271d):_0x4b0a39,_0x5ad90c=_0x1434f2['length']-0x1,_0x39c6d1;_0x5ad90c>=0x0;_0x5ad90c--)(_0x39c6d1=_0x1434f2[_0x5ad90c])&&(_0x105e87=_0x39c6d1(_0x105e87)||_0x105e87);return _0x105e87;},$=(_0x56b26b,_0x15ecb3)=>(_0x45b54a,_0x27e27a)=>_0x15ecb3(_0x45b54a,_0x27e27a,_0x56b26b);let b=class extends _0x56d91a{constructor(_0x40ac16,_0x5cb5dd){var _0x14ee55=_0x2a0f2a;super(),this[_0x14ee55(0x201)]=_0x40ac16,this[_0x14ee55(0x1aa)]=_0x5cb5dd,this[_0x14ee55(0x207)]();}[_0x2a0f2a(0x207)](){var _0x401241=_0x2a0f2a;this[_0x401241(0x1d2)](this[_0x401241(0x1aa)]['registerComponent'](_0xba4be9[_0x401241(0x1bd)],()=>_0x57f19d(Te,this[_0x401241(0x201)])));}};b=ke([$(0x0,_0x459502(_0x511763)),$(0x1,_0xf8ae92)],b);var Ge=Object['defineProperty'],We=Object[_0x2a0f2a(0x1ef)],Ye=(_0x2b00db,_0x172369,_0xb421e9)=>_0x172369 in _0x2b00db?Ge(_0x2b00db,_0x172369,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb421e9}):_0x2b00db[_0x172369]=_0xb421e9,Be=(_0x32396a,_0x44fdda,_0x1b23c6,_0x118ac6)=>{var _0x40967b=_0x2a0f2a;for(var _0x18ecfe=_0x118ac6>0x1?void 0x0:_0x118ac6?We(_0x44fdda,_0x1b23c6):_0x44fdda,_0x290d5f=_0x32396a[_0x40967b(0x1e2)]-0x1,_0x4cc370;_0x290d5f>=0x0;_0x290d5f--)(_0x4cc370=_0x32396a[_0x290d5f])&&(_0x18ecfe=_0x4cc370(_0x18ecfe)||_0x18ecfe);return _0x18ecfe;},F=(_0x9e9494,_0x220691)=>(_0x6fcd4f,_0x2d5f9e)=>_0x220691(_0x6fcd4f,_0x2d5f9e,_0x9e9494),J=(_0x55a3c7,_0x3b81b2,_0x271a14)=>Ye(_0x55a3c7,typeof _0x3b81b2!='symbol'?_0x3b81b2+'':_0x3b81b2,_0x271a14);const Ze=_0x2a0f2a(0x1c9);let O=class extends _0x36cf9c{constructor(_0x1aca0a=T,_0x18593a,_0x2a6639){var _0x4aecc2=_0x2a0f2a;super(),this['_config']=_0x1aca0a,this[_0x4aecc2(0x201)]=_0x18593a,this[_0x4aecc2(0x177)]=_0x2a6639;const {..._0x5e8262}=_0x2a8c98({},T,this[_0x4aecc2(0x20b)]);this[_0x4aecc2(0x177)][_0x4aecc2(0x1c6)](Oe,_0x5e8262);}['onStarting'](){var _0x4a30a5=_0x2a0f2a;_0x123d95(this[_0x4a30a5(0x201)],_0x4f628e([[L],[I],[m],[b]],this[_0x4a30a5(0x20b)][_0x4a30a5(0x1bf)])),_0x2d4a9e(this[_0x4a30a5(0x201)],[[m]]);}['onRendered'](){var _0x1760ce=_0x2a0f2a;_0x2d4a9e(this[_0x1760ce(0x201)],[[b]]);}};function _0x1c4f(_0x412eea,_0x465a20){var _0x2677ee=_0x2677();return _0x1c4f=function(_0x1c4fa5,_0x1769d9){_0x1c4fa5=_0x1c4fa5-0x173;var _0x458a08=_0x2677ee[_0x1c4fa5];return _0x458a08;},_0x1c4f(_0x412eea,_0x465a20);}J(O,_0x2a0f2a(0x1c2),_0x43f478[_0x2a0f2a(0x21b)]),J(O,_0x2a0f2a(0x197),Ze),O=Be([_0x2ecbb5(_0x2cf583),F(0x1,_0x459502(_0x511763)),F(0x2,_0x2e77bf)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x29f20e=_0x3e7e;(function(_0xbbc8bb,_0x4addb4){var _0x4ffd02=_0x3e7e,_0x45aa8d=_0xbbc8bb();while(!![]){try{var _0x45e212=-parseInt(_0x4ffd02(0x12b))/0x1+-parseInt(_0x4ffd02(0xa6))/0x2*(-parseInt(_0x4ffd02(0xc3))/0x3)+-parseInt(_0x4ffd02(0xf8))/0x4+-parseInt(_0x4ffd02(0x148))/0x5*(-parseInt(_0x4ffd02(0xa3))/0x6)+parseInt(_0x4ffd02(0xdf))/0x7+parseInt(_0x4ffd02(0x100))/0x8+-parseInt(_0x4ffd02(0x12f))/0x9*(parseInt(_0x4ffd02(0xa2))/0xa);if(_0x45e212===_0x4addb4)break;else _0x45aa8d['push'](_0x45aa8d['shift']());}catch(_0x458de7){_0x45aa8d['push'](_0x45aa8d['shift']());}}}(_0x32e9,0xf0d76));var q=Object[_0x29f20e(0xaf)],z=(_0x1bbf9d,_0x583fcf,_0x144850)=>_0x583fcf in _0x1bbf9d?q(_0x1bbf9d,_0x583fcf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x144850}):_0x1bbf9d[_0x583fcf]=_0x144850,d=(_0x281175,_0x4845b4,_0x4cfcb1)=>z(_0x281175,typeof _0x4845b4!=_0x29f20e(0xe5)?_0x4845b4+'':_0x4845b4,_0x4cfcb1);import{CollaborationSessionService as _0x22c5ad,SessionStatus as _0x1486b6,UniverCollaborationClientPlugin as _0x2b8f23}from'@univerjs-pro/collaboration-client';import{Disposable as _0x3375e6,toDisposable as _0x5e39ab,Inject as _0x2b27e5,IUniverInstanceService as _0x2a2850,Injector as _0x88f3f5,IConfigService as _0x35e166,ICommandService as _0x2043b7,RxDisposable as _0x416d0b,UniverInstanceType as _0x70eb56,DisposableCollection as _0x259978,CommandType as _0xfdb75e,DependentOn as _0x35339f,Plugin as _0xba14a,merge as _0x2f1e0d,registerDependencies as _0x4fada3,mergeOverrideWithDependencies as _0x32112a,touchDependencies as _0x132bf9}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x348477,InsertSheetMutation as _0x18faeb}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x4b7127,SetScrollOperation as _0x24fc28}from'@univerjs/sheets-ui';function _0x32e9(){var _0x3d1af5=['shouldShareOperation','map','default','_commandDisposable','replace','_handleTerminate','presenting','defineProperty','onStarting','_status','className','LIVESHARE_NEW_HOST','complete','set','_configService','fill','evenodd','displayName','NEW_CHANGESETS','concat','event$','OFFLINE','toString','svg','_entities','data','override','3bOHIpy','_startFollowing','ONLINE','propertyIsEnumerable','UNIVER_SHEET','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','_handleNewChangeSets','startFollowing','trim','LIVESHARE_OPERATION','getUnitId','text','string','find','_startPresenting','reverse','indexOf','_stopPresenting','memberID','UniverIcon','unitId','add','registerComponent','getTypeOfUnitDisposed$','_stopFollowing','_univerInstanceService','end','stopPresenting','6203043HuGZIu','tag','getTypeOfUnitAdded$','SAME_OPERATION_SHARE_INTERVAL','current','pluginName','symbol','sessionStatus$','send','LIVESHARE_REQUEST_HOST','dispose$','You\x27re\x20following\x20the\x20presenter','pipe','UNIVER_UNKNOWN','unsubscribe','_handleOnline','You\x27are\x20offline.','onRendered','icon','createInstance','You\x27re\x20not\x20following\x20the\x20presenter','getCurrentTypeOfUnit$','_presenter','params','get','530136upujkN','_uiPartsService','xlink:href','div','NOT_FOLLOWING','disposeWithMe','colorChannel1','Start\x20following','9535368dsbhoe','LiveShareSingle','button','idle','_handleNewHost','assign','getMemberID','call','_status$','offline','subscribe','type','includes','_handleOffline','getOwnPropertyDescriptor','prototype','_collabSessionService','forEach','setConfig','hasOwnProperty','_reporters','onCommandExecuted','_liveShareService','UNIVER_LIVE_SHARE_PLUGIN','OPERATION','entries','attrs','extend','PRESENTING','IDLE','init','_sharedOperations','substring','then','live-share-single','presenter','_init','_collabSession','You\x27re\x20presenting\x20the\x20document','delete','stringify','univer-w-full\x20univer-mb-3\x20univer-text-sm','following','1538026xNQGSm','LIVESHARE_FETCH_OPERATIONS','has','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','9OOKwud','LIVESHARE_TERMINATE','_handleOperation','tryStartPresenting','_injector','_mountLiveShare','univer-size-4','asObservable','getValue','next','1em','status$','random','FOLLOWING','_beIdle','registerSharedOperation','_startLiveShareCoordinator','not-following','_commandService','path','mask','defIds','_unitID','length','Start','1471770OrtZux','currentColor','idSuffix','getInitialStates','requireSession','17058030yHTUtV','18BiAmVi','_config','stopFollowing','2803434owVJao','dispose'];_0x32e9=function(){return _0x3d1af5;};return _0x32e9();}import{useDependency as _0x493516,useObservable as _0x21980c,IUIPartsService as _0x1735f8,BuiltInUIPart as _0x29a15b,connectInjector as _0x52be52}from'@univerjs/ui';import{jsx as _0x4aa79a,jsxs as _0x1dee4f,Fragment as _0x2ff6ca}from'react/jsx-runtime';import{Dropdown as _0x552500,clsx as _0x4f9fb3,Button as _0x55d525}from'@univerjs/design';import{forwardRef as _0x2d11e8,useRef as _0x411e20,createElement as _0x5c2114,useState as _0x5cc44c,useEffect as _0x3c174d}from'react';import{CollaborationEvent as _0x5b1231,parseProtocolChangeset as _0x300461}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x54c3b0,Subject as _0xae6176}from'rxjs';import{takeUntil as _0xb3ad8b,throttleTime as _0x1882fd}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x3375e6{constructor(){var _0x34a04f=_0x29f20e;super(...arguments),d(this,_0x34a04f(0x11f),new Set()),d(this,_0x34a04f(0x114),new Set());}[_0x29f20e(0x13e)](_0x4a98de){var _0x59af30=_0x29f20e;return this[_0x59af30(0x11f)][_0x59af30(0xd8)](_0x4a98de),_0x5e39ab(()=>this['_sharedOperations'][_0x59af30(0x127)](_0x4a98de));}['registerInitialStateReporter'](_0x19c770){var _0x181ccf=_0x29f20e;return this[_0x181ccf(0x114)][_0x181ccf(0xd8)](_0x19c770),_0x5e39ab(()=>this[_0x181ccf(0x114)][_0x181ccf(0x127)](_0x19c770));}[_0x29f20e(0xa8)](_0x4c4510){var _0x27ed0f=_0x29f20e;return this[_0x27ed0f(0x11f)]['has'](_0x4c4510);}[_0x29f20e(0xa0)](_0x8e4a27){var _0x2836c0=_0x29f20e;return Array['from'](this['_reporters'])[_0x2836c0(0xa9)](_0x1d3e28=>_0x1d3e28(_0x8e4a27));}}var Ee=Object[_0x29f20e(0x10e)],Ce=(_0x181595,_0x42d046,_0x1aaaae,_0x242b48)=>{var _0x184949=_0x29f20e;for(var _0x54b189=_0x242b48>0x1?void 0x0:_0x242b48?Ee(_0x42d046,_0x1aaaae):_0x42d046,_0xb435a3=_0x181595[_0x184949(0x146)]-0x1,_0x4c44ef;_0xb435a3>=0x0;_0xb435a3--)(_0x4c44ef=_0x181595[_0xb435a3])&&(_0x54b189=_0x4c44ef(_0x54b189)||_0x54b189);return _0x54b189;},Ne=(_0xcaf197,_0x1b61ef)=>(_0x21d294,_0x50301d)=>_0x1b61ef(_0x21d294,_0x50301d,_0xcaf197);let m=class extends _0x3375e6{constructor(_0xa26c92){var _0x1a9422=_0x29f20e;super(),this[_0x1a9422(0x116)]=_0xa26c92,this[_0x1a9422(0x124)]();}['_init'](){var _0x1ba6b0=_0x29f20e;[_0x4b7127['id'],_0x24fc28['id'],_0x348477['id']][_0x1ba6b0(0x111)](_0x47d700=>{this['disposeWithMe'](this['_liveShareService']['registerSharedOperation'](_0x47d700));});}};m=Ce([Ne(0x0,_0x2b27e5(L))],m);function _0x3e7e(_0x571ba1,_0x5e7e23){var _0x32e927=_0x32e9();return _0x3e7e=function(_0x3e7ea3,_0x54abd5){_0x3e7ea3=_0x3e7ea3-0xa0;var _0x3c2208=_0x32e927[_0x3e7ea3];return _0x3c2208;},_0x3e7e(_0x571ba1,_0x5e7e23);}var c=function(){var _0xb7e04f=_0x29f20e;return c=Object[_0xb7e04f(0x105)]||function(_0x49385a){var _0x53d489=_0xb7e04f;for(var _0x143c46,_0x2a82a5=0x1,_0x33b4fd=arguments[_0x53d489(0x146)];_0x2a82a5<_0x33b4fd;_0x2a82a5++){_0x143c46=arguments[_0x2a82a5];for(var _0x2269da in _0x143c46)Object[_0x53d489(0x10f)][_0x53d489(0x113)]['call'](_0x143c46,_0x2269da)&&(_0x49385a[_0x2269da]=_0x143c46[_0x2269da]);}return _0x49385a;},c['apply'](this,arguments);},we=function(_0x3821d1,_0x153e3b){var _0x5221cf=_0x29f20e,_0x3e9841={};for(var _0x953335 in _0x3821d1)Object[_0x5221cf(0x10f)]['hasOwnProperty'][_0x5221cf(0x107)](_0x3821d1,_0x953335)&&_0x153e3b['indexOf'](_0x953335)<0x0&&(_0x3e9841[_0x953335]=_0x3821d1[_0x953335]);if(_0x3821d1!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0xe1ec79=0x0,_0x953335=Object['getOwnPropertySymbols'](_0x3821d1);_0xe1ec79<_0x953335[_0x5221cf(0x146)];_0xe1ec79++)_0x153e3b[_0x5221cf(0xd3)](_0x953335[_0xe1ec79])<0x0&&Object[_0x5221cf(0x10f)][_0x5221cf(0xc6)][_0x5221cf(0x107)](_0x3821d1,_0x953335[_0xe1ec79])&&(_0x3e9841[_0x953335[_0xe1ec79]]=_0x3821d1[_0x953335[_0xe1ec79]]);}return _0x3e9841;},W=_0x2d11e8(function(_0x11946a,_0x3dbd75){var _0x5300ea=_0x29f20e,_0x122971=_0x11946a[_0x5300ea(0xf1)],_0xebcf01=_0x11946a['id'],_0x2293bb=_0x11946a['className'],_0x4fcb82=_0x11946a[_0x5300ea(0x11b)],_0x563fed=we(_0x11946a,[_0x5300ea(0xf1),'id',_0x5300ea(0xb2),_0x5300ea(0x11b)]),_0x33922c='univerjs-icon\x20univerjs-icon-'[_0x5300ea(0xbb)](_0xebcf01,'\x20')[_0x5300ea(0xbb)](_0x2293bb||'')[_0x5300ea(0xcb)](),_0xe73f3d=_0x411e20('_'[_0x5300ea(0xbb)](Le()));return Y(_0x122971,''[_0x5300ea(0xbb)](_0xebcf01),{'defIds':_0x122971[_0x5300ea(0x144)],'idSuffix':_0xe73f3d[_0x5300ea(0xe3)]},c({'ref':_0x3dbd75,'className':_0x33922c},_0x563fed),_0x4fcb82);});function Y(_0x428209,_0x5d95b4,_0x3b8755,_0x2d78b3,_0x5c7d14){var _0x55c7f8=_0x29f20e;return _0x5c2114(_0x428209[_0x55c7f8(0xe0)],c(c({'key':_0x5d95b4},De(_0x428209,_0x3b8755,_0x5c7d14)),_0x2d78b3),(xe(_0x428209,_0x3b8755)['children']||[])[_0x55c7f8(0xa9)](function(_0x44d0ac,_0x41d37d){var _0x33197a=_0x55c7f8;return Y(_0x44d0ac,''[_0x33197a(0xbb)](_0x5d95b4,'-')[_0x33197a(0xbb)](_0x428209[_0x33197a(0xe0)],'-')['concat'](_0x41d37d),_0x3b8755,void 0x0,_0x5c7d14);}));}function De(_0xe81a6e,_0x231813,_0xa37675){var _0x1121ea=_0x29f20e,_0x111e80=c({},_0xe81a6e['attrs']);_0xa37675!=null&&_0xa37675[_0x1121ea(0xfe)]&&_0x111e80[_0x1121ea(0xb7)]===_0x1121ea(0xfe)&&(_0x111e80[_0x1121ea(0xb7)]=_0xa37675[_0x1121ea(0xfe)]),_0xe81a6e[_0x1121ea(0xe0)]==='mask'&&_0x111e80['id']&&(_0x111e80['id']=_0x111e80['id']+_0x231813[_0x1121ea(0x14a)]),Object[_0x1121ea(0x119)](_0x111e80)[_0x1121ea(0x111)](function(_0x3c88c1){var _0x26092a=_0x1121ea,_0x53c830=_0x3c88c1[0x0],_0x51b003=_0x3c88c1[0x1];_0x53c830===_0x26092a(0x143)&&typeof _0x51b003==_0x26092a(0xcf)&&(_0x111e80[_0x53c830]=_0x51b003['replace'](/url\(#(.*)\)/,'url(#$1'[_0x26092a(0xbb)](_0x231813['idSuffix'],')')));});var _0xc48e3f=_0x231813[_0x1121ea(0x144)];return!_0xc48e3f||_0xc48e3f[_0x1121ea(0x146)]===0x0||(_0xe81a6e['tag']==='use'&&_0x111e80[_0x1121ea(0xfa)]&&(_0x111e80[_0x1121ea(0xfa)]=_0x111e80[_0x1121ea(0xfa)]+_0x231813[_0x1121ea(0x14a)]),Object[_0x1121ea(0x119)](_0x111e80)[_0x1121ea(0x111)](function(_0x5b1d03){var _0x592b97=_0x1121ea,_0xf432c1=_0x5b1d03[0x0],_0x20c791=_0x5b1d03[0x1];typeof _0x20c791==_0x592b97(0xcf)&&(_0x111e80[_0xf432c1]=_0x20c791[_0x592b97(0xac)](/url\(#(.*)\)/,'url(#$1'[_0x592b97(0xbb)](_0x231813[_0x592b97(0x14a)],')')));})),_0x111e80;}function xe(_0x4f0bde,_0x125a48){var _0x42a3bf=_0x29f20e,_0x292803,_0x544a0e=_0x125a48[_0x42a3bf(0x144)];return!_0x544a0e||_0x544a0e[_0x42a3bf(0x146)]===0x0?_0x4f0bde:_0x4f0bde[_0x42a3bf(0xe0)]==='defs'&&(!((_0x292803=_0x4f0bde['children'])===null||_0x292803===void 0x0)&&_0x292803[_0x42a3bf(0x146)])?c(c({},_0x4f0bde),{'children':_0x4f0bde['children']['map'](function(_0x331f7c){var _0x71f051=_0x42a3bf;return typeof _0x331f7c['attrs']['id']==_0x71f051(0xcf)&&_0x544a0e&&_0x544a0e[_0x71f051(0xd3)](_0x331f7c[_0x71f051(0x11a)]['id'])>-0x1?c(c({},_0x331f7c),{'attrs':c(c({},_0x331f7c[_0x71f051(0x11a)]),{'id':_0x331f7c[_0x71f051(0x11a)]['id']+_0x125a48[_0x71f051(0x14a)]})}):_0x331f7c;})}):_0x4f0bde;}function Le(){var _0x5c1770=_0x29f20e;return Math[_0x5c1770(0x13b)]()[_0x5c1770(0xbe)](0x24)[_0x5c1770(0x120)](0x2,0x8);}W[_0x29f20e(0xb9)]=_0x29f20e(0xd6);var ye={'tag':_0x29f20e(0xbf),'attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x29f20e(0x139),'height':_0x29f20e(0x139)},'children':[{'tag':'path','attrs':{'fill':_0x29f20e(0x149),'d':_0x29f20e(0x12e)}},{'tag':_0x29f20e(0x142),'attrs':{'fill':'currentColor','d':'M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fillRule':_0x29f20e(0xb8),'clipRule':_0x29f20e(0xb8)}}]},B=_0x2d11e8(function(_0x1911a7,_0x59eb7b){var _0x9484a6=_0x29f20e;return _0x5c2114(W,Object[_0x9484a6(0x105)]({},_0x1911a7,{'id':_0x9484a6(0x122),'ref':_0x59eb7b,'icon':ye}));});B[_0x29f20e(0xb9)]=_0x29f20e(0x101);var Re=Object[_0x29f20e(0x10e)],Z=(_0x4ae1c7,_0x2f4b64,_0x2ad537,_0x4d8e39)=>{var _0x1e03d9=_0x29f20e;for(var _0x252275=_0x4d8e39>0x1?void 0x0:_0x4d8e39?Re(_0x2f4b64,_0x2ad537):_0x2f4b64,_0x398f80=_0x4ae1c7[_0x1e03d9(0x146)]-0x1,_0x5deb64;_0x398f80>=0x0;_0x398f80--)(_0x5deb64=_0x4ae1c7[_0x398f80])&&(_0x252275=_0x5deb64(_0x252275)||_0x252275);return _0x252275;},f=(_0x48b477,_0x2f2180)=>(_0x5b6b75,_0xf709e4)=>_0x2f2180(_0x5b6b75,_0xf709e4,_0x48b477);let I=class extends _0x416d0b{constructor(_0x22083a,_0x2d457e,_0x823d75){var _0x6d52c1=_0x29f20e;super(),d(this,_0x6d52c1(0xc0),new Map()),(this[_0x6d52c1(0xdc)]=_0x22083a,this[_0x6d52c1(0x133)]=_0x2d457e,this[_0x6d52c1(0x110)]=_0x823d75,this[_0x6d52c1(0x124)]());}async['getLiveShareCoordinator'](_0x54d5f4){var _0x56fbdb=_0x29f20e;return this[_0x56fbdb(0xc0)][_0x56fbdb(0x12d)](_0x54d5f4)||await this[_0x56fbdb(0x13f)](_0x54d5f4),this[_0x56fbdb(0xc0)][_0x56fbdb(0xf7)](_0x54d5f4);}[_0x29f20e(0x124)](){var _0x4f77b9=_0x29f20e;this[_0x4f77b9(0xdc)][_0x4f77b9(0xe1)](_0x70eb56[_0x4f77b9(0xc7)])[_0x4f77b9(0xeb)](_0xb3ad8b(this['dispose$']))['subscribe'](async _0x4ff23b=>{var _0x1f0103=_0x4f77b9;const _0x50b10b=_0x4ff23b[_0x1f0103(0xcd)]();this[_0x1f0103(0xc0)]['has'](_0x50b10b)||this[_0x1f0103(0x13f)](_0x50b10b);}),this[_0x4f77b9(0xdc)][_0x4f77b9(0xda)](_0x70eb56[_0x4f77b9(0xc7)])[_0x4f77b9(0xeb)](_0xb3ad8b(this['dispose$']))[_0x4f77b9(0x10a)](_0x5ec8d1=>{var _0x4c87dc=_0x4f77b9;const _0x351821=_0x5ec8d1[_0x4c87dc(0xcd)](),_0xc28426=this[_0x4c87dc(0xc0)][_0x4c87dc(0xf7)](_0x351821);_0xc28426==null||_0xc28426['dispose']();});}async['_startLiveShareCoordinator'](_0x4cb88c){var _0x5c9f04=_0x29f20e;const _0x3de859=await this[_0x5c9f04(0x110)][_0x5c9f04(0xa1)](_0x4cb88c),_0x43f93b=this[_0x5c9f04(0x133)][_0x5c9f04(0xf2)](w,_0x4cb88c,_0x3de859);return _0x43f93b[_0x5c9f04(0x11e)](),this['_entities']['set'](_0x4cb88c,_0x43f93b),_0x43f93b;}};I=Z([f(0x0,_0x2a2850),f(0x1,_0x2b27e5(_0x88f3f5)),f(0x2,_0x2b27e5(_0x22c5ad))],I);var h=(_0x4a7842=>(_0x4a7842[_0x29f20e(0xbd)]=_0x29f20e(0x109),_0x4a7842[_0x29f20e(0x11d)]=_0x29f20e(0x103),_0x4a7842[_0x29f20e(0x13c)]=_0x29f20e(0x12a),_0x4a7842[_0x29f20e(0xfc)]=_0x29f20e(0x140),_0x4a7842['PRESENTING']=_0x29f20e(0xae),_0x4a7842))(h||{});const Pe=_0x29f20e(0xe2),Ae=0xc8;let w=class extends _0x416d0b{constructor(_0x1d9ec9,_0x58f57e,_0x13d5a2,_0x1c945a,_0x5571c3){var _0x12d2df=_0x29f20e;super(),d(this,_0x12d2df(0x108),new _0x54c3b0(_0x12d2df(0x103))),d(this,_0x12d2df(0x13a),this[_0x12d2df(0x108)][_0x12d2df(0x136)]()),d(this,'_init',!0x1),d(this,_0x12d2df(0xab),null),d(this,_0x12d2df(0xf5),null),(this[_0x12d2df(0x145)]=_0x1d9ec9,this[_0x12d2df(0x125)]=_0x58f57e,this[_0x12d2df(0xb6)]=_0x13d5a2,this['_liveShareService']=_0x1c945a,this[_0x12d2df(0x141)]=_0x5571c3);}get[_0x29f20e(0xb1)](){var _0x1bba9e=_0x29f20e;return this['_status$'][_0x1bba9e(0x137)]();}[_0x29f20e(0xa7)](){var _0xb78ea4=_0x29f20e,_0x3a2d57;(_0x3a2d57=this[_0xb78ea4(0xab)])==null||_0x3a2d57[_0xb78ea4(0xa7)](),this[_0xb78ea4(0x108)][_0xb78ea4(0x138)](_0xb78ea4(0x103)),this[_0xb78ea4(0x108)][_0xb78ea4(0xb4)]();}['init'](){var _0x4e819f=_0x29f20e;this[_0x4e819f(0x124)]||(this[_0x4e819f(0x124)]=!0x0,this[_0x4e819f(0x125)][_0x4e819f(0xe6)][_0x4e819f(0xeb)](_0xb3ad8b(this[_0x4e819f(0xe9)]))[_0x4e819f(0x10a)](_0x174750=>{var _0xfb102c=_0x4e819f;switch(_0x174750){case _0x1486b6[_0xfb102c(0xbd)]:this[_0xfb102c(0x10d)]();break;case _0x1486b6[_0xfb102c(0xc5)]:this[_0xfb102c(0xee)]();break;}}),this[_0x4e819f(0x125)][_0x4e819f(0xbc)][_0x4e819f(0xeb)](_0xb3ad8b(this['dispose$']))[_0x4e819f(0x10a)](_0x54a86a=>{var _0x1a7cae=_0x4e819f;const {eventID:_0x61666f}=_0x54a86a;switch(_0x61666f){case _0x5b1231[_0x1a7cae(0xb3)]:this[_0x1a7cae(0x104)](_0x54a86a);break;case _0x5b1231[_0x1a7cae(0xcc)]:this[_0x1a7cae(0x131)](_0x54a86a);break;case _0x5b1231['LIVESHARE_TERMINATE']:this[_0x1a7cae(0xad)]();break;case _0x5b1231[_0x1a7cae(0xba)]:this['_handleNewChangeSets'](_0x54a86a);break;}}));}[_0x29f20e(0x132)](){var _0x2e9a9f=_0x29f20e;this['_collabSession'][_0x2e9a9f(0xe7)]({'eventID':_0x5b1231[_0x2e9a9f(0xe8)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x2e9a9f(0x106)]()}},this['_unitID']);}[_0x29f20e(0xde)](){var _0x2f64a8=_0x29f20e;this[_0x2f64a8(0xb1)]==='presenting'&&(this[_0x2f64a8(0x108)]['next'](_0x2f64a8(0x103)),this[_0x2f64a8(0x125)][_0x2f64a8(0xe7)]({'eventID':_0x5b1231[_0x2f64a8(0x130)],'data':{'unitID':this['_unitID']}},this[_0x2f64a8(0x145)]));}[_0x29f20e(0xca)](){var _0x42fe94=_0x29f20e;this[_0x42fe94(0xb1)]===_0x42fe94(0x140)&&(this[_0x42fe94(0x108)][_0x42fe94(0x138)](_0x42fe94(0x12a)),this[_0x42fe94(0xc4)]());}[_0x29f20e(0xa5)](){var _0x1ba63f=_0x29f20e;this[_0x1ba63f(0xb1)]==='following'&&this[_0x1ba63f(0xdb)]();}[_0x29f20e(0x104)](_0x20147f){var _0x516f92=_0x29f20e;const {presenter:_0x41b3e6}=_0x20147f['data'],_0x43cff7=this[_0x516f92(0x125)][_0x516f92(0x106)]();this[_0x516f92(0xf5)]=_0x41b3e6,_0x41b3e6===_0x43cff7?(this[_0x516f92(0xdb)](),this['_startPresenting']()):this['_status']!==_0x516f92(0x140)&&(this['_stopPresenting'](),this[_0x516f92(0xc4)]());}['_fetchOperations'](){var _0x3595f=_0x29f20e;const _0x3b9013={'eventID':_0x5b1231[_0x3595f(0x12c)]};this[_0x3595f(0x125)]['send'](_0x3b9013,this[_0x3595f(0x145)]);}[_0x29f20e(0xad)](){var _0xc3f262=_0x29f20e;this[_0xc3f262(0xf5)]=null,this[_0xc3f262(0xb1)]!==_0xc3f262(0xae)&&this[_0xc3f262(0x13d)]();}[_0x29f20e(0xc9)](_0xe32600){var _0x2f3ff7=_0x29f20e;if(this['_status']==='following'&&this[_0x2f3ff7(0xf5)]===_0xe32600[_0x2f3ff7(0xc1)][_0x2f3ff7(0xd5)]){const _0x35e994=_0x300461(_0xe32600['data'])['mutations'][_0x2f3ff7(0xd2)]()[_0x2f3ff7(0xd0)](_0x15d6ba=>_0x15d6ba['id']===_0x18faeb['id']);if(_0x35e994){const _0x1dec01=_0x35e994[_0x2f3ff7(0xf6)][_0x2f3ff7(0xd7)],_0x4bf220=_0x35e994[_0x2f3ff7(0xf6)]['sheet']['id'];setTimeout(()=>{var _0x251910=_0x2f3ff7;this[_0x251910(0x141)]['executeCommand'](_0x348477['id'],{'unitId':_0x1dec01,'subUnitId':_0x4bf220},{'fromCollab':!0x0});});}}}[_0x29f20e(0xd1)](){var _0x1c8505=_0x29f20e;this[_0x1c8505(0x108)][_0x1c8505(0x138)](_0x1c8505(0xae));const _0x13b34b=new Map(),_0x200177=this['_commandDisposable']=new _0x259978();_0x200177[_0x1c8505(0xd8)](_0x5e39ab(()=>{_0x13b34b['forEach'](_0x536f25=>_0x536f25['complete']()),_0x13b34b['clear']();})),_0x200177[_0x1c8505(0xd8)](this[_0x1c8505(0x141)][_0x1c8505(0x115)](_0x2534a5=>{var _0x2fe2f0=_0x1c8505,_0x40d3ab;if(_0x2534a5[_0x2fe2f0(0x10b)]!==_0xfdb75e[_0x2fe2f0(0x118)]||!this[_0x2fe2f0(0x116)][_0x2fe2f0(0xa8)](_0x2534a5['id']))return;const {id:_0x1e95e9}=_0x2534a5;let _0xdecc85;_0x13b34b[_0x2fe2f0(0x12d)](_0x1e95e9)?_0xdecc85=_0x13b34b[_0x2fe2f0(0xf7)](_0x1e95e9):(_0xdecc85=new _0xae6176(),_0x13b34b[_0x2fe2f0(0xb5)](_0x1e95e9,_0xdecc85),_0xdecc85['pipe'](_0x1882fd((_0x40d3ab=this['_configService']['getConfig'](Pe))!=null?_0x40d3ab:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x55e73e=>{var _0x540b79=_0x2fe2f0;this[_0x540b79(0x125)]['send']({'eventID':_0x5b1231[_0x540b79(0xcc)],'data':{'unitID':this[_0x540b79(0x145)],'operations':{[_0x55e73e['id']]:{'id':_0x55e73e['id'],'params':JSON[_0x540b79(0x128)](_0x55e73e[_0x540b79(0xf6)])}}}},this[_0x540b79(0x145)]);})),_0xdecc85[_0x2fe2f0(0x138)](_0x2534a5);})),this[_0x1c8505(0x116)][_0x1c8505(0xa0)](this[_0x1c8505(0x145)])[_0x1c8505(0x111)](_0x6329e5=>this[_0x1c8505(0x125)]['send']({'eventID':_0x5b1231[_0x1c8505(0xcc)],'data':{'unitID':this[_0x1c8505(0x145)],'operations':{[_0x6329e5['id']]:{'id':_0x6329e5['id'],'params':JSON[_0x1c8505(0x128)](_0x6329e5[_0x1c8505(0xf6)])}}}},this[_0x1c8505(0x145)]));}[_0x29f20e(0xd4)](){var _0x4e52d6=_0x29f20e,_0xa417d0;this[_0x4e52d6(0x108)][_0x4e52d6(0x138)](_0x4e52d6(0x103)),(_0xa417d0=this['_commandDisposable'])==null||_0xa417d0['dispose'](),this['_commandDisposable']=null;}['_startFollowing'](){var _0x6708c9=_0x29f20e,_0x48de0f;(_0x48de0f=this[_0x6708c9(0xab)])==null||_0x48de0f[_0x6708c9(0xa7)](),this[_0x6708c9(0x108)][_0x6708c9(0x138)](_0x6708c9(0x12a));}[_0x29f20e(0x13d)](){var _0x29f1d7=_0x29f20e,_0x11be02;this[_0x29f1d7(0x108)]['next'](_0x29f1d7(0x103)),(_0x11be02=this[_0x29f1d7(0xab)])==null||_0x11be02[_0x29f1d7(0xa7)](),this[_0x29f1d7(0xab)]=null;}[_0x29f20e(0xdb)](){var _0x33427f=_0x29f20e,_0x1c9ed4;this[_0x33427f(0x108)][_0x33427f(0x138)](_0x33427f(0x140)),(_0x1c9ed4=this['_commandDisposable'])==null||_0x1c9ed4[_0x33427f(0xa7)]();}['_handleOperation'](_0x77dea5){var _0x30c30c=_0x29f20e;if([_0x30c30c(0xae),_0x30c30c(0x140),_0x30c30c(0x109)][_0x30c30c(0x10c)](this[_0x30c30c(0xb1)])||!_0x77dea5[_0x30c30c(0xc1)][_0x30c30c(0x123)]||_0x77dea5[_0x30c30c(0xc1)][_0x30c30c(0x123)]===this[_0x30c30c(0x125)][_0x30c30c(0x106)]())return;this[_0x30c30c(0xb1)]==='idle'&&this['_startFollowing']();const _0x4548f0=_0x77dea5[_0x30c30c(0xc1)]['operations'];Object['values'](_0x4548f0)[_0x30c30c(0x111)](_0x6d80bc=>{var _0x162d5c=_0x30c30c;this[_0x162d5c(0x141)]['executeCommand'](_0x6d80bc['id'],_0x6d80bc[_0x162d5c(0xf6)]?JSON['parse'](_0x6d80bc['params']):null,{'fromCollab':!0x0});});}[_0x29f20e(0x10d)](){var _0x19a82c=_0x29f20e,_0x58387c;this['_status$'][_0x19a82c(0x138)]('offline'),(_0x58387c=this[_0x19a82c(0xab)])==null||_0x58387c['dispose']();}[_0x29f20e(0xee)](){var _0x149aa5=_0x29f20e;this[_0x149aa5(0x108)][_0x149aa5(0x138)](_0x149aa5(0x103)),this['_fetchOperations']();}};w=Z([f(0x2,_0x35e166),f(0x3,_0x2b27e5(L)),f(0x4,_0x2043b7)],w);function Te(){var _0x2df0f5=_0x29f20e;const _0xbbbec0=_0x493516(I),_0x46e373=_0x493516(_0x2a2850),_0x3c8ff1=_0x21980c(()=>_0x46e373[_0x2df0f5(0xf4)](_0x70eb56['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x55ef6e,_0x3ef171]=_0x5cc44c(null),[_0x47f646,_0x51f219]=_0x5cc44c(h['IDLE']),_0x20c893=_0x411e20(null);return _0x3c174d(()=>(_0x3c8ff1&&_0xbbbec0['getLiveShareCoordinator'](_0x3c8ff1[_0x2df0f5(0xcd)]())[_0x2df0f5(0x121)](_0x185992=>{var _0x1bfd11=_0x2df0f5;_0x3ef171(_0x185992),_0x20c893[_0x1bfd11(0xe3)]=_0x185992[_0x1bfd11(0x13a)][_0x1bfd11(0x10a)](_0x5f3169=>{_0x51f219(_0x5f3169);});}),()=>{var _0x5ed03a=_0x2df0f5,_0x305773;(_0x305773=_0x20c893[_0x5ed03a(0xe3)])==null||_0x305773[_0x5ed03a(0xed)](),_0x20c893[_0x5ed03a(0xe3)]=null;}),[_0x3c8ff1,_0xbbbec0]),_0x55ef6e?_0x4aa79a(_0x552500,{'align':_0x2df0f5(0xdd),'disabled':_0x47f646===h[_0x2df0f5(0xbd)],'className':_0x2df0f5(0xc8),'overlay':_0x4aa79a($e,{'status':_0x47f646,'coordinator':_0x55ef6e}),'children':_0x4aa79a('button',{'className':_0x4f9fb3('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x47f646===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x47f646!==h[_0x2df0f5(0xbd)]}),'type':_0x2df0f5(0x102),'children':_0x4aa79a(B,{'className':_0x2df0f5(0x135)})})}):null;}function $e(_0x572603){var _0x116ce2=_0x29f20e;const {status:_0x45b008,coordinator:_0x33d0df}=_0x572603;switch(_0x45b008){case h[_0x116ce2(0x11d)]:return _0x4aa79a(Fe,{'coordinator':_0x33d0df});case h['FOLLOWING']:return _0x4aa79a(He,{'coordinator':_0x33d0df});case h['NOT_FOLLOWING']:return _0x4aa79a(je,{'coordinator':_0x33d0df});case h['OFFLINE']:return _0x4aa79a(Ve,{});case h[_0x116ce2(0x11c)]:return _0x4aa79a(Ue,{'coordinator':_0x33d0df});default:return null;}}function Fe(_0x4cfd29){var _0x39513c=_0x29f20e;const {coordinator:_0x394c90}=_0x4cfd29;return _0x1dee4f(_0x2ff6ca,{'children':[_0x4aa79a(_0x39513c(0xfb),{'className':_0x39513c(0x129),'children':'Present\x20this\x20document'}),_0x4aa79a(_0x55d525,{'onClick':()=>_0x394c90['tryStartPresenting'](),'children':_0x39513c(0x147)})]});}function He(_0x1f9c85){var _0x522da6=_0x29f20e;const {coordinator:_0x1b384a}=_0x1f9c85;return _0x1dee4f(_0x2ff6ca,{'children':[_0x4aa79a(_0x522da6(0xfb),{'className':_0x522da6(0x129),'children':_0x522da6(0xea)}),_0x4aa79a(_0x55d525,{'onClick':()=>_0x1b384a[_0x522da6(0xa5)](),'children':'Stop\x20following'})]});}function je(_0x176ebc){var _0x5edf72=_0x29f20e;const {coordinator:_0x334fe8}=_0x176ebc;return _0x1dee4f(_0x2ff6ca,{'children':[_0x4aa79a('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5edf72(0xf3)}),_0x4aa79a(_0x55d525,{'variant':_0x5edf72(0xce),'onClick':()=>_0x334fe8[_0x5edf72(0xca)](),'children':_0x5edf72(0xff)})]});}function Ue(_0x1939fd){var _0x6aad7c=_0x29f20e;const {coordinator:_0x5de474}=_0x1939fd;return _0x1dee4f(_0x2ff6ca,{'children':[_0x4aa79a(_0x6aad7c(0xfb),{'className':_0x6aad7c(0x129),'children':_0x6aad7c(0x126)}),_0x4aa79a(_0x55d525,{'variant':_0x6aad7c(0xaa),'onClick':()=>_0x5de474[_0x6aad7c(0xde)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x2555fd=_0x29f20e;return _0x4aa79a(_0x2ff6ca,{'children':_0x2555fd(0xef)});}var Me=Object[_0x29f20e(0x10e)],ke=(_0x419ba8,_0x7ccd25,_0x4638d1,_0x17ce96)=>{for(var _0x18fa1e=_0x17ce96>0x1?void 0x0:_0x17ce96?Me(_0x7ccd25,_0x4638d1):_0x7ccd25,_0x48cdd7=_0x419ba8['length']-0x1,_0x2b2198;_0x48cdd7>=0x0;_0x48cdd7--)(_0x2b2198=_0x419ba8[_0x48cdd7])&&(_0x18fa1e=_0x2b2198(_0x18fa1e)||_0x18fa1e);return _0x18fa1e;},$=(_0xbec4c1,_0x4d5397)=>(_0x114b90,_0x32dc85)=>_0x4d5397(_0x114b90,_0x32dc85,_0xbec4c1);let b=class extends _0x3375e6{constructor(_0x3e3c48,_0x420b4a){var _0x47061f=_0x29f20e;super(),this[_0x47061f(0x133)]=_0x3e3c48,this[_0x47061f(0xf9)]=_0x420b4a,this[_0x47061f(0x134)]();}[_0x29f20e(0x134)](){var _0x1ca1d4=_0x29f20e;this[_0x1ca1d4(0xfd)](this[_0x1ca1d4(0xf9)][_0x1ca1d4(0xd9)](_0x29a15b['HEADER_MENU'],()=>_0x52be52(Te,this['_injector'])));}};b=ke([$(0x0,_0x2b27e5(_0x88f3f5)),$(0x1,_0x1735f8)],b);var Ge=Object[_0x29f20e(0xaf)],We=Object[_0x29f20e(0x10e)],Ye=(_0x2e6ed8,_0x3b3da4,_0x4a35ba)=>_0x3b3da4 in _0x2e6ed8?Ge(_0x2e6ed8,_0x3b3da4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4a35ba}):_0x2e6ed8[_0x3b3da4]=_0x4a35ba,Be=(_0x10dfec,_0x4158ac,_0x5f54c9,_0x45798f)=>{var _0x19c3f9=_0x29f20e;for(var _0x16ed35=_0x45798f>0x1?void 0x0:_0x45798f?We(_0x4158ac,_0x5f54c9):_0x4158ac,_0x4fd026=_0x10dfec[_0x19c3f9(0x146)]-0x1,_0x169a3c;_0x4fd026>=0x0;_0x4fd026--)(_0x169a3c=_0x10dfec[_0x4fd026])&&(_0x16ed35=_0x169a3c(_0x16ed35)||_0x16ed35);return _0x16ed35;},F=(_0xf2c91c,_0x78b9f)=>(_0x198689,_0x13bb7f)=>_0x78b9f(_0x198689,_0x13bb7f,_0xf2c91c),J=(_0x2d8010,_0x1e4ff7,_0x54d086)=>Ye(_0x2d8010,typeof _0x1e4ff7!=_0x29f20e(0xe5)?_0x1e4ff7+'':_0x1e4ff7,_0x54d086);const Ze=_0x29f20e(0x117);let O=class extends _0xba14a{constructor(_0x1208c3=T,_0x545ad6,_0x488554){var _0x345d10=_0x29f20e;super(),this[_0x345d10(0xa4)]=_0x1208c3,this['_injector']=_0x545ad6,this['_configService']=_0x488554;const {..._0x274ee4}=_0x2f1e0d({},T,this[_0x345d10(0xa4)]);this['_configService'][_0x345d10(0x112)](Oe,_0x274ee4);}[_0x29f20e(0xb0)](){var _0x2e19a9=_0x29f20e;_0x4fada3(this['_injector'],_0x32112a([[L],[I],[m],[b]],this[_0x2e19a9(0xa4)][_0x2e19a9(0xc2)])),_0x132bf9(this[_0x2e19a9(0x133)],[[m]]);}[_0x29f20e(0xf0)](){_0x132bf9(this['_injector'],[[b]]);}};J(O,'type',_0x70eb56[_0x29f20e(0xec)]),J(O,_0x29f20e(0xe4),Ze),O=Be([_0x35339f(_0x2b8f23),F(0x1,_0x2b27e5(_0x88f3f5)),F(0x2,_0x35e166)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x2a0f2a=_0x1c4f;(function(_0x5f0a4e,_0xddb148){var _0x469746=_0x1c4f,_0x1bfa3d=_0x5f0a4e();while(!![]){try{var _0x88fdf4=-parseInt(_0x469746(0x186))/0x1+parseInt(_0x469746(0x223))/0x2+parseInt(_0x469746(0x1bc))/0x3+-parseInt(_0x469746(0x216))/0x4+parseInt(_0x469746(0x21c))/0x5*(-parseInt(_0x469746(0x178))/0x6)+parseInt(_0x469746(0x1ce))/0x7+parseInt(_0x469746(0x1fb))/0x8;if(_0x88fdf4===_0xddb148)break;else _0x1bfa3d['push'](_0x1bfa3d['shift']());}catch(_0x1ab257){_0x1bfa3d['push'](_0x1bfa3d['shift']());}}}(_0x2677,0x9e744));var q=Object['defineProperty'],z=(_0x71726f,_0x613047,_0x47626e)=>_0x613047 in _0x71726f?q(_0x71726f,_0x613047,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x47626e}):_0x71726f[_0x613047]=_0x47626e,d=(_0x35722d,_0x3eb878,_0x405534)=>z(_0x35722d,typeof _0x3eb878!=_0x2a0f2a(0x1e6)?_0x3eb878+'':_0x3eb878,_0x405534);import{CollaborationSessionService as _0x139eaf,SessionStatus as _0x511ef6,UniverCollaborationClientPlugin as _0x2cf583}from'@univerjs-pro/collaboration-client';import{Disposable as _0x56d91a,toDisposable as _0x3ea5b0,Inject as _0x459502,IUniverInstanceService as _0x560e40,Injector as _0x511763,IConfigService as _0x2e77bf,ICommandService as _0x22ff36,RxDisposable as _0x2773af,UniverInstanceType as _0x43f478,DisposableCollection as _0x31b05b,CommandType as _0x53a8fc,DependentOn as _0x2ecbb5,Plugin as _0x36cf9c,merge as _0x2a8c98,registerDependencies as _0x123d95,mergeOverrideWithDependencies as _0x4f628e,touchDependencies as _0x2d4a9e}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x56cadf,InsertSheetMutation as _0x18edf1}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x236b5e,SetScrollOperation as _0x4e40a1}from'@univerjs/sheets-ui';import{useDependency as _0x3e135f,useObservable as _0x1d56b5,IUIPartsService as _0xf8ae92,BuiltInUIPart as _0xba4be9,connectInjector as _0x57f19d}from'@univerjs/ui';import{jsx as _0x430726,jsxs as _0x2b0221,Fragment as _0x114633}from'react/jsx-runtime';import{Dropdown as _0x1f1fbe,clsx as _0x285d7d,Button as _0x46f48e}from'@univerjs/design';import{forwardRef as _0x4e0fc8,useRef as _0xba99eb,createElement as _0x216e9d,useState as _0x216df8,useEffect as _0x245dda}from'react';import{CollaborationEvent as _0x4c2295,parseProtocolChangeset as _0x5217ed}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x4f5984,Subject as _0x5ef0c0}from'rxjs';import{takeUntil as _0x31d1f6,throttleTime as _0x2ea41b}from'rxjs/operators';const Oe=_0x2a0f2a(0x205),T={};class L extends _0x56d91a{constructor(){var _0x33d36e=_0x2a0f2a;super(...arguments),d(this,_0x33d36e(0x184),new Set()),d(this,_0x33d36e(0x187),new Set());}[_0x2a0f2a(0x1ed)](_0x215604){var _0x356f00=_0x2a0f2a;return this[_0x356f00(0x184)][_0x356f00(0x196)](_0x215604),_0x3ea5b0(()=>this['_sharedOperations'][_0x356f00(0x1ad)](_0x215604));}['registerInitialStateReporter'](_0x2b751f){return this['_reporters']['add'](_0x2b751f),_0x3ea5b0(()=>this['_reporters']['delete'](_0x2b751f));}[_0x2a0f2a(0x1b9)](_0x53b27c){var _0x4a3a32=_0x2a0f2a;return this[_0x4a3a32(0x184)][_0x4a3a32(0x18b)](_0x53b27c);}['getInitialStates'](_0x4d27f3){var _0x3ad593=_0x2a0f2a;return Array[_0x3ad593(0x183)](this['_reporters'])['map'](_0x5477ac=>_0x5477ac(_0x4d27f3));}}var Ee=Object[_0x2a0f2a(0x1ef)],Ce=(_0x4001dd,_0x42eb55,_0x1eebd0,_0xf7aeeb)=>{var _0x17af7b=_0x2a0f2a;for(var _0x2f99d4=_0xf7aeeb>0x1?void 0x0:_0xf7aeeb?Ee(_0x42eb55,_0x1eebd0):_0x42eb55,_0x3a22af=_0x4001dd[_0x17af7b(0x1e2)]-0x1,_0x490658;_0x3a22af>=0x0;_0x3a22af--)(_0x490658=_0x4001dd[_0x3a22af])&&(_0x2f99d4=_0x490658(_0x2f99d4)||_0x2f99d4);return _0x2f99d4;},Ne=(_0xf5d60e,_0x20bce6)=>(_0x1d54fa,_0x230642)=>_0x20bce6(_0x1d54fa,_0x230642,_0xf5d60e);let m=class extends _0x56d91a{constructor(_0x2e9499){var _0x71e7e5=_0x2a0f2a;super(),this['_liveShareService']=_0x2e9499,this[_0x71e7e5(0x1b6)]();}[_0x2a0f2a(0x1b6)](){[_0x236b5e['id'],_0x4e40a1['id'],_0x56cadf['id']]['forEach'](_0x39d97e=>{var _0x16ebaf=_0x1c4f;this['disposeWithMe'](this[_0x16ebaf(0x19f)][_0x16ebaf(0x1ed)](_0x39d97e));});}};m=Ce([Ne(0x0,_0x459502(L))],m);var c=function(){var _0x691001=_0x2a0f2a;return c=Object[_0x691001(0x21d)]||function(_0x5e32e4){var _0x4cdf4a=_0x691001;for(var _0xdaa6f3,_0x1caf9d=0x1,_0x59d549=arguments[_0x4cdf4a(0x1e2)];_0x1caf9d<_0x59d549;_0x1caf9d++){_0xdaa6f3=arguments[_0x1caf9d];for(var _0x189455 in _0xdaa6f3)Object[_0x4cdf4a(0x1a0)]['hasOwnProperty'][_0x4cdf4a(0x175)](_0xdaa6f3,_0x189455)&&(_0x5e32e4[_0x189455]=_0xdaa6f3[_0x189455]);}return _0x5e32e4;},c[_0x691001(0x1e8)](this,arguments);},we=function(_0x10c2c8,_0x3f7e1a){var _0x437ecd=_0x2a0f2a,_0x39fc14={};for(var _0x4720c3 in _0x10c2c8)Object[_0x437ecd(0x1a0)][_0x437ecd(0x18d)][_0x437ecd(0x175)](_0x10c2c8,_0x4720c3)&&_0x3f7e1a[_0x437ecd(0x18a)](_0x4720c3)<0x0&&(_0x39fc14[_0x4720c3]=_0x10c2c8[_0x4720c3]);if(_0x10c2c8!=null&&typeof Object[_0x437ecd(0x1cb)]=='function'){for(var _0x134b13=0x0,_0x4720c3=Object['getOwnPropertySymbols'](_0x10c2c8);_0x134b13<_0x4720c3[_0x437ecd(0x1e2)];_0x134b13++)_0x3f7e1a[_0x437ecd(0x18a)](_0x4720c3[_0x134b13])<0x0&&Object[_0x437ecd(0x1a0)][_0x437ecd(0x1e9)][_0x437ecd(0x175)](_0x10c2c8,_0x4720c3[_0x134b13])&&(_0x39fc14[_0x4720c3[_0x134b13]]=_0x10c2c8[_0x4720c3[_0x134b13]]);}return _0x39fc14;},W=_0x4e0fc8(function(_0x380565,_0x224b02){var _0x394fb5=_0x2a0f2a,_0x40daa6=_0x380565[_0x394fb5(0x1ec)],_0x243046=_0x380565['id'],_0x31ed57=_0x380565[_0x394fb5(0x1dc)],_0x2211ab=_0x380565[_0x394fb5(0x1f8)],_0x17b0db=we(_0x380565,[_0x394fb5(0x1ec),'id',_0x394fb5(0x1dc),_0x394fb5(0x1f8)]),_0x203233=_0x394fb5(0x1d9)[_0x394fb5(0x208)](_0x243046,'\x20')[_0x394fb5(0x208)](_0x31ed57||'')[_0x394fb5(0x17a)](),_0x366822=_0xba99eb('_'[_0x394fb5(0x208)](Le()));return Y(_0x40daa6,''[_0x394fb5(0x208)](_0x243046),{'defIds':_0x40daa6[_0x394fb5(0x20d)],'idSuffix':_0x366822['current']},c({'ref':_0x224b02,'className':_0x203233},_0x17b0db),_0x2211ab);});function Y(_0x4e3849,_0xc6506,_0x5da265,_0x187970,_0x4deec8){var _0x327db8=_0x2a0f2a;return _0x216e9d(_0x4e3849[_0x327db8(0x1a8)],c(c({'key':_0xc6506},De(_0x4e3849,_0x5da265,_0x4deec8)),_0x187970),(xe(_0x4e3849,_0x5da265)[_0x327db8(0x1b0)]||[])['map'](function(_0x1372b5,_0x48514a){var _0x119d1e=_0x327db8;return Y(_0x1372b5,''[_0x119d1e(0x208)](_0xc6506,'-')[_0x119d1e(0x208)](_0x4e3849['tag'],'-')[_0x119d1e(0x208)](_0x48514a),_0x5da265,void 0x0,_0x4deec8);}));}function De(_0x4f6fa1,_0x1dbbfd,_0x4cab33){var _0x5a51bf=_0x2a0f2a,_0x3f8a37=c({},_0x4f6fa1[_0x5a51bf(0x1b4)]);_0x4cab33!=null&&_0x4cab33[_0x5a51bf(0x1d3)]&&_0x3f8a37[_0x5a51bf(0x218)]===_0x5a51bf(0x1d3)&&(_0x3f8a37[_0x5a51bf(0x218)]=_0x4cab33[_0x5a51bf(0x1d3)]),_0x4f6fa1['tag']===_0x5a51bf(0x181)&&_0x3f8a37['id']&&(_0x3f8a37['id']=_0x3f8a37['id']+_0x1dbbfd[_0x5a51bf(0x1b1)]),Object[_0x5a51bf(0x1a3)](_0x3f8a37)[_0x5a51bf(0x20f)](function(_0x23d6ee){var _0x5c8e7b=_0x5a51bf,_0x1a0220=_0x23d6ee[0x0],_0x489556=_0x23d6ee[0x1];_0x1a0220===_0x5c8e7b(0x181)&&typeof _0x489556=='string'&&(_0x3f8a37[_0x1a0220]=_0x489556[_0x5c8e7b(0x1f4)](/url\(#(.*)\)/,'url(#$1'[_0x5c8e7b(0x208)](_0x1dbbfd[_0x5c8e7b(0x1b1)],')')));});var _0x23c14=_0x1dbbfd[_0x5a51bf(0x20d)];return!_0x23c14||_0x23c14['length']===0x0||(_0x4f6fa1[_0x5a51bf(0x1a8)]===_0x5a51bf(0x174)&&_0x3f8a37['xlink:href']&&(_0x3f8a37['xlink:href']=_0x3f8a37[_0x5a51bf(0x1a5)]+_0x1dbbfd[_0x5a51bf(0x1b1)]),Object[_0x5a51bf(0x1a3)](_0x3f8a37)[_0x5a51bf(0x20f)](function(_0x4aeb54){var _0x12b600=_0x5a51bf,_0x2543d2=_0x4aeb54[0x0],_0x43488c=_0x4aeb54[0x1];typeof _0x43488c==_0x12b600(0x1dd)&&(_0x3f8a37[_0x2543d2]=_0x43488c[_0x12b600(0x1f4)](/url\(#(.*)\)/,_0x12b600(0x1b5)[_0x12b600(0x208)](_0x1dbbfd[_0x12b600(0x1b1)],')')));})),_0x3f8a37;}function xe(_0x29a139,_0x5052f5){var _0x3e8e57=_0x2a0f2a,_0x17b817,_0x46a30d=_0x5052f5[_0x3e8e57(0x20d)];return!_0x46a30d||_0x46a30d[_0x3e8e57(0x1e2)]===0x0?_0x29a139:_0x29a139[_0x3e8e57(0x1a8)]===_0x3e8e57(0x18c)&&(!((_0x17b817=_0x29a139[_0x3e8e57(0x1b0)])===null||_0x17b817===void 0x0)&&_0x17b817['length'])?c(c({},_0x29a139),{'children':_0x29a139[_0x3e8e57(0x1b0)]['map'](function(_0xce47ed){var _0x3a2a29=_0x3e8e57;return typeof _0xce47ed[_0x3a2a29(0x1b4)]['id']==_0x3a2a29(0x1dd)&&_0x46a30d&&_0x46a30d[_0x3a2a29(0x18a)](_0xce47ed[_0x3a2a29(0x1b4)]['id'])>-0x1?c(c({},_0xce47ed),{'attrs':c(c({},_0xce47ed[_0x3a2a29(0x1b4)]),{'id':_0xce47ed[_0x3a2a29(0x1b4)]['id']+_0x5052f5[_0x3a2a29(0x1b1)]})}):_0xce47ed;})}):_0x29a139;}function Le(){var _0x2a9c00=_0x2a0f2a;return Math[_0x2a9c00(0x1ac)]()[_0x2a9c00(0x1d4)](0x24)[_0x2a9c00(0x215)](0x2,0x8);}W[_0x2a0f2a(0x1e4)]=_0x2a0f2a(0x1d1);var ye={'tag':_0x2a0f2a(0x1d6),'attrs':{'fill':_0x2a0f2a(0x1e0),'viewBox':_0x2a0f2a(0x1c3),'width':'1em','height':_0x2a0f2a(0x190)},'children':[{'tag':_0x2a0f2a(0x1cc),'attrs':{'fill':_0x2a0f2a(0x1f9),'d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':'path','attrs':{'fill':_0x2a0f2a(0x1f9),'d':_0x2a0f2a(0x189),'fillRule':_0x2a0f2a(0x21f),'clipRule':_0x2a0f2a(0x21f)}}]},B=_0x4e0fc8(function(_0x1d6b22,_0x193f10){var _0x43ac9d=_0x2a0f2a;return _0x216e9d(W,Object[_0x43ac9d(0x21d)]({},_0x1d6b22,{'id':_0x43ac9d(0x1ff),'ref':_0x193f10,'icon':ye}));});B['displayName']='LiveShareSingle';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x4ebed0,_0x2a5db7,_0x138018,_0x1605d5)=>{var _0x39caec=_0x2a0f2a;for(var _0x3dbed8=_0x1605d5>0x1?void 0x0:_0x1605d5?Re(_0x2a5db7,_0x138018):_0x2a5db7,_0x1af66d=_0x4ebed0[_0x39caec(0x1e2)]-0x1,_0x3a2c18;_0x1af66d>=0x0;_0x1af66d--)(_0x3a2c18=_0x4ebed0[_0x1af66d])&&(_0x3dbed8=_0x3a2c18(_0x3dbed8)||_0x3dbed8);return _0x3dbed8;},f=(_0x4d06cc,_0x46eae0)=>(_0x4206a4,_0x2e663b)=>_0x46eae0(_0x4206a4,_0x2e663b,_0x4d06cc);let I=class extends _0x2773af{constructor(_0x3270dd,_0x433c2b,_0x3ab648){var _0x5ca8be=_0x2a0f2a;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x3270dd,this[_0x5ca8be(0x201)]=_0x433c2b,this[_0x5ca8be(0x1fc)]=_0x3ab648,this[_0x5ca8be(0x1b6)]());}async['getLiveShareCoordinator'](_0x41c42d){var _0x40a477=_0x2a0f2a;return this[_0x40a477(0x192)][_0x40a477(0x18b)](_0x41c42d)||await this[_0x40a477(0x1fd)](_0x41c42d),this[_0x40a477(0x192)][_0x40a477(0x222)](_0x41c42d);}[_0x2a0f2a(0x1b6)](){var _0x2423a0=_0x2a0f2a;this[_0x2423a0(0x191)][_0x2423a0(0x1d5)](_0x43f478[_0x2423a0(0x1a9)])[_0x2423a0(0x204)](_0x31d1f6(this[_0x2423a0(0x1d0)]))['subscribe'](async _0x115fc8=>{var _0x1a6f31=_0x2423a0;const _0x1c1e12=_0x115fc8[_0x1a6f31(0x176)]();this[_0x1a6f31(0x192)]['has'](_0x1c1e12)||this[_0x1a6f31(0x1fd)](_0x1c1e12);}),this['_univerInstanceService'][_0x2423a0(0x1e5)](_0x43f478[_0x2423a0(0x1a9)])['pipe'](_0x31d1f6(this[_0x2423a0(0x1d0)]))[_0x2423a0(0x1c8)](_0x41085c=>{var _0xb336f2=_0x2423a0;const _0x104a96=_0x41085c['getUnitId'](),_0x829d45=this[_0xb336f2(0x192)][_0xb336f2(0x222)](_0x104a96);_0x829d45==null||_0x829d45[_0xb336f2(0x17c)]();});}async[_0x2a0f2a(0x1fd)](_0x527381){var _0x3705c8=_0x2a0f2a;const _0x5b53a0=await this['_collabSessionService']['requireSession'](_0x527381),_0x125e20=this[_0x3705c8(0x201)]['createInstance'](w,_0x527381,_0x5b53a0);return _0x125e20[_0x3705c8(0x1c5)](),this['_entities'][_0x3705c8(0x20c)](_0x527381,_0x125e20),_0x125e20;}};I=Z([f(0x0,_0x560e40),f(0x1,_0x459502(_0x511763)),f(0x2,_0x459502(_0x139eaf))],I);var h=(_0x108c59=>(_0x108c59[_0x2a0f2a(0x1bb)]=_0x2a0f2a(0x180),_0x108c59['IDLE']=_0x2a0f2a(0x1a1),_0x108c59[_0x2a0f2a(0x1be)]=_0x2a0f2a(0x1ba),_0x108c59['NOT_FOLLOWING']=_0x2a0f2a(0x1b7),_0x108c59[_0x2a0f2a(0x1ee)]=_0x2a0f2a(0x1f5),_0x108c59))(h||{});const Pe=_0x2a0f2a(0x18f),Ae=0xc8;let w=class extends _0x2773af{constructor(_0x4a70b2,_0x1cd2d6,_0x38f627,_0x6747b9,_0x42f5a5){var _0x356b61=_0x2a0f2a;super(),d(this,_0x356b61(0x224),new _0x4f5984(_0x356b61(0x1a1))),d(this,'status$',this['_status$'][_0x356b61(0x193)]()),d(this,_0x356b61(0x1b6),!0x1),d(this,'_commandDisposable',null),d(this,_0x356b61(0x19b),null),(this['_unitID']=_0x4a70b2,this['_collabSession']=_0x1cd2d6,this['_configService']=_0x38f627,this[_0x356b61(0x19f)]=_0x6747b9,this[_0x356b61(0x1c0)]=_0x42f5a5);}get[_0x2a0f2a(0x203)](){var _0x367dca=_0x2a0f2a;return this[_0x367dca(0x224)][_0x367dca(0x1da)]();}[_0x2a0f2a(0x17c)](){var _0x55fdf5=_0x2a0f2a,_0x55b3c9;(_0x55b3c9=this[_0x55fdf5(0x1cf)])==null||_0x55b3c9[_0x55fdf5(0x17c)](),this[_0x55fdf5(0x224)]['next']('idle'),this[_0x55fdf5(0x224)][_0x55fdf5(0x1fa)]();}['init'](){var _0x15d87a=_0x2a0f2a;this['_init']||(this[_0x15d87a(0x1b6)]=!0x0,this[_0x15d87a(0x1cd)][_0x15d87a(0x17e)][_0x15d87a(0x204)](_0x31d1f6(this[_0x15d87a(0x1d0)]))['subscribe'](_0x305799=>{var _0x166441=_0x15d87a;switch(_0x305799){case _0x511ef6[_0x166441(0x1bb)]:this[_0x166441(0x188)]();break;case _0x511ef6['ONLINE']:this[_0x166441(0x1af)]();break;}}),this['_collabSession'][_0x15d87a(0x195)][_0x15d87a(0x204)](_0x31d1f6(this[_0x15d87a(0x1d0)]))[_0x15d87a(0x1c8)](_0x2fc1f7=>{var _0x2a22b7=_0x15d87a;const {eventID:_0x3517c0}=_0x2fc1f7;switch(_0x3517c0){case _0x4c2295[_0x2a22b7(0x182)]:this[_0x2a22b7(0x212)](_0x2fc1f7);break;case _0x4c2295['LIVESHARE_OPERATION']:this[_0x2a22b7(0x1c7)](_0x2fc1f7);break;case _0x4c2295['LIVESHARE_TERMINATE']:this[_0x2a22b7(0x1a7)]();break;case _0x4c2295[_0x2a22b7(0x21e)]:this[_0x2a22b7(0x185)](_0x2fc1f7);break;}}));}[_0x2a0f2a(0x19a)](){var _0x1ed016=_0x2a0f2a;this['_collabSession'][_0x1ed016(0x173)]({'eventID':_0x4c2295[_0x1ed016(0x19e)],'data':{'unitID':this[_0x1ed016(0x179)],'userID':this[_0x1ed016(0x1cd)][_0x1ed016(0x17b)]()}},this[_0x1ed016(0x179)]);}[_0x2a0f2a(0x20e)](){var _0x480d6b=_0x2a0f2a;this[_0x480d6b(0x203)]==='presenting'&&(this[_0x480d6b(0x224)][_0x480d6b(0x1a2)](_0x480d6b(0x1a1)),this[_0x480d6b(0x1cd)]['send']({'eventID':_0x4c2295[_0x480d6b(0x1e3)],'data':{'unitID':this[_0x480d6b(0x179)]}},this['_unitID']));}[_0x2a0f2a(0x199)](){var _0x18b58d=_0x2a0f2a;this['_status']===_0x18b58d(0x1b7)&&(this[_0x18b58d(0x224)][_0x18b58d(0x1a2)](_0x18b58d(0x1ba)),this[_0x18b58d(0x1c1)]());}[_0x2a0f2a(0x210)](){var _0x346a6f=_0x2a0f2a;this[_0x346a6f(0x203)]===_0x346a6f(0x1ba)&&this[_0x346a6f(0x1f0)]();}[_0x2a0f2a(0x212)](_0xdec379){var _0x52bea8=_0x2a0f2a;const {presenter:_0x4608f7}=_0xdec379[_0x52bea8(0x1f1)],_0x430298=this[_0x52bea8(0x1cd)][_0x52bea8(0x17b)]();this[_0x52bea8(0x19b)]=_0x4608f7,_0x4608f7===_0x430298?(this['_stopFollowing'](),this[_0x52bea8(0x18e)]()):this[_0x52bea8(0x203)]!==_0x52bea8(0x1b7)&&(this[_0x52bea8(0x21a)](),this[_0x52bea8(0x1c1)]());}[_0x2a0f2a(0x209)](){var _0x21296b=_0x2a0f2a;const _0x10e00c={'eventID':_0x4c2295[_0x21296b(0x1d8)]};this[_0x21296b(0x1cd)][_0x21296b(0x173)](_0x10e00c,this[_0x21296b(0x179)]);}['_handleTerminate'](){var _0x4002fa=_0x2a0f2a;this[_0x4002fa(0x19b)]=null,this[_0x4002fa(0x203)]!==_0x4002fa(0x1f5)&&this['_beIdle']();}[_0x2a0f2a(0x185)](_0x3af917){var _0x34fd8a=_0x2a0f2a;if(this[_0x34fd8a(0x203)]===_0x34fd8a(0x1ba)&&this[_0x34fd8a(0x19b)]===_0x3af917[_0x34fd8a(0x1f1)][_0x34fd8a(0x17d)]){const _0x3e82f9=_0x5217ed(_0x3af917[_0x34fd8a(0x1f1)])[_0x34fd8a(0x206)][_0x34fd8a(0x219)]()[_0x34fd8a(0x1df)](_0x321758=>_0x321758['id']===_0x18edf1['id']);if(_0x3e82f9){const _0x48c6ad=_0x3e82f9[_0x34fd8a(0x221)][_0x34fd8a(0x1b2)],_0x139d7e=_0x3e82f9[_0x34fd8a(0x221)][_0x34fd8a(0x1b3)]['id'];setTimeout(()=>{var _0x490019=_0x34fd8a;this[_0x490019(0x1c0)]['executeCommand'](_0x56cadf['id'],{'unitId':_0x48c6ad,'subUnitId':_0x139d7e},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x36e74f=_0x2a0f2a;this[_0x36e74f(0x224)][_0x36e74f(0x1a2)](_0x36e74f(0x1f5));const _0xd51831=new Map(),_0x2cd56=this[_0x36e74f(0x1cf)]=new _0x31b05b();_0x2cd56[_0x36e74f(0x196)](_0x3ea5b0(()=>{var _0x4bf972=_0x36e74f;_0xd51831['forEach'](_0x423f73=>_0x423f73['complete']()),_0xd51831[_0x4bf972(0x1e7)]();})),_0x2cd56[_0x36e74f(0x196)](this[_0x36e74f(0x1c0)][_0x36e74f(0x1ea)](_0x98a794=>{var _0x2ecaf6=_0x36e74f,_0x2907b4;if(_0x98a794[_0x2ecaf6(0x1c2)]!==_0x53a8fc[_0x2ecaf6(0x213)]||!this[_0x2ecaf6(0x19f)][_0x2ecaf6(0x1b9)](_0x98a794['id']))return;const {id:_0x5419d3}=_0x98a794;let _0x26991d;_0xd51831['has'](_0x5419d3)?_0x26991d=_0xd51831[_0x2ecaf6(0x222)](_0x5419d3):(_0x26991d=new _0x5ef0c0(),_0xd51831['set'](_0x5419d3,_0x26991d),_0x26991d[_0x2ecaf6(0x204)](_0x2ea41b((_0x2907b4=this['_configService'][_0x2ecaf6(0x1ca)](Pe))!=null?_0x2907b4:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2ecaf6(0x1c8)](_0x2cc61e=>{var _0x241d8d=_0x2ecaf6;this[_0x241d8d(0x1cd)][_0x241d8d(0x173)]({'eventID':_0x4c2295['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x2cc61e['id']]:{'id':_0x2cc61e['id'],'params':JSON['stringify'](_0x2cc61e['params'])}}}},this['_unitID']);})),_0x26991d[_0x2ecaf6(0x1a2)](_0x98a794);})),this[_0x36e74f(0x19f)]['getInitialStates'](this[_0x36e74f(0x179)])['forEach'](_0x55d07e=>this[_0x36e74f(0x1cd)][_0x36e74f(0x173)]({'eventID':_0x4c2295['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x36e74f(0x179)],'operations':{[_0x55d07e['id']]:{'id':_0x55d07e['id'],'params':JSON[_0x36e74f(0x200)](_0x55d07e[_0x36e74f(0x221)])}}}},this[_0x36e74f(0x179)]));}['_stopPresenting'](){var _0x4cba9d=_0x2a0f2a,_0x16510d;this[_0x4cba9d(0x224)]['next']('idle'),(_0x16510d=this['_commandDisposable'])==null||_0x16510d[_0x4cba9d(0x17c)](),this[_0x4cba9d(0x1cf)]=null;}[_0x2a0f2a(0x1c1)](){var _0x578337=_0x2a0f2a,_0x404f1b;(_0x404f1b=this[_0x578337(0x1cf)])==null||_0x404f1b[_0x578337(0x17c)](),this['_status$'][_0x578337(0x1a2)]('following');}[_0x2a0f2a(0x1ab)](){var _0x576e7e=_0x2a0f2a,_0x36a142;this[_0x576e7e(0x224)][_0x576e7e(0x1a2)](_0x576e7e(0x1a1)),(_0x36a142=this['_commandDisposable'])==null||_0x36a142[_0x576e7e(0x17c)](),this[_0x576e7e(0x1cf)]=null;}[_0x2a0f2a(0x1f0)](){var _0x384008=_0x2a0f2a,_0x22abe2;this[_0x384008(0x224)][_0x384008(0x1a2)](_0x384008(0x1b7)),(_0x22abe2=this[_0x384008(0x1cf)])==null||_0x22abe2['dispose']();}[_0x2a0f2a(0x1c7)](_0x4aceee){var _0x4d2112=_0x2a0f2a;if([_0x4d2112(0x1f5),'not-following',_0x4d2112(0x180)][_0x4d2112(0x211)](this['_status'])||!_0x4aceee['data'][_0x4d2112(0x220)]||_0x4aceee['data'][_0x4d2112(0x220)]===this['_collabSession'][_0x4d2112(0x17b)]())return;this[_0x4d2112(0x203)]===_0x4d2112(0x1a1)&&this[_0x4d2112(0x1c1)]();const _0x3e813a=_0x4aceee['data'][_0x4d2112(0x198)];Object[_0x4d2112(0x1f7)](_0x3e813a)[_0x4d2112(0x20f)](_0x235fe2=>{var _0x2caec8=_0x4d2112;this[_0x2caec8(0x1c0)][_0x2caec8(0x1e1)](_0x235fe2['id'],_0x235fe2[_0x2caec8(0x221)]?JSON[_0x2caec8(0x1de)](_0x235fe2[_0x2caec8(0x221)]):null,{'fromCollab':!0x0});});}[_0x2a0f2a(0x188)](){var _0x16eb4c=_0x2a0f2a,_0x37d952;this[_0x16eb4c(0x224)][_0x16eb4c(0x1a2)](_0x16eb4c(0x180)),(_0x37d952=this['_commandDisposable'])==null||_0x37d952[_0x16eb4c(0x17c)]();}['_handleOnline'](){var _0x1c46b4=_0x2a0f2a;this['_status$'][_0x1c46b4(0x1a2)](_0x1c46b4(0x1a1)),this[_0x1c46b4(0x209)]();}};w=Z([f(0x2,_0x2e77bf),f(0x3,_0x459502(L)),f(0x4,_0x22ff36)],w);function Te(){var _0x3c223e=_0x2a0f2a;const _0x1b5ea0=_0x3e135f(I),_0x30e351=_0x3e135f(_0x560e40),_0x1afbe5=_0x1d56b5(()=>_0x30e351[_0x3c223e(0x217)](_0x43f478[_0x3c223e(0x1a9)]),void 0x0,!0x1,[]),[_0x64641,_0x2f18dd]=_0x216df8(null),[_0x51f2ae,_0x390ba0]=_0x216df8(h[_0x3c223e(0x1b8)]),_0x4cbef8=_0xba99eb(null);return _0x245dda(()=>(_0x1afbe5&&_0x1b5ea0[_0x3c223e(0x1f3)](_0x1afbe5[_0x3c223e(0x176)]())['then'](_0x427b54=>{var _0x5a4541=_0x3c223e;_0x2f18dd(_0x427b54),_0x4cbef8[_0x5a4541(0x202)]=_0x427b54[_0x5a4541(0x19d)]['subscribe'](_0x495bfe=>{_0x390ba0(_0x495bfe);});}),()=>{var _0x30de99=_0x3c223e,_0x31c493;(_0x31c493=_0x4cbef8[_0x30de99(0x202)])==null||_0x31c493[_0x30de99(0x1db)](),_0x4cbef8['current']=null;}),[_0x1afbe5,_0x1b5ea0]),_0x64641?_0x430726(_0x1f1fbe,{'align':_0x3c223e(0x1f2),'disabled':_0x51f2ae===h[_0x3c223e(0x1bb)],'className':_0x3c223e(0x20a),'overlay':_0x430726($e,{'status':_0x51f2ae,'coordinator':_0x64641}),'children':_0x430726(_0x3c223e(0x1fe),{'className':_0x285d7d('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x51f2ae===h[_0x3c223e(0x1bb)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x51f2ae!==h[_0x3c223e(0x1bb)]}),'type':_0x3c223e(0x1fe),'children':_0x430726(B,{'className':'univer-size-4'})})}):null;}function $e(_0xde28d2){var _0xbd4cbf=_0x2a0f2a;const {status:_0x41ec08,coordinator:_0x331241}=_0xde28d2;switch(_0x41ec08){case h[_0xbd4cbf(0x1b8)]:return _0x430726(Fe,{'coordinator':_0x331241});case h[_0xbd4cbf(0x1be)]:return _0x430726(He,{'coordinator':_0x331241});case h[_0xbd4cbf(0x1eb)]:return _0x430726(je,{'coordinator':_0x331241});case h['OFFLINE']:return _0x430726(Ve,{});case h[_0xbd4cbf(0x1ee)]:return _0x430726(Ue,{'coordinator':_0x331241});default:return null;}}function Fe(_0xbe1a3a){var _0x5cea33=_0x2a0f2a;const {coordinator:_0x341f93}=_0xbe1a3a;return _0x2b0221(_0x114633,{'children':[_0x430726(_0x5cea33(0x1ae),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5cea33(0x1f6)}),_0x430726(_0x46f48e,{'onClick':()=>_0x341f93[_0x5cea33(0x19a)](),'children':'Start'})]});}function _0x2677(){var _0x28e176=['subscribe','UNIVER_LIVE_SHARE_PLUGIN','getConfig','getOwnPropertySymbols','path','_collabSession','8756034LhQmzS','_commandDisposable','dispose$','UniverIcon','disposeWithMe','colorChannel1','toString','getTypeOfUnitAdded$','svg','univer-w-full\x20univer-mb-3\x20univer-text-sm','LIVESHARE_FETCH_OPERATIONS','univerjs-icon\x20univerjs-icon-','getValue','unsubscribe','className','string','parse','find','none','executeCommand','length','LIVESHARE_TERMINATE','displayName','getTypeOfUnitDisposed$','symbol','clear','apply','propertyIsEnumerable','onCommandExecuted','NOT_FOLLOWING','icon','registerSharedOperation','PRESENTING','getOwnPropertyDescriptor','_stopFollowing','data','end','getLiveShareCoordinator','replace','presenting','Present\x20this\x20document','values','extend','currentColor','complete','8362632WbMHtM','_collabSessionService','_startLiveShareCoordinator','button','live-share-single','stringify','_injector','current','_status','pipe','live-share.config','mutations','_mountLiveShare','concat','_fetchOperations','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','_config','set','defIds','stopPresenting','forEach','stopFollowing','includes','_handleNewHost','OPERATION','Stop\x20following','substring','3412748hbhvVq','getCurrentTypeOfUnit$','fill','reverse','_stopPresenting','UNIVER_UNKNOWN','995orkHYv','assign','NEW_CHANGESETS','evenodd','presenter','params','get','1101588NTzCoG','_status$','send','use','call','getUnitId','_configService','33738wltFtl','_unitID','trim','getMemberID','dispose','memberID','sessionStatus$','Start\x20following','offline','mask','LIVESHARE_NEW_HOST','from','_sharedOperations','_handleNewChangeSets','1011316hVYsZR','_reporters','_handleOffline','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','indexOf','has','defs','hasOwnProperty','_startPresenting','SAME_OPERATION_SHARE_INTERVAL','1em','_univerInstanceService','_entities','asObservable','You\x27re\x20following\x20the\x20presenter','event$','add','pluginName','operations','startFollowing','tryStartPresenting','_presenter','You\x27re\x20not\x20following\x20the\x20presenter','status$','LIVESHARE_REQUEST_HOST','_liveShareService','prototype','idle','next','entries','You\x27are\x20offline.','xlink:href','default','_handleTerminate','tag','UNIVER_SHEET','_uiPartsService','_beIdle','random','delete','div','_handleOnline','children','idSuffix','unitId','sheet','attrs','url(#$1','_init','not-following','IDLE','shouldShareOperation','following','OFFLINE','2356569zMlhsi','HEADER_MENU','FOLLOWING','override','_commandService','_startFollowing','type','0\x200\x2016\x2016','text','init','setConfig','_handleOperation'];_0x2677=function(){return _0x28e176;};return _0x2677();}function He(_0x51eb33){var _0x259bf8=_0x2a0f2a;const {coordinator:_0x1875cb}=_0x51eb33;return _0x2b0221(_0x114633,{'children':[_0x430726(_0x259bf8(0x1ae),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x259bf8(0x194)}),_0x430726(_0x46f48e,{'onClick':()=>_0x1875cb['stopFollowing'](),'children':_0x259bf8(0x214)})]});}function je(_0x39db73){var _0x2ba218=_0x2a0f2a;const {coordinator:_0x434681}=_0x39db73;return _0x2b0221(_0x114633,{'children':[_0x430726('div',{'className':_0x2ba218(0x1d7),'children':_0x2ba218(0x19c)}),_0x430726(_0x46f48e,{'variant':_0x2ba218(0x1c4),'onClick':()=>_0x434681[_0x2ba218(0x199)](),'children':_0x2ba218(0x17f)})]});}function Ue(_0x832789){var _0x40306e=_0x2a0f2a;const {coordinator:_0x14dfd1}=_0x832789;return _0x2b0221(_0x114633,{'children':[_0x430726(_0x40306e(0x1ae),{'className':_0x40306e(0x1d7),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x430726(_0x46f48e,{'variant':_0x40306e(0x1a6),'onClick':()=>_0x14dfd1['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x51e6c5=_0x2a0f2a;return _0x430726(_0x114633,{'children':_0x51e6c5(0x1a4)});}var Me=Object[_0x2a0f2a(0x1ef)],ke=(_0x1434f2,_0x4b0a39,_0x26271d,_0x113b22)=>{for(var _0x105e87=_0x113b22>0x1?void 0x0:_0x113b22?Me(_0x4b0a39,_0x26271d):_0x4b0a39,_0x5ad90c=_0x1434f2['length']-0x1,_0x39c6d1;_0x5ad90c>=0x0;_0x5ad90c--)(_0x39c6d1=_0x1434f2[_0x5ad90c])&&(_0x105e87=_0x39c6d1(_0x105e87)||_0x105e87);return _0x105e87;},$=(_0x56b26b,_0x15ecb3)=>(_0x45b54a,_0x27e27a)=>_0x15ecb3(_0x45b54a,_0x27e27a,_0x56b26b);let b=class extends _0x56d91a{constructor(_0x40ac16,_0x5cb5dd){var _0x14ee55=_0x2a0f2a;super(),this[_0x14ee55(0x201)]=_0x40ac16,this[_0x14ee55(0x1aa)]=_0x5cb5dd,this[_0x14ee55(0x207)]();}[_0x2a0f2a(0x207)](){var _0x401241=_0x2a0f2a;this[_0x401241(0x1d2)](this[_0x401241(0x1aa)]['registerComponent'](_0xba4be9[_0x401241(0x1bd)],()=>_0x57f19d(Te,this[_0x401241(0x201)])));}};b=ke([$(0x0,_0x459502(_0x511763)),$(0x1,_0xf8ae92)],b);var Ge=Object['defineProperty'],We=Object[_0x2a0f2a(0x1ef)],Ye=(_0x2b00db,_0x172369,_0xb421e9)=>_0x172369 in _0x2b00db?Ge(_0x2b00db,_0x172369,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb421e9}):_0x2b00db[_0x172369]=_0xb421e9,Be=(_0x32396a,_0x44fdda,_0x1b23c6,_0x118ac6)=>{var _0x40967b=_0x2a0f2a;for(var _0x18ecfe=_0x118ac6>0x1?void 0x0:_0x118ac6?We(_0x44fdda,_0x1b23c6):_0x44fdda,_0x290d5f=_0x32396a[_0x40967b(0x1e2)]-0x1,_0x4cc370;_0x290d5f>=0x0;_0x290d5f--)(_0x4cc370=_0x32396a[_0x290d5f])&&(_0x18ecfe=_0x4cc370(_0x18ecfe)||_0x18ecfe);return _0x18ecfe;},F=(_0x9e9494,_0x220691)=>(_0x6fcd4f,_0x2d5f9e)=>_0x220691(_0x6fcd4f,_0x2d5f9e,_0x9e9494),J=(_0x55a3c7,_0x3b81b2,_0x271a14)=>Ye(_0x55a3c7,typeof _0x3b81b2!='symbol'?_0x3b81b2+'':_0x3b81b2,_0x271a14);const Ze=_0x2a0f2a(0x1c9);let O=class extends _0x36cf9c{constructor(_0x1aca0a=T,_0x18593a,_0x2a6639){var _0x4aecc2=_0x2a0f2a;super(),this['_config']=_0x1aca0a,this[_0x4aecc2(0x201)]=_0x18593a,this[_0x4aecc2(0x177)]=_0x2a6639;const {..._0x5e8262}=_0x2a8c98({},T,this[_0x4aecc2(0x20b)]);this[_0x4aecc2(0x177)][_0x4aecc2(0x1c6)](Oe,_0x5e8262);}['onStarting'](){var _0x4a30a5=_0x2a0f2a;_0x123d95(this[_0x4a30a5(0x201)],_0x4f628e([[L],[I],[m],[b]],this[_0x4a30a5(0x20b)][_0x4a30a5(0x1bf)])),_0x2d4a9e(this[_0x4a30a5(0x201)],[[m]]);}['onRendered'](){var _0x1760ce=_0x2a0f2a;_0x2d4a9e(this[_0x1760ce(0x201)],[[b]]);}};function _0x1c4f(_0x412eea,_0x465a20){var _0x2677ee=_0x2677();return _0x1c4f=function(_0x1c4fa5,_0x1769d9){_0x1c4fa5=_0x1c4fa5-0x173;var _0x458a08=_0x2677ee[_0x1c4fa5];return _0x458a08;},_0x1c4f(_0x412eea,_0x465a20);}J(O,_0x2a0f2a(0x1c2),_0x43f478[_0x2a0f2a(0x21b)]),J(O,_0x2a0f2a(0x197),Ze),O=Be([_0x2ecbb5(_0x2cf583),F(0x1,_0x459502(_0x511763)),F(0x2,_0x2e77bf)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x3552(_0x343e2d,_0x3439fa){var _0x340fb8=_0x340f();return _0x3552=function(_0x355285,_0x275386){_0x355285=_0x355285-0x1d3;var _0x10dd1a=_0x340fb8[_0x355285];return _0x10dd1a;},_0x3552(_0x343e2d,_0x3439fa);}function _0x340f(){var _0x56c39d=['UniverProLiveShare','FOLLOWING','symbol','getOwnPropertySymbols','takeUntil','DisposableCollection','use','PRESENTING','_handleOperation','LiveShareService','You\x27re\x20following\x20the\x20presenter','hasOwnProperty','_handleNewHost','getLiveShareCoordinator','rxjs','You\x27re\x20presenting\x20the\x20document','CommandType','toStringTag','function','IConfigService','add','offline','sheet','evenodd','SetZoomRatioOperation','BehaviorSubject','stopFollowing','_univerInstanceService','_fetchOperations','object','useDependency','_uiPartsService','LiveShareSingle','button','Fragment','Start','length','onStarting','LiveShareStatus','1116044UTUmWC','@univerjs/ui','_stopFollowing','init','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','mergeOverrideWithDependencies','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','send','xlink:href','univer-w-full\x20univer-mb-3\x20univer-text-sm','IUIPartsService','UniverDesign','getTypeOfUnitDisposed$','@univerjs/design','SessionStatus','React','_collabSessionService','shouldShareOperation','map','complete','concat','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','RxDisposable','onRendered','apply','Dropdown','presenting','operators','_mountLiveShare','NOT_FOLLOWING','UniverUi','stopPresenting','pluginName','className','OFFLINE','getOwnPropertyDescriptor','registerSharedOperation','none','not-following','extend','10826504dbsLvj','indexOf','toString','_config','_stopPresenting','_commandDisposable','forwardRef','getValue','SetWorksheetActiveOperation','_collabSession','SetScrollOperation','replace','1917320YoUraZ','startFollowing','params','Inject','pipe','substring','react','reverse','presenter','Button','Stop\x20presenting','LIVESHARE_TERMINATE','values','LIVESHARE_FETCH_OPERATIONS','_handleTerminate','IUniverInstanceService','NEW_CHANGESETS','_entities','defs','_reporters','forEach','fill','useState','_handleOffline','UniverSheets','Injector','exports','@univerjs/sheets','disposeWithMe','getTypeOfUnitAdded$','parse','unitId','UniverProCollaborationClient','UniverIcon','_beIdle','UniverInstanceType','requireSession','@univerjs-pro/collaboration-client','DesktopLiveShareController','call','Start\x20following','delete','event$','getMemberID','getInitialStates','defineProperty','svg','type','has','_status$','registerComponent','idSuffix','toDisposable','entries','LiveShare','data','url(#$1','HEADER_MENU','icon','end','LiveShareController','unsubscribe','@univerjs/sheets-ui','univerjs-icon\x20univerjs-icon-','UNIVER_UNKNOWN','useRef','defIds','CollaborationSessionService','IDLE','_presenter','2803717ehFhBn','@univerjs/core','_configService','getUnitId','_liveShareService','_status','mutations','UniverLiveSharePlugin','11478Bcpcfc','next','_startLiveShareCoordinator','status$','@univerjs-pro/collaboration','stringify','_unitID','UniverCollaborationClientPlugin','OPERATION','UniverSheetsUi','colorChannel1','getConfig','You\x27re\x20not\x20following\x20the\x20presenter','displayName','amd','dispose','dispose$','assign','current','attrs','jsxs','_startFollowing','Stop\x20following','following','InsertSheetMutation','get','trim','_injector','operations','from','_sharedOperations','set','686hgMdYR','UNIVER_SHEET','Module','UniverProCollaboration','then','jsx','mask','string','9QcixNg','getCurrentTypeOfUnit$','LIVESHARE_OPERATION','rxjs/operators','ICommandService','children','CollaborationEvent','_startPresenting','Disposable','1em','_init','1627404qAQYrL','includes','_commandService','_handleOnline','idle','_handleNewChangeSets','executeCommand','tryStartPresenting','2019aYmOFG','LIVESHARE_NEW_HOST','touchDependencies','DependentOn','asObservable','LiveShareCoordinator','Plugin','live-share.config','path','prototype','subscribe','tag','clear','div','setConfig','throttleTime','UNIVER_LIVE_SHARE_PLUGIN','react/jsx-runtime'];_0x340f=function(){return _0x56c39d;};return _0x340f();}(function(_0x5b6e8e,_0x1b88d7){var _0x469434=_0x3552,_0x47874e=_0x5b6e8e();while(!![]){try{var _0x1f4f67=parseInt(_0x469434(0x2b1))/0x1+-parseInt(_0x469434(0x1db))/0x2*(-parseInt(_0x469434(0x1f6))/0x3)+parseInt(_0x469434(0x22f))/0x4+parseInt(_0x469434(0x263))/0x5+parseInt(_0x469434(0x1ee))/0x6+parseInt(_0x469434(0x2a9))/0x7+-parseInt(_0x469434(0x257))/0x8*(parseInt(_0x469434(0x1e3))/0x9);if(_0x1f4f67===_0x1b88d7)break;else _0x47874e['push'](_0x47874e['shift']());}catch(_0x5287cf){_0x47874e['push'](_0x47874e['shift']());}}}(_0x340f,0x3680c),function(_0x4397f4,_0x47c6b7){var _0xcebc4d=_0x3552;typeof exports==_0xcebc4d(0x225)&&typeof module<'u'?_0x47c6b7(exports,require(_0xcebc4d(0x288)),require(_0xcebc4d(0x2aa)),require(_0xcebc4d(0x27e)),require(_0xcebc4d(0x2a1)),require(_0xcebc4d(0x230)),require(_0xcebc4d(0x207)),require(_0xcebc4d(0x23c)),require(_0xcebc4d(0x269)),require(_0xcebc4d(0x2b5)),require(_0xcebc4d(0x216)),require(_0xcebc4d(0x1e6))):typeof define=='function'&&define[_0xcebc4d(0x2bf)]?define([_0xcebc4d(0x27d),_0xcebc4d(0x288),_0xcebc4d(0x2aa),_0xcebc4d(0x27e),'@univerjs/sheets-ui',_0xcebc4d(0x230),'react/jsx-runtime',_0xcebc4d(0x23c),_0xcebc4d(0x269),_0xcebc4d(0x2b5),_0xcebc4d(0x216),'rxjs/operators'],_0x47c6b7):(_0x4397f4=typeof globalThis<'u'?globalThis:_0x4397f4||self,_0x47c6b7(_0x4397f4[_0xcebc4d(0x208)]={},_0x4397f4[_0xcebc4d(0x283)],_0x4397f4['UniverCore'],_0x4397f4[_0xcebc4d(0x27b)],_0x4397f4[_0xcebc4d(0x2ba)],_0x4397f4[_0xcebc4d(0x24d)],_0x4397f4[_0xcebc4d(0x23e)],_0x4397f4[_0xcebc4d(0x23a)],_0x4397f4[_0xcebc4d(0x23e)],_0x4397f4[_0xcebc4d(0x1de)],_0x4397f4['rxjs'],_0x4397f4['rxjs'][_0xcebc4d(0x24a)]));}(this,function(_0x5f377a,_0x56ca1f,_0x3a08a9,_0x2cd002,_0x27a662,_0x4ea0ac,_0x527ea6,_0x952240,_0x260b4f,_0x252cd5,_0x35a61b,_0x49a08e){'use strict';var _0x189d26=_0x3552;var _0x1fadd4=Object[_0x189d26(0x290)],_0x3a06de=(_0x5e8895,_0x32f2e7,_0x388257)=>_0x32f2e7 in _0x5e8895?_0x1fadd4(_0x5e8895,_0x32f2e7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x388257}):_0x5e8895[_0x32f2e7]=_0x388257,_0x216708=(_0xc7fa0,_0x5a8f2b,_0x16022b)=>_0x3a06de(_0xc7fa0,typeof _0x5a8f2b!='symbol'?_0x5a8f2b+'':_0x5a8f2b,_0x16022b);const _0x316b68=_0x189d26(0x1fd),_0xb11c3b={};class _0x31f9ad extends _0x3a08a9[_0x189d26(0x1eb)]{constructor(){var _0x1397f7=_0x189d26;super(...arguments),_0x216708(this,_0x1397f7(0x1d9),new Set()),_0x216708(this,_0x1397f7(0x276),new Set());}['registerSharedOperation'](_0x1a5262){var _0x43fcfb=_0x189d26;return this['_sharedOperations'][_0x43fcfb(0x21c)](_0x1a5262),_0x3a08a9[_0x43fcfb(0x297)](()=>this[_0x43fcfb(0x1d9)][_0x43fcfb(0x28c)](_0x1a5262));}['registerInitialStateReporter'](_0x2b9319){var _0x5d3828=_0x189d26;return this[_0x5d3828(0x276)][_0x5d3828(0x21c)](_0x2b9319),_0x3a08a9['toDisposable'](()=>this[_0x5d3828(0x276)][_0x5d3828(0x28c)](_0x2b9319));}[_0x189d26(0x240)](_0x5c21bf){var _0x374f18=_0x189d26;return this[_0x374f18(0x1d9)]['has'](_0x5c21bf);}[_0x189d26(0x28f)](_0x77b429){var _0x43dfe6=_0x189d26;return Array[_0x43dfe6(0x1d8)](this[_0x43dfe6(0x276)])[_0x43dfe6(0x241)](_0x2ccda2=>_0x2ccda2(_0x77b429));}}var _0x671a1f=Object[_0x189d26(0x252)],_0x5eb9a8=(_0x35de4d,_0x2494cc,_0x1e75e6,_0x318f00)=>{var _0x42feef=_0x189d26;for(var _0x5304c0=_0x318f00>0x1?void 0x0:_0x318f00?_0x671a1f(_0x2494cc,_0x1e75e6):_0x2494cc,_0x14570e=_0x35de4d[_0x42feef(0x22c)]-0x1,_0x390a23;_0x14570e>=0x0;_0x14570e--)(_0x390a23=_0x35de4d[_0x14570e])&&(_0x5304c0=_0x390a23(_0x5304c0)||_0x5304c0);return _0x5304c0;},_0x658cf4=(_0x3278d7,_0x2b9a24)=>(_0x343c16,_0x2a86cb)=>_0x2b9a24(_0x343c16,_0x2a86cb,_0x3278d7);let _0x4df9a8=class extends _0x3a08a9[_0x189d26(0x1eb)]{constructor(_0x3a29f8){var _0xa5a5f2=_0x189d26;super(),this[_0xa5a5f2(0x2ad)]=_0x3a29f8,this[_0xa5a5f2(0x1ed)]();}['_init'](){var _0x4288c2=_0x189d26;[_0x27a662[_0x4288c2(0x220)]['id'],_0x27a662[_0x4288c2(0x261)]['id'],_0x2cd002[_0x4288c2(0x25f)]['id']][_0x4288c2(0x277)](_0x389d9d=>{var _0x140bfb=_0x4288c2;this[_0x140bfb(0x27f)](this['_liveShareService'][_0x140bfb(0x253)](_0x389d9d));});}};_0x4df9a8=_0x5eb9a8([_0x658cf4(0x0,_0x3a08a9[_0x189d26(0x266)](_0x31f9ad))],_0x4df9a8);var _0x39d288=function(){var _0x272d8a=_0x189d26;return _0x39d288=Object[_0x272d8a(0x2c2)]||function(_0x8a2680){var _0x578b33=_0x272d8a;for(var _0x14c157,_0x5910ce=0x1,_0x15ec96=arguments[_0x578b33(0x22c)];_0x5910ce<_0x15ec96;_0x5910ce++){_0x14c157=arguments[_0x5910ce];for(var _0xc8021a in _0x14c157)Object[_0x578b33(0x1ff)][_0x578b33(0x213)][_0x578b33(0x28a)](_0x14c157,_0xc8021a)&&(_0x8a2680[_0xc8021a]=_0x14c157[_0xc8021a]);}return _0x8a2680;},_0x39d288[_0x272d8a(0x247)](this,arguments);},_0x459a46=function(_0x2bf469,_0x24332e){var _0x43ce05=_0x189d26,_0x587b55={};for(var _0x20f98e in _0x2bf469)Object['prototype'][_0x43ce05(0x213)][_0x43ce05(0x28a)](_0x2bf469,_0x20f98e)&&_0x24332e[_0x43ce05(0x258)](_0x20f98e)<0x0&&(_0x587b55[_0x20f98e]=_0x2bf469[_0x20f98e]);if(_0x2bf469!=null&&typeof Object[_0x43ce05(0x20b)]==_0x43ce05(0x21a)){for(var _0x10ebf6=0x0,_0x20f98e=Object['getOwnPropertySymbols'](_0x2bf469);_0x10ebf6<_0x20f98e[_0x43ce05(0x22c)];_0x10ebf6++)_0x24332e['indexOf'](_0x20f98e[_0x10ebf6])<0x0&&Object[_0x43ce05(0x1ff)]['propertyIsEnumerable'][_0x43ce05(0x28a)](_0x2bf469,_0x20f98e[_0x10ebf6])&&(_0x587b55[_0x20f98e[_0x10ebf6]]=_0x2bf469[_0x20f98e[_0x10ebf6]]);}return _0x587b55;},_0x525e9b=_0x260b4f[_0x189d26(0x25d)](function(_0x57d9d9,_0x9dd97e){var _0xc1a604=_0x189d26,_0x1d902d=_0x57d9d9[_0xc1a604(0x29d)],_0x3c4a43=_0x57d9d9['id'],_0x13f5e2=_0x57d9d9[_0xc1a604(0x250)],_0x18a9c3=_0x57d9d9[_0xc1a604(0x256)],_0x81d2d=_0x459a46(_0x57d9d9,['icon','id',_0xc1a604(0x250),_0xc1a604(0x256)]),_0x481d81=_0xc1a604(0x2a2)[_0xc1a604(0x243)](_0x3c4a43,'\x20')[_0xc1a604(0x243)](_0x13f5e2||'')[_0xc1a604(0x1d5)](),_0x1e3f61=_0x260b4f[_0xc1a604(0x2a4)]('_'[_0xc1a604(0x243)](_0x484a37()));return _0x4ce49e(_0x1d902d,''['concat'](_0x3c4a43),{'defIds':_0x1d902d[_0xc1a604(0x2a5)],'idSuffix':_0x1e3f61[_0xc1a604(0x2c3)]},_0x39d288({'ref':_0x9dd97e,'className':_0x481d81},_0x81d2d),_0x18a9c3);});function _0x4ce49e(_0x5f6273,_0xe6cf9b,_0x4efe78,_0x27dbf1,_0x24197d){var _0x4315e8=_0x189d26;return _0x260b4f['createElement'](_0x5f6273['tag'],_0x39d288(_0x39d288({'key':_0xe6cf9b},_0x5a30b2(_0x5f6273,_0x4efe78,_0x24197d)),_0x27dbf1),(_0x413715(_0x5f6273,_0x4efe78)[_0x4315e8(0x1e8)]||[])['map'](function(_0x37e83e,_0x550c09){var _0x542aa8=_0x4315e8;return _0x4ce49e(_0x37e83e,''[_0x542aa8(0x243)](_0xe6cf9b,'-')['concat'](_0x5f6273[_0x542aa8(0x201)],'-')[_0x542aa8(0x243)](_0x550c09),_0x4efe78,void 0x0,_0x24197d);}));}function _0x5a30b2(_0x4129ce,_0x3d96ba,_0x1a56f7){var _0x5ac2aa=_0x189d26,_0xd9d1d1=_0x39d288({},_0x4129ce[_0x5ac2aa(0x2c4)]);_0x1a56f7!=null&&_0x1a56f7[_0x5ac2aa(0x2bb)]&&_0xd9d1d1[_0x5ac2aa(0x278)]==='colorChannel1'&&(_0xd9d1d1[_0x5ac2aa(0x278)]=_0x1a56f7[_0x5ac2aa(0x2bb)]),_0x4129ce[_0x5ac2aa(0x201)]==='mask'&&_0xd9d1d1['id']&&(_0xd9d1d1['id']=_0xd9d1d1['id']+_0x3d96ba[_0x5ac2aa(0x296)]),Object[_0x5ac2aa(0x298)](_0xd9d1d1)[_0x5ac2aa(0x277)](function(_0x1de335){var _0x57fe9d=_0x5ac2aa,_0x1dc049=_0x1de335[0x0],_0x1e10a3=_0x1de335[0x1];_0x1dc049===_0x57fe9d(0x1e1)&&typeof _0x1e10a3=='string'&&(_0xd9d1d1[_0x1dc049]=_0x1e10a3[_0x57fe9d(0x262)](/url\(#(.*)\)/,_0x57fe9d(0x29b)[_0x57fe9d(0x243)](_0x3d96ba['idSuffix'],')')));});var _0x13c94a=_0x3d96ba['defIds'];return!_0x13c94a||_0x13c94a[_0x5ac2aa(0x22c)]===0x0||(_0x4129ce[_0x5ac2aa(0x201)]===_0x5ac2aa(0x20e)&&_0xd9d1d1[_0x5ac2aa(0x237)]&&(_0xd9d1d1['xlink:href']=_0xd9d1d1[_0x5ac2aa(0x237)]+_0x3d96ba[_0x5ac2aa(0x296)]),Object['entries'](_0xd9d1d1)[_0x5ac2aa(0x277)](function(_0x4c8d6b){var _0x37d721=_0x5ac2aa,_0x2ff768=_0x4c8d6b[0x0],_0x2fdd47=_0x4c8d6b[0x1];typeof _0x2fdd47==_0x37d721(0x1e2)&&(_0xd9d1d1[_0x2ff768]=_0x2fdd47[_0x37d721(0x262)](/url\(#(.*)\)/,_0x37d721(0x29b)[_0x37d721(0x243)](_0x3d96ba[_0x37d721(0x296)],')')));})),_0xd9d1d1;}function _0x413715(_0x5c0de1,_0x1295f9){var _0x3ffc50=_0x189d26,_0x588fb1,_0x4d99b9=_0x1295f9[_0x3ffc50(0x2a5)];return!_0x4d99b9||_0x4d99b9[_0x3ffc50(0x22c)]===0x0?_0x5c0de1:_0x5c0de1[_0x3ffc50(0x201)]===_0x3ffc50(0x275)&&(!((_0x588fb1=_0x5c0de1[_0x3ffc50(0x1e8)])===null||_0x588fb1===void 0x0)&&_0x588fb1[_0x3ffc50(0x22c)])?_0x39d288(_0x39d288({},_0x5c0de1),{'children':_0x5c0de1[_0x3ffc50(0x1e8)]['map'](function(_0x5ac03b){var _0x5b6ecf=_0x3ffc50;return typeof _0x5ac03b[_0x5b6ecf(0x2c4)]['id']==_0x5b6ecf(0x1e2)&&_0x4d99b9&&_0x4d99b9[_0x5b6ecf(0x258)](_0x5ac03b[_0x5b6ecf(0x2c4)]['id'])>-0x1?_0x39d288(_0x39d288({},_0x5ac03b),{'attrs':_0x39d288(_0x39d288({},_0x5ac03b[_0x5b6ecf(0x2c4)]),{'id':_0x5ac03b[_0x5b6ecf(0x2c4)]['id']+_0x1295f9['idSuffix']})}):_0x5ac03b;})}):_0x5c0de1;}function _0x484a37(){var _0x246320=_0x189d26;return Math['random']()[_0x246320(0x259)](0x24)[_0x246320(0x268)](0x2,0x8);}_0x525e9b['displayName']=_0x189d26(0x284);var _0x5bc2e1={'tag':_0x189d26(0x291),'attrs':{'fill':_0x189d26(0x254),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x189d26(0x1ec)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x189d26(0x233)}},{'tag':_0x189d26(0x1fe),'attrs':{'fill':'currentColor','d':_0x189d26(0x235),'fillRule':_0x189d26(0x21f),'clipRule':_0x189d26(0x21f)}}]},_0x276ce5=_0x260b4f[_0x189d26(0x25d)](function(_0x4b80d3,_0x69da5f){var _0x121e98=_0x189d26;return _0x260b4f['createElement'](_0x525e9b,Object[_0x121e98(0x2c2)]({},_0x4b80d3,{'id':'live-share-single','ref':_0x69da5f,'icon':_0x5bc2e1}));});_0x276ce5[_0x189d26(0x2be)]=_0x189d26(0x228);var _0x3ec005=Object[_0x189d26(0x252)],_0x47f06e=(_0x4e7d26,_0x2d1f08,_0x674f22,_0x36d55d)=>{var _0x5e31b6=_0x189d26;for(var _0x44280b=_0x36d55d>0x1?void 0x0:_0x36d55d?_0x3ec005(_0x2d1f08,_0x674f22):_0x2d1f08,_0x21430e=_0x4e7d26[_0x5e31b6(0x22c)]-0x1,_0x459d77;_0x21430e>=0x0;_0x21430e--)(_0x459d77=_0x4e7d26[_0x21430e])&&(_0x44280b=_0x459d77(_0x44280b)||_0x44280b);return _0x44280b;},_0x26c3e8=(_0x5780d9,_0x2f8737)=>(_0x9aca53,_0x3ce2a1)=>_0x2f8737(_0x9aca53,_0x3ce2a1,_0x5780d9);_0x5f377a[_0x189d26(0x29f)]=class extends _0x3a08a9[_0x189d26(0x245)]{constructor(_0x52ad4f,_0x761db6,_0x1bf183){var _0x203280=_0x189d26;super(),_0x216708(this,_0x203280(0x274),new Map()),(this[_0x203280(0x223)]=_0x52ad4f,this[_0x203280(0x1d6)]=_0x761db6,this['_collabSessionService']=_0x1bf183,this[_0x203280(0x1ed)]());}async['getLiveShareCoordinator'](_0x51b0c1){var _0x25ce39=_0x189d26;return this[_0x25ce39(0x274)][_0x25ce39(0x293)](_0x51b0c1)||await this[_0x25ce39(0x2b3)](_0x51b0c1),this[_0x25ce39(0x274)][_0x25ce39(0x1d4)](_0x51b0c1);}[_0x189d26(0x1ed)](){var _0x34f3e7=_0x189d26;this[_0x34f3e7(0x223)][_0x34f3e7(0x280)](_0x3a08a9[_0x34f3e7(0x286)][_0x34f3e7(0x1dc)])['pipe'](_0x49a08e[_0x34f3e7(0x20c)](this[_0x34f3e7(0x2c1)]))['subscribe'](async _0x10e151=>{var _0x3029c2=_0x34f3e7;const _0x15dcc9=_0x10e151[_0x3029c2(0x2ac)]();this['_entities'][_0x3029c2(0x293)](_0x15dcc9)||this[_0x3029c2(0x2b3)](_0x15dcc9);}),this[_0x34f3e7(0x223)][_0x34f3e7(0x23b)](_0x3a08a9['UniverInstanceType']['UNIVER_SHEET'])[_0x34f3e7(0x267)](_0x49a08e['takeUntil'](this[_0x34f3e7(0x2c1)]))[_0x34f3e7(0x200)](_0x85dea1=>{var _0x1b01f9=_0x34f3e7;const _0x14cd1a=_0x85dea1[_0x1b01f9(0x2ac)](),_0x392dbc=this['_entities'][_0x1b01f9(0x1d4)](_0x14cd1a);_0x392dbc==null||_0x392dbc[_0x1b01f9(0x2c0)]();});}async['_startLiveShareCoordinator'](_0x1e725c){var _0x19ee20=_0x189d26;const _0x1d99b2=await this[_0x19ee20(0x23f)][_0x19ee20(0x287)](_0x1e725c),_0x1ca941=this[_0x19ee20(0x1d6)]['createInstance'](_0x5f377a[_0x19ee20(0x1fb)],_0x1e725c,_0x1d99b2);return _0x1ca941[_0x19ee20(0x232)](),this[_0x19ee20(0x274)]['set'](_0x1e725c,_0x1ca941),_0x1ca941;}},_0x5f377a[_0x189d26(0x29f)]=_0x47f06e([_0x26c3e8(0x0,_0x3a08a9[_0x189d26(0x272)]),_0x26c3e8(0x1,_0x3a08a9['Inject'](_0x3a08a9[_0x189d26(0x27c)])),_0x26c3e8(0x2,_0x3a08a9[_0x189d26(0x266)](_0x56ca1f[_0x189d26(0x2a6)]))],_0x5f377a[_0x189d26(0x29f)]);var _0x483e18=(_0x3e62da=>(_0x3e62da['OFFLINE']=_0x189d26(0x21d),_0x3e62da[_0x189d26(0x2a7)]=_0x189d26(0x1f2),_0x3e62da[_0x189d26(0x209)]='following',_0x3e62da[_0x189d26(0x24c)]=_0x189d26(0x255),_0x3e62da[_0x189d26(0x20f)]=_0x189d26(0x249),_0x3e62da))(_0x483e18||{});const _0x4d5672='SAME_OPERATION_SHARE_INTERVAL',_0x10b5d7=0xc8;_0x5f377a[_0x189d26(0x1fb)]=class extends _0x3a08a9['RxDisposable']{constructor(_0x439a71,_0xd6d585,_0x5b5350,_0x526a95,_0x31ecac){var _0x27e78b=_0x189d26;super(),_0x216708(this,_0x27e78b(0x294),new _0x35a61b[(_0x27e78b(0x221))](_0x27e78b(0x1f2))),_0x216708(this,_0x27e78b(0x2b4),this[_0x27e78b(0x294)][_0x27e78b(0x1fa)]()),_0x216708(this,'_init',!0x1),_0x216708(this,'_commandDisposable',null),_0x216708(this,_0x27e78b(0x2a8),null),(this['_unitID']=_0x439a71,this[_0x27e78b(0x260)]=_0xd6d585,this[_0x27e78b(0x2ab)]=_0x5b5350,this[_0x27e78b(0x2ad)]=_0x526a95,this[_0x27e78b(0x1f0)]=_0x31ecac);}get['_status'](){var _0x184cfe=_0x189d26;return this[_0x184cfe(0x294)][_0x184cfe(0x25e)]();}[_0x189d26(0x2c0)](){var _0x799a2f=_0x189d26,_0x345eae;(_0x345eae=this[_0x799a2f(0x25c)])==null||_0x345eae[_0x799a2f(0x2c0)](),this[_0x799a2f(0x294)]['next'](_0x799a2f(0x1f2)),this[_0x799a2f(0x294)]['complete']();}[_0x189d26(0x232)](){var _0x44293d=_0x189d26;this[_0x44293d(0x1ed)]||(this[_0x44293d(0x1ed)]=!0x0,this[_0x44293d(0x260)]['sessionStatus$']['pipe'](_0x49a08e[_0x44293d(0x20c)](this['dispose$']))['subscribe'](_0x55ce91=>{var _0x2775ce=_0x44293d;switch(_0x55ce91){case _0x56ca1f['SessionStatus']['OFFLINE']:this[_0x2775ce(0x27a)]();break;case _0x56ca1f[_0x2775ce(0x23d)]['ONLINE']:this[_0x2775ce(0x1f1)]();break;}}),this['_collabSession'][_0x44293d(0x28d)]['pipe'](_0x49a08e[_0x44293d(0x20c)](this['dispose$']))['subscribe'](_0x3d115e=>{var _0x5d94e3=_0x44293d;const {eventID:_0x2cee8e}=_0x3d115e;switch(_0x2cee8e){case _0x252cd5[_0x5d94e3(0x1e9)][_0x5d94e3(0x1f7)]:this['_handleNewHost'](_0x3d115e);break;case _0x252cd5[_0x5d94e3(0x1e9)][_0x5d94e3(0x1e5)]:this[_0x5d94e3(0x210)](_0x3d115e);break;case _0x252cd5[_0x5d94e3(0x1e9)]['LIVESHARE_TERMINATE']:this[_0x5d94e3(0x271)]();break;case _0x252cd5[_0x5d94e3(0x1e9)][_0x5d94e3(0x273)]:this[_0x5d94e3(0x1f3)](_0x3d115e);break;}}));}['tryStartPresenting'](){var _0x3badcf=_0x189d26;this[_0x3badcf(0x260)]['send']({'eventID':_0x252cd5[_0x3badcf(0x1e9)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession']['getMemberID']()}},this[_0x3badcf(0x2b7)]);}[_0x189d26(0x24e)](){var _0x218538=_0x189d26;this['_status']==='presenting'&&(this[_0x218538(0x294)][_0x218538(0x2b2)](_0x218538(0x1f2)),this[_0x218538(0x260)][_0x218538(0x236)]({'eventID':_0x252cd5[_0x218538(0x1e9)][_0x218538(0x26e)],'data':{'unitID':this[_0x218538(0x2b7)]}},this['_unitID']));}[_0x189d26(0x264)](){var _0x3b885d=_0x189d26;this[_0x3b885d(0x2ae)]===_0x3b885d(0x255)&&(this[_0x3b885d(0x294)][_0x3b885d(0x2b2)](_0x3b885d(0x2c8)),this[_0x3b885d(0x2c6)]());}['stopFollowing'](){var _0x44a120=_0x189d26;this[_0x44a120(0x2ae)]===_0x44a120(0x2c8)&&this[_0x44a120(0x231)]();}[_0x189d26(0x214)](_0xefc75f){var _0x1fb068=_0x189d26;const {presenter:_0x563f69}=_0xefc75f[_0x1fb068(0x29a)],_0xaff9ad=this['_collabSession']['getMemberID']();this[_0x1fb068(0x2a8)]=_0x563f69,_0x563f69===_0xaff9ad?(this['_stopFollowing'](),this[_0x1fb068(0x1ea)]()):this[_0x1fb068(0x2ae)]!==_0x1fb068(0x255)&&(this[_0x1fb068(0x25b)](),this[_0x1fb068(0x2c6)]());}[_0x189d26(0x224)](){var _0x57b70d=_0x189d26;const _0x883c85={'eventID':_0x252cd5[_0x57b70d(0x1e9)][_0x57b70d(0x270)]};this[_0x57b70d(0x260)][_0x57b70d(0x236)](_0x883c85,this[_0x57b70d(0x2b7)]);}['_handleTerminate'](){var _0x2f1cf6=_0x189d26;this['_presenter']=null,this[_0x2f1cf6(0x2ae)]!==_0x2f1cf6(0x249)&&this[_0x2f1cf6(0x285)]();}[_0x189d26(0x1f3)](_0x48a1e0){var _0x3ef08c=_0x189d26;if(this[_0x3ef08c(0x2ae)]===_0x3ef08c(0x2c8)&&this[_0x3ef08c(0x2a8)]===_0x48a1e0[_0x3ef08c(0x29a)]['memberID']){const _0x287d55=_0x252cd5['parseProtocolChangeset'](_0x48a1e0[_0x3ef08c(0x29a)])[_0x3ef08c(0x2af)][_0x3ef08c(0x26a)]()['find'](_0xd2e18d=>_0xd2e18d['id']===_0x2cd002[_0x3ef08c(0x1d3)]['id']);if(_0x287d55){const _0x3de4bf=_0x287d55[_0x3ef08c(0x265)][_0x3ef08c(0x282)],_0x3545c3=_0x287d55[_0x3ef08c(0x265)][_0x3ef08c(0x21e)]['id'];setTimeout(()=>{var _0x3435db=_0x3ef08c;this[_0x3435db(0x1f0)][_0x3435db(0x1f4)](_0x2cd002['SetWorksheetActiveOperation']['id'],{'unitId':_0x3de4bf,'subUnitId':_0x3545c3},{'fromCollab':!0x0});});}}}[_0x189d26(0x1ea)](){var _0x1d0381=_0x189d26;this['_status$'][_0x1d0381(0x2b2)](_0x1d0381(0x249));const _0x44907f=new Map(),_0x599f11=this['_commandDisposable']=new _0x3a08a9[(_0x1d0381(0x20d))]();_0x599f11[_0x1d0381(0x21c)](_0x3a08a9[_0x1d0381(0x297)](()=>{var _0x1a1b55=_0x1d0381;_0x44907f[_0x1a1b55(0x277)](_0x1e6f39=>_0x1e6f39[_0x1a1b55(0x242)]()),_0x44907f[_0x1a1b55(0x202)]();})),_0x599f11[_0x1d0381(0x21c)](this['_commandService']['onCommandExecuted'](_0x2870f0=>{var _0x54cf99=_0x1d0381,_0x1df0a3;if(_0x2870f0[_0x54cf99(0x292)]!==_0x3a08a9[_0x54cf99(0x218)][_0x54cf99(0x2b9)]||!this[_0x54cf99(0x2ad)][_0x54cf99(0x240)](_0x2870f0['id']))return;const {id:_0x1ae300}=_0x2870f0;let _0x1c1005;_0x44907f[_0x54cf99(0x293)](_0x1ae300)?_0x1c1005=_0x44907f['get'](_0x1ae300):(_0x1c1005=new _0x35a61b['Subject'](),_0x44907f[_0x54cf99(0x1da)](_0x1ae300,_0x1c1005),_0x1c1005[_0x54cf99(0x267)](_0x49a08e[_0x54cf99(0x205)]((_0x1df0a3=this[_0x54cf99(0x2ab)][_0x54cf99(0x2bc)](_0x4d5672))!=null?_0x1df0a3:_0x10b5d7,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x54cf99(0x200)](_0x10c697=>{var _0x19d63d=_0x54cf99;this[_0x19d63d(0x260)]['send']({'eventID':_0x252cd5[_0x19d63d(0x1e9)][_0x19d63d(0x1e5)],'data':{'unitID':this[_0x19d63d(0x2b7)],'operations':{[_0x10c697['id']]:{'id':_0x10c697['id'],'params':JSON[_0x19d63d(0x2b6)](_0x10c697['params'])}}}},this[_0x19d63d(0x2b7)]);})),_0x1c1005[_0x54cf99(0x2b2)](_0x2870f0);})),this[_0x1d0381(0x2ad)][_0x1d0381(0x28f)](this[_0x1d0381(0x2b7)])[_0x1d0381(0x277)](_0x17afbf=>this[_0x1d0381(0x260)][_0x1d0381(0x236)]({'eventID':_0x252cd5[_0x1d0381(0x1e9)][_0x1d0381(0x1e5)],'data':{'unitID':this[_0x1d0381(0x2b7)],'operations':{[_0x17afbf['id']]:{'id':_0x17afbf['id'],'params':JSON[_0x1d0381(0x2b6)](_0x17afbf[_0x1d0381(0x265)])}}}},this[_0x1d0381(0x2b7)]));}[_0x189d26(0x25b)](){var _0x5719ad=_0x189d26,_0x4364de;this[_0x5719ad(0x294)][_0x5719ad(0x2b2)](_0x5719ad(0x1f2)),(_0x4364de=this['_commandDisposable'])==null||_0x4364de[_0x5719ad(0x2c0)](),this[_0x5719ad(0x25c)]=null;}['_startFollowing'](){var _0x599cfe=_0x189d26,_0x2848ca;(_0x2848ca=this[_0x599cfe(0x25c)])==null||_0x2848ca[_0x599cfe(0x2c0)](),this[_0x599cfe(0x294)]['next'](_0x599cfe(0x2c8));}[_0x189d26(0x285)](){var _0x2b91ca=_0x189d26,_0x397965;this[_0x2b91ca(0x294)][_0x2b91ca(0x2b2)]('idle'),(_0x397965=this[_0x2b91ca(0x25c)])==null||_0x397965[_0x2b91ca(0x2c0)](),this[_0x2b91ca(0x25c)]=null;}[_0x189d26(0x231)](){var _0x40ac00=_0x189d26,_0x1d12be;this[_0x40ac00(0x294)][_0x40ac00(0x2b2)](_0x40ac00(0x255)),(_0x1d12be=this[_0x40ac00(0x25c)])==null||_0x1d12be[_0x40ac00(0x2c0)]();}['_handleOperation'](_0x32985a){var _0x422070=_0x189d26;if(['presenting',_0x422070(0x255),'offline'][_0x422070(0x1ef)](this[_0x422070(0x2ae)])||!_0x32985a[_0x422070(0x29a)][_0x422070(0x26b)]||_0x32985a[_0x422070(0x29a)][_0x422070(0x26b)]===this['_collabSession'][_0x422070(0x28e)]())return;this[_0x422070(0x2ae)]==='idle'&&this['_startFollowing']();const _0x476c65=_0x32985a[_0x422070(0x29a)][_0x422070(0x1d7)];Object[_0x422070(0x26f)](_0x476c65)[_0x422070(0x277)](_0xfc66f0=>{var _0x49a151=_0x422070;this['_commandService'][_0x49a151(0x1f4)](_0xfc66f0['id'],_0xfc66f0[_0x49a151(0x265)]?JSON[_0x49a151(0x281)](_0xfc66f0[_0x49a151(0x265)]):null,{'fromCollab':!0x0});});}[_0x189d26(0x27a)](){var _0xf6d55=_0x189d26,_0x21e50a;this[_0xf6d55(0x294)][_0xf6d55(0x2b2)]('offline'),(_0x21e50a=this['_commandDisposable'])==null||_0x21e50a[_0xf6d55(0x2c0)]();}[_0x189d26(0x1f1)](){var _0x41877b=_0x189d26;this[_0x41877b(0x294)][_0x41877b(0x2b2)]('idle'),this[_0x41877b(0x224)]();}},_0x5f377a[_0x189d26(0x1fb)]=_0x47f06e([_0x26c3e8(0x2,_0x3a08a9[_0x189d26(0x21b)]),_0x26c3e8(0x3,_0x3a08a9['Inject'](_0x31f9ad)),_0x26c3e8(0x4,_0x3a08a9[_0x189d26(0x1e7)])],_0x5f377a['LiveShareCoordinator']);function _0x27770f(){var _0x398bad=_0x189d26;const _0x2e5250=_0x4ea0ac[_0x398bad(0x226)](_0x5f377a[_0x398bad(0x29f)]),_0x17b082=_0x4ea0ac[_0x398bad(0x226)](_0x3a08a9[_0x398bad(0x272)]),_0x56dc57=_0x4ea0ac['useObservable'](()=>_0x17b082[_0x398bad(0x1e4)](_0x3a08a9['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x4052f5,_0x197b24]=_0x260b4f['useState'](null),[_0x10213b,_0x1d3aaa]=_0x260b4f[_0x398bad(0x279)](_0x483e18[_0x398bad(0x2a7)]),_0x20f3eb=_0x260b4f[_0x398bad(0x2a4)](null);return _0x260b4f['useEffect'](()=>(_0x56dc57&&_0x2e5250[_0x398bad(0x215)](_0x56dc57['getUnitId']())[_0x398bad(0x1df)](_0xca67db=>{var _0x903dc4=_0x398bad;_0x197b24(_0xca67db),_0x20f3eb['current']=_0xca67db[_0x903dc4(0x2b4)][_0x903dc4(0x200)](_0xd991a3=>{_0x1d3aaa(_0xd991a3);});}),()=>{var _0x5ac6bf=_0x398bad,_0x1ce07d;(_0x1ce07d=_0x20f3eb[_0x5ac6bf(0x2c3)])==null||_0x1ce07d[_0x5ac6bf(0x2a0)](),_0x20f3eb['current']=null;}),[_0x56dc57,_0x2e5250]),_0x4052f5?_0x527ea6[_0x398bad(0x1e0)](_0x952240[_0x398bad(0x248)],{'align':_0x398bad(0x29e),'disabled':_0x10213b===_0x483e18[_0x398bad(0x251)],'className':'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','overlay':_0x527ea6[_0x398bad(0x1e0)](_0x4e1a50,{'status':_0x10213b,'coordinator':_0x4052f5}),'children':_0x527ea6['jsx']('button',{'className':_0x952240['clsx'](_0x398bad(0x244),{'univer-cursor-not-allowed':_0x10213b===_0x483e18['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x10213b!==_0x483e18['OFFLINE']}),'type':_0x398bad(0x229),'children':_0x527ea6['jsx'](_0x276ce5,{'className':'univer-size-4'})})}):null;}function _0x4e1a50(_0x419d29){var _0xb14e53=_0x189d26;const {status:_0x10045b,coordinator:_0x57e1ee}=_0x419d29;switch(_0x10045b){case _0x483e18[_0xb14e53(0x2a7)]:return _0x527ea6[_0xb14e53(0x1e0)](_0x5e231b,{'coordinator':_0x57e1ee});case _0x483e18[_0xb14e53(0x209)]:return _0x527ea6[_0xb14e53(0x1e0)](_0x1cde66,{'coordinator':_0x57e1ee});case _0x483e18[_0xb14e53(0x24c)]:return _0x527ea6['jsx'](_0x23e13c,{'coordinator':_0x57e1ee});case _0x483e18[_0xb14e53(0x251)]:return _0x527ea6[_0xb14e53(0x1e0)](_0x4f5f34,{});case _0x483e18[_0xb14e53(0x20f)]:return _0x527ea6[_0xb14e53(0x1e0)](_0x5b8019,{'coordinator':_0x57e1ee});default:return null;}}function _0x5e231b(_0x1eb16b){var _0x5c1265=_0x189d26;const {coordinator:_0x4e4e74}=_0x1eb16b;return _0x527ea6[_0x5c1265(0x2c5)](_0x527ea6['Fragment'],{'children':[_0x527ea6[_0x5c1265(0x1e0)](_0x5c1265(0x203),{'className':_0x5c1265(0x238),'children':'Present\x20this\x20document'}),_0x527ea6['jsx'](_0x952240[_0x5c1265(0x26c)],{'onClick':()=>_0x4e4e74[_0x5c1265(0x1f5)](),'children':_0x5c1265(0x22b)})]});}function _0x1cde66(_0x5ebe8e){var _0x15f5fb=_0x189d26;const {coordinator:_0x565532}=_0x5ebe8e;return _0x527ea6[_0x15f5fb(0x2c5)](_0x527ea6['Fragment'],{'children':[_0x527ea6[_0x15f5fb(0x1e0)](_0x15f5fb(0x203),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x15f5fb(0x212)}),_0x527ea6['jsx'](_0x952240[_0x15f5fb(0x26c)],{'onClick':()=>_0x565532[_0x15f5fb(0x222)](),'children':_0x15f5fb(0x2c7)})]});}function _0x23e13c(_0x5c50fe){var _0x46a300=_0x189d26;const {coordinator:_0x14d12b}=_0x5c50fe;return _0x527ea6[_0x46a300(0x2c5)](_0x527ea6['Fragment'],{'children':[_0x527ea6[_0x46a300(0x1e0)](_0x46a300(0x203),{'className':_0x46a300(0x238),'children':_0x46a300(0x2bd)}),_0x527ea6[_0x46a300(0x1e0)](_0x952240[_0x46a300(0x26c)],{'variant':'text','onClick':()=>_0x14d12b[_0x46a300(0x264)](),'children':_0x46a300(0x28b)})]});}function _0x5b8019(_0x33c897){var _0x3265d4=_0x189d26;const {coordinator:_0x25b002}=_0x33c897;return _0x527ea6[_0x3265d4(0x2c5)](_0x527ea6[_0x3265d4(0x22a)],{'children':[_0x527ea6[_0x3265d4(0x1e0)](_0x3265d4(0x203),{'className':_0x3265d4(0x238),'children':_0x3265d4(0x217)}),_0x527ea6[_0x3265d4(0x1e0)](_0x952240[_0x3265d4(0x26c)],{'variant':'default','onClick':()=>_0x25b002['stopPresenting'](),'children':_0x3265d4(0x26d)})]});}function _0x4f5f34(){var _0x224867=_0x189d26;return _0x527ea6[_0x224867(0x1e0)](_0x527ea6[_0x224867(0x22a)],{'children':'You\x27are\x20offline.'});}var _0x53fac0=Object['getOwnPropertyDescriptor'],_0x30dc62=(_0x1e0f8c,_0x4fca7f,_0x244aeb,_0x255154)=>{var _0x15384b=_0x189d26;for(var _0x5922a3=_0x255154>0x1?void 0x0:_0x255154?_0x53fac0(_0x4fca7f,_0x244aeb):_0x4fca7f,_0x2d6af2=_0x1e0f8c[_0x15384b(0x22c)]-0x1,_0x38f2b4;_0x2d6af2>=0x0;_0x2d6af2--)(_0x38f2b4=_0x1e0f8c[_0x2d6af2])&&(_0x5922a3=_0x38f2b4(_0x5922a3)||_0x5922a3);return _0x5922a3;},_0x57adad=(_0x415dab,_0x1d2282)=>(_0x3043ae,_0x4e9c48)=>_0x1d2282(_0x3043ae,_0x4e9c48,_0x415dab);_0x5f377a[_0x189d26(0x289)]=class extends _0x3a08a9['Disposable']{constructor(_0x3f8518,_0x1e0d22){var _0x171f5a=_0x189d26;super(),this[_0x171f5a(0x1d6)]=_0x3f8518,this[_0x171f5a(0x227)]=_0x1e0d22,this[_0x171f5a(0x24b)]();}[_0x189d26(0x24b)](){var _0x19ea9d=_0x189d26;this['disposeWithMe'](this['_uiPartsService'][_0x19ea9d(0x295)](_0x4ea0ac['BuiltInUIPart'][_0x19ea9d(0x29c)],()=>_0x4ea0ac['connectInjector'](_0x27770f,this[_0x19ea9d(0x1d6)])));}},_0x5f377a[_0x189d26(0x289)]=_0x30dc62([_0x57adad(0x0,_0x3a08a9[_0x189d26(0x266)](_0x3a08a9[_0x189d26(0x27c)])),_0x57adad(0x1,_0x4ea0ac[_0x189d26(0x239)])],_0x5f377a[_0x189d26(0x289)]);var _0x531fbe=Object[_0x189d26(0x290)],_0x8f561a=Object[_0x189d26(0x252)],_0x5f00cd=(_0x4a56cd,_0xe32d2a,_0x4c827f)=>_0xe32d2a in _0x4a56cd?_0x531fbe(_0x4a56cd,_0xe32d2a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4c827f}):_0x4a56cd[_0xe32d2a]=_0x4c827f,_0x4daf52=(_0x20dd24,_0x3a37a6,_0x2e2c49,_0x1b934b)=>{var _0x3150a6=_0x189d26;for(var _0x20f139=_0x1b934b>0x1?void 0x0:_0x1b934b?_0x8f561a(_0x3a37a6,_0x2e2c49):_0x3a37a6,_0x4b24bc=_0x20dd24[_0x3150a6(0x22c)]-0x1,_0x31d8e7;_0x4b24bc>=0x0;_0x4b24bc--)(_0x31d8e7=_0x20dd24[_0x4b24bc])&&(_0x20f139=_0x31d8e7(_0x20f139)||_0x20f139);return _0x20f139;},_0x578b4b=(_0x427c5c,_0x3473e4)=>(_0xfbec5c,_0x56101e)=>_0x3473e4(_0xfbec5c,_0x56101e,_0x427c5c),_0x1e7c2e=(_0x12dea6,_0x59350c,_0x31a88e)=>_0x5f00cd(_0x12dea6,typeof _0x59350c!=_0x189d26(0x20a)?_0x59350c+'':_0x59350c,_0x31a88e);const _0x20dd6c=_0x189d26(0x206);_0x5f377a[_0x189d26(0x2b0)]=class extends _0x3a08a9[_0x189d26(0x1fc)]{constructor(_0x543606=_0xb11c3b,_0x26fc0a,_0x242a72){var _0x351fba=_0x189d26;super(),this['_config']=_0x543606,this[_0x351fba(0x1d6)]=_0x26fc0a,this[_0x351fba(0x2ab)]=_0x242a72;const {..._0xab6b41}=_0x3a08a9['merge']({},_0xb11c3b,this[_0x351fba(0x25a)]);this['_configService'][_0x351fba(0x204)](_0x316b68,_0xab6b41);}[_0x189d26(0x22d)](){var _0x262a0e=_0x189d26;_0x3a08a9['registerDependencies'](this['_injector'],_0x3a08a9[_0x262a0e(0x234)]([[_0x31f9ad],[_0x5f377a['LiveShareController']],[_0x4df9a8],[_0x5f377a[_0x262a0e(0x289)]]],this['_config']['override'])),_0x3a08a9[_0x262a0e(0x1f8)](this[_0x262a0e(0x1d6)],[[_0x4df9a8]]);}[_0x189d26(0x246)](){var _0x528007=_0x189d26;_0x3a08a9[_0x528007(0x1f8)](this[_0x528007(0x1d6)],[[_0x5f377a[_0x528007(0x289)]]]);}},_0x1e7c2e(_0x5f377a[_0x189d26(0x2b0)],_0x189d26(0x292),_0x3a08a9[_0x189d26(0x286)][_0x189d26(0x2a3)]),_0x1e7c2e(_0x5f377a[_0x189d26(0x2b0)],_0x189d26(0x24f),_0x20dd6c),_0x5f377a['UniverLiveSharePlugin']=_0x4daf52([_0x3a08a9[_0x189d26(0x1f9)](_0x56ca1f[_0x189d26(0x2b8)]),_0x578b4b(0x1,_0x3a08a9[_0x189d26(0x266)](_0x3a08a9[_0x189d26(0x27c)])),_0x578b4b(0x2,_0x3a08a9[_0x189d26(0x21b)])],_0x5f377a[_0x189d26(0x2b0)]),_0x5f377a[_0x189d26(0x299)]=_0x27770f,_0x5f377a[_0x189d26(0x211)]=_0x31f9ad,_0x5f377a[_0x189d26(0x22e)]=_0x483e18,Object[_0x189d26(0x290)](_0x5f377a,Symbol[_0x189d26(0x219)],{'value':_0x189d26(0x1dd)});}));
|
|
1
|
+
function _0x4b3d(_0x207e4c,_0x2f8751){var _0x947700=_0x9477();return _0x4b3d=function(_0x4b3d61,_0x39827f){_0x4b3d61=_0x4b3d61-0x9f;var _0xa25ec2=_0x947700[_0x4b3d61];return _0xa25ec2;},_0x4b3d(_0x207e4c,_0x2f8751);}function _0x9477(){var _0x1f24f5=['BuiltInUIPart','@univerjs-pro/collaboration','_startLiveShareCoordinator','694062rCwfPf','indexOf','_configService','following','2124342fVzQyL','_presenter','text','unitId','_handleTerminate','You\x27re\x20not\x20following\x20the\x20presenter','LIVESHARE_REQUEST_HOST','@univerjs/sheets-ui','displayName','getUnitId','10736495XmToAX','LIVESHARE_TERMINATE','none','not-following','connectInjector','_univerInstanceService','symbol','ONLINE','_sharedOperations','jsx','@univerjs/design','Stop\x20presenting','NEW_CHANGESETS','replace','defineProperty','10580096sCtkJy','attrs','pipe','_handleOperation','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','Start\x20following','795464ancgBq','Plugin','IDLE','next','LIVESHARE_FETCH_OPERATIONS','CollaborationEvent','button','_unitID','_handleOffline','_startFollowing','_stopPresenting','live-share-single','forEach','UniverProCollaborationClient','has','Button','sheet','apply','idSuffix','_status','url(#$1','className','startFollowing','_commandDisposable','SetScrollOperation','getInitialStates','onCommandExecuted','@univerjs/ui','values','DisposableCollection','clsx','div','OFFLINE','disposeWithMe','_mountLiveShare','CollaborationSessionService','LIVESHARE_OPERATION','forwardRef','current','getOwnPropertyDescriptor','colorChannel1','shouldShareOperation','1em','You\x27re\x20following\x20the\x20presenter','fill','jsxs','takeUntil','registerComponent','LiveShareStatus','type','from','SetZoomRatioOperation','@univerjs/core','random','children','_status$','substring','useRef','You\x27re\x20presenting\x20the\x20document','react','includes','offline','Injector','PRESENTING','getLiveShareCoordinator','@univerjs-pro/collaboration-client','useObservable','defs','presenting','requireSession','LiveShareService','mutations','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','_handleNewChangeSets','LIVESHARE_NEW_HOST','xlink:href','RxDisposable','map','memberID','You\x27are\x20offline.','useDependency','use','trim','dispose$','DesktopLiveShareController','_reporters','currentColor','_entities','UniverIcon','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','react/jsx-runtime','string','_init','add','toString','reverse','send','OPERATION','5nDuesv','_collabSession','tryStartPresenting','toStringTag','Dropdown','LiveShare','53294lodbxL','Start','init','registerDependencies','rxjs','createInstance','default','_liveShareService','parseProtocolChangeset','getMemberID','call','useEffect','then','@univerjs/sheets','univer-w-full\x20univer-mb-3\x20univer-text-sm','SessionStatus','univerjs-icon\x20univerjs-icon-','operators','concat','_handleOnline','UniverSheetsUi','stopFollowing','object','idle','SetWorksheetActiveOperation','_injector','UNIVER_SHEET','assign','length','evenodd','entries','event$','UniverLiveSharePlugin','5662492JSMftS','unsubscribe','onStarting','_config','mergeOverrideWithDependencies','UniverCollaborationClientPlugin','path','UNIVER_LIVE_SHARE_PLUGIN','84FGYflQ','_fetchOperations','hasOwnProperty','Inject','UniverInstanceType','prototype','set','touchDependencies','end','NOT_FOLLOWING','data','_startPresenting','_uiPartsService','getTypeOfUnitAdded$','delete','90VSOsVI','_stopFollowing','parse','clear','function','extend','UniverCore','subscribe','toDisposable','createElement','_collabSessionService','defIds','get','sessionStatus$','stringify','LiveShareSingle','useState','asObservable','dispose','_handleNewHost','React','UniverDesign','Stop\x20following','Fragment','FOLLOWING','LiveShareController','IUniverInstanceService','merge','tag','Disposable','Present\x20this\x20document','propertyIsEnumerable','icon','Module','presenter','registerSharedOperation','complete','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','getValue','IUIPartsService','LiveShareCoordinator','live-share.config','mask','setConfig','params','getOwnPropertySymbols','_commandService','IConfigService'];_0x9477=function(){return _0x1f24f5;};return _0x9477();}(function(_0x300f04,_0x5352bc){var _0x188c18=_0x4b3d,_0x21a0f7=_0x300f04();while(!![]){try{var _0x46925b=parseInt(_0x188c18(0x16a))/0x1+-parseInt(_0x188c18(0xdc))/0x2*(-parseInt(_0x188c18(0x105))/0x3)+-parseInt(_0x188c18(0xfd))/0x4*(-parseInt(_0x188c18(0xd6))/0x5)+-parseInt(_0x188c18(0x147))/0x6+parseInt(_0x188c18(0x155))/0x7+-parseInt(_0x188c18(0x164))/0x8+-parseInt(_0x188c18(0x14b))/0x9*(parseInt(_0x188c18(0x114))/0xa);if(_0x46925b===_0x5352bc)break;else _0x21a0f7['push'](_0x21a0f7['shift']());}catch(_0x38f89b){_0x21a0f7['push'](_0x21a0f7['shift']());}}}(_0x9477,0xe2ac9),function(_0x3e8ce5,_0xc8e03){var _0x4573b5=_0x4b3d;typeof exports==_0x4573b5(0xf2)&&typeof module<'u'?_0xc8e03(exports,require(_0x4573b5(0xb4)),require(_0x4573b5(0xa7)),require('@univerjs/sheets'),require(_0x4573b5(0x152)),require(_0x4573b5(0x185)),require(_0x4573b5(0xce)),require(_0x4573b5(0x15f)),require(_0x4573b5(0xae)),require(_0x4573b5(0x145)),require('rxjs'),require('rxjs/operators')):typeof define=='function'&&define['amd']?define(['exports','@univerjs-pro/collaboration-client',_0x4573b5(0xa7),_0x4573b5(0xe9),_0x4573b5(0x152),_0x4573b5(0x185),'react/jsx-runtime',_0x4573b5(0x15f),_0x4573b5(0xae),'@univerjs-pro/collaboration',_0x4573b5(0xe0),'rxjs/operators'],_0xc8e03):(_0x3e8ce5=typeof globalThis<'u'?globalThis:_0x3e8ce5||self,_0xc8e03(_0x3e8ce5['UniverProLiveShare']={},_0x3e8ce5[_0x4573b5(0x177)],_0x3e8ce5[_0x4573b5(0x11a)],_0x3e8ce5['UniverSheets'],_0x3e8ce5[_0x4573b5(0xf0)],_0x3e8ce5['UniverUi'],_0x3e8ce5[_0x4573b5(0x128)],_0x3e8ce5[_0x4573b5(0x129)],_0x3e8ce5[_0x4573b5(0x128)],_0x3e8ce5['UniverProCollaboration'],_0x3e8ce5['rxjs'],_0x3e8ce5[_0x4573b5(0xe0)][_0x4573b5(0xed)]));}(this,function(_0x2ae9b9,_0x4803b3,_0x2b474e,_0x285408,_0x2423f0,_0x29bae6,_0x5ed8ab,_0x449b7f,_0x19c262,_0x1217f8,_0x3538d5,_0x46520d){'use strict';var _0x450e7f=_0x4b3d;var _0xbc0f2e=Object[_0x450e7f(0x163)],_0x5030d0=(_0x419a06,_0x1df04e,_0x2bd897)=>_0x1df04e in _0x419a06?_0xbc0f2e(_0x419a06,_0x1df04e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2bd897}):_0x419a06[_0x1df04e]=_0x2bd897,_0x2f1d3f=(_0x150ac2,_0x3f6a53,_0x1a2550)=>_0x5030d0(_0x150ac2,typeof _0x3f6a53!=_0x450e7f(0x15b)?_0x3f6a53+'':_0x3f6a53,_0x1a2550);const _0x27a9a8=_0x450e7f(0x13d),_0x5152d0={};class _0x187d0d extends _0x2b474e[_0x450e7f(0x131)]{constructor(){var _0x331449=_0x450e7f;super(...arguments),_0x2f1d3f(this,_0x331449(0x15d),new Set()),_0x2f1d3f(this,_0x331449(0xc8),new Set());}[_0x450e7f(0x137)](_0x51079c){var _0x3617c4=_0x450e7f;return this['_sharedOperations'][_0x3617c4(0xd1)](_0x51079c),_0x2b474e['toDisposable'](()=>this[_0x3617c4(0x15d)][_0x3617c4(0x113)](_0x51079c));}['registerInitialStateReporter'](_0xaa3c67){var _0x2d3af8=_0x450e7f;return this['_reporters']['add'](_0xaa3c67),_0x2b474e[_0x2d3af8(0x11c)](()=>this[_0x2d3af8(0xc8)][_0x2d3af8(0x113)](_0xaa3c67));}[_0x450e7f(0x193)](_0x57227e){var _0x517595=_0x450e7f;return this[_0x517595(0x15d)]['has'](_0x57227e);}[_0x450e7f(0x183)](_0x549d3b){var _0x30d58f=_0x450e7f;return Array[_0x30d58f(0xa5)](this[_0x30d58f(0xc8)])[_0x30d58f(0xc0)](_0x2ca742=>_0x2ca742(_0x549d3b));}}var _0x2d25c0=Object[_0x450e7f(0x191)],_0x3569bf=(_0x149640,_0x4d8cae,_0x2c613b,_0x32e8c5)=>{for(var _0x2e35c0=_0x32e8c5>0x1?void 0x0:_0x32e8c5?_0x2d25c0(_0x4d8cae,_0x2c613b):_0x4d8cae,_0x52a05e=_0x149640['length']-0x1,_0xb6e40b;_0x52a05e>=0x0;_0x52a05e--)(_0xb6e40b=_0x149640[_0x52a05e])&&(_0x2e35c0=_0xb6e40b(_0x2e35c0)||_0x2e35c0);return _0x2e35c0;},_0x39b313=(_0x218d0e,_0x4e7f9e)=>(_0x2d4479,_0x320fc2)=>_0x4e7f9e(_0x2d4479,_0x320fc2,_0x218d0e);let _0x8375be=class extends _0x2b474e[_0x450e7f(0x131)]{constructor(_0x44ef8c){var _0x44de9f=_0x450e7f;super(),this[_0x44de9f(0xe3)]=_0x44ef8c,this[_0x44de9f(0xd0)]();}[_0x450e7f(0xd0)](){var _0x37d097=_0x450e7f;[_0x2423f0[_0x37d097(0xa6)]['id'],_0x2423f0[_0x37d097(0x182)]['id'],_0x285408[_0x37d097(0xf4)]['id']][_0x37d097(0x176)](_0x21fea6=>{var _0x168dbc=_0x37d097;this[_0x168dbc(0x18b)](this[_0x168dbc(0xe3)]['registerSharedOperation'](_0x21fea6));});}};_0x8375be=_0x3569bf([_0x39b313(0x0,_0x2b474e[_0x450e7f(0x108)](_0x187d0d))],_0x8375be);var _0x5ab71f=function(){var _0x2cf2f5=_0x450e7f;return _0x5ab71f=Object[_0x2cf2f5(0xf7)]||function(_0x3a3cb0){var _0x2a527d=_0x2cf2f5;for(var _0x503849,_0x5aa1d7=0x1,_0x1b224f=arguments[_0x2a527d(0xf8)];_0x5aa1d7<_0x1b224f;_0x5aa1d7++){_0x503849=arguments[_0x5aa1d7];for(var _0x40db21 in _0x503849)Object['prototype'][_0x2a527d(0x107)]['call'](_0x503849,_0x40db21)&&(_0x3a3cb0[_0x40db21]=_0x503849[_0x40db21]);}return _0x3a3cb0;},_0x5ab71f[_0x2cf2f5(0x17b)](this,arguments);},_0x5cbf8e=function(_0x335876,_0x26775e){var _0x1fd1db=_0x450e7f,_0x31a6c0={};for(var _0x4ef873 in _0x335876)Object['prototype'][_0x1fd1db(0x107)][_0x1fd1db(0xe6)](_0x335876,_0x4ef873)&&_0x26775e[_0x1fd1db(0x148)](_0x4ef873)<0x0&&(_0x31a6c0[_0x4ef873]=_0x335876[_0x4ef873]);if(_0x335876!=null&&typeof Object[_0x1fd1db(0x141)]==_0x1fd1db(0x118)){for(var _0x3bade3=0x0,_0x4ef873=Object['getOwnPropertySymbols'](_0x335876);_0x3bade3<_0x4ef873[_0x1fd1db(0xf8)];_0x3bade3++)_0x26775e[_0x1fd1db(0x148)](_0x4ef873[_0x3bade3])<0x0&&Object[_0x1fd1db(0x10a)][_0x1fd1db(0x133)][_0x1fd1db(0xe6)](_0x335876,_0x4ef873[_0x3bade3])&&(_0x31a6c0[_0x4ef873[_0x3bade3]]=_0x335876[_0x4ef873[_0x3bade3]]);}return _0x31a6c0;},_0x5ad3db=_0x19c262[_0x450e7f(0x18f)](function(_0x5e5b39,_0x2ac208){var _0x5a421f=_0x450e7f,_0xf0647a=_0x5e5b39[_0x5a421f(0x134)],_0x40d326=_0x5e5b39['id'],_0x1ed54c=_0x5e5b39['className'],_0x2f697f=_0x5e5b39['extend'],_0x4ce6cf=_0x5cbf8e(_0x5e5b39,[_0x5a421f(0x134),'id',_0x5a421f(0x17f),_0x5a421f(0x119)]),_0x52fe11=_0x5a421f(0xec)['concat'](_0x40d326,'\x20')[_0x5a421f(0xee)](_0x1ed54c||'')[_0x5a421f(0xc5)](),_0x7103e9=_0x19c262[_0x5a421f(0xac)]('_'[_0x5a421f(0xee)](_0x28e09b()));return _0xfe1fa8(_0xf0647a,''['concat'](_0x40d326),{'defIds':_0xf0647a[_0x5a421f(0x11f)],'idSuffix':_0x7103e9[_0x5a421f(0x190)]},_0x5ab71f({'ref':_0x2ac208,'className':_0x52fe11},_0x4ce6cf),_0x2f697f);});function _0xfe1fa8(_0x2b6682,_0x1b4c77,_0x3569c6,_0x400205,_0x3104ff){var _0x4d11c7=_0x450e7f;return _0x19c262[_0x4d11c7(0x11d)](_0x2b6682[_0x4d11c7(0x130)],_0x5ab71f(_0x5ab71f({'key':_0x1b4c77},_0xf1a62a(_0x2b6682,_0x3569c6,_0x3104ff)),_0x400205),(_0x58e61a(_0x2b6682,_0x3569c6)[_0x4d11c7(0xa9)]||[])[_0x4d11c7(0xc0)](function(_0x51208f,_0x20f499){var _0x36263a=_0x4d11c7;return _0xfe1fa8(_0x51208f,''[_0x36263a(0xee)](_0x1b4c77,'-')['concat'](_0x2b6682['tag'],'-')['concat'](_0x20f499),_0x3569c6,void 0x0,_0x3104ff);}));}function _0xf1a62a(_0x598e95,_0x6b9569,_0x39ab8f){var _0x288a1f=_0x450e7f,_0x18f1fc=_0x5ab71f({},_0x598e95[_0x288a1f(0x165)]);_0x39ab8f!=null&&_0x39ab8f[_0x288a1f(0x192)]&&_0x18f1fc['fill']===_0x288a1f(0x192)&&(_0x18f1fc[_0x288a1f(0x9f)]=_0x39ab8f[_0x288a1f(0x192)]),_0x598e95[_0x288a1f(0x130)]===_0x288a1f(0x13e)&&_0x18f1fc['id']&&(_0x18f1fc['id']=_0x18f1fc['id']+_0x6b9569['idSuffix']),Object['entries'](_0x18f1fc)['forEach'](function(_0x5e5a29){var _0xcbb3f4=_0x288a1f,_0x38ea9c=_0x5e5a29[0x0],_0x505bf3=_0x5e5a29[0x1];_0x38ea9c===_0xcbb3f4(0x13e)&&typeof _0x505bf3==_0xcbb3f4(0xcf)&&(_0x18f1fc[_0x38ea9c]=_0x505bf3[_0xcbb3f4(0x162)](/url\(#(.*)\)/,_0xcbb3f4(0x17e)[_0xcbb3f4(0xee)](_0x6b9569[_0xcbb3f4(0x17c)],')')));});var _0x11c748=_0x6b9569['defIds'];return!_0x11c748||_0x11c748[_0x288a1f(0xf8)]===0x0||(_0x598e95['tag']===_0x288a1f(0xc4)&&_0x18f1fc[_0x288a1f(0xbe)]&&(_0x18f1fc[_0x288a1f(0xbe)]=_0x18f1fc['xlink:href']+_0x6b9569['idSuffix']),Object[_0x288a1f(0xfa)](_0x18f1fc)[_0x288a1f(0x176)](function(_0x6f4f94){var _0x39bffa=_0x288a1f,_0x37f42a=_0x6f4f94[0x0],_0x21d0b7=_0x6f4f94[0x1];typeof _0x21d0b7=='string'&&(_0x18f1fc[_0x37f42a]=_0x21d0b7[_0x39bffa(0x162)](/url\(#(.*)\)/,'url(#$1'[_0x39bffa(0xee)](_0x6b9569[_0x39bffa(0x17c)],')')));})),_0x18f1fc;}function _0x58e61a(_0x1b8769,_0x5916e2){var _0x1649e3=_0x450e7f,_0x3bd955,_0x634e9b=_0x5916e2[_0x1649e3(0x11f)];return!_0x634e9b||_0x634e9b[_0x1649e3(0xf8)]===0x0?_0x1b8769:_0x1b8769[_0x1649e3(0x130)]===_0x1649e3(0xb6)&&(!((_0x3bd955=_0x1b8769[_0x1649e3(0xa9)])===null||_0x3bd955===void 0x0)&&_0x3bd955[_0x1649e3(0xf8)])?_0x5ab71f(_0x5ab71f({},_0x1b8769),{'children':_0x1b8769['children'][_0x1649e3(0xc0)](function(_0x496367){var _0x566316=_0x1649e3;return typeof _0x496367[_0x566316(0x165)]['id']==_0x566316(0xcf)&&_0x634e9b&&_0x634e9b[_0x566316(0x148)](_0x496367['attrs']['id'])>-0x1?_0x5ab71f(_0x5ab71f({},_0x496367),{'attrs':_0x5ab71f(_0x5ab71f({},_0x496367[_0x566316(0x165)]),{'id':_0x496367[_0x566316(0x165)]['id']+_0x5916e2['idSuffix']})}):_0x496367;})}):_0x1b8769;}function _0x28e09b(){var _0x2b5933=_0x450e7f;return Math[_0x2b5933(0xa8)]()[_0x2b5933(0xd2)](0x24)[_0x2b5933(0xab)](0x2,0x8);}_0x5ad3db[_0x450e7f(0x153)]=_0x450e7f(0xcb);var _0x295281={'tag':'svg','attrs':{'fill':_0x450e7f(0x157),'viewBox':'0\x200\x2016\x2016','width':_0x450e7f(0x194),'height':_0x450e7f(0x194)},'children':[{'tag':_0x450e7f(0x103),'attrs':{'fill':_0x450e7f(0xc9),'d':_0x450e7f(0x168)}},{'tag':_0x450e7f(0x103),'attrs':{'fill':_0x450e7f(0xc9),'d':_0x450e7f(0x139),'fillRule':'evenodd','clipRule':_0x450e7f(0xf9)}}]},_0x34a692=_0x19c262[_0x450e7f(0x18f)](function(_0x46f50c,_0x1c6c2e){var _0x3fbefc=_0x450e7f;return _0x19c262[_0x3fbefc(0x11d)](_0x5ad3db,Object[_0x3fbefc(0xf7)]({},_0x46f50c,{'id':_0x3fbefc(0x175),'ref':_0x1c6c2e,'icon':_0x295281}));});_0x34a692[_0x450e7f(0x153)]=_0x450e7f(0x123);var _0xcd29b1=Object['getOwnPropertyDescriptor'],_0x57028e=(_0x21d8bf,_0x56b872,_0x50b974,_0x3f4d76)=>{for(var _0x1b999c=_0x3f4d76>0x1?void 0x0:_0x3f4d76?_0xcd29b1(_0x56b872,_0x50b974):_0x56b872,_0x11c668=_0x21d8bf['length']-0x1,_0x4ee7e1;_0x11c668>=0x0;_0x11c668--)(_0x4ee7e1=_0x21d8bf[_0x11c668])&&(_0x1b999c=_0x4ee7e1(_0x1b999c)||_0x1b999c);return _0x1b999c;},_0x5a2b3c=(_0x1e887d,_0x30bf87)=>(_0x36e5ac,_0x35a3d3)=>_0x30bf87(_0x36e5ac,_0x35a3d3,_0x1e887d);_0x2ae9b9[_0x450e7f(0x12d)]=class extends _0x2b474e[_0x450e7f(0xbf)]{constructor(_0x5ec05b,_0x1ac046,_0xe345dc){var _0x30985d=_0x450e7f;super(),_0x2f1d3f(this,_0x30985d(0xca),new Map()),(this['_univerInstanceService']=_0x5ec05b,this[_0x30985d(0xf5)]=_0x1ac046,this[_0x30985d(0x11e)]=_0xe345dc,this[_0x30985d(0xd0)]());}async['getLiveShareCoordinator'](_0x38278c){var _0x1609a3=_0x450e7f;return this['_entities']['has'](_0x38278c)||await this[_0x1609a3(0x146)](_0x38278c),this['_entities'][_0x1609a3(0x120)](_0x38278c);}['_init'](){var _0x473ec7=_0x450e7f;this[_0x473ec7(0x15a)][_0x473ec7(0x112)](_0x2b474e['UniverInstanceType'][_0x473ec7(0xf6)])[_0x473ec7(0x166)](_0x46520d['takeUntil'](this['dispose$']))[_0x473ec7(0x11b)](async _0x3b1185=>{var _0x548020=_0x473ec7;const _0x46fc93=_0x3b1185[_0x548020(0x154)]();this[_0x548020(0xca)][_0x548020(0x178)](_0x46fc93)||this[_0x548020(0x146)](_0x46fc93);}),this[_0x473ec7(0x15a)]['getTypeOfUnitDisposed$'](_0x2b474e[_0x473ec7(0x109)][_0x473ec7(0xf6)])[_0x473ec7(0x166)](_0x46520d['takeUntil'](this['dispose$']))['subscribe'](_0x2a1aac=>{var _0x28ffbd=_0x473ec7;const _0x42a374=_0x2a1aac['getUnitId'](),_0x1db863=this['_entities'][_0x28ffbd(0x120)](_0x42a374);_0x1db863==null||_0x1db863[_0x28ffbd(0x126)]();});}async['_startLiveShareCoordinator'](_0x2a36af){var _0x3d2486=_0x450e7f;const _0x410f17=await this[_0x3d2486(0x11e)][_0x3d2486(0xb8)](_0x2a36af),_0x54b293=this[_0x3d2486(0xf5)][_0x3d2486(0xe1)](_0x2ae9b9[_0x3d2486(0x13c)],_0x2a36af,_0x410f17);return _0x54b293[_0x3d2486(0xde)](),this['_entities'][_0x3d2486(0x10b)](_0x2a36af,_0x54b293),_0x54b293;}},_0x2ae9b9['LiveShareController']=_0x57028e([_0x5a2b3c(0x0,_0x2b474e[_0x450e7f(0x12e)]),_0x5a2b3c(0x1,_0x2b474e[_0x450e7f(0x108)](_0x2b474e[_0x450e7f(0xb1)])),_0x5a2b3c(0x2,_0x2b474e[_0x450e7f(0x108)](_0x4803b3[_0x450e7f(0x18d)]))],_0x2ae9b9[_0x450e7f(0x12d)]);var _0x4c1ccf=(_0x2b7c37=>(_0x2b7c37[_0x450e7f(0x18a)]=_0x450e7f(0xb0),_0x2b7c37[_0x450e7f(0x16c)]=_0x450e7f(0xf3),_0x2b7c37['FOLLOWING']=_0x450e7f(0x14a),_0x2b7c37[_0x450e7f(0x10e)]=_0x450e7f(0x158),_0x2b7c37[_0x450e7f(0xb2)]=_0x450e7f(0xb7),_0x2b7c37))(_0x4c1ccf||{});const _0x53108e='SAME_OPERATION_SHARE_INTERVAL',_0x2d12cd=0xc8;_0x2ae9b9[_0x450e7f(0x13c)]=class extends _0x2b474e[_0x450e7f(0xbf)]{constructor(_0x5a433b,_0x84b14f,_0x1c0831,_0x548d4d,_0x18513c){var _0xb1690b=_0x450e7f;super(),_0x2f1d3f(this,_0xb1690b(0xaa),new _0x3538d5['BehaviorSubject'](_0xb1690b(0xf3))),_0x2f1d3f(this,'status$',this[_0xb1690b(0xaa)][_0xb1690b(0x125)]()),_0x2f1d3f(this,_0xb1690b(0xd0),!0x1),_0x2f1d3f(this,_0xb1690b(0x181),null),_0x2f1d3f(this,_0xb1690b(0x14c),null),(this[_0xb1690b(0x171)]=_0x5a433b,this[_0xb1690b(0xd7)]=_0x84b14f,this[_0xb1690b(0x149)]=_0x1c0831,this['_liveShareService']=_0x548d4d,this[_0xb1690b(0x142)]=_0x18513c);}get[_0x450e7f(0x17d)](){var _0x25a494=_0x450e7f;return this[_0x25a494(0xaa)][_0x25a494(0x13a)]();}[_0x450e7f(0x126)](){var _0xdf8322=_0x450e7f,_0xe2d57;(_0xe2d57=this['_commandDisposable'])==null||_0xe2d57[_0xdf8322(0x126)](),this['_status$'][_0xdf8322(0x16d)]('idle'),this[_0xdf8322(0xaa)][_0xdf8322(0x138)]();}['init'](){var _0x4a8470=_0x450e7f;this['_init']||(this[_0x4a8470(0xd0)]=!0x0,this[_0x4a8470(0xd7)][_0x4a8470(0x121)][_0x4a8470(0x166)](_0x46520d[_0x4a8470(0xa1)](this[_0x4a8470(0xc6)]))['subscribe'](_0x2b3bf8=>{var _0x166677=_0x4a8470;switch(_0x2b3bf8){case _0x4803b3['SessionStatus']['OFFLINE']:this['_handleOffline']();break;case _0x4803b3[_0x166677(0xeb)][_0x166677(0x15c)]:this[_0x166677(0xef)]();break;}}),this[_0x4a8470(0xd7)][_0x4a8470(0xfb)][_0x4a8470(0x166)](_0x46520d[_0x4a8470(0xa1)](this[_0x4a8470(0xc6)]))['subscribe'](_0x20bdf4=>{var _0xd9dfd1=_0x4a8470;const {eventID:_0x1f8759}=_0x20bdf4;switch(_0x1f8759){case _0x1217f8['CollaborationEvent'][_0xd9dfd1(0xbd)]:this[_0xd9dfd1(0x127)](_0x20bdf4);break;case _0x1217f8[_0xd9dfd1(0x16f)][_0xd9dfd1(0x18e)]:this[_0xd9dfd1(0x167)](_0x20bdf4);break;case _0x1217f8[_0xd9dfd1(0x16f)][_0xd9dfd1(0x156)]:this['_handleTerminate']();break;case _0x1217f8[_0xd9dfd1(0x16f)][_0xd9dfd1(0x161)]:this[_0xd9dfd1(0xbc)](_0x20bdf4);break;}}));}['tryStartPresenting'](){var _0xcba22a=_0x450e7f;this[_0xcba22a(0xd7)][_0xcba22a(0xd4)]({'eventID':_0x1217f8[_0xcba22a(0x16f)][_0xcba22a(0x151)],'data':{'unitID':this[_0xcba22a(0x171)],'userID':this['_collabSession'][_0xcba22a(0xe5)]()}},this[_0xcba22a(0x171)]);}['stopPresenting'](){var _0x2175b4=_0x450e7f;this[_0x2175b4(0x17d)]==='presenting'&&(this[_0x2175b4(0xaa)][_0x2175b4(0x16d)](_0x2175b4(0xf3)),this[_0x2175b4(0xd7)][_0x2175b4(0xd4)]({'eventID':_0x1217f8['CollaborationEvent'][_0x2175b4(0x156)],'data':{'unitID':this[_0x2175b4(0x171)]}},this[_0x2175b4(0x171)]));}[_0x450e7f(0x180)](){var _0x14bd58=_0x450e7f;this['_status']==='not-following'&&(this[_0x14bd58(0xaa)][_0x14bd58(0x16d)](_0x14bd58(0x14a)),this[_0x14bd58(0x173)]());}[_0x450e7f(0xf1)](){var _0x1cb848=_0x450e7f;this[_0x1cb848(0x17d)]===_0x1cb848(0x14a)&&this[_0x1cb848(0x115)]();}['_handleNewHost'](_0x646e25){var _0x583c5c=_0x450e7f;const {presenter:_0x2d971b}=_0x646e25[_0x583c5c(0x10f)],_0x1f0f46=this[_0x583c5c(0xd7)][_0x583c5c(0xe5)]();this[_0x583c5c(0x14c)]=_0x2d971b,_0x2d971b===_0x1f0f46?(this[_0x583c5c(0x115)](),this['_startPresenting']()):this[_0x583c5c(0x17d)]!==_0x583c5c(0x158)&&(this['_stopPresenting'](),this[_0x583c5c(0x173)]());}[_0x450e7f(0x106)](){var _0x1825a7=_0x450e7f;const _0x364c1e={'eventID':_0x1217f8['CollaborationEvent'][_0x1825a7(0x16e)]};this['_collabSession'][_0x1825a7(0xd4)](_0x364c1e,this['_unitID']);}[_0x450e7f(0x14f)](){var _0x46d6e2=_0x450e7f;this[_0x46d6e2(0x14c)]=null,this[_0x46d6e2(0x17d)]!==_0x46d6e2(0xb7)&&this['_beIdle']();}[_0x450e7f(0xbc)](_0x207a52){var _0x420f41=_0x450e7f;if(this[_0x420f41(0x17d)]==='following'&&this[_0x420f41(0x14c)]===_0x207a52['data'][_0x420f41(0xc1)]){const _0x49f6b1=_0x1217f8[_0x420f41(0xe4)](_0x207a52[_0x420f41(0x10f)])[_0x420f41(0xba)][_0x420f41(0xd3)]()['find'](_0x184a2=>_0x184a2['id']===_0x285408['InsertSheetMutation']['id']);if(_0x49f6b1){const _0x31c881=_0x49f6b1[_0x420f41(0x140)][_0x420f41(0x14e)],_0x1d24b0=_0x49f6b1[_0x420f41(0x140)][_0x420f41(0x17a)]['id'];setTimeout(()=>{var _0x91498e=_0x420f41;this[_0x91498e(0x142)]['executeCommand'](_0x285408[_0x91498e(0xf4)]['id'],{'unitId':_0x31c881,'subUnitId':_0x1d24b0},{'fromCollab':!0x0});});}}}[_0x450e7f(0x110)](){var _0x545ef5=_0x450e7f;this[_0x545ef5(0xaa)][_0x545ef5(0x16d)](_0x545ef5(0xb7));const _0x1bb7e0=new Map(),_0x4dac13=this[_0x545ef5(0x181)]=new _0x2b474e[(_0x545ef5(0x187))]();_0x4dac13['add'](_0x2b474e[_0x545ef5(0x11c)](()=>{var _0x1f102e=_0x545ef5;_0x1bb7e0[_0x1f102e(0x176)](_0x56e5b6=>_0x56e5b6[_0x1f102e(0x138)]()),_0x1bb7e0[_0x1f102e(0x117)]();})),_0x4dac13['add'](this['_commandService'][_0x545ef5(0x184)](_0x4d2f44=>{var _0x180f40=_0x545ef5,_0x4754d8;if(_0x4d2f44[_0x180f40(0xa4)]!==_0x2b474e['CommandType'][_0x180f40(0xd5)]||!this[_0x180f40(0xe3)][_0x180f40(0x193)](_0x4d2f44['id']))return;const {id:_0x14a8d0}=_0x4d2f44;let _0x37bd49;_0x1bb7e0[_0x180f40(0x178)](_0x14a8d0)?_0x37bd49=_0x1bb7e0[_0x180f40(0x120)](_0x14a8d0):(_0x37bd49=new _0x3538d5['Subject'](),_0x1bb7e0[_0x180f40(0x10b)](_0x14a8d0,_0x37bd49),_0x37bd49['pipe'](_0x46520d['throttleTime']((_0x4754d8=this[_0x180f40(0x149)]['getConfig'](_0x53108e))!=null?_0x4754d8:_0x2d12cd,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x180f40(0x11b)](_0x589c06=>{var _0x5bf7e1=_0x180f40;this[_0x5bf7e1(0xd7)]['send']({'eventID':_0x1217f8[_0x5bf7e1(0x16f)][_0x5bf7e1(0x18e)],'data':{'unitID':this[_0x5bf7e1(0x171)],'operations':{[_0x589c06['id']]:{'id':_0x589c06['id'],'params':JSON[_0x5bf7e1(0x122)](_0x589c06['params'])}}}},this[_0x5bf7e1(0x171)]);})),_0x37bd49['next'](_0x4d2f44);})),this[_0x545ef5(0xe3)][_0x545ef5(0x183)](this['_unitID'])['forEach'](_0x44873f=>this[_0x545ef5(0xd7)][_0x545ef5(0xd4)]({'eventID':_0x1217f8[_0x545ef5(0x16f)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x44873f['id']]:{'id':_0x44873f['id'],'params':JSON[_0x545ef5(0x122)](_0x44873f[_0x545ef5(0x140)])}}}},this[_0x545ef5(0x171)]));}[_0x450e7f(0x174)](){var _0x3e8d93=_0x450e7f,_0x39efad;this[_0x3e8d93(0xaa)][_0x3e8d93(0x16d)]('idle'),(_0x39efad=this[_0x3e8d93(0x181)])==null||_0x39efad[_0x3e8d93(0x126)](),this['_commandDisposable']=null;}['_startFollowing'](){var _0xc7ca0b=_0x450e7f,_0x4fff19;(_0x4fff19=this['_commandDisposable'])==null||_0x4fff19[_0xc7ca0b(0x126)](),this[_0xc7ca0b(0xaa)][_0xc7ca0b(0x16d)]('following');}['_beIdle'](){var _0x781dfa=_0x450e7f,_0x491906;this['_status$'][_0x781dfa(0x16d)](_0x781dfa(0xf3)),(_0x491906=this[_0x781dfa(0x181)])==null||_0x491906[_0x781dfa(0x126)](),this[_0x781dfa(0x181)]=null;}[_0x450e7f(0x115)](){var _0x35069b=_0x450e7f,_0x2ee7b2;this[_0x35069b(0xaa)][_0x35069b(0x16d)](_0x35069b(0x158)),(_0x2ee7b2=this[_0x35069b(0x181)])==null||_0x2ee7b2[_0x35069b(0x126)]();}[_0x450e7f(0x167)](_0x4b948c){var _0x444a08=_0x450e7f;if([_0x444a08(0xb7),_0x444a08(0x158),_0x444a08(0xb0)][_0x444a08(0xaf)](this[_0x444a08(0x17d)])||!_0x4b948c['data'][_0x444a08(0x136)]||_0x4b948c['data'][_0x444a08(0x136)]===this[_0x444a08(0xd7)][_0x444a08(0xe5)]())return;this[_0x444a08(0x17d)]===_0x444a08(0xf3)&&this[_0x444a08(0x173)]();const _0x16ce21=_0x4b948c['data']['operations'];Object[_0x444a08(0x186)](_0x16ce21)[_0x444a08(0x176)](_0x2e87c4=>{var _0x1f3aa4=_0x444a08;this[_0x1f3aa4(0x142)]['executeCommand'](_0x2e87c4['id'],_0x2e87c4[_0x1f3aa4(0x140)]?JSON[_0x1f3aa4(0x116)](_0x2e87c4['params']):null,{'fromCollab':!0x0});});}[_0x450e7f(0x172)](){var _0x1c2506=_0x450e7f,_0x215e93;this[_0x1c2506(0xaa)][_0x1c2506(0x16d)](_0x1c2506(0xb0)),(_0x215e93=this[_0x1c2506(0x181)])==null||_0x215e93[_0x1c2506(0x126)]();}[_0x450e7f(0xef)](){var _0x514512=_0x450e7f;this[_0x514512(0xaa)][_0x514512(0x16d)](_0x514512(0xf3)),this[_0x514512(0x106)]();}},_0x2ae9b9[_0x450e7f(0x13c)]=_0x57028e([_0x5a2b3c(0x2,_0x2b474e['IConfigService']),_0x5a2b3c(0x3,_0x2b474e['Inject'](_0x187d0d)),_0x5a2b3c(0x4,_0x2b474e['ICommandService'])],_0x2ae9b9[_0x450e7f(0x13c)]);function _0x44e069(){var _0x46e100=_0x450e7f;const _0x297d98=_0x29bae6[_0x46e100(0xc3)](_0x2ae9b9['LiveShareController']),_0x15bfb3=_0x29bae6['useDependency'](_0x2b474e[_0x46e100(0x12e)]),_0x6ed1f7=_0x29bae6[_0x46e100(0xb5)](()=>_0x15bfb3['getCurrentTypeOfUnit$'](_0x2b474e[_0x46e100(0x109)][_0x46e100(0xf6)]),void 0x0,!0x1,[]),[_0xfd3e92,_0x82de6f]=_0x19c262[_0x46e100(0x124)](null),[_0x4130dc,_0x3907c5]=_0x19c262[_0x46e100(0x124)](_0x4c1ccf[_0x46e100(0x16c)]),_0xfbdf8c=_0x19c262[_0x46e100(0xac)](null);return _0x19c262[_0x46e100(0xe7)](()=>(_0x6ed1f7&&_0x297d98[_0x46e100(0xb3)](_0x6ed1f7['getUnitId']())[_0x46e100(0xe8)](_0x2c1f0a=>{var _0x469814=_0x46e100;_0x82de6f(_0x2c1f0a),_0xfbdf8c[_0x469814(0x190)]=_0x2c1f0a['status$'][_0x469814(0x11b)](_0x19299=>{_0x3907c5(_0x19299);});}),()=>{var _0xacecb4=_0x46e100,_0x395575;(_0x395575=_0xfbdf8c[_0xacecb4(0x190)])==null||_0x395575[_0xacecb4(0xfe)](),_0xfbdf8c[_0xacecb4(0x190)]=null;}),[_0x6ed1f7,_0x297d98]),_0xfd3e92?_0x5ed8ab[_0x46e100(0x15e)](_0x449b7f[_0x46e100(0xda)],{'align':_0x46e100(0x10d),'disabled':_0x4130dc===_0x4c1ccf[_0x46e100(0x18a)],'className':_0x46e100(0xcc),'overlay':_0x5ed8ab[_0x46e100(0x15e)](_0x13e213,{'status':_0x4130dc,'coordinator':_0xfd3e92}),'children':_0x5ed8ab[_0x46e100(0x15e)](_0x46e100(0x170),{'className':_0x449b7f[_0x46e100(0x188)](_0x46e100(0xbb),{'univer-cursor-not-allowed':_0x4130dc===_0x4c1ccf['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4130dc!==_0x4c1ccf[_0x46e100(0x18a)]}),'type':_0x46e100(0x170),'children':_0x5ed8ab[_0x46e100(0x15e)](_0x34a692,{'className':'univer-size-4'})})}):null;}function _0x13e213(_0x8f24b5){var _0x5a3727=_0x450e7f;const {status:_0x400e66,coordinator:_0x4ad583}=_0x8f24b5;switch(_0x400e66){case _0x4c1ccf[_0x5a3727(0x16c)]:return _0x5ed8ab[_0x5a3727(0x15e)](_0x71451f,{'coordinator':_0x4ad583});case _0x4c1ccf[_0x5a3727(0x12c)]:return _0x5ed8ab['jsx'](_0x2a5fc6,{'coordinator':_0x4ad583});case _0x4c1ccf['NOT_FOLLOWING']:return _0x5ed8ab[_0x5a3727(0x15e)](_0x33f422,{'coordinator':_0x4ad583});case _0x4c1ccf[_0x5a3727(0x18a)]:return _0x5ed8ab['jsx'](_0x360507,{});case _0x4c1ccf['PRESENTING']:return _0x5ed8ab['jsx'](_0x103003,{'coordinator':_0x4ad583});default:return null;}}function _0x71451f(_0x35470e){var _0x1adf61=_0x450e7f;const {coordinator:_0xad3020}=_0x35470e;return _0x5ed8ab['jsxs'](_0x5ed8ab[_0x1adf61(0x12b)],{'children':[_0x5ed8ab[_0x1adf61(0x15e)](_0x1adf61(0x189),{'className':_0x1adf61(0xea),'children':_0x1adf61(0x132)}),_0x5ed8ab['jsx'](_0x449b7f[_0x1adf61(0x179)],{'onClick':()=>_0xad3020[_0x1adf61(0xd8)](),'children':_0x1adf61(0xdd)})]});}function _0x2a5fc6(_0x3ae576){var _0x16f713=_0x450e7f;const {coordinator:_0x17ce6f}=_0x3ae576;return _0x5ed8ab[_0x16f713(0xa0)](_0x5ed8ab[_0x16f713(0x12b)],{'children':[_0x5ed8ab[_0x16f713(0x15e)](_0x16f713(0x189),{'className':_0x16f713(0xea),'children':_0x16f713(0x195)}),_0x5ed8ab[_0x16f713(0x15e)](_0x449b7f[_0x16f713(0x179)],{'onClick':()=>_0x17ce6f[_0x16f713(0xf1)](),'children':_0x16f713(0x12a)})]});}function _0x33f422(_0x3ca8e5){var _0x4bd3c2=_0x450e7f;const {coordinator:_0x592aca}=_0x3ca8e5;return _0x5ed8ab[_0x4bd3c2(0xa0)](_0x5ed8ab[_0x4bd3c2(0x12b)],{'children':[_0x5ed8ab['jsx'](_0x4bd3c2(0x189),{'className':_0x4bd3c2(0xea),'children':_0x4bd3c2(0x150)}),_0x5ed8ab[_0x4bd3c2(0x15e)](_0x449b7f[_0x4bd3c2(0x179)],{'variant':_0x4bd3c2(0x14d),'onClick':()=>_0x592aca[_0x4bd3c2(0x180)](),'children':_0x4bd3c2(0x169)})]});}function _0x103003(_0xa73907){var _0x41e2d4=_0x450e7f;const {coordinator:_0x4f3843}=_0xa73907;return _0x5ed8ab[_0x41e2d4(0xa0)](_0x5ed8ab[_0x41e2d4(0x12b)],{'children':[_0x5ed8ab['jsx'](_0x41e2d4(0x189),{'className':_0x41e2d4(0xea),'children':_0x41e2d4(0xad)}),_0x5ed8ab[_0x41e2d4(0x15e)](_0x449b7f[_0x41e2d4(0x179)],{'variant':_0x41e2d4(0xe2),'onClick':()=>_0x4f3843['stopPresenting'](),'children':_0x41e2d4(0x160)})]});}function _0x360507(){var _0x32c106=_0x450e7f;return _0x5ed8ab['jsx'](_0x5ed8ab[_0x32c106(0x12b)],{'children':_0x32c106(0xc2)});}var _0x192d5a=Object[_0x450e7f(0x191)],_0xcab7d9=(_0x129da8,_0x1666be,_0x37e49d,_0xe7728d)=>{var _0x545c00=_0x450e7f;for(var _0x1d444e=_0xe7728d>0x1?void 0x0:_0xe7728d?_0x192d5a(_0x1666be,_0x37e49d):_0x1666be,_0x47eed6=_0x129da8[_0x545c00(0xf8)]-0x1,_0x3bc2fa;_0x47eed6>=0x0;_0x47eed6--)(_0x3bc2fa=_0x129da8[_0x47eed6])&&(_0x1d444e=_0x3bc2fa(_0x1d444e)||_0x1d444e);return _0x1d444e;},_0x38ccc4=(_0x185960,_0x19eb32)=>(_0x45a578,_0x1325b9)=>_0x19eb32(_0x45a578,_0x1325b9,_0x185960);_0x2ae9b9['DesktopLiveShareController']=class extends _0x2b474e[_0x450e7f(0x131)]{constructor(_0x510547,_0x19d7fe){var _0xe48a11=_0x450e7f;super(),this['_injector']=_0x510547,this[_0xe48a11(0x111)]=_0x19d7fe,this[_0xe48a11(0x18c)]();}[_0x450e7f(0x18c)](){var _0x37e00d=_0x450e7f;this[_0x37e00d(0x18b)](this['_uiPartsService'][_0x37e00d(0xa2)](_0x29bae6[_0x37e00d(0x144)][_0x37e00d(0xcd)],()=>_0x29bae6[_0x37e00d(0x159)](_0x44e069,this[_0x37e00d(0xf5)])));}},_0x2ae9b9[_0x450e7f(0xc7)]=_0xcab7d9([_0x38ccc4(0x0,_0x2b474e[_0x450e7f(0x108)](_0x2b474e[_0x450e7f(0xb1)])),_0x38ccc4(0x1,_0x29bae6[_0x450e7f(0x13b)])],_0x2ae9b9['DesktopLiveShareController']);var _0x101e53=Object[_0x450e7f(0x163)],_0x4265a8=Object[_0x450e7f(0x191)],_0x14de8b=(_0x2b6bd2,_0x3bd292,_0x327b53)=>_0x3bd292 in _0x2b6bd2?_0x101e53(_0x2b6bd2,_0x3bd292,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x327b53}):_0x2b6bd2[_0x3bd292]=_0x327b53,_0xe653d4=(_0x1576aa,_0x7fcffa,_0x596565,_0x114869)=>{var _0x80369b=_0x450e7f;for(var _0x2bc716=_0x114869>0x1?void 0x0:_0x114869?_0x4265a8(_0x7fcffa,_0x596565):_0x7fcffa,_0x5eea43=_0x1576aa[_0x80369b(0xf8)]-0x1,_0x2767d2;_0x5eea43>=0x0;_0x5eea43--)(_0x2767d2=_0x1576aa[_0x5eea43])&&(_0x2bc716=_0x2767d2(_0x2bc716)||_0x2bc716);return _0x2bc716;},_0x5f1a60=(_0x28f1e8,_0x2c80d5)=>(_0x22b764,_0x2e7b1e)=>_0x2c80d5(_0x22b764,_0x2e7b1e,_0x28f1e8),_0x3c8614=(_0x4dc510,_0x518946,_0x24fefb)=>_0x14de8b(_0x4dc510,typeof _0x518946!=_0x450e7f(0x15b)?_0x518946+'':_0x518946,_0x24fefb);const _0xbb4d77=_0x450e7f(0x104);_0x2ae9b9[_0x450e7f(0xfc)]=class extends _0x2b474e[_0x450e7f(0x16b)]{constructor(_0x5c7bef=_0x5152d0,_0x299436,_0xf8747){var _0x3873b9=_0x450e7f;super(),this[_0x3873b9(0x100)]=_0x5c7bef,this[_0x3873b9(0xf5)]=_0x299436,this[_0x3873b9(0x149)]=_0xf8747;const {..._0x1c157c}=_0x2b474e[_0x3873b9(0x12f)]({},_0x5152d0,this['_config']);this[_0x3873b9(0x149)][_0x3873b9(0x13f)](_0x27a9a8,_0x1c157c);}[_0x450e7f(0xff)](){var _0x5a3239=_0x450e7f;_0x2b474e[_0x5a3239(0xdf)](this['_injector'],_0x2b474e[_0x5a3239(0x101)]([[_0x187d0d],[_0x2ae9b9['LiveShareController']],[_0x8375be],[_0x2ae9b9[_0x5a3239(0xc7)]]],this[_0x5a3239(0x100)]['override'])),_0x2b474e[_0x5a3239(0x10c)](this[_0x5a3239(0xf5)],[[_0x8375be]]);}['onRendered'](){var _0x7958f0=_0x450e7f;_0x2b474e[_0x7958f0(0x10c)](this[_0x7958f0(0xf5)],[[_0x2ae9b9[_0x7958f0(0xc7)]]]);}},_0x3c8614(_0x2ae9b9['UniverLiveSharePlugin'],'type',_0x2b474e['UniverInstanceType']['UNIVER_UNKNOWN']),_0x3c8614(_0x2ae9b9[_0x450e7f(0xfc)],'pluginName',_0xbb4d77),_0x2ae9b9['UniverLiveSharePlugin']=_0xe653d4([_0x2b474e['DependentOn'](_0x4803b3[_0x450e7f(0x102)]),_0x5f1a60(0x1,_0x2b474e[_0x450e7f(0x108)](_0x2b474e[_0x450e7f(0xb1)])),_0x5f1a60(0x2,_0x2b474e[_0x450e7f(0x143)])],_0x2ae9b9[_0x450e7f(0xfc)]),_0x2ae9b9[_0x450e7f(0xdb)]=_0x44e069,_0x2ae9b9[_0x450e7f(0xb9)]=_0x187d0d,_0x2ae9b9[_0x450e7f(0xa3)]=_0x4c1ccf,Object[_0x450e7f(0x163)](_0x2ae9b9,Symbol[_0x450e7f(0xd9)],{'value':_0x450e7f(0x135)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.7.0-nightly.
|
|
3
|
+
"version": "0.7.0-nightly.202505201607",
|
|
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.3.24",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.7.0-nightly.
|
|
51
|
-
"@univerjs/
|
|
52
|
-
"@univerjs/
|
|
53
|
-
"@univerjs/sheets": "0.7.0-nightly.
|
|
54
|
-
"@univerjs/ui": "0.7.0-nightly.
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs
|
|
50
|
+
"@univerjs-pro/collaboration": "0.7.0-nightly.202505201607",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.7.0-nightly.202505201607",
|
|
52
|
+
"@univerjs/core": "0.7.0-nightly.202505201607",
|
|
53
|
+
"@univerjs/sheets": "0.7.0-nightly.202505201607",
|
|
54
|
+
"@univerjs/sheets-ui": "0.7.0-nightly.202505201607",
|
|
55
|
+
"@univerjs/ui": "0.7.0-nightly.202505201607",
|
|
56
|
+
"@univerjs/design": "0.7.0-nightly.202505201607"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.3",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"typescript": "^5.8.3",
|
|
64
64
|
"vite": "^6.3.5",
|
|
65
65
|
"vitest": "^3.1.3",
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs
|
|
66
|
+
"@univerjs-infra/shared": "0.7.0",
|
|
67
|
+
"@univerjs/protocol": "0.1.46-alpha.3"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"test": "vitest run",
|