@univerjs-pro/live-share 0.10.7-nightly.202509080357 → 0.10.7-nightly.202509130618
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +8 -8
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x1df603=_0x455a;(function(_0x3ed395,_0x24b881){var _0x46cebd=_0x455a,_0x482b09=_0x3ed395();while(!![]){try{var _0x23f598=parseInt(_0x46cebd(0x1bf))/0x1*(-parseInt(_0x46cebd(0x182))/0x2)+parseInt(_0x46cebd(0x185))/0x3*(-parseInt(_0x46cebd(0x14c))/0x4)+parseInt(_0x46cebd(0x131))/0x5*(parseInt(_0x46cebd(0x1c7))/0x6)+parseInt(_0x46cebd(0x1a8))/0x7+parseInt(_0x46cebd(0x15c))/0x8+-parseInt(_0x46cebd(0x1b9))/0x9+-parseInt(_0x46cebd(0x142))/0xa*(-parseInt(_0x46cebd(0x1e2))/0xb);if(_0x23f598===_0x24b881)break;else _0x482b09['push'](_0x482b09['shift']());}catch(_0x30b6d4){_0x482b09['push'](_0x482b09['shift']());}}}(_0x43f5,0x33f20));var U=Object[_0x1df603(0x1e7)],F=(_0x56f5a5,_0xcd5c2e,_0x37daa7)=>_0xcd5c2e in _0x56f5a5?U(_0x56f5a5,_0xcd5c2e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37daa7}):_0x56f5a5[_0xcd5c2e]=_0x37daa7,v=(_0x5324c9,_0x348b82,_0x4cc14e)=>F(_0x5324c9,typeof _0x348b82!=_0x1df603(0x1aa)?_0x348b82+'':_0x348b82,_0x4cc14e);Object[_0x1df603(0x1e7)](exports,Symbol[_0x1df603(0x181)],{'value':_0x1df603(0x1ec)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');var u=function(){var _0x5bc025=_0x1df603;return u=Object['assign']||function(_0x44b3e9){var _0xcbfa72=_0x455a;for(var _0x3c5c46,_0x1c877b=0x1,_0x1699ee=arguments[_0xcbfa72(0x1f1)];_0x1c877b<_0x1699ee;_0x1c877b++){_0x3c5c46=arguments[_0x1c877b];for(var _0x12d4e3 in _0x3c5c46)Object[_0xcbfa72(0x19f)][_0xcbfa72(0x1df)][_0xcbfa72(0x1da)](_0x3c5c46,_0x12d4e3)&&(_0x44b3e9[_0x12d4e3]=_0x3c5c46[_0x12d4e3]);}return _0x44b3e9;},u[_0x5bc025(0x1f0)](this,arguments);},$=function(_0x1d46ff,_0x4a95ae){var _0x11bf21=_0x1df603,_0x44c89c={};for(var _0x2ab826 in _0x1d46ff)Object['prototype'][_0x11bf21(0x1df)]['call'](_0x1d46ff,_0x2ab826)&&_0x4a95ae[_0x11bf21(0x18e)](_0x2ab826)<0x0&&(_0x44c89c[_0x2ab826]=_0x1d46ff[_0x2ab826]);if(_0x1d46ff!=null&&typeof Object[_0x11bf21(0x1d3)]==_0x11bf21(0x1bd)){for(var _0x1621d5=0x0,_0x2ab826=Object['getOwnPropertySymbols'](_0x1d46ff);_0x1621d5<_0x2ab826['length'];_0x1621d5++)_0x4a95ae['indexOf'](_0x2ab826[_0x1621d5])<0x0&&Object[_0x11bf21(0x19f)][_0x11bf21(0x1b8)][_0x11bf21(0x1da)](_0x1d46ff,_0x2ab826[_0x1621d5])&&(_0x44c89c[_0x2ab826[_0x1621d5]]=_0x1d46ff[_0x2ab826[_0x1621d5]]);}return _0x44c89c;},j=f[_0x1df603(0x192)](function(_0x4cf913,_0x944df0){var _0x1ad4f7=_0x1df603,_0x2b916e=_0x4cf913[_0x1ad4f7(0x122)],_0x43e624=_0x4cf913['id'],_0x6f7ee6=_0x4cf913[_0x1ad4f7(0x1a3)],_0x1c31fb=_0x4cf913[_0x1ad4f7(0x136)],_0x8bf196=$(_0x4cf913,[_0x1ad4f7(0x122),'id',_0x1ad4f7(0x1a3),'extend']),_0xa56159=_0x1ad4f7(0x1d6)[_0x1ad4f7(0x156)](_0x43e624,'\x20')['concat'](_0x6f7ee6||'')[_0x1ad4f7(0x1e4)](),_0x1e8e27=f[_0x1ad4f7(0x132)]('_'['concat'](k()));return y(_0x2b916e,''[_0x1ad4f7(0x156)](_0x43e624),{'defIds':_0x2b916e[_0x1ad4f7(0x169)],'idSuffix':_0x1e8e27['current']},u({'ref':_0x944df0,'className':_0xa56159},_0x8bf196),_0x1c31fb);});function y(_0xb85338,_0xe6b17b,_0x38290d,_0x442ee5,_0x4ee395){var _0x3f5527=_0x1df603;return f[_0x3f5527(0x144)](_0xb85338[_0x3f5527(0x154)],u(u({'key':_0xe6b17b},H(_0xb85338,_0x38290d,_0x4ee395)),_0x442ee5),(V(_0xb85338,_0x38290d)[_0x3f5527(0x1a2)]||[])[_0x3f5527(0x19b)](function(_0x1948e9,_0xcbd01e){var _0x45e0e0=_0x3f5527;return y(_0x1948e9,''[_0x45e0e0(0x156)](_0xe6b17b,'-')['concat'](_0xb85338[_0x45e0e0(0x154)],'-')['concat'](_0xcbd01e),_0x38290d,void 0x0,_0x4ee395);}));}function _0x43f5(){var _0x5ce165=['add','175068mYSUik','startFollowing','presenting','univer-size-4','registerSharedOperation','OFFLINE','replace','values','tag','string','concat','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_status','svg','pipe','HEADER_MENU','2302840ylnxIt','_reporters','_fetchOperations','_commandDisposable','params','get','_stopFollowing','onCommandExecuted','OPERATION','toString','Injector','You\x27re\x20not\x20following\x20the\x20presenter','_collabSessionService','defIds','from','UNIVER_UNKNOWN','_handleNewChangeSets','IUIPartsService','live-share-icon','CollaborationSessionService','IUniverInstanceService','dispose$','ICommandService','memberID','SetZoomRatioOperation','asObservable','operations','currentColor','_handleNewHost','NOT_FOLLOWING','Inject','getLiveShareCoordinator','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','subscribe','LIVESHARE_OPERATION','takeUntil','offline','toStringTag','214DeUcdK','_liveShareService','registerInitialStateReporter','18GLojYV','_handleOnline','stopFollowing','_injector','SetWorksheetActiveOperation','CollaborationEvent','set','has','_config','indexOf','_univerInstanceService','_startPresenting','getMemberID','forwardRef','_unitID','data','jsxs','getTypeOfUnitAdded$','LiveShareStatus','not-following','toDisposable','LiveShareIcon','map','SessionStatus','CommandType','onStarting','prototype','dispose','merge','children','className','disposeWithMe','DependentOn','useState','assign','145397aoZzEm','PRESENTING','symbol','xlink:href','jsx','use','presenter','_startFollowing','unitId','RxDisposable','event$','send','current','_init','div','reverse','propertyIsEnumerable','2772108lVWUeI','status$','path','idle','function','useDependency','1741XzKSaL','_entities','_startLiveShareCoordinator','Stop\x20following','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','UniverIcon','requireSession','LiveShare','756fTsUhB','end','colorChannel1','_handleOperation','touchDependencies','IDLE','executeCommand','clear','Plugin','idSuffix','evenodd','type','getOwnPropertySymbols','sheet','shouldShareOperation','univerjs-icon\x20univerjs-icon-','live-share.config','_beIdle','UniverInstanceType','call','setConfig','LIVESHARE_NEW_HOST','SAME_OPERATION_SHARE_INTERVAL','UNIVER_SHEET','hasOwnProperty','parseProtocolChangeset','FOLLOWING','11fbLznI','default','trim','LIVESHARE_TERMINATE','LiveShareCoordinator','defineProperty','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','LiveShareController','getConfig','UniverLiveSharePlugin','Module','getOwnPropertyDescriptor','1em','univer-mb-3\x20univer-w-full\x20univer-text-sm','apply','length','stringify','text','ONLINE','random','displayName','BehaviorSubject','stopPresenting','forEach','_mountLiveShare','substring','_handleOffline','Stop\x20presenting','Disposable','_stopPresenting','next','defs','complete','_sharedOperations','mask','_configService','_presenter','icon','Fragment','LiveShareService','sessionStatus$','getValue','_handleTerminate','http://www.w3.org/2000/svg','unsubscribe','_status$','getTypeOfUnitDisposed$','button','Button','includes','Subject','init','3790AKuUPw','useRef','following','Present\x20this\x20document','DesktopLiveShareController','extend','DisposableCollection','IConfigService','none','createInstance','throttleTime','_collabSession','getUnitId','url(#$1','delete','connectInjector','_uiPartsService','5655350AXnWui','attrs','createElement','UniverCollaborationClientPlugin','You\x27are\x20offline.','_commandService','LIVESHARE_REQUEST_HOST','fill','entries'];_0x43f5=function(){return _0x5ce165;};return _0x43f5();}function _0x455a(_0x1268b4,_0x4fc89c){var _0x43f526=_0x43f5();return _0x455a=function(_0x455a84,_0x39b519){_0x455a84=_0x455a84-0x11a;var _0x3aace3=_0x43f526[_0x455a84];return _0x3aace3;},_0x455a(_0x1268b4,_0x4fc89c);}function H(_0x4e3f8f,_0x1775f3,_0x26355e){var _0x191e8c=_0x1df603,_0x3d79af=u({},_0x4e3f8f[_0x191e8c(0x143)]);_0x26355e!=null&&_0x26355e[_0x191e8c(0x1c9)]&&_0x3d79af[_0x191e8c(0x149)]===_0x191e8c(0x1c9)&&(_0x3d79af[_0x191e8c(0x149)]=_0x26355e[_0x191e8c(0x1c9)]),_0x4e3f8f['tag']===_0x191e8c(0x11f)&&_0x3d79af['id']&&(_0x3d79af['id']=_0x3d79af['id']+_0x1775f3[_0x191e8c(0x1d0)]),Object[_0x191e8c(0x14a)](_0x3d79af)[_0x191e8c(0x1f9)](function(_0x3edd3c){var _0x54d2da=_0x191e8c,_0x53a0fc=_0x3edd3c[0x0],_0x150e74=_0x3edd3c[0x1];_0x53a0fc==='mask'&&typeof _0x150e74==_0x54d2da(0x155)&&(_0x3d79af[_0x53a0fc]=_0x150e74['replace'](/url\(#(.*)\)/,_0x54d2da(0x13e)['concat'](_0x1775f3[_0x54d2da(0x1d0)],')')));});var _0x2fc8e0=_0x1775f3[_0x191e8c(0x169)];return!_0x2fc8e0||_0x2fc8e0['length']===0x0||(_0x4e3f8f['tag']===_0x191e8c(0x1ad)&&_0x3d79af[_0x191e8c(0x1ab)]&&(_0x3d79af[_0x191e8c(0x1ab)]=_0x3d79af[_0x191e8c(0x1ab)]+_0x1775f3['idSuffix']),Object[_0x191e8c(0x14a)](_0x3d79af)['forEach'](function(_0x4f3934){var _0x421afc=_0x191e8c,_0x3271ae=_0x4f3934[0x0],_0xf6c561=_0x4f3934[0x1];typeof _0xf6c561==_0x421afc(0x155)&&(_0x3d79af[_0x3271ae]=_0xf6c561[_0x421afc(0x152)](/url\(#(.*)\)/,_0x421afc(0x13e)[_0x421afc(0x156)](_0x1775f3['idSuffix'],')')));})),_0x3d79af;}function V(_0x18f499,_0x2b440d){var _0x31a557=_0x1df603,_0x24ccd7,_0xe7258d=_0x2b440d[_0x31a557(0x169)];return!_0xe7258d||_0xe7258d[_0x31a557(0x1f1)]===0x0?_0x18f499:_0x18f499['tag']===_0x31a557(0x11c)&&(!((_0x24ccd7=_0x18f499[_0x31a557(0x1a2)])===null||_0x24ccd7===void 0x0)&&_0x24ccd7[_0x31a557(0x1f1)])?u(u({},_0x18f499),{'children':_0x18f499[_0x31a557(0x1a2)][_0x31a557(0x19b)](function(_0x22544a){var _0x4e87d8=_0x31a557;return typeof _0x22544a[_0x4e87d8(0x143)]['id']=='string'&&_0xe7258d&&_0xe7258d[_0x4e87d8(0x12e)](_0x22544a[_0x4e87d8(0x143)]['id'])?u(u({},_0x22544a),{'attrs':u(u({},_0x22544a[_0x4e87d8(0x143)]),{'id':_0x22544a['attrs']['id']+_0x2b440d[_0x4e87d8(0x1d0)]})}):_0x22544a;})}):_0x18f499;}function k(){var _0x2c96db=_0x1df603;return Math[_0x2c96db(0x1f5)]()[_0x2c96db(0x165)](0x24)[_0x2c96db(0x1fb)](0x2,0x8);}j['displayName']=_0x1df603(0x1c4);var M={'tag':_0x1df603(0x159),'attrs':{'xmlns':_0x1df603(0x128),'fill':_0x1df603(0x139),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x1df603(0x1ee)},'children':[{'tag':_0x1df603(0x1bb),'attrs':{'fill':_0x1df603(0x177),'d':_0x1df603(0x1e8)}},{'tag':_0x1df603(0x1bb),'attrs':{'fill':_0x1df603(0x177),'d':_0x1df603(0x1c3),'fillRule':_0x1df603(0x1d1),'clipRule':'evenodd'}}]},P=f[_0x1df603(0x192)](function(_0x163225,_0x4cd627){var _0x2ead6f=_0x1df603;return f[_0x2ead6f(0x144)](j,Object[_0x2ead6f(0x1a7)]({},_0x163225,{'id':_0x2ead6f(0x16e),'ref':_0x4cd627,'icon':M}));});P[_0x1df603(0x1f6)]=_0x1df603(0x19a);class O extends o['Disposable']{constructor(){var _0x13b542=_0x1df603;super(...arguments),v(this,_0x13b542(0x11e),new Set()),v(this,_0x13b542(0x15d),new Set());}[_0x1df603(0x150)](_0x2a64a6){var _0x318918=_0x1df603;return this[_0x318918(0x11e)][_0x318918(0x14b)](_0x2a64a6),o[_0x318918(0x199)](()=>this['_sharedOperations']['delete'](_0x2a64a6));}[_0x1df603(0x184)](_0xbabd69){var _0x5962b1=_0x1df603;return this[_0x5962b1(0x15d)][_0x5962b1(0x14b)](_0xbabd69),o[_0x5962b1(0x199)](()=>this[_0x5962b1(0x15d)][_0x5962b1(0x13f)](_0xbabd69));}[_0x1df603(0x1d5)](_0x572cd1){var _0x51066b=_0x1df603;return this[_0x51066b(0x11e)][_0x51066b(0x18c)](_0x572cd1);}['getInitialStates'](_0x3abb08){var _0x31aeaa=_0x1df603;return Array[_0x31aeaa(0x16a)](this['_reporters'])['map'](_0x2b2f18=>_0x2b2f18(_0x3abb08));}}var q=Object[_0x1df603(0x1ed)],R=(_0x30c543,_0x39cb01,_0x4323e2,_0x59f711)=>{var _0x5d61f2=_0x1df603;for(var _0x14f6c3=_0x59f711>0x1?void 0x0:_0x59f711?q(_0x39cb01,_0x4323e2):_0x39cb01,_0x400033=_0x30c543[_0x5d61f2(0x1f1)]-0x1,_0x300a63;_0x400033>=0x0;_0x400033--)(_0x300a63=_0x30c543[_0x400033])&&(_0x14f6c3=_0x300a63(_0x14f6c3)||_0x14f6c3);return _0x14f6c3;},S=(_0x4fc343,_0xf2865e)=>(_0x513767,_0x26bc59)=>_0xf2865e(_0x513767,_0x26bc59,_0x4fc343);exports[_0x1df603(0x1e9)]=class extends o[_0x1df603(0x1b1)]{constructor(_0x27b18d,_0x34dfb3,_0x4a8408){var _0x3ab96d=_0x1df603;super(),v(this,'_entities',new Map()),(this[_0x3ab96d(0x18f)]=_0x27b18d,this[_0x3ab96d(0x188)]=_0x34dfb3,this[_0x3ab96d(0x168)]=_0x4a8408,this['_init']());}async[_0x1df603(0x17b)](_0x5ad446){var _0x437af3=_0x1df603;return this['_entities'][_0x437af3(0x18c)](_0x5ad446)||await this[_0x437af3(0x1c1)](_0x5ad446),this['_entities'][_0x437af3(0x161)](_0x5ad446);}[_0x1df603(0x1b5)](){var _0x2ff539=_0x1df603;this[_0x2ff539(0x18f)][_0x2ff539(0x196)](o[_0x2ff539(0x1d9)][_0x2ff539(0x1de)])[_0x2ff539(0x15a)](b['takeUntil'](this['dispose$']))[_0x2ff539(0x17d)](async _0xfb1723=>{var _0x5b1c89=_0x2ff539;const _0x7564dd=_0xfb1723[_0x5b1c89(0x13d)]();this['_entities'][_0x5b1c89(0x18c)](_0x7564dd)||this[_0x5b1c89(0x1c1)](_0x7564dd);}),this[_0x2ff539(0x18f)][_0x2ff539(0x12b)](o['UniverInstanceType'][_0x2ff539(0x1de)])['pipe'](b[_0x2ff539(0x17f)](this['dispose$']))[_0x2ff539(0x17d)](_0x54873b=>{var _0x4adf24=_0x2ff539;const _0x5c7019=_0x54873b[_0x4adf24(0x13d)](),_0x52578f=this['_entities'][_0x4adf24(0x161)](_0x5c7019);_0x52578f==null||_0x52578f[_0x4adf24(0x1a0)]();});}async[_0x1df603(0x1c1)](_0x33ab4f){var _0x4a3391=_0x1df603;const _0x5db647=await this[_0x4a3391(0x168)][_0x4a3391(0x1c5)](_0x33ab4f),_0x5e9930=this['_injector'][_0x4a3391(0x13a)](exports[_0x4a3391(0x1e6)],_0x33ab4f,_0x5db647);return _0x5e9930[_0x4a3391(0x130)](),this[_0x4a3391(0x1c0)][_0x4a3391(0x18b)](_0x33ab4f,_0x5e9930),_0x5e9930;}},exports['LiveShareController']=R([S(0x0,o[_0x1df603(0x170)]),S(0x1,o[_0x1df603(0x17a)](o[_0x1df603(0x166)])),S(0x2,o['Inject'](m[_0x1df603(0x16f)]))],exports[_0x1df603(0x1e9)]);var h=(_0x54b1eb=>(_0x54b1eb[_0x1df603(0x151)]='offline',_0x54b1eb[_0x1df603(0x1cc)]=_0x1df603(0x1bc),_0x54b1eb['FOLLOWING']=_0x1df603(0x133),_0x54b1eb['NOT_FOLLOWING']=_0x1df603(0x198),_0x54b1eb[_0x1df603(0x1a9)]=_0x1df603(0x14e),_0x54b1eb))(h||{});const W=_0x1df603(0x1dd),G=0xc8;exports[_0x1df603(0x1e6)]=class extends o[_0x1df603(0x1b1)]{constructor(_0x4b105c,_0x43a4b,_0x56723e,_0x545730,_0xe67553){var _0x472d10=_0x1df603;super(),v(this,_0x472d10(0x12a),new w[(_0x472d10(0x1f7))](_0x472d10(0x1bc))),v(this,_0x472d10(0x1ba),this[_0x472d10(0x12a)][_0x472d10(0x175)]()),v(this,_0x472d10(0x1b5),!0x1),v(this,_0x472d10(0x15f),null),v(this,_0x472d10(0x121),null),(this[_0x472d10(0x193)]=_0x4b105c,this[_0x472d10(0x13c)]=_0x43a4b,this[_0x472d10(0x120)]=_0x56723e,this[_0x472d10(0x183)]=_0x545730,this[_0x472d10(0x147)]=_0xe67553);}get[_0x1df603(0x158)](){var _0x467ccb=_0x1df603;return this[_0x467ccb(0x12a)][_0x467ccb(0x126)]();}[_0x1df603(0x1a0)](){var _0x273df5=_0x1df603,_0x1e9a58;(_0x1e9a58=this[_0x273df5(0x15f)])==null||_0x1e9a58[_0x273df5(0x1a0)](),this[_0x273df5(0x12a)][_0x273df5(0x11b)](_0x273df5(0x1bc)),this[_0x273df5(0x12a)][_0x273df5(0x11d)]();}[_0x1df603(0x130)](){var _0x266020=_0x1df603;this[_0x266020(0x1b5)]||(this[_0x266020(0x1b5)]=!0x0,this[_0x266020(0x13c)][_0x266020(0x125)][_0x266020(0x15a)](b[_0x266020(0x17f)](this[_0x266020(0x171)]))['subscribe'](_0x79c098=>{var _0x536742=_0x266020;switch(_0x79c098){case m[_0x536742(0x19c)][_0x536742(0x151)]:this[_0x536742(0x1fc)]();break;case m['SessionStatus'][_0x536742(0x1f4)]:this['_handleOnline']();break;}}),this[_0x266020(0x13c)][_0x266020(0x1b2)][_0x266020(0x15a)](b[_0x266020(0x17f)](this[_0x266020(0x171)]))[_0x266020(0x17d)](_0x34fe57=>{var _0x13d0cd=_0x266020;const {eventID:_0x25f0bd}=_0x34fe57;switch(_0x25f0bd){case _['CollaborationEvent'][_0x13d0cd(0x1dc)]:this[_0x13d0cd(0x178)](_0x34fe57);break;case _[_0x13d0cd(0x18a)][_0x13d0cd(0x17e)]:this[_0x13d0cd(0x1ca)](_0x34fe57);break;case _[_0x13d0cd(0x18a)][_0x13d0cd(0x1e5)]:this[_0x13d0cd(0x127)]();break;case _[_0x13d0cd(0x18a)]['NEW_CHANGESETS']:this[_0x13d0cd(0x16c)](_0x34fe57);break;}}));}['tryStartPresenting'](){var _0x5caff4=_0x1df603;this[_0x5caff4(0x13c)][_0x5caff4(0x1b3)]({'eventID':_['CollaborationEvent'][_0x5caff4(0x148)],'data':{'unitID':this['_unitID'],'userID':this[_0x5caff4(0x13c)]['getMemberID']()}},this[_0x5caff4(0x193)]);}[_0x1df603(0x1f8)](){var _0x9870fc=_0x1df603;this[_0x9870fc(0x158)]===_0x9870fc(0x14e)&&(this['_status$'][_0x9870fc(0x11b)](_0x9870fc(0x1bc)),this[_0x9870fc(0x13c)]['send']({'eventID':_[_0x9870fc(0x18a)][_0x9870fc(0x1e5)],'data':{'unitID':this['_unitID']}},this[_0x9870fc(0x193)]));}[_0x1df603(0x14d)](){var _0xad81c2=_0x1df603;this['_status']===_0xad81c2(0x198)&&(this[_0xad81c2(0x12a)][_0xad81c2(0x11b)](_0xad81c2(0x133)),this[_0xad81c2(0x1af)]());}[_0x1df603(0x187)](){var _0x5c3e04=_0x1df603;this[_0x5c3e04(0x158)]==='following'&&this[_0x5c3e04(0x162)]();}[_0x1df603(0x178)](_0x3f7784){var _0x62b770=_0x1df603;const {presenter:_0x2b749f}=_0x3f7784['data'],_0x54353b=this[_0x62b770(0x13c)][_0x62b770(0x191)]();this[_0x62b770(0x121)]=_0x2b749f,_0x2b749f===_0x54353b?(this[_0x62b770(0x162)](),this[_0x62b770(0x190)]()):this[_0x62b770(0x158)]!==_0x62b770(0x198)&&(this['_stopPresenting'](),this[_0x62b770(0x1af)]());}[_0x1df603(0x15e)](){var _0x19af4f=_0x1df603;const _0x5039d8={'eventID':_[_0x19af4f(0x18a)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x19af4f(0x13c)][_0x19af4f(0x1b3)](_0x5039d8,this['_unitID']);}[_0x1df603(0x127)](){var _0x1ba50f=_0x1df603;this[_0x1ba50f(0x121)]=null,this[_0x1ba50f(0x158)]!==_0x1ba50f(0x14e)&&this[_0x1ba50f(0x1d8)]();}[_0x1df603(0x16c)](_0x358f42){var _0x12f194=_0x1df603;if(this['_status']===_0x12f194(0x133)&&this['_presenter']===_0x358f42['data'][_0x12f194(0x173)]){const _0x37aa30=_[_0x12f194(0x1e0)](_0x358f42[_0x12f194(0x194)])['mutations'][_0x12f194(0x1b7)]()['find'](_0x1a8662=>_0x1a8662['id']===C['InsertSheetMutation']['id']);if(_0x37aa30){const _0x4e7981=_0x37aa30[_0x12f194(0x160)][_0x12f194(0x1b0)],_0x55a4b4=_0x37aa30['params'][_0x12f194(0x1d4)]['id'];setTimeout(()=>{var _0x503679=_0x12f194;this[_0x503679(0x147)][_0x503679(0x1cd)](C[_0x503679(0x189)]['id'],{'unitId':_0x4e7981,'subUnitId':_0x55a4b4},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x3be265=_0x1df603;this['_status$'][_0x3be265(0x11b)]('presenting');const _0x2762fb=new Map(),_0x20bbab=this[_0x3be265(0x15f)]=new o[(_0x3be265(0x137))]();_0x20bbab[_0x3be265(0x14b)](o['toDisposable'](()=>{var _0x45e8db=_0x3be265;_0x2762fb[_0x45e8db(0x1f9)](_0x53ba89=>_0x53ba89[_0x45e8db(0x11d)]()),_0x2762fb[_0x45e8db(0x1ce)]();})),_0x20bbab[_0x3be265(0x14b)](this['_commandService'][_0x3be265(0x163)](_0x348e23=>{var _0xd83b64=_0x3be265,_0x5e2a9f;if(_0x348e23['type']!==o[_0xd83b64(0x19d)][_0xd83b64(0x164)]||!this[_0xd83b64(0x183)][_0xd83b64(0x1d5)](_0x348e23['id']))return;const {id:_0x5ae774}=_0x348e23;let _0x2053f7;_0x2762fb['has'](_0x5ae774)?_0x2053f7=_0x2762fb['get'](_0x5ae774):(_0x2053f7=new w[(_0xd83b64(0x12f))](),_0x2762fb['set'](_0x5ae774,_0x2053f7),_0x2053f7['pipe'](b[_0xd83b64(0x13b)]((_0x5e2a9f=this[_0xd83b64(0x120)][_0xd83b64(0x1ea)](W))!=null?_0x5e2a9f:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xd83b64(0x17d)](_0x34222d=>{var _0x106a50=_0xd83b64;this['_collabSession'][_0x106a50(0x1b3)]({'eventID':_[_0x106a50(0x18a)][_0x106a50(0x17e)],'data':{'unitID':this[_0x106a50(0x193)],'operations':{[_0x34222d['id']]:{'id':_0x34222d['id'],'params':JSON['stringify'](_0x34222d[_0x106a50(0x160)])}}}},this[_0x106a50(0x193)]);})),_0x2053f7['next'](_0x348e23);})),this['_liveShareService']['getInitialStates'](this[_0x3be265(0x193)])['forEach'](_0x53ba2f=>this[_0x3be265(0x13c)][_0x3be265(0x1b3)]({'eventID':_[_0x3be265(0x18a)][_0x3be265(0x17e)],'data':{'unitID':this[_0x3be265(0x193)],'operations':{[_0x53ba2f['id']]:{'id':_0x53ba2f['id'],'params':JSON[_0x3be265(0x1f2)](_0x53ba2f[_0x3be265(0x160)])}}}},this[_0x3be265(0x193)]));}[_0x1df603(0x11a)](){var _0x2d8abd=_0x1df603,_0xf262f0;this['_status$']['next']('idle'),(_0xf262f0=this[_0x2d8abd(0x15f)])==null||_0xf262f0[_0x2d8abd(0x1a0)](),this['_commandDisposable']=null;}[_0x1df603(0x1af)](){var _0x376d4e=_0x1df603,_0x5b655a;(_0x5b655a=this[_0x376d4e(0x15f)])==null||_0x5b655a[_0x376d4e(0x1a0)](),this[_0x376d4e(0x12a)]['next'](_0x376d4e(0x133));}['_beIdle'](){var _0x7af5da=_0x1df603,_0x42888b;this['_status$'][_0x7af5da(0x11b)](_0x7af5da(0x1bc)),(_0x42888b=this['_commandDisposable'])==null||_0x42888b['dispose'](),this[_0x7af5da(0x15f)]=null;}[_0x1df603(0x162)](){var _0x2d588b=_0x1df603,_0x38c892;this[_0x2d588b(0x12a)][_0x2d588b(0x11b)](_0x2d588b(0x198)),(_0x38c892=this['_commandDisposable'])==null||_0x38c892[_0x2d588b(0x1a0)]();}['_handleOperation'](_0x215fc9){var _0x30b03e=_0x1df603;if([_0x30b03e(0x14e),'not-following','offline'][_0x30b03e(0x12e)](this[_0x30b03e(0x158)])||!_0x215fc9[_0x30b03e(0x194)]['presenter']||_0x215fc9[_0x30b03e(0x194)][_0x30b03e(0x1ae)]===this['_collabSession'][_0x30b03e(0x191)]())return;this[_0x30b03e(0x158)]==='idle'&&this['_startFollowing']();const _0x152d6f=_0x215fc9[_0x30b03e(0x194)][_0x30b03e(0x176)];Object[_0x30b03e(0x153)](_0x152d6f)[_0x30b03e(0x1f9)](_0x37fc70=>{var _0x32505e=_0x30b03e;this[_0x32505e(0x147)][_0x32505e(0x1cd)](_0x37fc70['id'],_0x37fc70[_0x32505e(0x160)]?JSON['parse'](_0x37fc70[_0x32505e(0x160)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x8ba50e=_0x1df603,_0x16c61a;this[_0x8ba50e(0x12a)][_0x8ba50e(0x11b)](_0x8ba50e(0x180)),(_0x16c61a=this['_commandDisposable'])==null||_0x16c61a[_0x8ba50e(0x1a0)]();}[_0x1df603(0x186)](){var _0x5a9c21=_0x1df603;this[_0x5a9c21(0x12a)][_0x5a9c21(0x11b)](_0x5a9c21(0x1bc)),this[_0x5a9c21(0x15e)]();}},exports[_0x1df603(0x1e6)]=R([S(0x2,o[_0x1df603(0x138)]),S(0x3,o['Inject'](O)),S(0x4,o[_0x1df603(0x172)])],exports[_0x1df603(0x1e6)]);function A(){var _0x3ea51d=_0x1df603;const _0xbb7f40=p['useDependency'](exports['LiveShareController']),_0x5dfb02=p[_0x3ea51d(0x1be)](o[_0x3ea51d(0x170)]),_0x520744=p['useObservable'](()=>_0x5dfb02['getCurrentTypeOfUnit$'](o[_0x3ea51d(0x1d9)][_0x3ea51d(0x1de)]),void 0x0,!0x1,[]),[_0x1a1aa6,_0x587a7c]=f['useState'](null),[_0x2ab875,_0x246a12]=f[_0x3ea51d(0x1a6)](h[_0x3ea51d(0x1cc)]),_0x27cf44=f[_0x3ea51d(0x132)](null);return f['useEffect'](()=>(_0x520744&&_0xbb7f40[_0x3ea51d(0x17b)](_0x520744['getUnitId']())['then'](_0x1f8bc4=>{var _0x22405a=_0x3ea51d;_0x587a7c(_0x1f8bc4),_0x27cf44['current']=_0x1f8bc4[_0x22405a(0x1ba)]['subscribe'](_0x3d8028=>{_0x246a12(_0x3d8028);});}),()=>{var _0x5f205f=_0x3ea51d,_0x3701f4;(_0x3701f4=_0x27cf44[_0x5f205f(0x1b4)])==null||_0x3701f4[_0x5f205f(0x129)](),_0x27cf44[_0x5f205f(0x1b4)]=null;}),[_0x520744,_0xbb7f40]),_0x1a1aa6?l[_0x3ea51d(0x1ac)](g['Dropdown'],{'align':_0x3ea51d(0x1c8),'disabled':_0x2ab875===h[_0x3ea51d(0x151)],'className':_0x3ea51d(0x17c),'overlay':l[_0x3ea51d(0x1ac)](B,{'status':_0x2ab875,'coordinator':_0x1a1aa6}),'children':l['jsx'](_0x3ea51d(0x12c),{'className':g['clsx'](_0x3ea51d(0x157),{'univer-cursor-not-allowed':_0x2ab875===h[_0x3ea51d(0x151)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2ab875!==h[_0x3ea51d(0x151)]}),'type':_0x3ea51d(0x12c),'children':l[_0x3ea51d(0x1ac)](P,{'className':_0x3ea51d(0x14f)})})}):null;}function B(_0x515f76){var _0xf95b20=_0x1df603;const {status:_0x603e6f,coordinator:_0x10fd22}=_0x515f76;switch(_0x603e6f){case h[_0xf95b20(0x1cc)]:return l[_0xf95b20(0x1ac)](Y,{'coordinator':_0x10fd22});case h[_0xf95b20(0x1e1)]:return l[_0xf95b20(0x1ac)](Z,{'coordinator':_0x10fd22});case h[_0xf95b20(0x179)]:return l['jsx'](J,{'coordinator':_0x10fd22});case h[_0xf95b20(0x151)]:return l[_0xf95b20(0x1ac)](z,{});case h[_0xf95b20(0x1a9)]:return l[_0xf95b20(0x1ac)](K,{'coordinator':_0x10fd22});default:return null;}}function Y(_0x1bd25a){var _0x1e9538=_0x1df603;const {coordinator:_0x522cf7}=_0x1bd25a;return l[_0x1e9538(0x195)](l[_0x1e9538(0x123)],{'children':[l[_0x1e9538(0x1ac)]('div',{'className':_0x1e9538(0x1ef),'children':_0x1e9538(0x134)}),l[_0x1e9538(0x1ac)](g[_0x1e9538(0x12d)],{'onClick':()=>_0x522cf7['tryStartPresenting'](),'children':'Start'})]});}function Z(_0x126aa6){var _0x54b384=_0x1df603;const {coordinator:_0x980a39}=_0x126aa6;return l['jsxs'](l[_0x54b384(0x123)],{'children':[l[_0x54b384(0x1ac)](_0x54b384(0x1b6),{'className':_0x54b384(0x1ef),'children':'You\x27re\x20following\x20the\x20presenter'}),l['jsx'](g[_0x54b384(0x12d)],{'onClick':()=>_0x980a39['stopFollowing'](),'children':_0x54b384(0x1c2)})]});}function J(_0x35c01c){var _0xe31971=_0x1df603;const {coordinator:_0x2bb5f2}=_0x35c01c;return l['jsxs'](l[_0xe31971(0x123)],{'children':[l[_0xe31971(0x1ac)](_0xe31971(0x1b6),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xe31971(0x167)}),l[_0xe31971(0x1ac)](g[_0xe31971(0x12d)],{'variant':_0xe31971(0x1f3),'onClick':()=>_0x2bb5f2[_0xe31971(0x14d)](),'children':'Start\x20following'})]});}function K(_0x2e120f){var _0xcd91b9=_0x1df603;const {coordinator:_0x18fe5c}=_0x2e120f;return l[_0xcd91b9(0x195)](l[_0xcd91b9(0x123)],{'children':[l[_0xcd91b9(0x1ac)](_0xcd91b9(0x1b6),{'className':_0xcd91b9(0x1ef),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0xcd91b9(0x1ac)](g[_0xcd91b9(0x12d)],{'variant':_0xcd91b9(0x1e3),'onClick':()=>_0x18fe5c[_0xcd91b9(0x1f8)](),'children':_0xcd91b9(0x1fd)})]});}function z(){var _0x50dd37=_0x1df603;return l[_0x50dd37(0x1ac)](l[_0x50dd37(0x123)],{'children':_0x50dd37(0x146)});}var Q=Object[_0x1df603(0x1ed)],X=(_0xb97ffb,_0x3ba7ec,_0x47d934,_0x179d30)=>{var _0x41f02f=_0x1df603;for(var _0x44f6b7=_0x179d30>0x1?void 0x0:_0x179d30?Q(_0x3ba7ec,_0x47d934):_0x3ba7ec,_0xdd6384=_0xb97ffb[_0x41f02f(0x1f1)]-0x1,_0x5d7c16;_0xdd6384>=0x0;_0xdd6384--)(_0x5d7c16=_0xb97ffb[_0xdd6384])&&(_0x44f6b7=_0x5d7c16(_0x44f6b7)||_0x44f6b7);return _0x44f6b7;},x=(_0x44c1f0,_0x3575b5)=>(_0x160e00,_0x4a250b)=>_0x3575b5(_0x160e00,_0x4a250b,_0x44c1f0);exports['DesktopLiveShareController']=class extends o[_0x1df603(0x1fe)]{constructor(_0x54126e,_0x119459){var _0x46d93a=_0x1df603;super(),this[_0x46d93a(0x188)]=_0x54126e,this[_0x46d93a(0x141)]=_0x119459,this[_0x46d93a(0x1fa)]();}['_mountLiveShare'](){var _0x58bc37=_0x1df603;this[_0x58bc37(0x1a4)](this[_0x58bc37(0x141)]['registerComponent'](p['BuiltInUIPart'][_0x58bc37(0x15b)],()=>p[_0x58bc37(0x140)](A,this[_0x58bc37(0x188)])));}},exports['DesktopLiveShareController']=X([x(0x0,o[_0x1df603(0x17a)](o[_0x1df603(0x166)])),x(0x1,p[_0x1df603(0x16d)])],exports['DesktopLiveShareController']);const ee=_0x1df603(0x1d7),L={};var te=Object[_0x1df603(0x1ed)],ie=(_0x53250c,_0x229d69,_0x1318a6,_0x55a462)=>{var _0x4db4a7=_0x1df603;for(var _0x3ab798=_0x55a462>0x1?void 0x0:_0x55a462?te(_0x229d69,_0x1318a6):_0x229d69,_0xff3de2=_0x53250c[_0x4db4a7(0x1f1)]-0x1,_0x5088d4;_0xff3de2>=0x0;_0xff3de2--)(_0x5088d4=_0x53250c[_0xff3de2])&&(_0x3ab798=_0x5088d4(_0x3ab798)||_0x3ab798);return _0x3ab798;},ne=(_0x3c2292,_0xa255a7)=>(_0x5123e8,_0x509ca6)=>_0xa255a7(_0x5123e8,_0x509ca6,_0x3c2292);let E=class extends o[_0x1df603(0x1fe)]{constructor(_0x5c1ffd){var _0x53a843=_0x1df603;super(),this[_0x53a843(0x183)]=_0x5c1ffd,this['_init']();}[_0x1df603(0x1b5)](){var _0x1dabfd=_0x1df603;[D[_0x1dabfd(0x174)]['id'],D['SetScrollOperation']['id'],C[_0x1dabfd(0x189)]['id']][_0x1dabfd(0x1f9)](_0x342923=>{var _0x39f476=_0x1dabfd;this['disposeWithMe'](this[_0x39f476(0x183)][_0x39f476(0x150)](_0x342923));});}};E=ie([ne(0x0,o[_0x1df603(0x17a)](O))],E);var re=Object[_0x1df603(0x1e7)],se=Object[_0x1df603(0x1ed)],oe=(_0x1c4280,_0x1e96ce,_0x195c9b)=>_0x1e96ce in _0x1c4280?re(_0x1c4280,_0x1e96ce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x195c9b}):_0x1c4280[_0x1e96ce]=_0x195c9b,ae=(_0x211b09,_0x5c169e,_0x53a8a3,_0x24dfa1)=>{for(var _0x5d3180=_0x24dfa1>0x1?void 0x0:_0x24dfa1?se(_0x5c169e,_0x53a8a3):_0x5c169e,_0xf0ee8b=_0x211b09['length']-0x1,_0x277649;_0xf0ee8b>=0x0;_0xf0ee8b--)(_0x277649=_0x211b09[_0xf0ee8b])&&(_0x5d3180=_0x277649(_0x5d3180)||_0x5d3180);return _0x5d3180;},N=(_0x5327e7,_0x533df0)=>(_0x198bf5,_0x5dbf37)=>_0x533df0(_0x198bf5,_0x5dbf37,_0x5327e7),T=(_0x3959d2,_0x47ada5,_0x4b3728)=>oe(_0x3959d2,typeof _0x47ada5!=_0x1df603(0x1aa)?_0x47ada5+'':_0x47ada5,_0x4b3728);const le='UNIVER_LIVE_SHARE_PLUGIN';exports['UniverLiveSharePlugin']=class extends o[_0x1df603(0x1cf)]{constructor(_0x2c1962=L,_0x433f3e,_0x350588){var _0x199bf8=_0x1df603;super(),this['_config']=_0x2c1962,this['_injector']=_0x433f3e,this[_0x199bf8(0x120)]=_0x350588;const {..._0x21e161}=o[_0x199bf8(0x1a1)]({},L,this['_config']);this[_0x199bf8(0x120)][_0x199bf8(0x1db)](ee,_0x21e161);}[_0x1df603(0x19e)](){var _0x53d920=_0x1df603;o['registerDependencies'](this[_0x53d920(0x188)],o['mergeOverrideWithDependencies']([[O],[exports[_0x53d920(0x1e9)]],[E],[exports[_0x53d920(0x135)]]],this[_0x53d920(0x18d)]['override'])),o[_0x53d920(0x1cb)](this[_0x53d920(0x188)],[[E]]);}['onRendered'](){var _0xf71632=_0x1df603;o[_0xf71632(0x1cb)](this[_0xf71632(0x188)],[[exports[_0xf71632(0x135)]]]);}},T(exports[_0x1df603(0x1eb)],_0x1df603(0x1d2),o['UniverInstanceType'][_0x1df603(0x16b)]),T(exports['UniverLiveSharePlugin'],'pluginName',le),exports[_0x1df603(0x1eb)]=ae([o[_0x1df603(0x1a5)](m[_0x1df603(0x145)]),N(0x1,o['Inject'](o[_0x1df603(0x166)])),N(0x2,o[_0x1df603(0x138)])],exports['UniverLiveSharePlugin']),exports[_0x1df603(0x1c6)]=A,exports[_0x1df603(0x124)]=O,exports[_0x1df603(0x197)]=h;
|
|
1
|
+
'use strict';var _0x5f4ed7=_0x2135;(function(_0x5864d1,_0x41fc15){var _0x79f124=_0x2135,_0x25b31c=_0x5864d1();while(!![]){try{var _0x4db465=parseInt(_0x79f124(0x17a))/0x1+parseInt(_0x79f124(0x107))/0x2*(-parseInt(_0x79f124(0xc6))/0x3)+-parseInt(_0x79f124(0x163))/0x4+parseInt(_0x79f124(0x14a))/0x5+parseInt(_0x79f124(0xdb))/0x6+parseInt(_0x79f124(0x144))/0x7+parseInt(_0x79f124(0x154))/0x8*(parseInt(_0x79f124(0x169))/0x9);if(_0x4db465===_0x41fc15)break;else _0x25b31c['push'](_0x25b31c['shift']());}catch(_0x155aeb){_0x25b31c['push'](_0x25b31c['shift']());}}}(_0x4d89,0xdb57b));function _0x4d89(){var _0x35757c=['stopFollowing','_startLiveShareCoordinator','InsertSheetMutation','onStarting','pipe','idle','LIVESHARE_REQUEST_HOST','params','_configService','654492vlvyde','_commandService','text','override','_sharedOperations','complete','type','IConfigService','dispose','_stopFollowing','FOLLOWING','NOT_FOLLOWING','following','subscribe','_handleOperation','LiveShareCoordinator','random','get','disposeWithMe','function','SetZoomRatioOperation','reverse','LiveShareController','UNIVER_SHEET','live-share.config','substring','unsubscribe','getValue','1em','Stop\x20presenting','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','_entities','getMemberID','You\x27re\x20presenting\x20the\x20document','init','Module','registerDependencies','You\x27are\x20offline.','has','SetWorksheetActiveOperation','prototype','Start','assign','getTypeOfUnitAdded$','10VBNnNZ','className','find','_mountLiveShare','presenter','xlink:href','BuiltInUIPart','onCommandExecuted','_beIdle','mask','div','_fetchOperations','_liveShareService','toStringTag','extend','UniverLiveSharePlugin','propertyIsEnumerable','children','memberID','Inject','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','CollaborationSessionService','evenodd','0\x200\x2017\x2017','Injector','CollaborationEvent','asObservable','call','throttleTime','next','_reporters','setConfig','Dropdown','attrs','Button','pluginName','OPERATION','jsxs','Stop\x20following','_collabSession','LIVESHARE_OPERATION','map','string','concat','_univerInstanceService','getCurrentTypeOfUnit$','_handleOnline','currentColor','_handleNewHost','_unitID','You\x27re\x20not\x20following\x20the\x20presenter','symbol','SetScrollOperation','_injector','UniverInstanceType','_status$','forwardRef','current','getConfig','url(#$1','from','3792152pEMCpR','useDependency','clear','shouldShareOperation','_uiPartsService','HEADER_MENU','5404525zZNlJf','mutations','default','defIds','_handleOffline','PRESENTING','forEach','getOwnPropertyDescriptor','NEW_CHANGESETS','length','336NiGdej','trim','UniverCollaborationClientPlugin','_presenter','LiveShareIcon','requireSession','status$','createElement','svg','not-following','getUnitId','presenting','touchDependencies','displayName','startFollowing','6189232Ztwahg','entries','tryStartPresenting','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_handleTerminate','_startFollowing','443718DKVJoj','DesktopLiveShareController','http://www.w3.org/2000/svg','colorChannel1','stopPresenting','_commandDisposable','DisposableCollection','getOwnPropertySymbols','icon','useRef','UNIVER_LIVE_SHARE_PLUGIN','data','ICommandService','then','getInitialStates','RxDisposable','none','439798AMrQjo','event$','indexOf','_status','send','Fragment','CommandType','delete','_startPresenting','defs','includes','_stopPresenting','LiveShare','LIVESHARE_FETCH_OPERATIONS','connectInjector','_init','toDisposable','path','useEffect','ONLINE','operations','fill','offline','useState','jsx','dispose$','stringify','createInstance','parse','OFFLINE','LiveShareService','_collabSessionService','add','_config','univer-mb-3\x20univer-w-full\x20univer-text-sm','getLiveShareCoordinator','onRendered','Disposable','replace','1077882AqWEbs','LiveShareStatus','sheet','hasOwnProperty','idSuffix','IDLE','defineProperty','SAME_OPERATION_SHARE_INTERVAL','button','executeCommand','tag','_handleNewChangeSets'];_0x4d89=function(){return _0x35757c;};return _0x4d89();}var U=Object[_0x5f4ed7(0xcc)],F=(_0x1b97fe,_0x2ffbd8,_0x3e8ac3)=>_0x2ffbd8 in _0x1b97fe?U(_0x1b97fe,_0x2ffbd8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e8ac3}):_0x1b97fe[_0x2ffbd8]=_0x3e8ac3,v=(_0x5521c5,_0x49a083,_0x222789)=>F(_0x5521c5,typeof _0x49a083!=_0x5f4ed7(0x13a)?_0x49a083+'':_0x49a083,_0x222789);Object['defineProperty'](exports,Symbol[_0x5f4ed7(0x114)],{'value':_0x5f4ed7(0xfe)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');var u=function(){var _0x158bff=_0x5f4ed7;return u=Object[_0x158bff(0x105)]||function(_0x5b1055){var _0x342882=_0x158bff;for(var _0x2bac79,_0x580cf7=0x1,_0x23c468=arguments[_0x342882(0x153)];_0x580cf7<_0x23c468;_0x580cf7++){_0x2bac79=arguments[_0x580cf7];for(var _0x5541b4 in _0x2bac79)Object[_0x342882(0x103)][_0x342882(0xc9)][_0x342882(0x122)](_0x2bac79,_0x5541b4)&&(_0x5b1055[_0x5541b4]=_0x2bac79[_0x5541b4]);}return _0x5b1055;},u['apply'](this,arguments);},$=function(_0x10763e,_0x396f97){var _0x537513=_0x5f4ed7,_0x1ae644={};for(var _0x5caae2 in _0x10763e)Object[_0x537513(0x103)]['hasOwnProperty'][_0x537513(0x122)](_0x10763e,_0x5caae2)&&_0x396f97[_0x537513(0x17c)](_0x5caae2)<0x0&&(_0x1ae644[_0x5caae2]=_0x10763e[_0x5caae2]);if(_0x10763e!=null&&typeof Object[_0x537513(0x170)]==_0x537513(0xee)){for(var _0x446b4c=0x0,_0x5caae2=Object[_0x537513(0x170)](_0x10763e);_0x446b4c<_0x5caae2[_0x537513(0x153)];_0x446b4c++)_0x396f97[_0x537513(0x17c)](_0x5caae2[_0x446b4c])<0x0&&Object[_0x537513(0x103)][_0x537513(0x117)][_0x537513(0x122)](_0x10763e,_0x5caae2[_0x446b4c])&&(_0x1ae644[_0x5caae2[_0x446b4c]]=_0x10763e[_0x5caae2[_0x446b4c]]);}return _0x1ae644;},j=f[_0x5f4ed7(0x13f)](function(_0xd82c6a,_0x2e9efd){var _0x885d14=_0x5f4ed7,_0x5011b4=_0xd82c6a[_0x885d14(0x171)],_0x5ad4a0=_0xd82c6a['id'],_0x8563da=_0xd82c6a['className'],_0x1ff402=_0xd82c6a[_0x885d14(0x115)],_0x3dd7c8=$(_0xd82c6a,['icon','id',_0x885d14(0x108),'extend']),_0xc020de='univerjs-icon\x20univerjs-icon-'['concat'](_0x5ad4a0,'\x20')[_0x885d14(0x132)](_0x8563da||'')[_0x885d14(0x155)](),_0x2a54ee=f[_0x885d14(0x172)]('_'[_0x885d14(0x132)](k()));return y(_0x5011b4,''['concat'](_0x5ad4a0),{'defIds':_0x5011b4['defIds'],'idSuffix':_0x2a54ee[_0x885d14(0x140)]},u({'ref':_0x2e9efd,'className':_0xc020de},_0x3dd7c8),_0x1ff402);});function y(_0x1da249,_0x537e64,_0x36c855,_0x30d555,_0x36c1e4){var _0x5b3904=_0x5f4ed7;return f['createElement'](_0x1da249[_0x5b3904(0xd0)],u(u({'key':_0x537e64},H(_0x1da249,_0x36c855,_0x36c1e4)),_0x30d555),(V(_0x1da249,_0x36c855)[_0x5b3904(0x118)]||[])[_0x5b3904(0x130)](function(_0x67effd,_0x5691c8){var _0xf57cb=_0x5b3904;return y(_0x67effd,''['concat'](_0x537e64,'-')[_0xf57cb(0x132)](_0x1da249[_0xf57cb(0xd0)],'-')[_0xf57cb(0x132)](_0x5691c8),_0x36c855,void 0x0,_0x36c1e4);}));}function H(_0x192d86,_0xaf03f3,_0x1b01ad){var _0x5755c4=_0x5f4ed7,_0xdf1adf=u({},_0x192d86[_0x5755c4(0x128)]);_0x1b01ad!=null&&_0x1b01ad['colorChannel1']&&_0xdf1adf[_0x5755c4(0xb4)]==='colorChannel1'&&(_0xdf1adf[_0x5755c4(0xb4)]=_0x1b01ad[_0x5755c4(0x16c)]),_0x192d86[_0x5755c4(0xd0)]===_0x5755c4(0x110)&&_0xdf1adf['id']&&(_0xdf1adf['id']=_0xdf1adf['id']+_0xaf03f3['idSuffix']),Object[_0x5755c4(0x164)](_0xdf1adf)[_0x5755c4(0x150)](function(_0x20be8c){var _0x4650f8=_0x5755c4,_0xdfad7c=_0x20be8c[0x0],_0xd1a544=_0x20be8c[0x1];_0xdfad7c===_0x4650f8(0x110)&&typeof _0xd1a544=='string'&&(_0xdf1adf[_0xdfad7c]=_0xd1a544['replace'](/url\(#(.*)\)/,_0x4650f8(0x142)['concat'](_0xaf03f3['idSuffix'],')')));});var _0x138e45=_0xaf03f3[_0x5755c4(0x14d)];return!_0x138e45||_0x138e45['length']===0x0||(_0x192d86['tag']==='use'&&_0xdf1adf[_0x5755c4(0x10c)]&&(_0xdf1adf['xlink:href']=_0xdf1adf[_0x5755c4(0x10c)]+_0xaf03f3[_0x5755c4(0xca)]),Object[_0x5755c4(0x164)](_0xdf1adf)[_0x5755c4(0x150)](function(_0x1a9620){var _0x14856d=_0x5755c4,_0x5da554=_0x1a9620[0x0],_0x593fef=_0x1a9620[0x1];typeof _0x593fef=='string'&&(_0xdf1adf[_0x5da554]=_0x593fef[_0x14856d(0xc5)](/url\(#(.*)\)/,_0x14856d(0x142)['concat'](_0xaf03f3['idSuffix'],')')));})),_0xdf1adf;}function V(_0x1fae21,_0x5d293c){var _0x3437d4=_0x5f4ed7,_0x26c0e0,_0x4fcd27=_0x5d293c[_0x3437d4(0x14d)];return!_0x4fcd27||_0x4fcd27[_0x3437d4(0x153)]===0x0?_0x1fae21:_0x1fae21[_0x3437d4(0xd0)]===_0x3437d4(0xa8)&&(!((_0x26c0e0=_0x1fae21[_0x3437d4(0x118)])===null||_0x26c0e0===void 0x0)&&_0x26c0e0[_0x3437d4(0x153)])?u(u({},_0x1fae21),{'children':_0x1fae21[_0x3437d4(0x118)]['map'](function(_0x2d3327){var _0x11a082=_0x3437d4;return typeof _0x2d3327[_0x11a082(0x128)]['id']==_0x11a082(0x131)&&_0x4fcd27&&_0x4fcd27[_0x11a082(0xa9)](_0x2d3327[_0x11a082(0x128)]['id'])?u(u({},_0x2d3327),{'attrs':u(u({},_0x2d3327[_0x11a082(0x128)]),{'id':_0x2d3327[_0x11a082(0x128)]['id']+_0x5d293c['idSuffix']})}):_0x2d3327;})}):_0x1fae21;}function k(){var _0x2a1409=_0x5f4ed7;return Math[_0x2a1409(0xeb)]()['toString'](0x24)[_0x2a1409(0xf4)](0x2,0x8);}j[_0x5f4ed7(0x161)]='UniverIcon';var M={'tag':_0x5f4ed7(0x15c),'attrs':{'xmlns':_0x5f4ed7(0x16b),'fill':_0x5f4ed7(0x179),'viewBox':_0x5f4ed7(0x11e),'width':_0x5f4ed7(0xf7),'height':_0x5f4ed7(0xf7)},'children':[{'tag':'path','attrs':{'fill':_0x5f4ed7(0x136),'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':_0x5f4ed7(0xb0),'attrs':{'fill':_0x5f4ed7(0x136),'d':_0x5f4ed7(0x11b),'fillRule':'evenodd','clipRule':_0x5f4ed7(0x11d)}}]},P=f[_0x5f4ed7(0x13f)](function(_0x550f30,_0x116d81){var _0xd11bfc=_0x5f4ed7;return f[_0xd11bfc(0x15b)](j,Object[_0xd11bfc(0x105)]({},_0x550f30,{'id':'live-share-icon','ref':_0x116d81,'icon':M}));});P[_0x5f4ed7(0x161)]=_0x5f4ed7(0x158);class O extends o['Disposable']{constructor(){var _0x11978f=_0x5f4ed7;super(...arguments),v(this,'_sharedOperations',new Set()),v(this,_0x11978f(0x125),new Set());}['registerSharedOperation'](_0x7b17ff){var _0xbf0fb9=_0x5f4ed7;return this[_0xbf0fb9(0xdf)][_0xbf0fb9(0xbf)](_0x7b17ff),o[_0xbf0fb9(0xaf)](()=>this[_0xbf0fb9(0xdf)][_0xbf0fb9(0xa6)](_0x7b17ff));}['registerInitialStateReporter'](_0x19d5a5){var _0x534a43=_0x5f4ed7;return this[_0x534a43(0x125)][_0x534a43(0xbf)](_0x19d5a5),o[_0x534a43(0xaf)](()=>this[_0x534a43(0x125)][_0x534a43(0xa6)](_0x19d5a5));}[_0x5f4ed7(0x147)](_0x287404){var _0x229c03=_0x5f4ed7;return this['_sharedOperations'][_0x229c03(0x101)](_0x287404);}[_0x5f4ed7(0x177)](_0x2a8343){var _0x3b6250=_0x5f4ed7;return Array[_0x3b6250(0x143)](this[_0x3b6250(0x125)])[_0x3b6250(0x130)](_0x5d97f2=>_0x5d97f2(_0x2a8343));}}var q=Object[_0x5f4ed7(0x151)],R=(_0x272d94,_0x56292e,_0x2c9576,_0x5cd364)=>{var _0x50e3b6=_0x5f4ed7;for(var _0x10a75c=_0x5cd364>0x1?void 0x0:_0x5cd364?q(_0x56292e,_0x2c9576):_0x56292e,_0x3a99f9=_0x272d94[_0x50e3b6(0x153)]-0x1,_0x265b88;_0x3a99f9>=0x0;_0x3a99f9--)(_0x265b88=_0x272d94[_0x3a99f9])&&(_0x10a75c=_0x265b88(_0x10a75c)||_0x10a75c);return _0x10a75c;},S=(_0x46261d,_0x2fb805)=>(_0x2ec604,_0x29c572)=>_0x2fb805(_0x2ec604,_0x29c572,_0x46261d);exports['LiveShareController']=class extends o['RxDisposable']{constructor(_0x413e59,_0x4d3218,_0x497890){var _0x385585=_0x5f4ed7;super(),v(this,_0x385585(0xfa),new Map()),(this[_0x385585(0x133)]=_0x413e59,this[_0x385585(0x13c)]=_0x4d3218,this['_collabSessionService']=_0x497890,this[_0x385585(0xae)]());}async[_0x5f4ed7(0xc2)](_0x79f2e){var _0x1ee583=_0x5f4ed7;return this[_0x1ee583(0xfa)][_0x1ee583(0x101)](_0x79f2e)||await this[_0x1ee583(0xd3)](_0x79f2e),this[_0x1ee583(0xfa)]['get'](_0x79f2e);}[_0x5f4ed7(0xae)](){var _0x26ae82=_0x5f4ed7;this[_0x26ae82(0x133)][_0x26ae82(0x106)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x26ae82(0xd6)](b['takeUntil'](this[_0x26ae82(0xb8)]))['subscribe'](async _0x52aa07=>{var _0x2d1f86=_0x26ae82;const _0x157360=_0x52aa07[_0x2d1f86(0x15e)]();this[_0x2d1f86(0xfa)][_0x2d1f86(0x101)](_0x157360)||this[_0x2d1f86(0xd3)](_0x157360);}),this[_0x26ae82(0x133)]['getTypeOfUnitDisposed$'](o[_0x26ae82(0x13d)][_0x26ae82(0xf2)])[_0x26ae82(0xd6)](b['takeUntil'](this[_0x26ae82(0xb8)]))['subscribe'](_0x5be990=>{var _0x53c39a=_0x26ae82;const _0x446a36=_0x5be990[_0x53c39a(0x15e)](),_0x2bc919=this['_entities'][_0x53c39a(0xec)](_0x446a36);_0x2bc919==null||_0x2bc919['dispose']();});}async['_startLiveShareCoordinator'](_0x2652ed){var _0x4b6b3f=_0x5f4ed7;const _0x8ef4d2=await this[_0x4b6b3f(0xbe)][_0x4b6b3f(0x159)](_0x2652ed),_0x54e9a2=this['_injector'][_0x4b6b3f(0xba)](exports[_0x4b6b3f(0xea)],_0x2652ed,_0x8ef4d2);return _0x54e9a2[_0x4b6b3f(0xfd)](),this[_0x4b6b3f(0xfa)]['set'](_0x2652ed,_0x54e9a2),_0x54e9a2;}},exports['LiveShareController']=R([S(0x0,o['IUniverInstanceService']),S(0x1,o['Inject'](o[_0x5f4ed7(0x11f)])),S(0x2,o[_0x5f4ed7(0x11a)](m[_0x5f4ed7(0x11c)]))],exports[_0x5f4ed7(0xf1)]);var h=(_0x1735b8=>(_0x1735b8[_0x5f4ed7(0xbc)]=_0x5f4ed7(0xb5),_0x1735b8[_0x5f4ed7(0xcb)]='idle',_0x1735b8[_0x5f4ed7(0xe5)]=_0x5f4ed7(0xe7),_0x1735b8['NOT_FOLLOWING']='not-following',_0x1735b8[_0x5f4ed7(0x14f)]=_0x5f4ed7(0x15f),_0x1735b8))(h||{});const W=_0x5f4ed7(0xcd),G=0xc8;exports[_0x5f4ed7(0xea)]=class extends o[_0x5f4ed7(0x178)]{constructor(_0x367509,_0xd15fd8,_0x514811,_0x3db7ab,_0x35db4c){var _0x44585f=_0x5f4ed7;super(),v(this,_0x44585f(0x13e),new w['BehaviorSubject'](_0x44585f(0xd7))),v(this,'status$',this[_0x44585f(0x13e)][_0x44585f(0x121)]()),v(this,_0x44585f(0xae),!0x1),v(this,_0x44585f(0x16e),null),v(this,_0x44585f(0x157),null),(this[_0x44585f(0x138)]=_0x367509,this[_0x44585f(0x12e)]=_0xd15fd8,this[_0x44585f(0xda)]=_0x514811,this['_liveShareService']=_0x3db7ab,this['_commandService']=_0x35db4c);}get[_0x5f4ed7(0x17d)](){var _0x690b3a=_0x5f4ed7;return this[_0x690b3a(0x13e)][_0x690b3a(0xf6)]();}[_0x5f4ed7(0xe3)](){var _0x44958b=_0x5f4ed7,_0x448b24;(_0x448b24=this[_0x44958b(0x16e)])==null||_0x448b24[_0x44958b(0xe3)](),this['_status$'][_0x44958b(0x124)]('idle'),this[_0x44958b(0x13e)][_0x44958b(0xe0)]();}[_0x5f4ed7(0xfd)](){var _0x3aa463=_0x5f4ed7;this[_0x3aa463(0xae)]||(this['_init']=!0x0,this[_0x3aa463(0x12e)]['sessionStatus$']['pipe'](b['takeUntil'](this[_0x3aa463(0xb8)]))[_0x3aa463(0xe8)](_0x38d6c4=>{var _0x56469e=_0x3aa463;switch(_0x38d6c4){case m['SessionStatus']['OFFLINE']:this['_handleOffline']();break;case m['SessionStatus'][_0x56469e(0xb2)]:this[_0x56469e(0x135)]();break;}}),this[_0x3aa463(0x12e)][_0x3aa463(0x17b)][_0x3aa463(0xd6)](b['takeUntil'](this[_0x3aa463(0xb8)]))['subscribe'](_0x169236=>{var _0x498688=_0x3aa463;const {eventID:_0xa8c3a8}=_0x169236;switch(_0xa8c3a8){case _[_0x498688(0x120)]['LIVESHARE_NEW_HOST']:this[_0x498688(0x137)](_0x169236);break;case _['CollaborationEvent'][_0x498688(0x12f)]:this[_0x498688(0xe9)](_0x169236);break;case _[_0x498688(0x120)]['LIVESHARE_TERMINATE']:this[_0x498688(0x167)]();break;case _[_0x498688(0x120)][_0x498688(0x152)]:this[_0x498688(0xd1)](_0x169236);break;}}));}[_0x5f4ed7(0x165)](){var _0x568a84=_0x5f4ed7;this[_0x568a84(0x12e)][_0x568a84(0x17e)]({'eventID':_[_0x568a84(0x120)][_0x568a84(0xd8)],'data':{'unitID':this[_0x568a84(0x138)],'userID':this[_0x568a84(0x12e)][_0x568a84(0xfb)]()}},this['_unitID']);}[_0x5f4ed7(0x16d)](){var _0x9b6772=_0x5f4ed7;this['_status']===_0x9b6772(0x15f)&&(this[_0x9b6772(0x13e)][_0x9b6772(0x124)](_0x9b6772(0xd7)),this[_0x9b6772(0x12e)][_0x9b6772(0x17e)]({'eventID':_[_0x9b6772(0x120)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x9b6772(0x138)]}},this[_0x9b6772(0x138)]));}[_0x5f4ed7(0x162)](){var _0x45ee39=_0x5f4ed7;this['_status']==='not-following'&&(this[_0x45ee39(0x13e)][_0x45ee39(0x124)](_0x45ee39(0xe7)),this[_0x45ee39(0x168)]());}[_0x5f4ed7(0xd2)](){var _0x1c8b95=_0x5f4ed7;this[_0x1c8b95(0x17d)]==='following'&&this[_0x1c8b95(0xe4)]();}[_0x5f4ed7(0x137)](_0x332d81){var _0x5e4b08=_0x5f4ed7;const {presenter:_0x4003e6}=_0x332d81[_0x5e4b08(0x174)],_0x1dd2df=this[_0x5e4b08(0x12e)][_0x5e4b08(0xfb)]();this['_presenter']=_0x4003e6,_0x4003e6===_0x1dd2df?(this[_0x5e4b08(0xe4)](),this[_0x5e4b08(0xa7)]()):this['_status']!==_0x5e4b08(0x15d)&&(this[_0x5e4b08(0xaa)](),this[_0x5e4b08(0x168)]());}['_fetchOperations'](){var _0xf6db08=_0x5f4ed7;const _0x330273={'eventID':_['CollaborationEvent'][_0xf6db08(0xac)]};this[_0xf6db08(0x12e)]['send'](_0x330273,this[_0xf6db08(0x138)]);}['_handleTerminate'](){var _0x103331=_0x5f4ed7;this[_0x103331(0x157)]=null,this['_status']!==_0x103331(0x15f)&&this[_0x103331(0x10f)]();}[_0x5f4ed7(0xd1)](_0x2e20cd){var _0xccc2c8=_0x5f4ed7;if(this[_0xccc2c8(0x17d)]==='following'&&this['_presenter']===_0x2e20cd[_0xccc2c8(0x174)][_0xccc2c8(0x119)]){const _0x1ba79e=_['parseProtocolChangeset'](_0x2e20cd[_0xccc2c8(0x174)])[_0xccc2c8(0x14b)][_0xccc2c8(0xf0)]()[_0xccc2c8(0x109)](_0x3affb8=>_0x3affb8['id']===C[_0xccc2c8(0xd4)]['id']);if(_0x1ba79e){const _0x772eb4=_0x1ba79e[_0xccc2c8(0xd9)]['unitId'],_0x22fa3a=_0x1ba79e[_0xccc2c8(0xd9)][_0xccc2c8(0xc8)]['id'];setTimeout(()=>{var _0x839ad2=_0xccc2c8;this[_0x839ad2(0xdc)][_0x839ad2(0xcf)](C[_0x839ad2(0x102)]['id'],{'unitId':_0x772eb4,'subUnitId':_0x22fa3a},{'fromCollab':!0x0});});}}}[_0x5f4ed7(0xa7)](){var _0x286cff=_0x5f4ed7;this[_0x286cff(0x13e)]['next']('presenting');const _0x32cd41=new Map(),_0x28e69f=this[_0x286cff(0x16e)]=new o[(_0x286cff(0x16f))]();_0x28e69f[_0x286cff(0xbf)](o[_0x286cff(0xaf)](()=>{var _0x1f7b0e=_0x286cff;_0x32cd41[_0x1f7b0e(0x150)](_0x484ac9=>_0x484ac9[_0x1f7b0e(0xe0)]()),_0x32cd41[_0x1f7b0e(0x146)]();})),_0x28e69f[_0x286cff(0xbf)](this[_0x286cff(0xdc)][_0x286cff(0x10e)](_0x1ba878=>{var _0x5584a3=_0x286cff,_0x38fd8f;if(_0x1ba878[_0x5584a3(0xe1)]!==o[_0x5584a3(0x180)][_0x5584a3(0x12b)]||!this['_liveShareService'][_0x5584a3(0x147)](_0x1ba878['id']))return;const {id:_0x423b10}=_0x1ba878;let _0x2aed0d;_0x32cd41[_0x5584a3(0x101)](_0x423b10)?_0x2aed0d=_0x32cd41[_0x5584a3(0xec)](_0x423b10):(_0x2aed0d=new w['Subject'](),_0x32cd41['set'](_0x423b10,_0x2aed0d),_0x2aed0d[_0x5584a3(0xd6)](b[_0x5584a3(0x123)]((_0x38fd8f=this['_configService'][_0x5584a3(0x141)](W))!=null?_0x38fd8f:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5584a3(0xe8)](_0x137012=>{var _0x4e7402=_0x5584a3;this[_0x4e7402(0x12e)][_0x4e7402(0x17e)]({'eventID':_['CollaborationEvent'][_0x4e7402(0x12f)],'data':{'unitID':this[_0x4e7402(0x138)],'operations':{[_0x137012['id']]:{'id':_0x137012['id'],'params':JSON[_0x4e7402(0xb9)](_0x137012[_0x4e7402(0xd9)])}}}},this[_0x4e7402(0x138)]);})),_0x2aed0d[_0x5584a3(0x124)](_0x1ba878);})),this[_0x286cff(0x113)][_0x286cff(0x177)](this[_0x286cff(0x138)])[_0x286cff(0x150)](_0x5b1c3c=>this[_0x286cff(0x12e)][_0x286cff(0x17e)]({'eventID':_[_0x286cff(0x120)][_0x286cff(0x12f)],'data':{'unitID':this['_unitID'],'operations':{[_0x5b1c3c['id']]:{'id':_0x5b1c3c['id'],'params':JSON[_0x286cff(0xb9)](_0x5b1c3c[_0x286cff(0xd9)])}}}},this[_0x286cff(0x138)]));}[_0x5f4ed7(0xaa)](){var _0x20eb42=_0x5f4ed7,_0x2367e3;this[_0x20eb42(0x13e)][_0x20eb42(0x124)](_0x20eb42(0xd7)),(_0x2367e3=this[_0x20eb42(0x16e)])==null||_0x2367e3[_0x20eb42(0xe3)](),this[_0x20eb42(0x16e)]=null;}[_0x5f4ed7(0x168)](){var _0x11caef=_0x5f4ed7,_0x2965cb;(_0x2965cb=this[_0x11caef(0x16e)])==null||_0x2965cb['dispose'](),this['_status$'][_0x11caef(0x124)](_0x11caef(0xe7));}[_0x5f4ed7(0x10f)](){var _0x3662e9=_0x5f4ed7,_0x26a091;this['_status$'][_0x3662e9(0x124)]('idle'),(_0x26a091=this['_commandDisposable'])==null||_0x26a091['dispose'](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x3648b1=_0x5f4ed7,_0x30eda1;this['_status$'][_0x3648b1(0x124)]('not-following'),(_0x30eda1=this['_commandDisposable'])==null||_0x30eda1[_0x3648b1(0xe3)]();}['_handleOperation'](_0x10a3f3){var _0x1c7ab4=_0x5f4ed7;if([_0x1c7ab4(0x15f),_0x1c7ab4(0x15d),_0x1c7ab4(0xb5)]['includes'](this[_0x1c7ab4(0x17d)])||!_0x10a3f3[_0x1c7ab4(0x174)][_0x1c7ab4(0x10b)]||_0x10a3f3[_0x1c7ab4(0x174)][_0x1c7ab4(0x10b)]===this[_0x1c7ab4(0x12e)][_0x1c7ab4(0xfb)]())return;this[_0x1c7ab4(0x17d)]===_0x1c7ab4(0xd7)&&this[_0x1c7ab4(0x168)]();const _0x1caafa=_0x10a3f3[_0x1c7ab4(0x174)][_0x1c7ab4(0xb3)];Object['values'](_0x1caafa)[_0x1c7ab4(0x150)](_0x4f6939=>{var _0x41b0a9=_0x1c7ab4;this[_0x41b0a9(0xdc)]['executeCommand'](_0x4f6939['id'],_0x4f6939[_0x41b0a9(0xd9)]?JSON[_0x41b0a9(0xbb)](_0x4f6939[_0x41b0a9(0xd9)]):null,{'fromCollab':!0x0});});}[_0x5f4ed7(0x14e)](){var _0x387262=_0x5f4ed7,_0x2da216;this['_status$']['next']('offline'),(_0x2da216=this[_0x387262(0x16e)])==null||_0x2da216[_0x387262(0xe3)]();}[_0x5f4ed7(0x135)](){var _0x4e8032=_0x5f4ed7;this['_status$'][_0x4e8032(0x124)](_0x4e8032(0xd7)),this[_0x4e8032(0x112)]();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x5f4ed7(0xe2)]),S(0x3,o[_0x5f4ed7(0x11a)](O)),S(0x4,o[_0x5f4ed7(0x175)])],exports['LiveShareCoordinator']);function A(){var _0xcc3ede=_0x5f4ed7;const _0x65b2d4=p[_0xcc3ede(0x145)](exports['LiveShareController']),_0x416e8a=p[_0xcc3ede(0x145)](o['IUniverInstanceService']),_0x542594=p['useObservable'](()=>_0x416e8a[_0xcc3ede(0x134)](o[_0xcc3ede(0x13d)][_0xcc3ede(0xf2)]),void 0x0,!0x1,[]),[_0x49ff8b,_0x7c1a49]=f[_0xcc3ede(0xb6)](null),[_0x36ff0b,_0x37753a]=f[_0xcc3ede(0xb6)](h[_0xcc3ede(0xcb)]),_0x31f71b=f[_0xcc3ede(0x172)](null);return f[_0xcc3ede(0xb1)](()=>(_0x542594&&_0x65b2d4[_0xcc3ede(0xc2)](_0x542594['getUnitId']())[_0xcc3ede(0x176)](_0x193b98=>{var _0x4e4e11=_0xcc3ede;_0x7c1a49(_0x193b98),_0x31f71b[_0x4e4e11(0x140)]=_0x193b98[_0x4e4e11(0x15a)][_0x4e4e11(0xe8)](_0x2a1ddf=>{_0x37753a(_0x2a1ddf);});}),()=>{var _0x9180d2=_0xcc3ede,_0x3cbad0;(_0x3cbad0=_0x31f71b['current'])==null||_0x3cbad0[_0x9180d2(0xf5)](),_0x31f71b[_0x9180d2(0x140)]=null;}),[_0x542594,_0x65b2d4]),_0x49ff8b?l['jsx'](g[_0xcc3ede(0x127)],{'align':'end','disabled':_0x36ff0b===h[_0xcc3ede(0xbc)],'className':_0xcc3ede(0xf9),'overlay':l[_0xcc3ede(0xb7)](B,{'status':_0x36ff0b,'coordinator':_0x49ff8b}),'children':l[_0xcc3ede(0xb7)](_0xcc3ede(0xce),{'className':g['clsx'](_0xcc3ede(0x166),{'univer-cursor-not-allowed':_0x36ff0b===h[_0xcc3ede(0xbc)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x36ff0b!==h['OFFLINE']}),'type':_0xcc3ede(0xce),'children':l[_0xcc3ede(0xb7)](P,{'className':'univer-size-4'})})}):null;}function B(_0x3da27c){var _0x4fc7b0=_0x5f4ed7;const {status:_0x5a7c4e,coordinator:_0xe5b491}=_0x3da27c;switch(_0x5a7c4e){case h[_0x4fc7b0(0xcb)]:return l[_0x4fc7b0(0xb7)](Y,{'coordinator':_0xe5b491});case h[_0x4fc7b0(0xe5)]:return l[_0x4fc7b0(0xb7)](Z,{'coordinator':_0xe5b491});case h[_0x4fc7b0(0xe6)]:return l['jsx'](J,{'coordinator':_0xe5b491});case h[_0x4fc7b0(0xbc)]:return l[_0x4fc7b0(0xb7)](z,{});case h['PRESENTING']:return l['jsx'](K,{'coordinator':_0xe5b491});default:return null;}}function _0x2135(_0x12792a,_0x42e09a){var _0x4d893c=_0x4d89();return _0x2135=function(_0x21351d,_0x333e27){_0x21351d=_0x21351d-0xa6;var _0x3cb0ce=_0x4d893c[_0x21351d];return _0x3cb0ce;},_0x2135(_0x12792a,_0x42e09a);}function Y(_0x3100b0){var _0x32d9f5=_0x5f4ed7;const {coordinator:_0x5b4a9b}=_0x3100b0;return l[_0x32d9f5(0x12c)](l[_0x32d9f5(0x17f)],{'children':[l[_0x32d9f5(0xb7)](_0x32d9f5(0x111),{'className':_0x32d9f5(0xc1),'children':'Present\x20this\x20document'}),l[_0x32d9f5(0xb7)](g[_0x32d9f5(0x129)],{'onClick':()=>_0x5b4a9b[_0x32d9f5(0x165)](),'children':_0x32d9f5(0x104)})]});}function Z(_0x1db03a){var _0x174433=_0x5f4ed7;const {coordinator:_0x2a2b57}=_0x1db03a;return l[_0x174433(0x12c)](l[_0x174433(0x17f)],{'children':[l[_0x174433(0xb7)]('div',{'className':_0x174433(0xc1),'children':'You\x27re\x20following\x20the\x20presenter'}),l['jsx'](g['Button'],{'onClick':()=>_0x2a2b57['stopFollowing'](),'children':_0x174433(0x12d)})]});}function J(_0x1debf4){var _0x1b151d=_0x5f4ed7;const {coordinator:_0xfa7ea6}=_0x1debf4;return l[_0x1b151d(0x12c)](l[_0x1b151d(0x17f)],{'children':[l[_0x1b151d(0xb7)](_0x1b151d(0x111),{'className':_0x1b151d(0xc1),'children':_0x1b151d(0x139)}),l[_0x1b151d(0xb7)](g[_0x1b151d(0x129)],{'variant':_0x1b151d(0xdd),'onClick':()=>_0xfa7ea6['startFollowing'](),'children':'Start\x20following'})]});}function K(_0x5d5b04){var _0xe1441c=_0x5f4ed7;const {coordinator:_0x52fa06}=_0x5d5b04;return l[_0xe1441c(0x12c)](l['Fragment'],{'children':[l[_0xe1441c(0xb7)](_0xe1441c(0x111),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xe1441c(0xfc)}),l[_0xe1441c(0xb7)](g[_0xe1441c(0x129)],{'variant':_0xe1441c(0x14c),'onClick':()=>_0x52fa06[_0xe1441c(0x16d)](),'children':_0xe1441c(0xf8)})]});}function z(){var _0x227171=_0x5f4ed7;return l['jsx'](l[_0x227171(0x17f)],{'children':_0x227171(0x100)});}var Q=Object[_0x5f4ed7(0x151)],X=(_0xc8b311,_0x198dd9,_0x66a9d,_0x30f023)=>{var _0x53a28d=_0x5f4ed7;for(var _0x3af1b1=_0x30f023>0x1?void 0x0:_0x30f023?Q(_0x198dd9,_0x66a9d):_0x198dd9,_0x369131=_0xc8b311[_0x53a28d(0x153)]-0x1,_0x5b765b;_0x369131>=0x0;_0x369131--)(_0x5b765b=_0xc8b311[_0x369131])&&(_0x3af1b1=_0x5b765b(_0x3af1b1)||_0x3af1b1);return _0x3af1b1;},x=(_0x1c3b92,_0x4d5cf3)=>(_0x553ba3,_0x24e58e)=>_0x4d5cf3(_0x553ba3,_0x24e58e,_0x1c3b92);exports[_0x5f4ed7(0x16a)]=class extends o['Disposable']{constructor(_0x58d36e,_0x3313d7){var _0x54b41c=_0x5f4ed7;super(),this[_0x54b41c(0x13c)]=_0x58d36e,this[_0x54b41c(0x148)]=_0x3313d7,this['_mountLiveShare']();}[_0x5f4ed7(0x10a)](){var _0x4ccba5=_0x5f4ed7;this[_0x4ccba5(0xed)](this[_0x4ccba5(0x148)]['registerComponent'](p[_0x4ccba5(0x10d)][_0x4ccba5(0x149)],()=>p[_0x4ccba5(0xad)](A,this['_injector'])));}},exports['DesktopLiveShareController']=X([x(0x0,o[_0x5f4ed7(0x11a)](o[_0x5f4ed7(0x11f)])),x(0x1,p['IUIPartsService'])],exports[_0x5f4ed7(0x16a)]);const ee=_0x5f4ed7(0xf3),L={};var te=Object[_0x5f4ed7(0x151)],ie=(_0x2e43f4,_0x5926a6,_0x372bc9,_0x1db5fc)=>{var _0x756945=_0x5f4ed7;for(var _0x5d5dbb=_0x1db5fc>0x1?void 0x0:_0x1db5fc?te(_0x5926a6,_0x372bc9):_0x5926a6,_0x3c88c0=_0x2e43f4[_0x756945(0x153)]-0x1,_0x2f750c;_0x3c88c0>=0x0;_0x3c88c0--)(_0x2f750c=_0x2e43f4[_0x3c88c0])&&(_0x5d5dbb=_0x2f750c(_0x5d5dbb)||_0x5d5dbb);return _0x5d5dbb;},ne=(_0x16ac0f,_0x162160)=>(_0x185625,_0x3b249e)=>_0x162160(_0x185625,_0x3b249e,_0x16ac0f);let E=class extends o[_0x5f4ed7(0xc4)]{constructor(_0x25c8aa){var _0x370ad1=_0x5f4ed7;super(),this[_0x370ad1(0x113)]=_0x25c8aa,this[_0x370ad1(0xae)]();}[_0x5f4ed7(0xae)](){var _0x51cdc5=_0x5f4ed7;[D[_0x51cdc5(0xef)]['id'],D[_0x51cdc5(0x13b)]['id'],C['SetWorksheetActiveOperation']['id']][_0x51cdc5(0x150)](_0x8a67d3=>{var _0xa90a3c=_0x51cdc5;this[_0xa90a3c(0xed)](this[_0xa90a3c(0x113)]['registerSharedOperation'](_0x8a67d3));});}};E=ie([ne(0x0,o[_0x5f4ed7(0x11a)](O))],E);var re=Object[_0x5f4ed7(0xcc)],se=Object[_0x5f4ed7(0x151)],oe=(_0x114acf,_0x57aea2,_0x3872fd)=>_0x57aea2 in _0x114acf?re(_0x114acf,_0x57aea2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3872fd}):_0x114acf[_0x57aea2]=_0x3872fd,ae=(_0x5d874a,_0x14153e,_0x3167b9,_0x498cb5)=>{for(var _0x45dd90=_0x498cb5>0x1?void 0x0:_0x498cb5?se(_0x14153e,_0x3167b9):_0x14153e,_0x47607d=_0x5d874a['length']-0x1,_0x5415de;_0x47607d>=0x0;_0x47607d--)(_0x5415de=_0x5d874a[_0x47607d])&&(_0x45dd90=_0x5415de(_0x45dd90)||_0x45dd90);return _0x45dd90;},N=(_0x171988,_0x3d6e7c)=>(_0x37027e,_0x3d5d97)=>_0x3d6e7c(_0x37027e,_0x3d5d97,_0x171988),T=(_0x2db05e,_0x48b403,_0x36632a)=>oe(_0x2db05e,typeof _0x48b403!=_0x5f4ed7(0x13a)?_0x48b403+'':_0x48b403,_0x36632a);const le=_0x5f4ed7(0x173);exports[_0x5f4ed7(0x116)]=class extends o['Plugin']{constructor(_0x1f78f5=L,_0x12222f,_0x3be74b){var _0x9db9f6=_0x5f4ed7;super(),this[_0x9db9f6(0xc0)]=_0x1f78f5,this['_injector']=_0x12222f,this['_configService']=_0x3be74b;const {..._0x172817}=o['merge']({},L,this[_0x9db9f6(0xc0)]);this['_configService'][_0x9db9f6(0x126)](ee,_0x172817);}[_0x5f4ed7(0xd5)](){var _0x300e0a=_0x5f4ed7;o[_0x300e0a(0xff)](this[_0x300e0a(0x13c)],o['mergeOverrideWithDependencies']([[O],[exports[_0x300e0a(0xf1)]],[E],[exports[_0x300e0a(0x16a)]]],this['_config'][_0x300e0a(0xde)])),o[_0x300e0a(0x160)](this['_injector'],[[E]]);}[_0x5f4ed7(0xc3)](){var _0x5d4961=_0x5f4ed7;o[_0x5d4961(0x160)](this[_0x5d4961(0x13c)],[[exports[_0x5d4961(0x16a)]]]);}},T(exports['UniverLiveSharePlugin'],_0x5f4ed7(0xe1),o['UniverInstanceType']['UNIVER_UNKNOWN']),T(exports[_0x5f4ed7(0x116)],_0x5f4ed7(0x12a),le),exports[_0x5f4ed7(0x116)]=ae([o['DependentOn'](m[_0x5f4ed7(0x156)]),N(0x1,o[_0x5f4ed7(0x11a)](o[_0x5f4ed7(0x11f)])),N(0x2,o[_0x5f4ed7(0xe2)])],exports[_0x5f4ed7(0x116)]),exports[_0x5f4ed7(0xab)]=A,exports[_0x5f4ed7(0xbd)]=O,exports[_0x5f4ed7(0xc7)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x5c2374=_0x5f29;(function(_0x26d0f8,_0x112f3c){var _0x18005e=_0x5f29,_0x1374e6=_0x26d0f8();while(!![]){try{var _0x16a1c0=-parseInt(_0x18005e(0x14f))/0x1+-parseInt(_0x18005e(0xee))/0x2*(parseInt(_0x18005e(0x10c))/0x3)+-parseInt(_0x18005e(0x124))/0x4*(-parseInt(_0x18005e(0x141))/0x5)+-parseInt(_0x18005e(0x10d))/0x6*(-parseInt(_0x18005e(0x12f))/0x7)+parseInt(_0x18005e(0x118))/0x8+parseInt(_0x18005e(0x115))/0x9*(-parseInt(_0x18005e(0x12b))/0xa)+parseInt(_0x18005e(0x171))/0xb*(parseInt(_0x18005e(0xe8))/0xc);if(_0x16a1c0===_0x112f3c)break;else _0x1374e6['push'](_0x1374e6['shift']());}catch(_0x4844bd){_0x1374e6['push'](_0x1374e6['shift']());}}}(_0x1e38,0x94449));var q=Object['defineProperty'],z=(_0x2038cc,_0x5966d5,_0x265bfd)=>_0x5966d5 in _0x2038cc?q(_0x2038cc,_0x5966d5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x265bfd}):_0x2038cc[_0x5966d5]=_0x265bfd,d=(_0x3ccd10,_0x37533f,_0x33803b)=>z(_0x3ccd10,typeof _0x37533f!=_0x5c2374(0xe1)?_0x37533f+'':_0x37533f,_0x33803b);import{Disposable as _0x5d9f0b,toDisposable as _0xc9fd27,IUniverInstanceService as _0x396a71,Inject as _0x1d6dfe,Injector as _0x5e4e3e,IConfigService as _0x427207,ICommandService as _0x2fdcd6,RxDisposable as _0x12f1b4,UniverInstanceType as _0x597c39,DisposableCollection as _0x13da4f,CommandType as _0x46b67e,DependentOn as _0x20bf5b,Plugin as _0x85ddfe,merge as _0x4b219b,registerDependencies as _0x455e36,mergeOverrideWithDependencies as _0x5ed9f1,touchDependencies as _0x38b512}from'@univerjs/core';import{useDependency as _0xbac0f1,useObservable as _0x4ba877,IUIPartsService as _0xfebe73,BuiltInUIPart as _0x193595,connectInjector as _0x207180}from'@univerjs/ui';import{jsx as _0xaef94e,jsxs as _0x2e97ac,Fragment as _0x4ce6f7}from'react/jsx-runtime';import{Dropdown as _0x211184,clsx as _0x4b2647,Button as _0x44c590}from'@univerjs/design';import{forwardRef as _0x5878b5,useRef as _0x2cbd0a,createElement as _0x5c33d5,useState as _0x53588e,useEffect as _0x467f8a}from'react';import{CollaborationEvent as _0x1d9b33,parseProtocolChangeset as _0x2d6d75}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x52ff69,SessionStatus as _0x189821,UniverCollaborationClientPlugin as _0x2f4a1c}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x52e440,SetWorksheetActiveOperation as _0x564afb}from'@univerjs/sheets';import{BehaviorSubject as _0x3dad2c,Subject as _0x2a1089}from'rxjs';import{takeUntil as _0x34c3f4,throttleTime as _0x214aa1}from'rxjs/operators';import{SetZoomRatioOperation as _0x25cf9a,SetScrollOperation as _0x20a77c}from'@univerjs/sheets-ui';var c=function(){var _0x35cc2d=_0x5c2374;return c=Object[_0x35cc2d(0x145)]||function(_0x461e9c){var _0x1e4983=_0x35cc2d;for(var _0xa26d43,_0x2982c8=0x1,_0x2c73e3=arguments[_0x1e4983(0xf1)];_0x2982c8<_0x2c73e3;_0x2982c8++){_0xa26d43=arguments[_0x2982c8];for(var _0x6309b9 in _0xa26d43)Object[_0x1e4983(0x17e)][_0x1e4983(0x139)]['call'](_0xa26d43,_0x6309b9)&&(_0x461e9c[_0x6309b9]=_0xa26d43[_0x6309b9]);}return _0x461e9c;},c[_0x35cc2d(0xed)](this,arguments);},Oe=function(_0x595c6a,_0x20ef97){var _0x852577=_0x5c2374,_0x586e50={};for(var _0x490d00 in _0x595c6a)Object['prototype']['hasOwnProperty'][_0x852577(0x152)](_0x595c6a,_0x490d00)&&_0x20ef97[_0x852577(0xfc)](_0x490d00)<0x0&&(_0x586e50[_0x490d00]=_0x595c6a[_0x490d00]);if(_0x595c6a!=null&&typeof Object[_0x852577(0xe7)]=='function'){for(var _0x52ad70=0x0,_0x490d00=Object[_0x852577(0xe7)](_0x595c6a);_0x52ad70<_0x490d00[_0x852577(0xf1)];_0x52ad70++)_0x20ef97[_0x852577(0xfc)](_0x490d00[_0x52ad70])<0x0&&Object[_0x852577(0x17e)][_0x852577(0x16e)]['call'](_0x595c6a,_0x490d00[_0x52ad70])&&(_0x586e50[_0x490d00[_0x52ad70]]=_0x595c6a[_0x490d00[_0x52ad70]]);}return _0x586e50;},W=_0x5878b5(function(_0x1b5a52,_0x46baf3){var _0x41ccfb=_0x5c2374,_0x11a4ca=_0x1b5a52[_0x41ccfb(0x100)],_0x5d4ac8=_0x1b5a52['id'],_0x3ff276=_0x1b5a52[_0x41ccfb(0x17a)],_0x5b89ab=_0x1b5a52[_0x41ccfb(0x174)],_0x1e184b=Oe(_0x1b5a52,[_0x41ccfb(0x100),'id','className',_0x41ccfb(0x174)]),_0x1fcd07=_0x41ccfb(0x16b)[_0x41ccfb(0x181)](_0x5d4ac8,'\x20')['concat'](_0x3ff276||'')[_0x41ccfb(0x108)](),_0x4d3318=_0x2cbd0a('_'['concat'](Ne()));return Y(_0x11a4ca,''['concat'](_0x5d4ac8),{'defIds':_0x11a4ca['defIds'],'idSuffix':_0x4d3318[_0x41ccfb(0x12d)]},c({'ref':_0x46baf3,'className':_0x1fcd07},_0x1e184b),_0x5b89ab);});function Y(_0x1b9d78,_0x3fabdc,_0x368e2a,_0x3e4f90,_0x2eb502){var _0x579153=_0x5c2374;return _0x5c33d5(_0x1b9d78[_0x579153(0x18b)],c(c({'key':_0x3fabdc},Ee(_0x1b9d78,_0x368e2a,_0x2eb502)),_0x3e4f90),(we(_0x1b9d78,_0x368e2a)[_0x579153(0x151)]||[])[_0x579153(0x11f)](function(_0x3fb403,_0x59f7e0){var _0x2510af=_0x579153;return Y(_0x3fb403,''[_0x2510af(0x181)](_0x3fabdc,'-')[_0x2510af(0x181)](_0x1b9d78[_0x2510af(0x18b)],'-')['concat'](_0x59f7e0),_0x368e2a,void 0x0,_0x2eb502);}));}function Ee(_0x35327d,_0x13faf1,_0xc7cbc1){var _0x302bae=_0x5c2374,_0x641e59=c({},_0x35327d[_0x302bae(0x142)]);_0xc7cbc1!=null&&_0xc7cbc1[_0x302bae(0xf0)]&&_0x641e59[_0x302bae(0x156)]==='colorChannel1'&&(_0x641e59['fill']=_0xc7cbc1['colorChannel1']),_0x35327d[_0x302bae(0x18b)]===_0x302bae(0x12a)&&_0x641e59['id']&&(_0x641e59['id']=_0x641e59['id']+_0x13faf1['idSuffix']),Object['entries'](_0x641e59)[_0x302bae(0xe2)](function(_0x4fbc1a){var _0x517567=_0x302bae,_0x525a19=_0x4fbc1a[0x0],_0xc4f510=_0x4fbc1a[0x1];_0x525a19==='mask'&&typeof _0xc4f510==_0x517567(0x160)&&(_0x641e59[_0x525a19]=_0xc4f510[_0x517567(0x10b)](/url\(#(.*)\)/,_0x517567(0x150)[_0x517567(0x181)](_0x13faf1[_0x517567(0x102)],')')));});var _0x4b0391=_0x13faf1[_0x302bae(0xf2)];return!_0x4b0391||_0x4b0391[_0x302bae(0xf1)]===0x0||(_0x35327d['tag']===_0x302bae(0xe5)&&_0x641e59[_0x302bae(0x14d)]&&(_0x641e59[_0x302bae(0x14d)]=_0x641e59[_0x302bae(0x14d)]+_0x13faf1[_0x302bae(0x102)]),Object[_0x302bae(0x166)](_0x641e59)[_0x302bae(0xe2)](function(_0x376f39){var _0x3c7da4=_0x302bae,_0x4c145a=_0x376f39[0x0],_0x48121e=_0x376f39[0x1];typeof _0x48121e==_0x3c7da4(0x160)&&(_0x641e59[_0x4c145a]=_0x48121e[_0x3c7da4(0x10b)](/url\(#(.*)\)/,_0x3c7da4(0x150)[_0x3c7da4(0x181)](_0x13faf1[_0x3c7da4(0x102)],')')));})),_0x641e59;}function we(_0x1c4174,_0x2342d8){var _0x35e4a7=_0x5c2374,_0x2edc07,_0x2b5bc0=_0x2342d8[_0x35e4a7(0xf2)];return!_0x2b5bc0||_0x2b5bc0[_0x35e4a7(0xf1)]===0x0?_0x1c4174:_0x1c4174[_0x35e4a7(0x18b)]==='defs'&&(!((_0x2edc07=_0x1c4174[_0x35e4a7(0x151)])===null||_0x2edc07===void 0x0)&&_0x2edc07[_0x35e4a7(0xf1)])?c(c({},_0x1c4174),{'children':_0x1c4174[_0x35e4a7(0x151)][_0x35e4a7(0x11f)](function(_0x1645cf){var _0x1487b0=_0x35e4a7;return typeof _0x1645cf[_0x1487b0(0x142)]['id']=='string'&&_0x2b5bc0&&_0x2b5bc0['includes'](_0x1645cf['attrs']['id'])?c(c({},_0x1645cf),{'attrs':c(c({},_0x1645cf[_0x1487b0(0x142)]),{'id':_0x1645cf[_0x1487b0(0x142)]['id']+_0x2342d8['idSuffix']})}):_0x1645cf;})}):_0x1c4174;}function Ne(){var _0x1700dc=_0x5c2374;return Math[_0x1700dc(0xf6)]()[_0x1700dc(0x121)](0x24)[_0x1700dc(0x177)](0x2,0x8);}function _0x1e38(){var _0x52294d=['url(#$1','children','call','getTypeOfUnitAdded$','_unitID','complete','fill','mutations','data','getLiveShareCoordinator','onRendered','idle','_presenter','LiveShareIcon','reverse','_handleTerminate','string','delete','live-share.config','unitId','http://www.w3.org/2000/svg','executeCommand','entries','UNIVER_LIVE_SHARE_PLUGIN','_collabSession','presenting','LIVESHARE_OPERATION','univerjs-icon\x20univerjs-icon-','_collabSessionService','evenodd','propertyIsEnumerable','_univerInstanceService','div','321585VEDsMW','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','_status$','extend','PRESENTING','getUnitId','substring','createInstance','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','className','following','not-following','from','prototype','tryStartPresenting','init','concat','shouldShareOperation','_mountLiveShare','override','_startLiveShareCoordinator','HEADER_MENU','none','stopPresenting','NOT_FOLLOWING','sessionStatus$','tag','IDLE','_liveShareService','displayName','getCurrentTypeOfUnit$','pipe','symbol','forEach','set','path','use','stringify','getOwnPropertySymbols','684vUpzLn','getConfig','UNIVER_SHEET','presenter','get','apply','16nCDHvj','default','colorChannel1','length','defIds','button','live-share-icon','You\x27are\x20offline.','random','_uiPartsService','_handleNewHost','params','registerComponent','unsubscribe','indexOf','UNIVER_UNKNOWN','OPERATION','subscribe','icon','OFFLINE','idSuffix','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','You\x27re\x20following\x20the\x20presenter','_handleNewChangeSets','registerSharedOperation','send','trim','stopFollowing','setConfig','replace','322929IaceUq','3020538xBFmYB','_handleOnline','LIVESHARE_TERMINATE','Start\x20following','getMemberID','dispose','_commandDisposable','end','9626976iQIwgw','onCommandExecuted','_handleOffline','6542904EDOmiF','svg','text','_injector','_startFollowing','_status','LIVESHARE_FETCH_OPERATIONS','map','_config','toString','_reporters','_handleOperation','468hkVhJg','_configService','_entities','has','_fetchOperations','asObservable','mask','10ngZvHZ','_stopPresenting','current','_beIdle','7QDKNbe','_sharedOperations','univer-mb-3\x20univer-w-full\x20univer-text-sm','Stop\x20following','0\x200\x2017\x2017','registerInitialStateReporter','You\x27re\x20presenting\x20the\x20document','_init','Present\x20this\x20document','status$','hasOwnProperty','dispose$','_startPresenting','getTypeOfUnitDisposed$','next','getOwnPropertyDescriptor','then','offline','16365pyUSDs','attrs','sheet','onStarting','assign','add','_commandService','startFollowing','memberID','getInitialStates','_stopFollowing','defineProperty','xlink:href','currentColor','832509sGzjQj'];_0x1e38=function(){return _0x52294d;};return _0x1e38();}W['displayName']='UniverIcon';var Ce={'tag':_0x5c2374(0x119),'attrs':{'xmlns':_0x5c2374(0x164),'fill':_0x5c2374(0x187),'viewBox':_0x5c2374(0x133),'width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x5c2374(0x14e),'d':_0x5c2374(0x179)}},{'tag':_0x5c2374(0xe4),'attrs':{'fill':_0x5c2374(0x14e),'d':_0x5c2374(0x172),'fillRule':_0x5c2374(0x16d),'clipRule':'evenodd'}}]},B=_0x5878b5(function(_0x1593b5,_0x134189){var _0x223640=_0x5c2374;return _0x5c33d5(W,Object[_0x223640(0x145)]({},_0x1593b5,{'id':_0x223640(0xf4),'ref':_0x134189,'icon':Ce}));});B[_0x5c2374(0xde)]=_0x5c2374(0x15d);class L extends _0x5d9f0b{constructor(){var _0x2f4b3c=_0x5c2374;super(...arguments),d(this,_0x2f4b3c(0x130),new Set()),d(this,_0x2f4b3c(0x122),new Set());}[_0x5c2374(0x106)](_0x44b8ce){var _0x2204b0=_0x5c2374;return this[_0x2204b0(0x130)][_0x2204b0(0x146)](_0x44b8ce),_0xc9fd27(()=>this[_0x2204b0(0x130)][_0x2204b0(0x161)](_0x44b8ce));}[_0x5c2374(0x134)](_0x595605){var _0x342df5=_0x5c2374;return this[_0x342df5(0x122)][_0x342df5(0x146)](_0x595605),_0xc9fd27(()=>this[_0x342df5(0x122)][_0x342df5(0x161)](_0x595605));}[_0x5c2374(0x182)](_0x4b6e95){var _0x4f8727=_0x5c2374;return this['_sharedOperations'][_0x4f8727(0x127)](_0x4b6e95);}[_0x5c2374(0x14a)](_0x328a1d){var _0x486735=_0x5c2374;return Array[_0x486735(0x17d)](this[_0x486735(0x122)])[_0x486735(0x11f)](_0x2994fb=>_0x2994fb(_0x328a1d));}}var De=Object[_0x5c2374(0x13e)],Z=(_0x3f68c9,_0x1c92a3,_0x3d03bc,_0x11c603)=>{for(var _0xec663f=_0x11c603>0x1?void 0x0:_0x11c603?De(_0x1c92a3,_0x3d03bc):_0x1c92a3,_0x4a4d75=_0x3f68c9['length']-0x1,_0x1902d8;_0x4a4d75>=0x0;_0x4a4d75--)(_0x1902d8=_0x3f68c9[_0x4a4d75])&&(_0xec663f=_0x1902d8(_0xec663f)||_0xec663f);return _0xec663f;},f=(_0x2818c4,_0x4b5b16)=>(_0x2d2c64,_0x5b01b7)=>_0x4b5b16(_0x2d2c64,_0x5b01b7,_0x2818c4);function _0x5f29(_0x20b525,_0x5c67db){var _0x1e38f8=_0x1e38();return _0x5f29=function(_0x5f29ae,_0x526af6){_0x5f29ae=_0x5f29ae-0xdd;var _0x58ba59=_0x1e38f8[_0x5f29ae];return _0x58ba59;},_0x5f29(_0x20b525,_0x5c67db);}let m=class extends _0x12f1b4{constructor(_0x5dcb10,_0x2d1b14,_0x1e85e6){var _0x5f28ba=_0x5c2374;super(),d(this,_0x5f28ba(0x126),new Map()),(this[_0x5f28ba(0x16f)]=_0x5dcb10,this[_0x5f28ba(0x11b)]=_0x2d1b14,this[_0x5f28ba(0x16c)]=_0x1e85e6,this[_0x5f28ba(0x136)]());}async[_0x5c2374(0x159)](_0x423df4){var _0x5a20b6=_0x5c2374;return this[_0x5a20b6(0x126)][_0x5a20b6(0x127)](_0x423df4)||await this[_0x5a20b6(0x185)](_0x423df4),this['_entities'][_0x5a20b6(0xec)](_0x423df4);}['_init'](){var _0x3fdaa7=_0x5c2374;this[_0x3fdaa7(0x16f)][_0x3fdaa7(0x153)](_0x597c39[_0x3fdaa7(0xea)])[_0x3fdaa7(0xe0)](_0x34c3f4(this[_0x3fdaa7(0x13a)]))[_0x3fdaa7(0xff)](async _0x1db56e=>{var _0x2e6760=_0x3fdaa7;const _0x24ab4c=_0x1db56e[_0x2e6760(0x176)]();this[_0x2e6760(0x126)][_0x2e6760(0x127)](_0x24ab4c)||this[_0x2e6760(0x185)](_0x24ab4c);}),this[_0x3fdaa7(0x16f)][_0x3fdaa7(0x13c)](_0x597c39['UNIVER_SHEET'])['pipe'](_0x34c3f4(this[_0x3fdaa7(0x13a)]))[_0x3fdaa7(0xff)](_0x57798c=>{var _0x3af5c0=_0x3fdaa7;const _0x39689c=_0x57798c['getUnitId'](),_0x5cfb8e=this['_entities'][_0x3af5c0(0xec)](_0x39689c);_0x5cfb8e==null||_0x5cfb8e[_0x3af5c0(0x112)]();});}async[_0x5c2374(0x185)](_0x278eda){var _0x427a9e=_0x5c2374;const _0x3deb5f=await this[_0x427a9e(0x16c)]['requireSession'](_0x278eda),_0x2bbf9b=this[_0x427a9e(0x11b)][_0x427a9e(0x178)](C,_0x278eda,_0x3deb5f);return _0x2bbf9b[_0x427a9e(0x180)](),this['_entities']['set'](_0x278eda,_0x2bbf9b),_0x2bbf9b;}};m=Z([f(0x0,_0x396a71),f(0x1,_0x1d6dfe(_0x5e4e3e)),f(0x2,_0x1d6dfe(_0x52ff69))],m);var h=(_0x3cafa4=>(_0x3cafa4[_0x5c2374(0x101)]=_0x5c2374(0x140),_0x3cafa4['IDLE']=_0x5c2374(0x15b),_0x3cafa4['FOLLOWING']=_0x5c2374(0x17b),_0x3cafa4[_0x5c2374(0x189)]='not-following',_0x3cafa4[_0x5c2374(0x175)]=_0x5c2374(0x169),_0x3cafa4))(h||{});const xe='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;let C=class extends _0x12f1b4{constructor(_0x25bbb7,_0xb20d2f,_0x335abd,_0x30f21c,_0x4844b0){var _0x48ae87=_0x5c2374;super(),d(this,_0x48ae87(0x173),new _0x3dad2c(_0x48ae87(0x15b))),d(this,_0x48ae87(0x138),this[_0x48ae87(0x173)][_0x48ae87(0x129)]()),d(this,'_init',!0x1),d(this,_0x48ae87(0x113),null),d(this,_0x48ae87(0x15c),null),(this[_0x48ae87(0x154)]=_0x25bbb7,this[_0x48ae87(0x168)]=_0xb20d2f,this[_0x48ae87(0x125)]=_0x335abd,this[_0x48ae87(0xdd)]=_0x30f21c,this[_0x48ae87(0x147)]=_0x4844b0);}get[_0x5c2374(0x11d)](){return this['_status$']['getValue']();}[_0x5c2374(0x112)](){var _0xbef148=_0x5c2374,_0x1265e1;(_0x1265e1=this[_0xbef148(0x113)])==null||_0x1265e1[_0xbef148(0x112)](),this[_0xbef148(0x173)][_0xbef148(0x13d)](_0xbef148(0x15b)),this[_0xbef148(0x173)][_0xbef148(0x155)]();}[_0x5c2374(0x180)](){var _0x148cdd=_0x5c2374;this['_init']||(this[_0x148cdd(0x136)]=!0x0,this[_0x148cdd(0x168)][_0x148cdd(0x18a)]['pipe'](_0x34c3f4(this['dispose$']))[_0x148cdd(0xff)](_0x38157e=>{var _0xb3d615=_0x148cdd;switch(_0x38157e){case _0x189821[_0xb3d615(0x101)]:this[_0xb3d615(0x117)]();break;case _0x189821['ONLINE']:this[_0xb3d615(0x10e)]();break;}}),this[_0x148cdd(0x168)]['event$']['pipe'](_0x34c3f4(this[_0x148cdd(0x13a)]))[_0x148cdd(0xff)](_0x5815be=>{var _0x320dda=_0x148cdd;const {eventID:_0x115cde}=_0x5815be;switch(_0x115cde){case _0x1d9b33['LIVESHARE_NEW_HOST']:this[_0x320dda(0xf8)](_0x5815be);break;case _0x1d9b33[_0x320dda(0x16a)]:this['_handleOperation'](_0x5815be);break;case _0x1d9b33[_0x320dda(0x10f)]:this[_0x320dda(0x15f)]();break;case _0x1d9b33['NEW_CHANGESETS']:this[_0x320dda(0x105)](_0x5815be);break;}}));}['tryStartPresenting'](){var _0x164279=_0x5c2374;this['_collabSession'][_0x164279(0x107)]({'eventID':_0x1d9b33['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x164279(0x154)],'userID':this[_0x164279(0x168)]['getMemberID']()}},this[_0x164279(0x154)]);}[_0x5c2374(0x188)](){var _0x443d2c=_0x5c2374;this['_status']===_0x443d2c(0x169)&&(this[_0x443d2c(0x173)][_0x443d2c(0x13d)]('idle'),this[_0x443d2c(0x168)][_0x443d2c(0x107)]({'eventID':_0x1d9b33[_0x443d2c(0x10f)],'data':{'unitID':this[_0x443d2c(0x154)]}},this['_unitID']));}[_0x5c2374(0x148)](){var _0x2442d0=_0x5c2374;this['_status']===_0x2442d0(0x17c)&&(this[_0x2442d0(0x173)][_0x2442d0(0x13d)](_0x2442d0(0x17b)),this['_startFollowing']());}['stopFollowing'](){var _0x4ff7a3=_0x5c2374;this[_0x4ff7a3(0x11d)]===_0x4ff7a3(0x17b)&&this['_stopFollowing']();}[_0x5c2374(0xf8)](_0x449da1){var _0x523db0=_0x5c2374;const {presenter:_0x435db4}=_0x449da1[_0x523db0(0x158)],_0x39fb2e=this[_0x523db0(0x168)][_0x523db0(0x111)]();this[_0x523db0(0x15c)]=_0x435db4,_0x435db4===_0x39fb2e?(this[_0x523db0(0x14b)](),this[_0x523db0(0x13b)]()):this[_0x523db0(0x11d)]!==_0x523db0(0x17c)&&(this[_0x523db0(0x12c)](),this['_startFollowing']());}[_0x5c2374(0x128)](){var _0x534d27=_0x5c2374;const _0x3aba21={'eventID':_0x1d9b33[_0x534d27(0x11e)]};this['_collabSession'][_0x534d27(0x107)](_0x3aba21,this[_0x534d27(0x154)]);}['_handleTerminate'](){var _0x5ae188=_0x5c2374;this[_0x5ae188(0x15c)]=null,this['_status']!==_0x5ae188(0x169)&&this[_0x5ae188(0x12e)]();}[_0x5c2374(0x105)](_0x439474){var _0x1a721c=_0x5c2374;if(this[_0x1a721c(0x11d)]===_0x1a721c(0x17b)&&this[_0x1a721c(0x15c)]===_0x439474['data'][_0x1a721c(0x149)]){const _0x5b19fd=_0x2d6d75(_0x439474[_0x1a721c(0x158)])[_0x1a721c(0x157)][_0x1a721c(0x15e)]()['find'](_0xc59f35=>_0xc59f35['id']===_0x52e440['id']);if(_0x5b19fd){const _0x39a88e=_0x5b19fd[_0x1a721c(0xf9)][_0x1a721c(0x163)],_0x3cff97=_0x5b19fd[_0x1a721c(0xf9)][_0x1a721c(0x143)]['id'];setTimeout(()=>{var _0x360089=_0x1a721c;this[_0x360089(0x147)][_0x360089(0x165)](_0x564afb['id'],{'unitId':_0x39a88e,'subUnitId':_0x3cff97},{'fromCollab':!0x0});});}}}[_0x5c2374(0x13b)](){var _0x246ff3=_0x5c2374;this[_0x246ff3(0x173)][_0x246ff3(0x13d)](_0x246ff3(0x169));const _0xc28806=new Map(),_0x5a241c=this['_commandDisposable']=new _0x13da4f();_0x5a241c[_0x246ff3(0x146)](_0xc9fd27(()=>{var _0x3f8d62=_0x246ff3;_0xc28806[_0x3f8d62(0xe2)](_0x22fb37=>_0x22fb37[_0x3f8d62(0x155)]()),_0xc28806['clear']();})),_0x5a241c[_0x246ff3(0x146)](this[_0x246ff3(0x147)][_0x246ff3(0x116)](_0x4d65c5=>{var _0x5d0cc9=_0x246ff3,_0x3bbe61;if(_0x4d65c5['type']!==_0x46b67e[_0x5d0cc9(0xfe)]||!this[_0x5d0cc9(0xdd)][_0x5d0cc9(0x182)](_0x4d65c5['id']))return;const {id:_0x4e33c8}=_0x4d65c5;let _0x26e0e8;_0xc28806['has'](_0x4e33c8)?_0x26e0e8=_0xc28806[_0x5d0cc9(0xec)](_0x4e33c8):(_0x26e0e8=new _0x2a1089(),_0xc28806[_0x5d0cc9(0xe3)](_0x4e33c8,_0x26e0e8),_0x26e0e8['pipe'](_0x214aa1((_0x3bbe61=this[_0x5d0cc9(0x125)][_0x5d0cc9(0xe9)](xe))!=null?_0x3bbe61:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x362cea=>{var _0x1b4a16=_0x5d0cc9;this['_collabSession'][_0x1b4a16(0x107)]({'eventID':_0x1d9b33[_0x1b4a16(0x16a)],'data':{'unitID':this[_0x1b4a16(0x154)],'operations':{[_0x362cea['id']]:{'id':_0x362cea['id'],'params':JSON[_0x1b4a16(0xe6)](_0x362cea[_0x1b4a16(0xf9)])}}}},this['_unitID']);})),_0x26e0e8[_0x5d0cc9(0x13d)](_0x4d65c5);})),this['_liveShareService'][_0x246ff3(0x14a)](this['_unitID'])[_0x246ff3(0xe2)](_0x7dc724=>this[_0x246ff3(0x168)][_0x246ff3(0x107)]({'eventID':_0x1d9b33[_0x246ff3(0x16a)],'data':{'unitID':this[_0x246ff3(0x154)],'operations':{[_0x7dc724['id']]:{'id':_0x7dc724['id'],'params':JSON[_0x246ff3(0xe6)](_0x7dc724[_0x246ff3(0xf9)])}}}},this['_unitID']));}[_0x5c2374(0x12c)](){var _0x50f9c6=_0x5c2374,_0x92a461;this['_status$'][_0x50f9c6(0x13d)](_0x50f9c6(0x15b)),(_0x92a461=this[_0x50f9c6(0x113)])==null||_0x92a461[_0x50f9c6(0x112)](),this[_0x50f9c6(0x113)]=null;}[_0x5c2374(0x11c)](){var _0x4daad9=_0x5c2374,_0x603d21;(_0x603d21=this['_commandDisposable'])==null||_0x603d21[_0x4daad9(0x112)](),this[_0x4daad9(0x173)][_0x4daad9(0x13d)](_0x4daad9(0x17b));}[_0x5c2374(0x12e)](){var _0x17682f=_0x5c2374,_0x448155;this['_status$'][_0x17682f(0x13d)]('idle'),(_0x448155=this['_commandDisposable'])==null||_0x448155[_0x17682f(0x112)](),this[_0x17682f(0x113)]=null;}[_0x5c2374(0x14b)](){var _0xdc0909=_0x5c2374,_0x5c57b3;this[_0xdc0909(0x173)][_0xdc0909(0x13d)]('not-following'),(_0x5c57b3=this[_0xdc0909(0x113)])==null||_0x5c57b3[_0xdc0909(0x112)]();}[_0x5c2374(0x123)](_0x41bc66){var _0x4c5daf=_0x5c2374;if(['presenting',_0x4c5daf(0x17c),_0x4c5daf(0x140)]['includes'](this[_0x4c5daf(0x11d)])||!_0x41bc66['data']['presenter']||_0x41bc66['data'][_0x4c5daf(0xeb)]===this[_0x4c5daf(0x168)][_0x4c5daf(0x111)]())return;this[_0x4c5daf(0x11d)]===_0x4c5daf(0x15b)&&this[_0x4c5daf(0x11c)]();const _0x38b55c=_0x41bc66['data']['operations'];Object['values'](_0x38b55c)[_0x4c5daf(0xe2)](_0x5652ad=>{var _0x363c7c=_0x4c5daf;this[_0x363c7c(0x147)][_0x363c7c(0x165)](_0x5652ad['id'],_0x5652ad['params']?JSON['parse'](_0x5652ad[_0x363c7c(0xf9)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1845b1=_0x5c2374,_0x5109ba;this[_0x1845b1(0x173)][_0x1845b1(0x13d)](_0x1845b1(0x140)),(_0x5109ba=this[_0x1845b1(0x113)])==null||_0x5109ba[_0x1845b1(0x112)]();}[_0x5c2374(0x10e)](){var _0x20e20f=_0x5c2374;this[_0x20e20f(0x173)]['next'](_0x20e20f(0x15b)),this['_fetchOperations']();}};C=Z([f(0x2,_0x427207),f(0x3,_0x1d6dfe(L)),f(0x4,_0x2fdcd6)],C);function ye(){var _0x59999c=_0x5c2374;const _0xa580fd=_0xbac0f1(m),_0x579c1a=_0xbac0f1(_0x396a71),_0x118451=_0x4ba877(()=>_0x579c1a[_0x59999c(0xdf)](_0x597c39[_0x59999c(0xea)]),void 0x0,!0x1,[]),[_0x40ff1b,_0x2ffe1d]=_0x53588e(null),[_0x2fa600,_0x2c5572]=_0x53588e(h[_0x59999c(0x18c)]),_0x572b6c=_0x2cbd0a(null);return _0x467f8a(()=>(_0x118451&&_0xa580fd[_0x59999c(0x159)](_0x118451[_0x59999c(0x176)]())[_0x59999c(0x13f)](_0x3770d1=>{var _0x740ce7=_0x59999c;_0x2ffe1d(_0x3770d1),_0x572b6c[_0x740ce7(0x12d)]=_0x3770d1['status$']['subscribe'](_0xed2d5b=>{_0x2c5572(_0xed2d5b);});}),()=>{var _0x190925=_0x59999c,_0x151135;(_0x151135=_0x572b6c[_0x190925(0x12d)])==null||_0x151135[_0x190925(0xfb)](),_0x572b6c[_0x190925(0x12d)]=null;}),[_0x118451,_0xa580fd]),_0x40ff1b?_0xaef94e(_0x211184,{'align':_0x59999c(0x114),'disabled':_0x2fa600===h['OFFLINE'],'className':_0x59999c(0x103),'overlay':_0xaef94e(Re,{'status':_0x2fa600,'coordinator':_0x40ff1b}),'children':_0xaef94e(_0x59999c(0xf3),{'className':_0x4b2647('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2fa600===h[_0x59999c(0x101)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2fa600!==h[_0x59999c(0x101)]}),'type':_0x59999c(0xf3),'children':_0xaef94e(B,{'className':'univer-size-4'})})}):null;}function Re(_0x1d0f8e){var _0xfe2f8e=_0x5c2374;const {status:_0x427573,coordinator:_0x198a85}=_0x1d0f8e;switch(_0x427573){case h[_0xfe2f8e(0x18c)]:return _0xaef94e(Pe,{'coordinator':_0x198a85});case h['FOLLOWING']:return _0xaef94e(Ae,{'coordinator':_0x198a85});case h['NOT_FOLLOWING']:return _0xaef94e(Te,{'coordinator':_0x198a85});case h[_0xfe2f8e(0x101)]:return _0xaef94e(Fe,{});case h[_0xfe2f8e(0x175)]:return _0xaef94e($e,{'coordinator':_0x198a85});default:return null;}}function Pe(_0x30b693){var _0x170b69=_0x5c2374;const {coordinator:_0x4a96e2}=_0x30b693;return _0x2e97ac(_0x4ce6f7,{'children':[_0xaef94e(_0x170b69(0x170),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x170b69(0x137)}),_0xaef94e(_0x44c590,{'onClick':()=>_0x4a96e2[_0x170b69(0x17f)](),'children':'Start'})]});}function Ae(_0x3e97df){var _0x41e94a=_0x5c2374;const {coordinator:_0x2203c1}=_0x3e97df;return _0x2e97ac(_0x4ce6f7,{'children':[_0xaef94e(_0x41e94a(0x170),{'className':_0x41e94a(0x131),'children':_0x41e94a(0x104)}),_0xaef94e(_0x44c590,{'onClick':()=>_0x2203c1[_0x41e94a(0x109)](),'children':_0x41e94a(0x132)})]});}function Te(_0x5a4129){var _0xc7103d=_0x5c2374;const {coordinator:_0x2efbb5}=_0x5a4129;return _0x2e97ac(_0x4ce6f7,{'children':[_0xaef94e(_0xc7103d(0x170),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0xaef94e(_0x44c590,{'variant':_0xc7103d(0x11a),'onClick':()=>_0x2efbb5['startFollowing'](),'children':_0xc7103d(0x110)})]});}function $e(_0x19b183){var _0xe79e5b=_0x5c2374;const {coordinator:_0x54e166}=_0x19b183;return _0x2e97ac(_0x4ce6f7,{'children':[_0xaef94e('div',{'className':_0xe79e5b(0x131),'children':_0xe79e5b(0x135)}),_0xaef94e(_0x44c590,{'variant':_0xe79e5b(0xef),'onClick':()=>_0x54e166['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Fe(){var _0x5606a3=_0x5c2374;return _0xaef94e(_0x4ce6f7,{'children':_0x5606a3(0xf5)});}var He=Object[_0x5c2374(0x13e)],je=(_0x341caf,_0x19c56f,_0x28c5d7,_0x1df115)=>{var _0xac4349=_0x5c2374;for(var _0x2c136d=_0x1df115>0x1?void 0x0:_0x1df115?He(_0x19c56f,_0x28c5d7):_0x19c56f,_0x2c055b=_0x341caf[_0xac4349(0xf1)]-0x1,_0x1d39d7;_0x2c055b>=0x0;_0x2c055b--)(_0x1d39d7=_0x341caf[_0x2c055b])&&(_0x2c136d=_0x1d39d7(_0x2c136d)||_0x2c136d);return _0x2c136d;},T=(_0x45d1b2,_0x10f233)=>(_0x5b7965,_0x1440df)=>_0x10f233(_0x5b7965,_0x1440df,_0x45d1b2);let I=class extends _0x5d9f0b{constructor(_0x3a454a,_0x16d4a2){var _0x4ca2b1=_0x5c2374;super(),this[_0x4ca2b1(0x11b)]=_0x3a454a,this[_0x4ca2b1(0xf7)]=_0x16d4a2,this[_0x4ca2b1(0x183)]();}[_0x5c2374(0x183)](){var _0x2b7b7c=_0x5c2374;this['disposeWithMe'](this[_0x2b7b7c(0xf7)][_0x2b7b7c(0xfa)](_0x193595[_0x2b7b7c(0x186)],()=>_0x207180(ye,this['_injector'])));}};I=je([T(0x0,_0x1d6dfe(_0x5e4e3e)),T(0x1,_0xfebe73)],I);const Ue=_0x5c2374(0x162),$={};var Ve=Object[_0x5c2374(0x13e)],Me=(_0x14e10e,_0xe535ad,_0x4cd66a,_0x347e36)=>{var _0x4670a1=_0x5c2374;for(var _0x57f36e=_0x347e36>0x1?void 0x0:_0x347e36?Ve(_0xe535ad,_0x4cd66a):_0xe535ad,_0x55e426=_0x14e10e[_0x4670a1(0xf1)]-0x1,_0x3d1718;_0x55e426>=0x0;_0x55e426--)(_0x3d1718=_0x14e10e[_0x55e426])&&(_0x57f36e=_0x3d1718(_0x57f36e)||_0x57f36e);return _0x57f36e;},ke=(_0x572c66,_0x59849a)=>(_0x3bfde5,_0x2f1730)=>_0x59849a(_0x3bfde5,_0x2f1730,_0x572c66);let b=class extends _0x5d9f0b{constructor(_0x521929){var _0x1ace44=_0x5c2374;super(),this[_0x1ace44(0xdd)]=_0x521929,this['_init']();}['_init'](){var _0x5d387b=_0x5c2374;[_0x25cf9a['id'],_0x20a77c['id'],_0x564afb['id']][_0x5d387b(0xe2)](_0x21aab3=>{var _0x36fef3=_0x5d387b;this['disposeWithMe'](this['_liveShareService'][_0x36fef3(0x106)](_0x21aab3));});}};b=Me([ke(0x0,_0x1d6dfe(L))],b);var Ge=Object[_0x5c2374(0x14c)],We=Object[_0x5c2374(0x13e)],Ye=(_0x2a1d01,_0x4ee20b,_0x490690)=>_0x4ee20b in _0x2a1d01?Ge(_0x2a1d01,_0x4ee20b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x490690}):_0x2a1d01[_0x4ee20b]=_0x490690,Be=(_0x4089c1,_0x13471a,_0x319da0,_0x399ed7)=>{var _0x31825a=_0x5c2374;for(var _0x2e264a=_0x399ed7>0x1?void 0x0:_0x399ed7?We(_0x13471a,_0x319da0):_0x13471a,_0x5eb86d=_0x4089c1[_0x31825a(0xf1)]-0x1,_0x29b6a6;_0x5eb86d>=0x0;_0x5eb86d--)(_0x29b6a6=_0x4089c1[_0x5eb86d])&&(_0x2e264a=_0x29b6a6(_0x2e264a)||_0x2e264a);return _0x2e264a;},F=(_0x5f52f9,_0x3dbc4b)=>(_0x15489b,_0x350a08)=>_0x3dbc4b(_0x15489b,_0x350a08,_0x5f52f9),J=(_0x3a1805,_0x393db9,_0x4395c1)=>Ye(_0x3a1805,typeof _0x393db9!='symbol'?_0x393db9+'':_0x393db9,_0x4395c1);const Ze=_0x5c2374(0x167);let O=class extends _0x85ddfe{constructor(_0x3e883e=$,_0x4e0bb3,_0x160181){var _0x3907ca=_0x5c2374;super(),this[_0x3907ca(0x120)]=_0x3e883e,this['_injector']=_0x4e0bb3,this['_configService']=_0x160181;const {..._0x426146}=_0x4b219b({},$,this[_0x3907ca(0x120)]);this[_0x3907ca(0x125)][_0x3907ca(0x10a)](Ue,_0x426146);}[_0x5c2374(0x144)](){var _0x266a9a=_0x5c2374;_0x455e36(this[_0x266a9a(0x11b)],_0x5ed9f1([[L],[m],[b],[I]],this[_0x266a9a(0x120)][_0x266a9a(0x184)])),_0x38b512(this['_injector'],[[b]]);}[_0x5c2374(0x15a)](){_0x38b512(this['_injector'],[[I]]);}};J(O,'type',_0x597c39[_0x5c2374(0xfd)]),J(O,'pluginName',Ze),O=Be([_0x20bf5b(_0x2f4a1c),F(0x1,_0x1d6dfe(_0x5e4e3e)),F(0x2,_0x427207)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0xf0588f=_0x512b;(function(_0x19e2da,_0x283a23){var _0x29619d=_0x512b,_0x455e05=_0x19e2da();while(!![]){try{var _0x1261ca=-parseInt(_0x29619d(0x1c3))/0x1+-parseInt(_0x29619d(0x187))/0x2*(parseInt(_0x29619d(0x156))/0x3)+parseInt(_0x29619d(0x184))/0x4+parseInt(_0x29619d(0x1b8))/0x5+parseInt(_0x29619d(0x199))/0x6+-parseInt(_0x29619d(0x188))/0x7*(parseInt(_0x29619d(0x1cc))/0x8)+parseInt(_0x29619d(0x1c8))/0x9*(parseInt(_0x29619d(0x1e0))/0xa);if(_0x1261ca===_0x283a23)break;else _0x455e05['push'](_0x455e05['shift']());}catch(_0x331d80){_0x455e05['push'](_0x455e05['shift']());}}}(_0x59da,0x8d9a1));var q=Object[_0xf0588f(0x1ef)],z=(_0x312c23,_0x154a70,_0x248075)=>_0x154a70 in _0x312c23?q(_0x312c23,_0x154a70,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x248075}):_0x312c23[_0x154a70]=_0x248075,d=(_0x1b9265,_0x1188d4,_0x2f0128)=>z(_0x1b9265,typeof _0x1188d4!=_0xf0588f(0x17d)?_0x1188d4+'':_0x1188d4,_0x2f0128);import{Disposable as _0x10571d,toDisposable as _0x48e11a,IUniverInstanceService as _0x344d2c,Inject as _0x68914,Injector as _0x355540,IConfigService as _0x2c88fb,ICommandService as _0xdc74d2,RxDisposable as _0x372cb7,UniverInstanceType as _0x4c3c61,DisposableCollection as _0x260e95,CommandType as _0x3829f0,DependentOn as _0x9fac4b,Plugin as _0x519c08,merge as _0x252811,registerDependencies as _0x1cfa1f,mergeOverrideWithDependencies as _0x4cfe19,touchDependencies as _0x4e427e}from'@univerjs/core';function _0x512b(_0x5d1052,_0x28604b){var _0x59da5e=_0x59da();return _0x512b=function(_0x512b01,_0x88c7b1){_0x512b01=_0x512b01-0x154;var _0xc99980=_0x59da5e[_0x512b01];return _0xc99980;},_0x512b(_0x5d1052,_0x28604b);}import{useDependency as _0x5ed6d8,useObservable as _0x5099d5,IUIPartsService as _0x5e9bd8,BuiltInUIPart as _0xcde8b6,connectInjector as _0x114849}from'@univerjs/ui';import{jsx as _0x7d6475,jsxs as _0x492ee1,Fragment as _0xfb239c}from'react/jsx-runtime';import{Dropdown as _0x37f252,clsx as _0x3844f1,Button as _0x3da79b}from'@univerjs/design';import{forwardRef as _0x16a9e6,useRef as _0x490fb6,createElement as _0x144472,useState as _0x1b5347,useEffect as _0x2e846d}from'react';import{CollaborationEvent as _0x1b6ec8,parseProtocolChangeset as _0x5d3d5f}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x36448a,SessionStatus as _0x37ff83,UniverCollaborationClientPlugin as _0x29d85d}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x462961,SetWorksheetActiveOperation as _0xb98e3c}from'@univerjs/sheets';import{BehaviorSubject as _0x2bcf5b,Subject as _0x239e6b}from'rxjs';import{takeUntil as _0x247bb8,throttleTime as _0x417704}from'rxjs/operators';import{SetZoomRatioOperation as _0x495ed0,SetScrollOperation as _0x5e8ec9}from'@univerjs/sheets-ui';var c=function(){var _0x421dc8=_0xf0588f;return c=Object[_0x421dc8(0x192)]||function(_0x2d1f1a){var _0x58af7e=_0x421dc8;for(var _0x49f843,_0x406bbc=0x1,_0x2ff6bd=arguments[_0x58af7e(0x1ed)];_0x406bbc<_0x2ff6bd;_0x406bbc++){_0x49f843=arguments[_0x406bbc];for(var _0x257042 in _0x49f843)Object[_0x58af7e(0x19b)][_0x58af7e(0x200)][_0x58af7e(0x174)](_0x49f843,_0x257042)&&(_0x2d1f1a[_0x257042]=_0x49f843[_0x257042]);}return _0x2d1f1a;},c[_0x421dc8(0x201)](this,arguments);},Oe=function(_0x51f206,_0x52c101){var _0x4b9903=_0xf0588f,_0xb6a09={};for(var _0x4ba236 in _0x51f206)Object[_0x4b9903(0x19b)]['hasOwnProperty'][_0x4b9903(0x174)](_0x51f206,_0x4ba236)&&_0x52c101[_0x4b9903(0x203)](_0x4ba236)<0x0&&(_0xb6a09[_0x4ba236]=_0x51f206[_0x4ba236]);if(_0x51f206!=null&&typeof Object[_0x4b9903(0x1e7)]==_0x4b9903(0x1fd)){for(var _0x18ab96=0x0,_0x4ba236=Object[_0x4b9903(0x1e7)](_0x51f206);_0x18ab96<_0x4ba236['length'];_0x18ab96++)_0x52c101[_0x4b9903(0x203)](_0x4ba236[_0x18ab96])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x51f206,_0x4ba236[_0x18ab96])&&(_0xb6a09[_0x4ba236[_0x18ab96]]=_0x51f206[_0x4ba236[_0x18ab96]]);}return _0xb6a09;},W=_0x16a9e6(function(_0xd88efc,_0x1a7ec3){var _0x5e72c9=_0xf0588f,_0x2875d1=_0xd88efc['icon'],_0x205c72=_0xd88efc['id'],_0x208bc5=_0xd88efc['className'],_0x53dcff=_0xd88efc[_0x5e72c9(0x178)],_0x873fb6=Oe(_0xd88efc,[_0x5e72c9(0x1f2),'id',_0x5e72c9(0x1fa),'extend']),_0x1f05d7=_0x5e72c9(0x204)['concat'](_0x205c72,'\x20')['concat'](_0x208bc5||'')[_0x5e72c9(0x19d)](),_0x104c59=_0x490fb6('_'[_0x5e72c9(0x1d5)](Ne()));return Y(_0x2875d1,''[_0x5e72c9(0x1d5)](_0x205c72),{'defIds':_0x2875d1[_0x5e72c9(0x159)],'idSuffix':_0x104c59['current']},c({'ref':_0x1a7ec3,'className':_0x1f05d7},_0x873fb6),_0x53dcff);});function Y(_0x168032,_0x3b1097,_0x56ed26,_0x4c0365,_0x18bf77){var _0xbb6eac=_0xf0588f;return _0x144472(_0x168032[_0xbb6eac(0x17b)],c(c({'key':_0x3b1097},Ee(_0x168032,_0x56ed26,_0x18bf77)),_0x4c0365),(we(_0x168032,_0x56ed26)[_0xbb6eac(0x182)]||[])[_0xbb6eac(0x1f1)](function(_0x1d909d,_0x3b58fd){var _0x2135a2=_0xbb6eac;return Y(_0x1d909d,''['concat'](_0x3b1097,'-')['concat'](_0x168032[_0x2135a2(0x17b)],'-')['concat'](_0x3b58fd),_0x56ed26,void 0x0,_0x18bf77);}));}function Ee(_0x54a58b,_0x2c4246,_0x44e388){var _0x3042ac=_0xf0588f,_0x240bcd=c({},_0x54a58b[_0x3042ac(0x1f5)]);_0x44e388!=null&&_0x44e388[_0x3042ac(0x1e6)]&&_0x240bcd[_0x3042ac(0x1bd)]===_0x3042ac(0x1e6)&&(_0x240bcd[_0x3042ac(0x1bd)]=_0x44e388['colorChannel1']),_0x54a58b[_0x3042ac(0x17b)]===_0x3042ac(0x1dc)&&_0x240bcd['id']&&(_0x240bcd['id']=_0x240bcd['id']+_0x2c4246['idSuffix']),Object[_0x3042ac(0x1ff)](_0x240bcd)[_0x3042ac(0x1c7)](function(_0x567f61){var _0x49f3c2=_0x3042ac,_0x2f8b44=_0x567f61[0x0],_0x432f68=_0x567f61[0x1];_0x2f8b44==='mask'&&typeof _0x432f68==_0x49f3c2(0x1c6)&&(_0x240bcd[_0x2f8b44]=_0x432f68[_0x49f3c2(0x158)](/url\(#(.*)\)/,_0x49f3c2(0x1d6)['concat'](_0x2c4246[_0x49f3c2(0x1f7)],')')));});var _0x4725c3=_0x2c4246[_0x3042ac(0x159)];return!_0x4725c3||_0x4725c3[_0x3042ac(0x1ed)]===0x0||(_0x54a58b[_0x3042ac(0x17b)]==='use'&&_0x240bcd[_0x3042ac(0x1df)]&&(_0x240bcd[_0x3042ac(0x1df)]=_0x240bcd[_0x3042ac(0x1df)]+_0x2c4246[_0x3042ac(0x1f7)]),Object[_0x3042ac(0x1ff)](_0x240bcd)['forEach'](function(_0x284466){var _0x2af8fc=_0x3042ac,_0x465a1f=_0x284466[0x0],_0x26a360=_0x284466[0x1];typeof _0x26a360==_0x2af8fc(0x1c6)&&(_0x240bcd[_0x465a1f]=_0x26a360['replace'](/url\(#(.*)\)/,_0x2af8fc(0x1d6)[_0x2af8fc(0x1d5)](_0x2c4246['idSuffix'],')')));})),_0x240bcd;}function we(_0x1a4a14,_0x471b07){var _0x2692ca=_0xf0588f,_0xbd3d5e,_0x27625d=_0x471b07[_0x2692ca(0x159)];return!_0x27625d||_0x27625d['length']===0x0?_0x1a4a14:_0x1a4a14[_0x2692ca(0x17b)]==='defs'&&(!((_0xbd3d5e=_0x1a4a14['children'])===null||_0xbd3d5e===void 0x0)&&_0xbd3d5e['length'])?c(c({},_0x1a4a14),{'children':_0x1a4a14['children'][_0x2692ca(0x1f1)](function(_0x58d284){var _0xa74f31=_0x2692ca;return typeof _0x58d284[_0xa74f31(0x1f5)]['id']==_0xa74f31(0x1c6)&&_0x27625d&&_0x27625d['includes'](_0x58d284[_0xa74f31(0x1f5)]['id'])?c(c({},_0x58d284),{'attrs':c(c({},_0x58d284[_0xa74f31(0x1f5)]),{'id':_0x58d284[_0xa74f31(0x1f5)]['id']+_0x471b07['idSuffix']})}):_0x58d284;})}):_0x1a4a14;}function Ne(){var _0x493c1d=_0xf0588f;return Math[_0x493c1d(0x1ea)]()[_0x493c1d(0x154)](0x24)[_0x493c1d(0x16c)](0x2,0x8);}W[_0xf0588f(0x1f8)]='UniverIcon';var Ce={'tag':_0xf0588f(0x18e),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xf0588f(0x1ce),'viewBox':_0xf0588f(0x171),'width':_0xf0588f(0x1bf),'height':'1em'},'children':[{'tag':_0xf0588f(0x1bc),'attrs':{'fill':'currentColor','d':_0xf0588f(0x1ac)}},{'tag':_0xf0588f(0x1bc),'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':_0xf0588f(0x180)}}]},B=_0x16a9e6(function(_0x77a35d,_0xd2411f){var _0x4ec7d6=_0xf0588f;return _0x144472(W,Object[_0x4ec7d6(0x192)]({},_0x77a35d,{'id':'live-share-icon','ref':_0xd2411f,'icon':Ce}));});B[_0xf0588f(0x1f8)]=_0xf0588f(0x1eb);class L extends _0x10571d{constructor(){var _0x19200b=_0xf0588f;super(...arguments),d(this,_0x19200b(0x1ad),new Set()),d(this,_0x19200b(0x196),new Set());}[_0xf0588f(0x15f)](_0x392fa2){var _0x5a5e06=_0xf0588f;return this[_0x5a5e06(0x1ad)]['add'](_0x392fa2),_0x48e11a(()=>this[_0x5a5e06(0x1ad)][_0x5a5e06(0x1b9)](_0x392fa2));}[_0xf0588f(0x167)](_0x56dff1){var _0xce8ee9=_0xf0588f;return this[_0xce8ee9(0x196)]['add'](_0x56dff1),_0x48e11a(()=>this[_0xce8ee9(0x196)][_0xce8ee9(0x1b9)](_0x56dff1));}[_0xf0588f(0x179)](_0x1bbb4e){var _0x5807e2=_0xf0588f;return this[_0x5807e2(0x1ad)]['has'](_0x1bbb4e);}[_0xf0588f(0x1d0)](_0x24b1fc){var _0x5d9d07=_0xf0588f;return Array['from'](this[_0x5d9d07(0x196)])['map'](_0x555f06=>_0x555f06(_0x24b1fc));}}var De=Object[_0xf0588f(0x1fc)],Z=(_0x188e32,_0x3aabd8,_0x33b1cd,_0x3ba85b)=>{var _0x575078=_0xf0588f;for(var _0x255e8c=_0x3ba85b>0x1?void 0x0:_0x3ba85b?De(_0x3aabd8,_0x33b1cd):_0x3aabd8,_0x421dca=_0x188e32[_0x575078(0x1ed)]-0x1,_0x373a52;_0x421dca>=0x0;_0x421dca--)(_0x373a52=_0x188e32[_0x421dca])&&(_0x255e8c=_0x373a52(_0x255e8c)||_0x255e8c);return _0x255e8c;},f=(_0x529447,_0x5362fa)=>(_0x382aad,_0x38ef63)=>_0x5362fa(_0x382aad,_0x38ef63,_0x529447);let m=class extends _0x372cb7{constructor(_0x17e940,_0x141d33,_0x6c3f58){var _0x51d777=_0xf0588f;super(),d(this,_0x51d777(0x1e9),new Map()),(this[_0x51d777(0x1e4)]=_0x17e940,this['_injector']=_0x141d33,this[_0x51d777(0x202)]=_0x6c3f58,this['_init']());}async['getLiveShareCoordinator'](_0x530c59){var _0x23355f=_0xf0588f;return this[_0x23355f(0x1e9)]['has'](_0x530c59)||await this[_0x23355f(0x1a3)](_0x530c59),this[_0x23355f(0x1e9)][_0x23355f(0x1a7)](_0x530c59);}[_0xf0588f(0x186)](){var _0x4e6bfa=_0xf0588f;this[_0x4e6bfa(0x1e4)][_0x4e6bfa(0x1ee)](_0x4c3c61['UNIVER_SHEET'])[_0x4e6bfa(0x1b2)](_0x247bb8(this['dispose$']))[_0x4e6bfa(0x1b6)](async _0x41bc35=>{var _0xd2e05e=_0x4e6bfa;const _0x22d627=_0x41bc35[_0xd2e05e(0x1a8)]();this[_0xd2e05e(0x1e9)][_0xd2e05e(0x15d)](_0x22d627)||this[_0xd2e05e(0x1a3)](_0x22d627);}),this[_0x4e6bfa(0x1e4)][_0x4e6bfa(0x1a2)](_0x4c3c61[_0x4e6bfa(0x162)])['pipe'](_0x247bb8(this['dispose$']))['subscribe'](_0x2eb7de=>{var _0x54475b=_0x4e6bfa;const _0x379e32=_0x2eb7de[_0x54475b(0x1a8)](),_0x1e22db=this[_0x54475b(0x1e9)][_0x54475b(0x1a7)](_0x379e32);_0x1e22db==null||_0x1e22db[_0x54475b(0x1af)]();});}async['_startLiveShareCoordinator'](_0x4cbf45){var _0x3dd08d=_0xf0588f;const _0x12e338=await this['_collabSessionService'][_0x3dd08d(0x194)](_0x4cbf45),_0x3f5eb4=this[_0x3dd08d(0x176)][_0x3dd08d(0x183)](C,_0x4cbf45,_0x12e338);return _0x3f5eb4['init'](),this['_entities'][_0x3dd08d(0x163)](_0x4cbf45,_0x3f5eb4),_0x3f5eb4;}};m=Z([f(0x0,_0x344d2c),f(0x1,_0x68914(_0x355540)),f(0x2,_0x68914(_0x36448a))],m);var h=(_0x57cba2=>(_0x57cba2['OFFLINE']=_0xf0588f(0x205),_0x57cba2[_0xf0588f(0x15e)]='idle',_0x57cba2[_0xf0588f(0x160)]='following',_0x57cba2[_0xf0588f(0x1c0)]='not-following',_0x57cba2[_0xf0588f(0x195)]=_0xf0588f(0x1cd),_0x57cba2))(h||{});const xe=_0xf0588f(0x1da),Le=0xc8;let C=class extends _0x372cb7{constructor(_0x315c9c,_0x4056b5,_0x2917e3,_0x381809,_0x349fc2){var _0x55737b=_0xf0588f;super(),d(this,_0x55737b(0x1b0),new _0x2bcf5b(_0x55737b(0x19e))),d(this,_0x55737b(0x19f),this[_0x55737b(0x1b0)][_0x55737b(0x17e)]()),d(this,_0x55737b(0x186),!0x1),d(this,_0x55737b(0x175),null),d(this,_0x55737b(0x16e),null),(this['_unitID']=_0x315c9c,this['_collabSession']=_0x4056b5,this['_configService']=_0x2917e3,this[_0x55737b(0x185)]=_0x381809,this['_commandService']=_0x349fc2);}get[_0xf0588f(0x16b)](){var _0x19b68e=_0xf0588f;return this[_0x19b68e(0x1b0)]['getValue']();}[_0xf0588f(0x1af)](){var _0x2b3745=_0xf0588f,_0x3254b0;(_0x3254b0=this['_commandDisposable'])==null||_0x3254b0[_0x2b3745(0x1af)](),this[_0x2b3745(0x1b0)]['next'](_0x2b3745(0x19e)),this[_0x2b3745(0x1b0)]['complete']();}[_0xf0588f(0x17c)](){var _0x2c71d7=_0xf0588f;this[_0x2c71d7(0x186)]||(this[_0x2c71d7(0x186)]=!0x0,this[_0x2c71d7(0x1e2)][_0x2c71d7(0x1a1)][_0x2c71d7(0x1b2)](_0x247bb8(this[_0x2c71d7(0x1db)]))['subscribe'](_0x265ae9=>{var _0x2cd28f=_0x2c71d7;switch(_0x265ae9){case _0x37ff83['OFFLINE']:this[_0x2cd28f(0x1d9)]();break;case _0x37ff83[_0x2cd28f(0x1ab)]:this[_0x2cd28f(0x173)]();break;}}),this[_0x2c71d7(0x1e2)][_0x2c71d7(0x172)][_0x2c71d7(0x1b2)](_0x247bb8(this[_0x2c71d7(0x1db)]))[_0x2c71d7(0x1b6)](_0x1b9fc2=>{var _0x557688=_0x2c71d7;const {eventID:_0x4dbaf9}=_0x1b9fc2;switch(_0x4dbaf9){case _0x1b6ec8[_0x557688(0x1c1)]:this[_0x557688(0x1f9)](_0x1b9fc2);break;case _0x1b6ec8[_0x557688(0x1cb)]:this[_0x557688(0x1f3)](_0x1b9fc2);break;case _0x1b6ec8[_0x557688(0x1e8)]:this[_0x557688(0x1c2)]();break;case _0x1b6ec8[_0x557688(0x19a)]:this[_0x557688(0x17a)](_0x1b9fc2);break;}}));}[_0xf0588f(0x15c)](){var _0x181b75=_0xf0588f;this['_collabSession']['send']({'eventID':_0x1b6ec8[_0x181b75(0x1e5)],'data':{'unitID':this[_0x181b75(0x177)],'userID':this[_0x181b75(0x1e2)]['getMemberID']()}},this[_0x181b75(0x177)]);}[_0xf0588f(0x1fb)](){var _0x4c30c9=_0xf0588f;this['_status']==='presenting'&&(this['_status$'][_0x4c30c9(0x1a5)](_0x4c30c9(0x19e)),this[_0x4c30c9(0x1e2)][_0x4c30c9(0x191)]({'eventID':_0x1b6ec8['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x4c30c9(0x177)]}},this[_0x4c30c9(0x177)]));}[_0xf0588f(0x1f4)](){var _0x55aa9f=_0xf0588f;this[_0x55aa9f(0x16b)]===_0x55aa9f(0x1a6)&&(this[_0x55aa9f(0x1b0)]['next'](_0x55aa9f(0x1bb)),this[_0x55aa9f(0x1d1)]());}[_0xf0588f(0x181)](){var _0x1c38a2=_0xf0588f;this[_0x1c38a2(0x16b)]==='following'&&this['_stopFollowing']();}[_0xf0588f(0x1f9)](_0x4c4bb4){var _0x4fb695=_0xf0588f;const {presenter:_0x446d4f}=_0x4c4bb4[_0x4fb695(0x165)],_0x484e62=this[_0x4fb695(0x1e2)][_0x4fb695(0x168)]();this[_0x4fb695(0x16e)]=_0x446d4f,_0x446d4f===_0x484e62?(this[_0x4fb695(0x1aa)](),this[_0x4fb695(0x1d4)]()):this[_0x4fb695(0x16b)]!==_0x4fb695(0x1a6)&&(this['_stopPresenting'](),this[_0x4fb695(0x1d1)]());}['_fetchOperations'](){var _0x216ce2=_0xf0588f;const _0x1b1f40={'eventID':_0x1b6ec8[_0x216ce2(0x18a)]};this['_collabSession']['send'](_0x1b1f40,this[_0x216ce2(0x177)]);}[_0xf0588f(0x1c2)](){var _0x335c13=_0xf0588f;this[_0x335c13(0x16e)]=null,this[_0x335c13(0x16b)]!==_0x335c13(0x1cd)&&this[_0x335c13(0x16d)]();}[_0xf0588f(0x17a)](_0x17916e){var _0x1c8239=_0xf0588f;if(this[_0x1c8239(0x16b)]==='following'&&this[_0x1c8239(0x16e)]===_0x17916e['data'][_0x1c8239(0x1b4)]){const _0x5c5b0d=_0x5d3d5f(_0x17916e[_0x1c8239(0x165)])[_0x1c8239(0x19c)][_0x1c8239(0x1ae)]()[_0x1c8239(0x1c5)](_0x267f7d=>_0x267f7d['id']===_0x462961['id']);if(_0x5c5b0d){const _0x7037c8=_0x5c5b0d['params'][_0x1c8239(0x166)],_0x33f292=_0x5c5b0d['params'][_0x1c8239(0x18f)]['id'];setTimeout(()=>{var _0x4d6e8f=_0x1c8239;this[_0x4d6e8f(0x1ec)][_0x4d6e8f(0x1a0)](_0xb98e3c['id'],{'unitId':_0x7037c8,'subUnitId':_0x33f292},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x167312=_0xf0588f;this[_0x167312(0x1b0)][_0x167312(0x1a5)]('presenting');const _0x8f4a51=new Map(),_0x29d526=this[_0x167312(0x175)]=new _0x260e95();_0x29d526[_0x167312(0x1f6)](_0x48e11a(()=>{var _0x2f5c74=_0x167312;_0x8f4a51[_0x2f5c74(0x1c7)](_0x3f1e4e=>_0x3f1e4e[_0x2f5c74(0x1c4)]()),_0x8f4a51[_0x2f5c74(0x164)]();})),_0x29d526[_0x167312(0x1f6)](this[_0x167312(0x1ec)][_0x167312(0x197)](_0x11753e=>{var _0x5c7170=_0x167312,_0x3159b9;if(_0x11753e[_0x5c7170(0x18c)]!==_0x3829f0[_0x5c7170(0x193)]||!this['_liveShareService']['shouldShareOperation'](_0x11753e['id']))return;const {id:_0x258001}=_0x11753e;let _0x16a3cd;_0x8f4a51['has'](_0x258001)?_0x16a3cd=_0x8f4a51[_0x5c7170(0x1a7)](_0x258001):(_0x16a3cd=new _0x239e6b(),_0x8f4a51['set'](_0x258001,_0x16a3cd),_0x16a3cd[_0x5c7170(0x1b2)](_0x417704((_0x3159b9=this[_0x5c7170(0x1d3)][_0x5c7170(0x198)](xe))!=null?_0x3159b9:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5c7170(0x1b6)](_0x1d33a9=>{var _0x18726f=_0x5c7170;this[_0x18726f(0x1e2)][_0x18726f(0x191)]({'eventID':_0x1b6ec8[_0x18726f(0x1cb)],'data':{'unitID':this['_unitID'],'operations':{[_0x1d33a9['id']]:{'id':_0x1d33a9['id'],'params':JSON['stringify'](_0x1d33a9['params'])}}}},this['_unitID']);})),_0x16a3cd['next'](_0x11753e);})),this[_0x167312(0x185)]['getInitialStates'](this[_0x167312(0x177)])[_0x167312(0x1c7)](_0x1d69e2=>this[_0x167312(0x1e2)][_0x167312(0x191)]({'eventID':_0x1b6ec8['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x1d69e2['id']]:{'id':_0x1d69e2['id'],'params':JSON[_0x167312(0x170)](_0x1d69e2['params'])}}}},this[_0x167312(0x177)]));}[_0xf0588f(0x169)](){var _0x5924ef=_0xf0588f,_0x1e3cc7;this[_0x5924ef(0x1b0)][_0x5924ef(0x1a5)](_0x5924ef(0x19e)),(_0x1e3cc7=this[_0x5924ef(0x175)])==null||_0x1e3cc7[_0x5924ef(0x1af)](),this[_0x5924ef(0x175)]=null;}['_startFollowing'](){var _0x3359ae=_0xf0588f,_0x5d6056;(_0x5d6056=this[_0x3359ae(0x175)])==null||_0x5d6056[_0x3359ae(0x1af)](),this['_status$']['next'](_0x3359ae(0x1bb));}[_0xf0588f(0x16d)](){var _0x3e4c97=_0xf0588f,_0x2194b9;this['_status$']['next'](_0x3e4c97(0x19e)),(_0x2194b9=this['_commandDisposable'])==null||_0x2194b9[_0x3e4c97(0x1af)](),this[_0x3e4c97(0x175)]=null;}[_0xf0588f(0x1aa)](){var _0x5d2866=_0xf0588f,_0x43769d;this['_status$'][_0x5d2866(0x1a5)](_0x5d2866(0x1a6)),(_0x43769d=this[_0x5d2866(0x175)])==null||_0x43769d[_0x5d2866(0x1af)]();}['_handleOperation'](_0x5550b9){var _0x418763=_0xf0588f;if([_0x418763(0x1cd),'not-following',_0x418763(0x205)][_0x418763(0x161)](this[_0x418763(0x16b)])||!_0x5550b9[_0x418763(0x165)][_0x418763(0x16f)]||_0x5550b9[_0x418763(0x165)][_0x418763(0x16f)]===this[_0x418763(0x1e2)][_0x418763(0x168)]())return;this[_0x418763(0x16b)]===_0x418763(0x19e)&&this[_0x418763(0x1d1)]();const _0x10666c=_0x5550b9['data'][_0x418763(0x1c9)];Object[_0x418763(0x1ca)](_0x10666c)[_0x418763(0x1c7)](_0x28d0d2=>{var _0x15b959=_0x418763;this[_0x15b959(0x1ec)][_0x15b959(0x1a0)](_0x28d0d2['id'],_0x28d0d2[_0x15b959(0x1b1)]?JSON['parse'](_0x28d0d2[_0x15b959(0x1b1)]):null,{'fromCollab':!0x0});});}[_0xf0588f(0x1d9)](){var _0x3b3e4d=_0xf0588f,_0x581bab;this[_0x3b3e4d(0x1b0)][_0x3b3e4d(0x1a5)](_0x3b3e4d(0x205)),(_0x581bab=this[_0x3b3e4d(0x175)])==null||_0x581bab[_0x3b3e4d(0x1af)]();}[_0xf0588f(0x173)](){var _0x5593a3=_0xf0588f;this[_0x5593a3(0x1b0)][_0x5593a3(0x1a5)]('idle'),this['_fetchOperations']();}};C=Z([f(0x2,_0x2c88fb),f(0x3,_0x68914(L)),f(0x4,_0xdc74d2)],C);function ye(){var _0x4f213d=_0xf0588f;const _0xc303c2=_0x5ed6d8(m),_0x2a6f45=_0x5ed6d8(_0x344d2c),_0x3f5607=_0x5099d5(()=>_0x2a6f45[_0x4f213d(0x1cf)](_0x4c3c61[_0x4f213d(0x162)]),void 0x0,!0x1,[]),[_0x13686f,_0x3d8a7b]=_0x1b5347(null),[_0x230091,_0x54acf7]=_0x1b5347(h[_0x4f213d(0x15e)]),_0x4906bd=_0x490fb6(null);return _0x2e846d(()=>(_0x3f5607&&_0xc303c2['getLiveShareCoordinator'](_0x3f5607['getUnitId']())['then'](_0x518f3f=>{_0x3d8a7b(_0x518f3f),_0x4906bd['current']=_0x518f3f['status$']['subscribe'](_0x44c0ca=>{_0x54acf7(_0x44c0ca);});}),()=>{var _0x3bc3ca=_0x4f213d,_0x348405;(_0x348405=_0x4906bd[_0x3bc3ca(0x1b3)])==null||_0x348405[_0x3bc3ca(0x15b)](),_0x4906bd[_0x3bc3ca(0x1b3)]=null;}),[_0x3f5607,_0xc303c2]),_0x13686f?_0x7d6475(_0x37f252,{'align':'end','disabled':_0x230091===h['OFFLINE'],'className':_0x4f213d(0x190),'overlay':_0x7d6475(Re,{'status':_0x230091,'coordinator':_0x13686f}),'children':_0x7d6475(_0x4f213d(0x1e3),{'className':_0x3844f1(_0x4f213d(0x1d8),{'univer-cursor-not-allowed':_0x230091===h[_0x4f213d(0x1ba)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x230091!==h[_0x4f213d(0x1ba)]}),'type':_0x4f213d(0x1e3),'children':_0x7d6475(B,{'className':'univer-size-4'})})}):null;}function Re(_0x405ba3){var _0x5e0602=_0xf0588f;const {status:_0x5d5fe6,coordinator:_0x5037e2}=_0x405ba3;switch(_0x5d5fe6){case h[_0x5e0602(0x15e)]:return _0x7d6475(Pe,{'coordinator':_0x5037e2});case h[_0x5e0602(0x160)]:return _0x7d6475(Ae,{'coordinator':_0x5037e2});case h[_0x5e0602(0x1c0)]:return _0x7d6475(Te,{'coordinator':_0x5037e2});case h[_0x5e0602(0x1ba)]:return _0x7d6475(Fe,{});case h[_0x5e0602(0x195)]:return _0x7d6475($e,{'coordinator':_0x5037e2});default:return null;}}function Pe(_0x172515){var _0x454274=_0xf0588f;const {coordinator:_0x372d62}=_0x172515;return _0x492ee1(_0xfb239c,{'children':[_0x7d6475(_0x454274(0x18b),{'className':_0x454274(0x1b7),'children':'Present\x20this\x20document'}),_0x7d6475(_0x3da79b,{'onClick':()=>_0x372d62[_0x454274(0x15c)](),'children':_0x454274(0x1dd)})]});}function Ae(_0x12b24f){var _0x1417d2=_0xf0588f;const {coordinator:_0x38708f}=_0x12b24f;return _0x492ee1(_0xfb239c,{'children':[_0x7d6475(_0x1417d2(0x18b),{'className':_0x1417d2(0x1b7),'children':_0x1417d2(0x155)}),_0x7d6475(_0x3da79b,{'onClick':()=>_0x38708f[_0x1417d2(0x181)](),'children':_0x1417d2(0x1a4)})]});}function Te(_0x2640b3){var _0x52ccaa=_0xf0588f;const {coordinator:_0x5c3c72}=_0x2640b3;return _0x492ee1(_0xfb239c,{'children':[_0x7d6475(_0x52ccaa(0x18b),{'className':_0x52ccaa(0x1b7),'children':_0x52ccaa(0x189)}),_0x7d6475(_0x3da79b,{'variant':_0x52ccaa(0x1fe),'onClick':()=>_0x5c3c72[_0x52ccaa(0x1f4)](),'children':_0x52ccaa(0x17f)})]});}function $e(_0x3d7ee4){var _0x5a26b6=_0xf0588f;const {coordinator:_0x13357e}=_0x3d7ee4;return _0x492ee1(_0xfb239c,{'children':[_0x7d6475(_0x5a26b6(0x18b),{'className':_0x5a26b6(0x1b7),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x7d6475(_0x3da79b,{'variant':_0x5a26b6(0x15a),'onClick':()=>_0x13357e[_0x5a26b6(0x1fb)](),'children':'Stop\x20presenting'})]});}function Fe(){return _0x7d6475(_0xfb239c,{'children':'You\x27are\x20offline.'});}var He=Object[_0xf0588f(0x1fc)],je=(_0x2b2b96,_0x24a5e2,_0x3a46bc,_0x135026)=>{var _0x5823aa=_0xf0588f;for(var _0x167fa8=_0x135026>0x1?void 0x0:_0x135026?He(_0x24a5e2,_0x3a46bc):_0x24a5e2,_0xbbc669=_0x2b2b96[_0x5823aa(0x1ed)]-0x1,_0x238629;_0xbbc669>=0x0;_0xbbc669--)(_0x238629=_0x2b2b96[_0xbbc669])&&(_0x167fa8=_0x238629(_0x167fa8)||_0x167fa8);return _0x167fa8;},T=(_0x248e23,_0x17da4d)=>(_0x8b2433,_0x4ef257)=>_0x17da4d(_0x8b2433,_0x4ef257,_0x248e23);let I=class extends _0x10571d{constructor(_0x4b1565,_0x576793){var _0x2849ed=_0xf0588f;super(),this['_injector']=_0x4b1565,this[_0x2849ed(0x18d)]=_0x576793,this[_0x2849ed(0x1b5)]();}[_0xf0588f(0x1b5)](){var _0x401e95=_0xf0588f;this['disposeWithMe'](this[_0x401e95(0x18d)][_0x401e95(0x1f0)](_0xcde8b6[_0x401e95(0x1de)],()=>_0x114849(ye,this[_0x401e95(0x176)])));}};function _0x59da(){var _0x9b3a12=['length','getTypeOfUnitAdded$','defineProperty','registerComponent','map','icon','_handleOperation','startFollowing','attrs','add','idSuffix','displayName','_handleNewHost','className','stopPresenting','getOwnPropertyDescriptor','function','text','entries','hasOwnProperty','apply','_collabSessionService','indexOf','univerjs-icon\x20univerjs-icon-','offline','toString','You\x27re\x20following\x20the\x20presenter','21KwBwxE','pluginName','replace','defIds','default','unsubscribe','tryStartPresenting','has','IDLE','registerSharedOperation','FOLLOWING','includes','UNIVER_SHEET','set','clear','data','unitId','registerInitialStateReporter','getMemberID','_stopPresenting','setConfig','_status','substring','_beIdle','_presenter','presenter','stringify','0\x200\x2017\x2017','event$','_handleOnline','call','_commandDisposable','_injector','_unitID','extend','shouldShareOperation','_handleNewChangeSets','tag','init','symbol','asObservable','Start\x20following','evenodd','stopFollowing','children','createInstance','2366904pzfceq','_liveShareService','_init','124118AZunyj','1865143cSYIID','You\x27re\x20not\x20following\x20the\x20presenter','LIVESHARE_FETCH_OPERATIONS','div','type','_uiPartsService','svg','sheet','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','send','assign','OPERATION','requireSession','PRESENTING','_reporters','onCommandExecuted','getConfig','6099594rimrZD','NEW_CHANGESETS','prototype','mutations','trim','idle','status$','executeCommand','sessionStatus$','getTypeOfUnitDisposed$','_startLiveShareCoordinator','Stop\x20following','next','not-following','get','getUnitId','onStarting','_stopFollowing','ONLINE','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','_sharedOperations','reverse','dispose','_status$','params','pipe','current','memberID','_mountLiveShare','subscribe','univer-mb-3\x20univer-w-full\x20univer-text-sm','3736335jXDOvA','delete','OFFLINE','following','path','fill','UNIVER_LIVE_SHARE_PLUGIN','1em','NOT_FOLLOWING','LIVESHARE_NEW_HOST','_handleTerminate','1040520mEeWcS','complete','find','string','forEach','4488201BmslUm','operations','values','LIVESHARE_OPERATION','24baDhpI','presenting','none','getCurrentTypeOfUnit$','getInitialStates','_startFollowing','UNIVER_UNKNOWN','_configService','_startPresenting','concat','url(#$1','live-share.config','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_handleOffline','SAME_OPERATION_SHARE_INTERVAL','dispose$','mask','Start','HEADER_MENU','xlink:href','10ZmokdP','_config','_collabSession','button','_univerInstanceService','LIVESHARE_REQUEST_HOST','colorChannel1','getOwnPropertySymbols','LIVESHARE_TERMINATE','_entities','random','LiveShareIcon','_commandService'];_0x59da=function(){return _0x9b3a12;};return _0x59da();}I=je([T(0x0,_0x68914(_0x355540)),T(0x1,_0x5e9bd8)],I);const Ue=_0xf0588f(0x1d7),$={};var Ve=Object[_0xf0588f(0x1fc)],Me=(_0x412c5b,_0x577398,_0x5db069,_0x1669d9)=>{var _0x434d78=_0xf0588f;for(var _0x78cdf1=_0x1669d9>0x1?void 0x0:_0x1669d9?Ve(_0x577398,_0x5db069):_0x577398,_0x4e2c80=_0x412c5b[_0x434d78(0x1ed)]-0x1,_0x3878fc;_0x4e2c80>=0x0;_0x4e2c80--)(_0x3878fc=_0x412c5b[_0x4e2c80])&&(_0x78cdf1=_0x3878fc(_0x78cdf1)||_0x78cdf1);return _0x78cdf1;},ke=(_0xd3da10,_0x47f95c)=>(_0x1f8779,_0x2d0652)=>_0x47f95c(_0x1f8779,_0x2d0652,_0xd3da10);let b=class extends _0x10571d{constructor(_0x12ec11){var _0x49dade=_0xf0588f;super(),this[_0x49dade(0x185)]=_0x12ec11,this[_0x49dade(0x186)]();}['_init'](){var _0x4d3406=_0xf0588f;[_0x495ed0['id'],_0x5e8ec9['id'],_0xb98e3c['id']][_0x4d3406(0x1c7)](_0x2686fa=>{var _0x3e2268=_0x4d3406;this['disposeWithMe'](this[_0x3e2268(0x185)][_0x3e2268(0x15f)](_0x2686fa));});}};b=Me([ke(0x0,_0x68914(L))],b);var Ge=Object[_0xf0588f(0x1ef)],We=Object[_0xf0588f(0x1fc)],Ye=(_0x294a42,_0x4d88ce,_0x557ad8)=>_0x4d88ce in _0x294a42?Ge(_0x294a42,_0x4d88ce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x557ad8}):_0x294a42[_0x4d88ce]=_0x557ad8,Be=(_0x3bfbf3,_0x458cc6,_0x2d7616,_0x2b64db)=>{for(var _0x3b8d3a=_0x2b64db>0x1?void 0x0:_0x2b64db?We(_0x458cc6,_0x2d7616):_0x458cc6,_0x1b87d6=_0x3bfbf3['length']-0x1,_0x556736;_0x1b87d6>=0x0;_0x1b87d6--)(_0x556736=_0x3bfbf3[_0x1b87d6])&&(_0x3b8d3a=_0x556736(_0x3b8d3a)||_0x3b8d3a);return _0x3b8d3a;},F=(_0x3e3f93,_0x165f8e)=>(_0x1b2470,_0x20e357)=>_0x165f8e(_0x1b2470,_0x20e357,_0x3e3f93),J=(_0x22b303,_0x14477d,_0x28500d)=>Ye(_0x22b303,typeof _0x14477d!=_0xf0588f(0x17d)?_0x14477d+'':_0x14477d,_0x28500d);const Ze=_0xf0588f(0x1be);let O=class extends _0x519c08{constructor(_0x2033a2=$,_0x5812ce,_0x11e615){var _0x20f6e7=_0xf0588f;super(),this[_0x20f6e7(0x1e1)]=_0x2033a2,this[_0x20f6e7(0x176)]=_0x5812ce,this['_configService']=_0x11e615;const {..._0x596504}=_0x252811({},$,this[_0x20f6e7(0x1e1)]);this[_0x20f6e7(0x1d3)][_0x20f6e7(0x16a)](Ue,_0x596504);}[_0xf0588f(0x1a9)](){var _0x26a411=_0xf0588f;_0x1cfa1f(this[_0x26a411(0x176)],_0x4cfe19([[L],[m],[b],[I]],this[_0x26a411(0x1e1)]['override'])),_0x4e427e(this[_0x26a411(0x176)],[[b]]);}['onRendered'](){var _0x43d906=_0xf0588f;_0x4e427e(this[_0x43d906(0x176)],[[I]]);}};J(O,'type',_0x4c3c61[_0xf0588f(0x1d2)]),J(O,_0xf0588f(0x157),Ze),O=Be([_0x9fac4b(_0x29d85d),F(0x1,_0x68914(_0x355540)),F(0x2,_0x2c88fb)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x5c2374=_0x5f29;(function(_0x26d0f8,_0x112f3c){var _0x18005e=_0x5f29,_0x1374e6=_0x26d0f8();while(!![]){try{var _0x16a1c0=-parseInt(_0x18005e(0x14f))/0x1+-parseInt(_0x18005e(0xee))/0x2*(parseInt(_0x18005e(0x10c))/0x3)+-parseInt(_0x18005e(0x124))/0x4*(-parseInt(_0x18005e(0x141))/0x5)+-parseInt(_0x18005e(0x10d))/0x6*(-parseInt(_0x18005e(0x12f))/0x7)+parseInt(_0x18005e(0x118))/0x8+parseInt(_0x18005e(0x115))/0x9*(-parseInt(_0x18005e(0x12b))/0xa)+parseInt(_0x18005e(0x171))/0xb*(parseInt(_0x18005e(0xe8))/0xc);if(_0x16a1c0===_0x112f3c)break;else _0x1374e6['push'](_0x1374e6['shift']());}catch(_0x4844bd){_0x1374e6['push'](_0x1374e6['shift']());}}}(_0x1e38,0x94449));var q=Object['defineProperty'],z=(_0x2038cc,_0x5966d5,_0x265bfd)=>_0x5966d5 in _0x2038cc?q(_0x2038cc,_0x5966d5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x265bfd}):_0x2038cc[_0x5966d5]=_0x265bfd,d=(_0x3ccd10,_0x37533f,_0x33803b)=>z(_0x3ccd10,typeof _0x37533f!=_0x5c2374(0xe1)?_0x37533f+'':_0x37533f,_0x33803b);import{Disposable as _0x5d9f0b,toDisposable as _0xc9fd27,IUniverInstanceService as _0x396a71,Inject as _0x1d6dfe,Injector as _0x5e4e3e,IConfigService as _0x427207,ICommandService as _0x2fdcd6,RxDisposable as _0x12f1b4,UniverInstanceType as _0x597c39,DisposableCollection as _0x13da4f,CommandType as _0x46b67e,DependentOn as _0x20bf5b,Plugin as _0x85ddfe,merge as _0x4b219b,registerDependencies as _0x455e36,mergeOverrideWithDependencies as _0x5ed9f1,touchDependencies as _0x38b512}from'@univerjs/core';import{useDependency as _0xbac0f1,useObservable as _0x4ba877,IUIPartsService as _0xfebe73,BuiltInUIPart as _0x193595,connectInjector as _0x207180}from'@univerjs/ui';import{jsx as _0xaef94e,jsxs as _0x2e97ac,Fragment as _0x4ce6f7}from'react/jsx-runtime';import{Dropdown as _0x211184,clsx as _0x4b2647,Button as _0x44c590}from'@univerjs/design';import{forwardRef as _0x5878b5,useRef as _0x2cbd0a,createElement as _0x5c33d5,useState as _0x53588e,useEffect as _0x467f8a}from'react';import{CollaborationEvent as _0x1d9b33,parseProtocolChangeset as _0x2d6d75}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x52ff69,SessionStatus as _0x189821,UniverCollaborationClientPlugin as _0x2f4a1c}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x52e440,SetWorksheetActiveOperation as _0x564afb}from'@univerjs/sheets';import{BehaviorSubject as _0x3dad2c,Subject as _0x2a1089}from'rxjs';import{takeUntil as _0x34c3f4,throttleTime as _0x214aa1}from'rxjs/operators';import{SetZoomRatioOperation as _0x25cf9a,SetScrollOperation as _0x20a77c}from'@univerjs/sheets-ui';var c=function(){var _0x35cc2d=_0x5c2374;return c=Object[_0x35cc2d(0x145)]||function(_0x461e9c){var _0x1e4983=_0x35cc2d;for(var _0xa26d43,_0x2982c8=0x1,_0x2c73e3=arguments[_0x1e4983(0xf1)];_0x2982c8<_0x2c73e3;_0x2982c8++){_0xa26d43=arguments[_0x2982c8];for(var _0x6309b9 in _0xa26d43)Object[_0x1e4983(0x17e)][_0x1e4983(0x139)]['call'](_0xa26d43,_0x6309b9)&&(_0x461e9c[_0x6309b9]=_0xa26d43[_0x6309b9]);}return _0x461e9c;},c[_0x35cc2d(0xed)](this,arguments);},Oe=function(_0x595c6a,_0x20ef97){var _0x852577=_0x5c2374,_0x586e50={};for(var _0x490d00 in _0x595c6a)Object['prototype']['hasOwnProperty'][_0x852577(0x152)](_0x595c6a,_0x490d00)&&_0x20ef97[_0x852577(0xfc)](_0x490d00)<0x0&&(_0x586e50[_0x490d00]=_0x595c6a[_0x490d00]);if(_0x595c6a!=null&&typeof Object[_0x852577(0xe7)]=='function'){for(var _0x52ad70=0x0,_0x490d00=Object[_0x852577(0xe7)](_0x595c6a);_0x52ad70<_0x490d00[_0x852577(0xf1)];_0x52ad70++)_0x20ef97[_0x852577(0xfc)](_0x490d00[_0x52ad70])<0x0&&Object[_0x852577(0x17e)][_0x852577(0x16e)]['call'](_0x595c6a,_0x490d00[_0x52ad70])&&(_0x586e50[_0x490d00[_0x52ad70]]=_0x595c6a[_0x490d00[_0x52ad70]]);}return _0x586e50;},W=_0x5878b5(function(_0x1b5a52,_0x46baf3){var _0x41ccfb=_0x5c2374,_0x11a4ca=_0x1b5a52[_0x41ccfb(0x100)],_0x5d4ac8=_0x1b5a52['id'],_0x3ff276=_0x1b5a52[_0x41ccfb(0x17a)],_0x5b89ab=_0x1b5a52[_0x41ccfb(0x174)],_0x1e184b=Oe(_0x1b5a52,[_0x41ccfb(0x100),'id','className',_0x41ccfb(0x174)]),_0x1fcd07=_0x41ccfb(0x16b)[_0x41ccfb(0x181)](_0x5d4ac8,'\x20')['concat'](_0x3ff276||'')[_0x41ccfb(0x108)](),_0x4d3318=_0x2cbd0a('_'['concat'](Ne()));return Y(_0x11a4ca,''['concat'](_0x5d4ac8),{'defIds':_0x11a4ca['defIds'],'idSuffix':_0x4d3318[_0x41ccfb(0x12d)]},c({'ref':_0x46baf3,'className':_0x1fcd07},_0x1e184b),_0x5b89ab);});function Y(_0x1b9d78,_0x3fabdc,_0x368e2a,_0x3e4f90,_0x2eb502){var _0x579153=_0x5c2374;return _0x5c33d5(_0x1b9d78[_0x579153(0x18b)],c(c({'key':_0x3fabdc},Ee(_0x1b9d78,_0x368e2a,_0x2eb502)),_0x3e4f90),(we(_0x1b9d78,_0x368e2a)[_0x579153(0x151)]||[])[_0x579153(0x11f)](function(_0x3fb403,_0x59f7e0){var _0x2510af=_0x579153;return Y(_0x3fb403,''[_0x2510af(0x181)](_0x3fabdc,'-')[_0x2510af(0x181)](_0x1b9d78[_0x2510af(0x18b)],'-')['concat'](_0x59f7e0),_0x368e2a,void 0x0,_0x2eb502);}));}function Ee(_0x35327d,_0x13faf1,_0xc7cbc1){var _0x302bae=_0x5c2374,_0x641e59=c({},_0x35327d[_0x302bae(0x142)]);_0xc7cbc1!=null&&_0xc7cbc1[_0x302bae(0xf0)]&&_0x641e59[_0x302bae(0x156)]==='colorChannel1'&&(_0x641e59['fill']=_0xc7cbc1['colorChannel1']),_0x35327d[_0x302bae(0x18b)]===_0x302bae(0x12a)&&_0x641e59['id']&&(_0x641e59['id']=_0x641e59['id']+_0x13faf1['idSuffix']),Object['entries'](_0x641e59)[_0x302bae(0xe2)](function(_0x4fbc1a){var _0x517567=_0x302bae,_0x525a19=_0x4fbc1a[0x0],_0xc4f510=_0x4fbc1a[0x1];_0x525a19==='mask'&&typeof _0xc4f510==_0x517567(0x160)&&(_0x641e59[_0x525a19]=_0xc4f510[_0x517567(0x10b)](/url\(#(.*)\)/,_0x517567(0x150)[_0x517567(0x181)](_0x13faf1[_0x517567(0x102)],')')));});var _0x4b0391=_0x13faf1[_0x302bae(0xf2)];return!_0x4b0391||_0x4b0391[_0x302bae(0xf1)]===0x0||(_0x35327d['tag']===_0x302bae(0xe5)&&_0x641e59[_0x302bae(0x14d)]&&(_0x641e59[_0x302bae(0x14d)]=_0x641e59[_0x302bae(0x14d)]+_0x13faf1[_0x302bae(0x102)]),Object[_0x302bae(0x166)](_0x641e59)[_0x302bae(0xe2)](function(_0x376f39){var _0x3c7da4=_0x302bae,_0x4c145a=_0x376f39[0x0],_0x48121e=_0x376f39[0x1];typeof _0x48121e==_0x3c7da4(0x160)&&(_0x641e59[_0x4c145a]=_0x48121e[_0x3c7da4(0x10b)](/url\(#(.*)\)/,_0x3c7da4(0x150)[_0x3c7da4(0x181)](_0x13faf1[_0x3c7da4(0x102)],')')));})),_0x641e59;}function we(_0x1c4174,_0x2342d8){var _0x35e4a7=_0x5c2374,_0x2edc07,_0x2b5bc0=_0x2342d8[_0x35e4a7(0xf2)];return!_0x2b5bc0||_0x2b5bc0[_0x35e4a7(0xf1)]===0x0?_0x1c4174:_0x1c4174[_0x35e4a7(0x18b)]==='defs'&&(!((_0x2edc07=_0x1c4174[_0x35e4a7(0x151)])===null||_0x2edc07===void 0x0)&&_0x2edc07[_0x35e4a7(0xf1)])?c(c({},_0x1c4174),{'children':_0x1c4174[_0x35e4a7(0x151)][_0x35e4a7(0x11f)](function(_0x1645cf){var _0x1487b0=_0x35e4a7;return typeof _0x1645cf[_0x1487b0(0x142)]['id']=='string'&&_0x2b5bc0&&_0x2b5bc0['includes'](_0x1645cf['attrs']['id'])?c(c({},_0x1645cf),{'attrs':c(c({},_0x1645cf[_0x1487b0(0x142)]),{'id':_0x1645cf[_0x1487b0(0x142)]['id']+_0x2342d8['idSuffix']})}):_0x1645cf;})}):_0x1c4174;}function Ne(){var _0x1700dc=_0x5c2374;return Math[_0x1700dc(0xf6)]()[_0x1700dc(0x121)](0x24)[_0x1700dc(0x177)](0x2,0x8);}function _0x1e38(){var _0x52294d=['url(#$1','children','call','getTypeOfUnitAdded$','_unitID','complete','fill','mutations','data','getLiveShareCoordinator','onRendered','idle','_presenter','LiveShareIcon','reverse','_handleTerminate','string','delete','live-share.config','unitId','http://www.w3.org/2000/svg','executeCommand','entries','UNIVER_LIVE_SHARE_PLUGIN','_collabSession','presenting','LIVESHARE_OPERATION','univerjs-icon\x20univerjs-icon-','_collabSessionService','evenodd','propertyIsEnumerable','_univerInstanceService','div','321585VEDsMW','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','_status$','extend','PRESENTING','getUnitId','substring','createInstance','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','className','following','not-following','from','prototype','tryStartPresenting','init','concat','shouldShareOperation','_mountLiveShare','override','_startLiveShareCoordinator','HEADER_MENU','none','stopPresenting','NOT_FOLLOWING','sessionStatus$','tag','IDLE','_liveShareService','displayName','getCurrentTypeOfUnit$','pipe','symbol','forEach','set','path','use','stringify','getOwnPropertySymbols','684vUpzLn','getConfig','UNIVER_SHEET','presenter','get','apply','16nCDHvj','default','colorChannel1','length','defIds','button','live-share-icon','You\x27are\x20offline.','random','_uiPartsService','_handleNewHost','params','registerComponent','unsubscribe','indexOf','UNIVER_UNKNOWN','OPERATION','subscribe','icon','OFFLINE','idSuffix','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','You\x27re\x20following\x20the\x20presenter','_handleNewChangeSets','registerSharedOperation','send','trim','stopFollowing','setConfig','replace','322929IaceUq','3020538xBFmYB','_handleOnline','LIVESHARE_TERMINATE','Start\x20following','getMemberID','dispose','_commandDisposable','end','9626976iQIwgw','onCommandExecuted','_handleOffline','6542904EDOmiF','svg','text','_injector','_startFollowing','_status','LIVESHARE_FETCH_OPERATIONS','map','_config','toString','_reporters','_handleOperation','468hkVhJg','_configService','_entities','has','_fetchOperations','asObservable','mask','10ngZvHZ','_stopPresenting','current','_beIdle','7QDKNbe','_sharedOperations','univer-mb-3\x20univer-w-full\x20univer-text-sm','Stop\x20following','0\x200\x2017\x2017','registerInitialStateReporter','You\x27re\x20presenting\x20the\x20document','_init','Present\x20this\x20document','status$','hasOwnProperty','dispose$','_startPresenting','getTypeOfUnitDisposed$','next','getOwnPropertyDescriptor','then','offline','16365pyUSDs','attrs','sheet','onStarting','assign','add','_commandService','startFollowing','memberID','getInitialStates','_stopFollowing','defineProperty','xlink:href','currentColor','832509sGzjQj'];_0x1e38=function(){return _0x52294d;};return _0x1e38();}W['displayName']='UniverIcon';var Ce={'tag':_0x5c2374(0x119),'attrs':{'xmlns':_0x5c2374(0x164),'fill':_0x5c2374(0x187),'viewBox':_0x5c2374(0x133),'width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x5c2374(0x14e),'d':_0x5c2374(0x179)}},{'tag':_0x5c2374(0xe4),'attrs':{'fill':_0x5c2374(0x14e),'d':_0x5c2374(0x172),'fillRule':_0x5c2374(0x16d),'clipRule':'evenodd'}}]},B=_0x5878b5(function(_0x1593b5,_0x134189){var _0x223640=_0x5c2374;return _0x5c33d5(W,Object[_0x223640(0x145)]({},_0x1593b5,{'id':_0x223640(0xf4),'ref':_0x134189,'icon':Ce}));});B[_0x5c2374(0xde)]=_0x5c2374(0x15d);class L extends _0x5d9f0b{constructor(){var _0x2f4b3c=_0x5c2374;super(...arguments),d(this,_0x2f4b3c(0x130),new Set()),d(this,_0x2f4b3c(0x122),new Set());}[_0x5c2374(0x106)](_0x44b8ce){var _0x2204b0=_0x5c2374;return this[_0x2204b0(0x130)][_0x2204b0(0x146)](_0x44b8ce),_0xc9fd27(()=>this[_0x2204b0(0x130)][_0x2204b0(0x161)](_0x44b8ce));}[_0x5c2374(0x134)](_0x595605){var _0x342df5=_0x5c2374;return this[_0x342df5(0x122)][_0x342df5(0x146)](_0x595605),_0xc9fd27(()=>this[_0x342df5(0x122)][_0x342df5(0x161)](_0x595605));}[_0x5c2374(0x182)](_0x4b6e95){var _0x4f8727=_0x5c2374;return this['_sharedOperations'][_0x4f8727(0x127)](_0x4b6e95);}[_0x5c2374(0x14a)](_0x328a1d){var _0x486735=_0x5c2374;return Array[_0x486735(0x17d)](this[_0x486735(0x122)])[_0x486735(0x11f)](_0x2994fb=>_0x2994fb(_0x328a1d));}}var De=Object[_0x5c2374(0x13e)],Z=(_0x3f68c9,_0x1c92a3,_0x3d03bc,_0x11c603)=>{for(var _0xec663f=_0x11c603>0x1?void 0x0:_0x11c603?De(_0x1c92a3,_0x3d03bc):_0x1c92a3,_0x4a4d75=_0x3f68c9['length']-0x1,_0x1902d8;_0x4a4d75>=0x0;_0x4a4d75--)(_0x1902d8=_0x3f68c9[_0x4a4d75])&&(_0xec663f=_0x1902d8(_0xec663f)||_0xec663f);return _0xec663f;},f=(_0x2818c4,_0x4b5b16)=>(_0x2d2c64,_0x5b01b7)=>_0x4b5b16(_0x2d2c64,_0x5b01b7,_0x2818c4);function _0x5f29(_0x20b525,_0x5c67db){var _0x1e38f8=_0x1e38();return _0x5f29=function(_0x5f29ae,_0x526af6){_0x5f29ae=_0x5f29ae-0xdd;var _0x58ba59=_0x1e38f8[_0x5f29ae];return _0x58ba59;},_0x5f29(_0x20b525,_0x5c67db);}let m=class extends _0x12f1b4{constructor(_0x5dcb10,_0x2d1b14,_0x1e85e6){var _0x5f28ba=_0x5c2374;super(),d(this,_0x5f28ba(0x126),new Map()),(this[_0x5f28ba(0x16f)]=_0x5dcb10,this[_0x5f28ba(0x11b)]=_0x2d1b14,this[_0x5f28ba(0x16c)]=_0x1e85e6,this[_0x5f28ba(0x136)]());}async[_0x5c2374(0x159)](_0x423df4){var _0x5a20b6=_0x5c2374;return this[_0x5a20b6(0x126)][_0x5a20b6(0x127)](_0x423df4)||await this[_0x5a20b6(0x185)](_0x423df4),this['_entities'][_0x5a20b6(0xec)](_0x423df4);}['_init'](){var _0x3fdaa7=_0x5c2374;this[_0x3fdaa7(0x16f)][_0x3fdaa7(0x153)](_0x597c39[_0x3fdaa7(0xea)])[_0x3fdaa7(0xe0)](_0x34c3f4(this[_0x3fdaa7(0x13a)]))[_0x3fdaa7(0xff)](async _0x1db56e=>{var _0x2e6760=_0x3fdaa7;const _0x24ab4c=_0x1db56e[_0x2e6760(0x176)]();this[_0x2e6760(0x126)][_0x2e6760(0x127)](_0x24ab4c)||this[_0x2e6760(0x185)](_0x24ab4c);}),this[_0x3fdaa7(0x16f)][_0x3fdaa7(0x13c)](_0x597c39['UNIVER_SHEET'])['pipe'](_0x34c3f4(this[_0x3fdaa7(0x13a)]))[_0x3fdaa7(0xff)](_0x57798c=>{var _0x3af5c0=_0x3fdaa7;const _0x39689c=_0x57798c['getUnitId'](),_0x5cfb8e=this['_entities'][_0x3af5c0(0xec)](_0x39689c);_0x5cfb8e==null||_0x5cfb8e[_0x3af5c0(0x112)]();});}async[_0x5c2374(0x185)](_0x278eda){var _0x427a9e=_0x5c2374;const _0x3deb5f=await this[_0x427a9e(0x16c)]['requireSession'](_0x278eda),_0x2bbf9b=this[_0x427a9e(0x11b)][_0x427a9e(0x178)](C,_0x278eda,_0x3deb5f);return _0x2bbf9b[_0x427a9e(0x180)](),this['_entities']['set'](_0x278eda,_0x2bbf9b),_0x2bbf9b;}};m=Z([f(0x0,_0x396a71),f(0x1,_0x1d6dfe(_0x5e4e3e)),f(0x2,_0x1d6dfe(_0x52ff69))],m);var h=(_0x3cafa4=>(_0x3cafa4[_0x5c2374(0x101)]=_0x5c2374(0x140),_0x3cafa4['IDLE']=_0x5c2374(0x15b),_0x3cafa4['FOLLOWING']=_0x5c2374(0x17b),_0x3cafa4[_0x5c2374(0x189)]='not-following',_0x3cafa4[_0x5c2374(0x175)]=_0x5c2374(0x169),_0x3cafa4))(h||{});const xe='SAME_OPERATION_SHARE_INTERVAL',Le=0xc8;let C=class extends _0x12f1b4{constructor(_0x25bbb7,_0xb20d2f,_0x335abd,_0x30f21c,_0x4844b0){var _0x48ae87=_0x5c2374;super(),d(this,_0x48ae87(0x173),new _0x3dad2c(_0x48ae87(0x15b))),d(this,_0x48ae87(0x138),this[_0x48ae87(0x173)][_0x48ae87(0x129)]()),d(this,'_init',!0x1),d(this,_0x48ae87(0x113),null),d(this,_0x48ae87(0x15c),null),(this[_0x48ae87(0x154)]=_0x25bbb7,this[_0x48ae87(0x168)]=_0xb20d2f,this[_0x48ae87(0x125)]=_0x335abd,this[_0x48ae87(0xdd)]=_0x30f21c,this[_0x48ae87(0x147)]=_0x4844b0);}get[_0x5c2374(0x11d)](){return this['_status$']['getValue']();}[_0x5c2374(0x112)](){var _0xbef148=_0x5c2374,_0x1265e1;(_0x1265e1=this[_0xbef148(0x113)])==null||_0x1265e1[_0xbef148(0x112)](),this[_0xbef148(0x173)][_0xbef148(0x13d)](_0xbef148(0x15b)),this[_0xbef148(0x173)][_0xbef148(0x155)]();}[_0x5c2374(0x180)](){var _0x148cdd=_0x5c2374;this['_init']||(this[_0x148cdd(0x136)]=!0x0,this[_0x148cdd(0x168)][_0x148cdd(0x18a)]['pipe'](_0x34c3f4(this['dispose$']))[_0x148cdd(0xff)](_0x38157e=>{var _0xb3d615=_0x148cdd;switch(_0x38157e){case _0x189821[_0xb3d615(0x101)]:this[_0xb3d615(0x117)]();break;case _0x189821['ONLINE']:this[_0xb3d615(0x10e)]();break;}}),this[_0x148cdd(0x168)]['event$']['pipe'](_0x34c3f4(this[_0x148cdd(0x13a)]))[_0x148cdd(0xff)](_0x5815be=>{var _0x320dda=_0x148cdd;const {eventID:_0x115cde}=_0x5815be;switch(_0x115cde){case _0x1d9b33['LIVESHARE_NEW_HOST']:this[_0x320dda(0xf8)](_0x5815be);break;case _0x1d9b33[_0x320dda(0x16a)]:this['_handleOperation'](_0x5815be);break;case _0x1d9b33[_0x320dda(0x10f)]:this[_0x320dda(0x15f)]();break;case _0x1d9b33['NEW_CHANGESETS']:this[_0x320dda(0x105)](_0x5815be);break;}}));}['tryStartPresenting'](){var _0x164279=_0x5c2374;this['_collabSession'][_0x164279(0x107)]({'eventID':_0x1d9b33['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x164279(0x154)],'userID':this[_0x164279(0x168)]['getMemberID']()}},this[_0x164279(0x154)]);}[_0x5c2374(0x188)](){var _0x443d2c=_0x5c2374;this['_status']===_0x443d2c(0x169)&&(this[_0x443d2c(0x173)][_0x443d2c(0x13d)]('idle'),this[_0x443d2c(0x168)][_0x443d2c(0x107)]({'eventID':_0x1d9b33[_0x443d2c(0x10f)],'data':{'unitID':this[_0x443d2c(0x154)]}},this['_unitID']));}[_0x5c2374(0x148)](){var _0x2442d0=_0x5c2374;this['_status']===_0x2442d0(0x17c)&&(this[_0x2442d0(0x173)][_0x2442d0(0x13d)](_0x2442d0(0x17b)),this['_startFollowing']());}['stopFollowing'](){var _0x4ff7a3=_0x5c2374;this[_0x4ff7a3(0x11d)]===_0x4ff7a3(0x17b)&&this['_stopFollowing']();}[_0x5c2374(0xf8)](_0x449da1){var _0x523db0=_0x5c2374;const {presenter:_0x435db4}=_0x449da1[_0x523db0(0x158)],_0x39fb2e=this[_0x523db0(0x168)][_0x523db0(0x111)]();this[_0x523db0(0x15c)]=_0x435db4,_0x435db4===_0x39fb2e?(this[_0x523db0(0x14b)](),this[_0x523db0(0x13b)]()):this[_0x523db0(0x11d)]!==_0x523db0(0x17c)&&(this[_0x523db0(0x12c)](),this['_startFollowing']());}[_0x5c2374(0x128)](){var _0x534d27=_0x5c2374;const _0x3aba21={'eventID':_0x1d9b33[_0x534d27(0x11e)]};this['_collabSession'][_0x534d27(0x107)](_0x3aba21,this[_0x534d27(0x154)]);}['_handleTerminate'](){var _0x5ae188=_0x5c2374;this[_0x5ae188(0x15c)]=null,this['_status']!==_0x5ae188(0x169)&&this[_0x5ae188(0x12e)]();}[_0x5c2374(0x105)](_0x439474){var _0x1a721c=_0x5c2374;if(this[_0x1a721c(0x11d)]===_0x1a721c(0x17b)&&this[_0x1a721c(0x15c)]===_0x439474['data'][_0x1a721c(0x149)]){const _0x5b19fd=_0x2d6d75(_0x439474[_0x1a721c(0x158)])[_0x1a721c(0x157)][_0x1a721c(0x15e)]()['find'](_0xc59f35=>_0xc59f35['id']===_0x52e440['id']);if(_0x5b19fd){const _0x39a88e=_0x5b19fd[_0x1a721c(0xf9)][_0x1a721c(0x163)],_0x3cff97=_0x5b19fd[_0x1a721c(0xf9)][_0x1a721c(0x143)]['id'];setTimeout(()=>{var _0x360089=_0x1a721c;this[_0x360089(0x147)][_0x360089(0x165)](_0x564afb['id'],{'unitId':_0x39a88e,'subUnitId':_0x3cff97},{'fromCollab':!0x0});});}}}[_0x5c2374(0x13b)](){var _0x246ff3=_0x5c2374;this[_0x246ff3(0x173)][_0x246ff3(0x13d)](_0x246ff3(0x169));const _0xc28806=new Map(),_0x5a241c=this['_commandDisposable']=new _0x13da4f();_0x5a241c[_0x246ff3(0x146)](_0xc9fd27(()=>{var _0x3f8d62=_0x246ff3;_0xc28806[_0x3f8d62(0xe2)](_0x22fb37=>_0x22fb37[_0x3f8d62(0x155)]()),_0xc28806['clear']();})),_0x5a241c[_0x246ff3(0x146)](this[_0x246ff3(0x147)][_0x246ff3(0x116)](_0x4d65c5=>{var _0x5d0cc9=_0x246ff3,_0x3bbe61;if(_0x4d65c5['type']!==_0x46b67e[_0x5d0cc9(0xfe)]||!this[_0x5d0cc9(0xdd)][_0x5d0cc9(0x182)](_0x4d65c5['id']))return;const {id:_0x4e33c8}=_0x4d65c5;let _0x26e0e8;_0xc28806['has'](_0x4e33c8)?_0x26e0e8=_0xc28806[_0x5d0cc9(0xec)](_0x4e33c8):(_0x26e0e8=new _0x2a1089(),_0xc28806[_0x5d0cc9(0xe3)](_0x4e33c8,_0x26e0e8),_0x26e0e8['pipe'](_0x214aa1((_0x3bbe61=this[_0x5d0cc9(0x125)][_0x5d0cc9(0xe9)](xe))!=null?_0x3bbe61:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x362cea=>{var _0x1b4a16=_0x5d0cc9;this['_collabSession'][_0x1b4a16(0x107)]({'eventID':_0x1d9b33[_0x1b4a16(0x16a)],'data':{'unitID':this[_0x1b4a16(0x154)],'operations':{[_0x362cea['id']]:{'id':_0x362cea['id'],'params':JSON[_0x1b4a16(0xe6)](_0x362cea[_0x1b4a16(0xf9)])}}}},this['_unitID']);})),_0x26e0e8[_0x5d0cc9(0x13d)](_0x4d65c5);})),this['_liveShareService'][_0x246ff3(0x14a)](this['_unitID'])[_0x246ff3(0xe2)](_0x7dc724=>this[_0x246ff3(0x168)][_0x246ff3(0x107)]({'eventID':_0x1d9b33[_0x246ff3(0x16a)],'data':{'unitID':this[_0x246ff3(0x154)],'operations':{[_0x7dc724['id']]:{'id':_0x7dc724['id'],'params':JSON[_0x246ff3(0xe6)](_0x7dc724[_0x246ff3(0xf9)])}}}},this['_unitID']));}[_0x5c2374(0x12c)](){var _0x50f9c6=_0x5c2374,_0x92a461;this['_status$'][_0x50f9c6(0x13d)](_0x50f9c6(0x15b)),(_0x92a461=this[_0x50f9c6(0x113)])==null||_0x92a461[_0x50f9c6(0x112)](),this[_0x50f9c6(0x113)]=null;}[_0x5c2374(0x11c)](){var _0x4daad9=_0x5c2374,_0x603d21;(_0x603d21=this['_commandDisposable'])==null||_0x603d21[_0x4daad9(0x112)](),this[_0x4daad9(0x173)][_0x4daad9(0x13d)](_0x4daad9(0x17b));}[_0x5c2374(0x12e)](){var _0x17682f=_0x5c2374,_0x448155;this['_status$'][_0x17682f(0x13d)]('idle'),(_0x448155=this['_commandDisposable'])==null||_0x448155[_0x17682f(0x112)](),this[_0x17682f(0x113)]=null;}[_0x5c2374(0x14b)](){var _0xdc0909=_0x5c2374,_0x5c57b3;this[_0xdc0909(0x173)][_0xdc0909(0x13d)]('not-following'),(_0x5c57b3=this[_0xdc0909(0x113)])==null||_0x5c57b3[_0xdc0909(0x112)]();}[_0x5c2374(0x123)](_0x41bc66){var _0x4c5daf=_0x5c2374;if(['presenting',_0x4c5daf(0x17c),_0x4c5daf(0x140)]['includes'](this[_0x4c5daf(0x11d)])||!_0x41bc66['data']['presenter']||_0x41bc66['data'][_0x4c5daf(0xeb)]===this[_0x4c5daf(0x168)][_0x4c5daf(0x111)]())return;this[_0x4c5daf(0x11d)]===_0x4c5daf(0x15b)&&this[_0x4c5daf(0x11c)]();const _0x38b55c=_0x41bc66['data']['operations'];Object['values'](_0x38b55c)[_0x4c5daf(0xe2)](_0x5652ad=>{var _0x363c7c=_0x4c5daf;this[_0x363c7c(0x147)][_0x363c7c(0x165)](_0x5652ad['id'],_0x5652ad['params']?JSON['parse'](_0x5652ad[_0x363c7c(0xf9)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1845b1=_0x5c2374,_0x5109ba;this[_0x1845b1(0x173)][_0x1845b1(0x13d)](_0x1845b1(0x140)),(_0x5109ba=this[_0x1845b1(0x113)])==null||_0x5109ba[_0x1845b1(0x112)]();}[_0x5c2374(0x10e)](){var _0x20e20f=_0x5c2374;this[_0x20e20f(0x173)]['next'](_0x20e20f(0x15b)),this['_fetchOperations']();}};C=Z([f(0x2,_0x427207),f(0x3,_0x1d6dfe(L)),f(0x4,_0x2fdcd6)],C);function ye(){var _0x59999c=_0x5c2374;const _0xa580fd=_0xbac0f1(m),_0x579c1a=_0xbac0f1(_0x396a71),_0x118451=_0x4ba877(()=>_0x579c1a[_0x59999c(0xdf)](_0x597c39[_0x59999c(0xea)]),void 0x0,!0x1,[]),[_0x40ff1b,_0x2ffe1d]=_0x53588e(null),[_0x2fa600,_0x2c5572]=_0x53588e(h[_0x59999c(0x18c)]),_0x572b6c=_0x2cbd0a(null);return _0x467f8a(()=>(_0x118451&&_0xa580fd[_0x59999c(0x159)](_0x118451[_0x59999c(0x176)]())[_0x59999c(0x13f)](_0x3770d1=>{var _0x740ce7=_0x59999c;_0x2ffe1d(_0x3770d1),_0x572b6c[_0x740ce7(0x12d)]=_0x3770d1['status$']['subscribe'](_0xed2d5b=>{_0x2c5572(_0xed2d5b);});}),()=>{var _0x190925=_0x59999c,_0x151135;(_0x151135=_0x572b6c[_0x190925(0x12d)])==null||_0x151135[_0x190925(0xfb)](),_0x572b6c[_0x190925(0x12d)]=null;}),[_0x118451,_0xa580fd]),_0x40ff1b?_0xaef94e(_0x211184,{'align':_0x59999c(0x114),'disabled':_0x2fa600===h['OFFLINE'],'className':_0x59999c(0x103),'overlay':_0xaef94e(Re,{'status':_0x2fa600,'coordinator':_0x40ff1b}),'children':_0xaef94e(_0x59999c(0xf3),{'className':_0x4b2647('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2fa600===h[_0x59999c(0x101)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2fa600!==h[_0x59999c(0x101)]}),'type':_0x59999c(0xf3),'children':_0xaef94e(B,{'className':'univer-size-4'})})}):null;}function Re(_0x1d0f8e){var _0xfe2f8e=_0x5c2374;const {status:_0x427573,coordinator:_0x198a85}=_0x1d0f8e;switch(_0x427573){case h[_0xfe2f8e(0x18c)]:return _0xaef94e(Pe,{'coordinator':_0x198a85});case h['FOLLOWING']:return _0xaef94e(Ae,{'coordinator':_0x198a85});case h['NOT_FOLLOWING']:return _0xaef94e(Te,{'coordinator':_0x198a85});case h[_0xfe2f8e(0x101)]:return _0xaef94e(Fe,{});case h[_0xfe2f8e(0x175)]:return _0xaef94e($e,{'coordinator':_0x198a85});default:return null;}}function Pe(_0x30b693){var _0x170b69=_0x5c2374;const {coordinator:_0x4a96e2}=_0x30b693;return _0x2e97ac(_0x4ce6f7,{'children':[_0xaef94e(_0x170b69(0x170),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x170b69(0x137)}),_0xaef94e(_0x44c590,{'onClick':()=>_0x4a96e2[_0x170b69(0x17f)](),'children':'Start'})]});}function Ae(_0x3e97df){var _0x41e94a=_0x5c2374;const {coordinator:_0x2203c1}=_0x3e97df;return _0x2e97ac(_0x4ce6f7,{'children':[_0xaef94e(_0x41e94a(0x170),{'className':_0x41e94a(0x131),'children':_0x41e94a(0x104)}),_0xaef94e(_0x44c590,{'onClick':()=>_0x2203c1[_0x41e94a(0x109)](),'children':_0x41e94a(0x132)})]});}function Te(_0x5a4129){var _0xc7103d=_0x5c2374;const {coordinator:_0x2efbb5}=_0x5a4129;return _0x2e97ac(_0x4ce6f7,{'children':[_0xaef94e(_0xc7103d(0x170),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0xaef94e(_0x44c590,{'variant':_0xc7103d(0x11a),'onClick':()=>_0x2efbb5['startFollowing'](),'children':_0xc7103d(0x110)})]});}function $e(_0x19b183){var _0xe79e5b=_0x5c2374;const {coordinator:_0x54e166}=_0x19b183;return _0x2e97ac(_0x4ce6f7,{'children':[_0xaef94e('div',{'className':_0xe79e5b(0x131),'children':_0xe79e5b(0x135)}),_0xaef94e(_0x44c590,{'variant':_0xe79e5b(0xef),'onClick':()=>_0x54e166['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Fe(){var _0x5606a3=_0x5c2374;return _0xaef94e(_0x4ce6f7,{'children':_0x5606a3(0xf5)});}var He=Object[_0x5c2374(0x13e)],je=(_0x341caf,_0x19c56f,_0x28c5d7,_0x1df115)=>{var _0xac4349=_0x5c2374;for(var _0x2c136d=_0x1df115>0x1?void 0x0:_0x1df115?He(_0x19c56f,_0x28c5d7):_0x19c56f,_0x2c055b=_0x341caf[_0xac4349(0xf1)]-0x1,_0x1d39d7;_0x2c055b>=0x0;_0x2c055b--)(_0x1d39d7=_0x341caf[_0x2c055b])&&(_0x2c136d=_0x1d39d7(_0x2c136d)||_0x2c136d);return _0x2c136d;},T=(_0x45d1b2,_0x10f233)=>(_0x5b7965,_0x1440df)=>_0x10f233(_0x5b7965,_0x1440df,_0x45d1b2);let I=class extends _0x5d9f0b{constructor(_0x3a454a,_0x16d4a2){var _0x4ca2b1=_0x5c2374;super(),this[_0x4ca2b1(0x11b)]=_0x3a454a,this[_0x4ca2b1(0xf7)]=_0x16d4a2,this[_0x4ca2b1(0x183)]();}[_0x5c2374(0x183)](){var _0x2b7b7c=_0x5c2374;this['disposeWithMe'](this[_0x2b7b7c(0xf7)][_0x2b7b7c(0xfa)](_0x193595[_0x2b7b7c(0x186)],()=>_0x207180(ye,this['_injector'])));}};I=je([T(0x0,_0x1d6dfe(_0x5e4e3e)),T(0x1,_0xfebe73)],I);const Ue=_0x5c2374(0x162),$={};var Ve=Object[_0x5c2374(0x13e)],Me=(_0x14e10e,_0xe535ad,_0x4cd66a,_0x347e36)=>{var _0x4670a1=_0x5c2374;for(var _0x57f36e=_0x347e36>0x1?void 0x0:_0x347e36?Ve(_0xe535ad,_0x4cd66a):_0xe535ad,_0x55e426=_0x14e10e[_0x4670a1(0xf1)]-0x1,_0x3d1718;_0x55e426>=0x0;_0x55e426--)(_0x3d1718=_0x14e10e[_0x55e426])&&(_0x57f36e=_0x3d1718(_0x57f36e)||_0x57f36e);return _0x57f36e;},ke=(_0x572c66,_0x59849a)=>(_0x3bfde5,_0x2f1730)=>_0x59849a(_0x3bfde5,_0x2f1730,_0x572c66);let b=class extends _0x5d9f0b{constructor(_0x521929){var _0x1ace44=_0x5c2374;super(),this[_0x1ace44(0xdd)]=_0x521929,this['_init']();}['_init'](){var _0x5d387b=_0x5c2374;[_0x25cf9a['id'],_0x20a77c['id'],_0x564afb['id']][_0x5d387b(0xe2)](_0x21aab3=>{var _0x36fef3=_0x5d387b;this['disposeWithMe'](this['_liveShareService'][_0x36fef3(0x106)](_0x21aab3));});}};b=Me([ke(0x0,_0x1d6dfe(L))],b);var Ge=Object[_0x5c2374(0x14c)],We=Object[_0x5c2374(0x13e)],Ye=(_0x2a1d01,_0x4ee20b,_0x490690)=>_0x4ee20b in _0x2a1d01?Ge(_0x2a1d01,_0x4ee20b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x490690}):_0x2a1d01[_0x4ee20b]=_0x490690,Be=(_0x4089c1,_0x13471a,_0x319da0,_0x399ed7)=>{var _0x31825a=_0x5c2374;for(var _0x2e264a=_0x399ed7>0x1?void 0x0:_0x399ed7?We(_0x13471a,_0x319da0):_0x13471a,_0x5eb86d=_0x4089c1[_0x31825a(0xf1)]-0x1,_0x29b6a6;_0x5eb86d>=0x0;_0x5eb86d--)(_0x29b6a6=_0x4089c1[_0x5eb86d])&&(_0x2e264a=_0x29b6a6(_0x2e264a)||_0x2e264a);return _0x2e264a;},F=(_0x5f52f9,_0x3dbc4b)=>(_0x15489b,_0x350a08)=>_0x3dbc4b(_0x15489b,_0x350a08,_0x5f52f9),J=(_0x3a1805,_0x393db9,_0x4395c1)=>Ye(_0x3a1805,typeof _0x393db9!='symbol'?_0x393db9+'':_0x393db9,_0x4395c1);const Ze=_0x5c2374(0x167);let O=class extends _0x85ddfe{constructor(_0x3e883e=$,_0x4e0bb3,_0x160181){var _0x3907ca=_0x5c2374;super(),this[_0x3907ca(0x120)]=_0x3e883e,this['_injector']=_0x4e0bb3,this['_configService']=_0x160181;const {..._0x426146}=_0x4b219b({},$,this[_0x3907ca(0x120)]);this[_0x3907ca(0x125)][_0x3907ca(0x10a)](Ue,_0x426146);}[_0x5c2374(0x144)](){var _0x266a9a=_0x5c2374;_0x455e36(this[_0x266a9a(0x11b)],_0x5ed9f1([[L],[m],[b],[I]],this[_0x266a9a(0x120)][_0x266a9a(0x184)])),_0x38b512(this['_injector'],[[b]]);}[_0x5c2374(0x15a)](){_0x38b512(this['_injector'],[[I]]);}};J(O,'type',_0x597c39[_0x5c2374(0xfd)]),J(O,'pluginName',Ze),O=Be([_0x20bf5b(_0x2f4a1c),F(0x1,_0x1d6dfe(_0x5e4e3e)),F(0x2,_0x427207)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0xf0588f=_0x512b;(function(_0x19e2da,_0x283a23){var _0x29619d=_0x512b,_0x455e05=_0x19e2da();while(!![]){try{var _0x1261ca=-parseInt(_0x29619d(0x1c3))/0x1+-parseInt(_0x29619d(0x187))/0x2*(parseInt(_0x29619d(0x156))/0x3)+parseInt(_0x29619d(0x184))/0x4+parseInt(_0x29619d(0x1b8))/0x5+parseInt(_0x29619d(0x199))/0x6+-parseInt(_0x29619d(0x188))/0x7*(parseInt(_0x29619d(0x1cc))/0x8)+parseInt(_0x29619d(0x1c8))/0x9*(parseInt(_0x29619d(0x1e0))/0xa);if(_0x1261ca===_0x283a23)break;else _0x455e05['push'](_0x455e05['shift']());}catch(_0x331d80){_0x455e05['push'](_0x455e05['shift']());}}}(_0x59da,0x8d9a1));var q=Object[_0xf0588f(0x1ef)],z=(_0x312c23,_0x154a70,_0x248075)=>_0x154a70 in _0x312c23?q(_0x312c23,_0x154a70,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x248075}):_0x312c23[_0x154a70]=_0x248075,d=(_0x1b9265,_0x1188d4,_0x2f0128)=>z(_0x1b9265,typeof _0x1188d4!=_0xf0588f(0x17d)?_0x1188d4+'':_0x1188d4,_0x2f0128);import{Disposable as _0x10571d,toDisposable as _0x48e11a,IUniverInstanceService as _0x344d2c,Inject as _0x68914,Injector as _0x355540,IConfigService as _0x2c88fb,ICommandService as _0xdc74d2,RxDisposable as _0x372cb7,UniverInstanceType as _0x4c3c61,DisposableCollection as _0x260e95,CommandType as _0x3829f0,DependentOn as _0x9fac4b,Plugin as _0x519c08,merge as _0x252811,registerDependencies as _0x1cfa1f,mergeOverrideWithDependencies as _0x4cfe19,touchDependencies as _0x4e427e}from'@univerjs/core';function _0x512b(_0x5d1052,_0x28604b){var _0x59da5e=_0x59da();return _0x512b=function(_0x512b01,_0x88c7b1){_0x512b01=_0x512b01-0x154;var _0xc99980=_0x59da5e[_0x512b01];return _0xc99980;},_0x512b(_0x5d1052,_0x28604b);}import{useDependency as _0x5ed6d8,useObservable as _0x5099d5,IUIPartsService as _0x5e9bd8,BuiltInUIPart as _0xcde8b6,connectInjector as _0x114849}from'@univerjs/ui';import{jsx as _0x7d6475,jsxs as _0x492ee1,Fragment as _0xfb239c}from'react/jsx-runtime';import{Dropdown as _0x37f252,clsx as _0x3844f1,Button as _0x3da79b}from'@univerjs/design';import{forwardRef as _0x16a9e6,useRef as _0x490fb6,createElement as _0x144472,useState as _0x1b5347,useEffect as _0x2e846d}from'react';import{CollaborationEvent as _0x1b6ec8,parseProtocolChangeset as _0x5d3d5f}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x36448a,SessionStatus as _0x37ff83,UniverCollaborationClientPlugin as _0x29d85d}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x462961,SetWorksheetActiveOperation as _0xb98e3c}from'@univerjs/sheets';import{BehaviorSubject as _0x2bcf5b,Subject as _0x239e6b}from'rxjs';import{takeUntil as _0x247bb8,throttleTime as _0x417704}from'rxjs/operators';import{SetZoomRatioOperation as _0x495ed0,SetScrollOperation as _0x5e8ec9}from'@univerjs/sheets-ui';var c=function(){var _0x421dc8=_0xf0588f;return c=Object[_0x421dc8(0x192)]||function(_0x2d1f1a){var _0x58af7e=_0x421dc8;for(var _0x49f843,_0x406bbc=0x1,_0x2ff6bd=arguments[_0x58af7e(0x1ed)];_0x406bbc<_0x2ff6bd;_0x406bbc++){_0x49f843=arguments[_0x406bbc];for(var _0x257042 in _0x49f843)Object[_0x58af7e(0x19b)][_0x58af7e(0x200)][_0x58af7e(0x174)](_0x49f843,_0x257042)&&(_0x2d1f1a[_0x257042]=_0x49f843[_0x257042]);}return _0x2d1f1a;},c[_0x421dc8(0x201)](this,arguments);},Oe=function(_0x51f206,_0x52c101){var _0x4b9903=_0xf0588f,_0xb6a09={};for(var _0x4ba236 in _0x51f206)Object[_0x4b9903(0x19b)]['hasOwnProperty'][_0x4b9903(0x174)](_0x51f206,_0x4ba236)&&_0x52c101[_0x4b9903(0x203)](_0x4ba236)<0x0&&(_0xb6a09[_0x4ba236]=_0x51f206[_0x4ba236]);if(_0x51f206!=null&&typeof Object[_0x4b9903(0x1e7)]==_0x4b9903(0x1fd)){for(var _0x18ab96=0x0,_0x4ba236=Object[_0x4b9903(0x1e7)](_0x51f206);_0x18ab96<_0x4ba236['length'];_0x18ab96++)_0x52c101[_0x4b9903(0x203)](_0x4ba236[_0x18ab96])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x51f206,_0x4ba236[_0x18ab96])&&(_0xb6a09[_0x4ba236[_0x18ab96]]=_0x51f206[_0x4ba236[_0x18ab96]]);}return _0xb6a09;},W=_0x16a9e6(function(_0xd88efc,_0x1a7ec3){var _0x5e72c9=_0xf0588f,_0x2875d1=_0xd88efc['icon'],_0x205c72=_0xd88efc['id'],_0x208bc5=_0xd88efc['className'],_0x53dcff=_0xd88efc[_0x5e72c9(0x178)],_0x873fb6=Oe(_0xd88efc,[_0x5e72c9(0x1f2),'id',_0x5e72c9(0x1fa),'extend']),_0x1f05d7=_0x5e72c9(0x204)['concat'](_0x205c72,'\x20')['concat'](_0x208bc5||'')[_0x5e72c9(0x19d)](),_0x104c59=_0x490fb6('_'[_0x5e72c9(0x1d5)](Ne()));return Y(_0x2875d1,''[_0x5e72c9(0x1d5)](_0x205c72),{'defIds':_0x2875d1[_0x5e72c9(0x159)],'idSuffix':_0x104c59['current']},c({'ref':_0x1a7ec3,'className':_0x1f05d7},_0x873fb6),_0x53dcff);});function Y(_0x168032,_0x3b1097,_0x56ed26,_0x4c0365,_0x18bf77){var _0xbb6eac=_0xf0588f;return _0x144472(_0x168032[_0xbb6eac(0x17b)],c(c({'key':_0x3b1097},Ee(_0x168032,_0x56ed26,_0x18bf77)),_0x4c0365),(we(_0x168032,_0x56ed26)[_0xbb6eac(0x182)]||[])[_0xbb6eac(0x1f1)](function(_0x1d909d,_0x3b58fd){var _0x2135a2=_0xbb6eac;return Y(_0x1d909d,''['concat'](_0x3b1097,'-')['concat'](_0x168032[_0x2135a2(0x17b)],'-')['concat'](_0x3b58fd),_0x56ed26,void 0x0,_0x18bf77);}));}function Ee(_0x54a58b,_0x2c4246,_0x44e388){var _0x3042ac=_0xf0588f,_0x240bcd=c({},_0x54a58b[_0x3042ac(0x1f5)]);_0x44e388!=null&&_0x44e388[_0x3042ac(0x1e6)]&&_0x240bcd[_0x3042ac(0x1bd)]===_0x3042ac(0x1e6)&&(_0x240bcd[_0x3042ac(0x1bd)]=_0x44e388['colorChannel1']),_0x54a58b[_0x3042ac(0x17b)]===_0x3042ac(0x1dc)&&_0x240bcd['id']&&(_0x240bcd['id']=_0x240bcd['id']+_0x2c4246['idSuffix']),Object[_0x3042ac(0x1ff)](_0x240bcd)[_0x3042ac(0x1c7)](function(_0x567f61){var _0x49f3c2=_0x3042ac,_0x2f8b44=_0x567f61[0x0],_0x432f68=_0x567f61[0x1];_0x2f8b44==='mask'&&typeof _0x432f68==_0x49f3c2(0x1c6)&&(_0x240bcd[_0x2f8b44]=_0x432f68[_0x49f3c2(0x158)](/url\(#(.*)\)/,_0x49f3c2(0x1d6)['concat'](_0x2c4246[_0x49f3c2(0x1f7)],')')));});var _0x4725c3=_0x2c4246[_0x3042ac(0x159)];return!_0x4725c3||_0x4725c3[_0x3042ac(0x1ed)]===0x0||(_0x54a58b[_0x3042ac(0x17b)]==='use'&&_0x240bcd[_0x3042ac(0x1df)]&&(_0x240bcd[_0x3042ac(0x1df)]=_0x240bcd[_0x3042ac(0x1df)]+_0x2c4246[_0x3042ac(0x1f7)]),Object[_0x3042ac(0x1ff)](_0x240bcd)['forEach'](function(_0x284466){var _0x2af8fc=_0x3042ac,_0x465a1f=_0x284466[0x0],_0x26a360=_0x284466[0x1];typeof _0x26a360==_0x2af8fc(0x1c6)&&(_0x240bcd[_0x465a1f]=_0x26a360['replace'](/url\(#(.*)\)/,_0x2af8fc(0x1d6)[_0x2af8fc(0x1d5)](_0x2c4246['idSuffix'],')')));})),_0x240bcd;}function we(_0x1a4a14,_0x471b07){var _0x2692ca=_0xf0588f,_0xbd3d5e,_0x27625d=_0x471b07[_0x2692ca(0x159)];return!_0x27625d||_0x27625d['length']===0x0?_0x1a4a14:_0x1a4a14[_0x2692ca(0x17b)]==='defs'&&(!((_0xbd3d5e=_0x1a4a14['children'])===null||_0xbd3d5e===void 0x0)&&_0xbd3d5e['length'])?c(c({},_0x1a4a14),{'children':_0x1a4a14['children'][_0x2692ca(0x1f1)](function(_0x58d284){var _0xa74f31=_0x2692ca;return typeof _0x58d284[_0xa74f31(0x1f5)]['id']==_0xa74f31(0x1c6)&&_0x27625d&&_0x27625d['includes'](_0x58d284[_0xa74f31(0x1f5)]['id'])?c(c({},_0x58d284),{'attrs':c(c({},_0x58d284[_0xa74f31(0x1f5)]),{'id':_0x58d284[_0xa74f31(0x1f5)]['id']+_0x471b07['idSuffix']})}):_0x58d284;})}):_0x1a4a14;}function Ne(){var _0x493c1d=_0xf0588f;return Math[_0x493c1d(0x1ea)]()[_0x493c1d(0x154)](0x24)[_0x493c1d(0x16c)](0x2,0x8);}W[_0xf0588f(0x1f8)]='UniverIcon';var Ce={'tag':_0xf0588f(0x18e),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xf0588f(0x1ce),'viewBox':_0xf0588f(0x171),'width':_0xf0588f(0x1bf),'height':'1em'},'children':[{'tag':_0xf0588f(0x1bc),'attrs':{'fill':'currentColor','d':_0xf0588f(0x1ac)}},{'tag':_0xf0588f(0x1bc),'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':_0xf0588f(0x180)}}]},B=_0x16a9e6(function(_0x77a35d,_0xd2411f){var _0x4ec7d6=_0xf0588f;return _0x144472(W,Object[_0x4ec7d6(0x192)]({},_0x77a35d,{'id':'live-share-icon','ref':_0xd2411f,'icon':Ce}));});B[_0xf0588f(0x1f8)]=_0xf0588f(0x1eb);class L extends _0x10571d{constructor(){var _0x19200b=_0xf0588f;super(...arguments),d(this,_0x19200b(0x1ad),new Set()),d(this,_0x19200b(0x196),new Set());}[_0xf0588f(0x15f)](_0x392fa2){var _0x5a5e06=_0xf0588f;return this[_0x5a5e06(0x1ad)]['add'](_0x392fa2),_0x48e11a(()=>this[_0x5a5e06(0x1ad)][_0x5a5e06(0x1b9)](_0x392fa2));}[_0xf0588f(0x167)](_0x56dff1){var _0xce8ee9=_0xf0588f;return this[_0xce8ee9(0x196)]['add'](_0x56dff1),_0x48e11a(()=>this[_0xce8ee9(0x196)][_0xce8ee9(0x1b9)](_0x56dff1));}[_0xf0588f(0x179)](_0x1bbb4e){var _0x5807e2=_0xf0588f;return this[_0x5807e2(0x1ad)]['has'](_0x1bbb4e);}[_0xf0588f(0x1d0)](_0x24b1fc){var _0x5d9d07=_0xf0588f;return Array['from'](this[_0x5d9d07(0x196)])['map'](_0x555f06=>_0x555f06(_0x24b1fc));}}var De=Object[_0xf0588f(0x1fc)],Z=(_0x188e32,_0x3aabd8,_0x33b1cd,_0x3ba85b)=>{var _0x575078=_0xf0588f;for(var _0x255e8c=_0x3ba85b>0x1?void 0x0:_0x3ba85b?De(_0x3aabd8,_0x33b1cd):_0x3aabd8,_0x421dca=_0x188e32[_0x575078(0x1ed)]-0x1,_0x373a52;_0x421dca>=0x0;_0x421dca--)(_0x373a52=_0x188e32[_0x421dca])&&(_0x255e8c=_0x373a52(_0x255e8c)||_0x255e8c);return _0x255e8c;},f=(_0x529447,_0x5362fa)=>(_0x382aad,_0x38ef63)=>_0x5362fa(_0x382aad,_0x38ef63,_0x529447);let m=class extends _0x372cb7{constructor(_0x17e940,_0x141d33,_0x6c3f58){var _0x51d777=_0xf0588f;super(),d(this,_0x51d777(0x1e9),new Map()),(this[_0x51d777(0x1e4)]=_0x17e940,this['_injector']=_0x141d33,this[_0x51d777(0x202)]=_0x6c3f58,this['_init']());}async['getLiveShareCoordinator'](_0x530c59){var _0x23355f=_0xf0588f;return this[_0x23355f(0x1e9)]['has'](_0x530c59)||await this[_0x23355f(0x1a3)](_0x530c59),this[_0x23355f(0x1e9)][_0x23355f(0x1a7)](_0x530c59);}[_0xf0588f(0x186)](){var _0x4e6bfa=_0xf0588f;this[_0x4e6bfa(0x1e4)][_0x4e6bfa(0x1ee)](_0x4c3c61['UNIVER_SHEET'])[_0x4e6bfa(0x1b2)](_0x247bb8(this['dispose$']))[_0x4e6bfa(0x1b6)](async _0x41bc35=>{var _0xd2e05e=_0x4e6bfa;const _0x22d627=_0x41bc35[_0xd2e05e(0x1a8)]();this[_0xd2e05e(0x1e9)][_0xd2e05e(0x15d)](_0x22d627)||this[_0xd2e05e(0x1a3)](_0x22d627);}),this[_0x4e6bfa(0x1e4)][_0x4e6bfa(0x1a2)](_0x4c3c61[_0x4e6bfa(0x162)])['pipe'](_0x247bb8(this['dispose$']))['subscribe'](_0x2eb7de=>{var _0x54475b=_0x4e6bfa;const _0x379e32=_0x2eb7de[_0x54475b(0x1a8)](),_0x1e22db=this[_0x54475b(0x1e9)][_0x54475b(0x1a7)](_0x379e32);_0x1e22db==null||_0x1e22db[_0x54475b(0x1af)]();});}async['_startLiveShareCoordinator'](_0x4cbf45){var _0x3dd08d=_0xf0588f;const _0x12e338=await this['_collabSessionService'][_0x3dd08d(0x194)](_0x4cbf45),_0x3f5eb4=this[_0x3dd08d(0x176)][_0x3dd08d(0x183)](C,_0x4cbf45,_0x12e338);return _0x3f5eb4['init'](),this['_entities'][_0x3dd08d(0x163)](_0x4cbf45,_0x3f5eb4),_0x3f5eb4;}};m=Z([f(0x0,_0x344d2c),f(0x1,_0x68914(_0x355540)),f(0x2,_0x68914(_0x36448a))],m);var h=(_0x57cba2=>(_0x57cba2['OFFLINE']=_0xf0588f(0x205),_0x57cba2[_0xf0588f(0x15e)]='idle',_0x57cba2[_0xf0588f(0x160)]='following',_0x57cba2[_0xf0588f(0x1c0)]='not-following',_0x57cba2[_0xf0588f(0x195)]=_0xf0588f(0x1cd),_0x57cba2))(h||{});const xe=_0xf0588f(0x1da),Le=0xc8;let C=class extends _0x372cb7{constructor(_0x315c9c,_0x4056b5,_0x2917e3,_0x381809,_0x349fc2){var _0x55737b=_0xf0588f;super(),d(this,_0x55737b(0x1b0),new _0x2bcf5b(_0x55737b(0x19e))),d(this,_0x55737b(0x19f),this[_0x55737b(0x1b0)][_0x55737b(0x17e)]()),d(this,_0x55737b(0x186),!0x1),d(this,_0x55737b(0x175),null),d(this,_0x55737b(0x16e),null),(this['_unitID']=_0x315c9c,this['_collabSession']=_0x4056b5,this['_configService']=_0x2917e3,this[_0x55737b(0x185)]=_0x381809,this['_commandService']=_0x349fc2);}get[_0xf0588f(0x16b)](){var _0x19b68e=_0xf0588f;return this[_0x19b68e(0x1b0)]['getValue']();}[_0xf0588f(0x1af)](){var _0x2b3745=_0xf0588f,_0x3254b0;(_0x3254b0=this['_commandDisposable'])==null||_0x3254b0[_0x2b3745(0x1af)](),this[_0x2b3745(0x1b0)]['next'](_0x2b3745(0x19e)),this[_0x2b3745(0x1b0)]['complete']();}[_0xf0588f(0x17c)](){var _0x2c71d7=_0xf0588f;this[_0x2c71d7(0x186)]||(this[_0x2c71d7(0x186)]=!0x0,this[_0x2c71d7(0x1e2)][_0x2c71d7(0x1a1)][_0x2c71d7(0x1b2)](_0x247bb8(this[_0x2c71d7(0x1db)]))['subscribe'](_0x265ae9=>{var _0x2cd28f=_0x2c71d7;switch(_0x265ae9){case _0x37ff83['OFFLINE']:this[_0x2cd28f(0x1d9)]();break;case _0x37ff83[_0x2cd28f(0x1ab)]:this[_0x2cd28f(0x173)]();break;}}),this[_0x2c71d7(0x1e2)][_0x2c71d7(0x172)][_0x2c71d7(0x1b2)](_0x247bb8(this[_0x2c71d7(0x1db)]))[_0x2c71d7(0x1b6)](_0x1b9fc2=>{var _0x557688=_0x2c71d7;const {eventID:_0x4dbaf9}=_0x1b9fc2;switch(_0x4dbaf9){case _0x1b6ec8[_0x557688(0x1c1)]:this[_0x557688(0x1f9)](_0x1b9fc2);break;case _0x1b6ec8[_0x557688(0x1cb)]:this[_0x557688(0x1f3)](_0x1b9fc2);break;case _0x1b6ec8[_0x557688(0x1e8)]:this[_0x557688(0x1c2)]();break;case _0x1b6ec8[_0x557688(0x19a)]:this[_0x557688(0x17a)](_0x1b9fc2);break;}}));}[_0xf0588f(0x15c)](){var _0x181b75=_0xf0588f;this['_collabSession']['send']({'eventID':_0x1b6ec8[_0x181b75(0x1e5)],'data':{'unitID':this[_0x181b75(0x177)],'userID':this[_0x181b75(0x1e2)]['getMemberID']()}},this[_0x181b75(0x177)]);}[_0xf0588f(0x1fb)](){var _0x4c30c9=_0xf0588f;this['_status']==='presenting'&&(this['_status$'][_0x4c30c9(0x1a5)](_0x4c30c9(0x19e)),this[_0x4c30c9(0x1e2)][_0x4c30c9(0x191)]({'eventID':_0x1b6ec8['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x4c30c9(0x177)]}},this[_0x4c30c9(0x177)]));}[_0xf0588f(0x1f4)](){var _0x55aa9f=_0xf0588f;this[_0x55aa9f(0x16b)]===_0x55aa9f(0x1a6)&&(this[_0x55aa9f(0x1b0)]['next'](_0x55aa9f(0x1bb)),this[_0x55aa9f(0x1d1)]());}[_0xf0588f(0x181)](){var _0x1c38a2=_0xf0588f;this[_0x1c38a2(0x16b)]==='following'&&this['_stopFollowing']();}[_0xf0588f(0x1f9)](_0x4c4bb4){var _0x4fb695=_0xf0588f;const {presenter:_0x446d4f}=_0x4c4bb4[_0x4fb695(0x165)],_0x484e62=this[_0x4fb695(0x1e2)][_0x4fb695(0x168)]();this[_0x4fb695(0x16e)]=_0x446d4f,_0x446d4f===_0x484e62?(this[_0x4fb695(0x1aa)](),this[_0x4fb695(0x1d4)]()):this[_0x4fb695(0x16b)]!==_0x4fb695(0x1a6)&&(this['_stopPresenting'](),this[_0x4fb695(0x1d1)]());}['_fetchOperations'](){var _0x216ce2=_0xf0588f;const _0x1b1f40={'eventID':_0x1b6ec8[_0x216ce2(0x18a)]};this['_collabSession']['send'](_0x1b1f40,this[_0x216ce2(0x177)]);}[_0xf0588f(0x1c2)](){var _0x335c13=_0xf0588f;this[_0x335c13(0x16e)]=null,this[_0x335c13(0x16b)]!==_0x335c13(0x1cd)&&this[_0x335c13(0x16d)]();}[_0xf0588f(0x17a)](_0x17916e){var _0x1c8239=_0xf0588f;if(this[_0x1c8239(0x16b)]==='following'&&this[_0x1c8239(0x16e)]===_0x17916e['data'][_0x1c8239(0x1b4)]){const _0x5c5b0d=_0x5d3d5f(_0x17916e[_0x1c8239(0x165)])[_0x1c8239(0x19c)][_0x1c8239(0x1ae)]()[_0x1c8239(0x1c5)](_0x267f7d=>_0x267f7d['id']===_0x462961['id']);if(_0x5c5b0d){const _0x7037c8=_0x5c5b0d['params'][_0x1c8239(0x166)],_0x33f292=_0x5c5b0d['params'][_0x1c8239(0x18f)]['id'];setTimeout(()=>{var _0x4d6e8f=_0x1c8239;this[_0x4d6e8f(0x1ec)][_0x4d6e8f(0x1a0)](_0xb98e3c['id'],{'unitId':_0x7037c8,'subUnitId':_0x33f292},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x167312=_0xf0588f;this[_0x167312(0x1b0)][_0x167312(0x1a5)]('presenting');const _0x8f4a51=new Map(),_0x29d526=this[_0x167312(0x175)]=new _0x260e95();_0x29d526[_0x167312(0x1f6)](_0x48e11a(()=>{var _0x2f5c74=_0x167312;_0x8f4a51[_0x2f5c74(0x1c7)](_0x3f1e4e=>_0x3f1e4e[_0x2f5c74(0x1c4)]()),_0x8f4a51[_0x2f5c74(0x164)]();})),_0x29d526[_0x167312(0x1f6)](this[_0x167312(0x1ec)][_0x167312(0x197)](_0x11753e=>{var _0x5c7170=_0x167312,_0x3159b9;if(_0x11753e[_0x5c7170(0x18c)]!==_0x3829f0[_0x5c7170(0x193)]||!this['_liveShareService']['shouldShareOperation'](_0x11753e['id']))return;const {id:_0x258001}=_0x11753e;let _0x16a3cd;_0x8f4a51['has'](_0x258001)?_0x16a3cd=_0x8f4a51[_0x5c7170(0x1a7)](_0x258001):(_0x16a3cd=new _0x239e6b(),_0x8f4a51['set'](_0x258001,_0x16a3cd),_0x16a3cd[_0x5c7170(0x1b2)](_0x417704((_0x3159b9=this[_0x5c7170(0x1d3)][_0x5c7170(0x198)](xe))!=null?_0x3159b9:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5c7170(0x1b6)](_0x1d33a9=>{var _0x18726f=_0x5c7170;this[_0x18726f(0x1e2)][_0x18726f(0x191)]({'eventID':_0x1b6ec8[_0x18726f(0x1cb)],'data':{'unitID':this['_unitID'],'operations':{[_0x1d33a9['id']]:{'id':_0x1d33a9['id'],'params':JSON['stringify'](_0x1d33a9['params'])}}}},this['_unitID']);})),_0x16a3cd['next'](_0x11753e);})),this[_0x167312(0x185)]['getInitialStates'](this[_0x167312(0x177)])[_0x167312(0x1c7)](_0x1d69e2=>this[_0x167312(0x1e2)][_0x167312(0x191)]({'eventID':_0x1b6ec8['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x1d69e2['id']]:{'id':_0x1d69e2['id'],'params':JSON[_0x167312(0x170)](_0x1d69e2['params'])}}}},this[_0x167312(0x177)]));}[_0xf0588f(0x169)](){var _0x5924ef=_0xf0588f,_0x1e3cc7;this[_0x5924ef(0x1b0)][_0x5924ef(0x1a5)](_0x5924ef(0x19e)),(_0x1e3cc7=this[_0x5924ef(0x175)])==null||_0x1e3cc7[_0x5924ef(0x1af)](),this[_0x5924ef(0x175)]=null;}['_startFollowing'](){var _0x3359ae=_0xf0588f,_0x5d6056;(_0x5d6056=this[_0x3359ae(0x175)])==null||_0x5d6056[_0x3359ae(0x1af)](),this['_status$']['next'](_0x3359ae(0x1bb));}[_0xf0588f(0x16d)](){var _0x3e4c97=_0xf0588f,_0x2194b9;this['_status$']['next'](_0x3e4c97(0x19e)),(_0x2194b9=this['_commandDisposable'])==null||_0x2194b9[_0x3e4c97(0x1af)](),this[_0x3e4c97(0x175)]=null;}[_0xf0588f(0x1aa)](){var _0x5d2866=_0xf0588f,_0x43769d;this['_status$'][_0x5d2866(0x1a5)](_0x5d2866(0x1a6)),(_0x43769d=this[_0x5d2866(0x175)])==null||_0x43769d[_0x5d2866(0x1af)]();}['_handleOperation'](_0x5550b9){var _0x418763=_0xf0588f;if([_0x418763(0x1cd),'not-following',_0x418763(0x205)][_0x418763(0x161)](this[_0x418763(0x16b)])||!_0x5550b9[_0x418763(0x165)][_0x418763(0x16f)]||_0x5550b9[_0x418763(0x165)][_0x418763(0x16f)]===this[_0x418763(0x1e2)][_0x418763(0x168)]())return;this[_0x418763(0x16b)]===_0x418763(0x19e)&&this[_0x418763(0x1d1)]();const _0x10666c=_0x5550b9['data'][_0x418763(0x1c9)];Object[_0x418763(0x1ca)](_0x10666c)[_0x418763(0x1c7)](_0x28d0d2=>{var _0x15b959=_0x418763;this[_0x15b959(0x1ec)][_0x15b959(0x1a0)](_0x28d0d2['id'],_0x28d0d2[_0x15b959(0x1b1)]?JSON['parse'](_0x28d0d2[_0x15b959(0x1b1)]):null,{'fromCollab':!0x0});});}[_0xf0588f(0x1d9)](){var _0x3b3e4d=_0xf0588f,_0x581bab;this[_0x3b3e4d(0x1b0)][_0x3b3e4d(0x1a5)](_0x3b3e4d(0x205)),(_0x581bab=this[_0x3b3e4d(0x175)])==null||_0x581bab[_0x3b3e4d(0x1af)]();}[_0xf0588f(0x173)](){var _0x5593a3=_0xf0588f;this[_0x5593a3(0x1b0)][_0x5593a3(0x1a5)]('idle'),this['_fetchOperations']();}};C=Z([f(0x2,_0x2c88fb),f(0x3,_0x68914(L)),f(0x4,_0xdc74d2)],C);function ye(){var _0x4f213d=_0xf0588f;const _0xc303c2=_0x5ed6d8(m),_0x2a6f45=_0x5ed6d8(_0x344d2c),_0x3f5607=_0x5099d5(()=>_0x2a6f45[_0x4f213d(0x1cf)](_0x4c3c61[_0x4f213d(0x162)]),void 0x0,!0x1,[]),[_0x13686f,_0x3d8a7b]=_0x1b5347(null),[_0x230091,_0x54acf7]=_0x1b5347(h[_0x4f213d(0x15e)]),_0x4906bd=_0x490fb6(null);return _0x2e846d(()=>(_0x3f5607&&_0xc303c2['getLiveShareCoordinator'](_0x3f5607['getUnitId']())['then'](_0x518f3f=>{_0x3d8a7b(_0x518f3f),_0x4906bd['current']=_0x518f3f['status$']['subscribe'](_0x44c0ca=>{_0x54acf7(_0x44c0ca);});}),()=>{var _0x3bc3ca=_0x4f213d,_0x348405;(_0x348405=_0x4906bd[_0x3bc3ca(0x1b3)])==null||_0x348405[_0x3bc3ca(0x15b)](),_0x4906bd[_0x3bc3ca(0x1b3)]=null;}),[_0x3f5607,_0xc303c2]),_0x13686f?_0x7d6475(_0x37f252,{'align':'end','disabled':_0x230091===h['OFFLINE'],'className':_0x4f213d(0x190),'overlay':_0x7d6475(Re,{'status':_0x230091,'coordinator':_0x13686f}),'children':_0x7d6475(_0x4f213d(0x1e3),{'className':_0x3844f1(_0x4f213d(0x1d8),{'univer-cursor-not-allowed':_0x230091===h[_0x4f213d(0x1ba)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x230091!==h[_0x4f213d(0x1ba)]}),'type':_0x4f213d(0x1e3),'children':_0x7d6475(B,{'className':'univer-size-4'})})}):null;}function Re(_0x405ba3){var _0x5e0602=_0xf0588f;const {status:_0x5d5fe6,coordinator:_0x5037e2}=_0x405ba3;switch(_0x5d5fe6){case h[_0x5e0602(0x15e)]:return _0x7d6475(Pe,{'coordinator':_0x5037e2});case h[_0x5e0602(0x160)]:return _0x7d6475(Ae,{'coordinator':_0x5037e2});case h[_0x5e0602(0x1c0)]:return _0x7d6475(Te,{'coordinator':_0x5037e2});case h[_0x5e0602(0x1ba)]:return _0x7d6475(Fe,{});case h[_0x5e0602(0x195)]:return _0x7d6475($e,{'coordinator':_0x5037e2});default:return null;}}function Pe(_0x172515){var _0x454274=_0xf0588f;const {coordinator:_0x372d62}=_0x172515;return _0x492ee1(_0xfb239c,{'children':[_0x7d6475(_0x454274(0x18b),{'className':_0x454274(0x1b7),'children':'Present\x20this\x20document'}),_0x7d6475(_0x3da79b,{'onClick':()=>_0x372d62[_0x454274(0x15c)](),'children':_0x454274(0x1dd)})]});}function Ae(_0x12b24f){var _0x1417d2=_0xf0588f;const {coordinator:_0x38708f}=_0x12b24f;return _0x492ee1(_0xfb239c,{'children':[_0x7d6475(_0x1417d2(0x18b),{'className':_0x1417d2(0x1b7),'children':_0x1417d2(0x155)}),_0x7d6475(_0x3da79b,{'onClick':()=>_0x38708f[_0x1417d2(0x181)](),'children':_0x1417d2(0x1a4)})]});}function Te(_0x2640b3){var _0x52ccaa=_0xf0588f;const {coordinator:_0x5c3c72}=_0x2640b3;return _0x492ee1(_0xfb239c,{'children':[_0x7d6475(_0x52ccaa(0x18b),{'className':_0x52ccaa(0x1b7),'children':_0x52ccaa(0x189)}),_0x7d6475(_0x3da79b,{'variant':_0x52ccaa(0x1fe),'onClick':()=>_0x5c3c72[_0x52ccaa(0x1f4)](),'children':_0x52ccaa(0x17f)})]});}function $e(_0x3d7ee4){var _0x5a26b6=_0xf0588f;const {coordinator:_0x13357e}=_0x3d7ee4;return _0x492ee1(_0xfb239c,{'children':[_0x7d6475(_0x5a26b6(0x18b),{'className':_0x5a26b6(0x1b7),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x7d6475(_0x3da79b,{'variant':_0x5a26b6(0x15a),'onClick':()=>_0x13357e[_0x5a26b6(0x1fb)](),'children':'Stop\x20presenting'})]});}function Fe(){return _0x7d6475(_0xfb239c,{'children':'You\x27are\x20offline.'});}var He=Object[_0xf0588f(0x1fc)],je=(_0x2b2b96,_0x24a5e2,_0x3a46bc,_0x135026)=>{var _0x5823aa=_0xf0588f;for(var _0x167fa8=_0x135026>0x1?void 0x0:_0x135026?He(_0x24a5e2,_0x3a46bc):_0x24a5e2,_0xbbc669=_0x2b2b96[_0x5823aa(0x1ed)]-0x1,_0x238629;_0xbbc669>=0x0;_0xbbc669--)(_0x238629=_0x2b2b96[_0xbbc669])&&(_0x167fa8=_0x238629(_0x167fa8)||_0x167fa8);return _0x167fa8;},T=(_0x248e23,_0x17da4d)=>(_0x8b2433,_0x4ef257)=>_0x17da4d(_0x8b2433,_0x4ef257,_0x248e23);let I=class extends _0x10571d{constructor(_0x4b1565,_0x576793){var _0x2849ed=_0xf0588f;super(),this['_injector']=_0x4b1565,this[_0x2849ed(0x18d)]=_0x576793,this[_0x2849ed(0x1b5)]();}[_0xf0588f(0x1b5)](){var _0x401e95=_0xf0588f;this['disposeWithMe'](this[_0x401e95(0x18d)][_0x401e95(0x1f0)](_0xcde8b6[_0x401e95(0x1de)],()=>_0x114849(ye,this[_0x401e95(0x176)])));}};function _0x59da(){var _0x9b3a12=['length','getTypeOfUnitAdded$','defineProperty','registerComponent','map','icon','_handleOperation','startFollowing','attrs','add','idSuffix','displayName','_handleNewHost','className','stopPresenting','getOwnPropertyDescriptor','function','text','entries','hasOwnProperty','apply','_collabSessionService','indexOf','univerjs-icon\x20univerjs-icon-','offline','toString','You\x27re\x20following\x20the\x20presenter','21KwBwxE','pluginName','replace','defIds','default','unsubscribe','tryStartPresenting','has','IDLE','registerSharedOperation','FOLLOWING','includes','UNIVER_SHEET','set','clear','data','unitId','registerInitialStateReporter','getMemberID','_stopPresenting','setConfig','_status','substring','_beIdle','_presenter','presenter','stringify','0\x200\x2017\x2017','event$','_handleOnline','call','_commandDisposable','_injector','_unitID','extend','shouldShareOperation','_handleNewChangeSets','tag','init','symbol','asObservable','Start\x20following','evenodd','stopFollowing','children','createInstance','2366904pzfceq','_liveShareService','_init','124118AZunyj','1865143cSYIID','You\x27re\x20not\x20following\x20the\x20presenter','LIVESHARE_FETCH_OPERATIONS','div','type','_uiPartsService','svg','sheet','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','send','assign','OPERATION','requireSession','PRESENTING','_reporters','onCommandExecuted','getConfig','6099594rimrZD','NEW_CHANGESETS','prototype','mutations','trim','idle','status$','executeCommand','sessionStatus$','getTypeOfUnitDisposed$','_startLiveShareCoordinator','Stop\x20following','next','not-following','get','getUnitId','onStarting','_stopFollowing','ONLINE','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','_sharedOperations','reverse','dispose','_status$','params','pipe','current','memberID','_mountLiveShare','subscribe','univer-mb-3\x20univer-w-full\x20univer-text-sm','3736335jXDOvA','delete','OFFLINE','following','path','fill','UNIVER_LIVE_SHARE_PLUGIN','1em','NOT_FOLLOWING','LIVESHARE_NEW_HOST','_handleTerminate','1040520mEeWcS','complete','find','string','forEach','4488201BmslUm','operations','values','LIVESHARE_OPERATION','24baDhpI','presenting','none','getCurrentTypeOfUnit$','getInitialStates','_startFollowing','UNIVER_UNKNOWN','_configService','_startPresenting','concat','url(#$1','live-share.config','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_handleOffline','SAME_OPERATION_SHARE_INTERVAL','dispose$','mask','Start','HEADER_MENU','xlink:href','10ZmokdP','_config','_collabSession','button','_univerInstanceService','LIVESHARE_REQUEST_HOST','colorChannel1','getOwnPropertySymbols','LIVESHARE_TERMINATE','_entities','random','LiveShareIcon','_commandService'];_0x59da=function(){return _0x9b3a12;};return _0x59da();}I=je([T(0x0,_0x68914(_0x355540)),T(0x1,_0x5e9bd8)],I);const Ue=_0xf0588f(0x1d7),$={};var Ve=Object[_0xf0588f(0x1fc)],Me=(_0x412c5b,_0x577398,_0x5db069,_0x1669d9)=>{var _0x434d78=_0xf0588f;for(var _0x78cdf1=_0x1669d9>0x1?void 0x0:_0x1669d9?Ve(_0x577398,_0x5db069):_0x577398,_0x4e2c80=_0x412c5b[_0x434d78(0x1ed)]-0x1,_0x3878fc;_0x4e2c80>=0x0;_0x4e2c80--)(_0x3878fc=_0x412c5b[_0x4e2c80])&&(_0x78cdf1=_0x3878fc(_0x78cdf1)||_0x78cdf1);return _0x78cdf1;},ke=(_0xd3da10,_0x47f95c)=>(_0x1f8779,_0x2d0652)=>_0x47f95c(_0x1f8779,_0x2d0652,_0xd3da10);let b=class extends _0x10571d{constructor(_0x12ec11){var _0x49dade=_0xf0588f;super(),this[_0x49dade(0x185)]=_0x12ec11,this[_0x49dade(0x186)]();}['_init'](){var _0x4d3406=_0xf0588f;[_0x495ed0['id'],_0x5e8ec9['id'],_0xb98e3c['id']][_0x4d3406(0x1c7)](_0x2686fa=>{var _0x3e2268=_0x4d3406;this['disposeWithMe'](this[_0x3e2268(0x185)][_0x3e2268(0x15f)](_0x2686fa));});}};b=Me([ke(0x0,_0x68914(L))],b);var Ge=Object[_0xf0588f(0x1ef)],We=Object[_0xf0588f(0x1fc)],Ye=(_0x294a42,_0x4d88ce,_0x557ad8)=>_0x4d88ce in _0x294a42?Ge(_0x294a42,_0x4d88ce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x557ad8}):_0x294a42[_0x4d88ce]=_0x557ad8,Be=(_0x3bfbf3,_0x458cc6,_0x2d7616,_0x2b64db)=>{for(var _0x3b8d3a=_0x2b64db>0x1?void 0x0:_0x2b64db?We(_0x458cc6,_0x2d7616):_0x458cc6,_0x1b87d6=_0x3bfbf3['length']-0x1,_0x556736;_0x1b87d6>=0x0;_0x1b87d6--)(_0x556736=_0x3bfbf3[_0x1b87d6])&&(_0x3b8d3a=_0x556736(_0x3b8d3a)||_0x3b8d3a);return _0x3b8d3a;},F=(_0x3e3f93,_0x165f8e)=>(_0x1b2470,_0x20e357)=>_0x165f8e(_0x1b2470,_0x20e357,_0x3e3f93),J=(_0x22b303,_0x14477d,_0x28500d)=>Ye(_0x22b303,typeof _0x14477d!=_0xf0588f(0x17d)?_0x14477d+'':_0x14477d,_0x28500d);const Ze=_0xf0588f(0x1be);let O=class extends _0x519c08{constructor(_0x2033a2=$,_0x5812ce,_0x11e615){var _0x20f6e7=_0xf0588f;super(),this[_0x20f6e7(0x1e1)]=_0x2033a2,this[_0x20f6e7(0x176)]=_0x5812ce,this['_configService']=_0x11e615;const {..._0x596504}=_0x252811({},$,this[_0x20f6e7(0x1e1)]);this[_0x20f6e7(0x1d3)][_0x20f6e7(0x16a)](Ue,_0x596504);}[_0xf0588f(0x1a9)](){var _0x26a411=_0xf0588f;_0x1cfa1f(this[_0x26a411(0x176)],_0x4cfe19([[L],[m],[b],[I]],this[_0x26a411(0x1e1)]['override'])),_0x4e427e(this[_0x26a411(0x176)],[[b]]);}['onRendered'](){var _0x43d906=_0xf0588f;_0x4e427e(this[_0x43d906(0x176)],[[I]]);}};J(O,'type',_0x4c3c61[_0xf0588f(0x1d2)]),J(O,_0xf0588f(0x157),Ze),O=Be([_0x9fac4b(_0x29d85d),F(0x1,_0x68914(_0x355540)),F(0x2,_0x2c88fb)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x35f5(_0x27b577,_0x5e1625){var _0x1a211f=_0x1a21();return _0x35f5=function(_0x35f51b,_0x26fee3){_0x35f51b=_0x35f51b-0x16c;var _0x13145c=_0x1a211f[_0x35f51b];return _0x13145c;},_0x35f5(_0x27b577,_0x5e1625);}function _0x1a21(){var _0x2e363e=['onCommandExecuted','_entities','evenodd','xlink:href','useDependency','data','univer-mb-3\x20univer-w-full\x20univer-text-sm','You\x27re\x20presenting\x20the\x20document','map','6558lOMnXA','length','getOwnPropertySymbols','UniverProCollaborationClient','_status','LiveShareController','pipe','http://www.w3.org/2000/svg','offline','rxjs','395LtxNoI','includes','_startLiveShareCoordinator','Start','Subject','_startFollowing','_init','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','setConfig','live-share.config','string','toDisposable','prototype','end','presenting','merge','Stop\x20following','useState','following','1em','unsubscribe','operations','_beIdle','asObservable','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','reverse','RxDisposable','status$','symbol','ICommandService','You\x27re\x20following\x20the\x20presenter','LiveShareCoordinator','OPERATION','CollaborationEvent','send','UniverInstanceType','next','@univerjs/sheets-ui','DesktopLiveShareController','stopPresenting','@univerjs/core','DisposableCollection','OFFLINE','getOwnPropertyDescriptor','UniverCollaborationClientPlugin','Stop\x20presenting','_uiPartsService','univer-size-4','SetWorksheetActiveOperation','unitId','28084pzSFKH','_configService','getUnitId','throttleTime','exports','getConfig','set','HEADER_MENU','Injector','getLiveShareCoordinator','useRef','_handleTerminate','Plugin','forEach','indexOf','complete','add','_handleOnline','clear','delete','takeUntil','subscribe','fill','path','colorChannel1','LIVESHARE_NEW_HOST','createElement','type','getInitialStates','div','random','stringify','dispose$','clsx','live-share-icon','_collabSessionService','UniverProLiveShare','presenter','LIVESHARE_TERMINATE','_mountLiveShare','1394862OIGghv','jsxs','@univerjs-pro/collaboration-client','tryStartPresenting','idSuffix','IUniverInstanceService','function','You\x27are\x20offline.','substring','assign','158eECYSk','UniverSheetsUi','has','@univerjs-pro/collaboration','_stopFollowing','from','trim','LIVESHARE_OPERATION','mutations','defIds','IUIPartsService','_reporters','UniverSheets','_handleOperation','SessionStatus','displayName','Module','UniverProCollaboration','FOLLOWING','Inject','UNIVER_LIVE_SHARE_PLUGIN','current','4280344SpbksC','idle','LiveShareIcon','UniverUi','sheet','executeCommand','LiveShareService','touchDependencies','LIVESHARE_FETCH_OPERATIONS','params','stopFollowing','_collabSession','@univerjs/sheets','Start\x20following','UniverDesign','startFollowing','IConfigService','registerSharedOperation','values','_commandDisposable','button','useEffect','_handleOffline','icon','_startPresenting','shouldShareOperation','propertyIsEnumerable','getMemberID','operators','LIVESHARE_REQUEST_HOST','concat','not-following','_commandService','Button','LiveShareStatus','NOT_FOLLOWING','CommandType','jsx','sessionStatus$','parseProtocolChangeset','children','_sharedOperations','pluginName','replace','then','UNIVER_SHEET','defineProperty','IDLE','event$','mask','React','disposeWithMe','init','dispose','_stopPresenting','requireSession','_unitID','attrs','_presenter','UniverCore','3185532BdhEYp','16026SjtZKL','toString','40905ItFTri','call','Dropdown','find','getTypeOfUnitDisposed$','_univerInstanceService','react/jsx-runtime','url(#$1','UNIVER_UNKNOWN','entries','Disposable','SetZoomRatioOperation','_fetchOperations','UniverLiveSharePlugin','_liveShareService','memberID','Fragment','react','className','apply','_injector','currentColor','_config','You\x27re\x20not\x20following\x20the\x20presenter','tag','PRESENTING','_status$','text','_handleNewChangeSets','defs','hasOwnProperty','svg','get','extend','DependentOn','onRendered','@univerjs/design','toStringTag','useObservable','univerjs-icon\x20univerjs-icon-','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'];_0x1a21=function(){return _0x2e363e;};return _0x1a21();}(function(_0x1c6a10,_0x192483){var _0x1c150e=_0x35f5,_0x278745=_0x1c6a10();while(!![]){try{var _0x39c015=parseInt(_0x1c150e(0x1e9))/0x1*(parseInt(_0x1c150e(0x17b))/0x2)+-parseInt(_0x1c150e(0x23e))/0x3+parseInt(_0x1c150e(0x1b7))/0x4+parseInt(_0x1c150e(0x185))/0x5*(-parseInt(_0x1c150e(0x23c))/0x6)+parseInt(_0x1c150e(0x1df))/0x7+-parseInt(_0x1c150e(0x1ff))/0x8+parseInt(_0x1c150e(0x23b))/0x9;if(_0x39c015===_0x192483)break;else _0x278745['push'](_0x278745['shift']());}catch(_0xcc65f9){_0x278745['push'](_0x278745['shift']());}}}(_0x1a21,0x4dca6),function(_0x2bb03e,_0x2548ed){var _0x4bd760=_0x35f5;typeof exports=='object'&&typeof module<'u'?_0x2548ed(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x4bd760(0x1e5)&&define['amd']?define([_0x4bd760(0x1bb),_0x4bd760(0x1ad),'@univerjs/ui',_0x4bd760(0x244),_0x4bd760(0x16d),_0x4bd760(0x24f),_0x4bd760(0x1ec),_0x4bd760(0x1e1),_0x4bd760(0x20b),_0x4bd760(0x184),'rxjs/operators',_0x4bd760(0x1aa)],_0x2548ed):(_0x2bb03e=typeof globalThis<'u'?globalThis:_0x2bb03e||self,_0x2548ed(_0x2bb03e[_0x4bd760(0x1db)]={},_0x2bb03e[_0x4bd760(0x23a)],_0x2bb03e[_0x4bd760(0x202)],_0x2bb03e[_0x4bd760(0x231)],_0x2bb03e[_0x4bd760(0x20d)],_0x2bb03e[_0x4bd760(0x231)],_0x2bb03e[_0x4bd760(0x1fa)],_0x2bb03e[_0x4bd760(0x17e)],_0x2bb03e[_0x4bd760(0x1f5)],_0x2bb03e['rxjs'],_0x2bb03e[_0x4bd760(0x184)][_0x4bd760(0x21b)],_0x2bb03e[_0x4bd760(0x1ea)]));}(this,function(_0x35c637,_0x2433fe,_0x128089,_0x1d817d,_0x4afb63,_0x1d00fa,_0x3e4896,_0xbe5ad3,_0x554ddb,_0x300f9e,_0xa71d89,_0x435b76){'use strict';var _0x178a4e=_0x35f5;var _0x411cb0=Object[_0x178a4e(0x22d)],_0x2c7813=(_0x539788,_0xbfe14,_0x16739f)=>_0xbfe14 in _0x539788?_0x411cb0(_0x539788,_0xbfe14,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16739f}):_0x539788[_0xbfe14]=_0x16739f,_0x48cef1=(_0x1ee9f7,_0x490e20,_0x3c1b5e)=>_0x2c7813(_0x1ee9f7,typeof _0x490e20!=_0x178a4e(0x1a1)?_0x490e20+'':_0x490e20,_0x3c1b5e),_0xef4251=function(){var _0x5b895a=_0x178a4e;return _0xef4251=Object['assign']||function(_0x4e503e){var _0x2ae957=_0x35f5;for(var _0x3c1293,_0xffa5ea=0x1,_0x5ba6ca=arguments[_0x2ae957(0x17c)];_0xffa5ea<_0x5ba6ca;_0xffa5ea++){_0x3c1293=arguments[_0xffa5ea];for(var _0x1f7f33 in _0x3c1293)Object[_0x2ae957(0x191)][_0x2ae957(0x25c)]['call'](_0x3c1293,_0x1f7f33)&&(_0x4e503e[_0x1f7f33]=_0x3c1293[_0x1f7f33]);}return _0x4e503e;},_0xef4251[_0x5b895a(0x251)](this,arguments);},_0xc72b17=function(_0x4ddab8,_0x2f12b3){var _0x329649=_0x178a4e,_0x30ad91={};for(var _0x3b3c91 in _0x4ddab8)Object[_0x329649(0x191)][_0x329649(0x25c)][_0x329649(0x23f)](_0x4ddab8,_0x3b3c91)&&_0x2f12b3[_0x329649(0x1c5)](_0x3b3c91)<0x0&&(_0x30ad91[_0x3b3c91]=_0x4ddab8[_0x3b3c91]);if(_0x4ddab8!=null&&typeof Object[_0x329649(0x17d)]==_0x329649(0x1e5)){for(var _0x5a814c=0x0,_0x3b3c91=Object[_0x329649(0x17d)](_0x4ddab8);_0x5a814c<_0x3b3c91['length'];_0x5a814c++)_0x2f12b3[_0x329649(0x1c5)](_0x3b3c91[_0x5a814c])<0x0&&Object[_0x329649(0x191)][_0x329649(0x219)][_0x329649(0x23f)](_0x4ddab8,_0x3b3c91[_0x5a814c])&&(_0x30ad91[_0x3b3c91[_0x5a814c]]=_0x4ddab8[_0x3b3c91[_0x5a814c]]);}return _0x30ad91;},_0x32405c=_0x1d00fa['forwardRef'](function(_0x2e1f6f,_0x157d11){var _0x46c436=_0x178a4e,_0x40d87d=_0x2e1f6f[_0x46c436(0x216)],_0x130052=_0x2e1f6f['id'],_0x1f45ed=_0x2e1f6f[_0x46c436(0x250)],_0x5093cb=_0x2e1f6f[_0x46c436(0x25f)],_0x4661d1=_0xc72b17(_0x2e1f6f,[_0x46c436(0x216),'id','className',_0x46c436(0x25f)]),_0x432108=_0x46c436(0x170)[_0x46c436(0x21d)](_0x130052,'\x20')[_0x46c436(0x21d)](_0x1f45ed||'')[_0x46c436(0x1ef)](),_0x3b2c1f=_0x1d00fa[_0x46c436(0x1c1)]('_'[_0x46c436(0x21d)](_0x338e39()));return _0x4198a2(_0x40d87d,''[_0x46c436(0x21d)](_0x130052),{'defIds':_0x40d87d[_0x46c436(0x1f2)],'idSuffix':_0x3b2c1f[_0x46c436(0x1fe)]},_0xef4251({'ref':_0x157d11,'className':_0x432108},_0x4661d1),_0x5093cb);});function _0x4198a2(_0x49b77b,_0x473025,_0x25c03c,_0x3ce762,_0x2fbd84){var _0x40c24d=_0x178a4e;return _0x1d00fa[_0x40c24d(0x1d1)](_0x49b77b[_0x40c24d(0x256)],_0xef4251(_0xef4251({'key':_0x473025},_0x537942(_0x49b77b,_0x25c03c,_0x2fbd84)),_0x3ce762),(_0x2635f0(_0x49b77b,_0x25c03c)[_0x40c24d(0x227)]||[])[_0x40c24d(0x17a)](function(_0x4e9780,_0x23e9bd){var _0x33178f=_0x40c24d;return _0x4198a2(_0x4e9780,''['concat'](_0x473025,'-')['concat'](_0x49b77b[_0x33178f(0x256)],'-')[_0x33178f(0x21d)](_0x23e9bd),_0x25c03c,void 0x0,_0x2fbd84);}));}function _0x537942(_0x5dddbc,_0x9401dc,_0x3d9729){var _0x308b25=_0x178a4e,_0x3827d2=_0xef4251({},_0x5dddbc[_0x308b25(0x238)]);_0x3d9729!=null&&_0x3d9729[_0x308b25(0x1cf)]&&_0x3827d2[_0x308b25(0x1cd)]===_0x308b25(0x1cf)&&(_0x3827d2[_0x308b25(0x1cd)]=_0x3d9729['colorChannel1']),_0x5dddbc[_0x308b25(0x256)]===_0x308b25(0x230)&&_0x3827d2['id']&&(_0x3827d2['id']=_0x3827d2['id']+_0x9401dc[_0x308b25(0x1e3)]),Object[_0x308b25(0x247)](_0x3827d2)[_0x308b25(0x1c4)](function(_0x238017){var _0x5f40fa=_0x308b25,_0x5d9807=_0x238017[0x0],_0x98c28=_0x238017[0x1];_0x5d9807===_0x5f40fa(0x230)&&typeof _0x98c28==_0x5f40fa(0x18f)&&(_0x3827d2[_0x5d9807]=_0x98c28[_0x5f40fa(0x22a)](/url\(#(.*)\)/,_0x5f40fa(0x245)[_0x5f40fa(0x21d)](_0x9401dc[_0x5f40fa(0x1e3)],')')));});var _0x1f02c1=_0x9401dc[_0x308b25(0x1f2)];return!_0x1f02c1||_0x1f02c1['length']===0x0||(_0x5dddbc[_0x308b25(0x256)]==='use'&&_0x3827d2[_0x308b25(0x175)]&&(_0x3827d2['xlink:href']=_0x3827d2['xlink:href']+_0x9401dc[_0x308b25(0x1e3)]),Object[_0x308b25(0x247)](_0x3827d2)[_0x308b25(0x1c4)](function(_0x34e411){var _0x178476=_0x308b25,_0x305b7b=_0x34e411[0x0],_0x4aaf97=_0x34e411[0x1];typeof _0x4aaf97==_0x178476(0x18f)&&(_0x3827d2[_0x305b7b]=_0x4aaf97['replace'](/url\(#(.*)\)/,_0x178476(0x245)[_0x178476(0x21d)](_0x9401dc[_0x178476(0x1e3)],')')));})),_0x3827d2;}function _0x2635f0(_0x99052a,_0x17e1cf){var _0x230515=_0x178a4e,_0x6419e0,_0x216924=_0x17e1cf[_0x230515(0x1f2)];return!_0x216924||_0x216924[_0x230515(0x17c)]===0x0?_0x99052a:_0x99052a[_0x230515(0x256)]===_0x230515(0x25b)&&(!((_0x6419e0=_0x99052a[_0x230515(0x227)])===null||_0x6419e0===void 0x0)&&_0x6419e0[_0x230515(0x17c)])?_0xef4251(_0xef4251({},_0x99052a),{'children':_0x99052a['children'][_0x230515(0x17a)](function(_0x1ce9d3){var _0x513f3b=_0x230515;return typeof _0x1ce9d3[_0x513f3b(0x238)]['id']==_0x513f3b(0x18f)&&_0x216924&&_0x216924[_0x513f3b(0x186)](_0x1ce9d3['attrs']['id'])?_0xef4251(_0xef4251({},_0x1ce9d3),{'attrs':_0xef4251(_0xef4251({},_0x1ce9d3['attrs']),{'id':_0x1ce9d3[_0x513f3b(0x238)]['id']+_0x17e1cf[_0x513f3b(0x1e3)]})}):_0x1ce9d3;})}):_0x99052a;}function _0x338e39(){var _0x342f1f=_0x178a4e;return Math[_0x342f1f(0x1d5)]()[_0x342f1f(0x23d)](0x24)[_0x342f1f(0x1e7)](0x2,0x8);}_0x32405c['displayName']='UniverIcon';var _0x1c77d8={'tag':_0x178a4e(0x25d),'attrs':{'xmlns':_0x178a4e(0x182),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x178a4e(0x198),'height':_0x178a4e(0x198)},'children':[{'tag':'path','attrs':{'fill':_0x178a4e(0x253),'d':_0x178a4e(0x171)}},{'tag':_0x178a4e(0x1ce),'attrs':{'fill':_0x178a4e(0x253),'d':_0x178a4e(0x19d),'fillRule':_0x178a4e(0x174),'clipRule':_0x178a4e(0x174)}}]},_0x584e6d=_0x1d00fa['forwardRef'](function(_0xf9a2c8,_0x28c218){var _0x9b5f6e=_0x178a4e;return _0x1d00fa['createElement'](_0x32405c,Object[_0x9b5f6e(0x1e8)]({},_0xf9a2c8,{'id':_0x9b5f6e(0x1d9),'ref':_0x28c218,'icon':_0x1c77d8}));});_0x584e6d[_0x178a4e(0x1f8)]=_0x178a4e(0x201);class _0x2a2039 extends _0x2433fe[_0x178a4e(0x248)]{constructor(){var _0x1f6d89=_0x178a4e;super(...arguments),_0x48cef1(this,_0x1f6d89(0x228),new Set()),_0x48cef1(this,'_reporters',new Set());}[_0x178a4e(0x210)](_0x556e9e){var _0x56c008=_0x178a4e;return this[_0x56c008(0x228)]['add'](_0x556e9e),_0x2433fe['toDisposable'](()=>this['_sharedOperations'][_0x56c008(0x1ca)](_0x556e9e));}['registerInitialStateReporter'](_0x2ca292){var _0x194415=_0x178a4e;return this[_0x194415(0x1f4)][_0x194415(0x1c7)](_0x2ca292),_0x2433fe[_0x194415(0x190)](()=>this[_0x194415(0x1f4)][_0x194415(0x1ca)](_0x2ca292));}[_0x178a4e(0x218)](_0x55f7f7){var _0x3edff1=_0x178a4e;return this[_0x3edff1(0x228)]['has'](_0x55f7f7);}[_0x178a4e(0x1d3)](_0x3a1752){var _0x1dd3d4=_0x178a4e;return Array[_0x1dd3d4(0x1ee)](this['_reporters'])[_0x1dd3d4(0x17a)](_0x3d5543=>_0x3d5543(_0x3a1752));}}var _0x267b06=Object['getOwnPropertyDescriptor'],_0x3a41a0=(_0x1feec6,_0x6828e7,_0x5e9118,_0x41b540)=>{for(var _0x1288ff=_0x41b540>0x1?void 0x0:_0x41b540?_0x267b06(_0x6828e7,_0x5e9118):_0x6828e7,_0x3191c2=_0x1feec6['length']-0x1,_0xec425d;_0x3191c2>=0x0;_0x3191c2--)(_0xec425d=_0x1feec6[_0x3191c2])&&(_0x1288ff=_0xec425d(_0x1288ff)||_0x1288ff);return _0x1288ff;},_0x25823e=(_0x562ac6,_0xe435c4)=>(_0x448e85,_0x376454)=>_0xe435c4(_0x448e85,_0x376454,_0x562ac6);_0x35c637[_0x178a4e(0x180)]=class extends _0x2433fe[_0x178a4e(0x19f)]{constructor(_0x415d86,_0x1f18d9,_0x41ed5f){var _0x5245ea=_0x178a4e;super(),_0x48cef1(this,_0x5245ea(0x173),new Map()),(this[_0x5245ea(0x243)]=_0x415d86,this['_injector']=_0x1f18d9,this[_0x5245ea(0x1da)]=_0x41ed5f,this['_init']());}async[_0x178a4e(0x1c0)](_0x2af20d){var _0x473461=_0x178a4e;return this[_0x473461(0x173)][_0x473461(0x1eb)](_0x2af20d)||await this['_startLiveShareCoordinator'](_0x2af20d),this[_0x473461(0x173)][_0x473461(0x25e)](_0x2af20d);}['_init'](){var _0xb48da9=_0x178a4e;this[_0xb48da9(0x243)]['getTypeOfUnitAdded$'](_0x2433fe['UniverInstanceType'][_0xb48da9(0x22c)])[_0xb48da9(0x181)](_0xa71d89[_0xb48da9(0x1cb)](this[_0xb48da9(0x1d7)]))[_0xb48da9(0x1cc)](async _0x5621e1=>{var _0x528ebe=_0xb48da9;const _0x3e0a0f=_0x5621e1[_0x528ebe(0x1b9)]();this[_0x528ebe(0x173)][_0x528ebe(0x1eb)](_0x3e0a0f)||this['_startLiveShareCoordinator'](_0x3e0a0f);}),this[_0xb48da9(0x243)][_0xb48da9(0x242)](_0x2433fe[_0xb48da9(0x1a8)]['UNIVER_SHEET'])[_0xb48da9(0x181)](_0xa71d89[_0xb48da9(0x1cb)](this[_0xb48da9(0x1d7)]))[_0xb48da9(0x1cc)](_0x585e07=>{var _0x2d7abc=_0xb48da9;const _0x4a4fcb=_0x585e07[_0x2d7abc(0x1b9)](),_0x140114=this[_0x2d7abc(0x173)][_0x2d7abc(0x25e)](_0x4a4fcb);_0x140114==null||_0x140114[_0x2d7abc(0x234)]();});}async[_0x178a4e(0x187)](_0x5078e6){var _0x412972=_0x178a4e;const _0x57745a=await this[_0x412972(0x1da)][_0x412972(0x236)](_0x5078e6),_0x29e82a=this['_injector']['createInstance'](_0x35c637[_0x412972(0x1a4)],_0x5078e6,_0x57745a);return _0x29e82a['init'](),this[_0x412972(0x173)][_0x412972(0x1bd)](_0x5078e6,_0x29e82a),_0x29e82a;}},_0x35c637[_0x178a4e(0x180)]=_0x3a41a0([_0x25823e(0x0,_0x2433fe[_0x178a4e(0x1e4)]),_0x25823e(0x1,_0x2433fe[_0x178a4e(0x1fc)](_0x2433fe[_0x178a4e(0x1bf)])),_0x25823e(0x2,_0x2433fe[_0x178a4e(0x1fc)](_0xbe5ad3['CollaborationSessionService']))],_0x35c637['LiveShareController']);var _0xfaf0d7=(_0x5ac4b3=>(_0x5ac4b3['OFFLINE']=_0x178a4e(0x183),_0x5ac4b3[_0x178a4e(0x22e)]='idle',_0x5ac4b3[_0x178a4e(0x1fb)]=_0x178a4e(0x197),_0x5ac4b3[_0x178a4e(0x222)]=_0x178a4e(0x21e),_0x5ac4b3[_0x178a4e(0x257)]=_0x178a4e(0x193),_0x5ac4b3))(_0xfaf0d7||{});const _0x3e3439='SAME_OPERATION_SHARE_INTERVAL',_0x2f7ae2=0xc8;_0x35c637[_0x178a4e(0x1a4)]=class extends _0x2433fe[_0x178a4e(0x19f)]{constructor(_0x31713f,_0x7105c1,_0x13e205,_0xdb7278,_0x1312ba){var _0x15c186=_0x178a4e;super(),_0x48cef1(this,'_status$',new _0x300f9e['BehaviorSubject']('idle')),_0x48cef1(this,_0x15c186(0x1a0),this[_0x15c186(0x258)][_0x15c186(0x19c)]()),_0x48cef1(this,_0x15c186(0x18b),!0x1),_0x48cef1(this,_0x15c186(0x212),null),_0x48cef1(this,'_presenter',null),(this[_0x15c186(0x237)]=_0x31713f,this[_0x15c186(0x20a)]=_0x7105c1,this[_0x15c186(0x1b8)]=_0x13e205,this['_liveShareService']=_0xdb7278,this[_0x15c186(0x21f)]=_0x1312ba);}get[_0x178a4e(0x17f)](){var _0x51ad0c=_0x178a4e;return this[_0x51ad0c(0x258)]['getValue']();}['dispose'](){var _0x4273d4=_0x178a4e,_0x1d108b;(_0x1d108b=this[_0x4273d4(0x212)])==null||_0x1d108b[_0x4273d4(0x234)](),this[_0x4273d4(0x258)]['next'](_0x4273d4(0x200)),this['_status$'][_0x4273d4(0x1c6)]();}[_0x178a4e(0x233)](){var _0x2c4a80=_0x178a4e;this['_init']||(this[_0x2c4a80(0x18b)]=!0x0,this[_0x2c4a80(0x20a)][_0x2c4a80(0x225)][_0x2c4a80(0x181)](_0xa71d89[_0x2c4a80(0x1cb)](this[_0x2c4a80(0x1d7)]))[_0x2c4a80(0x1cc)](_0x27fc8e=>{var _0xf60465=_0x2c4a80;switch(_0x27fc8e){case _0xbe5ad3[_0xf60465(0x1f7)]['OFFLINE']:this['_handleOffline']();break;case _0xbe5ad3[_0xf60465(0x1f7)]['ONLINE']:this[_0xf60465(0x1c8)]();break;}}),this[_0x2c4a80(0x20a)][_0x2c4a80(0x22f)][_0x2c4a80(0x181)](_0xa71d89[_0x2c4a80(0x1cb)](this['dispose$']))[_0x2c4a80(0x1cc)](_0x37d962=>{var _0x170c37=_0x2c4a80;const {eventID:_0x364334}=_0x37d962;switch(_0x364334){case _0x3e4896['CollaborationEvent'][_0x170c37(0x1d0)]:this['_handleNewHost'](_0x37d962);break;case _0x3e4896['CollaborationEvent'][_0x170c37(0x1f0)]:this['_handleOperation'](_0x37d962);break;case _0x3e4896['CollaborationEvent'][_0x170c37(0x1dd)]:this[_0x170c37(0x1c2)]();break;case _0x3e4896['CollaborationEvent']['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x37d962);break;}}));}[_0x178a4e(0x1e2)](){var _0x5bc8b8=_0x178a4e;this[_0x5bc8b8(0x20a)][_0x5bc8b8(0x1a7)]({'eventID':_0x3e4896[_0x5bc8b8(0x1a6)][_0x5bc8b8(0x21c)],'data':{'unitID':this[_0x5bc8b8(0x237)],'userID':this[_0x5bc8b8(0x20a)][_0x5bc8b8(0x21a)]()}},this[_0x5bc8b8(0x237)]);}[_0x178a4e(0x1ac)](){var _0x4ab786=_0x178a4e;this[_0x4ab786(0x17f)]===_0x4ab786(0x193)&&(this['_status$']['next'](_0x4ab786(0x200)),this[_0x4ab786(0x20a)][_0x4ab786(0x1a7)]({'eventID':_0x3e4896[_0x4ab786(0x1a6)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x4ab786(0x237)]}},this[_0x4ab786(0x237)]));}[_0x178a4e(0x20e)](){var _0x5411bb=_0x178a4e;this[_0x5411bb(0x17f)]===_0x5411bb(0x21e)&&(this[_0x5411bb(0x258)][_0x5411bb(0x1a9)](_0x5411bb(0x197)),this['_startFollowing']());}[_0x178a4e(0x209)](){var _0x38ac15=_0x178a4e;this[_0x38ac15(0x17f)]===_0x38ac15(0x197)&&this[_0x38ac15(0x1ed)]();}['_handleNewHost'](_0x304fe4){var _0x3a6c8c=_0x178a4e;const {presenter:_0x34dae4}=_0x304fe4[_0x3a6c8c(0x177)],_0x5b00aa=this['_collabSession'][_0x3a6c8c(0x21a)]();this[_0x3a6c8c(0x239)]=_0x34dae4,_0x34dae4===_0x5b00aa?(this[_0x3a6c8c(0x1ed)](),this['_startPresenting']()):this[_0x3a6c8c(0x17f)]!=='not-following'&&(this[_0x3a6c8c(0x235)](),this[_0x3a6c8c(0x18a)]());}[_0x178a4e(0x24a)](){var _0xc345b7=_0x178a4e;const _0x19b00a={'eventID':_0x3e4896[_0xc345b7(0x1a6)][_0xc345b7(0x207)]};this[_0xc345b7(0x20a)][_0xc345b7(0x1a7)](_0x19b00a,this['_unitID']);}[_0x178a4e(0x1c2)](){var _0x374492=_0x178a4e;this['_presenter']=null,this[_0x374492(0x17f)]!==_0x374492(0x193)&&this[_0x374492(0x19b)]();}[_0x178a4e(0x25a)](_0x4c91a2){var _0x2b884e=_0x178a4e;if(this[_0x2b884e(0x17f)]===_0x2b884e(0x197)&&this['_presenter']===_0x4c91a2[_0x2b884e(0x177)][_0x2b884e(0x24d)]){const _0x48debe=_0x3e4896[_0x2b884e(0x226)](_0x4c91a2[_0x2b884e(0x177)])[_0x2b884e(0x1f1)][_0x2b884e(0x19e)]()[_0x2b884e(0x241)](_0x19bfe6=>_0x19bfe6['id']===_0x554ddb['InsertSheetMutation']['id']);if(_0x48debe){const _0x558cef=_0x48debe['params'][_0x2b884e(0x1b6)],_0xeb1bf6=_0x48debe['params'][_0x2b884e(0x203)]['id'];setTimeout(()=>{var _0x2a3abc=_0x2b884e;this[_0x2a3abc(0x21f)][_0x2a3abc(0x204)](_0x554ddb['SetWorksheetActiveOperation']['id'],{'unitId':_0x558cef,'subUnitId':_0xeb1bf6},{'fromCollab':!0x0});});}}}[_0x178a4e(0x217)](){var _0x34f900=_0x178a4e;this[_0x34f900(0x258)]['next'](_0x34f900(0x193));const _0x50ecbc=new Map(),_0x27846b=this[_0x34f900(0x212)]=new _0x2433fe[(_0x34f900(0x1ae))]();_0x27846b[_0x34f900(0x1c7)](_0x2433fe[_0x34f900(0x190)](()=>{var _0x328594=_0x34f900;_0x50ecbc['forEach'](_0x53773d=>_0x53773d[_0x328594(0x1c6)]()),_0x50ecbc[_0x328594(0x1c9)]();})),_0x27846b[_0x34f900(0x1c7)](this[_0x34f900(0x21f)][_0x34f900(0x172)](_0x1bf764=>{var _0x5a5f68=_0x34f900,_0x3dc2d9;if(_0x1bf764[_0x5a5f68(0x1d2)]!==_0x2433fe[_0x5a5f68(0x223)][_0x5a5f68(0x1a5)]||!this[_0x5a5f68(0x24c)][_0x5a5f68(0x218)](_0x1bf764['id']))return;const {id:_0x4c8740}=_0x1bf764;let _0x7541a6;_0x50ecbc['has'](_0x4c8740)?_0x7541a6=_0x50ecbc[_0x5a5f68(0x25e)](_0x4c8740):(_0x7541a6=new _0x300f9e[(_0x5a5f68(0x189))](),_0x50ecbc[_0x5a5f68(0x1bd)](_0x4c8740,_0x7541a6),_0x7541a6[_0x5a5f68(0x181)](_0xa71d89[_0x5a5f68(0x1ba)]((_0x3dc2d9=this['_configService'][_0x5a5f68(0x1bc)](_0x3e3439))!=null?_0x3dc2d9:_0x2f7ae2,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5a5f68(0x1cc)](_0x27cb21=>{var _0x12fe22=_0x5a5f68;this[_0x12fe22(0x20a)][_0x12fe22(0x1a7)]({'eventID':_0x3e4896[_0x12fe22(0x1a6)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x12fe22(0x237)],'operations':{[_0x27cb21['id']]:{'id':_0x27cb21['id'],'params':JSON[_0x12fe22(0x1d6)](_0x27cb21[_0x12fe22(0x208)])}}}},this[_0x12fe22(0x237)]);})),_0x7541a6[_0x5a5f68(0x1a9)](_0x1bf764);})),this[_0x34f900(0x24c)]['getInitialStates'](this[_0x34f900(0x237)])['forEach'](_0x5f48c4=>this['_collabSession'][_0x34f900(0x1a7)]({'eventID':_0x3e4896[_0x34f900(0x1a6)][_0x34f900(0x1f0)],'data':{'unitID':this[_0x34f900(0x237)],'operations':{[_0x5f48c4['id']]:{'id':_0x5f48c4['id'],'params':JSON[_0x34f900(0x1d6)](_0x5f48c4[_0x34f900(0x208)])}}}},this[_0x34f900(0x237)]));}[_0x178a4e(0x235)](){var _0x31e5ba=_0x178a4e,_0x1e46c9;this[_0x31e5ba(0x258)]['next'](_0x31e5ba(0x200)),(_0x1e46c9=this[_0x31e5ba(0x212)])==null||_0x1e46c9[_0x31e5ba(0x234)](),this[_0x31e5ba(0x212)]=null;}[_0x178a4e(0x18a)](){var _0x969817=_0x178a4e,_0x3cc2eb;(_0x3cc2eb=this[_0x969817(0x212)])==null||_0x3cc2eb['dispose'](),this[_0x969817(0x258)]['next'](_0x969817(0x197));}[_0x178a4e(0x19b)](){var _0x2df91e=_0x178a4e,_0x3341e3;this[_0x2df91e(0x258)][_0x2df91e(0x1a9)](_0x2df91e(0x200)),(_0x3341e3=this[_0x2df91e(0x212)])==null||_0x3341e3[_0x2df91e(0x234)](),this[_0x2df91e(0x212)]=null;}[_0x178a4e(0x1ed)](){var _0x213dcf=_0x178a4e,_0x465afb;this['_status$']['next'](_0x213dcf(0x21e)),(_0x465afb=this[_0x213dcf(0x212)])==null||_0x465afb[_0x213dcf(0x234)]();}[_0x178a4e(0x1f6)](_0x3c15f4){var _0x27ddb2=_0x178a4e;if(['presenting','not-following',_0x27ddb2(0x183)][_0x27ddb2(0x186)](this['_status'])||!_0x3c15f4[_0x27ddb2(0x177)][_0x27ddb2(0x1dc)]||_0x3c15f4[_0x27ddb2(0x177)]['presenter']===this[_0x27ddb2(0x20a)][_0x27ddb2(0x21a)]())return;this[_0x27ddb2(0x17f)]===_0x27ddb2(0x200)&&this['_startFollowing']();const _0x9fa662=_0x3c15f4[_0x27ddb2(0x177)][_0x27ddb2(0x19a)];Object[_0x27ddb2(0x211)](_0x9fa662)[_0x27ddb2(0x1c4)](_0x51e101=>{var _0x1b8f0c=_0x27ddb2;this[_0x1b8f0c(0x21f)][_0x1b8f0c(0x204)](_0x51e101['id'],_0x51e101[_0x1b8f0c(0x208)]?JSON['parse'](_0x51e101[_0x1b8f0c(0x208)]):null,{'fromCollab':!0x0});});}[_0x178a4e(0x215)](){var _0x1e4aac=_0x178a4e,_0x18ec65;this['_status$']['next']('offline'),(_0x18ec65=this['_commandDisposable'])==null||_0x18ec65[_0x1e4aac(0x234)]();}[_0x178a4e(0x1c8)](){var _0x41f412=_0x178a4e;this['_status$'][_0x41f412(0x1a9)]('idle'),this[_0x41f412(0x24a)]();}},_0x35c637[_0x178a4e(0x1a4)]=_0x3a41a0([_0x25823e(0x2,_0x2433fe['IConfigService']),_0x25823e(0x3,_0x2433fe['Inject'](_0x2a2039)),_0x25823e(0x4,_0x2433fe[_0x178a4e(0x1a2)])],_0x35c637['LiveShareCoordinator']);function _0x18b7e5(){var _0x30381c=_0x178a4e;const _0xa1b34=_0x128089[_0x30381c(0x176)](_0x35c637[_0x30381c(0x180)]),_0x5e0760=_0x128089[_0x30381c(0x176)](_0x2433fe[_0x30381c(0x1e4)]),_0x2eccc1=_0x128089[_0x30381c(0x16f)](()=>_0x5e0760['getCurrentTypeOfUnit$'](_0x2433fe['UniverInstanceType'][_0x30381c(0x22c)]),void 0x0,!0x1,[]),[_0x22d84e,_0x1bd1c8]=_0x1d00fa[_0x30381c(0x196)](null),[_0x6152c5,_0x5bfdad]=_0x1d00fa[_0x30381c(0x196)](_0xfaf0d7['IDLE']),_0x7c618b=_0x1d00fa[_0x30381c(0x1c1)](null);return _0x1d00fa[_0x30381c(0x214)](()=>(_0x2eccc1&&_0xa1b34['getLiveShareCoordinator'](_0x2eccc1[_0x30381c(0x1b9)]())[_0x30381c(0x22b)](_0x4bead1=>{var _0x67a1b0=_0x30381c;_0x1bd1c8(_0x4bead1),_0x7c618b[_0x67a1b0(0x1fe)]=_0x4bead1[_0x67a1b0(0x1a0)][_0x67a1b0(0x1cc)](_0x12a29b=>{_0x5bfdad(_0x12a29b);});}),()=>{var _0x2ace33=_0x30381c,_0x31c7a0;(_0x31c7a0=_0x7c618b[_0x2ace33(0x1fe)])==null||_0x31c7a0[_0x2ace33(0x199)](),_0x7c618b[_0x2ace33(0x1fe)]=null;}),[_0x2eccc1,_0xa1b34]),_0x22d84e?_0x1d817d[_0x30381c(0x224)](_0x4afb63[_0x30381c(0x240)],{'align':_0x30381c(0x192),'disabled':_0x6152c5===_0xfaf0d7['OFFLINE'],'className':_0x30381c(0x18c),'overlay':_0x1d817d[_0x30381c(0x224)](_0x3ac5f1,{'status':_0x6152c5,'coordinator':_0x22d84e}),'children':_0x1d817d[_0x30381c(0x224)](_0x30381c(0x213),{'className':_0x4afb63[_0x30381c(0x1d8)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x6152c5===_0xfaf0d7[_0x30381c(0x1af)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x6152c5!==_0xfaf0d7[_0x30381c(0x1af)]}),'type':_0x30381c(0x213),'children':_0x1d817d[_0x30381c(0x224)](_0x584e6d,{'className':_0x30381c(0x1b4)})})}):null;}function _0x3ac5f1(_0x4923c9){var _0x39401f=_0x178a4e;const {status:_0x33985a,coordinator:_0xbc1145}=_0x4923c9;switch(_0x33985a){case _0xfaf0d7[_0x39401f(0x22e)]:return _0x1d817d['jsx'](_0xc7176b,{'coordinator':_0xbc1145});case _0xfaf0d7[_0x39401f(0x1fb)]:return _0x1d817d[_0x39401f(0x224)](_0x4041ec,{'coordinator':_0xbc1145});case _0xfaf0d7[_0x39401f(0x222)]:return _0x1d817d[_0x39401f(0x224)](_0x1a5853,{'coordinator':_0xbc1145});case _0xfaf0d7[_0x39401f(0x1af)]:return _0x1d817d[_0x39401f(0x224)](_0x2314ba,{});case _0xfaf0d7[_0x39401f(0x257)]:return _0x1d817d[_0x39401f(0x224)](_0x3ef30f,{'coordinator':_0xbc1145});default:return null;}}function _0xc7176b(_0x452b07){var _0x74ac6b=_0x178a4e;const {coordinator:_0x78d4b9}=_0x452b07;return _0x1d817d[_0x74ac6b(0x1e0)](_0x1d817d['Fragment'],{'children':[_0x1d817d[_0x74ac6b(0x224)](_0x74ac6b(0x1d4),{'className':_0x74ac6b(0x178),'children':'Present\x20this\x20document'}),_0x1d817d['jsx'](_0x4afb63[_0x74ac6b(0x220)],{'onClick':()=>_0x78d4b9[_0x74ac6b(0x1e2)](),'children':_0x74ac6b(0x188)})]});}function _0x4041ec(_0x40c20c){var _0x41eb33=_0x178a4e;const {coordinator:_0x1eea13}=_0x40c20c;return _0x1d817d[_0x41eb33(0x1e0)](_0x1d817d[_0x41eb33(0x24e)],{'children':[_0x1d817d[_0x41eb33(0x224)]('div',{'className':_0x41eb33(0x178),'children':_0x41eb33(0x1a3)}),_0x1d817d[_0x41eb33(0x224)](_0x4afb63[_0x41eb33(0x220)],{'onClick':()=>_0x1eea13[_0x41eb33(0x209)](),'children':_0x41eb33(0x195)})]});}function _0x1a5853(_0x477ce8){var _0x21931f=_0x178a4e;const {coordinator:_0x3ebcd1}=_0x477ce8;return _0x1d817d[_0x21931f(0x1e0)](_0x1d817d[_0x21931f(0x24e)],{'children':[_0x1d817d['jsx'](_0x21931f(0x1d4),{'className':_0x21931f(0x178),'children':_0x21931f(0x255)}),_0x1d817d[_0x21931f(0x224)](_0x4afb63[_0x21931f(0x220)],{'variant':_0x21931f(0x259),'onClick':()=>_0x3ebcd1['startFollowing'](),'children':_0x21931f(0x20c)})]});}function _0x3ef30f(_0xc8fe04){var _0x1f93ed=_0x178a4e;const {coordinator:_0x4bf6fc}=_0xc8fe04;return _0x1d817d['jsxs'](_0x1d817d[_0x1f93ed(0x24e)],{'children':[_0x1d817d['jsx']('div',{'className':_0x1f93ed(0x178),'children':_0x1f93ed(0x179)}),_0x1d817d['jsx'](_0x4afb63[_0x1f93ed(0x220)],{'variant':'default','onClick':()=>_0x4bf6fc['stopPresenting'](),'children':_0x1f93ed(0x1b2)})]});}function _0x2314ba(){var _0x4cce09=_0x178a4e;return _0x1d817d[_0x4cce09(0x224)](_0x1d817d['Fragment'],{'children':_0x4cce09(0x1e6)});}var _0x2f879f=Object['getOwnPropertyDescriptor'],_0x186b27=(_0x211907,_0x5bfc97,_0x1e5a4c,_0x4fbfec)=>{var _0x29cfaf=_0x178a4e;for(var _0x4e24cc=_0x4fbfec>0x1?void 0x0:_0x4fbfec?_0x2f879f(_0x5bfc97,_0x1e5a4c):_0x5bfc97,_0x21ff19=_0x211907[_0x29cfaf(0x17c)]-0x1,_0x44827d;_0x21ff19>=0x0;_0x21ff19--)(_0x44827d=_0x211907[_0x21ff19])&&(_0x4e24cc=_0x44827d(_0x4e24cc)||_0x4e24cc);return _0x4e24cc;},_0x50243d=(_0x2abb8f,_0x5c17e1)=>(_0x53e3eb,_0x43b374)=>_0x5c17e1(_0x53e3eb,_0x43b374,_0x2abb8f);_0x35c637[_0x178a4e(0x1ab)]=class extends _0x2433fe[_0x178a4e(0x248)]{constructor(_0x42d2cd,_0x2177a0){var _0x34279b=_0x178a4e;super(),this[_0x34279b(0x252)]=_0x42d2cd,this[_0x34279b(0x1b3)]=_0x2177a0,this[_0x34279b(0x1de)]();}[_0x178a4e(0x1de)](){var _0x200106=_0x178a4e;this[_0x200106(0x232)](this['_uiPartsService']['registerComponent'](_0x128089['BuiltInUIPart'][_0x200106(0x1be)],()=>_0x128089['connectInjector'](_0x18b7e5,this[_0x200106(0x252)])));}},_0x35c637[_0x178a4e(0x1ab)]=_0x186b27([_0x50243d(0x0,_0x2433fe[_0x178a4e(0x1fc)](_0x2433fe[_0x178a4e(0x1bf)])),_0x50243d(0x1,_0x128089[_0x178a4e(0x1f3)])],_0x35c637['DesktopLiveShareController']);const _0x24cefc=_0x178a4e(0x18e),_0x531b2d={};var _0x1691ad=Object['getOwnPropertyDescriptor'],_0x1a251e=(_0x85510c,_0x485932,_0xc9e406,_0x301fd4)=>{var _0x3acab8=_0x178a4e;for(var _0x4fafd4=_0x301fd4>0x1?void 0x0:_0x301fd4?_0x1691ad(_0x485932,_0xc9e406):_0x485932,_0x454468=_0x85510c[_0x3acab8(0x17c)]-0x1,_0x410c20;_0x454468>=0x0;_0x454468--)(_0x410c20=_0x85510c[_0x454468])&&(_0x4fafd4=_0x410c20(_0x4fafd4)||_0x4fafd4);return _0x4fafd4;},_0x1cecde=(_0x3f2ac9,_0x451865)=>(_0x194a6f,_0x45a89a)=>_0x451865(_0x194a6f,_0x45a89a,_0x3f2ac9);let _0x368c6b=class extends _0x2433fe[_0x178a4e(0x248)]{constructor(_0x51173f){var _0x46f138=_0x178a4e;super(),this[_0x46f138(0x24c)]=_0x51173f,this['_init']();}['_init'](){var _0x255703=_0x178a4e;[_0x435b76[_0x255703(0x249)]['id'],_0x435b76['SetScrollOperation']['id'],_0x554ddb[_0x255703(0x1b5)]['id']][_0x255703(0x1c4)](_0x32d1fa=>{var _0x110502=_0x255703;this[_0x110502(0x232)](this[_0x110502(0x24c)][_0x110502(0x210)](_0x32d1fa));});}};_0x368c6b=_0x1a251e([_0x1cecde(0x0,_0x2433fe[_0x178a4e(0x1fc)](_0x2a2039))],_0x368c6b);var _0x50c186=Object[_0x178a4e(0x22d)],_0x3ec28e=Object[_0x178a4e(0x1b0)],_0x928981=(_0x11a3b6,_0x398bd9,_0xee7ad)=>_0x398bd9 in _0x11a3b6?_0x50c186(_0x11a3b6,_0x398bd9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xee7ad}):_0x11a3b6[_0x398bd9]=_0xee7ad,_0x45d367=(_0x4f6bb2,_0xbe6025,_0x22d86a,_0x4f0aa6)=>{var _0x1c2659=_0x178a4e;for(var _0x15ff88=_0x4f0aa6>0x1?void 0x0:_0x4f0aa6?_0x3ec28e(_0xbe6025,_0x22d86a):_0xbe6025,_0x293327=_0x4f6bb2[_0x1c2659(0x17c)]-0x1,_0x25d16b;_0x293327>=0x0;_0x293327--)(_0x25d16b=_0x4f6bb2[_0x293327])&&(_0x15ff88=_0x25d16b(_0x15ff88)||_0x15ff88);return _0x15ff88;},_0x32486e=(_0x2d2c80,_0x56e6e6)=>(_0x557386,_0x306005)=>_0x56e6e6(_0x557386,_0x306005,_0x2d2c80),_0x4daeb6=(_0x5e8615,_0x485b36,_0x1984c7)=>_0x928981(_0x5e8615,typeof _0x485b36!=_0x178a4e(0x1a1)?_0x485b36+'':_0x485b36,_0x1984c7);const _0x537d55=_0x178a4e(0x1fd);_0x35c637[_0x178a4e(0x24b)]=class extends _0x2433fe[_0x178a4e(0x1c3)]{constructor(_0xbf1505=_0x531b2d,_0x3756a8,_0x5b2d05){var _0x55a74d=_0x178a4e;super(),this[_0x55a74d(0x254)]=_0xbf1505,this['_injector']=_0x3756a8,this[_0x55a74d(0x1b8)]=_0x5b2d05;const {..._0x270c18}=_0x2433fe[_0x55a74d(0x194)]({},_0x531b2d,this[_0x55a74d(0x254)]);this[_0x55a74d(0x1b8)][_0x55a74d(0x18d)](_0x24cefc,_0x270c18);}['onStarting'](){var _0x343cff=_0x178a4e;_0x2433fe['registerDependencies'](this['_injector'],_0x2433fe['mergeOverrideWithDependencies']([[_0x2a2039],[_0x35c637[_0x343cff(0x180)]],[_0x368c6b],[_0x35c637[_0x343cff(0x1ab)]]],this['_config']['override'])),_0x2433fe[_0x343cff(0x206)](this[_0x343cff(0x252)],[[_0x368c6b]]);}[_0x178a4e(0x16c)](){var _0x16c670=_0x178a4e;_0x2433fe[_0x16c670(0x206)](this[_0x16c670(0x252)],[[_0x35c637[_0x16c670(0x1ab)]]]);}},_0x4daeb6(_0x35c637['UniverLiveSharePlugin'],_0x178a4e(0x1d2),_0x2433fe[_0x178a4e(0x1a8)][_0x178a4e(0x246)]),_0x4daeb6(_0x35c637[_0x178a4e(0x24b)],_0x178a4e(0x229),_0x537d55),_0x35c637['UniverLiveSharePlugin']=_0x45d367([_0x2433fe[_0x178a4e(0x260)](_0xbe5ad3[_0x178a4e(0x1b1)]),_0x32486e(0x1,_0x2433fe[_0x178a4e(0x1fc)](_0x2433fe[_0x178a4e(0x1bf)])),_0x32486e(0x2,_0x2433fe[_0x178a4e(0x20f)])],_0x35c637[_0x178a4e(0x24b)]),_0x35c637['LiveShare']=_0x18b7e5,_0x35c637[_0x178a4e(0x205)]=_0x2a2039,_0x35c637[_0x178a4e(0x221)]=_0xfaf0d7,Object[_0x178a4e(0x22d)](_0x35c637,Symbol[_0x178a4e(0x16e)],{'value':_0x178a4e(0x1f9)});}));
|
|
1
|
+
function _0x3a68(_0x3c75f1,_0x1a4443){var _0x3e399e=_0x3e39();return _0x3a68=function(_0x3a68ee,_0x4394a2){_0x3a68ee=_0x3a68ee-0x7e;var _0x409f18=_0x3e399e[_0x3a68ee];return _0x409f18;},_0x3a68(_0x3c75f1,_0x1a4443);}(function(_0x115cb8,_0xcad4c7){var _0x17531f=_0x3a68,_0x49c957=_0x115cb8();while(!![]){try{var _0x52e192=-parseInt(_0x17531f(0x81))/0x1+-parseInt(_0x17531f(0xcd))/0x2*(parseInt(_0x17531f(0x104))/0x3)+parseInt(_0x17531f(0xd0))/0x4+parseInt(_0x17531f(0x7e))/0x5*(-parseInt(_0x17531f(0xd5))/0x6)+parseInt(_0x17531f(0x13c))/0x7*(-parseInt(_0x17531f(0x148))/0x8)+-parseInt(_0x17531f(0x11e))/0x9*(parseInt(_0x17531f(0x11c))/0xa)+-parseInt(_0x17531f(0x10c))/0xb*(-parseInt(_0x17531f(0x122))/0xc);if(_0x52e192===_0xcad4c7)break;else _0x49c957['push'](_0x49c957['shift']());}catch(_0x47fdfb){_0x49c957['push'](_0x49c957['shift']());}}}(_0x3e39,0x3b966),function(_0x1242e9,_0x58af7f){var _0x5f31ae=_0x3a68;typeof exports=='object'&&typeof module<'u'?_0x58af7f(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x5f31ae(0x132)&&define[_0x5f31ae(0x15c)]?define(['exports','@univerjs/core',_0x5f31ae(0xcc),_0x5f31ae(0x120),_0x5f31ae(0x14b),_0x5f31ae(0x130),'@univerjs-pro/collaboration','@univerjs-pro/collaboration-client',_0x5f31ae(0x135),_0x5f31ae(0xbb),_0x5f31ae(0xf3),_0x5f31ae(0xa0)],_0x58af7f):(_0x1242e9=typeof globalThis<'u'?globalThis:_0x1242e9||self,_0x58af7f(_0x1242e9[_0x5f31ae(0xae)]={},_0x1242e9[_0x5f31ae(0x11b)],_0x1242e9[_0x5f31ae(0x127)],_0x1242e9[_0x5f31ae(0xaf)],_0x1242e9[_0x5f31ae(0x138)],_0x1242e9[_0x5f31ae(0xaf)],_0x1242e9['UniverProCollaboration'],_0x1242e9[_0x5f31ae(0x129)],_0x1242e9[_0x5f31ae(0x165)],_0x1242e9[_0x5f31ae(0xbb)],_0x1242e9[_0x5f31ae(0xbb)][_0x5f31ae(0xbe)],_0x1242e9[_0x5f31ae(0xe0)]));}(this,function(_0x1ab467,_0x40b692,_0x50c39b,_0x3cefb2,_0x16cb7b,_0x248191,_0xc9c2e,_0x3a25f8,_0x5ed6e4,_0x21b1d1,_0x4e0e1e,_0x22765b){'use strict';var _0xfc0c07=_0x3a68;var _0x114f39=Object[_0xfc0c07(0x128)],_0x3f10ee=(_0x491fdf,_0x230e1a,_0x2e28ab)=>_0x230e1a in _0x491fdf?_0x114f39(_0x491fdf,_0x230e1a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2e28ab}):_0x491fdf[_0x230e1a]=_0x2e28ab,_0x147873=(_0x418676,_0x2c87d6,_0x3b8f6a)=>_0x3f10ee(_0x418676,typeof _0x2c87d6!=_0xfc0c07(0x102)?_0x2c87d6+'':_0x2c87d6,_0x3b8f6a),_0x5223ce=function(){var _0x2fe822=_0xfc0c07;return _0x5223ce=Object[_0x2fe822(0x9c)]||function(_0x135ac9){var _0x36203c=_0x2fe822;for(var _0x30b15c,_0x5afdaf=0x1,_0x5da1b4=arguments[_0x36203c(0x10f)];_0x5afdaf<_0x5da1b4;_0x5afdaf++){_0x30b15c=arguments[_0x5afdaf];for(var _0x4c755c in _0x30b15c)Object[_0x36203c(0x94)]['hasOwnProperty'][_0x36203c(0x158)](_0x30b15c,_0x4c755c)&&(_0x135ac9[_0x4c755c]=_0x30b15c[_0x4c755c]);}return _0x135ac9;},_0x5223ce['apply'](this,arguments);},_0x378bb6=function(_0x397069,_0x5279e8){var _0x4b456b=_0xfc0c07,_0x44ca3e={};for(var _0x3eaa96 in _0x397069)Object[_0x4b456b(0x94)][_0x4b456b(0xd1)]['call'](_0x397069,_0x3eaa96)&&_0x5279e8['indexOf'](_0x3eaa96)<0x0&&(_0x44ca3e[_0x3eaa96]=_0x397069[_0x3eaa96]);if(_0x397069!=null&&typeof Object[_0x4b456b(0xc3)]==_0x4b456b(0x132)){for(var _0x49ccac=0x0,_0x3eaa96=Object['getOwnPropertySymbols'](_0x397069);_0x49ccac<_0x3eaa96[_0x4b456b(0x10f)];_0x49ccac++)_0x5279e8[_0x4b456b(0x157)](_0x3eaa96[_0x49ccac])<0x0&&Object[_0x4b456b(0x94)][_0x4b456b(0xf7)][_0x4b456b(0x158)](_0x397069,_0x3eaa96[_0x49ccac])&&(_0x44ca3e[_0x3eaa96[_0x49ccac]]=_0x397069[_0x3eaa96[_0x49ccac]]);}return _0x44ca3e;},_0x19eb92=_0x248191[_0xfc0c07(0x123)](function(_0x120ad0,_0x1d0e75){var _0x21b005=_0xfc0c07,_0x5e770c=_0x120ad0[_0x21b005(0x95)],_0x2ec1b8=_0x120ad0['id'],_0x3a7b18=_0x120ad0[_0x21b005(0x139)],_0x182b22=_0x120ad0[_0x21b005(0x12f)],_0x3c9d19=_0x378bb6(_0x120ad0,[_0x21b005(0x95),'id','className',_0x21b005(0x12f)]),_0x51a6fa='univerjs-icon\x20univerjs-icon-'[_0x21b005(0x8e)](_0x2ec1b8,'\x20')[_0x21b005(0x8e)](_0x3a7b18||'')[_0x21b005(0x11d)](),_0x47432c=_0x248191['useRef']('_'[_0x21b005(0x8e)](_0x5e0b31()));return _0x284514(_0x5e770c,''[_0x21b005(0x8e)](_0x2ec1b8),{'defIds':_0x5e770c[_0x21b005(0xb9)],'idSuffix':_0x47432c[_0x21b005(0x134)]},_0x5223ce({'ref':_0x1d0e75,'className':_0x51a6fa},_0x3c9d19),_0x182b22);});function _0x284514(_0x3b3d8e,_0x23e5da,_0x36d16f,_0x45f8cf,_0x151f9e){var _0x14b578=_0xfc0c07;return _0x248191[_0x14b578(0x169)](_0x3b3d8e[_0x14b578(0x143)],_0x5223ce(_0x5223ce({'key':_0x23e5da},_0x4cef3e(_0x3b3d8e,_0x36d16f,_0x151f9e)),_0x45f8cf),(_0x1f476b(_0x3b3d8e,_0x36d16f)[_0x14b578(0xd6)]||[])[_0x14b578(0x14f)](function(_0x5c70e8,_0x2e4610){var _0x517691=_0x14b578;return _0x284514(_0x5c70e8,''[_0x517691(0x8e)](_0x23e5da,'-')[_0x517691(0x8e)](_0x3b3d8e['tag'],'-')[_0x517691(0x8e)](_0x2e4610),_0x36d16f,void 0x0,_0x151f9e);}));}function _0x4cef3e(_0x233109,_0x43e98c,_0x655396){var _0x1265a6=_0xfc0c07,_0x257000=_0x5223ce({},_0x233109[_0x1265a6(0xf0)]);_0x655396!=null&&_0x655396['colorChannel1']&&_0x257000[_0x1265a6(0xe6)]===_0x1265a6(0xdf)&&(_0x257000[_0x1265a6(0xe6)]=_0x655396[_0x1265a6(0xdf)]),_0x233109[_0x1265a6(0x143)]===_0x1265a6(0x85)&&_0x257000['id']&&(_0x257000['id']=_0x257000['id']+_0x43e98c[_0x1265a6(0x154)]),Object['entries'](_0x257000)[_0x1265a6(0x115)](function(_0x4c24dd){var _0x7d81ca=_0x1265a6,_0x4bca47=_0x4c24dd[0x0],_0x3d3211=_0x4c24dd[0x1];_0x4bca47===_0x7d81ca(0x85)&&typeof _0x3d3211==_0x7d81ca(0x162)&&(_0x257000[_0x4bca47]=_0x3d3211[_0x7d81ca(0xd7)](/url\(#(.*)\)/,_0x7d81ca(0xfe)[_0x7d81ca(0x8e)](_0x43e98c[_0x7d81ca(0x154)],')')));});var _0x1c3d80=_0x43e98c[_0x1265a6(0xb9)];return!_0x1c3d80||_0x1c3d80[_0x1265a6(0x10f)]===0x0||(_0x233109[_0x1265a6(0x143)]==='use'&&_0x257000['xlink:href']&&(_0x257000['xlink:href']=_0x257000[_0x1265a6(0x167)]+_0x43e98c[_0x1265a6(0x154)]),Object[_0x1265a6(0x131)](_0x257000)[_0x1265a6(0x115)](function(_0x41d712){var _0xc603fd=_0x1265a6,_0x14a6bf=_0x41d712[0x0],_0x3d767b=_0x41d712[0x1];typeof _0x3d767b=='string'&&(_0x257000[_0x14a6bf]=_0x3d767b[_0xc603fd(0xd7)](/url\(#(.*)\)/,_0xc603fd(0xfe)['concat'](_0x43e98c[_0xc603fd(0x154)],')')));})),_0x257000;}function _0x1f476b(_0x56c636,_0x3f90ed){var _0x475353=_0xfc0c07,_0x261ba7,_0xd923e5=_0x3f90ed[_0x475353(0xb9)];return!_0xd923e5||_0xd923e5['length']===0x0?_0x56c636:_0x56c636[_0x475353(0x143)]===_0x475353(0x163)&&(!((_0x261ba7=_0x56c636[_0x475353(0xd6)])===null||_0x261ba7===void 0x0)&&_0x261ba7[_0x475353(0x10f)])?_0x5223ce(_0x5223ce({},_0x56c636),{'children':_0x56c636[_0x475353(0xd6)][_0x475353(0x14f)](function(_0x5c17b7){var _0x11892b=_0x475353;return typeof _0x5c17b7[_0x11892b(0xf0)]['id']==_0x11892b(0x162)&&_0xd923e5&&_0xd923e5[_0x11892b(0x12d)](_0x5c17b7[_0x11892b(0xf0)]['id'])?_0x5223ce(_0x5223ce({},_0x5c17b7),{'attrs':_0x5223ce(_0x5223ce({},_0x5c17b7[_0x11892b(0xf0)]),{'id':_0x5c17b7[_0x11892b(0xf0)]['id']+_0x3f90ed[_0x11892b(0x154)]})}):_0x5c17b7;})}):_0x56c636;}function _0x5e0b31(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}_0x19eb92[_0xfc0c07(0x83)]=_0xfc0c07(0xad);var _0x28a584={'tag':_0xfc0c07(0x8a),'attrs':{'xmlns':_0xfc0c07(0x12c),'fill':_0xfc0c07(0xde),'viewBox':_0xfc0c07(0x137),'width':_0xfc0c07(0x161),'height':'1em'},'children':[{'tag':_0xfc0c07(0xe5),'attrs':{'fill':'currentColor','d':_0xfc0c07(0x91)}},{'tag':_0xfc0c07(0xe5),'attrs':{'fill':_0xfc0c07(0x111),'d':_0xfc0c07(0x164),'fillRule':_0xfc0c07(0x99),'clipRule':_0xfc0c07(0x99)}}]},_0x134c99=_0x248191['forwardRef'](function(_0x3d456a,_0xbc0c34){var _0x3c8368=_0xfc0c07;return _0x248191[_0x3c8368(0x169)](_0x19eb92,Object[_0x3c8368(0x9c)]({},_0x3d456a,{'id':_0x3c8368(0x14a),'ref':_0xbc0c34,'icon':_0x28a584}));});_0x134c99[_0xfc0c07(0x83)]=_0xfc0c07(0x105);class _0x401e32 extends _0x40b692[_0xfc0c07(0x88)]{constructor(){var _0x48578d=_0xfc0c07;super(...arguments),_0x147873(this,_0x48578d(0x125),new Set()),_0x147873(this,'_reporters',new Set());}[_0xfc0c07(0x150)](_0x54d92f){var _0x70a4bd=_0xfc0c07;return this['_sharedOperations'][_0x70a4bd(0x89)](_0x54d92f),_0x40b692[_0x70a4bd(0x15a)](()=>this[_0x70a4bd(0x125)][_0x70a4bd(0x103)](_0x54d92f));}[_0xfc0c07(0xea)](_0x308b44){var _0x2eb08f=_0xfc0c07;return this[_0x2eb08f(0x112)]['add'](_0x308b44),_0x40b692[_0x2eb08f(0x15a)](()=>this[_0x2eb08f(0x112)]['delete'](_0x308b44));}['shouldShareOperation'](_0x3fe4ea){var _0x450f44=_0xfc0c07;return this[_0x450f44(0x125)]['has'](_0x3fe4ea);}[_0xfc0c07(0xf8)](_0x1ce57a){var _0x4811f6=_0xfc0c07;return Array[_0x4811f6(0x8b)](this[_0x4811f6(0x112)])[_0x4811f6(0x14f)](_0x439419=>_0x439419(_0x1ce57a));}}var _0x4a72c5=Object['getOwnPropertyDescriptor'],_0x2a1ffc=(_0x449c07,_0x3bd98f,_0x4d3d0c,_0x49c572)=>{var _0x312308=_0xfc0c07;for(var _0x2eb5f5=_0x49c572>0x1?void 0x0:_0x49c572?_0x4a72c5(_0x3bd98f,_0x4d3d0c):_0x3bd98f,_0x547034=_0x449c07[_0x312308(0x10f)]-0x1,_0x5925e2;_0x547034>=0x0;_0x547034--)(_0x5925e2=_0x449c07[_0x547034])&&(_0x2eb5f5=_0x5925e2(_0x2eb5f5)||_0x2eb5f5);return _0x2eb5f5;},_0xf87f79=(_0x5f4a1b,_0x27722f)=>(_0x3fe7fc,_0x1af839)=>_0x27722f(_0x3fe7fc,_0x1af839,_0x5f4a1b);_0x1ab467[_0xfc0c07(0x145)]=class extends _0x40b692[_0xfc0c07(0xb0)]{constructor(_0x5711e5,_0x388b26,_0x2f84ac){var _0x3e68fd=_0xfc0c07;super(),_0x147873(this,_0x3e68fd(0xa9),new Map()),(this[_0x3e68fd(0x9d)]=_0x5711e5,this[_0x3e68fd(0x160)]=_0x388b26,this[_0x3e68fd(0xdb)]=_0x2f84ac,this['_init']());}async[_0xfc0c07(0x151)](_0x32c38a){var _0x59a65=_0xfc0c07;return this['_entities'][_0x59a65(0xc0)](_0x32c38a)||await this[_0x59a65(0xd9)](_0x32c38a),this['_entities'][_0x59a65(0xed)](_0x32c38a);}['_init'](){var _0x5c9c28=_0xfc0c07;this[_0x5c9c28(0x9d)]['getTypeOfUnitAdded$'](_0x40b692[_0x5c9c28(0xe8)][_0x5c9c28(0x136)])[_0x5c9c28(0xb3)](_0x4e0e1e[_0x5c9c28(0x16b)](this[_0x5c9c28(0xd2)]))[_0x5c9c28(0xd3)](async _0x4665f8=>{var _0x19b34e=_0x5c9c28;const _0x2470e1=_0x4665f8[_0x19b34e(0x97)]();this['_entities'][_0x19b34e(0xc0)](_0x2470e1)||this[_0x19b34e(0xd9)](_0x2470e1);}),this[_0x5c9c28(0x9d)][_0x5c9c28(0xef)](_0x40b692[_0x5c9c28(0xe8)][_0x5c9c28(0x136)])[_0x5c9c28(0xb3)](_0x4e0e1e[_0x5c9c28(0x16b)](this[_0x5c9c28(0xd2)]))[_0x5c9c28(0xd3)](_0x20e5c2=>{var _0x23b204=_0x5c9c28;const _0x2e5c55=_0x20e5c2[_0x23b204(0x97)](),_0x5312e3=this[_0x23b204(0xa9)][_0x23b204(0xed)](_0x2e5c55);_0x5312e3==null||_0x5312e3['dispose']();});}async['_startLiveShareCoordinator'](_0x4ec988){var _0x532590=_0xfc0c07;const _0x51b179=await this[_0x532590(0xdb)][_0x532590(0x12b)](_0x4ec988),_0x80885a=this[_0x532590(0x160)]['createInstance'](_0x1ab467[_0x532590(0xee)],_0x4ec988,_0x51b179);return _0x80885a[_0x532590(0xe9)](),this[_0x532590(0xa9)][_0x532590(0x101)](_0x4ec988,_0x80885a),_0x80885a;}},_0x1ab467[_0xfc0c07(0x145)]=_0x2a1ffc([_0xf87f79(0x0,_0x40b692[_0xfc0c07(0x116)]),_0xf87f79(0x1,_0x40b692[_0xfc0c07(0x119)](_0x40b692['Injector'])),_0xf87f79(0x2,_0x40b692[_0xfc0c07(0x119)](_0x3a25f8['CollaborationSessionService']))],_0x1ab467['LiveShareController']);var _0x4674d8=(_0x97b485=>(_0x97b485['OFFLINE']='offline',_0x97b485[_0xfc0c07(0x14e)]='idle',_0x97b485[_0xfc0c07(0x142)]=_0xfc0c07(0x149),_0x97b485['NOT_FOLLOWING']=_0xfc0c07(0xfd),_0x97b485['PRESENTING']=_0xfc0c07(0x15f),_0x97b485))(_0x4674d8||{});const _0x49f411=_0xfc0c07(0xe3),_0x557ac0=0xc8;_0x1ab467[_0xfc0c07(0xee)]=class extends _0x40b692[_0xfc0c07(0xb0)]{constructor(_0x4bee41,_0x4fa060,_0xbb1bb8,_0x36bec9,_0x385101){var _0x268411=_0xfc0c07;super(),_0x147873(this,_0x268411(0x146),new _0x21b1d1[(_0x268411(0xf1))](_0x268411(0xce))),_0x147873(this,_0x268411(0x10e),this['_status$']['asObservable']()),_0x147873(this,_0x268411(0x98),!0x1),_0x147873(this,_0x268411(0xcf),null),_0x147873(this,'_presenter',null),(this[_0x268411(0x114)]=_0x4bee41,this[_0x268411(0xa1)]=_0x4fa060,this[_0x268411(0x13f)]=_0xbb1bb8,this[_0x268411(0x90)]=_0x36bec9,this[_0x268411(0xc4)]=_0x385101);}get[_0xfc0c07(0x113)](){var _0x1f5513=_0xfc0c07;return this[_0x1f5513(0x146)][_0x1f5513(0x14d)]();}[_0xfc0c07(0xc5)](){var _0x1e8ac3=_0xfc0c07,_0x2b76a9;(_0x2b76a9=this['_commandDisposable'])==null||_0x2b76a9[_0x1e8ac3(0xc5)](),this[_0x1e8ac3(0x146)][_0x1e8ac3(0x10a)]('idle'),this[_0x1e8ac3(0x146)][_0x1e8ac3(0x118)]();}[_0xfc0c07(0xe9)](){var _0x1cf14c=_0xfc0c07;this[_0x1cf14c(0x98)]||(this['_init']=!0x0,this[_0x1cf14c(0xa1)][_0x1cf14c(0xf4)]['pipe'](_0x4e0e1e[_0x1cf14c(0x16b)](this['dispose$']))[_0x1cf14c(0xd3)](_0x3cca13=>{var _0x517eba=_0x1cf14c;switch(_0x3cca13){case _0x3a25f8['SessionStatus'][_0x517eba(0xca)]:this[_0x517eba(0x121)]();break;case _0x3a25f8[_0x517eba(0xe2)][_0x517eba(0x144)]:this[_0x517eba(0xab)]();break;}}),this[_0x1cf14c(0xa1)][_0x1cf14c(0x10b)][_0x1cf14c(0xb3)](_0x4e0e1e[_0x1cf14c(0x16b)](this[_0x1cf14c(0xd2)]))[_0x1cf14c(0xd3)](_0x17d7a0=>{var _0x4efea4=_0x1cf14c;const {eventID:_0x242749}=_0x17d7a0;switch(_0x242749){case _0xc9c2e[_0x4efea4(0x12e)][_0x4efea4(0xc9)]:this[_0x4efea4(0x159)](_0x17d7a0);break;case _0xc9c2e[_0x4efea4(0x12e)][_0x4efea4(0x86)]:this[_0x4efea4(0xa3)](_0x17d7a0);break;case _0xc9c2e['CollaborationEvent'][_0x4efea4(0x124)]:this['_handleTerminate']();break;case _0xc9c2e[_0x4efea4(0x12e)]['NEW_CHANGESETS']:this[_0x4efea4(0xac)](_0x17d7a0);break;}}));}[_0xfc0c07(0x9f)](){var _0x35b215=_0xfc0c07;this[_0x35b215(0xa1)][_0x35b215(0x15b)]({'eventID':_0xc9c2e[_0x35b215(0x12e)][_0x35b215(0xfb)],'data':{'unitID':this[_0x35b215(0x114)],'userID':this[_0x35b215(0xa1)][_0x35b215(0xe7)]()}},this['_unitID']);}[_0xfc0c07(0xb5)](){var _0x8beb88=_0xfc0c07;this[_0x8beb88(0x113)]===_0x8beb88(0x15f)&&(this['_status$'][_0x8beb88(0x10a)]('idle'),this['_collabSession'][_0x8beb88(0x15b)]({'eventID':_0xc9c2e[_0x8beb88(0x12e)][_0x8beb88(0x124)],'data':{'unitID':this['_unitID']}},this[_0x8beb88(0x114)]));}[_0xfc0c07(0x8d)](){var _0x23708d=_0xfc0c07;this[_0x23708d(0x113)]===_0x23708d(0xfd)&&(this['_status$'][_0x23708d(0x10a)](_0x23708d(0x149)),this[_0x23708d(0xe4)]());}['stopFollowing'](){var _0x7029a9=_0xfc0c07;this[_0x7029a9(0x113)]===_0x7029a9(0x149)&&this['_stopFollowing']();}[_0xfc0c07(0x159)](_0xe30944){var _0x4d3f87=_0xfc0c07;const {presenter:_0x2d5d2e}=_0xe30944[_0x4d3f87(0x13b)],_0x30def5=this[_0x4d3f87(0xa1)][_0x4d3f87(0xe7)]();this['_presenter']=_0x2d5d2e,_0x2d5d2e===_0x30def5?(this[_0x4d3f87(0x9b)](),this['_startPresenting']()):this[_0x4d3f87(0x113)]!==_0x4d3f87(0xfd)&&(this[_0x4d3f87(0x168)](),this[_0x4d3f87(0xe4)]());}[_0xfc0c07(0xf2)](){var _0x20a092=_0xfc0c07;const _0x56853c={'eventID':_0xc9c2e['CollaborationEvent'][_0x20a092(0x141)]};this[_0x20a092(0xa1)][_0x20a092(0x15b)](_0x56853c,this[_0x20a092(0x114)]);}[_0xfc0c07(0xf9)](){var _0x1431f1=_0xfc0c07;this['_presenter']=null,this[_0x1431f1(0x113)]!==_0x1431f1(0x15f)&&this['_beIdle']();}[_0xfc0c07(0xac)](_0x6ffb05){var _0x4612dc=_0xfc0c07;if(this['_status']===_0x4612dc(0x149)&&this['_presenter']===_0x6ffb05[_0x4612dc(0x13b)][_0x4612dc(0x11a)]){const _0x22af51=_0xc9c2e[_0x4612dc(0xff)](_0x6ffb05[_0x4612dc(0x13b)])[_0x4612dc(0x80)]['reverse']()[_0x4612dc(0x87)](_0x608b03=>_0x608b03['id']===_0x5ed6e4['InsertSheetMutation']['id']);if(_0x22af51){const _0x3c0591=_0x22af51[_0x4612dc(0x140)][_0x4612dc(0xd4)],_0x5094a1=_0x22af51['params'][_0x4612dc(0x96)]['id'];setTimeout(()=>{var _0x35b3b5=_0x4612dc;this[_0x35b3b5(0xc4)][_0x35b3b5(0xc2)](_0x5ed6e4[_0x35b3b5(0x155)]['id'],{'unitId':_0x3c0591,'subUnitId':_0x5094a1},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x46ca9d=_0xfc0c07;this[_0x46ca9d(0x146)][_0x46ca9d(0x10a)](_0x46ca9d(0x15f));const _0x1bbf0e=new Map(),_0x6a7cf9=this[_0x46ca9d(0xcf)]=new _0x40b692['DisposableCollection']();_0x6a7cf9['add'](_0x40b692[_0x46ca9d(0x15a)](()=>{var _0x5bba47=_0x46ca9d;_0x1bbf0e[_0x5bba47(0x115)](_0x9a492d=>_0x9a492d[_0x5bba47(0x118)]()),_0x1bbf0e[_0x5bba47(0xc7)]();})),_0x6a7cf9[_0x46ca9d(0x89)](this['_commandService'][_0x46ca9d(0xb4)](_0x5206bd=>{var _0x253059=_0x46ca9d,_0x1529a8;if(_0x5206bd['type']!==_0x40b692[_0x253059(0x106)]['OPERATION']||!this['_liveShareService']['shouldShareOperation'](_0x5206bd['id']))return;const {id:_0x51791a}=_0x5206bd;let _0x2c9d94;_0x1bbf0e['has'](_0x51791a)?_0x2c9d94=_0x1bbf0e['get'](_0x51791a):(_0x2c9d94=new _0x21b1d1[(_0x253059(0x156))](),_0x1bbf0e['set'](_0x51791a,_0x2c9d94),_0x2c9d94[_0x253059(0xb3)](_0x4e0e1e[_0x253059(0x13d)]((_0x1529a8=this[_0x253059(0x13f)][_0x253059(0xbd)](_0x49f411))!=null?_0x1529a8:_0x557ac0,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x253059(0xd3)](_0x8df5a9=>{var _0x57d331=_0x253059;this[_0x57d331(0xa1)]['send']({'eventID':_0xc9c2e['CollaborationEvent'][_0x57d331(0x86)],'data':{'unitID':this[_0x57d331(0x114)],'operations':{[_0x8df5a9['id']]:{'id':_0x8df5a9['id'],'params':JSON['stringify'](_0x8df5a9[_0x57d331(0x140)])}}}},this['_unitID']);})),_0x2c9d94['next'](_0x5206bd);})),this[_0x46ca9d(0x90)]['getInitialStates'](this[_0x46ca9d(0x114)])[_0x46ca9d(0x115)](_0x9d234=>this[_0x46ca9d(0xa1)][_0x46ca9d(0x15b)]({'eventID':_0xc9c2e[_0x46ca9d(0x12e)][_0x46ca9d(0x86)],'data':{'unitID':this['_unitID'],'operations':{[_0x9d234['id']]:{'id':_0x9d234['id'],'params':JSON['stringify'](_0x9d234['params'])}}}},this[_0x46ca9d(0x114)]));}[_0xfc0c07(0x168)](){var _0x4f65b4=_0xfc0c07,_0x447e66;this['_status$'][_0x4f65b4(0x10a)](_0x4f65b4(0xce)),(_0x447e66=this['_commandDisposable'])==null||_0x447e66[_0x4f65b4(0xc5)](),this[_0x4f65b4(0xcf)]=null;}['_startFollowing'](){var _0x5af08c=_0xfc0c07,_0x4c66d1;(_0x4c66d1=this[_0x5af08c(0xcf)])==null||_0x4c66d1[_0x5af08c(0xc5)](),this['_status$'][_0x5af08c(0x10a)]('following');}['_beIdle'](){var _0x5317ac=_0xfc0c07,_0x26f798;this[_0x5317ac(0x146)][_0x5317ac(0x10a)](_0x5317ac(0xce)),(_0x26f798=this['_commandDisposable'])==null||_0x26f798[_0x5317ac(0xc5)](),this[_0x5317ac(0xcf)]=null;}[_0xfc0c07(0x9b)](){var _0x46d854=_0xfc0c07,_0xdb8bd9;this[_0x46d854(0x146)]['next']('not-following'),(_0xdb8bd9=this[_0x46d854(0xcf)])==null||_0xdb8bd9[_0x46d854(0xc5)]();}[_0xfc0c07(0xa3)](_0x4dd8a6){var _0x5b7a98=_0xfc0c07;if([_0x5b7a98(0x15f),'not-following',_0x5b7a98(0x13e)][_0x5b7a98(0x12d)](this[_0x5b7a98(0x113)])||!_0x4dd8a6['data'][_0x5b7a98(0x8f)]||_0x4dd8a6[_0x5b7a98(0x13b)][_0x5b7a98(0x8f)]===this[_0x5b7a98(0xa1)][_0x5b7a98(0xe7)]())return;this[_0x5b7a98(0x113)]===_0x5b7a98(0xce)&&this[_0x5b7a98(0xe4)]();const _0x25f9d0=_0x4dd8a6['data']['operations'];Object[_0x5b7a98(0xb1)](_0x25f9d0)['forEach'](_0x3e99c1=>{var _0xdee27f=_0x5b7a98;this[_0xdee27f(0xc4)][_0xdee27f(0xc2)](_0x3e99c1['id'],_0x3e99c1[_0xdee27f(0x140)]?JSON[_0xdee27f(0xb2)](_0x3e99c1[_0xdee27f(0x140)]):null,{'fromCollab':!0x0});});}[_0xfc0c07(0x121)](){var _0x542e28=_0xfc0c07,_0x45e2cc;this[_0x542e28(0x146)][_0x542e28(0x10a)](_0x542e28(0x13e)),(_0x45e2cc=this['_commandDisposable'])==null||_0x45e2cc[_0x542e28(0xc5)]();}[_0xfc0c07(0xab)](){var _0x49cffb=_0xfc0c07;this[_0x49cffb(0x146)][_0x49cffb(0x10a)](_0x49cffb(0xce)),this['_fetchOperations']();}},_0x1ab467[_0xfc0c07(0xee)]=_0x2a1ffc([_0xf87f79(0x2,_0x40b692['IConfigService']),_0xf87f79(0x3,_0x40b692[_0xfc0c07(0x119)](_0x401e32)),_0xf87f79(0x4,_0x40b692[_0xfc0c07(0x93)])],_0x1ab467['LiveShareCoordinator']);function _0x56cbff(){var _0x1ddcd7=_0xfc0c07;const _0x1a6940=_0x50c39b[_0x1ddcd7(0xbc)](_0x1ab467[_0x1ddcd7(0x145)]),_0x552134=_0x50c39b[_0x1ddcd7(0xbc)](_0x40b692['IUniverInstanceService']),_0x1ca276=_0x50c39b[_0x1ddcd7(0x84)](()=>_0x552134['getCurrentTypeOfUnit$'](_0x40b692[_0x1ddcd7(0xe8)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x2ee150,_0x150b66]=_0x248191[_0x1ddcd7(0x166)](null),[_0x367f7d,_0x290057]=_0x248191[_0x1ddcd7(0x166)](_0x4674d8[_0x1ddcd7(0x14e)]),_0x14e733=_0x248191['useRef'](null);return _0x248191[_0x1ddcd7(0xb8)](()=>(_0x1ca276&&_0x1a6940['getLiveShareCoordinator'](_0x1ca276[_0x1ddcd7(0x97)]())[_0x1ddcd7(0x15d)](_0x42a171=>{var _0xa4c966=_0x1ddcd7;_0x150b66(_0x42a171),_0x14e733[_0xa4c966(0x134)]=_0x42a171['status$'][_0xa4c966(0xd3)](_0x303541=>{_0x290057(_0x303541);});}),()=>{var _0x551e77=_0x1ddcd7,_0x5d87d0;(_0x5d87d0=_0x14e733['current'])==null||_0x5d87d0[_0x551e77(0xd8)](),_0x14e733[_0x551e77(0x134)]=null;}),[_0x1ca276,_0x1a6940]),_0x2ee150?_0x3cefb2[_0x1ddcd7(0xdd)](_0x16cb7b[_0x1ddcd7(0xec)],{'align':_0x1ddcd7(0x153),'disabled':_0x367f7d===_0x4674d8['OFFLINE'],'className':_0x1ddcd7(0xbf),'overlay':_0x3cefb2[_0x1ddcd7(0xdd)](_0x53c9f8,{'status':_0x367f7d,'coordinator':_0x2ee150}),'children':_0x3cefb2[_0x1ddcd7(0xdd)](_0x1ddcd7(0xb7),{'className':_0x16cb7b[_0x1ddcd7(0xa2)](_0x1ddcd7(0x108),{'univer-cursor-not-allowed':_0x367f7d===_0x4674d8[_0x1ddcd7(0xca)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x367f7d!==_0x4674d8[_0x1ddcd7(0xca)]}),'type':_0x1ddcd7(0xb7),'children':_0x3cefb2['jsx'](_0x134c99,{'className':_0x1ddcd7(0xb6)})})}):null;}function _0x53c9f8(_0x3c00dd){var _0x589ae9=_0xfc0c07;const {status:_0x51c6e2,coordinator:_0x26d4c1}=_0x3c00dd;switch(_0x51c6e2){case _0x4674d8[_0x589ae9(0x14e)]:return _0x3cefb2[_0x589ae9(0xdd)](_0x2f0c02,{'coordinator':_0x26d4c1});case _0x4674d8[_0x589ae9(0x142)]:return _0x3cefb2[_0x589ae9(0xdd)](_0x29f159,{'coordinator':_0x26d4c1});case _0x4674d8[_0x589ae9(0x133)]:return _0x3cefb2[_0x589ae9(0xdd)](_0x545b93,{'coordinator':_0x26d4c1});case _0x4674d8['OFFLINE']:return _0x3cefb2[_0x589ae9(0xdd)](_0x462c28,{});case _0x4674d8['PRESENTING']:return _0x3cefb2[_0x589ae9(0xdd)](_0x1ed7c1,{'coordinator':_0x26d4c1});default:return null;}}function _0x2f0c02(_0x32dd02){var _0x50bb08=_0xfc0c07;const {coordinator:_0x4fad35}=_0x32dd02;return _0x3cefb2['jsxs'](_0x3cefb2['Fragment'],{'children':[_0x3cefb2['jsx'](_0x50bb08(0xf6),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x50bb08(0x126)}),_0x3cefb2[_0x50bb08(0xdd)](_0x16cb7b[_0x50bb08(0xa7)],{'onClick':()=>_0x4fad35[_0x50bb08(0x9f)](),'children':'Start'})]});}function _0x29f159(_0xfddabd){var _0xdf2f06=_0xfc0c07;const {coordinator:_0x56b399}=_0xfddabd;return _0x3cefb2['jsxs'](_0x3cefb2['Fragment'],{'children':[_0x3cefb2[_0xdf2f06(0xdd)]('div',{'className':_0xdf2f06(0x14c),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x3cefb2[_0xdf2f06(0xdd)](_0x16cb7b['Button'],{'onClick':()=>_0x56b399[_0xdf2f06(0xfa)](),'children':'Stop\x20following'})]});}function _0x545b93(_0x279c1f){var _0x40e1f0=_0xfc0c07;const {coordinator:_0x158740}=_0x279c1f;return _0x3cefb2[_0x40e1f0(0x9e)](_0x3cefb2[_0x40e1f0(0xf5)],{'children':[_0x3cefb2['jsx'](_0x40e1f0(0xf6),{'className':_0x40e1f0(0x14c),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x3cefb2[_0x40e1f0(0xdd)](_0x16cb7b[_0x40e1f0(0xa7)],{'variant':_0x40e1f0(0x12a),'onClick':()=>_0x158740[_0x40e1f0(0x8d)](),'children':_0x40e1f0(0x16a)})]});}function _0x1ed7c1(_0x420b00){var _0xe32d61=_0xfc0c07;const {coordinator:_0x4d9997}=_0x420b00;return _0x3cefb2[_0xe32d61(0x9e)](_0x3cefb2[_0xe32d61(0xf5)],{'children':[_0x3cefb2[_0xe32d61(0xdd)](_0xe32d61(0xf6),{'className':_0xe32d61(0x14c),'children':_0xe32d61(0xa4)}),_0x3cefb2[_0xe32d61(0xdd)](_0x16cb7b[_0xe32d61(0xa7)],{'variant':'default','onClick':()=>_0x4d9997['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x462c28(){var _0x3bc243=_0xfc0c07;return _0x3cefb2[_0x3bc243(0xdd)](_0x3cefb2[_0x3bc243(0xf5)],{'children':_0x3bc243(0x147)});}var _0x28fba5=Object[_0xfc0c07(0xa6)],_0x175003=(_0x3182f9,_0x566731,_0x1846f2,_0x12164c)=>{for(var _0x1875bc=_0x12164c>0x1?void 0x0:_0x12164c?_0x28fba5(_0x566731,_0x1846f2):_0x566731,_0x40e6db=_0x3182f9['length']-0x1,_0x4b691e;_0x40e6db>=0x0;_0x40e6db--)(_0x4b691e=_0x3182f9[_0x40e6db])&&(_0x1875bc=_0x4b691e(_0x1875bc)||_0x1875bc);return _0x1875bc;},_0xec2e66=(_0x516cd9,_0x16c183)=>(_0x40d097,_0x4727ef)=>_0x16c183(_0x40d097,_0x4727ef,_0x516cd9);_0x1ab467[_0xfc0c07(0xfc)]=class extends _0x40b692['Disposable']{constructor(_0x2e4f6d,_0x63771a){var _0xf1a638=_0xfc0c07;super(),this[_0xf1a638(0x160)]=_0x2e4f6d,this[_0xf1a638(0x110)]=_0x63771a,this[_0xf1a638(0x15e)]();}[_0xfc0c07(0x15e)](){var _0x3a99c1=_0xfc0c07;this['disposeWithMe'](this[_0x3a99c1(0x110)]['registerComponent'](_0x50c39b[_0x3a99c1(0xeb)][_0x3a99c1(0xda)],()=>_0x50c39b[_0x3a99c1(0x152)](_0x56cbff,this[_0x3a99c1(0x160)])));}},_0x1ab467['DesktopLiveShareController']=_0x175003([_0xec2e66(0x0,_0x40b692[_0xfc0c07(0x119)](_0x40b692['Injector'])),_0xec2e66(0x1,_0x50c39b[_0xfc0c07(0x7f)])],_0x1ab467[_0xfc0c07(0xfc)]);const _0x5e1e68='live-share.config',_0x189703={};var _0x4b4365=Object['getOwnPropertyDescriptor'],_0x25a26b=(_0x2e6960,_0x3f0111,_0x5b0816,_0x2ea2a0)=>{var _0x3af6ca=_0xfc0c07;for(var _0x2ea105=_0x2ea2a0>0x1?void 0x0:_0x2ea2a0?_0x4b4365(_0x3f0111,_0x5b0816):_0x3f0111,_0x3352ca=_0x2e6960[_0x3af6ca(0x10f)]-0x1,_0x3761fc;_0x3352ca>=0x0;_0x3352ca--)(_0x3761fc=_0x2e6960[_0x3352ca])&&(_0x2ea105=_0x3761fc(_0x2ea105)||_0x2ea105);return _0x2ea105;},_0x535c56=(_0x5118a5,_0x1d85dd)=>(_0x47dc09,_0x1d3cf2)=>_0x1d85dd(_0x47dc09,_0x1d3cf2,_0x5118a5);let _0x34447e=class extends _0x40b692[_0xfc0c07(0x88)]{constructor(_0x35b8b3){var _0x4e7a70=_0xfc0c07;super(),this[_0x4e7a70(0x90)]=_0x35b8b3,this[_0x4e7a70(0x98)]();}['_init'](){var _0xa6ff76=_0xfc0c07;[_0x22765b[_0xa6ff76(0x11f)]['id'],_0x22765b[_0xa6ff76(0x107)]['id'],_0x5ed6e4[_0xa6ff76(0x155)]['id']][_0xa6ff76(0x115)](_0x105a11=>{var _0x20cec0=_0xa6ff76;this[_0x20cec0(0xa8)](this['_liveShareService'][_0x20cec0(0x150)](_0x105a11));});}};_0x34447e=_0x25a26b([_0x535c56(0x0,_0x40b692[_0xfc0c07(0x119)](_0x401e32))],_0x34447e);var _0xfa05c0=Object[_0xfc0c07(0x128)],_0x57acbf=Object[_0xfc0c07(0xa6)],_0x552e04=(_0x482113,_0x243a61,_0x2e2853)=>_0x243a61 in _0x482113?_0xfa05c0(_0x482113,_0x243a61,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2e2853}):_0x482113[_0x243a61]=_0x2e2853,_0x4c08c2=(_0x5f2e55,_0x4a42cb,_0x499bf1,_0x421d63)=>{for(var _0x6c06d7=_0x421d63>0x1?void 0x0:_0x421d63?_0x57acbf(_0x4a42cb,_0x499bf1):_0x4a42cb,_0x43a0ba=_0x5f2e55['length']-0x1,_0x2182f3;_0x43a0ba>=0x0;_0x43a0ba--)(_0x2182f3=_0x5f2e55[_0x43a0ba])&&(_0x6c06d7=_0x2182f3(_0x6c06d7)||_0x6c06d7);return _0x6c06d7;},_0x622d62=(_0x3f74c2,_0x11fe4f)=>(_0x436837,_0x49d44e)=>_0x11fe4f(_0x436837,_0x49d44e,_0x3f74c2),_0x145eba=(_0x4498d7,_0x3c3c71,_0x5ac1ce)=>_0x552e04(_0x4498d7,typeof _0x3c3c71!='symbol'?_0x3c3c71+'':_0x3c3c71,_0x5ac1ce);const _0x5de38d=_0xfc0c07(0x10d);_0x1ab467[_0xfc0c07(0x100)]=class extends _0x40b692[_0xfc0c07(0x117)]{constructor(_0x58a9ea=_0x189703,_0x84aabd,_0x504cf0){var _0x42a7e5=_0xfc0c07;super(),this[_0x42a7e5(0x9a)]=_0x58a9ea,this[_0x42a7e5(0x160)]=_0x84aabd,this[_0x42a7e5(0x13f)]=_0x504cf0;const {..._0x538730}=_0x40b692[_0x42a7e5(0xba)]({},_0x189703,this[_0x42a7e5(0x9a)]);this[_0x42a7e5(0x13f)]['setConfig'](_0x5e1e68,_0x538730);}[_0xfc0c07(0xdc)](){var _0x5f4f21=_0xfc0c07;_0x40b692['registerDependencies'](this[_0x5f4f21(0x160)],_0x40b692['mergeOverrideWithDependencies']([[_0x401e32],[_0x1ab467['LiveShareController']],[_0x34447e],[_0x1ab467[_0x5f4f21(0xfc)]]],this[_0x5f4f21(0x9a)][_0x5f4f21(0xe1)])),_0x40b692[_0x5f4f21(0xc6)](this[_0x5f4f21(0x160)],[[_0x34447e]]);}['onRendered'](){var _0x425b8e=_0xfc0c07;_0x40b692['touchDependencies'](this[_0x425b8e(0x160)],[[_0x1ab467[_0x425b8e(0xfc)]]]);}},_0x145eba(_0x1ab467[_0xfc0c07(0x100)],_0xfc0c07(0x82),_0x40b692[_0xfc0c07(0xe8)][_0xfc0c07(0xaa)]),_0x145eba(_0x1ab467[_0xfc0c07(0x100)],_0xfc0c07(0x92),_0x5de38d),_0x1ab467[_0xfc0c07(0x100)]=_0x4c08c2([_0x40b692[_0xfc0c07(0xcb)](_0x3a25f8[_0xfc0c07(0x8c)]),_0x622d62(0x1,_0x40b692[_0xfc0c07(0x119)](_0x40b692[_0xfc0c07(0x13a)])),_0x622d62(0x2,_0x40b692['IConfigService'])],_0x1ab467[_0xfc0c07(0x100)]),_0x1ab467[_0xfc0c07(0xc8)]=_0x56cbff,_0x1ab467['LiveShareService']=_0x401e32,_0x1ab467[_0xfc0c07(0x109)]=_0x4674d8,Object[_0xfc0c07(0x128)](_0x1ab467,Symbol[_0xfc0c07(0xa5)],{'value':_0xfc0c07(0xc1)});}));function _0x3e39(){var _0x1d4cb9=['DesktopLiveShareController','not-following','url(#$1','parseProtocolChangeset','UniverLiveSharePlugin','set','symbol','delete','129rySTis','LiveShareIcon','CommandType','SetScrollOperation','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LiveShareStatus','next','event$','7235811ZqEVfh','UNIVER_LIVE_SHARE_PLUGIN','status$','length','_uiPartsService','currentColor','_reporters','_status','_unitID','forEach','IUniverInstanceService','Plugin','complete','Inject','memberID','UniverCore','890yFKSWH','trim','33921JgZwzh','SetZoomRatioOperation','react/jsx-runtime','_handleOffline','24aGjrqQ','forwardRef','LIVESHARE_TERMINATE','_sharedOperations','Present\x20this\x20document','UniverUi','defineProperty','UniverProCollaborationClient','text','requireSession','http://www.w3.org/2000/svg','includes','CollaborationEvent','extend','react','entries','function','NOT_FOLLOWING','current','@univerjs/sheets','UNIVER_SHEET','0\x200\x2017\x2017','UniverDesign','className','Injector','data','99281uNnnev','throttleTime','offline','_configService','params','LIVESHARE_FETCH_OPERATIONS','FOLLOWING','tag','ONLINE','LiveShareController','_status$','You\x27are\x20offline.','208NKDEFn','following','live-share-icon','@univerjs/design','univer-mb-3\x20univer-w-full\x20univer-text-sm','getValue','IDLE','map','registerSharedOperation','getLiveShareCoordinator','connectInjector','end','idSuffix','SetWorksheetActiveOperation','Subject','indexOf','call','_handleNewHost','toDisposable','send','amd','then','_mountLiveShare','presenting','_injector','1em','string','defs','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','UniverSheets','useState','xlink:href','_stopPresenting','createElement','Start\x20following','takeUntil','10165wJfEzh','IUIPartsService','mutations','114307oIWkyT','type','displayName','useObservable','mask','LIVESHARE_OPERATION','find','Disposable','add','svg','from','UniverCollaborationClientPlugin','startFollowing','concat','presenter','_liveShareService','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','pluginName','ICommandService','prototype','icon','sheet','getUnitId','_init','evenodd','_config','_stopFollowing','assign','_univerInstanceService','jsxs','tryStartPresenting','@univerjs/sheets-ui','_collabSession','clsx','_handleOperation','You\x27re\x20presenting\x20the\x20document','toStringTag','getOwnPropertyDescriptor','Button','disposeWithMe','_entities','UNIVER_UNKNOWN','_handleOnline','_handleNewChangeSets','UniverIcon','UniverProLiveShare','React','RxDisposable','values','parse','pipe','onCommandExecuted','stopPresenting','univer-size-4','button','useEffect','defIds','merge','rxjs','useDependency','getConfig','operators','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','has','Module','executeCommand','getOwnPropertySymbols','_commandService','dispose','touchDependencies','clear','LiveShare','LIVESHARE_NEW_HOST','OFFLINE','DependentOn','@univerjs/ui','15396IQAzGk','idle','_commandDisposable','320084LzgDUm','hasOwnProperty','dispose$','subscribe','unitId','6ErXHbv','children','replace','unsubscribe','_startLiveShareCoordinator','HEADER_MENU','_collabSessionService','onStarting','jsx','none','colorChannel1','UniverSheetsUi','override','SessionStatus','SAME_OPERATION_SHARE_INTERVAL','_startFollowing','path','fill','getMemberID','UniverInstanceType','init','registerInitialStateReporter','BuiltInUIPart','Dropdown','get','LiveShareCoordinator','getTypeOfUnitDisposed$','attrs','BehaviorSubject','_fetchOperations','rxjs/operators','sessionStatus$','Fragment','div','propertyIsEnumerable','getInitialStates','_handleTerminate','stopFollowing','LIVESHARE_REQUEST_HOST'];_0x3e39=function(){return _0x1d4cb9;};return _0x3e39();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.10.7-nightly.
|
|
3
|
+
"version": "0.10.7-nightly.202509130618",
|
|
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.7",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.10.7-nightly.
|
|
51
|
-
"@univerjs
|
|
52
|
-
"@univerjs/
|
|
53
|
-
"@univerjs/design": "0.10.7-nightly.
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/sheets-ui": "0.10.7-nightly.
|
|
50
|
+
"@univerjs-pro/collaboration": "0.10.7-nightly.202509130618",
|
|
51
|
+
"@univerjs/core": "0.10.7-nightly.202509130618",
|
|
52
|
+
"@univerjs-pro/collaboration-client": "0.10.7-nightly.202509130618",
|
|
53
|
+
"@univerjs/design": "0.10.7-nightly.202509130618",
|
|
54
|
+
"@univerjs/ui": "0.10.7-nightly.202509130618",
|
|
55
|
+
"@univerjs/sheets": "0.10.7-nightly.202509130618",
|
|
56
|
+
"@univerjs/sheets-ui": "0.10.7-nightly.202509130618"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.6",
|