@univerjs-pro/live-share 0.8.0-nightly.202506071606 → 0.8.0-nightly.202506081606

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var _0x5ec7ed=_0x1172;(function(_0x3b7f0a,_0x5e7c78){var _0x533832=_0x1172,_0x43a002=_0x3b7f0a();while(!![]){try{var _0x3e8300=parseInt(_0x533832(0x17d))/0x1+parseInt(_0x533832(0x14c))/0x2*(parseInt(_0x533832(0x1ae))/0x3)+parseInt(_0x533832(0x194))/0x4*(-parseInt(_0x533832(0x229))/0x5)+-parseInt(_0x533832(0x1a8))/0x6+-parseInt(_0x533832(0x17b))/0x7+-parseInt(_0x533832(0x158))/0x8*(parseInt(_0x533832(0x145))/0x9)+-parseInt(_0x533832(0x1a3))/0xa*(-parseInt(_0x533832(0x148))/0xb);if(_0x3e8300===_0x5e7c78)break;else _0x43a002['push'](_0x43a002['shift']());}catch(_0x1fb59b){_0x43a002['push'](_0x43a002['shift']());}}}(_0x25d9,0xb3879));var U=Object['defineProperty'],F=(_0x38dd8c,_0x6db2ab,_0x410140)=>_0x6db2ab in _0x38dd8c?U(_0x38dd8c,_0x6db2ab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x410140}):_0x38dd8c[_0x6db2ab]=_0x410140,v=(_0x278e40,_0x2b43cf,_0x5f2a0e)=>F(_0x278e40,typeof _0x2b43cf!=_0x5ec7ed(0x17e)?_0x2b43cf+'':_0x2b43cf,_0x5f2a0e);Object[_0x5ec7ed(0x1b6)](exports,Symbol[_0x5ec7ed(0x1ea)],{'value':_0x5ec7ed(0x166)});const m=require(_0x5ec7ed(0x1f8)),o=require(_0x5ec7ed(0x1bb)),C=require(_0x5ec7ed(0x1b7)),w=require(_0x5ec7ed(0x1d2)),p=require(_0x5ec7ed(0x1db)),l=require(_0x5ec7ed(0x1af)),g=require('@univerjs/design'),f=require(_0x5ec7ed(0x20f)),_=require(_0x5ec7ed(0x1b2)),D=require(_0x5ec7ed(0x173)),b=require(_0x5ec7ed(0x151)),$=_0x5ec7ed(0x20a),x={};class O extends o[_0x5ec7ed(0x1e7)]{constructor(){var _0x2ca4fe=_0x5ec7ed;super(...arguments),v(this,_0x2ca4fe(0x1cd),new Set()),v(this,_0x2ca4fe(0x1fc),new Set());}[_0x5ec7ed(0x163)](_0xc52c29){var _0x472d77=_0x5ec7ed;return this[_0x472d77(0x1cd)]['add'](_0xc52c29),o[_0x472d77(0x1c1)](()=>this[_0x472d77(0x1cd)]['delete'](_0xc52c29));}[_0x5ec7ed(0x1c0)](_0x5ae673){var _0x26d98a=_0x5ec7ed;return this['_reporters'][_0x26d98a(0x208)](_0x5ae673),o['toDisposable'](()=>this['_reporters'][_0x26d98a(0x19d)](_0x5ae673));}[_0x5ec7ed(0x15b)](_0x49caa4){var _0x105a91=_0x5ec7ed;return this['_sharedOperations'][_0x105a91(0x16e)](_0x49caa4);}['getInitialStates'](_0x44e5aa){var _0x50b3b6=_0x5ec7ed;return Array[_0x50b3b6(0x1bc)](this[_0x50b3b6(0x1fc)])[_0x50b3b6(0x150)](_0x3ba52c=>_0x3ba52c(_0x44e5aa));}}var H=Object['getOwnPropertyDescriptor'],V=(_0x3edaf9,_0xd26f66,_0x2c9046,_0x39cbe1)=>{var _0x232c7f=_0x5ec7ed;for(var _0xca6e2f=_0x39cbe1>0x1?void 0x0:_0x39cbe1?H(_0xd26f66,_0x2c9046):_0xd26f66,_0x16b9a9=_0x3edaf9[_0x232c7f(0x1c9)]-0x1,_0x4073c0;_0x16b9a9>=0x0;_0x16b9a9--)(_0x4073c0=_0x3edaf9[_0x16b9a9])&&(_0xca6e2f=_0x4073c0(_0xca6e2f)||_0xca6e2f);return _0xca6e2f;},k=(_0x2537ee,_0x5069af)=>(_0x385e59,_0x1ca1c9)=>_0x5069af(_0x385e59,_0x1ca1c9,_0x2537ee);let E=class extends o[_0x5ec7ed(0x1e7)]{constructor(_0x4202d4){var _0x19ea37=_0x5ec7ed;super(),this[_0x19ea37(0x1ac)]=_0x4202d4,this[_0x19ea37(0x197)]();}[_0x5ec7ed(0x197)](){var _0x1998b7=_0x5ec7ed;[w['SetZoomRatioOperation']['id'],w[_0x1998b7(0x159)]['id'],C[_0x1998b7(0x21e)]['id']][_0x1998b7(0x1d6)](_0x4884c7=>{var _0x6da8d5=_0x1998b7;this[_0x6da8d5(0x20d)](this['_liveShareService']['registerSharedOperation'](_0x4884c7));});}};E=V([k(0x0,o['Inject'](O))],E);function _0x25d9(){var _0x32816e=['extend','@univerjs/sheets-ui','LiveShare','url(#$1','clsx','forEach','useState','onCommandExecuted','_stopFollowing','NEW_CHANGESETS','@univerjs/ui','You\x27are\x20offline.','registerComponent','_status','0\x200\x2017\x2017','_collabSession','presenting','button','apply','DesktopLiveShareController','trim','stopFollowing','Disposable','http://www.w3.org/2000/svg','current','toStringTag','_startPresenting','NOT_FOLLOWING','then','function','UNIVER_SHEET','UNIVER_LIVE_SHARE_PLUGIN','includes','_configService','_commandDisposable','xlink:href','getValue','Present\x20this\x20document','icon','@univerjs-pro/collaboration-client','Dropdown','substring','getCurrentTypeOfUnit$','_reporters','event$','children','LiveShareCoordinator','concat','evenodd','currentColor','Injector','call','getOwnPropertyDescriptor','propertyIsEnumerable','get','add','memberID','live-share.config','touchDependencies','prototype','disposeWithMe','_presenter','react','stopPresenting','Plugin','createElement','className','startFollowing','Button','use','takeUntil','reverse','end','_beIdle','jsxs','default','stringify','SetWorksheetActiveOperation','parse','throttleTime','getTypeOfUnitDisposed$','dispose','asObservable','OFFLINE','params','override','_commandService','You\x27re\x20following\x20the\x20presenter','15dBucrX','indexOf','operations','IUniverInstanceService','DependentOn','_stopPresenting','jsx','_handleOperation','univer-w-full\x20univer-mb-3\x20univer-text-sm','pipe','ONLINE','_handleOffline','_status$','offline','432ALBACV','tryStartPresenting','path','180521UzUACc','createInstance','_handleNewHost','LIVESHARE_TERMINATE','2LZXsBG','IDLE','InsertSheetMutation','LIVESHARE_FETCH_OPERATIONS','map','rxjs/operators','getInitialStates','You\x27re\x20not\x20following\x20the\x20presenter','Start','displayName','getUnitId','CollaborationEvent','162200OWIZmx','SetScrollOperation','setConfig','shouldShareOperation','useDependency','attrs','executeCommand','defs','CommandType','div','Stop\x20presenting','registerSharedOperation','_startFollowing','idle','Module','sessionStatus$','svg','1em','getTypeOfUnitAdded$','_univerInstanceService','getMemberID','BehaviorSubject','has','none','connectInjector','Stop\x20following','complete','rxjs','FOLLOWING','getOwnPropertySymbols','useRef','UniverLiveSharePlugin','Start\x20following','init','_mountLiveShare','20685JTLCJH','_uiPartsService','35796FtwOiQ','symbol','unsubscribe','merge','getConfig','LiveShareStatus','text','hasOwnProperty','Fragment','_collabSessionService','defIds','_handleTerminate','LIVESHARE_NEW_HOST','onRendered','_entities','univerjs-icon\x20univerjs-icon-','_startLiveShareCoordinator','live-share-icon','UNIVER_UNKNOWN','Inject','_fetchOperations','UniverInstanceType','IUIPartsService','998444vhghEH','tag','_config','_init','BuiltInUIPart','string','parseProtocolChangeset','subscribe','assign','delete','_injector','following','sheet','useObservable','_unitID','810FOtgyt','next','fill','forwardRef','mask','1826898jbzqDV','PRESENTING','LiveShareController','useEffect','_liveShareService','getLiveShareCoordinator','4199211xshGjp','react/jsx-runtime','OPERATION','_handleOnline','@univerjs-pro/collaboration','colorChannel1','Subject','unitId','defineProperty','@univerjs/sheets','HEADER_MENU','RxDisposable','SessionStatus','@univerjs/core','from','send','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','mutations','registerInitialStateReporter','toDisposable','DisposableCollection','random','dispose$','LIVESHARE_OPERATION','idSuffix','data','type','length','pluginName','status$','presenter','_sharedOperations','not-following','replace','values'];_0x25d9=function(){return _0x32816e;};return _0x25d9();}var u=function(){var _0x11514b=_0x5ec7ed;return u=Object['assign']||function(_0x4c3dd9){var _0x3cbe6f=_0x1172;for(var _0x167cba,_0x5b8b08=0x1,_0x3d068a=arguments[_0x3cbe6f(0x1c9)];_0x5b8b08<_0x3d068a;_0x5b8b08++){_0x167cba=arguments[_0x5b8b08];for(var _0x43213d in _0x167cba)Object[_0x3cbe6f(0x20c)][_0x3cbe6f(0x184)][_0x3cbe6f(0x204)](_0x167cba,_0x43213d)&&(_0x4c3dd9[_0x43213d]=_0x167cba[_0x43213d]);}return _0x4c3dd9;},u[_0x11514b(0x1e3)](this,arguments);},M=function(_0x243fd1,_0x478368){var _0x66c449=_0x5ec7ed,_0x8107db={};for(var _0x10d20c in _0x243fd1)Object[_0x66c449(0x20c)]['hasOwnProperty'][_0x66c449(0x204)](_0x243fd1,_0x10d20c)&&_0x478368[_0x66c449(0x22a)](_0x10d20c)<0x0&&(_0x8107db[_0x10d20c]=_0x243fd1[_0x10d20c]);if(_0x243fd1!=null&&typeof Object[_0x66c449(0x175)]==_0x66c449(0x1ee)){for(var _0x1cf98c=0x0,_0x10d20c=Object[_0x66c449(0x175)](_0x243fd1);_0x1cf98c<_0x10d20c[_0x66c449(0x1c9)];_0x1cf98c++)_0x478368[_0x66c449(0x22a)](_0x10d20c[_0x1cf98c])<0x0&&Object[_0x66c449(0x20c)][_0x66c449(0x206)][_0x66c449(0x204)](_0x243fd1,_0x10d20c[_0x1cf98c])&&(_0x8107db[_0x10d20c[_0x1cf98c]]=_0x243fd1[_0x10d20c[_0x1cf98c]]);}return _0x8107db;},j=f[_0x5ec7ed(0x1a6)](function(_0xc2991d,_0x3e4a86){var _0x5dd79f=_0x5ec7ed,_0x385e0b=_0xc2991d[_0x5dd79f(0x1f7)],_0x4471ff=_0xc2991d['id'],_0x2a79c1=_0xc2991d[_0x5dd79f(0x213)],_0xd02624=_0xc2991d[_0x5dd79f(0x1d1)],_0x523291=M(_0xc2991d,[_0x5dd79f(0x1f7),'id',_0x5dd79f(0x213),'extend']),_0x4a8cc6=_0x5dd79f(0x18c)[_0x5dd79f(0x200)](_0x4471ff,'\x20')[_0x5dd79f(0x200)](_0x2a79c1||'')[_0x5dd79f(0x1e5)](),_0x124153=f[_0x5dd79f(0x176)]('_'[_0x5dd79f(0x200)](G()));return y(_0x385e0b,''['concat'](_0x4471ff),{'defIds':_0x385e0b[_0x5dd79f(0x187)],'idSuffix':_0x124153[_0x5dd79f(0x1e9)]},u({'ref':_0x3e4a86,'className':_0x4a8cc6},_0x523291),_0xd02624);});function y(_0x5e316f,_0x2ca8f4,_0x28e92e,_0x28aa28,_0x1c646c){var _0x47efaf=_0x5ec7ed;return f[_0x47efaf(0x212)](_0x5e316f[_0x47efaf(0x195)],u(u({'key':_0x2ca8f4},q(_0x5e316f,_0x28e92e,_0x1c646c)),_0x28aa28),(W(_0x5e316f,_0x28e92e)[_0x47efaf(0x1fe)]||[])['map'](function(_0x4737a1,_0x30ff54){var _0x532015=_0x47efaf;return y(_0x4737a1,''[_0x532015(0x200)](_0x2ca8f4,'-')[_0x532015(0x200)](_0x5e316f['tag'],'-')[_0x532015(0x200)](_0x30ff54),_0x28e92e,void 0x0,_0x1c646c);}));}function q(_0x2b12b0,_0x140ac8,_0x514ae5){var _0x28c531=_0x5ec7ed,_0x53758d=u({},_0x2b12b0[_0x28c531(0x15d)]);_0x514ae5!=null&&_0x514ae5[_0x28c531(0x1b3)]&&_0x53758d[_0x28c531(0x1a5)]===_0x28c531(0x1b3)&&(_0x53758d[_0x28c531(0x1a5)]=_0x514ae5[_0x28c531(0x1b3)]),_0x2b12b0[_0x28c531(0x195)]===_0x28c531(0x1a7)&&_0x53758d['id']&&(_0x53758d['id']=_0x53758d['id']+_0x140ac8[_0x28c531(0x1c6)]),Object['entries'](_0x53758d)[_0x28c531(0x1d6)](function(_0x406d62){var _0x4e3e23=_0x28c531,_0x3ffd0f=_0x406d62[0x0],_0x59afef=_0x406d62[0x1];_0x3ffd0f===_0x4e3e23(0x1a7)&&typeof _0x59afef==_0x4e3e23(0x199)&&(_0x53758d[_0x3ffd0f]=_0x59afef[_0x4e3e23(0x1cf)](/url\(#(.*)\)/,'url(#$1'[_0x4e3e23(0x200)](_0x140ac8[_0x4e3e23(0x1c6)],')')));});var _0x2b511e=_0x140ac8['defIds'];return!_0x2b511e||_0x2b511e[_0x28c531(0x1c9)]===0x0||(_0x2b12b0[_0x28c531(0x195)]===_0x28c531(0x216)&&_0x53758d[_0x28c531(0x1f4)]&&(_0x53758d[_0x28c531(0x1f4)]=_0x53758d[_0x28c531(0x1f4)]+_0x140ac8[_0x28c531(0x1c6)]),Object['entries'](_0x53758d)[_0x28c531(0x1d6)](function(_0x2c66d5){var _0xa53ff1=_0x28c531,_0x3c9ad2=_0x2c66d5[0x0],_0x1f6067=_0x2c66d5[0x1];typeof _0x1f6067==_0xa53ff1(0x199)&&(_0x53758d[_0x3c9ad2]=_0x1f6067[_0xa53ff1(0x1cf)](/url\(#(.*)\)/,_0xa53ff1(0x1d4)['concat'](_0x140ac8[_0xa53ff1(0x1c6)],')')));})),_0x53758d;}function W(_0x3b7091,_0xe5812f){var _0x1001a0=_0x5ec7ed,_0x29b9bf,_0x55dc62=_0xe5812f[_0x1001a0(0x187)];return!_0x55dc62||_0x55dc62[_0x1001a0(0x1c9)]===0x0?_0x3b7091:_0x3b7091[_0x1001a0(0x195)]===_0x1001a0(0x15f)&&(!((_0x29b9bf=_0x3b7091[_0x1001a0(0x1fe)])===null||_0x29b9bf===void 0x0)&&_0x29b9bf[_0x1001a0(0x1c9)])?u(u({},_0x3b7091),{'children':_0x3b7091[_0x1001a0(0x1fe)]['map'](function(_0xf82eb8){var _0x21b909=_0x1001a0;return typeof _0xf82eb8[_0x21b909(0x15d)]['id']==_0x21b909(0x199)&&_0x55dc62&&_0x55dc62[_0x21b909(0x1f1)](_0xf82eb8[_0x21b909(0x15d)]['id'])?u(u({},_0xf82eb8),{'attrs':u(u({},_0xf82eb8[_0x21b909(0x15d)]),{'id':_0xf82eb8[_0x21b909(0x15d)]['id']+_0xe5812f[_0x21b909(0x1c6)]})}):_0xf82eb8;})}):_0x3b7091;}function G(){var _0x25e252=_0x5ec7ed;return Math[_0x25e252(0x1c3)]()['toString'](0x24)[_0x25e252(0x1fa)](0x2,0x8);}function _0x1172(_0x274d17,_0x1b0971){var _0x25d956=_0x25d9();return _0x1172=function(_0x1172c1,_0x5a9498){_0x1172c1=_0x1172c1-0x13c;var _0x10cd06=_0x25d956[_0x1172c1];return _0x10cd06;},_0x1172(_0x274d17,_0x1b0971);}j[_0x5ec7ed(0x155)]='UniverIcon';var B={'tag':_0x5ec7ed(0x168),'attrs':{'xmlns':_0x5ec7ed(0x1e8),'fill':_0x5ec7ed(0x16f),'viewBox':_0x5ec7ed(0x1df),'width':_0x5ec7ed(0x169),'height':_0x5ec7ed(0x169)},'children':[{'tag':_0x5ec7ed(0x147),'attrs':{'fill':_0x5ec7ed(0x202),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x5ec7ed(0x147),'attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x5ec7ed(0x201),'clipRule':_0x5ec7ed(0x201)}}]},P=f[_0x5ec7ed(0x1a6)](function(_0x46a876,_0x2fda26){var _0x22274a=_0x5ec7ed;return f['createElement'](j,Object[_0x22274a(0x19c)]({},_0x46a876,{'id':_0x22274a(0x18e),'ref':_0x2fda26,'icon':B}));});P['displayName']='LiveShareIcon';var Y=Object[_0x5ec7ed(0x205)],R=(_0x391299,_0x44089b,_0x29490f,_0x2966b1)=>{var _0x197f60=_0x5ec7ed;for(var _0x5b70b3=_0x2966b1>0x1?void 0x0:_0x2966b1?Y(_0x44089b,_0x29490f):_0x44089b,_0x19dfe1=_0x391299[_0x197f60(0x1c9)]-0x1,_0x53282c;_0x19dfe1>=0x0;_0x19dfe1--)(_0x53282c=_0x391299[_0x19dfe1])&&(_0x5b70b3=_0x53282c(_0x5b70b3)||_0x5b70b3);return _0x5b70b3;},S=(_0x4a4795,_0x135e6a)=>(_0x395fa1,_0x2e40b8)=>_0x135e6a(_0x395fa1,_0x2e40b8,_0x4a4795);exports[_0x5ec7ed(0x1aa)]=class extends o[_0x5ec7ed(0x1b9)]{constructor(_0x426714,_0x3a8084,_0x7fd422){var _0x248fe5=_0x5ec7ed;super(),v(this,'_entities',new Map()),(this[_0x248fe5(0x16b)]=_0x426714,this['_injector']=_0x3a8084,this[_0x248fe5(0x186)]=_0x7fd422,this[_0x248fe5(0x197)]());}async[_0x5ec7ed(0x1ad)](_0x22c85d){var _0x25d35b=_0x5ec7ed;return this[_0x25d35b(0x18b)][_0x25d35b(0x16e)](_0x22c85d)||await this[_0x25d35b(0x18d)](_0x22c85d),this[_0x25d35b(0x18b)][_0x25d35b(0x207)](_0x22c85d);}[_0x5ec7ed(0x197)](){var _0x1d2d6f=_0x5ec7ed;this[_0x1d2d6f(0x16b)][_0x1d2d6f(0x16a)](o[_0x1d2d6f(0x192)]['UNIVER_SHEET'])[_0x1d2d6f(0x140)](b['takeUntil'](this[_0x1d2d6f(0x1c4)]))[_0x1d2d6f(0x19b)](async _0x40092d=>{var _0x46b959=_0x1d2d6f;const _0x15d50e=_0x40092d[_0x46b959(0x156)]();this['_entities'][_0x46b959(0x16e)](_0x15d50e)||this[_0x46b959(0x18d)](_0x15d50e);}),this[_0x1d2d6f(0x16b)][_0x1d2d6f(0x221)](o[_0x1d2d6f(0x192)][_0x1d2d6f(0x1ef)])[_0x1d2d6f(0x140)](b[_0x1d2d6f(0x217)](this['dispose$']))[_0x1d2d6f(0x19b)](_0x85c401=>{var _0x3bc631=_0x1d2d6f;const _0x312af3=_0x85c401[_0x3bc631(0x156)](),_0x43f38d=this['_entities']['get'](_0x312af3);_0x43f38d==null||_0x43f38d[_0x3bc631(0x222)]();});}async[_0x5ec7ed(0x18d)](_0x1eea71){var _0xebf5c9=_0x5ec7ed;const _0x1b1aa1=await this[_0xebf5c9(0x186)]['requireSession'](_0x1eea71),_0x2b026e=this[_0xebf5c9(0x19e)][_0xebf5c9(0x149)](exports['LiveShareCoordinator'],_0x1eea71,_0x1b1aa1);return _0x2b026e[_0xebf5c9(0x179)](),this['_entities']['set'](_0x1eea71,_0x2b026e),_0x2b026e;}},exports[_0x5ec7ed(0x1aa)]=R([S(0x0,o[_0x5ec7ed(0x22c)]),S(0x1,o['Inject'](o[_0x5ec7ed(0x203)])),S(0x2,o[_0x5ec7ed(0x190)](m['CollaborationSessionService']))],exports[_0x5ec7ed(0x1aa)]);var h=(_0x216b56=>(_0x216b56[_0x5ec7ed(0x224)]=_0x5ec7ed(0x144),_0x216b56['IDLE']=_0x5ec7ed(0x165),_0x216b56[_0x5ec7ed(0x174)]=_0x5ec7ed(0x19f),_0x216b56[_0x5ec7ed(0x1ec)]=_0x5ec7ed(0x1ce),_0x216b56[_0x5ec7ed(0x1a9)]='presenting',_0x216b56))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports[_0x5ec7ed(0x1ff)]=class extends o[_0x5ec7ed(0x1b9)]{constructor(_0x4062e5,_0x9f8a18,_0x599213,_0x2dd0f7,_0x4c02ec){var _0x2fb653=_0x5ec7ed;super(),v(this,_0x2fb653(0x143),new D[(_0x2fb653(0x16d))](_0x2fb653(0x165))),v(this,_0x2fb653(0x1cb),this['_status$'][_0x2fb653(0x223)]()),v(this,'_init',!0x1),v(this,'_commandDisposable',null),v(this,_0x2fb653(0x20e),null),(this['_unitID']=_0x4062e5,this['_collabSession']=_0x9f8a18,this[_0x2fb653(0x1f2)]=_0x599213,this[_0x2fb653(0x1ac)]=_0x2dd0f7,this[_0x2fb653(0x227)]=_0x4c02ec);}get[_0x5ec7ed(0x1de)](){var _0x12fbb2=_0x5ec7ed;return this['_status$'][_0x12fbb2(0x1f5)]();}['dispose'](){var _0x5c2bef=_0x5ec7ed,_0x346408;(_0x346408=this['_commandDisposable'])==null||_0x346408[_0x5c2bef(0x222)](),this[_0x5c2bef(0x143)][_0x5c2bef(0x1a4)](_0x5c2bef(0x165)),this[_0x5c2bef(0x143)][_0x5c2bef(0x172)]();}[_0x5ec7ed(0x179)](){var _0x4af65f=_0x5ec7ed;this[_0x4af65f(0x197)]||(this[_0x4af65f(0x197)]=!0x0,this['_collabSession'][_0x4af65f(0x167)][_0x4af65f(0x140)](b['takeUntil'](this[_0x4af65f(0x1c4)]))['subscribe'](_0x395c23=>{var _0x4d04d3=_0x4af65f;switch(_0x395c23){case m[_0x4d04d3(0x1ba)]['OFFLINE']:this[_0x4d04d3(0x142)]();break;case m['SessionStatus'][_0x4d04d3(0x141)]:this[_0x4d04d3(0x1b1)]();break;}}),this[_0x4af65f(0x1e0)][_0x4af65f(0x1fd)][_0x4af65f(0x140)](b[_0x4af65f(0x217)](this[_0x4af65f(0x1c4)]))['subscribe'](_0x57a5ba=>{var _0x5253d9=_0x4af65f;const {eventID:_0x11afd5}=_0x57a5ba;switch(_0x11afd5){case _[_0x5253d9(0x157)][_0x5253d9(0x189)]:this[_0x5253d9(0x14a)](_0x57a5ba);break;case _['CollaborationEvent'][_0x5253d9(0x1c5)]:this['_handleOperation'](_0x57a5ba);break;case _[_0x5253d9(0x157)][_0x5253d9(0x14b)]:this[_0x5253d9(0x188)]();break;case _[_0x5253d9(0x157)][_0x5253d9(0x1da)]:this['_handleNewChangeSets'](_0x57a5ba);break;}}));}['tryStartPresenting'](){var _0x4b7be5=_0x5ec7ed;this['_collabSession']['send']({'eventID':_[_0x4b7be5(0x157)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4b7be5(0x1a2)],'userID':this[_0x4b7be5(0x1e0)]['getMemberID']()}},this[_0x4b7be5(0x1a2)]);}['stopPresenting'](){var _0x575fb5=_0x5ec7ed;this[_0x575fb5(0x1de)]===_0x575fb5(0x1e1)&&(this[_0x575fb5(0x143)]['next'](_0x575fb5(0x165)),this[_0x575fb5(0x1e0)][_0x575fb5(0x1bd)]({'eventID':_['CollaborationEvent'][_0x575fb5(0x14b)],'data':{'unitID':this[_0x575fb5(0x1a2)]}},this[_0x575fb5(0x1a2)]));}[_0x5ec7ed(0x214)](){var _0x3f1109=_0x5ec7ed;this[_0x3f1109(0x1de)]==='not-following'&&(this[_0x3f1109(0x143)][_0x3f1109(0x1a4)](_0x3f1109(0x19f)),this[_0x3f1109(0x164)]());}[_0x5ec7ed(0x1e6)](){var _0x49f826=_0x5ec7ed;this[_0x49f826(0x1de)]===_0x49f826(0x19f)&&this[_0x49f826(0x1d9)]();}['_handleNewHost'](_0x411463){var _0x1ec2fd=_0x5ec7ed;const {presenter:_0x20defe}=_0x411463[_0x1ec2fd(0x1c7)],_0x50749e=this[_0x1ec2fd(0x1e0)][_0x1ec2fd(0x16c)]();this['_presenter']=_0x20defe,_0x20defe===_0x50749e?(this[_0x1ec2fd(0x1d9)](),this[_0x1ec2fd(0x1eb)]()):this[_0x1ec2fd(0x1de)]!=='not-following'&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x5ec7ed(0x191)](){var _0x462025=_0x5ec7ed;const _0xfe1fdb={'eventID':_[_0x462025(0x157)][_0x462025(0x14f)]};this['_collabSession'][_0x462025(0x1bd)](_0xfe1fdb,this['_unitID']);}[_0x5ec7ed(0x188)](){var _0x197710=_0x5ec7ed;this[_0x197710(0x20e)]=null,this[_0x197710(0x1de)]!=='presenting'&&this[_0x197710(0x21a)]();}['_handleNewChangeSets'](_0x156326){var _0x464e79=_0x5ec7ed;if(this[_0x464e79(0x1de)]===_0x464e79(0x19f)&&this[_0x464e79(0x20e)]===_0x156326[_0x464e79(0x1c7)][_0x464e79(0x209)]){const _0x1bd4d6=_[_0x464e79(0x19a)](_0x156326['data'])[_0x464e79(0x1bf)][_0x464e79(0x218)]()['find'](_0x36c139=>_0x36c139['id']===C[_0x464e79(0x14e)]['id']);if(_0x1bd4d6){const _0x3f85e=_0x1bd4d6['params'][_0x464e79(0x1b5)],_0x4e1716=_0x1bd4d6[_0x464e79(0x225)][_0x464e79(0x1a0)]['id'];setTimeout(()=>{var _0x4e5bbc=_0x464e79;this['_commandService'][_0x4e5bbc(0x15e)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x3f85e,'subUnitId':_0x4e1716},{'fromCollab':!0x0});});}}}[_0x5ec7ed(0x1eb)](){var _0x1d938a=_0x5ec7ed;this['_status$'][_0x1d938a(0x1a4)]('presenting');const _0x435f45=new Map(),_0x4d5125=this[_0x1d938a(0x1f3)]=new o[(_0x1d938a(0x1c2))]();_0x4d5125[_0x1d938a(0x208)](o['toDisposable'](()=>{var _0x1bf9ba=_0x1d938a;_0x435f45[_0x1bf9ba(0x1d6)](_0x343dc4=>_0x343dc4[_0x1bf9ba(0x172)]()),_0x435f45['clear']();})),_0x4d5125['add'](this[_0x1d938a(0x227)][_0x1d938a(0x1d8)](_0x2df6ad=>{var _0x3b0735=_0x1d938a,_0x553f18;if(_0x2df6ad[_0x3b0735(0x1c8)]!==o[_0x3b0735(0x160)][_0x3b0735(0x1b0)]||!this[_0x3b0735(0x1ac)][_0x3b0735(0x15b)](_0x2df6ad['id']))return;const {id:_0x4044f8}=_0x2df6ad;let _0xbf810a;_0x435f45[_0x3b0735(0x16e)](_0x4044f8)?_0xbf810a=_0x435f45[_0x3b0735(0x207)](_0x4044f8):(_0xbf810a=new D[(_0x3b0735(0x1b4))](),_0x435f45['set'](_0x4044f8,_0xbf810a),_0xbf810a[_0x3b0735(0x140)](b[_0x3b0735(0x220)]((_0x553f18=this['_configService'][_0x3b0735(0x181)](Z))!=null?_0x553f18:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3b0735(0x19b)](_0x820834=>{var _0x374127=_0x3b0735;this['_collabSession'][_0x374127(0x1bd)]({'eventID':_[_0x374127(0x157)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x820834['id']]:{'id':_0x820834['id'],'params':JSON[_0x374127(0x21d)](_0x820834[_0x374127(0x225)])}}}},this['_unitID']);})),_0xbf810a[_0x3b0735(0x1a4)](_0x2df6ad);})),this[_0x1d938a(0x1ac)][_0x1d938a(0x152)](this[_0x1d938a(0x1a2)])[_0x1d938a(0x1d6)](_0x386f65=>this[_0x1d938a(0x1e0)][_0x1d938a(0x1bd)]({'eventID':_[_0x1d938a(0x157)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1d938a(0x1a2)],'operations':{[_0x386f65['id']]:{'id':_0x386f65['id'],'params':JSON[_0x1d938a(0x21d)](_0x386f65[_0x1d938a(0x225)])}}}},this[_0x1d938a(0x1a2)]));}[_0x5ec7ed(0x13c)](){var _0x38e263=_0x5ec7ed,_0x2c1d05;this['_status$'][_0x38e263(0x1a4)](_0x38e263(0x165)),(_0x2c1d05=this[_0x38e263(0x1f3)])==null||_0x2c1d05[_0x38e263(0x222)](),this[_0x38e263(0x1f3)]=null;}[_0x5ec7ed(0x164)](){var _0x49f5c7=_0x5ec7ed,_0xeb3792;(_0xeb3792=this['_commandDisposable'])==null||_0xeb3792['dispose'](),this[_0x49f5c7(0x143)][_0x49f5c7(0x1a4)](_0x49f5c7(0x19f));}[_0x5ec7ed(0x21a)](){var _0xb2cf0e=_0x5ec7ed,_0x21e295;this[_0xb2cf0e(0x143)]['next']('idle'),(_0x21e295=this[_0xb2cf0e(0x1f3)])==null||_0x21e295[_0xb2cf0e(0x222)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x386e18=_0x5ec7ed,_0x308064;this['_status$'][_0x386e18(0x1a4)](_0x386e18(0x1ce)),(_0x308064=this['_commandDisposable'])==null||_0x308064['dispose']();}[_0x5ec7ed(0x13e)](_0x17b13c){var _0x498a74=_0x5ec7ed;if([_0x498a74(0x1e1),_0x498a74(0x1ce),_0x498a74(0x144)]['includes'](this['_status'])||!_0x17b13c['data'][_0x498a74(0x1cc)]||_0x17b13c[_0x498a74(0x1c7)][_0x498a74(0x1cc)]===this[_0x498a74(0x1e0)][_0x498a74(0x16c)]())return;this[_0x498a74(0x1de)]===_0x498a74(0x165)&&this[_0x498a74(0x164)]();const _0x8729d1=_0x17b13c['data'][_0x498a74(0x22b)];Object[_0x498a74(0x1d0)](_0x8729d1)['forEach'](_0xbe768a=>{var _0x14b687=_0x498a74;this[_0x14b687(0x227)]['executeCommand'](_0xbe768a['id'],_0xbe768a[_0x14b687(0x225)]?JSON[_0x14b687(0x21f)](_0xbe768a[_0x14b687(0x225)]):null,{'fromCollab':!0x0});});}[_0x5ec7ed(0x142)](){var _0x2495d8=_0x5ec7ed,_0x396b48;this[_0x2495d8(0x143)]['next'](_0x2495d8(0x144)),(_0x396b48=this[_0x2495d8(0x1f3)])==null||_0x396b48[_0x2495d8(0x222)]();}[_0x5ec7ed(0x1b1)](){var _0x342f38=_0x5ec7ed;this[_0x342f38(0x143)][_0x342f38(0x1a4)](_0x342f38(0x165)),this[_0x342f38(0x191)]();}},exports['LiveShareCoordinator']=R([S(0x2,o['IConfigService']),S(0x3,o['Inject'](O)),S(0x4,o['ICommandService'])],exports[_0x5ec7ed(0x1ff)]);function A(){var _0xa60f4=_0x5ec7ed;const _0x586695=p['useDependency'](exports[_0xa60f4(0x1aa)]),_0x1dfc20=p[_0xa60f4(0x15c)](o[_0xa60f4(0x22c)]),_0x5cfcbe=p[_0xa60f4(0x1a1)](()=>_0x1dfc20[_0xa60f4(0x1fb)](o[_0xa60f4(0x192)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3e9f21,_0x219a17]=f['useState'](null),[_0x3fbc83,_0x1e6359]=f[_0xa60f4(0x1d7)](h['IDLE']),_0x2e5d93=f[_0xa60f4(0x176)](null);return f[_0xa60f4(0x1ab)](()=>(_0x5cfcbe&&_0x586695[_0xa60f4(0x1ad)](_0x5cfcbe['getUnitId']())[_0xa60f4(0x1ed)](_0x5bccfa=>{var _0x3fe987=_0xa60f4;_0x219a17(_0x5bccfa),_0x2e5d93['current']=_0x5bccfa[_0x3fe987(0x1cb)]['subscribe'](_0x8a1c8c=>{_0x1e6359(_0x8a1c8c);});}),()=>{var _0x5ad04e=_0xa60f4,_0x179cbc;(_0x179cbc=_0x2e5d93[_0x5ad04e(0x1e9)])==null||_0x179cbc[_0x5ad04e(0x17f)](),_0x2e5d93['current']=null;}),[_0x5cfcbe,_0x586695]),_0x3e9f21?l['jsx'](g[_0xa60f4(0x1f9)],{'align':_0xa60f4(0x219),'disabled':_0x3fbc83===h[_0xa60f4(0x224)],'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[_0xa60f4(0x13d)](K,{'status':_0x3fbc83,'coordinator':_0x3e9f21}),'children':l[_0xa60f4(0x13d)](_0xa60f4(0x1e2),{'className':g[_0xa60f4(0x1d5)](_0xa60f4(0x1be),{'univer-cursor-not-allowed':_0x3fbc83===h[_0xa60f4(0x224)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3fbc83!==h[_0xa60f4(0x224)]}),'type':_0xa60f4(0x1e2),'children':l[_0xa60f4(0x13d)](P,{'className':'univer-size-4'})})}):null;}function K(_0x1e49dd){var _0x70fd14=_0x5ec7ed;const {status:_0x453f74,coordinator:_0xe9679}=_0x1e49dd;switch(_0x453f74){case h[_0x70fd14(0x14d)]:return l['jsx'](z,{'coordinator':_0xe9679});case h[_0x70fd14(0x174)]:return l[_0x70fd14(0x13d)](Q,{'coordinator':_0xe9679});case h[_0x70fd14(0x1ec)]:return l[_0x70fd14(0x13d)](X,{'coordinator':_0xe9679});case h[_0x70fd14(0x224)]:return l['jsx'](te,{});case h['PRESENTING']:return l[_0x70fd14(0x13d)](ee,{'coordinator':_0xe9679});default:return null;}}function z(_0x2e583c){var _0x57da42=_0x5ec7ed;const {coordinator:_0x5643d1}=_0x2e583c;return l[_0x57da42(0x21b)](l[_0x57da42(0x185)],{'children':[l['jsx'](_0x57da42(0x161),{'className':_0x57da42(0x13f),'children':_0x57da42(0x1f6)}),l[_0x57da42(0x13d)](g['Button'],{'onClick':()=>_0x5643d1[_0x57da42(0x146)](),'children':_0x57da42(0x154)})]});}function Q(_0x1e7df6){var _0x3130f7=_0x5ec7ed;const {coordinator:_0x2faa1b}=_0x1e7df6;return l['jsxs'](l[_0x3130f7(0x185)],{'children':[l[_0x3130f7(0x13d)](_0x3130f7(0x161),{'className':_0x3130f7(0x13f),'children':_0x3130f7(0x228)}),l['jsx'](g[_0x3130f7(0x215)],{'onClick':()=>_0x2faa1b[_0x3130f7(0x1e6)](),'children':_0x3130f7(0x171)})]});}function X(_0x58a1d0){var _0x5badde=_0x5ec7ed;const {coordinator:_0x40a71c}=_0x58a1d0;return l['jsxs'](l[_0x5badde(0x185)],{'children':[l['jsx'](_0x5badde(0x161),{'className':_0x5badde(0x13f),'children':_0x5badde(0x153)}),l[_0x5badde(0x13d)](g[_0x5badde(0x215)],{'variant':_0x5badde(0x183),'onClick':()=>_0x40a71c['startFollowing'](),'children':_0x5badde(0x178)})]});}function ee(_0x5725cf){var _0x412839=_0x5ec7ed;const {coordinator:_0x6ec0e}=_0x5725cf;return l[_0x412839(0x21b)](l[_0x412839(0x185)],{'children':[l['jsx']('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),l['jsx'](g[_0x412839(0x215)],{'variant':_0x412839(0x21c),'onClick':()=>_0x6ec0e[_0x412839(0x210)](),'children':_0x412839(0x162)})]});}function te(){var _0x58ce2c=_0x5ec7ed;return l[_0x58ce2c(0x13d)](l[_0x58ce2c(0x185)],{'children':_0x58ce2c(0x1dc)});}var ie=Object[_0x5ec7ed(0x205)],ne=(_0x3c8285,_0x4dddf4,_0x3b6838,_0x3c6e54)=>{var _0x4ec34e=_0x5ec7ed;for(var _0x1c9efb=_0x3c6e54>0x1?void 0x0:_0x3c6e54?ie(_0x4dddf4,_0x3b6838):_0x4dddf4,_0x5a251f=_0x3c8285[_0x4ec34e(0x1c9)]-0x1,_0x426965;_0x5a251f>=0x0;_0x5a251f--)(_0x426965=_0x3c8285[_0x5a251f])&&(_0x1c9efb=_0x426965(_0x1c9efb)||_0x1c9efb);return _0x1c9efb;},L=(_0x42b88a,_0xdddf1b)=>(_0x46ade6,_0x1e742b)=>_0xdddf1b(_0x46ade6,_0x1e742b,_0x42b88a);exports[_0x5ec7ed(0x1e4)]=class extends o['Disposable']{constructor(_0x4e5e37,_0x5bdc79){var _0x1326e2=_0x5ec7ed;super(),this['_injector']=_0x4e5e37,this['_uiPartsService']=_0x5bdc79,this[_0x1326e2(0x17a)]();}[_0x5ec7ed(0x17a)](){var _0x408244=_0x5ec7ed;this['disposeWithMe'](this[_0x408244(0x17c)][_0x408244(0x1dd)](p[_0x408244(0x198)][_0x408244(0x1b8)],()=>p[_0x408244(0x170)](A,this[_0x408244(0x19e)])));}},exports[_0x5ec7ed(0x1e4)]=ne([L(0x0,o[_0x5ec7ed(0x190)](o['Injector'])),L(0x1,p[_0x5ec7ed(0x193)])],exports['DesktopLiveShareController']);var re=Object[_0x5ec7ed(0x1b6)],se=Object['getOwnPropertyDescriptor'],oe=(_0x4833fd,_0x160274,_0x32724e)=>_0x160274 in _0x4833fd?re(_0x4833fd,_0x160274,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32724e}):_0x4833fd[_0x160274]=_0x32724e,ae=(_0x31513c,_0x59ede5,_0x5b215e,_0x32fce3)=>{var _0x24ec68=_0x5ec7ed;for(var _0x1c560b=_0x32fce3>0x1?void 0x0:_0x32fce3?se(_0x59ede5,_0x5b215e):_0x59ede5,_0x2367e1=_0x31513c[_0x24ec68(0x1c9)]-0x1,_0x438bae;_0x2367e1>=0x0;_0x2367e1--)(_0x438bae=_0x31513c[_0x2367e1])&&(_0x1c560b=_0x438bae(_0x1c560b)||_0x1c560b);return _0x1c560b;},N=(_0x118778,_0x2594f8)=>(_0x8b1753,_0x59ac23)=>_0x2594f8(_0x8b1753,_0x59ac23,_0x118778),T=(_0x38dc36,_0x5f0cc0,_0x394d99)=>oe(_0x38dc36,typeof _0x5f0cc0!=_0x5ec7ed(0x17e)?_0x5f0cc0+'':_0x5f0cc0,_0x394d99);const le=_0x5ec7ed(0x1f0);exports['UniverLiveSharePlugin']=class extends o[_0x5ec7ed(0x211)]{constructor(_0x11b086=x,_0x4482b3,_0x3cdcf7){var _0x13e4b4=_0x5ec7ed;super(),this[_0x13e4b4(0x196)]=_0x11b086,this[_0x13e4b4(0x19e)]=_0x4482b3,this[_0x13e4b4(0x1f2)]=_0x3cdcf7;const {..._0xeb3488}=o[_0x13e4b4(0x180)]({},x,this[_0x13e4b4(0x196)]);this[_0x13e4b4(0x1f2)][_0x13e4b4(0x15a)]($,_0xeb3488);}['onStarting'](){var _0x1ec8d4=_0x5ec7ed;o['registerDependencies'](this[_0x1ec8d4(0x19e)],o['mergeOverrideWithDependencies']([[O],[exports['LiveShareController']],[E],[exports[_0x1ec8d4(0x1e4)]]],this[_0x1ec8d4(0x196)][_0x1ec8d4(0x226)])),o[_0x1ec8d4(0x20b)](this[_0x1ec8d4(0x19e)],[[E]]);}[_0x5ec7ed(0x18a)](){var _0x2c568a=_0x5ec7ed;o[_0x2c568a(0x20b)](this['_injector'],[[exports[_0x2c568a(0x1e4)]]]);}},T(exports[_0x5ec7ed(0x177)],_0x5ec7ed(0x1c8),o[_0x5ec7ed(0x192)][_0x5ec7ed(0x18f)]),T(exports[_0x5ec7ed(0x177)],_0x5ec7ed(0x1ca),le),exports['UniverLiveSharePlugin']=ae([o[_0x5ec7ed(0x22d)](m['UniverCollaborationClientPlugin']),N(0x1,o[_0x5ec7ed(0x190)](o['Injector'])),N(0x2,o['IConfigService'])],exports['UniverLiveSharePlugin']),exports[_0x5ec7ed(0x1d3)]=A,exports['LiveShareService']=O,exports[_0x5ec7ed(0x182)]=h;
1
+ 'use strict';var _0x47e78f=_0x1592;(function(_0xc5dc05,_0x3947e2){var _0x55aa51=_0x1592,_0xb9de40=_0xc5dc05();while(!![]){try{var _0x1b1fac=-parseInt(_0x55aa51(0x186))/0x1+parseInt(_0x55aa51(0x1d7))/0x2+-parseInt(_0x55aa51(0x1b4))/0x3+parseInt(_0x55aa51(0x1d9))/0x4+parseInt(_0x55aa51(0x1d0))/0x5*(parseInt(_0x55aa51(0x1ba))/0x6)+-parseInt(_0x55aa51(0x14d))/0x7*(-parseInt(_0x55aa51(0x17e))/0x8)+parseInt(_0x55aa51(0x184))/0x9*(-parseInt(_0x55aa51(0x15e))/0xa);if(_0x1b1fac===_0x3947e2)break;else _0xb9de40['push'](_0xb9de40['shift']());}catch(_0x41309e){_0xb9de40['push'](_0xb9de40['shift']());}}}(_0x371c,0x85a09));var U=Object[_0x47e78f(0x1ed)],F=(_0x3c21ec,_0x1245ed,_0x5980ae)=>_0x1245ed in _0x3c21ec?U(_0x3c21ec,_0x1245ed,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5980ae}):_0x3c21ec[_0x1245ed]=_0x5980ae,v=(_0x39aed3,_0x166dd1,_0x4763cc)=>F(_0x39aed3,typeof _0x166dd1!=_0x47e78f(0x198)?_0x166dd1+'':_0x166dd1,_0x4763cc);function _0x1592(_0x1d5a95,_0x56f16f){var _0x371ce2=_0x371c();return _0x1592=function(_0x159279,_0x4ccd42){_0x159279=_0x159279-0x138;var _0x4df72e=_0x371ce2[_0x159279];return _0x4df72e;},_0x1592(_0x1d5a95,_0x56f16f);}Object[_0x47e78f(0x1ed)](exports,Symbol[_0x47e78f(0x1d8)],{'value':_0x47e78f(0x18f)});const m=require(_0x47e78f(0x145)),o=require(_0x47e78f(0x1a4)),C=require('@univerjs/sheets'),w=require(_0x47e78f(0x1f2)),p=require(_0x47e78f(0x1ee)),l=require(_0x47e78f(0x17a)),g=require(_0x47e78f(0x1d4)),f=require(_0x47e78f(0x13d)),_=require(_0x47e78f(0x1c5)),D=require(_0x47e78f(0x1a1)),b=require(_0x47e78f(0x17f)),$=_0x47e78f(0x1f3),x={};class O extends o['Disposable']{constructor(){var _0xa86d4c=_0x47e78f;super(...arguments),v(this,_0xa86d4c(0x1dc),new Set()),v(this,_0xa86d4c(0x1f0),new Set());}[_0x47e78f(0x1dd)](_0x2d1c4e){var _0x5ae2bc=_0x47e78f;return this[_0x5ae2bc(0x1dc)][_0x5ae2bc(0x208)](_0x2d1c4e),o[_0x5ae2bc(0x1b8)](()=>this[_0x5ae2bc(0x1dc)][_0x5ae2bc(0x195)](_0x2d1c4e));}[_0x47e78f(0x152)](_0x3f23d0){var _0x1b1d32=_0x47e78f;return this[_0x1b1d32(0x1f0)][_0x1b1d32(0x208)](_0x3f23d0),o[_0x1b1d32(0x1b8)](()=>this[_0x1b1d32(0x1f0)]['delete'](_0x3f23d0));}[_0x47e78f(0x218)](_0x1c65b3){var _0x2bb1f4=_0x47e78f;return this[_0x2bb1f4(0x1dc)][_0x2bb1f4(0x1d3)](_0x1c65b3);}['getInitialStates'](_0x125033){var _0x5dc849=_0x47e78f;return Array[_0x5dc849(0x158)](this[_0x5dc849(0x1f0)])['map'](_0x4806a1=>_0x4806a1(_0x125033));}}var H=Object['getOwnPropertyDescriptor'],V=(_0x381ef3,_0x2a8502,_0x436e0b,_0x57d5e5)=>{var _0x534975=_0x47e78f;for(var _0x264c1f=_0x57d5e5>0x1?void 0x0:_0x57d5e5?H(_0x2a8502,_0x436e0b):_0x2a8502,_0x329ea6=_0x381ef3[_0x534975(0x1de)]-0x1,_0x49789b;_0x329ea6>=0x0;_0x329ea6--)(_0x49789b=_0x381ef3[_0x329ea6])&&(_0x264c1f=_0x49789b(_0x264c1f)||_0x264c1f);return _0x264c1f;},k=(_0x2dfd78,_0x335af8)=>(_0x1c0e9a,_0x1957d4)=>_0x335af8(_0x1c0e9a,_0x1957d4,_0x2dfd78);let E=class extends o[_0x47e78f(0x207)]{constructor(_0x34b21b){var _0xe5a61d=_0x47e78f;super(),this[_0xe5a61d(0x20b)]=_0x34b21b,this[_0xe5a61d(0x1eb)]();}[_0x47e78f(0x1eb)](){var _0x2d9b9e=_0x47e78f;[w[_0x2d9b9e(0x190)]['id'],w[_0x2d9b9e(0x217)]['id'],C[_0x2d9b9e(0x1f8)]['id']][_0x2d9b9e(0x1f5)](_0x3d5078=>{var _0x47e4be=_0x2d9b9e;this['disposeWithMe'](this[_0x47e4be(0x20b)][_0x47e4be(0x1dd)](_0x3d5078));});}};E=V([k(0x0,o[_0x47e78f(0x213)](O))],E);var u=function(){var _0x9ab3d6=_0x47e78f;return u=Object['assign']||function(_0x517d07){var _0x202358=_0x1592;for(var _0x5e61e3,_0x5aace3=0x1,_0x6fdea4=arguments['length'];_0x5aace3<_0x6fdea4;_0x5aace3++){_0x5e61e3=arguments[_0x5aace3];for(var _0x108132 in _0x5e61e3)Object[_0x202358(0x14f)][_0x202358(0x168)][_0x202358(0x1e7)](_0x5e61e3,_0x108132)&&(_0x517d07[_0x108132]=_0x5e61e3[_0x108132]);}return _0x517d07;},u[_0x9ab3d6(0x19a)](this,arguments);},M=function(_0x165774,_0x166f92){var _0x4cbe81=_0x47e78f,_0x2122f3={};for(var _0x29fb2a in _0x165774)Object[_0x4cbe81(0x14f)]['hasOwnProperty'][_0x4cbe81(0x1e7)](_0x165774,_0x29fb2a)&&_0x166f92['indexOf'](_0x29fb2a)<0x0&&(_0x2122f3[_0x29fb2a]=_0x165774[_0x29fb2a]);if(_0x165774!=null&&typeof Object[_0x4cbe81(0x1bf)]=='function'){for(var _0x4a66e1=0x0,_0x29fb2a=Object[_0x4cbe81(0x1bf)](_0x165774);_0x4a66e1<_0x29fb2a[_0x4cbe81(0x1de)];_0x4a66e1++)_0x166f92['indexOf'](_0x29fb2a[_0x4a66e1])<0x0&&Object[_0x4cbe81(0x14f)][_0x4cbe81(0x1ec)]['call'](_0x165774,_0x29fb2a[_0x4a66e1])&&(_0x2122f3[_0x29fb2a[_0x4a66e1]]=_0x165774[_0x29fb2a[_0x4a66e1]]);}return _0x2122f3;},j=f['forwardRef'](function(_0x12ca38,_0x30f3ee){var _0x428b0a=_0x47e78f,_0x2048a3=_0x12ca38[_0x428b0a(0x161)],_0x1cb9ef=_0x12ca38['id'],_0x48bbe1=_0x12ca38['className'],_0x16415d=_0x12ca38[_0x428b0a(0x155)],_0x51ef9e=M(_0x12ca38,[_0x428b0a(0x161),'id',_0x428b0a(0x203),_0x428b0a(0x155)]),_0x5b3958=_0x428b0a(0x1f6)[_0x428b0a(0x19d)](_0x1cb9ef,'\x20')[_0x428b0a(0x19d)](_0x48bbe1||'')[_0x428b0a(0x1b0)](),_0x3f04f1=f[_0x428b0a(0x214)]('_'[_0x428b0a(0x19d)](G()));return y(_0x2048a3,''[_0x428b0a(0x19d)](_0x1cb9ef),{'defIds':_0x2048a3[_0x428b0a(0x14a)],'idSuffix':_0x3f04f1[_0x428b0a(0x146)]},u({'ref':_0x30f3ee,'className':_0x5b3958},_0x51ef9e),_0x16415d);});function y(_0x270cac,_0x2043c7,_0x24a231,_0x497aae,_0x1c84f6){var _0x15d68e=_0x47e78f;return f[_0x15d68e(0x16e)](_0x270cac[_0x15d68e(0x143)],u(u({'key':_0x2043c7},q(_0x270cac,_0x24a231,_0x1c84f6)),_0x497aae),(W(_0x270cac,_0x24a231)[_0x15d68e(0x1f4)]||[])[_0x15d68e(0x200)](function(_0x49ec6e,_0x3a4ac3){var _0xbfd7ca=_0x15d68e;return y(_0x49ec6e,''[_0xbfd7ca(0x19d)](_0x2043c7,'-')['concat'](_0x270cac[_0xbfd7ca(0x143)],'-')['concat'](_0x3a4ac3),_0x24a231,void 0x0,_0x1c84f6);}));}function q(_0x5978d9,_0x29ebd0,_0x4a1528){var _0x2aff7c=_0x47e78f,_0x174317=u({},_0x5978d9[_0x2aff7c(0x1cd)]);_0x4a1528!=null&&_0x4a1528['colorChannel1']&&_0x174317[_0x2aff7c(0x1da)]===_0x2aff7c(0x211)&&(_0x174317[_0x2aff7c(0x1da)]=_0x4a1528[_0x2aff7c(0x211)]),_0x5978d9[_0x2aff7c(0x143)]==='mask'&&_0x174317['id']&&(_0x174317['id']=_0x174317['id']+_0x29ebd0[_0x2aff7c(0x1b1)]),Object[_0x2aff7c(0x215)](_0x174317)[_0x2aff7c(0x1f5)](function(_0x51420b){var _0x5689a8=_0x2aff7c,_0x3e6232=_0x51420b[0x0],_0x2454e1=_0x51420b[0x1];_0x3e6232===_0x5689a8(0x1a6)&&typeof _0x2454e1==_0x5689a8(0x147)&&(_0x174317[_0x3e6232]=_0x2454e1[_0x5689a8(0x15b)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x29ebd0[_0x5689a8(0x1b1)],')')));});var _0x57e06a=_0x29ebd0[_0x2aff7c(0x14a)];return!_0x57e06a||_0x57e06a[_0x2aff7c(0x1de)]===0x0||(_0x5978d9['tag']==='use'&&_0x174317[_0x2aff7c(0x144)]&&(_0x174317[_0x2aff7c(0x144)]=_0x174317[_0x2aff7c(0x144)]+_0x29ebd0[_0x2aff7c(0x1b1)]),Object['entries'](_0x174317)[_0x2aff7c(0x1f5)](function(_0x5c3882){var _0x3e6a42=_0x2aff7c,_0x1706f0=_0x5c3882[0x0],_0x48ca68=_0x5c3882[0x1];typeof _0x48ca68=='string'&&(_0x174317[_0x1706f0]=_0x48ca68[_0x3e6a42(0x15b)](/url\(#(.*)\)/,_0x3e6a42(0x1b5)[_0x3e6a42(0x19d)](_0x29ebd0[_0x3e6a42(0x1b1)],')')));})),_0x174317;}function W(_0x35062c,_0x4882e1){var _0x856d62=_0x47e78f,_0x4159e8,_0x50798b=_0x4882e1[_0x856d62(0x14a)];return!_0x50798b||_0x50798b[_0x856d62(0x1de)]===0x0?_0x35062c:_0x35062c[_0x856d62(0x143)]===_0x856d62(0x1d2)&&(!((_0x4159e8=_0x35062c[_0x856d62(0x1f4)])===null||_0x4159e8===void 0x0)&&_0x4159e8['length'])?u(u({},_0x35062c),{'children':_0x35062c['children'][_0x856d62(0x200)](function(_0x155cf9){var _0x1b350f=_0x856d62;return typeof _0x155cf9[_0x1b350f(0x1cd)]['id']=='string'&&_0x50798b&&_0x50798b[_0x1b350f(0x139)](_0x155cf9['attrs']['id'])?u(u({},_0x155cf9),{'attrs':u(u({},_0x155cf9[_0x1b350f(0x1cd)]),{'id':_0x155cf9[_0x1b350f(0x1cd)]['id']+_0x4882e1[_0x1b350f(0x1b1)]})}):_0x155cf9;})}):_0x35062c;}function G(){var _0x3c3e54=_0x47e78f;return Math['random']()['toString'](0x24)[_0x3c3e54(0x210)](0x2,0x8);}j[_0x47e78f(0x1a0)]=_0x47e78f(0x183);var B={'tag':'svg','attrs':{'xmlns':_0x47e78f(0x170),'fill':'none','viewBox':_0x47e78f(0x1cf),'width':_0x47e78f(0x205),'height':'1em'},'children':[{'tag':_0x47e78f(0x13f),'attrs':{'fill':_0x47e78f(0x1d6),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x47e78f(0x13f),'attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x47e78f(0x188),'clipRule':'evenodd'}}]},P=f[_0x47e78f(0x151)](function(_0x339b08,_0x2b3380){var _0x3d9a54=_0x47e78f;return f[_0x3d9a54(0x16e)](j,Object[_0x3d9a54(0x1c4)]({},_0x339b08,{'id':'live-share-icon','ref':_0x2b3380,'icon':B}));});P[_0x47e78f(0x1a0)]='LiveShareIcon';var Y=Object[_0x47e78f(0x1e2)],R=(_0x50ae67,_0x2a20eb,_0x3e6259,_0x1cf185)=>{for(var _0x3c41c9=_0x1cf185>0x1?void 0x0:_0x1cf185?Y(_0x2a20eb,_0x3e6259):_0x2a20eb,_0x416b23=_0x50ae67['length']-0x1,_0x4c1aee;_0x416b23>=0x0;_0x416b23--)(_0x4c1aee=_0x50ae67[_0x416b23])&&(_0x3c41c9=_0x4c1aee(_0x3c41c9)||_0x3c41c9);return _0x3c41c9;},S=(_0x1d8c4b,_0x2d7195)=>(_0x529fe7,_0x556a76)=>_0x2d7195(_0x529fe7,_0x556a76,_0x1d8c4b);exports[_0x47e78f(0x19b)]=class extends o['RxDisposable']{constructor(_0x180435,_0x423a8c,_0x3dde18){var _0x503582=_0x47e78f;super(),v(this,_0x503582(0x18d),new Map()),(this[_0x503582(0x154)]=_0x180435,this['_injector']=_0x423a8c,this[_0x503582(0x193)]=_0x3dde18,this[_0x503582(0x1eb)]());}async[_0x47e78f(0x182)](_0xefab5f){var _0x1b28b6=_0x47e78f;return this[_0x1b28b6(0x18d)]['has'](_0xefab5f)||await this['_startLiveShareCoordinator'](_0xefab5f),this[_0x1b28b6(0x18d)][_0x1b28b6(0x1b7)](_0xefab5f);}[_0x47e78f(0x1eb)](){var _0x16abb4=_0x47e78f;this[_0x16abb4(0x154)]['getTypeOfUnitAdded$'](o[_0x16abb4(0x1d1)][_0x16abb4(0x189)])[_0x16abb4(0x175)](b[_0x16abb4(0x169)](this[_0x16abb4(0x148)]))['subscribe'](async _0x27d754=>{var _0x5f1933=_0x16abb4;const _0x11dad4=_0x27d754[_0x5f1933(0x165)]();this[_0x5f1933(0x18d)][_0x5f1933(0x1d3)](_0x11dad4)||this['_startLiveShareCoordinator'](_0x11dad4);}),this['_univerInstanceService'][_0x16abb4(0x13e)](o['UniverInstanceType'][_0x16abb4(0x189)])[_0x16abb4(0x175)](b[_0x16abb4(0x169)](this[_0x16abb4(0x148)]))['subscribe'](_0xc46022=>{var _0x526476=_0x16abb4;const _0x3397a6=_0xc46022[_0x526476(0x165)](),_0x26bf4f=this[_0x526476(0x18d)]['get'](_0x3397a6);_0x26bf4f==null||_0x26bf4f[_0x526476(0x179)]();});}async[_0x47e78f(0x21c)](_0x247af2){var _0x3e39dd=_0x47e78f;const _0x31503c=await this[_0x3e39dd(0x193)][_0x3e39dd(0x162)](_0x247af2),_0x24ce2e=this[_0x3e39dd(0x1f1)]['createInstance'](exports[_0x3e39dd(0x18c)],_0x247af2,_0x31503c);return _0x24ce2e[_0x3e39dd(0x196)](),this['_entities']['set'](_0x247af2,_0x24ce2e),_0x24ce2e;}},exports[_0x47e78f(0x19b)]=R([S(0x0,o[_0x47e78f(0x1a7)]),S(0x1,o['Inject'](o['Injector'])),S(0x2,o[_0x47e78f(0x213)](m[_0x47e78f(0x1e1)]))],exports[_0x47e78f(0x19b)]);var h=(_0x55bf22=>(_0x55bf22['OFFLINE']=_0x47e78f(0x212),_0x55bf22['IDLE']=_0x47e78f(0x1c8),_0x55bf22[_0x47e78f(0x1ca)]=_0x47e78f(0x199),_0x55bf22[_0x47e78f(0x219)]='not-following',_0x55bf22[_0x47e78f(0x1ab)]='presenting',_0x55bf22))(h||{});const Z=_0x47e78f(0x166),J=0xc8;exports[_0x47e78f(0x18c)]=class extends o['RxDisposable']{constructor(_0x60e2af,_0x1c62bc,_0x3b7405,_0x46e503,_0x51f582){var _0x444ffb=_0x47e78f;super(),v(this,_0x444ffb(0x21d),new D[(_0x444ffb(0x20e))](_0x444ffb(0x1c8))),v(this,_0x444ffb(0x153),this[_0x444ffb(0x21d)][_0x444ffb(0x1ef)]()),v(this,'_init',!0x1),v(this,_0x444ffb(0x1e0),null),v(this,_0x444ffb(0x1a3),null),(this[_0x444ffb(0x19c)]=_0x60e2af,this[_0x444ffb(0x14c)]=_0x1c62bc,this['_configService']=_0x3b7405,this['_liveShareService']=_0x46e503,this[_0x444ffb(0x174)]=_0x51f582);}get[_0x47e78f(0x21e)](){var _0x3b2ce0=_0x47e78f;return this[_0x3b2ce0(0x21d)][_0x3b2ce0(0x17b)]();}[_0x47e78f(0x179)](){var _0x1d7414=_0x47e78f,_0x12cc23;(_0x12cc23=this[_0x1d7414(0x1e0)])==null||_0x12cc23['dispose'](),this[_0x1d7414(0x21d)]['next'](_0x1d7414(0x1c8)),this[_0x1d7414(0x21d)][_0x1d7414(0x16d)]();}[_0x47e78f(0x196)](){var _0x57b893=_0x47e78f;this[_0x57b893(0x1eb)]||(this['_init']=!0x0,this['_collabSession']['sessionStatus$'][_0x57b893(0x175)](b[_0x57b893(0x169)](this[_0x57b893(0x148)]))[_0x57b893(0x142)](_0x4da5cd=>{var _0x55076f=_0x57b893;switch(_0x4da5cd){case m['SessionStatus'][_0x55076f(0x191)]:this['_handleOffline']();break;case m[_0x55076f(0x176)][_0x55076f(0x1b9)]:this[_0x55076f(0x1df)]();break;}}),this['_collabSession']['event$'][_0x57b893(0x175)](b['takeUntil'](this[_0x57b893(0x148)]))[_0x57b893(0x142)](_0x3f084f=>{var _0x7b183=_0x57b893;const {eventID:_0x430f58}=_0x3f084f;switch(_0x430f58){case _['CollaborationEvent'][_0x7b183(0x192)]:this[_0x7b183(0x163)](_0x3f084f);break;case _[_0x7b183(0x216)][_0x7b183(0x15d)]:this[_0x7b183(0x167)](_0x3f084f);break;case _[_0x7b183(0x216)][_0x7b183(0x1b6)]:this[_0x7b183(0x1fb)]();break;case _[_0x7b183(0x216)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x3f084f);break;}}));}[_0x47e78f(0x17c)](){var _0x23dd84=_0x47e78f;this[_0x23dd84(0x14c)][_0x23dd84(0x141)]({'eventID':_[_0x23dd84(0x216)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x23dd84(0x14c)][_0x23dd84(0x204)]()}},this[_0x23dd84(0x19c)]);}[_0x47e78f(0x206)](){var _0x1fc0b4=_0x47e78f;this[_0x1fc0b4(0x21e)]===_0x1fc0b4(0x140)&&(this[_0x1fc0b4(0x21d)]['next'](_0x1fc0b4(0x1c8)),this['_collabSession']['send']({'eventID':_['CollaborationEvent'][_0x1fc0b4(0x1b6)],'data':{'unitID':this[_0x1fc0b4(0x19c)]}},this[_0x1fc0b4(0x19c)]));}[_0x47e78f(0x16f)](){var _0x127b1c=_0x47e78f;this['_status']===_0x127b1c(0x1bd)&&(this['_status$'][_0x127b1c(0x1e6)](_0x127b1c(0x199)),this[_0x127b1c(0x172)]());}['stopFollowing'](){var _0x3904a8=_0x47e78f;this['_status']==='following'&&this[_0x3904a8(0x1ae)]();}[_0x47e78f(0x163)](_0x58c3f8){var _0x4ee3e7=_0x47e78f;const {presenter:_0x2bcb4d}=_0x58c3f8['data'],_0x4f83c3=this['_collabSession']['getMemberID']();this['_presenter']=_0x2bcb4d,_0x2bcb4d===_0x4f83c3?(this[_0x4ee3e7(0x1ae)](),this['_startPresenting']()):this[_0x4ee3e7(0x21e)]!==_0x4ee3e7(0x1bd)&&(this[_0x4ee3e7(0x21f)](),this[_0x4ee3e7(0x172)]());}[_0x47e78f(0x1f7)](){var _0x34aa1f=_0x47e78f;const _0xc3f15f={'eventID':_['CollaborationEvent'][_0x34aa1f(0x21a)]};this[_0x34aa1f(0x14c)][_0x34aa1f(0x141)](_0xc3f15f,this[_0x34aa1f(0x19c)]);}[_0x47e78f(0x1fb)](){var _0x3bf569=_0x47e78f;this['_presenter']=null,this[_0x3bf569(0x21e)]!==_0x3bf569(0x140)&&this[_0x3bf569(0x1c0)]();}[_0x47e78f(0x20f)](_0x44933d){var _0x2ba520=_0x47e78f;if(this['_status']===_0x2ba520(0x199)&&this[_0x2ba520(0x1a3)]===_0x44933d[_0x2ba520(0x160)][_0x2ba520(0x1ac)]){const _0xafc0c3=_['parseProtocolChangeset'](_0x44933d[_0x2ba520(0x160)])[_0x2ba520(0x17d)][_0x2ba520(0x1fd)]()[_0x2ba520(0x14e)](_0x12ae8e=>_0x12ae8e['id']===C['InsertSheetMutation']['id']);if(_0xafc0c3){const _0x3a2781=_0xafc0c3['params'][_0x2ba520(0x185)],_0x167f0d=_0xafc0c3[_0x2ba520(0x181)][_0x2ba520(0x187)]['id'];setTimeout(()=>{var _0x274071=_0x2ba520;this[_0x274071(0x174)][_0x274071(0x18b)](C[_0x274071(0x1f8)]['id'],{'unitId':_0x3a2781,'subUnitId':_0x167f0d},{'fromCollab':!0x0});});}}}[_0x47e78f(0x1ea)](){var _0x59537c=_0x47e78f;this[_0x59537c(0x21d)][_0x59537c(0x1e6)](_0x59537c(0x140));const _0x20c507=new Map(),_0x6ebd99=this[_0x59537c(0x1e0)]=new o['DisposableCollection']();_0x6ebd99[_0x59537c(0x208)](o[_0x59537c(0x1b8)](()=>{var _0x111707=_0x59537c;_0x20c507[_0x111707(0x1f5)](_0x1749aa=>_0x1749aa[_0x111707(0x16d)]()),_0x20c507[_0x111707(0x1c3)]();})),_0x6ebd99[_0x59537c(0x208)](this['_commandService']['onCommandExecuted'](_0x3f4220=>{var _0x54fb9b=_0x59537c,_0x308ece;if(_0x3f4220[_0x54fb9b(0x15c)]!==o['CommandType']['OPERATION']||!this['_liveShareService'][_0x54fb9b(0x218)](_0x3f4220['id']))return;const {id:_0x243141}=_0x3f4220;let _0x281690;_0x20c507[_0x54fb9b(0x1d3)](_0x243141)?_0x281690=_0x20c507[_0x54fb9b(0x1b7)](_0x243141):(_0x281690=new D['Subject'](),_0x20c507[_0x54fb9b(0x16a)](_0x243141,_0x281690),_0x281690[_0x54fb9b(0x175)](b[_0x54fb9b(0x194)]((_0x308ece=this['_configService'][_0x54fb9b(0x202)](Z))!=null?_0x308ece:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x7d8c33=>{var _0x2ef2bb=_0x54fb9b;this[_0x2ef2bb(0x14c)][_0x2ef2bb(0x141)]({'eventID':_[_0x2ef2bb(0x216)][_0x2ef2bb(0x15d)],'data':{'unitID':this[_0x2ef2bb(0x19c)],'operations':{[_0x7d8c33['id']]:{'id':_0x7d8c33['id'],'params':JSON[_0x2ef2bb(0x178)](_0x7d8c33[_0x2ef2bb(0x181)])}}}},this['_unitID']);})),_0x281690[_0x54fb9b(0x1e6)](_0x3f4220);})),this[_0x59537c(0x20b)][_0x59537c(0x159)](this[_0x59537c(0x19c)])[_0x59537c(0x1f5)](_0x5c8356=>this[_0x59537c(0x14c)][_0x59537c(0x141)]({'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x59537c(0x19c)],'operations':{[_0x5c8356['id']]:{'id':_0x5c8356['id'],'params':JSON['stringify'](_0x5c8356[_0x59537c(0x181)])}}}},this[_0x59537c(0x19c)]));}[_0x47e78f(0x21f)](){var _0x48b1fa=_0x47e78f,_0x4b3707;this['_status$'][_0x48b1fa(0x1e6)]('idle'),(_0x4b3707=this[_0x48b1fa(0x1e0)])==null||_0x4b3707[_0x48b1fa(0x179)](),this[_0x48b1fa(0x1e0)]=null;}[_0x47e78f(0x172)](){var _0xbdfaee=_0x47e78f,_0x3c0065;(_0x3c0065=this[_0xbdfaee(0x1e0)])==null||_0x3c0065[_0xbdfaee(0x179)](),this[_0xbdfaee(0x21d)][_0xbdfaee(0x1e6)](_0xbdfaee(0x199));}[_0x47e78f(0x1c0)](){var _0x4948ec=_0x47e78f,_0x258c0f;this[_0x4948ec(0x21d)]['next'](_0x4948ec(0x1c8)),(_0x258c0f=this[_0x4948ec(0x1e0)])==null||_0x258c0f['dispose'](),this[_0x4948ec(0x1e0)]=null;}[_0x47e78f(0x1ae)](){var _0x44bc4b=_0x47e78f,_0x1b9d3d;this[_0x44bc4b(0x21d)][_0x44bc4b(0x1e6)]('not-following'),(_0x1b9d3d=this[_0x44bc4b(0x1e0)])==null||_0x1b9d3d['dispose']();}[_0x47e78f(0x167)](_0x74d37f){var _0x7dd73b=_0x47e78f;if(['presenting',_0x7dd73b(0x1bd),'offline'][_0x7dd73b(0x139)](this['_status'])||!_0x74d37f['data'][_0x7dd73b(0x1af)]||_0x74d37f['data']['presenter']===this[_0x7dd73b(0x14c)][_0x7dd73b(0x204)]())return;this[_0x7dd73b(0x21e)]==='idle'&&this[_0x7dd73b(0x172)]();const _0x1728c7=_0x74d37f[_0x7dd73b(0x160)][_0x7dd73b(0x1b2)];Object[_0x7dd73b(0x19f)](_0x1728c7)[_0x7dd73b(0x1f5)](_0x3dbdf9=>{var _0x53e43a=_0x7dd73b;this['_commandService'][_0x53e43a(0x18b)](_0x3dbdf9['id'],_0x3dbdf9[_0x53e43a(0x181)]?JSON[_0x53e43a(0x1a8)](_0x3dbdf9[_0x53e43a(0x181)]):null,{'fromCollab':!0x0});});}[_0x47e78f(0x13c)](){var _0x573c90=_0x47e78f,_0x2867a5;this[_0x573c90(0x21d)][_0x573c90(0x1e6)](_0x573c90(0x212)),(_0x2867a5=this[_0x573c90(0x1e0)])==null||_0x2867a5[_0x573c90(0x179)]();}['_handleOnline'](){var _0x4bf148=_0x47e78f;this['_status$'][_0x4bf148(0x1e6)](_0x4bf148(0x1c8)),this[_0x4bf148(0x1f7)]();}},exports[_0x47e78f(0x18c)]=R([S(0x2,o['IConfigService']),S(0x3,o['Inject'](O)),S(0x4,o['ICommandService'])],exports[_0x47e78f(0x18c)]);function A(){var _0x71d3f6=_0x47e78f;const _0x3edb0e=p[_0x71d3f6(0x149)](exports[_0x71d3f6(0x19b)]),_0x5a5a91=p[_0x71d3f6(0x149)](o['IUniverInstanceService']),_0x22a020=p[_0x71d3f6(0x1f9)](()=>_0x5a5a91[_0x71d3f6(0x19e)](o[_0x71d3f6(0x1d1)][_0x71d3f6(0x189)]),void 0x0,!0x1,[]),[_0x25a928,_0x5b0bef]=f[_0x71d3f6(0x1fe)](null),[_0x267f38,_0x4f722a]=f['useState'](h[_0x71d3f6(0x150)]),_0x52bd05=f[_0x71d3f6(0x214)](null);return f[_0x71d3f6(0x1e9)](()=>(_0x22a020&&_0x3edb0e['getLiveShareCoordinator'](_0x22a020['getUnitId']())[_0x71d3f6(0x1be)](_0x49a80b=>{var _0x43a1c6=_0x71d3f6;_0x5b0bef(_0x49a80b),_0x52bd05[_0x43a1c6(0x146)]=_0x49a80b[_0x43a1c6(0x153)]['subscribe'](_0x37f3d3=>{_0x4f722a(_0x37f3d3);});}),()=>{var _0x3c32d6=_0x71d3f6,_0x27eabb;(_0x27eabb=_0x52bd05['current'])==null||_0x27eabb[_0x3c32d6(0x1bc)](),_0x52bd05[_0x3c32d6(0x146)]=null;}),[_0x22a020,_0x3edb0e]),_0x25a928?l[_0x71d3f6(0x1e3)](g[_0x71d3f6(0x1e8)],{'align':'end','disabled':_0x267f38===h[_0x71d3f6(0x191)],'className':_0x71d3f6(0x1cc),'overlay':l[_0x71d3f6(0x1e3)](K,{'status':_0x267f38,'coordinator':_0x25a928}),'children':l['jsx']('button',{'className':g['clsx'](_0x71d3f6(0x1c2),{'univer-cursor-not-allowed':_0x267f38===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x267f38!==h[_0x71d3f6(0x191)]}),'type':_0x71d3f6(0x1c9),'children':l[_0x71d3f6(0x1e3)](P,{'className':_0x71d3f6(0x1b3)})})}):null;}function _0x371c(){var _0x230106=['delete','init','DependentOn','symbol','following','apply','LiveShareController','_unitID','concat','getCurrentTypeOfUnit$','values','displayName','rxjs','univer-w-full\x20univer-mb-3\x20univer-text-sm','_presenter','@univerjs/core','text','mask','IUniverInstanceService','parse','LiveShareStatus','_configService','PRESENTING','memberID','Fragment','_stopFollowing','presenter','trim','idSuffix','operations','univer-size-4','2000091PXLqcq','url(#$1','LIVESHARE_TERMINATE','get','toDisposable','ONLINE','4340448XLZxsg','connectInjector','unsubscribe','not-following','then','getOwnPropertySymbols','_beIdle','_uiPartsService','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','clear','assign','@univerjs-pro/collaboration','UniverCollaborationClientPlugin','_mountLiveShare','idle','button','FOLLOWING','touchDependencies','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','attrs','_config','0\x200\x2017\x2017','5bGEZrL','UniverInstanceType','defs','has','@univerjs/design','You\x27are\x20offline.','currentColor','1447288ncPDeH','toStringTag','2598172HXiQbL','fill','registerComponent','_sharedOperations','registerSharedOperation','length','_handleOnline','_commandDisposable','CollaborationSessionService','getOwnPropertyDescriptor','jsx','jsxs','LiveShareService','next','call','Dropdown','useEffect','_startPresenting','_init','propertyIsEnumerable','defineProperty','@univerjs/ui','asObservable','_reporters','_injector','@univerjs/sheets-ui','live-share.config','children','forEach','univerjs-icon\x20univerjs-icon-','_fetchOperations','SetWorksheetActiveOperation','useObservable','IUIPartsService','_handleTerminate','disposeWithMe','reverse','useState','Stop\x20presenting','map','DesktopLiveShareController','getConfig','className','getMemberID','1em','stopPresenting','Disposable','add','stopFollowing','Button','_liveShareService','UNIVER_UNKNOWN','mergeOverrideWithDependencies','BehaviorSubject','_handleNewChangeSets','substring','colorChannel1','offline','Inject','useRef','entries','CollaborationEvent','SetScrollOperation','shouldShareOperation','NOT_FOLLOWING','LIVESHARE_FETCH_OPERATIONS','UNIVER_LIVE_SHARE_PLUGIN','_startLiveShareCoordinator','_status$','_status','_stopPresenting','onRendered','includes','setConfig','BuiltInUIPart','_handleOffline','react','getTypeOfUnitDisposed$','path','presenting','send','subscribe','tag','xlink:href','@univerjs-pro/collaboration-client','current','string','dispose$','useDependency','defIds','merge','_collabSession','7DmrBRq','find','prototype','IDLE','forwardRef','registerInitialStateReporter','status$','_univerInstanceService','extend','Start\x20following','LiveShare','from','getInitialStates','You\x27re\x20presenting\x20the\x20document','replace','type','LIVESHARE_OPERATION','1290guYcLo','div','data','icon','requireSession','_handleNewHost','Stop\x20following','getUnitId','SAME_OPERATION_SHARE_INTERVAL','_handleOperation','hasOwnProperty','takeUntil','set','IConfigService','UniverLiveSharePlugin','complete','createElement','startFollowing','http://www.w3.org/2000/svg','HEADER_MENU','_startFollowing','Start','_commandService','pipe','SessionStatus','Present\x20this\x20document','stringify','dispose','react/jsx-runtime','getValue','tryStartPresenting','mutations','6191224eiziCw','rxjs/operators','Injector','params','getLiveShareCoordinator','UniverIcon','109161JWaEep','unitId','91823IRHlgP','sheet','evenodd','UNIVER_SHEET','onStarting','executeCommand','LiveShareCoordinator','_entities','You\x27re\x20following\x20the\x20presenter','Module','SetZoomRatioOperation','OFFLINE','LIVESHARE_NEW_HOST','_collabSessionService','throttleTime'];_0x371c=function(){return _0x230106;};return _0x371c();}function K(_0x5eb0f5){var _0x3c5408=_0x47e78f;const {status:_0x24e456,coordinator:_0x45fc6c}=_0x5eb0f5;switch(_0x24e456){case h[_0x3c5408(0x150)]:return l['jsx'](z,{'coordinator':_0x45fc6c});case h['FOLLOWING']:return l[_0x3c5408(0x1e3)](Q,{'coordinator':_0x45fc6c});case h[_0x3c5408(0x219)]:return l['jsx'](X,{'coordinator':_0x45fc6c});case h[_0x3c5408(0x191)]:return l[_0x3c5408(0x1e3)](te,{});case h['PRESENTING']:return l[_0x3c5408(0x1e3)](ee,{'coordinator':_0x45fc6c});default:return null;}}function z(_0x11fc6d){var _0x275bb0=_0x47e78f;const {coordinator:_0x328d6c}=_0x11fc6d;return l['jsxs'](l[_0x275bb0(0x1ad)],{'children':[l[_0x275bb0(0x1e3)](_0x275bb0(0x15f),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x275bb0(0x177)}),l[_0x275bb0(0x1e3)](g[_0x275bb0(0x20a)],{'onClick':()=>_0x328d6c[_0x275bb0(0x17c)](),'children':_0x275bb0(0x173)})]});}function Q(_0x402c7a){var _0xaa3037=_0x47e78f;const {coordinator:_0x67d749}=_0x402c7a;return l[_0xaa3037(0x1e4)](l[_0xaa3037(0x1ad)],{'children':[l[_0xaa3037(0x1e3)](_0xaa3037(0x15f),{'className':_0xaa3037(0x1a2),'children':_0xaa3037(0x18e)}),l[_0xaa3037(0x1e3)](g[_0xaa3037(0x20a)],{'onClick':()=>_0x67d749[_0xaa3037(0x209)](),'children':_0xaa3037(0x164)})]});}function X(_0x22fff6){var _0x3078de=_0x47e78f;const {coordinator:_0x47ef37}=_0x22fff6;return l[_0x3078de(0x1e4)](l[_0x3078de(0x1ad)],{'children':[l['jsx'](_0x3078de(0x15f),{'className':_0x3078de(0x1a2),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x3078de(0x1e3)](g['Button'],{'variant':_0x3078de(0x1a5),'onClick':()=>_0x47ef37[_0x3078de(0x16f)](),'children':_0x3078de(0x156)})]});}function ee(_0x3da6c1){var _0x10895f=_0x47e78f;const {coordinator:_0x2bd2ca}=_0x3da6c1;return l[_0x10895f(0x1e4)](l['Fragment'],{'children':[l[_0x10895f(0x1e3)](_0x10895f(0x15f),{'className':_0x10895f(0x1a2),'children':_0x10895f(0x15a)}),l['jsx'](g['Button'],{'variant':'default','onClick':()=>_0x2bd2ca[_0x10895f(0x206)](),'children':_0x10895f(0x1ff)})]});}function te(){var _0x136afc=_0x47e78f;return l[_0x136afc(0x1e3)](l['Fragment'],{'children':_0x136afc(0x1d5)});}var ie=Object[_0x47e78f(0x1e2)],ne=(_0x130cea,_0x1a65f1,_0x462479,_0x2dc0d4)=>{for(var _0x40e1cb=_0x2dc0d4>0x1?void 0x0:_0x2dc0d4?ie(_0x1a65f1,_0x462479):_0x1a65f1,_0x970da8=_0x130cea['length']-0x1,_0x207dee;_0x970da8>=0x0;_0x970da8--)(_0x207dee=_0x130cea[_0x970da8])&&(_0x40e1cb=_0x207dee(_0x40e1cb)||_0x40e1cb);return _0x40e1cb;},L=(_0x3141d1,_0x377f27)=>(_0x1c0627,_0x5725b8)=>_0x377f27(_0x1c0627,_0x5725b8,_0x3141d1);exports[_0x47e78f(0x201)]=class extends o[_0x47e78f(0x207)]{constructor(_0x2f2e0d,_0x4ff8c3){var _0x13cc14=_0x47e78f;super(),this[_0x13cc14(0x1f1)]=_0x2f2e0d,this[_0x13cc14(0x1c1)]=_0x4ff8c3,this[_0x13cc14(0x1c7)]();}[_0x47e78f(0x1c7)](){var _0x4747ef=_0x47e78f;this[_0x4747ef(0x1fc)](this[_0x4747ef(0x1c1)][_0x4747ef(0x1db)](p[_0x4747ef(0x13b)][_0x4747ef(0x171)],()=>p[_0x4747ef(0x1bb)](A,this[_0x4747ef(0x1f1)])));}},exports[_0x47e78f(0x201)]=ne([L(0x0,o[_0x47e78f(0x213)](o[_0x47e78f(0x180)])),L(0x1,p[_0x47e78f(0x1fa)])],exports[_0x47e78f(0x201)]);var re=Object[_0x47e78f(0x1ed)],se=Object[_0x47e78f(0x1e2)],oe=(_0x5da30f,_0x1b71a2,_0x23b377)=>_0x1b71a2 in _0x5da30f?re(_0x5da30f,_0x1b71a2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23b377}):_0x5da30f[_0x1b71a2]=_0x23b377,ae=(_0x542533,_0x2f203e,_0x1f7fca,_0x2d2618)=>{for(var _0x5e3000=_0x2d2618>0x1?void 0x0:_0x2d2618?se(_0x2f203e,_0x1f7fca):_0x2f203e,_0x55f89e=_0x542533['length']-0x1,_0x123f0d;_0x55f89e>=0x0;_0x55f89e--)(_0x123f0d=_0x542533[_0x55f89e])&&(_0x5e3000=_0x123f0d(_0x5e3000)||_0x5e3000);return _0x5e3000;},N=(_0x3e7a79,_0x124b3b)=>(_0x2913d2,_0x3e33d3)=>_0x124b3b(_0x2913d2,_0x3e33d3,_0x3e7a79),T=(_0x12cc29,_0x4a877f,_0x68caa4)=>oe(_0x12cc29,typeof _0x4a877f!='symbol'?_0x4a877f+'':_0x4a877f,_0x68caa4);const le=_0x47e78f(0x21b);exports[_0x47e78f(0x16c)]=class extends o['Plugin']{constructor(_0x283bb0=x,_0x13a465,_0x2e6efc){var _0x50436e=_0x47e78f;super(),this[_0x50436e(0x1ce)]=_0x283bb0,this['_injector']=_0x13a465,this[_0x50436e(0x1aa)]=_0x2e6efc;const {..._0x398007}=o[_0x50436e(0x14b)]({},x,this[_0x50436e(0x1ce)]);this[_0x50436e(0x1aa)][_0x50436e(0x13a)]($,_0x398007);}[_0x47e78f(0x18a)](){var _0x486d73=_0x47e78f;o['registerDependencies'](this[_0x486d73(0x1f1)],o[_0x486d73(0x20d)]([[O],[exports[_0x486d73(0x19b)]],[E],[exports['DesktopLiveShareController']]],this[_0x486d73(0x1ce)]['override'])),o[_0x486d73(0x1cb)](this['_injector'],[[E]]);}[_0x47e78f(0x138)](){var _0x509053=_0x47e78f;o[_0x509053(0x1cb)](this['_injector'],[[exports['DesktopLiveShareController']]]);}},T(exports['UniverLiveSharePlugin'],_0x47e78f(0x15c),o['UniverInstanceType'][_0x47e78f(0x20c)]),T(exports['UniverLiveSharePlugin'],'pluginName',le),exports[_0x47e78f(0x16c)]=ae([o[_0x47e78f(0x197)](m[_0x47e78f(0x1c6)]),N(0x1,o[_0x47e78f(0x213)](o[_0x47e78f(0x180)])),N(0x2,o[_0x47e78f(0x16b)])],exports['UniverLiveSharePlugin']),exports[_0x47e78f(0x157)]=A,exports[_0x47e78f(0x1e5)]=O,exports[_0x47e78f(0x1a9)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x485ed8=_0x1708;(function(_0x5ba6a9,_0x25381d){var _0x296881=_0x1708,_0x3400b6=_0x5ba6a9();while(!![]){try{var _0xc48b78=-parseInt(_0x296881(0xde))/0x1+-parseInt(_0x296881(0xeb))/0x2*(-parseInt(_0x296881(0xcc))/0x3)+-parseInt(_0x296881(0xe4))/0x4*(-parseInt(_0x296881(0x106))/0x5)+-parseInt(_0x296881(0x11a))/0x6*(-parseInt(_0x296881(0xdb))/0x7)+-parseInt(_0x296881(0xc7))/0x8*(parseInt(_0x296881(0xff))/0x9)+-parseInt(_0x296881(0xf1))/0xa*(-parseInt(_0x296881(0x120))/0xb)+-parseInt(_0x296881(0xf0))/0xc*(parseInt(_0x296881(0x131))/0xd);if(_0xc48b78===_0x25381d)break;else _0x3400b6['push'](_0x3400b6['shift']());}catch(_0x266e6a){_0x3400b6['push'](_0x3400b6['shift']());}}}(_0x2f03,0x2bdae));var q=Object[_0x485ed8(0xec)],z=(_0x2c09ba,_0x3a5533,_0x38b92e)=>_0x3a5533 in _0x2c09ba?q(_0x2c09ba,_0x3a5533,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38b92e}):_0x2c09ba[_0x3a5533]=_0x38b92e,d=(_0x8b2b10,_0x5960c5,_0x3c902c)=>z(_0x8b2b10,typeof _0x5960c5!=_0x485ed8(0x151)?_0x5960c5+'':_0x5960c5,_0x3c902c);import{CollaborationSessionService as _0x79d5cc,SessionStatus as _0x4d0179,UniverCollaborationClientPlugin as _0x13f08e}from'@univerjs-pro/collaboration-client';import{Disposable as _0x3c0c36,toDisposable as _0x3eb609,Inject as _0x56ae44,IUniverInstanceService as _0x2faaa5,Injector as _0x11b368,IConfigService as _0x2473bb,ICommandService as _0x20dcab,RxDisposable as _0x1bc773,UniverInstanceType as _0x5706ae,DisposableCollection as _0x28b2d6,CommandType as _0x4419b1,DependentOn as _0xaa01dd,Plugin as _0x11a0e9,merge as _0x4e2ab8,registerDependencies as _0xe717aa,mergeOverrideWithDependencies as _0x1a80dc,touchDependencies as _0x5cd586}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x228792,InsertSheetMutation as _0x295080}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x3786fd,SetScrollOperation as _0x480ee3}from'@univerjs/sheets-ui';import{useDependency as _0x503ec0,useObservable as _0x3d7e06,IUIPartsService as _0x5f5b99,BuiltInUIPart as _0x542535,connectInjector as _0x1d00fc}from'@univerjs/ui';import{jsx as _0x458b0b,jsxs as _0x257512,Fragment as _0x2d7bfa}from'react/jsx-runtime';function _0x1708(_0x1332b7,_0x25df24){var _0x2f0372=_0x2f03();return _0x1708=function(_0x170897,_0x49aa22){_0x170897=_0x170897-0xba;var _0x2da45a=_0x2f0372[_0x170897];return _0x2da45a;},_0x1708(_0x1332b7,_0x25df24);}import{Dropdown as _0x6c2787,clsx as _0x3c8900,Button as _0x721d66}from'@univerjs/design';import{forwardRef as _0x128413,useRef as _0x50377a,createElement as _0x252481,useState as _0x236131,useEffect as _0x45d8fa}from'react';import{CollaborationEvent as _0x48bc07,parseProtocolChangeset as _0x105b53}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x4e6368,Subject as _0x4fa684}from'rxjs';import{takeUntil as _0x510391,throttleTime as _0x3ce606}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x3c0c36{constructor(){var _0x2abe05=_0x485ed8;super(...arguments),d(this,_0x2abe05(0xe3),new Set()),d(this,_0x2abe05(0xd8),new Set());}[_0x485ed8(0x15e)](_0xfc28ce){var _0x1af626=_0x485ed8;return this[_0x1af626(0xe3)][_0x1af626(0xe1)](_0xfc28ce),_0x3eb609(()=>this[_0x1af626(0xe3)]['delete'](_0xfc28ce));}['registerInitialStateReporter'](_0x43c41e){var _0x24c908=_0x485ed8;return this['_reporters'][_0x24c908(0xe1)](_0x43c41e),_0x3eb609(()=>this[_0x24c908(0xd8)][_0x24c908(0x139)](_0x43c41e));}[_0x485ed8(0x15b)](_0x344a7e){var _0x2ed306=_0x485ed8;return this[_0x2ed306(0xe3)][_0x2ed306(0x15a)](_0x344a7e);}[_0x485ed8(0x14c)](_0x40c54d){var _0x365a1d=_0x485ed8;return Array[_0x365a1d(0x116)](this[_0x365a1d(0xd8)])[_0x365a1d(0xc1)](_0x28c287=>_0x28c287(_0x40c54d));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x597d5c,_0x4e8890,_0x508372,_0x94256a)=>{var _0x1702e1=_0x485ed8;for(var _0x14926c=_0x94256a>0x1?void 0x0:_0x94256a?Ee(_0x4e8890,_0x508372):_0x4e8890,_0x68623=_0x597d5c[_0x1702e1(0xc9)]-0x1,_0x5a087e;_0x68623>=0x0;_0x68623--)(_0x5a087e=_0x597d5c[_0x68623])&&(_0x14926c=_0x5a087e(_0x14926c)||_0x14926c);return _0x14926c;},Ne=(_0x5d17dc,_0x57d2f2)=>(_0x329cf2,_0x395fc1)=>_0x57d2f2(_0x329cf2,_0x395fc1,_0x5d17dc);let m=class extends _0x3c0c36{constructor(_0x139647){var _0x2af62d=_0x485ed8;super(),this[_0x2af62d(0x16e)]=_0x139647,this[_0x2af62d(0xd6)]();}[_0x485ed8(0xd6)](){var _0xc9aefb=_0x485ed8;[_0x3786fd['id'],_0x480ee3['id'],_0x228792['id']][_0xc9aefb(0xea)](_0x3b0ba1=>{var _0x29bee9=_0xc9aefb;this[_0x29bee9(0x148)](this['_liveShareService'][_0x29bee9(0x15e)](_0x3b0ba1));});}};m=we([Ne(0x0,_0x56ae44(L))],m);var c=function(){var _0x42a8d8=_0x485ed8;return c=Object[_0x42a8d8(0xe7)]||function(_0x48592e){var _0x419122=_0x42a8d8;for(var _0x23e300,_0x1b4afd=0x1,_0x2a94ff=arguments['length'];_0x1b4afd<_0x2a94ff;_0x1b4afd++){_0x23e300=arguments[_0x1b4afd];for(var _0x3088d5 in _0x23e300)Object[_0x419122(0xbc)][_0x419122(0x138)]['call'](_0x23e300,_0x3088d5)&&(_0x48592e[_0x3088d5]=_0x23e300[_0x3088d5]);}return _0x48592e;},c['apply'](this,arguments);},Ce=function(_0x850a21,_0x3ac348){var _0x5e4134=_0x485ed8,_0x5a08b7={};for(var _0x4c13d7 in _0x850a21)Object[_0x5e4134(0xbc)][_0x5e4134(0x138)][_0x5e4134(0x13e)](_0x850a21,_0x4c13d7)&&_0x3ac348[_0x5e4134(0xcf)](_0x4c13d7)<0x0&&(_0x5a08b7[_0x4c13d7]=_0x850a21[_0x4c13d7]);if(_0x850a21!=null&&typeof Object[_0x5e4134(0xce)]==_0x5e4134(0x16a)){for(var _0x2d2084=0x0,_0x4c13d7=Object[_0x5e4134(0xce)](_0x850a21);_0x2d2084<_0x4c13d7[_0x5e4134(0xc9)];_0x2d2084++)_0x3ac348[_0x5e4134(0xcf)](_0x4c13d7[_0x2d2084])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x850a21,_0x4c13d7[_0x2d2084])&&(_0x5a08b7[_0x4c13d7[_0x2d2084]]=_0x850a21[_0x4c13d7[_0x2d2084]]);}return _0x5a08b7;},W=_0x128413(function(_0x39cbca,_0xc46fa9){var _0x124f30=_0x485ed8,_0x1bd18d=_0x39cbca[_0x124f30(0x13b)],_0x3e06a0=_0x39cbca['id'],_0x544ae7=_0x39cbca['className'],_0x4e14b1=_0x39cbca['extend'],_0x2ff5b2=Ce(_0x39cbca,[_0x124f30(0x13b),'id',_0x124f30(0x14e),_0x124f30(0x112)]),_0x39b26f='univerjs-icon\x20univerjs-icon-'[_0x124f30(0xc3)](_0x3e06a0,'\x20')['concat'](_0x544ae7||'')[_0x124f30(0x162)](),_0x2ea1e7=_0x50377a('_'[_0x124f30(0xc3)](Le()));return Y(_0x1bd18d,''['concat'](_0x3e06a0),{'defIds':_0x1bd18d[_0x124f30(0x133)],'idSuffix':_0x2ea1e7['current']},c({'ref':_0xc46fa9,'className':_0x39b26f},_0x2ff5b2),_0x4e14b1);});function Y(_0x8b3b6,_0x10c536,_0x21e41d,_0x43e23e,_0xb48ee3){var _0xd53fc9=_0x485ed8;return _0x252481(_0x8b3b6[_0xd53fc9(0x169)],c(c({'key':_0x10c536},De(_0x8b3b6,_0x21e41d,_0xb48ee3)),_0x43e23e),(xe(_0x8b3b6,_0x21e41d)['children']||[])[_0xd53fc9(0xc1)](function(_0x4f1e54,_0x338b41){var _0x318be2=_0xd53fc9;return Y(_0x4f1e54,''[_0x318be2(0xc3)](_0x10c536,'-')[_0x318be2(0xc3)](_0x8b3b6['tag'],'-')['concat'](_0x338b41),_0x21e41d,void 0x0,_0xb48ee3);}));}function De(_0x460c2d,_0x410c3f,_0x4d6f13){var _0x3da38d=_0x485ed8,_0xf10abe=c({},_0x460c2d[_0x3da38d(0x14f)]);_0x4d6f13!=null&&_0x4d6f13['colorChannel1']&&_0xf10abe[_0x3da38d(0x165)]==='colorChannel1'&&(_0xf10abe[_0x3da38d(0x165)]=_0x4d6f13['colorChannel1']),_0x460c2d[_0x3da38d(0x169)]===_0x3da38d(0x10f)&&_0xf10abe['id']&&(_0xf10abe['id']=_0xf10abe['id']+_0x410c3f[_0x3da38d(0xe2)]),Object[_0x3da38d(0x126)](_0xf10abe)[_0x3da38d(0xea)](function(_0x963869){var _0x4cd2b1=_0x3da38d,_0x20bf04=_0x963869[0x0],_0x18ec6f=_0x963869[0x1];_0x20bf04===_0x4cd2b1(0x10f)&&typeof _0x18ec6f==_0x4cd2b1(0x10b)&&(_0xf10abe[_0x20bf04]=_0x18ec6f[_0x4cd2b1(0xfb)](/url\(#(.*)\)/,_0x4cd2b1(0x14a)['concat'](_0x410c3f[_0x4cd2b1(0xe2)],')')));});var _0x540ae2=_0x410c3f[_0x3da38d(0x133)];return!_0x540ae2||_0x540ae2[_0x3da38d(0xc9)]===0x0||(_0x460c2d['tag']===_0x3da38d(0x109)&&_0xf10abe[_0x3da38d(0x105)]&&(_0xf10abe['xlink:href']=_0xf10abe[_0x3da38d(0x105)]+_0x410c3f[_0x3da38d(0xe2)]),Object['entries'](_0xf10abe)['forEach'](function(_0x46be5c){var _0x447f25=_0x3da38d,_0x5a43a5=_0x46be5c[0x0],_0x5ad1c9=_0x46be5c[0x1];typeof _0x5ad1c9==_0x447f25(0x10b)&&(_0xf10abe[_0x5a43a5]=_0x5ad1c9[_0x447f25(0xfb)](/url\(#(.*)\)/,_0x447f25(0x14a)[_0x447f25(0xc3)](_0x410c3f[_0x447f25(0xe2)],')')));})),_0xf10abe;}function _0x2f03(){var _0x32c883=['221855rIMmwN','requireSession','end','use','executeCommand','string','getLiveShareCoordinator','memberID','NOT_FOLLOWING','mask','LIVESHARE_FETCH_OPERATIONS','getMemberID','extend','OPERATION','http://www.w3.org/2000/svg','OFFLINE','from','_uiPartsService','following','LIVESHARE_TERMINATE','22224WPTDOM','toString','parse','_handleNewHost','type','univer-w-full\x20univer-mb-3\x20univer-text-sm','2420319TzapdQ','Stop\x20presenting','LIVESHARE_OPERATION','_status','default','_stopPresenting','entries','getConfig','_commandDisposable','registerComponent','_unitID','children','operations','_commandService','startFollowing','unsubscribe','not-following','793fNHbPj','dispose','defIds','_handleOnline','_config','Stop\x20following','_mountLiveShare','hasOwnProperty','delete','pipe','icon','_stopFollowing','_collabSessionService','call','reverse','You\x27re\x20not\x20following\x20the\x20presenter','evenodd','getTypeOfUnitDisposed$','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','_injector','_handleTerminate','UNIVER_UNKNOWN','includes','disposeWithMe','setConfig','url(#$1','presenting','getInitialStates','_startFollowing','className','attrs','random','symbol','div','SAME_OPERATION_SHARE_INTERVAL','next','PRESENTING','svg','Present\x20this\x20document','stopPresenting','UniverIcon','has','shouldShareOperation','_configService','subscribe','registerSharedOperation','getUnitId','path','status$','trim','stopFollowing','_univerInstanceService','fill','getTypeOfUnitAdded$','substring','You\x27re\x20following\x20the\x20presenter','tag','function','params','Start','ONLINE','_liveShareService','onRendered','getValue','prototype','set','LIVESHARE_NEW_HOST','clear','unitId','map','_collabSession','concat','offline','_status$','Start\x20following','1016tshvKX','FOLLOWING','length','_fetchOperations','displayName','3kMkLte','send','getOwnPropertySymbols','indexOf','current','0\x200\x2017\x2017','1em','then','pluginName','_startLiveShareCoordinator','_init','_startPresenting','_reporters','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','NEW_CHANGESETS','574ueJiZD','onStarting','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','68700wMEYzq','button','sessionStatus$','add','idSuffix','_sharedOperations','16eSLuhP','stringify','presenter','assign','tryStartPresenting','data','forEach','391642ZanzpZ','defineProperty','idle','asObservable','dispose$','61188gieuxp','10LAJpQh','getCurrentTypeOfUnit$','currentColor','live-share-icon','_handleOperation','_beIdle','_presenter','UNIVER_LIVE_SHARE_PLUGIN','UNIVER_SHEET','_handleOffline','replace','IDLE','_entities','LIVESHARE_REQUEST_HOST','23931lpvCKv','get','init','complete','getOwnPropertyDescriptor','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','xlink:href'];_0x2f03=function(){return _0x32c883;};return _0x2f03();}function xe(_0x31facb,_0x51b636){var _0x370531=_0x485ed8,_0x350d8b,_0x4b53dd=_0x51b636[_0x370531(0x133)];return!_0x4b53dd||_0x4b53dd[_0x370531(0xc9)]===0x0?_0x31facb:_0x31facb['tag']==='defs'&&(!((_0x350d8b=_0x31facb['children'])===null||_0x350d8b===void 0x0)&&_0x350d8b['length'])?c(c({},_0x31facb),{'children':_0x31facb[_0x370531(0x12b)][_0x370531(0xc1)](function(_0x28a0a5){var _0x31c0ec=_0x370531;return typeof _0x28a0a5[_0x31c0ec(0x14f)]['id']=='string'&&_0x4b53dd&&_0x4b53dd[_0x31c0ec(0x147)](_0x28a0a5[_0x31c0ec(0x14f)]['id'])?c(c({},_0x28a0a5),{'attrs':c(c({},_0x28a0a5['attrs']),{'id':_0x28a0a5[_0x31c0ec(0x14f)]['id']+_0x51b636[_0x31c0ec(0xe2)]})}):_0x28a0a5;})}):_0x31facb;}function Le(){var _0x22671d=_0x485ed8;return Math[_0x22671d(0x150)]()[_0x22671d(0x11b)](0x24)[_0x22671d(0x167)](0x2,0x8);}W[_0x485ed8(0xcb)]=_0x485ed8(0x159);var ye={'tag':_0x485ed8(0x156),'attrs':{'xmlns':_0x485ed8(0x114),'fill':'none','viewBox':_0x485ed8(0xd1),'width':_0x485ed8(0xd2),'height':_0x485ed8(0xd2)},'children':[{'tag':_0x485ed8(0x160),'attrs':{'fill':'currentColor','d':_0x485ed8(0x104)}},{'tag':'path','attrs':{'fill':_0x485ed8(0xf3),'d':_0x485ed8(0xd9),'fillRule':_0x485ed8(0x141),'clipRule':_0x485ed8(0x141)}}]},B=_0x128413(function(_0x19d760,_0x5bf795){var _0x5da537=_0x485ed8;return _0x252481(W,Object[_0x5da537(0xe7)]({},_0x19d760,{'id':_0x5da537(0xf4),'ref':_0x5bf795,'icon':ye}));});B[_0x485ed8(0xcb)]='LiveShareIcon';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x4962a5,_0x5eb086,_0x48eacd,_0x3c886f)=>{var _0x4c2504=_0x485ed8;for(var _0x227def=_0x3c886f>0x1?void 0x0:_0x3c886f?Re(_0x5eb086,_0x48eacd):_0x5eb086,_0x36e320=_0x4962a5[_0x4c2504(0xc9)]-0x1,_0x4ccb80;_0x36e320>=0x0;_0x36e320--)(_0x4ccb80=_0x4962a5[_0x36e320])&&(_0x227def=_0x4ccb80(_0x227def)||_0x227def);return _0x227def;},f=(_0x1c8978,_0x1235d3)=>(_0x4ec311,_0x17758e)=>_0x1235d3(_0x4ec311,_0x17758e,_0x1c8978);let I=class extends _0x1bc773{constructor(_0x25a301,_0x45ee7d,_0x3a6a26){var _0x51155c=_0x485ed8;super(),d(this,_0x51155c(0xfd),new Map()),(this[_0x51155c(0x164)]=_0x25a301,this[_0x51155c(0x144)]=_0x45ee7d,this['_collabSessionService']=_0x3a6a26,this[_0x51155c(0xd6)]());}async[_0x485ed8(0x10c)](_0x3fdcdd){var _0x10bed2=_0x485ed8;return this['_entities'][_0x10bed2(0x15a)](_0x3fdcdd)||await this[_0x10bed2(0xd5)](_0x3fdcdd),this['_entities'][_0x10bed2(0x100)](_0x3fdcdd);}[_0x485ed8(0xd6)](){var _0x1eaf9d=_0x485ed8;this[_0x1eaf9d(0x164)][_0x1eaf9d(0x166)](_0x5706ae[_0x1eaf9d(0xf9)])[_0x1eaf9d(0x13a)](_0x510391(this['dispose$']))[_0x1eaf9d(0x15d)](async _0x42d019=>{var _0x543218=_0x1eaf9d;const _0x8cb3a4=_0x42d019[_0x543218(0x15f)]();this[_0x543218(0xfd)][_0x543218(0x15a)](_0x8cb3a4)||this[_0x543218(0xd5)](_0x8cb3a4);}),this['_univerInstanceService'][_0x1eaf9d(0x142)](_0x5706ae['UNIVER_SHEET'])['pipe'](_0x510391(this['dispose$']))[_0x1eaf9d(0x15d)](_0x12ce53=>{var _0x1b0b40=_0x1eaf9d;const _0x3b0210=_0x12ce53[_0x1b0b40(0x15f)](),_0xf27835=this[_0x1b0b40(0xfd)][_0x1b0b40(0x100)](_0x3b0210);_0xf27835==null||_0xf27835[_0x1b0b40(0x132)]();});}async[_0x485ed8(0xd5)](_0x457c25){var _0x55188f=_0x485ed8;const _0x712e30=await this[_0x55188f(0x13d)][_0x55188f(0x107)](_0x457c25),_0x17bb53=this['_injector']['createInstance'](C,_0x457c25,_0x712e30);return _0x17bb53[_0x55188f(0x101)](),this[_0x55188f(0xfd)][_0x55188f(0xbd)](_0x457c25,_0x17bb53),_0x17bb53;}};I=Z([f(0x0,_0x2faaa5),f(0x1,_0x56ae44(_0x11b368)),f(0x2,_0x56ae44(_0x79d5cc))],I);var h=(_0x409170=>(_0x409170[_0x485ed8(0x115)]=_0x485ed8(0xc4),_0x409170[_0x485ed8(0xfc)]=_0x485ed8(0xed),_0x409170['FOLLOWING']=_0x485ed8(0x118),_0x409170['NOT_FOLLOWING']=_0x485ed8(0x130),_0x409170[_0x485ed8(0x155)]='presenting',_0x409170))(h||{});const Pe=_0x485ed8(0x153),Ae=0xc8;let C=class extends _0x1bc773{constructor(_0x4d27f9,_0x5030af,_0x48f3b7,_0x47e387,_0x4dab2d){var _0x478eb5=_0x485ed8;super(),d(this,_0x478eb5(0xc5),new _0x4e6368(_0x478eb5(0xed))),d(this,_0x478eb5(0x161),this[_0x478eb5(0xc5)][_0x478eb5(0xee)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,'_presenter',null),(this[_0x478eb5(0x12a)]=_0x4d27f9,this[_0x478eb5(0xc2)]=_0x5030af,this[_0x478eb5(0x15c)]=_0x48f3b7,this[_0x478eb5(0x16e)]=_0x47e387,this[_0x478eb5(0x12d)]=_0x4dab2d);}get['_status'](){var _0x67c0f5=_0x485ed8;return this[_0x67c0f5(0xc5)][_0x67c0f5(0xbb)]();}['dispose'](){var _0x201484=_0x485ed8,_0x4e0650;(_0x4e0650=this[_0x201484(0x128)])==null||_0x4e0650['dispose'](),this[_0x201484(0xc5)][_0x201484(0x154)](_0x201484(0xed)),this['_status$'][_0x201484(0x102)]();}['init'](){var _0x2cb95e=_0x485ed8;this[_0x2cb95e(0xd6)]||(this[_0x2cb95e(0xd6)]=!0x0,this[_0x2cb95e(0xc2)][_0x2cb95e(0xe0)]['pipe'](_0x510391(this['dispose$']))[_0x2cb95e(0x15d)](_0x90dcf5=>{var _0x20d835=_0x2cb95e;switch(_0x90dcf5){case _0x4d0179[_0x20d835(0x115)]:this[_0x20d835(0xfa)]();break;case _0x4d0179[_0x20d835(0x16d)]:this[_0x20d835(0x134)]();break;}}),this['_collabSession']['event$'][_0x2cb95e(0x13a)](_0x510391(this[_0x2cb95e(0xef)]))[_0x2cb95e(0x15d)](_0x411b0a=>{var _0x30f24f=_0x2cb95e;const {eventID:_0x43bb27}=_0x411b0a;switch(_0x43bb27){case _0x48bc07[_0x30f24f(0xbe)]:this[_0x30f24f(0x11d)](_0x411b0a);break;case _0x48bc07[_0x30f24f(0x122)]:this['_handleOperation'](_0x411b0a);break;case _0x48bc07['LIVESHARE_TERMINATE']:this[_0x30f24f(0x145)]();break;case _0x48bc07[_0x30f24f(0xda)]:this['_handleNewChangeSets'](_0x411b0a);break;}}));}[_0x485ed8(0xe8)](){var _0x25bd15=_0x485ed8;this[_0x25bd15(0xc2)]['send']({'eventID':_0x48bc07[_0x25bd15(0xfe)],'data':{'unitID':this[_0x25bd15(0x12a)],'userID':this[_0x25bd15(0xc2)][_0x25bd15(0x111)]()}},this['_unitID']);}[_0x485ed8(0x158)](){var _0x286f80=_0x485ed8;this['_status']===_0x286f80(0x14b)&&(this[_0x286f80(0xc5)][_0x286f80(0x154)](_0x286f80(0xed)),this[_0x286f80(0xc2)][_0x286f80(0xcd)]({'eventID':_0x48bc07[_0x286f80(0x119)],'data':{'unitID':this[_0x286f80(0x12a)]}},this[_0x286f80(0x12a)]));}[_0x485ed8(0x12e)](){var _0x28adfa=_0x485ed8;this[_0x28adfa(0x123)]==='not-following'&&(this[_0x28adfa(0xc5)][_0x28adfa(0x154)](_0x28adfa(0x118)),this[_0x28adfa(0x14d)]());}['stopFollowing'](){var _0x122dc4=_0x485ed8;this[_0x122dc4(0x123)]===_0x122dc4(0x118)&&this[_0x122dc4(0x13c)]();}[_0x485ed8(0x11d)](_0x5f5544){var _0x1b61c7=_0x485ed8;const {presenter:_0x5e92c3}=_0x5f5544[_0x1b61c7(0xe9)],_0x423157=this[_0x1b61c7(0xc2)][_0x1b61c7(0x111)]();this[_0x1b61c7(0xf7)]=_0x5e92c3,_0x5e92c3===_0x423157?(this[_0x1b61c7(0x13c)](),this[_0x1b61c7(0xd7)]()):this[_0x1b61c7(0x123)]!==_0x1b61c7(0x130)&&(this[_0x1b61c7(0x125)](),this[_0x1b61c7(0x14d)]());}[_0x485ed8(0xca)](){var _0x4a63cf=_0x485ed8;const _0x4e41cd={'eventID':_0x48bc07[_0x4a63cf(0x110)]};this[_0x4a63cf(0xc2)][_0x4a63cf(0xcd)](_0x4e41cd,this['_unitID']);}[_0x485ed8(0x145)](){var _0xbfa49f=_0x485ed8;this[_0xbfa49f(0xf7)]=null,this[_0xbfa49f(0x123)]!=='presenting'&&this[_0xbfa49f(0xf6)]();}['_handleNewChangeSets'](_0x2a3b42){var _0x108643=_0x485ed8;if(this[_0x108643(0x123)]===_0x108643(0x118)&&this[_0x108643(0xf7)]===_0x2a3b42[_0x108643(0xe9)][_0x108643(0x10d)]){const _0x2a05d6=_0x105b53(_0x2a3b42['data'])['mutations'][_0x108643(0x13f)]()['find'](_0x41d8b8=>_0x41d8b8['id']===_0x295080['id']);if(_0x2a05d6){const _0xf52662=_0x2a05d6[_0x108643(0x16b)][_0x108643(0xc0)],_0x5e945c=_0x2a05d6[_0x108643(0x16b)]['sheet']['id'];setTimeout(()=>{var _0x573866=_0x108643;this[_0x573866(0x12d)][_0x573866(0x10a)](_0x228792['id'],{'unitId':_0xf52662,'subUnitId':_0x5e945c},{'fromCollab':!0x0});});}}}[_0x485ed8(0xd7)](){var _0x5b5197=_0x485ed8;this[_0x5b5197(0xc5)][_0x5b5197(0x154)](_0x5b5197(0x14b));const _0x180553=new Map(),_0x549556=this[_0x5b5197(0x128)]=new _0x28b2d6();_0x549556['add'](_0x3eb609(()=>{var _0x597129=_0x5b5197;_0x180553[_0x597129(0xea)](_0x4495a5=>_0x4495a5[_0x597129(0x102)]()),_0x180553[_0x597129(0xbf)]();})),_0x549556[_0x5b5197(0xe1)](this['_commandService']['onCommandExecuted'](_0x23990f=>{var _0x4d50a1=_0x5b5197,_0x1eb1d8;if(_0x23990f[_0x4d50a1(0x11e)]!==_0x4419b1[_0x4d50a1(0x113)]||!this[_0x4d50a1(0x16e)]['shouldShareOperation'](_0x23990f['id']))return;const {id:_0x5661a4}=_0x23990f;let _0x10243f;_0x180553[_0x4d50a1(0x15a)](_0x5661a4)?_0x10243f=_0x180553[_0x4d50a1(0x100)](_0x5661a4):(_0x10243f=new _0x4fa684(),_0x180553[_0x4d50a1(0xbd)](_0x5661a4,_0x10243f),_0x10243f['pipe'](_0x3ce606((_0x1eb1d8=this[_0x4d50a1(0x15c)][_0x4d50a1(0x127)](Pe))!=null?_0x1eb1d8:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x358c4c=>{var _0x2bc7cf=_0x4d50a1;this['_collabSession']['send']({'eventID':_0x48bc07[_0x2bc7cf(0x122)],'data':{'unitID':this[_0x2bc7cf(0x12a)],'operations':{[_0x358c4c['id']]:{'id':_0x358c4c['id'],'params':JSON[_0x2bc7cf(0xe5)](_0x358c4c[_0x2bc7cf(0x16b)])}}}},this[_0x2bc7cf(0x12a)]);})),_0x10243f['next'](_0x23990f);})),this[_0x5b5197(0x16e)][_0x5b5197(0x14c)](this[_0x5b5197(0x12a)])['forEach'](_0x42589f=>this[_0x5b5197(0xc2)][_0x5b5197(0xcd)]({'eventID':_0x48bc07['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5b5197(0x12a)],'operations':{[_0x42589f['id']]:{'id':_0x42589f['id'],'params':JSON[_0x5b5197(0xe5)](_0x42589f[_0x5b5197(0x16b)])}}}},this[_0x5b5197(0x12a)]));}[_0x485ed8(0x125)](){var _0x1c0a50=_0x485ed8,_0x5e065f;this[_0x1c0a50(0xc5)]['next']('idle'),(_0x5e065f=this[_0x1c0a50(0x128)])==null||_0x5e065f['dispose'](),this[_0x1c0a50(0x128)]=null;}[_0x485ed8(0x14d)](){var _0x508503=_0x485ed8,_0x248763;(_0x248763=this[_0x508503(0x128)])==null||_0x248763[_0x508503(0x132)](),this['_status$'][_0x508503(0x154)]('following');}[_0x485ed8(0xf6)](){var _0x2a6ff3=_0x485ed8,_0x5bc019;this['_status$'][_0x2a6ff3(0x154)](_0x2a6ff3(0xed)),(_0x5bc019=this[_0x2a6ff3(0x128)])==null||_0x5bc019[_0x2a6ff3(0x132)](),this[_0x2a6ff3(0x128)]=null;}[_0x485ed8(0x13c)](){var _0x5c7a5e=_0x485ed8,_0x328ab0;this['_status$'][_0x5c7a5e(0x154)]('not-following'),(_0x328ab0=this[_0x5c7a5e(0x128)])==null||_0x328ab0['dispose']();}[_0x485ed8(0xf5)](_0x4213e2){var _0x39fe11=_0x485ed8;if(['presenting',_0x39fe11(0x130),_0x39fe11(0xc4)][_0x39fe11(0x147)](this[_0x39fe11(0x123)])||!_0x4213e2[_0x39fe11(0xe9)][_0x39fe11(0xe6)]||_0x4213e2['data'][_0x39fe11(0xe6)]===this['_collabSession'][_0x39fe11(0x111)]())return;this[_0x39fe11(0x123)]===_0x39fe11(0xed)&&this['_startFollowing']();const _0x36cd2c=_0x4213e2['data'][_0x39fe11(0x12c)];Object['values'](_0x36cd2c)['forEach'](_0x131b9d=>{var _0x5acb19=_0x39fe11;this[_0x5acb19(0x12d)][_0x5acb19(0x10a)](_0x131b9d['id'],_0x131b9d[_0x5acb19(0x16b)]?JSON[_0x5acb19(0x11c)](_0x131b9d[_0x5acb19(0x16b)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0xd0aff5=_0x485ed8,_0x4d8edd;this['_status$'][_0xd0aff5(0x154)](_0xd0aff5(0xc4)),(_0x4d8edd=this[_0xd0aff5(0x128)])==null||_0x4d8edd[_0xd0aff5(0x132)]();}[_0x485ed8(0x134)](){var _0x464ac6=_0x485ed8;this[_0x464ac6(0xc5)][_0x464ac6(0x154)](_0x464ac6(0xed)),this['_fetchOperations']();}};C=Z([f(0x2,_0x2473bb),f(0x3,_0x56ae44(L)),f(0x4,_0x20dcab)],C);function Te(){var _0x9208a5=_0x485ed8;const _0x4ee724=_0x503ec0(I),_0x81c92a=_0x503ec0(_0x2faaa5),_0x5b552b=_0x3d7e06(()=>_0x81c92a[_0x9208a5(0xf2)](_0x5706ae[_0x9208a5(0xf9)]),void 0x0,!0x1,[]),[_0xe660fc,_0x566904]=_0x236131(null),[_0x2c38f0,_0x2d9051]=_0x236131(h[_0x9208a5(0xfc)]),_0x460567=_0x50377a(null);return _0x45d8fa(()=>(_0x5b552b&&_0x4ee724['getLiveShareCoordinator'](_0x5b552b['getUnitId']())[_0x9208a5(0xd3)](_0x1f4aa9=>{var _0x2f6bb5=_0x9208a5;_0x566904(_0x1f4aa9),_0x460567['current']=_0x1f4aa9[_0x2f6bb5(0x161)][_0x2f6bb5(0x15d)](_0x231420=>{_0x2d9051(_0x231420);});}),()=>{var _0xec080e=_0x9208a5,_0xb80703;(_0xb80703=_0x460567[_0xec080e(0xd0)])==null||_0xb80703[_0xec080e(0x12f)](),_0x460567[_0xec080e(0xd0)]=null;}),[_0x5b552b,_0x4ee724]),_0xe660fc?_0x458b0b(_0x6c2787,{'align':_0x9208a5(0x108),'disabled':_0x2c38f0===h[_0x9208a5(0x115)],'className':_0x9208a5(0x143),'overlay':_0x458b0b($e,{'status':_0x2c38f0,'coordinator':_0xe660fc}),'children':_0x458b0b('button',{'className':_0x3c8900(_0x9208a5(0xdd),{'univer-cursor-not-allowed':_0x2c38f0===h[_0x9208a5(0x115)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2c38f0!==h[_0x9208a5(0x115)]}),'type':_0x9208a5(0xdf),'children':_0x458b0b(B,{'className':'univer-size-4'})})}):null;}function $e(_0x2f2cc8){var _0x31c2e2=_0x485ed8;const {status:_0x1b2277,coordinator:_0x174f9a}=_0x2f2cc8;switch(_0x1b2277){case h['IDLE']:return _0x458b0b(Fe,{'coordinator':_0x174f9a});case h[_0x31c2e2(0xc8)]:return _0x458b0b(He,{'coordinator':_0x174f9a});case h[_0x31c2e2(0x10e)]:return _0x458b0b(je,{'coordinator':_0x174f9a});case h[_0x31c2e2(0x115)]:return _0x458b0b(Ve,{});case h['PRESENTING']:return _0x458b0b(Ue,{'coordinator':_0x174f9a});default:return null;}}function Fe(_0x4dd185){var _0x552727=_0x485ed8;const {coordinator:_0x57fc42}=_0x4dd185;return _0x257512(_0x2d7bfa,{'children':[_0x458b0b(_0x552727(0x152),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x552727(0x157)}),_0x458b0b(_0x721d66,{'onClick':()=>_0x57fc42[_0x552727(0xe8)](),'children':_0x552727(0x16c)})]});}function He(_0x4bae8d){var _0x1b1902=_0x485ed8;const {coordinator:_0x33701c}=_0x4bae8d;return _0x257512(_0x2d7bfa,{'children':[_0x458b0b('div',{'className':_0x1b1902(0x11f),'children':_0x1b1902(0x168)}),_0x458b0b(_0x721d66,{'onClick':()=>_0x33701c[_0x1b1902(0x163)](),'children':_0x1b1902(0x136)})]});}function je(_0x8ae7d0){var _0x50aa52=_0x485ed8;const {coordinator:_0x267680}=_0x8ae7d0;return _0x257512(_0x2d7bfa,{'children':[_0x458b0b(_0x50aa52(0x152),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x50aa52(0x140)}),_0x458b0b(_0x721d66,{'variant':'text','onClick':()=>_0x267680[_0x50aa52(0x12e)](),'children':_0x50aa52(0xc6)})]});}function Ue(_0x26e64c){var _0x19bd6f=_0x485ed8;const {coordinator:_0x53e6c2}=_0x26e64c;return _0x257512(_0x2d7bfa,{'children':[_0x458b0b('div',{'className':_0x19bd6f(0x11f),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x458b0b(_0x721d66,{'variant':_0x19bd6f(0x124),'onClick':()=>_0x53e6c2[_0x19bd6f(0x158)](),'children':_0x19bd6f(0x121)})]});}function Ve(){return _0x458b0b(_0x2d7bfa,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x485ed8(0x103)],ke=(_0x5846a8,_0x3ed8fb,_0x29e61b,_0x53d270)=>{for(var _0x4f7a02=_0x53d270>0x1?void 0x0:_0x53d270?Me(_0x3ed8fb,_0x29e61b):_0x3ed8fb,_0x3ea115=_0x5846a8['length']-0x1,_0x2c5dfd;_0x3ea115>=0x0;_0x3ea115--)(_0x2c5dfd=_0x5846a8[_0x3ea115])&&(_0x4f7a02=_0x2c5dfd(_0x4f7a02)||_0x4f7a02);return _0x4f7a02;},$=(_0x4da3ee,_0x288593)=>(_0x59c5b3,_0x4ece4f)=>_0x288593(_0x59c5b3,_0x4ece4f,_0x4da3ee);let b=class extends _0x3c0c36{constructor(_0x28aed4,_0x36f0d8){var _0x19e61a=_0x485ed8;super(),this[_0x19e61a(0x144)]=_0x28aed4,this[_0x19e61a(0x117)]=_0x36f0d8,this[_0x19e61a(0x137)]();}[_0x485ed8(0x137)](){var _0x43855f=_0x485ed8;this[_0x43855f(0x148)](this['_uiPartsService'][_0x43855f(0x129)](_0x542535['HEADER_MENU'],()=>_0x1d00fc(Te,this[_0x43855f(0x144)])));}};b=ke([$(0x0,_0x56ae44(_0x11b368)),$(0x1,_0x5f5b99)],b);var Ge=Object[_0x485ed8(0xec)],We=Object[_0x485ed8(0x103)],Ye=(_0x56352f,_0x4b0531,_0x32338f)=>_0x4b0531 in _0x56352f?Ge(_0x56352f,_0x4b0531,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32338f}):_0x56352f[_0x4b0531]=_0x32338f,Be=(_0x298b86,_0x5e971d,_0xc26ad8,_0x282d63)=>{var _0x198d8f=_0x485ed8;for(var _0x2a9c3d=_0x282d63>0x1?void 0x0:_0x282d63?We(_0x5e971d,_0xc26ad8):_0x5e971d,_0x5686f6=_0x298b86[_0x198d8f(0xc9)]-0x1,_0x2d4bf9;_0x5686f6>=0x0;_0x5686f6--)(_0x2d4bf9=_0x298b86[_0x5686f6])&&(_0x2a9c3d=_0x2d4bf9(_0x2a9c3d)||_0x2a9c3d);return _0x2a9c3d;},F=(_0x1d2d2f,_0xfd9294)=>(_0x3321e3,_0x52e4ef)=>_0xfd9294(_0x3321e3,_0x52e4ef,_0x1d2d2f),J=(_0x1d5ab7,_0x458d37,_0x5a434f)=>Ye(_0x1d5ab7,typeof _0x458d37!=_0x485ed8(0x151)?_0x458d37+'':_0x458d37,_0x5a434f);const Ze=_0x485ed8(0xf8);let O=class extends _0x11a0e9{constructor(_0x851da8=T,_0x1153d1,_0x1989e6){var _0x2fcb91=_0x485ed8;super(),this[_0x2fcb91(0x135)]=_0x851da8,this['_injector']=_0x1153d1,this[_0x2fcb91(0x15c)]=_0x1989e6;const {..._0x34423a}=_0x4e2ab8({},T,this[_0x2fcb91(0x135)]);this[_0x2fcb91(0x15c)][_0x2fcb91(0x149)](Oe,_0x34423a);}[_0x485ed8(0xdc)](){var _0x35d27b=_0x485ed8;_0xe717aa(this[_0x35d27b(0x144)],_0x1a80dc([[L],[I],[m],[b]],this[_0x35d27b(0x135)]['override'])),_0x5cd586(this[_0x35d27b(0x144)],[[m]]);}[_0x485ed8(0xba)](){_0x5cd586(this['_injector'],[[b]]);}};J(O,_0x485ed8(0x11e),_0x5706ae[_0x485ed8(0x146)]),J(O,_0x485ed8(0xd4),Ze),O=Be([_0xaa01dd(_0x13f08e),F(0x1,_0x56ae44(_0x11b368)),F(0x2,_0x2473bb)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x5258fa=_0x139a;(function(_0x517ff7,_0x860d13){var _0x2b8d48=_0x139a,_0x3d7aec=_0x517ff7();while(!![]){try{var _0xc3a79d=parseInt(_0x2b8d48(0xca))/0x1*(parseInt(_0x2b8d48(0xb5))/0x2)+parseInt(_0x2b8d48(0xe9))/0x3*(-parseInt(_0x2b8d48(0x117))/0x4)+-parseInt(_0x2b8d48(0xa5))/0x5+-parseInt(_0x2b8d48(0xd2))/0x6*(parseInt(_0x2b8d48(0x10b))/0x7)+parseInt(_0x2b8d48(0xc2))/0x8*(parseInt(_0x2b8d48(0x107))/0x9)+-parseInt(_0x2b8d48(0x145))/0xa*(parseInt(_0x2b8d48(0x11e))/0xb)+-parseInt(_0x2b8d48(0xeb))/0xc*(-parseInt(_0x2b8d48(0x123))/0xd);if(_0xc3a79d===_0x860d13)break;else _0x3d7aec['push'](_0x3d7aec['shift']());}catch(_0x563652){_0x3d7aec['push'](_0x3d7aec['shift']());}}}(_0x1961,0x9b17e));function _0x139a(_0x194edb,_0xc3070e){var _0x196191=_0x1961();return _0x139a=function(_0x139a9b,_0x512bd4){_0x139a9b=_0x139a9b-0x99;var _0x25b3e4=_0x196191[_0x139a9b];return _0x25b3e4;},_0x139a(_0x194edb,_0xc3070e);}var q=Object[_0x5258fa(0x9f)],z=(_0x351192,_0x5b1dba,_0x3ce5e3)=>_0x5b1dba in _0x351192?q(_0x351192,_0x5b1dba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ce5e3}):_0x351192[_0x5b1dba]=_0x3ce5e3,d=(_0x458fea,_0x581d72,_0x4fed65)=>z(_0x458fea,typeof _0x581d72!=_0x5258fa(0xbf)?_0x581d72+'':_0x581d72,_0x4fed65);import{CollaborationSessionService as _0x166df7,SessionStatus as _0x6072e1,UniverCollaborationClientPlugin as _0xbe77e1}from'@univerjs-pro/collaboration-client';import{Disposable as _0x5d78d5,toDisposable as _0x104973,Inject as _0x15c34c,IUniverInstanceService as _0x30f196,Injector as _0x1bb1a3,IConfigService as _0xf2eda3,ICommandService as _0x225c55,RxDisposable as _0x5123e3,UniverInstanceType as _0x14c1f5,DisposableCollection as _0x2872b8,CommandType as _0x16b9f5,DependentOn as _0x36185f,Plugin as _0x607589,merge as _0x1c848f,registerDependencies as _0x1910a1,mergeOverrideWithDependencies as _0x2ab882,touchDependencies as _0xbfe10e}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x266111,InsertSheetMutation as _0x58b5c8}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x3a60b0,SetScrollOperation as _0x399981}from'@univerjs/sheets-ui';import{useDependency as _0x1a879f,useObservable as _0x2c858e,IUIPartsService as _0x48f43a,BuiltInUIPart as _0x5e9d9c,connectInjector as _0x21477e}from'@univerjs/ui';function _0x1961(){var _0x17567c=['registerSharedOperation','_stopFollowing','LIVESHARE_REQUEST_HOST','sessionStatus$','startFollowing','url(#$1','SAME_OPERATION_SHARE_INTERVAL','requireSession','getOwnPropertyDescriptor','defineProperty','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','svg','_reporters','toString','unitId','1126065viKAlJ','prototype','extend','live-share.config','_handleNewHost','call','_status$','executeCommand','UniverIcon','operations','_status','_beIdle','getLiveShareCoordinator','idSuffix','_handleOperation','idle','310162bAPFhl','string','_handleOnline','xlink:href','mask','concat','trim','complete','Start\x20following','memberID','symbol','next','_fetchOperations','8244712ltLhWv','Stop\x20following','http://www.w3.org/2000/svg','stopPresenting','stringify','assign','_init','use','5YCApvA','hasOwnProperty','attrs','not-following','_unitID','UNIVER_SHEET','parse','UNIVER_UNKNOWN','22236fndPlu','getOwnPropertySymbols','IDLE','getUnitId','_handleNewChangeSets','add','div','asObservable','dispose','icon','univer-size-4','You\x27re\x20not\x20following\x20the\x20presenter','onCommandExecuted','following','_configService','find','_presenter','button','getConfig','get','setConfig','_univerInstanceService','_injector','2999622JRYTKO','_stopPresenting','3248124EzDVgQ','LIVESHARE_NEW_HOST','LIVESHARE_OPERATION','function','_config','registerInitialStateReporter','You\x27re\x20presenting\x20the\x20document','getValue','replace','live-share-icon','entries','end','tag','defIds','0\x200\x2017\x2017','PRESENTING','LIVESHARE_FETCH_OPERATIONS','pipe','onStarting','disposeWithMe','_mountLiveShare','univer-w-full\x20univer-mb-3\x20univer-text-sm','Stop\x20presenting','_uiPartsService','map','path','getMemberID','_collabSession','9RHCwOK','from','Present\x20this\x20document','registerComponent','1379FNQHYW','delete','1em','_liveShareService','HEADER_MENU','reverse','values','set','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','subscribe','apply','includes','4epbNTb','presenter','children','current','_entities','dispose$','evenodd','303534jnUYuK','tryStartPresenting','none','then','fill','39eOdOxK','data','propertyIsEnumerable','presenting','unsubscribe','onRendered','type','_commandDisposable','shouldShareOperation','stopFollowing','currentColor','_handleTerminate','forEach','override','_collabSessionService','className','send','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','_handleOffline','indexOf','_startFollowing','colorChannel1','clear','substring','FOLLOWING','getInitialStates','_startPresenting','OFFLINE','offline','has','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','_commandService','getTypeOfUnitDisposed$','Start','10kOLrQL','_startLiveShareCoordinator','LIVESHARE_TERMINATE','status$','params','NEW_CHANGESETS','ONLINE','length','_sharedOperations','displayName','init'];_0x1961=function(){return _0x17567c;};return _0x1961();}import{jsx as _0x5e2a77,jsxs as _0x57e686,Fragment as _0x49f367}from'react/jsx-runtime';import{Dropdown as _0x57c4cd,clsx as _0x3354fe,Button as _0x32a223}from'@univerjs/design';import{forwardRef as _0x541777,useRef as _0x26071b,createElement as _0xe5743d,useState as _0x5b847f,useEffect as _0x2a5c1b}from'react';import{CollaborationEvent as _0x5e4eb2,parseProtocolChangeset as _0x3e708c}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x513b10,Subject as _0x49a04c}from'rxjs';import{takeUntil as _0x3dec29,throttleTime as _0x56270f}from'rxjs/operators';const Oe=_0x5258fa(0xa8),T={};class L extends _0x5d78d5{constructor(){super(...arguments),d(this,'_sharedOperations',new Set()),d(this,'_reporters',new Set());}[_0x5258fa(0x150)](_0x424064){var _0x406f72=_0x5258fa;return this[_0x406f72(0x14d)][_0x406f72(0xd7)](_0x424064),_0x104973(()=>this[_0x406f72(0x14d)][_0x406f72(0x10c)](_0x424064));}[_0x5258fa(0xf0)](_0xafb6f){var _0x5c03c5=_0x5258fa;return this['_reporters']['add'](_0xafb6f),_0x104973(()=>this[_0x5c03c5(0xa2)][_0x5c03c5(0x10c)](_0xafb6f));}['shouldShareOperation'](_0x258e8f){var _0x2c7c5a=_0x5258fa;return this[_0x2c7c5a(0x14d)]['has'](_0x258e8f);}[_0x5258fa(0x13c)](_0x348174){var _0x45bc2a=_0x5258fa;return Array[_0x45bc2a(0x108)](this[_0x45bc2a(0xa2)])[_0x45bc2a(0x103)](_0x56e5a2=>_0x56e5a2(_0x348174));}}var Ee=Object[_0x5258fa(0x9e)],we=(_0xce797b,_0x56dd88,_0x1520b1,_0x3d6f23)=>{var _0xf5b9b0=_0x5258fa;for(var _0x1852de=_0x3d6f23>0x1?void 0x0:_0x3d6f23?Ee(_0x56dd88,_0x1520b1):_0x56dd88,_0x1c113d=_0xce797b[_0xf5b9b0(0x14c)]-0x1,_0x1ca097;_0x1c113d>=0x0;_0x1c113d--)(_0x1ca097=_0xce797b[_0x1c113d])&&(_0x1852de=_0x1ca097(_0x1852de)||_0x1852de);return _0x1852de;},Ne=(_0x1423ba,_0x3c5c47)=>(_0x30fea2,_0x4609a8)=>_0x3c5c47(_0x30fea2,_0x4609a8,_0x1423ba);let m=class extends _0x5d78d5{constructor(_0x2489ac){var _0x4756c8=_0x5258fa;super(),this['_liveShareService']=_0x2489ac,this[_0x4756c8(0xc8)]();}[_0x5258fa(0xc8)](){[_0x3a60b0['id'],_0x399981['id'],_0x266111['id']]['forEach'](_0x7cdfaa=>{var _0x4fc7f1=_0x139a;this[_0x4fc7f1(0xfe)](this[_0x4fc7f1(0x10e)][_0x4fc7f1(0x150)](_0x7cdfaa));});}};m=we([Ne(0x0,_0x15c34c(L))],m);var c=function(){var _0xc1b193=_0x5258fa;return c=Object['assign']||function(_0x189425){var _0x2c524e=_0x139a;for(var _0x80c157,_0x11064b=0x1,_0x1358fc=arguments[_0x2c524e(0x14c)];_0x11064b<_0x1358fc;_0x11064b++){_0x80c157=arguments[_0x11064b];for(var _0x2f94fc in _0x80c157)Object['prototype'][_0x2c524e(0xcb)][_0x2c524e(0xaa)](_0x80c157,_0x2f94fc)&&(_0x189425[_0x2f94fc]=_0x80c157[_0x2f94fc]);}return _0x189425;},c[_0xc1b193(0x115)](this,arguments);},Ce=function(_0x4c7e9f,_0x268726){var _0x2cb23c=_0x5258fa,_0x37e4ca={};for(var _0x4475a3 in _0x4c7e9f)Object['prototype'][_0x2cb23c(0xcb)][_0x2cb23c(0xaa)](_0x4c7e9f,_0x4475a3)&&_0x268726[_0x2cb23c(0x136)](_0x4475a3)<0x0&&(_0x37e4ca[_0x4475a3]=_0x4c7e9f[_0x4475a3]);if(_0x4c7e9f!=null&&typeof Object[_0x2cb23c(0xd3)]==_0x2cb23c(0xee)){for(var _0xe5af2c=0x0,_0x4475a3=Object[_0x2cb23c(0xd3)](_0x4c7e9f);_0xe5af2c<_0x4475a3['length'];_0xe5af2c++)_0x268726[_0x2cb23c(0x136)](_0x4475a3[_0xe5af2c])<0x0&&Object[_0x2cb23c(0xa6)][_0x2cb23c(0x125)]['call'](_0x4c7e9f,_0x4475a3[_0xe5af2c])&&(_0x37e4ca[_0x4475a3[_0xe5af2c]]=_0x4c7e9f[_0x4475a3[_0xe5af2c]]);}return _0x37e4ca;},W=_0x541777(function(_0x4f5f7b,_0x4b36dc){var _0xe05a70=_0x5258fa,_0x3f0de1=_0x4f5f7b['icon'],_0x4c8990=_0x4f5f7b['id'],_0x1a3707=_0x4f5f7b[_0xe05a70(0x132)],_0x4848c5=_0x4f5f7b['extend'],_0x4ec7f3=Ce(_0x4f5f7b,[_0xe05a70(0xdb),'id',_0xe05a70(0x132),_0xe05a70(0xa7)]),_0x237c50='univerjs-icon\x20univerjs-icon-'['concat'](_0x4c8990,'\x20')[_0xe05a70(0xba)](_0x1a3707||'')[_0xe05a70(0xbb)](),_0x31212b=_0x26071b('_'[_0xe05a70(0xba)](Le()));return Y(_0x3f0de1,''[_0xe05a70(0xba)](_0x4c8990),{'defIds':_0x3f0de1[_0xe05a70(0xf8)],'idSuffix':_0x31212b[_0xe05a70(0x11a)]},c({'ref':_0x4b36dc,'className':_0x237c50},_0x4ec7f3),_0x4848c5);});function Y(_0x9aa26f,_0x12a3ce,_0x1ff5d8,_0x4992b3,_0xcc4081){var _0xa6acde=_0x5258fa;return _0xe5743d(_0x9aa26f[_0xa6acde(0xf7)],c(c({'key':_0x12a3ce},De(_0x9aa26f,_0x1ff5d8,_0xcc4081)),_0x4992b3),(xe(_0x9aa26f,_0x1ff5d8)[_0xa6acde(0x119)]||[])[_0xa6acde(0x103)](function(_0x21688a,_0x25038a){var _0x5dc11b=_0xa6acde;return Y(_0x21688a,''[_0x5dc11b(0xba)](_0x12a3ce,'-')[_0x5dc11b(0xba)](_0x9aa26f['tag'],'-')[_0x5dc11b(0xba)](_0x25038a),_0x1ff5d8,void 0x0,_0xcc4081);}));}function De(_0x4aaecd,_0x3e4082,_0x50d5a8){var _0x27b903=_0x5258fa,_0x583c7b=c({},_0x4aaecd[_0x27b903(0xcc)]);_0x50d5a8!=null&&_0x50d5a8[_0x27b903(0x138)]&&_0x583c7b[_0x27b903(0x122)]===_0x27b903(0x138)&&(_0x583c7b[_0x27b903(0x122)]=_0x50d5a8['colorChannel1']),_0x4aaecd[_0x27b903(0xf7)]===_0x27b903(0xb9)&&_0x583c7b['id']&&(_0x583c7b['id']=_0x583c7b['id']+_0x3e4082['idSuffix']),Object[_0x27b903(0xf5)](_0x583c7b)[_0x27b903(0x12f)](function(_0x3d70f0){var _0x3c008b=_0x27b903,_0x11d835=_0x3d70f0[0x0],_0x5458b9=_0x3d70f0[0x1];_0x11d835==='mask'&&typeof _0x5458b9==_0x3c008b(0xb6)&&(_0x583c7b[_0x11d835]=_0x5458b9[_0x3c008b(0xf3)](/url\(#(.*)\)/,_0x3c008b(0x9b)['concat'](_0x3e4082[_0x3c008b(0xb2)],')')));});var _0x1f62f4=_0x3e4082[_0x27b903(0xf8)];return!_0x1f62f4||_0x1f62f4[_0x27b903(0x14c)]===0x0||(_0x4aaecd[_0x27b903(0xf7)]===_0x27b903(0xc9)&&_0x583c7b[_0x27b903(0xb8)]&&(_0x583c7b[_0x27b903(0xb8)]=_0x583c7b['xlink:href']+_0x3e4082[_0x27b903(0xb2)]),Object[_0x27b903(0xf5)](_0x583c7b)[_0x27b903(0x12f)](function(_0x9bac31){var _0x34e2a0=_0x27b903,_0x7c0466=_0x9bac31[0x0],_0xc2dd41=_0x9bac31[0x1];typeof _0xc2dd41==_0x34e2a0(0xb6)&&(_0x583c7b[_0x7c0466]=_0xc2dd41[_0x34e2a0(0xf3)](/url\(#(.*)\)/,_0x34e2a0(0x9b)['concat'](_0x3e4082[_0x34e2a0(0xb2)],')')));})),_0x583c7b;}function xe(_0x332f8c,_0x329f01){var _0x3b44d5=_0x5258fa,_0x2e1e81,_0x548e1f=_0x329f01[_0x3b44d5(0xf8)];return!_0x548e1f||_0x548e1f[_0x3b44d5(0x14c)]===0x0?_0x332f8c:_0x332f8c[_0x3b44d5(0xf7)]==='defs'&&(!((_0x2e1e81=_0x332f8c[_0x3b44d5(0x119)])===null||_0x2e1e81===void 0x0)&&_0x2e1e81[_0x3b44d5(0x14c)])?c(c({},_0x332f8c),{'children':_0x332f8c[_0x3b44d5(0x119)][_0x3b44d5(0x103)](function(_0x1b7a2d){var _0x1fe392=_0x3b44d5;return typeof _0x1b7a2d[_0x1fe392(0xcc)]['id']==_0x1fe392(0xb6)&&_0x548e1f&&_0x548e1f[_0x1fe392(0x116)](_0x1b7a2d[_0x1fe392(0xcc)]['id'])?c(c({},_0x1b7a2d),{'attrs':c(c({},_0x1b7a2d[_0x1fe392(0xcc)]),{'id':_0x1b7a2d['attrs']['id']+_0x329f01[_0x1fe392(0xb2)]})}):_0x1b7a2d;})}):_0x332f8c;}function Le(){var _0x5079a2=_0x5258fa;return Math['random']()[_0x5079a2(0xa3)](0x24)[_0x5079a2(0x13a)](0x2,0x8);}W[_0x5258fa(0x14e)]=_0x5258fa(0xad);var ye={'tag':_0x5258fa(0xa1),'attrs':{'xmlns':_0x5258fa(0xc4),'fill':_0x5258fa(0x120),'viewBox':_0x5258fa(0xf9),'width':_0x5258fa(0x10d),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x5258fa(0x12d),'d':_0x5258fa(0x141)}},{'tag':_0x5258fa(0x104),'attrs':{'fill':_0x5258fa(0x12d),'d':_0x5258fa(0xa0),'fillRule':_0x5258fa(0x11d),'clipRule':_0x5258fa(0x11d)}}]},B=_0x541777(function(_0x207e36,_0xdcb45c){var _0x9d5824=_0x5258fa;return _0xe5743d(W,Object[_0x9d5824(0xc7)]({},_0x207e36,{'id':_0x9d5824(0xf4),'ref':_0xdcb45c,'icon':ye}));});B[_0x5258fa(0x14e)]='LiveShareIcon';var Re=Object[_0x5258fa(0x9e)],Z=(_0x1cc305,_0x282081,_0x3dcee3,_0x5e63de)=>{var _0x1c9b9a=_0x5258fa;for(var _0x36bd65=_0x5e63de>0x1?void 0x0:_0x5e63de?Re(_0x282081,_0x3dcee3):_0x282081,_0x10acc0=_0x1cc305[_0x1c9b9a(0x14c)]-0x1,_0x29c53a;_0x10acc0>=0x0;_0x10acc0--)(_0x29c53a=_0x1cc305[_0x10acc0])&&(_0x36bd65=_0x29c53a(_0x36bd65)||_0x36bd65);return _0x36bd65;},f=(_0x535dbc,_0x3d98b9)=>(_0x986af1,_0x54711d)=>_0x3d98b9(_0x986af1,_0x54711d,_0x535dbc);let I=class extends _0x5123e3{constructor(_0x16eda5,_0xe09f0a,_0x8d541e){var _0x4b4d77=_0x5258fa;super(),d(this,_0x4b4d77(0x11b),new Map()),(this[_0x4b4d77(0xe7)]=_0x16eda5,this[_0x4b4d77(0xe8)]=_0xe09f0a,this['_collabSessionService']=_0x8d541e,this[_0x4b4d77(0xc8)]());}async[_0x5258fa(0xb1)](_0x5a25d6){var _0x405f36=_0x5258fa;return this[_0x405f36(0x11b)][_0x405f36(0x140)](_0x5a25d6)||await this[_0x405f36(0x146)](_0x5a25d6),this[_0x405f36(0x11b)][_0x405f36(0xe5)](_0x5a25d6);}[_0x5258fa(0xc8)](){var _0x378353=_0x5258fa;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x14c1f5['UNIVER_SHEET'])[_0x378353(0xfc)](_0x3dec29(this['dispose$']))[_0x378353(0x114)](async _0x497a88=>{var _0x5cdddd=_0x378353;const _0x24ccf7=_0x497a88[_0x5cdddd(0xd5)]();this[_0x5cdddd(0x11b)]['has'](_0x24ccf7)||this['_startLiveShareCoordinator'](_0x24ccf7);}),this[_0x378353(0xe7)][_0x378353(0x143)](_0x14c1f5[_0x378353(0xcf)])[_0x378353(0xfc)](_0x3dec29(this[_0x378353(0x11c)]))[_0x378353(0x114)](_0x1bc627=>{var _0x2065e3=_0x378353;const _0x210eee=_0x1bc627[_0x2065e3(0xd5)](),_0x40879a=this['_entities'][_0x2065e3(0xe5)](_0x210eee);_0x40879a==null||_0x40879a['dispose']();});}async[_0x5258fa(0x146)](_0x57a64b){var _0x4cda0d=_0x5258fa;const _0x1004ae=await this[_0x4cda0d(0x131)][_0x4cda0d(0x9d)](_0x57a64b),_0x2bc36c=this[_0x4cda0d(0xe8)]['createInstance'](C,_0x57a64b,_0x1004ae);return _0x2bc36c[_0x4cda0d(0x14f)](),this[_0x4cda0d(0x11b)][_0x4cda0d(0x112)](_0x57a64b,_0x2bc36c),_0x2bc36c;}};I=Z([f(0x0,_0x30f196),f(0x1,_0x15c34c(_0x1bb1a3)),f(0x2,_0x15c34c(_0x166df7))],I);var h=(_0x515e4b=>(_0x515e4b[_0x5258fa(0x13e)]=_0x5258fa(0x13f),_0x515e4b[_0x5258fa(0xd4)]=_0x5258fa(0xb4),_0x515e4b[_0x5258fa(0x13b)]=_0x5258fa(0xdf),_0x515e4b['NOT_FOLLOWING']=_0x5258fa(0xcd),_0x515e4b['PRESENTING']='presenting',_0x515e4b))(h||{});const Pe=_0x5258fa(0x9c),Ae=0xc8;let C=class extends _0x5123e3{constructor(_0x3047bc,_0x55dc15,_0x162d05,_0x5aeb67,_0x51a31a){var _0x24d12f=_0x5258fa;super(),d(this,_0x24d12f(0xab),new _0x513b10('idle')),d(this,_0x24d12f(0x148),this[_0x24d12f(0xab)][_0x24d12f(0xd9)]()),d(this,_0x24d12f(0xc8),!0x1),d(this,_0x24d12f(0x12a),null),d(this,'_presenter',null),(this[_0x24d12f(0xce)]=_0x3047bc,this['_collabSession']=_0x55dc15,this[_0x24d12f(0xe0)]=_0x162d05,this[_0x24d12f(0x10e)]=_0x5aeb67,this[_0x24d12f(0x142)]=_0x51a31a);}get[_0x5258fa(0xaf)](){var _0x210c6e=_0x5258fa;return this[_0x210c6e(0xab)][_0x210c6e(0xf2)]();}[_0x5258fa(0xda)](){var _0x917d5a=_0x5258fa,_0x4ac8ba;(_0x4ac8ba=this[_0x917d5a(0x12a)])==null||_0x4ac8ba[_0x917d5a(0xda)](),this['_status$'][_0x917d5a(0xc0)](_0x917d5a(0xb4)),this[_0x917d5a(0xab)][_0x917d5a(0xbc)]();}[_0x5258fa(0x14f)](){var _0x545346=_0x5258fa;this[_0x545346(0xc8)]||(this['_init']=!0x0,this['_collabSession'][_0x545346(0x99)][_0x545346(0xfc)](_0x3dec29(this[_0x545346(0x11c)]))['subscribe'](_0xd46afb=>{var _0x1fbd64=_0x545346;switch(_0xd46afb){case _0x6072e1[_0x1fbd64(0x13e)]:this['_handleOffline']();break;case _0x6072e1[_0x1fbd64(0x14b)]:this[_0x1fbd64(0xb7)]();break;}}),this['_collabSession']['event$'][_0x545346(0xfc)](_0x3dec29(this[_0x545346(0x11c)]))[_0x545346(0x114)](_0x1ac858=>{var _0x1b92f2=_0x545346;const {eventID:_0x5c80e6}=_0x1ac858;switch(_0x5c80e6){case _0x5e4eb2[_0x1b92f2(0xec)]:this[_0x1b92f2(0xa9)](_0x1ac858);break;case _0x5e4eb2[_0x1b92f2(0xed)]:this[_0x1b92f2(0xb3)](_0x1ac858);break;case _0x5e4eb2['LIVESHARE_TERMINATE']:this[_0x1b92f2(0x12e)]();break;case _0x5e4eb2[_0x1b92f2(0x14a)]:this['_handleNewChangeSets'](_0x1ac858);break;}}));}[_0x5258fa(0x11f)](){var _0x3a1bf7=_0x5258fa;this[_0x3a1bf7(0x106)][_0x3a1bf7(0x133)]({'eventID':_0x5e4eb2[_0x3a1bf7(0x152)],'data':{'unitID':this['_unitID'],'userID':this[_0x3a1bf7(0x106)][_0x3a1bf7(0x105)]()}},this['_unitID']);}[_0x5258fa(0xc5)](){var _0x43a2a9=_0x5258fa;this[_0x43a2a9(0xaf)]===_0x43a2a9(0x126)&&(this[_0x43a2a9(0xab)]['next'](_0x43a2a9(0xb4)),this['_collabSession'][_0x43a2a9(0x133)]({'eventID':_0x5e4eb2[_0x43a2a9(0x147)],'data':{'unitID':this[_0x43a2a9(0xce)]}},this[_0x43a2a9(0xce)]));}[_0x5258fa(0x9a)](){var _0x598f7d=_0x5258fa;this['_status']===_0x598f7d(0xcd)&&(this[_0x598f7d(0xab)]['next'](_0x598f7d(0xdf)),this[_0x598f7d(0x137)]());}[_0x5258fa(0x12c)](){var _0x2f7bb5=_0x5258fa;this[_0x2f7bb5(0xaf)]===_0x2f7bb5(0xdf)&&this[_0x2f7bb5(0x151)]();}[_0x5258fa(0xa9)](_0x4061a7){var _0x39a4b9=_0x5258fa;const {presenter:_0x2665e4}=_0x4061a7[_0x39a4b9(0x124)],_0x3bdc60=this[_0x39a4b9(0x106)]['getMemberID']();this['_presenter']=_0x2665e4,_0x2665e4===_0x3bdc60?(this[_0x39a4b9(0x151)](),this[_0x39a4b9(0x13d)]()):this['_status']!==_0x39a4b9(0xcd)&&(this[_0x39a4b9(0xea)](),this[_0x39a4b9(0x137)]());}[_0x5258fa(0xc1)](){var _0x1567b4=_0x5258fa;const _0x26ce7e={'eventID':_0x5e4eb2[_0x1567b4(0xfb)]};this[_0x1567b4(0x106)][_0x1567b4(0x133)](_0x26ce7e,this[_0x1567b4(0xce)]);}[_0x5258fa(0x12e)](){var _0x2bfd6c=_0x5258fa;this[_0x2bfd6c(0xe2)]=null,this[_0x2bfd6c(0xaf)]!==_0x2bfd6c(0x126)&&this[_0x2bfd6c(0xb0)]();}[_0x5258fa(0xd6)](_0x3ebc91){var _0x21d463=_0x5258fa;if(this[_0x21d463(0xaf)]===_0x21d463(0xdf)&&this[_0x21d463(0xe2)]===_0x3ebc91[_0x21d463(0x124)][_0x21d463(0xbe)]){const _0x595031=_0x3e708c(_0x3ebc91[_0x21d463(0x124)])['mutations'][_0x21d463(0x110)]()[_0x21d463(0xe1)](_0x4d080c=>_0x4d080c['id']===_0x58b5c8['id']);if(_0x595031){const _0x3a3e73=_0x595031[_0x21d463(0x149)][_0x21d463(0xa4)],_0x358585=_0x595031[_0x21d463(0x149)]['sheet']['id'];setTimeout(()=>{var _0x51050b=_0x21d463;this['_commandService'][_0x51050b(0xac)](_0x266111['id'],{'unitId':_0x3a3e73,'subUnitId':_0x358585},{'fromCollab':!0x0});});}}}[_0x5258fa(0x13d)](){var _0x1dfa08=_0x5258fa;this['_status$'][_0x1dfa08(0xc0)]('presenting');const _0x229265=new Map(),_0xf58a46=this[_0x1dfa08(0x12a)]=new _0x2872b8();_0xf58a46[_0x1dfa08(0xd7)](_0x104973(()=>{var _0x5919b3=_0x1dfa08;_0x229265['forEach'](_0x3b52a9=>_0x3b52a9['complete']()),_0x229265[_0x5919b3(0x139)]();})),_0xf58a46[_0x1dfa08(0xd7)](this[_0x1dfa08(0x142)][_0x1dfa08(0xde)](_0x4bd72e=>{var _0x250f8b=_0x1dfa08,_0x23cd5e;if(_0x4bd72e[_0x250f8b(0x129)]!==_0x16b9f5['OPERATION']||!this[_0x250f8b(0x10e)][_0x250f8b(0x12b)](_0x4bd72e['id']))return;const {id:_0x3d9e8f}=_0x4bd72e;let _0xac24dd;_0x229265['has'](_0x3d9e8f)?_0xac24dd=_0x229265[_0x250f8b(0xe5)](_0x3d9e8f):(_0xac24dd=new _0x49a04c(),_0x229265[_0x250f8b(0x112)](_0x3d9e8f,_0xac24dd),_0xac24dd['pipe'](_0x56270f((_0x23cd5e=this['_configService'][_0x250f8b(0xe4)](Pe))!=null?_0x23cd5e:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x250f8b(0x114)](_0x56745a=>{var _0xc97558=_0x250f8b;this[_0xc97558(0x106)][_0xc97558(0x133)]({'eventID':_0x5e4eb2[_0xc97558(0xed)],'data':{'unitID':this[_0xc97558(0xce)],'operations':{[_0x56745a['id']]:{'id':_0x56745a['id'],'params':JSON[_0xc97558(0xc6)](_0x56745a[_0xc97558(0x149)])}}}},this[_0xc97558(0xce)]);})),_0xac24dd[_0x250f8b(0xc0)](_0x4bd72e);})),this[_0x1dfa08(0x10e)][_0x1dfa08(0x13c)](this['_unitID'])[_0x1dfa08(0x12f)](_0x242f72=>this['_collabSession']['send']({'eventID':_0x5e4eb2['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1dfa08(0xce)],'operations':{[_0x242f72['id']]:{'id':_0x242f72['id'],'params':JSON[_0x1dfa08(0xc6)](_0x242f72['params'])}}}},this['_unitID']));}[_0x5258fa(0xea)](){var _0x2207b2=_0x5258fa,_0x530bc5;this[_0x2207b2(0xab)][_0x2207b2(0xc0)](_0x2207b2(0xb4)),(_0x530bc5=this[_0x2207b2(0x12a)])==null||_0x530bc5[_0x2207b2(0xda)](),this[_0x2207b2(0x12a)]=null;}['_startFollowing'](){var _0x8f5826=_0x5258fa,_0x3f857b;(_0x3f857b=this[_0x8f5826(0x12a)])==null||_0x3f857b[_0x8f5826(0xda)](),this['_status$'][_0x8f5826(0xc0)](_0x8f5826(0xdf));}[_0x5258fa(0xb0)](){var _0x21efba=_0x5258fa,_0x35f6ad;this[_0x21efba(0xab)][_0x21efba(0xc0)](_0x21efba(0xb4)),(_0x35f6ad=this[_0x21efba(0x12a)])==null||_0x35f6ad[_0x21efba(0xda)](),this[_0x21efba(0x12a)]=null;}[_0x5258fa(0x151)](){var _0x2a7e36=_0x5258fa,_0x21a69c;this[_0x2a7e36(0xab)][_0x2a7e36(0xc0)](_0x2a7e36(0xcd)),(_0x21a69c=this['_commandDisposable'])==null||_0x21a69c[_0x2a7e36(0xda)]();}[_0x5258fa(0xb3)](_0x84100f){var _0x4c7f83=_0x5258fa;if(['presenting','not-following',_0x4c7f83(0x13f)]['includes'](this[_0x4c7f83(0xaf)])||!_0x84100f[_0x4c7f83(0x124)][_0x4c7f83(0x118)]||_0x84100f['data'][_0x4c7f83(0x118)]===this[_0x4c7f83(0x106)]['getMemberID']())return;this[_0x4c7f83(0xaf)]===_0x4c7f83(0xb4)&&this[_0x4c7f83(0x137)]();const _0x6c73ca=_0x84100f[_0x4c7f83(0x124)][_0x4c7f83(0xae)];Object[_0x4c7f83(0x111)](_0x6c73ca)['forEach'](_0xe83195=>{var _0x1da899=_0x4c7f83;this[_0x1da899(0x142)]['executeCommand'](_0xe83195['id'],_0xe83195[_0x1da899(0x149)]?JSON[_0x1da899(0xd0)](_0xe83195['params']):null,{'fromCollab':!0x0});});}[_0x5258fa(0x135)](){var _0x525eef=_0x5258fa,_0x1df924;this['_status$'][_0x525eef(0xc0)](_0x525eef(0x13f)),(_0x1df924=this[_0x525eef(0x12a)])==null||_0x1df924['dispose']();}[_0x5258fa(0xb7)](){var _0x399713=_0x5258fa;this[_0x399713(0xab)][_0x399713(0xc0)](_0x399713(0xb4)),this['_fetchOperations']();}};C=Z([f(0x2,_0xf2eda3),f(0x3,_0x15c34c(L)),f(0x4,_0x225c55)],C);function Te(){var _0x563dec=_0x5258fa;const _0x4f3789=_0x1a879f(I),_0x2da8c3=_0x1a879f(_0x30f196),_0x2b8b15=_0x2c858e(()=>_0x2da8c3['getCurrentTypeOfUnit$'](_0x14c1f5['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x36aa98,_0x1e141b]=_0x5b847f(null),[_0x4155ab,_0x3d5fef]=_0x5b847f(h['IDLE']),_0x19f582=_0x26071b(null);return _0x2a5c1b(()=>(_0x2b8b15&&_0x4f3789['getLiveShareCoordinator'](_0x2b8b15['getUnitId']())[_0x563dec(0x121)](_0x1be488=>{var _0x2332a0=_0x563dec;_0x1e141b(_0x1be488),_0x19f582[_0x2332a0(0x11a)]=_0x1be488[_0x2332a0(0x148)][_0x2332a0(0x114)](_0x3b665a=>{_0x3d5fef(_0x3b665a);});}),()=>{var _0x3bb493=_0x563dec,_0x22bc4b;(_0x22bc4b=_0x19f582[_0x3bb493(0x11a)])==null||_0x22bc4b[_0x3bb493(0x127)](),_0x19f582[_0x3bb493(0x11a)]=null;}),[_0x2b8b15,_0x4f3789]),_0x36aa98?_0x5e2a77(_0x57c4cd,{'align':_0x563dec(0xf6),'disabled':_0x4155ab===h['OFFLINE'],'className':_0x563dec(0x134),'overlay':_0x5e2a77($e,{'status':_0x4155ab,'coordinator':_0x36aa98}),'children':_0x5e2a77(_0x563dec(0xe3),{'className':_0x3354fe(_0x563dec(0x113),{'univer-cursor-not-allowed':_0x4155ab===h[_0x563dec(0x13e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4155ab!==h[_0x563dec(0x13e)]}),'type':_0x563dec(0xe3),'children':_0x5e2a77(B,{'className':_0x563dec(0xdc)})})}):null;}function $e(_0x2e8138){var _0x257b1=_0x5258fa;const {status:_0x17a195,coordinator:_0x29122c}=_0x2e8138;switch(_0x17a195){case h[_0x257b1(0xd4)]:return _0x5e2a77(Fe,{'coordinator':_0x29122c});case h[_0x257b1(0x13b)]:return _0x5e2a77(He,{'coordinator':_0x29122c});case h['NOT_FOLLOWING']:return _0x5e2a77(je,{'coordinator':_0x29122c});case h[_0x257b1(0x13e)]:return _0x5e2a77(Ve,{});case h[_0x257b1(0xfa)]:return _0x5e2a77(Ue,{'coordinator':_0x29122c});default:return null;}}function Fe(_0x2a2f3a){var _0x5a1536=_0x5258fa;const {coordinator:_0x411181}=_0x2a2f3a;return _0x57e686(_0x49f367,{'children':[_0x5e2a77('div',{'className':_0x5a1536(0x100),'children':_0x5a1536(0x109)}),_0x5e2a77(_0x32a223,{'onClick':()=>_0x411181[_0x5a1536(0x11f)](),'children':_0x5a1536(0x144)})]});}function He(_0x371f8f){var _0x50a77f=_0x5258fa;const {coordinator:_0x4ad7d8}=_0x371f8f;return _0x57e686(_0x49f367,{'children':[_0x5e2a77(_0x50a77f(0xd8),{'className':_0x50a77f(0x100),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x5e2a77(_0x32a223,{'onClick':()=>_0x4ad7d8[_0x50a77f(0x12c)](),'children':_0x50a77f(0xc3)})]});}function je(_0x5a04e3){var _0x16316c=_0x5258fa;const {coordinator:_0x282ada}=_0x5a04e3;return _0x57e686(_0x49f367,{'children':[_0x5e2a77(_0x16316c(0xd8),{'className':_0x16316c(0x100),'children':_0x16316c(0xdd)}),_0x5e2a77(_0x32a223,{'variant':'text','onClick':()=>_0x282ada[_0x16316c(0x9a)](),'children':_0x16316c(0xbd)})]});}function Ue(_0x41aea7){var _0x600243=_0x5258fa;const {coordinator:_0x45db9c}=_0x41aea7;return _0x57e686(_0x49f367,{'children':[_0x5e2a77(_0x600243(0xd8),{'className':_0x600243(0x100),'children':_0x600243(0xf1)}),_0x5e2a77(_0x32a223,{'variant':'default','onClick':()=>_0x45db9c[_0x600243(0xc5)](),'children':_0x600243(0x101)})]});}function Ve(){return _0x5e2a77(_0x49f367,{'children':'You\x27are\x20offline.'});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x539ecf,_0x35670f,_0x5c52e9,_0x29da7d)=>{for(var _0x4237df=_0x29da7d>0x1?void 0x0:_0x29da7d?Me(_0x35670f,_0x5c52e9):_0x35670f,_0x1df4d9=_0x539ecf['length']-0x1,_0xf75b98;_0x1df4d9>=0x0;_0x1df4d9--)(_0xf75b98=_0x539ecf[_0x1df4d9])&&(_0x4237df=_0xf75b98(_0x4237df)||_0x4237df);return _0x4237df;},$=(_0x4cab6c,_0x3edae9)=>(_0x334a58,_0x5b0497)=>_0x3edae9(_0x334a58,_0x5b0497,_0x4cab6c);let b=class extends _0x5d78d5{constructor(_0x3a833c,_0x5786c6){var _0x5f0ba1=_0x5258fa;super(),this[_0x5f0ba1(0xe8)]=_0x3a833c,this[_0x5f0ba1(0x102)]=_0x5786c6,this[_0x5f0ba1(0xff)]();}['_mountLiveShare'](){var _0x38e8ca=_0x5258fa;this[_0x38e8ca(0xfe)](this[_0x38e8ca(0x102)][_0x38e8ca(0x10a)](_0x5e9d9c[_0x38e8ca(0x10f)],()=>_0x21477e(Te,this[_0x38e8ca(0xe8)])));}};b=ke([$(0x0,_0x15c34c(_0x1bb1a3)),$(0x1,_0x48f43a)],b);var Ge=Object[_0x5258fa(0x9f)],We=Object[_0x5258fa(0x9e)],Ye=(_0x366853,_0x2d9f78,_0x4094ca)=>_0x2d9f78 in _0x366853?Ge(_0x366853,_0x2d9f78,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4094ca}):_0x366853[_0x2d9f78]=_0x4094ca,Be=(_0x5a9b1f,_0x2ad13e,_0x220fa4,_0x434ca9)=>{for(var _0x5cd7ea=_0x434ca9>0x1?void 0x0:_0x434ca9?We(_0x2ad13e,_0x220fa4):_0x2ad13e,_0x331996=_0x5a9b1f['length']-0x1,_0x11ef89;_0x331996>=0x0;_0x331996--)(_0x11ef89=_0x5a9b1f[_0x331996])&&(_0x5cd7ea=_0x11ef89(_0x5cd7ea)||_0x5cd7ea);return _0x5cd7ea;},F=(_0x56e940,_0x50aec0)=>(_0x1c40fc,_0x498e04)=>_0x50aec0(_0x1c40fc,_0x498e04,_0x56e940),J=(_0x49d951,_0xd45167,_0x5187e5)=>Ye(_0x49d951,typeof _0xd45167!=_0x5258fa(0xbf)?_0xd45167+'':_0xd45167,_0x5187e5);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x607589{constructor(_0x33054d=T,_0x3734dc,_0x1c19b3){var _0x54be2f=_0x5258fa;super(),this['_config']=_0x33054d,this[_0x54be2f(0xe8)]=_0x3734dc,this['_configService']=_0x1c19b3;const {..._0x1f7b91}=_0x1c848f({},T,this[_0x54be2f(0xef)]);this['_configService'][_0x54be2f(0xe6)](Oe,_0x1f7b91);}[_0x5258fa(0xfd)](){var _0x5077c3=_0x5258fa;_0x1910a1(this[_0x5077c3(0xe8)],_0x2ab882([[L],[I],[m],[b]],this[_0x5077c3(0xef)][_0x5077c3(0x130)])),_0xbfe10e(this[_0x5077c3(0xe8)],[[m]]);}[_0x5258fa(0x128)](){var _0xda77b3=_0x5258fa;_0xbfe10e(this[_0xda77b3(0xe8)],[[b]]);}};J(O,_0x5258fa(0x129),_0x14c1f5[_0x5258fa(0xd1)]),J(O,'pluginName',Ze),O=Be([_0x36185f(_0xbe77e1),F(0x1,_0x15c34c(_0x1bb1a3)),F(0x2,_0xf2eda3)],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 _0x485ed8=_0x1708;(function(_0x5ba6a9,_0x25381d){var _0x296881=_0x1708,_0x3400b6=_0x5ba6a9();while(!![]){try{var _0xc48b78=-parseInt(_0x296881(0xde))/0x1+-parseInt(_0x296881(0xeb))/0x2*(-parseInt(_0x296881(0xcc))/0x3)+-parseInt(_0x296881(0xe4))/0x4*(-parseInt(_0x296881(0x106))/0x5)+-parseInt(_0x296881(0x11a))/0x6*(-parseInt(_0x296881(0xdb))/0x7)+-parseInt(_0x296881(0xc7))/0x8*(parseInt(_0x296881(0xff))/0x9)+-parseInt(_0x296881(0xf1))/0xa*(-parseInt(_0x296881(0x120))/0xb)+-parseInt(_0x296881(0xf0))/0xc*(parseInt(_0x296881(0x131))/0xd);if(_0xc48b78===_0x25381d)break;else _0x3400b6['push'](_0x3400b6['shift']());}catch(_0x266e6a){_0x3400b6['push'](_0x3400b6['shift']());}}}(_0x2f03,0x2bdae));var q=Object[_0x485ed8(0xec)],z=(_0x2c09ba,_0x3a5533,_0x38b92e)=>_0x3a5533 in _0x2c09ba?q(_0x2c09ba,_0x3a5533,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38b92e}):_0x2c09ba[_0x3a5533]=_0x38b92e,d=(_0x8b2b10,_0x5960c5,_0x3c902c)=>z(_0x8b2b10,typeof _0x5960c5!=_0x485ed8(0x151)?_0x5960c5+'':_0x5960c5,_0x3c902c);import{CollaborationSessionService as _0x79d5cc,SessionStatus as _0x4d0179,UniverCollaborationClientPlugin as _0x13f08e}from'@univerjs-pro/collaboration-client';import{Disposable as _0x3c0c36,toDisposable as _0x3eb609,Inject as _0x56ae44,IUniverInstanceService as _0x2faaa5,Injector as _0x11b368,IConfigService as _0x2473bb,ICommandService as _0x20dcab,RxDisposable as _0x1bc773,UniverInstanceType as _0x5706ae,DisposableCollection as _0x28b2d6,CommandType as _0x4419b1,DependentOn as _0xaa01dd,Plugin as _0x11a0e9,merge as _0x4e2ab8,registerDependencies as _0xe717aa,mergeOverrideWithDependencies as _0x1a80dc,touchDependencies as _0x5cd586}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x228792,InsertSheetMutation as _0x295080}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x3786fd,SetScrollOperation as _0x480ee3}from'@univerjs/sheets-ui';import{useDependency as _0x503ec0,useObservable as _0x3d7e06,IUIPartsService as _0x5f5b99,BuiltInUIPart as _0x542535,connectInjector as _0x1d00fc}from'@univerjs/ui';import{jsx as _0x458b0b,jsxs as _0x257512,Fragment as _0x2d7bfa}from'react/jsx-runtime';function _0x1708(_0x1332b7,_0x25df24){var _0x2f0372=_0x2f03();return _0x1708=function(_0x170897,_0x49aa22){_0x170897=_0x170897-0xba;var _0x2da45a=_0x2f0372[_0x170897];return _0x2da45a;},_0x1708(_0x1332b7,_0x25df24);}import{Dropdown as _0x6c2787,clsx as _0x3c8900,Button as _0x721d66}from'@univerjs/design';import{forwardRef as _0x128413,useRef as _0x50377a,createElement as _0x252481,useState as _0x236131,useEffect as _0x45d8fa}from'react';import{CollaborationEvent as _0x48bc07,parseProtocolChangeset as _0x105b53}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x4e6368,Subject as _0x4fa684}from'rxjs';import{takeUntil as _0x510391,throttleTime as _0x3ce606}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x3c0c36{constructor(){var _0x2abe05=_0x485ed8;super(...arguments),d(this,_0x2abe05(0xe3),new Set()),d(this,_0x2abe05(0xd8),new Set());}[_0x485ed8(0x15e)](_0xfc28ce){var _0x1af626=_0x485ed8;return this[_0x1af626(0xe3)][_0x1af626(0xe1)](_0xfc28ce),_0x3eb609(()=>this[_0x1af626(0xe3)]['delete'](_0xfc28ce));}['registerInitialStateReporter'](_0x43c41e){var _0x24c908=_0x485ed8;return this['_reporters'][_0x24c908(0xe1)](_0x43c41e),_0x3eb609(()=>this[_0x24c908(0xd8)][_0x24c908(0x139)](_0x43c41e));}[_0x485ed8(0x15b)](_0x344a7e){var _0x2ed306=_0x485ed8;return this[_0x2ed306(0xe3)][_0x2ed306(0x15a)](_0x344a7e);}[_0x485ed8(0x14c)](_0x40c54d){var _0x365a1d=_0x485ed8;return Array[_0x365a1d(0x116)](this[_0x365a1d(0xd8)])[_0x365a1d(0xc1)](_0x28c287=>_0x28c287(_0x40c54d));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x597d5c,_0x4e8890,_0x508372,_0x94256a)=>{var _0x1702e1=_0x485ed8;for(var _0x14926c=_0x94256a>0x1?void 0x0:_0x94256a?Ee(_0x4e8890,_0x508372):_0x4e8890,_0x68623=_0x597d5c[_0x1702e1(0xc9)]-0x1,_0x5a087e;_0x68623>=0x0;_0x68623--)(_0x5a087e=_0x597d5c[_0x68623])&&(_0x14926c=_0x5a087e(_0x14926c)||_0x14926c);return _0x14926c;},Ne=(_0x5d17dc,_0x57d2f2)=>(_0x329cf2,_0x395fc1)=>_0x57d2f2(_0x329cf2,_0x395fc1,_0x5d17dc);let m=class extends _0x3c0c36{constructor(_0x139647){var _0x2af62d=_0x485ed8;super(),this[_0x2af62d(0x16e)]=_0x139647,this[_0x2af62d(0xd6)]();}[_0x485ed8(0xd6)](){var _0xc9aefb=_0x485ed8;[_0x3786fd['id'],_0x480ee3['id'],_0x228792['id']][_0xc9aefb(0xea)](_0x3b0ba1=>{var _0x29bee9=_0xc9aefb;this[_0x29bee9(0x148)](this['_liveShareService'][_0x29bee9(0x15e)](_0x3b0ba1));});}};m=we([Ne(0x0,_0x56ae44(L))],m);var c=function(){var _0x42a8d8=_0x485ed8;return c=Object[_0x42a8d8(0xe7)]||function(_0x48592e){var _0x419122=_0x42a8d8;for(var _0x23e300,_0x1b4afd=0x1,_0x2a94ff=arguments['length'];_0x1b4afd<_0x2a94ff;_0x1b4afd++){_0x23e300=arguments[_0x1b4afd];for(var _0x3088d5 in _0x23e300)Object[_0x419122(0xbc)][_0x419122(0x138)]['call'](_0x23e300,_0x3088d5)&&(_0x48592e[_0x3088d5]=_0x23e300[_0x3088d5]);}return _0x48592e;},c['apply'](this,arguments);},Ce=function(_0x850a21,_0x3ac348){var _0x5e4134=_0x485ed8,_0x5a08b7={};for(var _0x4c13d7 in _0x850a21)Object[_0x5e4134(0xbc)][_0x5e4134(0x138)][_0x5e4134(0x13e)](_0x850a21,_0x4c13d7)&&_0x3ac348[_0x5e4134(0xcf)](_0x4c13d7)<0x0&&(_0x5a08b7[_0x4c13d7]=_0x850a21[_0x4c13d7]);if(_0x850a21!=null&&typeof Object[_0x5e4134(0xce)]==_0x5e4134(0x16a)){for(var _0x2d2084=0x0,_0x4c13d7=Object[_0x5e4134(0xce)](_0x850a21);_0x2d2084<_0x4c13d7[_0x5e4134(0xc9)];_0x2d2084++)_0x3ac348[_0x5e4134(0xcf)](_0x4c13d7[_0x2d2084])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x850a21,_0x4c13d7[_0x2d2084])&&(_0x5a08b7[_0x4c13d7[_0x2d2084]]=_0x850a21[_0x4c13d7[_0x2d2084]]);}return _0x5a08b7;},W=_0x128413(function(_0x39cbca,_0xc46fa9){var _0x124f30=_0x485ed8,_0x1bd18d=_0x39cbca[_0x124f30(0x13b)],_0x3e06a0=_0x39cbca['id'],_0x544ae7=_0x39cbca['className'],_0x4e14b1=_0x39cbca['extend'],_0x2ff5b2=Ce(_0x39cbca,[_0x124f30(0x13b),'id',_0x124f30(0x14e),_0x124f30(0x112)]),_0x39b26f='univerjs-icon\x20univerjs-icon-'[_0x124f30(0xc3)](_0x3e06a0,'\x20')['concat'](_0x544ae7||'')[_0x124f30(0x162)](),_0x2ea1e7=_0x50377a('_'[_0x124f30(0xc3)](Le()));return Y(_0x1bd18d,''['concat'](_0x3e06a0),{'defIds':_0x1bd18d[_0x124f30(0x133)],'idSuffix':_0x2ea1e7['current']},c({'ref':_0xc46fa9,'className':_0x39b26f},_0x2ff5b2),_0x4e14b1);});function Y(_0x8b3b6,_0x10c536,_0x21e41d,_0x43e23e,_0xb48ee3){var _0xd53fc9=_0x485ed8;return _0x252481(_0x8b3b6[_0xd53fc9(0x169)],c(c({'key':_0x10c536},De(_0x8b3b6,_0x21e41d,_0xb48ee3)),_0x43e23e),(xe(_0x8b3b6,_0x21e41d)['children']||[])[_0xd53fc9(0xc1)](function(_0x4f1e54,_0x338b41){var _0x318be2=_0xd53fc9;return Y(_0x4f1e54,''[_0x318be2(0xc3)](_0x10c536,'-')[_0x318be2(0xc3)](_0x8b3b6['tag'],'-')['concat'](_0x338b41),_0x21e41d,void 0x0,_0xb48ee3);}));}function De(_0x460c2d,_0x410c3f,_0x4d6f13){var _0x3da38d=_0x485ed8,_0xf10abe=c({},_0x460c2d[_0x3da38d(0x14f)]);_0x4d6f13!=null&&_0x4d6f13['colorChannel1']&&_0xf10abe[_0x3da38d(0x165)]==='colorChannel1'&&(_0xf10abe[_0x3da38d(0x165)]=_0x4d6f13['colorChannel1']),_0x460c2d[_0x3da38d(0x169)]===_0x3da38d(0x10f)&&_0xf10abe['id']&&(_0xf10abe['id']=_0xf10abe['id']+_0x410c3f[_0x3da38d(0xe2)]),Object[_0x3da38d(0x126)](_0xf10abe)[_0x3da38d(0xea)](function(_0x963869){var _0x4cd2b1=_0x3da38d,_0x20bf04=_0x963869[0x0],_0x18ec6f=_0x963869[0x1];_0x20bf04===_0x4cd2b1(0x10f)&&typeof _0x18ec6f==_0x4cd2b1(0x10b)&&(_0xf10abe[_0x20bf04]=_0x18ec6f[_0x4cd2b1(0xfb)](/url\(#(.*)\)/,_0x4cd2b1(0x14a)['concat'](_0x410c3f[_0x4cd2b1(0xe2)],')')));});var _0x540ae2=_0x410c3f[_0x3da38d(0x133)];return!_0x540ae2||_0x540ae2[_0x3da38d(0xc9)]===0x0||(_0x460c2d['tag']===_0x3da38d(0x109)&&_0xf10abe[_0x3da38d(0x105)]&&(_0xf10abe['xlink:href']=_0xf10abe[_0x3da38d(0x105)]+_0x410c3f[_0x3da38d(0xe2)]),Object['entries'](_0xf10abe)['forEach'](function(_0x46be5c){var _0x447f25=_0x3da38d,_0x5a43a5=_0x46be5c[0x0],_0x5ad1c9=_0x46be5c[0x1];typeof _0x5ad1c9==_0x447f25(0x10b)&&(_0xf10abe[_0x5a43a5]=_0x5ad1c9[_0x447f25(0xfb)](/url\(#(.*)\)/,_0x447f25(0x14a)[_0x447f25(0xc3)](_0x410c3f[_0x447f25(0xe2)],')')));})),_0xf10abe;}function _0x2f03(){var _0x32c883=['221855rIMmwN','requireSession','end','use','executeCommand','string','getLiveShareCoordinator','memberID','NOT_FOLLOWING','mask','LIVESHARE_FETCH_OPERATIONS','getMemberID','extend','OPERATION','http://www.w3.org/2000/svg','OFFLINE','from','_uiPartsService','following','LIVESHARE_TERMINATE','22224WPTDOM','toString','parse','_handleNewHost','type','univer-w-full\x20univer-mb-3\x20univer-text-sm','2420319TzapdQ','Stop\x20presenting','LIVESHARE_OPERATION','_status','default','_stopPresenting','entries','getConfig','_commandDisposable','registerComponent','_unitID','children','operations','_commandService','startFollowing','unsubscribe','not-following','793fNHbPj','dispose','defIds','_handleOnline','_config','Stop\x20following','_mountLiveShare','hasOwnProperty','delete','pipe','icon','_stopFollowing','_collabSessionService','call','reverse','You\x27re\x20not\x20following\x20the\x20presenter','evenodd','getTypeOfUnitDisposed$','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','_injector','_handleTerminate','UNIVER_UNKNOWN','includes','disposeWithMe','setConfig','url(#$1','presenting','getInitialStates','_startFollowing','className','attrs','random','symbol','div','SAME_OPERATION_SHARE_INTERVAL','next','PRESENTING','svg','Present\x20this\x20document','stopPresenting','UniverIcon','has','shouldShareOperation','_configService','subscribe','registerSharedOperation','getUnitId','path','status$','trim','stopFollowing','_univerInstanceService','fill','getTypeOfUnitAdded$','substring','You\x27re\x20following\x20the\x20presenter','tag','function','params','Start','ONLINE','_liveShareService','onRendered','getValue','prototype','set','LIVESHARE_NEW_HOST','clear','unitId','map','_collabSession','concat','offline','_status$','Start\x20following','1016tshvKX','FOLLOWING','length','_fetchOperations','displayName','3kMkLte','send','getOwnPropertySymbols','indexOf','current','0\x200\x2017\x2017','1em','then','pluginName','_startLiveShareCoordinator','_init','_startPresenting','_reporters','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','NEW_CHANGESETS','574ueJiZD','onStarting','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','68700wMEYzq','button','sessionStatus$','add','idSuffix','_sharedOperations','16eSLuhP','stringify','presenter','assign','tryStartPresenting','data','forEach','391642ZanzpZ','defineProperty','idle','asObservable','dispose$','61188gieuxp','10LAJpQh','getCurrentTypeOfUnit$','currentColor','live-share-icon','_handleOperation','_beIdle','_presenter','UNIVER_LIVE_SHARE_PLUGIN','UNIVER_SHEET','_handleOffline','replace','IDLE','_entities','LIVESHARE_REQUEST_HOST','23931lpvCKv','get','init','complete','getOwnPropertyDescriptor','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','xlink:href'];_0x2f03=function(){return _0x32c883;};return _0x2f03();}function xe(_0x31facb,_0x51b636){var _0x370531=_0x485ed8,_0x350d8b,_0x4b53dd=_0x51b636[_0x370531(0x133)];return!_0x4b53dd||_0x4b53dd[_0x370531(0xc9)]===0x0?_0x31facb:_0x31facb['tag']==='defs'&&(!((_0x350d8b=_0x31facb['children'])===null||_0x350d8b===void 0x0)&&_0x350d8b['length'])?c(c({},_0x31facb),{'children':_0x31facb[_0x370531(0x12b)][_0x370531(0xc1)](function(_0x28a0a5){var _0x31c0ec=_0x370531;return typeof _0x28a0a5[_0x31c0ec(0x14f)]['id']=='string'&&_0x4b53dd&&_0x4b53dd[_0x31c0ec(0x147)](_0x28a0a5[_0x31c0ec(0x14f)]['id'])?c(c({},_0x28a0a5),{'attrs':c(c({},_0x28a0a5['attrs']),{'id':_0x28a0a5[_0x31c0ec(0x14f)]['id']+_0x51b636[_0x31c0ec(0xe2)]})}):_0x28a0a5;})}):_0x31facb;}function Le(){var _0x22671d=_0x485ed8;return Math[_0x22671d(0x150)]()[_0x22671d(0x11b)](0x24)[_0x22671d(0x167)](0x2,0x8);}W[_0x485ed8(0xcb)]=_0x485ed8(0x159);var ye={'tag':_0x485ed8(0x156),'attrs':{'xmlns':_0x485ed8(0x114),'fill':'none','viewBox':_0x485ed8(0xd1),'width':_0x485ed8(0xd2),'height':_0x485ed8(0xd2)},'children':[{'tag':_0x485ed8(0x160),'attrs':{'fill':'currentColor','d':_0x485ed8(0x104)}},{'tag':'path','attrs':{'fill':_0x485ed8(0xf3),'d':_0x485ed8(0xd9),'fillRule':_0x485ed8(0x141),'clipRule':_0x485ed8(0x141)}}]},B=_0x128413(function(_0x19d760,_0x5bf795){var _0x5da537=_0x485ed8;return _0x252481(W,Object[_0x5da537(0xe7)]({},_0x19d760,{'id':_0x5da537(0xf4),'ref':_0x5bf795,'icon':ye}));});B[_0x485ed8(0xcb)]='LiveShareIcon';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x4962a5,_0x5eb086,_0x48eacd,_0x3c886f)=>{var _0x4c2504=_0x485ed8;for(var _0x227def=_0x3c886f>0x1?void 0x0:_0x3c886f?Re(_0x5eb086,_0x48eacd):_0x5eb086,_0x36e320=_0x4962a5[_0x4c2504(0xc9)]-0x1,_0x4ccb80;_0x36e320>=0x0;_0x36e320--)(_0x4ccb80=_0x4962a5[_0x36e320])&&(_0x227def=_0x4ccb80(_0x227def)||_0x227def);return _0x227def;},f=(_0x1c8978,_0x1235d3)=>(_0x4ec311,_0x17758e)=>_0x1235d3(_0x4ec311,_0x17758e,_0x1c8978);let I=class extends _0x1bc773{constructor(_0x25a301,_0x45ee7d,_0x3a6a26){var _0x51155c=_0x485ed8;super(),d(this,_0x51155c(0xfd),new Map()),(this[_0x51155c(0x164)]=_0x25a301,this[_0x51155c(0x144)]=_0x45ee7d,this['_collabSessionService']=_0x3a6a26,this[_0x51155c(0xd6)]());}async[_0x485ed8(0x10c)](_0x3fdcdd){var _0x10bed2=_0x485ed8;return this['_entities'][_0x10bed2(0x15a)](_0x3fdcdd)||await this[_0x10bed2(0xd5)](_0x3fdcdd),this['_entities'][_0x10bed2(0x100)](_0x3fdcdd);}[_0x485ed8(0xd6)](){var _0x1eaf9d=_0x485ed8;this[_0x1eaf9d(0x164)][_0x1eaf9d(0x166)](_0x5706ae[_0x1eaf9d(0xf9)])[_0x1eaf9d(0x13a)](_0x510391(this['dispose$']))[_0x1eaf9d(0x15d)](async _0x42d019=>{var _0x543218=_0x1eaf9d;const _0x8cb3a4=_0x42d019[_0x543218(0x15f)]();this[_0x543218(0xfd)][_0x543218(0x15a)](_0x8cb3a4)||this[_0x543218(0xd5)](_0x8cb3a4);}),this['_univerInstanceService'][_0x1eaf9d(0x142)](_0x5706ae['UNIVER_SHEET'])['pipe'](_0x510391(this['dispose$']))[_0x1eaf9d(0x15d)](_0x12ce53=>{var _0x1b0b40=_0x1eaf9d;const _0x3b0210=_0x12ce53[_0x1b0b40(0x15f)](),_0xf27835=this[_0x1b0b40(0xfd)][_0x1b0b40(0x100)](_0x3b0210);_0xf27835==null||_0xf27835[_0x1b0b40(0x132)]();});}async[_0x485ed8(0xd5)](_0x457c25){var _0x55188f=_0x485ed8;const _0x712e30=await this[_0x55188f(0x13d)][_0x55188f(0x107)](_0x457c25),_0x17bb53=this['_injector']['createInstance'](C,_0x457c25,_0x712e30);return _0x17bb53[_0x55188f(0x101)](),this[_0x55188f(0xfd)][_0x55188f(0xbd)](_0x457c25,_0x17bb53),_0x17bb53;}};I=Z([f(0x0,_0x2faaa5),f(0x1,_0x56ae44(_0x11b368)),f(0x2,_0x56ae44(_0x79d5cc))],I);var h=(_0x409170=>(_0x409170[_0x485ed8(0x115)]=_0x485ed8(0xc4),_0x409170[_0x485ed8(0xfc)]=_0x485ed8(0xed),_0x409170['FOLLOWING']=_0x485ed8(0x118),_0x409170['NOT_FOLLOWING']=_0x485ed8(0x130),_0x409170[_0x485ed8(0x155)]='presenting',_0x409170))(h||{});const Pe=_0x485ed8(0x153),Ae=0xc8;let C=class extends _0x1bc773{constructor(_0x4d27f9,_0x5030af,_0x48f3b7,_0x47e387,_0x4dab2d){var _0x478eb5=_0x485ed8;super(),d(this,_0x478eb5(0xc5),new _0x4e6368(_0x478eb5(0xed))),d(this,_0x478eb5(0x161),this[_0x478eb5(0xc5)][_0x478eb5(0xee)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,'_presenter',null),(this[_0x478eb5(0x12a)]=_0x4d27f9,this[_0x478eb5(0xc2)]=_0x5030af,this[_0x478eb5(0x15c)]=_0x48f3b7,this[_0x478eb5(0x16e)]=_0x47e387,this[_0x478eb5(0x12d)]=_0x4dab2d);}get['_status'](){var _0x67c0f5=_0x485ed8;return this[_0x67c0f5(0xc5)][_0x67c0f5(0xbb)]();}['dispose'](){var _0x201484=_0x485ed8,_0x4e0650;(_0x4e0650=this[_0x201484(0x128)])==null||_0x4e0650['dispose'](),this[_0x201484(0xc5)][_0x201484(0x154)](_0x201484(0xed)),this['_status$'][_0x201484(0x102)]();}['init'](){var _0x2cb95e=_0x485ed8;this[_0x2cb95e(0xd6)]||(this[_0x2cb95e(0xd6)]=!0x0,this[_0x2cb95e(0xc2)][_0x2cb95e(0xe0)]['pipe'](_0x510391(this['dispose$']))[_0x2cb95e(0x15d)](_0x90dcf5=>{var _0x20d835=_0x2cb95e;switch(_0x90dcf5){case _0x4d0179[_0x20d835(0x115)]:this[_0x20d835(0xfa)]();break;case _0x4d0179[_0x20d835(0x16d)]:this[_0x20d835(0x134)]();break;}}),this['_collabSession']['event$'][_0x2cb95e(0x13a)](_0x510391(this[_0x2cb95e(0xef)]))[_0x2cb95e(0x15d)](_0x411b0a=>{var _0x30f24f=_0x2cb95e;const {eventID:_0x43bb27}=_0x411b0a;switch(_0x43bb27){case _0x48bc07[_0x30f24f(0xbe)]:this[_0x30f24f(0x11d)](_0x411b0a);break;case _0x48bc07[_0x30f24f(0x122)]:this['_handleOperation'](_0x411b0a);break;case _0x48bc07['LIVESHARE_TERMINATE']:this[_0x30f24f(0x145)]();break;case _0x48bc07[_0x30f24f(0xda)]:this['_handleNewChangeSets'](_0x411b0a);break;}}));}[_0x485ed8(0xe8)](){var _0x25bd15=_0x485ed8;this[_0x25bd15(0xc2)]['send']({'eventID':_0x48bc07[_0x25bd15(0xfe)],'data':{'unitID':this[_0x25bd15(0x12a)],'userID':this[_0x25bd15(0xc2)][_0x25bd15(0x111)]()}},this['_unitID']);}[_0x485ed8(0x158)](){var _0x286f80=_0x485ed8;this['_status']===_0x286f80(0x14b)&&(this[_0x286f80(0xc5)][_0x286f80(0x154)](_0x286f80(0xed)),this[_0x286f80(0xc2)][_0x286f80(0xcd)]({'eventID':_0x48bc07[_0x286f80(0x119)],'data':{'unitID':this[_0x286f80(0x12a)]}},this[_0x286f80(0x12a)]));}[_0x485ed8(0x12e)](){var _0x28adfa=_0x485ed8;this[_0x28adfa(0x123)]==='not-following'&&(this[_0x28adfa(0xc5)][_0x28adfa(0x154)](_0x28adfa(0x118)),this[_0x28adfa(0x14d)]());}['stopFollowing'](){var _0x122dc4=_0x485ed8;this[_0x122dc4(0x123)]===_0x122dc4(0x118)&&this[_0x122dc4(0x13c)]();}[_0x485ed8(0x11d)](_0x5f5544){var _0x1b61c7=_0x485ed8;const {presenter:_0x5e92c3}=_0x5f5544[_0x1b61c7(0xe9)],_0x423157=this[_0x1b61c7(0xc2)][_0x1b61c7(0x111)]();this[_0x1b61c7(0xf7)]=_0x5e92c3,_0x5e92c3===_0x423157?(this[_0x1b61c7(0x13c)](),this[_0x1b61c7(0xd7)]()):this[_0x1b61c7(0x123)]!==_0x1b61c7(0x130)&&(this[_0x1b61c7(0x125)](),this[_0x1b61c7(0x14d)]());}[_0x485ed8(0xca)](){var _0x4a63cf=_0x485ed8;const _0x4e41cd={'eventID':_0x48bc07[_0x4a63cf(0x110)]};this[_0x4a63cf(0xc2)][_0x4a63cf(0xcd)](_0x4e41cd,this['_unitID']);}[_0x485ed8(0x145)](){var _0xbfa49f=_0x485ed8;this[_0xbfa49f(0xf7)]=null,this[_0xbfa49f(0x123)]!=='presenting'&&this[_0xbfa49f(0xf6)]();}['_handleNewChangeSets'](_0x2a3b42){var _0x108643=_0x485ed8;if(this[_0x108643(0x123)]===_0x108643(0x118)&&this[_0x108643(0xf7)]===_0x2a3b42[_0x108643(0xe9)][_0x108643(0x10d)]){const _0x2a05d6=_0x105b53(_0x2a3b42['data'])['mutations'][_0x108643(0x13f)]()['find'](_0x41d8b8=>_0x41d8b8['id']===_0x295080['id']);if(_0x2a05d6){const _0xf52662=_0x2a05d6[_0x108643(0x16b)][_0x108643(0xc0)],_0x5e945c=_0x2a05d6[_0x108643(0x16b)]['sheet']['id'];setTimeout(()=>{var _0x573866=_0x108643;this[_0x573866(0x12d)][_0x573866(0x10a)](_0x228792['id'],{'unitId':_0xf52662,'subUnitId':_0x5e945c},{'fromCollab':!0x0});});}}}[_0x485ed8(0xd7)](){var _0x5b5197=_0x485ed8;this[_0x5b5197(0xc5)][_0x5b5197(0x154)](_0x5b5197(0x14b));const _0x180553=new Map(),_0x549556=this[_0x5b5197(0x128)]=new _0x28b2d6();_0x549556['add'](_0x3eb609(()=>{var _0x597129=_0x5b5197;_0x180553[_0x597129(0xea)](_0x4495a5=>_0x4495a5[_0x597129(0x102)]()),_0x180553[_0x597129(0xbf)]();})),_0x549556[_0x5b5197(0xe1)](this['_commandService']['onCommandExecuted'](_0x23990f=>{var _0x4d50a1=_0x5b5197,_0x1eb1d8;if(_0x23990f[_0x4d50a1(0x11e)]!==_0x4419b1[_0x4d50a1(0x113)]||!this[_0x4d50a1(0x16e)]['shouldShareOperation'](_0x23990f['id']))return;const {id:_0x5661a4}=_0x23990f;let _0x10243f;_0x180553[_0x4d50a1(0x15a)](_0x5661a4)?_0x10243f=_0x180553[_0x4d50a1(0x100)](_0x5661a4):(_0x10243f=new _0x4fa684(),_0x180553[_0x4d50a1(0xbd)](_0x5661a4,_0x10243f),_0x10243f['pipe'](_0x3ce606((_0x1eb1d8=this[_0x4d50a1(0x15c)][_0x4d50a1(0x127)](Pe))!=null?_0x1eb1d8:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x358c4c=>{var _0x2bc7cf=_0x4d50a1;this['_collabSession']['send']({'eventID':_0x48bc07[_0x2bc7cf(0x122)],'data':{'unitID':this[_0x2bc7cf(0x12a)],'operations':{[_0x358c4c['id']]:{'id':_0x358c4c['id'],'params':JSON[_0x2bc7cf(0xe5)](_0x358c4c[_0x2bc7cf(0x16b)])}}}},this[_0x2bc7cf(0x12a)]);})),_0x10243f['next'](_0x23990f);})),this[_0x5b5197(0x16e)][_0x5b5197(0x14c)](this[_0x5b5197(0x12a)])['forEach'](_0x42589f=>this[_0x5b5197(0xc2)][_0x5b5197(0xcd)]({'eventID':_0x48bc07['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5b5197(0x12a)],'operations':{[_0x42589f['id']]:{'id':_0x42589f['id'],'params':JSON[_0x5b5197(0xe5)](_0x42589f[_0x5b5197(0x16b)])}}}},this[_0x5b5197(0x12a)]));}[_0x485ed8(0x125)](){var _0x1c0a50=_0x485ed8,_0x5e065f;this[_0x1c0a50(0xc5)]['next']('idle'),(_0x5e065f=this[_0x1c0a50(0x128)])==null||_0x5e065f['dispose'](),this[_0x1c0a50(0x128)]=null;}[_0x485ed8(0x14d)](){var _0x508503=_0x485ed8,_0x248763;(_0x248763=this[_0x508503(0x128)])==null||_0x248763[_0x508503(0x132)](),this['_status$'][_0x508503(0x154)]('following');}[_0x485ed8(0xf6)](){var _0x2a6ff3=_0x485ed8,_0x5bc019;this['_status$'][_0x2a6ff3(0x154)](_0x2a6ff3(0xed)),(_0x5bc019=this[_0x2a6ff3(0x128)])==null||_0x5bc019[_0x2a6ff3(0x132)](),this[_0x2a6ff3(0x128)]=null;}[_0x485ed8(0x13c)](){var _0x5c7a5e=_0x485ed8,_0x328ab0;this['_status$'][_0x5c7a5e(0x154)]('not-following'),(_0x328ab0=this[_0x5c7a5e(0x128)])==null||_0x328ab0['dispose']();}[_0x485ed8(0xf5)](_0x4213e2){var _0x39fe11=_0x485ed8;if(['presenting',_0x39fe11(0x130),_0x39fe11(0xc4)][_0x39fe11(0x147)](this[_0x39fe11(0x123)])||!_0x4213e2[_0x39fe11(0xe9)][_0x39fe11(0xe6)]||_0x4213e2['data'][_0x39fe11(0xe6)]===this['_collabSession'][_0x39fe11(0x111)]())return;this[_0x39fe11(0x123)]===_0x39fe11(0xed)&&this['_startFollowing']();const _0x36cd2c=_0x4213e2['data'][_0x39fe11(0x12c)];Object['values'](_0x36cd2c)['forEach'](_0x131b9d=>{var _0x5acb19=_0x39fe11;this[_0x5acb19(0x12d)][_0x5acb19(0x10a)](_0x131b9d['id'],_0x131b9d[_0x5acb19(0x16b)]?JSON[_0x5acb19(0x11c)](_0x131b9d[_0x5acb19(0x16b)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0xd0aff5=_0x485ed8,_0x4d8edd;this['_status$'][_0xd0aff5(0x154)](_0xd0aff5(0xc4)),(_0x4d8edd=this[_0xd0aff5(0x128)])==null||_0x4d8edd[_0xd0aff5(0x132)]();}[_0x485ed8(0x134)](){var _0x464ac6=_0x485ed8;this[_0x464ac6(0xc5)][_0x464ac6(0x154)](_0x464ac6(0xed)),this['_fetchOperations']();}};C=Z([f(0x2,_0x2473bb),f(0x3,_0x56ae44(L)),f(0x4,_0x20dcab)],C);function Te(){var _0x9208a5=_0x485ed8;const _0x4ee724=_0x503ec0(I),_0x81c92a=_0x503ec0(_0x2faaa5),_0x5b552b=_0x3d7e06(()=>_0x81c92a[_0x9208a5(0xf2)](_0x5706ae[_0x9208a5(0xf9)]),void 0x0,!0x1,[]),[_0xe660fc,_0x566904]=_0x236131(null),[_0x2c38f0,_0x2d9051]=_0x236131(h[_0x9208a5(0xfc)]),_0x460567=_0x50377a(null);return _0x45d8fa(()=>(_0x5b552b&&_0x4ee724['getLiveShareCoordinator'](_0x5b552b['getUnitId']())[_0x9208a5(0xd3)](_0x1f4aa9=>{var _0x2f6bb5=_0x9208a5;_0x566904(_0x1f4aa9),_0x460567['current']=_0x1f4aa9[_0x2f6bb5(0x161)][_0x2f6bb5(0x15d)](_0x231420=>{_0x2d9051(_0x231420);});}),()=>{var _0xec080e=_0x9208a5,_0xb80703;(_0xb80703=_0x460567[_0xec080e(0xd0)])==null||_0xb80703[_0xec080e(0x12f)](),_0x460567[_0xec080e(0xd0)]=null;}),[_0x5b552b,_0x4ee724]),_0xe660fc?_0x458b0b(_0x6c2787,{'align':_0x9208a5(0x108),'disabled':_0x2c38f0===h[_0x9208a5(0x115)],'className':_0x9208a5(0x143),'overlay':_0x458b0b($e,{'status':_0x2c38f0,'coordinator':_0xe660fc}),'children':_0x458b0b('button',{'className':_0x3c8900(_0x9208a5(0xdd),{'univer-cursor-not-allowed':_0x2c38f0===h[_0x9208a5(0x115)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2c38f0!==h[_0x9208a5(0x115)]}),'type':_0x9208a5(0xdf),'children':_0x458b0b(B,{'className':'univer-size-4'})})}):null;}function $e(_0x2f2cc8){var _0x31c2e2=_0x485ed8;const {status:_0x1b2277,coordinator:_0x174f9a}=_0x2f2cc8;switch(_0x1b2277){case h['IDLE']:return _0x458b0b(Fe,{'coordinator':_0x174f9a});case h[_0x31c2e2(0xc8)]:return _0x458b0b(He,{'coordinator':_0x174f9a});case h[_0x31c2e2(0x10e)]:return _0x458b0b(je,{'coordinator':_0x174f9a});case h[_0x31c2e2(0x115)]:return _0x458b0b(Ve,{});case h['PRESENTING']:return _0x458b0b(Ue,{'coordinator':_0x174f9a});default:return null;}}function Fe(_0x4dd185){var _0x552727=_0x485ed8;const {coordinator:_0x57fc42}=_0x4dd185;return _0x257512(_0x2d7bfa,{'children':[_0x458b0b(_0x552727(0x152),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x552727(0x157)}),_0x458b0b(_0x721d66,{'onClick':()=>_0x57fc42[_0x552727(0xe8)](),'children':_0x552727(0x16c)})]});}function He(_0x4bae8d){var _0x1b1902=_0x485ed8;const {coordinator:_0x33701c}=_0x4bae8d;return _0x257512(_0x2d7bfa,{'children':[_0x458b0b('div',{'className':_0x1b1902(0x11f),'children':_0x1b1902(0x168)}),_0x458b0b(_0x721d66,{'onClick':()=>_0x33701c[_0x1b1902(0x163)](),'children':_0x1b1902(0x136)})]});}function je(_0x8ae7d0){var _0x50aa52=_0x485ed8;const {coordinator:_0x267680}=_0x8ae7d0;return _0x257512(_0x2d7bfa,{'children':[_0x458b0b(_0x50aa52(0x152),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x50aa52(0x140)}),_0x458b0b(_0x721d66,{'variant':'text','onClick':()=>_0x267680[_0x50aa52(0x12e)](),'children':_0x50aa52(0xc6)})]});}function Ue(_0x26e64c){var _0x19bd6f=_0x485ed8;const {coordinator:_0x53e6c2}=_0x26e64c;return _0x257512(_0x2d7bfa,{'children':[_0x458b0b('div',{'className':_0x19bd6f(0x11f),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x458b0b(_0x721d66,{'variant':_0x19bd6f(0x124),'onClick':()=>_0x53e6c2[_0x19bd6f(0x158)](),'children':_0x19bd6f(0x121)})]});}function Ve(){return _0x458b0b(_0x2d7bfa,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x485ed8(0x103)],ke=(_0x5846a8,_0x3ed8fb,_0x29e61b,_0x53d270)=>{for(var _0x4f7a02=_0x53d270>0x1?void 0x0:_0x53d270?Me(_0x3ed8fb,_0x29e61b):_0x3ed8fb,_0x3ea115=_0x5846a8['length']-0x1,_0x2c5dfd;_0x3ea115>=0x0;_0x3ea115--)(_0x2c5dfd=_0x5846a8[_0x3ea115])&&(_0x4f7a02=_0x2c5dfd(_0x4f7a02)||_0x4f7a02);return _0x4f7a02;},$=(_0x4da3ee,_0x288593)=>(_0x59c5b3,_0x4ece4f)=>_0x288593(_0x59c5b3,_0x4ece4f,_0x4da3ee);let b=class extends _0x3c0c36{constructor(_0x28aed4,_0x36f0d8){var _0x19e61a=_0x485ed8;super(),this[_0x19e61a(0x144)]=_0x28aed4,this[_0x19e61a(0x117)]=_0x36f0d8,this[_0x19e61a(0x137)]();}[_0x485ed8(0x137)](){var _0x43855f=_0x485ed8;this[_0x43855f(0x148)](this['_uiPartsService'][_0x43855f(0x129)](_0x542535['HEADER_MENU'],()=>_0x1d00fc(Te,this[_0x43855f(0x144)])));}};b=ke([$(0x0,_0x56ae44(_0x11b368)),$(0x1,_0x5f5b99)],b);var Ge=Object[_0x485ed8(0xec)],We=Object[_0x485ed8(0x103)],Ye=(_0x56352f,_0x4b0531,_0x32338f)=>_0x4b0531 in _0x56352f?Ge(_0x56352f,_0x4b0531,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32338f}):_0x56352f[_0x4b0531]=_0x32338f,Be=(_0x298b86,_0x5e971d,_0xc26ad8,_0x282d63)=>{var _0x198d8f=_0x485ed8;for(var _0x2a9c3d=_0x282d63>0x1?void 0x0:_0x282d63?We(_0x5e971d,_0xc26ad8):_0x5e971d,_0x5686f6=_0x298b86[_0x198d8f(0xc9)]-0x1,_0x2d4bf9;_0x5686f6>=0x0;_0x5686f6--)(_0x2d4bf9=_0x298b86[_0x5686f6])&&(_0x2a9c3d=_0x2d4bf9(_0x2a9c3d)||_0x2a9c3d);return _0x2a9c3d;},F=(_0x1d2d2f,_0xfd9294)=>(_0x3321e3,_0x52e4ef)=>_0xfd9294(_0x3321e3,_0x52e4ef,_0x1d2d2f),J=(_0x1d5ab7,_0x458d37,_0x5a434f)=>Ye(_0x1d5ab7,typeof _0x458d37!=_0x485ed8(0x151)?_0x458d37+'':_0x458d37,_0x5a434f);const Ze=_0x485ed8(0xf8);let O=class extends _0x11a0e9{constructor(_0x851da8=T,_0x1153d1,_0x1989e6){var _0x2fcb91=_0x485ed8;super(),this[_0x2fcb91(0x135)]=_0x851da8,this['_injector']=_0x1153d1,this[_0x2fcb91(0x15c)]=_0x1989e6;const {..._0x34423a}=_0x4e2ab8({},T,this[_0x2fcb91(0x135)]);this[_0x2fcb91(0x15c)][_0x2fcb91(0x149)](Oe,_0x34423a);}[_0x485ed8(0xdc)](){var _0x35d27b=_0x485ed8;_0xe717aa(this[_0x35d27b(0x144)],_0x1a80dc([[L],[I],[m],[b]],this[_0x35d27b(0x135)]['override'])),_0x5cd586(this[_0x35d27b(0x144)],[[m]]);}[_0x485ed8(0xba)](){_0x5cd586(this['_injector'],[[b]]);}};J(O,_0x485ed8(0x11e),_0x5706ae[_0x485ed8(0x146)]),J(O,_0x485ed8(0xd4),Ze),O=Be([_0xaa01dd(_0x13f08e),F(0x1,_0x56ae44(_0x11b368)),F(0x2,_0x2473bb)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x5258fa=_0x139a;(function(_0x517ff7,_0x860d13){var _0x2b8d48=_0x139a,_0x3d7aec=_0x517ff7();while(!![]){try{var _0xc3a79d=parseInt(_0x2b8d48(0xca))/0x1*(parseInt(_0x2b8d48(0xb5))/0x2)+parseInt(_0x2b8d48(0xe9))/0x3*(-parseInt(_0x2b8d48(0x117))/0x4)+-parseInt(_0x2b8d48(0xa5))/0x5+-parseInt(_0x2b8d48(0xd2))/0x6*(parseInt(_0x2b8d48(0x10b))/0x7)+parseInt(_0x2b8d48(0xc2))/0x8*(parseInt(_0x2b8d48(0x107))/0x9)+-parseInt(_0x2b8d48(0x145))/0xa*(parseInt(_0x2b8d48(0x11e))/0xb)+-parseInt(_0x2b8d48(0xeb))/0xc*(-parseInt(_0x2b8d48(0x123))/0xd);if(_0xc3a79d===_0x860d13)break;else _0x3d7aec['push'](_0x3d7aec['shift']());}catch(_0x563652){_0x3d7aec['push'](_0x3d7aec['shift']());}}}(_0x1961,0x9b17e));function _0x139a(_0x194edb,_0xc3070e){var _0x196191=_0x1961();return _0x139a=function(_0x139a9b,_0x512bd4){_0x139a9b=_0x139a9b-0x99;var _0x25b3e4=_0x196191[_0x139a9b];return _0x25b3e4;},_0x139a(_0x194edb,_0xc3070e);}var q=Object[_0x5258fa(0x9f)],z=(_0x351192,_0x5b1dba,_0x3ce5e3)=>_0x5b1dba in _0x351192?q(_0x351192,_0x5b1dba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ce5e3}):_0x351192[_0x5b1dba]=_0x3ce5e3,d=(_0x458fea,_0x581d72,_0x4fed65)=>z(_0x458fea,typeof _0x581d72!=_0x5258fa(0xbf)?_0x581d72+'':_0x581d72,_0x4fed65);import{CollaborationSessionService as _0x166df7,SessionStatus as _0x6072e1,UniverCollaborationClientPlugin as _0xbe77e1}from'@univerjs-pro/collaboration-client';import{Disposable as _0x5d78d5,toDisposable as _0x104973,Inject as _0x15c34c,IUniverInstanceService as _0x30f196,Injector as _0x1bb1a3,IConfigService as _0xf2eda3,ICommandService as _0x225c55,RxDisposable as _0x5123e3,UniverInstanceType as _0x14c1f5,DisposableCollection as _0x2872b8,CommandType as _0x16b9f5,DependentOn as _0x36185f,Plugin as _0x607589,merge as _0x1c848f,registerDependencies as _0x1910a1,mergeOverrideWithDependencies as _0x2ab882,touchDependencies as _0xbfe10e}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x266111,InsertSheetMutation as _0x58b5c8}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x3a60b0,SetScrollOperation as _0x399981}from'@univerjs/sheets-ui';import{useDependency as _0x1a879f,useObservable as _0x2c858e,IUIPartsService as _0x48f43a,BuiltInUIPart as _0x5e9d9c,connectInjector as _0x21477e}from'@univerjs/ui';function _0x1961(){var _0x17567c=['registerSharedOperation','_stopFollowing','LIVESHARE_REQUEST_HOST','sessionStatus$','startFollowing','url(#$1','SAME_OPERATION_SHARE_INTERVAL','requireSession','getOwnPropertyDescriptor','defineProperty','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','svg','_reporters','toString','unitId','1126065viKAlJ','prototype','extend','live-share.config','_handleNewHost','call','_status$','executeCommand','UniverIcon','operations','_status','_beIdle','getLiveShareCoordinator','idSuffix','_handleOperation','idle','310162bAPFhl','string','_handleOnline','xlink:href','mask','concat','trim','complete','Start\x20following','memberID','symbol','next','_fetchOperations','8244712ltLhWv','Stop\x20following','http://www.w3.org/2000/svg','stopPresenting','stringify','assign','_init','use','5YCApvA','hasOwnProperty','attrs','not-following','_unitID','UNIVER_SHEET','parse','UNIVER_UNKNOWN','22236fndPlu','getOwnPropertySymbols','IDLE','getUnitId','_handleNewChangeSets','add','div','asObservable','dispose','icon','univer-size-4','You\x27re\x20not\x20following\x20the\x20presenter','onCommandExecuted','following','_configService','find','_presenter','button','getConfig','get','setConfig','_univerInstanceService','_injector','2999622JRYTKO','_stopPresenting','3248124EzDVgQ','LIVESHARE_NEW_HOST','LIVESHARE_OPERATION','function','_config','registerInitialStateReporter','You\x27re\x20presenting\x20the\x20document','getValue','replace','live-share-icon','entries','end','tag','defIds','0\x200\x2017\x2017','PRESENTING','LIVESHARE_FETCH_OPERATIONS','pipe','onStarting','disposeWithMe','_mountLiveShare','univer-w-full\x20univer-mb-3\x20univer-text-sm','Stop\x20presenting','_uiPartsService','map','path','getMemberID','_collabSession','9RHCwOK','from','Present\x20this\x20document','registerComponent','1379FNQHYW','delete','1em','_liveShareService','HEADER_MENU','reverse','values','set','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','subscribe','apply','includes','4epbNTb','presenter','children','current','_entities','dispose$','evenodd','303534jnUYuK','tryStartPresenting','none','then','fill','39eOdOxK','data','propertyIsEnumerable','presenting','unsubscribe','onRendered','type','_commandDisposable','shouldShareOperation','stopFollowing','currentColor','_handleTerminate','forEach','override','_collabSessionService','className','send','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','_handleOffline','indexOf','_startFollowing','colorChannel1','clear','substring','FOLLOWING','getInitialStates','_startPresenting','OFFLINE','offline','has','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','_commandService','getTypeOfUnitDisposed$','Start','10kOLrQL','_startLiveShareCoordinator','LIVESHARE_TERMINATE','status$','params','NEW_CHANGESETS','ONLINE','length','_sharedOperations','displayName','init'];_0x1961=function(){return _0x17567c;};return _0x1961();}import{jsx as _0x5e2a77,jsxs as _0x57e686,Fragment as _0x49f367}from'react/jsx-runtime';import{Dropdown as _0x57c4cd,clsx as _0x3354fe,Button as _0x32a223}from'@univerjs/design';import{forwardRef as _0x541777,useRef as _0x26071b,createElement as _0xe5743d,useState as _0x5b847f,useEffect as _0x2a5c1b}from'react';import{CollaborationEvent as _0x5e4eb2,parseProtocolChangeset as _0x3e708c}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x513b10,Subject as _0x49a04c}from'rxjs';import{takeUntil as _0x3dec29,throttleTime as _0x56270f}from'rxjs/operators';const Oe=_0x5258fa(0xa8),T={};class L extends _0x5d78d5{constructor(){super(...arguments),d(this,'_sharedOperations',new Set()),d(this,'_reporters',new Set());}[_0x5258fa(0x150)](_0x424064){var _0x406f72=_0x5258fa;return this[_0x406f72(0x14d)][_0x406f72(0xd7)](_0x424064),_0x104973(()=>this[_0x406f72(0x14d)][_0x406f72(0x10c)](_0x424064));}[_0x5258fa(0xf0)](_0xafb6f){var _0x5c03c5=_0x5258fa;return this['_reporters']['add'](_0xafb6f),_0x104973(()=>this[_0x5c03c5(0xa2)][_0x5c03c5(0x10c)](_0xafb6f));}['shouldShareOperation'](_0x258e8f){var _0x2c7c5a=_0x5258fa;return this[_0x2c7c5a(0x14d)]['has'](_0x258e8f);}[_0x5258fa(0x13c)](_0x348174){var _0x45bc2a=_0x5258fa;return Array[_0x45bc2a(0x108)](this[_0x45bc2a(0xa2)])[_0x45bc2a(0x103)](_0x56e5a2=>_0x56e5a2(_0x348174));}}var Ee=Object[_0x5258fa(0x9e)],we=(_0xce797b,_0x56dd88,_0x1520b1,_0x3d6f23)=>{var _0xf5b9b0=_0x5258fa;for(var _0x1852de=_0x3d6f23>0x1?void 0x0:_0x3d6f23?Ee(_0x56dd88,_0x1520b1):_0x56dd88,_0x1c113d=_0xce797b[_0xf5b9b0(0x14c)]-0x1,_0x1ca097;_0x1c113d>=0x0;_0x1c113d--)(_0x1ca097=_0xce797b[_0x1c113d])&&(_0x1852de=_0x1ca097(_0x1852de)||_0x1852de);return _0x1852de;},Ne=(_0x1423ba,_0x3c5c47)=>(_0x30fea2,_0x4609a8)=>_0x3c5c47(_0x30fea2,_0x4609a8,_0x1423ba);let m=class extends _0x5d78d5{constructor(_0x2489ac){var _0x4756c8=_0x5258fa;super(),this['_liveShareService']=_0x2489ac,this[_0x4756c8(0xc8)]();}[_0x5258fa(0xc8)](){[_0x3a60b0['id'],_0x399981['id'],_0x266111['id']]['forEach'](_0x7cdfaa=>{var _0x4fc7f1=_0x139a;this[_0x4fc7f1(0xfe)](this[_0x4fc7f1(0x10e)][_0x4fc7f1(0x150)](_0x7cdfaa));});}};m=we([Ne(0x0,_0x15c34c(L))],m);var c=function(){var _0xc1b193=_0x5258fa;return c=Object['assign']||function(_0x189425){var _0x2c524e=_0x139a;for(var _0x80c157,_0x11064b=0x1,_0x1358fc=arguments[_0x2c524e(0x14c)];_0x11064b<_0x1358fc;_0x11064b++){_0x80c157=arguments[_0x11064b];for(var _0x2f94fc in _0x80c157)Object['prototype'][_0x2c524e(0xcb)][_0x2c524e(0xaa)](_0x80c157,_0x2f94fc)&&(_0x189425[_0x2f94fc]=_0x80c157[_0x2f94fc]);}return _0x189425;},c[_0xc1b193(0x115)](this,arguments);},Ce=function(_0x4c7e9f,_0x268726){var _0x2cb23c=_0x5258fa,_0x37e4ca={};for(var _0x4475a3 in _0x4c7e9f)Object['prototype'][_0x2cb23c(0xcb)][_0x2cb23c(0xaa)](_0x4c7e9f,_0x4475a3)&&_0x268726[_0x2cb23c(0x136)](_0x4475a3)<0x0&&(_0x37e4ca[_0x4475a3]=_0x4c7e9f[_0x4475a3]);if(_0x4c7e9f!=null&&typeof Object[_0x2cb23c(0xd3)]==_0x2cb23c(0xee)){for(var _0xe5af2c=0x0,_0x4475a3=Object[_0x2cb23c(0xd3)](_0x4c7e9f);_0xe5af2c<_0x4475a3['length'];_0xe5af2c++)_0x268726[_0x2cb23c(0x136)](_0x4475a3[_0xe5af2c])<0x0&&Object[_0x2cb23c(0xa6)][_0x2cb23c(0x125)]['call'](_0x4c7e9f,_0x4475a3[_0xe5af2c])&&(_0x37e4ca[_0x4475a3[_0xe5af2c]]=_0x4c7e9f[_0x4475a3[_0xe5af2c]]);}return _0x37e4ca;},W=_0x541777(function(_0x4f5f7b,_0x4b36dc){var _0xe05a70=_0x5258fa,_0x3f0de1=_0x4f5f7b['icon'],_0x4c8990=_0x4f5f7b['id'],_0x1a3707=_0x4f5f7b[_0xe05a70(0x132)],_0x4848c5=_0x4f5f7b['extend'],_0x4ec7f3=Ce(_0x4f5f7b,[_0xe05a70(0xdb),'id',_0xe05a70(0x132),_0xe05a70(0xa7)]),_0x237c50='univerjs-icon\x20univerjs-icon-'['concat'](_0x4c8990,'\x20')[_0xe05a70(0xba)](_0x1a3707||'')[_0xe05a70(0xbb)](),_0x31212b=_0x26071b('_'[_0xe05a70(0xba)](Le()));return Y(_0x3f0de1,''[_0xe05a70(0xba)](_0x4c8990),{'defIds':_0x3f0de1[_0xe05a70(0xf8)],'idSuffix':_0x31212b[_0xe05a70(0x11a)]},c({'ref':_0x4b36dc,'className':_0x237c50},_0x4ec7f3),_0x4848c5);});function Y(_0x9aa26f,_0x12a3ce,_0x1ff5d8,_0x4992b3,_0xcc4081){var _0xa6acde=_0x5258fa;return _0xe5743d(_0x9aa26f[_0xa6acde(0xf7)],c(c({'key':_0x12a3ce},De(_0x9aa26f,_0x1ff5d8,_0xcc4081)),_0x4992b3),(xe(_0x9aa26f,_0x1ff5d8)[_0xa6acde(0x119)]||[])[_0xa6acde(0x103)](function(_0x21688a,_0x25038a){var _0x5dc11b=_0xa6acde;return Y(_0x21688a,''[_0x5dc11b(0xba)](_0x12a3ce,'-')[_0x5dc11b(0xba)](_0x9aa26f['tag'],'-')[_0x5dc11b(0xba)](_0x25038a),_0x1ff5d8,void 0x0,_0xcc4081);}));}function De(_0x4aaecd,_0x3e4082,_0x50d5a8){var _0x27b903=_0x5258fa,_0x583c7b=c({},_0x4aaecd[_0x27b903(0xcc)]);_0x50d5a8!=null&&_0x50d5a8[_0x27b903(0x138)]&&_0x583c7b[_0x27b903(0x122)]===_0x27b903(0x138)&&(_0x583c7b[_0x27b903(0x122)]=_0x50d5a8['colorChannel1']),_0x4aaecd[_0x27b903(0xf7)]===_0x27b903(0xb9)&&_0x583c7b['id']&&(_0x583c7b['id']=_0x583c7b['id']+_0x3e4082['idSuffix']),Object[_0x27b903(0xf5)](_0x583c7b)[_0x27b903(0x12f)](function(_0x3d70f0){var _0x3c008b=_0x27b903,_0x11d835=_0x3d70f0[0x0],_0x5458b9=_0x3d70f0[0x1];_0x11d835==='mask'&&typeof _0x5458b9==_0x3c008b(0xb6)&&(_0x583c7b[_0x11d835]=_0x5458b9[_0x3c008b(0xf3)](/url\(#(.*)\)/,_0x3c008b(0x9b)['concat'](_0x3e4082[_0x3c008b(0xb2)],')')));});var _0x1f62f4=_0x3e4082[_0x27b903(0xf8)];return!_0x1f62f4||_0x1f62f4[_0x27b903(0x14c)]===0x0||(_0x4aaecd[_0x27b903(0xf7)]===_0x27b903(0xc9)&&_0x583c7b[_0x27b903(0xb8)]&&(_0x583c7b[_0x27b903(0xb8)]=_0x583c7b['xlink:href']+_0x3e4082[_0x27b903(0xb2)]),Object[_0x27b903(0xf5)](_0x583c7b)[_0x27b903(0x12f)](function(_0x9bac31){var _0x34e2a0=_0x27b903,_0x7c0466=_0x9bac31[0x0],_0xc2dd41=_0x9bac31[0x1];typeof _0xc2dd41==_0x34e2a0(0xb6)&&(_0x583c7b[_0x7c0466]=_0xc2dd41[_0x34e2a0(0xf3)](/url\(#(.*)\)/,_0x34e2a0(0x9b)['concat'](_0x3e4082[_0x34e2a0(0xb2)],')')));})),_0x583c7b;}function xe(_0x332f8c,_0x329f01){var _0x3b44d5=_0x5258fa,_0x2e1e81,_0x548e1f=_0x329f01[_0x3b44d5(0xf8)];return!_0x548e1f||_0x548e1f[_0x3b44d5(0x14c)]===0x0?_0x332f8c:_0x332f8c[_0x3b44d5(0xf7)]==='defs'&&(!((_0x2e1e81=_0x332f8c[_0x3b44d5(0x119)])===null||_0x2e1e81===void 0x0)&&_0x2e1e81[_0x3b44d5(0x14c)])?c(c({},_0x332f8c),{'children':_0x332f8c[_0x3b44d5(0x119)][_0x3b44d5(0x103)](function(_0x1b7a2d){var _0x1fe392=_0x3b44d5;return typeof _0x1b7a2d[_0x1fe392(0xcc)]['id']==_0x1fe392(0xb6)&&_0x548e1f&&_0x548e1f[_0x1fe392(0x116)](_0x1b7a2d[_0x1fe392(0xcc)]['id'])?c(c({},_0x1b7a2d),{'attrs':c(c({},_0x1b7a2d[_0x1fe392(0xcc)]),{'id':_0x1b7a2d['attrs']['id']+_0x329f01[_0x1fe392(0xb2)]})}):_0x1b7a2d;})}):_0x332f8c;}function Le(){var _0x5079a2=_0x5258fa;return Math['random']()[_0x5079a2(0xa3)](0x24)[_0x5079a2(0x13a)](0x2,0x8);}W[_0x5258fa(0x14e)]=_0x5258fa(0xad);var ye={'tag':_0x5258fa(0xa1),'attrs':{'xmlns':_0x5258fa(0xc4),'fill':_0x5258fa(0x120),'viewBox':_0x5258fa(0xf9),'width':_0x5258fa(0x10d),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x5258fa(0x12d),'d':_0x5258fa(0x141)}},{'tag':_0x5258fa(0x104),'attrs':{'fill':_0x5258fa(0x12d),'d':_0x5258fa(0xa0),'fillRule':_0x5258fa(0x11d),'clipRule':_0x5258fa(0x11d)}}]},B=_0x541777(function(_0x207e36,_0xdcb45c){var _0x9d5824=_0x5258fa;return _0xe5743d(W,Object[_0x9d5824(0xc7)]({},_0x207e36,{'id':_0x9d5824(0xf4),'ref':_0xdcb45c,'icon':ye}));});B[_0x5258fa(0x14e)]='LiveShareIcon';var Re=Object[_0x5258fa(0x9e)],Z=(_0x1cc305,_0x282081,_0x3dcee3,_0x5e63de)=>{var _0x1c9b9a=_0x5258fa;for(var _0x36bd65=_0x5e63de>0x1?void 0x0:_0x5e63de?Re(_0x282081,_0x3dcee3):_0x282081,_0x10acc0=_0x1cc305[_0x1c9b9a(0x14c)]-0x1,_0x29c53a;_0x10acc0>=0x0;_0x10acc0--)(_0x29c53a=_0x1cc305[_0x10acc0])&&(_0x36bd65=_0x29c53a(_0x36bd65)||_0x36bd65);return _0x36bd65;},f=(_0x535dbc,_0x3d98b9)=>(_0x986af1,_0x54711d)=>_0x3d98b9(_0x986af1,_0x54711d,_0x535dbc);let I=class extends _0x5123e3{constructor(_0x16eda5,_0xe09f0a,_0x8d541e){var _0x4b4d77=_0x5258fa;super(),d(this,_0x4b4d77(0x11b),new Map()),(this[_0x4b4d77(0xe7)]=_0x16eda5,this[_0x4b4d77(0xe8)]=_0xe09f0a,this['_collabSessionService']=_0x8d541e,this[_0x4b4d77(0xc8)]());}async[_0x5258fa(0xb1)](_0x5a25d6){var _0x405f36=_0x5258fa;return this[_0x405f36(0x11b)][_0x405f36(0x140)](_0x5a25d6)||await this[_0x405f36(0x146)](_0x5a25d6),this[_0x405f36(0x11b)][_0x405f36(0xe5)](_0x5a25d6);}[_0x5258fa(0xc8)](){var _0x378353=_0x5258fa;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x14c1f5['UNIVER_SHEET'])[_0x378353(0xfc)](_0x3dec29(this['dispose$']))[_0x378353(0x114)](async _0x497a88=>{var _0x5cdddd=_0x378353;const _0x24ccf7=_0x497a88[_0x5cdddd(0xd5)]();this[_0x5cdddd(0x11b)]['has'](_0x24ccf7)||this['_startLiveShareCoordinator'](_0x24ccf7);}),this[_0x378353(0xe7)][_0x378353(0x143)](_0x14c1f5[_0x378353(0xcf)])[_0x378353(0xfc)](_0x3dec29(this[_0x378353(0x11c)]))[_0x378353(0x114)](_0x1bc627=>{var _0x2065e3=_0x378353;const _0x210eee=_0x1bc627[_0x2065e3(0xd5)](),_0x40879a=this['_entities'][_0x2065e3(0xe5)](_0x210eee);_0x40879a==null||_0x40879a['dispose']();});}async[_0x5258fa(0x146)](_0x57a64b){var _0x4cda0d=_0x5258fa;const _0x1004ae=await this[_0x4cda0d(0x131)][_0x4cda0d(0x9d)](_0x57a64b),_0x2bc36c=this[_0x4cda0d(0xe8)]['createInstance'](C,_0x57a64b,_0x1004ae);return _0x2bc36c[_0x4cda0d(0x14f)](),this[_0x4cda0d(0x11b)][_0x4cda0d(0x112)](_0x57a64b,_0x2bc36c),_0x2bc36c;}};I=Z([f(0x0,_0x30f196),f(0x1,_0x15c34c(_0x1bb1a3)),f(0x2,_0x15c34c(_0x166df7))],I);var h=(_0x515e4b=>(_0x515e4b[_0x5258fa(0x13e)]=_0x5258fa(0x13f),_0x515e4b[_0x5258fa(0xd4)]=_0x5258fa(0xb4),_0x515e4b[_0x5258fa(0x13b)]=_0x5258fa(0xdf),_0x515e4b['NOT_FOLLOWING']=_0x5258fa(0xcd),_0x515e4b['PRESENTING']='presenting',_0x515e4b))(h||{});const Pe=_0x5258fa(0x9c),Ae=0xc8;let C=class extends _0x5123e3{constructor(_0x3047bc,_0x55dc15,_0x162d05,_0x5aeb67,_0x51a31a){var _0x24d12f=_0x5258fa;super(),d(this,_0x24d12f(0xab),new _0x513b10('idle')),d(this,_0x24d12f(0x148),this[_0x24d12f(0xab)][_0x24d12f(0xd9)]()),d(this,_0x24d12f(0xc8),!0x1),d(this,_0x24d12f(0x12a),null),d(this,'_presenter',null),(this[_0x24d12f(0xce)]=_0x3047bc,this['_collabSession']=_0x55dc15,this[_0x24d12f(0xe0)]=_0x162d05,this[_0x24d12f(0x10e)]=_0x5aeb67,this[_0x24d12f(0x142)]=_0x51a31a);}get[_0x5258fa(0xaf)](){var _0x210c6e=_0x5258fa;return this[_0x210c6e(0xab)][_0x210c6e(0xf2)]();}[_0x5258fa(0xda)](){var _0x917d5a=_0x5258fa,_0x4ac8ba;(_0x4ac8ba=this[_0x917d5a(0x12a)])==null||_0x4ac8ba[_0x917d5a(0xda)](),this['_status$'][_0x917d5a(0xc0)](_0x917d5a(0xb4)),this[_0x917d5a(0xab)][_0x917d5a(0xbc)]();}[_0x5258fa(0x14f)](){var _0x545346=_0x5258fa;this[_0x545346(0xc8)]||(this['_init']=!0x0,this['_collabSession'][_0x545346(0x99)][_0x545346(0xfc)](_0x3dec29(this[_0x545346(0x11c)]))['subscribe'](_0xd46afb=>{var _0x1fbd64=_0x545346;switch(_0xd46afb){case _0x6072e1[_0x1fbd64(0x13e)]:this['_handleOffline']();break;case _0x6072e1[_0x1fbd64(0x14b)]:this[_0x1fbd64(0xb7)]();break;}}),this['_collabSession']['event$'][_0x545346(0xfc)](_0x3dec29(this[_0x545346(0x11c)]))[_0x545346(0x114)](_0x1ac858=>{var _0x1b92f2=_0x545346;const {eventID:_0x5c80e6}=_0x1ac858;switch(_0x5c80e6){case _0x5e4eb2[_0x1b92f2(0xec)]:this[_0x1b92f2(0xa9)](_0x1ac858);break;case _0x5e4eb2[_0x1b92f2(0xed)]:this[_0x1b92f2(0xb3)](_0x1ac858);break;case _0x5e4eb2['LIVESHARE_TERMINATE']:this[_0x1b92f2(0x12e)]();break;case _0x5e4eb2[_0x1b92f2(0x14a)]:this['_handleNewChangeSets'](_0x1ac858);break;}}));}[_0x5258fa(0x11f)](){var _0x3a1bf7=_0x5258fa;this[_0x3a1bf7(0x106)][_0x3a1bf7(0x133)]({'eventID':_0x5e4eb2[_0x3a1bf7(0x152)],'data':{'unitID':this['_unitID'],'userID':this[_0x3a1bf7(0x106)][_0x3a1bf7(0x105)]()}},this['_unitID']);}[_0x5258fa(0xc5)](){var _0x43a2a9=_0x5258fa;this[_0x43a2a9(0xaf)]===_0x43a2a9(0x126)&&(this[_0x43a2a9(0xab)]['next'](_0x43a2a9(0xb4)),this['_collabSession'][_0x43a2a9(0x133)]({'eventID':_0x5e4eb2[_0x43a2a9(0x147)],'data':{'unitID':this[_0x43a2a9(0xce)]}},this[_0x43a2a9(0xce)]));}[_0x5258fa(0x9a)](){var _0x598f7d=_0x5258fa;this['_status']===_0x598f7d(0xcd)&&(this[_0x598f7d(0xab)]['next'](_0x598f7d(0xdf)),this[_0x598f7d(0x137)]());}[_0x5258fa(0x12c)](){var _0x2f7bb5=_0x5258fa;this[_0x2f7bb5(0xaf)]===_0x2f7bb5(0xdf)&&this[_0x2f7bb5(0x151)]();}[_0x5258fa(0xa9)](_0x4061a7){var _0x39a4b9=_0x5258fa;const {presenter:_0x2665e4}=_0x4061a7[_0x39a4b9(0x124)],_0x3bdc60=this[_0x39a4b9(0x106)]['getMemberID']();this['_presenter']=_0x2665e4,_0x2665e4===_0x3bdc60?(this[_0x39a4b9(0x151)](),this[_0x39a4b9(0x13d)]()):this['_status']!==_0x39a4b9(0xcd)&&(this[_0x39a4b9(0xea)](),this[_0x39a4b9(0x137)]());}[_0x5258fa(0xc1)](){var _0x1567b4=_0x5258fa;const _0x26ce7e={'eventID':_0x5e4eb2[_0x1567b4(0xfb)]};this[_0x1567b4(0x106)][_0x1567b4(0x133)](_0x26ce7e,this[_0x1567b4(0xce)]);}[_0x5258fa(0x12e)](){var _0x2bfd6c=_0x5258fa;this[_0x2bfd6c(0xe2)]=null,this[_0x2bfd6c(0xaf)]!==_0x2bfd6c(0x126)&&this[_0x2bfd6c(0xb0)]();}[_0x5258fa(0xd6)](_0x3ebc91){var _0x21d463=_0x5258fa;if(this[_0x21d463(0xaf)]===_0x21d463(0xdf)&&this[_0x21d463(0xe2)]===_0x3ebc91[_0x21d463(0x124)][_0x21d463(0xbe)]){const _0x595031=_0x3e708c(_0x3ebc91[_0x21d463(0x124)])['mutations'][_0x21d463(0x110)]()[_0x21d463(0xe1)](_0x4d080c=>_0x4d080c['id']===_0x58b5c8['id']);if(_0x595031){const _0x3a3e73=_0x595031[_0x21d463(0x149)][_0x21d463(0xa4)],_0x358585=_0x595031[_0x21d463(0x149)]['sheet']['id'];setTimeout(()=>{var _0x51050b=_0x21d463;this['_commandService'][_0x51050b(0xac)](_0x266111['id'],{'unitId':_0x3a3e73,'subUnitId':_0x358585},{'fromCollab':!0x0});});}}}[_0x5258fa(0x13d)](){var _0x1dfa08=_0x5258fa;this['_status$'][_0x1dfa08(0xc0)]('presenting');const _0x229265=new Map(),_0xf58a46=this[_0x1dfa08(0x12a)]=new _0x2872b8();_0xf58a46[_0x1dfa08(0xd7)](_0x104973(()=>{var _0x5919b3=_0x1dfa08;_0x229265['forEach'](_0x3b52a9=>_0x3b52a9['complete']()),_0x229265[_0x5919b3(0x139)]();})),_0xf58a46[_0x1dfa08(0xd7)](this[_0x1dfa08(0x142)][_0x1dfa08(0xde)](_0x4bd72e=>{var _0x250f8b=_0x1dfa08,_0x23cd5e;if(_0x4bd72e[_0x250f8b(0x129)]!==_0x16b9f5['OPERATION']||!this[_0x250f8b(0x10e)][_0x250f8b(0x12b)](_0x4bd72e['id']))return;const {id:_0x3d9e8f}=_0x4bd72e;let _0xac24dd;_0x229265['has'](_0x3d9e8f)?_0xac24dd=_0x229265[_0x250f8b(0xe5)](_0x3d9e8f):(_0xac24dd=new _0x49a04c(),_0x229265[_0x250f8b(0x112)](_0x3d9e8f,_0xac24dd),_0xac24dd['pipe'](_0x56270f((_0x23cd5e=this['_configService'][_0x250f8b(0xe4)](Pe))!=null?_0x23cd5e:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x250f8b(0x114)](_0x56745a=>{var _0xc97558=_0x250f8b;this[_0xc97558(0x106)][_0xc97558(0x133)]({'eventID':_0x5e4eb2[_0xc97558(0xed)],'data':{'unitID':this[_0xc97558(0xce)],'operations':{[_0x56745a['id']]:{'id':_0x56745a['id'],'params':JSON[_0xc97558(0xc6)](_0x56745a[_0xc97558(0x149)])}}}},this[_0xc97558(0xce)]);})),_0xac24dd[_0x250f8b(0xc0)](_0x4bd72e);})),this[_0x1dfa08(0x10e)][_0x1dfa08(0x13c)](this['_unitID'])[_0x1dfa08(0x12f)](_0x242f72=>this['_collabSession']['send']({'eventID':_0x5e4eb2['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1dfa08(0xce)],'operations':{[_0x242f72['id']]:{'id':_0x242f72['id'],'params':JSON[_0x1dfa08(0xc6)](_0x242f72['params'])}}}},this['_unitID']));}[_0x5258fa(0xea)](){var _0x2207b2=_0x5258fa,_0x530bc5;this[_0x2207b2(0xab)][_0x2207b2(0xc0)](_0x2207b2(0xb4)),(_0x530bc5=this[_0x2207b2(0x12a)])==null||_0x530bc5[_0x2207b2(0xda)](),this[_0x2207b2(0x12a)]=null;}['_startFollowing'](){var _0x8f5826=_0x5258fa,_0x3f857b;(_0x3f857b=this[_0x8f5826(0x12a)])==null||_0x3f857b[_0x8f5826(0xda)](),this['_status$'][_0x8f5826(0xc0)](_0x8f5826(0xdf));}[_0x5258fa(0xb0)](){var _0x21efba=_0x5258fa,_0x35f6ad;this[_0x21efba(0xab)][_0x21efba(0xc0)](_0x21efba(0xb4)),(_0x35f6ad=this[_0x21efba(0x12a)])==null||_0x35f6ad[_0x21efba(0xda)](),this[_0x21efba(0x12a)]=null;}[_0x5258fa(0x151)](){var _0x2a7e36=_0x5258fa,_0x21a69c;this[_0x2a7e36(0xab)][_0x2a7e36(0xc0)](_0x2a7e36(0xcd)),(_0x21a69c=this['_commandDisposable'])==null||_0x21a69c[_0x2a7e36(0xda)]();}[_0x5258fa(0xb3)](_0x84100f){var _0x4c7f83=_0x5258fa;if(['presenting','not-following',_0x4c7f83(0x13f)]['includes'](this[_0x4c7f83(0xaf)])||!_0x84100f[_0x4c7f83(0x124)][_0x4c7f83(0x118)]||_0x84100f['data'][_0x4c7f83(0x118)]===this[_0x4c7f83(0x106)]['getMemberID']())return;this[_0x4c7f83(0xaf)]===_0x4c7f83(0xb4)&&this[_0x4c7f83(0x137)]();const _0x6c73ca=_0x84100f[_0x4c7f83(0x124)][_0x4c7f83(0xae)];Object[_0x4c7f83(0x111)](_0x6c73ca)['forEach'](_0xe83195=>{var _0x1da899=_0x4c7f83;this[_0x1da899(0x142)]['executeCommand'](_0xe83195['id'],_0xe83195[_0x1da899(0x149)]?JSON[_0x1da899(0xd0)](_0xe83195['params']):null,{'fromCollab':!0x0});});}[_0x5258fa(0x135)](){var _0x525eef=_0x5258fa,_0x1df924;this['_status$'][_0x525eef(0xc0)](_0x525eef(0x13f)),(_0x1df924=this[_0x525eef(0x12a)])==null||_0x1df924['dispose']();}[_0x5258fa(0xb7)](){var _0x399713=_0x5258fa;this[_0x399713(0xab)][_0x399713(0xc0)](_0x399713(0xb4)),this['_fetchOperations']();}};C=Z([f(0x2,_0xf2eda3),f(0x3,_0x15c34c(L)),f(0x4,_0x225c55)],C);function Te(){var _0x563dec=_0x5258fa;const _0x4f3789=_0x1a879f(I),_0x2da8c3=_0x1a879f(_0x30f196),_0x2b8b15=_0x2c858e(()=>_0x2da8c3['getCurrentTypeOfUnit$'](_0x14c1f5['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x36aa98,_0x1e141b]=_0x5b847f(null),[_0x4155ab,_0x3d5fef]=_0x5b847f(h['IDLE']),_0x19f582=_0x26071b(null);return _0x2a5c1b(()=>(_0x2b8b15&&_0x4f3789['getLiveShareCoordinator'](_0x2b8b15['getUnitId']())[_0x563dec(0x121)](_0x1be488=>{var _0x2332a0=_0x563dec;_0x1e141b(_0x1be488),_0x19f582[_0x2332a0(0x11a)]=_0x1be488[_0x2332a0(0x148)][_0x2332a0(0x114)](_0x3b665a=>{_0x3d5fef(_0x3b665a);});}),()=>{var _0x3bb493=_0x563dec,_0x22bc4b;(_0x22bc4b=_0x19f582[_0x3bb493(0x11a)])==null||_0x22bc4b[_0x3bb493(0x127)](),_0x19f582[_0x3bb493(0x11a)]=null;}),[_0x2b8b15,_0x4f3789]),_0x36aa98?_0x5e2a77(_0x57c4cd,{'align':_0x563dec(0xf6),'disabled':_0x4155ab===h['OFFLINE'],'className':_0x563dec(0x134),'overlay':_0x5e2a77($e,{'status':_0x4155ab,'coordinator':_0x36aa98}),'children':_0x5e2a77(_0x563dec(0xe3),{'className':_0x3354fe(_0x563dec(0x113),{'univer-cursor-not-allowed':_0x4155ab===h[_0x563dec(0x13e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4155ab!==h[_0x563dec(0x13e)]}),'type':_0x563dec(0xe3),'children':_0x5e2a77(B,{'className':_0x563dec(0xdc)})})}):null;}function $e(_0x2e8138){var _0x257b1=_0x5258fa;const {status:_0x17a195,coordinator:_0x29122c}=_0x2e8138;switch(_0x17a195){case h[_0x257b1(0xd4)]:return _0x5e2a77(Fe,{'coordinator':_0x29122c});case h[_0x257b1(0x13b)]:return _0x5e2a77(He,{'coordinator':_0x29122c});case h['NOT_FOLLOWING']:return _0x5e2a77(je,{'coordinator':_0x29122c});case h[_0x257b1(0x13e)]:return _0x5e2a77(Ve,{});case h[_0x257b1(0xfa)]:return _0x5e2a77(Ue,{'coordinator':_0x29122c});default:return null;}}function Fe(_0x2a2f3a){var _0x5a1536=_0x5258fa;const {coordinator:_0x411181}=_0x2a2f3a;return _0x57e686(_0x49f367,{'children':[_0x5e2a77('div',{'className':_0x5a1536(0x100),'children':_0x5a1536(0x109)}),_0x5e2a77(_0x32a223,{'onClick':()=>_0x411181[_0x5a1536(0x11f)](),'children':_0x5a1536(0x144)})]});}function He(_0x371f8f){var _0x50a77f=_0x5258fa;const {coordinator:_0x4ad7d8}=_0x371f8f;return _0x57e686(_0x49f367,{'children':[_0x5e2a77(_0x50a77f(0xd8),{'className':_0x50a77f(0x100),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x5e2a77(_0x32a223,{'onClick':()=>_0x4ad7d8[_0x50a77f(0x12c)](),'children':_0x50a77f(0xc3)})]});}function je(_0x5a04e3){var _0x16316c=_0x5258fa;const {coordinator:_0x282ada}=_0x5a04e3;return _0x57e686(_0x49f367,{'children':[_0x5e2a77(_0x16316c(0xd8),{'className':_0x16316c(0x100),'children':_0x16316c(0xdd)}),_0x5e2a77(_0x32a223,{'variant':'text','onClick':()=>_0x282ada[_0x16316c(0x9a)](),'children':_0x16316c(0xbd)})]});}function Ue(_0x41aea7){var _0x600243=_0x5258fa;const {coordinator:_0x45db9c}=_0x41aea7;return _0x57e686(_0x49f367,{'children':[_0x5e2a77(_0x600243(0xd8),{'className':_0x600243(0x100),'children':_0x600243(0xf1)}),_0x5e2a77(_0x32a223,{'variant':'default','onClick':()=>_0x45db9c[_0x600243(0xc5)](),'children':_0x600243(0x101)})]});}function Ve(){return _0x5e2a77(_0x49f367,{'children':'You\x27are\x20offline.'});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x539ecf,_0x35670f,_0x5c52e9,_0x29da7d)=>{for(var _0x4237df=_0x29da7d>0x1?void 0x0:_0x29da7d?Me(_0x35670f,_0x5c52e9):_0x35670f,_0x1df4d9=_0x539ecf['length']-0x1,_0xf75b98;_0x1df4d9>=0x0;_0x1df4d9--)(_0xf75b98=_0x539ecf[_0x1df4d9])&&(_0x4237df=_0xf75b98(_0x4237df)||_0x4237df);return _0x4237df;},$=(_0x4cab6c,_0x3edae9)=>(_0x334a58,_0x5b0497)=>_0x3edae9(_0x334a58,_0x5b0497,_0x4cab6c);let b=class extends _0x5d78d5{constructor(_0x3a833c,_0x5786c6){var _0x5f0ba1=_0x5258fa;super(),this[_0x5f0ba1(0xe8)]=_0x3a833c,this[_0x5f0ba1(0x102)]=_0x5786c6,this[_0x5f0ba1(0xff)]();}['_mountLiveShare'](){var _0x38e8ca=_0x5258fa;this[_0x38e8ca(0xfe)](this[_0x38e8ca(0x102)][_0x38e8ca(0x10a)](_0x5e9d9c[_0x38e8ca(0x10f)],()=>_0x21477e(Te,this[_0x38e8ca(0xe8)])));}};b=ke([$(0x0,_0x15c34c(_0x1bb1a3)),$(0x1,_0x48f43a)],b);var Ge=Object[_0x5258fa(0x9f)],We=Object[_0x5258fa(0x9e)],Ye=(_0x366853,_0x2d9f78,_0x4094ca)=>_0x2d9f78 in _0x366853?Ge(_0x366853,_0x2d9f78,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4094ca}):_0x366853[_0x2d9f78]=_0x4094ca,Be=(_0x5a9b1f,_0x2ad13e,_0x220fa4,_0x434ca9)=>{for(var _0x5cd7ea=_0x434ca9>0x1?void 0x0:_0x434ca9?We(_0x2ad13e,_0x220fa4):_0x2ad13e,_0x331996=_0x5a9b1f['length']-0x1,_0x11ef89;_0x331996>=0x0;_0x331996--)(_0x11ef89=_0x5a9b1f[_0x331996])&&(_0x5cd7ea=_0x11ef89(_0x5cd7ea)||_0x5cd7ea);return _0x5cd7ea;},F=(_0x56e940,_0x50aec0)=>(_0x1c40fc,_0x498e04)=>_0x50aec0(_0x1c40fc,_0x498e04,_0x56e940),J=(_0x49d951,_0xd45167,_0x5187e5)=>Ye(_0x49d951,typeof _0xd45167!=_0x5258fa(0xbf)?_0xd45167+'':_0xd45167,_0x5187e5);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x607589{constructor(_0x33054d=T,_0x3734dc,_0x1c19b3){var _0x54be2f=_0x5258fa;super(),this['_config']=_0x33054d,this[_0x54be2f(0xe8)]=_0x3734dc,this['_configService']=_0x1c19b3;const {..._0x1f7b91}=_0x1c848f({},T,this[_0x54be2f(0xef)]);this['_configService'][_0x54be2f(0xe6)](Oe,_0x1f7b91);}[_0x5258fa(0xfd)](){var _0x5077c3=_0x5258fa;_0x1910a1(this[_0x5077c3(0xe8)],_0x2ab882([[L],[I],[m],[b]],this[_0x5077c3(0xef)][_0x5077c3(0x130)])),_0xbfe10e(this[_0x5077c3(0xe8)],[[m]]);}[_0x5258fa(0x128)](){var _0xda77b3=_0x5258fa;_0xbfe10e(this[_0xda77b3(0xe8)],[[b]]);}};J(O,_0x5258fa(0x129),_0x14c1f5[_0x5258fa(0xd1)]),J(O,'pluginName',Ze),O=Be([_0x36185f(_0xbe77e1),F(0x1,_0x15c34c(_0x1bb1a3)),F(0x2,_0xf2eda3)],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 _0x5899(){var _0x197edf=['use','LiveShareCoordinator','1em','UniverSheetsUi','assign','override','IUniverInstanceService','shouldShareOperation','stopPresenting','idSuffix','useDependency','CollaborationEvent','_beIdle','delete','LiveShareStatus','718311EQzLwy','entries','createElement','_status$','UniverProLiveShare','defineProperty','asObservable','univerjs-icon\x20univerjs-icon-','presenter','_unitID','replace','Start','currentColor','Disposable','You\x27are\x20offline.','NEW_CHANGESETS','url(#$1','apply','UniverProCollaboration','_config','PRESENTING','_handleNewHost','getValue','startFollowing','_uiPartsService','idle','Injector','status$','11FyzJyk','@univerjs-pro/collaboration','_handleTerminate','includes','_commandService','Inject','getOwnPropertyDescriptor','BehaviorSubject','registerInitialStateReporter','5640765UkFZmO','UniverIcon','current','dispose','div','add','stringify','not-following','icon','svg','BuiltInUIPart','3392138iDBpYg','clsx','concat','attrs','Stop\x20presenting','UniverUi','set','default','Start\x20following','touchDependencies','_init','getMemberID','@univerjs/sheets','5187833gfcBNZ','SetScrollOperation','Plugin','clear','presenting','Subject','_status','FOLLOWING','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','4cXhKtY','subscribe','forEach','_startPresenting','Stop\x20following','merge','NOT_FOLLOWING','_collabSession','find','Dropdown','disposeWithMe','_presenter','LIVESHARE_FETCH_OPERATIONS','children','_injector','getTypeOfUnitAdded$','You\x27re\x20presenting\x20the\x20document','text','call','DependentOn','LiveShareIcon','end','values','@univerjs/sheets-ui','tag','mask','Button','_commandDisposable','OFFLINE','_startFollowing','_mountLiveShare','@univerjs-pro/collaboration-client','onRendered','_sharedOperations','LiveShare','defIds','registerComponent','defs','xlink:href','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','LIVESHARE_NEW_HOST','getInitialStates','requireSession','unitId','getLiveShareCoordinator','_reporters','UNIVER_SHEET','rxjs','LIVESHARE_OPERATION','LIVESHARE_REQUEST_HOST','react','jsx','_handleOnline','registerSharedOperation','operations','LIVESHARE_TERMINATE','http://www.w3.org/2000/svg','exports','_handleOperation','following','LiveShareController','complete','button','jsxs','path','SAME_OPERATION_SHARE_INTERVAL','offline','next','data','_handleOffline','takeUntil','params','OPERATION','live-share.config','toDisposable','Present\x20this\x20document','Module','_startLiveShareCoordinator','has','_entities','send','_stopFollowing','forwardRef','memberID','UniverCollaborationClientPlugin','react/jsx-runtime','IConfigService','RxDisposable','pluginName','HEADER_MENU','createInstance','amd','UniverCore','_liveShareService','colorChannel1','4289460CoXJHX','_univerInstanceService','getUnitId','4982512dTgaNx','SetWorksheetActiveOperation','_configService','CollaborationSessionService','LiveShareService','string','init','SessionStatus','fill','type','onCommandExecuted','6qFTbjE','Fragment','UniverInstanceType','_collabSessionService','evenodd','extend','trim','sheet','registerDependencies','parse','_handleNewChangeSets','ICommandService','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','IUIPartsService','prototype','@univerjs/ui','useRef','dispose$','useState','toString','You\x27re\x20not\x20following\x20the\x20presenter','@univerjs/core','getTypeOfUnitDisposed$','length','@univerjs/design','live-share-icon','from','onStarting','object','map','stopFollowing','substring','IDLE','then','UniverLiveSharePlugin','symbol','rxjs/operators','throttleTime','5292890XCHuuz','_stopPresenting','tryStartPresenting','connectInjector','univer-w-full\x20univer-mb-3\x20univer-text-sm','pipe','9MHvVhQ','_fetchOperations','none','DesktopLiveShareController','indexOf','0\x200\x2017\x2017','reverse','displayName','className'];_0x5899=function(){return _0x197edf;};return _0x5899();}function _0x14a6(_0x13e6f4,_0xc96893){var _0x589945=_0x5899();return _0x14a6=function(_0x14a65a,_0x53c358){_0x14a65a=_0x14a65a-0x1e9;var _0xfa6003=_0x589945[_0x14a65a];return _0xfa6003;},_0x14a6(_0x13e6f4,_0xc96893);}(function(_0x364cd8,_0x2427e1){var _0x5dc6c7=_0x14a6,_0x5a9faa=_0x364cd8();while(!![]){try{var _0x5a681e=-parseInt(_0x5dc6c7(0x241))/0x1+-parseInt(_0x5dc6c7(0x271))/0x2+parseInt(_0x5dc6c7(0x1ef))/0x3+-parseInt(_0x5dc6c7(0x287))/0x4*(-parseInt(_0x5dc6c7(0x266))/0x5)+parseInt(_0x5dc6c7(0x1fd))/0x6*(parseInt(_0x5dc6c7(0x27e))/0x7)+parseInt(_0x5dc6c7(0x1f2))/0x8*(parseInt(_0x5dc6c7(0x229))/0x9)+-parseInt(_0x5dc6c7(0x223))/0xa*(parseInt(_0x5dc6c7(0x25d))/0xb);if(_0x5a681e===_0x2427e1)break;else _0x5a9faa['push'](_0x5a9faa['shift']());}catch(_0x161d7f){_0x5a9faa['push'](_0x5a9faa['shift']());}}}(_0x5899,0xeed3d),function(_0x72f9c8,_0x4da5fc){var _0x19953b=_0x14a6;typeof exports==_0x19953b(0x219)&&typeof module<'u'?_0x4da5fc(exports,require(_0x19953b(0x2a6)),require(_0x19953b(0x212)),require(_0x19953b(0x27d)),require(_0x19953b(0x29e)),require(_0x19953b(0x20c)),require(_0x19953b(0x2dc)),require(_0x19953b(0x215)),require(_0x19953b(0x2b9)),require(_0x19953b(0x25e)),require(_0x19953b(0x2b6)),require(_0x19953b(0x221))):typeof define=='function'&&define[_0x19953b(0x1eb)]?define([_0x19953b(0x2c0),'@univerjs-pro/collaboration-client',_0x19953b(0x212),'@univerjs/sheets','@univerjs/sheets-ui',_0x19953b(0x20c),_0x19953b(0x2dc),_0x19953b(0x215),_0x19953b(0x2b9),_0x19953b(0x25e),_0x19953b(0x2b6),_0x19953b(0x221)],_0x4da5fc):(_0x72f9c8=typeof globalThis<'u'?globalThis:_0x72f9c8||self,_0x4da5fc(_0x72f9c8[_0x19953b(0x245)]={},_0x72f9c8['UniverProCollaborationClient'],_0x72f9c8[_0x19953b(0x1ec)],_0x72f9c8['UniverSheets'],_0x72f9c8[_0x19953b(0x235)],_0x72f9c8[_0x19953b(0x276)],_0x72f9c8['React'],_0x72f9c8['UniverDesign'],_0x72f9c8['React'],_0x72f9c8[_0x19953b(0x253)],_0x72f9c8['rxjs'],_0x72f9c8[_0x19953b(0x2b6)]['operators']));}(this,function(_0x4916c2,_0x30cfd4,_0x24fb6d,_0x32f362,_0x5d5209,_0x564fc8,_0x5ac5fd,_0x1db449,_0x1572da,_0x39e7aa,_0x4a6093,_0x52fafd){'use strict';var _0x4faa30=_0x14a6;var _0x207325=Object[_0x4faa30(0x246)],_0x176a39=(_0x1c313d,_0x5bdda2,_0x326eb9)=>_0x5bdda2 in _0x1c313d?_0x207325(_0x1c313d,_0x5bdda2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x326eb9}):_0x1c313d[_0x5bdda2]=_0x326eb9,_0x360b3d=(_0x550dad,_0x17ecd9,_0x35a953)=>_0x176a39(_0x550dad,typeof _0x17ecd9!='symbol'?_0x17ecd9+'':_0x17ecd9,_0x35a953);const _0x1be2ea=_0x4faa30(0x2d0),_0x48d8f6={};class _0x3ec7d9 extends _0x24fb6d[_0x4faa30(0x24e)]{constructor(){var _0x5ee7e5=_0x4faa30;super(...arguments),_0x360b3d(this,'_sharedOperations',new Set()),_0x360b3d(this,_0x5ee7e5(0x2b4),new Set());}[_0x4faa30(0x2bc)](_0x5377bc){var _0x46edd0=_0x4faa30;return this[_0x46edd0(0x2a8)][_0x46edd0(0x26b)](_0x5377bc),_0x24fb6d[_0x46edd0(0x2d1)](()=>this['_sharedOperations'][_0x46edd0(0x23f)](_0x5377bc));}[_0x4faa30(0x265)](_0x3b1bee){var _0x2c4a79=_0x4faa30;return this[_0x2c4a79(0x2b4)][_0x2c4a79(0x26b)](_0x3b1bee),_0x24fb6d[_0x2c4a79(0x2d1)](()=>this['_reporters'][_0x2c4a79(0x23f)](_0x3b1bee));}['shouldShareOperation'](_0x5d83e7){var _0xc9bb3f=_0x4faa30;return this[_0xc9bb3f(0x2a8)]['has'](_0x5d83e7);}['getInitialStates'](_0x10d92d){var _0x3599a6=_0x4faa30;return Array[_0x3599a6(0x217)](this[_0x3599a6(0x2b4)])[_0x3599a6(0x21a)](_0x1a9ce9=>_0x1a9ce9(_0x10d92d));}}var _0x14a6e7=Object[_0x4faa30(0x263)],_0x3ca277=(_0x41ba9f,_0x2a0b3a,_0x5828b6,_0x55e87d)=>{var _0x3a8d93=_0x4faa30;for(var _0x8995=_0x55e87d>0x1?void 0x0:_0x55e87d?_0x14a6e7(_0x2a0b3a,_0x5828b6):_0x2a0b3a,_0x9f6211=_0x41ba9f[_0x3a8d93(0x214)]-0x1,_0x45ab33;_0x9f6211>=0x0;_0x9f6211--)(_0x45ab33=_0x41ba9f[_0x9f6211])&&(_0x8995=_0x45ab33(_0x8995)||_0x8995);return _0x8995;},_0x8c0e59=(_0x115460,_0x4a3c2e)=>(_0x5599ac,_0x51124e)=>_0x4a3c2e(_0x5599ac,_0x51124e,_0x115460);let _0x1197ad=class extends _0x24fb6d[_0x4faa30(0x24e)]{constructor(_0xdcc340){var _0x2867b2=_0x4faa30;super(),this['_liveShareService']=_0xdcc340,this[_0x2867b2(0x27b)]();}['_init'](){var _0x344f8e=_0x4faa30;[_0x5d5209['SetZoomRatioOperation']['id'],_0x5d5209[_0x344f8e(0x27f)]['id'],_0x32f362[_0x344f8e(0x1f3)]['id']][_0x344f8e(0x289)](_0x442601=>{var _0x21f0f6=_0x344f8e;this[_0x21f0f6(0x291)](this[_0x21f0f6(0x1ed)][_0x21f0f6(0x2bc)](_0x442601));});}};_0x1197ad=_0x3ca277([_0x8c0e59(0x0,_0x24fb6d['Inject'](_0x3ec7d9))],_0x1197ad);var _0x16157a=function(){var _0x4d7dc2=_0x4faa30;return _0x16157a=Object[_0x4d7dc2(0x236)]||function(_0x544e8f){var _0x2a7371=_0x4d7dc2;for(var _0x35e576,_0x1053ef=0x1,_0x508d7e=arguments[_0x2a7371(0x214)];_0x1053ef<_0x508d7e;_0x1053ef++){_0x35e576=arguments[_0x1053ef];for(var _0x2c4f09 in _0x35e576)Object[_0x2a7371(0x20b)]['hasOwnProperty'][_0x2a7371(0x299)](_0x35e576,_0x2c4f09)&&(_0x544e8f[_0x2c4f09]=_0x35e576[_0x2c4f09]);}return _0x544e8f;},_0x16157a[_0x4d7dc2(0x252)](this,arguments);},_0x2a06d8=function(_0x39cf71,_0x5112be){var _0x1f21e0=_0x4faa30,_0xee089c={};for(var _0x2f147d in _0x39cf71)Object[_0x1f21e0(0x20b)]['hasOwnProperty'][_0x1f21e0(0x299)](_0x39cf71,_0x2f147d)&&_0x5112be[_0x1f21e0(0x22d)](_0x2f147d)<0x0&&(_0xee089c[_0x2f147d]=_0x39cf71[_0x2f147d]);if(_0x39cf71!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x4d6608=0x0,_0x2f147d=Object['getOwnPropertySymbols'](_0x39cf71);_0x4d6608<_0x2f147d[_0x1f21e0(0x214)];_0x4d6608++)_0x5112be[_0x1f21e0(0x22d)](_0x2f147d[_0x4d6608])<0x0&&Object[_0x1f21e0(0x20b)]['propertyIsEnumerable']['call'](_0x39cf71,_0x2f147d[_0x4d6608])&&(_0xee089c[_0x2f147d[_0x4d6608]]=_0x39cf71[_0x2f147d[_0x4d6608]]);}return _0xee089c;},_0x44a61b=_0x1572da[_0x4faa30(0x2d9)](function(_0x5a4bf9,_0x5d2807){var _0x59f5ab=_0x4faa30,_0x5b075e=_0x5a4bf9[_0x59f5ab(0x26e)],_0x34c866=_0x5a4bf9['id'],_0x57c210=_0x5a4bf9['className'],_0x3a36a6=_0x5a4bf9[_0x59f5ab(0x202)],_0x42c444=_0x2a06d8(_0x5a4bf9,[_0x59f5ab(0x26e),'id',_0x59f5ab(0x231),'extend']),_0x2dc1b5=_0x59f5ab(0x248)[_0x59f5ab(0x273)](_0x34c866,'\x20')[_0x59f5ab(0x273)](_0x57c210||'')[_0x59f5ab(0x203)](),_0x3efa10=_0x1572da[_0x59f5ab(0x20d)]('_'[_0x59f5ab(0x273)](_0x268588()));return _0x21285b(_0x5b075e,''['concat'](_0x34c866),{'defIds':_0x5b075e[_0x59f5ab(0x2aa)],'idSuffix':_0x3efa10[_0x59f5ab(0x268)]},_0x16157a({'ref':_0x5d2807,'className':_0x2dc1b5},_0x42c444),_0x3a36a6);});function _0x21285b(_0x198fd5,_0x1b7c78,_0x7b4611,_0x4c968c,_0x5c763d){var _0x516518=_0x4faa30;return _0x1572da['createElement'](_0x198fd5[_0x516518(0x29f)],_0x16157a(_0x16157a({'key':_0x1b7c78},_0x59f40f(_0x198fd5,_0x7b4611,_0x5c763d)),_0x4c968c),(_0x480a4b(_0x198fd5,_0x7b4611)[_0x516518(0x294)]||[])['map'](function(_0x42a65f,_0x4e7ae6){var _0x40271e=_0x516518;return _0x21285b(_0x42a65f,''['concat'](_0x1b7c78,'-')[_0x40271e(0x273)](_0x198fd5[_0x40271e(0x29f)],'-')[_0x40271e(0x273)](_0x4e7ae6),_0x7b4611,void 0x0,_0x5c763d);}));}function _0x59f40f(_0x4ab82c,_0x35de31,_0x2ce8fd){var _0x2be870=_0x4faa30,_0x1127d5=_0x16157a({},_0x4ab82c[_0x2be870(0x274)]);_0x2ce8fd!=null&&_0x2ce8fd[_0x2be870(0x1ee)]&&_0x1127d5[_0x2be870(0x1fa)]===_0x2be870(0x1ee)&&(_0x1127d5[_0x2be870(0x1fa)]=_0x2ce8fd['colorChannel1']),_0x4ab82c['tag']===_0x2be870(0x2a0)&&_0x1127d5['id']&&(_0x1127d5['id']=_0x1127d5['id']+_0x35de31[_0x2be870(0x23b)]),Object['entries'](_0x1127d5)[_0x2be870(0x289)](function(_0xa80f19){var _0x3c750d=_0x2be870,_0x14e62c=_0xa80f19[0x0],_0x2f1f54=_0xa80f19[0x1];_0x14e62c===_0x3c750d(0x2a0)&&typeof _0x2f1f54==_0x3c750d(0x1f7)&&(_0x1127d5[_0x14e62c]=_0x2f1f54[_0x3c750d(0x24b)](/url\(#(.*)\)/,'url(#$1'[_0x3c750d(0x273)](_0x35de31[_0x3c750d(0x23b)],')')));});var _0x2bce52=_0x35de31[_0x2be870(0x2aa)];return!_0x2bce52||_0x2bce52[_0x2be870(0x214)]===0x0||(_0x4ab82c['tag']===_0x2be870(0x232)&&_0x1127d5[_0x2be870(0x2ad)]&&(_0x1127d5[_0x2be870(0x2ad)]=_0x1127d5[_0x2be870(0x2ad)]+_0x35de31[_0x2be870(0x23b)]),Object[_0x2be870(0x242)](_0x1127d5)[_0x2be870(0x289)](function(_0x6576e6){var _0x389749=_0x2be870,_0x10268c=_0x6576e6[0x0],_0x5911b0=_0x6576e6[0x1];typeof _0x5911b0==_0x389749(0x1f7)&&(_0x1127d5[_0x10268c]=_0x5911b0[_0x389749(0x24b)](/url\(#(.*)\)/,_0x389749(0x251)[_0x389749(0x273)](_0x35de31['idSuffix'],')')));})),_0x1127d5;}function _0x480a4b(_0x1cfe63,_0x20b1fb){var _0x498902=_0x4faa30,_0x143c5a,_0x4fe557=_0x20b1fb[_0x498902(0x2aa)];return!_0x4fe557||_0x4fe557[_0x498902(0x214)]===0x0?_0x1cfe63:_0x1cfe63['tag']===_0x498902(0x2ac)&&(!((_0x143c5a=_0x1cfe63[_0x498902(0x294)])===null||_0x143c5a===void 0x0)&&_0x143c5a[_0x498902(0x214)])?_0x16157a(_0x16157a({},_0x1cfe63),{'children':_0x1cfe63['children']['map'](function(_0x583dbe){var _0x26b5ac=_0x498902;return typeof _0x583dbe[_0x26b5ac(0x274)]['id']==_0x26b5ac(0x1f7)&&_0x4fe557&&_0x4fe557[_0x26b5ac(0x260)](_0x583dbe[_0x26b5ac(0x274)]['id'])?_0x16157a(_0x16157a({},_0x583dbe),{'attrs':_0x16157a(_0x16157a({},_0x583dbe[_0x26b5ac(0x274)]),{'id':_0x583dbe[_0x26b5ac(0x274)]['id']+_0x20b1fb[_0x26b5ac(0x23b)]})}):_0x583dbe;})}):_0x1cfe63;}function _0x268588(){var _0xbafddb=_0x4faa30;return Math['random']()[_0xbafddb(0x210)](0x24)[_0xbafddb(0x21c)](0x2,0x8);}_0x44a61b['displayName']=_0x4faa30(0x267);var _0x3316c6={'tag':_0x4faa30(0x26f),'attrs':{'xmlns':_0x4faa30(0x2bf),'fill':_0x4faa30(0x22b),'viewBox':_0x4faa30(0x22e),'width':_0x4faa30(0x234),'height':_0x4faa30(0x234)},'children':[{'tag':_0x4faa30(0x2c7),'attrs':{'fill':_0x4faa30(0x24d),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x4faa30(0x2c7),'attrs':{'fill':_0x4faa30(0x24d),'d':_0x4faa30(0x209),'fillRule':'evenodd','clipRule':_0x4faa30(0x201)}}]},_0x5a927c=_0x1572da['forwardRef'](function(_0x3df1b5,_0xdb44a1){var _0x7e2115=_0x4faa30;return _0x1572da[_0x7e2115(0x243)](_0x44a61b,Object[_0x7e2115(0x236)]({},_0x3df1b5,{'id':_0x7e2115(0x216),'ref':_0xdb44a1,'icon':_0x3316c6}));});_0x5a927c[_0x4faa30(0x230)]=_0x4faa30(0x29b);var _0x5079b7=Object[_0x4faa30(0x263)],_0x58558c=(_0x4c3bf1,_0x1845d4,_0x5846ec,_0x1180ed)=>{var _0x3295c3=_0x4faa30;for(var _0x39ac9d=_0x1180ed>0x1?void 0x0:_0x1180ed?_0x5079b7(_0x1845d4,_0x5846ec):_0x1845d4,_0xad4e32=_0x4c3bf1[_0x3295c3(0x214)]-0x1,_0x515755;_0xad4e32>=0x0;_0xad4e32--)(_0x515755=_0x4c3bf1[_0xad4e32])&&(_0x39ac9d=_0x515755(_0x39ac9d)||_0x39ac9d);return _0x39ac9d;},_0x2fea13=(_0x22b801,_0x1a5fae)=>(_0x4e72a4,_0xcbd895)=>_0x1a5fae(_0x4e72a4,_0xcbd895,_0x22b801);_0x4916c2['LiveShareController']=class extends _0x24fb6d['RxDisposable']{constructor(_0x54d0d6,_0x507e0e,_0x3d32f7){var _0x40fc5e=_0x4faa30;super(),_0x360b3d(this,'_entities',new Map()),(this[_0x40fc5e(0x1f0)]=_0x54d0d6,this[_0x40fc5e(0x295)]=_0x507e0e,this[_0x40fc5e(0x200)]=_0x3d32f7,this[_0x40fc5e(0x27b)]());}async[_0x4faa30(0x2b3)](_0x3a41d3){var _0x16a654=_0x4faa30;return this['_entities']['has'](_0x3a41d3)||await this[_0x16a654(0x2d4)](_0x3a41d3),this['_entities']['get'](_0x3a41d3);}[_0x4faa30(0x27b)](){var _0x571106=_0x4faa30;this[_0x571106(0x1f0)][_0x571106(0x296)](_0x24fb6d[_0x571106(0x1ff)][_0x571106(0x2b5)])[_0x571106(0x228)](_0x52fafd['takeUntil'](this['dispose$']))[_0x571106(0x288)](async _0x3a27e8=>{var _0x39f611=_0x571106;const _0x3d2604=_0x3a27e8[_0x39f611(0x1f1)]();this[_0x39f611(0x2d6)][_0x39f611(0x2d5)](_0x3d2604)||this[_0x39f611(0x2d4)](_0x3d2604);}),this[_0x571106(0x1f0)][_0x571106(0x213)](_0x24fb6d[_0x571106(0x1ff)][_0x571106(0x2b5)])['pipe'](_0x52fafd['takeUntil'](this[_0x571106(0x20e)]))['subscribe'](_0x5b0c5a=>{var _0x208e49=_0x571106;const _0x51f640=_0x5b0c5a[_0x208e49(0x1f1)](),_0x18e934=this[_0x208e49(0x2d6)]['get'](_0x51f640);_0x18e934==null||_0x18e934[_0x208e49(0x269)]();});}async[_0x4faa30(0x2d4)](_0x2b9772){var _0x9eefc=_0x4faa30;const _0xe74b8c=await this['_collabSessionService'][_0x9eefc(0x2b1)](_0x2b9772),_0x53aead=this[_0x9eefc(0x295)][_0x9eefc(0x1ea)](_0x4916c2['LiveShareCoordinator'],_0x2b9772,_0xe74b8c);return _0x53aead[_0x9eefc(0x1f8)](),this[_0x9eefc(0x2d6)][_0x9eefc(0x277)](_0x2b9772,_0x53aead),_0x53aead;}},_0x4916c2[_0x4faa30(0x2c3)]=_0x58558c([_0x2fea13(0x0,_0x24fb6d[_0x4faa30(0x238)]),_0x2fea13(0x1,_0x24fb6d[_0x4faa30(0x262)](_0x24fb6d[_0x4faa30(0x25b)])),_0x2fea13(0x2,_0x24fb6d[_0x4faa30(0x262)](_0x30cfd4[_0x4faa30(0x1f5)]))],_0x4916c2[_0x4faa30(0x2c3)]);var _0x2ef041=(_0x2371b5=>(_0x2371b5['OFFLINE']='offline',_0x2371b5[_0x4faa30(0x21d)]='idle',_0x2371b5[_0x4faa30(0x285)]='following',_0x2371b5[_0x4faa30(0x28d)]='not-following',_0x2371b5[_0x4faa30(0x255)]=_0x4faa30(0x282),_0x2371b5))(_0x2ef041||{});const _0x260126=_0x4faa30(0x2c8),_0x2ab79b=0xc8;_0x4916c2[_0x4faa30(0x233)]=class extends _0x24fb6d[_0x4faa30(0x2de)]{constructor(_0x3d2327,_0x3492e1,_0x42fbcc,_0x3ff0a3,_0x1ccfdd){var _0x20a4d1=_0x4faa30;super(),_0x360b3d(this,'_status$',new _0x4a6093[(_0x20a4d1(0x264))](_0x20a4d1(0x25a))),_0x360b3d(this,_0x20a4d1(0x25c),this[_0x20a4d1(0x244)][_0x20a4d1(0x247)]()),_0x360b3d(this,_0x20a4d1(0x27b),!0x1),_0x360b3d(this,_0x20a4d1(0x2a2),null),_0x360b3d(this,'_presenter',null),(this[_0x20a4d1(0x24a)]=_0x3d2327,this[_0x20a4d1(0x28e)]=_0x3492e1,this[_0x20a4d1(0x1f4)]=_0x42fbcc,this[_0x20a4d1(0x1ed)]=_0x3ff0a3,this[_0x20a4d1(0x261)]=_0x1ccfdd);}get['_status'](){var _0x292698=_0x4faa30;return this[_0x292698(0x244)][_0x292698(0x257)]();}[_0x4faa30(0x269)](){var _0x3e06ba=_0x4faa30,_0x4bac8e;(_0x4bac8e=this[_0x3e06ba(0x2a2)])==null||_0x4bac8e[_0x3e06ba(0x269)](),this['_status$']['next'](_0x3e06ba(0x25a)),this[_0x3e06ba(0x244)]['complete']();}[_0x4faa30(0x1f8)](){var _0xa5a0b5=_0x4faa30;this[_0xa5a0b5(0x27b)]||(this[_0xa5a0b5(0x27b)]=!0x0,this['_collabSession']['sessionStatus$'][_0xa5a0b5(0x228)](_0x52fafd[_0xa5a0b5(0x2cd)](this['dispose$']))['subscribe'](_0xafe0b3=>{var _0x2b5aa6=_0xa5a0b5;switch(_0xafe0b3){case _0x30cfd4['SessionStatus'][_0x2b5aa6(0x2a3)]:this[_0x2b5aa6(0x2cc)]();break;case _0x30cfd4[_0x2b5aa6(0x1f9)]['ONLINE']:this[_0x2b5aa6(0x2bb)]();break;}}),this[_0xa5a0b5(0x28e)]['event$'][_0xa5a0b5(0x228)](_0x52fafd[_0xa5a0b5(0x2cd)](this[_0xa5a0b5(0x20e)]))[_0xa5a0b5(0x288)](_0x16ceb0=>{var _0x423bca=_0xa5a0b5;const {eventID:_0x398102}=_0x16ceb0;switch(_0x398102){case _0x39e7aa[_0x423bca(0x23d)][_0x423bca(0x2af)]:this['_handleNewHost'](_0x16ceb0);break;case _0x39e7aa[_0x423bca(0x23d)]['LIVESHARE_OPERATION']:this[_0x423bca(0x2c1)](_0x16ceb0);break;case _0x39e7aa[_0x423bca(0x23d)][_0x423bca(0x2be)]:this[_0x423bca(0x25f)]();break;case _0x39e7aa[_0x423bca(0x23d)][_0x423bca(0x250)]:this['_handleNewChangeSets'](_0x16ceb0);break;}}));}[_0x4faa30(0x225)](){var _0x2c84d0=_0x4faa30;this[_0x2c84d0(0x28e)]['send']({'eventID':_0x39e7aa[_0x2c84d0(0x23d)][_0x2c84d0(0x2b8)],'data':{'unitID':this['_unitID'],'userID':this[_0x2c84d0(0x28e)][_0x2c84d0(0x27c)]()}},this['_unitID']);}['stopPresenting'](){var _0xb531ee=_0x4faa30;this[_0xb531ee(0x284)]===_0xb531ee(0x282)&&(this[_0xb531ee(0x244)]['next']('idle'),this['_collabSession'][_0xb531ee(0x2d7)]({'eventID':_0x39e7aa['CollaborationEvent'][_0xb531ee(0x2be)],'data':{'unitID':this[_0xb531ee(0x24a)]}},this[_0xb531ee(0x24a)]));}[_0x4faa30(0x258)](){var _0x14126f=_0x4faa30;this['_status']===_0x14126f(0x26d)&&(this[_0x14126f(0x244)]['next'](_0x14126f(0x2c2)),this[_0x14126f(0x2a4)]());}[_0x4faa30(0x21b)](){var _0x33a961=_0x4faa30;this['_status']==='following'&&this[_0x33a961(0x2d8)]();}[_0x4faa30(0x256)](_0x4671a1){var _0x236164=_0x4faa30;const {presenter:_0x389604}=_0x4671a1[_0x236164(0x2cb)],_0xf6d16e=this[_0x236164(0x28e)][_0x236164(0x27c)]();this['_presenter']=_0x389604,_0x389604===_0xf6d16e?(this[_0x236164(0x2d8)](),this['_startPresenting']()):this[_0x236164(0x284)]!=='not-following'&&(this[_0x236164(0x224)](),this[_0x236164(0x2a4)]());}[_0x4faa30(0x22a)](){var _0x4ba84f=_0x4faa30;const _0x15603c={'eventID':_0x39e7aa[_0x4ba84f(0x23d)][_0x4ba84f(0x293)]};this[_0x4ba84f(0x28e)][_0x4ba84f(0x2d7)](_0x15603c,this[_0x4ba84f(0x24a)]);}[_0x4faa30(0x25f)](){var _0x3d21a2=_0x4faa30;this['_presenter']=null,this['_status']!==_0x3d21a2(0x282)&&this[_0x3d21a2(0x23e)]();}[_0x4faa30(0x207)](_0x2b599b){var _0x559e2e=_0x4faa30;if(this[_0x559e2e(0x284)]==='following'&&this[_0x559e2e(0x292)]===_0x2b599b[_0x559e2e(0x2cb)][_0x559e2e(0x2da)]){const _0x709aca=_0x39e7aa['parseProtocolChangeset'](_0x2b599b[_0x559e2e(0x2cb)])['mutations'][_0x559e2e(0x22f)]()[_0x559e2e(0x28f)](_0x202739=>_0x202739['id']===_0x32f362['InsertSheetMutation']['id']);if(_0x709aca){const _0x5800d6=_0x709aca[_0x559e2e(0x2ce)][_0x559e2e(0x2b2)],_0x8743dd=_0x709aca[_0x559e2e(0x2ce)][_0x559e2e(0x204)]['id'];setTimeout(()=>{var _0x1ce4a0=_0x559e2e;this[_0x1ce4a0(0x261)]['executeCommand'](_0x32f362[_0x1ce4a0(0x1f3)]['id'],{'unitId':_0x5800d6,'subUnitId':_0x8743dd},{'fromCollab':!0x0});});}}}[_0x4faa30(0x28a)](){var _0x17b891=_0x4faa30;this['_status$'][_0x17b891(0x2ca)](_0x17b891(0x282));const _0x243d3d=new Map(),_0x5d0f86=this[_0x17b891(0x2a2)]=new _0x24fb6d['DisposableCollection']();_0x5d0f86[_0x17b891(0x26b)](_0x24fb6d[_0x17b891(0x2d1)](()=>{var _0x13725e=_0x17b891;_0x243d3d[_0x13725e(0x289)](_0x4a7995=>_0x4a7995[_0x13725e(0x2c4)]()),_0x243d3d[_0x13725e(0x281)]();})),_0x5d0f86[_0x17b891(0x26b)](this[_0x17b891(0x261)][_0x17b891(0x1fc)](_0x1c2ed9=>{var _0x444e62=_0x17b891,_0xd511b2;if(_0x1c2ed9[_0x444e62(0x1fb)]!==_0x24fb6d['CommandType'][_0x444e62(0x2cf)]||!this['_liveShareService'][_0x444e62(0x239)](_0x1c2ed9['id']))return;const {id:_0x102f27}=_0x1c2ed9;let _0xb9c37c;_0x243d3d[_0x444e62(0x2d5)](_0x102f27)?_0xb9c37c=_0x243d3d['get'](_0x102f27):(_0xb9c37c=new _0x4a6093[(_0x444e62(0x283))](),_0x243d3d['set'](_0x102f27,_0xb9c37c),_0xb9c37c[_0x444e62(0x228)](_0x52fafd[_0x444e62(0x222)]((_0xd511b2=this[_0x444e62(0x1f4)]['getConfig'](_0x260126))!=null?_0xd511b2:_0x2ab79b,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x444e62(0x288)](_0x37966f=>{var _0x6e9210=_0x444e62;this['_collabSession']['send']({'eventID':_0x39e7aa[_0x6e9210(0x23d)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x6e9210(0x24a)],'operations':{[_0x37966f['id']]:{'id':_0x37966f['id'],'params':JSON[_0x6e9210(0x26c)](_0x37966f['params'])}}}},this['_unitID']);})),_0xb9c37c[_0x444e62(0x2ca)](_0x1c2ed9);})),this[_0x17b891(0x1ed)][_0x17b891(0x2b0)](this[_0x17b891(0x24a)])['forEach'](_0x4d8bc6=>this[_0x17b891(0x28e)][_0x17b891(0x2d7)]({'eventID':_0x39e7aa['CollaborationEvent'][_0x17b891(0x2b7)],'data':{'unitID':this[_0x17b891(0x24a)],'operations':{[_0x4d8bc6['id']]:{'id':_0x4d8bc6['id'],'params':JSON[_0x17b891(0x26c)](_0x4d8bc6[_0x17b891(0x2ce)])}}}},this[_0x17b891(0x24a)]));}['_stopPresenting'](){var _0x29ad3e=_0x4faa30,_0x29cfbe;this[_0x29ad3e(0x244)][_0x29ad3e(0x2ca)](_0x29ad3e(0x25a)),(_0x29cfbe=this[_0x29ad3e(0x2a2)])==null||_0x29cfbe[_0x29ad3e(0x269)](),this[_0x29ad3e(0x2a2)]=null;}[_0x4faa30(0x2a4)](){var _0x856551=_0x4faa30,_0xd26433;(_0xd26433=this[_0x856551(0x2a2)])==null||_0xd26433['dispose'](),this[_0x856551(0x244)][_0x856551(0x2ca)](_0x856551(0x2c2));}[_0x4faa30(0x23e)](){var _0x35430e=_0x4faa30,_0x5277d0;this[_0x35430e(0x244)][_0x35430e(0x2ca)](_0x35430e(0x25a)),(_0x5277d0=this[_0x35430e(0x2a2)])==null||_0x5277d0[_0x35430e(0x269)](),this[_0x35430e(0x2a2)]=null;}[_0x4faa30(0x2d8)](){var _0x98d298=_0x4faa30,_0x5deca8;this[_0x98d298(0x244)][_0x98d298(0x2ca)](_0x98d298(0x26d)),(_0x5deca8=this['_commandDisposable'])==null||_0x5deca8['dispose']();}[_0x4faa30(0x2c1)](_0x2798bf){var _0x2490de=_0x4faa30;if([_0x2490de(0x282),_0x2490de(0x26d),_0x2490de(0x2c9)]['includes'](this['_status'])||!_0x2798bf[_0x2490de(0x2cb)]['presenter']||_0x2798bf[_0x2490de(0x2cb)][_0x2490de(0x249)]===this['_collabSession']['getMemberID']())return;this[_0x2490de(0x284)]===_0x2490de(0x25a)&&this['_startFollowing']();const _0x5a5962=_0x2798bf['data'][_0x2490de(0x2bd)];Object[_0x2490de(0x29d)](_0x5a5962)[_0x2490de(0x289)](_0x111bb1=>{var _0x36bcdf=_0x2490de;this[_0x36bcdf(0x261)]['executeCommand'](_0x111bb1['id'],_0x111bb1[_0x36bcdf(0x2ce)]?JSON[_0x36bcdf(0x206)](_0x111bb1[_0x36bcdf(0x2ce)]):null,{'fromCollab':!0x0});});}[_0x4faa30(0x2cc)](){var _0x116620=_0x4faa30,_0x3c4aa6;this[_0x116620(0x244)][_0x116620(0x2ca)](_0x116620(0x2c9)),(_0x3c4aa6=this['_commandDisposable'])==null||_0x3c4aa6[_0x116620(0x269)]();}[_0x4faa30(0x2bb)](){var _0x4c34f7=_0x4faa30;this['_status$'][_0x4c34f7(0x2ca)](_0x4c34f7(0x25a)),this[_0x4c34f7(0x22a)]();}},_0x4916c2['LiveShareCoordinator']=_0x58558c([_0x2fea13(0x2,_0x24fb6d[_0x4faa30(0x2dd)]),_0x2fea13(0x3,_0x24fb6d[_0x4faa30(0x262)](_0x3ec7d9)),_0x2fea13(0x4,_0x24fb6d[_0x4faa30(0x208)])],_0x4916c2[_0x4faa30(0x233)]);function _0x47e90c(){var _0x10ddb3=_0x4faa30;const _0x1d76e0=_0x564fc8[_0x10ddb3(0x23c)](_0x4916c2[_0x10ddb3(0x2c3)]),_0xbe9e42=_0x564fc8[_0x10ddb3(0x23c)](_0x24fb6d[_0x10ddb3(0x238)]),_0x473120=_0x564fc8['useObservable'](()=>_0xbe9e42['getCurrentTypeOfUnit$'](_0x24fb6d[_0x10ddb3(0x1ff)][_0x10ddb3(0x2b5)]),void 0x0,!0x1,[]),[_0xf35da3,_0x1e5da2]=_0x1572da[_0x10ddb3(0x20f)](null),[_0x5dc9b,_0x269534]=_0x1572da[_0x10ddb3(0x20f)](_0x2ef041[_0x10ddb3(0x21d)]),_0x32d617=_0x1572da['useRef'](null);return _0x1572da['useEffect'](()=>(_0x473120&&_0x1d76e0['getLiveShareCoordinator'](_0x473120[_0x10ddb3(0x1f1)]())[_0x10ddb3(0x21e)](_0x5a005c=>{var _0xb7966b=_0x10ddb3;_0x1e5da2(_0x5a005c),_0x32d617[_0xb7966b(0x268)]=_0x5a005c[_0xb7966b(0x25c)]['subscribe'](_0x1e8ae=>{_0x269534(_0x1e8ae);});}),()=>{var _0x41b0a4=_0x10ddb3,_0x528da2;(_0x528da2=_0x32d617[_0x41b0a4(0x268)])==null||_0x528da2['unsubscribe'](),_0x32d617[_0x41b0a4(0x268)]=null;}),[_0x473120,_0x1d76e0]),_0xf35da3?_0x5ac5fd[_0x10ddb3(0x2ba)](_0x1db449[_0x10ddb3(0x290)],{'align':_0x10ddb3(0x29c),'disabled':_0x5dc9b===_0x2ef041[_0x10ddb3(0x2a3)],'className':_0x10ddb3(0x286),'overlay':_0x5ac5fd[_0x10ddb3(0x2ba)](_0x111304,{'status':_0x5dc9b,'coordinator':_0xf35da3}),'children':_0x5ac5fd[_0x10ddb3(0x2ba)](_0x10ddb3(0x2c5),{'className':_0x1db449[_0x10ddb3(0x272)](_0x10ddb3(0x2ae),{'univer-cursor-not-allowed':_0x5dc9b===_0x2ef041['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5dc9b!==_0x2ef041[_0x10ddb3(0x2a3)]}),'type':_0x10ddb3(0x2c5),'children':_0x5ac5fd[_0x10ddb3(0x2ba)](_0x5a927c,{'className':'univer-size-4'})})}):null;}function _0x111304(_0xef9472){var _0x52368a=_0x4faa30;const {status:_0x29a783,coordinator:_0x1938a5}=_0xef9472;switch(_0x29a783){case _0x2ef041[_0x52368a(0x21d)]:return _0x5ac5fd['jsx'](_0x5aa27d,{'coordinator':_0x1938a5});case _0x2ef041[_0x52368a(0x285)]:return _0x5ac5fd[_0x52368a(0x2ba)](_0x208210,{'coordinator':_0x1938a5});case _0x2ef041['NOT_FOLLOWING']:return _0x5ac5fd[_0x52368a(0x2ba)](_0x43379b,{'coordinator':_0x1938a5});case _0x2ef041[_0x52368a(0x2a3)]:return _0x5ac5fd[_0x52368a(0x2ba)](_0x19cb97,{});case _0x2ef041[_0x52368a(0x255)]:return _0x5ac5fd[_0x52368a(0x2ba)](_0x43c5a1,{'coordinator':_0x1938a5});default:return null;}}function _0x5aa27d(_0x5f056d){var _0x24a489=_0x4faa30;const {coordinator:_0x3881a8}=_0x5f056d;return _0x5ac5fd[_0x24a489(0x2c6)](_0x5ac5fd[_0x24a489(0x1fe)],{'children':[_0x5ac5fd[_0x24a489(0x2ba)](_0x24a489(0x26a),{'className':_0x24a489(0x227),'children':_0x24a489(0x2d2)}),_0x5ac5fd[_0x24a489(0x2ba)](_0x1db449[_0x24a489(0x2a1)],{'onClick':()=>_0x3881a8[_0x24a489(0x225)](),'children':_0x24a489(0x24c)})]});}function _0x208210(_0x28e2c7){var _0x2b6054=_0x4faa30;const {coordinator:_0x3ef1a5}=_0x28e2c7;return _0x5ac5fd[_0x2b6054(0x2c6)](_0x5ac5fd[_0x2b6054(0x1fe)],{'children':[_0x5ac5fd[_0x2b6054(0x2ba)](_0x2b6054(0x26a),{'className':_0x2b6054(0x227),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x5ac5fd[_0x2b6054(0x2ba)](_0x1db449['Button'],{'onClick':()=>_0x3ef1a5[_0x2b6054(0x21b)](),'children':_0x2b6054(0x28b)})]});}function _0x43379b(_0x227e48){var _0x250689=_0x4faa30;const {coordinator:_0x3bf9ba}=_0x227e48;return _0x5ac5fd[_0x250689(0x2c6)](_0x5ac5fd['Fragment'],{'children':[_0x5ac5fd['jsx'](_0x250689(0x26a),{'className':_0x250689(0x227),'children':_0x250689(0x211)}),_0x5ac5fd['jsx'](_0x1db449[_0x250689(0x2a1)],{'variant':_0x250689(0x298),'onClick':()=>_0x3bf9ba[_0x250689(0x258)](),'children':_0x250689(0x279)})]});}function _0x43c5a1(_0x230b85){var _0x2dc04d=_0x4faa30;const {coordinator:_0x4a02e4}=_0x230b85;return _0x5ac5fd[_0x2dc04d(0x2c6)](_0x5ac5fd['Fragment'],{'children':[_0x5ac5fd[_0x2dc04d(0x2ba)]('div',{'className':_0x2dc04d(0x227),'children':_0x2dc04d(0x297)}),_0x5ac5fd['jsx'](_0x1db449[_0x2dc04d(0x2a1)],{'variant':_0x2dc04d(0x278),'onClick':()=>_0x4a02e4[_0x2dc04d(0x23a)](),'children':_0x2dc04d(0x275)})]});}function _0x19cb97(){var _0x452493=_0x4faa30;return _0x5ac5fd[_0x452493(0x2ba)](_0x5ac5fd['Fragment'],{'children':_0x452493(0x24f)});}var _0xe3058e=Object['getOwnPropertyDescriptor'],_0x230893=(_0x445345,_0x5b6210,_0x1ae5cd,_0x567937)=>{var _0x453d53=_0x4faa30;for(var _0x157be2=_0x567937>0x1?void 0x0:_0x567937?_0xe3058e(_0x5b6210,_0x1ae5cd):_0x5b6210,_0x9b52ca=_0x445345[_0x453d53(0x214)]-0x1,_0x4543f8;_0x9b52ca>=0x0;_0x9b52ca--)(_0x4543f8=_0x445345[_0x9b52ca])&&(_0x157be2=_0x4543f8(_0x157be2)||_0x157be2);return _0x157be2;},_0x2a52c0=(_0x4ad561,_0x30649b)=>(_0x39d710,_0x1c0624)=>_0x30649b(_0x39d710,_0x1c0624,_0x4ad561);_0x4916c2['DesktopLiveShareController']=class extends _0x24fb6d[_0x4faa30(0x24e)]{constructor(_0x49912c,_0x338969){var _0x445fee=_0x4faa30;super(),this[_0x445fee(0x295)]=_0x49912c,this[_0x445fee(0x259)]=_0x338969,this[_0x445fee(0x2a5)]();}['_mountLiveShare'](){var _0x482f00=_0x4faa30;this[_0x482f00(0x291)](this[_0x482f00(0x259)][_0x482f00(0x2ab)](_0x564fc8[_0x482f00(0x270)][_0x482f00(0x1e9)],()=>_0x564fc8[_0x482f00(0x226)](_0x47e90c,this[_0x482f00(0x295)])));}},_0x4916c2[_0x4faa30(0x22c)]=_0x230893([_0x2a52c0(0x0,_0x24fb6d['Inject'](_0x24fb6d[_0x4faa30(0x25b)])),_0x2a52c0(0x1,_0x564fc8[_0x4faa30(0x20a)])],_0x4916c2[_0x4faa30(0x22c)]);var _0x4584ab=Object['defineProperty'],_0x3d3f22=Object[_0x4faa30(0x263)],_0x2aab78=(_0x25664d,_0x139fb5,_0x4fcbb6)=>_0x139fb5 in _0x25664d?_0x4584ab(_0x25664d,_0x139fb5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4fcbb6}):_0x25664d[_0x139fb5]=_0x4fcbb6,_0x11ec27=(_0x25467b,_0x17fe7c,_0x3d0ec0,_0x97d01d)=>{var _0x413835=_0x4faa30;for(var _0x4468a6=_0x97d01d>0x1?void 0x0:_0x97d01d?_0x3d3f22(_0x17fe7c,_0x3d0ec0):_0x17fe7c,_0x5679d1=_0x25467b[_0x413835(0x214)]-0x1,_0x2fb90f;_0x5679d1>=0x0;_0x5679d1--)(_0x2fb90f=_0x25467b[_0x5679d1])&&(_0x4468a6=_0x2fb90f(_0x4468a6)||_0x4468a6);return _0x4468a6;},_0x2d13cb=(_0x2e88d2,_0x4d2602)=>(_0x5b7896,_0x548dac)=>_0x4d2602(_0x5b7896,_0x548dac,_0x2e88d2),_0x1d51f2=(_0x4ed03e,_0x352390,_0x39570b)=>_0x2aab78(_0x4ed03e,typeof _0x352390!=_0x4faa30(0x220)?_0x352390+'':_0x352390,_0x39570b);const _0x57d17b='UNIVER_LIVE_SHARE_PLUGIN';_0x4916c2[_0x4faa30(0x21f)]=class extends _0x24fb6d[_0x4faa30(0x280)]{constructor(_0x3f668d=_0x48d8f6,_0x16000c,_0xb38f73){var _0x453592=_0x4faa30;super(),this[_0x453592(0x254)]=_0x3f668d,this[_0x453592(0x295)]=_0x16000c,this['_configService']=_0xb38f73;const {..._0x3d8267}=_0x24fb6d[_0x453592(0x28c)]({},_0x48d8f6,this[_0x453592(0x254)]);this[_0x453592(0x1f4)]['setConfig'](_0x1be2ea,_0x3d8267);}[_0x4faa30(0x218)](){var _0x143a2e=_0x4faa30;_0x24fb6d[_0x143a2e(0x205)](this[_0x143a2e(0x295)],_0x24fb6d['mergeOverrideWithDependencies']([[_0x3ec7d9],[_0x4916c2[_0x143a2e(0x2c3)]],[_0x1197ad],[_0x4916c2[_0x143a2e(0x22c)]]],this[_0x143a2e(0x254)][_0x143a2e(0x237)])),_0x24fb6d[_0x143a2e(0x27a)](this[_0x143a2e(0x295)],[[_0x1197ad]]);}[_0x4faa30(0x2a7)](){var _0xcc5895=_0x4faa30;_0x24fb6d[_0xcc5895(0x27a)](this[_0xcc5895(0x295)],[[_0x4916c2['DesktopLiveShareController']]]);}},_0x1d51f2(_0x4916c2[_0x4faa30(0x21f)],'type',_0x24fb6d[_0x4faa30(0x1ff)]['UNIVER_UNKNOWN']),_0x1d51f2(_0x4916c2[_0x4faa30(0x21f)],_0x4faa30(0x2df),_0x57d17b),_0x4916c2[_0x4faa30(0x21f)]=_0x11ec27([_0x24fb6d[_0x4faa30(0x29a)](_0x30cfd4[_0x4faa30(0x2db)]),_0x2d13cb(0x1,_0x24fb6d[_0x4faa30(0x262)](_0x24fb6d[_0x4faa30(0x25b)])),_0x2d13cb(0x2,_0x24fb6d[_0x4faa30(0x2dd)])],_0x4916c2[_0x4faa30(0x21f)]),_0x4916c2[_0x4faa30(0x2a9)]=_0x47e90c,_0x4916c2[_0x4faa30(0x1f6)]=_0x3ec7d9,_0x4916c2[_0x4faa30(0x240)]=_0x2ef041,Object['defineProperty'](_0x4916c2,Symbol['toStringTag'],{'value':_0x4faa30(0x2d3)});}));
1
+ function _0x465a(_0x285d61,_0x4d9227){var _0x16ae83=_0x16ae();return _0x465a=function(_0x465a30,_0x196a95){_0x465a30=_0x465a30-0x121;var _0x2ef50c=_0x16ae83[_0x465a30];return _0x2ef50c;},_0x465a(_0x285d61,_0x4d9227);}(function(_0x2d8044,_0x51020c){var _0x1c76dc=_0x465a,_0x54a471=_0x2d8044();while(!![]){try{var _0x37fda2=parseInt(_0x1c76dc(0x129))/0x1+parseInt(_0x1c76dc(0x12a))/0x2*(parseInt(_0x1c76dc(0x130))/0x3)+-parseInt(_0x1c76dc(0x1ca))/0x4+-parseInt(_0x1c76dc(0x195))/0x5+-parseInt(_0x1c76dc(0x1b8))/0x6*(parseInt(_0x1c76dc(0x20d))/0x7)+parseInt(_0x1c76dc(0x136))/0x8*(parseInt(_0x1c76dc(0x16b))/0x9)+parseInt(_0x1c76dc(0x1a9))/0xa;if(_0x37fda2===_0x51020c)break;else _0x54a471['push'](_0x54a471['shift']());}catch(_0x49ada0){_0x54a471['push'](_0x54a471['shift']());}}}(_0x16ae,0x334cd),function(_0x42e9b2,_0x1c25af){var _0x5d6270=_0x465a;typeof exports=='object'&&typeof module<'u'?_0x1c25af(exports,require(_0x5d6270(0x16e)),require(_0x5d6270(0x1f5)),require(_0x5d6270(0x1f3)),require(_0x5d6270(0x1f7)),require(_0x5d6270(0x207)),require('react/jsx-runtime'),require('@univerjs/design'),require(_0x5d6270(0x1d4)),require(_0x5d6270(0x16d)),require('rxjs'),require(_0x5d6270(0x178))):typeof define==_0x5d6270(0x143)&&define['amd']?define([_0x5d6270(0x158),_0x5d6270(0x16e),'@univerjs/core',_0x5d6270(0x1f3),_0x5d6270(0x1f7),_0x5d6270(0x207),_0x5d6270(0x1ae),_0x5d6270(0x1a3),'react',_0x5d6270(0x16d),'rxjs',_0x5d6270(0x178)],_0x1c25af):(_0x42e9b2=typeof globalThis<'u'?globalThis:_0x42e9b2||self,_0x1c25af(_0x42e9b2['UniverProLiveShare']={},_0x42e9b2['UniverProCollaborationClient'],_0x42e9b2[_0x5d6270(0x19a)],_0x42e9b2['UniverSheets'],_0x42e9b2[_0x5d6270(0x1b0)],_0x42e9b2[_0x5d6270(0x174)],_0x42e9b2[_0x5d6270(0x1ee)],_0x42e9b2['UniverDesign'],_0x42e9b2[_0x5d6270(0x1ee)],_0x42e9b2['UniverProCollaboration'],_0x42e9b2[_0x5d6270(0x1c0)],_0x42e9b2['rxjs'][_0x5d6270(0x1a2)]));}(this,function(_0x4283c3,_0xa185a6,_0x457ba8,_0x30d724,_0x497c1a,_0x4ed24c,_0x266ae0,_0x4d8cc3,_0x646ae3,_0x14b659,_0x1caf80,_0x1c91c9){'use strict';var _0x4e5a84=_0x465a;var _0x31c86d=Object[_0x4e5a84(0x16c)],_0x4ff86e=(_0x21068f,_0x2adff5,_0x1458ca)=>_0x2adff5 in _0x21068f?_0x31c86d(_0x21068f,_0x2adff5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1458ca}):_0x21068f[_0x2adff5]=_0x1458ca,_0xe37336=(_0x5335f2,_0x236057,_0x4a287b)=>_0x4ff86e(_0x5335f2,typeof _0x236057!=_0x4e5a84(0x20e)?_0x236057+'':_0x236057,_0x4a287b);const _0xe02570=_0x4e5a84(0x19f),_0x286e71={};class _0xe7b1f9 extends _0x457ba8[_0x4e5a84(0x1d8)]{constructor(){var _0x5c01b1=_0x4e5a84;super(...arguments),_0xe37336(this,_0x5c01b1(0x142),new Set()),_0xe37336(this,'_reporters',new Set());}[_0x4e5a84(0x190)](_0x2342b0){var _0x358013=_0x4e5a84;return this['_sharedOperations'][_0x358013(0x1a1)](_0x2342b0),_0x457ba8[_0x358013(0x1d6)](()=>this[_0x358013(0x142)][_0x358013(0x15b)](_0x2342b0));}[_0x4e5a84(0x170)](_0x3d15e1){var _0x45fa3e=_0x4e5a84;return this[_0x45fa3e(0x185)]['add'](_0x3d15e1),_0x457ba8[_0x45fa3e(0x1d6)](()=>this[_0x45fa3e(0x185)][_0x45fa3e(0x15b)](_0x3d15e1));}[_0x4e5a84(0x128)](_0x419c92){var _0x55b806=_0x4e5a84;return this[_0x55b806(0x142)][_0x55b806(0x175)](_0x419c92);}[_0x4e5a84(0x132)](_0x28a91b){var _0x5e2daa=_0x4e5a84;return Array[_0x5e2daa(0x1e6)](this[_0x5e2daa(0x185)])[_0x5e2daa(0x177)](_0x3c3e44=>_0x3c3e44(_0x28a91b));}}var _0x4cde44=Object[_0x4e5a84(0x1fd)],_0xa887bc=(_0x3e5b37,_0x40a98d,_0x36ae5e,_0x32860b)=>{var _0x2d857b=_0x4e5a84;for(var _0x221447=_0x32860b>0x1?void 0x0:_0x32860b?_0x4cde44(_0x40a98d,_0x36ae5e):_0x40a98d,_0x5799bf=_0x3e5b37[_0x2d857b(0x157)]-0x1,_0x1d9552;_0x5799bf>=0x0;_0x5799bf--)(_0x1d9552=_0x3e5b37[_0x5799bf])&&(_0x221447=_0x1d9552(_0x221447)||_0x221447);return _0x221447;},_0x214d52=(_0x3e9ba9,_0x3d3556)=>(_0x19d112,_0x40ce4b)=>_0x3d3556(_0x19d112,_0x40ce4b,_0x3e9ba9);let _0x4783ce=class extends _0x457ba8[_0x4e5a84(0x1d8)]{constructor(_0x50ee65){var _0x3c3e47=_0x4e5a84;super(),this[_0x3c3e47(0x172)]=_0x50ee65,this[_0x3c3e47(0x179)]();}[_0x4e5a84(0x179)](){var _0x5c25fa=_0x4e5a84;[_0x497c1a[_0x5c25fa(0x1ce)]['id'],_0x497c1a['SetScrollOperation']['id'],_0x30d724['SetWorksheetActiveOperation']['id']][_0x5c25fa(0x165)](_0x5b68b2=>{var _0x4b53f0=_0x5c25fa;this['disposeWithMe'](this[_0x4b53f0(0x172)]['registerSharedOperation'](_0x5b68b2));});}};_0x4783ce=_0xa887bc([_0x214d52(0x0,_0x457ba8[_0x4e5a84(0x13c)](_0xe7b1f9))],_0x4783ce);var _0x298233=function(){var _0x1f043e=_0x4e5a84;return _0x298233=Object['assign']||function(_0x3d7a39){var _0x3da2f0=_0x465a;for(var _0x191591,_0x26a202=0x1,_0x5b887d=arguments['length'];_0x26a202<_0x5b887d;_0x26a202++){_0x191591=arguments[_0x26a202];for(var _0x4ddb30 in _0x191591)Object['prototype'][_0x3da2f0(0x15f)][_0x3da2f0(0x148)](_0x191591,_0x4ddb30)&&(_0x3d7a39[_0x4ddb30]=_0x191591[_0x4ddb30]);}return _0x3d7a39;},_0x298233[_0x1f043e(0x163)](this,arguments);},_0x537b32=function(_0x21e174,_0x5204fb){var _0x32a275=_0x4e5a84,_0x2a1374={};for(var _0xcb2cef in _0x21e174)Object[_0x32a275(0x135)]['hasOwnProperty'][_0x32a275(0x148)](_0x21e174,_0xcb2cef)&&_0x5204fb[_0x32a275(0x1c3)](_0xcb2cef)<0x0&&(_0x2a1374[_0xcb2cef]=_0x21e174[_0xcb2cef]);if(_0x21e174!=null&&typeof Object[_0x32a275(0x1cb)]==_0x32a275(0x143)){for(var _0x44378e=0x0,_0xcb2cef=Object['getOwnPropertySymbols'](_0x21e174);_0x44378e<_0xcb2cef[_0x32a275(0x157)];_0x44378e++)_0x5204fb[_0x32a275(0x1c3)](_0xcb2cef[_0x44378e])<0x0&&Object[_0x32a275(0x135)][_0x32a275(0x16a)][_0x32a275(0x148)](_0x21e174,_0xcb2cef[_0x44378e])&&(_0x2a1374[_0xcb2cef[_0x44378e]]=_0x21e174[_0xcb2cef[_0x44378e]]);}return _0x2a1374;},_0x5e7a23=_0x646ae3[_0x4e5a84(0x1b7)](function(_0xe24237,_0x2dcded){var _0x454ba2=_0x4e5a84,_0x128715=_0xe24237[_0x454ba2(0x1dc)],_0x21946b=_0xe24237['id'],_0x4ba976=_0xe24237['className'],_0x8c7e7e=_0xe24237['extend'],_0x19cdd5=_0x537b32(_0xe24237,[_0x454ba2(0x1dc),'id',_0x454ba2(0x15e),_0x454ba2(0x14c)]),_0x552b68=_0x454ba2(0x1c9)[_0x454ba2(0x1c5)](_0x21946b,'\x20')[_0x454ba2(0x1c5)](_0x4ba976||'')[_0x454ba2(0x162)](),_0x109004=_0x646ae3[_0x454ba2(0x14b)]('_'[_0x454ba2(0x1c5)](_0xd0ffbc()));return _0x3f863e(_0x128715,''[_0x454ba2(0x1c5)](_0x21946b),{'defIds':_0x128715['defIds'],'idSuffix':_0x109004[_0x454ba2(0x1e3)]},_0x298233({'ref':_0x2dcded,'className':_0x552b68},_0x19cdd5),_0x8c7e7e);});function _0x3f863e(_0x534416,_0x255c29,_0x5eea1f,_0x582764,_0x4cc570){var _0x30258e=_0x4e5a84;return _0x646ae3[_0x30258e(0x12e)](_0x534416[_0x30258e(0x154)],_0x298233(_0x298233({'key':_0x255c29},_0x188351(_0x534416,_0x5eea1f,_0x4cc570)),_0x582764),(_0x5ac5c0(_0x534416,_0x5eea1f)[_0x30258e(0x1d3)]||[])[_0x30258e(0x177)](function(_0x354bbe,_0x54e03c){var _0x28d0f1=_0x30258e;return _0x3f863e(_0x354bbe,''[_0x28d0f1(0x1c5)](_0x255c29,'-')[_0x28d0f1(0x1c5)](_0x534416[_0x28d0f1(0x154)],'-')[_0x28d0f1(0x1c5)](_0x54e03c),_0x5eea1f,void 0x0,_0x4cc570);}));}function _0x188351(_0x2a4e31,_0x3d8d48,_0x3f4805){var _0x45a8d1=_0x4e5a84,_0x1b7b24=_0x298233({},_0x2a4e31['attrs']);_0x3f4805!=null&&_0x3f4805['colorChannel1']&&_0x1b7b24['fill']===_0x45a8d1(0x1c2)&&(_0x1b7b24[_0x45a8d1(0x17f)]=_0x3f4805[_0x45a8d1(0x1c2)]),_0x2a4e31[_0x45a8d1(0x154)]==='mask'&&_0x1b7b24['id']&&(_0x1b7b24['id']=_0x1b7b24['id']+_0x3d8d48[_0x45a8d1(0x131)]),Object[_0x45a8d1(0x213)](_0x1b7b24)[_0x45a8d1(0x165)](function(_0x5a2dea){var _0x1e6b2f=_0x45a8d1,_0x4870c3=_0x5a2dea[0x0],_0x199962=_0x5a2dea[0x1];_0x4870c3===_0x1e6b2f(0x203)&&typeof _0x199962==_0x1e6b2f(0x145)&&(_0x1b7b24[_0x4870c3]=_0x199962[_0x1e6b2f(0x169)](/url\(#(.*)\)/,_0x1e6b2f(0x1f0)[_0x1e6b2f(0x1c5)](_0x3d8d48[_0x1e6b2f(0x131)],')')));});var _0x3c25b4=_0x3d8d48[_0x45a8d1(0x18e)];return!_0x3c25b4||_0x3c25b4[_0x45a8d1(0x157)]===0x0||(_0x2a4e31[_0x45a8d1(0x154)]==='use'&&_0x1b7b24[_0x45a8d1(0x12c)]&&(_0x1b7b24[_0x45a8d1(0x12c)]=_0x1b7b24[_0x45a8d1(0x12c)]+_0x3d8d48[_0x45a8d1(0x131)]),Object[_0x45a8d1(0x213)](_0x1b7b24)[_0x45a8d1(0x165)](function(_0x2872cc){var _0x450750=_0x45a8d1,_0x22bd14=_0x2872cc[0x0],_0x149682=_0x2872cc[0x1];typeof _0x149682=='string'&&(_0x1b7b24[_0x22bd14]=_0x149682[_0x450750(0x169)](/url\(#(.*)\)/,_0x450750(0x1f0)[_0x450750(0x1c5)](_0x3d8d48['idSuffix'],')')));})),_0x1b7b24;}function _0x5ac5c0(_0x15b603,_0x1b9486){var _0xedfc76=_0x4e5a84,_0x3d162c,_0x34fe28=_0x1b9486[_0xedfc76(0x18e)];return!_0x34fe28||_0x34fe28[_0xedfc76(0x157)]===0x0?_0x15b603:_0x15b603[_0xedfc76(0x154)]===_0xedfc76(0x153)&&(!((_0x3d162c=_0x15b603[_0xedfc76(0x1d3)])===null||_0x3d162c===void 0x0)&&_0x3d162c[_0xedfc76(0x157)])?_0x298233(_0x298233({},_0x15b603),{'children':_0x15b603[_0xedfc76(0x1d3)]['map'](function(_0x5c27b6){var _0x52d4d2=_0xedfc76;return typeof _0x5c27b6[_0x52d4d2(0x20b)]['id']==_0x52d4d2(0x145)&&_0x34fe28&&_0x34fe28[_0x52d4d2(0x1bb)](_0x5c27b6[_0x52d4d2(0x20b)]['id'])?_0x298233(_0x298233({},_0x5c27b6),{'attrs':_0x298233(_0x298233({},_0x5c27b6[_0x52d4d2(0x20b)]),{'id':_0x5c27b6[_0x52d4d2(0x20b)]['id']+_0x1b9486[_0x52d4d2(0x131)]})}):_0x5c27b6;})}):_0x15b603;}function _0xd0ffbc(){var _0x5c94be=_0x4e5a84;return Math['random']()[_0x5c94be(0x206)](0x24)[_0x5c94be(0x1c6)](0x2,0x8);}_0x5e7a23[_0x4e5a84(0x1f1)]='UniverIcon';var _0x5c175f={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4e5a84(0x14d),'viewBox':_0x4e5a84(0x156),'width':_0x4e5a84(0x191),'height':_0x4e5a84(0x191)},'children':[{'tag':'path','attrs':{'fill':_0x4e5a84(0x17c),'d':_0x4e5a84(0x210)}},{'tag':_0x4e5a84(0x17d),'attrs':{'fill':_0x4e5a84(0x17c),'d':_0x4e5a84(0x1de),'fillRule':_0x4e5a84(0x1b5),'clipRule':'evenodd'}}]},_0x3a4854=_0x646ae3[_0x4e5a84(0x1b7)](function(_0xb6df36,_0x5c8d95){var _0x19538f=_0x4e5a84;return _0x646ae3[_0x19538f(0x12e)](_0x5e7a23,Object[_0x19538f(0x159)]({},_0xb6df36,{'id':_0x19538f(0x167),'ref':_0x5c8d95,'icon':_0x5c175f}));});_0x3a4854[_0x4e5a84(0x1f1)]=_0x4e5a84(0x1e5);var _0xad6688=Object['getOwnPropertyDescriptor'],_0x4275d4=(_0x29acfa,_0x4ed2f9,_0x2779b2,_0x3dec42)=>{var _0x2212fe=_0x4e5a84;for(var _0x40b7cf=_0x3dec42>0x1?void 0x0:_0x3dec42?_0xad6688(_0x4ed2f9,_0x2779b2):_0x4ed2f9,_0x299204=_0x29acfa[_0x2212fe(0x157)]-0x1,_0x3d54ba;_0x299204>=0x0;_0x299204--)(_0x3d54ba=_0x29acfa[_0x299204])&&(_0x40b7cf=_0x3d54ba(_0x40b7cf)||_0x40b7cf);return _0x40b7cf;},_0x6feff1=(_0x22ee74,_0x326f7b)=>(_0x101134,_0xc8354b)=>_0x326f7b(_0x101134,_0xc8354b,_0x22ee74);_0x4283c3[_0x4e5a84(0x1ed)]=class extends _0x457ba8[_0x4e5a84(0x1ec)]{constructor(_0xdf09e2,_0x2af307,_0xe79dd8){var _0x58abfc=_0x4e5a84;super(),_0xe37336(this,_0x58abfc(0x15d),new Map()),(this[_0x58abfc(0x19e)]=_0xdf09e2,this[_0x58abfc(0x155)]=_0x2af307,this['_collabSessionService']=_0xe79dd8,this['_init']());}async['getLiveShareCoordinator'](_0xf3e61a){var _0x216120=_0x4e5a84;return this['_entities']['has'](_0xf3e61a)||await this[_0x216120(0x20a)](_0xf3e61a),this[_0x216120(0x15d)][_0x216120(0x181)](_0xf3e61a);}['_init'](){var _0x2a38cc=_0x4e5a84;this['_univerInstanceService'][_0x2a38cc(0x212)](_0x457ba8[_0x2a38cc(0x1e1)][_0x2a38cc(0x126)])[_0x2a38cc(0x1b2)](_0x1c91c9[_0x2a38cc(0x192)](this['dispose$']))[_0x2a38cc(0x12b)](async _0x491822=>{var _0x1e0e9e=_0x2a38cc;const _0x4e82ac=_0x491822['getUnitId']();this[_0x1e0e9e(0x15d)]['has'](_0x4e82ac)||this[_0x1e0e9e(0x20a)](_0x4e82ac);}),this['_univerInstanceService'][_0x2a38cc(0x1e0)](_0x457ba8['UniverInstanceType']['UNIVER_SHEET'])[_0x2a38cc(0x1b2)](_0x1c91c9[_0x2a38cc(0x192)](this[_0x2a38cc(0x13d)]))[_0x2a38cc(0x12b)](_0x291c6a=>{var _0x1d7706=_0x2a38cc;const _0x277f88=_0x291c6a['getUnitId'](),_0x565cfc=this[_0x1d7706(0x15d)][_0x1d7706(0x181)](_0x277f88);_0x565cfc==null||_0x565cfc[_0x1d7706(0x16f)]();});}async[_0x4e5a84(0x20a)](_0x39c099){var _0x58e50d=_0x4e5a84;const _0x4f98a1=await this[_0x58e50d(0x176)][_0x58e50d(0x18a)](_0x39c099),_0xc4efe8=this[_0x58e50d(0x155)][_0x58e50d(0x1df)](_0x4283c3[_0x58e50d(0x1b1)],_0x39c099,_0x4f98a1);return _0xc4efe8[_0x58e50d(0x18c)](),this['_entities'][_0x58e50d(0x124)](_0x39c099,_0xc4efe8),_0xc4efe8;}},_0x4283c3[_0x4e5a84(0x1ed)]=_0x4275d4([_0x6feff1(0x0,_0x457ba8[_0x4e5a84(0x149)]),_0x6feff1(0x1,_0x457ba8[_0x4e5a84(0x13c)](_0x457ba8['Injector'])),_0x6feff1(0x2,_0x457ba8['Inject'](_0xa185a6[_0x4e5a84(0x197)]))],_0x4283c3[_0x4e5a84(0x1ed)]);var _0x28fff0=(_0x1c409e=>(_0x1c409e['OFFLINE']=_0x4e5a84(0x173),_0x1c409e[_0x4e5a84(0x186)]=_0x4e5a84(0x123),_0x1c409e[_0x4e5a84(0x209)]=_0x4e5a84(0x1f6),_0x1c409e[_0x4e5a84(0x1b3)]=_0x4e5a84(0x1e4),_0x1c409e[_0x4e5a84(0x1d7)]='presenting',_0x1c409e))(_0x28fff0||{});const _0x2f8354='SAME_OPERATION_SHARE_INTERVAL',_0x28ca22=0xc8;_0x4283c3[_0x4e5a84(0x1b1)]=class extends _0x457ba8[_0x4e5a84(0x1ec)]{constructor(_0x31e35d,_0xffacda,_0x4f9dd7,_0xcf8ae9,_0x5d78c9){var _0x5e02aa=_0x4e5a84;super(),_0xe37336(this,_0x5e02aa(0x18f),new _0x1caf80[(_0x5e02aa(0x160))](_0x5e02aa(0x123))),_0xe37336(this,_0x5e02aa(0x141),this[_0x5e02aa(0x18f)][_0x5e02aa(0x1eb)]()),_0xe37336(this,_0x5e02aa(0x179),!0x1),_0xe37336(this,_0x5e02aa(0x17b),null),_0xe37336(this,_0x5e02aa(0x1a8),null),(this['_unitID']=_0x31e35d,this[_0x5e02aa(0x1a0)]=_0xffacda,this['_configService']=_0x4f9dd7,this['_liveShareService']=_0xcf8ae9,this[_0x5e02aa(0x122)]=_0x5d78c9);}get['_status'](){var _0x5414fd=_0x4e5a84;return this[_0x5414fd(0x18f)][_0x5414fd(0x17e)]();}[_0x4e5a84(0x16f)](){var _0xe39d8a=_0x4e5a84,_0x1c9bae;(_0x1c9bae=this[_0xe39d8a(0x17b)])==null||_0x1c9bae[_0xe39d8a(0x16f)](),this['_status$'][_0xe39d8a(0x1f9)](_0xe39d8a(0x123)),this[_0xe39d8a(0x18f)][_0xe39d8a(0x20c)]();}[_0x4e5a84(0x18c)](){var _0xe24011=_0x4e5a84;this[_0xe24011(0x179)]||(this[_0xe24011(0x179)]=!0x0,this['_collabSession']['sessionStatus$'][_0xe24011(0x1b2)](_0x1c91c9[_0xe24011(0x192)](this[_0xe24011(0x13d)]))[_0xe24011(0x12b)](_0x26f093=>{var _0x1d158a=_0xe24011;switch(_0x26f093){case _0xa185a6[_0x1d158a(0x19d)][_0x1d158a(0x1ba)]:this[_0x1d158a(0x1dd)]();break;case _0xa185a6[_0x1d158a(0x19d)]['ONLINE']:this[_0x1d158a(0x204)]();break;}}),this['_collabSession'][_0xe24011(0x18b)][_0xe24011(0x1b2)](_0x1c91c9['takeUntil'](this[_0xe24011(0x13d)]))[_0xe24011(0x12b)](_0x51b548=>{var _0x17f042=_0xe24011;const {eventID:_0x38a224}=_0x51b548;switch(_0x38a224){case _0x14b659[_0x17f042(0x1db)][_0x17f042(0x1bd)]:this[_0x17f042(0x202)](_0x51b548);break;case _0x14b659['CollaborationEvent'][_0x17f042(0x1d9)]:this[_0x17f042(0x1da)](_0x51b548);break;case _0x14b659[_0x17f042(0x1db)][_0x17f042(0x1ff)]:this['_handleTerminate']();break;case _0x14b659[_0x17f042(0x1db)][_0x17f042(0x198)]:this[_0x17f042(0x168)](_0x51b548);break;}}));}[_0x4e5a84(0x20f)](){var _0x15346d=_0x4e5a84;this[_0x15346d(0x1a0)][_0x15346d(0x1f2)]({'eventID':_0x14b659[_0x15346d(0x1db)][_0x15346d(0x1d2)],'data':{'unitID':this[_0x15346d(0x1b6)],'userID':this[_0x15346d(0x1a0)][_0x15346d(0x14f)]()}},this['_unitID']);}[_0x4e5a84(0x1aa)](){var _0x1c1a55=_0x4e5a84;this[_0x1c1a55(0x166)]===_0x1c1a55(0x187)&&(this[_0x1c1a55(0x18f)][_0x1c1a55(0x1f9)](_0x1c1a55(0x123)),this[_0x1c1a55(0x1a0)]['send']({'eventID':_0x14b659['CollaborationEvent'][_0x1c1a55(0x1ff)],'data':{'unitID':this[_0x1c1a55(0x1b6)]}},this[_0x1c1a55(0x1b6)]));}['startFollowing'](){var _0x19ebf9=_0x4e5a84;this[_0x19ebf9(0x166)]===_0x19ebf9(0x1e4)&&(this[_0x19ebf9(0x18f)]['next'](_0x19ebf9(0x1f6)),this[_0x19ebf9(0x211)]());}[_0x4e5a84(0x1fb)](){var _0x347bc3=_0x4e5a84;this[_0x347bc3(0x166)]===_0x347bc3(0x1f6)&&this[_0x347bc3(0x15a)]();}['_handleNewHost'](_0x5ca81d){var _0x234791=_0x4e5a84;const {presenter:_0x1c6ec6}=_0x5ca81d[_0x234791(0x1e7)],_0x2a1958=this['_collabSession'][_0x234791(0x14f)]();this[_0x234791(0x1a8)]=_0x1c6ec6,_0x1c6ec6===_0x2a1958?(this['_stopFollowing'](),this[_0x234791(0x19b)]()):this[_0x234791(0x166)]!==_0x234791(0x1e4)&&(this[_0x234791(0x1d1)](),this[_0x234791(0x211)]());}['_fetchOperations'](){var _0x113875=_0x4e5a84;const _0x417b20={'eventID':_0x14b659[_0x113875(0x1db)][_0x113875(0x208)]};this[_0x113875(0x1a0)][_0x113875(0x1f2)](_0x417b20,this['_unitID']);}[_0x4e5a84(0x184)](){var _0x35ce1d=_0x4e5a84;this[_0x35ce1d(0x1a8)]=null,this['_status']!==_0x35ce1d(0x187)&&this[_0x35ce1d(0x125)]();}['_handleNewChangeSets'](_0x4e01bb){var _0x2040a4=_0x4e5a84;if(this[_0x2040a4(0x166)]===_0x2040a4(0x1f6)&&this[_0x2040a4(0x1a8)]===_0x4e01bb[_0x2040a4(0x1e7)][_0x2040a4(0x1a7)]){const _0x5d9fc0=_0x14b659[_0x2040a4(0x144)](_0x4e01bb[_0x2040a4(0x1e7)])[_0x2040a4(0x15c)]['reverse']()['find'](_0x23995d=>_0x23995d['id']===_0x30d724[_0x2040a4(0x146)]['id']);if(_0x5d9fc0){const _0x2e5480=_0x5d9fc0[_0x2040a4(0x1f8)][_0x2040a4(0x1c7)],_0x3b58c5=_0x5d9fc0['params'][_0x2040a4(0x1cc)]['id'];setTimeout(()=>{var _0xb8956d=_0x2040a4;this[_0xb8956d(0x122)][_0xb8956d(0x1c4)](_0x30d724[_0xb8956d(0x13e)]['id'],{'unitId':_0x2e5480,'subUnitId':_0x3b58c5},{'fromCollab':!0x0});});}}}[_0x4e5a84(0x19b)](){var _0x4cfc68=_0x4e5a84;this[_0x4cfc68(0x18f)]['next']('presenting');const _0x187c08=new Map(),_0x45fe2b=this[_0x4cfc68(0x17b)]=new _0x457ba8[(_0x4cfc68(0x188))]();_0x45fe2b['add'](_0x457ba8[_0x4cfc68(0x1d6)](()=>{var _0x2c3f04=_0x4cfc68;_0x187c08[_0x2c3f04(0x165)](_0x2f0f20=>_0x2f0f20[_0x2c3f04(0x20c)]()),_0x187c08['clear']();})),_0x45fe2b['add'](this[_0x4cfc68(0x122)][_0x4cfc68(0x1b4)](_0x1f6aeb=>{var _0x2cd3f3=_0x4cfc68,_0x1d20a4;if(_0x1f6aeb[_0x2cd3f3(0x1d0)]!==_0x457ba8[_0x2cd3f3(0x196)]['OPERATION']||!this[_0x2cd3f3(0x172)][_0x2cd3f3(0x128)](_0x1f6aeb['id']))return;const {id:_0x3ff0a5}=_0x1f6aeb;let _0xca5860;_0x187c08[_0x2cd3f3(0x175)](_0x3ff0a5)?_0xca5860=_0x187c08['get'](_0x3ff0a5):(_0xca5860=new _0x1caf80['Subject'](),_0x187c08[_0x2cd3f3(0x124)](_0x3ff0a5,_0xca5860),_0xca5860['pipe'](_0x1c91c9[_0x2cd3f3(0x1fe)]((_0x1d20a4=this[_0x2cd3f3(0x1d5)][_0x2cd3f3(0x1a4)](_0x2f8354))!=null?_0x1d20a4:_0x28ca22,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2cd3f3(0x12b)](_0xe6d125=>{var _0x2bdd74=_0x2cd3f3;this['_collabSession'][_0x2bdd74(0x1f2)]({'eventID':_0x14b659[_0x2bdd74(0x1db)][_0x2bdd74(0x1d9)],'data':{'unitID':this[_0x2bdd74(0x1b6)],'operations':{[_0xe6d125['id']]:{'id':_0xe6d125['id'],'params':JSON[_0x2bdd74(0x1e8)](_0xe6d125[_0x2bdd74(0x1f8)])}}}},this[_0x2bdd74(0x1b6)]);})),_0xca5860['next'](_0x1f6aeb);})),this['_liveShareService']['getInitialStates'](this['_unitID'])['forEach'](_0x3125fe=>this[_0x4cfc68(0x1a0)]['send']({'eventID':_0x14b659[_0x4cfc68(0x1db)][_0x4cfc68(0x1d9)],'data':{'unitID':this['_unitID'],'operations':{[_0x3125fe['id']]:{'id':_0x3125fe['id'],'params':JSON[_0x4cfc68(0x1e8)](_0x3125fe['params'])}}}},this[_0x4cfc68(0x1b6)]));}[_0x4e5a84(0x1d1)](){var _0x172102=_0x4e5a84,_0x39f1b1;this[_0x172102(0x18f)][_0x172102(0x1f9)](_0x172102(0x123)),(_0x39f1b1=this[_0x172102(0x17b)])==null||_0x39f1b1[_0x172102(0x16f)](),this[_0x172102(0x17b)]=null;}[_0x4e5a84(0x211)](){var _0x4c4d7c=_0x4e5a84,_0x54eab8;(_0x54eab8=this[_0x4c4d7c(0x17b)])==null||_0x54eab8[_0x4c4d7c(0x16f)](),this[_0x4c4d7c(0x18f)][_0x4c4d7c(0x1f9)]('following');}['_beIdle'](){var _0x481038=_0x4e5a84,_0x508f52;this['_status$'][_0x481038(0x1f9)](_0x481038(0x123)),(_0x508f52=this[_0x481038(0x17b)])==null||_0x508f52[_0x481038(0x16f)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x2bd92e=_0x4e5a84,_0x55c3ad;this[_0x2bd92e(0x18f)][_0x2bd92e(0x1f9)](_0x2bd92e(0x1e4)),(_0x55c3ad=this[_0x2bd92e(0x17b)])==null||_0x55c3ad['dispose']();}[_0x4e5a84(0x1da)](_0x53d2cd){var _0x381359=_0x4e5a84;if(['presenting','not-following',_0x381359(0x173)][_0x381359(0x1bb)](this['_status'])||!_0x53d2cd[_0x381359(0x1e7)]['presenter']||_0x53d2cd[_0x381359(0x1e7)][_0x381359(0x161)]===this[_0x381359(0x1a0)]['getMemberID']())return;this[_0x381359(0x166)]===_0x381359(0x123)&&this[_0x381359(0x211)]();const _0x37b6ab=_0x53d2cd[_0x381359(0x1e7)][_0x381359(0x152)];Object[_0x381359(0x18d)](_0x37b6ab)[_0x381359(0x165)](_0x2754d4=>{var _0x2bad93=_0x381359;this['_commandService'][_0x2bad93(0x1c4)](_0x2754d4['id'],_0x2754d4['params']?JSON['parse'](_0x2754d4[_0x2bad93(0x1f8)]):null,{'fromCollab':!0x0});});}[_0x4e5a84(0x1dd)](){var _0x4863ec=_0x4e5a84,_0x1798c7;this[_0x4863ec(0x18f)][_0x4863ec(0x1f9)]('offline'),(_0x1798c7=this[_0x4863ec(0x17b)])==null||_0x1798c7[_0x4863ec(0x16f)]();}[_0x4e5a84(0x204)](){var _0x10fdf3=_0x4e5a84;this[_0x10fdf3(0x18f)][_0x10fdf3(0x1f9)](_0x10fdf3(0x123)),this['_fetchOperations']();}},_0x4283c3['LiveShareCoordinator']=_0x4275d4([_0x6feff1(0x2,_0x457ba8[_0x4e5a84(0x180)]),_0x6feff1(0x3,_0x457ba8[_0x4e5a84(0x13c)](_0xe7b1f9)),_0x6feff1(0x4,_0x457ba8[_0x4e5a84(0x1a5)])],_0x4283c3[_0x4e5a84(0x1b1)]);function _0x51dbb0(){var _0x53f328=_0x4e5a84;const _0x36ea7b=_0x4ed24c[_0x53f328(0x17a)](_0x4283c3[_0x53f328(0x1ed)]),_0x28135b=_0x4ed24c['useDependency'](_0x457ba8[_0x53f328(0x149)]),_0x3f8820=_0x4ed24c[_0x53f328(0x1cf)](()=>_0x28135b['getCurrentTypeOfUnit$'](_0x457ba8[_0x53f328(0x1e1)][_0x53f328(0x126)]),void 0x0,!0x1,[]),[_0x1e246f,_0xc4e962]=_0x646ae3['useState'](null),[_0x550ead,_0x2e5504]=_0x646ae3[_0x53f328(0x199)](_0x28fff0[_0x53f328(0x186)]),_0x2ba6e2=_0x646ae3[_0x53f328(0x14b)](null);return _0x646ae3[_0x53f328(0x1a6)](()=>(_0x3f8820&&_0x36ea7b[_0x53f328(0x1ac)](_0x3f8820[_0x53f328(0x1fa)]())[_0x53f328(0x13f)](_0x6ef5=>{var _0x5a5ba2=_0x53f328;_0xc4e962(_0x6ef5),_0x2ba6e2[_0x5a5ba2(0x1e3)]=_0x6ef5[_0x5a5ba2(0x141)][_0x5a5ba2(0x12b)](_0x713f85=>{_0x2e5504(_0x713f85);});}),()=>{var _0x17b258=_0x53f328,_0x4bf73c;(_0x4bf73c=_0x2ba6e2[_0x17b258(0x1e3)])==null||_0x4bf73c['unsubscribe'](),_0x2ba6e2[_0x17b258(0x1e3)]=null;}),[_0x3f8820,_0x36ea7b]),_0x1e246f?_0x266ae0[_0x53f328(0x194)](_0x4d8cc3[_0x53f328(0x171)],{'align':'end','disabled':_0x550ead===_0x28fff0[_0x53f328(0x1ba)],'className':_0x53f328(0x205),'overlay':_0x266ae0[_0x53f328(0x194)](_0xb681b0,{'status':_0x550ead,'coordinator':_0x1e246f}),'children':_0x266ae0['jsx'](_0x53f328(0x1af),{'className':_0x4d8cc3[_0x53f328(0x127)](_0x53f328(0x1cd),{'univer-cursor-not-allowed':_0x550ead===_0x28fff0['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x550ead!==_0x28fff0[_0x53f328(0x1ba)]}),'type':_0x53f328(0x1af),'children':_0x266ae0[_0x53f328(0x194)](_0x3a4854,{'className':_0x53f328(0x19c)})})}):null;}function _0xb681b0(_0xcb37bb){var _0x5e9682=_0x4e5a84;const {status:_0x131329,coordinator:_0x4c1d96}=_0xcb37bb;switch(_0x131329){case _0x28fff0[_0x5e9682(0x186)]:return _0x266ae0['jsx'](_0x3e2404,{'coordinator':_0x4c1d96});case _0x28fff0[_0x5e9682(0x209)]:return _0x266ae0[_0x5e9682(0x194)](_0x1967e5,{'coordinator':_0x4c1d96});case _0x28fff0[_0x5e9682(0x1b3)]:return _0x266ae0[_0x5e9682(0x194)](_0x40a338,{'coordinator':_0x4c1d96});case _0x28fff0['OFFLINE']:return _0x266ae0['jsx'](_0x3a3ce2,{});case _0x28fff0[_0x5e9682(0x1d7)]:return _0x266ae0[_0x5e9682(0x194)](_0x340694,{'coordinator':_0x4c1d96});default:return null;}}function _0x3e2404(_0x293032){var _0x41f0cb=_0x4e5a84;const {coordinator:_0x55043c}=_0x293032;return _0x266ae0[_0x41f0cb(0x147)](_0x266ae0['Fragment'],{'children':[_0x266ae0[_0x41f0cb(0x194)](_0x41f0cb(0x182),{'className':_0x41f0cb(0x1ad),'children':_0x41f0cb(0x150)}),_0x266ae0[_0x41f0cb(0x194)](_0x4d8cc3[_0x41f0cb(0x1ab)],{'onClick':()=>_0x55043c[_0x41f0cb(0x20f)](),'children':_0x41f0cb(0x193)})]});}function _0x1967e5(_0x24b21a){var _0x52e33c=_0x4e5a84;const {coordinator:_0x100af1}=_0x24b21a;return _0x266ae0['jsxs'](_0x266ae0[_0x52e33c(0x183)],{'children':[_0x266ae0[_0x52e33c(0x194)](_0x52e33c(0x182),{'className':_0x52e33c(0x1ad),'children':_0x52e33c(0x12d)}),_0x266ae0[_0x52e33c(0x194)](_0x4d8cc3['Button'],{'onClick':()=>_0x100af1[_0x52e33c(0x1fb)](),'children':_0x52e33c(0x1be)})]});}function _0x40a338(_0x10f385){var _0x24505f=_0x4e5a84;const {coordinator:_0x16d46d}=_0x10f385;return _0x266ae0[_0x24505f(0x147)](_0x266ae0[_0x24505f(0x183)],{'children':[_0x266ae0[_0x24505f(0x194)](_0x24505f(0x182),{'className':_0x24505f(0x1ad),'children':_0x24505f(0x12f)}),_0x266ae0[_0x24505f(0x194)](_0x4d8cc3[_0x24505f(0x1ab)],{'variant':'text','onClick':()=>_0x16d46d[_0x24505f(0x121)](),'children':_0x24505f(0x14e)})]});}function _0x340694(_0x5d1cc8){var _0x4901f5=_0x4e5a84;const {coordinator:_0x4c3a31}=_0x5d1cc8;return _0x266ae0[_0x4901f5(0x147)](_0x266ae0[_0x4901f5(0x183)],{'children':[_0x266ae0[_0x4901f5(0x194)](_0x4901f5(0x182),{'className':_0x4901f5(0x1ad),'children':_0x4901f5(0x139)}),_0x266ae0['jsx'](_0x4d8cc3[_0x4901f5(0x1ab)],{'variant':_0x4901f5(0x1e9),'onClick':()=>_0x4c3a31[_0x4901f5(0x1aa)](),'children':'Stop\x20presenting'})]});}function _0x3a3ce2(){var _0x2fc94d=_0x4e5a84;return _0x266ae0['jsx'](_0x266ae0[_0x2fc94d(0x183)],{'children':'You\x27are\x20offline.'});}var _0x297e8b=Object['getOwnPropertyDescriptor'],_0x16bd84=(_0x58b78f,_0x228fe9,_0x599d52,_0x53b737)=>{for(var _0x149454=_0x53b737>0x1?void 0x0:_0x53b737?_0x297e8b(_0x228fe9,_0x599d52):_0x228fe9,_0x580ff8=_0x58b78f['length']-0x1,_0x1973e2;_0x580ff8>=0x0;_0x580ff8--)(_0x1973e2=_0x58b78f[_0x580ff8])&&(_0x149454=_0x1973e2(_0x149454)||_0x149454);return _0x149454;},_0x14ca9a=(_0x34be82,_0x1bf783)=>(_0xaafc2e,_0x145477)=>_0x1bf783(_0xaafc2e,_0x145477,_0x34be82);_0x4283c3[_0x4e5a84(0x1c1)]=class extends _0x457ba8[_0x4e5a84(0x1d8)]{constructor(_0x1ff2e8,_0x242cee){var _0x383049=_0x4e5a84;super(),this[_0x383049(0x155)]=_0x1ff2e8,this[_0x383049(0x137)]=_0x242cee,this[_0x383049(0x134)]();}[_0x4e5a84(0x134)](){var _0x8fa15=_0x4e5a84;this['disposeWithMe'](this['_uiPartsService']['registerComponent'](_0x4ed24c[_0x8fa15(0x214)][_0x8fa15(0x138)],()=>_0x4ed24c[_0x8fa15(0x200)](_0x51dbb0,this[_0x8fa15(0x155)])));}},_0x4283c3[_0x4e5a84(0x1c1)]=_0x16bd84([_0x14ca9a(0x0,_0x457ba8[_0x4e5a84(0x13c)](_0x457ba8[_0x4e5a84(0x1e2)])),_0x14ca9a(0x1,_0x4ed24c[_0x4e5a84(0x1c8)])],_0x4283c3[_0x4e5a84(0x1c1)]);var _0x19b546=Object[_0x4e5a84(0x16c)],_0x436e71=Object['getOwnPropertyDescriptor'],_0x2cd963=(_0x4666d9,_0x1feea2,_0x49fb1d)=>_0x1feea2 in _0x4666d9?_0x19b546(_0x4666d9,_0x1feea2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49fb1d}):_0x4666d9[_0x1feea2]=_0x49fb1d,_0x467b5b=(_0x27ce2e,_0x5942f4,_0x24d674,_0x10c0f6)=>{var _0x12e936=_0x4e5a84;for(var _0x117905=_0x10c0f6>0x1?void 0x0:_0x10c0f6?_0x436e71(_0x5942f4,_0x24d674):_0x5942f4,_0x577335=_0x27ce2e[_0x12e936(0x157)]-0x1,_0x1a550c;_0x577335>=0x0;_0x577335--)(_0x1a550c=_0x27ce2e[_0x577335])&&(_0x117905=_0x1a550c(_0x117905)||_0x117905);return _0x117905;},_0x1bf226=(_0x447b67,_0x17b8f7)=>(_0x462329,_0x543025)=>_0x17b8f7(_0x462329,_0x543025,_0x447b67),_0x24c2a6=(_0x326ef9,_0x5ec768,_0x275eff)=>_0x2cd963(_0x326ef9,typeof _0x5ec768!='symbol'?_0x5ec768+'':_0x5ec768,_0x275eff);const _0x4f10b6='UNIVER_LIVE_SHARE_PLUGIN';_0x4283c3[_0x4e5a84(0x151)]=class extends _0x457ba8['Plugin']{constructor(_0xbb2f82=_0x286e71,_0x554017,_0x22600a){var _0x27c7ef=_0x4e5a84;super(),this[_0x27c7ef(0x1ef)]=_0xbb2f82,this[_0x27c7ef(0x155)]=_0x554017,this[_0x27c7ef(0x1d5)]=_0x22600a;const {..._0x484441}=_0x457ba8[_0x27c7ef(0x1bf)]({},_0x286e71,this[_0x27c7ef(0x1ef)]);this[_0x27c7ef(0x1d5)][_0x27c7ef(0x1f4)](_0xe02570,_0x484441);}[_0x4e5a84(0x140)](){var _0x59df72=_0x4e5a84;_0x457ba8[_0x59df72(0x1ea)](this['_injector'],_0x457ba8['mergeOverrideWithDependencies']([[_0xe7b1f9],[_0x4283c3[_0x59df72(0x1ed)]],[_0x4783ce],[_0x4283c3[_0x59df72(0x1c1)]]],this[_0x59df72(0x1ef)][_0x59df72(0x189)])),_0x457ba8[_0x59df72(0x14a)](this[_0x59df72(0x155)],[[_0x4783ce]]);}[_0x4e5a84(0x201)](){var _0x1ef8bb=_0x4e5a84;_0x457ba8[_0x1ef8bb(0x14a)](this[_0x1ef8bb(0x155)],[[_0x4283c3['DesktopLiveShareController']]]);}},_0x24c2a6(_0x4283c3['UniverLiveSharePlugin'],_0x4e5a84(0x1d0),_0x457ba8[_0x4e5a84(0x1e1)]['UNIVER_UNKNOWN']),_0x24c2a6(_0x4283c3[_0x4e5a84(0x151)],'pluginName',_0x4f10b6),_0x4283c3[_0x4e5a84(0x151)]=_0x467b5b([_0x457ba8[_0x4e5a84(0x1fc)](_0xa185a6[_0x4e5a84(0x1bc)]),_0x1bf226(0x1,_0x457ba8[_0x4e5a84(0x13c)](_0x457ba8[_0x4e5a84(0x1e2)])),_0x1bf226(0x2,_0x457ba8[_0x4e5a84(0x180)])],_0x4283c3[_0x4e5a84(0x151)]),_0x4283c3[_0x4e5a84(0x1b9)]=_0x51dbb0,_0x4283c3[_0x4e5a84(0x13a)]=_0xe7b1f9,_0x4283c3[_0x4e5a84(0x133)]=_0x28fff0,Object[_0x4e5a84(0x16c)](_0x4283c3,Symbol[_0x4e5a84(0x13b)],{'value':_0x4e5a84(0x164)});}));function _0x16ae(){var _0x5ef3e2=['IConfigService','get','div','Fragment','_handleTerminate','_reporters','IDLE','presenting','DisposableCollection','override','requireSession','event$','init','values','defIds','_status$','registerSharedOperation','1em','takeUntil','Start','jsx','1165325cRxFJd','CommandType','CollaborationSessionService','NEW_CHANGESETS','useState','UniverCore','_startPresenting','univer-size-4','SessionStatus','_univerInstanceService','live-share.config','_collabSession','add','operators','@univerjs/design','getConfig','ICommandService','useEffect','memberID','_presenter','6533440AUemHH','stopPresenting','Button','getLiveShareCoordinator','univer-w-full\x20univer-mb-3\x20univer-text-sm','react/jsx-runtime','button','UniverSheetsUi','LiveShareCoordinator','pipe','NOT_FOLLOWING','onCommandExecuted','evenodd','_unitID','forwardRef','42UXrJHY','LiveShare','OFFLINE','includes','UniverCollaborationClientPlugin','LIVESHARE_NEW_HOST','Stop\x20following','merge','rxjs','DesktopLiveShareController','colorChannel1','indexOf','executeCommand','concat','substring','unitId','IUIPartsService','univerjs-icon\x20univerjs-icon-','1532492kMNONp','getOwnPropertySymbols','sheet','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','SetZoomRatioOperation','useObservable','type','_stopPresenting','LIVESHARE_REQUEST_HOST','children','react','_configService','toDisposable','PRESENTING','Disposable','LIVESHARE_OPERATION','_handleOperation','CollaborationEvent','icon','_handleOffline','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','createInstance','getTypeOfUnitDisposed$','UniverInstanceType','Injector','current','not-following','LiveShareIcon','from','data','stringify','default','registerDependencies','asObservable','RxDisposable','LiveShareController','React','_config','url(#$1','displayName','send','@univerjs/sheets','setConfig','@univerjs/core','following','@univerjs/sheets-ui','params','next','getUnitId','stopFollowing','DependentOn','getOwnPropertyDescriptor','throttleTime','LIVESHARE_TERMINATE','connectInjector','onRendered','_handleNewHost','mask','_handleOnline','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','toString','@univerjs/ui','LIVESHARE_FETCH_OPERATIONS','FOLLOWING','_startLiveShareCoordinator','attrs','complete','2905mQlHdr','symbol','tryStartPresenting','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','_startFollowing','getTypeOfUnitAdded$','entries','BuiltInUIPart','startFollowing','_commandService','idle','set','_beIdle','UNIVER_SHEET','clsx','shouldShareOperation','51758EXMJba','25642BAICbI','subscribe','xlink:href','You\x27re\x20following\x20the\x20presenter','createElement','You\x27re\x20not\x20following\x20the\x20presenter','6JJmiTg','idSuffix','getInitialStates','LiveShareStatus','_mountLiveShare','prototype','393896WNxYfo','_uiPartsService','HEADER_MENU','You\x27re\x20presenting\x20the\x20document','LiveShareService','toStringTag','Inject','dispose$','SetWorksheetActiveOperation','then','onStarting','status$','_sharedOperations','function','parseProtocolChangeset','string','InsertSheetMutation','jsxs','call','IUniverInstanceService','touchDependencies','useRef','extend','none','Start\x20following','getMemberID','Present\x20this\x20document','UniverLiveSharePlugin','operations','defs','tag','_injector','0\x200\x2017\x2017','length','exports','assign','_stopFollowing','delete','mutations','_entities','className','hasOwnProperty','BehaviorSubject','presenter','trim','apply','Module','forEach','_status','live-share-icon','_handleNewChangeSets','replace','propertyIsEnumerable','18EdIXMl','defineProperty','@univerjs-pro/collaboration','@univerjs-pro/collaboration-client','dispose','registerInitialStateReporter','Dropdown','_liveShareService','offline','UniverUi','has','_collabSessionService','map','rxjs/operators','_init','useDependency','_commandDisposable','currentColor','path','getValue','fill'];_0x16ae=function(){return _0x5ef3e2;};return _0x16ae();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.8.0-nightly.202506071606",
3
+ "version": "0.8.0-nightly.202506081606",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -47,13 +47,13 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@univerjs/icons": "^0.4.4",
50
- "@univerjs-pro/collaboration": "0.8.0-nightly.202506071606",
51
- "@univerjs/core": "0.8.0-nightly.202506071606",
52
- "@univerjs/design": "0.8.0-nightly.202506071606",
53
- "@univerjs/sheets": "0.8.0-nightly.202506071606",
54
- "@univerjs/sheets-ui": "0.8.0-nightly.202506071606",
55
- "@univerjs-pro/collaboration-client": "0.8.0-nightly.202506071606",
56
- "@univerjs/ui": "0.8.0-nightly.202506071606"
50
+ "@univerjs-pro/collaboration": "0.8.0-nightly.202506081606",
51
+ "@univerjs-pro/collaboration-client": "0.8.0-nightly.202506081606",
52
+ "@univerjs/core": "0.8.0-nightly.202506081606",
53
+ "@univerjs/sheets": "0.8.0-nightly.202506081606",
54
+ "@univerjs/design": "0.8.0-nightly.202506081606",
55
+ "@univerjs/sheets-ui": "0.8.0-nightly.202506081606",
56
+ "@univerjs/ui": "0.8.0-nightly.202506081606"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.4",