@univerjs-pro/live-share 0.10.14 → 0.11.0-nightly.202511151013
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/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +11 -11
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x40ea(){const _0x32c725=['FRange','No\x20active\x20workbook\x20found.','extend','stopFollowing','_injector','IDLE','9YRHkAc','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startFollowing','getSheetId','LiveShareStatus','6UpPWJl','stopPresenting','LiveShareStatusEnum','getUnitId','startRow','LiveShareController','getRenderById','getActiveSheet','SetWorksheetActiveOperation','9366fsLSZc','getStatus','FUniver','syncExecuteCommand','getActiveWorkbook','getId','tryStartPresenting','IRenderManagerService','startColumn','FEnum','5077690geqOky','2742044KphCfq','getLiveShareStatus','1070PdqoQw','getLiveShareCoordinatorSync','3GOcjYl','4239784vRAqWs','1507394fZEuxG','get','13805572ssqYpH','235717QTqOHf'];_0x40ea=function(){return _0x32c725;};return _0x40ea();}const _0x417af8=_0x56eb;function _0x56eb(_0x25f8e9,_0x602e34){const _0x40ea47=_0x40ea();return _0x56eb=function(_0x56ebbe,_0x3e6ab8){_0x56ebbe=_0x56ebbe-0x117;let _0x1e3c4d=_0x40ea47[_0x56ebbe];return _0x1e3c4d;},_0x56eb(_0x25f8e9,_0x602e34);}(function(_0x5e9e4a,_0x790f8d){const _0x4da5eb=_0x56eb,_0xc0b250=_0x5e9e4a();while(!![]){try{const _0x1804b6=parseInt(_0x4da5eb(0x13d))/0x1*(parseInt(_0x4da5eb(0x120))/0x2)+parseInt(_0x4da5eb(0x138))/0x3*(-parseInt(_0x4da5eb(0x134))/0x4)+-parseInt(_0x4da5eb(0x136))/0x5*(-parseInt(_0x4da5eb(0x129))/0x6)+parseInt(_0x4da5eb(0x13a))/0x7+-parseInt(_0x4da5eb(0x139))/0x8*(-parseInt(_0x4da5eb(0x11b))/0x9)+parseInt(_0x4da5eb(0x133))/0xa+-parseInt(_0x4da5eb(0x13c))/0xb;if(_0x1804b6===_0x790f8d)break;else _0xc0b250['push'](_0xc0b250['shift']());}catch(_0x3966e4){_0xc0b250['push'](_0xc0b250['shift']());}}}(_0x40ea,0x565be));const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');class w extends d[_0x417af8(0x13e)]{['_initialize'](_0x495a6c,_0x2fe091,_0x3d3e25,_0x26be9a,_0x2c81e3){const _0x58f992=_0x417af8,_0x15ae9b=_0x495a6c[_0x58f992(0x13b)](n[_0x58f992(0x125)]),_0x2cb68c=_0x495a6c[_0x58f992(0x13b)](g[_0x58f992(0x130)]),_0x26f1c9=_0x2fe091[_0x58f992(0x123)](),_0x390810=_0x2fe091[_0x58f992(0x127)](),_0x16953f=_0x15ae9b[_0x58f992(0x137)](_0x26f1c9);(_0x16953f==null?void 0x0:_0x16953f[_0x58f992(0x12a)]())!==n[_0x58f992(0x11f)]['PRESENTING']||(_0x3d3e25[_0x58f992(0x11e)]()!==_0x390810[_0x58f992(0x11e)]()&&this['_commandService']['executeCommand'](u[_0x58f992(0x128)]['id'],{'unitId':_0x26f1c9,'subUnitId':_0x3d3e25[_0x58f992(0x11e)]()}),!_0x2cb68c[_0x58f992(0x126)](_0x26f1c9))||_0x2c81e3[_0x58f992(0x12c)](f['SetScrollOperation']['id'],{'unitId':_0x2fe091['getUnitId'](),'sheetId':_0x3d3e25['getSheetId'](),'sheetViewStartRow':_0x26be9a[_0x58f992(0x124)],'sheetViewStartColumn':_0x26be9a[_0x58f992(0x131)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x417af8(0x13e)]['extend'](w);class C extends a['FUniver']{[_0x417af8(0x135)](){const _0x50e46c=_0x417af8;var _0x78a8d8,_0x4f8dc3;const _0x3469b5=this[_0x50e46c(0x119)]['get'](n[_0x50e46c(0x125)]),_0xc244e8=(_0x78a8d8=this[_0x50e46c(0x12d)]())==null?void 0x0:_0x78a8d8[_0x50e46c(0x12e)]();if(!_0xc244e8)throw new Error(_0x50e46c(0x13f));const _0x9ceafc=_0x3469b5[_0x50e46c(0x137)](_0xc244e8);return(_0x4f8dc3=_0x9ceafc==null?void 0x0:_0x9ceafc[_0x50e46c(0x12a)]())!=null?_0x4f8dc3:n[_0x50e46c(0x11f)][_0x50e46c(0x11a)];}[_0x417af8(0x11d)](){const _0x58e997=_0x417af8;var _0x346186;const _0x279123=this[_0x58e997(0x119)][_0x58e997(0x13b)](n[_0x58e997(0x125)]),_0x3c5d00=(_0x346186=this[_0x58e997(0x12d)]())==null?void 0x0:_0x346186[_0x58e997(0x12e)]();if(!_0x3c5d00)throw new Error(_0x58e997(0x13f));const _0x19987f=_0x279123[_0x58e997(0x137)](_0x3c5d00);if(!_0x19987f)throw new Error(_0x58e997(0x11c));_0x19987f[_0x58e997(0x11d)]();}[_0x417af8(0x118)](){const _0x4a77a0=_0x417af8;var _0x30e7cc;const _0x156861=this[_0x4a77a0(0x119)][_0x4a77a0(0x13b)](n[_0x4a77a0(0x125)]),_0x13ae6d=(_0x30e7cc=this[_0x4a77a0(0x12d)]())==null?void 0x0:_0x30e7cc['getId']();if(!_0x13ae6d)throw new Error(_0x4a77a0(0x13f));const _0x37b7a4=_0x156861['getLiveShareCoordinatorSync'](_0x13ae6d);if(!_0x37b7a4)throw new Error(_0x4a77a0(0x11c));_0x37b7a4[_0x4a77a0(0x118)]();}['startPresenting'](){const _0x1ca321=_0x417af8;var _0x51664d;const _0x8bfdbf=this[_0x1ca321(0x119)][_0x1ca321(0x13b)](n[_0x1ca321(0x125)]),_0x1f5bad=(_0x51664d=this[_0x1ca321(0x12d)]())==null?void 0x0:_0x51664d[_0x1ca321(0x12e)]();if(!_0x1f5bad)throw new Error('No\x20active\x20workbook\x20found.');const _0x47d77d=_0x8bfdbf[_0x1ca321(0x137)](_0x1f5bad);if(!_0x47d77d)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x47d77d[_0x1ca321(0x12f)]();}[_0x417af8(0x121)](){const _0x5ed5c4=_0x417af8;var _0x2dbf59;const _0x235c01=this[_0x5ed5c4(0x119)][_0x5ed5c4(0x13b)](n['LiveShareController']),_0x364b40=(_0x2dbf59=this[_0x5ed5c4(0x12d)]())==null?void 0x0:_0x2dbf59['getId']();if(!_0x364b40)throw new Error(_0x5ed5c4(0x13f));const _0x2f6c40=_0x235c01['getLiveShareCoordinatorSync'](_0x364b40);if(!_0x2f6c40)throw new Error(_0x5ed5c4(0x11c));_0x2f6c40[_0x5ed5c4(0x121)]();}}a[_0x417af8(0x12b)][_0x417af8(0x117)](C);class L extends a['FEnum']{get[_0x417af8(0x122)](){const _0x13024e=_0x417af8;return n[_0x13024e(0x11f)];}}a[_0x417af8(0x132)][_0x417af8(0x117)](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';function _0x37d0(){const _0x1829a3=['values','LIVESHARE_NEW_HOST','UniverLiveSharePlugin','PRESENTING','requireSession','_handleOffline','throttleTime','delete','toDisposable','startFollowing','text','_init','_unitID','SetWorksheetActiveOperation','operations','Plugin','following','SessionStatus','colorChannel1','CollaborationEvent','createElement','UNIVER_SHEET','_stopFollowing','current','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleOnline','24790XnIRhK','children','NEW_CHANGESETS','_commandService','offline','live-share-icon','mask','fill','_status$','stringify','666076aFIEqY','getInitialStates','add','clear','_commandDisposable','LIVESHARE_TERMINATE','defIds','589307oJByKr','includes','FOLLOWING','OFFLINE','getCurrentTypeOfUnit$','BuiltInUIPart','_collabSessionService','Module','get','currentColor','SetScrollOperation','symbol','Subject','getUnitId','forwardRef','sessionStatus$','SetZoomRatioOperation','memberID','idle','_startLiveShareCoordinator','registerSharedOperation','ONLINE','has','jsx','_fetchOperations','then','event$','useDependency','75964XYiBex','substring','You\x27re\x20not\x20following\x20the\x20presenter','_uiPartsService','string','UniverInstanceType','status$','useEffect','unitId','registerInitialStateReporter','_entities','button','presenting','6jJSkrt','BehaviorSubject','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','registerComponent','OPERATION','_reporters','_config','Fragment','map','_liveShareService','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','UniverCollaborationClientPlugin','forEach','LiveShareStatus','onStarting','HEADER_MENU','toString','url(#$1','Inject','find','UNIVER_LIVE_SHARE_PLUGIN','getMemberID','setConfig','_status','553255ZxmTTC','stopPresenting','set','evenodd','_mountLiveShare','_collabSession','next','not-following','268624fuhIMS','Stop\x20presenting','merge','useRef','length','asObservable','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','connectInjector','198153FckElv','_presenter','complete','disposeWithMe','208mnBZTY','getLiveShareCoordinator','getValue','defs','defineProperty','mergeOverrideWithDependencies','_handleNewChangeSets','Disposable','getOwnPropertyDescriptor','_beIdle','entries','Button','Stop\x20following','UNIVER_UNKNOWN','getLiveShareCoordinatorSync','sheet','You\x27re\x20following\x20the\x20presenter','0\x200\x2017\x2017','IDLE','2277VsCPkD','pipe','IConfigService','presenter','getTypeOfUnitDisposed$','replace','DependentOn','_handleOperation','executeCommand','univer-size-4','ICommandService','data','LiveShareController','trim','useState','CommandType','getStatus','attrs','LiveShareCoordinator','LIVESHARE_FETCH_OPERATIONS','dispose','parse','SAME_OPERATION_SHARE_INTERVAL','univerjs-icon\x20univerjs-icon-','subscribe','RxDisposable','send','1em','takeUntil','path','Injector','div','registerDependencies','LiveShareIcon','dispose$','from','_stopPresenting','CollaborationSessionService','_univerInstanceService','createInstance','LiveShare','_configService','http://www.w3.org/2000/svg','DisposableCollection','You\x27are\x20offline.','onRendered','tag','Present\x20this\x20document','idSuffix','pluginName','onCommandExecuted','InsertSheetMutation','touchDependencies','DesktopLiveShareController','stopFollowing','displayName','mutations','You\x27re\x20presenting\x20the\x20document','jsxs','init','_sharedOperations','none','_handleTerminate','end','_startFollowing','params','type','reverse'];_0x37d0=function(){return _0x1829a3;};return _0x37d0();}const _0x392f9e=_0x4739;(function(_0x2b7e52,_0x3e6b18){const _0x402ee5=_0x4739,_0x2f6b9f=_0x2b7e52();while(!![]){try{const _0x443d94=parseInt(_0x402ee5(0x163))/0x1+parseInt(_0x402ee5(0x1ac))/0x2+parseInt(_0x402ee5(0x1b4))/0x3+-parseInt(_0x402ee5(0x15c))/0x4+-parseInt(_0x402ee5(0x1a4))/0x5*(-parseInt(_0x402ee5(0x18c))/0x6)+-parseInt(_0x402ee5(0x17f))/0x7*(-parseInt(_0x402ee5(0x1b8))/0x8)+parseInt(_0x402ee5(0xf4))/0x9*(-parseInt(_0x402ee5(0x152))/0xa);if(_0x443d94===_0x3e6b18)break;else _0x2f6b9f['push'](_0x2f6b9f['shift']());}catch(_0x3b59ce){_0x2f6b9f['push'](_0x2f6b9f['shift']());}}}(_0x37d0,0x5ee9f));var T=Object[_0x392f9e(0x1bc)],U=(_0x323ae1,_0x4fbfae,_0x1b84b4)=>_0x4fbfae in _0x323ae1?T(_0x323ae1,_0x4fbfae,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b84b4}):_0x323ae1[_0x4fbfae]=_0x1b84b4,_=(_0x15ab11,_0xaa4127,_0xd4f95)=>U(_0x15ab11,typeof _0xaa4127!=_0x392f9e(0x16e)?_0xaa4127+'':_0xaa4127,_0xd4f95);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x392f9e(0x16a)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x21464d,..._0x5eeb77}){const _0x1129db=_0x392f9e,{icon:_0x1da564,id:_0x3aac3a,className:_0x2f46c4,extend:_0x1096b1,..._0x5297a6}=_0x5eeb77,_0xabc471=(_0x1129db(0x10b)+_0x3aac3a+'\x20'+(_0x2f46c4||''))[_0x1129db(0x101)](),_0x4f9d0e=v[_0x1129db(0x1af)]('_'+H());return j(_0x1da564,''+_0x3aac3a,{'defIds':_0x1da564[_0x1129db(0x162)],'idSuffix':_0x4f9d0e[_0x1129db(0x14f)]},{'ref':_0x21464d,'className':_0xabc471,..._0x5297a6},_0x1096b1);}function j(_0x51fb2b,_0x2ff63b,_0x131695,_0x219043,_0x4126e9){const _0x283271=_0x392f9e;return v[_0x283271(0x14c)](_0x51fb2b[_0x283271(0x122)],{'key':_0x2ff63b,...y(_0x51fb2b,_0x131695,_0x4126e9),..._0x219043},(F(_0x51fb2b,_0x131695)['children']||[])[_0x283271(0x194)]((_0x17c2cd,_0x299653)=>j(_0x17c2cd,_0x2ff63b+'-'+_0x51fb2b[_0x283271(0x122)]+'-'+_0x299653,_0x131695,void 0x0,_0x4126e9)));}function y(_0x2182df,_0x271bdf,_0x5ce5ec){const _0x429262=_0x392f9e,_0x2cfb8c={..._0x2182df[_0x429262(0x105)]};_0x5ce5ec!=null&&_0x5ce5ec['colorChannel1']&&_0x2cfb8c[_0x429262(0x159)]===_0x429262(0x14a)&&(_0x2cfb8c[_0x429262(0x159)]=_0x5ce5ec['colorChannel1']),_0x2182df[_0x429262(0x122)]===_0x429262(0x158)&&_0x2cfb8c['id']&&(_0x2cfb8c['id']=_0x2cfb8c['id']+_0x271bdf['idSuffix']),Object[_0x429262(0x1c2)](_0x2cfb8c)['forEach'](([_0x5c826b,_0x4385f7])=>{const _0x3f1bd4=_0x429262;_0x5c826b===_0x3f1bd4(0x158)&&typeof _0x4385f7==_0x3f1bd4(0x183)&&(_0x2cfb8c[_0x5c826b]=_0x4385f7['replace'](/url\(#(.*)\)/,_0x3f1bd4(0x19d)+_0x271bdf[_0x3f1bd4(0x124)]+')'));});const {defIds:_0x332c5e}=_0x271bdf;return!_0x332c5e||_0x332c5e[_0x429262(0x1b0)]===0x0||(_0x2182df[_0x429262(0x122)]==='use'&&_0x2cfb8c['xlink:href']&&(_0x2cfb8c['xlink:href']=_0x2cfb8c['xlink:href']+_0x271bdf[_0x429262(0x124)]),Object[_0x429262(0x1c2)](_0x2cfb8c)[_0x429262(0x198)](([_0xcd2884,_0x54d5bb])=>{const _0x397c6b=_0x429262;typeof _0x54d5bb=='string'&&(_0x2cfb8c[_0xcd2884]=_0x54d5bb[_0x397c6b(0xf9)](/url\(#(.*)\)/,_0x397c6b(0x19d)+_0x271bdf[_0x397c6b(0x124)]+')'));})),_0x2cfb8c;}function F(_0x478ebf,_0x2b2069){const _0x123e77=_0x392f9e;var _0x3e756e;const {defIds:_0x3b8286}=_0x2b2069;return!_0x3b8286||_0x3b8286['length']===0x0?_0x478ebf:_0x478ebf['tag']===_0x123e77(0x1bb)&&((_0x3e756e=_0x478ebf[_0x123e77(0x153)])!=null&&_0x3e756e[_0x123e77(0x1b0)])?{..._0x478ebf,'children':_0x478ebf[_0x123e77(0x153)][_0x123e77(0x194)](_0x4df7d0=>typeof _0x4df7d0[_0x123e77(0x105)]['id']=='string'&&_0x3b8286&&_0x3b8286['includes'](_0x4df7d0[_0x123e77(0x105)]['id'])?{..._0x4df7d0,'attrs':{..._0x4df7d0[_0x123e77(0x105)],'id':_0x4df7d0[_0x123e77(0x105)]['id']+_0x2b2069['idSuffix']}}:_0x4df7d0)}:_0x478ebf;}function H(){const _0x3b9547=_0x392f9e;return Math['random']()[_0x3b9547(0x19c)](0x24)[_0x3b9547(0x180)](0x2,0x8);}x[_0x392f9e(0x12b)]='UniverIcon';const V={'tag':'svg','attrs':{'xmlns':_0x392f9e(0x11e),'fill':_0x392f9e(0x131),'viewBox':_0x392f9e(0xf2),'width':_0x392f9e(0x10f),'height':'1em'},'children':[{'tag':_0x392f9e(0x111),'attrs':{'fill':_0x392f9e(0x16c),'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':_0x392f9e(0x111),'attrs':{'fill':_0x392f9e(0x16c),'d':_0x392f9e(0x196),'fillRule':_0x392f9e(0x1a7),'clipRule':_0x392f9e(0x1a7)}}]},R=v[_0x392f9e(0x171)](function(_0x21bda4,_0x49e407){const _0x5be590=_0x392f9e;return v[_0x5be590(0x14c)](x,Object['assign']({},_0x21bda4,{'id':_0x5be590(0x157),'ref':_0x49e407,'icon':V}));});R[_0x392f9e(0x12b)]=_0x392f9e(0x115);class E extends o[_0x392f9e(0x1bf)]{constructor(){const _0x11e917=_0x392f9e;super(...arguments),_(this,_0x11e917(0x130),new Set()),_(this,_0x11e917(0x191),new Set());}['registerSharedOperation'](_0x300ada){const _0x3b4d43=_0x392f9e;return this[_0x3b4d43(0x130)]['add'](_0x300ada),o[_0x3b4d43(0x140)](()=>this[_0x3b4d43(0x130)][_0x3b4d43(0x13f)](_0x300ada));}[_0x392f9e(0x188)](_0x8d30bd){const _0x7b1e06=_0x392f9e;return this[_0x7b1e06(0x191)][_0x7b1e06(0x15e)](_0x8d30bd),o[_0x7b1e06(0x140)](()=>this[_0x7b1e06(0x191)][_0x7b1e06(0x13f)](_0x8d30bd));}['shouldShareOperation'](_0x527e27){return this['_sharedOperations']['has'](_0x527e27);}['getInitialStates'](_0x2acb90){const _0x46fcab=_0x392f9e;return Array[_0x46fcab(0x117)](this[_0x46fcab(0x191)])['map'](_0x1c7d51=>_0x1c7d51(_0x2acb90));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x4e88aa,_0x26d286,_0x30234b,_0x200461)=>{for(var _0x29262e=_0x200461>0x1?void 0x0:_0x200461?M(_0x26d286,_0x30234b):_0x26d286,_0x5c5525=_0x4e88aa['length']-0x1,_0x1dd991;_0x5c5525>=0x0;_0x5c5525--)(_0x1dd991=_0x4e88aa[_0x5c5525])&&(_0x29262e=_0x1dd991(_0x29262e)||_0x29262e);return _0x29262e;},S=(_0x58b08e,_0x1a54d8)=>(_0x52e68c,_0x34c845)=>_0x1a54d8(_0x52e68c,_0x34c845,_0x58b08e);exports[_0x392f9e(0x100)]=class extends o[_0x392f9e(0x10d)]{constructor(_0x1c40e5,_0x1418a2,_0x3953fa){const _0x1eeae6=_0x392f9e;super(),_(this,'_entities',new Map()),(this[_0x1eeae6(0x11a)]=_0x1c40e5,this['_injector']=_0x1418a2,this['_collabSessionService']=_0x3953fa,this['_init']());}async[_0x392f9e(0x1b9)](_0x2ff8f0){const _0x1669e1=_0x392f9e;return this[_0x1669e1(0x189)][_0x1669e1(0x179)](_0x2ff8f0)||await this['_startLiveShareCoordinator'](_0x2ff8f0),this['_entities'][_0x1669e1(0x16b)](_0x2ff8f0);}[_0x392f9e(0xef)](_0x72f5b0){const _0x3be173=_0x392f9e;var _0x39c07d;return(_0x39c07d=this[_0x3be173(0x189)][_0x3be173(0x16b)](_0x72f5b0))!=null?_0x39c07d:null;}['_init'](){const _0x1b15c3=_0x392f9e;this[_0x1b15c3(0x11a)]['getTypeOfUnitAdded$'](o[_0x1b15c3(0x184)]['UNIVER_SHEET'])[_0x1b15c3(0xf5)](I[_0x1b15c3(0x110)](this[_0x1b15c3(0x116)]))['subscribe'](async _0x55564d=>{const _0x4af41a=_0x1b15c3,_0x33a8df=_0x55564d[_0x4af41a(0x170)]();this[_0x4af41a(0x189)]['has'](_0x33a8df)||this[_0x4af41a(0x176)](_0x33a8df);}),this[_0x1b15c3(0x11a)][_0x1b15c3(0xf8)](o[_0x1b15c3(0x184)][_0x1b15c3(0x14d)])[_0x1b15c3(0xf5)](I[_0x1b15c3(0x110)](this['dispose$']))[_0x1b15c3(0x10c)](_0x4fc19f=>{const _0x4b6d9f=_0x1b15c3,_0x10cf67=_0x4fc19f['getUnitId'](),_0x5f06e6=this[_0x4b6d9f(0x189)][_0x4b6d9f(0x16b)](_0x10cf67);_0x5f06e6==null||_0x5f06e6[_0x4b6d9f(0x108)]();});}async[_0x392f9e(0x176)](_0x4d24c6){const _0x1f81eb=_0x392f9e,_0x68d223=await this[_0x1f81eb(0x169)][_0x1f81eb(0x13c)](_0x4d24c6),_0x18c6ae=this['_injector'][_0x1f81eb(0x11b)](exports[_0x1f81eb(0x106)],_0x4d24c6,_0x68d223);return _0x18c6ae[_0x1f81eb(0x12f)](),this[_0x1f81eb(0x189)][_0x1f81eb(0x1a6)](_0x4d24c6,_0x18c6ae),_0x18c6ae;}},exports[_0x392f9e(0x100)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x392f9e(0x19e)](o[_0x392f9e(0x112)])),S(0x2,o[_0x392f9e(0x19e)](b[_0x392f9e(0x119)]))],exports['LiveShareController']);function _0x4739(_0x404e54,_0x3ce7ee){const _0x37d069=_0x37d0();return _0x4739=function(_0x4739be,_0x4d9136){_0x4739be=_0x4739be-0xef;let _0x42d89d=_0x37d069[_0x4739be];return _0x42d89d;},_0x4739(_0x404e54,_0x3ce7ee);}var u=(_0x17a0a4=>(_0x17a0a4[_0x392f9e(0x166)]=_0x392f9e(0x156),_0x17a0a4['IDLE']='idle',_0x17a0a4[_0x392f9e(0x165)]=_0x392f9e(0x148),_0x17a0a4['NOT_FOLLOWING']=_0x392f9e(0x1ab),_0x17a0a4[_0x392f9e(0x13b)]='presenting',_0x17a0a4))(u||{});const k=_0x392f9e(0x10a),q=0xc8;exports['LiveShareCoordinator']=class extends o[_0x392f9e(0x10d)]{constructor(_0x310bc4,_0x4bb4e9,_0x263c0c,_0x5267b1,_0x5acd83){const _0x2c9107=_0x392f9e;super(),_(this,'_status$',new O[(_0x2c9107(0x18d))](_0x2c9107(0x175))),_(this,_0x2c9107(0x185),this[_0x2c9107(0x15a)][_0x2c9107(0x1b1)]()),_(this,_0x2c9107(0x143),!0x1),_(this,'_commandDisposable',null),_(this,'_presenter',null),(this[_0x2c9107(0x144)]=_0x310bc4,this[_0x2c9107(0x1a9)]=_0x4bb4e9,this[_0x2c9107(0x11d)]=_0x263c0c,this[_0x2c9107(0x195)]=_0x5267b1,this['_commandService']=_0x5acd83);}get['_status'](){const _0x306bde=_0x392f9e;return this['_status$'][_0x306bde(0x1ba)]();}[_0x392f9e(0x108)](){const _0x237290=_0x392f9e;var _0x573578;(_0x573578=this[_0x237290(0x160)])==null||_0x573578[_0x237290(0x108)](),this[_0x237290(0x15a)][_0x237290(0x1aa)](_0x237290(0x175)),this[_0x237290(0x15a)]['complete']();}[_0x392f9e(0x104)](){return this['_status'];}[_0x392f9e(0x12f)](){const _0x1b3392=_0x392f9e;this[_0x1b3392(0x143)]||(this[_0x1b3392(0x143)]=!0x0,this[_0x1b3392(0x1a9)][_0x1b3392(0x172)][_0x1b3392(0xf5)](I['takeUntil'](this['dispose$']))[_0x1b3392(0x10c)](_0x1e5a2f=>{const _0x17490e=_0x1b3392;switch(_0x1e5a2f){case b[_0x17490e(0x149)][_0x17490e(0x166)]:this[_0x17490e(0x13d)]();break;case b[_0x17490e(0x149)][_0x17490e(0x178)]:this[_0x17490e(0x151)]();break;}}),this[_0x1b3392(0x1a9)][_0x1b3392(0x17d)][_0x1b3392(0xf5)](I[_0x1b3392(0x110)](this[_0x1b3392(0x116)]))[_0x1b3392(0x10c)](_0x4e1186=>{const _0x340393=_0x1b3392,{eventID:_0x5c81f3}=_0x4e1186;switch(_0x5c81f3){case d[_0x340393(0x14b)][_0x340393(0x139)]:this['_handleNewHost'](_0x4e1186);break;case d[_0x340393(0x14b)]['LIVESHARE_OPERATION']:this[_0x340393(0xfb)](_0x4e1186);break;case d[_0x340393(0x14b)][_0x340393(0x161)]:this[_0x340393(0x132)]();break;case d[_0x340393(0x14b)][_0x340393(0x154)]:this[_0x340393(0x1be)](_0x4e1186);break;}}));}['tryStartPresenting'](){const _0x1811cb=_0x392f9e;this['_collabSession']['send']({'eventID':d[_0x1811cb(0x14b)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x1811cb(0x144)],'userID':this[_0x1811cb(0x1a9)][_0x1811cb(0x1a1)]()}},this[_0x1811cb(0x144)]);}[_0x392f9e(0x1a5)](){const _0x269774=_0x392f9e;this[_0x269774(0x1a3)]==='presenting'&&(this[_0x269774(0x15a)][_0x269774(0x1aa)]('idle'),this[_0x269774(0x1a9)][_0x269774(0x10e)]({'eventID':d[_0x269774(0x14b)][_0x269774(0x161)],'data':{'unitID':this[_0x269774(0x144)]}},this[_0x269774(0x144)]));}[_0x392f9e(0x141)](){const _0x1b1ad2=_0x392f9e;this[_0x1b1ad2(0x1a3)]===_0x1b1ad2(0x1ab)&&(this[_0x1b1ad2(0x15a)][_0x1b1ad2(0x1aa)](_0x1b1ad2(0x148)),this[_0x1b1ad2(0x134)]());}[_0x392f9e(0x12a)](){const _0x432c63=_0x392f9e;this['_status']===_0x432c63(0x148)&&this[_0x432c63(0x14e)]();}['_handleNewHost'](_0x52ec99){const _0x459e9d=_0x392f9e,{presenter:_0x2f39c8}=_0x52ec99[_0x459e9d(0xff)],_0x1e8fd6=this[_0x459e9d(0x1a9)]['getMemberID']();this[_0x459e9d(0x1b5)]=_0x2f39c8,_0x2f39c8===_0x1e8fd6?(this[_0x459e9d(0x14e)](),this['_startPresenting']()):this[_0x459e9d(0x1a3)]!==_0x459e9d(0x1ab)&&(this[_0x459e9d(0x118)](),this[_0x459e9d(0x134)]());}['_fetchOperations'](){const _0xacd352=_0x392f9e,_0x2eb32a={'eventID':d[_0xacd352(0x14b)][_0xacd352(0x107)]};this[_0xacd352(0x1a9)]['send'](_0x2eb32a,this['_unitID']);}['_handleTerminate'](){const _0x4a0131=_0x392f9e;this[_0x4a0131(0x1b5)]=null,this[_0x4a0131(0x1a3)]!==_0x4a0131(0x18b)&&this[_0x4a0131(0x1c1)]();}[_0x392f9e(0x1be)](_0xc023c0){const _0x37e1d9=_0x392f9e;if(this['_status']===_0x37e1d9(0x148)&&this[_0x37e1d9(0x1b5)]===_0xc023c0[_0x37e1d9(0xff)][_0x37e1d9(0x174)]){const _0x5e4487=d['parseProtocolChangeset'](_0xc023c0['data'])[_0x37e1d9(0x12c)][_0x37e1d9(0x137)]()[_0x37e1d9(0x19f)](_0x4e3129=>_0x4e3129['id']===C[_0x37e1d9(0x127)]['id']);if(_0x5e4487){const _0x58ffa7=_0x5e4487[_0x37e1d9(0x135)][_0x37e1d9(0x187)],_0x5c6a4c=_0x5e4487['params'][_0x37e1d9(0xf0)]['id'];setTimeout(()=>{const _0x4f25d5=_0x37e1d9;this['_commandService']['executeCommand'](C[_0x4f25d5(0x145)]['id'],{'unitId':_0x58ffa7,'subUnitId':_0x5c6a4c},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x1875a1=_0x392f9e;this[_0x1875a1(0x15a)][_0x1875a1(0x1aa)](_0x1875a1(0x18b));const _0x149ecf=new Map(),_0x33505c=this[_0x1875a1(0x160)]=new o[(_0x1875a1(0x11f))]();_0x33505c['add'](o[_0x1875a1(0x140)](()=>{const _0x38c235=_0x1875a1;_0x149ecf['forEach'](_0x111416=>_0x111416[_0x38c235(0x1b6)]()),_0x149ecf[_0x38c235(0x15f)]();})),_0x33505c['add'](this['_commandService'][_0x1875a1(0x126)](_0x38372e=>{const _0x5e2d15=_0x1875a1;var _0x49b885;if(_0x38372e[_0x5e2d15(0x136)]!==o[_0x5e2d15(0x103)][_0x5e2d15(0x190)]||!this[_0x5e2d15(0x195)]['shouldShareOperation'](_0x38372e['id']))return;const {id:_0x25e504}=_0x38372e;let _0x3bea52;_0x149ecf[_0x5e2d15(0x179)](_0x25e504)?_0x3bea52=_0x149ecf[_0x5e2d15(0x16b)](_0x25e504):(_0x3bea52=new O[(_0x5e2d15(0x16f))](),_0x149ecf[_0x5e2d15(0x1a6)](_0x25e504,_0x3bea52),_0x3bea52['pipe'](I[_0x5e2d15(0x13e)]((_0x49b885=this[_0x5e2d15(0x11d)]['getConfig'](k))!=null?_0x49b885:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5e2d15(0x10c)](_0x260313=>{const _0x16bc96=_0x5e2d15;this['_collabSession'][_0x16bc96(0x10e)]({'eventID':d[_0x16bc96(0x14b)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x16bc96(0x144)],'operations':{[_0x260313['id']]:{'id':_0x260313['id'],'params':JSON['stringify'](_0x260313[_0x16bc96(0x135)])}}}},this['_unitID']);})),_0x3bea52['next'](_0x38372e);})),this[_0x1875a1(0x195)][_0x1875a1(0x15d)](this[_0x1875a1(0x144)])[_0x1875a1(0x198)](_0x348f47=>this[_0x1875a1(0x1a9)][_0x1875a1(0x10e)]({'eventID':d[_0x1875a1(0x14b)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1875a1(0x144)],'operations':{[_0x348f47['id']]:{'id':_0x348f47['id'],'params':JSON[_0x1875a1(0x15b)](_0x348f47[_0x1875a1(0x135)])}}}},this[_0x1875a1(0x144)]));}[_0x392f9e(0x118)](){const _0x5319d9=_0x392f9e;var _0x1b3d1f;this[_0x5319d9(0x15a)]['next'](_0x5319d9(0x175)),(_0x1b3d1f=this['_commandDisposable'])==null||_0x1b3d1f[_0x5319d9(0x108)](),this['_commandDisposable']=null;}[_0x392f9e(0x134)](){const _0x6a8b=_0x392f9e;var _0x5c83c1;(_0x5c83c1=this[_0x6a8b(0x160)])==null||_0x5c83c1['dispose'](),this[_0x6a8b(0x15a)]['next'](_0x6a8b(0x148));}[_0x392f9e(0x1c1)](){const _0x128175=_0x392f9e;var _0x36bb0a;this[_0x128175(0x15a)][_0x128175(0x1aa)](_0x128175(0x175)),(_0x36bb0a=this[_0x128175(0x160)])==null||_0x36bb0a[_0x128175(0x108)](),this['_commandDisposable']=null;}[_0x392f9e(0x14e)](){const _0x7441c9=_0x392f9e;var _0x421874;this[_0x7441c9(0x15a)][_0x7441c9(0x1aa)](_0x7441c9(0x1ab)),(_0x421874=this[_0x7441c9(0x160)])==null||_0x421874['dispose']();}[_0x392f9e(0xfb)](_0x52e65c){const _0x450508=_0x392f9e;if([_0x450508(0x18b),'not-following',_0x450508(0x156)][_0x450508(0x164)](this['_status'])||!_0x52e65c['data']['presenter']||_0x52e65c['data'][_0x450508(0xf7)]===this['_collabSession']['getMemberID']())return;this[_0x450508(0x1a3)]===_0x450508(0x175)&&this[_0x450508(0x134)]();const _0x45c7db=_0x52e65c['data'][_0x450508(0x146)];Object[_0x450508(0x138)](_0x45c7db)['forEach'](_0xe6b0af=>{const _0x1a66cd=_0x450508;this[_0x1a66cd(0x155)][_0x1a66cd(0xfc)](_0xe6b0af['id'],_0xe6b0af[_0x1a66cd(0x135)]?JSON[_0x1a66cd(0x109)](_0xe6b0af[_0x1a66cd(0x135)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x40e98f=_0x392f9e;var _0x20d7db;this[_0x40e98f(0x15a)][_0x40e98f(0x1aa)](_0x40e98f(0x156)),(_0x20d7db=this['_commandDisposable'])==null||_0x20d7db[_0x40e98f(0x108)]();}[_0x392f9e(0x151)](){const _0x29753f=_0x392f9e;this[_0x29753f(0x15a)][_0x29753f(0x1aa)](_0x29753f(0x175)),this[_0x29753f(0x17b)]();}},exports[_0x392f9e(0x106)]=P([S(0x2,o[_0x392f9e(0xf6)]),S(0x3,o[_0x392f9e(0x19e)](E)),S(0x4,o[_0x392f9e(0xfe)])],exports[_0x392f9e(0x106)]);function $(){const _0x1feb9f=_0x392f9e,_0x5c85dc=p[_0x1feb9f(0x17e)](exports[_0x1feb9f(0x100)]),_0x3761d2=p['useDependency'](o['IUniverInstanceService']),_0x5b4742=p['useObservable'](()=>_0x3761d2[_0x1feb9f(0x167)](o[_0x1feb9f(0x184)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x31938d,_0xd6aa13]=v[_0x1feb9f(0x102)](null),[_0x47d1d0,_0x31188f]=v[_0x1feb9f(0x102)](u[_0x1feb9f(0xf3)]),_0x422d3b=v[_0x1feb9f(0x1af)](null);return v[_0x1feb9f(0x186)](()=>(_0x5b4742&&_0x5c85dc[_0x1feb9f(0x1b9)](_0x5b4742[_0x1feb9f(0x170)]())[_0x1feb9f(0x17c)](_0x309ce5=>{const _0x4bf643=_0x1feb9f;_0xd6aa13(_0x309ce5),_0x422d3b['current']=_0x309ce5[_0x4bf643(0x185)]['subscribe'](_0x3c8de2=>{_0x31188f(_0x3c8de2);});}),()=>{const _0x506c4d=_0x1feb9f;var _0x591f59;(_0x591f59=_0x422d3b[_0x506c4d(0x14f)])==null||_0x591f59['unsubscribe'](),_0x422d3b['current']=null;}),[_0x5b4742,_0x5c85dc]),_0x31938d?l[_0x1feb9f(0x17a)](f['Dropdown'],{'align':_0x1feb9f(0x133),'disabled':_0x47d1d0===u[_0x1feb9f(0x166)],'className':_0x1feb9f(0x1b2),'overlay':l[_0x1feb9f(0x17a)](W,{'status':_0x47d1d0,'coordinator':_0x31938d}),'children':l[_0x1feb9f(0x17a)](_0x1feb9f(0x18a),{'className':f['clsx'](_0x1feb9f(0x18e),{'univer-cursor-not-allowed':_0x47d1d0===u[_0x1feb9f(0x166)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x47d1d0!==u['OFFLINE']}),'type':'button','children':l[_0x1feb9f(0x17a)](R,{'className':_0x1feb9f(0xfd)})})}):null;}function W(_0x18a86b){const _0x3947f4=_0x392f9e,{status:_0x4a9ed1,coordinator:_0x59b391}=_0x18a86b;switch(_0x4a9ed1){case u['IDLE']:return l['jsx'](G,{'coordinator':_0x59b391});case u['FOLLOWING']:return l[_0x3947f4(0x17a)](B,{'coordinator':_0x59b391});case u['NOT_FOLLOWING']:return l[_0x3947f4(0x17a)](Y,{'coordinator':_0x59b391});case u['OFFLINE']:return l[_0x3947f4(0x17a)](J,{});case u['PRESENTING']:return l[_0x3947f4(0x17a)](Z,{'coordinator':_0x59b391});default:return null;}}function G(_0x20c712){const _0x294473=_0x392f9e,{coordinator:_0x16c885}=_0x20c712;return l[_0x294473(0x12e)](l[_0x294473(0x193)],{'children':[l[_0x294473(0x17a)](_0x294473(0x113),{'className':_0x294473(0x150),'children':_0x294473(0x123)}),l[_0x294473(0x17a)](f[_0x294473(0x1c3)],{'onClick':()=>_0x16c885['tryStartPresenting'](),'children':'Start'})]});}function B(_0x27c375){const _0x12e893=_0x392f9e,{coordinator:_0x462d2c}=_0x27c375;return l['jsxs'](l['Fragment'],{'children':[l[_0x12e893(0x17a)](_0x12e893(0x113),{'className':_0x12e893(0x150),'children':_0x12e893(0xf1)}),l[_0x12e893(0x17a)](f[_0x12e893(0x1c3)],{'onClick':()=>_0x462d2c[_0x12e893(0x12a)](),'children':_0x12e893(0x1c4)})]});}function Y(_0x48a08d){const _0x7bd56b=_0x392f9e,{coordinator:_0x1baa50}=_0x48a08d;return l[_0x7bd56b(0x12e)](l[_0x7bd56b(0x193)],{'children':[l[_0x7bd56b(0x17a)]('div',{'className':_0x7bd56b(0x150),'children':_0x7bd56b(0x181)}),l[_0x7bd56b(0x17a)](f[_0x7bd56b(0x1c3)],{'variant':_0x7bd56b(0x142),'onClick':()=>_0x1baa50[_0x7bd56b(0x141)](),'children':'Start\x20following'})]});}function Z(_0x456a0e){const _0x3e4886=_0x392f9e,{coordinator:_0x15f3bf}=_0x456a0e;return l[_0x3e4886(0x12e)](l['Fragment'],{'children':[l[_0x3e4886(0x17a)](_0x3e4886(0x113),{'className':_0x3e4886(0x150),'children':_0x3e4886(0x12d)}),l[_0x3e4886(0x17a)](f[_0x3e4886(0x1c3)],{'variant':'default','onClick':()=>_0x15f3bf[_0x3e4886(0x1a5)](),'children':_0x3e4886(0x1ad)})]});}function J(){const _0x2466ce=_0x392f9e;return l[_0x2466ce(0x17a)](l[_0x2466ce(0x193)],{'children':_0x2466ce(0x120)});}var K=Object[_0x392f9e(0x1c0)],z=(_0x304f98,_0x5d2cce,_0x4a5b93,_0x567203)=>{const _0x1e25b3=_0x392f9e;for(var _0x253e95=_0x567203>0x1?void 0x0:_0x567203?K(_0x5d2cce,_0x4a5b93):_0x5d2cce,_0x4e0b8d=_0x304f98[_0x1e25b3(0x1b0)]-0x1,_0x10aced;_0x4e0b8d>=0x0;_0x4e0b8d--)(_0x10aced=_0x304f98[_0x4e0b8d])&&(_0x253e95=_0x10aced(_0x253e95)||_0x253e95);return _0x253e95;},L=(_0x59b68f,_0x4f4f09)=>(_0x249b26,_0x90b473)=>_0x4f4f09(_0x249b26,_0x90b473,_0x59b68f);exports[_0x392f9e(0x129)]=class extends o[_0x392f9e(0x1bf)]{constructor(_0xc1f73d,_0x57c585){const _0x3266a6=_0x392f9e;super(),this['_injector']=_0xc1f73d,this[_0x3266a6(0x182)]=_0x57c585,this[_0x3266a6(0x1a8)]();}[_0x392f9e(0x1a8)](){const _0x8c450c=_0x392f9e;this[_0x8c450c(0x1b7)](this['_uiPartsService'][_0x8c450c(0x18f)](p[_0x8c450c(0x168)][_0x8c450c(0x19b)],()=>p[_0x8c450c(0x1b3)]($,this['_injector'])));}},exports[_0x392f9e(0x129)]=z([L(0x0,o['Inject'](o[_0x392f9e(0x112)])),L(0x1,p['IUIPartsService'])],exports['DesktopLiveShareController']);const Q='live-share.config',w={};var X=Object[_0x392f9e(0x1c0)],ee=(_0x5ce4d8,_0x2c888b,_0x5a8d2e,_0x1eb0de)=>{const _0x4429f4=_0x392f9e;for(var _0x2ccb1e=_0x1eb0de>0x1?void 0x0:_0x1eb0de?X(_0x2c888b,_0x5a8d2e):_0x2c888b,_0x23e41e=_0x5ce4d8[_0x4429f4(0x1b0)]-0x1,_0x15a88f;_0x23e41e>=0x0;_0x23e41e--)(_0x15a88f=_0x5ce4d8[_0x23e41e])&&(_0x2ccb1e=_0x15a88f(_0x2ccb1e)||_0x2ccb1e);return _0x2ccb1e;},te=(_0xf0ba7b,_0x3115b6)=>(_0x4a6225,_0x56bcde)=>_0x3115b6(_0x4a6225,_0x56bcde,_0xf0ba7b);let m=class extends o['Disposable']{constructor(_0x5b8752){const _0x2459b4=_0x392f9e;super(),this[_0x2459b4(0x195)]=_0x5b8752,this[_0x2459b4(0x143)]();}[_0x392f9e(0x143)](){const _0x19efe1=_0x392f9e;[D[_0x19efe1(0x173)]['id'],D[_0x19efe1(0x16d)]['id'],C[_0x19efe1(0x145)]['id']][_0x19efe1(0x198)](_0x313153=>{const _0x1d7942=_0x19efe1;this[_0x1d7942(0x1b7)](this[_0x1d7942(0x195)][_0x1d7942(0x177)](_0x313153));});}};m=ee([te(0x0,o[_0x392f9e(0x19e)](E))],m);var ie=Object[_0x392f9e(0x1bc)],se=Object[_0x392f9e(0x1c0)],ne=(_0x5b1721,_0x4892f4,_0x50a190)=>_0x4892f4 in _0x5b1721?ie(_0x5b1721,_0x4892f4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x50a190}):_0x5b1721[_0x4892f4]=_0x50a190,re=(_0x13be44,_0x4e3be6,_0x5a446c,_0x354c26)=>{const _0x3da293=_0x392f9e;for(var _0x2af01c=_0x354c26>0x1?void 0x0:_0x354c26?se(_0x4e3be6,_0x5a446c):_0x4e3be6,_0x458502=_0x13be44[_0x3da293(0x1b0)]-0x1,_0x857c28;_0x458502>=0x0;_0x458502--)(_0x857c28=_0x13be44[_0x458502])&&(_0x2af01c=_0x857c28(_0x2af01c)||_0x2af01c);return _0x2af01c;},N=(_0x2613cd,_0x136fd2)=>(_0x237582,_0x33704f)=>_0x136fd2(_0x237582,_0x33704f,_0x2613cd),A=(_0x1c7e0e,_0x17ba42,_0x24c8c8)=>ne(_0x1c7e0e,typeof _0x17ba42!=_0x392f9e(0x16e)?_0x17ba42+'':_0x17ba42,_0x24c8c8);const oe=_0x392f9e(0x1a0);exports[_0x392f9e(0x13a)]=class extends o[_0x392f9e(0x147)]{constructor(_0x56999d=w,_0x4d2844,_0x302f98){const _0x6272d5=_0x392f9e;super(),this[_0x6272d5(0x192)]=_0x56999d,this['_injector']=_0x4d2844,this[_0x6272d5(0x11d)]=_0x302f98;const {..._0x47b21e}=o[_0x6272d5(0x1ae)]({},w,this[_0x6272d5(0x192)]);this['_configService'][_0x6272d5(0x1a2)](Q,_0x47b21e);}[_0x392f9e(0x19a)](){const _0x1f2134=_0x392f9e;o[_0x1f2134(0x114)](this['_injector'],o[_0x1f2134(0x1bd)]([[E],[exports[_0x1f2134(0x100)]],[m],[exports[_0x1f2134(0x129)]]],this[_0x1f2134(0x192)]['override'])),o[_0x1f2134(0x128)](this['_injector'],[[m]]);}[_0x392f9e(0x121)](){const _0x4d29b2=_0x392f9e;o['touchDependencies'](this['_injector'],[[exports[_0x4d29b2(0x129)]]]);}},A(exports[_0x392f9e(0x13a)],_0x392f9e(0x136),o[_0x392f9e(0x184)][_0x392f9e(0x1c5)]),A(exports[_0x392f9e(0x13a)],_0x392f9e(0x125),oe),exports['UniverLiveSharePlugin']=re([o[_0x392f9e(0xfa)](b[_0x392f9e(0x197)]),N(0x1,o['Inject'](o[_0x392f9e(0x112)])),N(0x2,o[_0x392f9e(0xf6)])],exports[_0x392f9e(0x13a)]),exports[_0x392f9e(0x11c)]=$,exports['LiveShareService']=E,exports[_0x392f9e(0x199)]=u;
|
|
1
|
+
'use strict';const _0x286937=_0x4e45;(function(_0x32649d,_0x5a4d66){const _0x7e6b8a=_0x4e45,_0xb56f85=_0x32649d();while(!![]){try{const _0x4300c3=-parseInt(_0x7e6b8a(0x11b))/0x1+-parseInt(_0x7e6b8a(0x139))/0x2+-parseInt(_0x7e6b8a(0x15a))/0x3*(-parseInt(_0x7e6b8a(0x17d))/0x4)+parseInt(_0x7e6b8a(0xc0))/0x5*(parseInt(_0x7e6b8a(0x16c))/0x6)+-parseInt(_0x7e6b8a(0x180))/0x7+parseInt(_0x7e6b8a(0xc8))/0x8*(-parseInt(_0x7e6b8a(0x15d))/0x9)+parseInt(_0x7e6b8a(0xe2))/0xa;if(_0x4300c3===_0x5a4d66)break;else _0xb56f85['push'](_0xb56f85['shift']());}catch(_0x179627){_0xb56f85['push'](_0xb56f85['shift']());}}}(_0x158b,0x2881a));var T=Object['defineProperty'],U=(_0x4a7c4b,_0x2a89ea,_0x2b3728)=>_0x2a89ea in _0x4a7c4b?T(_0x4a7c4b,_0x2a89ea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b3728}):_0x4a7c4b[_0x2a89ea]=_0x2b3728,_=(_0x5b9624,_0x440621,_0x28408e)=>U(_0x5b9624,typeof _0x440621!=_0x286937(0x184)?_0x440621+'':_0x440621,_0x28408e);Object['defineProperty'](exports,Symbol[_0x286937(0x104)],{'value':'Module'});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x2ab3e5,..._0x2f80e5}){const _0x590750=_0x286937,{icon:_0x142449,id:_0x281639,className:_0xd55491,extend:_0x5e3240,..._0x5baf8f}=_0x2f80e5,_0x255a46=(_0x590750(0xf7)+_0x281639+'\x20'+(_0xd55491||''))[_0x590750(0x117)](),_0x4668f0=v['useRef']('_'+H());return j(_0x142449,''+_0x281639,{'defIds':_0x142449[_0x590750(0x110)],'idSuffix':_0x4668f0[_0x590750(0xc7)]},{'ref':_0x2ab3e5,'className':_0x255a46,..._0x5baf8f},_0x5e3240);}function j(_0x22c48b,_0x1c5d34,_0x25de3f,_0x2b1233,_0xf4e1d7){const _0x3332b5=_0x286937;return v[_0x3332b5(0x171)](_0x22c48b[_0x3332b5(0x10f)],{'key':_0x1c5d34,...y(_0x22c48b,_0x25de3f,_0xf4e1d7),..._0x2b1233},(F(_0x22c48b,_0x25de3f)[_0x3332b5(0x12d)]||[])[_0x3332b5(0x122)]((_0x5098ee,_0x1873bc)=>j(_0x5098ee,_0x1c5d34+'-'+_0x22c48b[_0x3332b5(0x10f)]+'-'+_0x1873bc,_0x25de3f,void 0x0,_0xf4e1d7)));}function y(_0xcdc85e,_0x492b50,_0x477643){const _0x528310=_0x286937,_0x510869={..._0xcdc85e[_0x528310(0x128)]};_0x477643!=null&&_0x477643[_0x528310(0x129)]&&_0x510869[_0x528310(0xb7)]===_0x528310(0x129)&&(_0x510869['fill']=_0x477643[_0x528310(0x129)]),_0xcdc85e['tag']===_0x528310(0xf3)&&_0x510869['id']&&(_0x510869['id']=_0x510869['id']+_0x492b50[_0x528310(0x185)]),Object[_0x528310(0x160)](_0x510869)[_0x528310(0x183)](([_0x51fd53,_0x23d1f2])=>{const _0x2edd53=_0x528310;_0x51fd53==='mask'&&typeof _0x23d1f2==_0x2edd53(0xfa)&&(_0x510869[_0x51fd53]=_0x23d1f2[_0x2edd53(0x178)](/url\(#(.*)\)/,_0x2edd53(0x11f)+_0x492b50[_0x2edd53(0x185)]+')'));});const {defIds:_0x37ad2c}=_0x492b50;return!_0x37ad2c||_0x37ad2c[_0x528310(0x10e)]===0x0||(_0xcdc85e['tag']===_0x528310(0xd1)&&_0x510869[_0x528310(0xc3)]&&(_0x510869[_0x528310(0xc3)]=_0x510869[_0x528310(0xc3)]+_0x492b50[_0x528310(0x185)]),Object[_0x528310(0x160)](_0x510869)[_0x528310(0x183)](([_0xc90a82,_0x3c3d35])=>{const _0x535ceb=_0x528310;typeof _0x3c3d35==_0x535ceb(0xfa)&&(_0x510869[_0xc90a82]=_0x3c3d35[_0x535ceb(0x178)](/url\(#(.*)\)/,_0x535ceb(0x11f)+_0x492b50[_0x535ceb(0x185)]+')'));})),_0x510869;}function F(_0x2fc76a,_0x4468f0){const _0xfc7bb8=_0x286937;var _0x2acc82;const {defIds:_0x2b1126}=_0x4468f0;return!_0x2b1126||_0x2b1126['length']===0x0?_0x2fc76a:_0x2fc76a[_0xfc7bb8(0x10f)]===_0xfc7bb8(0x150)&&((_0x2acc82=_0x2fc76a['children'])!=null&&_0x2acc82[_0xfc7bb8(0x10e)])?{..._0x2fc76a,'children':_0x2fc76a[_0xfc7bb8(0x12d)]['map'](_0x4e461c=>typeof _0x4e461c[_0xfc7bb8(0x128)]['id']==_0xfc7bb8(0xfa)&&_0x2b1126&&_0x2b1126[_0xfc7bb8(0x162)](_0x4e461c[_0xfc7bb8(0x128)]['id'])?{..._0x4e461c,'attrs':{..._0x4e461c[_0xfc7bb8(0x128)],'id':_0x4e461c['attrs']['id']+_0x4468f0[_0xfc7bb8(0x185)]}}:_0x4e461c)}:_0x2fc76a;}function H(){const _0x31870e=_0x286937;return Math[_0x31870e(0x126)]()[_0x31870e(0x105)](0x24)[_0x31870e(0x14b)](0x2,0x8);}x[_0x286937(0xe8)]=_0x286937(0x127);const V={'tag':_0x286937(0x136),'attrs':{'xmlns':_0x286937(0x16f),'fill':_0x286937(0x17a),'viewBox':'0\x200\x2017\x2017','width':_0x286937(0x16a),'height':_0x286937(0x16a)},'children':[{'tag':_0x286937(0xcc),'attrs':{'fill':_0x286937(0x172),'d':_0x286937(0xbe)}},{'tag':_0x286937(0xcc),'attrs':{'fill':_0x286937(0x172),'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':_0x286937(0xdb)}}]},R=v[_0x286937(0x114)](function(_0x51e9c2,_0x1e7c7d){const _0x4269ca=_0x286937;return v[_0x4269ca(0x171)](x,Object[_0x4269ca(0x158)]({},_0x51e9c2,{'id':_0x4269ca(0xf5),'ref':_0x1e7c7d,'icon':V}));});R[_0x286937(0xe8)]='LiveShareIcon';class E extends o[_0x286937(0xfb)]{constructor(){const _0x4cd332=_0x286937;super(...arguments),_(this,_0x4cd332(0xdd),new Set()),_(this,'_reporters',new Set());}[_0x286937(0x131)](_0x27d9c0){const _0x5ccfc6=_0x286937;return this[_0x5ccfc6(0xdd)][_0x5ccfc6(0x166)](_0x27d9c0),o[_0x5ccfc6(0x134)](()=>this[_0x5ccfc6(0xdd)][_0x5ccfc6(0x113)](_0x27d9c0));}[_0x286937(0x173)](_0x2c4cc9){const _0x5c2042=_0x286937;return this[_0x5c2042(0x174)][_0x5c2042(0x166)](_0x2c4cc9),o[_0x5c2042(0x134)](()=>this['_reporters']['delete'](_0x2c4cc9));}['shouldShareOperation'](_0x3f01f3){const _0x4ec4d4=_0x286937;return this[_0x4ec4d4(0xdd)]['has'](_0x3f01f3);}[_0x286937(0x119)](_0x2aff00){const _0x27149b=_0x286937;return Array[_0x27149b(0x12b)](this[_0x27149b(0x174)])[_0x27149b(0x122)](_0x5f00b0=>_0x5f00b0(_0x2aff00));}}var M=Object[_0x286937(0x111)],P=(_0x2cf151,_0x1f27fa,_0x57440b,_0x2c0e69)=>{const _0xd3b3ac=_0x286937;for(var _0x4b9148=_0x2c0e69>0x1?void 0x0:_0x2c0e69?M(_0x1f27fa,_0x57440b):_0x1f27fa,_0x57e200=_0x2cf151[_0xd3b3ac(0x10e)]-0x1,_0x457444;_0x57e200>=0x0;_0x57e200--)(_0x457444=_0x2cf151[_0x57e200])&&(_0x4b9148=_0x457444(_0x4b9148)||_0x4b9148);return _0x4b9148;},S=(_0x2e294c,_0x53ea0d)=>(_0x500104,_0x227acd)=>_0x53ea0d(_0x500104,_0x227acd,_0x2e294c);exports['LiveShareController']=class extends o[_0x286937(0xed)]{constructor(_0x4dc28d,_0x211788,_0xac5abb){const _0x4d5c71=_0x286937;super(),_(this,'_entities',new Map()),(this[_0x4d5c71(0x124)]=_0x4dc28d,this[_0x4d5c71(0x18b)]=_0x211788,this[_0x4d5c71(0x157)]=_0xac5abb,this[_0x4d5c71(0x188)]());}async[_0x286937(0xc6)](_0x6a324a){const _0x4abd40=_0x286937;return this['_entities'][_0x4abd40(0xbb)](_0x6a324a)||await this[_0x4abd40(0xeb)](_0x6a324a),this[_0x4abd40(0x186)][_0x4abd40(0x10c)](_0x6a324a);}[_0x286937(0x164)](_0x40c95e){const _0x58e4c2=_0x286937;var _0x5824c4;return(_0x5824c4=this[_0x58e4c2(0x186)][_0x58e4c2(0x10c)](_0x40c95e))!=null?_0x5824c4:null;}[_0x286937(0x188)](){const _0x26bb70=_0x286937;this[_0x26bb70(0x124)]['getTypeOfUnitAdded$'](o[_0x26bb70(0x103)]['UNIVER_SHEET'])[_0x26bb70(0xea)](I['takeUntil'](this['dispose$']))[_0x26bb70(0x138)](async _0x31c67e=>{const _0x4c11da=_0x26bb70,_0x5f127a=_0x31c67e[_0x4c11da(0xcd)]();this[_0x4c11da(0x186)][_0x4c11da(0xbb)](_0x5f127a)||this[_0x4c11da(0xeb)](_0x5f127a);}),this['_univerInstanceService'][_0x26bb70(0x17b)](o[_0x26bb70(0x103)][_0x26bb70(0xc4)])[_0x26bb70(0xea)](I[_0x26bb70(0xc9)](this[_0x26bb70(0xdc)]))[_0x26bb70(0x138)](_0xb9e470=>{const _0x373dea=_0x26bb70,_0x5639ed=_0xb9e470['getUnitId'](),_0x37de13=this['_entities'][_0x373dea(0x10c)](_0x5639ed);_0x37de13==null||_0x37de13[_0x373dea(0xf0)]();});}async['_startLiveShareCoordinator'](_0x74833c){const _0x191cf3=_0x286937,_0x2438a1=await this['_collabSessionService'][_0x191cf3(0xb5)](_0x74833c),_0x227f6e=this[_0x191cf3(0x18b)][_0x191cf3(0xec)](exports[_0x191cf3(0x142)],_0x74833c,_0x2438a1);return _0x227f6e[_0x191cf3(0x18c)](),this[_0x191cf3(0x186)][_0x191cf3(0xd9)](_0x74833c,_0x227f6e),_0x227f6e;}},exports['LiveShareController']=P([S(0x0,o[_0x286937(0xbc)]),S(0x1,o[_0x286937(0xdf)](o[_0x286937(0x14e)])),S(0x2,o[_0x286937(0xdf)](b[_0x286937(0xbd)]))],exports[_0x286937(0x151)]);var u=(_0x44c409=>(_0x44c409[_0x286937(0x102)]=_0x286937(0x17c),_0x44c409['IDLE']=_0x286937(0x154),_0x44c409[_0x286937(0xd6)]='following',_0x44c409[_0x286937(0x16b)]='not-following',_0x44c409[_0x286937(0x11d)]=_0x286937(0x15c),_0x44c409))(u||{});function _0x158b(){const _0x4a15a7=['getMemberID','set','override','evenodd','dispose$','_sharedOperations','ONLINE','Inject','startFollowing','stopPresenting','3109580WDiWyI','IDLE','onCommandExecuted','presenter','_stopFollowing','_beIdle','displayName','UNIVER_UNKNOWN','pipe','_startLiveShareCoordinator','createInstance','RxDisposable','_collabSession','useState','dispose','sessionStatus$','registerDependencies','mask','values','live-share-icon','unsubscribe','univerjs-icon\x20univerjs-icon-','status$','IUIPartsService','string','Disposable','LiveShareService','next','LIVESHARE_NEW_HOST','_handleTerminate','Fragment','div','OFFLINE','UniverInstanceType','toStringTag','toString','_status$','BuiltInUIPart','useDependency','_status','live-share.config','_unitID','get','sheet','length','tag','defIds','getOwnPropertyDescriptor','_commandDisposable','delete','forwardRef','complete','onRendered','trim','LIVESHARE_TERMINATE','getInitialStates','_startFollowing','199827CkoRJd','SetZoomRatioOperation','PRESENTING','_fetchOperations','url(#$1','UniverCollaborationClientPlugin','LIVESHARE_OPERATION','map','find','_univerInstanceService','stopFollowing','random','UniverIcon','attrs','colorChannel1','DesktopLiveShareController','from','data','children','Subject','_configService','SetWorksheetActiveOperation','registerSharedOperation','useObservable','unitId','toDisposable','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','svg','You\x27re\x20presenting\x20the\x20document','subscribe','231924MJPWvy','_handleOperation','SAME_OPERATION_SHARE_INTERVAL','touchDependencies','disposeWithMe','You\x27are\x20offline.','_commandService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','default','LiveShareCoordinator','_startPresenting','mutations','throttleTime','HEADER_MENU','UNIVER_LIVE_SHARE_PLUGIN','Stop\x20following','setConfig','shouldShareOperation','substring','Stop\x20presenting','useEffect','Injector','jsx','defs','LiveShareController','_config','stringify','idle','You\x27re\x20not\x20following\x20the\x20presenter','_presenter','_collabSessionService','assign','DisposableCollection','3Vlhzyk','connectInjector','presenting','18XNjEXc','reverse','send','entries','getStatus','includes','Button','getLiveShareCoordinatorSync','clsx','add','SessionStatus','defineProperty','_stopPresenting','1em','NOT_FOLLOWING','18GcnbNl','You\x27re\x20following\x20the\x20presenter','parseProtocolChangeset','http://www.w3.org/2000/svg','not-following','createElement','currentColor','registerInitialStateReporter','_reporters','following','Present\x20this\x20document','CollaborationEvent','replace','IConfigService','none','getTypeOfUnitDisposed$','offline','813208pkZKpf','_liveShareService','end','57099UFcBSO','InsertSheetMutation','NEW_CHANGESETS','forEach','symbol','idSuffix','_entities','univer-mb-3\x20univer-w-full\x20univer-text-sm','_init','getConfig','memberID','_injector','init','_handleNewChangeSets','requireSession','LiveShare','fill','LIVESHARE_REQUEST_HOST','_uiPartsService','DependentOn','has','IUniverInstanceService','CollaborationSessionService','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','_handleNewHost','464390hJFzir','BehaviorSubject','jsxs','xlink:href','UNIVER_SHEET','button','getLiveShareCoordinator','current','1212136mXPYIr','takeUntil','params','mergeOverrideWithDependencies','path','getUnitId','UniverLiveSharePlugin','type','_handleOffline','use','_mountLiveShare','tryStartPresenting','_handleOnline','clear','FOLLOWING','merge'];_0x158b=function(){return _0x4a15a7;};return _0x158b();}const k=_0x286937(0x13b),q=0xc8;exports['LiveShareCoordinator']=class extends o[_0x286937(0xed)]{constructor(_0x338e0d,_0x1f572f,_0x34f303,_0x5ca9db,_0x3399fe){const _0x355593=_0x286937;super(),_(this,_0x355593(0x106),new O[(_0x355593(0xc1))](_0x355593(0x154))),_(this,_0x355593(0xf8),this['_status$']['asObservable']()),_(this,'_init',!0x1),_(this,_0x355593(0x112),null),_(this,_0x355593(0x156),null),(this[_0x355593(0x10b)]=_0x338e0d,this[_0x355593(0xee)]=_0x1f572f,this[_0x355593(0x12f)]=_0x34f303,this[_0x355593(0x17e)]=_0x5ca9db,this['_commandService']=_0x3399fe);}get[_0x286937(0x109)](){const _0xb1c9c6=_0x286937;return this[_0xb1c9c6(0x106)]['getValue']();}['dispose'](){const _0x286148=_0x286937;var _0x2342d7;(_0x2342d7=this[_0x286148(0x112)])==null||_0x2342d7[_0x286148(0xf0)](),this[_0x286148(0x106)]['next']('idle'),this['_status$'][_0x286148(0x115)]();}[_0x286937(0x161)](){const _0x31e17c=_0x286937;return this[_0x31e17c(0x109)];}[_0x286937(0x18c)](){const _0x541040=_0x286937;this[_0x541040(0x188)]||(this['_init']=!0x0,this['_collabSession'][_0x541040(0xf1)][_0x541040(0xea)](I[_0x541040(0xc9)](this[_0x541040(0xdc)]))['subscribe'](_0x4c0c21=>{const _0x26422b=_0x541040;switch(_0x4c0c21){case b[_0x26422b(0x167)]['OFFLINE']:this[_0x26422b(0xd0)]();break;case b[_0x26422b(0x167)][_0x26422b(0xde)]:this[_0x26422b(0xd4)]();break;}}),this['_collabSession']['event$'][_0x541040(0xea)](I[_0x541040(0xc9)](this[_0x541040(0xdc)]))[_0x541040(0x138)](_0xc5c272=>{const _0x59f729=_0x541040,{eventID:_0x4f6739}=_0xc5c272;switch(_0x4f6739){case d[_0x59f729(0x177)][_0x59f729(0xfe)]:this[_0x59f729(0xbf)](_0xc5c272);break;case d[_0x59f729(0x177)][_0x59f729(0x121)]:this[_0x59f729(0x13a)](_0xc5c272);break;case d[_0x59f729(0x177)][_0x59f729(0x118)]:this[_0x59f729(0xff)]();break;case d[_0x59f729(0x177)][_0x59f729(0x182)]:this[_0x59f729(0xb4)](_0xc5c272);break;}}));}[_0x286937(0xd3)](){const _0xf7a365=_0x286937;this[_0xf7a365(0xee)][_0xf7a365(0x15f)]({'eventID':d[_0xf7a365(0x177)][_0xf7a365(0xb8)],'data':{'unitID':this[_0xf7a365(0x10b)],'userID':this[_0xf7a365(0xee)][_0xf7a365(0xd8)]()}},this[_0xf7a365(0x10b)]);}[_0x286937(0xe1)](){const _0x77d9c9=_0x286937;this[_0x77d9c9(0x109)]===_0x77d9c9(0x15c)&&(this['_status$'][_0x77d9c9(0xfd)](_0x77d9c9(0x154)),this['_collabSession']['send']({'eventID':d[_0x77d9c9(0x177)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x286937(0xe0)](){const _0x289c0d=_0x286937;this[_0x289c0d(0x109)]===_0x289c0d(0x170)&&(this[_0x289c0d(0x106)][_0x289c0d(0xfd)](_0x289c0d(0x175)),this[_0x289c0d(0x11a)]());}[_0x286937(0x125)](){const _0x27b8a8=_0x286937;this['_status']===_0x27b8a8(0x175)&&this['_stopFollowing']();}[_0x286937(0xbf)](_0x5ee7ee){const _0x59ef7b=_0x286937,{presenter:_0x67c70f}=_0x5ee7ee[_0x59ef7b(0x12c)],_0x532e69=this['_collabSession'][_0x59ef7b(0xd8)]();this[_0x59ef7b(0x156)]=_0x67c70f,_0x67c70f===_0x532e69?(this[_0x59ef7b(0xe6)](),this[_0x59ef7b(0x143)]()):this[_0x59ef7b(0x109)]!=='not-following'&&(this[_0x59ef7b(0x169)](),this[_0x59ef7b(0x11a)]());}[_0x286937(0x11e)](){const _0x2e6ff2=_0x286937,_0x5af39a={'eventID':d[_0x2e6ff2(0x177)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x2e6ff2(0xee)][_0x2e6ff2(0x15f)](_0x5af39a,this[_0x2e6ff2(0x10b)]);}[_0x286937(0xff)](){const _0x4cec83=_0x286937;this[_0x4cec83(0x156)]=null,this['_status']!==_0x4cec83(0x15c)&&this[_0x4cec83(0xe7)]();}[_0x286937(0xb4)](_0x5382a6){const _0x5678ef=_0x286937;if(this[_0x5678ef(0x109)]===_0x5678ef(0x175)&&this[_0x5678ef(0x156)]===_0x5382a6['data'][_0x5678ef(0x18a)]){const _0x5dd8dc=d[_0x5678ef(0x16e)](_0x5382a6[_0x5678ef(0x12c)])[_0x5678ef(0x144)][_0x5678ef(0x15e)]()[_0x5678ef(0x123)](_0x52f781=>_0x52f781['id']===C[_0x5678ef(0x181)]['id']);if(_0x5dd8dc){const _0xebbe4b=_0x5dd8dc[_0x5678ef(0xca)][_0x5678ef(0x133)],_0x285d19=_0x5dd8dc[_0x5678ef(0xca)][_0x5678ef(0x10d)]['id'];setTimeout(()=>{const _0x421b86=_0x5678ef;this[_0x421b86(0x13f)]['executeCommand'](C[_0x421b86(0x130)]['id'],{'unitId':_0xebbe4b,'subUnitId':_0x285d19},{'fromCollab':!0x0});});}}}[_0x286937(0x143)](){const _0x338e60=_0x286937;this[_0x338e60(0x106)][_0x338e60(0xfd)](_0x338e60(0x15c));const _0x43ebc4=new Map(),_0xf918d0=this['_commandDisposable']=new o[(_0x338e60(0x159))]();_0xf918d0[_0x338e60(0x166)](o[_0x338e60(0x134)](()=>{const _0x59be45=_0x338e60;_0x43ebc4['forEach'](_0x2b278f=>_0x2b278f['complete']()),_0x43ebc4[_0x59be45(0xd5)]();})),_0xf918d0[_0x338e60(0x166)](this[_0x338e60(0x13f)][_0x338e60(0xe4)](_0x1b52c1=>{const _0x249f92=_0x338e60;var _0x257c62;if(_0x1b52c1[_0x249f92(0xcf)]!==o['CommandType']['OPERATION']||!this[_0x249f92(0x17e)][_0x249f92(0x14a)](_0x1b52c1['id']))return;const {id:_0x432500}=_0x1b52c1;let _0x54a7a8;_0x43ebc4['has'](_0x432500)?_0x54a7a8=_0x43ebc4['get'](_0x432500):(_0x54a7a8=new O[(_0x249f92(0x12e))](),_0x43ebc4['set'](_0x432500,_0x54a7a8),_0x54a7a8[_0x249f92(0xea)](I[_0x249f92(0x145)]((_0x257c62=this[_0x249f92(0x12f)][_0x249f92(0x189)](k))!=null?_0x257c62:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x249f92(0x138)](_0xd5ae89=>{const _0x5498a8=_0x249f92;this[_0x5498a8(0xee)][_0x5498a8(0x15f)]({'eventID':d[_0x5498a8(0x177)][_0x5498a8(0x121)],'data':{'unitID':this[_0x5498a8(0x10b)],'operations':{[_0xd5ae89['id']]:{'id':_0xd5ae89['id'],'params':JSON['stringify'](_0xd5ae89[_0x5498a8(0xca)])}}}},this[_0x5498a8(0x10b)]);})),_0x54a7a8[_0x249f92(0xfd)](_0x1b52c1);})),this[_0x338e60(0x17e)]['getInitialStates'](this['_unitID'])[_0x338e60(0x183)](_0x5d452e=>this['_collabSession'][_0x338e60(0x15f)]({'eventID':d[_0x338e60(0x177)][_0x338e60(0x121)],'data':{'unitID':this[_0x338e60(0x10b)],'operations':{[_0x5d452e['id']]:{'id':_0x5d452e['id'],'params':JSON[_0x338e60(0x153)](_0x5d452e['params'])}}}},this[_0x338e60(0x10b)]));}[_0x286937(0x169)](){const _0x31062c=_0x286937;var _0x55740a;this['_status$'][_0x31062c(0xfd)](_0x31062c(0x154)),(_0x55740a=this[_0x31062c(0x112)])==null||_0x55740a[_0x31062c(0xf0)](),this[_0x31062c(0x112)]=null;}[_0x286937(0x11a)](){const _0x4a15a9=_0x286937;var _0x3ed257;(_0x3ed257=this[_0x4a15a9(0x112)])==null||_0x3ed257[_0x4a15a9(0xf0)](),this[_0x4a15a9(0x106)][_0x4a15a9(0xfd)](_0x4a15a9(0x175));}[_0x286937(0xe7)](){const _0x3a7413=_0x286937;var _0x52e181;this['_status$']['next']('idle'),(_0x52e181=this[_0x3a7413(0x112)])==null||_0x52e181[_0x3a7413(0xf0)](),this[_0x3a7413(0x112)]=null;}[_0x286937(0xe6)](){const _0x172ded=_0x286937;var _0x5d5aa0;this['_status$']['next'](_0x172ded(0x170)),(_0x5d5aa0=this[_0x172ded(0x112)])==null||_0x5d5aa0[_0x172ded(0xf0)]();}[_0x286937(0x13a)](_0x55eb0b){const _0x17170=_0x286937;if([_0x17170(0x15c),_0x17170(0x170),_0x17170(0x17c)][_0x17170(0x162)](this['_status'])||!_0x55eb0b[_0x17170(0x12c)][_0x17170(0xe5)]||_0x55eb0b[_0x17170(0x12c)][_0x17170(0xe5)]===this[_0x17170(0xee)]['getMemberID']())return;this[_0x17170(0x109)]==='idle'&&this[_0x17170(0x11a)]();const _0x30c235=_0x55eb0b['data']['operations'];Object[_0x17170(0xf4)](_0x30c235)[_0x17170(0x183)](_0x3e50e8=>{this['_commandService']['executeCommand'](_0x3e50e8['id'],_0x3e50e8['params']?JSON['parse'](_0x3e50e8['params']):null,{'fromCollab':!0x0});});}[_0x286937(0xd0)](){const _0x575643=_0x286937;var _0x162e1c;this[_0x575643(0x106)][_0x575643(0xfd)](_0x575643(0x17c)),(_0x162e1c=this['_commandDisposable'])==null||_0x162e1c['dispose']();}[_0x286937(0xd4)](){const _0x526991=_0x286937;this[_0x526991(0x106)][_0x526991(0xfd)]('idle'),this['_fetchOperations']();}},exports[_0x286937(0x142)]=P([S(0x2,o[_0x286937(0x179)]),S(0x3,o[_0x286937(0xdf)](E)),S(0x4,o['ICommandService'])],exports[_0x286937(0x142)]);function $(){const _0x45187c=_0x286937,_0x30d68e=p[_0x45187c(0x108)](exports[_0x45187c(0x151)]),_0x5681f0=p[_0x45187c(0x108)](o[_0x45187c(0xbc)]),_0x231f06=p[_0x45187c(0x132)](()=>_0x5681f0['getCurrentTypeOfUnit$'](o['UniverInstanceType'][_0x45187c(0xc4)]),void 0x0,!0x1,[]),[_0x5640ab,_0x5b8565]=v[_0x45187c(0xef)](null),[_0x43c787,_0x16000f]=v[_0x45187c(0xef)](u[_0x45187c(0xe3)]),_0x4b6a13=v['useRef'](null);return v[_0x45187c(0x14d)](()=>(_0x231f06&&_0x30d68e['getLiveShareCoordinator'](_0x231f06['getUnitId']())['then'](_0x507611=>{const _0x5505da=_0x45187c;_0x5b8565(_0x507611),_0x4b6a13['current']=_0x507611['status$'][_0x5505da(0x138)](_0x4a1316=>{_0x16000f(_0x4a1316);});}),()=>{const _0x143971=_0x45187c;var _0x17d2bf;(_0x17d2bf=_0x4b6a13[_0x143971(0xc7)])==null||_0x17d2bf[_0x143971(0xf6)](),_0x4b6a13[_0x143971(0xc7)]=null;}),[_0x231f06,_0x30d68e]),_0x5640ab?l['jsx'](f['Dropdown'],{'align':_0x45187c(0x17f),'disabled':_0x43c787===u[_0x45187c(0x102)],'className':_0x45187c(0x135),'overlay':l[_0x45187c(0x14f)](W,{'status':_0x43c787,'coordinator':_0x5640ab}),'children':l[_0x45187c(0x14f)](_0x45187c(0xc5),{'className':f[_0x45187c(0x165)](_0x45187c(0x140),{'univer-cursor-not-allowed':_0x43c787===u[_0x45187c(0x102)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x43c787!==u[_0x45187c(0x102)]}),'type':_0x45187c(0xc5),'children':l['jsx'](R,{'className':'univer-size-4'})})}):null;}function W(_0x918dbb){const _0x166e21=_0x286937,{status:_0x101132,coordinator:_0x22b4c1}=_0x918dbb;switch(_0x101132){case u[_0x166e21(0xe3)]:return l[_0x166e21(0x14f)](G,{'coordinator':_0x22b4c1});case u[_0x166e21(0xd6)]:return l['jsx'](B,{'coordinator':_0x22b4c1});case u['NOT_FOLLOWING']:return l[_0x166e21(0x14f)](Y,{'coordinator':_0x22b4c1});case u['OFFLINE']:return l['jsx'](J,{});case u['PRESENTING']:return l[_0x166e21(0x14f)](Z,{'coordinator':_0x22b4c1});default:return null;}}function G(_0x5d279b){const _0x415d44=_0x286937,{coordinator:_0x21244f}=_0x5d279b;return l[_0x415d44(0xc2)](l['Fragment'],{'children':[l[_0x415d44(0x14f)](_0x415d44(0x101),{'className':_0x415d44(0x187),'children':_0x415d44(0x176)}),l['jsx'](f[_0x415d44(0x163)],{'onClick':()=>_0x21244f[_0x415d44(0xd3)](),'children':'Start'})]});}function B(_0x56c1db){const _0x184109=_0x286937,{coordinator:_0x4ba151}=_0x56c1db;return l[_0x184109(0xc2)](l['Fragment'],{'children':[l[_0x184109(0x14f)](_0x184109(0x101),{'className':_0x184109(0x187),'children':_0x184109(0x16d)}),l['jsx'](f['Button'],{'onClick':()=>_0x4ba151[_0x184109(0x125)](),'children':_0x184109(0x148)})]});}function Y(_0x26f7a3){const _0x15085c=_0x286937,{coordinator:_0x2115a9}=_0x26f7a3;return l[_0x15085c(0xc2)](l['Fragment'],{'children':[l[_0x15085c(0x14f)](_0x15085c(0x101),{'className':_0x15085c(0x187),'children':_0x15085c(0x155)}),l[_0x15085c(0x14f)](f[_0x15085c(0x163)],{'variant':'text','onClick':()=>_0x2115a9[_0x15085c(0xe0)](),'children':'Start\x20following'})]});}function Z(_0x2a92da){const _0x32ff20=_0x286937,{coordinator:_0x42d6fa}=_0x2a92da;return l['jsxs'](l[_0x32ff20(0x100)],{'children':[l[_0x32ff20(0x14f)](_0x32ff20(0x101),{'className':_0x32ff20(0x187),'children':_0x32ff20(0x137)}),l[_0x32ff20(0x14f)](f['Button'],{'variant':_0x32ff20(0x141),'onClick':()=>_0x42d6fa[_0x32ff20(0xe1)](),'children':_0x32ff20(0x14c)})]});}function J(){const _0x3e510b=_0x286937;return l[_0x3e510b(0x14f)](l[_0x3e510b(0x100)],{'children':_0x3e510b(0x13e)});}function _0x4e45(_0x4cbc3d,_0xe27694){const _0x158bf1=_0x158b();return _0x4e45=function(_0x4e4540,_0x3116fc){_0x4e4540=_0x4e4540-0xb4;let _0x38aee1=_0x158bf1[_0x4e4540];return _0x38aee1;},_0x4e45(_0x4cbc3d,_0xe27694);}var K=Object[_0x286937(0x111)],z=(_0xa886d3,_0xa61e17,_0x30d05e,_0x315ad2)=>{const _0x22c6b=_0x286937;for(var _0x18b02d=_0x315ad2>0x1?void 0x0:_0x315ad2?K(_0xa61e17,_0x30d05e):_0xa61e17,_0x56a5b6=_0xa886d3[_0x22c6b(0x10e)]-0x1,_0x305c8f;_0x56a5b6>=0x0;_0x56a5b6--)(_0x305c8f=_0xa886d3[_0x56a5b6])&&(_0x18b02d=_0x305c8f(_0x18b02d)||_0x18b02d);return _0x18b02d;},L=(_0x47716b,_0x5e252e)=>(_0x2e8b14,_0x129d2e)=>_0x5e252e(_0x2e8b14,_0x129d2e,_0x47716b);exports['DesktopLiveShareController']=class extends o['Disposable']{constructor(_0x178e56,_0x2d3e19){const _0x48b4c7=_0x286937;super(),this[_0x48b4c7(0x18b)]=_0x178e56,this[_0x48b4c7(0xb9)]=_0x2d3e19,this['_mountLiveShare']();}[_0x286937(0xd2)](){const _0x387f61=_0x286937;this[_0x387f61(0x13d)](this[_0x387f61(0xb9)]['registerComponent'](p[_0x387f61(0x107)][_0x387f61(0x146)],()=>p[_0x387f61(0x15b)]($,this[_0x387f61(0x18b)])));}},exports[_0x286937(0x12a)]=z([L(0x0,o[_0x286937(0xdf)](o[_0x286937(0x14e)])),L(0x1,p[_0x286937(0xf9)])],exports[_0x286937(0x12a)]);const Q=_0x286937(0x10a),w={};var X=Object[_0x286937(0x111)],ee=(_0x4b942d,_0x3cdcfc,_0x1da7fd,_0x172fc2)=>{const _0x301b37=_0x286937;for(var _0x1ffd72=_0x172fc2>0x1?void 0x0:_0x172fc2?X(_0x3cdcfc,_0x1da7fd):_0x3cdcfc,_0x5e818b=_0x4b942d[_0x301b37(0x10e)]-0x1,_0x580fc3;_0x5e818b>=0x0;_0x5e818b--)(_0x580fc3=_0x4b942d[_0x5e818b])&&(_0x1ffd72=_0x580fc3(_0x1ffd72)||_0x1ffd72);return _0x1ffd72;},te=(_0x459780,_0x3ad60c)=>(_0x325c50,_0x2f6ee4)=>_0x3ad60c(_0x325c50,_0x2f6ee4,_0x459780);let m=class extends o[_0x286937(0xfb)]{constructor(_0x359f35){const _0x5269e0=_0x286937;super(),this[_0x5269e0(0x17e)]=_0x359f35,this['_init']();}['_init'](){const _0xe489a6=_0x286937;[D[_0xe489a6(0x11c)]['id'],D['SetScrollOperation']['id'],C[_0xe489a6(0x130)]['id']]['forEach'](_0xf06ad4=>{const _0x3cb842=_0xe489a6;this['disposeWithMe'](this[_0x3cb842(0x17e)][_0x3cb842(0x131)](_0xf06ad4));});}};m=ee([te(0x0,o[_0x286937(0xdf)](E))],m);var ie=Object[_0x286937(0x168)],se=Object[_0x286937(0x111)],ne=(_0x2d6204,_0xee05e3,_0x58213e)=>_0xee05e3 in _0x2d6204?ie(_0x2d6204,_0xee05e3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58213e}):_0x2d6204[_0xee05e3]=_0x58213e,re=(_0x311b5b,_0x54b7ac,_0x18a3c5,_0x1f50c4)=>{for(var _0x31ad16=_0x1f50c4>0x1?void 0x0:_0x1f50c4?se(_0x54b7ac,_0x18a3c5):_0x54b7ac,_0x318401=_0x311b5b['length']-0x1,_0x7968c5;_0x318401>=0x0;_0x318401--)(_0x7968c5=_0x311b5b[_0x318401])&&(_0x31ad16=_0x7968c5(_0x31ad16)||_0x31ad16);return _0x31ad16;},N=(_0x32feee,_0x28366)=>(_0x3a521e,_0x46d9ac)=>_0x28366(_0x3a521e,_0x46d9ac,_0x32feee),A=(_0xc9469,_0x5ab12a,_0x20aa93)=>ne(_0xc9469,typeof _0x5ab12a!=_0x286937(0x184)?_0x5ab12a+'':_0x5ab12a,_0x20aa93);const oe=_0x286937(0x147);exports['UniverLiveSharePlugin']=class extends o['Plugin']{constructor(_0x59b45f=w,_0x1286de,_0x4dfa3c){const _0x5746df=_0x286937;super(),this[_0x5746df(0x152)]=_0x59b45f,this['_injector']=_0x1286de,this['_configService']=_0x4dfa3c;const {..._0x1a949b}=o[_0x5746df(0xd7)]({},w,this[_0x5746df(0x152)]);this['_configService'][_0x5746df(0x149)](Q,_0x1a949b);}['onStarting'](){const _0x1ccfc9=_0x286937;o[_0x1ccfc9(0xf2)](this[_0x1ccfc9(0x18b)],o[_0x1ccfc9(0xcb)]([[E],[exports[_0x1ccfc9(0x151)]],[m],[exports['DesktopLiveShareController']]],this[_0x1ccfc9(0x152)][_0x1ccfc9(0xda)])),o['touchDependencies'](this[_0x1ccfc9(0x18b)],[[m]]);}[_0x286937(0x116)](){const _0x9cc075=_0x286937;o[_0x9cc075(0x13c)](this[_0x9cc075(0x18b)],[[exports[_0x9cc075(0x12a)]]]);}},A(exports[_0x286937(0xce)],'type',o[_0x286937(0x103)][_0x286937(0xe9)]),A(exports[_0x286937(0xce)],'pluginName',oe),exports[_0x286937(0xce)]=re([o[_0x286937(0xba)](b[_0x286937(0x120)]),N(0x1,o[_0x286937(0xdf)](o['Injector'])),N(0x2,o[_0x286937(0x179)])],exports['UniverLiveSharePlugin']),exports[_0x286937(0xb6)]=$,exports[_0x286937(0xfc)]=E,exports['LiveShareStatus']=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x2c8835=_0x446d;(function(_0x335d8a,_0x53f694){const _0x47e140=_0x446d,_0x15efdb=_0x335d8a();while(!![]){try{const _0x3609b8=-parseInt(_0x47e140(0x166))/0x1+parseInt(_0x47e140(0x167))/0x2*(-parseInt(_0x47e140(0x156))/0x3)+parseInt(_0x47e140(0x16a))/0x4+-parseInt(_0x47e140(0x14f))/0x5*(-parseInt(_0x47e140(0x14b))/0x6)+parseInt(_0x47e140(0x160))/0x7+-parseInt(_0x47e140(0x15c))/0x8+-parseInt(_0x47e140(0x151))/0x9*(-parseInt(_0x47e140(0x14c))/0xa);if(_0x3609b8===_0x53f694)break;else _0x15efdb['push'](_0x15efdb['shift']());}catch(_0x1f8464){_0x15efdb['push'](_0x15efdb['shift']());}}}(_0x3d75,0x1d5c8));import{LiveShareController as _0x241c67,LiveShareStatus as _0x7a9635}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x4c8f29}from'@univerjs/engine-render';function _0x446d(_0x19a8ce,_0x52fd48){const _0x3d7580=_0x3d75();return _0x446d=function(_0x446d79,_0x37b2b0){_0x446d79=_0x446d79-0x14b;let _0x407986=_0x3d7580[_0x446d79];return _0x407986;},_0x446d(_0x19a8ce,_0x52fd48);}import{SetWorksheetActiveOperation as _0xe8d4e8}from'@univerjs/sheets';import{SetScrollOperation as _0x26191c}from'@univerjs/sheets-ui';import{FRange as _0x52721d}from'@univerjs/sheets/facade';import{FUniver as _0x352c42,FEnum as _0x514a6e}from'@univerjs/core/facade';class I extends _0x52721d{[_0x2c8835(0x165)](_0x4960e3,_0x24e408,_0x29140d,_0x3fa3ab,_0x243dac){const _0x4b0806=_0x2c8835,_0x1d6918=_0x4960e3[_0x4b0806(0x15e)](_0x241c67),_0x3940d7=_0x4960e3[_0x4b0806(0x15e)](_0x4c8f29),_0x3e1394=_0x24e408['getUnitId'](),_0x3c360d=_0x24e408[_0x4b0806(0x153)](),_0x29f215=_0x1d6918[_0x4b0806(0x154)](_0x3e1394);(_0x29f215==null?void 0x0:_0x29f215[_0x4b0806(0x16b)]())!==_0x7a9635[_0x4b0806(0x150)]||(_0x29140d[_0x4b0806(0x152)]()!==_0x3c360d['getSheetId']()&&this[_0x4b0806(0x15b)]['executeCommand'](_0xe8d4e8['id'],{'unitId':_0x3e1394,'subUnitId':_0x29140d['getSheetId']()}),!_0x3940d7[_0x4b0806(0x14d)](_0x3e1394))||_0x243dac[_0x4b0806(0x15a)](_0x26191c['id'],{'unitId':_0x24e408['getUnitId'](),'sheetId':_0x29140d[_0x4b0806(0x152)](),'sheetViewStartRow':_0x3fa3ab[_0x4b0806(0x15f)],'sheetViewStartColumn':_0x3fa3ab[_0x4b0806(0x159)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x52721d[_0x2c8835(0x169)](I);class m extends _0x352c42{[_0x2c8835(0x14e)](){const _0x3e4837=_0x2c8835;var _0xd08e42,_0x1ceaba;const _0x3a40f9=this['_injector'][_0x3e4837(0x15e)](_0x241c67),_0x5ac724=(_0xd08e42=this[_0x3e4837(0x157)]())==null?void 0x0:_0xd08e42[_0x3e4837(0x155)]();if(!_0x5ac724)throw new Error(_0x3e4837(0x163));const _0x52ea62=_0x3a40f9[_0x3e4837(0x154)](_0x5ac724);return(_0x1ceaba=_0x52ea62==null?void 0x0:_0x52ea62[_0x3e4837(0x16b)]())!=null?_0x1ceaba:_0x7a9635[_0x3e4837(0x161)];}[_0x2c8835(0x158)](){const _0x584c95=_0x2c8835;var _0x2fe493;const _0x3bbc39=this[_0x584c95(0x168)][_0x584c95(0x15e)](_0x241c67),_0x1b29c4=(_0x2fe493=this[_0x584c95(0x157)]())==null?void 0x0:_0x2fe493[_0x584c95(0x155)]();if(!_0x1b29c4)throw new Error('No\x20active\x20workbook\x20found.');const _0x432bc6=_0x3bbc39[_0x584c95(0x154)](_0x1b29c4);if(!_0x432bc6)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x432bc6[_0x584c95(0x158)]();}[_0x2c8835(0x16c)](){const _0x1cb8b8=_0x2c8835;var _0x5797c2;const _0x40e57c=this['_injector'][_0x1cb8b8(0x15e)](_0x241c67),_0x5d824d=(_0x5797c2=this[_0x1cb8b8(0x157)]())==null?void 0x0:_0x5797c2[_0x1cb8b8(0x155)]();if(!_0x5d824d)throw new Error(_0x1cb8b8(0x163));const _0x78ed96=_0x40e57c[_0x1cb8b8(0x154)](_0x5d824d);if(!_0x78ed96)throw new Error(_0x1cb8b8(0x164));_0x78ed96[_0x1cb8b8(0x16c)]();}[_0x2c8835(0x15d)](){const _0x2bd584=_0x2c8835;var _0x4f54a5;const _0x159439=this[_0x2bd584(0x168)][_0x2bd584(0x15e)](_0x241c67),_0x100c86=(_0x4f54a5=this[_0x2bd584(0x157)]())==null?void 0x0:_0x4f54a5[_0x2bd584(0x155)]();if(!_0x100c86)throw new Error('No\x20active\x20workbook\x20found.');const _0x5a539e=_0x159439[_0x2bd584(0x154)](_0x100c86);if(!_0x5a539e)throw new Error(_0x2bd584(0x164));_0x5a539e['tryStartPresenting']();}[_0x2c8835(0x16d)](){const _0x4b554b=_0x2c8835;var _0x11dcbd;const _0x158adc=this[_0x4b554b(0x168)][_0x4b554b(0x15e)](_0x241c67),_0x677b7b=(_0x11dcbd=this['getActiveWorkbook']())==null?void 0x0:_0x11dcbd[_0x4b554b(0x155)]();if(!_0x677b7b)throw new Error(_0x4b554b(0x163));const _0x1bdfe0=_0x158adc[_0x4b554b(0x154)](_0x677b7b);if(!_0x1bdfe0)throw new Error(_0x4b554b(0x164));_0x1bdfe0[_0x4b554b(0x16d)]();}}_0x352c42['extend'](m);class C extends _0x514a6e{get[_0x2c8835(0x162)](){return _0x7a9635;}}_0x514a6e[_0x2c8835(0x169)](C);function _0x3d75(){const _0x4e361a=['extend','954812JpYvuM','getStatus','stopFollowing','stopPresenting','246ukYLEZ','26230JMkrbO','getRenderById','getLiveShareStatus','3330mVANJs','PRESENTING','81WHbObp','getSheetId','getActiveSheet','getLiveShareCoordinatorSync','getId','3DCUzcf','getActiveWorkbook','startFollowing','startColumn','syncExecuteCommand','_commandService','876144EwMytE','startPresenting','get','startRow','1681302HAPfxX','IDLE','LiveShareStatusEnum','No\x20active\x20workbook\x20found.','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_initialize','189514nFCYip','221012tiivii','_injector'];_0x3d75=function(){return _0x4e361a;};return _0x3d75();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2c17bd=_0x6dcd;(function(_0x46eab9,_0x3f9f6e){const _0x372050=_0x6dcd,_0x163203=_0x46eab9();while(!![]){try{const _0x2f00ac=-parseInt(_0x372050(0x1f7))/0x1+parseInt(_0x372050(0x266))/0x2*(parseInt(_0x372050(0x1e7))/0x3)+-parseInt(_0x372050(0x246))/0x4*(-parseInt(_0x372050(0x218))/0x5)+-parseInt(_0x372050(0x21c))/0x6*(-parseInt(_0x372050(0x1e5))/0x7)+-parseInt(_0x372050(0x1ff))/0x8*(-parseInt(_0x372050(0x1dd))/0x9)+parseInt(_0x372050(0x1fe))/0xa+-parseInt(_0x372050(0x1d4))/0xb;if(_0x2f00ac===_0x3f9f6e)break;else _0x163203['push'](_0x163203['shift']());}catch(_0x4a332d){_0x163203['push'](_0x163203['shift']());}}}(_0xae52,0x2ddb1));var J=Object['defineProperty'],K=(_0x35970c,_0x3ab2be,_0x4465cc)=>_0x3ab2be in _0x35970c?J(_0x35970c,_0x3ab2be,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4465cc}):_0x35970c[_0x3ab2be]=_0x4465cc,u=(_0x22a061,_0x191ca2,_0x191e6c)=>K(_0x22a061,typeof _0x191ca2!=_0x2c17bd(0x1d3)?_0x191ca2+'':_0x191ca2,_0x191e6c);import{Disposable as _0x340cc7,toDisposable as _0x1aa50a,IUniverInstanceService as _0x9a2b99,Inject as _0xb91b10,Injector as _0x13efe5,IConfigService as _0x45ac9b,ICommandService as _0x147916,RxDisposable as _0x1729a0,UniverInstanceType as _0x45889c,DisposableCollection as _0x4a90c4,CommandType as _0x4010de,DependentOn as _0x1c6ccb,Plugin as _0x24270d,merge as _0x51df76,registerDependencies as _0x312d92,mergeOverrideWithDependencies as _0x43af49,touchDependencies as _0x5199da}from'@univerjs/core';import{useDependency as _0x1bfba8,useObservable as _0x206e01,IUIPartsService as _0x2066c5,BuiltInUIPart as _0x1bd2e1,connectInjector as _0x33bb9e}from'@univerjs/ui';import{jsx as _0x76a09b,jsxs as _0x490d08,Fragment as _0x1c44c8}from'react/jsx-runtime';import{Dropdown as _0x39b390,clsx as _0x3e4a67,Button as _0x2cafee}from'@univerjs/design';import{useRef as _0x470657,createElement as _0x690b7e,forwardRef as _0x22f24d,useState as _0x14fd36,useEffect as _0x23e84d}from'react';import{CollaborationEvent as _0x51a117,parseProtocolChangeset as _0x1db3a1}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x228d40,SessionStatus as _0x79de65,UniverCollaborationClientPlugin as _0x172e42}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x288a71,SetWorksheetActiveOperation as _0x411a50}from'@univerjs/sheets';import{BehaviorSubject as _0x530a32,Subject as _0x517350}from'rxjs';import{takeUntil as _0x1f1c93,throttleTime as _0x3d7821}from'rxjs/operators';import{SetZoomRatioOperation as _0x3270d8,SetScrollOperation as _0x552a0c}from'@univerjs/sheets-ui';function k({ref:_0x1df001,..._0x513bb3}){const _0x354358=_0x2c17bd,{icon:_0x41d999,id:_0x3a64c2,className:_0x2ad4d2,extend:_0x401ca8,..._0x35a9d5}=_0x513bb3,_0x357d63=(_0x354358(0x249)+_0x3a64c2+'\x20'+(_0x2ad4d2||''))[_0x354358(0x22e)](),_0x3bd686=_0x470657('_'+Oe());return G(_0x41d999,''+_0x3a64c2,{'defIds':_0x41d999[_0x354358(0x21d)],'idSuffix':_0x3bd686['current']},{'ref':_0x1df001,'className':_0x357d63,..._0x35a9d5},_0x401ca8);}function G(_0x5a6ee8,_0x586d64,_0xada4dc,_0x3ebb1f,_0x4a6f3f){const _0x5e05ae=_0x2c17bd;return _0x690b7e(_0x5a6ee8[_0x5e05ae(0x273)],{'key':_0x586d64,...be(_0x5a6ee8,_0xada4dc,_0x4a6f3f),..._0x3ebb1f},(Ee(_0x5a6ee8,_0xada4dc)['children']||[])[_0x5e05ae(0x22d)]((_0x30a27b,_0x3c71c4)=>G(_0x30a27b,_0x586d64+'-'+_0x5a6ee8[_0x5e05ae(0x273)]+'-'+_0x3c71c4,_0xada4dc,void 0x0,_0x4a6f3f)));}function be(_0x4f137d,_0xa6c78e,_0x437c49){const _0x4b4d1f=_0x2c17bd,_0x44902f={..._0x4f137d[_0x4b4d1f(0x1f5)]};_0x437c49!=null&&_0x437c49[_0x4b4d1f(0x268)]&&_0x44902f[_0x4b4d1f(0x217)]===_0x4b4d1f(0x268)&&(_0x44902f[_0x4b4d1f(0x217)]=_0x437c49['colorChannel1']),_0x4f137d[_0x4b4d1f(0x273)]==='mask'&&_0x44902f['id']&&(_0x44902f['id']=_0x44902f['id']+_0xa6c78e[_0x4b4d1f(0x23e)]),Object[_0x4b4d1f(0x1e0)](_0x44902f)[_0x4b4d1f(0x252)](([_0x40353a,_0x11371d])=>{const _0x2d2c9b=_0x4b4d1f;_0x40353a===_0x2d2c9b(0x210)&&typeof _0x11371d==_0x2d2c9b(0x25e)&&(_0x44902f[_0x40353a]=_0x11371d[_0x2d2c9b(0x1f8)](/url\(#(.*)\)/,'url(#$1'+_0xa6c78e[_0x2d2c9b(0x23e)]+')'));});const {defIds:_0xf09bbc}=_0xa6c78e;return!_0xf09bbc||_0xf09bbc[_0x4b4d1f(0x225)]===0x0||(_0x4f137d[_0x4b4d1f(0x273)]===_0x4b4d1f(0x275)&&_0x44902f[_0x4b4d1f(0x24a)]&&(_0x44902f[_0x4b4d1f(0x24a)]=_0x44902f[_0x4b4d1f(0x24a)]+_0xa6c78e['idSuffix']),Object[_0x4b4d1f(0x1e0)](_0x44902f)[_0x4b4d1f(0x252)](([_0x19d350,_0x1d4ae8])=>{const _0x5d1565=_0x4b4d1f;typeof _0x1d4ae8==_0x5d1565(0x25e)&&(_0x44902f[_0x19d350]=_0x1d4ae8[_0x5d1565(0x1f8)](/url\(#(.*)\)/,_0x5d1565(0x1f1)+_0xa6c78e['idSuffix']+')'));})),_0x44902f;}function Ee(_0x2e1a6f,_0x2ad328){const _0x3fa413=_0x2c17bd;var _0x37c9f4;const {defIds:_0x5bc420}=_0x2ad328;return!_0x5bc420||_0x5bc420[_0x3fa413(0x225)]===0x0?_0x2e1a6f:_0x2e1a6f[_0x3fa413(0x273)]===_0x3fa413(0x226)&&((_0x37c9f4=_0x2e1a6f['children'])!=null&&_0x37c9f4[_0x3fa413(0x225)])?{..._0x2e1a6f,'children':_0x2e1a6f[_0x3fa413(0x243)][_0x3fa413(0x22d)](_0x28888b=>typeof _0x28888b[_0x3fa413(0x1f5)]['id']==_0x3fa413(0x25e)&&_0x5bc420&&_0x5bc420['includes'](_0x28888b[_0x3fa413(0x1f5)]['id'])?{..._0x28888b,'attrs':{..._0x28888b['attrs'],'id':_0x28888b[_0x3fa413(0x1f5)]['id']+_0x2ad328['idSuffix']}}:_0x28888b)}:_0x2e1a6f;}function Oe(){const _0xaf154c=_0x2c17bd;return Math['random']()[_0xaf154c(0x1d5)](0x24)[_0xaf154c(0x265)](0x2,0x8);}k[_0x2c17bd(0x23c)]='UniverIcon';const we={'tag':_0x2c17bd(0x1dc),'attrs':{'xmlns':_0x2c17bd(0x25f),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x2c17bd(0x271),'height':_0x2c17bd(0x271)},'children':[{'tag':_0x2c17bd(0x219),'attrs':{'fill':_0x2c17bd(0x1ee),'d':_0x2c17bd(0x1fa)}},{'tag':_0x2c17bd(0x219),'attrs':{'fill':_0x2c17bd(0x1ee),'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':_0x2c17bd(0x20c),'clipRule':'evenodd'}}]},W=_0x22f24d(function(_0x50414d,_0x4ebea5){return _0x690b7e(k,Object['assign']({},_0x50414d,{'id':'live-share-icon','ref':_0x4ebea5,'icon':we}));});W[_0x2c17bd(0x23c)]=_0x2c17bd(0x211);class L extends _0x340cc7{constructor(){const _0x2435a6=_0x2c17bd;super(...arguments),u(this,_0x2435a6(0x24f),new Set()),u(this,_0x2435a6(0x205),new Set());}[_0x2c17bd(0x20e)](_0x41c0a5){const _0x5a6bdc=_0x2c17bd;return this[_0x5a6bdc(0x24f)]['add'](_0x41c0a5),_0x1aa50a(()=>this[_0x5a6bdc(0x24f)][_0x5a6bdc(0x1d7)](_0x41c0a5));}[_0x2c17bd(0x248)](_0x5176f0){const _0x482477=_0x2c17bd;return this[_0x482477(0x205)][_0x482477(0x255)](_0x5176f0),_0x1aa50a(()=>this[_0x482477(0x205)]['delete'](_0x5176f0));}[_0x2c17bd(0x203)](_0x24d258){const _0x1e2684=_0x2c17bd;return this[_0x1e2684(0x24f)][_0x1e2684(0x22a)](_0x24d258);}[_0x2c17bd(0x257)](_0x5d77de){const _0x390056=_0x2c17bd;return Array[_0x390056(0x26a)](this['_reporters'])[_0x390056(0x22d)](_0x507a8f=>_0x507a8f(_0x5d77de));}}var Ne=Object[_0x2c17bd(0x214)],Y=(_0xd80162,_0x315b46,_0x520114,_0x5ac254)=>{const _0x45e54d=_0x2c17bd;for(var _0x3eb9d6=_0x5ac254>0x1?void 0x0:_0x5ac254?Ne(_0x315b46,_0x520114):_0x315b46,_0x42a071=_0xd80162[_0x45e54d(0x225)]-0x1,_0xa5d9a5;_0x42a071>=0x0;_0x42a071--)(_0xa5d9a5=_0xd80162[_0x42a071])&&(_0x3eb9d6=_0xa5d9a5(_0x3eb9d6)||_0x3eb9d6);return _0x3eb9d6;},_=(_0x5357c8,_0x5e2084)=>(_0x5a230b,_0x2bacba)=>_0x5e2084(_0x5a230b,_0x2bacba,_0x5357c8);let S=class extends _0x1729a0{constructor(_0x2d5315,_0x37abb6,_0x107b1f){const _0x58a46a=_0x2c17bd;super(),u(this,'_entities',new Map()),(this[_0x58a46a(0x20a)]=_0x2d5315,this[_0x58a46a(0x1d8)]=_0x37abb6,this['_collabSessionService']=_0x107b1f,this[_0x58a46a(0x1e1)]());}async[_0x2c17bd(0x1ed)](_0x4a21eb){const _0x147a9a=_0x2c17bd;return this[_0x147a9a(0x1e3)][_0x147a9a(0x22a)](_0x4a21eb)||await this[_0x147a9a(0x25c)](_0x4a21eb),this['_entities'][_0x147a9a(0x23d)](_0x4a21eb);}[_0x2c17bd(0x267)](_0x570ee6){const _0x57bc53=_0x2c17bd;var _0x1e4954;return(_0x1e4954=this[_0x57bc53(0x1e3)][_0x57bc53(0x23d)](_0x570ee6))!=null?_0x1e4954:null;}['_init'](){const _0x4e1f10=_0x2c17bd;this[_0x4e1f10(0x20a)][_0x4e1f10(0x24d)](_0x45889c[_0x4e1f10(0x1de)])[_0x4e1f10(0x1f6)](_0x1f1c93(this[_0x4e1f10(0x1e2)]))[_0x4e1f10(0x232)](async _0x485fc2=>{const _0x545891=_0x4e1f10,_0x47768c=_0x485fc2[_0x545891(0x274)]();this[_0x545891(0x1e3)][_0x545891(0x22a)](_0x47768c)||this[_0x545891(0x25c)](_0x47768c);}),this[_0x4e1f10(0x20a)][_0x4e1f10(0x1df)](_0x45889c[_0x4e1f10(0x1de)])[_0x4e1f10(0x1f6)](_0x1f1c93(this[_0x4e1f10(0x1e2)]))[_0x4e1f10(0x232)](_0x321e9a=>{const _0x31af76=_0x4e1f10,_0x22d47a=_0x321e9a[_0x31af76(0x274)](),_0x2ed8ce=this[_0x31af76(0x1e3)][_0x31af76(0x23d)](_0x22d47a);_0x2ed8ce==null||_0x2ed8ce[_0x31af76(0x241)]();});}async[_0x2c17bd(0x25c)](_0x15653a){const _0x5d7f3a=_0x2c17bd,_0x5f2b47=await this[_0x5d7f3a(0x22b)][_0x5d7f3a(0x23b)](_0x15653a),_0x46bd9b=this['_injector']['createInstance'](N,_0x15653a,_0x5f2b47);return _0x46bd9b[_0x5d7f3a(0x216)](),this[_0x5d7f3a(0x1e3)][_0x5d7f3a(0x1d1)](_0x15653a,_0x46bd9b),_0x46bd9b;}};S=Y([_(0x0,_0x9a2b99),_(0x1,_0xb91b10(_0x13efe5)),_(0x2,_0xb91b10(_0x228d40))],S);var c=(_0x48bffd=>(_0x48bffd[_0x2c17bd(0x1ef)]=_0x2c17bd(0x261),_0x48bffd[_0x2c17bd(0x26c)]=_0x2c17bd(0x201),_0x48bffd[_0x2c17bd(0x258)]=_0x2c17bd(0x253),_0x48bffd['NOT_FOLLOWING']=_0x2c17bd(0x212),_0x48bffd[_0x2c17bd(0x22f)]='presenting',_0x48bffd))(c||{});const Ce=_0x2c17bd(0x24e),De=0xc8;let N=class extends _0x1729a0{constructor(_0x421a24,_0x1d4fe7,_0x4e4a9e,_0x58778c,_0x255ad6){const _0x5cdd7f=_0x2c17bd;super(),u(this,_0x5cdd7f(0x204),new _0x530a32(_0x5cdd7f(0x201))),u(this,_0x5cdd7f(0x1d2),this[_0x5cdd7f(0x204)][_0x5cdd7f(0x26e)]()),u(this,_0x5cdd7f(0x1e1),!0x1),u(this,_0x5cdd7f(0x264),null),u(this,_0x5cdd7f(0x1e8),null),(this[_0x5cdd7f(0x202)]=_0x421a24,this['_collabSession']=_0x1d4fe7,this[_0x5cdd7f(0x220)]=_0x4e4a9e,this[_0x5cdd7f(0x236)]=_0x58778c,this[_0x5cdd7f(0x238)]=_0x255ad6);}get['_status'](){const _0x566241=_0x2c17bd;return this[_0x566241(0x204)][_0x566241(0x260)]();}[_0x2c17bd(0x241)](){const _0x2d9d0b=_0x2c17bd;var _0x21417d;(_0x21417d=this[_0x2d9d0b(0x264)])==null||_0x21417d[_0x2d9d0b(0x241)](),this[_0x2d9d0b(0x204)][_0x2d9d0b(0x270)](_0x2d9d0b(0x201)),this[_0x2d9d0b(0x204)][_0x2d9d0b(0x1d9)]();}[_0x2c17bd(0x1ec)](){const _0x58033f=_0x2c17bd;return this[_0x58033f(0x1da)];}[_0x2c17bd(0x216)](){const _0x31733a=_0x2c17bd;this[_0x31733a(0x1e1)]||(this[_0x31733a(0x1e1)]=!0x0,this['_collabSession'][_0x31733a(0x26f)][_0x31733a(0x1f6)](_0x1f1c93(this[_0x31733a(0x1e2)]))['subscribe'](_0x17ec45=>{const _0x38dc57=_0x31733a;switch(_0x17ec45){case _0x79de65[_0x38dc57(0x1ef)]:this['_handleOffline']();break;case _0x79de65[_0x38dc57(0x25d)]:this['_handleOnline']();break;}}),this[_0x31733a(0x26d)][_0x31733a(0x208)][_0x31733a(0x1f6)](_0x1f1c93(this['dispose$']))[_0x31733a(0x232)](_0x88aae0=>{const _0x1932c0=_0x31733a,{eventID:_0x449af1}=_0x88aae0;switch(_0x449af1){case _0x51a117['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x88aae0);break;case _0x51a117[_0x1932c0(0x240)]:this[_0x1932c0(0x215)](_0x88aae0);break;case _0x51a117['LIVESHARE_TERMINATE']:this[_0x1932c0(0x26b)]();break;case _0x51a117[_0x1932c0(0x231)]:this[_0x1932c0(0x207)](_0x88aae0);break;}}));}['tryStartPresenting'](){const _0x907710=_0x2c17bd;this[_0x907710(0x26d)]['send']({'eventID':_0x51a117[_0x907710(0x1fb)],'data':{'unitID':this[_0x907710(0x202)],'userID':this[_0x907710(0x26d)]['getMemberID']()}},this[_0x907710(0x202)]);}[_0x2c17bd(0x1f0)](){const _0x2aa2f9=_0x2c17bd;this[_0x2aa2f9(0x1da)]==='presenting'&&(this[_0x2aa2f9(0x204)][_0x2aa2f9(0x270)](_0x2aa2f9(0x201)),this[_0x2aa2f9(0x26d)][_0x2aa2f9(0x1f4)]({'eventID':_0x51a117[_0x2aa2f9(0x239)],'data':{'unitID':this[_0x2aa2f9(0x202)]}},this[_0x2aa2f9(0x202)]));}[_0x2c17bd(0x1fc)](){const _0x2d5d72=_0x2c17bd;this['_status']===_0x2d5d72(0x212)&&(this[_0x2d5d72(0x204)][_0x2d5d72(0x270)](_0x2d5d72(0x253)),this[_0x2d5d72(0x224)]());}[_0x2c17bd(0x1f3)](){const _0x2fed31=_0x2c17bd;this[_0x2fed31(0x1da)]===_0x2fed31(0x253)&&this[_0x2fed31(0x1e4)]();}['_handleNewHost'](_0x27a1d2){const _0x2ce34b=_0x2c17bd,{presenter:_0xc8a672}=_0x27a1d2[_0x2ce34b(0x237)],_0x4d8d36=this[_0x2ce34b(0x26d)]['getMemberID']();this[_0x2ce34b(0x1e8)]=_0xc8a672,_0xc8a672===_0x4d8d36?(this[_0x2ce34b(0x1e4)](),this[_0x2ce34b(0x227)]()):this[_0x2ce34b(0x1da)]!==_0x2ce34b(0x212)&&(this[_0x2ce34b(0x206)](),this[_0x2ce34b(0x224)]());}['_fetchOperations'](){const _0x1af4a7=_0x2c17bd,_0x299498={'eventID':_0x51a117[_0x1af4a7(0x25a)]};this[_0x1af4a7(0x26d)]['send'](_0x299498,this['_unitID']);}[_0x2c17bd(0x26b)](){const _0x30f54e=_0x2c17bd;this['_presenter']=null,this[_0x30f54e(0x1da)]!==_0x30f54e(0x20f)&&this[_0x30f54e(0x233)]();}[_0x2c17bd(0x207)](_0x4b0354){const _0x20ad2c=_0x2c17bd;if(this[_0x20ad2c(0x1da)]===_0x20ad2c(0x253)&&this[_0x20ad2c(0x1e8)]===_0x4b0354[_0x20ad2c(0x237)]['memberID']){const _0x22b7b6=_0x1db3a1(_0x4b0354[_0x20ad2c(0x237)])[_0x20ad2c(0x20d)][_0x20ad2c(0x21e)]()[_0x20ad2c(0x230)](_0x41a9c3=>_0x41a9c3['id']===_0x288a71['id']);if(_0x22b7b6){const _0x2e5be3=_0x22b7b6[_0x20ad2c(0x1e9)][_0x20ad2c(0x1eb)],_0xd40381=_0x22b7b6[_0x20ad2c(0x1e9)][_0x20ad2c(0x1fd)]['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x411a50['id'],{'unitId':_0x2e5be3,'subUnitId':_0xd40381},{'fromCollab':!0x0});});}}}[_0x2c17bd(0x227)](){const _0xe68353=_0x2c17bd;this[_0xe68353(0x204)][_0xe68353(0x270)](_0xe68353(0x20f));const _0x1a9045=new Map(),_0x22dea8=this[_0xe68353(0x264)]=new _0x4a90c4();_0x22dea8[_0xe68353(0x255)](_0x1aa50a(()=>{const _0x8cb478=_0xe68353;_0x1a9045[_0x8cb478(0x252)](_0x56aa2e=>_0x56aa2e[_0x8cb478(0x1d9)]()),_0x1a9045[_0x8cb478(0x1ea)]();})),_0x22dea8[_0xe68353(0x255)](this[_0xe68353(0x238)]['onCommandExecuted'](_0x49a0a8=>{const _0x4f78af=_0xe68353;var _0x7947c;if(_0x49a0a8[_0x4f78af(0x228)]!==_0x4010de['OPERATION']||!this['_liveShareService']['shouldShareOperation'](_0x49a0a8['id']))return;const {id:_0x59e605}=_0x49a0a8;let _0x14ad6a;_0x1a9045['has'](_0x59e605)?_0x14ad6a=_0x1a9045['get'](_0x59e605):(_0x14ad6a=new _0x517350(),_0x1a9045['set'](_0x59e605,_0x14ad6a),_0x14ad6a[_0x4f78af(0x1f6)](_0x3d7821((_0x7947c=this['_configService']['getConfig'](Ce))!=null?_0x7947c:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1ebcd3=>{const _0x35dfa8=_0x4f78af;this[_0x35dfa8(0x26d)][_0x35dfa8(0x1f4)]({'eventID':_0x51a117[_0x35dfa8(0x240)],'data':{'unitID':this[_0x35dfa8(0x202)],'operations':{[_0x1ebcd3['id']]:{'id':_0x1ebcd3['id'],'params':JSON[_0x35dfa8(0x1d6)](_0x1ebcd3[_0x35dfa8(0x1e9)])}}}},this[_0x35dfa8(0x202)]);})),_0x14ad6a[_0x4f78af(0x270)](_0x49a0a8);})),this[_0xe68353(0x236)][_0xe68353(0x257)](this[_0xe68353(0x202)])[_0xe68353(0x252)](_0x525933=>this[_0xe68353(0x26d)]['send']({'eventID':_0x51a117[_0xe68353(0x240)],'data':{'unitID':this[_0xe68353(0x202)],'operations':{[_0x525933['id']]:{'id':_0x525933['id'],'params':JSON[_0xe68353(0x1d6)](_0x525933[_0xe68353(0x1e9)])}}}},this[_0xe68353(0x202)]));}['_stopPresenting'](){const _0x1d9168=_0x2c17bd;var _0x24528a;this[_0x1d9168(0x204)]['next'](_0x1d9168(0x201)),(_0x24528a=this[_0x1d9168(0x264)])==null||_0x24528a[_0x1d9168(0x241)](),this[_0x1d9168(0x264)]=null;}[_0x2c17bd(0x224)](){const _0x3f915e=_0x2c17bd;var _0x61c514;(_0x61c514=this[_0x3f915e(0x264)])==null||_0x61c514['dispose'](),this['_status$'][_0x3f915e(0x270)]('following');}[_0x2c17bd(0x233)](){const _0x2c2b0b=_0x2c17bd;var _0x39c84b;this['_status$']['next'](_0x2c2b0b(0x201)),(_0x39c84b=this[_0x2c2b0b(0x264)])==null||_0x39c84b[_0x2c2b0b(0x241)](),this[_0x2c2b0b(0x264)]=null;}[_0x2c17bd(0x1e4)](){const _0x573324=_0x2c17bd;var _0x1b4944;this[_0x573324(0x204)][_0x573324(0x270)](_0x573324(0x212)),(_0x1b4944=this[_0x573324(0x264)])==null||_0x1b4944[_0x573324(0x241)]();}[_0x2c17bd(0x215)](_0x1e99cb){const _0x1cf79c=_0x2c17bd;if([_0x1cf79c(0x20f),_0x1cf79c(0x212),_0x1cf79c(0x261)][_0x1cf79c(0x213)](this[_0x1cf79c(0x1da)])||!_0x1e99cb[_0x1cf79c(0x237)]['presenter']||_0x1e99cb[_0x1cf79c(0x237)][_0x1cf79c(0x24b)]===this['_collabSession']['getMemberID']())return;this[_0x1cf79c(0x1da)]==='idle'&&this[_0x1cf79c(0x224)]();const _0x7cb88f=_0x1e99cb[_0x1cf79c(0x237)][_0x1cf79c(0x20b)];Object[_0x1cf79c(0x25b)](_0x7cb88f)[_0x1cf79c(0x252)](_0xb6fb73=>{const _0x50a750=_0x1cf79c;this[_0x50a750(0x238)][_0x50a750(0x1e6)](_0xb6fb73['id'],_0xb6fb73[_0x50a750(0x1e9)]?JSON[_0x50a750(0x234)](_0xb6fb73[_0x50a750(0x1e9)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x41055d=_0x2c17bd;var _0x1c4063;this[_0x41055d(0x204)][_0x41055d(0x270)](_0x41055d(0x261)),(_0x1c4063=this[_0x41055d(0x264)])==null||_0x1c4063['dispose']();}[_0x2c17bd(0x269)](){const _0x5ba351=_0x2c17bd;this['_status$'][_0x5ba351(0x270)](_0x5ba351(0x201)),this[_0x5ba351(0x256)]();}};N=Y([_(0x2,_0x45ac9b),_(0x3,_0xb91b10(L)),_(0x4,_0x147916)],N);function Le(){const _0x18e79c=_0x2c17bd,_0x1dd162=_0x1bfba8(S),_0x4a51aa=_0x1bfba8(_0x9a2b99),_0x1cd3f6=_0x206e01(()=>_0x4a51aa[_0x18e79c(0x1f2)](_0x45889c['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3a132f,_0x30e72d]=_0x14fd36(null),[_0x3c8a80,_0x39aeef]=_0x14fd36(c[_0x18e79c(0x26c)]),_0x5d719f=_0x470657(null);return _0x23e84d(()=>(_0x1cd3f6&&_0x1dd162[_0x18e79c(0x1ed)](_0x1cd3f6[_0x18e79c(0x274)]())['then'](_0x512a61=>{const _0x193bf1=_0x18e79c;_0x30e72d(_0x512a61),_0x5d719f[_0x193bf1(0x272)]=_0x512a61[_0x193bf1(0x1d2)][_0x193bf1(0x232)](_0xaa4c7b=>{_0x39aeef(_0xaa4c7b);});}),()=>{const _0xbe3200=_0x18e79c;var _0x6f1578;(_0x6f1578=_0x5d719f[_0xbe3200(0x272)])==null||_0x6f1578['unsubscribe'](),_0x5d719f[_0xbe3200(0x272)]=null;}),[_0x1cd3f6,_0x1dd162]),_0x3a132f?_0x76a09b(_0x39b390,{'align':_0x18e79c(0x22c),'disabled':_0x3c8a80===c[_0x18e79c(0x1ef)],'className':_0x18e79c(0x221),'overlay':_0x76a09b(Re,{'status':_0x3c8a80,'coordinator':_0x3a132f}),'children':_0x76a09b('button',{'className':_0x3e4a67('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3c8a80===c[_0x18e79c(0x1ef)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3c8a80!==c['OFFLINE']}),'type':_0x18e79c(0x254),'children':_0x76a09b(W,{'className':_0x18e79c(0x222)})})}):null;}function Re(_0x3a55a0){const _0x45fef2=_0x2c17bd,{status:_0x32baff,coordinator:_0x53e42a}=_0x3a55a0;switch(_0x32baff){case c[_0x45fef2(0x26c)]:return _0x76a09b($e,{'coordinator':_0x53e42a});case c[_0x45fef2(0x258)]:return _0x76a09b(xe,{'coordinator':_0x53e42a});case c['NOT_FOLLOWING']:return _0x76a09b(Pe,{'coordinator':_0x53e42a});case c['OFFLINE']:return _0x76a09b(Te,{});case c[_0x45fef2(0x22f)]:return _0x76a09b(Ae,{'coordinator':_0x53e42a});default:return null;}}function $e(_0x50a119){const _0x17f16b=_0x2c17bd,{coordinator:_0x4dd261}=_0x50a119;return _0x490d08(_0x1c44c8,{'children':[_0x76a09b(_0x17f16b(0x21f),{'className':_0x17f16b(0x1db),'children':_0x17f16b(0x21a)}),_0x76a09b(_0x2cafee,{'onClick':()=>_0x4dd261[_0x17f16b(0x209)](),'children':'Start'})]});}function xe(_0x3e1b1a){const _0x48b8e3=_0x2c17bd,{coordinator:_0x1b8c91}=_0x3e1b1a;return _0x490d08(_0x1c44c8,{'children':[_0x76a09b('div',{'className':_0x48b8e3(0x1db),'children':_0x48b8e3(0x259)}),_0x76a09b(_0x2cafee,{'onClick':()=>_0x1b8c91[_0x48b8e3(0x1f3)](),'children':_0x48b8e3(0x223)})]});}function Pe(_0x182e79){const _0x173f14=_0x2c17bd,{coordinator:_0x4b774b}=_0x182e79;return _0x490d08(_0x1c44c8,{'children':[_0x76a09b(_0x173f14(0x21f),{'className':_0x173f14(0x1db),'children':_0x173f14(0x245)}),_0x76a09b(_0x2cafee,{'variant':_0x173f14(0x200),'onClick':()=>_0x4b774b[_0x173f14(0x1fc)](),'children':'Start\x20following'})]});}function Ae(_0x214adf){const _0x2cf4c8=_0x2c17bd,{coordinator:_0x2ef842}=_0x214adf;return _0x490d08(_0x1c44c8,{'children':[_0x76a09b(_0x2cf4c8(0x21f),{'className':_0x2cf4c8(0x1db),'children':_0x2cf4c8(0x242)}),_0x76a09b(_0x2cafee,{'variant':_0x2cf4c8(0x250),'onClick':()=>_0x2ef842[_0x2cf4c8(0x1f0)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x1a7d3b=_0x2c17bd;return _0x76a09b(_0x1c44c8,{'children':_0x1a7d3b(0x24c)});}var Fe=Object[_0x2c17bd(0x214)],He=(_0x1bb9b2,_0x5b183a,_0x2c02d7,_0x19aaed)=>{const _0x44d7bb=_0x2c17bd;for(var _0x38898e=_0x19aaed>0x1?void 0x0:_0x19aaed?Fe(_0x5b183a,_0x2c02d7):_0x5b183a,_0x16e70c=_0x1bb9b2[_0x44d7bb(0x225)]-0x1,_0x2d18c0;_0x16e70c>=0x0;_0x16e70c--)(_0x2d18c0=_0x1bb9b2[_0x16e70c])&&(_0x38898e=_0x2d18c0(_0x38898e)||_0x38898e);return _0x38898e;},A=(_0x5d6fbc,_0x537193)=>(_0x114252,_0x52e674)=>_0x537193(_0x114252,_0x52e674,_0x5d6fbc);let m=class extends _0x340cc7{constructor(_0x339511,_0x36757c){const _0x26e2ce=_0x2c17bd;super(),this[_0x26e2ce(0x1d8)]=_0x339511,this['_uiPartsService']=_0x36757c,this[_0x26e2ce(0x262)]();}[_0x2c17bd(0x262)](){const _0x4207e1=_0x2c17bd;this['disposeWithMe'](this[_0x4207e1(0x21b)][_0x4207e1(0x263)](_0x1bd2e1['HEADER_MENU'],()=>_0x33bb9e(Le,this['_injector'])));}};function _0x6dcd(_0x4e732e,_0xc26307){const _0xae527a=_0xae52();return _0x6dcd=function(_0x6dcde7,_0x39503b){_0x6dcde7=_0x6dcde7-0x1d1;let _0x4315be=_0xae527a[_0x6dcde7];return _0x4315be;},_0x6dcd(_0x4e732e,_0xc26307);}m=He([A(0x0,_0xb91b10(_0x13efe5)),A(0x1,_0x2066c5)],m);const ye=_0x2c17bd(0x235),T={};function _0xae52(){const _0x40ee8b=['_commandService','LIVESHARE_TERMINATE','UNIVER_LIVE_SHARE_PLUGIN','requireSession','displayName','get','idSuffix','onStarting','LIVESHARE_OPERATION','dispose','You\x27re\x20presenting\x20the\x20document','children','override','You\x27re\x20not\x20following\x20the\x20presenter','778388HjjhZk','UNIVER_UNKNOWN','registerInitialStateReporter','univerjs-icon\x20univerjs-icon-','xlink:href','presenter','You\x27are\x20offline.','getTypeOfUnitAdded$','SAME_OPERATION_SHARE_INTERVAL','_sharedOperations','default','defineProperty','forEach','following','button','add','_fetchOperations','getInitialStates','FOLLOWING','You\x27re\x20following\x20the\x20presenter','LIVESHARE_FETCH_OPERATIONS','values','_startLiveShareCoordinator','ONLINE','string','http://www.w3.org/2000/svg','getValue','offline','_mountLiveShare','registerComponent','_commandDisposable','substring','4IaNogR','getLiveShareCoordinatorSync','colorChannel1','_handleOnline','from','_handleTerminate','IDLE','_collabSession','asObservable','sessionStatus$','next','1em','current','tag','getUnitId','use','set','status$','symbol','4297007InuhqR','toString','stringify','delete','_injector','complete','_status','univer-mb-3\x20univer-w-full\x20univer-text-sm','svg','18nIahkE','UNIVER_SHEET','getTypeOfUnitDisposed$','entries','_init','dispose$','_entities','_stopFollowing','280PuBcim','executeCommand','302898cZIFaY','_presenter','params','clear','unitId','getStatus','getLiveShareCoordinator','currentColor','OFFLINE','stopPresenting','url(#$1','getCurrentTypeOfUnit$','stopFollowing','send','attrs','pipe','176396MgLtAD','replace','_config','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','LIVESHARE_REQUEST_HOST','startFollowing','sheet','475990AnLsXP','463080ilZrEI','text','idle','_unitID','shouldShareOperation','_status$','_reporters','_stopPresenting','_handleNewChangeSets','event$','tryStartPresenting','_univerInstanceService','operations','evenodd','mutations','registerSharedOperation','presenting','mask','LiveShareIcon','not-following','includes','getOwnPropertyDescriptor','_handleOperation','init','fill','5SHPAQV','path','Present\x20this\x20document','_uiPartsService','29244SHabli','defIds','reverse','div','_configService','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','univer-size-4','Stop\x20following','_startFollowing','length','defs','_startPresenting','type','setConfig','has','_collabSessionService','end','map','trim','PRESENTING','find','NEW_CHANGESETS','subscribe','_beIdle','parse','live-share.config','_liveShareService','data'];_0xae52=function(){return _0x40ee8b;};return _0xae52();}var Ue=Object[_0x2c17bd(0x214)],Ve=(_0x217ad0,_0x224ef1,_0x34314d,_0x7bd26a)=>{for(var _0x137332=_0x7bd26a>0x1?void 0x0:_0x7bd26a?Ue(_0x224ef1,_0x34314d):_0x224ef1,_0x33d2fe=_0x217ad0['length']-0x1,_0x29934a;_0x33d2fe>=0x0;_0x33d2fe--)(_0x29934a=_0x217ad0[_0x33d2fe])&&(_0x137332=_0x29934a(_0x137332)||_0x137332);return _0x137332;},je=(_0x4c8e1e,_0xcf5ea2)=>(_0x5df688,_0x35e3c5)=>_0xcf5ea2(_0x5df688,_0x35e3c5,_0x4c8e1e);let I=class extends _0x340cc7{constructor(_0x2b07e9){const _0x3e2627=_0x2c17bd;super(),this['_liveShareService']=_0x2b07e9,this[_0x3e2627(0x1e1)]();}['_init'](){const _0x199b69=_0x2c17bd;[_0x3270d8['id'],_0x552a0c['id'],_0x411a50['id']][_0x199b69(0x252)](_0xe6353c=>{const _0x4b0121=_0x199b69;this['disposeWithMe'](this[_0x4b0121(0x236)]['registerSharedOperation'](_0xe6353c));});}};I=Ve([je(0x0,_0xb91b10(L))],I);var Me=Object[_0x2c17bd(0x251)],ke=Object[_0x2c17bd(0x214)],Ge=(_0x2c8443,_0x481ed6,_0x435fe3)=>_0x481ed6 in _0x2c8443?Me(_0x2c8443,_0x481ed6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x435fe3}):_0x2c8443[_0x481ed6]=_0x435fe3,We=(_0x46b691,_0xee6291,_0x3cab60,_0x4e6182)=>{const _0x255d72=_0x2c17bd;for(var _0x91af07=_0x4e6182>0x1?void 0x0:_0x4e6182?ke(_0xee6291,_0x3cab60):_0xee6291,_0x7391f2=_0x46b691[_0x255d72(0x225)]-0x1,_0x5944a1;_0x7391f2>=0x0;_0x7391f2--)(_0x5944a1=_0x46b691[_0x7391f2])&&(_0x91af07=_0x5944a1(_0x91af07)||_0x91af07);return _0x91af07;},F=(_0x4043e1,_0x31c920)=>(_0x489a54,_0x290d7e)=>_0x31c920(_0x489a54,_0x290d7e,_0x4043e1),B=(_0x3c6a58,_0x5e6dde,_0x41706a)=>Ge(_0x3c6a58,typeof _0x5e6dde!=_0x2c17bd(0x1d3)?_0x5e6dde+'':_0x5e6dde,_0x41706a);const Ye=_0x2c17bd(0x23a);let b=class extends _0x24270d{constructor(_0x20754a=T,_0x5f3d9b,_0x25e57d){const _0x15807a=_0x2c17bd;super(),this[_0x15807a(0x1f9)]=_0x20754a,this[_0x15807a(0x1d8)]=_0x5f3d9b,this[_0x15807a(0x220)]=_0x25e57d;const {..._0x40acd5}=_0x51df76({},T,this[_0x15807a(0x1f9)]);this[_0x15807a(0x220)][_0x15807a(0x229)](ye,_0x40acd5);}[_0x2c17bd(0x23f)](){const _0x1064ca=_0x2c17bd;_0x312d92(this[_0x1064ca(0x1d8)],_0x43af49([[L],[S],[I],[m]],this[_0x1064ca(0x1f9)][_0x1064ca(0x244)])),_0x5199da(this[_0x1064ca(0x1d8)],[[I]]);}['onRendered'](){const _0x37eac9=_0x2c17bd;_0x5199da(this[_0x37eac9(0x1d8)],[[m]]);}};B(b,'type',_0x45889c[_0x2c17bd(0x247)]),B(b,'pluginName',Ye),b=We([_0x1c6ccb(_0x172e42),F(0x1,_0xb91b10(_0x13efe5)),F(0x2,_0x45ac9b)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
|
1
|
+
const _0x466b10=_0x2fc8;(function(_0x3626d1,_0x23da67){const _0x45aec7=_0x2fc8,_0x8e61fd=_0x3626d1();while(!![]){try{const _0x48c8d8=parseInt(_0x45aec7(0x219))/0x1+-parseInt(_0x45aec7(0x1d6))/0x2+parseInt(_0x45aec7(0x242))/0x3*(parseInt(_0x45aec7(0x257))/0x4)+parseInt(_0x45aec7(0x254))/0x5+parseInt(_0x45aec7(0x277))/0x6*(-parseInt(_0x45aec7(0x213))/0x7)+-parseInt(_0x45aec7(0x233))/0x8+parseInt(_0x45aec7(0x25c))/0x9*(-parseInt(_0x45aec7(0x1f3))/0xa);if(_0x48c8d8===_0x23da67)break;else _0x8e61fd['push'](_0x8e61fd['shift']());}catch(_0xebfcd1){_0x8e61fd['push'](_0x8e61fd['shift']());}}}(_0x357a,0xbf71a));var J=Object[_0x466b10(0x264)],K=(_0xe41e0b,_0x53190b,_0x5dfba6)=>_0x53190b in _0xe41e0b?J(_0xe41e0b,_0x53190b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5dfba6}):_0xe41e0b[_0x53190b]=_0x5dfba6,u=(_0x534186,_0x439d01,_0x13b7be)=>K(_0x534186,typeof _0x439d01!='symbol'?_0x439d01+'':_0x439d01,_0x13b7be);import{Disposable as _0x420bef,toDisposable as _0x2eefa6,IUniverInstanceService as _0x2136d5,Inject as _0xb810a1,Injector as _0x42925d,IConfigService as _0x534aaa,ICommandService as _0x462048,RxDisposable as _0x42c56f,UniverInstanceType as _0x5da7e1,DisposableCollection as _0x5c3901,CommandType as _0x5c0f1e,DependentOn as _0x426f35,Plugin as _0x1ab38a,merge as _0x153f93,registerDependencies as _0x40c418,mergeOverrideWithDependencies as _0x26a6d8,touchDependencies as _0x321cc3}from'@univerjs/core';import{useDependency as _0x57b7f1,useObservable as _0x2f47a8,IUIPartsService as _0x13733b,BuiltInUIPart as _0x325241,connectInjector as _0x5e2acd}from'@univerjs/ui';import{jsx as _0x284072,jsxs as _0x2842a9,Fragment as _0x3f7b64}from'react/jsx-runtime';import{Dropdown as _0x4d67da,clsx as _0x3b0bb0,Button as _0x55525b}from'@univerjs/design';import{useRef as _0x42cbc5,createElement as _0x345555,forwardRef as _0x3c8360,useState as _0x34edd8,useEffect as _0x2e4dde}from'react';import{CollaborationEvent as _0x4f8dac,parseProtocolChangeset as _0x1aca7c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x32ee9c,SessionStatus as _0x2c2d1f,UniverCollaborationClientPlugin as _0x27fd59}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x27298e,SetWorksheetActiveOperation as _0x1cd2eb}from'@univerjs/sheets';import{BehaviorSubject as _0x4e0347,Subject as _0x5885a2}from'rxjs';import{takeUntil as _0x2b8aab,throttleTime as _0x3853a5}from'rxjs/operators';import{SetZoomRatioOperation as _0x54dcf4,SetScrollOperation as _0x59b67c}from'@univerjs/sheets-ui';function k({ref:_0x56e881,..._0x8a0ea0}){const _0x4313f2=_0x466b10,{icon:_0xdffd6,id:_0x3a411c,className:_0x3857f2,extend:_0x437451,..._0x472013}=_0x8a0ea0,_0x49a098=('univerjs-icon\x20univerjs-icon-'+_0x3a411c+'\x20'+(_0x3857f2||''))['trim'](),_0x1bf568=_0x42cbc5('_'+Oe());return G(_0xdffd6,''+_0x3a411c,{'defIds':_0xdffd6[_0x4313f2(0x1e9)],'idSuffix':_0x1bf568[_0x4313f2(0x260)]},{'ref':_0x56e881,'className':_0x49a098,..._0x472013},_0x437451);}function G(_0x36dab8,_0x14e2ad,_0x388ceb,_0xe44f09,_0x31239d){const _0x457d2f=_0x466b10;return _0x345555(_0x36dab8[_0x457d2f(0x1d5)],{'key':_0x14e2ad,...be(_0x36dab8,_0x388ceb,_0x31239d),..._0xe44f09},(Ee(_0x36dab8,_0x388ceb)[_0x457d2f(0x1da)]||[])['map']((_0x143ae9,_0x2fb417)=>G(_0x143ae9,_0x14e2ad+'-'+_0x36dab8[_0x457d2f(0x1d5)]+'-'+_0x2fb417,_0x388ceb,void 0x0,_0x31239d)));}function be(_0x193212,_0x5225b8,_0x52778d){const _0x144ca5=_0x466b10,_0x4e407c={..._0x193212[_0x144ca5(0x23e)]};_0x52778d!=null&&_0x52778d[_0x144ca5(0x252)]&&_0x4e407c[_0x144ca5(0x269)]==='colorChannel1'&&(_0x4e407c[_0x144ca5(0x269)]=_0x52778d['colorChannel1']),_0x193212[_0x144ca5(0x1d5)]==='mask'&&_0x4e407c['id']&&(_0x4e407c['id']=_0x4e407c['id']+_0x5225b8[_0x144ca5(0x20f)]),Object[_0x144ca5(0x24c)](_0x4e407c)[_0x144ca5(0x21f)](([_0x337893,_0x589733])=>{const _0x2f5315=_0x144ca5;_0x337893==='mask'&&typeof _0x589733==_0x2f5315(0x25e)&&(_0x4e407c[_0x337893]=_0x589733['replace'](/url\(#(.*)\)/,_0x2f5315(0x273)+_0x5225b8[_0x2f5315(0x20f)]+')'));});const {defIds:_0x253c66}=_0x5225b8;return!_0x253c66||_0x253c66[_0x144ca5(0x225)]===0x0||(_0x193212['tag']==='use'&&_0x4e407c['xlink:href']&&(_0x4e407c[_0x144ca5(0x1d8)]=_0x4e407c['xlink:href']+_0x5225b8[_0x144ca5(0x20f)]),Object[_0x144ca5(0x24c)](_0x4e407c)[_0x144ca5(0x21f)](([_0x5581e5,_0x171030])=>{const _0x32af2b=_0x144ca5;typeof _0x171030==_0x32af2b(0x25e)&&(_0x4e407c[_0x5581e5]=_0x171030[_0x32af2b(0x22a)](/url\(#(.*)\)/,_0x32af2b(0x273)+_0x5225b8[_0x32af2b(0x20f)]+')'));})),_0x4e407c;}function _0x357a(){const _0x1c4ba2=['_status','disposeWithMe','getMemberID','univer-size-4','get','OPERATION','getUnitId','asObservable','attrs','event$','displayName','PRESENTING','3165MfJiok','You\x27are\x20offline.','UNIVER_SHEET','getConfig','_handleTerminate','getValue','LIVESHARE_OPERATION','init','LIVESHARE_REQUEST_HOST','NOT_FOLLOWING','entries','getOwnPropertyDescriptor','UNIVER_UNKNOWN','params','status$','_configService','colorChannel1','NEW_CHANGESETS','506440UAbPaJ','_init','stopPresenting','3032UyPZYu','complete','You\x27re\x20presenting\x20the\x20document','memberID','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','30798qOIaYn','unitId','string','_startFollowing','current','evenodd','live-share.config','_unitID','defineProperty','1em','mutations','getTypeOfUnitDisposed$','getCurrentTypeOfUnit$','fill','type','following','none','presenting','setConfig','IDLE','_sharedOperations','getInitialStates','You\x27re\x20not\x20following\x20the\x20presenter','url(#$1','_beIdle','_presenter','data','1608414RAbKHp','delete','_stopFollowing','_commandDisposable','tag','261130MtvYBC','LIVESHARE_TERMINATE','xlink:href','symbol','children','_startPresenting','values','next','onCommandExecuted','Start','FOLLOWING','_mountLiveShare','registerSharedOperation','LIVESHARE_FETCH_OPERATIONS','_status$','has','startFollowing','default','currentColor','defIds','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','univer-mb-3\x20univer-w-full\x20univer-text-sm','override','subscribe','includes','button','HEADER_MENU','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','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','730MDRAmK','_config','_collabSession','dispose','OFFLINE','offline','add','idle','Present\x20this\x20document','onStarting','defs','text','_reporters','send','_handleNewHost','UniverIcon','getTypeOfUnitAdded$','div','assign','tryStartPresenting','reverse','LIVESHARE_NEW_HOST','requireSession','_handleOnline','shouldShareOperation','executeCommand','_collabSessionService','http://www.w3.org/2000/svg','idSuffix','_handleOffline','set','dispose$','28FjsQDi','getLiveShareCoordinator','path','_handleNewChangeSets','You\x27re\x20following\x20the\x20presenter','_univerInstanceService','1405489RARwvP','Stop\x20following','end','pipe','getStatus','createInstance','forEach','_uiPartsService','not-following','presenter','_handleOperation','_liveShareService','length','_stopPresenting','_fetchOperations','stopFollowing','sheet','replace','parse','0\x200\x2017\x2017','_startLiveShareCoordinator','_commandService','SAME_OPERATION_SHARE_INTERVAL','onRendered','_injector','toString','557328kyMpoS','_entities','pluginName'];_0x357a=function(){return _0x1c4ba2;};return _0x357a();}function Ee(_0x48c89a,_0x1479e5){const _0xdca510=_0x466b10;var _0x3b9069;const {defIds:_0x476edd}=_0x1479e5;return!_0x476edd||_0x476edd[_0xdca510(0x225)]===0x0?_0x48c89a:_0x48c89a[_0xdca510(0x1d5)]===_0xdca510(0x1fd)&&((_0x3b9069=_0x48c89a[_0xdca510(0x1da)])!=null&&_0x3b9069[_0xdca510(0x225)])?{..._0x48c89a,'children':_0x48c89a['children']['map'](_0x5eadee=>typeof _0x5eadee[_0xdca510(0x23e)]['id']==_0xdca510(0x25e)&&_0x476edd&&_0x476edd[_0xdca510(0x1ee)](_0x5eadee[_0xdca510(0x23e)]['id'])?{..._0x5eadee,'attrs':{..._0x5eadee[_0xdca510(0x23e)],'id':_0x5eadee[_0xdca510(0x23e)]['id']+_0x1479e5[_0xdca510(0x20f)]}}:_0x5eadee)}:_0x48c89a;}function Oe(){const _0x2e54c3=_0x466b10;return Math['random']()[_0x2e54c3(0x232)](0x24)['substring'](0x2,0x8);}k[_0x466b10(0x240)]=_0x466b10(0x202);const we={'tag':'svg','attrs':{'xmlns':_0x466b10(0x20e),'fill':_0x466b10(0x26c),'viewBox':_0x466b10(0x22c),'width':_0x466b10(0x265),'height':_0x466b10(0x265)},'children':[{'tag':_0x466b10(0x215),'attrs':{'fill':'currentColor','d':_0x466b10(0x25b)}},{'tag':_0x466b10(0x215),'attrs':{'fill':_0x466b10(0x1e8),'d':_0x466b10(0x1f1),'fillRule':_0x466b10(0x261),'clipRule':_0x466b10(0x261)}}]},W=_0x3c8360(function(_0x85f375,_0x1fb5b6){const _0x238ac1=_0x466b10;return _0x345555(k,Object[_0x238ac1(0x205)]({},_0x85f375,{'id':'live-share-icon','ref':_0x1fb5b6,'icon':we}));});W[_0x466b10(0x240)]='LiveShareIcon';class L extends _0x420bef{constructor(){const _0x534244=_0x466b10;super(...arguments),u(this,_0x534244(0x270),new Set()),u(this,_0x534244(0x1ff),new Set());}['registerSharedOperation'](_0x283131){const _0xec1a2e=_0x466b10;return this[_0xec1a2e(0x270)]['add'](_0x283131),_0x2eefa6(()=>this[_0xec1a2e(0x270)][_0xec1a2e(0x1d2)](_0x283131));}['registerInitialStateReporter'](_0x2bcae4){const _0x5d9c51=_0x466b10;return this[_0x5d9c51(0x1ff)][_0x5d9c51(0x1f9)](_0x2bcae4),_0x2eefa6(()=>this[_0x5d9c51(0x1ff)][_0x5d9c51(0x1d2)](_0x2bcae4));}[_0x466b10(0x20b)](_0x27b4e1){const _0x22a577=_0x466b10;return this[_0x22a577(0x270)][_0x22a577(0x1e5)](_0x27b4e1);}[_0x466b10(0x271)](_0x21cfca){const _0x28622f=_0x466b10;return Array['from'](this[_0x28622f(0x1ff)])['map'](_0xae5419=>_0xae5419(_0x21cfca));}}function _0x2fc8(_0x4eae40,_0x1bf369){const _0x357a1e=_0x357a();return _0x2fc8=function(_0x2fc8b5,_0x285da0){_0x2fc8b5=_0x2fc8b5-0x1d2;let _0x4f78d4=_0x357a1e[_0x2fc8b5];return _0x4f78d4;},_0x2fc8(_0x4eae40,_0x1bf369);}var Ne=Object[_0x466b10(0x24d)],Y=(_0x247e4e,_0x5ab1bf,_0x2311d0,_0x3039bc)=>{for(var _0xd525ca=_0x3039bc>0x1?void 0x0:_0x3039bc?Ne(_0x5ab1bf,_0x2311d0):_0x5ab1bf,_0x250c14=_0x247e4e['length']-0x1,_0x4acf00;_0x250c14>=0x0;_0x250c14--)(_0x4acf00=_0x247e4e[_0x250c14])&&(_0xd525ca=_0x4acf00(_0xd525ca)||_0xd525ca);return _0xd525ca;},_=(_0x4cff14,_0x134983)=>(_0x177e5d,_0x400f5e)=>_0x134983(_0x177e5d,_0x400f5e,_0x4cff14);let S=class extends _0x42c56f{constructor(_0x12aa1b,_0x3369ed,_0x3b2100){const _0x538447=_0x466b10;super(),u(this,'_entities',new Map()),(this[_0x538447(0x218)]=_0x12aa1b,this[_0x538447(0x231)]=_0x3369ed,this[_0x538447(0x20d)]=_0x3b2100,this[_0x538447(0x255)]());}async[_0x466b10(0x214)](_0x4cc403){const _0x3a8be6=_0x466b10;return this[_0x3a8be6(0x234)]['has'](_0x4cc403)||await this[_0x3a8be6(0x22d)](_0x4cc403),this[_0x3a8be6(0x234)][_0x3a8be6(0x23a)](_0x4cc403);}['getLiveShareCoordinatorSync'](_0x4d60ac){const _0x294aee=_0x466b10;var _0x5080d1;return(_0x5080d1=this[_0x294aee(0x234)][_0x294aee(0x23a)](_0x4d60ac))!=null?_0x5080d1:null;}[_0x466b10(0x255)](){const _0x462bfb=_0x466b10;this[_0x462bfb(0x218)][_0x462bfb(0x203)](_0x5da7e1[_0x462bfb(0x244)])[_0x462bfb(0x21c)](_0x2b8aab(this[_0x462bfb(0x212)]))[_0x462bfb(0x1ed)](async _0x2a6ec0=>{const _0x53687e=_0x462bfb,_0x351f05=_0x2a6ec0[_0x53687e(0x23c)]();this[_0x53687e(0x234)][_0x53687e(0x1e5)](_0x351f05)||this[_0x53687e(0x22d)](_0x351f05);}),this[_0x462bfb(0x218)][_0x462bfb(0x267)](_0x5da7e1[_0x462bfb(0x244)])[_0x462bfb(0x21c)](_0x2b8aab(this['dispose$']))['subscribe'](_0x4fe067=>{const _0xab9415=_0x462bfb,_0x974fbe=_0x4fe067['getUnitId'](),_0x5cbd94=this[_0xab9415(0x234)][_0xab9415(0x23a)](_0x974fbe);_0x5cbd94==null||_0x5cbd94[_0xab9415(0x1f6)]();});}async[_0x466b10(0x22d)](_0x23b9ed){const _0x4d6911=_0x466b10,_0x537694=await this[_0x4d6911(0x20d)][_0x4d6911(0x209)](_0x23b9ed),_0x11c03c=this[_0x4d6911(0x231)][_0x4d6911(0x21e)](N,_0x23b9ed,_0x537694);return _0x11c03c[_0x4d6911(0x249)](),this[_0x4d6911(0x234)][_0x4d6911(0x211)](_0x23b9ed,_0x11c03c),_0x11c03c;}};S=Y([_(0x0,_0x2136d5),_(0x1,_0xb810a1(_0x42925d)),_(0x2,_0xb810a1(_0x32ee9c))],S);var c=(_0x7d2b6b=>(_0x7d2b6b[_0x466b10(0x1f7)]=_0x466b10(0x1f8),_0x7d2b6b[_0x466b10(0x26f)]=_0x466b10(0x1fa),_0x7d2b6b['FOLLOWING']='following',_0x7d2b6b['NOT_FOLLOWING']='not-following',_0x7d2b6b[_0x466b10(0x241)]=_0x466b10(0x26d),_0x7d2b6b))(c||{});const Ce=_0x466b10(0x22f),De=0xc8;let N=class extends _0x42c56f{constructor(_0xa665c2,_0x391052,_0x56364f,_0x58779e,_0x90e7d2){const _0x1141fa=_0x466b10;super(),u(this,_0x1141fa(0x1e4),new _0x4e0347(_0x1141fa(0x1fa))),u(this,'status$',this[_0x1141fa(0x1e4)][_0x1141fa(0x23d)]()),u(this,'_init',!0x1),u(this,'_commandDisposable',null),u(this,'_presenter',null),(this[_0x1141fa(0x263)]=_0xa665c2,this[_0x1141fa(0x1f5)]=_0x391052,this[_0x1141fa(0x251)]=_0x56364f,this[_0x1141fa(0x224)]=_0x58779e,this[_0x1141fa(0x22e)]=_0x90e7d2);}get[_0x466b10(0x236)](){const _0x5853e1=_0x466b10;return this[_0x5853e1(0x1e4)][_0x5853e1(0x247)]();}['dispose'](){const _0x1698e1=_0x466b10;var _0x148295;(_0x148295=this[_0x1698e1(0x1d4)])==null||_0x148295[_0x1698e1(0x1f6)](),this[_0x1698e1(0x1e4)][_0x1698e1(0x1dd)](_0x1698e1(0x1fa)),this[_0x1698e1(0x1e4)][_0x1698e1(0x258)]();}[_0x466b10(0x21d)](){const _0x28440c=_0x466b10;return this[_0x28440c(0x236)];}[_0x466b10(0x249)](){const _0x3c242e=_0x466b10;this['_init']||(this[_0x3c242e(0x255)]=!0x0,this[_0x3c242e(0x1f5)]['sessionStatus$']['pipe'](_0x2b8aab(this[_0x3c242e(0x212)]))[_0x3c242e(0x1ed)](_0x4d7096=>{const _0x4393dd=_0x3c242e;switch(_0x4d7096){case _0x2c2d1f[_0x4393dd(0x1f7)]:this[_0x4393dd(0x210)]();break;case _0x2c2d1f['ONLINE']:this['_handleOnline']();break;}}),this[_0x3c242e(0x1f5)][_0x3c242e(0x23f)]['pipe'](_0x2b8aab(this['dispose$']))[_0x3c242e(0x1ed)](_0x1a3914=>{const _0x5541c8=_0x3c242e,{eventID:_0x33595d}=_0x1a3914;switch(_0x33595d){case _0x4f8dac[_0x5541c8(0x208)]:this['_handleNewHost'](_0x1a3914);break;case _0x4f8dac[_0x5541c8(0x248)]:this[_0x5541c8(0x223)](_0x1a3914);break;case _0x4f8dac[_0x5541c8(0x1d7)]:this[_0x5541c8(0x246)]();break;case _0x4f8dac[_0x5541c8(0x253)]:this['_handleNewChangeSets'](_0x1a3914);break;}}));}[_0x466b10(0x206)](){const _0x1d3e1b=_0x466b10;this[_0x1d3e1b(0x1f5)][_0x1d3e1b(0x200)]({'eventID':_0x4f8dac[_0x1d3e1b(0x24a)],'data':{'unitID':this[_0x1d3e1b(0x263)],'userID':this[_0x1d3e1b(0x1f5)]['getMemberID']()}},this['_unitID']);}[_0x466b10(0x256)](){const _0x14b4e3=_0x466b10;this[_0x14b4e3(0x236)]==='presenting'&&(this[_0x14b4e3(0x1e4)][_0x14b4e3(0x1dd)](_0x14b4e3(0x1fa)),this[_0x14b4e3(0x1f5)][_0x14b4e3(0x200)]({'eventID':_0x4f8dac['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x14b4e3(0x263)]}},this['_unitID']));}[_0x466b10(0x1e6)](){const _0x3deff0=_0x466b10;this['_status']===_0x3deff0(0x221)&&(this[_0x3deff0(0x1e4)][_0x3deff0(0x1dd)]('following'),this[_0x3deff0(0x25f)]());}[_0x466b10(0x228)](){const _0x1759eb=_0x466b10;this[_0x1759eb(0x236)]===_0x1759eb(0x26b)&&this[_0x1759eb(0x1d3)]();}[_0x466b10(0x201)](_0x3122bb){const _0x1ecd4d=_0x466b10,{presenter:_0x2f0213}=_0x3122bb[_0x1ecd4d(0x276)],_0x27ea90=this[_0x1ecd4d(0x1f5)]['getMemberID']();this['_presenter']=_0x2f0213,_0x2f0213===_0x27ea90?(this['_stopFollowing'](),this[_0x1ecd4d(0x1db)]()):this[_0x1ecd4d(0x236)]!=='not-following'&&(this[_0x1ecd4d(0x226)](),this[_0x1ecd4d(0x25f)]());}[_0x466b10(0x227)](){const _0x199c73=_0x466b10,_0x3ce07e={'eventID':_0x4f8dac[_0x199c73(0x1e3)]};this['_collabSession'][_0x199c73(0x200)](_0x3ce07e,this[_0x199c73(0x263)]);}['_handleTerminate'](){const _0x546a9d=_0x466b10;this[_0x546a9d(0x275)]=null,this[_0x546a9d(0x236)]!==_0x546a9d(0x26d)&&this[_0x546a9d(0x274)]();}[_0x466b10(0x216)](_0xe39262){const _0x3db4de=_0x466b10;if(this[_0x3db4de(0x236)]===_0x3db4de(0x26b)&&this[_0x3db4de(0x275)]===_0xe39262[_0x3db4de(0x276)][_0x3db4de(0x25a)]){const _0x3dc36c=_0x1aca7c(_0xe39262[_0x3db4de(0x276)])[_0x3db4de(0x266)][_0x3db4de(0x207)]()['find'](_0x57ae51=>_0x57ae51['id']===_0x27298e['id']);if(_0x3dc36c){const _0x154067=_0x3dc36c[_0x3db4de(0x24f)][_0x3db4de(0x25d)],_0x262a15=_0x3dc36c[_0x3db4de(0x24f)][_0x3db4de(0x229)]['id'];setTimeout(()=>{const _0x8cdea2=_0x3db4de;this[_0x8cdea2(0x22e)][_0x8cdea2(0x20c)](_0x1cd2eb['id'],{'unitId':_0x154067,'subUnitId':_0x262a15},{'fromCollab':!0x0});});}}}[_0x466b10(0x1db)](){const _0x36c0f2=_0x466b10;this['_status$'][_0x36c0f2(0x1dd)](_0x36c0f2(0x26d));const _0x353dee=new Map(),_0x5321c8=this[_0x36c0f2(0x1d4)]=new _0x5c3901();_0x5321c8[_0x36c0f2(0x1f9)](_0x2eefa6(()=>{const _0x20851a=_0x36c0f2;_0x353dee[_0x20851a(0x21f)](_0x3fa4c0=>_0x3fa4c0['complete']()),_0x353dee['clear']();})),_0x5321c8[_0x36c0f2(0x1f9)](this[_0x36c0f2(0x22e)][_0x36c0f2(0x1de)](_0x147d71=>{const _0x59fc17=_0x36c0f2;var _0xf4dac5;if(_0x147d71[_0x59fc17(0x26a)]!==_0x5c0f1e[_0x59fc17(0x23b)]||!this[_0x59fc17(0x224)][_0x59fc17(0x20b)](_0x147d71['id']))return;const {id:_0x3503f5}=_0x147d71;let _0x292949;_0x353dee[_0x59fc17(0x1e5)](_0x3503f5)?_0x292949=_0x353dee[_0x59fc17(0x23a)](_0x3503f5):(_0x292949=new _0x5885a2(),_0x353dee[_0x59fc17(0x211)](_0x3503f5,_0x292949),_0x292949[_0x59fc17(0x21c)](_0x3853a5((_0xf4dac5=this[_0x59fc17(0x251)][_0x59fc17(0x245)](Ce))!=null?_0xf4dac5:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x59fc17(0x1ed)](_0xda6466=>{const _0x303ecc=_0x59fc17;this[_0x303ecc(0x1f5)]['send']({'eventID':_0x4f8dac['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0xda6466['id']]:{'id':_0xda6466['id'],'params':JSON['stringify'](_0xda6466[_0x303ecc(0x24f)])}}}},this[_0x303ecc(0x263)]);})),_0x292949['next'](_0x147d71);})),this['_liveShareService'][_0x36c0f2(0x271)](this['_unitID'])[_0x36c0f2(0x21f)](_0x5400a4=>this['_collabSession'][_0x36c0f2(0x200)]({'eventID':_0x4f8dac[_0x36c0f2(0x248)],'data':{'unitID':this[_0x36c0f2(0x263)],'operations':{[_0x5400a4['id']]:{'id':_0x5400a4['id'],'params':JSON['stringify'](_0x5400a4[_0x36c0f2(0x24f)])}}}},this[_0x36c0f2(0x263)]));}['_stopPresenting'](){const _0x156e4a=_0x466b10;var _0x1fb473;this[_0x156e4a(0x1e4)][_0x156e4a(0x1dd)](_0x156e4a(0x1fa)),(_0x1fb473=this[_0x156e4a(0x1d4)])==null||_0x1fb473[_0x156e4a(0x1f6)](),this[_0x156e4a(0x1d4)]=null;}[_0x466b10(0x25f)](){const _0xb65f8a=_0x466b10;var _0x3f7e3d;(_0x3f7e3d=this[_0xb65f8a(0x1d4)])==null||_0x3f7e3d[_0xb65f8a(0x1f6)](),this[_0xb65f8a(0x1e4)][_0xb65f8a(0x1dd)](_0xb65f8a(0x26b));}['_beIdle'](){const _0xbd18fb=_0x466b10;var _0x52a3d5;this[_0xbd18fb(0x1e4)][_0xbd18fb(0x1dd)]('idle'),(_0x52a3d5=this[_0xbd18fb(0x1d4)])==null||_0x52a3d5['dispose'](),this[_0xbd18fb(0x1d4)]=null;}['_stopFollowing'](){const _0x20f90b=_0x466b10;var _0x1b118d;this[_0x20f90b(0x1e4)][_0x20f90b(0x1dd)]('not-following'),(_0x1b118d=this[_0x20f90b(0x1d4)])==null||_0x1b118d[_0x20f90b(0x1f6)]();}[_0x466b10(0x223)](_0x1457a9){const _0x6a1fde=_0x466b10;if([_0x6a1fde(0x26d),_0x6a1fde(0x221),_0x6a1fde(0x1f8)]['includes'](this[_0x6a1fde(0x236)])||!_0x1457a9['data'][_0x6a1fde(0x222)]||_0x1457a9[_0x6a1fde(0x276)][_0x6a1fde(0x222)]===this[_0x6a1fde(0x1f5)][_0x6a1fde(0x238)]())return;this[_0x6a1fde(0x236)]==='idle'&&this['_startFollowing']();const _0x490f4e=_0x1457a9[_0x6a1fde(0x276)]['operations'];Object[_0x6a1fde(0x1dc)](_0x490f4e)[_0x6a1fde(0x21f)](_0x51ea88=>{const _0x36017c=_0x6a1fde;this[_0x36017c(0x22e)][_0x36017c(0x20c)](_0x51ea88['id'],_0x51ea88[_0x36017c(0x24f)]?JSON[_0x36017c(0x22b)](_0x51ea88[_0x36017c(0x24f)]):null,{'fromCollab':!0x0});});}[_0x466b10(0x210)](){const _0x99c559=_0x466b10;var _0x273f2d;this[_0x99c559(0x1e4)][_0x99c559(0x1dd)](_0x99c559(0x1f8)),(_0x273f2d=this[_0x99c559(0x1d4)])==null||_0x273f2d['dispose']();}[_0x466b10(0x20a)](){const _0x1b8c42=_0x466b10;this['_status$'][_0x1b8c42(0x1dd)](_0x1b8c42(0x1fa)),this['_fetchOperations']();}};N=Y([_(0x2,_0x534aaa),_(0x3,_0xb810a1(L)),_(0x4,_0x462048)],N);function Le(){const _0x3f93f9=_0x466b10,_0x10611e=_0x57b7f1(S),_0x1816dc=_0x57b7f1(_0x2136d5),_0x276c7a=_0x2f47a8(()=>_0x1816dc[_0x3f93f9(0x268)](_0x5da7e1[_0x3f93f9(0x244)]),void 0x0,!0x1,[]),[_0x156f8b,_0x3e5743]=_0x34edd8(null),[_0x4b5522,_0x5283c2]=_0x34edd8(c[_0x3f93f9(0x26f)]),_0x223344=_0x42cbc5(null);return _0x2e4dde(()=>(_0x276c7a&&_0x10611e['getLiveShareCoordinator'](_0x276c7a[_0x3f93f9(0x23c)]())['then'](_0xb3fff9=>{const _0x2a6217=_0x3f93f9;_0x3e5743(_0xb3fff9),_0x223344[_0x2a6217(0x260)]=_0xb3fff9[_0x2a6217(0x250)]['subscribe'](_0x2f145d=>{_0x5283c2(_0x2f145d);});}),()=>{const _0x4d2de4=_0x3f93f9;var _0x3e5943;(_0x3e5943=_0x223344[_0x4d2de4(0x260)])==null||_0x3e5943['unsubscribe'](),_0x223344[_0x4d2de4(0x260)]=null;}),[_0x276c7a,_0x10611e]),_0x156f8b?_0x284072(_0x4d67da,{'align':_0x3f93f9(0x21b),'disabled':_0x4b5522===c['OFFLINE'],'className':_0x3f93f9(0x1ea),'overlay':_0x284072(Re,{'status':_0x4b5522,'coordinator':_0x156f8b}),'children':_0x284072(_0x3f93f9(0x1ef),{'className':_0x3b0bb0(_0x3f93f9(0x1f2),{'univer-cursor-not-allowed':_0x4b5522===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4b5522!==c[_0x3f93f9(0x1f7)]}),'type':_0x3f93f9(0x1ef),'children':_0x284072(W,{'className':_0x3f93f9(0x239)})})}):null;}function Re(_0x3a0ee2){const _0x26f4be=_0x466b10,{status:_0x41654e,coordinator:_0x3bf71f}=_0x3a0ee2;switch(_0x41654e){case c[_0x26f4be(0x26f)]:return _0x284072($e,{'coordinator':_0x3bf71f});case c[_0x26f4be(0x1e0)]:return _0x284072(xe,{'coordinator':_0x3bf71f});case c[_0x26f4be(0x24b)]:return _0x284072(Pe,{'coordinator':_0x3bf71f});case c[_0x26f4be(0x1f7)]:return _0x284072(Te,{});case c[_0x26f4be(0x241)]:return _0x284072(Ae,{'coordinator':_0x3bf71f});default:return null;}}function $e(_0x3665d1){const _0x92b163=_0x466b10,{coordinator:_0x2ad800}=_0x3665d1;return _0x2842a9(_0x3f7b64,{'children':[_0x284072(_0x92b163(0x204),{'className':_0x92b163(0x1eb),'children':_0x92b163(0x1fb)}),_0x284072(_0x55525b,{'onClick':()=>_0x2ad800['tryStartPresenting'](),'children':_0x92b163(0x1df)})]});}function xe(_0x7fa473){const _0x20cb4c=_0x466b10,{coordinator:_0x4c3d9e}=_0x7fa473;return _0x2842a9(_0x3f7b64,{'children':[_0x284072(_0x20cb4c(0x204),{'className':_0x20cb4c(0x1eb),'children':_0x20cb4c(0x217)}),_0x284072(_0x55525b,{'onClick':()=>_0x4c3d9e[_0x20cb4c(0x228)](),'children':_0x20cb4c(0x21a)})]});}function Pe(_0x5839f4){const _0x5ce9d5=_0x466b10,{coordinator:_0x1e8ea5}=_0x5839f4;return _0x2842a9(_0x3f7b64,{'children':[_0x284072(_0x5ce9d5(0x204),{'className':_0x5ce9d5(0x1eb),'children':_0x5ce9d5(0x272)}),_0x284072(_0x55525b,{'variant':_0x5ce9d5(0x1fe),'onClick':()=>_0x1e8ea5[_0x5ce9d5(0x1e6)](),'children':'Start\x20following'})]});}function Ae(_0x2a2a29){const _0x20e38d=_0x466b10,{coordinator:_0x2f847f}=_0x2a2a29;return _0x2842a9(_0x3f7b64,{'children':[_0x284072(_0x20e38d(0x204),{'className':_0x20e38d(0x1eb),'children':_0x20e38d(0x259)}),_0x284072(_0x55525b,{'variant':_0x20e38d(0x1e7),'onClick':()=>_0x2f847f[_0x20e38d(0x256)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x404097=_0x466b10;return _0x284072(_0x3f7b64,{'children':_0x404097(0x243)});}var Fe=Object[_0x466b10(0x24d)],He=(_0x3af4a8,_0x54c977,_0x45f71f,_0x18468e)=>{const _0x59dd6d=_0x466b10;for(var _0x482524=_0x18468e>0x1?void 0x0:_0x18468e?Fe(_0x54c977,_0x45f71f):_0x54c977,_0x43c9fc=_0x3af4a8[_0x59dd6d(0x225)]-0x1,_0x502c84;_0x43c9fc>=0x0;_0x43c9fc--)(_0x502c84=_0x3af4a8[_0x43c9fc])&&(_0x482524=_0x502c84(_0x482524)||_0x482524);return _0x482524;},A=(_0x35aba6,_0xf7c588)=>(_0x35d55c,_0x2aa1df)=>_0xf7c588(_0x35d55c,_0x2aa1df,_0x35aba6);let m=class extends _0x420bef{constructor(_0x404c5e,_0x1dc60f){const _0x212348=_0x466b10;super(),this[_0x212348(0x231)]=_0x404c5e,this['_uiPartsService']=_0x1dc60f,this[_0x212348(0x1e1)]();}[_0x466b10(0x1e1)](){const _0x15d5d9=_0x466b10;this[_0x15d5d9(0x237)](this[_0x15d5d9(0x220)]['registerComponent'](_0x325241[_0x15d5d9(0x1f0)],()=>_0x5e2acd(Le,this[_0x15d5d9(0x231)])));}};m=He([A(0x0,_0xb810a1(_0x42925d)),A(0x1,_0x13733b)],m);const ye=_0x466b10(0x262),T={};var Ue=Object[_0x466b10(0x24d)],Ve=(_0x46324b,_0x6736d6,_0x582f21,_0x3e0ae3)=>{const _0x24f45b=_0x466b10;for(var _0x35e3c2=_0x3e0ae3>0x1?void 0x0:_0x3e0ae3?Ue(_0x6736d6,_0x582f21):_0x6736d6,_0x2e3ba0=_0x46324b[_0x24f45b(0x225)]-0x1,_0xf878c0;_0x2e3ba0>=0x0;_0x2e3ba0--)(_0xf878c0=_0x46324b[_0x2e3ba0])&&(_0x35e3c2=_0xf878c0(_0x35e3c2)||_0x35e3c2);return _0x35e3c2;},je=(_0x5d8027,_0x4b18db)=>(_0x1c10e9,_0x8d8840)=>_0x4b18db(_0x1c10e9,_0x8d8840,_0x5d8027);let I=class extends _0x420bef{constructor(_0x1331c2){const _0x199c97=_0x466b10;super(),this[_0x199c97(0x224)]=_0x1331c2,this[_0x199c97(0x255)]();}[_0x466b10(0x255)](){[_0x54dcf4['id'],_0x59b67c['id'],_0x1cd2eb['id']]['forEach'](_0x208667=>{const _0xbbf640=_0x2fc8;this[_0xbbf640(0x237)](this['_liveShareService'][_0xbbf640(0x1e2)](_0x208667));});}};I=Ve([je(0x0,_0xb810a1(L))],I);var Me=Object[_0x466b10(0x264)],ke=Object[_0x466b10(0x24d)],Ge=(_0x2721e2,_0x3f4edc,_0x421d52)=>_0x3f4edc in _0x2721e2?Me(_0x2721e2,_0x3f4edc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x421d52}):_0x2721e2[_0x3f4edc]=_0x421d52,We=(_0x4bc93a,_0x3dba69,_0x577d56,_0x4a8b14)=>{const _0x462c7c=_0x466b10;for(var _0x3a2089=_0x4a8b14>0x1?void 0x0:_0x4a8b14?ke(_0x3dba69,_0x577d56):_0x3dba69,_0x293090=_0x4bc93a[_0x462c7c(0x225)]-0x1,_0x577587;_0x293090>=0x0;_0x293090--)(_0x577587=_0x4bc93a[_0x293090])&&(_0x3a2089=_0x577587(_0x3a2089)||_0x3a2089);return _0x3a2089;},F=(_0x96b8f6,_0x27683f)=>(_0x30d0bc,_0x3f9793)=>_0x27683f(_0x30d0bc,_0x3f9793,_0x96b8f6),B=(_0x3c5f67,_0x36697a,_0x629966)=>Ge(_0x3c5f67,typeof _0x36697a!=_0x466b10(0x1d9)?_0x36697a+'':_0x36697a,_0x629966);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x1ab38a{constructor(_0x595ff1=T,_0xe2e66f,_0x27027b){const _0x1b79f1=_0x466b10;super(),this['_config']=_0x595ff1,this[_0x1b79f1(0x231)]=_0xe2e66f,this['_configService']=_0x27027b;const {..._0x1ca6ef}=_0x153f93({},T,this[_0x1b79f1(0x1f4)]);this[_0x1b79f1(0x251)][_0x1b79f1(0x26e)](ye,_0x1ca6ef);}[_0x466b10(0x1fc)](){const _0x10f164=_0x466b10;_0x40c418(this[_0x10f164(0x231)],_0x26a6d8([[L],[S],[I],[m]],this[_0x10f164(0x1f4)][_0x10f164(0x1ec)])),_0x321cc3(this[_0x10f164(0x231)],[[I]]);}[_0x466b10(0x230)](){const _0x46d3c8=_0x466b10;_0x321cc3(this[_0x46d3c8(0x231)],[[m]]);}};B(b,_0x466b10(0x26a),_0x5da7e1[_0x466b10(0x24e)]),B(b,_0x466b10(0x235),Ye),b=We([_0x426f35(_0x27fd59),F(0x1,_0xb810a1(_0x42925d)),F(0x2,_0x534aaa)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x2c8835=_0x446d;(function(_0x335d8a,_0x53f694){const _0x47e140=_0x446d,_0x15efdb=_0x335d8a();while(!![]){try{const _0x3609b8=-parseInt(_0x47e140(0x166))/0x1+parseInt(_0x47e140(0x167))/0x2*(-parseInt(_0x47e140(0x156))/0x3)+parseInt(_0x47e140(0x16a))/0x4+-parseInt(_0x47e140(0x14f))/0x5*(-parseInt(_0x47e140(0x14b))/0x6)+parseInt(_0x47e140(0x160))/0x7+-parseInt(_0x47e140(0x15c))/0x8+-parseInt(_0x47e140(0x151))/0x9*(-parseInt(_0x47e140(0x14c))/0xa);if(_0x3609b8===_0x53f694)break;else _0x15efdb['push'](_0x15efdb['shift']());}catch(_0x1f8464){_0x15efdb['push'](_0x15efdb['shift']());}}}(_0x3d75,0x1d5c8));import{LiveShareController as _0x241c67,LiveShareStatus as _0x7a9635}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x4c8f29}from'@univerjs/engine-render';function _0x446d(_0x19a8ce,_0x52fd48){const _0x3d7580=_0x3d75();return _0x446d=function(_0x446d79,_0x37b2b0){_0x446d79=_0x446d79-0x14b;let _0x407986=_0x3d7580[_0x446d79];return _0x407986;},_0x446d(_0x19a8ce,_0x52fd48);}import{SetWorksheetActiveOperation as _0xe8d4e8}from'@univerjs/sheets';import{SetScrollOperation as _0x26191c}from'@univerjs/sheets-ui';import{FRange as _0x52721d}from'@univerjs/sheets/facade';import{FUniver as _0x352c42,FEnum as _0x514a6e}from'@univerjs/core/facade';class I extends _0x52721d{[_0x2c8835(0x165)](_0x4960e3,_0x24e408,_0x29140d,_0x3fa3ab,_0x243dac){const _0x4b0806=_0x2c8835,_0x1d6918=_0x4960e3[_0x4b0806(0x15e)](_0x241c67),_0x3940d7=_0x4960e3[_0x4b0806(0x15e)](_0x4c8f29),_0x3e1394=_0x24e408['getUnitId'](),_0x3c360d=_0x24e408[_0x4b0806(0x153)](),_0x29f215=_0x1d6918[_0x4b0806(0x154)](_0x3e1394);(_0x29f215==null?void 0x0:_0x29f215[_0x4b0806(0x16b)]())!==_0x7a9635[_0x4b0806(0x150)]||(_0x29140d[_0x4b0806(0x152)]()!==_0x3c360d['getSheetId']()&&this[_0x4b0806(0x15b)]['executeCommand'](_0xe8d4e8['id'],{'unitId':_0x3e1394,'subUnitId':_0x29140d['getSheetId']()}),!_0x3940d7[_0x4b0806(0x14d)](_0x3e1394))||_0x243dac[_0x4b0806(0x15a)](_0x26191c['id'],{'unitId':_0x24e408['getUnitId'](),'sheetId':_0x29140d[_0x4b0806(0x152)](),'sheetViewStartRow':_0x3fa3ab[_0x4b0806(0x15f)],'sheetViewStartColumn':_0x3fa3ab[_0x4b0806(0x159)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x52721d[_0x2c8835(0x169)](I);class m extends _0x352c42{[_0x2c8835(0x14e)](){const _0x3e4837=_0x2c8835;var _0xd08e42,_0x1ceaba;const _0x3a40f9=this['_injector'][_0x3e4837(0x15e)](_0x241c67),_0x5ac724=(_0xd08e42=this[_0x3e4837(0x157)]())==null?void 0x0:_0xd08e42[_0x3e4837(0x155)]();if(!_0x5ac724)throw new Error(_0x3e4837(0x163));const _0x52ea62=_0x3a40f9[_0x3e4837(0x154)](_0x5ac724);return(_0x1ceaba=_0x52ea62==null?void 0x0:_0x52ea62[_0x3e4837(0x16b)]())!=null?_0x1ceaba:_0x7a9635[_0x3e4837(0x161)];}[_0x2c8835(0x158)](){const _0x584c95=_0x2c8835;var _0x2fe493;const _0x3bbc39=this[_0x584c95(0x168)][_0x584c95(0x15e)](_0x241c67),_0x1b29c4=(_0x2fe493=this[_0x584c95(0x157)]())==null?void 0x0:_0x2fe493[_0x584c95(0x155)]();if(!_0x1b29c4)throw new Error('No\x20active\x20workbook\x20found.');const _0x432bc6=_0x3bbc39[_0x584c95(0x154)](_0x1b29c4);if(!_0x432bc6)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x432bc6[_0x584c95(0x158)]();}[_0x2c8835(0x16c)](){const _0x1cb8b8=_0x2c8835;var _0x5797c2;const _0x40e57c=this['_injector'][_0x1cb8b8(0x15e)](_0x241c67),_0x5d824d=(_0x5797c2=this[_0x1cb8b8(0x157)]())==null?void 0x0:_0x5797c2[_0x1cb8b8(0x155)]();if(!_0x5d824d)throw new Error(_0x1cb8b8(0x163));const _0x78ed96=_0x40e57c[_0x1cb8b8(0x154)](_0x5d824d);if(!_0x78ed96)throw new Error(_0x1cb8b8(0x164));_0x78ed96[_0x1cb8b8(0x16c)]();}[_0x2c8835(0x15d)](){const _0x2bd584=_0x2c8835;var _0x4f54a5;const _0x159439=this[_0x2bd584(0x168)][_0x2bd584(0x15e)](_0x241c67),_0x100c86=(_0x4f54a5=this[_0x2bd584(0x157)]())==null?void 0x0:_0x4f54a5[_0x2bd584(0x155)]();if(!_0x100c86)throw new Error('No\x20active\x20workbook\x20found.');const _0x5a539e=_0x159439[_0x2bd584(0x154)](_0x100c86);if(!_0x5a539e)throw new Error(_0x2bd584(0x164));_0x5a539e['tryStartPresenting']();}[_0x2c8835(0x16d)](){const _0x4b554b=_0x2c8835;var _0x11dcbd;const _0x158adc=this[_0x4b554b(0x168)][_0x4b554b(0x15e)](_0x241c67),_0x677b7b=(_0x11dcbd=this['getActiveWorkbook']())==null?void 0x0:_0x11dcbd[_0x4b554b(0x155)]();if(!_0x677b7b)throw new Error(_0x4b554b(0x163));const _0x1bdfe0=_0x158adc[_0x4b554b(0x154)](_0x677b7b);if(!_0x1bdfe0)throw new Error(_0x4b554b(0x164));_0x1bdfe0[_0x4b554b(0x16d)]();}}_0x352c42['extend'](m);class C extends _0x514a6e{get[_0x2c8835(0x162)](){return _0x7a9635;}}_0x514a6e[_0x2c8835(0x169)](C);function _0x3d75(){const _0x4e361a=['extend','954812JpYvuM','getStatus','stopFollowing','stopPresenting','246ukYLEZ','26230JMkrbO','getRenderById','getLiveShareStatus','3330mVANJs','PRESENTING','81WHbObp','getSheetId','getActiveSheet','getLiveShareCoordinatorSync','getId','3DCUzcf','getActiveWorkbook','startFollowing','startColumn','syncExecuteCommand','_commandService','876144EwMytE','startPresenting','get','startRow','1681302HAPfxX','IDLE','LiveShareStatusEnum','No\x20active\x20workbook\x20found.','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_initialize','189514nFCYip','221012tiivii','_injector'];_0x3d75=function(){return _0x4e361a;};return _0x3d75();}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2c17bd=_0x6dcd;(function(_0x46eab9,_0x3f9f6e){const _0x372050=_0x6dcd,_0x163203=_0x46eab9();while(!![]){try{const _0x2f00ac=-parseInt(_0x372050(0x1f7))/0x1+parseInt(_0x372050(0x266))/0x2*(parseInt(_0x372050(0x1e7))/0x3)+-parseInt(_0x372050(0x246))/0x4*(-parseInt(_0x372050(0x218))/0x5)+-parseInt(_0x372050(0x21c))/0x6*(-parseInt(_0x372050(0x1e5))/0x7)+-parseInt(_0x372050(0x1ff))/0x8*(-parseInt(_0x372050(0x1dd))/0x9)+parseInt(_0x372050(0x1fe))/0xa+-parseInt(_0x372050(0x1d4))/0xb;if(_0x2f00ac===_0x3f9f6e)break;else _0x163203['push'](_0x163203['shift']());}catch(_0x4a332d){_0x163203['push'](_0x163203['shift']());}}}(_0xae52,0x2ddb1));var J=Object['defineProperty'],K=(_0x35970c,_0x3ab2be,_0x4465cc)=>_0x3ab2be in _0x35970c?J(_0x35970c,_0x3ab2be,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4465cc}):_0x35970c[_0x3ab2be]=_0x4465cc,u=(_0x22a061,_0x191ca2,_0x191e6c)=>K(_0x22a061,typeof _0x191ca2!=_0x2c17bd(0x1d3)?_0x191ca2+'':_0x191ca2,_0x191e6c);import{Disposable as _0x340cc7,toDisposable as _0x1aa50a,IUniverInstanceService as _0x9a2b99,Inject as _0xb91b10,Injector as _0x13efe5,IConfigService as _0x45ac9b,ICommandService as _0x147916,RxDisposable as _0x1729a0,UniverInstanceType as _0x45889c,DisposableCollection as _0x4a90c4,CommandType as _0x4010de,DependentOn as _0x1c6ccb,Plugin as _0x24270d,merge as _0x51df76,registerDependencies as _0x312d92,mergeOverrideWithDependencies as _0x43af49,touchDependencies as _0x5199da}from'@univerjs/core';import{useDependency as _0x1bfba8,useObservable as _0x206e01,IUIPartsService as _0x2066c5,BuiltInUIPart as _0x1bd2e1,connectInjector as _0x33bb9e}from'@univerjs/ui';import{jsx as _0x76a09b,jsxs as _0x490d08,Fragment as _0x1c44c8}from'react/jsx-runtime';import{Dropdown as _0x39b390,clsx as _0x3e4a67,Button as _0x2cafee}from'@univerjs/design';import{useRef as _0x470657,createElement as _0x690b7e,forwardRef as _0x22f24d,useState as _0x14fd36,useEffect as _0x23e84d}from'react';import{CollaborationEvent as _0x51a117,parseProtocolChangeset as _0x1db3a1}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x228d40,SessionStatus as _0x79de65,UniverCollaborationClientPlugin as _0x172e42}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x288a71,SetWorksheetActiveOperation as _0x411a50}from'@univerjs/sheets';import{BehaviorSubject as _0x530a32,Subject as _0x517350}from'rxjs';import{takeUntil as _0x1f1c93,throttleTime as _0x3d7821}from'rxjs/operators';import{SetZoomRatioOperation as _0x3270d8,SetScrollOperation as _0x552a0c}from'@univerjs/sheets-ui';function k({ref:_0x1df001,..._0x513bb3}){const _0x354358=_0x2c17bd,{icon:_0x41d999,id:_0x3a64c2,className:_0x2ad4d2,extend:_0x401ca8,..._0x35a9d5}=_0x513bb3,_0x357d63=(_0x354358(0x249)+_0x3a64c2+'\x20'+(_0x2ad4d2||''))[_0x354358(0x22e)](),_0x3bd686=_0x470657('_'+Oe());return G(_0x41d999,''+_0x3a64c2,{'defIds':_0x41d999[_0x354358(0x21d)],'idSuffix':_0x3bd686['current']},{'ref':_0x1df001,'className':_0x357d63,..._0x35a9d5},_0x401ca8);}function G(_0x5a6ee8,_0x586d64,_0xada4dc,_0x3ebb1f,_0x4a6f3f){const _0x5e05ae=_0x2c17bd;return _0x690b7e(_0x5a6ee8[_0x5e05ae(0x273)],{'key':_0x586d64,...be(_0x5a6ee8,_0xada4dc,_0x4a6f3f),..._0x3ebb1f},(Ee(_0x5a6ee8,_0xada4dc)['children']||[])[_0x5e05ae(0x22d)]((_0x30a27b,_0x3c71c4)=>G(_0x30a27b,_0x586d64+'-'+_0x5a6ee8[_0x5e05ae(0x273)]+'-'+_0x3c71c4,_0xada4dc,void 0x0,_0x4a6f3f)));}function be(_0x4f137d,_0xa6c78e,_0x437c49){const _0x4b4d1f=_0x2c17bd,_0x44902f={..._0x4f137d[_0x4b4d1f(0x1f5)]};_0x437c49!=null&&_0x437c49[_0x4b4d1f(0x268)]&&_0x44902f[_0x4b4d1f(0x217)]===_0x4b4d1f(0x268)&&(_0x44902f[_0x4b4d1f(0x217)]=_0x437c49['colorChannel1']),_0x4f137d[_0x4b4d1f(0x273)]==='mask'&&_0x44902f['id']&&(_0x44902f['id']=_0x44902f['id']+_0xa6c78e[_0x4b4d1f(0x23e)]),Object[_0x4b4d1f(0x1e0)](_0x44902f)[_0x4b4d1f(0x252)](([_0x40353a,_0x11371d])=>{const _0x2d2c9b=_0x4b4d1f;_0x40353a===_0x2d2c9b(0x210)&&typeof _0x11371d==_0x2d2c9b(0x25e)&&(_0x44902f[_0x40353a]=_0x11371d[_0x2d2c9b(0x1f8)](/url\(#(.*)\)/,'url(#$1'+_0xa6c78e[_0x2d2c9b(0x23e)]+')'));});const {defIds:_0xf09bbc}=_0xa6c78e;return!_0xf09bbc||_0xf09bbc[_0x4b4d1f(0x225)]===0x0||(_0x4f137d[_0x4b4d1f(0x273)]===_0x4b4d1f(0x275)&&_0x44902f[_0x4b4d1f(0x24a)]&&(_0x44902f[_0x4b4d1f(0x24a)]=_0x44902f[_0x4b4d1f(0x24a)]+_0xa6c78e['idSuffix']),Object[_0x4b4d1f(0x1e0)](_0x44902f)[_0x4b4d1f(0x252)](([_0x19d350,_0x1d4ae8])=>{const _0x5d1565=_0x4b4d1f;typeof _0x1d4ae8==_0x5d1565(0x25e)&&(_0x44902f[_0x19d350]=_0x1d4ae8[_0x5d1565(0x1f8)](/url\(#(.*)\)/,_0x5d1565(0x1f1)+_0xa6c78e['idSuffix']+')'));})),_0x44902f;}function Ee(_0x2e1a6f,_0x2ad328){const _0x3fa413=_0x2c17bd;var _0x37c9f4;const {defIds:_0x5bc420}=_0x2ad328;return!_0x5bc420||_0x5bc420[_0x3fa413(0x225)]===0x0?_0x2e1a6f:_0x2e1a6f[_0x3fa413(0x273)]===_0x3fa413(0x226)&&((_0x37c9f4=_0x2e1a6f['children'])!=null&&_0x37c9f4[_0x3fa413(0x225)])?{..._0x2e1a6f,'children':_0x2e1a6f[_0x3fa413(0x243)][_0x3fa413(0x22d)](_0x28888b=>typeof _0x28888b[_0x3fa413(0x1f5)]['id']==_0x3fa413(0x25e)&&_0x5bc420&&_0x5bc420['includes'](_0x28888b[_0x3fa413(0x1f5)]['id'])?{..._0x28888b,'attrs':{..._0x28888b['attrs'],'id':_0x28888b[_0x3fa413(0x1f5)]['id']+_0x2ad328['idSuffix']}}:_0x28888b)}:_0x2e1a6f;}function Oe(){const _0xaf154c=_0x2c17bd;return Math['random']()[_0xaf154c(0x1d5)](0x24)[_0xaf154c(0x265)](0x2,0x8);}k[_0x2c17bd(0x23c)]='UniverIcon';const we={'tag':_0x2c17bd(0x1dc),'attrs':{'xmlns':_0x2c17bd(0x25f),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x2c17bd(0x271),'height':_0x2c17bd(0x271)},'children':[{'tag':_0x2c17bd(0x219),'attrs':{'fill':_0x2c17bd(0x1ee),'d':_0x2c17bd(0x1fa)}},{'tag':_0x2c17bd(0x219),'attrs':{'fill':_0x2c17bd(0x1ee),'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':_0x2c17bd(0x20c),'clipRule':'evenodd'}}]},W=_0x22f24d(function(_0x50414d,_0x4ebea5){return _0x690b7e(k,Object['assign']({},_0x50414d,{'id':'live-share-icon','ref':_0x4ebea5,'icon':we}));});W[_0x2c17bd(0x23c)]=_0x2c17bd(0x211);class L extends _0x340cc7{constructor(){const _0x2435a6=_0x2c17bd;super(...arguments),u(this,_0x2435a6(0x24f),new Set()),u(this,_0x2435a6(0x205),new Set());}[_0x2c17bd(0x20e)](_0x41c0a5){const _0x5a6bdc=_0x2c17bd;return this[_0x5a6bdc(0x24f)]['add'](_0x41c0a5),_0x1aa50a(()=>this[_0x5a6bdc(0x24f)][_0x5a6bdc(0x1d7)](_0x41c0a5));}[_0x2c17bd(0x248)](_0x5176f0){const _0x482477=_0x2c17bd;return this[_0x482477(0x205)][_0x482477(0x255)](_0x5176f0),_0x1aa50a(()=>this[_0x482477(0x205)]['delete'](_0x5176f0));}[_0x2c17bd(0x203)](_0x24d258){const _0x1e2684=_0x2c17bd;return this[_0x1e2684(0x24f)][_0x1e2684(0x22a)](_0x24d258);}[_0x2c17bd(0x257)](_0x5d77de){const _0x390056=_0x2c17bd;return Array[_0x390056(0x26a)](this['_reporters'])[_0x390056(0x22d)](_0x507a8f=>_0x507a8f(_0x5d77de));}}var Ne=Object[_0x2c17bd(0x214)],Y=(_0xd80162,_0x315b46,_0x520114,_0x5ac254)=>{const _0x45e54d=_0x2c17bd;for(var _0x3eb9d6=_0x5ac254>0x1?void 0x0:_0x5ac254?Ne(_0x315b46,_0x520114):_0x315b46,_0x42a071=_0xd80162[_0x45e54d(0x225)]-0x1,_0xa5d9a5;_0x42a071>=0x0;_0x42a071--)(_0xa5d9a5=_0xd80162[_0x42a071])&&(_0x3eb9d6=_0xa5d9a5(_0x3eb9d6)||_0x3eb9d6);return _0x3eb9d6;},_=(_0x5357c8,_0x5e2084)=>(_0x5a230b,_0x2bacba)=>_0x5e2084(_0x5a230b,_0x2bacba,_0x5357c8);let S=class extends _0x1729a0{constructor(_0x2d5315,_0x37abb6,_0x107b1f){const _0x58a46a=_0x2c17bd;super(),u(this,'_entities',new Map()),(this[_0x58a46a(0x20a)]=_0x2d5315,this[_0x58a46a(0x1d8)]=_0x37abb6,this['_collabSessionService']=_0x107b1f,this[_0x58a46a(0x1e1)]());}async[_0x2c17bd(0x1ed)](_0x4a21eb){const _0x147a9a=_0x2c17bd;return this[_0x147a9a(0x1e3)][_0x147a9a(0x22a)](_0x4a21eb)||await this[_0x147a9a(0x25c)](_0x4a21eb),this['_entities'][_0x147a9a(0x23d)](_0x4a21eb);}[_0x2c17bd(0x267)](_0x570ee6){const _0x57bc53=_0x2c17bd;var _0x1e4954;return(_0x1e4954=this[_0x57bc53(0x1e3)][_0x57bc53(0x23d)](_0x570ee6))!=null?_0x1e4954:null;}['_init'](){const _0x4e1f10=_0x2c17bd;this[_0x4e1f10(0x20a)][_0x4e1f10(0x24d)](_0x45889c[_0x4e1f10(0x1de)])[_0x4e1f10(0x1f6)](_0x1f1c93(this[_0x4e1f10(0x1e2)]))[_0x4e1f10(0x232)](async _0x485fc2=>{const _0x545891=_0x4e1f10,_0x47768c=_0x485fc2[_0x545891(0x274)]();this[_0x545891(0x1e3)][_0x545891(0x22a)](_0x47768c)||this[_0x545891(0x25c)](_0x47768c);}),this[_0x4e1f10(0x20a)][_0x4e1f10(0x1df)](_0x45889c[_0x4e1f10(0x1de)])[_0x4e1f10(0x1f6)](_0x1f1c93(this[_0x4e1f10(0x1e2)]))[_0x4e1f10(0x232)](_0x321e9a=>{const _0x31af76=_0x4e1f10,_0x22d47a=_0x321e9a[_0x31af76(0x274)](),_0x2ed8ce=this[_0x31af76(0x1e3)][_0x31af76(0x23d)](_0x22d47a);_0x2ed8ce==null||_0x2ed8ce[_0x31af76(0x241)]();});}async[_0x2c17bd(0x25c)](_0x15653a){const _0x5d7f3a=_0x2c17bd,_0x5f2b47=await this[_0x5d7f3a(0x22b)][_0x5d7f3a(0x23b)](_0x15653a),_0x46bd9b=this['_injector']['createInstance'](N,_0x15653a,_0x5f2b47);return _0x46bd9b[_0x5d7f3a(0x216)](),this[_0x5d7f3a(0x1e3)][_0x5d7f3a(0x1d1)](_0x15653a,_0x46bd9b),_0x46bd9b;}};S=Y([_(0x0,_0x9a2b99),_(0x1,_0xb91b10(_0x13efe5)),_(0x2,_0xb91b10(_0x228d40))],S);var c=(_0x48bffd=>(_0x48bffd[_0x2c17bd(0x1ef)]=_0x2c17bd(0x261),_0x48bffd[_0x2c17bd(0x26c)]=_0x2c17bd(0x201),_0x48bffd[_0x2c17bd(0x258)]=_0x2c17bd(0x253),_0x48bffd['NOT_FOLLOWING']=_0x2c17bd(0x212),_0x48bffd[_0x2c17bd(0x22f)]='presenting',_0x48bffd))(c||{});const Ce=_0x2c17bd(0x24e),De=0xc8;let N=class extends _0x1729a0{constructor(_0x421a24,_0x1d4fe7,_0x4e4a9e,_0x58778c,_0x255ad6){const _0x5cdd7f=_0x2c17bd;super(),u(this,_0x5cdd7f(0x204),new _0x530a32(_0x5cdd7f(0x201))),u(this,_0x5cdd7f(0x1d2),this[_0x5cdd7f(0x204)][_0x5cdd7f(0x26e)]()),u(this,_0x5cdd7f(0x1e1),!0x1),u(this,_0x5cdd7f(0x264),null),u(this,_0x5cdd7f(0x1e8),null),(this[_0x5cdd7f(0x202)]=_0x421a24,this['_collabSession']=_0x1d4fe7,this[_0x5cdd7f(0x220)]=_0x4e4a9e,this[_0x5cdd7f(0x236)]=_0x58778c,this[_0x5cdd7f(0x238)]=_0x255ad6);}get['_status'](){const _0x566241=_0x2c17bd;return this[_0x566241(0x204)][_0x566241(0x260)]();}[_0x2c17bd(0x241)](){const _0x2d9d0b=_0x2c17bd;var _0x21417d;(_0x21417d=this[_0x2d9d0b(0x264)])==null||_0x21417d[_0x2d9d0b(0x241)](),this[_0x2d9d0b(0x204)][_0x2d9d0b(0x270)](_0x2d9d0b(0x201)),this[_0x2d9d0b(0x204)][_0x2d9d0b(0x1d9)]();}[_0x2c17bd(0x1ec)](){const _0x58033f=_0x2c17bd;return this[_0x58033f(0x1da)];}[_0x2c17bd(0x216)](){const _0x31733a=_0x2c17bd;this[_0x31733a(0x1e1)]||(this[_0x31733a(0x1e1)]=!0x0,this['_collabSession'][_0x31733a(0x26f)][_0x31733a(0x1f6)](_0x1f1c93(this[_0x31733a(0x1e2)]))['subscribe'](_0x17ec45=>{const _0x38dc57=_0x31733a;switch(_0x17ec45){case _0x79de65[_0x38dc57(0x1ef)]:this['_handleOffline']();break;case _0x79de65[_0x38dc57(0x25d)]:this['_handleOnline']();break;}}),this[_0x31733a(0x26d)][_0x31733a(0x208)][_0x31733a(0x1f6)](_0x1f1c93(this['dispose$']))[_0x31733a(0x232)](_0x88aae0=>{const _0x1932c0=_0x31733a,{eventID:_0x449af1}=_0x88aae0;switch(_0x449af1){case _0x51a117['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x88aae0);break;case _0x51a117[_0x1932c0(0x240)]:this[_0x1932c0(0x215)](_0x88aae0);break;case _0x51a117['LIVESHARE_TERMINATE']:this[_0x1932c0(0x26b)]();break;case _0x51a117[_0x1932c0(0x231)]:this[_0x1932c0(0x207)](_0x88aae0);break;}}));}['tryStartPresenting'](){const _0x907710=_0x2c17bd;this[_0x907710(0x26d)]['send']({'eventID':_0x51a117[_0x907710(0x1fb)],'data':{'unitID':this[_0x907710(0x202)],'userID':this[_0x907710(0x26d)]['getMemberID']()}},this[_0x907710(0x202)]);}[_0x2c17bd(0x1f0)](){const _0x2aa2f9=_0x2c17bd;this[_0x2aa2f9(0x1da)]==='presenting'&&(this[_0x2aa2f9(0x204)][_0x2aa2f9(0x270)](_0x2aa2f9(0x201)),this[_0x2aa2f9(0x26d)][_0x2aa2f9(0x1f4)]({'eventID':_0x51a117[_0x2aa2f9(0x239)],'data':{'unitID':this[_0x2aa2f9(0x202)]}},this[_0x2aa2f9(0x202)]));}[_0x2c17bd(0x1fc)](){const _0x2d5d72=_0x2c17bd;this['_status']===_0x2d5d72(0x212)&&(this[_0x2d5d72(0x204)][_0x2d5d72(0x270)](_0x2d5d72(0x253)),this[_0x2d5d72(0x224)]());}[_0x2c17bd(0x1f3)](){const _0x2fed31=_0x2c17bd;this[_0x2fed31(0x1da)]===_0x2fed31(0x253)&&this[_0x2fed31(0x1e4)]();}['_handleNewHost'](_0x27a1d2){const _0x2ce34b=_0x2c17bd,{presenter:_0xc8a672}=_0x27a1d2[_0x2ce34b(0x237)],_0x4d8d36=this[_0x2ce34b(0x26d)]['getMemberID']();this[_0x2ce34b(0x1e8)]=_0xc8a672,_0xc8a672===_0x4d8d36?(this[_0x2ce34b(0x1e4)](),this[_0x2ce34b(0x227)]()):this[_0x2ce34b(0x1da)]!==_0x2ce34b(0x212)&&(this[_0x2ce34b(0x206)](),this[_0x2ce34b(0x224)]());}['_fetchOperations'](){const _0x1af4a7=_0x2c17bd,_0x299498={'eventID':_0x51a117[_0x1af4a7(0x25a)]};this[_0x1af4a7(0x26d)]['send'](_0x299498,this['_unitID']);}[_0x2c17bd(0x26b)](){const _0x30f54e=_0x2c17bd;this['_presenter']=null,this[_0x30f54e(0x1da)]!==_0x30f54e(0x20f)&&this[_0x30f54e(0x233)]();}[_0x2c17bd(0x207)](_0x4b0354){const _0x20ad2c=_0x2c17bd;if(this[_0x20ad2c(0x1da)]===_0x20ad2c(0x253)&&this[_0x20ad2c(0x1e8)]===_0x4b0354[_0x20ad2c(0x237)]['memberID']){const _0x22b7b6=_0x1db3a1(_0x4b0354[_0x20ad2c(0x237)])[_0x20ad2c(0x20d)][_0x20ad2c(0x21e)]()[_0x20ad2c(0x230)](_0x41a9c3=>_0x41a9c3['id']===_0x288a71['id']);if(_0x22b7b6){const _0x2e5be3=_0x22b7b6[_0x20ad2c(0x1e9)][_0x20ad2c(0x1eb)],_0xd40381=_0x22b7b6[_0x20ad2c(0x1e9)][_0x20ad2c(0x1fd)]['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x411a50['id'],{'unitId':_0x2e5be3,'subUnitId':_0xd40381},{'fromCollab':!0x0});});}}}[_0x2c17bd(0x227)](){const _0xe68353=_0x2c17bd;this[_0xe68353(0x204)][_0xe68353(0x270)](_0xe68353(0x20f));const _0x1a9045=new Map(),_0x22dea8=this[_0xe68353(0x264)]=new _0x4a90c4();_0x22dea8[_0xe68353(0x255)](_0x1aa50a(()=>{const _0x8cb478=_0xe68353;_0x1a9045[_0x8cb478(0x252)](_0x56aa2e=>_0x56aa2e[_0x8cb478(0x1d9)]()),_0x1a9045[_0x8cb478(0x1ea)]();})),_0x22dea8[_0xe68353(0x255)](this[_0xe68353(0x238)]['onCommandExecuted'](_0x49a0a8=>{const _0x4f78af=_0xe68353;var _0x7947c;if(_0x49a0a8[_0x4f78af(0x228)]!==_0x4010de['OPERATION']||!this['_liveShareService']['shouldShareOperation'](_0x49a0a8['id']))return;const {id:_0x59e605}=_0x49a0a8;let _0x14ad6a;_0x1a9045['has'](_0x59e605)?_0x14ad6a=_0x1a9045['get'](_0x59e605):(_0x14ad6a=new _0x517350(),_0x1a9045['set'](_0x59e605,_0x14ad6a),_0x14ad6a[_0x4f78af(0x1f6)](_0x3d7821((_0x7947c=this['_configService']['getConfig'](Ce))!=null?_0x7947c:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1ebcd3=>{const _0x35dfa8=_0x4f78af;this[_0x35dfa8(0x26d)][_0x35dfa8(0x1f4)]({'eventID':_0x51a117[_0x35dfa8(0x240)],'data':{'unitID':this[_0x35dfa8(0x202)],'operations':{[_0x1ebcd3['id']]:{'id':_0x1ebcd3['id'],'params':JSON[_0x35dfa8(0x1d6)](_0x1ebcd3[_0x35dfa8(0x1e9)])}}}},this[_0x35dfa8(0x202)]);})),_0x14ad6a[_0x4f78af(0x270)](_0x49a0a8);})),this[_0xe68353(0x236)][_0xe68353(0x257)](this[_0xe68353(0x202)])[_0xe68353(0x252)](_0x525933=>this[_0xe68353(0x26d)]['send']({'eventID':_0x51a117[_0xe68353(0x240)],'data':{'unitID':this[_0xe68353(0x202)],'operations':{[_0x525933['id']]:{'id':_0x525933['id'],'params':JSON[_0xe68353(0x1d6)](_0x525933[_0xe68353(0x1e9)])}}}},this[_0xe68353(0x202)]));}['_stopPresenting'](){const _0x1d9168=_0x2c17bd;var _0x24528a;this[_0x1d9168(0x204)]['next'](_0x1d9168(0x201)),(_0x24528a=this[_0x1d9168(0x264)])==null||_0x24528a[_0x1d9168(0x241)](),this[_0x1d9168(0x264)]=null;}[_0x2c17bd(0x224)](){const _0x3f915e=_0x2c17bd;var _0x61c514;(_0x61c514=this[_0x3f915e(0x264)])==null||_0x61c514['dispose'](),this['_status$'][_0x3f915e(0x270)]('following');}[_0x2c17bd(0x233)](){const _0x2c2b0b=_0x2c17bd;var _0x39c84b;this['_status$']['next'](_0x2c2b0b(0x201)),(_0x39c84b=this[_0x2c2b0b(0x264)])==null||_0x39c84b[_0x2c2b0b(0x241)](),this[_0x2c2b0b(0x264)]=null;}[_0x2c17bd(0x1e4)](){const _0x573324=_0x2c17bd;var _0x1b4944;this[_0x573324(0x204)][_0x573324(0x270)](_0x573324(0x212)),(_0x1b4944=this[_0x573324(0x264)])==null||_0x1b4944[_0x573324(0x241)]();}[_0x2c17bd(0x215)](_0x1e99cb){const _0x1cf79c=_0x2c17bd;if([_0x1cf79c(0x20f),_0x1cf79c(0x212),_0x1cf79c(0x261)][_0x1cf79c(0x213)](this[_0x1cf79c(0x1da)])||!_0x1e99cb[_0x1cf79c(0x237)]['presenter']||_0x1e99cb[_0x1cf79c(0x237)][_0x1cf79c(0x24b)]===this['_collabSession']['getMemberID']())return;this[_0x1cf79c(0x1da)]==='idle'&&this[_0x1cf79c(0x224)]();const _0x7cb88f=_0x1e99cb[_0x1cf79c(0x237)][_0x1cf79c(0x20b)];Object[_0x1cf79c(0x25b)](_0x7cb88f)[_0x1cf79c(0x252)](_0xb6fb73=>{const _0x50a750=_0x1cf79c;this[_0x50a750(0x238)][_0x50a750(0x1e6)](_0xb6fb73['id'],_0xb6fb73[_0x50a750(0x1e9)]?JSON[_0x50a750(0x234)](_0xb6fb73[_0x50a750(0x1e9)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x41055d=_0x2c17bd;var _0x1c4063;this[_0x41055d(0x204)][_0x41055d(0x270)](_0x41055d(0x261)),(_0x1c4063=this[_0x41055d(0x264)])==null||_0x1c4063['dispose']();}[_0x2c17bd(0x269)](){const _0x5ba351=_0x2c17bd;this['_status$'][_0x5ba351(0x270)](_0x5ba351(0x201)),this[_0x5ba351(0x256)]();}};N=Y([_(0x2,_0x45ac9b),_(0x3,_0xb91b10(L)),_(0x4,_0x147916)],N);function Le(){const _0x18e79c=_0x2c17bd,_0x1dd162=_0x1bfba8(S),_0x4a51aa=_0x1bfba8(_0x9a2b99),_0x1cd3f6=_0x206e01(()=>_0x4a51aa[_0x18e79c(0x1f2)](_0x45889c['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x3a132f,_0x30e72d]=_0x14fd36(null),[_0x3c8a80,_0x39aeef]=_0x14fd36(c[_0x18e79c(0x26c)]),_0x5d719f=_0x470657(null);return _0x23e84d(()=>(_0x1cd3f6&&_0x1dd162[_0x18e79c(0x1ed)](_0x1cd3f6[_0x18e79c(0x274)]())['then'](_0x512a61=>{const _0x193bf1=_0x18e79c;_0x30e72d(_0x512a61),_0x5d719f[_0x193bf1(0x272)]=_0x512a61[_0x193bf1(0x1d2)][_0x193bf1(0x232)](_0xaa4c7b=>{_0x39aeef(_0xaa4c7b);});}),()=>{const _0xbe3200=_0x18e79c;var _0x6f1578;(_0x6f1578=_0x5d719f[_0xbe3200(0x272)])==null||_0x6f1578['unsubscribe'](),_0x5d719f[_0xbe3200(0x272)]=null;}),[_0x1cd3f6,_0x1dd162]),_0x3a132f?_0x76a09b(_0x39b390,{'align':_0x18e79c(0x22c),'disabled':_0x3c8a80===c[_0x18e79c(0x1ef)],'className':_0x18e79c(0x221),'overlay':_0x76a09b(Re,{'status':_0x3c8a80,'coordinator':_0x3a132f}),'children':_0x76a09b('button',{'className':_0x3e4a67('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3c8a80===c[_0x18e79c(0x1ef)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3c8a80!==c['OFFLINE']}),'type':_0x18e79c(0x254),'children':_0x76a09b(W,{'className':_0x18e79c(0x222)})})}):null;}function Re(_0x3a55a0){const _0x45fef2=_0x2c17bd,{status:_0x32baff,coordinator:_0x53e42a}=_0x3a55a0;switch(_0x32baff){case c[_0x45fef2(0x26c)]:return _0x76a09b($e,{'coordinator':_0x53e42a});case c[_0x45fef2(0x258)]:return _0x76a09b(xe,{'coordinator':_0x53e42a});case c['NOT_FOLLOWING']:return _0x76a09b(Pe,{'coordinator':_0x53e42a});case c['OFFLINE']:return _0x76a09b(Te,{});case c[_0x45fef2(0x22f)]:return _0x76a09b(Ae,{'coordinator':_0x53e42a});default:return null;}}function $e(_0x50a119){const _0x17f16b=_0x2c17bd,{coordinator:_0x4dd261}=_0x50a119;return _0x490d08(_0x1c44c8,{'children':[_0x76a09b(_0x17f16b(0x21f),{'className':_0x17f16b(0x1db),'children':_0x17f16b(0x21a)}),_0x76a09b(_0x2cafee,{'onClick':()=>_0x4dd261[_0x17f16b(0x209)](),'children':'Start'})]});}function xe(_0x3e1b1a){const _0x48b8e3=_0x2c17bd,{coordinator:_0x1b8c91}=_0x3e1b1a;return _0x490d08(_0x1c44c8,{'children':[_0x76a09b('div',{'className':_0x48b8e3(0x1db),'children':_0x48b8e3(0x259)}),_0x76a09b(_0x2cafee,{'onClick':()=>_0x1b8c91[_0x48b8e3(0x1f3)](),'children':_0x48b8e3(0x223)})]});}function Pe(_0x182e79){const _0x173f14=_0x2c17bd,{coordinator:_0x4b774b}=_0x182e79;return _0x490d08(_0x1c44c8,{'children':[_0x76a09b(_0x173f14(0x21f),{'className':_0x173f14(0x1db),'children':_0x173f14(0x245)}),_0x76a09b(_0x2cafee,{'variant':_0x173f14(0x200),'onClick':()=>_0x4b774b[_0x173f14(0x1fc)](),'children':'Start\x20following'})]});}function Ae(_0x214adf){const _0x2cf4c8=_0x2c17bd,{coordinator:_0x2ef842}=_0x214adf;return _0x490d08(_0x1c44c8,{'children':[_0x76a09b(_0x2cf4c8(0x21f),{'className':_0x2cf4c8(0x1db),'children':_0x2cf4c8(0x242)}),_0x76a09b(_0x2cafee,{'variant':_0x2cf4c8(0x250),'onClick':()=>_0x2ef842[_0x2cf4c8(0x1f0)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x1a7d3b=_0x2c17bd;return _0x76a09b(_0x1c44c8,{'children':_0x1a7d3b(0x24c)});}var Fe=Object[_0x2c17bd(0x214)],He=(_0x1bb9b2,_0x5b183a,_0x2c02d7,_0x19aaed)=>{const _0x44d7bb=_0x2c17bd;for(var _0x38898e=_0x19aaed>0x1?void 0x0:_0x19aaed?Fe(_0x5b183a,_0x2c02d7):_0x5b183a,_0x16e70c=_0x1bb9b2[_0x44d7bb(0x225)]-0x1,_0x2d18c0;_0x16e70c>=0x0;_0x16e70c--)(_0x2d18c0=_0x1bb9b2[_0x16e70c])&&(_0x38898e=_0x2d18c0(_0x38898e)||_0x38898e);return _0x38898e;},A=(_0x5d6fbc,_0x537193)=>(_0x114252,_0x52e674)=>_0x537193(_0x114252,_0x52e674,_0x5d6fbc);let m=class extends _0x340cc7{constructor(_0x339511,_0x36757c){const _0x26e2ce=_0x2c17bd;super(),this[_0x26e2ce(0x1d8)]=_0x339511,this['_uiPartsService']=_0x36757c,this[_0x26e2ce(0x262)]();}[_0x2c17bd(0x262)](){const _0x4207e1=_0x2c17bd;this['disposeWithMe'](this[_0x4207e1(0x21b)][_0x4207e1(0x263)](_0x1bd2e1['HEADER_MENU'],()=>_0x33bb9e(Le,this['_injector'])));}};function _0x6dcd(_0x4e732e,_0xc26307){const _0xae527a=_0xae52();return _0x6dcd=function(_0x6dcde7,_0x39503b){_0x6dcde7=_0x6dcde7-0x1d1;let _0x4315be=_0xae527a[_0x6dcde7];return _0x4315be;},_0x6dcd(_0x4e732e,_0xc26307);}m=He([A(0x0,_0xb91b10(_0x13efe5)),A(0x1,_0x2066c5)],m);const ye=_0x2c17bd(0x235),T={};function _0xae52(){const _0x40ee8b=['_commandService','LIVESHARE_TERMINATE','UNIVER_LIVE_SHARE_PLUGIN','requireSession','displayName','get','idSuffix','onStarting','LIVESHARE_OPERATION','dispose','You\x27re\x20presenting\x20the\x20document','children','override','You\x27re\x20not\x20following\x20the\x20presenter','778388HjjhZk','UNIVER_UNKNOWN','registerInitialStateReporter','univerjs-icon\x20univerjs-icon-','xlink:href','presenter','You\x27are\x20offline.','getTypeOfUnitAdded$','SAME_OPERATION_SHARE_INTERVAL','_sharedOperations','default','defineProperty','forEach','following','button','add','_fetchOperations','getInitialStates','FOLLOWING','You\x27re\x20following\x20the\x20presenter','LIVESHARE_FETCH_OPERATIONS','values','_startLiveShareCoordinator','ONLINE','string','http://www.w3.org/2000/svg','getValue','offline','_mountLiveShare','registerComponent','_commandDisposable','substring','4IaNogR','getLiveShareCoordinatorSync','colorChannel1','_handleOnline','from','_handleTerminate','IDLE','_collabSession','asObservable','sessionStatus$','next','1em','current','tag','getUnitId','use','set','status$','symbol','4297007InuhqR','toString','stringify','delete','_injector','complete','_status','univer-mb-3\x20univer-w-full\x20univer-text-sm','svg','18nIahkE','UNIVER_SHEET','getTypeOfUnitDisposed$','entries','_init','dispose$','_entities','_stopFollowing','280PuBcim','executeCommand','302898cZIFaY','_presenter','params','clear','unitId','getStatus','getLiveShareCoordinator','currentColor','OFFLINE','stopPresenting','url(#$1','getCurrentTypeOfUnit$','stopFollowing','send','attrs','pipe','176396MgLtAD','replace','_config','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','LIVESHARE_REQUEST_HOST','startFollowing','sheet','475990AnLsXP','463080ilZrEI','text','idle','_unitID','shouldShareOperation','_status$','_reporters','_stopPresenting','_handleNewChangeSets','event$','tryStartPresenting','_univerInstanceService','operations','evenodd','mutations','registerSharedOperation','presenting','mask','LiveShareIcon','not-following','includes','getOwnPropertyDescriptor','_handleOperation','init','fill','5SHPAQV','path','Present\x20this\x20document','_uiPartsService','29244SHabli','defIds','reverse','div','_configService','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','univer-size-4','Stop\x20following','_startFollowing','length','defs','_startPresenting','type','setConfig','has','_collabSessionService','end','map','trim','PRESENTING','find','NEW_CHANGESETS','subscribe','_beIdle','parse','live-share.config','_liveShareService','data'];_0xae52=function(){return _0x40ee8b;};return _0xae52();}var Ue=Object[_0x2c17bd(0x214)],Ve=(_0x217ad0,_0x224ef1,_0x34314d,_0x7bd26a)=>{for(var _0x137332=_0x7bd26a>0x1?void 0x0:_0x7bd26a?Ue(_0x224ef1,_0x34314d):_0x224ef1,_0x33d2fe=_0x217ad0['length']-0x1,_0x29934a;_0x33d2fe>=0x0;_0x33d2fe--)(_0x29934a=_0x217ad0[_0x33d2fe])&&(_0x137332=_0x29934a(_0x137332)||_0x137332);return _0x137332;},je=(_0x4c8e1e,_0xcf5ea2)=>(_0x5df688,_0x35e3c5)=>_0xcf5ea2(_0x5df688,_0x35e3c5,_0x4c8e1e);let I=class extends _0x340cc7{constructor(_0x2b07e9){const _0x3e2627=_0x2c17bd;super(),this['_liveShareService']=_0x2b07e9,this[_0x3e2627(0x1e1)]();}['_init'](){const _0x199b69=_0x2c17bd;[_0x3270d8['id'],_0x552a0c['id'],_0x411a50['id']][_0x199b69(0x252)](_0xe6353c=>{const _0x4b0121=_0x199b69;this['disposeWithMe'](this[_0x4b0121(0x236)]['registerSharedOperation'](_0xe6353c));});}};I=Ve([je(0x0,_0xb91b10(L))],I);var Me=Object[_0x2c17bd(0x251)],ke=Object[_0x2c17bd(0x214)],Ge=(_0x2c8443,_0x481ed6,_0x435fe3)=>_0x481ed6 in _0x2c8443?Me(_0x2c8443,_0x481ed6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x435fe3}):_0x2c8443[_0x481ed6]=_0x435fe3,We=(_0x46b691,_0xee6291,_0x3cab60,_0x4e6182)=>{const _0x255d72=_0x2c17bd;for(var _0x91af07=_0x4e6182>0x1?void 0x0:_0x4e6182?ke(_0xee6291,_0x3cab60):_0xee6291,_0x7391f2=_0x46b691[_0x255d72(0x225)]-0x1,_0x5944a1;_0x7391f2>=0x0;_0x7391f2--)(_0x5944a1=_0x46b691[_0x7391f2])&&(_0x91af07=_0x5944a1(_0x91af07)||_0x91af07);return _0x91af07;},F=(_0x4043e1,_0x31c920)=>(_0x489a54,_0x290d7e)=>_0x31c920(_0x489a54,_0x290d7e,_0x4043e1),B=(_0x3c6a58,_0x5e6dde,_0x41706a)=>Ge(_0x3c6a58,typeof _0x5e6dde!=_0x2c17bd(0x1d3)?_0x5e6dde+'':_0x5e6dde,_0x41706a);const Ye=_0x2c17bd(0x23a);let b=class extends _0x24270d{constructor(_0x20754a=T,_0x5f3d9b,_0x25e57d){const _0x15807a=_0x2c17bd;super(),this[_0x15807a(0x1f9)]=_0x20754a,this[_0x15807a(0x1d8)]=_0x5f3d9b,this[_0x15807a(0x220)]=_0x25e57d;const {..._0x40acd5}=_0x51df76({},T,this[_0x15807a(0x1f9)]);this[_0x15807a(0x220)][_0x15807a(0x229)](ye,_0x40acd5);}[_0x2c17bd(0x23f)](){const _0x1064ca=_0x2c17bd;_0x312d92(this[_0x1064ca(0x1d8)],_0x43af49([[L],[S],[I],[m]],this[_0x1064ca(0x1f9)][_0x1064ca(0x244)])),_0x5199da(this[_0x1064ca(0x1d8)],[[I]]);}['onRendered'](){const _0x37eac9=_0x2c17bd;_0x5199da(this[_0x37eac9(0x1d8)],[[m]]);}};B(b,'type',_0x45889c[_0x2c17bd(0x247)]),B(b,'pluginName',Ye),b=We([_0x1c6ccb(_0x172e42),F(0x1,_0xb91b10(_0x13efe5)),F(0x2,_0x45ac9b)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
|
1
|
+
const _0x466b10=_0x2fc8;(function(_0x3626d1,_0x23da67){const _0x45aec7=_0x2fc8,_0x8e61fd=_0x3626d1();while(!![]){try{const _0x48c8d8=parseInt(_0x45aec7(0x219))/0x1+-parseInt(_0x45aec7(0x1d6))/0x2+parseInt(_0x45aec7(0x242))/0x3*(parseInt(_0x45aec7(0x257))/0x4)+parseInt(_0x45aec7(0x254))/0x5+parseInt(_0x45aec7(0x277))/0x6*(-parseInt(_0x45aec7(0x213))/0x7)+-parseInt(_0x45aec7(0x233))/0x8+parseInt(_0x45aec7(0x25c))/0x9*(-parseInt(_0x45aec7(0x1f3))/0xa);if(_0x48c8d8===_0x23da67)break;else _0x8e61fd['push'](_0x8e61fd['shift']());}catch(_0xebfcd1){_0x8e61fd['push'](_0x8e61fd['shift']());}}}(_0x357a,0xbf71a));var J=Object[_0x466b10(0x264)],K=(_0xe41e0b,_0x53190b,_0x5dfba6)=>_0x53190b in _0xe41e0b?J(_0xe41e0b,_0x53190b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5dfba6}):_0xe41e0b[_0x53190b]=_0x5dfba6,u=(_0x534186,_0x439d01,_0x13b7be)=>K(_0x534186,typeof _0x439d01!='symbol'?_0x439d01+'':_0x439d01,_0x13b7be);import{Disposable as _0x420bef,toDisposable as _0x2eefa6,IUniverInstanceService as _0x2136d5,Inject as _0xb810a1,Injector as _0x42925d,IConfigService as _0x534aaa,ICommandService as _0x462048,RxDisposable as _0x42c56f,UniverInstanceType as _0x5da7e1,DisposableCollection as _0x5c3901,CommandType as _0x5c0f1e,DependentOn as _0x426f35,Plugin as _0x1ab38a,merge as _0x153f93,registerDependencies as _0x40c418,mergeOverrideWithDependencies as _0x26a6d8,touchDependencies as _0x321cc3}from'@univerjs/core';import{useDependency as _0x57b7f1,useObservable as _0x2f47a8,IUIPartsService as _0x13733b,BuiltInUIPart as _0x325241,connectInjector as _0x5e2acd}from'@univerjs/ui';import{jsx as _0x284072,jsxs as _0x2842a9,Fragment as _0x3f7b64}from'react/jsx-runtime';import{Dropdown as _0x4d67da,clsx as _0x3b0bb0,Button as _0x55525b}from'@univerjs/design';import{useRef as _0x42cbc5,createElement as _0x345555,forwardRef as _0x3c8360,useState as _0x34edd8,useEffect as _0x2e4dde}from'react';import{CollaborationEvent as _0x4f8dac,parseProtocolChangeset as _0x1aca7c}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x32ee9c,SessionStatus as _0x2c2d1f,UniverCollaborationClientPlugin as _0x27fd59}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x27298e,SetWorksheetActiveOperation as _0x1cd2eb}from'@univerjs/sheets';import{BehaviorSubject as _0x4e0347,Subject as _0x5885a2}from'rxjs';import{takeUntil as _0x2b8aab,throttleTime as _0x3853a5}from'rxjs/operators';import{SetZoomRatioOperation as _0x54dcf4,SetScrollOperation as _0x59b67c}from'@univerjs/sheets-ui';function k({ref:_0x56e881,..._0x8a0ea0}){const _0x4313f2=_0x466b10,{icon:_0xdffd6,id:_0x3a411c,className:_0x3857f2,extend:_0x437451,..._0x472013}=_0x8a0ea0,_0x49a098=('univerjs-icon\x20univerjs-icon-'+_0x3a411c+'\x20'+(_0x3857f2||''))['trim'](),_0x1bf568=_0x42cbc5('_'+Oe());return G(_0xdffd6,''+_0x3a411c,{'defIds':_0xdffd6[_0x4313f2(0x1e9)],'idSuffix':_0x1bf568[_0x4313f2(0x260)]},{'ref':_0x56e881,'className':_0x49a098,..._0x472013},_0x437451);}function G(_0x36dab8,_0x14e2ad,_0x388ceb,_0xe44f09,_0x31239d){const _0x457d2f=_0x466b10;return _0x345555(_0x36dab8[_0x457d2f(0x1d5)],{'key':_0x14e2ad,...be(_0x36dab8,_0x388ceb,_0x31239d),..._0xe44f09},(Ee(_0x36dab8,_0x388ceb)[_0x457d2f(0x1da)]||[])['map']((_0x143ae9,_0x2fb417)=>G(_0x143ae9,_0x14e2ad+'-'+_0x36dab8[_0x457d2f(0x1d5)]+'-'+_0x2fb417,_0x388ceb,void 0x0,_0x31239d)));}function be(_0x193212,_0x5225b8,_0x52778d){const _0x144ca5=_0x466b10,_0x4e407c={..._0x193212[_0x144ca5(0x23e)]};_0x52778d!=null&&_0x52778d[_0x144ca5(0x252)]&&_0x4e407c[_0x144ca5(0x269)]==='colorChannel1'&&(_0x4e407c[_0x144ca5(0x269)]=_0x52778d['colorChannel1']),_0x193212[_0x144ca5(0x1d5)]==='mask'&&_0x4e407c['id']&&(_0x4e407c['id']=_0x4e407c['id']+_0x5225b8[_0x144ca5(0x20f)]),Object[_0x144ca5(0x24c)](_0x4e407c)[_0x144ca5(0x21f)](([_0x337893,_0x589733])=>{const _0x2f5315=_0x144ca5;_0x337893==='mask'&&typeof _0x589733==_0x2f5315(0x25e)&&(_0x4e407c[_0x337893]=_0x589733['replace'](/url\(#(.*)\)/,_0x2f5315(0x273)+_0x5225b8[_0x2f5315(0x20f)]+')'));});const {defIds:_0x253c66}=_0x5225b8;return!_0x253c66||_0x253c66[_0x144ca5(0x225)]===0x0||(_0x193212['tag']==='use'&&_0x4e407c['xlink:href']&&(_0x4e407c[_0x144ca5(0x1d8)]=_0x4e407c['xlink:href']+_0x5225b8[_0x144ca5(0x20f)]),Object[_0x144ca5(0x24c)](_0x4e407c)[_0x144ca5(0x21f)](([_0x5581e5,_0x171030])=>{const _0x32af2b=_0x144ca5;typeof _0x171030==_0x32af2b(0x25e)&&(_0x4e407c[_0x5581e5]=_0x171030[_0x32af2b(0x22a)](/url\(#(.*)\)/,_0x32af2b(0x273)+_0x5225b8[_0x32af2b(0x20f)]+')'));})),_0x4e407c;}function _0x357a(){const _0x1c4ba2=['_status','disposeWithMe','getMemberID','univer-size-4','get','OPERATION','getUnitId','asObservable','attrs','event$','displayName','PRESENTING','3165MfJiok','You\x27are\x20offline.','UNIVER_SHEET','getConfig','_handleTerminate','getValue','LIVESHARE_OPERATION','init','LIVESHARE_REQUEST_HOST','NOT_FOLLOWING','entries','getOwnPropertyDescriptor','UNIVER_UNKNOWN','params','status$','_configService','colorChannel1','NEW_CHANGESETS','506440UAbPaJ','_init','stopPresenting','3032UyPZYu','complete','You\x27re\x20presenting\x20the\x20document','memberID','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','30798qOIaYn','unitId','string','_startFollowing','current','evenodd','live-share.config','_unitID','defineProperty','1em','mutations','getTypeOfUnitDisposed$','getCurrentTypeOfUnit$','fill','type','following','none','presenting','setConfig','IDLE','_sharedOperations','getInitialStates','You\x27re\x20not\x20following\x20the\x20presenter','url(#$1','_beIdle','_presenter','data','1608414RAbKHp','delete','_stopFollowing','_commandDisposable','tag','261130MtvYBC','LIVESHARE_TERMINATE','xlink:href','symbol','children','_startPresenting','values','next','onCommandExecuted','Start','FOLLOWING','_mountLiveShare','registerSharedOperation','LIVESHARE_FETCH_OPERATIONS','_status$','has','startFollowing','default','currentColor','defIds','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','univer-mb-3\x20univer-w-full\x20univer-text-sm','override','subscribe','includes','button','HEADER_MENU','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','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','730MDRAmK','_config','_collabSession','dispose','OFFLINE','offline','add','idle','Present\x20this\x20document','onStarting','defs','text','_reporters','send','_handleNewHost','UniverIcon','getTypeOfUnitAdded$','div','assign','tryStartPresenting','reverse','LIVESHARE_NEW_HOST','requireSession','_handleOnline','shouldShareOperation','executeCommand','_collabSessionService','http://www.w3.org/2000/svg','idSuffix','_handleOffline','set','dispose$','28FjsQDi','getLiveShareCoordinator','path','_handleNewChangeSets','You\x27re\x20following\x20the\x20presenter','_univerInstanceService','1405489RARwvP','Stop\x20following','end','pipe','getStatus','createInstance','forEach','_uiPartsService','not-following','presenter','_handleOperation','_liveShareService','length','_stopPresenting','_fetchOperations','stopFollowing','sheet','replace','parse','0\x200\x2017\x2017','_startLiveShareCoordinator','_commandService','SAME_OPERATION_SHARE_INTERVAL','onRendered','_injector','toString','557328kyMpoS','_entities','pluginName'];_0x357a=function(){return _0x1c4ba2;};return _0x357a();}function Ee(_0x48c89a,_0x1479e5){const _0xdca510=_0x466b10;var _0x3b9069;const {defIds:_0x476edd}=_0x1479e5;return!_0x476edd||_0x476edd[_0xdca510(0x225)]===0x0?_0x48c89a:_0x48c89a[_0xdca510(0x1d5)]===_0xdca510(0x1fd)&&((_0x3b9069=_0x48c89a[_0xdca510(0x1da)])!=null&&_0x3b9069[_0xdca510(0x225)])?{..._0x48c89a,'children':_0x48c89a['children']['map'](_0x5eadee=>typeof _0x5eadee[_0xdca510(0x23e)]['id']==_0xdca510(0x25e)&&_0x476edd&&_0x476edd[_0xdca510(0x1ee)](_0x5eadee[_0xdca510(0x23e)]['id'])?{..._0x5eadee,'attrs':{..._0x5eadee[_0xdca510(0x23e)],'id':_0x5eadee[_0xdca510(0x23e)]['id']+_0x1479e5[_0xdca510(0x20f)]}}:_0x5eadee)}:_0x48c89a;}function Oe(){const _0x2e54c3=_0x466b10;return Math['random']()[_0x2e54c3(0x232)](0x24)['substring'](0x2,0x8);}k[_0x466b10(0x240)]=_0x466b10(0x202);const we={'tag':'svg','attrs':{'xmlns':_0x466b10(0x20e),'fill':_0x466b10(0x26c),'viewBox':_0x466b10(0x22c),'width':_0x466b10(0x265),'height':_0x466b10(0x265)},'children':[{'tag':_0x466b10(0x215),'attrs':{'fill':'currentColor','d':_0x466b10(0x25b)}},{'tag':_0x466b10(0x215),'attrs':{'fill':_0x466b10(0x1e8),'d':_0x466b10(0x1f1),'fillRule':_0x466b10(0x261),'clipRule':_0x466b10(0x261)}}]},W=_0x3c8360(function(_0x85f375,_0x1fb5b6){const _0x238ac1=_0x466b10;return _0x345555(k,Object[_0x238ac1(0x205)]({},_0x85f375,{'id':'live-share-icon','ref':_0x1fb5b6,'icon':we}));});W[_0x466b10(0x240)]='LiveShareIcon';class L extends _0x420bef{constructor(){const _0x534244=_0x466b10;super(...arguments),u(this,_0x534244(0x270),new Set()),u(this,_0x534244(0x1ff),new Set());}['registerSharedOperation'](_0x283131){const _0xec1a2e=_0x466b10;return this[_0xec1a2e(0x270)]['add'](_0x283131),_0x2eefa6(()=>this[_0xec1a2e(0x270)][_0xec1a2e(0x1d2)](_0x283131));}['registerInitialStateReporter'](_0x2bcae4){const _0x5d9c51=_0x466b10;return this[_0x5d9c51(0x1ff)][_0x5d9c51(0x1f9)](_0x2bcae4),_0x2eefa6(()=>this[_0x5d9c51(0x1ff)][_0x5d9c51(0x1d2)](_0x2bcae4));}[_0x466b10(0x20b)](_0x27b4e1){const _0x22a577=_0x466b10;return this[_0x22a577(0x270)][_0x22a577(0x1e5)](_0x27b4e1);}[_0x466b10(0x271)](_0x21cfca){const _0x28622f=_0x466b10;return Array['from'](this[_0x28622f(0x1ff)])['map'](_0xae5419=>_0xae5419(_0x21cfca));}}function _0x2fc8(_0x4eae40,_0x1bf369){const _0x357a1e=_0x357a();return _0x2fc8=function(_0x2fc8b5,_0x285da0){_0x2fc8b5=_0x2fc8b5-0x1d2;let _0x4f78d4=_0x357a1e[_0x2fc8b5];return _0x4f78d4;},_0x2fc8(_0x4eae40,_0x1bf369);}var Ne=Object[_0x466b10(0x24d)],Y=(_0x247e4e,_0x5ab1bf,_0x2311d0,_0x3039bc)=>{for(var _0xd525ca=_0x3039bc>0x1?void 0x0:_0x3039bc?Ne(_0x5ab1bf,_0x2311d0):_0x5ab1bf,_0x250c14=_0x247e4e['length']-0x1,_0x4acf00;_0x250c14>=0x0;_0x250c14--)(_0x4acf00=_0x247e4e[_0x250c14])&&(_0xd525ca=_0x4acf00(_0xd525ca)||_0xd525ca);return _0xd525ca;},_=(_0x4cff14,_0x134983)=>(_0x177e5d,_0x400f5e)=>_0x134983(_0x177e5d,_0x400f5e,_0x4cff14);let S=class extends _0x42c56f{constructor(_0x12aa1b,_0x3369ed,_0x3b2100){const _0x538447=_0x466b10;super(),u(this,'_entities',new Map()),(this[_0x538447(0x218)]=_0x12aa1b,this[_0x538447(0x231)]=_0x3369ed,this[_0x538447(0x20d)]=_0x3b2100,this[_0x538447(0x255)]());}async[_0x466b10(0x214)](_0x4cc403){const _0x3a8be6=_0x466b10;return this[_0x3a8be6(0x234)]['has'](_0x4cc403)||await this[_0x3a8be6(0x22d)](_0x4cc403),this[_0x3a8be6(0x234)][_0x3a8be6(0x23a)](_0x4cc403);}['getLiveShareCoordinatorSync'](_0x4d60ac){const _0x294aee=_0x466b10;var _0x5080d1;return(_0x5080d1=this[_0x294aee(0x234)][_0x294aee(0x23a)](_0x4d60ac))!=null?_0x5080d1:null;}[_0x466b10(0x255)](){const _0x462bfb=_0x466b10;this[_0x462bfb(0x218)][_0x462bfb(0x203)](_0x5da7e1[_0x462bfb(0x244)])[_0x462bfb(0x21c)](_0x2b8aab(this[_0x462bfb(0x212)]))[_0x462bfb(0x1ed)](async _0x2a6ec0=>{const _0x53687e=_0x462bfb,_0x351f05=_0x2a6ec0[_0x53687e(0x23c)]();this[_0x53687e(0x234)][_0x53687e(0x1e5)](_0x351f05)||this[_0x53687e(0x22d)](_0x351f05);}),this[_0x462bfb(0x218)][_0x462bfb(0x267)](_0x5da7e1[_0x462bfb(0x244)])[_0x462bfb(0x21c)](_0x2b8aab(this['dispose$']))['subscribe'](_0x4fe067=>{const _0xab9415=_0x462bfb,_0x974fbe=_0x4fe067['getUnitId'](),_0x5cbd94=this[_0xab9415(0x234)][_0xab9415(0x23a)](_0x974fbe);_0x5cbd94==null||_0x5cbd94[_0xab9415(0x1f6)]();});}async[_0x466b10(0x22d)](_0x23b9ed){const _0x4d6911=_0x466b10,_0x537694=await this[_0x4d6911(0x20d)][_0x4d6911(0x209)](_0x23b9ed),_0x11c03c=this[_0x4d6911(0x231)][_0x4d6911(0x21e)](N,_0x23b9ed,_0x537694);return _0x11c03c[_0x4d6911(0x249)](),this[_0x4d6911(0x234)][_0x4d6911(0x211)](_0x23b9ed,_0x11c03c),_0x11c03c;}};S=Y([_(0x0,_0x2136d5),_(0x1,_0xb810a1(_0x42925d)),_(0x2,_0xb810a1(_0x32ee9c))],S);var c=(_0x7d2b6b=>(_0x7d2b6b[_0x466b10(0x1f7)]=_0x466b10(0x1f8),_0x7d2b6b[_0x466b10(0x26f)]=_0x466b10(0x1fa),_0x7d2b6b['FOLLOWING']='following',_0x7d2b6b['NOT_FOLLOWING']='not-following',_0x7d2b6b[_0x466b10(0x241)]=_0x466b10(0x26d),_0x7d2b6b))(c||{});const Ce=_0x466b10(0x22f),De=0xc8;let N=class extends _0x42c56f{constructor(_0xa665c2,_0x391052,_0x56364f,_0x58779e,_0x90e7d2){const _0x1141fa=_0x466b10;super(),u(this,_0x1141fa(0x1e4),new _0x4e0347(_0x1141fa(0x1fa))),u(this,'status$',this[_0x1141fa(0x1e4)][_0x1141fa(0x23d)]()),u(this,'_init',!0x1),u(this,'_commandDisposable',null),u(this,'_presenter',null),(this[_0x1141fa(0x263)]=_0xa665c2,this[_0x1141fa(0x1f5)]=_0x391052,this[_0x1141fa(0x251)]=_0x56364f,this[_0x1141fa(0x224)]=_0x58779e,this[_0x1141fa(0x22e)]=_0x90e7d2);}get[_0x466b10(0x236)](){const _0x5853e1=_0x466b10;return this[_0x5853e1(0x1e4)][_0x5853e1(0x247)]();}['dispose'](){const _0x1698e1=_0x466b10;var _0x148295;(_0x148295=this[_0x1698e1(0x1d4)])==null||_0x148295[_0x1698e1(0x1f6)](),this[_0x1698e1(0x1e4)][_0x1698e1(0x1dd)](_0x1698e1(0x1fa)),this[_0x1698e1(0x1e4)][_0x1698e1(0x258)]();}[_0x466b10(0x21d)](){const _0x28440c=_0x466b10;return this[_0x28440c(0x236)];}[_0x466b10(0x249)](){const _0x3c242e=_0x466b10;this['_init']||(this[_0x3c242e(0x255)]=!0x0,this[_0x3c242e(0x1f5)]['sessionStatus$']['pipe'](_0x2b8aab(this[_0x3c242e(0x212)]))[_0x3c242e(0x1ed)](_0x4d7096=>{const _0x4393dd=_0x3c242e;switch(_0x4d7096){case _0x2c2d1f[_0x4393dd(0x1f7)]:this[_0x4393dd(0x210)]();break;case _0x2c2d1f['ONLINE']:this['_handleOnline']();break;}}),this[_0x3c242e(0x1f5)][_0x3c242e(0x23f)]['pipe'](_0x2b8aab(this['dispose$']))[_0x3c242e(0x1ed)](_0x1a3914=>{const _0x5541c8=_0x3c242e,{eventID:_0x33595d}=_0x1a3914;switch(_0x33595d){case _0x4f8dac[_0x5541c8(0x208)]:this['_handleNewHost'](_0x1a3914);break;case _0x4f8dac[_0x5541c8(0x248)]:this[_0x5541c8(0x223)](_0x1a3914);break;case _0x4f8dac[_0x5541c8(0x1d7)]:this[_0x5541c8(0x246)]();break;case _0x4f8dac[_0x5541c8(0x253)]:this['_handleNewChangeSets'](_0x1a3914);break;}}));}[_0x466b10(0x206)](){const _0x1d3e1b=_0x466b10;this[_0x1d3e1b(0x1f5)][_0x1d3e1b(0x200)]({'eventID':_0x4f8dac[_0x1d3e1b(0x24a)],'data':{'unitID':this[_0x1d3e1b(0x263)],'userID':this[_0x1d3e1b(0x1f5)]['getMemberID']()}},this['_unitID']);}[_0x466b10(0x256)](){const _0x14b4e3=_0x466b10;this[_0x14b4e3(0x236)]==='presenting'&&(this[_0x14b4e3(0x1e4)][_0x14b4e3(0x1dd)](_0x14b4e3(0x1fa)),this[_0x14b4e3(0x1f5)][_0x14b4e3(0x200)]({'eventID':_0x4f8dac['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x14b4e3(0x263)]}},this['_unitID']));}[_0x466b10(0x1e6)](){const _0x3deff0=_0x466b10;this['_status']===_0x3deff0(0x221)&&(this[_0x3deff0(0x1e4)][_0x3deff0(0x1dd)]('following'),this[_0x3deff0(0x25f)]());}[_0x466b10(0x228)](){const _0x1759eb=_0x466b10;this[_0x1759eb(0x236)]===_0x1759eb(0x26b)&&this[_0x1759eb(0x1d3)]();}[_0x466b10(0x201)](_0x3122bb){const _0x1ecd4d=_0x466b10,{presenter:_0x2f0213}=_0x3122bb[_0x1ecd4d(0x276)],_0x27ea90=this[_0x1ecd4d(0x1f5)]['getMemberID']();this['_presenter']=_0x2f0213,_0x2f0213===_0x27ea90?(this['_stopFollowing'](),this[_0x1ecd4d(0x1db)]()):this[_0x1ecd4d(0x236)]!=='not-following'&&(this[_0x1ecd4d(0x226)](),this[_0x1ecd4d(0x25f)]());}[_0x466b10(0x227)](){const _0x199c73=_0x466b10,_0x3ce07e={'eventID':_0x4f8dac[_0x199c73(0x1e3)]};this['_collabSession'][_0x199c73(0x200)](_0x3ce07e,this[_0x199c73(0x263)]);}['_handleTerminate'](){const _0x546a9d=_0x466b10;this[_0x546a9d(0x275)]=null,this[_0x546a9d(0x236)]!==_0x546a9d(0x26d)&&this[_0x546a9d(0x274)]();}[_0x466b10(0x216)](_0xe39262){const _0x3db4de=_0x466b10;if(this[_0x3db4de(0x236)]===_0x3db4de(0x26b)&&this[_0x3db4de(0x275)]===_0xe39262[_0x3db4de(0x276)][_0x3db4de(0x25a)]){const _0x3dc36c=_0x1aca7c(_0xe39262[_0x3db4de(0x276)])[_0x3db4de(0x266)][_0x3db4de(0x207)]()['find'](_0x57ae51=>_0x57ae51['id']===_0x27298e['id']);if(_0x3dc36c){const _0x154067=_0x3dc36c[_0x3db4de(0x24f)][_0x3db4de(0x25d)],_0x262a15=_0x3dc36c[_0x3db4de(0x24f)][_0x3db4de(0x229)]['id'];setTimeout(()=>{const _0x8cdea2=_0x3db4de;this[_0x8cdea2(0x22e)][_0x8cdea2(0x20c)](_0x1cd2eb['id'],{'unitId':_0x154067,'subUnitId':_0x262a15},{'fromCollab':!0x0});});}}}[_0x466b10(0x1db)](){const _0x36c0f2=_0x466b10;this['_status$'][_0x36c0f2(0x1dd)](_0x36c0f2(0x26d));const _0x353dee=new Map(),_0x5321c8=this[_0x36c0f2(0x1d4)]=new _0x5c3901();_0x5321c8[_0x36c0f2(0x1f9)](_0x2eefa6(()=>{const _0x20851a=_0x36c0f2;_0x353dee[_0x20851a(0x21f)](_0x3fa4c0=>_0x3fa4c0['complete']()),_0x353dee['clear']();})),_0x5321c8[_0x36c0f2(0x1f9)](this[_0x36c0f2(0x22e)][_0x36c0f2(0x1de)](_0x147d71=>{const _0x59fc17=_0x36c0f2;var _0xf4dac5;if(_0x147d71[_0x59fc17(0x26a)]!==_0x5c0f1e[_0x59fc17(0x23b)]||!this[_0x59fc17(0x224)][_0x59fc17(0x20b)](_0x147d71['id']))return;const {id:_0x3503f5}=_0x147d71;let _0x292949;_0x353dee[_0x59fc17(0x1e5)](_0x3503f5)?_0x292949=_0x353dee[_0x59fc17(0x23a)](_0x3503f5):(_0x292949=new _0x5885a2(),_0x353dee[_0x59fc17(0x211)](_0x3503f5,_0x292949),_0x292949[_0x59fc17(0x21c)](_0x3853a5((_0xf4dac5=this[_0x59fc17(0x251)][_0x59fc17(0x245)](Ce))!=null?_0xf4dac5:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x59fc17(0x1ed)](_0xda6466=>{const _0x303ecc=_0x59fc17;this[_0x303ecc(0x1f5)]['send']({'eventID':_0x4f8dac['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0xda6466['id']]:{'id':_0xda6466['id'],'params':JSON['stringify'](_0xda6466[_0x303ecc(0x24f)])}}}},this[_0x303ecc(0x263)]);})),_0x292949['next'](_0x147d71);})),this['_liveShareService'][_0x36c0f2(0x271)](this['_unitID'])[_0x36c0f2(0x21f)](_0x5400a4=>this['_collabSession'][_0x36c0f2(0x200)]({'eventID':_0x4f8dac[_0x36c0f2(0x248)],'data':{'unitID':this[_0x36c0f2(0x263)],'operations':{[_0x5400a4['id']]:{'id':_0x5400a4['id'],'params':JSON['stringify'](_0x5400a4[_0x36c0f2(0x24f)])}}}},this[_0x36c0f2(0x263)]));}['_stopPresenting'](){const _0x156e4a=_0x466b10;var _0x1fb473;this[_0x156e4a(0x1e4)][_0x156e4a(0x1dd)](_0x156e4a(0x1fa)),(_0x1fb473=this[_0x156e4a(0x1d4)])==null||_0x1fb473[_0x156e4a(0x1f6)](),this[_0x156e4a(0x1d4)]=null;}[_0x466b10(0x25f)](){const _0xb65f8a=_0x466b10;var _0x3f7e3d;(_0x3f7e3d=this[_0xb65f8a(0x1d4)])==null||_0x3f7e3d[_0xb65f8a(0x1f6)](),this[_0xb65f8a(0x1e4)][_0xb65f8a(0x1dd)](_0xb65f8a(0x26b));}['_beIdle'](){const _0xbd18fb=_0x466b10;var _0x52a3d5;this[_0xbd18fb(0x1e4)][_0xbd18fb(0x1dd)]('idle'),(_0x52a3d5=this[_0xbd18fb(0x1d4)])==null||_0x52a3d5['dispose'](),this[_0xbd18fb(0x1d4)]=null;}['_stopFollowing'](){const _0x20f90b=_0x466b10;var _0x1b118d;this[_0x20f90b(0x1e4)][_0x20f90b(0x1dd)]('not-following'),(_0x1b118d=this[_0x20f90b(0x1d4)])==null||_0x1b118d[_0x20f90b(0x1f6)]();}[_0x466b10(0x223)](_0x1457a9){const _0x6a1fde=_0x466b10;if([_0x6a1fde(0x26d),_0x6a1fde(0x221),_0x6a1fde(0x1f8)]['includes'](this[_0x6a1fde(0x236)])||!_0x1457a9['data'][_0x6a1fde(0x222)]||_0x1457a9[_0x6a1fde(0x276)][_0x6a1fde(0x222)]===this[_0x6a1fde(0x1f5)][_0x6a1fde(0x238)]())return;this[_0x6a1fde(0x236)]==='idle'&&this['_startFollowing']();const _0x490f4e=_0x1457a9[_0x6a1fde(0x276)]['operations'];Object[_0x6a1fde(0x1dc)](_0x490f4e)[_0x6a1fde(0x21f)](_0x51ea88=>{const _0x36017c=_0x6a1fde;this[_0x36017c(0x22e)][_0x36017c(0x20c)](_0x51ea88['id'],_0x51ea88[_0x36017c(0x24f)]?JSON[_0x36017c(0x22b)](_0x51ea88[_0x36017c(0x24f)]):null,{'fromCollab':!0x0});});}[_0x466b10(0x210)](){const _0x99c559=_0x466b10;var _0x273f2d;this[_0x99c559(0x1e4)][_0x99c559(0x1dd)](_0x99c559(0x1f8)),(_0x273f2d=this[_0x99c559(0x1d4)])==null||_0x273f2d['dispose']();}[_0x466b10(0x20a)](){const _0x1b8c42=_0x466b10;this['_status$'][_0x1b8c42(0x1dd)](_0x1b8c42(0x1fa)),this['_fetchOperations']();}};N=Y([_(0x2,_0x534aaa),_(0x3,_0xb810a1(L)),_(0x4,_0x462048)],N);function Le(){const _0x3f93f9=_0x466b10,_0x10611e=_0x57b7f1(S),_0x1816dc=_0x57b7f1(_0x2136d5),_0x276c7a=_0x2f47a8(()=>_0x1816dc[_0x3f93f9(0x268)](_0x5da7e1[_0x3f93f9(0x244)]),void 0x0,!0x1,[]),[_0x156f8b,_0x3e5743]=_0x34edd8(null),[_0x4b5522,_0x5283c2]=_0x34edd8(c[_0x3f93f9(0x26f)]),_0x223344=_0x42cbc5(null);return _0x2e4dde(()=>(_0x276c7a&&_0x10611e['getLiveShareCoordinator'](_0x276c7a[_0x3f93f9(0x23c)]())['then'](_0xb3fff9=>{const _0x2a6217=_0x3f93f9;_0x3e5743(_0xb3fff9),_0x223344[_0x2a6217(0x260)]=_0xb3fff9[_0x2a6217(0x250)]['subscribe'](_0x2f145d=>{_0x5283c2(_0x2f145d);});}),()=>{const _0x4d2de4=_0x3f93f9;var _0x3e5943;(_0x3e5943=_0x223344[_0x4d2de4(0x260)])==null||_0x3e5943['unsubscribe'](),_0x223344[_0x4d2de4(0x260)]=null;}),[_0x276c7a,_0x10611e]),_0x156f8b?_0x284072(_0x4d67da,{'align':_0x3f93f9(0x21b),'disabled':_0x4b5522===c['OFFLINE'],'className':_0x3f93f9(0x1ea),'overlay':_0x284072(Re,{'status':_0x4b5522,'coordinator':_0x156f8b}),'children':_0x284072(_0x3f93f9(0x1ef),{'className':_0x3b0bb0(_0x3f93f9(0x1f2),{'univer-cursor-not-allowed':_0x4b5522===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4b5522!==c[_0x3f93f9(0x1f7)]}),'type':_0x3f93f9(0x1ef),'children':_0x284072(W,{'className':_0x3f93f9(0x239)})})}):null;}function Re(_0x3a0ee2){const _0x26f4be=_0x466b10,{status:_0x41654e,coordinator:_0x3bf71f}=_0x3a0ee2;switch(_0x41654e){case c[_0x26f4be(0x26f)]:return _0x284072($e,{'coordinator':_0x3bf71f});case c[_0x26f4be(0x1e0)]:return _0x284072(xe,{'coordinator':_0x3bf71f});case c[_0x26f4be(0x24b)]:return _0x284072(Pe,{'coordinator':_0x3bf71f});case c[_0x26f4be(0x1f7)]:return _0x284072(Te,{});case c[_0x26f4be(0x241)]:return _0x284072(Ae,{'coordinator':_0x3bf71f});default:return null;}}function $e(_0x3665d1){const _0x92b163=_0x466b10,{coordinator:_0x2ad800}=_0x3665d1;return _0x2842a9(_0x3f7b64,{'children':[_0x284072(_0x92b163(0x204),{'className':_0x92b163(0x1eb),'children':_0x92b163(0x1fb)}),_0x284072(_0x55525b,{'onClick':()=>_0x2ad800['tryStartPresenting'](),'children':_0x92b163(0x1df)})]});}function xe(_0x7fa473){const _0x20cb4c=_0x466b10,{coordinator:_0x4c3d9e}=_0x7fa473;return _0x2842a9(_0x3f7b64,{'children':[_0x284072(_0x20cb4c(0x204),{'className':_0x20cb4c(0x1eb),'children':_0x20cb4c(0x217)}),_0x284072(_0x55525b,{'onClick':()=>_0x4c3d9e[_0x20cb4c(0x228)](),'children':_0x20cb4c(0x21a)})]});}function Pe(_0x5839f4){const _0x5ce9d5=_0x466b10,{coordinator:_0x1e8ea5}=_0x5839f4;return _0x2842a9(_0x3f7b64,{'children':[_0x284072(_0x5ce9d5(0x204),{'className':_0x5ce9d5(0x1eb),'children':_0x5ce9d5(0x272)}),_0x284072(_0x55525b,{'variant':_0x5ce9d5(0x1fe),'onClick':()=>_0x1e8ea5[_0x5ce9d5(0x1e6)](),'children':'Start\x20following'})]});}function Ae(_0x2a2a29){const _0x20e38d=_0x466b10,{coordinator:_0x2f847f}=_0x2a2a29;return _0x2842a9(_0x3f7b64,{'children':[_0x284072(_0x20e38d(0x204),{'className':_0x20e38d(0x1eb),'children':_0x20e38d(0x259)}),_0x284072(_0x55525b,{'variant':_0x20e38d(0x1e7),'onClick':()=>_0x2f847f[_0x20e38d(0x256)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x404097=_0x466b10;return _0x284072(_0x3f7b64,{'children':_0x404097(0x243)});}var Fe=Object[_0x466b10(0x24d)],He=(_0x3af4a8,_0x54c977,_0x45f71f,_0x18468e)=>{const _0x59dd6d=_0x466b10;for(var _0x482524=_0x18468e>0x1?void 0x0:_0x18468e?Fe(_0x54c977,_0x45f71f):_0x54c977,_0x43c9fc=_0x3af4a8[_0x59dd6d(0x225)]-0x1,_0x502c84;_0x43c9fc>=0x0;_0x43c9fc--)(_0x502c84=_0x3af4a8[_0x43c9fc])&&(_0x482524=_0x502c84(_0x482524)||_0x482524);return _0x482524;},A=(_0x35aba6,_0xf7c588)=>(_0x35d55c,_0x2aa1df)=>_0xf7c588(_0x35d55c,_0x2aa1df,_0x35aba6);let m=class extends _0x420bef{constructor(_0x404c5e,_0x1dc60f){const _0x212348=_0x466b10;super(),this[_0x212348(0x231)]=_0x404c5e,this['_uiPartsService']=_0x1dc60f,this[_0x212348(0x1e1)]();}[_0x466b10(0x1e1)](){const _0x15d5d9=_0x466b10;this[_0x15d5d9(0x237)](this[_0x15d5d9(0x220)]['registerComponent'](_0x325241[_0x15d5d9(0x1f0)],()=>_0x5e2acd(Le,this[_0x15d5d9(0x231)])));}};m=He([A(0x0,_0xb810a1(_0x42925d)),A(0x1,_0x13733b)],m);const ye=_0x466b10(0x262),T={};var Ue=Object[_0x466b10(0x24d)],Ve=(_0x46324b,_0x6736d6,_0x582f21,_0x3e0ae3)=>{const _0x24f45b=_0x466b10;for(var _0x35e3c2=_0x3e0ae3>0x1?void 0x0:_0x3e0ae3?Ue(_0x6736d6,_0x582f21):_0x6736d6,_0x2e3ba0=_0x46324b[_0x24f45b(0x225)]-0x1,_0xf878c0;_0x2e3ba0>=0x0;_0x2e3ba0--)(_0xf878c0=_0x46324b[_0x2e3ba0])&&(_0x35e3c2=_0xf878c0(_0x35e3c2)||_0x35e3c2);return _0x35e3c2;},je=(_0x5d8027,_0x4b18db)=>(_0x1c10e9,_0x8d8840)=>_0x4b18db(_0x1c10e9,_0x8d8840,_0x5d8027);let I=class extends _0x420bef{constructor(_0x1331c2){const _0x199c97=_0x466b10;super(),this[_0x199c97(0x224)]=_0x1331c2,this[_0x199c97(0x255)]();}[_0x466b10(0x255)](){[_0x54dcf4['id'],_0x59b67c['id'],_0x1cd2eb['id']]['forEach'](_0x208667=>{const _0xbbf640=_0x2fc8;this[_0xbbf640(0x237)](this['_liveShareService'][_0xbbf640(0x1e2)](_0x208667));});}};I=Ve([je(0x0,_0xb810a1(L))],I);var Me=Object[_0x466b10(0x264)],ke=Object[_0x466b10(0x24d)],Ge=(_0x2721e2,_0x3f4edc,_0x421d52)=>_0x3f4edc in _0x2721e2?Me(_0x2721e2,_0x3f4edc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x421d52}):_0x2721e2[_0x3f4edc]=_0x421d52,We=(_0x4bc93a,_0x3dba69,_0x577d56,_0x4a8b14)=>{const _0x462c7c=_0x466b10;for(var _0x3a2089=_0x4a8b14>0x1?void 0x0:_0x4a8b14?ke(_0x3dba69,_0x577d56):_0x3dba69,_0x293090=_0x4bc93a[_0x462c7c(0x225)]-0x1,_0x577587;_0x293090>=0x0;_0x293090--)(_0x577587=_0x4bc93a[_0x293090])&&(_0x3a2089=_0x577587(_0x3a2089)||_0x3a2089);return _0x3a2089;},F=(_0x96b8f6,_0x27683f)=>(_0x30d0bc,_0x3f9793)=>_0x27683f(_0x30d0bc,_0x3f9793,_0x96b8f6),B=(_0x3c5f67,_0x36697a,_0x629966)=>Ge(_0x3c5f67,typeof _0x36697a!=_0x466b10(0x1d9)?_0x36697a+'':_0x36697a,_0x629966);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x1ab38a{constructor(_0x595ff1=T,_0xe2e66f,_0x27027b){const _0x1b79f1=_0x466b10;super(),this['_config']=_0x595ff1,this[_0x1b79f1(0x231)]=_0xe2e66f,this['_configService']=_0x27027b;const {..._0x1ca6ef}=_0x153f93({},T,this[_0x1b79f1(0x1f4)]);this[_0x1b79f1(0x251)][_0x1b79f1(0x26e)](ye,_0x1ca6ef);}[_0x466b10(0x1fc)](){const _0x10f164=_0x466b10;_0x40c418(this[_0x10f164(0x231)],_0x26a6d8([[L],[S],[I],[m]],this[_0x10f164(0x1f4)][_0x10f164(0x1ec)])),_0x321cc3(this[_0x10f164(0x231)],[[I]]);}[_0x466b10(0x230)](){const _0x46d3c8=_0x466b10;_0x321cc3(this[_0x46d3c8(0x231)],[[m]]);}};B(b,_0x466b10(0x26a),_0x5da7e1[_0x466b10(0x24e)]),B(b,_0x466b10(0x235),Ye),b=We([_0x426f35(_0x27fd59),F(0x1,_0xb810a1(_0x42925d)),F(0x2,_0x534aaa)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x34f5(){const _0x3e3e73=['stopPresenting','@univerjs/core/facade','FEnum','startFollowing','getSheetId','480152LqmUPo','getId','4405992DoqXWm','tryStartPresenting','LiveShareStatus','LiveShareController','273KYctfP','IRenderManagerService','UniverEngineRender','function','object','SetScrollOperation','@univerjs/engine-render','854010gUSafA','getUnitId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getActiveWorkbook','29976BOddyi','_initialize','amd','@univerjs/sheets-ui','extend','@univerjs/sheets/facade','LiveShareStatusEnum','27YaFVIG','_commandService','getLiveShareCoordinatorSync','No\x20active\x20workbook\x20found.','FRange','stopFollowing','getLiveShareStatus','get','493850skuCfc','SetWorksheetActiveOperation','startRow','PRESENTING','6964270uiONgz','getStatus','FUniver','IDLE','@univerjs/sheets','_injector','4HSiLaT','startPresenting','getRenderById','UniverSheets','651261kkTtnT','UniverCoreFacade'];_0x34f5=function(){return _0x3e3e73;};return _0x34f5();}function _0x3494(_0x300c40,_0x409d72){const _0x34f538=_0x34f5();return _0x3494=function(_0x3494ab,_0x1748b9){_0x3494ab=_0x3494ab-0x1a6;let _0x5cac9d=_0x34f538[_0x3494ab];return _0x5cac9d;},_0x3494(_0x300c40,_0x409d72);}(function(_0x9c1dd9,_0x24b5d9){const _0xb5615=_0x3494,_0x31d90c=_0x9c1dd9();while(!![]){try{const _0x418b88=parseInt(_0xb5615(0x1bf))/0x1+-parseInt(_0xb5615(0x1cc))/0x2+-parseInt(_0xb5615(0x1b8))/0x3+parseInt(_0xb5615(0x1b4))/0x4*(parseInt(_0xb5615(0x1ae))/0x5)+-parseInt(_0xb5615(0x1c1))/0x6+-parseInt(_0xb5615(0x1c5))/0x7*(-parseInt(_0xb5615(0x1d0))/0x8)+parseInt(_0xb5615(0x1d7))/0x9*(parseInt(_0xb5615(0x1aa))/0xa);if(_0x418b88===_0x24b5d9)break;else _0x31d90c['push'](_0x31d90c['shift']());}catch(_0x25f38a){_0x31d90c['push'](_0x31d90c['shift']());}}}(_0x34f5,0xc0986),function(_0x9676c5,_0x24de6b){const _0x5628aa=_0x3494;typeof exports==_0x5628aa(0x1c9)&&typeof module<'u'?_0x24de6b(require('@univerjs-pro/live-share'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define==_0x5628aa(0x1c8)&&define[_0x5628aa(0x1d2)]?define(['@univerjs-pro/live-share',_0x5628aa(0x1cb),_0x5628aa(0x1b2),_0x5628aa(0x1d3),_0x5628aa(0x1d5),_0x5628aa(0x1bb)],_0x24de6b):(_0x9676c5=typeof globalThis<'u'?globalThis:_0x9676c5||self,_0x24de6b(_0x9676c5['UniverProLiveShare'],_0x9676c5[_0x5628aa(0x1c7)],_0x9676c5[_0x5628aa(0x1b7)],_0x9676c5['UniverSheetsUi'],_0x9676c5['UniverSheetsFacade'],_0x9676c5[_0x5628aa(0x1b9)]));}(this,function(_0x3b3965,_0x17536b,_0x3cccb7,_0x223a71,_0x89a614,_0x28d2a8){'use strict';const _0x52579d=_0x3494;class _0x1b6a06 extends _0x89a614['FRange']{[_0x52579d(0x1d1)](_0x163f69,_0x18a757,_0x48accc,_0x2acd22,_0x2b4786){const _0x5d53ef=_0x52579d,_0x3e68cb=_0x163f69[_0x5d53ef(0x1a9)](_0x3b3965[_0x5d53ef(0x1c4)]),_0x6b779b=_0x163f69[_0x5d53ef(0x1a9)](_0x17536b[_0x5d53ef(0x1c6)]),_0x3866de=_0x18a757[_0x5d53ef(0x1cd)](),_0x411f0c=_0x18a757['getActiveSheet'](),_0x55f6a1=_0x3e68cb[_0x5d53ef(0x1d9)](_0x3866de);(_0x55f6a1==null?void 0x0:_0x55f6a1[_0x5d53ef(0x1af)]())!==_0x3b3965[_0x5d53ef(0x1c3)][_0x5d53ef(0x1ad)]||(_0x48accc[_0x5d53ef(0x1be)]()!==_0x411f0c[_0x5d53ef(0x1be)]()&&this[_0x5d53ef(0x1d8)]['executeCommand'](_0x3cccb7[_0x5d53ef(0x1ab)]['id'],{'unitId':_0x3866de,'subUnitId':_0x48accc[_0x5d53ef(0x1be)]()}),!_0x6b779b[_0x5d53ef(0x1b6)](_0x3866de))||_0x2b4786['syncExecuteCommand'](_0x223a71[_0x5d53ef(0x1ca)]['id'],{'unitId':_0x18a757['getUnitId'](),'sheetId':_0x48accc['getSheetId'](),'sheetViewStartRow':_0x2acd22[_0x5d53ef(0x1ac)],'sheetViewStartColumn':_0x2acd22['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x89a614[_0x52579d(0x1a6)][_0x52579d(0x1d4)](_0x1b6a06);class _0x2e671c extends _0x28d2a8[_0x52579d(0x1b0)]{[_0x52579d(0x1a8)](){const _0x4d98c4=_0x52579d;var _0x561af1,_0x4c1f79;const _0x9fb92d=this['_injector'][_0x4d98c4(0x1a9)](_0x3b3965[_0x4d98c4(0x1c4)]),_0x566979=(_0x561af1=this[_0x4d98c4(0x1cf)]())==null?void 0x0:_0x561af1[_0x4d98c4(0x1c0)]();if(!_0x566979)throw new Error(_0x4d98c4(0x1da));const _0x2ed066=_0x9fb92d[_0x4d98c4(0x1d9)](_0x566979);return(_0x4c1f79=_0x2ed066==null?void 0x0:_0x2ed066[_0x4d98c4(0x1af)]())!=null?_0x4c1f79:_0x3b3965['LiveShareStatus'][_0x4d98c4(0x1b1)];}[_0x52579d(0x1bd)](){const _0x53acc0=_0x52579d;var _0x2931eb;const _0x38a461=this[_0x53acc0(0x1b3)][_0x53acc0(0x1a9)](_0x3b3965[_0x53acc0(0x1c4)]),_0x4a965e=(_0x2931eb=this['getActiveWorkbook']())==null?void 0x0:_0x2931eb[_0x53acc0(0x1c0)]();if(!_0x4a965e)throw new Error(_0x53acc0(0x1da));const _0x33f77b=_0x38a461['getLiveShareCoordinatorSync'](_0x4a965e);if(!_0x33f77b)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x33f77b[_0x53acc0(0x1bd)]();}[_0x52579d(0x1a7)](){const _0x195d9a=_0x52579d;var _0x56e26f;const _0x19ecab=this['_injector'][_0x195d9a(0x1a9)](_0x3b3965[_0x195d9a(0x1c4)]),_0x146f71=(_0x56e26f=this[_0x195d9a(0x1cf)]())==null?void 0x0:_0x56e26f[_0x195d9a(0x1c0)]();if(!_0x146f71)throw new Error('No\x20active\x20workbook\x20found.');const _0x1ad614=_0x19ecab['getLiveShareCoordinatorSync'](_0x146f71);if(!_0x1ad614)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1ad614[_0x195d9a(0x1a7)]();}[_0x52579d(0x1b5)](){const _0x2ae041=_0x52579d;var _0x1b4ccb;const _0x47f504=this[_0x2ae041(0x1b3)][_0x2ae041(0x1a9)](_0x3b3965[_0x2ae041(0x1c4)]),_0x229c2d=(_0x1b4ccb=this[_0x2ae041(0x1cf)]())==null?void 0x0:_0x1b4ccb[_0x2ae041(0x1c0)]();if(!_0x229c2d)throw new Error(_0x2ae041(0x1da));const _0x2b494f=_0x47f504[_0x2ae041(0x1d9)](_0x229c2d);if(!_0x2b494f)throw new Error(_0x2ae041(0x1ce));_0x2b494f[_0x2ae041(0x1c2)]();}[_0x52579d(0x1ba)](){const _0xb579e4=_0x52579d;var _0x1a1cb4;const _0xd0a1b9=this[_0xb579e4(0x1b3)][_0xb579e4(0x1a9)](_0x3b3965[_0xb579e4(0x1c4)]),_0x44bff5=(_0x1a1cb4=this['getActiveWorkbook']())==null?void 0x0:_0x1a1cb4[_0xb579e4(0x1c0)]();if(!_0x44bff5)throw new Error(_0xb579e4(0x1da));const _0x2e30a9=_0xd0a1b9[_0xb579e4(0x1d9)](_0x44bff5);if(!_0x2e30a9)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2e30a9[_0xb579e4(0x1ba)]();}}_0x28d2a8[_0x52579d(0x1b0)]['extend'](_0x2e671c);class _0x2ae9a8 extends _0x28d2a8[_0x52579d(0x1bc)]{get[_0x52579d(0x1d6)](){const _0x2f52ab=_0x52579d;return _0x3b3965[_0x2f52ab(0x1c3)];}}_0x28d2a8[_0x52579d(0x1bc)][_0x52579d(0x1d4)](_0x2ae9a8);}));
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x23e3(){const _0x2d6a6b=['forEach','_handleTerminate','toDisposable','defs','UniverProCollaboration','9998800YuDZkO','dispose$','displayName','_fetchOperations','_handleOnline','onCommandExecuted','IUIPartsService','asObservable','getCurrentTypeOfUnit$','override','SessionStatus','xlink:href','136248zrGtCv','useObservable','operators','Button','@univerjs/sheets','FOLLOWING','stopFollowing','@univerjs-pro/collaboration','You\x27re\x20following\x20the\x20presenter','path','_commandService','parseProtocolChangeset','fill','random','assign','_unitID','pluginName','_config','mask','react/jsx-runtime','clear','LIVESHARE_NEW_HOST','LIVESHARE_REQUEST_HOST','CommandType','offline','stopPresenting','DesktopLiveShareController','getOwnPropertyDescriptor','Stop\x20following','params','@univerjs-pro/collaboration-client','_mountLiveShare','trim','toStringTag','set','857859PjJBhI','getMemberID','jsxs','LIVESHARE_TERMINATE','RxDisposable','clsx','subscribe','registerSharedOperation','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','currentColor','78qTaOAH','registerDependencies','_startPresenting','_configService','replace','amd','LiveShareCoordinator','_liveShareService','default','colorChannel1','attrs','1311644ZRZdWi','not-following','UNIVER_UNKNOWN','getLiveShareCoordinatorSync','merge','Subject','useDependency','0\x200\x2017\x2017','_handleNewChangeSets','UniverInstanceType','ONLINE','DependentOn','touchDependencies','onRendered','UniverCollaborationClientPlugin','reverse','status$','includes','dispose','sessionStatus$','mutations','from','button','setConfig','values','_entities','ICommandService','LiveShare','LIVESHARE_FETCH_OPERATIONS','unsubscribe','DisposableCollection','_beIdle','defineProperty','send','@univerjs/design','CollaborationEvent','univer-size-4','_status$','_stopFollowing','idle','Start\x20following','rxjs/operators','_startFollowing','next','_handleOffline','UniverSheets','getStatus','then','react','_reporters','UniverSheetsUi','tryStartPresenting','createInstance','operations','takeUntil','use','_handleNewHost','_commandDisposable','_status','entries','42aWmCsv','univerjs-icon\x20univerjs-icon-','UniverLiveSharePlugin','UniverProCollaborationClient','presenter','stringify','useRef','HEADER_MENU','get','data','UniverIcon','1124307Hisxat','throttleTime','@univerjs/core','url(#$1','has','sheet','getTypeOfUnitAdded$','IUniverInstanceService','BuiltInUIPart','exports','_injector','_univerInstanceService','_collabSession','useEffect','LIVESHARE_OPERATION','BehaviorSubject','getTypeOfUnitDisposed$','You\x27re\x20not\x20following\x20the\x20presenter','registerInitialStateReporter','defIds','following','UniverProLiveShare','_sharedOperations','presenting','shouldShareOperation','NOT_FOLLOWING','pipe','executeCommand','startFollowing','http://www.w3.org/2000/svg','InsertSheetMutation','createElement','evenodd','_collabSessionService','_init','jsx','_startLiveShareCoordinator','string','LiveShareStatus','getLiveShareCoordinator','Dropdown','add','mergeOverrideWithDependencies','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','univer-mb-3\x20univer-w-full\x20univer-text-sm','You\x27re\x20presenting\x20the\x20document','Disposable','idSuffix','OFFLINE','complete','useState','current','UNIVER_SHEET','@univerjs/ui','Stop\x20presenting','div','init','map','15224iBbdhw','children','rxjs','_presenter','Inject','length','994610loRHYS','getUnitId','Fragment','object','tag','getInitialStates','function','symbol','24NjZNtb','delete','UniverDesign','forwardRef','IDLE','getConfig','Injector','1em','disposeWithMe','_stopPresenting','_handleOperation','requireSession','IConfigService','LiveShareController'];_0x23e3=function(){return _0x2d6a6b;};return _0x23e3();}function _0x4e29(_0x3706fb,_0x4e0811){const _0x23e353=_0x23e3();return _0x4e29=function(_0x4e29f6,_0x4e3256){_0x4e29f6=_0x4e29f6-0xd6;let _0x28594e=_0x23e353[_0x4e29f6];return _0x28594e;},_0x4e29(_0x3706fb,_0x4e0811);}(function(_0x55e389,_0x264835){const _0x43b961=_0x4e29,_0x2abc04=_0x55e389();while(!![]){try{const _0x256747=-parseInt(_0x43b961(0x115))/0x1*(-parseInt(_0x43b961(0x1b6))/0x2)+-parseInt(_0x43b961(0x165))/0x3+parseInt(_0x43b961(0x17a))/0x4+parseInt(_0x43b961(0x11b))/0x5+-parseInt(_0x43b961(0x16f))/0x6*(-parseInt(_0x43b961(0x142))/0x7)+-parseInt(_0x43b961(0x123))/0x8*(-parseInt(_0x43b961(0xdb))/0x9)+-parseInt(_0x43b961(0x136))/0xa;if(_0x256747===_0x264835)break;else _0x2abc04['push'](_0x2abc04['shift']());}catch(_0x1431f7){_0x2abc04['push'](_0x2abc04['shift']());}}}(_0x23e3,0x2e059),function(_0x3346dd,_0xb3e22b){const _0x38428a=_0x4e29;typeof exports==_0x38428a(0x11e)&&typeof module<'u'?_0xb3e22b(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==_0x38428a(0x121)&&define[_0x38428a(0x174)]?define([_0x38428a(0xe4),_0x38428a(0xdd),_0x38428a(0x110),_0x38428a(0x155),_0x38428a(0x19c),_0x38428a(0x1aa),_0x38428a(0x149),_0x38428a(0x160),_0x38428a(0x146),_0x38428a(0x117),_0x38428a(0x1a3),'@univerjs/sheets-ui'],_0xb3e22b):(_0x3346dd=typeof globalThis<'u'?globalThis:_0x3346dd||self,_0xb3e22b(_0x3346dd[_0x38428a(0xf0)]={},_0x3346dd['UniverCore'],_0x3346dd['UniverUi'],_0x3346dd['React'],_0x3346dd[_0x38428a(0x125)],_0x3346dd['React'],_0x3346dd[_0x38428a(0x135)],_0x3346dd[_0x38428a(0x1b9)],_0x3346dd[_0x38428a(0x1a7)],_0x3346dd[_0x38428a(0x117)],_0x3346dd[_0x38428a(0x117)][_0x38428a(0x144)],_0x3346dd[_0x38428a(0x1ac)]));}(this,function(_0x25a97d,_0x34f908,_0x4d5594,_0x4a72e8,_0x2657de,_0x14a001,_0x2d822a,_0x3bbabe,_0x1aef0b,_0x108c51,_0x4c4e05,_0x1661c8){'use strict';const _0x962b26=_0x4e29;var _0x59f3fb=Object['defineProperty'],_0x2b0435=(_0x172921,_0x5be9b6,_0x188a12)=>_0x5be9b6 in _0x172921?_0x59f3fb(_0x172921,_0x5be9b6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x188a12}):_0x172921[_0x5be9b6]=_0x188a12,_0x3d2603=(_0x4f7e38,_0x28bf37,_0x2d637b)=>_0x2b0435(_0x4f7e38,typeof _0x28bf37!=_0x962b26(0x122)?_0x28bf37+'':_0x28bf37,_0x2d637b);function _0x21b439({ref:_0x2f9245,..._0x4bfc14}){const _0x23a133=_0x962b26,{icon:_0x21bdef,id:_0x5718a9,className:_0x4cf0e2,extend:_0x44809f,..._0x3dbb6a}=_0x4bfc14,_0x2d5c6a=(_0x23a133(0x1b7)+_0x5718a9+'\x20'+(_0x4cf0e2||''))[_0x23a133(0x162)](),_0x224529=_0x14a001[_0x23a133(0xd6)]('_'+_0x1a3272());return _0x57c17a(_0x21bdef,''+_0x5718a9,{'defIds':_0x21bdef[_0x23a133(0xee)],'idSuffix':_0x224529[_0x23a133(0x10e)]},{'ref':_0x2f9245,'className':_0x2d5c6a,..._0x3dbb6a},_0x44809f);}function _0x57c17a(_0x52fe5c,_0x3f5622,_0x489fd3,_0x3f8bc3,_0x8d3f3a){const _0xac9107=_0x962b26;return _0x14a001[_0xac9107(0xfa)](_0x52fe5c[_0xac9107(0x11f)],{'key':_0x3f5622,..._0x3aefc8(_0x52fe5c,_0x489fd3,_0x8d3f3a),..._0x3f8bc3},(_0x183444(_0x52fe5c,_0x489fd3)[_0xac9107(0x116)]||[])[_0xac9107(0x114)]((_0x364bd2,_0x3d649c)=>_0x57c17a(_0x364bd2,_0x3f5622+'-'+_0x52fe5c[_0xac9107(0x11f)]+'-'+_0x3d649c,_0x489fd3,void 0x0,_0x8d3f3a)));}function _0x3aefc8(_0x4bdf89,_0x3addf6,_0x24bffa){const _0x2d7ea3=_0x962b26,_0xa29419={..._0x4bdf89[_0x2d7ea3(0x179)]};_0x24bffa!=null&&_0x24bffa[_0x2d7ea3(0x178)]&&_0xa29419['fill']===_0x2d7ea3(0x178)&&(_0xa29419[_0x2d7ea3(0x14e)]=_0x24bffa['colorChannel1']),_0x4bdf89[_0x2d7ea3(0x11f)]===_0x2d7ea3(0x154)&&_0xa29419['id']&&(_0xa29419['id']=_0xa29419['id']+_0x3addf6[_0x2d7ea3(0x10a)]),Object[_0x2d7ea3(0x1b5)](_0xa29419)[_0x2d7ea3(0x131)](([_0x3c6461,_0x5977de])=>{const _0x499e92=_0x2d7ea3;_0x3c6461===_0x499e92(0x154)&&typeof _0x5977de==_0x499e92(0x100)&&(_0xa29419[_0x3c6461]=_0x5977de[_0x499e92(0x173)](/url\(#(.*)\)/,_0x499e92(0xde)+_0x3addf6['idSuffix']+')'));});const {defIds:_0x263047}=_0x3addf6;return!_0x263047||_0x263047[_0x2d7ea3(0x11a)]===0x0||(_0x4bdf89[_0x2d7ea3(0x11f)]===_0x2d7ea3(0x1b1)&&_0xa29419[_0x2d7ea3(0x141)]&&(_0xa29419[_0x2d7ea3(0x141)]=_0xa29419[_0x2d7ea3(0x141)]+_0x3addf6[_0x2d7ea3(0x10a)]),Object[_0x2d7ea3(0x1b5)](_0xa29419)[_0x2d7ea3(0x131)](([_0x4be1ff,_0x3989f5])=>{const _0x107c1a=_0x2d7ea3;typeof _0x3989f5==_0x107c1a(0x100)&&(_0xa29419[_0x4be1ff]=_0x3989f5[_0x107c1a(0x173)](/url\(#(.*)\)/,_0x107c1a(0xde)+_0x3addf6['idSuffix']+')'));})),_0xa29419;}function _0x183444(_0x359951,_0x484b01){const _0x34380f=_0x962b26;var _0x583e56;const {defIds:_0x24c6ee}=_0x484b01;return!_0x24c6ee||_0x24c6ee[_0x34380f(0x11a)]===0x0?_0x359951:_0x359951[_0x34380f(0x11f)]===_0x34380f(0x134)&&((_0x583e56=_0x359951[_0x34380f(0x116)])!=null&&_0x583e56['length'])?{..._0x359951,'children':_0x359951['children'][_0x34380f(0x114)](_0x2b924f=>typeof _0x2b924f[_0x34380f(0x179)]['id']==_0x34380f(0x100)&&_0x24c6ee&&_0x24c6ee[_0x34380f(0x18b)](_0x2b924f['attrs']['id'])?{..._0x2b924f,'attrs':{..._0x2b924f[_0x34380f(0x179)],'id':_0x2b924f[_0x34380f(0x179)]['id']+_0x484b01[_0x34380f(0x10a)]}}:_0x2b924f)}:_0x359951;}function _0x1a3272(){const _0x4d45c9=_0x962b26;return Math[_0x4d45c9(0x14f)]()['toString'](0x24)['substring'](0x2,0x8);}_0x21b439[_0x962b26(0x138)]=_0x962b26(0xda);const _0x2ff253={'tag':'svg','attrs':{'xmlns':_0x962b26(0xf8),'fill':'none','viewBox':_0x962b26(0x181),'width':'1em','height':_0x962b26(0x12a)},'children':[{'tag':'path','attrs':{'fill':_0x962b26(0x16e),'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':_0x962b26(0x14b),'attrs':{'fill':'currentColor','d':_0x962b26(0x16d),'fillRule':_0x962b26(0xfb),'clipRule':'evenodd'}}]},_0x260691=_0x14a001[_0x962b26(0x126)](function(_0x50be8d,_0x8c4aa5){const _0x527441=_0x962b26;return _0x14a001[_0x527441(0xfa)](_0x21b439,Object[_0x527441(0x150)]({},_0x50be8d,{'id':'live-share-icon','ref':_0x8c4aa5,'icon':_0x2ff253}));});_0x260691[_0x962b26(0x138)]='LiveShareIcon';class _0xa8cdd extends _0x34f908[_0x962b26(0x109)]{constructor(){const _0x230df8=_0x962b26;super(...arguments),_0x3d2603(this,_0x230df8(0xf1),new Set()),_0x3d2603(this,_0x230df8(0x1ab),new Set());}[_0x962b26(0x16c)](_0x2fba21){const _0x5c8a26=_0x962b26;return this[_0x5c8a26(0xf1)][_0x5c8a26(0x104)](_0x2fba21),_0x34f908[_0x5c8a26(0x133)](()=>this[_0x5c8a26(0xf1)]['delete'](_0x2fba21));}[_0x962b26(0xed)](_0x3c147f){const _0x5b8b10=_0x962b26;return this[_0x5b8b10(0x1ab)]['add'](_0x3c147f),_0x34f908[_0x5b8b10(0x133)](()=>this['_reporters'][_0x5b8b10(0x124)](_0x3c147f));}[_0x962b26(0xf3)](_0x386210){const _0x3e7774=_0x962b26;return this['_sharedOperations'][_0x3e7774(0xdf)](_0x386210);}[_0x962b26(0x120)](_0x2c52dd){const _0x353985=_0x962b26;return Array[_0x353985(0x18f)](this[_0x353985(0x1ab)])[_0x353985(0x114)](_0x443cd6=>_0x443cd6(_0x2c52dd));}}var _0x30c0a9=Object[_0x962b26(0x15d)],_0x1a686d=(_0x1a77c8,_0x406e15,_0x18e961,_0x2b7872)=>{const _0x3b6623=_0x962b26;for(var _0x21dca7=_0x2b7872>0x1?void 0x0:_0x2b7872?_0x30c0a9(_0x406e15,_0x18e961):_0x406e15,_0x9f483c=_0x1a77c8[_0x3b6623(0x11a)]-0x1,_0xb3600d;_0x9f483c>=0x0;_0x9f483c--)(_0xb3600d=_0x1a77c8[_0x9f483c])&&(_0x21dca7=_0xb3600d(_0x21dca7)||_0x21dca7);return _0x21dca7;},_0x36127e=(_0x478253,_0x282f61)=>(_0x238a76,_0x2b1713)=>_0x282f61(_0x238a76,_0x2b1713,_0x478253);_0x25a97d[_0x962b26(0x130)]=class extends _0x34f908[_0x962b26(0x169)]{constructor(_0x163b97,_0x356ee1,_0x467259){const _0xc5a9a3=_0x962b26;super(),_0x3d2603(this,_0xc5a9a3(0x193),new Map()),(this[_0xc5a9a3(0xe6)]=_0x163b97,this[_0xc5a9a3(0xe5)]=_0x356ee1,this[_0xc5a9a3(0xfc)]=_0x467259,this[_0xc5a9a3(0xfd)]());}async[_0x962b26(0x102)](_0x16f9aa){const _0x5892df=_0x962b26;return this[_0x5892df(0x193)][_0x5892df(0xdf)](_0x16f9aa)||await this['_startLiveShareCoordinator'](_0x16f9aa),this[_0x5892df(0x193)][_0x5892df(0xd8)](_0x16f9aa);}[_0x962b26(0x17d)](_0x5d7730){const _0x13865e=_0x962b26;var _0xa6fdcf;return(_0xa6fdcf=this[_0x13865e(0x193)][_0x13865e(0xd8)](_0x5d7730))!=null?_0xa6fdcf:null;}[_0x962b26(0xfd)](){const _0x4472cc=_0x962b26;this[_0x4472cc(0xe6)][_0x4472cc(0xe1)](_0x34f908['UniverInstanceType'][_0x4472cc(0x10f)])[_0x4472cc(0xf5)](_0x4c4e05[_0x4472cc(0x1b0)](this[_0x4472cc(0x137)]))[_0x4472cc(0x16b)](async _0x34d7fc=>{const _0x1322e7=_0x4472cc,_0x3b44c8=_0x34d7fc[_0x1322e7(0x11c)]();this[_0x1322e7(0x193)][_0x1322e7(0xdf)](_0x3b44c8)||this[_0x1322e7(0xff)](_0x3b44c8);}),this[_0x4472cc(0xe6)][_0x4472cc(0xeb)](_0x34f908[_0x4472cc(0x183)][_0x4472cc(0x10f)])[_0x4472cc(0xf5)](_0x4c4e05[_0x4472cc(0x1b0)](this['dispose$']))[_0x4472cc(0x16b)](_0x113435=>{const _0xc25261=_0x4472cc,_0x2f593f=_0x113435[_0xc25261(0x11c)](),_0x5e3fa6=this[_0xc25261(0x193)][_0xc25261(0xd8)](_0x2f593f);_0x5e3fa6==null||_0x5e3fa6[_0xc25261(0x18c)]();});}async['_startLiveShareCoordinator'](_0x177298){const _0x291f93=_0x962b26,_0x4e002f=await this['_collabSessionService'][_0x291f93(0x12e)](_0x177298),_0x52125e=this[_0x291f93(0xe5)][_0x291f93(0x1ae)](_0x25a97d[_0x291f93(0x175)],_0x177298,_0x4e002f);return _0x52125e['init'](),this['_entities'][_0x291f93(0x164)](_0x177298,_0x52125e),_0x52125e;}},_0x25a97d[_0x962b26(0x130)]=_0x1a686d([_0x36127e(0x0,_0x34f908[_0x962b26(0xe2)]),_0x36127e(0x1,_0x34f908[_0x962b26(0x119)](_0x34f908['Injector'])),_0x36127e(0x2,_0x34f908[_0x962b26(0x119)](_0x3bbabe['CollaborationSessionService']))],_0x25a97d[_0x962b26(0x130)]);var _0x320925=(_0x4b2fbd=>(_0x4b2fbd[_0x962b26(0x10b)]=_0x962b26(0x15a),_0x4b2fbd[_0x962b26(0x127)]=_0x962b26(0x1a1),_0x4b2fbd[_0x962b26(0x147)]='following',_0x4b2fbd[_0x962b26(0xf4)]=_0x962b26(0x17b),_0x4b2fbd['PRESENTING']=_0x962b26(0xf2),_0x4b2fbd))(_0x320925||{});const _0x110334='SAME_OPERATION_SHARE_INTERVAL',_0x22030d=0xc8;_0x25a97d['LiveShareCoordinator']=class extends _0x34f908[_0x962b26(0x169)]{constructor(_0x2242eb,_0x47418b,_0x6f6ea0,_0xc56cc5,_0x234040){const _0x226422=_0x962b26;super(),_0x3d2603(this,'_status$',new _0x108c51[(_0x226422(0xea))](_0x226422(0x1a1))),_0x3d2603(this,_0x226422(0x18a),this[_0x226422(0x19f)][_0x226422(0x13d)]()),_0x3d2603(this,_0x226422(0xfd),!0x1),_0x3d2603(this,_0x226422(0x1b3),null),_0x3d2603(this,_0x226422(0x118),null),(this[_0x226422(0x151)]=_0x2242eb,this['_collabSession']=_0x47418b,this[_0x226422(0x172)]=_0x6f6ea0,this[_0x226422(0x176)]=_0xc56cc5,this[_0x226422(0x14c)]=_0x234040);}get[_0x962b26(0x1b4)](){const _0x5f4b18=_0x962b26;return this[_0x5f4b18(0x19f)]['getValue']();}[_0x962b26(0x18c)](){const _0x555283=_0x962b26;var _0x15eeef;(_0x15eeef=this[_0x555283(0x1b3)])==null||_0x15eeef[_0x555283(0x18c)](),this['_status$'][_0x555283(0x1a5)](_0x555283(0x1a1)),this[_0x555283(0x19f)][_0x555283(0x10c)]();}[_0x962b26(0x1a8)](){return this['_status'];}[_0x962b26(0x113)](){const _0x2fbe9e=_0x962b26;this[_0x2fbe9e(0xfd)]||(this[_0x2fbe9e(0xfd)]=!0x0,this[_0x2fbe9e(0xe7)][_0x2fbe9e(0x18d)][_0x2fbe9e(0xf5)](_0x4c4e05['takeUntil'](this[_0x2fbe9e(0x137)]))[_0x2fbe9e(0x16b)](_0x3127da=>{const _0x15f941=_0x2fbe9e;switch(_0x3127da){case _0x3bbabe['SessionStatus']['OFFLINE']:this[_0x15f941(0x1a6)]();break;case _0x3bbabe[_0x15f941(0x140)][_0x15f941(0x184)]:this[_0x15f941(0x13a)]();break;}}),this[_0x2fbe9e(0xe7)]['event$'][_0x2fbe9e(0xf5)](_0x4c4e05[_0x2fbe9e(0x1b0)](this[_0x2fbe9e(0x137)]))[_0x2fbe9e(0x16b)](_0x83cb4e=>{const _0x2d260f=_0x2fbe9e,{eventID:_0x2a9e1b}=_0x83cb4e;switch(_0x2a9e1b){case _0x2d822a['CollaborationEvent'][_0x2d260f(0x157)]:this[_0x2d260f(0x1b2)](_0x83cb4e);break;case _0x2d822a[_0x2d260f(0x19d)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x83cb4e);break;case _0x2d822a[_0x2d260f(0x19d)][_0x2d260f(0x168)]:this[_0x2d260f(0x132)]();break;case _0x2d822a[_0x2d260f(0x19d)]['NEW_CHANGESETS']:this[_0x2d260f(0x182)](_0x83cb4e);break;}}));}[_0x962b26(0x1ad)](){const _0x540eb3=_0x962b26;this[_0x540eb3(0xe7)]['send']({'eventID':_0x2d822a[_0x540eb3(0x19d)][_0x540eb3(0x158)],'data':{'unitID':this['_unitID'],'userID':this[_0x540eb3(0xe7)][_0x540eb3(0x166)]()}},this[_0x540eb3(0x151)]);}[_0x962b26(0x15b)](){const _0x4c5933=_0x962b26;this[_0x4c5933(0x1b4)]==='presenting'&&(this[_0x4c5933(0x19f)][_0x4c5933(0x1a5)](_0x4c5933(0x1a1)),this[_0x4c5933(0xe7)]['send']({'eventID':_0x2d822a['CollaborationEvent'][_0x4c5933(0x168)],'data':{'unitID':this['_unitID']}},this[_0x4c5933(0x151)]));}[_0x962b26(0xf7)](){const _0x543b44=_0x962b26;this['_status']===_0x543b44(0x17b)&&(this[_0x543b44(0x19f)][_0x543b44(0x1a5)](_0x543b44(0xef)),this[_0x543b44(0x1a4)]());}[_0x962b26(0x148)](){const _0x17aa12=_0x962b26;this[_0x17aa12(0x1b4)]===_0x17aa12(0xef)&&this[_0x17aa12(0x1a0)]();}[_0x962b26(0x1b2)](_0x4ef4ff){const _0x516e02=_0x962b26,{presenter:_0x11d7f0}=_0x4ef4ff[_0x516e02(0xd9)],_0x583f22=this[_0x516e02(0xe7)]['getMemberID']();this[_0x516e02(0x118)]=_0x11d7f0,_0x11d7f0===_0x583f22?(this['_stopFollowing'](),this[_0x516e02(0x171)]()):this[_0x516e02(0x1b4)]!==_0x516e02(0x17b)&&(this['_stopPresenting'](),this[_0x516e02(0x1a4)]());}[_0x962b26(0x139)](){const _0x51a1bc=_0x962b26,_0x57aa7a={'eventID':_0x2d822a[_0x51a1bc(0x19d)][_0x51a1bc(0x196)]};this[_0x51a1bc(0xe7)][_0x51a1bc(0x19b)](_0x57aa7a,this[_0x51a1bc(0x151)]);}[_0x962b26(0x132)](){const _0x56f1fd=_0x962b26;this[_0x56f1fd(0x118)]=null,this[_0x56f1fd(0x1b4)]!==_0x56f1fd(0xf2)&&this[_0x56f1fd(0x199)]();}[_0x962b26(0x182)](_0x3bb4a8){const _0x4ea16d=_0x962b26;if(this[_0x4ea16d(0x1b4)]==='following'&&this['_presenter']===_0x3bb4a8[_0x4ea16d(0xd9)]['memberID']){const _0x5d1bdb=_0x2d822a[_0x4ea16d(0x14d)](_0x3bb4a8[_0x4ea16d(0xd9)])[_0x4ea16d(0x18e)][_0x4ea16d(0x189)]()['find'](_0x42aa8f=>_0x42aa8f['id']===_0x1aef0b[_0x4ea16d(0xf9)]['id']);if(_0x5d1bdb){const _0x42d7e7=_0x5d1bdb[_0x4ea16d(0x15f)]['unitId'],_0xb8ae0f=_0x5d1bdb[_0x4ea16d(0x15f)][_0x4ea16d(0xe0)]['id'];setTimeout(()=>{const _0x2d0fa5=_0x4ea16d;this[_0x2d0fa5(0x14c)][_0x2d0fa5(0xf6)](_0x1aef0b['SetWorksheetActiveOperation']['id'],{'unitId':_0x42d7e7,'subUnitId':_0xb8ae0f},{'fromCollab':!0x0});});}}}[_0x962b26(0x171)](){const _0x327233=_0x962b26;this[_0x327233(0x19f)]['next'](_0x327233(0xf2));const _0x63377a=new Map(),_0x1620c3=this['_commandDisposable']=new _0x34f908[(_0x327233(0x198))]();_0x1620c3['add'](_0x34f908[_0x327233(0x133)](()=>{const _0x5a52b2=_0x327233;_0x63377a['forEach'](_0x1715f0=>_0x1715f0[_0x5a52b2(0x10c)]()),_0x63377a[_0x5a52b2(0x156)]();})),_0x1620c3['add'](this[_0x327233(0x14c)][_0x327233(0x13b)](_0xd4a45d=>{const _0x3480bd=_0x327233;var _0x3988c8;if(_0xd4a45d['type']!==_0x34f908[_0x3480bd(0x159)]['OPERATION']||!this['_liveShareService'][_0x3480bd(0xf3)](_0xd4a45d['id']))return;const {id:_0x3d5f2f}=_0xd4a45d;let _0x191337;_0x63377a[_0x3480bd(0xdf)](_0x3d5f2f)?_0x191337=_0x63377a['get'](_0x3d5f2f):(_0x191337=new _0x108c51[(_0x3480bd(0x17f))](),_0x63377a[_0x3480bd(0x164)](_0x3d5f2f,_0x191337),_0x191337['pipe'](_0x4c4e05[_0x3480bd(0xdc)]((_0x3988c8=this[_0x3480bd(0x172)][_0x3480bd(0x128)](_0x110334))!=null?_0x3988c8:_0x22030d,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3480bd(0x16b)](_0x18bc7c=>{const _0x5dc1b7=_0x3480bd;this[_0x5dc1b7(0xe7)][_0x5dc1b7(0x19b)]({'eventID':_0x2d822a[_0x5dc1b7(0x19d)][_0x5dc1b7(0xe9)],'data':{'unitID':this['_unitID'],'operations':{[_0x18bc7c['id']]:{'id':_0x18bc7c['id'],'params':JSON[_0x5dc1b7(0x1bb)](_0x18bc7c[_0x5dc1b7(0x15f)])}}}},this[_0x5dc1b7(0x151)]);})),_0x191337[_0x3480bd(0x1a5)](_0xd4a45d);})),this[_0x327233(0x176)][_0x327233(0x120)](this[_0x327233(0x151)])[_0x327233(0x131)](_0x5d324d=>this[_0x327233(0xe7)]['send']({'eventID':_0x2d822a[_0x327233(0x19d)][_0x327233(0xe9)],'data':{'unitID':this[_0x327233(0x151)],'operations':{[_0x5d324d['id']]:{'id':_0x5d324d['id'],'params':JSON[_0x327233(0x1bb)](_0x5d324d['params'])}}}},this[_0x327233(0x151)]));}[_0x962b26(0x12c)](){const _0x4acab6=_0x962b26;var _0x1bc82f;this[_0x4acab6(0x19f)][_0x4acab6(0x1a5)](_0x4acab6(0x1a1)),(_0x1bc82f=this[_0x4acab6(0x1b3)])==null||_0x1bc82f['dispose'](),this[_0x4acab6(0x1b3)]=null;}['_startFollowing'](){const _0x203d88=_0x962b26;var _0x3afba7;(_0x3afba7=this[_0x203d88(0x1b3)])==null||_0x3afba7[_0x203d88(0x18c)](),this['_status$'][_0x203d88(0x1a5)](_0x203d88(0xef));}[_0x962b26(0x199)](){const _0x3d793f=_0x962b26;var _0x5b78b7;this[_0x3d793f(0x19f)][_0x3d793f(0x1a5)](_0x3d793f(0x1a1)),(_0x5b78b7=this[_0x3d793f(0x1b3)])==null||_0x5b78b7[_0x3d793f(0x18c)](),this['_commandDisposable']=null;}[_0x962b26(0x1a0)](){const _0x40c65d=_0x962b26;var _0x48df97;this['_status$'][_0x40c65d(0x1a5)](_0x40c65d(0x17b)),(_0x48df97=this[_0x40c65d(0x1b3)])==null||_0x48df97[_0x40c65d(0x18c)]();}[_0x962b26(0x12d)](_0x23801c){const _0x2712bd=_0x962b26;if([_0x2712bd(0xf2),_0x2712bd(0x17b),_0x2712bd(0x15a)][_0x2712bd(0x18b)](this[_0x2712bd(0x1b4)])||!_0x23801c[_0x2712bd(0xd9)][_0x2712bd(0x1ba)]||_0x23801c[_0x2712bd(0xd9)]['presenter']===this['_collabSession'][_0x2712bd(0x166)]())return;this[_0x2712bd(0x1b4)]===_0x2712bd(0x1a1)&&this['_startFollowing']();const _0x2b66a2=_0x23801c['data'][_0x2712bd(0x1af)];Object[_0x2712bd(0x192)](_0x2b66a2)[_0x2712bd(0x131)](_0x1ba74e=>{const _0x33e9d4=_0x2712bd;this[_0x33e9d4(0x14c)][_0x33e9d4(0xf6)](_0x1ba74e['id'],_0x1ba74e[_0x33e9d4(0x15f)]?JSON['parse'](_0x1ba74e[_0x33e9d4(0x15f)]):null,{'fromCollab':!0x0});});}[_0x962b26(0x1a6)](){const _0x13c36d=_0x962b26;var _0x93dbe1;this[_0x13c36d(0x19f)]['next'](_0x13c36d(0x15a)),(_0x93dbe1=this[_0x13c36d(0x1b3)])==null||_0x93dbe1[_0x13c36d(0x18c)]();}[_0x962b26(0x13a)](){const _0x470d6e=_0x962b26;this['_status$'][_0x470d6e(0x1a5)](_0x470d6e(0x1a1)),this['_fetchOperations']();}},_0x25a97d['LiveShareCoordinator']=_0x1a686d([_0x36127e(0x2,_0x34f908[_0x962b26(0x12f)]),_0x36127e(0x3,_0x34f908[_0x962b26(0x119)](_0xa8cdd)),_0x36127e(0x4,_0x34f908[_0x962b26(0x194)])],_0x25a97d[_0x962b26(0x175)]);function _0x548691(){const _0x342f1b=_0x962b26,_0x4293f4=_0x4d5594['useDependency'](_0x25a97d[_0x342f1b(0x130)]),_0x1cb1d6=_0x4d5594[_0x342f1b(0x180)](_0x34f908[_0x342f1b(0xe2)]),_0x43a814=_0x4d5594[_0x342f1b(0x143)](()=>_0x1cb1d6[_0x342f1b(0x13e)](_0x34f908[_0x342f1b(0x183)][_0x342f1b(0x10f)]),void 0x0,!0x1,[]),[_0x41f40d,_0x53140e]=_0x14a001[_0x342f1b(0x10d)](null),[_0x3b02aa,_0x4899a4]=_0x14a001[_0x342f1b(0x10d)](_0x320925['IDLE']),_0x5b18aa=_0x14a001[_0x342f1b(0xd6)](null);return _0x14a001[_0x342f1b(0xe8)](()=>(_0x43a814&&_0x4293f4[_0x342f1b(0x102)](_0x43a814['getUnitId']())[_0x342f1b(0x1a9)](_0x18adb1=>{const _0x124b40=_0x342f1b;_0x53140e(_0x18adb1),_0x5b18aa[_0x124b40(0x10e)]=_0x18adb1[_0x124b40(0x18a)][_0x124b40(0x16b)](_0x40090b=>{_0x4899a4(_0x40090b);});}),()=>{const _0x1ec40c=_0x342f1b;var _0x11e87e;(_0x11e87e=_0x5b18aa[_0x1ec40c(0x10e)])==null||_0x11e87e[_0x1ec40c(0x197)](),_0x5b18aa[_0x1ec40c(0x10e)]=null;}),[_0x43a814,_0x4293f4]),_0x41f40d?_0x4a72e8['jsx'](_0x2657de[_0x342f1b(0x103)],{'align':'end','disabled':_0x3b02aa===_0x320925[_0x342f1b(0x10b)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x4a72e8[_0x342f1b(0xfe)](_0xf1391a,{'status':_0x3b02aa,'coordinator':_0x41f40d}),'children':_0x4a72e8['jsx'](_0x342f1b(0x190),{'className':_0x2657de[_0x342f1b(0x16a)](_0x342f1b(0x106),{'univer-cursor-not-allowed':_0x3b02aa===_0x320925[_0x342f1b(0x10b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3b02aa!==_0x320925[_0x342f1b(0x10b)]}),'type':_0x342f1b(0x190),'children':_0x4a72e8[_0x342f1b(0xfe)](_0x260691,{'className':_0x342f1b(0x19e)})})}):null;}function _0xf1391a(_0x2eb071){const _0x1d985b=_0x962b26,{status:_0x468b28,coordinator:_0x4cf8b5}=_0x2eb071;switch(_0x468b28){case _0x320925[_0x1d985b(0x127)]:return _0x4a72e8[_0x1d985b(0xfe)](_0x45b850,{'coordinator':_0x4cf8b5});case _0x320925[_0x1d985b(0x147)]:return _0x4a72e8[_0x1d985b(0xfe)](_0x2515fc,{'coordinator':_0x4cf8b5});case _0x320925['NOT_FOLLOWING']:return _0x4a72e8[_0x1d985b(0xfe)](_0x282b59,{'coordinator':_0x4cf8b5});case _0x320925[_0x1d985b(0x10b)]:return _0x4a72e8[_0x1d985b(0xfe)](_0x1598f2,{});case _0x320925['PRESENTING']:return _0x4a72e8[_0x1d985b(0xfe)](_0x7e160a,{'coordinator':_0x4cf8b5});default:return null;}}function _0x45b850(_0x2fb9d0){const _0x10dc7e=_0x962b26,{coordinator:_0x57ad32}=_0x2fb9d0;return _0x4a72e8['jsxs'](_0x4a72e8['Fragment'],{'children':[_0x4a72e8['jsx'](_0x10dc7e(0x112),{'className':_0x10dc7e(0x107),'children':'Present\x20this\x20document'}),_0x4a72e8[_0x10dc7e(0xfe)](_0x2657de[_0x10dc7e(0x145)],{'onClick':()=>_0x57ad32[_0x10dc7e(0x1ad)](),'children':'Start'})]});}function _0x2515fc(_0x3b9774){const _0x3b11d8=_0x962b26,{coordinator:_0x2d9fba}=_0x3b9774;return _0x4a72e8['jsxs'](_0x4a72e8[_0x3b11d8(0x11d)],{'children':[_0x4a72e8[_0x3b11d8(0xfe)](_0x3b11d8(0x112),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3b11d8(0x14a)}),_0x4a72e8['jsx'](_0x2657de[_0x3b11d8(0x145)],{'onClick':()=>_0x2d9fba[_0x3b11d8(0x148)](),'children':_0x3b11d8(0x15e)})]});}function _0x282b59(_0x50f802){const _0xa8fb03=_0x962b26,{coordinator:_0x5be460}=_0x50f802;return _0x4a72e8[_0xa8fb03(0x167)](_0x4a72e8[_0xa8fb03(0x11d)],{'children':[_0x4a72e8[_0xa8fb03(0xfe)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xa8fb03(0xec)}),_0x4a72e8[_0xa8fb03(0xfe)](_0x2657de['Button'],{'variant':'text','onClick':()=>_0x5be460[_0xa8fb03(0xf7)](),'children':_0xa8fb03(0x1a2)})]});}function _0x7e160a(_0x3563e8){const _0x1e5456=_0x962b26,{coordinator:_0x4268a6}=_0x3563e8;return _0x4a72e8[_0x1e5456(0x167)](_0x4a72e8[_0x1e5456(0x11d)],{'children':[_0x4a72e8[_0x1e5456(0xfe)](_0x1e5456(0x112),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1e5456(0x108)}),_0x4a72e8[_0x1e5456(0xfe)](_0x2657de['Button'],{'variant':_0x1e5456(0x177),'onClick':()=>_0x4268a6[_0x1e5456(0x15b)](),'children':_0x1e5456(0x111)})]});}function _0x1598f2(){const _0x530fd1=_0x962b26;return _0x4a72e8['jsx'](_0x4a72e8[_0x530fd1(0x11d)],{'children':'You\x27are\x20offline.'});}var _0x22276f=Object['getOwnPropertyDescriptor'],_0x16a17d=(_0x50ee53,_0x4a33c5,_0x4c7a6e,_0x337141)=>{const _0x182021=_0x962b26;for(var _0x3fa331=_0x337141>0x1?void 0x0:_0x337141?_0x22276f(_0x4a33c5,_0x4c7a6e):_0x4a33c5,_0x244d14=_0x50ee53[_0x182021(0x11a)]-0x1,_0x3dd4f8;_0x244d14>=0x0;_0x244d14--)(_0x3dd4f8=_0x50ee53[_0x244d14])&&(_0x3fa331=_0x3dd4f8(_0x3fa331)||_0x3fa331);return _0x3fa331;},_0x5ab00a=(_0x29d06e,_0x2b153d)=>(_0x36722f,_0x18ee91)=>_0x2b153d(_0x36722f,_0x18ee91,_0x29d06e);_0x25a97d['DesktopLiveShareController']=class extends _0x34f908['Disposable']{constructor(_0x35fc32,_0x513599){const _0x4c819c=_0x962b26;super(),this[_0x4c819c(0xe5)]=_0x35fc32,this['_uiPartsService']=_0x513599,this[_0x4c819c(0x161)]();}[_0x962b26(0x161)](){const _0x152e66=_0x962b26;this[_0x152e66(0x12b)](this['_uiPartsService']['registerComponent'](_0x4d5594[_0x152e66(0xe3)][_0x152e66(0xd7)],()=>_0x4d5594['connectInjector'](_0x548691,this['_injector'])));}},_0x25a97d[_0x962b26(0x15c)]=_0x16a17d([_0x5ab00a(0x0,_0x34f908[_0x962b26(0x119)](_0x34f908[_0x962b26(0x129)])),_0x5ab00a(0x1,_0x4d5594[_0x962b26(0x13c)])],_0x25a97d[_0x962b26(0x15c)]);const _0x57aa68='live-share.config',_0x43f128={};var _0x9ad926=Object[_0x962b26(0x15d)],_0x59d2a6=(_0x2bc867,_0x526247,_0x3c377c,_0x51f670)=>{const _0x47c38e=_0x962b26;for(var _0x2fc581=_0x51f670>0x1?void 0x0:_0x51f670?_0x9ad926(_0x526247,_0x3c377c):_0x526247,_0x31cf91=_0x2bc867[_0x47c38e(0x11a)]-0x1,_0x521d2c;_0x31cf91>=0x0;_0x31cf91--)(_0x521d2c=_0x2bc867[_0x31cf91])&&(_0x2fc581=_0x521d2c(_0x2fc581)||_0x2fc581);return _0x2fc581;},_0x405d2e=(_0x32c534,_0x169538)=>(_0x270846,_0x4006f5)=>_0x169538(_0x270846,_0x4006f5,_0x32c534);let _0x1e580c=class extends _0x34f908[_0x962b26(0x109)]{constructor(_0x47e43b){const _0x224075=_0x962b26;super(),this[_0x224075(0x176)]=_0x47e43b,this[_0x224075(0xfd)]();}['_init'](){const _0x50e9ee=_0x962b26;[_0x1661c8['SetZoomRatioOperation']['id'],_0x1661c8['SetScrollOperation']['id'],_0x1aef0b['SetWorksheetActiveOperation']['id']][_0x50e9ee(0x131)](_0x5a8043=>{const _0x1cebbf=_0x50e9ee;this[_0x1cebbf(0x12b)](this[_0x1cebbf(0x176)][_0x1cebbf(0x16c)](_0x5a8043));});}};_0x1e580c=_0x59d2a6([_0x405d2e(0x0,_0x34f908[_0x962b26(0x119)](_0xa8cdd))],_0x1e580c);var _0x29f613=Object[_0x962b26(0x19a)],_0x2c88cd=Object['getOwnPropertyDescriptor'],_0x46c276=(_0x4276aa,_0x1b3e50,_0x205c65)=>_0x1b3e50 in _0x4276aa?_0x29f613(_0x4276aa,_0x1b3e50,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x205c65}):_0x4276aa[_0x1b3e50]=_0x205c65,_0x2bcb16=(_0x3768e8,_0x5ef6a8,_0x4c1379,_0x5734d3)=>{const _0x3b32e4=_0x962b26;for(var _0x430a74=_0x5734d3>0x1?void 0x0:_0x5734d3?_0x2c88cd(_0x5ef6a8,_0x4c1379):_0x5ef6a8,_0x565322=_0x3768e8[_0x3b32e4(0x11a)]-0x1,_0x5138a3;_0x565322>=0x0;_0x565322--)(_0x5138a3=_0x3768e8[_0x565322])&&(_0x430a74=_0x5138a3(_0x430a74)||_0x430a74);return _0x430a74;},_0x27db3b=(_0x29d035,_0x10e428)=>(_0x51b2db,_0x204f0a)=>_0x10e428(_0x51b2db,_0x204f0a,_0x29d035),_0x12d3a3=(_0x304c1c,_0x2dec14,_0x52d5e2)=>_0x46c276(_0x304c1c,typeof _0x2dec14!='symbol'?_0x2dec14+'':_0x2dec14,_0x52d5e2);const _0x13b69d='UNIVER_LIVE_SHARE_PLUGIN';_0x25a97d[_0x962b26(0x1b8)]=class extends _0x34f908['Plugin']{constructor(_0x169540=_0x43f128,_0xf97f66,_0x5c4a59){const _0x14df53=_0x962b26;super(),this[_0x14df53(0x153)]=_0x169540,this['_injector']=_0xf97f66,this[_0x14df53(0x172)]=_0x5c4a59;const {..._0x4017ad}=_0x34f908[_0x14df53(0x17e)]({},_0x43f128,this['_config']);this[_0x14df53(0x172)][_0x14df53(0x191)](_0x57aa68,_0x4017ad);}['onStarting'](){const _0x532ffe=_0x962b26;_0x34f908[_0x532ffe(0x170)](this[_0x532ffe(0xe5)],_0x34f908[_0x532ffe(0x105)]([[_0xa8cdd],[_0x25a97d[_0x532ffe(0x130)]],[_0x1e580c],[_0x25a97d[_0x532ffe(0x15c)]]],this[_0x532ffe(0x153)][_0x532ffe(0x13f)])),_0x34f908['touchDependencies'](this[_0x532ffe(0xe5)],[[_0x1e580c]]);}[_0x962b26(0x187)](){const _0x174ecb=_0x962b26;_0x34f908[_0x174ecb(0x186)](this['_injector'],[[_0x25a97d[_0x174ecb(0x15c)]]]);}},_0x12d3a3(_0x25a97d[_0x962b26(0x1b8)],'type',_0x34f908[_0x962b26(0x183)][_0x962b26(0x17c)]),_0x12d3a3(_0x25a97d[_0x962b26(0x1b8)],_0x962b26(0x152),_0x13b69d),_0x25a97d[_0x962b26(0x1b8)]=_0x2bcb16([_0x34f908[_0x962b26(0x185)](_0x3bbabe[_0x962b26(0x188)]),_0x27db3b(0x1,_0x34f908[_0x962b26(0x119)](_0x34f908[_0x962b26(0x129)])),_0x27db3b(0x2,_0x34f908['IConfigService'])],_0x25a97d['UniverLiveSharePlugin']),_0x25a97d[_0x962b26(0x195)]=_0x548691,_0x25a97d['LiveShareService']=_0xa8cdd,_0x25a97d[_0x962b26(0x101)]=_0x320925,Object[_0x962b26(0x19a)](_0x25a97d,Symbol[_0x962b26(0x163)],{'value':'Module'});}));
|
|
1
|
+
function _0x26be(_0x3c0141,_0x47df5e){const _0x40528d=_0x4052();return _0x26be=function(_0x26be72,_0xc68b0e){_0x26be72=_0x26be72-0x1a3;let _0x2f769d=_0x40528d[_0x26be72];return _0x2f769d;},_0x26be(_0x3c0141,_0x47df5e);}function _0x4052(){const _0x46e57a=['@univerjs/ui','univer-size-4','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','CollaborationEvent','delete','presenter','_unitID','LiveShareController','LIVESHARE_TERMINATE','send','UniverSheetsUi','unsubscribe','Fragment','12cVRLRD','registerComponent','react/jsx-runtime','Subject','current','getUnitId','takeUntil','_startFollowing','getValue','_liveShareService','sheet','operators','_beIdle','add','IUniverInstanceService','LiveShareService','getTypeOfUnitDisposed$','You\x27re\x20not\x20following\x20the\x20presenter','mergeOverrideWithDependencies','assign','tryStartPresenting','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','_uiPartsService','LiveShareIcon','defineProperty','LiveShareStatus','shouldShareOperation','ICommandService','set','DisposableCollection','asObservable','You\x27re\x20presenting\x20the\x20document','DependentOn','117954wkvIqs','@univerjs-pro/collaboration','onStarting','_handleOnline','InsertSheetMutation','has','_injector','executeCommand','UniverLiveSharePlugin','requireSession','complete','toDisposable','colorChannel1','getConfig','Disposable','useDependency','@univerjs-pro/collaboration-client','idSuffix','SessionStatus','default','length','useRef','substring','button','currentColor','IDLE','react','IConfigService','onRendered','setConfig','getMemberID','LiveShareCoordinator','forwardRef','values','_fetchOperations','_reporters','_handleOperation','subscribe','toString','following','text','tag','0\x200\x2017\x2017','Injector','from','clsx','_sharedOperations','dispose','createElement','getLiveShareCoordinatorSync','exports','http://www.w3.org/2000/svg','5618696stLPUj','204ExeLEr','pipe','_entities','rxjs','symbol','getLiveShareCoordinator','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','UniverIcon','Start','div','registerDependencies','_config','function','NOT_FOLLOWING','xlink:href','React','_init','UNIVER_LIVE_SHARE_PLUGIN','UniverSheets','entries','_handleNewChangeSets','idle','not-following','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','then','mask','svg','displayName','_startLiveShareCoordinator','_handleNewHost','attrs','defs','throttleTime','NEW_CHANGESETS','CollaborationSessionService','live-share.config','live-share-icon','sessionStatus$','override','Start\x20following','_presenter','_univerInstanceService','type','_startPresenting','data','presenting','getCurrentTypeOfUnit$','getInitialStates','LIVESHARE_OPERATION','status$','getTypeOfUnitAdded$','_configService','_status$','37490FoEZjI','Inject','get','42LHrpTE','UniverProCollaboration','BuiltInUIPart','SetWorksheetActiveOperation','evenodd','replace','parseProtocolChangeset','Present\x20this\x20document','event$','You\x27are\x20offline.','10dppwOk','_commandService','SetScrollOperation','startFollowing','CommandType','onCommandExecuted','getOwnPropertyDescriptor','url(#$1','stopPresenting','params','UniverCollaborationClientPlugin','UniverDesign','LIVESHARE_REQUEST_HOST','Stop\x20following','Button','forEach','mutations','3592281OeSsrJ','object','@univerjs/core','SAME_OPERATION_SHARE_INTERVAL','merge','_collabSession','Module','FOLLOWING','jsxs','_mountLiveShare','map','IUIPartsService','LIVESHARE_NEW_HOST','34xthsFG','RxDisposable','OFFLINE','next','HEADER_MENU','includes','@univerjs/design','174660eZLHwG','UNIVER_UNKNOWN','path','useState','40160LFfBUu','jsx','_handleOffline','dispose$','reverse','children','_stopPresenting','LIVESHARE_FETCH_OPERATIONS','registerSharedOperation','_handleTerminate','stringify','useEffect','UniverCore','UniverInstanceType','_commandDisposable','LiveShare','4781367AShDde','_stopFollowing','fill','createInstance','stopFollowing','1em','rxjs/operators','univer-mb-3\x20univer-w-full\x20univer-text-sm','clear','getStatus','univerjs-icon\x20univerjs-icon-','_collabSessionService','offline','touchDependencies','UNIVER_SHEET','_status','DesktopLiveShareController','PRESENTING','init'];_0x4052=function(){return _0x46e57a;};return _0x4052();}(function(_0x57d463,_0x32093e){const _0x19ff1e=_0x26be,_0x17ecf2=_0x57d463();while(!![]){try{const _0x55fea0=parseInt(_0x19ff1e(0x1b3))/0x1*(-parseInt(_0x19ff1e(0x1de))/0x2)+-parseInt(_0x19ff1e(0x26f))/0x3*(-parseInt(_0x19ff1e(0x1e9))/0x4)+parseInt(_0x19ff1e(0x1e5))/0x5+-parseInt(_0x19ff1e(0x23a))/0x6*(-parseInt(_0x19ff1e(0x1b6))/0x7)+-parseInt(_0x19ff1e(0x26e))/0x8+-parseInt(_0x19ff1e(0x1f9))/0x9*(-parseInt(_0x19ff1e(0x1c0))/0xa)+-parseInt(_0x19ff1e(0x1d1))/0xb*(-parseInt(_0x19ff1e(0x219))/0xc);if(_0x55fea0===_0x32093e)break;else _0x17ecf2['push'](_0x17ecf2['shift']());}catch(_0x1590f7){_0x17ecf2['push'](_0x17ecf2['shift']());}}}(_0x4052,0x565ed),function(_0x316cfc,_0x1de4c1){const _0xa0b79=_0x26be;typeof exports==_0xa0b79(0x1d2)&&typeof module<'u'?_0x1de4c1(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==_0xa0b79(0x27b)&&define['amd']?define([_0xa0b79(0x26c),_0xa0b79(0x1d3),_0xa0b79(0x20c),_0xa0b79(0x21b),_0xa0b79(0x1e4),_0xa0b79(0x254),_0xa0b79(0x23b),_0xa0b79(0x24a),'@univerjs/sheets','rxjs',_0xa0b79(0x1ff),'@univerjs/sheets-ui'],_0x1de4c1):(_0x316cfc=typeof globalThis<'u'?globalThis:_0x316cfc||self,_0x1de4c1(_0x316cfc['UniverProLiveShare']={},_0x316cfc[_0xa0b79(0x1f5)],_0x316cfc['UniverUi'],_0x316cfc[_0xa0b79(0x27e)],_0x316cfc[_0xa0b79(0x1cb)],_0x316cfc['React'],_0x316cfc[_0xa0b79(0x1b7)],_0x316cfc['UniverProCollaborationClient'],_0x316cfc[_0xa0b79(0x281)],_0x316cfc[_0xa0b79(0x272)],_0x316cfc[_0xa0b79(0x272)][_0xa0b79(0x224)],_0x316cfc[_0xa0b79(0x216)]));}(this,function(_0x13d81c,_0x1d786e,_0xf1bd4c,_0x35cb2b,_0x446433,_0x8c7f55,_0x1fca55,_0xc0c90e,_0x15e0c1,_0x321dc8,_0x3c765f,_0x2dd477){'use strict';const _0x2a0c15=_0x26be;var _0x353feb=Object[_0x2a0c15(0x231)],_0x4329df=(_0x161b67,_0x262591,_0x303180)=>_0x262591 in _0x161b67?_0x353feb(_0x161b67,_0x262591,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x303180}):_0x161b67[_0x262591]=_0x303180,_0x2a87fc=(_0xcc9999,_0x3e28d2,_0x58ab3b)=>_0x4329df(_0xcc9999,typeof _0x3e28d2!=_0x2a0c15(0x273)?_0x3e28d2+'':_0x3e28d2,_0x58ab3b);function _0x22604d({ref:_0x4f3e07,..._0x2c8da8}){const _0x1695fe=_0x2a0c15,{icon:_0x46a881,id:_0x5867dd,className:_0x35be50,extend:_0x273420,..._0xbd261a}=_0x2c8da8,_0x1f06f7=(_0x1695fe(0x203)+_0x5867dd+'\x20'+(_0x35be50||''))['trim'](),_0x9d07b7=_0x8c7f55[_0x1695fe(0x24f)]('_'+_0x3c5743());return _0x90bea2(_0x46a881,''+_0x5867dd,{'defIds':_0x46a881['defIds'],'idSuffix':_0x9d07b7[_0x1695fe(0x21d)]},{'ref':_0x4f3e07,'className':_0x1f06f7,..._0xbd261a},_0x273420);}function _0x90bea2(_0x30bc8f,_0x56229b,_0x453a5c,_0xa94e2e,_0x11cf72){const _0x2d280f=_0x2a0c15;return _0x8c7f55[_0x2d280f(0x26a)](_0x30bc8f[_0x2d280f(0x263)],{'key':_0x56229b,..._0x43c647(_0x30bc8f,_0x453a5c,_0x11cf72),..._0xa94e2e},(_0x4c2eb6(_0x30bc8f,_0x453a5c)['children']||[])[_0x2d280f(0x1db)]((_0x20041d,_0x1fe60c)=>_0x90bea2(_0x20041d,_0x56229b+'-'+_0x30bc8f['tag']+'-'+_0x1fe60c,_0x453a5c,void 0x0,_0x11cf72)));}function _0x43c647(_0x589de6,_0x3bcca6,_0x47b444){const _0x4ac327=_0x2a0c15,_0x25405d={..._0x589de6['attrs']};_0x47b444!=null&&_0x47b444[_0x4ac327(0x246)]&&_0x25405d[_0x4ac327(0x1fb)]===_0x4ac327(0x246)&&(_0x25405d['fill']=_0x47b444['colorChannel1']),_0x589de6[_0x4ac327(0x263)]===_0x4ac327(0x288)&&_0x25405d['id']&&(_0x25405d['id']=_0x25405d['id']+_0x3bcca6[_0x4ac327(0x24b)]),Object[_0x4ac327(0x282)](_0x25405d)['forEach'](([_0x5c59b4,_0x5a4200])=>{const _0x448a27=_0x4ac327;_0x5c59b4==='mask'&&typeof _0x5a4200=='string'&&(_0x25405d[_0x5c59b4]=_0x5a4200['replace'](/url\(#(.*)\)/,_0x448a27(0x1c7)+_0x3bcca6['idSuffix']+')'));});const {defIds:_0x427f75}=_0x3bcca6;return!_0x427f75||_0x427f75[_0x4ac327(0x24e)]===0x0||(_0x589de6['tag']==='use'&&_0x25405d[_0x4ac327(0x27d)]&&(_0x25405d[_0x4ac327(0x27d)]=_0x25405d[_0x4ac327(0x27d)]+_0x3bcca6[_0x4ac327(0x24b)]),Object[_0x4ac327(0x282)](_0x25405d)[_0x4ac327(0x1cf)](([_0x2d58fd,_0x1267cb])=>{const _0x4aaf62=_0x4ac327;typeof _0x1267cb=='string'&&(_0x25405d[_0x2d58fd]=_0x1267cb[_0x4aaf62(0x1bb)](/url\(#(.*)\)/,_0x4aaf62(0x1c7)+_0x3bcca6[_0x4aaf62(0x24b)]+')'));})),_0x25405d;}function _0x4c2eb6(_0x29adf2,_0x58a08c){const _0x520c23=_0x2a0c15;var _0x8ae63c;const {defIds:_0x5c6099}=_0x58a08c;return!_0x5c6099||_0x5c6099[_0x520c23(0x24e)]===0x0?_0x29adf2:_0x29adf2[_0x520c23(0x263)]===_0x520c23(0x28e)&&((_0x8ae63c=_0x29adf2[_0x520c23(0x1ee)])!=null&&_0x8ae63c[_0x520c23(0x24e)])?{..._0x29adf2,'children':_0x29adf2[_0x520c23(0x1ee)][_0x520c23(0x1db)](_0x378434=>typeof _0x378434[_0x520c23(0x28d)]['id']=='string'&&_0x5c6099&&_0x5c6099[_0x520c23(0x1e3)](_0x378434['attrs']['id'])?{..._0x378434,'attrs':{..._0x378434[_0x520c23(0x28d)],'id':_0x378434[_0x520c23(0x28d)]['id']+_0x58a08c[_0x520c23(0x24b)]}}:_0x378434)}:_0x29adf2;}function _0x3c5743(){const _0x445d50=_0x2a0c15;return Math['random']()[_0x445d50(0x260)](0x24)[_0x445d50(0x250)](0x2,0x8);}_0x22604d[_0x2a0c15(0x28a)]=_0x2a0c15(0x276);const _0xa31d67={'tag':_0x2a0c15(0x289),'attrs':{'xmlns':_0x2a0c15(0x26d),'fill':'none','viewBox':_0x2a0c15(0x264),'width':_0x2a0c15(0x1fe),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x2a0c15(0x252),'d':_0x2a0c15(0x22e)}},{'tag':_0x2a0c15(0x1e7),'attrs':{'fill':'currentColor','d':_0x2a0c15(0x20e),'fillRule':_0x2a0c15(0x1ba),'clipRule':'evenodd'}}]},_0x54d1c5=_0x8c7f55[_0x2a0c15(0x25a)](function(_0x13eb99,_0x1aa48a){const _0x3f0261=_0x2a0c15;return _0x8c7f55['createElement'](_0x22604d,Object[_0x3f0261(0x22c)]({},_0x13eb99,{'id':_0x3f0261(0x293),'ref':_0x1aa48a,'icon':_0xa31d67}));});_0x54d1c5[_0x2a0c15(0x28a)]=_0x2a0c15(0x230);class _0x46fbca extends _0x1d786e[_0x2a0c15(0x248)]{constructor(){const _0x40eba5=_0x2a0c15;super(...arguments),_0x2a87fc(this,_0x40eba5(0x268),new Set()),_0x2a87fc(this,_0x40eba5(0x25d),new Set());}['registerSharedOperation'](_0x36c987){const _0x4f4717=_0x2a0c15;return this['_sharedOperations'][_0x4f4717(0x226)](_0x36c987),_0x1d786e[_0x4f4717(0x245)](()=>this['_sharedOperations']['delete'](_0x36c987));}['registerInitialStateReporter'](_0xe85188){const _0x215b37=_0x2a0c15;return this[_0x215b37(0x25d)][_0x215b37(0x226)](_0xe85188),_0x1d786e[_0x215b37(0x245)](()=>this[_0x215b37(0x25d)][_0x215b37(0x210)](_0xe85188));}[_0x2a0c15(0x233)](_0x5ed5e0){const _0x23785a=_0x2a0c15;return this[_0x23785a(0x268)][_0x23785a(0x23f)](_0x5ed5e0);}[_0x2a0c15(0x1ad)](_0x55df76){const _0x3696cc=_0x2a0c15;return Array[_0x3696cc(0x266)](this[_0x3696cc(0x25d)])[_0x3696cc(0x1db)](_0x2ee763=>_0x2ee763(_0x55df76));}}var _0x358647=Object[_0x2a0c15(0x1c6)],_0x28ac43=(_0x11622e,_0x3bef8c,_0xb46b36,_0x547b4a)=>{const _0x4fb9ee=_0x2a0c15;for(var _0x4e36a0=_0x547b4a>0x1?void 0x0:_0x547b4a?_0x358647(_0x3bef8c,_0xb46b36):_0x3bef8c,_0x1fc924=_0x11622e[_0x4fb9ee(0x24e)]-0x1,_0x5711e4;_0x1fc924>=0x0;_0x1fc924--)(_0x5711e4=_0x11622e[_0x1fc924])&&(_0x4e36a0=_0x5711e4(_0x4e36a0)||_0x4e36a0);return _0x4e36a0;},_0x2dac69=(_0x248e24,_0x3c62e5)=>(_0xd6baa6,_0x159396)=>_0x3c62e5(_0xd6baa6,_0x159396,_0x248e24);_0x13d81c[_0x2a0c15(0x213)]=class extends _0x1d786e[_0x2a0c15(0x1df)]{constructor(_0x14022f,_0x2c4fd6,_0x477bfc){const _0x4e8239=_0x2a0c15;super(),_0x2a87fc(this,'_entities',new Map()),(this[_0x4e8239(0x1a7)]=_0x14022f,this[_0x4e8239(0x240)]=_0x2c4fd6,this[_0x4e8239(0x204)]=_0x477bfc,this[_0x4e8239(0x27f)]());}async[_0x2a0c15(0x274)](_0x30175e){const _0x5b09ae=_0x2a0c15;return this[_0x5b09ae(0x271)][_0x5b09ae(0x23f)](_0x30175e)||await this[_0x5b09ae(0x28b)](_0x30175e),this[_0x5b09ae(0x271)][_0x5b09ae(0x1b5)](_0x30175e);}[_0x2a0c15(0x26b)](_0x29ef99){const _0xbcd3ef=_0x2a0c15;var _0x2cd477;return(_0x2cd477=this[_0xbcd3ef(0x271)][_0xbcd3ef(0x1b5)](_0x29ef99))!=null?_0x2cd477:null;}['_init'](){const _0x21f1ff=_0x2a0c15;this[_0x21f1ff(0x1a7)][_0x21f1ff(0x1b0)](_0x1d786e[_0x21f1ff(0x1f6)][_0x21f1ff(0x207)])[_0x21f1ff(0x270)](_0x3c765f[_0x21f1ff(0x21f)](this[_0x21f1ff(0x1ec)]))[_0x21f1ff(0x25f)](async _0x2de74f=>{const _0x5f567e=_0x21f1ff,_0x70080f=_0x2de74f[_0x5f567e(0x21e)]();this[_0x5f567e(0x271)][_0x5f567e(0x23f)](_0x70080f)||this[_0x5f567e(0x28b)](_0x70080f);}),this[_0x21f1ff(0x1a7)][_0x21f1ff(0x229)](_0x1d786e[_0x21f1ff(0x1f6)][_0x21f1ff(0x207)])[_0x21f1ff(0x270)](_0x3c765f['takeUntil'](this[_0x21f1ff(0x1ec)]))[_0x21f1ff(0x25f)](_0x18d737=>{const _0x33811d=_0x21f1ff,_0x310136=_0x18d737['getUnitId'](),_0x343ad6=this[_0x33811d(0x271)][_0x33811d(0x1b5)](_0x310136);_0x343ad6==null||_0x343ad6['dispose']();});}async[_0x2a0c15(0x28b)](_0x15a94f){const _0x5cdaed=_0x2a0c15,_0x3fb1e6=await this[_0x5cdaed(0x204)][_0x5cdaed(0x243)](_0x15a94f),_0x5e285e=this[_0x5cdaed(0x240)][_0x5cdaed(0x1fc)](_0x13d81c[_0x5cdaed(0x259)],_0x15a94f,_0x3fb1e6);return _0x5e285e[_0x5cdaed(0x20b)](),this[_0x5cdaed(0x271)][_0x5cdaed(0x235)](_0x15a94f,_0x5e285e),_0x5e285e;}},_0x13d81c[_0x2a0c15(0x213)]=_0x28ac43([_0x2dac69(0x0,_0x1d786e[_0x2a0c15(0x227)]),_0x2dac69(0x1,_0x1d786e[_0x2a0c15(0x1b4)](_0x1d786e[_0x2a0c15(0x265)])),_0x2dac69(0x2,_0x1d786e[_0x2a0c15(0x1b4)](_0xc0c90e[_0x2a0c15(0x291)]))],_0x13d81c[_0x2a0c15(0x213)]);var _0x70cee6=(_0x428f7d=>(_0x428f7d[_0x2a0c15(0x1e0)]='offline',_0x428f7d[_0x2a0c15(0x253)]=_0x2a0c15(0x284),_0x428f7d[_0x2a0c15(0x1d8)]=_0x2a0c15(0x261),_0x428f7d[_0x2a0c15(0x27c)]=_0x2a0c15(0x285),_0x428f7d[_0x2a0c15(0x20a)]=_0x2a0c15(0x1ab),_0x428f7d))(_0x70cee6||{});const _0x643444=_0x2a0c15(0x1d4),_0x5e1e7e=0xc8;_0x13d81c[_0x2a0c15(0x259)]=class extends _0x1d786e[_0x2a0c15(0x1df)]{constructor(_0x47066f,_0xb9394e,_0x17f695,_0x5aaedf,_0x1a6a89){const _0x3a2ec6=_0x2a0c15;super(),_0x2a87fc(this,'_status$',new _0x321dc8['BehaviorSubject'](_0x3a2ec6(0x284))),_0x2a87fc(this,_0x3a2ec6(0x1af),this['_status$'][_0x3a2ec6(0x237)]()),_0x2a87fc(this,'_init',!0x1),_0x2a87fc(this,_0x3a2ec6(0x1f7),null),_0x2a87fc(this,_0x3a2ec6(0x1a6),null),(this[_0x3a2ec6(0x212)]=_0x47066f,this[_0x3a2ec6(0x1d6)]=_0xb9394e,this[_0x3a2ec6(0x1b1)]=_0x17f695,this['_liveShareService']=_0x5aaedf,this[_0x3a2ec6(0x1c1)]=_0x1a6a89);}get[_0x2a0c15(0x208)](){const _0x474bc6=_0x2a0c15;return this[_0x474bc6(0x1b2)][_0x474bc6(0x221)]();}['dispose'](){const _0x24acf0=_0x2a0c15;var _0x2265b8;(_0x2265b8=this[_0x24acf0(0x1f7)])==null||_0x2265b8[_0x24acf0(0x269)](),this[_0x24acf0(0x1b2)][_0x24acf0(0x1e1)](_0x24acf0(0x284)),this[_0x24acf0(0x1b2)][_0x24acf0(0x244)]();}[_0x2a0c15(0x202)](){const _0x44f95f=_0x2a0c15;return this[_0x44f95f(0x208)];}[_0x2a0c15(0x20b)](){const _0x2d93ea=_0x2a0c15;this[_0x2d93ea(0x27f)]||(this['_init']=!0x0,this[_0x2d93ea(0x1d6)][_0x2d93ea(0x1a3)]['pipe'](_0x3c765f['takeUntil'](this[_0x2d93ea(0x1ec)]))[_0x2d93ea(0x25f)](_0x5c0c4b=>{const _0x3bd6fb=_0x2d93ea;switch(_0x5c0c4b){case _0xc0c90e[_0x3bd6fb(0x24c)][_0x3bd6fb(0x1e0)]:this[_0x3bd6fb(0x1eb)]();break;case _0xc0c90e[_0x3bd6fb(0x24c)]['ONLINE']:this[_0x3bd6fb(0x23d)]();break;}}),this['_collabSession'][_0x2d93ea(0x1be)][_0x2d93ea(0x270)](_0x3c765f[_0x2d93ea(0x21f)](this[_0x2d93ea(0x1ec)]))[_0x2d93ea(0x25f)](_0x5081db=>{const _0x43ba68=_0x2d93ea,{eventID:_0x65b0a6}=_0x5081db;switch(_0x65b0a6){case _0x1fca55['CollaborationEvent'][_0x43ba68(0x1dd)]:this[_0x43ba68(0x28c)](_0x5081db);break;case _0x1fca55['CollaborationEvent'][_0x43ba68(0x1ae)]:this[_0x43ba68(0x25e)](_0x5081db);break;case _0x1fca55[_0x43ba68(0x20f)][_0x43ba68(0x214)]:this['_handleTerminate']();break;case _0x1fca55['CollaborationEvent'][_0x43ba68(0x290)]:this[_0x43ba68(0x283)](_0x5081db);break;}}));}[_0x2a0c15(0x22d)](){const _0x37f708=_0x2a0c15;this['_collabSession'][_0x37f708(0x215)]({'eventID':_0x1fca55[_0x37f708(0x20f)][_0x37f708(0x1cc)],'data':{'unitID':this[_0x37f708(0x212)],'userID':this[_0x37f708(0x1d6)][_0x37f708(0x258)]()}},this[_0x37f708(0x212)]);}[_0x2a0c15(0x1c8)](){const _0x21e68c=_0x2a0c15;this[_0x21e68c(0x208)]===_0x21e68c(0x1ab)&&(this[_0x21e68c(0x1b2)][_0x21e68c(0x1e1)](_0x21e68c(0x284)),this[_0x21e68c(0x1d6)][_0x21e68c(0x215)]({'eventID':_0x1fca55[_0x21e68c(0x20f)][_0x21e68c(0x214)],'data':{'unitID':this['_unitID']}},this[_0x21e68c(0x212)]));}[_0x2a0c15(0x1c3)](){const _0x12d261=_0x2a0c15;this['_status']===_0x12d261(0x285)&&(this[_0x12d261(0x1b2)]['next']('following'),this[_0x12d261(0x220)]());}[_0x2a0c15(0x1fd)](){const _0x5a821a=_0x2a0c15;this['_status']===_0x5a821a(0x261)&&this['_stopFollowing']();}['_handleNewHost'](_0x780630){const _0x107a6a=_0x2a0c15,{presenter:_0x4aade3}=_0x780630[_0x107a6a(0x1aa)],_0x34190b=this['_collabSession'][_0x107a6a(0x258)]();this[_0x107a6a(0x1a6)]=_0x4aade3,_0x4aade3===_0x34190b?(this['_stopFollowing'](),this[_0x107a6a(0x1a9)]()):this['_status']!==_0x107a6a(0x285)&&(this[_0x107a6a(0x1ef)](),this[_0x107a6a(0x220)]());}[_0x2a0c15(0x25c)](){const _0x417804=_0x2a0c15,_0x372c54={'eventID':_0x1fca55['CollaborationEvent'][_0x417804(0x1f0)]};this[_0x417804(0x1d6)][_0x417804(0x215)](_0x372c54,this[_0x417804(0x212)]);}[_0x2a0c15(0x1f2)](){const _0x3e7076=_0x2a0c15;this[_0x3e7076(0x1a6)]=null,this[_0x3e7076(0x208)]!==_0x3e7076(0x1ab)&&this[_0x3e7076(0x225)]();}[_0x2a0c15(0x283)](_0x5e56ac){const _0x47b453=_0x2a0c15;if(this[_0x47b453(0x208)]===_0x47b453(0x261)&&this[_0x47b453(0x1a6)]===_0x5e56ac[_0x47b453(0x1aa)]['memberID']){const _0x1c4dbc=_0x1fca55[_0x47b453(0x1bc)](_0x5e56ac[_0x47b453(0x1aa)])[_0x47b453(0x1d0)][_0x47b453(0x1ed)]()['find'](_0x4ddc54=>_0x4ddc54['id']===_0x15e0c1[_0x47b453(0x23e)]['id']);if(_0x1c4dbc){const _0x38e7da=_0x1c4dbc[_0x47b453(0x1c9)]['unitId'],_0x2c80bb=_0x1c4dbc['params'][_0x47b453(0x223)]['id'];setTimeout(()=>{const _0x14bea8=_0x47b453;this[_0x14bea8(0x1c1)][_0x14bea8(0x241)](_0x15e0c1['SetWorksheetActiveOperation']['id'],{'unitId':_0x38e7da,'subUnitId':_0x2c80bb},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x1ed31a=_0x2a0c15;this[_0x1ed31a(0x1b2)][_0x1ed31a(0x1e1)]('presenting');const _0x381218=new Map(),_0xdee7ef=this['_commandDisposable']=new _0x1d786e[(_0x1ed31a(0x236))]();_0xdee7ef[_0x1ed31a(0x226)](_0x1d786e[_0x1ed31a(0x245)](()=>{const _0x4583db=_0x1ed31a;_0x381218[_0x4583db(0x1cf)](_0x589092=>_0x589092[_0x4583db(0x244)]()),_0x381218[_0x4583db(0x201)]();})),_0xdee7ef[_0x1ed31a(0x226)](this[_0x1ed31a(0x1c1)][_0x1ed31a(0x1c5)](_0x4f9b0c=>{const _0x2d1815=_0x1ed31a;var _0x2ca498;if(_0x4f9b0c[_0x2d1815(0x1a8)]!==_0x1d786e[_0x2d1815(0x1c4)]['OPERATION']||!this[_0x2d1815(0x222)][_0x2d1815(0x233)](_0x4f9b0c['id']))return;const {id:_0xfad404}=_0x4f9b0c;let _0x51fd30;_0x381218['has'](_0xfad404)?_0x51fd30=_0x381218[_0x2d1815(0x1b5)](_0xfad404):(_0x51fd30=new _0x321dc8[(_0x2d1815(0x21c))](),_0x381218[_0x2d1815(0x235)](_0xfad404,_0x51fd30),_0x51fd30[_0x2d1815(0x270)](_0x3c765f[_0x2d1815(0x28f)]((_0x2ca498=this[_0x2d1815(0x1b1)][_0x2d1815(0x247)](_0x643444))!=null?_0x2ca498:_0x5e1e7e,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x71f91a=>{const _0x2015c5=_0x2d1815;this['_collabSession'][_0x2015c5(0x215)]({'eventID':_0x1fca55[_0x2015c5(0x20f)][_0x2015c5(0x1ae)],'data':{'unitID':this[_0x2015c5(0x212)],'operations':{[_0x71f91a['id']]:{'id':_0x71f91a['id'],'params':JSON[_0x2015c5(0x1f3)](_0x71f91a[_0x2015c5(0x1c9)])}}}},this['_unitID']);})),_0x51fd30[_0x2d1815(0x1e1)](_0x4f9b0c);})),this[_0x1ed31a(0x222)][_0x1ed31a(0x1ad)](this[_0x1ed31a(0x212)])[_0x1ed31a(0x1cf)](_0x43dec5=>this['_collabSession'][_0x1ed31a(0x215)]({'eventID':_0x1fca55['CollaborationEvent'][_0x1ed31a(0x1ae)],'data':{'unitID':this[_0x1ed31a(0x212)],'operations':{[_0x43dec5['id']]:{'id':_0x43dec5['id'],'params':JSON[_0x1ed31a(0x1f3)](_0x43dec5[_0x1ed31a(0x1c9)])}}}},this['_unitID']));}[_0x2a0c15(0x1ef)](){const _0x580bf3=_0x2a0c15;var _0x1f9c25;this[_0x580bf3(0x1b2)][_0x580bf3(0x1e1)](_0x580bf3(0x284)),(_0x1f9c25=this['_commandDisposable'])==null||_0x1f9c25[_0x580bf3(0x269)](),this[_0x580bf3(0x1f7)]=null;}[_0x2a0c15(0x220)](){const _0x5b1329=_0x2a0c15;var _0x71e9ca;(_0x71e9ca=this[_0x5b1329(0x1f7)])==null||_0x71e9ca['dispose'](),this[_0x5b1329(0x1b2)][_0x5b1329(0x1e1)]('following');}['_beIdle'](){const _0x511c5f=_0x2a0c15;var _0xf8c16d;this['_status$'][_0x511c5f(0x1e1)](_0x511c5f(0x284)),(_0xf8c16d=this[_0x511c5f(0x1f7)])==null||_0xf8c16d['dispose'](),this[_0x511c5f(0x1f7)]=null;}[_0x2a0c15(0x1fa)](){const _0xb0378a=_0x2a0c15;var _0x18fbf2;this[_0xb0378a(0x1b2)][_0xb0378a(0x1e1)](_0xb0378a(0x285)),(_0x18fbf2=this[_0xb0378a(0x1f7)])==null||_0x18fbf2[_0xb0378a(0x269)]();}['_handleOperation'](_0x14337d){const _0x39ab2e=_0x2a0c15;if([_0x39ab2e(0x1ab),'not-following',_0x39ab2e(0x205)][_0x39ab2e(0x1e3)](this[_0x39ab2e(0x208)])||!_0x14337d[_0x39ab2e(0x1aa)]['presenter']||_0x14337d['data'][_0x39ab2e(0x211)]===this[_0x39ab2e(0x1d6)]['getMemberID']())return;this[_0x39ab2e(0x208)]===_0x39ab2e(0x284)&&this[_0x39ab2e(0x220)]();const _0x46de2b=_0x14337d[_0x39ab2e(0x1aa)]['operations'];Object[_0x39ab2e(0x25b)](_0x46de2b)[_0x39ab2e(0x1cf)](_0x52ec24=>{const _0xe9b51f=_0x39ab2e;this[_0xe9b51f(0x1c1)][_0xe9b51f(0x241)](_0x52ec24['id'],_0x52ec24[_0xe9b51f(0x1c9)]?JSON['parse'](_0x52ec24[_0xe9b51f(0x1c9)]):null,{'fromCollab':!0x0});});}[_0x2a0c15(0x1eb)](){const _0x33e1d4=_0x2a0c15;var _0xffa5f8;this['_status$'][_0x33e1d4(0x1e1)](_0x33e1d4(0x205)),(_0xffa5f8=this[_0x33e1d4(0x1f7)])==null||_0xffa5f8[_0x33e1d4(0x269)]();}['_handleOnline'](){const _0x4f7233=_0x2a0c15;this[_0x4f7233(0x1b2)][_0x4f7233(0x1e1)](_0x4f7233(0x284)),this[_0x4f7233(0x25c)]();}},_0x13d81c[_0x2a0c15(0x259)]=_0x28ac43([_0x2dac69(0x2,_0x1d786e[_0x2a0c15(0x255)]),_0x2dac69(0x3,_0x1d786e[_0x2a0c15(0x1b4)](_0x46fbca)),_0x2dac69(0x4,_0x1d786e[_0x2a0c15(0x234)])],_0x13d81c[_0x2a0c15(0x259)]);function _0xef583f(){const _0x54b932=_0x2a0c15,_0x15bce0=_0xf1bd4c[_0x54b932(0x249)](_0x13d81c[_0x54b932(0x213)]),_0x39586c=_0xf1bd4c['useDependency'](_0x1d786e[_0x54b932(0x227)]),_0x8704a9=_0xf1bd4c['useObservable'](()=>_0x39586c[_0x54b932(0x1ac)](_0x1d786e['UniverInstanceType'][_0x54b932(0x207)]),void 0x0,!0x1,[]),[_0x381fe6,_0x2c4a19]=_0x8c7f55[_0x54b932(0x1e8)](null),[_0x1defb8,_0x386795]=_0x8c7f55[_0x54b932(0x1e8)](_0x70cee6[_0x54b932(0x253)]),_0x3fcd05=_0x8c7f55['useRef'](null);return _0x8c7f55[_0x54b932(0x1f4)](()=>(_0x8704a9&&_0x15bce0[_0x54b932(0x274)](_0x8704a9['getUnitId']())[_0x54b932(0x287)](_0x29abbc=>{const _0x2a6b75=_0x54b932;_0x2c4a19(_0x29abbc),_0x3fcd05[_0x2a6b75(0x21d)]=_0x29abbc['status$']['subscribe'](_0x3e6f76=>{_0x386795(_0x3e6f76);});}),()=>{const _0x314e21=_0x54b932;var _0x428f60;(_0x428f60=_0x3fcd05['current'])==null||_0x428f60[_0x314e21(0x217)](),_0x3fcd05[_0x314e21(0x21d)]=null;}),[_0x8704a9,_0x15bce0]),_0x381fe6?_0x35cb2b[_0x54b932(0x1ea)](_0x446433['Dropdown'],{'align':'end','disabled':_0x1defb8===_0x70cee6[_0x54b932(0x1e0)],'className':_0x54b932(0x286),'overlay':_0x35cb2b['jsx'](_0x3913ab,{'status':_0x1defb8,'coordinator':_0x381fe6}),'children':_0x35cb2b[_0x54b932(0x1ea)](_0x54b932(0x251),{'className':_0x446433[_0x54b932(0x267)](_0x54b932(0x275),{'univer-cursor-not-allowed':_0x1defb8===_0x70cee6['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1defb8!==_0x70cee6[_0x54b932(0x1e0)]}),'type':_0x54b932(0x251),'children':_0x35cb2b[_0x54b932(0x1ea)](_0x54d1c5,{'className':_0x54b932(0x20d)})})}):null;}function _0x3913ab(_0x10eecc){const _0x131ba0=_0x2a0c15,{status:_0x3cccc3,coordinator:_0x3d5195}=_0x10eecc;switch(_0x3cccc3){case _0x70cee6['IDLE']:return _0x35cb2b[_0x131ba0(0x1ea)](_0x1af99f,{'coordinator':_0x3d5195});case _0x70cee6[_0x131ba0(0x1d8)]:return _0x35cb2b[_0x131ba0(0x1ea)](_0x81f35c,{'coordinator':_0x3d5195});case _0x70cee6['NOT_FOLLOWING']:return _0x35cb2b[_0x131ba0(0x1ea)](_0x3777fd,{'coordinator':_0x3d5195});case _0x70cee6[_0x131ba0(0x1e0)]:return _0x35cb2b[_0x131ba0(0x1ea)](_0x391148,{});case _0x70cee6[_0x131ba0(0x20a)]:return _0x35cb2b[_0x131ba0(0x1ea)](_0x2e2d93,{'coordinator':_0x3d5195});default:return null;}}function _0x1af99f(_0x58cfc5){const _0x5bdf5d=_0x2a0c15,{coordinator:_0x4cc052}=_0x58cfc5;return _0x35cb2b[_0x5bdf5d(0x1d9)](_0x35cb2b[_0x5bdf5d(0x218)],{'children':[_0x35cb2b['jsx'](_0x5bdf5d(0x278),{'className':_0x5bdf5d(0x200),'children':_0x5bdf5d(0x1bd)}),_0x35cb2b['jsx'](_0x446433[_0x5bdf5d(0x1ce)],{'onClick':()=>_0x4cc052[_0x5bdf5d(0x22d)](),'children':_0x5bdf5d(0x277)})]});}function _0x81f35c(_0x285ec6){const _0x3c8896=_0x2a0c15,{coordinator:_0x46b516}=_0x285ec6;return _0x35cb2b[_0x3c8896(0x1d9)](_0x35cb2b['Fragment'],{'children':[_0x35cb2b[_0x3c8896(0x1ea)](_0x3c8896(0x278),{'className':_0x3c8896(0x200),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x35cb2b[_0x3c8896(0x1ea)](_0x446433[_0x3c8896(0x1ce)],{'onClick':()=>_0x46b516['stopFollowing'](),'children':_0x3c8896(0x1cd)})]});}function _0x3777fd(_0x48dd43){const _0x5efba6=_0x2a0c15,{coordinator:_0x2cf45f}=_0x48dd43;return _0x35cb2b['jsxs'](_0x35cb2b[_0x5efba6(0x218)],{'children':[_0x35cb2b[_0x5efba6(0x1ea)](_0x5efba6(0x278),{'className':_0x5efba6(0x200),'children':_0x5efba6(0x22a)}),_0x35cb2b[_0x5efba6(0x1ea)](_0x446433[_0x5efba6(0x1ce)],{'variant':_0x5efba6(0x262),'onClick':()=>_0x2cf45f['startFollowing'](),'children':_0x5efba6(0x1a5)})]});}function _0x2e2d93(_0x4471b5){const _0x1fb6f8=_0x2a0c15,{coordinator:_0x5179ba}=_0x4471b5;return _0x35cb2b[_0x1fb6f8(0x1d9)](_0x35cb2b['Fragment'],{'children':[_0x35cb2b[_0x1fb6f8(0x1ea)](_0x1fb6f8(0x278),{'className':_0x1fb6f8(0x200),'children':_0x1fb6f8(0x238)}),_0x35cb2b['jsx'](_0x446433[_0x1fb6f8(0x1ce)],{'variant':_0x1fb6f8(0x24d),'onClick':()=>_0x5179ba[_0x1fb6f8(0x1c8)](),'children':'Stop\x20presenting'})]});}function _0x391148(){const _0x5649b4=_0x2a0c15;return _0x35cb2b['jsx'](_0x35cb2b[_0x5649b4(0x218)],{'children':_0x5649b4(0x1bf)});}var _0xa3449c=Object['getOwnPropertyDescriptor'],_0x1ca773=(_0x373787,_0x53cdf7,_0x52e7ef,_0x5a5548)=>{const _0x1590d7=_0x2a0c15;for(var _0x2be4f5=_0x5a5548>0x1?void 0x0:_0x5a5548?_0xa3449c(_0x53cdf7,_0x52e7ef):_0x53cdf7,_0x1d1467=_0x373787[_0x1590d7(0x24e)]-0x1,_0x3d2629;_0x1d1467>=0x0;_0x1d1467--)(_0x3d2629=_0x373787[_0x1d1467])&&(_0x2be4f5=_0x3d2629(_0x2be4f5)||_0x2be4f5);return _0x2be4f5;},_0x11fd78=(_0x3ba0c6,_0x23f79e)=>(_0xbdf2a1,_0x39d912)=>_0x23f79e(_0xbdf2a1,_0x39d912,_0x3ba0c6);_0x13d81c['DesktopLiveShareController']=class extends _0x1d786e[_0x2a0c15(0x248)]{constructor(_0x3c9be7,_0x2dd18d){const _0x1363d0=_0x2a0c15;super(),this[_0x1363d0(0x240)]=_0x3c9be7,this[_0x1363d0(0x22f)]=_0x2dd18d,this[_0x1363d0(0x1da)]();}['_mountLiveShare'](){const _0x48778f=_0x2a0c15;this['disposeWithMe'](this[_0x48778f(0x22f)][_0x48778f(0x21a)](_0xf1bd4c[_0x48778f(0x1b8)][_0x48778f(0x1e2)],()=>_0xf1bd4c['connectInjector'](_0xef583f,this[_0x48778f(0x240)])));}},_0x13d81c[_0x2a0c15(0x209)]=_0x1ca773([_0x11fd78(0x0,_0x1d786e[_0x2a0c15(0x1b4)](_0x1d786e[_0x2a0c15(0x265)])),_0x11fd78(0x1,_0xf1bd4c[_0x2a0c15(0x1dc)])],_0x13d81c[_0x2a0c15(0x209)]);const _0x5535d6=_0x2a0c15(0x292),_0x5cce89={};var _0x54b9a6=Object[_0x2a0c15(0x1c6)],_0x4ce6ad=(_0x46720d,_0xe500e,_0x39dbaf,_0x4327fd)=>{for(var _0x26bd40=_0x4327fd>0x1?void 0x0:_0x4327fd?_0x54b9a6(_0xe500e,_0x39dbaf):_0xe500e,_0x49d1ea=_0x46720d['length']-0x1,_0x5cf95f;_0x49d1ea>=0x0;_0x49d1ea--)(_0x5cf95f=_0x46720d[_0x49d1ea])&&(_0x26bd40=_0x5cf95f(_0x26bd40)||_0x26bd40);return _0x26bd40;},_0xc2ffa1=(_0xf581ba,_0x43c989)=>(_0x1c353b,_0x3a5dda)=>_0x43c989(_0x1c353b,_0x3a5dda,_0xf581ba);let _0xc7a29a=class extends _0x1d786e[_0x2a0c15(0x248)]{constructor(_0x3e8790){const _0x279cf9=_0x2a0c15;super(),this['_liveShareService']=_0x3e8790,this[_0x279cf9(0x27f)]();}[_0x2a0c15(0x27f)](){const _0x667d63=_0x2a0c15;[_0x2dd477['SetZoomRatioOperation']['id'],_0x2dd477[_0x667d63(0x1c2)]['id'],_0x15e0c1[_0x667d63(0x1b9)]['id']][_0x667d63(0x1cf)](_0x4e9f64=>{const _0x133d6f=_0x667d63;this['disposeWithMe'](this[_0x133d6f(0x222)][_0x133d6f(0x1f1)](_0x4e9f64));});}};_0xc7a29a=_0x4ce6ad([_0xc2ffa1(0x0,_0x1d786e[_0x2a0c15(0x1b4)](_0x46fbca))],_0xc7a29a);var _0x1d5a55=Object[_0x2a0c15(0x231)],_0x50a886=Object['getOwnPropertyDescriptor'],_0x5d7325=(_0x2a2518,_0x5ee9eb,_0x5bcbe8)=>_0x5ee9eb in _0x2a2518?_0x1d5a55(_0x2a2518,_0x5ee9eb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5bcbe8}):_0x2a2518[_0x5ee9eb]=_0x5bcbe8,_0x4174bc=(_0x150226,_0x21b484,_0x2e97f4,_0x26c0e6)=>{for(var _0x40635d=_0x26c0e6>0x1?void 0x0:_0x26c0e6?_0x50a886(_0x21b484,_0x2e97f4):_0x21b484,_0x146c02=_0x150226['length']-0x1,_0xfa26c;_0x146c02>=0x0;_0x146c02--)(_0xfa26c=_0x150226[_0x146c02])&&(_0x40635d=_0xfa26c(_0x40635d)||_0x40635d);return _0x40635d;},_0x491cb3=(_0x108616,_0x3e7059)=>(_0x28cc18,_0x241441)=>_0x3e7059(_0x28cc18,_0x241441,_0x108616),_0x8c5b43=(_0x3b2002,_0x30a267,_0x450631)=>_0x5d7325(_0x3b2002,typeof _0x30a267!=_0x2a0c15(0x273)?_0x30a267+'':_0x30a267,_0x450631);const _0x3b4b49=_0x2a0c15(0x280);_0x13d81c[_0x2a0c15(0x242)]=class extends _0x1d786e['Plugin']{constructor(_0x502160=_0x5cce89,_0x616d46,_0x44857a){const _0x4efc51=_0x2a0c15;super(),this[_0x4efc51(0x27a)]=_0x502160,this['_injector']=_0x616d46,this[_0x4efc51(0x1b1)]=_0x44857a;const {..._0x329833}=_0x1d786e[_0x4efc51(0x1d5)]({},_0x5cce89,this[_0x4efc51(0x27a)]);this[_0x4efc51(0x1b1)][_0x4efc51(0x257)](_0x5535d6,_0x329833);}[_0x2a0c15(0x23c)](){const _0x28d571=_0x2a0c15;_0x1d786e[_0x28d571(0x279)](this['_injector'],_0x1d786e[_0x28d571(0x22b)]([[_0x46fbca],[_0x13d81c[_0x28d571(0x213)]],[_0xc7a29a],[_0x13d81c[_0x28d571(0x209)]]],this[_0x28d571(0x27a)][_0x28d571(0x1a4)])),_0x1d786e[_0x28d571(0x206)](this[_0x28d571(0x240)],[[_0xc7a29a]]);}[_0x2a0c15(0x256)](){const _0x1a1cea=_0x2a0c15;_0x1d786e['touchDependencies'](this[_0x1a1cea(0x240)],[[_0x13d81c['DesktopLiveShareController']]]);}},_0x8c5b43(_0x13d81c['UniverLiveSharePlugin'],_0x2a0c15(0x1a8),_0x1d786e[_0x2a0c15(0x1f6)][_0x2a0c15(0x1e6)]),_0x8c5b43(_0x13d81c[_0x2a0c15(0x242)],'pluginName',_0x3b4b49),_0x13d81c['UniverLiveSharePlugin']=_0x4174bc([_0x1d786e[_0x2a0c15(0x239)](_0xc0c90e[_0x2a0c15(0x1ca)]),_0x491cb3(0x1,_0x1d786e[_0x2a0c15(0x1b4)](_0x1d786e['Injector'])),_0x491cb3(0x2,_0x1d786e[_0x2a0c15(0x255)])],_0x13d81c['UniverLiveSharePlugin']),_0x13d81c[_0x2a0c15(0x1f8)]=_0xef583f,_0x13d81c[_0x2a0c15(0x228)]=_0x46fbca,_0x13d81c[_0x2a0c15(0x232)]=_0x70cee6,Object['defineProperty'](_0x13d81c,Symbol['toStringTag'],{'value':_0x2a0c15(0x1d7)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0-nightly.202511151013",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@univerjs/icons": "^1.0.2",
|
|
60
|
-
"@univerjs-pro/collaboration
|
|
61
|
-
"@univerjs/
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/sheets-ui": "0.
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs/
|
|
60
|
+
"@univerjs-pro/collaboration": "0.11.0-nightly.202511151013",
|
|
61
|
+
"@univerjs-pro/collaboration-client": "0.11.0-nightly.202511151013",
|
|
62
|
+
"@univerjs/core": "0.11.0-nightly.202511151013",
|
|
63
|
+
"@univerjs/design": "0.11.0-nightly.202511151013",
|
|
64
|
+
"@univerjs/engine-render": "0.11.0-nightly.202511151013",
|
|
65
|
+
"@univerjs/sheets-ui": "0.11.0-nightly.202511151013",
|
|
66
|
+
"@univerjs/ui": "0.11.0-nightly.202511151013",
|
|
67
|
+
"@univerjs/sheets": "0.11.0-nightly.202511151013"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|
|
@@ -72,9 +72,9 @@
|
|
|
72
72
|
"rxjs": "7.8.2",
|
|
73
73
|
"tailwindcss": "^3.4.17",
|
|
74
74
|
"typescript": "^5.9.3",
|
|
75
|
-
"vite": "^7.
|
|
75
|
+
"vite": "^7.2.2",
|
|
76
76
|
"vitest": "^3.2.4",
|
|
77
|
-
"@univerjs-infra/shared": "0.
|
|
77
|
+
"@univerjs-infra/shared": "0.11.0",
|
|
78
78
|
"@univerjs/protocol": "0.1.47"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|