@univerjs-pro/live-share 0.15.0-insiders.20260107-3441c7a → 0.15.0-insiders.20260107-3d1cfdf
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +11 -11
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';
|
|
1
|
+
'use strict';const _0x5ce0e1=_0x28b5;(function(_0x45623f,_0x34432e){const _0x5a5c0c=_0x28b5,_0x5457bd=_0x45623f();while(!![]){try{const _0x437028=-parseInt(_0x5a5c0c(0x9b))/0x1+parseInt(_0x5a5c0c(0xb7))/0x2+-parseInt(_0x5a5c0c(0xa2))/0x3*(parseInt(_0x5a5c0c(0xb1))/0x4)+parseInt(_0x5a5c0c(0xad))/0x5+-parseInt(_0x5a5c0c(0xa7))/0x6*(parseInt(_0x5a5c0c(0x9c))/0x7)+-parseInt(_0x5a5c0c(0xa0))/0x8*(-parseInt(_0x5a5c0c(0xba))/0x9)+parseInt(_0x5a5c0c(0xaf))/0xa;if(_0x437028===_0x34432e)break;else _0x5457bd['push'](_0x5457bd['shift']());}catch(_0x252b13){_0x5457bd['push'](_0x5457bd['shift']());}}}(_0x3298,0xb0f60));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[_0x5ce0e1(0x9e)]{[_0x5ce0e1(0xb2)](_0x2e6c0d,_0x11dfe4,_0x42a5c5,_0x213480,_0x2d399c){const _0x2bb76c=_0x5ce0e1,_0x8355a0=_0x2e6c0d[_0x2bb76c(0xab)](n[_0x2bb76c(0x98)]),_0x3e4f07=_0x2e6c0d['get'](g[_0x2bb76c(0x97)]),_0x47e9ff=_0x11dfe4['getUnitId'](),_0x67bd81=_0x11dfe4[_0x2bb76c(0x96)](),_0x54380d=_0x8355a0[_0x2bb76c(0x95)](_0x47e9ff);(_0x54380d==null?void 0x0:_0x54380d['getStatus']())!==n[_0x2bb76c(0xbd)][_0x2bb76c(0xa1)]||(_0x42a5c5['getSheetId']()!==_0x67bd81['getSheetId']()&&this['_commandService'][_0x2bb76c(0xa3)](u['SetWorksheetActiveOperation']['id'],{'unitId':_0x47e9ff,'subUnitId':_0x42a5c5[_0x2bb76c(0xb5)]()}),!_0x3e4f07['getRenderById'](_0x47e9ff))||_0x2d399c[_0x2bb76c(0xaa)](f[_0x2bb76c(0xbe)]['id'],{'unitId':_0x11dfe4[_0x2bb76c(0xb8)](),'sheetId':_0x42a5c5[_0x2bb76c(0xb5)](),'sheetViewStartRow':_0x213480[_0x2bb76c(0xa6)],'sheetViewStartColumn':_0x213480[_0x2bb76c(0xa4)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x28b5(_0x385e13,_0x44ebbe){_0x385e13=_0x385e13-0x94;const _0x3298e4=_0x3298();let _0x28b520=_0x3298e4[_0x385e13];return _0x28b520;}d[_0x5ce0e1(0x9e)][_0x5ce0e1(0x99)](w);class C extends a[_0x5ce0e1(0xac)]{[_0x5ce0e1(0xbc)](){const _0x57d0eb=_0x5ce0e1;var _0x267ad5,_0x20ee65;const _0x178210=this['_injector'][_0x57d0eb(0xab)](n[_0x57d0eb(0x98)]),_0x55e786=(_0x267ad5=this[_0x57d0eb(0xb3)]())==null?void 0x0:_0x267ad5[_0x57d0eb(0xbb)]();if(!_0x55e786)throw new Error(_0x57d0eb(0xb4));const _0xcd31c3=_0x178210[_0x57d0eb(0x95)](_0x55e786);return(_0x20ee65=_0xcd31c3==null?void 0x0:_0xcd31c3[_0x57d0eb(0xa8)]())!=null?_0x20ee65:n[_0x57d0eb(0xbd)][_0x57d0eb(0xb0)];}['startFollowing'](){const _0x2449e4=_0x5ce0e1;var _0x3ee8b4;const _0xf11da=this['_injector'][_0x2449e4(0xab)](n[_0x2449e4(0x98)]),_0x9cdc58=(_0x3ee8b4=this[_0x2449e4(0xb3)]())==null?void 0x0:_0x3ee8b4[_0x2449e4(0xbb)]();if(!_0x9cdc58)throw new Error(_0x2449e4(0xb4));const _0xa64449=_0xf11da[_0x2449e4(0x95)](_0x9cdc58);if(!_0xa64449)throw new Error(_0x2449e4(0xb6));_0xa64449[_0x2449e4(0x9d)]();}['stopFollowing'](){const _0x145a07=_0x5ce0e1;var _0x3633d0;const _0x2a279d=this[_0x145a07(0xb9)][_0x145a07(0xab)](n[_0x145a07(0x98)]),_0x861817=(_0x3633d0=this[_0x145a07(0xb3)]())==null?void 0x0:_0x3633d0[_0x145a07(0xbb)]();if(!_0x861817)throw new Error(_0x145a07(0xb4));const _0x261622=_0x2a279d[_0x145a07(0x95)](_0x861817);if(!_0x261622)throw new Error(_0x145a07(0xb6));_0x261622[_0x145a07(0x94)]();}[_0x5ce0e1(0xa9)](){const _0x37afd2=_0x5ce0e1;var _0x3e29fc;const _0x460c4a=this[_0x37afd2(0xb9)][_0x37afd2(0xab)](n[_0x37afd2(0x98)]),_0x3c2b10=(_0x3e29fc=this[_0x37afd2(0xb3)]())==null?void 0x0:_0x3e29fc[_0x37afd2(0xbb)]();if(!_0x3c2b10)throw new Error(_0x37afd2(0xb4));const _0x59d942=_0x460c4a[_0x37afd2(0x95)](_0x3c2b10);if(!_0x59d942)throw new Error(_0x37afd2(0xb6));_0x59d942[_0x37afd2(0xae)]();}[_0x5ce0e1(0x9f)](){const _0x4a9a2d=_0x5ce0e1;var _0x30632e;const _0x404416=this[_0x4a9a2d(0xb9)]['get'](n[_0x4a9a2d(0x98)]),_0x349433=(_0x30632e=this['getActiveWorkbook']())==null?void 0x0:_0x30632e[_0x4a9a2d(0xbb)]();if(!_0x349433)throw new Error(_0x4a9a2d(0xb4));const _0x47ce5e=_0x404416[_0x4a9a2d(0x95)](_0x349433);if(!_0x47ce5e)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x47ce5e['stopPresenting']();}}a[_0x5ce0e1(0xac)][_0x5ce0e1(0x99)](C);class L extends a[_0x5ce0e1(0xa5)]{get[_0x5ce0e1(0x9a)](){const _0x5d99f8=_0x5ce0e1;return n[_0x5d99f8(0xbd)];}}a['FEnum']['extend'](L);function _0x3298(){const _0x3bb4b7=['stopPresenting','268928BIcXQW','PRESENTING','177CNkAVG','executeCommand','startColumn','FEnum','startRow','42tNWEdq','getStatus','startPresenting','syncExecuteCommand','get','FUniver','4032420UuHGSn','tryStartPresenting','1656010hRhAqB','IDLE','50824aanann','_initialize','getActiveWorkbook','No\x20active\x20workbook\x20found.','getSheetId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','2471542tNbVET','getUnitId','_injector','207wYEfVD','getId','getLiveShareStatus','LiveShareStatus','SetScrollOperation','stopFollowing','getLiveShareCoordinatorSync','getActiveSheet','IRenderManagerService','LiveShareController','extend','LiveShareStatusEnum','1185539fFXNvD','320999EaWzQq','startFollowing','FRange'];_0x3298=function(){return _0x3bb4b7;};return _0x3298();}
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x6be33=_0x3402;(function(_0x2cce31,_0xb95da9){const _0x2e9f4a=_0x3402,_0x43f5f4=_0x2cce31();while(!![]){try{const _0x4d5c0e=parseInt(_0x2e9f4a(0x21e))/0x1+-parseInt(_0x2e9f4a(0x25a))/0x2*(parseInt(_0x2e9f4a(0x22f))/0x3)+parseInt(_0x2e9f4a(0x1da))/0x4+-parseInt(_0x2e9f4a(0x1d7))/0x5+parseInt(_0x2e9f4a(0x1bc))/0x6+-parseInt(_0x2e9f4a(0x1f9))/0x7*(parseInt(_0x2e9f4a(0x1b1))/0x8)+parseInt(_0x2e9f4a(0x1e1))/0x9*(parseInt(_0x2e9f4a(0x259))/0xa);if(_0x4d5c0e===_0xb95da9)break;else _0x43f5f4['push'](_0x43f5f4['shift']());}catch(_0x13894d){_0x43f5f4['push'](_0x43f5f4['shift']());}}}(_0x3ba1,0xc610e));var T=Object[_0x6be33(0x1c8)],U=(_0x4925d7,_0x4ada07,_0x452c42)=>_0x4ada07 in _0x4925d7?T(_0x4925d7,_0x4ada07,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x452c42}):_0x4925d7[_0x4ada07]=_0x452c42,_=(_0x2d0a01,_0x4c0bf6,_0xcf080f)=>U(_0x2d0a01,typeof _0x4c0bf6!=_0x6be33(0x23d)?_0x4c0bf6+'':_0x4c0bf6,_0xcf080f);Object[_0x6be33(0x1c8)](exports,Symbol[_0x6be33(0x220)],{'value':_0x6be33(0x1eb)});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:_0x11400b,..._0x31bf2d}){const _0x3c54b2=_0x6be33,{icon:_0x338229,id:_0x45e81d,className:_0x45a739,extend:_0x53a4ef,..._0x1f39e9}=_0x31bf2d,_0x3bec7a=(_0x3c54b2(0x1db)+_0x45e81d+'\x20'+(_0x45a739||''))['trim'](),_0xb5932d=v[_0x3c54b2(0x24f)]('_'+H());return j(_0x338229,''+_0x45e81d,{'defIds':_0x338229[_0x3c54b2(0x1de)],'idSuffix':_0xb5932d[_0x3c54b2(0x241)]},{'ref':_0x11400b,'className':_0x3bec7a,..._0x1f39e9},_0x53a4ef);}function j(_0x3dcc7e,_0xcdd5a0,_0x38c590,_0x194d06,_0x165d0d){const _0x573b2f=_0x6be33;return v[_0x573b2f(0x25c)](_0x3dcc7e['tag'],{'key':_0xcdd5a0,...y(_0x3dcc7e,_0x38c590,_0x165d0d),..._0x194d06},(F(_0x3dcc7e,_0x38c590)[_0x573b2f(0x1ca)]||[])[_0x573b2f(0x198)]((_0x23dfaf,_0x4080ba)=>j(_0x23dfaf,_0xcdd5a0+'-'+_0x3dcc7e[_0x573b2f(0x256)]+'-'+_0x4080ba,_0x38c590,void 0x0,_0x165d0d)));}function y(_0xedc04b,_0x2044be,_0x431cf1){const _0x10e20c=_0x6be33,_0x48eb95={..._0xedc04b[_0x10e20c(0x206)]};_0x431cf1!=null&&_0x431cf1['colorChannel1']&&_0x48eb95['fill']===_0x10e20c(0x207)&&(_0x48eb95[_0x10e20c(0x1fb)]=_0x431cf1[_0x10e20c(0x207)]),_0xedc04b[_0x10e20c(0x256)]===_0x10e20c(0x1b7)&&_0x48eb95['id']&&(_0x48eb95['id']=_0x48eb95['id']+_0x2044be['idSuffix']),Object[_0x10e20c(0x1a7)](_0x48eb95)[_0x10e20c(0x1a5)](([_0x18b9d5,_0x4664e1])=>{const _0x56df68=_0x10e20c;_0x18b9d5===_0x56df68(0x1b7)&&typeof _0x4664e1=='string'&&(_0x48eb95[_0x18b9d5]=_0x4664e1[_0x56df68(0x1d5)](/url\(#(.*)\)/,_0x56df68(0x22b)+_0x2044be['idSuffix']+')'));});const {defIds:_0x7f176a}=_0x2044be;return!_0x7f176a||_0x7f176a[_0x10e20c(0x267)]===0x0||(_0xedc04b[_0x10e20c(0x256)]===_0x10e20c(0x233)&&_0x48eb95[_0x10e20c(0x21b)]&&(_0x48eb95[_0x10e20c(0x21b)]=_0x48eb95['xlink:href']+_0x2044be[_0x10e20c(0x1ab)]),Object[_0x10e20c(0x1a7)](_0x48eb95)[_0x10e20c(0x1a5)](([_0x47578b,_0x22446b])=>{const _0x4a3df7=_0x10e20c;typeof _0x22446b==_0x4a3df7(0x235)&&(_0x48eb95[_0x47578b]=_0x22446b['replace'](/url\(#(.*)\)/,_0x4a3df7(0x22b)+_0x2044be[_0x4a3df7(0x1ab)]+')'));})),_0x48eb95;}function F(_0x117ccc,_0xa4abd1){const _0x1680c7=_0x6be33;var _0x4d93b2;const {defIds:_0xfee9aa}=_0xa4abd1;return!_0xfee9aa||_0xfee9aa[_0x1680c7(0x267)]===0x0?_0x117ccc:_0x117ccc[_0x1680c7(0x256)]===_0x1680c7(0x1fa)&&((_0x4d93b2=_0x117ccc['children'])!=null&&_0x4d93b2[_0x1680c7(0x267)])?{..._0x117ccc,'children':_0x117ccc[_0x1680c7(0x1ca)][_0x1680c7(0x198)](_0x3a07a9=>typeof _0x3a07a9['attrs']['id']==_0x1680c7(0x235)&&_0xfee9aa&&_0xfee9aa[_0x1680c7(0x197)](_0x3a07a9[_0x1680c7(0x206)]['id'])?{..._0x3a07a9,'attrs':{..._0x3a07a9['attrs'],'id':_0x3a07a9[_0x1680c7(0x206)]['id']+_0xa4abd1[_0x1680c7(0x1ab)]}}:_0x3a07a9)}:_0x117ccc;}function H(){const _0x5709db=_0x6be33;return Math[_0x5709db(0x1b2)]()['toString'](0x24)['substring'](0x2,0x8);}x[_0x6be33(0x232)]=_0x6be33(0x1c1);const V={'tag':_0x6be33(0x1dc),'attrs':{'xmlns':_0x6be33(0x205),'fill':_0x6be33(0x1b0),'viewBox':_0x6be33(0x237),'width':'1em','height':'1em'},'children':[{'tag':_0x6be33(0x1e5),'attrs':{'fill':_0x6be33(0x20f),'d':_0x6be33(0x211)}},{'tag':_0x6be33(0x1e5),'attrs':{'fill':_0x6be33(0x20f),'d':_0x6be33(0x1b5),'fillRule':_0x6be33(0x249),'clipRule':_0x6be33(0x249)}}]},R=v['forwardRef'](function(_0x547c5f,_0x1d5533){const _0x14b889=_0x6be33;return v[_0x14b889(0x25c)](x,Object[_0x14b889(0x1a6)]({},_0x547c5f,{'id':_0x14b889(0x1d6),'ref':_0x1d5533,'icon':V}));});R[_0x6be33(0x232)]=_0x6be33(0x1a0);class E extends o['Disposable']{constructor(){const _0x49b52c=_0x6be33;super(...arguments),_(this,_0x49b52c(0x247),new Set()),_(this,_0x49b52c(0x231),new Set());}[_0x6be33(0x1df)](_0x14a4ae){const _0x17f494=_0x6be33;return this[_0x17f494(0x247)]['add'](_0x14a4ae),o[_0x17f494(0x1c2)](()=>this['_sharedOperations']['delete'](_0x14a4ae));}['registerInitialStateReporter'](_0x65e003){const _0x2f5bc2=_0x6be33;return this[_0x2f5bc2(0x231)][_0x2f5bc2(0x1e3)](_0x65e003),o['toDisposable'](()=>this['_reporters'][_0x2f5bc2(0x1c7)](_0x65e003));}[_0x6be33(0x202)](_0x43fa10){const _0x259563=_0x6be33;return this[_0x259563(0x247)][_0x259563(0x20b)](_0x43fa10);}[_0x6be33(0x1f0)](_0x50456c){const _0xfd2584=_0x6be33;return Array['from'](this[_0xfd2584(0x231)])[_0xfd2584(0x198)](_0x17e0c6=>_0x17e0c6(_0x50456c));}}var M=Object[_0x6be33(0x253)],P=(_0x47a9c0,_0x5027b3,_0x34dcc4,_0x5924f4)=>{const _0x4ec086=_0x6be33;for(var _0x13f438=_0x5924f4>0x1?void 0x0:_0x5924f4?M(_0x5027b3,_0x34dcc4):_0x5027b3,_0x56b025=_0x47a9c0[_0x4ec086(0x267)]-0x1,_0x3bfeba;_0x56b025>=0x0;_0x56b025--)(_0x3bfeba=_0x47a9c0[_0x56b025])&&(_0x13f438=_0x3bfeba(_0x13f438)||_0x13f438);return _0x13f438;},S=(_0x560423,_0x18a963)=>(_0x17e7e0,_0x83732)=>_0x18a963(_0x17e7e0,_0x83732,_0x560423);exports[_0x6be33(0x1d4)]=class extends o[_0x6be33(0x26e)]{constructor(_0x260b0c,_0x531775,_0x16cec6){const _0x3ef5d2=_0x6be33;super(),_(this,_0x3ef5d2(0x1d0),new Map()),(this['_univerInstanceService']=_0x260b0c,this[_0x3ef5d2(0x1b9)]=_0x531775,this[_0x3ef5d2(0x1c9)]=_0x16cec6,this[_0x3ef5d2(0x239)]());}async[_0x6be33(0x22a)](_0x402faa){const _0x4f1b54=_0x6be33;return this[_0x4f1b54(0x1d0)][_0x4f1b54(0x20b)](_0x402faa)||await this[_0x4f1b54(0x213)](_0x402faa),this[_0x4f1b54(0x1d0)][_0x4f1b54(0x1c0)](_0x402faa);}['getLiveShareCoordinatorSync'](_0x274894){const _0x14677a=_0x6be33;var _0x919dc8;return(_0x919dc8=this[_0x14677a(0x1d0)]['get'](_0x274894))!=null?_0x919dc8:null;}[_0x6be33(0x239)](){const _0x56d708=_0x6be33;this[_0x56d708(0x1ff)][_0x56d708(0x23b)](o[_0x56d708(0x1cb)][_0x56d708(0x23a)])[_0x56d708(0x1fe)](I[_0x56d708(0x223)](this[_0x56d708(0x210)]))[_0x56d708(0x1ba)](async _0x3ac7dc=>{const _0x338428=_0x56d708,_0x345e1b=_0x3ac7dc[_0x338428(0x224)]();this[_0x338428(0x1d0)][_0x338428(0x20b)](_0x345e1b)||this[_0x338428(0x213)](_0x345e1b);}),this[_0x56d708(0x1ff)][_0x56d708(0x219)](o['UniverInstanceType'][_0x56d708(0x23a)])['pipe'](I[_0x56d708(0x223)](this[_0x56d708(0x210)]))[_0x56d708(0x1ba)](_0x317fea=>{const _0x2b1417=_0x56d708,_0x2ee220=_0x317fea[_0x2b1417(0x224)](),_0x498bac=this[_0x2b1417(0x1d0)][_0x2b1417(0x1c0)](_0x2ee220);_0x498bac==null||_0x498bac['dispose']();});}async[_0x6be33(0x213)](_0x150157){const _0x42f68c=_0x6be33,_0x2a4c47=await this[_0x42f68c(0x1c9)]['requireSession'](_0x150157),_0x427e65=this['_injector'][_0x42f68c(0x1bf)](exports[_0x42f68c(0x238)],_0x150157,_0x2a4c47);return _0x427e65[_0x42f68c(0x1a8)](),this[_0x42f68c(0x1d0)][_0x42f68c(0x1b6)](_0x150157,_0x427e65),_0x427e65;}},exports[_0x6be33(0x1d4)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x6be33(0x22e)](o[_0x6be33(0x25f)])),S(0x2,o[_0x6be33(0x22e)](b['CollaborationSessionService']))],exports[_0x6be33(0x1d4)]);var u=(_0x2a5809=>(_0x2a5809[_0x6be33(0x25e)]='offline',_0x2a5809[_0x6be33(0x201)]='idle',_0x2a5809[_0x6be33(0x266)]='following',_0x2a5809['NOT_FOLLOWING']=_0x6be33(0x21c),_0x2a5809[_0x6be33(0x21f)]=_0x6be33(0x240),_0x2a5809))(u||{});const k=_0x6be33(0x20d),q=0xc8;exports[_0x6be33(0x238)]=class extends o[_0x6be33(0x26e)]{constructor(_0x456554,_0x448d3d,_0x279232,_0x13182f,_0x562322){const _0x5df246=_0x6be33;super(),_(this,_0x5df246(0x1bd),new O[(_0x5df246(0x22c))](_0x5df246(0x196))),_(this,_0x5df246(0x1d1),this['_status$'][_0x5df246(0x1bb)]()),_(this,'_init',!0x1),_(this,'_commandDisposable',null),_(this,'_presenter',null),(this['_unitID']=_0x456554,this[_0x5df246(0x1b3)]=_0x448d3d,this[_0x5df246(0x20e)]=_0x279232,this[_0x5df246(0x1ce)]=_0x13182f,this[_0x5df246(0x1f7)]=_0x562322);}get[_0x6be33(0x258)](){const _0xfe86d8=_0x6be33;return this[_0xfe86d8(0x1bd)][_0xfe86d8(0x1dd)]();}[_0x6be33(0x26d)](){const _0x1b8b4d=_0x6be33;var _0x3d195c;(_0x3d195c=this['_commandDisposable'])==null||_0x3d195c['dispose'](),this[_0x1b8b4d(0x1bd)][_0x1b8b4d(0x1e7)]('idle'),this[_0x1b8b4d(0x1bd)][_0x1b8b4d(0x1a4)]();}[_0x6be33(0x1fd)](){return this['_status'];}[_0x6be33(0x1a8)](){const _0x5f0ef9=_0x6be33;this[_0x5f0ef9(0x239)]||(this[_0x5f0ef9(0x239)]=!0x0,this[_0x5f0ef9(0x1b3)][_0x5f0ef9(0x1b8)][_0x5f0ef9(0x1fe)](I[_0x5f0ef9(0x223)](this[_0x5f0ef9(0x210)]))[_0x5f0ef9(0x1ba)](_0xfbe112=>{const _0x159379=_0x5f0ef9;switch(_0xfbe112){case b[_0x159379(0x215)][_0x159379(0x25e)]:this[_0x159379(0x1ec)]();break;case b[_0x159379(0x215)][_0x159379(0x1f8)]:this[_0x159379(0x24e)]();break;}}),this[_0x5f0ef9(0x1b3)]['event$']['pipe'](I[_0x5f0ef9(0x223)](this['dispose$']))[_0x5f0ef9(0x1ba)](_0x3d31ab=>{const _0x5c32f2=_0x5f0ef9,{eventID:_0x1f0ca2}=_0x3d31ab;switch(_0x1f0ca2){case d['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x5c32f2(0x1f2)](_0x3d31ab);break;case d[_0x5c32f2(0x236)][_0x5c32f2(0x1c4)]:this[_0x5c32f2(0x229)](_0x3d31ab);break;case d[_0x5c32f2(0x236)][_0x5c32f2(0x244)]:this[_0x5c32f2(0x26a)]();break;case d[_0x5c32f2(0x236)][_0x5c32f2(0x1f3)]:this[_0x5c32f2(0x1c3)](_0x3d31ab);break;}}));}[_0x6be33(0x1e2)](){const _0x1bd484=_0x6be33;this['_collabSession'][_0x1bd484(0x203)]({'eventID':d[_0x1bd484(0x236)][_0x1bd484(0x21d)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x1bd484(0x19a)]()}},this[_0x1bd484(0x268)]);}[_0x6be33(0x264)](){const _0x215999=_0x6be33;this[_0x215999(0x258)]===_0x215999(0x240)&&(this[_0x215999(0x1bd)][_0x215999(0x1e7)]('idle'),this[_0x215999(0x1b3)][_0x215999(0x203)]({'eventID':d[_0x215999(0x236)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x215999(0x268)]));}['startFollowing'](){const _0x5c391b=_0x6be33;this[_0x5c391b(0x258)]==='not-following'&&(this['_status$'][_0x5c391b(0x1e7)]('following'),this['_startFollowing']());}[_0x6be33(0x225)](){const _0x2591cf=_0x6be33;this['_status']==='following'&&this[_0x2591cf(0x263)]();}[_0x6be33(0x1f2)](_0x310f69){const _0x50ab1c=_0x6be33,{presenter:_0x52b614}=_0x310f69['data'],_0x2255a0=this[_0x50ab1c(0x1b3)]['getMemberID']();this['_presenter']=_0x52b614,_0x52b614===_0x2255a0?(this[_0x50ab1c(0x263)](),this[_0x50ab1c(0x1ed)]()):this[_0x50ab1c(0x258)]!==_0x50ab1c(0x21c)&&(this[_0x50ab1c(0x1ee)](),this[_0x50ab1c(0x218)]());}[_0x6be33(0x1af)](){const _0x153f20=_0x6be33,_0x851603={'eventID':d[_0x153f20(0x236)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x153f20(0x1b3)][_0x153f20(0x203)](_0x851603,this['_unitID']);}[_0x6be33(0x26a)](){const _0xb021c4=_0x6be33;this['_presenter']=null,this[_0xb021c4(0x258)]!==_0xb021c4(0x240)&&this[_0xb021c4(0x1ae)]();}[_0x6be33(0x1c3)](_0x19bf1a){const _0x35aa1b=_0x6be33;if(this[_0x35aa1b(0x258)]===_0x35aa1b(0x257)&&this[_0x35aa1b(0x1a3)]===_0x19bf1a[_0x35aa1b(0x255)][_0x35aa1b(0x260)]){const _0x1c3451=d[_0x35aa1b(0x24c)](_0x19bf1a[_0x35aa1b(0x255)])[_0x35aa1b(0x25d)][_0x35aa1b(0x22d)]()['find'](_0x1223d0=>_0x1223d0['id']===C[_0x35aa1b(0x248)]['id']);if(_0x1c3451){const _0x56e10b=_0x1c3451[_0x35aa1b(0x1e8)][_0x35aa1b(0x204)],_0x2d311a=_0x1c3451[_0x35aa1b(0x1e8)][_0x35aa1b(0x216)]['id'];setTimeout(()=>{const _0xb02728=_0x35aa1b;this[_0xb02728(0x1f7)]['executeCommand'](C[_0xb02728(0x226)]['id'],{'unitId':_0x56e10b,'subUnitId':_0x2d311a},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x262ae6=_0x6be33;this[_0x262ae6(0x1bd)][_0x262ae6(0x1e7)](_0x262ae6(0x240));const _0x20dfd6=new Map(),_0x809032=this['_commandDisposable']=new o[(_0x262ae6(0x19d))]();_0x809032['add'](o[_0x262ae6(0x1c2)](()=>{const _0x458a2e=_0x262ae6;_0x20dfd6['forEach'](_0x34b1f2=>_0x34b1f2[_0x458a2e(0x1a4)]()),_0x20dfd6[_0x458a2e(0x24b)]();})),_0x809032['add'](this[_0x262ae6(0x1f7)][_0x262ae6(0x20c)](_0xbb99aa=>{const _0x26e6dc=_0x262ae6;var _0x3159fa;if(_0xbb99aa[_0x26e6dc(0x199)]!==o[_0x26e6dc(0x230)][_0x26e6dc(0x1a1)]||!this[_0x26e6dc(0x1ce)][_0x26e6dc(0x202)](_0xbb99aa['id']))return;const {id:_0x559ac3}=_0xbb99aa;let _0x375e43;_0x20dfd6[_0x26e6dc(0x20b)](_0x559ac3)?_0x375e43=_0x20dfd6['get'](_0x559ac3):(_0x375e43=new O[(_0x26e6dc(0x1e4))](),_0x20dfd6[_0x26e6dc(0x1b6)](_0x559ac3,_0x375e43),_0x375e43[_0x26e6dc(0x1fe)](I[_0x26e6dc(0x1e9)]((_0x3159fa=this['_configService'][_0x26e6dc(0x261)](k))!=null?_0x3159fa:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x26e6dc(0x1ba)](_0x5dd222=>{const _0x324d20=_0x26e6dc;this[_0x324d20(0x1b3)][_0x324d20(0x203)]({'eventID':d[_0x324d20(0x236)][_0x324d20(0x1c4)],'data':{'unitID':this[_0x324d20(0x268)],'operations':{[_0x5dd222['id']]:{'id':_0x5dd222['id'],'params':JSON[_0x324d20(0x24a)](_0x5dd222[_0x324d20(0x1e8)])}}}},this[_0x324d20(0x268)]);})),_0x375e43['next'](_0xbb99aa);})),this['_liveShareService'][_0x262ae6(0x1f0)](this[_0x262ae6(0x268)])[_0x262ae6(0x1a5)](_0xc803c9=>this['_collabSession'][_0x262ae6(0x203)]({'eventID':d[_0x262ae6(0x236)][_0x262ae6(0x1c4)],'data':{'unitID':this[_0x262ae6(0x268)],'operations':{[_0xc803c9['id']]:{'id':_0xc803c9['id'],'params':JSON[_0x262ae6(0x24a)](_0xc803c9[_0x262ae6(0x1e8)])}}}},this[_0x262ae6(0x268)]));}[_0x6be33(0x1ee)](){const _0x37986c=_0x6be33;var _0x591079;this[_0x37986c(0x1bd)]['next'](_0x37986c(0x196)),(_0x591079=this[_0x37986c(0x1e6)])==null||_0x591079[_0x37986c(0x26d)](),this[_0x37986c(0x1e6)]=null;}[_0x6be33(0x218)](){const _0x349eb2=_0x6be33;var _0x4571c7;(_0x4571c7=this[_0x349eb2(0x1e6)])==null||_0x4571c7[_0x349eb2(0x26d)](),this['_status$'][_0x349eb2(0x1e7)](_0x349eb2(0x257));}[_0x6be33(0x1ae)](){const _0x5be756=_0x6be33;var _0xc02a95;this[_0x5be756(0x1bd)]['next'](_0x5be756(0x196)),(_0xc02a95=this[_0x5be756(0x1e6)])==null||_0xc02a95['dispose'](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x47df77=_0x6be33;var _0x1db5ec;this['_status$'][_0x47df77(0x1e7)]('not-following'),(_0x1db5ec=this[_0x47df77(0x1e6)])==null||_0x1db5ec[_0x47df77(0x26d)]();}['_handleOperation'](_0x2e07b6){const _0x173d95=_0x6be33;if(['presenting',_0x173d95(0x21c),'offline']['includes'](this[_0x173d95(0x258)])||!_0x2e07b6[_0x173d95(0x255)][_0x173d95(0x1f5)]||_0x2e07b6[_0x173d95(0x255)][_0x173d95(0x1f5)]===this[_0x173d95(0x1b3)][_0x173d95(0x19a)]())return;this['_status']==='idle'&&this['_startFollowing']();const _0x542531=_0x2e07b6[_0x173d95(0x255)][_0x173d95(0x23e)];Object['values'](_0x542531)[_0x173d95(0x1a5)](_0x5a1db0=>{const _0x45b6e5=_0x173d95;this[_0x45b6e5(0x1f7)][_0x45b6e5(0x228)](_0x5a1db0['id'],_0x5a1db0[_0x45b6e5(0x1e8)]?JSON[_0x45b6e5(0x217)](_0x5a1db0[_0x45b6e5(0x1e8)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x5133ff=_0x6be33;var _0x133b22;this[_0x5133ff(0x1bd)][_0x5133ff(0x1e7)](_0x5133ff(0x208)),(_0x133b22=this['_commandDisposable'])==null||_0x133b22[_0x5133ff(0x26d)]();}[_0x6be33(0x24e)](){const _0x4e60ba=_0x6be33;this['_status$'][_0x4e60ba(0x1e7)](_0x4e60ba(0x196)),this[_0x4e60ba(0x1af)]();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0x6be33(0x26b)]),S(0x3,o[_0x6be33(0x22e)](E)),S(0x4,o[_0x6be33(0x209)])],exports[_0x6be33(0x238)]);function $(){const _0x122433=_0x6be33,_0x2ec90f=p['useDependency'](exports[_0x122433(0x1d4)]),_0x4d5101=p['useDependency'](o[_0x122433(0x20a)]),_0x506d65=p[_0x122433(0x265)](()=>_0x4d5101['getCurrentTypeOfUnit$'](o['UniverInstanceType'][_0x122433(0x23a)]),void 0x0,!0x1,[]),[_0x1498e3,_0x5d54e6]=v[_0x122433(0x1b4)](null),[_0x1f930d,_0x586d4a]=v[_0x122433(0x1b4)](u[_0x122433(0x201)]),_0x24b11f=v[_0x122433(0x24f)](null);return v[_0x122433(0x222)](()=>(_0x506d65&&_0x2ec90f['getLiveShareCoordinator'](_0x506d65[_0x122433(0x224)]())[_0x122433(0x26c)](_0x41cbc3=>{const _0x27fcea=_0x122433;_0x5d54e6(_0x41cbc3),_0x24b11f[_0x27fcea(0x241)]=_0x41cbc3[_0x27fcea(0x1d1)][_0x27fcea(0x1ba)](_0x547617=>{_0x586d4a(_0x547617);});}),()=>{const _0x262f87=_0x122433;var _0x3df4e1;(_0x3df4e1=_0x24b11f[_0x262f87(0x241)])==null||_0x3df4e1[_0x262f87(0x1ad)](),_0x24b11f[_0x262f87(0x241)]=null;}),[_0x506d65,_0x2ec90f]),_0x1498e3?l[_0x122433(0x200)](f[_0x122433(0x1aa)],{'align':_0x122433(0x1ef),'disabled':_0x1f930d===u[_0x122433(0x25e)],'className':_0x122433(0x246),'overlay':l['jsx'](W,{'status':_0x1f930d,'coordinator':_0x1498e3}),'children':l[_0x122433(0x200)]('button',{'className':f['clsx'](_0x122433(0x214),{'univer-cursor-not-allowed':_0x1f930d===u[_0x122433(0x25e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1f930d!==u['OFFLINE']}),'type':_0x122433(0x1ea),'children':l[_0x122433(0x200)](R,{'className':_0x122433(0x227)})})}):null;}function W(_0x39b859){const _0x4809b4=_0x6be33,{status:_0x370dc0,coordinator:_0x2aebb8}=_0x39b859;switch(_0x370dc0){case u['IDLE']:return l['jsx'](G,{'coordinator':_0x2aebb8});case u[_0x4809b4(0x266)]:return l[_0x4809b4(0x200)](B,{'coordinator':_0x2aebb8});case u[_0x4809b4(0x21a)]:return l[_0x4809b4(0x200)](Y,{'coordinator':_0x2aebb8});case u[_0x4809b4(0x25e)]:return l['jsx'](J,{});case u[_0x4809b4(0x21f)]:return l[_0x4809b4(0x200)](Z,{'coordinator':_0x2aebb8});default:return null;}}function G(_0xaff639){const _0x5cc1d8=_0x6be33,{coordinator:_0x57b2e9}=_0xaff639;return l[_0x5cc1d8(0x1cf)](l[_0x5cc1d8(0x254)],{'children':[l[_0x5cc1d8(0x200)](_0x5cc1d8(0x1f4),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5cc1d8(0x269)}),l[_0x5cc1d8(0x200)](f[_0x5cc1d8(0x1cd)],{'onClick':()=>_0x57b2e9['tryStartPresenting'](),'children':_0x5cc1d8(0x1fc)})]});}function B(_0x50e192){const _0x1af003=_0x6be33,{coordinator:_0xd24b06}=_0x50e192;return l[_0x1af003(0x1cf)](l[_0x1af003(0x254)],{'children':[l[_0x1af003(0x200)](_0x1af003(0x1f4),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1af003(0x19c)}),l[_0x1af003(0x200)](f[_0x1af003(0x1cd)],{'onClick':()=>_0xd24b06['stopFollowing'](),'children':'Stop\x20following'})]});}function Y(_0x8a46c8){const _0x1d935c=_0x6be33,{coordinator:_0x213d73}=_0x8a46c8;return l['jsxs'](l[_0x1d935c(0x254)],{'children':[l[_0x1d935c(0x200)](_0x1d935c(0x1f4),{'className':_0x1d935c(0x24d),'children':_0x1d935c(0x1c5)}),l[_0x1d935c(0x200)](f[_0x1d935c(0x1cd)],{'variant':_0x1d935c(0x262),'onClick':()=>_0x213d73[_0x1d935c(0x1a9)](),'children':'Start\x20following'})]});}function Z(_0x26b027){const _0x565349=_0x6be33,{coordinator:_0x91572}=_0x26b027;return l[_0x565349(0x1cf)](l[_0x565349(0x254)],{'children':[l['jsx'](_0x565349(0x1f4),{'className':_0x565349(0x24d),'children':_0x565349(0x1f1)}),l[_0x565349(0x200)](f[_0x565349(0x1cd)],{'variant':'default','onClick':()=>_0x91572['stopPresenting'](),'children':_0x565349(0x1d2)})]});}function J(){const _0xf4db23=_0x6be33;return l[_0xf4db23(0x200)](l['Fragment'],{'children':_0xf4db23(0x251)});}var K=Object[_0x6be33(0x253)],z=(_0x103346,_0x4a6512,_0x3934e4,_0x5ab9cd)=>{const _0x285cb9=_0x6be33;for(var _0x5b0530=_0x5ab9cd>0x1?void 0x0:_0x5ab9cd?K(_0x4a6512,_0x3934e4):_0x4a6512,_0x20ff58=_0x103346[_0x285cb9(0x267)]-0x1,_0x108ef7;_0x20ff58>=0x0;_0x20ff58--)(_0x108ef7=_0x103346[_0x20ff58])&&(_0x5b0530=_0x108ef7(_0x5b0530)||_0x5b0530);return _0x5b0530;},L=(_0x4ef8c8,_0x2fbeef)=>(_0x1c7357,_0xb02dc2)=>_0x2fbeef(_0x1c7357,_0xb02dc2,_0x4ef8c8);exports[_0x6be33(0x1ac)]=class extends o[_0x6be33(0x1e0)]{constructor(_0x3a7ce1,_0x30618b){const _0x16af62=_0x6be33;super(),this[_0x16af62(0x1b9)]=_0x3a7ce1,this[_0x16af62(0x23c)]=_0x30618b,this[_0x16af62(0x1a2)]();}['_mountLiveShare'](){const _0x58c751=_0x6be33;this[_0x58c751(0x1d8)](this['_uiPartsService']['registerComponent'](p[_0x58c751(0x19e)][_0x58c751(0x250)],()=>p[_0x58c751(0x212)]($,this[_0x58c751(0x1b9)])));}},exports[_0x6be33(0x1ac)]=z([L(0x0,o[_0x6be33(0x22e)](o['Injector'])),L(0x1,p[_0x6be33(0x221)])],exports[_0x6be33(0x1ac)]);const Q=_0x6be33(0x234),w={};var X=Object[_0x6be33(0x253)],ee=(_0x2fa54a,_0x314da2,_0x26b71b,_0x38e100)=>{const _0x1d93cb=_0x6be33;for(var _0x2936d3=_0x38e100>0x1?void 0x0:_0x38e100?X(_0x314da2,_0x26b71b):_0x314da2,_0x37060c=_0x2fa54a[_0x1d93cb(0x267)]-0x1,_0x139792;_0x37060c>=0x0;_0x37060c--)(_0x139792=_0x2fa54a[_0x37060c])&&(_0x2936d3=_0x139792(_0x2936d3)||_0x2936d3);return _0x2936d3;},te=(_0x411ef3,_0x1d01a9)=>(_0x57d8b0,_0x5cff1a)=>_0x1d01a9(_0x57d8b0,_0x5cff1a,_0x411ef3);let m=class extends o['Disposable']{constructor(_0x2035f7){const _0x5c3da6=_0x6be33;super(),this[_0x5c3da6(0x1ce)]=_0x2035f7,this[_0x5c3da6(0x239)]();}[_0x6be33(0x239)](){const _0x5d164a=_0x6be33;[D['SetZoomRatioOperation']['id'],D[_0x5d164a(0x19b)]['id'],C[_0x5d164a(0x226)]['id']][_0x5d164a(0x1a5)](_0x52551b=>{const _0x550d38=_0x5d164a;this['disposeWithMe'](this[_0x550d38(0x1ce)]['registerSharedOperation'](_0x52551b));});}};function _0x3402(_0xfe1219,_0x270270){_0xfe1219=_0xfe1219-0x196;const _0x3ba128=_0x3ba1();let _0x3402a0=_0x3ba128[_0xfe1219];return _0x3402a0;}function _0x3ba1(){const _0x480d26=['delete','defineProperty','_collabSessionService','children','UniverInstanceType','_config','Button','_liveShareService','jsxs','_entities','status$','Stop\x20presenting','Plugin','LiveShareController','replace','live-share-icon','2307375kceSQN','disposeWithMe','onStarting','1402384vqOpOV','univerjs-icon\x20univerjs-icon-','svg','getValue','defIds','registerSharedOperation','Disposable','27rHGhid','tryStartPresenting','add','Subject','path','_commandDisposable','next','params','throttleTime','button','Module','_handleOffline','_startPresenting','_stopPresenting','end','getInitialStates','You\x27re\x20presenting\x20the\x20document','_handleNewHost','NEW_CHANGESETS','div','presenter','override','_commandService','ONLINE','182588wumlEE','defs','fill','Start','getStatus','pipe','_univerInstanceService','jsx','IDLE','shouldShareOperation','send','unitId','http://www.w3.org/2000/svg','attrs','colorChannel1','offline','ICommandService','IUniverInstanceService','has','onCommandExecuted','SAME_OPERATION_SHARE_INTERVAL','_configService','currentColor','dispose$','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','connectInjector','_startLiveShareCoordinator','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','SessionStatus','sheet','parse','_startFollowing','getTypeOfUnitDisposed$','NOT_FOLLOWING','xlink:href','not-following','LIVESHARE_REQUEST_HOST','897788zjUZvK','PRESENTING','toStringTag','IUIPartsService','useEffect','takeUntil','getUnitId','stopFollowing','SetWorksheetActiveOperation','univer-size-4','executeCommand','_handleOperation','getLiveShareCoordinator','url(#$1','BehaviorSubject','reverse','Inject','6VCzlND','CommandType','_reporters','displayName','use','live-share.config','string','CollaborationEvent','0\x200\x2017\x2017','LiveShareCoordinator','_init','UNIVER_SHEET','getTypeOfUnitAdded$','_uiPartsService','symbol','operations','onRendered','presenting','current','merge','UniverLiveSharePlugin','LIVESHARE_TERMINATE','touchDependencies','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','_sharedOperations','InsertSheetMutation','evenodd','stringify','clear','parseProtocolChangeset','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleOnline','useRef','HEADER_MENU','You\x27are\x20offline.','LiveShareService','getOwnPropertyDescriptor','Fragment','data','tag','following','_status','4196970pNMAwK','1538374brUKzO','registerDependencies','createElement','mutations','OFFLINE','Injector','memberID','getConfig','text','_stopFollowing','stopPresenting','useObservable','FOLLOWING','length','_unitID','Present\x20this\x20document','_handleTerminate','IConfigService','then','dispose','RxDisposable','idle','includes','map','type','getMemberID','SetScrollOperation','You\x27re\x20following\x20the\x20presenter','DisposableCollection','BuiltInUIPart','pluginName','LiveShareIcon','OPERATION','_mountLiveShare','_presenter','complete','forEach','assign','entries','init','startFollowing','Dropdown','idSuffix','DesktopLiveShareController','unsubscribe','_beIdle','_fetchOperations','none','88hQOkCk','random','_collabSession','useState','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','set','mask','sessionStatus$','_injector','subscribe','asObservable','3543456HpTrRZ','_status$','setConfig','createInstance','get','UniverIcon','toDisposable','_handleNewChangeSets','LIVESHARE_OPERATION','You\x27re\x20not\x20following\x20the\x20presenter','UNIVER_LIVE_SHARE_PLUGIN'];_0x3ba1=function(){return _0x480d26;};return _0x3ba1();}m=ee([te(0x0,o['Inject'](E))],m);var ie=Object['defineProperty'],se=Object[_0x6be33(0x253)],ne=(_0x1a19d1,_0x4d8be3,_0x133a39)=>_0x4d8be3 in _0x1a19d1?ie(_0x1a19d1,_0x4d8be3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x133a39}):_0x1a19d1[_0x4d8be3]=_0x133a39,re=(_0x537699,_0x13d156,_0x576f10,_0x56c316)=>{const _0x5895c4=_0x6be33;for(var _0x2ba70e=_0x56c316>0x1?void 0x0:_0x56c316?se(_0x13d156,_0x576f10):_0x13d156,_0x49d266=_0x537699[_0x5895c4(0x267)]-0x1,_0x29c604;_0x49d266>=0x0;_0x49d266--)(_0x29c604=_0x537699[_0x49d266])&&(_0x2ba70e=_0x29c604(_0x2ba70e)||_0x2ba70e);return _0x2ba70e;},N=(_0x4c45a3,_0x22e876)=>(_0x4e2e03,_0x1a9bd7)=>_0x22e876(_0x4e2e03,_0x1a9bd7,_0x4c45a3),A=(_0x2f696e,_0xa563a3,_0xeacc20)=>ne(_0x2f696e,typeof _0xa563a3!=_0x6be33(0x23d)?_0xa563a3+'':_0xa563a3,_0xeacc20);const oe=_0x6be33(0x1c6);exports[_0x6be33(0x243)]=class extends o[_0x6be33(0x1d3)]{constructor(_0x42dcdb=w,_0x3e423e,_0x173e97){const _0x28573a=_0x6be33;super(),this['_config']=_0x42dcdb,this[_0x28573a(0x1b9)]=_0x3e423e,this[_0x28573a(0x20e)]=_0x173e97;const {..._0x27ed59}=o[_0x28573a(0x242)]({},w,this[_0x28573a(0x1cc)]);this[_0x28573a(0x20e)][_0x28573a(0x1be)](Q,_0x27ed59);}[_0x6be33(0x1d9)](){const _0x30d089=_0x6be33;o[_0x30d089(0x25b)](this[_0x30d089(0x1b9)],o['mergeOverrideWithDependencies']([[E],[exports[_0x30d089(0x1d4)]],[m],[exports[_0x30d089(0x1ac)]]],this[_0x30d089(0x1cc)][_0x30d089(0x1f6)])),o[_0x30d089(0x245)](this['_injector'],[[m]]);}[_0x6be33(0x23f)](){const _0x2cc9f8=_0x6be33;o['touchDependencies'](this[_0x2cc9f8(0x1b9)],[[exports['DesktopLiveShareController']]]);}},A(exports['UniverLiveSharePlugin'],_0x6be33(0x199),o[_0x6be33(0x1cb)]['UNIVER_UNKNOWN']),A(exports[_0x6be33(0x243)],_0x6be33(0x19f),oe),exports[_0x6be33(0x243)]=re([o['DependentOn'](b['UniverCollaborationClientPlugin']),N(0x1,o['Inject'](o[_0x6be33(0x25f)])),N(0x2,o[_0x6be33(0x26b)])],exports[_0x6be33(0x243)]),exports['LiveShare']=$,exports[_0x6be33(0x252)]=E,exports['LiveShareStatus']=u;
|
|
1
|
+
'use strict';const _0x5ebda9=_0x108d;(function(_0x3fda51,_0xdbbd56){const _0x4d02ba=_0x108d,_0x586fed=_0x3fda51();while(!![]){try{const _0xc2e1c6=parseInt(_0x4d02ba(0x12e))/0x1+parseInt(_0x4d02ba(0x14f))/0x2+parseInt(_0x4d02ba(0xf2))/0x3*(parseInt(_0x4d02ba(0xf7))/0x4)+-parseInt(_0x4d02ba(0xe7))/0x5*(parseInt(_0x4d02ba(0x131))/0x6)+-parseInt(_0x4d02ba(0x165))/0x7+-parseInt(_0x4d02ba(0x153))/0x8*(-parseInt(_0x4d02ba(0x14e))/0x9)+-parseInt(_0x4d02ba(0x106))/0xa*(parseInt(_0x4d02ba(0x10f))/0xb);if(_0xc2e1c6===_0xdbbd56)break;else _0x586fed['push'](_0x586fed['shift']());}catch(_0x19f6e2){_0x586fed['push'](_0x586fed['shift']());}}}(_0x47d9,0x52706));var T=Object[_0x5ebda9(0x100)],U=(_0x22a205,_0x21b735,_0x732931)=>_0x21b735 in _0x22a205?T(_0x22a205,_0x21b735,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x732931}):_0x22a205[_0x21b735]=_0x732931,_=(_0xe46a60,_0x3fe54e,_0x749b5)=>U(_0xe46a60,typeof _0x3fe54e!=_0x5ebda9(0x179)?_0x3fe54e+'':_0x3fe54e,_0x749b5);Object[_0x5ebda9(0x100)](exports,Symbol['toStringTag'],{'value':_0x5ebda9(0xd9)});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:_0x313096,..._0x3e31f6}){const _0x340b83=_0x5ebda9,{icon:_0xc7d88d,id:_0x5edb09,className:_0x497256,extend:_0x1b93ba,..._0x28f671}=_0x3e31f6,_0x40ac2b=(_0x340b83(0x133)+_0x5edb09+'\x20'+(_0x497256||''))['trim'](),_0x2ae2a6=v['useRef']('_'+H());return j(_0xc7d88d,''+_0x5edb09,{'defIds':_0xc7d88d['defIds'],'idSuffix':_0x2ae2a6[_0x340b83(0x10e)]},{'ref':_0x313096,'className':_0x40ac2b,..._0x28f671},_0x1b93ba);}function j(_0x2fc3d4,_0x4dffa4,_0x177438,_0xe5320a,_0xd2567e){const _0x452543=_0x5ebda9;return v[_0x452543(0xe0)](_0x2fc3d4[_0x452543(0x17c)],{'key':_0x4dffa4,...y(_0x2fc3d4,_0x177438,_0xd2567e),..._0xe5320a},(F(_0x2fc3d4,_0x177438)['children']||[])[_0x452543(0x152)]((_0x1231ce,_0x1b2f6c)=>j(_0x1231ce,_0x4dffa4+'-'+_0x2fc3d4[_0x452543(0x17c)]+'-'+_0x1b2f6c,_0x177438,void 0x0,_0xd2567e)));}function y(_0x33bef4,_0xbe4d32,_0x40cb7f){const _0x2feb1b=_0x5ebda9,_0x487a7d={..._0x33bef4['attrs']};_0x40cb7f!=null&&_0x40cb7f[_0x2feb1b(0x11e)]&&_0x487a7d[_0x2feb1b(0xc8)]===_0x2feb1b(0x11e)&&(_0x487a7d[_0x2feb1b(0xc8)]=_0x40cb7f[_0x2feb1b(0x11e)]),_0x33bef4[_0x2feb1b(0x17c)]===_0x2feb1b(0xf0)&&_0x487a7d['id']&&(_0x487a7d['id']=_0x487a7d['id']+_0xbe4d32['idSuffix']),Object[_0x2feb1b(0x138)](_0x487a7d)['forEach'](([_0x56fc13,_0x1c89bf])=>{const _0x2f7b2b=_0x2feb1b;_0x56fc13===_0x2f7b2b(0xf0)&&typeof _0x1c89bf==_0x2f7b2b(0xcc)&&(_0x487a7d[_0x56fc13]=_0x1c89bf[_0x2f7b2b(0x122)](/url\(#(.*)\)/,_0x2f7b2b(0x11b)+_0xbe4d32['idSuffix']+')'));});const {defIds:_0x2fd0c9}=_0xbe4d32;return!_0x2fd0c9||_0x2fd0c9[_0x2feb1b(0x196)]===0x0||(_0x33bef4[_0x2feb1b(0x17c)]===_0x2feb1b(0x109)&&_0x487a7d[_0x2feb1b(0x173)]&&(_0x487a7d['xlink:href']=_0x487a7d[_0x2feb1b(0x173)]+_0xbe4d32[_0x2feb1b(0x183)]),Object[_0x2feb1b(0x138)](_0x487a7d)[_0x2feb1b(0xeb)](([_0x3c01de,_0x5462a3])=>{const _0x4c16cc=_0x2feb1b;typeof _0x5462a3==_0x4c16cc(0xcc)&&(_0x487a7d[_0x3c01de]=_0x5462a3[_0x4c16cc(0x122)](/url\(#(.*)\)/,'url(#$1'+_0xbe4d32[_0x4c16cc(0x183)]+')'));})),_0x487a7d;}function F(_0x3e52ef,_0x58a2f8){const _0x59dd00=_0x5ebda9;var _0x5e9bd4;const {defIds:_0x258491}=_0x58a2f8;return!_0x258491||_0x258491[_0x59dd00(0x196)]===0x0?_0x3e52ef:_0x3e52ef['tag']===_0x59dd00(0x127)&&((_0x5e9bd4=_0x3e52ef[_0x59dd00(0x191)])!=null&&_0x5e9bd4[_0x59dd00(0x196)])?{..._0x3e52ef,'children':_0x3e52ef[_0x59dd00(0x191)][_0x59dd00(0x152)](_0x4d3d70=>typeof _0x4d3d70[_0x59dd00(0xe1)]['id']==_0x59dd00(0xcc)&&_0x258491&&_0x258491['includes'](_0x4d3d70['attrs']['id'])?{..._0x4d3d70,'attrs':{..._0x4d3d70[_0x59dd00(0xe1)],'id':_0x4d3d70[_0x59dd00(0xe1)]['id']+_0x58a2f8[_0x59dd00(0x183)]}}:_0x4d3d70)}:_0x3e52ef;}function H(){const _0x4e76b5=_0x5ebda9;return Math[_0x4e76b5(0x124)]()[_0x4e76b5(0x166)](0x24)[_0x4e76b5(0x13f)](0x2,0x8);}x['displayName']='UniverIcon';const V={'tag':'svg','attrs':{'xmlns':_0x5ebda9(0x129),'fill':'none','viewBox':_0x5ebda9(0x17f),'width':_0x5ebda9(0xea),'height':_0x5ebda9(0xea)},'children':[{'tag':_0x5ebda9(0xf6),'attrs':{'fill':'currentColor','d':_0x5ebda9(0x13e)}},{'tag':_0x5ebda9(0xf6),'attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x5ebda9(0x13b),'clipRule':'evenodd'}}]},R=v['forwardRef'](function(_0x19699c,_0x5a49b8){const _0x7f8259=_0x5ebda9;return v[_0x7f8259(0xe0)](x,Object['assign']({},_0x19699c,{'id':_0x7f8259(0x15c),'ref':_0x5a49b8,'icon':V}));});R['displayName']=_0x5ebda9(0x12c);class E extends o['Disposable']{constructor(){const _0x2a4d79=_0x5ebda9;super(...arguments),_(this,_0x2a4d79(0xd4),new Set()),_(this,_0x2a4d79(0x128),new Set());}[_0x5ebda9(0x11a)](_0x5c37f6){const _0x5442dc=_0x5ebda9;return this[_0x5442dc(0xd4)][_0x5442dc(0x154)](_0x5c37f6),o[_0x5442dc(0xfd)](()=>this[_0x5442dc(0xd4)][_0x5442dc(0xed)](_0x5c37f6));}[_0x5ebda9(0x189)](_0x4f651f){const _0x5df325=_0x5ebda9;return this[_0x5df325(0x128)][_0x5df325(0x154)](_0x4f651f),o[_0x5df325(0xfd)](()=>this[_0x5df325(0x128)]['delete'](_0x4f651f));}[_0x5ebda9(0xdc)](_0x475cb3){const _0x566cbc=_0x5ebda9;return this['_sharedOperations'][_0x566cbc(0x15f)](_0x475cb3);}[_0x5ebda9(0x105)](_0x1e7c98){const _0x39143d=_0x5ebda9;return Array[_0x39143d(0xec)](this['_reporters'])[_0x39143d(0x152)](_0x190684=>_0x190684(_0x1e7c98));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x440c5b,_0x56961a,_0x53a6b8,_0x5a344f)=>{for(var _0x1e2475=_0x5a344f>0x1?void 0x0:_0x5a344f?M(_0x56961a,_0x53a6b8):_0x56961a,_0x1388b8=_0x440c5b['length']-0x1,_0x4961a1;_0x1388b8>=0x0;_0x1388b8--)(_0x4961a1=_0x440c5b[_0x1388b8])&&(_0x1e2475=_0x4961a1(_0x1e2475)||_0x1e2475);return _0x1e2475;},S=(_0x2e5be5,_0xca9822)=>(_0x4e18e4,_0x42f762)=>_0xca9822(_0x4e18e4,_0x42f762,_0x2e5be5);exports[_0x5ebda9(0xf8)]=class extends o[_0x5ebda9(0xfc)]{constructor(_0xe43374,_0x2163bf,_0x5be6c2){const _0xc3af71=_0x5ebda9;super(),_(this,_0xc3af71(0x108),new Map()),(this[_0xc3af71(0x142)]=_0xe43374,this[_0xc3af71(0x113)]=_0x2163bf,this['_collabSessionService']=_0x5be6c2,this[_0xc3af71(0xf1)]());}async[_0x5ebda9(0x112)](_0xf7a880){const _0x45fe66=_0x5ebda9;return this[_0x45fe66(0x108)]['has'](_0xf7a880)||await this[_0x45fe66(0xdf)](_0xf7a880),this[_0x45fe66(0x108)][_0x45fe66(0x102)](_0xf7a880);}[_0x5ebda9(0x117)](_0x439978){const _0x4ceeb0=_0x5ebda9;var _0x1cf5f5;return(_0x1cf5f5=this[_0x4ceeb0(0x108)][_0x4ceeb0(0x102)](_0x439978))!=null?_0x1cf5f5:null;}[_0x5ebda9(0xf1)](){const _0x28ba1e=_0x5ebda9;this['_univerInstanceService'][_0x28ba1e(0xe2)](o['UniverInstanceType'][_0x28ba1e(0x10c)])[_0x28ba1e(0x14d)](I['takeUntil'](this['dispose$']))[_0x28ba1e(0x172)](async _0x3d8e9f=>{const _0x502591=_0x28ba1e,_0x228429=_0x3d8e9f[_0x502591(0x140)]();this[_0x502591(0x108)][_0x502591(0x15f)](_0x228429)||this[_0x502591(0xdf)](_0x228429);}),this['_univerInstanceService'][_0x28ba1e(0xcd)](o['UniverInstanceType'][_0x28ba1e(0x10c)])[_0x28ba1e(0x14d)](I['takeUntil'](this['dispose$']))[_0x28ba1e(0x172)](_0x51f319=>{const _0x3b9aa0=_0x28ba1e,_0x218dbc=_0x51f319[_0x3b9aa0(0x140)](),_0x1c1012=this[_0x3b9aa0(0x108)][_0x3b9aa0(0x102)](_0x218dbc);_0x1c1012==null||_0x1c1012['dispose']();});}async[_0x5ebda9(0xdf)](_0x185b38){const _0x503618=_0x5ebda9,_0x3b6d4f=await this['_collabSessionService'][_0x503618(0x114)](_0x185b38),_0x558a20=this[_0x503618(0x113)][_0x503618(0x107)](exports[_0x503618(0x158)],_0x185b38,_0x3b6d4f);return _0x558a20[_0x503618(0x119)](),this[_0x503618(0x108)]['set'](_0x185b38,_0x558a20),_0x558a20;}},exports['LiveShareController']=P([S(0x0,o[_0x5ebda9(0x10b)]),S(0x1,o['Inject'](o[_0x5ebda9(0xef)])),S(0x2,o['Inject'](b[_0x5ebda9(0x144)]))],exports['LiveShareController']);var u=(_0x21a257=>(_0x21a257[_0x5ebda9(0x103)]=_0x5ebda9(0x101),_0x21a257[_0x5ebda9(0x16b)]=_0x5ebda9(0x136),_0x21a257[_0x5ebda9(0x178)]=_0x5ebda9(0xee),_0x21a257['NOT_FOLLOWING']=_0x5ebda9(0x155),_0x21a257[_0x5ebda9(0x10a)]=_0x5ebda9(0x141),_0x21a257))(u||{});const k=_0x5ebda9(0xd2),q=0xc8;exports[_0x5ebda9(0x158)]=class extends o[_0x5ebda9(0xfc)]{constructor(_0x501301,_0x574635,_0x38bff8,_0x3d6fa8,_0xc1a4c6){const _0x158df7=_0x5ebda9;super(),_(this,_0x158df7(0x18e),new O[(_0x158df7(0x145))](_0x158df7(0x136))),_(this,'status$',this[_0x158df7(0x18e)][_0x158df7(0x111)]()),_(this,_0x158df7(0xf1),!0x1),_(this,_0x158df7(0x104),null),_(this,'_presenter',null),(this[_0x158df7(0x125)]=_0x501301,this[_0x158df7(0x194)]=_0x574635,this['_configService']=_0x38bff8,this[_0x158df7(0xf4)]=_0x3d6fa8,this['_commandService']=_0xc1a4c6);}get[_0x5ebda9(0xff)](){const _0x58c2fe=_0x5ebda9;return this[_0x58c2fe(0x18e)][_0x58c2fe(0x13a)]();}['dispose'](){const _0x53c160=_0x5ebda9;var _0x135a9b;(_0x135a9b=this['_commandDisposable'])==null||_0x135a9b[_0x53c160(0x115)](),this[_0x53c160(0x18e)][_0x53c160(0x147)](_0x53c160(0x136)),this[_0x53c160(0x18e)][_0x53c160(0x195)]();}[_0x5ebda9(0x18c)](){const _0x3d8c0c=_0x5ebda9;return this[_0x3d8c0c(0xff)];}[_0x5ebda9(0x119)](){const _0x5bfccf=_0x5ebda9;this[_0x5bfccf(0xf1)]||(this[_0x5bfccf(0xf1)]=!0x0,this[_0x5bfccf(0x194)][_0x5bfccf(0xd5)][_0x5bfccf(0x14d)](I[_0x5bfccf(0x116)](this[_0x5bfccf(0xc4)]))[_0x5bfccf(0x172)](_0x49311a=>{const _0x440b5e=_0x5bfccf;switch(_0x49311a){case b[_0x440b5e(0xdb)][_0x440b5e(0x103)]:this['_handleOffline']();break;case b[_0x440b5e(0xdb)][_0x440b5e(0xe3)]:this[_0x440b5e(0xd7)]();break;}}),this[_0x5bfccf(0x194)][_0x5bfccf(0x18a)][_0x5bfccf(0x14d)](I[_0x5bfccf(0x116)](this[_0x5bfccf(0xc4)]))[_0x5bfccf(0x172)](_0x12ba78=>{const _0x37583a=_0x5bfccf,{eventID:_0x4c0e0b}=_0x12ba78;switch(_0x4c0e0b){case d[_0x37583a(0x190)]['LIVESHARE_NEW_HOST']:this[_0x37583a(0x177)](_0x12ba78);break;case d[_0x37583a(0x190)][_0x37583a(0xe6)]:this[_0x37583a(0xde)](_0x12ba78);break;case d[_0x37583a(0x190)][_0x37583a(0x12d)]:this[_0x37583a(0x156)]();break;case d[_0x37583a(0x190)][_0x37583a(0x146)]:this['_handleNewChangeSets'](_0x12ba78);break;}}));}[_0x5ebda9(0xc9)](){const _0x3fd5d1=_0x5ebda9;this[_0x3fd5d1(0x194)][_0x3fd5d1(0x175)]({'eventID':d['CollaborationEvent'][_0x3fd5d1(0x150)],'data':{'unitID':this[_0x3fd5d1(0x125)],'userID':this[_0x3fd5d1(0x194)][_0x3fd5d1(0x181)]()}},this[_0x3fd5d1(0x125)]);}['stopPresenting'](){const _0x39c143=_0x5ebda9;this[_0x39c143(0xff)]===_0x39c143(0x141)&&(this['_status$'][_0x39c143(0x147)](_0x39c143(0x136)),this[_0x39c143(0x194)][_0x39c143(0x175)]({'eventID':d[_0x39c143(0x190)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x39c143(0x125)]}},this[_0x39c143(0x125)]));}[_0x5ebda9(0xca)](){const _0x2541f7=_0x5ebda9;this['_status']==='not-following'&&(this[_0x2541f7(0x18e)][_0x2541f7(0x147)](_0x2541f7(0xee)),this[_0x2541f7(0x11f)]());}[_0x5ebda9(0xc3)](){this['_status']==='following'&&this['_stopFollowing']();}[_0x5ebda9(0x177)](_0x1ca3f4){const _0x110ae4=_0x5ebda9,{presenter:_0x17ff24}=_0x1ca3f4['data'],_0x555e0b=this['_collabSession'][_0x110ae4(0x181)]();this[_0x110ae4(0xfb)]=_0x17ff24,_0x17ff24===_0x555e0b?(this[_0x110ae4(0xfe)](),this[_0x110ae4(0x16e)]()):this[_0x110ae4(0xff)]!==_0x110ae4(0x155)&&(this[_0x110ae4(0x126)](),this[_0x110ae4(0x11f)]());}['_fetchOperations'](){const _0xc89bd4=_0x5ebda9,_0x10315f={'eventID':d[_0xc89bd4(0x190)][_0xc89bd4(0xdd)]};this['_collabSession'][_0xc89bd4(0x175)](_0x10315f,this[_0xc89bd4(0x125)]);}[_0x5ebda9(0x156)](){const _0x49288d=_0x5ebda9;this['_presenter']=null,this[_0x49288d(0xff)]!==_0x49288d(0x141)&&this[_0x49288d(0x192)]();}[_0x5ebda9(0x13c)](_0x3768c5){const _0x3dda2e=_0x5ebda9;if(this[_0x3dda2e(0xff)]===_0x3dda2e(0xee)&&this['_presenter']===_0x3768c5[_0x3dda2e(0x16d)][_0x3dda2e(0xd1)]){const _0x430a25=d[_0x3dda2e(0x149)](_0x3768c5['data'])['mutations'][_0x3dda2e(0xc7)]()[_0x3dda2e(0x16f)](_0xca7e3e=>_0xca7e3e['id']===C[_0x3dda2e(0x186)]['id']);if(_0x430a25){const _0x5b8db6=_0x430a25[_0x3dda2e(0x171)]['unitId'],_0xe662da=_0x430a25[_0x3dda2e(0x171)][_0x3dda2e(0x184)]['id'];setTimeout(()=>{const _0x4350d8=_0x3dda2e;this[_0x4350d8(0x18d)]['executeCommand'](C[_0x4350d8(0x17a)]['id'],{'unitId':_0x5b8db6,'subUnitId':_0xe662da},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x4263d8=_0x5ebda9;this[_0x4263d8(0x18e)]['next'](_0x4263d8(0x141));const _0x3e3840=new Map(),_0x289e6f=this[_0x4263d8(0x104)]=new o[(_0x4263d8(0xd0))]();_0x289e6f[_0x4263d8(0x154)](o[_0x4263d8(0xfd)](()=>{const _0x173a75=_0x4263d8;_0x3e3840[_0x173a75(0xeb)](_0x57b94d=>_0x57b94d[_0x173a75(0x195)]()),_0x3e3840['clear']();})),_0x289e6f[_0x4263d8(0x154)](this['_commandService'][_0x4263d8(0x132)](_0x1401d1=>{const _0x648c9a=_0x4263d8;var _0x5c716c;if(_0x1401d1[_0x648c9a(0x164)]!==o[_0x648c9a(0x15a)][_0x648c9a(0x151)]||!this[_0x648c9a(0xf4)][_0x648c9a(0xdc)](_0x1401d1['id']))return;const {id:_0x404581}=_0x1401d1;let _0x2a88b3;_0x3e3840[_0x648c9a(0x15f)](_0x404581)?_0x2a88b3=_0x3e3840['get'](_0x404581):(_0x2a88b3=new O[(_0x648c9a(0x180))](),_0x3e3840['set'](_0x404581,_0x2a88b3),_0x2a88b3[_0x648c9a(0x14d)](I[_0x648c9a(0x121)]((_0x5c716c=this['_configService'][_0x648c9a(0xf5)](k))!=null?_0x5c716c:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x24097c=>{const _0x5f35b9=_0x648c9a;this[_0x5f35b9(0x194)][_0x5f35b9(0x175)]({'eventID':d[_0x5f35b9(0x190)][_0x5f35b9(0xe6)],'data':{'unitID':this[_0x5f35b9(0x125)],'operations':{[_0x24097c['id']]:{'id':_0x24097c['id'],'params':JSON[_0x5f35b9(0x11c)](_0x24097c[_0x5f35b9(0x171)])}}}},this['_unitID']);})),_0x2a88b3[_0x648c9a(0x147)](_0x1401d1);})),this[_0x4263d8(0xf4)][_0x4263d8(0x105)](this[_0x4263d8(0x125)])[_0x4263d8(0xeb)](_0x1cdc3f=>this[_0x4263d8(0x194)][_0x4263d8(0x175)]({'eventID':d[_0x4263d8(0x190)][_0x4263d8(0xe6)],'data':{'unitID':this[_0x4263d8(0x125)],'operations':{[_0x1cdc3f['id']]:{'id':_0x1cdc3f['id'],'params':JSON['stringify'](_0x1cdc3f['params'])}}}},this[_0x4263d8(0x125)]));}['_stopPresenting'](){const _0x148f9e=_0x5ebda9;var _0x32c109;this[_0x148f9e(0x18e)][_0x148f9e(0x147)](_0x148f9e(0x136)),(_0x32c109=this[_0x148f9e(0x104)])==null||_0x32c109['dispose'](),this['_commandDisposable']=null;}[_0x5ebda9(0x11f)](){const _0xf33d0=_0x5ebda9;var _0x526cc9;(_0x526cc9=this['_commandDisposable'])==null||_0x526cc9[_0xf33d0(0x115)](),this[_0xf33d0(0x18e)][_0xf33d0(0x147)]('following');}[_0x5ebda9(0x192)](){const _0x4a3f8c=_0x5ebda9;var _0x20608c;this[_0x4a3f8c(0x18e)]['next'](_0x4a3f8c(0x136)),(_0x20608c=this[_0x4a3f8c(0x104)])==null||_0x20608c['dispose'](),this[_0x4a3f8c(0x104)]=null;}[_0x5ebda9(0xfe)](){const _0x21b1f2=_0x5ebda9;var _0x36979d;this[_0x21b1f2(0x18e)][_0x21b1f2(0x147)](_0x21b1f2(0x155)),(_0x36979d=this[_0x21b1f2(0x104)])==null||_0x36979d[_0x21b1f2(0x115)]();}[_0x5ebda9(0xde)](_0x2bc0e3){const _0x3be5e1=_0x5ebda9;if([_0x3be5e1(0x141),'not-following',_0x3be5e1(0x101)][_0x3be5e1(0x176)](this[_0x3be5e1(0xff)])||!_0x2bc0e3[_0x3be5e1(0x16d)][_0x3be5e1(0x148)]||_0x2bc0e3[_0x3be5e1(0x16d)][_0x3be5e1(0x148)]===this[_0x3be5e1(0x194)]['getMemberID']())return;this[_0x3be5e1(0xff)]===_0x3be5e1(0x136)&&this[_0x3be5e1(0x11f)]();const _0x63ec75=_0x2bc0e3[_0x3be5e1(0x16d)][_0x3be5e1(0xd3)];Object[_0x3be5e1(0x143)](_0x63ec75)[_0x3be5e1(0xeb)](_0x2618a6=>{const _0x5df6e4=_0x3be5e1;this[_0x5df6e4(0x18d)][_0x5df6e4(0xe5)](_0x2618a6['id'],_0x2618a6[_0x5df6e4(0x171)]?JSON['parse'](_0x2618a6[_0x5df6e4(0x171)]):null,{'fromCollab':!0x0});});}[_0x5ebda9(0x185)](){const _0xb79ab6=_0x5ebda9;var _0x1a2b34;this[_0xb79ab6(0x18e)]['next'](_0xb79ab6(0x101)),(_0x1a2b34=this['_commandDisposable'])==null||_0x1a2b34[_0xb79ab6(0x115)]();}[_0x5ebda9(0xd7)](){const _0x1b4dd2=_0x5ebda9;this[_0x1b4dd2(0x18e)][_0x1b4dd2(0x147)](_0x1b4dd2(0x136)),this[_0x1b4dd2(0x12b)]();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0x5ebda9(0x14b)]),S(0x3,o[_0x5ebda9(0xcf)](E)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function _0x108d(_0x1f8f69,_0x23af53){_0x1f8f69=_0x1f8f69-0xc1;const _0x47d982=_0x47d9();let _0x108dbc=_0x47d982[_0x1f8f69];return _0x108dbc;}function $(){const _0x30a48c=_0x5ebda9,_0x9a2bfc=p['useDependency'](exports[_0x30a48c(0xf8)]),_0x1b1a72=p['useDependency'](o[_0x30a48c(0x10b)]),_0x43478b=p[_0x30a48c(0x17e)](()=>_0x1b1a72['getCurrentTypeOfUnit$'](o[_0x30a48c(0x110)][_0x30a48c(0x10c)]),void 0x0,!0x1,[]),[_0xa0c3b1,_0x38aee3]=v[_0x30a48c(0x123)](null),[_0xb6997d,_0x3540f3]=v[_0x30a48c(0x123)](u[_0x30a48c(0x16b)]),_0x2a5704=v[_0x30a48c(0x187)](null);return v[_0x30a48c(0x188)](()=>(_0x43478b&&_0x9a2bfc[_0x30a48c(0x112)](_0x43478b['getUnitId']())[_0x30a48c(0xcb)](_0x58fd12=>{const _0x3cd9de=_0x30a48c;_0x38aee3(_0x58fd12),_0x2a5704[_0x3cd9de(0x10e)]=_0x58fd12[_0x3cd9de(0xe4)][_0x3cd9de(0x172)](_0x15e06f=>{_0x3540f3(_0x15e06f);});}),()=>{const _0x51ef43=_0x30a48c;var _0x267af5;(_0x267af5=_0x2a5704['current'])==null||_0x267af5['unsubscribe'](),_0x2a5704[_0x51ef43(0x10e)]=null;}),[_0x43478b,_0x9a2bfc]),_0xa0c3b1?l['jsx'](f[_0x30a48c(0x167)],{'align':_0x30a48c(0x16a),'disabled':_0xb6997d===u[_0x30a48c(0x103)],'className':_0x30a48c(0x120),'overlay':l[_0x30a48c(0xf9)](W,{'status':_0xb6997d,'coordinator':_0xa0c3b1}),'children':l[_0x30a48c(0xf9)](_0x30a48c(0xfa),{'className':f[_0x30a48c(0x137)](_0x30a48c(0x13d),{'univer-cursor-not-allowed':_0xb6997d===u[_0x30a48c(0x103)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xb6997d!==u[_0x30a48c(0x103)]}),'type':_0x30a48c(0xfa),'children':l[_0x30a48c(0xf9)](R,{'className':_0x30a48c(0x17b)})})}):null;}function W(_0x59b992){const _0x25aea1=_0x5ebda9,{status:_0x429252,coordinator:_0x3e42e9}=_0x59b992;switch(_0x429252){case u['IDLE']:return l[_0x25aea1(0xf9)](G,{'coordinator':_0x3e42e9});case u[_0x25aea1(0x178)]:return l['jsx'](B,{'coordinator':_0x3e42e9});case u[_0x25aea1(0x134)]:return l[_0x25aea1(0xf9)](Y,{'coordinator':_0x3e42e9});case u[_0x25aea1(0x103)]:return l[_0x25aea1(0xf9)](J,{});case u['PRESENTING']:return l[_0x25aea1(0xf9)](Z,{'coordinator':_0x3e42e9});default:return null;}}function G(_0x16eb9a){const _0xe23b41=_0x5ebda9,{coordinator:_0x53cc16}=_0x16eb9a;return l[_0xe23b41(0xc6)](l['Fragment'],{'children':[l[_0xe23b41(0xf9)](_0xe23b41(0x160),{'className':_0xe23b41(0x174),'children':_0xe23b41(0x12f)}),l[_0xe23b41(0xf9)](f[_0xe23b41(0x18f)],{'onClick':()=>_0x53cc16['tryStartPresenting'](),'children':'Start'})]});}function B(_0x1c3645){const _0x53761a=_0x5ebda9,{coordinator:_0xd0af3b}=_0x1c3645;return l['jsxs'](l[_0x53761a(0x159)],{'children':[l['jsx'](_0x53761a(0x160),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x53761a(0x170)}),l['jsx'](f['Button'],{'onClick':()=>_0xd0af3b['stopFollowing'](),'children':'Stop\x20following'})]});}function Y(_0x373a4c){const _0x122be1=_0x5ebda9,{coordinator:_0x365efa}=_0x373a4c;return l[_0x122be1(0xc6)](l[_0x122be1(0x159)],{'children':[l[_0x122be1(0xf9)](_0x122be1(0x160),{'className':_0x122be1(0x174),'children':_0x122be1(0x161)}),l['jsx'](f[_0x122be1(0x18f)],{'variant':_0x122be1(0xd8),'onClick':()=>_0x365efa[_0x122be1(0xca)](),'children':_0x122be1(0xe8)})]});}function Z(_0x4159ae){const _0x1b7d89=_0x5ebda9,{coordinator:_0x5d7c87}=_0x4159ae;return l[_0x1b7d89(0xc6)](l[_0x1b7d89(0x159)],{'children':[l[_0x1b7d89(0xf9)](_0x1b7d89(0x160),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x1b7d89(0xf9)](f[_0x1b7d89(0x18f)],{'variant':'default','onClick':()=>_0x5d7c87['stopPresenting'](),'children':_0x1b7d89(0x135)})]});}function J(){const _0x4e267b=_0x5ebda9;return l[_0x4e267b(0xf9)](l['Fragment'],{'children':'You\x27are\x20offline.'});}var K=Object[_0x5ebda9(0x169)],z=(_0x55a8c0,_0x42104f,_0x239243,_0x393cd1)=>{const _0x349e1d=_0x5ebda9;for(var _0x4cf846=_0x393cd1>0x1?void 0x0:_0x393cd1?K(_0x42104f,_0x239243):_0x42104f,_0x39d3e7=_0x55a8c0[_0x349e1d(0x196)]-0x1,_0x32caaa;_0x39d3e7>=0x0;_0x39d3e7--)(_0x32caaa=_0x55a8c0[_0x39d3e7])&&(_0x4cf846=_0x32caaa(_0x4cf846)||_0x4cf846);return _0x4cf846;},L=(_0x11bb94,_0x385b59)=>(_0x4178ae,_0x1896ae)=>_0x385b59(_0x4178ae,_0x1896ae,_0x11bb94);exports[_0x5ebda9(0xce)]=class extends o['Disposable']{constructor(_0x5c48c6,_0x49cad2){const _0x14e9ca=_0x5ebda9;super(),this[_0x14e9ca(0x113)]=_0x5c48c6,this[_0x14e9ca(0x14c)]=_0x49cad2,this[_0x14e9ca(0xf3)]();}['_mountLiveShare'](){const _0x1cbd30=_0x5ebda9;this[_0x1cbd30(0xda)](this[_0x1cbd30(0x14c)][_0x1cbd30(0xe9)](p[_0x1cbd30(0x130)][_0x1cbd30(0x15e)],()=>p['connectInjector']($,this[_0x1cbd30(0x113)])));}},exports['DesktopLiveShareController']=z([L(0x0,o[_0x5ebda9(0xcf)](o[_0x5ebda9(0xef)])),L(0x1,p['IUIPartsService'])],exports[_0x5ebda9(0xce)]);const Q=_0x5ebda9(0xc5),w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0x599362,_0x209ec2,_0x5f01bb,_0x3a1efe)=>{for(var _0x369065=_0x3a1efe>0x1?void 0x0:_0x3a1efe?X(_0x209ec2,_0x5f01bb):_0x209ec2,_0xd2033e=_0x599362['length']-0x1,_0x27ea81;_0xd2033e>=0x0;_0xd2033e--)(_0x27ea81=_0x599362[_0xd2033e])&&(_0x369065=_0x27ea81(_0x369065)||_0x369065);return _0x369065;},te=(_0x1c60f9,_0x85863a)=>(_0x2392a6,_0x4ae57e)=>_0x85863a(_0x2392a6,_0x4ae57e,_0x1c60f9);let m=class extends o[_0x5ebda9(0x15b)]{constructor(_0x1b67fb){const _0x14493b=_0x5ebda9;super(),this['_liveShareService']=_0x1b67fb,this[_0x14493b(0xf1)]();}[_0x5ebda9(0xf1)](){const _0x51fc7a=_0x5ebda9;[D[_0x51fc7a(0x157)]['id'],D[_0x51fc7a(0x15d)]['id'],C[_0x51fc7a(0x17a)]['id']][_0x51fc7a(0xeb)](_0x109914=>{const _0x3d64ab=_0x51fc7a;this[_0x3d64ab(0xda)](this[_0x3d64ab(0xf4)][_0x3d64ab(0x11a)](_0x109914));});}};m=ee([te(0x0,o[_0x5ebda9(0xcf)](E))],m);var ie=Object[_0x5ebda9(0x100)],se=Object[_0x5ebda9(0x169)],ne=(_0x4e6736,_0x468505,_0x17937b)=>_0x468505 in _0x4e6736?ie(_0x4e6736,_0x468505,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x17937b}):_0x4e6736[_0x468505]=_0x17937b,re=(_0x1a45f5,_0xa245de,_0x29d938,_0x27214a)=>{const _0x5cce3f=_0x5ebda9;for(var _0x4e16c4=_0x27214a>0x1?void 0x0:_0x27214a?se(_0xa245de,_0x29d938):_0xa245de,_0x2700f7=_0x1a45f5[_0x5cce3f(0x196)]-0x1,_0x4c2805;_0x2700f7>=0x0;_0x2700f7--)(_0x4c2805=_0x1a45f5[_0x2700f7])&&(_0x4e16c4=_0x4c2805(_0x4e16c4)||_0x4e16c4);return _0x4e16c4;},N=(_0x13542e,_0x1f61bd)=>(_0x3e1ceb,_0x4a11a8)=>_0x1f61bd(_0x3e1ceb,_0x4a11a8,_0x13542e),A=(_0x4dd5f6,_0x5d80bf,_0x12419b)=>ne(_0x4dd5f6,typeof _0x5d80bf!=_0x5ebda9(0x179)?_0x5d80bf+'':_0x5d80bf,_0x12419b);const oe=_0x5ebda9(0x17d);function _0x47d9(){const _0xe77b66=['params','subscribe','xlink:href','univer-mb-3\x20univer-w-full\x20univer-text-sm','send','includes','_handleNewHost','FOLLOWING','symbol','SetWorksheetActiveOperation','univer-size-4','tag','UNIVER_LIVE_SHARE_PLUGIN','useObservable','0\x200\x2017\x2017','Subject','getMemberID','_configService','idSuffix','sheet','_handleOffline','InsertSheetMutation','useRef','useEffect','registerInitialStateReporter','event$','pluginName','getStatus','_commandService','_status$','Button','CollaborationEvent','children','_beIdle','merge','_collabSession','complete','length','DependentOn','setConfig','stopFollowing','dispose$','live-share.config','jsxs','reverse','fill','tryStartPresenting','startFollowing','then','string','getTypeOfUnitDisposed$','DesktopLiveShareController','Inject','DisposableCollection','memberID','SAME_OPERATION_SHARE_INTERVAL','operations','_sharedOperations','sessionStatus$','UniverCollaborationClientPlugin','_handleOnline','text','Module','disposeWithMe','SessionStatus','shouldShareOperation','LIVESHARE_FETCH_OPERATIONS','_handleOperation','_startLiveShareCoordinator','createElement','attrs','getTypeOfUnitAdded$','ONLINE','status$','executeCommand','LIVESHARE_OPERATION','125cJvUnr','Start\x20following','registerComponent','1em','forEach','from','delete','following','Injector','mask','_init','3yEbKHL','_mountLiveShare','_liveShareService','getConfig','path','193220qGMQDH','LiveShareController','jsx','button','_presenter','RxDisposable','toDisposable','_stopFollowing','_status','defineProperty','offline','get','OFFLINE','_commandDisposable','getInitialStates','2360vEmbMR','createInstance','_entities','use','PRESENTING','IUniverInstanceService','UNIVER_SHEET','LiveShare','current','1034VRaVnr','UniverInstanceType','asObservable','getLiveShareCoordinator','_injector','requireSession','dispose','takeUntil','getLiveShareCoordinatorSync','Plugin','init','registerSharedOperation','url(#$1','stringify','onRendered','colorChannel1','_startFollowing','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','throttleTime','replace','useState','random','_unitID','_stopPresenting','defs','_reporters','http://www.w3.org/2000/svg','mergeOverrideWithDependencies','_fetchOperations','LiveShareIcon','LIVESHARE_TERMINATE','448169wfdIew','Present\x20this\x20document','BuiltInUIPart','141888IACMfg','onCommandExecuted','univerjs-icon\x20univerjs-icon-','NOT_FOLLOWING','Stop\x20presenting','idle','clsx','entries','LiveShareService','getValue','evenodd','_handleNewChangeSets','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','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','substring','getUnitId','presenting','_univerInstanceService','values','CollaborationSessionService','BehaviorSubject','NEW_CHANGESETS','next','presenter','parseProtocolChangeset','LiveShareStatus','IConfigService','_uiPartsService','pipe','3497652EKkdkH','636516wdLDMk','LIVESHARE_REQUEST_HOST','OPERATION','map','8sAHsWM','add','not-following','_handleTerminate','SetZoomRatioOperation','LiveShareCoordinator','Fragment','CommandType','Disposable','live-share-icon','SetScrollOperation','HEADER_MENU','has','div','You\x27re\x20not\x20following\x20the\x20presenter','_config','registerDependencies','type','1766142rOfkOQ','toString','Dropdown','UniverLiveSharePlugin','getOwnPropertyDescriptor','end','IDLE','touchDependencies','data','_startPresenting','find','You\x27re\x20following\x20the\x20presenter'];_0x47d9=function(){return _0xe77b66;};return _0x47d9();}exports[_0x5ebda9(0x168)]=class extends o[_0x5ebda9(0x118)]{constructor(_0xb5abe0=w,_0x3fdf6e,_0x30a4de){const _0xbecc53=_0x5ebda9;super(),this['_config']=_0xb5abe0,this['_injector']=_0x3fdf6e,this[_0xbecc53(0x182)]=_0x30a4de;const {..._0x5e7264}=o[_0xbecc53(0x193)]({},w,this['_config']);this['_configService'][_0xbecc53(0xc2)](Q,_0x5e7264);}['onStarting'](){const _0x32687f=_0x5ebda9;o[_0x32687f(0x163)](this[_0x32687f(0x113)],o[_0x32687f(0x12a)]([[E],[exports['LiveShareController']],[m],[exports[_0x32687f(0xce)]]],this[_0x32687f(0x162)]['override'])),o[_0x32687f(0x16c)](this[_0x32687f(0x113)],[[m]]);}[_0x5ebda9(0x11d)](){const _0x48e6ac=_0x5ebda9;o['touchDependencies'](this[_0x48e6ac(0x113)],[[exports['DesktopLiveShareController']]]);}},A(exports[_0x5ebda9(0x168)],'type',o[_0x5ebda9(0x110)]['UNIVER_UNKNOWN']),A(exports[_0x5ebda9(0x168)],_0x5ebda9(0x18b),oe),exports[_0x5ebda9(0x168)]=re([o[_0x5ebda9(0xc1)](b[_0x5ebda9(0xd6)]),N(0x1,o[_0x5ebda9(0xcf)](o[_0x5ebda9(0xef)])),N(0x2,o['IConfigService'])],exports[_0x5ebda9(0x168)]),exports[_0x5ebda9(0x10d)]=$,exports[_0x5ebda9(0x139)]=E,exports[_0x5ebda9(0x14a)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x30a585=_0x1a2f;(function(_0x2ba1d7,_0x42ae8e){const _0x2cf796=_0x1a2f,_0x176f68=_0x2ba1d7();while(!![]){try{const _0x41a298=parseInt(_0x2cf796(0x1d5))/0x1*(parseInt(_0x2cf796(0x1c5))/0x2)+-parseInt(_0x2cf796(0x1d4))/0x3+-parseInt(_0x2cf796(0x1da))/0x4+-parseInt(_0x2cf796(0x1ca))/0x5+parseInt(_0x2cf796(0x1cf))/0x6+parseInt(_0x2cf796(0x1c7))/0x7*(parseInt(_0x2cf796(0x1be))/0x8)+parseInt(_0x2cf796(0x1d2))/0x9;if(_0x41a298===_0x42ae8e)break;else _0x176f68['push'](_0x176f68['shift']());}catch(_0x4e5b26){_0x176f68['push'](_0x176f68['shift']());}}}(_0xa7aa,0xe6b2e));import{LiveShareController as _0x1b0e5a,LiveShareStatus as _0x3c5ca6}from'@univerjs-pro/live-share';function _0x1a2f(_0x48b678,_0x40a9ec){_0x48b678=_0x48b678-0x1be;const _0xa7aa98=_0xa7aa();let _0x1a2f84=_0xa7aa98[_0x48b678];return _0x1a2f84;}import{IRenderManagerService as _0xe3c4aa}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x42229a}from'@univerjs/sheets';import{SetScrollOperation as _0xad1144}from'@univerjs/sheets-ui';import{FRange as _0x34e1c5}from'@univerjs/sheets/facade';import{FUniver as _0x51335c,FEnum as _0x53e57c}from'@univerjs/core/facade';class I extends _0x34e1c5{[_0x30a585(0x1dc)](_0x25b83b,_0x7dcd5e,_0x45f3ac,_0x3acdd8,_0x231b74){const _0x1fdcab=_0x30a585,_0x15ab42=_0x25b83b[_0x1fdcab(0x1c0)](_0x1b0e5a),_0x4d7876=_0x25b83b[_0x1fdcab(0x1c0)](_0xe3c4aa),_0x390b69=_0x7dcd5e[_0x1fdcab(0x1c6)](),_0x5c01dd=_0x7dcd5e[_0x1fdcab(0x1cb)](),_0x402fa4=_0x15ab42[_0x1fdcab(0x1c2)](_0x390b69);(_0x402fa4==null?void 0x0:_0x402fa4['getStatus']())!==_0x3c5ca6[_0x1fdcab(0x1ce)]||(_0x45f3ac[_0x1fdcab(0x1cd)]()!==_0x5c01dd['getSheetId']()&&this[_0x1fdcab(0x1bf)][_0x1fdcab(0x1d8)](_0x42229a['id'],{'unitId':_0x390b69,'subUnitId':_0x45f3ac[_0x1fdcab(0x1cd)]()}),!_0x4d7876[_0x1fdcab(0x1c1)](_0x390b69))||_0x231b74[_0x1fdcab(0x1c9)](_0xad1144['id'],{'unitId':_0x7dcd5e[_0x1fdcab(0x1c6)](),'sheetId':_0x45f3ac['getSheetId'](),'sheetViewStartRow':_0x3acdd8[_0x1fdcab(0x1c4)],'sheetViewStartColumn':_0x3acdd8['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x34e1c5[_0x30a585(0x1d1)](I);function _0xa7aa(){const _0x32722d=['getLiveShareCoordinatorSync','tryStartPresenting','startRow','200958Uzmbin','getUnitId','1496299FJlsJD','getActiveWorkbook','syncExecuteCommand','3460205TcoOsc','getActiveSheet','getId','getSheetId','PRESENTING','2767572vyAkgi','startFollowing','extend','17955369NutIBc','IDLE','5666760MGgkOa','2uvvuSW','getLiveShareStatus','No\x20active\x20workbook\x20found.','executeCommand','stopFollowing','2510628YxSyiB','_injector','_initialize','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','56QVydMm','_commandService','get','getRenderById'];_0xa7aa=function(){return _0x32722d;};return _0xa7aa();}class m extends _0x51335c{[_0x30a585(0x1d6)](){const _0x3fa364=_0x30a585;var _0x266652,_0x298c5a;const _0x2fdf19=this['_injector'][_0x3fa364(0x1c0)](_0x1b0e5a),_0x5ef7ba=(_0x266652=this['getActiveWorkbook']())==null?void 0x0:_0x266652[_0x3fa364(0x1cc)]();if(!_0x5ef7ba)throw new Error(_0x3fa364(0x1d7));const _0x3ff71b=_0x2fdf19[_0x3fa364(0x1c2)](_0x5ef7ba);return(_0x298c5a=_0x3ff71b==null?void 0x0:_0x3ff71b['getStatus']())!=null?_0x298c5a:_0x3c5ca6[_0x3fa364(0x1d3)];}[_0x30a585(0x1d0)](){const _0x50fa10=_0x30a585;var _0x1932b6;const _0x55edcd=this[_0x50fa10(0x1db)][_0x50fa10(0x1c0)](_0x1b0e5a),_0xbaf4e4=(_0x1932b6=this[_0x50fa10(0x1c8)]())==null?void 0x0:_0x1932b6[_0x50fa10(0x1cc)]();if(!_0xbaf4e4)throw new Error(_0x50fa10(0x1d7));const _0xed849f=_0x55edcd[_0x50fa10(0x1c2)](_0xbaf4e4);if(!_0xed849f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xed849f[_0x50fa10(0x1d0)]();}[_0x30a585(0x1d9)](){const _0x1ba9d9=_0x30a585;var _0x4a8691;const _0x3d0350=this[_0x1ba9d9(0x1db)][_0x1ba9d9(0x1c0)](_0x1b0e5a),_0x401c6f=(_0x4a8691=this[_0x1ba9d9(0x1c8)]())==null?void 0x0:_0x4a8691[_0x1ba9d9(0x1cc)]();if(!_0x401c6f)throw new Error(_0x1ba9d9(0x1d7));const _0xf4ff0d=_0x3d0350[_0x1ba9d9(0x1c2)](_0x401c6f);if(!_0xf4ff0d)throw new Error(_0x1ba9d9(0x1dd));_0xf4ff0d['stopFollowing']();}['startPresenting'](){const _0x1208e4=_0x30a585;var _0x34fb8d;const _0x508514=this[_0x1208e4(0x1db)][_0x1208e4(0x1c0)](_0x1b0e5a),_0xb16a14=(_0x34fb8d=this[_0x1208e4(0x1c8)]())==null?void 0x0:_0x34fb8d['getId']();if(!_0xb16a14)throw new Error('No\x20active\x20workbook\x20found.');const _0x47955f=_0x508514[_0x1208e4(0x1c2)](_0xb16a14);if(!_0x47955f)throw new Error(_0x1208e4(0x1dd));_0x47955f[_0x1208e4(0x1c3)]();}['stopPresenting'](){const _0x3cac34=_0x30a585;var _0x2227da;const _0x456943=this[_0x3cac34(0x1db)][_0x3cac34(0x1c0)](_0x1b0e5a),_0x4bafad=(_0x2227da=this[_0x3cac34(0x1c8)]())==null?void 0x0:_0x2227da[_0x3cac34(0x1cc)]();if(!_0x4bafad)throw new Error('No\x20active\x20workbook\x20found.');const _0x170742=_0x456943[_0x3cac34(0x1c2)](_0x4bafad);if(!_0x170742)throw new Error(_0x3cac34(0x1dd));_0x170742['stopPresenting']();}}_0x51335c[_0x30a585(0x1d1)](m);class C extends _0x53e57c{get['LiveShareStatusEnum'](){return _0x3c5ca6;}}_0x53e57c[_0x30a585(0x1d1)](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x40438e=_0x47cc;(function(_0x499a68,_0xa7184a){const _0x303d3a=_0x47cc,_0x466f16=_0x499a68();while(!![]){try{const _0x58db09=parseInt(_0x303d3a(0x1a3))/0x1+parseInt(_0x303d3a(0x15e))/0x2*(-parseInt(_0x303d3a(0x17c))/0x3)+-parseInt(_0x303d3a(0x1a6))/0x4+-parseInt(_0x303d3a(0x171))/0x5*(-parseInt(_0x303d3a(0x184))/0x6)+parseInt(_0x303d3a(0x115))/0x7*(-parseInt(_0x303d3a(0x12d))/0x8)+parseInt(_0x303d3a(0x17a))/0x9*(parseInt(_0x303d3a(0x135))/0xa)+-parseInt(_0x303d3a(0x11b))/0xb*(-parseInt(_0x303d3a(0x148))/0xc);if(_0x58db09===_0xa7184a)break;else _0x466f16['push'](_0x466f16['shift']());}catch(_0x2b506f){_0x466f16['push'](_0x466f16['shift']());}}}(_0x47f9,0x215dc));var J=Object[_0x40438e(0x190)],K=(_0x32c42a,_0x2ee3b7,_0x1301ae)=>_0x2ee3b7 in _0x32c42a?J(_0x32c42a,_0x2ee3b7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1301ae}):_0x32c42a[_0x2ee3b7]=_0x1301ae,u=(_0x4a2c88,_0x53cecf,_0x4dd82c)=>K(_0x4a2c88,typeof _0x53cecf!=_0x40438e(0x14d)?_0x53cecf+'':_0x53cecf,_0x4dd82c);import{Disposable as _0x142380,toDisposable as _0x162835,IUniverInstanceService as _0x5a3693,Inject as _0x515096,Injector as _0x2eaef8,IConfigService as _0x18693d,ICommandService as _0x1b75b0,RxDisposable as _0x470f4e,UniverInstanceType as _0x24a06b,DisposableCollection as _0x557a96,CommandType as _0x54eed1,DependentOn as _0x120121,Plugin as _0x277eca,merge as _0x3187af,registerDependencies as _0x260ef6,mergeOverrideWithDependencies as _0x26d4c0,touchDependencies as _0x154532}from'@univerjs/core';import{useDependency as _0x54980e,useObservable as _0x2371ea,IUIPartsService as _0x13ef6b,BuiltInUIPart as _0x5427fd,connectInjector as _0x266a27}from'@univerjs/ui';import{jsx as _0x282781,jsxs as _0x1a3be5,Fragment as _0x2d1d5d}from'react/jsx-runtime';import{Dropdown as _0x45eb67,clsx as _0x2be6db,Button as _0x18eae9}from'@univerjs/design';import{useRef as _0x4f23fd,createElement as _0x4f1371,forwardRef as _0x905103,useState as _0x89ec1e,useEffect as _0x33dad}from'react';import{CollaborationEvent as _0x5527b9,parseProtocolChangeset as _0x14e3f7}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3bde2f,SessionStatus as _0x1a4938,UniverCollaborationClientPlugin as _0xc0232f}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x35c6e2,SetWorksheetActiveOperation as _0xcbc908}from'@univerjs/sheets';import{BehaviorSubject as _0x4119dd,Subject as _0x26010b}from'rxjs';import{takeUntil as _0x505794,throttleTime as _0x55e0fd}from'rxjs/operators';import{SetZoomRatioOperation as _0x1bfcb6,SetScrollOperation as _0x15a66d}from'@univerjs/sheets-ui';function _0x47cc(_0x2d80c3,_0x548e20){_0x2d80c3=_0x2d80c3-0x107;const _0x47f9b5=_0x47f9();let _0x47ccba=_0x47f9b5[_0x2d80c3];return _0x47ccba;}function k({ref:_0x4afa15,..._0x2c761a}){const _0x118ac2=_0x40438e,{icon:_0xa58156,id:_0x1c051b,className:_0x266745,extend:_0x3059ae,..._0x15b762}=_0x2c761a,_0x262b21=(_0x118ac2(0x168)+_0x1c051b+'\x20'+(_0x266745||''))[_0x118ac2(0x149)](),_0x3b8315=_0x4f23fd('_'+Oe());return G(_0xa58156,''+_0x1c051b,{'defIds':_0xa58156['defIds'],'idSuffix':_0x3b8315[_0x118ac2(0x1a1)]},{'ref':_0x4afa15,'className':_0x262b21,..._0x15b762},_0x3059ae);}function G(_0x173525,_0x1df7b1,_0x2f8904,_0x192443,_0x49dcc0){const _0x2bc951=_0x40438e;return _0x4f1371(_0x173525['tag'],{'key':_0x1df7b1,...be(_0x173525,_0x2f8904,_0x49dcc0),..._0x192443},(Ee(_0x173525,_0x2f8904)['children']||[])['map']((_0x3a1c6b,_0x424cde)=>G(_0x3a1c6b,_0x1df7b1+'-'+_0x173525[_0x2bc951(0x18f)]+'-'+_0x424cde,_0x2f8904,void 0x0,_0x49dcc0)));}function be(_0xd1fef3,_0x4cd31e,_0x58b7b7){const _0x4778d1=_0x40438e,_0x59adb9={..._0xd1fef3[_0x4778d1(0x144)]};_0x58b7b7!=null&&_0x58b7b7[_0x4778d1(0x19e)]&&_0x59adb9['fill']===_0x4778d1(0x19e)&&(_0x59adb9[_0x4778d1(0x152)]=_0x58b7b7[_0x4778d1(0x19e)]),_0xd1fef3[_0x4778d1(0x18f)]===_0x4778d1(0x127)&&_0x59adb9['id']&&(_0x59adb9['id']=_0x59adb9['id']+_0x4cd31e[_0x4778d1(0x18c)]),Object[_0x4778d1(0x10e)](_0x59adb9)[_0x4778d1(0x160)](([_0x565e85,_0x20a09e])=>{const _0xf6759f=_0x4778d1;_0x565e85===_0xf6759f(0x127)&&typeof _0x20a09e==_0xf6759f(0x155)&&(_0x59adb9[_0x565e85]=_0x20a09e[_0xf6759f(0x12f)](/url\(#(.*)\)/,'url(#$1'+_0x4cd31e['idSuffix']+')'));});const {defIds:_0xb065cc}=_0x4cd31e;return!_0xb065cc||_0xb065cc[_0x4778d1(0x188)]===0x0||(_0xd1fef3['tag']===_0x4778d1(0x15c)&&_0x59adb9['xlink:href']&&(_0x59adb9[_0x4778d1(0x12a)]=_0x59adb9[_0x4778d1(0x12a)]+_0x4cd31e['idSuffix']),Object['entries'](_0x59adb9)['forEach'](([_0xc0478b,_0x508f86])=>{const _0x4fda44=_0x4778d1;typeof _0x508f86=='string'&&(_0x59adb9[_0xc0478b]=_0x508f86[_0x4fda44(0x12f)](/url\(#(.*)\)/,_0x4fda44(0x113)+_0x4cd31e[_0x4fda44(0x18c)]+')'));})),_0x59adb9;}function Ee(_0xd16053,_0x49d430){const _0x1ce328=_0x40438e;var _0x6e0431;const {defIds:_0x3ce7bf}=_0x49d430;return!_0x3ce7bf||_0x3ce7bf['length']===0x0?_0xd16053:_0xd16053[_0x1ce328(0x18f)]===_0x1ce328(0x124)&&((_0x6e0431=_0xd16053[_0x1ce328(0x164)])!=null&&_0x6e0431[_0x1ce328(0x188)])?{..._0xd16053,'children':_0xd16053[_0x1ce328(0x164)][_0x1ce328(0x143)](_0x54efaf=>typeof _0x54efaf[_0x1ce328(0x144)]['id']=='string'&&_0x3ce7bf&&_0x3ce7bf[_0x1ce328(0x153)](_0x54efaf[_0x1ce328(0x144)]['id'])?{..._0x54efaf,'attrs':{..._0x54efaf[_0x1ce328(0x144)],'id':_0x54efaf[_0x1ce328(0x144)]['id']+_0x49d430[_0x1ce328(0x18c)]}}:_0x54efaf)}:_0xd16053;}function Oe(){const _0x35357b=_0x40438e;return Math['random']()[_0x35357b(0x13f)](0x24)[_0x35357b(0x192)](0x2,0x8);}k['displayName']=_0x40438e(0x142);const we={'tag':_0x40438e(0x176),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x40438e(0x110),'width':_0x40438e(0x151),'height':'1em'},'children':[{'tag':_0x40438e(0x14b),'attrs':{'fill':_0x40438e(0x134),'d':_0x40438e(0x131)}},{'tag':'path','attrs':{'fill':_0x40438e(0x134),'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':_0x40438e(0x11a),'clipRule':_0x40438e(0x11a)}}]},W=_0x905103(function(_0x481ac7,_0x879358){const _0x2777c2=_0x40438e;return _0x4f1371(k,Object[_0x2777c2(0x19d)]({},_0x481ac7,{'id':_0x2777c2(0x167),'ref':_0x879358,'icon':we}));});W[_0x40438e(0x14a)]='LiveShareIcon';class L extends _0x142380{constructor(){const _0x53d58f=_0x40438e;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x53d58f(0x186),new Set());}[_0x40438e(0x10b)](_0x23f087){const _0x1ad192=_0x40438e;return this[_0x1ad192(0x18d)][_0x1ad192(0x165)](_0x23f087),_0x162835(()=>this[_0x1ad192(0x18d)][_0x1ad192(0x12c)](_0x23f087));}[_0x40438e(0x150)](_0x1fb63b){const _0x430a54=_0x40438e;return this[_0x430a54(0x186)][_0x430a54(0x165)](_0x1fb63b),_0x162835(()=>this[_0x430a54(0x186)]['delete'](_0x1fb63b));}[_0x40438e(0x139)](_0x59d2b2){const _0x3516cb=_0x40438e;return this[_0x3516cb(0x18d)][_0x3516cb(0x1a5)](_0x59d2b2);}[_0x40438e(0x197)](_0x5f28ea){const _0x5f24e7=_0x40438e;return Array['from'](this['_reporters'])[_0x5f24e7(0x143)](_0x36eb84=>_0x36eb84(_0x5f28ea));}}function _0x47f9(){const _0x4888e2=['stringify','Start','dispose$','pipe','startFollowing','event$','_collabSessionService','registerSharedOperation','HEADER_MENU','offline','entries','LIVESHARE_FETCH_OPERATIONS','0\x200\x2017\x2017','_configService','_handleNewHost','url(#$1','_init','3626dfOUwN','UNIVER_UNKNOWN','Start\x20following','_entities','FOLLOWING','evenodd','33KlJYZN','getMemberID','OFFLINE','stopPresenting','tryStartPresenting','_handleTerminate','dispose','_startLiveShareCoordinator','SAME_OPERATION_SHARE_INTERVAL','defs','_handleOperation','getUnitId','mask','default','data','xlink:href','IDLE','delete','344cPKCiv','UNIVER_LIVE_SHARE_PLUGIN','replace','next','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','_presenter','sessionStatus$','currentColor','509050BdjslY','div','following','_startFollowing','shouldShareOperation','type','disposeWithMe','not-following','getValue','parse','toString','_univerInstanceService','LIVESHARE_OPERATION','UniverIcon','map','attrs','_status$','asObservable','send','657468HsLtBM','trim','displayName','path','UNIVER_SHEET','symbol','init','_status','registerInitialStateReporter','1em','fill','includes','get','string','unsubscribe','subscribe','stopFollowing','ONLINE','_stopPresenting','onStarting','use','status$','2kBwxhX','mutations','forEach','getStatus','getConfig','memberID','children','add','_unitID','live-share-icon','univerjs-icon\x20univerjs-icon-','complete','presenting','_liveShareService','pluginName','LIVESHARE_TERMINATE','_config','requireSession','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','5kulALz','params','You\x27are\x20offline.','onCommandExecuted','registerComponent','svg','_handleNewChangeSets','getLiveShareCoordinator','_beIdle','9iYdcZD','univer-mb-3\x20univer-w-full\x20univer-text-sm','353853ihXxyW','getOwnPropertyDescriptor','_commandDisposable','PRESENTING','presenter','_commandService','LIVESHARE_NEW_HOST','You\x27re\x20following\x20the\x20presenter','412266cbdoFb','executeCommand','_reporters','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','length','setConfig','set','onRendered','idSuffix','_sharedOperations','then','tag','defineProperty','_handleOnline','substring','_stopFollowing','idle','_startPresenting','button','getInitialStates','operations','Present\x20this\x20document','sheet','_mountLiveShare','_collabSession','assign','colorChannel1','unitId','_injector','current','getTypeOfUnitDisposed$','112651lWcUOv','getCurrentTypeOfUnit$','has','478964PdfCqP','NEW_CHANGESETS'];_0x47f9=function(){return _0x4888e2;};return _0x47f9();}var Ne=Object[_0x40438e(0x17d)],Y=(_0x4c888b,_0x11f570,_0x5228dc,_0x524ffe)=>{const _0x76b223=_0x40438e;for(var _0x28c625=_0x524ffe>0x1?void 0x0:_0x524ffe?Ne(_0x11f570,_0x5228dc):_0x11f570,_0x2bdc16=_0x4c888b[_0x76b223(0x188)]-0x1,_0x19ea95;_0x2bdc16>=0x0;_0x2bdc16--)(_0x19ea95=_0x4c888b[_0x2bdc16])&&(_0x28c625=_0x19ea95(_0x28c625)||_0x28c625);return _0x28c625;},_=(_0x3356bb,_0x1ab874)=>(_0x1b71bb,_0xdab50c)=>_0x1ab874(_0x1b71bb,_0xdab50c,_0x3356bb);let S=class extends _0x470f4e{constructor(_0x5aca0d,_0x54895f,_0x234351){const _0x2738da=_0x40438e;super(),u(this,'_entities',new Map()),(this[_0x2738da(0x140)]=_0x5aca0d,this['_injector']=_0x54895f,this[_0x2738da(0x10a)]=_0x234351,this[_0x2738da(0x114)]());}async[_0x40438e(0x178)](_0x412409){const _0x3fb7a4=_0x40438e;return this['_entities']['has'](_0x412409)||await this[_0x3fb7a4(0x122)](_0x412409),this[_0x3fb7a4(0x118)][_0x3fb7a4(0x154)](_0x412409);}['getLiveShareCoordinatorSync'](_0x35a51b){const _0x21a934=_0x40438e;var _0x28dbea;return(_0x28dbea=this[_0x21a934(0x118)][_0x21a934(0x154)](_0x35a51b))!=null?_0x28dbea:null;}[_0x40438e(0x114)](){const _0x3253f1=_0x40438e;this[_0x3253f1(0x140)]['getTypeOfUnitAdded$'](_0x24a06b[_0x3253f1(0x14c)])[_0x3253f1(0x107)](_0x505794(this['dispose$']))[_0x3253f1(0x157)](async _0x1f8c57=>{const _0x4c5770=_0x3253f1,_0x2ee9ce=_0x1f8c57[_0x4c5770(0x126)]();this[_0x4c5770(0x118)][_0x4c5770(0x1a5)](_0x2ee9ce)||this['_startLiveShareCoordinator'](_0x2ee9ce);}),this[_0x3253f1(0x140)][_0x3253f1(0x1a2)](_0x24a06b[_0x3253f1(0x14c)])[_0x3253f1(0x107)](_0x505794(this[_0x3253f1(0x1aa)]))[_0x3253f1(0x157)](_0x58f199=>{const _0x500a5b=_0x3253f1,_0x4ab110=_0x58f199['getUnitId'](),_0x162aa6=this[_0x500a5b(0x118)]['get'](_0x4ab110);_0x162aa6==null||_0x162aa6[_0x500a5b(0x121)]();});}async[_0x40438e(0x122)](_0x1b4687){const _0x332449=_0x40438e,_0x22feac=await this[_0x332449(0x10a)][_0x332449(0x16f)](_0x1b4687),_0x571083=this['_injector']['createInstance'](N,_0x1b4687,_0x22feac);return _0x571083['init'](),this[_0x332449(0x118)][_0x332449(0x18a)](_0x1b4687,_0x571083),_0x571083;}};S=Y([_(0x0,_0x5a3693),_(0x1,_0x515096(_0x2eaef8)),_(0x2,_0x515096(_0x3bde2f))],S);var c=(_0x3f43e7=>(_0x3f43e7['OFFLINE']=_0x40438e(0x10d),_0x3f43e7[_0x40438e(0x12b)]='idle',_0x3f43e7[_0x40438e(0x119)]='following',_0x3f43e7['NOT_FOLLOWING']=_0x40438e(0x13c),_0x3f43e7[_0x40438e(0x17f)]='presenting',_0x3f43e7))(c||{});const Ce=_0x40438e(0x123),De=0xc8;let N=class extends _0x470f4e{constructor(_0x42fa58,_0x56d566,_0xe9c346,_0x4c3f5b,_0x295bfc){const _0x4f97f9=_0x40438e;super(),u(this,_0x4f97f9(0x145),new _0x4119dd('idle')),u(this,_0x4f97f9(0x15d),this['_status$'][_0x4f97f9(0x146)]()),u(this,_0x4f97f9(0x114),!0x1),u(this,_0x4f97f9(0x17e),null),u(this,_0x4f97f9(0x132),null),(this[_0x4f97f9(0x166)]=_0x42fa58,this[_0x4f97f9(0x19c)]=_0x56d566,this[_0x4f97f9(0x111)]=_0xe9c346,this[_0x4f97f9(0x16b)]=_0x4c3f5b,this[_0x4f97f9(0x181)]=_0x295bfc);}get['_status'](){const _0x2fb33e=_0x40438e;return this[_0x2fb33e(0x145)][_0x2fb33e(0x13d)]();}[_0x40438e(0x121)](){const _0x45c693=_0x40438e;var _0x1cb889;(_0x1cb889=this[_0x45c693(0x17e)])==null||_0x1cb889[_0x45c693(0x121)](),this[_0x45c693(0x145)][_0x45c693(0x130)](_0x45c693(0x194)),this[_0x45c693(0x145)][_0x45c693(0x169)]();}[_0x40438e(0x161)](){const _0x46a17f=_0x40438e;return this[_0x46a17f(0x14f)];}[_0x40438e(0x14e)](){const _0x56f2d8=_0x40438e;this[_0x56f2d8(0x114)]||(this[_0x56f2d8(0x114)]=!0x0,this[_0x56f2d8(0x19c)][_0x56f2d8(0x133)][_0x56f2d8(0x107)](_0x505794(this[_0x56f2d8(0x1aa)]))[_0x56f2d8(0x157)](_0x1333f1=>{const _0x59bf20=_0x56f2d8;switch(_0x1333f1){case _0x1a4938['OFFLINE']:this['_handleOffline']();break;case _0x1a4938[_0x59bf20(0x159)]:this['_handleOnline']();break;}}),this[_0x56f2d8(0x19c)][_0x56f2d8(0x109)]['pipe'](_0x505794(this['dispose$']))[_0x56f2d8(0x157)](_0x4ea196=>{const _0x35e9bb=_0x56f2d8,{eventID:_0x65fbbc}=_0x4ea196;switch(_0x65fbbc){case _0x5527b9[_0x35e9bb(0x182)]:this[_0x35e9bb(0x112)](_0x4ea196);break;case _0x5527b9['LIVESHARE_OPERATION']:this[_0x35e9bb(0x125)](_0x4ea196);break;case _0x5527b9[_0x35e9bb(0x16d)]:this[_0x35e9bb(0x120)]();break;case _0x5527b9[_0x35e9bb(0x1a7)]:this['_handleNewChangeSets'](_0x4ea196);break;}}));}[_0x40438e(0x11f)](){const _0x49b2d9=_0x40438e;this[_0x49b2d9(0x19c)][_0x49b2d9(0x147)]({'eventID':_0x5527b9['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x49b2d9(0x166)],'userID':this[_0x49b2d9(0x19c)][_0x49b2d9(0x11c)]()}},this[_0x49b2d9(0x166)]);}['stopPresenting'](){const _0x3bc702=_0x40438e;this[_0x3bc702(0x14f)]===_0x3bc702(0x16a)&&(this[_0x3bc702(0x145)][_0x3bc702(0x130)](_0x3bc702(0x194)),this[_0x3bc702(0x19c)][_0x3bc702(0x147)]({'eventID':_0x5527b9[_0x3bc702(0x16d)],'data':{'unitID':this[_0x3bc702(0x166)]}},this[_0x3bc702(0x166)]));}[_0x40438e(0x108)](){const _0x3cf05a=_0x40438e;this['_status']===_0x3cf05a(0x13c)&&(this[_0x3cf05a(0x145)][_0x3cf05a(0x130)](_0x3cf05a(0x137)),this[_0x3cf05a(0x138)]());}[_0x40438e(0x158)](){const _0x5878a9=_0x40438e;this[_0x5878a9(0x14f)]===_0x5878a9(0x137)&&this[_0x5878a9(0x193)]();}['_handleNewHost'](_0xcb9d73){const _0x8d8012=_0x40438e,{presenter:_0x336bb7}=_0xcb9d73[_0x8d8012(0x129)],_0x22c428=this[_0x8d8012(0x19c)][_0x8d8012(0x11c)]();this[_0x8d8012(0x132)]=_0x336bb7,_0x336bb7===_0x22c428?(this[_0x8d8012(0x193)](),this['_startPresenting']()):this[_0x8d8012(0x14f)]!==_0x8d8012(0x13c)&&(this[_0x8d8012(0x15a)](),this[_0x8d8012(0x138)]());}['_fetchOperations'](){const _0x3a117a=_0x40438e,_0xe4c44={'eventID':_0x5527b9[_0x3a117a(0x10f)]};this['_collabSession']['send'](_0xe4c44,this[_0x3a117a(0x166)]);}['_handleTerminate'](){const _0x298517=_0x40438e;this[_0x298517(0x132)]=null,this['_status']!==_0x298517(0x16a)&&this['_beIdle']();}[_0x40438e(0x177)](_0x49c8b2){const _0x3b30d7=_0x40438e;if(this['_status']===_0x3b30d7(0x137)&&this[_0x3b30d7(0x132)]===_0x49c8b2[_0x3b30d7(0x129)][_0x3b30d7(0x163)]){const _0x3c557d=_0x14e3f7(_0x49c8b2[_0x3b30d7(0x129)])[_0x3b30d7(0x15f)]['reverse']()['find'](_0x5be341=>_0x5be341['id']===_0x35c6e2['id']);if(_0x3c557d){const _0x2ee0f8=_0x3c557d['params'][_0x3b30d7(0x19f)],_0x571796=_0x3c557d['params'][_0x3b30d7(0x19a)]['id'];setTimeout(()=>{const _0x774e56=_0x3b30d7;this[_0x774e56(0x181)]['executeCommand'](_0xcbc908['id'],{'unitId':_0x2ee0f8,'subUnitId':_0x571796},{'fromCollab':!0x0});});}}}[_0x40438e(0x195)](){const _0x1e57c9=_0x40438e;this[_0x1e57c9(0x145)][_0x1e57c9(0x130)](_0x1e57c9(0x16a));const _0x3bf156=new Map(),_0x11a84d=this['_commandDisposable']=new _0x557a96();_0x11a84d[_0x1e57c9(0x165)](_0x162835(()=>{const _0x31867d=_0x1e57c9;_0x3bf156[_0x31867d(0x160)](_0x4d6572=>_0x4d6572[_0x31867d(0x169)]()),_0x3bf156['clear']();})),_0x11a84d[_0x1e57c9(0x165)](this['_commandService'][_0x1e57c9(0x174)](_0x1493ad=>{const _0x2e0ccb=_0x1e57c9;var _0x46004e;if(_0x1493ad[_0x2e0ccb(0x13a)]!==_0x54eed1['OPERATION']||!this[_0x2e0ccb(0x16b)][_0x2e0ccb(0x139)](_0x1493ad['id']))return;const {id:_0x555b04}=_0x1493ad;let _0x2f357c;_0x3bf156['has'](_0x555b04)?_0x2f357c=_0x3bf156['get'](_0x555b04):(_0x2f357c=new _0x26010b(),_0x3bf156[_0x2e0ccb(0x18a)](_0x555b04,_0x2f357c),_0x2f357c['pipe'](_0x55e0fd((_0x46004e=this[_0x2e0ccb(0x111)][_0x2e0ccb(0x162)](Ce))!=null?_0x46004e:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2e0ccb(0x157)](_0x23275d=>{const _0x5692cc=_0x2e0ccb;this[_0x5692cc(0x19c)][_0x5692cc(0x147)]({'eventID':_0x5527b9[_0x5692cc(0x141)],'data':{'unitID':this[_0x5692cc(0x166)],'operations':{[_0x23275d['id']]:{'id':_0x23275d['id'],'params':JSON[_0x5692cc(0x1a8)](_0x23275d[_0x5692cc(0x172)])}}}},this[_0x5692cc(0x166)]);})),_0x2f357c[_0x2e0ccb(0x130)](_0x1493ad);})),this[_0x1e57c9(0x16b)][_0x1e57c9(0x197)](this[_0x1e57c9(0x166)])[_0x1e57c9(0x160)](_0x147df5=>this[_0x1e57c9(0x19c)][_0x1e57c9(0x147)]({'eventID':_0x5527b9[_0x1e57c9(0x141)],'data':{'unitID':this[_0x1e57c9(0x166)],'operations':{[_0x147df5['id']]:{'id':_0x147df5['id'],'params':JSON[_0x1e57c9(0x1a8)](_0x147df5['params'])}}}},this[_0x1e57c9(0x166)]));}[_0x40438e(0x15a)](){const _0xef736c=_0x40438e;var _0x595d01;this['_status$'][_0xef736c(0x130)](_0xef736c(0x194)),(_0x595d01=this[_0xef736c(0x17e)])==null||_0x595d01[_0xef736c(0x121)](),this['_commandDisposable']=null;}[_0x40438e(0x138)](){const _0x41ea4f=_0x40438e;var _0x5ad979;(_0x5ad979=this['_commandDisposable'])==null||_0x5ad979[_0x41ea4f(0x121)](),this[_0x41ea4f(0x145)][_0x41ea4f(0x130)](_0x41ea4f(0x137));}[_0x40438e(0x179)](){const _0x502f41=_0x40438e;var _0x2fb286;this[_0x502f41(0x145)][_0x502f41(0x130)]('idle'),(_0x2fb286=this[_0x502f41(0x17e)])==null||_0x2fb286[_0x502f41(0x121)](),this[_0x502f41(0x17e)]=null;}[_0x40438e(0x193)](){const _0x34b869=_0x40438e;var _0x29a306;this['_status$'][_0x34b869(0x130)](_0x34b869(0x13c)),(_0x29a306=this[_0x34b869(0x17e)])==null||_0x29a306[_0x34b869(0x121)]();}[_0x40438e(0x125)](_0xbd2e1a){const _0x407f16=_0x40438e;if([_0x407f16(0x16a),_0x407f16(0x13c),_0x407f16(0x10d)][_0x407f16(0x153)](this['_status'])||!_0xbd2e1a[_0x407f16(0x129)][_0x407f16(0x180)]||_0xbd2e1a['data'][_0x407f16(0x180)]===this[_0x407f16(0x19c)][_0x407f16(0x11c)]())return;this[_0x407f16(0x14f)]===_0x407f16(0x194)&&this[_0x407f16(0x138)]();const _0x2722c6=_0xbd2e1a[_0x407f16(0x129)][_0x407f16(0x198)];Object['values'](_0x2722c6)[_0x407f16(0x160)](_0x5f5ccd=>{const _0x57e662=_0x407f16;this[_0x57e662(0x181)][_0x57e662(0x185)](_0x5f5ccd['id'],_0x5f5ccd['params']?JSON[_0x57e662(0x13e)](_0x5f5ccd[_0x57e662(0x172)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x313e26=_0x40438e;var _0x2200d4;this['_status$'][_0x313e26(0x130)]('offline'),(_0x2200d4=this['_commandDisposable'])==null||_0x2200d4[_0x313e26(0x121)]();}[_0x40438e(0x191)](){const _0x1df844=_0x40438e;this[_0x1df844(0x145)][_0x1df844(0x130)](_0x1df844(0x194)),this['_fetchOperations']();}};N=Y([_(0x2,_0x18693d),_(0x3,_0x515096(L)),_(0x4,_0x1b75b0)],N);function Le(){const _0x22e9f1=_0x40438e,_0x48f933=_0x54980e(S),_0x2a1eb8=_0x54980e(_0x5a3693),_0x4fe1a9=_0x2371ea(()=>_0x2a1eb8[_0x22e9f1(0x1a4)](_0x24a06b[_0x22e9f1(0x14c)]),void 0x0,!0x1,[]),[_0x58aed3,_0x405f7a]=_0x89ec1e(null),[_0x568915,_0x58e9b0]=_0x89ec1e(c[_0x22e9f1(0x12b)]),_0x419775=_0x4f23fd(null);return _0x33dad(()=>(_0x4fe1a9&&_0x48f933['getLiveShareCoordinator'](_0x4fe1a9[_0x22e9f1(0x126)]())[_0x22e9f1(0x18e)](_0x374c0f=>{const _0x3c4f83=_0x22e9f1;_0x405f7a(_0x374c0f),_0x419775[_0x3c4f83(0x1a1)]=_0x374c0f[_0x3c4f83(0x15d)][_0x3c4f83(0x157)](_0x38cdce=>{_0x58e9b0(_0x38cdce);});}),()=>{const _0x330361=_0x22e9f1;var _0x4d4ebe;(_0x4d4ebe=_0x419775['current'])==null||_0x4d4ebe[_0x330361(0x156)](),_0x419775['current']=null;}),[_0x4fe1a9,_0x48f933]),_0x58aed3?_0x282781(_0x45eb67,{'align':'end','disabled':_0x568915===c[_0x22e9f1(0x11d)],'className':_0x22e9f1(0x187),'overlay':_0x282781(Re,{'status':_0x568915,'coordinator':_0x58aed3}),'children':_0x282781(_0x22e9f1(0x196),{'className':_0x2be6db(_0x22e9f1(0x170),{'univer-cursor-not-allowed':_0x568915===c[_0x22e9f1(0x11d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x568915!==c['OFFLINE']}),'type':_0x22e9f1(0x196),'children':_0x282781(W,{'className':'univer-size-4'})})}):null;}function Re(_0x437467){const _0xaf73a4=_0x40438e,{status:_0xc7ed2f,coordinator:_0x177b7c}=_0x437467;switch(_0xc7ed2f){case c[_0xaf73a4(0x12b)]:return _0x282781($e,{'coordinator':_0x177b7c});case c[_0xaf73a4(0x119)]:return _0x282781(xe,{'coordinator':_0x177b7c});case c['NOT_FOLLOWING']:return _0x282781(Pe,{'coordinator':_0x177b7c});case c[_0xaf73a4(0x11d)]:return _0x282781(Te,{});case c[_0xaf73a4(0x17f)]:return _0x282781(Ae,{'coordinator':_0x177b7c});default:return null;}}function $e(_0x120ab4){const _0x162a68=_0x40438e,{coordinator:_0x203df8}=_0x120ab4;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781(_0x162a68(0x136),{'className':_0x162a68(0x17b),'children':_0x162a68(0x199)}),_0x282781(_0x18eae9,{'onClick':()=>_0x203df8[_0x162a68(0x11f)](),'children':_0x162a68(0x1a9)})]});}function xe(_0x46b877){const _0xd05436=_0x40438e,{coordinator:_0x43b589}=_0x46b877;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781('div',{'className':_0xd05436(0x17b),'children':_0xd05436(0x183)}),_0x282781(_0x18eae9,{'onClick':()=>_0x43b589[_0xd05436(0x158)](),'children':'Stop\x20following'})]});}function Pe(_0x23d975){const _0x63f7a4=_0x40438e,{coordinator:_0x1a2993}=_0x23d975;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781(_0x63f7a4(0x136),{'className':_0x63f7a4(0x17b),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x282781(_0x18eae9,{'variant':'text','onClick':()=>_0x1a2993[_0x63f7a4(0x108)](),'children':_0x63f7a4(0x117)})]});}function Ae(_0x2e9bdc){const _0x19c77d=_0x40438e,{coordinator:_0x5f5c03}=_0x2e9bdc;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781('div',{'className':_0x19c77d(0x17b),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x282781(_0x18eae9,{'variant':_0x19c77d(0x128),'onClick':()=>_0x5f5c03[_0x19c77d(0x11e)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x1a4dda=_0x40438e;return _0x282781(_0x2d1d5d,{'children':_0x1a4dda(0x173)});}var Fe=Object[_0x40438e(0x17d)],He=(_0xe36e06,_0x328326,_0xedbe7e,_0x1a4370)=>{for(var _0x405fd4=_0x1a4370>0x1?void 0x0:_0x1a4370?Fe(_0x328326,_0xedbe7e):_0x328326,_0x3bc04c=_0xe36e06['length']-0x1,_0x5503cc;_0x3bc04c>=0x0;_0x3bc04c--)(_0x5503cc=_0xe36e06[_0x3bc04c])&&(_0x405fd4=_0x5503cc(_0x405fd4)||_0x405fd4);return _0x405fd4;},A=(_0x3ab088,_0x426d4c)=>(_0x51cd35,_0x494648)=>_0x426d4c(_0x51cd35,_0x494648,_0x3ab088);let m=class extends _0x142380{constructor(_0x3be079,_0x59b39d){const _0x2daf53=_0x40438e;super(),this[_0x2daf53(0x1a0)]=_0x3be079,this['_uiPartsService']=_0x59b39d,this[_0x2daf53(0x19b)]();}['_mountLiveShare'](){const _0x229f65=_0x40438e;this[_0x229f65(0x13b)](this['_uiPartsService'][_0x229f65(0x175)](_0x5427fd[_0x229f65(0x10c)],()=>_0x266a27(Le,this[_0x229f65(0x1a0)])));}};m=He([A(0x0,_0x515096(_0x2eaef8)),A(0x1,_0x13ef6b)],m);const ye='live-share.config',T={};var Ue=Object[_0x40438e(0x17d)],Ve=(_0x47c872,_0x4d30bd,_0x9de0a7,_0x3752d3)=>{const _0x11f663=_0x40438e;for(var _0x42a8af=_0x3752d3>0x1?void 0x0:_0x3752d3?Ue(_0x4d30bd,_0x9de0a7):_0x4d30bd,_0x32da67=_0x47c872[_0x11f663(0x188)]-0x1,_0x15a074;_0x32da67>=0x0;_0x32da67--)(_0x15a074=_0x47c872[_0x32da67])&&(_0x42a8af=_0x15a074(_0x42a8af)||_0x42a8af);return _0x42a8af;},je=(_0x13edb2,_0x5be002)=>(_0x3620f0,_0x32c9d5)=>_0x5be002(_0x3620f0,_0x32c9d5,_0x13edb2);let I=class extends _0x142380{constructor(_0x270207){const _0x5b80cf=_0x40438e;super(),this['_liveShareService']=_0x270207,this[_0x5b80cf(0x114)]();}[_0x40438e(0x114)](){const _0x1a0f76=_0x40438e;[_0x1bfcb6['id'],_0x15a66d['id'],_0xcbc908['id']][_0x1a0f76(0x160)](_0x43f413=>{const _0x266d04=_0x1a0f76;this['disposeWithMe'](this[_0x266d04(0x16b)][_0x266d04(0x10b)](_0x43f413));});}};I=Ve([je(0x0,_0x515096(L))],I);var Me=Object[_0x40438e(0x190)],ke=Object[_0x40438e(0x17d)],Ge=(_0x72d1ae,_0x42e855,_0x3afd20)=>_0x42e855 in _0x72d1ae?Me(_0x72d1ae,_0x42e855,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3afd20}):_0x72d1ae[_0x42e855]=_0x3afd20,We=(_0x5e1741,_0x2c0306,_0xaca0d9,_0x339251)=>{const _0x332944=_0x40438e;for(var _0x531e36=_0x339251>0x1?void 0x0:_0x339251?ke(_0x2c0306,_0xaca0d9):_0x2c0306,_0x26a81e=_0x5e1741[_0x332944(0x188)]-0x1,_0x581a77;_0x26a81e>=0x0;_0x26a81e--)(_0x581a77=_0x5e1741[_0x26a81e])&&(_0x531e36=_0x581a77(_0x531e36)||_0x531e36);return _0x531e36;},F=(_0x1cc530,_0x5974cc)=>(_0x8b6089,_0x2703b8)=>_0x5974cc(_0x8b6089,_0x2703b8,_0x1cc530),B=(_0x1d3557,_0x3c23f8,_0x16bddb)=>Ge(_0x1d3557,typeof _0x3c23f8!=_0x40438e(0x14d)?_0x3c23f8+'':_0x3c23f8,_0x16bddb);const Ye=_0x40438e(0x12e);let b=class extends _0x277eca{constructor(_0x595d93=T,_0x50ea94,_0x53ea49){const _0x4411b1=_0x40438e;super(),this['_config']=_0x595d93,this['_injector']=_0x50ea94,this['_configService']=_0x53ea49;const {..._0x2d8609}=_0x3187af({},T,this[_0x4411b1(0x16e)]);this['_configService'][_0x4411b1(0x189)](ye,_0x2d8609);}[_0x40438e(0x15b)](){const _0x7abc44=_0x40438e;_0x260ef6(this[_0x7abc44(0x1a0)],_0x26d4c0([[L],[S],[I],[m]],this[_0x7abc44(0x16e)]['override'])),_0x154532(this[_0x7abc44(0x1a0)],[[I]]);}[_0x40438e(0x18b)](){const _0x1f28ee=_0x40438e;_0x154532(this[_0x1f28ee(0x1a0)],[[m]]);}};B(b,_0x40438e(0x13a),_0x24a06b[_0x40438e(0x116)]),B(b,_0x40438e(0x16c),Ye),b=We([_0x120121(_0xc0232f),F(0x1,_0x515096(_0x2eaef8)),F(0x2,_0x18693d)],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 _0x3d115b=_0x2aa9;(function(_0x2765d0,_0x182ad0){const _0x88694a=_0x2aa9,_0x29f9b2=_0x2765d0();while(!![]){try{const _0x3f5a28=-parseInt(_0x88694a(0x1c7))/0x1+parseInt(_0x88694a(0x1fc))/0x2+parseInt(_0x88694a(0x1ef))/0x3*(parseInt(_0x88694a(0x1a1))/0x4)+parseInt(_0x88694a(0x1fa))/0x5*(-parseInt(_0x88694a(0x1d4))/0x6)+-parseInt(_0x88694a(0x207))/0x7*(parseInt(_0x88694a(0x200))/0x8)+parseInt(_0x88694a(0x1ac))/0x9+parseInt(_0x88694a(0x21a))/0xa*(parseInt(_0x88694a(0x19e))/0xb);if(_0x3f5a28===_0x182ad0)break;else _0x29f9b2['push'](_0x29f9b2['shift']());}catch(_0x3b6548){_0x29f9b2['push'](_0x29f9b2['shift']());}}}(_0x56b3,0x6b20a));var J=Object[_0x3d115b(0x1bf)],K=(_0x137beb,_0x2edb27,_0x120002)=>_0x2edb27 in _0x137beb?J(_0x137beb,_0x2edb27,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x120002}):_0x137beb[_0x2edb27]=_0x120002,u=(_0x4151d0,_0x402d2f,_0x3a11ad)=>K(_0x4151d0,typeof _0x402d2f!=_0x3d115b(0x1e8)?_0x402d2f+'':_0x402d2f,_0x3a11ad);import{Disposable as _0x87d3da,toDisposable as _0x2af3fb,IUniverInstanceService as _0x1d384b,Inject as _0x577b1e,Injector as _0x4e118f,IConfigService as _0x332024,ICommandService as _0x5b24bd,RxDisposable as _0x346b59,UniverInstanceType as _0x3088b9,DisposableCollection as _0x34f591,CommandType as _0x1b9ff0,DependentOn as _0x3cc453,Plugin as _0x4b1824,merge as _0x4a94f8,registerDependencies as _0x51b5fa,mergeOverrideWithDependencies as _0x215342,touchDependencies as _0x2b00b4}from'@univerjs/core';import{useDependency as _0x32938e,useObservable as _0x305896,IUIPartsService as _0x5c986b,BuiltInUIPart as _0x523e83,connectInjector as _0x32b998}from'@univerjs/ui';import{jsx as _0x567ad8,jsxs as _0x1873ad,Fragment as _0xaba553}from'react/jsx-runtime';import{Dropdown as _0x1d0e01,clsx as _0xc920a1,Button as _0x473b7d}from'@univerjs/design';import{useRef as _0x1df2a9,createElement as _0x267537,forwardRef as _0x2c3eb3,useState as _0x4d351d,useEffect as _0x463e26}from'react';import{CollaborationEvent as _0x993281,parseProtocolChangeset as _0xe3d24e}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x5b388b,SessionStatus as _0x5e3c97,UniverCollaborationClientPlugin as _0x545bb7}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4db54c,SetWorksheetActiveOperation as _0x871b64}from'@univerjs/sheets';function _0x2aa9(_0x390fb9,_0x13cd74){_0x390fb9=_0x390fb9-0x17f;const _0x56b3c6=_0x56b3();let _0x2aa949=_0x56b3c6[_0x390fb9];return _0x2aa949;}import{BehaviorSubject as _0x3dca77,Subject as _0x1bf23e}from'rxjs';import{takeUntil as _0x4ccafe,throttleTime as _0x10a81f}from'rxjs/operators';import{SetZoomRatioOperation as _0x2fe506,SetScrollOperation as _0x33c19d}from'@univerjs/sheets-ui';function k({ref:_0x9b34d2,..._0x2290a9}){const _0x306692=_0x3d115b,{icon:_0x2c2160,id:_0x459ded,className:_0x14210c,extend:_0x6c6fa3,..._0x48aaf8}=_0x2290a9,_0x17dc02=(_0x306692(0x1b4)+_0x459ded+'\x20'+(_0x14210c||''))[_0x306692(0x219)](),_0x36eccc=_0x1df2a9('_'+Oe());return G(_0x2c2160,''+_0x459ded,{'defIds':_0x2c2160[_0x306692(0x21d)],'idSuffix':_0x36eccc['current']},{'ref':_0x9b34d2,'className':_0x17dc02,..._0x48aaf8},_0x6c6fa3);}function G(_0xf3815b,_0x2c5615,_0x355677,_0x545477,_0x188599){const _0xdead6d=_0x3d115b;return _0x267537(_0xf3815b[_0xdead6d(0x201)],{'key':_0x2c5615,...be(_0xf3815b,_0x355677,_0x188599),..._0x545477},(Ee(_0xf3815b,_0x355677)[_0xdead6d(0x222)]||[])[_0xdead6d(0x20e)]((_0x3592a1,_0x57c104)=>G(_0x3592a1,_0x2c5615+'-'+_0xf3815b['tag']+'-'+_0x57c104,_0x355677,void 0x0,_0x188599)));}function be(_0x4158dd,_0x4e0612,_0x8fc515){const _0x4da175=_0x3d115b,_0x33f590={..._0x4158dd['attrs']};_0x8fc515!=null&&_0x8fc515['colorChannel1']&&_0x33f590[_0x4da175(0x1ca)]===_0x4da175(0x194)&&(_0x33f590[_0x4da175(0x1ca)]=_0x8fc515[_0x4da175(0x194)]),_0x4158dd['tag']===_0x4da175(0x203)&&_0x33f590['id']&&(_0x33f590['id']=_0x33f590['id']+_0x4e0612['idSuffix']),Object[_0x4da175(0x1a5)](_0x33f590)[_0x4da175(0x19b)](([_0x3d452f,_0x5ae30b])=>{const _0x56acb6=_0x4da175;_0x3d452f===_0x56acb6(0x203)&&typeof _0x5ae30b==_0x56acb6(0x1ee)&&(_0x33f590[_0x3d452f]=_0x5ae30b[_0x56acb6(0x1e2)](/url\(#(.*)\)/,'url(#$1'+_0x4e0612[_0x56acb6(0x1ea)]+')'));});const {defIds:_0x400008}=_0x4e0612;return!_0x400008||_0x400008[_0x4da175(0x19a)]===0x0||(_0x4158dd[_0x4da175(0x201)]===_0x4da175(0x220)&&_0x33f590['xlink:href']&&(_0x33f590['xlink:href']=_0x33f590[_0x4da175(0x18f)]+_0x4e0612[_0x4da175(0x1ea)]),Object[_0x4da175(0x1a5)](_0x33f590)[_0x4da175(0x19b)](([_0x37b09d,_0x4875d9])=>{const _0x1783e6=_0x4da175;typeof _0x4875d9=='string'&&(_0x33f590[_0x37b09d]=_0x4875d9[_0x1783e6(0x1e2)](/url\(#(.*)\)/,_0x1783e6(0x190)+_0x4e0612[_0x1783e6(0x1ea)]+')'));})),_0x33f590;}function Ee(_0xe8b5eb,_0x5c94b1){const _0x2c2c97=_0x3d115b;var _0x5035e3;const {defIds:_0x473d9f}=_0x5c94b1;return!_0x473d9f||_0x473d9f[_0x2c2c97(0x19a)]===0x0?_0xe8b5eb:_0xe8b5eb[_0x2c2c97(0x201)]==='defs'&&((_0x5035e3=_0xe8b5eb[_0x2c2c97(0x222)])!=null&&_0x5035e3['length'])?{..._0xe8b5eb,'children':_0xe8b5eb[_0x2c2c97(0x222)][_0x2c2c97(0x20e)](_0x2ba542=>typeof _0x2ba542[_0x2c2c97(0x202)]['id']==_0x2c2c97(0x1ee)&&_0x473d9f&&_0x473d9f[_0x2c2c97(0x204)](_0x2ba542[_0x2c2c97(0x202)]['id'])?{..._0x2ba542,'attrs':{..._0x2ba542[_0x2c2c97(0x202)],'id':_0x2ba542[_0x2c2c97(0x202)]['id']+_0x5c94b1['idSuffix']}}:_0x2ba542)}:_0xe8b5eb;}function Oe(){const _0x528b48=_0x3d115b;return Math['random']()['toString'](0x24)[_0x528b48(0x1ff)](0x2,0x8);}k[_0x3d115b(0x1e1)]='UniverIcon';const we={'tag':_0x3d115b(0x1a0),'attrs':{'xmlns':_0x3d115b(0x1be),'fill':'none','viewBox':_0x3d115b(0x1e5),'width':_0x3d115b(0x221),'height':'1em'},'children':[{'tag':_0x3d115b(0x18c),'attrs':{'fill':'currentColor','d':_0x3d115b(0x1c2)}},{'tag':_0x3d115b(0x18c),'attrs':{'fill':_0x3d115b(0x21e),'d':_0x3d115b(0x1e0),'fillRule':'evenodd','clipRule':_0x3d115b(0x216)}}]},W=_0x2c3eb3(function(_0x4a83c5,_0x589741){const _0x731f28=_0x3d115b;return _0x267537(k,Object['assign']({},_0x4a83c5,{'id':_0x731f28(0x1bb),'ref':_0x589741,'icon':we}));});W[_0x3d115b(0x1e1)]=_0x3d115b(0x1c1);class L extends _0x87d3da{constructor(){const _0x1fd972=_0x3d115b;super(...arguments),u(this,_0x1fd972(0x20c),new Set()),u(this,'_reporters',new Set());}[_0x3d115b(0x18a)](_0x2994cb){const _0x208654=_0x3d115b;return this[_0x208654(0x20c)][_0x208654(0x1f4)](_0x2994cb),_0x2af3fb(()=>this['_sharedOperations'][_0x208654(0x20a)](_0x2994cb));}[_0x3d115b(0x1c5)](_0x4f6963){const _0x20e902=_0x3d115b;return this[_0x20e902(0x1d3)][_0x20e902(0x1f4)](_0x4f6963),_0x2af3fb(()=>this['_reporters']['delete'](_0x4f6963));}[_0x3d115b(0x189)](_0x3aea5b){const _0x5156ad=_0x3d115b;return this[_0x5156ad(0x20c)]['has'](_0x3aea5b);}['getInitialStates'](_0xba6e91){const _0x2d429d=_0x3d115b;return Array[_0x2d429d(0x1d5)](this[_0x2d429d(0x1d3)])['map'](_0x3c9c27=>_0x3c9c27(_0xba6e91));}}var Ne=Object[_0x3d115b(0x184)],Y=(_0x41ce2c,_0x350d64,_0xf01484,_0x10de0f)=>{const _0x426fb4=_0x3d115b;for(var _0x5d0ea8=_0x10de0f>0x1?void 0x0:_0x10de0f?Ne(_0x350d64,_0xf01484):_0x350d64,_0x2eeacc=_0x41ce2c[_0x426fb4(0x19a)]-0x1,_0x175061;_0x2eeacc>=0x0;_0x2eeacc--)(_0x175061=_0x41ce2c[_0x2eeacc])&&(_0x5d0ea8=_0x175061(_0x5d0ea8)||_0x5d0ea8);return _0x5d0ea8;},_=(_0x1e0ee7,_0x1aa014)=>(_0x1e0e61,_0x95ab10)=>_0x1aa014(_0x1e0e61,_0x95ab10,_0x1e0ee7);let S=class extends _0x346b59{constructor(_0x102359,_0x4d4f06,_0x5e3862){const _0x481dba=_0x3d115b;super(),u(this,_0x481dba(0x18d),new Map()),(this[_0x481dba(0x1b5)]=_0x102359,this[_0x481dba(0x1c4)]=_0x4d4f06,this[_0x481dba(0x18b)]=_0x5e3862,this['_init']());}async[_0x3d115b(0x1b2)](_0x5c9d68){const _0x3d3c71=_0x3d115b;return this[_0x3d3c71(0x18d)][_0x3d3c71(0x1dd)](_0x5c9d68)||await this[_0x3d3c71(0x1aa)](_0x5c9d68),this[_0x3d3c71(0x18d)][_0x3d3c71(0x182)](_0x5c9d68);}[_0x3d115b(0x212)](_0x356585){const _0x408bcb=_0x3d115b;var _0x2664f7;return(_0x2664f7=this[_0x408bcb(0x18d)][_0x408bcb(0x182)](_0x356585))!=null?_0x2664f7:null;}[_0x3d115b(0x1da)](){const _0x21983f=_0x3d115b;this[_0x21983f(0x1b5)]['getTypeOfUnitAdded$'](_0x3088b9[_0x21983f(0x1d0)])[_0x21983f(0x191)](_0x4ccafe(this[_0x21983f(0x1a8)]))[_0x21983f(0x21f)](async _0x212792=>{const _0xd212cf=_0x21983f,_0x4f5acd=_0x212792[_0xd212cf(0x21c)]();this[_0xd212cf(0x18d)][_0xd212cf(0x1dd)](_0x4f5acd)||this['_startLiveShareCoordinator'](_0x4f5acd);}),this[_0x21983f(0x1b5)][_0x21983f(0x1db)](_0x3088b9[_0x21983f(0x1d0)])[_0x21983f(0x191)](_0x4ccafe(this['dispose$']))[_0x21983f(0x21f)](_0x1d5399=>{const _0x515aa3=_0x21983f,_0xcd8e77=_0x1d5399[_0x515aa3(0x21c)](),_0x43a71a=this[_0x515aa3(0x18d)][_0x515aa3(0x182)](_0xcd8e77);_0x43a71a==null||_0x43a71a[_0x515aa3(0x1eb)]();});}async[_0x3d115b(0x1aa)](_0x45bf60){const _0x4c98dd=_0x3d115b,_0x3dde04=await this[_0x4c98dd(0x18b)][_0x4c98dd(0x1a7)](_0x45bf60),_0x296ae7=this[_0x4c98dd(0x1c4)][_0x4c98dd(0x205)](N,_0x45bf60,_0x3dde04);return _0x296ae7[_0x4c98dd(0x218)](),this[_0x4c98dd(0x18d)]['set'](_0x45bf60,_0x296ae7),_0x296ae7;}};S=Y([_(0x0,_0x1d384b),_(0x1,_0x577b1e(_0x4e118f)),_(0x2,_0x577b1e(_0x5b388b))],S);var c=(_0x118b3b=>(_0x118b3b[_0x3d115b(0x217)]=_0x3d115b(0x210),_0x118b3b[_0x3d115b(0x1cc)]='idle',_0x118b3b[_0x3d115b(0x1f3)]=_0x3d115b(0x1f6),_0x118b3b[_0x3d115b(0x1c3)]='not-following',_0x118b3b[_0x3d115b(0x195)]=_0x3d115b(0x196),_0x118b3b))(c||{});const Ce=_0x3d115b(0x1f2),De=0xc8;let N=class extends _0x346b59{constructor(_0x4944fb,_0x298705,_0x6469cc,_0x422494,_0x938e0d){const _0x12af2e=_0x3d115b;super(),u(this,_0x12af2e(0x1fb),new _0x3dca77('idle')),u(this,_0x12af2e(0x17f),this[_0x12af2e(0x1fb)][_0x12af2e(0x1d6)]()),u(this,'_init',!0x1),u(this,'_commandDisposable',null),u(this,_0x12af2e(0x1df),null),(this[_0x12af2e(0x1d7)]=_0x4944fb,this['_collabSession']=_0x298705,this[_0x12af2e(0x1e7)]=_0x6469cc,this[_0x12af2e(0x1cb)]=_0x422494,this['_commandService']=_0x938e0d);}get[_0x3d115b(0x1f8)](){const _0x57172b=_0x3d115b;return this[_0x57172b(0x1fb)][_0x57172b(0x208)]();}['dispose'](){const _0x46155a=_0x3d115b;var _0x30e668;(_0x30e668=this[_0x46155a(0x20f)])==null||_0x30e668[_0x46155a(0x1eb)](),this['_status$'][_0x46155a(0x1b3)]('idle'),this[_0x46155a(0x1fb)][_0x46155a(0x213)]();}[_0x3d115b(0x1ab)](){const _0x3803e3=_0x3d115b;return this[_0x3803e3(0x1f8)];}[_0x3d115b(0x218)](){const _0x1fe957=_0x3d115b;this[_0x1fe957(0x1da)]||(this[_0x1fe957(0x1da)]=!0x0,this[_0x1fe957(0x1e6)]['sessionStatus$']['pipe'](_0x4ccafe(this[_0x1fe957(0x1a8)]))[_0x1fe957(0x21f)](_0x32a882=>{const _0x105a2a=_0x1fe957;switch(_0x32a882){case _0x5e3c97['OFFLINE']:this[_0x105a2a(0x1f9)]();break;case _0x5e3c97[_0x105a2a(0x215)]:this[_0x105a2a(0x1c0)]();break;}}),this[_0x1fe957(0x1e6)][_0x1fe957(0x1ce)]['pipe'](_0x4ccafe(this[_0x1fe957(0x1a8)]))[_0x1fe957(0x21f)](_0x2ceed5=>{const _0x29d180=_0x1fe957,{eventID:_0x4824e1}=_0x2ceed5;switch(_0x4824e1){case _0x993281[_0x29d180(0x1c8)]:this[_0x29d180(0x19d)](_0x2ceed5);break;case _0x993281[_0x29d180(0x1bd)]:this[_0x29d180(0x1e4)](_0x2ceed5);break;case _0x993281[_0x29d180(0x1b6)]:this[_0x29d180(0x1f0)]();break;case _0x993281[_0x29d180(0x1ec)]:this[_0x29d180(0x180)](_0x2ceed5);break;}}));}[_0x3d115b(0x1f5)](){const _0x3a62bd=_0x3d115b;this[_0x3a62bd(0x1e6)]['send']({'eventID':_0x993281['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3a62bd(0x1d7)],'userID':this['_collabSession'][_0x3a62bd(0x1d1)]()}},this[_0x3a62bd(0x1d7)]);}[_0x3d115b(0x192)](){const _0x4666a4=_0x3d115b;this[_0x4666a4(0x1f8)]===_0x4666a4(0x196)&&(this[_0x4666a4(0x1fb)][_0x4666a4(0x1b3)]('idle'),this[_0x4666a4(0x1e6)][_0x4666a4(0x1b1)]({'eventID':_0x993281[_0x4666a4(0x1b6)],'data':{'unitID':this[_0x4666a4(0x1d7)]}},this[_0x4666a4(0x1d7)]));}[_0x3d115b(0x1c9)](){const _0x27805c=_0x3d115b;this[_0x27805c(0x1f8)]===_0x27805c(0x20b)&&(this[_0x27805c(0x1fb)][_0x27805c(0x1b3)]('following'),this[_0x27805c(0x1a3)]());}[_0x3d115b(0x1a6)](){const _0x15df76=_0x3d115b;this[_0x15df76(0x1f8)]===_0x15df76(0x1f6)&&this[_0x15df76(0x226)]();}['_handleNewHost'](_0x1d7e2e){const _0x23de95=_0x3d115b,{presenter:_0x3a8cf2}=_0x1d7e2e[_0x23de95(0x185)],_0x532198=this['_collabSession']['getMemberID']();this[_0x23de95(0x1df)]=_0x3a8cf2,_0x3a8cf2===_0x532198?(this[_0x23de95(0x226)](),this[_0x23de95(0x186)]()):this[_0x23de95(0x1f8)]!==_0x23de95(0x20b)&&(this[_0x23de95(0x209)](),this['_startFollowing']());}['_fetchOperations'](){const _0x169708=_0x3d115b,_0x13b17d={'eventID':_0x993281['LIVESHARE_FETCH_OPERATIONS']};this[_0x169708(0x1e6)]['send'](_0x13b17d,this['_unitID']);}[_0x3d115b(0x1f0)](){const _0x2d0029=_0x3d115b;this[_0x2d0029(0x1df)]=null,this[_0x2d0029(0x1f8)]!==_0x2d0029(0x196)&&this[_0x2d0029(0x1d2)]();}[_0x3d115b(0x180)](_0x14b734){const _0x55fcd7=_0x3d115b;if(this[_0x55fcd7(0x1f8)]===_0x55fcd7(0x1f6)&&this[_0x55fcd7(0x1df)]===_0x14b734[_0x55fcd7(0x185)][_0x55fcd7(0x1de)]){const _0x2bb002=_0xe3d24e(_0x14b734['data'])['mutations'][_0x55fcd7(0x20d)]()[_0x55fcd7(0x1fd)](_0x5e096a=>_0x5e096a['id']===_0x4db54c['id']);if(_0x2bb002){const _0x2cacfb=_0x2bb002[_0x55fcd7(0x181)][_0x55fcd7(0x1e3)],_0x3b8183=_0x2bb002[_0x55fcd7(0x181)][_0x55fcd7(0x188)]['id'];setTimeout(()=>{const _0x2f25ca=_0x55fcd7;this[_0x2f25ca(0x211)]['executeCommand'](_0x871b64['id'],{'unitId':_0x2cacfb,'subUnitId':_0x3b8183},{'fromCollab':!0x0});});}}}[_0x3d115b(0x186)](){const _0x5b1d10=_0x3d115b;this[_0x5b1d10(0x1fb)][_0x5b1d10(0x1b3)](_0x5b1d10(0x196));const _0xf8d406=new Map(),_0x193879=this[_0x5b1d10(0x20f)]=new _0x34f591();_0x193879[_0x5b1d10(0x1f4)](_0x2af3fb(()=>{const _0x37b36e=_0x5b1d10;_0xf8d406[_0x37b36e(0x19b)](_0x46dd7f=>_0x46dd7f['complete']()),_0xf8d406[_0x37b36e(0x197)]();})),_0x193879[_0x5b1d10(0x1f4)](this['_commandService'][_0x5b1d10(0x1f7)](_0x5a7cc0=>{const _0x250f61=_0x5b1d10;var _0x2fb3ff;if(_0x5a7cc0[_0x250f61(0x1f1)]!==_0x1b9ff0['OPERATION']||!this[_0x250f61(0x1cb)]['shouldShareOperation'](_0x5a7cc0['id']))return;const {id:_0x3af4c3}=_0x5a7cc0;let _0x364744;_0xf8d406['has'](_0x3af4c3)?_0x364744=_0xf8d406[_0x250f61(0x182)](_0x3af4c3):(_0x364744=new _0x1bf23e(),_0xf8d406[_0x250f61(0x19c)](_0x3af4c3,_0x364744),_0x364744['pipe'](_0x10a81f((_0x2fb3ff=this[_0x250f61(0x1e7)][_0x250f61(0x1b0)](Ce))!=null?_0x2fb3ff:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x250f61(0x21f)](_0x189833=>{const _0x34f79c=_0x250f61;this['_collabSession'][_0x34f79c(0x1b1)]({'eventID':_0x993281[_0x34f79c(0x1bd)],'data':{'unitID':this[_0x34f79c(0x1d7)],'operations':{[_0x189833['id']]:{'id':_0x189833['id'],'params':JSON[_0x34f79c(0x1ad)](_0x189833['params'])}}}},this[_0x34f79c(0x1d7)]);})),_0x364744['next'](_0x5a7cc0);})),this[_0x5b1d10(0x1cb)][_0x5b1d10(0x183)](this[_0x5b1d10(0x1d7)])[_0x5b1d10(0x19b)](_0x524645=>this[_0x5b1d10(0x1e6)][_0x5b1d10(0x1b1)]({'eventID':_0x993281['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5b1d10(0x1d7)],'operations':{[_0x524645['id']]:{'id':_0x524645['id'],'params':JSON[_0x5b1d10(0x1ad)](_0x524645['params'])}}}},this[_0x5b1d10(0x1d7)]));}[_0x3d115b(0x209)](){const _0xdb6baa=_0x3d115b;var _0x54484d;this[_0xdb6baa(0x1fb)][_0xdb6baa(0x1b3)](_0xdb6baa(0x1b9)),(_0x54484d=this[_0xdb6baa(0x20f)])==null||_0x54484d[_0xdb6baa(0x1eb)](),this[_0xdb6baa(0x20f)]=null;}['_startFollowing'](){const _0x36917f=_0x3d115b;var _0x5f6e23;(_0x5f6e23=this[_0x36917f(0x20f)])==null||_0x5f6e23[_0x36917f(0x1eb)](),this['_status$'][_0x36917f(0x1b3)](_0x36917f(0x1f6));}[_0x3d115b(0x1d2)](){const _0x2daf33=_0x3d115b;var _0x49bf7b;this[_0x2daf33(0x1fb)][_0x2daf33(0x1b3)]('idle'),(_0x49bf7b=this['_commandDisposable'])==null||_0x49bf7b[_0x2daf33(0x1eb)](),this[_0x2daf33(0x20f)]=null;}[_0x3d115b(0x226)](){const _0x37ef58=_0x3d115b;var _0x5844c0;this[_0x37ef58(0x1fb)]['next']('not-following'),(_0x5844c0=this[_0x37ef58(0x20f)])==null||_0x5844c0[_0x37ef58(0x1eb)]();}[_0x3d115b(0x1e4)](_0x2c3190){const _0x3f0f03=_0x3d115b;if(['presenting','not-following',_0x3f0f03(0x210)][_0x3f0f03(0x204)](this['_status'])||!_0x2c3190[_0x3f0f03(0x185)][_0x3f0f03(0x227)]||_0x2c3190[_0x3f0f03(0x185)][_0x3f0f03(0x227)]===this[_0x3f0f03(0x1e6)][_0x3f0f03(0x1d1)]())return;this[_0x3f0f03(0x1f8)]===_0x3f0f03(0x1b9)&&this[_0x3f0f03(0x1a3)]();const _0xcfa6b=_0x2c3190[_0x3f0f03(0x185)][_0x3f0f03(0x1a9)];Object[_0x3f0f03(0x1af)](_0xcfa6b)['forEach'](_0x4ea591=>{const _0x2c8053=_0x3f0f03;this['_commandService'][_0x2c8053(0x193)](_0x4ea591['id'],_0x4ea591[_0x2c8053(0x181)]?JSON[_0x2c8053(0x229)](_0x4ea591[_0x2c8053(0x181)]):null,{'fromCollab':!0x0});});}[_0x3d115b(0x1f9)](){const _0x2b8b6e=_0x3d115b;var _0x377a42;this['_status$'][_0x2b8b6e(0x1b3)](_0x2b8b6e(0x210)),(_0x377a42=this[_0x2b8b6e(0x20f)])==null||_0x377a42[_0x2b8b6e(0x1eb)]();}[_0x3d115b(0x1c0)](){const _0x22ee67=_0x3d115b;this['_status$'][_0x22ee67(0x1b3)](_0x22ee67(0x1b9)),this['_fetchOperations']();}};N=Y([_(0x2,_0x332024),_(0x3,_0x577b1e(L)),_(0x4,_0x5b24bd)],N);function Le(){const _0xb61340=_0x3d115b,_0x330dd0=_0x32938e(S),_0xd0c67a=_0x32938e(_0x1d384b),_0x141823=_0x305896(()=>_0xd0c67a[_0xb61340(0x1b7)](_0x3088b9[_0xb61340(0x1d0)]),void 0x0,!0x1,[]),[_0x5ba85a,_0x407846]=_0x4d351d(null),[_0x2525d0,_0x4d3053]=_0x4d351d(c[_0xb61340(0x1cc)]),_0x128890=_0x1df2a9(null);return _0x463e26(()=>(_0x141823&&_0x330dd0[_0xb61340(0x1b2)](_0x141823[_0xb61340(0x21c)]())[_0xb61340(0x1dc)](_0x2cc010=>{const _0x118459=_0xb61340;_0x407846(_0x2cc010),_0x128890[_0x118459(0x18e)]=_0x2cc010[_0x118459(0x17f)][_0x118459(0x21f)](_0x34f406=>{_0x4d3053(_0x34f406);});}),()=>{const _0x50093f=_0xb61340;var _0x18af26;(_0x18af26=_0x128890[_0x50093f(0x18e)])==null||_0x18af26[_0x50093f(0x1d9)](),_0x128890['current']=null;}),[_0x141823,_0x330dd0]),_0x5ba85a?_0x567ad8(_0x1d0e01,{'align':'end','disabled':_0x2525d0===c[_0xb61340(0x217)],'className':_0xb61340(0x225),'overlay':_0x567ad8(Re,{'status':_0x2525d0,'coordinator':_0x5ba85a}),'children':_0x567ad8('button',{'className':_0xc920a1('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2525d0===c[_0xb61340(0x217)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2525d0!==c[_0xb61340(0x217)]}),'type':'button','children':_0x567ad8(W,{'className':_0xb61340(0x1bc)})})}):null;}function Re(_0x1eccd1){const _0x433b21=_0x3d115b,{status:_0x49c1f1,coordinator:_0x21cc42}=_0x1eccd1;switch(_0x49c1f1){case c[_0x433b21(0x1cc)]:return _0x567ad8($e,{'coordinator':_0x21cc42});case c['FOLLOWING']:return _0x567ad8(xe,{'coordinator':_0x21cc42});case c['NOT_FOLLOWING']:return _0x567ad8(Pe,{'coordinator':_0x21cc42});case c[_0x433b21(0x217)]:return _0x567ad8(Te,{});case c[_0x433b21(0x195)]:return _0x567ad8(Ae,{'coordinator':_0x21cc42});default:return null;}}function $e(_0x574574){const _0x1121f8=_0x3d115b,{coordinator:_0x599f00}=_0x574574;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x1121f8(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1121f8(0x21b)}),_0x567ad8(_0x473b7d,{'onClick':()=>_0x599f00['tryStartPresenting'](),'children':_0x1121f8(0x1e9)})]});}function xe(_0x1591bc){const _0x421d86=_0x3d115b,{coordinator:_0x2eb1e7}=_0x1591bc;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x421d86(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x421d86(0x206)}),_0x567ad8(_0x473b7d,{'onClick':()=>_0x2eb1e7[_0x421d86(0x1a6)](),'children':_0x421d86(0x199)})]});}function Pe(_0x131f74){const _0x4fc2ef=_0x3d115b,{coordinator:_0x666fe9}=_0x131f74;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x4fc2ef(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4fc2ef(0x1ae)}),_0x567ad8(_0x473b7d,{'variant':'text','onClick':()=>_0x666fe9['startFollowing'](),'children':_0x4fc2ef(0x1c6)})]});}function Ae(_0x6f69ac){const _0x3cbddd=_0x3d115b,{coordinator:_0x233646}=_0x6f69ac;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x3cbddd(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3cbddd(0x1a2)}),_0x567ad8(_0x473b7d,{'variant':_0x3cbddd(0x1ed),'onClick':()=>_0x233646['stopPresenting'](),'children':_0x3cbddd(0x1fe)})]});}function Te(){const _0x3d9158=_0x3d115b;return _0x567ad8(_0xaba553,{'children':_0x3d9158(0x198)});}var Fe=Object[_0x3d115b(0x184)],He=(_0x5d8579,_0x47ab83,_0x494b5c,_0x23f112)=>{const _0x266b35=_0x3d115b;for(var _0x14b5a3=_0x23f112>0x1?void 0x0:_0x23f112?Fe(_0x47ab83,_0x494b5c):_0x47ab83,_0x17c2e0=_0x5d8579[_0x266b35(0x19a)]-0x1,_0x1f1eda;_0x17c2e0>=0x0;_0x17c2e0--)(_0x1f1eda=_0x5d8579[_0x17c2e0])&&(_0x14b5a3=_0x1f1eda(_0x14b5a3)||_0x14b5a3);return _0x14b5a3;},A=(_0x5a1819,_0xa51087)=>(_0x46bc5c,_0x1faa84)=>_0xa51087(_0x46bc5c,_0x1faa84,_0x5a1819);let m=class extends _0x87d3da{constructor(_0x3d9c8d,_0x5f0b87){const _0x3bc300=_0x3d115b;super(),this['_injector']=_0x3d9c8d,this['_uiPartsService']=_0x5f0b87,this[_0x3bc300(0x1cf)]();}[_0x3d115b(0x1cf)](){const _0x360c27=_0x3d115b;this[_0x360c27(0x1cd)](this[_0x360c27(0x1ba)][_0x360c27(0x19f)](_0x523e83['HEADER_MENU'],()=>_0x32b998(Le,this['_injector'])));}};m=He([A(0x0,_0x577b1e(_0x4e118f)),A(0x1,_0x5c986b)],m);const ye=_0x3d115b(0x1a4),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x269b8e,_0xd4ecde,_0x578c94,_0x463b65)=>{const _0xc50249=_0x3d115b;for(var _0x2b9198=_0x463b65>0x1?void 0x0:_0x463b65?Ue(_0xd4ecde,_0x578c94):_0xd4ecde,_0x54e774=_0x269b8e[_0xc50249(0x19a)]-0x1,_0x422c92;_0x54e774>=0x0;_0x54e774--)(_0x422c92=_0x269b8e[_0x54e774])&&(_0x2b9198=_0x422c92(_0x2b9198)||_0x2b9198);return _0x2b9198;},je=(_0x21f658,_0x2ce4ce)=>(_0xfd58e4,_0x2177fd)=>_0x2ce4ce(_0xfd58e4,_0x2177fd,_0x21f658);let I=class extends _0x87d3da{constructor(_0x1724f9){const _0x1f8772=_0x3d115b;super(),this['_liveShareService']=_0x1724f9,this[_0x1f8772(0x1da)]();}[_0x3d115b(0x1da)](){[_0x2fe506['id'],_0x33c19d['id'],_0x871b64['id']]['forEach'](_0x3eee4a=>{const _0x3aef92=_0x2aa9;this[_0x3aef92(0x1cd)](this[_0x3aef92(0x1cb)]['registerSharedOperation'](_0x3eee4a));});}};I=Ve([je(0x0,_0x577b1e(L))],I);var Me=Object[_0x3d115b(0x1bf)],ke=Object[_0x3d115b(0x184)],Ge=(_0x437603,_0x5b1b32,_0x308fc6)=>_0x5b1b32 in _0x437603?Me(_0x437603,_0x5b1b32,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x308fc6}):_0x437603[_0x5b1b32]=_0x308fc6,We=(_0x2db0e1,_0x451381,_0x4792fb,_0x28e983)=>{for(var _0x1878ec=_0x28e983>0x1?void 0x0:_0x28e983?ke(_0x451381,_0x4792fb):_0x451381,_0x42267e=_0x2db0e1['length']-0x1,_0x2ce274;_0x42267e>=0x0;_0x42267e--)(_0x2ce274=_0x2db0e1[_0x42267e])&&(_0x1878ec=_0x2ce274(_0x1878ec)||_0x1878ec);return _0x1878ec;},F=(_0x30df85,_0x4521d6)=>(_0x1bd40e,_0x8b67c6)=>_0x4521d6(_0x1bd40e,_0x8b67c6,_0x30df85),B=(_0x56b064,_0x58a088,_0x1b81e7)=>Ge(_0x56b064,typeof _0x58a088!=_0x3d115b(0x1e8)?_0x58a088+'':_0x58a088,_0x1b81e7);function _0x56b3(){const _0x16021c=['FOLLOWING','add','tryStartPresenting','following','onCommandExecuted','_status','_handleOffline','30IWDsgc','_status$','1330286KOVgwT','find','Stop\x20presenting','substring','1326976FsBVyf','tag','attrs','mask','includes','createInstance','You\x27re\x20following\x20the\x20presenter','7vBnCXi','getValue','_stopPresenting','delete','not-following','_sharedOperations','reverse','map','_commandDisposable','offline','_commandService','getLiveShareCoordinatorSync','complete','onStarting','ONLINE','evenodd','OFFLINE','init','trim','4610AWthPZ','Present\x20this\x20document','getUnitId','defIds','currentColor','subscribe','use','1em','children','onRendered','override','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','_stopFollowing','presenter','div','parse','status$','_handleNewChangeSets','params','get','getInitialStates','getOwnPropertyDescriptor','data','_startPresenting','UNIVER_LIVE_SHARE_PLUGIN','sheet','shouldShareOperation','registerSharedOperation','_collabSessionService','path','_entities','current','xlink:href','url(#$1','pipe','stopPresenting','executeCommand','colorChannel1','PRESENTING','presenting','clear','You\x27are\x20offline.','Stop\x20following','length','forEach','set','_handleNewHost','1507bijEMY','registerComponent','svg','4ZuuNYN','You\x27re\x20presenting\x20the\x20document','_startFollowing','live-share.config','entries','stopFollowing','requireSession','dispose$','operations','_startLiveShareCoordinator','getStatus','3322998PXjeIU','stringify','You\x27re\x20not\x20following\x20the\x20presenter','values','getConfig','send','getLiveShareCoordinator','next','univerjs-icon\x20univerjs-icon-','_univerInstanceService','LIVESHARE_TERMINATE','getCurrentTypeOfUnit$','pluginName','idle','_uiPartsService','live-share-icon','univer-size-4','LIVESHARE_OPERATION','http://www.w3.org/2000/svg','defineProperty','_handleOnline','LiveShareIcon','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','NOT_FOLLOWING','_injector','registerInitialStateReporter','Start\x20following','408527ZlXwYj','LIVESHARE_NEW_HOST','startFollowing','fill','_liveShareService','IDLE','disposeWithMe','event$','_mountLiveShare','UNIVER_SHEET','getMemberID','_beIdle','_reporters','873006YWFiyO','from','asObservable','_unitID','_config','unsubscribe','_init','getTypeOfUnitDisposed$','then','has','memberID','_presenter','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','displayName','replace','unitId','_handleOperation','0\x200\x2017\x2017','_collabSession','_configService','symbol','Start','idSuffix','dispose','NEW_CHANGESETS','default','string','2366031dwuqaE','_handleTerminate','type','SAME_OPERATION_SHARE_INTERVAL'];_0x56b3=function(){return _0x16021c;};return _0x56b3();}const Ye=_0x3d115b(0x187);let b=class extends _0x4b1824{constructor(_0xd518e7=T,_0x5f23f7,_0x5745af){const _0xec64b4=_0x3d115b;super(),this[_0xec64b4(0x1d8)]=_0xd518e7,this[_0xec64b4(0x1c4)]=_0x5f23f7,this['_configService']=_0x5745af;const {..._0x23af25}=_0x4a94f8({},T,this[_0xec64b4(0x1d8)]);this['_configService']['setConfig'](ye,_0x23af25);}[_0x3d115b(0x214)](){const _0x5f378f=_0x3d115b;_0x51b5fa(this[_0x5f378f(0x1c4)],_0x215342([[L],[S],[I],[m]],this[_0x5f378f(0x1d8)][_0x5f378f(0x224)])),_0x2b00b4(this[_0x5f378f(0x1c4)],[[I]]);}[_0x3d115b(0x223)](){const _0x4ab7eb=_0x3d115b;_0x2b00b4(this[_0x4ab7eb(0x1c4)],[[m]]);}};B(b,_0x3d115b(0x1f1),_0x3088b9['UNIVER_UNKNOWN']),B(b,_0x3d115b(0x1b8),Ye),b=We([_0x3cc453(_0x545bb7),F(0x1,_0x577b1e(_0x4e118f)),F(0x2,_0x332024)],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 _0x30a585=_0x1a2f;(function(_0x2ba1d7,_0x42ae8e){const _0x2cf796=_0x1a2f,_0x176f68=_0x2ba1d7();while(!![]){try{const _0x41a298=parseInt(_0x2cf796(0x1d5))/0x1*(parseInt(_0x2cf796(0x1c5))/0x2)+-parseInt(_0x2cf796(0x1d4))/0x3+-parseInt(_0x2cf796(0x1da))/0x4+-parseInt(_0x2cf796(0x1ca))/0x5+parseInt(_0x2cf796(0x1cf))/0x6+parseInt(_0x2cf796(0x1c7))/0x7*(parseInt(_0x2cf796(0x1be))/0x8)+parseInt(_0x2cf796(0x1d2))/0x9;if(_0x41a298===_0x42ae8e)break;else _0x176f68['push'](_0x176f68['shift']());}catch(_0x4e5b26){_0x176f68['push'](_0x176f68['shift']());}}}(_0xa7aa,0xe6b2e));import{LiveShareController as _0x1b0e5a,LiveShareStatus as _0x3c5ca6}from'@univerjs-pro/live-share';function _0x1a2f(_0x48b678,_0x40a9ec){_0x48b678=_0x48b678-0x1be;const _0xa7aa98=_0xa7aa();let _0x1a2f84=_0xa7aa98[_0x48b678];return _0x1a2f84;}import{IRenderManagerService as _0xe3c4aa}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x42229a}from'@univerjs/sheets';import{SetScrollOperation as _0xad1144}from'@univerjs/sheets-ui';import{FRange as _0x34e1c5}from'@univerjs/sheets/facade';import{FUniver as _0x51335c,FEnum as _0x53e57c}from'@univerjs/core/facade';class I extends _0x34e1c5{[_0x30a585(0x1dc)](_0x25b83b,_0x7dcd5e,_0x45f3ac,_0x3acdd8,_0x231b74){const _0x1fdcab=_0x30a585,_0x15ab42=_0x25b83b[_0x1fdcab(0x1c0)](_0x1b0e5a),_0x4d7876=_0x25b83b[_0x1fdcab(0x1c0)](_0xe3c4aa),_0x390b69=_0x7dcd5e[_0x1fdcab(0x1c6)](),_0x5c01dd=_0x7dcd5e[_0x1fdcab(0x1cb)](),_0x402fa4=_0x15ab42[_0x1fdcab(0x1c2)](_0x390b69);(_0x402fa4==null?void 0x0:_0x402fa4['getStatus']())!==_0x3c5ca6[_0x1fdcab(0x1ce)]||(_0x45f3ac[_0x1fdcab(0x1cd)]()!==_0x5c01dd['getSheetId']()&&this[_0x1fdcab(0x1bf)][_0x1fdcab(0x1d8)](_0x42229a['id'],{'unitId':_0x390b69,'subUnitId':_0x45f3ac[_0x1fdcab(0x1cd)]()}),!_0x4d7876[_0x1fdcab(0x1c1)](_0x390b69))||_0x231b74[_0x1fdcab(0x1c9)](_0xad1144['id'],{'unitId':_0x7dcd5e[_0x1fdcab(0x1c6)](),'sheetId':_0x45f3ac['getSheetId'](),'sheetViewStartRow':_0x3acdd8[_0x1fdcab(0x1c4)],'sheetViewStartColumn':_0x3acdd8['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x34e1c5[_0x30a585(0x1d1)](I);function _0xa7aa(){const _0x32722d=['getLiveShareCoordinatorSync','tryStartPresenting','startRow','200958Uzmbin','getUnitId','1496299FJlsJD','getActiveWorkbook','syncExecuteCommand','3460205TcoOsc','getActiveSheet','getId','getSheetId','PRESENTING','2767572vyAkgi','startFollowing','extend','17955369NutIBc','IDLE','5666760MGgkOa','2uvvuSW','getLiveShareStatus','No\x20active\x20workbook\x20found.','executeCommand','stopFollowing','2510628YxSyiB','_injector','_initialize','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','56QVydMm','_commandService','get','getRenderById'];_0xa7aa=function(){return _0x32722d;};return _0xa7aa();}class m extends _0x51335c{[_0x30a585(0x1d6)](){const _0x3fa364=_0x30a585;var _0x266652,_0x298c5a;const _0x2fdf19=this['_injector'][_0x3fa364(0x1c0)](_0x1b0e5a),_0x5ef7ba=(_0x266652=this['getActiveWorkbook']())==null?void 0x0:_0x266652[_0x3fa364(0x1cc)]();if(!_0x5ef7ba)throw new Error(_0x3fa364(0x1d7));const _0x3ff71b=_0x2fdf19[_0x3fa364(0x1c2)](_0x5ef7ba);return(_0x298c5a=_0x3ff71b==null?void 0x0:_0x3ff71b['getStatus']())!=null?_0x298c5a:_0x3c5ca6[_0x3fa364(0x1d3)];}[_0x30a585(0x1d0)](){const _0x50fa10=_0x30a585;var _0x1932b6;const _0x55edcd=this[_0x50fa10(0x1db)][_0x50fa10(0x1c0)](_0x1b0e5a),_0xbaf4e4=(_0x1932b6=this[_0x50fa10(0x1c8)]())==null?void 0x0:_0x1932b6[_0x50fa10(0x1cc)]();if(!_0xbaf4e4)throw new Error(_0x50fa10(0x1d7));const _0xed849f=_0x55edcd[_0x50fa10(0x1c2)](_0xbaf4e4);if(!_0xed849f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xed849f[_0x50fa10(0x1d0)]();}[_0x30a585(0x1d9)](){const _0x1ba9d9=_0x30a585;var _0x4a8691;const _0x3d0350=this[_0x1ba9d9(0x1db)][_0x1ba9d9(0x1c0)](_0x1b0e5a),_0x401c6f=(_0x4a8691=this[_0x1ba9d9(0x1c8)]())==null?void 0x0:_0x4a8691[_0x1ba9d9(0x1cc)]();if(!_0x401c6f)throw new Error(_0x1ba9d9(0x1d7));const _0xf4ff0d=_0x3d0350[_0x1ba9d9(0x1c2)](_0x401c6f);if(!_0xf4ff0d)throw new Error(_0x1ba9d9(0x1dd));_0xf4ff0d['stopFollowing']();}['startPresenting'](){const _0x1208e4=_0x30a585;var _0x34fb8d;const _0x508514=this[_0x1208e4(0x1db)][_0x1208e4(0x1c0)](_0x1b0e5a),_0xb16a14=(_0x34fb8d=this[_0x1208e4(0x1c8)]())==null?void 0x0:_0x34fb8d['getId']();if(!_0xb16a14)throw new Error('No\x20active\x20workbook\x20found.');const _0x47955f=_0x508514[_0x1208e4(0x1c2)](_0xb16a14);if(!_0x47955f)throw new Error(_0x1208e4(0x1dd));_0x47955f[_0x1208e4(0x1c3)]();}['stopPresenting'](){const _0x3cac34=_0x30a585;var _0x2227da;const _0x456943=this[_0x3cac34(0x1db)][_0x3cac34(0x1c0)](_0x1b0e5a),_0x4bafad=(_0x2227da=this[_0x3cac34(0x1c8)]())==null?void 0x0:_0x2227da[_0x3cac34(0x1cc)]();if(!_0x4bafad)throw new Error('No\x20active\x20workbook\x20found.');const _0x170742=_0x456943[_0x3cac34(0x1c2)](_0x4bafad);if(!_0x170742)throw new Error(_0x3cac34(0x1dd));_0x170742['stopPresenting']();}}_0x51335c[_0x30a585(0x1d1)](m);class C extends _0x53e57c{get['LiveShareStatusEnum'](){return _0x3c5ca6;}}_0x53e57c[_0x30a585(0x1d1)](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x40438e=_0x47cc;(function(_0x499a68,_0xa7184a){const _0x303d3a=_0x47cc,_0x466f16=_0x499a68();while(!![]){try{const _0x58db09=parseInt(_0x303d3a(0x1a3))/0x1+parseInt(_0x303d3a(0x15e))/0x2*(-parseInt(_0x303d3a(0x17c))/0x3)+-parseInt(_0x303d3a(0x1a6))/0x4+-parseInt(_0x303d3a(0x171))/0x5*(-parseInt(_0x303d3a(0x184))/0x6)+parseInt(_0x303d3a(0x115))/0x7*(-parseInt(_0x303d3a(0x12d))/0x8)+parseInt(_0x303d3a(0x17a))/0x9*(parseInt(_0x303d3a(0x135))/0xa)+-parseInt(_0x303d3a(0x11b))/0xb*(-parseInt(_0x303d3a(0x148))/0xc);if(_0x58db09===_0xa7184a)break;else _0x466f16['push'](_0x466f16['shift']());}catch(_0x2b506f){_0x466f16['push'](_0x466f16['shift']());}}}(_0x47f9,0x215dc));var J=Object[_0x40438e(0x190)],K=(_0x32c42a,_0x2ee3b7,_0x1301ae)=>_0x2ee3b7 in _0x32c42a?J(_0x32c42a,_0x2ee3b7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1301ae}):_0x32c42a[_0x2ee3b7]=_0x1301ae,u=(_0x4a2c88,_0x53cecf,_0x4dd82c)=>K(_0x4a2c88,typeof _0x53cecf!=_0x40438e(0x14d)?_0x53cecf+'':_0x53cecf,_0x4dd82c);import{Disposable as _0x142380,toDisposable as _0x162835,IUniverInstanceService as _0x5a3693,Inject as _0x515096,Injector as _0x2eaef8,IConfigService as _0x18693d,ICommandService as _0x1b75b0,RxDisposable as _0x470f4e,UniverInstanceType as _0x24a06b,DisposableCollection as _0x557a96,CommandType as _0x54eed1,DependentOn as _0x120121,Plugin as _0x277eca,merge as _0x3187af,registerDependencies as _0x260ef6,mergeOverrideWithDependencies as _0x26d4c0,touchDependencies as _0x154532}from'@univerjs/core';import{useDependency as _0x54980e,useObservable as _0x2371ea,IUIPartsService as _0x13ef6b,BuiltInUIPart as _0x5427fd,connectInjector as _0x266a27}from'@univerjs/ui';import{jsx as _0x282781,jsxs as _0x1a3be5,Fragment as _0x2d1d5d}from'react/jsx-runtime';import{Dropdown as _0x45eb67,clsx as _0x2be6db,Button as _0x18eae9}from'@univerjs/design';import{useRef as _0x4f23fd,createElement as _0x4f1371,forwardRef as _0x905103,useState as _0x89ec1e,useEffect as _0x33dad}from'react';import{CollaborationEvent as _0x5527b9,parseProtocolChangeset as _0x14e3f7}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3bde2f,SessionStatus as _0x1a4938,UniverCollaborationClientPlugin as _0xc0232f}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x35c6e2,SetWorksheetActiveOperation as _0xcbc908}from'@univerjs/sheets';import{BehaviorSubject as _0x4119dd,Subject as _0x26010b}from'rxjs';import{takeUntil as _0x505794,throttleTime as _0x55e0fd}from'rxjs/operators';import{SetZoomRatioOperation as _0x1bfcb6,SetScrollOperation as _0x15a66d}from'@univerjs/sheets-ui';function _0x47cc(_0x2d80c3,_0x548e20){_0x2d80c3=_0x2d80c3-0x107;const _0x47f9b5=_0x47f9();let _0x47ccba=_0x47f9b5[_0x2d80c3];return _0x47ccba;}function k({ref:_0x4afa15,..._0x2c761a}){const _0x118ac2=_0x40438e,{icon:_0xa58156,id:_0x1c051b,className:_0x266745,extend:_0x3059ae,..._0x15b762}=_0x2c761a,_0x262b21=(_0x118ac2(0x168)+_0x1c051b+'\x20'+(_0x266745||''))[_0x118ac2(0x149)](),_0x3b8315=_0x4f23fd('_'+Oe());return G(_0xa58156,''+_0x1c051b,{'defIds':_0xa58156['defIds'],'idSuffix':_0x3b8315[_0x118ac2(0x1a1)]},{'ref':_0x4afa15,'className':_0x262b21,..._0x15b762},_0x3059ae);}function G(_0x173525,_0x1df7b1,_0x2f8904,_0x192443,_0x49dcc0){const _0x2bc951=_0x40438e;return _0x4f1371(_0x173525['tag'],{'key':_0x1df7b1,...be(_0x173525,_0x2f8904,_0x49dcc0),..._0x192443},(Ee(_0x173525,_0x2f8904)['children']||[])['map']((_0x3a1c6b,_0x424cde)=>G(_0x3a1c6b,_0x1df7b1+'-'+_0x173525[_0x2bc951(0x18f)]+'-'+_0x424cde,_0x2f8904,void 0x0,_0x49dcc0)));}function be(_0xd1fef3,_0x4cd31e,_0x58b7b7){const _0x4778d1=_0x40438e,_0x59adb9={..._0xd1fef3[_0x4778d1(0x144)]};_0x58b7b7!=null&&_0x58b7b7[_0x4778d1(0x19e)]&&_0x59adb9['fill']===_0x4778d1(0x19e)&&(_0x59adb9[_0x4778d1(0x152)]=_0x58b7b7[_0x4778d1(0x19e)]),_0xd1fef3[_0x4778d1(0x18f)]===_0x4778d1(0x127)&&_0x59adb9['id']&&(_0x59adb9['id']=_0x59adb9['id']+_0x4cd31e[_0x4778d1(0x18c)]),Object[_0x4778d1(0x10e)](_0x59adb9)[_0x4778d1(0x160)](([_0x565e85,_0x20a09e])=>{const _0xf6759f=_0x4778d1;_0x565e85===_0xf6759f(0x127)&&typeof _0x20a09e==_0xf6759f(0x155)&&(_0x59adb9[_0x565e85]=_0x20a09e[_0xf6759f(0x12f)](/url\(#(.*)\)/,'url(#$1'+_0x4cd31e['idSuffix']+')'));});const {defIds:_0xb065cc}=_0x4cd31e;return!_0xb065cc||_0xb065cc[_0x4778d1(0x188)]===0x0||(_0xd1fef3['tag']===_0x4778d1(0x15c)&&_0x59adb9['xlink:href']&&(_0x59adb9[_0x4778d1(0x12a)]=_0x59adb9[_0x4778d1(0x12a)]+_0x4cd31e['idSuffix']),Object['entries'](_0x59adb9)['forEach'](([_0xc0478b,_0x508f86])=>{const _0x4fda44=_0x4778d1;typeof _0x508f86=='string'&&(_0x59adb9[_0xc0478b]=_0x508f86[_0x4fda44(0x12f)](/url\(#(.*)\)/,_0x4fda44(0x113)+_0x4cd31e[_0x4fda44(0x18c)]+')'));})),_0x59adb9;}function Ee(_0xd16053,_0x49d430){const _0x1ce328=_0x40438e;var _0x6e0431;const {defIds:_0x3ce7bf}=_0x49d430;return!_0x3ce7bf||_0x3ce7bf['length']===0x0?_0xd16053:_0xd16053[_0x1ce328(0x18f)]===_0x1ce328(0x124)&&((_0x6e0431=_0xd16053[_0x1ce328(0x164)])!=null&&_0x6e0431[_0x1ce328(0x188)])?{..._0xd16053,'children':_0xd16053[_0x1ce328(0x164)][_0x1ce328(0x143)](_0x54efaf=>typeof _0x54efaf[_0x1ce328(0x144)]['id']=='string'&&_0x3ce7bf&&_0x3ce7bf[_0x1ce328(0x153)](_0x54efaf[_0x1ce328(0x144)]['id'])?{..._0x54efaf,'attrs':{..._0x54efaf[_0x1ce328(0x144)],'id':_0x54efaf[_0x1ce328(0x144)]['id']+_0x49d430[_0x1ce328(0x18c)]}}:_0x54efaf)}:_0xd16053;}function Oe(){const _0x35357b=_0x40438e;return Math['random']()[_0x35357b(0x13f)](0x24)[_0x35357b(0x192)](0x2,0x8);}k['displayName']=_0x40438e(0x142);const we={'tag':_0x40438e(0x176),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x40438e(0x110),'width':_0x40438e(0x151),'height':'1em'},'children':[{'tag':_0x40438e(0x14b),'attrs':{'fill':_0x40438e(0x134),'d':_0x40438e(0x131)}},{'tag':'path','attrs':{'fill':_0x40438e(0x134),'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':_0x40438e(0x11a),'clipRule':_0x40438e(0x11a)}}]},W=_0x905103(function(_0x481ac7,_0x879358){const _0x2777c2=_0x40438e;return _0x4f1371(k,Object[_0x2777c2(0x19d)]({},_0x481ac7,{'id':_0x2777c2(0x167),'ref':_0x879358,'icon':we}));});W[_0x40438e(0x14a)]='LiveShareIcon';class L extends _0x142380{constructor(){const _0x53d58f=_0x40438e;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x53d58f(0x186),new Set());}[_0x40438e(0x10b)](_0x23f087){const _0x1ad192=_0x40438e;return this[_0x1ad192(0x18d)][_0x1ad192(0x165)](_0x23f087),_0x162835(()=>this[_0x1ad192(0x18d)][_0x1ad192(0x12c)](_0x23f087));}[_0x40438e(0x150)](_0x1fb63b){const _0x430a54=_0x40438e;return this[_0x430a54(0x186)][_0x430a54(0x165)](_0x1fb63b),_0x162835(()=>this[_0x430a54(0x186)]['delete'](_0x1fb63b));}[_0x40438e(0x139)](_0x59d2b2){const _0x3516cb=_0x40438e;return this[_0x3516cb(0x18d)][_0x3516cb(0x1a5)](_0x59d2b2);}[_0x40438e(0x197)](_0x5f28ea){const _0x5f24e7=_0x40438e;return Array['from'](this['_reporters'])[_0x5f24e7(0x143)](_0x36eb84=>_0x36eb84(_0x5f28ea));}}function _0x47f9(){const _0x4888e2=['stringify','Start','dispose$','pipe','startFollowing','event$','_collabSessionService','registerSharedOperation','HEADER_MENU','offline','entries','LIVESHARE_FETCH_OPERATIONS','0\x200\x2017\x2017','_configService','_handleNewHost','url(#$1','_init','3626dfOUwN','UNIVER_UNKNOWN','Start\x20following','_entities','FOLLOWING','evenodd','33KlJYZN','getMemberID','OFFLINE','stopPresenting','tryStartPresenting','_handleTerminate','dispose','_startLiveShareCoordinator','SAME_OPERATION_SHARE_INTERVAL','defs','_handleOperation','getUnitId','mask','default','data','xlink:href','IDLE','delete','344cPKCiv','UNIVER_LIVE_SHARE_PLUGIN','replace','next','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','_presenter','sessionStatus$','currentColor','509050BdjslY','div','following','_startFollowing','shouldShareOperation','type','disposeWithMe','not-following','getValue','parse','toString','_univerInstanceService','LIVESHARE_OPERATION','UniverIcon','map','attrs','_status$','asObservable','send','657468HsLtBM','trim','displayName','path','UNIVER_SHEET','symbol','init','_status','registerInitialStateReporter','1em','fill','includes','get','string','unsubscribe','subscribe','stopFollowing','ONLINE','_stopPresenting','onStarting','use','status$','2kBwxhX','mutations','forEach','getStatus','getConfig','memberID','children','add','_unitID','live-share-icon','univerjs-icon\x20univerjs-icon-','complete','presenting','_liveShareService','pluginName','LIVESHARE_TERMINATE','_config','requireSession','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','5kulALz','params','You\x27are\x20offline.','onCommandExecuted','registerComponent','svg','_handleNewChangeSets','getLiveShareCoordinator','_beIdle','9iYdcZD','univer-mb-3\x20univer-w-full\x20univer-text-sm','353853ihXxyW','getOwnPropertyDescriptor','_commandDisposable','PRESENTING','presenter','_commandService','LIVESHARE_NEW_HOST','You\x27re\x20following\x20the\x20presenter','412266cbdoFb','executeCommand','_reporters','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','length','setConfig','set','onRendered','idSuffix','_sharedOperations','then','tag','defineProperty','_handleOnline','substring','_stopFollowing','idle','_startPresenting','button','getInitialStates','operations','Present\x20this\x20document','sheet','_mountLiveShare','_collabSession','assign','colorChannel1','unitId','_injector','current','getTypeOfUnitDisposed$','112651lWcUOv','getCurrentTypeOfUnit$','has','478964PdfCqP','NEW_CHANGESETS'];_0x47f9=function(){return _0x4888e2;};return _0x47f9();}var Ne=Object[_0x40438e(0x17d)],Y=(_0x4c888b,_0x11f570,_0x5228dc,_0x524ffe)=>{const _0x76b223=_0x40438e;for(var _0x28c625=_0x524ffe>0x1?void 0x0:_0x524ffe?Ne(_0x11f570,_0x5228dc):_0x11f570,_0x2bdc16=_0x4c888b[_0x76b223(0x188)]-0x1,_0x19ea95;_0x2bdc16>=0x0;_0x2bdc16--)(_0x19ea95=_0x4c888b[_0x2bdc16])&&(_0x28c625=_0x19ea95(_0x28c625)||_0x28c625);return _0x28c625;},_=(_0x3356bb,_0x1ab874)=>(_0x1b71bb,_0xdab50c)=>_0x1ab874(_0x1b71bb,_0xdab50c,_0x3356bb);let S=class extends _0x470f4e{constructor(_0x5aca0d,_0x54895f,_0x234351){const _0x2738da=_0x40438e;super(),u(this,'_entities',new Map()),(this[_0x2738da(0x140)]=_0x5aca0d,this['_injector']=_0x54895f,this[_0x2738da(0x10a)]=_0x234351,this[_0x2738da(0x114)]());}async[_0x40438e(0x178)](_0x412409){const _0x3fb7a4=_0x40438e;return this['_entities']['has'](_0x412409)||await this[_0x3fb7a4(0x122)](_0x412409),this[_0x3fb7a4(0x118)][_0x3fb7a4(0x154)](_0x412409);}['getLiveShareCoordinatorSync'](_0x35a51b){const _0x21a934=_0x40438e;var _0x28dbea;return(_0x28dbea=this[_0x21a934(0x118)][_0x21a934(0x154)](_0x35a51b))!=null?_0x28dbea:null;}[_0x40438e(0x114)](){const _0x3253f1=_0x40438e;this[_0x3253f1(0x140)]['getTypeOfUnitAdded$'](_0x24a06b[_0x3253f1(0x14c)])[_0x3253f1(0x107)](_0x505794(this['dispose$']))[_0x3253f1(0x157)](async _0x1f8c57=>{const _0x4c5770=_0x3253f1,_0x2ee9ce=_0x1f8c57[_0x4c5770(0x126)]();this[_0x4c5770(0x118)][_0x4c5770(0x1a5)](_0x2ee9ce)||this['_startLiveShareCoordinator'](_0x2ee9ce);}),this[_0x3253f1(0x140)][_0x3253f1(0x1a2)](_0x24a06b[_0x3253f1(0x14c)])[_0x3253f1(0x107)](_0x505794(this[_0x3253f1(0x1aa)]))[_0x3253f1(0x157)](_0x58f199=>{const _0x500a5b=_0x3253f1,_0x4ab110=_0x58f199['getUnitId'](),_0x162aa6=this[_0x500a5b(0x118)]['get'](_0x4ab110);_0x162aa6==null||_0x162aa6[_0x500a5b(0x121)]();});}async[_0x40438e(0x122)](_0x1b4687){const _0x332449=_0x40438e,_0x22feac=await this[_0x332449(0x10a)][_0x332449(0x16f)](_0x1b4687),_0x571083=this['_injector']['createInstance'](N,_0x1b4687,_0x22feac);return _0x571083['init'](),this[_0x332449(0x118)][_0x332449(0x18a)](_0x1b4687,_0x571083),_0x571083;}};S=Y([_(0x0,_0x5a3693),_(0x1,_0x515096(_0x2eaef8)),_(0x2,_0x515096(_0x3bde2f))],S);var c=(_0x3f43e7=>(_0x3f43e7['OFFLINE']=_0x40438e(0x10d),_0x3f43e7[_0x40438e(0x12b)]='idle',_0x3f43e7[_0x40438e(0x119)]='following',_0x3f43e7['NOT_FOLLOWING']=_0x40438e(0x13c),_0x3f43e7[_0x40438e(0x17f)]='presenting',_0x3f43e7))(c||{});const Ce=_0x40438e(0x123),De=0xc8;let N=class extends _0x470f4e{constructor(_0x42fa58,_0x56d566,_0xe9c346,_0x4c3f5b,_0x295bfc){const _0x4f97f9=_0x40438e;super(),u(this,_0x4f97f9(0x145),new _0x4119dd('idle')),u(this,_0x4f97f9(0x15d),this['_status$'][_0x4f97f9(0x146)]()),u(this,_0x4f97f9(0x114),!0x1),u(this,_0x4f97f9(0x17e),null),u(this,_0x4f97f9(0x132),null),(this[_0x4f97f9(0x166)]=_0x42fa58,this[_0x4f97f9(0x19c)]=_0x56d566,this[_0x4f97f9(0x111)]=_0xe9c346,this[_0x4f97f9(0x16b)]=_0x4c3f5b,this[_0x4f97f9(0x181)]=_0x295bfc);}get['_status'](){const _0x2fb33e=_0x40438e;return this[_0x2fb33e(0x145)][_0x2fb33e(0x13d)]();}[_0x40438e(0x121)](){const _0x45c693=_0x40438e;var _0x1cb889;(_0x1cb889=this[_0x45c693(0x17e)])==null||_0x1cb889[_0x45c693(0x121)](),this[_0x45c693(0x145)][_0x45c693(0x130)](_0x45c693(0x194)),this[_0x45c693(0x145)][_0x45c693(0x169)]();}[_0x40438e(0x161)](){const _0x46a17f=_0x40438e;return this[_0x46a17f(0x14f)];}[_0x40438e(0x14e)](){const _0x56f2d8=_0x40438e;this[_0x56f2d8(0x114)]||(this[_0x56f2d8(0x114)]=!0x0,this[_0x56f2d8(0x19c)][_0x56f2d8(0x133)][_0x56f2d8(0x107)](_0x505794(this[_0x56f2d8(0x1aa)]))[_0x56f2d8(0x157)](_0x1333f1=>{const _0x59bf20=_0x56f2d8;switch(_0x1333f1){case _0x1a4938['OFFLINE']:this['_handleOffline']();break;case _0x1a4938[_0x59bf20(0x159)]:this['_handleOnline']();break;}}),this[_0x56f2d8(0x19c)][_0x56f2d8(0x109)]['pipe'](_0x505794(this['dispose$']))[_0x56f2d8(0x157)](_0x4ea196=>{const _0x35e9bb=_0x56f2d8,{eventID:_0x65fbbc}=_0x4ea196;switch(_0x65fbbc){case _0x5527b9[_0x35e9bb(0x182)]:this[_0x35e9bb(0x112)](_0x4ea196);break;case _0x5527b9['LIVESHARE_OPERATION']:this[_0x35e9bb(0x125)](_0x4ea196);break;case _0x5527b9[_0x35e9bb(0x16d)]:this[_0x35e9bb(0x120)]();break;case _0x5527b9[_0x35e9bb(0x1a7)]:this['_handleNewChangeSets'](_0x4ea196);break;}}));}[_0x40438e(0x11f)](){const _0x49b2d9=_0x40438e;this[_0x49b2d9(0x19c)][_0x49b2d9(0x147)]({'eventID':_0x5527b9['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x49b2d9(0x166)],'userID':this[_0x49b2d9(0x19c)][_0x49b2d9(0x11c)]()}},this[_0x49b2d9(0x166)]);}['stopPresenting'](){const _0x3bc702=_0x40438e;this[_0x3bc702(0x14f)]===_0x3bc702(0x16a)&&(this[_0x3bc702(0x145)][_0x3bc702(0x130)](_0x3bc702(0x194)),this[_0x3bc702(0x19c)][_0x3bc702(0x147)]({'eventID':_0x5527b9[_0x3bc702(0x16d)],'data':{'unitID':this[_0x3bc702(0x166)]}},this[_0x3bc702(0x166)]));}[_0x40438e(0x108)](){const _0x3cf05a=_0x40438e;this['_status']===_0x3cf05a(0x13c)&&(this[_0x3cf05a(0x145)][_0x3cf05a(0x130)](_0x3cf05a(0x137)),this[_0x3cf05a(0x138)]());}[_0x40438e(0x158)](){const _0x5878a9=_0x40438e;this[_0x5878a9(0x14f)]===_0x5878a9(0x137)&&this[_0x5878a9(0x193)]();}['_handleNewHost'](_0xcb9d73){const _0x8d8012=_0x40438e,{presenter:_0x336bb7}=_0xcb9d73[_0x8d8012(0x129)],_0x22c428=this[_0x8d8012(0x19c)][_0x8d8012(0x11c)]();this[_0x8d8012(0x132)]=_0x336bb7,_0x336bb7===_0x22c428?(this[_0x8d8012(0x193)](),this['_startPresenting']()):this[_0x8d8012(0x14f)]!==_0x8d8012(0x13c)&&(this[_0x8d8012(0x15a)](),this[_0x8d8012(0x138)]());}['_fetchOperations'](){const _0x3a117a=_0x40438e,_0xe4c44={'eventID':_0x5527b9[_0x3a117a(0x10f)]};this['_collabSession']['send'](_0xe4c44,this[_0x3a117a(0x166)]);}['_handleTerminate'](){const _0x298517=_0x40438e;this[_0x298517(0x132)]=null,this['_status']!==_0x298517(0x16a)&&this['_beIdle']();}[_0x40438e(0x177)](_0x49c8b2){const _0x3b30d7=_0x40438e;if(this['_status']===_0x3b30d7(0x137)&&this[_0x3b30d7(0x132)]===_0x49c8b2[_0x3b30d7(0x129)][_0x3b30d7(0x163)]){const _0x3c557d=_0x14e3f7(_0x49c8b2[_0x3b30d7(0x129)])[_0x3b30d7(0x15f)]['reverse']()['find'](_0x5be341=>_0x5be341['id']===_0x35c6e2['id']);if(_0x3c557d){const _0x2ee0f8=_0x3c557d['params'][_0x3b30d7(0x19f)],_0x571796=_0x3c557d['params'][_0x3b30d7(0x19a)]['id'];setTimeout(()=>{const _0x774e56=_0x3b30d7;this[_0x774e56(0x181)]['executeCommand'](_0xcbc908['id'],{'unitId':_0x2ee0f8,'subUnitId':_0x571796},{'fromCollab':!0x0});});}}}[_0x40438e(0x195)](){const _0x1e57c9=_0x40438e;this[_0x1e57c9(0x145)][_0x1e57c9(0x130)](_0x1e57c9(0x16a));const _0x3bf156=new Map(),_0x11a84d=this['_commandDisposable']=new _0x557a96();_0x11a84d[_0x1e57c9(0x165)](_0x162835(()=>{const _0x31867d=_0x1e57c9;_0x3bf156[_0x31867d(0x160)](_0x4d6572=>_0x4d6572[_0x31867d(0x169)]()),_0x3bf156['clear']();})),_0x11a84d[_0x1e57c9(0x165)](this['_commandService'][_0x1e57c9(0x174)](_0x1493ad=>{const _0x2e0ccb=_0x1e57c9;var _0x46004e;if(_0x1493ad[_0x2e0ccb(0x13a)]!==_0x54eed1['OPERATION']||!this[_0x2e0ccb(0x16b)][_0x2e0ccb(0x139)](_0x1493ad['id']))return;const {id:_0x555b04}=_0x1493ad;let _0x2f357c;_0x3bf156['has'](_0x555b04)?_0x2f357c=_0x3bf156['get'](_0x555b04):(_0x2f357c=new _0x26010b(),_0x3bf156[_0x2e0ccb(0x18a)](_0x555b04,_0x2f357c),_0x2f357c['pipe'](_0x55e0fd((_0x46004e=this[_0x2e0ccb(0x111)][_0x2e0ccb(0x162)](Ce))!=null?_0x46004e:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2e0ccb(0x157)](_0x23275d=>{const _0x5692cc=_0x2e0ccb;this[_0x5692cc(0x19c)][_0x5692cc(0x147)]({'eventID':_0x5527b9[_0x5692cc(0x141)],'data':{'unitID':this[_0x5692cc(0x166)],'operations':{[_0x23275d['id']]:{'id':_0x23275d['id'],'params':JSON[_0x5692cc(0x1a8)](_0x23275d[_0x5692cc(0x172)])}}}},this[_0x5692cc(0x166)]);})),_0x2f357c[_0x2e0ccb(0x130)](_0x1493ad);})),this[_0x1e57c9(0x16b)][_0x1e57c9(0x197)](this[_0x1e57c9(0x166)])[_0x1e57c9(0x160)](_0x147df5=>this[_0x1e57c9(0x19c)][_0x1e57c9(0x147)]({'eventID':_0x5527b9[_0x1e57c9(0x141)],'data':{'unitID':this[_0x1e57c9(0x166)],'operations':{[_0x147df5['id']]:{'id':_0x147df5['id'],'params':JSON[_0x1e57c9(0x1a8)](_0x147df5['params'])}}}},this[_0x1e57c9(0x166)]));}[_0x40438e(0x15a)](){const _0xef736c=_0x40438e;var _0x595d01;this['_status$'][_0xef736c(0x130)](_0xef736c(0x194)),(_0x595d01=this[_0xef736c(0x17e)])==null||_0x595d01[_0xef736c(0x121)](),this['_commandDisposable']=null;}[_0x40438e(0x138)](){const _0x41ea4f=_0x40438e;var _0x5ad979;(_0x5ad979=this['_commandDisposable'])==null||_0x5ad979[_0x41ea4f(0x121)](),this[_0x41ea4f(0x145)][_0x41ea4f(0x130)](_0x41ea4f(0x137));}[_0x40438e(0x179)](){const _0x502f41=_0x40438e;var _0x2fb286;this[_0x502f41(0x145)][_0x502f41(0x130)]('idle'),(_0x2fb286=this[_0x502f41(0x17e)])==null||_0x2fb286[_0x502f41(0x121)](),this[_0x502f41(0x17e)]=null;}[_0x40438e(0x193)](){const _0x34b869=_0x40438e;var _0x29a306;this['_status$'][_0x34b869(0x130)](_0x34b869(0x13c)),(_0x29a306=this[_0x34b869(0x17e)])==null||_0x29a306[_0x34b869(0x121)]();}[_0x40438e(0x125)](_0xbd2e1a){const _0x407f16=_0x40438e;if([_0x407f16(0x16a),_0x407f16(0x13c),_0x407f16(0x10d)][_0x407f16(0x153)](this['_status'])||!_0xbd2e1a[_0x407f16(0x129)][_0x407f16(0x180)]||_0xbd2e1a['data'][_0x407f16(0x180)]===this[_0x407f16(0x19c)][_0x407f16(0x11c)]())return;this[_0x407f16(0x14f)]===_0x407f16(0x194)&&this[_0x407f16(0x138)]();const _0x2722c6=_0xbd2e1a[_0x407f16(0x129)][_0x407f16(0x198)];Object['values'](_0x2722c6)[_0x407f16(0x160)](_0x5f5ccd=>{const _0x57e662=_0x407f16;this[_0x57e662(0x181)][_0x57e662(0x185)](_0x5f5ccd['id'],_0x5f5ccd['params']?JSON[_0x57e662(0x13e)](_0x5f5ccd[_0x57e662(0x172)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x313e26=_0x40438e;var _0x2200d4;this['_status$'][_0x313e26(0x130)]('offline'),(_0x2200d4=this['_commandDisposable'])==null||_0x2200d4[_0x313e26(0x121)]();}[_0x40438e(0x191)](){const _0x1df844=_0x40438e;this[_0x1df844(0x145)][_0x1df844(0x130)](_0x1df844(0x194)),this['_fetchOperations']();}};N=Y([_(0x2,_0x18693d),_(0x3,_0x515096(L)),_(0x4,_0x1b75b0)],N);function Le(){const _0x22e9f1=_0x40438e,_0x48f933=_0x54980e(S),_0x2a1eb8=_0x54980e(_0x5a3693),_0x4fe1a9=_0x2371ea(()=>_0x2a1eb8[_0x22e9f1(0x1a4)](_0x24a06b[_0x22e9f1(0x14c)]),void 0x0,!0x1,[]),[_0x58aed3,_0x405f7a]=_0x89ec1e(null),[_0x568915,_0x58e9b0]=_0x89ec1e(c[_0x22e9f1(0x12b)]),_0x419775=_0x4f23fd(null);return _0x33dad(()=>(_0x4fe1a9&&_0x48f933['getLiveShareCoordinator'](_0x4fe1a9[_0x22e9f1(0x126)]())[_0x22e9f1(0x18e)](_0x374c0f=>{const _0x3c4f83=_0x22e9f1;_0x405f7a(_0x374c0f),_0x419775[_0x3c4f83(0x1a1)]=_0x374c0f[_0x3c4f83(0x15d)][_0x3c4f83(0x157)](_0x38cdce=>{_0x58e9b0(_0x38cdce);});}),()=>{const _0x330361=_0x22e9f1;var _0x4d4ebe;(_0x4d4ebe=_0x419775['current'])==null||_0x4d4ebe[_0x330361(0x156)](),_0x419775['current']=null;}),[_0x4fe1a9,_0x48f933]),_0x58aed3?_0x282781(_0x45eb67,{'align':'end','disabled':_0x568915===c[_0x22e9f1(0x11d)],'className':_0x22e9f1(0x187),'overlay':_0x282781(Re,{'status':_0x568915,'coordinator':_0x58aed3}),'children':_0x282781(_0x22e9f1(0x196),{'className':_0x2be6db(_0x22e9f1(0x170),{'univer-cursor-not-allowed':_0x568915===c[_0x22e9f1(0x11d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x568915!==c['OFFLINE']}),'type':_0x22e9f1(0x196),'children':_0x282781(W,{'className':'univer-size-4'})})}):null;}function Re(_0x437467){const _0xaf73a4=_0x40438e,{status:_0xc7ed2f,coordinator:_0x177b7c}=_0x437467;switch(_0xc7ed2f){case c[_0xaf73a4(0x12b)]:return _0x282781($e,{'coordinator':_0x177b7c});case c[_0xaf73a4(0x119)]:return _0x282781(xe,{'coordinator':_0x177b7c});case c['NOT_FOLLOWING']:return _0x282781(Pe,{'coordinator':_0x177b7c});case c[_0xaf73a4(0x11d)]:return _0x282781(Te,{});case c[_0xaf73a4(0x17f)]:return _0x282781(Ae,{'coordinator':_0x177b7c});default:return null;}}function $e(_0x120ab4){const _0x162a68=_0x40438e,{coordinator:_0x203df8}=_0x120ab4;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781(_0x162a68(0x136),{'className':_0x162a68(0x17b),'children':_0x162a68(0x199)}),_0x282781(_0x18eae9,{'onClick':()=>_0x203df8[_0x162a68(0x11f)](),'children':_0x162a68(0x1a9)})]});}function xe(_0x46b877){const _0xd05436=_0x40438e,{coordinator:_0x43b589}=_0x46b877;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781('div',{'className':_0xd05436(0x17b),'children':_0xd05436(0x183)}),_0x282781(_0x18eae9,{'onClick':()=>_0x43b589[_0xd05436(0x158)](),'children':'Stop\x20following'})]});}function Pe(_0x23d975){const _0x63f7a4=_0x40438e,{coordinator:_0x1a2993}=_0x23d975;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781(_0x63f7a4(0x136),{'className':_0x63f7a4(0x17b),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x282781(_0x18eae9,{'variant':'text','onClick':()=>_0x1a2993[_0x63f7a4(0x108)](),'children':_0x63f7a4(0x117)})]});}function Ae(_0x2e9bdc){const _0x19c77d=_0x40438e,{coordinator:_0x5f5c03}=_0x2e9bdc;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781('div',{'className':_0x19c77d(0x17b),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x282781(_0x18eae9,{'variant':_0x19c77d(0x128),'onClick':()=>_0x5f5c03[_0x19c77d(0x11e)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x1a4dda=_0x40438e;return _0x282781(_0x2d1d5d,{'children':_0x1a4dda(0x173)});}var Fe=Object[_0x40438e(0x17d)],He=(_0xe36e06,_0x328326,_0xedbe7e,_0x1a4370)=>{for(var _0x405fd4=_0x1a4370>0x1?void 0x0:_0x1a4370?Fe(_0x328326,_0xedbe7e):_0x328326,_0x3bc04c=_0xe36e06['length']-0x1,_0x5503cc;_0x3bc04c>=0x0;_0x3bc04c--)(_0x5503cc=_0xe36e06[_0x3bc04c])&&(_0x405fd4=_0x5503cc(_0x405fd4)||_0x405fd4);return _0x405fd4;},A=(_0x3ab088,_0x426d4c)=>(_0x51cd35,_0x494648)=>_0x426d4c(_0x51cd35,_0x494648,_0x3ab088);let m=class extends _0x142380{constructor(_0x3be079,_0x59b39d){const _0x2daf53=_0x40438e;super(),this[_0x2daf53(0x1a0)]=_0x3be079,this['_uiPartsService']=_0x59b39d,this[_0x2daf53(0x19b)]();}['_mountLiveShare'](){const _0x229f65=_0x40438e;this[_0x229f65(0x13b)](this['_uiPartsService'][_0x229f65(0x175)](_0x5427fd[_0x229f65(0x10c)],()=>_0x266a27(Le,this[_0x229f65(0x1a0)])));}};m=He([A(0x0,_0x515096(_0x2eaef8)),A(0x1,_0x13ef6b)],m);const ye='live-share.config',T={};var Ue=Object[_0x40438e(0x17d)],Ve=(_0x47c872,_0x4d30bd,_0x9de0a7,_0x3752d3)=>{const _0x11f663=_0x40438e;for(var _0x42a8af=_0x3752d3>0x1?void 0x0:_0x3752d3?Ue(_0x4d30bd,_0x9de0a7):_0x4d30bd,_0x32da67=_0x47c872[_0x11f663(0x188)]-0x1,_0x15a074;_0x32da67>=0x0;_0x32da67--)(_0x15a074=_0x47c872[_0x32da67])&&(_0x42a8af=_0x15a074(_0x42a8af)||_0x42a8af);return _0x42a8af;},je=(_0x13edb2,_0x5be002)=>(_0x3620f0,_0x32c9d5)=>_0x5be002(_0x3620f0,_0x32c9d5,_0x13edb2);let I=class extends _0x142380{constructor(_0x270207){const _0x5b80cf=_0x40438e;super(),this['_liveShareService']=_0x270207,this[_0x5b80cf(0x114)]();}[_0x40438e(0x114)](){const _0x1a0f76=_0x40438e;[_0x1bfcb6['id'],_0x15a66d['id'],_0xcbc908['id']][_0x1a0f76(0x160)](_0x43f413=>{const _0x266d04=_0x1a0f76;this['disposeWithMe'](this[_0x266d04(0x16b)][_0x266d04(0x10b)](_0x43f413));});}};I=Ve([je(0x0,_0x515096(L))],I);var Me=Object[_0x40438e(0x190)],ke=Object[_0x40438e(0x17d)],Ge=(_0x72d1ae,_0x42e855,_0x3afd20)=>_0x42e855 in _0x72d1ae?Me(_0x72d1ae,_0x42e855,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3afd20}):_0x72d1ae[_0x42e855]=_0x3afd20,We=(_0x5e1741,_0x2c0306,_0xaca0d9,_0x339251)=>{const _0x332944=_0x40438e;for(var _0x531e36=_0x339251>0x1?void 0x0:_0x339251?ke(_0x2c0306,_0xaca0d9):_0x2c0306,_0x26a81e=_0x5e1741[_0x332944(0x188)]-0x1,_0x581a77;_0x26a81e>=0x0;_0x26a81e--)(_0x581a77=_0x5e1741[_0x26a81e])&&(_0x531e36=_0x581a77(_0x531e36)||_0x531e36);return _0x531e36;},F=(_0x1cc530,_0x5974cc)=>(_0x8b6089,_0x2703b8)=>_0x5974cc(_0x8b6089,_0x2703b8,_0x1cc530),B=(_0x1d3557,_0x3c23f8,_0x16bddb)=>Ge(_0x1d3557,typeof _0x3c23f8!=_0x40438e(0x14d)?_0x3c23f8+'':_0x3c23f8,_0x16bddb);const Ye=_0x40438e(0x12e);let b=class extends _0x277eca{constructor(_0x595d93=T,_0x50ea94,_0x53ea49){const _0x4411b1=_0x40438e;super(),this['_config']=_0x595d93,this['_injector']=_0x50ea94,this['_configService']=_0x53ea49;const {..._0x2d8609}=_0x3187af({},T,this[_0x4411b1(0x16e)]);this['_configService'][_0x4411b1(0x189)](ye,_0x2d8609);}[_0x40438e(0x15b)](){const _0x7abc44=_0x40438e;_0x260ef6(this[_0x7abc44(0x1a0)],_0x26d4c0([[L],[S],[I],[m]],this[_0x7abc44(0x16e)]['override'])),_0x154532(this[_0x7abc44(0x1a0)],[[I]]);}[_0x40438e(0x18b)](){const _0x1f28ee=_0x40438e;_0x154532(this[_0x1f28ee(0x1a0)],[[m]]);}};B(b,_0x40438e(0x13a),_0x24a06b[_0x40438e(0x116)]),B(b,_0x40438e(0x16c),Ye),b=We([_0x120121(_0xc0232f),F(0x1,_0x515096(_0x2eaef8)),F(0x2,_0x18693d)],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 _0x3d115b=_0x2aa9;(function(_0x2765d0,_0x182ad0){const _0x88694a=_0x2aa9,_0x29f9b2=_0x2765d0();while(!![]){try{const _0x3f5a28=-parseInt(_0x88694a(0x1c7))/0x1+parseInt(_0x88694a(0x1fc))/0x2+parseInt(_0x88694a(0x1ef))/0x3*(parseInt(_0x88694a(0x1a1))/0x4)+parseInt(_0x88694a(0x1fa))/0x5*(-parseInt(_0x88694a(0x1d4))/0x6)+-parseInt(_0x88694a(0x207))/0x7*(parseInt(_0x88694a(0x200))/0x8)+parseInt(_0x88694a(0x1ac))/0x9+parseInt(_0x88694a(0x21a))/0xa*(parseInt(_0x88694a(0x19e))/0xb);if(_0x3f5a28===_0x182ad0)break;else _0x29f9b2['push'](_0x29f9b2['shift']());}catch(_0x3b6548){_0x29f9b2['push'](_0x29f9b2['shift']());}}}(_0x56b3,0x6b20a));var J=Object[_0x3d115b(0x1bf)],K=(_0x137beb,_0x2edb27,_0x120002)=>_0x2edb27 in _0x137beb?J(_0x137beb,_0x2edb27,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x120002}):_0x137beb[_0x2edb27]=_0x120002,u=(_0x4151d0,_0x402d2f,_0x3a11ad)=>K(_0x4151d0,typeof _0x402d2f!=_0x3d115b(0x1e8)?_0x402d2f+'':_0x402d2f,_0x3a11ad);import{Disposable as _0x87d3da,toDisposable as _0x2af3fb,IUniverInstanceService as _0x1d384b,Inject as _0x577b1e,Injector as _0x4e118f,IConfigService as _0x332024,ICommandService as _0x5b24bd,RxDisposable as _0x346b59,UniverInstanceType as _0x3088b9,DisposableCollection as _0x34f591,CommandType as _0x1b9ff0,DependentOn as _0x3cc453,Plugin as _0x4b1824,merge as _0x4a94f8,registerDependencies as _0x51b5fa,mergeOverrideWithDependencies as _0x215342,touchDependencies as _0x2b00b4}from'@univerjs/core';import{useDependency as _0x32938e,useObservable as _0x305896,IUIPartsService as _0x5c986b,BuiltInUIPart as _0x523e83,connectInjector as _0x32b998}from'@univerjs/ui';import{jsx as _0x567ad8,jsxs as _0x1873ad,Fragment as _0xaba553}from'react/jsx-runtime';import{Dropdown as _0x1d0e01,clsx as _0xc920a1,Button as _0x473b7d}from'@univerjs/design';import{useRef as _0x1df2a9,createElement as _0x267537,forwardRef as _0x2c3eb3,useState as _0x4d351d,useEffect as _0x463e26}from'react';import{CollaborationEvent as _0x993281,parseProtocolChangeset as _0xe3d24e}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x5b388b,SessionStatus as _0x5e3c97,UniverCollaborationClientPlugin as _0x545bb7}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4db54c,SetWorksheetActiveOperation as _0x871b64}from'@univerjs/sheets';function _0x2aa9(_0x390fb9,_0x13cd74){_0x390fb9=_0x390fb9-0x17f;const _0x56b3c6=_0x56b3();let _0x2aa949=_0x56b3c6[_0x390fb9];return _0x2aa949;}import{BehaviorSubject as _0x3dca77,Subject as _0x1bf23e}from'rxjs';import{takeUntil as _0x4ccafe,throttleTime as _0x10a81f}from'rxjs/operators';import{SetZoomRatioOperation as _0x2fe506,SetScrollOperation as _0x33c19d}from'@univerjs/sheets-ui';function k({ref:_0x9b34d2,..._0x2290a9}){const _0x306692=_0x3d115b,{icon:_0x2c2160,id:_0x459ded,className:_0x14210c,extend:_0x6c6fa3,..._0x48aaf8}=_0x2290a9,_0x17dc02=(_0x306692(0x1b4)+_0x459ded+'\x20'+(_0x14210c||''))[_0x306692(0x219)](),_0x36eccc=_0x1df2a9('_'+Oe());return G(_0x2c2160,''+_0x459ded,{'defIds':_0x2c2160[_0x306692(0x21d)],'idSuffix':_0x36eccc['current']},{'ref':_0x9b34d2,'className':_0x17dc02,..._0x48aaf8},_0x6c6fa3);}function G(_0xf3815b,_0x2c5615,_0x355677,_0x545477,_0x188599){const _0xdead6d=_0x3d115b;return _0x267537(_0xf3815b[_0xdead6d(0x201)],{'key':_0x2c5615,...be(_0xf3815b,_0x355677,_0x188599),..._0x545477},(Ee(_0xf3815b,_0x355677)[_0xdead6d(0x222)]||[])[_0xdead6d(0x20e)]((_0x3592a1,_0x57c104)=>G(_0x3592a1,_0x2c5615+'-'+_0xf3815b['tag']+'-'+_0x57c104,_0x355677,void 0x0,_0x188599)));}function be(_0x4158dd,_0x4e0612,_0x8fc515){const _0x4da175=_0x3d115b,_0x33f590={..._0x4158dd['attrs']};_0x8fc515!=null&&_0x8fc515['colorChannel1']&&_0x33f590[_0x4da175(0x1ca)]===_0x4da175(0x194)&&(_0x33f590[_0x4da175(0x1ca)]=_0x8fc515[_0x4da175(0x194)]),_0x4158dd['tag']===_0x4da175(0x203)&&_0x33f590['id']&&(_0x33f590['id']=_0x33f590['id']+_0x4e0612['idSuffix']),Object[_0x4da175(0x1a5)](_0x33f590)[_0x4da175(0x19b)](([_0x3d452f,_0x5ae30b])=>{const _0x56acb6=_0x4da175;_0x3d452f===_0x56acb6(0x203)&&typeof _0x5ae30b==_0x56acb6(0x1ee)&&(_0x33f590[_0x3d452f]=_0x5ae30b[_0x56acb6(0x1e2)](/url\(#(.*)\)/,'url(#$1'+_0x4e0612[_0x56acb6(0x1ea)]+')'));});const {defIds:_0x400008}=_0x4e0612;return!_0x400008||_0x400008[_0x4da175(0x19a)]===0x0||(_0x4158dd[_0x4da175(0x201)]===_0x4da175(0x220)&&_0x33f590['xlink:href']&&(_0x33f590['xlink:href']=_0x33f590[_0x4da175(0x18f)]+_0x4e0612[_0x4da175(0x1ea)]),Object[_0x4da175(0x1a5)](_0x33f590)[_0x4da175(0x19b)](([_0x37b09d,_0x4875d9])=>{const _0x1783e6=_0x4da175;typeof _0x4875d9=='string'&&(_0x33f590[_0x37b09d]=_0x4875d9[_0x1783e6(0x1e2)](/url\(#(.*)\)/,_0x1783e6(0x190)+_0x4e0612[_0x1783e6(0x1ea)]+')'));})),_0x33f590;}function Ee(_0xe8b5eb,_0x5c94b1){const _0x2c2c97=_0x3d115b;var _0x5035e3;const {defIds:_0x473d9f}=_0x5c94b1;return!_0x473d9f||_0x473d9f[_0x2c2c97(0x19a)]===0x0?_0xe8b5eb:_0xe8b5eb[_0x2c2c97(0x201)]==='defs'&&((_0x5035e3=_0xe8b5eb[_0x2c2c97(0x222)])!=null&&_0x5035e3['length'])?{..._0xe8b5eb,'children':_0xe8b5eb[_0x2c2c97(0x222)][_0x2c2c97(0x20e)](_0x2ba542=>typeof _0x2ba542[_0x2c2c97(0x202)]['id']==_0x2c2c97(0x1ee)&&_0x473d9f&&_0x473d9f[_0x2c2c97(0x204)](_0x2ba542[_0x2c2c97(0x202)]['id'])?{..._0x2ba542,'attrs':{..._0x2ba542[_0x2c2c97(0x202)],'id':_0x2ba542[_0x2c2c97(0x202)]['id']+_0x5c94b1['idSuffix']}}:_0x2ba542)}:_0xe8b5eb;}function Oe(){const _0x528b48=_0x3d115b;return Math['random']()['toString'](0x24)[_0x528b48(0x1ff)](0x2,0x8);}k[_0x3d115b(0x1e1)]='UniverIcon';const we={'tag':_0x3d115b(0x1a0),'attrs':{'xmlns':_0x3d115b(0x1be),'fill':'none','viewBox':_0x3d115b(0x1e5),'width':_0x3d115b(0x221),'height':'1em'},'children':[{'tag':_0x3d115b(0x18c),'attrs':{'fill':'currentColor','d':_0x3d115b(0x1c2)}},{'tag':_0x3d115b(0x18c),'attrs':{'fill':_0x3d115b(0x21e),'d':_0x3d115b(0x1e0),'fillRule':'evenodd','clipRule':_0x3d115b(0x216)}}]},W=_0x2c3eb3(function(_0x4a83c5,_0x589741){const _0x731f28=_0x3d115b;return _0x267537(k,Object['assign']({},_0x4a83c5,{'id':_0x731f28(0x1bb),'ref':_0x589741,'icon':we}));});W[_0x3d115b(0x1e1)]=_0x3d115b(0x1c1);class L extends _0x87d3da{constructor(){const _0x1fd972=_0x3d115b;super(...arguments),u(this,_0x1fd972(0x20c),new Set()),u(this,'_reporters',new Set());}[_0x3d115b(0x18a)](_0x2994cb){const _0x208654=_0x3d115b;return this[_0x208654(0x20c)][_0x208654(0x1f4)](_0x2994cb),_0x2af3fb(()=>this['_sharedOperations'][_0x208654(0x20a)](_0x2994cb));}[_0x3d115b(0x1c5)](_0x4f6963){const _0x20e902=_0x3d115b;return this[_0x20e902(0x1d3)][_0x20e902(0x1f4)](_0x4f6963),_0x2af3fb(()=>this['_reporters']['delete'](_0x4f6963));}[_0x3d115b(0x189)](_0x3aea5b){const _0x5156ad=_0x3d115b;return this[_0x5156ad(0x20c)]['has'](_0x3aea5b);}['getInitialStates'](_0xba6e91){const _0x2d429d=_0x3d115b;return Array[_0x2d429d(0x1d5)](this[_0x2d429d(0x1d3)])['map'](_0x3c9c27=>_0x3c9c27(_0xba6e91));}}var Ne=Object[_0x3d115b(0x184)],Y=(_0x41ce2c,_0x350d64,_0xf01484,_0x10de0f)=>{const _0x426fb4=_0x3d115b;for(var _0x5d0ea8=_0x10de0f>0x1?void 0x0:_0x10de0f?Ne(_0x350d64,_0xf01484):_0x350d64,_0x2eeacc=_0x41ce2c[_0x426fb4(0x19a)]-0x1,_0x175061;_0x2eeacc>=0x0;_0x2eeacc--)(_0x175061=_0x41ce2c[_0x2eeacc])&&(_0x5d0ea8=_0x175061(_0x5d0ea8)||_0x5d0ea8);return _0x5d0ea8;},_=(_0x1e0ee7,_0x1aa014)=>(_0x1e0e61,_0x95ab10)=>_0x1aa014(_0x1e0e61,_0x95ab10,_0x1e0ee7);let S=class extends _0x346b59{constructor(_0x102359,_0x4d4f06,_0x5e3862){const _0x481dba=_0x3d115b;super(),u(this,_0x481dba(0x18d),new Map()),(this[_0x481dba(0x1b5)]=_0x102359,this[_0x481dba(0x1c4)]=_0x4d4f06,this[_0x481dba(0x18b)]=_0x5e3862,this['_init']());}async[_0x3d115b(0x1b2)](_0x5c9d68){const _0x3d3c71=_0x3d115b;return this[_0x3d3c71(0x18d)][_0x3d3c71(0x1dd)](_0x5c9d68)||await this[_0x3d3c71(0x1aa)](_0x5c9d68),this[_0x3d3c71(0x18d)][_0x3d3c71(0x182)](_0x5c9d68);}[_0x3d115b(0x212)](_0x356585){const _0x408bcb=_0x3d115b;var _0x2664f7;return(_0x2664f7=this[_0x408bcb(0x18d)][_0x408bcb(0x182)](_0x356585))!=null?_0x2664f7:null;}[_0x3d115b(0x1da)](){const _0x21983f=_0x3d115b;this[_0x21983f(0x1b5)]['getTypeOfUnitAdded$'](_0x3088b9[_0x21983f(0x1d0)])[_0x21983f(0x191)](_0x4ccafe(this[_0x21983f(0x1a8)]))[_0x21983f(0x21f)](async _0x212792=>{const _0xd212cf=_0x21983f,_0x4f5acd=_0x212792[_0xd212cf(0x21c)]();this[_0xd212cf(0x18d)][_0xd212cf(0x1dd)](_0x4f5acd)||this['_startLiveShareCoordinator'](_0x4f5acd);}),this[_0x21983f(0x1b5)][_0x21983f(0x1db)](_0x3088b9[_0x21983f(0x1d0)])[_0x21983f(0x191)](_0x4ccafe(this['dispose$']))[_0x21983f(0x21f)](_0x1d5399=>{const _0x515aa3=_0x21983f,_0xcd8e77=_0x1d5399[_0x515aa3(0x21c)](),_0x43a71a=this[_0x515aa3(0x18d)][_0x515aa3(0x182)](_0xcd8e77);_0x43a71a==null||_0x43a71a[_0x515aa3(0x1eb)]();});}async[_0x3d115b(0x1aa)](_0x45bf60){const _0x4c98dd=_0x3d115b,_0x3dde04=await this[_0x4c98dd(0x18b)][_0x4c98dd(0x1a7)](_0x45bf60),_0x296ae7=this[_0x4c98dd(0x1c4)][_0x4c98dd(0x205)](N,_0x45bf60,_0x3dde04);return _0x296ae7[_0x4c98dd(0x218)](),this[_0x4c98dd(0x18d)]['set'](_0x45bf60,_0x296ae7),_0x296ae7;}};S=Y([_(0x0,_0x1d384b),_(0x1,_0x577b1e(_0x4e118f)),_(0x2,_0x577b1e(_0x5b388b))],S);var c=(_0x118b3b=>(_0x118b3b[_0x3d115b(0x217)]=_0x3d115b(0x210),_0x118b3b[_0x3d115b(0x1cc)]='idle',_0x118b3b[_0x3d115b(0x1f3)]=_0x3d115b(0x1f6),_0x118b3b[_0x3d115b(0x1c3)]='not-following',_0x118b3b[_0x3d115b(0x195)]=_0x3d115b(0x196),_0x118b3b))(c||{});const Ce=_0x3d115b(0x1f2),De=0xc8;let N=class extends _0x346b59{constructor(_0x4944fb,_0x298705,_0x6469cc,_0x422494,_0x938e0d){const _0x12af2e=_0x3d115b;super(),u(this,_0x12af2e(0x1fb),new _0x3dca77('idle')),u(this,_0x12af2e(0x17f),this[_0x12af2e(0x1fb)][_0x12af2e(0x1d6)]()),u(this,'_init',!0x1),u(this,'_commandDisposable',null),u(this,_0x12af2e(0x1df),null),(this[_0x12af2e(0x1d7)]=_0x4944fb,this['_collabSession']=_0x298705,this[_0x12af2e(0x1e7)]=_0x6469cc,this[_0x12af2e(0x1cb)]=_0x422494,this['_commandService']=_0x938e0d);}get[_0x3d115b(0x1f8)](){const _0x57172b=_0x3d115b;return this[_0x57172b(0x1fb)][_0x57172b(0x208)]();}['dispose'](){const _0x46155a=_0x3d115b;var _0x30e668;(_0x30e668=this[_0x46155a(0x20f)])==null||_0x30e668[_0x46155a(0x1eb)](),this['_status$'][_0x46155a(0x1b3)]('idle'),this[_0x46155a(0x1fb)][_0x46155a(0x213)]();}[_0x3d115b(0x1ab)](){const _0x3803e3=_0x3d115b;return this[_0x3803e3(0x1f8)];}[_0x3d115b(0x218)](){const _0x1fe957=_0x3d115b;this[_0x1fe957(0x1da)]||(this[_0x1fe957(0x1da)]=!0x0,this[_0x1fe957(0x1e6)]['sessionStatus$']['pipe'](_0x4ccafe(this[_0x1fe957(0x1a8)]))[_0x1fe957(0x21f)](_0x32a882=>{const _0x105a2a=_0x1fe957;switch(_0x32a882){case _0x5e3c97['OFFLINE']:this[_0x105a2a(0x1f9)]();break;case _0x5e3c97[_0x105a2a(0x215)]:this[_0x105a2a(0x1c0)]();break;}}),this[_0x1fe957(0x1e6)][_0x1fe957(0x1ce)]['pipe'](_0x4ccafe(this[_0x1fe957(0x1a8)]))[_0x1fe957(0x21f)](_0x2ceed5=>{const _0x29d180=_0x1fe957,{eventID:_0x4824e1}=_0x2ceed5;switch(_0x4824e1){case _0x993281[_0x29d180(0x1c8)]:this[_0x29d180(0x19d)](_0x2ceed5);break;case _0x993281[_0x29d180(0x1bd)]:this[_0x29d180(0x1e4)](_0x2ceed5);break;case _0x993281[_0x29d180(0x1b6)]:this[_0x29d180(0x1f0)]();break;case _0x993281[_0x29d180(0x1ec)]:this[_0x29d180(0x180)](_0x2ceed5);break;}}));}[_0x3d115b(0x1f5)](){const _0x3a62bd=_0x3d115b;this[_0x3a62bd(0x1e6)]['send']({'eventID':_0x993281['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3a62bd(0x1d7)],'userID':this['_collabSession'][_0x3a62bd(0x1d1)]()}},this[_0x3a62bd(0x1d7)]);}[_0x3d115b(0x192)](){const _0x4666a4=_0x3d115b;this[_0x4666a4(0x1f8)]===_0x4666a4(0x196)&&(this[_0x4666a4(0x1fb)][_0x4666a4(0x1b3)]('idle'),this[_0x4666a4(0x1e6)][_0x4666a4(0x1b1)]({'eventID':_0x993281[_0x4666a4(0x1b6)],'data':{'unitID':this[_0x4666a4(0x1d7)]}},this[_0x4666a4(0x1d7)]));}[_0x3d115b(0x1c9)](){const _0x27805c=_0x3d115b;this[_0x27805c(0x1f8)]===_0x27805c(0x20b)&&(this[_0x27805c(0x1fb)][_0x27805c(0x1b3)]('following'),this[_0x27805c(0x1a3)]());}[_0x3d115b(0x1a6)](){const _0x15df76=_0x3d115b;this[_0x15df76(0x1f8)]===_0x15df76(0x1f6)&&this[_0x15df76(0x226)]();}['_handleNewHost'](_0x1d7e2e){const _0x23de95=_0x3d115b,{presenter:_0x3a8cf2}=_0x1d7e2e[_0x23de95(0x185)],_0x532198=this['_collabSession']['getMemberID']();this[_0x23de95(0x1df)]=_0x3a8cf2,_0x3a8cf2===_0x532198?(this[_0x23de95(0x226)](),this[_0x23de95(0x186)]()):this[_0x23de95(0x1f8)]!==_0x23de95(0x20b)&&(this[_0x23de95(0x209)](),this['_startFollowing']());}['_fetchOperations'](){const _0x169708=_0x3d115b,_0x13b17d={'eventID':_0x993281['LIVESHARE_FETCH_OPERATIONS']};this[_0x169708(0x1e6)]['send'](_0x13b17d,this['_unitID']);}[_0x3d115b(0x1f0)](){const _0x2d0029=_0x3d115b;this[_0x2d0029(0x1df)]=null,this[_0x2d0029(0x1f8)]!==_0x2d0029(0x196)&&this[_0x2d0029(0x1d2)]();}[_0x3d115b(0x180)](_0x14b734){const _0x55fcd7=_0x3d115b;if(this[_0x55fcd7(0x1f8)]===_0x55fcd7(0x1f6)&&this[_0x55fcd7(0x1df)]===_0x14b734[_0x55fcd7(0x185)][_0x55fcd7(0x1de)]){const _0x2bb002=_0xe3d24e(_0x14b734['data'])['mutations'][_0x55fcd7(0x20d)]()[_0x55fcd7(0x1fd)](_0x5e096a=>_0x5e096a['id']===_0x4db54c['id']);if(_0x2bb002){const _0x2cacfb=_0x2bb002[_0x55fcd7(0x181)][_0x55fcd7(0x1e3)],_0x3b8183=_0x2bb002[_0x55fcd7(0x181)][_0x55fcd7(0x188)]['id'];setTimeout(()=>{const _0x2f25ca=_0x55fcd7;this[_0x2f25ca(0x211)]['executeCommand'](_0x871b64['id'],{'unitId':_0x2cacfb,'subUnitId':_0x3b8183},{'fromCollab':!0x0});});}}}[_0x3d115b(0x186)](){const _0x5b1d10=_0x3d115b;this[_0x5b1d10(0x1fb)][_0x5b1d10(0x1b3)](_0x5b1d10(0x196));const _0xf8d406=new Map(),_0x193879=this[_0x5b1d10(0x20f)]=new _0x34f591();_0x193879[_0x5b1d10(0x1f4)](_0x2af3fb(()=>{const _0x37b36e=_0x5b1d10;_0xf8d406[_0x37b36e(0x19b)](_0x46dd7f=>_0x46dd7f['complete']()),_0xf8d406[_0x37b36e(0x197)]();})),_0x193879[_0x5b1d10(0x1f4)](this['_commandService'][_0x5b1d10(0x1f7)](_0x5a7cc0=>{const _0x250f61=_0x5b1d10;var _0x2fb3ff;if(_0x5a7cc0[_0x250f61(0x1f1)]!==_0x1b9ff0['OPERATION']||!this[_0x250f61(0x1cb)]['shouldShareOperation'](_0x5a7cc0['id']))return;const {id:_0x3af4c3}=_0x5a7cc0;let _0x364744;_0xf8d406['has'](_0x3af4c3)?_0x364744=_0xf8d406[_0x250f61(0x182)](_0x3af4c3):(_0x364744=new _0x1bf23e(),_0xf8d406[_0x250f61(0x19c)](_0x3af4c3,_0x364744),_0x364744['pipe'](_0x10a81f((_0x2fb3ff=this[_0x250f61(0x1e7)][_0x250f61(0x1b0)](Ce))!=null?_0x2fb3ff:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x250f61(0x21f)](_0x189833=>{const _0x34f79c=_0x250f61;this['_collabSession'][_0x34f79c(0x1b1)]({'eventID':_0x993281[_0x34f79c(0x1bd)],'data':{'unitID':this[_0x34f79c(0x1d7)],'operations':{[_0x189833['id']]:{'id':_0x189833['id'],'params':JSON[_0x34f79c(0x1ad)](_0x189833['params'])}}}},this[_0x34f79c(0x1d7)]);})),_0x364744['next'](_0x5a7cc0);})),this[_0x5b1d10(0x1cb)][_0x5b1d10(0x183)](this[_0x5b1d10(0x1d7)])[_0x5b1d10(0x19b)](_0x524645=>this[_0x5b1d10(0x1e6)][_0x5b1d10(0x1b1)]({'eventID':_0x993281['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5b1d10(0x1d7)],'operations':{[_0x524645['id']]:{'id':_0x524645['id'],'params':JSON[_0x5b1d10(0x1ad)](_0x524645['params'])}}}},this[_0x5b1d10(0x1d7)]));}[_0x3d115b(0x209)](){const _0xdb6baa=_0x3d115b;var _0x54484d;this[_0xdb6baa(0x1fb)][_0xdb6baa(0x1b3)](_0xdb6baa(0x1b9)),(_0x54484d=this[_0xdb6baa(0x20f)])==null||_0x54484d[_0xdb6baa(0x1eb)](),this[_0xdb6baa(0x20f)]=null;}['_startFollowing'](){const _0x36917f=_0x3d115b;var _0x5f6e23;(_0x5f6e23=this[_0x36917f(0x20f)])==null||_0x5f6e23[_0x36917f(0x1eb)](),this['_status$'][_0x36917f(0x1b3)](_0x36917f(0x1f6));}[_0x3d115b(0x1d2)](){const _0x2daf33=_0x3d115b;var _0x49bf7b;this[_0x2daf33(0x1fb)][_0x2daf33(0x1b3)]('idle'),(_0x49bf7b=this['_commandDisposable'])==null||_0x49bf7b[_0x2daf33(0x1eb)](),this[_0x2daf33(0x20f)]=null;}[_0x3d115b(0x226)](){const _0x37ef58=_0x3d115b;var _0x5844c0;this[_0x37ef58(0x1fb)]['next']('not-following'),(_0x5844c0=this[_0x37ef58(0x20f)])==null||_0x5844c0[_0x37ef58(0x1eb)]();}[_0x3d115b(0x1e4)](_0x2c3190){const _0x3f0f03=_0x3d115b;if(['presenting','not-following',_0x3f0f03(0x210)][_0x3f0f03(0x204)](this['_status'])||!_0x2c3190[_0x3f0f03(0x185)][_0x3f0f03(0x227)]||_0x2c3190[_0x3f0f03(0x185)][_0x3f0f03(0x227)]===this[_0x3f0f03(0x1e6)][_0x3f0f03(0x1d1)]())return;this[_0x3f0f03(0x1f8)]===_0x3f0f03(0x1b9)&&this[_0x3f0f03(0x1a3)]();const _0xcfa6b=_0x2c3190[_0x3f0f03(0x185)][_0x3f0f03(0x1a9)];Object[_0x3f0f03(0x1af)](_0xcfa6b)['forEach'](_0x4ea591=>{const _0x2c8053=_0x3f0f03;this['_commandService'][_0x2c8053(0x193)](_0x4ea591['id'],_0x4ea591[_0x2c8053(0x181)]?JSON[_0x2c8053(0x229)](_0x4ea591[_0x2c8053(0x181)]):null,{'fromCollab':!0x0});});}[_0x3d115b(0x1f9)](){const _0x2b8b6e=_0x3d115b;var _0x377a42;this['_status$'][_0x2b8b6e(0x1b3)](_0x2b8b6e(0x210)),(_0x377a42=this[_0x2b8b6e(0x20f)])==null||_0x377a42[_0x2b8b6e(0x1eb)]();}[_0x3d115b(0x1c0)](){const _0x22ee67=_0x3d115b;this['_status$'][_0x22ee67(0x1b3)](_0x22ee67(0x1b9)),this['_fetchOperations']();}};N=Y([_(0x2,_0x332024),_(0x3,_0x577b1e(L)),_(0x4,_0x5b24bd)],N);function Le(){const _0xb61340=_0x3d115b,_0x330dd0=_0x32938e(S),_0xd0c67a=_0x32938e(_0x1d384b),_0x141823=_0x305896(()=>_0xd0c67a[_0xb61340(0x1b7)](_0x3088b9[_0xb61340(0x1d0)]),void 0x0,!0x1,[]),[_0x5ba85a,_0x407846]=_0x4d351d(null),[_0x2525d0,_0x4d3053]=_0x4d351d(c[_0xb61340(0x1cc)]),_0x128890=_0x1df2a9(null);return _0x463e26(()=>(_0x141823&&_0x330dd0[_0xb61340(0x1b2)](_0x141823[_0xb61340(0x21c)]())[_0xb61340(0x1dc)](_0x2cc010=>{const _0x118459=_0xb61340;_0x407846(_0x2cc010),_0x128890[_0x118459(0x18e)]=_0x2cc010[_0x118459(0x17f)][_0x118459(0x21f)](_0x34f406=>{_0x4d3053(_0x34f406);});}),()=>{const _0x50093f=_0xb61340;var _0x18af26;(_0x18af26=_0x128890[_0x50093f(0x18e)])==null||_0x18af26[_0x50093f(0x1d9)](),_0x128890['current']=null;}),[_0x141823,_0x330dd0]),_0x5ba85a?_0x567ad8(_0x1d0e01,{'align':'end','disabled':_0x2525d0===c[_0xb61340(0x217)],'className':_0xb61340(0x225),'overlay':_0x567ad8(Re,{'status':_0x2525d0,'coordinator':_0x5ba85a}),'children':_0x567ad8('button',{'className':_0xc920a1('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2525d0===c[_0xb61340(0x217)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2525d0!==c[_0xb61340(0x217)]}),'type':'button','children':_0x567ad8(W,{'className':_0xb61340(0x1bc)})})}):null;}function Re(_0x1eccd1){const _0x433b21=_0x3d115b,{status:_0x49c1f1,coordinator:_0x21cc42}=_0x1eccd1;switch(_0x49c1f1){case c[_0x433b21(0x1cc)]:return _0x567ad8($e,{'coordinator':_0x21cc42});case c['FOLLOWING']:return _0x567ad8(xe,{'coordinator':_0x21cc42});case c['NOT_FOLLOWING']:return _0x567ad8(Pe,{'coordinator':_0x21cc42});case c[_0x433b21(0x217)]:return _0x567ad8(Te,{});case c[_0x433b21(0x195)]:return _0x567ad8(Ae,{'coordinator':_0x21cc42});default:return null;}}function $e(_0x574574){const _0x1121f8=_0x3d115b,{coordinator:_0x599f00}=_0x574574;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x1121f8(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1121f8(0x21b)}),_0x567ad8(_0x473b7d,{'onClick':()=>_0x599f00['tryStartPresenting'](),'children':_0x1121f8(0x1e9)})]});}function xe(_0x1591bc){const _0x421d86=_0x3d115b,{coordinator:_0x2eb1e7}=_0x1591bc;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x421d86(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x421d86(0x206)}),_0x567ad8(_0x473b7d,{'onClick':()=>_0x2eb1e7[_0x421d86(0x1a6)](),'children':_0x421d86(0x199)})]});}function Pe(_0x131f74){const _0x4fc2ef=_0x3d115b,{coordinator:_0x666fe9}=_0x131f74;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x4fc2ef(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4fc2ef(0x1ae)}),_0x567ad8(_0x473b7d,{'variant':'text','onClick':()=>_0x666fe9['startFollowing'](),'children':_0x4fc2ef(0x1c6)})]});}function Ae(_0x6f69ac){const _0x3cbddd=_0x3d115b,{coordinator:_0x233646}=_0x6f69ac;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x3cbddd(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3cbddd(0x1a2)}),_0x567ad8(_0x473b7d,{'variant':_0x3cbddd(0x1ed),'onClick':()=>_0x233646['stopPresenting'](),'children':_0x3cbddd(0x1fe)})]});}function Te(){const _0x3d9158=_0x3d115b;return _0x567ad8(_0xaba553,{'children':_0x3d9158(0x198)});}var Fe=Object[_0x3d115b(0x184)],He=(_0x5d8579,_0x47ab83,_0x494b5c,_0x23f112)=>{const _0x266b35=_0x3d115b;for(var _0x14b5a3=_0x23f112>0x1?void 0x0:_0x23f112?Fe(_0x47ab83,_0x494b5c):_0x47ab83,_0x17c2e0=_0x5d8579[_0x266b35(0x19a)]-0x1,_0x1f1eda;_0x17c2e0>=0x0;_0x17c2e0--)(_0x1f1eda=_0x5d8579[_0x17c2e0])&&(_0x14b5a3=_0x1f1eda(_0x14b5a3)||_0x14b5a3);return _0x14b5a3;},A=(_0x5a1819,_0xa51087)=>(_0x46bc5c,_0x1faa84)=>_0xa51087(_0x46bc5c,_0x1faa84,_0x5a1819);let m=class extends _0x87d3da{constructor(_0x3d9c8d,_0x5f0b87){const _0x3bc300=_0x3d115b;super(),this['_injector']=_0x3d9c8d,this['_uiPartsService']=_0x5f0b87,this[_0x3bc300(0x1cf)]();}[_0x3d115b(0x1cf)](){const _0x360c27=_0x3d115b;this[_0x360c27(0x1cd)](this[_0x360c27(0x1ba)][_0x360c27(0x19f)](_0x523e83['HEADER_MENU'],()=>_0x32b998(Le,this['_injector'])));}};m=He([A(0x0,_0x577b1e(_0x4e118f)),A(0x1,_0x5c986b)],m);const ye=_0x3d115b(0x1a4),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x269b8e,_0xd4ecde,_0x578c94,_0x463b65)=>{const _0xc50249=_0x3d115b;for(var _0x2b9198=_0x463b65>0x1?void 0x0:_0x463b65?Ue(_0xd4ecde,_0x578c94):_0xd4ecde,_0x54e774=_0x269b8e[_0xc50249(0x19a)]-0x1,_0x422c92;_0x54e774>=0x0;_0x54e774--)(_0x422c92=_0x269b8e[_0x54e774])&&(_0x2b9198=_0x422c92(_0x2b9198)||_0x2b9198);return _0x2b9198;},je=(_0x21f658,_0x2ce4ce)=>(_0xfd58e4,_0x2177fd)=>_0x2ce4ce(_0xfd58e4,_0x2177fd,_0x21f658);let I=class extends _0x87d3da{constructor(_0x1724f9){const _0x1f8772=_0x3d115b;super(),this['_liveShareService']=_0x1724f9,this[_0x1f8772(0x1da)]();}[_0x3d115b(0x1da)](){[_0x2fe506['id'],_0x33c19d['id'],_0x871b64['id']]['forEach'](_0x3eee4a=>{const _0x3aef92=_0x2aa9;this[_0x3aef92(0x1cd)](this[_0x3aef92(0x1cb)]['registerSharedOperation'](_0x3eee4a));});}};I=Ve([je(0x0,_0x577b1e(L))],I);var Me=Object[_0x3d115b(0x1bf)],ke=Object[_0x3d115b(0x184)],Ge=(_0x437603,_0x5b1b32,_0x308fc6)=>_0x5b1b32 in _0x437603?Me(_0x437603,_0x5b1b32,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x308fc6}):_0x437603[_0x5b1b32]=_0x308fc6,We=(_0x2db0e1,_0x451381,_0x4792fb,_0x28e983)=>{for(var _0x1878ec=_0x28e983>0x1?void 0x0:_0x28e983?ke(_0x451381,_0x4792fb):_0x451381,_0x42267e=_0x2db0e1['length']-0x1,_0x2ce274;_0x42267e>=0x0;_0x42267e--)(_0x2ce274=_0x2db0e1[_0x42267e])&&(_0x1878ec=_0x2ce274(_0x1878ec)||_0x1878ec);return _0x1878ec;},F=(_0x30df85,_0x4521d6)=>(_0x1bd40e,_0x8b67c6)=>_0x4521d6(_0x1bd40e,_0x8b67c6,_0x30df85),B=(_0x56b064,_0x58a088,_0x1b81e7)=>Ge(_0x56b064,typeof _0x58a088!=_0x3d115b(0x1e8)?_0x58a088+'':_0x58a088,_0x1b81e7);function _0x56b3(){const _0x16021c=['FOLLOWING','add','tryStartPresenting','following','onCommandExecuted','_status','_handleOffline','30IWDsgc','_status$','1330286KOVgwT','find','Stop\x20presenting','substring','1326976FsBVyf','tag','attrs','mask','includes','createInstance','You\x27re\x20following\x20the\x20presenter','7vBnCXi','getValue','_stopPresenting','delete','not-following','_sharedOperations','reverse','map','_commandDisposable','offline','_commandService','getLiveShareCoordinatorSync','complete','onStarting','ONLINE','evenodd','OFFLINE','init','trim','4610AWthPZ','Present\x20this\x20document','getUnitId','defIds','currentColor','subscribe','use','1em','children','onRendered','override','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','_stopFollowing','presenter','div','parse','status$','_handleNewChangeSets','params','get','getInitialStates','getOwnPropertyDescriptor','data','_startPresenting','UNIVER_LIVE_SHARE_PLUGIN','sheet','shouldShareOperation','registerSharedOperation','_collabSessionService','path','_entities','current','xlink:href','url(#$1','pipe','stopPresenting','executeCommand','colorChannel1','PRESENTING','presenting','clear','You\x27are\x20offline.','Stop\x20following','length','forEach','set','_handleNewHost','1507bijEMY','registerComponent','svg','4ZuuNYN','You\x27re\x20presenting\x20the\x20document','_startFollowing','live-share.config','entries','stopFollowing','requireSession','dispose$','operations','_startLiveShareCoordinator','getStatus','3322998PXjeIU','stringify','You\x27re\x20not\x20following\x20the\x20presenter','values','getConfig','send','getLiveShareCoordinator','next','univerjs-icon\x20univerjs-icon-','_univerInstanceService','LIVESHARE_TERMINATE','getCurrentTypeOfUnit$','pluginName','idle','_uiPartsService','live-share-icon','univer-size-4','LIVESHARE_OPERATION','http://www.w3.org/2000/svg','defineProperty','_handleOnline','LiveShareIcon','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','NOT_FOLLOWING','_injector','registerInitialStateReporter','Start\x20following','408527ZlXwYj','LIVESHARE_NEW_HOST','startFollowing','fill','_liveShareService','IDLE','disposeWithMe','event$','_mountLiveShare','UNIVER_SHEET','getMemberID','_beIdle','_reporters','873006YWFiyO','from','asObservable','_unitID','_config','unsubscribe','_init','getTypeOfUnitDisposed$','then','has','memberID','_presenter','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','displayName','replace','unitId','_handleOperation','0\x200\x2017\x2017','_collabSession','_configService','symbol','Start','idSuffix','dispose','NEW_CHANGESETS','default','string','2366031dwuqaE','_handleTerminate','type','SAME_OPERATION_SHARE_INTERVAL'];_0x56b3=function(){return _0x16021c;};return _0x56b3();}const Ye=_0x3d115b(0x187);let b=class extends _0x4b1824{constructor(_0xd518e7=T,_0x5f23f7,_0x5745af){const _0xec64b4=_0x3d115b;super(),this[_0xec64b4(0x1d8)]=_0xd518e7,this[_0xec64b4(0x1c4)]=_0x5f23f7,this['_configService']=_0x5745af;const {..._0x23af25}=_0x4a94f8({},T,this[_0xec64b4(0x1d8)]);this['_configService']['setConfig'](ye,_0x23af25);}[_0x3d115b(0x214)](){const _0x5f378f=_0x3d115b;_0x51b5fa(this[_0x5f378f(0x1c4)],_0x215342([[L],[S],[I],[m]],this[_0x5f378f(0x1d8)][_0x5f378f(0x224)])),_0x2b00b4(this[_0x5f378f(0x1c4)],[[I]]);}[_0x3d115b(0x223)](){const _0x4ab7eb=_0x3d115b;_0x2b00b4(this[_0x4ab7eb(0x1c4)],[[m]]);}};B(b,_0x3d115b(0x1f1),_0x3088b9['UNIVER_UNKNOWN']),B(b,_0x3d115b(0x1b8),Ye),b=We([_0x3cc453(_0x545bb7),F(0x1,_0x577b1e(_0x4e118f)),F(0x2,_0x332024)],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(_0x4b7d6e,_0x53400c){const _0x433885=_0x53cd,_0x250ecd=_0x4b7d6e();while(!![]){try{const _0x54aefc=-parseInt(_0x433885(0x80))/0x1+parseInt(_0x433885(0x9b))/0x2+parseInt(_0x433885(0x73))/0x3*(-parseInt(_0x433885(0x7a))/0x4)+-parseInt(_0x433885(0x96))/0x5*(parseInt(_0x433885(0x7b))/0x6)+-parseInt(_0x433885(0x6c))/0x7*(-parseInt(_0x433885(0x84))/0x8)+-parseInt(_0x433885(0x78))/0x9*(-parseInt(_0x433885(0x8d))/0xa)+-parseInt(_0x433885(0x8b))/0xb;if(_0x54aefc===_0x53400c)break;else _0x250ecd['push'](_0x250ecd['shift']());}catch(_0x54960f){_0x250ecd['push'](_0x250ecd['shift']());}}}(_0x51b6,0x4221f),function(_0x493be2,_0x5a00a3){const _0x2ba48d=_0x53cd;typeof exports==_0x2ba48d(0x8c)&&typeof module<'u'?_0x5a00a3(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==_0x2ba48d(0x95)&&define[_0x2ba48d(0x7d)]?define([_0x2ba48d(0x8e),_0x2ba48d(0x89),_0x2ba48d(0x88),'@univerjs/sheets-ui',_0x2ba48d(0x90),_0x2ba48d(0x6f)],_0x5a00a3):(_0x493be2=typeof globalThis<'u'?globalThis:_0x493be2||self,_0x5a00a3(_0x493be2[_0x2ba48d(0x71)],_0x493be2[_0x2ba48d(0x8f)],_0x493be2[_0x2ba48d(0x68)],_0x493be2['UniverSheetsUi'],_0x493be2[_0x2ba48d(0x65)],_0x493be2[_0x2ba48d(0x99)]));}(this,function(_0x2a6d35,_0x1a94c1,_0x5829e5,_0x254a83,_0x5de0cf,_0x1b0429){'use strict';const _0x39a1a7=_0x53cd;class _0x18180d extends _0x5de0cf[_0x39a1a7(0x77)]{[_0x39a1a7(0x79)](_0x269a0f,_0x2e5321,_0x5998c0,_0x39985d,_0x241e7e){const _0xb2bd5a=_0x39a1a7,_0x5eece1=_0x269a0f['get'](_0x2a6d35['LiveShareController']),_0x1a55b7=_0x269a0f['get'](_0x1a94c1[_0xb2bd5a(0x66)]),_0x1facf3=_0x2e5321[_0xb2bd5a(0x72)](),_0x4241d8=_0x2e5321[_0xb2bd5a(0x9c)](),_0x2c7d33=_0x5eece1[_0xb2bd5a(0x82)](_0x1facf3);(_0x2c7d33==null?void 0x0:_0x2c7d33['getStatus']())!==_0x2a6d35[_0xb2bd5a(0x81)][_0xb2bd5a(0x91)]||(_0x5998c0['getSheetId']()!==_0x4241d8[_0xb2bd5a(0x76)]()&&this[_0xb2bd5a(0x7f)][_0xb2bd5a(0x87)](_0x5829e5[_0xb2bd5a(0x6e)]['id'],{'unitId':_0x1facf3,'subUnitId':_0x5998c0[_0xb2bd5a(0x76)]()}),!_0x1a55b7[_0xb2bd5a(0x7c)](_0x1facf3))||_0x241e7e[_0xb2bd5a(0x97)](_0x254a83[_0xb2bd5a(0x98)]['id'],{'unitId':_0x2e5321['getUnitId'](),'sheetId':_0x5998c0['getSheetId'](),'sheetViewStartRow':_0x39985d[_0xb2bd5a(0x69)],'sheetViewStartColumn':_0x39985d[_0xb2bd5a(0x74)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x5de0cf[_0x39a1a7(0x77)][_0x39a1a7(0x83)](_0x18180d);class _0x2ab3c7 extends _0x1b0429[_0x39a1a7(0x94)]{['getLiveShareStatus'](){const _0x247ce6=_0x39a1a7;var _0x3c3ec3,_0x120242;const _0x23d4cb=this[_0x247ce6(0x6d)][_0x247ce6(0x92)](_0x2a6d35[_0x247ce6(0x64)]),_0x275d29=(_0x3c3ec3=this[_0x247ce6(0x93)]())==null?void 0x0:_0x3c3ec3['getId']();if(!_0x275d29)throw new Error(_0x247ce6(0x6b));const _0x1cb456=_0x23d4cb[_0x247ce6(0x82)](_0x275d29);return(_0x120242=_0x1cb456==null?void 0x0:_0x1cb456[_0x247ce6(0x85)]())!=null?_0x120242:_0x2a6d35[_0x247ce6(0x81)][_0x247ce6(0x86)];}[_0x39a1a7(0x75)](){const _0x2a7423=_0x39a1a7;var _0x25c617;const _0x3562ef=this[_0x2a7423(0x6d)]['get'](_0x2a6d35[_0x2a7423(0x64)]),_0x3b665b=(_0x25c617=this[_0x2a7423(0x93)]())==null?void 0x0:_0x25c617[_0x2a7423(0x8a)]();if(!_0x3b665b)throw new Error(_0x2a7423(0x6b));const _0x13afe4=_0x3562ef[_0x2a7423(0x82)](_0x3b665b);if(!_0x13afe4)throw new Error(_0x2a7423(0x6a));_0x13afe4['startFollowing']();}[_0x39a1a7(0x7e)](){const _0xb7b84f=_0x39a1a7;var _0x121de4;const _0x4d7793=this[_0xb7b84f(0x6d)][_0xb7b84f(0x92)](_0x2a6d35[_0xb7b84f(0x64)]),_0x51bd10=(_0x121de4=this[_0xb7b84f(0x93)]())==null?void 0x0:_0x121de4['getId']();if(!_0x51bd10)throw new Error('No\x20active\x20workbook\x20found.');const _0x42907d=_0x4d7793[_0xb7b84f(0x82)](_0x51bd10);if(!_0x42907d)throw new Error(_0xb7b84f(0x6a));_0x42907d[_0xb7b84f(0x7e)]();}[_0x39a1a7(0x67)](){const _0xf5c575=_0x39a1a7;var _0x243ec6;const _0x401d20=this['_injector'][_0xf5c575(0x92)](_0x2a6d35[_0xf5c575(0x64)]),_0x4d1838=(_0x243ec6=this['getActiveWorkbook']())==null?void 0x0:_0x243ec6[_0xf5c575(0x8a)]();if(!_0x4d1838)throw new Error('No\x20active\x20workbook\x20found.');const _0x1786f0=_0x401d20[_0xf5c575(0x82)](_0x4d1838);if(!_0x1786f0)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1786f0[_0xf5c575(0x70)]();}['stopPresenting'](){const _0x290448=_0x39a1a7;var _0x658dd5;const _0x235215=this[_0x290448(0x6d)][_0x290448(0x92)](_0x2a6d35[_0x290448(0x64)]),_0x48c3be=(_0x658dd5=this[_0x290448(0x93)]())==null?void 0x0:_0x658dd5[_0x290448(0x8a)]();if(!_0x48c3be)throw new Error(_0x290448(0x6b));const _0x298b3f=_0x235215[_0x290448(0x82)](_0x48c3be);if(!_0x298b3f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x298b3f['stopPresenting']();}}_0x1b0429['FUniver']['extend'](_0x2ab3c7);class _0x347a4e extends _0x1b0429[_0x39a1a7(0x9a)]{get['LiveShareStatusEnum'](){return _0x2a6d35['LiveShareStatus'];}}_0x1b0429[_0x39a1a7(0x9a)]['extend'](_0x347a4e);}));function _0x53cd(_0x4e4c01,_0x3c2104){_0x4e4c01=_0x4e4c01-0x64;const _0x51b69b=_0x51b6();let _0x53cd0b=_0x51b69b[_0x4e4c01];return _0x53cd0b;}function _0x51b6(){const _0x3398ca=['20920euTtrm','getStatus','IDLE','executeCommand','@univerjs/sheets','@univerjs/engine-render','getId','1764928frBCNp','object','2260790fkLwtx','@univerjs-pro/live-share','UniverEngineRender','@univerjs/sheets/facade','PRESENTING','get','getActiveWorkbook','FUniver','function','5emFzPn','syncExecuteCommand','SetScrollOperation','UniverCoreFacade','FEnum','1014104mpDHgi','getActiveSheet','LiveShareController','UniverSheetsFacade','IRenderManagerService','startPresenting','UniverSheets','startRow','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','No\x20active\x20workbook\x20found.','1057XQMaNI','_injector','SetWorksheetActiveOperation','@univerjs/core/facade','tryStartPresenting','UniverProLiveShare','getUnitId','759219mdaIxZ','startColumn','startFollowing','getSheetId','FRange','9gjBsoc','_initialize','4ZqwSXY','88800MlUwcO','getRenderById','amd','stopFollowing','_commandService','428796DdbeiI','LiveShareStatus','getLiveShareCoordinatorSync','extend'];_0x51b6=function(){return _0x3398ca;};return _0x51b6();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x256ba4,_0x1451a0){const _0xc91a9f=_0x50e4,_0x5e3335=_0x256ba4();while(!![]){try{const _0x2a778e=parseInt(_0xc91a9f(0x108))/0x1*(-parseInt(_0xc91a9f(0x1c5))/0x2)+parseInt(_0xc91a9f(0x11b))/0x3*(-parseInt(_0xc91a9f(0x1a5))/0x4)+-parseInt(_0xc91a9f(0x161))/0x5+-parseInt(_0xc91a9f(0x1a1))/0x6*(parseInt(_0xc91a9f(0x143))/0x7)+-parseInt(_0xc91a9f(0x13f))/0x8*(-parseInt(_0xc91a9f(0x107))/0x9)+parseInt(_0xc91a9f(0x126))/0xa+parseInt(_0xc91a9f(0x16e))/0xb;if(_0x2a778e===_0x1451a0)break;else _0x5e3335['push'](_0x5e3335['shift']());}catch(_0x267662){_0x5e3335['push'](_0x5e3335['shift']());}}}(_0x25fb,0x9be0f),function(_0x321a60,_0x1d77dd){const _0x830e2a=_0x50e4;typeof exports==_0x830e2a(0x1c1)&&typeof module<'u'?_0x1d77dd(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==_0x830e2a(0x15d)&&define['amd']?define([_0x830e2a(0x10f),_0x830e2a(0x11c),_0x830e2a(0x106),'react/jsx-runtime','@univerjs/design',_0x830e2a(0x147),_0x830e2a(0x124),_0x830e2a(0x1c6),_0x830e2a(0x1bb),_0x830e2a(0x116),_0x830e2a(0x122),_0x830e2a(0x170)],_0x1d77dd):(_0x321a60=typeof globalThis<'u'?globalThis:_0x321a60||self,_0x1d77dd(_0x321a60[_0x830e2a(0x1b0)]={},_0x321a60[_0x830e2a(0x15c)],_0x321a60[_0x830e2a(0x10e)],_0x321a60[_0x830e2a(0x103)],_0x321a60[_0x830e2a(0x1c0)],_0x321a60[_0x830e2a(0x103)],_0x321a60[_0x830e2a(0x132)],_0x321a60[_0x830e2a(0x1cb)],_0x321a60[_0x830e2a(0x10a)],_0x321a60[_0x830e2a(0x116)],_0x321a60['rxjs'][_0x830e2a(0xed)],_0x321a60['UniverSheetsUi']));}(this,function(_0x491357,_0x3cd3bb,_0x672739,_0x164c98,_0x29f95a,_0x29551b,_0x470106,_0x3f3ef9,_0x103de8,_0xb17181,_0x4f2afb,_0x405304){'use strict';const _0x36a365=_0x50e4;var _0x5d242e=Object[_0x36a365(0x130)],_0x577596=(_0x3e730f,_0x44c3e8,_0x4cafe0)=>_0x44c3e8 in _0x3e730f?_0x5d242e(_0x3e730f,_0x44c3e8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4cafe0}):_0x3e730f[_0x44c3e8]=_0x4cafe0,_0x5abcce=(_0x576cd5,_0x34e6ca,_0x104d7e)=>_0x577596(_0x576cd5,typeof _0x34e6ca!=_0x36a365(0x158)?_0x34e6ca+'':_0x34e6ca,_0x104d7e);function _0x2c7261({ref:_0x1c702c,..._0x3a3c8f}){const _0x1ac38f=_0x36a365,{icon:_0x3cdad0,id:_0x16bbd5,className:_0x57723d,extend:_0xe7b8bc,..._0x3fd566}=_0x3a3c8f,_0x3fe8ee=('univerjs-icon\x20univerjs-icon-'+_0x16bbd5+'\x20'+(_0x57723d||''))[_0x1ac38f(0x1a8)](),_0x3b92fb=_0x29551b[_0x1ac38f(0x181)]('_'+_0x501319());return _0x455187(_0x3cdad0,''+_0x16bbd5,{'defIds':_0x3cdad0[_0x1ac38f(0x17e)],'idSuffix':_0x3b92fb['current']},{'ref':_0x1c702c,'className':_0x3fe8ee,..._0x3fd566},_0xe7b8bc);}function _0x455187(_0x3ba8ef,_0x17ccd9,_0x3f6a02,_0x13bb5b,_0x5a082b){const _0x1cd4a5=_0x36a365;return _0x29551b[_0x1cd4a5(0x129)](_0x3ba8ef[_0x1cd4a5(0x155)],{'key':_0x17ccd9,..._0x16a26e(_0x3ba8ef,_0x3f6a02,_0x5a082b),..._0x13bb5b},(_0x3da627(_0x3ba8ef,_0x3f6a02)['children']||[])[_0x1cd4a5(0x1bd)]((_0x4aee43,_0x2a0c7e)=>_0x455187(_0x4aee43,_0x17ccd9+'-'+_0x3ba8ef[_0x1cd4a5(0x155)]+'-'+_0x2a0c7e,_0x3f6a02,void 0x0,_0x5a082b)));}function _0x16a26e(_0x306970,_0xdd763d,_0x312224){const _0x4d170d=_0x36a365,_0x350902={..._0x306970[_0x4d170d(0x1ae)]};_0x312224!=null&&_0x312224[_0x4d170d(0x1b2)]&&_0x350902['fill']===_0x4d170d(0x1b2)&&(_0x350902[_0x4d170d(0x183)]=_0x312224[_0x4d170d(0x1b2)]),_0x306970['tag']===_0x4d170d(0x1ca)&&_0x350902['id']&&(_0x350902['id']=_0x350902['id']+_0xdd763d[_0x4d170d(0x19c)]),Object[_0x4d170d(0x105)](_0x350902)['forEach'](([_0x3af791,_0x3654c3])=>{const _0x9b3a73=_0x4d170d;_0x3af791===_0x9b3a73(0x1ca)&&typeof _0x3654c3==_0x9b3a73(0x163)&&(_0x350902[_0x3af791]=_0x3654c3[_0x9b3a73(0x100)](/url\(#(.*)\)/,_0x9b3a73(0x13b)+_0xdd763d[_0x9b3a73(0x19c)]+')'));});const {defIds:_0x546e18}=_0xdd763d;return!_0x546e18||_0x546e18[_0x4d170d(0x117)]===0x0||(_0x306970[_0x4d170d(0x155)]===_0x4d170d(0xfc)&&_0x350902[_0x4d170d(0x16d)]&&(_0x350902[_0x4d170d(0x16d)]=_0x350902[_0x4d170d(0x16d)]+_0xdd763d[_0x4d170d(0x19c)]),Object[_0x4d170d(0x105)](_0x350902)[_0x4d170d(0xf9)](([_0x4fa374,_0x2f447c])=>{const _0xa24093=_0x4d170d;typeof _0x2f447c==_0xa24093(0x163)&&(_0x350902[_0x4fa374]=_0x2f447c[_0xa24093(0x100)](/url\(#(.*)\)/,_0xa24093(0x13b)+_0xdd763d[_0xa24093(0x19c)]+')'));})),_0x350902;}function _0x3da627(_0xa39da8,_0xcf1e1a){const _0x3a4cc9=_0x36a365;var _0x3b82c0;const {defIds:_0x491a59}=_0xcf1e1a;return!_0x491a59||_0x491a59[_0x3a4cc9(0x117)]===0x0?_0xa39da8:_0xa39da8[_0x3a4cc9(0x155)]===_0x3a4cc9(0x16a)&&((_0x3b82c0=_0xa39da8[_0x3a4cc9(0x1c8)])!=null&&_0x3b82c0[_0x3a4cc9(0x117)])?{..._0xa39da8,'children':_0xa39da8['children'][_0x3a4cc9(0x1bd)](_0x5cecc8=>typeof _0x5cecc8[_0x3a4cc9(0x1ae)]['id']==_0x3a4cc9(0x163)&&_0x491a59&&_0x491a59[_0x3a4cc9(0x142)](_0x5cecc8[_0x3a4cc9(0x1ae)]['id'])?{..._0x5cecc8,'attrs':{..._0x5cecc8[_0x3a4cc9(0x1ae)],'id':_0x5cecc8['attrs']['id']+_0xcf1e1a[_0x3a4cc9(0x19c)]}}:_0x5cecc8)}:_0xa39da8;}function _0x501319(){const _0x627ea6=_0x36a365;return Math[_0x627ea6(0x14f)]()[_0x627ea6(0x11e)](0x24)['substring'](0x2,0x8);}_0x2c7261[_0x36a365(0xf7)]=_0x36a365(0x153);const _0x790996={'tag':_0x36a365(0x120),'attrs':{'xmlns':_0x36a365(0x1ce),'fill':_0x36a365(0xf0),'viewBox':_0x36a365(0x1c4),'width':'1em','height':'1em'},'children':[{'tag':_0x36a365(0x1a4),'attrs':{'fill':'currentColor','d':_0x36a365(0xee)}},{'tag':_0x36a365(0x1a4),'attrs':{'fill':_0x36a365(0x14a),'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':_0x36a365(0x16f),'clipRule':_0x36a365(0x16f)}}]},_0x3bc5e6=_0x29551b[_0x36a365(0x190)](function(_0x5237ac,_0x5482bf){const _0x449a5b=_0x36a365;return _0x29551b[_0x449a5b(0x129)](_0x2c7261,Object[_0x449a5b(0x140)]({},_0x5237ac,{'id':'live-share-icon','ref':_0x5482bf,'icon':_0x790996}));});_0x3bc5e6['displayName']=_0x36a365(0x11a);class _0x18b732 extends _0x3cd3bb[_0x36a365(0x1a0)]{constructor(){const _0x77daa5=_0x36a365;super(...arguments),_0x5abcce(this,_0x77daa5(0x12f),new Set()),_0x5abcce(this,_0x77daa5(0x168),new Set());}['registerSharedOperation'](_0x32882c){const _0x4483b8=_0x36a365;return this[_0x4483b8(0x12f)][_0x4483b8(0x13d)](_0x32882c),_0x3cd3bb[_0x4483b8(0x1be)](()=>this[_0x4483b8(0x12f)]['delete'](_0x32882c));}['registerInitialStateReporter'](_0x3ab8e4){const _0x4a806a=_0x36a365;return this[_0x4a806a(0x168)][_0x4a806a(0x13d)](_0x3ab8e4),_0x3cd3bb['toDisposable'](()=>this[_0x4a806a(0x168)][_0x4a806a(0x10b)](_0x3ab8e4));}[_0x36a365(0xf2)](_0x1e46c5){const _0x1fc4c9=_0x36a365;return this[_0x1fc4c9(0x12f)][_0x1fc4c9(0x151)](_0x1e46c5);}[_0x36a365(0x15f)](_0xa7077f){const _0x2687fd=_0x36a365;return Array[_0x2687fd(0x16c)](this[_0x2687fd(0x168)])[_0x2687fd(0x1bd)](_0x484e46=>_0x484e46(_0xa7077f));}}var _0x5b837f=Object[_0x36a365(0x1cd)],_0xe9851c=(_0x5b1915,_0x43aef0,_0x18bfcd,_0x51de18)=>{for(var _0x430610=_0x51de18>0x1?void 0x0:_0x51de18?_0x5b837f(_0x43aef0,_0x18bfcd):_0x43aef0,_0x47ddc9=_0x5b1915['length']-0x1,_0x1bca34;_0x47ddc9>=0x0;_0x47ddc9--)(_0x1bca34=_0x5b1915[_0x47ddc9])&&(_0x430610=_0x1bca34(_0x430610)||_0x430610);return _0x430610;},_0x51da42=(_0x97ecb3,_0x35cbc6)=>(_0x6112f9,_0x4015a2)=>_0x35cbc6(_0x6112f9,_0x4015a2,_0x97ecb3);_0x491357[_0x36a365(0xf4)]=class extends _0x3cd3bb[_0x36a365(0x12d)]{constructor(_0x4e70f7,_0x1961d6,_0x31a690){const _0x2451c6=_0x36a365;super(),_0x5abcce(this,'_entities',new Map()),(this[_0x2451c6(0x167)]=_0x4e70f7,this[_0x2451c6(0x1af)]=_0x1961d6,this[_0x2451c6(0x162)]=_0x31a690,this[_0x2451c6(0x123)]());}async[_0x36a365(0x141)](_0x43e3ac){const _0x3478d7=_0x36a365;return this[_0x3478d7(0xfd)][_0x3478d7(0x151)](_0x43e3ac)||await this[_0x3478d7(0x1c7)](_0x43e3ac),this[_0x3478d7(0xfd)][_0x3478d7(0x10c)](_0x43e3ac);}['getLiveShareCoordinatorSync'](_0x27383d){const _0x116e48=_0x36a365;var _0x23d96d;return(_0x23d96d=this[_0x116e48(0xfd)][_0x116e48(0x10c)](_0x27383d))!=null?_0x23d96d:null;}[_0x36a365(0x123)](){const _0x49187a=_0x36a365;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x3cd3bb[_0x49187a(0xf3)]['UNIVER_SHEET'])['pipe'](_0x4f2afb['takeUntil'](this[_0x49187a(0xf1)]))[_0x49187a(0x18a)](async _0x1f37ff=>{const _0x5f1ad2=_0x49187a,_0x28eafe=_0x1f37ff['getUnitId']();this['_entities'][_0x5f1ad2(0x151)](_0x28eafe)||this[_0x5f1ad2(0x1c7)](_0x28eafe);}),this[_0x49187a(0x167)][_0x49187a(0x199)](_0x3cd3bb['UniverInstanceType']['UNIVER_SHEET'])[_0x49187a(0x1cf)](_0x4f2afb[_0x49187a(0x17d)](this['dispose$']))[_0x49187a(0x18a)](_0x1e93b5=>{const _0x22bc33=_0x49187a,_0x5821d6=_0x1e93b5[_0x22bc33(0x1a6)](),_0x4a8ccd=this[_0x22bc33(0xfd)]['get'](_0x5821d6);_0x4a8ccd==null||_0x4a8ccd[_0x22bc33(0x15e)]();});}async[_0x36a365(0x1c7)](_0x13acf1){const _0x304867=_0x36a365,_0x4a6e03=await this[_0x304867(0x162)][_0x304867(0x156)](_0x13acf1),_0x3f8226=this['_injector'][_0x304867(0x19e)](_0x491357['LiveShareCoordinator'],_0x13acf1,_0x4a6e03);return _0x3f8226['init'](),this[_0x304867(0xfd)][_0x304867(0x18b)](_0x13acf1,_0x3f8226),_0x3f8226;}},_0x491357[_0x36a365(0xf4)]=_0xe9851c([_0x51da42(0x0,_0x3cd3bb[_0x36a365(0x1aa)]),_0x51da42(0x1,_0x3cd3bb[_0x36a365(0xff)](_0x3cd3bb[_0x36a365(0xfb)])),_0x51da42(0x2,_0x3cd3bb[_0x36a365(0xff)](_0x3f3ef9[_0x36a365(0x13a)]))],_0x491357['LiveShareController']);var _0x3df07c=(_0x5ad58f=>(_0x5ad58f[_0x36a365(0x138)]='offline',_0x5ad58f[_0x36a365(0x135)]='idle',_0x5ad58f[_0x36a365(0x15a)]=_0x36a365(0xf5),_0x5ad58f[_0x36a365(0x17a)]=_0x36a365(0x193),_0x5ad58f['PRESENTING']='presenting',_0x5ad58f))(_0x3df07c||{});const _0x4de5d6=_0x36a365(0x11f),_0x5457f3=0xc8;_0x491357[_0x36a365(0x180)]=class extends _0x3cd3bb[_0x36a365(0x12d)]{constructor(_0x3ae48a,_0x154c2d,_0x3daef5,_0x3896b7,_0xee1013){const _0x105769=_0x36a365;super(),_0x5abcce(this,_0x105769(0x119),new _0xb17181['BehaviorSubject'](_0x105769(0x18c))),_0x5abcce(this,_0x105769(0x102),this[_0x105769(0x119)]['asObservable']()),_0x5abcce(this,_0x105769(0x123),!0x1),_0x5abcce(this,_0x105769(0x172),null),_0x5abcce(this,_0x105769(0x176),null),(this[_0x105769(0x1bf)]=_0x3ae48a,this[_0x105769(0x1b8)]=_0x154c2d,this['_configService']=_0x3daef5,this[_0x105769(0x1c3)]=_0x3896b7,this['_commandService']=_0xee1013);}get[_0x36a365(0x131)](){const _0x48d6c0=_0x36a365;return this[_0x48d6c0(0x119)]['getValue']();}[_0x36a365(0x15e)](){const _0x3a12c6=_0x36a365;var _0x5d6109;(_0x5d6109=this[_0x3a12c6(0x172)])==null||_0x5d6109['dispose'](),this[_0x3a12c6(0x119)][_0x3a12c6(0x1ab)](_0x3a12c6(0x18c)),this[_0x3a12c6(0x119)][_0x3a12c6(0x14d)]();}[_0x36a365(0x10d)](){const _0xd71700=_0x36a365;return this[_0xd71700(0x131)];}[_0x36a365(0x18e)](){const _0x18e200=_0x36a365;this[_0x18e200(0x123)]||(this[_0x18e200(0x123)]=!0x0,this[_0x18e200(0x1b8)]['sessionStatus$'][_0x18e200(0x1cf)](_0x4f2afb[_0x18e200(0x17d)](this[_0x18e200(0xf1)]))[_0x18e200(0x18a)](_0x44ffd8=>{const _0x49be6a=_0x18e200;switch(_0x44ffd8){case _0x3f3ef9[_0x49be6a(0x12c)]['OFFLINE']:this[_0x49be6a(0xf8)]();break;case _0x3f3ef9[_0x49be6a(0x12c)][_0x49be6a(0x12b)]:this[_0x49be6a(0x19d)]();break;}}),this[_0x18e200(0x1b8)][_0x18e200(0x11d)]['pipe'](_0x4f2afb[_0x18e200(0x17d)](this[_0x18e200(0xf1)]))[_0x18e200(0x18a)](_0x5971ec=>{const _0x542af9=_0x18e200,{eventID:_0x526d75}=_0x5971ec;switch(_0x526d75){case _0x470106[_0x542af9(0x19b)][_0x542af9(0x192)]:this[_0x542af9(0x14c)](_0x5971ec);break;case _0x470106[_0x542af9(0x19b)][_0x542af9(0x148)]:this[_0x542af9(0x160)](_0x5971ec);break;case _0x470106[_0x542af9(0x19b)][_0x542af9(0x17b)]:this[_0x542af9(0x152)]();break;case _0x470106[_0x542af9(0x19b)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x5971ec);break;}}));}[_0x36a365(0x157)](){const _0x505909=_0x36a365;this[_0x505909(0x1b8)]['send']({'eventID':_0x470106[_0x505909(0x19b)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x505909(0x1bf)],'userID':this[_0x505909(0x1b8)][_0x505909(0x1a3)]()}},this[_0x505909(0x1bf)]);}['stopPresenting'](){const _0x446196=_0x36a365;this[_0x446196(0x131)]===_0x446196(0x134)&&(this[_0x446196(0x119)][_0x446196(0x1ab)]('idle'),this[_0x446196(0x1b8)]['send']({'eventID':_0x470106[_0x446196(0x19b)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x446196(0x1bf)]}},this[_0x446196(0x1bf)]));}[_0x36a365(0xf6)](){const _0xfd5485=_0x36a365;this[_0xfd5485(0x131)]===_0xfd5485(0x193)&&(this['_status$'][_0xfd5485(0x1ab)]('following'),this[_0xfd5485(0x144)]());}[_0x36a365(0x1b6)](){const _0x4062be=_0x36a365;this[_0x4062be(0x131)]===_0x4062be(0xf5)&&this['_stopFollowing']();}['_handleNewHost'](_0x1804a9){const _0x156d3d=_0x36a365,{presenter:_0x3317a4}=_0x1804a9[_0x156d3d(0x184)],_0x37c5ab=this[_0x156d3d(0x1b8)][_0x156d3d(0x1a3)]();this[_0x156d3d(0x176)]=_0x3317a4,_0x3317a4===_0x37c5ab?(this[_0x156d3d(0x121)](),this[_0x156d3d(0x1bc)]()):this['_status']!==_0x156d3d(0x193)&&(this[_0x156d3d(0x14b)](),this[_0x156d3d(0x144)]());}[_0x36a365(0x115)](){const _0xc6c74=_0x36a365,_0x1eacd6={'eventID':_0x470106[_0xc6c74(0x19b)][_0xc6c74(0x1ad)]};this[_0xc6c74(0x1b8)][_0xc6c74(0x17f)](_0x1eacd6,this[_0xc6c74(0x1bf)]);}[_0x36a365(0x152)](){const _0x54c8a8=_0x36a365;this[_0x54c8a8(0x176)]=null,this[_0x54c8a8(0x131)]!==_0x54c8a8(0x134)&&this[_0x54c8a8(0x166)]();}['_handleNewChangeSets'](_0x50b2ee){const _0x5770bc=_0x36a365;if(this['_status']===_0x5770bc(0xf5)&&this[_0x5770bc(0x176)]===_0x50b2ee[_0x5770bc(0x184)][_0x5770bc(0x133)]){const _0x545722=_0x470106[_0x5770bc(0x136)](_0x50b2ee[_0x5770bc(0x184)])[_0x5770bc(0xef)]['reverse']()['find'](_0x6ed44d=>_0x6ed44d['id']===_0x103de8[_0x5770bc(0x19f)]['id']);if(_0x545722){const _0x273581=_0x545722[_0x5770bc(0x188)][_0x5770bc(0x15b)],_0x327320=_0x545722['params'][_0x5770bc(0x109)]['id'];setTimeout(()=>{const _0x48a24e=_0x5770bc;this['_commandService']['executeCommand'](_0x103de8[_0x48a24e(0x113)]['id'],{'unitId':_0x273581,'subUnitId':_0x327320},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x1b0da3=_0x36a365;this['_status$'][_0x1b0da3(0x1ab)](_0x1b0da3(0x134));const _0x22926a=new Map(),_0x492ced=this['_commandDisposable']=new _0x3cd3bb[(_0x1b0da3(0x159))]();_0x492ced[_0x1b0da3(0x13d)](_0x3cd3bb[_0x1b0da3(0x1be)](()=>{const _0x9845df=_0x1b0da3;_0x22926a[_0x9845df(0xf9)](_0x1eeea7=>_0x1eeea7[_0x9845df(0x14d)]()),_0x22926a['clear']();})),_0x492ced[_0x1b0da3(0x13d)](this[_0x1b0da3(0x1a7)]['onCommandExecuted'](_0x58d0c7=>{const _0x5e53e3=_0x1b0da3;var _0x2c7631;if(_0x58d0c7[_0x5e53e3(0x194)]!==_0x3cd3bb[_0x5e53e3(0x196)][_0x5e53e3(0x19a)]||!this[_0x5e53e3(0x1c3)]['shouldShareOperation'](_0x58d0c7['id']))return;const {id:_0x1a87a6}=_0x58d0c7;let _0x2ec9c4;_0x22926a[_0x5e53e3(0x151)](_0x1a87a6)?_0x2ec9c4=_0x22926a[_0x5e53e3(0x10c)](_0x1a87a6):(_0x2ec9c4=new _0xb17181['Subject'](),_0x22926a[_0x5e53e3(0x18b)](_0x1a87a6,_0x2ec9c4),_0x2ec9c4[_0x5e53e3(0x1cf)](_0x4f2afb['throttleTime']((_0x2c7631=this['_configService']['getConfig'](_0x4de5d6))!=null?_0x2c7631:_0x5457f3,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x8ab933=>{const _0x19b41f=_0x5e53e3;this[_0x19b41f(0x1b8)][_0x19b41f(0x17f)]({'eventID':_0x470106[_0x19b41f(0x19b)][_0x19b41f(0x148)],'data':{'unitID':this[_0x19b41f(0x1bf)],'operations':{[_0x8ab933['id']]:{'id':_0x8ab933['id'],'params':JSON[_0x19b41f(0x175)](_0x8ab933['params'])}}}},this['_unitID']);})),_0x2ec9c4['next'](_0x58d0c7);})),this['_liveShareService'][_0x1b0da3(0x15f)](this[_0x1b0da3(0x1bf)])['forEach'](_0x553b3d=>this[_0x1b0da3(0x1b8)][_0x1b0da3(0x17f)]({'eventID':_0x470106['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x553b3d['id']]:{'id':_0x553b3d['id'],'params':JSON['stringify'](_0x553b3d['params'])}}}},this[_0x1b0da3(0x1bf)]));}[_0x36a365(0x14b)](){const _0x2e0d45=_0x36a365;var _0x41fa55;this[_0x2e0d45(0x119)][_0x2e0d45(0x1ab)](_0x2e0d45(0x18c)),(_0x41fa55=this[_0x2e0d45(0x172)])==null||_0x41fa55[_0x2e0d45(0x15e)](),this[_0x2e0d45(0x172)]=null;}[_0x36a365(0x144)](){const _0x1af7d8=_0x36a365;var _0x210495;(_0x210495=this['_commandDisposable'])==null||_0x210495['dispose'](),this[_0x1af7d8(0x119)]['next'](_0x1af7d8(0xf5));}[_0x36a365(0x166)](){const _0x45ec7b=_0x36a365;var _0x15190c;this[_0x45ec7b(0x119)][_0x45ec7b(0x1ab)](_0x45ec7b(0x18c)),(_0x15190c=this[_0x45ec7b(0x172)])==null||_0x15190c[_0x45ec7b(0x15e)](),this[_0x45ec7b(0x172)]=null;}['_stopFollowing'](){const _0x5accaa=_0x36a365;var _0x2e3b14;this[_0x5accaa(0x119)][_0x5accaa(0x1ab)](_0x5accaa(0x193)),(_0x2e3b14=this[_0x5accaa(0x172)])==null||_0x2e3b14['dispose']();}[_0x36a365(0x160)](_0x3f140e){const _0x4f70cd=_0x36a365;if([_0x4f70cd(0x134),'not-following',_0x4f70cd(0x186)][_0x4f70cd(0x142)](this[_0x4f70cd(0x131)])||!_0x3f140e[_0x4f70cd(0x184)][_0x4f70cd(0x191)]||_0x3f140e[_0x4f70cd(0x184)][_0x4f70cd(0x191)]===this[_0x4f70cd(0x1b8)]['getMemberID']())return;this[_0x4f70cd(0x131)]===_0x4f70cd(0x18c)&&this[_0x4f70cd(0x144)]();const _0x525bc2=_0x3f140e[_0x4f70cd(0x184)][_0x4f70cd(0x174)];Object[_0x4f70cd(0x104)](_0x525bc2)['forEach'](_0x5b083f=>{const _0x46bb14=_0x4f70cd;this[_0x46bb14(0x1a7)]['executeCommand'](_0x5b083f['id'],_0x5b083f[_0x46bb14(0x188)]?JSON[_0x46bb14(0x171)](_0x5b083f[_0x46bb14(0x188)]):null,{'fromCollab':!0x0});});}[_0x36a365(0xf8)](){const _0x5d9fbb=_0x36a365;var _0x2e1ba1;this[_0x5d9fbb(0x119)][_0x5d9fbb(0x1ab)](_0x5d9fbb(0x186)),(_0x2e1ba1=this[_0x5d9fbb(0x172)])==null||_0x2e1ba1['dispose']();}[_0x36a365(0x19d)](){const _0x2f0779=_0x36a365;this[_0x2f0779(0x119)][_0x2f0779(0x1ab)]('idle'),this['_fetchOperations']();}},_0x491357[_0x36a365(0x180)]=_0xe9851c([_0x51da42(0x2,_0x3cd3bb[_0x36a365(0x1b7)]),_0x51da42(0x3,_0x3cd3bb[_0x36a365(0xff)](_0x18b732)),_0x51da42(0x4,_0x3cd3bb[_0x36a365(0x1b3)])],_0x491357['LiveShareCoordinator']);function _0x2ea681(){const _0x467b8b=_0x36a365,_0xb886c5=_0x672739['useDependency'](_0x491357[_0x467b8b(0xf4)]),_0x454f7d=_0x672739[_0x467b8b(0x118)](_0x3cd3bb[_0x467b8b(0x1aa)]),_0x309003=_0x672739['useObservable'](()=>_0x454f7d[_0x467b8b(0x187)](_0x3cd3bb[_0x467b8b(0xf3)][_0x467b8b(0x13e)]),void 0x0,!0x1,[]),[_0x156559,_0x3d4952]=_0x29551b[_0x467b8b(0x182)](null),[_0xe1a51b,_0x257e7e]=_0x29551b['useState'](_0x3df07c[_0x467b8b(0x135)]),_0x2a0830=_0x29551b[_0x467b8b(0x181)](null);return _0x29551b[_0x467b8b(0x198)](()=>(_0x309003&&_0xb886c5[_0x467b8b(0x141)](_0x309003[_0x467b8b(0x1a6)]())[_0x467b8b(0x164)](_0x4b989d=>{const _0x46d4e5=_0x467b8b;_0x3d4952(_0x4b989d),_0x2a0830[_0x46d4e5(0x145)]=_0x4b989d[_0x46d4e5(0x102)]['subscribe'](_0x786c59=>{_0x257e7e(_0x786c59);});}),()=>{const _0x163108=_0x467b8b;var _0x43c0bd;(_0x43c0bd=_0x2a0830[_0x163108(0x145)])==null||_0x43c0bd['unsubscribe'](),_0x2a0830[_0x163108(0x145)]=null;}),[_0x309003,_0xb886c5]),_0x156559?_0x164c98[_0x467b8b(0x14e)](_0x29f95a[_0x467b8b(0x17c)],{'align':'end','disabled':_0xe1a51b===_0x3df07c[_0x467b8b(0x138)],'className':_0x467b8b(0x18f),'overlay':_0x164c98['jsx'](_0x25883b,{'status':_0xe1a51b,'coordinator':_0x156559}),'children':_0x164c98[_0x467b8b(0x14e)]('button',{'className':_0x29f95a['clsx'](_0x467b8b(0x114),{'univer-cursor-not-allowed':_0xe1a51b===_0x3df07c[_0x467b8b(0x138)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xe1a51b!==_0x3df07c[_0x467b8b(0x138)]}),'type':_0x467b8b(0x1a2),'children':_0x164c98[_0x467b8b(0x14e)](_0x3bc5e6,{'className':_0x467b8b(0x101)})})}):null;}function _0x25883b(_0x283d9a){const _0x433a0a=_0x36a365,{status:_0x2e960a,coordinator:_0x3c9e62}=_0x283d9a;switch(_0x2e960a){case _0x3df07c[_0x433a0a(0x135)]:return _0x164c98[_0x433a0a(0x14e)](_0x2e699c,{'coordinator':_0x3c9e62});case _0x3df07c[_0x433a0a(0x15a)]:return _0x164c98['jsx'](_0xf279b1,{'coordinator':_0x3c9e62});case _0x3df07c[_0x433a0a(0x17a)]:return _0x164c98[_0x433a0a(0x14e)](_0x585135,{'coordinator':_0x3c9e62});case _0x3df07c['OFFLINE']:return _0x164c98[_0x433a0a(0x14e)](_0x237e8e,{});case _0x3df07c[_0x433a0a(0x189)]:return _0x164c98[_0x433a0a(0x14e)](_0x18f485,{'coordinator':_0x3c9e62});default:return null;}}function _0x2e699c(_0x58143d){const _0x5a32a1=_0x36a365,{coordinator:_0x2f0364}=_0x58143d;return _0x164c98[_0x5a32a1(0x197)](_0x164c98['Fragment'],{'children':[_0x164c98[_0x5a32a1(0x14e)](_0x5a32a1(0x12a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5a32a1(0x111)}),_0x164c98[_0x5a32a1(0x14e)](_0x29f95a['Button'],{'onClick':()=>_0x2f0364[_0x5a32a1(0x157)](),'children':'Start'})]});}function _0xf279b1(_0x41f3e4){const _0x56080d=_0x36a365,{coordinator:_0x5ee280}=_0x41f3e4;return _0x164c98[_0x56080d(0x197)](_0x164c98[_0x56080d(0x195)],{'children':[_0x164c98[_0x56080d(0x14e)](_0x56080d(0x12a),{'className':_0x56080d(0x1ac),'children':_0x56080d(0x127)}),_0x164c98[_0x56080d(0x14e)](_0x29f95a['Button'],{'onClick':()=>_0x5ee280[_0x56080d(0x1b6)](),'children':'Stop\x20following'})]});}function _0x585135(_0x8de4ab){const _0x4f3437=_0x36a365,{coordinator:_0x268243}=_0x8de4ab;return _0x164c98[_0x4f3437(0x197)](_0x164c98[_0x4f3437(0x195)],{'children':[_0x164c98['jsx'](_0x4f3437(0x12a),{'className':_0x4f3437(0x1ac),'children':_0x4f3437(0xfe)}),_0x164c98['jsx'](_0x29f95a['Button'],{'variant':'text','onClick':()=>_0x268243[_0x4f3437(0xf6)](),'children':_0x4f3437(0x154)})]});}function _0x18f485(_0x42792a){const _0x42631e=_0x36a365,{coordinator:_0x5f2e9a}=_0x42792a;return _0x164c98[_0x42631e(0x197)](_0x164c98['Fragment'],{'children':[_0x164c98[_0x42631e(0x14e)](_0x42631e(0x12a),{'className':_0x42631e(0x1ac),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x164c98['jsx'](_0x29f95a['Button'],{'variant':_0x42631e(0x165),'onClick':()=>_0x5f2e9a['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x237e8e(){const _0x2d85a9=_0x36a365;return _0x164c98[_0x2d85a9(0x14e)](_0x164c98[_0x2d85a9(0x195)],{'children':'You\x27are\x20offline.'});}var _0xcc146=Object[_0x36a365(0x1cd)],_0x225f4e=(_0x3d4020,_0x5b7b2c,_0x17fdd2,_0x354cac)=>{const _0xabc629=_0x36a365;for(var _0x134029=_0x354cac>0x1?void 0x0:_0x354cac?_0xcc146(_0x5b7b2c,_0x17fdd2):_0x5b7b2c,_0x24661a=_0x3d4020[_0xabc629(0x117)]-0x1,_0x2be5b6;_0x24661a>=0x0;_0x24661a--)(_0x2be5b6=_0x3d4020[_0x24661a])&&(_0x134029=_0x2be5b6(_0x134029)||_0x134029);return _0x134029;},_0x2d0621=(_0x9ae30b,_0x522add)=>(_0x309222,_0x5b72d3)=>_0x522add(_0x309222,_0x5b72d3,_0x9ae30b);_0x491357[_0x36a365(0x1cc)]=class extends _0x3cd3bb[_0x36a365(0x1a0)]{constructor(_0xbdd968,_0xb37d8a){const _0x44d3f2=_0x36a365;super(),this[_0x44d3f2(0x1af)]=_0xbdd968,this[_0x44d3f2(0x12e)]=_0xb37d8a,this['_mountLiveShare']();}[_0x36a365(0x1b5)](){const _0x576c09=_0x36a365;this[_0x576c09(0x125)](this[_0x576c09(0x12e)][_0x576c09(0x128)](_0x672739['BuiltInUIPart'][_0x576c09(0x110)],()=>_0x672739[_0x576c09(0x1b4)](_0x2ea681,this[_0x576c09(0x1af)])));}},_0x491357[_0x36a365(0x1cc)]=_0x225f4e([_0x2d0621(0x0,_0x3cd3bb[_0x36a365(0xff)](_0x3cd3bb[_0x36a365(0xfb)])),_0x2d0621(0x1,_0x672739['IUIPartsService'])],_0x491357[_0x36a365(0x1cc)]);const _0x113052='live-share.config',_0x513162={};var _0x2e44b3=Object[_0x36a365(0x1cd)],_0xb50faa=(_0x55f961,_0x3e12f8,_0x114dad,_0x1323fa)=>{const _0x21a235=_0x36a365;for(var _0x2f4ecb=_0x1323fa>0x1?void 0x0:_0x1323fa?_0x2e44b3(_0x3e12f8,_0x114dad):_0x3e12f8,_0x2767dd=_0x55f961[_0x21a235(0x117)]-0x1,_0x51ce4d;_0x2767dd>=0x0;_0x2767dd--)(_0x51ce4d=_0x55f961[_0x2767dd])&&(_0x2f4ecb=_0x51ce4d(_0x2f4ecb)||_0x2f4ecb);return _0x2f4ecb;},_0xe4a308=(_0xb58d0f,_0x522bf4)=>(_0x2fdcf4,_0x257e87)=>_0x522bf4(_0x2fdcf4,_0x257e87,_0xb58d0f);let _0x4ffbd9=class extends _0x3cd3bb[_0x36a365(0x1a0)]{constructor(_0x4ca743){const _0xbb66fa=_0x36a365;super(),this[_0xbb66fa(0x1c3)]=_0x4ca743,this['_init']();}[_0x36a365(0x123)](){const _0x42ad04=_0x36a365;[_0x405304[_0x42ad04(0x13c)]['id'],_0x405304[_0x42ad04(0x146)]['id'],_0x103de8[_0x42ad04(0x113)]['id']]['forEach'](_0x29fb41=>{const _0x46cf32=_0x42ad04;this[_0x46cf32(0x125)](this['_liveShareService'][_0x46cf32(0x16b)](_0x29fb41));});}};_0x4ffbd9=_0xb50faa([_0xe4a308(0x0,_0x3cd3bb[_0x36a365(0xff)](_0x18b732))],_0x4ffbd9);var _0x38145c=Object[_0x36a365(0x130)],_0x54e80a=Object[_0x36a365(0x1cd)],_0x1c1cff=(_0x8137b2,_0x34e2b8,_0x3db8bf)=>_0x34e2b8 in _0x8137b2?_0x38145c(_0x8137b2,_0x34e2b8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3db8bf}):_0x8137b2[_0x34e2b8]=_0x3db8bf,_0x4b6478=(_0x75f138,_0x224f53,_0x1da574,_0x7ea292)=>{const _0x51e164=_0x36a365;for(var _0x38d983=_0x7ea292>0x1?void 0x0:_0x7ea292?_0x54e80a(_0x224f53,_0x1da574):_0x224f53,_0x3ce49f=_0x75f138[_0x51e164(0x117)]-0x1,_0x984f87;_0x3ce49f>=0x0;_0x3ce49f--)(_0x984f87=_0x75f138[_0x3ce49f])&&(_0x38d983=_0x984f87(_0x38d983)||_0x38d983);return _0x38d983;},_0x3df10e=(_0x1fbee1,_0xef1bf2)=>(_0x4da6bd,_0x2e2596)=>_0xef1bf2(_0x4da6bd,_0x2e2596,_0x1fbee1),_0x1e8743=(_0x3c4514,_0x11a72d,_0x4889cd)=>_0x1c1cff(_0x3c4514,typeof _0x11a72d!=_0x36a365(0x158)?_0x11a72d+'':_0x11a72d,_0x4889cd);const _0x36851a=_0x36a365(0x150);_0x491357[_0x36a365(0x1ba)]=class extends _0x3cd3bb[_0x36a365(0x139)]{constructor(_0x4a6b27=_0x513162,_0x2d16d9,_0x145abd){const _0x25d5b8=_0x36a365;super(),this[_0x25d5b8(0x173)]=_0x4a6b27,this[_0x25d5b8(0x1af)]=_0x2d16d9,this[_0x25d5b8(0x112)]=_0x145abd;const {..._0x52d8a7}=_0x3cd3bb[_0x25d5b8(0x149)]({},_0x513162,this[_0x25d5b8(0x173)]);this['_configService'][_0x25d5b8(0x185)](_0x113052,_0x52d8a7);}[_0x36a365(0xfa)](){const _0x9bf4cd=_0x36a365;_0x3cd3bb[_0x9bf4cd(0x169)](this[_0x9bf4cd(0x1af)],_0x3cd3bb[_0x9bf4cd(0x137)]([[_0x18b732],[_0x491357[_0x9bf4cd(0xf4)]],[_0x4ffbd9],[_0x491357[_0x9bf4cd(0x1cc)]]],this['_config'][_0x9bf4cd(0x177)])),_0x3cd3bb[_0x9bf4cd(0x1c2)](this['_injector'],[[_0x4ffbd9]]);}[_0x36a365(0x179)](){const _0x3c33ae=_0x36a365;_0x3cd3bb[_0x3c33ae(0x1c2)](this[_0x3c33ae(0x1af)],[[_0x491357['DesktopLiveShareController']]]);}},_0x1e8743(_0x491357[_0x36a365(0x1ba)],'type',_0x3cd3bb[_0x36a365(0xf3)][_0x36a365(0x18d)]),_0x1e8743(_0x491357['UniverLiveSharePlugin'],_0x36a365(0x1a9),_0x36851a),_0x491357['UniverLiveSharePlugin']=_0x4b6478([_0x3cd3bb[_0x36a365(0x1b9)](_0x3f3ef9['UniverCollaborationClientPlugin']),_0x3df10e(0x1,_0x3cd3bb[_0x36a365(0xff)](_0x3cd3bb[_0x36a365(0xfb)])),_0x3df10e(0x2,_0x3cd3bb[_0x36a365(0x1b7)])],_0x491357[_0x36a365(0x1ba)]),_0x491357[_0x36a365(0x1b1)]=_0x2ea681,_0x491357[_0x36a365(0x1c9)]=_0x18b732,_0x491357['LiveShareStatus']=_0x3df07c,Object[_0x36a365(0x130)](_0x491357,Symbol[_0x36a365(0x178)],{'value':'Module'});}));function _0x50e4(_0x4db43a,_0x1dfd64){_0x4db43a=_0x4db43a-0xed;const _0x25fbd1=_0x25fb();let _0x50e4e5=_0x25fbd1[_0x4db43a];return _0x50e4e5;}function _0x25fb(){const _0x5abef2=['evenodd','@univerjs/sheets-ui','parse','_commandDisposable','_config','operations','stringify','_presenter','override','toStringTag','onRendered','NOT_FOLLOWING','LIVESHARE_TERMINATE','Dropdown','takeUntil','defIds','send','LiveShareCoordinator','useRef','useState','fill','data','setConfig','offline','getCurrentTypeOfUnit$','params','PRESENTING','subscribe','set','idle','UNIVER_UNKNOWN','init','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','forwardRef','presenter','LIVESHARE_NEW_HOST','not-following','type','Fragment','CommandType','jsxs','useEffect','getTypeOfUnitDisposed$','OPERATION','CollaborationEvent','idSuffix','_handleOnline','createInstance','InsertSheetMutation','Disposable','5574ExEgkB','button','getMemberID','path','1516ZYTPdW','getUnitId','_commandService','trim','pluginName','IUniverInstanceService','next','univer-mb-3\x20univer-w-full\x20univer-text-sm','LIVESHARE_FETCH_OPERATIONS','attrs','_injector','UniverProLiveShare','LiveShare','colorChannel1','ICommandService','connectInjector','_mountLiveShare','stopFollowing','IConfigService','_collabSession','DependentOn','UniverLiveSharePlugin','@univerjs/sheets','_startPresenting','map','toDisposable','_unitID','UniverDesign','object','touchDependencies','_liveShareService','0\x200\x2017\x2017','22sPRvtz','@univerjs-pro/collaboration-client','_startLiveShareCoordinator','children','LiveShareService','mask','UniverProCollaborationClient','DesktopLiveShareController','getOwnPropertyDescriptor','http://www.w3.org/2000/svg','pipe','operators','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','mutations','none','dispose$','shouldShareOperation','UniverInstanceType','LiveShareController','following','startFollowing','displayName','_handleOffline','forEach','onStarting','Injector','use','_entities','You\x27re\x20not\x20following\x20the\x20presenter','Inject','replace','univer-size-4','status$','React','values','entries','@univerjs/ui','41589xHqfkZ','26651leLUlM','sheet','UniverSheets','delete','get','getStatus','UniverUi','exports','HEADER_MENU','Present\x20this\x20document','_configService','SetWorksheetActiveOperation','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_fetchOperations','rxjs','length','useDependency','_status$','LiveShareIcon','6423jsXNvm','@univerjs/core','event$','toString','SAME_OPERATION_SHARE_INTERVAL','svg','_stopFollowing','rxjs/operators','_init','@univerjs-pro/collaboration','disposeWithMe','11893980TkhqwN','You\x27re\x20following\x20the\x20presenter','registerComponent','createElement','div','ONLINE','SessionStatus','RxDisposable','_uiPartsService','_sharedOperations','defineProperty','_status','UniverProCollaboration','memberID','presenting','IDLE','parseProtocolChangeset','mergeOverrideWithDependencies','OFFLINE','Plugin','CollaborationSessionService','url(#$1','SetZoomRatioOperation','add','UNIVER_SHEET','1832TrCYPw','assign','getLiveShareCoordinator','includes','9429trzwPA','_startFollowing','current','SetScrollOperation','react','LIVESHARE_OPERATION','merge','currentColor','_stopPresenting','_handleNewHost','complete','jsx','random','UNIVER_LIVE_SHARE_PLUGIN','has','_handleTerminate','UniverIcon','Start\x20following','tag','requireSession','tryStartPresenting','symbol','DisposableCollection','FOLLOWING','unitId','UniverCore','function','dispose','getInitialStates','_handleOperation','1864995WGBKbF','_collabSessionService','string','then','default','_beIdle','_univerInstanceService','_reporters','registerDependencies','defs','registerSharedOperation','from','xlink:href','12318174mkJrMs'];_0x25fb=function(){return _0x5abef2;};return _0x25fb();}
|
|
1
|
+
function _0xac2f(_0x1b480b,_0x5eae69){_0x1b480b=_0x1b480b-0x1ae;const _0x4a3996=_0x4a39();let _0xac2f9e=_0x4a3996[_0x1b480b];return _0xac2f9e;}function _0x4a39(){const _0x28dc4d=['80oXgkZB','UniverDesign','LIVESHARE_NEW_HOST','_handleNewHost','useRef','has','unitId','Disposable','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','button','use','defs','react','fill','sheet','live-share.config','_startFollowing','length','operators','You\x27are\x20offline.','createElement','assign','useEffect','registerComponent','setConfig','SessionStatus','dispose','_mountLiveShare','UniverSheets','symbol','NOT_FOLLOWING','sessionStatus$','asObservable','LiveShareCoordinator','trim','presenting','LIVESHARE_OPERATION','text','SAME_OPERATION_SHARE_INTERVAL','@univerjs/sheets-ui','object','IUniverInstanceService','_unitID','UNIVER_LIVE_SHARE_PLUGIN','send','Injector','_handleOffline','Subject','univer-mb-3\x20univer-w-full\x20univer-text-sm','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','createInstance','idle','displayName','IUIPartsService','_config','params','tag','Module','_handleOperation','operations','InsertSheetMutation','62590HuEkfl','UNIVER_UNKNOWN','executeCommand','onCommandExecuted','onRendered','_collabSessionService','none','BuiltInUIPart','useObservable','http://www.w3.org/2000/svg','You\x27re\x20presenting\x20the\x20document','rxjs','string','registerDependencies','startFollowing','1em','Start','getStatus','_stopPresenting','UniverIcon','presenter','merge','getOwnPropertyDescriptor','default','not-following','jsx','unsubscribe','add','UniverLiveSharePlugin','SetWorksheetActiveOperation','svg','NEW_CHANGESETS','from','_stopFollowing','registerSharedOperation','UniverSheetsUi','_commandService','LIVESHARE_TERMINATE','path','stopFollowing','xlink:href','throttleTime','getCurrentTypeOfUnit$','delete','values','children','UniverUi','connectInjector','LIVESHARE_FETCH_OPERATIONS','1117389Ksakgm','map','SetScrollOperation','Button','getTypeOfUnitDisposed$','_init','touchDependencies','currentColor','subscribe','useDependency','LiveShareController','univerjs-icon\x20univerjs-icon-','_univerInstanceService','FOLLOWING','_handleNewChangeSets','shouldShareOperation','complete','status$','toDisposable','useState','forEach','Inject','_handleTerminate','@univerjs/sheets','getInitialStates','mask','idSuffix','init','IDLE','331590QmVXOp','RxDisposable','CommandType','offline','ICommandService','next','random','amd','disposeWithMe','Present\x20this\x20document','following','_startLiveShareCoordinator','_sharedOperations','1048884RnGGUm','136146BqwSxc','event$','registerInitialStateReporter','jsxs','_beIdle','@univerjs/core','get','HEADER_MENU','reverse','9TqfuuO','mutations','React','PRESENTING','7245820krwUJL','@univerjs/design','UNIVER_SHEET','getValue','react/jsx-runtime','_startPresenting','0\x200\x2017\x2017','UniverCore','DesktopLiveShareController','data','colorChannel1','Stop\x20following','requireSession','UniverProCollaboration','DisposableCollection','evenodd','_configService','_uiPartsService','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','_fetchOperations','defineProperty','dispose$','includes','pipe','exports','_commandDisposable','stopPresenting','Start\x20following','_liveShareService','div','DependentOn','stringify','_collabSession','substring','then','mergeOverrideWithDependencies','CollaborationEvent','LIVESHARE_REQUEST_HOST','univer-size-4','6KzxJLy','BehaviorSubject','getMemberID','You\x27re\x20following\x20the\x20presenter','_reporters','_entities','OFFLINE','current','getLiveShareCoordinatorSync','_status$','attrs','ONLINE','UniverCollaborationClientPlugin','replace','363400UouZbP','_presenter','_injector','toString','UniverInstanceType','_status','CollaborationSessionService','getUnitId','clsx','toStringTag','Fragment','IConfigService','takeUntil','find'];_0x4a39=function(){return _0x28dc4d;};return _0x4a39();}(function(_0x400650,_0x172601){const _0xacd9ac=_0xac2f,_0x576860=_0x400650();while(!![]){try{const _0x515a09=-parseInt(_0xacd9ac(0x217))/0x1*(-parseInt(_0xacd9ac(0x270))/0x2)+parseInt(_0xacd9ac(0x1d5))/0x3+-parseInt(_0xacd9ac(0x1e2))/0x4+-parseInt(_0xacd9ac(0x233))/0x5*(parseInt(_0xacd9ac(0x1e3))/0x6)+-parseInt(_0xacd9ac(0x1b8))/0x7+-parseInt(_0xacd9ac(0x225))/0x8*(parseInt(_0xacd9ac(0x1ec))/0x9)+parseInt(_0xacd9ac(0x1f0))/0xa;if(_0x515a09===_0x172601)break;else _0x576860['push'](_0x576860['shift']());}catch(_0x3dd518){_0x576860['push'](_0x576860['shift']());}}}(_0x4a39,0x2f029),function(_0x42ebb6,_0x181594){const _0x102e8d=_0xac2f;typeof exports==_0x102e8d(0x25b)&&typeof module<'u'?_0x181594(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[_0x102e8d(0x1dc)]?define([_0x102e8d(0x208),_0x102e8d(0x1e8),'@univerjs/ui',_0x102e8d(0x1f4),_0x102e8d(0x1f1),_0x102e8d(0x23f),'@univerjs-pro/collaboration','@univerjs-pro/collaboration-client',_0x102e8d(0x1cf),_0x102e8d(0x27b),'rxjs/operators',_0x102e8d(0x25a)],_0x181594):(_0x42ebb6=typeof globalThis<'u'?globalThis:_0x42ebb6||self,_0x181594(_0x42ebb6['UniverProLiveShare']={},_0x42ebb6[_0x102e8d(0x1f7)],_0x42ebb6[_0x102e8d(0x1b5)],_0x42ebb6['React'],_0x42ebb6[_0x102e8d(0x234)],_0x42ebb6[_0x102e8d(0x1ee)],_0x42ebb6[_0x102e8d(0x1fd)],_0x42ebb6['UniverProCollaborationClient'],_0x42ebb6[_0x102e8d(0x24f)],_0x42ebb6[_0x102e8d(0x27b)],_0x42ebb6[_0x102e8d(0x27b)][_0x102e8d(0x245)],_0x42ebb6[_0x102e8d(0x293)]));}(this,function(_0x2c0109,_0x545d76,_0x1a8727,_0x20946c,_0x32ca4b,_0x28aa9a,_0x2352d3,_0x3f0a5f,_0x19e44f,_0x134f05,_0x13542d,_0x5696ca){'use strict';const _0x415a73=_0xac2f;var _0x26a658=Object[_0x415a73(0x204)],_0x452534=(_0x34291f,_0x16a403,_0x7f79e8)=>_0x16a403 in _0x34291f?_0x26a658(_0x34291f,_0x16a403,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x7f79e8}):_0x34291f[_0x16a403]=_0x7f79e8,_0x44028a=(_0x2441f0,_0x31eea4,_0x969adf)=>_0x452534(_0x2441f0,typeof _0x31eea4!=_0x415a73(0x250)?_0x31eea4+'':_0x31eea4,_0x969adf);function _0x311f12({ref:_0x3d71a4,..._0x78efbf}){const _0x4d3cd8=_0x415a73,{icon:_0x5f1cba,id:_0x5e593a,className:_0xbcc6a1,extend:_0x534b8d,..._0x1a7293}=_0x78efbf,_0x1ee0c0=(_0x4d3cd8(0x1c3)+_0x5e593a+'\x20'+(_0xbcc6a1||''))[_0x4d3cd8(0x255)](),_0x4ab7d4=_0x28aa9a[_0x4d3cd8(0x237)]('_'+_0x38864b());return _0x16fee1(_0x5f1cba,''+_0x5e593a,{'defIds':_0x5f1cba['defIds'],'idSuffix':_0x4ab7d4['current']},{'ref':_0x3d71a4,'className':_0x1ee0c0,..._0x1a7293},_0x534b8d);}function _0x16fee1(_0x7cfb25,_0x2bfda2,_0x143e60,_0x3e7987,_0xf6e73c){const _0x597a08=_0x415a73;return _0x28aa9a['createElement'](_0x7cfb25[_0x597a08(0x26b)],{'key':_0x2bfda2,..._0x331047(_0x7cfb25,_0x143e60,_0xf6e73c),..._0x3e7987},(_0x25e68d(_0x7cfb25,_0x143e60)[_0x597a08(0x1b4)]||[])[_0x597a08(0x1b9)]((_0x570d57,_0x44e152)=>_0x16fee1(_0x570d57,_0x2bfda2+'-'+_0x7cfb25[_0x597a08(0x26b)]+'-'+_0x44e152,_0x143e60,void 0x0,_0xf6e73c)));}function _0x331047(_0x2d6867,_0x522b47,_0x40d96a){const _0x25e7c9=_0x415a73,_0x30087f={..._0x2d6867['attrs']};_0x40d96a!=null&&_0x40d96a[_0x25e7c9(0x1fa)]&&_0x30087f[_0x25e7c9(0x240)]===_0x25e7c9(0x1fa)&&(_0x30087f['fill']=_0x40d96a['colorChannel1']),_0x2d6867['tag']===_0x25e7c9(0x1d1)&&_0x30087f['id']&&(_0x30087f['id']=_0x30087f['id']+_0x522b47[_0x25e7c9(0x1d2)]),Object['entries'](_0x30087f)[_0x25e7c9(0x1cc)](([_0x3dcf2d,_0x191950])=>{const _0x78c768=_0x25e7c9;_0x3dcf2d===_0x78c768(0x1d1)&&typeof _0x191950==_0x78c768(0x27c)&&(_0x30087f[_0x3dcf2d]=_0x191950[_0x78c768(0x224)](/url\(#(.*)\)/,'url(#$1'+_0x522b47[_0x78c768(0x1d2)]+')'));});const {defIds:_0x2a86cf}=_0x522b47;return!_0x2a86cf||_0x2a86cf['length']===0x0||(_0x2d6867['tag']===_0x25e7c9(0x23d)&&_0x30087f['xlink:href']&&(_0x30087f[_0x25e7c9(0x1af)]=_0x30087f[_0x25e7c9(0x1af)]+_0x522b47[_0x25e7c9(0x1d2)]),Object['entries'](_0x30087f)[_0x25e7c9(0x1cc)](([_0x382210,_0x49401c])=>{const _0x306932=_0x25e7c9;typeof _0x49401c==_0x306932(0x27c)&&(_0x30087f[_0x382210]=_0x49401c[_0x306932(0x224)](/url\(#(.*)\)/,'url(#$1'+_0x522b47[_0x306932(0x1d2)]+')'));})),_0x30087f;}function _0x25e68d(_0x14457d,_0x551a91){const _0x1468ba=_0x415a73;var _0x2183c7;const {defIds:_0x46bf1a}=_0x551a91;return!_0x46bf1a||_0x46bf1a[_0x1468ba(0x244)]===0x0?_0x14457d:_0x14457d[_0x1468ba(0x26b)]===_0x1468ba(0x23e)&&((_0x2183c7=_0x14457d[_0x1468ba(0x1b4)])!=null&&_0x2183c7[_0x1468ba(0x244)])?{..._0x14457d,'children':_0x14457d[_0x1468ba(0x1b4)][_0x1468ba(0x1b9)](_0x150c43=>typeof _0x150c43[_0x1468ba(0x221)]['id']==_0x1468ba(0x27c)&&_0x46bf1a&&_0x46bf1a[_0x1468ba(0x206)](_0x150c43[_0x1468ba(0x221)]['id'])?{..._0x150c43,'attrs':{..._0x150c43[_0x1468ba(0x221)],'id':_0x150c43[_0x1468ba(0x221)]['id']+_0x551a91[_0x1468ba(0x1d2)]}}:_0x150c43)}:_0x14457d;}function _0x38864b(){const _0x5af02=_0x415a73;return Math[_0x5af02(0x1db)]()[_0x5af02(0x228)](0x24)[_0x5af02(0x211)](0x2,0x8);}_0x311f12['displayName']=_0x415a73(0x283);const _0x1e9035={'tag':_0x415a73(0x28e),'attrs':{'xmlns':_0x415a73(0x279),'fill':_0x415a73(0x276),'viewBox':_0x415a73(0x1f6),'width':_0x415a73(0x27f),'height':_0x415a73(0x27f)},'children':[{'tag':_0x415a73(0x296),'attrs':{'fill':_0x415a73(0x1bf),'d':_0x415a73(0x23b)}},{'tag':_0x415a73(0x296),'attrs':{'fill':_0x415a73(0x1bf),'d':_0x415a73(0x264),'fillRule':_0x415a73(0x1ff),'clipRule':_0x415a73(0x1ff)}}]},_0x5b6cad=_0x28aa9a['forwardRef'](function(_0x333c17,_0x34c239){const _0x4f8f02=_0x415a73;return _0x28aa9a[_0x4f8f02(0x247)](_0x311f12,Object[_0x4f8f02(0x248)]({},_0x333c17,{'id':'live-share-icon','ref':_0x34c239,'icon':_0x1e9035}));});_0x5b6cad[_0x415a73(0x267)]='LiveShareIcon';class _0x56aeba extends _0x545d76[_0x415a73(0x23a)]{constructor(){const _0x25781f=_0x415a73;super(...arguments),_0x44028a(this,_0x25781f(0x1e1),new Set()),_0x44028a(this,_0x25781f(0x21b),new Set());}[_0x415a73(0x292)](_0x7d7fb7){const _0x60a160=_0x415a73;return this[_0x60a160(0x1e1)][_0x60a160(0x28b)](_0x7d7fb7),_0x545d76['toDisposable'](()=>this[_0x60a160(0x1e1)][_0x60a160(0x1b2)](_0x7d7fb7));}[_0x415a73(0x1e5)](_0x1b5035){const _0x293ba1=_0x415a73;return this['_reporters'][_0x293ba1(0x28b)](_0x1b5035),_0x545d76[_0x293ba1(0x1ca)](()=>this[_0x293ba1(0x21b)]['delete'](_0x1b5035));}[_0x415a73(0x1c7)](_0x89eca8){const _0x20c834=_0x415a73;return this['_sharedOperations'][_0x20c834(0x238)](_0x89eca8);}[_0x415a73(0x1d0)](_0x5c16ab){const _0x2fa3e1=_0x415a73;return Array[_0x2fa3e1(0x290)](this[_0x2fa3e1(0x21b)])[_0x2fa3e1(0x1b9)](_0x213917=>_0x213917(_0x5c16ab));}}var _0x4122f9=Object[_0x415a73(0x286)],_0x56b12d=(_0x6a3ae5,_0x3bbe74,_0x42524d,_0x36e522)=>{const _0x4dff9a=_0x415a73;for(var _0x13b3b5=_0x36e522>0x1?void 0x0:_0x36e522?_0x4122f9(_0x3bbe74,_0x42524d):_0x3bbe74,_0x2304ea=_0x6a3ae5[_0x4dff9a(0x244)]-0x1,_0x2c3624;_0x2304ea>=0x0;_0x2304ea--)(_0x2c3624=_0x6a3ae5[_0x2304ea])&&(_0x13b3b5=_0x2c3624(_0x13b3b5)||_0x13b3b5);return _0x13b3b5;},_0x201fe6=(_0x218705,_0x3f2123)=>(_0x811bd6,_0xe75ef3)=>_0x3f2123(_0x811bd6,_0xe75ef3,_0x218705);_0x2c0109[_0x415a73(0x1c2)]=class extends _0x545d76[_0x415a73(0x1d6)]{constructor(_0x18ceac,_0x428287,_0x5dbf5f){const _0x2ab7cc=_0x415a73;super(),_0x44028a(this,_0x2ab7cc(0x21c),new Map()),(this[_0x2ab7cc(0x1c4)]=_0x18ceac,this[_0x2ab7cc(0x227)]=_0x428287,this[_0x2ab7cc(0x275)]=_0x5dbf5f,this[_0x2ab7cc(0x1bd)]());}async['getLiveShareCoordinator'](_0x5aa2d7){const _0x3c7bfe=_0x415a73;return this['_entities']['has'](_0x5aa2d7)||await this[_0x3c7bfe(0x1e0)](_0x5aa2d7),this[_0x3c7bfe(0x21c)][_0x3c7bfe(0x1e9)](_0x5aa2d7);}[_0x415a73(0x21f)](_0x54ebe3){const _0x406c83=_0x415a73;var _0x5c253f;return(_0x5c253f=this['_entities'][_0x406c83(0x1e9)](_0x54ebe3))!=null?_0x5c253f:null;}['_init'](){const _0x5a04a0=_0x415a73;this[_0x5a04a0(0x1c4)]['getTypeOfUnitAdded$'](_0x545d76[_0x5a04a0(0x229)]['UNIVER_SHEET'])[_0x5a04a0(0x207)](_0x13542d[_0x5a04a0(0x231)](this['dispose$']))[_0x5a04a0(0x1c0)](async _0x32a0d7=>{const _0x583975=_0x5a04a0,_0x4329df=_0x32a0d7[_0x583975(0x22c)]();this[_0x583975(0x21c)]['has'](_0x4329df)||this[_0x583975(0x1e0)](_0x4329df);}),this[_0x5a04a0(0x1c4)][_0x5a04a0(0x1bc)](_0x545d76[_0x5a04a0(0x229)]['UNIVER_SHEET'])[_0x5a04a0(0x207)](_0x13542d[_0x5a04a0(0x231)](this[_0x5a04a0(0x205)]))['subscribe'](_0x50ea83=>{const _0x3be3c9=_0x5a04a0,_0x1534e7=_0x50ea83['getUnitId'](),_0x13aace=this[_0x3be3c9(0x21c)][_0x3be3c9(0x1e9)](_0x1534e7);_0x13aace==null||_0x13aace[_0x3be3c9(0x24d)]();});}async[_0x415a73(0x1e0)](_0x19e26c){const _0x57cfeb=_0x415a73,_0x1bba39=await this['_collabSessionService'][_0x57cfeb(0x1fc)](_0x19e26c),_0x1d044a=this[_0x57cfeb(0x227)][_0x57cfeb(0x265)](_0x2c0109['LiveShareCoordinator'],_0x19e26c,_0x1bba39);return _0x1d044a['init'](),this[_0x57cfeb(0x21c)]['set'](_0x19e26c,_0x1d044a),_0x1d044a;}},_0x2c0109[_0x415a73(0x1c2)]=_0x56b12d([_0x201fe6(0x0,_0x545d76[_0x415a73(0x25c)]),_0x201fe6(0x1,_0x545d76[_0x415a73(0x1cd)](_0x545d76[_0x415a73(0x260)])),_0x201fe6(0x2,_0x545d76['Inject'](_0x3f0a5f[_0x415a73(0x22b)]))],_0x2c0109['LiveShareController']);var _0x1a6c0f=(_0x3b9ffb=>(_0x3b9ffb['OFFLINE']=_0x415a73(0x1d8),_0x3b9ffb['IDLE']=_0x415a73(0x266),_0x3b9ffb[_0x415a73(0x1c5)]=_0x415a73(0x1df),_0x3b9ffb[_0x415a73(0x251)]=_0x415a73(0x288),_0x3b9ffb[_0x415a73(0x1ef)]=_0x415a73(0x256),_0x3b9ffb))(_0x1a6c0f||{});const _0x740a88=_0x415a73(0x259),_0x1eb84c=0xc8;_0x2c0109[_0x415a73(0x254)]=class extends _0x545d76[_0x415a73(0x1d6)]{constructor(_0x27cdee,_0x463a0d,_0x4f5c1b,_0x20d987,_0x4ae9c8){const _0x1643f0=_0x415a73;super(),_0x44028a(this,_0x1643f0(0x220),new _0x134f05[(_0x1643f0(0x218))]('idle')),_0x44028a(this,_0x1643f0(0x1c9),this['_status$'][_0x1643f0(0x253)]()),_0x44028a(this,_0x1643f0(0x1bd),!0x1),_0x44028a(this,_0x1643f0(0x209),null),_0x44028a(this,'_presenter',null),(this[_0x1643f0(0x25d)]=_0x27cdee,this[_0x1643f0(0x210)]=_0x463a0d,this[_0x1643f0(0x200)]=_0x4f5c1b,this['_liveShareService']=_0x20d987,this[_0x1643f0(0x294)]=_0x4ae9c8);}get['_status'](){const _0x2b4b6b=_0x415a73;return this['_status$'][_0x2b4b6b(0x1f3)]();}['dispose'](){const _0x2d0233=_0x415a73;var _0x11b6b4;(_0x11b6b4=this[_0x2d0233(0x209)])==null||_0x11b6b4[_0x2d0233(0x24d)](),this[_0x2d0233(0x220)][_0x2d0233(0x1da)](_0x2d0233(0x266)),this[_0x2d0233(0x220)][_0x2d0233(0x1c8)]();}[_0x415a73(0x281)](){const _0x18e80e=_0x415a73;return this[_0x18e80e(0x22a)];}[_0x415a73(0x1d3)](){const _0x11abf0=_0x415a73;this[_0x11abf0(0x1bd)]||(this[_0x11abf0(0x1bd)]=!0x0,this[_0x11abf0(0x210)][_0x11abf0(0x252)]['pipe'](_0x13542d[_0x11abf0(0x231)](this[_0x11abf0(0x205)]))[_0x11abf0(0x1c0)](_0x4a358a=>{const _0x20d5cc=_0x11abf0;switch(_0x4a358a){case _0x3f0a5f[_0x20d5cc(0x24c)][_0x20d5cc(0x21d)]:this[_0x20d5cc(0x261)]();break;case _0x3f0a5f[_0x20d5cc(0x24c)][_0x20d5cc(0x222)]:this['_handleOnline']();break;}}),this[_0x11abf0(0x210)][_0x11abf0(0x1e4)][_0x11abf0(0x207)](_0x13542d[_0x11abf0(0x231)](this[_0x11abf0(0x205)]))[_0x11abf0(0x1c0)](_0x4a6a98=>{const _0x35b618=_0x11abf0,{eventID:_0x4cf6a7}=_0x4a6a98;switch(_0x4cf6a7){case _0x2352d3[_0x35b618(0x214)][_0x35b618(0x235)]:this[_0x35b618(0x236)](_0x4a6a98);break;case _0x2352d3[_0x35b618(0x214)][_0x35b618(0x257)]:this[_0x35b618(0x26d)](_0x4a6a98);break;case _0x2352d3[_0x35b618(0x214)]['LIVESHARE_TERMINATE']:this[_0x35b618(0x1ce)]();break;case _0x2352d3[_0x35b618(0x214)][_0x35b618(0x28f)]:this[_0x35b618(0x1c6)](_0x4a6a98);break;}}));}['tryStartPresenting'](){const _0x455721=_0x415a73;this['_collabSession'][_0x455721(0x25f)]({'eventID':_0x2352d3[_0x455721(0x214)][_0x455721(0x215)],'data':{'unitID':this[_0x455721(0x25d)],'userID':this[_0x455721(0x210)]['getMemberID']()}},this[_0x455721(0x25d)]);}[_0x415a73(0x20a)](){const _0x1ae1cb=_0x415a73;this[_0x1ae1cb(0x22a)]===_0x1ae1cb(0x256)&&(this[_0x1ae1cb(0x220)]['next']('idle'),this[_0x1ae1cb(0x210)][_0x1ae1cb(0x25f)]({'eventID':_0x2352d3['CollaborationEvent'][_0x1ae1cb(0x295)],'data':{'unitID':this[_0x1ae1cb(0x25d)]}},this[_0x1ae1cb(0x25d)]));}[_0x415a73(0x27e)](){const _0x11d4f6=_0x415a73;this['_status']==='not-following'&&(this[_0x11d4f6(0x220)]['next']('following'),this[_0x11d4f6(0x243)]());}['stopFollowing'](){const _0x4bc734=_0x415a73;this[_0x4bc734(0x22a)]===_0x4bc734(0x1df)&&this['_stopFollowing']();}[_0x415a73(0x236)](_0x1ae82b){const _0x2172df=_0x415a73,{presenter:_0x59450a}=_0x1ae82b['data'],_0x2deca2=this[_0x2172df(0x210)][_0x2172df(0x219)]();this[_0x2172df(0x226)]=_0x59450a,_0x59450a===_0x2deca2?(this['_stopFollowing'](),this[_0x2172df(0x1f5)]()):this[_0x2172df(0x22a)]!==_0x2172df(0x288)&&(this[_0x2172df(0x282)](),this['_startFollowing']());}[_0x415a73(0x203)](){const _0x3bd148=_0x415a73,_0xbd4bc9={'eventID':_0x2352d3[_0x3bd148(0x214)][_0x3bd148(0x1b7)]};this[_0x3bd148(0x210)]['send'](_0xbd4bc9,this[_0x3bd148(0x25d)]);}[_0x415a73(0x1ce)](){const _0x3c6bf5=_0x415a73;this[_0x3c6bf5(0x226)]=null,this[_0x3c6bf5(0x22a)]!==_0x3c6bf5(0x256)&&this[_0x3c6bf5(0x1e7)]();}[_0x415a73(0x1c6)](_0x235532){const _0x285482=_0x415a73;if(this['_status']===_0x285482(0x1df)&&this[_0x285482(0x226)]===_0x235532[_0x285482(0x1f9)]['memberID']){const _0x4e811c=_0x2352d3['parseProtocolChangeset'](_0x235532[_0x285482(0x1f9)])[_0x285482(0x1ed)][_0x285482(0x1eb)]()[_0x285482(0x232)](_0x33aead=>_0x33aead['id']===_0x19e44f[_0x285482(0x26f)]['id']);if(_0x4e811c){const _0x882937=_0x4e811c[_0x285482(0x26a)][_0x285482(0x239)],_0x3985c8=_0x4e811c[_0x285482(0x26a)][_0x285482(0x241)]['id'];setTimeout(()=>{const _0x2b0ae8=_0x285482;this[_0x2b0ae8(0x294)][_0x2b0ae8(0x272)](_0x19e44f[_0x2b0ae8(0x28d)]['id'],{'unitId':_0x882937,'subUnitId':_0x3985c8},{'fromCollab':!0x0});});}}}[_0x415a73(0x1f5)](){const _0x74239e=_0x415a73;this[_0x74239e(0x220)][_0x74239e(0x1da)](_0x74239e(0x256));const _0x299855=new Map(),_0x214a7a=this['_commandDisposable']=new _0x545d76[(_0x74239e(0x1fe))]();_0x214a7a[_0x74239e(0x28b)](_0x545d76[_0x74239e(0x1ca)](()=>{const _0x556ef8=_0x74239e;_0x299855[_0x556ef8(0x1cc)](_0xc6dbb1=>_0xc6dbb1[_0x556ef8(0x1c8)]()),_0x299855['clear']();})),_0x214a7a[_0x74239e(0x28b)](this[_0x74239e(0x294)][_0x74239e(0x273)](_0x35f4a2=>{const _0x48225d=_0x74239e;var _0x4f3b67;if(_0x35f4a2['type']!==_0x545d76[_0x48225d(0x1d7)]['OPERATION']||!this[_0x48225d(0x20c)]['shouldShareOperation'](_0x35f4a2['id']))return;const {id:_0x4722c1}=_0x35f4a2;let _0x180b3e;_0x299855[_0x48225d(0x238)](_0x4722c1)?_0x180b3e=_0x299855[_0x48225d(0x1e9)](_0x4722c1):(_0x180b3e=new _0x134f05[(_0x48225d(0x262))](),_0x299855['set'](_0x4722c1,_0x180b3e),_0x180b3e[_0x48225d(0x207)](_0x13542d[_0x48225d(0x1b0)]((_0x4f3b67=this[_0x48225d(0x200)]['getConfig'](_0x740a88))!=null?_0x4f3b67:_0x1eb84c,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x48225d(0x1c0)](_0x4ca3b2=>{const _0x54e341=_0x48225d;this['_collabSession']['send']({'eventID':_0x2352d3[_0x54e341(0x214)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x54e341(0x25d)],'operations':{[_0x4ca3b2['id']]:{'id':_0x4ca3b2['id'],'params':JSON[_0x54e341(0x20f)](_0x4ca3b2[_0x54e341(0x26a)])}}}},this['_unitID']);})),_0x180b3e[_0x48225d(0x1da)](_0x35f4a2);})),this[_0x74239e(0x20c)][_0x74239e(0x1d0)](this[_0x74239e(0x25d)])[_0x74239e(0x1cc)](_0x172709=>this[_0x74239e(0x210)]['send']({'eventID':_0x2352d3[_0x74239e(0x214)][_0x74239e(0x257)],'data':{'unitID':this[_0x74239e(0x25d)],'operations':{[_0x172709['id']]:{'id':_0x172709['id'],'params':JSON[_0x74239e(0x20f)](_0x172709[_0x74239e(0x26a)])}}}},this[_0x74239e(0x25d)]));}[_0x415a73(0x282)](){const _0x3b19f8=_0x415a73;var _0x6493b;this['_status$']['next'](_0x3b19f8(0x266)),(_0x6493b=this[_0x3b19f8(0x209)])==null||_0x6493b[_0x3b19f8(0x24d)](),this['_commandDisposable']=null;}[_0x415a73(0x243)](){const _0x3856e6=_0x415a73;var _0x36a302;(_0x36a302=this[_0x3856e6(0x209)])==null||_0x36a302[_0x3856e6(0x24d)](),this[_0x3856e6(0x220)][_0x3856e6(0x1da)](_0x3856e6(0x1df));}['_beIdle'](){const _0x3f955b=_0x415a73;var _0x25e5cd;this[_0x3f955b(0x220)][_0x3f955b(0x1da)]('idle'),(_0x25e5cd=this[_0x3f955b(0x209)])==null||_0x25e5cd['dispose'](),this['_commandDisposable']=null;}[_0x415a73(0x291)](){const _0xfbb5b=_0x415a73;var _0x347ae6;this['_status$'][_0xfbb5b(0x1da)](_0xfbb5b(0x288)),(_0x347ae6=this[_0xfbb5b(0x209)])==null||_0x347ae6[_0xfbb5b(0x24d)]();}[_0x415a73(0x26d)](_0x293a95){const _0x364d9f=_0x415a73;if([_0x364d9f(0x256),_0x364d9f(0x288),_0x364d9f(0x1d8)]['includes'](this[_0x364d9f(0x22a)])||!_0x293a95['data'][_0x364d9f(0x284)]||_0x293a95['data'][_0x364d9f(0x284)]===this[_0x364d9f(0x210)]['getMemberID']())return;this['_status']==='idle'&&this[_0x364d9f(0x243)]();const _0x2e1475=_0x293a95[_0x364d9f(0x1f9)][_0x364d9f(0x26e)];Object[_0x364d9f(0x1b3)](_0x2e1475)[_0x364d9f(0x1cc)](_0x1ed9e7=>{const _0x4cdba0=_0x364d9f;this[_0x4cdba0(0x294)][_0x4cdba0(0x272)](_0x1ed9e7['id'],_0x1ed9e7[_0x4cdba0(0x26a)]?JSON['parse'](_0x1ed9e7[_0x4cdba0(0x26a)]):null,{'fromCollab':!0x0});});}[_0x415a73(0x261)](){const _0x5ef5d9=_0x415a73;var _0x16ce6d;this[_0x5ef5d9(0x220)][_0x5ef5d9(0x1da)]('offline'),(_0x16ce6d=this[_0x5ef5d9(0x209)])==null||_0x16ce6d['dispose']();}['_handleOnline'](){const _0x201d3b=_0x415a73;this[_0x201d3b(0x220)][_0x201d3b(0x1da)](_0x201d3b(0x266)),this['_fetchOperations']();}},_0x2c0109[_0x415a73(0x254)]=_0x56b12d([_0x201fe6(0x2,_0x545d76[_0x415a73(0x230)]),_0x201fe6(0x3,_0x545d76[_0x415a73(0x1cd)](_0x56aeba)),_0x201fe6(0x4,_0x545d76[_0x415a73(0x1d9)])],_0x2c0109[_0x415a73(0x254)]);function _0x10c2b0(){const _0x443493=_0x415a73,_0xabe22=_0x1a8727[_0x443493(0x1c1)](_0x2c0109[_0x443493(0x1c2)]),_0x20e21c=_0x1a8727['useDependency'](_0x545d76[_0x443493(0x25c)]),_0x2dcd6a=_0x1a8727[_0x443493(0x278)](()=>_0x20e21c[_0x443493(0x1b1)](_0x545d76[_0x443493(0x229)][_0x443493(0x1f2)]),void 0x0,!0x1,[]),[_0x1f16bd,_0x1c71f7]=_0x28aa9a[_0x443493(0x1cb)](null),[_0x241a61,_0x21e108]=_0x28aa9a[_0x443493(0x1cb)](_0x1a6c0f['IDLE']),_0x8c752e=_0x28aa9a[_0x443493(0x237)](null);return _0x28aa9a[_0x443493(0x249)](()=>(_0x2dcd6a&&_0xabe22['getLiveShareCoordinator'](_0x2dcd6a[_0x443493(0x22c)]())[_0x443493(0x212)](_0x4e276d=>{const _0x1eebed=_0x443493;_0x1c71f7(_0x4e276d),_0x8c752e[_0x1eebed(0x21e)]=_0x4e276d[_0x1eebed(0x1c9)][_0x1eebed(0x1c0)](_0x4cc8a2=>{_0x21e108(_0x4cc8a2);});}),()=>{const _0x54ffe3=_0x443493;var _0x144d0f;(_0x144d0f=_0x8c752e[_0x54ffe3(0x21e)])==null||_0x144d0f[_0x54ffe3(0x28a)](),_0x8c752e[_0x54ffe3(0x21e)]=null;}),[_0x2dcd6a,_0xabe22]),_0x1f16bd?_0x20946c[_0x443493(0x289)](_0x32ca4b['Dropdown'],{'align':'end','disabled':_0x241a61===_0x1a6c0f['OFFLINE'],'className':_0x443493(0x202),'overlay':_0x20946c[_0x443493(0x289)](_0x3fc6db,{'status':_0x241a61,'coordinator':_0x1f16bd}),'children':_0x20946c[_0x443493(0x289)](_0x443493(0x23c),{'className':_0x32ca4b[_0x443493(0x22d)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x241a61===_0x1a6c0f[_0x443493(0x21d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x241a61!==_0x1a6c0f[_0x443493(0x21d)]}),'type':_0x443493(0x23c),'children':_0x20946c[_0x443493(0x289)](_0x5b6cad,{'className':_0x443493(0x216)})})}):null;}function _0x3fc6db(_0x2dfb51){const _0x5b59d4=_0x415a73,{status:_0x525163,coordinator:_0x41edca}=_0x2dfb51;switch(_0x525163){case _0x1a6c0f[_0x5b59d4(0x1d4)]:return _0x20946c['jsx'](_0x10ee18,{'coordinator':_0x41edca});case _0x1a6c0f[_0x5b59d4(0x1c5)]:return _0x20946c['jsx'](_0x53b861,{'coordinator':_0x41edca});case _0x1a6c0f[_0x5b59d4(0x251)]:return _0x20946c['jsx'](_0x1bf957,{'coordinator':_0x41edca});case _0x1a6c0f[_0x5b59d4(0x21d)]:return _0x20946c['jsx'](_0x29195f,{});case _0x1a6c0f[_0x5b59d4(0x1ef)]:return _0x20946c[_0x5b59d4(0x289)](_0x2d518d,{'coordinator':_0x41edca});default:return null;}}function _0x10ee18(_0x3345aa){const _0x1f66e0=_0x415a73,{coordinator:_0x3bed0b}=_0x3345aa;return _0x20946c[_0x1f66e0(0x1e6)](_0x20946c[_0x1f66e0(0x22f)],{'children':[_0x20946c[_0x1f66e0(0x289)](_0x1f66e0(0x20d),{'className':_0x1f66e0(0x263),'children':_0x1f66e0(0x1de)}),_0x20946c[_0x1f66e0(0x289)](_0x32ca4b[_0x1f66e0(0x1bb)],{'onClick':()=>_0x3bed0b['tryStartPresenting'](),'children':_0x1f66e0(0x280)})]});}function _0x53b861(_0x46b991){const _0x7165bf=_0x415a73,{coordinator:_0x46ed6c}=_0x46b991;return _0x20946c['jsxs'](_0x20946c[_0x7165bf(0x22f)],{'children':[_0x20946c[_0x7165bf(0x289)](_0x7165bf(0x20d),{'className':_0x7165bf(0x263),'children':_0x7165bf(0x21a)}),_0x20946c['jsx'](_0x32ca4b['Button'],{'onClick':()=>_0x46ed6c[_0x7165bf(0x1ae)](),'children':_0x7165bf(0x1fb)})]});}function _0x1bf957(_0x27d6fb){const _0x4cebda=_0x415a73,{coordinator:_0x44be3e}=_0x27d6fb;return _0x20946c[_0x4cebda(0x1e6)](_0x20946c[_0x4cebda(0x22f)],{'children':[_0x20946c['jsx'](_0x4cebda(0x20d),{'className':_0x4cebda(0x263),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x20946c['jsx'](_0x32ca4b[_0x4cebda(0x1bb)],{'variant':_0x4cebda(0x258),'onClick':()=>_0x44be3e['startFollowing'](),'children':_0x4cebda(0x20b)})]});}function _0x2d518d(_0x48a797){const _0x4c1fd7=_0x415a73,{coordinator:_0x4ea34f}=_0x48a797;return _0x20946c[_0x4c1fd7(0x1e6)](_0x20946c[_0x4c1fd7(0x22f)],{'children':[_0x20946c[_0x4c1fd7(0x289)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4c1fd7(0x27a)}),_0x20946c['jsx'](_0x32ca4b['Button'],{'variant':_0x4c1fd7(0x287),'onClick':()=>_0x4ea34f[_0x4c1fd7(0x20a)](),'children':'Stop\x20presenting'})]});}function _0x29195f(){const _0x22f3d9=_0x415a73;return _0x20946c[_0x22f3d9(0x289)](_0x20946c[_0x22f3d9(0x22f)],{'children':_0x22f3d9(0x246)});}var _0x3164f8=Object[_0x415a73(0x286)],_0x26000f=(_0x26802d,_0x1d7519,_0x34a259,_0x396641)=>{const _0x5ade82=_0x415a73;for(var _0x1f8c72=_0x396641>0x1?void 0x0:_0x396641?_0x3164f8(_0x1d7519,_0x34a259):_0x1d7519,_0x3cd0a3=_0x26802d[_0x5ade82(0x244)]-0x1,_0x33c449;_0x3cd0a3>=0x0;_0x3cd0a3--)(_0x33c449=_0x26802d[_0x3cd0a3])&&(_0x1f8c72=_0x33c449(_0x1f8c72)||_0x1f8c72);return _0x1f8c72;},_0x4a3cf8=(_0x4059e8,_0x423f8b)=>(_0x2ddbe9,_0x4fcd71)=>_0x423f8b(_0x2ddbe9,_0x4fcd71,_0x4059e8);_0x2c0109[_0x415a73(0x1f8)]=class extends _0x545d76['Disposable']{constructor(_0x285c7f,_0x5d908f){const _0xed06aa=_0x415a73;super(),this[_0xed06aa(0x227)]=_0x285c7f,this[_0xed06aa(0x201)]=_0x5d908f,this[_0xed06aa(0x24e)]();}[_0x415a73(0x24e)](){const _0x5a7671=_0x415a73;this[_0x5a7671(0x1dd)](this['_uiPartsService'][_0x5a7671(0x24a)](_0x1a8727[_0x5a7671(0x277)][_0x5a7671(0x1ea)],()=>_0x1a8727[_0x5a7671(0x1b6)](_0x10c2b0,this[_0x5a7671(0x227)])));}},_0x2c0109[_0x415a73(0x1f8)]=_0x26000f([_0x4a3cf8(0x0,_0x545d76[_0x415a73(0x1cd)](_0x545d76['Injector'])),_0x4a3cf8(0x1,_0x1a8727[_0x415a73(0x268)])],_0x2c0109['DesktopLiveShareController']);const _0x5a9f0c=_0x415a73(0x242),_0x19b59f={};var _0x5a81dc=Object[_0x415a73(0x286)],_0x3d72da=(_0x46068e,_0x56ca5e,_0xf4706f,_0x4eedc7)=>{const _0x53c5ac=_0x415a73;for(var _0x2d1b99=_0x4eedc7>0x1?void 0x0:_0x4eedc7?_0x5a81dc(_0x56ca5e,_0xf4706f):_0x56ca5e,_0xa5f72=_0x46068e[_0x53c5ac(0x244)]-0x1,_0x2644ed;_0xa5f72>=0x0;_0xa5f72--)(_0x2644ed=_0x46068e[_0xa5f72])&&(_0x2d1b99=_0x2644ed(_0x2d1b99)||_0x2d1b99);return _0x2d1b99;},_0x2fbd0e=(_0x52e06f,_0x4c26ad)=>(_0x1e771e,_0x3578f2)=>_0x4c26ad(_0x1e771e,_0x3578f2,_0x52e06f);let _0x194840=class extends _0x545d76['Disposable']{constructor(_0xa8933){const _0x58f92f=_0x415a73;super(),this['_liveShareService']=_0xa8933,this[_0x58f92f(0x1bd)]();}[_0x415a73(0x1bd)](){const _0xcde255=_0x415a73;[_0x5696ca['SetZoomRatioOperation']['id'],_0x5696ca[_0xcde255(0x1ba)]['id'],_0x19e44f['SetWorksheetActiveOperation']['id']]['forEach'](_0x4ef25b=>{const _0x85cd43=_0xcde255;this[_0x85cd43(0x1dd)](this[_0x85cd43(0x20c)][_0x85cd43(0x292)](_0x4ef25b));});}};_0x194840=_0x3d72da([_0x2fbd0e(0x0,_0x545d76[_0x415a73(0x1cd)](_0x56aeba))],_0x194840);var _0x441f69=Object[_0x415a73(0x204)],_0x5dc34c=Object[_0x415a73(0x286)],_0x2b7b61=(_0x1583fe,_0x324feb,_0x55c4e2)=>_0x324feb in _0x1583fe?_0x441f69(_0x1583fe,_0x324feb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55c4e2}):_0x1583fe[_0x324feb]=_0x55c4e2,_0x3f9665=(_0x1d6502,_0x45d90a,_0x7c2617,_0xd738ea)=>{const _0x1c08a5=_0x415a73;for(var _0x4afae9=_0xd738ea>0x1?void 0x0:_0xd738ea?_0x5dc34c(_0x45d90a,_0x7c2617):_0x45d90a,_0x522ba4=_0x1d6502[_0x1c08a5(0x244)]-0x1,_0x2a9c64;_0x522ba4>=0x0;_0x522ba4--)(_0x2a9c64=_0x1d6502[_0x522ba4])&&(_0x4afae9=_0x2a9c64(_0x4afae9)||_0x4afae9);return _0x4afae9;},_0x49a4e0=(_0x2ed793,_0x361f10)=>(_0x27c3ee,_0x230174)=>_0x361f10(_0x27c3ee,_0x230174,_0x2ed793),_0x2c8a99=(_0x3544bd,_0x498223,_0x51bb70)=>_0x2b7b61(_0x3544bd,typeof _0x498223!='symbol'?_0x498223+'':_0x498223,_0x51bb70);const _0x2e97d3=_0x415a73(0x25e);_0x2c0109[_0x415a73(0x28c)]=class extends _0x545d76['Plugin']{constructor(_0x5d27fa=_0x19b59f,_0x48655,_0x598257){const _0x4fb8e2=_0x415a73;super(),this['_config']=_0x5d27fa,this['_injector']=_0x48655,this[_0x4fb8e2(0x200)]=_0x598257;const {..._0x276a56}=_0x545d76[_0x4fb8e2(0x285)]({},_0x19b59f,this[_0x4fb8e2(0x269)]);this[_0x4fb8e2(0x200)][_0x4fb8e2(0x24b)](_0x5a9f0c,_0x276a56);}['onStarting'](){const _0x4c6223=_0x415a73;_0x545d76[_0x4c6223(0x27d)](this[_0x4c6223(0x227)],_0x545d76[_0x4c6223(0x213)]([[_0x56aeba],[_0x2c0109[_0x4c6223(0x1c2)]],[_0x194840],[_0x2c0109[_0x4c6223(0x1f8)]]],this[_0x4c6223(0x269)]['override'])),_0x545d76[_0x4c6223(0x1be)](this['_injector'],[[_0x194840]]);}[_0x415a73(0x274)](){const _0x292e43=_0x415a73;_0x545d76[_0x292e43(0x1be)](this['_injector'],[[_0x2c0109[_0x292e43(0x1f8)]]]);}},_0x2c8a99(_0x2c0109[_0x415a73(0x28c)],'type',_0x545d76[_0x415a73(0x229)][_0x415a73(0x271)]),_0x2c8a99(_0x2c0109[_0x415a73(0x28c)],'pluginName',_0x2e97d3),_0x2c0109[_0x415a73(0x28c)]=_0x3f9665([_0x545d76[_0x415a73(0x20e)](_0x3f0a5f[_0x415a73(0x223)]),_0x49a4e0(0x1,_0x545d76[_0x415a73(0x1cd)](_0x545d76[_0x415a73(0x260)])),_0x49a4e0(0x2,_0x545d76[_0x415a73(0x230)])],_0x2c0109[_0x415a73(0x28c)]),_0x2c0109['LiveShare']=_0x10c2b0,_0x2c0109['LiveShareService']=_0x56aeba,_0x2c0109['LiveShareStatus']=_0x1a6c0f,Object[_0x415a73(0x204)](_0x2c0109,Symbol[_0x415a73(0x22e)],{'value':_0x415a73(0x26c)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.15.0-insiders.20260107-
|
|
3
|
+
"version": "0.15.0-insiders.20260107-3d1cfdf",
|
|
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.1.0",
|
|
60
|
-
"@univerjs-pro/collaboration": "0.15.0-insiders.20260107-
|
|
61
|
-
"@univerjs
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/sheets
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs/ui": "0.15.0-insiders.20260107-
|
|
60
|
+
"@univerjs-pro/collaboration": "0.15.0-insiders.20260107-3d1cfdf",
|
|
61
|
+
"@univerjs/core": "0.15.0-insiders.20260107-3d1cfdf",
|
|
62
|
+
"@univerjs-pro/collaboration-client": "0.15.0-insiders.20260107-3d1cfdf",
|
|
63
|
+
"@univerjs/design": "0.15.0-insiders.20260107-3d1cfdf",
|
|
64
|
+
"@univerjs/engine-render": "0.15.0-insiders.20260107-3d1cfdf",
|
|
65
|
+
"@univerjs/sheets": "0.15.0-insiders.20260107-3d1cfdf",
|
|
66
|
+
"@univerjs/ui": "0.15.0-insiders.20260107-3d1cfdf",
|
|
67
|
+
"@univerjs/sheets-ui": "0.15.0-insiders.20260107-3d1cfdf"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"typescript": "^5.9.3",
|
|
75
75
|
"vite": "^7.3.0",
|
|
76
76
|
"vitest": "^4.0.16",
|
|
77
|
-
"@univerjs/
|
|
78
|
-
"@univerjs
|
|
77
|
+
"@univerjs-infra/shared": "0.15.0",
|
|
78
|
+
"@univerjs/protocol": "0.1.48"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"test": "vitest run",
|