@univerjs-pro/live-share 0.9.3-nightly.202507250819 → 0.9.4-nightly.202507290713

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 _0x1de777=_0xb18f;(function(_0x30b936,_0x1d1372){var _0xd5013d=_0xb18f,_0x457cde=_0x30b936();while(!![]){try{var _0x4aa296=-parseInt(_0xd5013d(0x237))/0x1*(-parseInt(_0xd5013d(0x24c))/0x2)+parseInt(_0xd5013d(0x219))/0x3*(parseInt(_0xd5013d(0x267))/0x4)+-parseInt(_0xd5013d(0x1b8))/0x5+parseInt(_0xd5013d(0x1e1))/0x6*(-parseInt(_0xd5013d(0x213))/0x7)+-parseInt(_0xd5013d(0x250))/0x8+-parseInt(_0xd5013d(0x209))/0x9*(parseInt(_0xd5013d(0x1e9))/0xa)+parseInt(_0xd5013d(0x23c))/0xb;if(_0x4aa296===_0x1d1372)break;else _0x457cde['push'](_0x457cde['shift']());}catch(_0x3caa30){_0x457cde['push'](_0x457cde['shift']());}}}(_0x22da,0xa7094));var U=Object[_0x1de777(0x212)],F=(_0x224752,_0x21d36a,_0x1bb015)=>_0x21d36a in _0x224752?U(_0x224752,_0x21d36a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1bb015}):_0x224752[_0x21d36a]=_0x1bb015,v=(_0x3a6cf2,_0x33ad56,_0x177620)=>F(_0x3a6cf2,typeof _0x33ad56!=_0x1de777(0x1c5)?_0x33ad56+'':_0x33ad56,_0x177620);Object['defineProperty'](exports,Symbol[_0x1de777(0x1fc)],{'value':_0x1de777(0x25c)});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$=_0x1de777(0x1f1),x={};class O extends o[_0x1de777(0x1ff)]{constructor(){var _0x549ed9=_0x1de777;super(...arguments),v(this,_0x549ed9(0x238),new Set()),v(this,_0x549ed9(0x1bf),new Set());}['registerSharedOperation'](_0x2c1d48){var _0x32d186=_0x1de777;return this[_0x32d186(0x238)][_0x32d186(0x201)](_0x2c1d48),o[_0x32d186(0x21f)](()=>this[_0x32d186(0x238)]['delete'](_0x2c1d48));}[_0x1de777(0x1fa)](_0x38b19b){var _0x30f066=_0x1de777;return this[_0x30f066(0x1bf)]['add'](_0x38b19b),o[_0x30f066(0x21f)](()=>this[_0x30f066(0x1bf)]['delete'](_0x38b19b));}[_0x1de777(0x1ac)](_0x31a53f){var _0x434f21=_0x1de777;return this[_0x434f21(0x238)]['has'](_0x31a53f);}[_0x1de777(0x239)](_0x5442c3){var _0x1c08a9=_0x1de777;return Array[_0x1c08a9(0x1d5)](this[_0x1c08a9(0x1bf)])[_0x1c08a9(0x264)](_0x3bc623=>_0x3bc623(_0x5442c3));}}var H=Object[_0x1de777(0x1d3)],V=(_0xe2ad14,_0x5cf984,_0xd847b0,_0x11bb13)=>{for(var _0x4b8bb8=_0x11bb13>0x1?void 0x0:_0x11bb13?H(_0x5cf984,_0xd847b0):_0x5cf984,_0x17c87d=_0xe2ad14['length']-0x1,_0x29fb5a;_0x17c87d>=0x0;_0x17c87d--)(_0x29fb5a=_0xe2ad14[_0x17c87d])&&(_0x4b8bb8=_0x29fb5a(_0x4b8bb8)||_0x4b8bb8);return _0x4b8bb8;},k=(_0x377368,_0x40e30f)=>(_0x2f963f,_0x58d6d1)=>_0x40e30f(_0x2f963f,_0x58d6d1,_0x377368);let E=class extends o[_0x1de777(0x1ff)]{constructor(_0x5ec2ff){var _0x3f8a1a=_0x1de777;super(),this[_0x3f8a1a(0x26a)]=_0x5ec2ff,this[_0x3f8a1a(0x272)]();}[_0x1de777(0x272)](){var _0x30e96e=_0x1de777;[w[_0x30e96e(0x1ad)]['id'],w['SetScrollOperation']['id'],C['SetWorksheetActiveOperation']['id']][_0x30e96e(0x19f)](_0x1aafa8=>{var _0x20a8a0=_0x30e96e;this[_0x20a8a0(0x258)](this[_0x20a8a0(0x26a)][_0x20a8a0(0x1c8)](_0x1aafa8));});}};function _0x22da(){var _0x339381=['onStarting','touchDependencies','_presenter','replace','getMemberID','trim','idle','90702VJjORo','_handleOperation','registerComponent','parse','BuiltInUIPart','colorChannel1','UNIVER_LIVE_SHARE_PLUGIN','prototype','substring','defineProperty','7jPjxQZ','LiveShareController','stopPresenting','CommandType','_startPresenting','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','269652Cbsnpf','path','none','pipe','CollaborationEvent','entries','toDisposable','LIVESHARE_REQUEST_HOST','memberID','subscribe','SAME_OPERATION_SHARE_INTERVAL','LiveShareService','data','evenodd','_univerInstanceService','_fetchOperations','IUniverInstanceService','useDependency','IDLE','mutations','assign','_collabSessionService','_mountLiveShare','useRef','_unitID','Stop\x20presenting','useState','_commandService','params','_handleNewHost','480093OXLZpY','_sharedOperations','getInitialStates','includes','stringify','22272855EnYXQv','FOLLOWING','SessionStatus','mergeOverrideWithDependencies','override','find','getCurrentTypeOfUnit$','forwardRef','1em','dispose$','set','jsxs','xlink:href','asObservable','live-share-icon','complete','2pgKhBj','You\x27re\x20following\x20the\x20presenter','attrs','LIVESHARE_TERMINATE','9059352NeeHWD','LiveShareStatus','createInstance','SetWorksheetActiveOperation','OPERATION','HEADER_MENU','connectInjector','CollaborationSessionService','disposeWithMe','onRendered','end','getTypeOfUnitDisposed$','Module','fill','LIVESHARE_FETCH_OPERATIONS','extend','displayName','_handleTerminate','length','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','map','_config','_startLiveShareCoordinator','32agFZIs','current','_startFollowing','_liveShareService','tryStartPresenting','PRESENTING','InsertSheetMutation','operations','send','dispose','univer-mb-3\x20univer-w-full\x20univer-text-sm','_init','LiveShare','UNIVER_SHEET','call','icon','createElement','RxDisposable','has','button','_entities','Button','_status','forEach','getTypeOfUnitAdded$','currentColor','idSuffix','univer-size-4','DesktopLiveShareController','clear','executeCommand','UniverInstanceType','_status$','_beIdle','Dropdown','next','shouldShareOperation','SetZoomRatioOperation','hasOwnProperty','init','IConfigService','type','then','LiveShareIcon','unitId','concat','Start\x20following','setConfig','698940iFXuKE','_commandDisposable','Injector','_injector','clsx','_stopPresenting','getLiveShareCoordinator','_reporters','registerDependencies','indexOf','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','defIds','presenter','symbol','_handleOffline','Subject','registerSharedOperation','DependentOn','propertyIsEnumerable','_uiPartsService','presenting','jsx','takeUntil','random','Fragment','stopFollowing','sessionStatus$','getOwnPropertyDescriptor','univerjs-icon\x20univerjs-icon-','from','LIVESHARE_OPERATION','getUnitId','not-following','_collabSession','useObservable','Inject','following','OFFLINE','string','text','You\x27re\x20not\x20following\x20the\x20presenter','288870vDDeBX','Present\x20this\x20document','UniverLiveSharePlugin','getConfig','reverse','IUIPartsService','NOT_FOLLOWING','use','1210XFpQjJ','_configService','defs','ICommandService','status$','className','offline','toString','live-share.config','_handleOnline','event$','div','Plugin','startFollowing','children','sheet','tag','registerInitialStateReporter','mask','toStringTag','merge','LiveShareCoordinator','Disposable','_stopFollowing','add'];_0x22da=function(){return _0x339381;};return _0x22da();}E=V([k(0x0,o['Inject'](O))],E);var u=function(){return u=Object['assign']||function(_0x2db527){var _0x437740=_0xb18f;for(var _0x150249,_0x2b2fb2=0x1,_0x3af27a=arguments[_0x437740(0x262)];_0x2b2fb2<_0x3af27a;_0x2b2fb2++){_0x150249=arguments[_0x2b2fb2];for(var _0x355cc8 in _0x150249)Object[_0x437740(0x210)][_0x437740(0x1ae)][_0x437740(0x275)](_0x150249,_0x355cc8)&&(_0x2db527[_0x355cc8]=_0x150249[_0x355cc8]);}return _0x2db527;},u['apply'](this,arguments);},M=function(_0x3cd038,_0x5a98e9){var _0x4c8172=_0x1de777,_0x56a20d={};for(var _0x402a7e in _0x3cd038)Object['prototype'][_0x4c8172(0x1ae)][_0x4c8172(0x275)](_0x3cd038,_0x402a7e)&&_0x5a98e9[_0x4c8172(0x1c1)](_0x402a7e)<0x0&&(_0x56a20d[_0x402a7e]=_0x3cd038[_0x402a7e]);if(_0x3cd038!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x13821d=0x0,_0x402a7e=Object['getOwnPropertySymbols'](_0x3cd038);_0x13821d<_0x402a7e[_0x4c8172(0x262)];_0x13821d++)_0x5a98e9['indexOf'](_0x402a7e[_0x13821d])<0x0&&Object[_0x4c8172(0x210)][_0x4c8172(0x1ca)][_0x4c8172(0x275)](_0x3cd038,_0x402a7e[_0x13821d])&&(_0x56a20d[_0x402a7e[_0x13821d]]=_0x3cd038[_0x402a7e[_0x13821d]]);}return _0x56a20d;},j=f[_0x1de777(0x243)](function(_0x31a061,_0x1a8653){var _0x46e5f7=_0x1de777,_0x537e81=_0x31a061[_0x46e5f7(0x276)],_0x50dcc1=_0x31a061['id'],_0x727b9e=_0x31a061[_0x46e5f7(0x1ee)],_0x409e10=_0x31a061['extend'],_0x4cc01e=M(_0x31a061,[_0x46e5f7(0x276),'id',_0x46e5f7(0x1ee),_0x46e5f7(0x25f)]),_0x31677d=_0x46e5f7(0x1d4)['concat'](_0x50dcc1,'\x20')[_0x46e5f7(0x1b5)](_0x727b9e||'')[_0x46e5f7(0x207)](),_0x3872ca=f[_0x46e5f7(0x230)]('_'[_0x46e5f7(0x1b5)](G()));return y(_0x537e81,''[_0x46e5f7(0x1b5)](_0x50dcc1),{'defIds':_0x537e81['defIds'],'idSuffix':_0x3872ca[_0x46e5f7(0x268)]},u({'ref':_0x1a8653,'className':_0x31677d},_0x4cc01e),_0x409e10);});function y(_0x7b9e5c,_0x389243,_0x4c8749,_0x279155,_0x5e2bcb){var _0x59eb60=_0x1de777;return f[_0x59eb60(0x277)](_0x7b9e5c[_0x59eb60(0x1f9)],u(u({'key':_0x389243},q(_0x7b9e5c,_0x4c8749,_0x5e2bcb)),_0x279155),(W(_0x7b9e5c,_0x4c8749)[_0x59eb60(0x1f7)]||[])[_0x59eb60(0x264)](function(_0xd11a59,_0x2f951b){var _0x54cd0a=_0x59eb60;return y(_0xd11a59,''[_0x54cd0a(0x1b5)](_0x389243,'-')[_0x54cd0a(0x1b5)](_0x7b9e5c[_0x54cd0a(0x1f9)],'-')[_0x54cd0a(0x1b5)](_0x2f951b),_0x4c8749,void 0x0,_0x5e2bcb);}));}function q(_0x44d84c,_0x28e966,_0x53bc04){var _0x534339=_0x1de777,_0x36d0e6=u({},_0x44d84c['attrs']);_0x53bc04!=null&&_0x53bc04[_0x534339(0x20e)]&&_0x36d0e6[_0x534339(0x25d)]===_0x534339(0x20e)&&(_0x36d0e6['fill']=_0x53bc04[_0x534339(0x20e)]),_0x44d84c['tag']==='mask'&&_0x36d0e6['id']&&(_0x36d0e6['id']=_0x36d0e6['id']+_0x28e966[_0x534339(0x1a2)]),Object[_0x534339(0x21e)](_0x36d0e6)[_0x534339(0x19f)](function(_0x5ccecf){var _0x424000=_0x534339,_0x2d7e9e=_0x5ccecf[0x0],_0x233dd1=_0x5ccecf[0x1];_0x2d7e9e===_0x424000(0x1fb)&&typeof _0x233dd1==_0x424000(0x1de)&&(_0x36d0e6[_0x2d7e9e]=_0x233dd1[_0x424000(0x205)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x28e966['idSuffix'],')')));});var _0x48a8fc=_0x28e966[_0x534339(0x1c3)];return!_0x48a8fc||_0x48a8fc[_0x534339(0x262)]===0x0||(_0x44d84c[_0x534339(0x1f9)]===_0x534339(0x1e8)&&_0x36d0e6[_0x534339(0x248)]&&(_0x36d0e6[_0x534339(0x248)]=_0x36d0e6[_0x534339(0x248)]+_0x28e966['idSuffix']),Object[_0x534339(0x21e)](_0x36d0e6)[_0x534339(0x19f)](function(_0x3f58c5){var _0xb88abd=_0x534339,_0x26ea6a=_0x3f58c5[0x0],_0x227acd=_0x3f58c5[0x1];typeof _0x227acd==_0xb88abd(0x1de)&&(_0x36d0e6[_0x26ea6a]=_0x227acd['replace'](/url\(#(.*)\)/,'url(#$1'[_0xb88abd(0x1b5)](_0x28e966[_0xb88abd(0x1a2)],')')));})),_0x36d0e6;}function W(_0x5e988e,_0x3c2994){var _0x4cb835=_0x1de777,_0x305f52,_0x1c6343=_0x3c2994[_0x4cb835(0x1c3)];return!_0x1c6343||_0x1c6343['length']===0x0?_0x5e988e:_0x5e988e[_0x4cb835(0x1f9)]===_0x4cb835(0x1eb)&&(!((_0x305f52=_0x5e988e[_0x4cb835(0x1f7)])===null||_0x305f52===void 0x0)&&_0x305f52['length'])?u(u({},_0x5e988e),{'children':_0x5e988e[_0x4cb835(0x1f7)][_0x4cb835(0x264)](function(_0x3c29db){var _0x15313d=_0x4cb835;return typeof _0x3c29db[_0x15313d(0x24e)]['id']=='string'&&_0x1c6343&&_0x1c6343['includes'](_0x3c29db[_0x15313d(0x24e)]['id'])?u(u({},_0x3c29db),{'attrs':u(u({},_0x3c29db[_0x15313d(0x24e)]),{'id':_0x3c29db['attrs']['id']+_0x3c2994[_0x15313d(0x1a2)]})}):_0x3c29db;})}):_0x5e988e;}function G(){var _0x553f2d=_0x1de777;return Math[_0x553f2d(0x1cf)]()[_0x553f2d(0x1f0)](0x24)[_0x553f2d(0x211)](0x2,0x8);}j[_0x1de777(0x260)]='UniverIcon';var B={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1de777(0x21b),'viewBox':'0\x200\x2017\x2017','width':_0x1de777(0x244),'height':_0x1de777(0x244)},'children':[{'tag':_0x1de777(0x21a),'attrs':{'fill':_0x1de777(0x1a1),'d':_0x1de777(0x263)}},{'tag':_0x1de777(0x21a),'attrs':{'fill':'currentColor','d':_0x1de777(0x218),'fillRule':_0x1de777(0x226),'clipRule':_0x1de777(0x226)}}]},P=f['forwardRef'](function(_0x33d2a5,_0x1a282e){var _0xea9b89=_0x1de777;return f[_0xea9b89(0x277)](j,Object[_0xea9b89(0x22d)]({},_0x33d2a5,{'id':_0xea9b89(0x24a),'ref':_0x1a282e,'icon':B}));});P[_0x1de777(0x260)]=_0x1de777(0x1b3);var Y=Object[_0x1de777(0x1d3)],R=(_0x4cf114,_0x3a92f1,_0x4c1bff,_0x83d1ac)=>{var _0xfd4e04=_0x1de777;for(var _0x199d52=_0x83d1ac>0x1?void 0x0:_0x83d1ac?Y(_0x3a92f1,_0x4c1bff):_0x3a92f1,_0x22f90e=_0x4cf114[_0xfd4e04(0x262)]-0x1,_0x34c77d;_0x22f90e>=0x0;_0x22f90e--)(_0x34c77d=_0x4cf114[_0x22f90e])&&(_0x199d52=_0x34c77d(_0x199d52)||_0x199d52);return _0x199d52;},S=(_0x30222c,_0xe2a367)=>(_0x165b79,_0x21cdf8)=>_0xe2a367(_0x165b79,_0x21cdf8,_0x30222c);exports[_0x1de777(0x214)]=class extends o[_0x1de777(0x278)]{constructor(_0x423306,_0x5debae,_0x5be375){var _0x17c9e1=_0x1de777;super(),v(this,_0x17c9e1(0x27b),new Map()),(this[_0x17c9e1(0x227)]=_0x423306,this['_injector']=_0x5debae,this['_collabSessionService']=_0x5be375,this[_0x17c9e1(0x272)]());}async['getLiveShareCoordinator'](_0x2b8739){var _0x24912f=_0x1de777;return this[_0x24912f(0x27b)]['has'](_0x2b8739)||await this[_0x24912f(0x266)](_0x2b8739),this['_entities']['get'](_0x2b8739);}['_init'](){var _0x51e5be=_0x1de777;this['_univerInstanceService'][_0x51e5be(0x1a0)](o[_0x51e5be(0x1a7)][_0x51e5be(0x274)])['pipe'](b[_0x51e5be(0x1ce)](this['dispose$']))[_0x51e5be(0x222)](async _0x6731ed=>{var _0x5f0462=_0x51e5be;const _0xcd399=_0x6731ed[_0x5f0462(0x1d7)]();this[_0x5f0462(0x27b)][_0x5f0462(0x279)](_0xcd399)||this[_0x5f0462(0x266)](_0xcd399);}),this[_0x51e5be(0x227)][_0x51e5be(0x25b)](o[_0x51e5be(0x1a7)][_0x51e5be(0x274)])[_0x51e5be(0x21c)](b[_0x51e5be(0x1ce)](this[_0x51e5be(0x245)]))[_0x51e5be(0x222)](_0x45ffe=>{var _0x343b2f=_0x51e5be;const _0x3fbfe5=_0x45ffe[_0x343b2f(0x1d7)](),_0x23d31c=this['_entities']['get'](_0x3fbfe5);_0x23d31c==null||_0x23d31c[_0x343b2f(0x270)]();});}async[_0x1de777(0x266)](_0x444197){var _0x2fd7f2=_0x1de777;const _0x477d30=await this[_0x2fd7f2(0x22e)]['requireSession'](_0x444197),_0x16e9ae=this[_0x2fd7f2(0x1bb)][_0x2fd7f2(0x252)](exports[_0x2fd7f2(0x1fe)],_0x444197,_0x477d30);return _0x16e9ae[_0x2fd7f2(0x1af)](),this[_0x2fd7f2(0x27b)][_0x2fd7f2(0x246)](_0x444197,_0x16e9ae),_0x16e9ae;}},exports['LiveShareController']=R([S(0x0,o[_0x1de777(0x229)]),S(0x1,o[_0x1de777(0x1db)](o[_0x1de777(0x1ba)])),S(0x2,o['Inject'](m[_0x1de777(0x257)]))],exports[_0x1de777(0x214)]);var h=(_0x483fd9=>(_0x483fd9['OFFLINE']=_0x1de777(0x1ef),_0x483fd9[_0x1de777(0x22b)]='idle',_0x483fd9[_0x1de777(0x23d)]=_0x1de777(0x1dc),_0x483fd9[_0x1de777(0x1e7)]='not-following',_0x483fd9[_0x1de777(0x26c)]=_0x1de777(0x1cc),_0x483fd9))(h||{});const Z=_0x1de777(0x223),J=0xc8;exports[_0x1de777(0x1fe)]=class extends o['RxDisposable']{constructor(_0x25274c,_0x13fbb3,_0x49d2c8,_0xa03538,_0x5bf607){var _0x12d27f=_0x1de777;super(),v(this,_0x12d27f(0x1a8),new D['BehaviorSubject'](_0x12d27f(0x208))),v(this,'status$',this[_0x12d27f(0x1a8)][_0x12d27f(0x249)]()),v(this,_0x12d27f(0x272),!0x1),v(this,_0x12d27f(0x1b9),null),v(this,'_presenter',null),(this[_0x12d27f(0x231)]=_0x25274c,this[_0x12d27f(0x1d9)]=_0x13fbb3,this[_0x12d27f(0x1ea)]=_0x49d2c8,this['_liveShareService']=_0xa03538,this[_0x12d27f(0x234)]=_0x5bf607);}get[_0x1de777(0x27d)](){return this['_status$']['getValue']();}['dispose'](){var _0x4148fa=_0x1de777,_0x195f98;(_0x195f98=this[_0x4148fa(0x1b9)])==null||_0x195f98[_0x4148fa(0x270)](),this[_0x4148fa(0x1a8)][_0x4148fa(0x1ab)](_0x4148fa(0x208)),this[_0x4148fa(0x1a8)][_0x4148fa(0x24b)]();}[_0x1de777(0x1af)](){var _0x349664=_0x1de777;this['_init']||(this[_0x349664(0x272)]=!0x0,this[_0x349664(0x1d9)][_0x349664(0x1d2)][_0x349664(0x21c)](b[_0x349664(0x1ce)](this[_0x349664(0x245)]))[_0x349664(0x222)](_0x56caff=>{var _0x6d86e=_0x349664;switch(_0x56caff){case m[_0x6d86e(0x23e)][_0x6d86e(0x1dd)]:this[_0x6d86e(0x1c6)]();break;case m[_0x6d86e(0x23e)]['ONLINE']:this[_0x6d86e(0x1f2)]();break;}}),this[_0x349664(0x1d9)][_0x349664(0x1f3)][_0x349664(0x21c)](b['takeUntil'](this['dispose$']))[_0x349664(0x222)](_0x4346d7=>{var _0x412003=_0x349664;const {eventID:_0x441fa5}=_0x4346d7;switch(_0x441fa5){case _[_0x412003(0x21d)]['LIVESHARE_NEW_HOST']:this[_0x412003(0x236)](_0x4346d7);break;case _[_0x412003(0x21d)][_0x412003(0x1d6)]:this[_0x412003(0x20a)](_0x4346d7);break;case _[_0x412003(0x21d)]['LIVESHARE_TERMINATE']:this[_0x412003(0x261)]();break;case _[_0x412003(0x21d)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x4346d7);break;}}));}[_0x1de777(0x26b)](){var _0x9a3ee8=_0x1de777;this['_collabSession']['send']({'eventID':_[_0x9a3ee8(0x21d)][_0x9a3ee8(0x220)],'data':{'unitID':this['_unitID'],'userID':this[_0x9a3ee8(0x1d9)][_0x9a3ee8(0x206)]()}},this['_unitID']);}[_0x1de777(0x215)](){var _0x1b5050=_0x1de777;this['_status']===_0x1b5050(0x1cc)&&(this[_0x1b5050(0x1a8)][_0x1b5050(0x1ab)](_0x1b5050(0x208)),this[_0x1b5050(0x1d9)]['send']({'eventID':_['CollaborationEvent'][_0x1b5050(0x24f)],'data':{'unitID':this['_unitID']}},this[_0x1b5050(0x231)]));}[_0x1de777(0x1f6)](){var _0x267d3a=_0x1de777;this[_0x267d3a(0x27d)]===_0x267d3a(0x1d8)&&(this[_0x267d3a(0x1a8)]['next'](_0x267d3a(0x1dc)),this[_0x267d3a(0x269)]());}[_0x1de777(0x1d1)](){var _0x8cd770=_0x1de777;this[_0x8cd770(0x27d)]===_0x8cd770(0x1dc)&&this['_stopFollowing']();}['_handleNewHost'](_0x1ca143){var _0x362e1d=_0x1de777;const {presenter:_0x1bbf82}=_0x1ca143[_0x362e1d(0x225)],_0x1cfcc8=this[_0x362e1d(0x1d9)][_0x362e1d(0x206)]();this['_presenter']=_0x1bbf82,_0x1bbf82===_0x1cfcc8?(this[_0x362e1d(0x200)](),this[_0x362e1d(0x217)]()):this[_0x362e1d(0x27d)]!==_0x362e1d(0x1d8)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x1de777(0x228)](){var _0x244864=_0x1de777;const _0x24a1d5={'eventID':_[_0x244864(0x21d)][_0x244864(0x25e)]};this[_0x244864(0x1d9)]['send'](_0x24a1d5,this[_0x244864(0x231)]);}[_0x1de777(0x261)](){var _0x34363a=_0x1de777;this['_presenter']=null,this[_0x34363a(0x27d)]!==_0x34363a(0x1cc)&&this[_0x34363a(0x1a9)]();}['_handleNewChangeSets'](_0x4c4ad2){var _0x33d386=_0x1de777;if(this[_0x33d386(0x27d)]===_0x33d386(0x1dc)&&this[_0x33d386(0x204)]===_0x4c4ad2[_0x33d386(0x225)][_0x33d386(0x221)]){const _0x5f0a5f=_['parseProtocolChangeset'](_0x4c4ad2[_0x33d386(0x225)])[_0x33d386(0x22c)][_0x33d386(0x1e5)]()[_0x33d386(0x241)](_0x250dd1=>_0x250dd1['id']===C[_0x33d386(0x26d)]['id']);if(_0x5f0a5f){const _0x1df667=_0x5f0a5f[_0x33d386(0x235)][_0x33d386(0x1b4)],_0x32ae44=_0x5f0a5f[_0x33d386(0x235)][_0x33d386(0x1f8)]['id'];setTimeout(()=>{var _0x2e8f24=_0x33d386;this[_0x2e8f24(0x234)]['executeCommand'](C[_0x2e8f24(0x253)]['id'],{'unitId':_0x1df667,'subUnitId':_0x32ae44},{'fromCollab':!0x0});});}}}[_0x1de777(0x217)](){var _0x324959=_0x1de777;this[_0x324959(0x1a8)][_0x324959(0x1ab)](_0x324959(0x1cc));const _0x3b25f4=new Map(),_0x236c8f=this[_0x324959(0x1b9)]=new o['DisposableCollection']();_0x236c8f[_0x324959(0x201)](o[_0x324959(0x21f)](()=>{var _0x289005=_0x324959;_0x3b25f4[_0x289005(0x19f)](_0x38fe24=>_0x38fe24[_0x289005(0x24b)]()),_0x3b25f4[_0x289005(0x1a5)]();})),_0x236c8f[_0x324959(0x201)](this[_0x324959(0x234)]['onCommandExecuted'](_0x539662=>{var _0x57d5ce=_0x324959,_0x41a839;if(_0x539662['type']!==o[_0x57d5ce(0x216)][_0x57d5ce(0x254)]||!this['_liveShareService'][_0x57d5ce(0x1ac)](_0x539662['id']))return;const {id:_0x5ce25f}=_0x539662;let _0x3e0e9e;_0x3b25f4[_0x57d5ce(0x279)](_0x5ce25f)?_0x3e0e9e=_0x3b25f4['get'](_0x5ce25f):(_0x3e0e9e=new D[(_0x57d5ce(0x1c7))](),_0x3b25f4[_0x57d5ce(0x246)](_0x5ce25f,_0x3e0e9e),_0x3e0e9e['pipe'](b['throttleTime']((_0x41a839=this[_0x57d5ce(0x1ea)][_0x57d5ce(0x1e4)](Z))!=null?_0x41a839:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x57d5ce(0x222)](_0x110e46=>{var _0x127e07=_0x57d5ce;this['_collabSession']['send']({'eventID':_[_0x127e07(0x21d)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x127e07(0x231)],'operations':{[_0x110e46['id']]:{'id':_0x110e46['id'],'params':JSON[_0x127e07(0x23b)](_0x110e46[_0x127e07(0x235)])}}}},this[_0x127e07(0x231)]);})),_0x3e0e9e[_0x57d5ce(0x1ab)](_0x539662);})),this['_liveShareService'][_0x324959(0x239)](this[_0x324959(0x231)])[_0x324959(0x19f)](_0x4ccd70=>this['_collabSession'][_0x324959(0x26f)]({'eventID':_[_0x324959(0x21d)][_0x324959(0x1d6)],'data':{'unitID':this[_0x324959(0x231)],'operations':{[_0x4ccd70['id']]:{'id':_0x4ccd70['id'],'params':JSON[_0x324959(0x23b)](_0x4ccd70[_0x324959(0x235)])}}}},this[_0x324959(0x231)]));}[_0x1de777(0x1bd)](){var _0x47d18c=_0x1de777,_0x53441d;this[_0x47d18c(0x1a8)]['next'](_0x47d18c(0x208)),(_0x53441d=this['_commandDisposable'])==null||_0x53441d[_0x47d18c(0x270)](),this[_0x47d18c(0x1b9)]=null;}[_0x1de777(0x269)](){var _0x4757e5=_0x1de777,_0x47fee6;(_0x47fee6=this['_commandDisposable'])==null||_0x47fee6[_0x4757e5(0x270)](),this[_0x4757e5(0x1a8)][_0x4757e5(0x1ab)]('following');}[_0x1de777(0x1a9)](){var _0x4641ce=_0x1de777,_0x7d6d42;this[_0x4641ce(0x1a8)]['next']('idle'),(_0x7d6d42=this[_0x4641ce(0x1b9)])==null||_0x7d6d42['dispose'](),this[_0x4641ce(0x1b9)]=null;}[_0x1de777(0x200)](){var _0x44c013=_0x1de777,_0x610851;this[_0x44c013(0x1a8)][_0x44c013(0x1ab)]('not-following'),(_0x610851=this['_commandDisposable'])==null||_0x610851[_0x44c013(0x270)]();}['_handleOperation'](_0x176b28){var _0x4af11f=_0x1de777;if([_0x4af11f(0x1cc),_0x4af11f(0x1d8),_0x4af11f(0x1ef)][_0x4af11f(0x23a)](this[_0x4af11f(0x27d)])||!_0x176b28[_0x4af11f(0x225)][_0x4af11f(0x1c4)]||_0x176b28['data']['presenter']===this['_collabSession']['getMemberID']())return;this[_0x4af11f(0x27d)]==='idle'&&this[_0x4af11f(0x269)]();const _0x21715d=_0x176b28[_0x4af11f(0x225)][_0x4af11f(0x26e)];Object['values'](_0x21715d)[_0x4af11f(0x19f)](_0x5e1435=>{var _0x189995=_0x4af11f;this[_0x189995(0x234)][_0x189995(0x1a6)](_0x5e1435['id'],_0x5e1435[_0x189995(0x235)]?JSON[_0x189995(0x20c)](_0x5e1435[_0x189995(0x235)]):null,{'fromCollab':!0x0});});}[_0x1de777(0x1c6)](){var _0xc09cc5=_0x1de777,_0x8b8de6;this[_0xc09cc5(0x1a8)]['next'](_0xc09cc5(0x1ef)),(_0x8b8de6=this[_0xc09cc5(0x1b9)])==null||_0x8b8de6[_0xc09cc5(0x270)]();}[_0x1de777(0x1f2)](){var _0x4c2d5b=_0x1de777;this[_0x4c2d5b(0x1a8)][_0x4c2d5b(0x1ab)](_0x4c2d5b(0x208)),this['_fetchOperations']();}},exports[_0x1de777(0x1fe)]=R([S(0x2,o[_0x1de777(0x1b0)]),S(0x3,o['Inject'](O)),S(0x4,o[_0x1de777(0x1ec)])],exports[_0x1de777(0x1fe)]);function A(){var _0x340876=_0x1de777;const _0x180f2a=p[_0x340876(0x22a)](exports[_0x340876(0x214)]),_0x32e7ab=p[_0x340876(0x22a)](o[_0x340876(0x229)]),_0x143a41=p[_0x340876(0x1da)](()=>_0x32e7ab[_0x340876(0x242)](o[_0x340876(0x1a7)][_0x340876(0x274)]),void 0x0,!0x1,[]),[_0x4ede26,_0x58bc2c]=f[_0x340876(0x233)](null),[_0x125994,_0x2c211b]=f[_0x340876(0x233)](h[_0x340876(0x22b)]),_0x3a2292=f[_0x340876(0x230)](null);return f['useEffect'](()=>(_0x143a41&&_0x180f2a[_0x340876(0x1be)](_0x143a41['getUnitId']())[_0x340876(0x1b2)](_0x41d534=>{var _0x1422c2=_0x340876;_0x58bc2c(_0x41d534),_0x3a2292['current']=_0x41d534[_0x1422c2(0x1ed)][_0x1422c2(0x222)](_0xf453e1=>{_0x2c211b(_0xf453e1);});}),()=>{var _0x182144=_0x340876,_0x5739a6;(_0x5739a6=_0x3a2292['current'])==null||_0x5739a6['unsubscribe'](),_0x3a2292[_0x182144(0x268)]=null;}),[_0x143a41,_0x180f2a]),_0x4ede26?l['jsx'](g[_0x340876(0x1aa)],{'align':_0x340876(0x25a),'disabled':_0x125994===h[_0x340876(0x1dd)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x340876(0x1cd)](K,{'status':_0x125994,'coordinator':_0x4ede26}),'children':l[_0x340876(0x1cd)](_0x340876(0x27a),{'className':g[_0x340876(0x1bc)](_0x340876(0x1c2),{'univer-cursor-not-allowed':_0x125994===h[_0x340876(0x1dd)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x125994!==h[_0x340876(0x1dd)]}),'type':_0x340876(0x27a),'children':l[_0x340876(0x1cd)](P,{'className':_0x340876(0x1a3)})})}):null;}function K(_0x3961f0){var _0x528781=_0x1de777;const {status:_0xb7c2d4,coordinator:_0x17b631}=_0x3961f0;switch(_0xb7c2d4){case h[_0x528781(0x22b)]:return l[_0x528781(0x1cd)](z,{'coordinator':_0x17b631});case h[_0x528781(0x23d)]:return l[_0x528781(0x1cd)](Q,{'coordinator':_0x17b631});case h['NOT_FOLLOWING']:return l[_0x528781(0x1cd)](X,{'coordinator':_0x17b631});case h[_0x528781(0x1dd)]:return l[_0x528781(0x1cd)](te,{});case h[_0x528781(0x26c)]:return l['jsx'](ee,{'coordinator':_0x17b631});default:return null;}}function z(_0x3a5ac1){var _0x24bab0=_0x1de777;const {coordinator:_0x50f623}=_0x3a5ac1;return l[_0x24bab0(0x247)](l['Fragment'],{'children':[l[_0x24bab0(0x1cd)](_0x24bab0(0x1f4),{'className':_0x24bab0(0x271),'children':_0x24bab0(0x1e2)}),l['jsx'](g[_0x24bab0(0x27c)],{'onClick':()=>_0x50f623['tryStartPresenting'](),'children':'Start'})]});}function Q(_0x3ad277){var _0x1fa05a=_0x1de777;const {coordinator:_0x167238}=_0x3ad277;return l[_0x1fa05a(0x247)](l[_0x1fa05a(0x1d0)],{'children':[l[_0x1fa05a(0x1cd)](_0x1fa05a(0x1f4),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1fa05a(0x24d)}),l[_0x1fa05a(0x1cd)](g[_0x1fa05a(0x27c)],{'onClick':()=>_0x167238[_0x1fa05a(0x1d1)](),'children':'Stop\x20following'})]});}function X(_0x413ea8){var _0x5ef0a8=_0x1de777;const {coordinator:_0x4acf14}=_0x413ea8;return l[_0x5ef0a8(0x247)](l[_0x5ef0a8(0x1d0)],{'children':[l[_0x5ef0a8(0x1cd)]('div',{'className':_0x5ef0a8(0x271),'children':_0x5ef0a8(0x1e0)}),l[_0x5ef0a8(0x1cd)](g[_0x5ef0a8(0x27c)],{'variant':_0x5ef0a8(0x1df),'onClick':()=>_0x4acf14[_0x5ef0a8(0x1f6)](),'children':_0x5ef0a8(0x1b6)})]});}function ee(_0x403edb){var _0x3b1334=_0x1de777;const {coordinator:_0x1351fe}=_0x403edb;return l[_0x3b1334(0x247)](l['Fragment'],{'children':[l[_0x3b1334(0x1cd)](_0x3b1334(0x1f4),{'className':_0x3b1334(0x271),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x3b1334(0x1cd)](g[_0x3b1334(0x27c)],{'variant':'default','onClick':()=>_0x1351fe[_0x3b1334(0x215)](),'children':_0x3b1334(0x232)})]});}function te(){var _0x1f6d55=_0x1de777;return l['jsx'](l[_0x1f6d55(0x1d0)],{'children':'You\x27are\x20offline.'});}var ie=Object[_0x1de777(0x1d3)],ne=(_0x10e0ba,_0x20124d,_0x29ce98,_0x11ff12)=>{for(var _0x115d70=_0x11ff12>0x1?void 0x0:_0x11ff12?ie(_0x20124d,_0x29ce98):_0x20124d,_0x5cee04=_0x10e0ba['length']-0x1,_0x28597e;_0x5cee04>=0x0;_0x5cee04--)(_0x28597e=_0x10e0ba[_0x5cee04])&&(_0x115d70=_0x28597e(_0x115d70)||_0x115d70);return _0x115d70;},L=(_0x8572c3,_0x1e8269)=>(_0x3e64de,_0x93b0e4)=>_0x1e8269(_0x3e64de,_0x93b0e4,_0x8572c3);exports[_0x1de777(0x1a4)]=class extends o[_0x1de777(0x1ff)]{constructor(_0x2d4437,_0x26ef4f){var _0x4e25a6=_0x1de777;super(),this[_0x4e25a6(0x1bb)]=_0x2d4437,this[_0x4e25a6(0x1cb)]=_0x26ef4f,this[_0x4e25a6(0x22f)]();}['_mountLiveShare'](){var _0x45138a=_0x1de777;this[_0x45138a(0x258)](this[_0x45138a(0x1cb)][_0x45138a(0x20b)](p[_0x45138a(0x20d)][_0x45138a(0x255)],()=>p[_0x45138a(0x256)](A,this[_0x45138a(0x1bb)])));}},exports[_0x1de777(0x1a4)]=ne([L(0x0,o['Inject'](o['Injector'])),L(0x1,p[_0x1de777(0x1e6)])],exports[_0x1de777(0x1a4)]);function _0xb18f(_0x1fa03d,_0x49d829){var _0x22da8d=_0x22da();return _0xb18f=function(_0xb18f58,_0x41f7fd){_0xb18f58=_0xb18f58-0x19f;var _0x1610a9=_0x22da8d[_0xb18f58];return _0x1610a9;},_0xb18f(_0x1fa03d,_0x49d829);}var re=Object['defineProperty'],se=Object[_0x1de777(0x1d3)],oe=(_0x2d86f4,_0x4dbf30,_0x5a7432)=>_0x4dbf30 in _0x2d86f4?re(_0x2d86f4,_0x4dbf30,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a7432}):_0x2d86f4[_0x4dbf30]=_0x5a7432,ae=(_0x54f048,_0x1f0094,_0x51923b,_0x3398ac)=>{var _0x348de8=_0x1de777;for(var _0x2b0a0f=_0x3398ac>0x1?void 0x0:_0x3398ac?se(_0x1f0094,_0x51923b):_0x1f0094,_0x1f015e=_0x54f048[_0x348de8(0x262)]-0x1,_0x1c614a;_0x1f015e>=0x0;_0x1f015e--)(_0x1c614a=_0x54f048[_0x1f015e])&&(_0x2b0a0f=_0x1c614a(_0x2b0a0f)||_0x2b0a0f);return _0x2b0a0f;},N=(_0x11b2f1,_0x2bfee9)=>(_0x13ee54,_0x2c6be5)=>_0x2bfee9(_0x13ee54,_0x2c6be5,_0x11b2f1),T=(_0x2febec,_0x2775f,_0x718a4e)=>oe(_0x2febec,typeof _0x2775f!=_0x1de777(0x1c5)?_0x2775f+'':_0x2775f,_0x718a4e);const le=_0x1de777(0x20f);exports[_0x1de777(0x1e3)]=class extends o[_0x1de777(0x1f5)]{constructor(_0x26018f=x,_0x4e1d99,_0x34c1cc){var _0x31cfc4=_0x1de777;super(),this['_config']=_0x26018f,this[_0x31cfc4(0x1bb)]=_0x4e1d99,this[_0x31cfc4(0x1ea)]=_0x34c1cc;const {..._0xa96e02}=o[_0x31cfc4(0x1fd)]({},x,this[_0x31cfc4(0x265)]);this[_0x31cfc4(0x1ea)][_0x31cfc4(0x1b7)]($,_0xa96e02);}[_0x1de777(0x202)](){var _0x5c78a3=_0x1de777;o[_0x5c78a3(0x1c0)](this[_0x5c78a3(0x1bb)],o[_0x5c78a3(0x23f)]([[O],[exports['LiveShareController']],[E],[exports[_0x5c78a3(0x1a4)]]],this['_config'][_0x5c78a3(0x240)])),o[_0x5c78a3(0x203)](this[_0x5c78a3(0x1bb)],[[E]]);}[_0x1de777(0x259)](){var _0x131297=_0x1de777;o['touchDependencies'](this['_injector'],[[exports[_0x131297(0x1a4)]]]);}},T(exports[_0x1de777(0x1e3)],_0x1de777(0x1b1),o[_0x1de777(0x1a7)]['UNIVER_UNKNOWN']),T(exports[_0x1de777(0x1e3)],'pluginName',le),exports['UniverLiveSharePlugin']=ae([o[_0x1de777(0x1c9)](m['UniverCollaborationClientPlugin']),N(0x1,o[_0x1de777(0x1db)](o['Injector'])),N(0x2,o[_0x1de777(0x1b0)])],exports['UniverLiveSharePlugin']),exports[_0x1de777(0x273)]=A,exports[_0x1de777(0x224)]=O,exports[_0x1de777(0x251)]=h;
1
+ 'use strict';var _0x51f54d=_0xfd87;(function(_0x1b9b35,_0x5c0e3d){var _0x4fbc0d=_0xfd87,_0x40363f=_0x1b9b35();while(!![]){try{var _0x9146c1=parseInt(_0x4fbc0d(0x201))/0x1+parseInt(_0x4fbc0d(0x1ad))/0x2+parseInt(_0x4fbc0d(0x1a7))/0x3+-parseInt(_0x4fbc0d(0x1f5))/0x4*(parseInt(_0x4fbc0d(0x250))/0x5)+-parseInt(_0x4fbc0d(0x1b3))/0x6*(parseInt(_0x4fbc0d(0x230))/0x7)+parseInt(_0x4fbc0d(0x26d))/0x8*(parseInt(_0x4fbc0d(0x1a2))/0x9)+-parseInt(_0x4fbc0d(0x272))/0xa;if(_0x9146c1===_0x5c0e3d)break;else _0x40363f['push'](_0x40363f['shift']());}catch(_0x5093d9){_0x40363f['push'](_0x40363f['shift']());}}}(_0x594e,0xb571d));var U=Object[_0x51f54d(0x240)],F=(_0x1eceaa,_0x2e64f1,_0x425620)=>_0x2e64f1 in _0x1eceaa?U(_0x1eceaa,_0x2e64f1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x425620}):_0x1eceaa[_0x2e64f1]=_0x425620,v=(_0x446ce2,_0x1a4584,_0x2a9e1b)=>F(_0x446ce2,typeof _0x1a4584!=_0x51f54d(0x25f)?_0x1a4584+'':_0x1a4584,_0x2a9e1b);Object[_0x51f54d(0x240)](exports,Symbol['toStringTag'],{'value':_0x51f54d(0x1f2)});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$=_0x51f54d(0x253),x={};class O extends o[_0x51f54d(0x206)]{constructor(){var _0x33c496=_0x51f54d;super(...arguments),v(this,'_sharedOperations',new Set()),v(this,_0x33c496(0x256),new Set());}[_0x51f54d(0x25d)](_0x47d85f){var _0x18bd3a=_0x51f54d;return this[_0x18bd3a(0x1f8)][_0x18bd3a(0x247)](_0x47d85f),o[_0x18bd3a(0x1f6)](()=>this[_0x18bd3a(0x1f8)][_0x18bd3a(0x26f)](_0x47d85f));}[_0x51f54d(0x1cf)](_0x3375ea){var _0x449c85=_0x51f54d;return this['_reporters']['add'](_0x3375ea),o[_0x449c85(0x1f6)](()=>this[_0x449c85(0x256)][_0x449c85(0x26f)](_0x3375ea));}[_0x51f54d(0x20a)](_0x5d7389){var _0x154afa=_0x51f54d;return this[_0x154afa(0x1f8)][_0x154afa(0x237)](_0x5d7389);}['getInitialStates'](_0x175a4c){var _0x4a2cc0=_0x51f54d;return Array[_0x4a2cc0(0x1c7)](this[_0x4a2cc0(0x256)])[_0x4a2cc0(0x21c)](_0x13fff5=>_0x13fff5(_0x175a4c));}}var H=Object[_0x51f54d(0x1b1)],V=(_0x3fe2b8,_0x174c5b,_0x33a2dd,_0x4f645b)=>{var _0x1ea138=_0x51f54d;for(var _0x5ec556=_0x4f645b>0x1?void 0x0:_0x4f645b?H(_0x174c5b,_0x33a2dd):_0x174c5b,_0x34d1f9=_0x3fe2b8[_0x1ea138(0x19f)]-0x1,_0x4775d7;_0x34d1f9>=0x0;_0x34d1f9--)(_0x4775d7=_0x3fe2b8[_0x34d1f9])&&(_0x5ec556=_0x4775d7(_0x5ec556)||_0x5ec556);return _0x5ec556;},k=(_0x52320e,_0x5871f5)=>(_0x1bf455,_0x45b43c)=>_0x5871f5(_0x1bf455,_0x45b43c,_0x52320e);function _0xfd87(_0x109949,_0x427fe8){var _0x594eac=_0x594e();return _0xfd87=function(_0xfd877e,_0x2c4c4a){_0xfd877e=_0xfd877e-0x19d;var _0x5ea03e=_0x594eac[_0xfd877e];return _0x5ea03e;},_0xfd87(_0x109949,_0x427fe8);}let E=class extends o['Disposable']{constructor(_0x3fe28c){var _0xc1bb5=_0x51f54d;super(),this['_liveShareService']=_0x3fe28c,this[_0xc1bb5(0x1bd)]();}[_0x51f54d(0x1bd)](){var _0x556688=_0x51f54d;[w['SetZoomRatioOperation']['id'],w[_0x556688(0x241)]['id'],C['SetWorksheetActiveOperation']['id']]['forEach'](_0x2f02e5=>{var _0x31e0b5=_0x556688;this[_0x31e0b5(0x1db)](this[_0x31e0b5(0x1eb)][_0x31e0b5(0x25d)](_0x2f02e5));});}};E=V([k(0x0,o[_0x51f54d(0x21b)](O))],E);var u=function(){var _0x10da66=_0x51f54d;return u=Object[_0x10da66(0x1a0)]||function(_0x1744e7){var _0x19821e=_0x10da66;for(var _0x42c166,_0x51bc51=0x1,_0x4333d6=arguments[_0x19821e(0x19f)];_0x51bc51<_0x4333d6;_0x51bc51++){_0x42c166=arguments[_0x51bc51];for(var _0x5114f1 in _0x42c166)Object[_0x19821e(0x1ac)][_0x19821e(0x1e6)][_0x19821e(0x1a5)](_0x42c166,_0x5114f1)&&(_0x1744e7[_0x5114f1]=_0x42c166[_0x5114f1]);}return _0x1744e7;},u[_0x10da66(0x248)](this,arguments);},M=function(_0x165602,_0x592ba5){var _0x43aef0=_0x51f54d,_0x45cda6={};for(var _0x37dd8f in _0x165602)Object[_0x43aef0(0x1ac)][_0x43aef0(0x1e6)]['call'](_0x165602,_0x37dd8f)&&_0x592ba5['indexOf'](_0x37dd8f)<0x0&&(_0x45cda6[_0x37dd8f]=_0x165602[_0x37dd8f]);if(_0x165602!=null&&typeof Object[_0x43aef0(0x1e2)]==_0x43aef0(0x21e)){for(var _0xa6e5f9=0x0,_0x37dd8f=Object[_0x43aef0(0x1e2)](_0x165602);_0xa6e5f9<_0x37dd8f[_0x43aef0(0x19f)];_0xa6e5f9++)_0x592ba5['indexOf'](_0x37dd8f[_0xa6e5f9])<0x0&&Object['prototype'][_0x43aef0(0x21a)][_0x43aef0(0x1a5)](_0x165602,_0x37dd8f[_0xa6e5f9])&&(_0x45cda6[_0x37dd8f[_0xa6e5f9]]=_0x165602[_0x37dd8f[_0xa6e5f9]]);}return _0x45cda6;},j=f[_0x51f54d(0x23f)](function(_0x1c870e,_0x4d302c){var _0x30e82e=_0x51f54d,_0x11c168=_0x1c870e['icon'],_0x2db42a=_0x1c870e['id'],_0x16dca5=_0x1c870e[_0x30e82e(0x202)],_0x3dee39=_0x1c870e[_0x30e82e(0x239)],_0x437677=M(_0x1c870e,[_0x30e82e(0x270),'id','className','extend']),_0x32326d=_0x30e82e(0x1dd)['concat'](_0x2db42a,'\x20')[_0x30e82e(0x27a)](_0x16dca5||'')['trim'](),_0x305c1d=f['useRef']('_'['concat'](G()));return y(_0x11c168,''[_0x30e82e(0x27a)](_0x2db42a),{'defIds':_0x11c168[_0x30e82e(0x22f)],'idSuffix':_0x305c1d[_0x30e82e(0x233)]},u({'ref':_0x4d302c,'className':_0x32326d},_0x437677),_0x3dee39);});function y(_0x4ea89c,_0x4500f8,_0x193692,_0xb53df4,_0x32ac07){var _0x240a58=_0x51f54d;return f[_0x240a58(0x267)](_0x4ea89c['tag'],u(u({'key':_0x4500f8},q(_0x4ea89c,_0x193692,_0x32ac07)),_0xb53df4),(W(_0x4ea89c,_0x193692)[_0x240a58(0x24f)]||[])[_0x240a58(0x21c)](function(_0xb6863e,_0x5ac181){var _0x1b4395=_0x240a58;return y(_0xb6863e,''[_0x1b4395(0x27a)](_0x4500f8,'-')[_0x1b4395(0x27a)](_0x4ea89c['tag'],'-')['concat'](_0x5ac181),_0x193692,void 0x0,_0x32ac07);}));}function q(_0x2df358,_0x160b26,_0x6689fe){var _0x27506c=_0x51f54d,_0x295bea=u({},_0x2df358[_0x27506c(0x1be)]);_0x6689fe!=null&&_0x6689fe[_0x27506c(0x226)]&&_0x295bea[_0x27506c(0x27e)]===_0x27506c(0x226)&&(_0x295bea[_0x27506c(0x27e)]=_0x6689fe[_0x27506c(0x226)]),_0x2df358[_0x27506c(0x214)]==='mask'&&_0x295bea['id']&&(_0x295bea['id']=_0x295bea['id']+_0x160b26[_0x27506c(0x1f9)]),Object[_0x27506c(0x231)](_0x295bea)[_0x27506c(0x26b)](function(_0x5dc2ce){var _0x4338d6=_0x27506c,_0x40540b=_0x5dc2ce[0x0],_0xd483a2=_0x5dc2ce[0x1];_0x40540b===_0x4338d6(0x221)&&typeof _0xd483a2=='string'&&(_0x295bea[_0x40540b]=_0xd483a2[_0x4338d6(0x232)](/url\(#(.*)\)/,_0x4338d6(0x219)['concat'](_0x160b26[_0x4338d6(0x1f9)],')')));});var _0x3bcb1c=_0x160b26['defIds'];return!_0x3bcb1c||_0x3bcb1c[_0x27506c(0x19f)]===0x0||(_0x2df358[_0x27506c(0x214)]===_0x27506c(0x200)&&_0x295bea[_0x27506c(0x1d4)]&&(_0x295bea[_0x27506c(0x1d4)]=_0x295bea[_0x27506c(0x1d4)]+_0x160b26[_0x27506c(0x1f9)]),Object['entries'](_0x295bea)[_0x27506c(0x26b)](function(_0x4154d9){var _0xc0892e=_0x27506c,_0xca89ca=_0x4154d9[0x0],_0x3455ab=_0x4154d9[0x1];typeof _0x3455ab==_0xc0892e(0x236)&&(_0x295bea[_0xca89ca]=_0x3455ab['replace'](/url\(#(.*)\)/,_0xc0892e(0x219)[_0xc0892e(0x27a)](_0x160b26[_0xc0892e(0x1f9)],')')));})),_0x295bea;}function W(_0x2f56e7,_0x5ac71f){var _0x403ea5=_0x51f54d,_0x48b4a1,_0x20257e=_0x5ac71f[_0x403ea5(0x22f)];return!_0x20257e||_0x20257e[_0x403ea5(0x19f)]===0x0?_0x2f56e7:_0x2f56e7[_0x403ea5(0x214)]===_0x403ea5(0x20e)&&(!((_0x48b4a1=_0x2f56e7[_0x403ea5(0x24f)])===null||_0x48b4a1===void 0x0)&&_0x48b4a1['length'])?u(u({},_0x2f56e7),{'children':_0x2f56e7[_0x403ea5(0x24f)][_0x403ea5(0x21c)](function(_0x4adb2f){var _0x511fc9=_0x403ea5;return typeof _0x4adb2f[_0x511fc9(0x1be)]['id']==_0x511fc9(0x236)&&_0x20257e&&_0x20257e[_0x511fc9(0x1c4)](_0x4adb2f[_0x511fc9(0x1be)]['id'])?u(u({},_0x4adb2f),{'attrs':u(u({},_0x4adb2f['attrs']),{'id':_0x4adb2f['attrs']['id']+_0x5ac71f[_0x511fc9(0x1f9)]})}):_0x4adb2f;})}):_0x2f56e7;}function G(){var _0x4c72ff=_0x51f54d;return Math[_0x4c72ff(0x1f3)]()[_0x4c72ff(0x1e7)](0x24)['substring'](0x2,0x8);}j[_0x51f54d(0x217)]=_0x51f54d(0x21f);var B={'tag':_0x51f54d(0x213),'attrs':{'xmlns':_0x51f54d(0x1ef),'fill':_0x51f54d(0x24b),'viewBox':_0x51f54d(0x1d2),'width':_0x51f54d(0x26a),'height':_0x51f54d(0x26a)},'children':[{'tag':_0x51f54d(0x1ec),'attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x51f54d(0x1ec),'attrs':{'fill':_0x51f54d(0x1b4),'d':_0x51f54d(0x249),'fillRule':_0x51f54d(0x218),'clipRule':'evenodd'}}]},P=f[_0x51f54d(0x23f)](function(_0x25e111,_0x56e1e4){var _0x3fa95b=_0x51f54d;return f[_0x3fa95b(0x267)](j,Object['assign']({},_0x25e111,{'id':'live-share-icon','ref':_0x56e1e4,'icon':B}));});P[_0x51f54d(0x217)]=_0x51f54d(0x24e);var Y=Object['getOwnPropertyDescriptor'],R=(_0x26d726,_0x201c85,_0x2f7815,_0x5d0792)=>{var _0x3b2505=_0x51f54d;for(var _0x81058c=_0x5d0792>0x1?void 0x0:_0x5d0792?Y(_0x201c85,_0x2f7815):_0x201c85,_0x1fe3c1=_0x26d726[_0x3b2505(0x19f)]-0x1,_0x417783;_0x1fe3c1>=0x0;_0x1fe3c1--)(_0x417783=_0x26d726[_0x1fe3c1])&&(_0x81058c=_0x417783(_0x81058c)||_0x81058c);return _0x81058c;},S=(_0x58d22c,_0x2d3937)=>(_0x26390d,_0x2c214f)=>_0x2d3937(_0x26390d,_0x2c214f,_0x58d22c);exports['LiveShareController']=class extends o[_0x51f54d(0x1a8)]{constructor(_0x20fe92,_0x5cb1a9,_0x3e2b50){var _0x232db0=_0x51f54d;super(),v(this,_0x232db0(0x234),new Map()),(this[_0x232db0(0x25c)]=_0x20fe92,this['_injector']=_0x5cb1a9,this[_0x232db0(0x276)]=_0x3e2b50,this['_init']());}async[_0x51f54d(0x246)](_0x6da8a6){var _0x3a59aa=_0x51f54d;return this[_0x3a59aa(0x234)][_0x3a59aa(0x237)](_0x6da8a6)||await this[_0x3a59aa(0x1d3)](_0x6da8a6),this['_entities'][_0x3a59aa(0x224)](_0x6da8a6);}[_0x51f54d(0x1bd)](){var _0xbc7f18=_0x51f54d;this[_0xbc7f18(0x25c)]['getTypeOfUnitAdded$'](o[_0xbc7f18(0x215)][_0xbc7f18(0x1af)])[_0xbc7f18(0x279)](b[_0xbc7f18(0x22a)](this[_0xbc7f18(0x271)]))['subscribe'](async _0x49a755=>{var _0x52ca2f=_0xbc7f18;const _0x12db29=_0x49a755[_0x52ca2f(0x1dc)]();this[_0x52ca2f(0x234)][_0x52ca2f(0x237)](_0x12db29)||this[_0x52ca2f(0x1d3)](_0x12db29);}),this['_univerInstanceService'][_0xbc7f18(0x220)](o[_0xbc7f18(0x215)][_0xbc7f18(0x1af)])['pipe'](b[_0xbc7f18(0x22a)](this[_0xbc7f18(0x271)]))['subscribe'](_0x2415ea=>{var _0x56ee9e=_0xbc7f18;const _0x186edb=_0x2415ea[_0x56ee9e(0x1dc)](),_0x2e0188=this[_0x56ee9e(0x234)][_0x56ee9e(0x224)](_0x186edb);_0x2e0188==null||_0x2e0188[_0x56ee9e(0x23a)]();});}async[_0x51f54d(0x1d3)](_0x48cef1){var _0x443b38=_0x51f54d;const _0x3824a9=await this[_0x443b38(0x276)][_0x443b38(0x1ae)](_0x48cef1),_0x356dbe=this[_0x443b38(0x278)]['createInstance'](exports[_0x443b38(0x245)],_0x48cef1,_0x3824a9);return _0x356dbe[_0x443b38(0x1f0)](),this[_0x443b38(0x234)][_0x443b38(0x1e9)](_0x48cef1,_0x356dbe),_0x356dbe;}},exports['LiveShareController']=R([S(0x0,o[_0x51f54d(0x216)]),S(0x1,o[_0x51f54d(0x21b)](o[_0x51f54d(0x24d)])),S(0x2,o[_0x51f54d(0x21b)](m[_0x51f54d(0x225)]))],exports[_0x51f54d(0x1aa)]);var h=(_0x2e57cf=>(_0x2e57cf['OFFLINE']=_0x51f54d(0x1fe),_0x2e57cf[_0x51f54d(0x238)]='idle',_0x2e57cf[_0x51f54d(0x263)]=_0x51f54d(0x1a1),_0x2e57cf[_0x51f54d(0x1d9)]=_0x51f54d(0x1bc),_0x2e57cf[_0x51f54d(0x27b)]=_0x51f54d(0x1f1),_0x2e57cf))(h||{});const Z=_0x51f54d(0x1ca),J=0xc8;exports[_0x51f54d(0x245)]=class extends o[_0x51f54d(0x1a8)]{constructor(_0x397847,_0x1e8d83,_0x17ba24,_0x44426f,_0x4e7224){var _0x470c54=_0x51f54d;super(),v(this,'_status$',new D[(_0x470c54(0x1ba))](_0x470c54(0x1cb))),v(this,_0x470c54(0x1d0),this['_status$'][_0x470c54(0x1d5)]()),v(this,_0x470c54(0x1bd),!0x1),v(this,_0x470c54(0x1fd),null),v(this,_0x470c54(0x1ed),null),(this['_unitID']=_0x397847,this[_0x470c54(0x1d8)]=_0x1e8d83,this[_0x470c54(0x205)]=_0x17ba24,this[_0x470c54(0x1eb)]=_0x44426f,this[_0x470c54(0x22d)]=_0x4e7224);}get[_0x51f54d(0x1b9)](){var _0x2c0724=_0x51f54d;return this['_status$'][_0x2c0724(0x1f7)]();}['dispose'](){var _0xc19a11=_0x51f54d,_0xea7015;(_0xea7015=this[_0xc19a11(0x1fd)])==null||_0xea7015[_0xc19a11(0x23a)](),this['_status$'][_0xc19a11(0x1c1)]('idle'),this['_status$'][_0xc19a11(0x1c6)]();}[_0x51f54d(0x1f0)](){var _0x56b9ab=_0x51f54d;this[_0x56b9ab(0x1bd)]||(this[_0x56b9ab(0x1bd)]=!0x0,this[_0x56b9ab(0x1d8)]['sessionStatus$']['pipe'](b[_0x56b9ab(0x22a)](this[_0x56b9ab(0x271)]))[_0x56b9ab(0x266)](_0x2d0dee=>{var _0xb1fbed=_0x56b9ab;switch(_0x2d0dee){case m[_0xb1fbed(0x1b6)][_0xb1fbed(0x1c8)]:this[_0xb1fbed(0x252)]();break;case m['SessionStatus']['ONLINE']:this[_0xb1fbed(0x254)]();break;}}),this[_0x56b9ab(0x1d8)][_0x56b9ab(0x222)][_0x56b9ab(0x279)](b[_0x56b9ab(0x22a)](this[_0x56b9ab(0x271)]))[_0x56b9ab(0x266)](_0x3132d6=>{var _0x1d0ab4=_0x56b9ab;const {eventID:_0x3d8abd}=_0x3132d6;switch(_0x3d8abd){case _['CollaborationEvent'][_0x1d0ab4(0x19d)]:this['_handleNewHost'](_0x3132d6);break;case _['CollaborationEvent']['LIVESHARE_OPERATION']:this['_handleOperation'](_0x3132d6);break;case _['CollaborationEvent'][_0x1d0ab4(0x228)]:this[_0x1d0ab4(0x21d)]();break;case _[_0x1d0ab4(0x23c)][_0x1d0ab4(0x20d)]:this[_0x1d0ab4(0x1e0)](_0x3132d6);break;}}));}[_0x51f54d(0x229)](){var _0x4e17e2=_0x51f54d;this[_0x4e17e2(0x1d8)][_0x4e17e2(0x1c3)]({'eventID':_[_0x4e17e2(0x23c)][_0x4e17e2(0x1a9)],'data':{'unitID':this[_0x4e17e2(0x242)],'userID':this['_collabSession'][_0x4e17e2(0x1d6)]()}},this[_0x4e17e2(0x242)]);}[_0x51f54d(0x1b8)](){var _0x168e4c=_0x51f54d;this[_0x168e4c(0x1b9)]===_0x168e4c(0x1f1)&&(this[_0x168e4c(0x27d)][_0x168e4c(0x1c1)](_0x168e4c(0x1cb)),this[_0x168e4c(0x1d8)]['send']({'eventID':_['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x168e4c(0x242)]));}['startFollowing'](){var _0x1c087=_0x51f54d;this[_0x1c087(0x1b9)]===_0x1c087(0x1bc)&&(this[_0x1c087(0x27d)]['next'](_0x1c087(0x1a1)),this['_startFollowing']());}[_0x51f54d(0x257)](){var _0x46c2a7=_0x51f54d;this[_0x46c2a7(0x1b9)]==='following'&&this[_0x46c2a7(0x1bf)]();}['_handleNewHost'](_0x56f886){var _0x54ac4a=_0x51f54d;const {presenter:_0x17e2f7}=_0x56f886[_0x54ac4a(0x251)],_0x2e9843=this[_0x54ac4a(0x1d8)][_0x54ac4a(0x1d6)]();this[_0x54ac4a(0x1ed)]=_0x17e2f7,_0x17e2f7===_0x2e9843?(this[_0x54ac4a(0x1bf)](),this[_0x54ac4a(0x20b)]()):this[_0x54ac4a(0x1b9)]!==_0x54ac4a(0x1bc)&&(this['_stopPresenting'](),this[_0x54ac4a(0x1e3)]());}[_0x51f54d(0x203)](){var _0x49f900=_0x51f54d;const _0x5bed98={'eventID':_['CollaborationEvent'][_0x49f900(0x1fc)]};this[_0x49f900(0x1d8)]['send'](_0x5bed98,this[_0x49f900(0x242)]);}['_handleTerminate'](){var _0x55d2ff=_0x51f54d;this['_presenter']=null,this[_0x55d2ff(0x1b9)]!==_0x55d2ff(0x1f1)&&this[_0x55d2ff(0x25a)]();}['_handleNewChangeSets'](_0x422da3){var _0xa9c159=_0x51f54d;if(this['_status']===_0xa9c159(0x1a1)&&this['_presenter']===_0x422da3[_0xa9c159(0x251)][_0xa9c159(0x273)]){const _0x5e6526=_[_0xa9c159(0x1fa)](_0x422da3[_0xa9c159(0x251)])['mutations'][_0xa9c159(0x27c)]()[_0xa9c159(0x255)](_0x27ba0b=>_0x27ba0b['id']===C[_0xa9c159(0x262)]['id']);if(_0x5e6526){const _0x842f74=_0x5e6526[_0xa9c159(0x1e4)]['unitId'],_0x5e264f=_0x5e6526['params'][_0xa9c159(0x1c9)]['id'];setTimeout(()=>{var _0x4ee8c5=_0xa9c159;this[_0x4ee8c5(0x22d)][_0x4ee8c5(0x26c)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x842f74,'subUnitId':_0x5e264f},{'fromCollab':!0x0});});}}}[_0x51f54d(0x20b)](){var _0x3a4989=_0x51f54d;this['_status$'][_0x3a4989(0x1c1)](_0x3a4989(0x1f1));const _0x54722=new Map(),_0x47ead1=this[_0x3a4989(0x1fd)]=new o[(_0x3a4989(0x1a4))]();_0x47ead1[_0x3a4989(0x247)](o[_0x3a4989(0x1f6)](()=>{var _0x5cf408=_0x3a4989;_0x54722[_0x5cf408(0x26b)](_0x50d289=>_0x50d289[_0x5cf408(0x1c6)]()),_0x54722[_0x5cf408(0x269)]();})),_0x47ead1['add'](this[_0x3a4989(0x22d)][_0x3a4989(0x212)](_0x1024ef=>{var _0x30aa80=_0x3a4989,_0xd4c2f3;if(_0x1024ef[_0x30aa80(0x1d1)]!==o[_0x30aa80(0x1a3)][_0x30aa80(0x1ce)]||!this[_0x30aa80(0x1eb)][_0x30aa80(0x20a)](_0x1024ef['id']))return;const {id:_0xb8b877}=_0x1024ef;let _0x244c37;_0x54722[_0x30aa80(0x237)](_0xb8b877)?_0x244c37=_0x54722['get'](_0xb8b877):(_0x244c37=new D[(_0x30aa80(0x1ff))](),_0x54722[_0x30aa80(0x1e9)](_0xb8b877,_0x244c37),_0x244c37[_0x30aa80(0x279)](b[_0x30aa80(0x211)]((_0xd4c2f3=this['_configService'][_0x30aa80(0x1c2)](Z))!=null?_0xd4c2f3:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x30aa80(0x266)](_0x5ec96d=>{var _0x1f6b84=_0x30aa80;this['_collabSession'][_0x1f6b84(0x1c3)]({'eventID':_[_0x1f6b84(0x23c)][_0x1f6b84(0x244)],'data':{'unitID':this[_0x1f6b84(0x242)],'operations':{[_0x5ec96d['id']]:{'id':_0x5ec96d['id'],'params':JSON[_0x1f6b84(0x258)](_0x5ec96d['params'])}}}},this[_0x1f6b84(0x242)]);})),_0x244c37[_0x30aa80(0x1c1)](_0x1024ef);})),this[_0x3a4989(0x1eb)]['getInitialStates'](this[_0x3a4989(0x242)])['forEach'](_0x38caa6=>this['_collabSession'][_0x3a4989(0x1c3)]({'eventID':_[_0x3a4989(0x23c)][_0x3a4989(0x244)],'data':{'unitID':this[_0x3a4989(0x242)],'operations':{[_0x38caa6['id']]:{'id':_0x38caa6['id'],'params':JSON[_0x3a4989(0x258)](_0x38caa6['params'])}}}},this[_0x3a4989(0x242)]));}[_0x51f54d(0x207)](){var _0x2a8989=_0x51f54d,_0xb5674e;this[_0x2a8989(0x27d)]['next'](_0x2a8989(0x1cb)),(_0xb5674e=this[_0x2a8989(0x1fd)])==null||_0xb5674e['dispose'](),this[_0x2a8989(0x1fd)]=null;}[_0x51f54d(0x1e3)](){var _0x1e0405=_0x51f54d,_0x17e045;(_0x17e045=this[_0x1e0405(0x1fd)])==null||_0x17e045[_0x1e0405(0x23a)](),this[_0x1e0405(0x27d)][_0x1e0405(0x1c1)]('following');}['_beIdle'](){var _0x5b61a2=_0x51f54d,_0x3711b6;this[_0x5b61a2(0x27d)]['next'](_0x5b61a2(0x1cb)),(_0x3711b6=this[_0x5b61a2(0x1fd)])==null||_0x3711b6[_0x5b61a2(0x23a)](),this[_0x5b61a2(0x1fd)]=null;}[_0x51f54d(0x1bf)](){var _0x5d772b=_0x51f54d,_0x2db040;this[_0x5d772b(0x27d)][_0x5d772b(0x1c1)](_0x5d772b(0x1bc)),(_0x2db040=this[_0x5d772b(0x1fd)])==null||_0x2db040[_0x5d772b(0x23a)]();}[_0x51f54d(0x209)](_0x2a408f){var _0x58fb9b=_0x51f54d;if([_0x58fb9b(0x1f1),_0x58fb9b(0x1bc),_0x58fb9b(0x1fe)][_0x58fb9b(0x1c4)](this[_0x58fb9b(0x1b9)])||!_0x2a408f[_0x58fb9b(0x251)][_0x58fb9b(0x1b5)]||_0x2a408f[_0x58fb9b(0x251)][_0x58fb9b(0x1b5)]===this['_collabSession']['getMemberID']())return;this['_status']===_0x58fb9b(0x1cb)&&this[_0x58fb9b(0x1e3)]();const _0x348268=_0x2a408f[_0x58fb9b(0x251)][_0x58fb9b(0x1b0)];Object[_0x58fb9b(0x1fb)](_0x348268)[_0x58fb9b(0x26b)](_0x2d53d0=>{var _0x29cea5=_0x58fb9b;this[_0x29cea5(0x22d)][_0x29cea5(0x26c)](_0x2d53d0['id'],_0x2d53d0[_0x29cea5(0x1e4)]?JSON[_0x29cea5(0x243)](_0x2d53d0['params']):null,{'fromCollab':!0x0});});}[_0x51f54d(0x252)](){var _0x5de591=_0x51f54d,_0x28321b;this[_0x5de591(0x27d)][_0x5de591(0x1c1)](_0x5de591(0x1fe)),(_0x28321b=this[_0x5de591(0x1fd)])==null||_0x28321b[_0x5de591(0x23a)]();}[_0x51f54d(0x254)](){var _0x1629c2=_0x51f54d;this['_status$'][_0x1629c2(0x1c1)](_0x1629c2(0x1cb)),this[_0x1629c2(0x203)]();}},exports[_0x51f54d(0x245)]=R([S(0x2,o[_0x51f54d(0x23e)]),S(0x3,o['Inject'](O)),S(0x4,o[_0x51f54d(0x1cc)])],exports['LiveShareCoordinator']);function A(){var _0x340a3d=_0x51f54d;const _0x4852c4=p[_0x340a3d(0x277)](exports[_0x340a3d(0x1aa)]),_0x3b7cc9=p[_0x340a3d(0x277)](o[_0x340a3d(0x216)]),_0x3a2114=p['useObservable'](()=>_0x3b7cc9[_0x340a3d(0x264)](o[_0x340a3d(0x215)][_0x340a3d(0x1af)]),void 0x0,!0x1,[]),[_0x1f3802,_0x2d0620]=f['useState'](null),[_0x423b1b,_0x15b2ea]=f[_0x340a3d(0x1a6)](h[_0x340a3d(0x238)]),_0x59bcb0=f[_0x340a3d(0x1c5)](null);return f[_0x340a3d(0x1e5)](()=>(_0x3a2114&&_0x4852c4['getLiveShareCoordinator'](_0x3a2114[_0x340a3d(0x1dc)]())['then'](_0x58a494=>{var _0x1eb0de=_0x340a3d;_0x2d0620(_0x58a494),_0x59bcb0[_0x1eb0de(0x233)]=_0x58a494[_0x1eb0de(0x1d0)]['subscribe'](_0x37490d=>{_0x15b2ea(_0x37490d);});}),()=>{var _0x5332f5=_0x340a3d,_0x4c1f9b;(_0x4c1f9b=_0x59bcb0[_0x5332f5(0x233)])==null||_0x4c1f9b[_0x5332f5(0x265)](),_0x59bcb0['current']=null;}),[_0x3a2114,_0x4852c4]),_0x1f3802?l[_0x340a3d(0x1f4)](g[_0x340a3d(0x25e)],{'align':'end','disabled':_0x423b1b===h['OFFLINE'],'className':_0x340a3d(0x1df),'overlay':l[_0x340a3d(0x1f4)](K,{'status':_0x423b1b,'coordinator':_0x1f3802}),'children':l['jsx']('button',{'className':g[_0x340a3d(0x261)](_0x340a3d(0x1ea),{'univer-cursor-not-allowed':_0x423b1b===h[_0x340a3d(0x1c8)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x423b1b!==h['OFFLINE']}),'type':_0x340a3d(0x274),'children':l['jsx'](P,{'className':_0x340a3d(0x22b)})})}):null;}function K(_0x3f1ee1){var _0x4339af=_0x51f54d;const {status:_0x8c85d2,coordinator:_0x541cef}=_0x3f1ee1;switch(_0x8c85d2){case h[_0x4339af(0x238)]:return l[_0x4339af(0x1f4)](z,{'coordinator':_0x541cef});case h[_0x4339af(0x263)]:return l['jsx'](Q,{'coordinator':_0x541cef});case h[_0x4339af(0x1d9)]:return l[_0x4339af(0x1f4)](X,{'coordinator':_0x541cef});case h[_0x4339af(0x1c8)]:return l[_0x4339af(0x1f4)](te,{});case h['PRESENTING']:return l[_0x4339af(0x1f4)](ee,{'coordinator':_0x541cef});default:return null;}}function z(_0x486b98){var _0x188a26=_0x51f54d;const {coordinator:_0x4d830e}=_0x486b98;return l[_0x188a26(0x260)](l[_0x188a26(0x23d)],{'children':[l[_0x188a26(0x1f4)]('div',{'className':_0x188a26(0x1e8),'children':'Present\x20this\x20document'}),l[_0x188a26(0x1f4)](g[_0x188a26(0x1ab)],{'onClick':()=>_0x4d830e['tryStartPresenting'](),'children':'Start'})]});}function Q(_0x4ad70){var _0x51f39e=_0x51f54d;const {coordinator:_0x530ddc}=_0x4ad70;return l[_0x51f39e(0x260)](l[_0x51f39e(0x23d)],{'children':[l[_0x51f39e(0x1f4)](_0x51f39e(0x275),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x51f39e(0x1c0)}),l[_0x51f39e(0x1f4)](g[_0x51f39e(0x1ab)],{'onClick':()=>_0x530ddc[_0x51f39e(0x257)](),'children':_0x51f39e(0x26e)})]});}function X(_0x172a82){var _0x4ea448=_0x51f54d;const {coordinator:_0x2d980a}=_0x172a82;return l[_0x4ea448(0x260)](l[_0x4ea448(0x23d)],{'children':[l[_0x4ea448(0x1f4)](_0x4ea448(0x275),{'className':_0x4ea448(0x1e8),'children':_0x4ea448(0x1b7)}),l['jsx'](g[_0x4ea448(0x1ab)],{'variant':'text','onClick':()=>_0x2d980a[_0x4ea448(0x235)](),'children':_0x4ea448(0x223)})]});}function _0x594e(){var _0xe696e=['univer-mb-3\x20univer-w-full\x20univer-text-sm','set','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_liveShareService','path','_presenter','DesktopLiveShareController','http://www.w3.org/2000/svg','init','presenting','Module','random','jsx','104572BZesTQ','toDisposable','getValue','_sharedOperations','idSuffix','parseProtocolChangeset','values','LIVESHARE_FETCH_OPERATIONS','_commandDisposable','offline','Subject','use','35739IhRyIT','className','_fetchOperations','LiveShareService','_configService','Disposable','_stopPresenting','onRendered','_handleOperation','shouldShareOperation','_startPresenting','LiveShareStatus','NEW_CHANGESETS','defs','UNIVER_UNKNOWN','_config','throttleTime','onCommandExecuted','svg','tag','UniverInstanceType','IUniverInstanceService','displayName','evenodd','url(#$1','propertyIsEnumerable','Inject','map','_handleTerminate','function','UniverIcon','getTypeOfUnitDisposed$','mask','event$','Start\x20following','get','CollaborationSessionService','colorChannel1','Stop\x20presenting','LIVESHARE_TERMINATE','tryStartPresenting','takeUntil','univer-size-4','touchDependencies','_commandService','onStarting','defIds','133dMUcaX','entries','replace','current','_entities','startFollowing','string','has','IDLE','extend','dispose','override','CollaborationEvent','Fragment','IConfigService','forwardRef','defineProperty','SetScrollOperation','_unitID','parse','LIVESHARE_OPERATION','LiveShareCoordinator','getLiveShareCoordinator','add','apply','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','none','registerDependencies','Injector','LiveShareIcon','children','30YrtRtn','data','_handleOffline','live-share.config','_handleOnline','find','_reporters','stopFollowing','stringify','UNIVER_LIVE_SHARE_PLUGIN','_beIdle','UniverCollaborationClientPlugin','_univerInstanceService','registerSharedOperation','Dropdown','symbol','jsxs','clsx','InsertSheetMutation','FOLLOWING','getCurrentTypeOfUnit$','unsubscribe','subscribe','createElement','connectInjector','clear','1em','forEach','executeCommand','3410408pIAEKV','Stop\x20following','delete','icon','dispose$','6340700WtRVPb','memberID','button','div','_collabSessionService','useDependency','_injector','pipe','concat','PRESENTING','reverse','_status$','fill','LIVESHARE_NEW_HOST','pluginName','length','assign','following','18IyFxzv','CommandType','DisposableCollection','call','useState','235695OMbSnm','RxDisposable','LIVESHARE_REQUEST_HOST','LiveShareController','Button','prototype','1360120QjxGDD','requireSession','UNIVER_SHEET','operations','getOwnPropertyDescriptor','setConfig','35634vcVYKk','currentColor','presenter','SessionStatus','You\x27re\x20not\x20following\x20the\x20presenter','stopPresenting','_status','BehaviorSubject','default','not-following','_init','attrs','_stopFollowing','You\x27re\x20following\x20the\x20presenter','next','getConfig','send','includes','useRef','complete','from','OFFLINE','sheet','SAME_OPERATION_SHARE_INTERVAL','idle','ICommandService','You\x27re\x20presenting\x20the\x20document','OPERATION','registerInitialStateReporter','status$','type','0\x200\x2017\x2017','_startLiveShareCoordinator','xlink:href','asObservable','getMemberID','_uiPartsService','_collabSession','NOT_FOLLOWING','BuiltInUIPart','disposeWithMe','getUnitId','univerjs-icon\x20univerjs-icon-','_mountLiveShare','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_handleNewChangeSets','UniverLiveSharePlugin','getOwnPropertySymbols','_startFollowing','params','useEffect','hasOwnProperty','toString'];_0x594e=function(){return _0xe696e;};return _0x594e();}function ee(_0x42962){var _0x10d30f=_0x51f54d;const {coordinator:_0x29555c}=_0x42962;return l[_0x10d30f(0x260)](l[_0x10d30f(0x23d)],{'children':[l[_0x10d30f(0x1f4)]('div',{'className':_0x10d30f(0x1e8),'children':_0x10d30f(0x1cd)}),l[_0x10d30f(0x1f4)](g[_0x10d30f(0x1ab)],{'variant':_0x10d30f(0x1bb),'onClick':()=>_0x29555c[_0x10d30f(0x1b8)](),'children':_0x10d30f(0x227)})]});}function te(){var _0x35a4f0=_0x51f54d;return l[_0x35a4f0(0x1f4)](l['Fragment'],{'children':'You\x27are\x20offline.'});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0xcee59d,_0x1b267d,_0x579cb8,_0x4ecc8b)=>{var _0x3626df=_0x51f54d;for(var _0x3d2ea2=_0x4ecc8b>0x1?void 0x0:_0x4ecc8b?ie(_0x1b267d,_0x579cb8):_0x1b267d,_0x144dbe=_0xcee59d[_0x3626df(0x19f)]-0x1,_0x5a8c29;_0x144dbe>=0x0;_0x144dbe--)(_0x5a8c29=_0xcee59d[_0x144dbe])&&(_0x3d2ea2=_0x5a8c29(_0x3d2ea2)||_0x3d2ea2);return _0x3d2ea2;},L=(_0x4b0b6f,_0x582c10)=>(_0x1143fe,_0x4da8b6)=>_0x582c10(_0x1143fe,_0x4da8b6,_0x4b0b6f);exports[_0x51f54d(0x1ee)]=class extends o[_0x51f54d(0x206)]{constructor(_0x1b0822,_0x2a76ad){var _0x5a3598=_0x51f54d;super(),this[_0x5a3598(0x278)]=_0x1b0822,this[_0x5a3598(0x1d7)]=_0x2a76ad,this[_0x5a3598(0x1de)]();}[_0x51f54d(0x1de)](){var _0x10fc18=_0x51f54d;this[_0x10fc18(0x1db)](this[_0x10fc18(0x1d7)]['registerComponent'](p[_0x10fc18(0x1da)]['HEADER_MENU'],()=>p[_0x10fc18(0x268)](A,this[_0x10fc18(0x278)])));}},exports[_0x51f54d(0x1ee)]=ne([L(0x0,o[_0x51f54d(0x21b)](o[_0x51f54d(0x24d)])),L(0x1,p[_0x51f54d(0x24a)])],exports[_0x51f54d(0x1ee)]);var re=Object['defineProperty'],se=Object[_0x51f54d(0x1b1)],oe=(_0x299411,_0x1ba88b,_0x40445c)=>_0x1ba88b in _0x299411?re(_0x299411,_0x1ba88b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x40445c}):_0x299411[_0x1ba88b]=_0x40445c,ae=(_0x33a5d1,_0x75d706,_0x277f6c,_0x1ae0b5)=>{var _0x3af211=_0x51f54d;for(var _0x1cb2a4=_0x1ae0b5>0x1?void 0x0:_0x1ae0b5?se(_0x75d706,_0x277f6c):_0x75d706,_0x277907=_0x33a5d1[_0x3af211(0x19f)]-0x1,_0x621419;_0x277907>=0x0;_0x277907--)(_0x621419=_0x33a5d1[_0x277907])&&(_0x1cb2a4=_0x621419(_0x1cb2a4)||_0x1cb2a4);return _0x1cb2a4;},N=(_0x77eb7e,_0x1aa774)=>(_0x231d4b,_0x42428f)=>_0x1aa774(_0x231d4b,_0x42428f,_0x77eb7e),T=(_0x369d92,_0x54fc93,_0x29587f)=>oe(_0x369d92,typeof _0x54fc93!=_0x51f54d(0x25f)?_0x54fc93+'':_0x54fc93,_0x29587f);const le=_0x51f54d(0x259);exports[_0x51f54d(0x1e1)]=class extends o['Plugin']{constructor(_0x21ad2e=x,_0x4e7c18,_0x210479){var _0x2e91df=_0x51f54d;super(),this[_0x2e91df(0x210)]=_0x21ad2e,this[_0x2e91df(0x278)]=_0x4e7c18,this[_0x2e91df(0x205)]=_0x210479;const {..._0x11c8ee}=o['merge']({},x,this[_0x2e91df(0x210)]);this['_configService'][_0x2e91df(0x1b2)]($,_0x11c8ee);}[_0x51f54d(0x22e)](){var _0x5f06df=_0x51f54d;o[_0x5f06df(0x24c)](this[_0x5f06df(0x278)],o['mergeOverrideWithDependencies']([[O],[exports[_0x5f06df(0x1aa)]],[E],[exports[_0x5f06df(0x1ee)]]],this['_config'][_0x5f06df(0x23b)])),o[_0x5f06df(0x22c)](this[_0x5f06df(0x278)],[[E]]);}[_0x51f54d(0x208)](){var _0x55b1cb=_0x51f54d;o[_0x55b1cb(0x22c)](this[_0x55b1cb(0x278)],[[exports[_0x55b1cb(0x1ee)]]]);}},T(exports[_0x51f54d(0x1e1)],'type',o[_0x51f54d(0x215)][_0x51f54d(0x20f)]),T(exports[_0x51f54d(0x1e1)],_0x51f54d(0x19e),le),exports[_0x51f54d(0x1e1)]=ae([o['DependentOn'](m[_0x51f54d(0x25b)]),N(0x1,o[_0x51f54d(0x21b)](o['Injector'])),N(0x2,o[_0x51f54d(0x23e)])],exports['UniverLiveSharePlugin']),exports['LiveShare']=A,exports[_0x51f54d(0x204)]=O,exports[_0x51f54d(0x20c)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x3eff67=_0x31ab;(function(_0x34e3dd,_0xd7c235){var _0x5c499f=_0x31ab,_0x194726=_0x34e3dd();while(!![]){try{var _0x16e3db=parseInt(_0x5c499f(0x1e2))/0x1+-parseInt(_0x5c499f(0x191))/0x2+parseInt(_0x5c499f(0x1cf))/0x3*(parseInt(_0x5c499f(0x168))/0x4)+-parseInt(_0x5c499f(0x1b8))/0x5*(parseInt(_0x5c499f(0x187))/0x6)+parseInt(_0x5c499f(0x1b6))/0x7+-parseInt(_0x5c499f(0x1ae))/0x8+parseInt(_0x5c499f(0x1a0))/0x9;if(_0x16e3db===_0xd7c235)break;else _0x194726['push'](_0x194726['shift']());}catch(_0x1ed860){_0x194726['push'](_0x194726['shift']());}}}(_0x1f46,0x9efd8));var q=Object[_0x3eff67(0x166)],z=(_0x5672ec,_0x4afd82,_0x3b2038)=>_0x4afd82 in _0x5672ec?q(_0x5672ec,_0x4afd82,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b2038}):_0x5672ec[_0x4afd82]=_0x3b2038,d=(_0x44d3ed,_0x5bcb97,_0x5a04a1)=>z(_0x44d3ed,typeof _0x5bcb97!=_0x3eff67(0x1d9)?_0x5bcb97+'':_0x5bcb97,_0x5a04a1);import{CollaborationSessionService as _0x3fb12e,SessionStatus as _0x1efbf3,UniverCollaborationClientPlugin as _0x10ce60}from'@univerjs-pro/collaboration-client';function _0x1f46(){var _0x18c72e=['path','use','idSuffix','LIVESHARE_OPERATION','hasOwnProperty','parse','getValue','13037319NXRNtn','getConfig','defs','length','memberID','complete','next','override','_configService','LIVESHARE_NEW_HOST','setConfig','UniverIcon','_startFollowing','dispose','4891152Reqask','status$','_mountLiveShare','icon','_reporters','_handleTerminate','clear','onStarting','2696883XAIoym','_sharedOperations','60xrnJUp','svg','_status$','You\x27re\x20following\x20the\x20presenter','_uiPartsService','UNIVER_SHEET','set','startFollowing','type','sheet','OFFLINE','univer-size-4','replace','ONLINE','children','_commandService','currentColor','prototype','getOwnPropertySymbols','pipe','Start\x20following','string','http://www.w3.org/2000/svg','11055xDOuhu','registerInitialStateReporter','mutations','getOwnPropertyDescriptor','presenter','_presenter','includes','forEach','div','stringify','symbol','from','has','send','reverse','0\x200\x2017\x2017','end','_init','fill','234688jVGHQb','disposeWithMe','getInitialStates','assign','Stop\x20following','get','createInstance','_stopFollowing','_collabSessionService','registerSharedOperation','_handleOperation','_handleNewHost','url(#$1','_liveShareService','apply','evenodd','attrs','Start','NOT_FOLLOWING','current','1em','init','call','LIVESHARE_REQUEST_HOST','displayName','shouldShareOperation','offline','live-share-icon','subscribe','asObservable','trim','_fetchOperations','dispose$','data','extend','PRESENTING','add','_beIdle','univerjs-icon\x20univerjs-icon-','NEW_CHANGESETS','_handleOffline','random','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','unitId','delete','className','stopPresenting','OPERATION','idle','_entities','_handleOnline','defineProperty','Stop\x20presenting','676eBmkdb','pluginName','xlink:href','sessionStatus$','univer-mb-3\x20univer-w-full\x20univer-text-sm','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','onCommandExecuted','_commandDisposable','concat','executeCommand','_unitID','tryStartPresenting','getTypeOfUnitAdded$','_config','values','FOLLOWING','text','You\x27re\x20presenting\x20the\x20document','colorChannel1','following','default','button','map','_univerInstanceService','then','getMemberID','SAME_OPERATION_SHARE_INTERVAL','getLiveShareCoordinator','not-following','entries','_status','638688SbpAel','_stopPresenting','getUnitId','defIds','_startLiveShareCoordinator','LIVESHARE_TERMINATE','operations','_startPresenting','params','UNIVER_LIVE_SHARE_PLUGIN','302638GNyelZ','tag','_injector','getCurrentTypeOfUnit$','_handleNewChangeSets','IDLE','_collabSession','presenting'];_0x1f46=function(){return _0x18c72e;};return _0x1f46();}import{Disposable as _0x41e790,toDisposable as _0x1c3b80,Inject as _0x409218,IUniverInstanceService as _0x55c1e4,Injector as _0x2813f3,IConfigService as _0x5e7702,ICommandService as _0x5ab311,RxDisposable as _0x423d8a,UniverInstanceType as _0x19162e,DisposableCollection as _0x523026,CommandType as _0x142835,DependentOn as _0x1c0dec,Plugin as _0x2dc758,merge as _0x4268e8,registerDependencies as _0x323506,mergeOverrideWithDependencies as _0x263d4d,touchDependencies as _0x29f66d}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x26f0a8,InsertSheetMutation as _0x2463e7}from'@univerjs/sheets';import{SetZoomRatioOperation as _0xb8ad1e,SetScrollOperation as _0x4808f9}from'@univerjs/sheets-ui';import{useDependency as _0x5cd417,useObservable as _0x1dad95,IUIPartsService as _0x54c0ed,BuiltInUIPart as _0x5ad5f4,connectInjector as _0x2f61ae}from'@univerjs/ui';import{jsx as _0x1fcf7b,jsxs as _0xdfee60,Fragment as _0x378d55}from'react/jsx-runtime';import{Dropdown as _0x15741b,clsx as _0x144952,Button as _0x360a74}from'@univerjs/design';import{forwardRef as _0x17b570,useRef as _0x1653ac,createElement as _0x2d133d,useState as _0x324aa9,useEffect as _0x23e425}from'react';import{CollaborationEvent as _0x22777c,parseProtocolChangeset as _0x540cc9}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x247e69,Subject as _0x3d88fa}from'rxjs';import{takeUntil as _0x492107,throttleTime as _0x2882f6}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x41e790{constructor(){var _0x511ecf=_0x3eff67;super(...arguments),d(this,_0x511ecf(0x1b7),new Set()),d(this,_0x511ecf(0x1b2),new Set());}[_0x3eff67(0x1eb)](_0x21fb17){var _0x33b33e=_0x3eff67;return this[_0x33b33e(0x1b7)][_0x33b33e(0x157)](_0x21fb17),_0x1c3b80(()=>this['_sharedOperations']['delete'](_0x21fb17));}[_0x3eff67(0x1d0)](_0x1981e8){var _0x57a982=_0x3eff67;return this[_0x57a982(0x1b2)]['add'](_0x1981e8),_0x1c3b80(()=>this[_0x57a982(0x1b2)][_0x57a982(0x15f)](_0x1981e8));}[_0x3eff67(0x1fb)](_0x713650){var _0x591a72=_0x3eff67;return this[_0x591a72(0x1b7)][_0x591a72(0x1db)](_0x713650);}['getInitialStates'](_0x3f2e6a){var _0x371d9d=_0x3eff67;return Array[_0x371d9d(0x1da)](this['_reporters'])[_0x371d9d(0x17e)](_0x2999c8=>_0x2999c8(_0x3f2e6a));}}var Ee=Object[_0x3eff67(0x1d2)],we=(_0x2effaf,_0x3ad890,_0x2b473c,_0xf61b5b)=>{var _0x1ee75d=_0x3eff67;for(var _0x417563=_0xf61b5b>0x1?void 0x0:_0xf61b5b?Ee(_0x3ad890,_0x2b473c):_0x3ad890,_0x980a50=_0x2effaf[_0x1ee75d(0x1a3)]-0x1,_0x49672f;_0x980a50>=0x0;_0x980a50--)(_0x49672f=_0x2effaf[_0x980a50])&&(_0x417563=_0x49672f(_0x417563)||_0x417563);return _0x417563;},Ne=(_0x4d9250,_0x122290)=>(_0x19f760,_0x3c74bf)=>_0x122290(_0x19f760,_0x3c74bf,_0x4d9250);let m=class extends _0x41e790{constructor(_0x21cd4d){var _0x1e7c96=_0x3eff67;super(),this[_0x1e7c96(0x1ef)]=_0x21cd4d,this[_0x1e7c96(0x1e0)]();}['_init'](){var _0x1c439e=_0x3eff67;[_0xb8ad1e['id'],_0x4808f9['id'],_0x26f0a8['id']][_0x1c439e(0x1d6)](_0x61990a=>{var _0x20fd33=_0x1c439e;this[_0x20fd33(0x1e3)](this[_0x20fd33(0x1ef)][_0x20fd33(0x1eb)](_0x61990a));});}};m=we([Ne(0x0,_0x409218(L))],m);var c=function(){var _0x4cbc56=_0x3eff67;return c=Object[_0x4cbc56(0x1e5)]||function(_0x12036d){var _0xb5a243=_0x4cbc56;for(var _0x372c80,_0x18d009=0x1,_0xe8ec69=arguments[_0xb5a243(0x1a3)];_0x18d009<_0xe8ec69;_0x18d009++){_0x372c80=arguments[_0x18d009];for(var _0x4b23a5 in _0x372c80)Object[_0xb5a243(0x1c9)][_0xb5a243(0x19d)][_0xb5a243(0x1f8)](_0x372c80,_0x4b23a5)&&(_0x12036d[_0x4b23a5]=_0x372c80[_0x4b23a5]);}return _0x12036d;},c[_0x4cbc56(0x1f0)](this,arguments);},Ce=function(_0x1b7e14,_0x1729d9){var _0x101efb=_0x3eff67,_0x22c09b={};for(var _0xaf4d0d in _0x1b7e14)Object[_0x101efb(0x1c9)][_0x101efb(0x19d)][_0x101efb(0x1f8)](_0x1b7e14,_0xaf4d0d)&&_0x1729d9['indexOf'](_0xaf4d0d)<0x0&&(_0x22c09b[_0xaf4d0d]=_0x1b7e14[_0xaf4d0d]);if(_0x1b7e14!=null&&typeof Object[_0x101efb(0x1ca)]=='function'){for(var _0xecea7a=0x0,_0xaf4d0d=Object[_0x101efb(0x1ca)](_0x1b7e14);_0xecea7a<_0xaf4d0d['length'];_0xecea7a++)_0x1729d9['indexOf'](_0xaf4d0d[_0xecea7a])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x1b7e14,_0xaf4d0d[_0xecea7a])&&(_0x22c09b[_0xaf4d0d[_0xecea7a]]=_0x1b7e14[_0xaf4d0d[_0xecea7a]]);}return _0x22c09b;},W=_0x17b570(function(_0x312eb2,_0x1afeb){var _0x55ee70=_0x3eff67,_0x2b7d8b=_0x312eb2[_0x55ee70(0x1b1)],_0x53a4a1=_0x312eb2['id'],_0x336fdd=_0x312eb2[_0x55ee70(0x160)],_0x13b316=_0x312eb2[_0x55ee70(0x204)],_0x34e919=Ce(_0x312eb2,['icon','id',_0x55ee70(0x160),'extend']),_0x5e22fa=_0x55ee70(0x159)['concat'](_0x53a4a1,'\x20')[_0x55ee70(0x170)](_0x336fdd||'')[_0x55ee70(0x200)](),_0x428f3a=_0x1653ac('_'['concat'](Le()));return Y(_0x2b7d8b,''[_0x55ee70(0x170)](_0x53a4a1),{'defIds':_0x2b7d8b[_0x55ee70(0x18a)],'idSuffix':_0x428f3a[_0x55ee70(0x1f5)]},c({'ref':_0x1afeb,'className':_0x5e22fa},_0x34e919),_0x13b316);});function Y(_0x5cc9af,_0xac24a9,_0x11b732,_0xceec65,_0x539e04){var _0x4e679f=_0x3eff67;return _0x2d133d(_0x5cc9af[_0x4e679f(0x192)],c(c({'key':_0xac24a9},De(_0x5cc9af,_0x11b732,_0x539e04)),_0xceec65),(xe(_0x5cc9af,_0x11b732)[_0x4e679f(0x1c6)]||[])['map'](function(_0x18bfd6,_0x492f08){var _0x12e310=_0x4e679f;return Y(_0x18bfd6,''[_0x12e310(0x170)](_0xac24a9,'-')['concat'](_0x5cc9af[_0x12e310(0x192)],'-')['concat'](_0x492f08),_0x11b732,void 0x0,_0x539e04);}));}function De(_0x15773c,_0x2f1217,_0x3cc958){var _0x2c9cc5=_0x3eff67,_0x132b37=c({},_0x15773c['attrs']);_0x3cc958!=null&&_0x3cc958[_0x2c9cc5(0x17a)]&&_0x132b37[_0x2c9cc5(0x1e1)]===_0x2c9cc5(0x17a)&&(_0x132b37['fill']=_0x3cc958[_0x2c9cc5(0x17a)]),_0x15773c[_0x2c9cc5(0x192)]==='mask'&&_0x132b37['id']&&(_0x132b37['id']=_0x132b37['id']+_0x2f1217[_0x2c9cc5(0x19b)]),Object[_0x2c9cc5(0x185)](_0x132b37)[_0x2c9cc5(0x1d6)](function(_0xfcfe7d){var _0x3e9dbc=_0x2c9cc5,_0x58e62e=_0xfcfe7d[0x0],_0x3b6947=_0xfcfe7d[0x1];_0x58e62e==='mask'&&typeof _0x3b6947==_0x3e9dbc(0x1cd)&&(_0x132b37[_0x58e62e]=_0x3b6947['replace'](/url\(#(.*)\)/,_0x3e9dbc(0x1ee)['concat'](_0x2f1217[_0x3e9dbc(0x19b)],')')));});var _0x1c1407=_0x2f1217[_0x2c9cc5(0x18a)];return!_0x1c1407||_0x1c1407[_0x2c9cc5(0x1a3)]===0x0||(_0x15773c[_0x2c9cc5(0x192)]===_0x2c9cc5(0x19a)&&_0x132b37[_0x2c9cc5(0x16a)]&&(_0x132b37[_0x2c9cc5(0x16a)]=_0x132b37['xlink:href']+_0x2f1217[_0x2c9cc5(0x19b)]),Object[_0x2c9cc5(0x185)](_0x132b37)[_0x2c9cc5(0x1d6)](function(_0x33e124){var _0x3667e5=_0x2c9cc5,_0x48e37d=_0x33e124[0x0],_0x539550=_0x33e124[0x1];typeof _0x539550=='string'&&(_0x132b37[_0x48e37d]=_0x539550[_0x3667e5(0x1c4)](/url\(#(.*)\)/,'url(#$1'[_0x3667e5(0x170)](_0x2f1217[_0x3667e5(0x19b)],')')));})),_0x132b37;}function xe(_0x499004,_0x59bc12){var _0x415ef6=_0x3eff67,_0x31ab1b,_0x4ea787=_0x59bc12[_0x415ef6(0x18a)];return!_0x4ea787||_0x4ea787[_0x415ef6(0x1a3)]===0x0?_0x499004:_0x499004[_0x415ef6(0x192)]===_0x415ef6(0x1a2)&&(!((_0x31ab1b=_0x499004['children'])===null||_0x31ab1b===void 0x0)&&_0x31ab1b[_0x415ef6(0x1a3)])?c(c({},_0x499004),{'children':_0x499004[_0x415ef6(0x1c6)][_0x415ef6(0x17e)](function(_0x5b8992){var _0x23f52a=_0x415ef6;return typeof _0x5b8992[_0x23f52a(0x1f2)]['id']==_0x23f52a(0x1cd)&&_0x4ea787&&_0x4ea787[_0x23f52a(0x1d5)](_0x5b8992[_0x23f52a(0x1f2)]['id'])?c(c({},_0x5b8992),{'attrs':c(c({},_0x5b8992[_0x23f52a(0x1f2)]),{'id':_0x5b8992[_0x23f52a(0x1f2)]['id']+_0x59bc12['idSuffix']})}):_0x5b8992;})}):_0x499004;}function Le(){var _0x509b4d=_0x3eff67;return Math[_0x509b4d(0x15c)]()['toString'](0x24)['substring'](0x2,0x8);}W[_0x3eff67(0x1fa)]=_0x3eff67(0x1ab);var ye={'tag':_0x3eff67(0x1b9),'attrs':{'xmlns':_0x3eff67(0x1ce),'fill':'none','viewBox':_0x3eff67(0x1de),'width':_0x3eff67(0x1f6),'height':_0x3eff67(0x1f6)},'children':[{'tag':_0x3eff67(0x199),'attrs':{'fill':_0x3eff67(0x1c8),'d':_0x3eff67(0x15d)}},{'tag':'path','attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0x3eff67(0x1f1)}}]},B=_0x17b570(function(_0x24943c,_0x2747ce){var _0x4f6b4f=_0x3eff67;return _0x2d133d(W,Object[_0x4f6b4f(0x1e5)]({},_0x24943c,{'id':_0x4f6b4f(0x1fd),'ref':_0x2747ce,'icon':ye}));});B['displayName']='LiveShareIcon';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x2f7209,_0x1e683c,_0x2f5ddd,_0x31032c)=>{for(var _0xfa9166=_0x31032c>0x1?void 0x0:_0x31032c?Re(_0x1e683c,_0x2f5ddd):_0x1e683c,_0x17c141=_0x2f7209['length']-0x1,_0x56f321;_0x17c141>=0x0;_0x17c141--)(_0x56f321=_0x2f7209[_0x17c141])&&(_0xfa9166=_0x56f321(_0xfa9166)||_0xfa9166);return _0xfa9166;},f=(_0x2536ba,_0x27e7de)=>(_0x21eef9,_0x539d35)=>_0x27e7de(_0x21eef9,_0x539d35,_0x2536ba);let I=class extends _0x423d8a{constructor(_0x3c1eab,_0x515c31,_0x286a8a){var _0x5b4530=_0x3eff67;super(),d(this,_0x5b4530(0x164),new Map()),(this['_univerInstanceService']=_0x3c1eab,this[_0x5b4530(0x193)]=_0x515c31,this[_0x5b4530(0x1ea)]=_0x286a8a,this[_0x5b4530(0x1e0)]());}async[_0x3eff67(0x183)](_0x576454){var _0xc77e91=_0x3eff67;return this[_0xc77e91(0x164)][_0xc77e91(0x1db)](_0x576454)||await this['_startLiveShareCoordinator'](_0x576454),this[_0xc77e91(0x164)][_0xc77e91(0x1e7)](_0x576454);}[_0x3eff67(0x1e0)](){var _0x2f2cac=_0x3eff67;this['_univerInstanceService'][_0x2f2cac(0x174)](_0x19162e[_0x2f2cac(0x1bd)])['pipe'](_0x492107(this[_0x2f2cac(0x202)]))['subscribe'](async _0x1880aa=>{var _0x1f0e18=_0x2f2cac;const _0x5a3dc3=_0x1880aa['getUnitId']();this[_0x1f0e18(0x164)]['has'](_0x5a3dc3)||this[_0x1f0e18(0x18b)](_0x5a3dc3);}),this[_0x2f2cac(0x17f)]['getTypeOfUnitDisposed$'](_0x19162e['UNIVER_SHEET'])[_0x2f2cac(0x1cb)](_0x492107(this[_0x2f2cac(0x202)]))[_0x2f2cac(0x1fe)](_0x5b57ef=>{var _0x5eaa5c=_0x2f2cac;const _0x51bf13=_0x5b57ef[_0x5eaa5c(0x189)](),_0x307285=this[_0x5eaa5c(0x164)][_0x5eaa5c(0x1e7)](_0x51bf13);_0x307285==null||_0x307285['dispose']();});}async['_startLiveShareCoordinator'](_0x2dc855){var _0xb92f5d=_0x3eff67;const _0x19642d=await this['_collabSessionService']['requireSession'](_0x2dc855),_0x3d664b=this[_0xb92f5d(0x193)][_0xb92f5d(0x1e8)](C,_0x2dc855,_0x19642d);return _0x3d664b[_0xb92f5d(0x1f7)](),this['_entities'][_0xb92f5d(0x1be)](_0x2dc855,_0x3d664b),_0x3d664b;}};I=Z([f(0x0,_0x55c1e4),f(0x1,_0x409218(_0x2813f3)),f(0x2,_0x409218(_0x3fb12e))],I);var h=(_0x280c93=>(_0x280c93[_0x3eff67(0x1c2)]=_0x3eff67(0x1fc),_0x280c93[_0x3eff67(0x196)]='idle',_0x280c93[_0x3eff67(0x177)]='following',_0x280c93[_0x3eff67(0x1f4)]='not-following',_0x280c93[_0x3eff67(0x205)]=_0x3eff67(0x198),_0x280c93))(h||{});const Pe=_0x3eff67(0x182),Ae=0xc8;let C=class extends _0x423d8a{constructor(_0x23dcb0,_0x5b7c1d,_0x3a6b25,_0x4f4851,_0x34947a){var _0x2d20f1=_0x3eff67;super(),d(this,_0x2d20f1(0x1ba),new _0x247e69(_0x2d20f1(0x163))),d(this,_0x2d20f1(0x1af),this[_0x2d20f1(0x1ba)][_0x2d20f1(0x1ff)]()),d(this,_0x2d20f1(0x1e0),!0x1),d(this,_0x2d20f1(0x16f),null),d(this,_0x2d20f1(0x1d4),null),(this[_0x2d20f1(0x172)]=_0x23dcb0,this[_0x2d20f1(0x197)]=_0x5b7c1d,this['_configService']=_0x3a6b25,this[_0x2d20f1(0x1ef)]=_0x4f4851,this[_0x2d20f1(0x1c7)]=_0x34947a);}get[_0x3eff67(0x186)](){var _0x59ff9e=_0x3eff67;return this[_0x59ff9e(0x1ba)][_0x59ff9e(0x19f)]();}[_0x3eff67(0x1ad)](){var _0x4f1529=_0x3eff67,_0x69d8c3;(_0x69d8c3=this['_commandDisposable'])==null||_0x69d8c3[_0x4f1529(0x1ad)](),this[_0x4f1529(0x1ba)][_0x4f1529(0x1a6)]('idle'),this[_0x4f1529(0x1ba)][_0x4f1529(0x1a5)]();}[_0x3eff67(0x1f7)](){var _0x1cbec9=_0x3eff67;this[_0x1cbec9(0x1e0)]||(this[_0x1cbec9(0x1e0)]=!0x0,this[_0x1cbec9(0x197)][_0x1cbec9(0x16b)][_0x1cbec9(0x1cb)](_0x492107(this[_0x1cbec9(0x202)]))[_0x1cbec9(0x1fe)](_0x140b68=>{var _0x333bd2=_0x1cbec9;switch(_0x140b68){case _0x1efbf3['OFFLINE']:this[_0x333bd2(0x15b)]();break;case _0x1efbf3[_0x333bd2(0x1c5)]:this[_0x333bd2(0x165)]();break;}}),this['_collabSession']['event$']['pipe'](_0x492107(this['dispose$']))[_0x1cbec9(0x1fe)](_0x1305fe=>{var _0x16f61a=_0x1cbec9;const {eventID:_0x394a48}=_0x1305fe;switch(_0x394a48){case _0x22777c[_0x16f61a(0x1a9)]:this[_0x16f61a(0x1ed)](_0x1305fe);break;case _0x22777c[_0x16f61a(0x19c)]:this[_0x16f61a(0x1ec)](_0x1305fe);break;case _0x22777c[_0x16f61a(0x18c)]:this[_0x16f61a(0x1b3)]();break;case _0x22777c[_0x16f61a(0x15a)]:this[_0x16f61a(0x195)](_0x1305fe);break;}}));}['tryStartPresenting'](){var _0x8684b4=_0x3eff67;this['_collabSession'][_0x8684b4(0x1dc)]({'eventID':_0x22777c[_0x8684b4(0x1f9)],'data':{'unitID':this[_0x8684b4(0x172)],'userID':this[_0x8684b4(0x197)][_0x8684b4(0x181)]()}},this['_unitID']);}[_0x3eff67(0x161)](){var _0x3e1187=_0x3eff67;this[_0x3e1187(0x186)]===_0x3e1187(0x198)&&(this[_0x3e1187(0x1ba)][_0x3e1187(0x1a6)](_0x3e1187(0x163)),this[_0x3e1187(0x197)][_0x3e1187(0x1dc)]({'eventID':_0x22777c[_0x3e1187(0x18c)],'data':{'unitID':this['_unitID']}},this[_0x3e1187(0x172)]));}[_0x3eff67(0x1bf)](){var _0x329f13=_0x3eff67;this['_status']==='not-following'&&(this[_0x329f13(0x1ba)][_0x329f13(0x1a6)](_0x329f13(0x17b)),this[_0x329f13(0x1ac)]());}['stopFollowing'](){var _0xe50d51=_0x3eff67;this[_0xe50d51(0x186)]===_0xe50d51(0x17b)&&this[_0xe50d51(0x1e9)]();}[_0x3eff67(0x1ed)](_0x486328){var _0x5d0dfc=_0x3eff67;const {presenter:_0x430367}=_0x486328[_0x5d0dfc(0x203)],_0x34e792=this['_collabSession'][_0x5d0dfc(0x181)]();this[_0x5d0dfc(0x1d4)]=_0x430367,_0x430367===_0x34e792?(this[_0x5d0dfc(0x1e9)](),this[_0x5d0dfc(0x18e)]()):this[_0x5d0dfc(0x186)]!==_0x5d0dfc(0x184)&&(this[_0x5d0dfc(0x188)](),this[_0x5d0dfc(0x1ac)]());}[_0x3eff67(0x201)](){var _0x44dbf2=_0x3eff67;const _0x505b06={'eventID':_0x22777c['LIVESHARE_FETCH_OPERATIONS']};this[_0x44dbf2(0x197)]['send'](_0x505b06,this[_0x44dbf2(0x172)]);}[_0x3eff67(0x1b3)](){var _0x46870b=_0x3eff67;this[_0x46870b(0x1d4)]=null,this[_0x46870b(0x186)]!=='presenting'&&this[_0x46870b(0x158)]();}[_0x3eff67(0x195)](_0x3fe886){var _0x1a2b64=_0x3eff67;if(this['_status']===_0x1a2b64(0x17b)&&this['_presenter']===_0x3fe886[_0x1a2b64(0x203)][_0x1a2b64(0x1a4)]){const _0x2fd7bd=_0x540cc9(_0x3fe886[_0x1a2b64(0x203)])[_0x1a2b64(0x1d1)][_0x1a2b64(0x1dd)]()['find'](_0x487629=>_0x487629['id']===_0x2463e7['id']);if(_0x2fd7bd){const _0x48cff6=_0x2fd7bd[_0x1a2b64(0x18f)][_0x1a2b64(0x15e)],_0x502ac1=_0x2fd7bd['params'][_0x1a2b64(0x1c1)]['id'];setTimeout(()=>{var _0x4add76=_0x1a2b64;this['_commandService'][_0x4add76(0x171)](_0x26f0a8['id'],{'unitId':_0x48cff6,'subUnitId':_0x502ac1},{'fromCollab':!0x0});});}}}[_0x3eff67(0x18e)](){var _0x2defe3=_0x3eff67;this['_status$'][_0x2defe3(0x1a6)](_0x2defe3(0x198));const _0x3a2133=new Map(),_0x4a9484=this[_0x2defe3(0x16f)]=new _0x523026();_0x4a9484[_0x2defe3(0x157)](_0x1c3b80(()=>{var _0x420e6a=_0x2defe3;_0x3a2133[_0x420e6a(0x1d6)](_0x9c3fd8=>_0x9c3fd8[_0x420e6a(0x1a5)]()),_0x3a2133[_0x420e6a(0x1b4)]();})),_0x4a9484[_0x2defe3(0x157)](this[_0x2defe3(0x1c7)][_0x2defe3(0x16e)](_0x4d1379=>{var _0x535916=_0x2defe3,_0x290b4b;if(_0x4d1379[_0x535916(0x1c0)]!==_0x142835[_0x535916(0x162)]||!this[_0x535916(0x1ef)]['shouldShareOperation'](_0x4d1379['id']))return;const {id:_0x2b469c}=_0x4d1379;let _0x41051b;_0x3a2133[_0x535916(0x1db)](_0x2b469c)?_0x41051b=_0x3a2133['get'](_0x2b469c):(_0x41051b=new _0x3d88fa(),_0x3a2133[_0x535916(0x1be)](_0x2b469c,_0x41051b),_0x41051b[_0x535916(0x1cb)](_0x2882f6((_0x290b4b=this[_0x535916(0x1a8)][_0x535916(0x1a1)](Pe))!=null?_0x290b4b:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x535916(0x1fe)](_0x3c43d5=>{var _0x4dd041=_0x535916;this[_0x4dd041(0x197)]['send']({'eventID':_0x22777c[_0x4dd041(0x19c)],'data':{'unitID':this[_0x4dd041(0x172)],'operations':{[_0x3c43d5['id']]:{'id':_0x3c43d5['id'],'params':JSON['stringify'](_0x3c43d5[_0x4dd041(0x18f)])}}}},this[_0x4dd041(0x172)]);})),_0x41051b[_0x535916(0x1a6)](_0x4d1379);})),this['_liveShareService'][_0x2defe3(0x1e4)](this['_unitID'])[_0x2defe3(0x1d6)](_0x3ed3c6=>this['_collabSession'][_0x2defe3(0x1dc)]({'eventID':_0x22777c[_0x2defe3(0x19c)],'data':{'unitID':this[_0x2defe3(0x172)],'operations':{[_0x3ed3c6['id']]:{'id':_0x3ed3c6['id'],'params':JSON[_0x2defe3(0x1d8)](_0x3ed3c6[_0x2defe3(0x18f)])}}}},this[_0x2defe3(0x172)]));}[_0x3eff67(0x188)](){var _0x140c71=_0x3eff67,_0x42d3e3;this[_0x140c71(0x1ba)][_0x140c71(0x1a6)]('idle'),(_0x42d3e3=this[_0x140c71(0x16f)])==null||_0x42d3e3[_0x140c71(0x1ad)](),this[_0x140c71(0x16f)]=null;}[_0x3eff67(0x1ac)](){var _0xfe0922=_0x3eff67,_0x217c15;(_0x217c15=this['_commandDisposable'])==null||_0x217c15['dispose'](),this[_0xfe0922(0x1ba)][_0xfe0922(0x1a6)]('following');}[_0x3eff67(0x158)](){var _0x4b45fd=_0x3eff67,_0x136ec9;this['_status$'][_0x4b45fd(0x1a6)]('idle'),(_0x136ec9=this['_commandDisposable'])==null||_0x136ec9[_0x4b45fd(0x1ad)](),this[_0x4b45fd(0x16f)]=null;}[_0x3eff67(0x1e9)](){var _0x5bbd2e=_0x3eff67,_0x5ccf9c;this[_0x5bbd2e(0x1ba)][_0x5bbd2e(0x1a6)](_0x5bbd2e(0x184)),(_0x5ccf9c=this[_0x5bbd2e(0x16f)])==null||_0x5ccf9c[_0x5bbd2e(0x1ad)]();}[_0x3eff67(0x1ec)](_0x4a8318){var _0x1f2822=_0x3eff67;if(['presenting',_0x1f2822(0x184),'offline'][_0x1f2822(0x1d5)](this['_status'])||!_0x4a8318[_0x1f2822(0x203)][_0x1f2822(0x1d3)]||_0x4a8318[_0x1f2822(0x203)]['presenter']===this['_collabSession']['getMemberID']())return;this['_status']===_0x1f2822(0x163)&&this['_startFollowing']();const _0x3192f4=_0x4a8318[_0x1f2822(0x203)][_0x1f2822(0x18d)];Object[_0x1f2822(0x176)](_0x3192f4)[_0x1f2822(0x1d6)](_0x49d78c=>{var _0x36580f=_0x1f2822;this[_0x36580f(0x1c7)]['executeCommand'](_0x49d78c['id'],_0x49d78c[_0x36580f(0x18f)]?JSON[_0x36580f(0x19e)](_0x49d78c[_0x36580f(0x18f)]):null,{'fromCollab':!0x0});});}[_0x3eff67(0x15b)](){var _0x419dd4=_0x3eff67,_0x36c8f7;this[_0x419dd4(0x1ba)]['next'](_0x419dd4(0x1fc)),(_0x36c8f7=this['_commandDisposable'])==null||_0x36c8f7[_0x419dd4(0x1ad)]();}[_0x3eff67(0x165)](){var _0x5001bc=_0x3eff67;this[_0x5001bc(0x1ba)]['next']('idle'),this[_0x5001bc(0x201)]();}};C=Z([f(0x2,_0x5e7702),f(0x3,_0x409218(L)),f(0x4,_0x5ab311)],C);function Te(){var _0x1a9ba1=_0x3eff67;const _0x3b132a=_0x5cd417(I),_0x3ae74e=_0x5cd417(_0x55c1e4),_0x3ba848=_0x1dad95(()=>_0x3ae74e[_0x1a9ba1(0x194)](_0x19162e[_0x1a9ba1(0x1bd)]),void 0x0,!0x1,[]),[_0x30ea57,_0x19be99]=_0x324aa9(null),[_0x8cc31b,_0x4ba61d]=_0x324aa9(h[_0x1a9ba1(0x196)]),_0x160789=_0x1653ac(null);return _0x23e425(()=>(_0x3ba848&&_0x3b132a['getLiveShareCoordinator'](_0x3ba848[_0x1a9ba1(0x189)]())[_0x1a9ba1(0x180)](_0x368430=>{var _0x1dc4b8=_0x1a9ba1;_0x19be99(_0x368430),_0x160789['current']=_0x368430[_0x1dc4b8(0x1af)][_0x1dc4b8(0x1fe)](_0x1eae66=>{_0x4ba61d(_0x1eae66);});}),()=>{var _0x57b4a8=_0x1a9ba1,_0x2bfd26;(_0x2bfd26=_0x160789[_0x57b4a8(0x1f5)])==null||_0x2bfd26['unsubscribe'](),_0x160789[_0x57b4a8(0x1f5)]=null;}),[_0x3ba848,_0x3b132a]),_0x30ea57?_0x1fcf7b(_0x15741b,{'align':_0x1a9ba1(0x1df),'disabled':_0x8cc31b===h[_0x1a9ba1(0x1c2)],'className':_0x1a9ba1(0x16d),'overlay':_0x1fcf7b($e,{'status':_0x8cc31b,'coordinator':_0x30ea57}),'children':_0x1fcf7b(_0x1a9ba1(0x17d),{'className':_0x144952('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x8cc31b===h[_0x1a9ba1(0x1c2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x8cc31b!==h[_0x1a9ba1(0x1c2)]}),'type':'button','children':_0x1fcf7b(B,{'className':_0x1a9ba1(0x1c3)})})}):null;}function $e(_0x42cc85){var _0x3e2a86=_0x3eff67;const {status:_0x20e27f,coordinator:_0x2eb42f}=_0x42cc85;switch(_0x20e27f){case h[_0x3e2a86(0x196)]:return _0x1fcf7b(Fe,{'coordinator':_0x2eb42f});case h[_0x3e2a86(0x177)]:return _0x1fcf7b(He,{'coordinator':_0x2eb42f});case h[_0x3e2a86(0x1f4)]:return _0x1fcf7b(je,{'coordinator':_0x2eb42f});case h[_0x3e2a86(0x1c2)]:return _0x1fcf7b(Ve,{});case h['PRESENTING']:return _0x1fcf7b(Ue,{'coordinator':_0x2eb42f});default:return null;}}function Fe(_0x58fe9b){var _0x36edee=_0x3eff67;const {coordinator:_0x350c92}=_0x58fe9b;return _0xdfee60(_0x378d55,{'children':[_0x1fcf7b('div',{'className':_0x36edee(0x16c),'children':'Present\x20this\x20document'}),_0x1fcf7b(_0x360a74,{'onClick':()=>_0x350c92[_0x36edee(0x173)](),'children':_0x36edee(0x1f3)})]});}function He(_0x4418a3){var _0x451541=_0x3eff67;const {coordinator:_0x2848d1}=_0x4418a3;return _0xdfee60(_0x378d55,{'children':[_0x1fcf7b(_0x451541(0x1d7),{'className':_0x451541(0x16c),'children':_0x451541(0x1bb)}),_0x1fcf7b(_0x360a74,{'onClick':()=>_0x2848d1['stopFollowing'](),'children':_0x451541(0x1e6)})]});}function je(_0x14ff33){var _0x48dd37=_0x3eff67;const {coordinator:_0x1d91a8}=_0x14ff33;return _0xdfee60(_0x378d55,{'children':[_0x1fcf7b(_0x48dd37(0x1d7),{'className':_0x48dd37(0x16c),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x1fcf7b(_0x360a74,{'variant':_0x48dd37(0x178),'onClick':()=>_0x1d91a8[_0x48dd37(0x1bf)](),'children':_0x48dd37(0x1cc)})]});}function Ue(_0x31539b){var _0x32c938=_0x3eff67;const {coordinator:_0x44b13e}=_0x31539b;return _0xdfee60(_0x378d55,{'children':[_0x1fcf7b('div',{'className':_0x32c938(0x16c),'children':_0x32c938(0x179)}),_0x1fcf7b(_0x360a74,{'variant':_0x32c938(0x17c),'onClick':()=>_0x44b13e[_0x32c938(0x161)](),'children':_0x32c938(0x167)})]});}function Ve(){return _0x1fcf7b(_0x378d55,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x3eff67(0x1d2)],ke=(_0x591f41,_0x56a2af,_0x6d7a9e,_0x1e45d8)=>{var _0x40b3c8=_0x3eff67;for(var _0x3cc535=_0x1e45d8>0x1?void 0x0:_0x1e45d8?Me(_0x56a2af,_0x6d7a9e):_0x56a2af,_0x17e719=_0x591f41[_0x40b3c8(0x1a3)]-0x1,_0x302d04;_0x17e719>=0x0;_0x17e719--)(_0x302d04=_0x591f41[_0x17e719])&&(_0x3cc535=_0x302d04(_0x3cc535)||_0x3cc535);return _0x3cc535;},$=(_0x528a6b,_0x1b023d)=>(_0x167401,_0x34e924)=>_0x1b023d(_0x167401,_0x34e924,_0x528a6b);let b=class extends _0x41e790{constructor(_0x4cf3b3,_0x2c7820){var _0x187063=_0x3eff67;super(),this['_injector']=_0x4cf3b3,this[_0x187063(0x1bc)]=_0x2c7820,this[_0x187063(0x1b0)]();}[_0x3eff67(0x1b0)](){var _0x5cfccd=_0x3eff67;this[_0x5cfccd(0x1e3)](this['_uiPartsService']['registerComponent'](_0x5ad5f4['HEADER_MENU'],()=>_0x2f61ae(Te,this[_0x5cfccd(0x193)])));}};b=ke([$(0x0,_0x409218(_0x2813f3)),$(0x1,_0x54c0ed)],b);var Ge=Object[_0x3eff67(0x166)],We=Object[_0x3eff67(0x1d2)],Ye=(_0x2d3c93,_0x2d0f37,_0xed73d8)=>_0x2d0f37 in _0x2d3c93?Ge(_0x2d3c93,_0x2d0f37,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xed73d8}):_0x2d3c93[_0x2d0f37]=_0xed73d8,Be=(_0x2510d4,_0x5108c4,_0x1f2dda,_0x35cac2)=>{var _0x2796c2=_0x3eff67;for(var _0x1e14c7=_0x35cac2>0x1?void 0x0:_0x35cac2?We(_0x5108c4,_0x1f2dda):_0x5108c4,_0x2d6a8f=_0x2510d4[_0x2796c2(0x1a3)]-0x1,_0x4ea412;_0x2d6a8f>=0x0;_0x2d6a8f--)(_0x4ea412=_0x2510d4[_0x2d6a8f])&&(_0x1e14c7=_0x4ea412(_0x1e14c7)||_0x1e14c7);return _0x1e14c7;},F=(_0x3170f7,_0x196345)=>(_0x23984f,_0xf54b04)=>_0x196345(_0x23984f,_0xf54b04,_0x3170f7),J=(_0x3f08c7,_0x64f2e4,_0x2b7759)=>Ye(_0x3f08c7,typeof _0x64f2e4!='symbol'?_0x64f2e4+'':_0x64f2e4,_0x2b7759);const Ze=_0x3eff67(0x190);let O=class extends _0x2dc758{constructor(_0x5d9f77=T,_0x2422bb,_0x499dba){var _0x34ffad=_0x3eff67;super(),this['_config']=_0x5d9f77,this['_injector']=_0x2422bb,this[_0x34ffad(0x1a8)]=_0x499dba;const {..._0x14266a}=_0x4268e8({},T,this[_0x34ffad(0x175)]);this[_0x34ffad(0x1a8)][_0x34ffad(0x1aa)](Oe,_0x14266a);}[_0x3eff67(0x1b5)](){var _0x3ba933=_0x3eff67;_0x323506(this[_0x3ba933(0x193)],_0x263d4d([[L],[I],[m],[b]],this['_config'][_0x3ba933(0x1a7)])),_0x29f66d(this['_injector'],[[m]]);}['onRendered'](){var _0x16cccf=_0x3eff67;_0x29f66d(this[_0x16cccf(0x193)],[[b]]);}};function _0x31ab(_0x214011,_0x46be5e){var _0x1f462f=_0x1f46();return _0x31ab=function(_0x31ab44,_0x418f67){_0x31ab44=_0x31ab44-0x157;var _0x1926e7=_0x1f462f[_0x31ab44];return _0x1926e7;},_0x31ab(_0x214011,_0x46be5e);}J(O,'type',_0x19162e['UNIVER_UNKNOWN']),J(O,_0x3eff67(0x169),Ze),O=Be([_0x1c0dec(_0x10ce60),F(0x1,_0x409218(_0x2813f3)),F(0x2,_0x5e7702)],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 _0x20f48d=_0x39bb;(function(_0x2c2ed3,_0x4cc686){var _0x3fec1a=_0x39bb,_0x93ac42=_0x2c2ed3();while(!![]){try{var _0x368a15=-parseInt(_0x3fec1a(0x14e))/0x1*(parseInt(_0x3fec1a(0x153))/0x2)+-parseInt(_0x3fec1a(0xe4))/0x3*(parseInt(_0x3fec1a(0x131))/0x4)+-parseInt(_0x3fec1a(0xfa))/0x5+parseInt(_0x3fec1a(0x10f))/0x6*(parseInt(_0x3fec1a(0xda))/0x7)+-parseInt(_0x3fec1a(0x13f))/0x8*(parseInt(_0x3fec1a(0x15b))/0x9)+parseInt(_0x3fec1a(0xfc))/0xa+parseInt(_0x3fec1a(0x160))/0xb*(parseInt(_0x3fec1a(0x16a))/0xc);if(_0x368a15===_0x4cc686)break;else _0x93ac42['push'](_0x93ac42['shift']());}catch(_0x5bb1a1){_0x93ac42['push'](_0x93ac42['shift']());}}}(_0x1354,0x98d78));var q=Object[_0x20f48d(0x122)],z=(_0x5a6317,_0x42ce78,_0x14d706)=>_0x42ce78 in _0x5a6317?q(_0x5a6317,_0x42ce78,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14d706}):_0x5a6317[_0x42ce78]=_0x14d706,d=(_0x33db0b,_0x3fe3d6,_0x1a9268)=>z(_0x33db0b,typeof _0x3fe3d6!=_0x20f48d(0xf1)?_0x3fe3d6+'':_0x3fe3d6,_0x1a9268);import{CollaborationSessionService as _0xc5bf75,SessionStatus as _0x7c9eda,UniverCollaborationClientPlugin as _0x2d4e6e}from'@univerjs-pro/collaboration-client';import{Disposable as _0x1a511f,toDisposable as _0x3f3e9d,Inject as _0x5e6b53,IUniverInstanceService as _0x10d7b1,Injector as _0x25d4db,IConfigService as _0x27f4d,ICommandService as _0x4bf68b,RxDisposable as _0x4aa7c3,UniverInstanceType as _0x1df0c8,DisposableCollection as _0x48f9ff,CommandType as _0x39bd65,DependentOn as _0x1a4ce7,Plugin as _0x5c6f5f,merge as _0x1b809b,registerDependencies as _0x1d9d68,mergeOverrideWithDependencies as _0x1c6ef3,touchDependencies as _0x4e8b78}from'@univerjs/core';function _0x1354(){var _0x193eb8=['getOwnPropertySymbols','delete','add','LIVESHARE_REQUEST_HOST','3822qvuYSI','mask','Start\x20following','icon','Present\x20this\x20document','trim','onStarting','toString','presenter','pluginName','string','getMemberID','default','_startFollowing','UNIVER_LIVE_SHARE_PLUGIN','univer-mb-3\x20univer-w-full\x20univer-text-sm','You\x27are\x20offline.','currentColor','shouldShareOperation','defineProperty','OFFLINE','sessionStatus$','idle','mutations','_configService','getTypeOfUnitAdded$','sheet','pipe','function','set','disposeWithMe','requireSession','getCurrentTypeOfUnit$','_liveShareService','22508DkZXBX','event$','div','getTypeOfUnitDisposed$','_mountLiveShare','replace','HEADER_MENU','executeCommand','getConfig','colorChannel1','_entities','path','get','IDLE','3325032VliWIt','memberID','ONLINE','offline','reverse','_univerInstanceService','_startLiveShareCoordinator','getUnitId','entries','not-following','data','FOLLOWING','indexOf','startFollowing','forEach','1096319BgspSD','complete','_handleOperation','_commandDisposable','idSuffix','2XeScrb','1em','following','children','defs','extend','_handleTerminate','getInitialStates','27GdMIPB','tryStartPresenting','registerSharedOperation','substring','_sharedOperations','11NvWjpe','random','unsubscribe','_stopPresenting','_config','_status','_uiPartsService','then','You\x27re\x20not\x20following\x20the\x20presenter','text','42252636MBuIPn','_beIdle','LIVESHARE_OPERATION','presenting','_handleOffline','status$','stopPresenting','values','clear','displayName','_handleNewChangeSets','_fetchOperations','button','use','_collabSessionService','You\x27re\x20following\x20the\x20presenter','xlink:href','PRESENTING','0\x200\x2017\x2017','_injector','NEW_CHANGESETS','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','prototype','UNIVER_SHEET','univer-size-4','send','propertyIsEnumerable','onRendered','stopFollowing','apply','getLiveShareCoordinator','subscribe','map','init','call','Start','defIds','stringify','registerInitialStateReporter','9548uqyBEd','length','attrs','current','live-share.config','_reporters','unitId','_status$','_init','tag','597nRqtBa','includes','SAME_OPERATION_SHARE_INTERVAL','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','hasOwnProperty','LIVESHARE_NEW_HOST','has','_stopFollowing','onCommandExecuted','type','className','LIVESHARE_TERMINATE','symbol','_commandService','_unitID','fill','dispose','LiveShareIcon','evenodd','dispose$','assign','2851440mbZLZW','_collabSession','2693860fzOzxd','http://www.w3.org/2000/svg','_handleNewHost','params','concat','getOwnPropertyDescriptor','_startPresenting','_handleOnline','_presenter','end','url(#$1','createInstance','UNIVER_UNKNOWN','next','registerComponent'];_0x1354=function(){return _0x193eb8;};return _0x1354();}import{SetWorksheetActiveOperation as _0x30ebd3,InsertSheetMutation as _0x3e383d}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x2686c8,SetScrollOperation as _0x15ddba}from'@univerjs/sheets-ui';import{useDependency as _0x2713b0,useObservable as _0x1d60ce,IUIPartsService as _0xe05b9c,BuiltInUIPart as _0x22f3b6,connectInjector as _0x123b5d}from'@univerjs/ui';import{jsx as _0x591b4e,jsxs as _0xf95584,Fragment as _0xb7edf3}from'react/jsx-runtime';import{Dropdown as _0x3a1168,clsx as _0x25609c,Button as _0x3b8bcf}from'@univerjs/design';function _0x39bb(_0x58224d,_0x8a8988){var _0x13544a=_0x1354();return _0x39bb=function(_0x39bb79,_0x2af241){_0x39bb79=_0x39bb79-0xbf;var _0x19cce5=_0x13544a[_0x39bb79];return _0x19cce5;},_0x39bb(_0x58224d,_0x8a8988);}import{forwardRef as _0x11114f,useRef as _0x5991aa,createElement as _0x3f4386,useState as _0x5e8cb1,useEffect as _0x613455}from'react';import{CollaborationEvent as _0x18a2fa,parseProtocolChangeset as _0x585eb4}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0xd52750,Subject as _0x127c60}from'rxjs';import{takeUntil as _0xc6f40a,throttleTime as _0x34d54c}from'rxjs/operators';const Oe=_0x20f48d(0xde),T={};class L extends _0x1a511f{constructor(){var _0x16e71b=_0x20f48d;super(...arguments),d(this,_0x16e71b(0x15f),new Set()),d(this,_0x16e71b(0xdf),new Set());}['registerSharedOperation'](_0x5abf48){var _0x561a43=_0x20f48d;return this[_0x561a43(0x15f)][_0x561a43(0x10d)](_0x5abf48),_0x3f3e9d(()=>this[_0x561a43(0x15f)][_0x561a43(0x10c)](_0x5abf48));}[_0x20f48d(0xd9)](_0x248586){var _0x3b4578=_0x20f48d;return this[_0x3b4578(0xdf)][_0x3b4578(0x10d)](_0x248586),_0x3f3e9d(()=>this[_0x3b4578(0xdf)][_0x3b4578(0x10c)](_0x248586));}['shouldShareOperation'](_0x576407){var _0x4cd022=_0x20f48d;return this['_sharedOperations'][_0x4cd022(0xeb)](_0x576407);}[_0x20f48d(0x15a)](_0x3d2644){var _0x3a25f0=_0x20f48d;return Array['from'](this[_0x3a25f0(0xdf)])[_0x3a25f0(0xd3)](_0x59d816=>_0x59d816(_0x3d2644));}}var Ee=Object[_0x20f48d(0x101)],we=(_0x391951,_0x129d60,_0x417ef3,_0x3bbed2)=>{var _0xc20129=_0x20f48d;for(var _0x284266=_0x3bbed2>0x1?void 0x0:_0x3bbed2?Ee(_0x129d60,_0x417ef3):_0x129d60,_0x4a4069=_0x391951[_0xc20129(0xdb)]-0x1,_0x58d83b;_0x4a4069>=0x0;_0x4a4069--)(_0x58d83b=_0x391951[_0x4a4069])&&(_0x284266=_0x58d83b(_0x284266)||_0x284266);return _0x284266;},Ne=(_0x27cc41,_0x37a93a)=>(_0x51a5aa,_0x5f5dc8)=>_0x37a93a(_0x51a5aa,_0x5f5dc8,_0x27cc41);let m=class extends _0x1a511f{constructor(_0x5c72e2){var _0x3efb33=_0x20f48d;super(),this[_0x3efb33(0x130)]=_0x5c72e2,this[_0x3efb33(0xe2)]();}['_init'](){var _0x253745=_0x20f48d;[_0x2686c8['id'],_0x15ddba['id'],_0x30ebd3['id']][_0x253745(0x14d)](_0x34b4ee=>{var _0x13e36c=_0x253745;this[_0x13e36c(0x12d)](this[_0x13e36c(0x130)][_0x13e36c(0x15d)](_0x34b4ee));});}};m=we([Ne(0x0,_0x5e6b53(L))],m);var c=function(){var _0x32987f=_0x20f48d;return c=Object[_0x32987f(0xf9)]||function(_0x5ea257){var _0x1dda28=_0x32987f;for(var _0x4f84b5,_0x16f4a2=0x1,_0x465a70=arguments[_0x1dda28(0xdb)];_0x16f4a2<_0x465a70;_0x16f4a2++){_0x4f84b5=arguments[_0x16f4a2];for(var _0xb9a3ce in _0x4f84b5)Object[_0x1dda28(0xc9)][_0x1dda28(0xe9)][_0x1dda28(0xd5)](_0x4f84b5,_0xb9a3ce)&&(_0x5ea257[_0xb9a3ce]=_0x4f84b5[_0xb9a3ce]);}return _0x5ea257;},c[_0x32987f(0xd0)](this,arguments);},Ce=function(_0x10fc2d,_0x532d5a){var _0x312b0e=_0x20f48d,_0x126207={};for(var _0x2da836 in _0x10fc2d)Object[_0x312b0e(0xc9)][_0x312b0e(0xe9)][_0x312b0e(0xd5)](_0x10fc2d,_0x2da836)&&_0x532d5a[_0x312b0e(0x14b)](_0x2da836)<0x0&&(_0x126207[_0x2da836]=_0x10fc2d[_0x2da836]);if(_0x10fc2d!=null&&typeof Object[_0x312b0e(0x10b)]==_0x312b0e(0x12b)){for(var _0x17929f=0x0,_0x2da836=Object['getOwnPropertySymbols'](_0x10fc2d);_0x17929f<_0x2da836[_0x312b0e(0xdb)];_0x17929f++)_0x532d5a[_0x312b0e(0x14b)](_0x2da836[_0x17929f])<0x0&&Object['prototype'][_0x312b0e(0xcd)][_0x312b0e(0xd5)](_0x10fc2d,_0x2da836[_0x17929f])&&(_0x126207[_0x2da836[_0x17929f]]=_0x10fc2d[_0x2da836[_0x17929f]]);}return _0x126207;},W=_0x11114f(function(_0x48085e,_0x138cf8){var _0x4cb002=_0x20f48d,_0xff3a=_0x48085e['icon'],_0x58397f=_0x48085e['id'],_0x2d9278=_0x48085e[_0x4cb002(0xef)],_0x4783b6=_0x48085e[_0x4cb002(0x158)],_0x61ae00=Ce(_0x48085e,[_0x4cb002(0x112),'id','className',_0x4cb002(0x158)]),_0x586eda='univerjs-icon\x20univerjs-icon-'[_0x4cb002(0x100)](_0x58397f,'\x20')[_0x4cb002(0x100)](_0x2d9278||'')[_0x4cb002(0x114)](),_0xaf7d55=_0x5991aa('_'['concat'](Le()));return Y(_0xff3a,''['concat'](_0x58397f),{'defIds':_0xff3a[_0x4cb002(0xd7)],'idSuffix':_0xaf7d55['current']},c({'ref':_0x138cf8,'className':_0x586eda},_0x61ae00),_0x4783b6);});function Y(_0x1aa5ea,_0x499209,_0x5dec01,_0x1f6278,_0x4e4d66){var _0x1626d8=_0x20f48d;return _0x3f4386(_0x1aa5ea['tag'],c(c({'key':_0x499209},De(_0x1aa5ea,_0x5dec01,_0x4e4d66)),_0x1f6278),(xe(_0x1aa5ea,_0x5dec01)[_0x1626d8(0x156)]||[])[_0x1626d8(0xd3)](function(_0x560e67,_0x1a6182){var _0x498a95=_0x1626d8;return Y(_0x560e67,''[_0x498a95(0x100)](_0x499209,'-')['concat'](_0x1aa5ea[_0x498a95(0xe3)],'-')[_0x498a95(0x100)](_0x1a6182),_0x5dec01,void 0x0,_0x4e4d66);}));}function De(_0x3ebdf1,_0x3cc285,_0xade262){var _0x583d8d=_0x20f48d,_0x5c752b=c({},_0x3ebdf1[_0x583d8d(0xdc)]);_0xade262!=null&&_0xade262[_0x583d8d(0x13a)]&&_0x5c752b[_0x583d8d(0xf4)]===_0x583d8d(0x13a)&&(_0x5c752b[_0x583d8d(0xf4)]=_0xade262[_0x583d8d(0x13a)]),_0x3ebdf1[_0x583d8d(0xe3)]===_0x583d8d(0x110)&&_0x5c752b['id']&&(_0x5c752b['id']=_0x5c752b['id']+_0x3cc285[_0x583d8d(0x152)]),Object[_0x583d8d(0x147)](_0x5c752b)[_0x583d8d(0x14d)](function(_0xa41835){var _0x59ad06=_0x583d8d,_0x40322d=_0xa41835[0x0],_0x42f436=_0xa41835[0x1];_0x40322d==='mask'&&typeof _0x42f436==_0x59ad06(0x119)&&(_0x5c752b[_0x40322d]=_0x42f436[_0x59ad06(0x136)](/url\(#(.*)\)/,_0x59ad06(0x106)[_0x59ad06(0x100)](_0x3cc285[_0x59ad06(0x152)],')')));});var _0x5c70bf=_0x3cc285[_0x583d8d(0xd7)];return!_0x5c70bf||_0x5c70bf['length']===0x0||(_0x3ebdf1[_0x583d8d(0xe3)]===_0x583d8d(0xc0)&&_0x5c752b['xlink:href']&&(_0x5c752b[_0x583d8d(0xc3)]=_0x5c752b[_0x583d8d(0xc3)]+_0x3cc285['idSuffix']),Object[_0x583d8d(0x147)](_0x5c752b)[_0x583d8d(0x14d)](function(_0x8460c7){var _0x165fd7=_0x583d8d,_0x5488b6=_0x8460c7[0x0],_0x51c173=_0x8460c7[0x1];typeof _0x51c173=='string'&&(_0x5c752b[_0x5488b6]=_0x51c173['replace'](/url\(#(.*)\)/,'url(#$1'[_0x165fd7(0x100)](_0x3cc285[_0x165fd7(0x152)],')')));})),_0x5c752b;}function xe(_0x230754,_0x2da33b){var _0x2fa412=_0x20f48d,_0x5be48b,_0x49f6c1=_0x2da33b[_0x2fa412(0xd7)];return!_0x49f6c1||_0x49f6c1['length']===0x0?_0x230754:_0x230754[_0x2fa412(0xe3)]===_0x2fa412(0x157)&&(!((_0x5be48b=_0x230754[_0x2fa412(0x156)])===null||_0x5be48b===void 0x0)&&_0x5be48b[_0x2fa412(0xdb)])?c(c({},_0x230754),{'children':_0x230754[_0x2fa412(0x156)][_0x2fa412(0xd3)](function(_0x5b1f6b){var _0x33d8a6=_0x2fa412;return typeof _0x5b1f6b[_0x33d8a6(0xdc)]['id']==_0x33d8a6(0x119)&&_0x49f6c1&&_0x49f6c1[_0x33d8a6(0xe5)](_0x5b1f6b[_0x33d8a6(0xdc)]['id'])?c(c({},_0x5b1f6b),{'attrs':c(c({},_0x5b1f6b[_0x33d8a6(0xdc)]),{'id':_0x5b1f6b['attrs']['id']+_0x2da33b[_0x33d8a6(0x152)]})}):_0x5b1f6b;})}):_0x230754;}function Le(){var _0xfe5172=_0x20f48d;return Math[_0xfe5172(0x161)]()[_0xfe5172(0x116)](0x24)[_0xfe5172(0x15e)](0x2,0x8);}W[_0x20f48d(0x173)]='UniverIcon';var ye={'tag':'svg','attrs':{'xmlns':_0x20f48d(0xfd),'fill':'none','viewBox':_0x20f48d(0xc5),'width':_0x20f48d(0x154),'height':_0x20f48d(0x154)},'children':[{'tag':'path','attrs':{'fill':_0x20f48d(0x120),'d':_0x20f48d(0xe7)}},{'tag':_0x20f48d(0x13c),'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':_0x20f48d(0xf7),'clipRule':'evenodd'}}]},B=_0x11114f(function(_0xd0a02f,_0x2d7153){var _0x5e4663=_0x20f48d;return _0x3f4386(W,Object[_0x5e4663(0xf9)]({},_0xd0a02f,{'id':'live-share-icon','ref':_0x2d7153,'icon':ye}));});B[_0x20f48d(0x173)]=_0x20f48d(0xf6);var Re=Object[_0x20f48d(0x101)],Z=(_0x2daa00,_0x508644,_0x38e735,_0x2fb5bd)=>{for(var _0xe27228=_0x2fb5bd>0x1?void 0x0:_0x2fb5bd?Re(_0x508644,_0x38e735):_0x508644,_0x21afd2=_0x2daa00['length']-0x1,_0x42809d;_0x21afd2>=0x0;_0x21afd2--)(_0x42809d=_0x2daa00[_0x21afd2])&&(_0xe27228=_0x42809d(_0xe27228)||_0xe27228);return _0xe27228;},f=(_0x3194ec,_0x1f7372)=>(_0x2b2128,_0x4d7cd6)=>_0x1f7372(_0x2b2128,_0x4d7cd6,_0x3194ec);let I=class extends _0x4aa7c3{constructor(_0x48d520,_0xb09bbc,_0x3d90ba){var _0xc18116=_0x20f48d;super(),d(this,'_entities',new Map()),(this[_0xc18116(0x144)]=_0x48d520,this[_0xc18116(0xc6)]=_0xb09bbc,this[_0xc18116(0xc1)]=_0x3d90ba,this[_0xc18116(0xe2)]());}async[_0x20f48d(0xd1)](_0x58de9f){var _0x183613=_0x20f48d;return this[_0x183613(0x13b)][_0x183613(0xeb)](_0x58de9f)||await this[_0x183613(0x145)](_0x58de9f),this[_0x183613(0x13b)]['get'](_0x58de9f);}['_init'](){var _0x4a2baa=_0x20f48d;this[_0x4a2baa(0x144)][_0x4a2baa(0x128)](_0x1df0c8[_0x4a2baa(0xca)])[_0x4a2baa(0x12a)](_0xc6f40a(this[_0x4a2baa(0xf8)]))[_0x4a2baa(0xd2)](async _0x3dd5b2=>{var _0x1b839b=_0x4a2baa;const _0x58086a=_0x3dd5b2['getUnitId']();this[_0x1b839b(0x13b)][_0x1b839b(0xeb)](_0x58086a)||this[_0x1b839b(0x145)](_0x58086a);}),this[_0x4a2baa(0x144)][_0x4a2baa(0x134)](_0x1df0c8[_0x4a2baa(0xca)])[_0x4a2baa(0x12a)](_0xc6f40a(this['dispose$']))[_0x4a2baa(0xd2)](_0x12bc9a=>{var _0x41fc05=_0x4a2baa;const _0x70ebec=_0x12bc9a[_0x41fc05(0x146)](),_0x1aae01=this[_0x41fc05(0x13b)]['get'](_0x70ebec);_0x1aae01==null||_0x1aae01[_0x41fc05(0xf5)]();});}async['_startLiveShareCoordinator'](_0x5c4a12){var _0x3cca2=_0x20f48d;const _0x43f3a1=await this['_collabSessionService'][_0x3cca2(0x12e)](_0x5c4a12),_0x35cc71=this[_0x3cca2(0xc6)][_0x3cca2(0x107)](C,_0x5c4a12,_0x43f3a1);return _0x35cc71[_0x3cca2(0xd4)](),this[_0x3cca2(0x13b)][_0x3cca2(0x12c)](_0x5c4a12,_0x35cc71),_0x35cc71;}};I=Z([f(0x0,_0x10d7b1),f(0x1,_0x5e6b53(_0x25d4db)),f(0x2,_0x5e6b53(_0xc5bf75))],I);var h=(_0x149a58=>(_0x149a58[_0x20f48d(0x123)]=_0x20f48d(0x142),_0x149a58[_0x20f48d(0x13e)]=_0x20f48d(0x125),_0x149a58[_0x20f48d(0x14a)]='following',_0x149a58['NOT_FOLLOWING']=_0x20f48d(0x148),_0x149a58[_0x20f48d(0xc4)]=_0x20f48d(0x16d),_0x149a58))(h||{});const Pe=_0x20f48d(0xe6),Ae=0xc8;let C=class extends _0x4aa7c3{constructor(_0x21c6dc,_0x1aa65a,_0x19fcf3,_0x9bf42f,_0x6c312d){var _0x24e1a3=_0x20f48d;super(),d(this,_0x24e1a3(0xe1),new _0xd52750(_0x24e1a3(0x125))),d(this,'status$',this[_0x24e1a3(0xe1)]['asObservable']()),d(this,_0x24e1a3(0xe2),!0x1),d(this,_0x24e1a3(0x151),null),d(this,'_presenter',null),(this['_unitID']=_0x21c6dc,this['_collabSession']=_0x1aa65a,this['_configService']=_0x19fcf3,this[_0x24e1a3(0x130)]=_0x9bf42f,this[_0x24e1a3(0xf2)]=_0x6c312d);}get[_0x20f48d(0x165)](){var _0x145d52=_0x20f48d;return this[_0x145d52(0xe1)]['getValue']();}['dispose'](){var _0x2d6852=_0x20f48d,_0x33e68e;(_0x33e68e=this['_commandDisposable'])==null||_0x33e68e[_0x2d6852(0xf5)](),this['_status$'][_0x2d6852(0x109)](_0x2d6852(0x125)),this[_0x2d6852(0xe1)][_0x2d6852(0x14f)]();}[_0x20f48d(0xd4)](){var _0x181658=_0x20f48d;this[_0x181658(0xe2)]||(this[_0x181658(0xe2)]=!0x0,this[_0x181658(0xfb)][_0x181658(0x124)][_0x181658(0x12a)](_0xc6f40a(this[_0x181658(0xf8)]))[_0x181658(0xd2)](_0x126922=>{var _0x5ba407=_0x181658;switch(_0x126922){case _0x7c9eda[_0x5ba407(0x123)]:this[_0x5ba407(0x16e)]();break;case _0x7c9eda[_0x5ba407(0x141)]:this[_0x5ba407(0x103)]();break;}}),this['_collabSession'][_0x181658(0x132)][_0x181658(0x12a)](_0xc6f40a(this[_0x181658(0xf8)]))[_0x181658(0xd2)](_0x73fbaa=>{var _0x6da9e7=_0x181658;const {eventID:_0x33fe2a}=_0x73fbaa;switch(_0x33fe2a){case _0x18a2fa[_0x6da9e7(0xea)]:this[_0x6da9e7(0xfe)](_0x73fbaa);break;case _0x18a2fa['LIVESHARE_OPERATION']:this['_handleOperation'](_0x73fbaa);break;case _0x18a2fa[_0x6da9e7(0xf0)]:this[_0x6da9e7(0x159)]();break;case _0x18a2fa[_0x6da9e7(0xc7)]:this[_0x6da9e7(0x174)](_0x73fbaa);break;}}));}[_0x20f48d(0x15c)](){var _0xa7feb9=_0x20f48d;this[_0xa7feb9(0xfb)][_0xa7feb9(0xcc)]({'eventID':_0x18a2fa[_0xa7feb9(0x10e)],'data':{'unitID':this[_0xa7feb9(0xf3)],'userID':this[_0xa7feb9(0xfb)]['getMemberID']()}},this[_0xa7feb9(0xf3)]);}[_0x20f48d(0x170)](){var _0x2a5616=_0x20f48d;this['_status']===_0x2a5616(0x16d)&&(this['_status$']['next'](_0x2a5616(0x125)),this[_0x2a5616(0xfb)]['send']({'eventID':_0x18a2fa['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x2a5616(0xf3)]}},this[_0x2a5616(0xf3)]));}['startFollowing'](){var _0x106373=_0x20f48d;this[_0x106373(0x165)]==='not-following'&&(this[_0x106373(0xe1)]['next'](_0x106373(0x155)),this[_0x106373(0x11c)]());}[_0x20f48d(0xcf)](){var _0x617ad6=_0x20f48d;this[_0x617ad6(0x165)]==='following'&&this[_0x617ad6(0xec)]();}[_0x20f48d(0xfe)](_0x27b3f4){var _0x232fe9=_0x20f48d;const {presenter:_0x278bf3}=_0x27b3f4[_0x232fe9(0x149)],_0x4e497e=this[_0x232fe9(0xfb)][_0x232fe9(0x11a)]();this[_0x232fe9(0x104)]=_0x278bf3,_0x278bf3===_0x4e497e?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x232fe9(0x165)]!=='not-following'&&(this['_stopPresenting'](),this[_0x232fe9(0x11c)]());}[_0x20f48d(0x175)](){var _0x1ea5f2=_0x20f48d;const _0x14d822={'eventID':_0x18a2fa['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x1ea5f2(0xcc)](_0x14d822,this[_0x1ea5f2(0xf3)]);}['_handleTerminate'](){var _0x277797=_0x20f48d;this[_0x277797(0x104)]=null,this[_0x277797(0x165)]!==_0x277797(0x16d)&&this['_beIdle']();}[_0x20f48d(0x174)](_0x53c9c9){var _0x3876b0=_0x20f48d;if(this[_0x3876b0(0x165)]==='following'&&this['_presenter']===_0x53c9c9[_0x3876b0(0x149)][_0x3876b0(0x140)]){const _0x2d880f=_0x585eb4(_0x53c9c9['data'])[_0x3876b0(0x126)][_0x3876b0(0x143)]()['find'](_0x7f9915=>_0x7f9915['id']===_0x3e383d['id']);if(_0x2d880f){const _0x5dc93c=_0x2d880f['params'][_0x3876b0(0xe0)],_0x5c171c=_0x2d880f[_0x3876b0(0xff)][_0x3876b0(0x129)]['id'];setTimeout(()=>{var _0x101596=_0x3876b0;this[_0x101596(0xf2)][_0x101596(0x138)](_0x30ebd3['id'],{'unitId':_0x5dc93c,'subUnitId':_0x5c171c},{'fromCollab':!0x0});});}}}[_0x20f48d(0x102)](){var _0x107fad=_0x20f48d;this[_0x107fad(0xe1)][_0x107fad(0x109)](_0x107fad(0x16d));const _0x189c64=new Map(),_0x51dce0=this[_0x107fad(0x151)]=new _0x48f9ff();_0x51dce0['add'](_0x3f3e9d(()=>{var _0x1223dc=_0x107fad;_0x189c64['forEach'](_0x301d7d=>_0x301d7d[_0x1223dc(0x14f)]()),_0x189c64[_0x1223dc(0x172)]();})),_0x51dce0[_0x107fad(0x10d)](this[_0x107fad(0xf2)][_0x107fad(0xed)](_0x1dd1f2=>{var _0x162e69=_0x107fad,_0x1fe835;if(_0x1dd1f2[_0x162e69(0xee)]!==_0x39bd65['OPERATION']||!this[_0x162e69(0x130)][_0x162e69(0x121)](_0x1dd1f2['id']))return;const {id:_0x34e474}=_0x1dd1f2;let _0x2150e1;_0x189c64[_0x162e69(0xeb)](_0x34e474)?_0x2150e1=_0x189c64[_0x162e69(0x13d)](_0x34e474):(_0x2150e1=new _0x127c60(),_0x189c64[_0x162e69(0x12c)](_0x34e474,_0x2150e1),_0x2150e1[_0x162e69(0x12a)](_0x34d54c((_0x1fe835=this[_0x162e69(0x127)][_0x162e69(0x139)](Pe))!=null?_0x1fe835:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x162e69(0xd2)](_0x40a9f3=>{var _0x198215=_0x162e69;this[_0x198215(0xfb)]['send']({'eventID':_0x18a2fa[_0x198215(0x16c)],'data':{'unitID':this[_0x198215(0xf3)],'operations':{[_0x40a9f3['id']]:{'id':_0x40a9f3['id'],'params':JSON[_0x198215(0xd8)](_0x40a9f3['params'])}}}},this[_0x198215(0xf3)]);})),_0x2150e1[_0x162e69(0x109)](_0x1dd1f2);})),this[_0x107fad(0x130)][_0x107fad(0x15a)](this[_0x107fad(0xf3)])[_0x107fad(0x14d)](_0x10b4f2=>this[_0x107fad(0xfb)][_0x107fad(0xcc)]({'eventID':_0x18a2fa['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x10b4f2['id']]:{'id':_0x10b4f2['id'],'params':JSON[_0x107fad(0xd8)](_0x10b4f2[_0x107fad(0xff)])}}}},this[_0x107fad(0xf3)]));}[_0x20f48d(0x163)](){var _0x45503f=_0x20f48d,_0x59a185;this['_status$']['next'](_0x45503f(0x125)),(_0x59a185=this[_0x45503f(0x151)])==null||_0x59a185[_0x45503f(0xf5)](),this[_0x45503f(0x151)]=null;}[_0x20f48d(0x11c)](){var _0x12d4d1=_0x20f48d,_0x56d0ac;(_0x56d0ac=this[_0x12d4d1(0x151)])==null||_0x56d0ac[_0x12d4d1(0xf5)](),this['_status$']['next'](_0x12d4d1(0x155));}[_0x20f48d(0x16b)](){var _0xbb4df2=_0x20f48d,_0x7320ea;this[_0xbb4df2(0xe1)][_0xbb4df2(0x109)](_0xbb4df2(0x125)),(_0x7320ea=this['_commandDisposable'])==null||_0x7320ea[_0xbb4df2(0xf5)](),this[_0xbb4df2(0x151)]=null;}[_0x20f48d(0xec)](){var _0x91d738=_0x20f48d,_0x152b2e;this['_status$']['next'](_0x91d738(0x148)),(_0x152b2e=this['_commandDisposable'])==null||_0x152b2e[_0x91d738(0xf5)]();}[_0x20f48d(0x150)](_0x507d49){var _0x5af945=_0x20f48d;if([_0x5af945(0x16d),'not-following',_0x5af945(0x142)][_0x5af945(0xe5)](this[_0x5af945(0x165)])||!_0x507d49[_0x5af945(0x149)][_0x5af945(0x117)]||_0x507d49['data']['presenter']===this[_0x5af945(0xfb)][_0x5af945(0x11a)]())return;this[_0x5af945(0x165)]===_0x5af945(0x125)&&this['_startFollowing']();const _0x2f79b6=_0x507d49[_0x5af945(0x149)]['operations'];Object[_0x5af945(0x171)](_0x2f79b6)['forEach'](_0x5594db=>{var _0x44fab5=_0x5af945;this[_0x44fab5(0xf2)][_0x44fab5(0x138)](_0x5594db['id'],_0x5594db[_0x44fab5(0xff)]?JSON['parse'](_0x5594db['params']):null,{'fromCollab':!0x0});});}[_0x20f48d(0x16e)](){var _0x15b16c=_0x20f48d,_0x5ce6d5;this[_0x15b16c(0xe1)][_0x15b16c(0x109)](_0x15b16c(0x142)),(_0x5ce6d5=this[_0x15b16c(0x151)])==null||_0x5ce6d5[_0x15b16c(0xf5)]();}[_0x20f48d(0x103)](){var _0x3a7680=_0x20f48d;this['_status$'][_0x3a7680(0x109)](_0x3a7680(0x125)),this[_0x3a7680(0x175)]();}};C=Z([f(0x2,_0x27f4d),f(0x3,_0x5e6b53(L)),f(0x4,_0x4bf68b)],C);function Te(){var _0x2a2912=_0x20f48d;const _0x3e0e8f=_0x2713b0(I),_0x1ab237=_0x2713b0(_0x10d7b1),_0x10fea5=_0x1d60ce(()=>_0x1ab237[_0x2a2912(0x12f)](_0x1df0c8['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x13482a,_0x2b578f]=_0x5e8cb1(null),[_0x355e54,_0xac4b1c]=_0x5e8cb1(h['IDLE']),_0x36257c=_0x5991aa(null);return _0x613455(()=>(_0x10fea5&&_0x3e0e8f[_0x2a2912(0xd1)](_0x10fea5[_0x2a2912(0x146)]())[_0x2a2912(0x167)](_0x36fad5=>{var _0x559aed=_0x2a2912;_0x2b578f(_0x36fad5),_0x36257c[_0x559aed(0xdd)]=_0x36fad5[_0x559aed(0x16f)][_0x559aed(0xd2)](_0x240c49=>{_0xac4b1c(_0x240c49);});}),()=>{var _0x50398e=_0x2a2912,_0xa10712;(_0xa10712=_0x36257c[_0x50398e(0xdd)])==null||_0xa10712[_0x50398e(0x162)](),_0x36257c[_0x50398e(0xdd)]=null;}),[_0x10fea5,_0x3e0e8f]),_0x13482a?_0x591b4e(_0x3a1168,{'align':_0x2a2912(0x105),'disabled':_0x355e54===h['OFFLINE'],'className':_0x2a2912(0xe8),'overlay':_0x591b4e($e,{'status':_0x355e54,'coordinator':_0x13482a}),'children':_0x591b4e(_0x2a2912(0xbf),{'className':_0x25609c(_0x2a2912(0xc8),{'univer-cursor-not-allowed':_0x355e54===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x355e54!==h[_0x2a2912(0x123)]}),'type':'button','children':_0x591b4e(B,{'className':_0x2a2912(0xcb)})})}):null;}function $e(_0x31e430){var _0x4c70ee=_0x20f48d;const {status:_0x49a101,coordinator:_0xbc1520}=_0x31e430;switch(_0x49a101){case h[_0x4c70ee(0x13e)]:return _0x591b4e(Fe,{'coordinator':_0xbc1520});case h[_0x4c70ee(0x14a)]:return _0x591b4e(He,{'coordinator':_0xbc1520});case h['NOT_FOLLOWING']:return _0x591b4e(je,{'coordinator':_0xbc1520});case h[_0x4c70ee(0x123)]:return _0x591b4e(Ve,{});case h[_0x4c70ee(0xc4)]:return _0x591b4e(Ue,{'coordinator':_0xbc1520});default:return null;}}function Fe(_0x20c32d){var _0x37eb8e=_0x20f48d;const {coordinator:_0x3175d9}=_0x20c32d;return _0xf95584(_0xb7edf3,{'children':[_0x591b4e(_0x37eb8e(0x133),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x37eb8e(0x113)}),_0x591b4e(_0x3b8bcf,{'onClick':()=>_0x3175d9[_0x37eb8e(0x15c)](),'children':_0x37eb8e(0xd6)})]});}function He(_0x312c16){var _0xe4c6ac=_0x20f48d;const {coordinator:_0xb1b530}=_0x312c16;return _0xf95584(_0xb7edf3,{'children':[_0x591b4e('div',{'className':_0xe4c6ac(0x11e),'children':_0xe4c6ac(0xc2)}),_0x591b4e(_0x3b8bcf,{'onClick':()=>_0xb1b530[_0xe4c6ac(0xcf)](),'children':'Stop\x20following'})]});}function je(_0x5a9d64){var _0x570224=_0x20f48d;const {coordinator:_0x1e4aa5}=_0x5a9d64;return _0xf95584(_0xb7edf3,{'children':[_0x591b4e(_0x570224(0x133),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x570224(0x168)}),_0x591b4e(_0x3b8bcf,{'variant':_0x570224(0x169),'onClick':()=>_0x1e4aa5[_0x570224(0x14c)](),'children':_0x570224(0x111)})]});}function Ue(_0x2a7216){var _0x31db84=_0x20f48d;const {coordinator:_0x2f30b4}=_0x2a7216;return _0xf95584(_0xb7edf3,{'children':[_0x591b4e(_0x31db84(0x133),{'className':_0x31db84(0x11e),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x591b4e(_0x3b8bcf,{'variant':_0x31db84(0x11b),'onClick':()=>_0x2f30b4[_0x31db84(0x170)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x1ea2b1=_0x20f48d;return _0x591b4e(_0xb7edf3,{'children':_0x1ea2b1(0x11f)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x1e86b3,_0x5704cc,_0x257239,_0x46ca42)=>{for(var _0x1c5c74=_0x46ca42>0x1?void 0x0:_0x46ca42?Me(_0x5704cc,_0x257239):_0x5704cc,_0x16e8d0=_0x1e86b3['length']-0x1,_0x6cf96c;_0x16e8d0>=0x0;_0x16e8d0--)(_0x6cf96c=_0x1e86b3[_0x16e8d0])&&(_0x1c5c74=_0x6cf96c(_0x1c5c74)||_0x1c5c74);return _0x1c5c74;},$=(_0x498f27,_0x3f0482)=>(_0x344315,_0x7a0af)=>_0x3f0482(_0x344315,_0x7a0af,_0x498f27);let b=class extends _0x1a511f{constructor(_0x1844b9,_0x2de9fd){var _0x7e94a1=_0x20f48d;super(),this[_0x7e94a1(0xc6)]=_0x1844b9,this[_0x7e94a1(0x166)]=_0x2de9fd,this[_0x7e94a1(0x135)]();}[_0x20f48d(0x135)](){var _0x44de3f=_0x20f48d;this[_0x44de3f(0x12d)](this[_0x44de3f(0x166)][_0x44de3f(0x10a)](_0x22f3b6[_0x44de3f(0x137)],()=>_0x123b5d(Te,this['_injector'])));}};b=ke([$(0x0,_0x5e6b53(_0x25d4db)),$(0x1,_0xe05b9c)],b);var Ge=Object[_0x20f48d(0x122)],We=Object[_0x20f48d(0x101)],Ye=(_0x15d16d,_0x4527c9,_0x440aed)=>_0x4527c9 in _0x15d16d?Ge(_0x15d16d,_0x4527c9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x440aed}):_0x15d16d[_0x4527c9]=_0x440aed,Be=(_0xc1efcc,_0x1e7ca1,_0x3c23ac,_0x111ade)=>{var _0xfde630=_0x20f48d;for(var _0x5d8198=_0x111ade>0x1?void 0x0:_0x111ade?We(_0x1e7ca1,_0x3c23ac):_0x1e7ca1,_0x123851=_0xc1efcc[_0xfde630(0xdb)]-0x1,_0x5d8846;_0x123851>=0x0;_0x123851--)(_0x5d8846=_0xc1efcc[_0x123851])&&(_0x5d8198=_0x5d8846(_0x5d8198)||_0x5d8198);return _0x5d8198;},F=(_0x57a572,_0x3620b5)=>(_0x8a1bcb,_0x172e19)=>_0x3620b5(_0x8a1bcb,_0x172e19,_0x57a572),J=(_0x3d5ec4,_0x5c8a5f,_0x21eca2)=>Ye(_0x3d5ec4,typeof _0x5c8a5f!=_0x20f48d(0xf1)?_0x5c8a5f+'':_0x5c8a5f,_0x21eca2);const Ze=_0x20f48d(0x11d);let O=class extends _0x5c6f5f{constructor(_0x351256=T,_0x490d32,_0x8e6d18){var _0x56ffb4=_0x20f48d;super(),this['_config']=_0x351256,this[_0x56ffb4(0xc6)]=_0x490d32,this['_configService']=_0x8e6d18;const {..._0x14b40d}=_0x1b809b({},T,this[_0x56ffb4(0x164)]);this[_0x56ffb4(0x127)]['setConfig'](Oe,_0x14b40d);}[_0x20f48d(0x115)](){var _0x45a5aa=_0x20f48d;_0x1d9d68(this['_injector'],_0x1c6ef3([[L],[I],[m],[b]],this[_0x45a5aa(0x164)]['override'])),_0x4e8b78(this[_0x45a5aa(0xc6)],[[m]]);}[_0x20f48d(0xce)](){var _0xfd7ab0=_0x20f48d;_0x4e8b78(this[_0xfd7ab0(0xc6)],[[b]]);}};J(O,'type',_0x1df0c8[_0x20f48d(0x108)]),J(O,_0x20f48d(0x118),Ze),O=Be([_0x1a4ce7(_0x2d4e6e),F(0x1,_0x5e6b53(_0x25d4db)),F(0x2,_0x27f4d)],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 _0x3eff67=_0x31ab;(function(_0x34e3dd,_0xd7c235){var _0x5c499f=_0x31ab,_0x194726=_0x34e3dd();while(!![]){try{var _0x16e3db=parseInt(_0x5c499f(0x1e2))/0x1+-parseInt(_0x5c499f(0x191))/0x2+parseInt(_0x5c499f(0x1cf))/0x3*(parseInt(_0x5c499f(0x168))/0x4)+-parseInt(_0x5c499f(0x1b8))/0x5*(parseInt(_0x5c499f(0x187))/0x6)+parseInt(_0x5c499f(0x1b6))/0x7+-parseInt(_0x5c499f(0x1ae))/0x8+parseInt(_0x5c499f(0x1a0))/0x9;if(_0x16e3db===_0xd7c235)break;else _0x194726['push'](_0x194726['shift']());}catch(_0x1ed860){_0x194726['push'](_0x194726['shift']());}}}(_0x1f46,0x9efd8));var q=Object[_0x3eff67(0x166)],z=(_0x5672ec,_0x4afd82,_0x3b2038)=>_0x4afd82 in _0x5672ec?q(_0x5672ec,_0x4afd82,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b2038}):_0x5672ec[_0x4afd82]=_0x3b2038,d=(_0x44d3ed,_0x5bcb97,_0x5a04a1)=>z(_0x44d3ed,typeof _0x5bcb97!=_0x3eff67(0x1d9)?_0x5bcb97+'':_0x5bcb97,_0x5a04a1);import{CollaborationSessionService as _0x3fb12e,SessionStatus as _0x1efbf3,UniverCollaborationClientPlugin as _0x10ce60}from'@univerjs-pro/collaboration-client';function _0x1f46(){var _0x18c72e=['path','use','idSuffix','LIVESHARE_OPERATION','hasOwnProperty','parse','getValue','13037319NXRNtn','getConfig','defs','length','memberID','complete','next','override','_configService','LIVESHARE_NEW_HOST','setConfig','UniverIcon','_startFollowing','dispose','4891152Reqask','status$','_mountLiveShare','icon','_reporters','_handleTerminate','clear','onStarting','2696883XAIoym','_sharedOperations','60xrnJUp','svg','_status$','You\x27re\x20following\x20the\x20presenter','_uiPartsService','UNIVER_SHEET','set','startFollowing','type','sheet','OFFLINE','univer-size-4','replace','ONLINE','children','_commandService','currentColor','prototype','getOwnPropertySymbols','pipe','Start\x20following','string','http://www.w3.org/2000/svg','11055xDOuhu','registerInitialStateReporter','mutations','getOwnPropertyDescriptor','presenter','_presenter','includes','forEach','div','stringify','symbol','from','has','send','reverse','0\x200\x2017\x2017','end','_init','fill','234688jVGHQb','disposeWithMe','getInitialStates','assign','Stop\x20following','get','createInstance','_stopFollowing','_collabSessionService','registerSharedOperation','_handleOperation','_handleNewHost','url(#$1','_liveShareService','apply','evenodd','attrs','Start','NOT_FOLLOWING','current','1em','init','call','LIVESHARE_REQUEST_HOST','displayName','shouldShareOperation','offline','live-share-icon','subscribe','asObservable','trim','_fetchOperations','dispose$','data','extend','PRESENTING','add','_beIdle','univerjs-icon\x20univerjs-icon-','NEW_CHANGESETS','_handleOffline','random','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','unitId','delete','className','stopPresenting','OPERATION','idle','_entities','_handleOnline','defineProperty','Stop\x20presenting','676eBmkdb','pluginName','xlink:href','sessionStatus$','univer-mb-3\x20univer-w-full\x20univer-text-sm','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','onCommandExecuted','_commandDisposable','concat','executeCommand','_unitID','tryStartPresenting','getTypeOfUnitAdded$','_config','values','FOLLOWING','text','You\x27re\x20presenting\x20the\x20document','colorChannel1','following','default','button','map','_univerInstanceService','then','getMemberID','SAME_OPERATION_SHARE_INTERVAL','getLiveShareCoordinator','not-following','entries','_status','638688SbpAel','_stopPresenting','getUnitId','defIds','_startLiveShareCoordinator','LIVESHARE_TERMINATE','operations','_startPresenting','params','UNIVER_LIVE_SHARE_PLUGIN','302638GNyelZ','tag','_injector','getCurrentTypeOfUnit$','_handleNewChangeSets','IDLE','_collabSession','presenting'];_0x1f46=function(){return _0x18c72e;};return _0x1f46();}import{Disposable as _0x41e790,toDisposable as _0x1c3b80,Inject as _0x409218,IUniverInstanceService as _0x55c1e4,Injector as _0x2813f3,IConfigService as _0x5e7702,ICommandService as _0x5ab311,RxDisposable as _0x423d8a,UniverInstanceType as _0x19162e,DisposableCollection as _0x523026,CommandType as _0x142835,DependentOn as _0x1c0dec,Plugin as _0x2dc758,merge as _0x4268e8,registerDependencies as _0x323506,mergeOverrideWithDependencies as _0x263d4d,touchDependencies as _0x29f66d}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x26f0a8,InsertSheetMutation as _0x2463e7}from'@univerjs/sheets';import{SetZoomRatioOperation as _0xb8ad1e,SetScrollOperation as _0x4808f9}from'@univerjs/sheets-ui';import{useDependency as _0x5cd417,useObservable as _0x1dad95,IUIPartsService as _0x54c0ed,BuiltInUIPart as _0x5ad5f4,connectInjector as _0x2f61ae}from'@univerjs/ui';import{jsx as _0x1fcf7b,jsxs as _0xdfee60,Fragment as _0x378d55}from'react/jsx-runtime';import{Dropdown as _0x15741b,clsx as _0x144952,Button as _0x360a74}from'@univerjs/design';import{forwardRef as _0x17b570,useRef as _0x1653ac,createElement as _0x2d133d,useState as _0x324aa9,useEffect as _0x23e425}from'react';import{CollaborationEvent as _0x22777c,parseProtocolChangeset as _0x540cc9}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x247e69,Subject as _0x3d88fa}from'rxjs';import{takeUntil as _0x492107,throttleTime as _0x2882f6}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x41e790{constructor(){var _0x511ecf=_0x3eff67;super(...arguments),d(this,_0x511ecf(0x1b7),new Set()),d(this,_0x511ecf(0x1b2),new Set());}[_0x3eff67(0x1eb)](_0x21fb17){var _0x33b33e=_0x3eff67;return this[_0x33b33e(0x1b7)][_0x33b33e(0x157)](_0x21fb17),_0x1c3b80(()=>this['_sharedOperations']['delete'](_0x21fb17));}[_0x3eff67(0x1d0)](_0x1981e8){var _0x57a982=_0x3eff67;return this[_0x57a982(0x1b2)]['add'](_0x1981e8),_0x1c3b80(()=>this[_0x57a982(0x1b2)][_0x57a982(0x15f)](_0x1981e8));}[_0x3eff67(0x1fb)](_0x713650){var _0x591a72=_0x3eff67;return this[_0x591a72(0x1b7)][_0x591a72(0x1db)](_0x713650);}['getInitialStates'](_0x3f2e6a){var _0x371d9d=_0x3eff67;return Array[_0x371d9d(0x1da)](this['_reporters'])[_0x371d9d(0x17e)](_0x2999c8=>_0x2999c8(_0x3f2e6a));}}var Ee=Object[_0x3eff67(0x1d2)],we=(_0x2effaf,_0x3ad890,_0x2b473c,_0xf61b5b)=>{var _0x1ee75d=_0x3eff67;for(var _0x417563=_0xf61b5b>0x1?void 0x0:_0xf61b5b?Ee(_0x3ad890,_0x2b473c):_0x3ad890,_0x980a50=_0x2effaf[_0x1ee75d(0x1a3)]-0x1,_0x49672f;_0x980a50>=0x0;_0x980a50--)(_0x49672f=_0x2effaf[_0x980a50])&&(_0x417563=_0x49672f(_0x417563)||_0x417563);return _0x417563;},Ne=(_0x4d9250,_0x122290)=>(_0x19f760,_0x3c74bf)=>_0x122290(_0x19f760,_0x3c74bf,_0x4d9250);let m=class extends _0x41e790{constructor(_0x21cd4d){var _0x1e7c96=_0x3eff67;super(),this[_0x1e7c96(0x1ef)]=_0x21cd4d,this[_0x1e7c96(0x1e0)]();}['_init'](){var _0x1c439e=_0x3eff67;[_0xb8ad1e['id'],_0x4808f9['id'],_0x26f0a8['id']][_0x1c439e(0x1d6)](_0x61990a=>{var _0x20fd33=_0x1c439e;this[_0x20fd33(0x1e3)](this[_0x20fd33(0x1ef)][_0x20fd33(0x1eb)](_0x61990a));});}};m=we([Ne(0x0,_0x409218(L))],m);var c=function(){var _0x4cbc56=_0x3eff67;return c=Object[_0x4cbc56(0x1e5)]||function(_0x12036d){var _0xb5a243=_0x4cbc56;for(var _0x372c80,_0x18d009=0x1,_0xe8ec69=arguments[_0xb5a243(0x1a3)];_0x18d009<_0xe8ec69;_0x18d009++){_0x372c80=arguments[_0x18d009];for(var _0x4b23a5 in _0x372c80)Object[_0xb5a243(0x1c9)][_0xb5a243(0x19d)][_0xb5a243(0x1f8)](_0x372c80,_0x4b23a5)&&(_0x12036d[_0x4b23a5]=_0x372c80[_0x4b23a5]);}return _0x12036d;},c[_0x4cbc56(0x1f0)](this,arguments);},Ce=function(_0x1b7e14,_0x1729d9){var _0x101efb=_0x3eff67,_0x22c09b={};for(var _0xaf4d0d in _0x1b7e14)Object[_0x101efb(0x1c9)][_0x101efb(0x19d)][_0x101efb(0x1f8)](_0x1b7e14,_0xaf4d0d)&&_0x1729d9['indexOf'](_0xaf4d0d)<0x0&&(_0x22c09b[_0xaf4d0d]=_0x1b7e14[_0xaf4d0d]);if(_0x1b7e14!=null&&typeof Object[_0x101efb(0x1ca)]=='function'){for(var _0xecea7a=0x0,_0xaf4d0d=Object[_0x101efb(0x1ca)](_0x1b7e14);_0xecea7a<_0xaf4d0d['length'];_0xecea7a++)_0x1729d9['indexOf'](_0xaf4d0d[_0xecea7a])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x1b7e14,_0xaf4d0d[_0xecea7a])&&(_0x22c09b[_0xaf4d0d[_0xecea7a]]=_0x1b7e14[_0xaf4d0d[_0xecea7a]]);}return _0x22c09b;},W=_0x17b570(function(_0x312eb2,_0x1afeb){var _0x55ee70=_0x3eff67,_0x2b7d8b=_0x312eb2[_0x55ee70(0x1b1)],_0x53a4a1=_0x312eb2['id'],_0x336fdd=_0x312eb2[_0x55ee70(0x160)],_0x13b316=_0x312eb2[_0x55ee70(0x204)],_0x34e919=Ce(_0x312eb2,['icon','id',_0x55ee70(0x160),'extend']),_0x5e22fa=_0x55ee70(0x159)['concat'](_0x53a4a1,'\x20')[_0x55ee70(0x170)](_0x336fdd||'')[_0x55ee70(0x200)](),_0x428f3a=_0x1653ac('_'['concat'](Le()));return Y(_0x2b7d8b,''[_0x55ee70(0x170)](_0x53a4a1),{'defIds':_0x2b7d8b[_0x55ee70(0x18a)],'idSuffix':_0x428f3a[_0x55ee70(0x1f5)]},c({'ref':_0x1afeb,'className':_0x5e22fa},_0x34e919),_0x13b316);});function Y(_0x5cc9af,_0xac24a9,_0x11b732,_0xceec65,_0x539e04){var _0x4e679f=_0x3eff67;return _0x2d133d(_0x5cc9af[_0x4e679f(0x192)],c(c({'key':_0xac24a9},De(_0x5cc9af,_0x11b732,_0x539e04)),_0xceec65),(xe(_0x5cc9af,_0x11b732)[_0x4e679f(0x1c6)]||[])['map'](function(_0x18bfd6,_0x492f08){var _0x12e310=_0x4e679f;return Y(_0x18bfd6,''[_0x12e310(0x170)](_0xac24a9,'-')['concat'](_0x5cc9af[_0x12e310(0x192)],'-')['concat'](_0x492f08),_0x11b732,void 0x0,_0x539e04);}));}function De(_0x15773c,_0x2f1217,_0x3cc958){var _0x2c9cc5=_0x3eff67,_0x132b37=c({},_0x15773c['attrs']);_0x3cc958!=null&&_0x3cc958[_0x2c9cc5(0x17a)]&&_0x132b37[_0x2c9cc5(0x1e1)]===_0x2c9cc5(0x17a)&&(_0x132b37['fill']=_0x3cc958[_0x2c9cc5(0x17a)]),_0x15773c[_0x2c9cc5(0x192)]==='mask'&&_0x132b37['id']&&(_0x132b37['id']=_0x132b37['id']+_0x2f1217[_0x2c9cc5(0x19b)]),Object[_0x2c9cc5(0x185)](_0x132b37)[_0x2c9cc5(0x1d6)](function(_0xfcfe7d){var _0x3e9dbc=_0x2c9cc5,_0x58e62e=_0xfcfe7d[0x0],_0x3b6947=_0xfcfe7d[0x1];_0x58e62e==='mask'&&typeof _0x3b6947==_0x3e9dbc(0x1cd)&&(_0x132b37[_0x58e62e]=_0x3b6947['replace'](/url\(#(.*)\)/,_0x3e9dbc(0x1ee)['concat'](_0x2f1217[_0x3e9dbc(0x19b)],')')));});var _0x1c1407=_0x2f1217[_0x2c9cc5(0x18a)];return!_0x1c1407||_0x1c1407[_0x2c9cc5(0x1a3)]===0x0||(_0x15773c[_0x2c9cc5(0x192)]===_0x2c9cc5(0x19a)&&_0x132b37[_0x2c9cc5(0x16a)]&&(_0x132b37[_0x2c9cc5(0x16a)]=_0x132b37['xlink:href']+_0x2f1217[_0x2c9cc5(0x19b)]),Object[_0x2c9cc5(0x185)](_0x132b37)[_0x2c9cc5(0x1d6)](function(_0x33e124){var _0x3667e5=_0x2c9cc5,_0x48e37d=_0x33e124[0x0],_0x539550=_0x33e124[0x1];typeof _0x539550=='string'&&(_0x132b37[_0x48e37d]=_0x539550[_0x3667e5(0x1c4)](/url\(#(.*)\)/,'url(#$1'[_0x3667e5(0x170)](_0x2f1217[_0x3667e5(0x19b)],')')));})),_0x132b37;}function xe(_0x499004,_0x59bc12){var _0x415ef6=_0x3eff67,_0x31ab1b,_0x4ea787=_0x59bc12[_0x415ef6(0x18a)];return!_0x4ea787||_0x4ea787[_0x415ef6(0x1a3)]===0x0?_0x499004:_0x499004[_0x415ef6(0x192)]===_0x415ef6(0x1a2)&&(!((_0x31ab1b=_0x499004['children'])===null||_0x31ab1b===void 0x0)&&_0x31ab1b[_0x415ef6(0x1a3)])?c(c({},_0x499004),{'children':_0x499004[_0x415ef6(0x1c6)][_0x415ef6(0x17e)](function(_0x5b8992){var _0x23f52a=_0x415ef6;return typeof _0x5b8992[_0x23f52a(0x1f2)]['id']==_0x23f52a(0x1cd)&&_0x4ea787&&_0x4ea787[_0x23f52a(0x1d5)](_0x5b8992[_0x23f52a(0x1f2)]['id'])?c(c({},_0x5b8992),{'attrs':c(c({},_0x5b8992[_0x23f52a(0x1f2)]),{'id':_0x5b8992[_0x23f52a(0x1f2)]['id']+_0x59bc12['idSuffix']})}):_0x5b8992;})}):_0x499004;}function Le(){var _0x509b4d=_0x3eff67;return Math[_0x509b4d(0x15c)]()['toString'](0x24)['substring'](0x2,0x8);}W[_0x3eff67(0x1fa)]=_0x3eff67(0x1ab);var ye={'tag':_0x3eff67(0x1b9),'attrs':{'xmlns':_0x3eff67(0x1ce),'fill':'none','viewBox':_0x3eff67(0x1de),'width':_0x3eff67(0x1f6),'height':_0x3eff67(0x1f6)},'children':[{'tag':_0x3eff67(0x199),'attrs':{'fill':_0x3eff67(0x1c8),'d':_0x3eff67(0x15d)}},{'tag':'path','attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0x3eff67(0x1f1)}}]},B=_0x17b570(function(_0x24943c,_0x2747ce){var _0x4f6b4f=_0x3eff67;return _0x2d133d(W,Object[_0x4f6b4f(0x1e5)]({},_0x24943c,{'id':_0x4f6b4f(0x1fd),'ref':_0x2747ce,'icon':ye}));});B['displayName']='LiveShareIcon';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x2f7209,_0x1e683c,_0x2f5ddd,_0x31032c)=>{for(var _0xfa9166=_0x31032c>0x1?void 0x0:_0x31032c?Re(_0x1e683c,_0x2f5ddd):_0x1e683c,_0x17c141=_0x2f7209['length']-0x1,_0x56f321;_0x17c141>=0x0;_0x17c141--)(_0x56f321=_0x2f7209[_0x17c141])&&(_0xfa9166=_0x56f321(_0xfa9166)||_0xfa9166);return _0xfa9166;},f=(_0x2536ba,_0x27e7de)=>(_0x21eef9,_0x539d35)=>_0x27e7de(_0x21eef9,_0x539d35,_0x2536ba);let I=class extends _0x423d8a{constructor(_0x3c1eab,_0x515c31,_0x286a8a){var _0x5b4530=_0x3eff67;super(),d(this,_0x5b4530(0x164),new Map()),(this['_univerInstanceService']=_0x3c1eab,this[_0x5b4530(0x193)]=_0x515c31,this[_0x5b4530(0x1ea)]=_0x286a8a,this[_0x5b4530(0x1e0)]());}async[_0x3eff67(0x183)](_0x576454){var _0xc77e91=_0x3eff67;return this[_0xc77e91(0x164)][_0xc77e91(0x1db)](_0x576454)||await this['_startLiveShareCoordinator'](_0x576454),this[_0xc77e91(0x164)][_0xc77e91(0x1e7)](_0x576454);}[_0x3eff67(0x1e0)](){var _0x2f2cac=_0x3eff67;this['_univerInstanceService'][_0x2f2cac(0x174)](_0x19162e[_0x2f2cac(0x1bd)])['pipe'](_0x492107(this[_0x2f2cac(0x202)]))['subscribe'](async _0x1880aa=>{var _0x1f0e18=_0x2f2cac;const _0x5a3dc3=_0x1880aa['getUnitId']();this[_0x1f0e18(0x164)]['has'](_0x5a3dc3)||this[_0x1f0e18(0x18b)](_0x5a3dc3);}),this[_0x2f2cac(0x17f)]['getTypeOfUnitDisposed$'](_0x19162e['UNIVER_SHEET'])[_0x2f2cac(0x1cb)](_0x492107(this[_0x2f2cac(0x202)]))[_0x2f2cac(0x1fe)](_0x5b57ef=>{var _0x5eaa5c=_0x2f2cac;const _0x51bf13=_0x5b57ef[_0x5eaa5c(0x189)](),_0x307285=this[_0x5eaa5c(0x164)][_0x5eaa5c(0x1e7)](_0x51bf13);_0x307285==null||_0x307285['dispose']();});}async['_startLiveShareCoordinator'](_0x2dc855){var _0xb92f5d=_0x3eff67;const _0x19642d=await this['_collabSessionService']['requireSession'](_0x2dc855),_0x3d664b=this[_0xb92f5d(0x193)][_0xb92f5d(0x1e8)](C,_0x2dc855,_0x19642d);return _0x3d664b[_0xb92f5d(0x1f7)](),this['_entities'][_0xb92f5d(0x1be)](_0x2dc855,_0x3d664b),_0x3d664b;}};I=Z([f(0x0,_0x55c1e4),f(0x1,_0x409218(_0x2813f3)),f(0x2,_0x409218(_0x3fb12e))],I);var h=(_0x280c93=>(_0x280c93[_0x3eff67(0x1c2)]=_0x3eff67(0x1fc),_0x280c93[_0x3eff67(0x196)]='idle',_0x280c93[_0x3eff67(0x177)]='following',_0x280c93[_0x3eff67(0x1f4)]='not-following',_0x280c93[_0x3eff67(0x205)]=_0x3eff67(0x198),_0x280c93))(h||{});const Pe=_0x3eff67(0x182),Ae=0xc8;let C=class extends _0x423d8a{constructor(_0x23dcb0,_0x5b7c1d,_0x3a6b25,_0x4f4851,_0x34947a){var _0x2d20f1=_0x3eff67;super(),d(this,_0x2d20f1(0x1ba),new _0x247e69(_0x2d20f1(0x163))),d(this,_0x2d20f1(0x1af),this[_0x2d20f1(0x1ba)][_0x2d20f1(0x1ff)]()),d(this,_0x2d20f1(0x1e0),!0x1),d(this,_0x2d20f1(0x16f),null),d(this,_0x2d20f1(0x1d4),null),(this[_0x2d20f1(0x172)]=_0x23dcb0,this[_0x2d20f1(0x197)]=_0x5b7c1d,this['_configService']=_0x3a6b25,this[_0x2d20f1(0x1ef)]=_0x4f4851,this[_0x2d20f1(0x1c7)]=_0x34947a);}get[_0x3eff67(0x186)](){var _0x59ff9e=_0x3eff67;return this[_0x59ff9e(0x1ba)][_0x59ff9e(0x19f)]();}[_0x3eff67(0x1ad)](){var _0x4f1529=_0x3eff67,_0x69d8c3;(_0x69d8c3=this['_commandDisposable'])==null||_0x69d8c3[_0x4f1529(0x1ad)](),this[_0x4f1529(0x1ba)][_0x4f1529(0x1a6)]('idle'),this[_0x4f1529(0x1ba)][_0x4f1529(0x1a5)]();}[_0x3eff67(0x1f7)](){var _0x1cbec9=_0x3eff67;this[_0x1cbec9(0x1e0)]||(this[_0x1cbec9(0x1e0)]=!0x0,this[_0x1cbec9(0x197)][_0x1cbec9(0x16b)][_0x1cbec9(0x1cb)](_0x492107(this[_0x1cbec9(0x202)]))[_0x1cbec9(0x1fe)](_0x140b68=>{var _0x333bd2=_0x1cbec9;switch(_0x140b68){case _0x1efbf3['OFFLINE']:this[_0x333bd2(0x15b)]();break;case _0x1efbf3[_0x333bd2(0x1c5)]:this[_0x333bd2(0x165)]();break;}}),this['_collabSession']['event$']['pipe'](_0x492107(this['dispose$']))[_0x1cbec9(0x1fe)](_0x1305fe=>{var _0x16f61a=_0x1cbec9;const {eventID:_0x394a48}=_0x1305fe;switch(_0x394a48){case _0x22777c[_0x16f61a(0x1a9)]:this[_0x16f61a(0x1ed)](_0x1305fe);break;case _0x22777c[_0x16f61a(0x19c)]:this[_0x16f61a(0x1ec)](_0x1305fe);break;case _0x22777c[_0x16f61a(0x18c)]:this[_0x16f61a(0x1b3)]();break;case _0x22777c[_0x16f61a(0x15a)]:this[_0x16f61a(0x195)](_0x1305fe);break;}}));}['tryStartPresenting'](){var _0x8684b4=_0x3eff67;this['_collabSession'][_0x8684b4(0x1dc)]({'eventID':_0x22777c[_0x8684b4(0x1f9)],'data':{'unitID':this[_0x8684b4(0x172)],'userID':this[_0x8684b4(0x197)][_0x8684b4(0x181)]()}},this['_unitID']);}[_0x3eff67(0x161)](){var _0x3e1187=_0x3eff67;this[_0x3e1187(0x186)]===_0x3e1187(0x198)&&(this[_0x3e1187(0x1ba)][_0x3e1187(0x1a6)](_0x3e1187(0x163)),this[_0x3e1187(0x197)][_0x3e1187(0x1dc)]({'eventID':_0x22777c[_0x3e1187(0x18c)],'data':{'unitID':this['_unitID']}},this[_0x3e1187(0x172)]));}[_0x3eff67(0x1bf)](){var _0x329f13=_0x3eff67;this['_status']==='not-following'&&(this[_0x329f13(0x1ba)][_0x329f13(0x1a6)](_0x329f13(0x17b)),this[_0x329f13(0x1ac)]());}['stopFollowing'](){var _0xe50d51=_0x3eff67;this[_0xe50d51(0x186)]===_0xe50d51(0x17b)&&this[_0xe50d51(0x1e9)]();}[_0x3eff67(0x1ed)](_0x486328){var _0x5d0dfc=_0x3eff67;const {presenter:_0x430367}=_0x486328[_0x5d0dfc(0x203)],_0x34e792=this['_collabSession'][_0x5d0dfc(0x181)]();this[_0x5d0dfc(0x1d4)]=_0x430367,_0x430367===_0x34e792?(this[_0x5d0dfc(0x1e9)](),this[_0x5d0dfc(0x18e)]()):this[_0x5d0dfc(0x186)]!==_0x5d0dfc(0x184)&&(this[_0x5d0dfc(0x188)](),this[_0x5d0dfc(0x1ac)]());}[_0x3eff67(0x201)](){var _0x44dbf2=_0x3eff67;const _0x505b06={'eventID':_0x22777c['LIVESHARE_FETCH_OPERATIONS']};this[_0x44dbf2(0x197)]['send'](_0x505b06,this[_0x44dbf2(0x172)]);}[_0x3eff67(0x1b3)](){var _0x46870b=_0x3eff67;this[_0x46870b(0x1d4)]=null,this[_0x46870b(0x186)]!=='presenting'&&this[_0x46870b(0x158)]();}[_0x3eff67(0x195)](_0x3fe886){var _0x1a2b64=_0x3eff67;if(this['_status']===_0x1a2b64(0x17b)&&this['_presenter']===_0x3fe886[_0x1a2b64(0x203)][_0x1a2b64(0x1a4)]){const _0x2fd7bd=_0x540cc9(_0x3fe886[_0x1a2b64(0x203)])[_0x1a2b64(0x1d1)][_0x1a2b64(0x1dd)]()['find'](_0x487629=>_0x487629['id']===_0x2463e7['id']);if(_0x2fd7bd){const _0x48cff6=_0x2fd7bd[_0x1a2b64(0x18f)][_0x1a2b64(0x15e)],_0x502ac1=_0x2fd7bd['params'][_0x1a2b64(0x1c1)]['id'];setTimeout(()=>{var _0x4add76=_0x1a2b64;this['_commandService'][_0x4add76(0x171)](_0x26f0a8['id'],{'unitId':_0x48cff6,'subUnitId':_0x502ac1},{'fromCollab':!0x0});});}}}[_0x3eff67(0x18e)](){var _0x2defe3=_0x3eff67;this['_status$'][_0x2defe3(0x1a6)](_0x2defe3(0x198));const _0x3a2133=new Map(),_0x4a9484=this[_0x2defe3(0x16f)]=new _0x523026();_0x4a9484[_0x2defe3(0x157)](_0x1c3b80(()=>{var _0x420e6a=_0x2defe3;_0x3a2133[_0x420e6a(0x1d6)](_0x9c3fd8=>_0x9c3fd8[_0x420e6a(0x1a5)]()),_0x3a2133[_0x420e6a(0x1b4)]();})),_0x4a9484[_0x2defe3(0x157)](this[_0x2defe3(0x1c7)][_0x2defe3(0x16e)](_0x4d1379=>{var _0x535916=_0x2defe3,_0x290b4b;if(_0x4d1379[_0x535916(0x1c0)]!==_0x142835[_0x535916(0x162)]||!this[_0x535916(0x1ef)]['shouldShareOperation'](_0x4d1379['id']))return;const {id:_0x2b469c}=_0x4d1379;let _0x41051b;_0x3a2133[_0x535916(0x1db)](_0x2b469c)?_0x41051b=_0x3a2133['get'](_0x2b469c):(_0x41051b=new _0x3d88fa(),_0x3a2133[_0x535916(0x1be)](_0x2b469c,_0x41051b),_0x41051b[_0x535916(0x1cb)](_0x2882f6((_0x290b4b=this[_0x535916(0x1a8)][_0x535916(0x1a1)](Pe))!=null?_0x290b4b:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x535916(0x1fe)](_0x3c43d5=>{var _0x4dd041=_0x535916;this[_0x4dd041(0x197)]['send']({'eventID':_0x22777c[_0x4dd041(0x19c)],'data':{'unitID':this[_0x4dd041(0x172)],'operations':{[_0x3c43d5['id']]:{'id':_0x3c43d5['id'],'params':JSON['stringify'](_0x3c43d5[_0x4dd041(0x18f)])}}}},this[_0x4dd041(0x172)]);})),_0x41051b[_0x535916(0x1a6)](_0x4d1379);})),this['_liveShareService'][_0x2defe3(0x1e4)](this['_unitID'])[_0x2defe3(0x1d6)](_0x3ed3c6=>this['_collabSession'][_0x2defe3(0x1dc)]({'eventID':_0x22777c[_0x2defe3(0x19c)],'data':{'unitID':this[_0x2defe3(0x172)],'operations':{[_0x3ed3c6['id']]:{'id':_0x3ed3c6['id'],'params':JSON[_0x2defe3(0x1d8)](_0x3ed3c6[_0x2defe3(0x18f)])}}}},this[_0x2defe3(0x172)]));}[_0x3eff67(0x188)](){var _0x140c71=_0x3eff67,_0x42d3e3;this[_0x140c71(0x1ba)][_0x140c71(0x1a6)]('idle'),(_0x42d3e3=this[_0x140c71(0x16f)])==null||_0x42d3e3[_0x140c71(0x1ad)](),this[_0x140c71(0x16f)]=null;}[_0x3eff67(0x1ac)](){var _0xfe0922=_0x3eff67,_0x217c15;(_0x217c15=this['_commandDisposable'])==null||_0x217c15['dispose'](),this[_0xfe0922(0x1ba)][_0xfe0922(0x1a6)]('following');}[_0x3eff67(0x158)](){var _0x4b45fd=_0x3eff67,_0x136ec9;this['_status$'][_0x4b45fd(0x1a6)]('idle'),(_0x136ec9=this['_commandDisposable'])==null||_0x136ec9[_0x4b45fd(0x1ad)](),this[_0x4b45fd(0x16f)]=null;}[_0x3eff67(0x1e9)](){var _0x5bbd2e=_0x3eff67,_0x5ccf9c;this[_0x5bbd2e(0x1ba)][_0x5bbd2e(0x1a6)](_0x5bbd2e(0x184)),(_0x5ccf9c=this[_0x5bbd2e(0x16f)])==null||_0x5ccf9c[_0x5bbd2e(0x1ad)]();}[_0x3eff67(0x1ec)](_0x4a8318){var _0x1f2822=_0x3eff67;if(['presenting',_0x1f2822(0x184),'offline'][_0x1f2822(0x1d5)](this['_status'])||!_0x4a8318[_0x1f2822(0x203)][_0x1f2822(0x1d3)]||_0x4a8318[_0x1f2822(0x203)]['presenter']===this['_collabSession']['getMemberID']())return;this['_status']===_0x1f2822(0x163)&&this['_startFollowing']();const _0x3192f4=_0x4a8318[_0x1f2822(0x203)][_0x1f2822(0x18d)];Object[_0x1f2822(0x176)](_0x3192f4)[_0x1f2822(0x1d6)](_0x49d78c=>{var _0x36580f=_0x1f2822;this[_0x36580f(0x1c7)]['executeCommand'](_0x49d78c['id'],_0x49d78c[_0x36580f(0x18f)]?JSON[_0x36580f(0x19e)](_0x49d78c[_0x36580f(0x18f)]):null,{'fromCollab':!0x0});});}[_0x3eff67(0x15b)](){var _0x419dd4=_0x3eff67,_0x36c8f7;this[_0x419dd4(0x1ba)]['next'](_0x419dd4(0x1fc)),(_0x36c8f7=this['_commandDisposable'])==null||_0x36c8f7[_0x419dd4(0x1ad)]();}[_0x3eff67(0x165)](){var _0x5001bc=_0x3eff67;this[_0x5001bc(0x1ba)]['next']('idle'),this[_0x5001bc(0x201)]();}};C=Z([f(0x2,_0x5e7702),f(0x3,_0x409218(L)),f(0x4,_0x5ab311)],C);function Te(){var _0x1a9ba1=_0x3eff67;const _0x3b132a=_0x5cd417(I),_0x3ae74e=_0x5cd417(_0x55c1e4),_0x3ba848=_0x1dad95(()=>_0x3ae74e[_0x1a9ba1(0x194)](_0x19162e[_0x1a9ba1(0x1bd)]),void 0x0,!0x1,[]),[_0x30ea57,_0x19be99]=_0x324aa9(null),[_0x8cc31b,_0x4ba61d]=_0x324aa9(h[_0x1a9ba1(0x196)]),_0x160789=_0x1653ac(null);return _0x23e425(()=>(_0x3ba848&&_0x3b132a['getLiveShareCoordinator'](_0x3ba848[_0x1a9ba1(0x189)]())[_0x1a9ba1(0x180)](_0x368430=>{var _0x1dc4b8=_0x1a9ba1;_0x19be99(_0x368430),_0x160789['current']=_0x368430[_0x1dc4b8(0x1af)][_0x1dc4b8(0x1fe)](_0x1eae66=>{_0x4ba61d(_0x1eae66);});}),()=>{var _0x57b4a8=_0x1a9ba1,_0x2bfd26;(_0x2bfd26=_0x160789[_0x57b4a8(0x1f5)])==null||_0x2bfd26['unsubscribe'](),_0x160789[_0x57b4a8(0x1f5)]=null;}),[_0x3ba848,_0x3b132a]),_0x30ea57?_0x1fcf7b(_0x15741b,{'align':_0x1a9ba1(0x1df),'disabled':_0x8cc31b===h[_0x1a9ba1(0x1c2)],'className':_0x1a9ba1(0x16d),'overlay':_0x1fcf7b($e,{'status':_0x8cc31b,'coordinator':_0x30ea57}),'children':_0x1fcf7b(_0x1a9ba1(0x17d),{'className':_0x144952('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x8cc31b===h[_0x1a9ba1(0x1c2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x8cc31b!==h[_0x1a9ba1(0x1c2)]}),'type':'button','children':_0x1fcf7b(B,{'className':_0x1a9ba1(0x1c3)})})}):null;}function $e(_0x42cc85){var _0x3e2a86=_0x3eff67;const {status:_0x20e27f,coordinator:_0x2eb42f}=_0x42cc85;switch(_0x20e27f){case h[_0x3e2a86(0x196)]:return _0x1fcf7b(Fe,{'coordinator':_0x2eb42f});case h[_0x3e2a86(0x177)]:return _0x1fcf7b(He,{'coordinator':_0x2eb42f});case h[_0x3e2a86(0x1f4)]:return _0x1fcf7b(je,{'coordinator':_0x2eb42f});case h[_0x3e2a86(0x1c2)]:return _0x1fcf7b(Ve,{});case h['PRESENTING']:return _0x1fcf7b(Ue,{'coordinator':_0x2eb42f});default:return null;}}function Fe(_0x58fe9b){var _0x36edee=_0x3eff67;const {coordinator:_0x350c92}=_0x58fe9b;return _0xdfee60(_0x378d55,{'children':[_0x1fcf7b('div',{'className':_0x36edee(0x16c),'children':'Present\x20this\x20document'}),_0x1fcf7b(_0x360a74,{'onClick':()=>_0x350c92[_0x36edee(0x173)](),'children':_0x36edee(0x1f3)})]});}function He(_0x4418a3){var _0x451541=_0x3eff67;const {coordinator:_0x2848d1}=_0x4418a3;return _0xdfee60(_0x378d55,{'children':[_0x1fcf7b(_0x451541(0x1d7),{'className':_0x451541(0x16c),'children':_0x451541(0x1bb)}),_0x1fcf7b(_0x360a74,{'onClick':()=>_0x2848d1['stopFollowing'](),'children':_0x451541(0x1e6)})]});}function je(_0x14ff33){var _0x48dd37=_0x3eff67;const {coordinator:_0x1d91a8}=_0x14ff33;return _0xdfee60(_0x378d55,{'children':[_0x1fcf7b(_0x48dd37(0x1d7),{'className':_0x48dd37(0x16c),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x1fcf7b(_0x360a74,{'variant':_0x48dd37(0x178),'onClick':()=>_0x1d91a8[_0x48dd37(0x1bf)](),'children':_0x48dd37(0x1cc)})]});}function Ue(_0x31539b){var _0x32c938=_0x3eff67;const {coordinator:_0x44b13e}=_0x31539b;return _0xdfee60(_0x378d55,{'children':[_0x1fcf7b('div',{'className':_0x32c938(0x16c),'children':_0x32c938(0x179)}),_0x1fcf7b(_0x360a74,{'variant':_0x32c938(0x17c),'onClick':()=>_0x44b13e[_0x32c938(0x161)](),'children':_0x32c938(0x167)})]});}function Ve(){return _0x1fcf7b(_0x378d55,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x3eff67(0x1d2)],ke=(_0x591f41,_0x56a2af,_0x6d7a9e,_0x1e45d8)=>{var _0x40b3c8=_0x3eff67;for(var _0x3cc535=_0x1e45d8>0x1?void 0x0:_0x1e45d8?Me(_0x56a2af,_0x6d7a9e):_0x56a2af,_0x17e719=_0x591f41[_0x40b3c8(0x1a3)]-0x1,_0x302d04;_0x17e719>=0x0;_0x17e719--)(_0x302d04=_0x591f41[_0x17e719])&&(_0x3cc535=_0x302d04(_0x3cc535)||_0x3cc535);return _0x3cc535;},$=(_0x528a6b,_0x1b023d)=>(_0x167401,_0x34e924)=>_0x1b023d(_0x167401,_0x34e924,_0x528a6b);let b=class extends _0x41e790{constructor(_0x4cf3b3,_0x2c7820){var _0x187063=_0x3eff67;super(),this['_injector']=_0x4cf3b3,this[_0x187063(0x1bc)]=_0x2c7820,this[_0x187063(0x1b0)]();}[_0x3eff67(0x1b0)](){var _0x5cfccd=_0x3eff67;this[_0x5cfccd(0x1e3)](this['_uiPartsService']['registerComponent'](_0x5ad5f4['HEADER_MENU'],()=>_0x2f61ae(Te,this[_0x5cfccd(0x193)])));}};b=ke([$(0x0,_0x409218(_0x2813f3)),$(0x1,_0x54c0ed)],b);var Ge=Object[_0x3eff67(0x166)],We=Object[_0x3eff67(0x1d2)],Ye=(_0x2d3c93,_0x2d0f37,_0xed73d8)=>_0x2d0f37 in _0x2d3c93?Ge(_0x2d3c93,_0x2d0f37,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xed73d8}):_0x2d3c93[_0x2d0f37]=_0xed73d8,Be=(_0x2510d4,_0x5108c4,_0x1f2dda,_0x35cac2)=>{var _0x2796c2=_0x3eff67;for(var _0x1e14c7=_0x35cac2>0x1?void 0x0:_0x35cac2?We(_0x5108c4,_0x1f2dda):_0x5108c4,_0x2d6a8f=_0x2510d4[_0x2796c2(0x1a3)]-0x1,_0x4ea412;_0x2d6a8f>=0x0;_0x2d6a8f--)(_0x4ea412=_0x2510d4[_0x2d6a8f])&&(_0x1e14c7=_0x4ea412(_0x1e14c7)||_0x1e14c7);return _0x1e14c7;},F=(_0x3170f7,_0x196345)=>(_0x23984f,_0xf54b04)=>_0x196345(_0x23984f,_0xf54b04,_0x3170f7),J=(_0x3f08c7,_0x64f2e4,_0x2b7759)=>Ye(_0x3f08c7,typeof _0x64f2e4!='symbol'?_0x64f2e4+'':_0x64f2e4,_0x2b7759);const Ze=_0x3eff67(0x190);let O=class extends _0x2dc758{constructor(_0x5d9f77=T,_0x2422bb,_0x499dba){var _0x34ffad=_0x3eff67;super(),this['_config']=_0x5d9f77,this['_injector']=_0x2422bb,this[_0x34ffad(0x1a8)]=_0x499dba;const {..._0x14266a}=_0x4268e8({},T,this[_0x34ffad(0x175)]);this[_0x34ffad(0x1a8)][_0x34ffad(0x1aa)](Oe,_0x14266a);}[_0x3eff67(0x1b5)](){var _0x3ba933=_0x3eff67;_0x323506(this[_0x3ba933(0x193)],_0x263d4d([[L],[I],[m],[b]],this['_config'][_0x3ba933(0x1a7)])),_0x29f66d(this['_injector'],[[m]]);}['onRendered'](){var _0x16cccf=_0x3eff67;_0x29f66d(this[_0x16cccf(0x193)],[[b]]);}};function _0x31ab(_0x214011,_0x46be5e){var _0x1f462f=_0x1f46();return _0x31ab=function(_0x31ab44,_0x418f67){_0x31ab44=_0x31ab44-0x157;var _0x1926e7=_0x1f462f[_0x31ab44];return _0x1926e7;},_0x31ab(_0x214011,_0x46be5e);}J(O,'type',_0x19162e['UNIVER_UNKNOWN']),J(O,_0x3eff67(0x169),Ze),O=Be([_0x1c0dec(_0x10ce60),F(0x1,_0x409218(_0x2813f3)),F(0x2,_0x5e7702)],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 _0x20f48d=_0x39bb;(function(_0x2c2ed3,_0x4cc686){var _0x3fec1a=_0x39bb,_0x93ac42=_0x2c2ed3();while(!![]){try{var _0x368a15=-parseInt(_0x3fec1a(0x14e))/0x1*(parseInt(_0x3fec1a(0x153))/0x2)+-parseInt(_0x3fec1a(0xe4))/0x3*(parseInt(_0x3fec1a(0x131))/0x4)+-parseInt(_0x3fec1a(0xfa))/0x5+parseInt(_0x3fec1a(0x10f))/0x6*(parseInt(_0x3fec1a(0xda))/0x7)+-parseInt(_0x3fec1a(0x13f))/0x8*(parseInt(_0x3fec1a(0x15b))/0x9)+parseInt(_0x3fec1a(0xfc))/0xa+parseInt(_0x3fec1a(0x160))/0xb*(parseInt(_0x3fec1a(0x16a))/0xc);if(_0x368a15===_0x4cc686)break;else _0x93ac42['push'](_0x93ac42['shift']());}catch(_0x5bb1a1){_0x93ac42['push'](_0x93ac42['shift']());}}}(_0x1354,0x98d78));var q=Object[_0x20f48d(0x122)],z=(_0x5a6317,_0x42ce78,_0x14d706)=>_0x42ce78 in _0x5a6317?q(_0x5a6317,_0x42ce78,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14d706}):_0x5a6317[_0x42ce78]=_0x14d706,d=(_0x33db0b,_0x3fe3d6,_0x1a9268)=>z(_0x33db0b,typeof _0x3fe3d6!=_0x20f48d(0xf1)?_0x3fe3d6+'':_0x3fe3d6,_0x1a9268);import{CollaborationSessionService as _0xc5bf75,SessionStatus as _0x7c9eda,UniverCollaborationClientPlugin as _0x2d4e6e}from'@univerjs-pro/collaboration-client';import{Disposable as _0x1a511f,toDisposable as _0x3f3e9d,Inject as _0x5e6b53,IUniverInstanceService as _0x10d7b1,Injector as _0x25d4db,IConfigService as _0x27f4d,ICommandService as _0x4bf68b,RxDisposable as _0x4aa7c3,UniverInstanceType as _0x1df0c8,DisposableCollection as _0x48f9ff,CommandType as _0x39bd65,DependentOn as _0x1a4ce7,Plugin as _0x5c6f5f,merge as _0x1b809b,registerDependencies as _0x1d9d68,mergeOverrideWithDependencies as _0x1c6ef3,touchDependencies as _0x4e8b78}from'@univerjs/core';function _0x1354(){var _0x193eb8=['getOwnPropertySymbols','delete','add','LIVESHARE_REQUEST_HOST','3822qvuYSI','mask','Start\x20following','icon','Present\x20this\x20document','trim','onStarting','toString','presenter','pluginName','string','getMemberID','default','_startFollowing','UNIVER_LIVE_SHARE_PLUGIN','univer-mb-3\x20univer-w-full\x20univer-text-sm','You\x27are\x20offline.','currentColor','shouldShareOperation','defineProperty','OFFLINE','sessionStatus$','idle','mutations','_configService','getTypeOfUnitAdded$','sheet','pipe','function','set','disposeWithMe','requireSession','getCurrentTypeOfUnit$','_liveShareService','22508DkZXBX','event$','div','getTypeOfUnitDisposed$','_mountLiveShare','replace','HEADER_MENU','executeCommand','getConfig','colorChannel1','_entities','path','get','IDLE','3325032VliWIt','memberID','ONLINE','offline','reverse','_univerInstanceService','_startLiveShareCoordinator','getUnitId','entries','not-following','data','FOLLOWING','indexOf','startFollowing','forEach','1096319BgspSD','complete','_handleOperation','_commandDisposable','idSuffix','2XeScrb','1em','following','children','defs','extend','_handleTerminate','getInitialStates','27GdMIPB','tryStartPresenting','registerSharedOperation','substring','_sharedOperations','11NvWjpe','random','unsubscribe','_stopPresenting','_config','_status','_uiPartsService','then','You\x27re\x20not\x20following\x20the\x20presenter','text','42252636MBuIPn','_beIdle','LIVESHARE_OPERATION','presenting','_handleOffline','status$','stopPresenting','values','clear','displayName','_handleNewChangeSets','_fetchOperations','button','use','_collabSessionService','You\x27re\x20following\x20the\x20presenter','xlink:href','PRESENTING','0\x200\x2017\x2017','_injector','NEW_CHANGESETS','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','prototype','UNIVER_SHEET','univer-size-4','send','propertyIsEnumerable','onRendered','stopFollowing','apply','getLiveShareCoordinator','subscribe','map','init','call','Start','defIds','stringify','registerInitialStateReporter','9548uqyBEd','length','attrs','current','live-share.config','_reporters','unitId','_status$','_init','tag','597nRqtBa','includes','SAME_OPERATION_SHARE_INTERVAL','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','hasOwnProperty','LIVESHARE_NEW_HOST','has','_stopFollowing','onCommandExecuted','type','className','LIVESHARE_TERMINATE','symbol','_commandService','_unitID','fill','dispose','LiveShareIcon','evenodd','dispose$','assign','2851440mbZLZW','_collabSession','2693860fzOzxd','http://www.w3.org/2000/svg','_handleNewHost','params','concat','getOwnPropertyDescriptor','_startPresenting','_handleOnline','_presenter','end','url(#$1','createInstance','UNIVER_UNKNOWN','next','registerComponent'];_0x1354=function(){return _0x193eb8;};return _0x1354();}import{SetWorksheetActiveOperation as _0x30ebd3,InsertSheetMutation as _0x3e383d}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x2686c8,SetScrollOperation as _0x15ddba}from'@univerjs/sheets-ui';import{useDependency as _0x2713b0,useObservable as _0x1d60ce,IUIPartsService as _0xe05b9c,BuiltInUIPart as _0x22f3b6,connectInjector as _0x123b5d}from'@univerjs/ui';import{jsx as _0x591b4e,jsxs as _0xf95584,Fragment as _0xb7edf3}from'react/jsx-runtime';import{Dropdown as _0x3a1168,clsx as _0x25609c,Button as _0x3b8bcf}from'@univerjs/design';function _0x39bb(_0x58224d,_0x8a8988){var _0x13544a=_0x1354();return _0x39bb=function(_0x39bb79,_0x2af241){_0x39bb79=_0x39bb79-0xbf;var _0x19cce5=_0x13544a[_0x39bb79];return _0x19cce5;},_0x39bb(_0x58224d,_0x8a8988);}import{forwardRef as _0x11114f,useRef as _0x5991aa,createElement as _0x3f4386,useState as _0x5e8cb1,useEffect as _0x613455}from'react';import{CollaborationEvent as _0x18a2fa,parseProtocolChangeset as _0x585eb4}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0xd52750,Subject as _0x127c60}from'rxjs';import{takeUntil as _0xc6f40a,throttleTime as _0x34d54c}from'rxjs/operators';const Oe=_0x20f48d(0xde),T={};class L extends _0x1a511f{constructor(){var _0x16e71b=_0x20f48d;super(...arguments),d(this,_0x16e71b(0x15f),new Set()),d(this,_0x16e71b(0xdf),new Set());}['registerSharedOperation'](_0x5abf48){var _0x561a43=_0x20f48d;return this[_0x561a43(0x15f)][_0x561a43(0x10d)](_0x5abf48),_0x3f3e9d(()=>this[_0x561a43(0x15f)][_0x561a43(0x10c)](_0x5abf48));}[_0x20f48d(0xd9)](_0x248586){var _0x3b4578=_0x20f48d;return this[_0x3b4578(0xdf)][_0x3b4578(0x10d)](_0x248586),_0x3f3e9d(()=>this[_0x3b4578(0xdf)][_0x3b4578(0x10c)](_0x248586));}['shouldShareOperation'](_0x576407){var _0x4cd022=_0x20f48d;return this['_sharedOperations'][_0x4cd022(0xeb)](_0x576407);}[_0x20f48d(0x15a)](_0x3d2644){var _0x3a25f0=_0x20f48d;return Array['from'](this[_0x3a25f0(0xdf)])[_0x3a25f0(0xd3)](_0x59d816=>_0x59d816(_0x3d2644));}}var Ee=Object[_0x20f48d(0x101)],we=(_0x391951,_0x129d60,_0x417ef3,_0x3bbed2)=>{var _0xc20129=_0x20f48d;for(var _0x284266=_0x3bbed2>0x1?void 0x0:_0x3bbed2?Ee(_0x129d60,_0x417ef3):_0x129d60,_0x4a4069=_0x391951[_0xc20129(0xdb)]-0x1,_0x58d83b;_0x4a4069>=0x0;_0x4a4069--)(_0x58d83b=_0x391951[_0x4a4069])&&(_0x284266=_0x58d83b(_0x284266)||_0x284266);return _0x284266;},Ne=(_0x27cc41,_0x37a93a)=>(_0x51a5aa,_0x5f5dc8)=>_0x37a93a(_0x51a5aa,_0x5f5dc8,_0x27cc41);let m=class extends _0x1a511f{constructor(_0x5c72e2){var _0x3efb33=_0x20f48d;super(),this[_0x3efb33(0x130)]=_0x5c72e2,this[_0x3efb33(0xe2)]();}['_init'](){var _0x253745=_0x20f48d;[_0x2686c8['id'],_0x15ddba['id'],_0x30ebd3['id']][_0x253745(0x14d)](_0x34b4ee=>{var _0x13e36c=_0x253745;this[_0x13e36c(0x12d)](this[_0x13e36c(0x130)][_0x13e36c(0x15d)](_0x34b4ee));});}};m=we([Ne(0x0,_0x5e6b53(L))],m);var c=function(){var _0x32987f=_0x20f48d;return c=Object[_0x32987f(0xf9)]||function(_0x5ea257){var _0x1dda28=_0x32987f;for(var _0x4f84b5,_0x16f4a2=0x1,_0x465a70=arguments[_0x1dda28(0xdb)];_0x16f4a2<_0x465a70;_0x16f4a2++){_0x4f84b5=arguments[_0x16f4a2];for(var _0xb9a3ce in _0x4f84b5)Object[_0x1dda28(0xc9)][_0x1dda28(0xe9)][_0x1dda28(0xd5)](_0x4f84b5,_0xb9a3ce)&&(_0x5ea257[_0xb9a3ce]=_0x4f84b5[_0xb9a3ce]);}return _0x5ea257;},c[_0x32987f(0xd0)](this,arguments);},Ce=function(_0x10fc2d,_0x532d5a){var _0x312b0e=_0x20f48d,_0x126207={};for(var _0x2da836 in _0x10fc2d)Object[_0x312b0e(0xc9)][_0x312b0e(0xe9)][_0x312b0e(0xd5)](_0x10fc2d,_0x2da836)&&_0x532d5a[_0x312b0e(0x14b)](_0x2da836)<0x0&&(_0x126207[_0x2da836]=_0x10fc2d[_0x2da836]);if(_0x10fc2d!=null&&typeof Object[_0x312b0e(0x10b)]==_0x312b0e(0x12b)){for(var _0x17929f=0x0,_0x2da836=Object['getOwnPropertySymbols'](_0x10fc2d);_0x17929f<_0x2da836[_0x312b0e(0xdb)];_0x17929f++)_0x532d5a[_0x312b0e(0x14b)](_0x2da836[_0x17929f])<0x0&&Object['prototype'][_0x312b0e(0xcd)][_0x312b0e(0xd5)](_0x10fc2d,_0x2da836[_0x17929f])&&(_0x126207[_0x2da836[_0x17929f]]=_0x10fc2d[_0x2da836[_0x17929f]]);}return _0x126207;},W=_0x11114f(function(_0x48085e,_0x138cf8){var _0x4cb002=_0x20f48d,_0xff3a=_0x48085e['icon'],_0x58397f=_0x48085e['id'],_0x2d9278=_0x48085e[_0x4cb002(0xef)],_0x4783b6=_0x48085e[_0x4cb002(0x158)],_0x61ae00=Ce(_0x48085e,[_0x4cb002(0x112),'id','className',_0x4cb002(0x158)]),_0x586eda='univerjs-icon\x20univerjs-icon-'[_0x4cb002(0x100)](_0x58397f,'\x20')[_0x4cb002(0x100)](_0x2d9278||'')[_0x4cb002(0x114)](),_0xaf7d55=_0x5991aa('_'['concat'](Le()));return Y(_0xff3a,''['concat'](_0x58397f),{'defIds':_0xff3a[_0x4cb002(0xd7)],'idSuffix':_0xaf7d55['current']},c({'ref':_0x138cf8,'className':_0x586eda},_0x61ae00),_0x4783b6);});function Y(_0x1aa5ea,_0x499209,_0x5dec01,_0x1f6278,_0x4e4d66){var _0x1626d8=_0x20f48d;return _0x3f4386(_0x1aa5ea['tag'],c(c({'key':_0x499209},De(_0x1aa5ea,_0x5dec01,_0x4e4d66)),_0x1f6278),(xe(_0x1aa5ea,_0x5dec01)[_0x1626d8(0x156)]||[])[_0x1626d8(0xd3)](function(_0x560e67,_0x1a6182){var _0x498a95=_0x1626d8;return Y(_0x560e67,''[_0x498a95(0x100)](_0x499209,'-')['concat'](_0x1aa5ea[_0x498a95(0xe3)],'-')[_0x498a95(0x100)](_0x1a6182),_0x5dec01,void 0x0,_0x4e4d66);}));}function De(_0x3ebdf1,_0x3cc285,_0xade262){var _0x583d8d=_0x20f48d,_0x5c752b=c({},_0x3ebdf1[_0x583d8d(0xdc)]);_0xade262!=null&&_0xade262[_0x583d8d(0x13a)]&&_0x5c752b[_0x583d8d(0xf4)]===_0x583d8d(0x13a)&&(_0x5c752b[_0x583d8d(0xf4)]=_0xade262[_0x583d8d(0x13a)]),_0x3ebdf1[_0x583d8d(0xe3)]===_0x583d8d(0x110)&&_0x5c752b['id']&&(_0x5c752b['id']=_0x5c752b['id']+_0x3cc285[_0x583d8d(0x152)]),Object[_0x583d8d(0x147)](_0x5c752b)[_0x583d8d(0x14d)](function(_0xa41835){var _0x59ad06=_0x583d8d,_0x40322d=_0xa41835[0x0],_0x42f436=_0xa41835[0x1];_0x40322d==='mask'&&typeof _0x42f436==_0x59ad06(0x119)&&(_0x5c752b[_0x40322d]=_0x42f436[_0x59ad06(0x136)](/url\(#(.*)\)/,_0x59ad06(0x106)[_0x59ad06(0x100)](_0x3cc285[_0x59ad06(0x152)],')')));});var _0x5c70bf=_0x3cc285[_0x583d8d(0xd7)];return!_0x5c70bf||_0x5c70bf['length']===0x0||(_0x3ebdf1[_0x583d8d(0xe3)]===_0x583d8d(0xc0)&&_0x5c752b['xlink:href']&&(_0x5c752b[_0x583d8d(0xc3)]=_0x5c752b[_0x583d8d(0xc3)]+_0x3cc285['idSuffix']),Object[_0x583d8d(0x147)](_0x5c752b)[_0x583d8d(0x14d)](function(_0x8460c7){var _0x165fd7=_0x583d8d,_0x5488b6=_0x8460c7[0x0],_0x51c173=_0x8460c7[0x1];typeof _0x51c173=='string'&&(_0x5c752b[_0x5488b6]=_0x51c173['replace'](/url\(#(.*)\)/,'url(#$1'[_0x165fd7(0x100)](_0x3cc285[_0x165fd7(0x152)],')')));})),_0x5c752b;}function xe(_0x230754,_0x2da33b){var _0x2fa412=_0x20f48d,_0x5be48b,_0x49f6c1=_0x2da33b[_0x2fa412(0xd7)];return!_0x49f6c1||_0x49f6c1['length']===0x0?_0x230754:_0x230754[_0x2fa412(0xe3)]===_0x2fa412(0x157)&&(!((_0x5be48b=_0x230754[_0x2fa412(0x156)])===null||_0x5be48b===void 0x0)&&_0x5be48b[_0x2fa412(0xdb)])?c(c({},_0x230754),{'children':_0x230754[_0x2fa412(0x156)][_0x2fa412(0xd3)](function(_0x5b1f6b){var _0x33d8a6=_0x2fa412;return typeof _0x5b1f6b[_0x33d8a6(0xdc)]['id']==_0x33d8a6(0x119)&&_0x49f6c1&&_0x49f6c1[_0x33d8a6(0xe5)](_0x5b1f6b[_0x33d8a6(0xdc)]['id'])?c(c({},_0x5b1f6b),{'attrs':c(c({},_0x5b1f6b[_0x33d8a6(0xdc)]),{'id':_0x5b1f6b['attrs']['id']+_0x2da33b[_0x33d8a6(0x152)]})}):_0x5b1f6b;})}):_0x230754;}function Le(){var _0xfe5172=_0x20f48d;return Math[_0xfe5172(0x161)]()[_0xfe5172(0x116)](0x24)[_0xfe5172(0x15e)](0x2,0x8);}W[_0x20f48d(0x173)]='UniverIcon';var ye={'tag':'svg','attrs':{'xmlns':_0x20f48d(0xfd),'fill':'none','viewBox':_0x20f48d(0xc5),'width':_0x20f48d(0x154),'height':_0x20f48d(0x154)},'children':[{'tag':'path','attrs':{'fill':_0x20f48d(0x120),'d':_0x20f48d(0xe7)}},{'tag':_0x20f48d(0x13c),'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':_0x20f48d(0xf7),'clipRule':'evenodd'}}]},B=_0x11114f(function(_0xd0a02f,_0x2d7153){var _0x5e4663=_0x20f48d;return _0x3f4386(W,Object[_0x5e4663(0xf9)]({},_0xd0a02f,{'id':'live-share-icon','ref':_0x2d7153,'icon':ye}));});B[_0x20f48d(0x173)]=_0x20f48d(0xf6);var Re=Object[_0x20f48d(0x101)],Z=(_0x2daa00,_0x508644,_0x38e735,_0x2fb5bd)=>{for(var _0xe27228=_0x2fb5bd>0x1?void 0x0:_0x2fb5bd?Re(_0x508644,_0x38e735):_0x508644,_0x21afd2=_0x2daa00['length']-0x1,_0x42809d;_0x21afd2>=0x0;_0x21afd2--)(_0x42809d=_0x2daa00[_0x21afd2])&&(_0xe27228=_0x42809d(_0xe27228)||_0xe27228);return _0xe27228;},f=(_0x3194ec,_0x1f7372)=>(_0x2b2128,_0x4d7cd6)=>_0x1f7372(_0x2b2128,_0x4d7cd6,_0x3194ec);let I=class extends _0x4aa7c3{constructor(_0x48d520,_0xb09bbc,_0x3d90ba){var _0xc18116=_0x20f48d;super(),d(this,'_entities',new Map()),(this[_0xc18116(0x144)]=_0x48d520,this[_0xc18116(0xc6)]=_0xb09bbc,this[_0xc18116(0xc1)]=_0x3d90ba,this[_0xc18116(0xe2)]());}async[_0x20f48d(0xd1)](_0x58de9f){var _0x183613=_0x20f48d;return this[_0x183613(0x13b)][_0x183613(0xeb)](_0x58de9f)||await this[_0x183613(0x145)](_0x58de9f),this[_0x183613(0x13b)]['get'](_0x58de9f);}['_init'](){var _0x4a2baa=_0x20f48d;this[_0x4a2baa(0x144)][_0x4a2baa(0x128)](_0x1df0c8[_0x4a2baa(0xca)])[_0x4a2baa(0x12a)](_0xc6f40a(this[_0x4a2baa(0xf8)]))[_0x4a2baa(0xd2)](async _0x3dd5b2=>{var _0x1b839b=_0x4a2baa;const _0x58086a=_0x3dd5b2['getUnitId']();this[_0x1b839b(0x13b)][_0x1b839b(0xeb)](_0x58086a)||this[_0x1b839b(0x145)](_0x58086a);}),this[_0x4a2baa(0x144)][_0x4a2baa(0x134)](_0x1df0c8[_0x4a2baa(0xca)])[_0x4a2baa(0x12a)](_0xc6f40a(this['dispose$']))[_0x4a2baa(0xd2)](_0x12bc9a=>{var _0x41fc05=_0x4a2baa;const _0x70ebec=_0x12bc9a[_0x41fc05(0x146)](),_0x1aae01=this[_0x41fc05(0x13b)]['get'](_0x70ebec);_0x1aae01==null||_0x1aae01[_0x41fc05(0xf5)]();});}async['_startLiveShareCoordinator'](_0x5c4a12){var _0x3cca2=_0x20f48d;const _0x43f3a1=await this['_collabSessionService'][_0x3cca2(0x12e)](_0x5c4a12),_0x35cc71=this[_0x3cca2(0xc6)][_0x3cca2(0x107)](C,_0x5c4a12,_0x43f3a1);return _0x35cc71[_0x3cca2(0xd4)](),this[_0x3cca2(0x13b)][_0x3cca2(0x12c)](_0x5c4a12,_0x35cc71),_0x35cc71;}};I=Z([f(0x0,_0x10d7b1),f(0x1,_0x5e6b53(_0x25d4db)),f(0x2,_0x5e6b53(_0xc5bf75))],I);var h=(_0x149a58=>(_0x149a58[_0x20f48d(0x123)]=_0x20f48d(0x142),_0x149a58[_0x20f48d(0x13e)]=_0x20f48d(0x125),_0x149a58[_0x20f48d(0x14a)]='following',_0x149a58['NOT_FOLLOWING']=_0x20f48d(0x148),_0x149a58[_0x20f48d(0xc4)]=_0x20f48d(0x16d),_0x149a58))(h||{});const Pe=_0x20f48d(0xe6),Ae=0xc8;let C=class extends _0x4aa7c3{constructor(_0x21c6dc,_0x1aa65a,_0x19fcf3,_0x9bf42f,_0x6c312d){var _0x24e1a3=_0x20f48d;super(),d(this,_0x24e1a3(0xe1),new _0xd52750(_0x24e1a3(0x125))),d(this,'status$',this[_0x24e1a3(0xe1)]['asObservable']()),d(this,_0x24e1a3(0xe2),!0x1),d(this,_0x24e1a3(0x151),null),d(this,'_presenter',null),(this['_unitID']=_0x21c6dc,this['_collabSession']=_0x1aa65a,this['_configService']=_0x19fcf3,this[_0x24e1a3(0x130)]=_0x9bf42f,this[_0x24e1a3(0xf2)]=_0x6c312d);}get[_0x20f48d(0x165)](){var _0x145d52=_0x20f48d;return this[_0x145d52(0xe1)]['getValue']();}['dispose'](){var _0x2d6852=_0x20f48d,_0x33e68e;(_0x33e68e=this['_commandDisposable'])==null||_0x33e68e[_0x2d6852(0xf5)](),this['_status$'][_0x2d6852(0x109)](_0x2d6852(0x125)),this[_0x2d6852(0xe1)][_0x2d6852(0x14f)]();}[_0x20f48d(0xd4)](){var _0x181658=_0x20f48d;this[_0x181658(0xe2)]||(this[_0x181658(0xe2)]=!0x0,this[_0x181658(0xfb)][_0x181658(0x124)][_0x181658(0x12a)](_0xc6f40a(this[_0x181658(0xf8)]))[_0x181658(0xd2)](_0x126922=>{var _0x5ba407=_0x181658;switch(_0x126922){case _0x7c9eda[_0x5ba407(0x123)]:this[_0x5ba407(0x16e)]();break;case _0x7c9eda[_0x5ba407(0x141)]:this[_0x5ba407(0x103)]();break;}}),this['_collabSession'][_0x181658(0x132)][_0x181658(0x12a)](_0xc6f40a(this[_0x181658(0xf8)]))[_0x181658(0xd2)](_0x73fbaa=>{var _0x6da9e7=_0x181658;const {eventID:_0x33fe2a}=_0x73fbaa;switch(_0x33fe2a){case _0x18a2fa[_0x6da9e7(0xea)]:this[_0x6da9e7(0xfe)](_0x73fbaa);break;case _0x18a2fa['LIVESHARE_OPERATION']:this['_handleOperation'](_0x73fbaa);break;case _0x18a2fa[_0x6da9e7(0xf0)]:this[_0x6da9e7(0x159)]();break;case _0x18a2fa[_0x6da9e7(0xc7)]:this[_0x6da9e7(0x174)](_0x73fbaa);break;}}));}[_0x20f48d(0x15c)](){var _0xa7feb9=_0x20f48d;this[_0xa7feb9(0xfb)][_0xa7feb9(0xcc)]({'eventID':_0x18a2fa[_0xa7feb9(0x10e)],'data':{'unitID':this[_0xa7feb9(0xf3)],'userID':this[_0xa7feb9(0xfb)]['getMemberID']()}},this[_0xa7feb9(0xf3)]);}[_0x20f48d(0x170)](){var _0x2a5616=_0x20f48d;this['_status']===_0x2a5616(0x16d)&&(this['_status$']['next'](_0x2a5616(0x125)),this[_0x2a5616(0xfb)]['send']({'eventID':_0x18a2fa['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x2a5616(0xf3)]}},this[_0x2a5616(0xf3)]));}['startFollowing'](){var _0x106373=_0x20f48d;this[_0x106373(0x165)]==='not-following'&&(this[_0x106373(0xe1)]['next'](_0x106373(0x155)),this[_0x106373(0x11c)]());}[_0x20f48d(0xcf)](){var _0x617ad6=_0x20f48d;this[_0x617ad6(0x165)]==='following'&&this[_0x617ad6(0xec)]();}[_0x20f48d(0xfe)](_0x27b3f4){var _0x232fe9=_0x20f48d;const {presenter:_0x278bf3}=_0x27b3f4[_0x232fe9(0x149)],_0x4e497e=this[_0x232fe9(0xfb)][_0x232fe9(0x11a)]();this[_0x232fe9(0x104)]=_0x278bf3,_0x278bf3===_0x4e497e?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x232fe9(0x165)]!=='not-following'&&(this['_stopPresenting'](),this[_0x232fe9(0x11c)]());}[_0x20f48d(0x175)](){var _0x1ea5f2=_0x20f48d;const _0x14d822={'eventID':_0x18a2fa['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x1ea5f2(0xcc)](_0x14d822,this[_0x1ea5f2(0xf3)]);}['_handleTerminate'](){var _0x277797=_0x20f48d;this[_0x277797(0x104)]=null,this[_0x277797(0x165)]!==_0x277797(0x16d)&&this['_beIdle']();}[_0x20f48d(0x174)](_0x53c9c9){var _0x3876b0=_0x20f48d;if(this[_0x3876b0(0x165)]==='following'&&this['_presenter']===_0x53c9c9[_0x3876b0(0x149)][_0x3876b0(0x140)]){const _0x2d880f=_0x585eb4(_0x53c9c9['data'])[_0x3876b0(0x126)][_0x3876b0(0x143)]()['find'](_0x7f9915=>_0x7f9915['id']===_0x3e383d['id']);if(_0x2d880f){const _0x5dc93c=_0x2d880f['params'][_0x3876b0(0xe0)],_0x5c171c=_0x2d880f[_0x3876b0(0xff)][_0x3876b0(0x129)]['id'];setTimeout(()=>{var _0x101596=_0x3876b0;this[_0x101596(0xf2)][_0x101596(0x138)](_0x30ebd3['id'],{'unitId':_0x5dc93c,'subUnitId':_0x5c171c},{'fromCollab':!0x0});});}}}[_0x20f48d(0x102)](){var _0x107fad=_0x20f48d;this[_0x107fad(0xe1)][_0x107fad(0x109)](_0x107fad(0x16d));const _0x189c64=new Map(),_0x51dce0=this[_0x107fad(0x151)]=new _0x48f9ff();_0x51dce0['add'](_0x3f3e9d(()=>{var _0x1223dc=_0x107fad;_0x189c64['forEach'](_0x301d7d=>_0x301d7d[_0x1223dc(0x14f)]()),_0x189c64[_0x1223dc(0x172)]();})),_0x51dce0[_0x107fad(0x10d)](this[_0x107fad(0xf2)][_0x107fad(0xed)](_0x1dd1f2=>{var _0x162e69=_0x107fad,_0x1fe835;if(_0x1dd1f2[_0x162e69(0xee)]!==_0x39bd65['OPERATION']||!this[_0x162e69(0x130)][_0x162e69(0x121)](_0x1dd1f2['id']))return;const {id:_0x34e474}=_0x1dd1f2;let _0x2150e1;_0x189c64[_0x162e69(0xeb)](_0x34e474)?_0x2150e1=_0x189c64[_0x162e69(0x13d)](_0x34e474):(_0x2150e1=new _0x127c60(),_0x189c64[_0x162e69(0x12c)](_0x34e474,_0x2150e1),_0x2150e1[_0x162e69(0x12a)](_0x34d54c((_0x1fe835=this[_0x162e69(0x127)][_0x162e69(0x139)](Pe))!=null?_0x1fe835:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x162e69(0xd2)](_0x40a9f3=>{var _0x198215=_0x162e69;this[_0x198215(0xfb)]['send']({'eventID':_0x18a2fa[_0x198215(0x16c)],'data':{'unitID':this[_0x198215(0xf3)],'operations':{[_0x40a9f3['id']]:{'id':_0x40a9f3['id'],'params':JSON[_0x198215(0xd8)](_0x40a9f3['params'])}}}},this[_0x198215(0xf3)]);})),_0x2150e1[_0x162e69(0x109)](_0x1dd1f2);})),this[_0x107fad(0x130)][_0x107fad(0x15a)](this[_0x107fad(0xf3)])[_0x107fad(0x14d)](_0x10b4f2=>this[_0x107fad(0xfb)][_0x107fad(0xcc)]({'eventID':_0x18a2fa['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x10b4f2['id']]:{'id':_0x10b4f2['id'],'params':JSON[_0x107fad(0xd8)](_0x10b4f2[_0x107fad(0xff)])}}}},this[_0x107fad(0xf3)]));}[_0x20f48d(0x163)](){var _0x45503f=_0x20f48d,_0x59a185;this['_status$']['next'](_0x45503f(0x125)),(_0x59a185=this[_0x45503f(0x151)])==null||_0x59a185[_0x45503f(0xf5)](),this[_0x45503f(0x151)]=null;}[_0x20f48d(0x11c)](){var _0x12d4d1=_0x20f48d,_0x56d0ac;(_0x56d0ac=this[_0x12d4d1(0x151)])==null||_0x56d0ac[_0x12d4d1(0xf5)](),this['_status$']['next'](_0x12d4d1(0x155));}[_0x20f48d(0x16b)](){var _0xbb4df2=_0x20f48d,_0x7320ea;this[_0xbb4df2(0xe1)][_0xbb4df2(0x109)](_0xbb4df2(0x125)),(_0x7320ea=this['_commandDisposable'])==null||_0x7320ea[_0xbb4df2(0xf5)](),this[_0xbb4df2(0x151)]=null;}[_0x20f48d(0xec)](){var _0x91d738=_0x20f48d,_0x152b2e;this['_status$']['next'](_0x91d738(0x148)),(_0x152b2e=this['_commandDisposable'])==null||_0x152b2e[_0x91d738(0xf5)]();}[_0x20f48d(0x150)](_0x507d49){var _0x5af945=_0x20f48d;if([_0x5af945(0x16d),'not-following',_0x5af945(0x142)][_0x5af945(0xe5)](this[_0x5af945(0x165)])||!_0x507d49[_0x5af945(0x149)][_0x5af945(0x117)]||_0x507d49['data']['presenter']===this[_0x5af945(0xfb)][_0x5af945(0x11a)]())return;this[_0x5af945(0x165)]===_0x5af945(0x125)&&this['_startFollowing']();const _0x2f79b6=_0x507d49[_0x5af945(0x149)]['operations'];Object[_0x5af945(0x171)](_0x2f79b6)['forEach'](_0x5594db=>{var _0x44fab5=_0x5af945;this[_0x44fab5(0xf2)][_0x44fab5(0x138)](_0x5594db['id'],_0x5594db[_0x44fab5(0xff)]?JSON['parse'](_0x5594db['params']):null,{'fromCollab':!0x0});});}[_0x20f48d(0x16e)](){var _0x15b16c=_0x20f48d,_0x5ce6d5;this[_0x15b16c(0xe1)][_0x15b16c(0x109)](_0x15b16c(0x142)),(_0x5ce6d5=this[_0x15b16c(0x151)])==null||_0x5ce6d5[_0x15b16c(0xf5)]();}[_0x20f48d(0x103)](){var _0x3a7680=_0x20f48d;this['_status$'][_0x3a7680(0x109)](_0x3a7680(0x125)),this[_0x3a7680(0x175)]();}};C=Z([f(0x2,_0x27f4d),f(0x3,_0x5e6b53(L)),f(0x4,_0x4bf68b)],C);function Te(){var _0x2a2912=_0x20f48d;const _0x3e0e8f=_0x2713b0(I),_0x1ab237=_0x2713b0(_0x10d7b1),_0x10fea5=_0x1d60ce(()=>_0x1ab237[_0x2a2912(0x12f)](_0x1df0c8['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x13482a,_0x2b578f]=_0x5e8cb1(null),[_0x355e54,_0xac4b1c]=_0x5e8cb1(h['IDLE']),_0x36257c=_0x5991aa(null);return _0x613455(()=>(_0x10fea5&&_0x3e0e8f[_0x2a2912(0xd1)](_0x10fea5[_0x2a2912(0x146)]())[_0x2a2912(0x167)](_0x36fad5=>{var _0x559aed=_0x2a2912;_0x2b578f(_0x36fad5),_0x36257c[_0x559aed(0xdd)]=_0x36fad5[_0x559aed(0x16f)][_0x559aed(0xd2)](_0x240c49=>{_0xac4b1c(_0x240c49);});}),()=>{var _0x50398e=_0x2a2912,_0xa10712;(_0xa10712=_0x36257c[_0x50398e(0xdd)])==null||_0xa10712[_0x50398e(0x162)](),_0x36257c[_0x50398e(0xdd)]=null;}),[_0x10fea5,_0x3e0e8f]),_0x13482a?_0x591b4e(_0x3a1168,{'align':_0x2a2912(0x105),'disabled':_0x355e54===h['OFFLINE'],'className':_0x2a2912(0xe8),'overlay':_0x591b4e($e,{'status':_0x355e54,'coordinator':_0x13482a}),'children':_0x591b4e(_0x2a2912(0xbf),{'className':_0x25609c(_0x2a2912(0xc8),{'univer-cursor-not-allowed':_0x355e54===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x355e54!==h[_0x2a2912(0x123)]}),'type':'button','children':_0x591b4e(B,{'className':_0x2a2912(0xcb)})})}):null;}function $e(_0x31e430){var _0x4c70ee=_0x20f48d;const {status:_0x49a101,coordinator:_0xbc1520}=_0x31e430;switch(_0x49a101){case h[_0x4c70ee(0x13e)]:return _0x591b4e(Fe,{'coordinator':_0xbc1520});case h[_0x4c70ee(0x14a)]:return _0x591b4e(He,{'coordinator':_0xbc1520});case h['NOT_FOLLOWING']:return _0x591b4e(je,{'coordinator':_0xbc1520});case h[_0x4c70ee(0x123)]:return _0x591b4e(Ve,{});case h[_0x4c70ee(0xc4)]:return _0x591b4e(Ue,{'coordinator':_0xbc1520});default:return null;}}function Fe(_0x20c32d){var _0x37eb8e=_0x20f48d;const {coordinator:_0x3175d9}=_0x20c32d;return _0xf95584(_0xb7edf3,{'children':[_0x591b4e(_0x37eb8e(0x133),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x37eb8e(0x113)}),_0x591b4e(_0x3b8bcf,{'onClick':()=>_0x3175d9[_0x37eb8e(0x15c)](),'children':_0x37eb8e(0xd6)})]});}function He(_0x312c16){var _0xe4c6ac=_0x20f48d;const {coordinator:_0xb1b530}=_0x312c16;return _0xf95584(_0xb7edf3,{'children':[_0x591b4e('div',{'className':_0xe4c6ac(0x11e),'children':_0xe4c6ac(0xc2)}),_0x591b4e(_0x3b8bcf,{'onClick':()=>_0xb1b530[_0xe4c6ac(0xcf)](),'children':'Stop\x20following'})]});}function je(_0x5a9d64){var _0x570224=_0x20f48d;const {coordinator:_0x1e4aa5}=_0x5a9d64;return _0xf95584(_0xb7edf3,{'children':[_0x591b4e(_0x570224(0x133),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x570224(0x168)}),_0x591b4e(_0x3b8bcf,{'variant':_0x570224(0x169),'onClick':()=>_0x1e4aa5[_0x570224(0x14c)](),'children':_0x570224(0x111)})]});}function Ue(_0x2a7216){var _0x31db84=_0x20f48d;const {coordinator:_0x2f30b4}=_0x2a7216;return _0xf95584(_0xb7edf3,{'children':[_0x591b4e(_0x31db84(0x133),{'className':_0x31db84(0x11e),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x591b4e(_0x3b8bcf,{'variant':_0x31db84(0x11b),'onClick':()=>_0x2f30b4[_0x31db84(0x170)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x1ea2b1=_0x20f48d;return _0x591b4e(_0xb7edf3,{'children':_0x1ea2b1(0x11f)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x1e86b3,_0x5704cc,_0x257239,_0x46ca42)=>{for(var _0x1c5c74=_0x46ca42>0x1?void 0x0:_0x46ca42?Me(_0x5704cc,_0x257239):_0x5704cc,_0x16e8d0=_0x1e86b3['length']-0x1,_0x6cf96c;_0x16e8d0>=0x0;_0x16e8d0--)(_0x6cf96c=_0x1e86b3[_0x16e8d0])&&(_0x1c5c74=_0x6cf96c(_0x1c5c74)||_0x1c5c74);return _0x1c5c74;},$=(_0x498f27,_0x3f0482)=>(_0x344315,_0x7a0af)=>_0x3f0482(_0x344315,_0x7a0af,_0x498f27);let b=class extends _0x1a511f{constructor(_0x1844b9,_0x2de9fd){var _0x7e94a1=_0x20f48d;super(),this[_0x7e94a1(0xc6)]=_0x1844b9,this[_0x7e94a1(0x166)]=_0x2de9fd,this[_0x7e94a1(0x135)]();}[_0x20f48d(0x135)](){var _0x44de3f=_0x20f48d;this[_0x44de3f(0x12d)](this[_0x44de3f(0x166)][_0x44de3f(0x10a)](_0x22f3b6[_0x44de3f(0x137)],()=>_0x123b5d(Te,this['_injector'])));}};b=ke([$(0x0,_0x5e6b53(_0x25d4db)),$(0x1,_0xe05b9c)],b);var Ge=Object[_0x20f48d(0x122)],We=Object[_0x20f48d(0x101)],Ye=(_0x15d16d,_0x4527c9,_0x440aed)=>_0x4527c9 in _0x15d16d?Ge(_0x15d16d,_0x4527c9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x440aed}):_0x15d16d[_0x4527c9]=_0x440aed,Be=(_0xc1efcc,_0x1e7ca1,_0x3c23ac,_0x111ade)=>{var _0xfde630=_0x20f48d;for(var _0x5d8198=_0x111ade>0x1?void 0x0:_0x111ade?We(_0x1e7ca1,_0x3c23ac):_0x1e7ca1,_0x123851=_0xc1efcc[_0xfde630(0xdb)]-0x1,_0x5d8846;_0x123851>=0x0;_0x123851--)(_0x5d8846=_0xc1efcc[_0x123851])&&(_0x5d8198=_0x5d8846(_0x5d8198)||_0x5d8198);return _0x5d8198;},F=(_0x57a572,_0x3620b5)=>(_0x8a1bcb,_0x172e19)=>_0x3620b5(_0x8a1bcb,_0x172e19,_0x57a572),J=(_0x3d5ec4,_0x5c8a5f,_0x21eca2)=>Ye(_0x3d5ec4,typeof _0x5c8a5f!=_0x20f48d(0xf1)?_0x5c8a5f+'':_0x5c8a5f,_0x21eca2);const Ze=_0x20f48d(0x11d);let O=class extends _0x5c6f5f{constructor(_0x351256=T,_0x490d32,_0x8e6d18){var _0x56ffb4=_0x20f48d;super(),this['_config']=_0x351256,this[_0x56ffb4(0xc6)]=_0x490d32,this['_configService']=_0x8e6d18;const {..._0x14b40d}=_0x1b809b({},T,this[_0x56ffb4(0x164)]);this[_0x56ffb4(0x127)]['setConfig'](Oe,_0x14b40d);}[_0x20f48d(0x115)](){var _0x45a5aa=_0x20f48d;_0x1d9d68(this['_injector'],_0x1c6ef3([[L],[I],[m],[b]],this[_0x45a5aa(0x164)]['override'])),_0x4e8b78(this[_0x45a5aa(0xc6)],[[m]]);}[_0x20f48d(0xce)](){var _0xfd7ab0=_0x20f48d;_0x4e8b78(this[_0xfd7ab0(0xc6)],[[b]]);}};J(O,'type',_0x1df0c8[_0x20f48d(0x108)]),J(O,_0x20f48d(0x118),Ze),O=Be([_0x1a4ce7(_0x2d4e6e),F(0x1,_0x5e6b53(_0x25d4db)),F(0x2,_0x27f4d)],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(_0x1c6b90,_0x37069b){var _0x193749=_0xaefe,_0x314254=_0x1c6b90();while(!![]){try{var _0x1e2c7e=-parseInt(_0x193749(0x20e))/0x1*(parseInt(_0x193749(0x254))/0x2)+parseInt(_0x193749(0x237))/0x3*(-parseInt(_0x193749(0x203))/0x4)+parseInt(_0x193749(0x2d8))/0x5*(parseInt(_0x193749(0x255))/0x6)+-parseInt(_0x193749(0x287))/0x7*(-parseInt(_0x193749(0x200))/0x8)+parseInt(_0x193749(0x24b))/0x9+parseInt(_0x193749(0x2d1))/0xa*(parseInt(_0x193749(0x2c5))/0xb)+-parseInt(_0x193749(0x1fd))/0xc;if(_0x1e2c7e===_0x37069b)break;else _0x314254['push'](_0x314254['shift']());}catch(_0x1ee736){_0x314254['push'](_0x314254['shift']());}}}(_0x43f4,0xa7687),function(_0x41ccbf,_0x311d5d){var _0x1a25ef=_0xaefe;typeof exports==_0x1a25ef(0x20f)&&typeof module<'u'?_0x311d5d(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define==_0x1a25ef(0x23d)&&define[_0x1a25ef(0x22b)]?define([_0x1a25ef(0x242),_0x1a25ef(0x2b1),_0x1a25ef(0x27e),'@univerjs/sheets',_0x1a25ef(0x292),_0x1a25ef(0x2b2),_0x1a25ef(0x2c6),_0x1a25ef(0x24a),_0x1a25ef(0x26f),_0x1a25ef(0x2bc),_0x1a25ef(0x275),_0x1a25ef(0x2ce)],_0x311d5d):(_0x41ccbf=typeof globalThis<'u'?globalThis:_0x41ccbf||self,_0x311d5d(_0x41ccbf[_0x1a25ef(0x21a)]={},_0x41ccbf['UniverProCollaborationClient'],_0x41ccbf['UniverCore'],_0x41ccbf[_0x1a25ef(0x260)],_0x41ccbf[_0x1a25ef(0x207)],_0x41ccbf[_0x1a25ef(0x234)],_0x41ccbf[_0x1a25ef(0x2a7)],_0x41ccbf[_0x1a25ef(0x289)],_0x41ccbf[_0x1a25ef(0x2a7)],_0x41ccbf[_0x1a25ef(0x245)],_0x41ccbf[_0x1a25ef(0x275)],_0x41ccbf['rxjs']['operators']));}(this,function(_0x7a124f,_0x21e19d,_0x465feb,_0x1e29bd,_0x50c271,_0x50c920,_0x4903e6,_0x4708a7,_0x42c8b5,_0xc6f7a0,_0x4788f5,_0x4244fd){'use strict';var _0x4abdf5=_0xaefe;var _0xfdee5a=Object['defineProperty'],_0x159fd7=(_0x5e241c,_0x47d97e,_0x2a298c)=>_0x47d97e in _0x5e241c?_0xfdee5a(_0x5e241c,_0x47d97e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a298c}):_0x5e241c[_0x47d97e]=_0x2a298c,_0x3f606a=(_0xe14347,_0x108cbc,_0x359d1)=>_0x159fd7(_0xe14347,typeof _0x108cbc!=_0x4abdf5(0x24d)?_0x108cbc+'':_0x108cbc,_0x359d1);const _0x1f1091=_0x4abdf5(0x269),_0x30e85e={};class _0x3206c2 extends _0x465feb['Disposable']{constructor(){var _0x1261a2=_0x4abdf5;super(...arguments),_0x3f606a(this,_0x1261a2(0x29c),new Set()),_0x3f606a(this,'_reporters',new Set());}[_0x4abdf5(0x2b6)](_0x3dedf3){var _0x853727=_0x4abdf5;return this[_0x853727(0x29c)][_0x853727(0x21b)](_0x3dedf3),_0x465feb['toDisposable'](()=>this[_0x853727(0x29c)][_0x853727(0x276)](_0x3dedf3));}[_0x4abdf5(0x1ef)](_0x16a210){var _0x20de8c=_0x4abdf5;return this[_0x20de8c(0x1ea)][_0x20de8c(0x21b)](_0x16a210),_0x465feb[_0x20de8c(0x215)](()=>this[_0x20de8c(0x1ea)]['delete'](_0x16a210));}[_0x4abdf5(0x256)](_0x30b017){var _0x1beb21=_0x4abdf5;return this[_0x1beb21(0x29c)][_0x1beb21(0x24c)](_0x30b017);}[_0x4abdf5(0x2cc)](_0x21714b){var _0x46cff7=_0x4abdf5;return Array[_0x46cff7(0x27a)](this[_0x46cff7(0x1ea)])[_0x46cff7(0x25f)](_0x48669a=>_0x48669a(_0x21714b));}}var _0x273a78=Object[_0x4abdf5(0x29e)],_0x41fbbe=(_0x28516b,_0x495f77,_0x3f575e,_0x59b17e)=>{var _0x324118=_0x4abdf5;for(var _0x2cc089=_0x59b17e>0x1?void 0x0:_0x59b17e?_0x273a78(_0x495f77,_0x3f575e):_0x495f77,_0x49be0d=_0x28516b[_0x324118(0x262)]-0x1,_0x49162a;_0x49be0d>=0x0;_0x49be0d--)(_0x49162a=_0x28516b[_0x49be0d])&&(_0x2cc089=_0x49162a(_0x2cc089)||_0x2cc089);return _0x2cc089;},_0x4e7388=(_0x5b59c0,_0xc9a35d)=>(_0x3342a7,_0x4b6d49)=>_0xc9a35d(_0x3342a7,_0x4b6d49,_0x5b59c0);let _0x2ce02d=class extends _0x465feb['Disposable']{constructor(_0x2a9983){var _0x1815f4=_0x4abdf5;super(),this[_0x1815f4(0x288)]=_0x2a9983,this[_0x1815f4(0x272)]();}[_0x4abdf5(0x272)](){var _0x23a6ed=_0x4abdf5;[_0x50c271[_0x23a6ed(0x27b)]['id'],_0x50c271[_0x23a6ed(0x243)]['id'],_0x1e29bd[_0x23a6ed(0x2d9)]['id']]['forEach'](_0x2e20e5=>{var _0x21589b=_0x23a6ed;this[_0x21589b(0x26e)](this[_0x21589b(0x288)][_0x21589b(0x2b6)](_0x2e20e5));});}};_0x2ce02d=_0x41fbbe([_0x4e7388(0x0,_0x465feb[_0x4abdf5(0x290)](_0x3206c2))],_0x2ce02d);var _0x2495dd=function(){var _0x292972=_0x4abdf5;return _0x2495dd=Object[_0x292972(0x2b0)]||function(_0x77e14b){var _0x2d3bae=_0x292972;for(var _0x5c2962,_0x52cd1f=0x1,_0x5cc6da=arguments[_0x2d3bae(0x262)];_0x52cd1f<_0x5cc6da;_0x52cd1f++){_0x5c2962=arguments[_0x52cd1f];for(var _0x400923 in _0x5c2962)Object[_0x2d3bae(0x214)]['hasOwnProperty'][_0x2d3bae(0x2c0)](_0x5c2962,_0x400923)&&(_0x77e14b[_0x400923]=_0x5c2962[_0x400923]);}return _0x77e14b;},_0x2495dd[_0x292972(0x2c4)](this,arguments);},_0x1e9361=function(_0x3668a0,_0x3b54e2){var _0x22cf9b=_0x4abdf5,_0x250b12={};for(var _0x449d99 in _0x3668a0)Object[_0x22cf9b(0x214)][_0x22cf9b(0x2ad)][_0x22cf9b(0x2c0)](_0x3668a0,_0x449d99)&&_0x3b54e2['indexOf'](_0x449d99)<0x0&&(_0x250b12[_0x449d99]=_0x3668a0[_0x449d99]);if(_0x3668a0!=null&&typeof Object['getOwnPropertySymbols']==_0x22cf9b(0x23d)){for(var _0x4129df=0x0,_0x449d99=Object[_0x22cf9b(0x291)](_0x3668a0);_0x4129df<_0x449d99[_0x22cf9b(0x262)];_0x4129df++)_0x3b54e2['indexOf'](_0x449d99[_0x4129df])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x22cf9b(0x2c0)](_0x3668a0,_0x449d99[_0x4129df])&&(_0x250b12[_0x449d99[_0x4129df]]=_0x3668a0[_0x449d99[_0x4129df]]);}return _0x250b12;},_0x463541=_0x42c8b5[_0x4abdf5(0x208)](function(_0x13bc48,_0x2e5d86){var _0x99510=_0x4abdf5,_0x297802=_0x13bc48[_0x99510(0x28c)],_0x1ed724=_0x13bc48['id'],_0x5d629b=_0x13bc48[_0x99510(0x1e8)],_0x41bc62=_0x13bc48['extend'],_0x1cb597=_0x1e9361(_0x13bc48,['icon','id',_0x99510(0x1e8),_0x99510(0x1e5)]),_0x1be007=_0x99510(0x263)['concat'](_0x1ed724,'\x20')[_0x99510(0x26a)](_0x5d629b||'')['trim'](),_0x15cb60=_0x42c8b5[_0x99510(0x221)]('_'[_0x99510(0x26a)](_0x288e89()));return _0x412757(_0x297802,''[_0x99510(0x26a)](_0x1ed724),{'defIds':_0x297802[_0x99510(0x29b)],'idSuffix':_0x15cb60[_0x99510(0x2dd)]},_0x2495dd({'ref':_0x2e5d86,'className':_0x1be007},_0x1cb597),_0x41bc62);});function _0x412757(_0x413dec,_0x5f0036,_0x111013,_0x2af8d9,_0x4d5441){var _0x3f14d4=_0x4abdf5;return _0x42c8b5[_0x3f14d4(0x2c7)](_0x413dec[_0x3f14d4(0x216)],_0x2495dd(_0x2495dd({'key':_0x5f0036},_0x4ac4e6(_0x413dec,_0x111013,_0x4d5441)),_0x2af8d9),(_0x15b934(_0x413dec,_0x111013)[_0x3f14d4(0x2d7)]||[])[_0x3f14d4(0x25f)](function(_0x1d568a,_0x52cd1){var _0x476fd0=_0x3f14d4;return _0x412757(_0x1d568a,''[_0x476fd0(0x26a)](_0x5f0036,'-')['concat'](_0x413dec[_0x476fd0(0x216)],'-')[_0x476fd0(0x26a)](_0x52cd1),_0x111013,void 0x0,_0x4d5441);}));}function _0x4ac4e6(_0xc9e4ed,_0x55dc8b,_0x4f67bb){var _0x37e969=_0x4abdf5,_0xa9e2e1=_0x2495dd({},_0xc9e4ed['attrs']);_0x4f67bb!=null&&_0x4f67bb['colorChannel1']&&_0xa9e2e1[_0x37e969(0x29d)]==='colorChannel1'&&(_0xa9e2e1[_0x37e969(0x29d)]=_0x4f67bb[_0x37e969(0x209)]),_0xc9e4ed[_0x37e969(0x216)]===_0x37e969(0x1fa)&&_0xa9e2e1['id']&&(_0xa9e2e1['id']=_0xa9e2e1['id']+_0x55dc8b[_0x37e969(0x1f9)]),Object[_0x37e969(0x2a3)](_0xa9e2e1)['forEach'](function(_0x52184c){var _0x54a812=_0x37e969,_0x1a9f9b=_0x52184c[0x0],_0x28233e=_0x52184c[0x1];_0x1a9f9b===_0x54a812(0x1fa)&&typeof _0x28233e==_0x54a812(0x2b4)&&(_0xa9e2e1[_0x1a9f9b]=_0x28233e['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x55dc8b[_0x54a812(0x1f9)],')')));});var _0x4466dd=_0x55dc8b[_0x37e969(0x29b)];return!_0x4466dd||_0x4466dd[_0x37e969(0x262)]===0x0||(_0xc9e4ed[_0x37e969(0x216)]==='use'&&_0xa9e2e1['xlink:href']&&(_0xa9e2e1[_0x37e969(0x29a)]=_0xa9e2e1['xlink:href']+_0x55dc8b[_0x37e969(0x1f9)]),Object[_0x37e969(0x2a3)](_0xa9e2e1)[_0x37e969(0x295)](function(_0x235698){var _0x11b38f=_0x37e969,_0xcc85f2=_0x235698[0x0],_0x14ce6e=_0x235698[0x1];typeof _0x14ce6e==_0x11b38f(0x2b4)&&(_0xa9e2e1[_0xcc85f2]=_0x14ce6e['replace'](/url\(#(.*)\)/,_0x11b38f(0x225)[_0x11b38f(0x26a)](_0x55dc8b[_0x11b38f(0x1f9)],')')));})),_0xa9e2e1;}function _0x15b934(_0x4cb033,_0x541b20){var _0x520b63=_0x4abdf5,_0x5bcf8e,_0x30d789=_0x541b20['defIds'];return!_0x30d789||_0x30d789['length']===0x0?_0x4cb033:_0x4cb033[_0x520b63(0x216)]===_0x520b63(0x219)&&(!((_0x5bcf8e=_0x4cb033[_0x520b63(0x2d7)])===null||_0x5bcf8e===void 0x0)&&_0x5bcf8e[_0x520b63(0x262)])?_0x2495dd(_0x2495dd({},_0x4cb033),{'children':_0x4cb033[_0x520b63(0x2d7)]['map'](function(_0xda9d6e){var _0x12d2dd=_0x520b63;return typeof _0xda9d6e[_0x12d2dd(0x2b7)]['id']==_0x12d2dd(0x2b4)&&_0x30d789&&_0x30d789[_0x12d2dd(0x2a0)](_0xda9d6e['attrs']['id'])?_0x2495dd(_0x2495dd({},_0xda9d6e),{'attrs':_0x2495dd(_0x2495dd({},_0xda9d6e['attrs']),{'id':_0xda9d6e[_0x12d2dd(0x2b7)]['id']+_0x541b20[_0x12d2dd(0x1f9)]})}):_0xda9d6e;})}):_0x4cb033;}function _0x288e89(){var _0x743c77=_0x4abdf5;return Math[_0x743c77(0x210)]()[_0x743c77(0x25d)](0x24)[_0x743c77(0x296)](0x2,0x8);}_0x463541[_0x4abdf5(0x1fe)]=_0x4abdf5(0x271);var _0x1bc2af={'tag':_0x4abdf5(0x2a4),'attrs':{'xmlns':_0x4abdf5(0x218),'fill':'none','viewBox':'0\x200\x2017\x2017','width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x4abdf5(0x2af),'d':_0x4abdf5(0x205)}},{'tag':'path','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':_0x4abdf5(0x280),'clipRule':'evenodd'}}]},_0x552635=_0x42c8b5[_0x4abdf5(0x208)](function(_0x1dbfbc,_0x21d6c9){var _0xaa3666=_0x4abdf5;return _0x42c8b5[_0xaa3666(0x2c7)](_0x463541,Object['assign']({},_0x1dbfbc,{'id':_0xaa3666(0x23f),'ref':_0x21d6c9,'icon':_0x1bc2af}));});_0x552635[_0x4abdf5(0x1fe)]=_0x4abdf5(0x20b);var _0x358209=Object[_0x4abdf5(0x29e)],_0x48a43a=(_0x388a91,_0x50d080,_0x1cfc27,_0x7f5542)=>{var _0x23a0fc=_0x4abdf5;for(var _0x25cbe0=_0x7f5542>0x1?void 0x0:_0x7f5542?_0x358209(_0x50d080,_0x1cfc27):_0x50d080,_0x2d9246=_0x388a91[_0x23a0fc(0x262)]-0x1,_0x1e2480;_0x2d9246>=0x0;_0x2d9246--)(_0x1e2480=_0x388a91[_0x2d9246])&&(_0x25cbe0=_0x1e2480(_0x25cbe0)||_0x25cbe0);return _0x25cbe0;},_0x5d20ed=(_0x3e0cdc,_0x7afd63)=>(_0x479c71,_0x2ef41b)=>_0x7afd63(_0x479c71,_0x2ef41b,_0x3e0cdc);_0x7a124f[_0x4abdf5(0x257)]=class extends _0x465feb[_0x4abdf5(0x1f5)]{constructor(_0x4a581f,_0x338b4a,_0x515c88){var _0x37da5a=_0x4abdf5;super(),_0x3f606a(this,_0x37da5a(0x2a2),new Map()),(this[_0x37da5a(0x202)]=_0x4a581f,this[_0x37da5a(0x2be)]=_0x338b4a,this['_collabSessionService']=_0x515c88,this[_0x37da5a(0x272)]());}async[_0x4abdf5(0x2bf)](_0x1fdb77){var _0x489d86=_0x4abdf5;return this[_0x489d86(0x2a2)][_0x489d86(0x24c)](_0x1fdb77)||await this[_0x489d86(0x229)](_0x1fdb77),this['_entities'][_0x489d86(0x235)](_0x1fdb77);}['_init'](){var _0x2293b3=_0x4abdf5;this[_0x2293b3(0x202)][_0x2293b3(0x274)](_0x465feb['UniverInstanceType'][_0x2293b3(0x222)])[_0x2293b3(0x22e)](_0x4244fd[_0x2293b3(0x238)](this[_0x2293b3(0x23b)]))[_0x2293b3(0x2c9)](async _0x1b0e53=>{var _0x12edf4=_0x2293b3;const _0x133dfe=_0x1b0e53[_0x12edf4(0x2a8)]();this[_0x12edf4(0x2a2)]['has'](_0x133dfe)||this['_startLiveShareCoordinator'](_0x133dfe);}),this['_univerInstanceService'][_0x2293b3(0x286)](_0x465feb['UniverInstanceType'][_0x2293b3(0x222)])[_0x2293b3(0x22e)](_0x4244fd[_0x2293b3(0x238)](this[_0x2293b3(0x23b)]))[_0x2293b3(0x2c9)](_0xc8b583=>{var _0x12f5cf=_0x2293b3;const _0x5842b0=_0xc8b583['getUnitId'](),_0x25d3b9=this[_0x12f5cf(0x2a2)][_0x12f5cf(0x235)](_0x5842b0);_0x25d3b9==null||_0x25d3b9[_0x12f5cf(0x2cf)]();});}async['_startLiveShareCoordinator'](_0x4a5b4b){var _0x5331a2=_0x4abdf5;const _0x34cda9=await this[_0x5331a2(0x2d2)][_0x5331a2(0x29f)](_0x4a5b4b),_0x4a71c3=this[_0x5331a2(0x2be)][_0x5331a2(0x2a1)](_0x7a124f[_0x5331a2(0x20d)],_0x4a5b4b,_0x34cda9);return _0x4a71c3[_0x5331a2(0x23c)](),this[_0x5331a2(0x2a2)][_0x5331a2(0x2da)](_0x4a5b4b,_0x4a71c3),_0x4a71c3;}},_0x7a124f[_0x4abdf5(0x257)]=_0x48a43a([_0x5d20ed(0x0,_0x465feb[_0x4abdf5(0x201)]),_0x5d20ed(0x1,_0x465feb[_0x4abdf5(0x290)](_0x465feb[_0x4abdf5(0x2a6)])),_0x5d20ed(0x2,_0x465feb[_0x4abdf5(0x290)](_0x21e19d['CollaborationSessionService']))],_0x7a124f[_0x4abdf5(0x257)]);var _0x11a9f5=(_0x5a7476=>(_0x5a7476[_0x4abdf5(0x1f3)]=_0x4abdf5(0x230),_0x5a7476[_0x4abdf5(0x278)]='idle',_0x5a7476[_0x4abdf5(0x264)]=_0x4abdf5(0x21d),_0x5a7476[_0x4abdf5(0x2ab)]=_0x4abdf5(0x27d),_0x5a7476[_0x4abdf5(0x259)]='presenting',_0x5a7476))(_0x11a9f5||{});const _0x32d0dd=_0x4abdf5(0x277),_0xa91a9c=0xc8;_0x7a124f[_0x4abdf5(0x20d)]=class extends _0x465feb['RxDisposable']{constructor(_0x270c6c,_0x5c7c3d,_0x521aaa,_0xe70e69,_0x378251){var _0x3bcc99=_0x4abdf5;super(),_0x3f606a(this,'_status$',new _0x4788f5['BehaviorSubject'](_0x3bcc99(0x248))),_0x3f606a(this,_0x3bcc99(0x25a),this[_0x3bcc99(0x266)][_0x3bcc99(0x28f)]()),_0x3f606a(this,_0x3bcc99(0x272),!0x1),_0x3f606a(this,_0x3bcc99(0x293),null),_0x3f606a(this,_0x3bcc99(0x232),null),(this[_0x3bcc99(0x1e7)]=_0x270c6c,this[_0x3bcc99(0x227)]=_0x5c7c3d,this[_0x3bcc99(0x2b9)]=_0x521aaa,this[_0x3bcc99(0x288)]=_0xe70e69,this['_commandService']=_0x378251);}get[_0x4abdf5(0x297)](){var _0x182ab2=_0x4abdf5;return this['_status$'][_0x182ab2(0x22f)]();}[_0x4abdf5(0x2cf)](){var _0xcedfab=_0x4abdf5,_0xa99ce5;(_0xa99ce5=this['_commandDisposable'])==null||_0xa99ce5[_0xcedfab(0x2cf)](),this[_0xcedfab(0x266)][_0xcedfab(0x206)]('idle'),this[_0xcedfab(0x266)]['complete']();}[_0x4abdf5(0x23c)](){var _0x39b5cc=_0x4abdf5;this[_0x39b5cc(0x272)]||(this[_0x39b5cc(0x272)]=!0x0,this[_0x39b5cc(0x227)][_0x39b5cc(0x283)]['pipe'](_0x4244fd['takeUntil'](this[_0x39b5cc(0x23b)]))[_0x39b5cc(0x2c9)](_0x41c7f6=>{var _0x51b574=_0x39b5cc;switch(_0x41c7f6){case _0x21e19d['SessionStatus'][_0x51b574(0x1f3)]:this[_0x51b574(0x1ec)]();break;case _0x21e19d[_0x51b574(0x2d4)][_0x51b574(0x21e)]:this[_0x51b574(0x25e)]();break;}}),this[_0x39b5cc(0x227)][_0x39b5cc(0x27f)][_0x39b5cc(0x22e)](_0x4244fd[_0x39b5cc(0x238)](this['dispose$']))[_0x39b5cc(0x2c9)](_0x21d84b=>{var _0x197fb5=_0x39b5cc;const {eventID:_0x28e320}=_0x21d84b;switch(_0x28e320){case _0xc6f7a0['CollaborationEvent']['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x21d84b);break;case _0xc6f7a0[_0x197fb5(0x1eb)][_0x197fb5(0x2db)]:this[_0x197fb5(0x1f8)](_0x21d84b);break;case _0xc6f7a0[_0x197fb5(0x1eb)][_0x197fb5(0x224)]:this['_handleTerminate']();break;case _0xc6f7a0['CollaborationEvent'][_0x197fb5(0x231)]:this[_0x197fb5(0x240)](_0x21d84b);break;}}));}[_0x4abdf5(0x265)](){var _0x4d509f=_0x4abdf5;this['_collabSession'][_0x4d509f(0x2c1)]({'eventID':_0xc6f7a0['CollaborationEvent'][_0x4d509f(0x217)],'data':{'unitID':this[_0x4d509f(0x1e7)],'userID':this[_0x4d509f(0x227)][_0x4d509f(0x285)]()}},this['_unitID']);}[_0x4abdf5(0x1fc)](){var _0x2542bf=_0x4abdf5;this[_0x2542bf(0x297)]===_0x2542bf(0x20c)&&(this[_0x2542bf(0x266)][_0x2542bf(0x206)]('idle'),this[_0x2542bf(0x227)][_0x2542bf(0x2c1)]({'eventID':_0xc6f7a0[_0x2542bf(0x1eb)][_0x2542bf(0x224)],'data':{'unitID':this[_0x2542bf(0x1e7)]}},this['_unitID']));}[_0x4abdf5(0x2cd)](){var _0x263de2=_0x4abdf5;this[_0x263de2(0x297)]===_0x263de2(0x27d)&&(this['_status$'][_0x263de2(0x206)](_0x263de2(0x21d)),this[_0x263de2(0x211)]());}[_0x4abdf5(0x270)](){var _0x5271d8=_0x4abdf5;this[_0x5271d8(0x297)]===_0x5271d8(0x21d)&&this['_stopFollowing']();}[_0x4abdf5(0x28a)](_0x3f376b){var _0x11136e=_0x4abdf5;const {presenter:_0x2b5c4b}=_0x3f376b[_0x11136e(0x249)],_0xad495c=this[_0x11136e(0x227)]['getMemberID']();this[_0x11136e(0x232)]=_0x2b5c4b,_0x2b5c4b===_0xad495c?(this[_0x11136e(0x267)](),this[_0x11136e(0x2a5)]()):this[_0x11136e(0x297)]!==_0x11136e(0x27d)&&(this[_0x11136e(0x28e)](),this[_0x11136e(0x211)]());}['_fetchOperations'](){var _0x2607c7=_0x4abdf5;const _0x1cfcc3={'eventID':_0xc6f7a0[_0x2607c7(0x1eb)][_0x2607c7(0x23e)]};this['_collabSession'][_0x2607c7(0x2c1)](_0x1cfcc3,this['_unitID']);}[_0x4abdf5(0x244)](){var _0x22de27=_0x4abdf5;this[_0x22de27(0x232)]=null,this[_0x22de27(0x297)]!==_0x22de27(0x20c)&&this[_0x22de27(0x22a)]();}[_0x4abdf5(0x240)](_0x2b82b1){var _0x2c8657=_0x4abdf5;if(this[_0x2c8657(0x297)]===_0x2c8657(0x21d)&&this['_presenter']===_0x2b82b1[_0x2c8657(0x249)][_0x2c8657(0x28d)]){const _0x50f4b1=_0xc6f7a0[_0x2c8657(0x22c)](_0x2b82b1[_0x2c8657(0x249)])[_0x2c8657(0x279)]['reverse']()[_0x2c8657(0x236)](_0x46d438=>_0x46d438['id']===_0x1e29bd[_0x2c8657(0x24f)]['id']);if(_0x50f4b1){const _0x32eea9=_0x50f4b1[_0x2c8657(0x226)][_0x2c8657(0x2ba)],_0x5c2391=_0x50f4b1['params'][_0x2c8657(0x2de)]['id'];setTimeout(()=>{var _0x3b300a=_0x2c8657;this[_0x3b300a(0x25c)][_0x3b300a(0x2c8)](_0x1e29bd['SetWorksheetActiveOperation']['id'],{'unitId':_0x32eea9,'subUnitId':_0x5c2391},{'fromCollab':!0x0});});}}}[_0x4abdf5(0x2a5)](){var _0x325ea8=_0x4abdf5;this['_status$'][_0x325ea8(0x206)]('presenting');const _0x59567d=new Map(),_0x30ebf5=this[_0x325ea8(0x293)]=new _0x465feb[(_0x325ea8(0x20a))]();_0x30ebf5[_0x325ea8(0x21b)](_0x465feb['toDisposable'](()=>{var _0x15465f=_0x325ea8;_0x59567d[_0x15465f(0x295)](_0x34bbe5=>_0x34bbe5[_0x15465f(0x2d3)]()),_0x59567d[_0x15465f(0x21f)]();})),_0x30ebf5[_0x325ea8(0x21b)](this[_0x325ea8(0x25c)][_0x325ea8(0x1fb)](_0x3abecf=>{var _0x12679c=_0x325ea8,_0x182360;if(_0x3abecf[_0x12679c(0x26c)]!==_0x465feb[_0x12679c(0x228)][_0x12679c(0x2c3)]||!this['_liveShareService'][_0x12679c(0x256)](_0x3abecf['id']))return;const {id:_0x17389a}=_0x3abecf;let _0x1d76fd;_0x59567d['has'](_0x17389a)?_0x1d76fd=_0x59567d['get'](_0x17389a):(_0x1d76fd=new _0x4788f5[(_0x12679c(0x220))](),_0x59567d[_0x12679c(0x2da)](_0x17389a,_0x1d76fd),_0x1d76fd[_0x12679c(0x22e)](_0x4244fd[_0x12679c(0x1e9)]((_0x182360=this['_configService'][_0x12679c(0x2cb)](_0x32d0dd))!=null?_0x182360:_0xa91a9c,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x12679c(0x2c9)](_0x52a95a=>{var _0x54f237=_0x12679c;this[_0x54f237(0x227)][_0x54f237(0x2c1)]({'eventID':_0xc6f7a0[_0x54f237(0x1eb)][_0x54f237(0x2db)],'data':{'unitID':this[_0x54f237(0x1e7)],'operations':{[_0x52a95a['id']]:{'id':_0x52a95a['id'],'params':JSON[_0x54f237(0x268)](_0x52a95a[_0x54f237(0x226)])}}}},this[_0x54f237(0x1e7)]);})),_0x1d76fd[_0x12679c(0x206)](_0x3abecf);})),this[_0x325ea8(0x288)][_0x325ea8(0x2cc)](this['_unitID'])[_0x325ea8(0x295)](_0x234f36=>this[_0x325ea8(0x227)][_0x325ea8(0x2c1)]({'eventID':_0xc6f7a0[_0x325ea8(0x1eb)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x325ea8(0x1e7)],'operations':{[_0x234f36['id']]:{'id':_0x234f36['id'],'params':JSON['stringify'](_0x234f36['params'])}}}},this[_0x325ea8(0x1e7)]));}[_0x4abdf5(0x28e)](){var _0x320df6=_0x4abdf5,_0x435d58;this[_0x320df6(0x266)][_0x320df6(0x206)](_0x320df6(0x248)),(_0x435d58=this[_0x320df6(0x293)])==null||_0x435d58[_0x320df6(0x2cf)](),this[_0x320df6(0x293)]=null;}[_0x4abdf5(0x211)](){var _0x5f2356=_0x4abdf5,_0x48e869;(_0x48e869=this[_0x5f2356(0x293)])==null||_0x48e869[_0x5f2356(0x2cf)](),this[_0x5f2356(0x266)][_0x5f2356(0x206)](_0x5f2356(0x21d));}[_0x4abdf5(0x22a)](){var _0x23f8f3=_0x4abdf5,_0x476df9;this[_0x23f8f3(0x266)]['next']('idle'),(_0x476df9=this[_0x23f8f3(0x293)])==null||_0x476df9[_0x23f8f3(0x2cf)](),this['_commandDisposable']=null;}[_0x4abdf5(0x267)](){var _0xd7ece5=_0x4abdf5,_0xc4e8d2;this[_0xd7ece5(0x266)][_0xd7ece5(0x206)](_0xd7ece5(0x27d)),(_0xc4e8d2=this['_commandDisposable'])==null||_0xc4e8d2['dispose']();}[_0x4abdf5(0x1f8)](_0x3f9c60){var _0x53d962=_0x4abdf5;if([_0x53d962(0x20c),_0x53d962(0x27d),_0x53d962(0x230)][_0x53d962(0x2a0)](this[_0x53d962(0x297)])||!_0x3f9c60['data'][_0x53d962(0x241)]||_0x3f9c60['data'][_0x53d962(0x241)]===this[_0x53d962(0x227)][_0x53d962(0x285)]())return;this[_0x53d962(0x297)]===_0x53d962(0x248)&&this[_0x53d962(0x211)]();const _0x42a537=_0x3f9c60[_0x53d962(0x249)][_0x53d962(0x1ed)];Object[_0x53d962(0x204)](_0x42a537)[_0x53d962(0x295)](_0x2b90af=>{var _0x32f4fe=_0x53d962;this['_commandService'][_0x32f4fe(0x2c8)](_0x2b90af['id'],_0x2b90af['params']?JSON[_0x32f4fe(0x258)](_0x2b90af[_0x32f4fe(0x226)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x4b1552=_0x4abdf5,_0x274df0;this[_0x4b1552(0x266)][_0x4b1552(0x206)](_0x4b1552(0x230)),(_0x274df0=this[_0x4b1552(0x293)])==null||_0x274df0[_0x4b1552(0x2cf)]();}[_0x4abdf5(0x25e)](){this['_status$']['next']('idle'),this['_fetchOperations']();}},_0x7a124f[_0x4abdf5(0x20d)]=_0x48a43a([_0x5d20ed(0x2,_0x465feb[_0x4abdf5(0x1f7)]),_0x5d20ed(0x3,_0x465feb[_0x4abdf5(0x290)](_0x3206c2)),_0x5d20ed(0x4,_0x465feb[_0x4abdf5(0x213)])],_0x7a124f[_0x4abdf5(0x20d)]);function _0x41ba05(){var _0x28daaf=_0x4abdf5;const _0x561cd3=_0x50c920[_0x28daaf(0x247)](_0x7a124f['LiveShareController']),_0x2aa6fe=_0x50c920[_0x28daaf(0x247)](_0x465feb[_0x28daaf(0x201)]),_0x4067cf=_0x50c920['useObservable'](()=>_0x2aa6fe[_0x28daaf(0x1f6)](_0x465feb['UniverInstanceType'][_0x28daaf(0x222)]),void 0x0,!0x1,[]),[_0x38e92b,_0x3ed39f]=_0x42c8b5[_0x28daaf(0x212)](null),[_0xd0c987,_0x20fc7a]=_0x42c8b5[_0x28daaf(0x212)](_0x11a9f5[_0x28daaf(0x278)]),_0x1fa838=_0x42c8b5['useRef'](null);return _0x42c8b5[_0x28daaf(0x25b)](()=>(_0x4067cf&&_0x561cd3[_0x28daaf(0x2bf)](_0x4067cf[_0x28daaf(0x2a8)]())[_0x28daaf(0x23a)](_0x589ecd=>{var _0x4d0d8f=_0x28daaf;_0x3ed39f(_0x589ecd),_0x1fa838[_0x4d0d8f(0x2dd)]=_0x589ecd[_0x4d0d8f(0x25a)][_0x4d0d8f(0x2c9)](_0x4b3cb8=>{_0x20fc7a(_0x4b3cb8);});}),()=>{var _0x12a2dd=_0x28daaf,_0x41af2b;(_0x41af2b=_0x1fa838[_0x12a2dd(0x2dd)])==null||_0x41af2b[_0x12a2dd(0x2a9)](),_0x1fa838[_0x12a2dd(0x2dd)]=null;}),[_0x4067cf,_0x561cd3]),_0x38e92b?_0x4903e6[_0x28daaf(0x2b5)](_0x4708a7[_0x28daaf(0x2aa)],{'align':_0x28daaf(0x22d),'disabled':_0xd0c987===_0x11a9f5[_0x28daaf(0x1f3)],'className':_0x28daaf(0x1e6),'overlay':_0x4903e6[_0x28daaf(0x2b5)](_0x1fbe8d,{'status':_0xd0c987,'coordinator':_0x38e92b}),'children':_0x4903e6[_0x28daaf(0x2b5)](_0x28daaf(0x26b),{'className':_0x4708a7[_0x28daaf(0x2ac)](_0x28daaf(0x21c),{'univer-cursor-not-allowed':_0xd0c987===_0x11a9f5[_0x28daaf(0x1f3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xd0c987!==_0x11a9f5[_0x28daaf(0x1f3)]}),'type':'button','children':_0x4903e6[_0x28daaf(0x2b5)](_0x552635,{'className':_0x28daaf(0x284)})})}):null;}function _0x1fbe8d(_0xb537ef){var _0x128fba=_0x4abdf5;const {status:_0x4ba175,coordinator:_0x140d96}=_0xb537ef;switch(_0x4ba175){case _0x11a9f5['IDLE']:return _0x4903e6[_0x128fba(0x2b5)](_0x4dff59,{'coordinator':_0x140d96});case _0x11a9f5['FOLLOWING']:return _0x4903e6[_0x128fba(0x2b5)](_0x478087,{'coordinator':_0x140d96});case _0x11a9f5[_0x128fba(0x2ab)]:return _0x4903e6[_0x128fba(0x2b5)](_0x2ee267,{'coordinator':_0x140d96});case _0x11a9f5[_0x128fba(0x1f3)]:return _0x4903e6[_0x128fba(0x2b5)](_0x2c47fa,{});case _0x11a9f5['PRESENTING']:return _0x4903e6[_0x128fba(0x2b5)](_0x18d3d2,{'coordinator':_0x140d96});default:return null;}}function _0x4dff59(_0x3d4d72){var _0x5447c5=_0x4abdf5;const {coordinator:_0x4b81c8}=_0x3d4d72;return _0x4903e6[_0x5447c5(0x2ca)](_0x4903e6[_0x5447c5(0x1ee)],{'children':[_0x4903e6['jsx'](_0x5447c5(0x1f1),{'className':_0x5447c5(0x281),'children':'Present\x20this\x20document'}),_0x4903e6[_0x5447c5(0x2b5)](_0x4708a7[_0x5447c5(0x223)],{'onClick':()=>_0x4b81c8[_0x5447c5(0x265)](),'children':_0x5447c5(0x251)})]});}function _0x478087(_0x18b7b6){var _0x3f71cb=_0x4abdf5;const {coordinator:_0x1e0f8a}=_0x18b7b6;return _0x4903e6[_0x3f71cb(0x2ca)](_0x4903e6[_0x3f71cb(0x1ee)],{'children':[_0x4903e6[_0x3f71cb(0x2b5)](_0x3f71cb(0x1f1),{'className':_0x3f71cb(0x281),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x4903e6[_0x3f71cb(0x2b5)](_0x4708a7['Button'],{'onClick':()=>_0x1e0f8a[_0x3f71cb(0x270)](),'children':_0x3f71cb(0x261)})]});}function _0x2ee267(_0x39c584){var _0x41fc00=_0x4abdf5;const {coordinator:_0x3771bd}=_0x39c584;return _0x4903e6[_0x41fc00(0x2ca)](_0x4903e6['Fragment'],{'children':[_0x4903e6[_0x41fc00(0x2b5)](_0x41fc00(0x1f1),{'className':_0x41fc00(0x281),'children':_0x41fc00(0x2c2)}),_0x4903e6[_0x41fc00(0x2b5)](_0x4708a7[_0x41fc00(0x223)],{'variant':_0x41fc00(0x252),'onClick':()=>_0x3771bd[_0x41fc00(0x2cd)](),'children':_0x41fc00(0x2d6)})]});}function _0x18d3d2(_0x2c7708){var _0x46f75f=_0x4abdf5;const {coordinator:_0x56714d}=_0x2c7708;return _0x4903e6['jsxs'](_0x4903e6['Fragment'],{'children':[_0x4903e6['jsx'](_0x46f75f(0x1f1),{'className':_0x46f75f(0x281),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x4903e6[_0x46f75f(0x2b5)](_0x4708a7[_0x46f75f(0x223)],{'variant':_0x46f75f(0x239),'onClick':()=>_0x56714d[_0x46f75f(0x1fc)](),'children':_0x46f75f(0x26d)})]});}function _0x2c47fa(){var _0xadb52f=_0x4abdf5;return _0x4903e6[_0xadb52f(0x2b5)](_0x4903e6['Fragment'],{'children':_0xadb52f(0x2d5)});}var _0x597981=Object[_0x4abdf5(0x29e)],_0x780543=(_0x20213a,_0x5a675f,_0x2b8cdc,_0x1962e8)=>{var _0xf32882=_0x4abdf5;for(var _0xe75acb=_0x1962e8>0x1?void 0x0:_0x1962e8?_0x597981(_0x5a675f,_0x2b8cdc):_0x5a675f,_0x2922d6=_0x20213a[_0xf32882(0x262)]-0x1,_0x422ec8;_0x2922d6>=0x0;_0x2922d6--)(_0x422ec8=_0x20213a[_0x2922d6])&&(_0xe75acb=_0x422ec8(_0xe75acb)||_0xe75acb);return _0xe75acb;},_0x55d1db=(_0x2d859c,_0x1db990)=>(_0x5e6026,_0x18789d)=>_0x1db990(_0x5e6026,_0x18789d,_0x2d859c);_0x7a124f['DesktopLiveShareController']=class extends _0x465feb['Disposable']{constructor(_0x533132,_0x5c71c1){var _0x44ce79=_0x4abdf5;super(),this[_0x44ce79(0x2be)]=_0x533132,this[_0x44ce79(0x246)]=_0x5c71c1,this[_0x44ce79(0x28b)]();}[_0x4abdf5(0x28b)](){var _0x5e1db3=_0x4abdf5;this[_0x5e1db3(0x26e)](this[_0x5e1db3(0x246)][_0x5e1db3(0x282)](_0x50c920['BuiltInUIPart']['HEADER_MENU'],()=>_0x50c920[_0x5e1db3(0x2bb)](_0x41ba05,this[_0x5e1db3(0x2be)])));}},_0x7a124f[_0x4abdf5(0x294)]=_0x780543([_0x55d1db(0x0,_0x465feb['Inject'](_0x465feb['Injector'])),_0x55d1db(0x1,_0x50c920[_0x4abdf5(0x253)])],_0x7a124f['DesktopLiveShareController']);var _0x431a2e=Object[_0x4abdf5(0x1ff)],_0x3b25d8=Object[_0x4abdf5(0x29e)],_0x1c6aee=(_0x33a790,_0x3f1a16,_0x16cc2c)=>_0x3f1a16 in _0x33a790?_0x431a2e(_0x33a790,_0x3f1a16,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16cc2c}):_0x33a790[_0x3f1a16]=_0x16cc2c,_0x3a7204=(_0x365b8b,_0x1c8524,_0x12118c,_0x42df66)=>{var _0x15417a=_0x4abdf5;for(var _0x50bfde=_0x42df66>0x1?void 0x0:_0x42df66?_0x3b25d8(_0x1c8524,_0x12118c):_0x1c8524,_0x39d591=_0x365b8b[_0x15417a(0x262)]-0x1,_0x4d06bf;_0x39d591>=0x0;_0x39d591--)(_0x4d06bf=_0x365b8b[_0x39d591])&&(_0x50bfde=_0x4d06bf(_0x50bfde)||_0x50bfde);return _0x50bfde;},_0x5aebf9=(_0x529413,_0xbe1a1c)=>(_0x5091b2,_0x26bd78)=>_0xbe1a1c(_0x5091b2,_0x26bd78,_0x529413),_0x45d24c=(_0x52da18,_0x5efe08,_0x1b9e76)=>_0x1c6aee(_0x52da18,typeof _0x5efe08!=_0x4abdf5(0x24d)?_0x5efe08+'':_0x5efe08,_0x1b9e76);const _0x209289='UNIVER_LIVE_SHARE_PLUGIN';_0x7a124f[_0x4abdf5(0x2dc)]=class extends _0x465feb['Plugin']{constructor(_0x21a00a=_0x30e85e,_0x29f51e,_0x5d653d){var _0xd5aed9=_0x4abdf5;super(),this['_config']=_0x21a00a,this[_0xd5aed9(0x2be)]=_0x29f51e,this[_0xd5aed9(0x2b9)]=_0x5d653d;const {..._0x190b78}=_0x465feb[_0xd5aed9(0x1f0)]({},_0x30e85e,this[_0xd5aed9(0x2b8)]);this[_0xd5aed9(0x2b9)][_0xd5aed9(0x233)](_0x1f1091,_0x190b78);}[_0x4abdf5(0x27c)](){var _0x56cbbe=_0x4abdf5;_0x465feb['registerDependencies'](this[_0x56cbbe(0x2be)],_0x465feb[_0x56cbbe(0x2b3)]([[_0x3206c2],[_0x7a124f['LiveShareController']],[_0x2ce02d],[_0x7a124f[_0x56cbbe(0x294)]]],this['_config'][_0x56cbbe(0x2bd)])),_0x465feb['touchDependencies'](this['_injector'],[[_0x2ce02d]]);}['onRendered'](){var _0x5a6802=_0x4abdf5;_0x465feb[_0x5a6802(0x298)](this[_0x5a6802(0x2be)],[[_0x7a124f[_0x5a6802(0x294)]]]);}},_0x45d24c(_0x7a124f[_0x4abdf5(0x2dc)],_0x4abdf5(0x26c),_0x465feb[_0x4abdf5(0x250)][_0x4abdf5(0x24e)]),_0x45d24c(_0x7a124f[_0x4abdf5(0x2dc)],_0x4abdf5(0x1f4),_0x209289),_0x7a124f[_0x4abdf5(0x2dc)]=_0x3a7204([_0x465feb['DependentOn'](_0x21e19d[_0x4abdf5(0x1f2)]),_0x5aebf9(0x1,_0x465feb[_0x4abdf5(0x290)](_0x465feb['Injector'])),_0x5aebf9(0x2,_0x465feb['IConfigService'])],_0x7a124f[_0x4abdf5(0x2dc)]),_0x7a124f[_0x4abdf5(0x2d0)]=_0x41ba05,_0x7a124f[_0x4abdf5(0x2ae)]=_0x3206c2,_0x7a124f[_0x4abdf5(0x273)]=_0x11a9f5,Object[_0x4abdf5(0x1ff)](_0x7a124f,Symbol[_0x4abdf5(0x299)],{'value':'Module'});}));function _0xaefe(_0x4ef5f4,_0x129fb3){var _0x43f495=_0x43f4();return _0xaefe=function(_0xaefed0,_0x251354){_0xaefed0=_0xaefed0-0x1e5;var _0x2ac36a=_0x43f495[_0xaefed0];return _0x2ac36a;},_0xaefe(_0x4ef5f4,_0x129fb3);}function _0x43f4(){var _0x268364=['unitId','connectInjector','@univerjs-pro/collaboration','override','_injector','getLiveShareCoordinator','call','send','You\x27re\x20not\x20following\x20the\x20presenter','OPERATION','apply','748fmMdyU','react/jsx-runtime','createElement','executeCommand','subscribe','jsxs','getConfig','getInitialStates','startFollowing','rxjs/operators','dispose','LiveShare','87790tizNkZ','_collabSessionService','complete','SessionStatus','You\x27are\x20offline.','Start\x20following','children','5SjWpKq','SetWorksheetActiveOperation','set','LIVESHARE_OPERATION','UniverLiveSharePlugin','current','sheet','extend','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_unitID','className','throttleTime','_reporters','CollaborationEvent','_handleOffline','operations','Fragment','registerInitialStateReporter','merge','div','UniverCollaborationClientPlugin','OFFLINE','pluginName','RxDisposable','getCurrentTypeOfUnit$','IConfigService','_handleOperation','idSuffix','mask','onCommandExecuted','stopPresenting','1271268aUdUZn','displayName','defineProperty','584pWcTEc','IUniverInstanceService','_univerInstanceService','6052uesXwI','values','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','next','UniverSheetsUi','forwardRef','colorChannel1','DisposableCollection','LiveShareIcon','presenting','LiveShareCoordinator','13669GDREUg','object','random','_startFollowing','useState','ICommandService','prototype','toDisposable','tag','LIVESHARE_REQUEST_HOST','http://www.w3.org/2000/svg','defs','UniverProLiveShare','add','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','following','ONLINE','clear','Subject','useRef','UNIVER_SHEET','Button','LIVESHARE_TERMINATE','url(#$1','params','_collabSession','CommandType','_startLiveShareCoordinator','_beIdle','amd','parseProtocolChangeset','end','pipe','getValue','offline','NEW_CHANGESETS','_presenter','setConfig','UniverUi','get','find','1191GtABPZ','takeUntil','default','then','dispose$','init','function','LIVESHARE_FETCH_OPERATIONS','live-share-icon','_handleNewChangeSets','presenter','exports','SetScrollOperation','_handleTerminate','UniverProCollaboration','_uiPartsService','useDependency','idle','data','@univerjs/design','1370988yfaRRC','has','symbol','UNIVER_UNKNOWN','InsertSheetMutation','UniverInstanceType','Start','text','IUIPartsService','102sZtVLh','1888122BRZEBx','shouldShareOperation','LiveShareController','parse','PRESENTING','status$','useEffect','_commandService','toString','_handleOnline','map','UniverSheets','Stop\x20following','length','univerjs-icon\x20univerjs-icon-','FOLLOWING','tryStartPresenting','_status$','_stopFollowing','stringify','live-share.config','concat','button','type','Stop\x20presenting','disposeWithMe','react','stopFollowing','UniverIcon','_init','LiveShareStatus','getTypeOfUnitAdded$','rxjs','delete','SAME_OPERATION_SHARE_INTERVAL','IDLE','mutations','from','SetZoomRatioOperation','onStarting','not-following','@univerjs/core','event$','evenodd','univer-mb-3\x20univer-w-full\x20univer-text-sm','registerComponent','sessionStatus$','univer-size-4','getMemberID','getTypeOfUnitDisposed$','98329olSomz','_liveShareService','UniverDesign','_handleNewHost','_mountLiveShare','icon','memberID','_stopPresenting','asObservable','Inject','getOwnPropertySymbols','@univerjs/sheets-ui','_commandDisposable','DesktopLiveShareController','forEach','substring','_status','touchDependencies','toStringTag','xlink:href','defIds','_sharedOperations','fill','getOwnPropertyDescriptor','requireSession','includes','createInstance','_entities','entries','svg','_startPresenting','Injector','React','getUnitId','unsubscribe','Dropdown','NOT_FOLLOWING','clsx','hasOwnProperty','LiveShareService','currentColor','assign','@univerjs-pro/collaboration-client','@univerjs/ui','mergeOverrideWithDependencies','string','jsx','registerSharedOperation','attrs','_config','_configService'];_0x43f4=function(){return _0x268364;};return _0x43f4();}
1
+ (function(_0x8fc982,_0x349e9f){var _0x32dc5d=_0x6915,_0x257837=_0x8fc982();while(!![]){try{var _0x5c23ca=parseInt(_0x32dc5d(0x1b3))/0x1*(parseInt(_0x32dc5d(0x243))/0x2)+parseInt(_0x32dc5d(0x272))/0x3*(-parseInt(_0x32dc5d(0x224))/0x4)+parseInt(_0x32dc5d(0x1d0))/0x5*(-parseInt(_0x32dc5d(0x203))/0x6)+parseInt(_0x32dc5d(0x1c1))/0x7*(parseInt(_0x32dc5d(0x1ae))/0x8)+-parseInt(_0x32dc5d(0x265))/0x9+-parseInt(_0x32dc5d(0x1ed))/0xa+parseInt(_0x32dc5d(0x1f1))/0xb;if(_0x5c23ca===_0x349e9f)break;else _0x257837['push'](_0x257837['shift']());}catch(_0xa67862){_0x257837['push'](_0x257837['shift']());}}}(_0x18a6,0x57128),function(_0x458a95,_0x5b747b){var _0x113d13=_0x6915;typeof exports==_0x113d13(0x29b)&&typeof module<'u'?_0x5b747b(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define==_0x113d13(0x230)&&define[_0x113d13(0x294)]?define([_0x113d13(0x20f),'@univerjs-pro/collaboration-client','@univerjs/core',_0x113d13(0x26a),_0x113d13(0x1c6),_0x113d13(0x28f),_0x113d13(0x1a8),_0x113d13(0x1bb),_0x113d13(0x212),_0x113d13(0x219),_0x113d13(0x1a9),_0x113d13(0x293)],_0x5b747b):(_0x458a95=typeof globalThis<'u'?globalThis:_0x458a95||self,_0x5b747b(_0x458a95[_0x113d13(0x22c)]={},_0x458a95[_0x113d13(0x221)],_0x458a95[_0x113d13(0x1d3)],_0x458a95[_0x113d13(0x238)],_0x458a95['UniverSheetsUi'],_0x458a95[_0x113d13(0x288)],_0x458a95[_0x113d13(0x207)],_0x458a95[_0x113d13(0x223)],_0x458a95[_0x113d13(0x207)],_0x458a95[_0x113d13(0x25a)],_0x458a95[_0x113d13(0x1a9)],_0x458a95[_0x113d13(0x1a9)][_0x113d13(0x1f0)]));}(this,function(_0x56259b,_0x25c12f,_0x2b7017,_0x2dcc44,_0x483512,_0x558d9b,_0x1baef6,_0x4f2ab1,_0x5c1116,_0x3c711c,_0x298f1e,_0x5e4e89){'use strict';var _0x2dae78=_0x6915;var _0xbb4e6=Object[_0x2dae78(0x1e6)],_0x2186ed=(_0x495420,_0x3189dd,_0x539851)=>_0x3189dd in _0x495420?_0xbb4e6(_0x495420,_0x3189dd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x539851}):_0x495420[_0x3189dd]=_0x539851,_0x173f71=(_0x4b5f96,_0x59f388,_0x4e0be6)=>_0x2186ed(_0x4b5f96,typeof _0x59f388!='symbol'?_0x59f388+'':_0x59f388,_0x4e0be6);const _0x245a56=_0x2dae78(0x21e),_0x1f924c={};class _0x561933 extends _0x2b7017['Disposable']{constructor(){var _0x1b63be=_0x2dae78;super(...arguments),_0x173f71(this,_0x1b63be(0x1d6),new Set()),_0x173f71(this,_0x1b63be(0x23b),new Set());}[_0x2dae78(0x261)](_0x2f57b4){var _0x839a26=_0x2dae78;return this[_0x839a26(0x1d6)][_0x839a26(0x1b8)](_0x2f57b4),_0x2b7017['toDisposable'](()=>this[_0x839a26(0x1d6)]['delete'](_0x2f57b4));}[_0x2dae78(0x253)](_0x325b80){var _0x51187d=_0x2dae78;return this['_reporters'][_0x51187d(0x1b8)](_0x325b80),_0x2b7017[_0x51187d(0x1d1)](()=>this[_0x51187d(0x23b)][_0x51187d(0x1b6)](_0x325b80));}[_0x2dae78(0x29d)](_0x172dc7){var _0x350b48=_0x2dae78;return this[_0x350b48(0x1d6)][_0x350b48(0x21d)](_0x172dc7);}['getInitialStates'](_0xa065e2){var _0x55eed9=_0x2dae78;return Array[_0x55eed9(0x247)](this[_0x55eed9(0x23b)])['map'](_0x5d7c36=>_0x5d7c36(_0xa065e2));}}var _0x31f5ce=Object[_0x2dae78(0x246)],_0x136645=(_0x1f1f76,_0x5b3f41,_0x1e88c9,_0x1956fb)=>{var _0x3e7c3e=_0x2dae78;for(var _0x39b618=_0x1956fb>0x1?void 0x0:_0x1956fb?_0x31f5ce(_0x5b3f41,_0x1e88c9):_0x5b3f41,_0x5e172c=_0x1f1f76[_0x3e7c3e(0x209)]-0x1,_0x5ca725;_0x5e172c>=0x0;_0x5e172c--)(_0x5ca725=_0x1f1f76[_0x5e172c])&&(_0x39b618=_0x5ca725(_0x39b618)||_0x39b618);return _0x39b618;},_0x284e80=(_0x362edc,_0x272936)=>(_0x285c1a,_0x22f433)=>_0x272936(_0x285c1a,_0x22f433,_0x362edc);let _0x29c2bc=class extends _0x2b7017[_0x2dae78(0x1b0)]{constructor(_0x58e077){var _0x4d7962=_0x2dae78;super(),this[_0x4d7962(0x244)]=_0x58e077,this['_init']();}[_0x2dae78(0x1d9)](){var _0x5e497e=_0x2dae78;[_0x483512['SetZoomRatioOperation']['id'],_0x483512['SetScrollOperation']['id'],_0x2dcc44[_0x5e497e(0x1ad)]['id']][_0x5e497e(0x1bd)](_0x218c9e=>{var _0x27e900=_0x5e497e;this[_0x27e900(0x24a)](this['_liveShareService'][_0x27e900(0x261)](_0x218c9e));});}};_0x29c2bc=_0x136645([_0x284e80(0x0,_0x2b7017['Inject'](_0x561933))],_0x29c2bc);var _0x37a525=function(){var _0x159c67=_0x2dae78;return _0x37a525=Object[_0x159c67(0x1e7)]||function(_0x2d5cc6){var _0x1a6092=_0x159c67;for(var _0xad2d72,_0x9b8ce5=0x1,_0x3513cd=arguments[_0x1a6092(0x209)];_0x9b8ce5<_0x3513cd;_0x9b8ce5++){_0xad2d72=arguments[_0x9b8ce5];for(var _0x45a02d in _0xad2d72)Object[_0x1a6092(0x1a4)]['hasOwnProperty'][_0x1a6092(0x281)](_0xad2d72,_0x45a02d)&&(_0x2d5cc6[_0x45a02d]=_0xad2d72[_0x45a02d]);}return _0x2d5cc6;},_0x37a525[_0x159c67(0x226)](this,arguments);},_0x502002=function(_0x89fdb2,_0x27a215){var _0x2d3468=_0x2dae78,_0x4117a4={};for(var _0x55b9d1 in _0x89fdb2)Object[_0x2d3468(0x1a4)][_0x2d3468(0x1c7)][_0x2d3468(0x281)](_0x89fdb2,_0x55b9d1)&&_0x27a215[_0x2d3468(0x295)](_0x55b9d1)<0x0&&(_0x4117a4[_0x55b9d1]=_0x89fdb2[_0x55b9d1]);if(_0x89fdb2!=null&&typeof Object[_0x2d3468(0x1ff)]==_0x2d3468(0x230)){for(var _0x7e7f6d=0x0,_0x55b9d1=Object['getOwnPropertySymbols'](_0x89fdb2);_0x7e7f6d<_0x55b9d1[_0x2d3468(0x209)];_0x7e7f6d++)_0x27a215['indexOf'](_0x55b9d1[_0x7e7f6d])<0x0&&Object[_0x2d3468(0x1a4)][_0x2d3468(0x1ea)][_0x2d3468(0x281)](_0x89fdb2,_0x55b9d1[_0x7e7f6d])&&(_0x4117a4[_0x55b9d1[_0x7e7f6d]]=_0x89fdb2[_0x55b9d1[_0x7e7f6d]]);}return _0x4117a4;},_0x3b5527=_0x5c1116[_0x2dae78(0x1e9)](function(_0x3c97c1,_0xda89d){var _0x225f56=_0x2dae78,_0x485157=_0x3c97c1[_0x225f56(0x211)],_0x447b1b=_0x3c97c1['id'],_0x4e5471=_0x3c97c1[_0x225f56(0x214)],_0x517452=_0x3c97c1[_0x225f56(0x240)],_0xac121f=_0x502002(_0x3c97c1,['icon','id',_0x225f56(0x214),_0x225f56(0x240)]),_0x376f98=_0x225f56(0x1b5)[_0x225f56(0x255)](_0x447b1b,'\x20')[_0x225f56(0x255)](_0x4e5471||'')[_0x225f56(0x1fc)](),_0x4c4880=_0x5c1116[_0x225f56(0x29c)]('_'[_0x225f56(0x255)](_0x458c40()));return _0x170f3e(_0x485157,''[_0x225f56(0x255)](_0x447b1b),{'defIds':_0x485157[_0x225f56(0x200)],'idSuffix':_0x4c4880[_0x225f56(0x259)]},_0x37a525({'ref':_0xda89d,'className':_0x376f98},_0xac121f),_0x517452);});function _0x170f3e(_0x5a7212,_0x2706f8,_0x5a67a5,_0xe337cb,_0x529fc3){var _0x494119=_0x2dae78;return _0x5c1116[_0x494119(0x205)](_0x5a7212['tag'],_0x37a525(_0x37a525({'key':_0x2706f8},_0x48b829(_0x5a7212,_0x5a67a5,_0x529fc3)),_0xe337cb),(_0x101075(_0x5a7212,_0x5a67a5)[_0x494119(0x21f)]||[])[_0x494119(0x206)](function(_0x36019e,_0x5bf622){var _0x5b23a7=_0x494119;return _0x170f3e(_0x36019e,''[_0x5b23a7(0x255)](_0x2706f8,'-')[_0x5b23a7(0x255)](_0x5a7212[_0x5b23a7(0x202)],'-')[_0x5b23a7(0x255)](_0x5bf622),_0x5a67a5,void 0x0,_0x529fc3);}));}function _0x48b829(_0x353084,_0x3c4c25,_0x8018a){var _0x3da6d2=_0x2dae78,_0x56b614=_0x37a525({},_0x353084['attrs']);_0x8018a!=null&&_0x8018a[_0x3da6d2(0x27e)]&&_0x56b614[_0x3da6d2(0x23e)]==='colorChannel1'&&(_0x56b614[_0x3da6d2(0x23e)]=_0x8018a['colorChannel1']),_0x353084[_0x3da6d2(0x202)]===_0x3da6d2(0x1d8)&&_0x56b614['id']&&(_0x56b614['id']=_0x56b614['id']+_0x3c4c25['idSuffix']),Object[_0x3da6d2(0x269)](_0x56b614)[_0x3da6d2(0x1bd)](function(_0x26a66a){var _0x7507c0=_0x3da6d2,_0x4b4eb0=_0x26a66a[0x0],_0x444fce=_0x26a66a[0x1];_0x4b4eb0===_0x7507c0(0x1d8)&&typeof _0x444fce=='string'&&(_0x56b614[_0x4b4eb0]=_0x444fce[_0x7507c0(0x25f)](/url\(#(.*)\)/,_0x7507c0(0x252)['concat'](_0x3c4c25['idSuffix'],')')));});var _0x166757=_0x3c4c25[_0x3da6d2(0x200)];return!_0x166757||_0x166757[_0x3da6d2(0x209)]===0x0||(_0x353084[_0x3da6d2(0x202)]===_0x3da6d2(0x251)&&_0x56b614[_0x3da6d2(0x1f9)]&&(_0x56b614[_0x3da6d2(0x1f9)]=_0x56b614['xlink:href']+_0x3c4c25[_0x3da6d2(0x227)]),Object[_0x3da6d2(0x269)](_0x56b614)[_0x3da6d2(0x1bd)](function(_0x1dc433){var _0x4ee982=_0x3da6d2,_0x3982ff=_0x1dc433[0x0],_0x2b925a=_0x1dc433[0x1];typeof _0x2b925a==_0x4ee982(0x24f)&&(_0x56b614[_0x3982ff]=_0x2b925a[_0x4ee982(0x25f)](/url\(#(.*)\)/,_0x4ee982(0x252)['concat'](_0x3c4c25[_0x4ee982(0x227)],')')));})),_0x56b614;}function _0x101075(_0x4a6b7c,_0x287fb8){var _0x16e006=_0x2dae78,_0x288ff7,_0x4f34cf=_0x287fb8[_0x16e006(0x200)];return!_0x4f34cf||_0x4f34cf[_0x16e006(0x209)]===0x0?_0x4a6b7c:_0x4a6b7c[_0x16e006(0x202)]===_0x16e006(0x1fe)&&(!((_0x288ff7=_0x4a6b7c[_0x16e006(0x21f)])===null||_0x288ff7===void 0x0)&&_0x288ff7['length'])?_0x37a525(_0x37a525({},_0x4a6b7c),{'children':_0x4a6b7c[_0x16e006(0x21f)][_0x16e006(0x206)](function(_0x4e08bc){var _0x21c902=_0x16e006;return typeof _0x4e08bc[_0x21c902(0x1a3)]['id']=='string'&&_0x4f34cf&&_0x4f34cf[_0x21c902(0x208)](_0x4e08bc[_0x21c902(0x1a3)]['id'])?_0x37a525(_0x37a525({},_0x4e08bc),{'attrs':_0x37a525(_0x37a525({},_0x4e08bc[_0x21c902(0x1a3)]),{'id':_0x4e08bc['attrs']['id']+_0x287fb8[_0x21c902(0x227)]})}):_0x4e08bc;})}):_0x4a6b7c;}function _0x458c40(){var _0x334ce7=_0x2dae78;return Math[_0x334ce7(0x1bc)]()[_0x334ce7(0x278)](0x24)[_0x334ce7(0x273)](0x2,0x8);}_0x3b5527[_0x2dae78(0x283)]='UniverIcon';var _0x2df275={'tag':_0x2dae78(0x20a),'attrs':{'xmlns':_0x2dae78(0x1de),'fill':'none','viewBox':_0x2dae78(0x274),'width':_0x2dae78(0x1e8),'height':'1em'},'children':[{'tag':_0x2dae78(0x1cd),'attrs':{'fill':_0x2dae78(0x287),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x2dae78(0x287),'d':_0x2dae78(0x1c3),'fillRule':_0x2dae78(0x1c2),'clipRule':'evenodd'}}]},_0x34ee0e=_0x5c1116['forwardRef'](function(_0x4d585a,_0x56c3fd){var _0xecb1fb=_0x2dae78;return _0x5c1116[_0xecb1fb(0x205)](_0x3b5527,Object[_0xecb1fb(0x1e7)]({},_0x4d585a,{'id':_0xecb1fb(0x271),'ref':_0x56c3fd,'icon':_0x2df275}));});_0x34ee0e[_0x2dae78(0x283)]=_0x2dae78(0x290);var _0x4663d4=Object['getOwnPropertyDescriptor'],_0x3ddac3=(_0xdf5b9a,_0xff3aca,_0x31b648,_0x3094cf)=>{for(var _0x23d8a8=_0x3094cf>0x1?void 0x0:_0x3094cf?_0x4663d4(_0xff3aca,_0x31b648):_0xff3aca,_0xf8e404=_0xdf5b9a['length']-0x1,_0x332839;_0xf8e404>=0x0;_0xf8e404--)(_0x332839=_0xdf5b9a[_0xf8e404])&&(_0x23d8a8=_0x332839(_0x23d8a8)||_0x23d8a8);return _0x23d8a8;},_0x3c706d=(_0x4236f1,_0x332786)=>(_0x3a5acf,_0x12e8ca)=>_0x332786(_0x3a5acf,_0x12e8ca,_0x4236f1);_0x56259b['LiveShareController']=class extends _0x2b7017[_0x2dae78(0x1c5)]{constructor(_0x4b2c0a,_0x36ce6a,_0x19b537){var _0x5a1617=_0x2dae78;super(),_0x173f71(this,'_entities',new Map()),(this['_univerInstanceService']=_0x4b2c0a,this[_0x5a1617(0x28e)]=_0x36ce6a,this['_collabSessionService']=_0x19b537,this[_0x5a1617(0x1d9)]());}async[_0x2dae78(0x1dd)](_0x378de0){var _0x4edf33=_0x2dae78;return this[_0x4edf33(0x22f)][_0x4edf33(0x21d)](_0x378de0)||await this[_0x4edf33(0x21b)](_0x378de0),this[_0x4edf33(0x22f)][_0x4edf33(0x220)](_0x378de0);}['_init'](){var _0x4d0a39=_0x2dae78;this[_0x4d0a39(0x1d7)][_0x4d0a39(0x24b)](_0x2b7017[_0x4d0a39(0x249)][_0x4d0a39(0x250)])['pipe'](_0x5e4e89[_0x4d0a39(0x210)](this[_0x4d0a39(0x296)]))[_0x4d0a39(0x26f)](async _0x3cd509=>{var _0x1e4abc=_0x4d0a39;const _0x31f3a0=_0x3cd509[_0x1e4abc(0x23c)]();this[_0x1e4abc(0x22f)][_0x1e4abc(0x21d)](_0x31f3a0)||this[_0x1e4abc(0x21b)](_0x31f3a0);}),this[_0x4d0a39(0x1d7)]['getTypeOfUnitDisposed$'](_0x2b7017[_0x4d0a39(0x249)]['UNIVER_SHEET'])[_0x4d0a39(0x279)](_0x5e4e89[_0x4d0a39(0x210)](this['dispose$']))['subscribe'](_0x185184=>{var _0x303e6f=_0x4d0a39;const _0x3e69d7=_0x185184[_0x303e6f(0x23c)](),_0x5f362b=this[_0x303e6f(0x22f)][_0x303e6f(0x220)](_0x3e69d7);_0x5f362b==null||_0x5f362b['dispose']();});}async['_startLiveShareCoordinator'](_0x38ae8f){var _0x72ebd=_0x2dae78;const _0x4a986d=await this[_0x72ebd(0x262)][_0x72ebd(0x1cc)](_0x38ae8f),_0xf1d85e=this[_0x72ebd(0x28e)]['createInstance'](_0x56259b[_0x72ebd(0x1fd)],_0x38ae8f,_0x4a986d);return _0xf1d85e[_0x72ebd(0x1ac)](),this[_0x72ebd(0x22f)]['set'](_0x38ae8f,_0xf1d85e),_0xf1d85e;}},_0x56259b['LiveShareController']=_0x3ddac3([_0x3c706d(0x0,_0x2b7017[_0x2dae78(0x1c8)]),_0x3c706d(0x1,_0x2b7017['Inject'](_0x2b7017['Injector'])),_0x3c706d(0x2,_0x2b7017['Inject'](_0x25c12f[_0x2dae78(0x1dc)]))],_0x56259b[_0x2dae78(0x1e2)]);var _0x8b9dfd=(_0x2e8cbf=>(_0x2e8cbf['OFFLINE']='offline',_0x2e8cbf[_0x2dae78(0x235)]=_0x2dae78(0x216),_0x2e8cbf[_0x2dae78(0x28b)]=_0x2dae78(0x23a),_0x2e8cbf[_0x2dae78(0x284)]=_0x2dae78(0x1b4),_0x2e8cbf[_0x2dae78(0x267)]='presenting',_0x2e8cbf))(_0x8b9dfd||{});const _0x25810f=_0x2dae78(0x1e0),_0x1ec601=0xc8;_0x56259b[_0x2dae78(0x1fd)]=class extends _0x2b7017[_0x2dae78(0x1c5)]{constructor(_0x1efd6f,_0x2c239c,_0x399a35,_0x5ac91e,_0x5aa2ed){var _0x10dac4=_0x2dae78;super(),_0x173f71(this,_0x10dac4(0x291),new _0x298f1e[(_0x10dac4(0x27d))](_0x10dac4(0x216))),_0x173f71(this,_0x10dac4(0x1b9),this['_status$'][_0x10dac4(0x233)]()),_0x173f71(this,_0x10dac4(0x1d9),!0x1),_0x173f71(this,_0x10dac4(0x258),null),_0x173f71(this,_0x10dac4(0x231),null),(this[_0x10dac4(0x280)]=_0x1efd6f,this[_0x10dac4(0x234)]=_0x2c239c,this[_0x10dac4(0x298)]=_0x399a35,this[_0x10dac4(0x244)]=_0x5ac91e,this[_0x10dac4(0x289)]=_0x5aa2ed);}get[_0x2dae78(0x275)](){var _0x43932b=_0x2dae78;return this[_0x43932b(0x291)][_0x43932b(0x1d4)]();}[_0x2dae78(0x22a)](){var _0x3dcbf8=_0x2dae78,_0x1a5f20;(_0x1a5f20=this[_0x3dcbf8(0x258)])==null||_0x1a5f20[_0x3dcbf8(0x22a)](),this['_status$'][_0x3dcbf8(0x27b)](_0x3dcbf8(0x216)),this[_0x3dcbf8(0x291)][_0x3dcbf8(0x217)]();}[_0x2dae78(0x1ac)](){var _0x4b918f=_0x2dae78;this[_0x4b918f(0x1d9)]||(this[_0x4b918f(0x1d9)]=!0x0,this[_0x4b918f(0x234)][_0x4b918f(0x285)]['pipe'](_0x5e4e89[_0x4b918f(0x210)](this[_0x4b918f(0x296)]))['subscribe'](_0x2868c6=>{var _0x13cebd=_0x4b918f;switch(_0x2868c6){case _0x25c12f['SessionStatus'][_0x13cebd(0x1e1)]:this[_0x13cebd(0x299)]();break;case _0x25c12f[_0x13cebd(0x21a)][_0x13cebd(0x218)]:this['_handleOnline']();break;}}),this['_collabSession']['event$']['pipe'](_0x5e4e89['takeUntil'](this[_0x4b918f(0x296)]))[_0x4b918f(0x26f)](_0x1c6e0b=>{var _0x10fa84=_0x4b918f;const {eventID:_0x2f4b0c}=_0x1c6e0b;switch(_0x2f4b0c){case _0x3c711c[_0x10fa84(0x1b7)][_0x10fa84(0x260)]:this[_0x10fa84(0x277)](_0x1c6e0b);break;case _0x3c711c['CollaborationEvent'][_0x10fa84(0x286)]:this[_0x10fa84(0x236)](_0x1c6e0b);break;case _0x3c711c[_0x10fa84(0x1b7)][_0x10fa84(0x29a)]:this[_0x10fa84(0x1f2)]();break;case _0x3c711c[_0x10fa84(0x1b7)][_0x10fa84(0x215)]:this['_handleNewChangeSets'](_0x1c6e0b);break;}}));}[_0x2dae78(0x1ee)](){var _0x47bb77=_0x2dae78;this[_0x47bb77(0x234)][_0x47bb77(0x228)]({'eventID':_0x3c711c[_0x47bb77(0x1b7)][_0x47bb77(0x1d2)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x47bb77(0x256)]()}},this[_0x47bb77(0x280)]);}[_0x2dae78(0x24d)](){var _0x1a4dd1=_0x2dae78;this[_0x1a4dd1(0x275)]===_0x1a4dd1(0x26c)&&(this['_status$']['next'](_0x1a4dd1(0x216)),this[_0x1a4dd1(0x234)]['send']({'eventID':_0x3c711c['CollaborationEvent'][_0x1a4dd1(0x29a)],'data':{'unitID':this[_0x1a4dd1(0x280)]}},this[_0x1a4dd1(0x280)]));}[_0x2dae78(0x1ef)](){var _0x49ff62=_0x2dae78;this['_status']==='not-following'&&(this[_0x49ff62(0x291)][_0x49ff62(0x27b)](_0x49ff62(0x23a)),this[_0x49ff62(0x263)]());}[_0x2dae78(0x1a6)](){var _0x5f09c7=_0x2dae78;this[_0x5f09c7(0x275)]==='following'&&this[_0x5f09c7(0x20b)]();}[_0x2dae78(0x277)](_0x498175){var _0x5295db=_0x2dae78;const {presenter:_0x35f540}=_0x498175[_0x5295db(0x1ba)],_0xfe4a3b=this[_0x5295db(0x234)][_0x5295db(0x256)]();this[_0x5295db(0x231)]=_0x35f540,_0x35f540===_0xfe4a3b?(this['_stopFollowing'](),this[_0x5295db(0x23f)]()):this[_0x5295db(0x275)]!==_0x5295db(0x1b4)&&(this[_0x5295db(0x20d)](),this['_startFollowing']());}['_fetchOperations'](){var _0x11c528=_0x2dae78;const _0x3444b6={'eventID':_0x3c711c['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x11c528(0x228)](_0x3444b6,this[_0x11c528(0x280)]);}['_handleTerminate'](){var _0x353f90=_0x2dae78;this[_0x353f90(0x231)]=null,this[_0x353f90(0x275)]!==_0x353f90(0x26c)&&this[_0x353f90(0x1fb)]();}[_0x2dae78(0x242)](_0x1d9eda){var _0x296564=_0x2dae78;if(this[_0x296564(0x275)]==='following'&&this[_0x296564(0x231)]===_0x1d9eda[_0x296564(0x1ba)][_0x296564(0x28c)]){const _0x222200=_0x3c711c[_0x296564(0x257)](_0x1d9eda[_0x296564(0x1ba)])[_0x296564(0x1f7)][_0x296564(0x1f5)]()[_0x296564(0x204)](_0x2bcf3a=>_0x2bcf3a['id']===_0x2dcc44['InsertSheetMutation']['id']);if(_0x222200){const _0x255ff0=_0x222200[_0x296564(0x25c)][_0x296564(0x28a)],_0x3f527a=_0x222200['params'][_0x296564(0x1d5)]['id'];setTimeout(()=>{var _0x279ec3=_0x296564;this[_0x279ec3(0x289)][_0x279ec3(0x270)](_0x2dcc44[_0x279ec3(0x1ad)]['id'],{'unitId':_0x255ff0,'subUnitId':_0x3f527a},{'fromCollab':!0x0});});}}}[_0x2dae78(0x23f)](){var _0x3980f9=_0x2dae78;this[_0x3980f9(0x291)][_0x3980f9(0x27b)]('presenting');const _0x4956d3=new Map(),_0xfa15c9=this[_0x3980f9(0x258)]=new _0x2b7017[(_0x3980f9(0x232))]();_0xfa15c9['add'](_0x2b7017[_0x3980f9(0x1d1)](()=>{var _0x587775=_0x3980f9;_0x4956d3['forEach'](_0x113086=>_0x113086['complete']()),_0x4956d3[_0x587775(0x28d)]();})),_0xfa15c9['add'](this['_commandService']['onCommandExecuted'](_0xe2e216=>{var _0xb56a76=_0x3980f9,_0x51c7aa;if(_0xe2e216[_0xb56a76(0x276)]!==_0x2b7017[_0xb56a76(0x1c9)]['OPERATION']||!this[_0xb56a76(0x244)]['shouldShareOperation'](_0xe2e216['id']))return;const {id:_0x44db50}=_0xe2e216;let _0x567999;_0x4956d3[_0xb56a76(0x21d)](_0x44db50)?_0x567999=_0x4956d3[_0xb56a76(0x220)](_0x44db50):(_0x567999=new _0x298f1e[(_0xb56a76(0x248))](),_0x4956d3[_0xb56a76(0x1f3)](_0x44db50,_0x567999),_0x567999[_0xb56a76(0x279)](_0x5e4e89['throttleTime']((_0x51c7aa=this['_configService'][_0xb56a76(0x1b2)](_0x25810f))!=null?_0x51c7aa:_0x1ec601,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xb56a76(0x26f)](_0x289eca=>{var _0x25a6d7=_0xb56a76;this['_collabSession'][_0x25a6d7(0x228)]({'eventID':_0x3c711c['CollaborationEvent'][_0x25a6d7(0x286)],'data':{'unitID':this[_0x25a6d7(0x280)],'operations':{[_0x289eca['id']]:{'id':_0x289eca['id'],'params':JSON[_0x25a6d7(0x26e)](_0x289eca[_0x25a6d7(0x25c)])}}}},this['_unitID']);})),_0x567999[_0xb56a76(0x27b)](_0xe2e216);})),this['_liveShareService']['getInitialStates'](this[_0x3980f9(0x280)])[_0x3980f9(0x1bd)](_0x32763f=>this[_0x3980f9(0x234)][_0x3980f9(0x228)]({'eventID':_0x3c711c[_0x3980f9(0x1b7)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x32763f['id']]:{'id':_0x32763f['id'],'params':JSON['stringify'](_0x32763f[_0x3980f9(0x25c)])}}}},this['_unitID']));}[_0x2dae78(0x20d)](){var _0x280b77=_0x2dae78,_0x5564a8;this['_status$']['next']('idle'),(_0x5564a8=this[_0x280b77(0x258)])==null||_0x5564a8['dispose'](),this['_commandDisposable']=null;}[_0x2dae78(0x263)](){var _0x15d928=_0x2dae78,_0x32a040;(_0x32a040=this[_0x15d928(0x258)])==null||_0x32a040[_0x15d928(0x22a)](),this[_0x15d928(0x291)][_0x15d928(0x27b)](_0x15d928(0x23a));}['_beIdle'](){var _0x10ba0f=_0x2dae78,_0x5eedea;this[_0x10ba0f(0x291)]['next']('idle'),(_0x5eedea=this[_0x10ba0f(0x258)])==null||_0x5eedea['dispose'](),this[_0x10ba0f(0x258)]=null;}['_stopFollowing'](){var _0x156b87=_0x2dae78,_0x54b74b;this[_0x156b87(0x291)][_0x156b87(0x27b)]('not-following'),(_0x54b74b=this[_0x156b87(0x258)])==null||_0x54b74b[_0x156b87(0x22a)]();}['_handleOperation'](_0x4b05dc){var _0x57fc89=_0x2dae78;if([_0x57fc89(0x26c),'not-following',_0x57fc89(0x1fa)][_0x57fc89(0x208)](this['_status'])||!_0x4b05dc[_0x57fc89(0x1ba)][_0x57fc89(0x1df)]||_0x4b05dc[_0x57fc89(0x1ba)][_0x57fc89(0x1df)]===this[_0x57fc89(0x234)][_0x57fc89(0x256)]())return;this['_status']===_0x57fc89(0x216)&&this[_0x57fc89(0x263)]();const _0xdb73f6=_0x4b05dc[_0x57fc89(0x1ba)][_0x57fc89(0x1eb)];Object[_0x57fc89(0x27f)](_0xdb73f6)[_0x57fc89(0x1bd)](_0xf59f54=>{var _0x11f823=_0x57fc89;this[_0x11f823(0x289)]['executeCommand'](_0xf59f54['id'],_0xf59f54[_0x11f823(0x25c)]?JSON[_0x11f823(0x25b)](_0xf59f54['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x2ebc2e=_0x2dae78,_0x2ecad0;this[_0x2ebc2e(0x291)][_0x2ebc2e(0x27b)](_0x2ebc2e(0x1fa)),(_0x2ecad0=this[_0x2ebc2e(0x258)])==null||_0x2ecad0[_0x2ebc2e(0x22a)]();}[_0x2dae78(0x27c)](){var _0x1718c4=_0x2dae78;this['_status$'][_0x1718c4(0x27b)](_0x1718c4(0x216)),this['_fetchOperations']();}},_0x56259b['LiveShareCoordinator']=_0x3ddac3([_0x3c706d(0x2,_0x2b7017[_0x2dae78(0x25e)]),_0x3c706d(0x3,_0x2b7017[_0x2dae78(0x1ce)](_0x561933)),_0x3c706d(0x4,_0x2b7017[_0x2dae78(0x239)])],_0x56259b[_0x2dae78(0x1fd)]);function _0x16e19d(){var _0x4b8b41=_0x2dae78;const _0x4c2630=_0x558d9b[_0x4b8b41(0x268)](_0x56259b[_0x4b8b41(0x1e2)]),_0x216212=_0x558d9b[_0x4b8b41(0x268)](_0x2b7017['IUniverInstanceService']),_0xdcb2e=_0x558d9b['useObservable'](()=>_0x216212[_0x4b8b41(0x1be)](_0x2b7017[_0x4b8b41(0x249)][_0x4b8b41(0x250)]),void 0x0,!0x1,[]),[_0x4fc440,_0x2c4492]=_0x5c1116[_0x4b8b41(0x1f8)](null),[_0x1c8a12,_0x58de25]=_0x5c1116[_0x4b8b41(0x1f8)](_0x8b9dfd[_0x4b8b41(0x235)]),_0x1e5d7e=_0x5c1116[_0x4b8b41(0x29c)](null);return _0x5c1116['useEffect'](()=>(_0xdcb2e&&_0x4c2630[_0x4b8b41(0x1dd)](_0xdcb2e[_0x4b8b41(0x23c)]())[_0x4b8b41(0x1bf)](_0x428784=>{var _0xfb44ea=_0x4b8b41;_0x2c4492(_0x428784),_0x1e5d7e[_0xfb44ea(0x259)]=_0x428784['status$'][_0xfb44ea(0x26f)](_0x31ecde=>{_0x58de25(_0x31ecde);});}),()=>{var _0x597cd1=_0x4b8b41,_0x1e50a7;(_0x1e50a7=_0x1e5d7e[_0x597cd1(0x259)])==null||_0x1e50a7['unsubscribe'](),_0x1e5d7e['current']=null;}),[_0xdcb2e,_0x4c2630]),_0x4fc440?_0x1baef6[_0x4b8b41(0x292)](_0x4f2ab1[_0x4b8b41(0x1f4)],{'align':_0x4b8b41(0x237),'disabled':_0x1c8a12===_0x8b9dfd[_0x4b8b41(0x1e1)],'className':_0x4b8b41(0x23d),'overlay':_0x1baef6[_0x4b8b41(0x292)](_0x5bc121,{'status':_0x1c8a12,'coordinator':_0x4fc440}),'children':_0x1baef6['jsx'](_0x4b8b41(0x22d),{'className':_0x4f2ab1['clsx'](_0x4b8b41(0x1cb),{'univer-cursor-not-allowed':_0x1c8a12===_0x8b9dfd[_0x4b8b41(0x1e1)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1c8a12!==_0x8b9dfd[_0x4b8b41(0x1e1)]}),'type':_0x4b8b41(0x22d),'children':_0x1baef6[_0x4b8b41(0x292)](_0x34ee0e,{'className':_0x4b8b41(0x1c0)})})}):null;}function _0x5bc121(_0x9803da){var _0x3a9bd=_0x2dae78;const {status:_0xe5cb8,coordinator:_0x4e8cb4}=_0x9803da;switch(_0xe5cb8){case _0x8b9dfd[_0x3a9bd(0x235)]:return _0x1baef6['jsx'](_0x532241,{'coordinator':_0x4e8cb4});case _0x8b9dfd[_0x3a9bd(0x28b)]:return _0x1baef6[_0x3a9bd(0x292)](_0x3abf8a,{'coordinator':_0x4e8cb4});case _0x8b9dfd[_0x3a9bd(0x284)]:return _0x1baef6['jsx'](_0x427554,{'coordinator':_0x4e8cb4});case _0x8b9dfd[_0x3a9bd(0x1e1)]:return _0x1baef6[_0x3a9bd(0x292)](_0x42936e,{});case _0x8b9dfd['PRESENTING']:return _0x1baef6[_0x3a9bd(0x292)](_0x457796,{'coordinator':_0x4e8cb4});default:return null;}}function _0x532241(_0x86f0ea){var _0x229152=_0x2dae78;const {coordinator:_0x547667}=_0x86f0ea;return _0x1baef6[_0x229152(0x21c)](_0x1baef6[_0x229152(0x22e)],{'children':[_0x1baef6[_0x229152(0x292)](_0x229152(0x22b),{'className':_0x229152(0x229),'children':_0x229152(0x1e5)}),_0x1baef6[_0x229152(0x292)](_0x4f2ab1[_0x229152(0x213)],{'onClick':()=>_0x547667[_0x229152(0x1ee)](),'children':_0x229152(0x24e)})]});}function _0x3abf8a(_0x438aa2){var _0x1d78d0=_0x2dae78;const {coordinator:_0x55586b}=_0x438aa2;return _0x1baef6[_0x1d78d0(0x21c)](_0x1baef6[_0x1d78d0(0x22e)],{'children':[_0x1baef6['jsx'](_0x1d78d0(0x22b),{'className':_0x1d78d0(0x229),'children':_0x1d78d0(0x1db)}),_0x1baef6[_0x1d78d0(0x292)](_0x4f2ab1[_0x1d78d0(0x213)],{'onClick':()=>_0x55586b[_0x1d78d0(0x1a6)](),'children':'Stop\x20following'})]});}function _0x427554(_0x41cba8){var _0x176c54=_0x2dae78;const {coordinator:_0x1e81ee}=_0x41cba8;return _0x1baef6[_0x176c54(0x21c)](_0x1baef6[_0x176c54(0x22e)],{'children':[_0x1baef6[_0x176c54(0x292)](_0x176c54(0x22b),{'className':_0x176c54(0x229),'children':_0x176c54(0x1f6)}),_0x1baef6[_0x176c54(0x292)](_0x4f2ab1[_0x176c54(0x213)],{'variant':_0x176c54(0x1a7),'onClick':()=>_0x1e81ee[_0x176c54(0x1ef)](),'children':_0x176c54(0x1cf)})]});}function _0x457796(_0x387812){var _0x54dc67=_0x2dae78;const {coordinator:_0x31e772}=_0x387812;return _0x1baef6[_0x54dc67(0x21c)](_0x1baef6[_0x54dc67(0x22e)],{'children':[_0x1baef6[_0x54dc67(0x292)](_0x54dc67(0x22b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x1baef6[_0x54dc67(0x292)](_0x4f2ab1['Button'],{'variant':_0x54dc67(0x225),'onClick':()=>_0x31e772[_0x54dc67(0x24d)](),'children':_0x54dc67(0x1e3)})]});}function _0x42936e(){var _0x3131ba=_0x2dae78;return _0x1baef6[_0x3131ba(0x292)](_0x1baef6[_0x3131ba(0x22e)],{'children':_0x3131ba(0x24c)});}var _0x558ecb=Object['getOwnPropertyDescriptor'],_0x14cf2e=(_0xe9b329,_0x80ccec,_0x1416ac,_0x5ba6a3)=>{var _0x4b5bab=_0x2dae78;for(var _0x4602db=_0x5ba6a3>0x1?void 0x0:_0x5ba6a3?_0x558ecb(_0x80ccec,_0x1416ac):_0x80ccec,_0x120978=_0xe9b329[_0x4b5bab(0x209)]-0x1,_0x4d61f9;_0x120978>=0x0;_0x120978--)(_0x4d61f9=_0xe9b329[_0x120978])&&(_0x4602db=_0x4d61f9(_0x4602db)||_0x4602db);return _0x4602db;},_0x2ffd78=(_0x2a6f23,_0x26f23e)=>(_0x44e0d1,_0x1bcc64)=>_0x26f23e(_0x44e0d1,_0x1bcc64,_0x2a6f23);_0x56259b['DesktopLiveShareController']=class extends _0x2b7017[_0x2dae78(0x1b0)]{constructor(_0x4e4605,_0x16267f){var _0x1c5558=_0x2dae78;super(),this['_injector']=_0x4e4605,this[_0x1c5558(0x1b1)]=_0x16267f,this[_0x1c5558(0x25d)]();}[_0x2dae78(0x25d)](){var _0x184166=_0x2dae78;this[_0x184166(0x24a)](this[_0x184166(0x1b1)][_0x184166(0x1ec)](_0x558d9b['BuiltInUIPart'][_0x184166(0x1aa)],()=>_0x558d9b[_0x184166(0x1c4)](_0x16e19d,this[_0x184166(0x28e)])));}},_0x56259b[_0x2dae78(0x26d)]=_0x14cf2e([_0x2ffd78(0x0,_0x2b7017[_0x2dae78(0x1ce)](_0x2b7017['Injector'])),_0x2ffd78(0x1,_0x558d9b[_0x2dae78(0x1da)])],_0x56259b[_0x2dae78(0x26d)]);var _0x48ac40=Object[_0x2dae78(0x1e6)],_0x2204da=Object['getOwnPropertyDescriptor'],_0x294563=(_0x35bb1b,_0x17cd48,_0x279f9d)=>_0x17cd48 in _0x35bb1b?_0x48ac40(_0x35bb1b,_0x17cd48,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x279f9d}):_0x35bb1b[_0x17cd48]=_0x279f9d,_0x362d02=(_0x594761,_0x1742e7,_0x52ae51,_0x499540)=>{var _0x3a07af=_0x2dae78;for(var _0x58d207=_0x499540>0x1?void 0x0:_0x499540?_0x2204da(_0x1742e7,_0x52ae51):_0x1742e7,_0x35850e=_0x594761[_0x3a07af(0x209)]-0x1,_0x46005c;_0x35850e>=0x0;_0x35850e--)(_0x46005c=_0x594761[_0x35850e])&&(_0x58d207=_0x46005c(_0x58d207)||_0x58d207);return _0x58d207;},_0x40bdf0=(_0x31cad6,_0x5ccf93)=>(_0x7ba73b,_0x532b3e)=>_0x5ccf93(_0x7ba73b,_0x532b3e,_0x31cad6),_0x382080=(_0x1e444f,_0x4b2165,_0x4b43ce)=>_0x294563(_0x1e444f,typeof _0x4b2165!=_0x2dae78(0x282)?_0x4b2165+'':_0x4b2165,_0x4b43ce);const _0x185fea='UNIVER_LIVE_SHARE_PLUGIN';_0x56259b[_0x2dae78(0x1ca)]=class extends _0x2b7017[_0x2dae78(0x1ab)]{constructor(_0x2dbf57=_0x1f924c,_0x2c22ef,_0x1c0694){var _0x2cb9ca=_0x2dae78;super(),this['_config']=_0x2dbf57,this[_0x2cb9ca(0x28e)]=_0x2c22ef,this[_0x2cb9ca(0x298)]=_0x1c0694;const {..._0x162b8a}=_0x2b7017[_0x2cb9ca(0x297)]({},_0x1f924c,this[_0x2cb9ca(0x254)]);this['_configService'][_0x2cb9ca(0x20e)](_0x245a56,_0x162b8a);}[_0x2dae78(0x1a5)](){var _0x3e9c03=_0x2dae78;_0x2b7017[_0x3e9c03(0x1e4)](this[_0x3e9c03(0x28e)],_0x2b7017[_0x3e9c03(0x245)]([[_0x561933],[_0x56259b[_0x3e9c03(0x1e2)]],[_0x29c2bc],[_0x56259b[_0x3e9c03(0x26d)]]],this[_0x3e9c03(0x254)][_0x3e9c03(0x20c)])),_0x2b7017[_0x3e9c03(0x26b)](this[_0x3e9c03(0x28e)],[[_0x29c2bc]]);}['onRendered'](){var _0x1471e2=_0x2dae78;_0x2b7017[_0x1471e2(0x26b)](this['_injector'],[[_0x56259b[_0x1471e2(0x26d)]]]);}},_0x382080(_0x56259b[_0x2dae78(0x1ca)],_0x2dae78(0x276),_0x2b7017['UniverInstanceType'][_0x2dae78(0x222)]),_0x382080(_0x56259b[_0x2dae78(0x1ca)],_0x2dae78(0x201),_0x185fea),_0x56259b[_0x2dae78(0x1ca)]=_0x362d02([_0x2b7017['DependentOn'](_0x25c12f[_0x2dae78(0x1af)]),_0x40bdf0(0x1,_0x2b7017[_0x2dae78(0x1ce)](_0x2b7017['Injector'])),_0x40bdf0(0x2,_0x2b7017[_0x2dae78(0x25e)])],_0x56259b[_0x2dae78(0x1ca)]),_0x56259b[_0x2dae78(0x266)]=_0x16e19d,_0x56259b[_0x2dae78(0x264)]=_0x561933,_0x56259b['LiveShareStatus']=_0x8b9dfd,Object[_0x2dae78(0x1e6)](_0x56259b,Symbol[_0x2dae78(0x27a)],{'value':_0x2dae78(0x241)});}));function _0x6915(_0x171d7e,_0x219f9f){var _0x18a681=_0x18a6();return _0x6915=function(_0x69153f,_0x4ef46f){_0x69153f=_0x69153f-0x1a3;var _0x42e104=_0x18a681[_0x69153f];return _0x42e104;},_0x6915(_0x171d7e,_0x219f9f);}function _0x18a6(){var _0x4fbf4e=['_beIdle','trim','LiveShareCoordinator','defs','getOwnPropertySymbols','defIds','pluginName','tag','1856874yIpNZw','find','createElement','map','React','includes','length','svg','_stopFollowing','override','_stopPresenting','setConfig','exports','takeUntil','icon','react','Button','className','NEW_CHANGESETS','idle','complete','ONLINE','@univerjs-pro/collaboration','SessionStatus','_startLiveShareCoordinator','jsxs','has','live-share.config','children','get','UniverProCollaborationClient','UNIVER_UNKNOWN','UniverDesign','1329392QFGstj','default','apply','idSuffix','send','univer-mb-3\x20univer-w-full\x20univer-text-sm','dispose','div','UniverProLiveShare','button','Fragment','_entities','function','_presenter','DisposableCollection','asObservable','_collabSession','IDLE','_handleOperation','end','UniverSheets','ICommandService','following','_reporters','getUnitId','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','fill','_startPresenting','extend','Module','_handleNewChangeSets','52pZZUoX','_liveShareService','mergeOverrideWithDependencies','getOwnPropertyDescriptor','from','Subject','UniverInstanceType','disposeWithMe','getTypeOfUnitAdded$','You\x27are\x20offline.','stopPresenting','Start','string','UNIVER_SHEET','use','url(#$1','registerInitialStateReporter','_config','concat','getMemberID','parseProtocolChangeset','_commandDisposable','current','UniverProCollaboration','parse','params','_mountLiveShare','IConfigService','replace','LIVESHARE_NEW_HOST','registerSharedOperation','_collabSessionService','_startFollowing','LiveShareService','6131043lhaFYX','LiveShare','PRESENTING','useDependency','entries','@univerjs/sheets','touchDependencies','presenting','DesktopLiveShareController','stringify','subscribe','executeCommand','live-share-icon','3tCdTNC','substring','0\x200\x2017\x2017','_status','type','_handleNewHost','toString','pipe','toStringTag','next','_handleOnline','BehaviorSubject','colorChannel1','values','_unitID','call','symbol','displayName','NOT_FOLLOWING','sessionStatus$','LIVESHARE_OPERATION','currentColor','UniverUi','_commandService','unitId','FOLLOWING','memberID','clear','_injector','@univerjs/ui','LiveShareIcon','_status$','jsx','rxjs/operators','amd','indexOf','dispose$','merge','_configService','_handleOffline','LIVESHARE_TERMINATE','object','useRef','shouldShareOperation','attrs','prototype','onStarting','stopFollowing','text','react/jsx-runtime','rxjs','HEADER_MENU','Plugin','init','SetWorksheetActiveOperation','1664uaqwek','UniverCollaborationClientPlugin','Disposable','_uiPartsService','getConfig','24968SSAYjZ','not-following','univerjs-icon\x20univerjs-icon-','delete','CollaborationEvent','add','status$','data','@univerjs/design','random','forEach','getCurrentTypeOfUnit$','then','univer-size-4','13244XdgiGd','evenodd','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','connectInjector','RxDisposable','@univerjs/sheets-ui','hasOwnProperty','IUniverInstanceService','CommandType','UniverLiveSharePlugin','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','requireSession','path','Inject','Start\x20following','10XUCAhh','toDisposable','LIVESHARE_REQUEST_HOST','UniverCore','getValue','sheet','_sharedOperations','_univerInstanceService','mask','_init','IUIPartsService','You\x27re\x20following\x20the\x20presenter','CollaborationSessionService','getLiveShareCoordinator','http://www.w3.org/2000/svg','presenter','SAME_OPERATION_SHARE_INTERVAL','OFFLINE','LiveShareController','Stop\x20presenting','registerDependencies','Present\x20this\x20document','defineProperty','assign','1em','forwardRef','propertyIsEnumerable','operations','registerComponent','3032700koEWXC','tryStartPresenting','startFollowing','operators','13747217bBzSVN','_handleTerminate','set','Dropdown','reverse','You\x27re\x20not\x20following\x20the\x20presenter','mutations','useState','xlink:href','offline'];_0x18a6=function(){return _0x4fbf4e;};return _0x18a6();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.9.3-nightly.202507250819",
3
+ "version": "0.9.4-nightly.202507290713",
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.6",
50
- "@univerjs-pro/collaboration": "0.9.3-nightly.202507250819",
51
- "@univerjs-pro/collaboration-client": "0.9.3-nightly.202507250819",
52
- "@univerjs/core": "0.9.3-nightly.202507250819",
53
- "@univerjs/sheets": "0.9.3-nightly.202507250819",
54
- "@univerjs/sheets-ui": "0.9.3-nightly.202507250819",
55
- "@univerjs/ui": "0.9.3-nightly.202507250819",
56
- "@univerjs/design": "0.9.3-nightly.202507250819"
50
+ "@univerjs-pro/collaboration": "0.9.4-nightly.202507290713",
51
+ "@univerjs-pro/collaboration-client": "0.9.4-nightly.202507290713",
52
+ "@univerjs/design": "0.9.4-nightly.202507290713",
53
+ "@univerjs/core": "0.9.4-nightly.202507290713",
54
+ "@univerjs/sheets": "0.9.4-nightly.202507290713",
55
+ "@univerjs/ui": "0.9.4-nightly.202507290713",
56
+ "@univerjs/sheets-ui": "0.9.4-nightly.202507290713"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.6",
@@ -61,9 +61,9 @@
61
61
  "rxjs": "7.8.2",
62
62
  "tailwindcss": "^3.4.17",
63
63
  "typescript": "^5.8.3",
64
- "vite": "^7.0.5",
64
+ "vite": "^7.0.6",
65
65
  "vitest": "^3.2.4",
66
- "@univerjs-infra/shared": "0.9.3",
66
+ "@univerjs-infra/shared": "0.9.4",
67
67
  "@univerjs/protocol": "0.1.47-alpha.0"
68
68
  },
69
69
  "scripts": {