@univerjs-pro/live-share 0.8.0-nightly.202505261607 → 0.8.0-nightly.202505271607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x4b1002=_0x50ba;(function(_0xb2d5f7,_0x148349){var _0x3f64b2=_0x50ba,_0x1f66ae=_0xb2d5f7();while(!![]){try{var _0x3e3940=-parseInt(_0x3f64b2(0x13e))/0x1+-parseInt(_0x3f64b2(0x16b))/0x2*(-parseInt(_0x3f64b2(0x147))/0x3)+parseInt(_0x3f64b2(0xb2))/0x4*(-parseInt(_0x3f64b2(0xd3))/0x5)+-parseInt(_0x3f64b2(0x12f))/0x6*(parseInt(_0x3f64b2(0x9f))/0x7)+-parseInt(_0x3f64b2(0x109))/0x8*(parseInt(_0x3f64b2(0x127))/0x9)+-parseInt(_0x3f64b2(0x10b))/0xa+-parseInt(_0x3f64b2(0x113))/0xb*(-parseInt(_0x3f64b2(0x16a))/0xc);if(_0x3e3940===_0x148349)break;else _0x1f66ae['push'](_0x1f66ae['shift']());}catch(_0x45cb43){_0x1f66ae['push'](_0x1f66ae['shift']());}}}(_0x24c7,0x5fa60));var U=Object['defineProperty'],F=(_0x49c8cf,_0x551bbb,_0xb36741)=>_0x551bbb in _0x49c8cf?U(_0x49c8cf,_0x551bbb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb36741}):_0x49c8cf[_0x551bbb]=_0xb36741,v=(_0x16191a,_0x17b476,_0x5d5688)=>F(_0x16191a,typeof _0x17b476!=_0x4b1002(0xd0)?_0x17b476+'':_0x17b476,_0x5d5688);Object['defineProperty'](exports,Symbol[_0x4b1002(0x116)],{'value':_0x4b1002(0x122)});function _0x24c7(){var _0x58083f=['has','ONLINE','rxjs','parseProtocolChangeset','Start','_status$','_startPresenting','854qSQRDD','get','assign','@univerjs-pro/collaboration','_commandDisposable','toDisposable','_entities','parse','LIVESHARE_FETCH_OPERATIONS','_unitID','substring','_mountLiveShare','useState','svg','data','live-share.config','div','add','complete','1060aSTtCr','default','IDLE','entries','_reporters','BuiltInUIPart','then','Subject','event$','indexOf','_presenter','url(#$1','defineProperty','_startLiveShareCoordinator','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','colorChannel1','unsubscribe','SetZoomRatioOperation','onRendered','_univerInstanceService','PRESENTING','Dropdown','mergeOverrideWithDependencies','setConfig','NOT_FOLLOWING','IUIPartsService','CollaborationEvent','LiveShareService','stopFollowing','registerDependencies','symbol','find','_fetchOperations','9565vTVTMs','delete','params','map','use','status$','set','LIVESHARE_NEW_HOST','You\x27re\x20following\x20the\x20presenter','getCurrentTypeOfUnit$','not-following','@univerjs-pro/collaboration-client','UniverLiveSharePlugin','current','1em','_liveShareService','hasOwnProperty','pipe','idSuffix','_commandService','react','forwardRef','@univerjs/sheets-ui','LIVESHARE_REQUEST_HOST','getTypeOfUnitAdded$','DisposableCollection','idle','IConfigService','OPERATION','_collabSession','LIVESHARE_OPERATION','sessionStatus$','_handleOperation','getValue','currentColor','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','_uiPartsService','attrs','useObservable','length','trim','IUniverInstanceService','connectInjector','LIVESHARE_TERMINATE','getInitialStates','live-share-single','OFFLINE','none','RxDisposable','replace','mask','offline','DesktopLiveShareController','Injector','21632gsFtXw','subscribe','2470990CRmZhX','LiveShare','path','createInstance','takeUntil','type','_stopFollowing','_init','125939HcelUa','react/jsx-runtime','jsxs','toStringTag','univerjs-icon\x20univerjs-icon-','UNIVER_SHEET','CollaborationSessionService','useEffect','ICommandService','includes','dispose$','call','fill','_handleOnline','InsertSheetMutation','Module','getLiveShareCoordinator','stringify','xlink:href','clear','936FxztMh','UniverInstanceType','concat','override','getConfig','registerSharedOperation','mutations','UNIVER_UNKNOWN','11010thGEIj','Inject','BehaviorSubject','getTypeOfUnitDisposed$','SetWorksheetActiveOperation','_stopPresenting','_sharedOperations','useRef','startFollowing','_config','next','Disposable','evenodd','string','getOwnPropertySymbols','488392zNkyOy','random','forEach','toString','LiveShareController','You\x27re\x20presenting\x20the\x20document','defs','icon','extend','130689yoptlc','You\x27are\x20offline.','_configService','getMemberID','getUnitId','FOLLOWING','reverse','univer-w-full\x20univer-mb-3\x20univer-text-sm','SessionStatus','defIds','children','useDependency','touchDependencies','0\x200\x2016\x2016','_injector','LiveShareStatus','Fragment','unitId','dispose','sheet','onCommandExecuted','tryStartPresenting','presenter','_handleNewHost','getOwnPropertyDescriptor','presenting','Button','executeCommand','Present\x20this\x20document','function','_handleTerminate','_status','_beIdle','@univerjs/core','LiveShareCoordinator','1740gweHiS','22OjfSVX','onStarting','following','className','HEADER_MENU','send','_startFollowing','tag','clsx','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','requireSession','Stop\x20following','Start\x20following','createElement','shouldShareOperation','stopPresenting','Stop\x20presenting','disposeWithMe','jsx','init'];_0x24c7=function(){return _0x58083f;};return _0x24c7();}const m=require(_0x4b1002(0xde)),o=require(_0x4b1002(0x168)),C=require('@univerjs/sheets'),D=require(_0x4b1002(0xe9)),p=require('@univerjs/ui'),l=require(_0x4b1002(0x114)),g=require('@univerjs/design'),f=require(_0x4b1002(0xe7)),_=require(_0x4b1002(0xa2)),x=require(_0x4b1002(0x9a)),b=require('rxjs/operators'),$=_0x4b1002(0xae),L={};class E extends o[_0x4b1002(0x13a)]{constructor(){super(...arguments),v(this,'_sharedOperations',new Set()),v(this,'_reporters',new Set());}['registerSharedOperation'](_0x159915){var _0x2d0f29=_0x4b1002;return this['_sharedOperations'][_0x2d0f29(0xb0)](_0x159915),o[_0x2d0f29(0xa4)](()=>this[_0x2d0f29(0x135)][_0x2d0f29(0xd4)](_0x159915));}['registerInitialStateReporter'](_0x41dc9b){var _0x29c3bb=_0x4b1002;return this[_0x29c3bb(0xb6)][_0x29c3bb(0xb0)](_0x41dc9b),o[_0x29c3bb(0xa4)](()=>this[_0x29c3bb(0xb6)][_0x29c3bb(0xd4)](_0x41dc9b));}[_0x4b1002(0x92)](_0x53e356){var _0x3a77a6=_0x4b1002;return this[_0x3a77a6(0x135)]['has'](_0x53e356);}[_0x4b1002(0xff)](_0x4ef7a){var _0x6fb6da=_0x4b1002;return Array['from'](this[_0x6fb6da(0xb6)])[_0x6fb6da(0xd6)](_0x17702c=>_0x17702c(_0x4ef7a));}}var H=Object['getOwnPropertyDescriptor'],V=(_0x561aa4,_0x47ed67,_0xbbf886,_0x288490)=>{var _0x5a2cfb=_0x4b1002;for(var _0x46e29d=_0x288490>0x1?void 0x0:_0x288490?H(_0x47ed67,_0xbbf886):_0x47ed67,_0x580f1e=_0x561aa4[_0x5a2cfb(0xfa)]-0x1,_0x54f43c;_0x580f1e>=0x0;_0x580f1e--)(_0x54f43c=_0x561aa4[_0x580f1e])&&(_0x46e29d=_0x54f43c(_0x46e29d)||_0x46e29d);return _0x46e29d;},k=(_0x4cc780,_0x4b89a6)=>(_0x4787d8,_0x28c680)=>_0x4b89a6(_0x4787d8,_0x28c680,_0x4cc780);let O=class extends o[_0x4b1002(0x13a)]{constructor(_0x139b40){var _0x38d6dd=_0x4b1002;super(),this[_0x38d6dd(0xe2)]=_0x139b40,this[_0x38d6dd(0x112)]();}[_0x4b1002(0x112)](){var _0x32f7a8=_0x4b1002;[D[_0x32f7a8(0xc3)]['id'],D['SetScrollOperation']['id'],C['SetWorksheetActiveOperation']['id']][_0x32f7a8(0x140)](_0x3badfc=>{var _0x4b4cd4=_0x32f7a8;this['disposeWithMe'](this[_0x4b4cd4(0xe2)][_0x4b4cd4(0x12c)](_0x3badfc));});}};O=V([k(0x0,o['Inject'](E))],O);var u=function(){var _0x52dd2f=_0x4b1002;return u=Object[_0x52dd2f(0xa1)]||function(_0x14dcfc){var _0x4df929=_0x52dd2f;for(var _0xed6f9c,_0x5c9137=0x1,_0xf6c599=arguments[_0x4df929(0xfa)];_0x5c9137<_0xf6c599;_0x5c9137++){_0xed6f9c=arguments[_0x5c9137];for(var _0x570ca3 in _0xed6f9c)Object['prototype']['hasOwnProperty'][_0x4df929(0x11e)](_0xed6f9c,_0x570ca3)&&(_0x14dcfc[_0x570ca3]=_0xed6f9c[_0x570ca3]);}return _0x14dcfc;},u['apply'](this,arguments);},M=function(_0xcd150c,_0x2e46dc){var _0xd1613e=_0x4b1002,_0x6f1ef3={};for(var _0x1c82d9 in _0xcd150c)Object['prototype'][_0xd1613e(0xe3)][_0xd1613e(0x11e)](_0xcd150c,_0x1c82d9)&&_0x2e46dc[_0xd1613e(0xbb)](_0x1c82d9)<0x0&&(_0x6f1ef3[_0x1c82d9]=_0xcd150c[_0x1c82d9]);if(_0xcd150c!=null&&typeof Object[_0xd1613e(0x13d)]==_0xd1613e(0x164)){for(var _0x471fb7=0x0,_0x1c82d9=Object[_0xd1613e(0x13d)](_0xcd150c);_0x471fb7<_0x1c82d9[_0xd1613e(0xfa)];_0x471fb7++)_0x2e46dc[_0xd1613e(0xbb)](_0x1c82d9[_0x471fb7])<0x0&&Object['prototype']['propertyIsEnumerable'][_0xd1613e(0x11e)](_0xcd150c,_0x1c82d9[_0x471fb7])&&(_0x6f1ef3[_0x1c82d9[_0x471fb7]]=_0xcd150c[_0x1c82d9[_0x471fb7]]);}return _0x6f1ef3;},j=f[_0x4b1002(0xe8)](function(_0x3698df,_0x55e2f6){var _0x14ca94=_0x4b1002,_0x5ac5da=_0x3698df['icon'],_0x48283b=_0x3698df['id'],_0x23c34c=_0x3698df['className'],_0x55e185=_0x3698df[_0x14ca94(0x146)],_0x3ca478=M(_0x3698df,[_0x14ca94(0x145),'id',_0x14ca94(0x16e),'extend']),_0x5ce19b=_0x14ca94(0x117)[_0x14ca94(0x129)](_0x48283b,'\x20')[_0x14ca94(0x129)](_0x23c34c||'')[_0x14ca94(0xfb)](),_0x4a9b0e=f['useRef']('_'[_0x14ca94(0x129)](G()));return y(_0x5ac5da,''[_0x14ca94(0x129)](_0x48283b),{'defIds':_0x5ac5da['defIds'],'idSuffix':_0x4a9b0e[_0x14ca94(0xe0)]},u({'ref':_0x55e2f6,'className':_0x5ce19b},_0x3ca478),_0x55e185);});function y(_0x2326b3,_0x1c60b8,_0x5c6890,_0x538a80,_0x1b3c13){var _0x203ee8=_0x4b1002;return f[_0x203ee8(0x91)](_0x2326b3[_0x203ee8(0x172)],u(u({'key':_0x1c60b8},q(_0x2326b3,_0x5c6890,_0x1b3c13)),_0x538a80),(W(_0x2326b3,_0x5c6890)[_0x203ee8(0x151)]||[])[_0x203ee8(0xd6)](function(_0x1ef5f0,_0xca366){var _0x5101cf=_0x203ee8;return y(_0x1ef5f0,''[_0x5101cf(0x129)](_0x1c60b8,'-')[_0x5101cf(0x129)](_0x2326b3['tag'],'-')[_0x5101cf(0x129)](_0xca366),_0x5c6890,void 0x0,_0x1b3c13);}));}function q(_0xffbb5f,_0x1f27dc,_0xbb86c4){var _0x4c66c2=_0x4b1002,_0x9773b9=u({},_0xffbb5f[_0x4c66c2(0xf8)]);_0xbb86c4!=null&&_0xbb86c4['colorChannel1']&&_0x9773b9[_0x4c66c2(0x11f)]==='colorChannel1'&&(_0x9773b9['fill']=_0xbb86c4[_0x4c66c2(0xc1)]),_0xffbb5f[_0x4c66c2(0x172)]===_0x4c66c2(0x105)&&_0x9773b9['id']&&(_0x9773b9['id']=_0x9773b9['id']+_0x1f27dc[_0x4c66c2(0xe5)]),Object[_0x4c66c2(0xb5)](_0x9773b9)[_0x4c66c2(0x140)](function(_0x514b11){var _0x42f136=_0x4c66c2,_0x523950=_0x514b11[0x0],_0x2795ed=_0x514b11[0x1];_0x523950===_0x42f136(0x105)&&typeof _0x2795ed==_0x42f136(0x13c)&&(_0x9773b9[_0x523950]=_0x2795ed[_0x42f136(0x104)](/url\(#(.*)\)/,_0x42f136(0xbd)[_0x42f136(0x129)](_0x1f27dc[_0x42f136(0xe5)],')')));});var _0x4864fa=_0x1f27dc['defIds'];return!_0x4864fa||_0x4864fa[_0x4c66c2(0xfa)]===0x0||(_0xffbb5f[_0x4c66c2(0x172)]===_0x4c66c2(0xd7)&&_0x9773b9['xlink:href']&&(_0x9773b9[_0x4c66c2(0x125)]=_0x9773b9[_0x4c66c2(0x125)]+_0x1f27dc[_0x4c66c2(0xe5)]),Object['entries'](_0x9773b9)[_0x4c66c2(0x140)](function(_0x328345){var _0x29cf53=_0x4c66c2,_0x307f5e=_0x328345[0x0],_0x4e5276=_0x328345[0x1];typeof _0x4e5276==_0x29cf53(0x13c)&&(_0x9773b9[_0x307f5e]=_0x4e5276[_0x29cf53(0x104)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x1f27dc['idSuffix'],')')));})),_0x9773b9;}function W(_0x5075cc,_0xcaa3b5){var _0x2e9607=_0x4b1002,_0xf76c1,_0x104c39=_0xcaa3b5[_0x2e9607(0x150)];return!_0x104c39||_0x104c39[_0x2e9607(0xfa)]===0x0?_0x5075cc:_0x5075cc[_0x2e9607(0x172)]===_0x2e9607(0x144)&&(!((_0xf76c1=_0x5075cc[_0x2e9607(0x151)])===null||_0xf76c1===void 0x0)&&_0xf76c1['length'])?u(u({},_0x5075cc),{'children':_0x5075cc[_0x2e9607(0x151)]['map'](function(_0x201f9b){var _0x4780eb=_0x2e9607;return typeof _0x201f9b['attrs']['id']==_0x4780eb(0x13c)&&_0x104c39&&_0x104c39['indexOf'](_0x201f9b[_0x4780eb(0xf8)]['id'])>-0x1?u(u({},_0x201f9b),{'attrs':u(u({},_0x201f9b[_0x4780eb(0xf8)]),{'id':_0x201f9b[_0x4780eb(0xf8)]['id']+_0xcaa3b5[_0x4780eb(0xe5)]})}):_0x201f9b;})}):_0x5075cc;}function G(){var _0x108e2e=_0x4b1002;return Math[_0x108e2e(0x13f)]()[_0x108e2e(0x141)](0x24)[_0x108e2e(0xa9)](0x2,0x8);}j['displayName']='UniverIcon';var B={'tag':_0x4b1002(0xac),'attrs':{'fill':_0x4b1002(0x102),'viewBox':_0x4b1002(0x154),'width':_0x4b1002(0xe1),'height':_0x4b1002(0xe1)},'children':[{'tag':_0x4b1002(0x10d),'attrs':{'fill':_0x4b1002(0xf5),'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':_0x4b1002(0x10d),'attrs':{'fill':'currentColor','d':_0x4b1002(0x8d),'fillRule':'evenodd','clipRule':_0x4b1002(0x13b)}}]},P=f[_0x4b1002(0xe8)](function(_0x22855c,_0x1e03ca){var _0x5ec2af=_0x4b1002;return f[_0x5ec2af(0x91)](j,Object['assign']({},_0x22855c,{'id':_0x5ec2af(0x100),'ref':_0x1e03ca,'icon':B}));});P['displayName']='LiveShareSingle';var Y=Object['getOwnPropertyDescriptor'],R=(_0x349bb8,_0x477776,_0x40eaea,_0xaea08b)=>{var _0xe55d96=_0x4b1002;for(var _0x25c3ef=_0xaea08b>0x1?void 0x0:_0xaea08b?Y(_0x477776,_0x40eaea):_0x477776,_0xaf28=_0x349bb8[_0xe55d96(0xfa)]-0x1,_0x3cbf0b;_0xaf28>=0x0;_0xaf28--)(_0x3cbf0b=_0x349bb8[_0xaf28])&&(_0x25c3ef=_0x3cbf0b(_0x25c3ef)||_0x25c3ef);return _0x25c3ef;},S=(_0x4f9050,_0x13f18d)=>(_0x270ed2,_0x530001)=>_0x13f18d(_0x270ed2,_0x530001,_0x4f9050);exports[_0x4b1002(0x142)]=class extends o[_0x4b1002(0x103)]{constructor(_0x434154,_0x5c841a,_0x36670c){var _0x4e7383=_0x4b1002;super(),v(this,'_entities',new Map()),(this[_0x4e7383(0xc5)]=_0x434154,this[_0x4e7383(0x155)]=_0x5c841a,this['_collabSessionService']=_0x36670c,this[_0x4e7383(0x112)]());}async[_0x4b1002(0x123)](_0x57490a){var _0x4957a1=_0x4b1002;return this['_entities']['has'](_0x57490a)||await this['_startLiveShareCoordinator'](_0x57490a),this[_0x4957a1(0xa5)][_0x4957a1(0xa0)](_0x57490a);}[_0x4b1002(0x112)](){var _0x4b944f=_0x4b1002;this[_0x4b944f(0xc5)][_0x4b944f(0xeb)](o[_0x4b944f(0x128)][_0x4b944f(0x118)])[_0x4b944f(0xe4)](b[_0x4b944f(0x10f)](this[_0x4b944f(0x11d)]))[_0x4b944f(0x10a)](async _0x7a561b=>{var _0x152863=_0x4b944f;const _0x226ff6=_0x7a561b[_0x152863(0x14b)]();this[_0x152863(0xa5)][_0x152863(0x98)](_0x226ff6)||this[_0x152863(0xbf)](_0x226ff6);}),this[_0x4b944f(0xc5)][_0x4b944f(0x132)](o[_0x4b944f(0x128)]['UNIVER_SHEET'])[_0x4b944f(0xe4)](b[_0x4b944f(0x10f)](this[_0x4b944f(0x11d)]))[_0x4b944f(0x10a)](_0x8a9498=>{var _0x28c879=_0x4b944f;const _0x2f7e37=_0x8a9498['getUnitId'](),_0x2074d0=this[_0x28c879(0xa5)][_0x28c879(0xa0)](_0x2f7e37);_0x2074d0==null||_0x2074d0[_0x28c879(0x159)]();});}async[_0x4b1002(0xbf)](_0x11a271){var _0x4a2bf1=_0x4b1002;const _0x5a510e=await this['_collabSessionService'][_0x4a2bf1(0x8e)](_0x11a271),_0x59026d=this[_0x4a2bf1(0x155)][_0x4a2bf1(0x10e)](exports[_0x4a2bf1(0x169)],_0x11a271,_0x5a510e);return _0x59026d[_0x4a2bf1(0x97)](),this[_0x4a2bf1(0xa5)][_0x4a2bf1(0xd9)](_0x11a271,_0x59026d),_0x59026d;}},exports[_0x4b1002(0x142)]=R([S(0x0,o[_0x4b1002(0xfc)]),S(0x1,o[_0x4b1002(0x130)](o[_0x4b1002(0x108)])),S(0x2,o['Inject'](m[_0x4b1002(0x119)]))],exports[_0x4b1002(0x142)]);var h=(_0x1d84b7=>(_0x1d84b7[_0x4b1002(0x101)]=_0x4b1002(0x106),_0x1d84b7['IDLE']=_0x4b1002(0xed),_0x1d84b7['FOLLOWING']=_0x4b1002(0x16d),_0x1d84b7[_0x4b1002(0xca)]=_0x4b1002(0xdd),_0x1d84b7[_0x4b1002(0xc6)]=_0x4b1002(0x160),_0x1d84b7))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports['LiveShareCoordinator']=class extends o['RxDisposable']{constructor(_0x3885d1,_0x550a63,_0x5c3920,_0x185602,_0x429cdd){var _0x417ca2=_0x4b1002;super(),v(this,_0x417ca2(0x9d),new x[(_0x417ca2(0x131))](_0x417ca2(0xed))),v(this,_0x417ca2(0xd8),this[_0x417ca2(0x9d)]['asObservable']()),v(this,'_init',!0x1),v(this,_0x417ca2(0xa3),null),v(this,_0x417ca2(0xbc),null),(this['_unitID']=_0x3885d1,this[_0x417ca2(0xf0)]=_0x550a63,this[_0x417ca2(0x149)]=_0x5c3920,this['_liveShareService']=_0x185602,this[_0x417ca2(0xe6)]=_0x429cdd);}get['_status'](){var _0x5e37b4=_0x4b1002;return this[_0x5e37b4(0x9d)][_0x5e37b4(0xf4)]();}[_0x4b1002(0x159)](){var _0x21baae=_0x4b1002,_0x128e71;(_0x128e71=this[_0x21baae(0xa3)])==null||_0x128e71[_0x21baae(0x159)](),this[_0x21baae(0x9d)][_0x21baae(0x139)](_0x21baae(0xed)),this[_0x21baae(0x9d)][_0x21baae(0xb1)]();}[_0x4b1002(0x97)](){var _0xe8f45a=_0x4b1002;this[_0xe8f45a(0x112)]||(this['_init']=!0x0,this[_0xe8f45a(0xf0)][_0xe8f45a(0xf2)][_0xe8f45a(0xe4)](b['takeUntil'](this[_0xe8f45a(0x11d)]))[_0xe8f45a(0x10a)](_0x3a0e47=>{var _0x22112b=_0xe8f45a;switch(_0x3a0e47){case m[_0x22112b(0x14f)][_0x22112b(0x101)]:this['_handleOffline']();break;case m[_0x22112b(0x14f)][_0x22112b(0x99)]:this[_0x22112b(0x120)]();break;}}),this[_0xe8f45a(0xf0)][_0xe8f45a(0xba)][_0xe8f45a(0xe4)](b[_0xe8f45a(0x10f)](this[_0xe8f45a(0x11d)]))[_0xe8f45a(0x10a)](_0x4b84c4=>{var _0x4ac4e5=_0xe8f45a;const {eventID:_0xfee18c}=_0x4b84c4;switch(_0xfee18c){case _['CollaborationEvent'][_0x4ac4e5(0xda)]:this[_0x4ac4e5(0x15e)](_0x4b84c4);break;case _[_0x4ac4e5(0xcc)][_0x4ac4e5(0xf1)]:this['_handleOperation'](_0x4b84c4);break;case _['CollaborationEvent'][_0x4ac4e5(0xfe)]:this[_0x4ac4e5(0x165)]();break;case _[_0x4ac4e5(0xcc)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x4b84c4);break;}}));}[_0x4b1002(0x15c)](){var _0x2ffa87=_0x4b1002;this['_collabSession'][_0x2ffa87(0x170)]({'eventID':_[_0x2ffa87(0xcc)][_0x2ffa87(0xea)],'data':{'unitID':this[_0x2ffa87(0xa8)],'userID':this['_collabSession'][_0x2ffa87(0x14a)]()}},this[_0x2ffa87(0xa8)]);}[_0x4b1002(0x93)](){var _0x28cbd7=_0x4b1002;this[_0x28cbd7(0x166)]===_0x28cbd7(0x160)&&(this[_0x28cbd7(0x9d)][_0x28cbd7(0x139)](_0x28cbd7(0xed)),this[_0x28cbd7(0xf0)]['send']({'eventID':_[_0x28cbd7(0xcc)][_0x28cbd7(0xfe)],'data':{'unitID':this[_0x28cbd7(0xa8)]}},this[_0x28cbd7(0xa8)]));}[_0x4b1002(0x137)](){var _0x2466b2=_0x4b1002;this[_0x2466b2(0x166)]===_0x2466b2(0xdd)&&(this[_0x2466b2(0x9d)][_0x2466b2(0x139)](_0x2466b2(0x16d)),this[_0x2466b2(0x171)]());}['stopFollowing'](){var _0x1aee31=_0x4b1002;this['_status']===_0x1aee31(0x16d)&&this[_0x1aee31(0x111)]();}[_0x4b1002(0x15e)](_0xa22cbf){var _0x3cc8e3=_0x4b1002;const {presenter:_0x28cb47}=_0xa22cbf[_0x3cc8e3(0xad)],_0x9f8ad1=this[_0x3cc8e3(0xf0)][_0x3cc8e3(0x14a)]();this[_0x3cc8e3(0xbc)]=_0x28cb47,_0x28cb47===_0x9f8ad1?(this['_stopFollowing'](),this[_0x3cc8e3(0x9e)]()):this[_0x3cc8e3(0x166)]!==_0x3cc8e3(0xdd)&&(this[_0x3cc8e3(0x134)](),this['_startFollowing']());}[_0x4b1002(0xd2)](){var _0x5b9a55=_0x4b1002;const _0x4991be={'eventID':_['CollaborationEvent'][_0x5b9a55(0xa7)]};this['_collabSession'][_0x5b9a55(0x170)](_0x4991be,this[_0x5b9a55(0xa8)]);}[_0x4b1002(0x165)](){var _0x137e6e=_0x4b1002;this['_presenter']=null,this[_0x137e6e(0x166)]!==_0x137e6e(0x160)&&this[_0x137e6e(0x167)]();}['_handleNewChangeSets'](_0x2adca8){var _0x352d98=_0x4b1002;if(this[_0x352d98(0x166)]==='following'&&this['_presenter']===_0x2adca8[_0x352d98(0xad)]['memberID']){const _0x41abbd=_[_0x352d98(0x9b)](_0x2adca8[_0x352d98(0xad)])[_0x352d98(0x12d)][_0x352d98(0x14d)]()[_0x352d98(0xd1)](_0x3dae7a=>_0x3dae7a['id']===C[_0x352d98(0x121)]['id']);if(_0x41abbd){const _0x41f525=_0x41abbd[_0x352d98(0xd5)][_0x352d98(0x158)],_0x32f259=_0x41abbd[_0x352d98(0xd5)][_0x352d98(0x15a)]['id'];setTimeout(()=>{var _0x5f33a3=_0x352d98;this[_0x5f33a3(0xe6)][_0x5f33a3(0x162)](C[_0x5f33a3(0x133)]['id'],{'unitId':_0x41f525,'subUnitId':_0x32f259},{'fromCollab':!0x0});});}}}[_0x4b1002(0x9e)](){var _0x21a603=_0x4b1002;this['_status$']['next'](_0x21a603(0x160));const _0x332ae9=new Map(),_0x13797b=this[_0x21a603(0xa3)]=new o[(_0x21a603(0xec))]();_0x13797b[_0x21a603(0xb0)](o['toDisposable'](()=>{var _0x2ae6c8=_0x21a603;_0x332ae9['forEach'](_0x2ffb9d=>_0x2ffb9d[_0x2ae6c8(0xb1)]()),_0x332ae9[_0x2ae6c8(0x126)]();})),_0x13797b['add'](this[_0x21a603(0xe6)][_0x21a603(0x15b)](_0x574b44=>{var _0x5bb2a2=_0x21a603,_0x2c03fa;if(_0x574b44[_0x5bb2a2(0x110)]!==o['CommandType'][_0x5bb2a2(0xef)]||!this['_liveShareService'][_0x5bb2a2(0x92)](_0x574b44['id']))return;const {id:_0x18ef4b}=_0x574b44;let _0x7cdde0;_0x332ae9[_0x5bb2a2(0x98)](_0x18ef4b)?_0x7cdde0=_0x332ae9[_0x5bb2a2(0xa0)](_0x18ef4b):(_0x7cdde0=new x[(_0x5bb2a2(0xb9))](),_0x332ae9[_0x5bb2a2(0xd9)](_0x18ef4b,_0x7cdde0),_0x7cdde0[_0x5bb2a2(0xe4)](b['throttleTime']((_0x2c03fa=this[_0x5bb2a2(0x149)][_0x5bb2a2(0x12b)](Z))!=null?_0x2c03fa:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5bb2a2(0x10a)](_0x4f4d83=>{var _0x5d2942=_0x5bb2a2;this['_collabSession'][_0x5d2942(0x170)]({'eventID':_['CollaborationEvent'][_0x5d2942(0xf1)],'data':{'unitID':this['_unitID'],'operations':{[_0x4f4d83['id']]:{'id':_0x4f4d83['id'],'params':JSON[_0x5d2942(0x124)](_0x4f4d83['params'])}}}},this['_unitID']);})),_0x7cdde0['next'](_0x574b44);})),this['_liveShareService'][_0x21a603(0xff)](this[_0x21a603(0xa8)])[_0x21a603(0x140)](_0x16282e=>this[_0x21a603(0xf0)][_0x21a603(0x170)]({'eventID':_[_0x21a603(0xcc)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x21a603(0xa8)],'operations':{[_0x16282e['id']]:{'id':_0x16282e['id'],'params':JSON[_0x21a603(0x124)](_0x16282e[_0x21a603(0xd5)])}}}},this[_0x21a603(0xa8)]));}[_0x4b1002(0x134)](){var _0x103f7d=_0x4b1002,_0x3399ea;this['_status$']['next'](_0x103f7d(0xed)),(_0x3399ea=this[_0x103f7d(0xa3)])==null||_0x3399ea['dispose'](),this[_0x103f7d(0xa3)]=null;}[_0x4b1002(0x171)](){var _0x1953c8=_0x4b1002,_0x444c6a;(_0x444c6a=this['_commandDisposable'])==null||_0x444c6a[_0x1953c8(0x159)](),this[_0x1953c8(0x9d)][_0x1953c8(0x139)](_0x1953c8(0x16d));}[_0x4b1002(0x167)](){var _0x25a48f=_0x4b1002,_0x2ab682;this[_0x25a48f(0x9d)][_0x25a48f(0x139)](_0x25a48f(0xed)),(_0x2ab682=this['_commandDisposable'])==null||_0x2ab682[_0x25a48f(0x159)](),this[_0x25a48f(0xa3)]=null;}[_0x4b1002(0x111)](){var _0x31903a=_0x4b1002,_0x448816;this['_status$'][_0x31903a(0x139)]('not-following'),(_0x448816=this[_0x31903a(0xa3)])==null||_0x448816['dispose']();}[_0x4b1002(0xf3)](_0x3deabb){var _0x4aa570=_0x4b1002;if([_0x4aa570(0x160),_0x4aa570(0xdd),'offline'][_0x4aa570(0x11c)](this[_0x4aa570(0x166)])||!_0x3deabb['data'][_0x4aa570(0x15d)]||_0x3deabb['data'][_0x4aa570(0x15d)]===this['_collabSession'][_0x4aa570(0x14a)]())return;this[_0x4aa570(0x166)]===_0x4aa570(0xed)&&this[_0x4aa570(0x171)]();const _0x42694f=_0x3deabb['data']['operations'];Object['values'](_0x42694f)[_0x4aa570(0x140)](_0x39fb7c=>{var _0x3d298d=_0x4aa570;this[_0x3d298d(0xe6)][_0x3d298d(0x162)](_0x39fb7c['id'],_0x39fb7c['params']?JSON[_0x3d298d(0xa6)](_0x39fb7c['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x18ae1b=_0x4b1002,_0x35865a;this[_0x18ae1b(0x9d)][_0x18ae1b(0x139)](_0x18ae1b(0x106)),(_0x35865a=this[_0x18ae1b(0xa3)])==null||_0x35865a[_0x18ae1b(0x159)]();}['_handleOnline'](){var _0x328790=_0x4b1002;this['_status$'][_0x328790(0x139)](_0x328790(0xed)),this[_0x328790(0xd2)]();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x4b1002(0xee)]),S(0x3,o[_0x4b1002(0x130)](E)),S(0x4,o[_0x4b1002(0x11b)])],exports['LiveShareCoordinator']);function A(){var _0x27cecc=_0x4b1002;const _0x40dcc9=p[_0x27cecc(0x152)](exports['LiveShareController']),_0x2066c8=p['useDependency'](o[_0x27cecc(0xfc)]),_0x21b836=p[_0x27cecc(0xf9)](()=>_0x2066c8[_0x27cecc(0xdc)](o[_0x27cecc(0x128)][_0x27cecc(0x118)]),void 0x0,!0x1,[]),[_0x5338ed,_0x1fb908]=f[_0x27cecc(0xab)](null),[_0x59abdc,_0xee89fb]=f['useState'](h[_0x27cecc(0xb4)]),_0x4494c7=f[_0x27cecc(0x136)](null);return f[_0x27cecc(0x11a)](()=>(_0x21b836&&_0x40dcc9[_0x27cecc(0x123)](_0x21b836[_0x27cecc(0x14b)]())[_0x27cecc(0xb8)](_0x57cdb7=>{var _0x1c8671=_0x27cecc;_0x1fb908(_0x57cdb7),_0x4494c7[_0x1c8671(0xe0)]=_0x57cdb7['status$'][_0x1c8671(0x10a)](_0x54e904=>{_0xee89fb(_0x54e904);});}),()=>{var _0x416881=_0x27cecc,_0x59b4a3;(_0x59b4a3=_0x4494c7['current'])==null||_0x59b4a3[_0x416881(0xc2)](),_0x4494c7[_0x416881(0xe0)]=null;}),[_0x21b836,_0x40dcc9]),_0x5338ed?l[_0x27cecc(0x96)](g[_0x27cecc(0xc7)],{'align':'end','disabled':_0x59abdc===h['OFFLINE'],'className':_0x27cecc(0xc0),'overlay':l[_0x27cecc(0x96)](K,{'status':_0x59abdc,'coordinator':_0x5338ed}),'children':l[_0x27cecc(0x96)]('button',{'className':g[_0x27cecc(0x173)](_0x27cecc(0xf6),{'univer-cursor-not-allowed':_0x59abdc===h[_0x27cecc(0x101)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x59abdc!==h[_0x27cecc(0x101)]}),'type':'button','children':l[_0x27cecc(0x96)](P,{'className':'univer-size-4'})})}):null;}function K(_0x562ed4){var _0x1b673d=_0x4b1002;const {status:_0x42cb99,coordinator:_0x22bfe6}=_0x562ed4;switch(_0x42cb99){case h['IDLE']:return l[_0x1b673d(0x96)](z,{'coordinator':_0x22bfe6});case h[_0x1b673d(0x14c)]:return l[_0x1b673d(0x96)](Q,{'coordinator':_0x22bfe6});case h[_0x1b673d(0xca)]:return l[_0x1b673d(0x96)](X,{'coordinator':_0x22bfe6});case h['OFFLINE']:return l[_0x1b673d(0x96)](te,{});case h['PRESENTING']:return l[_0x1b673d(0x96)](ee,{'coordinator':_0x22bfe6});default:return null;}}function z(_0x1bd431){var _0x191009=_0x4b1002;const {coordinator:_0x1fa690}=_0x1bd431;return l['jsxs'](l[_0x191009(0x157)],{'children':[l[_0x191009(0x96)](_0x191009(0xaf),{'className':_0x191009(0x14e),'children':_0x191009(0x163)}),l[_0x191009(0x96)](g[_0x191009(0x161)],{'onClick':()=>_0x1fa690[_0x191009(0x15c)](),'children':_0x191009(0x9c)})]});}function Q(_0x4ba98b){var _0x8502e3=_0x4b1002;const {coordinator:_0x40093a}=_0x4ba98b;return l['jsxs'](l[_0x8502e3(0x157)],{'children':[l['jsx'](_0x8502e3(0xaf),{'className':_0x8502e3(0x14e),'children':_0x8502e3(0xdb)}),l['jsx'](g[_0x8502e3(0x161)],{'onClick':()=>_0x40093a[_0x8502e3(0xce)](),'children':_0x8502e3(0x8f)})]});}function X(_0x3e3108){var _0x33db68=_0x4b1002;const {coordinator:_0x5b0786}=_0x3e3108;return l['jsxs'](l[_0x33db68(0x157)],{'children':[l[_0x33db68(0x96)]('div',{'className':_0x33db68(0x14e),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x33db68(0x96)](g['Button'],{'variant':'text','onClick':()=>_0x5b0786[_0x33db68(0x137)](),'children':_0x33db68(0x90)})]});}function ee(_0x5e697f){var _0x327fb3=_0x4b1002;const {coordinator:_0x546e7e}=_0x5e697f;return l[_0x327fb3(0x115)](l[_0x327fb3(0x157)],{'children':[l[_0x327fb3(0x96)](_0x327fb3(0xaf),{'className':_0x327fb3(0x14e),'children':_0x327fb3(0x143)}),l[_0x327fb3(0x96)](g['Button'],{'variant':_0x327fb3(0xb3),'onClick':()=>_0x546e7e[_0x327fb3(0x93)](),'children':_0x327fb3(0x94)})]});}function te(){var _0xb29f77=_0x4b1002;return l[_0xb29f77(0x96)](l[_0xb29f77(0x157)],{'children':_0xb29f77(0x148)});}var ie=Object[_0x4b1002(0x15f)],ne=(_0x59648b,_0x58bb19,_0x222afc,_0x135206)=>{for(var _0x10ce94=_0x135206>0x1?void 0x0:_0x135206?ie(_0x58bb19,_0x222afc):_0x58bb19,_0x2f839d=_0x59648b['length']-0x1,_0x27448d;_0x2f839d>=0x0;_0x2f839d--)(_0x27448d=_0x59648b[_0x2f839d])&&(_0x10ce94=_0x27448d(_0x10ce94)||_0x10ce94);return _0x10ce94;},N=(_0x2c1de8,_0x1ecc48)=>(_0x44730a,_0x2bb819)=>_0x1ecc48(_0x44730a,_0x2bb819,_0x2c1de8);function _0x50ba(_0x8647f8,_0x2fe758){var _0x24c792=_0x24c7();return _0x50ba=function(_0x50bae5,_0x34d2a1){_0x50bae5=_0x50bae5-0x8d;var _0x5d1492=_0x24c792[_0x50bae5];return _0x5d1492;},_0x50ba(_0x8647f8,_0x2fe758);}exports[_0x4b1002(0x107)]=class extends o[_0x4b1002(0x13a)]{constructor(_0x1ec828,_0x4d7471){var _0x28ed13=_0x4b1002;super(),this[_0x28ed13(0x155)]=_0x1ec828,this[_0x28ed13(0xf7)]=_0x4d7471,this[_0x28ed13(0xaa)]();}['_mountLiveShare'](){var _0xd51269=_0x4b1002;this[_0xd51269(0x95)](this['_uiPartsService']['registerComponent'](p[_0xd51269(0xb7)][_0xd51269(0x16f)],()=>p[_0xd51269(0xfd)](A,this['_injector'])));}},exports[_0x4b1002(0x107)]=ne([N(0x0,o['Inject'](o['Injector'])),N(0x1,p[_0x4b1002(0xcb)])],exports[_0x4b1002(0x107)]);var re=Object[_0x4b1002(0xbe)],se=Object['getOwnPropertyDescriptor'],oe=(_0x402aec,_0xf65fa2,_0x229289)=>_0xf65fa2 in _0x402aec?re(_0x402aec,_0xf65fa2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x229289}):_0x402aec[_0xf65fa2]=_0x229289,ae=(_0x5d7b88,_0x2f77d1,_0x2dd73e,_0x54ce27)=>{var _0x194f6a=_0x4b1002;for(var _0x3dfcae=_0x54ce27>0x1?void 0x0:_0x54ce27?se(_0x2f77d1,_0x2dd73e):_0x2f77d1,_0x29c18a=_0x5d7b88[_0x194f6a(0xfa)]-0x1,_0x1c6b7d;_0x29c18a>=0x0;_0x29c18a--)(_0x1c6b7d=_0x5d7b88[_0x29c18a])&&(_0x3dfcae=_0x1c6b7d(_0x3dfcae)||_0x3dfcae);return _0x3dfcae;},w=(_0x46f8c4,_0x58c862)=>(_0x1a2e66,_0x3d97e7)=>_0x58c862(_0x1a2e66,_0x3d97e7,_0x46f8c4),T=(_0x594097,_0x258bb2,_0x9b5eee)=>oe(_0x594097,typeof _0x258bb2!=_0x4b1002(0xd0)?_0x258bb2+'':_0x258bb2,_0x9b5eee);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x4b1002(0xdf)]=class extends o['Plugin']{constructor(_0x6130a0=L,_0x5998ca,_0x1b0c81){var _0x38509d=_0x4b1002;super(),this[_0x38509d(0x138)]=_0x6130a0,this['_injector']=_0x5998ca,this[_0x38509d(0x149)]=_0x1b0c81;const {..._0x94c550}=o['merge']({},L,this[_0x38509d(0x138)]);this[_0x38509d(0x149)][_0x38509d(0xc9)]($,_0x94c550);}[_0x4b1002(0x16c)](){var _0x543e7a=_0x4b1002;o[_0x543e7a(0xcf)](this[_0x543e7a(0x155)],o[_0x543e7a(0xc8)]([[E],[exports[_0x543e7a(0x142)]],[O],[exports[_0x543e7a(0x107)]]],this[_0x543e7a(0x138)][_0x543e7a(0x12a)])),o[_0x543e7a(0x153)](this[_0x543e7a(0x155)],[[O]]);}[_0x4b1002(0xc4)](){var _0x6a33fb=_0x4b1002;o['touchDependencies'](this[_0x6a33fb(0x155)],[[exports[_0x6a33fb(0x107)]]]);}},T(exports['UniverLiveSharePlugin'],_0x4b1002(0x110),o[_0x4b1002(0x128)][_0x4b1002(0x12e)]),T(exports[_0x4b1002(0xdf)],'pluginName',le),exports[_0x4b1002(0xdf)]=ae([o['DependentOn'](m['UniverCollaborationClientPlugin']),w(0x1,o[_0x4b1002(0x130)](o[_0x4b1002(0x108)])),w(0x2,o[_0x4b1002(0xee)])],exports[_0x4b1002(0xdf)]),exports[_0x4b1002(0x10c)]=A,exports[_0x4b1002(0xcd)]=E,exports[_0x4b1002(0x156)]=h;
|
|
1
|
+
'use strict';var _0x52bceb=_0xac8c;(function(_0x6a16e9,_0x56d853){var _0x1eae6c=_0xac8c,_0x7ef1c5=_0x6a16e9();while(!![]){try{var _0x43ed62=parseInt(_0x1eae6c(0x100))/0x1+-parseInt(_0x1eae6c(0xb2))/0x2*(-parseInt(_0x1eae6c(0x168))/0x3)+-parseInt(_0x1eae6c(0x132))/0x4*(-parseInt(_0x1eae6c(0x95))/0x5)+parseInt(_0x1eae6c(0xe2))/0x6+-parseInt(_0x1eae6c(0xe7))/0x7+parseInt(_0x1eae6c(0x136))/0x8*(-parseInt(_0x1eae6c(0xb0))/0x9)+parseInt(_0x1eae6c(0xd1))/0xa*(parseInt(_0x1eae6c(0xff))/0xb);if(_0x43ed62===_0x56d853)break;else _0x7ef1c5['push'](_0x7ef1c5['shift']());}catch(_0x4a1e2d){_0x7ef1c5['push'](_0x7ef1c5['shift']());}}}(_0xf020,0xe5ef1));var U=Object['defineProperty'],F=(_0x4f3dc2,_0x51a7c5,_0x515ec5)=>_0x51a7c5 in _0x4f3dc2?U(_0x4f3dc2,_0x51a7c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x515ec5}):_0x4f3dc2[_0x51a7c5]=_0x515ec5,v=(_0x220b50,_0x2d1c6c,_0x5173d3)=>F(_0x220b50,typeof _0x2d1c6c!=_0x52bceb(0xa1)?_0x2d1c6c+'':_0x2d1c6c,_0x5173d3);Object[_0x52bceb(0xcd)](exports,Symbol[_0x52bceb(0x164)],{'value':_0x52bceb(0x108)});const m=require(_0x52bceb(0xfa)),o=require(_0x52bceb(0x106)),C=require(_0x52bceb(0x10b)),w=require(_0x52bceb(0x109)),p=require(_0x52bceb(0x169)),l=require(_0x52bceb(0xc9)),g=require(_0x52bceb(0xd7)),f=require('react'),_=require(_0x52bceb(0xf5)),D=require(_0x52bceb(0x15d)),b=require(_0x52bceb(0xdf)),$=_0x52bceb(0xc7),x={};class E extends o['Disposable']{constructor(){var _0x2393a3=_0x52bceb;super(...arguments),v(this,_0x2393a3(0x16c),new Set()),v(this,_0x2393a3(0xfd),new Set());}['registerSharedOperation'](_0x2d0ce7){var _0xf32967=_0x52bceb;return this['_sharedOperations']['add'](_0x2d0ce7),o['toDisposable'](()=>this[_0xf32967(0x16c)][_0xf32967(0x133)](_0x2d0ce7));}[_0x52bceb(0xb8)](_0x35f533){var _0x3e0e8a=_0x52bceb;return this[_0x3e0e8a(0xfd)][_0x3e0e8a(0x12d)](_0x35f533),o[_0x3e0e8a(0xbe)](()=>this[_0x3e0e8a(0xfd)]['delete'](_0x35f533));}[_0x52bceb(0x119)](_0x1e60c2){var _0x3c4896=_0x52bceb;return this[_0x3c4896(0x16c)]['has'](_0x1e60c2);}[_0x52bceb(0xb5)](_0x35503f){var _0x3ecf10=_0x52bceb;return Array[_0x3ecf10(0xf4)](this[_0x3ecf10(0xfd)])['map'](_0xb019eb=>_0xb019eb(_0x35503f));}}var H=Object[_0x52bceb(0xa4)],V=(_0x4046ac,_0x2e6e49,_0x22462d,_0x46ac3b)=>{var _0x53fa86=_0x52bceb;for(var _0x3848f3=_0x46ac3b>0x1?void 0x0:_0x46ac3b?H(_0x2e6e49,_0x22462d):_0x2e6e49,_0x1cb656=_0x4046ac[_0x53fa86(0x127)]-0x1,_0x31f5e9;_0x1cb656>=0x0;_0x1cb656--)(_0x31f5e9=_0x4046ac[_0x1cb656])&&(_0x3848f3=_0x31f5e9(_0x3848f3)||_0x3848f3);return _0x3848f3;},k=(_0x29ecc0,_0x7515e9)=>(_0x3a2dc0,_0x53d199)=>_0x7515e9(_0x3a2dc0,_0x53d199,_0x29ecc0);let O=class extends o['Disposable']{constructor(_0x58809c){var _0x2360be=_0x52bceb;super(),this['_liveShareService']=_0x58809c,this[_0x2360be(0x9c)]();}[_0x52bceb(0x9c)](){var _0x75ef0c=_0x52bceb;[w['SetZoomRatioOperation']['id'],w[_0x75ef0c(0x14a)]['id'],C[_0x75ef0c(0x118)]['id']]['forEach'](_0x5100d4=>{var _0x2d400b=_0x75ef0c;this[_0x2d400b(0x110)](this[_0x2d400b(0xd0)]['registerSharedOperation'](_0x5100d4));});}};O=V([k(0x0,o[_0x52bceb(0xe6)](E))],O);var u=function(){var _0x263b10=_0x52bceb;return u=Object[_0x263b10(0x172)]||function(_0x275ea6){var _0x2e18a4=_0x263b10;for(var _0x3b0a3e,_0x43809b=0x1,_0x17e56c=arguments['length'];_0x43809b<_0x17e56c;_0x43809b++){_0x3b0a3e=arguments[_0x43809b];for(var _0x13ccca in _0x3b0a3e)Object[_0x2e18a4(0x11b)]['hasOwnProperty']['call'](_0x3b0a3e,_0x13ccca)&&(_0x275ea6[_0x13ccca]=_0x3b0a3e[_0x13ccca]);}return _0x275ea6;},u[_0x263b10(0xb9)](this,arguments);},M=function(_0x3c3337,_0x2e7a91){var _0x562ef3=_0x52bceb,_0x5ac1f5={};for(var _0x14a806 in _0x3c3337)Object['prototype'][_0x562ef3(0x125)]['call'](_0x3c3337,_0x14a806)&&_0x2e7a91['indexOf'](_0x14a806)<0x0&&(_0x5ac1f5[_0x14a806]=_0x3c3337[_0x14a806]);if(_0x3c3337!=null&&typeof Object[_0x562ef3(0xc6)]==_0x562ef3(0x12f)){for(var _0x1fa47b=0x0,_0x14a806=Object['getOwnPropertySymbols'](_0x3c3337);_0x1fa47b<_0x14a806[_0x562ef3(0x127)];_0x1fa47b++)_0x2e7a91[_0x562ef3(0x146)](_0x14a806[_0x1fa47b])<0x0&&Object[_0x562ef3(0x11b)]['propertyIsEnumerable'][_0x562ef3(0xab)](_0x3c3337,_0x14a806[_0x1fa47b])&&(_0x5ac1f5[_0x14a806[_0x1fa47b]]=_0x3c3337[_0x14a806[_0x1fa47b]]);}return _0x5ac1f5;},j=f[_0x52bceb(0x174)](function(_0x17b5a2,_0x151cf3){var _0x41e522=_0x52bceb,_0x22a7fa=_0x17b5a2['icon'],_0x500d00=_0x17b5a2['id'],_0x306ecc=_0x17b5a2['className'],_0x5b60c1=_0x17b5a2['extend'],_0x5b177b=M(_0x17b5a2,[_0x41e522(0x9b),'id',_0x41e522(0xce),'extend']),_0x2fcaa6=_0x41e522(0x149)[_0x41e522(0xf0)](_0x500d00,'\x20')['concat'](_0x306ecc||'')['trim'](),_0x3e1e8f=f['useRef']('_'[_0x41e522(0xf0)](G()));return y(_0x22a7fa,''[_0x41e522(0xf0)](_0x500d00),{'defIds':_0x22a7fa[_0x41e522(0x167)],'idSuffix':_0x3e1e8f[_0x41e522(0x11c)]},u({'ref':_0x151cf3,'className':_0x2fcaa6},_0x5b177b),_0x5b60c1);});function _0xac8c(_0x3e1a80,_0x40fdd0){var _0xf02072=_0xf020();return _0xac8c=function(_0xac8cb4,_0x5e022f){_0xac8cb4=_0xac8cb4-0x95;var _0x32c950=_0xf02072[_0xac8cb4];return _0x32c950;},_0xac8c(_0x3e1a80,_0x40fdd0);}function y(_0x5f165d,_0x4f480d,_0x5e54d3,_0x44be14,_0xec00e7){var _0xcdba02=_0x52bceb;return f[_0xcdba02(0xcf)](_0x5f165d[_0xcdba02(0xdc)],u(u({'key':_0x4f480d},q(_0x5f165d,_0x5e54d3,_0xec00e7)),_0x44be14),(W(_0x5f165d,_0x5e54d3)[_0xcdba02(0xdb)]||[])[_0xcdba02(0xbf)](function(_0x4e0fb0,_0x3d6d8f){var _0x164860=_0xcdba02;return y(_0x4e0fb0,''['concat'](_0x4f480d,'-')[_0x164860(0xf0)](_0x5f165d[_0x164860(0xdc)],'-')[_0x164860(0xf0)](_0x3d6d8f),_0x5e54d3,void 0x0,_0xec00e7);}));}function q(_0x2f0b96,_0x567341,_0x56b99c){var _0x30dcb5=_0x52bceb,_0x28f864=u({},_0x2f0b96['attrs']);_0x56b99c!=null&&_0x56b99c['colorChannel1']&&_0x28f864['fill']===_0x30dcb5(0xbc)&&(_0x28f864[_0x30dcb5(0x15b)]=_0x56b99c[_0x30dcb5(0xbc)]),_0x2f0b96[_0x30dcb5(0xdc)]===_0x30dcb5(0x175)&&_0x28f864['id']&&(_0x28f864['id']=_0x28f864['id']+_0x567341['idSuffix']),Object[_0x30dcb5(0x153)](_0x28f864)[_0x30dcb5(0x126)](function(_0x4b3a32){var _0x4c087d=_0x30dcb5,_0x52f9aa=_0x4b3a32[0x0],_0x1f882c=_0x4b3a32[0x1];_0x52f9aa==='mask'&&typeof _0x1f882c==_0x4c087d(0xa0)&&(_0x28f864[_0x52f9aa]=_0x1f882c['replace'](/url\(#(.*)\)/,_0x4c087d(0xbb)[_0x4c087d(0xf0)](_0x567341['idSuffix'],')')));});var _0x15cb6c=_0x567341[_0x30dcb5(0x167)];return!_0x15cb6c||_0x15cb6c[_0x30dcb5(0x127)]===0x0||(_0x2f0b96[_0x30dcb5(0xdc)]===_0x30dcb5(0x179)&&_0x28f864['xlink:href']&&(_0x28f864['xlink:href']=_0x28f864['xlink:href']+_0x567341[_0x30dcb5(0xac)]),Object['entries'](_0x28f864)[_0x30dcb5(0x126)](function(_0x404985){var _0x1c387f=_0x30dcb5,_0x5b777f=_0x404985[0x0],_0x4f1376=_0x404985[0x1];typeof _0x4f1376==_0x1c387f(0xa0)&&(_0x28f864[_0x5b777f]=_0x4f1376[_0x1c387f(0xb3)](/url\(#(.*)\)/,_0x1c387f(0xbb)[_0x1c387f(0xf0)](_0x567341[_0x1c387f(0xac)],')')));})),_0x28f864;}function W(_0x415eba,_0x4d445a){var _0x3dd35a=_0x52bceb,_0x59d4a4,_0x2aca10=_0x4d445a['defIds'];return!_0x2aca10||_0x2aca10[_0x3dd35a(0x127)]===0x0?_0x415eba:_0x415eba['tag']===_0x3dd35a(0x99)&&(!((_0x59d4a4=_0x415eba[_0x3dd35a(0xdb)])===null||_0x59d4a4===void 0x0)&&_0x59d4a4[_0x3dd35a(0x127)])?u(u({},_0x415eba),{'children':_0x415eba[_0x3dd35a(0xdb)][_0x3dd35a(0xbf)](function(_0x7d7048){var _0x20c4b7=_0x3dd35a;return typeof _0x7d7048[_0x20c4b7(0xb4)]['id']=='string'&&_0x2aca10&&_0x2aca10['indexOf'](_0x7d7048[_0x20c4b7(0xb4)]['id'])>-0x1?u(u({},_0x7d7048),{'attrs':u(u({},_0x7d7048[_0x20c4b7(0xb4)]),{'id':_0x7d7048[_0x20c4b7(0xb4)]['id']+_0x4d445a[_0x20c4b7(0xac)]})}):_0x7d7048;})}):_0x415eba;}function G(){var _0x21a47d=_0x52bceb;return Math[_0x21a47d(0x13f)]()[_0x21a47d(0x163)](0x24)[_0x21a47d(0x14b)](0x2,0x8);}j[_0x52bceb(0xa9)]=_0x52bceb(0x120);var B={'tag':'svg','attrs':{'xmlns':_0x52bceb(0xf1),'fill':_0x52bceb(0xfc),'viewBox':'0\x200\x2017\x2017','width':_0x52bceb(0x11d),'height':_0x52bceb(0x11d)},'children':[{'tag':_0x52bceb(0xad),'attrs':{'fill':'currentColor','d':_0x52bceb(0x16b)}},{'tag':'path','attrs':{'fill':_0x52bceb(0x154),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x52bceb(0xfb),'clipRule':'evenodd'}}]},P=f['forwardRef'](function(_0x23af4e,_0x57e4cc){var _0x4843d1=_0x52bceb;return f[_0x4843d1(0xcf)](j,Object['assign']({},_0x23af4e,{'id':_0x4843d1(0x138),'ref':_0x57e4cc,'icon':B}));});P['displayName']=_0x52bceb(0x114);var Y=Object[_0x52bceb(0xa4)],R=(_0x367452,_0x754b23,_0x33ff28,_0x5a904b)=>{var _0x47be8a=_0x52bceb;for(var _0x1639e0=_0x5a904b>0x1?void 0x0:_0x5a904b?Y(_0x754b23,_0x33ff28):_0x754b23,_0x34f2e0=_0x367452[_0x47be8a(0x127)]-0x1,_0x1059f3;_0x34f2e0>=0x0;_0x34f2e0--)(_0x1059f3=_0x367452[_0x34f2e0])&&(_0x1639e0=_0x1059f3(_0x1639e0)||_0x1639e0);return _0x1639e0;},S=(_0x7fb1f6,_0x77116d)=>(_0xfe5bb1,_0x323a70)=>_0x77116d(_0xfe5bb1,_0x323a70,_0x7fb1f6);exports[_0x52bceb(0xc8)]=class extends o[_0x52bceb(0x128)]{constructor(_0x4cd6a7,_0x5b60a2,_0x5df010){var _0x427abc=_0x52bceb;super(),v(this,_0x427abc(0xd5),new Map()),(this[_0x427abc(0xc2)]=_0x4cd6a7,this[_0x427abc(0x10e)]=_0x5b60a2,this[_0x427abc(0xa7)]=_0x5df010,this[_0x427abc(0x9c)]());}async[_0x52bceb(0xdd)](_0x2ab6b4){var _0xfeb58a=_0x52bceb;return this[_0xfeb58a(0xd5)]['has'](_0x2ab6b4)||await this[_0xfeb58a(0x134)](_0x2ab6b4),this['_entities'][_0xfeb58a(0x141)](_0x2ab6b4);}[_0x52bceb(0x9c)](){var _0x5a3527=_0x52bceb;this[_0x5a3527(0xc2)]['getTypeOfUnitAdded$'](o[_0x5a3527(0x107)][_0x5a3527(0x121)])[_0x5a3527(0xa5)](b[_0x5a3527(0x178)](this[_0x5a3527(0xe9)]))[_0x5a3527(0x148)](async _0x13652f=>{var _0x548ce7=_0x5a3527;const _0x3ff401=_0x13652f[_0x548ce7(0x131)]();this['_entities'][_0x548ce7(0x14e)](_0x3ff401)||this['_startLiveShareCoordinator'](_0x3ff401);}),this[_0x5a3527(0xc2)][_0x5a3527(0x10a)](o[_0x5a3527(0x107)]['UNIVER_SHEET'])[_0x5a3527(0xa5)](b[_0x5a3527(0x178)](this[_0x5a3527(0xe9)]))[_0x5a3527(0x148)](_0x402755=>{var _0x2e5546=_0x5a3527;const _0x539169=_0x402755['getUnitId'](),_0x434bc0=this['_entities'][_0x2e5546(0x141)](_0x539169);_0x434bc0==null||_0x434bc0[_0x2e5546(0x9f)]();});}async['_startLiveShareCoordinator'](_0x2152d4){var _0x26ce26=_0x52bceb;const _0x3a9773=await this['_collabSessionService']['requireSession'](_0x2152d4),_0x56938c=this[_0x26ce26(0x10e)][_0x26ce26(0x10c)](exports['LiveShareCoordinator'],_0x2152d4,_0x3a9773);return _0x56938c['init'](),this[_0x26ce26(0xd5)][_0x26ce26(0x111)](_0x2152d4,_0x56938c),_0x56938c;}},exports[_0x52bceb(0xc8)]=R([S(0x0,o[_0x52bceb(0x177)]),S(0x1,o[_0x52bceb(0xe6)](o[_0x52bceb(0x176)])),S(0x2,o['Inject'](m[_0x52bceb(0x135)]))],exports[_0x52bceb(0xc8)]);var h=(_0x3b1e8a=>(_0x3b1e8a[_0x52bceb(0xf3)]=_0x52bceb(0x16d),_0x3b1e8a[_0x52bceb(0xed)]=_0x52bceb(0xca),_0x3b1e8a[_0x52bceb(0xc4)]=_0x52bceb(0xe4),_0x3b1e8a[_0x52bceb(0xf6)]=_0x52bceb(0xf7),_0x3b1e8a[_0x52bceb(0x10d)]=_0x52bceb(0xf9),_0x3b1e8a))(h||{});const Z=_0x52bceb(0x162),J=0xc8;exports[_0x52bceb(0x10f)]=class extends o[_0x52bceb(0x128)]{constructor(_0x5d7f72,_0x2ea6c8,_0xf48875,_0x5976bd,_0x1d7441){var _0x679284=_0x52bceb;super(),v(this,_0x679284(0xc1),new D[(_0x679284(0xcb))]('idle')),v(this,_0x679284(0x13a),this['_status$'][_0x679284(0xc0)]()),v(this,_0x679284(0x9c),!0x1),v(this,_0x679284(0x144),null),v(this,_0x679284(0xc5),null),(this[_0x679284(0xf2)]=_0x5d7f72,this[_0x679284(0x15a)]=_0x2ea6c8,this['_configService']=_0xf48875,this[_0x679284(0xd0)]=_0x5976bd,this[_0x679284(0xef)]=_0x1d7441);}get[_0x52bceb(0x11a)](){var _0x1e9af3=_0x52bceb;return this[_0x1e9af3(0xc1)][_0x1e9af3(0x102)]();}[_0x52bceb(0x9f)](){var _0x383e87=_0x52bceb,_0x284968;(_0x284968=this['_commandDisposable'])==null||_0x284968[_0x383e87(0x9f)](),this[_0x383e87(0xc1)][_0x383e87(0x130)]('idle'),this['_status$'][_0x383e87(0x101)]();}[_0x52bceb(0x113)](){var _0x585f48=_0x52bceb;this['_init']||(this['_init']=!0x0,this[_0x585f48(0x15a)][_0x585f48(0x98)][_0x585f48(0xa5)](b[_0x585f48(0x178)](this[_0x585f48(0xe9)]))[_0x585f48(0x148)](_0x3664e2=>{var _0x5bd626=_0x585f48;switch(_0x3664e2){case m['SessionStatus']['OFFLINE']:this['_handleOffline']();break;case m[_0x5bd626(0xde)][_0x5bd626(0xb6)]:this[_0x5bd626(0x14f)]();break;}}),this['_collabSession'][_0x585f48(0x150)]['pipe'](b[_0x585f48(0x178)](this[_0x585f48(0xe9)]))[_0x585f48(0x148)](_0x1a3e24=>{var _0x25c8f5=_0x585f48;const {eventID:_0x2c6d80}=_0x1a3e24;switch(_0x2c6d80){case _[_0x25c8f5(0x137)][_0x25c8f5(0x112)]:this[_0x25c8f5(0x13d)](_0x1a3e24);break;case _[_0x25c8f5(0x137)]['LIVESHARE_OPERATION']:this[_0x25c8f5(0xaa)](_0x1a3e24);break;case _[_0x25c8f5(0x137)][_0x25c8f5(0xae)]:this[_0x25c8f5(0x123)]();break;case _[_0x25c8f5(0x137)][_0x25c8f5(0xaf)]:this[_0x25c8f5(0xe1)](_0x1a3e24);break;}}));}['tryStartPresenting'](){var _0x1eb931=_0x52bceb;this['_collabSession']['send']({'eventID':_[_0x1eb931(0x137)][_0x1eb931(0x171)],'data':{'unitID':this[_0x1eb931(0xf2)],'userID':this[_0x1eb931(0x15a)][_0x1eb931(0x115)]()}},this[_0x1eb931(0xf2)]);}[_0x52bceb(0xa8)](){var _0x38b226=_0x52bceb;this[_0x38b226(0x11a)]===_0x38b226(0xf9)&&(this[_0x38b226(0xc1)][_0x38b226(0x130)](_0x38b226(0xca)),this[_0x38b226(0x15a)]['send']({'eventID':_[_0x38b226(0x137)][_0x38b226(0xae)],'data':{'unitID':this[_0x38b226(0xf2)]}},this[_0x38b226(0xf2)]));}[_0x52bceb(0x11e)](){var _0x494573=_0x52bceb;this[_0x494573(0x11a)]==='not-following'&&(this['_status$'][_0x494573(0x130)]('following'),this[_0x494573(0x170)]());}[_0x52bceb(0xc3)](){var _0x3c4581=_0x52bceb;this['_status']===_0x3c4581(0xe4)&&this[_0x3c4581(0x11f)]();}['_handleNewHost'](_0x526ac3){var _0x10f519=_0x52bceb;const {presenter:_0x4d1274}=_0x526ac3[_0x10f519(0x103)],_0x1cb90f=this[_0x10f519(0x15a)][_0x10f519(0x115)]();this[_0x10f519(0xc5)]=_0x4d1274,_0x4d1274===_0x1cb90f?(this[_0x10f519(0x11f)](),this[_0x10f519(0x14d)]()):this[_0x10f519(0x11a)]!==_0x10f519(0xf7)&&(this[_0x10f519(0xba)](),this['_startFollowing']());}['_fetchOperations'](){var _0x329825=_0x52bceb;const _0xd58e76={'eventID':_[_0x329825(0x137)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x329825(0x15a)]['send'](_0xd58e76,this[_0x329825(0xf2)]);}[_0x52bceb(0x123)](){var _0x4d792d=_0x52bceb;this[_0x4d792d(0xc5)]=null,this['_status']!==_0x4d792d(0xf9)&&this[_0x4d792d(0x165)]();}[_0x52bceb(0xe1)](_0x94fe05){var _0x38c512=_0x52bceb;if(this['_status']===_0x38c512(0xe4)&&this[_0x38c512(0xc5)]===_0x94fe05['data']['memberID']){const _0x3f2f55=_[_0x38c512(0x105)](_0x94fe05[_0x38c512(0x103)])[_0x38c512(0xda)][_0x38c512(0x14c)]()[_0x38c512(0x145)](_0x38516f=>_0x38516f['id']===C[_0x38c512(0x161)]['id']);if(_0x3f2f55){const _0x29e567=_0x3f2f55[_0x38c512(0x9d)][_0x38c512(0x139)],_0x31baf5=_0x3f2f55['params'][_0x38c512(0xf8)]['id'];setTimeout(()=>{var _0x26ee57=_0x38c512;this[_0x26ee57(0xef)][_0x26ee57(0x16e)](C[_0x26ee57(0x118)]['id'],{'unitId':_0x29e567,'subUnitId':_0x31baf5},{'fromCollab':!0x0});});}}}[_0x52bceb(0x14d)](){var _0x273e06=_0x52bceb;this[_0x273e06(0xc1)][_0x273e06(0x130)](_0x273e06(0xf9));const _0x46fe4d=new Map(),_0x49c898=this[_0x273e06(0x144)]=new o['DisposableCollection']();_0x49c898['add'](o[_0x273e06(0xbe)](()=>{var _0x14b4e7=_0x273e06;_0x46fe4d[_0x14b4e7(0x126)](_0x344de1=>_0x344de1[_0x14b4e7(0x101)]()),_0x46fe4d['clear']();})),_0x49c898[_0x273e06(0x12d)](this[_0x273e06(0xef)]['onCommandExecuted'](_0x2b8faf=>{var _0x2dba5e=_0x273e06,_0x1fc7e5;if(_0x2b8faf[_0x2dba5e(0x15c)]!==o[_0x2dba5e(0x13b)][_0x2dba5e(0x13e)]||!this[_0x2dba5e(0xd0)][_0x2dba5e(0x119)](_0x2b8faf['id']))return;const {id:_0xdcf97f}=_0x2b8faf;let _0x144da6;_0x46fe4d[_0x2dba5e(0x14e)](_0xdcf97f)?_0x144da6=_0x46fe4d['get'](_0xdcf97f):(_0x144da6=new D['Subject'](),_0x46fe4d['set'](_0xdcf97f,_0x144da6),_0x144da6[_0x2dba5e(0xa5)](b[_0x2dba5e(0x151)]((_0x1fc7e5=this[_0x2dba5e(0xea)][_0x2dba5e(0x96)](Z))!=null?_0x1fc7e5:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x50c49f=>{var _0x270d1f=_0x2dba5e;this[_0x270d1f(0x15a)][_0x270d1f(0x116)]({'eventID':_[_0x270d1f(0x137)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x270d1f(0xf2)],'operations':{[_0x50c49f['id']]:{'id':_0x50c49f['id'],'params':JSON[_0x270d1f(0xa3)](_0x50c49f[_0x270d1f(0x9d)])}}}},this[_0x270d1f(0xf2)]);})),_0x144da6[_0x2dba5e(0x130)](_0x2b8faf);})),this[_0x273e06(0xd0)][_0x273e06(0xb5)](this['_unitID'])[_0x273e06(0x126)](_0x414c65=>this[_0x273e06(0x15a)][_0x273e06(0x116)]({'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x273e06(0xf2)],'operations':{[_0x414c65['id']]:{'id':_0x414c65['id'],'params':JSON[_0x273e06(0xa3)](_0x414c65[_0x273e06(0x9d)])}}}},this[_0x273e06(0xf2)]));}[_0x52bceb(0xba)](){var _0x2e3e75=_0x52bceb,_0x3e3eb8;this['_status$'][_0x2e3e75(0x130)](_0x2e3e75(0xca)),(_0x3e3eb8=this['_commandDisposable'])==null||_0x3e3eb8[_0x2e3e75(0x9f)](),this[_0x2e3e75(0x144)]=null;}['_startFollowing'](){var _0x353fc0=_0x52bceb,_0x47ef17;(_0x47ef17=this[_0x353fc0(0x144)])==null||_0x47ef17[_0x353fc0(0x9f)](),this['_status$'][_0x353fc0(0x130)](_0x353fc0(0xe4));}[_0x52bceb(0x165)](){var _0x29442c=_0x52bceb,_0x4ca65c;this['_status$'][_0x29442c(0x130)](_0x29442c(0xca)),(_0x4ca65c=this['_commandDisposable'])==null||_0x4ca65c[_0x29442c(0x9f)](),this[_0x29442c(0x144)]=null;}[_0x52bceb(0x11f)](){var _0x468d2d=_0x52bceb,_0x22320c;this[_0x468d2d(0xc1)][_0x468d2d(0x130)]('not-following'),(_0x22320c=this['_commandDisposable'])==null||_0x22320c[_0x468d2d(0x9f)]();}[_0x52bceb(0xaa)](_0xe38ed1){var _0x23c337=_0x52bceb;if([_0x23c337(0xf9),_0x23c337(0xf7),'offline'][_0x23c337(0x140)](this[_0x23c337(0x11a)])||!_0xe38ed1['data'][_0x23c337(0xcc)]||_0xe38ed1[_0x23c337(0x103)][_0x23c337(0xcc)]===this[_0x23c337(0x15a)]['getMemberID']())return;this['_status']===_0x23c337(0xca)&&this[_0x23c337(0x170)]();const _0x3d21f4=_0xe38ed1[_0x23c337(0x103)]['operations'];Object[_0x23c337(0x143)](_0x3d21f4)[_0x23c337(0x126)](_0x395686=>{var _0x5e3447=_0x23c337;this['_commandService'][_0x5e3447(0x16e)](_0x395686['id'],_0x395686[_0x5e3447(0x9d)]?JSON[_0x5e3447(0x15e)](_0x395686[_0x5e3447(0x9d)]):null,{'fromCollab':!0x0});});}[_0x52bceb(0x158)](){var _0x25af69=_0x52bceb,_0x25a1e1;this['_status$']['next']('offline'),(_0x25a1e1=this[_0x25af69(0x144)])==null||_0x25a1e1[_0x25af69(0x9f)]();}[_0x52bceb(0x14f)](){var _0x26e704=_0x52bceb;this[_0x26e704(0xc1)][_0x26e704(0x130)]('idle'),this[_0x26e704(0xfe)]();}},exports[_0x52bceb(0x10f)]=R([S(0x2,o['IConfigService']),S(0x3,o[_0x52bceb(0xe6)](E)),S(0x4,o['ICommandService'])],exports[_0x52bceb(0x10f)]);function A(){var _0x3cc8de=_0x52bceb;const _0x1f16c1=p[_0x3cc8de(0x9a)](exports[_0x3cc8de(0xc8)]),_0x2104e5=p[_0x3cc8de(0x9a)](o[_0x3cc8de(0x177)]),_0x4bd499=p[_0x3cc8de(0x12e)](()=>_0x2104e5[_0x3cc8de(0x15f)](o[_0x3cc8de(0x107)][_0x3cc8de(0x121)]),void 0x0,!0x1,[]),[_0x250d64,_0x5a79e4]=f['useState'](null),[_0x412a26,_0x114c5d]=f['useState'](h[_0x3cc8de(0xed)]),_0x56310d=f[_0x3cc8de(0x147)](null);return f[_0x3cc8de(0x12c)](()=>(_0x4bd499&&_0x1f16c1[_0x3cc8de(0xdd)](_0x4bd499[_0x3cc8de(0x131)]())[_0x3cc8de(0x160)](_0x2759ce=>{var _0x449d94=_0x3cc8de;_0x5a79e4(_0x2759ce),_0x56310d[_0x449d94(0x11c)]=_0x2759ce[_0x449d94(0x13a)][_0x449d94(0x148)](_0x11b877=>{_0x114c5d(_0x11b877);});}),()=>{var _0x3b7368=_0x3cc8de,_0x5186a9;(_0x5186a9=_0x56310d[_0x3b7368(0x11c)])==null||_0x5186a9['unsubscribe'](),_0x56310d[_0x3b7368(0x11c)]=null;}),[_0x4bd499,_0x1f16c1]),_0x250d64?l[_0x3cc8de(0xd4)](g[_0x3cc8de(0xe5)],{'align':_0x3cc8de(0xd9),'disabled':_0x412a26===h[_0x3cc8de(0xf3)],'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':l[_0x3cc8de(0xd4)](K,{'status':_0x412a26,'coordinator':_0x250d64}),'children':l['jsx'](_0x3cc8de(0x173),{'className':g[_0x3cc8de(0xbd)]('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x412a26===h[_0x3cc8de(0xf3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x412a26!==h[_0x3cc8de(0xf3)]}),'type':_0x3cc8de(0x173),'children':l[_0x3cc8de(0xd4)](P,{'className':'univer-size-4'})})}):null;}function K(_0x25abe4){var _0x1a438a=_0x52bceb;const {status:_0x418541,coordinator:_0x260621}=_0x25abe4;switch(_0x418541){case h['IDLE']:return l['jsx'](z,{'coordinator':_0x260621});case h[_0x1a438a(0xc4)]:return l[_0x1a438a(0xd4)](Q,{'coordinator':_0x260621});case h['NOT_FOLLOWING']:return l[_0x1a438a(0xd4)](X,{'coordinator':_0x260621});case h[_0x1a438a(0xf3)]:return l[_0x1a438a(0xd4)](te,{});case h['PRESENTING']:return l[_0x1a438a(0xd4)](ee,{'coordinator':_0x260621});default:return null;}}function z(_0x597c51){var _0x28403b=_0x52bceb;const {coordinator:_0x41d267}=_0x597c51;return l[_0x28403b(0xe3)](l[_0x28403b(0x159)],{'children':[l[_0x28403b(0xd4)](_0x28403b(0x16a),{'className':_0x28403b(0x97),'children':_0x28403b(0x9e)}),l['jsx'](g[_0x28403b(0xee)],{'onClick':()=>_0x41d267[_0x28403b(0x12a)](),'children':'Start'})]});}function Q(_0x53123f){var _0x3bbc75=_0x52bceb;const {coordinator:_0x6fd9a3}=_0x53123f;return l['jsxs'](l['Fragment'],{'children':[l[_0x3bbc75(0xd4)](_0x3bbc75(0x16a),{'className':_0x3bbc75(0x97),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x3bbc75(0xd4)](g[_0x3bbc75(0xee)],{'onClick':()=>_0x6fd9a3[_0x3bbc75(0xc3)](),'children':_0x3bbc75(0xd6)})]});}function X(_0xcfc940){var _0x4c7f7f=_0x52bceb;const {coordinator:_0x50b0c4}=_0xcfc940;return l[_0x4c7f7f(0xe3)](l[_0x4c7f7f(0x159)],{'children':[l[_0x4c7f7f(0xd4)](_0x4c7f7f(0x16a),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l['jsx'](g['Button'],{'variant':_0x4c7f7f(0x155),'onClick':()=>_0x50b0c4[_0x4c7f7f(0x11e)](),'children':_0x4c7f7f(0xa2)})]});}function ee(_0x499fc7){var _0x1cc6be=_0x52bceb;const {coordinator:_0x5c66b3}=_0x499fc7;return l[_0x1cc6be(0xe3)](l[_0x1cc6be(0x159)],{'children':[l[_0x1cc6be(0xd4)]('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x1cc6be(0xa6)}),l['jsx'](g[_0x1cc6be(0xee)],{'variant':'default','onClick':()=>_0x5c66b3['stopPresenting'](),'children':_0x1cc6be(0xd2)})]});}function te(){var _0x3f7798=_0x52bceb;return l[_0x3f7798(0xd4)](l[_0x3f7798(0x159)],{'children':_0x3f7798(0xec)});}var ie=Object[_0x52bceb(0xa4)],ne=(_0x290d8e,_0x376297,_0xa91158,_0x5dc8ef)=>{var _0xe56df2=_0x52bceb;for(var _0x43a74c=_0x5dc8ef>0x1?void 0x0:_0x5dc8ef?ie(_0x376297,_0xa91158):_0x376297,_0x3b8de5=_0x290d8e[_0xe56df2(0x127)]-0x1,_0x11f039;_0x3b8de5>=0x0;_0x3b8de5--)(_0x11f039=_0x290d8e[_0x3b8de5])&&(_0x43a74c=_0x11f039(_0x43a74c)||_0x43a74c);return _0x43a74c;},L=(_0x30d3b6,_0xc756b9)=>(_0x2dcbd1,_0x3861f4)=>_0xc756b9(_0x2dcbd1,_0x3861f4,_0x30d3b6);exports[_0x52bceb(0x156)]=class extends o[_0x52bceb(0xb7)]{constructor(_0x2387f6,_0x59134f){var _0x20b417=_0x52bceb;super(),this[_0x20b417(0x10e)]=_0x2387f6,this['_uiPartsService']=_0x59134f,this[_0x20b417(0x129)]();}[_0x52bceb(0x129)](){var _0x332db3=_0x52bceb;this[_0x332db3(0x110)](this['_uiPartsService'][_0x332db3(0xb1)](p[_0x332db3(0xeb)]['HEADER_MENU'],()=>p['connectInjector'](A,this[_0x332db3(0x10e)])));}},exports[_0x52bceb(0x156)]=ne([L(0x0,o[_0x52bceb(0xe6)](o[_0x52bceb(0x176)])),L(0x1,p[_0x52bceb(0xe8)])],exports[_0x52bceb(0x156)]);function _0xf020(){var _0x258137=['toDisposable','map','asObservable','_status$','_univerInstanceService','stopFollowing','FOLLOWING','_presenter','getOwnPropertySymbols','live-share.config','LiveShareController','react/jsx-runtime','idle','BehaviorSubject','presenter','defineProperty','className','createElement','_liveShareService','840oYQXTB','Stop\x20presenting','DependentOn','jsx','_entities','Stop\x20following','@univerjs/design','UniverCollaborationClientPlugin','end','mutations','children','tag','getLiveShareCoordinator','SessionStatus','rxjs/operators','Plugin','_handleNewChangeSets','1092456euYgbM','jsxs','following','Dropdown','Inject','4714430PrOjEx','IUIPartsService','dispose$','_configService','BuiltInUIPart','You\x27are\x20offline.','IDLE','Button','_commandService','concat','http://www.w3.org/2000/svg','_unitID','OFFLINE','from','@univerjs-pro/collaboration','NOT_FOLLOWING','not-following','sheet','presenting','@univerjs-pro/collaboration-client','evenodd','none','_reporters','_fetchOperations','2684Dlbhct','325304FWHkvj','complete','getValue','data','_config','parseProtocolChangeset','@univerjs/core','UniverInstanceType','Module','@univerjs/sheets-ui','getTypeOfUnitDisposed$','@univerjs/sheets','createInstance','PRESENTING','_injector','LiveShareCoordinator','disposeWithMe','set','LIVESHARE_NEW_HOST','init','LiveShareIcon','getMemberID','send','merge','SetWorksheetActiveOperation','shouldShareOperation','_status','prototype','current','1em','startFollowing','_stopFollowing','UniverIcon','UNIVER_SHEET','LiveShareStatus','_handleTerminate','UniverLiveSharePlugin','hasOwnProperty','forEach','length','RxDisposable','_mountLiveShare','tryStartPresenting','registerDependencies','useEffect','add','useObservable','function','next','getUnitId','636668CWxzQE','delete','_startLiveShareCoordinator','CollaborationSessionService','7649032cncMRP','CollaborationEvent','live-share-icon','unitId','status$','CommandType','touchDependencies','_handleNewHost','OPERATION','random','includes','get','LiveShare','values','_commandDisposable','find','indexOf','useRef','subscribe','univerjs-icon\x20univerjs-icon-','SetScrollOperation','substring','reverse','_startPresenting','has','_handleOnline','event$','throttleTime','onRendered','entries','currentColor','text','DesktopLiveShareController','IConfigService','_handleOffline','Fragment','_collabSession','fill','type','rxjs','parse','getCurrentTypeOfUnit$','then','InsertSheetMutation','SAME_OPERATION_SHARE_INTERVAL','toString','toStringTag','_beIdle','UNIVER_UNKNOWN','defIds','33GuPcRc','@univerjs/ui','div','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','_sharedOperations','offline','executeCommand','LiveShareService','_startFollowing','LIVESHARE_REQUEST_HOST','assign','button','forwardRef','mask','Injector','IUniverInstanceService','takeUntil','use','10YduSeI','getConfig','univer-w-full\x20univer-mb-3\x20univer-text-sm','sessionStatus$','defs','useDependency','icon','_init','params','Present\x20this\x20document','dispose','string','symbol','Start\x20following','stringify','getOwnPropertyDescriptor','pipe','You\x27re\x20presenting\x20the\x20document','_collabSessionService','stopPresenting','displayName','_handleOperation','call','idSuffix','path','LIVESHARE_TERMINATE','NEW_CHANGESETS','9kxpgWo','registerComponent','313676psrFwD','replace','attrs','getInitialStates','ONLINE','Disposable','registerInitialStateReporter','apply','_stopPresenting','url(#$1','colorChannel1','clsx'];_0xf020=function(){return _0x258137;};return _0xf020();}var re=Object[_0x52bceb(0xcd)],se=Object[_0x52bceb(0xa4)],oe=(_0x5094c4,_0x4ed784,_0x3bad58)=>_0x4ed784 in _0x5094c4?re(_0x5094c4,_0x4ed784,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3bad58}):_0x5094c4[_0x4ed784]=_0x3bad58,ae=(_0xbd2a26,_0x4ef222,_0x2680dd,_0x594741)=>{for(var _0xf76624=_0x594741>0x1?void 0x0:_0x594741?se(_0x4ef222,_0x2680dd):_0x4ef222,_0x38c79e=_0xbd2a26['length']-0x1,_0xca8282;_0x38c79e>=0x0;_0x38c79e--)(_0xca8282=_0xbd2a26[_0x38c79e])&&(_0xf76624=_0xca8282(_0xf76624)||_0xf76624);return _0xf76624;},N=(_0x6aaeaa,_0x480136)=>(_0x420790,_0x26e03c)=>_0x480136(_0x420790,_0x26e03c,_0x6aaeaa),T=(_0x416ec6,_0x69659f,_0x1cbf96)=>oe(_0x416ec6,typeof _0x69659f!=_0x52bceb(0xa1)?_0x69659f+'':_0x69659f,_0x1cbf96);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x52bceb(0x124)]=class extends o[_0x52bceb(0xe0)]{constructor(_0x1aaed0=x,_0x23a845,_0xddf09d){var _0x7f7f7c=_0x52bceb;super(),this[_0x7f7f7c(0x104)]=_0x1aaed0,this['_injector']=_0x23a845,this[_0x7f7f7c(0xea)]=_0xddf09d;const {..._0x18ce1f}=o[_0x7f7f7c(0x117)]({},x,this[_0x7f7f7c(0x104)]);this[_0x7f7f7c(0xea)]['setConfig']($,_0x18ce1f);}['onStarting'](){var _0x4a7502=_0x52bceb;o[_0x4a7502(0x12b)](this[_0x4a7502(0x10e)],o['mergeOverrideWithDependencies']([[E],[exports[_0x4a7502(0xc8)]],[O],[exports['DesktopLiveShareController']]],this['_config']['override'])),o['touchDependencies'](this[_0x4a7502(0x10e)],[[O]]);}[_0x52bceb(0x152)](){var _0x43169f=_0x52bceb;o[_0x43169f(0x13c)](this[_0x43169f(0x10e)],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x52bceb(0x124)],_0x52bceb(0x15c),o[_0x52bceb(0x107)][_0x52bceb(0x166)]),T(exports[_0x52bceb(0x124)],'pluginName',le),exports['UniverLiveSharePlugin']=ae([o[_0x52bceb(0xd3)](m[_0x52bceb(0xd8)]),N(0x1,o[_0x52bceb(0xe6)](o['Injector'])),N(0x2,o[_0x52bceb(0x157)])],exports[_0x52bceb(0x124)]),exports[_0x52bceb(0x142)]=A,exports[_0x52bceb(0x16f)]=E,exports[_0x52bceb(0x122)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x3c1b7a=_0x405b;(function(_0x507e3b,_0x29507e){var _0x29ec1c=_0x405b,_0x1e95e7=_0x507e3b();while(!![]){try{var _0xcfa8e9=-parseInt(_0x29ec1c(0x106))/0x1*(-parseInt(_0x29ec1c(0xda))/0x2)+-parseInt(_0x29ec1c(0xbf))/0x3+parseInt(_0x29ec1c(0x77))/0x4+-parseInt(_0x29ec1c(0xcb))/0x5+parseInt(_0x29ec1c(0x119))/0x6+-parseInt(_0x29ec1c(0x124))/0x7+parseInt(_0x29ec1c(0x11c))/0x8*(parseInt(_0x29ec1c(0x10e))/0x9);if(_0xcfa8e9===_0x29507e)break;else _0x1e95e7['push'](_0x1e95e7['shift']());}catch(_0x527287){_0x1e95e7['push'](_0x1e95e7['shift']());}}}(_0x126b,0x8c48b));var q=Object[_0x3c1b7a(0xea)],z=(_0x3a2f8f,_0x4da614,_0x340560)=>_0x4da614 in _0x3a2f8f?q(_0x3a2f8f,_0x4da614,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x340560}):_0x3a2f8f[_0x4da614]=_0x340560,d=(_0x3d6b16,_0x41c117,_0x5c70a8)=>z(_0x3d6b16,typeof _0x41c117!=_0x3c1b7a(0x88)?_0x41c117+'':_0x41c117,_0x5c70a8);import{CollaborationSessionService as _0x3126c5,SessionStatus as _0x28aeaf,UniverCollaborationClientPlugin as _0x448550}from'@univerjs-pro/collaboration-client';import{Disposable as _0x323048,toDisposable as _0x5b6db3,Inject as _0x44d7dc,IUniverInstanceService as _0x4ee65e,Injector as _0x3982c7,IConfigService as _0x311f9d,ICommandService as _0x2b2e54,RxDisposable as _0xb35da4,UniverInstanceType as _0xf73b2e,DisposableCollection as _0xfc2a49,CommandType as _0x5c5324,DependentOn as _0x36136c,Plugin as _0xdce91a,merge as _0x36fdb2,registerDependencies as _0x54f287,mergeOverrideWithDependencies as _0x11650d,touchDependencies as _0x3c79cd}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x73c008,InsertSheetMutation as _0x1bfc00}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x5710a6,SetScrollOperation as _0x1659f6}from'@univerjs/sheets-ui';import{useDependency as _0x103267,useObservable as _0x21db21,IUIPartsService as _0x5c593a,BuiltInUIPart as _0x32c72d,connectInjector as _0x1c269e}from'@univerjs/ui';import{jsx as _0x9d2327,jsxs as _0x1f971f,Fragment as _0x4453ed}from'react/jsx-runtime';import{Dropdown as _0x3cff0b,clsx as _0x3ef185,Button as _0x37beb2}from'@univerjs/design';import{forwardRef as _0x273538,useRef as _0x214092,createElement as _0x67ead4,useState as _0x4e5065,useEffect as _0x5916f3}from'react';function _0x405b(_0x948b8f,_0x18a7bf){var _0x126b1e=_0x126b();return _0x405b=function(_0x405be9,_0x4b4e36){_0x405be9=_0x405be9-0x77;var _0x1f5dc7=_0x126b1e[_0x405be9];return _0x1f5dc7;},_0x405b(_0x948b8f,_0x18a7bf);}import{CollaborationEvent as _0x375d8a,parseProtocolChangeset as _0x25f20b}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0xf256a4,Subject as _0x2c836c}from'rxjs';import{takeUntil as _0x1b3a20,throttleTime as _0x512dda}from'rxjs/operators';const Oe=_0x3c1b7a(0x9d),T={};class L extends _0x323048{constructor(){var _0x50050c=_0x3c1b7a;super(...arguments),d(this,_0x50050c(0x118),new Set()),d(this,_0x50050c(0xe4),new Set());}[_0x3c1b7a(0xd1)](_0x20a88a){var _0x190973=_0x3c1b7a;return this[_0x190973(0x118)]['add'](_0x20a88a),_0x5b6db3(()=>this['_sharedOperations']['delete'](_0x20a88a));}[_0x3c1b7a(0xa2)](_0x3da598){var _0x984e10=_0x3c1b7a;return this['_reporters'][_0x984e10(0xe5)](_0x3da598),_0x5b6db3(()=>this[_0x984e10(0xe4)][_0x984e10(0xdb)](_0x3da598));}[_0x3c1b7a(0xc8)](_0x1a97bb){var _0x434b79=_0x3c1b7a;return this[_0x434b79(0x118)][_0x434b79(0xe3)](_0x1a97bb);}['getInitialStates'](_0x56458e){var _0x51e784=_0x3c1b7a;return Array[_0x51e784(0x11b)](this[_0x51e784(0xe4)])['map'](_0x176112=>_0x176112(_0x56458e));}}var Ee=Object['getOwnPropertyDescriptor'],Ce=(_0x565c1d,_0x226b53,_0x1be891,_0x37942b)=>{var _0x5d3efb=_0x3c1b7a;for(var _0x36bf11=_0x37942b>0x1?void 0x0:_0x37942b?Ee(_0x226b53,_0x1be891):_0x226b53,_0x3f1c23=_0x565c1d[_0x5d3efb(0x85)]-0x1,_0x41c134;_0x3f1c23>=0x0;_0x3f1c23--)(_0x41c134=_0x565c1d[_0x3f1c23])&&(_0x36bf11=_0x41c134(_0x36bf11)||_0x36bf11);return _0x36bf11;},Ne=(_0x5d768f,_0x1336c3)=>(_0x6ef017,_0x459c17)=>_0x1336c3(_0x6ef017,_0x459c17,_0x5d768f);let m=class extends _0x323048{constructor(_0xe3bbdb){var _0x272286=_0x3c1b7a;super(),this[_0x272286(0xa9)]=_0xe3bbdb,this[_0x272286(0x8f)]();}['_init'](){var _0x3ca3e2=_0x3c1b7a;[_0x5710a6['id'],_0x1659f6['id'],_0x73c008['id']][_0x3ca3e2(0x7d)](_0x51f62a=>{var _0x2d919e=_0x3ca3e2;this[_0x2d919e(0x113)](this[_0x2d919e(0xa9)][_0x2d919e(0xd1)](_0x51f62a));});}};m=Ce([Ne(0x0,_0x44d7dc(L))],m);var c=function(){var _0x5c7388=_0x3c1b7a;return c=Object[_0x5c7388(0xa3)]||function(_0x288a19){var _0x2e4dde=_0x5c7388;for(var _0x487893,_0x5a3b6a=0x1,_0x99c6f8=arguments[_0x2e4dde(0x85)];_0x5a3b6a<_0x99c6f8;_0x5a3b6a++){_0x487893=arguments[_0x5a3b6a];for(var _0x5472be in _0x487893)Object[_0x2e4dde(0x105)][_0x2e4dde(0xbb)][_0x2e4dde(0x120)](_0x487893,_0x5472be)&&(_0x288a19[_0x5472be]=_0x487893[_0x5472be]);}return _0x288a19;},c[_0x5c7388(0x7b)](this,arguments);},we=function(_0x324de1,_0x5ded13){var _0x16d820=_0x3c1b7a,_0x39026c={};for(var _0xf56bd2 in _0x324de1)Object['prototype'][_0x16d820(0xbb)]['call'](_0x324de1,_0xf56bd2)&&_0x5ded13[_0x16d820(0xb6)](_0xf56bd2)<0x0&&(_0x39026c[_0xf56bd2]=_0x324de1[_0xf56bd2]);if(_0x324de1!=null&&typeof Object[_0x16d820(0xca)]=='function'){for(var _0x746c95=0x0,_0xf56bd2=Object[_0x16d820(0xca)](_0x324de1);_0x746c95<_0xf56bd2[_0x16d820(0x85)];_0x746c95++)_0x5ded13[_0x16d820(0xb6)](_0xf56bd2[_0x746c95])<0x0&&Object[_0x16d820(0x105)][_0x16d820(0xef)][_0x16d820(0x120)](_0x324de1,_0xf56bd2[_0x746c95])&&(_0x39026c[_0xf56bd2[_0x746c95]]=_0x324de1[_0xf56bd2[_0x746c95]]);}return _0x39026c;},W=_0x273538(function(_0x3c05f6,_0x287a51){var _0x4b5c48=_0x3c1b7a,_0x23eac1=_0x3c05f6[_0x4b5c48(0x96)],_0x1229e0=_0x3c05f6['id'],_0x4d38a6=_0x3c05f6[_0x4b5c48(0xd2)],_0x51fc3e=_0x3c05f6[_0x4b5c48(0x126)],_0x420e66=we(_0x3c05f6,['icon','id',_0x4b5c48(0xd2),'extend']),_0x2bb639=_0x4b5c48(0x8b)[_0x4b5c48(0x127)](_0x1229e0,'\x20')[_0x4b5c48(0x127)](_0x4d38a6||'')[_0x4b5c48(0x12b)](),_0x15d859=_0x214092('_'['concat'](Le()));return Y(_0x23eac1,''[_0x4b5c48(0x127)](_0x1229e0),{'defIds':_0x23eac1[_0x4b5c48(0xf3)],'idSuffix':_0x15d859[_0x4b5c48(0x7e)]},c({'ref':_0x287a51,'className':_0x2bb639},_0x420e66),_0x51fc3e);});function Y(_0x568103,_0x1c5e61,_0x39ec64,_0x58f3e0,_0x2bb6a3){var _0xbb991e=_0x3c1b7a;return _0x67ead4(_0x568103[_0xbb991e(0xeb)],c(c({'key':_0x1c5e61},De(_0x568103,_0x39ec64,_0x2bb6a3)),_0x58f3e0),(xe(_0x568103,_0x39ec64)[_0xbb991e(0x78)]||[])[_0xbb991e(0x103)](function(_0x105a01,_0x57cb7f){var _0x1dd521=_0xbb991e;return Y(_0x105a01,''['concat'](_0x1c5e61,'-')[_0x1dd521(0x127)](_0x568103[_0x1dd521(0xeb)],'-')[_0x1dd521(0x127)](_0x57cb7f),_0x39ec64,void 0x0,_0x2bb6a3);}));}function De(_0x58a1b9,_0x32d103,_0x4ea62e){var _0x26a381=_0x3c1b7a,_0x38317c=c({},_0x58a1b9[_0x26a381(0x98)]);_0x4ea62e!=null&&_0x4ea62e['colorChannel1']&&_0x38317c['fill']===_0x26a381(0xc4)&&(_0x38317c[_0x26a381(0xcc)]=_0x4ea62e[_0x26a381(0xc4)]),_0x58a1b9[_0x26a381(0xeb)]===_0x26a381(0x114)&&_0x38317c['id']&&(_0x38317c['id']=_0x38317c['id']+_0x32d103[_0x26a381(0xb9)]),Object[_0x26a381(0x7f)](_0x38317c)[_0x26a381(0x7d)](function(_0x219596){var _0x32f156=_0x26a381,_0x511607=_0x219596[0x0],_0x3103dc=_0x219596[0x1];_0x511607===_0x32f156(0x114)&&typeof _0x3103dc==_0x32f156(0xc7)&&(_0x38317c[_0x511607]=_0x3103dc['replace'](/url\(#(.*)\)/,_0x32f156(0xfa)[_0x32f156(0x127)](_0x32d103[_0x32f156(0xb9)],')')));});var _0x1ce6d4=_0x32d103[_0x26a381(0xf3)];return!_0x1ce6d4||_0x1ce6d4[_0x26a381(0x85)]===0x0||(_0x58a1b9['tag']===_0x26a381(0x11f)&&_0x38317c[_0x26a381(0x128)]&&(_0x38317c['xlink:href']=_0x38317c[_0x26a381(0x128)]+_0x32d103[_0x26a381(0xb9)]),Object[_0x26a381(0x7f)](_0x38317c)[_0x26a381(0x7d)](function(_0x23c59b){var _0x50caba=_0x26a381,_0x41122d=_0x23c59b[0x0],_0x3e3f1f=_0x23c59b[0x1];typeof _0x3e3f1f=='string'&&(_0x38317c[_0x41122d]=_0x3e3f1f[_0x50caba(0xb0)](/url\(#(.*)\)/,_0x50caba(0xfa)[_0x50caba(0x127)](_0x32d103['idSuffix'],')')));})),_0x38317c;}function xe(_0x108a3b,_0x2f4dc8){var _0x4f8a3f=_0x3c1b7a,_0xa98e14,_0x2d6497=_0x2f4dc8[_0x4f8a3f(0xf3)];return!_0x2d6497||_0x2d6497['length']===0x0?_0x108a3b:_0x108a3b[_0x4f8a3f(0xeb)]===_0x4f8a3f(0xf2)&&(!((_0xa98e14=_0x108a3b[_0x4f8a3f(0x78)])===null||_0xa98e14===void 0x0)&&_0xa98e14['length'])?c(c({},_0x108a3b),{'children':_0x108a3b[_0x4f8a3f(0x78)]['map'](function(_0x29257f){var _0x46b3c5=_0x4f8a3f;return typeof _0x29257f[_0x46b3c5(0x98)]['id']==_0x46b3c5(0xc7)&&_0x2d6497&&_0x2d6497[_0x46b3c5(0xb6)](_0x29257f[_0x46b3c5(0x98)]['id'])>-0x1?c(c({},_0x29257f),{'attrs':c(c({},_0x29257f[_0x46b3c5(0x98)]),{'id':_0x29257f['attrs']['id']+_0x2f4dc8['idSuffix']})}):_0x29257f;})}):_0x108a3b;}function Le(){var _0x155c65=_0x3c1b7a;return Math[_0x155c65(0xd3)]()['toString'](0x24)[_0x155c65(0xa7)](0x2,0x8);}W[_0x3c1b7a(0x123)]=_0x3c1b7a(0xab);var ye={'tag':'svg','attrs':{'fill':_0x3c1b7a(0x12c),'viewBox':_0x3c1b7a(0xdd),'width':'1em','height':_0x3c1b7a(0x80)},'children':[{'tag':_0x3c1b7a(0x81),'attrs':{'fill':_0x3c1b7a(0xf6),'d':_0x3c1b7a(0x8a)}},{'tag':_0x3c1b7a(0x81),'attrs':{'fill':_0x3c1b7a(0xf6),'d':_0x3c1b7a(0xe8),'fillRule':'evenodd','clipRule':_0x3c1b7a(0x10c)}}]},B=_0x273538(function(_0x13cae0,_0x34a970){var _0x35e9f7=_0x3c1b7a;return _0x67ead4(W,Object[_0x35e9f7(0xa3)]({},_0x13cae0,{'id':'live-share-single','ref':_0x34a970,'icon':ye}));});B[_0x3c1b7a(0x123)]=_0x3c1b7a(0xb8);var Re=Object[_0x3c1b7a(0x121)],Z=(_0x159f3a,_0x365107,_0x2bd819,_0x213b70)=>{var _0x42995a=_0x3c1b7a;for(var _0x2adf07=_0x213b70>0x1?void 0x0:_0x213b70?Re(_0x365107,_0x2bd819):_0x365107,_0x3916b8=_0x159f3a[_0x42995a(0x85)]-0x1,_0x57b6e8;_0x3916b8>=0x0;_0x3916b8--)(_0x57b6e8=_0x159f3a[_0x3916b8])&&(_0x2adf07=_0x57b6e8(_0x2adf07)||_0x2adf07);return _0x2adf07;},f=(_0x35086b,_0x4e0873)=>(_0x41b786,_0x42e305)=>_0x4e0873(_0x41b786,_0x42e305,_0x35086b);let I=class extends _0xb35da4{constructor(_0x1f25fe,_0x5dd7f4,_0x7a7568){var _0x3bae88=_0x3c1b7a;super(),d(this,_0x3bae88(0xaa),new Map()),(this[_0x3bae88(0x116)]=_0x1f25fe,this[_0x3bae88(0x99)]=_0x5dd7f4,this[_0x3bae88(0xbc)]=_0x7a7568,this[_0x3bae88(0x8f)]());}async[_0x3c1b7a(0x122)](_0x33e957){var _0x4e5576=_0x3c1b7a;return this['_entities'][_0x4e5576(0xe3)](_0x33e957)||await this[_0x4e5576(0xc2)](_0x33e957),this[_0x4e5576(0xaa)][_0x4e5576(0x129)](_0x33e957);}['_init'](){var _0x2e5611=_0x3c1b7a;this[_0x2e5611(0x116)][_0x2e5611(0x11e)](_0xf73b2e['UNIVER_SHEET'])[_0x2e5611(0x100)](_0x1b3a20(this[_0x2e5611(0x86)]))[_0x2e5611(0x10d)](async _0x5ca17f=>{var _0x2ae5bd=_0x2e5611;const _0x17a5fd=_0x5ca17f[_0x2ae5bd(0xde)]();this[_0x2ae5bd(0xaa)][_0x2ae5bd(0xe3)](_0x17a5fd)||this[_0x2ae5bd(0xc2)](_0x17a5fd);}),this[_0x2e5611(0x116)][_0x2e5611(0x84)](_0xf73b2e[_0x2e5611(0x7c)])['pipe'](_0x1b3a20(this[_0x2e5611(0x86)]))[_0x2e5611(0x10d)](_0x4fe4ac=>{var _0x49732a=_0x2e5611;const _0x390bc1=_0x4fe4ac['getUnitId'](),_0x26b695=this[_0x49732a(0xaa)][_0x49732a(0x129)](_0x390bc1);_0x26b695==null||_0x26b695['dispose']();});}async[_0x3c1b7a(0xc2)](_0x102daf){var _0x3c3ccf=_0x3c1b7a;const _0x53280c=await this[_0x3c3ccf(0xbc)]['requireSession'](_0x102daf),_0x14c2bf=this[_0x3c3ccf(0x99)][_0x3c3ccf(0xe9)](w,_0x102daf,_0x53280c);return _0x14c2bf[_0x3c3ccf(0xfb)](),this['_entities'][_0x3c3ccf(0x9a)](_0x102daf,_0x14c2bf),_0x14c2bf;}};I=Z([f(0x0,_0x4ee65e),f(0x1,_0x44d7dc(_0x3982c7)),f(0x2,_0x44d7dc(_0x3126c5))],I);var h=(_0x3e212d=>(_0x3e212d[_0x3c1b7a(0xa6)]=_0x3c1b7a(0xb5),_0x3e212d[_0x3c1b7a(0x9b)]=_0x3c1b7a(0xe0),_0x3e212d['FOLLOWING']='following',_0x3e212d[_0x3c1b7a(0xc9)]=_0x3c1b7a(0xa1),_0x3e212d[_0x3c1b7a(0x93)]=_0x3c1b7a(0xb2),_0x3e212d))(h||{});const Pe=_0x3c1b7a(0x125),Ae=0xc8;let w=class extends _0xb35da4{constructor(_0x46723,_0x30c8b9,_0x15a028,_0x5e0938,_0xc27aab){var _0x1bdf47=_0x3c1b7a;super(),d(this,_0x1bdf47(0x95),new _0xf256a4('idle')),d(this,_0x1bdf47(0xff),this[_0x1bdf47(0x95)][_0x1bdf47(0xd9)]()),d(this,'_init',!0x1),d(this,_0x1bdf47(0x11a),null),d(this,'_presenter',null),(this['_unitID']=_0x46723,this[_0x1bdf47(0x83)]=_0x30c8b9,this['_configService']=_0x15a028,this[_0x1bdf47(0xa9)]=_0x5e0938,this['_commandService']=_0xc27aab);}get[_0x3c1b7a(0xd8)](){var _0x2e44c9=_0x3c1b7a;return this[_0x2e44c9(0x95)][_0x2e44c9(0x10b)]();}[_0x3c1b7a(0x92)](){var _0x571165=_0x3c1b7a,_0x2d6485;(_0x2d6485=this[_0x571165(0x11a)])==null||_0x2d6485[_0x571165(0x92)](),this[_0x571165(0x95)]['next'](_0x571165(0xe0)),this[_0x571165(0x95)][_0x571165(0xdc)]();}[_0x3c1b7a(0xfb)](){var _0x391024=_0x3c1b7a;this[_0x391024(0x8f)]||(this[_0x391024(0x8f)]=!0x0,this[_0x391024(0x83)]['sessionStatus$'][_0x391024(0x100)](_0x1b3a20(this['dispose$']))[_0x391024(0x10d)](_0x1e2ed5=>{var _0xdfa093=_0x391024;switch(_0x1e2ed5){case _0x28aeaf[_0xdfa093(0xa6)]:this['_handleOffline']();break;case _0x28aeaf['ONLINE']:this[_0xdfa093(0xa4)]();break;}}),this['_collabSession'][_0x391024(0xce)]['pipe'](_0x1b3a20(this[_0x391024(0x86)]))[_0x391024(0x10d)](_0x2b47bc=>{var _0x16f9d4=_0x391024;const {eventID:_0x5cf41f}=_0x2b47bc;switch(_0x5cf41f){case _0x375d8a[_0x16f9d4(0xe7)]:this[_0x16f9d4(0xbe)](_0x2b47bc);break;case _0x375d8a[_0x16f9d4(0x94)]:this[_0x16f9d4(0xd4)](_0x2b47bc);break;case _0x375d8a[_0x16f9d4(0x82)]:this[_0x16f9d4(0xf7)]();break;case _0x375d8a[_0x16f9d4(0xb7)]:this['_handleNewChangeSets'](_0x2b47bc);break;}}));}['tryStartPresenting'](){var _0x40007e=_0x3c1b7a;this[_0x40007e(0x83)][_0x40007e(0xfe)]({'eventID':_0x375d8a['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x40007e(0x104)],'userID':this[_0x40007e(0x83)]['getMemberID']()}},this[_0x40007e(0x104)]);}[_0x3c1b7a(0x108)](){var _0x38a618=_0x3c1b7a;this[_0x38a618(0xd8)]===_0x38a618(0xb2)&&(this['_status$'][_0x38a618(0x10f)](_0x38a618(0xe0)),this[_0x38a618(0x83)][_0x38a618(0xfe)]({'eventID':_0x375d8a[_0x38a618(0x82)],'data':{'unitID':this[_0x38a618(0x104)]}},this[_0x38a618(0x104)]));}[_0x3c1b7a(0x110)](){var _0x21e8c3=_0x3c1b7a;this['_status']===_0x21e8c3(0xa1)&&(this['_status$']['next'](_0x21e8c3(0xaf)),this['_startFollowing']());}[_0x3c1b7a(0x90)](){var _0x445a3a=_0x3c1b7a;this['_status']===_0x445a3a(0xaf)&&this[_0x445a3a(0xb4)]();}[_0x3c1b7a(0xbe)](_0x1510dd){var _0x5a4ac6=_0x3c1b7a;const {presenter:_0x114589}=_0x1510dd['data'],_0x47f194=this[_0x5a4ac6(0x83)][_0x5a4ac6(0x89)]();this[_0x5a4ac6(0x9e)]=_0x114589,_0x114589===_0x47f194?(this[_0x5a4ac6(0xb4)](),this[_0x5a4ac6(0xcf)]()):this[_0x5a4ac6(0xd8)]!==_0x5a4ac6(0xa1)&&(this[_0x5a4ac6(0xc1)](),this['_startFollowing']());}[_0x3c1b7a(0x87)](){var _0xaf0bf6=_0x3c1b7a;const _0x316e4a={'eventID':_0x375d8a['LIVESHARE_FETCH_OPERATIONS']};this[_0xaf0bf6(0x83)][_0xaf0bf6(0xfe)](_0x316e4a,this[_0xaf0bf6(0x104)]);}['_handleTerminate'](){var _0x2a9e9d=_0x3c1b7a;this['_presenter']=null,this[_0x2a9e9d(0xd8)]!==_0x2a9e9d(0xb2)&&this[_0x2a9e9d(0x7a)]();}[_0x3c1b7a(0x107)](_0x2dfea7){var _0x208135=_0x3c1b7a;if(this[_0x208135(0xd8)]===_0x208135(0xaf)&&this[_0x208135(0x9e)]===_0x2dfea7[_0x208135(0xed)][_0x208135(0x9c)]){const _0x4ad2ec=_0x25f20b(_0x2dfea7[_0x208135(0xed)])[_0x208135(0x109)][_0x208135(0x91)]()[_0x208135(0x8d)](_0xfea2f6=>_0xfea2f6['id']===_0x1bfc00['id']);if(_0x4ad2ec){const _0xeed90e=_0x4ad2ec[_0x208135(0x9f)][_0x208135(0xb3)],_0x3d8159=_0x4ad2ec['params'][_0x208135(0xba)]['id'];setTimeout(()=>{var _0x328b77=_0x208135;this[_0x328b77(0xf0)][_0x328b77(0xc6)](_0x73c008['id'],{'unitId':_0xeed90e,'subUnitId':_0x3d8159},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x30cf7d=_0x3c1b7a;this['_status$'][_0x30cf7d(0x10f)](_0x30cf7d(0xb2));const _0x5874a8=new Map(),_0x457fb7=this[_0x30cf7d(0x11a)]=new _0xfc2a49();_0x457fb7[_0x30cf7d(0xe5)](_0x5b6db3(()=>{var _0x31d280=_0x30cf7d;_0x5874a8[_0x31d280(0x7d)](_0xabbc67=>_0xabbc67[_0x31d280(0xdc)]()),_0x5874a8[_0x31d280(0xe6)]();})),_0x457fb7[_0x30cf7d(0xe5)](this['_commandService'][_0x30cf7d(0xec)](_0x51d9c8=>{var _0x232540=_0x30cf7d,_0x13a4fc;if(_0x51d9c8[_0x232540(0x101)]!==_0x5c5324[_0x232540(0x97)]||!this[_0x232540(0xa9)]['shouldShareOperation'](_0x51d9c8['id']))return;const {id:_0x52697c}=_0x51d9c8;let _0x276ebc;_0x5874a8[_0x232540(0xe3)](_0x52697c)?_0x276ebc=_0x5874a8[_0x232540(0x129)](_0x52697c):(_0x276ebc=new _0x2c836c(),_0x5874a8[_0x232540(0x9a)](_0x52697c,_0x276ebc),_0x276ebc[_0x232540(0x100)](_0x512dda((_0x13a4fc=this[_0x232540(0x102)][_0x232540(0x11d)](Pe))!=null?_0x13a4fc:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x232540(0x10d)](_0x4d4aaa=>{var _0x5c76b1=_0x232540;this[_0x5c76b1(0x83)][_0x5c76b1(0xfe)]({'eventID':_0x375d8a[_0x5c76b1(0x94)],'data':{'unitID':this[_0x5c76b1(0x104)],'operations':{[_0x4d4aaa['id']]:{'id':_0x4d4aaa['id'],'params':JSON['stringify'](_0x4d4aaa[_0x5c76b1(0x9f)])}}}},this[_0x5c76b1(0x104)]);})),_0x276ebc[_0x232540(0x10f)](_0x51d9c8);})),this[_0x30cf7d(0xa9)][_0x30cf7d(0xfd)](this[_0x30cf7d(0x104)])[_0x30cf7d(0x7d)](_0x11c9ae=>this[_0x30cf7d(0x83)]['send']({'eventID':_0x375d8a[_0x30cf7d(0x94)],'data':{'unitID':this[_0x30cf7d(0x104)],'operations':{[_0x11c9ae['id']]:{'id':_0x11c9ae['id'],'params':JSON[_0x30cf7d(0xfc)](_0x11c9ae[_0x30cf7d(0x9f)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x5246eb=_0x3c1b7a,_0xef2396;this[_0x5246eb(0x95)]['next'](_0x5246eb(0xe0)),(_0xef2396=this[_0x5246eb(0x11a)])==null||_0xef2396[_0x5246eb(0x92)](),this[_0x5246eb(0x11a)]=null;}[_0x3c1b7a(0xc0)](){var _0x81614a=_0x3c1b7a,_0x2a3c98;(_0x2a3c98=this[_0x81614a(0x11a)])==null||_0x2a3c98[_0x81614a(0x92)](),this['_status$'][_0x81614a(0x10f)](_0x81614a(0xaf));}['_beIdle'](){var _0x221ab1=_0x3c1b7a,_0xbc21ac;this[_0x221ab1(0x95)][_0x221ab1(0x10f)](_0x221ab1(0xe0)),(_0xbc21ac=this['_commandDisposable'])==null||_0xbc21ac[_0x221ab1(0x92)](),this['_commandDisposable']=null;}[_0x3c1b7a(0xb4)](){var _0x442ab9=_0x3c1b7a,_0x4a0462;this['_status$'][_0x442ab9(0x10f)](_0x442ab9(0xa1)),(_0x4a0462=this['_commandDisposable'])==null||_0x4a0462['dispose']();}[_0x3c1b7a(0xd4)](_0x5438ab){var _0x2943cf=_0x3c1b7a;if([_0x2943cf(0xb2),_0x2943cf(0xa1),_0x2943cf(0xb5)][_0x2943cf(0xcd)](this['_status'])||!_0x5438ab['data'][_0x2943cf(0xd5)]||_0x5438ab[_0x2943cf(0xed)][_0x2943cf(0xd5)]===this[_0x2943cf(0x83)][_0x2943cf(0x89)]())return;this[_0x2943cf(0xd8)]===_0x2943cf(0xe0)&&this[_0x2943cf(0xc0)]();const _0x814d3d=_0x5438ab[_0x2943cf(0xed)]['operations'];Object[_0x2943cf(0x8c)](_0x814d3d)['forEach'](_0x42b69a=>{var _0x38f8ef=_0x2943cf;this[_0x38f8ef(0xf0)][_0x38f8ef(0xc6)](_0x42b69a['id'],_0x42b69a[_0x38f8ef(0x9f)]?JSON[_0x38f8ef(0xa0)](_0x42b69a['params']):null,{'fromCollab':!0x0});});}[_0x3c1b7a(0xe1)](){var _0x5e684e=_0x3c1b7a,_0x1539d7;this[_0x5e684e(0x95)][_0x5e684e(0x10f)](_0x5e684e(0xb5)),(_0x1539d7=this[_0x5e684e(0x11a)])==null||_0x1539d7[_0x5e684e(0x92)]();}['_handleOnline'](){var _0x56f1a5=_0x3c1b7a;this[_0x56f1a5(0x95)][_0x56f1a5(0x10f)](_0x56f1a5(0xe0)),this[_0x56f1a5(0x87)]();}};w=Z([f(0x2,_0x311f9d),f(0x3,_0x44d7dc(L)),f(0x4,_0x2b2e54)],w);function _0x126b(){var _0x382dcf=['_unitID','prototype','213319qiXXat','_handleNewChangeSets','stopPresenting','mutations','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','getValue','evenodd','subscribe','139437cdfFqD','next','startFollowing','pluginName','You\x27re\x20presenting\x20the\x20document','disposeWithMe','mask','setConfig','_univerInstanceService','_config','_sharedOperations','4788144cPGehs','_commandDisposable','from','24uIzgbC','getConfig','getTypeOfUnitAdded$','use','call','getOwnPropertyDescriptor','getLiveShareCoordinator','displayName','7082075bVrmqQ','SAME_OPERATION_SHARE_INTERVAL','extend','concat','xlink:href','get','UNIVER_UNKNOWN','trim','none','3798320ZIvbAL','children','button','_beIdle','apply','UNIVER_SHEET','forEach','current','entries','1em','path','LIVESHARE_TERMINATE','_collabSession','getTypeOfUnitDisposed$','length','dispose$','_fetchOperations','symbol','getMemberID','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','univerjs-icon\x20univerjs-icon-','values','find','UNIVER_LIVE_SHARE_PLUGIN','_init','stopFollowing','reverse','dispose','PRESENTING','LIVESHARE_OPERATION','_status$','icon','OPERATION','attrs','_injector','set','IDLE','memberID','live-share.config','_presenter','params','parse','not-following','registerInitialStateReporter','assign','_handleOnline','You\x27are\x20offline.','OFFLINE','substring','univer-w-full\x20univer-mb-3\x20univer-text-sm','_liveShareService','_entities','UniverIcon','override','registerComponent','text','following','replace','end','presenting','unitId','_stopFollowing','offline','indexOf','NEW_CHANGESETS','LiveShareSingle','idSuffix','sheet','hasOwnProperty','_collabSessionService','Stop\x20following','_handleNewHost','1012845nxnNBs','_startFollowing','_stopPresenting','_startLiveShareCoordinator','default','colorChannel1','You\x27re\x20following\x20the\x20presenter','executeCommand','string','shouldShareOperation','NOT_FOLLOWING','getOwnPropertySymbols','4683675dPmXiD','fill','includes','event$','_startPresenting','_mountLiveShare','registerSharedOperation','className','random','_handleOperation','presenter','getCurrentTypeOfUnit$','univer-size-4','_status','asObservable','10sXYYhJ','delete','complete','0\x200\x2016\x2016','getUnitId','Present\x20this\x20document','idle','_handleOffline','_uiPartsService','has','_reporters','add','clear','LIVESHARE_NEW_HOST','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','createInstance','defineProperty','tag','onCommandExecuted','data','tryStartPresenting','propertyIsEnumerable','_commandService','div','defs','defIds','unsubscribe','then','currentColor','_handleTerminate','onRendered','Start\x20following','url(#$1','init','stringify','getInitialStates','send','status$','pipe','type','_configService','map'];_0x126b=function(){return _0x382dcf;};return _0x126b();}function Te(){var _0x1cb758=_0x3c1b7a;const _0x8281e4=_0x103267(I),_0x572b4b=_0x103267(_0x4ee65e),_0x37daaa=_0x21db21(()=>_0x572b4b[_0x1cb758(0xd6)](_0xf73b2e[_0x1cb758(0x7c)]),void 0x0,!0x1,[]),[_0x5a2825,_0x4912ad]=_0x4e5065(null),[_0x25fe46,_0x2b4d1e]=_0x4e5065(h[_0x1cb758(0x9b)]),_0x17cfc5=_0x214092(null);return _0x5916f3(()=>(_0x37daaa&&_0x8281e4[_0x1cb758(0x122)](_0x37daaa[_0x1cb758(0xde)]())[_0x1cb758(0xf5)](_0x17b548=>{var _0x2ddfe4=_0x1cb758;_0x4912ad(_0x17b548),_0x17cfc5['current']=_0x17b548[_0x2ddfe4(0xff)][_0x2ddfe4(0x10d)](_0x1e258f=>{_0x2b4d1e(_0x1e258f);});}),()=>{var _0x2bda45=_0x1cb758,_0x4600ed;(_0x4600ed=_0x17cfc5[_0x2bda45(0x7e)])==null||_0x4600ed[_0x2bda45(0xf4)](),_0x17cfc5[_0x2bda45(0x7e)]=null;}),[_0x37daaa,_0x8281e4]),_0x5a2825?_0x9d2327(_0x3cff0b,{'align':_0x1cb758(0xb1),'disabled':_0x25fe46===h['OFFLINE'],'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':_0x9d2327($e,{'status':_0x25fe46,'coordinator':_0x5a2825}),'children':_0x9d2327(_0x1cb758(0x79),{'className':_0x3ef185(_0x1cb758(0x10a),{'univer-cursor-not-allowed':_0x25fe46===h[_0x1cb758(0xa6)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x25fe46!==h[_0x1cb758(0xa6)]}),'type':_0x1cb758(0x79),'children':_0x9d2327(B,{'className':_0x1cb758(0xd7)})})}):null;}function $e(_0x1d8807){var _0xf97b75=_0x3c1b7a;const {status:_0x7fc47b,coordinator:_0x457378}=_0x1d8807;switch(_0x7fc47b){case h[_0xf97b75(0x9b)]:return _0x9d2327(Fe,{'coordinator':_0x457378});case h['FOLLOWING']:return _0x9d2327(He,{'coordinator':_0x457378});case h[_0xf97b75(0xc9)]:return _0x9d2327(je,{'coordinator':_0x457378});case h[_0xf97b75(0xa6)]:return _0x9d2327(Ve,{});case h[_0xf97b75(0x93)]:return _0x9d2327(Ue,{'coordinator':_0x457378});default:return null;}}function Fe(_0x49bccf){var _0x4495b8=_0x3c1b7a;const {coordinator:_0x32e716}=_0x49bccf;return _0x1f971f(_0x4453ed,{'children':[_0x9d2327(_0x4495b8(0xf1),{'className':_0x4495b8(0xa8),'children':_0x4495b8(0xdf)}),_0x9d2327(_0x37beb2,{'onClick':()=>_0x32e716[_0x4495b8(0xee)](),'children':'Start'})]});}function He(_0x4cd827){var _0x192921=_0x3c1b7a;const {coordinator:_0x151719}=_0x4cd827;return _0x1f971f(_0x4453ed,{'children':[_0x9d2327(_0x192921(0xf1),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x192921(0xc5)}),_0x9d2327(_0x37beb2,{'onClick':()=>_0x151719[_0x192921(0x90)](),'children':_0x192921(0xbd)})]});}function je(_0x161bad){var _0x1d64f6=_0x3c1b7a;const {coordinator:_0x5f2355}=_0x161bad;return _0x1f971f(_0x4453ed,{'children':[_0x9d2327('div',{'className':_0x1d64f6(0xa8),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x9d2327(_0x37beb2,{'variant':_0x1d64f6(0xae),'onClick':()=>_0x5f2355[_0x1d64f6(0x110)](),'children':_0x1d64f6(0xf9)})]});}function Ue(_0x3fe174){var _0x4255c0=_0x3c1b7a;const {coordinator:_0x25a6e6}=_0x3fe174;return _0x1f971f(_0x4453ed,{'children':[_0x9d2327(_0x4255c0(0xf1),{'className':_0x4255c0(0xa8),'children':_0x4255c0(0x112)}),_0x9d2327(_0x37beb2,{'variant':_0x4255c0(0xc3),'onClick':()=>_0x25a6e6[_0x4255c0(0x108)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x51cb38=_0x3c1b7a;return _0x9d2327(_0x4453ed,{'children':_0x51cb38(0xa5)});}var Me=Object[_0x3c1b7a(0x121)],ke=(_0x1b38b3,_0x504b89,_0x357ae5,_0x5c9bb6)=>{var _0x10eccb=_0x3c1b7a;for(var _0x3a9cd1=_0x5c9bb6>0x1?void 0x0:_0x5c9bb6?Me(_0x504b89,_0x357ae5):_0x504b89,_0x109b6f=_0x1b38b3[_0x10eccb(0x85)]-0x1,_0x1b2e8d;_0x109b6f>=0x0;_0x109b6f--)(_0x1b2e8d=_0x1b38b3[_0x109b6f])&&(_0x3a9cd1=_0x1b2e8d(_0x3a9cd1)||_0x3a9cd1);return _0x3a9cd1;},$=(_0x58e6a8,_0x49cbf6)=>(_0x310ae4,_0x5e2b1e)=>_0x49cbf6(_0x310ae4,_0x5e2b1e,_0x58e6a8);let b=class extends _0x323048{constructor(_0x4e5c54,_0x1735be){var _0x5ef54e=_0x3c1b7a;super(),this[_0x5ef54e(0x99)]=_0x4e5c54,this[_0x5ef54e(0xe2)]=_0x1735be,this[_0x5ef54e(0xd0)]();}[_0x3c1b7a(0xd0)](){var _0x491a87=_0x3c1b7a;this[_0x491a87(0x113)](this[_0x491a87(0xe2)][_0x491a87(0xad)](_0x32c72d['HEADER_MENU'],()=>_0x1c269e(Te,this[_0x491a87(0x99)])));}};b=ke([$(0x0,_0x44d7dc(_0x3982c7)),$(0x1,_0x5c593a)],b);var Ge=Object[_0x3c1b7a(0xea)],We=Object[_0x3c1b7a(0x121)],Ye=(_0x443266,_0xdd52b5,_0x5be062)=>_0xdd52b5 in _0x443266?Ge(_0x443266,_0xdd52b5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5be062}):_0x443266[_0xdd52b5]=_0x5be062,Be=(_0x1819df,_0xdf19a5,_0x19542d,_0x278520)=>{var _0x27a3ed=_0x3c1b7a;for(var _0x4e3576=_0x278520>0x1?void 0x0:_0x278520?We(_0xdf19a5,_0x19542d):_0xdf19a5,_0x46087a=_0x1819df[_0x27a3ed(0x85)]-0x1,_0x3f34c9;_0x46087a>=0x0;_0x46087a--)(_0x3f34c9=_0x1819df[_0x46087a])&&(_0x4e3576=_0x3f34c9(_0x4e3576)||_0x4e3576);return _0x4e3576;},F=(_0xbf00c6,_0x57dfc2)=>(_0x3249ea,_0x659cdc)=>_0x57dfc2(_0x3249ea,_0x659cdc,_0xbf00c6),J=(_0x62c7a8,_0x1ff566,_0x2a0d3a)=>Ye(_0x62c7a8,typeof _0x1ff566!='symbol'?_0x1ff566+'':_0x1ff566,_0x2a0d3a);const Ze=_0x3c1b7a(0x8e);let O=class extends _0xdce91a{constructor(_0x305d56=T,_0x31ddf1,_0x498150){var _0x32d467=_0x3c1b7a;super(),this['_config']=_0x305d56,this['_injector']=_0x31ddf1,this[_0x32d467(0x102)]=_0x498150;const {..._0x3f0997}=_0x36fdb2({},T,this[_0x32d467(0x117)]);this[_0x32d467(0x102)][_0x32d467(0x115)](Oe,_0x3f0997);}['onStarting'](){var _0xc23b0b=_0x3c1b7a;_0x54f287(this[_0xc23b0b(0x99)],_0x11650d([[L],[I],[m],[b]],this[_0xc23b0b(0x117)][_0xc23b0b(0xac)])),_0x3c79cd(this[_0xc23b0b(0x99)],[[m]]);}[_0x3c1b7a(0xf8)](){var _0x3c9304=_0x3c1b7a;_0x3c79cd(this[_0x3c9304(0x99)],[[b]]);}};J(O,'type',_0xf73b2e[_0x3c1b7a(0x12a)]),J(O,_0x3c1b7a(0x111),Ze),O=Be([_0x36136c(_0x448550),F(0x1,_0x44d7dc(_0x3982c7)),F(0x2,_0x311f9d)],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 _0x4c562c=_0x4c96;(function(_0x300af4,_0x362c6a){var _0x338fbb=_0x4c96,_0x327a0f=_0x300af4();while(!![]){try{var _0xd5d020=parseInt(_0x338fbb(0x1a0))/0x1*(parseInt(_0x338fbb(0x1bc))/0x2)+-parseInt(_0x338fbb(0x196))/0x3*(parseInt(_0x338fbb(0x1bb))/0x4)+-parseInt(_0x338fbb(0x202))/0x5*(-parseInt(_0x338fbb(0x20d))/0x6)+-parseInt(_0x338fbb(0x172))/0x7*(parseInt(_0x338fbb(0x1ba))/0x8)+parseInt(_0x338fbb(0x15b))/0x9*(parseInt(_0x338fbb(0x19b))/0xa)+-parseInt(_0x338fbb(0x1e6))/0xb*(-parseInt(_0x338fbb(0x1df))/0xc)+-parseInt(_0x338fbb(0x177))/0xd*(parseInt(_0x338fbb(0x19e))/0xe);if(_0xd5d020===_0x362c6a)break;else _0x327a0f['push'](_0x327a0f['shift']());}catch(_0x2ffa8b){_0x327a0f['push'](_0x327a0f['shift']());}}}(_0x1f35,0x3a14b));var q=Object[_0x4c562c(0x162)],z=(_0x435ae3,_0x133333,_0x38b93e)=>_0x133333 in _0x435ae3?q(_0x435ae3,_0x133333,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38b93e}):_0x435ae3[_0x133333]=_0x38b93e,d=(_0x1feeca,_0x4ce593,_0x595ab5)=>z(_0x1feeca,typeof _0x4ce593!='symbol'?_0x4ce593+'':_0x4ce593,_0x595ab5);import{CollaborationSessionService as _0x4bced4,SessionStatus as _0x406a9c,UniverCollaborationClientPlugin as _0x364d6e}from'@univerjs-pro/collaboration-client';import{Disposable as _0x33c3c3,toDisposable as _0x5c277b,Inject as _0x28b8e2,IUniverInstanceService as _0x39e568,Injector as _0x37932d,IConfigService as _0x12fb39,ICommandService as _0x444a63,RxDisposable as _0x30c532,UniverInstanceType as _0x5516a4,DisposableCollection as _0x533c1f,CommandType as _0x29ff11,DependentOn as _0x4f811b,Plugin as _0x490596,merge as _0x37f4ea,registerDependencies as _0x434b8c,mergeOverrideWithDependencies as _0x22b299,touchDependencies as _0x87b0fb}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x4db634,InsertSheetMutation as _0x18021c}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x3796db,SetScrollOperation as _0x458e24}from'@univerjs/sheets-ui';import{useDependency as _0x2fae43,useObservable as _0x2cbc5c,IUIPartsService as _0x331a18,BuiltInUIPart as _0x376e2d,connectInjector as _0x2fb9f7}from'@univerjs/ui';import{jsx as _0x7764ac,jsxs as _0x55f059,Fragment as _0x31bb70}from'react/jsx-runtime';import{Dropdown as _0x1b79cb,clsx as _0x371cc7,Button as _0x33e106}from'@univerjs/design';import{forwardRef as _0x5a5524,useRef as _0x666d59,createElement as _0x4d5163,useState as _0x1aef14,useEffect as _0x40246b}from'react';import{CollaborationEvent as _0x273bef,parseProtocolChangeset as _0x4fdd2c}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2470ba,Subject as _0x2dfbad}from'rxjs';function _0x1f35(){var _0x48b754=['405141odvJGv','svg','apply','propertyIsEnumerable','pluginName','getLiveShareCoordinator','_commandDisposable','substring','LiveShareIcon','idle','params','_uiPartsService','You\x27re\x20following\x20the\x20presenter','following','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_beIdle','0\x200\x2017\x2017','_stopPresenting','symbol','not-following','event$','delete','_liveShareService','You\x27are\x20offline.','UNIVER_UNKNOWN','memberID','requireSession','subscribe','15445Zlukhn','values','onCommandExecuted','then','_status','extend','getOwnPropertySymbols','dispose$','call','sheet','from','138aePxmU','defIds','getMemberID','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','You\x27re\x20not\x20following\x20the\x20presenter','univer-w-full\x20univer-mb-3\x20univer-text-sm','forEach','_mountLiveShare','9OoYGMG','toString','send','univer-size-4','operations','indexOf','type','defineProperty','_fetchOperations','unsubscribe','LIVESHARE_NEW_HOST','PRESENTING','asObservable','button','Start\x20following','_presenter','function','currentColor','_collabSession','getInitialStates','stopPresenting','_stopFollowing','_status$','7mOBhGJ','SAME_OPERATION_SHARE_INTERVAL','mutations','_configService','getUnitId','644566SlzUVQ','_startFollowing','startFollowing','unitId','_handleOnline','clear','http://www.w3.org/2000/svg','getTypeOfUnitAdded$','div','tag','_handleOffline','NEW_CHANGESETS','_config','length','getTypeOfUnitDisposed$','complete','getOwnPropertyDescriptor','_handleNewChangeSets','UniverIcon','UNIVER_LIVE_SHARE_PLUGIN','disposeWithMe','displayName','none','_handleOperation','_sharedOperations','_entities','pipe','presenter','_collabSessionService','colorChannel1','LIVESHARE_OPERATION','6ZSjzcS','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','_commandService','prototype','HEADER_MENU','803290TKSauJ','_unitID','setConfig','98MGvUFc','className','82151xwbqkb','getCurrentTypeOfUnit$','map','dispose','assign','next','fill','children','includes','parse','OFFLINE','offline','set','find','_reporters','UNIVER_SHEET','OPERATION','get','Stop\x20following','idSuffix','entries','executeCommand','_startLiveShareCoordinator','LIVESHARE_TERMINATE','_startPresenting','_univerInstanceService','239160xeycXM','557484BCzQsp','10QiEDnM','IDLE','_injector','live-share.config','Stop\x20presenting','concat','default','status$','mask','Start','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','NOT_FOLLOWING','attrs','icon','text','1em','string','replace','_handleTerminate','sessionStatus$','evenodd','LIVESHARE_FETCH_OPERATIONS','xlink:href','FOLLOWING','init','path','data','current','registerSharedOperation','add','ONLINE','tryStartPresenting','has','_init','url(#$1','108QbspDw','random','reverse','hasOwnProperty','stopFollowing','presenting','live-share-icon'];_0x1f35=function(){return _0x48b754;};return _0x1f35();}import{takeUntil as _0x5182f0,throttleTime as _0x28ab2b}from'rxjs/operators';const Oe=_0x4c562c(0x1bf),T={};class L extends _0x33c3c3{constructor(){var _0x46ea76=_0x4c562c;super(...arguments),d(this,_0x46ea76(0x18f),new Set()),d(this,_0x46ea76(0x1ae),new Set());}[_0x4c562c(0x1d8)](_0x268d36){var _0x144125=_0x4c562c;return this[_0x144125(0x18f)][_0x144125(0x1d9)](_0x268d36),_0x5c277b(()=>this[_0x144125(0x18f)][_0x144125(0x1fb)](_0x268d36));}['registerInitialStateReporter'](_0x1b6696){var _0x512bb1=_0x4c562c;return this[_0x512bb1(0x1ae)]['add'](_0x1b6696),_0x5c277b(()=>this[_0x512bb1(0x1ae)][_0x512bb1(0x1fb)](_0x1b6696));}['shouldShareOperation'](_0x3cc72f){var _0x3deb7b=_0x4c562c;return this[_0x3deb7b(0x18f)][_0x3deb7b(0x1dc)](_0x3cc72f);}[_0x4c562c(0x16e)](_0x53c56f){var _0x4acfbd=_0x4c562c;return Array[_0x4acfbd(0x20c)](this[_0x4acfbd(0x1ae)])['map'](_0x1ca293=>_0x1ca293(_0x53c56f));}}function _0x4c96(_0x4da714,_0x36708b){var _0x1f351d=_0x1f35();return _0x4c96=function(_0x4c9640,_0x1df910){_0x4c9640=_0x4c9640-0x154;var _0x53503b=_0x1f351d[_0x4c9640];return _0x53503b;},_0x4c96(_0x4da714,_0x36708b);}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x410ab3,_0x3f7b0d,_0x55112f,_0x2d20d1)=>{var _0x426f99=_0x4c562c;for(var _0x1df922=_0x2d20d1>0x1?void 0x0:_0x2d20d1?Ee(_0x3f7b0d,_0x55112f):_0x3f7b0d,_0x1ea845=_0x410ab3[_0x426f99(0x184)]-0x1,_0x58198b;_0x1ea845>=0x0;_0x1ea845--)(_0x58198b=_0x410ab3[_0x1ea845])&&(_0x1df922=_0x58198b(_0x1df922)||_0x1df922);return _0x1df922;},Ne=(_0x5dee8b,_0x2f5f2b)=>(_0x4556a5,_0x2b2a5f)=>_0x2f5f2b(_0x4556a5,_0x2b2a5f,_0x5dee8b);let m=class extends _0x33c3c3{constructor(_0x38eff5){super(),this['_liveShareService']=_0x38eff5,this['_init']();}[_0x4c562c(0x1dd)](){var _0x56eea7=_0x4c562c;[_0x3796db['id'],_0x458e24['id'],_0x4db634['id']][_0x56eea7(0x159)](_0x1364ed=>{var _0x21d2fc=_0x56eea7;this[_0x21d2fc(0x18b)](this[_0x21d2fc(0x1fc)][_0x21d2fc(0x1d8)](_0x1364ed));});}};m=we([Ne(0x0,_0x28b8e2(L))],m);var c=function(){var _0x17f4bf=_0x4c562c;return c=Object[_0x17f4bf(0x1a4)]||function(_0x91f75c){var _0x34d3c9=_0x17f4bf;for(var _0x7c2d99,_0x4a2052=0x1,_0x39e866=arguments[_0x34d3c9(0x184)];_0x4a2052<_0x39e866;_0x4a2052++){_0x7c2d99=arguments[_0x4a2052];for(var _0x22239c in _0x7c2d99)Object[_0x34d3c9(0x199)][_0x34d3c9(0x1e2)][_0x34d3c9(0x20a)](_0x7c2d99,_0x22239c)&&(_0x91f75c[_0x22239c]=_0x7c2d99[_0x22239c]);}return _0x91f75c;},c[_0x17f4bf(0x1e8)](this,arguments);},Ce=function(_0x1902d2,_0xd4534){var _0x567312=_0x4c562c,_0xb8b042={};for(var _0x1b1fda in _0x1902d2)Object[_0x567312(0x199)][_0x567312(0x1e2)][_0x567312(0x20a)](_0x1902d2,_0x1b1fda)&&_0xd4534[_0x567312(0x160)](_0x1b1fda)<0x0&&(_0xb8b042[_0x1b1fda]=_0x1902d2[_0x1b1fda]);if(_0x1902d2!=null&&typeof Object[_0x567312(0x208)]==_0x567312(0x16b)){for(var _0x410787=0x0,_0x1b1fda=Object[_0x567312(0x208)](_0x1902d2);_0x410787<_0x1b1fda[_0x567312(0x184)];_0x410787++)_0xd4534[_0x567312(0x160)](_0x1b1fda[_0x410787])<0x0&&Object[_0x567312(0x199)][_0x567312(0x1e9)][_0x567312(0x20a)](_0x1902d2,_0x1b1fda[_0x410787])&&(_0xb8b042[_0x1b1fda[_0x410787]]=_0x1902d2[_0x1b1fda[_0x410787]]);}return _0xb8b042;},W=_0x5a5524(function(_0x4f5dd0,_0x2a9fbe){var _0x3f6b3b=_0x4c562c,_0x11aec6=_0x4f5dd0[_0x3f6b3b(0x1c9)],_0xd43ba7=_0x4f5dd0['id'],_0x55478b=_0x4f5dd0['className'],_0x1df97d=_0x4f5dd0[_0x3f6b3b(0x207)],_0x2dd629=Ce(_0x4f5dd0,[_0x3f6b3b(0x1c9),'id',_0x3f6b3b(0x19f),_0x3f6b3b(0x207)]),_0x2c5abe='univerjs-icon\x20univerjs-icon-'[_0x3f6b3b(0x1c1)](_0xd43ba7,'\x20')[_0x3f6b3b(0x1c1)](_0x55478b||'')['trim'](),_0x55b6ad=_0x666d59('_'[_0x3f6b3b(0x1c1)](Le()));return Y(_0x11aec6,''[_0x3f6b3b(0x1c1)](_0xd43ba7),{'defIds':_0x11aec6[_0x3f6b3b(0x154)],'idSuffix':_0x55b6ad[_0x3f6b3b(0x1d7)]},c({'ref':_0x2a9fbe,'className':_0x2c5abe},_0x2dd629),_0x1df97d);});function Y(_0x5dbe45,_0x2e9faf,_0x725586,_0x2f7440,_0x4944b5){var _0x222a8d=_0x4c562c;return _0x4d5163(_0x5dbe45[_0x222a8d(0x180)],c(c({'key':_0x2e9faf},De(_0x5dbe45,_0x725586,_0x4944b5)),_0x2f7440),(xe(_0x5dbe45,_0x725586)[_0x222a8d(0x1a7)]||[])[_0x222a8d(0x1a2)](function(_0x4fa380,_0x2e198d){var _0x350684=_0x222a8d;return Y(_0x4fa380,''[_0x350684(0x1c1)](_0x2e9faf,'-')[_0x350684(0x1c1)](_0x5dbe45[_0x350684(0x180)],'-')[_0x350684(0x1c1)](_0x2e198d),_0x725586,void 0x0,_0x4944b5);}));}function De(_0x5de3d4,_0x58a9ff,_0xaa9b5d){var _0x5a5e8e=_0x4c562c,_0x540083=c({},_0x5de3d4[_0x5a5e8e(0x1c8)]);_0xaa9b5d!=null&&_0xaa9b5d[_0x5a5e8e(0x194)]&&_0x540083[_0x5a5e8e(0x1a6)]===_0x5a5e8e(0x194)&&(_0x540083[_0x5a5e8e(0x1a6)]=_0xaa9b5d[_0x5a5e8e(0x194)]),_0x5de3d4[_0x5a5e8e(0x180)]==='mask'&&_0x540083['id']&&(_0x540083['id']=_0x540083['id']+_0x58a9ff[_0x5a5e8e(0x1b3)]),Object['entries'](_0x540083)[_0x5a5e8e(0x159)](function(_0x5f08fd){var _0x3f932b=_0x5a5e8e,_0x2c9206=_0x5f08fd[0x0],_0x2c9eb1=_0x5f08fd[0x1];_0x2c9206===_0x3f932b(0x1c4)&&typeof _0x2c9eb1==_0x3f932b(0x1cc)&&(_0x540083[_0x2c9206]=_0x2c9eb1[_0x3f932b(0x1cd)](/url\(#(.*)\)/,_0x3f932b(0x1de)['concat'](_0x58a9ff[_0x3f932b(0x1b3)],')')));});var _0x42b815=_0x58a9ff[_0x5a5e8e(0x154)];return!_0x42b815||_0x42b815['length']===0x0||(_0x5de3d4[_0x5a5e8e(0x180)]==='use'&&_0x540083[_0x5a5e8e(0x1d2)]&&(_0x540083[_0x5a5e8e(0x1d2)]=_0x540083[_0x5a5e8e(0x1d2)]+_0x58a9ff['idSuffix']),Object[_0x5a5e8e(0x1b4)](_0x540083)[_0x5a5e8e(0x159)](function(_0x2e73f6){var _0x3fe72d=_0x5a5e8e,_0x2d87cb=_0x2e73f6[0x0],_0x1217f2=_0x2e73f6[0x1];typeof _0x1217f2==_0x3fe72d(0x1cc)&&(_0x540083[_0x2d87cb]=_0x1217f2['replace'](/url\(#(.*)\)/,_0x3fe72d(0x1de)[_0x3fe72d(0x1c1)](_0x58a9ff['idSuffix'],')')));})),_0x540083;}function xe(_0x20fdc0,_0x470c46){var _0x5e97c8=_0x4c562c,_0x25e7a6,_0x2b3948=_0x470c46[_0x5e97c8(0x154)];return!_0x2b3948||_0x2b3948[_0x5e97c8(0x184)]===0x0?_0x20fdc0:_0x20fdc0[_0x5e97c8(0x180)]==='defs'&&(!((_0x25e7a6=_0x20fdc0[_0x5e97c8(0x1a7)])===null||_0x25e7a6===void 0x0)&&_0x25e7a6[_0x5e97c8(0x184)])?c(c({},_0x20fdc0),{'children':_0x20fdc0['children']['map'](function(_0x4e859d){var _0x4b3d23=_0x5e97c8;return typeof _0x4e859d[_0x4b3d23(0x1c8)]['id']=='string'&&_0x2b3948&&_0x2b3948[_0x4b3d23(0x160)](_0x4e859d[_0x4b3d23(0x1c8)]['id'])>-0x1?c(c({},_0x4e859d),{'attrs':c(c({},_0x4e859d[_0x4b3d23(0x1c8)]),{'id':_0x4e859d[_0x4b3d23(0x1c8)]['id']+_0x470c46[_0x4b3d23(0x1b3)]})}):_0x4e859d;})}):_0x20fdc0;}function Le(){var _0x105a53=_0x4c562c;return Math[_0x105a53(0x1e0)]()[_0x105a53(0x15c)](0x24)[_0x105a53(0x1ed)](0x2,0x8);}W[_0x4c562c(0x18c)]=_0x4c562c(0x189);var ye={'tag':_0x4c562c(0x1e7),'attrs':{'xmlns':_0x4c562c(0x17d),'fill':_0x4c562c(0x18d),'viewBox':_0x4c562c(0x1f6),'width':_0x4c562c(0x1cb),'height':_0x4c562c(0x1cb)},'children':[{'tag':_0x4c562c(0x1d5),'attrs':{'fill':_0x4c562c(0x16c),'d':_0x4c562c(0x1c6)}},{'tag':_0x4c562c(0x1d5),'attrs':{'fill':_0x4c562c(0x16c),'d':_0x4c562c(0x1f4),'fillRule':_0x4c562c(0x1d0),'clipRule':_0x4c562c(0x1d0)}}]},B=_0x5a5524(function(_0x320cff,_0x25f741){var _0x427ed1=_0x4c562c;return _0x4d5163(W,Object['assign']({},_0x320cff,{'id':_0x427ed1(0x1e5),'ref':_0x25f741,'icon':ye}));});B[_0x4c562c(0x18c)]=_0x4c562c(0x1ee);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x47b72e,_0x45e2dc,_0x4ba8e8,_0x4f7e1a)=>{var _0x173614=_0x4c562c;for(var _0xda7a82=_0x4f7e1a>0x1?void 0x0:_0x4f7e1a?Re(_0x45e2dc,_0x4ba8e8):_0x45e2dc,_0x40399e=_0x47b72e[_0x173614(0x184)]-0x1,_0x4f947a;_0x40399e>=0x0;_0x40399e--)(_0x4f947a=_0x47b72e[_0x40399e])&&(_0xda7a82=_0x4f947a(_0xda7a82)||_0xda7a82);return _0xda7a82;},f=(_0x3c2712,_0x492e53)=>(_0x3ee31e,_0x261ff9)=>_0x492e53(_0x3ee31e,_0x261ff9,_0x3c2712);let I=class extends _0x30c532{constructor(_0x409ef4,_0x64b075,_0xed39e){var _0x3f2a43=_0x4c562c;super(),d(this,_0x3f2a43(0x190),new Map()),(this[_0x3f2a43(0x1b9)]=_0x409ef4,this[_0x3f2a43(0x1be)]=_0x64b075,this[_0x3f2a43(0x193)]=_0xed39e,this[_0x3f2a43(0x1dd)]());}async[_0x4c562c(0x1eb)](_0x41aa7c){var _0x35f5e9=_0x4c562c;return this['_entities'][_0x35f5e9(0x1dc)](_0x41aa7c)||await this['_startLiveShareCoordinator'](_0x41aa7c),this['_entities'][_0x35f5e9(0x1b1)](_0x41aa7c);}[_0x4c562c(0x1dd)](){var _0x5e2db5=_0x4c562c;this[_0x5e2db5(0x1b9)][_0x5e2db5(0x17e)](_0x5516a4[_0x5e2db5(0x1af)])[_0x5e2db5(0x191)](_0x5182f0(this[_0x5e2db5(0x209)]))['subscribe'](async _0x4d21ee=>{var _0x4d53a4=_0x5e2db5;const _0x3ea49a=_0x4d21ee[_0x4d53a4(0x176)]();this[_0x4d53a4(0x190)][_0x4d53a4(0x1dc)](_0x3ea49a)||this[_0x4d53a4(0x1b6)](_0x3ea49a);}),this[_0x5e2db5(0x1b9)][_0x5e2db5(0x185)](_0x5516a4['UNIVER_SHEET'])['pipe'](_0x5182f0(this[_0x5e2db5(0x209)]))[_0x5e2db5(0x201)](_0x37fb0c=>{var _0x19940c=_0x5e2db5;const _0x2489d2=_0x37fb0c[_0x19940c(0x176)](),_0x4695c6=this[_0x19940c(0x190)]['get'](_0x2489d2);_0x4695c6==null||_0x4695c6[_0x19940c(0x1a3)]();});}async[_0x4c562c(0x1b6)](_0x188f75){var _0x329197=_0x4c562c;const _0xac8da2=await this[_0x329197(0x193)][_0x329197(0x200)](_0x188f75),_0x5d449f=this['_injector']['createInstance'](C,_0x188f75,_0xac8da2);return _0x5d449f[_0x329197(0x1d4)](),this[_0x329197(0x190)][_0x329197(0x1ac)](_0x188f75,_0x5d449f),_0x5d449f;}};I=Z([f(0x0,_0x39e568),f(0x1,_0x28b8e2(_0x37932d)),f(0x2,_0x28b8e2(_0x4bced4))],I);var h=(_0x5ef23c=>(_0x5ef23c[_0x4c562c(0x1aa)]='offline',_0x5ef23c[_0x4c562c(0x1bd)]='idle',_0x5ef23c[_0x4c562c(0x1d3)]=_0x4c562c(0x1f3),_0x5ef23c[_0x4c562c(0x1c7)]=_0x4c562c(0x1f9),_0x5ef23c[_0x4c562c(0x166)]=_0x4c562c(0x1e4),_0x5ef23c))(h||{});const Pe=_0x4c562c(0x173),Ae=0xc8;let C=class extends _0x30c532{constructor(_0x1b2439,_0x501702,_0x80e4a3,_0x50b221,_0xac5ce7){var _0x3f6d28=_0x4c562c;super(),d(this,_0x3f6d28(0x171),new _0x2470ba('idle')),d(this,_0x3f6d28(0x1c3),this['_status$'][_0x3f6d28(0x167)]()),d(this,_0x3f6d28(0x1dd),!0x1),d(this,_0x3f6d28(0x1ec),null),d(this,_0x3f6d28(0x16a),null),(this[_0x3f6d28(0x19c)]=_0x1b2439,this[_0x3f6d28(0x16d)]=_0x501702,this[_0x3f6d28(0x175)]=_0x80e4a3,this['_liveShareService']=_0x50b221,this[_0x3f6d28(0x198)]=_0xac5ce7);}get[_0x4c562c(0x206)](){var _0x4f784c=_0x4c562c;return this[_0x4f784c(0x171)]['getValue']();}[_0x4c562c(0x1a3)](){var _0x2dc576=_0x4c562c,_0x3d9838;(_0x3d9838=this[_0x2dc576(0x1ec)])==null||_0x3d9838[_0x2dc576(0x1a3)](),this[_0x2dc576(0x171)][_0x2dc576(0x1a5)]('idle'),this[_0x2dc576(0x171)][_0x2dc576(0x186)]();}[_0x4c562c(0x1d4)](){var _0x300f01=_0x4c562c;this[_0x300f01(0x1dd)]||(this[_0x300f01(0x1dd)]=!0x0,this['_collabSession'][_0x300f01(0x1cf)][_0x300f01(0x191)](_0x5182f0(this['dispose$']))[_0x300f01(0x201)](_0x4ee737=>{var _0x3552b4=_0x300f01;switch(_0x4ee737){case _0x406a9c['OFFLINE']:this[_0x3552b4(0x181)]();break;case _0x406a9c[_0x3552b4(0x1da)]:this[_0x3552b4(0x17b)]();break;}}),this[_0x300f01(0x16d)][_0x300f01(0x1fa)][_0x300f01(0x191)](_0x5182f0(this[_0x300f01(0x209)]))[_0x300f01(0x201)](_0x47cde8=>{var _0x39e378=_0x300f01;const {eventID:_0x10fad7}=_0x47cde8;switch(_0x10fad7){case _0x273bef[_0x39e378(0x165)]:this['_handleNewHost'](_0x47cde8);break;case _0x273bef[_0x39e378(0x195)]:this[_0x39e378(0x18e)](_0x47cde8);break;case _0x273bef[_0x39e378(0x1b7)]:this[_0x39e378(0x1ce)]();break;case _0x273bef[_0x39e378(0x182)]:this[_0x39e378(0x188)](_0x47cde8);break;}}));}['tryStartPresenting'](){var _0xccfa37=_0x4c562c;this['_collabSession'][_0xccfa37(0x15d)]({'eventID':_0x273bef['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0xccfa37(0x19c)],'userID':this[_0xccfa37(0x16d)][_0xccfa37(0x155)]()}},this[_0xccfa37(0x19c)]);}[_0x4c562c(0x16f)](){var _0x10abe9=_0x4c562c;this['_status']==='presenting'&&(this[_0x10abe9(0x171)][_0x10abe9(0x1a5)](_0x10abe9(0x1ef)),this[_0x10abe9(0x16d)]['send']({'eventID':_0x273bef['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x10abe9(0x19c)]}},this[_0x10abe9(0x19c)]));}[_0x4c562c(0x179)](){var _0x2f257d=_0x4c562c;this[_0x2f257d(0x206)]===_0x2f257d(0x1f9)&&(this['_status$']['next'](_0x2f257d(0x1f3)),this[_0x2f257d(0x178)]());}[_0x4c562c(0x1e3)](){var _0x1b5d40=_0x4c562c;this[_0x1b5d40(0x206)]===_0x1b5d40(0x1f3)&&this[_0x1b5d40(0x170)]();}['_handleNewHost'](_0x244d53){var _0x20a1e1=_0x4c562c;const {presenter:_0x1b5dd7}=_0x244d53[_0x20a1e1(0x1d6)],_0x3fc00a=this[_0x20a1e1(0x16d)][_0x20a1e1(0x155)]();this['_presenter']=_0x1b5dd7,_0x1b5dd7===_0x3fc00a?(this[_0x20a1e1(0x170)](),this['_startPresenting']()):this[_0x20a1e1(0x206)]!=='not-following'&&(this['_stopPresenting'](),this[_0x20a1e1(0x178)]());}[_0x4c562c(0x163)](){var _0x182599=_0x4c562c;const _0x5d4dc0={'eventID':_0x273bef[_0x182599(0x1d1)]};this[_0x182599(0x16d)][_0x182599(0x15d)](_0x5d4dc0,this[_0x182599(0x19c)]);}[_0x4c562c(0x1ce)](){var _0x232348=_0x4c562c;this['_presenter']=null,this[_0x232348(0x206)]!==_0x232348(0x1e4)&&this[_0x232348(0x1f5)]();}[_0x4c562c(0x188)](_0x6957ec){var _0x353b18=_0x4c562c;if(this[_0x353b18(0x206)]===_0x353b18(0x1f3)&&this[_0x353b18(0x16a)]===_0x6957ec[_0x353b18(0x1d6)][_0x353b18(0x1ff)]){const _0x2580fb=_0x4fdd2c(_0x6957ec[_0x353b18(0x1d6)])[_0x353b18(0x174)][_0x353b18(0x1e1)]()[_0x353b18(0x1ad)](_0x5badb5=>_0x5badb5['id']===_0x18021c['id']);if(_0x2580fb){const _0x1b9364=_0x2580fb[_0x353b18(0x1f0)][_0x353b18(0x17a)],_0x371654=_0x2580fb[_0x353b18(0x1f0)][_0x353b18(0x20b)]['id'];setTimeout(()=>{var _0x2c05ac=_0x353b18;this[_0x2c05ac(0x198)][_0x2c05ac(0x1b5)](_0x4db634['id'],{'unitId':_0x1b9364,'subUnitId':_0x371654},{'fromCollab':!0x0});});}}}[_0x4c562c(0x1b8)](){var _0x33e201=_0x4c562c;this[_0x33e201(0x171)][_0x33e201(0x1a5)](_0x33e201(0x1e4));const _0x10cce3=new Map(),_0xca3706=this[_0x33e201(0x1ec)]=new _0x533c1f();_0xca3706[_0x33e201(0x1d9)](_0x5c277b(()=>{var _0x1898ef=_0x33e201;_0x10cce3[_0x1898ef(0x159)](_0x169d83=>_0x169d83[_0x1898ef(0x186)]()),_0x10cce3[_0x1898ef(0x17c)]();})),_0xca3706[_0x33e201(0x1d9)](this[_0x33e201(0x198)][_0x33e201(0x204)](_0x275146=>{var _0x2f9f0f=_0x33e201,_0x597466;if(_0x275146[_0x2f9f0f(0x161)]!==_0x29ff11[_0x2f9f0f(0x1b0)]||!this['_liveShareService']['shouldShareOperation'](_0x275146['id']))return;const {id:_0x6d3b7f}=_0x275146;let _0xce94a4;_0x10cce3[_0x2f9f0f(0x1dc)](_0x6d3b7f)?_0xce94a4=_0x10cce3['get'](_0x6d3b7f):(_0xce94a4=new _0x2dfbad(),_0x10cce3[_0x2f9f0f(0x1ac)](_0x6d3b7f,_0xce94a4),_0xce94a4[_0x2f9f0f(0x191)](_0x28ab2b((_0x597466=this[_0x2f9f0f(0x175)]['getConfig'](Pe))!=null?_0x597466:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2f9f0f(0x201)](_0x708071=>{var _0x2de09e=_0x2f9f0f;this[_0x2de09e(0x16d)]['send']({'eventID':_0x273bef['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2de09e(0x19c)],'operations':{[_0x708071['id']]:{'id':_0x708071['id'],'params':JSON['stringify'](_0x708071['params'])}}}},this[_0x2de09e(0x19c)]);})),_0xce94a4[_0x2f9f0f(0x1a5)](_0x275146);})),this['_liveShareService'][_0x33e201(0x16e)](this[_0x33e201(0x19c)])[_0x33e201(0x159)](_0x1e0bcf=>this[_0x33e201(0x16d)][_0x33e201(0x15d)]({'eventID':_0x273bef[_0x33e201(0x195)],'data':{'unitID':this[_0x33e201(0x19c)],'operations':{[_0x1e0bcf['id']]:{'id':_0x1e0bcf['id'],'params':JSON['stringify'](_0x1e0bcf[_0x33e201(0x1f0)])}}}},this[_0x33e201(0x19c)]));}[_0x4c562c(0x1f7)](){var _0xcff531=_0x4c562c,_0x490c0d;this[_0xcff531(0x171)][_0xcff531(0x1a5)](_0xcff531(0x1ef)),(_0x490c0d=this[_0xcff531(0x1ec)])==null||_0x490c0d[_0xcff531(0x1a3)](),this['_commandDisposable']=null;}[_0x4c562c(0x178)](){var _0x2913b8=_0x4c562c,_0x374dc7;(_0x374dc7=this[_0x2913b8(0x1ec)])==null||_0x374dc7[_0x2913b8(0x1a3)](),this['_status$']['next'](_0x2913b8(0x1f3));}[_0x4c562c(0x1f5)](){var _0x1fac8c=_0x4c562c,_0x57cd1e;this[_0x1fac8c(0x171)][_0x1fac8c(0x1a5)]('idle'),(_0x57cd1e=this['_commandDisposable'])==null||_0x57cd1e[_0x1fac8c(0x1a3)](),this[_0x1fac8c(0x1ec)]=null;}[_0x4c562c(0x170)](){var _0x2476bc=_0x4c562c,_0x34d2ad;this[_0x2476bc(0x171)][_0x2476bc(0x1a5)](_0x2476bc(0x1f9)),(_0x34d2ad=this[_0x2476bc(0x1ec)])==null||_0x34d2ad['dispose']();}['_handleOperation'](_0x34cb80){var _0x4ab46a=_0x4c562c;if(['presenting',_0x4ab46a(0x1f9),_0x4ab46a(0x1ab)][_0x4ab46a(0x1a8)](this[_0x4ab46a(0x206)])||!_0x34cb80['data']['presenter']||_0x34cb80[_0x4ab46a(0x1d6)][_0x4ab46a(0x192)]===this[_0x4ab46a(0x16d)][_0x4ab46a(0x155)]())return;this['_status']===_0x4ab46a(0x1ef)&&this[_0x4ab46a(0x178)]();const _0x5c1866=_0x34cb80['data'][_0x4ab46a(0x15f)];Object[_0x4ab46a(0x203)](_0x5c1866)[_0x4ab46a(0x159)](_0x8213af=>{var _0xc6b37f=_0x4ab46a;this['_commandService'][_0xc6b37f(0x1b5)](_0x8213af['id'],_0x8213af['params']?JSON[_0xc6b37f(0x1a9)](_0x8213af[_0xc6b37f(0x1f0)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x3cfd19=_0x4c562c,_0x541e56;this[_0x3cfd19(0x171)][_0x3cfd19(0x1a5)](_0x3cfd19(0x1ab)),(_0x541e56=this[_0x3cfd19(0x1ec)])==null||_0x541e56[_0x3cfd19(0x1a3)]();}[_0x4c562c(0x17b)](){var _0x3c6b13=_0x4c562c;this[_0x3c6b13(0x171)][_0x3c6b13(0x1a5)](_0x3c6b13(0x1ef)),this['_fetchOperations']();}};C=Z([f(0x2,_0x12fb39),f(0x3,_0x28b8e2(L)),f(0x4,_0x444a63)],C);function Te(){var _0x2efdaf=_0x4c562c;const _0xa3eb21=_0x2fae43(I),_0x3bb343=_0x2fae43(_0x39e568),_0x285ee5=_0x2cbc5c(()=>_0x3bb343[_0x2efdaf(0x1a1)](_0x5516a4[_0x2efdaf(0x1af)]),void 0x0,!0x1,[]),[_0x11c6e7,_0x2a9433]=_0x1aef14(null),[_0x533c18,_0x10c56d]=_0x1aef14(h['IDLE']),_0x34e261=_0x666d59(null);return _0x40246b(()=>(_0x285ee5&&_0xa3eb21[_0x2efdaf(0x1eb)](_0x285ee5[_0x2efdaf(0x176)]())[_0x2efdaf(0x205)](_0x44411c=>{var _0x28e482=_0x2efdaf;_0x2a9433(_0x44411c),_0x34e261[_0x28e482(0x1d7)]=_0x44411c[_0x28e482(0x1c3)][_0x28e482(0x201)](_0x4b4f40=>{_0x10c56d(_0x4b4f40);});}),()=>{var _0x9eb8ff=_0x2efdaf,_0x18ba7e;(_0x18ba7e=_0x34e261[_0x9eb8ff(0x1d7)])==null||_0x18ba7e[_0x9eb8ff(0x164)](),_0x34e261['current']=null;}),[_0x285ee5,_0xa3eb21]),_0x11c6e7?_0x7764ac(_0x1b79cb,{'align':'end','disabled':_0x533c18===h[_0x2efdaf(0x1aa)],'className':_0x2efdaf(0x197),'overlay':_0x7764ac($e,{'status':_0x533c18,'coordinator':_0x11c6e7}),'children':_0x7764ac(_0x2efdaf(0x168),{'className':_0x371cc7(_0x2efdaf(0x156),{'univer-cursor-not-allowed':_0x533c18===h[_0x2efdaf(0x1aa)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x533c18!==h[_0x2efdaf(0x1aa)]}),'type':_0x2efdaf(0x168),'children':_0x7764ac(B,{'className':_0x2efdaf(0x15e)})})}):null;}function $e(_0x17a275){var _0x2703fc=_0x4c562c;const {status:_0x4da168,coordinator:_0x5d641a}=_0x17a275;switch(_0x4da168){case h[_0x2703fc(0x1bd)]:return _0x7764ac(Fe,{'coordinator':_0x5d641a});case h[_0x2703fc(0x1d3)]:return _0x7764ac(He,{'coordinator':_0x5d641a});case h['NOT_FOLLOWING']:return _0x7764ac(je,{'coordinator':_0x5d641a});case h[_0x2703fc(0x1aa)]:return _0x7764ac(Ve,{});case h[_0x2703fc(0x166)]:return _0x7764ac(Ue,{'coordinator':_0x5d641a});default:return null;}}function Fe(_0x487f3f){var _0x4f21dd=_0x4c562c;const {coordinator:_0x2c8713}=_0x487f3f;return _0x55f059(_0x31bb70,{'children':[_0x7764ac(_0x4f21dd(0x17f),{'className':_0x4f21dd(0x158),'children':'Present\x20this\x20document'}),_0x7764ac(_0x33e106,{'onClick':()=>_0x2c8713[_0x4f21dd(0x1db)](),'children':_0x4f21dd(0x1c5)})]});}function He(_0x55bdda){var _0x40de61=_0x4c562c;const {coordinator:_0x443370}=_0x55bdda;return _0x55f059(_0x31bb70,{'children':[_0x7764ac('div',{'className':_0x40de61(0x158),'children':_0x40de61(0x1f2)}),_0x7764ac(_0x33e106,{'onClick':()=>_0x443370[_0x40de61(0x1e3)](),'children':_0x40de61(0x1b2)})]});}function je(_0x19ccbe){var _0x5c617f=_0x4c562c;const {coordinator:_0x3b492e}=_0x19ccbe;return _0x55f059(_0x31bb70,{'children':[_0x7764ac(_0x5c617f(0x17f),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5c617f(0x157)}),_0x7764ac(_0x33e106,{'variant':_0x5c617f(0x1ca),'onClick':()=>_0x3b492e[_0x5c617f(0x179)](),'children':_0x5c617f(0x169)})]});}function Ue(_0x14ed7b){var _0x4530a1=_0x4c562c;const {coordinator:_0x3fd453}=_0x14ed7b;return _0x55f059(_0x31bb70,{'children':[_0x7764ac(_0x4530a1(0x17f),{'className':_0x4530a1(0x158),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x7764ac(_0x33e106,{'variant':_0x4530a1(0x1c2),'onClick':()=>_0x3fd453[_0x4530a1(0x16f)](),'children':_0x4530a1(0x1c0)})]});}function Ve(){var _0x40a2db=_0x4c562c;return _0x7764ac(_0x31bb70,{'children':_0x40a2db(0x1fd)});}var Me=Object[_0x4c562c(0x187)],ke=(_0x233bbe,_0x3aae78,_0x357b91,_0x25c99e)=>{for(var _0x49faa4=_0x25c99e>0x1?void 0x0:_0x25c99e?Me(_0x3aae78,_0x357b91):_0x3aae78,_0x4c1b71=_0x233bbe['length']-0x1,_0x5e44be;_0x4c1b71>=0x0;_0x4c1b71--)(_0x5e44be=_0x233bbe[_0x4c1b71])&&(_0x49faa4=_0x5e44be(_0x49faa4)||_0x49faa4);return _0x49faa4;},$=(_0x225bca,_0x1bcb3f)=>(_0x2307ec,_0x417c20)=>_0x1bcb3f(_0x2307ec,_0x417c20,_0x225bca);let b=class extends _0x33c3c3{constructor(_0x455cd0,_0x2d1199){var _0x3a7a95=_0x4c562c;super(),this[_0x3a7a95(0x1be)]=_0x455cd0,this[_0x3a7a95(0x1f1)]=_0x2d1199,this[_0x3a7a95(0x15a)]();}[_0x4c562c(0x15a)](){var _0x3b31ed=_0x4c562c;this[_0x3b31ed(0x18b)](this['_uiPartsService']['registerComponent'](_0x376e2d[_0x3b31ed(0x19a)],()=>_0x2fb9f7(Te,this[_0x3b31ed(0x1be)])));}};b=ke([$(0x0,_0x28b8e2(_0x37932d)),$(0x1,_0x331a18)],b);var Ge=Object[_0x4c562c(0x162)],We=Object[_0x4c562c(0x187)],Ye=(_0x41d755,_0x5ecf78,_0x3057c6)=>_0x5ecf78 in _0x41d755?Ge(_0x41d755,_0x5ecf78,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3057c6}):_0x41d755[_0x5ecf78]=_0x3057c6,Be=(_0x5278af,_0x355bd6,_0x4520be,_0x4a2481)=>{var _0x36b273=_0x4c562c;for(var _0x54a060=_0x4a2481>0x1?void 0x0:_0x4a2481?We(_0x355bd6,_0x4520be):_0x355bd6,_0x4761cf=_0x5278af[_0x36b273(0x184)]-0x1,_0x4cc1aa;_0x4761cf>=0x0;_0x4761cf--)(_0x4cc1aa=_0x5278af[_0x4761cf])&&(_0x54a060=_0x4cc1aa(_0x54a060)||_0x54a060);return _0x54a060;},F=(_0x33ab9f,_0x2cd63c)=>(_0x158e6c,_0x401d34)=>_0x2cd63c(_0x158e6c,_0x401d34,_0x33ab9f),J=(_0x5bee20,_0x20c9aa,_0x207788)=>Ye(_0x5bee20,typeof _0x20c9aa!=_0x4c562c(0x1f8)?_0x20c9aa+'':_0x20c9aa,_0x207788);const Ze=_0x4c562c(0x18a);let O=class extends _0x490596{constructor(_0x4d275c=T,_0x5d540f,_0x19a2ff){var _0x285cc3=_0x4c562c;super(),this[_0x285cc3(0x183)]=_0x4d275c,this[_0x285cc3(0x1be)]=_0x5d540f,this[_0x285cc3(0x175)]=_0x19a2ff;const {..._0x4cf274}=_0x37f4ea({},T,this[_0x285cc3(0x183)]);this[_0x285cc3(0x175)][_0x285cc3(0x19d)](Oe,_0x4cf274);}['onStarting'](){var _0x17e778=_0x4c562c;_0x434b8c(this[_0x17e778(0x1be)],_0x22b299([[L],[I],[m],[b]],this[_0x17e778(0x183)]['override'])),_0x87b0fb(this['_injector'],[[m]]);}['onRendered'](){var _0x517f34=_0x4c562c;_0x87b0fb(this[_0x517f34(0x1be)],[[b]]);}};J(O,_0x4c562c(0x161),_0x5516a4[_0x4c562c(0x1fe)]),J(O,_0x4c562c(0x1ea),Ze),O=Be([_0x4f811b(_0x364d6e),F(0x1,_0x28b8e2(_0x37932d)),F(0x2,_0x12fb39)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x3c1b7a=_0x405b;(function(_0x507e3b,_0x29507e){var _0x29ec1c=_0x405b,_0x1e95e7=_0x507e3b();while(!![]){try{var _0xcfa8e9=-parseInt(_0x29ec1c(0x106))/0x1*(-parseInt(_0x29ec1c(0xda))/0x2)+-parseInt(_0x29ec1c(0xbf))/0x3+parseInt(_0x29ec1c(0x77))/0x4+-parseInt(_0x29ec1c(0xcb))/0x5+parseInt(_0x29ec1c(0x119))/0x6+-parseInt(_0x29ec1c(0x124))/0x7+parseInt(_0x29ec1c(0x11c))/0x8*(parseInt(_0x29ec1c(0x10e))/0x9);if(_0xcfa8e9===_0x29507e)break;else _0x1e95e7['push'](_0x1e95e7['shift']());}catch(_0x527287){_0x1e95e7['push'](_0x1e95e7['shift']());}}}(_0x126b,0x8c48b));var q=Object[_0x3c1b7a(0xea)],z=(_0x3a2f8f,_0x4da614,_0x340560)=>_0x4da614 in _0x3a2f8f?q(_0x3a2f8f,_0x4da614,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x340560}):_0x3a2f8f[_0x4da614]=_0x340560,d=(_0x3d6b16,_0x41c117,_0x5c70a8)=>z(_0x3d6b16,typeof _0x41c117!=_0x3c1b7a(0x88)?_0x41c117+'':_0x41c117,_0x5c70a8);import{CollaborationSessionService as _0x3126c5,SessionStatus as _0x28aeaf,UniverCollaborationClientPlugin as _0x448550}from'@univerjs-pro/collaboration-client';import{Disposable as _0x323048,toDisposable as _0x5b6db3,Inject as _0x44d7dc,IUniverInstanceService as _0x4ee65e,Injector as _0x3982c7,IConfigService as _0x311f9d,ICommandService as _0x2b2e54,RxDisposable as _0xb35da4,UniverInstanceType as _0xf73b2e,DisposableCollection as _0xfc2a49,CommandType as _0x5c5324,DependentOn as _0x36136c,Plugin as _0xdce91a,merge as _0x36fdb2,registerDependencies as _0x54f287,mergeOverrideWithDependencies as _0x11650d,touchDependencies as _0x3c79cd}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x73c008,InsertSheetMutation as _0x1bfc00}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x5710a6,SetScrollOperation as _0x1659f6}from'@univerjs/sheets-ui';import{useDependency as _0x103267,useObservable as _0x21db21,IUIPartsService as _0x5c593a,BuiltInUIPart as _0x32c72d,connectInjector as _0x1c269e}from'@univerjs/ui';import{jsx as _0x9d2327,jsxs as _0x1f971f,Fragment as _0x4453ed}from'react/jsx-runtime';import{Dropdown as _0x3cff0b,clsx as _0x3ef185,Button as _0x37beb2}from'@univerjs/design';import{forwardRef as _0x273538,useRef as _0x214092,createElement as _0x67ead4,useState as _0x4e5065,useEffect as _0x5916f3}from'react';function _0x405b(_0x948b8f,_0x18a7bf){var _0x126b1e=_0x126b();return _0x405b=function(_0x405be9,_0x4b4e36){_0x405be9=_0x405be9-0x77;var _0x1f5dc7=_0x126b1e[_0x405be9];return _0x1f5dc7;},_0x405b(_0x948b8f,_0x18a7bf);}import{CollaborationEvent as _0x375d8a,parseProtocolChangeset as _0x25f20b}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0xf256a4,Subject as _0x2c836c}from'rxjs';import{takeUntil as _0x1b3a20,throttleTime as _0x512dda}from'rxjs/operators';const Oe=_0x3c1b7a(0x9d),T={};class L extends _0x323048{constructor(){var _0x50050c=_0x3c1b7a;super(...arguments),d(this,_0x50050c(0x118),new Set()),d(this,_0x50050c(0xe4),new Set());}[_0x3c1b7a(0xd1)](_0x20a88a){var _0x190973=_0x3c1b7a;return this[_0x190973(0x118)]['add'](_0x20a88a),_0x5b6db3(()=>this['_sharedOperations']['delete'](_0x20a88a));}[_0x3c1b7a(0xa2)](_0x3da598){var _0x984e10=_0x3c1b7a;return this['_reporters'][_0x984e10(0xe5)](_0x3da598),_0x5b6db3(()=>this[_0x984e10(0xe4)][_0x984e10(0xdb)](_0x3da598));}[_0x3c1b7a(0xc8)](_0x1a97bb){var _0x434b79=_0x3c1b7a;return this[_0x434b79(0x118)][_0x434b79(0xe3)](_0x1a97bb);}['getInitialStates'](_0x56458e){var _0x51e784=_0x3c1b7a;return Array[_0x51e784(0x11b)](this[_0x51e784(0xe4)])['map'](_0x176112=>_0x176112(_0x56458e));}}var Ee=Object['getOwnPropertyDescriptor'],Ce=(_0x565c1d,_0x226b53,_0x1be891,_0x37942b)=>{var _0x5d3efb=_0x3c1b7a;for(var _0x36bf11=_0x37942b>0x1?void 0x0:_0x37942b?Ee(_0x226b53,_0x1be891):_0x226b53,_0x3f1c23=_0x565c1d[_0x5d3efb(0x85)]-0x1,_0x41c134;_0x3f1c23>=0x0;_0x3f1c23--)(_0x41c134=_0x565c1d[_0x3f1c23])&&(_0x36bf11=_0x41c134(_0x36bf11)||_0x36bf11);return _0x36bf11;},Ne=(_0x5d768f,_0x1336c3)=>(_0x6ef017,_0x459c17)=>_0x1336c3(_0x6ef017,_0x459c17,_0x5d768f);let m=class extends _0x323048{constructor(_0xe3bbdb){var _0x272286=_0x3c1b7a;super(),this[_0x272286(0xa9)]=_0xe3bbdb,this[_0x272286(0x8f)]();}['_init'](){var _0x3ca3e2=_0x3c1b7a;[_0x5710a6['id'],_0x1659f6['id'],_0x73c008['id']][_0x3ca3e2(0x7d)](_0x51f62a=>{var _0x2d919e=_0x3ca3e2;this[_0x2d919e(0x113)](this[_0x2d919e(0xa9)][_0x2d919e(0xd1)](_0x51f62a));});}};m=Ce([Ne(0x0,_0x44d7dc(L))],m);var c=function(){var _0x5c7388=_0x3c1b7a;return c=Object[_0x5c7388(0xa3)]||function(_0x288a19){var _0x2e4dde=_0x5c7388;for(var _0x487893,_0x5a3b6a=0x1,_0x99c6f8=arguments[_0x2e4dde(0x85)];_0x5a3b6a<_0x99c6f8;_0x5a3b6a++){_0x487893=arguments[_0x5a3b6a];for(var _0x5472be in _0x487893)Object[_0x2e4dde(0x105)][_0x2e4dde(0xbb)][_0x2e4dde(0x120)](_0x487893,_0x5472be)&&(_0x288a19[_0x5472be]=_0x487893[_0x5472be]);}return _0x288a19;},c[_0x5c7388(0x7b)](this,arguments);},we=function(_0x324de1,_0x5ded13){var _0x16d820=_0x3c1b7a,_0x39026c={};for(var _0xf56bd2 in _0x324de1)Object['prototype'][_0x16d820(0xbb)]['call'](_0x324de1,_0xf56bd2)&&_0x5ded13[_0x16d820(0xb6)](_0xf56bd2)<0x0&&(_0x39026c[_0xf56bd2]=_0x324de1[_0xf56bd2]);if(_0x324de1!=null&&typeof Object[_0x16d820(0xca)]=='function'){for(var _0x746c95=0x0,_0xf56bd2=Object[_0x16d820(0xca)](_0x324de1);_0x746c95<_0xf56bd2[_0x16d820(0x85)];_0x746c95++)_0x5ded13[_0x16d820(0xb6)](_0xf56bd2[_0x746c95])<0x0&&Object[_0x16d820(0x105)][_0x16d820(0xef)][_0x16d820(0x120)](_0x324de1,_0xf56bd2[_0x746c95])&&(_0x39026c[_0xf56bd2[_0x746c95]]=_0x324de1[_0xf56bd2[_0x746c95]]);}return _0x39026c;},W=_0x273538(function(_0x3c05f6,_0x287a51){var _0x4b5c48=_0x3c1b7a,_0x23eac1=_0x3c05f6[_0x4b5c48(0x96)],_0x1229e0=_0x3c05f6['id'],_0x4d38a6=_0x3c05f6[_0x4b5c48(0xd2)],_0x51fc3e=_0x3c05f6[_0x4b5c48(0x126)],_0x420e66=we(_0x3c05f6,['icon','id',_0x4b5c48(0xd2),'extend']),_0x2bb639=_0x4b5c48(0x8b)[_0x4b5c48(0x127)](_0x1229e0,'\x20')[_0x4b5c48(0x127)](_0x4d38a6||'')[_0x4b5c48(0x12b)](),_0x15d859=_0x214092('_'['concat'](Le()));return Y(_0x23eac1,''[_0x4b5c48(0x127)](_0x1229e0),{'defIds':_0x23eac1[_0x4b5c48(0xf3)],'idSuffix':_0x15d859[_0x4b5c48(0x7e)]},c({'ref':_0x287a51,'className':_0x2bb639},_0x420e66),_0x51fc3e);});function Y(_0x568103,_0x1c5e61,_0x39ec64,_0x58f3e0,_0x2bb6a3){var _0xbb991e=_0x3c1b7a;return _0x67ead4(_0x568103[_0xbb991e(0xeb)],c(c({'key':_0x1c5e61},De(_0x568103,_0x39ec64,_0x2bb6a3)),_0x58f3e0),(xe(_0x568103,_0x39ec64)[_0xbb991e(0x78)]||[])[_0xbb991e(0x103)](function(_0x105a01,_0x57cb7f){var _0x1dd521=_0xbb991e;return Y(_0x105a01,''['concat'](_0x1c5e61,'-')[_0x1dd521(0x127)](_0x568103[_0x1dd521(0xeb)],'-')[_0x1dd521(0x127)](_0x57cb7f),_0x39ec64,void 0x0,_0x2bb6a3);}));}function De(_0x58a1b9,_0x32d103,_0x4ea62e){var _0x26a381=_0x3c1b7a,_0x38317c=c({},_0x58a1b9[_0x26a381(0x98)]);_0x4ea62e!=null&&_0x4ea62e['colorChannel1']&&_0x38317c['fill']===_0x26a381(0xc4)&&(_0x38317c[_0x26a381(0xcc)]=_0x4ea62e[_0x26a381(0xc4)]),_0x58a1b9[_0x26a381(0xeb)]===_0x26a381(0x114)&&_0x38317c['id']&&(_0x38317c['id']=_0x38317c['id']+_0x32d103[_0x26a381(0xb9)]),Object[_0x26a381(0x7f)](_0x38317c)[_0x26a381(0x7d)](function(_0x219596){var _0x32f156=_0x26a381,_0x511607=_0x219596[0x0],_0x3103dc=_0x219596[0x1];_0x511607===_0x32f156(0x114)&&typeof _0x3103dc==_0x32f156(0xc7)&&(_0x38317c[_0x511607]=_0x3103dc['replace'](/url\(#(.*)\)/,_0x32f156(0xfa)[_0x32f156(0x127)](_0x32d103[_0x32f156(0xb9)],')')));});var _0x1ce6d4=_0x32d103[_0x26a381(0xf3)];return!_0x1ce6d4||_0x1ce6d4[_0x26a381(0x85)]===0x0||(_0x58a1b9['tag']===_0x26a381(0x11f)&&_0x38317c[_0x26a381(0x128)]&&(_0x38317c['xlink:href']=_0x38317c[_0x26a381(0x128)]+_0x32d103[_0x26a381(0xb9)]),Object[_0x26a381(0x7f)](_0x38317c)[_0x26a381(0x7d)](function(_0x23c59b){var _0x50caba=_0x26a381,_0x41122d=_0x23c59b[0x0],_0x3e3f1f=_0x23c59b[0x1];typeof _0x3e3f1f=='string'&&(_0x38317c[_0x41122d]=_0x3e3f1f[_0x50caba(0xb0)](/url\(#(.*)\)/,_0x50caba(0xfa)[_0x50caba(0x127)](_0x32d103['idSuffix'],')')));})),_0x38317c;}function xe(_0x108a3b,_0x2f4dc8){var _0x4f8a3f=_0x3c1b7a,_0xa98e14,_0x2d6497=_0x2f4dc8[_0x4f8a3f(0xf3)];return!_0x2d6497||_0x2d6497['length']===0x0?_0x108a3b:_0x108a3b[_0x4f8a3f(0xeb)]===_0x4f8a3f(0xf2)&&(!((_0xa98e14=_0x108a3b[_0x4f8a3f(0x78)])===null||_0xa98e14===void 0x0)&&_0xa98e14['length'])?c(c({},_0x108a3b),{'children':_0x108a3b[_0x4f8a3f(0x78)]['map'](function(_0x29257f){var _0x46b3c5=_0x4f8a3f;return typeof _0x29257f[_0x46b3c5(0x98)]['id']==_0x46b3c5(0xc7)&&_0x2d6497&&_0x2d6497[_0x46b3c5(0xb6)](_0x29257f[_0x46b3c5(0x98)]['id'])>-0x1?c(c({},_0x29257f),{'attrs':c(c({},_0x29257f[_0x46b3c5(0x98)]),{'id':_0x29257f['attrs']['id']+_0x2f4dc8['idSuffix']})}):_0x29257f;})}):_0x108a3b;}function Le(){var _0x155c65=_0x3c1b7a;return Math[_0x155c65(0xd3)]()['toString'](0x24)[_0x155c65(0xa7)](0x2,0x8);}W[_0x3c1b7a(0x123)]=_0x3c1b7a(0xab);var ye={'tag':'svg','attrs':{'fill':_0x3c1b7a(0x12c),'viewBox':_0x3c1b7a(0xdd),'width':'1em','height':_0x3c1b7a(0x80)},'children':[{'tag':_0x3c1b7a(0x81),'attrs':{'fill':_0x3c1b7a(0xf6),'d':_0x3c1b7a(0x8a)}},{'tag':_0x3c1b7a(0x81),'attrs':{'fill':_0x3c1b7a(0xf6),'d':_0x3c1b7a(0xe8),'fillRule':'evenodd','clipRule':_0x3c1b7a(0x10c)}}]},B=_0x273538(function(_0x13cae0,_0x34a970){var _0x35e9f7=_0x3c1b7a;return _0x67ead4(W,Object[_0x35e9f7(0xa3)]({},_0x13cae0,{'id':'live-share-single','ref':_0x34a970,'icon':ye}));});B[_0x3c1b7a(0x123)]=_0x3c1b7a(0xb8);var Re=Object[_0x3c1b7a(0x121)],Z=(_0x159f3a,_0x365107,_0x2bd819,_0x213b70)=>{var _0x42995a=_0x3c1b7a;for(var _0x2adf07=_0x213b70>0x1?void 0x0:_0x213b70?Re(_0x365107,_0x2bd819):_0x365107,_0x3916b8=_0x159f3a[_0x42995a(0x85)]-0x1,_0x57b6e8;_0x3916b8>=0x0;_0x3916b8--)(_0x57b6e8=_0x159f3a[_0x3916b8])&&(_0x2adf07=_0x57b6e8(_0x2adf07)||_0x2adf07);return _0x2adf07;},f=(_0x35086b,_0x4e0873)=>(_0x41b786,_0x42e305)=>_0x4e0873(_0x41b786,_0x42e305,_0x35086b);let I=class extends _0xb35da4{constructor(_0x1f25fe,_0x5dd7f4,_0x7a7568){var _0x3bae88=_0x3c1b7a;super(),d(this,_0x3bae88(0xaa),new Map()),(this[_0x3bae88(0x116)]=_0x1f25fe,this[_0x3bae88(0x99)]=_0x5dd7f4,this[_0x3bae88(0xbc)]=_0x7a7568,this[_0x3bae88(0x8f)]());}async[_0x3c1b7a(0x122)](_0x33e957){var _0x4e5576=_0x3c1b7a;return this['_entities'][_0x4e5576(0xe3)](_0x33e957)||await this[_0x4e5576(0xc2)](_0x33e957),this[_0x4e5576(0xaa)][_0x4e5576(0x129)](_0x33e957);}['_init'](){var _0x2e5611=_0x3c1b7a;this[_0x2e5611(0x116)][_0x2e5611(0x11e)](_0xf73b2e['UNIVER_SHEET'])[_0x2e5611(0x100)](_0x1b3a20(this[_0x2e5611(0x86)]))[_0x2e5611(0x10d)](async _0x5ca17f=>{var _0x2ae5bd=_0x2e5611;const _0x17a5fd=_0x5ca17f[_0x2ae5bd(0xde)]();this[_0x2ae5bd(0xaa)][_0x2ae5bd(0xe3)](_0x17a5fd)||this[_0x2ae5bd(0xc2)](_0x17a5fd);}),this[_0x2e5611(0x116)][_0x2e5611(0x84)](_0xf73b2e[_0x2e5611(0x7c)])['pipe'](_0x1b3a20(this[_0x2e5611(0x86)]))[_0x2e5611(0x10d)](_0x4fe4ac=>{var _0x49732a=_0x2e5611;const _0x390bc1=_0x4fe4ac['getUnitId'](),_0x26b695=this[_0x49732a(0xaa)][_0x49732a(0x129)](_0x390bc1);_0x26b695==null||_0x26b695['dispose']();});}async[_0x3c1b7a(0xc2)](_0x102daf){var _0x3c3ccf=_0x3c1b7a;const _0x53280c=await this[_0x3c3ccf(0xbc)]['requireSession'](_0x102daf),_0x14c2bf=this[_0x3c3ccf(0x99)][_0x3c3ccf(0xe9)](w,_0x102daf,_0x53280c);return _0x14c2bf[_0x3c3ccf(0xfb)](),this['_entities'][_0x3c3ccf(0x9a)](_0x102daf,_0x14c2bf),_0x14c2bf;}};I=Z([f(0x0,_0x4ee65e),f(0x1,_0x44d7dc(_0x3982c7)),f(0x2,_0x44d7dc(_0x3126c5))],I);var h=(_0x3e212d=>(_0x3e212d[_0x3c1b7a(0xa6)]=_0x3c1b7a(0xb5),_0x3e212d[_0x3c1b7a(0x9b)]=_0x3c1b7a(0xe0),_0x3e212d['FOLLOWING']='following',_0x3e212d[_0x3c1b7a(0xc9)]=_0x3c1b7a(0xa1),_0x3e212d[_0x3c1b7a(0x93)]=_0x3c1b7a(0xb2),_0x3e212d))(h||{});const Pe=_0x3c1b7a(0x125),Ae=0xc8;let w=class extends _0xb35da4{constructor(_0x46723,_0x30c8b9,_0x15a028,_0x5e0938,_0xc27aab){var _0x1bdf47=_0x3c1b7a;super(),d(this,_0x1bdf47(0x95),new _0xf256a4('idle')),d(this,_0x1bdf47(0xff),this[_0x1bdf47(0x95)][_0x1bdf47(0xd9)]()),d(this,'_init',!0x1),d(this,_0x1bdf47(0x11a),null),d(this,'_presenter',null),(this['_unitID']=_0x46723,this[_0x1bdf47(0x83)]=_0x30c8b9,this['_configService']=_0x15a028,this[_0x1bdf47(0xa9)]=_0x5e0938,this['_commandService']=_0xc27aab);}get[_0x3c1b7a(0xd8)](){var _0x2e44c9=_0x3c1b7a;return this[_0x2e44c9(0x95)][_0x2e44c9(0x10b)]();}[_0x3c1b7a(0x92)](){var _0x571165=_0x3c1b7a,_0x2d6485;(_0x2d6485=this[_0x571165(0x11a)])==null||_0x2d6485[_0x571165(0x92)](),this[_0x571165(0x95)]['next'](_0x571165(0xe0)),this[_0x571165(0x95)][_0x571165(0xdc)]();}[_0x3c1b7a(0xfb)](){var _0x391024=_0x3c1b7a;this[_0x391024(0x8f)]||(this[_0x391024(0x8f)]=!0x0,this[_0x391024(0x83)]['sessionStatus$'][_0x391024(0x100)](_0x1b3a20(this['dispose$']))[_0x391024(0x10d)](_0x1e2ed5=>{var _0xdfa093=_0x391024;switch(_0x1e2ed5){case _0x28aeaf[_0xdfa093(0xa6)]:this['_handleOffline']();break;case _0x28aeaf['ONLINE']:this[_0xdfa093(0xa4)]();break;}}),this['_collabSession'][_0x391024(0xce)]['pipe'](_0x1b3a20(this[_0x391024(0x86)]))[_0x391024(0x10d)](_0x2b47bc=>{var _0x16f9d4=_0x391024;const {eventID:_0x5cf41f}=_0x2b47bc;switch(_0x5cf41f){case _0x375d8a[_0x16f9d4(0xe7)]:this[_0x16f9d4(0xbe)](_0x2b47bc);break;case _0x375d8a[_0x16f9d4(0x94)]:this[_0x16f9d4(0xd4)](_0x2b47bc);break;case _0x375d8a[_0x16f9d4(0x82)]:this[_0x16f9d4(0xf7)]();break;case _0x375d8a[_0x16f9d4(0xb7)]:this['_handleNewChangeSets'](_0x2b47bc);break;}}));}['tryStartPresenting'](){var _0x40007e=_0x3c1b7a;this[_0x40007e(0x83)][_0x40007e(0xfe)]({'eventID':_0x375d8a['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x40007e(0x104)],'userID':this[_0x40007e(0x83)]['getMemberID']()}},this[_0x40007e(0x104)]);}[_0x3c1b7a(0x108)](){var _0x38a618=_0x3c1b7a;this[_0x38a618(0xd8)]===_0x38a618(0xb2)&&(this['_status$'][_0x38a618(0x10f)](_0x38a618(0xe0)),this[_0x38a618(0x83)][_0x38a618(0xfe)]({'eventID':_0x375d8a[_0x38a618(0x82)],'data':{'unitID':this[_0x38a618(0x104)]}},this[_0x38a618(0x104)]));}[_0x3c1b7a(0x110)](){var _0x21e8c3=_0x3c1b7a;this['_status']===_0x21e8c3(0xa1)&&(this['_status$']['next'](_0x21e8c3(0xaf)),this['_startFollowing']());}[_0x3c1b7a(0x90)](){var _0x445a3a=_0x3c1b7a;this['_status']===_0x445a3a(0xaf)&&this[_0x445a3a(0xb4)]();}[_0x3c1b7a(0xbe)](_0x1510dd){var _0x5a4ac6=_0x3c1b7a;const {presenter:_0x114589}=_0x1510dd['data'],_0x47f194=this[_0x5a4ac6(0x83)][_0x5a4ac6(0x89)]();this[_0x5a4ac6(0x9e)]=_0x114589,_0x114589===_0x47f194?(this[_0x5a4ac6(0xb4)](),this[_0x5a4ac6(0xcf)]()):this[_0x5a4ac6(0xd8)]!==_0x5a4ac6(0xa1)&&(this[_0x5a4ac6(0xc1)](),this['_startFollowing']());}[_0x3c1b7a(0x87)](){var _0xaf0bf6=_0x3c1b7a;const _0x316e4a={'eventID':_0x375d8a['LIVESHARE_FETCH_OPERATIONS']};this[_0xaf0bf6(0x83)][_0xaf0bf6(0xfe)](_0x316e4a,this[_0xaf0bf6(0x104)]);}['_handleTerminate'](){var _0x2a9e9d=_0x3c1b7a;this['_presenter']=null,this[_0x2a9e9d(0xd8)]!==_0x2a9e9d(0xb2)&&this[_0x2a9e9d(0x7a)]();}[_0x3c1b7a(0x107)](_0x2dfea7){var _0x208135=_0x3c1b7a;if(this[_0x208135(0xd8)]===_0x208135(0xaf)&&this[_0x208135(0x9e)]===_0x2dfea7[_0x208135(0xed)][_0x208135(0x9c)]){const _0x4ad2ec=_0x25f20b(_0x2dfea7[_0x208135(0xed)])[_0x208135(0x109)][_0x208135(0x91)]()[_0x208135(0x8d)](_0xfea2f6=>_0xfea2f6['id']===_0x1bfc00['id']);if(_0x4ad2ec){const _0xeed90e=_0x4ad2ec[_0x208135(0x9f)][_0x208135(0xb3)],_0x3d8159=_0x4ad2ec['params'][_0x208135(0xba)]['id'];setTimeout(()=>{var _0x328b77=_0x208135;this[_0x328b77(0xf0)][_0x328b77(0xc6)](_0x73c008['id'],{'unitId':_0xeed90e,'subUnitId':_0x3d8159},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x30cf7d=_0x3c1b7a;this['_status$'][_0x30cf7d(0x10f)](_0x30cf7d(0xb2));const _0x5874a8=new Map(),_0x457fb7=this[_0x30cf7d(0x11a)]=new _0xfc2a49();_0x457fb7[_0x30cf7d(0xe5)](_0x5b6db3(()=>{var _0x31d280=_0x30cf7d;_0x5874a8[_0x31d280(0x7d)](_0xabbc67=>_0xabbc67[_0x31d280(0xdc)]()),_0x5874a8[_0x31d280(0xe6)]();})),_0x457fb7[_0x30cf7d(0xe5)](this['_commandService'][_0x30cf7d(0xec)](_0x51d9c8=>{var _0x232540=_0x30cf7d,_0x13a4fc;if(_0x51d9c8[_0x232540(0x101)]!==_0x5c5324[_0x232540(0x97)]||!this[_0x232540(0xa9)]['shouldShareOperation'](_0x51d9c8['id']))return;const {id:_0x52697c}=_0x51d9c8;let _0x276ebc;_0x5874a8[_0x232540(0xe3)](_0x52697c)?_0x276ebc=_0x5874a8[_0x232540(0x129)](_0x52697c):(_0x276ebc=new _0x2c836c(),_0x5874a8[_0x232540(0x9a)](_0x52697c,_0x276ebc),_0x276ebc[_0x232540(0x100)](_0x512dda((_0x13a4fc=this[_0x232540(0x102)][_0x232540(0x11d)](Pe))!=null?_0x13a4fc:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x232540(0x10d)](_0x4d4aaa=>{var _0x5c76b1=_0x232540;this[_0x5c76b1(0x83)][_0x5c76b1(0xfe)]({'eventID':_0x375d8a[_0x5c76b1(0x94)],'data':{'unitID':this[_0x5c76b1(0x104)],'operations':{[_0x4d4aaa['id']]:{'id':_0x4d4aaa['id'],'params':JSON['stringify'](_0x4d4aaa[_0x5c76b1(0x9f)])}}}},this[_0x5c76b1(0x104)]);})),_0x276ebc[_0x232540(0x10f)](_0x51d9c8);})),this[_0x30cf7d(0xa9)][_0x30cf7d(0xfd)](this[_0x30cf7d(0x104)])[_0x30cf7d(0x7d)](_0x11c9ae=>this[_0x30cf7d(0x83)]['send']({'eventID':_0x375d8a[_0x30cf7d(0x94)],'data':{'unitID':this[_0x30cf7d(0x104)],'operations':{[_0x11c9ae['id']]:{'id':_0x11c9ae['id'],'params':JSON[_0x30cf7d(0xfc)](_0x11c9ae[_0x30cf7d(0x9f)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x5246eb=_0x3c1b7a,_0xef2396;this[_0x5246eb(0x95)]['next'](_0x5246eb(0xe0)),(_0xef2396=this[_0x5246eb(0x11a)])==null||_0xef2396[_0x5246eb(0x92)](),this[_0x5246eb(0x11a)]=null;}[_0x3c1b7a(0xc0)](){var _0x81614a=_0x3c1b7a,_0x2a3c98;(_0x2a3c98=this[_0x81614a(0x11a)])==null||_0x2a3c98[_0x81614a(0x92)](),this['_status$'][_0x81614a(0x10f)](_0x81614a(0xaf));}['_beIdle'](){var _0x221ab1=_0x3c1b7a,_0xbc21ac;this[_0x221ab1(0x95)][_0x221ab1(0x10f)](_0x221ab1(0xe0)),(_0xbc21ac=this['_commandDisposable'])==null||_0xbc21ac[_0x221ab1(0x92)](),this['_commandDisposable']=null;}[_0x3c1b7a(0xb4)](){var _0x442ab9=_0x3c1b7a,_0x4a0462;this['_status$'][_0x442ab9(0x10f)](_0x442ab9(0xa1)),(_0x4a0462=this['_commandDisposable'])==null||_0x4a0462['dispose']();}[_0x3c1b7a(0xd4)](_0x5438ab){var _0x2943cf=_0x3c1b7a;if([_0x2943cf(0xb2),_0x2943cf(0xa1),_0x2943cf(0xb5)][_0x2943cf(0xcd)](this['_status'])||!_0x5438ab['data'][_0x2943cf(0xd5)]||_0x5438ab[_0x2943cf(0xed)][_0x2943cf(0xd5)]===this[_0x2943cf(0x83)][_0x2943cf(0x89)]())return;this[_0x2943cf(0xd8)]===_0x2943cf(0xe0)&&this[_0x2943cf(0xc0)]();const _0x814d3d=_0x5438ab[_0x2943cf(0xed)]['operations'];Object[_0x2943cf(0x8c)](_0x814d3d)['forEach'](_0x42b69a=>{var _0x38f8ef=_0x2943cf;this[_0x38f8ef(0xf0)][_0x38f8ef(0xc6)](_0x42b69a['id'],_0x42b69a[_0x38f8ef(0x9f)]?JSON[_0x38f8ef(0xa0)](_0x42b69a['params']):null,{'fromCollab':!0x0});});}[_0x3c1b7a(0xe1)](){var _0x5e684e=_0x3c1b7a,_0x1539d7;this[_0x5e684e(0x95)][_0x5e684e(0x10f)](_0x5e684e(0xb5)),(_0x1539d7=this[_0x5e684e(0x11a)])==null||_0x1539d7[_0x5e684e(0x92)]();}['_handleOnline'](){var _0x56f1a5=_0x3c1b7a;this[_0x56f1a5(0x95)][_0x56f1a5(0x10f)](_0x56f1a5(0xe0)),this[_0x56f1a5(0x87)]();}};w=Z([f(0x2,_0x311f9d),f(0x3,_0x44d7dc(L)),f(0x4,_0x2b2e54)],w);function _0x126b(){var _0x382dcf=['_unitID','prototype','213319qiXXat','_handleNewChangeSets','stopPresenting','mutations','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','getValue','evenodd','subscribe','139437cdfFqD','next','startFollowing','pluginName','You\x27re\x20presenting\x20the\x20document','disposeWithMe','mask','setConfig','_univerInstanceService','_config','_sharedOperations','4788144cPGehs','_commandDisposable','from','24uIzgbC','getConfig','getTypeOfUnitAdded$','use','call','getOwnPropertyDescriptor','getLiveShareCoordinator','displayName','7082075bVrmqQ','SAME_OPERATION_SHARE_INTERVAL','extend','concat','xlink:href','get','UNIVER_UNKNOWN','trim','none','3798320ZIvbAL','children','button','_beIdle','apply','UNIVER_SHEET','forEach','current','entries','1em','path','LIVESHARE_TERMINATE','_collabSession','getTypeOfUnitDisposed$','length','dispose$','_fetchOperations','symbol','getMemberID','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','univerjs-icon\x20univerjs-icon-','values','find','UNIVER_LIVE_SHARE_PLUGIN','_init','stopFollowing','reverse','dispose','PRESENTING','LIVESHARE_OPERATION','_status$','icon','OPERATION','attrs','_injector','set','IDLE','memberID','live-share.config','_presenter','params','parse','not-following','registerInitialStateReporter','assign','_handleOnline','You\x27are\x20offline.','OFFLINE','substring','univer-w-full\x20univer-mb-3\x20univer-text-sm','_liveShareService','_entities','UniverIcon','override','registerComponent','text','following','replace','end','presenting','unitId','_stopFollowing','offline','indexOf','NEW_CHANGESETS','LiveShareSingle','idSuffix','sheet','hasOwnProperty','_collabSessionService','Stop\x20following','_handleNewHost','1012845nxnNBs','_startFollowing','_stopPresenting','_startLiveShareCoordinator','default','colorChannel1','You\x27re\x20following\x20the\x20presenter','executeCommand','string','shouldShareOperation','NOT_FOLLOWING','getOwnPropertySymbols','4683675dPmXiD','fill','includes','event$','_startPresenting','_mountLiveShare','registerSharedOperation','className','random','_handleOperation','presenter','getCurrentTypeOfUnit$','univer-size-4','_status','asObservable','10sXYYhJ','delete','complete','0\x200\x2016\x2016','getUnitId','Present\x20this\x20document','idle','_handleOffline','_uiPartsService','has','_reporters','add','clear','LIVESHARE_NEW_HOST','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','createInstance','defineProperty','tag','onCommandExecuted','data','tryStartPresenting','propertyIsEnumerable','_commandService','div','defs','defIds','unsubscribe','then','currentColor','_handleTerminate','onRendered','Start\x20following','url(#$1','init','stringify','getInitialStates','send','status$','pipe','type','_configService','map'];_0x126b=function(){return _0x382dcf;};return _0x126b();}function Te(){var _0x1cb758=_0x3c1b7a;const _0x8281e4=_0x103267(I),_0x572b4b=_0x103267(_0x4ee65e),_0x37daaa=_0x21db21(()=>_0x572b4b[_0x1cb758(0xd6)](_0xf73b2e[_0x1cb758(0x7c)]),void 0x0,!0x1,[]),[_0x5a2825,_0x4912ad]=_0x4e5065(null),[_0x25fe46,_0x2b4d1e]=_0x4e5065(h[_0x1cb758(0x9b)]),_0x17cfc5=_0x214092(null);return _0x5916f3(()=>(_0x37daaa&&_0x8281e4[_0x1cb758(0x122)](_0x37daaa[_0x1cb758(0xde)]())[_0x1cb758(0xf5)](_0x17b548=>{var _0x2ddfe4=_0x1cb758;_0x4912ad(_0x17b548),_0x17cfc5['current']=_0x17b548[_0x2ddfe4(0xff)][_0x2ddfe4(0x10d)](_0x1e258f=>{_0x2b4d1e(_0x1e258f);});}),()=>{var _0x2bda45=_0x1cb758,_0x4600ed;(_0x4600ed=_0x17cfc5[_0x2bda45(0x7e)])==null||_0x4600ed[_0x2bda45(0xf4)](),_0x17cfc5[_0x2bda45(0x7e)]=null;}),[_0x37daaa,_0x8281e4]),_0x5a2825?_0x9d2327(_0x3cff0b,{'align':_0x1cb758(0xb1),'disabled':_0x25fe46===h['OFFLINE'],'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':_0x9d2327($e,{'status':_0x25fe46,'coordinator':_0x5a2825}),'children':_0x9d2327(_0x1cb758(0x79),{'className':_0x3ef185(_0x1cb758(0x10a),{'univer-cursor-not-allowed':_0x25fe46===h[_0x1cb758(0xa6)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x25fe46!==h[_0x1cb758(0xa6)]}),'type':_0x1cb758(0x79),'children':_0x9d2327(B,{'className':_0x1cb758(0xd7)})})}):null;}function $e(_0x1d8807){var _0xf97b75=_0x3c1b7a;const {status:_0x7fc47b,coordinator:_0x457378}=_0x1d8807;switch(_0x7fc47b){case h[_0xf97b75(0x9b)]:return _0x9d2327(Fe,{'coordinator':_0x457378});case h['FOLLOWING']:return _0x9d2327(He,{'coordinator':_0x457378});case h[_0xf97b75(0xc9)]:return _0x9d2327(je,{'coordinator':_0x457378});case h[_0xf97b75(0xa6)]:return _0x9d2327(Ve,{});case h[_0xf97b75(0x93)]:return _0x9d2327(Ue,{'coordinator':_0x457378});default:return null;}}function Fe(_0x49bccf){var _0x4495b8=_0x3c1b7a;const {coordinator:_0x32e716}=_0x49bccf;return _0x1f971f(_0x4453ed,{'children':[_0x9d2327(_0x4495b8(0xf1),{'className':_0x4495b8(0xa8),'children':_0x4495b8(0xdf)}),_0x9d2327(_0x37beb2,{'onClick':()=>_0x32e716[_0x4495b8(0xee)](),'children':'Start'})]});}function He(_0x4cd827){var _0x192921=_0x3c1b7a;const {coordinator:_0x151719}=_0x4cd827;return _0x1f971f(_0x4453ed,{'children':[_0x9d2327(_0x192921(0xf1),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x192921(0xc5)}),_0x9d2327(_0x37beb2,{'onClick':()=>_0x151719[_0x192921(0x90)](),'children':_0x192921(0xbd)})]});}function je(_0x161bad){var _0x1d64f6=_0x3c1b7a;const {coordinator:_0x5f2355}=_0x161bad;return _0x1f971f(_0x4453ed,{'children':[_0x9d2327('div',{'className':_0x1d64f6(0xa8),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x9d2327(_0x37beb2,{'variant':_0x1d64f6(0xae),'onClick':()=>_0x5f2355[_0x1d64f6(0x110)](),'children':_0x1d64f6(0xf9)})]});}function Ue(_0x3fe174){var _0x4255c0=_0x3c1b7a;const {coordinator:_0x25a6e6}=_0x3fe174;return _0x1f971f(_0x4453ed,{'children':[_0x9d2327(_0x4255c0(0xf1),{'className':_0x4255c0(0xa8),'children':_0x4255c0(0x112)}),_0x9d2327(_0x37beb2,{'variant':_0x4255c0(0xc3),'onClick':()=>_0x25a6e6[_0x4255c0(0x108)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x51cb38=_0x3c1b7a;return _0x9d2327(_0x4453ed,{'children':_0x51cb38(0xa5)});}var Me=Object[_0x3c1b7a(0x121)],ke=(_0x1b38b3,_0x504b89,_0x357ae5,_0x5c9bb6)=>{var _0x10eccb=_0x3c1b7a;for(var _0x3a9cd1=_0x5c9bb6>0x1?void 0x0:_0x5c9bb6?Me(_0x504b89,_0x357ae5):_0x504b89,_0x109b6f=_0x1b38b3[_0x10eccb(0x85)]-0x1,_0x1b2e8d;_0x109b6f>=0x0;_0x109b6f--)(_0x1b2e8d=_0x1b38b3[_0x109b6f])&&(_0x3a9cd1=_0x1b2e8d(_0x3a9cd1)||_0x3a9cd1);return _0x3a9cd1;},$=(_0x58e6a8,_0x49cbf6)=>(_0x310ae4,_0x5e2b1e)=>_0x49cbf6(_0x310ae4,_0x5e2b1e,_0x58e6a8);let b=class extends _0x323048{constructor(_0x4e5c54,_0x1735be){var _0x5ef54e=_0x3c1b7a;super(),this[_0x5ef54e(0x99)]=_0x4e5c54,this[_0x5ef54e(0xe2)]=_0x1735be,this[_0x5ef54e(0xd0)]();}[_0x3c1b7a(0xd0)](){var _0x491a87=_0x3c1b7a;this[_0x491a87(0x113)](this[_0x491a87(0xe2)][_0x491a87(0xad)](_0x32c72d['HEADER_MENU'],()=>_0x1c269e(Te,this[_0x491a87(0x99)])));}};b=ke([$(0x0,_0x44d7dc(_0x3982c7)),$(0x1,_0x5c593a)],b);var Ge=Object[_0x3c1b7a(0xea)],We=Object[_0x3c1b7a(0x121)],Ye=(_0x443266,_0xdd52b5,_0x5be062)=>_0xdd52b5 in _0x443266?Ge(_0x443266,_0xdd52b5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5be062}):_0x443266[_0xdd52b5]=_0x5be062,Be=(_0x1819df,_0xdf19a5,_0x19542d,_0x278520)=>{var _0x27a3ed=_0x3c1b7a;for(var _0x4e3576=_0x278520>0x1?void 0x0:_0x278520?We(_0xdf19a5,_0x19542d):_0xdf19a5,_0x46087a=_0x1819df[_0x27a3ed(0x85)]-0x1,_0x3f34c9;_0x46087a>=0x0;_0x46087a--)(_0x3f34c9=_0x1819df[_0x46087a])&&(_0x4e3576=_0x3f34c9(_0x4e3576)||_0x4e3576);return _0x4e3576;},F=(_0xbf00c6,_0x57dfc2)=>(_0x3249ea,_0x659cdc)=>_0x57dfc2(_0x3249ea,_0x659cdc,_0xbf00c6),J=(_0x62c7a8,_0x1ff566,_0x2a0d3a)=>Ye(_0x62c7a8,typeof _0x1ff566!='symbol'?_0x1ff566+'':_0x1ff566,_0x2a0d3a);const Ze=_0x3c1b7a(0x8e);let O=class extends _0xdce91a{constructor(_0x305d56=T,_0x31ddf1,_0x498150){var _0x32d467=_0x3c1b7a;super(),this['_config']=_0x305d56,this['_injector']=_0x31ddf1,this[_0x32d467(0x102)]=_0x498150;const {..._0x3f0997}=_0x36fdb2({},T,this[_0x32d467(0x117)]);this[_0x32d467(0x102)][_0x32d467(0x115)](Oe,_0x3f0997);}['onStarting'](){var _0xc23b0b=_0x3c1b7a;_0x54f287(this[_0xc23b0b(0x99)],_0x11650d([[L],[I],[m],[b]],this[_0xc23b0b(0x117)][_0xc23b0b(0xac)])),_0x3c79cd(this[_0xc23b0b(0x99)],[[m]]);}[_0x3c1b7a(0xf8)](){var _0x3c9304=_0x3c1b7a;_0x3c79cd(this[_0x3c9304(0x99)],[[b]]);}};J(O,'type',_0xf73b2e[_0x3c1b7a(0x12a)]),J(O,_0x3c1b7a(0x111),Ze),O=Be([_0x36136c(_0x448550),F(0x1,_0x44d7dc(_0x3982c7)),F(0x2,_0x311f9d)],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 _0x4c562c=_0x4c96;(function(_0x300af4,_0x362c6a){var _0x338fbb=_0x4c96,_0x327a0f=_0x300af4();while(!![]){try{var _0xd5d020=parseInt(_0x338fbb(0x1a0))/0x1*(parseInt(_0x338fbb(0x1bc))/0x2)+-parseInt(_0x338fbb(0x196))/0x3*(parseInt(_0x338fbb(0x1bb))/0x4)+-parseInt(_0x338fbb(0x202))/0x5*(-parseInt(_0x338fbb(0x20d))/0x6)+-parseInt(_0x338fbb(0x172))/0x7*(parseInt(_0x338fbb(0x1ba))/0x8)+parseInt(_0x338fbb(0x15b))/0x9*(parseInt(_0x338fbb(0x19b))/0xa)+-parseInt(_0x338fbb(0x1e6))/0xb*(-parseInt(_0x338fbb(0x1df))/0xc)+-parseInt(_0x338fbb(0x177))/0xd*(parseInt(_0x338fbb(0x19e))/0xe);if(_0xd5d020===_0x362c6a)break;else _0x327a0f['push'](_0x327a0f['shift']());}catch(_0x2ffa8b){_0x327a0f['push'](_0x327a0f['shift']());}}}(_0x1f35,0x3a14b));var q=Object[_0x4c562c(0x162)],z=(_0x435ae3,_0x133333,_0x38b93e)=>_0x133333 in _0x435ae3?q(_0x435ae3,_0x133333,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38b93e}):_0x435ae3[_0x133333]=_0x38b93e,d=(_0x1feeca,_0x4ce593,_0x595ab5)=>z(_0x1feeca,typeof _0x4ce593!='symbol'?_0x4ce593+'':_0x4ce593,_0x595ab5);import{CollaborationSessionService as _0x4bced4,SessionStatus as _0x406a9c,UniverCollaborationClientPlugin as _0x364d6e}from'@univerjs-pro/collaboration-client';import{Disposable as _0x33c3c3,toDisposable as _0x5c277b,Inject as _0x28b8e2,IUniverInstanceService as _0x39e568,Injector as _0x37932d,IConfigService as _0x12fb39,ICommandService as _0x444a63,RxDisposable as _0x30c532,UniverInstanceType as _0x5516a4,DisposableCollection as _0x533c1f,CommandType as _0x29ff11,DependentOn as _0x4f811b,Plugin as _0x490596,merge as _0x37f4ea,registerDependencies as _0x434b8c,mergeOverrideWithDependencies as _0x22b299,touchDependencies as _0x87b0fb}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x4db634,InsertSheetMutation as _0x18021c}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x3796db,SetScrollOperation as _0x458e24}from'@univerjs/sheets-ui';import{useDependency as _0x2fae43,useObservable as _0x2cbc5c,IUIPartsService as _0x331a18,BuiltInUIPart as _0x376e2d,connectInjector as _0x2fb9f7}from'@univerjs/ui';import{jsx as _0x7764ac,jsxs as _0x55f059,Fragment as _0x31bb70}from'react/jsx-runtime';import{Dropdown as _0x1b79cb,clsx as _0x371cc7,Button as _0x33e106}from'@univerjs/design';import{forwardRef as _0x5a5524,useRef as _0x666d59,createElement as _0x4d5163,useState as _0x1aef14,useEffect as _0x40246b}from'react';import{CollaborationEvent as _0x273bef,parseProtocolChangeset as _0x4fdd2c}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2470ba,Subject as _0x2dfbad}from'rxjs';function _0x1f35(){var _0x48b754=['405141odvJGv','svg','apply','propertyIsEnumerable','pluginName','getLiveShareCoordinator','_commandDisposable','substring','LiveShareIcon','idle','params','_uiPartsService','You\x27re\x20following\x20the\x20presenter','following','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_beIdle','0\x200\x2017\x2017','_stopPresenting','symbol','not-following','event$','delete','_liveShareService','You\x27are\x20offline.','UNIVER_UNKNOWN','memberID','requireSession','subscribe','15445Zlukhn','values','onCommandExecuted','then','_status','extend','getOwnPropertySymbols','dispose$','call','sheet','from','138aePxmU','defIds','getMemberID','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','You\x27re\x20not\x20following\x20the\x20presenter','univer-w-full\x20univer-mb-3\x20univer-text-sm','forEach','_mountLiveShare','9OoYGMG','toString','send','univer-size-4','operations','indexOf','type','defineProperty','_fetchOperations','unsubscribe','LIVESHARE_NEW_HOST','PRESENTING','asObservable','button','Start\x20following','_presenter','function','currentColor','_collabSession','getInitialStates','stopPresenting','_stopFollowing','_status$','7mOBhGJ','SAME_OPERATION_SHARE_INTERVAL','mutations','_configService','getUnitId','644566SlzUVQ','_startFollowing','startFollowing','unitId','_handleOnline','clear','http://www.w3.org/2000/svg','getTypeOfUnitAdded$','div','tag','_handleOffline','NEW_CHANGESETS','_config','length','getTypeOfUnitDisposed$','complete','getOwnPropertyDescriptor','_handleNewChangeSets','UniverIcon','UNIVER_LIVE_SHARE_PLUGIN','disposeWithMe','displayName','none','_handleOperation','_sharedOperations','_entities','pipe','presenter','_collabSessionService','colorChannel1','LIVESHARE_OPERATION','6ZSjzcS','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','_commandService','prototype','HEADER_MENU','803290TKSauJ','_unitID','setConfig','98MGvUFc','className','82151xwbqkb','getCurrentTypeOfUnit$','map','dispose','assign','next','fill','children','includes','parse','OFFLINE','offline','set','find','_reporters','UNIVER_SHEET','OPERATION','get','Stop\x20following','idSuffix','entries','executeCommand','_startLiveShareCoordinator','LIVESHARE_TERMINATE','_startPresenting','_univerInstanceService','239160xeycXM','557484BCzQsp','10QiEDnM','IDLE','_injector','live-share.config','Stop\x20presenting','concat','default','status$','mask','Start','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','NOT_FOLLOWING','attrs','icon','text','1em','string','replace','_handleTerminate','sessionStatus$','evenodd','LIVESHARE_FETCH_OPERATIONS','xlink:href','FOLLOWING','init','path','data','current','registerSharedOperation','add','ONLINE','tryStartPresenting','has','_init','url(#$1','108QbspDw','random','reverse','hasOwnProperty','stopFollowing','presenting','live-share-icon'];_0x1f35=function(){return _0x48b754;};return _0x1f35();}import{takeUntil as _0x5182f0,throttleTime as _0x28ab2b}from'rxjs/operators';const Oe=_0x4c562c(0x1bf),T={};class L extends _0x33c3c3{constructor(){var _0x46ea76=_0x4c562c;super(...arguments),d(this,_0x46ea76(0x18f),new Set()),d(this,_0x46ea76(0x1ae),new Set());}[_0x4c562c(0x1d8)](_0x268d36){var _0x144125=_0x4c562c;return this[_0x144125(0x18f)][_0x144125(0x1d9)](_0x268d36),_0x5c277b(()=>this[_0x144125(0x18f)][_0x144125(0x1fb)](_0x268d36));}['registerInitialStateReporter'](_0x1b6696){var _0x512bb1=_0x4c562c;return this[_0x512bb1(0x1ae)]['add'](_0x1b6696),_0x5c277b(()=>this[_0x512bb1(0x1ae)][_0x512bb1(0x1fb)](_0x1b6696));}['shouldShareOperation'](_0x3cc72f){var _0x3deb7b=_0x4c562c;return this[_0x3deb7b(0x18f)][_0x3deb7b(0x1dc)](_0x3cc72f);}[_0x4c562c(0x16e)](_0x53c56f){var _0x4acfbd=_0x4c562c;return Array[_0x4acfbd(0x20c)](this[_0x4acfbd(0x1ae)])['map'](_0x1ca293=>_0x1ca293(_0x53c56f));}}function _0x4c96(_0x4da714,_0x36708b){var _0x1f351d=_0x1f35();return _0x4c96=function(_0x4c9640,_0x1df910){_0x4c9640=_0x4c9640-0x154;var _0x53503b=_0x1f351d[_0x4c9640];return _0x53503b;},_0x4c96(_0x4da714,_0x36708b);}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x410ab3,_0x3f7b0d,_0x55112f,_0x2d20d1)=>{var _0x426f99=_0x4c562c;for(var _0x1df922=_0x2d20d1>0x1?void 0x0:_0x2d20d1?Ee(_0x3f7b0d,_0x55112f):_0x3f7b0d,_0x1ea845=_0x410ab3[_0x426f99(0x184)]-0x1,_0x58198b;_0x1ea845>=0x0;_0x1ea845--)(_0x58198b=_0x410ab3[_0x1ea845])&&(_0x1df922=_0x58198b(_0x1df922)||_0x1df922);return _0x1df922;},Ne=(_0x5dee8b,_0x2f5f2b)=>(_0x4556a5,_0x2b2a5f)=>_0x2f5f2b(_0x4556a5,_0x2b2a5f,_0x5dee8b);let m=class extends _0x33c3c3{constructor(_0x38eff5){super(),this['_liveShareService']=_0x38eff5,this['_init']();}[_0x4c562c(0x1dd)](){var _0x56eea7=_0x4c562c;[_0x3796db['id'],_0x458e24['id'],_0x4db634['id']][_0x56eea7(0x159)](_0x1364ed=>{var _0x21d2fc=_0x56eea7;this[_0x21d2fc(0x18b)](this[_0x21d2fc(0x1fc)][_0x21d2fc(0x1d8)](_0x1364ed));});}};m=we([Ne(0x0,_0x28b8e2(L))],m);var c=function(){var _0x17f4bf=_0x4c562c;return c=Object[_0x17f4bf(0x1a4)]||function(_0x91f75c){var _0x34d3c9=_0x17f4bf;for(var _0x7c2d99,_0x4a2052=0x1,_0x39e866=arguments[_0x34d3c9(0x184)];_0x4a2052<_0x39e866;_0x4a2052++){_0x7c2d99=arguments[_0x4a2052];for(var _0x22239c in _0x7c2d99)Object[_0x34d3c9(0x199)][_0x34d3c9(0x1e2)][_0x34d3c9(0x20a)](_0x7c2d99,_0x22239c)&&(_0x91f75c[_0x22239c]=_0x7c2d99[_0x22239c]);}return _0x91f75c;},c[_0x17f4bf(0x1e8)](this,arguments);},Ce=function(_0x1902d2,_0xd4534){var _0x567312=_0x4c562c,_0xb8b042={};for(var _0x1b1fda in _0x1902d2)Object[_0x567312(0x199)][_0x567312(0x1e2)][_0x567312(0x20a)](_0x1902d2,_0x1b1fda)&&_0xd4534[_0x567312(0x160)](_0x1b1fda)<0x0&&(_0xb8b042[_0x1b1fda]=_0x1902d2[_0x1b1fda]);if(_0x1902d2!=null&&typeof Object[_0x567312(0x208)]==_0x567312(0x16b)){for(var _0x410787=0x0,_0x1b1fda=Object[_0x567312(0x208)](_0x1902d2);_0x410787<_0x1b1fda[_0x567312(0x184)];_0x410787++)_0xd4534[_0x567312(0x160)](_0x1b1fda[_0x410787])<0x0&&Object[_0x567312(0x199)][_0x567312(0x1e9)][_0x567312(0x20a)](_0x1902d2,_0x1b1fda[_0x410787])&&(_0xb8b042[_0x1b1fda[_0x410787]]=_0x1902d2[_0x1b1fda[_0x410787]]);}return _0xb8b042;},W=_0x5a5524(function(_0x4f5dd0,_0x2a9fbe){var _0x3f6b3b=_0x4c562c,_0x11aec6=_0x4f5dd0[_0x3f6b3b(0x1c9)],_0xd43ba7=_0x4f5dd0['id'],_0x55478b=_0x4f5dd0['className'],_0x1df97d=_0x4f5dd0[_0x3f6b3b(0x207)],_0x2dd629=Ce(_0x4f5dd0,[_0x3f6b3b(0x1c9),'id',_0x3f6b3b(0x19f),_0x3f6b3b(0x207)]),_0x2c5abe='univerjs-icon\x20univerjs-icon-'[_0x3f6b3b(0x1c1)](_0xd43ba7,'\x20')[_0x3f6b3b(0x1c1)](_0x55478b||'')['trim'](),_0x55b6ad=_0x666d59('_'[_0x3f6b3b(0x1c1)](Le()));return Y(_0x11aec6,''[_0x3f6b3b(0x1c1)](_0xd43ba7),{'defIds':_0x11aec6[_0x3f6b3b(0x154)],'idSuffix':_0x55b6ad[_0x3f6b3b(0x1d7)]},c({'ref':_0x2a9fbe,'className':_0x2c5abe},_0x2dd629),_0x1df97d);});function Y(_0x5dbe45,_0x2e9faf,_0x725586,_0x2f7440,_0x4944b5){var _0x222a8d=_0x4c562c;return _0x4d5163(_0x5dbe45[_0x222a8d(0x180)],c(c({'key':_0x2e9faf},De(_0x5dbe45,_0x725586,_0x4944b5)),_0x2f7440),(xe(_0x5dbe45,_0x725586)[_0x222a8d(0x1a7)]||[])[_0x222a8d(0x1a2)](function(_0x4fa380,_0x2e198d){var _0x350684=_0x222a8d;return Y(_0x4fa380,''[_0x350684(0x1c1)](_0x2e9faf,'-')[_0x350684(0x1c1)](_0x5dbe45[_0x350684(0x180)],'-')[_0x350684(0x1c1)](_0x2e198d),_0x725586,void 0x0,_0x4944b5);}));}function De(_0x5de3d4,_0x58a9ff,_0xaa9b5d){var _0x5a5e8e=_0x4c562c,_0x540083=c({},_0x5de3d4[_0x5a5e8e(0x1c8)]);_0xaa9b5d!=null&&_0xaa9b5d[_0x5a5e8e(0x194)]&&_0x540083[_0x5a5e8e(0x1a6)]===_0x5a5e8e(0x194)&&(_0x540083[_0x5a5e8e(0x1a6)]=_0xaa9b5d[_0x5a5e8e(0x194)]),_0x5de3d4[_0x5a5e8e(0x180)]==='mask'&&_0x540083['id']&&(_0x540083['id']=_0x540083['id']+_0x58a9ff[_0x5a5e8e(0x1b3)]),Object['entries'](_0x540083)[_0x5a5e8e(0x159)](function(_0x5f08fd){var _0x3f932b=_0x5a5e8e,_0x2c9206=_0x5f08fd[0x0],_0x2c9eb1=_0x5f08fd[0x1];_0x2c9206===_0x3f932b(0x1c4)&&typeof _0x2c9eb1==_0x3f932b(0x1cc)&&(_0x540083[_0x2c9206]=_0x2c9eb1[_0x3f932b(0x1cd)](/url\(#(.*)\)/,_0x3f932b(0x1de)['concat'](_0x58a9ff[_0x3f932b(0x1b3)],')')));});var _0x42b815=_0x58a9ff[_0x5a5e8e(0x154)];return!_0x42b815||_0x42b815['length']===0x0||(_0x5de3d4[_0x5a5e8e(0x180)]==='use'&&_0x540083[_0x5a5e8e(0x1d2)]&&(_0x540083[_0x5a5e8e(0x1d2)]=_0x540083[_0x5a5e8e(0x1d2)]+_0x58a9ff['idSuffix']),Object[_0x5a5e8e(0x1b4)](_0x540083)[_0x5a5e8e(0x159)](function(_0x2e73f6){var _0x3fe72d=_0x5a5e8e,_0x2d87cb=_0x2e73f6[0x0],_0x1217f2=_0x2e73f6[0x1];typeof _0x1217f2==_0x3fe72d(0x1cc)&&(_0x540083[_0x2d87cb]=_0x1217f2['replace'](/url\(#(.*)\)/,_0x3fe72d(0x1de)[_0x3fe72d(0x1c1)](_0x58a9ff['idSuffix'],')')));})),_0x540083;}function xe(_0x20fdc0,_0x470c46){var _0x5e97c8=_0x4c562c,_0x25e7a6,_0x2b3948=_0x470c46[_0x5e97c8(0x154)];return!_0x2b3948||_0x2b3948[_0x5e97c8(0x184)]===0x0?_0x20fdc0:_0x20fdc0[_0x5e97c8(0x180)]==='defs'&&(!((_0x25e7a6=_0x20fdc0[_0x5e97c8(0x1a7)])===null||_0x25e7a6===void 0x0)&&_0x25e7a6[_0x5e97c8(0x184)])?c(c({},_0x20fdc0),{'children':_0x20fdc0['children']['map'](function(_0x4e859d){var _0x4b3d23=_0x5e97c8;return typeof _0x4e859d[_0x4b3d23(0x1c8)]['id']=='string'&&_0x2b3948&&_0x2b3948[_0x4b3d23(0x160)](_0x4e859d[_0x4b3d23(0x1c8)]['id'])>-0x1?c(c({},_0x4e859d),{'attrs':c(c({},_0x4e859d[_0x4b3d23(0x1c8)]),{'id':_0x4e859d[_0x4b3d23(0x1c8)]['id']+_0x470c46[_0x4b3d23(0x1b3)]})}):_0x4e859d;})}):_0x20fdc0;}function Le(){var _0x105a53=_0x4c562c;return Math[_0x105a53(0x1e0)]()[_0x105a53(0x15c)](0x24)[_0x105a53(0x1ed)](0x2,0x8);}W[_0x4c562c(0x18c)]=_0x4c562c(0x189);var ye={'tag':_0x4c562c(0x1e7),'attrs':{'xmlns':_0x4c562c(0x17d),'fill':_0x4c562c(0x18d),'viewBox':_0x4c562c(0x1f6),'width':_0x4c562c(0x1cb),'height':_0x4c562c(0x1cb)},'children':[{'tag':_0x4c562c(0x1d5),'attrs':{'fill':_0x4c562c(0x16c),'d':_0x4c562c(0x1c6)}},{'tag':_0x4c562c(0x1d5),'attrs':{'fill':_0x4c562c(0x16c),'d':_0x4c562c(0x1f4),'fillRule':_0x4c562c(0x1d0),'clipRule':_0x4c562c(0x1d0)}}]},B=_0x5a5524(function(_0x320cff,_0x25f741){var _0x427ed1=_0x4c562c;return _0x4d5163(W,Object['assign']({},_0x320cff,{'id':_0x427ed1(0x1e5),'ref':_0x25f741,'icon':ye}));});B[_0x4c562c(0x18c)]=_0x4c562c(0x1ee);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x47b72e,_0x45e2dc,_0x4ba8e8,_0x4f7e1a)=>{var _0x173614=_0x4c562c;for(var _0xda7a82=_0x4f7e1a>0x1?void 0x0:_0x4f7e1a?Re(_0x45e2dc,_0x4ba8e8):_0x45e2dc,_0x40399e=_0x47b72e[_0x173614(0x184)]-0x1,_0x4f947a;_0x40399e>=0x0;_0x40399e--)(_0x4f947a=_0x47b72e[_0x40399e])&&(_0xda7a82=_0x4f947a(_0xda7a82)||_0xda7a82);return _0xda7a82;},f=(_0x3c2712,_0x492e53)=>(_0x3ee31e,_0x261ff9)=>_0x492e53(_0x3ee31e,_0x261ff9,_0x3c2712);let I=class extends _0x30c532{constructor(_0x409ef4,_0x64b075,_0xed39e){var _0x3f2a43=_0x4c562c;super(),d(this,_0x3f2a43(0x190),new Map()),(this[_0x3f2a43(0x1b9)]=_0x409ef4,this[_0x3f2a43(0x1be)]=_0x64b075,this[_0x3f2a43(0x193)]=_0xed39e,this[_0x3f2a43(0x1dd)]());}async[_0x4c562c(0x1eb)](_0x41aa7c){var _0x35f5e9=_0x4c562c;return this['_entities'][_0x35f5e9(0x1dc)](_0x41aa7c)||await this['_startLiveShareCoordinator'](_0x41aa7c),this['_entities'][_0x35f5e9(0x1b1)](_0x41aa7c);}[_0x4c562c(0x1dd)](){var _0x5e2db5=_0x4c562c;this[_0x5e2db5(0x1b9)][_0x5e2db5(0x17e)](_0x5516a4[_0x5e2db5(0x1af)])[_0x5e2db5(0x191)](_0x5182f0(this[_0x5e2db5(0x209)]))['subscribe'](async _0x4d21ee=>{var _0x4d53a4=_0x5e2db5;const _0x3ea49a=_0x4d21ee[_0x4d53a4(0x176)]();this[_0x4d53a4(0x190)][_0x4d53a4(0x1dc)](_0x3ea49a)||this[_0x4d53a4(0x1b6)](_0x3ea49a);}),this[_0x5e2db5(0x1b9)][_0x5e2db5(0x185)](_0x5516a4['UNIVER_SHEET'])['pipe'](_0x5182f0(this[_0x5e2db5(0x209)]))[_0x5e2db5(0x201)](_0x37fb0c=>{var _0x19940c=_0x5e2db5;const _0x2489d2=_0x37fb0c[_0x19940c(0x176)](),_0x4695c6=this[_0x19940c(0x190)]['get'](_0x2489d2);_0x4695c6==null||_0x4695c6[_0x19940c(0x1a3)]();});}async[_0x4c562c(0x1b6)](_0x188f75){var _0x329197=_0x4c562c;const _0xac8da2=await this[_0x329197(0x193)][_0x329197(0x200)](_0x188f75),_0x5d449f=this['_injector']['createInstance'](C,_0x188f75,_0xac8da2);return _0x5d449f[_0x329197(0x1d4)](),this[_0x329197(0x190)][_0x329197(0x1ac)](_0x188f75,_0x5d449f),_0x5d449f;}};I=Z([f(0x0,_0x39e568),f(0x1,_0x28b8e2(_0x37932d)),f(0x2,_0x28b8e2(_0x4bced4))],I);var h=(_0x5ef23c=>(_0x5ef23c[_0x4c562c(0x1aa)]='offline',_0x5ef23c[_0x4c562c(0x1bd)]='idle',_0x5ef23c[_0x4c562c(0x1d3)]=_0x4c562c(0x1f3),_0x5ef23c[_0x4c562c(0x1c7)]=_0x4c562c(0x1f9),_0x5ef23c[_0x4c562c(0x166)]=_0x4c562c(0x1e4),_0x5ef23c))(h||{});const Pe=_0x4c562c(0x173),Ae=0xc8;let C=class extends _0x30c532{constructor(_0x1b2439,_0x501702,_0x80e4a3,_0x50b221,_0xac5ce7){var _0x3f6d28=_0x4c562c;super(),d(this,_0x3f6d28(0x171),new _0x2470ba('idle')),d(this,_0x3f6d28(0x1c3),this['_status$'][_0x3f6d28(0x167)]()),d(this,_0x3f6d28(0x1dd),!0x1),d(this,_0x3f6d28(0x1ec),null),d(this,_0x3f6d28(0x16a),null),(this[_0x3f6d28(0x19c)]=_0x1b2439,this[_0x3f6d28(0x16d)]=_0x501702,this[_0x3f6d28(0x175)]=_0x80e4a3,this['_liveShareService']=_0x50b221,this[_0x3f6d28(0x198)]=_0xac5ce7);}get[_0x4c562c(0x206)](){var _0x4f784c=_0x4c562c;return this[_0x4f784c(0x171)]['getValue']();}[_0x4c562c(0x1a3)](){var _0x2dc576=_0x4c562c,_0x3d9838;(_0x3d9838=this[_0x2dc576(0x1ec)])==null||_0x3d9838[_0x2dc576(0x1a3)](),this[_0x2dc576(0x171)][_0x2dc576(0x1a5)]('idle'),this[_0x2dc576(0x171)][_0x2dc576(0x186)]();}[_0x4c562c(0x1d4)](){var _0x300f01=_0x4c562c;this[_0x300f01(0x1dd)]||(this[_0x300f01(0x1dd)]=!0x0,this['_collabSession'][_0x300f01(0x1cf)][_0x300f01(0x191)](_0x5182f0(this['dispose$']))[_0x300f01(0x201)](_0x4ee737=>{var _0x3552b4=_0x300f01;switch(_0x4ee737){case _0x406a9c['OFFLINE']:this[_0x3552b4(0x181)]();break;case _0x406a9c[_0x3552b4(0x1da)]:this[_0x3552b4(0x17b)]();break;}}),this[_0x300f01(0x16d)][_0x300f01(0x1fa)][_0x300f01(0x191)](_0x5182f0(this[_0x300f01(0x209)]))[_0x300f01(0x201)](_0x47cde8=>{var _0x39e378=_0x300f01;const {eventID:_0x10fad7}=_0x47cde8;switch(_0x10fad7){case _0x273bef[_0x39e378(0x165)]:this['_handleNewHost'](_0x47cde8);break;case _0x273bef[_0x39e378(0x195)]:this[_0x39e378(0x18e)](_0x47cde8);break;case _0x273bef[_0x39e378(0x1b7)]:this[_0x39e378(0x1ce)]();break;case _0x273bef[_0x39e378(0x182)]:this[_0x39e378(0x188)](_0x47cde8);break;}}));}['tryStartPresenting'](){var _0xccfa37=_0x4c562c;this['_collabSession'][_0xccfa37(0x15d)]({'eventID':_0x273bef['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0xccfa37(0x19c)],'userID':this[_0xccfa37(0x16d)][_0xccfa37(0x155)]()}},this[_0xccfa37(0x19c)]);}[_0x4c562c(0x16f)](){var _0x10abe9=_0x4c562c;this['_status']==='presenting'&&(this[_0x10abe9(0x171)][_0x10abe9(0x1a5)](_0x10abe9(0x1ef)),this[_0x10abe9(0x16d)]['send']({'eventID':_0x273bef['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x10abe9(0x19c)]}},this[_0x10abe9(0x19c)]));}[_0x4c562c(0x179)](){var _0x2f257d=_0x4c562c;this[_0x2f257d(0x206)]===_0x2f257d(0x1f9)&&(this['_status$']['next'](_0x2f257d(0x1f3)),this[_0x2f257d(0x178)]());}[_0x4c562c(0x1e3)](){var _0x1b5d40=_0x4c562c;this[_0x1b5d40(0x206)]===_0x1b5d40(0x1f3)&&this[_0x1b5d40(0x170)]();}['_handleNewHost'](_0x244d53){var _0x20a1e1=_0x4c562c;const {presenter:_0x1b5dd7}=_0x244d53[_0x20a1e1(0x1d6)],_0x3fc00a=this[_0x20a1e1(0x16d)][_0x20a1e1(0x155)]();this['_presenter']=_0x1b5dd7,_0x1b5dd7===_0x3fc00a?(this[_0x20a1e1(0x170)](),this['_startPresenting']()):this[_0x20a1e1(0x206)]!=='not-following'&&(this['_stopPresenting'](),this[_0x20a1e1(0x178)]());}[_0x4c562c(0x163)](){var _0x182599=_0x4c562c;const _0x5d4dc0={'eventID':_0x273bef[_0x182599(0x1d1)]};this[_0x182599(0x16d)][_0x182599(0x15d)](_0x5d4dc0,this[_0x182599(0x19c)]);}[_0x4c562c(0x1ce)](){var _0x232348=_0x4c562c;this['_presenter']=null,this[_0x232348(0x206)]!==_0x232348(0x1e4)&&this[_0x232348(0x1f5)]();}[_0x4c562c(0x188)](_0x6957ec){var _0x353b18=_0x4c562c;if(this[_0x353b18(0x206)]===_0x353b18(0x1f3)&&this[_0x353b18(0x16a)]===_0x6957ec[_0x353b18(0x1d6)][_0x353b18(0x1ff)]){const _0x2580fb=_0x4fdd2c(_0x6957ec[_0x353b18(0x1d6)])[_0x353b18(0x174)][_0x353b18(0x1e1)]()[_0x353b18(0x1ad)](_0x5badb5=>_0x5badb5['id']===_0x18021c['id']);if(_0x2580fb){const _0x1b9364=_0x2580fb[_0x353b18(0x1f0)][_0x353b18(0x17a)],_0x371654=_0x2580fb[_0x353b18(0x1f0)][_0x353b18(0x20b)]['id'];setTimeout(()=>{var _0x2c05ac=_0x353b18;this[_0x2c05ac(0x198)][_0x2c05ac(0x1b5)](_0x4db634['id'],{'unitId':_0x1b9364,'subUnitId':_0x371654},{'fromCollab':!0x0});});}}}[_0x4c562c(0x1b8)](){var _0x33e201=_0x4c562c;this[_0x33e201(0x171)][_0x33e201(0x1a5)](_0x33e201(0x1e4));const _0x10cce3=new Map(),_0xca3706=this[_0x33e201(0x1ec)]=new _0x533c1f();_0xca3706[_0x33e201(0x1d9)](_0x5c277b(()=>{var _0x1898ef=_0x33e201;_0x10cce3[_0x1898ef(0x159)](_0x169d83=>_0x169d83[_0x1898ef(0x186)]()),_0x10cce3[_0x1898ef(0x17c)]();})),_0xca3706[_0x33e201(0x1d9)](this[_0x33e201(0x198)][_0x33e201(0x204)](_0x275146=>{var _0x2f9f0f=_0x33e201,_0x597466;if(_0x275146[_0x2f9f0f(0x161)]!==_0x29ff11[_0x2f9f0f(0x1b0)]||!this['_liveShareService']['shouldShareOperation'](_0x275146['id']))return;const {id:_0x6d3b7f}=_0x275146;let _0xce94a4;_0x10cce3[_0x2f9f0f(0x1dc)](_0x6d3b7f)?_0xce94a4=_0x10cce3['get'](_0x6d3b7f):(_0xce94a4=new _0x2dfbad(),_0x10cce3[_0x2f9f0f(0x1ac)](_0x6d3b7f,_0xce94a4),_0xce94a4[_0x2f9f0f(0x191)](_0x28ab2b((_0x597466=this[_0x2f9f0f(0x175)]['getConfig'](Pe))!=null?_0x597466:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2f9f0f(0x201)](_0x708071=>{var _0x2de09e=_0x2f9f0f;this[_0x2de09e(0x16d)]['send']({'eventID':_0x273bef['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2de09e(0x19c)],'operations':{[_0x708071['id']]:{'id':_0x708071['id'],'params':JSON['stringify'](_0x708071['params'])}}}},this[_0x2de09e(0x19c)]);})),_0xce94a4[_0x2f9f0f(0x1a5)](_0x275146);})),this['_liveShareService'][_0x33e201(0x16e)](this[_0x33e201(0x19c)])[_0x33e201(0x159)](_0x1e0bcf=>this[_0x33e201(0x16d)][_0x33e201(0x15d)]({'eventID':_0x273bef[_0x33e201(0x195)],'data':{'unitID':this[_0x33e201(0x19c)],'operations':{[_0x1e0bcf['id']]:{'id':_0x1e0bcf['id'],'params':JSON['stringify'](_0x1e0bcf[_0x33e201(0x1f0)])}}}},this[_0x33e201(0x19c)]));}[_0x4c562c(0x1f7)](){var _0xcff531=_0x4c562c,_0x490c0d;this[_0xcff531(0x171)][_0xcff531(0x1a5)](_0xcff531(0x1ef)),(_0x490c0d=this[_0xcff531(0x1ec)])==null||_0x490c0d[_0xcff531(0x1a3)](),this['_commandDisposable']=null;}[_0x4c562c(0x178)](){var _0x2913b8=_0x4c562c,_0x374dc7;(_0x374dc7=this[_0x2913b8(0x1ec)])==null||_0x374dc7[_0x2913b8(0x1a3)](),this['_status$']['next'](_0x2913b8(0x1f3));}[_0x4c562c(0x1f5)](){var _0x1fac8c=_0x4c562c,_0x57cd1e;this[_0x1fac8c(0x171)][_0x1fac8c(0x1a5)]('idle'),(_0x57cd1e=this['_commandDisposable'])==null||_0x57cd1e[_0x1fac8c(0x1a3)](),this[_0x1fac8c(0x1ec)]=null;}[_0x4c562c(0x170)](){var _0x2476bc=_0x4c562c,_0x34d2ad;this[_0x2476bc(0x171)][_0x2476bc(0x1a5)](_0x2476bc(0x1f9)),(_0x34d2ad=this[_0x2476bc(0x1ec)])==null||_0x34d2ad['dispose']();}['_handleOperation'](_0x34cb80){var _0x4ab46a=_0x4c562c;if(['presenting',_0x4ab46a(0x1f9),_0x4ab46a(0x1ab)][_0x4ab46a(0x1a8)](this[_0x4ab46a(0x206)])||!_0x34cb80['data']['presenter']||_0x34cb80[_0x4ab46a(0x1d6)][_0x4ab46a(0x192)]===this[_0x4ab46a(0x16d)][_0x4ab46a(0x155)]())return;this['_status']===_0x4ab46a(0x1ef)&&this[_0x4ab46a(0x178)]();const _0x5c1866=_0x34cb80['data'][_0x4ab46a(0x15f)];Object[_0x4ab46a(0x203)](_0x5c1866)[_0x4ab46a(0x159)](_0x8213af=>{var _0xc6b37f=_0x4ab46a;this['_commandService'][_0xc6b37f(0x1b5)](_0x8213af['id'],_0x8213af['params']?JSON[_0xc6b37f(0x1a9)](_0x8213af[_0xc6b37f(0x1f0)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x3cfd19=_0x4c562c,_0x541e56;this[_0x3cfd19(0x171)][_0x3cfd19(0x1a5)](_0x3cfd19(0x1ab)),(_0x541e56=this[_0x3cfd19(0x1ec)])==null||_0x541e56[_0x3cfd19(0x1a3)]();}[_0x4c562c(0x17b)](){var _0x3c6b13=_0x4c562c;this[_0x3c6b13(0x171)][_0x3c6b13(0x1a5)](_0x3c6b13(0x1ef)),this['_fetchOperations']();}};C=Z([f(0x2,_0x12fb39),f(0x3,_0x28b8e2(L)),f(0x4,_0x444a63)],C);function Te(){var _0x2efdaf=_0x4c562c;const _0xa3eb21=_0x2fae43(I),_0x3bb343=_0x2fae43(_0x39e568),_0x285ee5=_0x2cbc5c(()=>_0x3bb343[_0x2efdaf(0x1a1)](_0x5516a4[_0x2efdaf(0x1af)]),void 0x0,!0x1,[]),[_0x11c6e7,_0x2a9433]=_0x1aef14(null),[_0x533c18,_0x10c56d]=_0x1aef14(h['IDLE']),_0x34e261=_0x666d59(null);return _0x40246b(()=>(_0x285ee5&&_0xa3eb21[_0x2efdaf(0x1eb)](_0x285ee5[_0x2efdaf(0x176)]())[_0x2efdaf(0x205)](_0x44411c=>{var _0x28e482=_0x2efdaf;_0x2a9433(_0x44411c),_0x34e261[_0x28e482(0x1d7)]=_0x44411c[_0x28e482(0x1c3)][_0x28e482(0x201)](_0x4b4f40=>{_0x10c56d(_0x4b4f40);});}),()=>{var _0x9eb8ff=_0x2efdaf,_0x18ba7e;(_0x18ba7e=_0x34e261[_0x9eb8ff(0x1d7)])==null||_0x18ba7e[_0x9eb8ff(0x164)](),_0x34e261['current']=null;}),[_0x285ee5,_0xa3eb21]),_0x11c6e7?_0x7764ac(_0x1b79cb,{'align':'end','disabled':_0x533c18===h[_0x2efdaf(0x1aa)],'className':_0x2efdaf(0x197),'overlay':_0x7764ac($e,{'status':_0x533c18,'coordinator':_0x11c6e7}),'children':_0x7764ac(_0x2efdaf(0x168),{'className':_0x371cc7(_0x2efdaf(0x156),{'univer-cursor-not-allowed':_0x533c18===h[_0x2efdaf(0x1aa)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x533c18!==h[_0x2efdaf(0x1aa)]}),'type':_0x2efdaf(0x168),'children':_0x7764ac(B,{'className':_0x2efdaf(0x15e)})})}):null;}function $e(_0x17a275){var _0x2703fc=_0x4c562c;const {status:_0x4da168,coordinator:_0x5d641a}=_0x17a275;switch(_0x4da168){case h[_0x2703fc(0x1bd)]:return _0x7764ac(Fe,{'coordinator':_0x5d641a});case h[_0x2703fc(0x1d3)]:return _0x7764ac(He,{'coordinator':_0x5d641a});case h['NOT_FOLLOWING']:return _0x7764ac(je,{'coordinator':_0x5d641a});case h[_0x2703fc(0x1aa)]:return _0x7764ac(Ve,{});case h[_0x2703fc(0x166)]:return _0x7764ac(Ue,{'coordinator':_0x5d641a});default:return null;}}function Fe(_0x487f3f){var _0x4f21dd=_0x4c562c;const {coordinator:_0x2c8713}=_0x487f3f;return _0x55f059(_0x31bb70,{'children':[_0x7764ac(_0x4f21dd(0x17f),{'className':_0x4f21dd(0x158),'children':'Present\x20this\x20document'}),_0x7764ac(_0x33e106,{'onClick':()=>_0x2c8713[_0x4f21dd(0x1db)](),'children':_0x4f21dd(0x1c5)})]});}function He(_0x55bdda){var _0x40de61=_0x4c562c;const {coordinator:_0x443370}=_0x55bdda;return _0x55f059(_0x31bb70,{'children':[_0x7764ac('div',{'className':_0x40de61(0x158),'children':_0x40de61(0x1f2)}),_0x7764ac(_0x33e106,{'onClick':()=>_0x443370[_0x40de61(0x1e3)](),'children':_0x40de61(0x1b2)})]});}function je(_0x19ccbe){var _0x5c617f=_0x4c562c;const {coordinator:_0x3b492e}=_0x19ccbe;return _0x55f059(_0x31bb70,{'children':[_0x7764ac(_0x5c617f(0x17f),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5c617f(0x157)}),_0x7764ac(_0x33e106,{'variant':_0x5c617f(0x1ca),'onClick':()=>_0x3b492e[_0x5c617f(0x179)](),'children':_0x5c617f(0x169)})]});}function Ue(_0x14ed7b){var _0x4530a1=_0x4c562c;const {coordinator:_0x3fd453}=_0x14ed7b;return _0x55f059(_0x31bb70,{'children':[_0x7764ac(_0x4530a1(0x17f),{'className':_0x4530a1(0x158),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x7764ac(_0x33e106,{'variant':_0x4530a1(0x1c2),'onClick':()=>_0x3fd453[_0x4530a1(0x16f)](),'children':_0x4530a1(0x1c0)})]});}function Ve(){var _0x40a2db=_0x4c562c;return _0x7764ac(_0x31bb70,{'children':_0x40a2db(0x1fd)});}var Me=Object[_0x4c562c(0x187)],ke=(_0x233bbe,_0x3aae78,_0x357b91,_0x25c99e)=>{for(var _0x49faa4=_0x25c99e>0x1?void 0x0:_0x25c99e?Me(_0x3aae78,_0x357b91):_0x3aae78,_0x4c1b71=_0x233bbe['length']-0x1,_0x5e44be;_0x4c1b71>=0x0;_0x4c1b71--)(_0x5e44be=_0x233bbe[_0x4c1b71])&&(_0x49faa4=_0x5e44be(_0x49faa4)||_0x49faa4);return _0x49faa4;},$=(_0x225bca,_0x1bcb3f)=>(_0x2307ec,_0x417c20)=>_0x1bcb3f(_0x2307ec,_0x417c20,_0x225bca);let b=class extends _0x33c3c3{constructor(_0x455cd0,_0x2d1199){var _0x3a7a95=_0x4c562c;super(),this[_0x3a7a95(0x1be)]=_0x455cd0,this[_0x3a7a95(0x1f1)]=_0x2d1199,this[_0x3a7a95(0x15a)]();}[_0x4c562c(0x15a)](){var _0x3b31ed=_0x4c562c;this[_0x3b31ed(0x18b)](this['_uiPartsService']['registerComponent'](_0x376e2d[_0x3b31ed(0x19a)],()=>_0x2fb9f7(Te,this[_0x3b31ed(0x1be)])));}};b=ke([$(0x0,_0x28b8e2(_0x37932d)),$(0x1,_0x331a18)],b);var Ge=Object[_0x4c562c(0x162)],We=Object[_0x4c562c(0x187)],Ye=(_0x41d755,_0x5ecf78,_0x3057c6)=>_0x5ecf78 in _0x41d755?Ge(_0x41d755,_0x5ecf78,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3057c6}):_0x41d755[_0x5ecf78]=_0x3057c6,Be=(_0x5278af,_0x355bd6,_0x4520be,_0x4a2481)=>{var _0x36b273=_0x4c562c;for(var _0x54a060=_0x4a2481>0x1?void 0x0:_0x4a2481?We(_0x355bd6,_0x4520be):_0x355bd6,_0x4761cf=_0x5278af[_0x36b273(0x184)]-0x1,_0x4cc1aa;_0x4761cf>=0x0;_0x4761cf--)(_0x4cc1aa=_0x5278af[_0x4761cf])&&(_0x54a060=_0x4cc1aa(_0x54a060)||_0x54a060);return _0x54a060;},F=(_0x33ab9f,_0x2cd63c)=>(_0x158e6c,_0x401d34)=>_0x2cd63c(_0x158e6c,_0x401d34,_0x33ab9f),J=(_0x5bee20,_0x20c9aa,_0x207788)=>Ye(_0x5bee20,typeof _0x20c9aa!=_0x4c562c(0x1f8)?_0x20c9aa+'':_0x20c9aa,_0x207788);const Ze=_0x4c562c(0x18a);let O=class extends _0x490596{constructor(_0x4d275c=T,_0x5d540f,_0x19a2ff){var _0x285cc3=_0x4c562c;super(),this[_0x285cc3(0x183)]=_0x4d275c,this[_0x285cc3(0x1be)]=_0x5d540f,this[_0x285cc3(0x175)]=_0x19a2ff;const {..._0x4cf274}=_0x37f4ea({},T,this[_0x285cc3(0x183)]);this[_0x285cc3(0x175)][_0x285cc3(0x19d)](Oe,_0x4cf274);}['onStarting'](){var _0x17e778=_0x4c562c;_0x434b8c(this[_0x17e778(0x1be)],_0x22b299([[L],[I],[m],[b]],this[_0x17e778(0x183)]['override'])),_0x87b0fb(this['_injector'],[[m]]);}['onRendered'](){var _0x517f34=_0x4c562c;_0x87b0fb(this[_0x517f34(0x1be)],[[b]]);}};J(O,_0x4c562c(0x161),_0x5516a4[_0x4c562c(0x1fe)]),J(O,_0x4c562c(0x1ea),Ze),O=Be([_0x4f811b(_0x364d6e),F(0x1,_0x28b8e2(_0x37932d)),F(0x2,_0x12fb39)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x4099(){var _0x438357=['fill','takeUntil','startFollowing','@univerjs/ui','BuiltInUIPart','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','tag','DisposableCollection','useObservable','_reporters','trim','Subject','values','Fragment','apply','set','_handleOffline','send','toStringTag','next','get','_handleOperation','_startLiveShareCoordinator','rxjs','InsertSheetMutation','getConfig','_commandDisposable','LIVESHARE_TERMINATE','asObservable','8314992mHIJxM','CollaborationSessionService','_liveShareService','useDependency','createInstance','path','text','defs','univerjs-icon\x20univerjs-icon-','stopFollowing','You\x27re\x20presenting\x20the\x20document','_startPresenting','Start','delete','_configService','UniverProCollaboration','2316pjDxiZ','RxDisposable','call','@univerjs-pro/collaboration-client','unitId','length','UniverInstanceType','defineProperty','HEADER_MENU','UniverUi','_status$','getLiveShareCoordinator','throttleTime','parse','attrs','univer-w-full\x20univer-mb-3\x20univer-text-sm','defIds','has','LiveShareController','status$','rxjs/operators','connectInjector','propertyIsEnumerable','memberID','102844NCyLUj','_sharedOperations','NOT_FOLLOWING','789814lDYFOz','forwardRef','LiveShare','getValue','mask','sessionStatus$','params','OFFLINE','_fetchOperations','reverse','default','indexOf','end','_startFollowing','registerDependencies','Stop\x20presenting','SetScrollOperation','object','IUIPartsService','LiveShareStatus','disposeWithMe','LIVESHARE_FETCH_OPERATIONS','0\x200\x2016\x2016','operations','unsubscribe','IUniverInstanceService','OPERATION','init','getTypeOfUnitDisposed$','type','getOwnPropertyDescriptor','url(#$1','data','Dropdown','_mountLiveShare','pipe','toDisposable','concat','getMemberID','jsx','executeCommand','currentColor','_stopFollowing','following','_handleOnline','idSuffix','CollaborationEvent','useRef','LIVESHARE_REQUEST_HOST','entries','UniverCollaborationClientPlugin','_entities','onRendered','14vuUmZi','children','live-share-single','_uiPartsService','@univerjs/design','amd','colorChannel1','IDLE','Disposable','LiveShareService','not-following','_handleNewHost','toString','UniverLiveSharePlugin','1ntGznf','LiveShareSingle','current','UniverDesign','Button','_commandService','_collabSessionService','UniverSheetsUi','Start\x20following','stringify','getTypeOfUnitAdded$','2218337FTlPyZ','FOLLOWING','SetWorksheetActiveOperation','@univerjs-pro/collaboration','className','tryStartPresenting','svg','getUnitId','xlink:href','exports','none','registerComponent','symbol','dispose','Module','_presenter','UNIVER_SHEET','pluginName','clear','button','includes','getInitialStates','dispose$','9igLEwv','parseProtocolChangeset','React','presenting','react/jsx-runtime','_univerInstanceService','Stop\x20following','PRESENTING','touchDependencies','30aWnwah','UniverIcon','LiveShareCoordinator','onCommandExecuted','@univerjs/sheets-ui','assign','_beIdle','forEach','offline','_status','subscribe','UNIVER_LIVE_SHARE_PLUGIN','mutations','shouldShareOperation','LIVESHARE_OPERATION','idle','Inject','substring','@univerjs/sheets','mergeOverrideWithDependencies','Plugin','extend','Injector','SessionStatus','_stopPresenting','string','_unitID','1762680EupBRU','useEffect','event$','div','1em','_config','You\x27re\x20following\x20the\x20presenter','map','icon','univer-size-4','random','react','createElement','jsxs','stopPresenting','_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','UniverProCollaborationClient','6078573sjXRRd','then','_collabSession','DesktopLiveShareController','prototype','setConfig','use','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','IConfigService','ICommandService','add','hasOwnProperty','registerSharedOperation','replace','find','live-share.config','onStarting','_handleTerminate','You\x27re\x20not\x20following\x20the\x20presenter','UniverSheets','registerInitialStateReporter','995OvqSEK','_init','@univerjs/core','getOwnPropertySymbols','useState'];_0x4099=function(){return _0x438357;};return _0x4099();}function _0xfc5c(_0x397cf9,_0x4c2516){var _0x4099e5=_0x4099();return _0xfc5c=function(_0xfc5ca7,_0x1ce778){_0xfc5ca7=_0xfc5ca7-0x1b9;var _0x38b88a=_0x4099e5[_0xfc5ca7];return _0x38b88a;},_0xfc5c(_0x397cf9,_0x4c2516);}(function(_0x42decb,_0x3ee20b){var _0x539da0=_0xfc5c,_0x13ec58=_0x42decb();while(!![]){try{var _0x31d97c=parseInt(_0x539da0(0x1c6))/0x1*(-parseInt(_0x539da0(0x281))/0x2)+parseInt(_0x539da0(0x1e8))/0x3*(-parseInt(_0x539da0(0x27e))/0x4)+-parseInt(_0x539da0(0x233))/0x5*(-parseInt(_0x539da0(0x266))/0x6)+parseInt(_0x539da0(0x2b6))/0x7*(parseInt(_0x539da0(0x20c))/0x8)+parseInt(_0x539da0(0x21e))/0x9+parseInt(_0x539da0(0x1f1))/0xa*(parseInt(_0x539da0(0x1d1))/0xb)+-parseInt(_0x539da0(0x256))/0xc;if(_0x31d97c===_0x3ee20b)break;else _0x13ec58['push'](_0x13ec58['shift']());}catch(_0x30aad2){_0x13ec58['push'](_0x13ec58['shift']());}}}(_0x4099,0x9a85e),function(_0x1a0c0a,_0xad0740){var _0x5b517e=_0xfc5c;typeof exports==_0x5b517e(0x292)&&typeof module<'u'?_0xad0740(exports,require('@univerjs-pro/collaboration-client'),require(_0x5b517e(0x235)),require(_0x5b517e(0x203)),require(_0x5b517e(0x1f5)),require(_0x5b517e(0x23b)),require(_0x5b517e(0x1ec)),require(_0x5b517e(0x1bc)),require('react'),require(_0x5b517e(0x1d4)),require('rxjs'),require(_0x5b517e(0x27a))):typeof define=='function'&&define[_0x5b517e(0x1bd)]?define([_0x5b517e(0x1da),_0x5b517e(0x269),_0x5b517e(0x235),_0x5b517e(0x203),_0x5b517e(0x1f5),_0x5b517e(0x23b),_0x5b517e(0x1ec),'@univerjs/design',_0x5b517e(0x217),'@univerjs-pro/collaboration',_0x5b517e(0x250),_0x5b517e(0x27a)],_0xad0740):(_0x1a0c0a=typeof globalThis<'u'?globalThis:_0x1a0c0a||self,_0xad0740(_0x1a0c0a['UniverProLiveShare']={},_0x1a0c0a[_0x5b517e(0x21d)],_0x1a0c0a['UniverCore'],_0x1a0c0a[_0x5b517e(0x231)],_0x1a0c0a[_0x5b517e(0x1cd)],_0x1a0c0a[_0x5b517e(0x26f)],_0x1a0c0a[_0x5b517e(0x1ea)],_0x1a0c0a[_0x5b517e(0x1c9)],_0x1a0c0a[_0x5b517e(0x1ea)],_0x1a0c0a[_0x5b517e(0x265)],_0x1a0c0a[_0x5b517e(0x250)],_0x1a0c0a[_0x5b517e(0x250)]['operators']));}(this,function(_0x5aed30,_0x4b90ca,_0x2d27d6,_0x2741d3,_0x6368ba,_0x11220d,_0x51a1f4,_0xb6a611,_0x47e352,_0x144564,_0x13dca1,_0xbc44ae){'use strict';var _0x5ed612=_0xfc5c;var _0x2e8c98=Object['defineProperty'],_0x2e7403=(_0x356829,_0x2d1341,_0x4e678a)=>_0x2d1341 in _0x356829?_0x2e8c98(_0x356829,_0x2d1341,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e678a}):_0x356829[_0x2d1341]=_0x4e678a,_0x2599a3=(_0xef9c79,_0x2b6872,_0x1e0397)=>_0x2e7403(_0xef9c79,typeof _0x2b6872!=_0x5ed612(0x1dd)?_0x2b6872+'':_0x2b6872,_0x1e0397);const _0x5daa30=_0x5ed612(0x22d),_0x253ae8={};class _0x330aba extends _0x2d27d6[_0x5ed612(0x1c0)]{constructor(){var _0x5a08e8=_0x5ed612;super(...arguments),_0x2599a3(this,_0x5a08e8(0x27f),new Set()),_0x2599a3(this,_0x5a08e8(0x242),new Set());}[_0x5ed612(0x22a)](_0x44ff2d){var _0x45d6ab=_0x5ed612;return this[_0x45d6ab(0x27f)][_0x45d6ab(0x228)](_0x44ff2d),_0x2d27d6['toDisposable'](()=>this['_sharedOperations'][_0x45d6ab(0x263)](_0x44ff2d));}[_0x5ed612(0x232)](_0x389e81){var _0x1d97f9=_0x5ed612;return this[_0x1d97f9(0x242)][_0x1d97f9(0x228)](_0x389e81),_0x2d27d6[_0x1d97f9(0x2a5)](()=>this[_0x1d97f9(0x242)][_0x1d97f9(0x263)](_0x389e81));}[_0x5ed612(0x1fe)](_0x4f43ac){var _0x4a483e=_0x5ed612;return this[_0x4a483e(0x27f)][_0x4a483e(0x277)](_0x4f43ac);}['getInitialStates'](_0x49e4d2){var _0x4a625c=_0x5ed612;return Array['from'](this[_0x4a625c(0x242)])['map'](_0x58cf4a=>_0x58cf4a(_0x49e4d2));}}var _0x55dd04=Object[_0x5ed612(0x29f)],_0x3c225a=(_0x84fa77,_0x2a3158,_0x205be7,_0x12e783)=>{for(var _0x2d466f=_0x12e783>0x1?void 0x0:_0x12e783?_0x55dd04(_0x2a3158,_0x205be7):_0x2a3158,_0x35a1f4=_0x84fa77['length']-0x1,_0x3f5cc4;_0x35a1f4>=0x0;_0x35a1f4--)(_0x3f5cc4=_0x84fa77[_0x35a1f4])&&(_0x2d466f=_0x3f5cc4(_0x2d466f)||_0x2d466f);return _0x2d466f;},_0x257aaa=(_0x4ce6e0,_0x3ba1bb)=>(_0x31a59b,_0x2af4f0)=>_0x3ba1bb(_0x31a59b,_0x2af4f0,_0x4ce6e0);let _0xc09cdd=class extends _0x2d27d6[_0x5ed612(0x1c0)]{constructor(_0x310135){var _0x4cec22=_0x5ed612;super(),this[_0x4cec22(0x258)]=_0x310135,this[_0x4cec22(0x234)]();}[_0x5ed612(0x234)](){var _0x5de087=_0x5ed612;[_0x6368ba['SetZoomRatioOperation']['id'],_0x6368ba[_0x5de087(0x291)]['id'],_0x2741d3['SetWorksheetActiveOperation']['id']][_0x5de087(0x1f8)](_0x36e782=>{var _0x1fa982=_0x5de087;this[_0x1fa982(0x295)](this[_0x1fa982(0x258)]['registerSharedOperation'](_0x36e782));});}};_0xc09cdd=_0x3c225a([_0x257aaa(0x0,_0x2d27d6[_0x5ed612(0x201)](_0x330aba))],_0xc09cdd);var _0x1ce461=function(){var _0x306929=_0x5ed612;return _0x1ce461=Object[_0x306929(0x1f6)]||function(_0x16f1fb){var _0x52f59d=_0x306929;for(var _0x365ad3,_0x1308e9=0x1,_0x26f20e=arguments[_0x52f59d(0x26b)];_0x1308e9<_0x26f20e;_0x1308e9++){_0x365ad3=arguments[_0x1308e9];for(var _0x12ca20 in _0x365ad3)Object[_0x52f59d(0x222)][_0x52f59d(0x229)][_0x52f59d(0x268)](_0x365ad3,_0x12ca20)&&(_0x16f1fb[_0x12ca20]=_0x365ad3[_0x12ca20]);}return _0x16f1fb;},_0x1ce461[_0x306929(0x247)](this,arguments);},_0x5e78b1=function(_0x6bd530,_0x4e939a){var _0x45aa46=_0x5ed612,_0xae0615={};for(var _0x312aca in _0x6bd530)Object[_0x45aa46(0x222)][_0x45aa46(0x229)][_0x45aa46(0x268)](_0x6bd530,_0x312aca)&&_0x4e939a[_0x45aa46(0x28c)](_0x312aca)<0x0&&(_0xae0615[_0x312aca]=_0x6bd530[_0x312aca]);if(_0x6bd530!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x1f24a1=0x0,_0x312aca=Object[_0x45aa46(0x236)](_0x6bd530);_0x1f24a1<_0x312aca[_0x45aa46(0x26b)];_0x1f24a1++)_0x4e939a[_0x45aa46(0x28c)](_0x312aca[_0x1f24a1])<0x0&&Object['prototype'][_0x45aa46(0x27c)]['call'](_0x6bd530,_0x312aca[_0x1f24a1])&&(_0xae0615[_0x312aca[_0x1f24a1]]=_0x6bd530[_0x312aca[_0x1f24a1]]);}return _0xae0615;},_0x11f833=_0x47e352[_0x5ed612(0x282)](function(_0x489b81,_0x908924){var _0x159ea4=_0x5ed612,_0x2c8db3=_0x489b81[_0x159ea4(0x214)],_0x48973a=_0x489b81['id'],_0x409f34=_0x489b81['className'],_0x26a90a=_0x489b81[_0x159ea4(0x206)],_0x4125cd=_0x5e78b1(_0x489b81,[_0x159ea4(0x214),'id',_0x159ea4(0x1d5),'extend']),_0x6350fa=_0x159ea4(0x25e)['concat'](_0x48973a,'\x20')[_0x159ea4(0x2a6)](_0x409f34||'')[_0x159ea4(0x243)](),_0x5d203e=_0x47e352['useRef']('_'[_0x159ea4(0x2a6)](_0x368cd0()));return _0x53b9d0(_0x2c8db3,''[_0x159ea4(0x2a6)](_0x48973a),{'defIds':_0x2c8db3['defIds'],'idSuffix':_0x5d203e['current']},_0x1ce461({'ref':_0x908924,'className':_0x6350fa},_0x4125cd),_0x26a90a);});function _0x53b9d0(_0x5a12bd,_0xa73761,_0x40e775,_0x2125f8,_0x2ce903){var _0x41cf83=_0x5ed612;return _0x47e352[_0x41cf83(0x218)](_0x5a12bd[_0x41cf83(0x23f)],_0x1ce461(_0x1ce461({'key':_0xa73761},_0xa63f4(_0x5a12bd,_0x40e775,_0x2ce903)),_0x2125f8),(_0x43fe00(_0x5a12bd,_0x40e775)[_0x41cf83(0x1b9)]||[])[_0x41cf83(0x213)](function(_0x24a7e3,_0x39c8f3){var _0x28c60a=_0x41cf83;return _0x53b9d0(_0x24a7e3,''[_0x28c60a(0x2a6)](_0xa73761,'-')[_0x28c60a(0x2a6)](_0x5a12bd[_0x28c60a(0x23f)],'-')['concat'](_0x39c8f3),_0x40e775,void 0x0,_0x2ce903);}));}function _0xa63f4(_0x339b20,_0x149fb8,_0x559e60){var _0x3a7ef0=_0x5ed612,_0x2ed219=_0x1ce461({},_0x339b20[_0x3a7ef0(0x274)]);_0x559e60!=null&&_0x559e60[_0x3a7ef0(0x1be)]&&_0x2ed219[_0x3a7ef0(0x238)]===_0x3a7ef0(0x1be)&&(_0x2ed219[_0x3a7ef0(0x238)]=_0x559e60[_0x3a7ef0(0x1be)]),_0x339b20[_0x3a7ef0(0x23f)]===_0x3a7ef0(0x285)&&_0x2ed219['id']&&(_0x2ed219['id']=_0x2ed219['id']+_0x149fb8[_0x3a7ef0(0x2ae)]),Object[_0x3a7ef0(0x2b2)](_0x2ed219)[_0x3a7ef0(0x1f8)](function(_0x10384e){var _0x490d27=_0x3a7ef0,_0x46c995=_0x10384e[0x0],_0x4f7aec=_0x10384e[0x1];_0x46c995===_0x490d27(0x285)&&typeof _0x4f7aec=='string'&&(_0x2ed219[_0x46c995]=_0x4f7aec[_0x490d27(0x22b)](/url\(#(.*)\)/,_0x490d27(0x2a0)[_0x490d27(0x2a6)](_0x149fb8[_0x490d27(0x2ae)],')')));});var _0x29a070=_0x149fb8[_0x3a7ef0(0x276)];return!_0x29a070||_0x29a070[_0x3a7ef0(0x26b)]===0x0||(_0x339b20[_0x3a7ef0(0x23f)]===_0x3a7ef0(0x224)&&_0x2ed219[_0x3a7ef0(0x1d9)]&&(_0x2ed219['xlink:href']=_0x2ed219['xlink:href']+_0x149fb8[_0x3a7ef0(0x2ae)]),Object[_0x3a7ef0(0x2b2)](_0x2ed219)[_0x3a7ef0(0x1f8)](function(_0x1fb434){var _0x1e483b=_0x3a7ef0,_0x1b4cdb=_0x1fb434[0x0],_0x450ee3=_0x1fb434[0x1];typeof _0x450ee3==_0x1e483b(0x20a)&&(_0x2ed219[_0x1b4cdb]=_0x450ee3[_0x1e483b(0x22b)](/url\(#(.*)\)/,'url(#$1'[_0x1e483b(0x2a6)](_0x149fb8[_0x1e483b(0x2ae)],')')));})),_0x2ed219;}function _0x43fe00(_0x517812,_0x194e79){var _0x329674=_0x5ed612,_0x2cd7c0,_0x2addf6=_0x194e79['defIds'];return!_0x2addf6||_0x2addf6[_0x329674(0x26b)]===0x0?_0x517812:_0x517812['tag']===_0x329674(0x25d)&&(!((_0x2cd7c0=_0x517812[_0x329674(0x1b9)])===null||_0x2cd7c0===void 0x0)&&_0x2cd7c0[_0x329674(0x26b)])?_0x1ce461(_0x1ce461({},_0x517812),{'children':_0x517812[_0x329674(0x1b9)]['map'](function(_0x4192c0){var _0x4f3050=_0x329674;return typeof _0x4192c0['attrs']['id']=='string'&&_0x2addf6&&_0x2addf6[_0x4f3050(0x28c)](_0x4192c0[_0x4f3050(0x274)]['id'])>-0x1?_0x1ce461(_0x1ce461({},_0x4192c0),{'attrs':_0x1ce461(_0x1ce461({},_0x4192c0['attrs']),{'id':_0x4192c0[_0x4f3050(0x274)]['id']+_0x194e79[_0x4f3050(0x2ae)]})}):_0x4192c0;})}):_0x517812;}function _0x368cd0(){var _0x117f12=_0x5ed612;return Math[_0x117f12(0x216)]()[_0x117f12(0x1c4)](0x24)[_0x117f12(0x202)](0x2,0x8);}_0x11f833['displayName']=_0x5ed612(0x1f2);var _0xb1e952={'tag':_0x5ed612(0x1d7),'attrs':{'fill':_0x5ed612(0x1db),'viewBox':_0x5ed612(0x297),'width':_0x5ed612(0x210),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x5ed612(0x2aa),'d':_0x5ed612(0x21c)}},{'tag':_0x5ed612(0x25b),'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':'evenodd','clipRule':'evenodd'}}]},_0x396c16=_0x47e352[_0x5ed612(0x282)](function(_0x1474f2,_0x150677){var _0x3850b0=_0x5ed612;return _0x47e352[_0x3850b0(0x218)](_0x11f833,Object['assign']({},_0x1474f2,{'id':_0x3850b0(0x1ba),'ref':_0x150677,'icon':_0xb1e952}));});_0x396c16['displayName']=_0x5ed612(0x1c7);var _0x2da072=Object['getOwnPropertyDescriptor'],_0x1e3a4c=(_0x18bde2,_0x4cc852,_0x2996f6,_0x1cdc55)=>{var _0x1db970=_0x5ed612;for(var _0x3218c3=_0x1cdc55>0x1?void 0x0:_0x1cdc55?_0x2da072(_0x4cc852,_0x2996f6):_0x4cc852,_0x4c36b6=_0x18bde2[_0x1db970(0x26b)]-0x1,_0x2900b7;_0x4c36b6>=0x0;_0x4c36b6--)(_0x2900b7=_0x18bde2[_0x4c36b6])&&(_0x3218c3=_0x2900b7(_0x3218c3)||_0x3218c3);return _0x3218c3;},_0x34ee57=(_0x5ab0b8,_0x4b7f57)=>(_0xae4ff1,_0x492aa4)=>_0x4b7f57(_0xae4ff1,_0x492aa4,_0x5ab0b8);_0x5aed30[_0x5ed612(0x278)]=class extends _0x2d27d6['RxDisposable']{constructor(_0x8195ee,_0x29925e,_0x320e57){var _0x59d021=_0x5ed612;super(),_0x2599a3(this,_0x59d021(0x2b4),new Map()),(this[_0x59d021(0x1ed)]=_0x8195ee,this[_0x59d021(0x21b)]=_0x29925e,this[_0x59d021(0x1cc)]=_0x320e57,this[_0x59d021(0x234)]());}async[_0x5ed612(0x271)](_0x175a7d){var _0x47886d=_0x5ed612;return this[_0x47886d(0x2b4)][_0x47886d(0x277)](_0x175a7d)||await this[_0x47886d(0x24f)](_0x175a7d),this[_0x47886d(0x2b4)]['get'](_0x175a7d);}['_init'](){var _0x2a48b1=_0x5ed612;this[_0x2a48b1(0x1ed)][_0x2a48b1(0x1d0)](_0x2d27d6['UniverInstanceType']['UNIVER_SHEET'])[_0x2a48b1(0x2a4)](_0xbc44ae[_0x2a48b1(0x239)](this[_0x2a48b1(0x1e7)]))[_0x2a48b1(0x1fb)](async _0x343d36=>{var _0x2b006b=_0x2a48b1;const _0x31478a=_0x343d36[_0x2b006b(0x1d8)]();this[_0x2b006b(0x2b4)][_0x2b006b(0x277)](_0x31478a)||this[_0x2b006b(0x24f)](_0x31478a);}),this[_0x2a48b1(0x1ed)][_0x2a48b1(0x29d)](_0x2d27d6[_0x2a48b1(0x26c)][_0x2a48b1(0x1e1)])[_0x2a48b1(0x2a4)](_0xbc44ae['takeUntil'](this[_0x2a48b1(0x1e7)]))[_0x2a48b1(0x1fb)](_0x1bfc56=>{var _0x74eff6=_0x2a48b1;const _0x2a5250=_0x1bfc56[_0x74eff6(0x1d8)](),_0x1a1885=this[_0x74eff6(0x2b4)][_0x74eff6(0x24d)](_0x2a5250);_0x1a1885==null||_0x1a1885['dispose']();});}async['_startLiveShareCoordinator'](_0x122dcc){var _0x28fede=_0x5ed612;const _0x56674e=await this[_0x28fede(0x1cc)]['requireSession'](_0x122dcc),_0x299a0d=this[_0x28fede(0x21b)][_0x28fede(0x25a)](_0x5aed30[_0x28fede(0x1f3)],_0x122dcc,_0x56674e);return _0x299a0d[_0x28fede(0x29c)](),this[_0x28fede(0x2b4)][_0x28fede(0x248)](_0x122dcc,_0x299a0d),_0x299a0d;}},_0x5aed30[_0x5ed612(0x278)]=_0x1e3a4c([_0x34ee57(0x0,_0x2d27d6[_0x5ed612(0x29a)]),_0x34ee57(0x1,_0x2d27d6[_0x5ed612(0x201)](_0x2d27d6[_0x5ed612(0x207)])),_0x34ee57(0x2,_0x2d27d6['Inject'](_0x4b90ca[_0x5ed612(0x257)]))],_0x5aed30[_0x5ed612(0x278)]);var _0x461c56=(_0x59354f=>(_0x59354f['OFFLINE']='offline',_0x59354f[_0x5ed612(0x1bf)]=_0x5ed612(0x200),_0x59354f['FOLLOWING']=_0x5ed612(0x2ac),_0x59354f['NOT_FOLLOWING']=_0x5ed612(0x1c2),_0x59354f[_0x5ed612(0x1ef)]='presenting',_0x59354f))(_0x461c56||{});const _0x2387db='SAME_OPERATION_SHARE_INTERVAL',_0x4d54cd=0xc8;_0x5aed30[_0x5ed612(0x1f3)]=class extends _0x2d27d6[_0x5ed612(0x267)]{constructor(_0x13c776,_0x3932bd,_0x540db1,_0x2e76a8,_0x29a695){var _0x48aaae=_0x5ed612;super(),_0x2599a3(this,_0x48aaae(0x270),new _0x13dca1['BehaviorSubject'](_0x48aaae(0x200))),_0x2599a3(this,_0x48aaae(0x279),this[_0x48aaae(0x270)][_0x48aaae(0x255)]()),_0x2599a3(this,'_init',!0x1),_0x2599a3(this,_0x48aaae(0x253),null),_0x2599a3(this,_0x48aaae(0x1e0),null),(this[_0x48aaae(0x20b)]=_0x13c776,this[_0x48aaae(0x220)]=_0x3932bd,this[_0x48aaae(0x264)]=_0x540db1,this[_0x48aaae(0x258)]=_0x2e76a8,this[_0x48aaae(0x1cb)]=_0x29a695);}get['_status'](){var _0x2fad85=_0x5ed612;return this[_0x2fad85(0x270)][_0x2fad85(0x284)]();}[_0x5ed612(0x1de)](){var _0x19a169=_0x5ed612,_0x29674f;(_0x29674f=this[_0x19a169(0x253)])==null||_0x29674f[_0x19a169(0x1de)](),this[_0x19a169(0x270)][_0x19a169(0x24c)](_0x19a169(0x200)),this[_0x19a169(0x270)]['complete']();}['init'](){var _0x3d2b96=_0x5ed612;this[_0x3d2b96(0x234)]||(this['_init']=!0x0,this['_collabSession'][_0x3d2b96(0x286)]['pipe'](_0xbc44ae[_0x3d2b96(0x239)](this[_0x3d2b96(0x1e7)]))[_0x3d2b96(0x1fb)](_0x3900f1=>{var _0x539a8d=_0x3d2b96;switch(_0x3900f1){case _0x4b90ca[_0x539a8d(0x208)][_0x539a8d(0x288)]:this['_handleOffline']();break;case _0x4b90ca[_0x539a8d(0x208)]['ONLINE']:this[_0x539a8d(0x2ad)]();break;}}),this[_0x3d2b96(0x220)][_0x3d2b96(0x20e)][_0x3d2b96(0x2a4)](_0xbc44ae[_0x3d2b96(0x239)](this[_0x3d2b96(0x1e7)]))['subscribe'](_0x264cdd=>{var _0x43a946=_0x3d2b96;const {eventID:_0x50d81e}=_0x264cdd;switch(_0x50d81e){case _0x144564[_0x43a946(0x2af)]['LIVESHARE_NEW_HOST']:this[_0x43a946(0x1c3)](_0x264cdd);break;case _0x144564[_0x43a946(0x2af)][_0x43a946(0x1ff)]:this['_handleOperation'](_0x264cdd);break;case _0x144564[_0x43a946(0x2af)][_0x43a946(0x254)]:this[_0x43a946(0x22f)]();break;case _0x144564[_0x43a946(0x2af)]['NEW_CHANGESETS']:this[_0x43a946(0x23e)](_0x264cdd);break;}}));}['tryStartPresenting'](){var _0x1ab1ba=_0x5ed612;this[_0x1ab1ba(0x220)][_0x1ab1ba(0x24a)]({'eventID':_0x144564['CollaborationEvent'][_0x1ab1ba(0x2b1)],'data':{'unitID':this[_0x1ab1ba(0x20b)],'userID':this[_0x1ab1ba(0x220)][_0x1ab1ba(0x2a7)]()}},this[_0x1ab1ba(0x20b)]);}[_0x5ed612(0x21a)](){var _0x2fbb01=_0x5ed612;this[_0x2fbb01(0x1fa)]===_0x2fbb01(0x1eb)&&(this[_0x2fbb01(0x270)][_0x2fbb01(0x24c)](_0x2fbb01(0x200)),this[_0x2fbb01(0x220)][_0x2fbb01(0x24a)]({'eventID':_0x144564['CollaborationEvent'][_0x2fbb01(0x254)],'data':{'unitID':this[_0x2fbb01(0x20b)]}},this['_unitID']));}[_0x5ed612(0x23a)](){var _0x15957d=_0x5ed612;this['_status']===_0x15957d(0x1c2)&&(this['_status$'][_0x15957d(0x24c)](_0x15957d(0x2ac)),this[_0x15957d(0x28e)]());}['stopFollowing'](){var _0x310b3b=_0x5ed612;this[_0x310b3b(0x1fa)]===_0x310b3b(0x2ac)&&this['_stopFollowing']();}[_0x5ed612(0x1c3)](_0x3dde40){var _0x21a8a5=_0x5ed612;const {presenter:_0xe5eb70}=_0x3dde40[_0x21a8a5(0x2a1)],_0x206d55=this[_0x21a8a5(0x220)][_0x21a8a5(0x2a7)]();this[_0x21a8a5(0x1e0)]=_0xe5eb70,_0xe5eb70===_0x206d55?(this[_0x21a8a5(0x2ab)](),this[_0x21a8a5(0x261)]()):this[_0x21a8a5(0x1fa)]!=='not-following'&&(this[_0x21a8a5(0x209)](),this[_0x21a8a5(0x28e)]());}[_0x5ed612(0x289)](){var _0x2de010=_0x5ed612;const _0x3f27af={'eventID':_0x144564[_0x2de010(0x2af)][_0x2de010(0x296)]};this[_0x2de010(0x220)]['send'](_0x3f27af,this[_0x2de010(0x20b)]);}['_handleTerminate'](){var _0x44c80a=_0x5ed612;this[_0x44c80a(0x1e0)]=null,this[_0x44c80a(0x1fa)]!==_0x44c80a(0x1eb)&&this[_0x44c80a(0x1f7)]();}[_0x5ed612(0x23e)](_0x514c07){var _0x48c028=_0x5ed612;if(this[_0x48c028(0x1fa)]==='following'&&this[_0x48c028(0x1e0)]===_0x514c07[_0x48c028(0x2a1)][_0x48c028(0x27d)]){const _0x1265ec=_0x144564[_0x48c028(0x1e9)](_0x514c07[_0x48c028(0x2a1)])[_0x48c028(0x1fd)][_0x48c028(0x28a)]()[_0x48c028(0x22c)](_0x50418c=>_0x50418c['id']===_0x2741d3[_0x48c028(0x251)]['id']);if(_0x1265ec){const _0x2a3145=_0x1265ec[_0x48c028(0x287)][_0x48c028(0x26a)],_0x396dd5=_0x1265ec['params']['sheet']['id'];setTimeout(()=>{var _0x3f073b=_0x48c028;this[_0x3f073b(0x1cb)][_0x3f073b(0x2a9)](_0x2741d3[_0x3f073b(0x1d3)]['id'],{'unitId':_0x2a3145,'subUnitId':_0x396dd5},{'fromCollab':!0x0});});}}}[_0x5ed612(0x261)](){var _0x5a8b6b=_0x5ed612;this[_0x5a8b6b(0x270)][_0x5a8b6b(0x24c)](_0x5a8b6b(0x1eb));const _0x39da59=new Map(),_0x27052f=this[_0x5a8b6b(0x253)]=new _0x2d27d6[(_0x5a8b6b(0x240))]();_0x27052f[_0x5a8b6b(0x228)](_0x2d27d6['toDisposable'](()=>{var _0x70033=_0x5a8b6b;_0x39da59[_0x70033(0x1f8)](_0xccc2a9=>_0xccc2a9['complete']()),_0x39da59[_0x70033(0x1e3)]();})),_0x27052f[_0x5a8b6b(0x228)](this[_0x5a8b6b(0x1cb)][_0x5a8b6b(0x1f4)](_0x3cf148=>{var _0x38e942=_0x5a8b6b,_0x2badf8;if(_0x3cf148['type']!==_0x2d27d6['CommandType'][_0x38e942(0x29b)]||!this[_0x38e942(0x258)][_0x38e942(0x1fe)](_0x3cf148['id']))return;const {id:_0x393c95}=_0x3cf148;let _0x4581a1;_0x39da59[_0x38e942(0x277)](_0x393c95)?_0x4581a1=_0x39da59[_0x38e942(0x24d)](_0x393c95):(_0x4581a1=new _0x13dca1[(_0x38e942(0x244))](),_0x39da59['set'](_0x393c95,_0x4581a1),_0x4581a1[_0x38e942(0x2a4)](_0xbc44ae[_0x38e942(0x272)]((_0x2badf8=this[_0x38e942(0x264)][_0x38e942(0x252)](_0x2387db))!=null?_0x2badf8:_0x4d54cd,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x38e942(0x1fb)](_0x13f5d2=>{var _0x4f7da7=_0x38e942;this[_0x4f7da7(0x220)][_0x4f7da7(0x24a)]({'eventID':_0x144564['CollaborationEvent'][_0x4f7da7(0x1ff)],'data':{'unitID':this[_0x4f7da7(0x20b)],'operations':{[_0x13f5d2['id']]:{'id':_0x13f5d2['id'],'params':JSON['stringify'](_0x13f5d2['params'])}}}},this[_0x4f7da7(0x20b)]);})),_0x4581a1[_0x38e942(0x24c)](_0x3cf148);})),this[_0x5a8b6b(0x258)][_0x5a8b6b(0x1e6)](this['_unitID'])[_0x5a8b6b(0x1f8)](_0x13bf08=>this['_collabSession'][_0x5a8b6b(0x24a)]({'eventID':_0x144564[_0x5a8b6b(0x2af)][_0x5a8b6b(0x1ff)],'data':{'unitID':this[_0x5a8b6b(0x20b)],'operations':{[_0x13bf08['id']]:{'id':_0x13bf08['id'],'params':JSON[_0x5a8b6b(0x1cf)](_0x13bf08[_0x5a8b6b(0x287)])}}}},this[_0x5a8b6b(0x20b)]));}['_stopPresenting'](){var _0x3d7338=_0x5ed612,_0x6a85f3;this[_0x3d7338(0x270)][_0x3d7338(0x24c)]('idle'),(_0x6a85f3=this[_0x3d7338(0x253)])==null||_0x6a85f3[_0x3d7338(0x1de)](),this[_0x3d7338(0x253)]=null;}[_0x5ed612(0x28e)](){var _0x3920c1=_0x5ed612,_0x2c9390;(_0x2c9390=this[_0x3920c1(0x253)])==null||_0x2c9390[_0x3920c1(0x1de)](),this['_status$']['next'](_0x3920c1(0x2ac));}[_0x5ed612(0x1f7)](){var _0x2fb03f=_0x5ed612,_0x571701;this[_0x2fb03f(0x270)][_0x2fb03f(0x24c)](_0x2fb03f(0x200)),(_0x571701=this['_commandDisposable'])==null||_0x571701['dispose'](),this[_0x2fb03f(0x253)]=null;}[_0x5ed612(0x2ab)](){var _0x485c15=_0x5ed612,_0x270921;this[_0x485c15(0x270)]['next'](_0x485c15(0x1c2)),(_0x270921=this[_0x485c15(0x253)])==null||_0x270921[_0x485c15(0x1de)]();}[_0x5ed612(0x24e)](_0x419e1a){var _0x5e4728=_0x5ed612;if([_0x5e4728(0x1eb),_0x5e4728(0x1c2),'offline'][_0x5e4728(0x1e5)](this[_0x5e4728(0x1fa)])||!_0x419e1a[_0x5e4728(0x2a1)]['presenter']||_0x419e1a['data']['presenter']===this[_0x5e4728(0x220)][_0x5e4728(0x2a7)]())return;this[_0x5e4728(0x1fa)]==='idle'&&this[_0x5e4728(0x28e)]();const _0x46a47f=_0x419e1a[_0x5e4728(0x2a1)][_0x5e4728(0x298)];Object[_0x5e4728(0x245)](_0x46a47f)[_0x5e4728(0x1f8)](_0x593f7b=>{var _0x34f4f0=_0x5e4728;this[_0x34f4f0(0x1cb)][_0x34f4f0(0x2a9)](_0x593f7b['id'],_0x593f7b['params']?JSON[_0x34f4f0(0x273)](_0x593f7b[_0x34f4f0(0x287)]):null,{'fromCollab':!0x0});});}[_0x5ed612(0x249)](){var _0x1a78b3=_0x5ed612,_0x3208c2;this[_0x1a78b3(0x270)][_0x1a78b3(0x24c)](_0x1a78b3(0x1f9)),(_0x3208c2=this[_0x1a78b3(0x253)])==null||_0x3208c2['dispose']();}['_handleOnline'](){var _0x4c666e=_0x5ed612;this['_status$'][_0x4c666e(0x24c)](_0x4c666e(0x200)),this[_0x4c666e(0x289)]();}},_0x5aed30['LiveShareCoordinator']=_0x1e3a4c([_0x34ee57(0x2,_0x2d27d6['IConfigService']),_0x34ee57(0x3,_0x2d27d6[_0x5ed612(0x201)](_0x330aba)),_0x34ee57(0x4,_0x2d27d6[_0x5ed612(0x227)])],_0x5aed30[_0x5ed612(0x1f3)]);function _0x944315(){var _0x2350ec=_0x5ed612;const _0x29780d=_0x11220d[_0x2350ec(0x259)](_0x5aed30[_0x2350ec(0x278)]),_0x35aea0=_0x11220d['useDependency'](_0x2d27d6[_0x2350ec(0x29a)]),_0x14ad04=_0x11220d[_0x2350ec(0x241)](()=>_0x35aea0['getCurrentTypeOfUnit$'](_0x2d27d6['UniverInstanceType'][_0x2350ec(0x1e1)]),void 0x0,!0x1,[]),[_0x44b9aa,_0x4672cf]=_0x47e352[_0x2350ec(0x237)](null),[_0x11a766,_0xf15a83]=_0x47e352['useState'](_0x461c56[_0x2350ec(0x1bf)]),_0x150e21=_0x47e352[_0x2350ec(0x2b0)](null);return _0x47e352[_0x2350ec(0x20d)](()=>(_0x14ad04&&_0x29780d[_0x2350ec(0x271)](_0x14ad04[_0x2350ec(0x1d8)]())[_0x2350ec(0x21f)](_0x4899cd=>{var _0x4217ec=_0x2350ec;_0x4672cf(_0x4899cd),_0x150e21[_0x4217ec(0x1c8)]=_0x4899cd[_0x4217ec(0x279)]['subscribe'](_0x40633a=>{_0xf15a83(_0x40633a);});}),()=>{var _0x28ab04=_0x2350ec,_0x447456;(_0x447456=_0x150e21['current'])==null||_0x447456[_0x28ab04(0x299)](),_0x150e21[_0x28ab04(0x1c8)]=null;}),[_0x14ad04,_0x29780d]),_0x44b9aa?_0x51a1f4['jsx'](_0xb6a611[_0x2350ec(0x2a2)],{'align':_0x2350ec(0x28d),'disabled':_0x11a766===_0x461c56['OFFLINE'],'className':_0x2350ec(0x23d),'overlay':_0x51a1f4[_0x2350ec(0x2a8)](_0x3d2a31,{'status':_0x11a766,'coordinator':_0x44b9aa}),'children':_0x51a1f4['jsx'](_0x2350ec(0x1e4),{'className':_0xb6a611['clsx'](_0x2350ec(0x225),{'univer-cursor-not-allowed':_0x11a766===_0x461c56[_0x2350ec(0x288)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x11a766!==_0x461c56['OFFLINE']}),'type':_0x2350ec(0x1e4),'children':_0x51a1f4[_0x2350ec(0x2a8)](_0x396c16,{'className':_0x2350ec(0x215)})})}):null;}function _0x3d2a31(_0x3b7fe0){var _0x5d7fed=_0x5ed612;const {status:_0x3b6ac7,coordinator:_0x17406d}=_0x3b7fe0;switch(_0x3b6ac7){case _0x461c56[_0x5d7fed(0x1bf)]:return _0x51a1f4[_0x5d7fed(0x2a8)](_0x3a93f7,{'coordinator':_0x17406d});case _0x461c56[_0x5d7fed(0x1d2)]:return _0x51a1f4[_0x5d7fed(0x2a8)](_0x4168ed,{'coordinator':_0x17406d});case _0x461c56[_0x5d7fed(0x280)]:return _0x51a1f4[_0x5d7fed(0x2a8)](_0x5421b2,{'coordinator':_0x17406d});case _0x461c56[_0x5d7fed(0x288)]:return _0x51a1f4['jsx'](_0x2b5c4d,{});case _0x461c56[_0x5d7fed(0x1ef)]:return _0x51a1f4[_0x5d7fed(0x2a8)](_0x38753f,{'coordinator':_0x17406d});default:return null;}}function _0x3a93f7(_0x174e11){var _0x52bbf5=_0x5ed612;const {coordinator:_0xb226d2}=_0x174e11;return _0x51a1f4[_0x52bbf5(0x219)](_0x51a1f4[_0x52bbf5(0x246)],{'children':[_0x51a1f4[_0x52bbf5(0x2a8)](_0x52bbf5(0x20f),{'className':_0x52bbf5(0x275),'children':'Present\x20this\x20document'}),_0x51a1f4[_0x52bbf5(0x2a8)](_0xb6a611[_0x52bbf5(0x1ca)],{'onClick':()=>_0xb226d2[_0x52bbf5(0x1d6)](),'children':_0x52bbf5(0x262)})]});}function _0x4168ed(_0x2b9be8){var _0x52465a=_0x5ed612;const {coordinator:_0x79bf52}=_0x2b9be8;return _0x51a1f4[_0x52465a(0x219)](_0x51a1f4[_0x52465a(0x246)],{'children':[_0x51a1f4[_0x52465a(0x2a8)](_0x52465a(0x20f),{'className':_0x52465a(0x275),'children':_0x52465a(0x212)}),_0x51a1f4['jsx'](_0xb6a611[_0x52465a(0x1ca)],{'onClick':()=>_0x79bf52[_0x52465a(0x25f)](),'children':_0x52465a(0x1ee)})]});}function _0x5421b2(_0x40f332){var _0x4515ae=_0x5ed612;const {coordinator:_0x42d4c8}=_0x40f332;return _0x51a1f4[_0x4515ae(0x219)](_0x51a1f4['Fragment'],{'children':[_0x51a1f4['jsx']('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x4515ae(0x230)}),_0x51a1f4[_0x4515ae(0x2a8)](_0xb6a611[_0x4515ae(0x1ca)],{'variant':_0x4515ae(0x25c),'onClick':()=>_0x42d4c8[_0x4515ae(0x23a)](),'children':_0x4515ae(0x1ce)})]});}function _0x38753f(_0x38dfe0){var _0x1fd126=_0x5ed612;const {coordinator:_0x2e2907}=_0x38dfe0;return _0x51a1f4[_0x1fd126(0x219)](_0x51a1f4[_0x1fd126(0x246)],{'children':[_0x51a1f4[_0x1fd126(0x2a8)](_0x1fd126(0x20f),{'className':_0x1fd126(0x275),'children':_0x1fd126(0x260)}),_0x51a1f4[_0x1fd126(0x2a8)](_0xb6a611[_0x1fd126(0x1ca)],{'variant':_0x1fd126(0x28b),'onClick':()=>_0x2e2907[_0x1fd126(0x21a)](),'children':_0x1fd126(0x290)})]});}function _0x2b5c4d(){var _0x13ce85=_0x5ed612;return _0x51a1f4[_0x13ce85(0x2a8)](_0x51a1f4[_0x13ce85(0x246)],{'children':'You\x27are\x20offline.'});}var _0xdcd2cc=Object[_0x5ed612(0x29f)],_0x48976d=(_0x6d752d,_0x46a775,_0x5e8840,_0x1ca8aa)=>{var _0x3ded54=_0x5ed612;for(var _0x35b99=_0x1ca8aa>0x1?void 0x0:_0x1ca8aa?_0xdcd2cc(_0x46a775,_0x5e8840):_0x46a775,_0x2bd556=_0x6d752d[_0x3ded54(0x26b)]-0x1,_0x395829;_0x2bd556>=0x0;_0x2bd556--)(_0x395829=_0x6d752d[_0x2bd556])&&(_0x35b99=_0x395829(_0x35b99)||_0x35b99);return _0x35b99;},_0x34f234=(_0x2944e7,_0x47815f)=>(_0x7b5b19,_0x22e6a7)=>_0x47815f(_0x7b5b19,_0x22e6a7,_0x2944e7);_0x5aed30[_0x5ed612(0x221)]=class extends _0x2d27d6['Disposable']{constructor(_0x511701,_0x5cecfb){var _0x3d56d3=_0x5ed612;super(),this['_injector']=_0x511701,this[_0x3d56d3(0x1bb)]=_0x5cecfb,this['_mountLiveShare']();}[_0x5ed612(0x2a3)](){var _0x4f07b7=_0x5ed612;this['disposeWithMe'](this[_0x4f07b7(0x1bb)][_0x4f07b7(0x1dc)](_0x11220d[_0x4f07b7(0x23c)][_0x4f07b7(0x26e)],()=>_0x11220d[_0x4f07b7(0x27b)](_0x944315,this[_0x4f07b7(0x21b)])));}},_0x5aed30[_0x5ed612(0x221)]=_0x48976d([_0x34f234(0x0,_0x2d27d6[_0x5ed612(0x201)](_0x2d27d6[_0x5ed612(0x207)])),_0x34f234(0x1,_0x11220d[_0x5ed612(0x293)])],_0x5aed30['DesktopLiveShareController']);var _0x190a06=Object[_0x5ed612(0x26d)],_0x3974e7=Object[_0x5ed612(0x29f)],_0x1dc0f5=(_0x1cbeac,_0x429807,_0x532b18)=>_0x429807 in _0x1cbeac?_0x190a06(_0x1cbeac,_0x429807,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x532b18}):_0x1cbeac[_0x429807]=_0x532b18,_0x5ce142=(_0x512fe2,_0x3b977c,_0x443ac3,_0x6d34fb)=>{for(var _0x8f187a=_0x6d34fb>0x1?void 0x0:_0x6d34fb?_0x3974e7(_0x3b977c,_0x443ac3):_0x3b977c,_0x37366d=_0x512fe2['length']-0x1,_0x619f10;_0x37366d>=0x0;_0x37366d--)(_0x619f10=_0x512fe2[_0x37366d])&&(_0x8f187a=_0x619f10(_0x8f187a)||_0x8f187a);return _0x8f187a;},_0x75881d=(_0x37ba73,_0x54f456)=>(_0x376596,_0x3d1615)=>_0x54f456(_0x376596,_0x3d1615,_0x37ba73),_0xc7956a=(_0x3fdcfe,_0x2e6a6a,_0x3a2930)=>_0x1dc0f5(_0x3fdcfe,typeof _0x2e6a6a!=_0x5ed612(0x1dd)?_0x2e6a6a+'':_0x2e6a6a,_0x3a2930);const _0x544a27=_0x5ed612(0x1fc);_0x5aed30[_0x5ed612(0x1c5)]=class extends _0x2d27d6[_0x5ed612(0x205)]{constructor(_0x432e64=_0x253ae8,_0xa560d8,_0xabcd86){var _0xb0c101=_0x5ed612;super(),this['_config']=_0x432e64,this[_0xb0c101(0x21b)]=_0xa560d8,this[_0xb0c101(0x264)]=_0xabcd86;const {..._0x1787c6}=_0x2d27d6['merge']({},_0x253ae8,this['_config']);this[_0xb0c101(0x264)][_0xb0c101(0x223)](_0x5daa30,_0x1787c6);}[_0x5ed612(0x22e)](){var _0x16b4d0=_0x5ed612;_0x2d27d6[_0x16b4d0(0x28f)](this[_0x16b4d0(0x21b)],_0x2d27d6[_0x16b4d0(0x204)]([[_0x330aba],[_0x5aed30[_0x16b4d0(0x278)]],[_0xc09cdd],[_0x5aed30[_0x16b4d0(0x221)]]],this[_0x16b4d0(0x211)]['override'])),_0x2d27d6[_0x16b4d0(0x1f0)](this[_0x16b4d0(0x21b)],[[_0xc09cdd]]);}[_0x5ed612(0x2b5)](){var _0x1d213a=_0x5ed612;_0x2d27d6[_0x1d213a(0x1f0)](this[_0x1d213a(0x21b)],[[_0x5aed30[_0x1d213a(0x221)]]]);}},_0xc7956a(_0x5aed30['UniverLiveSharePlugin'],_0x5ed612(0x29e),_0x2d27d6['UniverInstanceType']['UNIVER_UNKNOWN']),_0xc7956a(_0x5aed30[_0x5ed612(0x1c5)],_0x5ed612(0x1e2),_0x544a27),_0x5aed30[_0x5ed612(0x1c5)]=_0x5ce142([_0x2d27d6['DependentOn'](_0x4b90ca[_0x5ed612(0x2b3)]),_0x75881d(0x1,_0x2d27d6[_0x5ed612(0x201)](_0x2d27d6[_0x5ed612(0x207)])),_0x75881d(0x2,_0x2d27d6[_0x5ed612(0x226)])],_0x5aed30[_0x5ed612(0x1c5)]),_0x5aed30[_0x5ed612(0x283)]=_0x944315,_0x5aed30[_0x5ed612(0x1c1)]=_0x330aba,_0x5aed30[_0x5ed612(0x294)]=_0x461c56,Object[_0x5ed612(0x26d)](_0x5aed30,Symbol[_0x5ed612(0x24b)],{'value':_0x5ed612(0x1df)});}));
|
|
1
|
+
function _0x266a(_0x3c3302,_0x533ff4){var _0x1343e1=_0x1343();return _0x266a=function(_0x266ade,_0x277e95){_0x266ade=_0x266ade-0x149;var _0xde35d9=_0x1343e1[_0x266ade];return _0xde35d9;},_0x266a(_0x3c3302,_0x533ff4);}(function(_0x177f07,_0x314740){var _0x19ea6=_0x266a,_0x1a3dca=_0x177f07();while(!![]){try{var _0x26683a=parseInt(_0x19ea6(0x1c4))/0x1+parseInt(_0x19ea6(0x223))/0x2*(parseInt(_0x19ea6(0x159))/0x3)+-parseInt(_0x19ea6(0x1c5))/0x4+parseInt(_0x19ea6(0x1fe))/0x5+parseInt(_0x19ea6(0x1fa))/0x6+parseInt(_0x19ea6(0x1a7))/0x7+-parseInt(_0x19ea6(0x209))/0x8;if(_0x26683a===_0x314740)break;else _0x1a3dca['push'](_0x1a3dca['shift']());}catch(_0x336ff4){_0x1a3dca['push'](_0x1a3dca['shift']());}}}(_0x1343,0x1aaa2),function(_0x5a6268,_0x369906){var _0x1ff95a=_0x266a;typeof exports=='object'&&typeof module<'u'?_0x369906(exports,require('@univerjs-pro/collaboration-client'),require(_0x1ff95a(0x19b)),require(_0x1ff95a(0x17c)),require(_0x1ff95a(0x163)),require(_0x1ff95a(0x174)),require(_0x1ff95a(0x21b)),require(_0x1ff95a(0x17b)),require(_0x1ff95a(0x1ad)),require('@univerjs-pro/collaboration'),require(_0x1ff95a(0x1cf)),require(_0x1ff95a(0x212))):typeof define==_0x1ff95a(0x1bb)&&define[_0x1ff95a(0x213)]?define([_0x1ff95a(0x1a3),_0x1ff95a(0x158),_0x1ff95a(0x19b),_0x1ff95a(0x17c),'@univerjs/sheets-ui','@univerjs/ui','react/jsx-runtime',_0x1ff95a(0x17b),_0x1ff95a(0x1ad),'@univerjs-pro/collaboration',_0x1ff95a(0x1cf),_0x1ff95a(0x212)],_0x369906):(_0x5a6268=typeof globalThis<'u'?globalThis:_0x5a6268||self,_0x369906(_0x5a6268['UniverProLiveShare']={},_0x5a6268[_0x1ff95a(0x1e6)],_0x5a6268[_0x1ff95a(0x1a0)],_0x5a6268[_0x1ff95a(0x204)],_0x5a6268[_0x1ff95a(0x1db)],_0x5a6268['UniverUi'],_0x5a6268['React'],_0x5a6268['UniverDesign'],_0x5a6268[_0x1ff95a(0x22a)],_0x5a6268[_0x1ff95a(0x20e)],_0x5a6268[_0x1ff95a(0x1cf)],_0x5a6268[_0x1ff95a(0x1cf)][_0x1ff95a(0x20a)]));}(this,function(_0x3c637c,_0x10f456,_0x24c918,_0x573cd9,_0x4976ab,_0x57fa80,_0x49b96a,_0x108119,_0x24c598,_0x17dce8,_0x363439,_0x531bc2){'use strict';var _0x5a24a7=_0x266a;var _0x27ec94=Object[_0x5a24a7(0x1e7)],_0x37cd18=(_0x9280cc,_0xfcdfda,_0x31b94c)=>_0xfcdfda in _0x9280cc?_0x27ec94(_0x9280cc,_0xfcdfda,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x31b94c}):_0x9280cc[_0xfcdfda]=_0x31b94c,_0xe9e033=(_0x4e5497,_0xee43d,_0x327e4e)=>_0x37cd18(_0x4e5497,typeof _0xee43d!='symbol'?_0xee43d+'':_0xee43d,_0x327e4e);const _0xa3d734=_0x5a24a7(0x179),_0x5dc332={};class _0x1be4e6 extends _0x24c918[_0x5a24a7(0x199)]{constructor(){var _0x551cce=_0x5a24a7;super(...arguments),_0xe9e033(this,_0x551cce(0x198),new Set()),_0xe9e033(this,_0x551cce(0x1b2),new Set());}[_0x5a24a7(0x1d0)](_0x442772){var _0x56a7d1=_0x5a24a7;return this[_0x56a7d1(0x198)]['add'](_0x442772),_0x24c918[_0x56a7d1(0x181)](()=>this['_sharedOperations'][_0x56a7d1(0x15e)](_0x442772));}['registerInitialStateReporter'](_0x431768){var _0x2f5db2=_0x5a24a7;return this[_0x2f5db2(0x1b2)][_0x2f5db2(0x220)](_0x431768),_0x24c918[_0x2f5db2(0x181)](()=>this[_0x2f5db2(0x1b2)][_0x2f5db2(0x15e)](_0x431768));}['shouldShareOperation'](_0xc01b7c){var _0x4bc7b0=_0x5a24a7;return this['_sharedOperations'][_0x4bc7b0(0x154)](_0xc01b7c);}[_0x5a24a7(0x1bc)](_0x35dbf2){var _0x64b3cc=_0x5a24a7;return Array['from'](this['_reporters'])[_0x64b3cc(0x1e2)](_0x1029ec=>_0x1029ec(_0x35dbf2));}}var _0x37baba=Object[_0x5a24a7(0x1c1)],_0x47f61a=(_0x2ecf1f,_0x39cba2,_0x1ead1b,_0x7ab82)=>{var _0x531713=_0x5a24a7;for(var _0x6a91bc=_0x7ab82>0x1?void 0x0:_0x7ab82?_0x37baba(_0x39cba2,_0x1ead1b):_0x39cba2,_0x2e1258=_0x2ecf1f[_0x531713(0x226)]-0x1,_0xe58b02;_0x2e1258>=0x0;_0x2e1258--)(_0xe58b02=_0x2ecf1f[_0x2e1258])&&(_0x6a91bc=_0xe58b02(_0x6a91bc)||_0x6a91bc);return _0x6a91bc;},_0x4b5dd6=(_0x3d1c84,_0x3a88e3)=>(_0x30e428,_0x4ae3b1)=>_0x3a88e3(_0x30e428,_0x4ae3b1,_0x3d1c84);let _0x2ef749=class extends _0x24c918[_0x5a24a7(0x199)]{constructor(_0x2686e6){var _0x514663=_0x5a24a7;super(),this[_0x514663(0x1fc)]=_0x2686e6,this[_0x514663(0x20f)]();}['_init'](){var _0x798d=_0x5a24a7;[_0x4976ab[_0x798d(0x19a)]['id'],_0x4976ab[_0x798d(0x16f)]['id'],_0x573cd9[_0x798d(0x1d4)]['id']][_0x798d(0x1c0)](_0x1475db=>{var _0x5d4624=_0x798d;this[_0x5d4624(0x184)](this[_0x5d4624(0x1fc)][_0x5d4624(0x1d0)](_0x1475db));});}};_0x2ef749=_0x47f61a([_0x4b5dd6(0x0,_0x24c918[_0x5a24a7(0x21c)](_0x1be4e6))],_0x2ef749);var _0x3d5813=function(){var _0x150229=_0x5a24a7;return _0x3d5813=Object[_0x150229(0x151)]||function(_0x33f2ae){var _0x5e86db=_0x150229;for(var _0x2249c3,_0x4bfe04=0x1,_0x1c587d=arguments[_0x5e86db(0x226)];_0x4bfe04<_0x1c587d;_0x4bfe04++){_0x2249c3=arguments[_0x4bfe04];for(var _0x256ecf in _0x2249c3)Object['prototype']['hasOwnProperty'][_0x5e86db(0x22d)](_0x2249c3,_0x256ecf)&&(_0x33f2ae[_0x256ecf]=_0x2249c3[_0x256ecf]);}return _0x33f2ae;},_0x3d5813[_0x150229(0x1ca)](this,arguments);},_0x9d899a=function(_0x4d5342,_0x2b53b9){var _0x6aa3f8=_0x5a24a7,_0x3f1848={};for(var _0x2d7c37 in _0x4d5342)Object['prototype']['hasOwnProperty'][_0x6aa3f8(0x22d)](_0x4d5342,_0x2d7c37)&&_0x2b53b9['indexOf'](_0x2d7c37)<0x0&&(_0x3f1848[_0x2d7c37]=_0x4d5342[_0x2d7c37]);if(_0x4d5342!=null&&typeof Object['getOwnPropertySymbols']==_0x6aa3f8(0x1bb)){for(var _0x3bfe3d=0x0,_0x2d7c37=Object[_0x6aa3f8(0x14c)](_0x4d5342);_0x3bfe3d<_0x2d7c37['length'];_0x3bfe3d++)_0x2b53b9['indexOf'](_0x2d7c37[_0x3bfe3d])<0x0&&Object[_0x6aa3f8(0x1f6)][_0x6aa3f8(0x14e)][_0x6aa3f8(0x22d)](_0x4d5342,_0x2d7c37[_0x3bfe3d])&&(_0x3f1848[_0x2d7c37[_0x3bfe3d]]=_0x4d5342[_0x2d7c37[_0x3bfe3d]]);}return _0x3f1848;},_0x281d5c=_0x24c598[_0x5a24a7(0x189)](function(_0x48f9ce,_0x35fda){var _0x4e367d=_0x5a24a7,_0xe29d9b=_0x48f9ce[_0x4e367d(0x1ab)],_0x42a527=_0x48f9ce['id'],_0x303197=_0x48f9ce[_0x4e367d(0x178)],_0x29d984=_0x48f9ce[_0x4e367d(0x218)],_0x2ff167=_0x9d899a(_0x48f9ce,[_0x4e367d(0x1ab),'id','className',_0x4e367d(0x218)]),_0x3a70f4='univerjs-icon\x20univerjs-icon-'[_0x4e367d(0x193)](_0x42a527,'\x20')['concat'](_0x303197||'')['trim'](),_0x506d69=_0x24c598[_0x4e367d(0x18d)]('_'[_0x4e367d(0x193)](_0x489002()));return _0x50492e(_0xe29d9b,''[_0x4e367d(0x193)](_0x42a527),{'defIds':_0xe29d9b[_0x4e367d(0x1a8)],'idSuffix':_0x506d69[_0x4e367d(0x21a)]},_0x3d5813({'ref':_0x35fda,'className':_0x3a70f4},_0x2ff167),_0x29d984);});function _0x50492e(_0x17050c,_0x505dbe,_0x23c696,_0x382a3f,_0x21a31e){var _0x359847=_0x5a24a7;return _0x24c598['createElement'](_0x17050c[_0x359847(0x205)],_0x3d5813(_0x3d5813({'key':_0x505dbe},_0x1515f8(_0x17050c,_0x23c696,_0x21a31e)),_0x382a3f),(_0x4477f4(_0x17050c,_0x23c696)[_0x359847(0x19c)]||[])['map'](function(_0x8237cb,_0x408b4f){var _0x1de3ad=_0x359847;return _0x50492e(_0x8237cb,''[_0x1de3ad(0x193)](_0x505dbe,'-')[_0x1de3ad(0x193)](_0x17050c[_0x1de3ad(0x205)],'-')['concat'](_0x408b4f),_0x23c696,void 0x0,_0x21a31e);}));}function _0x1515f8(_0x2a75ff,_0x4d8acc,_0x146607){var _0x5587fd=_0x5a24a7,_0x4d2123=_0x3d5813({},_0x2a75ff[_0x5587fd(0x207)]);_0x146607!=null&&_0x146607[_0x5587fd(0x191)]&&_0x4d2123[_0x5587fd(0x1df)]===_0x5587fd(0x191)&&(_0x4d2123[_0x5587fd(0x1df)]=_0x146607[_0x5587fd(0x191)]),_0x2a75ff[_0x5587fd(0x205)]===_0x5587fd(0x202)&&_0x4d2123['id']&&(_0x4d2123['id']=_0x4d2123['id']+_0x4d8acc[_0x5587fd(0x153)]),Object[_0x5587fd(0x214)](_0x4d2123)[_0x5587fd(0x1c0)](function(_0x5e834d){var _0x42403c=_0x5587fd,_0x97266c=_0x5e834d[0x0],_0x2038f4=_0x5e834d[0x1];_0x97266c==='mask'&&typeof _0x2038f4==_0x42403c(0x1b0)&&(_0x4d2123[_0x97266c]=_0x2038f4[_0x42403c(0x1de)](/url\(#(.*)\)/,'url(#$1'[_0x42403c(0x193)](_0x4d8acc[_0x42403c(0x153)],')')));});var _0x4d45b0=_0x4d8acc[_0x5587fd(0x1a8)];return!_0x4d45b0||_0x4d45b0['length']===0x0||(_0x2a75ff[_0x5587fd(0x205)]===_0x5587fd(0x1fb)&&_0x4d2123[_0x5587fd(0x1f2)]&&(_0x4d2123['xlink:href']=_0x4d2123[_0x5587fd(0x1f2)]+_0x4d8acc['idSuffix']),Object['entries'](_0x4d2123)[_0x5587fd(0x1c0)](function(_0x2a4e12){var _0xa10e55=_0x5587fd,_0x18c3ce=_0x2a4e12[0x0],_0x2ca9d3=_0x2a4e12[0x1];typeof _0x2ca9d3==_0xa10e55(0x1b0)&&(_0x4d2123[_0x18c3ce]=_0x2ca9d3[_0xa10e55(0x1de)](/url\(#(.*)\)/,_0xa10e55(0x1d6)['concat'](_0x4d8acc[_0xa10e55(0x153)],')')));})),_0x4d2123;}function _0x4477f4(_0x2b17fe,_0x4fe608){var _0x14ca66=_0x5a24a7,_0x2741b6,_0x4c7c0a=_0x4fe608[_0x14ca66(0x1a8)];return!_0x4c7c0a||_0x4c7c0a[_0x14ca66(0x226)]===0x0?_0x2b17fe:_0x2b17fe[_0x14ca66(0x205)]===_0x14ca66(0x1d9)&&(!((_0x2741b6=_0x2b17fe[_0x14ca66(0x19c)])===null||_0x2741b6===void 0x0)&&_0x2741b6['length'])?_0x3d5813(_0x3d5813({},_0x2b17fe),{'children':_0x2b17fe[_0x14ca66(0x19c)][_0x14ca66(0x1e2)](function(_0xf2c991){var _0x4f7cb1=_0x14ca66;return typeof _0xf2c991[_0x4f7cb1(0x207)]['id']==_0x4f7cb1(0x1b0)&&_0x4c7c0a&&_0x4c7c0a['indexOf'](_0xf2c991['attrs']['id'])>-0x1?_0x3d5813(_0x3d5813({},_0xf2c991),{'attrs':_0x3d5813(_0x3d5813({},_0xf2c991[_0x4f7cb1(0x207)]),{'id':_0xf2c991[_0x4f7cb1(0x207)]['id']+_0x4fe608[_0x4f7cb1(0x153)]})}):_0xf2c991;})}):_0x2b17fe;}function _0x489002(){var _0x2e89db=_0x5a24a7;return Math[_0x2e89db(0x17e)]()['toString'](0x24)['substring'](0x2,0x8);}_0x281d5c[_0x5a24a7(0x225)]=_0x5a24a7(0x168);var _0xda387e={'tag':'svg','attrs':{'xmlns':_0x5a24a7(0x20d),'fill':_0x5a24a7(0x1bf),'viewBox':_0x5a24a7(0x1da),'width':_0x5a24a7(0x1f7),'height':_0x5a24a7(0x1f7)},'children':[{'tag':_0x5a24a7(0x1a6),'attrs':{'fill':_0x5a24a7(0x167),'d':_0x5a24a7(0x150)}},{'tag':_0x5a24a7(0x1a6),'attrs':{'fill':_0x5a24a7(0x167),'d':_0x5a24a7(0x161),'fillRule':_0x5a24a7(0x222),'clipRule':_0x5a24a7(0x222)}}]},_0x5e8f6e=_0x24c598[_0x5a24a7(0x189)](function(_0xf571aa,_0x257191){var _0x46e557=_0x5a24a7;return _0x24c598[_0x46e557(0x1c6)](_0x281d5c,Object[_0x46e557(0x151)]({},_0xf571aa,{'id':_0x46e557(0x170),'ref':_0x257191,'icon':_0xda387e}));});_0x5e8f6e['displayName']=_0x5a24a7(0x1d1);var _0x545b3d=Object[_0x5a24a7(0x1c1)],_0x13e6e0=(_0x5e4ff1,_0x45ff68,_0xa8f335,_0x3844ab)=>{for(var _0x5a0373=_0x3844ab>0x1?void 0x0:_0x3844ab?_0x545b3d(_0x45ff68,_0xa8f335):_0x45ff68,_0x173dc4=_0x5e4ff1['length']-0x1,_0x4046d7;_0x173dc4>=0x0;_0x173dc4--)(_0x4046d7=_0x5e4ff1[_0x173dc4])&&(_0x5a0373=_0x4046d7(_0x5a0373)||_0x5a0373);return _0x5a0373;},_0x56c5b1=(_0x26ec16,_0x164279)=>(_0x45284d,_0x42c97b)=>_0x164279(_0x45284d,_0x42c97b,_0x26ec16);_0x3c637c['LiveShareController']=class extends _0x24c918[_0x5a24a7(0x195)]{constructor(_0x272a8e,_0x31bce8,_0x26b941){var _0x1e099b=_0x5a24a7;super(),_0xe9e033(this,_0x1e099b(0x169),new Map()),(this[_0x1e099b(0x1aa)]=_0x272a8e,this[_0x1e099b(0x18b)]=_0x31bce8,this[_0x1e099b(0x165)]=_0x26b941,this[_0x1e099b(0x20f)]());}async['getLiveShareCoordinator'](_0x408968){var _0xd99ca1=_0x5a24a7;return this[_0xd99ca1(0x169)][_0xd99ca1(0x154)](_0x408968)||await this['_startLiveShareCoordinator'](_0x408968),this['_entities'][_0xd99ca1(0x1f1)](_0x408968);}[_0x5a24a7(0x20f)](){var _0x45a394=_0x5a24a7;this[_0x45a394(0x1aa)][_0x45a394(0x215)](_0x24c918['UniverInstanceType'][_0x45a394(0x17a)])[_0x45a394(0x200)](_0x531bc2[_0x45a394(0x1b8)](this[_0x45a394(0x22b)]))[_0x45a394(0x17f)](async _0x37726a=>{var _0x31340d=_0x45a394;const _0x54cf35=_0x37726a[_0x31340d(0x229)]();this['_entities']['has'](_0x54cf35)||this['_startLiveShareCoordinator'](_0x54cf35);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x24c918[_0x45a394(0x1a2)][_0x45a394(0x17a)])[_0x45a394(0x200)](_0x531bc2[_0x45a394(0x1b8)](this[_0x45a394(0x22b)]))[_0x45a394(0x17f)](_0x20c987=>{var _0x1c8d51=_0x45a394;const _0x4cc5d1=_0x20c987[_0x1c8d51(0x229)](),_0x2241b9=this['_entities']['get'](_0x4cc5d1);_0x2241b9==null||_0x2241b9['dispose']();});}async[_0x5a24a7(0x1e3)](_0x36a4de){var _0x2e7dce=_0x5a24a7;const _0x10a1bc=await this['_collabSessionService'][_0x2e7dce(0x1f4)](_0x36a4de),_0x3f8f5b=this[_0x2e7dce(0x18b)][_0x2e7dce(0x1c2)](_0x3c637c['LiveShareCoordinator'],_0x36a4de,_0x10a1bc);return _0x3f8f5b[_0x2e7dce(0x201)](),this[_0x2e7dce(0x169)][_0x2e7dce(0x203)](_0x36a4de,_0x3f8f5b),_0x3f8f5b;}},_0x3c637c[_0x5a24a7(0x1f9)]=_0x13e6e0([_0x56c5b1(0x0,_0x24c918[_0x5a24a7(0x1eb)]),_0x56c5b1(0x1,_0x24c918['Inject'](_0x24c918[_0x5a24a7(0x1b6)])),_0x56c5b1(0x2,_0x24c918[_0x5a24a7(0x21c)](_0x10f456['CollaborationSessionService']))],_0x3c637c[_0x5a24a7(0x1f9)]);var _0x4a2cf2=(_0x3d5804=>(_0x3d5804[_0x5a24a7(0x157)]=_0x5a24a7(0x1d7),_0x3d5804[_0x5a24a7(0x216)]=_0x5a24a7(0x192),_0x3d5804[_0x5a24a7(0x1af)]=_0x5a24a7(0x1e8),_0x3d5804[_0x5a24a7(0x176)]=_0x5a24a7(0x160),_0x3d5804['PRESENTING']='presenting',_0x3d5804))(_0x4a2cf2||{});const _0x192432='SAME_OPERATION_SHARE_INTERVAL',_0x153680=0xc8;_0x3c637c[_0x5a24a7(0x1f5)]=class extends _0x24c918[_0x5a24a7(0x195)]{constructor(_0x43e730,_0x47bcb7,_0x5c4a73,_0x69fa13,_0x56cbce){var _0x174d06=_0x5a24a7;super(),_0xe9e033(this,_0x174d06(0x186),new _0x363439[(_0x174d06(0x1dc))](_0x174d06(0x192))),_0xe9e033(this,_0x174d06(0x172),this['_status$'][_0x174d06(0x224)]()),_0xe9e033(this,_0x174d06(0x20f),!0x1),_0xe9e033(this,_0x174d06(0x1b7),null),_0xe9e033(this,_0x174d06(0x166),null),(this[_0x174d06(0x210)]=_0x43e730,this[_0x174d06(0x206)]=_0x47bcb7,this[_0x174d06(0x1f3)]=_0x5c4a73,this[_0x174d06(0x1fc)]=_0x69fa13,this[_0x174d06(0x21d)]=_0x56cbce);}get[_0x5a24a7(0x1a4)](){var _0x127259=_0x5a24a7;return this[_0x127259(0x186)]['getValue']();}[_0x5a24a7(0x1e4)](){var _0x4f7a00=_0x5a24a7,_0x324aef;(_0x324aef=this['_commandDisposable'])==null||_0x324aef[_0x4f7a00(0x1e4)](),this[_0x4f7a00(0x186)]['next']('idle'),this[_0x4f7a00(0x186)][_0x4f7a00(0x187)]();}[_0x5a24a7(0x201)](){var _0x4af6d3=_0x5a24a7;this[_0x4af6d3(0x20f)]||(this[_0x4af6d3(0x20f)]=!0x0,this['_collabSession'][_0x4af6d3(0x1fd)][_0x4af6d3(0x200)](_0x531bc2[_0x4af6d3(0x1b8)](this[_0x4af6d3(0x22b)]))[_0x4af6d3(0x17f)](_0x3730c6=>{var _0x247b13=_0x4af6d3;switch(_0x3730c6){case _0x10f456['SessionStatus'][_0x247b13(0x157)]:this['_handleOffline']();break;case _0x10f456[_0x247b13(0x1cb)][_0x247b13(0x211)]:this[_0x247b13(0x18c)]();break;}}),this[_0x4af6d3(0x206)]['event$'][_0x4af6d3(0x200)](_0x531bc2[_0x4af6d3(0x1b8)](this[_0x4af6d3(0x22b)]))['subscribe'](_0x2ed52b=>{var _0x2a4908=_0x4af6d3;const {eventID:_0x4f1128}=_0x2ed52b;switch(_0x4f1128){case _0x17dce8[_0x2a4908(0x18e)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x2ed52b);break;case _0x17dce8[_0x2a4908(0x18e)][_0x2a4908(0x180)]:this[_0x2a4908(0x14d)](_0x2ed52b);break;case _0x17dce8[_0x2a4908(0x18e)]['LIVESHARE_TERMINATE']:this[_0x2a4908(0x1b3)]();break;case _0x17dce8[_0x2a4908(0x18e)][_0x2a4908(0x20b)]:this['_handleNewChangeSets'](_0x2ed52b);break;}}));}[_0x5a24a7(0x149)](){var _0x28c28d=_0x5a24a7;this[_0x28c28d(0x206)][_0x28c28d(0x15f)]({'eventID':_0x17dce8[_0x28c28d(0x18e)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x28c28d(0x210)],'userID':this[_0x28c28d(0x206)][_0x28c28d(0x15b)]()}},this[_0x28c28d(0x210)]);}[_0x5a24a7(0x16d)](){var _0x5591c2=_0x5a24a7;this[_0x5591c2(0x1a4)]===_0x5591c2(0x1d3)&&(this['_status$'][_0x5591c2(0x221)](_0x5591c2(0x192)),this[_0x5591c2(0x206)]['send']({'eventID':_0x17dce8[_0x5591c2(0x18e)][_0x5591c2(0x1ce)],'data':{'unitID':this['_unitID']}},this[_0x5591c2(0x210)]));}['startFollowing'](){var _0x38a2f9=_0x5a24a7;this['_status']===_0x38a2f9(0x160)&&(this[_0x38a2f9(0x186)]['next'](_0x38a2f9(0x1e8)),this[_0x38a2f9(0x177)]());}[_0x5a24a7(0x1b1)](){var _0x641b84=_0x5a24a7;this[_0x641b84(0x1a4)]===_0x641b84(0x1e8)&&this[_0x641b84(0x15c)]();}['_handleNewHost'](_0x1df51d){var _0x4b414a=_0x5a24a7;const {presenter:_0x54e44f}=_0x1df51d[_0x4b414a(0x20c)],_0x37166d=this[_0x4b414a(0x206)][_0x4b414a(0x15b)]();this['_presenter']=_0x54e44f,_0x54e44f===_0x37166d?(this[_0x4b414a(0x15c)](),this['_startPresenting']()):this[_0x4b414a(0x1a4)]!=='not-following'&&(this[_0x4b414a(0x1d2)](),this[_0x4b414a(0x177)]());}[_0x5a24a7(0x18a)](){var _0x4d833c=_0x5a24a7;const _0x4142a7={'eventID':_0x17dce8[_0x4d833c(0x18e)][_0x4d833c(0x155)]};this[_0x4d833c(0x206)][_0x4d833c(0x15f)](_0x4142a7,this[_0x4d833c(0x210)]);}[_0x5a24a7(0x1b3)](){var _0x3203bb=_0x5a24a7;this[_0x3203bb(0x166)]=null,this[_0x3203bb(0x1a4)]!==_0x3203bb(0x1d3)&&this[_0x3203bb(0x1ee)]();}['_handleNewChangeSets'](_0x3e943b){var _0x59f3fd=_0x5a24a7;if(this['_status']===_0x59f3fd(0x1e8)&&this['_presenter']===_0x3e943b[_0x59f3fd(0x20c)][_0x59f3fd(0x190)]){const _0x568df0=_0x17dce8[_0x59f3fd(0x219)](_0x3e943b[_0x59f3fd(0x20c)])['mutations'][_0x59f3fd(0x1d5)]()[_0x59f3fd(0x171)](_0xba22c0=>_0xba22c0['id']===_0x573cd9['InsertSheetMutation']['id']);if(_0x568df0){const _0x5e1196=_0x568df0['params'][_0x59f3fd(0x194)],_0x14bbf6=_0x568df0['params'][_0x59f3fd(0x1ef)]['id'];setTimeout(()=>{var _0x46a011=_0x59f3fd;this[_0x46a011(0x21d)][_0x46a011(0x162)](_0x573cd9[_0x46a011(0x1d4)]['id'],{'unitId':_0x5e1196,'subUnitId':_0x14bbf6},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x4c567b=_0x5a24a7;this[_0x4c567b(0x186)][_0x4c567b(0x221)](_0x4c567b(0x1d3));const _0x1bf0ea=new Map(),_0x18524c=this[_0x4c567b(0x1b7)]=new _0x24c918[(_0x4c567b(0x1ed))]();_0x18524c[_0x4c567b(0x220)](_0x24c918[_0x4c567b(0x181)](()=>{var _0x53986a=_0x4c567b;_0x1bf0ea[_0x53986a(0x1c0)](_0x33c755=>_0x33c755[_0x53986a(0x187)]()),_0x1bf0ea[_0x53986a(0x1b9)]();})),_0x18524c['add'](this[_0x4c567b(0x21d)]['onCommandExecuted'](_0x52e452=>{var _0x7127a8=_0x4c567b,_0x28cc0d;if(_0x52e452['type']!==_0x24c918[_0x7127a8(0x1a5)][_0x7127a8(0x21f)]||!this['_liveShareService'][_0x7127a8(0x1ff)](_0x52e452['id']))return;const {id:_0x24b46c}=_0x52e452;let _0x1796d6;_0x1bf0ea[_0x7127a8(0x154)](_0x24b46c)?_0x1796d6=_0x1bf0ea[_0x7127a8(0x1f1)](_0x24b46c):(_0x1796d6=new _0x363439[(_0x7127a8(0x14a))](),_0x1bf0ea[_0x7127a8(0x203)](_0x24b46c,_0x1796d6),_0x1796d6[_0x7127a8(0x200)](_0x531bc2[_0x7127a8(0x19d)]((_0x28cc0d=this['_configService'][_0x7127a8(0x228)](_0x192432))!=null?_0x28cc0d:_0x153680,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4e9dd7=>{var _0x4473b9=_0x7127a8;this['_collabSession'][_0x4473b9(0x15f)]({'eventID':_0x17dce8[_0x4473b9(0x18e)][_0x4473b9(0x180)],'data':{'unitID':this['_unitID'],'operations':{[_0x4e9dd7['id']]:{'id':_0x4e9dd7['id'],'params':JSON[_0x4473b9(0x1c7)](_0x4e9dd7[_0x4473b9(0x1a1)])}}}},this[_0x4473b9(0x210)]);})),_0x1796d6[_0x7127a8(0x221)](_0x52e452);})),this['_liveShareService']['getInitialStates'](this['_unitID'])[_0x4c567b(0x1c0)](_0x57a2af=>this['_collabSession'][_0x4c567b(0x15f)]({'eventID':_0x17dce8['CollaborationEvent'][_0x4c567b(0x180)],'data':{'unitID':this[_0x4c567b(0x210)],'operations':{[_0x57a2af['id']]:{'id':_0x57a2af['id'],'params':JSON[_0x4c567b(0x1c7)](_0x57a2af['params'])}}}},this['_unitID']));}[_0x5a24a7(0x1d2)](){var _0x5153f1=_0x5a24a7,_0x163ae2;this[_0x5153f1(0x186)][_0x5153f1(0x221)](_0x5153f1(0x192)),(_0x163ae2=this[_0x5153f1(0x1b7)])==null||_0x163ae2[_0x5153f1(0x1e4)](),this[_0x5153f1(0x1b7)]=null;}[_0x5a24a7(0x177)](){var _0x301c7d=_0x5a24a7,_0x1f83a1;(_0x1f83a1=this['_commandDisposable'])==null||_0x1f83a1[_0x301c7d(0x1e4)](),this[_0x301c7d(0x186)]['next']('following');}[_0x5a24a7(0x1ee)](){var _0x1540ce=_0x5a24a7,_0x3775d4;this[_0x1540ce(0x186)][_0x1540ce(0x221)](_0x1540ce(0x192)),(_0x3775d4=this[_0x1540ce(0x1b7)])==null||_0x3775d4[_0x1540ce(0x1e4)](),this[_0x1540ce(0x1b7)]=null;}[_0x5a24a7(0x15c)](){var _0x42d996=_0x5a24a7,_0x3e8a6f;this[_0x42d996(0x186)][_0x42d996(0x221)](_0x42d996(0x160)),(_0x3e8a6f=this[_0x42d996(0x1b7)])==null||_0x3e8a6f['dispose']();}[_0x5a24a7(0x14d)](_0x3ae40c){var _0x3d1a2d=_0x5a24a7;if([_0x3d1a2d(0x1d3),_0x3d1a2d(0x160),_0x3d1a2d(0x1d7)]['includes'](this[_0x3d1a2d(0x1a4)])||!_0x3ae40c[_0x3d1a2d(0x20c)][_0x3d1a2d(0x156)]||_0x3ae40c[_0x3d1a2d(0x20c)][_0x3d1a2d(0x156)]===this[_0x3d1a2d(0x206)][_0x3d1a2d(0x15b)]())return;this[_0x3d1a2d(0x1a4)]===_0x3d1a2d(0x192)&&this['_startFollowing']();const _0x43f6de=_0x3ae40c[_0x3d1a2d(0x20c)][_0x3d1a2d(0x21e)];Object['values'](_0x43f6de)['forEach'](_0x36ad5c=>{var _0x21dc74=_0x3d1a2d;this['_commandService'][_0x21dc74(0x162)](_0x36ad5c['id'],_0x36ad5c[_0x21dc74(0x1a1)]?JSON[_0x21dc74(0x152)](_0x36ad5c['params']):null,{'fromCollab':!0x0});});}[_0x5a24a7(0x1cd)](){var _0x49aedf=_0x5a24a7,_0xbbeef4;this[_0x49aedf(0x186)][_0x49aedf(0x221)](_0x49aedf(0x1d7)),(_0xbbeef4=this['_commandDisposable'])==null||_0xbbeef4[_0x49aedf(0x1e4)]();}[_0x5a24a7(0x18c)](){var _0x1855e8=_0x5a24a7;this['_status$'][_0x1855e8(0x221)](_0x1855e8(0x192)),this['_fetchOperations']();}},_0x3c637c[_0x5a24a7(0x1f5)]=_0x13e6e0([_0x56c5b1(0x2,_0x24c918[_0x5a24a7(0x183)]),_0x56c5b1(0x3,_0x24c918[_0x5a24a7(0x21c)](_0x1be4e6)),_0x56c5b1(0x4,_0x24c918[_0x5a24a7(0x1d8)])],_0x3c637c['LiveShareCoordinator']);function _0x342162(){var _0x121be3=_0x5a24a7;const _0x3a8df0=_0x57fa80[_0x121be3(0x1a9)](_0x3c637c[_0x121be3(0x1f9)]),_0x26b26e=_0x57fa80[_0x121be3(0x1a9)](_0x24c918[_0x121be3(0x1eb)]),_0x425ed5=_0x57fa80[_0x121be3(0x1c9)](()=>_0x26b26e[_0x121be3(0x1b5)](_0x24c918[_0x121be3(0x1a2)][_0x121be3(0x17a)]),void 0x0,!0x1,[]),[_0x2878e,_0x3d19ec]=_0x24c598[_0x121be3(0x22f)](null),[_0x42b926,_0x41b57e]=_0x24c598[_0x121be3(0x22f)](_0x4a2cf2[_0x121be3(0x216)]),_0x204397=_0x24c598['useRef'](null);return _0x24c598[_0x121be3(0x164)](()=>(_0x425ed5&&_0x3a8df0['getLiveShareCoordinator'](_0x425ed5[_0x121be3(0x229)]())[_0x121be3(0x17d)](_0x22e137=>{var _0x4636bd=_0x121be3;_0x3d19ec(_0x22e137),_0x204397[_0x4636bd(0x21a)]=_0x22e137[_0x4636bd(0x172)][_0x4636bd(0x17f)](_0x127c8f=>{_0x41b57e(_0x127c8f);});}),()=>{var _0x221dfb=_0x121be3,_0x261741;(_0x261741=_0x204397[_0x221dfb(0x21a)])==null||_0x261741[_0x221dfb(0x16a)](),_0x204397[_0x221dfb(0x21a)]=null;}),[_0x425ed5,_0x3a8df0]),_0x2878e?_0x49b96a[_0x121be3(0x182)](_0x108119['Dropdown'],{'align':_0x121be3(0x22c),'disabled':_0x42b926===_0x4a2cf2[_0x121be3(0x157)],'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':_0x49b96a[_0x121be3(0x182)](_0x1bdc16,{'status':_0x42b926,'coordinator':_0x2878e}),'children':_0x49b96a['jsx'](_0x121be3(0x196),{'className':_0x108119[_0x121be3(0x15a)]('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x42b926===_0x4a2cf2[_0x121be3(0x157)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x42b926!==_0x4a2cf2['OFFLINE']}),'type':_0x121be3(0x196),'children':_0x49b96a[_0x121be3(0x182)](_0x5e8f6e,{'className':'univer-size-4'})})}):null;}function _0x1bdc16(_0x15c855){var _0x3243a2=_0x5a24a7;const {status:_0x2acddb,coordinator:_0x1c1246}=_0x15c855;switch(_0x2acddb){case _0x4a2cf2['IDLE']:return _0x49b96a[_0x3243a2(0x182)](_0x137f3d,{'coordinator':_0x1c1246});case _0x4a2cf2[_0x3243a2(0x1af)]:return _0x49b96a['jsx'](_0x7db8b7,{'coordinator':_0x1c1246});case _0x4a2cf2[_0x3243a2(0x176)]:return _0x49b96a[_0x3243a2(0x182)](_0x488bb4,{'coordinator':_0x1c1246});case _0x4a2cf2[_0x3243a2(0x157)]:return _0x49b96a[_0x3243a2(0x182)](_0x9b657e,{});case _0x4a2cf2['PRESENTING']:return _0x49b96a[_0x3243a2(0x182)](_0x59d800,{'coordinator':_0x1c1246});default:return null;}}function _0x137f3d(_0xac2db5){var _0xbdf325=_0x5a24a7;const {coordinator:_0x18c516}=_0xac2db5;return _0x49b96a['jsxs'](_0x49b96a[_0xbdf325(0x1c8)],{'children':[_0x49b96a[_0xbdf325(0x182)]('div',{'className':_0xbdf325(0x1f0),'children':'Present\x20this\x20document'}),_0x49b96a[_0xbdf325(0x182)](_0x108119['Button'],{'onClick':()=>_0x18c516[_0xbdf325(0x149)](),'children':_0xbdf325(0x1bd)})]});}function _0x7db8b7(_0x38abab){var _0x37de0b=_0x5a24a7;const {coordinator:_0x221839}=_0x38abab;return _0x49b96a[_0x37de0b(0x175)](_0x49b96a[_0x37de0b(0x1c8)],{'children':[_0x49b96a['jsx'](_0x37de0b(0x1e9),{'className':_0x37de0b(0x1f0),'children':_0x37de0b(0x18f)}),_0x49b96a['jsx'](_0x108119[_0x37de0b(0x1cc)],{'onClick':()=>_0x221839[_0x37de0b(0x1b1)](),'children':'Stop\x20following'})]});}function _0x488bb4(_0x5f54d6){var _0x4d57be=_0x5a24a7;const {coordinator:_0x218189}=_0x5f54d6;return _0x49b96a[_0x4d57be(0x175)](_0x49b96a['Fragment'],{'children':[_0x49b96a[_0x4d57be(0x182)](_0x4d57be(0x1e9),{'className':_0x4d57be(0x1f0),'children':_0x4d57be(0x16b)}),_0x49b96a[_0x4d57be(0x182)](_0x108119[_0x4d57be(0x1cc)],{'variant':_0x4d57be(0x14f),'onClick':()=>_0x218189['startFollowing'](),'children':_0x4d57be(0x197)})]});}function _0x59d800(_0x5770a9){var _0x3051c9=_0x5a24a7;const {coordinator:_0x1bacad}=_0x5770a9;return _0x49b96a[_0x3051c9(0x175)](_0x49b96a[_0x3051c9(0x1c8)],{'children':[_0x49b96a[_0x3051c9(0x182)](_0x3051c9(0x1e9),{'className':_0x3051c9(0x1f0),'children':_0x3051c9(0x1ec)}),_0x49b96a[_0x3051c9(0x182)](_0x108119[_0x3051c9(0x1cc)],{'variant':'default','onClick':()=>_0x1bacad[_0x3051c9(0x16d)](),'children':'Stop\x20presenting'})]});}function _0x9b657e(){return _0x49b96a['jsx'](_0x49b96a['Fragment'],{'children':'You\x27are\x20offline.'});}var _0x501969=Object[_0x5a24a7(0x1c1)],_0x127935=(_0x41443a,_0xfce18d,_0x121c33,_0x553434)=>{var _0x21bff2=_0x5a24a7;for(var _0x17f0e3=_0x553434>0x1?void 0x0:_0x553434?_0x501969(_0xfce18d,_0x121c33):_0xfce18d,_0x356b4a=_0x41443a[_0x21bff2(0x226)]-0x1,_0x11fd97;_0x356b4a>=0x0;_0x356b4a--)(_0x11fd97=_0x41443a[_0x356b4a])&&(_0x17f0e3=_0x11fd97(_0x17f0e3)||_0x17f0e3);return _0x17f0e3;},_0xe5503c=(_0x51df6d,_0xacd11c)=>(_0x28c137,_0x3e365a)=>_0xacd11c(_0x28c137,_0x3e365a,_0x51df6d);_0x3c637c[_0x5a24a7(0x16c)]=class extends _0x24c918[_0x5a24a7(0x199)]{constructor(_0x23c5e3,_0xfd8a41){var _0xf29466=_0x5a24a7;super(),this['_injector']=_0x23c5e3,this['_uiPartsService']=_0xfd8a41,this[_0xf29466(0x15d)]();}[_0x5a24a7(0x15d)](){var _0x59be3d=_0x5a24a7;this[_0x59be3d(0x184)](this[_0x59be3d(0x1ea)][_0x59be3d(0x1f8)](_0x57fa80[_0x59be3d(0x16e)][_0x59be3d(0x19f)],()=>_0x57fa80['connectInjector'](_0x342162,this[_0x59be3d(0x18b)])));}},_0x3c637c['DesktopLiveShareController']=_0x127935([_0xe5503c(0x0,_0x24c918[_0x5a24a7(0x21c)](_0x24c918[_0x5a24a7(0x1b6)])),_0xe5503c(0x1,_0x57fa80['IUIPartsService'])],_0x3c637c['DesktopLiveShareController']);var _0x6d7da2=Object[_0x5a24a7(0x1e7)],_0x44280b=Object['getOwnPropertyDescriptor'],_0x3ba22e=(_0x32b0ba,_0x7dcf97,_0x58f28c)=>_0x7dcf97 in _0x32b0ba?_0x6d7da2(_0x32b0ba,_0x7dcf97,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58f28c}):_0x32b0ba[_0x7dcf97]=_0x58f28c,_0x2c5363=(_0x5519a9,_0x4f050a,_0x1a4662,_0x5b05d1)=>{var _0x132127=_0x5a24a7;for(var _0x47a640=_0x5b05d1>0x1?void 0x0:_0x5b05d1?_0x44280b(_0x4f050a,_0x1a4662):_0x4f050a,_0x5965f0=_0x5519a9[_0x132127(0x226)]-0x1,_0x296781;_0x5965f0>=0x0;_0x5965f0--)(_0x296781=_0x5519a9[_0x5965f0])&&(_0x47a640=_0x296781(_0x47a640)||_0x47a640);return _0x47a640;},_0x21c9c8=(_0x12884c,_0x2dbafe)=>(_0x2fdd43,_0x310798)=>_0x2dbafe(_0x2fdd43,_0x310798,_0x12884c),_0x28fd02=(_0x1d12c8,_0x241640,_0x180b22)=>_0x3ba22e(_0x1d12c8,typeof _0x241640!=_0x5a24a7(0x217)?_0x241640+'':_0x241640,_0x180b22);const _0x41e6fa=_0x5a24a7(0x14b);_0x3c637c['UniverLiveSharePlugin']=class extends _0x24c918[_0x5a24a7(0x1ba)]{constructor(_0xc43275=_0x5dc332,_0x4ac3a5,_0x11fcc2){var _0x1b1bab=_0x5a24a7;super(),this['_config']=_0xc43275,this[_0x1b1bab(0x18b)]=_0x4ac3a5,this[_0x1b1bab(0x1f3)]=_0x11fcc2;const {..._0x595b4c}=_0x24c918[_0x1b1bab(0x208)]({},_0x5dc332,this[_0x1b1bab(0x1e0)]);this['_configService'][_0x1b1bab(0x1b4)](_0xa3d734,_0x595b4c);}[_0x5a24a7(0x1ac)](){var _0x54ee71=_0x5a24a7;_0x24c918['registerDependencies'](this[_0x54ee71(0x18b)],_0x24c918[_0x54ee71(0x173)]([[_0x1be4e6],[_0x3c637c[_0x54ee71(0x1f9)]],[_0x2ef749],[_0x3c637c['DesktopLiveShareController']]],this[_0x54ee71(0x1e0)][_0x54ee71(0x1e5)])),_0x24c918[_0x54ee71(0x185)](this[_0x54ee71(0x18b)],[[_0x2ef749]]);}[_0x5a24a7(0x188)](){var _0x681b7b=_0x5a24a7;_0x24c918[_0x681b7b(0x185)](this[_0x681b7b(0x18b)],[[_0x3c637c[_0x681b7b(0x16c)]]]);}},_0x28fd02(_0x3c637c[_0x5a24a7(0x1e1)],_0x5a24a7(0x1dd),_0x24c918[_0x5a24a7(0x1a2)]['UNIVER_UNKNOWN']),_0x28fd02(_0x3c637c[_0x5a24a7(0x1e1)],_0x5a24a7(0x227),_0x41e6fa),_0x3c637c['UniverLiveSharePlugin']=_0x2c5363([_0x24c918[_0x5a24a7(0x22e)](_0x10f456['UniverCollaborationClientPlugin']),_0x21c9c8(0x1,_0x24c918[_0x5a24a7(0x21c)](_0x24c918['Injector'])),_0x21c9c8(0x2,_0x24c918[_0x5a24a7(0x183)])],_0x3c637c['UniverLiveSharePlugin']),_0x3c637c[_0x5a24a7(0x1be)]=_0x342162,_0x3c637c[_0x5a24a7(0x1c3)]=_0x1be4e6,_0x3c637c[_0x5a24a7(0x19e)]=_0x4a2cf2,Object[_0x5a24a7(0x1e7)](_0x3c637c,Symbol[_0x5a24a7(0x1ae)],{'value':'Module'});}));function _0x1343(){var _0x5d8936=['amd','entries','getTypeOfUnitAdded$','IDLE','symbol','extend','parseProtocolChangeset','current','react/jsx-runtime','Inject','_commandService','operations','OPERATION','add','next','evenodd','28444BheDng','asObservable','displayName','length','pluginName','getConfig','getUnitId','React','dispose$','end','call','DependentOn','useState','tryStartPresenting','Subject','UNIVER_LIVE_SHARE_PLUGIN','getOwnPropertySymbols','_handleOperation','propertyIsEnumerable','text','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','assign','parse','idSuffix','has','LIVESHARE_FETCH_OPERATIONS','presenter','OFFLINE','@univerjs-pro/collaboration-client','15CSJPfp','clsx','getMemberID','_stopFollowing','_mountLiveShare','delete','send','not-following','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','executeCommand','@univerjs/sheets-ui','useEffect','_collabSessionService','_presenter','currentColor','UniverIcon','_entities','unsubscribe','You\x27re\x20not\x20following\x20the\x20presenter','DesktopLiveShareController','stopPresenting','BuiltInUIPart','SetScrollOperation','live-share-icon','find','status$','mergeOverrideWithDependencies','@univerjs/ui','jsxs','NOT_FOLLOWING','_startFollowing','className','live-share.config','UNIVER_SHEET','@univerjs/design','@univerjs/sheets','then','random','subscribe','LIVESHARE_OPERATION','toDisposable','jsx','IConfigService','disposeWithMe','touchDependencies','_status$','complete','onRendered','forwardRef','_fetchOperations','_injector','_handleOnline','useRef','CollaborationEvent','You\x27re\x20following\x20the\x20presenter','memberID','colorChannel1','idle','concat','unitId','RxDisposable','button','Start\x20following','_sharedOperations','Disposable','SetZoomRatioOperation','@univerjs/core','children','throttleTime','LiveShareStatus','HEADER_MENU','UniverCore','params','UniverInstanceType','exports','_status','CommandType','path','199675bvWvaZ','defIds','useDependency','_univerInstanceService','icon','onStarting','react','toStringTag','FOLLOWING','string','stopFollowing','_reporters','_handleTerminate','setConfig','getCurrentTypeOfUnit$','Injector','_commandDisposable','takeUntil','clear','Plugin','function','getInitialStates','Start','LiveShare','none','forEach','getOwnPropertyDescriptor','createInstance','LiveShareService','185050EoorJY','559116TheAun','createElement','stringify','Fragment','useObservable','apply','SessionStatus','Button','_handleOffline','LIVESHARE_TERMINATE','rxjs','registerSharedOperation','LiveShareIcon','_stopPresenting','presenting','SetWorksheetActiveOperation','reverse','url(#$1','offline','ICommandService','defs','0\x200\x2017\x2017','UniverSheetsUi','BehaviorSubject','type','replace','fill','_config','UniverLiveSharePlugin','map','_startLiveShareCoordinator','dispose','override','UniverProCollaborationClient','defineProperty','following','div','_uiPartsService','IUniverInstanceService','You\x27re\x20presenting\x20the\x20document','DisposableCollection','_beIdle','sheet','univer-w-full\x20univer-mb-3\x20univer-text-sm','get','xlink:href','_configService','requireSession','LiveShareCoordinator','prototype','1em','registerComponent','LiveShareController','1074702frEZze','use','_liveShareService','sessionStatus$','805310kbmLTM','shouldShareOperation','pipe','init','mask','set','UniverSheets','tag','_collabSession','attrs','merge','3006936BUmQAy','operators','NEW_CHANGESETS','data','http://www.w3.org/2000/svg','UniverProCollaboration','_init','_unitID','ONLINE','rxjs/operators'];_0x1343=function(){return _0x5d8936;};return _0x1343();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.8.0-nightly.
|
|
3
|
+
"version": "0.8.0-nightly.202505271607",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
"rxjs": ">=7.0.0"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@univerjs/icons": "^0.3
|
|
50
|
-
"@univerjs
|
|
51
|
-
"@univerjs/
|
|
52
|
-
"@univerjs
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs/sheets": "0.8.0-nightly.
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/ui": "0.8.0-nightly.
|
|
49
|
+
"@univerjs/icons": "^0.4.3",
|
|
50
|
+
"@univerjs/core": "0.8.0-nightly.202505271607",
|
|
51
|
+
"@univerjs-pro/collaboration": "0.8.0-nightly.202505271607",
|
|
52
|
+
"@univerjs/sheets": "0.8.0-nightly.202505271607",
|
|
53
|
+
"@univerjs-pro/collaboration-client": "0.8.0-nightly.202505271607",
|
|
54
|
+
"@univerjs/sheets-ui": "0.8.0-nightly.202505271607",
|
|
55
|
+
"@univerjs/design": "0.8.0-nightly.202505271607",
|
|
56
|
+
"@univerjs/ui": "0.8.0-nightly.202505271607"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.3",
|