@univerjs-pro/live-share 0.12.2 → 0.12.3-experimental.20251205-e439e48
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 +12 -12
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x1cd385=_0x2c37;(function(_0xea5460,_0x49cd66){const _0x451369=_0x2c37,_0x4ce71d=_0xea5460();while(!![]){try{const _0x3c9f3e=-parseInt(_0x451369(0x1db))/0x1+parseInt(_0x451369(0x1cf))/0x2+parseInt(_0x451369(0x1da))/0x3+-parseInt(_0x451369(0x1cd))/0x4*(-parseInt(_0x451369(0x1cc))/0x5)+-parseInt(_0x451369(0x1d4))/0x6*(-parseInt(_0x451369(0x1e0))/0x7)+parseInt(_0x451369(0x1e8))/0x8+-parseInt(_0x451369(0x1ea))/0x9*(parseInt(_0x451369(0x1d0))/0xa);if(_0x3c9f3e===_0x49cd66)break;else _0x4ce71d['push'](_0x4ce71d['shift']());}catch(_0x51aa92){_0x4ce71d['push'](_0x4ce71d['shift']());}}}(_0x5002,0x34bf7));function _0x2c37(_0x49cde2,_0x3395e9){_0x49cde2=_0x49cde2-0x1c8;const _0x5002a9=_0x5002();let _0x2c3700=_0x5002a9[_0x49cde2];return _0x2c3700;}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[_0x1cd385(0x1e2)]{[_0x1cd385(0x1d6)](_0x45d9fb,_0x3dd222,_0x3864ad,_0x271fd0,_0x99c133){const _0x1ff341=_0x1cd385,_0x5be3ea=_0x45d9fb[_0x1ff341(0x1ec)](n['LiveShareController']),_0xd2b22=_0x45d9fb['get'](g[_0x1ff341(0x1ed)]),_0x248697=_0x3dd222[_0x1ff341(0x1ce)](),_0x4193d3=_0x3dd222['getActiveSheet'](),_0x39e1f8=_0x5be3ea[_0x1ff341(0x1dd)](_0x248697);(_0x39e1f8==null?void 0x0:_0x39e1f8[_0x1ff341(0x1e3)]())!==n[_0x1ff341(0x1d7)][_0x1ff341(0x1e9)]||(_0x3864ad[_0x1ff341(0x1ef)]()!==_0x4193d3['getSheetId']()&&this[_0x1ff341(0x1e5)][_0x1ff341(0x1e7)](u['SetWorksheetActiveOperation']['id'],{'unitId':_0x248697,'subUnitId':_0x3864ad[_0x1ff341(0x1ef)]()}),!_0xd2b22['getRenderById'](_0x248697))||_0x99c133[_0x1ff341(0x1cb)](f['SetScrollOperation']['id'],{'unitId':_0x3dd222[_0x1ff341(0x1ce)](),'sheetId':_0x3864ad[_0x1ff341(0x1ef)](),'sheetViewStartRow':_0x271fd0[_0x1ff341(0x1e4)],'sheetViewStartColumn':_0x271fd0[_0x1ff341(0x1eb)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x5002(){const _0x5cdc60=['LiveShareStatus','extend','_injector','680250DHFnGT','8884FjBQSZ','getLiveShareStatus','getLiveShareCoordinatorSync','startFollowing','getId','3269RGnYKb','FEnum','FRange','getStatus','startRow','_commandService','stopPresenting','executeCommand','2796136NqEuFu','PRESENTING','107595drRcBE','startColumn','get','IRenderManagerService','LiveShareController','getSheetId','startPresenting','getActiveWorkbook','stopFollowing','syncExecuteCommand','955wfDOxl','6152eAeZTe','getUnitId','374742EvgHOk','860PRcdyV','No\x20active\x20workbook\x20found.','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','FUniver','2514WwYYfO','IDLE','_initialize'];_0x5002=function(){return _0x5cdc60;};return _0x5002();}d[_0x1cd385(0x1e2)]['extend'](w);class C extends a[_0x1cd385(0x1d3)]{[_0x1cd385(0x1dc)](){const _0x1d576a=_0x1cd385;var _0x5a7a1c,_0x3753ed;const _0x521d0a=this[_0x1d576a(0x1d9)][_0x1d576a(0x1ec)](n['LiveShareController']),_0x3e6011=(_0x5a7a1c=this[_0x1d576a(0x1c9)]())==null?void 0x0:_0x5a7a1c[_0x1d576a(0x1df)]();if(!_0x3e6011)throw new Error(_0x1d576a(0x1d1));const _0x59a654=_0x521d0a[_0x1d576a(0x1dd)](_0x3e6011);return(_0x3753ed=_0x59a654==null?void 0x0:_0x59a654[_0x1d576a(0x1e3)]())!=null?_0x3753ed:n[_0x1d576a(0x1d7)][_0x1d576a(0x1d5)];}['startFollowing'](){const _0x423d0c=_0x1cd385;var _0x403dfa;const _0x30d5d9=this[_0x423d0c(0x1d9)][_0x423d0c(0x1ec)](n[_0x423d0c(0x1ee)]),_0x18cd6a=(_0x403dfa=this[_0x423d0c(0x1c9)]())==null?void 0x0:_0x403dfa['getId']();if(!_0x18cd6a)throw new Error('No\x20active\x20workbook\x20found.');const _0x4e8a36=_0x30d5d9['getLiveShareCoordinatorSync'](_0x18cd6a);if(!_0x4e8a36)throw new Error(_0x423d0c(0x1d2));_0x4e8a36[_0x423d0c(0x1de)]();}[_0x1cd385(0x1ca)](){const _0x4ef893=_0x1cd385;var _0x1407da;const _0x4ea651=this[_0x4ef893(0x1d9)][_0x4ef893(0x1ec)](n[_0x4ef893(0x1ee)]),_0x4c5330=(_0x1407da=this['getActiveWorkbook']())==null?void 0x0:_0x1407da[_0x4ef893(0x1df)]();if(!_0x4c5330)throw new Error(_0x4ef893(0x1d1));const _0x58d142=_0x4ea651[_0x4ef893(0x1dd)](_0x4c5330);if(!_0x58d142)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x58d142[_0x4ef893(0x1ca)]();}[_0x1cd385(0x1c8)](){const _0x13e3d7=_0x1cd385;var _0x3e98da;const _0x50c6be=this[_0x13e3d7(0x1d9)][_0x13e3d7(0x1ec)](n[_0x13e3d7(0x1ee)]),_0x151c7b=(_0x3e98da=this['getActiveWorkbook']())==null?void 0x0:_0x3e98da[_0x13e3d7(0x1df)]();if(!_0x151c7b)throw new Error(_0x13e3d7(0x1d1));const _0x11157b=_0x50c6be[_0x13e3d7(0x1dd)](_0x151c7b);if(!_0x11157b)throw new Error(_0x13e3d7(0x1d2));_0x11157b['tryStartPresenting']();}[_0x1cd385(0x1e6)](){const _0x2db0c7=_0x1cd385;var _0x440c08;const _0x45a3f9=this[_0x2db0c7(0x1d9)]['get'](n[_0x2db0c7(0x1ee)]),_0x28da9a=(_0x440c08=this[_0x2db0c7(0x1c9)]())==null?void 0x0:_0x440c08[_0x2db0c7(0x1df)]();if(!_0x28da9a)throw new Error(_0x2db0c7(0x1d1));const _0xa818c=_0x45a3f9[_0x2db0c7(0x1dd)](_0x28da9a);if(!_0xa818c)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xa818c[_0x2db0c7(0x1e6)]();}}a['FUniver'][_0x1cd385(0x1d8)](C);class L extends a[_0x1cd385(0x1e1)]{get['LiveShareStatusEnum'](){const _0x55ba36=_0x1cd385;return n[_0x55ba36(0x1d7)];}}a[_0x1cd385(0x1e1)]['extend'](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x19c1ed=_0x2ce0;(function(_0x10082b,_0x577159){const _0x48a7c1=_0x2ce0,_0xd61210=_0x10082b();while(!![]){try{const _0x25f4cb=-parseInt(_0x48a7c1(0x1b1))/0x1+parseInt(_0x48a7c1(0x139))/0x2*(-parseInt(_0x48a7c1(0x13d))/0x3)+parseInt(_0x48a7c1(0x128))/0x4+-parseInt(_0x48a7c1(0x170))/0x5+-parseInt(_0x48a7c1(0x132))/0x6+-parseInt(_0x48a7c1(0xfb))/0x7+-parseInt(_0x48a7c1(0x138))/0x8*(-parseInt(_0x48a7c1(0xe7))/0x9);if(_0x25f4cb===_0x577159)break;else _0xd61210['push'](_0xd61210['shift']());}catch(_0x559769){_0xd61210['push'](_0xd61210['shift']());}}}(_0xe665,0xb9821));var T=Object['defineProperty'],U=(_0x4e3101,_0x4aa736,_0x283580)=>_0x4aa736 in _0x4e3101?T(_0x4e3101,_0x4aa736,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x283580}):_0x4e3101[_0x4aa736]=_0x283580,_=(_0x2e598,_0x58f20d,_0xbd3373)=>U(_0x2e598,typeof _0x58f20d!='symbol'?_0x58f20d+'':_0x58f20d,_0xbd3373);function _0xe665(){const _0x1d1b79=['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','operations','next','currentColor','useObservable','_status','status$','sessionStatus$','IUIPartsService','SetZoomRatioOperation','_handleTerminate','set','LiveShareCoordinator','BuiltInUIPart','getCurrentTypeOfUnit$','subscribe','PRESENTING','1205332PsxHpi','getTypeOfUnitDisposed$','get','touchDependencies','_collabSessionService','Start\x20following','_startFollowing','createElement','_reporters','OPERATION','4396872anwzRA','_configService','toString','dispose','presenting','_handleOperation','5336QjeTsz','219618ZypTBI','symbol','NOT_FOLLOWING','registerComponent','12eymAEz','stopPresenting','entries','Subject','not-following','path','_univerInstanceService','IUniverInstanceService','Disposable','LiveShareStatus','delete','current','mergeOverrideWithDependencies','HEADER_MENU','LIVESHARE_TERMINATE','LIVESHARE_NEW_HOST','DependentOn','pipe','_startPresenting','univer-size-4','http://www.w3.org/2000/svg','_handleOffline','_stopPresenting','Button','length','executeCommand','none','string','_commandService','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','clsx','getConfig','getTypeOfUnitAdded$','parseProtocolChangeset','button','getStatus','replace','trim','IDLE','add','defs','url(#$1','tryStartPresenting','_init','colorChannel1','_stopFollowing','DesktopLiveShareController','toDisposable','following','offline','SetScrollOperation','5396920OZahyH','getMemberID','useRef','mutations','stringify','params','idSuffix','createInstance','complete','includes','find','div','FOLLOWING','pluginName','toStringTag','evenodd','CollaborationEvent','asObservable','Dropdown','_mountLiveShare','live-share-icon','CollaborationSessionService','Present\x20this\x20document','getLiveShareCoordinator','_commandDisposable','then','has','onRendered','idle','jsxs','Plugin','text','_beIdle','children','svg','UNIVER_LIVE_SHARE_PLUGIN','registerSharedOperation','sheet','You\x27are\x20offline.','displayName','defIds','type','dispose$','data','mask','memberID','Injector','UniverCollaborationClientPlugin','UNIVER_UNKNOWN','SetWorksheetActiveOperation','UniverLiveSharePlugin','_collabSession','map','_startLiveShareCoordinator','setConfig','jsx','Start','getOwnPropertyDescriptor','_handleNewHost','IConfigService','univer-mb-3\x20univer-w-full\x20univer-text-sm','OFFLINE','event$','end','takeUntil','77825iYvRIT','forwardRef','SessionStatus','1em','_fetchOperations','InsertSheetMutation','Stop\x20following','getInitialStates','requireSession','UniverInstanceType','CommandType','LiveShareIcon','startFollowing','live-share.config','_config','_presenter','forEach','DisposableCollection','_unitID','55863lrUVRr','SAME_OPERATION_SHARE_INTERVAL','values','presenter','assign','override','RxDisposable','You\x27re\x20following\x20the\x20presenter','tag','Module','useDependency','_status$','unitId','random','LIVESHARE_OPERATION','from','getValue','stopFollowing','_handleNewChangeSets','disposeWithMe','9466128aPPxXL','useState','fill','LiveShareController','UNIVER_SHEET','_handleOnline','parse','getUnitId','default','clear','You\x27re\x20not\x20following\x20the\x20presenter','reverse','_uiPartsService','NEW_CHANGESETS','LIVESHARE_REQUEST_HOST','send','Inject','_injector','UniverIcon','attrs','_liveShareService','Fragment','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_sharedOperations','_entities','xlink:href','LIVESHARE_FETCH_OPERATIONS','shouldShareOperation'];_0xe665=function(){return _0x1d1b79;};return _0xe665();}Object['defineProperty'](exports,Symbol[_0x19c1ed(0x17e)],{'value':_0x19c1ed(0xf0)});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:_0x21e1bd,..._0x18c60f}){const _0x1b9d3d=_0x19c1ed,{icon:_0x1518b7,id:_0x1cdd82,className:_0x559fc0,extend:_0x2e96e9,..._0x1b551a}=_0x18c60f,_0x42d1e1=('univerjs-icon\x20univerjs-icon-'+_0x1cdd82+'\x20'+(_0x559fc0||''))[_0x1b9d3d(0x162)](),_0xb40d1c=v[_0x1b9d3d(0x172)]('_'+H());return j(_0x1518b7,''+_0x1cdd82,{'defIds':_0x1518b7[_0x1b9d3d(0x198)],'idSuffix':_0xb40d1c[_0x1b9d3d(0x148)]},{'ref':_0x21e1bd,'className':_0x42d1e1,..._0x1b551a},_0x2e96e9);}function j(_0x4c4af5,_0x2a1c47,_0x3018e8,_0x465182,_0x16ccbf){const _0x258294=_0x19c1ed;return v['createElement'](_0x4c4af5[_0x258294(0xef)],{'key':_0x2a1c47,...y(_0x4c4af5,_0x3018e8,_0x16ccbf),..._0x465182},(F(_0x4c4af5,_0x3018e8)[_0x258294(0x191)]||[])['map']((_0x3c8720,_0x594d0d)=>j(_0x3c8720,_0x2a1c47+'-'+_0x4c4af5[_0x258294(0xef)]+'-'+_0x594d0d,_0x3018e8,void 0x0,_0x16ccbf)));}function y(_0x46b8e6,_0x438a4c,_0xdb6ed9){const _0x4b9f8b=_0x19c1ed,_0x14db85={..._0x46b8e6[_0x4b9f8b(0x10e)]};_0xdb6ed9!=null&&_0xdb6ed9[_0x4b9f8b(0x169)]&&_0x14db85[_0x4b9f8b(0xfd)]===_0x4b9f8b(0x169)&&(_0x14db85[_0x4b9f8b(0xfd)]=_0xdb6ed9[_0x4b9f8b(0x169)]),_0x46b8e6[_0x4b9f8b(0xef)]===_0x4b9f8b(0x19c)&&_0x14db85['id']&&(_0x14db85['id']=_0x14db85['id']+_0x438a4c[_0x4b9f8b(0x176)]),Object[_0x4b9f8b(0x13f)](_0x14db85)[_0x4b9f8b(0xe4)](([_0x6df35f,_0xf2e27d])=>{const _0x9d8d3f=_0x4b9f8b;_0x6df35f===_0x9d8d3f(0x19c)&&typeof _0xf2e27d==_0x9d8d3f(0x158)&&(_0x14db85[_0x6df35f]=_0xf2e27d[_0x9d8d3f(0x161)](/url\(#(.*)\)/,_0x9d8d3f(0x166)+_0x438a4c[_0x9d8d3f(0x176)]+')'));});const {defIds:_0x51081c}=_0x438a4c;return!_0x51081c||_0x51081c['length']===0x0||(_0x46b8e6[_0x4b9f8b(0xef)]==='use'&&_0x14db85['xlink:href']&&(_0x14db85[_0x4b9f8b(0x114)]=_0x14db85[_0x4b9f8b(0x114)]+_0x438a4c[_0x4b9f8b(0x176)]),Object[_0x4b9f8b(0x13f)](_0x14db85)[_0x4b9f8b(0xe4)](([_0x17da11,_0x12497f])=>{const _0x2ce099=_0x4b9f8b;typeof _0x12497f==_0x2ce099(0x158)&&(_0x14db85[_0x17da11]=_0x12497f[_0x2ce099(0x161)](/url\(#(.*)\)/,_0x2ce099(0x166)+_0x438a4c['idSuffix']+')'));})),_0x14db85;}function F(_0x2371d4,_0xe95394){const _0x37d473=_0x19c1ed;var _0x99d3a;const {defIds:_0x1a64ec}=_0xe95394;return!_0x1a64ec||_0x1a64ec[_0x37d473(0x155)]===0x0?_0x2371d4:_0x2371d4[_0x37d473(0xef)]===_0x37d473(0x165)&&((_0x99d3a=_0x2371d4[_0x37d473(0x191)])!=null&&_0x99d3a[_0x37d473(0x155)])?{..._0x2371d4,'children':_0x2371d4[_0x37d473(0x191)]['map'](_0x1e8835=>typeof _0x1e8835['attrs']['id']==_0x37d473(0x158)&&_0x1a64ec&&_0x1a64ec[_0x37d473(0x179)](_0x1e8835[_0x37d473(0x10e)]['id'])?{..._0x1e8835,'attrs':{..._0x1e8835[_0x37d473(0x10e)],'id':_0x1e8835['attrs']['id']+_0xe95394[_0x37d473(0x176)]}}:_0x1e8835)}:_0x2371d4;}function H(){const _0x67e9c1=_0x19c1ed;return Math[_0x67e9c1(0xf4)]()[_0x67e9c1(0x134)](0x24)['substring'](0x2,0x8);}x['displayName']=_0x19c1ed(0x10d);const V={'tag':_0x19c1ed(0x192),'attrs':{'xmlns':_0x19c1ed(0x151),'fill':_0x19c1ed(0x157),'viewBox':'0\x200\x2017\x2017','width':_0x19c1ed(0x1b4),'height':_0x19c1ed(0x1b4)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x19c1ed(0x142),'attrs':{'fill':_0x19c1ed(0x11a),'d':_0x19c1ed(0x117),'fillRule':_0x19c1ed(0x17f),'clipRule':'evenodd'}}]},R=v[_0x19c1ed(0x1b2)](function(_0x8e8ffa,_0x1e02ef){const _0x169dbc=_0x19c1ed;return v[_0x169dbc(0x12f)](x,Object[_0x169dbc(0xeb)]({},_0x8e8ffa,{'id':_0x169dbc(0x184),'ref':_0x1e02ef,'icon':V}));});R[_0x19c1ed(0x197)]=_0x19c1ed(0xdf);class E extends o[_0x19c1ed(0x145)]{constructor(){const _0x4c96ba=_0x19c1ed;super(...arguments),_(this,'_sharedOperations',new Set()),_(this,_0x4c96ba(0x130),new Set());}[_0x19c1ed(0x194)](_0x47a896){const _0x10fa41=_0x19c1ed;return this['_sharedOperations'][_0x10fa41(0x164)](_0x47a896),o['toDisposable'](()=>this[_0x10fa41(0x112)][_0x10fa41(0x147)](_0x47a896));}['registerInitialStateReporter'](_0xaa77ac){const _0x285af7=_0x19c1ed;return this[_0x285af7(0x130)][_0x285af7(0x164)](_0xaa77ac),o[_0x285af7(0x16c)](()=>this[_0x285af7(0x130)][_0x285af7(0x147)](_0xaa77ac));}[_0x19c1ed(0x116)](_0x911cdb){const _0x49967a=_0x19c1ed;return this[_0x49967a(0x112)][_0x49967a(0x18a)](_0x911cdb);}[_0x19c1ed(0x1b8)](_0x4c2ebb){const _0x24c047=_0x19c1ed;return Array[_0x24c047(0xf6)](this[_0x24c047(0x130)])[_0x24c047(0x1a4)](_0x282feb=>_0x282feb(_0x4c2ebb));}}var M=Object[_0x19c1ed(0x1a9)],P=(_0x9d9e20,_0xd7bb20,_0x5e28e8,_0x52bd18)=>{const _0xb10128=_0x19c1ed;for(var _0x5504c3=_0x52bd18>0x1?void 0x0:_0x52bd18?M(_0xd7bb20,_0x5e28e8):_0xd7bb20,_0x190f03=_0x9d9e20[_0xb10128(0x155)]-0x1,_0x2c99b9;_0x190f03>=0x0;_0x190f03--)(_0x2c99b9=_0x9d9e20[_0x190f03])&&(_0x5504c3=_0x2c99b9(_0x5504c3)||_0x5504c3);return _0x5504c3;},S=(_0x197ee3,_0x3e8a1a)=>(_0xf5f769,_0x4948ef)=>_0x3e8a1a(_0xf5f769,_0x4948ef,_0x197ee3);exports[_0x19c1ed(0xfe)]=class extends o[_0x19c1ed(0xed)]{constructor(_0x37cb9c,_0x2c3ea0,_0x33e671){const _0x34f550=_0x19c1ed;super(),_(this,_0x34f550(0x113),new Map()),(this['_univerInstanceService']=_0x37cb9c,this[_0x34f550(0x10c)]=_0x2c3ea0,this[_0x34f550(0x12c)]=_0x33e671,this[_0x34f550(0x168)]());}async['getLiveShareCoordinator'](_0x1af079){const _0x182571=_0x19c1ed;return this[_0x182571(0x113)][_0x182571(0x18a)](_0x1af079)||await this['_startLiveShareCoordinator'](_0x1af079),this[_0x182571(0x113)][_0x182571(0x12a)](_0x1af079);}['getLiveShareCoordinatorSync'](_0x1914f0){const _0x319beb=_0x19c1ed;var _0x4d1638;return(_0x4d1638=this[_0x319beb(0x113)][_0x319beb(0x12a)](_0x1914f0))!=null?_0x4d1638:null;}[_0x19c1ed(0x168)](){const _0x4b5ec0=_0x19c1ed;this[_0x4b5ec0(0x143)][_0x4b5ec0(0x15d)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x4b5ec0(0x14e)](I[_0x4b5ec0(0x1b0)](this[_0x4b5ec0(0x19a)]))[_0x4b5ec0(0x126)](async _0xfc6849=>{const _0x4a8f21=_0x4b5ec0,_0x164d8b=_0xfc6849[_0x4a8f21(0x102)]();this['_entities']['has'](_0x164d8b)||this['_startLiveShareCoordinator'](_0x164d8b);}),this['_univerInstanceService'][_0x4b5ec0(0x129)](o['UniverInstanceType'][_0x4b5ec0(0xff)])[_0x4b5ec0(0x14e)](I[_0x4b5ec0(0x1b0)](this[_0x4b5ec0(0x19a)]))[_0x4b5ec0(0x126)](_0x311758=>{const _0x27e6de=_0x4b5ec0,_0x29d3bb=_0x311758[_0x27e6de(0x102)](),_0x1a41c1=this[_0x27e6de(0x113)][_0x27e6de(0x12a)](_0x29d3bb);_0x1a41c1==null||_0x1a41c1[_0x27e6de(0x135)]();});}async[_0x19c1ed(0x1a5)](_0x500af9){const _0x292b83=_0x19c1ed,_0x306a6f=await this[_0x292b83(0x12c)][_0x292b83(0x1b9)](_0x500af9),_0x1c18a1=this[_0x292b83(0x10c)][_0x292b83(0x177)](exports['LiveShareCoordinator'],_0x500af9,_0x306a6f);return _0x1c18a1['init'](),this[_0x292b83(0x113)]['set'](_0x500af9,_0x1c18a1),_0x1c18a1;}},exports[_0x19c1ed(0xfe)]=P([S(0x0,o[_0x19c1ed(0x144)]),S(0x1,o[_0x19c1ed(0x10b)](o[_0x19c1ed(0x19e)])),S(0x2,o[_0x19c1ed(0x10b)](b[_0x19c1ed(0x185)]))],exports['LiveShareController']);var u=(_0x1a0e5e=>(_0x1a0e5e[_0x19c1ed(0x1ad)]=_0x19c1ed(0x16e),_0x1a0e5e[_0x19c1ed(0x163)]='idle',_0x1a0e5e[_0x19c1ed(0x17c)]='following',_0x1a0e5e[_0x19c1ed(0x13b)]=_0x19c1ed(0x141),_0x1a0e5e[_0x19c1ed(0x127)]='presenting',_0x1a0e5e))(u||{});const k=_0x19c1ed(0xe8),q=0xc8;exports[_0x19c1ed(0x123)]=class extends o[_0x19c1ed(0xed)]{constructor(_0x5270b1,_0x45305f,_0x1a03cc,_0x10144a,_0x4b059d){const _0x70d380=_0x19c1ed;super(),_(this,_0x70d380(0xf2),new O['BehaviorSubject']('idle')),_(this,_0x70d380(0x11d),this[_0x70d380(0xf2)][_0x70d380(0x181)]()),_(this,'_init',!0x1),_(this,_0x70d380(0x188),null),_(this,_0x70d380(0xe3),null),(this[_0x70d380(0xe6)]=_0x5270b1,this[_0x70d380(0x1a3)]=_0x45305f,this[_0x70d380(0x133)]=_0x1a03cc,this[_0x70d380(0x10f)]=_0x10144a,this['_commandService']=_0x4b059d);}get[_0x19c1ed(0x11c)](){const _0x25ca0f=_0x19c1ed;return this[_0x25ca0f(0xf2)][_0x25ca0f(0xf7)]();}[_0x19c1ed(0x135)](){const _0x1eeebe=_0x19c1ed;var _0x476fde;(_0x476fde=this[_0x1eeebe(0x188)])==null||_0x476fde[_0x1eeebe(0x135)](),this[_0x1eeebe(0xf2)][_0x1eeebe(0x119)](_0x1eeebe(0x18c)),this[_0x1eeebe(0xf2)][_0x1eeebe(0x178)]();}[_0x19c1ed(0x160)](){const _0x581dac=_0x19c1ed;return this[_0x581dac(0x11c)];}['init'](){const _0x21790=_0x19c1ed;this[_0x21790(0x168)]||(this[_0x21790(0x168)]=!0x0,this[_0x21790(0x1a3)][_0x21790(0x11e)][_0x21790(0x14e)](I[_0x21790(0x1b0)](this[_0x21790(0x19a)]))['subscribe'](_0x1bd03b=>{const _0x3d9d66=_0x21790;switch(_0x1bd03b){case b[_0x3d9d66(0x1b3)][_0x3d9d66(0x1ad)]:this[_0x3d9d66(0x152)]();break;case b[_0x3d9d66(0x1b3)]['ONLINE']:this[_0x3d9d66(0x100)]();break;}}),this[_0x21790(0x1a3)][_0x21790(0x1ae)][_0x21790(0x14e)](I[_0x21790(0x1b0)](this['dispose$']))[_0x21790(0x126)](_0x2bec0d=>{const _0x5b2282=_0x21790,{eventID:_0x58fb28}=_0x2bec0d;switch(_0x58fb28){case d[_0x5b2282(0x180)][_0x5b2282(0x14c)]:this[_0x5b2282(0x1aa)](_0x2bec0d);break;case d[_0x5b2282(0x180)][_0x5b2282(0xf5)]:this[_0x5b2282(0x137)](_0x2bec0d);break;case d[_0x5b2282(0x180)][_0x5b2282(0x14b)]:this[_0x5b2282(0x121)]();break;case d['CollaborationEvent'][_0x5b2282(0x108)]:this['_handleNewChangeSets'](_0x2bec0d);break;}}));}[_0x19c1ed(0x167)](){const _0x1a6f0a=_0x19c1ed;this[_0x1a6f0a(0x1a3)][_0x1a6f0a(0x10a)]({'eventID':d[_0x1a6f0a(0x180)][_0x1a6f0a(0x109)],'data':{'unitID':this[_0x1a6f0a(0xe6)],'userID':this[_0x1a6f0a(0x1a3)][_0x1a6f0a(0x171)]()}},this[_0x1a6f0a(0xe6)]);}[_0x19c1ed(0x13e)](){const _0x559b52=_0x19c1ed;this[_0x559b52(0x11c)]==='presenting'&&(this['_status$'][_0x559b52(0x119)]('idle'),this[_0x559b52(0x1a3)]['send']({'eventID':d[_0x559b52(0x180)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x559b52(0xe6)]}},this['_unitID']));}['startFollowing'](){const _0x1662d9=_0x19c1ed;this[_0x1662d9(0x11c)]==='not-following'&&(this[_0x1662d9(0xf2)][_0x1662d9(0x119)](_0x1662d9(0x16d)),this['_startFollowing']());}[_0x19c1ed(0xf8)](){const _0x258c9f=_0x19c1ed;this['_status']===_0x258c9f(0x16d)&&this['_stopFollowing']();}[_0x19c1ed(0x1aa)](_0x1d86da){const _0x37af0c=_0x19c1ed,{presenter:_0x574773}=_0x1d86da['data'],_0x51493b=this[_0x37af0c(0x1a3)]['getMemberID']();this[_0x37af0c(0xe3)]=_0x574773,_0x574773===_0x51493b?(this[_0x37af0c(0x16a)](),this[_0x37af0c(0x14f)]()):this[_0x37af0c(0x11c)]!==_0x37af0c(0x141)&&(this[_0x37af0c(0x153)](),this[_0x37af0c(0x12e)]());}[_0x19c1ed(0x1b5)](){const _0xc94ba1=_0x19c1ed,_0x6669fa={'eventID':d['CollaborationEvent'][_0xc94ba1(0x115)]};this['_collabSession']['send'](_0x6669fa,this[_0xc94ba1(0xe6)]);}[_0x19c1ed(0x121)](){const _0x323bf7=_0x19c1ed;this[_0x323bf7(0xe3)]=null,this[_0x323bf7(0x11c)]!==_0x323bf7(0x136)&&this['_beIdle']();}[_0x19c1ed(0xf9)](_0x5e2d18){const _0x14c498=_0x19c1ed;if(this['_status']===_0x14c498(0x16d)&&this['_presenter']===_0x5e2d18[_0x14c498(0x19b)][_0x14c498(0x19d)]){const _0x36271c=d[_0x14c498(0x15e)](_0x5e2d18[_0x14c498(0x19b)])[_0x14c498(0x173)][_0x14c498(0x106)]()[_0x14c498(0x17a)](_0x46cc3f=>_0x46cc3f['id']===C[_0x14c498(0x1b6)]['id']);if(_0x36271c){const _0x400001=_0x36271c[_0x14c498(0x175)][_0x14c498(0xf3)],_0x48d857=_0x36271c[_0x14c498(0x175)][_0x14c498(0x195)]['id'];setTimeout(()=>{const _0x195a94=_0x14c498;this[_0x195a94(0x159)]['executeCommand'](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x400001,'subUnitId':_0x48d857},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x2d14b3=_0x19c1ed;this[_0x2d14b3(0xf2)][_0x2d14b3(0x119)](_0x2d14b3(0x136));const _0x281921=new Map(),_0x537264=this[_0x2d14b3(0x188)]=new o[(_0x2d14b3(0xe5))]();_0x537264['add'](o['toDisposable'](()=>{const _0x121b54=_0x2d14b3;_0x281921[_0x121b54(0xe4)](_0x45348b=>_0x45348b[_0x121b54(0x178)]()),_0x281921[_0x121b54(0x104)]();})),_0x537264[_0x2d14b3(0x164)](this[_0x2d14b3(0x159)]['onCommandExecuted'](_0xa3349a=>{const _0x2e6ea0=_0x2d14b3;var _0x456b14;if(_0xa3349a['type']!==o[_0x2e6ea0(0xde)][_0x2e6ea0(0x131)]||!this[_0x2e6ea0(0x10f)][_0x2e6ea0(0x116)](_0xa3349a['id']))return;const {id:_0x227312}=_0xa3349a;let _0x3df9c8;_0x281921[_0x2e6ea0(0x18a)](_0x227312)?_0x3df9c8=_0x281921[_0x2e6ea0(0x12a)](_0x227312):(_0x3df9c8=new O[(_0x2e6ea0(0x140))](),_0x281921[_0x2e6ea0(0x122)](_0x227312,_0x3df9c8),_0x3df9c8['pipe'](I['throttleTime']((_0x456b14=this[_0x2e6ea0(0x133)][_0x2e6ea0(0x15c)](k))!=null?_0x456b14:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2e6ea0(0x126)](_0x1a3759=>{const _0x116689=_0x2e6ea0;this[_0x116689(0x1a3)][_0x116689(0x10a)]({'eventID':d[_0x116689(0x180)][_0x116689(0xf5)],'data':{'unitID':this['_unitID'],'operations':{[_0x1a3759['id']]:{'id':_0x1a3759['id'],'params':JSON[_0x116689(0x174)](_0x1a3759['params'])}}}},this['_unitID']);})),_0x3df9c8[_0x2e6ea0(0x119)](_0xa3349a);})),this[_0x2d14b3(0x10f)]['getInitialStates'](this['_unitID'])[_0x2d14b3(0xe4)](_0x4a60c4=>this[_0x2d14b3(0x1a3)][_0x2d14b3(0x10a)]({'eventID':d[_0x2d14b3(0x180)][_0x2d14b3(0xf5)],'data':{'unitID':this[_0x2d14b3(0xe6)],'operations':{[_0x4a60c4['id']]:{'id':_0x4a60c4['id'],'params':JSON[_0x2d14b3(0x174)](_0x4a60c4[_0x2d14b3(0x175)])}}}},this[_0x2d14b3(0xe6)]));}[_0x19c1ed(0x153)](){const _0x541660=_0x19c1ed;var _0x2ba16e;this[_0x541660(0xf2)][_0x541660(0x119)](_0x541660(0x18c)),(_0x2ba16e=this[_0x541660(0x188)])==null||_0x2ba16e[_0x541660(0x135)](),this[_0x541660(0x188)]=null;}[_0x19c1ed(0x12e)](){const _0x4b8816=_0x19c1ed;var _0x308751;(_0x308751=this[_0x4b8816(0x188)])==null||_0x308751[_0x4b8816(0x135)](),this['_status$'][_0x4b8816(0x119)](_0x4b8816(0x16d));}[_0x19c1ed(0x190)](){const _0x1d193c=_0x19c1ed;var _0x34a9c8;this[_0x1d193c(0xf2)]['next']('idle'),(_0x34a9c8=this['_commandDisposable'])==null||_0x34a9c8[_0x1d193c(0x135)](),this[_0x1d193c(0x188)]=null;}[_0x19c1ed(0x16a)](){const _0xe62904=_0x19c1ed;var _0x4a0541;this[_0xe62904(0xf2)][_0xe62904(0x119)](_0xe62904(0x141)),(_0x4a0541=this[_0xe62904(0x188)])==null||_0x4a0541[_0xe62904(0x135)]();}['_handleOperation'](_0x5e588c){const _0x169833=_0x19c1ed;if(['presenting',_0x169833(0x141),'offline']['includes'](this[_0x169833(0x11c)])||!_0x5e588c[_0x169833(0x19b)][_0x169833(0xea)]||_0x5e588c['data'][_0x169833(0xea)]===this[_0x169833(0x1a3)][_0x169833(0x171)]())return;this[_0x169833(0x11c)]===_0x169833(0x18c)&&this[_0x169833(0x12e)]();const _0x2eb00e=_0x5e588c[_0x169833(0x19b)][_0x169833(0x118)];Object[_0x169833(0xe9)](_0x2eb00e)[_0x169833(0xe4)](_0x258eb8=>{const _0x5c950a=_0x169833;this[_0x5c950a(0x159)][_0x5c950a(0x156)](_0x258eb8['id'],_0x258eb8['params']?JSON[_0x5c950a(0x101)](_0x258eb8[_0x5c950a(0x175)]):null,{'fromCollab':!0x0});});}[_0x19c1ed(0x152)](){const _0xd7bd35=_0x19c1ed;var _0x18217e;this[_0xd7bd35(0xf2)][_0xd7bd35(0x119)](_0xd7bd35(0x16e)),(_0x18217e=this[_0xd7bd35(0x188)])==null||_0x18217e['dispose']();}[_0x19c1ed(0x100)](){const _0x1b5195=_0x19c1ed;this[_0x1b5195(0xf2)][_0x1b5195(0x119)](_0x1b5195(0x18c)),this[_0x1b5195(0x1b5)]();}},exports[_0x19c1ed(0x123)]=P([S(0x2,o[_0x19c1ed(0x1ab)]),S(0x3,o['Inject'](E)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function $(){const _0x8fe406=_0x19c1ed,_0xa30536=p['useDependency'](exports[_0x8fe406(0xfe)]),_0x4b9e33=p[_0x8fe406(0xf1)](o[_0x8fe406(0x144)]),_0x1e301b=p[_0x8fe406(0x11b)](()=>_0x4b9e33[_0x8fe406(0x125)](o[_0x8fe406(0xdd)][_0x8fe406(0xff)]),void 0x0,!0x1,[]),[_0x126d3c,_0x3b5c09]=v[_0x8fe406(0xfc)](null),[_0x1d814f,_0x28e255]=v[_0x8fe406(0xfc)](u['IDLE']),_0x4e7c14=v[_0x8fe406(0x172)](null);return v['useEffect'](()=>(_0x1e301b&&_0xa30536[_0x8fe406(0x187)](_0x1e301b['getUnitId']())[_0x8fe406(0x189)](_0x431c78=>{const _0x425734=_0x8fe406;_0x3b5c09(_0x431c78),_0x4e7c14[_0x425734(0x148)]=_0x431c78[_0x425734(0x11d)][_0x425734(0x126)](_0x37c84a=>{_0x28e255(_0x37c84a);});}),()=>{const _0x3cde62=_0x8fe406;var _0x677732;(_0x677732=_0x4e7c14[_0x3cde62(0x148)])==null||_0x677732['unsubscribe'](),_0x4e7c14['current']=null;}),[_0x1e301b,_0xa30536]),_0x126d3c?l[_0x8fe406(0x1a7)](f[_0x8fe406(0x182)],{'align':_0x8fe406(0x1af),'disabled':_0x1d814f===u[_0x8fe406(0x1ad)],'className':_0x8fe406(0x15a),'overlay':l[_0x8fe406(0x1a7)](W,{'status':_0x1d814f,'coordinator':_0x126d3c}),'children':l[_0x8fe406(0x1a7)](_0x8fe406(0x15f),{'className':f[_0x8fe406(0x15b)](_0x8fe406(0x111),{'univer-cursor-not-allowed':_0x1d814f===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1d814f!==u[_0x8fe406(0x1ad)]}),'type':_0x8fe406(0x15f),'children':l[_0x8fe406(0x1a7)](R,{'className':_0x8fe406(0x150)})})}):null;}function _0x2ce0(_0x1f6ce6,_0x366f0a){const _0xe6656a=_0xe665();return _0x2ce0=function(_0x2ce08,_0x197117){_0x2ce08=_0x2ce08-0xdd;let _0x31bc7e=_0xe6656a[_0x2ce08];return _0x31bc7e;},_0x2ce0(_0x1f6ce6,_0x366f0a);}function W(_0x511dd6){const _0x3948e1=_0x19c1ed,{status:_0x244d98,coordinator:_0x2e2e55}=_0x511dd6;switch(_0x244d98){case u[_0x3948e1(0x163)]:return l['jsx'](G,{'coordinator':_0x2e2e55});case u['FOLLOWING']:return l[_0x3948e1(0x1a7)](B,{'coordinator':_0x2e2e55});case u[_0x3948e1(0x13b)]:return l[_0x3948e1(0x1a7)](Y,{'coordinator':_0x2e2e55});case u[_0x3948e1(0x1ad)]:return l[_0x3948e1(0x1a7)](J,{});case u[_0x3948e1(0x127)]:return l[_0x3948e1(0x1a7)](Z,{'coordinator':_0x2e2e55});default:return null;}}function G(_0x275bab){const _0x6f195a=_0x19c1ed,{coordinator:_0x13b9ef}=_0x275bab;return l[_0x6f195a(0x18d)](l['Fragment'],{'children':[l[_0x6f195a(0x1a7)](_0x6f195a(0x17b),{'className':_0x6f195a(0x1ac),'children':_0x6f195a(0x186)}),l[_0x6f195a(0x1a7)](f[_0x6f195a(0x154)],{'onClick':()=>_0x13b9ef[_0x6f195a(0x167)](),'children':_0x6f195a(0x1a8)})]});}function B(_0x583598){const _0x3baf0e=_0x19c1ed,{coordinator:_0x35e97f}=_0x583598;return l['jsxs'](l[_0x3baf0e(0x110)],{'children':[l[_0x3baf0e(0x1a7)](_0x3baf0e(0x17b),{'className':_0x3baf0e(0x1ac),'children':_0x3baf0e(0xee)}),l['jsx'](f[_0x3baf0e(0x154)],{'onClick':()=>_0x35e97f[_0x3baf0e(0xf8)](),'children':_0x3baf0e(0x1b7)})]});}function Y(_0x5c7774){const _0x554094=_0x19c1ed,{coordinator:_0x2bc7e9}=_0x5c7774;return l[_0x554094(0x18d)](l[_0x554094(0x110)],{'children':[l[_0x554094(0x1a7)](_0x554094(0x17b),{'className':_0x554094(0x1ac),'children':_0x554094(0x105)}),l['jsx'](f[_0x554094(0x154)],{'variant':_0x554094(0x18f),'onClick':()=>_0x2bc7e9[_0x554094(0xe0)](),'children':_0x554094(0x12d)})]});}function Z(_0xce33a6){const _0x65fba=_0x19c1ed,{coordinator:_0x4c6e3f}=_0xce33a6;return l[_0x65fba(0x18d)](l[_0x65fba(0x110)],{'children':[l[_0x65fba(0x1a7)]('div',{'className':_0x65fba(0x1ac),'children':'You\x27re\x20presenting\x20the\x20document'}),l['jsx'](f[_0x65fba(0x154)],{'variant':_0x65fba(0x103),'onClick':()=>_0x4c6e3f[_0x65fba(0x13e)](),'children':'Stop\x20presenting'})]});}function J(){const _0x6494aa=_0x19c1ed;return l['jsx'](l[_0x6494aa(0x110)],{'children':_0x6494aa(0x196)});}var K=Object[_0x19c1ed(0x1a9)],z=(_0x2dda87,_0x48a72f,_0x5cfcfc,_0x524a16)=>{const _0x53ab04=_0x19c1ed;for(var _0x4f6ce3=_0x524a16>0x1?void 0x0:_0x524a16?K(_0x48a72f,_0x5cfcfc):_0x48a72f,_0x172061=_0x2dda87[_0x53ab04(0x155)]-0x1,_0x2a3b2a;_0x172061>=0x0;_0x172061--)(_0x2a3b2a=_0x2dda87[_0x172061])&&(_0x4f6ce3=_0x2a3b2a(_0x4f6ce3)||_0x4f6ce3);return _0x4f6ce3;},L=(_0x47ecd7,_0x11766c)=>(_0x171ed4,_0x55ee6f)=>_0x11766c(_0x171ed4,_0x55ee6f,_0x47ecd7);exports['DesktopLiveShareController']=class extends o[_0x19c1ed(0x145)]{constructor(_0x3a0753,_0x2d6a1b){const _0xac6bcc=_0x19c1ed;super(),this[_0xac6bcc(0x10c)]=_0x3a0753,this[_0xac6bcc(0x107)]=_0x2d6a1b,this[_0xac6bcc(0x183)]();}[_0x19c1ed(0x183)](){const _0x1ddd1f=_0x19c1ed;this[_0x1ddd1f(0xfa)](this[_0x1ddd1f(0x107)][_0x1ddd1f(0x13c)](p[_0x1ddd1f(0x124)][_0x1ddd1f(0x14a)],()=>p['connectInjector']($,this['_injector'])));}},exports['DesktopLiveShareController']=z([L(0x0,o[_0x19c1ed(0x10b)](o['Injector'])),L(0x1,p[_0x19c1ed(0x11f)])],exports[_0x19c1ed(0x16b)]);const Q=_0x19c1ed(0xe1),w={};var X=Object[_0x19c1ed(0x1a9)],ee=(_0x1098f0,_0x227e5f,_0x4fd060,_0x10b824)=>{for(var _0x3bb3ec=_0x10b824>0x1?void 0x0:_0x10b824?X(_0x227e5f,_0x4fd060):_0x227e5f,_0x5cc1aa=_0x1098f0['length']-0x1,_0x3469d1;_0x5cc1aa>=0x0;_0x5cc1aa--)(_0x3469d1=_0x1098f0[_0x5cc1aa])&&(_0x3bb3ec=_0x3469d1(_0x3bb3ec)||_0x3bb3ec);return _0x3bb3ec;},te=(_0x28a81d,_0x2acb12)=>(_0x138cdd,_0x3c62da)=>_0x2acb12(_0x138cdd,_0x3c62da,_0x28a81d);let m=class extends o['Disposable']{constructor(_0x47d964){const _0x42fe72=_0x19c1ed;super(),this[_0x42fe72(0x10f)]=_0x47d964,this['_init']();}[_0x19c1ed(0x168)](){const _0x5e5a80=_0x19c1ed;[D[_0x5e5a80(0x120)]['id'],D[_0x5e5a80(0x16f)]['id'],C[_0x5e5a80(0x1a1)]['id']][_0x5e5a80(0xe4)](_0x304690=>{const _0x2acb1d=_0x5e5a80;this[_0x2acb1d(0xfa)](this[_0x2acb1d(0x10f)][_0x2acb1d(0x194)](_0x304690));});}};m=ee([te(0x0,o[_0x19c1ed(0x10b)](E))],m);var ie=Object['defineProperty'],se=Object[_0x19c1ed(0x1a9)],ne=(_0xfdabc1,_0x33a01e,_0x5179aa)=>_0x33a01e in _0xfdabc1?ie(_0xfdabc1,_0x33a01e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5179aa}):_0xfdabc1[_0x33a01e]=_0x5179aa,re=(_0x11b0e4,_0x1832b7,_0x3d6842,_0x36f2e8)=>{const _0x1e6c73=_0x19c1ed;for(var _0x4e10e1=_0x36f2e8>0x1?void 0x0:_0x36f2e8?se(_0x1832b7,_0x3d6842):_0x1832b7,_0x217aed=_0x11b0e4[_0x1e6c73(0x155)]-0x1,_0x49acb2;_0x217aed>=0x0;_0x217aed--)(_0x49acb2=_0x11b0e4[_0x217aed])&&(_0x4e10e1=_0x49acb2(_0x4e10e1)||_0x4e10e1);return _0x4e10e1;},N=(_0x2178a0,_0x5175a9)=>(_0x3b8a2f,_0x351f5f)=>_0x5175a9(_0x3b8a2f,_0x351f5f,_0x2178a0),A=(_0x8e6e9,_0x24d46f,_0x5aec50)=>ne(_0x8e6e9,typeof _0x24d46f!=_0x19c1ed(0x13a)?_0x24d46f+'':_0x24d46f,_0x5aec50);const oe=_0x19c1ed(0x193);exports[_0x19c1ed(0x1a2)]=class extends o[_0x19c1ed(0x18e)]{constructor(_0x245f2c=w,_0x5eef7f,_0x4e0bf0){const _0x4f71fc=_0x19c1ed;super(),this[_0x4f71fc(0xe2)]=_0x245f2c,this[_0x4f71fc(0x10c)]=_0x5eef7f,this[_0x4f71fc(0x133)]=_0x4e0bf0;const {..._0x1f58c1}=o['merge']({},w,this[_0x4f71fc(0xe2)]);this[_0x4f71fc(0x133)][_0x4f71fc(0x1a6)](Q,_0x1f58c1);}['onStarting'](){const _0x4697b9=_0x19c1ed;o['registerDependencies'](this['_injector'],o[_0x4697b9(0x149)]([[E],[exports[_0x4697b9(0xfe)]],[m],[exports[_0x4697b9(0x16b)]]],this[_0x4697b9(0xe2)][_0x4697b9(0xec)])),o[_0x4697b9(0x12b)](this[_0x4697b9(0x10c)],[[m]]);}[_0x19c1ed(0x18b)](){const _0x12eab6=_0x19c1ed;o[_0x12eab6(0x12b)](this[_0x12eab6(0x10c)],[[exports[_0x12eab6(0x16b)]]]);}},A(exports[_0x19c1ed(0x1a2)],_0x19c1ed(0x199),o['UniverInstanceType'][_0x19c1ed(0x1a0)]),A(exports[_0x19c1ed(0x1a2)],_0x19c1ed(0x17d),oe),exports[_0x19c1ed(0x1a2)]=re([o[_0x19c1ed(0x14d)](b[_0x19c1ed(0x19f)]),N(0x1,o[_0x19c1ed(0x10b)](o[_0x19c1ed(0x19e)])),N(0x2,o[_0x19c1ed(0x1ab)])],exports['UniverLiveSharePlugin']),exports['LiveShare']=$,exports['LiveShareService']=E,exports[_0x19c1ed(0x146)]=u;
|
|
1
|
+
'use strict';const _0x5374fb=_0x167c;(function(_0x5e4bd3,_0x3a57a3){const _0x559e65=_0x167c,_0x462d99=_0x5e4bd3();while(!![]){try{const _0x1c25b0=-parseInt(_0x559e65(0x2a9))/0x1*(parseInt(_0x559e65(0x240))/0x2)+-parseInt(_0x559e65(0x2af))/0x3*(parseInt(_0x559e65(0x20f))/0x4)+-parseInt(_0x559e65(0x21b))/0x5*(-parseInt(_0x559e65(0x1ea))/0x6)+-parseInt(_0x559e65(0x29c))/0x7+-parseInt(_0x559e65(0x1ee))/0x8*(parseInt(_0x559e65(0x2bc))/0x9)+parseInt(_0x559e65(0x298))/0xa*(parseInt(_0x559e65(0x28e))/0xb)+parseInt(_0x559e65(0x232))/0xc;if(_0x1c25b0===_0x3a57a3)break;else _0x462d99['push'](_0x462d99['shift']());}catch(_0x11797c){_0x462d99['push'](_0x462d99['shift']());}}}(_0x3263,0xab004));var T=Object[_0x5374fb(0x1e9)],U=(_0x33bc01,_0x193297,_0x44ba37)=>_0x193297 in _0x33bc01?T(_0x33bc01,_0x193297,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x44ba37}):_0x33bc01[_0x193297]=_0x44ba37,_=(_0x4f62f6,_0x2eeee7,_0x2937e2)=>U(_0x4f62f6,typeof _0x2eeee7!=_0x5374fb(0x1f9)?_0x2eeee7+'':_0x2eeee7,_0x2937e2);function _0x3263(){const _0x43d2b7=['_uiPartsService','length','executeCommand','registerInitialStateReporter','tag','parse','onStarting','useState','_entities','1337188Wwlurv','DependentOn','UniverLiveSharePlugin','set','override','SetScrollOperation','_handleTerminate','LIVESHARE_TERMINATE','Plugin','dispose','text','Module','2592545MWcXWT','_univerInstanceService','UNIVER_SHEET','useObservable','init','colorChannel1','getValue','xlink:href','pipe','CollaborationSessionService','toStringTag','NEW_CHANGESETS','entries','presenting','send','event$','div','_handleOffline','_handleOnline','OFFLINE','Subject','IDLE','_startLiveShareCoordinator','21666252gMMbzT','getUnitId','parseProtocolChangeset','get','disposeWithMe','univer-mb-3\x20univer-w-full\x20univer-text-sm','complete','status$','getMemberID','svg','SAME_OPERATION_SHARE_INTERVAL','path','_beIdle','throttleTime','19932rgXrGA','FOLLOWING','PRESENTING','idSuffix','none','RxDisposable','getInitialStates','_liveShareService','subscribe','idle','startFollowing','IConfigService','jsxs','_configService','next','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','pluginName','end','jsx','_collabSessionService','getLiveShareCoordinator','Dropdown','attrs','from','type','HEADER_MENU','CommandType','Inject','toString','following','tryStartPresenting','IUniverInstanceService','getOwnPropertyDescriptor','You\x27re\x20presenting\x20the\x20document','CollaborationEvent','Stop\x20presenting','forEach','params','_mountLiveShare','offline','stopPresenting','forwardRef','data','_status$','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','LiveShareStatus','unsubscribe','SetZoomRatioOperation','useDependency','BuiltInUIPart','SetWorksheetActiveOperation','Button','defs','currentColor','Start\x20following','operations','dispose$','_startFollowing','requireSession','use','_commandService','shouldShareOperation','LIVESHARE_OPERATION','sheet','random','LiveShare','stopFollowing','0\x200\x2017\x2017','LIVESHARE_REQUEST_HOST','registerSharedOperation','assign','LiveShareService','Injector','getCurrentTypeOfUnit$','current','registerComponent','has','_stopFollowing','121ULRbTf','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','evenodd','LiveShareCoordinator','_handleNewChangeSets','NOT_FOLLOWING','toDisposable','LiveShareIcon','1em','createElement','279950hwXIUw','IUIPartsService','sessionStatus$','_collabSession','3031448KEgYMK','setConfig','mask','getTypeOfUnitDisposed$','includes','connectInjector','asObservable','SessionStatus','not-following','onRendered','useRef','_unitID','_presenter','13qDxjiw','string','url(#$1','InsertSheetMutation','_status','map','9YSgLNa','getTypeOfUnitAdded$','live-share.config','Fragment','_config','clear','defIds','UniverInstanceType','live-share-icon','children','You\x27re\x20following\x20the\x20presenter','_commandDisposable','http://www.w3.org/2000/svg','1647189exbxxY','then','stringify','You\x27re\x20not\x20following\x20the\x20presenter','add','_startPresenting','createInstance','delete','LiveShareController','defineProperty','6IDzGDd','_handleOperation','OPERATION','univerjs-icon\x20univerjs-icon-','16ZwlwSq','_injector','button','_init','univer-size-4','_fetchOperations','_stopPresenting','UniverCollaborationClientPlugin','DisposableCollection','LIVESHARE_FETCH_OPERATIONS','DesktopLiveShareController','symbol','presenter','onCommandExecuted','mergeOverrideWithDependencies','_handleNewHost','displayName','replace','touchDependencies','_reporters','_sharedOperations','takeUntil','UNIVER_UNKNOWN','Disposable'];_0x3263=function(){return _0x43d2b7;};return _0x3263();}Object[_0x5374fb(0x1e9)](exports,Symbol[_0x5374fb(0x225)],{'value':_0x5374fb(0x21a)});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:_0x1d44d4,..._0x4d3c23}){const _0x175839=_0x5374fb,{icon:_0x3f29f0,id:_0xafd0d5,className:_0x15fef4,extend:_0x4c4d59,..._0x2e3d20}=_0x4d3c23,_0x5652f1=(_0x175839(0x1ed)+_0xafd0d5+'\x20'+(_0x15fef4||''))['trim'](),_0x8fc57b=v[_0x175839(0x2a6)]('_'+H());return j(_0x3f29f0,''+_0xafd0d5,{'defIds':_0x3f29f0[_0x175839(0x2b5)],'idSuffix':_0x8fc57b[_0x175839(0x28a)]},{'ref':_0x1d44d4,'className':_0x5652f1,..._0x2e3d20},_0x4c4d59);}function j(_0x5dd6f0,_0x540cbd,_0x76778a,_0x25baa6,_0x4e5794){const _0x427670=_0x5374fb;return v[_0x427670(0x297)](_0x5dd6f0['tag'],{'key':_0x540cbd,...y(_0x5dd6f0,_0x76778a,_0x4e5794),..._0x25baa6},(F(_0x5dd6f0,_0x76778a)[_0x427670(0x2b8)]||[])[_0x427670(0x2ae)]((_0x310710,_0x46ea7f)=>j(_0x310710,_0x540cbd+'-'+_0x5dd6f0[_0x427670(0x20a)]+'-'+_0x46ea7f,_0x76778a,void 0x0,_0x4e5794)));}function y(_0x160fb6,_0x43e3b7,_0x54e4f9){const _0x3a4ee2=_0x5374fb,_0x2a279f={..._0x160fb6[_0x3a4ee2(0x256)]};_0x54e4f9!=null&&_0x54e4f9[_0x3a4ee2(0x220)]&&_0x2a279f['fill']===_0x3a4ee2(0x220)&&(_0x2a279f['fill']=_0x54e4f9['colorChannel1']),_0x160fb6[_0x3a4ee2(0x20a)]===_0x3a4ee2(0x29e)&&_0x2a279f['id']&&(_0x2a279f['id']=_0x2a279f['id']+_0x43e3b7[_0x3a4ee2(0x243)]),Object[_0x3a4ee2(0x227)](_0x2a279f)[_0x3a4ee2(0x264)](([_0x3f927f,_0x51c057])=>{const _0x4e080c=_0x3a4ee2;_0x3f927f===_0x4e080c(0x29e)&&typeof _0x51c057=='string'&&(_0x2a279f[_0x3f927f]=_0x51c057[_0x4e080c(0x1ff)](/url\(#(.*)\)/,_0x4e080c(0x2ab)+_0x43e3b7['idSuffix']+')'));});const {defIds:_0x15f9fb}=_0x43e3b7;return!_0x15f9fb||_0x15f9fb[_0x3a4ee2(0x207)]===0x0||(_0x160fb6['tag']===_0x3a4ee2(0x27b)&&_0x2a279f['xlink:href']&&(_0x2a279f[_0x3a4ee2(0x222)]=_0x2a279f['xlink:href']+_0x43e3b7[_0x3a4ee2(0x243)]),Object[_0x3a4ee2(0x227)](_0x2a279f)[_0x3a4ee2(0x264)](([_0x1faa38,_0x5dedae])=>{const _0x35f593=_0x3a4ee2;typeof _0x5dedae==_0x35f593(0x2aa)&&(_0x2a279f[_0x1faa38]=_0x5dedae[_0x35f593(0x1ff)](/url\(#(.*)\)/,_0x35f593(0x2ab)+_0x43e3b7[_0x35f593(0x243)]+')'));})),_0x2a279f;}function F(_0x42b811,_0x379009){const _0x564df0=_0x5374fb;var _0x558caf;const {defIds:_0x5a5816}=_0x379009;return!_0x5a5816||_0x5a5816[_0x564df0(0x207)]===0x0?_0x42b811:_0x42b811[_0x564df0(0x20a)]===_0x564df0(0x274)&&((_0x558caf=_0x42b811['children'])!=null&&_0x558caf['length'])?{..._0x42b811,'children':_0x42b811['children'][_0x564df0(0x2ae)](_0x1d2334=>typeof _0x1d2334[_0x564df0(0x256)]['id']==_0x564df0(0x2aa)&&_0x5a5816&&_0x5a5816[_0x564df0(0x2a0)](_0x1d2334[_0x564df0(0x256)]['id'])?{..._0x1d2334,'attrs':{..._0x1d2334['attrs'],'id':_0x1d2334[_0x564df0(0x256)]['id']+_0x379009[_0x564df0(0x243)]}}:_0x1d2334)}:_0x42b811;}function H(){const _0x43d225=_0x5374fb;return Math[_0x43d225(0x280)]()[_0x43d225(0x25c)](0x24)['substring'](0x2,0x8);}x[_0x5374fb(0x1fe)]='UniverIcon';const V={'tag':_0x5374fb(0x23b),'attrs':{'xmlns':_0x5374fb(0x2bb),'fill':_0x5374fb(0x244),'viewBox':_0x5374fb(0x283),'width':'1em','height':_0x5374fb(0x296)},'children':[{'tag':_0x5374fb(0x23d),'attrs':{'fill':_0x5374fb(0x275),'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':_0x5374fb(0x23d),'attrs':{'fill':_0x5374fb(0x275),'d':_0x5374fb(0x24f),'fillRule':_0x5374fb(0x290),'clipRule':'evenodd'}}]},R=v[_0x5374fb(0x269)](function(_0x403669,_0x4c4ea1){const _0x1cf6da=_0x5374fb;return v[_0x1cf6da(0x297)](x,Object[_0x1cf6da(0x286)]({},_0x403669,{'id':_0x1cf6da(0x2b7),'ref':_0x4c4ea1,'icon':V}));});R[_0x5374fb(0x1fe)]=_0x5374fb(0x295);class E extends o[_0x5374fb(0x205)]{constructor(){const _0x264842=_0x5374fb;super(...arguments),_(this,_0x264842(0x202),new Set()),_(this,_0x264842(0x201),new Set());}[_0x5374fb(0x285)](_0x25f17e){const _0x587b3e=_0x5374fb;return this['_sharedOperations'][_0x587b3e(0x2c0)](_0x25f17e),o[_0x587b3e(0x294)](()=>this[_0x587b3e(0x202)][_0x587b3e(0x1e7)](_0x25f17e));}[_0x5374fb(0x209)](_0x281a06){const _0x241b7f=_0x5374fb;return this[_0x241b7f(0x201)][_0x241b7f(0x2c0)](_0x281a06),o[_0x241b7f(0x294)](()=>this[_0x241b7f(0x201)]['delete'](_0x281a06));}['shouldShareOperation'](_0x40ecef){const _0x19c303=_0x5374fb;return this[_0x19c303(0x202)]['has'](_0x40ecef);}[_0x5374fb(0x246)](_0x5c83e5){const _0x127bc0=_0x5374fb;return Array[_0x127bc0(0x257)](this[_0x127bc0(0x201)])[_0x127bc0(0x2ae)](_0x306a9b=>_0x306a9b(_0x5c83e5));}}var M=Object[_0x5374fb(0x260)],P=(_0x39069b,_0x11f9d4,_0x5b92e2,_0x1600a0)=>{const _0x1fa69f=_0x5374fb;for(var _0x3b7e77=_0x1600a0>0x1?void 0x0:_0x1600a0?M(_0x11f9d4,_0x5b92e2):_0x11f9d4,_0x22dc14=_0x39069b[_0x1fa69f(0x207)]-0x1,_0x7c4ae7;_0x22dc14>=0x0;_0x22dc14--)(_0x7c4ae7=_0x39069b[_0x22dc14])&&(_0x3b7e77=_0x7c4ae7(_0x3b7e77)||_0x3b7e77);return _0x3b7e77;},S=(_0x4f9a82,_0x49caee)=>(_0x5a5ef2,_0x21bf1d)=>_0x49caee(_0x5a5ef2,_0x21bf1d,_0x4f9a82);exports[_0x5374fb(0x1e8)]=class extends o[_0x5374fb(0x245)]{constructor(_0x1a27c1,_0x4dad97,_0x393a49){const _0x29409a=_0x5374fb;super(),_(this,_0x29409a(0x20e),new Map()),(this[_0x29409a(0x21c)]=_0x1a27c1,this['_injector']=_0x4dad97,this[_0x29409a(0x253)]=_0x393a49,this['_init']());}async[_0x5374fb(0x254)](_0x32694e){const _0xbf5660=_0x5374fb;return this[_0xbf5660(0x20e)]['has'](_0x32694e)||await this['_startLiveShareCoordinator'](_0x32694e),this[_0xbf5660(0x20e)][_0xbf5660(0x235)](_0x32694e);}['getLiveShareCoordinatorSync'](_0x315e4e){const _0x45b828=_0x5374fb;var _0x28f146;return(_0x28f146=this[_0x45b828(0x20e)][_0x45b828(0x235)](_0x315e4e))!=null?_0x28f146:null;}[_0x5374fb(0x1f1)](){const _0xaf73e6=_0x5374fb;this[_0xaf73e6(0x21c)][_0xaf73e6(0x2b0)](o[_0xaf73e6(0x2b6)][_0xaf73e6(0x21d)])[_0xaf73e6(0x223)](I[_0xaf73e6(0x203)](this[_0xaf73e6(0x278)]))[_0xaf73e6(0x248)](async _0x1b037f=>{const _0x4a0023=_0xaf73e6,_0xbc9c0f=_0x1b037f[_0x4a0023(0x233)]();this[_0x4a0023(0x20e)]['has'](_0xbc9c0f)||this['_startLiveShareCoordinator'](_0xbc9c0f);}),this[_0xaf73e6(0x21c)][_0xaf73e6(0x29f)](o[_0xaf73e6(0x2b6)][_0xaf73e6(0x21d)])['pipe'](I[_0xaf73e6(0x203)](this[_0xaf73e6(0x278)]))['subscribe'](_0x405a6d=>{const _0x12b2e3=_0xaf73e6,_0x4c439e=_0x405a6d[_0x12b2e3(0x233)](),_0x258a0d=this[_0x12b2e3(0x20e)][_0x12b2e3(0x235)](_0x4c439e);_0x258a0d==null||_0x258a0d[_0x12b2e3(0x218)]();});}async[_0x5374fb(0x231)](_0x2bc13b){const _0x1fcc1f=_0x5374fb,_0xe46b9a=await this[_0x1fcc1f(0x253)][_0x1fcc1f(0x27a)](_0x2bc13b),_0x5d866d=this['_injector'][_0x1fcc1f(0x1e6)](exports['LiveShareCoordinator'],_0x2bc13b,_0xe46b9a);return _0x5d866d[_0x1fcc1f(0x21f)](),this[_0x1fcc1f(0x20e)][_0x1fcc1f(0x212)](_0x2bc13b,_0x5d866d),_0x5d866d;}},exports[_0x5374fb(0x1e8)]=P([S(0x0,o[_0x5374fb(0x25f)]),S(0x1,o[_0x5374fb(0x25b)](o['Injector'])),S(0x2,o[_0x5374fb(0x25b)](b[_0x5374fb(0x224)]))],exports['LiveShareController']);var u=(_0x519ccc=>(_0x519ccc['OFFLINE']=_0x5374fb(0x267),_0x519ccc[_0x5374fb(0x230)]='idle',_0x519ccc[_0x5374fb(0x241)]=_0x5374fb(0x25d),_0x519ccc[_0x5374fb(0x293)]='not-following',_0x519ccc[_0x5374fb(0x242)]=_0x5374fb(0x228),_0x519ccc))(u||{});const k=_0x5374fb(0x23c),q=0xc8;exports[_0x5374fb(0x291)]=class extends o[_0x5374fb(0x245)]{constructor(_0x3e285a,_0xa028cb,_0x2f97b2,_0x579c5a,_0x140d11){const _0x225d0f=_0x5374fb;super(),_(this,_0x225d0f(0x26b),new O['BehaviorSubject'](_0x225d0f(0x249))),_(this,_0x225d0f(0x239),this[_0x225d0f(0x26b)][_0x225d0f(0x2a2)]()),_(this,_0x225d0f(0x1f1),!0x1),_(this,_0x225d0f(0x2ba),null),_(this,'_presenter',null),(this['_unitID']=_0x3e285a,this[_0x225d0f(0x29b)]=_0xa028cb,this['_configService']=_0x2f97b2,this[_0x225d0f(0x247)]=_0x579c5a,this['_commandService']=_0x140d11);}get[_0x5374fb(0x2ad)](){const _0x33ffc1=_0x5374fb;return this[_0x33ffc1(0x26b)][_0x33ffc1(0x221)]();}[_0x5374fb(0x218)](){const _0x4528f9=_0x5374fb;var _0x3cfb8d;(_0x3cfb8d=this[_0x4528f9(0x2ba)])==null||_0x3cfb8d['dispose'](),this[_0x4528f9(0x26b)][_0x4528f9(0x24e)](_0x4528f9(0x249)),this[_0x4528f9(0x26b)][_0x4528f9(0x238)]();}['getStatus'](){const _0x344594=_0x5374fb;return this[_0x344594(0x2ad)];}[_0x5374fb(0x21f)](){const _0x1dab39=_0x5374fb;this['_init']||(this[_0x1dab39(0x1f1)]=!0x0,this['_collabSession'][_0x1dab39(0x29a)][_0x1dab39(0x223)](I[_0x1dab39(0x203)](this['dispose$']))[_0x1dab39(0x248)](_0x4d9d4e=>{const _0x39e000=_0x1dab39;switch(_0x4d9d4e){case b[_0x39e000(0x2a3)][_0x39e000(0x22e)]:this[_0x39e000(0x22c)]();break;case b[_0x39e000(0x2a3)]['ONLINE']:this['_handleOnline']();break;}}),this['_collabSession'][_0x1dab39(0x22a)][_0x1dab39(0x223)](I['takeUntil'](this[_0x1dab39(0x278)]))[_0x1dab39(0x248)](_0xe11919=>{const _0x3efddc=_0x1dab39,{eventID:_0x181c97}=_0xe11919;switch(_0x181c97){case d[_0x3efddc(0x262)]['LIVESHARE_NEW_HOST']:this[_0x3efddc(0x1fd)](_0xe11919);break;case d[_0x3efddc(0x262)][_0x3efddc(0x27e)]:this[_0x3efddc(0x1eb)](_0xe11919);break;case d['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x3efddc(0x215)]();break;case d[_0x3efddc(0x262)][_0x3efddc(0x226)]:this[_0x3efddc(0x292)](_0xe11919);break;}}));}['tryStartPresenting'](){const _0x559e4a=_0x5374fb;this['_collabSession'][_0x559e4a(0x229)]({'eventID':d[_0x559e4a(0x262)][_0x559e4a(0x284)],'data':{'unitID':this['_unitID'],'userID':this[_0x559e4a(0x29b)]['getMemberID']()}},this['_unitID']);}['stopPresenting'](){const _0x577533=_0x5374fb;this['_status']==='presenting'&&(this[_0x577533(0x26b)]['next']('idle'),this[_0x577533(0x29b)][_0x577533(0x229)]({'eventID':d[_0x577533(0x262)][_0x577533(0x216)],'data':{'unitID':this['_unitID']}},this[_0x577533(0x2a7)]));}[_0x5374fb(0x24a)](){const _0x346ea6=_0x5374fb;this['_status']===_0x346ea6(0x2a4)&&(this['_status$'][_0x346ea6(0x24e)]('following'),this[_0x346ea6(0x279)]());}[_0x5374fb(0x282)](){const _0x30f267=_0x5374fb;this[_0x30f267(0x2ad)]==='following'&&this[_0x30f267(0x28d)]();}[_0x5374fb(0x1fd)](_0x44fda5){const _0x48bf58=_0x5374fb,{presenter:_0x908021}=_0x44fda5['data'],_0x328e95=this[_0x48bf58(0x29b)][_0x48bf58(0x23a)]();this[_0x48bf58(0x2a8)]=_0x908021,_0x908021===_0x328e95?(this[_0x48bf58(0x28d)](),this[_0x48bf58(0x1e5)]()):this['_status']!==_0x48bf58(0x2a4)&&(this[_0x48bf58(0x1f4)](),this[_0x48bf58(0x279)]());}[_0x5374fb(0x1f3)](){const _0x493990=_0x5374fb,_0x41f1cc={'eventID':d['CollaborationEvent'][_0x493990(0x1f7)]};this[_0x493990(0x29b)][_0x493990(0x229)](_0x41f1cc,this[_0x493990(0x2a7)]);}[_0x5374fb(0x215)](){const _0x1fd4a4=_0x5374fb;this['_presenter']=null,this['_status']!=='presenting'&&this[_0x1fd4a4(0x23e)]();}[_0x5374fb(0x292)](_0x24f8f1){const _0x3231ea=_0x5374fb;if(this['_status']===_0x3231ea(0x25d)&&this['_presenter']===_0x24f8f1['data']['memberID']){const _0x1443a8=d[_0x3231ea(0x234)](_0x24f8f1[_0x3231ea(0x26a)])['mutations']['reverse']()['find'](_0x1dc626=>_0x1dc626['id']===C[_0x3231ea(0x2ac)]['id']);if(_0x1443a8){const _0x33f4f3=_0x1443a8[_0x3231ea(0x265)]['unitId'],_0x179316=_0x1443a8['params'][_0x3231ea(0x27f)]['id'];setTimeout(()=>{const _0x4169ed=_0x3231ea;this[_0x4169ed(0x27c)][_0x4169ed(0x208)](C[_0x4169ed(0x272)]['id'],{'unitId':_0x33f4f3,'subUnitId':_0x179316},{'fromCollab':!0x0});});}}}[_0x5374fb(0x1e5)](){const _0x1bcbaf=_0x5374fb;this[_0x1bcbaf(0x26b)][_0x1bcbaf(0x24e)]('presenting');const _0x16a058=new Map(),_0x4c0be9=this['_commandDisposable']=new o[(_0x1bcbaf(0x1f6))]();_0x4c0be9[_0x1bcbaf(0x2c0)](o[_0x1bcbaf(0x294)](()=>{const _0x439079=_0x1bcbaf;_0x16a058[_0x439079(0x264)](_0x16e22c=>_0x16e22c[_0x439079(0x238)]()),_0x16a058[_0x439079(0x2b4)]();})),_0x4c0be9['add'](this[_0x1bcbaf(0x27c)][_0x1bcbaf(0x1fb)](_0x5b2fdf=>{const _0x1bda68=_0x1bcbaf;var _0x41145a;if(_0x5b2fdf[_0x1bda68(0x258)]!==o[_0x1bda68(0x25a)][_0x1bda68(0x1ec)]||!this[_0x1bda68(0x247)][_0x1bda68(0x27d)](_0x5b2fdf['id']))return;const {id:_0x16eacc}=_0x5b2fdf;let _0x113aa1;_0x16a058[_0x1bda68(0x28c)](_0x16eacc)?_0x113aa1=_0x16a058[_0x1bda68(0x235)](_0x16eacc):(_0x113aa1=new O[(_0x1bda68(0x22f))](),_0x16a058[_0x1bda68(0x212)](_0x16eacc,_0x113aa1),_0x113aa1[_0x1bda68(0x223)](I[_0x1bda68(0x23f)]((_0x41145a=this[_0x1bda68(0x24d)]['getConfig'](k))!=null?_0x41145a:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4ee529=>{const _0x290f2d=_0x1bda68;this['_collabSession']['send']({'eventID':d[_0x290f2d(0x262)][_0x290f2d(0x27e)],'data':{'unitID':this[_0x290f2d(0x2a7)],'operations':{[_0x4ee529['id']]:{'id':_0x4ee529['id'],'params':JSON[_0x290f2d(0x2be)](_0x4ee529['params'])}}}},this[_0x290f2d(0x2a7)]);})),_0x113aa1[_0x1bda68(0x24e)](_0x5b2fdf);})),this[_0x1bcbaf(0x247)]['getInitialStates'](this[_0x1bcbaf(0x2a7)])[_0x1bcbaf(0x264)](_0x31b7cb=>this[_0x1bcbaf(0x29b)]['send']({'eventID':d['CollaborationEvent'][_0x1bcbaf(0x27e)],'data':{'unitID':this[_0x1bcbaf(0x2a7)],'operations':{[_0x31b7cb['id']]:{'id':_0x31b7cb['id'],'params':JSON[_0x1bcbaf(0x2be)](_0x31b7cb[_0x1bcbaf(0x265)])}}}},this[_0x1bcbaf(0x2a7)]));}[_0x5374fb(0x1f4)](){const _0x444d5a=_0x5374fb;var _0x175ef2;this[_0x444d5a(0x26b)][_0x444d5a(0x24e)](_0x444d5a(0x249)),(_0x175ef2=this[_0x444d5a(0x2ba)])==null||_0x175ef2[_0x444d5a(0x218)](),this['_commandDisposable']=null;}[_0x5374fb(0x279)](){const _0x3a17e1=_0x5374fb;var _0x3d2b02;(_0x3d2b02=this[_0x3a17e1(0x2ba)])==null||_0x3d2b02['dispose'](),this[_0x3a17e1(0x26b)][_0x3a17e1(0x24e)](_0x3a17e1(0x25d));}[_0x5374fb(0x23e)](){const _0x1e5079=_0x5374fb;var _0x51e1a4;this[_0x1e5079(0x26b)][_0x1e5079(0x24e)](_0x1e5079(0x249)),(_0x51e1a4=this[_0x1e5079(0x2ba)])==null||_0x51e1a4[_0x1e5079(0x218)](),this[_0x1e5079(0x2ba)]=null;}[_0x5374fb(0x28d)](){const _0x2bdc01=_0x5374fb;var _0x2fefe0;this['_status$'][_0x2bdc01(0x24e)]('not-following'),(_0x2fefe0=this[_0x2bdc01(0x2ba)])==null||_0x2fefe0[_0x2bdc01(0x218)]();}[_0x5374fb(0x1eb)](_0x79687d){const _0x26ad55=_0x5374fb;if([_0x26ad55(0x228),_0x26ad55(0x2a4),_0x26ad55(0x267)]['includes'](this[_0x26ad55(0x2ad)])||!_0x79687d[_0x26ad55(0x26a)][_0x26ad55(0x1fa)]||_0x79687d['data'][_0x26ad55(0x1fa)]===this[_0x26ad55(0x29b)][_0x26ad55(0x23a)]())return;this[_0x26ad55(0x2ad)]===_0x26ad55(0x249)&&this['_startFollowing']();const _0x521c6e=_0x79687d['data'][_0x26ad55(0x277)];Object['values'](_0x521c6e)['forEach'](_0x246eb0=>{const _0x4dbe63=_0x26ad55;this[_0x4dbe63(0x27c)][_0x4dbe63(0x208)](_0x246eb0['id'],_0x246eb0['params']?JSON[_0x4dbe63(0x20b)](_0x246eb0[_0x4dbe63(0x265)]):null,{'fromCollab':!0x0});});}[_0x5374fb(0x22c)](){const _0x335218=_0x5374fb;var _0x2554a7;this['_status$']['next'](_0x335218(0x267)),(_0x2554a7=this[_0x335218(0x2ba)])==null||_0x2554a7[_0x335218(0x218)]();}[_0x5374fb(0x22d)](){const _0x19116b=_0x5374fb;this[_0x19116b(0x26b)][_0x19116b(0x24e)](_0x19116b(0x249)),this[_0x19116b(0x1f3)]();}},exports[_0x5374fb(0x291)]=P([S(0x2,o['IConfigService']),S(0x3,o['Inject'](E)),S(0x4,o['ICommandService'])],exports[_0x5374fb(0x291)]);function $(){const _0xf4123d=_0x5374fb,_0x203c81=p[_0xf4123d(0x270)](exports[_0xf4123d(0x1e8)]),_0x1a82e3=p[_0xf4123d(0x270)](o[_0xf4123d(0x25f)]),_0x25f3ac=p[_0xf4123d(0x21e)](()=>_0x1a82e3[_0xf4123d(0x289)](o[_0xf4123d(0x2b6)][_0xf4123d(0x21d)]),void 0x0,!0x1,[]),[_0x13343b,_0x4d0297]=v[_0xf4123d(0x20d)](null),[_0x132db0,_0x5958b0]=v[_0xf4123d(0x20d)](u[_0xf4123d(0x230)]),_0x56b83b=v[_0xf4123d(0x2a6)](null);return v['useEffect'](()=>(_0x25f3ac&&_0x203c81[_0xf4123d(0x254)](_0x25f3ac[_0xf4123d(0x233)]())[_0xf4123d(0x2bd)](_0x120da4=>{const _0x550eb7=_0xf4123d;_0x4d0297(_0x120da4),_0x56b83b[_0x550eb7(0x28a)]=_0x120da4['status$'][_0x550eb7(0x248)](_0x922684=>{_0x5958b0(_0x922684);});}),()=>{const _0x481d1e=_0xf4123d;var _0x4234ce;(_0x4234ce=_0x56b83b[_0x481d1e(0x28a)])==null||_0x4234ce[_0x481d1e(0x26e)](),_0x56b83b['current']=null;}),[_0x25f3ac,_0x203c81]),_0x13343b?l[_0xf4123d(0x252)](f[_0xf4123d(0x255)],{'align':_0xf4123d(0x251),'disabled':_0x132db0===u[_0xf4123d(0x22e)],'className':_0xf4123d(0x26c),'overlay':l[_0xf4123d(0x252)](W,{'status':_0x132db0,'coordinator':_0x13343b}),'children':l[_0xf4123d(0x252)](_0xf4123d(0x1f0),{'className':f['clsx'](_0xf4123d(0x28f),{'univer-cursor-not-allowed':_0x132db0===u[_0xf4123d(0x22e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x132db0!==u[_0xf4123d(0x22e)]}),'type':_0xf4123d(0x1f0),'children':l[_0xf4123d(0x252)](R,{'className':_0xf4123d(0x1f2)})})}):null;}function W(_0xf1af40){const _0x4d3424=_0x5374fb,{status:_0x5e6c5b,coordinator:_0x21b9cd}=_0xf1af40;switch(_0x5e6c5b){case u[_0x4d3424(0x230)]:return l[_0x4d3424(0x252)](G,{'coordinator':_0x21b9cd});case u[_0x4d3424(0x241)]:return l[_0x4d3424(0x252)](B,{'coordinator':_0x21b9cd});case u[_0x4d3424(0x293)]:return l[_0x4d3424(0x252)](Y,{'coordinator':_0x21b9cd});case u['OFFLINE']:return l[_0x4d3424(0x252)](J,{});case u[_0x4d3424(0x242)]:return l[_0x4d3424(0x252)](Z,{'coordinator':_0x21b9cd});default:return null;}}function G(_0x1386aa){const _0x142a5c=_0x5374fb,{coordinator:_0x278ce4}=_0x1386aa;return l[_0x142a5c(0x24c)](l[_0x142a5c(0x2b2)],{'children':[l[_0x142a5c(0x252)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),l[_0x142a5c(0x252)](f['Button'],{'onClick':()=>_0x278ce4[_0x142a5c(0x25e)](),'children':'Start'})]});}function B(_0x26c126){const _0x154f3c=_0x5374fb,{coordinator:_0x3519a0}=_0x26c126;return l['jsxs'](l['Fragment'],{'children':[l[_0x154f3c(0x252)](_0x154f3c(0x22b),{'className':_0x154f3c(0x237),'children':_0x154f3c(0x2b9)}),l[_0x154f3c(0x252)](f[_0x154f3c(0x273)],{'onClick':()=>_0x3519a0['stopFollowing'](),'children':'Stop\x20following'})]});}function Y(_0x4e6c35){const _0x35e077=_0x5374fb,{coordinator:_0x19f978}=_0x4e6c35;return l[_0x35e077(0x24c)](l[_0x35e077(0x2b2)],{'children':[l[_0x35e077(0x252)](_0x35e077(0x22b),{'className':_0x35e077(0x237),'children':_0x35e077(0x2bf)}),l[_0x35e077(0x252)](f[_0x35e077(0x273)],{'variant':_0x35e077(0x219),'onClick':()=>_0x19f978[_0x35e077(0x24a)](),'children':_0x35e077(0x276)})]});}function _0x167c(_0x49f489,_0x3c90ec){_0x49f489=_0x49f489-0x1e5;const _0x326338=_0x3263();let _0x167c85=_0x326338[_0x49f489];return _0x167c85;}function Z(_0xf5d959){const _0x675be3=_0x5374fb,{coordinator:_0xf2d920}=_0xf5d959;return l[_0x675be3(0x24c)](l[_0x675be3(0x2b2)],{'children':[l[_0x675be3(0x252)](_0x675be3(0x22b),{'className':_0x675be3(0x237),'children':_0x675be3(0x261)}),l[_0x675be3(0x252)](f[_0x675be3(0x273)],{'variant':'default','onClick':()=>_0xf2d920[_0x675be3(0x268)](),'children':_0x675be3(0x263)})]});}function J(){const _0x33c408=_0x5374fb;return l[_0x33c408(0x252)](l[_0x33c408(0x2b2)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x5374fb(0x260)],z=(_0x2a64aa,_0x47a788,_0x285c54,_0x504216)=>{const _0x54a12d=_0x5374fb;for(var _0x14e9ed=_0x504216>0x1?void 0x0:_0x504216?K(_0x47a788,_0x285c54):_0x47a788,_0x2403cb=_0x2a64aa[_0x54a12d(0x207)]-0x1,_0x13de52;_0x2403cb>=0x0;_0x2403cb--)(_0x13de52=_0x2a64aa[_0x2403cb])&&(_0x14e9ed=_0x13de52(_0x14e9ed)||_0x14e9ed);return _0x14e9ed;},L=(_0x58ee89,_0x26df82)=>(_0x8a6898,_0x392dcd)=>_0x26df82(_0x8a6898,_0x392dcd,_0x58ee89);exports['DesktopLiveShareController']=class extends o[_0x5374fb(0x205)]{constructor(_0x12de5a,_0x29cf79){const _0x16bf40=_0x5374fb;super(),this[_0x16bf40(0x1ef)]=_0x12de5a,this[_0x16bf40(0x206)]=_0x29cf79,this['_mountLiveShare']();}[_0x5374fb(0x266)](){const _0x18485b=_0x5374fb;this[_0x18485b(0x236)](this[_0x18485b(0x206)][_0x18485b(0x28b)](p[_0x18485b(0x271)][_0x18485b(0x259)],()=>p[_0x18485b(0x2a1)]($,this['_injector'])));}},exports[_0x5374fb(0x1f8)]=z([L(0x0,o[_0x5374fb(0x25b)](o[_0x5374fb(0x288)])),L(0x1,p[_0x5374fb(0x299)])],exports[_0x5374fb(0x1f8)]);const Q=_0x5374fb(0x2b1),w={};var X=Object[_0x5374fb(0x260)],ee=(_0xf6a834,_0x5d4444,_0x1086b4,_0x1cce99)=>{for(var _0x34a058=_0x1cce99>0x1?void 0x0:_0x1cce99?X(_0x5d4444,_0x1086b4):_0x5d4444,_0x444c40=_0xf6a834['length']-0x1,_0x98a359;_0x444c40>=0x0;_0x444c40--)(_0x98a359=_0xf6a834[_0x444c40])&&(_0x34a058=_0x98a359(_0x34a058)||_0x34a058);return _0x34a058;},te=(_0xc3473b,_0x4cb935)=>(_0x55c920,_0x3c563f)=>_0x4cb935(_0x55c920,_0x3c563f,_0xc3473b);let m=class extends o[_0x5374fb(0x205)]{constructor(_0x525a58){const _0x31c310=_0x5374fb;super(),this[_0x31c310(0x247)]=_0x525a58,this[_0x31c310(0x1f1)]();}[_0x5374fb(0x1f1)](){const _0x6b6531=_0x5374fb;[D[_0x6b6531(0x26f)]['id'],D[_0x6b6531(0x214)]['id'],C[_0x6b6531(0x272)]['id']][_0x6b6531(0x264)](_0x1bbc57=>{const _0xf9cd1c=_0x6b6531;this[_0xf9cd1c(0x236)](this[_0xf9cd1c(0x247)][_0xf9cd1c(0x285)](_0x1bbc57));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object[_0x5374fb(0x1e9)],se=Object['getOwnPropertyDescriptor'],ne=(_0x36be4a,_0x109ddc,_0x56a259)=>_0x109ddc in _0x36be4a?ie(_0x36be4a,_0x109ddc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56a259}):_0x36be4a[_0x109ddc]=_0x56a259,re=(_0x5ba389,_0x4f5a6a,_0x3a780c,_0x28559e)=>{for(var _0x135825=_0x28559e>0x1?void 0x0:_0x28559e?se(_0x4f5a6a,_0x3a780c):_0x4f5a6a,_0x29ea34=_0x5ba389['length']-0x1,_0x156b9f;_0x29ea34>=0x0;_0x29ea34--)(_0x156b9f=_0x5ba389[_0x29ea34])&&(_0x135825=_0x156b9f(_0x135825)||_0x135825);return _0x135825;},N=(_0x53e38a,_0x4f3870)=>(_0x2c4596,_0x45453a)=>_0x4f3870(_0x2c4596,_0x45453a,_0x53e38a),A=(_0x2bcb58,_0x35bd75,_0x27a055)=>ne(_0x2bcb58,typeof _0x35bd75!=_0x5374fb(0x1f9)?_0x35bd75+'':_0x35bd75,_0x27a055);const oe='UNIVER_LIVE_SHARE_PLUGIN';exports['UniverLiveSharePlugin']=class extends o[_0x5374fb(0x217)]{constructor(_0x415732=w,_0x41550f,_0x33eca2){const _0x4fa630=_0x5374fb;super(),this[_0x4fa630(0x2b3)]=_0x415732,this[_0x4fa630(0x1ef)]=_0x41550f,this[_0x4fa630(0x24d)]=_0x33eca2;const {..._0x4e3afb}=o['merge']({},w,this[_0x4fa630(0x2b3)]);this[_0x4fa630(0x24d)][_0x4fa630(0x29d)](Q,_0x4e3afb);}[_0x5374fb(0x20c)](){const _0x3ebec3=_0x5374fb;o['registerDependencies'](this['_injector'],o[_0x3ebec3(0x1fc)]([[E],[exports[_0x3ebec3(0x1e8)]],[m],[exports[_0x3ebec3(0x1f8)]]],this[_0x3ebec3(0x2b3)][_0x3ebec3(0x213)])),o[_0x3ebec3(0x200)](this[_0x3ebec3(0x1ef)],[[m]]);}[_0x5374fb(0x2a5)](){const _0x4157ce=_0x5374fb;o[_0x4157ce(0x200)](this[_0x4157ce(0x1ef)],[[exports[_0x4157ce(0x1f8)]]]);}},A(exports[_0x5374fb(0x211)],_0x5374fb(0x258),o[_0x5374fb(0x2b6)][_0x5374fb(0x204)]),A(exports[_0x5374fb(0x211)],_0x5374fb(0x250),oe),exports[_0x5374fb(0x211)]=re([o[_0x5374fb(0x210)](b[_0x5374fb(0x1f5)]),N(0x1,o[_0x5374fb(0x25b)](o[_0x5374fb(0x288)])),N(0x2,o[_0x5374fb(0x24b)])],exports[_0x5374fb(0x211)]),exports[_0x5374fb(0x281)]=$,exports[_0x5374fb(0x287)]=E,exports[_0x5374fb(0x26d)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x24166c=_0x3ebb;(function(_0x4bc593,_0x370fc6){const _0x1cbe62=_0x3ebb,_0x846535=_0x4bc593();while(!![]){try{const _0x427d9b=parseInt(_0x1cbe62(0x1ef))/0x1*(-parseInt(_0x1cbe62(0x1de))/0x2)+parseInt(_0x1cbe62(0x1dd))/0x3*(parseInt(_0x1cbe62(0x1f3))/0x4)+parseInt(_0x1cbe62(0x1ed))/0x5+-parseInt(_0x1cbe62(0x1e3))/0x6*(parseInt(_0x1cbe62(0x1e5))/0x7)+parseInt(_0x1cbe62(0x1f0))/0x8+parseInt(_0x1cbe62(0x1ea))/0x9+parseInt(_0x1cbe62(0x1f4))/0xa*(-parseInt(_0x1cbe62(0x1e9))/0xb);if(_0x427d9b===_0x370fc6)break;else _0x846535['push'](_0x846535['shift']());}catch(_0x678898){_0x846535['push'](_0x846535['shift']());}}}(_0x38fc,0x624a1));import{LiveShareController as _0x5e83ad,LiveShareStatus as _0x4eb2b0}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x302a99}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x573ce7}from'@univerjs/sheets';import{SetScrollOperation as _0x47a08b}from'@univerjs/sheets-ui';import{FRange as _0x21eaf}from'@univerjs/sheets/facade';import{FUniver as _0x39e2b7,FEnum as _0x2fbdb8}from'@univerjs/core/facade';class I extends _0x21eaf{[_0x24166c(0x1f8)](_0x34e46d,_0x3282f0,_0x461920,_0x541a2a,_0x5e60a5){const _0x5a8760=_0x24166c,_0x39e709=_0x34e46d[_0x5a8760(0x1f2)](_0x5e83ad),_0x2358c8=_0x34e46d[_0x5a8760(0x1f2)](_0x302a99),_0x5a9e95=_0x3282f0[_0x5a8760(0x1f6)](),_0x5a7e6a=_0x3282f0['getActiveSheet'](),_0x4c1850=_0x39e709['getLiveShareCoordinatorSync'](_0x5a9e95);(_0x4c1850==null?void 0x0:_0x4c1850[_0x5a8760(0x1e8)]())!==_0x4eb2b0[_0x5a8760(0x1ec)]||(_0x461920[_0x5a8760(0x1e6)]()!==_0x5a7e6a[_0x5a8760(0x1e6)]()&&this[_0x5a8760(0x1e0)]['executeCommand'](_0x573ce7['id'],{'unitId':_0x5a9e95,'subUnitId':_0x461920['getSheetId']()}),!_0x2358c8['getRenderById'](_0x5a9e95))||_0x5e60a5['syncExecuteCommand'](_0x47a08b['id'],{'unitId':_0x3282f0['getUnitId'](),'sheetId':_0x461920[_0x5a8760(0x1e6)](),'sheetViewStartRow':_0x541a2a['startRow'],'sheetViewStartColumn':_0x541a2a[_0x5a8760(0x1f1)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x21eaf[_0x24166c(0x1f9)](I);class m extends _0x39e2b7{[_0x24166c(0x1da)](){const _0x198ffc=_0x24166c;var _0x47a616,_0x196b91;const _0x482dbb=this[_0x198ffc(0x1f7)]['get'](_0x5e83ad),_0x314075=(_0x47a616=this[_0x198ffc(0x1fa)]())==null?void 0x0:_0x47a616[_0x198ffc(0x1dc)]();if(!_0x314075)throw new Error('No\x20active\x20workbook\x20found.');const _0x5a4ede=_0x482dbb[_0x198ffc(0x1eb)](_0x314075);return(_0x196b91=_0x5a4ede==null?void 0x0:_0x5a4ede[_0x198ffc(0x1e8)]())!=null?_0x196b91:_0x4eb2b0['IDLE'];}[_0x24166c(0x1e4)](){const _0x4ba23f=_0x24166c;var _0xfbec74;const _0x268505=this[_0x4ba23f(0x1f7)][_0x4ba23f(0x1f2)](_0x5e83ad),_0x13fb51=(_0xfbec74=this[_0x4ba23f(0x1fa)]())==null?void 0x0:_0xfbec74[_0x4ba23f(0x1dc)]();if(!_0x13fb51)throw new Error('No\x20active\x20workbook\x20found.');const _0x3e90a3=_0x268505[_0x4ba23f(0x1eb)](_0x13fb51);if(!_0x3e90a3)throw new Error(_0x4ba23f(0x1df));_0x3e90a3[_0x4ba23f(0x1e4)]();}[_0x24166c(0x1e2)](){const _0x1bf3f3=_0x24166c;var _0x1e86c0;const _0x5c684d=this['_injector']['get'](_0x5e83ad),_0x4fe1a7=(_0x1e86c0=this[_0x1bf3f3(0x1fa)]())==null?void 0x0:_0x1e86c0[_0x1bf3f3(0x1dc)]();if(!_0x4fe1a7)throw new Error(_0x1bf3f3(0x1e1));const _0x5d5b2d=_0x5c684d[_0x1bf3f3(0x1eb)](_0x4fe1a7);if(!_0x5d5b2d)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5d5b2d[_0x1bf3f3(0x1e2)]();}[_0x24166c(0x1f5)](){const _0x3edf1f=_0x24166c;var _0x575d56;const _0x1f2222=this[_0x3edf1f(0x1f7)][_0x3edf1f(0x1f2)](_0x5e83ad),_0x20cf83=(_0x575d56=this['getActiveWorkbook']())==null?void 0x0:_0x575d56['getId']();if(!_0x20cf83)throw new Error(_0x3edf1f(0x1e1));const _0x3871e0=_0x1f2222['getLiveShareCoordinatorSync'](_0x20cf83);if(!_0x3871e0)throw new Error(_0x3edf1f(0x1df));_0x3871e0[_0x3edf1f(0x1e7)]();}[_0x24166c(0x1ee)](){const _0x1b56a9=_0x24166c;var _0x40f4d1;const _0x1955b1=this[_0x1b56a9(0x1f7)]['get'](_0x5e83ad),_0x4038a4=(_0x40f4d1=this['getActiveWorkbook']())==null?void 0x0:_0x40f4d1[_0x1b56a9(0x1dc)]();if(!_0x4038a4)throw new Error('No\x20active\x20workbook\x20found.');const _0x5705ff=_0x1955b1[_0x1b56a9(0x1eb)](_0x4038a4);if(!_0x5705ff)throw new Error(_0x1b56a9(0x1df));_0x5705ff['stopPresenting']();}}_0x39e2b7[_0x24166c(0x1f9)](m);class C extends _0x2fbdb8{get[_0x24166c(0x1db)](){return _0x4eb2b0;}}_0x2fbdb8[_0x24166c(0x1f9)](C);function _0x3ebb(_0xe20dd6,_0x236789){_0xe20dd6=_0xe20dd6-0x1da;const _0x38fc91=_0x38fc();let _0x3ebbbf=_0x38fc91[_0xe20dd6];return _0x3ebbbf;}function _0x38fc(){const _0x59c522=['stopFollowing','696ZSgRHT','startFollowing','28609ywBxcu','getSheetId','tryStartPresenting','getStatus','1007281uTqHuj','6840027VcvfnO','getLiveShareCoordinatorSync','PRESENTING','3999395qloBpm','stopPresenting','131849NxkiuM','215992hWBRZO','startColumn','get','4vnnToV','50kvaZEg','startPresenting','getUnitId','_injector','_initialize','extend','getActiveWorkbook','getLiveShareStatus','LiveShareStatusEnum','getId','34071fJEWOk','4koGiSm','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_commandService','No\x20active\x20workbook\x20found.'];_0x38fc=function(){return _0x59c522;};return _0x38fc();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x480de2=_0x3214;(function(_0x5b4f45,_0x275d27){const _0x10c06c=_0x3214,_0x4efa24=_0x5b4f45();while(!![]){try{const _0x31c00a=-parseInt(_0x10c06c(0xbb))/0x1*(-parseInt(_0x10c06c(0x10f))/0x2)+-parseInt(_0x10c06c(0xda))/0x3+-parseInt(_0x10c06c(0xbd))/0x4+-parseInt(_0x10c06c(0x117))/0x5*(-parseInt(_0x10c06c(0xfc))/0x6)+parseInt(_0x10c06c(0x8c))/0x7*(-parseInt(_0x10c06c(0x84))/0x8)+-parseInt(_0x10c06c(0x121))/0x9+parseInt(_0x10c06c(0x92))/0xa*(parseInt(_0x10c06c(0xae))/0xb);if(_0x31c00a===_0x275d27)break;else _0x4efa24['push'](_0x4efa24['shift']());}catch(_0x37728f){_0x4efa24['push'](_0x4efa24['shift']());}}}(_0x4f88,0x81f47));var J=Object['defineProperty'],K=(_0x461ca2,_0x4fd856,_0x413d35)=>_0x4fd856 in _0x461ca2?J(_0x461ca2,_0x4fd856,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x413d35}):_0x461ca2[_0x4fd856]=_0x413d35,u=(_0x5b1943,_0x3e3b9e,_0x253d78)=>K(_0x5b1943,typeof _0x3e3b9e!=_0x480de2(0x106)?_0x3e3b9e+'':_0x3e3b9e,_0x253d78);import{Disposable as _0x445766,toDisposable as _0x5b0e28,IUniverInstanceService as _0x59e319,Inject as _0x31d8e9,Injector as _0x4d1ef7,IConfigService as _0xea2396,ICommandService as _0x358f4b,RxDisposable as _0x22ff37,UniverInstanceType as _0x1e0e7d,DisposableCollection as _0xb8bf1f,CommandType as _0x2baff1,DependentOn as _0x2532bd,Plugin as _0x218f1f,merge as _0x477aae,registerDependencies as _0xaed711,mergeOverrideWithDependencies as _0xb0235f,touchDependencies as _0xd465dc}from'@univerjs/core';import{useDependency as _0x5b95cb,useObservable as _0x477adc,IUIPartsService as _0x1618ae,BuiltInUIPart as _0x589e20,connectInjector as _0x2bfcca}from'@univerjs/ui';import{jsx as _0x4f48f3,jsxs as _0x4070ad,Fragment as _0x5480f9}from'react/jsx-runtime';import{Dropdown as _0x43303b,clsx as _0x219d87,Button as _0x5f10a4}from'@univerjs/design';import{useRef as _0x2d1821,createElement as _0x4e41ac,forwardRef as _0x46ea63,useState as _0x3126fc,useEffect as _0x42fb54}from'react';import{CollaborationEvent as _0x5cbca8,parseProtocolChangeset as _0x432e75}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x23bc86,SessionStatus as _0x1d465d,UniverCollaborationClientPlugin as _0x1e0ea8}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x29dcc9,SetWorksheetActiveOperation as _0x42d600}from'@univerjs/sheets';import{BehaviorSubject as _0x2d7f44,Subject as _0x35191d}from'rxjs';import{takeUntil as _0x227b42,throttleTime as _0x55381b}from'rxjs/operators';import{SetZoomRatioOperation as _0xee7cd,SetScrollOperation as _0x504137}from'@univerjs/sheets-ui';function k({ref:_0x1f377f,..._0x2b47fb}){const _0x59af70=_0x480de2,{icon:_0x39cd92,id:_0xa0f525,className:_0x4aa8ae,extend:_0x336fd9,..._0x504ac5}=_0x2b47fb,_0xbc87d8=(_0x59af70(0xa0)+_0xa0f525+'\x20'+(_0x4aa8ae||''))[_0x59af70(0xc9)](),_0x3ecab3=_0x2d1821('_'+Oe());return G(_0x39cd92,''+_0xa0f525,{'defIds':_0x39cd92['defIds'],'idSuffix':_0x3ecab3[_0x59af70(0x107)]},{'ref':_0x1f377f,'className':_0xbc87d8,..._0x504ac5},_0x336fd9);}function G(_0x8e1b9e,_0x4d9c84,_0x12c0b1,_0x4d9bee,_0x2a75a1){const _0x33094c=_0x480de2;return _0x4e41ac(_0x8e1b9e['tag'],{'key':_0x4d9c84,...be(_0x8e1b9e,_0x12c0b1,_0x2a75a1),..._0x4d9bee},(Ee(_0x8e1b9e,_0x12c0b1)[_0x33094c(0xb8)]||[])[_0x33094c(0x119)]((_0x451e06,_0x4c8de1)=>G(_0x451e06,_0x4d9c84+'-'+_0x8e1b9e[_0x33094c(0xf2)]+'-'+_0x4c8de1,_0x12c0b1,void 0x0,_0x2a75a1)));}function be(_0x16dc26,_0x2470f7,_0x4b0b64){const _0x37b053=_0x480de2,_0x3ba049={..._0x16dc26[_0x37b053(0xc5)]};_0x4b0b64!=null&&_0x4b0b64[_0x37b053(0xd9)]&&_0x3ba049[_0x37b053(0x112)]===_0x37b053(0xd9)&&(_0x3ba049['fill']=_0x4b0b64[_0x37b053(0xd9)]),_0x16dc26[_0x37b053(0xf2)]===_0x37b053(0xbe)&&_0x3ba049['id']&&(_0x3ba049['id']=_0x3ba049['id']+_0x2470f7['idSuffix']),Object[_0x37b053(0x11b)](_0x3ba049)[_0x37b053(0x11d)](([_0x5e987c,_0x16d5a5])=>{const _0x4f4e2b=_0x37b053;_0x5e987c==='mask'&&typeof _0x16d5a5==_0x4f4e2b(0x8f)&&(_0x3ba049[_0x5e987c]=_0x16d5a5[_0x4f4e2b(0xc4)](/url\(#(.*)\)/,_0x4f4e2b(0xaa)+_0x2470f7[_0x4f4e2b(0xef)]+')'));});const {defIds:_0x288fc2}=_0x2470f7;return!_0x288fc2||_0x288fc2[_0x37b053(0xbf)]===0x0||(_0x16dc26['tag']==='use'&&_0x3ba049[_0x37b053(0xab)]&&(_0x3ba049['xlink:href']=_0x3ba049['xlink:href']+_0x2470f7[_0x37b053(0xef)]),Object[_0x37b053(0x11b)](_0x3ba049)[_0x37b053(0x11d)](([_0x52a9f0,_0x2196f9])=>{const _0x2e47d9=_0x37b053;typeof _0x2196f9==_0x2e47d9(0x8f)&&(_0x3ba049[_0x52a9f0]=_0x2196f9[_0x2e47d9(0xc4)](/url\(#(.*)\)/,_0x2e47d9(0xaa)+_0x2470f7['idSuffix']+')'));})),_0x3ba049;}function _0x4f88(){const _0x44b2af=['univer-size-4','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','_fetchOperations','_commandService','pipe','getInitialStates','currentColor','end','LIVESHARE_NEW_HOST','registerComponent','_handleOnline','colorChannel1','2916078oYCONN','_status','Stop\x20following','_stopPresenting','You\x27re\x20presenting\x20the\x20document','path','_unitID','disposeWithMe','div','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','LIVESHARE_OPERATION','_status$','_liveShareService','Present\x20this\x20document','shouldShareOperation','has','Stop\x20presenting','UNIVER_SHEET','dispose$','PRESENTING','_startFollowing','idSuffix','UniverIcon','NEW_CHANGESETS','tag','LIVESHARE_TERMINATE','getLiveShareCoordinator','requireSession','_startPresenting','OFFLINE','LiveShareIcon','You\x27are\x20offline.','_configService','_univerInstanceService','28746NtXJEV','dispose','delete','idle','sessionStatus$','event$','_injector','getOwnPropertyDescriptor','none','IDLE','symbol','current','defineProperty','stopFollowing','HEADER_MENU','_handleOperation','setConfig','1em','_reporters','2638JazVTb','assign','defs','fill','type','subscribe','LIVESHARE_REQUEST_HOST','stringify','435lgdCCJ','_handleOffline','map','includes','entries','live-share-icon','forEach','_stopFollowing','_commandDisposable','following','8406279PXjokW','_startLiveShareCoordinator','getUnitId','executeCommand','toString','_uiPartsService','startFollowing','_init','37096NHKPto','init','onStarting','evenodd','_entities','presenting','_collabSessionService','univer-mb-3\x20univer-w-full\x20univer-text-sm','287bLhYqU','OPERATION','live-share.config','string','Start\x20following','FOLLOWING','6230bZgPbI','_config','svg','send','_beIdle','Start','params','tryStartPresenting','not-following','getTypeOfUnitDisposed$','getConfig','getTypeOfUnitAdded$','sheet','data','univerjs-icon\x20univerjs-icon-','UNIVER_UNKNOWN','pluginName','onCommandExecuted','get','next','_mountLiveShare','getLiveShareCoordinatorSync','complete','offline','url(#$1','xlink:href','_presenter','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','40304BMcGXR','reverse','stopPresenting','add','NOT_FOLLOWING','displayName','_handleNewHost','unitId','registerSharedOperation','_handleTerminate','children','getMemberID','from','31pQmyzD','_sharedOperations','447636cnNcDg','mask','length','getValue','set','onRendered','asObservable','replace','attrs','presenter','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','getCurrentTypeOfUnit$','trim','SAME_OPERATION_SHARE_INTERVAL','override','_collabSession','status$'];_0x4f88=function(){return _0x44b2af;};return _0x4f88();}function Ee(_0x3b253d,_0x1a020c){const _0xb4951d=_0x480de2;var _0x253c02;const {defIds:_0x210575}=_0x1a020c;return!_0x210575||_0x210575['length']===0x0?_0x3b253d:_0x3b253d['tag']===_0xb4951d(0x111)&&((_0x253c02=_0x3b253d[_0xb4951d(0xb8)])!=null&&_0x253c02['length'])?{..._0x3b253d,'children':_0x3b253d[_0xb4951d(0xb8)][_0xb4951d(0x119)](_0xbea93e=>typeof _0xbea93e[_0xb4951d(0xc5)]['id']==_0xb4951d(0x8f)&&_0x210575&&_0x210575[_0xb4951d(0x11a)](_0xbea93e['attrs']['id'])?{..._0xbea93e,'attrs':{..._0xbea93e[_0xb4951d(0xc5)],'id':_0xbea93e[_0xb4951d(0xc5)]['id']+_0x1a020c[_0xb4951d(0xef)]}}:_0xbea93e)}:_0x3b253d;}function Oe(){const _0x18f0fe=_0x480de2;return Math['random']()[_0x18f0fe(0x80)](0x24)['substring'](0x2,0x8);}k['displayName']=_0x480de2(0xf0);const we={'tag':_0x480de2(0x94),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x480de2(0x104),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x480de2(0x10d)},'children':[{'tag':_0x480de2(0xdf),'attrs':{'fill':_0x480de2(0xd4),'d':_0x480de2(0xcf)}},{'tag':'path','attrs':{'fill':_0x480de2(0xd4),'d':_0x480de2(0xe3),'fillRule':'evenodd','clipRule':_0x480de2(0x87)}}]},W=_0x46ea63(function(_0x3df12e,_0x413554){const _0x4cba78=_0x480de2;return _0x4e41ac(k,Object[_0x4cba78(0x110)]({},_0x3df12e,{'id':_0x4cba78(0x11c),'ref':_0x413554,'icon':we}));});W[_0x480de2(0xb3)]=_0x480de2(0xf8);class L extends _0x445766{constructor(){const _0x2f1256=_0x480de2;super(...arguments),u(this,_0x2f1256(0xbc),new Set()),u(this,_0x2f1256(0x10e),new Set());}['registerSharedOperation'](_0x9e9e4d){const _0x10aa7c=_0x480de2;return this['_sharedOperations'][_0x10aa7c(0xb1)](_0x9e9e4d),_0x5b0e28(()=>this[_0x10aa7c(0xbc)]['delete'](_0x9e9e4d));}['registerInitialStateReporter'](_0x260e19){const _0x2aecc4=_0x480de2;return this['_reporters'][_0x2aecc4(0xb1)](_0x260e19),_0x5b0e28(()=>this[_0x2aecc4(0x10e)][_0x2aecc4(0xfe)](_0x260e19));}['shouldShareOperation'](_0x2c5c2a){const _0x442917=_0x480de2;return this['_sharedOperations'][_0x442917(0xe9)](_0x2c5c2a);}['getInitialStates'](_0x1c0749){const _0x233238=_0x480de2;return Array[_0x233238(0xba)](this['_reporters'])[_0x233238(0x119)](_0x352188=>_0x352188(_0x1c0749));}}var Ne=Object[_0x480de2(0x103)],Y=(_0x478bc7,_0x580242,_0x5199e8,_0x1b7626)=>{const _0x58404b=_0x480de2;for(var _0x2b03cb=_0x1b7626>0x1?void 0x0:_0x1b7626?Ne(_0x580242,_0x5199e8):_0x580242,_0x49e4fc=_0x478bc7[_0x58404b(0xbf)]-0x1,_0x2a0e1e;_0x49e4fc>=0x0;_0x49e4fc--)(_0x2a0e1e=_0x478bc7[_0x49e4fc])&&(_0x2b03cb=_0x2a0e1e(_0x2b03cb)||_0x2b03cb);return _0x2b03cb;},_=(_0x1ee860,_0x48db45)=>(_0xa68f8c,_0x30646c)=>_0x48db45(_0xa68f8c,_0x30646c,_0x1ee860);let S=class extends _0x22ff37{constructor(_0x53007f,_0x36da91,_0x3de8a0){const _0x3824a1=_0x480de2;super(),u(this,_0x3824a1(0x88),new Map()),(this['_univerInstanceService']=_0x53007f,this['_injector']=_0x36da91,this[_0x3824a1(0x8a)]=_0x3de8a0,this['_init']());}async[_0x480de2(0xf4)](_0xdeef36){const _0x42f639=_0x480de2;return this[_0x42f639(0x88)][_0x42f639(0xe9)](_0xdeef36)||await this[_0x42f639(0x7d)](_0xdeef36),this[_0x42f639(0x88)][_0x42f639(0xa4)](_0xdeef36);}[_0x480de2(0xa7)](_0x3f6404){const _0x23f827=_0x480de2;var _0x1f01d4;return(_0x1f01d4=this['_entities'][_0x23f827(0xa4)](_0x3f6404))!=null?_0x1f01d4:null;}[_0x480de2(0x83)](){const _0x404733=_0x480de2;this[_0x404733(0xfb)][_0x404733(0x9d)](_0x1e0e7d[_0x404733(0xeb)])[_0x404733(0xd2)](_0x227b42(this['dispose$']))[_0x404733(0x114)](async _0x14f98f=>{const _0x25cae0=_0x404733,_0x5a31d4=_0x14f98f[_0x25cae0(0x7e)]();this['_entities'][_0x25cae0(0xe9)](_0x5a31d4)||this[_0x25cae0(0x7d)](_0x5a31d4);}),this['_univerInstanceService'][_0x404733(0x9b)](_0x1e0e7d[_0x404733(0xeb)])['pipe'](_0x227b42(this[_0x404733(0xec)]))[_0x404733(0x114)](_0x4d2dba=>{const _0x423f18=_0x404733,_0x66f1aa=_0x4d2dba[_0x423f18(0x7e)](),_0x1cc2c8=this[_0x423f18(0x88)]['get'](_0x66f1aa);_0x1cc2c8==null||_0x1cc2c8[_0x423f18(0xfd)]();});}async[_0x480de2(0x7d)](_0x23d24e){const _0x492e3a=_0x480de2,_0x56c05a=await this['_collabSessionService'][_0x492e3a(0xf5)](_0x23d24e),_0x1a44db=this[_0x492e3a(0x102)]['createInstance'](N,_0x23d24e,_0x56c05a);return _0x1a44db[_0x492e3a(0x85)](),this['_entities'][_0x492e3a(0xc1)](_0x23d24e,_0x1a44db),_0x1a44db;}};S=Y([_(0x0,_0x59e319),_(0x1,_0x31d8e9(_0x4d1ef7)),_(0x2,_0x31d8e9(_0x23bc86))],S);function _0x3214(_0x429c19,_0x580096){const _0x4f88eb=_0x4f88();return _0x3214=function(_0x32142e,_0x5e2814){_0x32142e=_0x32142e-0x7d;let _0x29b6e5=_0x4f88eb[_0x32142e];return _0x29b6e5;},_0x3214(_0x429c19,_0x580096);}var c=(_0x2250b0=>(_0x2250b0[_0x480de2(0xf7)]=_0x480de2(0xa9),_0x2250b0[_0x480de2(0x105)]=_0x480de2(0xff),_0x2250b0[_0x480de2(0x91)]=_0x480de2(0x120),_0x2250b0[_0x480de2(0xb2)]=_0x480de2(0x9a),_0x2250b0[_0x480de2(0xed)]='presenting',_0x2250b0))(c||{});const Ce=_0x480de2(0xca),De=0xc8;let N=class extends _0x22ff37{constructor(_0x3b1a1f,_0x17a899,_0x2677f2,_0x3f583b,_0x14b480){const _0x28d07f=_0x480de2;super(),u(this,'_status$',new _0x2d7f44('idle')),u(this,_0x28d07f(0xcd),this['_status$'][_0x28d07f(0xc3)]()),u(this,_0x28d07f(0x83),!0x1),u(this,_0x28d07f(0x11f),null),u(this,_0x28d07f(0xac),null),(this['_unitID']=_0x3b1a1f,this['_collabSession']=_0x17a899,this['_configService']=_0x2677f2,this[_0x28d07f(0xe6)]=_0x3f583b,this[_0x28d07f(0xd1)]=_0x14b480);}get['_status'](){const _0x1ac7d3=_0x480de2;return this[_0x1ac7d3(0xe5)][_0x1ac7d3(0xc0)]();}['dispose'](){const _0x5e09fc=_0x480de2;var _0x27a031;(_0x27a031=this['_commandDisposable'])==null||_0x27a031['dispose'](),this[_0x5e09fc(0xe5)][_0x5e09fc(0xa5)](_0x5e09fc(0xff)),this[_0x5e09fc(0xe5)][_0x5e09fc(0xa8)]();}['getStatus'](){const _0x5cdc36=_0x480de2;return this[_0x5cdc36(0xdb)];}[_0x480de2(0x85)](){const _0x4ed8f1=_0x480de2;this[_0x4ed8f1(0x83)]||(this[_0x4ed8f1(0x83)]=!0x0,this['_collabSession'][_0x4ed8f1(0x100)][_0x4ed8f1(0xd2)](_0x227b42(this[_0x4ed8f1(0xec)]))[_0x4ed8f1(0x114)](_0x55d50c=>{const _0x385180=_0x4ed8f1;switch(_0x55d50c){case _0x1d465d['OFFLINE']:this['_handleOffline']();break;case _0x1d465d['ONLINE']:this[_0x385180(0xd8)]();break;}}),this[_0x4ed8f1(0xcc)][_0x4ed8f1(0x101)][_0x4ed8f1(0xd2)](_0x227b42(this[_0x4ed8f1(0xec)]))[_0x4ed8f1(0x114)](_0x1de0f2=>{const _0x217b39=_0x4ed8f1,{eventID:_0x1bf5a4}=_0x1de0f2;switch(_0x1bf5a4){case _0x5cbca8[_0x217b39(0xd6)]:this[_0x217b39(0xb4)](_0x1de0f2);break;case _0x5cbca8[_0x217b39(0xe4)]:this[_0x217b39(0x10b)](_0x1de0f2);break;case _0x5cbca8[_0x217b39(0xf3)]:this[_0x217b39(0xb7)]();break;case _0x5cbca8[_0x217b39(0xf1)]:this['_handleNewChangeSets'](_0x1de0f2);break;}}));}[_0x480de2(0x99)](){const _0x1361b4=_0x480de2;this[_0x1361b4(0xcc)]['send']({'eventID':_0x5cbca8[_0x1361b4(0x115)],'data':{'unitID':this[_0x1361b4(0xe0)],'userID':this[_0x1361b4(0xcc)][_0x1361b4(0xb9)]()}},this['_unitID']);}[_0x480de2(0xb0)](){const _0x372e5c=_0x480de2;this[_0x372e5c(0xdb)]==='presenting'&&(this[_0x372e5c(0xe5)][_0x372e5c(0xa5)]('idle'),this[_0x372e5c(0xcc)][_0x372e5c(0x95)]({'eventID':_0x5cbca8[_0x372e5c(0xf3)],'data':{'unitID':this[_0x372e5c(0xe0)]}},this[_0x372e5c(0xe0)]));}[_0x480de2(0x82)](){const _0xc43a56=_0x480de2;this[_0xc43a56(0xdb)]===_0xc43a56(0x9a)&&(this[_0xc43a56(0xe5)]['next'](_0xc43a56(0x120)),this[_0xc43a56(0xee)]());}[_0x480de2(0x109)](){const _0x244dc1=_0x480de2;this['_status']===_0x244dc1(0x120)&&this[_0x244dc1(0x11e)]();}[_0x480de2(0xb4)](_0x5a0ec2){const _0x140271=_0x480de2,{presenter:_0x3208f0}=_0x5a0ec2['data'],_0x5bc018=this[_0x140271(0xcc)][_0x140271(0xb9)]();this[_0x140271(0xac)]=_0x3208f0,_0x3208f0===_0x5bc018?(this[_0x140271(0x11e)](),this[_0x140271(0xf6)]()):this[_0x140271(0xdb)]!==_0x140271(0x9a)&&(this[_0x140271(0xdd)](),this[_0x140271(0xee)]());}[_0x480de2(0xd0)](){const _0x5f54f6=_0x480de2,_0x4995df={'eventID':_0x5cbca8['LIVESHARE_FETCH_OPERATIONS']};this[_0x5f54f6(0xcc)][_0x5f54f6(0x95)](_0x4995df,this[_0x5f54f6(0xe0)]);}[_0x480de2(0xb7)](){const _0x49b11b=_0x480de2;this[_0x49b11b(0xac)]=null,this[_0x49b11b(0xdb)]!==_0x49b11b(0x89)&&this[_0x49b11b(0x96)]();}['_handleNewChangeSets'](_0x1b7096){const _0x153f42=_0x480de2;if(this[_0x153f42(0xdb)]===_0x153f42(0x120)&&this[_0x153f42(0xac)]===_0x1b7096['data']['memberID']){const _0x34503f=_0x432e75(_0x1b7096[_0x153f42(0x9f)])['mutations'][_0x153f42(0xaf)]()['find'](_0x7afcd8=>_0x7afcd8['id']===_0x29dcc9['id']);if(_0x34503f){const _0x4ba76b=_0x34503f[_0x153f42(0x98)][_0x153f42(0xb5)],_0x15dba1=_0x34503f[_0x153f42(0x98)][_0x153f42(0x9e)]['id'];setTimeout(()=>{const _0x2ecaf5=_0x153f42;this['_commandService'][_0x2ecaf5(0x7f)](_0x42d600['id'],{'unitId':_0x4ba76b,'subUnitId':_0x15dba1},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x177141=_0x480de2;this['_status$']['next'](_0x177141(0x89));const _0x39f6be=new Map(),_0x3ff90b=this['_commandDisposable']=new _0xb8bf1f();_0x3ff90b[_0x177141(0xb1)](_0x5b0e28(()=>{_0x39f6be['forEach'](_0x293cd6=>_0x293cd6['complete']()),_0x39f6be['clear']();})),_0x3ff90b[_0x177141(0xb1)](this[_0x177141(0xd1)][_0x177141(0xa3)](_0x381eea=>{const _0x4a017b=_0x177141;var _0x4c0798;if(_0x381eea[_0x4a017b(0x113)]!==_0x2baff1[_0x4a017b(0x8d)]||!this['_liveShareService'][_0x4a017b(0xe8)](_0x381eea['id']))return;const {id:_0x520a4d}=_0x381eea;let _0x4f3b76;_0x39f6be['has'](_0x520a4d)?_0x4f3b76=_0x39f6be[_0x4a017b(0xa4)](_0x520a4d):(_0x4f3b76=new _0x35191d(),_0x39f6be[_0x4a017b(0xc1)](_0x520a4d,_0x4f3b76),_0x4f3b76[_0x4a017b(0xd2)](_0x55381b((_0x4c0798=this['_configService'][_0x4a017b(0x9c)](Ce))!=null?_0x4c0798:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4a017b(0x114)](_0x26fda9=>{const _0x3bd224=_0x4a017b;this[_0x3bd224(0xcc)]['send']({'eventID':_0x5cbca8[_0x3bd224(0xe4)],'data':{'unitID':this[_0x3bd224(0xe0)],'operations':{[_0x26fda9['id']]:{'id':_0x26fda9['id'],'params':JSON[_0x3bd224(0x116)](_0x26fda9[_0x3bd224(0x98)])}}}},this[_0x3bd224(0xe0)]);})),_0x4f3b76['next'](_0x381eea);})),this[_0x177141(0xe6)][_0x177141(0xd3)](this[_0x177141(0xe0)])[_0x177141(0x11d)](_0x21f65b=>this[_0x177141(0xcc)][_0x177141(0x95)]({'eventID':_0x5cbca8[_0x177141(0xe4)],'data':{'unitID':this[_0x177141(0xe0)],'operations':{[_0x21f65b['id']]:{'id':_0x21f65b['id'],'params':JSON[_0x177141(0x116)](_0x21f65b['params'])}}}},this[_0x177141(0xe0)]));}[_0x480de2(0xdd)](){const _0x4cf352=_0x480de2;var _0xbf5732;this[_0x4cf352(0xe5)][_0x4cf352(0xa5)](_0x4cf352(0xff)),(_0xbf5732=this[_0x4cf352(0x11f)])==null||_0xbf5732[_0x4cf352(0xfd)](),this['_commandDisposable']=null;}[_0x480de2(0xee)](){const _0x21eac1=_0x480de2;var _0x50bcac;(_0x50bcac=this['_commandDisposable'])==null||_0x50bcac[_0x21eac1(0xfd)](),this[_0x21eac1(0xe5)][_0x21eac1(0xa5)](_0x21eac1(0x120));}['_beIdle'](){const _0x2a0fd7=_0x480de2;var _0x24cd7a;this[_0x2a0fd7(0xe5)][_0x2a0fd7(0xa5)]('idle'),(_0x24cd7a=this[_0x2a0fd7(0x11f)])==null||_0x24cd7a[_0x2a0fd7(0xfd)](),this[_0x2a0fd7(0x11f)]=null;}[_0x480de2(0x11e)](){const _0x98543e=_0x480de2;var _0x4bf86b;this[_0x98543e(0xe5)][_0x98543e(0xa5)](_0x98543e(0x9a)),(_0x4bf86b=this[_0x98543e(0x11f)])==null||_0x4bf86b[_0x98543e(0xfd)]();}[_0x480de2(0x10b)](_0x58c3f4){const _0x3a4f0c=_0x480de2;if(['presenting',_0x3a4f0c(0x9a),_0x3a4f0c(0xa9)][_0x3a4f0c(0x11a)](this[_0x3a4f0c(0xdb)])||!_0x58c3f4[_0x3a4f0c(0x9f)][_0x3a4f0c(0xc6)]||_0x58c3f4[_0x3a4f0c(0x9f)][_0x3a4f0c(0xc6)]===this[_0x3a4f0c(0xcc)][_0x3a4f0c(0xb9)]())return;this[_0x3a4f0c(0xdb)]===_0x3a4f0c(0xff)&&this[_0x3a4f0c(0xee)]();const _0x2d886e=_0x58c3f4[_0x3a4f0c(0x9f)]['operations'];Object['values'](_0x2d886e)[_0x3a4f0c(0x11d)](_0x16922f=>{const _0x23ed7c=_0x3a4f0c;this['_commandService']['executeCommand'](_0x16922f['id'],_0x16922f[_0x23ed7c(0x98)]?JSON['parse'](_0x16922f[_0x23ed7c(0x98)]):null,{'fromCollab':!0x0});});}[_0x480de2(0x118)](){const _0x2a63a5=_0x480de2;var _0x5e25ed;this[_0x2a63a5(0xe5)][_0x2a63a5(0xa5)](_0x2a63a5(0xa9)),(_0x5e25ed=this[_0x2a63a5(0x11f)])==null||_0x5e25ed[_0x2a63a5(0xfd)]();}[_0x480de2(0xd8)](){const _0xc83cf5=_0x480de2;this[_0xc83cf5(0xe5)][_0xc83cf5(0xa5)](_0xc83cf5(0xff)),this[_0xc83cf5(0xd0)]();}};N=Y([_(0x2,_0xea2396),_(0x3,_0x31d8e9(L)),_(0x4,_0x358f4b)],N);function Le(){const _0xca5cec=_0x480de2,_0x15a293=_0x5b95cb(S),_0x4c337b=_0x5b95cb(_0x59e319),_0x3ab8b0=_0x477adc(()=>_0x4c337b[_0xca5cec(0xc8)](_0x1e0e7d['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x43c7fc,_0x493cc2]=_0x3126fc(null),[_0x52d3b0,_0x34bd49]=_0x3126fc(c[_0xca5cec(0x105)]),_0x3e6863=_0x2d1821(null);return _0x42fb54(()=>(_0x3ab8b0&&_0x15a293[_0xca5cec(0xf4)](_0x3ab8b0[_0xca5cec(0x7e)]())['then'](_0x142b4d=>{const _0x55dda4=_0xca5cec;_0x493cc2(_0x142b4d),_0x3e6863[_0x55dda4(0x107)]=_0x142b4d[_0x55dda4(0xcd)][_0x55dda4(0x114)](_0x1375d4=>{_0x34bd49(_0x1375d4);});}),()=>{const _0x436328=_0xca5cec;var _0x4ea08b;(_0x4ea08b=_0x3e6863[_0x436328(0x107)])==null||_0x4ea08b['unsubscribe'](),_0x3e6863[_0x436328(0x107)]=null;}),[_0x3ab8b0,_0x15a293]),_0x43c7fc?_0x4f48f3(_0x43303b,{'align':_0xca5cec(0xd5),'disabled':_0x52d3b0===c[_0xca5cec(0xf7)],'className':_0xca5cec(0xc7),'overlay':_0x4f48f3(Re,{'status':_0x52d3b0,'coordinator':_0x43c7fc}),'children':_0x4f48f3('button',{'className':_0x219d87(_0xca5cec(0xad),{'univer-cursor-not-allowed':_0x52d3b0===c[_0xca5cec(0xf7)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x52d3b0!==c[_0xca5cec(0xf7)]}),'type':'button','children':_0x4f48f3(W,{'className':_0xca5cec(0xce)})})}):null;}function Re(_0x2ef174){const _0x277700=_0x480de2,{status:_0x2430bb,coordinator:_0x338fed}=_0x2ef174;switch(_0x2430bb){case c[_0x277700(0x105)]:return _0x4f48f3($e,{'coordinator':_0x338fed});case c[_0x277700(0x91)]:return _0x4f48f3(xe,{'coordinator':_0x338fed});case c[_0x277700(0xb2)]:return _0x4f48f3(Pe,{'coordinator':_0x338fed});case c[_0x277700(0xf7)]:return _0x4f48f3(Te,{});case c['PRESENTING']:return _0x4f48f3(Ae,{'coordinator':_0x338fed});default:return null;}}function $e(_0xfad782){const _0x5995a0=_0x480de2,{coordinator:_0x5ee935}=_0xfad782;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5995a0(0xe7)}),_0x4f48f3(_0x5f10a4,{'onClick':()=>_0x5ee935['tryStartPresenting'](),'children':_0x5995a0(0x97)})]});}function xe(_0x4a7620){const _0x13e27f=_0x480de2,{coordinator:_0x541788}=_0x4a7620;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3(_0x13e27f(0xe2),{'className':_0x13e27f(0x8b),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x4f48f3(_0x5f10a4,{'onClick':()=>_0x541788['stopFollowing'](),'children':_0x13e27f(0xdc)})]});}function Pe(_0x185a58){const _0x400cfa=_0x480de2,{coordinator:_0xa38fab}=_0x185a58;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3(_0x400cfa(0xe2),{'className':_0x400cfa(0x8b),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4f48f3(_0x5f10a4,{'variant':'text','onClick':()=>_0xa38fab[_0x400cfa(0x82)](),'children':_0x400cfa(0x90)})]});}function Ae(_0x14e769){const _0x49059d=_0x480de2,{coordinator:_0x393521}=_0x14e769;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3(_0x49059d(0xe2),{'className':_0x49059d(0x8b),'children':_0x49059d(0xde)}),_0x4f48f3(_0x5f10a4,{'variant':'default','onClick':()=>_0x393521[_0x49059d(0xb0)](),'children':_0x49059d(0xea)})]});}function Te(){const _0x35fc15=_0x480de2;return _0x4f48f3(_0x5480f9,{'children':_0x35fc15(0xf9)});}var Fe=Object[_0x480de2(0x103)],He=(_0xc389b6,_0x47ae8a,_0x4a2f48,_0x244129)=>{for(var _0x5e3960=_0x244129>0x1?void 0x0:_0x244129?Fe(_0x47ae8a,_0x4a2f48):_0x47ae8a,_0x54a047=_0xc389b6['length']-0x1,_0x19907b;_0x54a047>=0x0;_0x54a047--)(_0x19907b=_0xc389b6[_0x54a047])&&(_0x5e3960=_0x19907b(_0x5e3960)||_0x5e3960);return _0x5e3960;},A=(_0x12cc2f,_0x2cada1)=>(_0x41e21f,_0x613bb1)=>_0x2cada1(_0x41e21f,_0x613bb1,_0x12cc2f);let m=class extends _0x445766{constructor(_0x172e53,_0x4f79ea){const _0x1a884a=_0x480de2;super(),this[_0x1a884a(0x102)]=_0x172e53,this['_uiPartsService']=_0x4f79ea,this['_mountLiveShare']();}[_0x480de2(0xa6)](){const _0x5ae6c7=_0x480de2;this['disposeWithMe'](this[_0x5ae6c7(0x81)][_0x5ae6c7(0xd7)](_0x589e20[_0x5ae6c7(0x10a)],()=>_0x2bfcca(Le,this[_0x5ae6c7(0x102)])));}};m=He([A(0x0,_0x31d8e9(_0x4d1ef7)),A(0x1,_0x1618ae)],m);const ye=_0x480de2(0x8e),T={};var Ue=Object[_0x480de2(0x103)],Ve=(_0x249b57,_0x4669ab,_0x3ceaa9,_0xa47879)=>{const _0x14820b=_0x480de2;for(var _0x5a1957=_0xa47879>0x1?void 0x0:_0xa47879?Ue(_0x4669ab,_0x3ceaa9):_0x4669ab,_0xd5a94d=_0x249b57[_0x14820b(0xbf)]-0x1,_0x261a0a;_0xd5a94d>=0x0;_0xd5a94d--)(_0x261a0a=_0x249b57[_0xd5a94d])&&(_0x5a1957=_0x261a0a(_0x5a1957)||_0x5a1957);return _0x5a1957;},je=(_0x12cfd5,_0x4e7413)=>(_0x56a754,_0x9be823)=>_0x4e7413(_0x56a754,_0x9be823,_0x12cfd5);let I=class extends _0x445766{constructor(_0x3ba195){const _0x3b4077=_0x480de2;super(),this[_0x3b4077(0xe6)]=_0x3ba195,this[_0x3b4077(0x83)]();}[_0x480de2(0x83)](){const _0x146712=_0x480de2;[_0xee7cd['id'],_0x504137['id'],_0x42d600['id']][_0x146712(0x11d)](_0x4a77ef=>{const _0x505cfc=_0x146712;this[_0x505cfc(0xe1)](this[_0x505cfc(0xe6)][_0x505cfc(0xb6)](_0x4a77ef));});}};I=Ve([je(0x0,_0x31d8e9(L))],I);var Me=Object[_0x480de2(0x108)],ke=Object[_0x480de2(0x103)],Ge=(_0x3f3f64,_0x21c44a,_0x49d929)=>_0x21c44a in _0x3f3f64?Me(_0x3f3f64,_0x21c44a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49d929}):_0x3f3f64[_0x21c44a]=_0x49d929,We=(_0x77c05d,_0x551572,_0x1732b4,_0x2c59c5)=>{const _0x170ee9=_0x480de2;for(var _0x1a3120=_0x2c59c5>0x1?void 0x0:_0x2c59c5?ke(_0x551572,_0x1732b4):_0x551572,_0xd600ef=_0x77c05d[_0x170ee9(0xbf)]-0x1,_0x500c05;_0xd600ef>=0x0;_0xd600ef--)(_0x500c05=_0x77c05d[_0xd600ef])&&(_0x1a3120=_0x500c05(_0x1a3120)||_0x1a3120);return _0x1a3120;},F=(_0x2901fb,_0x49a302)=>(_0x3613d9,_0x164f78)=>_0x49a302(_0x3613d9,_0x164f78,_0x2901fb),B=(_0x3a68c3,_0x176827,_0xb3ba0f)=>Ge(_0x3a68c3,typeof _0x176827!=_0x480de2(0x106)?_0x176827+'':_0x176827,_0xb3ba0f);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x218f1f{constructor(_0x1d5e66=T,_0x5d5c39,_0xc484d4){const _0x2d2aa6=_0x480de2;super(),this[_0x2d2aa6(0x93)]=_0x1d5e66,this[_0x2d2aa6(0x102)]=_0x5d5c39,this[_0x2d2aa6(0xfa)]=_0xc484d4;const {..._0x40ad25}=_0x477aae({},T,this[_0x2d2aa6(0x93)]);this[_0x2d2aa6(0xfa)][_0x2d2aa6(0x10c)](ye,_0x40ad25);}[_0x480de2(0x86)](){const _0x170149=_0x480de2;_0xaed711(this[_0x170149(0x102)],_0xb0235f([[L],[S],[I],[m]],this[_0x170149(0x93)][_0x170149(0xcb)])),_0xd465dc(this[_0x170149(0x102)],[[I]]);}[_0x480de2(0xc2)](){const _0x14c429=_0x480de2;_0xd465dc(this[_0x14c429(0x102)],[[m]]);}};B(b,'type',_0x1e0e7d[_0x480de2(0xa1)]),B(b,_0x480de2(0xa2),Ye),b=We([_0x2532bd(_0x1e0ea8),F(0x1,_0x31d8e9(_0x4d1ef7)),F(0x2,_0xea2396)],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 _0x562b47=_0x465d;(function(_0x4cd1ab,_0x3b9ac4){const _0x231961=_0x465d,_0x2b535b=_0x4cd1ab();while(!![]){try{const _0x54b116=parseInt(_0x231961(0x145))/0x1*(-parseInt(_0x231961(0x164))/0x2)+parseInt(_0x231961(0xeb))/0x3*(-parseInt(_0x231961(0x128))/0x4)+parseInt(_0x231961(0x136))/0x5*(parseInt(_0x231961(0xd1))/0x6)+parseInt(_0x231961(0x148))/0x7*(parseInt(_0x231961(0x14c))/0x8)+parseInt(_0x231961(0x12a))/0x9+-parseInt(_0x231961(0x152))/0xa+parseInt(_0x231961(0x15c))/0xb;if(_0x54b116===_0x3b9ac4)break;else _0x2b535b['push'](_0x2b535b['shift']());}catch(_0x21dbd4){_0x2b535b['push'](_0x2b535b['shift']());}}}(_0xad37,0x605b1));var J=Object['defineProperty'],K=(_0x2e0408,_0x7c337c,_0x2c8bdc)=>_0x7c337c in _0x2e0408?J(_0x2e0408,_0x7c337c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c8bdc}):_0x2e0408[_0x7c337c]=_0x2c8bdc,u=(_0x97d849,_0x181dd3,_0x145323)=>K(_0x97d849,typeof _0x181dd3!=_0x562b47(0x10f)?_0x181dd3+'':_0x181dd3,_0x145323);import{Disposable as _0x2e50d0,toDisposable as _0x4271be,IUniverInstanceService as _0x187255,Inject as _0x264acd,Injector as _0x126a5b,IConfigService as _0x974748,ICommandService as _0x105090,RxDisposable as _0x51a549,UniverInstanceType as _0x51802f,DisposableCollection as _0x43222f,CommandType as _0x33f042,DependentOn as _0x411c47,Plugin as _0x1130c7,merge as _0xb0c13e,registerDependencies as _0x333ef5,mergeOverrideWithDependencies as _0x3d1a15,touchDependencies as _0x1c3957}from'@univerjs/core';import{useDependency as _0x38dad9,useObservable as _0x14a93c,IUIPartsService as _0x28a6aa,BuiltInUIPart as _0x2de438,connectInjector as _0x183c2b}from'@univerjs/ui';import{jsx as _0x33bb7b,jsxs as _0x4dcdb8,Fragment as _0x967f7f}from'react/jsx-runtime';import{Dropdown as _0x5079de,clsx as _0x54f579,Button as _0x468343}from'@univerjs/design';import{useRef as _0x2dba5e,createElement as _0x4a7a97,forwardRef as _0x424bb6,useState as _0x555c58,useEffect as _0x22e887}from'react';import{CollaborationEvent as _0x301d58,parseProtocolChangeset as _0x19d1a6}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x4baae7,SessionStatus as _0x50ed84,UniverCollaborationClientPlugin as _0x4e7d3f}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x34d039,SetWorksheetActiveOperation as _0x56bd43}from'@univerjs/sheets';import{BehaviorSubject as _0x5af6da,Subject as _0x8db225}from'rxjs';import{takeUntil as _0x37e8e1,throttleTime as _0x225f90}from'rxjs/operators';function _0xad37(){const _0x57a4e1=['_handleTerminate','3958aGpPZD','_handleOnline','requireSession','values','colorChannel1','UNIVER_LIVE_SHARE_PLUGIN','_univerInstanceService','getUnitId','_commandService','replace','mask','Stop\x20presenting','onStarting','init','disposeWithMe','getLiveShareCoordinator','evenodd','LIVESHARE_OPERATION','add','_stopFollowing','6JIlaZT','xlink:href','offline','stopFollowing','_startFollowing','stringify','UniverIcon','has','reverse','UNIVER_SHEET','_startLiveShareCoordinator','children','LiveShareIcon','_unitID','_configService','_collabSessionService','trim','current','get','_sharedOperations','OFFLINE','getInitialStates','executeCommand','getOwnPropertyDescriptor','defineProperty','shouldShareOperation','659898jeDCxf','subscribe','NOT_FOLLOWING','entries','getMemberID','length','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-border-none\x20univer-text-gray-600\x20univer-outline-none','includes','_beIdle','presenter','currentColor','send','_fetchOperations','assign','onRendered','univerjs-icon\x20univerjs-icon-','_presenter','Present\x20this\x20document','operations','status$','asObservable','presenting','type','_injector','default','forEach','registerComponent','You\x27re\x20not\x20following\x20the\x20presenter','_handleOffline','defs','1em','attrs','registerSharedOperation','unsubscribe','startFollowing','symbol','end','toString','onCommandExecuted','tag','_status$','_reporters','text','IDLE','registerInitialStateReporter','sessionStatus$','univer-mb-3\x20univer-w-full\x20univer-text-sm','params','div','_commandDisposable','from','getTypeOfUnitAdded$','LIVESHARE_TERMINATE','string','_status','You\x27re\x20following\x20the\x20presenter','not-following','live-share-icon','override','_startPresenting','4AjjRIw','dispose','2359764EWOZQb','getCurrentTypeOfUnit$','getTypeOfUnitDisposed$','getConfig','delete','parse','next','_uiPartsService','http://www.w3.org/2000/svg','following','univer-size-4','data','77225JfVLKv','pipe','OPERATION','fill','_init','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','_liveShareService','substring','NEW_CHANGESETS','0\x200\x2017\x2017','idSuffix','PRESENTING','set','then','LIVESHARE_NEW_HOST','7rkUwWw','tryStartPresenting','_handleNewChangeSets','7XjjDKe','path','idle','_handleOperation','759048idyRNb','stopPresenting','_config','getValue','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','complete','7433730tQoJZL','ONLINE','_collabSession','defIds','none','You\x27are\x20offline.','_entities','dispose$','url(#$1','button','10992773hcrZbG','UNIVER_UNKNOWN','find','_stopPresenting','FOLLOWING','_handleNewHost','getLiveShareCoordinatorSync'];_0xad37=function(){return _0x57a4e1;};return _0xad37();}import{SetZoomRatioOperation as _0x4e0176,SetScrollOperation as _0xdcd218}from'@univerjs/sheets-ui';function k({ref:_0x4c54a8,..._0x5c0e74}){const _0x5e6d46=_0x562b47,{icon:_0x314ce7,id:_0x1a5b04,className:_0x2acdf6,extend:_0x5503e6,..._0x2067cf}=_0x5c0e74,_0x1e4a05=(_0x5e6d46(0xfb)+_0x1a5b04+'\x20'+(_0x2acdf6||''))[_0x5e6d46(0xe1)](),_0x50da95=_0x2dba5e('_'+Oe());return G(_0x314ce7,''+_0x1a5b04,{'defIds':_0x314ce7[_0x5e6d46(0x155)],'idSuffix':_0x50da95[_0x5e6d46(0xe2)]},{'ref':_0x4c54a8,'className':_0x1e4a05,..._0x2067cf},_0x5503e6);}function G(_0xac6eaa,_0x11c44e,_0x27b2d0,_0x1b95cf,_0x527ef1){const _0x2eafa7=_0x562b47;return _0x4a7a97(_0xac6eaa[_0x2eafa7(0x113)],{'key':_0x11c44e,...be(_0xac6eaa,_0x27b2d0,_0x527ef1),..._0x1b95cf},(Ee(_0xac6eaa,_0x27b2d0)[_0x2eafa7(0xdc)]||[])['map']((_0x30a889,_0x30cb91)=>G(_0x30a889,_0x11c44e+'-'+_0xac6eaa[_0x2eafa7(0x113)]+'-'+_0x30cb91,_0x27b2d0,void 0x0,_0x527ef1)));}function be(_0x885004,_0x615c6f,_0x51715f){const _0x10a47a=_0x562b47,_0x54ec7e={..._0x885004[_0x10a47a(0x10b)]};_0x51715f!=null&&_0x51715f[_0x10a47a(0xc1)]&&_0x54ec7e[_0x10a47a(0x139)]==='colorChannel1'&&(_0x54ec7e[_0x10a47a(0x139)]=_0x51715f[_0x10a47a(0xc1)]),_0x885004[_0x10a47a(0x113)]===_0x10a47a(0xc7)&&_0x54ec7e['id']&&(_0x54ec7e['id']=_0x54ec7e['id']+_0x615c6f[_0x10a47a(0x140)]),Object[_0x10a47a(0xee)](_0x54ec7e)['forEach'](([_0x2d0e81,_0x558183])=>{const _0x192f8d=_0x10a47a;_0x2d0e81===_0x192f8d(0xc7)&&typeof _0x558183==_0x192f8d(0x121)&&(_0x54ec7e[_0x2d0e81]=_0x558183[_0x192f8d(0xc6)](/url\(#(.*)\)/,'url(#$1'+_0x615c6f[_0x192f8d(0x140)]+')'));});const {defIds:_0x5d471e}=_0x615c6f;return!_0x5d471e||_0x5d471e[_0x10a47a(0xf0)]===0x0||(_0x885004['tag']==='use'&&_0x54ec7e[_0x10a47a(0xd2)]&&(_0x54ec7e[_0x10a47a(0xd2)]=_0x54ec7e[_0x10a47a(0xd2)]+_0x615c6f[_0x10a47a(0x140)]),Object[_0x10a47a(0xee)](_0x54ec7e)[_0x10a47a(0x105)](([_0x302d90,_0x37e392])=>{const _0x1a58ef=_0x10a47a;typeof _0x37e392==_0x1a58ef(0x121)&&(_0x54ec7e[_0x302d90]=_0x37e392[_0x1a58ef(0xc6)](/url\(#(.*)\)/,_0x1a58ef(0x15a)+_0x615c6f[_0x1a58ef(0x140)]+')'));})),_0x54ec7e;}function Ee(_0x30635a,_0x12daad){const _0x5c683c=_0x562b47;var _0x512872;const {defIds:_0x1c6c91}=_0x12daad;return!_0x1c6c91||_0x1c6c91[_0x5c683c(0xf0)]===0x0?_0x30635a:_0x30635a['tag']===_0x5c683c(0x109)&&((_0x512872=_0x30635a[_0x5c683c(0xdc)])!=null&&_0x512872[_0x5c683c(0xf0)])?{..._0x30635a,'children':_0x30635a[_0x5c683c(0xdc)]['map'](_0x587fc7=>typeof _0x587fc7[_0x5c683c(0x10b)]['id']==_0x5c683c(0x121)&&_0x1c6c91&&_0x1c6c91[_0x5c683c(0xf3)](_0x587fc7[_0x5c683c(0x10b)]['id'])?{..._0x587fc7,'attrs':{..._0x587fc7[_0x5c683c(0x10b)],'id':_0x587fc7[_0x5c683c(0x10b)]['id']+_0x12daad[_0x5c683c(0x140)]}}:_0x587fc7)}:_0x30635a;}function Oe(){const _0xe371e=_0x562b47;return Math['random']()[_0xe371e(0x111)](0x24)[_0xe371e(0x13d)](0x2,0x8);}k['displayName']=_0x562b47(0xd7);const we={'tag':'svg','attrs':{'xmlns':_0x562b47(0x132),'fill':_0x562b47(0x156),'viewBox':_0x562b47(0x13f),'width':_0x562b47(0x10a),'height':'1em'},'children':[{'tag':_0x562b47(0x149),'attrs':{'fill':_0x562b47(0xf6),'d':_0x562b47(0x13b)}},{'tag':'path','attrs':{'fill':_0x562b47(0xf6),'d':_0x562b47(0x150),'fillRule':'evenodd','clipRule':_0x562b47(0xcd)}}]},W=_0x424bb6(function(_0x2bcc6a,_0x58b487){const _0x2f598f=_0x562b47;return _0x4a7a97(k,Object[_0x2f598f(0xf9)]({},_0x2bcc6a,{'id':_0x2f598f(0x125),'ref':_0x58b487,'icon':we}));});W['displayName']=_0x562b47(0xdd);class L extends _0x2e50d0{constructor(){const _0x562679=_0x562b47;super(...arguments),u(this,_0x562679(0xe4),new Set()),u(this,_0x562679(0x115),new Set());}[_0x562b47(0x10c)](_0x2c2786){const _0x2f1f1b=_0x562b47;return this[_0x2f1f1b(0xe4)]['add'](_0x2c2786),_0x4271be(()=>this[_0x2f1f1b(0xe4)][_0x2f1f1b(0x12e)](_0x2c2786));}[_0x562b47(0x118)](_0x490737){const _0x33b0af=_0x562b47;return this[_0x33b0af(0x115)]['add'](_0x490737),_0x4271be(()=>this['_reporters'][_0x33b0af(0x12e)](_0x490737));}[_0x562b47(0xea)](_0x16195f){const _0x3ebe52=_0x562b47;return this[_0x3ebe52(0xe4)][_0x3ebe52(0xd8)](_0x16195f);}['getInitialStates'](_0x239faf){const _0x31ba11=_0x562b47;return Array[_0x31ba11(0x11e)](this[_0x31ba11(0x115)])['map'](_0x2e959e=>_0x2e959e(_0x239faf));}}var Ne=Object[_0x562b47(0xe8)],Y=(_0x447188,_0x169ee5,_0x1f6a5a,_0x138d9c)=>{const _0x48dd42=_0x562b47;for(var _0x5f0651=_0x138d9c>0x1?void 0x0:_0x138d9c?Ne(_0x169ee5,_0x1f6a5a):_0x169ee5,_0x539646=_0x447188[_0x48dd42(0xf0)]-0x1,_0x1854e1;_0x539646>=0x0;_0x539646--)(_0x1854e1=_0x447188[_0x539646])&&(_0x5f0651=_0x1854e1(_0x5f0651)||_0x5f0651);return _0x5f0651;},_=(_0x443ad9,_0x3b2c40)=>(_0x47b132,_0x14aaa2)=>_0x3b2c40(_0x47b132,_0x14aaa2,_0x443ad9);let S=class extends _0x51a549{constructor(_0x562fae,_0x541c70,_0x2ce976){const _0x1633b0=_0x562b47;super(),u(this,_0x1633b0(0x158),new Map()),(this[_0x1633b0(0xc3)]=_0x562fae,this[_0x1633b0(0x103)]=_0x541c70,this[_0x1633b0(0xe0)]=_0x2ce976,this[_0x1633b0(0x13a)]());}async[_0x562b47(0xcc)](_0x36b81f){const _0x4e84d8=_0x562b47;return this[_0x4e84d8(0x158)][_0x4e84d8(0xd8)](_0x36b81f)||await this['_startLiveShareCoordinator'](_0x36b81f),this['_entities'][_0x4e84d8(0xe3)](_0x36b81f);}[_0x562b47(0x162)](_0x46eade){const _0x3f0b84=_0x562b47;var _0x2c8302;return(_0x2c8302=this[_0x3f0b84(0x158)]['get'](_0x46eade))!=null?_0x2c8302:null;}[_0x562b47(0x13a)](){const _0x240901=_0x562b47;this[_0x240901(0xc3)][_0x240901(0x11f)](_0x51802f[_0x240901(0xda)])[_0x240901(0x137)](_0x37e8e1(this['dispose$']))[_0x240901(0xec)](async _0x1813e4=>{const _0x1bce96=_0x240901,_0x49fdf0=_0x1813e4[_0x1bce96(0xc4)]();this[_0x1bce96(0x158)]['has'](_0x49fdf0)||this[_0x1bce96(0xdb)](_0x49fdf0);}),this[_0x240901(0xc3)][_0x240901(0x12c)](_0x51802f[_0x240901(0xda)])[_0x240901(0x137)](_0x37e8e1(this[_0x240901(0x159)]))[_0x240901(0xec)](_0x29d9f4=>{const _0x18e5ab=_0x240901,_0x31bdcb=_0x29d9f4[_0x18e5ab(0xc4)](),_0x151a8c=this[_0x18e5ab(0x158)][_0x18e5ab(0xe3)](_0x31bdcb);_0x151a8c==null||_0x151a8c[_0x18e5ab(0x129)]();});}async[_0x562b47(0xdb)](_0x208b9b){const _0x1af5d8=_0x562b47,_0x2166f3=await this['_collabSessionService'][_0x1af5d8(0x166)](_0x208b9b),_0x70e399=this[_0x1af5d8(0x103)]['createInstance'](N,_0x208b9b,_0x2166f3);return _0x70e399[_0x1af5d8(0xca)](),this[_0x1af5d8(0x158)][_0x1af5d8(0x142)](_0x208b9b,_0x70e399),_0x70e399;}};S=Y([_(0x0,_0x187255),_(0x1,_0x264acd(_0x126a5b)),_(0x2,_0x264acd(_0x4baae7))],S);var c=(_0x51fd21=>(_0x51fd21[_0x562b47(0xe5)]=_0x562b47(0xd3),_0x51fd21[_0x562b47(0x117)]=_0x562b47(0x14a),_0x51fd21['FOLLOWING']='following',_0x51fd21['NOT_FOLLOWING']='not-following',_0x51fd21[_0x562b47(0x141)]=_0x562b47(0x101),_0x51fd21))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x51a549{constructor(_0x4335c1,_0x880e61,_0x33e4d2,_0x3837f7,_0x2a4e6f){const _0x5f297d=_0x562b47;super(),u(this,'_status$',new _0x5af6da(_0x5f297d(0x14a))),u(this,_0x5f297d(0xff),this[_0x5f297d(0x114)][_0x5f297d(0x100)]()),u(this,_0x5f297d(0x13a),!0x1),u(this,_0x5f297d(0x11d),null),u(this,_0x5f297d(0xfc),null),(this['_unitID']=_0x4335c1,this[_0x5f297d(0x154)]=_0x880e61,this[_0x5f297d(0xdf)]=_0x33e4d2,this[_0x5f297d(0x13c)]=_0x3837f7,this[_0x5f297d(0xc5)]=_0x2a4e6f);}get[_0x562b47(0x122)](){const _0x513979=_0x562b47;return this[_0x513979(0x114)][_0x513979(0x14f)]();}[_0x562b47(0x129)](){const _0x485651=_0x562b47;var _0x527930;(_0x527930=this['_commandDisposable'])==null||_0x527930[_0x485651(0x129)](),this[_0x485651(0x114)][_0x485651(0x130)](_0x485651(0x14a)),this['_status$'][_0x485651(0x151)]();}['getStatus'](){return this['_status'];}[_0x562b47(0xca)](){const _0x567d7e=_0x562b47;this[_0x567d7e(0x13a)]||(this['_init']=!0x0,this[_0x567d7e(0x154)][_0x567d7e(0x119)]['pipe'](_0x37e8e1(this[_0x567d7e(0x159)]))[_0x567d7e(0xec)](_0x20fbf8=>{const _0x41e774=_0x567d7e;switch(_0x20fbf8){case _0x50ed84[_0x41e774(0xe5)]:this[_0x41e774(0x108)]();break;case _0x50ed84[_0x41e774(0x153)]:this['_handleOnline']();break;}}),this[_0x567d7e(0x154)]['event$'][_0x567d7e(0x137)](_0x37e8e1(this[_0x567d7e(0x159)]))[_0x567d7e(0xec)](_0x29231e=>{const _0x3b50fa=_0x567d7e,{eventID:_0x3e0843}=_0x29231e;switch(_0x3e0843){case _0x301d58[_0x3b50fa(0x144)]:this[_0x3b50fa(0x161)](_0x29231e);break;case _0x301d58[_0x3b50fa(0xce)]:this[_0x3b50fa(0x14b)](_0x29231e);break;case _0x301d58[_0x3b50fa(0x120)]:this[_0x3b50fa(0x163)]();break;case _0x301d58[_0x3b50fa(0x13e)]:this['_handleNewChangeSets'](_0x29231e);break;}}));}[_0x562b47(0x146)](){const _0x525b0f=_0x562b47;this[_0x525b0f(0x154)][_0x525b0f(0xf7)]({'eventID':_0x301d58['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x525b0f(0xde)],'userID':this[_0x525b0f(0x154)][_0x525b0f(0xef)]()}},this[_0x525b0f(0xde)]);}[_0x562b47(0x14d)](){const _0xa82d6f=_0x562b47;this[_0xa82d6f(0x122)]===_0xa82d6f(0x101)&&(this['_status$']['next']('idle'),this[_0xa82d6f(0x154)]['send']({'eventID':_0x301d58['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0xa82d6f(0xde)]}},this[_0xa82d6f(0xde)]));}[_0x562b47(0x10e)](){const _0x1c3b84=_0x562b47;this['_status']===_0x1c3b84(0x124)&&(this['_status$']['next'](_0x1c3b84(0x133)),this['_startFollowing']());}['stopFollowing'](){const _0x5bb57a=_0x562b47;this[_0x5bb57a(0x122)]==='following'&&this[_0x5bb57a(0xd0)]();}['_handleNewHost'](_0x4b55fc){const _0x5b0860=_0x562b47,{presenter:_0x1290a9}=_0x4b55fc[_0x5b0860(0x135)],_0x140afc=this[_0x5b0860(0x154)][_0x5b0860(0xef)]();this[_0x5b0860(0xfc)]=_0x1290a9,_0x1290a9===_0x140afc?(this[_0x5b0860(0xd0)](),this[_0x5b0860(0x127)]()):this[_0x5b0860(0x122)]!==_0x5b0860(0x124)&&(this[_0x5b0860(0x15f)](),this['_startFollowing']());}['_fetchOperations'](){const _0x16bd35=_0x562b47,_0x5da9bb={'eventID':_0x301d58['LIVESHARE_FETCH_OPERATIONS']};this[_0x16bd35(0x154)]['send'](_0x5da9bb,this['_unitID']);}[_0x562b47(0x163)](){const _0x5acf28=_0x562b47;this[_0x5acf28(0xfc)]=null,this[_0x5acf28(0x122)]!=='presenting'&&this['_beIdle']();}[_0x562b47(0x147)](_0x1adea4){const _0x906164=_0x562b47;if(this[_0x906164(0x122)]===_0x906164(0x133)&&this[_0x906164(0xfc)]===_0x1adea4[_0x906164(0x135)]['memberID']){const _0x56ad84=_0x19d1a6(_0x1adea4[_0x906164(0x135)])['mutations'][_0x906164(0xd9)]()[_0x906164(0x15e)](_0x2c6158=>_0x2c6158['id']===_0x34d039['id']);if(_0x56ad84){const _0x1cef96=_0x56ad84['params']['unitId'],_0x1b8c4e=_0x56ad84[_0x906164(0x11b)]['sheet']['id'];setTimeout(()=>{const _0x56a571=_0x906164;this[_0x56a571(0xc5)][_0x56a571(0xe7)](_0x56bd43['id'],{'unitId':_0x1cef96,'subUnitId':_0x1b8c4e},{'fromCollab':!0x0});});}}}[_0x562b47(0x127)](){const _0x4d569f=_0x562b47;this[_0x4d569f(0x114)][_0x4d569f(0x130)](_0x4d569f(0x101));const _0x5925f2=new Map(),_0x3eac62=this[_0x4d569f(0x11d)]=new _0x43222f();_0x3eac62[_0x4d569f(0xcf)](_0x4271be(()=>{const _0x3d6ec6=_0x4d569f;_0x5925f2[_0x3d6ec6(0x105)](_0x47fc61=>_0x47fc61['complete']()),_0x5925f2['clear']();})),_0x3eac62[_0x4d569f(0xcf)](this['_commandService'][_0x4d569f(0x112)](_0x4f10df=>{const _0x37b9e2=_0x4d569f;var _0x367a07;if(_0x4f10df[_0x37b9e2(0x102)]!==_0x33f042[_0x37b9e2(0x138)]||!this[_0x37b9e2(0x13c)][_0x37b9e2(0xea)](_0x4f10df['id']))return;const {id:_0x112488}=_0x4f10df;let _0x22c586;_0x5925f2[_0x37b9e2(0xd8)](_0x112488)?_0x22c586=_0x5925f2[_0x37b9e2(0xe3)](_0x112488):(_0x22c586=new _0x8db225(),_0x5925f2[_0x37b9e2(0x142)](_0x112488,_0x22c586),_0x22c586[_0x37b9e2(0x137)](_0x225f90((_0x367a07=this[_0x37b9e2(0xdf)][_0x37b9e2(0x12d)](Ce))!=null?_0x367a07:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x37b9e2(0xec)](_0x4d333a=>{const _0x4d27f1=_0x37b9e2;this[_0x4d27f1(0x154)]['send']({'eventID':_0x301d58[_0x4d27f1(0xce)],'data':{'unitID':this[_0x4d27f1(0xde)],'operations':{[_0x4d333a['id']]:{'id':_0x4d333a['id'],'params':JSON[_0x4d27f1(0xd6)](_0x4d333a['params'])}}}},this[_0x4d27f1(0xde)]);})),_0x22c586[_0x37b9e2(0x130)](_0x4f10df);})),this[_0x4d569f(0x13c)][_0x4d569f(0xe6)](this['_unitID'])['forEach'](_0x323d5a=>this[_0x4d569f(0x154)][_0x4d569f(0xf7)]({'eventID':_0x301d58[_0x4d569f(0xce)],'data':{'unitID':this[_0x4d569f(0xde)],'operations':{[_0x323d5a['id']]:{'id':_0x323d5a['id'],'params':JSON[_0x4d569f(0xd6)](_0x323d5a[_0x4d569f(0x11b)])}}}},this[_0x4d569f(0xde)]));}['_stopPresenting'](){const _0x36c595=_0x562b47;var _0x43ce6d;this[_0x36c595(0x114)]['next']('idle'),(_0x43ce6d=this['_commandDisposable'])==null||_0x43ce6d[_0x36c595(0x129)](),this['_commandDisposable']=null;}[_0x562b47(0xd5)](){const _0x4748b7=_0x562b47;var _0x376b01;(_0x376b01=this[_0x4748b7(0x11d)])==null||_0x376b01[_0x4748b7(0x129)](),this['_status$'][_0x4748b7(0x130)](_0x4748b7(0x133));}[_0x562b47(0xf4)](){const _0x4c49c9=_0x562b47;var _0xa33ed8;this['_status$'][_0x4c49c9(0x130)]('idle'),(_0xa33ed8=this[_0x4c49c9(0x11d)])==null||_0xa33ed8[_0x4c49c9(0x129)](),this[_0x4c49c9(0x11d)]=null;}[_0x562b47(0xd0)](){const _0x356afa=_0x562b47;var _0x3b0322;this[_0x356afa(0x114)][_0x356afa(0x130)]('not-following'),(_0x3b0322=this[_0x356afa(0x11d)])==null||_0x3b0322[_0x356afa(0x129)]();}[_0x562b47(0x14b)](_0x1eaf46){const _0x1bf23c=_0x562b47;if([_0x1bf23c(0x101),_0x1bf23c(0x124),_0x1bf23c(0xd3)][_0x1bf23c(0xf3)](this[_0x1bf23c(0x122)])||!_0x1eaf46[_0x1bf23c(0x135)][_0x1bf23c(0xf5)]||_0x1eaf46[_0x1bf23c(0x135)][_0x1bf23c(0xf5)]===this['_collabSession']['getMemberID']())return;this[_0x1bf23c(0x122)]===_0x1bf23c(0x14a)&&this[_0x1bf23c(0xd5)]();const _0x3e2d4e=_0x1eaf46[_0x1bf23c(0x135)][_0x1bf23c(0xfe)];Object[_0x1bf23c(0x167)](_0x3e2d4e)[_0x1bf23c(0x105)](_0x367c4c=>{const _0x5111c2=_0x1bf23c;this['_commandService'][_0x5111c2(0xe7)](_0x367c4c['id'],_0x367c4c['params']?JSON[_0x5111c2(0x12f)](_0x367c4c[_0x5111c2(0x11b)]):null,{'fromCollab':!0x0});});}[_0x562b47(0x108)](){const _0x3fb4bc=_0x562b47;var _0x25d51f;this[_0x3fb4bc(0x114)][_0x3fb4bc(0x130)](_0x3fb4bc(0xd3)),(_0x25d51f=this['_commandDisposable'])==null||_0x25d51f[_0x3fb4bc(0x129)]();}[_0x562b47(0x165)](){const _0x2125bc=_0x562b47;this[_0x2125bc(0x114)][_0x2125bc(0x130)](_0x2125bc(0x14a)),this[_0x2125bc(0xf8)]();}};N=Y([_(0x2,_0x974748),_(0x3,_0x264acd(L)),_(0x4,_0x105090)],N);function Le(){const _0x4a6c4b=_0x562b47,_0x46f034=_0x38dad9(S),_0x4b5495=_0x38dad9(_0x187255),_0x357f80=_0x14a93c(()=>_0x4b5495[_0x4a6c4b(0x12b)](_0x51802f[_0x4a6c4b(0xda)]),void 0x0,!0x1,[]),[_0x321261,_0x2b483d]=_0x555c58(null),[_0x39da3e,_0x487c08]=_0x555c58(c[_0x4a6c4b(0x117)]),_0x5c9aba=_0x2dba5e(null);return _0x22e887(()=>(_0x357f80&&_0x46f034[_0x4a6c4b(0xcc)](_0x357f80[_0x4a6c4b(0xc4)]())[_0x4a6c4b(0x143)](_0x58b38f=>{const _0x41f29a=_0x4a6c4b;_0x2b483d(_0x58b38f),_0x5c9aba['current']=_0x58b38f[_0x41f29a(0xff)][_0x41f29a(0xec)](_0x3a5734=>{_0x487c08(_0x3a5734);});}),()=>{const _0x5053c7=_0x4a6c4b;var _0x4e470b;(_0x4e470b=_0x5c9aba[_0x5053c7(0xe2)])==null||_0x4e470b[_0x5053c7(0x10d)](),_0x5c9aba['current']=null;}),[_0x357f80,_0x46f034]),_0x321261?_0x33bb7b(_0x5079de,{'align':_0x4a6c4b(0x110),'disabled':_0x39da3e===c[_0x4a6c4b(0xe5)],'className':_0x4a6c4b(0xf1),'overlay':_0x33bb7b(Re,{'status':_0x39da3e,'coordinator':_0x321261}),'children':_0x33bb7b(_0x4a6c4b(0x15b),{'className':_0x54f579(_0x4a6c4b(0xf2),{'univer-cursor-not-allowed':_0x39da3e===c[_0x4a6c4b(0xe5)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x39da3e!==c[_0x4a6c4b(0xe5)]}),'type':_0x4a6c4b(0x15b),'children':_0x33bb7b(W,{'className':_0x4a6c4b(0x134)})})}):null;}function Re(_0xcd5400){const _0x5cb8f9=_0x562b47,{status:_0xf6ff60,coordinator:_0x103430}=_0xcd5400;switch(_0xf6ff60){case c[_0x5cb8f9(0x117)]:return _0x33bb7b($e,{'coordinator':_0x103430});case c[_0x5cb8f9(0x160)]:return _0x33bb7b(xe,{'coordinator':_0x103430});case c[_0x5cb8f9(0xed)]:return _0x33bb7b(Pe,{'coordinator':_0x103430});case c[_0x5cb8f9(0xe5)]:return _0x33bb7b(Te,{});case c[_0x5cb8f9(0x141)]:return _0x33bb7b(Ae,{'coordinator':_0x103430});default:return null;}}function $e(_0xfe284e){const _0x49706d=_0x562b47,{coordinator:_0x41fae0}=_0xfe284e;return _0x4dcdb8(_0x967f7f,{'children':[_0x33bb7b(_0x49706d(0x11c),{'className':_0x49706d(0x11a),'children':_0x49706d(0xfd)}),_0x33bb7b(_0x468343,{'onClick':()=>_0x41fae0[_0x49706d(0x146)](),'children':'Start'})]});}function xe(_0xea0781){const _0x59e65e=_0x562b47,{coordinator:_0x3077cf}=_0xea0781;return _0x4dcdb8(_0x967f7f,{'children':[_0x33bb7b(_0x59e65e(0x11c),{'className':_0x59e65e(0x11a),'children':_0x59e65e(0x123)}),_0x33bb7b(_0x468343,{'onClick':()=>_0x3077cf[_0x59e65e(0xd4)](),'children':'Stop\x20following'})]});}function Pe(_0x17c015){const _0x173e7b=_0x562b47,{coordinator:_0x5e2ed2}=_0x17c015;return _0x4dcdb8(_0x967f7f,{'children':[_0x33bb7b('div',{'className':_0x173e7b(0x11a),'children':_0x173e7b(0x107)}),_0x33bb7b(_0x468343,{'variant':_0x173e7b(0x116),'onClick':()=>_0x5e2ed2[_0x173e7b(0x10e)](),'children':'Start\x20following'})]});}function _0x465d(_0x3d6d8f,_0x39997c){_0x3d6d8f=_0x3d6d8f-0xc1;const _0xad37bf=_0xad37();let _0x465d9f=_0xad37bf[_0x3d6d8f];return _0x465d9f;}function Ae(_0x338c7b){const _0xca71c4=_0x562b47,{coordinator:_0x1aef68}=_0x338c7b;return _0x4dcdb8(_0x967f7f,{'children':[_0x33bb7b(_0xca71c4(0x11c),{'className':_0xca71c4(0x11a),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x33bb7b(_0x468343,{'variant':_0xca71c4(0x104),'onClick':()=>_0x1aef68[_0xca71c4(0x14d)](),'children':_0xca71c4(0xc8)})]});}function Te(){const _0x371d4c=_0x562b47;return _0x33bb7b(_0x967f7f,{'children':_0x371d4c(0x157)});}var Fe=Object[_0x562b47(0xe8)],He=(_0x3efd5d,_0x30871a,_0x33d905,_0x4119a7)=>{for(var _0x47ffec=_0x4119a7>0x1?void 0x0:_0x4119a7?Fe(_0x30871a,_0x33d905):_0x30871a,_0x1b80fe=_0x3efd5d['length']-0x1,_0x213264;_0x1b80fe>=0x0;_0x1b80fe--)(_0x213264=_0x3efd5d[_0x1b80fe])&&(_0x47ffec=_0x213264(_0x47ffec)||_0x47ffec);return _0x47ffec;},A=(_0x4c9b00,_0x3defb5)=>(_0x434d3a,_0x582c0c)=>_0x3defb5(_0x434d3a,_0x582c0c,_0x4c9b00);let m=class extends _0x2e50d0{constructor(_0x33f367,_0x44a88a){const _0x4b3204=_0x562b47;super(),this[_0x4b3204(0x103)]=_0x33f367,this[_0x4b3204(0x131)]=_0x44a88a,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x4db92a=_0x562b47;this[_0x4db92a(0xcb)](this[_0x4db92a(0x131)][_0x4db92a(0x106)](_0x2de438['HEADER_MENU'],()=>_0x183c2b(Le,this[_0x4db92a(0x103)])));}};m=He([A(0x0,_0x264acd(_0x126a5b)),A(0x1,_0x28a6aa)],m);const ye='live-share.config',T={};var Ue=Object[_0x562b47(0xe8)],Ve=(_0x5ca6a7,_0x2b3f17,_0x496a25,_0x405d8c)=>{const _0x56bbb8=_0x562b47;for(var _0x5a0f03=_0x405d8c>0x1?void 0x0:_0x405d8c?Ue(_0x2b3f17,_0x496a25):_0x2b3f17,_0x33f87f=_0x5ca6a7[_0x56bbb8(0xf0)]-0x1,_0x110241;_0x33f87f>=0x0;_0x33f87f--)(_0x110241=_0x5ca6a7[_0x33f87f])&&(_0x5a0f03=_0x110241(_0x5a0f03)||_0x5a0f03);return _0x5a0f03;},je=(_0x368bdf,_0x5f58f2)=>(_0x4901b3,_0x4bfac9)=>_0x5f58f2(_0x4901b3,_0x4bfac9,_0x368bdf);let I=class extends _0x2e50d0{constructor(_0xf15733){const _0x3e77f3=_0x562b47;super(),this[_0x3e77f3(0x13c)]=_0xf15733,this[_0x3e77f3(0x13a)]();}['_init'](){const _0x29fecc=_0x562b47;[_0x4e0176['id'],_0xdcd218['id'],_0x56bd43['id']][_0x29fecc(0x105)](_0x9f8534=>{const _0x15a010=_0x29fecc;this[_0x15a010(0xcb)](this[_0x15a010(0x13c)][_0x15a010(0x10c)](_0x9f8534));});}};I=Ve([je(0x0,_0x264acd(L))],I);var Me=Object[_0x562b47(0xe9)],ke=Object[_0x562b47(0xe8)],Ge=(_0x478195,_0x55241a,_0x3a2b8a)=>_0x55241a in _0x478195?Me(_0x478195,_0x55241a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a2b8a}):_0x478195[_0x55241a]=_0x3a2b8a,We=(_0x35fe86,_0x39fabc,_0x1c7658,_0x12c030)=>{const _0x23fed1=_0x562b47;for(var _0x46c4ee=_0x12c030>0x1?void 0x0:_0x12c030?ke(_0x39fabc,_0x1c7658):_0x39fabc,_0x425e53=_0x35fe86[_0x23fed1(0xf0)]-0x1,_0xcbbbcc;_0x425e53>=0x0;_0x425e53--)(_0xcbbbcc=_0x35fe86[_0x425e53])&&(_0x46c4ee=_0xcbbbcc(_0x46c4ee)||_0x46c4ee);return _0x46c4ee;},F=(_0xf7d262,_0x5c51ae)=>(_0x37ffa7,_0x22314d)=>_0x5c51ae(_0x37ffa7,_0x22314d,_0xf7d262),B=(_0x281cd1,_0x57b597,_0x5bc9c6)=>Ge(_0x281cd1,typeof _0x57b597!=_0x562b47(0x10f)?_0x57b597+'':_0x57b597,_0x5bc9c6);const Ye=_0x562b47(0xc2);let b=class extends _0x1130c7{constructor(_0x32209a=T,_0x3c6ecf,_0x4cae29){const _0x579846=_0x562b47;super(),this[_0x579846(0x14e)]=_0x32209a,this['_injector']=_0x3c6ecf,this[_0x579846(0xdf)]=_0x4cae29;const {..._0x1bd3dc}=_0xb0c13e({},T,this[_0x579846(0x14e)]);this[_0x579846(0xdf)]['setConfig'](ye,_0x1bd3dc);}[_0x562b47(0xc9)](){const _0x5c9daf=_0x562b47;_0x333ef5(this['_injector'],_0x3d1a15([[L],[S],[I],[m]],this['_config'][_0x5c9daf(0x126)])),_0x1c3957(this[_0x5c9daf(0x103)],[[I]]);}[_0x562b47(0xfa)](){const _0xbd4a61=_0x562b47;_0x1c3957(this[_0xbd4a61(0x103)],[[m]]);}};B(b,_0x562b47(0x102),_0x51802f[_0x562b47(0x15d)]),B(b,'pluginName',Ye),b=We([_0x411c47(_0x4e7d3f),F(0x1,_0x264acd(_0x126a5b)),F(0x2,_0x974748)],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
|
-
const
|
|
1
|
+
const _0x24166c=_0x3ebb;(function(_0x4bc593,_0x370fc6){const _0x1cbe62=_0x3ebb,_0x846535=_0x4bc593();while(!![]){try{const _0x427d9b=parseInt(_0x1cbe62(0x1ef))/0x1*(-parseInt(_0x1cbe62(0x1de))/0x2)+parseInt(_0x1cbe62(0x1dd))/0x3*(parseInt(_0x1cbe62(0x1f3))/0x4)+parseInt(_0x1cbe62(0x1ed))/0x5+-parseInt(_0x1cbe62(0x1e3))/0x6*(parseInt(_0x1cbe62(0x1e5))/0x7)+parseInt(_0x1cbe62(0x1f0))/0x8+parseInt(_0x1cbe62(0x1ea))/0x9+parseInt(_0x1cbe62(0x1f4))/0xa*(-parseInt(_0x1cbe62(0x1e9))/0xb);if(_0x427d9b===_0x370fc6)break;else _0x846535['push'](_0x846535['shift']());}catch(_0x678898){_0x846535['push'](_0x846535['shift']());}}}(_0x38fc,0x624a1));import{LiveShareController as _0x5e83ad,LiveShareStatus as _0x4eb2b0}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x302a99}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x573ce7}from'@univerjs/sheets';import{SetScrollOperation as _0x47a08b}from'@univerjs/sheets-ui';import{FRange as _0x21eaf}from'@univerjs/sheets/facade';import{FUniver as _0x39e2b7,FEnum as _0x2fbdb8}from'@univerjs/core/facade';class I extends _0x21eaf{[_0x24166c(0x1f8)](_0x34e46d,_0x3282f0,_0x461920,_0x541a2a,_0x5e60a5){const _0x5a8760=_0x24166c,_0x39e709=_0x34e46d[_0x5a8760(0x1f2)](_0x5e83ad),_0x2358c8=_0x34e46d[_0x5a8760(0x1f2)](_0x302a99),_0x5a9e95=_0x3282f0[_0x5a8760(0x1f6)](),_0x5a7e6a=_0x3282f0['getActiveSheet'](),_0x4c1850=_0x39e709['getLiveShareCoordinatorSync'](_0x5a9e95);(_0x4c1850==null?void 0x0:_0x4c1850[_0x5a8760(0x1e8)]())!==_0x4eb2b0[_0x5a8760(0x1ec)]||(_0x461920[_0x5a8760(0x1e6)]()!==_0x5a7e6a[_0x5a8760(0x1e6)]()&&this[_0x5a8760(0x1e0)]['executeCommand'](_0x573ce7['id'],{'unitId':_0x5a9e95,'subUnitId':_0x461920['getSheetId']()}),!_0x2358c8['getRenderById'](_0x5a9e95))||_0x5e60a5['syncExecuteCommand'](_0x47a08b['id'],{'unitId':_0x3282f0['getUnitId'](),'sheetId':_0x461920[_0x5a8760(0x1e6)](),'sheetViewStartRow':_0x541a2a['startRow'],'sheetViewStartColumn':_0x541a2a[_0x5a8760(0x1f1)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x21eaf[_0x24166c(0x1f9)](I);class m extends _0x39e2b7{[_0x24166c(0x1da)](){const _0x198ffc=_0x24166c;var _0x47a616,_0x196b91;const _0x482dbb=this[_0x198ffc(0x1f7)]['get'](_0x5e83ad),_0x314075=(_0x47a616=this[_0x198ffc(0x1fa)]())==null?void 0x0:_0x47a616[_0x198ffc(0x1dc)]();if(!_0x314075)throw new Error('No\x20active\x20workbook\x20found.');const _0x5a4ede=_0x482dbb[_0x198ffc(0x1eb)](_0x314075);return(_0x196b91=_0x5a4ede==null?void 0x0:_0x5a4ede[_0x198ffc(0x1e8)]())!=null?_0x196b91:_0x4eb2b0['IDLE'];}[_0x24166c(0x1e4)](){const _0x4ba23f=_0x24166c;var _0xfbec74;const _0x268505=this[_0x4ba23f(0x1f7)][_0x4ba23f(0x1f2)](_0x5e83ad),_0x13fb51=(_0xfbec74=this[_0x4ba23f(0x1fa)]())==null?void 0x0:_0xfbec74[_0x4ba23f(0x1dc)]();if(!_0x13fb51)throw new Error('No\x20active\x20workbook\x20found.');const _0x3e90a3=_0x268505[_0x4ba23f(0x1eb)](_0x13fb51);if(!_0x3e90a3)throw new Error(_0x4ba23f(0x1df));_0x3e90a3[_0x4ba23f(0x1e4)]();}[_0x24166c(0x1e2)](){const _0x1bf3f3=_0x24166c;var _0x1e86c0;const _0x5c684d=this['_injector']['get'](_0x5e83ad),_0x4fe1a7=(_0x1e86c0=this[_0x1bf3f3(0x1fa)]())==null?void 0x0:_0x1e86c0[_0x1bf3f3(0x1dc)]();if(!_0x4fe1a7)throw new Error(_0x1bf3f3(0x1e1));const _0x5d5b2d=_0x5c684d[_0x1bf3f3(0x1eb)](_0x4fe1a7);if(!_0x5d5b2d)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5d5b2d[_0x1bf3f3(0x1e2)]();}[_0x24166c(0x1f5)](){const _0x3edf1f=_0x24166c;var _0x575d56;const _0x1f2222=this[_0x3edf1f(0x1f7)][_0x3edf1f(0x1f2)](_0x5e83ad),_0x20cf83=(_0x575d56=this['getActiveWorkbook']())==null?void 0x0:_0x575d56['getId']();if(!_0x20cf83)throw new Error(_0x3edf1f(0x1e1));const _0x3871e0=_0x1f2222['getLiveShareCoordinatorSync'](_0x20cf83);if(!_0x3871e0)throw new Error(_0x3edf1f(0x1df));_0x3871e0[_0x3edf1f(0x1e7)]();}[_0x24166c(0x1ee)](){const _0x1b56a9=_0x24166c;var _0x40f4d1;const _0x1955b1=this[_0x1b56a9(0x1f7)]['get'](_0x5e83ad),_0x4038a4=(_0x40f4d1=this['getActiveWorkbook']())==null?void 0x0:_0x40f4d1[_0x1b56a9(0x1dc)]();if(!_0x4038a4)throw new Error('No\x20active\x20workbook\x20found.');const _0x5705ff=_0x1955b1[_0x1b56a9(0x1eb)](_0x4038a4);if(!_0x5705ff)throw new Error(_0x1b56a9(0x1df));_0x5705ff['stopPresenting']();}}_0x39e2b7[_0x24166c(0x1f9)](m);class C extends _0x2fbdb8{get[_0x24166c(0x1db)](){return _0x4eb2b0;}}_0x2fbdb8[_0x24166c(0x1f9)](C);function _0x3ebb(_0xe20dd6,_0x236789){_0xe20dd6=_0xe20dd6-0x1da;const _0x38fc91=_0x38fc();let _0x3ebbbf=_0x38fc91[_0xe20dd6];return _0x3ebbbf;}function _0x38fc(){const _0x59c522=['stopFollowing','696ZSgRHT','startFollowing','28609ywBxcu','getSheetId','tryStartPresenting','getStatus','1007281uTqHuj','6840027VcvfnO','getLiveShareCoordinatorSync','PRESENTING','3999395qloBpm','stopPresenting','131849NxkiuM','215992hWBRZO','startColumn','get','4vnnToV','50kvaZEg','startPresenting','getUnitId','_injector','_initialize','extend','getActiveWorkbook','getLiveShareStatus','LiveShareStatusEnum','getId','34071fJEWOk','4koGiSm','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','_commandService','No\x20active\x20workbook\x20found.'];_0x38fc=function(){return _0x59c522;};return _0x38fc();}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x480de2=_0x3214;(function(_0x5b4f45,_0x275d27){const _0x10c06c=_0x3214,_0x4efa24=_0x5b4f45();while(!![]){try{const _0x31c00a=-parseInt(_0x10c06c(0xbb))/0x1*(-parseInt(_0x10c06c(0x10f))/0x2)+-parseInt(_0x10c06c(0xda))/0x3+-parseInt(_0x10c06c(0xbd))/0x4+-parseInt(_0x10c06c(0x117))/0x5*(-parseInt(_0x10c06c(0xfc))/0x6)+parseInt(_0x10c06c(0x8c))/0x7*(-parseInt(_0x10c06c(0x84))/0x8)+-parseInt(_0x10c06c(0x121))/0x9+parseInt(_0x10c06c(0x92))/0xa*(parseInt(_0x10c06c(0xae))/0xb);if(_0x31c00a===_0x275d27)break;else _0x4efa24['push'](_0x4efa24['shift']());}catch(_0x37728f){_0x4efa24['push'](_0x4efa24['shift']());}}}(_0x4f88,0x81f47));var J=Object['defineProperty'],K=(_0x461ca2,_0x4fd856,_0x413d35)=>_0x4fd856 in _0x461ca2?J(_0x461ca2,_0x4fd856,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x413d35}):_0x461ca2[_0x4fd856]=_0x413d35,u=(_0x5b1943,_0x3e3b9e,_0x253d78)=>K(_0x5b1943,typeof _0x3e3b9e!=_0x480de2(0x106)?_0x3e3b9e+'':_0x3e3b9e,_0x253d78);import{Disposable as _0x445766,toDisposable as _0x5b0e28,IUniverInstanceService as _0x59e319,Inject as _0x31d8e9,Injector as _0x4d1ef7,IConfigService as _0xea2396,ICommandService as _0x358f4b,RxDisposable as _0x22ff37,UniverInstanceType as _0x1e0e7d,DisposableCollection as _0xb8bf1f,CommandType as _0x2baff1,DependentOn as _0x2532bd,Plugin as _0x218f1f,merge as _0x477aae,registerDependencies as _0xaed711,mergeOverrideWithDependencies as _0xb0235f,touchDependencies as _0xd465dc}from'@univerjs/core';import{useDependency as _0x5b95cb,useObservable as _0x477adc,IUIPartsService as _0x1618ae,BuiltInUIPart as _0x589e20,connectInjector as _0x2bfcca}from'@univerjs/ui';import{jsx as _0x4f48f3,jsxs as _0x4070ad,Fragment as _0x5480f9}from'react/jsx-runtime';import{Dropdown as _0x43303b,clsx as _0x219d87,Button as _0x5f10a4}from'@univerjs/design';import{useRef as _0x2d1821,createElement as _0x4e41ac,forwardRef as _0x46ea63,useState as _0x3126fc,useEffect as _0x42fb54}from'react';import{CollaborationEvent as _0x5cbca8,parseProtocolChangeset as _0x432e75}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x23bc86,SessionStatus as _0x1d465d,UniverCollaborationClientPlugin as _0x1e0ea8}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x29dcc9,SetWorksheetActiveOperation as _0x42d600}from'@univerjs/sheets';import{BehaviorSubject as _0x2d7f44,Subject as _0x35191d}from'rxjs';import{takeUntil as _0x227b42,throttleTime as _0x55381b}from'rxjs/operators';import{SetZoomRatioOperation as _0xee7cd,SetScrollOperation as _0x504137}from'@univerjs/sheets-ui';function k({ref:_0x1f377f,..._0x2b47fb}){const _0x59af70=_0x480de2,{icon:_0x39cd92,id:_0xa0f525,className:_0x4aa8ae,extend:_0x336fd9,..._0x504ac5}=_0x2b47fb,_0xbc87d8=(_0x59af70(0xa0)+_0xa0f525+'\x20'+(_0x4aa8ae||''))[_0x59af70(0xc9)](),_0x3ecab3=_0x2d1821('_'+Oe());return G(_0x39cd92,''+_0xa0f525,{'defIds':_0x39cd92['defIds'],'idSuffix':_0x3ecab3[_0x59af70(0x107)]},{'ref':_0x1f377f,'className':_0xbc87d8,..._0x504ac5},_0x336fd9);}function G(_0x8e1b9e,_0x4d9c84,_0x12c0b1,_0x4d9bee,_0x2a75a1){const _0x33094c=_0x480de2;return _0x4e41ac(_0x8e1b9e['tag'],{'key':_0x4d9c84,...be(_0x8e1b9e,_0x12c0b1,_0x2a75a1),..._0x4d9bee},(Ee(_0x8e1b9e,_0x12c0b1)[_0x33094c(0xb8)]||[])[_0x33094c(0x119)]((_0x451e06,_0x4c8de1)=>G(_0x451e06,_0x4d9c84+'-'+_0x8e1b9e[_0x33094c(0xf2)]+'-'+_0x4c8de1,_0x12c0b1,void 0x0,_0x2a75a1)));}function be(_0x16dc26,_0x2470f7,_0x4b0b64){const _0x37b053=_0x480de2,_0x3ba049={..._0x16dc26[_0x37b053(0xc5)]};_0x4b0b64!=null&&_0x4b0b64[_0x37b053(0xd9)]&&_0x3ba049[_0x37b053(0x112)]===_0x37b053(0xd9)&&(_0x3ba049['fill']=_0x4b0b64[_0x37b053(0xd9)]),_0x16dc26[_0x37b053(0xf2)]===_0x37b053(0xbe)&&_0x3ba049['id']&&(_0x3ba049['id']=_0x3ba049['id']+_0x2470f7['idSuffix']),Object[_0x37b053(0x11b)](_0x3ba049)[_0x37b053(0x11d)](([_0x5e987c,_0x16d5a5])=>{const _0x4f4e2b=_0x37b053;_0x5e987c==='mask'&&typeof _0x16d5a5==_0x4f4e2b(0x8f)&&(_0x3ba049[_0x5e987c]=_0x16d5a5[_0x4f4e2b(0xc4)](/url\(#(.*)\)/,_0x4f4e2b(0xaa)+_0x2470f7[_0x4f4e2b(0xef)]+')'));});const {defIds:_0x288fc2}=_0x2470f7;return!_0x288fc2||_0x288fc2[_0x37b053(0xbf)]===0x0||(_0x16dc26['tag']==='use'&&_0x3ba049[_0x37b053(0xab)]&&(_0x3ba049['xlink:href']=_0x3ba049['xlink:href']+_0x2470f7[_0x37b053(0xef)]),Object[_0x37b053(0x11b)](_0x3ba049)[_0x37b053(0x11d)](([_0x52a9f0,_0x2196f9])=>{const _0x2e47d9=_0x37b053;typeof _0x2196f9==_0x2e47d9(0x8f)&&(_0x3ba049[_0x52a9f0]=_0x2196f9[_0x2e47d9(0xc4)](/url\(#(.*)\)/,_0x2e47d9(0xaa)+_0x2470f7['idSuffix']+')'));})),_0x3ba049;}function _0x4f88(){const _0x44b2af=['univer-size-4','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','_fetchOperations','_commandService','pipe','getInitialStates','currentColor','end','LIVESHARE_NEW_HOST','registerComponent','_handleOnline','colorChannel1','2916078oYCONN','_status','Stop\x20following','_stopPresenting','You\x27re\x20presenting\x20the\x20document','path','_unitID','disposeWithMe','div','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','LIVESHARE_OPERATION','_status$','_liveShareService','Present\x20this\x20document','shouldShareOperation','has','Stop\x20presenting','UNIVER_SHEET','dispose$','PRESENTING','_startFollowing','idSuffix','UniverIcon','NEW_CHANGESETS','tag','LIVESHARE_TERMINATE','getLiveShareCoordinator','requireSession','_startPresenting','OFFLINE','LiveShareIcon','You\x27are\x20offline.','_configService','_univerInstanceService','28746NtXJEV','dispose','delete','idle','sessionStatus$','event$','_injector','getOwnPropertyDescriptor','none','IDLE','symbol','current','defineProperty','stopFollowing','HEADER_MENU','_handleOperation','setConfig','1em','_reporters','2638JazVTb','assign','defs','fill','type','subscribe','LIVESHARE_REQUEST_HOST','stringify','435lgdCCJ','_handleOffline','map','includes','entries','live-share-icon','forEach','_stopFollowing','_commandDisposable','following','8406279PXjokW','_startLiveShareCoordinator','getUnitId','executeCommand','toString','_uiPartsService','startFollowing','_init','37096NHKPto','init','onStarting','evenodd','_entities','presenting','_collabSessionService','univer-mb-3\x20univer-w-full\x20univer-text-sm','287bLhYqU','OPERATION','live-share.config','string','Start\x20following','FOLLOWING','6230bZgPbI','_config','svg','send','_beIdle','Start','params','tryStartPresenting','not-following','getTypeOfUnitDisposed$','getConfig','getTypeOfUnitAdded$','sheet','data','univerjs-icon\x20univerjs-icon-','UNIVER_UNKNOWN','pluginName','onCommandExecuted','get','next','_mountLiveShare','getLiveShareCoordinatorSync','complete','offline','url(#$1','xlink:href','_presenter','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','40304BMcGXR','reverse','stopPresenting','add','NOT_FOLLOWING','displayName','_handleNewHost','unitId','registerSharedOperation','_handleTerminate','children','getMemberID','from','31pQmyzD','_sharedOperations','447636cnNcDg','mask','length','getValue','set','onRendered','asObservable','replace','attrs','presenter','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','getCurrentTypeOfUnit$','trim','SAME_OPERATION_SHARE_INTERVAL','override','_collabSession','status$'];_0x4f88=function(){return _0x44b2af;};return _0x4f88();}function Ee(_0x3b253d,_0x1a020c){const _0xb4951d=_0x480de2;var _0x253c02;const {defIds:_0x210575}=_0x1a020c;return!_0x210575||_0x210575['length']===0x0?_0x3b253d:_0x3b253d['tag']===_0xb4951d(0x111)&&((_0x253c02=_0x3b253d[_0xb4951d(0xb8)])!=null&&_0x253c02['length'])?{..._0x3b253d,'children':_0x3b253d[_0xb4951d(0xb8)][_0xb4951d(0x119)](_0xbea93e=>typeof _0xbea93e[_0xb4951d(0xc5)]['id']==_0xb4951d(0x8f)&&_0x210575&&_0x210575[_0xb4951d(0x11a)](_0xbea93e['attrs']['id'])?{..._0xbea93e,'attrs':{..._0xbea93e[_0xb4951d(0xc5)],'id':_0xbea93e[_0xb4951d(0xc5)]['id']+_0x1a020c[_0xb4951d(0xef)]}}:_0xbea93e)}:_0x3b253d;}function Oe(){const _0x18f0fe=_0x480de2;return Math['random']()[_0x18f0fe(0x80)](0x24)['substring'](0x2,0x8);}k['displayName']=_0x480de2(0xf0);const we={'tag':_0x480de2(0x94),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x480de2(0x104),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x480de2(0x10d)},'children':[{'tag':_0x480de2(0xdf),'attrs':{'fill':_0x480de2(0xd4),'d':_0x480de2(0xcf)}},{'tag':'path','attrs':{'fill':_0x480de2(0xd4),'d':_0x480de2(0xe3),'fillRule':'evenodd','clipRule':_0x480de2(0x87)}}]},W=_0x46ea63(function(_0x3df12e,_0x413554){const _0x4cba78=_0x480de2;return _0x4e41ac(k,Object[_0x4cba78(0x110)]({},_0x3df12e,{'id':_0x4cba78(0x11c),'ref':_0x413554,'icon':we}));});W[_0x480de2(0xb3)]=_0x480de2(0xf8);class L extends _0x445766{constructor(){const _0x2f1256=_0x480de2;super(...arguments),u(this,_0x2f1256(0xbc),new Set()),u(this,_0x2f1256(0x10e),new Set());}['registerSharedOperation'](_0x9e9e4d){const _0x10aa7c=_0x480de2;return this['_sharedOperations'][_0x10aa7c(0xb1)](_0x9e9e4d),_0x5b0e28(()=>this[_0x10aa7c(0xbc)]['delete'](_0x9e9e4d));}['registerInitialStateReporter'](_0x260e19){const _0x2aecc4=_0x480de2;return this['_reporters'][_0x2aecc4(0xb1)](_0x260e19),_0x5b0e28(()=>this[_0x2aecc4(0x10e)][_0x2aecc4(0xfe)](_0x260e19));}['shouldShareOperation'](_0x2c5c2a){const _0x442917=_0x480de2;return this['_sharedOperations'][_0x442917(0xe9)](_0x2c5c2a);}['getInitialStates'](_0x1c0749){const _0x233238=_0x480de2;return Array[_0x233238(0xba)](this['_reporters'])[_0x233238(0x119)](_0x352188=>_0x352188(_0x1c0749));}}var Ne=Object[_0x480de2(0x103)],Y=(_0x478bc7,_0x580242,_0x5199e8,_0x1b7626)=>{const _0x58404b=_0x480de2;for(var _0x2b03cb=_0x1b7626>0x1?void 0x0:_0x1b7626?Ne(_0x580242,_0x5199e8):_0x580242,_0x49e4fc=_0x478bc7[_0x58404b(0xbf)]-0x1,_0x2a0e1e;_0x49e4fc>=0x0;_0x49e4fc--)(_0x2a0e1e=_0x478bc7[_0x49e4fc])&&(_0x2b03cb=_0x2a0e1e(_0x2b03cb)||_0x2b03cb);return _0x2b03cb;},_=(_0x1ee860,_0x48db45)=>(_0xa68f8c,_0x30646c)=>_0x48db45(_0xa68f8c,_0x30646c,_0x1ee860);let S=class extends _0x22ff37{constructor(_0x53007f,_0x36da91,_0x3de8a0){const _0x3824a1=_0x480de2;super(),u(this,_0x3824a1(0x88),new Map()),(this['_univerInstanceService']=_0x53007f,this['_injector']=_0x36da91,this[_0x3824a1(0x8a)]=_0x3de8a0,this['_init']());}async[_0x480de2(0xf4)](_0xdeef36){const _0x42f639=_0x480de2;return this[_0x42f639(0x88)][_0x42f639(0xe9)](_0xdeef36)||await this[_0x42f639(0x7d)](_0xdeef36),this[_0x42f639(0x88)][_0x42f639(0xa4)](_0xdeef36);}[_0x480de2(0xa7)](_0x3f6404){const _0x23f827=_0x480de2;var _0x1f01d4;return(_0x1f01d4=this['_entities'][_0x23f827(0xa4)](_0x3f6404))!=null?_0x1f01d4:null;}[_0x480de2(0x83)](){const _0x404733=_0x480de2;this[_0x404733(0xfb)][_0x404733(0x9d)](_0x1e0e7d[_0x404733(0xeb)])[_0x404733(0xd2)](_0x227b42(this['dispose$']))[_0x404733(0x114)](async _0x14f98f=>{const _0x25cae0=_0x404733,_0x5a31d4=_0x14f98f[_0x25cae0(0x7e)]();this['_entities'][_0x25cae0(0xe9)](_0x5a31d4)||this[_0x25cae0(0x7d)](_0x5a31d4);}),this['_univerInstanceService'][_0x404733(0x9b)](_0x1e0e7d[_0x404733(0xeb)])['pipe'](_0x227b42(this[_0x404733(0xec)]))[_0x404733(0x114)](_0x4d2dba=>{const _0x423f18=_0x404733,_0x66f1aa=_0x4d2dba[_0x423f18(0x7e)](),_0x1cc2c8=this[_0x423f18(0x88)]['get'](_0x66f1aa);_0x1cc2c8==null||_0x1cc2c8[_0x423f18(0xfd)]();});}async[_0x480de2(0x7d)](_0x23d24e){const _0x492e3a=_0x480de2,_0x56c05a=await this['_collabSessionService'][_0x492e3a(0xf5)](_0x23d24e),_0x1a44db=this[_0x492e3a(0x102)]['createInstance'](N,_0x23d24e,_0x56c05a);return _0x1a44db[_0x492e3a(0x85)](),this['_entities'][_0x492e3a(0xc1)](_0x23d24e,_0x1a44db),_0x1a44db;}};S=Y([_(0x0,_0x59e319),_(0x1,_0x31d8e9(_0x4d1ef7)),_(0x2,_0x31d8e9(_0x23bc86))],S);function _0x3214(_0x429c19,_0x580096){const _0x4f88eb=_0x4f88();return _0x3214=function(_0x32142e,_0x5e2814){_0x32142e=_0x32142e-0x7d;let _0x29b6e5=_0x4f88eb[_0x32142e];return _0x29b6e5;},_0x3214(_0x429c19,_0x580096);}var c=(_0x2250b0=>(_0x2250b0[_0x480de2(0xf7)]=_0x480de2(0xa9),_0x2250b0[_0x480de2(0x105)]=_0x480de2(0xff),_0x2250b0[_0x480de2(0x91)]=_0x480de2(0x120),_0x2250b0[_0x480de2(0xb2)]=_0x480de2(0x9a),_0x2250b0[_0x480de2(0xed)]='presenting',_0x2250b0))(c||{});const Ce=_0x480de2(0xca),De=0xc8;let N=class extends _0x22ff37{constructor(_0x3b1a1f,_0x17a899,_0x2677f2,_0x3f583b,_0x14b480){const _0x28d07f=_0x480de2;super(),u(this,'_status$',new _0x2d7f44('idle')),u(this,_0x28d07f(0xcd),this['_status$'][_0x28d07f(0xc3)]()),u(this,_0x28d07f(0x83),!0x1),u(this,_0x28d07f(0x11f),null),u(this,_0x28d07f(0xac),null),(this['_unitID']=_0x3b1a1f,this['_collabSession']=_0x17a899,this['_configService']=_0x2677f2,this[_0x28d07f(0xe6)]=_0x3f583b,this[_0x28d07f(0xd1)]=_0x14b480);}get['_status'](){const _0x1ac7d3=_0x480de2;return this[_0x1ac7d3(0xe5)][_0x1ac7d3(0xc0)]();}['dispose'](){const _0x5e09fc=_0x480de2;var _0x27a031;(_0x27a031=this['_commandDisposable'])==null||_0x27a031['dispose'](),this[_0x5e09fc(0xe5)][_0x5e09fc(0xa5)](_0x5e09fc(0xff)),this[_0x5e09fc(0xe5)][_0x5e09fc(0xa8)]();}['getStatus'](){const _0x5cdc36=_0x480de2;return this[_0x5cdc36(0xdb)];}[_0x480de2(0x85)](){const _0x4ed8f1=_0x480de2;this[_0x4ed8f1(0x83)]||(this[_0x4ed8f1(0x83)]=!0x0,this['_collabSession'][_0x4ed8f1(0x100)][_0x4ed8f1(0xd2)](_0x227b42(this[_0x4ed8f1(0xec)]))[_0x4ed8f1(0x114)](_0x55d50c=>{const _0x385180=_0x4ed8f1;switch(_0x55d50c){case _0x1d465d['OFFLINE']:this['_handleOffline']();break;case _0x1d465d['ONLINE']:this[_0x385180(0xd8)]();break;}}),this[_0x4ed8f1(0xcc)][_0x4ed8f1(0x101)][_0x4ed8f1(0xd2)](_0x227b42(this[_0x4ed8f1(0xec)]))[_0x4ed8f1(0x114)](_0x1de0f2=>{const _0x217b39=_0x4ed8f1,{eventID:_0x1bf5a4}=_0x1de0f2;switch(_0x1bf5a4){case _0x5cbca8[_0x217b39(0xd6)]:this[_0x217b39(0xb4)](_0x1de0f2);break;case _0x5cbca8[_0x217b39(0xe4)]:this[_0x217b39(0x10b)](_0x1de0f2);break;case _0x5cbca8[_0x217b39(0xf3)]:this[_0x217b39(0xb7)]();break;case _0x5cbca8[_0x217b39(0xf1)]:this['_handleNewChangeSets'](_0x1de0f2);break;}}));}[_0x480de2(0x99)](){const _0x1361b4=_0x480de2;this[_0x1361b4(0xcc)]['send']({'eventID':_0x5cbca8[_0x1361b4(0x115)],'data':{'unitID':this[_0x1361b4(0xe0)],'userID':this[_0x1361b4(0xcc)][_0x1361b4(0xb9)]()}},this['_unitID']);}[_0x480de2(0xb0)](){const _0x372e5c=_0x480de2;this[_0x372e5c(0xdb)]==='presenting'&&(this[_0x372e5c(0xe5)][_0x372e5c(0xa5)]('idle'),this[_0x372e5c(0xcc)][_0x372e5c(0x95)]({'eventID':_0x5cbca8[_0x372e5c(0xf3)],'data':{'unitID':this[_0x372e5c(0xe0)]}},this[_0x372e5c(0xe0)]));}[_0x480de2(0x82)](){const _0xc43a56=_0x480de2;this[_0xc43a56(0xdb)]===_0xc43a56(0x9a)&&(this[_0xc43a56(0xe5)]['next'](_0xc43a56(0x120)),this[_0xc43a56(0xee)]());}[_0x480de2(0x109)](){const _0x244dc1=_0x480de2;this['_status']===_0x244dc1(0x120)&&this[_0x244dc1(0x11e)]();}[_0x480de2(0xb4)](_0x5a0ec2){const _0x140271=_0x480de2,{presenter:_0x3208f0}=_0x5a0ec2['data'],_0x5bc018=this[_0x140271(0xcc)][_0x140271(0xb9)]();this[_0x140271(0xac)]=_0x3208f0,_0x3208f0===_0x5bc018?(this[_0x140271(0x11e)](),this[_0x140271(0xf6)]()):this[_0x140271(0xdb)]!==_0x140271(0x9a)&&(this[_0x140271(0xdd)](),this[_0x140271(0xee)]());}[_0x480de2(0xd0)](){const _0x5f54f6=_0x480de2,_0x4995df={'eventID':_0x5cbca8['LIVESHARE_FETCH_OPERATIONS']};this[_0x5f54f6(0xcc)][_0x5f54f6(0x95)](_0x4995df,this[_0x5f54f6(0xe0)]);}[_0x480de2(0xb7)](){const _0x49b11b=_0x480de2;this[_0x49b11b(0xac)]=null,this[_0x49b11b(0xdb)]!==_0x49b11b(0x89)&&this[_0x49b11b(0x96)]();}['_handleNewChangeSets'](_0x1b7096){const _0x153f42=_0x480de2;if(this[_0x153f42(0xdb)]===_0x153f42(0x120)&&this[_0x153f42(0xac)]===_0x1b7096['data']['memberID']){const _0x34503f=_0x432e75(_0x1b7096[_0x153f42(0x9f)])['mutations'][_0x153f42(0xaf)]()['find'](_0x7afcd8=>_0x7afcd8['id']===_0x29dcc9['id']);if(_0x34503f){const _0x4ba76b=_0x34503f[_0x153f42(0x98)][_0x153f42(0xb5)],_0x15dba1=_0x34503f[_0x153f42(0x98)][_0x153f42(0x9e)]['id'];setTimeout(()=>{const _0x2ecaf5=_0x153f42;this['_commandService'][_0x2ecaf5(0x7f)](_0x42d600['id'],{'unitId':_0x4ba76b,'subUnitId':_0x15dba1},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x177141=_0x480de2;this['_status$']['next'](_0x177141(0x89));const _0x39f6be=new Map(),_0x3ff90b=this['_commandDisposable']=new _0xb8bf1f();_0x3ff90b[_0x177141(0xb1)](_0x5b0e28(()=>{_0x39f6be['forEach'](_0x293cd6=>_0x293cd6['complete']()),_0x39f6be['clear']();})),_0x3ff90b[_0x177141(0xb1)](this[_0x177141(0xd1)][_0x177141(0xa3)](_0x381eea=>{const _0x4a017b=_0x177141;var _0x4c0798;if(_0x381eea[_0x4a017b(0x113)]!==_0x2baff1[_0x4a017b(0x8d)]||!this['_liveShareService'][_0x4a017b(0xe8)](_0x381eea['id']))return;const {id:_0x520a4d}=_0x381eea;let _0x4f3b76;_0x39f6be['has'](_0x520a4d)?_0x4f3b76=_0x39f6be[_0x4a017b(0xa4)](_0x520a4d):(_0x4f3b76=new _0x35191d(),_0x39f6be[_0x4a017b(0xc1)](_0x520a4d,_0x4f3b76),_0x4f3b76[_0x4a017b(0xd2)](_0x55381b((_0x4c0798=this['_configService'][_0x4a017b(0x9c)](Ce))!=null?_0x4c0798:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4a017b(0x114)](_0x26fda9=>{const _0x3bd224=_0x4a017b;this[_0x3bd224(0xcc)]['send']({'eventID':_0x5cbca8[_0x3bd224(0xe4)],'data':{'unitID':this[_0x3bd224(0xe0)],'operations':{[_0x26fda9['id']]:{'id':_0x26fda9['id'],'params':JSON[_0x3bd224(0x116)](_0x26fda9[_0x3bd224(0x98)])}}}},this[_0x3bd224(0xe0)]);})),_0x4f3b76['next'](_0x381eea);})),this[_0x177141(0xe6)][_0x177141(0xd3)](this[_0x177141(0xe0)])[_0x177141(0x11d)](_0x21f65b=>this[_0x177141(0xcc)][_0x177141(0x95)]({'eventID':_0x5cbca8[_0x177141(0xe4)],'data':{'unitID':this[_0x177141(0xe0)],'operations':{[_0x21f65b['id']]:{'id':_0x21f65b['id'],'params':JSON[_0x177141(0x116)](_0x21f65b['params'])}}}},this[_0x177141(0xe0)]));}[_0x480de2(0xdd)](){const _0x4cf352=_0x480de2;var _0xbf5732;this[_0x4cf352(0xe5)][_0x4cf352(0xa5)](_0x4cf352(0xff)),(_0xbf5732=this[_0x4cf352(0x11f)])==null||_0xbf5732[_0x4cf352(0xfd)](),this['_commandDisposable']=null;}[_0x480de2(0xee)](){const _0x21eac1=_0x480de2;var _0x50bcac;(_0x50bcac=this['_commandDisposable'])==null||_0x50bcac[_0x21eac1(0xfd)](),this[_0x21eac1(0xe5)][_0x21eac1(0xa5)](_0x21eac1(0x120));}['_beIdle'](){const _0x2a0fd7=_0x480de2;var _0x24cd7a;this[_0x2a0fd7(0xe5)][_0x2a0fd7(0xa5)]('idle'),(_0x24cd7a=this[_0x2a0fd7(0x11f)])==null||_0x24cd7a[_0x2a0fd7(0xfd)](),this[_0x2a0fd7(0x11f)]=null;}[_0x480de2(0x11e)](){const _0x98543e=_0x480de2;var _0x4bf86b;this[_0x98543e(0xe5)][_0x98543e(0xa5)](_0x98543e(0x9a)),(_0x4bf86b=this[_0x98543e(0x11f)])==null||_0x4bf86b[_0x98543e(0xfd)]();}[_0x480de2(0x10b)](_0x58c3f4){const _0x3a4f0c=_0x480de2;if(['presenting',_0x3a4f0c(0x9a),_0x3a4f0c(0xa9)][_0x3a4f0c(0x11a)](this[_0x3a4f0c(0xdb)])||!_0x58c3f4[_0x3a4f0c(0x9f)][_0x3a4f0c(0xc6)]||_0x58c3f4[_0x3a4f0c(0x9f)][_0x3a4f0c(0xc6)]===this[_0x3a4f0c(0xcc)][_0x3a4f0c(0xb9)]())return;this[_0x3a4f0c(0xdb)]===_0x3a4f0c(0xff)&&this[_0x3a4f0c(0xee)]();const _0x2d886e=_0x58c3f4[_0x3a4f0c(0x9f)]['operations'];Object['values'](_0x2d886e)[_0x3a4f0c(0x11d)](_0x16922f=>{const _0x23ed7c=_0x3a4f0c;this['_commandService']['executeCommand'](_0x16922f['id'],_0x16922f[_0x23ed7c(0x98)]?JSON['parse'](_0x16922f[_0x23ed7c(0x98)]):null,{'fromCollab':!0x0});});}[_0x480de2(0x118)](){const _0x2a63a5=_0x480de2;var _0x5e25ed;this[_0x2a63a5(0xe5)][_0x2a63a5(0xa5)](_0x2a63a5(0xa9)),(_0x5e25ed=this[_0x2a63a5(0x11f)])==null||_0x5e25ed[_0x2a63a5(0xfd)]();}[_0x480de2(0xd8)](){const _0xc83cf5=_0x480de2;this[_0xc83cf5(0xe5)][_0xc83cf5(0xa5)](_0xc83cf5(0xff)),this[_0xc83cf5(0xd0)]();}};N=Y([_(0x2,_0xea2396),_(0x3,_0x31d8e9(L)),_(0x4,_0x358f4b)],N);function Le(){const _0xca5cec=_0x480de2,_0x15a293=_0x5b95cb(S),_0x4c337b=_0x5b95cb(_0x59e319),_0x3ab8b0=_0x477adc(()=>_0x4c337b[_0xca5cec(0xc8)](_0x1e0e7d['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x43c7fc,_0x493cc2]=_0x3126fc(null),[_0x52d3b0,_0x34bd49]=_0x3126fc(c[_0xca5cec(0x105)]),_0x3e6863=_0x2d1821(null);return _0x42fb54(()=>(_0x3ab8b0&&_0x15a293[_0xca5cec(0xf4)](_0x3ab8b0[_0xca5cec(0x7e)]())['then'](_0x142b4d=>{const _0x55dda4=_0xca5cec;_0x493cc2(_0x142b4d),_0x3e6863[_0x55dda4(0x107)]=_0x142b4d[_0x55dda4(0xcd)][_0x55dda4(0x114)](_0x1375d4=>{_0x34bd49(_0x1375d4);});}),()=>{const _0x436328=_0xca5cec;var _0x4ea08b;(_0x4ea08b=_0x3e6863[_0x436328(0x107)])==null||_0x4ea08b['unsubscribe'](),_0x3e6863[_0x436328(0x107)]=null;}),[_0x3ab8b0,_0x15a293]),_0x43c7fc?_0x4f48f3(_0x43303b,{'align':_0xca5cec(0xd5),'disabled':_0x52d3b0===c[_0xca5cec(0xf7)],'className':_0xca5cec(0xc7),'overlay':_0x4f48f3(Re,{'status':_0x52d3b0,'coordinator':_0x43c7fc}),'children':_0x4f48f3('button',{'className':_0x219d87(_0xca5cec(0xad),{'univer-cursor-not-allowed':_0x52d3b0===c[_0xca5cec(0xf7)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x52d3b0!==c[_0xca5cec(0xf7)]}),'type':'button','children':_0x4f48f3(W,{'className':_0xca5cec(0xce)})})}):null;}function Re(_0x2ef174){const _0x277700=_0x480de2,{status:_0x2430bb,coordinator:_0x338fed}=_0x2ef174;switch(_0x2430bb){case c[_0x277700(0x105)]:return _0x4f48f3($e,{'coordinator':_0x338fed});case c[_0x277700(0x91)]:return _0x4f48f3(xe,{'coordinator':_0x338fed});case c[_0x277700(0xb2)]:return _0x4f48f3(Pe,{'coordinator':_0x338fed});case c[_0x277700(0xf7)]:return _0x4f48f3(Te,{});case c['PRESENTING']:return _0x4f48f3(Ae,{'coordinator':_0x338fed});default:return null;}}function $e(_0xfad782){const _0x5995a0=_0x480de2,{coordinator:_0x5ee935}=_0xfad782;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5995a0(0xe7)}),_0x4f48f3(_0x5f10a4,{'onClick':()=>_0x5ee935['tryStartPresenting'](),'children':_0x5995a0(0x97)})]});}function xe(_0x4a7620){const _0x13e27f=_0x480de2,{coordinator:_0x541788}=_0x4a7620;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3(_0x13e27f(0xe2),{'className':_0x13e27f(0x8b),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x4f48f3(_0x5f10a4,{'onClick':()=>_0x541788['stopFollowing'](),'children':_0x13e27f(0xdc)})]});}function Pe(_0x185a58){const _0x400cfa=_0x480de2,{coordinator:_0xa38fab}=_0x185a58;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3(_0x400cfa(0xe2),{'className':_0x400cfa(0x8b),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4f48f3(_0x5f10a4,{'variant':'text','onClick':()=>_0xa38fab[_0x400cfa(0x82)](),'children':_0x400cfa(0x90)})]});}function Ae(_0x14e769){const _0x49059d=_0x480de2,{coordinator:_0x393521}=_0x14e769;return _0x4070ad(_0x5480f9,{'children':[_0x4f48f3(_0x49059d(0xe2),{'className':_0x49059d(0x8b),'children':_0x49059d(0xde)}),_0x4f48f3(_0x5f10a4,{'variant':'default','onClick':()=>_0x393521[_0x49059d(0xb0)](),'children':_0x49059d(0xea)})]});}function Te(){const _0x35fc15=_0x480de2;return _0x4f48f3(_0x5480f9,{'children':_0x35fc15(0xf9)});}var Fe=Object[_0x480de2(0x103)],He=(_0xc389b6,_0x47ae8a,_0x4a2f48,_0x244129)=>{for(var _0x5e3960=_0x244129>0x1?void 0x0:_0x244129?Fe(_0x47ae8a,_0x4a2f48):_0x47ae8a,_0x54a047=_0xc389b6['length']-0x1,_0x19907b;_0x54a047>=0x0;_0x54a047--)(_0x19907b=_0xc389b6[_0x54a047])&&(_0x5e3960=_0x19907b(_0x5e3960)||_0x5e3960);return _0x5e3960;},A=(_0x12cc2f,_0x2cada1)=>(_0x41e21f,_0x613bb1)=>_0x2cada1(_0x41e21f,_0x613bb1,_0x12cc2f);let m=class extends _0x445766{constructor(_0x172e53,_0x4f79ea){const _0x1a884a=_0x480de2;super(),this[_0x1a884a(0x102)]=_0x172e53,this['_uiPartsService']=_0x4f79ea,this['_mountLiveShare']();}[_0x480de2(0xa6)](){const _0x5ae6c7=_0x480de2;this['disposeWithMe'](this[_0x5ae6c7(0x81)][_0x5ae6c7(0xd7)](_0x589e20[_0x5ae6c7(0x10a)],()=>_0x2bfcca(Le,this[_0x5ae6c7(0x102)])));}};m=He([A(0x0,_0x31d8e9(_0x4d1ef7)),A(0x1,_0x1618ae)],m);const ye=_0x480de2(0x8e),T={};var Ue=Object[_0x480de2(0x103)],Ve=(_0x249b57,_0x4669ab,_0x3ceaa9,_0xa47879)=>{const _0x14820b=_0x480de2;for(var _0x5a1957=_0xa47879>0x1?void 0x0:_0xa47879?Ue(_0x4669ab,_0x3ceaa9):_0x4669ab,_0xd5a94d=_0x249b57[_0x14820b(0xbf)]-0x1,_0x261a0a;_0xd5a94d>=0x0;_0xd5a94d--)(_0x261a0a=_0x249b57[_0xd5a94d])&&(_0x5a1957=_0x261a0a(_0x5a1957)||_0x5a1957);return _0x5a1957;},je=(_0x12cfd5,_0x4e7413)=>(_0x56a754,_0x9be823)=>_0x4e7413(_0x56a754,_0x9be823,_0x12cfd5);let I=class extends _0x445766{constructor(_0x3ba195){const _0x3b4077=_0x480de2;super(),this[_0x3b4077(0xe6)]=_0x3ba195,this[_0x3b4077(0x83)]();}[_0x480de2(0x83)](){const _0x146712=_0x480de2;[_0xee7cd['id'],_0x504137['id'],_0x42d600['id']][_0x146712(0x11d)](_0x4a77ef=>{const _0x505cfc=_0x146712;this[_0x505cfc(0xe1)](this[_0x505cfc(0xe6)][_0x505cfc(0xb6)](_0x4a77ef));});}};I=Ve([je(0x0,_0x31d8e9(L))],I);var Me=Object[_0x480de2(0x108)],ke=Object[_0x480de2(0x103)],Ge=(_0x3f3f64,_0x21c44a,_0x49d929)=>_0x21c44a in _0x3f3f64?Me(_0x3f3f64,_0x21c44a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49d929}):_0x3f3f64[_0x21c44a]=_0x49d929,We=(_0x77c05d,_0x551572,_0x1732b4,_0x2c59c5)=>{const _0x170ee9=_0x480de2;for(var _0x1a3120=_0x2c59c5>0x1?void 0x0:_0x2c59c5?ke(_0x551572,_0x1732b4):_0x551572,_0xd600ef=_0x77c05d[_0x170ee9(0xbf)]-0x1,_0x500c05;_0xd600ef>=0x0;_0xd600ef--)(_0x500c05=_0x77c05d[_0xd600ef])&&(_0x1a3120=_0x500c05(_0x1a3120)||_0x1a3120);return _0x1a3120;},F=(_0x2901fb,_0x49a302)=>(_0x3613d9,_0x164f78)=>_0x49a302(_0x3613d9,_0x164f78,_0x2901fb),B=(_0x3a68c3,_0x176827,_0xb3ba0f)=>Ge(_0x3a68c3,typeof _0x176827!=_0x480de2(0x106)?_0x176827+'':_0x176827,_0xb3ba0f);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x218f1f{constructor(_0x1d5e66=T,_0x5d5c39,_0xc484d4){const _0x2d2aa6=_0x480de2;super(),this[_0x2d2aa6(0x93)]=_0x1d5e66,this[_0x2d2aa6(0x102)]=_0x5d5c39,this[_0x2d2aa6(0xfa)]=_0xc484d4;const {..._0x40ad25}=_0x477aae({},T,this[_0x2d2aa6(0x93)]);this[_0x2d2aa6(0xfa)][_0x2d2aa6(0x10c)](ye,_0x40ad25);}[_0x480de2(0x86)](){const _0x170149=_0x480de2;_0xaed711(this[_0x170149(0x102)],_0xb0235f([[L],[S],[I],[m]],this[_0x170149(0x93)][_0x170149(0xcb)])),_0xd465dc(this[_0x170149(0x102)],[[I]]);}[_0x480de2(0xc2)](){const _0x14c429=_0x480de2;_0xd465dc(this[_0x14c429(0x102)],[[m]]);}};B(b,'type',_0x1e0e7d[_0x480de2(0xa1)]),B(b,_0x480de2(0xa2),Ye),b=We([_0x2532bd(_0x1e0ea8),F(0x1,_0x31d8e9(_0x4d1ef7)),F(0x2,_0xea2396)],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 _0x562b47=_0x465d;(function(_0x4cd1ab,_0x3b9ac4){const _0x231961=_0x465d,_0x2b535b=_0x4cd1ab();while(!![]){try{const _0x54b116=parseInt(_0x231961(0x145))/0x1*(-parseInt(_0x231961(0x164))/0x2)+parseInt(_0x231961(0xeb))/0x3*(-parseInt(_0x231961(0x128))/0x4)+parseInt(_0x231961(0x136))/0x5*(parseInt(_0x231961(0xd1))/0x6)+parseInt(_0x231961(0x148))/0x7*(parseInt(_0x231961(0x14c))/0x8)+parseInt(_0x231961(0x12a))/0x9+-parseInt(_0x231961(0x152))/0xa+parseInt(_0x231961(0x15c))/0xb;if(_0x54b116===_0x3b9ac4)break;else _0x2b535b['push'](_0x2b535b['shift']());}catch(_0x21dbd4){_0x2b535b['push'](_0x2b535b['shift']());}}}(_0xad37,0x605b1));var J=Object['defineProperty'],K=(_0x2e0408,_0x7c337c,_0x2c8bdc)=>_0x7c337c in _0x2e0408?J(_0x2e0408,_0x7c337c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c8bdc}):_0x2e0408[_0x7c337c]=_0x2c8bdc,u=(_0x97d849,_0x181dd3,_0x145323)=>K(_0x97d849,typeof _0x181dd3!=_0x562b47(0x10f)?_0x181dd3+'':_0x181dd3,_0x145323);import{Disposable as _0x2e50d0,toDisposable as _0x4271be,IUniverInstanceService as _0x187255,Inject as _0x264acd,Injector as _0x126a5b,IConfigService as _0x974748,ICommandService as _0x105090,RxDisposable as _0x51a549,UniverInstanceType as _0x51802f,DisposableCollection as _0x43222f,CommandType as _0x33f042,DependentOn as _0x411c47,Plugin as _0x1130c7,merge as _0xb0c13e,registerDependencies as _0x333ef5,mergeOverrideWithDependencies as _0x3d1a15,touchDependencies as _0x1c3957}from'@univerjs/core';import{useDependency as _0x38dad9,useObservable as _0x14a93c,IUIPartsService as _0x28a6aa,BuiltInUIPart as _0x2de438,connectInjector as _0x183c2b}from'@univerjs/ui';import{jsx as _0x33bb7b,jsxs as _0x4dcdb8,Fragment as _0x967f7f}from'react/jsx-runtime';import{Dropdown as _0x5079de,clsx as _0x54f579,Button as _0x468343}from'@univerjs/design';import{useRef as _0x2dba5e,createElement as _0x4a7a97,forwardRef as _0x424bb6,useState as _0x555c58,useEffect as _0x22e887}from'react';import{CollaborationEvent as _0x301d58,parseProtocolChangeset as _0x19d1a6}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x4baae7,SessionStatus as _0x50ed84,UniverCollaborationClientPlugin as _0x4e7d3f}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x34d039,SetWorksheetActiveOperation as _0x56bd43}from'@univerjs/sheets';import{BehaviorSubject as _0x5af6da,Subject as _0x8db225}from'rxjs';import{takeUntil as _0x37e8e1,throttleTime as _0x225f90}from'rxjs/operators';function _0xad37(){const _0x57a4e1=['_handleTerminate','3958aGpPZD','_handleOnline','requireSession','values','colorChannel1','UNIVER_LIVE_SHARE_PLUGIN','_univerInstanceService','getUnitId','_commandService','replace','mask','Stop\x20presenting','onStarting','init','disposeWithMe','getLiveShareCoordinator','evenodd','LIVESHARE_OPERATION','add','_stopFollowing','6JIlaZT','xlink:href','offline','stopFollowing','_startFollowing','stringify','UniverIcon','has','reverse','UNIVER_SHEET','_startLiveShareCoordinator','children','LiveShareIcon','_unitID','_configService','_collabSessionService','trim','current','get','_sharedOperations','OFFLINE','getInitialStates','executeCommand','getOwnPropertyDescriptor','defineProperty','shouldShareOperation','659898jeDCxf','subscribe','NOT_FOLLOWING','entries','getMemberID','length','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-border-none\x20univer-text-gray-600\x20univer-outline-none','includes','_beIdle','presenter','currentColor','send','_fetchOperations','assign','onRendered','univerjs-icon\x20univerjs-icon-','_presenter','Present\x20this\x20document','operations','status$','asObservable','presenting','type','_injector','default','forEach','registerComponent','You\x27re\x20not\x20following\x20the\x20presenter','_handleOffline','defs','1em','attrs','registerSharedOperation','unsubscribe','startFollowing','symbol','end','toString','onCommandExecuted','tag','_status$','_reporters','text','IDLE','registerInitialStateReporter','sessionStatus$','univer-mb-3\x20univer-w-full\x20univer-text-sm','params','div','_commandDisposable','from','getTypeOfUnitAdded$','LIVESHARE_TERMINATE','string','_status','You\x27re\x20following\x20the\x20presenter','not-following','live-share-icon','override','_startPresenting','4AjjRIw','dispose','2359764EWOZQb','getCurrentTypeOfUnit$','getTypeOfUnitDisposed$','getConfig','delete','parse','next','_uiPartsService','http://www.w3.org/2000/svg','following','univer-size-4','data','77225JfVLKv','pipe','OPERATION','fill','_init','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','_liveShareService','substring','NEW_CHANGESETS','0\x200\x2017\x2017','idSuffix','PRESENTING','set','then','LIVESHARE_NEW_HOST','7rkUwWw','tryStartPresenting','_handleNewChangeSets','7XjjDKe','path','idle','_handleOperation','759048idyRNb','stopPresenting','_config','getValue','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','complete','7433730tQoJZL','ONLINE','_collabSession','defIds','none','You\x27are\x20offline.','_entities','dispose$','url(#$1','button','10992773hcrZbG','UNIVER_UNKNOWN','find','_stopPresenting','FOLLOWING','_handleNewHost','getLiveShareCoordinatorSync'];_0xad37=function(){return _0x57a4e1;};return _0xad37();}import{SetZoomRatioOperation as _0x4e0176,SetScrollOperation as _0xdcd218}from'@univerjs/sheets-ui';function k({ref:_0x4c54a8,..._0x5c0e74}){const _0x5e6d46=_0x562b47,{icon:_0x314ce7,id:_0x1a5b04,className:_0x2acdf6,extend:_0x5503e6,..._0x2067cf}=_0x5c0e74,_0x1e4a05=(_0x5e6d46(0xfb)+_0x1a5b04+'\x20'+(_0x2acdf6||''))[_0x5e6d46(0xe1)](),_0x50da95=_0x2dba5e('_'+Oe());return G(_0x314ce7,''+_0x1a5b04,{'defIds':_0x314ce7[_0x5e6d46(0x155)],'idSuffix':_0x50da95[_0x5e6d46(0xe2)]},{'ref':_0x4c54a8,'className':_0x1e4a05,..._0x2067cf},_0x5503e6);}function G(_0xac6eaa,_0x11c44e,_0x27b2d0,_0x1b95cf,_0x527ef1){const _0x2eafa7=_0x562b47;return _0x4a7a97(_0xac6eaa[_0x2eafa7(0x113)],{'key':_0x11c44e,...be(_0xac6eaa,_0x27b2d0,_0x527ef1),..._0x1b95cf},(Ee(_0xac6eaa,_0x27b2d0)[_0x2eafa7(0xdc)]||[])['map']((_0x30a889,_0x30cb91)=>G(_0x30a889,_0x11c44e+'-'+_0xac6eaa[_0x2eafa7(0x113)]+'-'+_0x30cb91,_0x27b2d0,void 0x0,_0x527ef1)));}function be(_0x885004,_0x615c6f,_0x51715f){const _0x10a47a=_0x562b47,_0x54ec7e={..._0x885004[_0x10a47a(0x10b)]};_0x51715f!=null&&_0x51715f[_0x10a47a(0xc1)]&&_0x54ec7e[_0x10a47a(0x139)]==='colorChannel1'&&(_0x54ec7e[_0x10a47a(0x139)]=_0x51715f[_0x10a47a(0xc1)]),_0x885004[_0x10a47a(0x113)]===_0x10a47a(0xc7)&&_0x54ec7e['id']&&(_0x54ec7e['id']=_0x54ec7e['id']+_0x615c6f[_0x10a47a(0x140)]),Object[_0x10a47a(0xee)](_0x54ec7e)['forEach'](([_0x2d0e81,_0x558183])=>{const _0x192f8d=_0x10a47a;_0x2d0e81===_0x192f8d(0xc7)&&typeof _0x558183==_0x192f8d(0x121)&&(_0x54ec7e[_0x2d0e81]=_0x558183[_0x192f8d(0xc6)](/url\(#(.*)\)/,'url(#$1'+_0x615c6f[_0x192f8d(0x140)]+')'));});const {defIds:_0x5d471e}=_0x615c6f;return!_0x5d471e||_0x5d471e[_0x10a47a(0xf0)]===0x0||(_0x885004['tag']==='use'&&_0x54ec7e[_0x10a47a(0xd2)]&&(_0x54ec7e[_0x10a47a(0xd2)]=_0x54ec7e[_0x10a47a(0xd2)]+_0x615c6f[_0x10a47a(0x140)]),Object[_0x10a47a(0xee)](_0x54ec7e)[_0x10a47a(0x105)](([_0x302d90,_0x37e392])=>{const _0x1a58ef=_0x10a47a;typeof _0x37e392==_0x1a58ef(0x121)&&(_0x54ec7e[_0x302d90]=_0x37e392[_0x1a58ef(0xc6)](/url\(#(.*)\)/,_0x1a58ef(0x15a)+_0x615c6f[_0x1a58ef(0x140)]+')'));})),_0x54ec7e;}function Ee(_0x30635a,_0x12daad){const _0x5c683c=_0x562b47;var _0x512872;const {defIds:_0x1c6c91}=_0x12daad;return!_0x1c6c91||_0x1c6c91[_0x5c683c(0xf0)]===0x0?_0x30635a:_0x30635a['tag']===_0x5c683c(0x109)&&((_0x512872=_0x30635a[_0x5c683c(0xdc)])!=null&&_0x512872[_0x5c683c(0xf0)])?{..._0x30635a,'children':_0x30635a[_0x5c683c(0xdc)]['map'](_0x587fc7=>typeof _0x587fc7[_0x5c683c(0x10b)]['id']==_0x5c683c(0x121)&&_0x1c6c91&&_0x1c6c91[_0x5c683c(0xf3)](_0x587fc7[_0x5c683c(0x10b)]['id'])?{..._0x587fc7,'attrs':{..._0x587fc7[_0x5c683c(0x10b)],'id':_0x587fc7[_0x5c683c(0x10b)]['id']+_0x12daad[_0x5c683c(0x140)]}}:_0x587fc7)}:_0x30635a;}function Oe(){const _0xe371e=_0x562b47;return Math['random']()[_0xe371e(0x111)](0x24)[_0xe371e(0x13d)](0x2,0x8);}k['displayName']=_0x562b47(0xd7);const we={'tag':'svg','attrs':{'xmlns':_0x562b47(0x132),'fill':_0x562b47(0x156),'viewBox':_0x562b47(0x13f),'width':_0x562b47(0x10a),'height':'1em'},'children':[{'tag':_0x562b47(0x149),'attrs':{'fill':_0x562b47(0xf6),'d':_0x562b47(0x13b)}},{'tag':'path','attrs':{'fill':_0x562b47(0xf6),'d':_0x562b47(0x150),'fillRule':'evenodd','clipRule':_0x562b47(0xcd)}}]},W=_0x424bb6(function(_0x2bcc6a,_0x58b487){const _0x2f598f=_0x562b47;return _0x4a7a97(k,Object[_0x2f598f(0xf9)]({},_0x2bcc6a,{'id':_0x2f598f(0x125),'ref':_0x58b487,'icon':we}));});W['displayName']=_0x562b47(0xdd);class L extends _0x2e50d0{constructor(){const _0x562679=_0x562b47;super(...arguments),u(this,_0x562679(0xe4),new Set()),u(this,_0x562679(0x115),new Set());}[_0x562b47(0x10c)](_0x2c2786){const _0x2f1f1b=_0x562b47;return this[_0x2f1f1b(0xe4)]['add'](_0x2c2786),_0x4271be(()=>this[_0x2f1f1b(0xe4)][_0x2f1f1b(0x12e)](_0x2c2786));}[_0x562b47(0x118)](_0x490737){const _0x33b0af=_0x562b47;return this[_0x33b0af(0x115)]['add'](_0x490737),_0x4271be(()=>this['_reporters'][_0x33b0af(0x12e)](_0x490737));}[_0x562b47(0xea)](_0x16195f){const _0x3ebe52=_0x562b47;return this[_0x3ebe52(0xe4)][_0x3ebe52(0xd8)](_0x16195f);}['getInitialStates'](_0x239faf){const _0x31ba11=_0x562b47;return Array[_0x31ba11(0x11e)](this[_0x31ba11(0x115)])['map'](_0x2e959e=>_0x2e959e(_0x239faf));}}var Ne=Object[_0x562b47(0xe8)],Y=(_0x447188,_0x169ee5,_0x1f6a5a,_0x138d9c)=>{const _0x48dd42=_0x562b47;for(var _0x5f0651=_0x138d9c>0x1?void 0x0:_0x138d9c?Ne(_0x169ee5,_0x1f6a5a):_0x169ee5,_0x539646=_0x447188[_0x48dd42(0xf0)]-0x1,_0x1854e1;_0x539646>=0x0;_0x539646--)(_0x1854e1=_0x447188[_0x539646])&&(_0x5f0651=_0x1854e1(_0x5f0651)||_0x5f0651);return _0x5f0651;},_=(_0x443ad9,_0x3b2c40)=>(_0x47b132,_0x14aaa2)=>_0x3b2c40(_0x47b132,_0x14aaa2,_0x443ad9);let S=class extends _0x51a549{constructor(_0x562fae,_0x541c70,_0x2ce976){const _0x1633b0=_0x562b47;super(),u(this,_0x1633b0(0x158),new Map()),(this[_0x1633b0(0xc3)]=_0x562fae,this[_0x1633b0(0x103)]=_0x541c70,this[_0x1633b0(0xe0)]=_0x2ce976,this[_0x1633b0(0x13a)]());}async[_0x562b47(0xcc)](_0x36b81f){const _0x4e84d8=_0x562b47;return this[_0x4e84d8(0x158)][_0x4e84d8(0xd8)](_0x36b81f)||await this['_startLiveShareCoordinator'](_0x36b81f),this['_entities'][_0x4e84d8(0xe3)](_0x36b81f);}[_0x562b47(0x162)](_0x46eade){const _0x3f0b84=_0x562b47;var _0x2c8302;return(_0x2c8302=this[_0x3f0b84(0x158)]['get'](_0x46eade))!=null?_0x2c8302:null;}[_0x562b47(0x13a)](){const _0x240901=_0x562b47;this[_0x240901(0xc3)][_0x240901(0x11f)](_0x51802f[_0x240901(0xda)])[_0x240901(0x137)](_0x37e8e1(this['dispose$']))[_0x240901(0xec)](async _0x1813e4=>{const _0x1bce96=_0x240901,_0x49fdf0=_0x1813e4[_0x1bce96(0xc4)]();this[_0x1bce96(0x158)]['has'](_0x49fdf0)||this[_0x1bce96(0xdb)](_0x49fdf0);}),this[_0x240901(0xc3)][_0x240901(0x12c)](_0x51802f[_0x240901(0xda)])[_0x240901(0x137)](_0x37e8e1(this[_0x240901(0x159)]))[_0x240901(0xec)](_0x29d9f4=>{const _0x18e5ab=_0x240901,_0x31bdcb=_0x29d9f4[_0x18e5ab(0xc4)](),_0x151a8c=this[_0x18e5ab(0x158)][_0x18e5ab(0xe3)](_0x31bdcb);_0x151a8c==null||_0x151a8c[_0x18e5ab(0x129)]();});}async[_0x562b47(0xdb)](_0x208b9b){const _0x1af5d8=_0x562b47,_0x2166f3=await this['_collabSessionService'][_0x1af5d8(0x166)](_0x208b9b),_0x70e399=this[_0x1af5d8(0x103)]['createInstance'](N,_0x208b9b,_0x2166f3);return _0x70e399[_0x1af5d8(0xca)](),this[_0x1af5d8(0x158)][_0x1af5d8(0x142)](_0x208b9b,_0x70e399),_0x70e399;}};S=Y([_(0x0,_0x187255),_(0x1,_0x264acd(_0x126a5b)),_(0x2,_0x264acd(_0x4baae7))],S);var c=(_0x51fd21=>(_0x51fd21[_0x562b47(0xe5)]=_0x562b47(0xd3),_0x51fd21[_0x562b47(0x117)]=_0x562b47(0x14a),_0x51fd21['FOLLOWING']='following',_0x51fd21['NOT_FOLLOWING']='not-following',_0x51fd21[_0x562b47(0x141)]=_0x562b47(0x101),_0x51fd21))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x51a549{constructor(_0x4335c1,_0x880e61,_0x33e4d2,_0x3837f7,_0x2a4e6f){const _0x5f297d=_0x562b47;super(),u(this,'_status$',new _0x5af6da(_0x5f297d(0x14a))),u(this,_0x5f297d(0xff),this[_0x5f297d(0x114)][_0x5f297d(0x100)]()),u(this,_0x5f297d(0x13a),!0x1),u(this,_0x5f297d(0x11d),null),u(this,_0x5f297d(0xfc),null),(this['_unitID']=_0x4335c1,this[_0x5f297d(0x154)]=_0x880e61,this[_0x5f297d(0xdf)]=_0x33e4d2,this[_0x5f297d(0x13c)]=_0x3837f7,this[_0x5f297d(0xc5)]=_0x2a4e6f);}get[_0x562b47(0x122)](){const _0x513979=_0x562b47;return this[_0x513979(0x114)][_0x513979(0x14f)]();}[_0x562b47(0x129)](){const _0x485651=_0x562b47;var _0x527930;(_0x527930=this['_commandDisposable'])==null||_0x527930[_0x485651(0x129)](),this[_0x485651(0x114)][_0x485651(0x130)](_0x485651(0x14a)),this['_status$'][_0x485651(0x151)]();}['getStatus'](){return this['_status'];}[_0x562b47(0xca)](){const _0x567d7e=_0x562b47;this[_0x567d7e(0x13a)]||(this['_init']=!0x0,this[_0x567d7e(0x154)][_0x567d7e(0x119)]['pipe'](_0x37e8e1(this[_0x567d7e(0x159)]))[_0x567d7e(0xec)](_0x20fbf8=>{const _0x41e774=_0x567d7e;switch(_0x20fbf8){case _0x50ed84[_0x41e774(0xe5)]:this[_0x41e774(0x108)]();break;case _0x50ed84[_0x41e774(0x153)]:this['_handleOnline']();break;}}),this[_0x567d7e(0x154)]['event$'][_0x567d7e(0x137)](_0x37e8e1(this[_0x567d7e(0x159)]))[_0x567d7e(0xec)](_0x29231e=>{const _0x3b50fa=_0x567d7e,{eventID:_0x3e0843}=_0x29231e;switch(_0x3e0843){case _0x301d58[_0x3b50fa(0x144)]:this[_0x3b50fa(0x161)](_0x29231e);break;case _0x301d58[_0x3b50fa(0xce)]:this[_0x3b50fa(0x14b)](_0x29231e);break;case _0x301d58[_0x3b50fa(0x120)]:this[_0x3b50fa(0x163)]();break;case _0x301d58[_0x3b50fa(0x13e)]:this['_handleNewChangeSets'](_0x29231e);break;}}));}[_0x562b47(0x146)](){const _0x525b0f=_0x562b47;this[_0x525b0f(0x154)][_0x525b0f(0xf7)]({'eventID':_0x301d58['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x525b0f(0xde)],'userID':this[_0x525b0f(0x154)][_0x525b0f(0xef)]()}},this[_0x525b0f(0xde)]);}[_0x562b47(0x14d)](){const _0xa82d6f=_0x562b47;this[_0xa82d6f(0x122)]===_0xa82d6f(0x101)&&(this['_status$']['next']('idle'),this[_0xa82d6f(0x154)]['send']({'eventID':_0x301d58['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0xa82d6f(0xde)]}},this[_0xa82d6f(0xde)]));}[_0x562b47(0x10e)](){const _0x1c3b84=_0x562b47;this['_status']===_0x1c3b84(0x124)&&(this['_status$']['next'](_0x1c3b84(0x133)),this['_startFollowing']());}['stopFollowing'](){const _0x5bb57a=_0x562b47;this[_0x5bb57a(0x122)]==='following'&&this[_0x5bb57a(0xd0)]();}['_handleNewHost'](_0x4b55fc){const _0x5b0860=_0x562b47,{presenter:_0x1290a9}=_0x4b55fc[_0x5b0860(0x135)],_0x140afc=this[_0x5b0860(0x154)][_0x5b0860(0xef)]();this[_0x5b0860(0xfc)]=_0x1290a9,_0x1290a9===_0x140afc?(this[_0x5b0860(0xd0)](),this[_0x5b0860(0x127)]()):this[_0x5b0860(0x122)]!==_0x5b0860(0x124)&&(this[_0x5b0860(0x15f)](),this['_startFollowing']());}['_fetchOperations'](){const _0x16bd35=_0x562b47,_0x5da9bb={'eventID':_0x301d58['LIVESHARE_FETCH_OPERATIONS']};this[_0x16bd35(0x154)]['send'](_0x5da9bb,this['_unitID']);}[_0x562b47(0x163)](){const _0x5acf28=_0x562b47;this[_0x5acf28(0xfc)]=null,this[_0x5acf28(0x122)]!=='presenting'&&this['_beIdle']();}[_0x562b47(0x147)](_0x1adea4){const _0x906164=_0x562b47;if(this[_0x906164(0x122)]===_0x906164(0x133)&&this[_0x906164(0xfc)]===_0x1adea4[_0x906164(0x135)]['memberID']){const _0x56ad84=_0x19d1a6(_0x1adea4[_0x906164(0x135)])['mutations'][_0x906164(0xd9)]()[_0x906164(0x15e)](_0x2c6158=>_0x2c6158['id']===_0x34d039['id']);if(_0x56ad84){const _0x1cef96=_0x56ad84['params']['unitId'],_0x1b8c4e=_0x56ad84[_0x906164(0x11b)]['sheet']['id'];setTimeout(()=>{const _0x56a571=_0x906164;this[_0x56a571(0xc5)][_0x56a571(0xe7)](_0x56bd43['id'],{'unitId':_0x1cef96,'subUnitId':_0x1b8c4e},{'fromCollab':!0x0});});}}}[_0x562b47(0x127)](){const _0x4d569f=_0x562b47;this[_0x4d569f(0x114)][_0x4d569f(0x130)](_0x4d569f(0x101));const _0x5925f2=new Map(),_0x3eac62=this[_0x4d569f(0x11d)]=new _0x43222f();_0x3eac62[_0x4d569f(0xcf)](_0x4271be(()=>{const _0x3d6ec6=_0x4d569f;_0x5925f2[_0x3d6ec6(0x105)](_0x47fc61=>_0x47fc61['complete']()),_0x5925f2['clear']();})),_0x3eac62[_0x4d569f(0xcf)](this['_commandService'][_0x4d569f(0x112)](_0x4f10df=>{const _0x37b9e2=_0x4d569f;var _0x367a07;if(_0x4f10df[_0x37b9e2(0x102)]!==_0x33f042[_0x37b9e2(0x138)]||!this[_0x37b9e2(0x13c)][_0x37b9e2(0xea)](_0x4f10df['id']))return;const {id:_0x112488}=_0x4f10df;let _0x22c586;_0x5925f2[_0x37b9e2(0xd8)](_0x112488)?_0x22c586=_0x5925f2[_0x37b9e2(0xe3)](_0x112488):(_0x22c586=new _0x8db225(),_0x5925f2[_0x37b9e2(0x142)](_0x112488,_0x22c586),_0x22c586[_0x37b9e2(0x137)](_0x225f90((_0x367a07=this[_0x37b9e2(0xdf)][_0x37b9e2(0x12d)](Ce))!=null?_0x367a07:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x37b9e2(0xec)](_0x4d333a=>{const _0x4d27f1=_0x37b9e2;this[_0x4d27f1(0x154)]['send']({'eventID':_0x301d58[_0x4d27f1(0xce)],'data':{'unitID':this[_0x4d27f1(0xde)],'operations':{[_0x4d333a['id']]:{'id':_0x4d333a['id'],'params':JSON[_0x4d27f1(0xd6)](_0x4d333a['params'])}}}},this[_0x4d27f1(0xde)]);})),_0x22c586[_0x37b9e2(0x130)](_0x4f10df);})),this[_0x4d569f(0x13c)][_0x4d569f(0xe6)](this['_unitID'])['forEach'](_0x323d5a=>this[_0x4d569f(0x154)][_0x4d569f(0xf7)]({'eventID':_0x301d58[_0x4d569f(0xce)],'data':{'unitID':this[_0x4d569f(0xde)],'operations':{[_0x323d5a['id']]:{'id':_0x323d5a['id'],'params':JSON[_0x4d569f(0xd6)](_0x323d5a[_0x4d569f(0x11b)])}}}},this[_0x4d569f(0xde)]));}['_stopPresenting'](){const _0x36c595=_0x562b47;var _0x43ce6d;this[_0x36c595(0x114)]['next']('idle'),(_0x43ce6d=this['_commandDisposable'])==null||_0x43ce6d[_0x36c595(0x129)](),this['_commandDisposable']=null;}[_0x562b47(0xd5)](){const _0x4748b7=_0x562b47;var _0x376b01;(_0x376b01=this[_0x4748b7(0x11d)])==null||_0x376b01[_0x4748b7(0x129)](),this['_status$'][_0x4748b7(0x130)](_0x4748b7(0x133));}[_0x562b47(0xf4)](){const _0x4c49c9=_0x562b47;var _0xa33ed8;this['_status$'][_0x4c49c9(0x130)]('idle'),(_0xa33ed8=this[_0x4c49c9(0x11d)])==null||_0xa33ed8[_0x4c49c9(0x129)](),this[_0x4c49c9(0x11d)]=null;}[_0x562b47(0xd0)](){const _0x356afa=_0x562b47;var _0x3b0322;this[_0x356afa(0x114)][_0x356afa(0x130)]('not-following'),(_0x3b0322=this[_0x356afa(0x11d)])==null||_0x3b0322[_0x356afa(0x129)]();}[_0x562b47(0x14b)](_0x1eaf46){const _0x1bf23c=_0x562b47;if([_0x1bf23c(0x101),_0x1bf23c(0x124),_0x1bf23c(0xd3)][_0x1bf23c(0xf3)](this[_0x1bf23c(0x122)])||!_0x1eaf46[_0x1bf23c(0x135)][_0x1bf23c(0xf5)]||_0x1eaf46[_0x1bf23c(0x135)][_0x1bf23c(0xf5)]===this['_collabSession']['getMemberID']())return;this[_0x1bf23c(0x122)]===_0x1bf23c(0x14a)&&this[_0x1bf23c(0xd5)]();const _0x3e2d4e=_0x1eaf46[_0x1bf23c(0x135)][_0x1bf23c(0xfe)];Object[_0x1bf23c(0x167)](_0x3e2d4e)[_0x1bf23c(0x105)](_0x367c4c=>{const _0x5111c2=_0x1bf23c;this['_commandService'][_0x5111c2(0xe7)](_0x367c4c['id'],_0x367c4c['params']?JSON[_0x5111c2(0x12f)](_0x367c4c[_0x5111c2(0x11b)]):null,{'fromCollab':!0x0});});}[_0x562b47(0x108)](){const _0x3fb4bc=_0x562b47;var _0x25d51f;this[_0x3fb4bc(0x114)][_0x3fb4bc(0x130)](_0x3fb4bc(0xd3)),(_0x25d51f=this['_commandDisposable'])==null||_0x25d51f[_0x3fb4bc(0x129)]();}[_0x562b47(0x165)](){const _0x2125bc=_0x562b47;this[_0x2125bc(0x114)][_0x2125bc(0x130)](_0x2125bc(0x14a)),this[_0x2125bc(0xf8)]();}};N=Y([_(0x2,_0x974748),_(0x3,_0x264acd(L)),_(0x4,_0x105090)],N);function Le(){const _0x4a6c4b=_0x562b47,_0x46f034=_0x38dad9(S),_0x4b5495=_0x38dad9(_0x187255),_0x357f80=_0x14a93c(()=>_0x4b5495[_0x4a6c4b(0x12b)](_0x51802f[_0x4a6c4b(0xda)]),void 0x0,!0x1,[]),[_0x321261,_0x2b483d]=_0x555c58(null),[_0x39da3e,_0x487c08]=_0x555c58(c[_0x4a6c4b(0x117)]),_0x5c9aba=_0x2dba5e(null);return _0x22e887(()=>(_0x357f80&&_0x46f034[_0x4a6c4b(0xcc)](_0x357f80[_0x4a6c4b(0xc4)]())[_0x4a6c4b(0x143)](_0x58b38f=>{const _0x41f29a=_0x4a6c4b;_0x2b483d(_0x58b38f),_0x5c9aba['current']=_0x58b38f[_0x41f29a(0xff)][_0x41f29a(0xec)](_0x3a5734=>{_0x487c08(_0x3a5734);});}),()=>{const _0x5053c7=_0x4a6c4b;var _0x4e470b;(_0x4e470b=_0x5c9aba[_0x5053c7(0xe2)])==null||_0x4e470b[_0x5053c7(0x10d)](),_0x5c9aba['current']=null;}),[_0x357f80,_0x46f034]),_0x321261?_0x33bb7b(_0x5079de,{'align':_0x4a6c4b(0x110),'disabled':_0x39da3e===c[_0x4a6c4b(0xe5)],'className':_0x4a6c4b(0xf1),'overlay':_0x33bb7b(Re,{'status':_0x39da3e,'coordinator':_0x321261}),'children':_0x33bb7b(_0x4a6c4b(0x15b),{'className':_0x54f579(_0x4a6c4b(0xf2),{'univer-cursor-not-allowed':_0x39da3e===c[_0x4a6c4b(0xe5)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x39da3e!==c[_0x4a6c4b(0xe5)]}),'type':_0x4a6c4b(0x15b),'children':_0x33bb7b(W,{'className':_0x4a6c4b(0x134)})})}):null;}function Re(_0xcd5400){const _0x5cb8f9=_0x562b47,{status:_0xf6ff60,coordinator:_0x103430}=_0xcd5400;switch(_0xf6ff60){case c[_0x5cb8f9(0x117)]:return _0x33bb7b($e,{'coordinator':_0x103430});case c[_0x5cb8f9(0x160)]:return _0x33bb7b(xe,{'coordinator':_0x103430});case c[_0x5cb8f9(0xed)]:return _0x33bb7b(Pe,{'coordinator':_0x103430});case c[_0x5cb8f9(0xe5)]:return _0x33bb7b(Te,{});case c[_0x5cb8f9(0x141)]:return _0x33bb7b(Ae,{'coordinator':_0x103430});default:return null;}}function $e(_0xfe284e){const _0x49706d=_0x562b47,{coordinator:_0x41fae0}=_0xfe284e;return _0x4dcdb8(_0x967f7f,{'children':[_0x33bb7b(_0x49706d(0x11c),{'className':_0x49706d(0x11a),'children':_0x49706d(0xfd)}),_0x33bb7b(_0x468343,{'onClick':()=>_0x41fae0[_0x49706d(0x146)](),'children':'Start'})]});}function xe(_0xea0781){const _0x59e65e=_0x562b47,{coordinator:_0x3077cf}=_0xea0781;return _0x4dcdb8(_0x967f7f,{'children':[_0x33bb7b(_0x59e65e(0x11c),{'className':_0x59e65e(0x11a),'children':_0x59e65e(0x123)}),_0x33bb7b(_0x468343,{'onClick':()=>_0x3077cf[_0x59e65e(0xd4)](),'children':'Stop\x20following'})]});}function Pe(_0x17c015){const _0x173e7b=_0x562b47,{coordinator:_0x5e2ed2}=_0x17c015;return _0x4dcdb8(_0x967f7f,{'children':[_0x33bb7b('div',{'className':_0x173e7b(0x11a),'children':_0x173e7b(0x107)}),_0x33bb7b(_0x468343,{'variant':_0x173e7b(0x116),'onClick':()=>_0x5e2ed2[_0x173e7b(0x10e)](),'children':'Start\x20following'})]});}function _0x465d(_0x3d6d8f,_0x39997c){_0x3d6d8f=_0x3d6d8f-0xc1;const _0xad37bf=_0xad37();let _0x465d9f=_0xad37bf[_0x3d6d8f];return _0x465d9f;}function Ae(_0x338c7b){const _0xca71c4=_0x562b47,{coordinator:_0x1aef68}=_0x338c7b;return _0x4dcdb8(_0x967f7f,{'children':[_0x33bb7b(_0xca71c4(0x11c),{'className':_0xca71c4(0x11a),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x33bb7b(_0x468343,{'variant':_0xca71c4(0x104),'onClick':()=>_0x1aef68[_0xca71c4(0x14d)](),'children':_0xca71c4(0xc8)})]});}function Te(){const _0x371d4c=_0x562b47;return _0x33bb7b(_0x967f7f,{'children':_0x371d4c(0x157)});}var Fe=Object[_0x562b47(0xe8)],He=(_0x3efd5d,_0x30871a,_0x33d905,_0x4119a7)=>{for(var _0x47ffec=_0x4119a7>0x1?void 0x0:_0x4119a7?Fe(_0x30871a,_0x33d905):_0x30871a,_0x1b80fe=_0x3efd5d['length']-0x1,_0x213264;_0x1b80fe>=0x0;_0x1b80fe--)(_0x213264=_0x3efd5d[_0x1b80fe])&&(_0x47ffec=_0x213264(_0x47ffec)||_0x47ffec);return _0x47ffec;},A=(_0x4c9b00,_0x3defb5)=>(_0x434d3a,_0x582c0c)=>_0x3defb5(_0x434d3a,_0x582c0c,_0x4c9b00);let m=class extends _0x2e50d0{constructor(_0x33f367,_0x44a88a){const _0x4b3204=_0x562b47;super(),this[_0x4b3204(0x103)]=_0x33f367,this[_0x4b3204(0x131)]=_0x44a88a,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x4db92a=_0x562b47;this[_0x4db92a(0xcb)](this[_0x4db92a(0x131)][_0x4db92a(0x106)](_0x2de438['HEADER_MENU'],()=>_0x183c2b(Le,this[_0x4db92a(0x103)])));}};m=He([A(0x0,_0x264acd(_0x126a5b)),A(0x1,_0x28a6aa)],m);const ye='live-share.config',T={};var Ue=Object[_0x562b47(0xe8)],Ve=(_0x5ca6a7,_0x2b3f17,_0x496a25,_0x405d8c)=>{const _0x56bbb8=_0x562b47;for(var _0x5a0f03=_0x405d8c>0x1?void 0x0:_0x405d8c?Ue(_0x2b3f17,_0x496a25):_0x2b3f17,_0x33f87f=_0x5ca6a7[_0x56bbb8(0xf0)]-0x1,_0x110241;_0x33f87f>=0x0;_0x33f87f--)(_0x110241=_0x5ca6a7[_0x33f87f])&&(_0x5a0f03=_0x110241(_0x5a0f03)||_0x5a0f03);return _0x5a0f03;},je=(_0x368bdf,_0x5f58f2)=>(_0x4901b3,_0x4bfac9)=>_0x5f58f2(_0x4901b3,_0x4bfac9,_0x368bdf);let I=class extends _0x2e50d0{constructor(_0xf15733){const _0x3e77f3=_0x562b47;super(),this[_0x3e77f3(0x13c)]=_0xf15733,this[_0x3e77f3(0x13a)]();}['_init'](){const _0x29fecc=_0x562b47;[_0x4e0176['id'],_0xdcd218['id'],_0x56bd43['id']][_0x29fecc(0x105)](_0x9f8534=>{const _0x15a010=_0x29fecc;this[_0x15a010(0xcb)](this[_0x15a010(0x13c)][_0x15a010(0x10c)](_0x9f8534));});}};I=Ve([je(0x0,_0x264acd(L))],I);var Me=Object[_0x562b47(0xe9)],ke=Object[_0x562b47(0xe8)],Ge=(_0x478195,_0x55241a,_0x3a2b8a)=>_0x55241a in _0x478195?Me(_0x478195,_0x55241a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a2b8a}):_0x478195[_0x55241a]=_0x3a2b8a,We=(_0x35fe86,_0x39fabc,_0x1c7658,_0x12c030)=>{const _0x23fed1=_0x562b47;for(var _0x46c4ee=_0x12c030>0x1?void 0x0:_0x12c030?ke(_0x39fabc,_0x1c7658):_0x39fabc,_0x425e53=_0x35fe86[_0x23fed1(0xf0)]-0x1,_0xcbbbcc;_0x425e53>=0x0;_0x425e53--)(_0xcbbbcc=_0x35fe86[_0x425e53])&&(_0x46c4ee=_0xcbbbcc(_0x46c4ee)||_0x46c4ee);return _0x46c4ee;},F=(_0xf7d262,_0x5c51ae)=>(_0x37ffa7,_0x22314d)=>_0x5c51ae(_0x37ffa7,_0x22314d,_0xf7d262),B=(_0x281cd1,_0x57b597,_0x5bc9c6)=>Ge(_0x281cd1,typeof _0x57b597!=_0x562b47(0x10f)?_0x57b597+'':_0x57b597,_0x5bc9c6);const Ye=_0x562b47(0xc2);let b=class extends _0x1130c7{constructor(_0x32209a=T,_0x3c6ecf,_0x4cae29){const _0x579846=_0x562b47;super(),this[_0x579846(0x14e)]=_0x32209a,this['_injector']=_0x3c6ecf,this[_0x579846(0xdf)]=_0x4cae29;const {..._0x1bd3dc}=_0xb0c13e({},T,this[_0x579846(0x14e)]);this[_0x579846(0xdf)]['setConfig'](ye,_0x1bd3dc);}[_0x562b47(0xc9)](){const _0x5c9daf=_0x562b47;_0x333ef5(this['_injector'],_0x3d1a15([[L],[S],[I],[m]],this['_config'][_0x5c9daf(0x126)])),_0x1c3957(this[_0x5c9daf(0x103)],[[I]]);}[_0x562b47(0xfa)](){const _0xbd4a61=_0x562b47;_0x1c3957(this[_0xbd4a61(0x103)],[[m]]);}};B(b,_0x562b47(0x102),_0x51802f[_0x562b47(0x15d)]),B(b,'pluginName',Ye),b=We([_0x411c47(_0x4e7d3f),F(0x1,_0x264acd(_0x126a5b)),F(0x2,_0x974748)],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
|
-
|
|
1
|
+
(function(_0x22f622,_0x2c99cb){const _0x58d030=_0x51ec,_0x2bac3b=_0x22f622();while(!![]){try{const _0x32256c=parseInt(_0x58d030(0x17a))/0x1+parseInt(_0x58d030(0x191))/0x2*(parseInt(_0x58d030(0x179))/0x3)+parseInt(_0x58d030(0x180))/0x4+parseInt(_0x58d030(0x1a1))/0x5*(-parseInt(_0x58d030(0x172))/0x6)+-parseInt(_0x58d030(0x192))/0x7*(parseInt(_0x58d030(0x19f))/0x8)+-parseInt(_0x58d030(0x183))/0x9*(-parseInt(_0x58d030(0x197))/0xa)+-parseInt(_0x58d030(0x186))/0xb;if(_0x32256c===_0x2c99cb)break;else _0x2bac3b['push'](_0x2bac3b['shift']());}catch(_0x56544b){_0x2bac3b['push'](_0x2bac3b['shift']());}}}(_0x4093,0x47af3),function(_0x539ffa,_0x66bf8d){const _0x5cc4b0=_0x51ec;typeof exports==_0x5cc4b0(0x182)&&typeof module<'u'?_0x66bf8d(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==_0x5cc4b0(0x19e)&&define[_0x5cc4b0(0x18b)]?define([_0x5cc4b0(0x189),'@univerjs/engine-render',_0x5cc4b0(0x17e),_0x5cc4b0(0x17f),'@univerjs/sheets/facade',_0x5cc4b0(0x18e)],_0x66bf8d):(_0x539ffa=typeof globalThis<'u'?globalThis:_0x539ffa||self,_0x66bf8d(_0x539ffa['UniverProLiveShare'],_0x539ffa[_0x5cc4b0(0x175)],_0x539ffa[_0x5cc4b0(0x18d)],_0x539ffa[_0x5cc4b0(0x17b)],_0x539ffa[_0x5cc4b0(0x16f)],_0x539ffa[_0x5cc4b0(0x193)]));}(this,function(_0x2cad39,_0x5c774b,_0x4bf3e8,_0x2994bd,_0x46fc13,_0x20d43d){'use strict';const _0x3e8c19=_0x51ec;class _0x144f49 extends _0x46fc13['FRange']{['_initialize'](_0x3644e3,_0x4796f4,_0x1249d8,_0x2de1f9,_0x568638){const _0x535b66=_0x51ec,_0x1b96f4=_0x3644e3[_0x535b66(0x185)](_0x2cad39[_0x535b66(0x17d)]),_0x259140=_0x3644e3[_0x535b66(0x185)](_0x5c774b[_0x535b66(0x187)]),_0x1527ea=_0x4796f4[_0x535b66(0x199)](),_0x227555=_0x4796f4[_0x535b66(0x198)](),_0x1d9a4f=_0x1b96f4['getLiveShareCoordinatorSync'](_0x1527ea);(_0x1d9a4f==null?void 0x0:_0x1d9a4f[_0x535b66(0x176)]())!==_0x2cad39[_0x535b66(0x190)][_0x535b66(0x196)]||(_0x1249d8[_0x535b66(0x174)]()!==_0x227555[_0x535b66(0x174)]()&&this[_0x535b66(0x178)][_0x535b66(0x188)](_0x4bf3e8[_0x535b66(0x17c)]['id'],{'unitId':_0x1527ea,'subUnitId':_0x1249d8[_0x535b66(0x174)]()}),!_0x259140['getRenderById'](_0x1527ea))||_0x568638[_0x535b66(0x19b)](_0x2994bd['SetScrollOperation']['id'],{'unitId':_0x4796f4[_0x535b66(0x199)](),'sheetId':_0x1249d8[_0x535b66(0x174)](),'sheetViewStartRow':_0x2de1f9[_0x535b66(0x171)],'sheetViewStartColumn':_0x2de1f9['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x46fc13[_0x3e8c19(0x177)][_0x3e8c19(0x19a)](_0x144f49);class _0x83382f extends _0x20d43d['FUniver']{['getLiveShareStatus'](){const _0x296a27=_0x3e8c19;var _0x57dd56,_0x4a16dd;const _0x38a435=this[_0x296a27(0x181)][_0x296a27(0x185)](_0x2cad39[_0x296a27(0x17d)]),_0x5987b9=(_0x57dd56=this[_0x296a27(0x18c)]())==null?void 0x0:_0x57dd56['getId']();if(!_0x5987b9)throw new Error(_0x296a27(0x194));const _0x119ad8=_0x38a435['getLiveShareCoordinatorSync'](_0x5987b9);return(_0x4a16dd=_0x119ad8==null?void 0x0:_0x119ad8[_0x296a27(0x176)]())!=null?_0x4a16dd:_0x2cad39[_0x296a27(0x190)][_0x296a27(0x170)];}['startFollowing'](){const _0x4ed947=_0x3e8c19;var _0x46b1e2;const _0x528251=this[_0x4ed947(0x181)][_0x4ed947(0x185)](_0x2cad39[_0x4ed947(0x17d)]),_0x1fc577=(_0x46b1e2=this[_0x4ed947(0x18c)]())==null?void 0x0:_0x46b1e2[_0x4ed947(0x195)]();if(!_0x1fc577)throw new Error('No\x20active\x20workbook\x20found.');const _0x31bf60=_0x528251[_0x4ed947(0x19c)](_0x1fc577);if(!_0x31bf60)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x31bf60[_0x4ed947(0x173)]();}[_0x3e8c19(0x184)](){const _0x1c071b=_0x3e8c19;var _0x924cc9;const _0x74e00c=this[_0x1c071b(0x181)][_0x1c071b(0x185)](_0x2cad39[_0x1c071b(0x17d)]),_0x581b87=(_0x924cc9=this[_0x1c071b(0x18c)]())==null?void 0x0:_0x924cc9['getId']();if(!_0x581b87)throw new Error(_0x1c071b(0x194));const _0x5392b0=_0x74e00c['getLiveShareCoordinatorSync'](_0x581b87);if(!_0x5392b0)throw new Error(_0x1c071b(0x1a0));_0x5392b0[_0x1c071b(0x184)]();}[_0x3e8c19(0x18f)](){const _0x2718a6=_0x3e8c19;var _0x4f9f95;const _0x18664c=this[_0x2718a6(0x181)]['get'](_0x2cad39[_0x2718a6(0x17d)]),_0x1602b8=(_0x4f9f95=this[_0x2718a6(0x18c)]())==null?void 0x0:_0x4f9f95[_0x2718a6(0x195)]();if(!_0x1602b8)throw new Error(_0x2718a6(0x194));const _0x16da48=_0x18664c['getLiveShareCoordinatorSync'](_0x1602b8);if(!_0x16da48)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x16da48['tryStartPresenting']();}['stopPresenting'](){const _0x439b90=_0x3e8c19;var _0x579e45;const _0x43eedc=this[_0x439b90(0x181)][_0x439b90(0x185)](_0x2cad39[_0x439b90(0x17d)]),_0x501e56=(_0x579e45=this[_0x439b90(0x18c)]())==null?void 0x0:_0x579e45['getId']();if(!_0x501e56)throw new Error(_0x439b90(0x194));const _0x58d9e3=_0x43eedc['getLiveShareCoordinatorSync'](_0x501e56);if(!_0x58d9e3)throw new Error(_0x439b90(0x1a0));_0x58d9e3['stopPresenting']();}}_0x20d43d[_0x3e8c19(0x18a)]['extend'](_0x83382f);class _0x3827f7 extends _0x20d43d[_0x3e8c19(0x19d)]{get['LiveShareStatusEnum'](){const _0x261e44=_0x3e8c19;return _0x2cad39[_0x261e44(0x190)];}}_0x20d43d[_0x3e8c19(0x19d)][_0x3e8c19(0x19a)](_0x3827f7);}));function _0x51ec(_0xeac57e,_0x3ece45){_0xeac57e=_0xeac57e-0x16f;const _0x409396=_0x4093();let _0x51ec03=_0x409396[_0xeac57e];return _0x51ec03;}function _0x4093(){const _0xa3e1ce=['amd','getActiveWorkbook','UniverSheets','@univerjs/core/facade','startPresenting','LiveShareStatus','2518iBOrhJ','438326gnNhOI','UniverCoreFacade','No\x20active\x20workbook\x20found.','getId','PRESENTING','410UJLSNx','getActiveSheet','getUnitId','extend','syncExecuteCommand','getLiveShareCoordinatorSync','FEnum','function','72fNSVlR','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','2235YkoOKv','UniverSheetsFacade','IDLE','startRow','2838ixKPMd','startFollowing','getSheetId','UniverEngineRender','getStatus','FRange','_commandService','753ZItSNw','552304UCCOwD','UniverSheetsUi','SetWorksheetActiveOperation','LiveShareController','@univerjs/sheets','@univerjs/sheets-ui','643820KlECdQ','_injector','object','54909nihteW','stopFollowing','get','2318767yEDCCr','IRenderManagerService','executeCommand','@univerjs-pro/live-share','FUniver'];_0x4093=function(){return _0xa3e1ce;};return _0x4093();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x1699(){const _0x4f9b76=['live-share-icon','registerComponent','substring','getConfig','LiveShareController','getCurrentTypeOfUnit$','map','unsubscribe','_startFollowing','CollaborationSessionService','_collabSessionService','forEach','ICommandService','_mountLiveShare','Start','SetZoomRatioOperation','LIVESHARE_NEW_HOST','Disposable','data','UniverDesign','_liveShareService','toStringTag','_injector','requireSession','getMemberID','1563890DkvwZo','string','colorChannel1','exports','React','tryStartPresenting','default','SetWorksheetActiveOperation','Start\x20following','You\x27are\x20offline.','Module','symbol','presenter','getInitialStates','div','_handleOperation','3156904usvbgF','4594820YNIOAm','next','BehaviorSubject','_commandDisposable','reverse','UNIVER_SHEET','_handleNewHost','FOLLOWING','set','Injector','end','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','IUniverInstanceService','IUIPartsService','5420130PASSIb','includes','_handleOnline','InsertSheetMutation','_startPresenting','tag','asObservable','init','2489247OuMgsA','use','memberID','none','get','useRef','You\x27re\x20following\x20the\x20presenter','RxDisposable','sessionStatus$','jsx','parse','DesktopLiveShareController','@univerjs-pro/collaboration-client','svg','_config','connectInjector','Present\x20this\x20document','displayName','Button','subscribe','amd','_stopPresenting','toDisposable','add','You\x27re\x20not\x20following\x20the\x20presenter','UniverCore','_entities','idSuffix','_reporters','Plugin','assign','LiveShare','toString','path','stopFollowing','UniverProLiveShare','send','6393443WnWlRp','current','clear','pipe','merge','touchDependencies','SAME_OPERATION_SHARE_INTERVAL','setConfig','LiveShareIcon','react/jsx-runtime','stringify','registerInitialStateReporter','LIVESHARE_OPERATION','following','currentColor','sheet','UniverCollaborationClientPlugin','_handleOffline','CollaborationEvent','evenodd','fill','_startLiveShareCoordinator','IConfigService','react','_configService','_unitID','event$','rxjs/operators','defineProperty','@univerjs/core','@univerjs/design','idle','LIVESHARE_FETCH_OPERATIONS','You\x27re\x20presenting\x20the\x20document','parseProtocolChangeset','not-following','ONLINE','dispose','length','NOT_FOLLOWING','_collabSession','UniverSheetsUi','SessionStatus','_stopFollowing','getStatus','NEW_CHANGESETS','univer-size-4','getUnitId','Stop\x20presenting','override','_fetchOperations','startFollowing','getLiveShareCoordinatorSync','_presenter','mergeOverrideWithDependencies','replace','_handleTerminate','values','button','stopPresenting','random','getValue','find','_status$','defs','onCommandExecuted','delete','_beIdle','_handleNewChangeSets','attrs','UNIVER_LIVE_SHARE_PLUGIN','SetScrollOperation','1em','getLiveShareCoordinator','@univerjs-pro/collaboration','presenting','UniverInstanceType','Fragment','takeUntil','url(#$1','Dropdown','getTypeOfUnitAdded$','params','1vGMaQF','LIVESHARE_REQUEST_HOST','pluginName','univer-mb-3\x20univer-w-full\x20univer-text-sm','IDLE','object','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','type','registerDependencies','UniverIcon','throttleTime','OFFLINE','jsxs','@univerjs/ui','createInstance','OPERATION','UniverProCollaboration','_init','clsx','LIVESHARE_TERMINATE','status$','0\x200\x2017\x2017','createElement','LiveShareCoordinator','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','Inject','_commandService','_uiPartsService','useState','getOwnPropertyDescriptor','unitId','UniverSheets','http://www.w3.org/2000/svg','3307608TksVAb','operations','dispose$','from','children','useDependency','@univerjs/sheets','has','UniverLiveSharePlugin','_sharedOperations','UniverUi','xlink:href','PRESENTING','defIds','_univerInstanceService','_status','disposeWithMe','mask','UNIVER_UNKNOWN','onStarting','useObservable','offline','registerSharedOperation'];_0x1699=function(){return _0x4f9b76;};return _0x1699();}function _0x321c(_0x2398bc,_0x18cfbc){const _0x1699bc=_0x1699();return _0x321c=function(_0x321cb5,_0x44ccad){_0x321cb5=_0x321cb5-0xef;let _0x19672b=_0x1699bc[_0x321cb5];return _0x19672b;},_0x321c(_0x2398bc,_0x18cfbc);}(function(_0xc33571,_0x5f5c61){const _0x45abd3=_0x321c,_0x39d4ad=_0xc33571();while(!![]){try{const _0x51613f=-parseInt(_0x45abd3(0x101))/0x1*(parseInt(_0x45abd3(0x152))/0x2)+parseInt(_0x45abd3(0x179))/0x3+-parseInt(_0x45abd3(0x122))/0x4+-parseInt(_0x45abd3(0x163))/0x5+parseInt(_0x45abd3(0x171))/0x6+parseInt(_0x45abd3(0x19e))/0x7+parseInt(_0x45abd3(0x162))/0x8;if(_0x51613f===_0x5f5c61)break;else _0x39d4ad['push'](_0x39d4ad['shift']());}catch(_0x253bec){_0x39d4ad['push'](_0x39d4ad['shift']());}}}(_0x1699,0x7d4e7),function(_0x28542b,_0x436aa3){const _0x47c37d=_0x321c;typeof exports==_0x47c37d(0x106)&&typeof module<'u'?_0x436aa3(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=='function'&&define[_0x47c37d(0x18d)]?define([_0x47c37d(0x155),_0x47c37d(0x1bb),_0x47c37d(0x10e),_0x47c37d(0x1a7),_0x47c37d(0x1bc),_0x47c37d(0x1b5),_0x47c37d(0xf8),_0x47c37d(0x185),_0x47c37d(0x128),'rxjs',_0x47c37d(0x1b9),'@univerjs/sheets-ui'],_0x436aa3):(_0x28542b=typeof globalThis<'u'?globalThis:_0x28542b||self,_0x436aa3(_0x28542b[_0x47c37d(0x19c)]={},_0x28542b[_0x47c37d(0x192)],_0x28542b[_0x47c37d(0x12c)],_0x28542b[_0x47c37d(0x156)],_0x28542b[_0x47c37d(0x14c)],_0x28542b[_0x47c37d(0x156)],_0x28542b[_0x47c37d(0x111)],_0x28542b['UniverProCollaborationClient'],_0x28542b[_0x47c37d(0x120)],_0x28542b['rxjs'],_0x28542b['rxjs']['operators'],_0x28542b[_0x47c37d(0x1c7)]));}(this,function(_0x1aa668,_0x544c92,_0x4e5103,_0x135a27,_0x2666de,_0x51f070,_0x403454,_0x1171e0,_0x336bc0,_0x498c12,_0x3c3415,_0x4f2758){'use strict';const _0x27edfa=_0x321c;var _0x9ac266=Object[_0x27edfa(0x1ba)],_0x20f232=(_0x501b9c,_0x176e36,_0x34e5d4)=>_0x176e36 in _0x501b9c?_0x9ac266(_0x501b9c,_0x176e36,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x34e5d4}):_0x501b9c[_0x176e36]=_0x34e5d4,_0x428aec=(_0x300461,_0x4579cd,_0x3eb66d)=>_0x20f232(_0x300461,typeof _0x4579cd!='symbol'?_0x4579cd+'':_0x4579cd,_0x3eb66d);function _0xa2edf3({ref:_0x5aa3d2,..._0xa5d6c0}){const _0x5126d9=_0x27edfa,{icon:_0x1c6eee,id:_0xc58cec,className:_0x19bf42,extend:_0x277072,..._0x19f01e}=_0xa5d6c0,_0x1d037f=('univerjs-icon\x20univerjs-icon-'+_0xc58cec+'\x20'+(_0x19bf42||''))['trim'](),_0x434069=_0x51f070['useRef']('_'+_0x318637());return _0x2f6013(_0x1c6eee,''+_0xc58cec,{'defIds':_0x1c6eee[_0x5126d9(0x12f)],'idSuffix':_0x434069[_0x5126d9(0x19f)]},{'ref':_0x5aa3d2,'className':_0x1d037f,..._0x19f01e},_0x277072);}function _0x2f6013(_0x499117,_0x416309,_0x5505e3,_0x63a168,_0x3a1ef0){const _0x7c4b8=_0x27edfa;return _0x51f070[_0x7c4b8(0x117)](_0x499117[_0x7c4b8(0x176)],{'key':_0x416309,..._0x5dcaeb(_0x499117,_0x5505e3,_0x3a1ef0),..._0x63a168},(_0x375833(_0x499117,_0x5505e3)[_0x7c4b8(0x126)]||[])[_0x7c4b8(0x13f)]((_0x5efd08,_0x3d631d)=>_0x2f6013(_0x5efd08,_0x416309+'-'+_0x499117[_0x7c4b8(0x176)]+'-'+_0x3d631d,_0x5505e3,void 0x0,_0x3a1ef0)));}function _0x5dcaeb(_0xcd5580,_0x31f1f0,_0xd3d6eb){const _0x450198=_0x27edfa,_0x2e8c66={..._0xcd5580[_0x450198(0xf3)]};_0xd3d6eb!=null&&_0xd3d6eb[_0x450198(0x154)]&&_0x2e8c66[_0x450198(0x1b2)]===_0x450198(0x154)&&(_0x2e8c66[_0x450198(0x1b2)]=_0xd3d6eb[_0x450198(0x154)]),_0xcd5580[_0x450198(0x176)]===_0x450198(0x133)&&_0x2e8c66['id']&&(_0x2e8c66['id']=_0x2e8c66['id']+_0x31f1f0[_0x450198(0x194)]),Object['entries'](_0x2e8c66)[_0x450198(0x144)](([_0x482bfc,_0xa54c37])=>{const _0x45992f=_0x450198;_0x482bfc==='mask'&&typeof _0xa54c37==_0x45992f(0x153)&&(_0x2e8c66[_0x482bfc]=_0xa54c37['replace'](/url\(#(.*)\)/,_0x45992f(0xfd)+_0x31f1f0['idSuffix']+')'));});const {defIds:_0x1a01e9}=_0x31f1f0;return!_0x1a01e9||_0x1a01e9[_0x450198(0x1c4)]===0x0||(_0xcd5580[_0x450198(0x176)]===_0x450198(0x17a)&&_0x2e8c66[_0x450198(0x12d)]&&(_0x2e8c66[_0x450198(0x12d)]=_0x2e8c66[_0x450198(0x12d)]+_0x31f1f0[_0x450198(0x194)]),Object['entries'](_0x2e8c66)[_0x450198(0x144)](([_0x392525,_0x3b226f])=>{const _0x4ab063=_0x450198;typeof _0x3b226f==_0x4ab063(0x153)&&(_0x2e8c66[_0x392525]=_0x3b226f[_0x4ab063(0x1d5)](/url\(#(.*)\)/,_0x4ab063(0xfd)+_0x31f1f0[_0x4ab063(0x194)]+')'));})),_0x2e8c66;}function _0x375833(_0x126225,_0x2a3473){const _0x323f84=_0x27edfa;var _0x3f8467;const {defIds:_0x32421c}=_0x2a3473;return!_0x32421c||_0x32421c[_0x323f84(0x1c4)]===0x0?_0x126225:_0x126225[_0x323f84(0x176)]===_0x323f84(0x1de)&&((_0x3f8467=_0x126225[_0x323f84(0x126)])!=null&&_0x3f8467[_0x323f84(0x1c4)])?{..._0x126225,'children':_0x126225[_0x323f84(0x126)]['map'](_0x263281=>typeof _0x263281[_0x323f84(0xf3)]['id']==_0x323f84(0x153)&&_0x32421c&&_0x32421c[_0x323f84(0x172)](_0x263281[_0x323f84(0xf3)]['id'])?{..._0x263281,'attrs':{..._0x263281[_0x323f84(0xf3)],'id':_0x263281[_0x323f84(0xf3)]['id']+_0x2a3473[_0x323f84(0x194)]}}:_0x263281)}:_0x126225;}function _0x318637(){const _0x47db3d=_0x27edfa;return Math[_0x47db3d(0x1da)]()[_0x47db3d(0x199)](0x24)[_0x47db3d(0x13b)](0x2,0x8);}_0xa2edf3[_0x27edfa(0x18a)]=_0x27edfa(0x10a);const _0x2b3782={'tag':_0x27edfa(0x186),'attrs':{'xmlns':_0x27edfa(0x121),'fill':_0x27edfa(0x17c),'viewBox':_0x27edfa(0x116),'width':_0x27edfa(0xf6),'height':_0x27edfa(0xf6)},'children':[{'tag':_0x27edfa(0x19a),'attrs':{'fill':'currentColor','d':_0x27edfa(0x119)}},{'tag':_0x27edfa(0x19a),'attrs':{'fill':_0x27edfa(0x1ac),'d':_0x27edfa(0x107),'fillRule':_0x27edfa(0x1b1),'clipRule':_0x27edfa(0x1b1)}}]},_0x45b447=_0x51f070['forwardRef'](function(_0x3272e3,_0xe5e913){const _0x31e93e=_0x27edfa;return _0x51f070[_0x31e93e(0x117)](_0xa2edf3,Object[_0x31e93e(0x197)]({},_0x3272e3,{'id':_0x31e93e(0x139),'ref':_0xe5e913,'icon':_0x2b3782}));});_0x45b447[_0x27edfa(0x18a)]=_0x27edfa(0x1a6);class _0x181d67 extends _0x544c92[_0x27edfa(0x14a)]{constructor(){const _0x4c87a5=_0x27edfa;super(...arguments),_0x428aec(this,_0x4c87a5(0x12b),new Set()),_0x428aec(this,'_reporters',new Set());}['registerSharedOperation'](_0x584e88){const _0x3e3136=_0x27edfa;return this[_0x3e3136(0x12b)]['add'](_0x584e88),_0x544c92['toDisposable'](()=>this[_0x3e3136(0x12b)]['delete'](_0x584e88));}[_0x27edfa(0x1a9)](_0x5990f4){const _0x554765=_0x27edfa;return this['_reporters'][_0x554765(0x190)](_0x5990f4),_0x544c92[_0x554765(0x18f)](()=>this[_0x554765(0x195)][_0x554765(0xf0)](_0x5990f4));}['shouldShareOperation'](_0x32ff90){const _0x3c65a4=_0x27edfa;return this[_0x3c65a4(0x12b)][_0x3c65a4(0x129)](_0x32ff90);}[_0x27edfa(0x15f)](_0x4a7688){const _0x35625b=_0x27edfa;return Array[_0x35625b(0x125)](this[_0x35625b(0x195)])[_0x35625b(0x13f)](_0xc4eec6=>_0xc4eec6(_0x4a7688));}}var _0x12e594=Object[_0x27edfa(0x11e)],_0x2ebb4d=(_0x14dc1b,_0xae6aeb,_0x30ca5a,_0x464ec5)=>{const _0x100ab5=_0x27edfa;for(var _0x1fb579=_0x464ec5>0x1?void 0x0:_0x464ec5?_0x12e594(_0xae6aeb,_0x30ca5a):_0xae6aeb,_0x4362fb=_0x14dc1b[_0x100ab5(0x1c4)]-0x1,_0x41ecfb;_0x4362fb>=0x0;_0x4362fb--)(_0x41ecfb=_0x14dc1b[_0x4362fb])&&(_0x1fb579=_0x41ecfb(_0x1fb579)||_0x1fb579);return _0x1fb579;},_0x446061=(_0x10025f,_0x20abc4)=>(_0x56a4a1,_0x1b94a1)=>_0x20abc4(_0x56a4a1,_0x1b94a1,_0x10025f);_0x1aa668[_0x27edfa(0x13d)]=class extends _0x544c92[_0x27edfa(0x180)]{constructor(_0x4eaa3b,_0x294106,_0x343ab1){const _0xcfd275=_0x27edfa;super(),_0x428aec(this,_0xcfd275(0x193),new Map()),(this['_univerInstanceService']=_0x4eaa3b,this['_injector']=_0x294106,this[_0xcfd275(0x143)]=_0x343ab1,this[_0xcfd275(0x112)]());}async[_0x27edfa(0xf7)](_0x9cda37){const _0x558e32=_0x27edfa;return this[_0x558e32(0x193)][_0x558e32(0x129)](_0x9cda37)||await this['_startLiveShareCoordinator'](_0x9cda37),this[_0x558e32(0x193)][_0x558e32(0x17d)](_0x9cda37);}[_0x27edfa(0x1d2)](_0x1e2d5e){var _0x5afb7e;return(_0x5afb7e=this['_entities']['get'](_0x1e2d5e))!=null?_0x5afb7e:null;}[_0x27edfa(0x112)](){const _0xe385b=_0x27edfa;this[_0xe385b(0x130)][_0xe385b(0xff)](_0x544c92[_0xe385b(0xfa)][_0xe385b(0x168)])['pipe'](_0x3c3415[_0xe385b(0xfc)](this['dispose$']))[_0xe385b(0x18c)](async _0x27cf3b=>{const _0x46ca29=_0xe385b,_0x360390=_0x27cf3b[_0x46ca29(0x1cd)]();this[_0x46ca29(0x193)][_0x46ca29(0x129)](_0x360390)||this[_0x46ca29(0x1b3)](_0x360390);}),this[_0xe385b(0x130)]['getTypeOfUnitDisposed$'](_0x544c92[_0xe385b(0xfa)]['UNIVER_SHEET'])['pipe'](_0x3c3415['takeUntil'](this[_0xe385b(0x124)]))[_0xe385b(0x18c)](_0x50b3d7=>{const _0x2c4b5a=_0xe385b,_0x1fcb28=_0x50b3d7[_0x2c4b5a(0x1cd)](),_0x5d8692=this[_0x2c4b5a(0x193)][_0x2c4b5a(0x17d)](_0x1fcb28);_0x5d8692==null||_0x5d8692[_0x2c4b5a(0x1c3)]();});}async[_0x27edfa(0x1b3)](_0x2672bc){const _0xeabb24=_0x27edfa,_0x5dcfa8=await this[_0xeabb24(0x143)][_0xeabb24(0x150)](_0x2672bc),_0x559eeb=this['_injector'][_0xeabb24(0x10f)](_0x1aa668[_0xeabb24(0x118)],_0x2672bc,_0x5dcfa8);return _0x559eeb[_0xeabb24(0x178)](),this[_0xeabb24(0x193)][_0xeabb24(0x16b)](_0x2672bc,_0x559eeb),_0x559eeb;}},_0x1aa668[_0x27edfa(0x13d)]=_0x2ebb4d([_0x446061(0x0,_0x544c92[_0x27edfa(0x16f)]),_0x446061(0x1,_0x544c92['Inject'](_0x544c92[_0x27edfa(0x16c)])),_0x446061(0x2,_0x544c92[_0x27edfa(0x11a)](_0x1171e0[_0x27edfa(0x142)]))],_0x1aa668['LiveShareController']);var _0x345d0f=(_0x588301=>(_0x588301[_0x27edfa(0x10c)]=_0x27edfa(0x137),_0x588301[_0x27edfa(0x105)]='idle',_0x588301['FOLLOWING']='following',_0x588301['NOT_FOLLOWING']=_0x27edfa(0x1c1),_0x588301[_0x27edfa(0x12e)]=_0x27edfa(0xf9),_0x588301))(_0x345d0f||{});const _0x3b4949=_0x27edfa(0x1a4),_0x38a0b5=0xc8;_0x1aa668[_0x27edfa(0x118)]=class extends _0x544c92[_0x27edfa(0x180)]{constructor(_0x18f15a,_0x2c1d72,_0x36f581,_0x510df3,_0x36465a){const _0x2900fe=_0x27edfa;super(),_0x428aec(this,'_status$',new _0x498c12[(_0x2900fe(0x165))](_0x2900fe(0x1bd))),_0x428aec(this,_0x2900fe(0x115),this[_0x2900fe(0x1dd)][_0x2900fe(0x177)]()),_0x428aec(this,_0x2900fe(0x112),!0x1),_0x428aec(this,_0x2900fe(0x166),null),_0x428aec(this,'_presenter',null),(this[_0x2900fe(0x1b7)]=_0x18f15a,this['_collabSession']=_0x2c1d72,this['_configService']=_0x36f581,this[_0x2900fe(0x14d)]=_0x510df3,this[_0x2900fe(0x11b)]=_0x36465a);}get[_0x27edfa(0x131)](){const _0x593451=_0x27edfa;return this[_0x593451(0x1dd)][_0x593451(0x1db)]();}['dispose'](){const _0x47cab3=_0x27edfa;var _0x3faef4;(_0x3faef4=this[_0x47cab3(0x166)])==null||_0x3faef4[_0x47cab3(0x1c3)](),this[_0x47cab3(0x1dd)][_0x47cab3(0x164)](_0x47cab3(0x1bd)),this[_0x47cab3(0x1dd)]['complete']();}[_0x27edfa(0x1ca)](){const _0xfd218f=_0x27edfa;return this[_0xfd218f(0x131)];}[_0x27edfa(0x178)](){const _0x110003=_0x27edfa;this['_init']||(this[_0x110003(0x112)]=!0x0,this['_collabSession'][_0x110003(0x181)][_0x110003(0x1a1)](_0x3c3415['takeUntil'](this['dispose$']))[_0x110003(0x18c)](_0x28453f=>{const _0x27d048=_0x110003;switch(_0x28453f){case _0x1171e0['SessionStatus'][_0x27d048(0x10c)]:this['_handleOffline']();break;case _0x1171e0[_0x27d048(0x1c8)][_0x27d048(0x1c2)]:this[_0x27d048(0x173)]();break;}}),this[_0x110003(0x1c6)][_0x110003(0x1b8)][_0x110003(0x1a1)](_0x3c3415[_0x110003(0xfc)](this['dispose$']))[_0x110003(0x18c)](_0x4502c2=>{const _0x452553=_0x110003,{eventID:_0x8ae176}=_0x4502c2;switch(_0x8ae176){case _0x403454[_0x452553(0x1b0)][_0x452553(0x149)]:this[_0x452553(0x169)](_0x4502c2);break;case _0x403454[_0x452553(0x1b0)][_0x452553(0x1aa)]:this[_0x452553(0x161)](_0x4502c2);break;case _0x403454[_0x452553(0x1b0)]['LIVESHARE_TERMINATE']:this[_0x452553(0x1d6)]();break;case _0x403454['CollaborationEvent'][_0x452553(0x1cb)]:this['_handleNewChangeSets'](_0x4502c2);break;}}));}[_0x27edfa(0x157)](){const _0x25e2b5=_0x27edfa;this[_0x25e2b5(0x1c6)][_0x25e2b5(0x19d)]({'eventID':_0x403454['CollaborationEvent'][_0x25e2b5(0x102)],'data':{'unitID':this[_0x25e2b5(0x1b7)],'userID':this[_0x25e2b5(0x1c6)][_0x25e2b5(0x151)]()}},this[_0x25e2b5(0x1b7)]);}[_0x27edfa(0x1d9)](){const _0x3e5cae=_0x27edfa;this[_0x3e5cae(0x131)]==='presenting'&&(this[_0x3e5cae(0x1dd)]['next'](_0x3e5cae(0x1bd)),this['_collabSession'][_0x3e5cae(0x19d)]({'eventID':_0x403454[_0x3e5cae(0x1b0)][_0x3e5cae(0x114)],'data':{'unitID':this[_0x3e5cae(0x1b7)]}},this[_0x3e5cae(0x1b7)]));}[_0x27edfa(0x1d1)](){const _0x57881b=_0x27edfa;this[_0x57881b(0x131)]===_0x57881b(0x1c1)&&(this[_0x57881b(0x1dd)][_0x57881b(0x164)](_0x57881b(0x1ab)),this[_0x57881b(0x141)]());}[_0x27edfa(0x19b)](){const _0x27a977=_0x27edfa;this['_status']===_0x27a977(0x1ab)&&this[_0x27a977(0x1c9)]();}['_handleNewHost'](_0x4504c9){const _0x274b3e=_0x27edfa,{presenter:_0x5d2b12}=_0x4504c9[_0x274b3e(0x14b)],_0x11a346=this[_0x274b3e(0x1c6)]['getMemberID']();this[_0x274b3e(0x1d3)]=_0x5d2b12,_0x5d2b12===_0x11a346?(this[_0x274b3e(0x1c9)](),this[_0x274b3e(0x175)]()):this[_0x274b3e(0x131)]!==_0x274b3e(0x1c1)&&(this[_0x274b3e(0x18e)](),this['_startFollowing']());}[_0x27edfa(0x1d0)](){const _0xf420c7=_0x27edfa,_0x2de098={'eventID':_0x403454['CollaborationEvent'][_0xf420c7(0x1be)]};this[_0xf420c7(0x1c6)][_0xf420c7(0x19d)](_0x2de098,this[_0xf420c7(0x1b7)]);}[_0x27edfa(0x1d6)](){const _0x20f3a3=_0x27edfa;this[_0x20f3a3(0x1d3)]=null,this[_0x20f3a3(0x131)]!==_0x20f3a3(0xf9)&&this[_0x20f3a3(0xf1)]();}[_0x27edfa(0xf2)](_0x57d427){const _0x44d802=_0x27edfa;if(this[_0x44d802(0x131)]==='following'&&this[_0x44d802(0x1d3)]===_0x57d427[_0x44d802(0x14b)][_0x44d802(0x17b)]){const _0x4fc7b6=_0x403454[_0x44d802(0x1c0)](_0x57d427[_0x44d802(0x14b)])['mutations'][_0x44d802(0x167)]()[_0x44d802(0x1dc)](_0x40974d=>_0x40974d['id']===_0x336bc0[_0x44d802(0x174)]['id']);if(_0x4fc7b6){const _0x6708a=_0x4fc7b6[_0x44d802(0x100)][_0x44d802(0x11f)],_0x2d1793=_0x4fc7b6[_0x44d802(0x100)][_0x44d802(0x1ad)]['id'];setTimeout(()=>{const _0x2c4f68=_0x44d802;this[_0x2c4f68(0x11b)]['executeCommand'](_0x336bc0[_0x2c4f68(0x159)]['id'],{'unitId':_0x6708a,'subUnitId':_0x2d1793},{'fromCollab':!0x0});});}}}[_0x27edfa(0x175)](){const _0x1051fc=_0x27edfa;this[_0x1051fc(0x1dd)][_0x1051fc(0x164)](_0x1051fc(0xf9));const _0x19479a=new Map(),_0x358efe=this['_commandDisposable']=new _0x544c92['DisposableCollection']();_0x358efe[_0x1051fc(0x190)](_0x544c92[_0x1051fc(0x18f)](()=>{const _0x314c29=_0x1051fc;_0x19479a['forEach'](_0x5ee99d=>_0x5ee99d['complete']()),_0x19479a[_0x314c29(0x1a0)]();})),_0x358efe[_0x1051fc(0x190)](this[_0x1051fc(0x11b)][_0x1051fc(0xef)](_0x48e4f2=>{const _0x5967c4=_0x1051fc;var _0x676635;if(_0x48e4f2[_0x5967c4(0x108)]!==_0x544c92['CommandType'][_0x5967c4(0x110)]||!this[_0x5967c4(0x14d)]['shouldShareOperation'](_0x48e4f2['id']))return;const {id:_0x3cfced}=_0x48e4f2;let _0x524a8d;_0x19479a[_0x5967c4(0x129)](_0x3cfced)?_0x524a8d=_0x19479a[_0x5967c4(0x17d)](_0x3cfced):(_0x524a8d=new _0x498c12['Subject'](),_0x19479a['set'](_0x3cfced,_0x524a8d),_0x524a8d[_0x5967c4(0x1a1)](_0x3c3415[_0x5967c4(0x10b)]((_0x676635=this[_0x5967c4(0x1b6)][_0x5967c4(0x13c)](_0x3b4949))!=null?_0x676635:_0x38a0b5,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5967c4(0x18c)](_0x243cd3=>{const _0x3377c3=_0x5967c4;this[_0x3377c3(0x1c6)][_0x3377c3(0x19d)]({'eventID':_0x403454[_0x3377c3(0x1b0)][_0x3377c3(0x1aa)],'data':{'unitID':this[_0x3377c3(0x1b7)],'operations':{[_0x243cd3['id']]:{'id':_0x243cd3['id'],'params':JSON['stringify'](_0x243cd3[_0x3377c3(0x100)])}}}},this[_0x3377c3(0x1b7)]);})),_0x524a8d[_0x5967c4(0x164)](_0x48e4f2);})),this[_0x1051fc(0x14d)][_0x1051fc(0x15f)](this[_0x1051fc(0x1b7)])['forEach'](_0x4bf67a=>this['_collabSession']['send']({'eventID':_0x403454[_0x1051fc(0x1b0)][_0x1051fc(0x1aa)],'data':{'unitID':this[_0x1051fc(0x1b7)],'operations':{[_0x4bf67a['id']]:{'id':_0x4bf67a['id'],'params':JSON[_0x1051fc(0x1a8)](_0x4bf67a[_0x1051fc(0x100)])}}}},this[_0x1051fc(0x1b7)]));}['_stopPresenting'](){const _0x4d49e6=_0x27edfa;var _0x4e1c66;this[_0x4d49e6(0x1dd)]['next'](_0x4d49e6(0x1bd)),(_0x4e1c66=this[_0x4d49e6(0x166)])==null||_0x4e1c66['dispose'](),this[_0x4d49e6(0x166)]=null;}['_startFollowing'](){const _0x522ac0=_0x27edfa;var _0x23323f;(_0x23323f=this[_0x522ac0(0x166)])==null||_0x23323f[_0x522ac0(0x1c3)](),this[_0x522ac0(0x1dd)][_0x522ac0(0x164)](_0x522ac0(0x1ab));}[_0x27edfa(0xf1)](){const _0x224715=_0x27edfa;var _0x2112e9;this['_status$'][_0x224715(0x164)](_0x224715(0x1bd)),(_0x2112e9=this[_0x224715(0x166)])==null||_0x2112e9[_0x224715(0x1c3)](),this[_0x224715(0x166)]=null;}[_0x27edfa(0x1c9)](){const _0x2e4b95=_0x27edfa;var _0x507191;this[_0x2e4b95(0x1dd)][_0x2e4b95(0x164)](_0x2e4b95(0x1c1)),(_0x507191=this[_0x2e4b95(0x166)])==null||_0x507191['dispose']();}['_handleOperation'](_0x79ad69){const _0x3b73e5=_0x27edfa;if([_0x3b73e5(0xf9),_0x3b73e5(0x1c1),_0x3b73e5(0x137)]['includes'](this[_0x3b73e5(0x131)])||!_0x79ad69[_0x3b73e5(0x14b)][_0x3b73e5(0x15e)]||_0x79ad69['data'][_0x3b73e5(0x15e)]===this[_0x3b73e5(0x1c6)]['getMemberID']())return;this[_0x3b73e5(0x131)]===_0x3b73e5(0x1bd)&&this[_0x3b73e5(0x141)]();const _0x50de90=_0x79ad69['data'][_0x3b73e5(0x123)];Object[_0x3b73e5(0x1d7)](_0x50de90)['forEach'](_0x557862=>{const _0x40aa40=_0x3b73e5;this[_0x40aa40(0x11b)]['executeCommand'](_0x557862['id'],_0x557862[_0x40aa40(0x100)]?JSON[_0x40aa40(0x183)](_0x557862['params']):null,{'fromCollab':!0x0});});}[_0x27edfa(0x1af)](){const _0x50f722=_0x27edfa;var _0x57a45e;this[_0x50f722(0x1dd)]['next'](_0x50f722(0x137)),(_0x57a45e=this[_0x50f722(0x166)])==null||_0x57a45e['dispose']();}[_0x27edfa(0x173)](){const _0x30d865=_0x27edfa;this[_0x30d865(0x1dd)][_0x30d865(0x164)](_0x30d865(0x1bd)),this[_0x30d865(0x1d0)]();}},_0x1aa668[_0x27edfa(0x118)]=_0x2ebb4d([_0x446061(0x2,_0x544c92[_0x27edfa(0x1b4)]),_0x446061(0x3,_0x544c92['Inject'](_0x181d67)),_0x446061(0x4,_0x544c92[_0x27edfa(0x145)])],_0x1aa668[_0x27edfa(0x118)]);function _0x8c856f(){const _0xd4f43c=_0x27edfa,_0x526359=_0x4e5103[_0xd4f43c(0x127)](_0x1aa668[_0xd4f43c(0x13d)]),_0x1ea60e=_0x4e5103[_0xd4f43c(0x127)](_0x544c92[_0xd4f43c(0x16f)]),_0x461c7b=_0x4e5103[_0xd4f43c(0x136)](()=>_0x1ea60e[_0xd4f43c(0x13e)](_0x544c92['UniverInstanceType'][_0xd4f43c(0x168)]),void 0x0,!0x1,[]),[_0x1a6d44,_0x1d5566]=_0x51f070[_0xd4f43c(0x11d)](null),[_0x226fe9,_0x5dcb82]=_0x51f070[_0xd4f43c(0x11d)](_0x345d0f[_0xd4f43c(0x105)]),_0x5e8201=_0x51f070[_0xd4f43c(0x17e)](null);return _0x51f070['useEffect'](()=>(_0x461c7b&&_0x526359[_0xd4f43c(0xf7)](_0x461c7b[_0xd4f43c(0x1cd)]())['then'](_0x47a5b5=>{const _0x112bca=_0xd4f43c;_0x1d5566(_0x47a5b5),_0x5e8201[_0x112bca(0x19f)]=_0x47a5b5['status$'][_0x112bca(0x18c)](_0x3617dd=>{_0x5dcb82(_0x3617dd);});}),()=>{const _0x44d054=_0xd4f43c;var _0x1ddf02;(_0x1ddf02=_0x5e8201[_0x44d054(0x19f)])==null||_0x1ddf02[_0x44d054(0x140)](),_0x5e8201[_0x44d054(0x19f)]=null;}),[_0x461c7b,_0x526359]),_0x1a6d44?_0x135a27[_0xd4f43c(0x182)](_0x2666de[_0xd4f43c(0xfe)],{'align':_0xd4f43c(0x16d),'disabled':_0x226fe9===_0x345d0f['OFFLINE'],'className':_0xd4f43c(0x16e),'overlay':_0x135a27[_0xd4f43c(0x182)](_0x6677ff,{'status':_0x226fe9,'coordinator':_0x1a6d44}),'children':_0x135a27[_0xd4f43c(0x182)](_0xd4f43c(0x1d8),{'className':_0x2666de[_0xd4f43c(0x113)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x226fe9===_0x345d0f[_0xd4f43c(0x10c)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x226fe9!==_0x345d0f[_0xd4f43c(0x10c)]}),'type':'button','children':_0x135a27[_0xd4f43c(0x182)](_0x45b447,{'className':_0xd4f43c(0x1cc)})})}):null;}function _0x6677ff(_0x3c40e1){const _0x5ba83b=_0x27edfa,{status:_0x1697e2,coordinator:_0x18610e}=_0x3c40e1;switch(_0x1697e2){case _0x345d0f[_0x5ba83b(0x105)]:return _0x135a27['jsx'](_0x4d4086,{'coordinator':_0x18610e});case _0x345d0f[_0x5ba83b(0x16a)]:return _0x135a27['jsx'](_0x1eb5c2,{'coordinator':_0x18610e});case _0x345d0f[_0x5ba83b(0x1c5)]:return _0x135a27[_0x5ba83b(0x182)](_0x310870,{'coordinator':_0x18610e});case _0x345d0f[_0x5ba83b(0x10c)]:return _0x135a27[_0x5ba83b(0x182)](_0x50b4dc,{});case _0x345d0f[_0x5ba83b(0x12e)]:return _0x135a27[_0x5ba83b(0x182)](_0x35127b,{'coordinator':_0x18610e});default:return null;}}function _0x4d4086(_0x4b7c6d){const _0xf4ea4f=_0x27edfa,{coordinator:_0x3123ca}=_0x4b7c6d;return _0x135a27[_0xf4ea4f(0x10d)](_0x135a27['Fragment'],{'children':[_0x135a27[_0xf4ea4f(0x182)](_0xf4ea4f(0x160),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xf4ea4f(0x189)}),_0x135a27[_0xf4ea4f(0x182)](_0x2666de[_0xf4ea4f(0x18b)],{'onClick':()=>_0x3123ca['tryStartPresenting'](),'children':_0xf4ea4f(0x147)})]});}function _0x1eb5c2(_0x3b0a7c){const _0x10120f=_0x27edfa,{coordinator:_0x47f664}=_0x3b0a7c;return _0x135a27[_0x10120f(0x10d)](_0x135a27['Fragment'],{'children':[_0x135a27[_0x10120f(0x182)](_0x10120f(0x160),{'className':_0x10120f(0x104),'children':_0x10120f(0x17f)}),_0x135a27[_0x10120f(0x182)](_0x2666de['Button'],{'onClick':()=>_0x47f664[_0x10120f(0x19b)](),'children':'Stop\x20following'})]});}function _0x310870(_0xf9c159){const _0x3aa904=_0x27edfa,{coordinator:_0x36cead}=_0xf9c159;return _0x135a27[_0x3aa904(0x10d)](_0x135a27[_0x3aa904(0xfb)],{'children':[_0x135a27['jsx'](_0x3aa904(0x160),{'className':_0x3aa904(0x104),'children':_0x3aa904(0x191)}),_0x135a27['jsx'](_0x2666de[_0x3aa904(0x18b)],{'variant':'text','onClick':()=>_0x36cead[_0x3aa904(0x1d1)](),'children':_0x3aa904(0x15a)})]});}function _0x35127b(_0x27889a){const _0x1e0292=_0x27edfa,{coordinator:_0x497251}=_0x27889a;return _0x135a27['jsxs'](_0x135a27['Fragment'],{'children':[_0x135a27[_0x1e0292(0x182)](_0x1e0292(0x160),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1e0292(0x1bf)}),_0x135a27[_0x1e0292(0x182)](_0x2666de['Button'],{'variant':_0x1e0292(0x158),'onClick':()=>_0x497251[_0x1e0292(0x1d9)](),'children':_0x1e0292(0x1ce)})]});}function _0x50b4dc(){const _0x3e5e89=_0x27edfa;return _0x135a27[_0x3e5e89(0x182)](_0x135a27['Fragment'],{'children':_0x3e5e89(0x15b)});}var _0x557bf8=Object[_0x27edfa(0x11e)],_0x5cf6d3=(_0x4a00c1,_0xd1c378,_0x558e3e,_0x33ffa4)=>{const _0x3b37a0=_0x27edfa;for(var _0x5769a1=_0x33ffa4>0x1?void 0x0:_0x33ffa4?_0x557bf8(_0xd1c378,_0x558e3e):_0xd1c378,_0x3af4b6=_0x4a00c1[_0x3b37a0(0x1c4)]-0x1,_0x326b51;_0x3af4b6>=0x0;_0x3af4b6--)(_0x326b51=_0x4a00c1[_0x3af4b6])&&(_0x5769a1=_0x326b51(_0x5769a1)||_0x5769a1);return _0x5769a1;},_0x19f417=(_0x16063b,_0x1b3057)=>(_0x4f69ad,_0x35867a)=>_0x1b3057(_0x4f69ad,_0x35867a,_0x16063b);_0x1aa668['DesktopLiveShareController']=class extends _0x544c92[_0x27edfa(0x14a)]{constructor(_0x34668d,_0x5c718a){const _0x36a761=_0x27edfa;super(),this[_0x36a761(0x14f)]=_0x34668d,this[_0x36a761(0x11c)]=_0x5c718a,this[_0x36a761(0x146)]();}[_0x27edfa(0x146)](){const _0x3deaf1=_0x27edfa;this[_0x3deaf1(0x132)](this[_0x3deaf1(0x11c)][_0x3deaf1(0x13a)](_0x4e5103['BuiltInUIPart']['HEADER_MENU'],()=>_0x4e5103[_0x3deaf1(0x188)](_0x8c856f,this[_0x3deaf1(0x14f)])));}},_0x1aa668[_0x27edfa(0x184)]=_0x5cf6d3([_0x19f417(0x0,_0x544c92[_0x27edfa(0x11a)](_0x544c92[_0x27edfa(0x16c)])),_0x19f417(0x1,_0x4e5103[_0x27edfa(0x170)])],_0x1aa668[_0x27edfa(0x184)]);const _0x28dbf1='live-share.config',_0x4e0a9f={};var _0x2d9fb7=Object['getOwnPropertyDescriptor'],_0x42bd93=(_0x22c882,_0x829d1f,_0x2ceaf4,_0x31da85)=>{const _0x29be32=_0x27edfa;for(var _0xc480a7=_0x31da85>0x1?void 0x0:_0x31da85?_0x2d9fb7(_0x829d1f,_0x2ceaf4):_0x829d1f,_0x49afd4=_0x22c882[_0x29be32(0x1c4)]-0x1,_0x375e9d;_0x49afd4>=0x0;_0x49afd4--)(_0x375e9d=_0x22c882[_0x49afd4])&&(_0xc480a7=_0x375e9d(_0xc480a7)||_0xc480a7);return _0xc480a7;},_0x40fdb6=(_0x338ecb,_0x3b2b59)=>(_0x8f10ab,_0x41f795)=>_0x3b2b59(_0x8f10ab,_0x41f795,_0x338ecb);let _0x963f67=class extends _0x544c92[_0x27edfa(0x14a)]{constructor(_0x3a7dac){const _0x50bb06=_0x27edfa;super(),this[_0x50bb06(0x14d)]=_0x3a7dac,this[_0x50bb06(0x112)]();}[_0x27edfa(0x112)](){const _0x5cd289=_0x27edfa;[_0x4f2758[_0x5cd289(0x148)]['id'],_0x4f2758[_0x5cd289(0xf5)]['id'],_0x336bc0['SetWorksheetActiveOperation']['id']][_0x5cd289(0x144)](_0x345b4d=>{const _0xcef1cb=_0x5cd289;this[_0xcef1cb(0x132)](this[_0xcef1cb(0x14d)][_0xcef1cb(0x138)](_0x345b4d));});}};_0x963f67=_0x42bd93([_0x40fdb6(0x0,_0x544c92[_0x27edfa(0x11a)](_0x181d67))],_0x963f67);var _0x27a270=Object[_0x27edfa(0x1ba)],_0x5e476d=Object['getOwnPropertyDescriptor'],_0xa8ddab=(_0x42d122,_0x1d8274,_0x392d)=>_0x1d8274 in _0x42d122?_0x27a270(_0x42d122,_0x1d8274,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x392d}):_0x42d122[_0x1d8274]=_0x392d,_0xa3be9d=(_0x35f93e,_0x3f27b8,_0x31231a,_0x1c2588)=>{for(var _0x4ccd04=_0x1c2588>0x1?void 0x0:_0x1c2588?_0x5e476d(_0x3f27b8,_0x31231a):_0x3f27b8,_0x4ff977=_0x35f93e['length']-0x1,_0xea8e72;_0x4ff977>=0x0;_0x4ff977--)(_0xea8e72=_0x35f93e[_0x4ff977])&&(_0x4ccd04=_0xea8e72(_0x4ccd04)||_0x4ccd04);return _0x4ccd04;},_0x2c5e26=(_0x32aa1e,_0x41ac8a)=>(_0x4eb229,_0x240e67)=>_0x41ac8a(_0x4eb229,_0x240e67,_0x32aa1e),_0x4ea8dc=(_0x1eceef,_0x10f88a,_0x125d7b)=>_0xa8ddab(_0x1eceef,typeof _0x10f88a!=_0x27edfa(0x15d)?_0x10f88a+'':_0x10f88a,_0x125d7b);const _0x502067=_0x27edfa(0xf4);_0x1aa668['UniverLiveSharePlugin']=class extends _0x544c92[_0x27edfa(0x196)]{constructor(_0x34dbfa=_0x4e0a9f,_0x1f4a8a,_0x121ce7){const _0xa06059=_0x27edfa;super(),this['_config']=_0x34dbfa,this[_0xa06059(0x14f)]=_0x1f4a8a,this[_0xa06059(0x1b6)]=_0x121ce7;const {..._0x256ebb}=_0x544c92[_0xa06059(0x1a2)]({},_0x4e0a9f,this[_0xa06059(0x187)]);this[_0xa06059(0x1b6)][_0xa06059(0x1a5)](_0x28dbf1,_0x256ebb);}[_0x27edfa(0x135)](){const _0x5e7707=_0x27edfa;_0x544c92[_0x5e7707(0x109)](this[_0x5e7707(0x14f)],_0x544c92[_0x5e7707(0x1d4)]([[_0x181d67],[_0x1aa668['LiveShareController']],[_0x963f67],[_0x1aa668[_0x5e7707(0x184)]]],this[_0x5e7707(0x187)][_0x5e7707(0x1cf)])),_0x544c92[_0x5e7707(0x1a3)](this[_0x5e7707(0x14f)],[[_0x963f67]]);}['onRendered'](){const _0x519d67=_0x27edfa;_0x544c92[_0x519d67(0x1a3)](this['_injector'],[[_0x1aa668[_0x519d67(0x184)]]]);}},_0x4ea8dc(_0x1aa668['UniverLiveSharePlugin'],_0x27edfa(0x108),_0x544c92['UniverInstanceType'][_0x27edfa(0x134)]),_0x4ea8dc(_0x1aa668[_0x27edfa(0x12a)],_0x27edfa(0x103),_0x502067),_0x1aa668[_0x27edfa(0x12a)]=_0xa3be9d([_0x544c92['DependentOn'](_0x1171e0[_0x27edfa(0x1ae)]),_0x2c5e26(0x1,_0x544c92[_0x27edfa(0x11a)](_0x544c92['Injector'])),_0x2c5e26(0x2,_0x544c92[_0x27edfa(0x1b4)])],_0x1aa668[_0x27edfa(0x12a)]),_0x1aa668[_0x27edfa(0x198)]=_0x8c856f,_0x1aa668['LiveShareService']=_0x181d67,_0x1aa668['LiveShareStatus']=_0x345d0f,Object[_0x27edfa(0x1ba)](_0x1aa668,Symbol[_0x27edfa(0x14e)],{'value':_0x27edfa(0x15c)});}));
|
|
1
|
+
function _0x4eeb(){const _0x8e3d07=['substring','DisposableCollection','map','OPERATION','length','IDLE','UniverProCollaboration','defineProperty','xlink:href','@univerjs/sheets-ui','subscribe','NOT_FOLLOWING','_fetchOperations','offline','string','LIVESHARE_NEW_HOST','from','getUnitId','_handleNewChangeSets','UniverInstanceType','not-following','Present\x20this\x20document','univer-mb-3\x20univer-w-full\x20univer-text-sm','pipe','registerInitialStateReporter','parseProtocolChangeset','shouldShareOperation','Disposable','useRef','idSuffix','DesktopLiveShareController','@univerjs-pro/collaboration-client','LiveShare','unsubscribe','4421329foYroQ','UniverIcon','button','You\x27re\x20presenting\x20the\x20document','_status','InsertSheetMutation','presenter','getOwnPropertyDescriptor','76bpVoEM','getStatus','getTypeOfUnitDisposed$','LiveShareCoordinator','Button','includes','UniverCore','live-share-icon','194991akDldB','univer-size-4','reverse','jsxs','registerComponent','touchDependencies','@univerjs-pro/collaboration','stringify','PRESENTING','getInitialStates','_handleOperation','RxDisposable','238862coyoMj','You\x27are\x20offline.','UniverSheets','_reporters','registerSharedOperation','live-share.config','_init','operators','_univerInstanceService','text','BehaviorSubject','CollaborationEvent','UNIVER_LIVE_SHARE_PLUGIN','mutations','clsx','asObservable','send','Module','complete','SetWorksheetActiveOperation','amd','idle','attrs','OFFLINE','current','_configService','SetZoomRatioOperation','_handleOnline','assign','replace','forEach','useState','object','UniverCollaborationClientPlugin','path','FOLLOWING','_sharedOperations','_entities','symbol','add','currentColor','NEW_CHANGESETS','rxjs/operators','UniverDesign','mask','createElement','SessionStatus','_status$','@univerjs/design','http://www.w3.org/2000/svg','function','none','useEffect','has','_startFollowing','7OZPmPD','_handleNewHost','_startLiveShareCoordinator','toString','react','Injector','next','defs','parse','_injector','rxjs','Plugin','find','trim','Inject','1OSPQCC','params','type','873108IRkXAY','ONLINE','connectInjector','@univerjs/sheets','merge','Start','executeCommand','8SSZhAE','random','UniverSheetsUi','getCurrentTypeOfUnit$','getMemberID','useObservable','IUniverInstanceService','You\x27re\x20following\x20the\x20presenter','throttleTime','sessionStatus$','getLiveShareCoordinator','disposeWithMe','1em','DependentOn','_handleOffline','tag','stopPresenting','getTypeOfUnitAdded$','Fragment','UNIVER_UNKNOWN','_presenter','following','_collabSession','init','Stop\x20following','onRendered','createInstance','end','UniverProLiveShare','status$','SetScrollOperation','delete','get','use','values','getConfig','colorChannel1','_commandDisposable','dispose$','React','mergeOverrideWithDependencies','stopFollowing','presenting','UniverProCollaborationClient','UniverUi','UniverLiveSharePlugin','UNIVER_SHEET','_beIdle','evenodd','unitId','getLiveShareCoordinatorSync','_commandService','fill','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_handleTerminate','_uiPartsService','tryStartPresenting','6492465Gvhhos','_mountLiveShare','_collabSessionService','_startPresenting','_liveShareService','Dropdown','_unitID','LiveShareService','clear','LIVESHARE_REQUEST_HOST','div','setConfig','forwardRef','entries','@univerjs/core','children','10AIMMaA','LIVESHARE_FETCH_OPERATIONS','0\x200\x2017\x2017','data','Start\x20following','LiveShareController','override','pluginName','LiveShareStatus','3794015oEGRXC','_config','7964562WAFFcv','getValue','useDependency','toDisposable','dispose','default','_stopFollowing','takeUntil','jsx','HEADER_MENU','IConfigService','SAME_OPERATION_SHARE_INTERVAL','displayName','LIVESHARE_TERMINATE','set','1164hYUzYw','LIVESHARE_OPERATION'];_0x4eeb=function(){return _0x8e3d07;};return _0x4eeb();}function _0x9466(_0x24ef7d,_0x20bf8b){_0x24ef7d=_0x24ef7d-0x1b0;const _0x4eeb35=_0x4eeb();let _0x94668f=_0x4eeb35[_0x24ef7d];return _0x94668f;}(function(_0x539bc8,_0x4efac1){const _0x5ba5ee=_0x9466,_0x35733f=_0x539bc8();while(!![]){try{const _0x2023a5=-parseInt(_0x5ba5ee(0x1b2))/0x1*(parseInt(_0x5ba5ee(0x1b5))/0x2)+-parseInt(_0x5ba5ee(0x253))/0x3*(parseInt(_0x5ba5ee(0x24b))/0x4)+parseInt(_0x5ba5ee(0x20e))/0x5+parseInt(_0x5ba5ee(0x210))/0x6*(-parseInt(_0x5ba5ee(0x296))/0x7)+parseInt(_0x5ba5ee(0x1bc))/0x8*(parseInt(_0x5ba5ee(0x1f5))/0x9)+parseInt(_0x5ba5ee(0x205))/0xa*(parseInt(_0x5ba5ee(0x243))/0xb)+-parseInt(_0x5ba5ee(0x21f))/0xc*(-parseInt(_0x5ba5ee(0x25f))/0xd);if(_0x2023a5===_0x4efac1)break;else _0x35733f['push'](_0x35733f['shift']());}catch(_0x1ef597){_0x35733f['push'](_0x35733f['shift']());}}}(_0x4eeb,0xa2789),function(_0x21b15b,_0x441864){const _0x9d5a37=_0x9466;typeof exports==_0x9d5a37(0x27f)&&typeof module<'u'?_0x441864(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==_0x9d5a37(0x291)&&define[_0x9d5a37(0x273)]?define(['exports',_0x9d5a37(0x203),'@univerjs/ui','react/jsx-runtime',_0x9d5a37(0x28f),_0x9d5a37(0x29a),_0x9d5a37(0x259),_0x9d5a37(0x240),_0x9d5a37(0x1b8),_0x9d5a37(0x2a0),_0x9d5a37(0x289),_0x9d5a37(0x22a)],_0x441864):(_0x21b15b=typeof globalThis<'u'?globalThis:_0x21b15b||self,_0x441864(_0x21b15b[_0x9d5a37(0x1d8)]={},_0x21b15b[_0x9d5a37(0x251)],_0x21b15b[_0x9d5a37(0x1e8)],_0x21b15b[_0x9d5a37(0x1e3)],_0x21b15b[_0x9d5a37(0x28a)],_0x21b15b[_0x9d5a37(0x1e3)],_0x21b15b[_0x9d5a37(0x227)],_0x21b15b[_0x9d5a37(0x1e7)],_0x21b15b[_0x9d5a37(0x261)],_0x21b15b[_0x9d5a37(0x2a0)],_0x21b15b[_0x9d5a37(0x2a0)][_0x9d5a37(0x266)],_0x21b15b[_0x9d5a37(0x1be)]));}(this,function(_0x1b7f31,_0x1d89bd,_0x522fca,_0x49a6a2,_0x1cc4fc,_0x4ec959,_0x1c2e2c,_0x1c0277,_0x2de1a3,_0x2f9214,_0x612458,_0x513987){'use strict';const _0x4082bc=_0x9466;var _0x4ba8e9=Object[_0x4082bc(0x228)],_0x222177=(_0x43cbfe,_0x575528,_0x2d296c)=>_0x575528 in _0x43cbfe?_0x4ba8e9(_0x43cbfe,_0x575528,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d296c}):_0x43cbfe[_0x575528]=_0x2d296c,_0x264440=(_0x5d6f6a,_0x42231b,_0x295176)=>_0x222177(_0x5d6f6a,typeof _0x42231b!=_0x4082bc(0x285)?_0x42231b+'':_0x42231b,_0x295176);function _0x28b166({ref:_0x40d37d,..._0x20dd9b}){const _0x234504=_0x4082bc,{icon:_0x52e161,id:_0xe50e33,className:_0x1a64ab,extend:_0x238bba,..._0x1c034a}=_0x20dd9b,_0x5776b6=('univerjs-icon\x20univerjs-icon-'+_0xe50e33+'\x20'+(_0x1a64ab||''))[_0x234504(0x1b0)](),_0x5cfbc4=_0x4ec959[_0x234504(0x23d)]('_'+_0x5f0b56());return _0x2bdf44(_0x52e161,''+_0xe50e33,{'defIds':_0x52e161['defIds'],'idSuffix':_0x5cfbc4[_0x234504(0x277)]},{'ref':_0x40d37d,'className':_0x5776b6,..._0x1c034a},_0x238bba);}function _0x2bdf44(_0x5439d0,_0x5869ee,_0x1894d7,_0x22ec7c,_0x1fb352){const _0x1dbd4a=_0x4082bc;return _0x4ec959[_0x1dbd4a(0x28c)](_0x5439d0[_0x1dbd4a(0x1cb)],{'key':_0x5869ee,..._0x5bda3b(_0x5439d0,_0x1894d7,_0x1fb352),..._0x22ec7c},(_0x34ff82(_0x5439d0,_0x1894d7)[_0x1dbd4a(0x204)]||[])['map']((_0x34f1e0,_0x28fca2)=>_0x2bdf44(_0x34f1e0,_0x5869ee+'-'+_0x5439d0[_0x1dbd4a(0x1cb)]+'-'+_0x28fca2,_0x1894d7,void 0x0,_0x1fb352)));}function _0x5bda3b(_0x2b72fc,_0x496061,_0x1da2ee){const _0x593428=_0x4082bc,_0x558a3e={..._0x2b72fc[_0x593428(0x275)]};_0x1da2ee!=null&&_0x1da2ee[_0x593428(0x1e0)]&&_0x558a3e['fill']===_0x593428(0x1e0)&&(_0x558a3e[_0x593428(0x1f0)]=_0x1da2ee[_0x593428(0x1e0)]),_0x2b72fc[_0x593428(0x1cb)]==='mask'&&_0x558a3e['id']&&(_0x558a3e['id']=_0x558a3e['id']+_0x496061[_0x593428(0x23e)]),Object[_0x593428(0x202)](_0x558a3e)[_0x593428(0x27d)](([_0x5aee9e,_0x465425])=>{const _0xe8744f=_0x593428;_0x5aee9e===_0xe8744f(0x28b)&&typeof _0x465425==_0xe8744f(0x22f)&&(_0x558a3e[_0x5aee9e]=_0x465425[_0xe8744f(0x27c)](/url\(#(.*)\)/,'url(#$1'+_0x496061[_0xe8744f(0x23e)]+')'));});const {defIds:_0x4d07b6}=_0x496061;return!_0x4d07b6||_0x4d07b6[_0x593428(0x225)]===0x0||(_0x2b72fc[_0x593428(0x1cb)]===_0x593428(0x1dd)&&_0x558a3e[_0x593428(0x229)]&&(_0x558a3e[_0x593428(0x229)]=_0x558a3e[_0x593428(0x229)]+_0x496061[_0x593428(0x23e)]),Object[_0x593428(0x202)](_0x558a3e)[_0x593428(0x27d)](([_0x549424,_0x26d30a])=>{const _0x1c6f33=_0x593428;typeof _0x26d30a=='string'&&(_0x558a3e[_0x549424]=_0x26d30a[_0x1c6f33(0x27c)](/url\(#(.*)\)/,'url(#$1'+_0x496061['idSuffix']+')'));})),_0x558a3e;}function _0x34ff82(_0x439d41,_0x4a719d){const _0x2af4d5=_0x4082bc;var _0x5911c6;const {defIds:_0x450b50}=_0x4a719d;return!_0x450b50||_0x450b50[_0x2af4d5(0x225)]===0x0?_0x439d41:_0x439d41['tag']===_0x2af4d5(0x29d)&&((_0x5911c6=_0x439d41[_0x2af4d5(0x204)])!=null&&_0x5911c6[_0x2af4d5(0x225)])?{..._0x439d41,'children':_0x439d41['children'][_0x2af4d5(0x223)](_0x590f84=>typeof _0x590f84[_0x2af4d5(0x275)]['id']=='string'&&_0x450b50&&_0x450b50['includes'](_0x590f84[_0x2af4d5(0x275)]['id'])?{..._0x590f84,'attrs':{..._0x590f84[_0x2af4d5(0x275)],'id':_0x590f84[_0x2af4d5(0x275)]['id']+_0x4a719d['idSuffix']}}:_0x590f84)}:_0x439d41;}function _0x5f0b56(){const _0x2a3f4c=_0x4082bc;return Math[_0x2a3f4c(0x1bd)]()[_0x2a3f4c(0x299)](0x24)[_0x2a3f4c(0x221)](0x2,0x8);}_0x28b166[_0x4082bc(0x21c)]=_0x4082bc(0x244);const _0x2bab71={'tag':'svg','attrs':{'xmlns':_0x4082bc(0x290),'fill':_0x4082bc(0x292),'viewBox':_0x4082bc(0x207),'width':_0x4082bc(0x1c8),'height':_0x4082bc(0x1c8)},'children':[{'tag':'path','attrs':{'fill':_0x4082bc(0x287),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x4082bc(0x281),'attrs':{'fill':_0x4082bc(0x287),'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':_0x4082bc(0x1ec),'clipRule':'evenodd'}}]},_0x46ac41=_0x4ec959[_0x4082bc(0x201)](function(_0x3d84e6,_0x5b9aa8){const _0x29f424=_0x4082bc;return _0x4ec959[_0x29f424(0x28c)](_0x28b166,Object[_0x29f424(0x27b)]({},_0x3d84e6,{'id':_0x29f424(0x252),'ref':_0x5b9aa8,'icon':_0x2bab71}));});_0x46ac41[_0x4082bc(0x21c)]='LiveShareIcon';class _0x52e43b extends _0x1d89bd['Disposable']{constructor(){const _0x51e330=_0x4082bc;super(...arguments),_0x264440(this,'_sharedOperations',new Set()),_0x264440(this,_0x51e330(0x262),new Set());}[_0x4082bc(0x263)](_0x53a236){const _0x2c34f9=_0x4082bc;return this[_0x2c34f9(0x283)][_0x2c34f9(0x286)](_0x53a236),_0x1d89bd['toDisposable'](()=>this[_0x2c34f9(0x283)][_0x2c34f9(0x1db)](_0x53a236));}[_0x4082bc(0x239)](_0xc02853){const _0xfe0cc3=_0x4082bc;return this['_reporters'][_0xfe0cc3(0x286)](_0xc02853),_0x1d89bd[_0xfe0cc3(0x213)](()=>this['_reporters'][_0xfe0cc3(0x1db)](_0xc02853));}[_0x4082bc(0x23b)](_0x254db0){const _0x44bc18=_0x4082bc;return this[_0x44bc18(0x283)][_0x44bc18(0x294)](_0x254db0);}['getInitialStates'](_0x303b21){const _0x323d8f=_0x4082bc;return Array[_0x323d8f(0x231)](this[_0x323d8f(0x262)])['map'](_0x562ba0=>_0x562ba0(_0x303b21));}}var _0x3b12d9=Object['getOwnPropertyDescriptor'],_0x5bf3d4=(_0x53a60c,_0x555f0a,_0x322b78,_0x2e60e4)=>{for(var _0x5a71ee=_0x2e60e4>0x1?void 0x0:_0x2e60e4?_0x3b12d9(_0x555f0a,_0x322b78):_0x555f0a,_0x28eb9d=_0x53a60c['length']-0x1,_0x5e383f;_0x28eb9d>=0x0;_0x28eb9d--)(_0x5e383f=_0x53a60c[_0x28eb9d])&&(_0x5a71ee=_0x5e383f(_0x5a71ee)||_0x5a71ee);return _0x5a71ee;},_0x4529da=(_0x494aaa,_0x1af81e)=>(_0x497ca5,_0x38e488)=>_0x1af81e(_0x497ca5,_0x38e488,_0x494aaa);_0x1b7f31['LiveShareController']=class extends _0x1d89bd[_0x4082bc(0x25e)]{constructor(_0x507618,_0x42d5fd,_0x43e31c){const _0x3145ee=_0x4082bc;super(),_0x264440(this,'_entities',new Map()),(this['_univerInstanceService']=_0x507618,this[_0x3145ee(0x29f)]=_0x42d5fd,this[_0x3145ee(0x1f7)]=_0x43e31c,this[_0x3145ee(0x265)]());}async[_0x4082bc(0x1c6)](_0xe4ba09){const _0x384dcb=_0x4082bc;return this[_0x384dcb(0x284)][_0x384dcb(0x294)](_0xe4ba09)||await this['_startLiveShareCoordinator'](_0xe4ba09),this[_0x384dcb(0x284)][_0x384dcb(0x1dc)](_0xe4ba09);}[_0x4082bc(0x1ee)](_0x55b13c){const _0x2755fb=_0x4082bc;var _0x125d45;return(_0x125d45=this[_0x2755fb(0x284)]['get'](_0x55b13c))!=null?_0x125d45:null;}['_init'](){const _0x480056=_0x4082bc;this[_0x480056(0x267)][_0x480056(0x1cd)](_0x1d89bd[_0x480056(0x234)][_0x480056(0x1ea)])[_0x480056(0x238)](_0x612458[_0x480056(0x217)](this['dispose$']))['subscribe'](async _0x40a48a=>{const _0x47e6b5=_0x480056,_0x46d600=_0x40a48a[_0x47e6b5(0x232)]();this[_0x47e6b5(0x284)][_0x47e6b5(0x294)](_0x46d600)||this[_0x47e6b5(0x298)](_0x46d600);}),this[_0x480056(0x267)][_0x480056(0x24d)](_0x1d89bd['UniverInstanceType'][_0x480056(0x1ea)])['pipe'](_0x612458[_0x480056(0x217)](this['dispose$']))[_0x480056(0x22b)](_0x1cd968=>{const _0x27975d=_0x480056,_0x2b3792=_0x1cd968[_0x27975d(0x232)](),_0x5c3534=this['_entities'][_0x27975d(0x1dc)](_0x2b3792);_0x5c3534==null||_0x5c3534[_0x27975d(0x214)]();});}async[_0x4082bc(0x298)](_0x58e70c){const _0x284e91=_0x4082bc,_0x5c362f=await this[_0x284e91(0x1f7)]['requireSession'](_0x58e70c),_0x545687=this['_injector'][_0x284e91(0x1d6)](_0x1b7f31['LiveShareCoordinator'],_0x58e70c,_0x5c362f);return _0x545687[_0x284e91(0x1d3)](),this[_0x284e91(0x284)][_0x284e91(0x21e)](_0x58e70c,_0x545687),_0x545687;}},_0x1b7f31[_0x4082bc(0x20a)]=_0x5bf3d4([_0x4529da(0x0,_0x1d89bd[_0x4082bc(0x1c2)]),_0x4529da(0x1,_0x1d89bd['Inject'](_0x1d89bd[_0x4082bc(0x29b)])),_0x4529da(0x2,_0x1d89bd['Inject'](_0x1c0277['CollaborationSessionService']))],_0x1b7f31[_0x4082bc(0x20a)]);var _0x1ea7a1=(_0x444fc0=>(_0x444fc0[_0x4082bc(0x276)]=_0x4082bc(0x22e),_0x444fc0[_0x4082bc(0x226)]='idle',_0x444fc0['FOLLOWING']=_0x4082bc(0x1d1),_0x444fc0[_0x4082bc(0x22c)]=_0x4082bc(0x235),_0x444fc0[_0x4082bc(0x25b)]=_0x4082bc(0x1e6),_0x444fc0))(_0x1ea7a1||{});const _0x2dc144=_0x4082bc(0x21b),_0x5b96e3=0xc8;_0x1b7f31[_0x4082bc(0x24e)]=class extends _0x1d89bd['RxDisposable']{constructor(_0x497fc6,_0xd59201,_0xfc76b2,_0x2ab34a,_0x29f69c){const _0x278f7b=_0x4082bc;super(),_0x264440(this,_0x278f7b(0x28e),new _0x2f9214[(_0x278f7b(0x269))](_0x278f7b(0x274))),_0x264440(this,_0x278f7b(0x1d9),this['_status$'][_0x278f7b(0x26e)]()),_0x264440(this,_0x278f7b(0x265),!0x1),_0x264440(this,_0x278f7b(0x1e1),null),_0x264440(this,_0x278f7b(0x1d0),null),(this[_0x278f7b(0x1fb)]=_0x497fc6,this[_0x278f7b(0x1d2)]=_0xd59201,this['_configService']=_0xfc76b2,this[_0x278f7b(0x1f9)]=_0x2ab34a,this[_0x278f7b(0x1ef)]=_0x29f69c);}get[_0x4082bc(0x247)](){const _0xb9c8a1=_0x4082bc;return this['_status$'][_0xb9c8a1(0x211)]();}['dispose'](){const _0xd5872b=_0x4082bc;var _0x528c92;(_0x528c92=this[_0xd5872b(0x1e1)])==null||_0x528c92[_0xd5872b(0x214)](),this['_status$'][_0xd5872b(0x29c)](_0xd5872b(0x274)),this[_0xd5872b(0x28e)][_0xd5872b(0x271)]();}[_0x4082bc(0x24c)](){const _0x3e3015=_0x4082bc;return this[_0x3e3015(0x247)];}[_0x4082bc(0x1d3)](){const _0xc5e25a=_0x4082bc;this['_init']||(this[_0xc5e25a(0x265)]=!0x0,this[_0xc5e25a(0x1d2)][_0xc5e25a(0x1c5)][_0xc5e25a(0x238)](_0x612458['takeUntil'](this[_0xc5e25a(0x1e2)]))[_0xc5e25a(0x22b)](_0x5e46c8=>{const _0x52f416=_0xc5e25a;switch(_0x5e46c8){case _0x1c0277[_0x52f416(0x28d)][_0x52f416(0x276)]:this[_0x52f416(0x1ca)]();break;case _0x1c0277[_0x52f416(0x28d)][_0x52f416(0x1b6)]:this['_handleOnline']();break;}}),this[_0xc5e25a(0x1d2)]['event$'][_0xc5e25a(0x238)](_0x612458[_0xc5e25a(0x217)](this[_0xc5e25a(0x1e2)]))['subscribe'](_0x1916bf=>{const _0x1b4acd=_0xc5e25a,{eventID:_0x28df5f}=_0x1916bf;switch(_0x28df5f){case _0x1c2e2c[_0x1b4acd(0x26a)][_0x1b4acd(0x230)]:this[_0x1b4acd(0x297)](_0x1916bf);break;case _0x1c2e2c[_0x1b4acd(0x26a)]['LIVESHARE_OPERATION']:this[_0x1b4acd(0x25d)](_0x1916bf);break;case _0x1c2e2c[_0x1b4acd(0x26a)][_0x1b4acd(0x21d)]:this[_0x1b4acd(0x1f2)]();break;case _0x1c2e2c[_0x1b4acd(0x26a)][_0x1b4acd(0x288)]:this[_0x1b4acd(0x233)](_0x1916bf);break;}}));}[_0x4082bc(0x1f4)](){const _0x54e909=_0x4082bc;this[_0x54e909(0x1d2)]['send']({'eventID':_0x1c2e2c[_0x54e909(0x26a)][_0x54e909(0x1fe)],'data':{'unitID':this[_0x54e909(0x1fb)],'userID':this[_0x54e909(0x1d2)][_0x54e909(0x1c0)]()}},this[_0x54e909(0x1fb)]);}[_0x4082bc(0x1cc)](){const _0x456a19=_0x4082bc;this[_0x456a19(0x247)]===_0x456a19(0x1e6)&&(this['_status$'][_0x456a19(0x29c)](_0x456a19(0x274)),this['_collabSession']['send']({'eventID':_0x1c2e2c[_0x456a19(0x26a)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x456a19(0x1fb)]}},this[_0x456a19(0x1fb)]));}['startFollowing'](){const _0x5c8c54=_0x4082bc;this['_status']===_0x5c8c54(0x235)&&(this['_status$']['next'](_0x5c8c54(0x1d1)),this['_startFollowing']());}[_0x4082bc(0x1e5)](){const _0x517308=_0x4082bc;this['_status']===_0x517308(0x1d1)&&this[_0x517308(0x216)]();}[_0x4082bc(0x297)](_0x36fa22){const _0x99a665=_0x4082bc,{presenter:_0x35b315}=_0x36fa22[_0x99a665(0x208)],_0x3a209d=this['_collabSession'][_0x99a665(0x1c0)]();this[_0x99a665(0x1d0)]=_0x35b315,_0x35b315===_0x3a209d?(this[_0x99a665(0x216)](),this['_startPresenting']()):this['_status']!==_0x99a665(0x235)&&(this['_stopPresenting'](),this[_0x99a665(0x295)]());}[_0x4082bc(0x22d)](){const _0x2c0712=_0x4082bc,_0x15699b={'eventID':_0x1c2e2c[_0x2c0712(0x26a)][_0x2c0712(0x206)]};this[_0x2c0712(0x1d2)]['send'](_0x15699b,this[_0x2c0712(0x1fb)]);}[_0x4082bc(0x1f2)](){const _0x265724=_0x4082bc;this[_0x265724(0x1d0)]=null,this[_0x265724(0x247)]!=='presenting'&&this[_0x265724(0x1eb)]();}['_handleNewChangeSets'](_0x1d7ea9){const _0x18029d=_0x4082bc;if(this['_status']===_0x18029d(0x1d1)&&this[_0x18029d(0x1d0)]===_0x1d7ea9['data']['memberID']){const _0x4b7a58=_0x1c2e2c[_0x18029d(0x23a)](_0x1d7ea9['data'])[_0x18029d(0x26c)][_0x18029d(0x255)]()[_0x18029d(0x2a2)](_0x471b90=>_0x471b90['id']===_0x2de1a3[_0x18029d(0x248)]['id']);if(_0x4b7a58){const _0x2c856d=_0x4b7a58[_0x18029d(0x1b3)][_0x18029d(0x1ed)],_0x53176c=_0x4b7a58[_0x18029d(0x1b3)]['sheet']['id'];setTimeout(()=>{const _0x136b15=_0x18029d;this[_0x136b15(0x1ef)][_0x136b15(0x1bb)](_0x2de1a3[_0x136b15(0x272)]['id'],{'unitId':_0x2c856d,'subUnitId':_0x53176c},{'fromCollab':!0x0});});}}}[_0x4082bc(0x1f8)](){const _0x4e81a7=_0x4082bc;this[_0x4e81a7(0x28e)][_0x4e81a7(0x29c)](_0x4e81a7(0x1e6));const _0x23343c=new Map(),_0x1761b3=this[_0x4e81a7(0x1e1)]=new _0x1d89bd[(_0x4e81a7(0x222))]();_0x1761b3[_0x4e81a7(0x286)](_0x1d89bd[_0x4e81a7(0x213)](()=>{const _0x409684=_0x4e81a7;_0x23343c[_0x409684(0x27d)](_0x48fd1a=>_0x48fd1a[_0x409684(0x271)]()),_0x23343c[_0x409684(0x1fd)]();})),_0x1761b3['add'](this['_commandService']['onCommandExecuted'](_0x45ef91=>{const _0x5df0c0=_0x4e81a7;var _0xad815a;if(_0x45ef91[_0x5df0c0(0x1b4)]!==_0x1d89bd['CommandType'][_0x5df0c0(0x224)]||!this[_0x5df0c0(0x1f9)][_0x5df0c0(0x23b)](_0x45ef91['id']))return;const {id:_0x45e941}=_0x45ef91;let _0x2c1aa8;_0x23343c[_0x5df0c0(0x294)](_0x45e941)?_0x2c1aa8=_0x23343c[_0x5df0c0(0x1dc)](_0x45e941):(_0x2c1aa8=new _0x2f9214['Subject'](),_0x23343c[_0x5df0c0(0x21e)](_0x45e941,_0x2c1aa8),_0x2c1aa8[_0x5df0c0(0x238)](_0x612458[_0x5df0c0(0x1c4)]((_0xad815a=this['_configService'][_0x5df0c0(0x1df)](_0x2dc144))!=null?_0xad815a:_0x5b96e3,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5df0c0(0x22b)](_0x24f8a3=>{const _0x101e3b=_0x5df0c0;this[_0x101e3b(0x1d2)][_0x101e3b(0x26f)]({'eventID':_0x1c2e2c[_0x101e3b(0x26a)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x101e3b(0x1fb)],'operations':{[_0x24f8a3['id']]:{'id':_0x24f8a3['id'],'params':JSON[_0x101e3b(0x25a)](_0x24f8a3['params'])}}}},this[_0x101e3b(0x1fb)]);})),_0x2c1aa8[_0x5df0c0(0x29c)](_0x45ef91);})),this[_0x4e81a7(0x1f9)][_0x4e81a7(0x25c)](this[_0x4e81a7(0x1fb)])[_0x4e81a7(0x27d)](_0x102d1b=>this[_0x4e81a7(0x1d2)][_0x4e81a7(0x26f)]({'eventID':_0x1c2e2c['CollaborationEvent'][_0x4e81a7(0x220)],'data':{'unitID':this[_0x4e81a7(0x1fb)],'operations':{[_0x102d1b['id']]:{'id':_0x102d1b['id'],'params':JSON[_0x4e81a7(0x25a)](_0x102d1b['params'])}}}},this[_0x4e81a7(0x1fb)]));}['_stopPresenting'](){const _0x62da4=_0x4082bc;var _0x3de3e4;this[_0x62da4(0x28e)][_0x62da4(0x29c)](_0x62da4(0x274)),(_0x3de3e4=this[_0x62da4(0x1e1)])==null||_0x3de3e4[_0x62da4(0x214)](),this[_0x62da4(0x1e1)]=null;}[_0x4082bc(0x295)](){const _0x5bf827=_0x4082bc;var _0x537d49;(_0x537d49=this[_0x5bf827(0x1e1)])==null||_0x537d49['dispose'](),this[_0x5bf827(0x28e)][_0x5bf827(0x29c)]('following');}[_0x4082bc(0x1eb)](){const _0x110b23=_0x4082bc;var _0x188f99;this[_0x110b23(0x28e)]['next'](_0x110b23(0x274)),(_0x188f99=this[_0x110b23(0x1e1)])==null||_0x188f99[_0x110b23(0x214)](),this['_commandDisposable']=null;}[_0x4082bc(0x216)](){const _0x464f00=_0x4082bc;var _0x3f3f3d;this[_0x464f00(0x28e)][_0x464f00(0x29c)](_0x464f00(0x235)),(_0x3f3f3d=this[_0x464f00(0x1e1)])==null||_0x3f3f3d['dispose']();}[_0x4082bc(0x25d)](_0x18e589){const _0x1831d1=_0x4082bc;if(['presenting',_0x1831d1(0x235),_0x1831d1(0x22e)][_0x1831d1(0x250)](this[_0x1831d1(0x247)])||!_0x18e589[_0x1831d1(0x208)]['presenter']||_0x18e589[_0x1831d1(0x208)][_0x1831d1(0x249)]===this[_0x1831d1(0x1d2)][_0x1831d1(0x1c0)]())return;this['_status']===_0x1831d1(0x274)&&this['_startFollowing']();const _0x4203b1=_0x18e589['data']['operations'];Object[_0x1831d1(0x1de)](_0x4203b1)[_0x1831d1(0x27d)](_0x54e7fd=>{const _0x397a65=_0x1831d1;this['_commandService'][_0x397a65(0x1bb)](_0x54e7fd['id'],_0x54e7fd[_0x397a65(0x1b3)]?JSON[_0x397a65(0x29e)](_0x54e7fd[_0x397a65(0x1b3)]):null,{'fromCollab':!0x0});});}[_0x4082bc(0x1ca)](){const _0x19bdca=_0x4082bc;var _0x3bd6c4;this['_status$'][_0x19bdca(0x29c)]('offline'),(_0x3bd6c4=this[_0x19bdca(0x1e1)])==null||_0x3bd6c4[_0x19bdca(0x214)]();}[_0x4082bc(0x27a)](){const _0x47709f=_0x4082bc;this[_0x47709f(0x28e)][_0x47709f(0x29c)]('idle'),this['_fetchOperations']();}},_0x1b7f31[_0x4082bc(0x24e)]=_0x5bf3d4([_0x4529da(0x2,_0x1d89bd[_0x4082bc(0x21a)]),_0x4529da(0x3,_0x1d89bd[_0x4082bc(0x1b1)](_0x52e43b)),_0x4529da(0x4,_0x1d89bd['ICommandService'])],_0x1b7f31[_0x4082bc(0x24e)]);function _0x5da910(){const _0x366da5=_0x4082bc,_0x2b34eb=_0x522fca[_0x366da5(0x212)](_0x1b7f31['LiveShareController']),_0x210911=_0x522fca[_0x366da5(0x212)](_0x1d89bd[_0x366da5(0x1c2)]),_0x553f22=_0x522fca[_0x366da5(0x1c1)](()=>_0x210911[_0x366da5(0x1bf)](_0x1d89bd[_0x366da5(0x234)][_0x366da5(0x1ea)]),void 0x0,!0x1,[]),[_0x28fdad,_0x3e388c]=_0x4ec959[_0x366da5(0x27e)](null),[_0x54a385,_0x33315d]=_0x4ec959['useState'](_0x1ea7a1[_0x366da5(0x226)]),_0x22ef4e=_0x4ec959[_0x366da5(0x23d)](null);return _0x4ec959[_0x366da5(0x293)](()=>(_0x553f22&&_0x2b34eb[_0x366da5(0x1c6)](_0x553f22['getUnitId']())['then'](_0x7d6366=>{const _0x52ac8a=_0x366da5;_0x3e388c(_0x7d6366),_0x22ef4e[_0x52ac8a(0x277)]=_0x7d6366[_0x52ac8a(0x1d9)]['subscribe'](_0x2d5166=>{_0x33315d(_0x2d5166);});}),()=>{const _0x59a528=_0x366da5;var _0x303d83;(_0x303d83=_0x22ef4e['current'])==null||_0x303d83[_0x59a528(0x242)](),_0x22ef4e['current']=null;}),[_0x553f22,_0x2b34eb]),_0x28fdad?_0x49a6a2['jsx'](_0x1cc4fc[_0x366da5(0x1fa)],{'align':_0x366da5(0x1d7),'disabled':_0x54a385===_0x1ea7a1[_0x366da5(0x276)],'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':_0x49a6a2['jsx'](_0x2a1f00,{'status':_0x54a385,'coordinator':_0x28fdad}),'children':_0x49a6a2[_0x366da5(0x218)](_0x366da5(0x245),{'className':_0x1cc4fc[_0x366da5(0x26d)](_0x366da5(0x1f1),{'univer-cursor-not-allowed':_0x54a385===_0x1ea7a1['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x54a385!==_0x1ea7a1[_0x366da5(0x276)]}),'type':_0x366da5(0x245),'children':_0x49a6a2[_0x366da5(0x218)](_0x46ac41,{'className':_0x366da5(0x254)})})}):null;}function _0x2a1f00(_0x274cce){const _0x2535ae=_0x4082bc,{status:_0x34cfaf,coordinator:_0x2782c3}=_0x274cce;switch(_0x34cfaf){case _0x1ea7a1[_0x2535ae(0x226)]:return _0x49a6a2[_0x2535ae(0x218)](_0x22f64e,{'coordinator':_0x2782c3});case _0x1ea7a1[_0x2535ae(0x282)]:return _0x49a6a2['jsx'](_0x269dd2,{'coordinator':_0x2782c3});case _0x1ea7a1[_0x2535ae(0x22c)]:return _0x49a6a2[_0x2535ae(0x218)](_0x3ffcc3,{'coordinator':_0x2782c3});case _0x1ea7a1['OFFLINE']:return _0x49a6a2[_0x2535ae(0x218)](_0x3c0486,{});case _0x1ea7a1[_0x2535ae(0x25b)]:return _0x49a6a2[_0x2535ae(0x218)](_0x11807b,{'coordinator':_0x2782c3});default:return null;}}function _0x22f64e(_0x40e859){const _0x5ab1df=_0x4082bc,{coordinator:_0x1b16f5}=_0x40e859;return _0x49a6a2['jsxs'](_0x49a6a2['Fragment'],{'children':[_0x49a6a2[_0x5ab1df(0x218)](_0x5ab1df(0x1ff),{'className':_0x5ab1df(0x237),'children':_0x5ab1df(0x236)}),_0x49a6a2[_0x5ab1df(0x218)](_0x1cc4fc[_0x5ab1df(0x24f)],{'onClick':()=>_0x1b16f5[_0x5ab1df(0x1f4)](),'children':_0x5ab1df(0x1ba)})]});}function _0x269dd2(_0x304a7f){const _0x4e4188=_0x4082bc,{coordinator:_0x3992e9}=_0x304a7f;return _0x49a6a2[_0x4e4188(0x256)](_0x49a6a2['Fragment'],{'children':[_0x49a6a2['jsx'](_0x4e4188(0x1ff),{'className':_0x4e4188(0x237),'children':_0x4e4188(0x1c3)}),_0x49a6a2[_0x4e4188(0x218)](_0x1cc4fc['Button'],{'onClick':()=>_0x3992e9[_0x4e4188(0x1e5)](),'children':_0x4e4188(0x1d4)})]});}function _0x3ffcc3(_0x153f20){const _0x1d2414=_0x4082bc,{coordinator:_0x3eea45}=_0x153f20;return _0x49a6a2[_0x1d2414(0x256)](_0x49a6a2[_0x1d2414(0x1ce)],{'children':[_0x49a6a2[_0x1d2414(0x218)]('div',{'className':_0x1d2414(0x237),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x49a6a2[_0x1d2414(0x218)](_0x1cc4fc[_0x1d2414(0x24f)],{'variant':_0x1d2414(0x268),'onClick':()=>_0x3eea45['startFollowing'](),'children':_0x1d2414(0x209)})]});}function _0x11807b(_0x3d240b){const _0x5e5ff3=_0x4082bc,{coordinator:_0xfe7425}=_0x3d240b;return _0x49a6a2[_0x5e5ff3(0x256)](_0x49a6a2['Fragment'],{'children':[_0x49a6a2[_0x5e5ff3(0x218)](_0x5e5ff3(0x1ff),{'className':_0x5e5ff3(0x237),'children':_0x5e5ff3(0x246)}),_0x49a6a2[_0x5e5ff3(0x218)](_0x1cc4fc['Button'],{'variant':_0x5e5ff3(0x215),'onClick':()=>_0xfe7425[_0x5e5ff3(0x1cc)](),'children':'Stop\x20presenting'})]});}function _0x3c0486(){const _0x128f44=_0x4082bc;return _0x49a6a2[_0x128f44(0x218)](_0x49a6a2[_0x128f44(0x1ce)],{'children':_0x128f44(0x260)});}var _0x209a30=Object[_0x4082bc(0x24a)],_0x330dd9=(_0x3dfb11,_0x46c204,_0x94293f,_0x595b19)=>{const _0x273f70=_0x4082bc;for(var _0x2b36df=_0x595b19>0x1?void 0x0:_0x595b19?_0x209a30(_0x46c204,_0x94293f):_0x46c204,_0x13124b=_0x3dfb11[_0x273f70(0x225)]-0x1,_0x32131d;_0x13124b>=0x0;_0x13124b--)(_0x32131d=_0x3dfb11[_0x13124b])&&(_0x2b36df=_0x32131d(_0x2b36df)||_0x2b36df);return _0x2b36df;},_0x58e169=(_0x566cf9,_0x29dab3)=>(_0xbae49e,_0x34748d)=>_0x29dab3(_0xbae49e,_0x34748d,_0x566cf9);_0x1b7f31['DesktopLiveShareController']=class extends _0x1d89bd[_0x4082bc(0x23c)]{constructor(_0x89b4a4,_0x226012){const _0x294112=_0x4082bc;super(),this['_injector']=_0x89b4a4,this[_0x294112(0x1f3)]=_0x226012,this['_mountLiveShare']();}[_0x4082bc(0x1f6)](){const _0x2df672=_0x4082bc;this[_0x2df672(0x1c7)](this[_0x2df672(0x1f3)][_0x2df672(0x257)](_0x522fca['BuiltInUIPart'][_0x2df672(0x219)],()=>_0x522fca[_0x2df672(0x1b7)](_0x5da910,this[_0x2df672(0x29f)])));}},_0x1b7f31[_0x4082bc(0x23f)]=_0x330dd9([_0x58e169(0x0,_0x1d89bd[_0x4082bc(0x1b1)](_0x1d89bd[_0x4082bc(0x29b)])),_0x58e169(0x1,_0x522fca['IUIPartsService'])],_0x1b7f31['DesktopLiveShareController']);const _0x186f17=_0x4082bc(0x264),_0x2bee52={};var _0xd3a432=Object[_0x4082bc(0x24a)],_0x47f4f7=(_0x33443a,_0x5634ba,_0x25e6f3,_0x277242)=>{const _0x44d0ba=_0x4082bc;for(var _0xb580ca=_0x277242>0x1?void 0x0:_0x277242?_0xd3a432(_0x5634ba,_0x25e6f3):_0x5634ba,_0xcd2464=_0x33443a[_0x44d0ba(0x225)]-0x1,_0xf1479b;_0xcd2464>=0x0;_0xcd2464--)(_0xf1479b=_0x33443a[_0xcd2464])&&(_0xb580ca=_0xf1479b(_0xb580ca)||_0xb580ca);return _0xb580ca;},_0x1f8374=(_0x2c2669,_0x21fb6e)=>(_0x1f1081,_0x4fce36)=>_0x21fb6e(_0x1f1081,_0x4fce36,_0x2c2669);let _0x38bef9=class extends _0x1d89bd[_0x4082bc(0x23c)]{constructor(_0x5f1904){const _0x5d1997=_0x4082bc;super(),this[_0x5d1997(0x1f9)]=_0x5f1904,this['_init']();}[_0x4082bc(0x265)](){const _0x181ab6=_0x4082bc;[_0x513987[_0x181ab6(0x279)]['id'],_0x513987[_0x181ab6(0x1da)]['id'],_0x2de1a3[_0x181ab6(0x272)]['id']][_0x181ab6(0x27d)](_0x48c2f8=>{const _0x1be00a=_0x181ab6;this[_0x1be00a(0x1c7)](this['_liveShareService']['registerSharedOperation'](_0x48c2f8));});}};_0x38bef9=_0x47f4f7([_0x1f8374(0x0,_0x1d89bd[_0x4082bc(0x1b1)](_0x52e43b))],_0x38bef9);var _0xf0642f=Object[_0x4082bc(0x228)],_0x6976e3=Object['getOwnPropertyDescriptor'],_0x5ad3c8=(_0x350db9,_0x10b2e9,_0x7c185)=>_0x10b2e9 in _0x350db9?_0xf0642f(_0x350db9,_0x10b2e9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x7c185}):_0x350db9[_0x10b2e9]=_0x7c185,_0x308901=(_0x28cd3e,_0x566b8c,_0x4fce20,_0x3b9d20)=>{for(var _0x19afbe=_0x3b9d20>0x1?void 0x0:_0x3b9d20?_0x6976e3(_0x566b8c,_0x4fce20):_0x566b8c,_0x543852=_0x28cd3e['length']-0x1,_0x1b72a8;_0x543852>=0x0;_0x543852--)(_0x1b72a8=_0x28cd3e[_0x543852])&&(_0x19afbe=_0x1b72a8(_0x19afbe)||_0x19afbe);return _0x19afbe;},_0x35d6ad=(_0x25752e,_0x202e01)=>(_0x5c5d92,_0x80498)=>_0x202e01(_0x5c5d92,_0x80498,_0x25752e),_0x5e6f20=(_0x10fec8,_0xbd16d3,_0x20a609)=>_0x5ad3c8(_0x10fec8,typeof _0xbd16d3!=_0x4082bc(0x285)?_0xbd16d3+'':_0xbd16d3,_0x20a609);const _0x291965=_0x4082bc(0x26b);_0x1b7f31[_0x4082bc(0x1e9)]=class extends _0x1d89bd[_0x4082bc(0x2a1)]{constructor(_0xc80c2a=_0x2bee52,_0x2ba5a2,_0x364268){const _0x123dd6=_0x4082bc;super(),this[_0x123dd6(0x20f)]=_0xc80c2a,this[_0x123dd6(0x29f)]=_0x2ba5a2,this[_0x123dd6(0x278)]=_0x364268;const {..._0x236713}=_0x1d89bd[_0x123dd6(0x1b9)]({},_0x2bee52,this[_0x123dd6(0x20f)]);this[_0x123dd6(0x278)][_0x123dd6(0x200)](_0x186f17,_0x236713);}['onStarting'](){const _0x3ed0bf=_0x4082bc;_0x1d89bd['registerDependencies'](this[_0x3ed0bf(0x29f)],_0x1d89bd[_0x3ed0bf(0x1e4)]([[_0x52e43b],[_0x1b7f31['LiveShareController']],[_0x38bef9],[_0x1b7f31[_0x3ed0bf(0x23f)]]],this[_0x3ed0bf(0x20f)][_0x3ed0bf(0x20b)])),_0x1d89bd['touchDependencies'](this[_0x3ed0bf(0x29f)],[[_0x38bef9]]);}[_0x4082bc(0x1d5)](){const _0x4351e2=_0x4082bc;_0x1d89bd[_0x4351e2(0x258)](this[_0x4351e2(0x29f)],[[_0x1b7f31[_0x4351e2(0x23f)]]]);}},_0x5e6f20(_0x1b7f31[_0x4082bc(0x1e9)],_0x4082bc(0x1b4),_0x1d89bd['UniverInstanceType'][_0x4082bc(0x1cf)]),_0x5e6f20(_0x1b7f31[_0x4082bc(0x1e9)],_0x4082bc(0x20c),_0x291965),_0x1b7f31[_0x4082bc(0x1e9)]=_0x308901([_0x1d89bd[_0x4082bc(0x1c9)](_0x1c0277[_0x4082bc(0x280)]),_0x35d6ad(0x1,_0x1d89bd[_0x4082bc(0x1b1)](_0x1d89bd[_0x4082bc(0x29b)])),_0x35d6ad(0x2,_0x1d89bd[_0x4082bc(0x21a)])],_0x1b7f31[_0x4082bc(0x1e9)]),_0x1b7f31[_0x4082bc(0x241)]=_0x5da910,_0x1b7f31[_0x4082bc(0x1fc)]=_0x52e43b,_0x1b7f31[_0x4082bc(0x20d)]=_0x1ea7a1,Object['defineProperty'](_0x1b7f31,Symbol['toStringTag'],{'value':_0x4082bc(0x270)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.3-experimental.20251205-e439e48",
|
|
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": "0.12.
|
|
61
|
-
"@univerjs-pro/collaboration-client": "0.12.
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/sheets": "0.12.
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs/ui": "0.12.
|
|
60
|
+
"@univerjs-pro/collaboration": "0.12.3-experimental.20251205-e439e48",
|
|
61
|
+
"@univerjs-pro/collaboration-client": "0.12.3-experimental.20251205-e439e48",
|
|
62
|
+
"@univerjs/core": "0.12.3-experimental.20251205-e439e48",
|
|
63
|
+
"@univerjs/engine-render": "0.12.3-experimental.20251205-e439e48",
|
|
64
|
+
"@univerjs/sheets-ui": "0.12.3-experimental.20251205-e439e48",
|
|
65
|
+
"@univerjs/sheets": "0.12.3-experimental.20251205-e439e48",
|
|
66
|
+
"@univerjs/design": "0.12.3-experimental.20251205-e439e48",
|
|
67
|
+
"@univerjs/ui": "0.12.3-experimental.20251205-e439e48"
|
|
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.2.
|
|
76
|
-
"vitest": "^
|
|
77
|
-
"@univerjs-infra/shared": "0.12.
|
|
75
|
+
"vite": "^7.2.6",
|
|
76
|
+
"vitest": "^4.0.15",
|
|
77
|
+
"@univerjs-infra/shared": "0.12.3",
|
|
78
78
|
"@univerjs/protocol": "0.1.47"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|